Skip to content

Commit 61803b2

Browse files
feat(api): api update
1 parent 673d298 commit 61803b2

5 files changed

Lines changed: 24 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

src/InboundEmail/InboundEmailGetResponse.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff 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
{

src/InboundEmail/InboundEmailListResponse/InboundEmail.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff 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
{

src/InboundEmail/InboundEmailNewResponse.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff 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
{

src/Inbox/InboxListCasFilesResponse/File.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
{

0 commit comments

Comments
 (0)