inngest 2.7.1 → 3.0.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/CHANGELOG.md +52 -0
- package/api/api.js +4 -4
- package/api/schema.d.ts +54 -6
- package/api/schema.d.ts.map +1 -1
- package/api/schema.js +17 -7
- package/api/schema.js.map +1 -1
- package/cloudflare.d.ts +6 -3
- package/cloudflare.d.ts.map +1 -1
- package/cloudflare.js +19 -41
- package/cloudflare.js.map +1 -1
- package/components/EventSchemas.d.ts +1 -12
- package/components/EventSchemas.d.ts.map +1 -1
- package/components/EventSchemas.js.map +1 -1
- package/components/Inngest.d.ts +44 -57
- package/components/Inngest.d.ts.map +1 -1
- package/components/Inngest.js +91 -59
- package/components/Inngest.js.map +1 -1
- package/components/InngestCommHandler.d.ts +156 -198
- package/components/InngestCommHandler.d.ts.map +1 -1
- package/components/InngestCommHandler.js +311 -305
- package/components/InngestCommHandler.js.map +1 -1
- package/components/InngestFunction.d.ts +9 -82
- package/components/InngestFunction.d.ts.map +1 -1
- package/components/InngestFunction.js +21 -413
- package/components/InngestFunction.js.map +1 -1
- package/components/InngestMiddleware.d.ts +37 -26
- package/components/InngestMiddleware.d.ts.map +1 -1
- package/components/InngestMiddleware.js +1 -3
- package/components/InngestMiddleware.js.map +1 -1
- package/components/InngestStepTools.d.ts +69 -37
- package/components/InngestStepTools.d.ts.map +1 -1
- package/components/InngestStepTools.js +34 -95
- package/components/InngestStepTools.js.map +1 -1
- package/components/NonRetriableError.d.ts.map +1 -1
- package/components/NonRetriableError.js +1 -0
- package/components/NonRetriableError.js.map +1 -1
- package/components/RetryAfterError.d.ts +38 -0
- package/components/RetryAfterError.d.ts.map +1 -0
- package/components/RetryAfterError.js +42 -0
- package/components/RetryAfterError.js.map +1 -0
- package/components/execution/InngestExecution.d.ts +72 -0
- package/components/execution/InngestExecution.d.ts.map +1 -0
- package/components/execution/InngestExecution.js +23 -0
- package/components/execution/InngestExecution.js.map +1 -0
- package/components/execution/v0.d.ts +114 -0
- package/components/execution/v0.d.ts.map +1 -0
- package/components/execution/v0.js +394 -0
- package/components/execution/v0.js.map +1 -0
- package/components/execution/v1.d.ts +88 -0
- package/components/execution/v1.d.ts.map +1 -0
- package/components/execution/v1.js +673 -0
- package/components/execution/v1.js.map +1 -0
- package/deno/fresh.d.ts +3 -3
- package/deno/fresh.d.ts.map +1 -1
- package/deno/fresh.js +17 -38
- package/deno/fresh.js.map +1 -1
- package/digitalocean.d.ts +5 -5
- package/digitalocean.d.ts.map +1 -1
- package/digitalocean.js +14 -46
- package/digitalocean.js.map +1 -1
- package/edge.d.ts +5 -5
- package/edge.d.ts.map +1 -1
- package/edge.js +16 -38
- package/edge.js.map +1 -1
- package/express.d.ts +7 -3
- package/express.d.ts.map +1 -1
- package/express.js +38 -45
- package/express.js.map +1 -1
- package/fastify.d.ts +8 -3
- package/fastify.d.ts.map +1 -1
- package/fastify.js +37 -47
- package/fastify.js.map +1 -1
- package/h3.d.ts +4 -3
- package/h3.d.ts.map +1 -1
- package/h3.js +18 -45
- package/h3.js.map +1 -1
- package/helpers/ServerTiming.d.ts.map +1 -1
- package/helpers/ServerTiming.js +2 -1
- package/helpers/ServerTiming.js.map +1 -1
- package/helpers/consts.d.ts +23 -9
- package/helpers/consts.d.ts.map +1 -1
- package/helpers/consts.js +31 -13
- package/helpers/consts.js.map +1 -1
- package/helpers/devserver.d.ts +0 -34
- package/helpers/devserver.d.ts.map +1 -1
- package/helpers/devserver.js.map +1 -1
- package/helpers/env.d.ts +14 -6
- package/helpers/env.d.ts.map +1 -1
- package/helpers/env.js +4 -4
- package/helpers/env.js.map +1 -1
- package/helpers/errors.d.ts +37 -2
- package/helpers/errors.d.ts.map +1 -1
- package/helpers/errors.js +66 -15
- package/helpers/errors.js.map +1 -1
- package/helpers/functions.d.ts +52 -5
- package/helpers/functions.d.ts.map +1 -1
- package/helpers/functions.js +121 -22
- package/helpers/functions.js.map +1 -1
- package/helpers/promises.d.ts +45 -0
- package/helpers/promises.d.ts.map +1 -1
- package/helpers/promises.js +69 -1
- package/helpers/promises.js.map +1 -1
- package/helpers/strings.d.ts +6 -1
- package/helpers/strings.d.ts.map +1 -1
- package/helpers/strings.js +7 -2
- package/helpers/strings.js.map +1 -1
- package/helpers/types.d.ts +5 -17
- package/helpers/types.d.ts.map +1 -1
- package/index.d.ts +4 -2
- package/index.d.ts.map +1 -1
- package/index.js +5 -1
- package/index.js.map +1 -1
- package/lambda.d.ts +10 -8
- package/lambda.d.ts.map +1 -1
- package/lambda.js +48 -72
- package/lambda.js.map +1 -1
- package/next.d.ts +11 -5
- package/next.d.ts.map +1 -1
- package/next.js +84 -103
- package/next.js.map +1 -1
- package/nuxt.d.ts +3 -3
- package/nuxt.d.ts.map +1 -1
- package/nuxt.js +5 -6
- package/nuxt.js.map +1 -1
- package/package.json +5 -4
- package/redwood.d.ts +4 -3
- package/redwood.d.ts.map +1 -1
- package/redwood.js +22 -48
- package/redwood.js.map +1 -1
- package/remix.d.ts +7 -5
- package/remix.d.ts.map +1 -1
- package/remix.js +15 -36
- package/remix.js.map +1 -1
- package/types.d.ts +150 -218
- package/types.d.ts.map +1 -1
- package/types.js +38 -45
- package/types.js.map +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/helpers/scalar.d.ts +0 -8
- package/helpers/scalar.d.ts.map +0 -1
- package/helpers/scalar.js +0 -19
- package/helpers/scalar.js.map +0 -1
package/types.d.ts
CHANGED
|
@@ -1,17 +1,37 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { type EventSchemas } from "./components/EventSchemas";
|
|
3
|
-
import { type EventsFromOpts, type Inngest } from "./components/Inngest";
|
|
4
|
-
import { type InngestMiddleware, type MiddlewareOptions } from "./components/InngestMiddleware";
|
|
3
|
+
import { type AnyInngest, type EventsFromOpts, type Inngest, type builtInMiddleware } from "./components/Inngest";
|
|
4
|
+
import { type InngestMiddleware, type MiddlewareOptions, type MiddlewareStackSendEventOutputMutation } from "./components/InngestMiddleware";
|
|
5
5
|
import { type createStepTools } from "./components/InngestStepTools";
|
|
6
6
|
import { type internalEvents } from "./helpers/consts";
|
|
7
|
-
import { type IsStringLiteral, type
|
|
7
|
+
import { type IsStringLiteral, type ObjectAssign, type ObjectPaths, type StrictUnion } from "./helpers/types";
|
|
8
8
|
import { type Logger } from "./middleware/logger";
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* When passed an Inngest client, will return all event types for that client.
|
|
11
|
+
*
|
|
12
|
+
* It's recommended to use this instead of directly reusing your event types, as
|
|
13
|
+
* Inngest will add extra properties and internal events such as `ts` and
|
|
14
|
+
* `inngest/function.failed`.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```ts
|
|
18
|
+
* import { EventSchemas, Inngest, type GetEvents } from "inngest";
|
|
19
|
+
*
|
|
20
|
+
* export const inngest = new Inngest({
|
|
21
|
+
* name: "Example App",
|
|
22
|
+
* schemas: new EventSchemas().fromRecord<{
|
|
23
|
+
* "app/user.created": { data: { userId: string } };
|
|
24
|
+
* }>(),
|
|
25
|
+
* });
|
|
26
|
+
*
|
|
27
|
+
* type Events = GetEvents<typeof inngest>;
|
|
28
|
+
* type AppUserCreated = Events["app/user.created"];
|
|
29
|
+
*
|
|
30
|
+
* ```
|
|
11
31
|
*
|
|
12
32
|
* @public
|
|
13
33
|
*/
|
|
14
|
-
export type GetEvents<T extends
|
|
34
|
+
export type GetEvents<T extends AnyInngest> = T extends Inngest<infer U> ? EventsFromOpts<U> : never;
|
|
15
35
|
export declare const failureEventErrorSchema: z.ZodObject<{
|
|
16
36
|
name: z.ZodString;
|
|
17
37
|
message: z.ZodString;
|
|
@@ -19,17 +39,17 @@ export declare const failureEventErrorSchema: z.ZodObject<{
|
|
|
19
39
|
cause: z.ZodOptional<z.ZodString>;
|
|
20
40
|
status: z.ZodOptional<z.ZodNumber>;
|
|
21
41
|
}, "strip", z.ZodTypeAny, {
|
|
22
|
-
status?: number | undefined;
|
|
23
|
-
stack?: string | undefined;
|
|
24
|
-
cause?: string | undefined;
|
|
25
42
|
name: string;
|
|
26
43
|
message: string;
|
|
27
|
-
}, {
|
|
28
|
-
status?: number | undefined;
|
|
29
44
|
stack?: string | undefined;
|
|
30
45
|
cause?: string | undefined;
|
|
46
|
+
status?: number | undefined;
|
|
47
|
+
}, {
|
|
31
48
|
name: string;
|
|
32
49
|
message: string;
|
|
50
|
+
stack?: string | undefined;
|
|
51
|
+
cause?: string | undefined;
|
|
52
|
+
status?: number | undefined;
|
|
33
53
|
}>;
|
|
34
54
|
export type MiddlewareStack = [
|
|
35
55
|
InngestMiddleware<MiddlewareOptions>,
|
|
@@ -72,7 +92,15 @@ export declare enum StepOpCode {
|
|
|
72
92
|
WaitForEvent = "WaitForEvent",
|
|
73
93
|
RunStep = "Step",
|
|
74
94
|
StepPlanned = "StepPlanned",
|
|
75
|
-
Sleep = "Sleep"
|
|
95
|
+
Sleep = "Sleep",
|
|
96
|
+
/**
|
|
97
|
+
* Used to signify that the executor has requested that a step run, but we
|
|
98
|
+
* could not find that step.
|
|
99
|
+
*
|
|
100
|
+
* This is likely indicative that a step was renamed or removed from the
|
|
101
|
+
* function.
|
|
102
|
+
*/
|
|
103
|
+
StepNotFound = "StepNotFound"
|
|
76
104
|
}
|
|
77
105
|
/**
|
|
78
106
|
* The shape of a single operation in a step function. Used to communicate
|
|
@@ -84,9 +112,18 @@ export type Op = {
|
|
|
84
112
|
*/
|
|
85
113
|
op: StepOpCode;
|
|
86
114
|
/**
|
|
87
|
-
* The unhashed step name for this operation.
|
|
115
|
+
* The unhashed step name for this operation. This is a legacy field that is
|
|
116
|
+
* sometimes used for critical data, like the sleep duration for
|
|
117
|
+
* `step.sleep()`.
|
|
118
|
+
*
|
|
119
|
+
* @deprecated For display name, use `displayName` instead.
|
|
88
120
|
*/
|
|
89
|
-
name
|
|
121
|
+
name?: string;
|
|
122
|
+
/**
|
|
123
|
+
* An optional name for this step that can be used to display in the Inngest
|
|
124
|
+
* UI.
|
|
125
|
+
*/
|
|
126
|
+
displayName?: string;
|
|
90
127
|
/**
|
|
91
128
|
* Any additional data required for this operation to send to Inngest. This
|
|
92
129
|
* is not compared when confirming that the operation was completed; use `id`
|
|
@@ -113,13 +150,13 @@ export declare const incomingOpSchema: z.ZodObject<{
|
|
|
113
150
|
data: z.ZodOptional<z.ZodAny>;
|
|
114
151
|
error: z.ZodOptional<z.ZodAny>;
|
|
115
152
|
}, "strip", z.ZodTypeAny, {
|
|
153
|
+
id: string;
|
|
116
154
|
data?: any;
|
|
117
155
|
error?: any;
|
|
118
|
-
id: string;
|
|
119
156
|
}, {
|
|
157
|
+
id: string;
|
|
120
158
|
data?: any;
|
|
121
159
|
error?: any;
|
|
122
|
-
id: string;
|
|
123
160
|
}>;
|
|
124
161
|
export type IncomingOp = z.output<typeof incomingOpSchema>;
|
|
125
162
|
export type OutgoingOp = Pick<HashedOp, "id" | "op" | "name" | "opts" | "data" | "error">;
|
|
@@ -129,8 +166,8 @@ export type OutgoingOp = Pick<HashedOp, "id" | "op" | "name" | "opts" | "data" |
|
|
|
129
166
|
*/
|
|
130
167
|
export type HashedOp = Op & {
|
|
131
168
|
/**
|
|
132
|
-
* The hashed identifier for this operation, used to confirm that the
|
|
133
|
-
* was completed when it is received from Inngest.
|
|
169
|
+
* The hashed identifier for this operation, used to confirm that the
|
|
170
|
+
* operation was completed when it is received from Inngest.
|
|
134
171
|
*/
|
|
135
172
|
id: string;
|
|
136
173
|
};
|
|
@@ -155,7 +192,7 @@ export type SubmitOpFn = (op: Op) => void;
|
|
|
155
192
|
*/
|
|
156
193
|
export type TimeStr = `${`${number}w` | ""}${`${number}d` | ""}${`${number}h` | ""}${`${number}m` | ""}${`${number}s` | ""}`;
|
|
157
194
|
export type TimeStrBatch = `${`${number}s`}`;
|
|
158
|
-
export type BaseContext<TOpts extends ClientOptions, TTrigger extends keyof EventsFromOpts<TOpts> & string
|
|
195
|
+
export type BaseContext<TOpts extends ClientOptions, TTrigger extends keyof EventsFromOpts<TOpts> & string> = {
|
|
159
196
|
/**
|
|
160
197
|
* The event data present in the payload.
|
|
161
198
|
*/
|
|
@@ -169,41 +206,6 @@ export type BaseContext<TOpts extends ClientOptions, TTrigger extends keyof Even
|
|
|
169
206
|
*/
|
|
170
207
|
runId: string;
|
|
171
208
|
step: ReturnType<typeof createStepTools<TOpts, EventsFromOpts<TOpts>, TTrigger>>;
|
|
172
|
-
/**
|
|
173
|
-
* Any `fns` passed when creating your Inngest function will be
|
|
174
|
-
* available here and can be used as normal.
|
|
175
|
-
*
|
|
176
|
-
* Every call to one of these functions will become a new retryable
|
|
177
|
-
* step.
|
|
178
|
-
*
|
|
179
|
-
* @example
|
|
180
|
-
*
|
|
181
|
-
* Both examples behave the same; it's preference as to which you
|
|
182
|
-
* prefer.
|
|
183
|
-
*
|
|
184
|
-
* ```ts
|
|
185
|
-
* import { userDb } from "./db";
|
|
186
|
-
*
|
|
187
|
-
* // Specify `fns` and be able to use them in your Inngest function
|
|
188
|
-
* inngest.createFunction(
|
|
189
|
-
* { name: "Create user from PR", fns: { ...userDb } },
|
|
190
|
-
* { event: "github/pull_request" },
|
|
191
|
-
* async ({ tools: { run }, fns: { createUser } }) => {
|
|
192
|
-
* await createUser("Alice");
|
|
193
|
-
* }
|
|
194
|
-
* );
|
|
195
|
-
*
|
|
196
|
-
* // Or always use `run()` to run inline steps and use them directly
|
|
197
|
-
* inngest.createFunction(
|
|
198
|
-
* { name: "Create user from PR" },
|
|
199
|
-
* { event: "github/pull_request" },
|
|
200
|
-
* async ({ tools: { run } }) => {
|
|
201
|
-
* await run("createUser", () => userDb.createUser("Alice"));
|
|
202
|
-
* }
|
|
203
|
-
* );
|
|
204
|
-
* ```
|
|
205
|
-
*/
|
|
206
|
-
fns: TShimmedFns;
|
|
207
209
|
/**
|
|
208
210
|
* The current zero-indexed attempt number for this function execution. The
|
|
209
211
|
* first attempt will be `0`, the second `1`, and so on. The attempt number
|
|
@@ -211,30 +213,25 @@ export type BaseContext<TOpts extends ClientOptions, TTrigger extends keyof Even
|
|
|
211
213
|
*/
|
|
212
214
|
attempt: number;
|
|
213
215
|
};
|
|
214
|
-
/**
|
|
215
|
-
* Given a set of generic objects, extract any top-level functions and
|
|
216
|
-
* appropriately shim their types.
|
|
217
|
-
*/
|
|
218
|
-
export type ShimmedFns<Fns extends Record<string, any>> = {
|
|
219
|
-
[K in keyof Omit<Fns, KeysNotOfType<Fns, (...args: any[]) => any>>]: (...args: Parameters<Fns[K]>) => Promise<Awaited<ReturnType<Fns[K]>>>;
|
|
220
|
-
};
|
|
221
216
|
/**
|
|
222
217
|
* Builds a context object for an Inngest handler, optionally overriding some
|
|
223
218
|
* keys.
|
|
224
219
|
*/
|
|
225
|
-
export type Context<TOpts extends ClientOptions, TEvents extends Record<string, EventPayload>, TTrigger extends keyof TEvents & string,
|
|
220
|
+
export type Context<TOpts extends ClientOptions, TEvents extends Record<string, EventPayload>, TTrigger extends keyof TEvents & string, TOverrides extends Record<string, unknown> = Record<never, never>> = Omit<BaseContext<TOpts, TTrigger>, keyof TOverrides> & TOverrides;
|
|
221
|
+
export type AnyContext = Context<any, any, any>;
|
|
226
222
|
/**
|
|
227
223
|
* The shape of a Inngest function, taking in event, step, ctx, and step
|
|
228
224
|
* tooling.
|
|
229
225
|
*
|
|
230
226
|
* @public
|
|
231
227
|
*/
|
|
232
|
-
export type Handler<TOpts extends ClientOptions, TEvents extends EventsFromOpts<TOpts>, TTrigger extends keyof TEvents & string,
|
|
228
|
+
export type Handler<TOpts extends ClientOptions, TEvents extends EventsFromOpts<TOpts>, TTrigger extends keyof TEvents & string, TOverrides extends Record<string, unknown> = Record<never, never>> = (
|
|
233
229
|
/**
|
|
234
230
|
* The context argument provides access to all data and tooling available to
|
|
235
231
|
* the function.
|
|
236
232
|
*/
|
|
237
|
-
ctx: Context<TOpts, TEvents, TTrigger,
|
|
233
|
+
ctx: Context<TOpts, TEvents, TTrigger, TOverrides>) => unknown;
|
|
234
|
+
export type AnyHandler = Handler<any, any, any, any>;
|
|
238
235
|
/**
|
|
239
236
|
* The shape of a single event's payload. It should be extended to enforce
|
|
240
237
|
* adherence to given events and not used as a method of creating them (i.e. as
|
|
@@ -270,6 +267,42 @@ export interface EventPayload {
|
|
|
270
267
|
*/
|
|
271
268
|
ts?: number;
|
|
272
269
|
}
|
|
270
|
+
export declare const sendEventResponseSchema: z.ZodObject<{
|
|
271
|
+
/**
|
|
272
|
+
* Event IDs
|
|
273
|
+
*/
|
|
274
|
+
ids: z.ZodArray<z.ZodString, "many">;
|
|
275
|
+
/**
|
|
276
|
+
* HTTP Status Code. Will be undefined if no request was sent.
|
|
277
|
+
*/
|
|
278
|
+
status: z.ZodNumber;
|
|
279
|
+
/**
|
|
280
|
+
* Error message. Will be undefined if no error occurred.
|
|
281
|
+
*/
|
|
282
|
+
error: z.ZodOptional<z.ZodString>;
|
|
283
|
+
}, "strip", z.ZodTypeAny, {
|
|
284
|
+
status: number;
|
|
285
|
+
ids: string[];
|
|
286
|
+
error?: string | undefined;
|
|
287
|
+
}, {
|
|
288
|
+
status: number;
|
|
289
|
+
ids: string[];
|
|
290
|
+
error?: string | undefined;
|
|
291
|
+
}>;
|
|
292
|
+
/**
|
|
293
|
+
* The response from the Inngest Event API
|
|
294
|
+
*/
|
|
295
|
+
export type SendEventResponse = z.output<typeof sendEventResponseSchema>;
|
|
296
|
+
/**
|
|
297
|
+
* The response in code from sending an event to Inngest.
|
|
298
|
+
*/
|
|
299
|
+
export type SendEventBaseOutput = {
|
|
300
|
+
ids: SendEventResponse["ids"];
|
|
301
|
+
};
|
|
302
|
+
export type SendEventOutput<TOpts extends ClientOptions> = ObjectAssign<[
|
|
303
|
+
MiddlewareStackSendEventOutputMutation<{}, typeof builtInMiddleware>,
|
|
304
|
+
MiddlewareStackSendEventOutputMutation<{}, NonNullable<TOpts["middleware"]>>
|
|
305
|
+
], SendEventBaseOutput>;
|
|
273
306
|
/**
|
|
274
307
|
* An HTTP-like, standardised response format that allows Inngest to help
|
|
275
308
|
* orchestrate steps and retries.
|
|
@@ -320,10 +353,14 @@ context: TContext) => Promise<Response> | Response;
|
|
|
320
353
|
*/
|
|
321
354
|
export interface ClientOptions {
|
|
322
355
|
/**
|
|
323
|
-
* The
|
|
356
|
+
* The ID of this instance, most commonly a reference to the application it
|
|
324
357
|
* resides in.
|
|
358
|
+
*
|
|
359
|
+
* The ID of your client should remain the same for its lifetime; if you'd
|
|
360
|
+
* like to change the name of your client as it appears in the Inngest UI,
|
|
361
|
+
* change the `name` property instead.
|
|
325
362
|
*/
|
|
326
|
-
|
|
363
|
+
id: string;
|
|
327
364
|
/**
|
|
328
365
|
* Inngest event key, used to send events to Inngest Cloud. If not provided,
|
|
329
366
|
* will search for the `INNGEST_EVENT_KEY` environment variable. If neither
|
|
@@ -332,10 +369,12 @@ export interface ClientOptions {
|
|
|
332
369
|
*/
|
|
333
370
|
eventKey?: string;
|
|
334
371
|
/**
|
|
335
|
-
* The base
|
|
336
|
-
*
|
|
372
|
+
* The base URL to use when contacting Inngest.
|
|
373
|
+
*
|
|
374
|
+
* Defaults to https://inn.gs/ for sending events and https://api.inngest.com
|
|
375
|
+
* for all other communication with Inngest.
|
|
337
376
|
*/
|
|
338
|
-
|
|
377
|
+
baseUrl?: string;
|
|
339
378
|
/**
|
|
340
379
|
* If provided, will override the used `fetch` implementation. Useful for
|
|
341
380
|
* giving the library a particular implementation if accessing it is not done
|
|
@@ -400,7 +439,14 @@ export interface ClientOptions {
|
|
|
400
439
|
*
|
|
401
440
|
* @public
|
|
402
441
|
*/
|
|
403
|
-
export
|
|
442
|
+
export declare const logLevels: readonly ["fatal", "error", "warn", "info", "debug", "silent"];
|
|
443
|
+
/**
|
|
444
|
+
* A set of log levels that can be used to control the amount of logging output
|
|
445
|
+
* from various parts of the Inngest library.
|
|
446
|
+
*
|
|
447
|
+
* @public
|
|
448
|
+
*/
|
|
449
|
+
export type LogLevel = (typeof logLevels)[number];
|
|
404
450
|
/**
|
|
405
451
|
* A set of options for configuring the registration of Inngest functions.
|
|
406
452
|
*
|
|
@@ -428,7 +474,7 @@ export interface RegisterOptions {
|
|
|
428
474
|
* The URL used to register functions with Inngest.
|
|
429
475
|
* Defaults to https://api.inngest.com/fn/register
|
|
430
476
|
*/
|
|
431
|
-
|
|
477
|
+
baseUrl?: string;
|
|
432
478
|
/**
|
|
433
479
|
* If provided, will override the used `fetch` implementation. Useful for
|
|
434
480
|
* giving the library a particular implementation if accessing it is not done
|
|
@@ -438,20 +484,6 @@ export interface RegisterOptions {
|
|
|
438
484
|
* back to a Node implementation if no global fetch can be found.
|
|
439
485
|
*/
|
|
440
486
|
fetch?: typeof fetch;
|
|
441
|
-
/**
|
|
442
|
-
* Controls whether a landing page with introspection capabilities is shown
|
|
443
|
-
* when a `GET` request is performed to this handler.
|
|
444
|
-
*
|
|
445
|
-
* Defaults to using the boolean value of `process.env.INNGEST_LANDING_PAGE`
|
|
446
|
-
* (e.g. `"true"`), and `true` if that env var is not defined.
|
|
447
|
-
*
|
|
448
|
-
* This page is highly recommended when getting started in development,
|
|
449
|
-
* testing, or staging environments.
|
|
450
|
-
*
|
|
451
|
-
* @deprecated This page is no longer available. Please use the Inngest Dev
|
|
452
|
-
* Server instead via `npx inngest-cli@latest dev`.
|
|
453
|
-
*/
|
|
454
|
-
landingPage?: boolean;
|
|
455
487
|
/**
|
|
456
488
|
* The path to the Inngest serve endpoint. e.g.:
|
|
457
489
|
*
|
|
@@ -511,24 +543,17 @@ export interface RegisterOptions {
|
|
|
511
543
|
*/
|
|
512
544
|
streaming?: "allow" | "force" | false;
|
|
513
545
|
/**
|
|
514
|
-
* The
|
|
515
|
-
*
|
|
546
|
+
* The ID of this app. This is used to group functions together in the Inngest
|
|
547
|
+
* UI. The ID of the passed client is used by default.
|
|
516
548
|
*/
|
|
517
|
-
|
|
518
|
-
}
|
|
519
|
-
export interface InternalRegisterOptions extends RegisterOptions {
|
|
520
|
-
/**
|
|
521
|
-
* Can be used to override the framework name given to a particular serve
|
|
522
|
-
* handler.
|
|
523
|
-
*/
|
|
524
|
-
frameworkName?: string;
|
|
549
|
+
id?: string;
|
|
525
550
|
}
|
|
526
551
|
/**
|
|
527
552
|
* A user-friendly method of specifying a trigger for an Inngest function.
|
|
528
553
|
*
|
|
529
554
|
* @public
|
|
530
555
|
*/
|
|
531
|
-
export type TriggerOptions<T extends string> =
|
|
556
|
+
export type TriggerOptions<T extends string> = StrictUnion<{
|
|
532
557
|
event: T;
|
|
533
558
|
if?: string;
|
|
534
559
|
} | {
|
|
@@ -541,29 +566,18 @@ export type TriggerOptions<T extends string> = T | StrictUnion<{
|
|
|
541
566
|
*/
|
|
542
567
|
export interface FunctionOptions<Events extends Record<string, EventPayload>, Event extends keyof Events & string> {
|
|
543
568
|
/**
|
|
544
|
-
* An
|
|
545
|
-
*
|
|
546
|
-
*
|
|
569
|
+
* An unique ID used to identify the function. This is used internally for
|
|
570
|
+
* versioning and referring to your function, so should not change between
|
|
571
|
+
* deployments.
|
|
547
572
|
*
|
|
548
|
-
*
|
|
549
|
-
*
|
|
550
|
-
*
|
|
551
|
-
* If you are not specifying an ID and get a warning about duplicate
|
|
552
|
-
* functions, make sure to explicitly set an ID for the duplicate or change
|
|
553
|
-
* the name.
|
|
573
|
+
* If you'd like to set a prettier name for your function, use the `name`
|
|
574
|
+
* option.
|
|
554
575
|
*/
|
|
555
|
-
id
|
|
576
|
+
id: string;
|
|
556
577
|
/**
|
|
557
578
|
* A name for the function as it will appear in the Inngest Cloud UI.
|
|
558
|
-
*
|
|
559
|
-
* This is used to create a slugified ID for the function too, e.g.
|
|
560
|
-
* `"My FN :)"` would create a slugified ID of `"my-fn"`.
|
|
561
|
-
*
|
|
562
|
-
* If you are not specifying an ID and get a warning about duplicate
|
|
563
|
-
* functions, make sure to explicitly set an ID for the duplicate or change
|
|
564
|
-
* the name.
|
|
565
579
|
*/
|
|
566
|
-
name
|
|
580
|
+
name?: string;
|
|
567
581
|
/**
|
|
568
582
|
* Concurrency specifies a limit on the total number of concurrent steps that
|
|
569
583
|
* can occur across all runs of the function. A value of 0 (or undefined) means
|
|
@@ -594,7 +608,6 @@ export interface FunctionOptions<Events extends Record<string, EventPayload>, Ev
|
|
|
594
608
|
*/
|
|
595
609
|
timeout: TimeStrBatch;
|
|
596
610
|
};
|
|
597
|
-
fns?: Record<string, unknown>;
|
|
598
611
|
/**
|
|
599
612
|
* Allow the specification of an idempotency key using event data. If
|
|
600
613
|
* specified, this overrides the `rateLimit` object.
|
|
@@ -628,7 +641,10 @@ export interface FunctionOptions<Events extends Record<string, EventPayload>, Ev
|
|
|
628
641
|
retries?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20;
|
|
629
642
|
onFailure?: (...args: unknown[]) => unknown;
|
|
630
643
|
/**
|
|
631
|
-
*
|
|
644
|
+
* Define a set of middleware that can be registered to hook into various
|
|
645
|
+
* lifecycles of the SDK and affect input and output of Inngest functionality.
|
|
646
|
+
*
|
|
647
|
+
* See {@link https://innge.st/middleware}
|
|
632
648
|
*/
|
|
633
649
|
middleware?: MiddlewareStack;
|
|
634
650
|
}
|
|
@@ -695,25 +711,6 @@ export type Cancellation<Events extends Record<string, EventPayload>, Triggering
|
|
|
695
711
|
timeout?: number | string | Date;
|
|
696
712
|
};
|
|
697
713
|
}[keyof Events & string];
|
|
698
|
-
/**
|
|
699
|
-
* Expected responses to be used within an `InngestCommHandler` in order to
|
|
700
|
-
* appropriately respond to Inngest.
|
|
701
|
-
*
|
|
702
|
-
* @internal
|
|
703
|
-
*/
|
|
704
|
-
export type StepRunResponse = {
|
|
705
|
-
status: 500;
|
|
706
|
-
error?: unknown;
|
|
707
|
-
} | {
|
|
708
|
-
status: 200;
|
|
709
|
-
body?: unknown;
|
|
710
|
-
} | {
|
|
711
|
-
status: 206;
|
|
712
|
-
body: OutgoingOp[];
|
|
713
|
-
} | {
|
|
714
|
-
status: 400;
|
|
715
|
-
error: string;
|
|
716
|
-
};
|
|
717
714
|
/**
|
|
718
715
|
* The response to send to Inngest when pushing function config either directly
|
|
719
716
|
* or when pinged by Inngest Cloud.
|
|
@@ -797,7 +794,7 @@ export type FunctionTrigger<T = string> = {
|
|
|
797
794
|
* @internal
|
|
798
795
|
*/
|
|
799
796
|
export interface FunctionConfig {
|
|
800
|
-
name
|
|
797
|
+
name?: string;
|
|
801
798
|
id: string;
|
|
802
799
|
triggers: FunctionTrigger[];
|
|
803
800
|
steps: Record<string, {
|
|
@@ -857,19 +854,28 @@ export type EventNameFromTrigger<Events extends Record<string, EventPayload>, T
|
|
|
857
854
|
export type SupportedFrameworkName = "cloudflare-pages" | "digitalocean" | "edge" | "express" | "aws-lambda" | "nextjs" | "nuxt" | "h3" | "redwoodjs" | "remix" | "deno/fresh" | "fastify";
|
|
858
855
|
/**
|
|
859
856
|
* A set of options that can be passed to any step to configure it.
|
|
857
|
+
*
|
|
858
|
+
* @public
|
|
860
859
|
*/
|
|
861
|
-
export interface
|
|
860
|
+
export interface StepOptions {
|
|
862
861
|
/**
|
|
863
|
-
*
|
|
864
|
-
*
|
|
865
|
-
*
|
|
866
|
-
* This is useful if you want to ensure that a step is always the same ID even
|
|
867
|
-
* if the code changes.
|
|
868
|
-
*
|
|
869
|
-
* We recommend not using this unless you have a specific reason to do so.
|
|
862
|
+
* The ID to use to memoize the result of this step, ensuring it is run only
|
|
863
|
+
* once. Changing this ID in an existing function will cause the step to be
|
|
864
|
+
* run again for in-progress runs; it is recommended to use a stable ID.
|
|
870
865
|
*/
|
|
871
|
-
id
|
|
866
|
+
id: string;
|
|
867
|
+
/**
|
|
868
|
+
* The display name to use for this step in the Inngest UI. This can be
|
|
869
|
+
* changed at any time without affecting the step's behaviour.
|
|
870
|
+
*/
|
|
871
|
+
name?: string;
|
|
872
872
|
}
|
|
873
|
+
/**
|
|
874
|
+
* Either a step ID or a set of step options.
|
|
875
|
+
*
|
|
876
|
+
* @public
|
|
877
|
+
*/
|
|
878
|
+
export type StepOptionsOrId = StepOptions["id"] | StepOptions;
|
|
873
879
|
/**
|
|
874
880
|
* Simplified version of Rust style `Result`
|
|
875
881
|
*
|
|
@@ -885,78 +891,4 @@ export type Result<T, E = undefined> = {
|
|
|
885
891
|
};
|
|
886
892
|
export declare const ok: <T>(data: T) => Result<T, never>;
|
|
887
893
|
export declare const err: <E>(error?: E | undefined) => Result<never, E>;
|
|
888
|
-
/**
|
|
889
|
-
* Format of data send from the executor to the SDK
|
|
890
|
-
*/
|
|
891
|
-
export declare const fnDataSchema: z.ZodObject<{
|
|
892
|
-
event: z.ZodObject<{}, "passthrough", z.ZodTypeAny, {}, {}>;
|
|
893
|
-
events: z.ZodDefault<z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, {}, {}>, "many">>;
|
|
894
|
-
/**
|
|
895
|
-
* When handling per-step errors, steps will need to be an object with
|
|
896
|
-
* either a `data` or an `error` key.
|
|
897
|
-
*
|
|
898
|
-
* For now, we support the current method of steps just being a map of
|
|
899
|
-
* step ID to step data.
|
|
900
|
-
*
|
|
901
|
-
* TODO When the executor does support per-step errors, we can uncomment
|
|
902
|
-
* the expected schema below.
|
|
903
|
-
*/
|
|
904
|
-
steps: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodAny, any, any>>>>;
|
|
905
|
-
ctx: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
906
|
-
run_id: z.ZodString;
|
|
907
|
-
attempt: z.ZodDefault<z.ZodNumber>;
|
|
908
|
-
stack: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
909
|
-
stack: z.ZodEffects<z.ZodNullable<z.ZodArray<z.ZodString, "many">>, string[], string[] | null>;
|
|
910
|
-
current: z.ZodNumber;
|
|
911
|
-
}, "passthrough", z.ZodTypeAny, {
|
|
912
|
-
stack: string[];
|
|
913
|
-
current: number;
|
|
914
|
-
}, {
|
|
915
|
-
stack: string[] | null;
|
|
916
|
-
current: number;
|
|
917
|
-
}>>>;
|
|
918
|
-
}, "strip", z.ZodTypeAny, {
|
|
919
|
-
stack?: {
|
|
920
|
-
stack: string[];
|
|
921
|
-
current: number;
|
|
922
|
-
} | null | undefined;
|
|
923
|
-
run_id: string;
|
|
924
|
-
attempt: number;
|
|
925
|
-
}, {
|
|
926
|
-
stack?: {
|
|
927
|
-
stack: string[] | null;
|
|
928
|
-
current: number;
|
|
929
|
-
} | null | undefined;
|
|
930
|
-
attempt?: number | undefined;
|
|
931
|
-
run_id: string;
|
|
932
|
-
}>>>;
|
|
933
|
-
use_api: z.ZodDefault<z.ZodBoolean>;
|
|
934
|
-
}, "strip", z.ZodTypeAny, {
|
|
935
|
-
steps?: Record<string, any> | null | undefined;
|
|
936
|
-
ctx?: {
|
|
937
|
-
stack?: {
|
|
938
|
-
stack: string[];
|
|
939
|
-
current: number;
|
|
940
|
-
} | null | undefined;
|
|
941
|
-
run_id: string;
|
|
942
|
-
attempt: number;
|
|
943
|
-
} | null | undefined;
|
|
944
|
-
event: {};
|
|
945
|
-
events: {}[];
|
|
946
|
-
use_api: boolean;
|
|
947
|
-
}, {
|
|
948
|
-
events?: {}[] | undefined;
|
|
949
|
-
steps?: Record<string, any> | null | undefined;
|
|
950
|
-
ctx?: {
|
|
951
|
-
stack?: {
|
|
952
|
-
stack: string[] | null;
|
|
953
|
-
current: number;
|
|
954
|
-
} | null | undefined;
|
|
955
|
-
attempt?: number | undefined;
|
|
956
|
-
run_id: string;
|
|
957
|
-
} | null | undefined;
|
|
958
|
-
use_api?: boolean | undefined;
|
|
959
|
-
event: {};
|
|
960
|
-
}>;
|
|
961
|
-
export type FnData = z.infer<typeof fnDataSchema>;
|
|
962
894
|
//# sourceMappingURL=types.d.ts.map
|
package/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CA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