@vercel/sdk 1.6.11 → 1.7.0

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 (59) hide show
  1. package/bin/mcp-server.js +546 -31
  2. package/bin/mcp-server.js.map +12 -12
  3. package/docs/sdks/deployments/README.md +6 -4
  4. package/docs/sdks/user/README.md +2 -0
  5. package/esm/__tests__/deployments.test.js +2 -1
  6. package/esm/__tests__/deployments.test.js.map +1 -1
  7. package/esm/__tests__/projects.test.js +13 -15
  8. package/esm/__tests__/projects.test.js.map +1 -1
  9. package/esm/funcs/deploymentsGetDeploymentEvents.d.ts +8 -2
  10. package/esm/funcs/deploymentsGetDeploymentEvents.d.ts.map +1 -1
  11. package/esm/funcs/deploymentsGetDeploymentEvents.js +11 -4
  12. package/esm/funcs/deploymentsGetDeploymentEvents.js.map +1 -1
  13. package/esm/funcs/userListUserEvents.js +1 -0
  14. package/esm/funcs/userListUserEvents.js.map +1 -1
  15. package/esm/lib/config.d.ts +3 -3
  16. package/esm/lib/config.js +3 -3
  17. package/esm/lib/config.js.map +1 -1
  18. package/esm/mcp-server/mcp-server.js +1 -1
  19. package/esm/mcp-server/mcp-server.js.map +1 -1
  20. package/esm/mcp-server/server.js +1 -1
  21. package/esm/mcp-server/server.js.map +1 -1
  22. package/esm/mcp-server/tools/deploymentsGetDeploymentEvents.d.ts.map +1 -1
  23. package/esm/mcp-server/tools/deploymentsGetDeploymentEvents.js +2 -1
  24. package/esm/mcp-server/tools/deploymentsGetDeploymentEvents.js.map +1 -1
  25. package/esm/models/getdeploymenteventsop.d.ts +963 -0
  26. package/esm/models/getdeploymenteventsop.d.ts.map +1 -1
  27. package/esm/models/getdeploymenteventsop.js +832 -0
  28. package/esm/models/getdeploymenteventsop.js.map +1 -1
  29. package/esm/models/getdeploymentop.d.ts +16 -16
  30. package/esm/models/getdeploymentop.d.ts.map +1 -1
  31. package/esm/models/getdeploymentop.js +25 -24
  32. package/esm/models/getdeploymentop.js.map +1 -1
  33. package/esm/models/listusereventsop.d.ts +5 -0
  34. package/esm/models/listusereventsop.d.ts.map +1 -1
  35. package/esm/models/listusereventsop.js +2 -0
  36. package/esm/models/listusereventsop.js.map +1 -1
  37. package/esm/models/teamlimited.d.ts +3 -3
  38. package/esm/models/teamlimited.js +1 -1
  39. package/esm/models/teamlimited.js.map +1 -1
  40. package/esm/sdk/deployments.d.ts +6 -2
  41. package/esm/sdk/deployments.d.ts.map +1 -1
  42. package/esm/sdk/deployments.js +2 -1
  43. package/esm/sdk/deployments.js.map +1 -1
  44. package/jsr.json +1 -1
  45. package/package.json +1 -1
  46. package/src/__tests__/deployments.test.ts +2 -1
  47. package/src/__tests__/projects.test.ts +13 -15
  48. package/src/funcs/deploymentsGetDeploymentEvents.ts +22 -8
  49. package/src/funcs/userListUserEvents.ts +1 -0
  50. package/src/lib/config.ts +3 -3
  51. package/src/mcp-server/mcp-server.ts +1 -1
  52. package/src/mcp-server/server.ts +1 -1
  53. package/src/mcp-server/tools/deploymentsGetDeploymentEvents.ts +3 -1
  54. package/src/models/getdeploymenteventsop.ts +1679 -0
  55. package/src/models/getdeploymentop.ts +37 -33
  56. package/src/models/listusereventsop.ts +7 -0
  57. package/src/models/teamlimited.ts +1 -1
  58. package/src/sdk/deployments.ts +14 -4
  59. package/vercel-spec.json +564 -2
package/vercel-spec.json CHANGED
@@ -8173,6 +8173,557 @@
8173
8173
  "deployments"
8174
8174
  ],
8175
8175
  "responses": {
8176
+ "200": {
8177
+ "description": "",
8178
+ "content": {
8179
+ "application/json": {
8180
+ "schema": {
8181
+ "type": "array",
8182
+ "items": {
8183
+ "oneOf": [
8184
+ {
8185
+ "properties": {
8186
+ "type": {
8187
+ "type": "string",
8188
+ "enum": [
8189
+ "delimiter",
8190
+ "command",
8191
+ "stdout",
8192
+ "stderr",
8193
+ "exit",
8194
+ "deployment-state",
8195
+ "middleware",
8196
+ "middleware-invocation",
8197
+ "edge-function-invocation",
8198
+ "metric",
8199
+ "report",
8200
+ "fatal"
8201
+ ]
8202
+ },
8203
+ "created": {
8204
+ "type": "number"
8205
+ },
8206
+ "payload": {
8207
+ "properties": {
8208
+ "deploymentId": {
8209
+ "type": "string"
8210
+ },
8211
+ "info": {
8212
+ "properties": {
8213
+ "type": {
8214
+ "type": "string"
8215
+ },
8216
+ "name": {
8217
+ "type": "string"
8218
+ },
8219
+ "entrypoint": {
8220
+ "type": "string"
8221
+ },
8222
+ "path": {
8223
+ "type": "string"
8224
+ },
8225
+ "step": {
8226
+ "type": "string"
8227
+ },
8228
+ "readyState": {
8229
+ "type": "string"
8230
+ }
8231
+ },
8232
+ "required": [
8233
+ "type",
8234
+ "name"
8235
+ ],
8236
+ "type": "object"
8237
+ },
8238
+ "text": {
8239
+ "type": "string"
8240
+ },
8241
+ "id": {
8242
+ "type": "string"
8243
+ },
8244
+ "date": {
8245
+ "type": "number"
8246
+ },
8247
+ "serial": {
8248
+ "type": "string"
8249
+ },
8250
+ "created": {
8251
+ "type": "number"
8252
+ },
8253
+ "statusCode": {
8254
+ "type": "number"
8255
+ },
8256
+ "requestId": {
8257
+ "type": "string"
8258
+ },
8259
+ "proxy": {
8260
+ "properties": {
8261
+ "timestamp": {
8262
+ "type": "number"
8263
+ },
8264
+ "method": {
8265
+ "type": "string"
8266
+ },
8267
+ "host": {
8268
+ "type": "string"
8269
+ },
8270
+ "path": {
8271
+ "type": "string"
8272
+ },
8273
+ "statusCode": {
8274
+ "type": "number"
8275
+ },
8276
+ "userAgent": {
8277
+ "items": {
8278
+ "type": "string"
8279
+ },
8280
+ "type": "array"
8281
+ },
8282
+ "referer": {
8283
+ "type": "string"
8284
+ },
8285
+ "clientIp": {
8286
+ "type": "string"
8287
+ },
8288
+ "region": {
8289
+ "type": "string"
8290
+ },
8291
+ "scheme": {
8292
+ "type": "string"
8293
+ },
8294
+ "responseByteSize": {
8295
+ "type": "number"
8296
+ },
8297
+ "cacheId": {
8298
+ "type": "string"
8299
+ },
8300
+ "pathType": {
8301
+ "type": "string"
8302
+ },
8303
+ "pathTypeVariant": {
8304
+ "type": "string"
8305
+ },
8306
+ "vercelId": {
8307
+ "type": "string"
8308
+ },
8309
+ "vercelCache": {
8310
+ "type": "string",
8311
+ "enum": [
8312
+ "MISS",
8313
+ "HIT",
8314
+ "STALE",
8315
+ "BYPASS",
8316
+ "PRERENDER",
8317
+ "REVALIDATED"
8318
+ ]
8319
+ },
8320
+ "lambdaRegion": {
8321
+ "type": "string"
8322
+ },
8323
+ "wafAction": {
8324
+ "type": "string",
8325
+ "enum": [
8326
+ "log",
8327
+ "challenge",
8328
+ "deny",
8329
+ "bypass",
8330
+ "rate_limit"
8331
+ ]
8332
+ },
8333
+ "wafRuleId": {
8334
+ "type": "string"
8335
+ }
8336
+ },
8337
+ "required": [
8338
+ "timestamp",
8339
+ "method",
8340
+ "host",
8341
+ "path",
8342
+ "userAgent",
8343
+ "referer",
8344
+ "region"
8345
+ ],
8346
+ "type": "object"
8347
+ }
8348
+ },
8349
+ "required": [
8350
+ "deploymentId",
8351
+ "id",
8352
+ "date",
8353
+ "serial"
8354
+ ],
8355
+ "type": "object"
8356
+ }
8357
+ },
8358
+ "required": [
8359
+ "type",
8360
+ "created",
8361
+ "payload"
8362
+ ],
8363
+ "type": "object"
8364
+ },
8365
+ {
8366
+ "properties": {
8367
+ "created": {
8368
+ "type": "number"
8369
+ },
8370
+ "date": {
8371
+ "type": "number"
8372
+ },
8373
+ "deploymentId": {
8374
+ "type": "string"
8375
+ },
8376
+ "id": {
8377
+ "type": "string"
8378
+ },
8379
+ "info": {
8380
+ "properties": {
8381
+ "type": {
8382
+ "type": "string"
8383
+ },
8384
+ "name": {
8385
+ "type": "string"
8386
+ },
8387
+ "entrypoint": {
8388
+ "type": "string"
8389
+ },
8390
+ "path": {
8391
+ "type": "string"
8392
+ },
8393
+ "step": {
8394
+ "type": "string"
8395
+ },
8396
+ "readyState": {
8397
+ "type": "string"
8398
+ }
8399
+ },
8400
+ "required": [
8401
+ "type",
8402
+ "name"
8403
+ ],
8404
+ "type": "object"
8405
+ },
8406
+ "serial": {
8407
+ "type": "string"
8408
+ },
8409
+ "text": {
8410
+ "type": "string"
8411
+ },
8412
+ "type": {
8413
+ "type": "string",
8414
+ "enum": [
8415
+ "delimiter",
8416
+ "command",
8417
+ "stdout",
8418
+ "stderr",
8419
+ "exit",
8420
+ "deployment-state",
8421
+ "middleware",
8422
+ "middleware-invocation",
8423
+ "edge-function-invocation",
8424
+ "metric",
8425
+ "report",
8426
+ "fatal"
8427
+ ]
8428
+ },
8429
+ "level": {
8430
+ "type": "string",
8431
+ "enum": [
8432
+ "error",
8433
+ "warning"
8434
+ ]
8435
+ }
8436
+ },
8437
+ "required": [
8438
+ "created",
8439
+ "date",
8440
+ "deploymentId",
8441
+ "id",
8442
+ "info",
8443
+ "serial",
8444
+ "type"
8445
+ ],
8446
+ "type": "object"
8447
+ }
8448
+ ],
8449
+ "nullable": true
8450
+ },
8451
+ "nullable": true
8452
+ }
8453
+ },
8454
+ "application/stream+json": {
8455
+ "schema": {
8456
+ "oneOf": [
8457
+ {
8458
+ "properties": {
8459
+ "type": {
8460
+ "type": "string",
8461
+ "enum": [
8462
+ "delimiter",
8463
+ "command",
8464
+ "stdout",
8465
+ "stderr",
8466
+ "exit",
8467
+ "deployment-state",
8468
+ "middleware",
8469
+ "middleware-invocation",
8470
+ "edge-function-invocation",
8471
+ "metric",
8472
+ "report",
8473
+ "fatal"
8474
+ ]
8475
+ },
8476
+ "created": {
8477
+ "type": "number"
8478
+ },
8479
+ "payload": {
8480
+ "properties": {
8481
+ "deploymentId": {
8482
+ "type": "string"
8483
+ },
8484
+ "info": {
8485
+ "properties": {
8486
+ "type": {
8487
+ "type": "string"
8488
+ },
8489
+ "name": {
8490
+ "type": "string"
8491
+ },
8492
+ "entrypoint": {
8493
+ "type": "string"
8494
+ },
8495
+ "path": {
8496
+ "type": "string"
8497
+ },
8498
+ "step": {
8499
+ "type": "string"
8500
+ },
8501
+ "readyState": {
8502
+ "type": "string"
8503
+ }
8504
+ },
8505
+ "required": [
8506
+ "type",
8507
+ "name"
8508
+ ],
8509
+ "type": "object"
8510
+ },
8511
+ "text": {
8512
+ "type": "string"
8513
+ },
8514
+ "id": {
8515
+ "type": "string"
8516
+ },
8517
+ "date": {
8518
+ "type": "number"
8519
+ },
8520
+ "serial": {
8521
+ "type": "string"
8522
+ },
8523
+ "created": {
8524
+ "type": "number"
8525
+ },
8526
+ "statusCode": {
8527
+ "type": "number"
8528
+ },
8529
+ "requestId": {
8530
+ "type": "string"
8531
+ },
8532
+ "proxy": {
8533
+ "properties": {
8534
+ "timestamp": {
8535
+ "type": "number"
8536
+ },
8537
+ "method": {
8538
+ "type": "string"
8539
+ },
8540
+ "host": {
8541
+ "type": "string"
8542
+ },
8543
+ "path": {
8544
+ "type": "string"
8545
+ },
8546
+ "statusCode": {
8547
+ "type": "number"
8548
+ },
8549
+ "userAgent": {
8550
+ "items": {
8551
+ "type": "string"
8552
+ },
8553
+ "type": "array"
8554
+ },
8555
+ "referer": {
8556
+ "type": "string"
8557
+ },
8558
+ "clientIp": {
8559
+ "type": "string"
8560
+ },
8561
+ "region": {
8562
+ "type": "string"
8563
+ },
8564
+ "scheme": {
8565
+ "type": "string"
8566
+ },
8567
+ "responseByteSize": {
8568
+ "type": "number"
8569
+ },
8570
+ "cacheId": {
8571
+ "type": "string"
8572
+ },
8573
+ "pathType": {
8574
+ "type": "string"
8575
+ },
8576
+ "pathTypeVariant": {
8577
+ "type": "string"
8578
+ },
8579
+ "vercelId": {
8580
+ "type": "string"
8581
+ },
8582
+ "vercelCache": {
8583
+ "type": "string",
8584
+ "enum": [
8585
+ "MISS",
8586
+ "HIT",
8587
+ "STALE",
8588
+ "BYPASS",
8589
+ "PRERENDER",
8590
+ "REVALIDATED"
8591
+ ]
8592
+ },
8593
+ "lambdaRegion": {
8594
+ "type": "string"
8595
+ },
8596
+ "wafAction": {
8597
+ "type": "string",
8598
+ "enum": [
8599
+ "log",
8600
+ "challenge",
8601
+ "deny",
8602
+ "bypass",
8603
+ "rate_limit"
8604
+ ]
8605
+ },
8606
+ "wafRuleId": {
8607
+ "type": "string"
8608
+ }
8609
+ },
8610
+ "required": [
8611
+ "timestamp",
8612
+ "method",
8613
+ "host",
8614
+ "path",
8615
+ "userAgent",
8616
+ "referer",
8617
+ "region"
8618
+ ],
8619
+ "type": "object"
8620
+ }
8621
+ },
8622
+ "required": [
8623
+ "deploymentId",
8624
+ "id",
8625
+ "date",
8626
+ "serial"
8627
+ ],
8628
+ "type": "object"
8629
+ }
8630
+ },
8631
+ "required": [
8632
+ "type",
8633
+ "created",
8634
+ "payload"
8635
+ ],
8636
+ "type": "object"
8637
+ },
8638
+ {
8639
+ "properties": {
8640
+ "created": {
8641
+ "type": "number"
8642
+ },
8643
+ "date": {
8644
+ "type": "number"
8645
+ },
8646
+ "deploymentId": {
8647
+ "type": "string"
8648
+ },
8649
+ "id": {
8650
+ "type": "string"
8651
+ },
8652
+ "info": {
8653
+ "properties": {
8654
+ "type": {
8655
+ "type": "string"
8656
+ },
8657
+ "name": {
8658
+ "type": "string"
8659
+ },
8660
+ "entrypoint": {
8661
+ "type": "string"
8662
+ },
8663
+ "path": {
8664
+ "type": "string"
8665
+ },
8666
+ "step": {
8667
+ "type": "string"
8668
+ },
8669
+ "readyState": {
8670
+ "type": "string"
8671
+ }
8672
+ },
8673
+ "required": [
8674
+ "type",
8675
+ "name"
8676
+ ],
8677
+ "type": "object"
8678
+ },
8679
+ "serial": {
8680
+ "type": "string"
8681
+ },
8682
+ "text": {
8683
+ "type": "string"
8684
+ },
8685
+ "type": {
8686
+ "type": "string",
8687
+ "enum": [
8688
+ "delimiter",
8689
+ "command",
8690
+ "stdout",
8691
+ "stderr",
8692
+ "exit",
8693
+ "deployment-state",
8694
+ "middleware",
8695
+ "middleware-invocation",
8696
+ "edge-function-invocation",
8697
+ "metric",
8698
+ "report",
8699
+ "fatal"
8700
+ ]
8701
+ },
8702
+ "level": {
8703
+ "type": "string",
8704
+ "enum": [
8705
+ "error",
8706
+ "warning"
8707
+ ]
8708
+ }
8709
+ },
8710
+ "required": [
8711
+ "created",
8712
+ "date",
8713
+ "deploymentId",
8714
+ "id",
8715
+ "info",
8716
+ "serial",
8717
+ "type"
8718
+ ],
8719
+ "type": "object"
8720
+ }
8721
+ ],
8722
+ "nullable": true
8723
+ }
8724
+ }
8725
+ }
8726
+ },
8176
8727
  "400": {
8177
8728
  "description": "One of the provided values in the request query is invalid.",
8178
8729
  "content": {
@@ -22039,6 +22590,16 @@
22039
22590
  "type": "string"
22040
22591
  }
22041
22592
  },
22593
+ {
22594
+ "name": "projectIds",
22595
+ "description": "Comma-delimited list of project IDs to filter the results by.",
22596
+ "in": "query",
22597
+ "schema": {
22598
+ "description": "Comma-delimited list of project IDs to filter the results by.",
22599
+ "example": "aeIInYVk59zbFF2SxfyxxmuO",
22600
+ "type": "string"
22601
+ }
22602
+ },
22042
22603
  {
22043
22604
  "name": "withPayload",
22044
22605
  "description": "When set to `true`, the response will include the `payload` field for each event.",
@@ -30694,7 +31255,8 @@
30694
31255
  "in": "query",
30695
31256
  "schema": {
30696
31257
  "description": "Search projects by the name field",
30697
- "type": "string"
31258
+ "type": "string",
31259
+ "maxLength": 511
30698
31260
  }
30699
31261
  },
30700
31262
  {
@@ -71732,7 +72294,7 @@
71732
72294
  "items": {
71733
72295
  "type": "string",
71734
72296
  "enum": [
71735
- "saml",
72297
+ "scope",
71736
72298
  "mfa"
71737
72299
  ]
71738
72300
  },