@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.
@@ -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;