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
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "1.7.2"
".": "1.8.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: 17
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cas-parser%2Fcas-parser-56b0f699c5437d9e5326626d35dfc972c17d01f12cb416c7f4854c8ea6d0e95e.yml
openapi_spec_hash: 158f405c1880706266d83e6ff16b9d2f
config_hash: 41c337f5cda03b13880617490f82bad0
configured_endpoints: 21
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cas-parser%2Fcas-parser-d9763d006969b49a1473851069fdfa429eb13133b64103a62963bb70ddb22305.yml
openapi_spec_hash: 6aee689b7a759b12c85c088c15e29bc0
config_hash: 4ab3e1ee76a463e0ed214541260ee12e
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Changelog

## 1.8.0 (2026-02-23)

Full Changelog: [v1.7.2...v1.8.0](https://github.com/CASParser/cas-parser-node/compare/v1.7.2...v1.8.0)

### Features

* **api:** api update ([58b6b46](https://github.com/CASParser/cas-parser-node/commit/58b6b46652f008b870fa189dc960c2d53e1a3887))
* **api:** api update ([a7e9bf9](https://github.com/CASParser/cas-parser-node/commit/a7e9bf9a5e23696d476b150f3149f853994d4f6c))
* **api:** api update ([c7c17cd](https://github.com/CASParser/cas-parser-node/commit/c7c17cd05e594d81b830765d2904c95b6387c1d1))
* **api:** manual updates ([d666a0b](https://github.com/CASParser/cas-parser-node/commit/d666a0b46b2d37de44fd443a92fd4b883a2ba98d))

## 1.7.2 (2026-02-20)

Full Changelog: [v1.7.1...v1.7.2](https://github.com/CASParser/cas-parser-node/compare/v1.7.1...v1.7.2)
Expand Down
26 changes: 21 additions & 5 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Types:

Methods:

- <code title="post /credits">client.credits.<a href="./src/resources/credits.ts">check</a>() -> CreditCheckResponse</code>
- <code title="post /v1/credits">client.credits.<a href="./src/resources/credits.ts">check</a>() -> CreditCheckResponse</code>

# Logs

Expand All @@ -17,8 +17,8 @@ Types:

Methods:

- <code title="post /logs">client.logs.<a href="./src/resources/logs.ts">create</a>({ ...params }) -> LogCreateResponse</code>
- <code title="post /logs/summary">client.logs.<a href="./src/resources/logs.ts">getSummary</a>({ ...params }) -> LogGetSummaryResponse</code>
- <code title="post /v1/usage">client.logs.<a href="./src/resources/logs.ts">create</a>({ ...params }) -> LogCreateResponse</code>
- <code title="post /v1/usage/summary">client.logs.<a href="./src/resources/logs.ts">getSummary</a>({ ...params }) -> LogGetSummaryResponse</code>

# AccessToken

Expand All @@ -28,7 +28,7 @@ Types:

Methods:

- <code title="post /v1/access-token">client.accessToken.<a href="./src/resources/access-token.ts">create</a>({ ...params }) -> AccessTokenCreateResponse</code>
- <code title="post /v1/token">client.accessToken.<a href="./src/resources/access-token.ts">create</a>({ ...params }) -> AccessTokenCreateResponse</code>

# VerifyToken

Expand All @@ -38,7 +38,7 @@ Types:

Methods:

- <code title="post /v1/verify-token">client.verifyToken.<a href="./src/resources/verify-token.ts">verify</a>() -> VerifyTokenVerifyResponse</code>
- <code title="post /v1/token/verify">client.verifyToken.<a href="./src/resources/verify-token.ts">verify</a>() -> VerifyTokenVerifyResponse</code>

# CamsKfintech

Expand Down Expand Up @@ -117,3 +117,19 @@ Methods:
Methods:

- <code title="post /v4/smart/parse">client.smart.<a href="./src/resources/smart.ts">parseCasPdf</a>({ ...params }) -> UnifiedResponse</code>

# InboundEmail

Types:

- <code><a href="./src/resources/inbound-email.ts">InboundEmailCreateResponse</a></code>
- <code><a href="./src/resources/inbound-email.ts">InboundEmailRetrieveResponse</a></code>
- <code><a href="./src/resources/inbound-email.ts">InboundEmailListResponse</a></code>
- <code><a href="./src/resources/inbound-email.ts">InboundEmailDeleteResponse</a></code>

Methods:

- <code title="post /v4/inbound-email">client.inboundEmail.<a href="./src/resources/inbound-email.ts">create</a>({ ...params }) -> InboundEmailCreateResponse</code>
- <code title="get /v4/inbound-email/{inbound_email_id}">client.inboundEmail.<a href="./src/resources/inbound-email.ts">retrieve</a>(inboundEmailID) -> InboundEmailRetrieveResponse</code>
- <code title="get /v4/inbound-email">client.inboundEmail.<a href="./src/resources/inbound-email.ts">list</a>({ ...params }) -> InboundEmailListResponse</code>
- <code title="delete /v4/inbound-email/{inbound_email_id}">client.inboundEmail.<a href="./src/resources/inbound-email.ts">delete</a>(inboundEmailID) -> InboundEmailDeleteResponse</code>
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cas-parser-node",
"version": "1.7.2",
"version": "1.8.0",
"description": "The official TypeScript library for the Cas Parser API",
"author": "Cas Parser <sameer@casparser.in>",
"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": "cas-parser-node-mcp",
"version": "1.7.2",
"version": "1.8.0",
"description": "The official MCP Server for the Cas Parser API",
"author": {
"name": "Cas Parser",
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": "cas-parser-node-mcp",
"version": "1.7.2",
"version": "1.8.0",
"description": "The official MCP Server for the Cas Parser API",
"author": "Cas Parser <sameer@casparser.in>",
"types": "dist/index.d.ts",
Expand Down
34 changes: 29 additions & 5 deletions packages/mcp-server/src/methods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,31 +14,31 @@ export const sdkMethods: SdkMethod[] = [
clientCallName: 'client.credits.check',
fullyQualifiedName: 'credits.check',
httpMethod: 'post',
httpPath: '/credits',
httpPath: '/v1/credits',
},
{
clientCallName: 'client.logs.create',
fullyQualifiedName: 'logs.create',
httpMethod: 'post',
httpPath: '/logs',
httpPath: '/v1/usage',
},
{
clientCallName: 'client.logs.getSummary',
fullyQualifiedName: 'logs.getSummary',
httpMethod: 'post',
httpPath: '/logs/summary',
httpPath: '/v1/usage/summary',
},
{
clientCallName: 'client.accessToken.create',
fullyQualifiedName: 'accessToken.create',
httpMethod: 'post',
httpPath: '/v1/access-token',
httpPath: '/v1/token',
},
{
clientCallName: 'client.verifyToken.verify',
fullyQualifiedName: 'verifyToken.verify',
httpMethod: 'post',
httpPath: '/v1/verify-token',
httpPath: '/v1/token/verify',
},
{
clientCallName: 'client.camsKfintech.parse',
Expand Down Expand Up @@ -112,6 +112,30 @@ export const sdkMethods: SdkMethod[] = [
httpMethod: 'post',
httpPath: '/v4/smart/parse',
},
{
clientCallName: 'client.inboundEmail.create',
fullyQualifiedName: 'inboundEmail.create',
httpMethod: 'post',
httpPath: '/v4/inbound-email',
},
{
clientCallName: 'client.inboundEmail.retrieve',
fullyQualifiedName: 'inboundEmail.retrieve',
httpMethod: 'get',
httpPath: '/v4/inbound-email/{inbound_email_id}',
},
{
clientCallName: 'client.inboundEmail.list',
fullyQualifiedName: 'inboundEmail.list',
httpMethod: 'get',
httpPath: '/v4/inbound-email',
},
{
clientCallName: 'client.inboundEmail.delete',
fullyQualifiedName: 'inboundEmail.delete',
httpMethod: 'delete',
httpPath: '/v4/inbound-email/{inbound_email_id}',
},
];

function allowedMethodsForCodeTool(options: McpOptions | undefined): SdkMethod[] | undefined {
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 @@ -21,7 +21,7 @@ export const newMcpServer = async (stainlessApiKey: string | undefined) =>
new McpServer(
{
name: 'cas_parser_node_api',
version: '1.7.2',
version: '1.8.0',
},
{
instructions: await getInstructions(stainlessApiKey),
Expand Down
21 changes: 21 additions & 0 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@ import {
} from './resources/cams-kfintech';
import { ContractNote, ContractNoteParseParams, ContractNoteParseResponse } from './resources/contract-note';
import { CreditCheckResponse, Credits } from './resources/credits';
import {
InboundEmail,
InboundEmailCreateParams,
InboundEmailCreateResponse,
InboundEmailDeleteResponse,
InboundEmailListParams,
InboundEmailListResponse,
InboundEmailRetrieveResponse,
} from './resources/inbound-email';
import {
Inbox,
InboxCheckConnectionStatusParams,
Expand Down Expand Up @@ -800,6 +809,7 @@ export class CasParser {
kfintech: API.Kfintech = new API.Kfintech(this);
nsdl: API.Nsdl = new API.Nsdl(this);
smart: API.Smart = new API.Smart(this);
inboundEmail: API.InboundEmail = new API.InboundEmail(this);
}

CasParser.Credits = Credits;
Expand All @@ -813,6 +823,7 @@ CasParser.Inbox = Inbox;
CasParser.Kfintech = Kfintech;
CasParser.Nsdl = Nsdl;
CasParser.Smart = Smart;
CasParser.InboundEmail = InboundEmail;

export declare namespace CasParser {
export type RequestOptions = Opts.RequestOptions;
Expand Down Expand Up @@ -872,4 +883,14 @@ export declare namespace CasParser {
export { Nsdl as Nsdl, type NsdlParseParams as NsdlParseParams };

export { Smart as Smart, type SmartParseCasPdfParams as SmartParseCasPdfParams };

export {
InboundEmail as InboundEmail,
type InboundEmailCreateResponse as InboundEmailCreateResponse,
type InboundEmailRetrieveResponse as InboundEmailRetrieveResponse,
type InboundEmailListResponse as InboundEmailListResponse,
type InboundEmailDeleteResponse as InboundEmailDeleteResponse,
type InboundEmailCreateParams as InboundEmailCreateParams,
type InboundEmailListParams as InboundEmailListParams,
};
}
4 changes: 3 additions & 1 deletion src/resources/access-token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ export class AccessToken extends APIResource {
* **Use this endpoint from your backend** to create tokens that can be safely
* passed to frontend/SDK.
*
* **Legacy path:** `/v1/access-token` (still supported)
*
* Access tokens:
*
* - Are prefixed with `at_` for easy identification
Expand All @@ -27,7 +29,7 @@ export class AccessToken extends APIResource {
body: AccessTokenCreateParams | null | undefined = {},
options?: RequestOptions,
): APIPromise<AccessTokenCreateResponse> {
return this._client.post('/v1/access-token', { body, ...options });
return this._client.post('/v1/token', { body, ...options });
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/resources/credits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export class Credits extends APIResource {
* Credits reset at the start of each billing period.
*/
check(options?: RequestOptions): APIPromise<CreditCheckResponse> {
return this._client.post('/credits', options);
return this._client.post('/v1/credits', options);
}
}

Expand Down
Loading