vercel 51.1.0 → 51.2.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/chunks/{chunk-7IDNCLTM.js → chunk-3FMFPD7F.js} +1 -1
- package/dist/chunks/{chunk-VOT6BE6P.js → chunk-4EGCWWSR.js} +542 -10
- package/dist/chunks/{chunk-6DIXPIXB.js → chunk-57RLFBKC.js} +1 -1
- package/dist/chunks/{chunk-D7SZ3DXR.js → chunk-5DLMAFQU.js} +1 -1
- package/dist/chunks/{chunk-UZIEJEMY.js → chunk-5WHDQH2U.js} +1 -1
- package/dist/chunks/{chunk-TBW2XDGN.js → chunk-5YQCJTZI.js} +4 -4
- package/dist/chunks/{chunk-V23RAVWV.js → chunk-7S7GE4BN.js} +4 -5
- package/dist/chunks/{chunk-TWZWQGBN.js → chunk-E3NE4SKN.js} +3 -0
- package/dist/chunks/{chunk-Q4UET42E.js → chunk-EHZKWVK2.js} +3 -3
- package/dist/chunks/{chunk-NYO5XRBQ.js → chunk-FSOFFJDV.js} +1 -1
- package/dist/chunks/{chunk-WOFF2NEI.js → chunk-G6MVEB4W.js} +2 -2
- package/dist/chunks/{chunk-5CRSHCRD.js → chunk-K5XJCQQO.js} +1 -1
- package/dist/chunks/{chunk-A5XRYFVO.js → chunk-QQTF2FEY.js} +2 -2
- package/dist/chunks/{chunk-65IHMJX4.js → chunk-RK4TKB3D.js} +2 -2
- package/dist/chunks/{chunk-YKKQGGLZ.js → chunk-SSOWPEZT.js} +1 -1
- package/dist/chunks/{chunk-XHMU7WUB.js → chunk-VTQNSCUG.js} +2 -2
- package/dist/chunks/{chunk-XMVSCINT.js → chunk-W5K4YCTI.js} +1 -1
- package/dist/chunks/{chunk-K4IC7LFB.js → chunk-W6FW7CCT.js} +3 -3
- package/dist/chunks/{chunk-E6ZEBMUP.js → chunk-XAVGWINL.js} +5 -5
- package/dist/chunks/{chunk-RQTDTSAX.js → chunk-XRR5HDB3.js} +1 -1
- package/dist/chunks/{compile-vercel-config-6FEECIZK.js → compile-vercel-config-2GV46IDP.js} +1 -1
- package/dist/chunks/{delete-J2N2QXMP.js → delete-PXMYSQGR.js} +3 -3
- package/dist/chunks/{disable-QGYXQKAM.js → disable-2ZQ4OG4A.js} +3 -3
- package/dist/chunks/{discard-ZDGJB5US.js → discard-FQZTZ5HK.js} +3 -3
- package/dist/chunks/{edit-RJWDA5KJ.js → edit-F3J7Q5SZ.js} +4 -4
- package/dist/chunks/{enable-L33HPTXB.js → enable-ZW4W33H5.js} +3 -3
- package/dist/chunks/{export-Z5C4BJ2U.js → export-ZZV6ESIW.js} +3 -3
- package/dist/chunks/{list-4P2TW77C.js → list-SSIMVNNN.js} +2 -2
- package/dist/chunks/{list-HXN64DKX.js → list-VFPV4TUW.js} +2 -2
- package/dist/chunks/{publish-TLVHQB2H.js → publish-3K76MNS3.js} +3 -3
- package/dist/chunks/{query-SDKQTWN2.js → query-CY7JJSSX.js} +2 -2
- package/dist/chunks/{reorder-UHMUFYIW.js → reorder-6L7MENN5.js} +3 -3
- package/dist/chunks/{restore-762GO6HU.js → restore-XUYXOJQ2.js} +3 -3
- package/dist/chunks/{schema-WBOIQRP4.js → schema-G5FSLZVA.js} +2 -2
- package/dist/commands/build/index.js +10 -10
- package/dist/commands/deploy/index.js +12 -12
- package/dist/commands/dev/index.js +8 -8
- package/dist/commands/env/index.js +5 -5
- package/dist/commands/link/index.js +7 -7
- package/dist/commands/list/index.js +3 -3
- package/dist/commands-bulk.js +5900 -1651
- package/dist/index.js +20 -10
- package/dist/version.mjs +1 -1
- package/package.json +21 -21
|
@@ -25,10 +25,10 @@ import {
|
|
|
25
25
|
import {
|
|
26
26
|
buildCommand,
|
|
27
27
|
pullCommand
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-W5K4YCTI.js";
|
|
29
29
|
import {
|
|
30
30
|
envCommand
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-7S7GE4BN.js";
|
|
32
32
|
import {
|
|
33
33
|
confirmOption,
|
|
34
34
|
forceOption,
|
|
@@ -465,6 +465,75 @@ var agentCommand = {
|
|
|
465
465
|
]
|
|
466
466
|
};
|
|
467
467
|
|
|
468
|
+
// src/commands/ai-gateway/command.ts
|
|
469
|
+
var createSubcommand = {
|
|
470
|
+
name: "create",
|
|
471
|
+
aliases: [],
|
|
472
|
+
description: "Create a new AI Gateway API key",
|
|
473
|
+
arguments: [],
|
|
474
|
+
options: [
|
|
475
|
+
{
|
|
476
|
+
name: "name",
|
|
477
|
+
shorthand: null,
|
|
478
|
+
type: String,
|
|
479
|
+
argument: "NAME",
|
|
480
|
+
deprecated: false,
|
|
481
|
+
description: "Human-readable name for the API key"
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
name: "budget",
|
|
485
|
+
shorthand: null,
|
|
486
|
+
type: Number,
|
|
487
|
+
argument: "AMOUNT",
|
|
488
|
+
deprecated: false,
|
|
489
|
+
description: "Quota budget amount in dollars (minimum 1)"
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
name: "refresh-period",
|
|
493
|
+
shorthand: null,
|
|
494
|
+
type: String,
|
|
495
|
+
argument: "PERIOD",
|
|
496
|
+
deprecated: false,
|
|
497
|
+
description: "Quota refresh cadence: daily, weekly, monthly, or none (default: none)"
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
name: "include-byok",
|
|
501
|
+
shorthand: null,
|
|
502
|
+
type: Boolean,
|
|
503
|
+
deprecated: false,
|
|
504
|
+
description: "Include BYOK usage in quota (default: false)"
|
|
505
|
+
}
|
|
506
|
+
],
|
|
507
|
+
examples: [
|
|
508
|
+
{
|
|
509
|
+
name: "Create an API key with defaults",
|
|
510
|
+
value: `${packageName} ai-gateway api-keys create`
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
name: "Create an API key with a budget",
|
|
514
|
+
value: `${packageName} ai-gateway api-keys create --name my-key --budget 500 --refresh-period monthly`
|
|
515
|
+
}
|
|
516
|
+
]
|
|
517
|
+
};
|
|
518
|
+
var apiKeysSubcommand = {
|
|
519
|
+
name: "api-keys",
|
|
520
|
+
aliases: [],
|
|
521
|
+
description: "Manage AI Gateway API keys",
|
|
522
|
+
arguments: [],
|
|
523
|
+
subcommands: [createSubcommand],
|
|
524
|
+
options: [],
|
|
525
|
+
examples: []
|
|
526
|
+
};
|
|
527
|
+
var aiGatewayCommand = {
|
|
528
|
+
name: "ai-gateway",
|
|
529
|
+
aliases: [],
|
|
530
|
+
description: "Manage AI Gateway resources",
|
|
531
|
+
arguments: [],
|
|
532
|
+
subcommands: [apiKeysSubcommand],
|
|
533
|
+
options: [],
|
|
534
|
+
examples: []
|
|
535
|
+
};
|
|
536
|
+
|
|
468
537
|
// src/commands/alias/command.ts
|
|
469
538
|
var setSubcommand = {
|
|
470
539
|
name: "set",
|
|
@@ -1581,6 +1650,28 @@ var removeSubcommand4 = {
|
|
|
1581
1650
|
],
|
|
1582
1651
|
examples: []
|
|
1583
1652
|
};
|
|
1653
|
+
var priceSubcommand = {
|
|
1654
|
+
name: "price",
|
|
1655
|
+
aliases: [],
|
|
1656
|
+
description: "Show registrar price quote for a domain",
|
|
1657
|
+
arguments: [
|
|
1658
|
+
{
|
|
1659
|
+
name: "domain",
|
|
1660
|
+
required: true
|
|
1661
|
+
}
|
|
1662
|
+
],
|
|
1663
|
+
options: [formatOption],
|
|
1664
|
+
examples: [
|
|
1665
|
+
{
|
|
1666
|
+
name: "Price quote for a domain",
|
|
1667
|
+
value: `${packageName} domains price example.com`
|
|
1668
|
+
},
|
|
1669
|
+
{
|
|
1670
|
+
name: "JSON output",
|
|
1671
|
+
value: `${packageName} domains price example.com --format json`
|
|
1672
|
+
}
|
|
1673
|
+
]
|
|
1674
|
+
};
|
|
1584
1675
|
var buySubcommand = {
|
|
1585
1676
|
name: "buy",
|
|
1586
1677
|
aliases: [],
|
|
@@ -1648,6 +1739,7 @@ var domainsCommand = {
|
|
|
1648
1739
|
addSubcommand5,
|
|
1649
1740
|
buySubcommand,
|
|
1650
1741
|
moveSubcommand,
|
|
1742
|
+
priceSubcommand,
|
|
1651
1743
|
transferInSubcommand,
|
|
1652
1744
|
removeSubcommand4
|
|
1653
1745
|
],
|
|
@@ -2183,12 +2275,386 @@ var rulesInspectSubcommand = {
|
|
|
2183
2275
|
}
|
|
2184
2276
|
]
|
|
2185
2277
|
};
|
|
2278
|
+
var rulesAddSubcommand = {
|
|
2279
|
+
name: "add",
|
|
2280
|
+
aliases: [],
|
|
2281
|
+
description: "Create a new custom firewall rule using AI, an interactive builder, JSON, or command-line flags",
|
|
2282
|
+
arguments: [{ name: "name", required: false }],
|
|
2283
|
+
options: [
|
|
2284
|
+
{
|
|
2285
|
+
name: "ai",
|
|
2286
|
+
shorthand: null,
|
|
2287
|
+
type: String,
|
|
2288
|
+
deprecated: false,
|
|
2289
|
+
description: "Generate rule from natural language (AI-powered)"
|
|
2290
|
+
},
|
|
2291
|
+
{
|
|
2292
|
+
name: "json",
|
|
2293
|
+
shorthand: null,
|
|
2294
|
+
type: String,
|
|
2295
|
+
deprecated: false,
|
|
2296
|
+
description: "Create rule from JSON payload"
|
|
2297
|
+
},
|
|
2298
|
+
{
|
|
2299
|
+
name: "condition",
|
|
2300
|
+
shorthand: null,
|
|
2301
|
+
type: [String],
|
|
2302
|
+
deprecated: false,
|
|
2303
|
+
description: `Condition as JSON (repeatable). Multiple conditions are AND'd together. Fields: type (required), op (required), value, key (for header/cookie/query), neg (boolean). Example: '{"type":"path","op":"pre","value":"/api"}'.`
|
|
2304
|
+
},
|
|
2305
|
+
{
|
|
2306
|
+
name: "or",
|
|
2307
|
+
shorthand: null,
|
|
2308
|
+
type: Boolean,
|
|
2309
|
+
deprecated: false,
|
|
2310
|
+
description: "Start a new OR group. Conditions before --or are AND'd, conditions after form a separate group. Example: --condition A --condition B --or --condition C matches (A AND B) OR C."
|
|
2311
|
+
},
|
|
2312
|
+
{
|
|
2313
|
+
name: "action",
|
|
2314
|
+
shorthand: null,
|
|
2315
|
+
type: String,
|
|
2316
|
+
deprecated: false,
|
|
2317
|
+
description: "Action: deny, challenge, log, bypass, rate_limit, redirect"
|
|
2318
|
+
},
|
|
2319
|
+
{
|
|
2320
|
+
name: "duration",
|
|
2321
|
+
shorthand: null,
|
|
2322
|
+
type: String,
|
|
2323
|
+
deprecated: false,
|
|
2324
|
+
description: "Action duration: 1m, 5m, 15m, 30m, 1h"
|
|
2325
|
+
},
|
|
2326
|
+
{
|
|
2327
|
+
name: "description",
|
|
2328
|
+
shorthand: null,
|
|
2329
|
+
type: String,
|
|
2330
|
+
deprecated: false,
|
|
2331
|
+
description: "Rule description (max 256 chars)"
|
|
2332
|
+
},
|
|
2333
|
+
{
|
|
2334
|
+
name: "disabled",
|
|
2335
|
+
shorthand: null,
|
|
2336
|
+
type: Boolean,
|
|
2337
|
+
deprecated: false,
|
|
2338
|
+
description: "Create as disabled (default: enabled)"
|
|
2339
|
+
},
|
|
2340
|
+
{
|
|
2341
|
+
name: "rate-limit-algo",
|
|
2342
|
+
shorthand: null,
|
|
2343
|
+
type: String,
|
|
2344
|
+
deprecated: false,
|
|
2345
|
+
description: "Rate limit algorithm: fixed_window, token_bucket (default: fixed_window)"
|
|
2346
|
+
},
|
|
2347
|
+
{
|
|
2348
|
+
name: "rate-limit-window",
|
|
2349
|
+
shorthand: null,
|
|
2350
|
+
type: Number,
|
|
2351
|
+
deprecated: false,
|
|
2352
|
+
description: "Rate limit window in seconds, 10-3600 (required for rate_limit)"
|
|
2353
|
+
},
|
|
2354
|
+
{
|
|
2355
|
+
name: "rate-limit-requests",
|
|
2356
|
+
shorthand: null,
|
|
2357
|
+
type: Number,
|
|
2358
|
+
deprecated: false,
|
|
2359
|
+
description: "Rate limit max requests per window, 1-10000000 (required for rate_limit)"
|
|
2360
|
+
},
|
|
2361
|
+
{
|
|
2362
|
+
name: "rate-limit-keys",
|
|
2363
|
+
shorthand: null,
|
|
2364
|
+
type: [String],
|
|
2365
|
+
deprecated: false,
|
|
2366
|
+
description: "Rate limit keys (repeatable): ip, ja4, header:name (default: ip)"
|
|
2367
|
+
},
|
|
2368
|
+
{
|
|
2369
|
+
name: "rate-limit-action",
|
|
2370
|
+
shorthand: null,
|
|
2371
|
+
type: String,
|
|
2372
|
+
deprecated: false,
|
|
2373
|
+
description: "Action when rate limit is exceeded: log, deny, challenge, rate_limit (default: rate_limit)"
|
|
2374
|
+
},
|
|
2375
|
+
{
|
|
2376
|
+
name: "redirect-url",
|
|
2377
|
+
shorthand: null,
|
|
2378
|
+
type: String,
|
|
2379
|
+
deprecated: false,
|
|
2380
|
+
description: "Redirect URL or path"
|
|
2381
|
+
},
|
|
2382
|
+
{
|
|
2383
|
+
name: "redirect-permanent",
|
|
2384
|
+
shorthand: null,
|
|
2385
|
+
type: Boolean,
|
|
2386
|
+
deprecated: false,
|
|
2387
|
+
description: "Permanent redirect (301). Default: temporary (307)"
|
|
2388
|
+
},
|
|
2389
|
+
yesOption
|
|
2390
|
+
],
|
|
2391
|
+
examples: [
|
|
2392
|
+
{
|
|
2393
|
+
name: "Interactive mode",
|
|
2394
|
+
value: `${packageName} firewall rules add`
|
|
2395
|
+
},
|
|
2396
|
+
{
|
|
2397
|
+
name: "Create with AI",
|
|
2398
|
+
value: `${packageName} firewall rules add --ai "Rate limit /api to 100 requests per minute by IP"`
|
|
2399
|
+
},
|
|
2400
|
+
{
|
|
2401
|
+
name: "Create from JSON",
|
|
2402
|
+
value: `${packageName} firewall rules add --json '{"name":"Block bots","active":true,"conditionGroup":[{"conditions":[{"type":"user_agent","op":"sub","value":"crawler"}]}],"action":{"mitigate":{"action":"deny"}}}'`
|
|
2403
|
+
},
|
|
2404
|
+
{
|
|
2405
|
+
name: "Create with flags",
|
|
2406
|
+
value: `${packageName} firewall rules add "Block bots" --condition '{"type":"user_agent","op":"sub","value":"crawler"}' --action deny --yes`
|
|
2407
|
+
},
|
|
2408
|
+
{
|
|
2409
|
+
name: "Create with OR groups",
|
|
2410
|
+
value: `${packageName} firewall rules add "Block suspicious" --condition '{"type":"user_agent","op":"sub","value":"crawler"}' --or --condition '{"type":"ip_address","op":"eq","value":"1.2.3.4"}' --action deny --yes`
|
|
2411
|
+
}
|
|
2412
|
+
]
|
|
2413
|
+
};
|
|
2414
|
+
var rulesEditSubcommand = {
|
|
2415
|
+
name: "edit",
|
|
2416
|
+
aliases: [],
|
|
2417
|
+
description: "Edit an existing custom firewall rule using AI, an interactive editor, JSON, or command-line flags",
|
|
2418
|
+
arguments: [{ name: "name-or-id", required: true }],
|
|
2419
|
+
options: [
|
|
2420
|
+
{
|
|
2421
|
+
name: "ai",
|
|
2422
|
+
shorthand: null,
|
|
2423
|
+
type: String,
|
|
2424
|
+
deprecated: false,
|
|
2425
|
+
description: "Describe changes using natural language (AI-powered)"
|
|
2426
|
+
},
|
|
2427
|
+
{
|
|
2428
|
+
name: "json",
|
|
2429
|
+
shorthand: null,
|
|
2430
|
+
type: String,
|
|
2431
|
+
deprecated: false,
|
|
2432
|
+
description: "Replace rule with JSON payload"
|
|
2433
|
+
},
|
|
2434
|
+
{
|
|
2435
|
+
name: "condition",
|
|
2436
|
+
shorthand: null,
|
|
2437
|
+
type: [String],
|
|
2438
|
+
deprecated: false,
|
|
2439
|
+
description: `Replace conditions as JSON (repeatable). Example: '{"type":"path","op":"pre","value":"/api"}'. Fields: type, op, value, key (for header/cookie/query), neg (boolean). Use --or between conditions for OR groups.`
|
|
2440
|
+
},
|
|
2441
|
+
{
|
|
2442
|
+
name: "or",
|
|
2443
|
+
shorthand: null,
|
|
2444
|
+
type: Boolean,
|
|
2445
|
+
deprecated: false,
|
|
2446
|
+
description: "Start a new OR condition group"
|
|
2447
|
+
},
|
|
2448
|
+
{
|
|
2449
|
+
name: "name",
|
|
2450
|
+
shorthand: null,
|
|
2451
|
+
type: String,
|
|
2452
|
+
deprecated: false,
|
|
2453
|
+
description: "Rename the rule"
|
|
2454
|
+
},
|
|
2455
|
+
{
|
|
2456
|
+
name: "action",
|
|
2457
|
+
shorthand: null,
|
|
2458
|
+
type: String,
|
|
2459
|
+
deprecated: false,
|
|
2460
|
+
description: "Change action: deny, challenge, log, bypass, rate_limit, redirect"
|
|
2461
|
+
},
|
|
2462
|
+
{
|
|
2463
|
+
name: "duration",
|
|
2464
|
+
shorthand: null,
|
|
2465
|
+
type: String,
|
|
2466
|
+
deprecated: false,
|
|
2467
|
+
description: "Change action duration: 1m, 5m, 15m, 30m, 1h"
|
|
2468
|
+
},
|
|
2469
|
+
{
|
|
2470
|
+
name: "description",
|
|
2471
|
+
shorthand: null,
|
|
2472
|
+
type: String,
|
|
2473
|
+
deprecated: false,
|
|
2474
|
+
description: 'Change description (use "" to clear)'
|
|
2475
|
+
},
|
|
2476
|
+
{
|
|
2477
|
+
name: "enabled",
|
|
2478
|
+
shorthand: null,
|
|
2479
|
+
type: Boolean,
|
|
2480
|
+
deprecated: false,
|
|
2481
|
+
description: "Set rule to enabled"
|
|
2482
|
+
},
|
|
2483
|
+
{
|
|
2484
|
+
name: "disabled",
|
|
2485
|
+
shorthand: null,
|
|
2486
|
+
type: Boolean,
|
|
2487
|
+
deprecated: false,
|
|
2488
|
+
description: "Set rule to disabled"
|
|
2489
|
+
},
|
|
2490
|
+
{
|
|
2491
|
+
name: "rate-limit-algo",
|
|
2492
|
+
shorthand: null,
|
|
2493
|
+
type: String,
|
|
2494
|
+
deprecated: false,
|
|
2495
|
+
description: "Rate limit algorithm: fixed_window, token_bucket"
|
|
2496
|
+
},
|
|
2497
|
+
{
|
|
2498
|
+
name: "rate-limit-window",
|
|
2499
|
+
shorthand: null,
|
|
2500
|
+
type: Number,
|
|
2501
|
+
deprecated: false,
|
|
2502
|
+
description: "Rate limit window in seconds (10-3600)"
|
|
2503
|
+
},
|
|
2504
|
+
{
|
|
2505
|
+
name: "rate-limit-requests",
|
|
2506
|
+
shorthand: null,
|
|
2507
|
+
type: Number,
|
|
2508
|
+
deprecated: false,
|
|
2509
|
+
description: "Rate limit max requests per window (1-10000000)"
|
|
2510
|
+
},
|
|
2511
|
+
{
|
|
2512
|
+
name: "rate-limit-keys",
|
|
2513
|
+
shorthand: null,
|
|
2514
|
+
type: [String],
|
|
2515
|
+
deprecated: false,
|
|
2516
|
+
description: "Rate limit keys (repeatable): ip, ja4, header:name"
|
|
2517
|
+
},
|
|
2518
|
+
{
|
|
2519
|
+
name: "rate-limit-action",
|
|
2520
|
+
shorthand: null,
|
|
2521
|
+
type: String,
|
|
2522
|
+
deprecated: false,
|
|
2523
|
+
description: "Action when rate limit is exceeded: log, deny, challenge, rate_limit (default: rate_limit)"
|
|
2524
|
+
},
|
|
2525
|
+
{
|
|
2526
|
+
name: "redirect-url",
|
|
2527
|
+
shorthand: null,
|
|
2528
|
+
type: String,
|
|
2529
|
+
deprecated: false,
|
|
2530
|
+
description: "Redirect URL or path"
|
|
2531
|
+
},
|
|
2532
|
+
{
|
|
2533
|
+
name: "redirect-permanent",
|
|
2534
|
+
shorthand: null,
|
|
2535
|
+
type: Boolean,
|
|
2536
|
+
deprecated: false,
|
|
2537
|
+
description: "Permanent redirect (301). Default: temporary (307)"
|
|
2538
|
+
},
|
|
2539
|
+
yesOption
|
|
2540
|
+
],
|
|
2541
|
+
examples: [
|
|
2542
|
+
{
|
|
2543
|
+
name: "Interactive mode",
|
|
2544
|
+
value: `${packageName} firewall rules edit "My Rule"`
|
|
2545
|
+
},
|
|
2546
|
+
{
|
|
2547
|
+
name: "Edit with AI",
|
|
2548
|
+
value: `${packageName} firewall rules edit "My Rule" --ai "Change action to challenge"`
|
|
2549
|
+
},
|
|
2550
|
+
{
|
|
2551
|
+
name: "Change action via flags",
|
|
2552
|
+
value: `${packageName} firewall rules edit "My Rule" --action challenge --duration 5m --yes`
|
|
2553
|
+
},
|
|
2554
|
+
{
|
|
2555
|
+
name: "Replace conditions",
|
|
2556
|
+
value: `${packageName} firewall rules edit "My Rule" --condition '{"type":"path","op":"pre","value":"/new"}' --yes`
|
|
2557
|
+
},
|
|
2558
|
+
{
|
|
2559
|
+
name: "Rename a rule",
|
|
2560
|
+
value: `${packageName} firewall rules edit "My Rule" --name "New Name" --yes`
|
|
2561
|
+
}
|
|
2562
|
+
]
|
|
2563
|
+
};
|
|
2564
|
+
var rulesEnableSubcommand = {
|
|
2565
|
+
name: "enable",
|
|
2566
|
+
aliases: [],
|
|
2567
|
+
description: "Enable a disabled custom firewall rule",
|
|
2568
|
+
arguments: [{ name: "name-or-id", required: true }],
|
|
2569
|
+
options: [yesOption],
|
|
2570
|
+
examples: [
|
|
2571
|
+
{
|
|
2572
|
+
name: "Enable a rule",
|
|
2573
|
+
value: `${packageName} firewall rules enable "My Rule"`
|
|
2574
|
+
}
|
|
2575
|
+
]
|
|
2576
|
+
};
|
|
2577
|
+
var rulesDisableSubcommand = {
|
|
2578
|
+
name: "disable",
|
|
2579
|
+
aliases: [],
|
|
2580
|
+
description: "Disable a custom firewall rule without removing it",
|
|
2581
|
+
arguments: [{ name: "name-or-id", required: true }],
|
|
2582
|
+
options: [yesOption],
|
|
2583
|
+
examples: [
|
|
2584
|
+
{
|
|
2585
|
+
name: "Disable a rule",
|
|
2586
|
+
value: `${packageName} firewall rules disable "My Rule"`
|
|
2587
|
+
}
|
|
2588
|
+
]
|
|
2589
|
+
};
|
|
2590
|
+
var rulesRemoveSubcommand = {
|
|
2591
|
+
name: "remove",
|
|
2592
|
+
aliases: ["rm", "delete"],
|
|
2593
|
+
description: "Remove a custom firewall rule",
|
|
2594
|
+
arguments: [{ name: "name-or-id", required: true }],
|
|
2595
|
+
options: [yesOption],
|
|
2596
|
+
examples: [
|
|
2597
|
+
{
|
|
2598
|
+
name: "Remove a rule",
|
|
2599
|
+
value: `${packageName} firewall rules remove "My Rule" --yes`
|
|
2600
|
+
}
|
|
2601
|
+
]
|
|
2602
|
+
};
|
|
2603
|
+
var rulesReorderSubcommand = {
|
|
2604
|
+
name: "reorder",
|
|
2605
|
+
aliases: ["move"],
|
|
2606
|
+
description: "Change the priority order of a custom firewall rule",
|
|
2607
|
+
arguments: [{ name: "name-or-id", required: true }],
|
|
2608
|
+
options: [
|
|
2609
|
+
{
|
|
2610
|
+
name: "position",
|
|
2611
|
+
shorthand: null,
|
|
2612
|
+
type: Number,
|
|
2613
|
+
deprecated: false,
|
|
2614
|
+
description: "Target position (1-based)"
|
|
2615
|
+
},
|
|
2616
|
+
{
|
|
2617
|
+
name: "first",
|
|
2618
|
+
shorthand: null,
|
|
2619
|
+
type: Boolean,
|
|
2620
|
+
deprecated: false,
|
|
2621
|
+
description: "Move to first position"
|
|
2622
|
+
},
|
|
2623
|
+
{
|
|
2624
|
+
name: "last",
|
|
2625
|
+
shorthand: null,
|
|
2626
|
+
type: Boolean,
|
|
2627
|
+
deprecated: false,
|
|
2628
|
+
description: "Move to last position"
|
|
2629
|
+
},
|
|
2630
|
+
yesOption
|
|
2631
|
+
],
|
|
2632
|
+
examples: [
|
|
2633
|
+
{
|
|
2634
|
+
name: "Move to first position",
|
|
2635
|
+
value: `${packageName} firewall rules reorder "My Rule" --first --yes`
|
|
2636
|
+
},
|
|
2637
|
+
{
|
|
2638
|
+
name: "Move to position 3",
|
|
2639
|
+
value: `${packageName} firewall rules reorder "My Rule" --position 3 --yes`
|
|
2640
|
+
}
|
|
2641
|
+
]
|
|
2642
|
+
};
|
|
2186
2643
|
var rulesSubcommand = {
|
|
2187
2644
|
name: "rules",
|
|
2188
2645
|
aliases: [],
|
|
2189
2646
|
description: "Manage custom firewall rules that control how traffic is handled based on conditions",
|
|
2190
2647
|
arguments: [],
|
|
2191
|
-
subcommands: [
|
|
2648
|
+
subcommands: [
|
|
2649
|
+
rulesListSubcommand,
|
|
2650
|
+
rulesInspectSubcommand,
|
|
2651
|
+
rulesAddSubcommand,
|
|
2652
|
+
rulesEditSubcommand,
|
|
2653
|
+
rulesEnableSubcommand,
|
|
2654
|
+
rulesDisableSubcommand,
|
|
2655
|
+
rulesRemoveSubcommand,
|
|
2656
|
+
rulesReorderSubcommand
|
|
2657
|
+
],
|
|
2192
2658
|
options: [],
|
|
2193
2659
|
examples: [
|
|
2194
2660
|
{
|
|
@@ -2198,6 +2664,14 @@ var rulesSubcommand = {
|
|
|
2198
2664
|
{
|
|
2199
2665
|
name: "Inspect a rule",
|
|
2200
2666
|
value: `${packageName} firewall rules inspect "Block bots"`
|
|
2667
|
+
},
|
|
2668
|
+
{
|
|
2669
|
+
name: "Create with AI",
|
|
2670
|
+
value: `${packageName} firewall rules add --ai "Rate limit /api to 100 requests per minute by IP"`
|
|
2671
|
+
},
|
|
2672
|
+
{
|
|
2673
|
+
name: "Edit with AI",
|
|
2674
|
+
value: `${packageName} firewall rules edit "My Rule" --ai "Change action to challenge"`
|
|
2201
2675
|
}
|
|
2202
2676
|
]
|
|
2203
2677
|
};
|
|
@@ -2392,7 +2866,7 @@ var inspectSubcommand2 = {
|
|
|
2392
2866
|
}
|
|
2393
2867
|
]
|
|
2394
2868
|
};
|
|
2395
|
-
var
|
|
2869
|
+
var createSubcommand2 = {
|
|
2396
2870
|
name: "create",
|
|
2397
2871
|
aliases: ["add"],
|
|
2398
2872
|
description: "Create a new feature flag",
|
|
@@ -2889,7 +3363,7 @@ var flagsCommand = {
|
|
|
2889
3363
|
subcommands: [
|
|
2890
3364
|
listSubcommand8,
|
|
2891
3365
|
inspectSubcommand2,
|
|
2892
|
-
|
|
3366
|
+
createSubcommand2,
|
|
2893
3367
|
openSubcommand,
|
|
2894
3368
|
updateSubcommand2,
|
|
2895
3369
|
setSubcommand2,
|
|
@@ -4740,6 +5214,28 @@ var removeSubcommand10 = {
|
|
|
4740
5214
|
options: [],
|
|
4741
5215
|
examples: []
|
|
4742
5216
|
};
|
|
5217
|
+
var renameSubcommand = {
|
|
5218
|
+
name: "rename",
|
|
5219
|
+
aliases: [],
|
|
5220
|
+
description: "Rename a project",
|
|
5221
|
+
arguments: [
|
|
5222
|
+
{
|
|
5223
|
+
name: "name",
|
|
5224
|
+
required: true
|
|
5225
|
+
},
|
|
5226
|
+
{
|
|
5227
|
+
name: "new-name",
|
|
5228
|
+
required: true
|
|
5229
|
+
}
|
|
5230
|
+
],
|
|
5231
|
+
options: [],
|
|
5232
|
+
examples: [
|
|
5233
|
+
{
|
|
5234
|
+
name: "Rename a project",
|
|
5235
|
+
value: `${packageName} project rename my-project my-renamed-project`
|
|
5236
|
+
}
|
|
5237
|
+
]
|
|
5238
|
+
};
|
|
4743
5239
|
var tokenSubcommand = {
|
|
4744
5240
|
name: "token",
|
|
4745
5241
|
aliases: [],
|
|
@@ -5061,6 +5557,7 @@ var projectCommand = {
|
|
|
5061
5557
|
protectionSubcommand,
|
|
5062
5558
|
webAnalyticsSubcommand,
|
|
5063
5559
|
speedInsightsSubcommand,
|
|
5560
|
+
renameSubcommand,
|
|
5064
5561
|
removeSubcommand10,
|
|
5065
5562
|
tokenSubcommand
|
|
5066
5563
|
],
|
|
@@ -6647,9 +7144,32 @@ var listStoresSubcommand = {
|
|
|
6647
7144
|
type: Boolean,
|
|
6648
7145
|
deprecated: false,
|
|
6649
7146
|
description: "List all blob stores for the team, not just the ones connected to the current project"
|
|
7147
|
+
},
|
|
7148
|
+
{
|
|
7149
|
+
name: "json",
|
|
7150
|
+
shorthand: null,
|
|
7151
|
+
type: Boolean,
|
|
7152
|
+
deprecated: false,
|
|
7153
|
+
description: "Output results as JSON"
|
|
7154
|
+
},
|
|
7155
|
+
{
|
|
7156
|
+
name: "no-projects",
|
|
7157
|
+
shorthand: null,
|
|
7158
|
+
type: Boolean,
|
|
7159
|
+
deprecated: false,
|
|
7160
|
+
description: "Hide the Projects column (table output only)"
|
|
6650
7161
|
}
|
|
6651
7162
|
],
|
|
6652
|
-
examples: [
|
|
7163
|
+
examples: [
|
|
7164
|
+
{
|
|
7165
|
+
name: "List blob stores for the linked project",
|
|
7166
|
+
value: "vercel blob list-stores"
|
|
7167
|
+
},
|
|
7168
|
+
{
|
|
7169
|
+
name: "List all team blob stores as JSON",
|
|
7170
|
+
value: "vercel blob list-stores --all --json"
|
|
7171
|
+
}
|
|
7172
|
+
]
|
|
6653
7173
|
};
|
|
6654
7174
|
var blobCommand = {
|
|
6655
7175
|
name: "blob",
|
|
@@ -6709,7 +7229,7 @@ var getSubcommand3 = {
|
|
|
6709
7229
|
options: [formatOption],
|
|
6710
7230
|
examples: []
|
|
6711
7231
|
};
|
|
6712
|
-
var
|
|
7232
|
+
var createSubcommand3 = {
|
|
6713
7233
|
name: "create",
|
|
6714
7234
|
aliases: ["add"],
|
|
6715
7235
|
description: "Create a new webhook",
|
|
@@ -6770,7 +7290,7 @@ var webhooksCommand = {
|
|
|
6770
7290
|
subcommands: [
|
|
6771
7291
|
listSubcommand16,
|
|
6772
7292
|
getSubcommand3,
|
|
6773
|
-
|
|
7293
|
+
createSubcommand3,
|
|
6774
7294
|
removeSubcommand13
|
|
6775
7295
|
],
|
|
6776
7296
|
options: [],
|
|
@@ -6780,6 +7300,7 @@ var webhooksCommand = {
|
|
|
6780
7300
|
// src/commands/index.ts
|
|
6781
7301
|
var commandsStructs = [
|
|
6782
7302
|
agentCommand,
|
|
7303
|
+
aiGatewayCommand,
|
|
6783
7304
|
alertsCommand,
|
|
6784
7305
|
aliasCommand,
|
|
6785
7306
|
activityCommand,
|
|
@@ -6866,6 +7387,9 @@ var commandNames = Array.from(commands.keys());
|
|
|
6866
7387
|
|
|
6867
7388
|
export {
|
|
6868
7389
|
agentCommand,
|
|
7390
|
+
createSubcommand,
|
|
7391
|
+
apiKeysSubcommand,
|
|
7392
|
+
aiGatewayCommand,
|
|
6869
7393
|
setSubcommand,
|
|
6870
7394
|
listSubcommand,
|
|
6871
7395
|
removeSubcommand,
|
|
@@ -6911,6 +7435,7 @@ export {
|
|
|
6911
7435
|
inspectSubcommand,
|
|
6912
7436
|
addSubcommand5 as addSubcommand4,
|
|
6913
7437
|
removeSubcommand4,
|
|
7438
|
+
priceSubcommand,
|
|
6914
7439
|
buySubcommand,
|
|
6915
7440
|
moveSubcommand,
|
|
6916
7441
|
transferInSubcommand,
|
|
@@ -6937,6 +7462,12 @@ export {
|
|
|
6937
7462
|
ipBlocksSubcommand,
|
|
6938
7463
|
rulesListSubcommand,
|
|
6939
7464
|
rulesInspectSubcommand,
|
|
7465
|
+
rulesAddSubcommand,
|
|
7466
|
+
rulesEditSubcommand,
|
|
7467
|
+
rulesEnableSubcommand,
|
|
7468
|
+
rulesDisableSubcommand,
|
|
7469
|
+
rulesRemoveSubcommand,
|
|
7470
|
+
rulesReorderSubcommand,
|
|
6940
7471
|
rulesSubcommand,
|
|
6941
7472
|
attackModeEnableSubcommand,
|
|
6942
7473
|
attackModeDisableSubcommand,
|
|
@@ -6947,7 +7478,7 @@ export {
|
|
|
6947
7478
|
firewallCommand,
|
|
6948
7479
|
listSubcommand8,
|
|
6949
7480
|
inspectSubcommand2,
|
|
6950
|
-
|
|
7481
|
+
createSubcommand2,
|
|
6951
7482
|
openSubcommand,
|
|
6952
7483
|
updateSubcommand2,
|
|
6953
7484
|
setSubcommand2,
|
|
@@ -7016,6 +7547,7 @@ export {
|
|
|
7016
7547
|
inspectSubcommand3,
|
|
7017
7548
|
listSubcommand10,
|
|
7018
7549
|
removeSubcommand10,
|
|
7550
|
+
renameSubcommand,
|
|
7019
7551
|
tokenSubcommand,
|
|
7020
7552
|
accessSummarySubcommand,
|
|
7021
7553
|
membersSubcommand,
|
|
@@ -7084,7 +7616,7 @@ export {
|
|
|
7084
7616
|
blobCommand,
|
|
7085
7617
|
listSubcommand16,
|
|
7086
7618
|
getSubcommand3,
|
|
7087
|
-
|
|
7619
|
+
createSubcommand3,
|
|
7088
7620
|
removeSubcommand13,
|
|
7089
7621
|
webhooksCommand,
|
|
7090
7622
|
getCommandAliases,
|