@vercel/config 0.0.28 → 0.0.30

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 (2) hide show
  1. package/dist/types.d.ts +45 -30
  2. package/package.json +1 -1
package/dist/types.d.ts CHANGED
@@ -20,6 +20,11 @@ export interface FunctionConfig {
20
20
  * An integer defining the memory your Serverless Function should be provided with (between 128 and 10240).
21
21
  */
22
22
  memory?: number;
23
+ /**
24
+ * An array of regions where this Serverless Function will be deployed.
25
+ * This setting overrides the top-level `regions` setting for matching functions.
26
+ */
27
+ regions?: string[];
23
28
  /**
24
29
  * The npm package name of a Runtime, including its version
25
30
  */
@@ -31,36 +36,45 @@ export interface FunctionConfig {
31
36
  /**
32
37
  * An array of experimental triggers for this Serverless Function. Currently only supports queue triggers.
33
38
  */
34
- experimentalTriggers?: {
35
- /**
36
- * Event type pattern this trigger handles
37
- */
38
- type: string;
39
- /**
40
- * Name of the queue topic to consume from
41
- */
42
- topic: string;
43
- /**
44
- * Name of the consumer group for this trigger
45
- */
46
- consumer: string;
47
- /**
48
- * Maximum number of delivery attempts
49
- */
50
- maxDeliveries?: number;
51
- /**
52
- * Delay in seconds before retrying failed executions
53
- */
54
- retryAfterSeconds?: number;
55
- /**
56
- * Initial delay in seconds before first execution attempt
57
- */
58
- initialDelaySeconds?: number;
59
- /**
60
- * Maximum number of concurrent executions for this consumer
61
- */
62
- maxConcurrency?: number;
63
- }[];
39
+ experimentalTriggers?: (TriggerEventConfigV1 | TriggerEventConfigV2)[];
40
+ }
41
+ interface TriggerEventConfigBase {
42
+ /**
43
+ * Name of the queue topic to consume from
44
+ */
45
+ topic: string;
46
+ /**
47
+ * Maximum number of delivery attempts
48
+ */
49
+ maxDeliveries?: number;
50
+ /**
51
+ * Delay in seconds before retrying failed executions
52
+ */
53
+ retryAfterSeconds?: number;
54
+ /**
55
+ * Initial delay in seconds before first execution attempt
56
+ */
57
+ initialDelaySeconds?: number;
58
+ /**
59
+ * Maximum number of concurrent executions for this consumer
60
+ */
61
+ maxConcurrency?: number;
62
+ }
63
+ /**
64
+ * Queue trigger config for v1beta - requires explicit consumer name
65
+ */
66
+ export interface TriggerEventConfigV1 extends TriggerEventConfigBase {
67
+ type: 'queue/v1beta';
68
+ /**
69
+ * Name of the consumer group for this trigger (required for v1beta)
70
+ */
71
+ consumer: string;
72
+ }
73
+ /**
74
+ * Queue trigger config for v2beta - consumer is derived from function path
75
+ */
76
+ export interface TriggerEventConfigV2 extends TriggerEventConfigBase {
77
+ type: 'queue/v2beta';
64
78
  }
65
79
  export interface CronJob {
66
80
  schedule: string;
@@ -336,3 +350,4 @@ export interface VercelConfig {
336
350
  * Runtime placeholder for VercelConfig to allow named imports.
337
351
  */
338
352
  export declare const VercelConfig: {};
353
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/config",
3
- "version": "0.0.28",
3
+ "version": "0.0.30",
4
4
  "description": "A TypeScript SDK for programmatically configuring Vercel projects",
5
5
  "license": "MIT",
6
6
  "homepage": "https://vercel.com/docs/projects/project-configuration",