@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/brain.js +1110 -856
- package/dist/deploy.js +4 -4
- package/dist/deploy.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +2 -2
- package/dist/interfaces.js +35 -35
- package/dist/interfaces.js.map +3 -3
- package/dist/plugins.d.ts +8 -2
- package/dist/plugins.js +17 -17
- package/dist/plugins.js.map +7 -7
- package/dist/site.js +803 -188
- package/dist/site.js.map +183 -16
- package/dist/templates.d.ts +19 -4
- package/dist/templates.js +52 -52
- package/dist/templates.js.map +3 -3
- package/package.json +2 -1
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 {
|