Skip to content

Commit ae47b54

Browse files
committed
Php Stan Type with _meta
1 parent 548ea51 commit ae47b54

File tree

7 files changed

+15
-4
lines changed

7 files changed

+15
-4
lines changed

src/Schema/Content/BlobResourceContents.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
* @phpstan-type BlobResourceContentsData array{
2020
* uri: string,
2121
* mimeType?: string|null,
22-
* blob: string
22+
* blob: string,
23+
* _meta?: array<string, mixed>
2324
* }
2425
*
2526
* @author Kyrian Obikwelu <[email protected]>

src/Schema/Content/ResourceContents.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
*
1717
* @phpstan-type ResourceContentsData = array{
1818
* uri: string,
19-
* mimeType?: string|null
19+
* mimeType?: string|null,
20+
* _meta?: array<string, mixed>
2021
* }
2122
*
2223
* @author Kyrian Obikwelu <[email protected]>

src/Schema/Content/TextResourceContents.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
* @phpstan-type TextResourceContentsData array{
2020
* uri: string,
2121
* mimeType?: string|null,
22-
* text: string
22+
* text: string,
23+
* _meta?: array<string, mixed>
2324
* }
2425
*
2526
* @author Kyrian Obikwelu <[email protected]>

src/Schema/Prompt.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
* name: string,
2323
* description?: string,
2424
* arguments?: PromptArgumentData[],
25+
* _meta?: array<string, mixed>
2526
* }
2627
*
2728
* @author Kyrian Obikwelu <[email protected]>
@@ -78,7 +79,8 @@ public static function fromArray(array $data): self
7879
* @return array{
7980
* name: string,
8081
* description?: string,
81-
* arguments?: array<PromptArgument>
82+
* arguments?: array<PromptArgument>,
83+
* _meta?: array<string, mixed>
8284
* }
8385
*/
8486
public function jsonSerialize(): array

src/Schema/Resource.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
* mimeType?: string|null,
2626
* annotations?: AnnotationsData|null,
2727
* size?: int|null,
28+
* _meta?: array<string, mixed>
2829
* }
2930
*
3031
* @author Kyrian Obikwelu <[email protected]>
@@ -105,6 +106,7 @@ public static function fromArray(array $data): self
105106
* mimeType?: string,
106107
* annotations?: Annotations,
107108
* size?: int,
109+
* _meta?: array<string, mixed>
108110
* }
109111
*/
110112
public function jsonSerialize(): array

src/Schema/ResourceTemplate.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
* description?: string|null,
2525
* mimeType?: string|null,
2626
* annotations?: AnnotationsData|null,
27+
* _meta?: array<string, mixed>
2728
* }
2829
*
2930
* @author Kyrian Obikwelu <[email protected]>
@@ -98,6 +99,7 @@ public static function fromArray(array $data): self
9899
* description?: string,
99100
* mimeType?: string,
100101
* annotations?: Annotations,
102+
* _meta?: array<string, mixed>
101103
* }
102104
*/
103105
public function jsonSerialize(): array

src/Schema/Tool.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
* inputSchema: ToolInputSchema,
2929
* description?: string|null,
3030
* annotations?: ToolAnnotationsData,
31+
* _meta?: array<string, mixed>
3132
* }
3233
*
3334
* @author Kyrian Obikwelu <[email protected]>
@@ -88,6 +89,7 @@ public static function fromArray(array $data): self
8889
* inputSchema: ToolInputSchema,
8990
* description?: string,
9091
* annotations?: ToolAnnotations,
92+
* _meta?: array<string, mixed>
9193
* }
9294
*/
9395
public function jsonSerialize(): array

0 commit comments

Comments
 (0)