Skip to content

Commit 298bc41

Browse files
feat(api): api update
1 parent 2744bf4 commit 298bc41

5 files changed

Lines changed: 18 additions & 18 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

cas-parser-java-core/src/main/kotlin/com/cas_parser/api/models/inboundemail/InboundEmailCreateResponse.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ private constructor(
8080
allowedSources.getOptional("allowed_sources")
8181

8282
/**
83-
* Webhook URL for email notifications. Empty string (`""`) means files are only retrievable via
84-
* `GET /v4/inbound-email/{id}/files` (SDK / pull mode).
83+
* Webhook URL for email notifications. If set, we POST each parsed email here. If omitted,
84+
* files are only retrievable via `GET /v4/inbound-email/{id}/files`.
8585
*
8686
* @throws CasParserInvalidDataException if the JSON field has an unexpected type (e.g. if the
8787
* server responded with an unexpected value).
@@ -293,8 +293,8 @@ private constructor(
293293
}
294294

295295
/**
296-
* Webhook URL for email notifications. Empty string (`""`) means files are only retrievable
297-
* via `GET /v4/inbound-email/{id}/files` (SDK / pull mode).
296+
* Webhook URL for email notifications. If set, we POST each parsed email here. If omitted,
297+
* files are only retrievable via `GET /v4/inbound-email/{id}/files`.
298298
*/
299299
fun callbackUrl(callbackUrl: String) = callbackUrl(JsonField.of(callbackUrl))
300300

cas-parser-java-core/src/main/kotlin/com/cas_parser/api/models/inboundemail/InboundEmailListResponse.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -351,8 +351,8 @@ private constructor(
351351
allowedSources.getOptional("allowed_sources")
352352

353353
/**
354-
* Webhook URL for email notifications. Empty string (`""`) means files are only retrievable
355-
* via `GET /v4/inbound-email/{id}/files` (SDK / pull mode).
354+
* Webhook URL for email notifications. If set, we POST each parsed email here. If omitted,
355+
* files are only retrievable via `GET /v4/inbound-email/{id}/files`.
356356
*
357357
* @throws CasParserInvalidDataException if the JSON field has an unexpected type (e.g. if
358358
* the server responded with an unexpected value).
@@ -564,8 +564,8 @@ private constructor(
564564
}
565565

566566
/**
567-
* Webhook URL for email notifications. Empty string (`""`) means files are only
568-
* retrievable via `GET /v4/inbound-email/{id}/files` (SDK / pull mode).
567+
* Webhook URL for email notifications. If set, we POST each parsed email here. If
568+
* omitted, files are only retrievable via `GET /v4/inbound-email/{id}/files`.
569569
*/
570570
fun callbackUrl(callbackUrl: String) = callbackUrl(JsonField.of(callbackUrl))
571571

cas-parser-java-core/src/main/kotlin/com/cas_parser/api/models/inboundemail/InboundEmailRetrieveResponse.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ private constructor(
8080
allowedSources.getOptional("allowed_sources")
8181

8282
/**
83-
* Webhook URL for email notifications. Empty string (`""`) means files are only retrievable via
84-
* `GET /v4/inbound-email/{id}/files` (SDK / pull mode).
83+
* Webhook URL for email notifications. If set, we POST each parsed email here. If omitted,
84+
* files are only retrievable via `GET /v4/inbound-email/{id}/files`.
8585
*
8686
* @throws CasParserInvalidDataException if the JSON field has an unexpected type (e.g. if the
8787
* server responded with an unexpected value).
@@ -293,8 +293,8 @@ private constructor(
293293
}
294294

295295
/**
296-
* Webhook URL for email notifications. Empty string (`""`) means files are only retrievable
297-
* via `GET /v4/inbound-email/{id}/files` (SDK / pull mode).
296+
* Webhook URL for email notifications. If set, we POST each parsed email here. If omitted,
297+
* files are only retrievable via `GET /v4/inbound-email/{id}/files`.
298298
*/
299299
fun callbackUrl(callbackUrl: String) = callbackUrl(JsonField.of(callbackUrl))
300300

cas-parser-java-core/src/main/kotlin/com/cas_parser/api/models/inbox/InboxListCasFilesResponse.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,8 @@ private constructor(
287287
/**
288288
* URL expiration time in seconds. Defaults vary by source:
289289
* - Gmail Inbox Import: 86400 (24h)
290-
* - Inbound Email (webhook mode): 172800 (48h)
291-
* - Inbound Email (SDK mode): aligned with the session TTL (~30 min)
290+
* - Inbound Email with `callback_url` set: 172800 (48h)
291+
* - Inbound Email without `callback_url`: aligned with the session TTL (~30 min)
292292
*
293293
* @throws CasParserInvalidDataException if the JSON field has an unexpected type (e.g. if
294294
* the server responded with an unexpected value).
@@ -483,8 +483,8 @@ private constructor(
483483
/**
484484
* URL expiration time in seconds. Defaults vary by source:
485485
* - Gmail Inbox Import: 86400 (24h)
486-
* - Inbound Email (webhook mode): 172800 (48h)
487-
* - Inbound Email (SDK mode): aligned with the session TTL (~30 min)
486+
* - Inbound Email with `callback_url` set: 172800 (48h)
487+
* - Inbound Email without `callback_url`: aligned with the session TTL (~30 min)
488488
*/
489489
fun expiresIn(expiresIn: Long) = expiresIn(JsonField.of(expiresIn))
490490

0 commit comments

Comments
 (0)