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 @@
{
".": "1.14.0"
".": "1.15.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: 21
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cas-parser/cas-parser-902b4d5af31c8c6bab33a08d9cea10f3444be221abf735466eb9fd58a14e0a87.yml
openapi_spec_hash: e333f46097f3a3a452cb4d6564a3db67
configured_endpoints: 20
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cas-parser/cas-parser-26d0931f3488af784c16303683cbf24225c727615fd32ee071144974e7c59670.yml
openapi_spec_hash: 242a5f4d982645a25e0d66ef088940a5
config_hash: 5509bb7a961ae2e79114b24c381606d4
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 1.15.0 (2026-07-26)

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

### Features

* **api:** api update ([5c2221d](https://github.com/CASParser/cas-parser-node/commit/5c2221df1ef6b413dd01f55942b60bc31c6c8414))

## 1.14.0 (2026-07-18)

Full Changelog: [v1.13.2...v1.14.0](https://github.com/CASParser/cas-parser-node/compare/v1.13.2...v1.14.0)
Expand Down
8 changes: 0 additions & 8 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,6 @@ Methods:

# Kfintech

Types:

- <code><a href="./src/resources/kfintech.ts">KfintechGenerateCasResponse</a></code>

Methods:

- <code title="post /v4/kfintech/generate">client.kfintech.<a href="./src/resources/kfintech.ts">generateCas</a>({ ...params }) -> KfintechGenerateCasResponse</code>

# Nsdl

Methods:
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": "cas-parser-node",
"version": "1.14.0",
"version": "1.15.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.14.0",
"version": "1.15.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.14.0",
"version": "1.15.0",
"description": "The official MCP Server for the Cas Parser API",
"author": "Cas Parser <sameer@casparser.in>",
"types": "dist/index.d.ts",
Expand Down
1 change: 0 additions & 1 deletion packages/mcp-server/src/code-tool-worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ const fuse = new Fuse(
'client.inbox.connectEmail',
'client.inbox.disconnectEmail',
'client.inbox.listCasFiles',
'client.kfintech.generateCas',
'client.nsdl.parse',
'client.smart.parseCasPdf',
'client.inboundEmail.create',
Expand Down
51 changes: 0 additions & 51 deletions packages/mcp-server/src/local-docs-search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -695,57 +695,6 @@ const EMBEDDED_METHODS: MethodEntry[] = [
},
},
},
{
name: 'generate_cas',
endpoint: '/v4/kfintech/generate',
httpMethod: 'post',
summary: 'KFintech CAS Generator (Email Mailback)',
description:
"Generate CAS via KFintech mailback. The CAS PDF will be sent to the investor's email.\n\nThis is an async operation - the investor receives the CAS via email within a few minutes.\nFor instant CAS retrieval, use CDSL Fetch (`/v4/cdsl/fetch`).\n",
stainlessPath: '(resource) kfintech > (method) generate_cas',
qualified: 'client.kfintech.generateCas',
params: [
'email: string;',
'from_date: string;',
'password: string;',
'to_date: string;',
'pan_no?: string;',
],
response: '{ msg?: string; status?: string; }',
markdown:
"## generate_cas\n\n`client.kfintech.generateCas(email: string, from_date: string, password: string, to_date: string, pan_no?: string): { msg?: string; status?: string; }`\n\n**post** `/v4/kfintech/generate`\n\nGenerate CAS via KFintech mailback. The CAS PDF will be sent to the investor's email.\n\nThis is an async operation - the investor receives the CAS via email within a few minutes.\nFor instant CAS retrieval, use CDSL Fetch (`/v4/cdsl/fetch`).\n\n\n### Parameters\n\n- `email: string`\n Email address to receive the CAS document\n\n- `from_date: string`\n Start date (YYYY-MM-DD)\n\n- `password: string`\n Password for the PDF\n\n- `to_date: string`\n End date (YYYY-MM-DD)\n\n- `pan_no?: string`\n PAN number (optional)\n\n### Returns\n\n- `{ msg?: string; status?: string; }`\n\n - `msg?: string`\n - `status?: string`\n\n### Example\n\n```typescript\nimport CasParser from 'cas-parser-node';\n\nconst client = new CasParser();\n\nconst response = await client.kfintech.generateCas({\n email: 'user@example.com',\n from_date: '2023-01-01',\n password: 'Abcdefghi12$',\n to_date: '2023-12-31',\n});\n\nconsole.log(response);\n```",
perLanguage: {
typescript: {
method: 'client.kfintech.generateCas',
example:
"import CasParser from 'cas-parser-node';\n\nconst client = new CasParser({\n apiKey: process.env['CAS_PARSER_API_KEY'], // This is the default and can be omitted\n});\n\nconst response = await client.kfintech.generateCas({\n email: 'user@example.com',\n from_date: '2023-01-01',\n password: 'Abcdefghi12$',\n to_date: '2023-12-31',\n});\n\nconsole.log(response.msg);",
},
python: {
method: 'kfintech.generate_cas',
example:
'import os\nfrom cas_parser import CasParser\n\nclient = CasParser(\n api_key=os.environ.get("CAS_PARSER_API_KEY"), # This is the default and can be omitted\n)\nresponse = client.kfintech.generate_cas(\n email="user@example.com",\n from_date="2023-01-01",\n password="Abcdefghi12$",\n to_date="2023-12-31",\n)\nprint(response.msg)',
},
java: {
method: 'kfintech().generateCas',
example:
'package com.cas_parser.api.example;\n\nimport com.cas_parser.api.client.CasParserClient;\nimport com.cas_parser.api.client.okhttp.CasParserOkHttpClient;\nimport com.cas_parser.api.models.kfintech.KfintechGenerateCasParams;\nimport com.cas_parser.api.models.kfintech.KfintechGenerateCasResponse;\n\npublic final class Main {\n private Main() {}\n\n public static void main(String[] args) {\n CasParserClient client = CasParserOkHttpClient.fromEnv();\n\n KfintechGenerateCasParams params = KfintechGenerateCasParams.builder()\n .email("user@example.com")\n .fromDate("2023-01-01")\n .password("Abcdefghi12$")\n .toDate("2023-12-31")\n .build();\n KfintechGenerateCasResponse response = client.kfintech().generateCas(params);\n }\n}',
},
go: {
method: 'client.Kfintech.GenerateCas',
example:
'package main\n\nimport (\n\t"context"\n\t"fmt"\n\n\t"github.com/CASParser/cas-parser-go"\n\t"github.com/CASParser/cas-parser-go/option"\n)\n\nfunc main() {\n\tclient := casparser.NewClient(\n\t\toption.WithAPIKey("My API Key"),\n\t)\n\tresponse, err := client.Kfintech.GenerateCas(context.TODO(), casparser.KfintechGenerateCasParams{\n\t\tEmail: "user@example.com",\n\t\tFromDate: "2023-01-01",\n\t\tPassword: "Abcdefghi12$",\n\t\tToDate: "2023-12-31",\n\t})\n\tif err != nil {\n\t\tpanic(err.Error())\n\t}\n\tfmt.Printf("%+v\\n", response.Msg)\n}\n',
},
php: {
method: 'kfintech->generateCas',
example:
"<?php\n\nrequire_once dirname(__DIR__) . '/vendor/autoload.php';\n\n$client = new Client(apiKey: 'My API Key');\n\n$response = $client->kfintech->generateCas(\n email: 'user@example.com',\n fromDate: '2023-01-01',\n password: 'Abcdefghi12$',\n toDate: '2023-12-31',\n panNo: 'ABCDE1234F',\n);\n\nvar_dump($response);",
},
http: {
example:
'curl https://api.casparser.in/v4/kfintech/generate \\\n -H \'Content-Type: application/json\' \\\n -H "x-api-key: $CAS_PARSER_API_KEY" \\\n -d \'{\n "email": "user@example.com",\n "from_date": "2023-01-01",\n "password": "Abcdefghi12$",\n "to_date": "2023-12-31",\n "pan_no": "ABCDE1234F"\n }\'',
},
},
},
{
name: 'parse',
endpoint: '/v4/nsdl/parse',
Expand Down
6 changes: 0 additions & 6 deletions packages/mcp-server/src/methods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,6 @@ export const sdkMethods: SdkMethod[] = [
httpMethod: 'post',
httpPath: '/v4/inbox/cas',
},
{
clientCallName: 'client.kfintech.generateCas',
fullyQualifiedName: 'kfintech.generateCas',
httpMethod: 'post',
httpPath: '/v4/kfintech/generate',
},
{
clientCallName: 'client.nsdl.parse',
fullyQualifiedName: 'nsdl.parse',
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 @@ -28,7 +28,7 @@ export const newMcpServer = async ({
new McpServer(
{
name: 'cas_parser_node_api',
version: '1.14.0',
version: '1.15.0',
},
{
instructions: await getInstructions({ stainlessApiKey, customInstructionsPath }),
Expand Down
11 changes: 2 additions & 9 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ import {
InboxListCasFilesParams,
InboxListCasFilesResponse,
} from './resources/inbox';
import { Kfintech, KfintechGenerateCasParams, KfintechGenerateCasResponse } from './resources/kfintech';
import { Kfintech } from './resources/kfintech';
import {
LogCreateParams,
LogCreateResponse,
Expand Down Expand Up @@ -838,9 +838,6 @@ export class CasParser {
*
*/
inbox: API.Inbox = new API.Inbox(this);
/**
* Endpoints for generating new CAS documents via email mailback (KFintech).
*/
kfintech: API.Kfintech = new API.Kfintech(this);
/**
* Endpoints for parsing CAS PDF files from different sources.
Expand Down Expand Up @@ -938,11 +935,7 @@ export declare namespace CasParser {
type InboxListCasFilesParams as InboxListCasFilesParams,
};

export {
Kfintech as Kfintech,
type KfintechGenerateCasResponse as KfintechGenerateCasResponse,
type KfintechGenerateCasParams as KfintechGenerateCasParams,
};
export { Kfintech as Kfintech };

export { Nsdl as Nsdl, type NsdlParseParams as NsdlParseParams };

Expand Down
2 changes: 1 addition & 1 deletion src/resources/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export {
type InboxDisconnectEmailParams,
type InboxListCasFilesParams,
} from './inbox';
export { Kfintech, type KfintechGenerateCasResponse, type KfintechGenerateCasParams } from './kfintech';
export { Kfintech } from './kfintech';
export {
Logs,
type LogCreateResponse,
Expand Down
71 changes: 1 addition & 70 deletions src/resources/kfintech.ts
Original file line number Diff line number Diff line change
@@ -1,74 +1,5 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import { APIResource } from '../core/resource';
import { APIPromise } from '../core/api-promise';
import { RequestOptions } from '../internal/request-options';

/**
* Endpoints for generating new CAS documents via email mailback (KFintech).
*/
export class Kfintech extends APIResource {
/**
* Generate CAS via KFintech mailback. The CAS PDF will be sent to the investor's
* email.
*
* This is an async operation - the investor receives the CAS via email within a
* few minutes. For instant CAS retrieval, use CDSL Fetch (`/v4/cdsl/fetch`).
*
* @example
* ```ts
* const response = await client.kfintech.generateCas({
* email: 'user@example.com',
* from_date: '2023-01-01',
* password: 'Abcdefghi12$',
* to_date: '2023-12-31',
* });
* ```
*/
generateCas(
body: KfintechGenerateCasParams,
options?: RequestOptions,
): APIPromise<KfintechGenerateCasResponse> {
return this._client.post('/v4/kfintech/generate', { body, ...options });
}
}

export interface KfintechGenerateCasResponse {
msg?: string;

status?: string;
}

export interface KfintechGenerateCasParams {
/**
* Email address to receive the CAS document
*/
email: string;

/**
* Start date (YYYY-MM-DD)
*/
from_date: string;

/**
* Password for the PDF
*/
password: string;

/**
* End date (YYYY-MM-DD)
*/
to_date: string;

/**
* PAN number (optional)
*/
pan_no?: string;
}

export declare namespace Kfintech {
export {
type KfintechGenerateCasResponse as KfintechGenerateCasResponse,
type KfintechGenerateCasParams as KfintechGenerateCasParams,
};
}
export class Kfintech extends APIResource {}
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const VERSION = '1.14.0'; // x-release-please-version
export const VERSION = '1.15.0'; // x-release-please-version
38 changes: 0 additions & 38 deletions tests/api-resources/kfintech.test.ts

This file was deleted.

Loading