Hello - I have a problem where I'm extending a base item like so in my package /embeddings:
const BaseUpsertItemSchema = z.object({
text: z.string(),
id: z.string().uuid(),
})
type BaseUpsertItem = z.infer<typeof BaseUpsertItemSchema>
export interface UpsertItem<T extends ValidIndexNames> extends BaseUpsertItem {
metadata: MetadataTypeMap[T]
}
and then trying to use UpsertItem in my package for trigger jobs. This doesn't work - I've verified this type of logic works within the package where it is defined