@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
@@ -1730,22 +1730,6 @@ export type Flags1 = {
1730
1730
 
1731
1731
  export type Flags = Flags1 | Array<Flags2>;
1732
1732
 
1733
- /**
1734
- * 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.
1735
- */
1736
- export type CreateDeploymentMicrofrontendsApplications = {
1737
- isDefaultApp?: boolean | undefined;
1738
- /**
1739
- * This is the production alias, it will always show the most up to date of each application.
1740
- */
1741
- productionHost: string;
1742
- /**
1743
- * 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.
1744
- */
1745
- deploymentAlias?: string | undefined;
1746
- deploymentHost?: string | undefined;
1747
- };
1748
-
1749
1733
  /**
1750
1734
  * 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.
1751
1735
  */
@@ -1761,12 +1745,6 @@ export type MfeConfigUploadState = ClosedEnum<typeof MfeConfigUploadState>;
1761
1745
 
1762
1746
  export type CreateDeploymentMicrofrontends2 = {
1763
1747
  isDefaultApp: boolean;
1764
- /**
1765
- * 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.
1766
- */
1767
- applications?:
1768
- | { [k: string]: CreateDeploymentMicrofrontendsApplications }
1769
- | undefined;
1770
1748
  /**
1771
1749
  * 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.
1772
1750
  */
@@ -7661,62 +7639,6 @@ export function flagsFromJSON(
7661
7639
  );
7662
7640
  }
7663
7641
 
7664
- /** @internal */
7665
- export const CreateDeploymentMicrofrontendsApplications$inboundSchema:
7666
- z.ZodType<CreateDeploymentMicrofrontendsApplications, z.ZodTypeDef, unknown> =
7667
- z.object({
7668
- isDefaultApp: z.boolean().optional(),
7669
- productionHost: z.string(),
7670
- deploymentAlias: z.string().optional(),
7671
- deploymentHost: z.string().optional(),
7672
- });
7673
- /** @internal */
7674
- export type CreateDeploymentMicrofrontendsApplications$Outbound = {
7675
- isDefaultApp?: boolean | undefined;
7676
- productionHost: string;
7677
- deploymentAlias?: string | undefined;
7678
- deploymentHost?: string | undefined;
7679
- };
7680
-
7681
- /** @internal */
7682
- export const CreateDeploymentMicrofrontendsApplications$outboundSchema:
7683
- z.ZodType<
7684
- CreateDeploymentMicrofrontendsApplications$Outbound,
7685
- z.ZodTypeDef,
7686
- CreateDeploymentMicrofrontendsApplications
7687
- > = z.object({
7688
- isDefaultApp: z.boolean().optional(),
7689
- productionHost: z.string(),
7690
- deploymentAlias: z.string().optional(),
7691
- deploymentHost: z.string().optional(),
7692
- });
7693
-
7694
- export function createDeploymentMicrofrontendsApplicationsToJSON(
7695
- createDeploymentMicrofrontendsApplications:
7696
- CreateDeploymentMicrofrontendsApplications,
7697
- ): string {
7698
- return JSON.stringify(
7699
- CreateDeploymentMicrofrontendsApplications$outboundSchema.parse(
7700
- createDeploymentMicrofrontendsApplications,
7701
- ),
7702
- );
7703
- }
7704
- export function createDeploymentMicrofrontendsApplicationsFromJSON(
7705
- jsonString: string,
7706
- ): SafeParseResult<
7707
- CreateDeploymentMicrofrontendsApplications,
7708
- SDKValidationError
7709
- > {
7710
- return safeParse(
7711
- jsonString,
7712
- (x) =>
7713
- CreateDeploymentMicrofrontendsApplications$inboundSchema.parse(
7714
- JSON.parse(x),
7715
- ),
7716
- `Failed to parse 'CreateDeploymentMicrofrontendsApplications' from JSON`,
7717
- );
7718
- }
7719
-
7720
7642
  /** @internal */
7721
7643
  export const MfeConfigUploadState$inboundSchema: z.ZodNativeEnum<
7722
7644
  typeof MfeConfigUploadState
@@ -7733,9 +7655,6 @@ export const CreateDeploymentMicrofrontends2$inboundSchema: z.ZodType<
7733
7655
  unknown
7734
7656
  > = z.object({
7735
7657
  isDefaultApp: z.boolean(),
7736
- applications: z.record(
7737
- z.lazy(() => CreateDeploymentMicrofrontendsApplications$inboundSchema),
7738
- ).optional(),
7739
7658
  mfeConfigUploadState: MfeConfigUploadState$inboundSchema.optional(),
7740
7659
  defaultAppProjectName: z.string(),
7741
7660
  defaultRoute: z.string().optional(),
@@ -7744,9 +7663,6 @@ export const CreateDeploymentMicrofrontends2$inboundSchema: z.ZodType<
7744
7663
  /** @internal */
7745
7664
  export type CreateDeploymentMicrofrontends2$Outbound = {
7746
7665
  isDefaultApp: boolean;
7747
- applications?: {
7748
- [k: string]: CreateDeploymentMicrofrontendsApplications$Outbound;
7749
- } | undefined;
7750
7666
  mfeConfigUploadState?: string | undefined;
7751
7667
  defaultAppProjectName: string;
7752
7668
  defaultRoute?: string | undefined;
@@ -7760,9 +7676,6 @@ export const CreateDeploymentMicrofrontends2$outboundSchema: z.ZodType<
7760
7676
  CreateDeploymentMicrofrontends2
7761
7677
  > = z.object({
7762
7678
  isDefaultApp: z.boolean(),
7763
- applications: z.record(
7764
- z.lazy(() => CreateDeploymentMicrofrontendsApplications$outboundSchema),
7765
- ).optional(),
7766
7679
  mfeConfigUploadState: MfeConfigUploadState$outboundSchema.optional(),
7767
7680
  defaultAppProjectName: z.string(),
7768
7681
  defaultRoute: z.string().optional(),