File tree Expand file tree Collapse file tree
Inbox/InboxListCasFilesResponse Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11configured_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
44config_hash : 5509bb7a961ae2e79114b24c381606d4
Original file line number Diff line number Diff line change @@ -39,8 +39,9 @@ final class InboundEmailGetResponse implements BaseModel
3939 public ?array $ allowedSources ;
4040
4141 /**
42- * Webhook URL for email notifications. Empty string (`""`) means files are
43- * only retrievable via `GET /v4/inbound-email/{id}/files` (SDK / pull mode).
42+ * Webhook URL for email notifications. If set, we POST each parsed
43+ * email here. If omitted, files are only retrievable via
44+ * `GET /v4/inbound-email/{id}/files`.
4445 */
4546 #[Optional('callback_url ' )]
4647 public ?string $ callbackURL ;
@@ -145,8 +146,9 @@ public function withAllowedSources(array $allowedSources): self
145146 }
146147
147148 /**
148- * Webhook URL for email notifications. Empty string (`""`) means files are
149- * only retrievable via `GET /v4/inbound-email/{id}/files` (SDK / pull mode).
149+ * Webhook URL for email notifications. If set, we POST each parsed
150+ * email here. If omitted, files are only retrievable via
151+ * `GET /v4/inbound-email/{id}/files`.
150152 */
151153 public function withCallbackURL (string $ callbackURL ): self
152154 {
Original file line number Diff line number Diff line change @@ -39,8 +39,9 @@ final class InboundEmail implements BaseModel
3939 public ?array $ allowedSources ;
4040
4141 /**
42- * Webhook URL for email notifications. Empty string (`""`) means files are
43- * only retrievable via `GET /v4/inbound-email/{id}/files` (SDK / pull mode).
42+ * Webhook URL for email notifications. If set, we POST each parsed
43+ * email here. If omitted, files are only retrievable via
44+ * `GET /v4/inbound-email/{id}/files`.
4445 */
4546 #[Optional('callback_url ' )]
4647 public ?string $ callbackURL ;
@@ -145,8 +146,9 @@ public function withAllowedSources(array $allowedSources): self
145146 }
146147
147148 /**
148- * Webhook URL for email notifications. Empty string (`""`) means files are
149- * only retrievable via `GET /v4/inbound-email/{id}/files` (SDK / pull mode).
149+ * Webhook URL for email notifications. If set, we POST each parsed
150+ * email here. If omitted, files are only retrievable via
151+ * `GET /v4/inbound-email/{id}/files`.
150152 */
151153 public function withCallbackURL (string $ callbackURL ): self
152154 {
Original file line number Diff line number Diff line change @@ -39,8 +39,9 @@ final class InboundEmailNewResponse implements BaseModel
3939 public ?array $ allowedSources ;
4040
4141 /**
42- * Webhook URL for email notifications. Empty string (`""`) means files are
43- * only retrievable via `GET /v4/inbound-email/{id}/files` (SDK / pull mode).
42+ * Webhook URL for email notifications. If set, we POST each parsed
43+ * email here. If omitted, files are only retrievable via
44+ * `GET /v4/inbound-email/{id}/files`.
4445 */
4546 #[Optional('callback_url ' )]
4647 public ?string $ callbackURL ;
@@ -145,8 +146,9 @@ public function withAllowedSources(array $allowedSources): self
145146 }
146147
147148 /**
148- * Webhook URL for email notifications. Empty string (`""`) means files are
149- * only retrievable via `GET /v4/inbound-email/{id}/files` (SDK / pull mode).
149+ * Webhook URL for email notifications. If set, we POST each parsed
150+ * email here. If omitted, files are only retrievable via
151+ * `GET /v4/inbound-email/{id}/files`.
150152 */
151153 public function withCallbackURL (string $ callbackURL ): self
152154 {
Original file line number Diff line number Diff line change @@ -40,8 +40,8 @@ final class File implements BaseModel
4040 /**
4141 * URL expiration time in seconds. Defaults vary by source:
4242 * - Gmail Inbox Import: 86400 (24h)
43- * - Inbound Email (webhook mode) : 172800 (48h)
44- * - Inbound Email (SDK mode) : aligned with the session TTL (~30 min)
43+ * - Inbound Email with `callback_url` set : 172800 (48h)
44+ * - Inbound Email without `callback_url` : aligned with the session TTL (~30 min)
4545 */
4646 #[Optional('expires_in ' )]
4747 public ?int $ expiresIn ;
@@ -142,8 +142,8 @@ public function withCasType(CasType|string $casType): self
142142 /**
143143 * URL expiration time in seconds. Defaults vary by source:
144144 * - Gmail Inbox Import: 86400 (24h)
145- * - Inbound Email (webhook mode) : 172800 (48h)
146- * - Inbound Email (SDK mode) : aligned with the session TTL (~30 min)
145+ * - Inbound Email with `callback_url` set : 172800 (48h)
146+ * - Inbound Email without `callback_url` : aligned with the session TTL (~30 min)
147147 */
148148 public function withExpiresIn (int $ expiresIn ): self
149149 {
You can’t perform that action at this time.
0 commit comments