Skip to content
Merged
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
1 change: 0 additions & 1 deletion .eslintcache

This file was deleted.

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.118.0"
".": "0.119.0"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 170
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-1a0e3a42c88b88140af0f9ad05ab0026fc87f0a500d6879c86b93dfa7f923810.yml
openapi_spec_hash: 2b4db6185c6e4ab3626461a448c97d4b
config_hash: 7a6a0c0bab3306093c6c171cd7407a45
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-b1839661d8405911184d5cb7230f16e626a616e5b744634bd7f0bb4e730bf899.yml
openapi_spec_hash: c1c2c5a5c2a4067a714b35f873e3846f
config_hash: 98214f2eab6804b5c0048331e32c08e3
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Changelog

## 0.119.0 (2025-10-08)

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

### Features

* **api:** adds support for Auto-Collections ([54b4ed7](https://github.com/lithic-com/lithic-node/commit/54b4ed76bcbd4d4dfebf231ec3dfad676cdfa1f8))


### Chores

* **internal:** remove .eslintcache ([f527ccb](https://github.com/lithic-com/lithic-node/commit/f527ccbd82f42ad097d14a2f869533d810869751))
* **internal:** use npm pack for build uploads ([26fb1ba](https://github.com/lithic-com/lithic-node/commit/26fb1ba36b520046dc131b9c1a22fa4351474747))

## 0.118.0 (2025-09-30)

Full Changelog: [v0.117.0...v0.118.0](https://github.com/lithic-com/lithic-node/compare/v0.117.0...v0.118.0)
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.118.0",
"version": "0.119.0",
"description": "The official TypeScript library for the Lithic API",
"author": "Lithic <sdk-feedback@lithic.com>",
"types": "dist/index.d.ts",
Expand Down
6 changes: 4 additions & 2 deletions scripts/utils/upload-artifact.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ if [[ "$SIGNED_URL" == "null" ]]; then
exit 1
fi

UPLOAD_RESPONSE=$(tar "${BASE_PATH:+-C$BASE_PATH}" -cz "${ARTIFACT_PATH:-dist}" | curl -v -X PUT \
TARBALL=$(cd dist && npm pack --silent)

UPLOAD_RESPONSE=$(curl -v -X PUT \
-H "Content-Type: application/gzip" \
--data-binary @- "$SIGNED_URL" 2>&1)
--data-binary "@dist/$TARBALL" "$SIGNED_URL" 2>&1)

if echo "$UPLOAD_RESPONSE" | grep -q "HTTP/[0-9.]* 200"; then
echo -e "\033[32mUploaded build to Stainless storage.\033[0m"
Expand Down
71 changes: 47 additions & 24 deletions src/resources/account-activity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@ export namespace AccountActivityListResponse {
category:
| 'ACH'
| 'BALANCE_OR_FUNDING'
| 'FEE'
| 'REWARD'
| 'ADJUSTMENT'
| 'DERECOGNITION'
| 'DISPUTE'
| 'CARD'
| 'EXTERNAL_ACH'
| 'EXTERNAL_CHECK'
Expand Down Expand Up @@ -192,12 +197,14 @@ export namespace AccountActivityListResponse {
| 'ACH_ORIGINATION_INITIATED'
| 'ACH_ORIGINATION_PROCESSED'
| 'ACH_ORIGINATION_RELEASED'
| 'ACH_ORIGINATION_REJECTED'
| 'ACH_ORIGINATION_REVIEWED'
| 'ACH_ORIGINATION_SETTLED'
| 'ACH_RECEIPT_PROCESSED'
| 'ACH_RECEIPT_SETTLED'
| 'ACH_RETURN_INITIATED'
| 'ACH_RETURN_PROCESSED'
| 'ACH_RETURN_REJECTED'
| 'ACH_RETURN_SETTLED'
| 'AUTHORIZATION'
| 'AUTHORIZATION_ADVICE'
Expand Down Expand Up @@ -269,19 +276,15 @@ export namespace AccountActivityListResponse {
token: string;

category:
| 'ACH'
| 'ADJUSTMENT'
| 'BALANCE_OR_FUNDING'
| 'CARD'
| 'EXTERNAL_ACH'
| 'EXTERNAL_CHECK'
| 'EXTERNAL_TRANSFER'
| 'EXTERNAL_WIRE'
| 'MANAGEMENT_ADJUSTMENT'
| 'MANAGEMENT_DISPUTE'
| 'MANAGEMENT_FEE'
| 'MANAGEMENT_REWARD'
| 'MANAGEMENT_DISBURSEMENT'
| 'PROGRAM_FUNDING';
| 'DERECOGNITION'
| 'DISPUTE'
| 'FEE'
| 'INTERNAL'
| 'REWARD'
| 'PROGRAM_FUNDING'
| 'TRANSFER';

/**
* ISO 8601 timestamp of when the transaction was created
Expand Down Expand Up @@ -388,6 +391,7 @@ export namespace AccountActivityListResponse {
* Type of the book transfer
*/
type:
| 'ATM_BALANCE_INQUIRY'
| 'ATM_WITHDRAWAL'
| 'ATM_DECLINE'
| 'INTERNATIONAL_ATM_WITHDRAWAL'
Expand Down Expand Up @@ -475,6 +479,11 @@ export namespace AccountActivityListResponse {
category:
| 'ACH'
| 'BALANCE_OR_FUNDING'
| 'FEE'
| 'REWARD'
| 'ADJUSTMENT'
| 'DERECOGNITION'
| 'DISPUTE'
| 'CARD'
| 'EXTERNAL_ACH'
| 'EXTERNAL_CHECK'
Expand Down Expand Up @@ -773,6 +782,11 @@ export namespace AccountActivityRetrieveTransactionResponse {
category:
| 'ACH'
| 'BALANCE_OR_FUNDING'
| 'FEE'
| 'REWARD'
| 'ADJUSTMENT'
| 'DERECOGNITION'
| 'DISPUTE'
| 'CARD'
| 'EXTERNAL_ACH'
| 'EXTERNAL_CHECK'
Expand Down Expand Up @@ -870,12 +884,14 @@ export namespace AccountActivityRetrieveTransactionResponse {
| 'ACH_ORIGINATION_INITIATED'
| 'ACH_ORIGINATION_PROCESSED'
| 'ACH_ORIGINATION_RELEASED'
| 'ACH_ORIGINATION_REJECTED'
| 'ACH_ORIGINATION_REVIEWED'
| 'ACH_ORIGINATION_SETTLED'
| 'ACH_RECEIPT_PROCESSED'
| 'ACH_RECEIPT_SETTLED'
| 'ACH_RETURN_INITIATED'
| 'ACH_RETURN_PROCESSED'
| 'ACH_RETURN_REJECTED'
| 'ACH_RETURN_SETTLED'
| 'AUTHORIZATION'
| 'AUTHORIZATION_ADVICE'
Expand Down Expand Up @@ -947,19 +963,15 @@ export namespace AccountActivityRetrieveTransactionResponse {
token: string;

category:
| 'ACH'
| 'ADJUSTMENT'
| 'BALANCE_OR_FUNDING'
| 'CARD'
| 'EXTERNAL_ACH'
| 'EXTERNAL_CHECK'
| 'EXTERNAL_TRANSFER'
| 'EXTERNAL_WIRE'
| 'MANAGEMENT_ADJUSTMENT'
| 'MANAGEMENT_DISPUTE'
| 'MANAGEMENT_FEE'
| 'MANAGEMENT_REWARD'
| 'MANAGEMENT_DISBURSEMENT'
| 'PROGRAM_FUNDING';
| 'DERECOGNITION'
| 'DISPUTE'
| 'FEE'
| 'INTERNAL'
| 'REWARD'
| 'PROGRAM_FUNDING'
| 'TRANSFER';

/**
* ISO 8601 timestamp of when the transaction was created
Expand Down Expand Up @@ -1066,6 +1078,7 @@ export namespace AccountActivityRetrieveTransactionResponse {
* Type of the book transfer
*/
type:
| 'ATM_BALANCE_INQUIRY'
| 'ATM_WITHDRAWAL'
| 'ATM_DECLINE'
| 'INTERNATIONAL_ATM_WITHDRAWAL'
Expand Down Expand Up @@ -1153,6 +1166,11 @@ export namespace AccountActivityRetrieveTransactionResponse {
category:
| 'ACH'
| 'BALANCE_OR_FUNDING'
| 'FEE'
| 'REWARD'
| 'ADJUSTMENT'
| 'DERECOGNITION'
| 'DISPUTE'
| 'CARD'
| 'EXTERNAL_ACH'
| 'EXTERNAL_CHECK'
Expand Down Expand Up @@ -1447,6 +1465,11 @@ export interface AccountActivityListParams extends CursorPageParams {
category?:
| 'ACH'
| 'BALANCE_OR_FUNDING'
| 'FEE'
| 'REWARD'
| 'ADJUSTMENT'
| 'DERECOGNITION'
| 'DISPUTE'
| 'CARD'
| 'EXTERNAL_ACH'
| 'EXTERNAL_CHECK'
Expand Down
19 changes: 6 additions & 13 deletions src/resources/auth-rules/v2/v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3689,29 +3689,22 @@ export declare namespace V2CreateParams {
}

export type V2UpdateParams =
| V2UpdateParams.Variant0
| V2UpdateParams.Variant1
| V2UpdateParams.AccountLevelRule
| V2UpdateParams.CardLevelRule
| V2UpdateParams.ProgramLevelRule;

export declare namespace V2UpdateParams {
export interface Variant0 {
export interface AccountLevelRule {
/**
* Auth Rule Name
* Account tokens to which the Auth Rule applies.
*/
name?: string | null;
account_tokens?: Array<string>;

/**
* The desired state of the Auth Rule.
*
* Note that only deactivating an Auth Rule through this endpoint is supported at
* this time. If you need to (re-)activate an Auth Rule the /promote endpoint
* should be used to promote a draft to the currently active version.
* Business Account tokens to which the Auth Rule applies.
*/
state?: 'INACTIVE';
}
business_account_tokens?: Array<string>;

export interface Variant1 {
/**
* Auth Rule Name
*/
Expand Down
40 changes: 28 additions & 12 deletions src/resources/book-transfers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,16 @@ export interface BookTransferResponse {
*/
token: string;

/**
* Category of the book transfer
*/
category: 'ADJUSTMENT' | 'BALANCE_OR_FUNDING' | 'DERECOGNITION' | 'DISPUTE' | 'FEE' | 'REWARD' | 'TRANSFER';
category:
| 'ADJUSTMENT'
| 'BALANCE_OR_FUNDING'
| 'DERECOGNITION'
| 'DISPUTE'
| 'FEE'
| 'INTERNAL'
| 'REWARD'
| 'PROGRAM_FUNDING'
| 'TRANSFER';

/**
* Date and time when the transfer occurred. UTC time zone.
Expand Down Expand Up @@ -192,6 +198,7 @@ export namespace BookTransferResponse {
* Type of the book transfer
*/
type:
| 'ATM_BALANCE_INQUIRY'
| 'ATM_WITHDRAWAL'
| 'ATM_DECLINE'
| 'INTERNATIONAL_ATM_WITHDRAWAL'
Expand Down Expand Up @@ -247,10 +254,16 @@ export interface BookTransferCreateParams {
*/
amount: number;

/**
* Category of the book transfer
*/
category: 'ADJUSTMENT' | 'BALANCE_OR_FUNDING' | 'DERECOGNITION' | 'DISPUTE' | 'FEE' | 'REWARD' | 'TRANSFER';
category:
| 'ADJUSTMENT'
| 'BALANCE_OR_FUNDING'
| 'DERECOGNITION'
| 'DISPUTE'
| 'FEE'
| 'INTERNAL'
| 'REWARD'
| 'PROGRAM_FUNDING'
| 'TRANSFER';

/**
* Globally unique identifier for the financial account or card that will send the
Expand All @@ -273,6 +286,7 @@ export interface BookTransferCreateParams {
* Type of the book transfer
*/
type:
| 'ATM_BALANCE_INQUIRY'
| 'ATM_WITHDRAWAL'
| 'ATM_DECLINE'
| 'INTERNATIONAL_ATM_WITHDRAWAL'
Expand Down Expand Up @@ -345,13 +359,15 @@ export interface BookTransferListParams extends CursorPageParams {
* Book Transfer category to be returned.
*/
category?:
| 'BALANCE_OR_FUNDING'
| 'FEE'
| 'REWARD'
| 'ADJUSTMENT'
| 'BALANCE_OR_FUNDING'
| 'DERECOGNITION'
| 'DISPUTE'
| 'INTERNAL';
| 'FEE'
| 'INTERNAL'
| 'REWARD'
| 'PROGRAM_FUNDING'
| 'TRANSFER';

/**
* Date string in RFC 3339 format. Only entries created before the specified time
Expand Down
22 changes: 22 additions & 0 deletions src/resources/financial-accounts/credit-configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ export interface FinancialAccountCreditConfig {
*/
account_token: string;

auto_collection_configuration: FinancialAccountCreditConfig.AutoCollectionConfiguration;

/**
* Reason for the financial account being marked as Charged Off
*/
Expand Down Expand Up @@ -91,7 +93,18 @@ export interface FinancialAccountCreditConfig {
tier: string | null;
}

export namespace FinancialAccountCreditConfig {
export interface AutoCollectionConfiguration {
/**
* If auto collection is enabled for this account
*/
auto_collection_enabled: boolean;
}
}

export interface CreditConfigurationUpdateParams {
auto_collection_configuration?: CreditConfigurationUpdateParams.AutoCollectionConfiguration;

credit_limit?: number;

/**
Expand All @@ -107,6 +120,15 @@ export interface CreditConfigurationUpdateParams {
tier?: string;
}

export namespace CreditConfigurationUpdateParams {
export interface AutoCollectionConfiguration {
/**
* If auto collection is enabled for this account
*/
auto_collection_enabled?: boolean;
}
}

export declare namespace CreditConfiguration {
export {
type FinancialAccountCreditConfig as FinancialAccountCreditConfig,
Expand Down
Loading