cas-parser-node 1.4.0 → 1.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (186) hide show
  1. package/CHANGELOG.md +118 -0
  2. package/LICENSE +1 -1
  3. package/README.md +30 -32
  4. package/client.d.mts +51 -7
  5. package/client.d.mts.map +1 -1
  6. package/client.d.ts +51 -7
  7. package/client.d.ts.map +1 -1
  8. package/client.js +56 -12
  9. package/client.js.map +1 -1
  10. package/client.mjs +56 -12
  11. package/client.mjs.map +1 -1
  12. package/internal/parse.d.mts.map +1 -1
  13. package/internal/parse.d.ts.map +1 -1
  14. package/internal/parse.js +5 -0
  15. package/internal/parse.js.map +1 -1
  16. package/internal/parse.mjs +5 -0
  17. package/internal/parse.mjs.map +1 -1
  18. package/internal/to-file.d.mts +1 -1
  19. package/internal/to-file.d.ts +1 -1
  20. package/internal/to-file.js +1 -1
  21. package/internal/to-file.mjs +1 -1
  22. package/internal/tslib.js +17 -17
  23. package/internal/utils/values.js +3 -3
  24. package/internal/utils/values.js.map +1 -1
  25. package/internal/utils/values.mjs +3 -3
  26. package/internal/utils/values.mjs.map +1 -1
  27. package/package.json +9 -10
  28. package/resources/access-token.d.mts +48 -0
  29. package/resources/access-token.d.mts.map +1 -0
  30. package/resources/access-token.d.ts +48 -0
  31. package/resources/access-token.d.ts.map +1 -0
  32. package/resources/access-token.js +30 -0
  33. package/resources/access-token.js.map +1 -0
  34. package/resources/access-token.mjs +26 -0
  35. package/resources/access-token.mjs.map +1 -0
  36. package/resources/{cas-parser.d.mts → cams-kfintech.d.mts} +282 -105
  37. package/resources/cams-kfintech.d.mts.map +1 -0
  38. package/resources/{cas-parser.d.ts → cams-kfintech.d.ts} +282 -105
  39. package/resources/cams-kfintech.d.ts.map +1 -0
  40. package/resources/cams-kfintech.js +18 -0
  41. package/resources/cams-kfintech.js.map +1 -0
  42. package/resources/cams-kfintech.mjs +14 -0
  43. package/resources/cams-kfintech.mjs.map +1 -0
  44. package/resources/cdsl/cdsl.d.mts +39 -0
  45. package/resources/cdsl/cdsl.d.mts.map +1 -0
  46. package/resources/cdsl/cdsl.d.ts +39 -0
  47. package/resources/cdsl/cdsl.d.ts.map +1 -0
  48. package/resources/cdsl/cdsl.js +31 -0
  49. package/resources/cdsl/cdsl.js.map +1 -0
  50. package/resources/cdsl/cdsl.mjs +26 -0
  51. package/resources/cdsl/cdsl.mjs.map +1 -0
  52. package/resources/cdsl/fetch.d.mts +91 -0
  53. package/resources/cdsl/fetch.d.mts.map +1 -0
  54. package/resources/cdsl/fetch.d.ts +91 -0
  55. package/resources/cdsl/fetch.d.ts.map +1 -0
  56. package/resources/cdsl/fetch.js +50 -0
  57. package/resources/cdsl/fetch.js.map +1 -0
  58. package/resources/cdsl/fetch.mjs +46 -0
  59. package/resources/cdsl/fetch.mjs.map +1 -0
  60. package/resources/cdsl/index.d.mts +3 -0
  61. package/resources/cdsl/index.d.mts.map +1 -0
  62. package/resources/cdsl/index.d.ts +3 -0
  63. package/resources/cdsl/index.d.ts.map +1 -0
  64. package/resources/cdsl/index.js +9 -0
  65. package/resources/cdsl/index.js.map +1 -0
  66. package/resources/cdsl/index.mjs +4 -0
  67. package/resources/cdsl/index.mjs.map +1 -0
  68. package/resources/cdsl.d.mts +2 -0
  69. package/resources/cdsl.d.mts.map +1 -0
  70. package/resources/cdsl.d.ts +2 -0
  71. package/resources/cdsl.d.ts.map +1 -0
  72. package/resources/cdsl.js +6 -0
  73. package/resources/cdsl.js.map +1 -0
  74. package/resources/cdsl.mjs +3 -0
  75. package/resources/cdsl.mjs.map +1 -0
  76. package/resources/contract-note.d.mts +323 -0
  77. package/resources/contract-note.d.mts.map +1 -0
  78. package/resources/contract-note.d.ts +323 -0
  79. package/resources/contract-note.d.ts.map +1 -0
  80. package/resources/contract-note.js +49 -0
  81. package/resources/contract-note.js.map +1 -0
  82. package/resources/contract-note.mjs +45 -0
  83. package/resources/contract-note.mjs.map +1 -0
  84. package/resources/credits.d.mts +47 -0
  85. package/resources/credits.d.mts.map +1 -0
  86. package/resources/credits.d.ts +47 -0
  87. package/resources/credits.d.ts.map +1 -0
  88. package/resources/credits.js +23 -0
  89. package/resources/credits.js.map +1 -0
  90. package/resources/credits.mjs +19 -0
  91. package/resources/credits.mjs.map +1 -0
  92. package/resources/inbox.d.mts +206 -0
  93. package/resources/inbox.d.mts.map +1 -0
  94. package/resources/inbox.d.ts +206 -0
  95. package/resources/inbox.d.ts.map +1 -0
  96. package/resources/inbox.js +109 -0
  97. package/resources/inbox.js.map +1 -0
  98. package/resources/inbox.mjs +105 -0
  99. package/resources/inbox.mjs.map +1 -0
  100. package/resources/index.d.mts +11 -2
  101. package/resources/index.d.mts.map +1 -1
  102. package/resources/index.d.ts +11 -2
  103. package/resources/index.d.ts.map +1 -1
  104. package/resources/index.js +23 -5
  105. package/resources/index.js.map +1 -1
  106. package/resources/index.mjs +11 -2
  107. package/resources/index.mjs.map +1 -1
  108. package/resources/kfintech.d.mts +53 -0
  109. package/resources/kfintech.d.mts.map +1 -0
  110. package/resources/kfintech.d.ts +53 -0
  111. package/resources/kfintech.d.ts.map +1 -0
  112. package/resources/kfintech.js +29 -0
  113. package/resources/kfintech.js.map +1 -0
  114. package/resources/kfintech.mjs +25 -0
  115. package/resources/kfintech.mjs.map +1 -0
  116. package/resources/logs.d.mts +129 -0
  117. package/resources/logs.d.mts.map +1 -0
  118. package/resources/logs.d.ts +129 -0
  119. package/resources/logs.d.ts.map +1 -0
  120. package/resources/logs.js +37 -0
  121. package/resources/logs.js.map +1 -0
  122. package/resources/logs.mjs +33 -0
  123. package/resources/logs.mjs.map +1 -0
  124. package/resources/nsdl.d.mts +30 -0
  125. package/resources/nsdl.d.mts.map +1 -0
  126. package/resources/nsdl.d.ts +30 -0
  127. package/resources/nsdl.d.ts.map +1 -0
  128. package/resources/nsdl.js +18 -0
  129. package/resources/nsdl.js.map +1 -0
  130. package/resources/nsdl.mjs +14 -0
  131. package/resources/nsdl.mjs.map +1 -0
  132. package/resources/smart.d.mts +31 -0
  133. package/resources/smart.d.mts.map +1 -0
  134. package/resources/smart.d.ts +31 -0
  135. package/resources/smart.d.ts.map +1 -0
  136. package/resources/smart.js +19 -0
  137. package/resources/smart.js.map +1 -0
  138. package/resources/smart.mjs +15 -0
  139. package/resources/smart.mjs.map +1 -0
  140. package/resources/verify-token.d.mts +28 -0
  141. package/resources/verify-token.d.mts.map +1 -0
  142. package/resources/verify-token.d.ts +28 -0
  143. package/resources/verify-token.d.ts.map +1 -0
  144. package/resources/verify-token.js +16 -0
  145. package/resources/verify-token.js.map +1 -0
  146. package/resources/verify-token.mjs +12 -0
  147. package/resources/verify-token.mjs.map +1 -0
  148. package/src/client.ts +143 -31
  149. package/src/internal/parse.ts +6 -0
  150. package/src/internal/to-file.ts +1 -1
  151. package/src/internal/utils/values.ts +3 -3
  152. package/src/resources/access-token.ts +63 -0
  153. package/src/resources/{cas-parser.ts → cams-kfintech.ts} +340 -130
  154. package/src/resources/cdsl/cdsl.ts +67 -0
  155. package/src/resources/cdsl/fetch.ts +122 -0
  156. package/src/resources/cdsl/index.ts +10 -0
  157. package/src/resources/cdsl.ts +3 -0
  158. package/src/resources/contract-note.ts +402 -0
  159. package/src/resources/credits.ts +58 -0
  160. package/src/resources/inbox.ts +283 -0
  161. package/src/resources/index.ts +31 -11
  162. package/src/resources/kfintech.ts +71 -0
  163. package/src/resources/logs.ts +170 -0
  164. package/src/resources/nsdl.ts +42 -0
  165. package/src/resources/smart.ts +46 -0
  166. package/src/resources/verify-token.ts +36 -0
  167. package/src/version.ts +1 -1
  168. package/version.d.mts +1 -1
  169. package/version.d.ts +1 -1
  170. package/version.js +1 -1
  171. package/version.mjs +1 -1
  172. package/resources/cas-generator.d.mts +0 -56
  173. package/resources/cas-generator.d.mts.map +0 -1
  174. package/resources/cas-generator.d.ts +0 -56
  175. package/resources/cas-generator.d.ts.map +0 -1
  176. package/resources/cas-generator.js +0 -27
  177. package/resources/cas-generator.js.map +0 -1
  178. package/resources/cas-generator.mjs +0 -23
  179. package/resources/cas-generator.mjs.map +0 -1
  180. package/resources/cas-parser.d.mts.map +0 -1
  181. package/resources/cas-parser.d.ts.map +0 -1
  182. package/resources/cas-parser.js +0 -43
  183. package/resources/cas-parser.js.map +0 -1
  184. package/resources/cas-parser.mjs +0 -39
  185. package/resources/cas-parser.mjs.map +0 -1
  186. package/src/resources/cas-generator.ts +0 -75
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logs.d.mts","sourceRoot":"","sources":["../src/resources/logs.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;OAUG;IACH,MAAM,CACJ,IAAI,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iBAAiB,CAAC;IAIhC;;;;;;;;;;OAUG;IACH,UAAU,CACR,IAAI,GAAE,mBAAmB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,qBAAqB,CAAC;CAGrC;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,IAAI,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC;IAEpC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,yBAAiB,iBAAiB,CAAC;IACjC,UAAiB,GAAG;QAClB;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,IAAI,CAAC,EAAE,MAAM,CAAC;QAEd;;WAEG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;QAEpB;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;QAErB;;WAEG;QACH,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB;CACF;AAED,MAAM,WAAW,qBAAqB;IACpC,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,OAAO,CAAC,EAAE,qBAAqB,CAAC,OAAO,CAAC;CACzC;AAED,yBAAiB,qBAAqB,CAAC;IACrC,UAAiB,OAAO;QACtB;;WAEG;QACH,UAAU,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;QAEtC;;WAEG;QACH,aAAa,CAAC,EAAE,MAAM,CAAC;QAEvB;;WAEG;QACH,cAAc,CAAC,EAAE,MAAM,CAAC;KACzB;IAED,UAAiB,OAAO,CAAC;QACvB,UAAiB,SAAS;YACxB;;eAEG;YACH,OAAO,CAAC,EAAE,MAAM,CAAC;YAEjB;;eAEG;YACH,OAAO,CAAC,EAAE,MAAM,CAAC;YAEjB;;eAEG;YACH,QAAQ,CAAC,EAAE,MAAM,CAAC;SACnB;KACF;CACF;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
@@ -0,0 +1,129 @@
1
+ import { APIResource } from "../core/resource.js";
2
+ import { APIPromise } from "../core/api-promise.js";
3
+ import { RequestOptions } from "../internal/request-options.js";
4
+ export declare class Logs extends APIResource {
5
+ /**
6
+ * Retrieve detailed API usage logs for your account.
7
+ *
8
+ * Returns a list of API calls with timestamps, features used, status codes, and
9
+ * credits consumed. Useful for monitoring usage patterns and debugging.
10
+ *
11
+ * @example
12
+ * ```ts
13
+ * const log = await client.logs.create();
14
+ * ```
15
+ */
16
+ create(body?: LogCreateParams | null | undefined, options?: RequestOptions): APIPromise<LogCreateResponse>;
17
+ /**
18
+ * Get aggregated usage statistics grouped by feature.
19
+ *
20
+ * Useful for understanding which API features are being used most and tracking
21
+ * usage trends.
22
+ *
23
+ * @example
24
+ * ```ts
25
+ * const response = await client.logs.getSummary();
26
+ * ```
27
+ */
28
+ getSummary(body?: LogGetSummaryParams | null | undefined, options?: RequestOptions): APIPromise<LogGetSummaryResponse>;
29
+ }
30
+ export interface LogCreateResponse {
31
+ /**
32
+ * Number of logs returned
33
+ */
34
+ count?: number;
35
+ logs?: Array<LogCreateResponse.Log>;
36
+ status?: string;
37
+ }
38
+ export declare namespace LogCreateResponse {
39
+ interface Log {
40
+ /**
41
+ * Credits consumed for this request
42
+ */
43
+ credits?: number;
44
+ /**
45
+ * API feature used
46
+ */
47
+ feature?: string;
48
+ /**
49
+ * API endpoint path
50
+ */
51
+ path?: string;
52
+ /**
53
+ * Unique request identifier
54
+ */
55
+ request_id?: string;
56
+ /**
57
+ * HTTP response status code
58
+ */
59
+ status_code?: number;
60
+ /**
61
+ * When the request was made
62
+ */
63
+ timestamp?: string;
64
+ }
65
+ }
66
+ export interface LogGetSummaryResponse {
67
+ status?: string;
68
+ summary?: LogGetSummaryResponse.Summary;
69
+ }
70
+ export declare namespace LogGetSummaryResponse {
71
+ interface Summary {
72
+ /**
73
+ * Usage breakdown by feature
74
+ */
75
+ by_feature?: Array<Summary.ByFeature>;
76
+ /**
77
+ * Total credits consumed in the period
78
+ */
79
+ total_credits?: number;
80
+ /**
81
+ * Total API requests made in the period
82
+ */
83
+ total_requests?: number;
84
+ }
85
+ namespace Summary {
86
+ interface ByFeature {
87
+ /**
88
+ * Credits consumed by this feature
89
+ */
90
+ credits?: number;
91
+ /**
92
+ * API feature name
93
+ */
94
+ feature?: string;
95
+ /**
96
+ * Number of requests for this feature
97
+ */
98
+ requests?: number;
99
+ }
100
+ }
101
+ }
102
+ export interface LogCreateParams {
103
+ /**
104
+ * End time filter (ISO 8601). Defaults to now.
105
+ */
106
+ end_time?: string;
107
+ /**
108
+ * Maximum number of logs to return
109
+ */
110
+ limit?: number;
111
+ /**
112
+ * Start time filter (ISO 8601). Defaults to 30 days ago.
113
+ */
114
+ start_time?: string;
115
+ }
116
+ export interface LogGetSummaryParams {
117
+ /**
118
+ * End time filter (ISO 8601). Defaults to now.
119
+ */
120
+ end_time?: string;
121
+ /**
122
+ * Start time filter (ISO 8601). Defaults to start of current month.
123
+ */
124
+ start_time?: string;
125
+ }
126
+ export declare namespace Logs {
127
+ export { type LogCreateResponse as LogCreateResponse, type LogGetSummaryResponse as LogGetSummaryResponse, type LogCreateParams as LogCreateParams, type LogGetSummaryParams as LogGetSummaryParams, };
128
+ }
129
+ //# sourceMappingURL=logs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logs.d.ts","sourceRoot":"","sources":["../src/resources/logs.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;OAUG;IACH,MAAM,CACJ,IAAI,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iBAAiB,CAAC;IAIhC;;;;;;;;;;OAUG;IACH,UAAU,CACR,IAAI,GAAE,mBAAmB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,qBAAqB,CAAC;CAGrC;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,IAAI,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC;IAEpC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,yBAAiB,iBAAiB,CAAC;IACjC,UAAiB,GAAG;QAClB;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,IAAI,CAAC,EAAE,MAAM,CAAC;QAEd;;WAEG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;QAEpB;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;QAErB;;WAEG;QACH,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB;CACF;AAED,MAAM,WAAW,qBAAqB;IACpC,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,OAAO,CAAC,EAAE,qBAAqB,CAAC,OAAO,CAAC;CACzC;AAED,yBAAiB,qBAAqB,CAAC;IACrC,UAAiB,OAAO;QACtB;;WAEG;QACH,UAAU,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;QAEtC;;WAEG;QACH,aAAa,CAAC,EAAE,MAAM,CAAC;QAEvB;;WAEG;QACH,cAAc,CAAC,EAAE,MAAM,CAAC;KACzB;IAED,UAAiB,OAAO,CAAC;QACvB,UAAiB,SAAS;YACxB;;eAEG;YACH,OAAO,CAAC,EAAE,MAAM,CAAC;YAEjB;;eAEG;YACH,OAAO,CAAC,EAAE,MAAM,CAAC;YAEjB;;eAEG;YACH,QAAQ,CAAC,EAAE,MAAM,CAAC;SACnB;KACF;CACF;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Logs = void 0;
5
+ const resource_1 = require("../core/resource.js");
6
+ class Logs extends resource_1.APIResource {
7
+ /**
8
+ * Retrieve detailed API usage logs for your account.
9
+ *
10
+ * Returns a list of API calls with timestamps, features used, status codes, and
11
+ * credits consumed. Useful for monitoring usage patterns and debugging.
12
+ *
13
+ * @example
14
+ * ```ts
15
+ * const log = await client.logs.create();
16
+ * ```
17
+ */
18
+ create(body = {}, options) {
19
+ return this._client.post('/logs', { body, ...options });
20
+ }
21
+ /**
22
+ * Get aggregated usage statistics grouped by feature.
23
+ *
24
+ * Useful for understanding which API features are being used most and tracking
25
+ * usage trends.
26
+ *
27
+ * @example
28
+ * ```ts
29
+ * const response = await client.logs.getSummary();
30
+ * ```
31
+ */
32
+ getSummary(body = {}, options) {
33
+ return this._client.post('/logs/summary', { body, ...options });
34
+ }
35
+ }
36
+ exports.Logs = Logs;
37
+ //# sourceMappingURL=logs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logs.js","sourceRoot":"","sources":["../src/resources/logs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,IAAK,SAAQ,sBAAW;IACnC;;;;;;;;;;OAUG;IACH,MAAM,CACJ,OAA2C,EAAE,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1D,CAAC;IAED;;;;;;;;;;OAUG;IACH,UAAU,CACR,OAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClE,CAAC;CACF;AApCD,oBAoCC"}
@@ -0,0 +1,33 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../core/resource.mjs";
3
+ export class Logs extends APIResource {
4
+ /**
5
+ * Retrieve detailed API usage logs for your account.
6
+ *
7
+ * Returns a list of API calls with timestamps, features used, status codes, and
8
+ * credits consumed. Useful for monitoring usage patterns and debugging.
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * const log = await client.logs.create();
13
+ * ```
14
+ */
15
+ create(body = {}, options) {
16
+ return this._client.post('/logs', { body, ...options });
17
+ }
18
+ /**
19
+ * Get aggregated usage statistics grouped by feature.
20
+ *
21
+ * Useful for understanding which API features are being used most and tracking
22
+ * usage trends.
23
+ *
24
+ * @example
25
+ * ```ts
26
+ * const response = await client.logs.getSummary();
27
+ * ```
28
+ */
29
+ getSummary(body = {}, options) {
30
+ return this._client.post('/logs/summary', { body, ...options });
31
+ }
32
+ }
33
+ //# sourceMappingURL=logs.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logs.mjs","sourceRoot":"","sources":["../src/resources/logs.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;OAUG;IACH,MAAM,CACJ,OAA2C,EAAE,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1D,CAAC;IAED;;;;;;;;;;OAUG;IACH,UAAU,CACR,OAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClE,CAAC;CACF"}
@@ -0,0 +1,30 @@
1
+ import { APIResource } from "../core/resource.mjs";
2
+ import * as CamsKfintechAPI from "./cams-kfintech.mjs";
3
+ import { APIPromise } from "../core/api-promise.mjs";
4
+ import { RequestOptions } from "../internal/request-options.mjs";
5
+ export declare class Nsdl extends APIResource {
6
+ /**
7
+ * This endpoint specifically parses NSDL CAS (Consolidated Account Statement) PDF
8
+ * files and returns data in a unified format. Use this endpoint when you know the
9
+ * PDF is from NSDL.
10
+ */
11
+ parse(body: NsdlParseParams, options?: RequestOptions): APIPromise<CamsKfintechAPI.UnifiedResponse>;
12
+ }
13
+ export interface NsdlParseParams {
14
+ /**
15
+ * Password for the PDF file (if required)
16
+ */
17
+ password?: string;
18
+ /**
19
+ * Base64 encoded CAS PDF file (required if pdf_url not provided)
20
+ */
21
+ pdf_file?: string;
22
+ /**
23
+ * URL to the CAS PDF file (required if pdf_file not provided)
24
+ */
25
+ pdf_url?: string;
26
+ }
27
+ export declare namespace Nsdl {
28
+ export { type NsdlParseParams as NsdlParseParams };
29
+ }
30
+ //# sourceMappingURL=nsdl.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nsdl.d.mts","sourceRoot":"","sources":["../src/resources/nsdl.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,eAAe;OACpB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;OAIG;IACH,KAAK,CAAC,IAAI,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC,eAAe,CAAC;CAMpG;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EAAE,KAAK,eAAe,IAAI,eAAe,EAAE,CAAC;CACpD"}
@@ -0,0 +1,30 @@
1
+ import { APIResource } from "../core/resource.js";
2
+ import * as CamsKfintechAPI from "./cams-kfintech.js";
3
+ import { APIPromise } from "../core/api-promise.js";
4
+ import { RequestOptions } from "../internal/request-options.js";
5
+ export declare class Nsdl extends APIResource {
6
+ /**
7
+ * This endpoint specifically parses NSDL CAS (Consolidated Account Statement) PDF
8
+ * files and returns data in a unified format. Use this endpoint when you know the
9
+ * PDF is from NSDL.
10
+ */
11
+ parse(body: NsdlParseParams, options?: RequestOptions): APIPromise<CamsKfintechAPI.UnifiedResponse>;
12
+ }
13
+ export interface NsdlParseParams {
14
+ /**
15
+ * Password for the PDF file (if required)
16
+ */
17
+ password?: string;
18
+ /**
19
+ * Base64 encoded CAS PDF file (required if pdf_url not provided)
20
+ */
21
+ pdf_file?: string;
22
+ /**
23
+ * URL to the CAS PDF file (required if pdf_file not provided)
24
+ */
25
+ pdf_url?: string;
26
+ }
27
+ export declare namespace Nsdl {
28
+ export { type NsdlParseParams as NsdlParseParams };
29
+ }
30
+ //# sourceMappingURL=nsdl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nsdl.d.ts","sourceRoot":"","sources":["../src/resources/nsdl.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,eAAe;OACpB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;OAIG;IACH,KAAK,CAAC,IAAI,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC,eAAe,CAAC;CAMpG;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EAAE,KAAK,eAAe,IAAI,eAAe,EAAE,CAAC;CACpD"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Nsdl = void 0;
5
+ const resource_1 = require("../core/resource.js");
6
+ const uploads_1 = require("../internal/uploads.js");
7
+ class Nsdl extends resource_1.APIResource {
8
+ /**
9
+ * This endpoint specifically parses NSDL CAS (Consolidated Account Statement) PDF
10
+ * files and returns data in a unified format. Use this endpoint when you know the
11
+ * PDF is from NSDL.
12
+ */
13
+ parse(body, options) {
14
+ return this._client.post('/v4/nsdl/parse', (0, uploads_1.maybeMultipartFormRequestOptions)({ body, ...options }, this._client));
15
+ }
16
+ }
17
+ exports.Nsdl = Nsdl;
18
+ //# sourceMappingURL=nsdl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nsdl.js","sourceRoot":"","sources":["../src/resources/nsdl.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,oDAAuE;AAEvE,MAAa,IAAK,SAAQ,sBAAW;IACnC;;;;OAIG;IACH,KAAK,CAAC,IAAqB,EAAE,OAAwB;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CACtB,gBAAgB,EAChB,IAAA,0CAAgC,EAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CACrE,CAAC;IACJ,CAAC;CACF;AAZD,oBAYC"}
@@ -0,0 +1,14 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../core/resource.mjs";
3
+ import { maybeMultipartFormRequestOptions } from "../internal/uploads.mjs";
4
+ export class Nsdl extends APIResource {
5
+ /**
6
+ * This endpoint specifically parses NSDL CAS (Consolidated Account Statement) PDF
7
+ * files and returns data in a unified format. Use this endpoint when you know the
8
+ * PDF is from NSDL.
9
+ */
10
+ parse(body, options) {
11
+ return this._client.post('/v4/nsdl/parse', maybeMultipartFormRequestOptions({ body, ...options }, this._client));
12
+ }
13
+ }
14
+ //# sourceMappingURL=nsdl.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nsdl.mjs","sourceRoot":"","sources":["../src/resources/nsdl.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,gCAAgC,EAAE;AAE3C,MAAM,OAAO,IAAK,SAAQ,WAAW;IACnC;;;;OAIG;IACH,KAAK,CAAC,IAAqB,EAAE,OAAwB;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CACtB,gBAAgB,EAChB,gCAAgC,CAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CACrE,CAAC;IACJ,CAAC;CACF"}
@@ -0,0 +1,31 @@
1
+ import { APIResource } from "../core/resource.mjs";
2
+ import * as CamsKfintechAPI from "./cams-kfintech.mjs";
3
+ import { APIPromise } from "../core/api-promise.mjs";
4
+ import { RequestOptions } from "../internal/request-options.mjs";
5
+ export declare class Smart extends APIResource {
6
+ /**
7
+ * This endpoint parses CAS (Consolidated Account Statement) PDF files from NSDL,
8
+ * CDSL, or CAMS/KFintech and returns data in a unified format. It auto-detects the
9
+ * CAS type and transforms the data into a consistent structure regardless of the
10
+ * source.
11
+ */
12
+ parseCasPdf(body: SmartParseCasPdfParams, options?: RequestOptions): APIPromise<CamsKfintechAPI.UnifiedResponse>;
13
+ }
14
+ export interface SmartParseCasPdfParams {
15
+ /**
16
+ * Password for the PDF file (if required)
17
+ */
18
+ password?: string;
19
+ /**
20
+ * Base64 encoded CAS PDF file (required if pdf_url not provided)
21
+ */
22
+ pdf_file?: string;
23
+ /**
24
+ * URL to the CAS PDF file (required if pdf_file not provided)
25
+ */
26
+ pdf_url?: string;
27
+ }
28
+ export declare namespace Smart {
29
+ export { type SmartParseCasPdfParams as SmartParseCasPdfParams };
30
+ }
31
+ //# sourceMappingURL=smart.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"smart.d.mts","sourceRoot":"","sources":["../src/resources/smart.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,eAAe;OACpB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;OAKG;IACH,WAAW,CACT,IAAI,EAAE,sBAAsB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,eAAe,CAAC,eAAe,CAAC;CAM/C;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,sBAAsB,IAAI,sBAAsB,EAAE,CAAC;CAClE"}
@@ -0,0 +1,31 @@
1
+ import { APIResource } from "../core/resource.js";
2
+ import * as CamsKfintechAPI from "./cams-kfintech.js";
3
+ import { APIPromise } from "../core/api-promise.js";
4
+ import { RequestOptions } from "../internal/request-options.js";
5
+ export declare class Smart extends APIResource {
6
+ /**
7
+ * This endpoint parses CAS (Consolidated Account Statement) PDF files from NSDL,
8
+ * CDSL, or CAMS/KFintech and returns data in a unified format. It auto-detects the
9
+ * CAS type and transforms the data into a consistent structure regardless of the
10
+ * source.
11
+ */
12
+ parseCasPdf(body: SmartParseCasPdfParams, options?: RequestOptions): APIPromise<CamsKfintechAPI.UnifiedResponse>;
13
+ }
14
+ export interface SmartParseCasPdfParams {
15
+ /**
16
+ * Password for the PDF file (if required)
17
+ */
18
+ password?: string;
19
+ /**
20
+ * Base64 encoded CAS PDF file (required if pdf_url not provided)
21
+ */
22
+ pdf_file?: string;
23
+ /**
24
+ * URL to the CAS PDF file (required if pdf_file not provided)
25
+ */
26
+ pdf_url?: string;
27
+ }
28
+ export declare namespace Smart {
29
+ export { type SmartParseCasPdfParams as SmartParseCasPdfParams };
30
+ }
31
+ //# sourceMappingURL=smart.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"smart.d.ts","sourceRoot":"","sources":["../src/resources/smart.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,eAAe;OACpB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;OAKG;IACH,WAAW,CACT,IAAI,EAAE,sBAAsB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,eAAe,CAAC,eAAe,CAAC;CAM/C;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,sBAAsB,IAAI,sBAAsB,EAAE,CAAC;CAClE"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Smart = void 0;
5
+ const resource_1 = require("../core/resource.js");
6
+ const uploads_1 = require("../internal/uploads.js");
7
+ class Smart extends resource_1.APIResource {
8
+ /**
9
+ * This endpoint parses CAS (Consolidated Account Statement) PDF files from NSDL,
10
+ * CDSL, or CAMS/KFintech and returns data in a unified format. It auto-detects the
11
+ * CAS type and transforms the data into a consistent structure regardless of the
12
+ * source.
13
+ */
14
+ parseCasPdf(body, options) {
15
+ return this._client.post('/v4/smart/parse', (0, uploads_1.maybeMultipartFormRequestOptions)({ body, ...options }, this._client));
16
+ }
17
+ }
18
+ exports.Smart = Smart;
19
+ //# sourceMappingURL=smart.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"smart.js","sourceRoot":"","sources":["../src/resources/smart.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,oDAAuE;AAEvE,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;;;OAKG;IACH,WAAW,CACT,IAA4B,EAC5B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CACtB,iBAAiB,EACjB,IAAA,0CAAgC,EAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CACrE,CAAC;IACJ,CAAC;CACF;AAhBD,sBAgBC"}
@@ -0,0 +1,15 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../core/resource.mjs";
3
+ import { maybeMultipartFormRequestOptions } from "../internal/uploads.mjs";
4
+ export class Smart extends APIResource {
5
+ /**
6
+ * This endpoint parses CAS (Consolidated Account Statement) PDF files from NSDL,
7
+ * CDSL, or CAMS/KFintech and returns data in a unified format. It auto-detects the
8
+ * CAS type and transforms the data into a consistent structure regardless of the
9
+ * source.
10
+ */
11
+ parseCasPdf(body, options) {
12
+ return this._client.post('/v4/smart/parse', maybeMultipartFormRequestOptions({ body, ...options }, this._client));
13
+ }
14
+ }
15
+ //# sourceMappingURL=smart.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"smart.mjs","sourceRoot":"","sources":["../src/resources/smart.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,gCAAgC,EAAE;AAE3C,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;;;OAKG;IACH,WAAW,CACT,IAA4B,EAC5B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CACtB,iBAAiB,EACjB,gCAAgC,CAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CACrE,CAAC;IACJ,CAAC;CACF"}
@@ -0,0 +1,28 @@
1
+ import { APIResource } from "../core/resource.mjs";
2
+ import { APIPromise } from "../core/api-promise.mjs";
3
+ import { RequestOptions } from "../internal/request-options.mjs";
4
+ export declare class VerifyToken extends APIResource {
5
+ /**
6
+ * Verify an access token and check if it's still valid. Useful for debugging token
7
+ * issues.
8
+ */
9
+ verify(options?: RequestOptions): APIPromise<VerifyTokenVerifyResponse>;
10
+ }
11
+ export interface VerifyTokenVerifyResponse {
12
+ /**
13
+ * Error message (only shown if invalid)
14
+ */
15
+ error?: string;
16
+ /**
17
+ * Masked API key (only shown if valid)
18
+ */
19
+ masked_api_key?: string;
20
+ /**
21
+ * Whether the token is valid
22
+ */
23
+ valid?: boolean;
24
+ }
25
+ export declare namespace VerifyToken {
26
+ export { type VerifyTokenVerifyResponse as VerifyTokenVerifyResponse };
27
+ }
28
+ //# sourceMappingURL=verify-token.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verify-token.d.mts","sourceRoot":"","sources":["../src/resources/verify-token.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;OAGG;IACH,MAAM,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,yBAAyB,CAAC;CAGxE;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EAAE,KAAK,yBAAyB,IAAI,yBAAyB,EAAE,CAAC;CACxE"}
@@ -0,0 +1,28 @@
1
+ import { APIResource } from "../core/resource.js";
2
+ import { APIPromise } from "../core/api-promise.js";
3
+ import { RequestOptions } from "../internal/request-options.js";
4
+ export declare class VerifyToken extends APIResource {
5
+ /**
6
+ * Verify an access token and check if it's still valid. Useful for debugging token
7
+ * issues.
8
+ */
9
+ verify(options?: RequestOptions): APIPromise<VerifyTokenVerifyResponse>;
10
+ }
11
+ export interface VerifyTokenVerifyResponse {
12
+ /**
13
+ * Error message (only shown if invalid)
14
+ */
15
+ error?: string;
16
+ /**
17
+ * Masked API key (only shown if valid)
18
+ */
19
+ masked_api_key?: string;
20
+ /**
21
+ * Whether the token is valid
22
+ */
23
+ valid?: boolean;
24
+ }
25
+ export declare namespace VerifyToken {
26
+ export { type VerifyTokenVerifyResponse as VerifyTokenVerifyResponse };
27
+ }
28
+ //# sourceMappingURL=verify-token.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verify-token.d.ts","sourceRoot":"","sources":["../src/resources/verify-token.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;OAGG;IACH,MAAM,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,yBAAyB,CAAC;CAGxE;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EAAE,KAAK,yBAAyB,IAAI,yBAAyB,EAAE,CAAC;CACxE"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.VerifyToken = void 0;
5
+ const resource_1 = require("../core/resource.js");
6
+ class VerifyToken extends resource_1.APIResource {
7
+ /**
8
+ * Verify an access token and check if it's still valid. Useful for debugging token
9
+ * issues.
10
+ */
11
+ verify(options) {
12
+ return this._client.post('/v1/verify-token', options);
13
+ }
14
+ }
15
+ exports.VerifyToken = VerifyToken;
16
+ //# sourceMappingURL=verify-token.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verify-token.js","sourceRoot":"","sources":["../src/resources/verify-token.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;;OAGG;IACH,MAAM,CAAC,OAAwB;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC;IACxD,CAAC;CACF;AARD,kCAQC"}
@@ -0,0 +1,12 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../core/resource.mjs";
3
+ export class VerifyToken extends APIResource {
4
+ /**
5
+ * Verify an access token and check if it's still valid. Useful for debugging token
6
+ * issues.
7
+ */
8
+ verify(options) {
9
+ return this._client.post('/v1/verify-token', options);
10
+ }
11
+ }
12
+ //# sourceMappingURL=verify-token.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verify-token.mjs","sourceRoot":"","sources":["../src/resources/verify-token.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;;OAGG;IACH,MAAM,CAAC,OAAwB;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC;IACxD,CAAC;CACF"}