vercel-api-js 0.1.0 → 0.1.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # vercel-api-js
2
2
 
3
+ ## 0.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 0e017b1: Schema updates for edge config endpoints
8
+
3
9
  ## 0.1.0
4
10
 
5
11
  ### Minor Changes
package/README.md CHANGED
@@ -4,5 +4,6 @@ Unofficial Vercel API JavaScript SDK built from the OpenAPI specification and wi
4
4
 
5
5
  ```ts
6
6
  const vercel = new VercelApi({ token: "token" });
7
- const { projects } = await vercel.api.projects.getProjects({});
7
+ await vercel.api.projects.createProject({ body: { name: "Awesome project", buildCommand: "pnpm build" } });
8
+ const { projects } = await vercel.api.projects.getProjects();
8
9
  ```
package/dist/index.d.ts CHANGED
@@ -11494,15 +11494,15 @@ type GetEdgeConfigsQueryParams = {
11494
11494
  };
11495
11495
  type GetEdgeConfigsError = ErrorWrapper<undefined>;
11496
11496
  type GetEdgeConfigsResponse = {
11497
+ createdAt?: number | null;
11498
+ creator?: string;
11499
+ domain?: string;
11497
11500
  id?: string;
11498
- createdAt?: number;
11499
- ownerId?: string;
11500
- /**
11501
- * Name for the Edge Config Names are not unique. Must start with an alphabetic character and can contain only alphanumeric characters and underscores).
11502
- */
11503
- slug?: string;
11504
- updatedAt?: number;
11505
- digest?: string;
11501
+ name?: string;
11502
+ recordType?: "A" | "AAAA" | "ALIAS" | "CAA" | "CNAME" | "MX" | "SRV" | "TXT" | "NS";
11503
+ ttl?: number;
11504
+ type?: "record" | "record-sys";
11505
+ value?: string;
11506
11506
  sizeInBytes: number;
11507
11507
  itemCount: number;
11508
11508
  };
@@ -11521,15 +11521,15 @@ type CreateEdgeConfigQueryParams = {
11521
11521
  };
11522
11522
  type CreateEdgeConfigError = ErrorWrapper<undefined>;
11523
11523
  type CreateEdgeConfigResponse = {
11524
+ createdAt?: number | null;
11525
+ creator?: string;
11526
+ domain?: string;
11524
11527
  id?: string;
11525
- createdAt?: number;
11526
- ownerId?: string;
11527
- /**
11528
- * Name for the Edge Config Names are not unique. Must start with an alphabetic character and can contain only alphanumeric characters and underscores).
11529
- */
11530
- slug?: string;
11531
- updatedAt?: number;
11532
- digest?: string;
11528
+ name?: string;
11529
+ recordType?: "A" | "AAAA" | "ALIAS" | "CAA" | "CNAME" | "MX" | "SRV" | "TXT" | "NS";
11530
+ ttl?: number;
11531
+ type?: "record" | "record-sys";
11532
+ value?: string;
11533
11533
  sizeInBytes: number;
11534
11534
  itemCount: number;
11535
11535
  };
@@ -11562,15 +11562,15 @@ type GetEdgeConfigQueryParams = {
11562
11562
  };
11563
11563
  type GetEdgeConfigError = ErrorWrapper<undefined>;
11564
11564
  type GetEdgeConfigResponse = {
11565
+ createdAt?: number | null;
11566
+ creator?: string;
11567
+ domain?: string;
11565
11568
  id?: string;
11566
- createdAt?: number;
11567
- ownerId?: string;
11568
- /**
11569
- * Name for the Edge Config Names are not unique. Must start with an alphabetic character and can contain only alphanumeric characters and underscores).
11570
- */
11571
- slug?: string;
11572
- updatedAt?: number;
11573
- digest?: string;
11569
+ name?: string;
11570
+ recordType?: "A" | "AAAA" | "ALIAS" | "CAA" | "CNAME" | "MX" | "SRV" | "TXT" | "NS";
11571
+ ttl?: number;
11572
+ type?: "record" | "record-sys";
11573
+ value?: string;
11574
11574
  sizeInBytes: number;
11575
11575
  itemCount: number;
11576
11576
  };
@@ -11593,15 +11593,15 @@ type UpdateEdgeConfigQueryParams = {
11593
11593
  };
11594
11594
  type UpdateEdgeConfigError = ErrorWrapper<undefined>;
11595
11595
  type UpdateEdgeConfigResponse = {
11596
+ createdAt?: number | null;
11597
+ creator?: string;
11598
+ domain?: string;
11596
11599
  id?: string;
11597
- createdAt?: number;
11598
- ownerId?: string;
11599
- /**
11600
- * Name for the Edge Config Names are not unique. Must start with an alphabetic character and can contain only alphanumeric characters and underscores).
11601
- */
11602
- slug?: string;
11603
- updatedAt?: number;
11604
- digest?: string;
11600
+ name?: string;
11601
+ recordType?: "A" | "AAAA" | "ALIAS" | "CAA" | "CNAME" | "MX" | "SRV" | "TXT" | "NS";
11602
+ ttl?: number;
11603
+ type?: "record" | "record-sys";
11604
+ value?: string;
11605
11605
  sizeInBytes: number;
11606
11606
  itemCount: number;
11607
11607
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vercel-api-js",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Vercel API client for Node.js",
5
5
  "author": "SferaDev",
6
6
  "license": "ISC",