@vercel/sdk 1.17.3 → 1.17.4
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/README.md +28 -24
- package/bin/mcp-server.js +1270 -988
- package/bin/mcp-server.js.map +15 -9
- package/esm/__tests__/accessgroups.test.js +3 -1
- package/esm/__tests__/accessgroups.test.js.map +1 -1
- package/esm/__tests__/domains.test.js +4 -10
- package/esm/__tests__/domains.test.js.map +1 -1
- package/esm/__tests__/edgeconfig.test.js +6 -6
- package/esm/__tests__/edgeconfig.test.js.map +1 -1
- package/esm/__tests__/rollingrelease.test.js +2 -6
- package/esm/__tests__/rollingrelease.test.js.map +1 -1
- package/esm/__tests__/security.test.js +4 -4
- package/esm/__tests__/security.test.js.map +1 -1
- package/esm/__tests__/teams.test.js +2 -2
- package/esm/__tests__/teams.test.js.map +1 -1
- package/esm/funcs/edgeCacheDangerouslyDeleteBySrcImages.d.ts +17 -0
- package/esm/funcs/edgeCacheDangerouslyDeleteBySrcImages.d.ts.map +1 -0
- package/esm/funcs/edgeCacheDangerouslyDeleteBySrcImages.js +85 -0
- package/esm/funcs/edgeCacheDangerouslyDeleteBySrcImages.js.map +1 -0
- package/esm/funcs/edgeCacheInvalidateBySrcImages.d.ts +17 -0
- package/esm/funcs/edgeCacheInvalidateBySrcImages.d.ts.map +1 -0
- package/esm/funcs/edgeCacheInvalidateBySrcImages.js +85 -0
- package/esm/funcs/edgeCacheInvalidateBySrcImages.js.map +1 -0
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/server.d.ts.map +1 -1
- package/esm/mcp-server/server.js +5 -1
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/edgeCacheDangerouslyDeleteBySrcImages.d.ts +7 -0
- package/esm/mcp-server/tools/edgeCacheDangerouslyDeleteBySrcImages.d.ts.map +1 -0
- package/esm/mcp-server/tools/edgeCacheDangerouslyDeleteBySrcImages.js +27 -0
- package/esm/mcp-server/tools/edgeCacheDangerouslyDeleteBySrcImages.js.map +1 -0
- package/esm/mcp-server/tools/edgeCacheInvalidateBySrcImages.d.ts +7 -0
- package/esm/mcp-server/tools/edgeCacheInvalidateBySrcImages.d.ts.map +1 -0
- package/esm/mcp-server/tools/edgeCacheInvalidateBySrcImages.js +27 -0
- package/esm/mcp-server/tools/edgeCacheInvalidateBySrcImages.js.map +1 -0
- package/esm/models/createprojectop.d.ts +18 -18
- package/esm/models/createprojectop.d.ts.map +1 -1
- package/esm/models/createprojectop.js +18 -18
- package/esm/models/createprojectop.js.map +1 -1
- package/esm/models/dangerouslydeletebysrcimagesop.d.ts +44 -0
- package/esm/models/dangerouslydeletebysrcimagesop.d.ts.map +1 -0
- package/esm/models/dangerouslydeletebysrcimagesop.js +51 -0
- package/esm/models/dangerouslydeletebysrcimagesop.js.map +1 -0
- package/esm/models/invalidatebysrcimagesop.d.ts +42 -0
- package/esm/models/invalidatebysrcimagesop.d.ts.map +1 -0
- package/esm/models/invalidatebysrcimagesop.js +51 -0
- package/esm/models/invalidatebysrcimagesop.js.map +1 -0
- package/esm/models/team.d.ts +11 -11
- package/esm/models/team.d.ts.map +1 -1
- package/esm/models/team.js +8 -8
- package/esm/models/team.js.map +1 -1
- package/esm/models/updateprojectop.d.ts +18 -18
- package/esm/models/updateprojectop.d.ts.map +1 -1
- package/esm/models/updateprojectop.js +18 -18
- package/esm/models/updateprojectop.js.map +1 -1
- package/esm/sdk/edgecache.d.ts +16 -0
- package/esm/sdk/edgecache.d.ts.map +1 -1
- package/esm/sdk/edgecache.js +20 -0
- package/esm/sdk/edgecache.js.map +1 -1
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/accessgroups.test.ts +3 -1
- package/src/__tests__/domains.test.ts +4 -10
- package/src/__tests__/edgeconfig.test.ts +6 -6
- package/src/__tests__/rollingrelease.test.ts +2 -6
- package/src/__tests__/security.test.ts +4 -4
- package/src/__tests__/teams.test.ts +2 -2
- package/src/funcs/edgeCacheDangerouslyDeleteBySrcImages.ts +171 -0
- package/src/funcs/edgeCacheInvalidateBySrcImages.ts +171 -0
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +5 -1
- package/src/mcp-server/tools/edgeCacheDangerouslyDeleteBySrcImages.ts +37 -0
- package/src/mcp-server/tools/edgeCacheInvalidateBySrcImages.ts +36 -0
- package/src/models/createprojectop.ts +30 -30
- package/src/models/dangerouslydeletebysrcimagesop.ts +141 -0
- package/src/models/invalidatebysrcimagesop.ts +127 -0
- package/src/models/team.ts +15 -15
- package/src/models/updateprojectop.ts +30 -30
- package/src/sdk/edgecache.ts +38 -0
- package/vercel-spec.json +241 -61
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { edgeCacheInvalidateBySrcImages } from "../../funcs/edgeCacheInvalidateBySrcImages.js";
|
|
6
|
+
import { InvalidateBySrcImagesRequest$inboundSchema } from "../../models/invalidatebysrcimagesop.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: InvalidateBySrcImagesRequest$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$edgeCacheInvalidateBySrcImages: ToolDefinition<typeof args> =
|
|
14
|
+
{
|
|
15
|
+
name: "edge-cache-invalidate-by-src-images",
|
|
16
|
+
description: `Invalidate by source image
|
|
17
|
+
|
|
18
|
+
Marks a source image as stale, causing its corresponding transformed images to be revalidated in the background on the next request.`,
|
|
19
|
+
args,
|
|
20
|
+
tool: async (client, args, ctx) => {
|
|
21
|
+
const [result, apiCall] = await edgeCacheInvalidateBySrcImages(
|
|
22
|
+
client,
|
|
23
|
+
args.request,
|
|
24
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
25
|
+
).$inspect();
|
|
26
|
+
|
|
27
|
+
if (!result.ok) {
|
|
28
|
+
return {
|
|
29
|
+
content: [{ type: "text", text: result.error.message }],
|
|
30
|
+
isError: true,
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
return formatResult(void 0, apiCall);
|
|
35
|
+
},
|
|
36
|
+
};
|
|
@@ -473,10 +473,10 @@ export type CreateProjectProjectsTarget =
|
|
|
473
473
|
|
|
474
474
|
export const CreateProjectProjectsResponseType = {
|
|
475
475
|
System: "system",
|
|
476
|
+
Secret: "secret",
|
|
476
477
|
Encrypted: "encrypted",
|
|
477
478
|
Plain: "plain",
|
|
478
479
|
Sensitive: "sensitive",
|
|
479
|
-
Secret: "secret",
|
|
480
480
|
} as const;
|
|
481
481
|
export type CreateProjectProjectsResponseType = ClosedEnum<
|
|
482
482
|
typeof CreateProjectProjectsResponseType
|
|
@@ -1243,18 +1243,18 @@ export type CreateProjectLinkProjectsDeployHooks = {
|
|
|
1243
1243
|
|
|
1244
1244
|
export type CreateProjectLink2 = {
|
|
1245
1245
|
type: CreateProjectLinkProjectsType;
|
|
1246
|
-
repo?: string | undefined;
|
|
1247
|
-
repoId?: number | undefined;
|
|
1248
|
-
createdAt?: number | undefined;
|
|
1249
1246
|
updatedAt?: number | undefined;
|
|
1247
|
+
createdAt?: number | undefined;
|
|
1248
|
+
repo?: string | undefined;
|
|
1249
|
+
sourceless?: boolean | undefined;
|
|
1250
1250
|
org: string;
|
|
1251
1251
|
/**
|
|
1252
1252
|
* A new field, should be included in all new project links, is being added just in time when a deployment is created. This is needed for Protected Git scopes.
|
|
1253
1253
|
*/
|
|
1254
1254
|
repoOwnerId?: number | undefined;
|
|
1255
|
+
repoId?: number | undefined;
|
|
1255
1256
|
deployHooks: Array<CreateProjectLinkProjectsDeployHooks>;
|
|
1256
1257
|
gitCredentialId: string;
|
|
1257
|
-
sourceless?: boolean | undefined;
|
|
1258
1258
|
productionBranch: string;
|
|
1259
1259
|
};
|
|
1260
1260
|
|
|
@@ -1406,7 +1406,6 @@ export type CreateProjectBuildMachineType = ClosedEnum<
|
|
|
1406
1406
|
>;
|
|
1407
1407
|
|
|
1408
1408
|
export type CreateProjectProjectsResourceConfig = {
|
|
1409
|
-
elasticConcurrencyEnabled?: boolean | undefined;
|
|
1410
1409
|
fluid?: boolean | undefined;
|
|
1411
1410
|
functionDefaultRegions: Array<string>;
|
|
1412
1411
|
functionDefaultTimeout?: number | undefined;
|
|
@@ -1414,6 +1413,7 @@ export type CreateProjectProjectsResourceConfig = {
|
|
|
1414
1413
|
| CreateProjectFunctionDefaultMemoryType
|
|
1415
1414
|
| undefined;
|
|
1416
1415
|
functionZeroConfigFailover?: boolean | undefined;
|
|
1416
|
+
elasticConcurrencyEnabled?: boolean | undefined;
|
|
1417
1417
|
buildMachineType?: CreateProjectBuildMachineType | undefined;
|
|
1418
1418
|
isNSNBDisabled?: boolean | undefined;
|
|
1419
1419
|
};
|
|
@@ -1498,7 +1498,6 @@ export type CreateProjectProjectsBuildMachineType = ClosedEnum<
|
|
|
1498
1498
|
>;
|
|
1499
1499
|
|
|
1500
1500
|
export type CreateProjectDefaultResourceConfig = {
|
|
1501
|
-
elasticConcurrencyEnabled?: boolean | undefined;
|
|
1502
1501
|
fluid?: boolean | undefined;
|
|
1503
1502
|
functionDefaultRegions: Array<string>;
|
|
1504
1503
|
functionDefaultTimeout?: number | undefined;
|
|
@@ -1506,6 +1505,7 @@ export type CreateProjectDefaultResourceConfig = {
|
|
|
1506
1505
|
| CreateProjectProjectsFunctionDefaultMemoryType
|
|
1507
1506
|
| undefined;
|
|
1508
1507
|
functionZeroConfigFailover?: boolean | undefined;
|
|
1508
|
+
elasticConcurrencyEnabled?: boolean | undefined;
|
|
1509
1509
|
buildMachineType?: CreateProjectProjectsBuildMachineType | undefined;
|
|
1510
1510
|
isNSNBDisabled?: boolean | undefined;
|
|
1511
1511
|
};
|
|
@@ -1517,8 +1517,8 @@ export type CreateProjectStaticIps = {
|
|
|
1517
1517
|
};
|
|
1518
1518
|
|
|
1519
1519
|
export const CreateProjectProjectsDeploymentType = {
|
|
1520
|
-
Preview: "preview",
|
|
1521
1520
|
All: "all",
|
|
1521
|
+
Preview: "preview",
|
|
1522
1522
|
ProdDeploymentUrlsAndAllPreviews: "prod_deployment_urls_and_all_previews",
|
|
1523
1523
|
AllExceptCustomDomains: "all_except_custom_domains",
|
|
1524
1524
|
} as const;
|
|
@@ -1980,11 +1980,11 @@ export type CreateProjectProtectionBypass =
|
|
|
1980
1980
|
| CreateProjectProtectionBypass2;
|
|
1981
1981
|
|
|
1982
1982
|
export const CreateProjectTrustedIpsProjectsDeploymentType = {
|
|
1983
|
-
Preview: "preview",
|
|
1984
|
-
Production: "production",
|
|
1985
1983
|
All: "all",
|
|
1984
|
+
Preview: "preview",
|
|
1986
1985
|
ProdDeploymentUrlsAndAllPreviews: "prod_deployment_urls_and_all_previews",
|
|
1987
1986
|
AllExceptCustomDomains: "all_except_custom_domains",
|
|
1987
|
+
Production: "production",
|
|
1988
1988
|
} as const;
|
|
1989
1989
|
export type CreateProjectTrustedIpsProjectsDeploymentType = ClosedEnum<
|
|
1990
1990
|
typeof CreateProjectTrustedIpsProjectsDeploymentType
|
|
@@ -1995,11 +1995,11 @@ export type CreateProjectTrustedIps2 = {
|
|
|
1995
1995
|
};
|
|
1996
1996
|
|
|
1997
1997
|
export const CreateProjectTrustedIpsDeploymentType = {
|
|
1998
|
-
Preview: "preview",
|
|
1999
|
-
Production: "production",
|
|
2000
1998
|
All: "all",
|
|
1999
|
+
Preview: "preview",
|
|
2001
2000
|
ProdDeploymentUrlsAndAllPreviews: "prod_deployment_urls_and_all_previews",
|
|
2002
2001
|
AllExceptCustomDomains: "all_except_custom_domains",
|
|
2002
|
+
Production: "production",
|
|
2003
2003
|
} as const;
|
|
2004
2004
|
export type CreateProjectTrustedIpsDeploymentType = ClosedEnum<
|
|
2005
2005
|
typeof CreateProjectTrustedIpsDeploymentType
|
|
@@ -6167,31 +6167,31 @@ export const CreateProjectLink2$inboundSchema: z.ZodType<
|
|
|
6167
6167
|
unknown
|
|
6168
6168
|
> = z.object({
|
|
6169
6169
|
type: CreateProjectLinkProjectsType$inboundSchema,
|
|
6170
|
-
repo: z.string().optional(),
|
|
6171
|
-
repoId: z.number().optional(),
|
|
6172
|
-
createdAt: z.number().optional(),
|
|
6173
6170
|
updatedAt: z.number().optional(),
|
|
6171
|
+
createdAt: z.number().optional(),
|
|
6172
|
+
repo: z.string().optional(),
|
|
6173
|
+
sourceless: z.boolean().optional(),
|
|
6174
6174
|
org: z.string(),
|
|
6175
6175
|
repoOwnerId: z.number().optional(),
|
|
6176
|
+
repoId: z.number().optional(),
|
|
6176
6177
|
deployHooks: z.array(
|
|
6177
6178
|
z.lazy(() => CreateProjectLinkProjectsDeployHooks$inboundSchema),
|
|
6178
6179
|
),
|
|
6179
6180
|
gitCredentialId: z.string(),
|
|
6180
|
-
sourceless: z.boolean().optional(),
|
|
6181
6181
|
productionBranch: z.string(),
|
|
6182
6182
|
});
|
|
6183
6183
|
/** @internal */
|
|
6184
6184
|
export type CreateProjectLink2$Outbound = {
|
|
6185
6185
|
type: string;
|
|
6186
|
-
repo?: string | undefined;
|
|
6187
|
-
repoId?: number | undefined;
|
|
6188
|
-
createdAt?: number | undefined;
|
|
6189
6186
|
updatedAt?: number | undefined;
|
|
6187
|
+
createdAt?: number | undefined;
|
|
6188
|
+
repo?: string | undefined;
|
|
6189
|
+
sourceless?: boolean | undefined;
|
|
6190
6190
|
org: string;
|
|
6191
6191
|
repoOwnerId?: number | undefined;
|
|
6192
|
+
repoId?: number | undefined;
|
|
6192
6193
|
deployHooks: Array<CreateProjectLinkProjectsDeployHooks$Outbound>;
|
|
6193
6194
|
gitCredentialId: string;
|
|
6194
|
-
sourceless?: boolean | undefined;
|
|
6195
6195
|
productionBranch: string;
|
|
6196
6196
|
};
|
|
6197
6197
|
|
|
@@ -6202,17 +6202,17 @@ export const CreateProjectLink2$outboundSchema: z.ZodType<
|
|
|
6202
6202
|
CreateProjectLink2
|
|
6203
6203
|
> = z.object({
|
|
6204
6204
|
type: CreateProjectLinkProjectsType$outboundSchema,
|
|
6205
|
-
repo: z.string().optional(),
|
|
6206
|
-
repoId: z.number().optional(),
|
|
6207
|
-
createdAt: z.number().optional(),
|
|
6208
6205
|
updatedAt: z.number().optional(),
|
|
6206
|
+
createdAt: z.number().optional(),
|
|
6207
|
+
repo: z.string().optional(),
|
|
6208
|
+
sourceless: z.boolean().optional(),
|
|
6209
6209
|
org: z.string(),
|
|
6210
6210
|
repoOwnerId: z.number().optional(),
|
|
6211
|
+
repoId: z.number().optional(),
|
|
6211
6212
|
deployHooks: z.array(
|
|
6212
6213
|
z.lazy(() => CreateProjectLinkProjectsDeployHooks$outboundSchema),
|
|
6213
6214
|
),
|
|
6214
6215
|
gitCredentialId: z.string(),
|
|
6215
|
-
sourceless: z.boolean().optional(),
|
|
6216
6216
|
productionBranch: z.string(),
|
|
6217
6217
|
});
|
|
6218
6218
|
|
|
@@ -6781,24 +6781,24 @@ export const CreateProjectProjectsResourceConfig$inboundSchema: z.ZodType<
|
|
|
6781
6781
|
z.ZodTypeDef,
|
|
6782
6782
|
unknown
|
|
6783
6783
|
> = z.object({
|
|
6784
|
-
elasticConcurrencyEnabled: z.boolean().optional(),
|
|
6785
6784
|
fluid: z.boolean().optional(),
|
|
6786
6785
|
functionDefaultRegions: z.array(z.string()),
|
|
6787
6786
|
functionDefaultTimeout: z.number().optional(),
|
|
6788
6787
|
functionDefaultMemoryType:
|
|
6789
6788
|
CreateProjectFunctionDefaultMemoryType$inboundSchema.optional(),
|
|
6790
6789
|
functionZeroConfigFailover: z.boolean().optional(),
|
|
6790
|
+
elasticConcurrencyEnabled: z.boolean().optional(),
|
|
6791
6791
|
buildMachineType: CreateProjectBuildMachineType$inboundSchema.optional(),
|
|
6792
6792
|
isNSNBDisabled: z.boolean().optional(),
|
|
6793
6793
|
});
|
|
6794
6794
|
/** @internal */
|
|
6795
6795
|
export type CreateProjectProjectsResourceConfig$Outbound = {
|
|
6796
|
-
elasticConcurrencyEnabled?: boolean | undefined;
|
|
6797
6796
|
fluid?: boolean | undefined;
|
|
6798
6797
|
functionDefaultRegions: Array<string>;
|
|
6799
6798
|
functionDefaultTimeout?: number | undefined;
|
|
6800
6799
|
functionDefaultMemoryType?: string | undefined;
|
|
6801
6800
|
functionZeroConfigFailover?: boolean | undefined;
|
|
6801
|
+
elasticConcurrencyEnabled?: boolean | undefined;
|
|
6802
6802
|
buildMachineType?: string | undefined;
|
|
6803
6803
|
isNSNBDisabled?: boolean | undefined;
|
|
6804
6804
|
};
|
|
@@ -6809,13 +6809,13 @@ export const CreateProjectProjectsResourceConfig$outboundSchema: z.ZodType<
|
|
|
6809
6809
|
z.ZodTypeDef,
|
|
6810
6810
|
CreateProjectProjectsResourceConfig
|
|
6811
6811
|
> = z.object({
|
|
6812
|
-
elasticConcurrencyEnabled: z.boolean().optional(),
|
|
6813
6812
|
fluid: z.boolean().optional(),
|
|
6814
6813
|
functionDefaultRegions: z.array(z.string()),
|
|
6815
6814
|
functionDefaultTimeout: z.number().optional(),
|
|
6816
6815
|
functionDefaultMemoryType:
|
|
6817
6816
|
CreateProjectFunctionDefaultMemoryType$outboundSchema.optional(),
|
|
6818
6817
|
functionZeroConfigFailover: z.boolean().optional(),
|
|
6818
|
+
elasticConcurrencyEnabled: z.boolean().optional(),
|
|
6819
6819
|
buildMachineType: CreateProjectBuildMachineType$outboundSchema.optional(),
|
|
6820
6820
|
isNSNBDisabled: z.boolean().optional(),
|
|
6821
6821
|
});
|
|
@@ -7012,25 +7012,25 @@ export const CreateProjectDefaultResourceConfig$inboundSchema: z.ZodType<
|
|
|
7012
7012
|
z.ZodTypeDef,
|
|
7013
7013
|
unknown
|
|
7014
7014
|
> = z.object({
|
|
7015
|
-
elasticConcurrencyEnabled: z.boolean().optional(),
|
|
7016
7015
|
fluid: z.boolean().optional(),
|
|
7017
7016
|
functionDefaultRegions: z.array(z.string()),
|
|
7018
7017
|
functionDefaultTimeout: z.number().optional(),
|
|
7019
7018
|
functionDefaultMemoryType:
|
|
7020
7019
|
CreateProjectProjectsFunctionDefaultMemoryType$inboundSchema.optional(),
|
|
7021
7020
|
functionZeroConfigFailover: z.boolean().optional(),
|
|
7021
|
+
elasticConcurrencyEnabled: z.boolean().optional(),
|
|
7022
7022
|
buildMachineType: CreateProjectProjectsBuildMachineType$inboundSchema
|
|
7023
7023
|
.optional(),
|
|
7024
7024
|
isNSNBDisabled: z.boolean().optional(),
|
|
7025
7025
|
});
|
|
7026
7026
|
/** @internal */
|
|
7027
7027
|
export type CreateProjectDefaultResourceConfig$Outbound = {
|
|
7028
|
-
elasticConcurrencyEnabled?: boolean | undefined;
|
|
7029
7028
|
fluid?: boolean | undefined;
|
|
7030
7029
|
functionDefaultRegions: Array<string>;
|
|
7031
7030
|
functionDefaultTimeout?: number | undefined;
|
|
7032
7031
|
functionDefaultMemoryType?: string | undefined;
|
|
7033
7032
|
functionZeroConfigFailover?: boolean | undefined;
|
|
7033
|
+
elasticConcurrencyEnabled?: boolean | undefined;
|
|
7034
7034
|
buildMachineType?: string | undefined;
|
|
7035
7035
|
isNSNBDisabled?: boolean | undefined;
|
|
7036
7036
|
};
|
|
@@ -7041,13 +7041,13 @@ export const CreateProjectDefaultResourceConfig$outboundSchema: z.ZodType<
|
|
|
7041
7041
|
z.ZodTypeDef,
|
|
7042
7042
|
CreateProjectDefaultResourceConfig
|
|
7043
7043
|
> = z.object({
|
|
7044
|
-
elasticConcurrencyEnabled: z.boolean().optional(),
|
|
7045
7044
|
fluid: z.boolean().optional(),
|
|
7046
7045
|
functionDefaultRegions: z.array(z.string()),
|
|
7047
7046
|
functionDefaultTimeout: z.number().optional(),
|
|
7048
7047
|
functionDefaultMemoryType:
|
|
7049
7048
|
CreateProjectProjectsFunctionDefaultMemoryType$outboundSchema.optional(),
|
|
7050
7049
|
functionZeroConfigFailover: z.boolean().optional(),
|
|
7050
|
+
elasticConcurrencyEnabled: z.boolean().optional(),
|
|
7051
7051
|
buildMachineType: CreateProjectProjectsBuildMachineType$outboundSchema
|
|
7052
7052
|
.optional(),
|
|
7053
7053
|
isNSNBDisabled: z.boolean().optional(),
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "./sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type DangerouslyDeleteBySrcImagesRequestBody = {
|
|
12
|
+
revalidationDeadlineSeconds?: number | undefined;
|
|
13
|
+
srcImages: Array<string>;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export type DangerouslyDeleteBySrcImagesRequest = {
|
|
17
|
+
projectIdOrName: string;
|
|
18
|
+
/**
|
|
19
|
+
* The Team identifier to perform the request on behalf of.
|
|
20
|
+
*/
|
|
21
|
+
teamId?: string | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* The Team slug to perform the request on behalf of.
|
|
24
|
+
*/
|
|
25
|
+
slug?: string | undefined;
|
|
26
|
+
requestBody?: DangerouslyDeleteBySrcImagesRequestBody | undefined;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export const DangerouslyDeleteBySrcImagesRequestBody$inboundSchema: z.ZodType<
|
|
31
|
+
DangerouslyDeleteBySrcImagesRequestBody,
|
|
32
|
+
z.ZodTypeDef,
|
|
33
|
+
unknown
|
|
34
|
+
> = z.object({
|
|
35
|
+
revalidationDeadlineSeconds: z.number().optional(),
|
|
36
|
+
srcImages: z.array(z.string()),
|
|
37
|
+
});
|
|
38
|
+
/** @internal */
|
|
39
|
+
export type DangerouslyDeleteBySrcImagesRequestBody$Outbound = {
|
|
40
|
+
revalidationDeadlineSeconds?: number | undefined;
|
|
41
|
+
srcImages: Array<string>;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
/** @internal */
|
|
45
|
+
export const DangerouslyDeleteBySrcImagesRequestBody$outboundSchema: z.ZodType<
|
|
46
|
+
DangerouslyDeleteBySrcImagesRequestBody$Outbound,
|
|
47
|
+
z.ZodTypeDef,
|
|
48
|
+
DangerouslyDeleteBySrcImagesRequestBody
|
|
49
|
+
> = z.object({
|
|
50
|
+
revalidationDeadlineSeconds: z.number().optional(),
|
|
51
|
+
srcImages: z.array(z.string()),
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
export function dangerouslyDeleteBySrcImagesRequestBodyToJSON(
|
|
55
|
+
dangerouslyDeleteBySrcImagesRequestBody:
|
|
56
|
+
DangerouslyDeleteBySrcImagesRequestBody,
|
|
57
|
+
): string {
|
|
58
|
+
return JSON.stringify(
|
|
59
|
+
DangerouslyDeleteBySrcImagesRequestBody$outboundSchema.parse(
|
|
60
|
+
dangerouslyDeleteBySrcImagesRequestBody,
|
|
61
|
+
),
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
export function dangerouslyDeleteBySrcImagesRequestBodyFromJSON(
|
|
65
|
+
jsonString: string,
|
|
66
|
+
): SafeParseResult<
|
|
67
|
+
DangerouslyDeleteBySrcImagesRequestBody,
|
|
68
|
+
SDKValidationError
|
|
69
|
+
> {
|
|
70
|
+
return safeParse(
|
|
71
|
+
jsonString,
|
|
72
|
+
(x) =>
|
|
73
|
+
DangerouslyDeleteBySrcImagesRequestBody$inboundSchema.parse(
|
|
74
|
+
JSON.parse(x),
|
|
75
|
+
),
|
|
76
|
+
`Failed to parse 'DangerouslyDeleteBySrcImagesRequestBody' from JSON`,
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/** @internal */
|
|
81
|
+
export const DangerouslyDeleteBySrcImagesRequest$inboundSchema: z.ZodType<
|
|
82
|
+
DangerouslyDeleteBySrcImagesRequest,
|
|
83
|
+
z.ZodTypeDef,
|
|
84
|
+
unknown
|
|
85
|
+
> = z.object({
|
|
86
|
+
projectIdOrName: z.string(),
|
|
87
|
+
teamId: z.string().optional(),
|
|
88
|
+
slug: z.string().optional(),
|
|
89
|
+
RequestBody: z.lazy(() =>
|
|
90
|
+
DangerouslyDeleteBySrcImagesRequestBody$inboundSchema
|
|
91
|
+
).optional(),
|
|
92
|
+
}).transform((v) => {
|
|
93
|
+
return remap$(v, {
|
|
94
|
+
"RequestBody": "requestBody",
|
|
95
|
+
});
|
|
96
|
+
});
|
|
97
|
+
/** @internal */
|
|
98
|
+
export type DangerouslyDeleteBySrcImagesRequest$Outbound = {
|
|
99
|
+
projectIdOrName: string;
|
|
100
|
+
teamId?: string | undefined;
|
|
101
|
+
slug?: string | undefined;
|
|
102
|
+
RequestBody?: DangerouslyDeleteBySrcImagesRequestBody$Outbound | undefined;
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
/** @internal */
|
|
106
|
+
export const DangerouslyDeleteBySrcImagesRequest$outboundSchema: z.ZodType<
|
|
107
|
+
DangerouslyDeleteBySrcImagesRequest$Outbound,
|
|
108
|
+
z.ZodTypeDef,
|
|
109
|
+
DangerouslyDeleteBySrcImagesRequest
|
|
110
|
+
> = z.object({
|
|
111
|
+
projectIdOrName: z.string(),
|
|
112
|
+
teamId: z.string().optional(),
|
|
113
|
+
slug: z.string().optional(),
|
|
114
|
+
requestBody: z.lazy(() =>
|
|
115
|
+
DangerouslyDeleteBySrcImagesRequestBody$outboundSchema
|
|
116
|
+
).optional(),
|
|
117
|
+
}).transform((v) => {
|
|
118
|
+
return remap$(v, {
|
|
119
|
+
requestBody: "RequestBody",
|
|
120
|
+
});
|
|
121
|
+
});
|
|
122
|
+
|
|
123
|
+
export function dangerouslyDeleteBySrcImagesRequestToJSON(
|
|
124
|
+
dangerouslyDeleteBySrcImagesRequest: DangerouslyDeleteBySrcImagesRequest,
|
|
125
|
+
): string {
|
|
126
|
+
return JSON.stringify(
|
|
127
|
+
DangerouslyDeleteBySrcImagesRequest$outboundSchema.parse(
|
|
128
|
+
dangerouslyDeleteBySrcImagesRequest,
|
|
129
|
+
),
|
|
130
|
+
);
|
|
131
|
+
}
|
|
132
|
+
export function dangerouslyDeleteBySrcImagesRequestFromJSON(
|
|
133
|
+
jsonString: string,
|
|
134
|
+
): SafeParseResult<DangerouslyDeleteBySrcImagesRequest, SDKValidationError> {
|
|
135
|
+
return safeParse(
|
|
136
|
+
jsonString,
|
|
137
|
+
(x) =>
|
|
138
|
+
DangerouslyDeleteBySrcImagesRequest$inboundSchema.parse(JSON.parse(x)),
|
|
139
|
+
`Failed to parse 'DangerouslyDeleteBySrcImagesRequest' from JSON`,
|
|
140
|
+
);
|
|
141
|
+
}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "./sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type InvalidateBySrcImagesRequestBody = {
|
|
12
|
+
srcImages: Array<string>;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export type InvalidateBySrcImagesRequest = {
|
|
16
|
+
projectIdOrName: string;
|
|
17
|
+
/**
|
|
18
|
+
* The Team identifier to perform the request on behalf of.
|
|
19
|
+
*/
|
|
20
|
+
teamId?: string | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* The Team slug to perform the request on behalf of.
|
|
23
|
+
*/
|
|
24
|
+
slug?: string | undefined;
|
|
25
|
+
requestBody?: InvalidateBySrcImagesRequestBody | undefined;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const InvalidateBySrcImagesRequestBody$inboundSchema: z.ZodType<
|
|
30
|
+
InvalidateBySrcImagesRequestBody,
|
|
31
|
+
z.ZodTypeDef,
|
|
32
|
+
unknown
|
|
33
|
+
> = z.object({
|
|
34
|
+
srcImages: z.array(z.string()),
|
|
35
|
+
});
|
|
36
|
+
/** @internal */
|
|
37
|
+
export type InvalidateBySrcImagesRequestBody$Outbound = {
|
|
38
|
+
srcImages: Array<string>;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export const InvalidateBySrcImagesRequestBody$outboundSchema: z.ZodType<
|
|
43
|
+
InvalidateBySrcImagesRequestBody$Outbound,
|
|
44
|
+
z.ZodTypeDef,
|
|
45
|
+
InvalidateBySrcImagesRequestBody
|
|
46
|
+
> = z.object({
|
|
47
|
+
srcImages: z.array(z.string()),
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
export function invalidateBySrcImagesRequestBodyToJSON(
|
|
51
|
+
invalidateBySrcImagesRequestBody: InvalidateBySrcImagesRequestBody,
|
|
52
|
+
): string {
|
|
53
|
+
return JSON.stringify(
|
|
54
|
+
InvalidateBySrcImagesRequestBody$outboundSchema.parse(
|
|
55
|
+
invalidateBySrcImagesRequestBody,
|
|
56
|
+
),
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
export function invalidateBySrcImagesRequestBodyFromJSON(
|
|
60
|
+
jsonString: string,
|
|
61
|
+
): SafeParseResult<InvalidateBySrcImagesRequestBody, SDKValidationError> {
|
|
62
|
+
return safeParse(
|
|
63
|
+
jsonString,
|
|
64
|
+
(x) => InvalidateBySrcImagesRequestBody$inboundSchema.parse(JSON.parse(x)),
|
|
65
|
+
`Failed to parse 'InvalidateBySrcImagesRequestBody' from JSON`,
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/** @internal */
|
|
70
|
+
export const InvalidateBySrcImagesRequest$inboundSchema: z.ZodType<
|
|
71
|
+
InvalidateBySrcImagesRequest,
|
|
72
|
+
z.ZodTypeDef,
|
|
73
|
+
unknown
|
|
74
|
+
> = z.object({
|
|
75
|
+
projectIdOrName: z.string(),
|
|
76
|
+
teamId: z.string().optional(),
|
|
77
|
+
slug: z.string().optional(),
|
|
78
|
+
RequestBody: z.lazy(() => InvalidateBySrcImagesRequestBody$inboundSchema)
|
|
79
|
+
.optional(),
|
|
80
|
+
}).transform((v) => {
|
|
81
|
+
return remap$(v, {
|
|
82
|
+
"RequestBody": "requestBody",
|
|
83
|
+
});
|
|
84
|
+
});
|
|
85
|
+
/** @internal */
|
|
86
|
+
export type InvalidateBySrcImagesRequest$Outbound = {
|
|
87
|
+
projectIdOrName: string;
|
|
88
|
+
teamId?: string | undefined;
|
|
89
|
+
slug?: string | undefined;
|
|
90
|
+
RequestBody?: InvalidateBySrcImagesRequestBody$Outbound | undefined;
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
/** @internal */
|
|
94
|
+
export const InvalidateBySrcImagesRequest$outboundSchema: z.ZodType<
|
|
95
|
+
InvalidateBySrcImagesRequest$Outbound,
|
|
96
|
+
z.ZodTypeDef,
|
|
97
|
+
InvalidateBySrcImagesRequest
|
|
98
|
+
> = z.object({
|
|
99
|
+
projectIdOrName: z.string(),
|
|
100
|
+
teamId: z.string().optional(),
|
|
101
|
+
slug: z.string().optional(),
|
|
102
|
+
requestBody: z.lazy(() => InvalidateBySrcImagesRequestBody$outboundSchema)
|
|
103
|
+
.optional(),
|
|
104
|
+
}).transform((v) => {
|
|
105
|
+
return remap$(v, {
|
|
106
|
+
requestBody: "RequestBody",
|
|
107
|
+
});
|
|
108
|
+
});
|
|
109
|
+
|
|
110
|
+
export function invalidateBySrcImagesRequestToJSON(
|
|
111
|
+
invalidateBySrcImagesRequest: InvalidateBySrcImagesRequest,
|
|
112
|
+
): string {
|
|
113
|
+
return JSON.stringify(
|
|
114
|
+
InvalidateBySrcImagesRequest$outboundSchema.parse(
|
|
115
|
+
invalidateBySrcImagesRequest,
|
|
116
|
+
),
|
|
117
|
+
);
|
|
118
|
+
}
|
|
119
|
+
export function invalidateBySrcImagesRequestFromJSON(
|
|
120
|
+
jsonString: string,
|
|
121
|
+
): SafeParseResult<InvalidateBySrcImagesRequest, SDKValidationError> {
|
|
122
|
+
return safeParse(
|
|
123
|
+
jsonString,
|
|
124
|
+
(x) => InvalidateBySrcImagesRequest$inboundSchema.parse(JSON.parse(x)),
|
|
125
|
+
`Failed to parse 'InvalidateBySrcImagesRequest' from JSON`,
|
|
126
|
+
);
|
|
127
|
+
}
|
package/src/models/team.ts
CHANGED
|
@@ -20,14 +20,14 @@ export type Connect = {
|
|
|
20
20
|
* Information for the SAML Single Sign-On configuration.
|
|
21
21
|
*/
|
|
22
22
|
export type Connection = {
|
|
23
|
-
/**
|
|
24
|
-
* The Identity Provider "type", for example Okta.
|
|
25
|
-
*/
|
|
26
|
-
type: string;
|
|
27
23
|
/**
|
|
28
24
|
* Current status of the connection.
|
|
29
25
|
*/
|
|
30
26
|
status: string;
|
|
27
|
+
/**
|
|
28
|
+
* The Identity Provider "type", for example Okta.
|
|
29
|
+
*/
|
|
30
|
+
type: string;
|
|
31
31
|
/**
|
|
32
32
|
* Current state of the connection.
|
|
33
33
|
*/
|
|
@@ -344,14 +344,14 @@ export type TeamMembershipTeamPermissions = ClosedEnum<
|
|
|
344
344
|
>;
|
|
345
345
|
|
|
346
346
|
export const Origin = {
|
|
347
|
-
Link: "link",
|
|
348
347
|
Saml: "saml",
|
|
348
|
+
Gitlab: "gitlab",
|
|
349
|
+
Bitbucket: "bitbucket",
|
|
350
|
+
Github: "github",
|
|
351
|
+
Link: "link",
|
|
349
352
|
Mail: "mail",
|
|
350
353
|
Import: "import",
|
|
351
354
|
Teams: "teams",
|
|
352
|
-
Github: "github",
|
|
353
|
-
Gitlab: "gitlab",
|
|
354
|
-
Bitbucket: "bitbucket",
|
|
355
355
|
Dsync: "dsync",
|
|
356
356
|
Feedback: "feedback",
|
|
357
357
|
OrganizationTeams: "organization-teams",
|
|
@@ -380,12 +380,12 @@ export type JoinedFrom = {
|
|
|
380
380
|
export type Membership = {
|
|
381
381
|
uid?: string | undefined;
|
|
382
382
|
entitlements?: Array<Entitlements> | undefined;
|
|
383
|
-
teamId?: string | undefined;
|
|
384
383
|
confirmed: boolean;
|
|
385
384
|
accessRequestedAt?: number | undefined;
|
|
386
385
|
role: TeamRole;
|
|
387
386
|
teamRoles?: Array<TeamMembershipTeamRoles> | undefined;
|
|
388
387
|
teamPermissions?: Array<TeamMembershipTeamPermissions> | undefined;
|
|
388
|
+
teamId?: string | undefined;
|
|
389
389
|
createdAt: number;
|
|
390
390
|
created: number;
|
|
391
391
|
joinedFrom?: JoinedFrom | undefined;
|
|
@@ -539,16 +539,16 @@ export const Connection$inboundSchema: z.ZodType<
|
|
|
539
539
|
z.ZodTypeDef,
|
|
540
540
|
unknown
|
|
541
541
|
> = z.object({
|
|
542
|
-
type: z.string(),
|
|
543
542
|
status: z.string(),
|
|
543
|
+
type: z.string(),
|
|
544
544
|
state: z.string(),
|
|
545
545
|
connectedAt: z.number(),
|
|
546
546
|
lastReceivedWebhookEvent: z.number().optional(),
|
|
547
547
|
});
|
|
548
548
|
/** @internal */
|
|
549
549
|
export type Connection$Outbound = {
|
|
550
|
-
type: string;
|
|
551
550
|
status: string;
|
|
551
|
+
type: string;
|
|
552
552
|
state: string;
|
|
553
553
|
connectedAt: number;
|
|
554
554
|
lastReceivedWebhookEvent?: number | undefined;
|
|
@@ -560,8 +560,8 @@ export const Connection$outboundSchema: z.ZodType<
|
|
|
560
560
|
z.ZodTypeDef,
|
|
561
561
|
Connection
|
|
562
562
|
> = z.object({
|
|
563
|
-
type: z.string(),
|
|
564
563
|
status: z.string(),
|
|
564
|
+
type: z.string(),
|
|
565
565
|
state: z.string(),
|
|
566
566
|
connectedAt: z.number(),
|
|
567
567
|
lastReceivedWebhookEvent: z.number().optional(),
|
|
@@ -1366,13 +1366,13 @@ export const Membership$inboundSchema: z.ZodType<
|
|
|
1366
1366
|
> = z.object({
|
|
1367
1367
|
uid: z.string().optional(),
|
|
1368
1368
|
entitlements: z.array(z.lazy(() => Entitlements$inboundSchema)).optional(),
|
|
1369
|
-
teamId: z.string().optional(),
|
|
1370
1369
|
confirmed: z.boolean(),
|
|
1371
1370
|
accessRequestedAt: z.number().optional(),
|
|
1372
1371
|
role: TeamRole$inboundSchema,
|
|
1373
1372
|
teamRoles: z.array(TeamMembershipTeamRoles$inboundSchema).optional(),
|
|
1374
1373
|
teamPermissions: z.array(TeamMembershipTeamPermissions$inboundSchema)
|
|
1375
1374
|
.optional(),
|
|
1375
|
+
teamId: z.string().optional(),
|
|
1376
1376
|
createdAt: z.number(),
|
|
1377
1377
|
created: z.number(),
|
|
1378
1378
|
joinedFrom: z.lazy(() => JoinedFrom$inboundSchema).optional(),
|
|
@@ -1381,12 +1381,12 @@ export const Membership$inboundSchema: z.ZodType<
|
|
|
1381
1381
|
export type Membership$Outbound = {
|
|
1382
1382
|
uid?: string | undefined;
|
|
1383
1383
|
entitlements?: Array<Entitlements$Outbound> | undefined;
|
|
1384
|
-
teamId?: string | undefined;
|
|
1385
1384
|
confirmed: boolean;
|
|
1386
1385
|
accessRequestedAt?: number | undefined;
|
|
1387
1386
|
role: string;
|
|
1388
1387
|
teamRoles?: Array<string> | undefined;
|
|
1389
1388
|
teamPermissions?: Array<string> | undefined;
|
|
1389
|
+
teamId?: string | undefined;
|
|
1390
1390
|
createdAt: number;
|
|
1391
1391
|
created: number;
|
|
1392
1392
|
joinedFrom?: JoinedFrom$Outbound | undefined;
|
|
@@ -1400,13 +1400,13 @@ export const Membership$outboundSchema: z.ZodType<
|
|
|
1400
1400
|
> = z.object({
|
|
1401
1401
|
uid: z.string().optional(),
|
|
1402
1402
|
entitlements: z.array(z.lazy(() => Entitlements$outboundSchema)).optional(),
|
|
1403
|
-
teamId: z.string().optional(),
|
|
1404
1403
|
confirmed: z.boolean(),
|
|
1405
1404
|
accessRequestedAt: z.number().optional(),
|
|
1406
1405
|
role: TeamRole$outboundSchema,
|
|
1407
1406
|
teamRoles: z.array(TeamMembershipTeamRoles$outboundSchema).optional(),
|
|
1408
1407
|
teamPermissions: z.array(TeamMembershipTeamPermissions$outboundSchema)
|
|
1409
1408
|
.optional(),
|
|
1409
|
+
teamId: z.string().optional(),
|
|
1410
1410
|
createdAt: z.number(),
|
|
1411
1411
|
created: z.number(),
|
|
1412
1412
|
joinedFrom: z.lazy(() => JoinedFrom$outboundSchema).optional(),
|