@vercel/sdk 1.17.3 → 1.17.5

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 (110) hide show
  1. package/README.md +28 -24
  2. package/bin/mcp-server.js +1496 -1252
  3. package/bin/mcp-server.js.map +18 -12
  4. package/esm/__tests__/accessgroups.test.js +1 -3
  5. package/esm/__tests__/accessgroups.test.js.map +1 -1
  6. package/esm/__tests__/checks.test.js +1 -1
  7. package/esm/__tests__/checks.test.js.map +1 -1
  8. package/esm/__tests__/domains.test.js +4 -10
  9. package/esm/__tests__/domains.test.js.map +1 -1
  10. package/esm/__tests__/edgeconfig.test.js +6 -6
  11. package/esm/__tests__/edgeconfig.test.js.map +1 -1
  12. package/esm/__tests__/integrations.test.js +1 -1
  13. package/esm/__tests__/logdrains.test.js +1 -3
  14. package/esm/__tests__/logdrains.test.js.map +1 -1
  15. package/esm/__tests__/rollingrelease.test.js +2 -6
  16. package/esm/__tests__/rollingrelease.test.js.map +1 -1
  17. package/esm/__tests__/security.test.js +4 -4
  18. package/esm/__tests__/security.test.js.map +1 -1
  19. package/esm/funcs/edgeCacheDangerouslyDeleteBySrcImages.d.ts +17 -0
  20. package/esm/funcs/edgeCacheDangerouslyDeleteBySrcImages.d.ts.map +1 -0
  21. package/esm/funcs/edgeCacheDangerouslyDeleteBySrcImages.js +85 -0
  22. package/esm/funcs/edgeCacheDangerouslyDeleteBySrcImages.js.map +1 -0
  23. package/esm/funcs/edgeCacheInvalidateBySrcImages.d.ts +17 -0
  24. package/esm/funcs/edgeCacheInvalidateBySrcImages.d.ts.map +1 -0
  25. package/esm/funcs/edgeCacheInvalidateBySrcImages.js +85 -0
  26. package/esm/funcs/edgeCacheInvalidateBySrcImages.js.map +1 -0
  27. package/esm/lib/config.d.ts +3 -3
  28. package/esm/lib/config.js +3 -3
  29. package/esm/mcp-server/mcp-server.js +1 -1
  30. package/esm/mcp-server/server.d.ts.map +1 -1
  31. package/esm/mcp-server/server.js +5 -1
  32. package/esm/mcp-server/server.js.map +1 -1
  33. package/esm/mcp-server/tools/edgeCacheDangerouslyDeleteBySrcImages.d.ts +7 -0
  34. package/esm/mcp-server/tools/edgeCacheDangerouslyDeleteBySrcImages.d.ts.map +1 -0
  35. package/esm/mcp-server/tools/edgeCacheDangerouslyDeleteBySrcImages.js +27 -0
  36. package/esm/mcp-server/tools/edgeCacheDangerouslyDeleteBySrcImages.js.map +1 -0
  37. package/esm/mcp-server/tools/edgeCacheInvalidateBySrcImages.d.ts +7 -0
  38. package/esm/mcp-server/tools/edgeCacheInvalidateBySrcImages.d.ts.map +1 -0
  39. package/esm/mcp-server/tools/edgeCacheInvalidateBySrcImages.js +27 -0
  40. package/esm/mcp-server/tools/edgeCacheInvalidateBySrcImages.js.map +1 -0
  41. package/esm/models/canceldeploymentop.d.ts +0 -37
  42. package/esm/models/canceldeploymentop.d.ts.map +1 -1
  43. package/esm/models/canceldeploymentop.js +0 -23
  44. package/esm/models/canceldeploymentop.js.map +1 -1
  45. package/esm/models/createdeploymentop.d.ts +0 -37
  46. package/esm/models/createdeploymentop.d.ts.map +1 -1
  47. package/esm/models/createdeploymentop.js +0 -22
  48. package/esm/models/createdeploymentop.js.map +1 -1
  49. package/esm/models/createintegrationstoredirectop.d.ts +152 -152
  50. package/esm/models/createintegrationstoredirectop.js +218 -218
  51. package/esm/models/dangerouslydeletebysrcimagesop.d.ts +44 -0
  52. package/esm/models/dangerouslydeletebysrcimagesop.d.ts.map +1 -0
  53. package/esm/models/dangerouslydeletebysrcimagesop.js +51 -0
  54. package/esm/models/dangerouslydeletebysrcimagesop.js.map +1 -0
  55. package/esm/models/getconfigurationproductsop.d.ts +200 -200
  56. package/esm/models/getconfigurationproductsop.js +290 -290
  57. package/esm/models/getdeploymentop.d.ts +0 -37
  58. package/esm/models/getdeploymentop.d.ts.map +1 -1
  59. package/esm/models/getdeploymentop.js +0 -22
  60. package/esm/models/getdeploymentop.js.map +1 -1
  61. package/esm/models/getmemberop.d.ts +4 -0
  62. package/esm/models/getmemberop.d.ts.map +1 -1
  63. package/esm/models/getmemberop.js +4 -0
  64. package/esm/models/getmemberop.js.map +1 -1
  65. package/esm/models/invalidatebysrcimagesop.d.ts +42 -0
  66. package/esm/models/invalidatebysrcimagesop.d.ts.map +1 -0
  67. package/esm/models/invalidatebysrcimagesop.js +51 -0
  68. package/esm/models/invalidatebysrcimagesop.js.map +1 -0
  69. package/esm/sdk/edgecache.d.ts +16 -0
  70. package/esm/sdk/edgecache.d.ts.map +1 -1
  71. package/esm/sdk/edgecache.js +20 -0
  72. package/esm/sdk/edgecache.js.map +1 -1
  73. package/esm/types/enums.d.ts +1 -8
  74. package/esm/types/enums.d.ts.map +1 -1
  75. package/esm/types/enums.js +1 -18
  76. package/esm/types/enums.js.map +1 -1
  77. package/esm/types/unrecognized.d.ts +10 -0
  78. package/esm/types/unrecognized.d.ts.map +1 -0
  79. package/esm/types/unrecognized.js +23 -0
  80. package/esm/types/unrecognized.js.map +1 -0
  81. package/examples/package-lock.json +1 -1
  82. package/jsr.json +1 -1
  83. package/package.json +1 -1
  84. package/src/__tests__/accessgroups.test.ts +1 -3
  85. package/src/__tests__/checks.test.ts +1 -1
  86. package/src/__tests__/domains.test.ts +4 -10
  87. package/src/__tests__/edgeconfig.test.ts +6 -6
  88. package/src/__tests__/integrations.test.ts +1 -1
  89. package/src/__tests__/logdrains.test.ts +1 -3
  90. package/src/__tests__/rollingrelease.test.ts +2 -6
  91. package/src/__tests__/security.test.ts +4 -4
  92. package/src/funcs/edgeCacheDangerouslyDeleteBySrcImages.ts +171 -0
  93. package/src/funcs/edgeCacheInvalidateBySrcImages.ts +171 -0
  94. package/src/lib/config.ts +3 -3
  95. package/src/mcp-server/mcp-server.ts +1 -1
  96. package/src/mcp-server/server.ts +5 -1
  97. package/src/mcp-server/tools/edgeCacheDangerouslyDeleteBySrcImages.ts +37 -0
  98. package/src/mcp-server/tools/edgeCacheInvalidateBySrcImages.ts +36 -0
  99. package/src/models/canceldeploymentop.ts +0 -76
  100. package/src/models/createdeploymentop.ts +0 -87
  101. package/src/models/createintegrationstoredirectop.ts +471 -471
  102. package/src/models/dangerouslydeletebysrcimagesop.ts +141 -0
  103. package/src/models/getconfigurationproductsop.ts +627 -627
  104. package/src/models/getdeploymentop.ts +0 -88
  105. package/src/models/getmemberop.ts +8 -0
  106. package/src/models/invalidatebysrcimagesop.ts +127 -0
  107. package/src/sdk/edgecache.ts +38 -0
  108. package/src/types/enums.ts +1 -21
  109. package/src/types/unrecognized.ts +27 -0
  110. package/vercel-spec.json +274 -169
@@ -1659,21 +1659,6 @@ export type GetDeploymentFlags1 = {
1659
1659
  };
1660
1660
  };
1661
1661
  export type ResponseBodyFlags = GetDeploymentFlags1 | Array<GetDeploymentFlags2>;
1662
- /**
1663
- * A map of the other applications that are part of this group. Only defined on the default application. The field is set after deployments have been created, so can be undefined, but should be there for a successful deployment. Note: this field will be removed when MFE alias routing is fully rolled out.
1664
- */
1665
- export type GetDeploymentMicrofrontendsApplications = {
1666
- isDefaultApp?: boolean | undefined;
1667
- /**
1668
- * This is the production alias, it will always show the most up to date of each application.
1669
- */
1670
- productionHost: string;
1671
- /**
1672
- * Use the fixed deploymentAlias and deploymentHost so that the microfrontend preview stays in sync with the deployment. These are only present for mono-repos when a single commit creates multiple deployments. If they are not present, productionHost will be used.
1673
- */
1674
- deploymentAlias?: string | undefined;
1675
- deploymentHost?: string | undefined;
1676
- };
1677
1662
  /**
1678
1663
  * The result of the microfrontends config upload during deployment creation / build. Only set for default app deployments. The config upload is attempted during deployment create, and then again during the build. If the config is not in the root directory, or the deployment is prebuilt, the config cannot be uploaded during deployment create. The upload during deployment build finds the config even if it's not in the root directory, as it has access to all files. Uploading the config during create is ideal, as then all child deployments are guaranteed to have access to the default app deployment config even if the default app has not yet started building. If the config is not uploaded, the child app will show as building until the config has been uploaded during the default app build. - `success` - The config was uploaded successfully, either when the deployment was created or during the build. - `waiting_on_build` - The config could not be uploaded during deployment create, will be attempted again during the build. - `no_config` - No config was found. Only set once the build has not found the config in any of the deployment's files. - `undefined` - Legacy deployments, or there was an error uploading the config during deployment create.
1679
1664
  */
@@ -1688,12 +1673,6 @@ export declare const GetDeploymentMicrofrontendsMfeConfigUploadState: {
1688
1673
  export type GetDeploymentMicrofrontendsMfeConfigUploadState = ClosedEnum<typeof GetDeploymentMicrofrontendsMfeConfigUploadState>;
1689
1674
  export type GetDeploymentMicrofrontends2 = {
1690
1675
  isDefaultApp: boolean;
1691
- /**
1692
- * A map of the other applications that are part of this group. Only defined on the default application. The field is set after deployments have been created, so can be undefined, but should be there for a successful deployment. Note: this field will be removed when MFE alias routing is fully rolled out.
1693
- */
1694
- applications?: {
1695
- [k: string]: GetDeploymentMicrofrontendsApplications;
1696
- } | undefined;
1697
1676
  /**
1698
1677
  * The result of the microfrontends config upload during deployment creation / build. Only set for default app deployments. The config upload is attempted during deployment create, and then again during the build. If the config is not in the root directory, or the deployment is prebuilt, the config cannot be uploaded during deployment create. The upload during deployment build finds the config even if it's not in the root directory, as it has access to all files. Uploading the config during create is ideal, as then all child deployments are guaranteed to have access to the default app deployment config even if the default app has not yet started building. If the config is not uploaded, the child app will show as building until the config has been uploaded during the default app build. - `success` - The config was uploaded successfully, either when the deployment was created or during the build. - `waiting_on_build` - The config could not be uploaded during deployment create, will be attempted again during the build. - `no_config` - No config was found. Only set once the build has not found the config in any of the deployment's files. - `undefined` - Legacy deployments, or there was an error uploading the config during deployment create.
1699
1678
  */
@@ -3894,19 +3873,6 @@ export declare const ResponseBodyFlags$outboundSchema: z.ZodType<ResponseBodyFla
3894
3873
  export declare function responseBodyFlagsToJSON(responseBodyFlags: ResponseBodyFlags): string;
3895
3874
  export declare function responseBodyFlagsFromJSON(jsonString: string): SafeParseResult<ResponseBodyFlags, SDKValidationError>;
3896
3875
  /** @internal */
3897
- export declare const GetDeploymentMicrofrontendsApplications$inboundSchema: z.ZodType<GetDeploymentMicrofrontendsApplications, z.ZodTypeDef, unknown>;
3898
- /** @internal */
3899
- export type GetDeploymentMicrofrontendsApplications$Outbound = {
3900
- isDefaultApp?: boolean | undefined;
3901
- productionHost: string;
3902
- deploymentAlias?: string | undefined;
3903
- deploymentHost?: string | undefined;
3904
- };
3905
- /** @internal */
3906
- export declare const GetDeploymentMicrofrontendsApplications$outboundSchema: z.ZodType<GetDeploymentMicrofrontendsApplications$Outbound, z.ZodTypeDef, GetDeploymentMicrofrontendsApplications>;
3907
- export declare function getDeploymentMicrofrontendsApplicationsToJSON(getDeploymentMicrofrontendsApplications: GetDeploymentMicrofrontendsApplications): string;
3908
- export declare function getDeploymentMicrofrontendsApplicationsFromJSON(jsonString: string): SafeParseResult<GetDeploymentMicrofrontendsApplications, SDKValidationError>;
3909
- /** @internal */
3910
3876
  export declare const GetDeploymentMicrofrontendsMfeConfigUploadState$inboundSchema: z.ZodNativeEnum<typeof GetDeploymentMicrofrontendsMfeConfigUploadState>;
3911
3877
  /** @internal */
3912
3878
  export declare const GetDeploymentMicrofrontendsMfeConfigUploadState$outboundSchema: z.ZodNativeEnum<typeof GetDeploymentMicrofrontendsMfeConfigUploadState>;
@@ -3915,9 +3881,6 @@ export declare const GetDeploymentMicrofrontends2$inboundSchema: z.ZodType<GetDe
3915
3881
  /** @internal */
3916
3882
  export type GetDeploymentMicrofrontends2$Outbound = {
3917
3883
  isDefaultApp: boolean;
3918
- applications?: {
3919
- [k: string]: GetDeploymentMicrofrontendsApplications$Outbound;
3920
- } | undefined;
3921
3884
  mfeConfigUploadState?: string | undefined;
3922
3885
  defaultAppProjectName: string;
3923
3886
  defaultRoute?: string | undefined;