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.143.0"
".": "0.144.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 214
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-47e9f78d22682623e313f1689f5fa7e3420575ff285a14a2f4704c49ffb6b72e.yml
openapi_spec_hash: 4797fe46d942cb32e648a79015783d01
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-9e397c65ffb81e2928b8ecf979769a79131ae6058b6fb373a5e930dc8a168732.yml
openapi_spec_hash: 93aea3855d2d1c390107d223762aa818
config_hash: 5bb913c05ebeb301ec925b16e75bb251
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 0.144.0 (2026-06-29)

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

### Features

* **api:** add category discriminator and payment fields to case transactions ([c9a95d6](https://github.com/lithic-com/lithic-node/commit/c9a95d61c333d322c161adec65b150ba2e642f2c))


### Documentation

* **api:** update cash_amount field description in card authorizations ([44ba106](https://github.com/lithic-com/lithic-node/commit/44ba1065817708a268b35164b90b83b5d577a223))

## 0.143.0 (2026-06-23)

Full Changelog: [v0.142.0...v0.143.0](https://github.com/lithic-com/lithic-node/compare/v0.142.0...v0.143.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.143.0",
"version": "0.144.0",
"description": "The official TypeScript library for the Lithic API",
"author": "Lithic <sdk-feedback@lithic.com>",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/mcp-server/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"dxt_version": "0.2",
"name": "lithic-mcp",
"version": "0.143.0",
"version": "0.144.0",
"description": "The official MCP Server for the Lithic API",
"author": {
"name": "Lithic",
Expand Down
2 changes: 1 addition & 1 deletion packages/mcp-server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lithic-mcp",
"version": "0.143.0",
"version": "0.144.0",
"description": "The official MCP Server for the Lithic API",
"author": "Lithic <sdk-feedback@lithic.com>",
"types": "dist/index.d.ts",
Expand Down
8 changes: 4 additions & 4 deletions packages/mcp-server/src/local-docs-search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1876,19 +1876,19 @@ const EMBEDDED_METHODS: MethodEntry[] = [
'starting_after?: string;',
],
response:
'{ token: string; account_token: string; added_at: string; card_token: string; transaction_created_at: string; }',
"{ token: string; account_token: string; added_at: string; card_token: string; category: 'CARD'; transaction_created_at: string; } | { token: string; added_at: string; category: 'PAYMENT'; financial_account_token: string; transaction_created_at: string; account_token?: string; }",
markdown:
"## list_transactions\n\n`client.transactionMonitoring.cases.listTransactions(case_token: string, ending_before?: string, page_size?: number, starting_after?: string): { token: string; account_token: string; added_at: string; card_token: string; transaction_created_at: string; }`\n\n**get** `/v1/transaction_monitoring/cases/{case_token}/transactions`\n\nLists the transactions associated with a case.\n\n### Parameters\n\n- `case_token: string`\n\n- `ending_before?: string`\n A cursor representing an item's token before which a page of results should end. Used to retrieve the previous page of results before this item.\n\n- `page_size?: number`\n Page size (for pagination).\n\n- `starting_after?: string`\n A cursor representing an item's token after which a page of results should begin. Used to retrieve the next page of results after this item.\n\n### Returns\n\n- `{ token: string; account_token: string; added_at: string; card_token: string; transaction_created_at: string; }`\n A single transaction associated with a case\n\n - `token: string`\n - `account_token: string`\n - `added_at: string`\n - `card_token: string`\n - `transaction_created_at: string`\n\n### Example\n\n```typescript\nimport Lithic from 'lithic';\n\nconst client = new Lithic();\n\n// Automatically fetches more pages as needed.\nfor await (const caseTransaction of client.transactionMonitoring.cases.listTransactions('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e')) {\n console.log(caseTransaction);\n}\n```",
"## list_transactions\n\n`client.transactionMonitoring.cases.listTransactions(case_token: string, ending_before?: string, page_size?: number, starting_after?: string): { token: string; account_token: string; added_at: string; card_token: string; category: 'CARD'; transaction_created_at: string; } | { token: string; added_at: string; category: 'PAYMENT'; financial_account_token: string; transaction_created_at: string; account_token?: string; }`\n\n**get** `/v1/transaction_monitoring/cases/{case_token}/transactions`\n\nLists the transactions associated with a case.\n\n### Parameters\n\n- `case_token: string`\n\n- `ending_before?: string`\n A cursor representing an item's token before which a page of results should end. Used to retrieve the previous page of results before this item.\n\n- `page_size?: number`\n Page size (for pagination).\n\n- `starting_after?: string`\n A cursor representing an item's token after which a page of results should begin. Used to retrieve the next page of results after this item.\n\n### Returns\n\n- `{ token: string; account_token: string; added_at: string; card_token: string; category: 'CARD'; transaction_created_at: string; } | { token: string; added_at: string; category: 'PAYMENT'; financial_account_token: string; transaction_created_at: string; account_token?: string; }`\n A single transaction associated with a case. The `category` field identifies whether this is a\ncard transaction or a payment transaction.\n\n\n### Example\n\n```typescript\nimport Lithic from 'lithic';\n\nconst client = new Lithic();\n\n// Automatically fetches more pages as needed.\nfor await (const caseTransaction of client.transactionMonitoring.cases.listTransactions('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e')) {\n console.log(caseTransaction);\n}\n```",
perLanguage: {
typescript: {
method: 'client.transactionMonitoring.cases.listTransactions',
example:
"import Lithic from 'lithic';\n\nconst client = new Lithic({\n apiKey: process.env['LITHIC_API_KEY'], // This is the default and can be omitted\n});\n\n// Automatically fetches more pages as needed.\nfor await (const caseTransaction of client.transactionMonitoring.cases.listTransactions(\n '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',\n)) {\n console.log(caseTransaction.token);\n}",
"import Lithic from 'lithic';\n\nconst client = new Lithic({\n apiKey: process.env['LITHIC_API_KEY'], // This is the default and can be omitted\n});\n\n// Automatically fetches more pages as needed.\nfor await (const caseTransaction of client.transactionMonitoring.cases.listTransactions(\n '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',\n)) {\n console.log(caseTransaction);\n}",
},
python: {
method: 'transaction_monitoring.cases.list_transactions',
example:
'import os\nfrom lithic import Lithic\n\nclient = Lithic(\n api_key=os.environ.get("LITHIC_API_KEY"), # This is the default and can be omitted\n)\npage = client.transaction_monitoring.cases.list_transactions(\n case_token="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",\n)\npage = page.data[0]\nprint(page.token)',
'import os\nfrom lithic import Lithic\n\nclient = Lithic(\n api_key=os.environ.get("LITHIC_API_KEY"), # This is the default and can be omitted\n)\npage = client.transaction_monitoring.cases.list_transactions(\n case_token="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",\n)\npage = page.data[0]\nprint(page)',
},
java: {
method: 'transactionMonitoring().cases().listTransactions',
Expand Down
2 changes: 1 addition & 1 deletion packages/mcp-server/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const newMcpServer = async ({
new McpServer(
{
name: 'lithic_api',
version: '0.143.0',
version: '0.144.0',
},
{
instructions: await getInstructions({ stainlessApiKey, customInstructionsPath }),
Expand Down
11 changes: 6 additions & 5 deletions src/resources/card-authorizations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,13 @@ export interface CardAuthorization {
cardholder_currency: string;

/**
* The portion of the transaction requested as cash back by the cardholder, and
* does not include any acquirer fees. The amount field includes the purchase
* amount, the requested cash back amount, and any acquirer fees.
* The amount of cash requested by the cardholder, in the cardholder billing
* currency's smallest unit. For purchase-with-cashback transactions this is the
* cashback portion only; for ATM transactions this is the full amount. This amount
* includes all acquirer fees.
*
* If no cash back was requested, the value of this field will be 0, and the field
* will always be present.
* If no cash was requested, the value of this field will be 0, and the field will
* always be present.
*/
cash_amount: number;

Expand Down
78 changes: 60 additions & 18 deletions src/resources/transaction-monitoring/cases/cases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,33 +241,75 @@ export type CaseSortOrder =
export type CaseStatus = 'OPEN' | 'ASSIGNED' | 'IN_REVIEW' | 'ESCALATED' | 'RESOLVED' | 'CLOSED';

/**
* A single transaction associated with a case
* A single transaction associated with a case. The `category` field identifies
* whether this is a card transaction or a payment transaction.
*/
export interface CaseTransaction {
/**
* Globally unique identifier for the transaction
*/
token: string;
export type CaseTransaction = CaseTransaction.CardCaseTransaction | CaseTransaction.PaymentCaseTransaction;

export namespace CaseTransaction {
/**
* Token of the account the transaction belongs to
* A card transaction associated with a case
*/
account_token: string;
export interface CardCaseTransaction {
/**
* Globally unique identifier for the card transaction
*/
token: string;

/**
* Date and time at which the transaction was added to the case
*/
added_at: string;
/**
* Token of the account the transaction belongs to
*/
account_token: string;

/**
* Token of the card the transaction was made on
*/
card_token: string;
/**
* Date and time at which the transaction was added to the case
*/
added_at: string;

/**
* Token of the card the transaction was made on
*/
card_token: string;

category: 'CARD';

/**
* Date and time at which the transaction was created
*/
transaction_created_at: string;
}

/**
* Date and time at which the transaction was created
* A payment (ACH) transaction associated with a case
*/
transaction_created_at: string;
export interface PaymentCaseTransaction {
/**
* Globally unique identifier for the payment transaction
*/
token: string;

/**
* Date and time at which the transaction was added to the case
*/
added_at: string;

category: 'PAYMENT';

/**
* Token of the financial account the payment belongs to
*/
financial_account_token: string;

/**
* Date and time at which the transaction was created
*/
transaction_created_at: string;

/**
* Token of the account the payment belongs to, if applicable
*/
account_token?: string;
}
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const VERSION = '0.143.0'; // x-release-please-version
export const VERSION = '0.144.0'; // x-release-please-version
Loading