@vercel/sdk 1.7.5 → 1.7.7
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/bin/mcp-server.js +2231 -2062
- package/bin/mcp-server.js.map +34 -25
- package/esm/__tests__/projects.test.js +15 -13
- package/esm/__tests__/projects.test.js.map +1 -1
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/server.js +1 -1
- package/esm/models/authuser.d.ts +0 -93
- package/esm/models/authuser.d.ts.map +1 -1
- package/esm/models/authuser.js +0 -64
- package/esm/models/authuser.js.map +1 -1
- package/esm/models/authuserlimited.d.ts +0 -34
- package/esm/models/authuserlimited.d.ts.map +1 -1
- package/esm/models/authuserlimited.js +0 -23
- package/esm/models/authuserlimited.js.map +1 -1
- package/esm/models/createdeploymentop.d.ts +43 -43
- package/esm/models/createdeploymentop.d.ts.map +1 -1
- package/esm/models/createdeploymentop.js +27 -27
- package/esm/models/createdeploymentop.js.map +1 -1
- package/esm/models/createprojectop.d.ts +18 -9
- package/esm/models/createprojectop.d.ts.map +1 -1
- package/esm/models/createprojectop.js +9 -3
- package/esm/models/createprojectop.js.map +1 -1
- package/esm/models/createwebhookop.d.ts +6 -0
- package/esm/models/createwebhookop.d.ts.map +1 -1
- package/esm/models/createwebhookop.js +2 -0
- package/esm/models/createwebhookop.js.map +1 -1
- package/esm/models/getaliasop.d.ts +108 -0
- package/esm/models/getaliasop.d.ts.map +1 -1
- package/esm/models/getaliasop.js +84 -0
- package/esm/models/getaliasop.js.map +1 -1
- package/esm/models/getprojectsop.d.ts +9 -0
- package/esm/models/getprojectsop.d.ts.map +1 -1
- package/esm/models/getprojectsop.js +6 -0
- package/esm/models/getprojectsop.js.map +1 -1
- package/esm/models/getwebhookop.d.ts +3 -0
- package/esm/models/getwebhookop.d.ts.map +1 -1
- package/esm/models/getwebhookop.js +1 -0
- package/esm/models/getwebhookop.js.map +1 -1
- package/esm/models/getwebhooksop.d.ts +6 -0
- package/esm/models/getwebhooksop.d.ts.map +1 -1
- package/esm/models/getwebhooksop.js +2 -0
- package/esm/models/getwebhooksop.js.map +1 -1
- package/esm/models/importresourceop.d.ts +44 -7
- package/esm/models/importresourceop.d.ts.map +1 -1
- package/esm/models/importresourceop.js +31 -2
- package/esm/models/importresourceop.js.map +1 -1
- package/esm/models/listaliasesop.d.ts +108 -0
- package/esm/models/listaliasesop.d.ts.map +1 -1
- package/esm/models/listaliasesop.js +85 -0
- package/esm/models/listaliasesop.js.map +1 -1
- package/esm/models/listauthtokensop.d.ts +0 -5
- package/esm/models/listauthtokensop.d.ts.map +1 -1
- package/esm/models/listauthtokensop.js +0 -2
- package/esm/models/listauthtokensop.js.map +1 -1
- package/esm/models/teamlimited.d.ts +29 -2
- package/esm/models/teamlimited.d.ts.map +1 -1
- package/esm/models/teamlimited.js +31 -2
- package/esm/models/teamlimited.js.map +1 -1
- package/esm/models/updateprojectdatacacheop.d.ts +9 -0
- package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
- package/esm/models/updateprojectdatacacheop.js +6 -0
- package/esm/models/updateprojectdatacacheop.js.map +1 -1
- package/esm/models/updateprojectop.d.ts +9 -0
- package/esm/models/updateprojectop.d.ts.map +1 -1
- package/esm/models/updateprojectop.js +6 -0
- package/esm/models/updateprojectop.js.map +1 -1
- package/esm/models/updateresourcesecretsbyidop.d.ts +45 -8
- package/esm/models/updateresourcesecretsbyidop.d.ts.map +1 -1
- package/esm/models/updateresourcesecretsbyidop.js +31 -2
- package/esm/models/updateresourcesecretsbyidop.js.map +1 -1
- package/esm/models/updateresourcesecretsop.d.ts +44 -7
- package/esm/models/updateresourcesecretsop.d.ts.map +1 -1
- package/esm/models/updateresourcesecretsop.js +33 -2
- package/esm/models/updateresourcesecretsop.js.map +1 -1
- package/esm/models/userevent.d.ts +1119 -1091
- package/esm/models/userevent.d.ts.map +1 -1
- package/esm/models/userevent.js +1412 -1383
- package/esm/models/userevent.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +2 -2
- package/src/__tests__/projects.test.ts +15 -13
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/authuser.ts +0 -145
- package/src/models/authuserlimited.ts +0 -40
- package/src/models/createdeploymentop.ts +75 -53
- package/src/models/createprojectop.ts +18 -3
- package/src/models/createwebhookop.ts +2 -0
- package/src/models/getaliasop.ts +204 -0
- package/src/models/getprojectsop.ts +15 -0
- package/src/models/getwebhookop.ts +1 -0
- package/src/models/getwebhooksop.ts +2 -0
- package/src/models/importresourceop.ts +93 -5
- package/src/models/listaliasesop.ts +213 -0
- package/src/models/listauthtokensop.ts +0 -7
- package/src/models/teamlimited.ts +56 -4
- package/src/models/updateprojectdatacacheop.ts +15 -0
- package/src/models/updateprojectop.ts +15 -0
- package/src/models/updateresourcesecretsbyidop.ts +105 -6
- package/src/models/updateresourcesecretsop.ts +85 -5
- package/src/models/userevent.ts +2545 -2477
- package/vercel-spec.json +276 -98
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/sdk",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.7",
|
|
4
4
|
"author": "Speakeasy",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"typescript": "^5.4.5",
|
|
60
60
|
"typescript-eslint": "^8.22.0",
|
|
61
61
|
"vitest": "^3.0.2",
|
|
62
|
-
"zod": "^3.
|
|
62
|
+
"zod": "^3.25.17"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
65
|
|
|
@@ -253,19 +253,21 @@ test("Projects Create Project Env", async () => {
|
|
|
253
253
|
upsert: "true",
|
|
254
254
|
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
255
255
|
slug: "my-team-url-slug",
|
|
256
|
-
requestBody:
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
256
|
+
requestBody: [
|
|
257
|
+
{
|
|
258
|
+
key: "API_URL",
|
|
259
|
+
value: "https://api.vercel.com",
|
|
260
|
+
type: "plain",
|
|
261
|
+
target: [
|
|
262
|
+
"preview",
|
|
263
|
+
],
|
|
264
|
+
gitBranch: "feature-1",
|
|
265
|
+
comment: "database connection string for production",
|
|
266
|
+
customEnvironmentIds: [
|
|
267
|
+
"env_1234567890",
|
|
268
|
+
],
|
|
269
|
+
},
|
|
270
|
+
],
|
|
269
271
|
});
|
|
270
272
|
expect(result).toBeDefined();
|
|
271
273
|
});
|
package/src/lib/config.ts
CHANGED
|
@@ -57,7 +57,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
57
57
|
export const SDK_METADATA = {
|
|
58
58
|
language: "typescript",
|
|
59
59
|
openapiDocVersion: "0.0.1",
|
|
60
|
-
sdkVersion: "1.7.
|
|
61
|
-
genVersion: "2.
|
|
62
|
-
userAgent: "speakeasy-sdk/typescript 1.7.
|
|
60
|
+
sdkVersion: "1.7.7",
|
|
61
|
+
genVersion: "2.610.0",
|
|
62
|
+
userAgent: "speakeasy-sdk/typescript 1.7.7 2.610.0 0.0.1 @vercel/sdk",
|
|
63
63
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
package/src/models/authuser.ts
CHANGED
|
@@ -325,48 +325,6 @@ export type FeatureBlocks = {
|
|
|
325
325
|
webAnalytics?: WebAnalytics | undefined;
|
|
326
326
|
};
|
|
327
327
|
|
|
328
|
-
export type NorthstarMigration = {
|
|
329
|
-
/**
|
|
330
|
-
* The ID of the team we created for this user.
|
|
331
|
-
*/
|
|
332
|
-
teamId: string;
|
|
333
|
-
/**
|
|
334
|
-
* The number of projects migrated for this user.
|
|
335
|
-
*/
|
|
336
|
-
projects: number;
|
|
337
|
-
/**
|
|
338
|
-
* The number of stores migrated for this user.
|
|
339
|
-
*/
|
|
340
|
-
stores: number;
|
|
341
|
-
/**
|
|
342
|
-
* The number of integration configurations migrated for this user.
|
|
343
|
-
*/
|
|
344
|
-
integrationConfigurations: number;
|
|
345
|
-
/**
|
|
346
|
-
* The number of integration clients migrated for this user.
|
|
347
|
-
*/
|
|
348
|
-
integrationClients: number;
|
|
349
|
-
/**
|
|
350
|
-
* The migration start time timestamp for this user.
|
|
351
|
-
*/
|
|
352
|
-
startTime: number;
|
|
353
|
-
/**
|
|
354
|
-
* The migration end time timestamp for this user.
|
|
355
|
-
*/
|
|
356
|
-
endTime: number;
|
|
357
|
-
};
|
|
358
|
-
|
|
359
|
-
/**
|
|
360
|
-
* The user's version. Will always be `northstar`.
|
|
361
|
-
*/
|
|
362
|
-
export const Version = {
|
|
363
|
-
Northstar: "northstar",
|
|
364
|
-
} as const;
|
|
365
|
-
/**
|
|
366
|
-
* The user's version. Will always be `northstar`.
|
|
367
|
-
*/
|
|
368
|
-
export type Version = ClosedEnum<typeof Version>;
|
|
369
|
-
|
|
370
328
|
/**
|
|
371
329
|
* Data for the currently authenticated User.
|
|
372
330
|
*/
|
|
@@ -425,7 +383,6 @@ export type AuthUser = {
|
|
|
425
383
|
* Feature blocks for the user
|
|
426
384
|
*/
|
|
427
385
|
featureBlocks?: FeatureBlocks | undefined;
|
|
428
|
-
northstarMigration?: NorthstarMigration | undefined;
|
|
429
386
|
/**
|
|
430
387
|
* The User's unique identifier.
|
|
431
388
|
*/
|
|
@@ -450,10 +407,6 @@ export type AuthUser = {
|
|
|
450
407
|
* The user's default team.
|
|
451
408
|
*/
|
|
452
409
|
defaultTeamId: string | null;
|
|
453
|
-
/**
|
|
454
|
-
* The user's version. Will always be `northstar`.
|
|
455
|
-
*/
|
|
456
|
-
version: Version;
|
|
457
410
|
};
|
|
458
411
|
|
|
459
412
|
/** @internal */
|
|
@@ -1565,97 +1518,6 @@ export function featureBlocksFromJSON(
|
|
|
1565
1518
|
);
|
|
1566
1519
|
}
|
|
1567
1520
|
|
|
1568
|
-
/** @internal */
|
|
1569
|
-
export const NorthstarMigration$inboundSchema: z.ZodType<
|
|
1570
|
-
NorthstarMigration,
|
|
1571
|
-
z.ZodTypeDef,
|
|
1572
|
-
unknown
|
|
1573
|
-
> = z.object({
|
|
1574
|
-
teamId: z.string(),
|
|
1575
|
-
projects: z.number(),
|
|
1576
|
-
stores: z.number(),
|
|
1577
|
-
integrationConfigurations: z.number(),
|
|
1578
|
-
integrationClients: z.number(),
|
|
1579
|
-
startTime: z.number(),
|
|
1580
|
-
endTime: z.number(),
|
|
1581
|
-
});
|
|
1582
|
-
|
|
1583
|
-
/** @internal */
|
|
1584
|
-
export type NorthstarMigration$Outbound = {
|
|
1585
|
-
teamId: string;
|
|
1586
|
-
projects: number;
|
|
1587
|
-
stores: number;
|
|
1588
|
-
integrationConfigurations: number;
|
|
1589
|
-
integrationClients: number;
|
|
1590
|
-
startTime: number;
|
|
1591
|
-
endTime: number;
|
|
1592
|
-
};
|
|
1593
|
-
|
|
1594
|
-
/** @internal */
|
|
1595
|
-
export const NorthstarMigration$outboundSchema: z.ZodType<
|
|
1596
|
-
NorthstarMigration$Outbound,
|
|
1597
|
-
z.ZodTypeDef,
|
|
1598
|
-
NorthstarMigration
|
|
1599
|
-
> = z.object({
|
|
1600
|
-
teamId: z.string(),
|
|
1601
|
-
projects: z.number(),
|
|
1602
|
-
stores: z.number(),
|
|
1603
|
-
integrationConfigurations: z.number(),
|
|
1604
|
-
integrationClients: z.number(),
|
|
1605
|
-
startTime: z.number(),
|
|
1606
|
-
endTime: z.number(),
|
|
1607
|
-
});
|
|
1608
|
-
|
|
1609
|
-
/**
|
|
1610
|
-
* @internal
|
|
1611
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1612
|
-
*/
|
|
1613
|
-
export namespace NorthstarMigration$ {
|
|
1614
|
-
/** @deprecated use `NorthstarMigration$inboundSchema` instead. */
|
|
1615
|
-
export const inboundSchema = NorthstarMigration$inboundSchema;
|
|
1616
|
-
/** @deprecated use `NorthstarMigration$outboundSchema` instead. */
|
|
1617
|
-
export const outboundSchema = NorthstarMigration$outboundSchema;
|
|
1618
|
-
/** @deprecated use `NorthstarMigration$Outbound` instead. */
|
|
1619
|
-
export type Outbound = NorthstarMigration$Outbound;
|
|
1620
|
-
}
|
|
1621
|
-
|
|
1622
|
-
export function northstarMigrationToJSON(
|
|
1623
|
-
northstarMigration: NorthstarMigration,
|
|
1624
|
-
): string {
|
|
1625
|
-
return JSON.stringify(
|
|
1626
|
-
NorthstarMigration$outboundSchema.parse(northstarMigration),
|
|
1627
|
-
);
|
|
1628
|
-
}
|
|
1629
|
-
|
|
1630
|
-
export function northstarMigrationFromJSON(
|
|
1631
|
-
jsonString: string,
|
|
1632
|
-
): SafeParseResult<NorthstarMigration, SDKValidationError> {
|
|
1633
|
-
return safeParse(
|
|
1634
|
-
jsonString,
|
|
1635
|
-
(x) => NorthstarMigration$inboundSchema.parse(JSON.parse(x)),
|
|
1636
|
-
`Failed to parse 'NorthstarMigration' from JSON`,
|
|
1637
|
-
);
|
|
1638
|
-
}
|
|
1639
|
-
|
|
1640
|
-
/** @internal */
|
|
1641
|
-
export const Version$inboundSchema: z.ZodNativeEnum<typeof Version> = z
|
|
1642
|
-
.nativeEnum(Version);
|
|
1643
|
-
|
|
1644
|
-
/** @internal */
|
|
1645
|
-
export const Version$outboundSchema: z.ZodNativeEnum<typeof Version> =
|
|
1646
|
-
Version$inboundSchema;
|
|
1647
|
-
|
|
1648
|
-
/**
|
|
1649
|
-
* @internal
|
|
1650
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1651
|
-
*/
|
|
1652
|
-
export namespace Version$ {
|
|
1653
|
-
/** @deprecated use `Version$inboundSchema` instead. */
|
|
1654
|
-
export const inboundSchema = Version$inboundSchema;
|
|
1655
|
-
/** @deprecated use `Version$outboundSchema` instead. */
|
|
1656
|
-
export const outboundSchema = Version$outboundSchema;
|
|
1657
|
-
}
|
|
1658
|
-
|
|
1659
1521
|
/** @internal */
|
|
1660
1522
|
export const AuthUser$inboundSchema: z.ZodType<
|
|
1661
1523
|
AuthUser,
|
|
@@ -1688,14 +1550,12 @@ export const AuthUser$inboundSchema: z.ZodType<
|
|
|
1688
1550
|
remoteCaching: z.lazy(() => RemoteCaching$inboundSchema).optional(),
|
|
1689
1551
|
dataCache: z.lazy(() => DataCache$inboundSchema).optional(),
|
|
1690
1552
|
featureBlocks: z.lazy(() => FeatureBlocks$inboundSchema).optional(),
|
|
1691
|
-
northstarMigration: z.lazy(() => NorthstarMigration$inboundSchema).optional(),
|
|
1692
1553
|
id: z.string(),
|
|
1693
1554
|
email: z.string(),
|
|
1694
1555
|
name: z.nullable(z.string()),
|
|
1695
1556
|
username: z.string(),
|
|
1696
1557
|
avatar: z.nullable(z.string()),
|
|
1697
1558
|
defaultTeamId: z.nullable(z.string()),
|
|
1698
|
-
version: Version$inboundSchema,
|
|
1699
1559
|
});
|
|
1700
1560
|
|
|
1701
1561
|
/** @internal */
|
|
@@ -1720,14 +1580,12 @@ export type AuthUser$Outbound = {
|
|
|
1720
1580
|
remoteCaching?: RemoteCaching$Outbound | undefined;
|
|
1721
1581
|
dataCache?: DataCache$Outbound | undefined;
|
|
1722
1582
|
featureBlocks?: FeatureBlocks$Outbound | undefined;
|
|
1723
|
-
northstarMigration?: NorthstarMigration$Outbound | undefined;
|
|
1724
1583
|
id: string;
|
|
1725
1584
|
email: string;
|
|
1726
1585
|
name: string | null;
|
|
1727
1586
|
username: string;
|
|
1728
1587
|
avatar: string | null;
|
|
1729
1588
|
defaultTeamId: string | null;
|
|
1730
|
-
version: string;
|
|
1731
1589
|
};
|
|
1732
1590
|
|
|
1733
1591
|
/** @internal */
|
|
@@ -1762,15 +1620,12 @@ export const AuthUser$outboundSchema: z.ZodType<
|
|
|
1762
1620
|
remoteCaching: z.lazy(() => RemoteCaching$outboundSchema).optional(),
|
|
1763
1621
|
dataCache: z.lazy(() => DataCache$outboundSchema).optional(),
|
|
1764
1622
|
featureBlocks: z.lazy(() => FeatureBlocks$outboundSchema).optional(),
|
|
1765
|
-
northstarMigration: z.lazy(() => NorthstarMigration$outboundSchema)
|
|
1766
|
-
.optional(),
|
|
1767
1623
|
id: z.string(),
|
|
1768
1624
|
email: z.string(),
|
|
1769
1625
|
name: z.nullable(z.string()),
|
|
1770
1626
|
username: z.string(),
|
|
1771
1627
|
avatar: z.nullable(z.string()),
|
|
1772
1628
|
defaultTeamId: z.nullable(z.string()),
|
|
1773
|
-
version: Version$outboundSchema,
|
|
1774
1629
|
});
|
|
1775
1630
|
|
|
1776
1631
|
/**
|
|
@@ -4,21 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { safeParse } from "../lib/schemas.js";
|
|
7
|
-
import { ClosedEnum } from "../types/enums.js";
|
|
8
7
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
9
8
|
import { SDKValidationError } from "./sdkvalidationerror.js";
|
|
10
9
|
|
|
11
|
-
/**
|
|
12
|
-
* The user's version. Will always be `northstar`.
|
|
13
|
-
*/
|
|
14
|
-
export const AuthUserLimitedVersion = {
|
|
15
|
-
Northstar: "northstar",
|
|
16
|
-
} as const;
|
|
17
|
-
/**
|
|
18
|
-
* The user's version. Will always be `northstar`.
|
|
19
|
-
*/
|
|
20
|
-
export type AuthUserLimitedVersion = ClosedEnum<typeof AuthUserLimitedVersion>;
|
|
21
|
-
|
|
22
10
|
/**
|
|
23
11
|
* A limited form of data for the currently authenticated User, due to the authentication token missing privileges to read the full User data.
|
|
24
12
|
*/
|
|
@@ -51,33 +39,8 @@ export type AuthUserLimited = {
|
|
|
51
39
|
* The user's default team.
|
|
52
40
|
*/
|
|
53
41
|
defaultTeamId: string | null;
|
|
54
|
-
/**
|
|
55
|
-
* The user's version. Will always be `northstar`.
|
|
56
|
-
*/
|
|
57
|
-
version: AuthUserLimitedVersion;
|
|
58
42
|
};
|
|
59
43
|
|
|
60
|
-
/** @internal */
|
|
61
|
-
export const AuthUserLimitedVersion$inboundSchema: z.ZodNativeEnum<
|
|
62
|
-
typeof AuthUserLimitedVersion
|
|
63
|
-
> = z.nativeEnum(AuthUserLimitedVersion);
|
|
64
|
-
|
|
65
|
-
/** @internal */
|
|
66
|
-
export const AuthUserLimitedVersion$outboundSchema: z.ZodNativeEnum<
|
|
67
|
-
typeof AuthUserLimitedVersion
|
|
68
|
-
> = AuthUserLimitedVersion$inboundSchema;
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* @internal
|
|
72
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
73
|
-
*/
|
|
74
|
-
export namespace AuthUserLimitedVersion$ {
|
|
75
|
-
/** @deprecated use `AuthUserLimitedVersion$inboundSchema` instead. */
|
|
76
|
-
export const inboundSchema = AuthUserLimitedVersion$inboundSchema;
|
|
77
|
-
/** @deprecated use `AuthUserLimitedVersion$outboundSchema` instead. */
|
|
78
|
-
export const outboundSchema = AuthUserLimitedVersion$outboundSchema;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
44
|
/** @internal */
|
|
82
45
|
export const AuthUserLimited$inboundSchema: z.ZodType<
|
|
83
46
|
AuthUserLimited,
|
|
@@ -91,7 +54,6 @@ export const AuthUserLimited$inboundSchema: z.ZodType<
|
|
|
91
54
|
username: z.string(),
|
|
92
55
|
avatar: z.nullable(z.string()),
|
|
93
56
|
defaultTeamId: z.nullable(z.string()),
|
|
94
|
-
version: AuthUserLimitedVersion$inboundSchema,
|
|
95
57
|
});
|
|
96
58
|
|
|
97
59
|
/** @internal */
|
|
@@ -103,7 +65,6 @@ export type AuthUserLimited$Outbound = {
|
|
|
103
65
|
username: string;
|
|
104
66
|
avatar: string | null;
|
|
105
67
|
defaultTeamId: string | null;
|
|
106
|
-
version: string;
|
|
107
68
|
};
|
|
108
69
|
|
|
109
70
|
/** @internal */
|
|
@@ -119,7 +80,6 @@ export const AuthUserLimited$outboundSchema: z.ZodType<
|
|
|
119
80
|
username: z.string(),
|
|
120
81
|
avatar: z.nullable(z.string()),
|
|
121
82
|
defaultTeamId: z.nullable(z.string()),
|
|
122
|
-
version: AuthUserLimitedVersion$outboundSchema,
|
|
123
83
|
});
|
|
124
84
|
|
|
125
85
|
/**
|
|
@@ -613,8 +613,8 @@ export type Creator = {
|
|
|
613
613
|
};
|
|
614
614
|
|
|
615
615
|
export const CreateDeploymentReadyState = {
|
|
616
|
-
Building: "BUILDING",
|
|
617
616
|
Error: "ERROR",
|
|
617
|
+
Building: "BUILDING",
|
|
618
618
|
Initializing: "INITIALIZING",
|
|
619
619
|
Ready: "READY",
|
|
620
620
|
} as const;
|
|
@@ -631,10 +631,10 @@ export type CreateDeploymentOutput = {
|
|
|
631
631
|
* A partial representation of a Build used by the deployment endpoint.
|
|
632
632
|
*/
|
|
633
633
|
export type Lambdas = {
|
|
634
|
-
id?: string | undefined;
|
|
635
634
|
createdAt?: number | undefined;
|
|
636
|
-
|
|
635
|
+
id?: string | undefined;
|
|
637
636
|
readyState?: CreateDeploymentReadyState | undefined;
|
|
637
|
+
entrypoint?: string | null | undefined;
|
|
638
638
|
readyStateAt?: number | undefined;
|
|
639
639
|
output: Array<CreateDeploymentOutput>;
|
|
640
640
|
};
|
|
@@ -677,9 +677,9 @@ export type CustomEnvironmentType = ClosedEnum<typeof CustomEnvironmentType>;
|
|
|
677
677
|
* The type of matching to perform
|
|
678
678
|
*/
|
|
679
679
|
export const CreateDeploymentCustomEnvironmentType = {
|
|
680
|
+
EndsWith: "endsWith",
|
|
680
681
|
StartsWith: "startsWith",
|
|
681
682
|
Equals: "equals",
|
|
682
|
-
EndsWith: "endsWith",
|
|
683
683
|
} as const;
|
|
684
684
|
/**
|
|
685
685
|
* The type of matching to perform
|
|
@@ -1121,7 +1121,7 @@ export type CreateDeploymentPlan = ClosedEnum<typeof CreateDeploymentPlan>;
|
|
|
1121
1121
|
/**
|
|
1122
1122
|
* 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.
|
|
1123
1123
|
*/
|
|
1124
|
-
export type
|
|
1124
|
+
export type CreateDeploymentMicrofrontendsApplications = {
|
|
1125
1125
|
/**
|
|
1126
1126
|
* This is the production alias, it will always show the most up to date of each application.
|
|
1127
1127
|
*/
|
|
@@ -1137,7 +1137,9 @@ export type CreateDeploymentMicrofrontends2 = {
|
|
|
1137
1137
|
/**
|
|
1138
1138
|
* 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.
|
|
1139
1139
|
*/
|
|
1140
|
-
applications?:
|
|
1140
|
+
applications?:
|
|
1141
|
+
| { [k: string]: CreateDeploymentMicrofrontendsApplications }
|
|
1142
|
+
| undefined;
|
|
1141
1143
|
isDefaultApp: boolean;
|
|
1142
1144
|
/**
|
|
1143
1145
|
* The project name of the default app of this deployment's microfrontends group.
|
|
@@ -1177,14 +1179,14 @@ export type CreateDeploymentMicrofrontends =
|
|
|
1177
1179
|
| CreateDeploymentMicrofrontends2;
|
|
1178
1180
|
|
|
1179
1181
|
export const FunctionType = {
|
|
1180
|
-
Fluid: "fluid",
|
|
1181
1182
|
Standard: "standard",
|
|
1183
|
+
Fluid: "fluid",
|
|
1182
1184
|
} as const;
|
|
1183
1185
|
export type FunctionType = ClosedEnum<typeof FunctionType>;
|
|
1184
1186
|
|
|
1185
1187
|
export const FunctionMemoryType = {
|
|
1186
|
-
Standard: "standard",
|
|
1187
1188
|
StandardLegacy: "standard_legacy",
|
|
1189
|
+
Standard: "standard",
|
|
1188
1190
|
Performance: "performance",
|
|
1189
1191
|
} as const;
|
|
1190
1192
|
export type FunctionMemoryType = ClosedEnum<typeof FunctionMemoryType>;
|
|
@@ -1217,11 +1219,11 @@ export type Routes3 = {
|
|
|
1217
1219
|
|
|
1218
1220
|
export const RoutesHandle = {
|
|
1219
1221
|
Error: "error",
|
|
1222
|
+
Resource: "resource",
|
|
1220
1223
|
Filesystem: "filesystem",
|
|
1221
1224
|
Hit: "hit",
|
|
1222
1225
|
Miss: "miss",
|
|
1223
1226
|
Rewrite: "rewrite",
|
|
1224
|
-
Resource: "resource",
|
|
1225
1227
|
} as const;
|
|
1226
1228
|
export type RoutesHandle = ClosedEnum<typeof RoutesHandle>;
|
|
1227
1229
|
|
|
@@ -1334,8 +1336,8 @@ export type CreateDeploymentGitRepoDeploymentsType = ClosedEnum<
|
|
|
1334
1336
|
>;
|
|
1335
1337
|
|
|
1336
1338
|
export const CreateDeploymentGitRepoOwnerType = {
|
|
1337
|
-
Team: "team",
|
|
1338
1339
|
User: "user",
|
|
1340
|
+
Team: "team",
|
|
1339
1341
|
} as const;
|
|
1340
1342
|
export type CreateDeploymentGitRepoOwnerType = ClosedEnum<
|
|
1341
1343
|
typeof CreateDeploymentGitRepoOwnerType
|
|
@@ -1362,8 +1364,8 @@ export type CreateDeploymentGitRepoType = ClosedEnum<
|
|
|
1362
1364
|
>;
|
|
1363
1365
|
|
|
1364
1366
|
export const GitRepoOwnerType = {
|
|
1365
|
-
Team: "team",
|
|
1366
1367
|
User: "user",
|
|
1368
|
+
Team: "team",
|
|
1367
1369
|
} as const;
|
|
1368
1370
|
export type GitRepoOwnerType = ClosedEnum<typeof GitRepoOwnerType>;
|
|
1369
1371
|
|
|
@@ -1386,8 +1388,8 @@ export const GitRepoType = {
|
|
|
1386
1388
|
export type GitRepoType = ClosedEnum<typeof GitRepoType>;
|
|
1387
1389
|
|
|
1388
1390
|
export const OwnerType = {
|
|
1389
|
-
Team: "team",
|
|
1390
1391
|
User: "user",
|
|
1392
|
+
Team: "team",
|
|
1391
1393
|
} as const;
|
|
1392
1394
|
export type OwnerType = ClosedEnum<typeof OwnerType>;
|
|
1393
1395
|
|
|
@@ -3668,20 +3670,20 @@ export function createDeploymentOutputFromJSON(
|
|
|
3668
3670
|
/** @internal */
|
|
3669
3671
|
export const Lambdas$inboundSchema: z.ZodType<Lambdas, z.ZodTypeDef, unknown> =
|
|
3670
3672
|
z.object({
|
|
3671
|
-
id: z.string().optional(),
|
|
3672
3673
|
createdAt: z.number().optional(),
|
|
3673
|
-
|
|
3674
|
+
id: z.string().optional(),
|
|
3674
3675
|
readyState: CreateDeploymentReadyState$inboundSchema.optional(),
|
|
3676
|
+
entrypoint: z.nullable(z.string()).optional(),
|
|
3675
3677
|
readyStateAt: z.number().optional(),
|
|
3676
3678
|
output: z.array(z.lazy(() => CreateDeploymentOutput$inboundSchema)),
|
|
3677
3679
|
});
|
|
3678
3680
|
|
|
3679
3681
|
/** @internal */
|
|
3680
3682
|
export type Lambdas$Outbound = {
|
|
3681
|
-
id?: string | undefined;
|
|
3682
3683
|
createdAt?: number | undefined;
|
|
3683
|
-
|
|
3684
|
+
id?: string | undefined;
|
|
3684
3685
|
readyState?: string | undefined;
|
|
3686
|
+
entrypoint?: string | null | undefined;
|
|
3685
3687
|
readyStateAt?: number | undefined;
|
|
3686
3688
|
output: Array<CreateDeploymentOutput$Outbound>;
|
|
3687
3689
|
};
|
|
@@ -3692,10 +3694,10 @@ export const Lambdas$outboundSchema: z.ZodType<
|
|
|
3692
3694
|
z.ZodTypeDef,
|
|
3693
3695
|
Lambdas
|
|
3694
3696
|
> = z.object({
|
|
3695
|
-
id: z.string().optional(),
|
|
3696
3697
|
createdAt: z.number().optional(),
|
|
3697
|
-
|
|
3698
|
+
id: z.string().optional(),
|
|
3698
3699
|
readyState: CreateDeploymentReadyState$outboundSchema.optional(),
|
|
3700
|
+
entrypoint: z.nullable(z.string()).optional(),
|
|
3699
3701
|
readyStateAt: z.number().optional(),
|
|
3700
3702
|
output: z.array(z.lazy(() => CreateDeploymentOutput$outboundSchema)),
|
|
3701
3703
|
});
|
|
@@ -6084,58 +6086,72 @@ export namespace CreateDeploymentPlan$ {
|
|
|
6084
6086
|
}
|
|
6085
6087
|
|
|
6086
6088
|
/** @internal */
|
|
6087
|
-
export const
|
|
6088
|
-
|
|
6089
|
-
|
|
6090
|
-
|
|
6091
|
-
|
|
6092
|
-
|
|
6093
|
-
|
|
6094
|
-
deploymentHost: z.string().optional(),
|
|
6095
|
-
});
|
|
6089
|
+
export const CreateDeploymentMicrofrontendsApplications$inboundSchema:
|
|
6090
|
+
z.ZodType<CreateDeploymentMicrofrontendsApplications, z.ZodTypeDef, unknown> =
|
|
6091
|
+
z.object({
|
|
6092
|
+
productionHost: z.string(),
|
|
6093
|
+
deploymentAlias: z.string().optional(),
|
|
6094
|
+
deploymentHost: z.string().optional(),
|
|
6095
|
+
});
|
|
6096
6096
|
|
|
6097
6097
|
/** @internal */
|
|
6098
|
-
export type
|
|
6098
|
+
export type CreateDeploymentMicrofrontendsApplications$Outbound = {
|
|
6099
6099
|
productionHost: string;
|
|
6100
6100
|
deploymentAlias?: string | undefined;
|
|
6101
6101
|
deploymentHost?: string | undefined;
|
|
6102
6102
|
};
|
|
6103
6103
|
|
|
6104
6104
|
/** @internal */
|
|
6105
|
-
export const
|
|
6106
|
-
|
|
6107
|
-
|
|
6108
|
-
|
|
6109
|
-
|
|
6110
|
-
|
|
6111
|
-
|
|
6112
|
-
|
|
6113
|
-
|
|
6105
|
+
export const CreateDeploymentMicrofrontendsApplications$outboundSchema:
|
|
6106
|
+
z.ZodType<
|
|
6107
|
+
CreateDeploymentMicrofrontendsApplications$Outbound,
|
|
6108
|
+
z.ZodTypeDef,
|
|
6109
|
+
CreateDeploymentMicrofrontendsApplications
|
|
6110
|
+
> = z.object({
|
|
6111
|
+
productionHost: z.string(),
|
|
6112
|
+
deploymentAlias: z.string().optional(),
|
|
6113
|
+
deploymentHost: z.string().optional(),
|
|
6114
|
+
});
|
|
6114
6115
|
|
|
6115
6116
|
/**
|
|
6116
6117
|
* @internal
|
|
6117
6118
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
6118
6119
|
*/
|
|
6119
|
-
export namespace
|
|
6120
|
-
/** @deprecated use `
|
|
6121
|
-
export const inboundSchema =
|
|
6122
|
-
|
|
6123
|
-
|
|
6124
|
-
|
|
6125
|
-
|
|
6120
|
+
export namespace CreateDeploymentMicrofrontendsApplications$ {
|
|
6121
|
+
/** @deprecated use `CreateDeploymentMicrofrontendsApplications$inboundSchema` instead. */
|
|
6122
|
+
export const inboundSchema =
|
|
6123
|
+
CreateDeploymentMicrofrontendsApplications$inboundSchema;
|
|
6124
|
+
/** @deprecated use `CreateDeploymentMicrofrontendsApplications$outboundSchema` instead. */
|
|
6125
|
+
export const outboundSchema =
|
|
6126
|
+
CreateDeploymentMicrofrontendsApplications$outboundSchema;
|
|
6127
|
+
/** @deprecated use `CreateDeploymentMicrofrontendsApplications$Outbound` instead. */
|
|
6128
|
+
export type Outbound = CreateDeploymentMicrofrontendsApplications$Outbound;
|
|
6126
6129
|
}
|
|
6127
6130
|
|
|
6128
|
-
export function
|
|
6129
|
-
|
|
6131
|
+
export function createDeploymentMicrofrontendsApplicationsToJSON(
|
|
6132
|
+
createDeploymentMicrofrontendsApplications:
|
|
6133
|
+
CreateDeploymentMicrofrontendsApplications,
|
|
6134
|
+
): string {
|
|
6135
|
+
return JSON.stringify(
|
|
6136
|
+
CreateDeploymentMicrofrontendsApplications$outboundSchema.parse(
|
|
6137
|
+
createDeploymentMicrofrontendsApplications,
|
|
6138
|
+
),
|
|
6139
|
+
);
|
|
6130
6140
|
}
|
|
6131
6141
|
|
|
6132
|
-
export function
|
|
6142
|
+
export function createDeploymentMicrofrontendsApplicationsFromJSON(
|
|
6133
6143
|
jsonString: string,
|
|
6134
|
-
): SafeParseResult<
|
|
6144
|
+
): SafeParseResult<
|
|
6145
|
+
CreateDeploymentMicrofrontendsApplications,
|
|
6146
|
+
SDKValidationError
|
|
6147
|
+
> {
|
|
6135
6148
|
return safeParse(
|
|
6136
6149
|
jsonString,
|
|
6137
|
-
(x) =>
|
|
6138
|
-
|
|
6150
|
+
(x) =>
|
|
6151
|
+
CreateDeploymentMicrofrontendsApplications$inboundSchema.parse(
|
|
6152
|
+
JSON.parse(x),
|
|
6153
|
+
),
|
|
6154
|
+
`Failed to parse 'CreateDeploymentMicrofrontendsApplications' from JSON`,
|
|
6139
6155
|
);
|
|
6140
6156
|
}
|
|
6141
6157
|
|
|
@@ -6145,7 +6161,9 @@ export const CreateDeploymentMicrofrontends2$inboundSchema: z.ZodType<
|
|
|
6145
6161
|
z.ZodTypeDef,
|
|
6146
6162
|
unknown
|
|
6147
6163
|
> = z.object({
|
|
6148
|
-
applications: z.record(
|
|
6164
|
+
applications: z.record(
|
|
6165
|
+
z.lazy(() => CreateDeploymentMicrofrontendsApplications$inboundSchema),
|
|
6166
|
+
).optional(),
|
|
6149
6167
|
isDefaultApp: z.boolean(),
|
|
6150
6168
|
defaultAppProjectName: z.string(),
|
|
6151
6169
|
defaultRoute: z.string().optional(),
|
|
@@ -6154,7 +6172,9 @@ export const CreateDeploymentMicrofrontends2$inboundSchema: z.ZodType<
|
|
|
6154
6172
|
|
|
6155
6173
|
/** @internal */
|
|
6156
6174
|
export type CreateDeploymentMicrofrontends2$Outbound = {
|
|
6157
|
-
applications?: {
|
|
6175
|
+
applications?: {
|
|
6176
|
+
[k: string]: CreateDeploymentMicrofrontendsApplications$Outbound;
|
|
6177
|
+
} | undefined;
|
|
6158
6178
|
isDefaultApp: boolean;
|
|
6159
6179
|
defaultAppProjectName: string;
|
|
6160
6180
|
defaultRoute?: string | undefined;
|
|
@@ -6167,7 +6187,9 @@ export const CreateDeploymentMicrofrontends2$outboundSchema: z.ZodType<
|
|
|
6167
6187
|
z.ZodTypeDef,
|
|
6168
6188
|
CreateDeploymentMicrofrontends2
|
|
6169
6189
|
> = z.object({
|
|
6170
|
-
applications: z.record(
|
|
6190
|
+
applications: z.record(
|
|
6191
|
+
z.lazy(() => CreateDeploymentMicrofrontendsApplications$outboundSchema),
|
|
6192
|
+
).optional(),
|
|
6171
6193
|
isDefaultApp: z.boolean(),
|
|
6172
6194
|
defaultAppProjectName: z.string(),
|
|
6173
6195
|
defaultRoute: z.string().optional(),
|