@meetploy/types 1.4.0 → 1.5.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/fs.d.ts ADDED
@@ -0,0 +1,26 @@
1
+ export interface FileStoragePutOptions {
2
+ contentType?: string;
3
+ }
4
+ export interface FileStorageListOptions {
5
+ prefix?: string;
6
+ limit?: number;
7
+ }
8
+ export interface FileStorageObject {
9
+ body: string;
10
+ contentType: string;
11
+ size: number;
12
+ }
13
+ export interface FileStorageKey {
14
+ key: string;
15
+ size: number;
16
+ contentType: string;
17
+ }
18
+ export interface FileStorageListResult {
19
+ keys: FileStorageKey[];
20
+ }
21
+ export interface FileStorageBinding {
22
+ put: (key: string, value: string, options?: FileStoragePutOptions) => Promise<void>;
23
+ get: (key: string) => Promise<FileStorageObject | null>;
24
+ delete: (key: string) => Promise<void>;
25
+ list: (options?: FileStorageListOptions) => Promise<FileStorageListResult>;
26
+ }
package/dist/fs.js ADDED
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=fs.js.map
package/dist/fs.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fs.js","sourceRoot":"","sources":["../src/fs.ts"],"names":[],"mappings":""}
package/dist/index.d.ts CHANGED
@@ -4,4 +4,5 @@ export type { WorkflowBinding, WorkflowContext, WorkflowExecution, WorkflowExecu
4
4
  export type { ExecutionContext, FetchHandler, MessageHandler, Ploy, WorkflowHandlers, } from "./ploy.js";
5
5
  export type { CacheBinding } from "./cache.js";
6
6
  export type { StateBinding } from "./state.js";
7
+ export type { FileStorageBinding, FileStorageObject, FileStorageKey, FileStorageListResult, FileStoragePutOptions, FileStorageListOptions, } from "./fs.js";
7
8
  export type { PloyAuth, PloyUser } from "./auth.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meetploy/types",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",