@devframes/plugin-assets 0.7.15

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.
@@ -0,0 +1,1093 @@
1
+ import { DevframeNodeContext } from "devframe/types";
2
+ import { RpcDefinitionsToFunctions } from "devframe/rpc";
3
+ import * as v from "valibot";
4
+ //#region src/rpc/functions/capabilities.d.ts
5
+ interface AssetsCapabilities {
6
+ write: boolean;
7
+ uploadExtensions: readonly string[] | '*';
8
+ }
9
+ /**
10
+ * Lets the UI know upfront whether upload / rename / delete / mkdir are
11
+ * available, so it can hide or disable those affordances proactively
12
+ * instead of letting the user hit a "method not found" error — the same
13
+ * `canWrite`-gating idea the git plugin's `GitStatus.canWrite` follows.
14
+ */
15
+ declare const capabilities: {
16
+ name: "devframes:plugin:assets:capabilities";
17
+ type?: "query" | undefined;
18
+ cacheable?: boolean;
19
+ args: readonly [];
20
+ returns: v.ObjectSchema<{
21
+ readonly write: v.BooleanSchema<undefined>;
22
+ readonly uploadExtensions: v.UnionSchema<[v.ArraySchema<v.StringSchema<undefined>, undefined>, v.LiteralSchema<"*", undefined>], undefined>;
23
+ }, undefined>;
24
+ jsonSerializable?: boolean;
25
+ agent?: import("devframe").RpcFunctionAgentOptions;
26
+ setup?: ((context: DevframeNodeContext) => import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[], {
27
+ write: boolean;
28
+ uploadExtensions: string[] | "*";
29
+ }>>) | undefined;
30
+ handler?: (() => {
31
+ write: boolean;
32
+ uploadExtensions: string[] | "*";
33
+ }) | undefined;
34
+ dump?: import("devframe/rpc").RpcDump<[], {
35
+ write: boolean;
36
+ uploadExtensions: string[] | "*";
37
+ }, DevframeNodeContext> | undefined;
38
+ snapshot?: boolean;
39
+ __cache?: WeakMap<object, import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[], {
40
+ write: boolean;
41
+ uploadExtensions: string[] | "*";
42
+ }>>> | undefined;
43
+ __promise?: import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[], {
44
+ write: boolean;
45
+ uploadExtensions: string[] | "*";
46
+ }>> | undefined;
47
+ };
48
+ //#endregion
49
+ //#region src/rpc/functions/delete.d.ts
50
+ /** One request covers both single- and multi-select delete. */
51
+ declare const deleteAssets: {
52
+ name: "devframes:plugin:assets:delete";
53
+ type?: "action" | undefined;
54
+ cacheable?: boolean;
55
+ args: readonly [v.ObjectSchema<{
56
+ readonly paths: v.ArraySchema<v.StringSchema<undefined>, undefined>;
57
+ }, undefined>];
58
+ returns: v.ObjectSchema<{
59
+ readonly deleted: v.ArraySchema<v.StringSchema<undefined>, undefined>;
60
+ }, undefined>;
61
+ jsonSerializable?: boolean;
62
+ agent?: import("devframe").RpcFunctionAgentOptions;
63
+ setup?: ((context: DevframeNodeContext) => import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[{
64
+ paths: string[];
65
+ }], {
66
+ deleted: string[];
67
+ }>>) | undefined;
68
+ handler?: ((args_0: {
69
+ paths: string[];
70
+ }) => {
71
+ deleted: string[];
72
+ }) | undefined;
73
+ dump?: import("devframe/rpc").RpcDump<[{
74
+ paths: string[];
75
+ }], {
76
+ deleted: string[];
77
+ }, DevframeNodeContext> | undefined;
78
+ snapshot?: boolean;
79
+ __cache?: WeakMap<object, import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[{
80
+ paths: string[];
81
+ }], {
82
+ deleted: string[];
83
+ }>>> | undefined;
84
+ __promise?: import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[{
85
+ paths: string[];
86
+ }], {
87
+ deleted: string[];
88
+ }>> | undefined;
89
+ };
90
+ //#endregion
91
+ //#region src/rpc/functions/list.d.ts
92
+ declare const assetInfoSchema: v.ObjectSchema<{
93
+ readonly path: v.StringSchema<undefined>;
94
+ readonly type: v.PicklistSchema<["image", "font", "video", "audio", "text", "other"], undefined>;
95
+ readonly publicPath: v.StringSchema<undefined>;
96
+ readonly size: v.NumberSchema<undefined>;
97
+ readonly mtime: v.NumberSchema<undefined>;
98
+ }, undefined>;
99
+ declare const list: {
100
+ name: "devframes:plugin:assets:list";
101
+ type?: "query" | undefined;
102
+ cacheable?: boolean;
103
+ args: readonly [];
104
+ returns: v.ArraySchema<v.ObjectSchema<{
105
+ readonly path: v.StringSchema<undefined>;
106
+ readonly type: v.PicklistSchema<["image", "font", "video", "audio", "text", "other"], undefined>;
107
+ readonly publicPath: v.StringSchema<undefined>;
108
+ readonly size: v.NumberSchema<undefined>;
109
+ readonly mtime: v.NumberSchema<undefined>;
110
+ }, undefined>, undefined>;
111
+ jsonSerializable?: boolean;
112
+ agent?: import("devframe").RpcFunctionAgentOptions;
113
+ setup?: ((context: DevframeNodeContext) => import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[], {
114
+ path: string;
115
+ type: "image" | "font" | "video" | "audio" | "text" | "other";
116
+ publicPath: string;
117
+ size: number;
118
+ mtime: number;
119
+ }[]>>) | undefined;
120
+ handler?: (() => {
121
+ path: string;
122
+ type: "image" | "font" | "video" | "audio" | "text" | "other";
123
+ publicPath: string;
124
+ size: number;
125
+ mtime: number;
126
+ }[]) | undefined;
127
+ dump?: import("devframe/rpc").RpcDump<[], {
128
+ path: string;
129
+ type: "image" | "font" | "video" | "audio" | "text" | "other";
130
+ publicPath: string;
131
+ size: number;
132
+ mtime: number;
133
+ }[], DevframeNodeContext> | undefined;
134
+ snapshot?: boolean;
135
+ __cache?: WeakMap<object, import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[], {
136
+ path: string;
137
+ type: "image" | "font" | "video" | "audio" | "text" | "other";
138
+ publicPath: string;
139
+ size: number;
140
+ mtime: number;
141
+ }[]>>> | undefined;
142
+ __promise?: import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[], {
143
+ path: string;
144
+ type: "image" | "font" | "video" | "audio" | "text" | "other";
145
+ publicPath: string;
146
+ size: number;
147
+ mtime: number;
148
+ }[]>> | undefined;
149
+ };
150
+ //#endregion
151
+ //#region src/rpc/functions/mkdir.d.ts
152
+ declare const mkdir: {
153
+ name: "devframes:plugin:assets:mkdir";
154
+ type?: "action" | undefined;
155
+ cacheable?: boolean;
156
+ args: readonly [v.ObjectSchema<{
157
+ readonly path: v.StringSchema<undefined>;
158
+ }, undefined>];
159
+ returns: v.VoidSchema<undefined>;
160
+ jsonSerializable?: boolean;
161
+ agent?: import("devframe").RpcFunctionAgentOptions;
162
+ setup?: ((context: DevframeNodeContext) => import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[{
163
+ path: string;
164
+ }], void>>) | undefined;
165
+ handler?: ((args_0: {
166
+ path: string;
167
+ }) => void) | undefined;
168
+ dump?: import("devframe/rpc").RpcDump<[{
169
+ path: string;
170
+ }], void, DevframeNodeContext> | undefined;
171
+ snapshot?: boolean;
172
+ __cache?: WeakMap<object, import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[{
173
+ path: string;
174
+ }], void>>> | undefined;
175
+ __promise?: import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[{
176
+ path: string;
177
+ }], void>> | undefined;
178
+ };
179
+ //#endregion
180
+ //#region src/rpc/functions/open-in-editor.d.ts
181
+ /**
182
+ * Reuses devframe's `launchEditor` utility (the same one backing the core
183
+ * `devframe:open-in-editor` recipe) but resolves the path against the
184
+ * managed directory first, so the client only ever sends a root-relative
185
+ * path — never the server's absolute filesystem layout.
186
+ */
187
+ declare const openInEditor: {
188
+ name: "devframes:plugin:assets:open-in-editor";
189
+ type?: "action" | undefined;
190
+ cacheable?: boolean;
191
+ args: readonly [v.StringSchema<undefined>];
192
+ returns: v.VoidSchema<undefined>;
193
+ jsonSerializable?: boolean;
194
+ agent?: import("devframe").RpcFunctionAgentOptions;
195
+ setup?: ((context: DevframeNodeContext) => import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[string], void>>) | undefined;
196
+ handler?: ((args_0: string) => void) | undefined;
197
+ dump?: import("devframe/rpc").RpcDump<[string], void, DevframeNodeContext> | undefined;
198
+ snapshot?: boolean;
199
+ __cache?: WeakMap<object, import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[string], void>>> | undefined;
200
+ __promise?: import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[string], void>> | undefined;
201
+ };
202
+ //#endregion
203
+ //#region src/rpc/functions/read-image-meta.d.ts
204
+ declare const readImageMeta: {
205
+ name: "devframes:plugin:assets:read-image-meta";
206
+ type?: "query" | undefined;
207
+ cacheable?: boolean;
208
+ args: readonly [v.StringSchema<undefined>];
209
+ returns: v.NullableSchema<v.ObjectSchema<{
210
+ readonly width: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
211
+ readonly height: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
212
+ readonly orientation: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
213
+ }, undefined>, undefined>;
214
+ jsonSerializable?: boolean;
215
+ agent?: import("devframe").RpcFunctionAgentOptions;
216
+ setup?: ((context: DevframeNodeContext) => import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[string], {
217
+ width?: number | undefined;
218
+ height?: number | undefined;
219
+ orientation?: number | undefined;
220
+ } | null>>) | undefined;
221
+ handler?: ((args_0: string) => {
222
+ width?: number | undefined;
223
+ height?: number | undefined;
224
+ orientation?: number | undefined;
225
+ } | null) | undefined;
226
+ dump?: import("devframe/rpc").RpcDump<[string], {
227
+ width?: number | undefined;
228
+ height?: number | undefined;
229
+ orientation?: number | undefined;
230
+ } | null, DevframeNodeContext> | undefined;
231
+ snapshot?: boolean;
232
+ __cache?: WeakMap<object, import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[string], {
233
+ width?: number | undefined;
234
+ height?: number | undefined;
235
+ orientation?: number | undefined;
236
+ } | null>>> | undefined;
237
+ __promise?: import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[string], {
238
+ width?: number | undefined;
239
+ height?: number | undefined;
240
+ orientation?: number | undefined;
241
+ } | null>> | undefined;
242
+ };
243
+ //#endregion
244
+ //#region src/rpc/functions/read-text.d.ts
245
+ declare const readText: {
246
+ name: "devframes:plugin:assets:read-text";
247
+ type?: "query" | undefined;
248
+ cacheable?: boolean;
249
+ args: readonly [v.StringSchema<undefined>, v.OptionalSchema<v.NumberSchema<undefined>, undefined>];
250
+ returns: v.NullableSchema<v.StringSchema<undefined>, undefined>;
251
+ jsonSerializable?: boolean;
252
+ agent?: import("devframe").RpcFunctionAgentOptions;
253
+ setup?: ((context: DevframeNodeContext) => import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[string, number | undefined], string | null>>) | undefined;
254
+ handler?: ((args_0: string, args_1: number | undefined) => string | null) | undefined;
255
+ dump?: import("devframe/rpc").RpcDump<[string, number | undefined], string | null, DevframeNodeContext> | undefined;
256
+ snapshot?: boolean;
257
+ __cache?: WeakMap<object, import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[string, number | undefined], string | null>>> | undefined;
258
+ __promise?: import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[string, number | undefined], string | null>> | undefined;
259
+ };
260
+ //#endregion
261
+ //#region src/rpc/functions/rename.d.ts
262
+ interface RenameArgs {
263
+ /** Root-relative path of the asset to rename. */
264
+ path: string;
265
+ /**
266
+ * New base name, without an extension — the original extension is
267
+ * always preserved (mirrors Nuxt DevTools' rename dialog exactly). Any
268
+ * extension included here is treated as part of the base name, not
269
+ * stripped.
270
+ */
271
+ newName: string;
272
+ }
273
+ declare const rename: {
274
+ name: "devframes:plugin:assets:rename";
275
+ type?: "action" | undefined;
276
+ cacheable?: boolean;
277
+ args: readonly [v.ObjectSchema<{
278
+ readonly path: v.StringSchema<undefined>;
279
+ readonly newName: v.StringSchema<undefined>;
280
+ }, undefined>];
281
+ returns: v.ObjectSchema<{
282
+ readonly path: v.StringSchema<undefined>;
283
+ readonly type: v.PicklistSchema<["image", "font", "video", "audio", "text", "other"], undefined>;
284
+ readonly publicPath: v.StringSchema<undefined>;
285
+ readonly size: v.NumberSchema<undefined>;
286
+ readonly mtime: v.NumberSchema<undefined>;
287
+ }, undefined>;
288
+ jsonSerializable?: boolean;
289
+ agent?: import("devframe").RpcFunctionAgentOptions;
290
+ setup?: ((context: DevframeNodeContext) => import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[{
291
+ path: string;
292
+ newName: string;
293
+ }], {
294
+ path: string;
295
+ type: "image" | "font" | "video" | "audio" | "text" | "other";
296
+ publicPath: string;
297
+ size: number;
298
+ mtime: number;
299
+ }>>) | undefined;
300
+ handler?: ((args_0: {
301
+ path: string;
302
+ newName: string;
303
+ }) => {
304
+ path: string;
305
+ type: "image" | "font" | "video" | "audio" | "text" | "other";
306
+ publicPath: string;
307
+ size: number;
308
+ mtime: number;
309
+ }) | undefined;
310
+ dump?: import("devframe/rpc").RpcDump<[{
311
+ path: string;
312
+ newName: string;
313
+ }], {
314
+ path: string;
315
+ type: "image" | "font" | "video" | "audio" | "text" | "other";
316
+ publicPath: string;
317
+ size: number;
318
+ mtime: number;
319
+ }, DevframeNodeContext> | undefined;
320
+ snapshot?: boolean;
321
+ __cache?: WeakMap<object, import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[{
322
+ path: string;
323
+ newName: string;
324
+ }], {
325
+ path: string;
326
+ type: "image" | "font" | "video" | "audio" | "text" | "other";
327
+ publicPath: string;
328
+ size: number;
329
+ mtime: number;
330
+ }>>> | undefined;
331
+ __promise?: import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[{
332
+ path: string;
333
+ newName: string;
334
+ }], {
335
+ path: string;
336
+ type: "image" | "font" | "video" | "audio" | "text" | "other";
337
+ publicPath: string;
338
+ size: number;
339
+ mtime: number;
340
+ }>> | undefined;
341
+ };
342
+ //#endregion
343
+ //#region src/rpc/functions/reveal-in-folder.d.ts
344
+ /**
345
+ * Reuses devframe's `open` utility (the same one backing the core
346
+ * `devframe:open-in-finder` recipe), opening the asset's containing folder
347
+ * so it's revealed in the OS file manager rather than launched with its
348
+ * default app (which `download` already covers).
349
+ */
350
+ declare const revealInFolder: {
351
+ name: "devframes:plugin:assets:reveal-in-folder";
352
+ type?: "action" | undefined;
353
+ cacheable?: boolean;
354
+ args: readonly [v.StringSchema<undefined>];
355
+ returns: v.VoidSchema<undefined>;
356
+ jsonSerializable?: boolean;
357
+ agent?: import("devframe").RpcFunctionAgentOptions;
358
+ setup?: ((context: DevframeNodeContext) => import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[string], void>>) | undefined;
359
+ handler?: ((args_0: string) => void) | undefined;
360
+ dump?: import("devframe/rpc").RpcDump<[string], void, DevframeNodeContext> | undefined;
361
+ snapshot?: boolean;
362
+ __cache?: WeakMap<object, import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[string], void>>> | undefined;
363
+ __promise?: import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[string], void>> | undefined;
364
+ };
365
+ //#endregion
366
+ //#region src/rpc/functions/upload.d.ts
367
+ /** Streaming channel name, namespaced like every other RPC name in this plugin. */
368
+ declare const UPLOAD_CHANNEL = "devframes:plugin:assets:upload";
369
+ /**
370
+ * Allocates an upload and returns a streaming id. Actual bytes flow over
371
+ * the `upload` channel opened in `setupAssets` — see the client-side
372
+ * `useUpload` hook for the matching `rpc.streaming.upload()` call.
373
+ */
374
+ declare const upload: {
375
+ name: "devframes:plugin:assets:upload";
376
+ type?: "action" | undefined;
377
+ cacheable?: boolean;
378
+ args: readonly [v.ObjectSchema<{
379
+ readonly path: v.StringSchema<undefined>;
380
+ }, undefined>];
381
+ returns: v.ObjectSchema<{
382
+ readonly uploadId: v.StringSchema<undefined>;
383
+ }, undefined>;
384
+ jsonSerializable?: boolean;
385
+ agent?: import("devframe").RpcFunctionAgentOptions;
386
+ setup?: ((context: DevframeNodeContext) => import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[{
387
+ path: string;
388
+ }], {
389
+ uploadId: string;
390
+ }>>) | undefined;
391
+ handler?: ((args_0: {
392
+ path: string;
393
+ }) => {
394
+ uploadId: string;
395
+ }) | undefined;
396
+ dump?: import("devframe/rpc").RpcDump<[{
397
+ path: string;
398
+ }], {
399
+ uploadId: string;
400
+ }, DevframeNodeContext> | undefined;
401
+ snapshot?: boolean;
402
+ __cache?: WeakMap<object, import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[{
403
+ path: string;
404
+ }], {
405
+ uploadId: string;
406
+ }>>> | undefined;
407
+ __promise?: import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[{
408
+ path: string;
409
+ }], {
410
+ uploadId: string;
411
+ }>> | undefined;
412
+ };
413
+ //#endregion
414
+ //#region src/rpc/index.d.ts
415
+ /** Read-only RPC — always registered. */
416
+ declare const readFunctions: readonly [{
417
+ name: "devframes:plugin:assets:list";
418
+ type?: "query" | undefined;
419
+ cacheable?: boolean;
420
+ args: readonly [];
421
+ returns: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
422
+ readonly path: import("valibot").StringSchema<undefined>;
423
+ readonly type: import("valibot").PicklistSchema<["image", "font", "video", "audio", "text", "other"], undefined>;
424
+ readonly publicPath: import("valibot").StringSchema<undefined>;
425
+ readonly size: import("valibot").NumberSchema<undefined>;
426
+ readonly mtime: import("valibot").NumberSchema<undefined>;
427
+ }, undefined>, undefined>;
428
+ jsonSerializable?: boolean;
429
+ agent?: import("devframe").RpcFunctionAgentOptions;
430
+ setup?: ((context: import("devframe").DevframeNodeContext) => import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[], {
431
+ path: string;
432
+ type: "image" | "font" | "video" | "audio" | "text" | "other";
433
+ publicPath: string;
434
+ size: number;
435
+ mtime: number;
436
+ }[]>>) | undefined;
437
+ handler?: (() => {
438
+ path: string;
439
+ type: "image" | "font" | "video" | "audio" | "text" | "other";
440
+ publicPath: string;
441
+ size: number;
442
+ mtime: number;
443
+ }[]) | undefined;
444
+ dump?: import("devframe/rpc").RpcDump<[], {
445
+ path: string;
446
+ type: "image" | "font" | "video" | "audio" | "text" | "other";
447
+ publicPath: string;
448
+ size: number;
449
+ mtime: number;
450
+ }[], import("devframe").DevframeNodeContext> | undefined;
451
+ snapshot?: boolean;
452
+ __cache?: WeakMap<object, import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[], {
453
+ path: string;
454
+ type: "image" | "font" | "video" | "audio" | "text" | "other";
455
+ publicPath: string;
456
+ size: number;
457
+ mtime: number;
458
+ }[]>>> | undefined;
459
+ __promise?: import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[], {
460
+ path: string;
461
+ type: "image" | "font" | "video" | "audio" | "text" | "other";
462
+ publicPath: string;
463
+ size: number;
464
+ mtime: number;
465
+ }[]>> | undefined;
466
+ }, {
467
+ name: "devframes:plugin:assets:read-image-meta";
468
+ type?: "query" | undefined;
469
+ cacheable?: boolean;
470
+ args: readonly [import("valibot").StringSchema<undefined>];
471
+ returns: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
472
+ readonly width: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
473
+ readonly height: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
474
+ readonly orientation: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
475
+ }, undefined>, undefined>;
476
+ jsonSerializable?: boolean;
477
+ agent?: import("devframe").RpcFunctionAgentOptions;
478
+ setup?: ((context: import("devframe").DevframeNodeContext) => import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[string], {
479
+ width?: number | undefined;
480
+ height?: number | undefined;
481
+ orientation?: number | undefined;
482
+ } | null>>) | undefined;
483
+ handler?: ((args_0: string) => {
484
+ width?: number | undefined;
485
+ height?: number | undefined;
486
+ orientation?: number | undefined;
487
+ } | null) | undefined;
488
+ dump?: import("devframe/rpc").RpcDump<[string], {
489
+ width?: number | undefined;
490
+ height?: number | undefined;
491
+ orientation?: number | undefined;
492
+ } | null, import("devframe").DevframeNodeContext> | undefined;
493
+ snapshot?: boolean;
494
+ __cache?: WeakMap<object, import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[string], {
495
+ width?: number | undefined;
496
+ height?: number | undefined;
497
+ orientation?: number | undefined;
498
+ } | null>>> | undefined;
499
+ __promise?: import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[string], {
500
+ width?: number | undefined;
501
+ height?: number | undefined;
502
+ orientation?: number | undefined;
503
+ } | null>> | undefined;
504
+ }, {
505
+ name: "devframes:plugin:assets:read-text";
506
+ type?: "query" | undefined;
507
+ cacheable?: boolean;
508
+ args: readonly [import("valibot").StringSchema<undefined>, import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>];
509
+ returns: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
510
+ jsonSerializable?: boolean;
511
+ agent?: import("devframe").RpcFunctionAgentOptions;
512
+ setup?: ((context: import("devframe").DevframeNodeContext) => import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[string, number | undefined], string | null>>) | undefined;
513
+ handler?: ((args_0: string, args_1: number | undefined) => string | null) | undefined;
514
+ dump?: import("devframe/rpc").RpcDump<[string, number | undefined], string | null, import("devframe").DevframeNodeContext> | undefined;
515
+ snapshot?: boolean;
516
+ __cache?: WeakMap<object, import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[string, number | undefined], string | null>>> | undefined;
517
+ __promise?: import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[string, number | undefined], string | null>> | undefined;
518
+ }, {
519
+ name: "devframes:plugin:assets:capabilities";
520
+ type?: "query" | undefined;
521
+ cacheable?: boolean;
522
+ args: readonly [];
523
+ returns: import("valibot").ObjectSchema<{
524
+ readonly write: import("valibot").BooleanSchema<undefined>;
525
+ readonly uploadExtensions: import("valibot").UnionSchema<[import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, import("valibot").LiteralSchema<"*", undefined>], undefined>;
526
+ }, undefined>;
527
+ jsonSerializable?: boolean;
528
+ agent?: import("devframe").RpcFunctionAgentOptions;
529
+ setup?: ((context: import("devframe").DevframeNodeContext) => import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[], {
530
+ write: boolean;
531
+ uploadExtensions: string[] | "*";
532
+ }>>) | undefined;
533
+ handler?: (() => {
534
+ write: boolean;
535
+ uploadExtensions: string[] | "*";
536
+ }) | undefined;
537
+ dump?: import("devframe/rpc").RpcDump<[], {
538
+ write: boolean;
539
+ uploadExtensions: string[] | "*";
540
+ }, import("devframe").DevframeNodeContext> | undefined;
541
+ snapshot?: boolean;
542
+ __cache?: WeakMap<object, import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[], {
543
+ write: boolean;
544
+ uploadExtensions: string[] | "*";
545
+ }>>> | undefined;
546
+ __promise?: import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[], {
547
+ write: boolean;
548
+ uploadExtensions: string[] | "*";
549
+ }>> | undefined;
550
+ }];
551
+ /**
552
+ * Informational actions — launch external apps, never touch the managed
553
+ * directory's contents. Always registered regardless of `write`.
554
+ */
555
+ declare const alwaysFunctions: readonly [{
556
+ name: "devframes:plugin:assets:open-in-editor";
557
+ type?: "action" | undefined;
558
+ cacheable?: boolean;
559
+ args: readonly [import("valibot").StringSchema<undefined>];
560
+ returns: import("valibot").VoidSchema<undefined>;
561
+ jsonSerializable?: boolean;
562
+ agent?: import("devframe").RpcFunctionAgentOptions;
563
+ setup?: ((context: import("devframe").DevframeNodeContext) => import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[string], void>>) | undefined;
564
+ handler?: ((args_0: string) => void) | undefined;
565
+ dump?: import("devframe/rpc").RpcDump<[string], void, import("devframe").DevframeNodeContext> | undefined;
566
+ snapshot?: boolean;
567
+ __cache?: WeakMap<object, import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[string], void>>> | undefined;
568
+ __promise?: import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[string], void>> | undefined;
569
+ }, {
570
+ name: "devframes:plugin:assets:reveal-in-folder";
571
+ type?: "action" | undefined;
572
+ cacheable?: boolean;
573
+ args: readonly [import("valibot").StringSchema<undefined>];
574
+ returns: import("valibot").VoidSchema<undefined>;
575
+ jsonSerializable?: boolean;
576
+ agent?: import("devframe").RpcFunctionAgentOptions;
577
+ setup?: ((context: import("devframe").DevframeNodeContext) => import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[string], void>>) | undefined;
578
+ handler?: ((args_0: string) => void) | undefined;
579
+ dump?: import("devframe/rpc").RpcDump<[string], void, import("devframe").DevframeNodeContext> | undefined;
580
+ snapshot?: boolean;
581
+ __cache?: WeakMap<object, import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[string], void>>> | undefined;
582
+ __promise?: import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[string], void>> | undefined;
583
+ }];
584
+ /** Mutating RPC — registered only when write actions are enabled. */
585
+ declare const writeFunctions: readonly [{
586
+ name: "devframes:plugin:assets:upload";
587
+ type?: "action" | undefined;
588
+ cacheable?: boolean;
589
+ args: readonly [import("valibot").ObjectSchema<{
590
+ readonly path: import("valibot").StringSchema<undefined>;
591
+ }, undefined>];
592
+ returns: import("valibot").ObjectSchema<{
593
+ readonly uploadId: import("valibot").StringSchema<undefined>;
594
+ }, undefined>;
595
+ jsonSerializable?: boolean;
596
+ agent?: import("devframe").RpcFunctionAgentOptions;
597
+ setup?: ((context: import("devframe").DevframeNodeContext) => import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[{
598
+ path: string;
599
+ }], {
600
+ uploadId: string;
601
+ }>>) | undefined;
602
+ handler?: ((args_0: {
603
+ path: string;
604
+ }) => {
605
+ uploadId: string;
606
+ }) | undefined;
607
+ dump?: import("devframe/rpc").RpcDump<[{
608
+ path: string;
609
+ }], {
610
+ uploadId: string;
611
+ }, import("devframe").DevframeNodeContext> | undefined;
612
+ snapshot?: boolean;
613
+ __cache?: WeakMap<object, import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[{
614
+ path: string;
615
+ }], {
616
+ uploadId: string;
617
+ }>>> | undefined;
618
+ __promise?: import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[{
619
+ path: string;
620
+ }], {
621
+ uploadId: string;
622
+ }>> | undefined;
623
+ }, {
624
+ name: "devframes:plugin:assets:rename";
625
+ type?: "action" | undefined;
626
+ cacheable?: boolean;
627
+ args: readonly [import("valibot").ObjectSchema<{
628
+ readonly path: import("valibot").StringSchema<undefined>;
629
+ readonly newName: import("valibot").StringSchema<undefined>;
630
+ }, undefined>];
631
+ returns: import("valibot").ObjectSchema<{
632
+ readonly path: import("valibot").StringSchema<undefined>;
633
+ readonly type: import("valibot").PicklistSchema<["image", "font", "video", "audio", "text", "other"], undefined>;
634
+ readonly publicPath: import("valibot").StringSchema<undefined>;
635
+ readonly size: import("valibot").NumberSchema<undefined>;
636
+ readonly mtime: import("valibot").NumberSchema<undefined>;
637
+ }, undefined>;
638
+ jsonSerializable?: boolean;
639
+ agent?: import("devframe").RpcFunctionAgentOptions;
640
+ setup?: ((context: import("devframe").DevframeNodeContext) => import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[{
641
+ path: string;
642
+ newName: string;
643
+ }], {
644
+ path: string;
645
+ type: "image" | "font" | "video" | "audio" | "text" | "other";
646
+ publicPath: string;
647
+ size: number;
648
+ mtime: number;
649
+ }>>) | undefined;
650
+ handler?: ((args_0: {
651
+ path: string;
652
+ newName: string;
653
+ }) => {
654
+ path: string;
655
+ type: "image" | "font" | "video" | "audio" | "text" | "other";
656
+ publicPath: string;
657
+ size: number;
658
+ mtime: number;
659
+ }) | undefined;
660
+ dump?: import("devframe/rpc").RpcDump<[{
661
+ path: string;
662
+ newName: string;
663
+ }], {
664
+ path: string;
665
+ type: "image" | "font" | "video" | "audio" | "text" | "other";
666
+ publicPath: string;
667
+ size: number;
668
+ mtime: number;
669
+ }, import("devframe").DevframeNodeContext> | undefined;
670
+ snapshot?: boolean;
671
+ __cache?: WeakMap<object, import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[{
672
+ path: string;
673
+ newName: string;
674
+ }], {
675
+ path: string;
676
+ type: "image" | "font" | "video" | "audio" | "text" | "other";
677
+ publicPath: string;
678
+ size: number;
679
+ mtime: number;
680
+ }>>> | undefined;
681
+ __promise?: import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[{
682
+ path: string;
683
+ newName: string;
684
+ }], {
685
+ path: string;
686
+ type: "image" | "font" | "video" | "audio" | "text" | "other";
687
+ publicPath: string;
688
+ size: number;
689
+ mtime: number;
690
+ }>> | undefined;
691
+ }, {
692
+ name: "devframes:plugin:assets:delete";
693
+ type?: "action" | undefined;
694
+ cacheable?: boolean;
695
+ args: readonly [import("valibot").ObjectSchema<{
696
+ readonly paths: import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>;
697
+ }, undefined>];
698
+ returns: import("valibot").ObjectSchema<{
699
+ readonly deleted: import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>;
700
+ }, undefined>;
701
+ jsonSerializable?: boolean;
702
+ agent?: import("devframe").RpcFunctionAgentOptions;
703
+ setup?: ((context: import("devframe").DevframeNodeContext) => import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[{
704
+ paths: string[];
705
+ }], {
706
+ deleted: string[];
707
+ }>>) | undefined;
708
+ handler?: ((args_0: {
709
+ paths: string[];
710
+ }) => {
711
+ deleted: string[];
712
+ }) | undefined;
713
+ dump?: import("devframe/rpc").RpcDump<[{
714
+ paths: string[];
715
+ }], {
716
+ deleted: string[];
717
+ }, import("devframe").DevframeNodeContext> | undefined;
718
+ snapshot?: boolean;
719
+ __cache?: WeakMap<object, import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[{
720
+ paths: string[];
721
+ }], {
722
+ deleted: string[];
723
+ }>>> | undefined;
724
+ __promise?: import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[{
725
+ paths: string[];
726
+ }], {
727
+ deleted: string[];
728
+ }>> | undefined;
729
+ }, {
730
+ name: "devframes:plugin:assets:mkdir";
731
+ type?: "action" | undefined;
732
+ cacheable?: boolean;
733
+ args: readonly [import("valibot").ObjectSchema<{
734
+ readonly path: import("valibot").StringSchema<undefined>;
735
+ }, undefined>];
736
+ returns: import("valibot").VoidSchema<undefined>;
737
+ jsonSerializable?: boolean;
738
+ agent?: import("devframe").RpcFunctionAgentOptions;
739
+ setup?: ((context: import("devframe").DevframeNodeContext) => import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[{
740
+ path: string;
741
+ }], void>>) | undefined;
742
+ handler?: ((args_0: {
743
+ path: string;
744
+ }) => void) | undefined;
745
+ dump?: import("devframe/rpc").RpcDump<[{
746
+ path: string;
747
+ }], void, import("devframe").DevframeNodeContext> | undefined;
748
+ snapshot?: boolean;
749
+ __cache?: WeakMap<object, import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[{
750
+ path: string;
751
+ }], void>>> | undefined;
752
+ __promise?: import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[{
753
+ path: string;
754
+ }], void>> | undefined;
755
+ }];
756
+ declare const serverFunctions: readonly [{
757
+ name: "devframes:plugin:assets:list";
758
+ type?: "query" | undefined;
759
+ cacheable?: boolean;
760
+ args: readonly [];
761
+ returns: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
762
+ readonly path: import("valibot").StringSchema<undefined>;
763
+ readonly type: import("valibot").PicklistSchema<["image", "font", "video", "audio", "text", "other"], undefined>;
764
+ readonly publicPath: import("valibot").StringSchema<undefined>;
765
+ readonly size: import("valibot").NumberSchema<undefined>;
766
+ readonly mtime: import("valibot").NumberSchema<undefined>;
767
+ }, undefined>, undefined>;
768
+ jsonSerializable?: boolean;
769
+ agent?: import("devframe").RpcFunctionAgentOptions;
770
+ setup?: ((context: import("devframe").DevframeNodeContext) => import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[], {
771
+ path: string;
772
+ type: "image" | "font" | "video" | "audio" | "text" | "other";
773
+ publicPath: string;
774
+ size: number;
775
+ mtime: number;
776
+ }[]>>) | undefined;
777
+ handler?: (() => {
778
+ path: string;
779
+ type: "image" | "font" | "video" | "audio" | "text" | "other";
780
+ publicPath: string;
781
+ size: number;
782
+ mtime: number;
783
+ }[]) | undefined;
784
+ dump?: import("devframe/rpc").RpcDump<[], {
785
+ path: string;
786
+ type: "image" | "font" | "video" | "audio" | "text" | "other";
787
+ publicPath: string;
788
+ size: number;
789
+ mtime: number;
790
+ }[], import("devframe").DevframeNodeContext> | undefined;
791
+ snapshot?: boolean;
792
+ __cache?: WeakMap<object, import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[], {
793
+ path: string;
794
+ type: "image" | "font" | "video" | "audio" | "text" | "other";
795
+ publicPath: string;
796
+ size: number;
797
+ mtime: number;
798
+ }[]>>> | undefined;
799
+ __promise?: import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[], {
800
+ path: string;
801
+ type: "image" | "font" | "video" | "audio" | "text" | "other";
802
+ publicPath: string;
803
+ size: number;
804
+ mtime: number;
805
+ }[]>> | undefined;
806
+ }, {
807
+ name: "devframes:plugin:assets:read-image-meta";
808
+ type?: "query" | undefined;
809
+ cacheable?: boolean;
810
+ args: readonly [import("valibot").StringSchema<undefined>];
811
+ returns: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
812
+ readonly width: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
813
+ readonly height: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
814
+ readonly orientation: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
815
+ }, undefined>, undefined>;
816
+ jsonSerializable?: boolean;
817
+ agent?: import("devframe").RpcFunctionAgentOptions;
818
+ setup?: ((context: import("devframe").DevframeNodeContext) => import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[string], {
819
+ width?: number | undefined;
820
+ height?: number | undefined;
821
+ orientation?: number | undefined;
822
+ } | null>>) | undefined;
823
+ handler?: ((args_0: string) => {
824
+ width?: number | undefined;
825
+ height?: number | undefined;
826
+ orientation?: number | undefined;
827
+ } | null) | undefined;
828
+ dump?: import("devframe/rpc").RpcDump<[string], {
829
+ width?: number | undefined;
830
+ height?: number | undefined;
831
+ orientation?: number | undefined;
832
+ } | null, import("devframe").DevframeNodeContext> | undefined;
833
+ snapshot?: boolean;
834
+ __cache?: WeakMap<object, import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[string], {
835
+ width?: number | undefined;
836
+ height?: number | undefined;
837
+ orientation?: number | undefined;
838
+ } | null>>> | undefined;
839
+ __promise?: import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[string], {
840
+ width?: number | undefined;
841
+ height?: number | undefined;
842
+ orientation?: number | undefined;
843
+ } | null>> | undefined;
844
+ }, {
845
+ name: "devframes:plugin:assets:read-text";
846
+ type?: "query" | undefined;
847
+ cacheable?: boolean;
848
+ args: readonly [import("valibot").StringSchema<undefined>, import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>];
849
+ returns: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
850
+ jsonSerializable?: boolean;
851
+ agent?: import("devframe").RpcFunctionAgentOptions;
852
+ setup?: ((context: import("devframe").DevframeNodeContext) => import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[string, number | undefined], string | null>>) | undefined;
853
+ handler?: ((args_0: string, args_1: number | undefined) => string | null) | undefined;
854
+ dump?: import("devframe/rpc").RpcDump<[string, number | undefined], string | null, import("devframe").DevframeNodeContext> | undefined;
855
+ snapshot?: boolean;
856
+ __cache?: WeakMap<object, import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[string, number | undefined], string | null>>> | undefined;
857
+ __promise?: import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[string, number | undefined], string | null>> | undefined;
858
+ }, {
859
+ name: "devframes:plugin:assets:capabilities";
860
+ type?: "query" | undefined;
861
+ cacheable?: boolean;
862
+ args: readonly [];
863
+ returns: import("valibot").ObjectSchema<{
864
+ readonly write: import("valibot").BooleanSchema<undefined>;
865
+ readonly uploadExtensions: import("valibot").UnionSchema<[import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, import("valibot").LiteralSchema<"*", undefined>], undefined>;
866
+ }, undefined>;
867
+ jsonSerializable?: boolean;
868
+ agent?: import("devframe").RpcFunctionAgentOptions;
869
+ setup?: ((context: import("devframe").DevframeNodeContext) => import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[], {
870
+ write: boolean;
871
+ uploadExtensions: string[] | "*";
872
+ }>>) | undefined;
873
+ handler?: (() => {
874
+ write: boolean;
875
+ uploadExtensions: string[] | "*";
876
+ }) | undefined;
877
+ dump?: import("devframe/rpc").RpcDump<[], {
878
+ write: boolean;
879
+ uploadExtensions: string[] | "*";
880
+ }, import("devframe").DevframeNodeContext> | undefined;
881
+ snapshot?: boolean;
882
+ __cache?: WeakMap<object, import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[], {
883
+ write: boolean;
884
+ uploadExtensions: string[] | "*";
885
+ }>>> | undefined;
886
+ __promise?: import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[], {
887
+ write: boolean;
888
+ uploadExtensions: string[] | "*";
889
+ }>> | undefined;
890
+ }, {
891
+ name: "devframes:plugin:assets:open-in-editor";
892
+ type?: "action" | undefined;
893
+ cacheable?: boolean;
894
+ args: readonly [import("valibot").StringSchema<undefined>];
895
+ returns: import("valibot").VoidSchema<undefined>;
896
+ jsonSerializable?: boolean;
897
+ agent?: import("devframe").RpcFunctionAgentOptions;
898
+ setup?: ((context: import("devframe").DevframeNodeContext) => import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[string], void>>) | undefined;
899
+ handler?: ((args_0: string) => void) | undefined;
900
+ dump?: import("devframe/rpc").RpcDump<[string], void, import("devframe").DevframeNodeContext> | undefined;
901
+ snapshot?: boolean;
902
+ __cache?: WeakMap<object, import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[string], void>>> | undefined;
903
+ __promise?: import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[string], void>> | undefined;
904
+ }, {
905
+ name: "devframes:plugin:assets:reveal-in-folder";
906
+ type?: "action" | undefined;
907
+ cacheable?: boolean;
908
+ args: readonly [import("valibot").StringSchema<undefined>];
909
+ returns: import("valibot").VoidSchema<undefined>;
910
+ jsonSerializable?: boolean;
911
+ agent?: import("devframe").RpcFunctionAgentOptions;
912
+ setup?: ((context: import("devframe").DevframeNodeContext) => import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[string], void>>) | undefined;
913
+ handler?: ((args_0: string) => void) | undefined;
914
+ dump?: import("devframe/rpc").RpcDump<[string], void, import("devframe").DevframeNodeContext> | undefined;
915
+ snapshot?: boolean;
916
+ __cache?: WeakMap<object, import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[string], void>>> | undefined;
917
+ __promise?: import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[string], void>> | undefined;
918
+ }, {
919
+ name: "devframes:plugin:assets:upload";
920
+ type?: "action" | undefined;
921
+ cacheable?: boolean;
922
+ args: readonly [import("valibot").ObjectSchema<{
923
+ readonly path: import("valibot").StringSchema<undefined>;
924
+ }, undefined>];
925
+ returns: import("valibot").ObjectSchema<{
926
+ readonly uploadId: import("valibot").StringSchema<undefined>;
927
+ }, undefined>;
928
+ jsonSerializable?: boolean;
929
+ agent?: import("devframe").RpcFunctionAgentOptions;
930
+ setup?: ((context: import("devframe").DevframeNodeContext) => import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[{
931
+ path: string;
932
+ }], {
933
+ uploadId: string;
934
+ }>>) | undefined;
935
+ handler?: ((args_0: {
936
+ path: string;
937
+ }) => {
938
+ uploadId: string;
939
+ }) | undefined;
940
+ dump?: import("devframe/rpc").RpcDump<[{
941
+ path: string;
942
+ }], {
943
+ uploadId: string;
944
+ }, import("devframe").DevframeNodeContext> | undefined;
945
+ snapshot?: boolean;
946
+ __cache?: WeakMap<object, import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[{
947
+ path: string;
948
+ }], {
949
+ uploadId: string;
950
+ }>>> | undefined;
951
+ __promise?: import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[{
952
+ path: string;
953
+ }], {
954
+ uploadId: string;
955
+ }>> | undefined;
956
+ }, {
957
+ name: "devframes:plugin:assets:rename";
958
+ type?: "action" | undefined;
959
+ cacheable?: boolean;
960
+ args: readonly [import("valibot").ObjectSchema<{
961
+ readonly path: import("valibot").StringSchema<undefined>;
962
+ readonly newName: import("valibot").StringSchema<undefined>;
963
+ }, undefined>];
964
+ returns: import("valibot").ObjectSchema<{
965
+ readonly path: import("valibot").StringSchema<undefined>;
966
+ readonly type: import("valibot").PicklistSchema<["image", "font", "video", "audio", "text", "other"], undefined>;
967
+ readonly publicPath: import("valibot").StringSchema<undefined>;
968
+ readonly size: import("valibot").NumberSchema<undefined>;
969
+ readonly mtime: import("valibot").NumberSchema<undefined>;
970
+ }, undefined>;
971
+ jsonSerializable?: boolean;
972
+ agent?: import("devframe").RpcFunctionAgentOptions;
973
+ setup?: ((context: import("devframe").DevframeNodeContext) => import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[{
974
+ path: string;
975
+ newName: string;
976
+ }], {
977
+ path: string;
978
+ type: "image" | "font" | "video" | "audio" | "text" | "other";
979
+ publicPath: string;
980
+ size: number;
981
+ mtime: number;
982
+ }>>) | undefined;
983
+ handler?: ((args_0: {
984
+ path: string;
985
+ newName: string;
986
+ }) => {
987
+ path: string;
988
+ type: "image" | "font" | "video" | "audio" | "text" | "other";
989
+ publicPath: string;
990
+ size: number;
991
+ mtime: number;
992
+ }) | undefined;
993
+ dump?: import("devframe/rpc").RpcDump<[{
994
+ path: string;
995
+ newName: string;
996
+ }], {
997
+ path: string;
998
+ type: "image" | "font" | "video" | "audio" | "text" | "other";
999
+ publicPath: string;
1000
+ size: number;
1001
+ mtime: number;
1002
+ }, import("devframe").DevframeNodeContext> | undefined;
1003
+ snapshot?: boolean;
1004
+ __cache?: WeakMap<object, import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[{
1005
+ path: string;
1006
+ newName: string;
1007
+ }], {
1008
+ path: string;
1009
+ type: "image" | "font" | "video" | "audio" | "text" | "other";
1010
+ publicPath: string;
1011
+ size: number;
1012
+ mtime: number;
1013
+ }>>> | undefined;
1014
+ __promise?: import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[{
1015
+ path: string;
1016
+ newName: string;
1017
+ }], {
1018
+ path: string;
1019
+ type: "image" | "font" | "video" | "audio" | "text" | "other";
1020
+ publicPath: string;
1021
+ size: number;
1022
+ mtime: number;
1023
+ }>> | undefined;
1024
+ }, {
1025
+ name: "devframes:plugin:assets:delete";
1026
+ type?: "action" | undefined;
1027
+ cacheable?: boolean;
1028
+ args: readonly [import("valibot").ObjectSchema<{
1029
+ readonly paths: import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>;
1030
+ }, undefined>];
1031
+ returns: import("valibot").ObjectSchema<{
1032
+ readonly deleted: import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>;
1033
+ }, undefined>;
1034
+ jsonSerializable?: boolean;
1035
+ agent?: import("devframe").RpcFunctionAgentOptions;
1036
+ setup?: ((context: import("devframe").DevframeNodeContext) => import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[{
1037
+ paths: string[];
1038
+ }], {
1039
+ deleted: string[];
1040
+ }>>) | undefined;
1041
+ handler?: ((args_0: {
1042
+ paths: string[];
1043
+ }) => {
1044
+ deleted: string[];
1045
+ }) | undefined;
1046
+ dump?: import("devframe/rpc").RpcDump<[{
1047
+ paths: string[];
1048
+ }], {
1049
+ deleted: string[];
1050
+ }, import("devframe").DevframeNodeContext> | undefined;
1051
+ snapshot?: boolean;
1052
+ __cache?: WeakMap<object, import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[{
1053
+ paths: string[];
1054
+ }], {
1055
+ deleted: string[];
1056
+ }>>> | undefined;
1057
+ __promise?: import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[{
1058
+ paths: string[];
1059
+ }], {
1060
+ deleted: string[];
1061
+ }>> | undefined;
1062
+ }, {
1063
+ name: "devframes:plugin:assets:mkdir";
1064
+ type?: "action" | undefined;
1065
+ cacheable?: boolean;
1066
+ args: readonly [import("valibot").ObjectSchema<{
1067
+ readonly path: import("valibot").StringSchema<undefined>;
1068
+ }, undefined>];
1069
+ returns: import("valibot").VoidSchema<undefined>;
1070
+ jsonSerializable?: boolean;
1071
+ agent?: import("devframe").RpcFunctionAgentOptions;
1072
+ setup?: ((context: import("devframe").DevframeNodeContext) => import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[{
1073
+ path: string;
1074
+ }], void>>) | undefined;
1075
+ handler?: ((args_0: {
1076
+ path: string;
1077
+ }) => void) | undefined;
1078
+ dump?: import("devframe/rpc").RpcDump<[{
1079
+ path: string;
1080
+ }], void, import("devframe").DevframeNodeContext> | undefined;
1081
+ snapshot?: boolean;
1082
+ __cache?: WeakMap<object, import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[{
1083
+ path: string;
1084
+ }], void>>> | undefined;
1085
+ __promise?: import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[{
1086
+ path: string;
1087
+ }], void>> | undefined;
1088
+ }];
1089
+ declare module 'devframe' {
1090
+ interface DevframeRpcServerFunctions extends RpcDefinitionsToFunctions<typeof serverFunctions> {}
1091
+ }
1092
+ //#endregion
1093
+ export { type AssetsCapabilities, type RenameArgs, UPLOAD_CHANNEL, alwaysFunctions, assetInfoSchema, capabilities, deleteAssets, list, mkdir, openInEditor, readFunctions, readImageMeta, readText, rename, revealInFolder, serverFunctions, upload, writeFunctions };