@gigadrive/network-config 4.6.0 → 4.6.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.mts +289 -10
- package/dist/index.d.ts +289 -10
- package/dist/index.js +178 -38
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +172 -36
- package/dist/index.mjs.map +1 -1
- package/dist/nextjs-adapter.js +30 -26
- package/dist/nextjs-adapter.js.map +1 -1
- package/dist/nextjs-adapter.mjs +30 -26
- package/dist/nextjs-adapter.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -74,10 +74,23 @@ interface NormalizedImagePolicy {
|
|
|
74
74
|
type JsonValue = null | boolean | number | string | JsonValue[] | {
|
|
75
75
|
[key: string]: JsonValue;
|
|
76
76
|
};
|
|
77
|
-
|
|
77
|
+
/**
|
|
78
|
+
* Portable Next.js prerender metadata.
|
|
79
|
+
*
|
|
80
|
+
* A fallback file is a mutable incremental-cache build seed, not a permanently
|
|
81
|
+
* authoritative static asset. Consumers must evaluate bypass, preview,
|
|
82
|
+
* revalidation, and PPR metadata before using it, and may only short-circuit
|
|
83
|
+
* ordinary GET and HEAD requests.
|
|
84
|
+
*/
|
|
85
|
+
declare const GigadriveNextPrerenderOutputSchema: Schema.Union<[Schema.mutable<Schema.Struct<{
|
|
86
|
+
routeType: Schema.Literal<["route", "fallback", "shell", "page"]>;
|
|
87
|
+
response: Schema.Literal<["empty", "initial", "complete"]>;
|
|
88
|
+
compute: Schema.Literal<["blocking", "resuming", "static"]>;
|
|
89
|
+
htmlSize: Schema.optional<typeof Schema.Number>;
|
|
78
90
|
id: typeof Schema.String;
|
|
79
91
|
type: Schema.Literal<["PRERENDER"]>;
|
|
80
92
|
pathname: Schema.filter<typeof Schema.String>;
|
|
93
|
+
route: Schema.optional<Schema.filter<typeof Schema.String>>;
|
|
81
94
|
parentOutputId: typeof Schema.String;
|
|
82
95
|
groupId: typeof Schema.Number;
|
|
83
96
|
pprChain: Schema.optional<Schema.mutable<Schema.Struct<{
|
|
@@ -100,7 +113,38 @@ declare const GigadriveNextPrerenderOutputSchema: Schema.mutable<Schema.Struct<{
|
|
|
100
113
|
partialFallback: Schema.optional<typeof Schema.Boolean>;
|
|
101
114
|
bypassToken: Schema.optional<typeof Schema.String>;
|
|
102
115
|
}>>;
|
|
103
|
-
}
|
|
116
|
+
}>>, Schema.mutable<Schema.Struct<{
|
|
117
|
+
routeType: Schema.optional<typeof Schema.Never>;
|
|
118
|
+
response: Schema.optional<typeof Schema.Never>;
|
|
119
|
+
compute: Schema.optional<typeof Schema.Never>;
|
|
120
|
+
htmlSize: Schema.optional<typeof Schema.Never>;
|
|
121
|
+
id: typeof Schema.String;
|
|
122
|
+
type: Schema.Literal<["PRERENDER"]>;
|
|
123
|
+
pathname: Schema.filter<typeof Schema.String>;
|
|
124
|
+
route: Schema.optional<Schema.filter<typeof Schema.String>>;
|
|
125
|
+
parentOutputId: typeof Schema.String;
|
|
126
|
+
groupId: typeof Schema.Number;
|
|
127
|
+
pprChain: Schema.optional<Schema.mutable<Schema.Struct<{
|
|
128
|
+
headers: Schema.filter<Schema.mutable<Schema.Record$<typeof Schema.String, Schema.filter<typeof Schema.String>>>>;
|
|
129
|
+
}>>>;
|
|
130
|
+
parentFallbackMode: Schema.optional<Schema.Schema<JsonValue, JsonValue, never>>;
|
|
131
|
+
fallback: Schema.optional<Schema.mutable<Schema.Struct<{
|
|
132
|
+
filePath: Schema.optional<Schema.filter<typeof Schema.String>>;
|
|
133
|
+
initialStatus: Schema.optional<Schema.filter<typeof Schema.Int>>;
|
|
134
|
+
initialHeaders: Schema.optional<Schema.filter<Schema.mutable<Schema.Record$<typeof Schema.String, Schema.Union<[Schema.filter<typeof Schema.String>, Schema.mutable<Schema.Array$<Schema.filter<typeof Schema.String>>>]>>>>>;
|
|
135
|
+
initialExpiration: Schema.optional<typeof Schema.Number>;
|
|
136
|
+
initialRevalidate: Schema.optional<Schema.Union<[typeof Schema.Number, Schema.Literal<[false]>]>>;
|
|
137
|
+
postponedState: Schema.optional<typeof Schema.String>;
|
|
138
|
+
}>>>;
|
|
139
|
+
config: Schema.mutable<Schema.Struct<{
|
|
140
|
+
allowQuery: Schema.optional<Schema.mutable<Schema.Array$<typeof Schema.String>>>;
|
|
141
|
+
allowHeader: Schema.optional<Schema.mutable<Schema.Array$<typeof Schema.String>>>;
|
|
142
|
+
bypassFor: Schema.optional<Schema.mutable<Schema.Array$<Schema.Schema<JsonValue, JsonValue, never>>>>;
|
|
143
|
+
renderingMode: Schema.optional<typeof Schema.String>;
|
|
144
|
+
partialFallback: Schema.optional<typeof Schema.Boolean>;
|
|
145
|
+
bypassToken: Schema.optional<typeof Schema.String>;
|
|
146
|
+
}>>;
|
|
147
|
+
}>>]>;
|
|
104
148
|
type GigadriveNextPrerenderOutput = Schema.Schema.Type<typeof GigadriveNextPrerenderOutputSchema>;
|
|
105
149
|
/** A directory subtree published under one URL prefix. */
|
|
106
150
|
declare const GigadriveNextStaticAssetPrefixSchema: Schema.mutable<Schema.Struct<{
|
|
@@ -109,6 +153,72 @@ declare const GigadriveNextStaticAssetPrefixSchema: Schema.mutable<Schema.Struct
|
|
|
109
153
|
immutable: typeof Schema.Boolean;
|
|
110
154
|
}>>;
|
|
111
155
|
type GigadriveNextStaticAssetPrefix = Schema.Schema.Type<typeof GigadriveNextStaticAssetPrefixSchema>;
|
|
156
|
+
/** Portable request condition used by a Next.js middleware/Proxy matcher. */
|
|
157
|
+
declare const GigadriveNextRouteConditionSchema: Schema.Union<[Schema.mutable<Schema.Struct<{
|
|
158
|
+
type: Schema.Literal<["header", "cookie", "query"]>;
|
|
159
|
+
key: typeof Schema.String;
|
|
160
|
+
value: Schema.optional<typeof Schema.String>;
|
|
161
|
+
}>>, Schema.mutable<Schema.Struct<{
|
|
162
|
+
type: Schema.Literal<["host"]>;
|
|
163
|
+
value: typeof Schema.String;
|
|
164
|
+
}>>]>;
|
|
165
|
+
type GigadriveNextRouteCondition = Schema.Schema.Type<typeof GigadriveNextRouteConditionSchema>;
|
|
166
|
+
/** Validated public matcher metadata for a Next.js middleware or Proxy entrypoint. */
|
|
167
|
+
declare const GigadriveNextMiddlewareMatcherSchema: Schema.mutable<Schema.Struct<{
|
|
168
|
+
source: typeof Schema.String;
|
|
169
|
+
sourceRegex: typeof Schema.String;
|
|
170
|
+
has: Schema.optional<Schema.mutable<Schema.Array$<Schema.Union<[Schema.mutable<Schema.Struct<{
|
|
171
|
+
type: Schema.Literal<["header", "cookie", "query"]>;
|
|
172
|
+
key: typeof Schema.String;
|
|
173
|
+
value: Schema.optional<typeof Schema.String>;
|
|
174
|
+
}>>, Schema.mutable<Schema.Struct<{
|
|
175
|
+
type: Schema.Literal<["host"]>;
|
|
176
|
+
value: typeof Schema.String;
|
|
177
|
+
}>>]>>>>;
|
|
178
|
+
missing: Schema.optional<Schema.mutable<Schema.Array$<Schema.Union<[Schema.mutable<Schema.Struct<{
|
|
179
|
+
type: Schema.Literal<["header", "cookie", "query"]>;
|
|
180
|
+
key: typeof Schema.String;
|
|
181
|
+
value: Schema.optional<typeof Schema.String>;
|
|
182
|
+
}>>, Schema.mutable<Schema.Struct<{
|
|
183
|
+
type: Schema.Literal<["host"]>;
|
|
184
|
+
value: typeof Schema.String;
|
|
185
|
+
}>>]>>>>;
|
|
186
|
+
}>>;
|
|
187
|
+
type GigadriveNextMiddlewareMatcher = Schema.Schema.Type<typeof GigadriveNextMiddlewareMatcherSchema>;
|
|
188
|
+
/**
|
|
189
|
+
* Portable middleware/Proxy discovery result.
|
|
190
|
+
*
|
|
191
|
+
* The object is emitted for every new standalone build. Its optional position
|
|
192
|
+
* in the containing manifest preserves parsing of manifests written by older
|
|
193
|
+
* SDK releases, where absence means that middleware presence is unknown.
|
|
194
|
+
*/
|
|
195
|
+
declare const GigadriveNextMiddlewareDescriptorSchema: Schema.Union<[Schema.mutable<Schema.Struct<{
|
|
196
|
+
present: Schema.Literal<[true]>;
|
|
197
|
+
matchers: Schema.mutable<Schema.Array$<Schema.mutable<Schema.Struct<{
|
|
198
|
+
source: typeof Schema.String;
|
|
199
|
+
sourceRegex: typeof Schema.String;
|
|
200
|
+
has: Schema.optional<Schema.mutable<Schema.Array$<Schema.Union<[Schema.mutable<Schema.Struct<{
|
|
201
|
+
type: Schema.Literal<["header", "cookie", "query"]>;
|
|
202
|
+
key: typeof Schema.String;
|
|
203
|
+
value: Schema.optional<typeof Schema.String>;
|
|
204
|
+
}>>, Schema.mutable<Schema.Struct<{
|
|
205
|
+
type: Schema.Literal<["host"]>;
|
|
206
|
+
value: typeof Schema.String;
|
|
207
|
+
}>>]>>>>;
|
|
208
|
+
missing: Schema.optional<Schema.mutable<Schema.Array$<Schema.Union<[Schema.mutable<Schema.Struct<{
|
|
209
|
+
type: Schema.Literal<["header", "cookie", "query"]>;
|
|
210
|
+
key: typeof Schema.String;
|
|
211
|
+
value: Schema.optional<typeof Schema.String>;
|
|
212
|
+
}>>, Schema.mutable<Schema.Struct<{
|
|
213
|
+
type: Schema.Literal<["host"]>;
|
|
214
|
+
value: typeof Schema.String;
|
|
215
|
+
}>>]>>>>;
|
|
216
|
+
}>>>>;
|
|
217
|
+
}>>, Schema.mutable<Schema.Struct<{
|
|
218
|
+
present: Schema.Literal<[false]>;
|
|
219
|
+
matchers: Schema.mutable<Schema.Tuple<[]>>;
|
|
220
|
+
}>>]>;
|
|
221
|
+
type GigadriveNextMiddlewareDescriptor = Schema.Schema.Type<typeof GigadriveNextMiddlewareDescriptorSchema>;
|
|
112
222
|
/** Aggregated runtime configuration for the standalone server. */
|
|
113
223
|
declare const GigadriveNextServerDescriptorSchema: Schema.mutable<Schema.Struct<{
|
|
114
224
|
maxDuration: Schema.optional<typeof Schema.Number>;
|
|
@@ -116,6 +226,9 @@ declare const GigadriveNextServerDescriptorSchema: Schema.mutable<Schema.Struct<
|
|
|
116
226
|
env: Schema.optional<Schema.mutable<Schema.Record$<typeof Schema.String, typeof Schema.String>>>;
|
|
117
227
|
}>>;
|
|
118
228
|
type GigadriveNextServerDescriptor = Schema.Schema.Type<typeof GigadriveNextServerDescriptorSchema>;
|
|
229
|
+
/** Methods for which a validated prerender seed may participate in response lookup. */
|
|
230
|
+
declare const GigadriveNextPrerenderSeedMethodsSchema: Schema.mutable<Schema.Tuple2<Schema.Literal<["GET"]>, Schema.Literal<["HEAD"]>>>;
|
|
231
|
+
type GigadriveNextPrerenderSeedMethods = Schema.Schema.Type<typeof GigadriveNextPrerenderSeedMethodsSchema>;
|
|
119
232
|
declare const GigadriveNextBuildManifestV1Schema: Schema.mutable<Schema.Struct<{
|
|
120
233
|
version: Schema.Literal<[1]>;
|
|
121
234
|
output: Schema.Literal<["standalone", "export"]>;
|
|
@@ -166,10 +279,15 @@ declare const GigadriveNextBuildManifestV2StandaloneSchema: Schema.mutable<Schem
|
|
|
166
279
|
rsc: Schema.Schema<JsonValue, JsonValue, never>;
|
|
167
280
|
}>>;
|
|
168
281
|
outputs: Schema.mutable<Schema.Struct<{
|
|
169
|
-
prerenders: Schema.mutable<Schema.Array$<Schema.mutable<Schema.Struct<{
|
|
282
|
+
prerenders: Schema.mutable<Schema.Array$<Schema.Union<[Schema.mutable<Schema.Struct<{
|
|
283
|
+
routeType: Schema.Literal<["route", "fallback", "shell", "page"]>;
|
|
284
|
+
response: Schema.Literal<["empty", "initial", "complete"]>;
|
|
285
|
+
compute: Schema.Literal<["blocking", "resuming", "static"]>;
|
|
286
|
+
htmlSize: Schema.optional<typeof Schema.Number>;
|
|
170
287
|
id: typeof Schema.String;
|
|
171
288
|
type: Schema.Literal<["PRERENDER"]>;
|
|
172
289
|
pathname: Schema.filter<typeof Schema.String>;
|
|
290
|
+
route: Schema.optional<Schema.filter<typeof Schema.String>>;
|
|
173
291
|
parentOutputId: typeof Schema.String;
|
|
174
292
|
groupId: typeof Schema.Number;
|
|
175
293
|
pprChain: Schema.optional<Schema.mutable<Schema.Struct<{
|
|
@@ -192,7 +310,38 @@ declare const GigadriveNextBuildManifestV2StandaloneSchema: Schema.mutable<Schem
|
|
|
192
310
|
partialFallback: Schema.optional<typeof Schema.Boolean>;
|
|
193
311
|
bypassToken: Schema.optional<typeof Schema.String>;
|
|
194
312
|
}>>;
|
|
195
|
-
}
|
|
313
|
+
}>>, Schema.mutable<Schema.Struct<{
|
|
314
|
+
routeType: Schema.optional<typeof Schema.Never>;
|
|
315
|
+
response: Schema.optional<typeof Schema.Never>;
|
|
316
|
+
compute: Schema.optional<typeof Schema.Never>;
|
|
317
|
+
htmlSize: Schema.optional<typeof Schema.Never>;
|
|
318
|
+
id: typeof Schema.String;
|
|
319
|
+
type: Schema.Literal<["PRERENDER"]>;
|
|
320
|
+
pathname: Schema.filter<typeof Schema.String>;
|
|
321
|
+
route: Schema.optional<Schema.filter<typeof Schema.String>>;
|
|
322
|
+
parentOutputId: typeof Schema.String;
|
|
323
|
+
groupId: typeof Schema.Number;
|
|
324
|
+
pprChain: Schema.optional<Schema.mutable<Schema.Struct<{
|
|
325
|
+
headers: Schema.filter<Schema.mutable<Schema.Record$<typeof Schema.String, Schema.filter<typeof Schema.String>>>>;
|
|
326
|
+
}>>>;
|
|
327
|
+
parentFallbackMode: Schema.optional<Schema.Schema<JsonValue, JsonValue, never>>;
|
|
328
|
+
fallback: Schema.optional<Schema.mutable<Schema.Struct<{
|
|
329
|
+
filePath: Schema.optional<Schema.filter<typeof Schema.String>>;
|
|
330
|
+
initialStatus: Schema.optional<Schema.filter<typeof Schema.Int>>;
|
|
331
|
+
initialHeaders: Schema.optional<Schema.filter<Schema.mutable<Schema.Record$<typeof Schema.String, Schema.Union<[Schema.filter<typeof Schema.String>, Schema.mutable<Schema.Array$<Schema.filter<typeof Schema.String>>>]>>>>>;
|
|
332
|
+
initialExpiration: Schema.optional<typeof Schema.Number>;
|
|
333
|
+
initialRevalidate: Schema.optional<Schema.Union<[typeof Schema.Number, Schema.Literal<[false]>]>>;
|
|
334
|
+
postponedState: Schema.optional<typeof Schema.String>;
|
|
335
|
+
}>>>;
|
|
336
|
+
config: Schema.mutable<Schema.Struct<{
|
|
337
|
+
allowQuery: Schema.optional<Schema.mutable<Schema.Array$<typeof Schema.String>>>;
|
|
338
|
+
allowHeader: Schema.optional<Schema.mutable<Schema.Array$<typeof Schema.String>>>;
|
|
339
|
+
bypassFor: Schema.optional<Schema.mutable<Schema.Array$<Schema.Schema<JsonValue, JsonValue, never>>>>;
|
|
340
|
+
renderingMode: Schema.optional<typeof Schema.String>;
|
|
341
|
+
partialFallback: Schema.optional<typeof Schema.Boolean>;
|
|
342
|
+
bypassToken: Schema.optional<typeof Schema.String>;
|
|
343
|
+
}>>;
|
|
344
|
+
}>>]>>>;
|
|
196
345
|
prerenderManifest: Schema.optional<Schema.filter<typeof Schema.String>>;
|
|
197
346
|
assetManifest: Schema.optional<Schema.filter<typeof Schema.String>>;
|
|
198
347
|
entryPagePaths: Schema.optional<Schema.mutable<Schema.Array$<Schema.filter<typeof Schema.String>>>>;
|
|
@@ -201,6 +350,32 @@ declare const GigadriveNextBuildManifestV2StandaloneSchema: Schema.mutable<Schem
|
|
|
201
350
|
urlPrefix: Schema.filter<typeof Schema.String>;
|
|
202
351
|
immutable: typeof Schema.Boolean;
|
|
203
352
|
}>>>>;
|
|
353
|
+
middleware: Schema.optional<Schema.Union<[Schema.mutable<Schema.Struct<{
|
|
354
|
+
present: Schema.Literal<[true]>;
|
|
355
|
+
matchers: Schema.mutable<Schema.Array$<Schema.mutable<Schema.Struct<{
|
|
356
|
+
source: typeof Schema.String;
|
|
357
|
+
sourceRegex: typeof Schema.String;
|
|
358
|
+
has: Schema.optional<Schema.mutable<Schema.Array$<Schema.Union<[Schema.mutable<Schema.Struct<{
|
|
359
|
+
type: Schema.Literal<["header", "cookie", "query"]>;
|
|
360
|
+
key: typeof Schema.String;
|
|
361
|
+
value: Schema.optional<typeof Schema.String>;
|
|
362
|
+
}>>, Schema.mutable<Schema.Struct<{
|
|
363
|
+
type: Schema.Literal<["host"]>;
|
|
364
|
+
value: typeof Schema.String;
|
|
365
|
+
}>>]>>>>;
|
|
366
|
+
missing: Schema.optional<Schema.mutable<Schema.Array$<Schema.Union<[Schema.mutable<Schema.Struct<{
|
|
367
|
+
type: Schema.Literal<["header", "cookie", "query"]>;
|
|
368
|
+
key: typeof Schema.String;
|
|
369
|
+
value: Schema.optional<typeof Schema.String>;
|
|
370
|
+
}>>, Schema.mutable<Schema.Struct<{
|
|
371
|
+
type: Schema.Literal<["host"]>;
|
|
372
|
+
value: typeof Schema.String;
|
|
373
|
+
}>>]>>>>;
|
|
374
|
+
}>>>>;
|
|
375
|
+
}>>, Schema.mutable<Schema.Struct<{
|
|
376
|
+
present: Schema.Literal<[false]>;
|
|
377
|
+
matchers: Schema.mutable<Schema.Tuple<[]>>;
|
|
378
|
+
}>>]>>;
|
|
204
379
|
}>>;
|
|
205
380
|
}>>;
|
|
206
381
|
type GigadriveNextBuildManifestV2Standalone = Schema.Schema.Type<typeof GigadriveNextBuildManifestV2StandaloneSchema>;
|
|
@@ -248,10 +423,15 @@ declare const GigadriveNextBuildManifestSchema: Schema.Union<[Schema.mutable<Sch
|
|
|
248
423
|
rsc: Schema.Schema<JsonValue, JsonValue, never>;
|
|
249
424
|
}>>;
|
|
250
425
|
outputs: Schema.mutable<Schema.Struct<{
|
|
251
|
-
prerenders: Schema.mutable<Schema.Array$<Schema.mutable<Schema.Struct<{
|
|
426
|
+
prerenders: Schema.mutable<Schema.Array$<Schema.Union<[Schema.mutable<Schema.Struct<{
|
|
427
|
+
routeType: Schema.Literal<["route", "fallback", "shell", "page"]>;
|
|
428
|
+
response: Schema.Literal<["empty", "initial", "complete"]>;
|
|
429
|
+
compute: Schema.Literal<["blocking", "resuming", "static"]>;
|
|
430
|
+
htmlSize: Schema.optional<typeof Schema.Number>;
|
|
252
431
|
id: typeof Schema.String;
|
|
253
432
|
type: Schema.Literal<["PRERENDER"]>;
|
|
254
433
|
pathname: Schema.filter<typeof Schema.String>;
|
|
434
|
+
route: Schema.optional<Schema.filter<typeof Schema.String>>;
|
|
255
435
|
parentOutputId: typeof Schema.String;
|
|
256
436
|
groupId: typeof Schema.Number;
|
|
257
437
|
pprChain: Schema.optional<Schema.mutable<Schema.Struct<{
|
|
@@ -274,7 +454,38 @@ declare const GigadriveNextBuildManifestSchema: Schema.Union<[Schema.mutable<Sch
|
|
|
274
454
|
partialFallback: Schema.optional<typeof Schema.Boolean>;
|
|
275
455
|
bypassToken: Schema.optional<typeof Schema.String>;
|
|
276
456
|
}>>;
|
|
277
|
-
}
|
|
457
|
+
}>>, Schema.mutable<Schema.Struct<{
|
|
458
|
+
routeType: Schema.optional<typeof Schema.Never>;
|
|
459
|
+
response: Schema.optional<typeof Schema.Never>;
|
|
460
|
+
compute: Schema.optional<typeof Schema.Never>;
|
|
461
|
+
htmlSize: Schema.optional<typeof Schema.Never>;
|
|
462
|
+
id: typeof Schema.String;
|
|
463
|
+
type: Schema.Literal<["PRERENDER"]>;
|
|
464
|
+
pathname: Schema.filter<typeof Schema.String>;
|
|
465
|
+
route: Schema.optional<Schema.filter<typeof Schema.String>>;
|
|
466
|
+
parentOutputId: typeof Schema.String;
|
|
467
|
+
groupId: typeof Schema.Number;
|
|
468
|
+
pprChain: Schema.optional<Schema.mutable<Schema.Struct<{
|
|
469
|
+
headers: Schema.filter<Schema.mutable<Schema.Record$<typeof Schema.String, Schema.filter<typeof Schema.String>>>>;
|
|
470
|
+
}>>>;
|
|
471
|
+
parentFallbackMode: Schema.optional<Schema.Schema<JsonValue, JsonValue, never>>;
|
|
472
|
+
fallback: Schema.optional<Schema.mutable<Schema.Struct<{
|
|
473
|
+
filePath: Schema.optional<Schema.filter<typeof Schema.String>>;
|
|
474
|
+
initialStatus: Schema.optional<Schema.filter<typeof Schema.Int>>;
|
|
475
|
+
initialHeaders: Schema.optional<Schema.filter<Schema.mutable<Schema.Record$<typeof Schema.String, Schema.Union<[Schema.filter<typeof Schema.String>, Schema.mutable<Schema.Array$<Schema.filter<typeof Schema.String>>>]>>>>>;
|
|
476
|
+
initialExpiration: Schema.optional<typeof Schema.Number>;
|
|
477
|
+
initialRevalidate: Schema.optional<Schema.Union<[typeof Schema.Number, Schema.Literal<[false]>]>>;
|
|
478
|
+
postponedState: Schema.optional<typeof Schema.String>;
|
|
479
|
+
}>>>;
|
|
480
|
+
config: Schema.mutable<Schema.Struct<{
|
|
481
|
+
allowQuery: Schema.optional<Schema.mutable<Schema.Array$<typeof Schema.String>>>;
|
|
482
|
+
allowHeader: Schema.optional<Schema.mutable<Schema.Array$<typeof Schema.String>>>;
|
|
483
|
+
bypassFor: Schema.optional<Schema.mutable<Schema.Array$<Schema.Schema<JsonValue, JsonValue, never>>>>;
|
|
484
|
+
renderingMode: Schema.optional<typeof Schema.String>;
|
|
485
|
+
partialFallback: Schema.optional<typeof Schema.Boolean>;
|
|
486
|
+
bypassToken: Schema.optional<typeof Schema.String>;
|
|
487
|
+
}>>;
|
|
488
|
+
}>>]>>>;
|
|
278
489
|
prerenderManifest: Schema.optional<Schema.filter<typeof Schema.String>>;
|
|
279
490
|
assetManifest: Schema.optional<Schema.filter<typeof Schema.String>>;
|
|
280
491
|
entryPagePaths: Schema.optional<Schema.mutable<Schema.Array$<Schema.filter<typeof Schema.String>>>>;
|
|
@@ -283,17 +494,54 @@ declare const GigadriveNextBuildManifestSchema: Schema.Union<[Schema.mutable<Sch
|
|
|
283
494
|
urlPrefix: Schema.filter<typeof Schema.String>;
|
|
284
495
|
immutable: typeof Schema.Boolean;
|
|
285
496
|
}>>>>;
|
|
497
|
+
middleware: Schema.optional<Schema.Union<[Schema.mutable<Schema.Struct<{
|
|
498
|
+
present: Schema.Literal<[true]>;
|
|
499
|
+
matchers: Schema.mutable<Schema.Array$<Schema.mutable<Schema.Struct<{
|
|
500
|
+
source: typeof Schema.String;
|
|
501
|
+
sourceRegex: typeof Schema.String;
|
|
502
|
+
has: Schema.optional<Schema.mutable<Schema.Array$<Schema.Union<[Schema.mutable<Schema.Struct<{
|
|
503
|
+
type: Schema.Literal<["header", "cookie", "query"]>;
|
|
504
|
+
key: typeof Schema.String;
|
|
505
|
+
value: Schema.optional<typeof Schema.String>;
|
|
506
|
+
}>>, Schema.mutable<Schema.Struct<{
|
|
507
|
+
type: Schema.Literal<["host"]>;
|
|
508
|
+
value: typeof Schema.String;
|
|
509
|
+
}>>]>>>>;
|
|
510
|
+
missing: Schema.optional<Schema.mutable<Schema.Array$<Schema.Union<[Schema.mutable<Schema.Struct<{
|
|
511
|
+
type: Schema.Literal<["header", "cookie", "query"]>;
|
|
512
|
+
key: typeof Schema.String;
|
|
513
|
+
value: Schema.optional<typeof Schema.String>;
|
|
514
|
+
}>>, Schema.mutable<Schema.Struct<{
|
|
515
|
+
type: Schema.Literal<["host"]>;
|
|
516
|
+
value: typeof Schema.String;
|
|
517
|
+
}>>]>>>>;
|
|
518
|
+
}>>>>;
|
|
519
|
+
}>>, Schema.mutable<Schema.Struct<{
|
|
520
|
+
present: Schema.Literal<[false]>;
|
|
521
|
+
matchers: Schema.mutable<Schema.Tuple<[]>>;
|
|
522
|
+
}>>]>>;
|
|
286
523
|
}>>;
|
|
287
524
|
}>>]>;
|
|
288
525
|
type GigadriveNextBuildManifestV2 = GigadriveNextBuildManifestV2Standalone | GigadriveNextBuildManifestV2Export;
|
|
289
526
|
type GigadriveNextBuildManifest = Schema.Schema.Type<typeof GigadriveNextBuildManifestSchema>;
|
|
290
|
-
/**
|
|
527
|
+
/**
|
|
528
|
+
* Portable sidecar containing high-cardinality Next.js prerender build seeds.
|
|
529
|
+
*
|
|
530
|
+
* `seedMethods` is optional only for parsing sidecars emitted by older SDK
|
|
531
|
+
* releases. New adapters always emit the explicit GET/HEAD method scope.
|
|
532
|
+
*/
|
|
291
533
|
declare const GigadriveNextPrerenderManifestV1Schema: Schema.mutable<Schema.Struct<{
|
|
292
534
|
version: Schema.Literal<[1]>;
|
|
293
|
-
|
|
535
|
+
seedMethods: Schema.optional<Schema.mutable<Schema.Tuple2<Schema.Literal<["GET"]>, Schema.Literal<["HEAD"]>>>>;
|
|
536
|
+
prerenders: Schema.mutable<Schema.Array$<Schema.Union<[Schema.mutable<Schema.Struct<{
|
|
537
|
+
routeType: Schema.Literal<["route", "fallback", "shell", "page"]>;
|
|
538
|
+
response: Schema.Literal<["empty", "initial", "complete"]>;
|
|
539
|
+
compute: Schema.Literal<["blocking", "resuming", "static"]>;
|
|
540
|
+
htmlSize: Schema.optional<typeof Schema.Number>;
|
|
294
541
|
id: typeof Schema.String;
|
|
295
542
|
type: Schema.Literal<["PRERENDER"]>;
|
|
296
543
|
pathname: Schema.filter<typeof Schema.String>;
|
|
544
|
+
route: Schema.optional<Schema.filter<typeof Schema.String>>;
|
|
297
545
|
parentOutputId: typeof Schema.String;
|
|
298
546
|
groupId: typeof Schema.Number;
|
|
299
547
|
pprChain: Schema.optional<Schema.mutable<Schema.Struct<{
|
|
@@ -316,7 +564,38 @@ declare const GigadriveNextPrerenderManifestV1Schema: Schema.mutable<Schema.Stru
|
|
|
316
564
|
partialFallback: Schema.optional<typeof Schema.Boolean>;
|
|
317
565
|
bypassToken: Schema.optional<typeof Schema.String>;
|
|
318
566
|
}>>;
|
|
319
|
-
}
|
|
567
|
+
}>>, Schema.mutable<Schema.Struct<{
|
|
568
|
+
routeType: Schema.optional<typeof Schema.Never>;
|
|
569
|
+
response: Schema.optional<typeof Schema.Never>;
|
|
570
|
+
compute: Schema.optional<typeof Schema.Never>;
|
|
571
|
+
htmlSize: Schema.optional<typeof Schema.Never>;
|
|
572
|
+
id: typeof Schema.String;
|
|
573
|
+
type: Schema.Literal<["PRERENDER"]>;
|
|
574
|
+
pathname: Schema.filter<typeof Schema.String>;
|
|
575
|
+
route: Schema.optional<Schema.filter<typeof Schema.String>>;
|
|
576
|
+
parentOutputId: typeof Schema.String;
|
|
577
|
+
groupId: typeof Schema.Number;
|
|
578
|
+
pprChain: Schema.optional<Schema.mutable<Schema.Struct<{
|
|
579
|
+
headers: Schema.filter<Schema.mutable<Schema.Record$<typeof Schema.String, Schema.filter<typeof Schema.String>>>>;
|
|
580
|
+
}>>>;
|
|
581
|
+
parentFallbackMode: Schema.optional<Schema.Schema<JsonValue, JsonValue, never>>;
|
|
582
|
+
fallback: Schema.optional<Schema.mutable<Schema.Struct<{
|
|
583
|
+
filePath: Schema.optional<Schema.filter<typeof Schema.String>>;
|
|
584
|
+
initialStatus: Schema.optional<Schema.filter<typeof Schema.Int>>;
|
|
585
|
+
initialHeaders: Schema.optional<Schema.filter<Schema.mutable<Schema.Record$<typeof Schema.String, Schema.Union<[Schema.filter<typeof Schema.String>, Schema.mutable<Schema.Array$<Schema.filter<typeof Schema.String>>>]>>>>>;
|
|
586
|
+
initialExpiration: Schema.optional<typeof Schema.Number>;
|
|
587
|
+
initialRevalidate: Schema.optional<Schema.Union<[typeof Schema.Number, Schema.Literal<[false]>]>>;
|
|
588
|
+
postponedState: Schema.optional<typeof Schema.String>;
|
|
589
|
+
}>>>;
|
|
590
|
+
config: Schema.mutable<Schema.Struct<{
|
|
591
|
+
allowQuery: Schema.optional<Schema.mutable<Schema.Array$<typeof Schema.String>>>;
|
|
592
|
+
allowHeader: Schema.optional<Schema.mutable<Schema.Array$<typeof Schema.String>>>;
|
|
593
|
+
bypassFor: Schema.optional<Schema.mutable<Schema.Array$<Schema.Schema<JsonValue, JsonValue, never>>>>;
|
|
594
|
+
renderingMode: Schema.optional<typeof Schema.String>;
|
|
595
|
+
partialFallback: Schema.optional<typeof Schema.Boolean>;
|
|
596
|
+
bypassToken: Schema.optional<typeof Schema.String>;
|
|
597
|
+
}>>;
|
|
598
|
+
}>>]>>>;
|
|
320
599
|
}>>;
|
|
321
600
|
type GigadriveNextPrerenderManifestV1 = Schema.Schema.Type<typeof GigadriveNextPrerenderManifestV1Schema>;
|
|
322
601
|
/** Parses and structurally validates adapter metadata before deployment code consumes it. */
|
|
@@ -1201,4 +1480,4 @@ declare const filterFunctionsFromAssets: (config: NormalizedConfig) => Normalize
|
|
|
1201
1480
|
|
|
1202
1481
|
declare const NetworkConfigLive: Layer.Layer<ConfigModuleLoader | RawConfigReader | SchemaValidator | V4ConfigParser | VercelBuildOutputParser, never, _effect_platform_Path.Path | _effect_platform_FileSystem.FileSystem>;
|
|
1203
1482
|
|
|
1204
|
-
export { ALLOWED_CONFIG_NAMES, AVAILABLE_REGIONS, AVAILABLE_RUNTIMES, type Config, ConfigFileEmptyError, ConfigFileNotFoundError, ConfigFileParseError, ConfigModuleLoadError, ConfigModuleLoader, ConfigSchemaValidationError, type ConfigV4, type ConfigV4FunctionSettings, type ConfigV4Service, type ConfigV4ServicePostgres, type ConfigV4ServiceRedis, type ConfigV4ServiceStorage, type ConfigV4Services, type ConfigV4StorageBucket, ConfigVersionError, DEFAULT_FUNCTION_DURATION_SECONDS, type DetectionResult, FRAMEWORK_DEFINITIONS, type FilePathMap, type FrameworkDefaultConfig, type FrameworkDefinition, type FrameworkDetectionItem, type FrameworkLanguage, FrameworkNotDetectedError, FunctionConfigError, type GigadriveNextBuildManifest, GigadriveNextBuildManifestSchema, type GigadriveNextBuildManifestV1, GigadriveNextBuildManifestV1Schema, type GigadriveNextBuildManifestV2, type GigadriveNextBuildManifestV2Export, GigadriveNextBuildManifestV2ExportSchema, type GigadriveNextBuildManifestV2Standalone, GigadriveNextBuildManifestV2StandaloneSchema, type GigadriveNextPrerenderManifestV1, GigadriveNextPrerenderManifestV1Schema, type GigadriveNextPrerenderOutput, GigadriveNextPrerenderOutputSchema, type GigadriveNextServerDescriptor, GigadriveNextServerDescriptorSchema, type GigadriveNextStaticAssetPrefix, GigadriveNextStaticAssetPrefixSchema, type JsonValue, MAX_FUNCTION_DURATION_SECONDS, ManifestNotFoundError, ManifestParseError, ManifestReadError, type NeonAWSRegion, NetworkConfigLive, type NormalizedConfig, type NormalizedConfigEntrypoint, type NormalizedConfigRoute, type NormalizedConfigRouteHandler, type NormalizedConfigRouteMatchRequirements, type NormalizedConfigRouteMethod, type NormalizedConfigService, type NormalizedConfigServiceDefinition, type NormalizedConfigServicePostgres, type NormalizedConfigServiceRedis, type NormalizedConfigServiceStorage, type NormalizedConfigServiceType, type NormalizedConfigStorageBucket, type NormalizedFramework, type NormalizedImageFit, type NormalizedImageFormat, type NormalizedImageLocalPattern, type NormalizedImagePolicy, type NormalizedImageRemotePattern, type NormalizedImageVariant, type NormalizedNextjsFramework, type NormalizedSharedArtifact, type PackageManager, RawConfigReader, type Region, type Runtime, SchemaValidator, type StaticAssetHeaders, StaticAssetHeadersSchema, type StaticAssetManifest, type StaticAssetManifestEntry, StaticAssetManifestEntrySchema, type StaticAssetManifestV1, StaticAssetManifestV1Schema, type UpstashAWSRegion, V4ConfigParser, VercelBuildOutputParser, defineConfig, detectFramework, detectPackageManager, filterFunctionsFromAssets, generateConfig, getFunctionSettings, mergeWithFrameworkDefaults, parseConfig, parseConfigRaw, parseGigadriveNextBuildManifest, parseGigadriveNextPrerenderManifest, parseStaticAssetManifest, postProcessConfig, readDependencies };
|
|
1483
|
+
export { ALLOWED_CONFIG_NAMES, AVAILABLE_REGIONS, AVAILABLE_RUNTIMES, type Config, ConfigFileEmptyError, ConfigFileNotFoundError, ConfigFileParseError, ConfigModuleLoadError, ConfigModuleLoader, ConfigSchemaValidationError, type ConfigV4, type ConfigV4FunctionSettings, type ConfigV4Service, type ConfigV4ServicePostgres, type ConfigV4ServiceRedis, type ConfigV4ServiceStorage, type ConfigV4Services, type ConfigV4StorageBucket, ConfigVersionError, DEFAULT_FUNCTION_DURATION_SECONDS, type DetectionResult, FRAMEWORK_DEFINITIONS, type FilePathMap, type FrameworkDefaultConfig, type FrameworkDefinition, type FrameworkDetectionItem, type FrameworkLanguage, FrameworkNotDetectedError, FunctionConfigError, type GigadriveNextBuildManifest, GigadriveNextBuildManifestSchema, type GigadriveNextBuildManifestV1, GigadriveNextBuildManifestV1Schema, type GigadriveNextBuildManifestV2, type GigadriveNextBuildManifestV2Export, GigadriveNextBuildManifestV2ExportSchema, type GigadriveNextBuildManifestV2Standalone, GigadriveNextBuildManifestV2StandaloneSchema, type GigadriveNextMiddlewareDescriptor, GigadriveNextMiddlewareDescriptorSchema, type GigadriveNextMiddlewareMatcher, GigadriveNextMiddlewareMatcherSchema, type GigadriveNextPrerenderManifestV1, GigadriveNextPrerenderManifestV1Schema, type GigadriveNextPrerenderOutput, GigadriveNextPrerenderOutputSchema, type GigadriveNextPrerenderSeedMethods, GigadriveNextPrerenderSeedMethodsSchema, type GigadriveNextRouteCondition, GigadriveNextRouteConditionSchema, type GigadriveNextServerDescriptor, GigadriveNextServerDescriptorSchema, type GigadriveNextStaticAssetPrefix, GigadriveNextStaticAssetPrefixSchema, type JsonValue, MAX_FUNCTION_DURATION_SECONDS, ManifestNotFoundError, ManifestParseError, ManifestReadError, type NeonAWSRegion, NetworkConfigLive, type NormalizedConfig, type NormalizedConfigEntrypoint, type NormalizedConfigRoute, type NormalizedConfigRouteHandler, type NormalizedConfigRouteMatchRequirements, type NormalizedConfigRouteMethod, type NormalizedConfigService, type NormalizedConfigServiceDefinition, type NormalizedConfigServicePostgres, type NormalizedConfigServiceRedis, type NormalizedConfigServiceStorage, type NormalizedConfigServiceType, type NormalizedConfigStorageBucket, type NormalizedFramework, type NormalizedImageFit, type NormalizedImageFormat, type NormalizedImageLocalPattern, type NormalizedImagePolicy, type NormalizedImageRemotePattern, type NormalizedImageVariant, type NormalizedNextjsFramework, type NormalizedSharedArtifact, type PackageManager, RawConfigReader, type Region, type Runtime, SchemaValidator, type StaticAssetHeaders, StaticAssetHeadersSchema, type StaticAssetManifest, type StaticAssetManifestEntry, StaticAssetManifestEntrySchema, type StaticAssetManifestV1, StaticAssetManifestV1Schema, type UpstashAWSRegion, V4ConfigParser, VercelBuildOutputParser, defineConfig, detectFramework, detectPackageManager, filterFunctionsFromAssets, generateConfig, getFunctionSettings, mergeWithFrameworkDefaults, parseConfig, parseConfigRaw, parseGigadriveNextBuildManifest, parseGigadriveNextPrerenderManifest, parseStaticAssetManifest, postProcessConfig, readDependencies };
|