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
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.120.0"
".": "0.121.0"
}
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 169
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-6432801dcf017d9234739b9f6153a8cfecd91255af4765f24ba5209f3e320b5c.yml
openapi_spec_hash: c2cfee2f044ba15d15b5bfdbd37280c0
config_hash: 8ac73ccdb428816c89c84802c794a3f8
configured_endpoints: 168
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-c10c01eac94b422808bb16cc1044c67c980791b6d1360b01628d13c5a745dfeb.yml
openapi_spec_hash: 9e6642fdb875a6aa6037c107917ebff4
config_hash: 0b45ea129fca7c4755ef61eb97baa096
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 0.121.0 (2025-11-05)

Full Changelog: [v0.120.0...v0.121.0](https://github.com/lithic-com/lithic-node/compare/v0.120.0...v0.121.0)

### Features

* **api:** deprecate auth rule apply endpoint and fix several schemas ([121d5f4](https://github.com/lithic-com/lithic-node/commit/121d5f4fb50e81ad30a487e4159bd24d3d31d989))


### Chores

* **api:** adds support for new ACH_RECEIPT_RELEASED event ([0fa4c03](https://github.com/lithic-com/lithic-node/commit/0fa4c032819548755256ea6572f7b65ee6d8ede6))

## 0.120.0 (2025-10-23)

Full Changelog: [v0.119.0...v0.120.0](https://github.com/lithic-com/lithic-node/compare/v0.119.0...v0.120.0)
Expand Down
17 changes: 10 additions & 7 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ Types:
- <code><a href="./src/resources/auth-rules/v2/v2.ts">V2RetrieveResponse</a></code>
- <code><a href="./src/resources/auth-rules/v2/v2.ts">V2UpdateResponse</a></code>
- <code><a href="./src/resources/auth-rules/v2/v2.ts">V2ListResponse</a></code>
- <code><a href="./src/resources/auth-rules/v2/v2.ts">V2ApplyResponse</a></code>
- <code><a href="./src/resources/auth-rules/v2/v2.ts">V2DraftResponse</a></code>
- <code><a href="./src/resources/auth-rules/v2/v2.ts">V2PromoteResponse</a></code>
- <code><a href="./src/resources/auth-rules/v2/v2.ts">V2RetrieveFeaturesResponse</a></code>
Expand All @@ -94,7 +93,6 @@ Methods:
- <code title="patch /v2/auth_rules/{auth_rule_token}">client.authRules.v2.<a href="./src/resources/auth-rules/v2/v2.ts">update</a>(authRuleToken, { ...params }) -> V2UpdateResponse</code>
- <code title="get /v2/auth_rules">client.authRules.v2.<a href="./src/resources/auth-rules/v2/v2.ts">list</a>({ ...params }) -> V2ListResponsesCursorPage</code>
- <code title="delete /v2/auth_rules/{auth_rule_token}">client.authRules.v2.<a href="./src/resources/auth-rules/v2/v2.ts">del</a>(authRuleToken) -> void</code>
- <code title="post /v2/auth_rules/{auth_rule_token}/apply">client.authRules.v2.<a href="./src/resources/auth-rules/v2/v2.ts">apply</a>(authRuleToken, { ...params }) -> V2ApplyResponse</code>
- <code title="post /v2/auth_rules/{auth_rule_token}/draft">client.authRules.v2.<a href="./src/resources/auth-rules/v2/v2.ts">draft</a>(authRuleToken, { ...params }) -> V2DraftResponse</code>
- <code title="post /v2/auth_rules/{auth_rule_token}/promote">client.authRules.v2.<a href="./src/resources/auth-rules/v2/v2.ts">promote</a>(authRuleToken) -> V2PromoteResponse</code>
- <code title="get /v2/auth_rules/{auth_rule_token}/features">client.authRules.v2.<a href="./src/resources/auth-rules/v2/v2.ts">retrieveFeatures</a>(authRuleToken, { ...params }) -> V2RetrieveFeaturesResponse</code>
Expand Down Expand Up @@ -238,15 +236,20 @@ Types:

- <code><a href="./src/resources/disputes.ts">Dispute</a></code>
- <code><a href="./src/resources/disputes.ts">DisputeEvidence</a></code>
- <code><a href="./src/resources/disputes.ts">DisputeCreateResponse</a></code>
- <code><a href="./src/resources/disputes.ts">DisputeRetrieveResponse</a></code>
- <code><a href="./src/resources/disputes.ts">DisputeUpdateResponse</a></code>
- <code><a href="./src/resources/disputes.ts">DisputeListResponse</a></code>
- <code><a href="./src/resources/disputes.ts">DisputeDeleteResponse</a></code>
- <code><a href="./src/resources/disputes.ts">DisputeInitiateEvidenceUploadResponse</a></code>

Methods:

- <code title="post /v1/disputes">client.disputes.<a href="./src/resources/disputes.ts">create</a>({ ...params }) -> Dispute</code>
- <code title="get /v1/disputes/{dispute_token}">client.disputes.<a href="./src/resources/disputes.ts">retrieve</a>(disputeToken) -> Dispute</code>
- <code title="patch /v1/disputes/{dispute_token}">client.disputes.<a href="./src/resources/disputes.ts">update</a>(disputeToken, { ...params }) -> Dispute</code>
- <code title="get /v1/disputes">client.disputes.<a href="./src/resources/disputes.ts">list</a>({ ...params }) -> DisputesCursorPage</code>
- <code title="delete /v1/disputes/{dispute_token}">client.disputes.<a href="./src/resources/disputes.ts">del</a>(disputeToken) -> Dispute</code>
- <code title="post /v1/disputes">client.disputes.<a href="./src/resources/disputes.ts">create</a>({ ...params }) -> DisputeCreateResponse</code>
- <code title="get /v1/disputes/{dispute_token}">client.disputes.<a href="./src/resources/disputes.ts">retrieve</a>(disputeToken) -> DisputeRetrieveResponse</code>
- <code title="patch /v1/disputes/{dispute_token}">client.disputes.<a href="./src/resources/disputes.ts">update</a>(disputeToken, { ...params }) -> DisputeUpdateResponse</code>
- <code title="get /v1/disputes">client.disputes.<a href="./src/resources/disputes.ts">list</a>({ ...params }) -> DisputeListResponsesCursorPage</code>
- <code title="delete /v1/disputes/{dispute_token}">client.disputes.<a href="./src/resources/disputes.ts">del</a>(disputeToken) -> DisputeDeleteResponse</code>
- <code title="delete /v1/disputes/{dispute_token}/evidences/{evidence_token}">client.disputes.<a href="./src/resources/disputes.ts">deleteEvidence</a>(disputeToken, evidenceToken) -> DisputeEvidence</code>
- <code title="post /v1/disputes/{dispute_token}/evidences">client.disputes.<a href="./src/resources/disputes.ts">initiateEvidenceUpload</a>(disputeToken, { ...params }) -> DisputeEvidence</code>
- <code title="get /v1/disputes/{dispute_token}/evidences">client.disputes.<a href="./src/resources/disputes.ts">listEvidences</a>(disputeToken, { ...params }) -> DisputeEvidencesCursorPage</code>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lithic",
"version": "0.120.0",
"version": "0.121.0",
"description": "The official TypeScript library for the Lithic API",
"author": "Lithic <sdk-feedback@lithic.com>",
"types": "dist/index.d.ts",
Expand Down
16 changes: 13 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,20 @@ import {
import {
Dispute,
DisputeCreateParams,
DisputeCreateResponse,
DisputeDeleteResponse,
DisputeEvidence,
DisputeEvidencesCursorPage,
DisputeInitiateEvidenceUploadParams,
DisputeInitiateEvidenceUploadResponse,
DisputeListEvidencesParams,
DisputeListParams,
DisputeListResponse,
DisputeListResponsesCursorPage,
DisputeRetrieveResponse,
DisputeUpdateParams,
DisputeUpdateResponse,
Disputes,
DisputesCursorPage,
} from './resources/disputes';
import {
ExternalPayment,
Expand Down Expand Up @@ -514,7 +519,7 @@ Lithic.BalancesSinglePage = BalancesSinglePage;
Lithic.AggregateBalances = AggregateBalances;
Lithic.AggregateBalancesSinglePage = AggregateBalancesSinglePage;
Lithic.Disputes = Disputes;
Lithic.DisputesCursorPage = DisputesCursorPage;
Lithic.DisputeListResponsesCursorPage = DisputeListResponsesCursorPage;
Lithic.DisputeEvidencesCursorPage = DisputeEvidencesCursorPage;
Lithic.Events = Events;
Lithic.EventsCursorPage = EventsCursorPage;
Expand Down Expand Up @@ -657,8 +662,13 @@ export declare namespace Lithic {
Disputes as Disputes,
type Dispute as Dispute,
type DisputeEvidence as DisputeEvidence,
type DisputeCreateResponse as DisputeCreateResponse,
type DisputeRetrieveResponse as DisputeRetrieveResponse,
type DisputeUpdateResponse as DisputeUpdateResponse,
type DisputeListResponse as DisputeListResponse,
type DisputeDeleteResponse as DisputeDeleteResponse,
type DisputeInitiateEvidenceUploadResponse as DisputeInitiateEvidenceUploadResponse,
DisputesCursorPage as DisputesCursorPage,
DisputeListResponsesCursorPage as DisputeListResponsesCursorPage,
DisputeEvidencesCursorPage as DisputeEvidencesCursorPage,
type DisputeCreateParams as DisputeCreateParams,
type DisputeUpdateParams as DisputeUpdateParams,
Expand Down
2 changes: 2 additions & 0 deletions src/resources/account-activity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ export namespace AccountActivityListResponse {
| 'ACH_ORIGINATION_REVIEWED'
| 'ACH_ORIGINATION_SETTLED'
| 'ACH_RECEIPT_PROCESSED'
| 'ACH_RECEIPT_RELEASED'
| 'ACH_RECEIPT_SETTLED'
| 'ACH_RETURN_INITIATED'
| 'ACH_RETURN_PROCESSED'
Expand Down Expand Up @@ -420,6 +421,7 @@ export namespace AccountActivityRetrieveTransactionResponse {
| 'ACH_ORIGINATION_REVIEWED'
| 'ACH_ORIGINATION_SETTLED'
| 'ACH_RECEIPT_PROCESSED'
| 'ACH_RECEIPT_RELEASED'
| 'ACH_RECEIPT_SETTLED'
| 'ACH_RETURN_INITIATED'
| 'ACH_RETURN_PROCESSED'
Expand Down
9 changes: 5 additions & 4 deletions src/resources/account-holders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,8 @@ export class AccountHolders extends APIResource {
* const document =
* await client.accountHolders.simulateEnrollmentDocumentReview(
* {
* document_upload_token: 'document_upload_token',
* document_upload_token:
* 'b11cd67b-0a52-4180-8365-314f3def5426',
* status: 'UPLOADED',
* },
* );
Expand Down Expand Up @@ -1318,7 +1319,7 @@ export namespace AccountHolderUpdateResponse {
* users of businesses. Pass the account_token of the enrolled business associated
* with the AUTHORIZED_USER in this field.
*/
business_account_token?: string;
business_account_token?: string | null;

/**
* Only present when user_type == "BUSINESS". Information about the business for
Expand Down Expand Up @@ -1768,7 +1769,7 @@ export namespace AccountHolderUpdateResponse {
/**
* The token for the business account that the account holder is associated with
*/
business_account_token?: string;
business_account_token?: string | null;

/**
* The email for the account holder
Expand Down Expand Up @@ -1872,7 +1873,7 @@ export interface AccountHolderSimulateEnrollmentReviewResponse {
* users of businesses. Pass the account_token of the enrolled business associated
* with the AUTHORIZED_USER in this field.
*/
business_account_token?: string;
business_account_token?: string | null;

/**
* Only present when user_type == "BUSINESS". Information about the business for
Expand Down
4 changes: 0 additions & 4 deletions src/resources/auth-rules/auth-rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ import {
MerchantLockParameters,
RuleStats,
V2,
V2ApplyParams,
V2ApplyResponse,
V2CreateParams,
V2CreateResponse,
V2DraftParams,
Expand Down Expand Up @@ -55,7 +53,6 @@ export declare namespace AuthRules {
type V2RetrieveResponse as V2RetrieveResponse,
type V2UpdateResponse as V2UpdateResponse,
type V2ListResponse as V2ListResponse,
type V2ApplyResponse as V2ApplyResponse,
type V2DraftResponse as V2DraftResponse,
type V2PromoteResponse as V2PromoteResponse,
type V2RetrieveFeaturesResponse as V2RetrieveFeaturesResponse,
Expand All @@ -64,7 +61,6 @@ export declare namespace AuthRules {
type V2CreateParams as V2CreateParams,
type V2UpdateParams as V2UpdateParams,
type V2ListParams as V2ListParams,
type V2ApplyParams as V2ApplyParams,
type V2DraftParams as V2DraftParams,
type V2RetrieveFeaturesParams as V2RetrieveFeaturesParams,
type V2RetrieveReportParams as V2RetrieveReportParams,
Expand Down
2 changes: 0 additions & 2 deletions src/resources/auth-rules/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,13 @@ export {
type V2RetrieveResponse,
type V2UpdateResponse,
type V2ListResponse,
type V2ApplyResponse,
type V2DraftResponse,
type V2PromoteResponse,
type V2RetrieveFeaturesResponse,
type V2RetrieveReportResponse,
type V2CreateParams,
type V2UpdateParams,
type V2ListParams,
type V2ApplyParams,
type V2DraftParams,
type V2RetrieveFeaturesParams,
type V2RetrieveReportParams,
Expand Down
16 changes: 0 additions & 16 deletions src/resources/auth-rules/v2/backtests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,6 @@ export class Backtests extends APIResource {
* support for velocity backtests under most configurations. If a historical
* transaction does not feature the required inputs to evaluate the rule, then it
* will not be included in the final backtest report.
*
* @example
* ```ts
* const backtest = await client.authRules.v2.backtests.create(
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
* );
* ```
*/
create(
authRuleToken: string,
Expand Down Expand Up @@ -66,15 +59,6 @@ export class Backtests extends APIResource {
* served backtest report will be consistent with which version of the rule is
* currently activated in the respective event stream, regardless of which version
* of the rule was active in the event stream at the time a backtest is requested.
*
* @example
* ```ts
* const backtestResults =
* await client.authRules.v2.backtests.retrieve(
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
* );
* ```
*/
retrieve(
authRuleToken: string,
Expand Down
2 changes: 0 additions & 2 deletions src/resources/auth-rules/v2/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,13 @@ export {
type V2RetrieveResponse,
type V2UpdateResponse,
type V2ListResponse,
type V2ApplyResponse,
type V2DraftResponse,
type V2PromoteResponse,
type V2RetrieveFeaturesResponse,
type V2RetrieveReportResponse,
type V2CreateParams,
type V2UpdateParams,
type V2ListParams,
type V2ApplyParams,
type V2DraftParams,
type V2RetrieveFeaturesParams,
type V2RetrieveReportParams,
Expand Down
Loading
Loading