From 44ba1065817708a268b35164b90b83b5d577a223 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 25 Jun 2026 20:27:04 +0000 Subject: [PATCH 1/3] docs(api): update cash_amount field description in card authorizations --- .stats.yml | 4 ++-- src/resources/card-authorizations.ts | 11 ++++++----- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.stats.yml b/.stats.yml index d092e24a..e05fda1e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -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-d83e3ddb148bc0c81ff97bd31b82027d5b37efc110f5981103e7b9a2ae281c86.yml +openapi_spec_hash: f607b0571c4ed82a93a3df7bc9e9351b config_hash: 5bb913c05ebeb301ec925b16e75bb251 diff --git a/src/resources/card-authorizations.ts b/src/resources/card-authorizations.ts index 56c44608..4b17784f 100644 --- a/src/resources/card-authorizations.ts +++ b/src/resources/card-authorizations.ts @@ -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; From c9a95d61c333d322c161adec65b150ba2e642f2c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 29 Jun 2026 12:33:24 +0000 Subject: [PATCH 2/3] feat(api): add category discriminator and payment fields to case transactions --- .stats.yml | 4 +- packages/mcp-server/src/local-docs-search.ts | 8 +- .../transaction-monitoring/cases/cases.ts | 78 ++++++++++++++----- 3 files changed, 66 insertions(+), 24 deletions(-) diff --git a/.stats.yml b/.stats.yml index e05fda1e..189b2dd2 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 214 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-d83e3ddb148bc0c81ff97bd31b82027d5b37efc110f5981103e7b9a2ae281c86.yml -openapi_spec_hash: f607b0571c4ed82a93a3df7bc9e9351b +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-9e397c65ffb81e2928b8ecf979769a79131ae6058b6fb373a5e930dc8a168732.yml +openapi_spec_hash: 93aea3855d2d1c390107d223762aa818 config_hash: 5bb913c05ebeb301ec925b16e75bb251 diff --git a/packages/mcp-server/src/local-docs-search.ts b/packages/mcp-server/src/local-docs-search.ts index a23e8e42..a542d9af 100644 --- a/packages/mcp-server/src/local-docs-search.ts +++ b/packages/mcp-server/src/local-docs-search.ts @@ -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', diff --git a/src/resources/transaction-monitoring/cases/cases.ts b/src/resources/transaction-monitoring/cases/cases.ts index e8da87af..91406f47 100644 --- a/src/resources/transaction-monitoring/cases/cases.ts +++ b/src/resources/transaction-monitoring/cases/cases.ts @@ -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; + } } /** From f4c4b1e452c961bf31fd000305cfbf0f2acd57ed Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 29 Jun 2026 12:34:28 +0000 Subject: [PATCH 3/3] release: 0.144.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 13 +++++++++++++ package.json | 2 +- packages/mcp-server/manifest.json | 2 +- packages/mcp-server/package.json | 2 +- packages/mcp-server/src/server.ts | 2 +- src/version.ts | 2 +- 7 files changed, 19 insertions(+), 6 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index d147a1aa..6255c680 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.143.0" + ".": "0.144.0" } diff --git a/CHANGELOG.md b/CHANGELOG.md index fd5baa02..a0fa287b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/package.json b/package.json index 32f491da..1bebc2c2 100644 --- a/package.json +++ b/package.json @@ -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 ", "types": "dist/index.d.ts", diff --git a/packages/mcp-server/manifest.json b/packages/mcp-server/manifest.json index 0ac8889b..653fe9d1 100644 --- a/packages/mcp-server/manifest.json +++ b/packages/mcp-server/manifest.json @@ -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", diff --git a/packages/mcp-server/package.json b/packages/mcp-server/package.json index b0c47f26..c1124e63 100644 --- a/packages/mcp-server/package.json +++ b/packages/mcp-server/package.json @@ -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 ", "types": "dist/index.d.ts", diff --git a/packages/mcp-server/src/server.ts b/packages/mcp-server/src/server.ts index b398f9b9..650f59f0 100644 --- a/packages/mcp-server/src/server.ts +++ b/packages/mcp-server/src/server.ts @@ -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 }), diff --git a/src/version.ts b/src/version.ts index 3a6782e3..3a430fbb 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '0.143.0'; // x-release-please-version +export const VERSION = '0.144.0'; // x-release-please-version