File tree Expand file tree Collapse file tree
src/alphalib/types/robots Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,7 +33,8 @@ const imagePartSchema = z.object({
3333 z . string ( ) ,
3434 z . instanceof ( Uint8Array ) ,
3535 z . instanceof ( ArrayBuffer ) ,
36- z . instanceof ( Buffer ) ,
36+ // Note: Buffer is not included here since it's Node.js-only and this code runs in browsers.
37+ // Node.js Buffer extends Uint8Array, so Uint8Array validation handles Buffer values too.
3738 z . instanceof ( URL ) ,
3839 ] ) ,
3940 mimeType : z . string ( ) . optional ( ) ,
@@ -45,7 +46,8 @@ const filePartSchema = z.object({
4546 z . string ( ) ,
4647 z . instanceof ( Uint8Array ) ,
4748 z . instanceof ( ArrayBuffer ) ,
48- z . instanceof ( Buffer ) ,
49+ // Note: Buffer is not included here since it's Node.js-only and this code runs in browsers.
50+ // Node.js Buffer extends Uint8Array, so Uint8Array validation handles Buffer values too.
4951 z . instanceof ( URL ) ,
5052 ] ) ,
5153 mediaType : z . string ( ) ,
@@ -136,7 +138,7 @@ export const meta: RobotMetaInput = {
136138 trackOutputFileSize : true ,
137139 isInternal : false ,
138140 removeJobResultFilesFromDiskRightAfterStoringOnS3 : false ,
139- stage : 'ga ' ,
141+ stage : 'alpha ' ,
140142}
141143
142144export const vendorModelSchema = z
You can’t perform that action at this time.
0 commit comments