@rizom/brain 0.2.0-alpha.78 → 0.2.0-alpha.79

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/plugins.d.ts CHANGED
@@ -377,6 +377,12 @@ interface EntityService extends ICoreEntityService {
377
377
  declare const UserPermissionLevelSchema: z.ZodEnum<["anchor", "trusted", "public"]>;
378
378
  type UserPermissionLevel = z.infer<typeof UserPermissionLevelSchema>;
379
379
 
380
+ /**
381
+ * Renderer output formats supported by view templates.
382
+ */
383
+ declare const OutputFormatSchema: z.ZodEnum<["web", "image", "pdf"]>;
384
+ type OutputFormat = z.infer<typeof OutputFormatSchema>;
385
+
380
386
  declare const ChatContextSchema: z.ZodObject<{
381
387
  userPermissionLevel: z.ZodOptional<z.ZodEnum<["anchor", "trusted", "public"]>>;
382
388
  interfaceType: z.ZodOptional<z.ZodString>;
@@ -1202,8 +1208,8 @@ interface IServiceTemplatesNamespace {
1202
1208
  interface IViewsNamespace {
1203
1209
  get(name: string): unknown | undefined;
1204
1210
  list(): unknown[];
1205
- hasRenderer(templateName: string): boolean;
1206
- getRenderer(templateName: string): unknown | undefined;
1211
+ hasRenderer(templateName: string, format?: OutputFormat): boolean;
1212
+ getRenderer(templateName: string, format?: OutputFormat): unknown | undefined;
1207
1213
  validate(templateName: string, content: unknown): boolean;
1208
1214
  }
1209
1215
  interface ServicePluginContext extends BasePluginContext {