@rizom/brain 0.2.0-alpha.97 → 0.2.0-alpha.99
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 +747 -743
- package/dist/entities.d.ts +47 -0
- package/dist/entities.js +14 -14
- package/dist/entities.js.map +3 -3
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/plugins.d.ts +47 -0
- package/dist/plugins.js +17 -17
- package/dist/plugins.js.map +3 -3
- package/dist/services.js +15 -15
- package/dist/services.js.map +3 -3
- package/dist/site.js +293 -293
- package/dist/site.js.map +12 -9
- package/package.json +1 -1
package/dist/entities.d.ts
CHANGED
|
@@ -214,12 +214,59 @@ interface CreateExecutionContext {
|
|
|
214
214
|
/**
|
|
215
215
|
* Result returned to system_create when a plugin fully handles creation.
|
|
216
216
|
*/
|
|
217
|
+
declare const createResultAttachmentSchema: z.ZodObject<{
|
|
218
|
+
mediaType: z.ZodString;
|
|
219
|
+
url: z.ZodString;
|
|
220
|
+
downloadUrl: z.ZodOptional<z.ZodString>;
|
|
221
|
+
previewUrl: z.ZodOptional<z.ZodString>;
|
|
222
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
223
|
+
sizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
224
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
225
|
+
entityType: z.ZodOptional<z.ZodString>;
|
|
226
|
+
entityId: z.ZodOptional<z.ZodString>;
|
|
227
|
+
attachmentType: z.ZodOptional<z.ZodString>;
|
|
228
|
+
}, "strip", z.ZodTypeAny, {
|
|
229
|
+
entityType?: string | undefined;
|
|
230
|
+
entityId?: string | undefined;
|
|
231
|
+
attachmentType?: string | undefined;
|
|
232
|
+
}, {
|
|
233
|
+
entityType?: string | undefined;
|
|
234
|
+
entityId?: string | undefined;
|
|
235
|
+
attachmentType?: string | undefined;
|
|
236
|
+
}>>;
|
|
237
|
+
}, "strip", z.ZodTypeAny, {
|
|
238
|
+
mediaType: string;
|
|
239
|
+
url: string;
|
|
240
|
+
downloadUrl?: string | undefined;
|
|
241
|
+
previewUrl?: string | undefined;
|
|
242
|
+
filename?: string | undefined;
|
|
243
|
+
sizeBytes?: number | undefined;
|
|
244
|
+
source?: {
|
|
245
|
+
entityType?: string | undefined;
|
|
246
|
+
entityId?: string | undefined;
|
|
247
|
+
attachmentType?: string | undefined;
|
|
248
|
+
} | undefined;
|
|
249
|
+
}, {
|
|
250
|
+
mediaType: string;
|
|
251
|
+
url: string;
|
|
252
|
+
downloadUrl?: string | undefined;
|
|
253
|
+
previewUrl?: string | undefined;
|
|
254
|
+
filename?: string | undefined;
|
|
255
|
+
sizeBytes?: number | undefined;
|
|
256
|
+
source?: {
|
|
257
|
+
entityType?: string | undefined;
|
|
258
|
+
entityId?: string | undefined;
|
|
259
|
+
attachmentType?: string | undefined;
|
|
260
|
+
} | undefined;
|
|
261
|
+
}>;
|
|
262
|
+
type CreateResultAttachment = z.infer<typeof createResultAttachmentSchema>;
|
|
217
263
|
type CreateResult = {
|
|
218
264
|
success: true;
|
|
219
265
|
data: {
|
|
220
266
|
entityId?: string;
|
|
221
267
|
jobId?: string;
|
|
222
268
|
status: string;
|
|
269
|
+
attachment?: CreateResultAttachment;
|
|
223
270
|
};
|
|
224
271
|
} | {
|
|
225
272
|
success: false;
|