@devframes/plugin-assets 0.7.16 → 0.8.1

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