@vercel/config 0.0.29 → 0.0.31
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/types.d.ts +45 -30
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -25,6 +25,11 @@ export interface FunctionConfig {
|
|
|
25
25
|
* This setting overrides the top-level `regions` setting for matching functions.
|
|
26
26
|
*/
|
|
27
27
|
regions?: string[];
|
|
28
|
+
/**
|
|
29
|
+
* An array of passive regions where this Serverless Function can fail over during outages.
|
|
30
|
+
* This setting overrides top-level `functionFailoverRegions` for matching functions.
|
|
31
|
+
*/
|
|
32
|
+
functionFailoverRegions?: string[];
|
|
28
33
|
/**
|
|
29
34
|
* The npm package name of a Runtime, including its version
|
|
30
35
|
*/
|
|
@@ -36,36 +41,45 @@ export interface FunctionConfig {
|
|
|
36
41
|
/**
|
|
37
42
|
* An array of experimental triggers for this Serverless Function. Currently only supports queue triggers.
|
|
38
43
|
*/
|
|
39
|
-
experimentalTriggers?:
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
44
|
+
experimentalTriggers?: (TriggerEventConfigV1 | TriggerEventConfigV2)[];
|
|
45
|
+
}
|
|
46
|
+
interface TriggerEventConfigBase {
|
|
47
|
+
/**
|
|
48
|
+
* Name of the queue topic to consume from
|
|
49
|
+
*/
|
|
50
|
+
topic: string;
|
|
51
|
+
/**
|
|
52
|
+
* Maximum number of delivery attempts
|
|
53
|
+
*/
|
|
54
|
+
maxDeliveries?: number;
|
|
55
|
+
/**
|
|
56
|
+
* Delay in seconds before retrying failed executions
|
|
57
|
+
*/
|
|
58
|
+
retryAfterSeconds?: number;
|
|
59
|
+
/**
|
|
60
|
+
* Initial delay in seconds before first execution attempt
|
|
61
|
+
*/
|
|
62
|
+
initialDelaySeconds?: number;
|
|
63
|
+
/**
|
|
64
|
+
* Maximum number of concurrent executions for this consumer
|
|
65
|
+
*/
|
|
66
|
+
maxConcurrency?: number;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Queue trigger config for v1beta - requires explicit consumer name
|
|
70
|
+
*/
|
|
71
|
+
export interface TriggerEventConfigV1 extends TriggerEventConfigBase {
|
|
72
|
+
type: 'queue/v1beta';
|
|
73
|
+
/**
|
|
74
|
+
* Name of the consumer group for this trigger (required for v1beta)
|
|
75
|
+
*/
|
|
76
|
+
consumer: string;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Queue trigger config for v2beta - consumer is derived from function path
|
|
80
|
+
*/
|
|
81
|
+
export interface TriggerEventConfigV2 extends TriggerEventConfigBase {
|
|
82
|
+
type: 'queue/v2beta';
|
|
69
83
|
}
|
|
70
84
|
export interface CronJob {
|
|
71
85
|
schedule: string;
|
|
@@ -341,3 +355,4 @@ export interface VercelConfig {
|
|
|
341
355
|
* Runtime placeholder for VercelConfig to allow named imports.
|
|
342
356
|
*/
|
|
343
357
|
export declare const VercelConfig: {};
|
|
358
|
+
export {};
|
package/package.json
CHANGED