Skip to content

Commit 0116ca5

Browse files
feat(api): api update
1 parent e997de1 commit 0116ca5

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 21
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cas-parser/cas-parser-c7cca9a7a8e15f8a584c22eab142c4af72a329117f63cc3b3f7cabb25410f2ce.yml
3-
openapi_spec_hash: f40d936e433bbf8c98179d0b36f304c8
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cas-parser/cas-parser-0dce3ce202e44ecf2270f6ca42942cc297bbeeafddb3128f8230ba3ae85c7551.yml
3+
openapi_spec_hash: e9cef5743f686d9f12910c81832accca
44
config_hash: 5509bb7a961ae2e79114b24c381606d4

src/resources/inbound-email.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ export interface InboundEmailCreateResponse {
106106
allowed_sources?: Array<'cdsl' | 'nsdl' | 'cams' | 'kfintech'>;
107107

108108
/**
109-
* Webhook URL for email notifications. Empty string (`""`) means files are only
110-
* retrievable via `GET /v4/inbound-email/{id}/files` (SDK / pull mode).
109+
* Webhook URL for email notifications. If set, we POST each parsed email here. If
110+
* omitted, files are only retrievable via `GET /v4/inbound-email/{id}/files`.
111111
*/
112112
callback_url?: string;
113113

@@ -157,8 +157,8 @@ export interface InboundEmailRetrieveResponse {
157157
allowed_sources?: Array<'cdsl' | 'nsdl' | 'cams' | 'kfintech'>;
158158

159159
/**
160-
* Webhook URL for email notifications. Empty string (`""`) means files are only
161-
* retrievable via `GET /v4/inbound-email/{id}/files` (SDK / pull mode).
160+
* Webhook URL for email notifications. If set, we POST each parsed email here. If
161+
* omitted, files are only retrievable via `GET /v4/inbound-email/{id}/files`.
162162
*/
163163
callback_url?: string;
164164

@@ -224,8 +224,8 @@ export namespace InboundEmailListResponse {
224224
allowed_sources?: Array<'cdsl' | 'nsdl' | 'cams' | 'kfintech'>;
225225

226226
/**
227-
* Webhook URL for email notifications. Empty string (`""`) means files are only
228-
* retrievable via `GET /v4/inbound-email/{id}/files` (SDK / pull mode).
227+
* Webhook URL for email notifications. If set, we POST each parsed email here. If
228+
* omitted, files are only retrievable via `GET /v4/inbound-email/{id}/files`.
229229
*/
230230
callback_url?: string;
231231

src/resources/inbox.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,8 @@ export namespace InboxListCasFilesResponse {
200200
* URL expiration time in seconds. Defaults vary by source:
201201
*
202202
* - Gmail Inbox Import: 86400 (24h)
203-
* - Inbound Email (webhook mode): 172800 (48h)
204-
* - Inbound Email (SDK mode): aligned with the session TTL (~30 min)
203+
* - Inbound Email with `callback_url` set: 172800 (48h)
204+
* - Inbound Email without `callback_url`: aligned with the session TTL (~30 min)
205205
*/
206206
expires_in?: number;
207207

0 commit comments

Comments
 (0)