@frogbotai/piece-file-helper 0.24.0 → 0.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/files.d.ts +3 -3
- package/dist/index.d.ts +7 -7
- package/package.json +3 -3
package/dist/files.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { FrogBotRequest } from 'frogbot';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
export declare const fileId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
4
4
|
export declare const savedFile: z.ZodObject<{
|
|
@@ -7,7 +7,7 @@ export declare const savedFile: z.ZodObject<{
|
|
|
7
7
|
url: z.ZodOptional<z.ZodString>;
|
|
8
8
|
}, z.core.$strip>;
|
|
9
9
|
export declare function loadFile({ req, id }: {
|
|
10
|
-
req:
|
|
10
|
+
req: FrogBotRequest;
|
|
11
11
|
id: string | number;
|
|
12
12
|
}): Promise<{
|
|
13
13
|
data: Buffer;
|
|
@@ -15,7 +15,7 @@ export declare function loadFile({ req, id }: {
|
|
|
15
15
|
mimeType: string;
|
|
16
16
|
}>;
|
|
17
17
|
export declare function saveFile({ req, data, filename, mimeType, }: {
|
|
18
|
-
req:
|
|
18
|
+
req: FrogBotRequest;
|
|
19
19
|
data: Buffer;
|
|
20
20
|
filename: string;
|
|
21
21
|
mimeType?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ export declare const createFileHelper: import("frogbot").PieceFactory<{
|
|
|
29
29
|
};
|
|
30
30
|
client: undefined;
|
|
31
31
|
options: object;
|
|
32
|
-
req: import("frogbot").
|
|
32
|
+
req: import("frogbot").FrogBotRequest;
|
|
33
33
|
}): Promise<{
|
|
34
34
|
text: string;
|
|
35
35
|
base64?: undefined;
|
|
@@ -71,7 +71,7 @@ export declare const createFileHelper: import("frogbot").PieceFactory<{
|
|
|
71
71
|
};
|
|
72
72
|
client: undefined;
|
|
73
73
|
options: object;
|
|
74
|
-
req: import("frogbot").
|
|
74
|
+
req: import("frogbot").FrogBotRequest;
|
|
75
75
|
}): Promise<{
|
|
76
76
|
url?: string | undefined;
|
|
77
77
|
id: string | number;
|
|
@@ -121,7 +121,7 @@ export declare const createFileHelper: import("frogbot").PieceFactory<{
|
|
|
121
121
|
};
|
|
122
122
|
client: undefined;
|
|
123
123
|
options: object;
|
|
124
|
-
req: import("frogbot").
|
|
124
|
+
req: import("frogbot").FrogBotRequest;
|
|
125
125
|
}): Promise<{
|
|
126
126
|
url?: string | undefined;
|
|
127
127
|
id: string | number;
|
|
@@ -146,7 +146,7 @@ export declare const createFileHelper: import("frogbot").PieceFactory<{
|
|
|
146
146
|
};
|
|
147
147
|
client: undefined;
|
|
148
148
|
options: object;
|
|
149
|
-
req: import("frogbot").
|
|
149
|
+
req: import("frogbot").FrogBotRequest;
|
|
150
150
|
}): Promise<{
|
|
151
151
|
mimeType: string;
|
|
152
152
|
isMatch: boolean;
|
|
@@ -190,7 +190,7 @@ export declare const createFileHelper: import("frogbot").PieceFactory<{
|
|
|
190
190
|
};
|
|
191
191
|
client: undefined;
|
|
192
192
|
options: object;
|
|
193
|
-
req: import("frogbot").
|
|
193
|
+
req: import("frogbot").FrogBotRequest;
|
|
194
194
|
}): Promise<{
|
|
195
195
|
url?: string | undefined;
|
|
196
196
|
id: string | number;
|
|
@@ -236,7 +236,7 @@ export declare const createFileHelper: import("frogbot").PieceFactory<{
|
|
|
236
236
|
};
|
|
237
237
|
client: undefined;
|
|
238
238
|
options: object;
|
|
239
|
-
req: import("frogbot").
|
|
239
|
+
req: import("frogbot").FrogBotRequest;
|
|
240
240
|
}): Promise<{
|
|
241
241
|
file: import("zod").infer<typeof import("./files.js").savedFile>;
|
|
242
242
|
filePath: string;
|
|
@@ -257,7 +257,7 @@ export declare const createFileHelper: import("frogbot").PieceFactory<{
|
|
|
257
257
|
};
|
|
258
258
|
client: undefined;
|
|
259
259
|
options: object;
|
|
260
|
-
req: import("frogbot").
|
|
260
|
+
req: import("frogbot").FrogBotRequest;
|
|
261
261
|
}): Promise<{
|
|
262
262
|
fileName: string;
|
|
263
263
|
}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frogbotai/piece-file-helper",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.26.0",
|
|
4
4
|
"description": "file-helper tools for FrogBot.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Colby Gilbert",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
],
|
|
20
20
|
"sideEffects": false,
|
|
21
21
|
"peerDependencies": {
|
|
22
|
-
"frogbot": "0.
|
|
22
|
+
"frogbot": "0.26.0"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@zip.js/zip.js": "2.8.15",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/mime-types": "2.1.1",
|
|
31
31
|
"typescript": "5.6.2",
|
|
32
|
-
"frogbot": "0.
|
|
32
|
+
"frogbot": "0.26.0"
|
|
33
33
|
},
|
|
34
34
|
"publishConfig": {
|
|
35
35
|
"access": "public"
|