@vite-hub/queue 0.0.4 → 0.3.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.
Files changed (63) hide show
  1. package/README.md +170 -31
  2. package/dist/client-Cj50hQYp.js +180 -0
  3. package/dist/cloudflare-client-DYsAjM8B.js +140 -0
  4. package/dist/{cloudflare-resource-name-R8zYQiZb.js → cloudflare-resource-name-BJHYRCMQ.js} +3 -2
  5. package/dist/config-BcTDeQIP.js +105 -0
  6. package/dist/durability.d.ts +13 -0
  7. package/dist/durability.js +47 -0
  8. package/dist/error-diagnostics-BRartC1z.js +181 -0
  9. package/dist/error-diagnostics-DSkCJC_L.js +266 -0
  10. package/dist/errors-DL3pcNO4.js +77 -0
  11. package/dist/handler-response-By0Fpspv.js +61 -0
  12. package/dist/index.d.ts +29 -83
  13. package/dist/index.js +24 -11
  14. package/dist/inspect-PeuckaC3.js +30 -0
  15. package/dist/internal/runtime/cloudflare-client.d.ts +3 -5
  16. package/dist/internal/runtime/cloudflare-client.js +1 -1
  17. package/dist/internal/runtime/cloudflare-vite.d.ts +30 -2
  18. package/dist/internal/runtime/cloudflare-vite.js +111 -1
  19. package/dist/internal/runtime/local-client.d.ts +17 -0
  20. package/dist/internal/runtime/local-client.js +71 -0
  21. package/dist/internal/runtime/postgres-client.d.ts +46 -0
  22. package/dist/internal/runtime/postgres-client.js +560 -0
  23. package/dist/internal/runtime/state.d.ts +23 -15
  24. package/dist/internal/runtime/state.js +2 -2
  25. package/dist/internal/runtime/vercel-client.d.ts +3 -5
  26. package/dist/internal/runtime/vercel-client.js +120 -63
  27. package/dist/internal/runtime/worker-client.d.ts +6 -0
  28. package/dist/internal/runtime/worker-client.js +11 -0
  29. package/dist/invariant-D8_xBqmZ.js +22 -0
  30. package/dist/local-CGckW5nr.js +540 -0
  31. package/dist/local-CVVRVWeR.d.ts +22 -0
  32. package/dist/object-D8pRdprI.js +15 -0
  33. package/dist/operation-definition-8gOe-ubD.d.ts +234 -0
  34. package/dist/operations-Crwjca91.js +124 -0
  35. package/dist/operations.d.ts +69 -0
  36. package/dist/operations.js +1344 -0
  37. package/dist/runtime/hosted.d.ts +5 -9
  38. package/dist/runtime/hosted.js +21 -23
  39. package/dist/state-mVA2X_wa.js +196 -0
  40. package/dist/types-BD-8U9zS.d.ts +420 -0
  41. package/dist/types-DS_rqu9l.d.ts +10 -0
  42. package/dist/vercel-region-D1CivgdA.js +26 -0
  43. package/dist/virtual.d.ts +4 -0
  44. package/dist/vite.d.ts +655 -40
  45. package/dist/vite.js +2071 -2
  46. package/package.json +66 -30
  47. package/dist/_app-D29AwUdD.d.ts +0 -11
  48. package/dist/app-BZpq2cwC.js +0 -10
  49. package/dist/client-DG9fweET.js +0 -93
  50. package/dist/cloudflare-client-w5vphoNn.js +0 -99
  51. package/dist/cloudflare-vite-BlQfDVZD.js +0 -97
  52. package/dist/cloudflare-vite-nFPor46-.d.ts +0 -24
  53. package/dist/config-CNgAeIND.js +0 -53
  54. package/dist/delivery-error-glgYWC9g.js +0 -45
  55. package/dist/errors-CjuG_qr-.js +0 -108
  56. package/dist/internal/runtime/vercel-vite.d.ts +0 -20
  57. package/dist/internal/runtime/vercel-vite.js +0 -49
  58. package/dist/nuxt.d.ts +0 -19
  59. package/dist/nuxt.js +0 -30
  60. package/dist/state-Cno9O7YS.js +0 -110
  61. package/dist/types-CwvoMATy.d.ts +0 -169
  62. package/dist/vercel-runtime-package-copy-CEToJtCu.js +0 -116
  63. package/dist/vite-DOuoen0w.js +0 -4414
@@ -0,0 +1,234 @@
1
+ //#region ../../node_modules/.pnpm/@standard-schema+spec@1.1.0/node_modules/@standard-schema/spec/dist/index.d.ts
2
+ /** The Standard Typed interface. This is a base type extended by other specs. */
3
+ interface StandardTypedV1<Input = unknown, Output = Input> {
4
+ /** The Standard properties. */
5
+ readonly "~standard": StandardTypedV1.Props<Input, Output>;
6
+ }
7
+ declare namespace StandardTypedV1 {
8
+ /** The Standard Typed properties interface. */
9
+ interface Props<Input = unknown, Output = Input> {
10
+ /** The version number of the standard. */
11
+ readonly version: 1;
12
+ /** The vendor name of the schema library. */
13
+ readonly vendor: string;
14
+ /** Inferred types associated with the schema. */
15
+ readonly types?: Types<Input, Output> | undefined;
16
+ }
17
+ /** The Standard Typed types interface. */
18
+ interface Types<Input = unknown, Output = Input> {
19
+ /** The input type of the schema. */
20
+ readonly input: Input;
21
+ /** The output type of the schema. */
22
+ readonly output: Output;
23
+ }
24
+ /** Infers the input type of a Standard Typed. */
25
+ type InferInput<Schema extends StandardTypedV1> = NonNullable<Schema["~standard"]["types"]>["input"];
26
+ /** Infers the output type of a Standard Typed. */
27
+ type InferOutput<Schema extends StandardTypedV1> = NonNullable<Schema["~standard"]["types"]>["output"];
28
+ }
29
+ /** The Standard Schema interface. */
30
+ interface StandardSchemaV1<Input = unknown, Output = Input> {
31
+ /** The Standard Schema properties. */
32
+ readonly "~standard": StandardSchemaV1.Props<Input, Output>;
33
+ }
34
+ declare namespace StandardSchemaV1 {
35
+ /** The Standard Schema properties interface. */
36
+ interface Props<Input = unknown, Output = Input> extends StandardTypedV1.Props<Input, Output> {
37
+ /** Validates unknown input values. */
38
+ readonly validate: (value: unknown, options?: StandardSchemaV1.Options | undefined) => Result<Output> | Promise<Result<Output>>;
39
+ }
40
+ /** The result interface of the validate function. */
41
+ type Result<Output> = SuccessResult<Output> | FailureResult;
42
+ /** The result interface if validation succeeds. */
43
+ interface SuccessResult<Output> {
44
+ /** The typed output value. */
45
+ readonly value: Output;
46
+ /** A falsy value for `issues` indicates success. */
47
+ readonly issues?: undefined;
48
+ }
49
+ interface Options {
50
+ /** Explicit support for additional vendor-specific parameters, if needed. */
51
+ readonly libraryOptions?: Record<string, unknown> | undefined;
52
+ }
53
+ /** The result interface if validation fails. */
54
+ interface FailureResult {
55
+ /** The issues of failed validation. */
56
+ readonly issues: ReadonlyArray<Issue>;
57
+ }
58
+ /** The issue interface of the failure output. */
59
+ interface Issue {
60
+ /** The error message of the issue. */
61
+ readonly message: string;
62
+ /** The path of the issue, if any. */
63
+ readonly path?: ReadonlyArray<PropertyKey | PathSegment> | undefined;
64
+ }
65
+ /** The path segment interface of the issue. */
66
+ interface PathSegment {
67
+ /** The key representing a path segment. */
68
+ readonly key: PropertyKey;
69
+ }
70
+ /** The Standard types interface. */
71
+ interface Types<Input = unknown, Output = Input> extends StandardTypedV1.Types<Input, Output> {}
72
+ /** Infers the input type of a Standard. */
73
+ type InferInput<Schema extends StandardTypedV1> = StandardTypedV1.InferInput<Schema>;
74
+ /** Infers the output type of a Standard. */
75
+ type InferOutput<Schema extends StandardTypedV1> = StandardTypedV1.InferOutput<Schema>;
76
+ }
77
+ //#endregion
78
+ //#region ../internal/src/operation-definition.d.ts
79
+ /** `read` never changes state. `write` changes state. `destructive` deletes or publishes. */
80
+ type OperationKind = "read" | "write" | "destructive";
81
+ /** The signed-in user of a call. */
82
+ interface OperationUser {
83
+ id: string;
84
+ name?: string;
85
+ email?: string;
86
+ image?: string;
87
+ [key: string]: unknown;
88
+ }
89
+ /** The Agent Actor when an agent calls through a capability or MCP on behalf of a user. */
90
+ interface OperationActor {
91
+ id: string;
92
+ kind?: string;
93
+ label?: string;
94
+ meta?: object;
95
+ }
96
+ /** The checked Console access of a call. `vite-hub` issues it. `ConsoleAccess` has this shape. */
97
+ interface OperationAccess {
98
+ readonly mode: string;
99
+ /**
100
+ * The sections that the call may use. `"all"` when no section filter applies. An entry is a section id (`"kv"`, every
101
+ * operation of the section), `"<section>:read"` (only the operations that read), or `"<section>:<scope>"` (only the
102
+ * calls of a scoped operation for that scope, such as `"blob:media"` for one Blob store). `"<section>:<scope>:read"`
103
+ * allows only the reads of that scope.
104
+ */
105
+ readonly sections: "all" | readonly string[];
106
+ readonly user?: OperationUser;
107
+ }
108
+ interface OperationContext {
109
+ /** The checked Console access of the call. */
110
+ access: OperationAccess;
111
+ /** The signed-in user, or null. */
112
+ user: OperationUser | null;
113
+ /** The Agent Actor when an agent calls on behalf of `user`. */
114
+ actor?: OperationActor;
115
+ surface: "console" | "cli" | "mcp" | "agent";
116
+ /** Set by the host from generated build identity, never from request input or runtime NODE_ENV. */
117
+ development?: boolean;
118
+ env?: Record<string, unknown>;
119
+ waitUntil?: (task: Promise<unknown>) => void;
120
+ request?: Request;
121
+ /**
122
+ * The request event of the HTTP request that carries the call, when there is one: the Request of the Console route,
123
+ * with its Standard Context. Operations hand it to app hooks that read the request's own session, such as `identify`
124
+ * of Comments.
125
+ */
126
+ event?: unknown;
127
+ /** Operations set a success status here, such as 202 for an accepted call. */
128
+ response?: {
129
+ status?: number;
130
+ };
131
+ /**
132
+ * An agent or an MCP client may pass `lease: "override"` to `content.save`, `content.remove`, and `content.restore`
133
+ * only when the developer allowed it. Defaults to false, so a model cannot take over a document that a person is editing.
134
+ */
135
+ overrideLeases?: boolean;
136
+ /**
137
+ * What an Agent may read of the Channel conversations, set by `operations({ conversations })`. `participant`: only the
138
+ * threads that the Actor takes part in. `all`: every thread. Unset: none.
139
+ */
140
+ conversations?: "all" | "participant";
141
+ }
142
+ interface OperationDefinition<Input, Output> {
143
+ /** `<section>.<verb>`, such as `content.publish`. Unique per app. */
144
+ name: string;
145
+ /** One sentence. Becomes the CLI help line and the MCP tool description. */
146
+ description: string;
147
+ /**
148
+ * Console section that grants access, such as `content`. `false`: any Console user. A function reads the section
149
+ * from the input, for operations that serve several sections. Section ids cannot contain `:`; it is reserved for
150
+ * scope and read-only grants. A function that returns an invalid id denies the call.
151
+ */
152
+ section: string | false | ((input: Input) => string | undefined);
153
+ /**
154
+ * The part of a string `section` that one call uses, such as the Blob store that the input names. The call then needs
155
+ * the section (every scope) or `"<section>:<scope>"` (only this scope). A scope that is empty, is `read`, or has a
156
+ * `:` needs the whole section.
157
+ */
158
+ scope?: (input: Input) => string | undefined;
159
+ /** `read` never changes state. `write` changes state. `destructive` deletes or publishes; the CLI asks for `--yes`, MCP marks `destructiveHint`, agents require approval by default. */
160
+ kind: OperationKind;
161
+ /** Standard Schema (valibot in this repo). Its Standard JSON Schema builds CLI flags and the MCP input schema. */
162
+ input: StandardSchemaV1<unknown, Input>;
163
+ output?: StandardSchemaV1<unknown, Output>;
164
+ cli?: {
165
+ /** Defaults: namespace = section, command = verb. */
166
+ namespace?: string;
167
+ /** A space groups commands: `jobs list` and `jobs show` run as `vitehub <namespace> jobs list` and `jobs show`. */
168
+ command?: string;
169
+ /** Input keys read from positional arguments, in order. */
170
+ positional?: string[];
171
+ /** Human output, written verbatim. Without it the CLI prints JSON. `--json` always prints JSON. */
172
+ format?: (output: Output) => string;
173
+ /** `vitehub <namespace>` runs this command when no command is named. */
174
+ default?: boolean;
175
+ };
176
+ /** Largest request body in bytes. It can raise the 64 KiB default but not lower it. */
177
+ maxRequestBytes?: number;
178
+ /**
179
+ * Returns true when this call only reads, such as a dry run of a `destructive` operation. The CLI then skips the
180
+ * confirmation, and agents run it without approval. Without it, every call of a `destructive` operation asks.
181
+ */
182
+ readOnlyWhen?: (input: Input) => boolean;
183
+ /**
184
+ * How MCP offers the operation as a tool. `false`: MCP does not offer it, such as an editor transport that only the
185
+ * Console uses. `title`: the short title that clients show, instead of the name in words. `format`: the text of a
186
+ * result for the Agent, such as a list of lines. The result stays the structured content. Without `format`, the text
187
+ * is the result as JSON.
188
+ */
189
+ mcp?: false | {
190
+ title?: string;
191
+ format?: (output: NoInfer<Output>) => string;
192
+ };
193
+ /** `false`: the operation never reads `context.user`, so the Console skips the session lookup for it. */
194
+ user?: false;
195
+ /**
196
+ * The operation runs code of the app, such as a workflow, a job, a task, or a schedule. The Console registers it only
197
+ * when `console.invoke` is on, which is the default in development and off in a production build.
198
+ */
199
+ invoke?: true;
200
+ run: (input: Input, context: OperationContext) => Output | Promise<Output>;
201
+ }
202
+ /** An operation of any input and output, as a registry holds it. */
203
+ interface AnyOperation extends Omit<OperationDefinition<unknown, unknown>, "cli" | "input" | "mcp" | "output" | "readOnlyWhen" | "run" | "scope" | "section"> {
204
+ readOnlyWhen?: (input: never) => boolean;
205
+ cli?: {
206
+ namespace?: string;
207
+ command?: string;
208
+ default?: boolean;
209
+ positional?: string[];
210
+ format?: (output: never) => string;
211
+ };
212
+ mcp?: false | {
213
+ title?: string;
214
+ format?: (output: never) => string;
215
+ };
216
+ input: StandardSchemaV1;
217
+ output?: StandardSchemaV1;
218
+ run: (input: never, context: OperationContext) => unknown;
219
+ scope?: (input: never) => string | undefined;
220
+ section: string | false | ((input: never) => string | undefined);
221
+ }
222
+ /** The contribution of one plugin: operations, or a module that exports them. */
223
+ interface OperationContributionEntry {
224
+ /** The absolute path of the module that generated code imports, such as `ownModule(import.meta.url, "operations")`. */
225
+ module: string;
226
+ /** Named export that holds an operation or an array of operations. Defaults to `default`. */
227
+ export?: string;
228
+ /** Loads the export in the tool process, for a module that the tool cannot resolve by name. */
229
+ load?: () => Promise<unknown>;
230
+ /** `false`: the app already has these operations at runtime. Only tools such as the CLI and `vitehub inspect` read the entry. */
231
+ runtime?: false;
232
+ }
233
+ //#endregion
234
+ export { OperationContributionEntry as n, AnyOperation as t };
@@ -0,0 +1,124 @@
1
+ import { t as queueErrorDiagnostics } from "./error-diagnostics-BRartC1z.js";
2
+ import { i as normalizePublicQueueIdentifier, n as isQueueError } from "./errors-DL3pcNO4.js";
3
+ import { i as getQueueRuntimeConfig, o as getQueueRuntimeJobStore, s as listQueueDefinitionNames } from "./state-mVA2X_wa.js";
4
+ import { n as dynamicQueue } from "./client-Cj50hQYp.js";
5
+ import { t as redactInspectionText } from "./inspect-PeuckaC3.js";
6
+ //#region src/runtime/operations.ts
7
+ /** The HTTP status that the CLI, the Console, and Agents report for each code of a failed operation. */
8
+ const statuses = {
9
+ QUEUE_DEFINITION_NAME_INVALID: 400,
10
+ QUEUE_DEFINITION_NOT_FOUND: 404,
11
+ QUEUE_DISABLED: 409,
12
+ QUEUE_JOB_DUPLICATE: 409,
13
+ QUEUE_JOBS_UNAVAILABLE: 409,
14
+ QUEUE_JOB_NOT_FOUND: 404,
15
+ QUEUE_JOB_RUNNING: 409,
16
+ QUEUE_PROVIDER_FAILED: 502,
17
+ QUEUE_PROVIDER_INVALID_RESPONSE: 502,
18
+ QUEUE_UNSUPPORTED_OPTION: 400
19
+ };
20
+ /** Gives a Queue catalog error the status and the redacted message that the CLI and the Console report. */
21
+ function failure(error) {
22
+ if (!isQueueError(error)) return error;
23
+ return Object.assign(error, {
24
+ status: statuses[error.code] ?? 500,
25
+ statusMessage: redactInspectionText(error.message)
26
+ });
27
+ }
28
+ async function listQueues() {
29
+ const config = getQueueRuntimeConfig();
30
+ if (config === false) throw failure(queueErrorDiagnostics.QUEUE_DISABLED());
31
+ const names = listQueueDefinitionNames();
32
+ if (config?.driver === "local" || config?.driver === "postgres") {
33
+ const status = config.driver === "postgres" ? await (await getQueueRuntimeJobStore())?.status() : await (await import("./internal/runtime/local-client.js")).getLocalQueueStatus(config);
34
+ if (status) {
35
+ const empty = {
36
+ dead: 0,
37
+ pending: 0,
38
+ running: 0
39
+ };
40
+ return {
41
+ provider: config.driver,
42
+ ...config.driver === "local" && config.rules && config.rules !== "local" ? { rules: config.rules } : {},
43
+ queues: names.map((name) => ({
44
+ name,
45
+ ...empty,
46
+ ...status.queues[name]
47
+ })),
48
+ storage: {
49
+ base: status.base,
50
+ deadLimit: status.deadLimit,
51
+ durability: status.durability
52
+ }
53
+ };
54
+ }
55
+ }
56
+ return {
57
+ ...config ? { provider: config.driver } : {},
58
+ queues: names.map((name) => ({ name }))
59
+ };
60
+ }
61
+ async function sendToQueue(input) {
62
+ const queue = normalizePublicQueueIdentifier(input.queue);
63
+ if (!queue) throw failure(queueErrorDiagnostics.QUEUE_DEFINITION_NAME_INVALID());
64
+ const options = {
65
+ ...input.delaySeconds === void 0 ? {} : { delaySeconds: input.delaySeconds },
66
+ ...input.idempotencyKey === void 0 ? {} : { idempotencyKey: input.idempotencyKey }
67
+ };
68
+ let result;
69
+ try {
70
+ result = await dynamicQueue.send(queue, input.payload, options);
71
+ } catch (error) {
72
+ throw failure(error);
73
+ }
74
+ const [error, sent] = result;
75
+ if (error) throw failure(error);
76
+ const config = getQueueRuntimeConfig();
77
+ return {
78
+ ...sent?.messageId ? { messageId: sent.messageId } : {},
79
+ ...config ? { provider: config.driver } : {},
80
+ queue,
81
+ status: "queued"
82
+ };
83
+ }
84
+ /**
85
+ * The stored jobs of the local or postgres provider. Cloudflare and Vercel do not let a producer read their queue, so
86
+ * their jobs do not list.
87
+ */
88
+ async function localJobs() {
89
+ const config = getQueueRuntimeConfig();
90
+ if (config === false) throw failure(queueErrorDiagnostics.QUEUE_DISABLED());
91
+ const store = config?.driver === "postgres" ? await getQueueRuntimeJobStore() : config ? (await import("./internal/runtime/local-client.js")).useLocalQueueEngine(config) : void 0;
92
+ if (!store) throw failure(queueErrorDiagnostics.QUEUE_JOBS_UNAVAILABLE({ driver: config?.driver ?? "configured" }));
93
+ return store;
94
+ }
95
+ function jobNotFound() {
96
+ return failure(queueErrorDiagnostics.QUEUE_JOB_NOT_FOUND());
97
+ }
98
+ async function listQueueJobs(input) {
99
+ const engine = await localJobs();
100
+ const jobs = (await engine.jobs(input)).filter((job) => (input.queue === void 0 || job.queue === input.queue) && (input.state === void 0 || job.state === input.state));
101
+ return {
102
+ base: engine.base,
103
+ jobs,
104
+ provider: engine.provider,
105
+ rules: engine.rules.rules
106
+ };
107
+ }
108
+ async function showQueueJob(id) {
109
+ const job = await (await localJobs()).job(id);
110
+ if (!job) throw jobNotFound();
111
+ return { job };
112
+ }
113
+ async function retryQueueJob(id) {
114
+ const result = await (await localJobs()).retry(id);
115
+ if (result === "missing") throw jobNotFound();
116
+ if (result === "running") throw failure(queueErrorDiagnostics.QUEUE_JOB_RUNNING());
117
+ if (result === "duplicate") throw failure(queueErrorDiagnostics.QUEUE_JOB_DUPLICATE());
118
+ return { job: result };
119
+ }
120
+ async function clearQueueJobs(input) {
121
+ return { cleared: await (await localJobs()).clear(input) };
122
+ }
123
+ //#endregion
124
+ export { clearQueueJobs, listQueueJobs, listQueues, retryQueueJob, sendToQueue, showQueueJob };
@@ -0,0 +1,69 @@
1
+ import { C as QueueDriver, d as LocalQueueJobDetail, f as LocalQueueRules, k as QueueJobStore, m as LocalQueueStatus, u as LocalQueueJob } from "./types-BD-8U9zS.js";
2
+ import "./local-CVVRVWeR.js";
3
+ import { t as AnyOperation } from "./operation-definition-8gOe-ubD.js";
4
+ //#region src/runtime/operations.d.ts
5
+ interface QueueListResult {
6
+ /** `undefined` when the runtime has not installed a Queue configuration. */
7
+ provider?: QueueDriver;
8
+ /** The local provider only: the provider whose delivery rules the jobs follow. In `vite dev`, the provider of the build. */
9
+ rules?: LocalQueueRules;
10
+ /**
11
+ * The local and postgres providers only: where the jobs are and what survives. `single-host` jobs survive a restart
12
+ * on this host, but not a move to another host or a new container. `shared` jobs are in Postgres, and every
13
+ * instance of the app runs them.
14
+ */
15
+ storage?: {
16
+ base: string;
17
+ deadLimit: number;
18
+ durability: LocalQueueStatus["durability"];
19
+ };
20
+ /** `dead`, `pending`, and `running` are job counts of the local and postgres providers. Hosted providers do not report a backlog. */
21
+ queues: Array<{
22
+ dead?: number;
23
+ name: string;
24
+ pending?: number;
25
+ running?: number;
26
+ }>;
27
+ }
28
+ interface QueueJobsListInput {
29
+ queue?: string;
30
+ state?: LocalQueueJob["state"];
31
+ }
32
+ interface QueueJobsListResult {
33
+ /** Absolute directory of the local provider, or the Postgres table and database, without the password. */
34
+ base: string;
35
+ /**
36
+ * Stored jobs, newest first. Completed jobs are deleted, so the list has pending, running, and dead jobs. The
37
+ * postgres provider lists at most 1,000 jobs.
38
+ */
39
+ jobs: LocalQueueJob[];
40
+ provider: QueueJobStore["provider"];
41
+ /** The provider whose delivery rules the jobs follow. */
42
+ rules: LocalQueueRules;
43
+ }
44
+ interface QueueJobsClearInput {
45
+ queue?: string;
46
+ state?: "dead" | "pending";
47
+ }
48
+ interface QueueSendOperationResult {
49
+ messageId?: string;
50
+ provider?: QueueDriver;
51
+ queue: string;
52
+ status: "queued";
53
+ }
54
+ interface QueueSendOperationInput {
55
+ delaySeconds?: number;
56
+ idempotencyKey?: string;
57
+ payload: unknown;
58
+ queue: string;
59
+ }
60
+ //#endregion
61
+ //#region src/operations.d.ts
62
+ /**
63
+ * The `queue.*` operations: list and send, and the stored jobs of the local and postgres providers. `vite dev` runs
64
+ * every job with the local provider. Cloudflare and Vercel do not let a producer read their queue, so the job
65
+ * operations fail there.
66
+ */
67
+ export declare const queueOperations: readonly AnyOperation[];
68
+ //#endregion
69
+ export type { LocalQueueJob, LocalQueueJobDetail, QueueJobsClearInput, QueueJobsListInput, QueueJobsListResult, QueueListResult, QueueSendOperationInput, QueueSendOperationResult };