@beignet/next 0.0.1 → 0.0.4
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 +155 -0
- package/README.md +407 -114
- package/dist/index.d.ts +289 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +255 -41
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
- package/src/index.ts +626 -51
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,27 @@
|
|
|
1
1
|
import type { ClientConfig } from "@beignet/core/client";
|
|
2
|
+
import { type DrainOutboxOptions, type OutboxRegistry } from "@beignet/core/outbox";
|
|
2
3
|
import type { AnyPorts, StoragePort } from "@beignet/core/ports";
|
|
3
|
-
import type {
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
import type { InferProviderPorts, ServiceProvider } from "@beignet/core/providers";
|
|
5
|
+
import { type ScheduleDef, type ScheduleInstrumentation, type StandardSchema } from "@beignet/core/schedules";
|
|
6
|
+
import type { ContractLike, CreateServerOptions, Handler, ResolveContract, RouteDef, ServerInstance, StandardSchemaV1 } from "@beignet/core/server";
|
|
7
|
+
import type { UploadRouter } from "@beignet/core/uploads";
|
|
8
|
+
import { toWebResponse } from "@beignet/web";
|
|
9
|
+
/**
|
|
10
|
+
* Server types re-exported for Next.js apps.
|
|
11
|
+
*/
|
|
12
|
+
export type { AnyUseCaseLike, CreateServerOptions, HandlerRouteDef, RouteDef, RouteGroup, RouteHook, ServerInstance, UseCaseRouteDef, } from "@beignet/core/server";
|
|
13
|
+
/**
|
|
14
|
+
* Server helpers re-exported for Next.js apps.
|
|
15
|
+
*/
|
|
16
|
+
export { contractsFromRoutes, createServer, defaultBinderInput, defineRoute, defineRouteGroup, defineRoutes, } from "@beignet/core/server";
|
|
17
|
+
/**
|
|
18
|
+
* Web Fetch adapter helpers re-exported for Next.js route helpers.
|
|
19
|
+
*/
|
|
20
|
+
export { createFetchHandler, toRequestLike, toWebResponse } from "@beignet/web";
|
|
21
|
+
type AnyProvider = ServiceProvider<unknown, StandardSchemaV1<any, any>, AnyPorts, any, any>;
|
|
22
|
+
/**
|
|
23
|
+
* Beignet client config with Next.js base URL defaults.
|
|
24
|
+
*/
|
|
8
25
|
export type NextClientConfig<TProvidedHeaders extends string = never> = Omit<ClientConfig<TProvidedHeaders>, "baseUrl"> & {
|
|
9
26
|
/**
|
|
10
27
|
* Explicit base URL for both browser and server calls.
|
|
@@ -18,24 +35,66 @@ export type NextClientConfig<TProvidedHeaders extends string = never> = Omit<Cli
|
|
|
18
35
|
*/
|
|
19
36
|
serverBaseUrl?: string | (() => string | undefined);
|
|
20
37
|
};
|
|
38
|
+
/**
|
|
39
|
+
* OpenAPI server object accepted by `createOpenAPIHandler(...)`.
|
|
40
|
+
*/
|
|
21
41
|
export type OpenAPIServer = {
|
|
42
|
+
/**
|
|
43
|
+
* Server URL.
|
|
44
|
+
*/
|
|
22
45
|
url: string;
|
|
46
|
+
/**
|
|
47
|
+
* Server description.
|
|
48
|
+
*/
|
|
23
49
|
description?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Server URL variables.
|
|
52
|
+
*/
|
|
24
53
|
variables?: Record<string, {
|
|
25
54
|
default: string;
|
|
26
55
|
enum?: string[];
|
|
27
56
|
description?: string;
|
|
28
57
|
}>;
|
|
29
58
|
};
|
|
59
|
+
/**
|
|
60
|
+
* Options for the Next.js OpenAPI route handler.
|
|
61
|
+
*/
|
|
30
62
|
export type CreateOpenAPIHandlerOptions = {
|
|
63
|
+
/**
|
|
64
|
+
* API title.
|
|
65
|
+
*/
|
|
31
66
|
title: string;
|
|
67
|
+
/**
|
|
68
|
+
* API version.
|
|
69
|
+
*/
|
|
32
70
|
version: string;
|
|
71
|
+
/**
|
|
72
|
+
* API description.
|
|
73
|
+
*/
|
|
33
74
|
description?: string;
|
|
75
|
+
/**
|
|
76
|
+
* Static servers or a request-aware server factory.
|
|
77
|
+
*/
|
|
34
78
|
servers?: OpenAPIServer[] | ((req: Request) => OpenAPIServer[]);
|
|
79
|
+
/**
|
|
80
|
+
* JSON media type used for generated content.
|
|
81
|
+
*/
|
|
35
82
|
jsonMediaType?: string;
|
|
83
|
+
/**
|
|
84
|
+
* OpenAPI security schemes.
|
|
85
|
+
*/
|
|
36
86
|
securitySchemes?: Record<string, unknown>;
|
|
87
|
+
/**
|
|
88
|
+
* Global security requirements.
|
|
89
|
+
*/
|
|
37
90
|
security?: Array<Record<string, string[]>>;
|
|
91
|
+
/**
|
|
92
|
+
* Custom schema introspector for non-Zod schema libraries.
|
|
93
|
+
*/
|
|
38
94
|
schemaIntrospector?: unknown;
|
|
95
|
+
/**
|
|
96
|
+
* Additional response headers.
|
|
97
|
+
*/
|
|
39
98
|
headers?: HeadersInit | ((req: Request) => HeadersInit | undefined);
|
|
40
99
|
/**
|
|
41
100
|
* Add the current request origin as the OpenAPI server when `servers` is omitted.
|
|
@@ -44,11 +103,26 @@ export type CreateOpenAPIHandlerOptions = {
|
|
|
44
103
|
*/
|
|
45
104
|
inferServersFromRequest?: boolean;
|
|
46
105
|
};
|
|
106
|
+
/**
|
|
107
|
+
* Options for the Next.js Swagger UI route handler.
|
|
108
|
+
*/
|
|
47
109
|
export type CreateSwaggerUIHandlerOptions = {
|
|
110
|
+
/**
|
|
111
|
+
* HTML page title.
|
|
112
|
+
*/
|
|
48
113
|
title?: string;
|
|
114
|
+
/**
|
|
115
|
+
* URL of the OpenAPI JSON route.
|
|
116
|
+
*/
|
|
49
117
|
specUrl?: string | ((req: Request) => string);
|
|
118
|
+
/**
|
|
119
|
+
* Additional response headers.
|
|
120
|
+
*/
|
|
50
121
|
headers?: HeadersInit | ((req: Request) => HeadersInit | undefined);
|
|
51
122
|
};
|
|
123
|
+
/**
|
|
124
|
+
* Options for serving public storage objects through a Next.js route.
|
|
125
|
+
*/
|
|
52
126
|
export type CreateStorageRouteOptions = {
|
|
53
127
|
/**
|
|
54
128
|
* Public path prefix that maps to storage keys.
|
|
@@ -61,18 +135,183 @@ export type CreateStorageRouteOptions = {
|
|
|
61
135
|
*/
|
|
62
136
|
headers?: HeadersInit | ((req: Request) => HeadersInit | undefined);
|
|
63
137
|
};
|
|
64
|
-
|
|
138
|
+
/**
|
|
139
|
+
* Options for creating a Next.js upload route.
|
|
140
|
+
*/
|
|
141
|
+
export type CreateUploadRouteOptions = {
|
|
142
|
+
/**
|
|
143
|
+
* Static upload name. Omit when using a dynamic `[uploadName]` segment.
|
|
144
|
+
*/
|
|
145
|
+
uploadName?: string;
|
|
146
|
+
/**
|
|
147
|
+
* Static upload action. Omit when using a dynamic `[action]` segment.
|
|
148
|
+
*/
|
|
149
|
+
action?: "prepare" | "complete" | "upload";
|
|
150
|
+
};
|
|
151
|
+
type OutboxDrainLogger = {
|
|
152
|
+
error(message: string, metadata?: Record<string, unknown>): void;
|
|
153
|
+
};
|
|
154
|
+
type OutboxDrainInstrumentation = {
|
|
155
|
+
record(event: {
|
|
156
|
+
type: "custom";
|
|
157
|
+
watcher: string;
|
|
158
|
+
name: string;
|
|
159
|
+
label: string;
|
|
160
|
+
summary: string;
|
|
161
|
+
requestId?: string;
|
|
162
|
+
traceId?: string;
|
|
163
|
+
details: unknown;
|
|
164
|
+
}): unknown;
|
|
165
|
+
};
|
|
166
|
+
type OutboxDrainPorts = {
|
|
167
|
+
outbox: DrainOutboxOptions["outbox"];
|
|
168
|
+
eventBus?: DrainOutboxOptions["eventBus"];
|
|
169
|
+
jobs?: DrainOutboxOptions["jobs"];
|
|
170
|
+
logger?: OutboxDrainLogger;
|
|
171
|
+
devtools?: OutboxDrainInstrumentation;
|
|
172
|
+
instrumentation?: OutboxDrainInstrumentation;
|
|
173
|
+
};
|
|
174
|
+
type OutboxDrainContext = {
|
|
175
|
+
requestId?: string;
|
|
176
|
+
traceId?: string;
|
|
177
|
+
ports: OutboxDrainPorts;
|
|
178
|
+
};
|
|
179
|
+
/**
|
|
180
|
+
* Options for creating a serverless-safe outbox drain route.
|
|
181
|
+
*/
|
|
182
|
+
export type CreateOutboxDrainRouteOptions<Ctx extends OutboxDrainContext> = {
|
|
183
|
+
/**
|
|
184
|
+
* Beignet Next server that owns app context and ports.
|
|
185
|
+
*/
|
|
186
|
+
server: Pick<NextServer<Ctx, Ctx["ports"]>, "createContextFromNext">;
|
|
187
|
+
/**
|
|
188
|
+
* Registry of events and jobs that may be delivered from the outbox.
|
|
189
|
+
*/
|
|
190
|
+
registry: OutboxRegistry;
|
|
191
|
+
/**
|
|
192
|
+
* Shared secret expected in the `Authorization: Bearer <secret>` header.
|
|
193
|
+
*
|
|
194
|
+
* Missing secrets fail closed with a 500 response so deployments do not
|
|
195
|
+
* accidentally expose an unauthenticated drain route.
|
|
196
|
+
*/
|
|
197
|
+
secret?: string;
|
|
198
|
+
/**
|
|
199
|
+
* Maximum messages to claim in one drain pass.
|
|
200
|
+
*/
|
|
201
|
+
batchSize?: number;
|
|
202
|
+
/**
|
|
203
|
+
* Claim lease duration in milliseconds.
|
|
204
|
+
*/
|
|
205
|
+
leaseMs?: number;
|
|
206
|
+
/**
|
|
207
|
+
* Retry delay override passed through to `drainOutbox(...)`.
|
|
208
|
+
*/
|
|
209
|
+
retryDelayMs?: DrainOutboxOptions["retryDelayMs"];
|
|
210
|
+
/**
|
|
211
|
+
* Additional response headers.
|
|
212
|
+
*/
|
|
213
|
+
headers?: HeadersInit | ((req: Request) => HeadersInit | undefined);
|
|
214
|
+
};
|
|
215
|
+
type ScheduleRouteLogger = {
|
|
216
|
+
error(message: string, metadata?: Record<string, unknown>): void;
|
|
217
|
+
};
|
|
218
|
+
type ScheduleRoutePorts = {
|
|
219
|
+
logger?: ScheduleRouteLogger;
|
|
220
|
+
devtools?: ScheduleInstrumentation;
|
|
221
|
+
instrumentation?: ScheduleInstrumentation;
|
|
222
|
+
};
|
|
223
|
+
type ScheduleRouteContext = {
|
|
224
|
+
requestId?: string;
|
|
225
|
+
traceId?: string;
|
|
226
|
+
ports: ScheduleRoutePorts;
|
|
227
|
+
};
|
|
228
|
+
/**
|
|
229
|
+
* Options for creating a serverless-safe schedule trigger route.
|
|
230
|
+
*/
|
|
231
|
+
export type CreateScheduleRouteOptions<Ctx extends ScheduleRouteContext> = {
|
|
232
|
+
/**
|
|
233
|
+
* Beignet Next server that owns app context and ports.
|
|
234
|
+
*/
|
|
235
|
+
server: Pick<NextServer<Ctx, Ctx["ports"]>, "createContextFromNext">;
|
|
236
|
+
/**
|
|
237
|
+
* Registered schedules, usually the `schedules` array from
|
|
238
|
+
* `server/schedules.ts`.
|
|
239
|
+
*/
|
|
240
|
+
schedules: readonly ScheduleDef<string, StandardSchema, Ctx>[];
|
|
241
|
+
/**
|
|
242
|
+
* Name of the schedule this route triggers. Unknown names throw when the
|
|
243
|
+
* route module loads so misconfigured routes fail at build or boot time.
|
|
244
|
+
*/
|
|
245
|
+
schedule: string;
|
|
246
|
+
/**
|
|
247
|
+
* Shared secret expected in the `Authorization: Bearer <secret>` header.
|
|
248
|
+
*
|
|
249
|
+
* Missing secrets fail closed with a 500 response so deployments do not
|
|
250
|
+
* accidentally expose an unauthenticated trigger route.
|
|
251
|
+
*/
|
|
252
|
+
secret?: string;
|
|
253
|
+
/**
|
|
254
|
+
* Run source label recorded on run metadata and devtools events.
|
|
255
|
+
*
|
|
256
|
+
* @default "next-cron-route"
|
|
257
|
+
*/
|
|
258
|
+
source?: string;
|
|
259
|
+
/**
|
|
260
|
+
* Additional response headers.
|
|
261
|
+
*/
|
|
262
|
+
headers?: HeadersInit | ((req: Request) => HeadersInit | undefined);
|
|
263
|
+
};
|
|
264
|
+
type UploadRouteContext = {
|
|
265
|
+
params?: Promise<Record<string, string | string[] | undefined>> | Record<string, string | string[] | undefined>;
|
|
266
|
+
};
|
|
267
|
+
/**
|
|
268
|
+
* Beignet server adapted for Next.js route handlers and server components.
|
|
269
|
+
*/
|
|
270
|
+
export interface NextServer<Ctx, Ports extends AnyPorts = AnyPorts, ServiceInput = void> {
|
|
271
|
+
/**
|
|
272
|
+
* Catch-all Next.js route handler.
|
|
273
|
+
*/
|
|
65
274
|
api: (req: Request) => Promise<Response>;
|
|
275
|
+
/**
|
|
276
|
+
* Register and build a single Next.js route handler imperatively.
|
|
277
|
+
*/
|
|
66
278
|
route: <CLike extends ContractLike>(contractLike: CLike) => {
|
|
67
279
|
handle: (fn: Handler<Ctx, ResolveContract<CLike>>) => (req: Request) => Promise<Response>;
|
|
68
280
|
};
|
|
281
|
+
/**
|
|
282
|
+
* Create app context from `next/headers` for Server Components.
|
|
283
|
+
*/
|
|
69
284
|
createContextFromNext: () => Promise<Ctx>;
|
|
285
|
+
/**
|
|
286
|
+
* Build a fully assembled request context from a framework-neutral request.
|
|
287
|
+
*/
|
|
288
|
+
createRequestContext: ServerInstance<Ctx, Ports, ServiceInput>["createRequestContext"];
|
|
289
|
+
/**
|
|
290
|
+
* Build a fully assembled service context for schedules, outbox drains,
|
|
291
|
+
* commands, and background work.
|
|
292
|
+
*
|
|
293
|
+
* Requires `context.service` to be declared in `createNextServer(...)`.
|
|
294
|
+
*/
|
|
295
|
+
createServiceContext: ServerInstance<Ctx, Ports, ServiceInput>["createServiceContext"];
|
|
296
|
+
/**
|
|
297
|
+
* Registered contract inputs.
|
|
298
|
+
*/
|
|
70
299
|
contracts: readonly ContractLike[];
|
|
300
|
+
/**
|
|
301
|
+
* Stop installed providers.
|
|
302
|
+
*/
|
|
71
303
|
stop: () => Promise<void>;
|
|
304
|
+
/**
|
|
305
|
+
* Final app ports after provider setup.
|
|
306
|
+
*/
|
|
72
307
|
ports: Ports;
|
|
73
308
|
}
|
|
74
|
-
|
|
75
|
-
|
|
309
|
+
/**
|
|
310
|
+
* Convert a Beignet response into a native `Response`.
|
|
311
|
+
*
|
|
312
|
+
* This is the Next-named alias for `toWebResponse(...)` from `@beignet/web`.
|
|
313
|
+
*/
|
|
314
|
+
export declare const toNextResponse: typeof toWebResponse;
|
|
76
315
|
/**
|
|
77
316
|
* Resolve the right Beignet client base URL for Next.js.
|
|
78
317
|
*
|
|
@@ -105,5 +344,46 @@ export declare function createStorageRoute(storage: StoragePort, options?: Creat
|
|
|
105
344
|
GET: (req: Request) => Promise<Response>;
|
|
106
345
|
HEAD: (req: Request) => Promise<Response>;
|
|
107
346
|
};
|
|
108
|
-
|
|
347
|
+
/**
|
|
348
|
+
* Create a Next.js POST handler for Beignet upload routes.
|
|
349
|
+
*
|
|
350
|
+
* Use this in a dynamic route such as
|
|
351
|
+
* `app/api/uploads/[uploadName]/[action]/route.ts`, where `action` is
|
|
352
|
+
* `prepare`, `complete`, or `upload`.
|
|
353
|
+
*/
|
|
354
|
+
export declare function createUploadRoute(router: UploadRouter, options?: CreateUploadRouteOptions): {
|
|
355
|
+
POST: (req: Request, ctx?: UploadRouteContext) => Promise<Response>;
|
|
356
|
+
};
|
|
357
|
+
/**
|
|
358
|
+
* Create Next.js route handlers that drain one durable outbox batch.
|
|
359
|
+
*
|
|
360
|
+
* This helper is intended for serverless cron routes. It performs bounded work
|
|
361
|
+
* and exits; do not start long-running outbox polling loops from provider
|
|
362
|
+
* lifecycle hooks in serverless apps.
|
|
363
|
+
*/
|
|
364
|
+
export declare function createOutboxDrainRoute<Ctx extends OutboxDrainContext>(options: CreateOutboxDrainRouteOptions<Ctx>): {
|
|
365
|
+
GET: (req: Request) => Promise<Response>;
|
|
366
|
+
POST: (req: Request) => Promise<Response>;
|
|
367
|
+
};
|
|
368
|
+
/**
|
|
369
|
+
* Create Next.js route handlers that trigger one registered schedule.
|
|
370
|
+
*
|
|
371
|
+
* This helper is intended for serverless cron routes. It authenticates the
|
|
372
|
+
* caller with a timing-safe bearer comparison, creates app context, runs the
|
|
373
|
+
* schedule inline, and records `schedule` events through the resolved
|
|
374
|
+
* provider instrumentation port (`ports.instrumentation`, then
|
|
375
|
+
* `ports.devtools`) when one is installed.
|
|
376
|
+
*/
|
|
377
|
+
export declare function createScheduleRoute<Ctx extends ScheduleRouteContext>(options: CreateScheduleRouteOptions<Ctx>): {
|
|
378
|
+
GET: (req: Request) => Promise<Response>;
|
|
379
|
+
POST: (req: Request) => Promise<Response>;
|
|
380
|
+
};
|
|
381
|
+
/**
|
|
382
|
+
* Create a Beignet server adapted for Next.js.
|
|
383
|
+
*
|
|
384
|
+
* The returned `api` handler is intended for a catch-all route. Focused routes
|
|
385
|
+
* such as OpenAPI, Swagger UI, devtools, and public storage can use their own
|
|
386
|
+
* route helpers.
|
|
387
|
+
*/
|
|
388
|
+
export declare function createNextServer<Ctx, Ports extends AnyPorts = AnyPorts, ServiceInput = void, Routes extends readonly RouteDef<Ctx>[] = readonly RouteDef<Ctx>[], Providers extends readonly AnyProvider[] = readonly AnyProvider[]>(options: CreateServerOptions<Ctx, Ports, ServiceInput, Routes, Providers>): Promise<NextServer<Ctx, Ports & InferProviderPorts<Providers>, ServiceInput>>;
|
|
109
389
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEzD,OAAO,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,KAAK,EACV,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEzD,OAAO,EACL,KAAK,kBAAkB,EAEvB,KAAK,cAAc,EACpB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,KAAK,EACV,kBAAkB,EAClB,eAAe,EAChB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAEL,KAAK,WAAW,EAChB,KAAK,uBAAuB,EAC5B,KAAK,cAAc,EACpB,MAAM,yBAAyB,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