Skip to content

Commit bb7fbb4

Browse files
committed
chore: improve typing on enums
1 parent b3c8409 commit bb7fbb4

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/Responses/Containers/Files/ContainerFileListResponse.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ final class ContainerFileListResponse implements ResponseContract, ResponseHasMe
2929
use HasMetaInformation;
3030

3131
/**
32+
* @param 'list' $object
3233
* @param array<int, ContainerFileResponse> $data
3334
*/
3435
private function __construct(

src/Responses/Containers/Files/ContainerFileResponse.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
use OpenAI\Testing\Responses\Concerns\Fakeable;
1313

1414
/**
15-
* @phpstan-type ContainerFileType array{id: string, object: 'container.file', created_at: int, bytes: int, container_id: string, path: string, source: string}
15+
* @phpstan-type ContainerFileType array{id: string, object: 'container.file', created_at: int, bytes: int, container_id: string, path: string, source: 'user'|'assistant'}
1616
*
1717
* @implements ResponseContract<ContainerFileType>
1818
*/
@@ -26,6 +26,10 @@ final class ContainerFileResponse implements ResponseContract, ResponseHasMetaIn
2626
use Fakeable;
2727
use HasMetaInformation;
2828

29+
/**
30+
* @param 'container.file' $object
31+
* @param 'user'|'assistant' $source
32+
*/
2933
private function __construct(
3034
public readonly string $id,
3135
public readonly string $object,

0 commit comments

Comments
 (0)