localflare-core 0.2.0-beta.0 → 0.2.0-beta.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.
- package/dist/index.d.ts +37 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -65,6 +65,42 @@ interface BindingInfo {
|
|
|
65
65
|
name: string;
|
|
66
66
|
details: Record<string, unknown>;
|
|
67
67
|
}
|
|
68
|
+
/**
|
|
69
|
+
* Manifest passed to the Localflare API worker via environment variable.
|
|
70
|
+
* Contains binding information discovered from user's wrangler.toml.
|
|
71
|
+
* Used by both CLI (to generate) and API (to consume).
|
|
72
|
+
*/
|
|
73
|
+
interface LocalflareManifest {
|
|
74
|
+
name: string;
|
|
75
|
+
d1: {
|
|
76
|
+
binding: string;
|
|
77
|
+
database_name: string;
|
|
78
|
+
}[];
|
|
79
|
+
kv: {
|
|
80
|
+
binding: string;
|
|
81
|
+
}[];
|
|
82
|
+
r2: {
|
|
83
|
+
binding: string;
|
|
84
|
+
bucket_name: string;
|
|
85
|
+
}[];
|
|
86
|
+
queues: {
|
|
87
|
+
producers: {
|
|
88
|
+
binding: string;
|
|
89
|
+
queue: string;
|
|
90
|
+
}[];
|
|
91
|
+
consumers: {
|
|
92
|
+
queue: string;
|
|
93
|
+
max_batch_size?: number;
|
|
94
|
+
max_batch_timeout?: number;
|
|
95
|
+
max_retries?: number;
|
|
96
|
+
dead_letter_queue?: string;
|
|
97
|
+
}[];
|
|
98
|
+
};
|
|
99
|
+
do: {
|
|
100
|
+
binding: string;
|
|
101
|
+
className: string;
|
|
102
|
+
}[];
|
|
103
|
+
}
|
|
68
104
|
|
|
69
105
|
declare const WRANGLER_CONFIG_FILES: string[];
|
|
70
106
|
/**
|
|
@@ -94,4 +130,4 @@ declare function discoverBindings(config: WranglerConfig): DiscoveredBindings;
|
|
|
94
130
|
*/
|
|
95
131
|
declare function getBindingSummary(bindings: DiscoveredBindings): string[];
|
|
96
132
|
|
|
97
|
-
export { type BindingInfo, type D1DatabaseConfig, type DiscoveredBindings, type DurableObjectBinding, type KVNamespaceConfig, type QueueConsumerConfig, type QueueProducerConfig, type R2BucketConfig, WRANGLER_CONFIG_FILES, type WranglerConfig, discoverBindings, findWranglerConfig, getBindingSummary, parseWranglerConfig };
|
|
133
|
+
export { type BindingInfo, type D1DatabaseConfig, type DiscoveredBindings, type DurableObjectBinding, type KVNamespaceConfig, type LocalflareManifest, type QueueConsumerConfig, type QueueProducerConfig, type R2BucketConfig, WRANGLER_CONFIG_FILES, type WranglerConfig, discoverBindings, findWranglerConfig, getBindingSummary, parseWranglerConfig };
|