@vercel/sdk 1.7.1 → 1.7.3
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 -36
- package/bin/mcp-server.js +2515 -1656
- package/bin/mcp-server.js.map +32 -16
- package/docs/sdks/logs/README.md +92 -0
- package/docs/sdks/vercel/README.md +312 -0
- package/esm/__tests__/accessgroups.test.js +0 -144
- package/esm/__tests__/accessgroups.test.js.map +1 -1
- package/esm/__tests__/aliases.test.js +0 -43
- package/esm/__tests__/aliases.test.js.map +1 -1
- package/esm/__tests__/artifacts.test.js +0 -20
- package/esm/__tests__/artifacts.test.js.map +1 -1
- package/esm/__tests__/authentication.test.js +0 -71
- package/esm/__tests__/authentication.test.js.map +1 -1
- package/esm/__tests__/certs.test.js +0 -27
- package/esm/__tests__/certs.test.js.map +1 -1
- package/esm/__tests__/checks.test.js +0 -46
- package/esm/__tests__/checks.test.js.map +1 -1
- package/esm/__tests__/deployments.test.js +0 -209
- package/esm/__tests__/deployments.test.js.map +1 -1
- package/esm/__tests__/dns.test.js +0 -10
- package/esm/__tests__/dns.test.js.map +1 -1
- package/esm/__tests__/domains.test.js +0 -142
- package/esm/__tests__/domains.test.js.map +1 -1
- package/esm/__tests__/edgeconfig.test.js +0 -71
- package/esm/__tests__/edgeconfig.test.js.map +1 -1
- package/esm/__tests__/environment.test.js +0 -34
- package/esm/__tests__/environment.test.js.map +1 -1
- package/esm/__tests__/integrations.test.js +0 -23
- package/esm/__tests__/integrations.test.js.map +1 -1
- package/esm/__tests__/logdrains.test.js +0 -114
- package/esm/__tests__/logdrains.test.js.map +1 -1
- package/esm/__tests__/logs.test.d.ts +2 -0
- package/esm/__tests__/logs.test.d.ts.map +1 -0
- package/esm/__tests__/logs.test.js +22 -0
- package/esm/__tests__/logs.test.js.map +1 -0
- package/esm/__tests__/marketplace.test.js +0 -49
- package/esm/__tests__/marketplace.test.js.map +1 -1
- package/esm/__tests__/projectmembers.test.js +0 -6
- package/esm/__tests__/projectmembers.test.js.map +1 -1
- package/esm/__tests__/projects.test.js +13 -474
- package/esm/__tests__/projects.test.js.map +1 -1
- package/esm/__tests__/security.test.js +0 -274
- package/esm/__tests__/security.test.js.map +1 -1
- package/esm/__tests__/teams.test.js +0 -92
- package/esm/__tests__/teams.test.js.map +1 -1
- package/esm/__tests__/user.test.js +0 -8
- package/esm/__tests__/user.test.js.map +1 -1
- package/esm/__tests__/vercel.test.js +56 -1
- package/esm/__tests__/vercel.test.js.map +1 -1
- package/esm/__tests__/webhooks.test.js +0 -94
- package/esm/__tests__/webhooks.test.js.map +1 -1
- package/esm/funcs/deleteProjectsProjectIdLogsPresetsId.d.ts +12 -0
- package/esm/funcs/deleteProjectsProjectIdLogsPresetsId.d.ts.map +1 -0
- package/esm/funcs/deleteProjectsProjectIdLogsPresetsId.js +80 -0
- package/esm/funcs/deleteProjectsProjectIdLogsPresetsId.js.map +1 -0
- package/esm/funcs/deploymentsUploadFile.js +1 -0
- package/esm/funcs/deploymentsUploadFile.js.map +1 -1
- package/esm/funcs/getProjectsProjectIdLogsPresets.d.ts +13 -0
- package/esm/funcs/getProjectsProjectIdLogsPresets.d.ts.map +1 -0
- package/esm/funcs/getProjectsProjectIdLogsPresets.js +77 -0
- package/esm/funcs/getProjectsProjectIdLogsPresets.js.map +1 -0
- package/esm/funcs/logsGetRuntimeLogs.d.ts +18 -0
- package/esm/funcs/logsGetRuntimeLogs.d.ts.map +1 -0
- package/esm/funcs/logsGetRuntimeLogs.js +97 -0
- package/esm/funcs/logsGetRuntimeLogs.js.map +1 -0
- package/esm/funcs/patchProjectsProjectIdLogsPresetsId.d.ts +14 -0
- package/esm/funcs/patchProjectsProjectIdLogsPresetsId.d.ts.map +1 -0
- package/esm/funcs/patchProjectsProjectIdLogsPresetsId.js +82 -0
- package/esm/funcs/patchProjectsProjectIdLogsPresetsId.js.map +1 -0
- package/esm/funcs/postProjectsProjectIdLogsPresets.d.ts +13 -0
- package/esm/funcs/postProjectsProjectIdLogsPresets.d.ts.map +1 -0
- package/esm/funcs/postProjectsProjectIdLogsPresets.js +77 -0
- package/esm/funcs/postProjectsProjectIdLogsPresets.js.map +1 -0
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/config.js.map +1 -1
- 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 +11 -1
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/deleteProjectsProjectIdLogsPresetsId.d.ts +7 -0
- package/esm/mcp-server/tools/deleteProjectsProjectIdLogsPresetsId.d.ts.map +1 -0
- package/esm/mcp-server/tools/deleteProjectsProjectIdLogsPresetsId.js +25 -0
- package/esm/mcp-server/tools/deleteProjectsProjectIdLogsPresetsId.js.map +1 -0
- package/esm/mcp-server/tools/getProjectsProjectIdLogsPresets.d.ts +7 -0
- package/esm/mcp-server/tools/getProjectsProjectIdLogsPresets.d.ts.map +1 -0
- package/esm/mcp-server/tools/getProjectsProjectIdLogsPresets.js +26 -0
- package/esm/mcp-server/tools/getProjectsProjectIdLogsPresets.js.map +1 -0
- package/esm/mcp-server/tools/logsGetRuntimeLogs.d.ts +7 -0
- package/esm/mcp-server/tools/logsGetRuntimeLogs.d.ts.map +1 -0
- package/esm/mcp-server/tools/logsGetRuntimeLogs.js +28 -0
- package/esm/mcp-server/tools/logsGetRuntimeLogs.js.map +1 -0
- package/esm/mcp-server/tools/patchProjectsProjectIdLogsPresetsId.d.ts +7 -0
- package/esm/mcp-server/tools/patchProjectsProjectIdLogsPresetsId.d.ts.map +1 -0
- package/esm/mcp-server/tools/patchProjectsProjectIdLogsPresetsId.js +26 -0
- package/esm/mcp-server/tools/patchProjectsProjectIdLogsPresetsId.js.map +1 -0
- package/esm/mcp-server/tools/postProjectsProjectIdLogsPresets.d.ts +7 -0
- package/esm/mcp-server/tools/postProjectsProjectIdLogsPresets.d.ts.map +1 -0
- package/esm/mcp-server/tools/postProjectsProjectIdLogsPresets.js +26 -0
- package/esm/mcp-server/tools/postProjectsProjectIdLogsPresets.js.map +1 -0
- package/esm/models/authuser.d.ts +0 -5
- package/esm/models/authuser.d.ts.map +1 -1
- package/esm/models/authuser.js +0 -2
- package/esm/models/authuser.js.map +1 -1
- package/esm/models/createprojectop.d.ts +2 -0
- package/esm/models/createprojectop.d.ts.map +1 -1
- package/esm/models/createprojectop.js +2 -0
- package/esm/models/createprojectop.js.map +1 -1
- package/esm/models/deleteprojectsprojectidlogspresetsidop.d.ts +37 -0
- package/esm/models/deleteprojectsprojectidlogspresetsidop.d.ts.map +1 -0
- package/esm/models/deleteprojectsprojectidlogspresetsidop.js +33 -0
- package/esm/models/deleteprojectsprojectidlogspresetsidop.js.map +1 -0
- package/esm/models/getprojectsop.d.ts +2 -0
- package/esm/models/getprojectsop.d.ts.map +1 -1
- package/esm/models/getprojectsop.js +2 -0
- package/esm/models/getprojectsop.js.map +1 -1
- package/esm/models/getprojectsprojectidlogspresetsop.d.ts +29 -0
- package/esm/models/getprojectsprojectidlogspresetsop.d.ts.map +1 -0
- package/esm/models/getprojectsprojectidlogspresetsop.js +31 -0
- package/esm/models/getprojectsprojectidlogspresetsop.js.map +1 -0
- package/esm/models/getruntimelogsop.d.ts +147 -0
- package/esm/models/getruntimelogsop.d.ts.map +1 -0
- package/esm/models/getruntimelogsop.js +122 -0
- package/esm/models/getruntimelogsop.js.map +1 -0
- package/esm/models/getteamsop.d.ts +5 -12
- package/esm/models/getteamsop.d.ts.map +1 -1
- package/esm/models/getteamsop.js +5 -4
- package/esm/models/getteamsop.js.map +1 -1
- package/esm/models/patchprojectsprojectidlogspresetsidop.d.ts +67 -0
- package/esm/models/patchprojectsprojectidlogspresetsidop.d.ts.map +1 -0
- package/esm/models/patchprojectsprojectidlogspresetsidop.js +69 -0
- package/esm/models/patchprojectsprojectidlogspresetsidop.js.map +1 -0
- package/esm/models/postprojectsprojectidlogspresetsop.d.ts +95 -0
- package/esm/models/postprojectsprojectidlogspresetsop.d.ts.map +1 -0
- package/esm/models/postprojectsprojectidlogspresetsop.js +90 -0
- package/esm/models/postprojectsprojectidlogspresetsop.js.map +1 -0
- package/esm/models/team.d.ts +78 -0
- package/esm/models/team.d.ts.map +1 -0
- package/esm/models/team.js +80 -0
- package/esm/models/team.js.map +1 -0
- package/esm/models/updateprojectdatacacheop.d.ts +2 -0
- package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
- package/esm/models/updateprojectdatacacheop.js +2 -0
- package/esm/models/updateprojectdatacacheop.js.map +1 -1
- package/esm/models/updateprojectop.d.ts +2 -0
- package/esm/models/updateprojectop.d.ts.map +1 -1
- package/esm/models/updateprojectop.js +2 -0
- package/esm/models/updateprojectop.js.map +1 -1
- package/esm/models/updateprojectprotectionbypassop.d.ts +2 -0
- package/esm/models/updateprojectprotectionbypassop.d.ts.map +1 -1
- package/esm/models/updateprojectprotectionbypassop.js +2 -0
- package/esm/models/updateprojectprotectionbypassop.js.map +1 -1
- package/esm/models/uploadfileop.d.ts +5 -0
- package/esm/models/uploadfileop.d.ts.map +1 -1
- package/esm/models/uploadfileop.js +4 -0
- package/esm/models/uploadfileop.js.map +1 -1
- package/esm/models/userevent.d.ts +1101 -985
- package/esm/models/userevent.d.ts.map +1 -1
- package/esm/models/userevent.js +1424 -1322
- package/esm/models/userevent.js.map +1 -1
- package/esm/sdk/logs.d.ts +12 -0
- package/esm/sdk/logs.d.ts.map +1 -0
- package/esm/sdk/logs.js +18 -0
- package/esm/sdk/logs.js.map +1 -0
- package/esm/sdk/sdk.d.ts +13 -1
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +21 -0
- package/esm/sdk/sdk.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/accessgroups.test.ts +0 -144
- package/src/__tests__/aliases.test.ts +0 -43
- package/src/__tests__/artifacts.test.ts +0 -22
- package/src/__tests__/authentication.test.ts +0 -71
- package/src/__tests__/certs.test.ts +0 -27
- package/src/__tests__/checks.test.ts +0 -46
- package/src/__tests__/deployments.test.ts +0 -211
- package/src/__tests__/dns.test.ts +0 -10
- package/src/__tests__/domains.test.ts +0 -142
- package/src/__tests__/edgeconfig.test.ts +0 -71
- package/src/__tests__/environment.test.ts +0 -34
- package/src/__tests__/integrations.test.ts +0 -23
- package/src/__tests__/logdrains.test.ts +0 -114
- package/src/__tests__/logs.test.ts +25 -0
- package/src/__tests__/marketplace.test.ts +0 -49
- package/src/__tests__/projectmembers.test.ts +0 -6
- package/src/__tests__/projects.test.ts +13 -474
- package/src/__tests__/security.test.ts +0 -274
- package/src/__tests__/teams.test.ts +0 -92
- package/src/__tests__/user.test.ts +0 -8
- package/src/__tests__/vercel.test.ts +77 -1
- package/src/__tests__/webhooks.test.ts +0 -94
- package/src/funcs/deleteProjectsProjectIdLogsPresetsId.ts +179 -0
- package/src/funcs/deploymentsUploadFile.ts +5 -0
- package/src/funcs/getProjectsProjectIdLogsPresets.ts +174 -0
- package/src/funcs/logsGetRuntimeLogs.ts +199 -0
- package/src/funcs/patchProjectsProjectIdLogsPresetsId.ts +188 -0
- package/src/funcs/postProjectsProjectIdLogsPresets.ts +174 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +11 -1
- package/src/mcp-server/tools/deleteProjectsProjectIdLogsPresetsId.ts +35 -0
- package/src/mcp-server/tools/getProjectsProjectIdLogsPresets.ts +36 -0
- package/src/mcp-server/tools/logsGetRuntimeLogs.ts +37 -0
- package/src/mcp-server/tools/patchProjectsProjectIdLogsPresetsId.ts +37 -0
- package/src/mcp-server/tools/postProjectsProjectIdLogsPresets.ts +37 -0
- package/src/models/authuser.ts +0 -7
- package/src/models/createprojectop.ts +4 -0
- package/src/models/deleteprojectsprojectidlogspresetsidop.ts +89 -0
- package/src/models/getprojectsop.ts +4 -0
- package/src/models/getprojectsprojectidlogspresetsop.ts +72 -0
- package/src/models/getruntimelogsop.ts +237 -0
- package/src/models/getteamsop.ts +14 -10
- package/src/models/patchprojectsprojectidlogspresetsidop.ts +180 -0
- package/src/models/postprojectsprojectidlogspresetsop.ts +217 -0
- package/src/models/team.ts +156 -0
- package/src/models/updateprojectdatacacheop.ts +4 -0
- package/src/models/updateprojectop.ts +4 -0
- package/src/models/updateprojectprotectionbypassop.ts +4 -0
- package/src/models/uploadfileop.ts +9 -0
- package/src/models/userevent.ts +2498 -2288
- package/src/sdk/logs.ts +30 -0
- package/src/sdk/sdk.ts +61 -1
- package/vercel-spec.json +572 -25
|
@@ -1753,6 +1753,7 @@ export type CreateProjectProtectionBypass1 = {
|
|
|
1753
1753
|
createdBy: string;
|
|
1754
1754
|
scope: CreateProjectProtectionBypassScope;
|
|
1755
1755
|
integrationId: string;
|
|
1756
|
+
configurationId: string;
|
|
1756
1757
|
};
|
|
1757
1758
|
|
|
1758
1759
|
export type CreateProjectProtectionBypass =
|
|
@@ -9413,6 +9414,7 @@ export const CreateProjectProtectionBypass1$inboundSchema: z.ZodType<
|
|
|
9413
9414
|
createdBy: z.string(),
|
|
9414
9415
|
scope: CreateProjectProtectionBypassScope$inboundSchema,
|
|
9415
9416
|
integrationId: z.string(),
|
|
9417
|
+
configurationId: z.string(),
|
|
9416
9418
|
});
|
|
9417
9419
|
|
|
9418
9420
|
/** @internal */
|
|
@@ -9421,6 +9423,7 @@ export type CreateProjectProtectionBypass1$Outbound = {
|
|
|
9421
9423
|
createdBy: string;
|
|
9422
9424
|
scope: string;
|
|
9423
9425
|
integrationId: string;
|
|
9426
|
+
configurationId: string;
|
|
9424
9427
|
};
|
|
9425
9428
|
|
|
9426
9429
|
/** @internal */
|
|
@@ -9433,6 +9436,7 @@ export const CreateProjectProtectionBypass1$outboundSchema: z.ZodType<
|
|
|
9433
9436
|
createdBy: z.string(),
|
|
9434
9437
|
scope: CreateProjectProtectionBypassScope$outboundSchema,
|
|
9435
9438
|
integrationId: z.string(),
|
|
9439
|
+
configurationId: z.string(),
|
|
9436
9440
|
});
|
|
9437
9441
|
|
|
9438
9442
|
/**
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "./sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type DeleteProjectsProjectIdLogsPresetsIdRequest = {
|
|
11
|
+
/**
|
|
12
|
+
* projectId of the preset
|
|
13
|
+
*/
|
|
14
|
+
projectId: string;
|
|
15
|
+
/**
|
|
16
|
+
* id of the preset
|
|
17
|
+
*/
|
|
18
|
+
id: string;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const DeleteProjectsProjectIdLogsPresetsIdRequest$inboundSchema:
|
|
23
|
+
z.ZodType<
|
|
24
|
+
DeleteProjectsProjectIdLogsPresetsIdRequest,
|
|
25
|
+
z.ZodTypeDef,
|
|
26
|
+
unknown
|
|
27
|
+
> = z.object({
|
|
28
|
+
projectId: z.string(),
|
|
29
|
+
id: z.string(),
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
/** @internal */
|
|
33
|
+
export type DeleteProjectsProjectIdLogsPresetsIdRequest$Outbound = {
|
|
34
|
+
projectId: string;
|
|
35
|
+
id: string;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
/** @internal */
|
|
39
|
+
export const DeleteProjectsProjectIdLogsPresetsIdRequest$outboundSchema:
|
|
40
|
+
z.ZodType<
|
|
41
|
+
DeleteProjectsProjectIdLogsPresetsIdRequest$Outbound,
|
|
42
|
+
z.ZodTypeDef,
|
|
43
|
+
DeleteProjectsProjectIdLogsPresetsIdRequest
|
|
44
|
+
> = z.object({
|
|
45
|
+
projectId: z.string(),
|
|
46
|
+
id: z.string(),
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @internal
|
|
51
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
52
|
+
*/
|
|
53
|
+
export namespace DeleteProjectsProjectIdLogsPresetsIdRequest$ {
|
|
54
|
+
/** @deprecated use `DeleteProjectsProjectIdLogsPresetsIdRequest$inboundSchema` instead. */
|
|
55
|
+
export const inboundSchema =
|
|
56
|
+
DeleteProjectsProjectIdLogsPresetsIdRequest$inboundSchema;
|
|
57
|
+
/** @deprecated use `DeleteProjectsProjectIdLogsPresetsIdRequest$outboundSchema` instead. */
|
|
58
|
+
export const outboundSchema =
|
|
59
|
+
DeleteProjectsProjectIdLogsPresetsIdRequest$outboundSchema;
|
|
60
|
+
/** @deprecated use `DeleteProjectsProjectIdLogsPresetsIdRequest$Outbound` instead. */
|
|
61
|
+
export type Outbound = DeleteProjectsProjectIdLogsPresetsIdRequest$Outbound;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function deleteProjectsProjectIdLogsPresetsIdRequestToJSON(
|
|
65
|
+
deleteProjectsProjectIdLogsPresetsIdRequest:
|
|
66
|
+
DeleteProjectsProjectIdLogsPresetsIdRequest,
|
|
67
|
+
): string {
|
|
68
|
+
return JSON.stringify(
|
|
69
|
+
DeleteProjectsProjectIdLogsPresetsIdRequest$outboundSchema.parse(
|
|
70
|
+
deleteProjectsProjectIdLogsPresetsIdRequest,
|
|
71
|
+
),
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function deleteProjectsProjectIdLogsPresetsIdRequestFromJSON(
|
|
76
|
+
jsonString: string,
|
|
77
|
+
): SafeParseResult<
|
|
78
|
+
DeleteProjectsProjectIdLogsPresetsIdRequest,
|
|
79
|
+
SDKValidationError
|
|
80
|
+
> {
|
|
81
|
+
return safeParse(
|
|
82
|
+
jsonString,
|
|
83
|
+
(x) =>
|
|
84
|
+
DeleteProjectsProjectIdLogsPresetsIdRequest$inboundSchema.parse(
|
|
85
|
+
JSON.parse(x),
|
|
86
|
+
),
|
|
87
|
+
`Failed to parse 'DeleteProjectsProjectIdLogsPresetsIdRequest' from JSON`,
|
|
88
|
+
);
|
|
89
|
+
}
|
|
@@ -1512,6 +1512,7 @@ export type GetProjectsProtectionBypass1 = {
|
|
|
1512
1512
|
createdBy: string;
|
|
1513
1513
|
scope: GetProjectsProtectionBypassScope;
|
|
1514
1514
|
integrationId: string;
|
|
1515
|
+
configurationId: string;
|
|
1515
1516
|
};
|
|
1516
1517
|
|
|
1517
1518
|
export type GetProjectsProtectionBypass =
|
|
@@ -8568,6 +8569,7 @@ export const GetProjectsProtectionBypass1$inboundSchema: z.ZodType<
|
|
|
8568
8569
|
createdBy: z.string(),
|
|
8569
8570
|
scope: GetProjectsProtectionBypassScope$inboundSchema,
|
|
8570
8571
|
integrationId: z.string(),
|
|
8572
|
+
configurationId: z.string(),
|
|
8571
8573
|
});
|
|
8572
8574
|
|
|
8573
8575
|
/** @internal */
|
|
@@ -8576,6 +8578,7 @@ export type GetProjectsProtectionBypass1$Outbound = {
|
|
|
8576
8578
|
createdBy: string;
|
|
8577
8579
|
scope: string;
|
|
8578
8580
|
integrationId: string;
|
|
8581
|
+
configurationId: string;
|
|
8579
8582
|
};
|
|
8580
8583
|
|
|
8581
8584
|
/** @internal */
|
|
@@ -8588,6 +8591,7 @@ export const GetProjectsProtectionBypass1$outboundSchema: z.ZodType<
|
|
|
8588
8591
|
createdBy: z.string(),
|
|
8589
8592
|
scope: GetProjectsProtectionBypassScope$outboundSchema,
|
|
8590
8593
|
integrationId: z.string(),
|
|
8594
|
+
configurationId: z.string(),
|
|
8591
8595
|
});
|
|
8592
8596
|
|
|
8593
8597
|
/**
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "./sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type GetProjectsProjectIdLogsPresetsRequest = {
|
|
11
|
+
projectId: string;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export const GetProjectsProjectIdLogsPresetsRequest$inboundSchema: z.ZodType<
|
|
16
|
+
GetProjectsProjectIdLogsPresetsRequest,
|
|
17
|
+
z.ZodTypeDef,
|
|
18
|
+
unknown
|
|
19
|
+
> = z.object({
|
|
20
|
+
projectId: z.string(),
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export type GetProjectsProjectIdLogsPresetsRequest$Outbound = {
|
|
25
|
+
projectId: string;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const GetProjectsProjectIdLogsPresetsRequest$outboundSchema: z.ZodType<
|
|
30
|
+
GetProjectsProjectIdLogsPresetsRequest$Outbound,
|
|
31
|
+
z.ZodTypeDef,
|
|
32
|
+
GetProjectsProjectIdLogsPresetsRequest
|
|
33
|
+
> = z.object({
|
|
34
|
+
projectId: z.string(),
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @internal
|
|
39
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
40
|
+
*/
|
|
41
|
+
export namespace GetProjectsProjectIdLogsPresetsRequest$ {
|
|
42
|
+
/** @deprecated use `GetProjectsProjectIdLogsPresetsRequest$inboundSchema` instead. */
|
|
43
|
+
export const inboundSchema =
|
|
44
|
+
GetProjectsProjectIdLogsPresetsRequest$inboundSchema;
|
|
45
|
+
/** @deprecated use `GetProjectsProjectIdLogsPresetsRequest$outboundSchema` instead. */
|
|
46
|
+
export const outboundSchema =
|
|
47
|
+
GetProjectsProjectIdLogsPresetsRequest$outboundSchema;
|
|
48
|
+
/** @deprecated use `GetProjectsProjectIdLogsPresetsRequest$Outbound` instead. */
|
|
49
|
+
export type Outbound = GetProjectsProjectIdLogsPresetsRequest$Outbound;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function getProjectsProjectIdLogsPresetsRequestToJSON(
|
|
53
|
+
getProjectsProjectIdLogsPresetsRequest:
|
|
54
|
+
GetProjectsProjectIdLogsPresetsRequest,
|
|
55
|
+
): string {
|
|
56
|
+
return JSON.stringify(
|
|
57
|
+
GetProjectsProjectIdLogsPresetsRequest$outboundSchema.parse(
|
|
58
|
+
getProjectsProjectIdLogsPresetsRequest,
|
|
59
|
+
),
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function getProjectsProjectIdLogsPresetsRequestFromJSON(
|
|
64
|
+
jsonString: string,
|
|
65
|
+
): SafeParseResult<GetProjectsProjectIdLogsPresetsRequest, SDKValidationError> {
|
|
66
|
+
return safeParse(
|
|
67
|
+
jsonString,
|
|
68
|
+
(x) =>
|
|
69
|
+
GetProjectsProjectIdLogsPresetsRequest$inboundSchema.parse(JSON.parse(x)),
|
|
70
|
+
`Failed to parse 'GetProjectsProjectIdLogsPresetsRequest' from JSON`,
|
|
71
|
+
);
|
|
72
|
+
}
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "./sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type GetRuntimeLogsRequest = {
|
|
12
|
+
projectId: string;
|
|
13
|
+
deploymentId: string;
|
|
14
|
+
/**
|
|
15
|
+
* The Team identifier to perform the request on behalf of.
|
|
16
|
+
*/
|
|
17
|
+
teamId?: string | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* The Team slug to perform the request on behalf of.
|
|
20
|
+
*/
|
|
21
|
+
slug?: string | undefined;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export const GetRuntimeLogsLevel = {
|
|
25
|
+
Error: "error",
|
|
26
|
+
Warning: "warning",
|
|
27
|
+
Info: "info",
|
|
28
|
+
} as const;
|
|
29
|
+
export type GetRuntimeLogsLevel = ClosedEnum<typeof GetRuntimeLogsLevel>;
|
|
30
|
+
|
|
31
|
+
export const GetRuntimeLogsSource = {
|
|
32
|
+
Delimiter: "delimiter",
|
|
33
|
+
EdgeFunction: "edge-function",
|
|
34
|
+
EdgeMiddleware: "edge-middleware",
|
|
35
|
+
Serverless: "serverless",
|
|
36
|
+
Request: "request",
|
|
37
|
+
} as const;
|
|
38
|
+
export type GetRuntimeLogsSource = ClosedEnum<typeof GetRuntimeLogsSource>;
|
|
39
|
+
|
|
40
|
+
export type GetRuntimeLogsResponseBody = {
|
|
41
|
+
level: GetRuntimeLogsLevel;
|
|
42
|
+
message: string;
|
|
43
|
+
rowId: string;
|
|
44
|
+
source: GetRuntimeLogsSource;
|
|
45
|
+
timestampInMs: number;
|
|
46
|
+
domain: string;
|
|
47
|
+
messageTruncated: boolean;
|
|
48
|
+
requestMethod: string;
|
|
49
|
+
requestPath: string;
|
|
50
|
+
responseStatusCode: number;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
/** @internal */
|
|
54
|
+
export const GetRuntimeLogsRequest$inboundSchema: z.ZodType<
|
|
55
|
+
GetRuntimeLogsRequest,
|
|
56
|
+
z.ZodTypeDef,
|
|
57
|
+
unknown
|
|
58
|
+
> = z.object({
|
|
59
|
+
projectId: z.string(),
|
|
60
|
+
deploymentId: z.string(),
|
|
61
|
+
teamId: z.string().optional(),
|
|
62
|
+
slug: z.string().optional(),
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
/** @internal */
|
|
66
|
+
export type GetRuntimeLogsRequest$Outbound = {
|
|
67
|
+
projectId: string;
|
|
68
|
+
deploymentId: string;
|
|
69
|
+
teamId?: string | undefined;
|
|
70
|
+
slug?: string | undefined;
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
/** @internal */
|
|
74
|
+
export const GetRuntimeLogsRequest$outboundSchema: z.ZodType<
|
|
75
|
+
GetRuntimeLogsRequest$Outbound,
|
|
76
|
+
z.ZodTypeDef,
|
|
77
|
+
GetRuntimeLogsRequest
|
|
78
|
+
> = z.object({
|
|
79
|
+
projectId: z.string(),
|
|
80
|
+
deploymentId: z.string(),
|
|
81
|
+
teamId: z.string().optional(),
|
|
82
|
+
slug: z.string().optional(),
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* @internal
|
|
87
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
88
|
+
*/
|
|
89
|
+
export namespace GetRuntimeLogsRequest$ {
|
|
90
|
+
/** @deprecated use `GetRuntimeLogsRequest$inboundSchema` instead. */
|
|
91
|
+
export const inboundSchema = GetRuntimeLogsRequest$inboundSchema;
|
|
92
|
+
/** @deprecated use `GetRuntimeLogsRequest$outboundSchema` instead. */
|
|
93
|
+
export const outboundSchema = GetRuntimeLogsRequest$outboundSchema;
|
|
94
|
+
/** @deprecated use `GetRuntimeLogsRequest$Outbound` instead. */
|
|
95
|
+
export type Outbound = GetRuntimeLogsRequest$Outbound;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export function getRuntimeLogsRequestToJSON(
|
|
99
|
+
getRuntimeLogsRequest: GetRuntimeLogsRequest,
|
|
100
|
+
): string {
|
|
101
|
+
return JSON.stringify(
|
|
102
|
+
GetRuntimeLogsRequest$outboundSchema.parse(getRuntimeLogsRequest),
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export function getRuntimeLogsRequestFromJSON(
|
|
107
|
+
jsonString: string,
|
|
108
|
+
): SafeParseResult<GetRuntimeLogsRequest, SDKValidationError> {
|
|
109
|
+
return safeParse(
|
|
110
|
+
jsonString,
|
|
111
|
+
(x) => GetRuntimeLogsRequest$inboundSchema.parse(JSON.parse(x)),
|
|
112
|
+
`Failed to parse 'GetRuntimeLogsRequest' from JSON`,
|
|
113
|
+
);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/** @internal */
|
|
117
|
+
export const GetRuntimeLogsLevel$inboundSchema: z.ZodNativeEnum<
|
|
118
|
+
typeof GetRuntimeLogsLevel
|
|
119
|
+
> = z.nativeEnum(GetRuntimeLogsLevel);
|
|
120
|
+
|
|
121
|
+
/** @internal */
|
|
122
|
+
export const GetRuntimeLogsLevel$outboundSchema: z.ZodNativeEnum<
|
|
123
|
+
typeof GetRuntimeLogsLevel
|
|
124
|
+
> = GetRuntimeLogsLevel$inboundSchema;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* @internal
|
|
128
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
129
|
+
*/
|
|
130
|
+
export namespace GetRuntimeLogsLevel$ {
|
|
131
|
+
/** @deprecated use `GetRuntimeLogsLevel$inboundSchema` instead. */
|
|
132
|
+
export const inboundSchema = GetRuntimeLogsLevel$inboundSchema;
|
|
133
|
+
/** @deprecated use `GetRuntimeLogsLevel$outboundSchema` instead. */
|
|
134
|
+
export const outboundSchema = GetRuntimeLogsLevel$outboundSchema;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/** @internal */
|
|
138
|
+
export const GetRuntimeLogsSource$inboundSchema: z.ZodNativeEnum<
|
|
139
|
+
typeof GetRuntimeLogsSource
|
|
140
|
+
> = z.nativeEnum(GetRuntimeLogsSource);
|
|
141
|
+
|
|
142
|
+
/** @internal */
|
|
143
|
+
export const GetRuntimeLogsSource$outboundSchema: z.ZodNativeEnum<
|
|
144
|
+
typeof GetRuntimeLogsSource
|
|
145
|
+
> = GetRuntimeLogsSource$inboundSchema;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* @internal
|
|
149
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
150
|
+
*/
|
|
151
|
+
export namespace GetRuntimeLogsSource$ {
|
|
152
|
+
/** @deprecated use `GetRuntimeLogsSource$inboundSchema` instead. */
|
|
153
|
+
export const inboundSchema = GetRuntimeLogsSource$inboundSchema;
|
|
154
|
+
/** @deprecated use `GetRuntimeLogsSource$outboundSchema` instead. */
|
|
155
|
+
export const outboundSchema = GetRuntimeLogsSource$outboundSchema;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/** @internal */
|
|
159
|
+
export const GetRuntimeLogsResponseBody$inboundSchema: z.ZodType<
|
|
160
|
+
GetRuntimeLogsResponseBody,
|
|
161
|
+
z.ZodTypeDef,
|
|
162
|
+
unknown
|
|
163
|
+
> = z.object({
|
|
164
|
+
level: GetRuntimeLogsLevel$inboundSchema,
|
|
165
|
+
message: z.string(),
|
|
166
|
+
rowId: z.string(),
|
|
167
|
+
source: GetRuntimeLogsSource$inboundSchema,
|
|
168
|
+
timestampInMs: z.number(),
|
|
169
|
+
domain: z.string(),
|
|
170
|
+
messageTruncated: z.boolean(),
|
|
171
|
+
requestMethod: z.string(),
|
|
172
|
+
requestPath: z.string(),
|
|
173
|
+
responseStatusCode: z.number(),
|
|
174
|
+
});
|
|
175
|
+
|
|
176
|
+
/** @internal */
|
|
177
|
+
export type GetRuntimeLogsResponseBody$Outbound = {
|
|
178
|
+
level: string;
|
|
179
|
+
message: string;
|
|
180
|
+
rowId: string;
|
|
181
|
+
source: string;
|
|
182
|
+
timestampInMs: number;
|
|
183
|
+
domain: string;
|
|
184
|
+
messageTruncated: boolean;
|
|
185
|
+
requestMethod: string;
|
|
186
|
+
requestPath: string;
|
|
187
|
+
responseStatusCode: number;
|
|
188
|
+
};
|
|
189
|
+
|
|
190
|
+
/** @internal */
|
|
191
|
+
export const GetRuntimeLogsResponseBody$outboundSchema: z.ZodType<
|
|
192
|
+
GetRuntimeLogsResponseBody$Outbound,
|
|
193
|
+
z.ZodTypeDef,
|
|
194
|
+
GetRuntimeLogsResponseBody
|
|
195
|
+
> = z.object({
|
|
196
|
+
level: GetRuntimeLogsLevel$outboundSchema,
|
|
197
|
+
message: z.string(),
|
|
198
|
+
rowId: z.string(),
|
|
199
|
+
source: GetRuntimeLogsSource$outboundSchema,
|
|
200
|
+
timestampInMs: z.number(),
|
|
201
|
+
domain: z.string(),
|
|
202
|
+
messageTruncated: z.boolean(),
|
|
203
|
+
requestMethod: z.string(),
|
|
204
|
+
requestPath: z.string(),
|
|
205
|
+
responseStatusCode: z.number(),
|
|
206
|
+
});
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* @internal
|
|
210
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
211
|
+
*/
|
|
212
|
+
export namespace GetRuntimeLogsResponseBody$ {
|
|
213
|
+
/** @deprecated use `GetRuntimeLogsResponseBody$inboundSchema` instead. */
|
|
214
|
+
export const inboundSchema = GetRuntimeLogsResponseBody$inboundSchema;
|
|
215
|
+
/** @deprecated use `GetRuntimeLogsResponseBody$outboundSchema` instead. */
|
|
216
|
+
export const outboundSchema = GetRuntimeLogsResponseBody$outboundSchema;
|
|
217
|
+
/** @deprecated use `GetRuntimeLogsResponseBody$Outbound` instead. */
|
|
218
|
+
export type Outbound = GetRuntimeLogsResponseBody$Outbound;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
export function getRuntimeLogsResponseBodyToJSON(
|
|
222
|
+
getRuntimeLogsResponseBody: GetRuntimeLogsResponseBody,
|
|
223
|
+
): string {
|
|
224
|
+
return JSON.stringify(
|
|
225
|
+
GetRuntimeLogsResponseBody$outboundSchema.parse(getRuntimeLogsResponseBody),
|
|
226
|
+
);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
export function getRuntimeLogsResponseBodyFromJSON(
|
|
230
|
+
jsonString: string,
|
|
231
|
+
): SafeParseResult<GetRuntimeLogsResponseBody, SDKValidationError> {
|
|
232
|
+
return safeParse(
|
|
233
|
+
jsonString,
|
|
234
|
+
(x) => GetRuntimeLogsResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
235
|
+
`Failed to parse 'GetRuntimeLogsResponseBody' from JSON`,
|
|
236
|
+
);
|
|
237
|
+
}
|
package/src/models/getteamsop.ts
CHANGED
|
@@ -12,6 +12,12 @@ import {
|
|
|
12
12
|
Pagination$outboundSchema,
|
|
13
13
|
} from "./pagination.js";
|
|
14
14
|
import { SDKValidationError } from "./sdkvalidationerror.js";
|
|
15
|
+
import {
|
|
16
|
+
Team,
|
|
17
|
+
Team$inboundSchema,
|
|
18
|
+
Team$Outbound,
|
|
19
|
+
Team$outboundSchema,
|
|
20
|
+
} from "./team.js";
|
|
15
21
|
import {
|
|
16
22
|
TeamLimited,
|
|
17
23
|
TeamLimited$inboundSchema,
|
|
@@ -34,13 +40,13 @@ export type GetTeamsRequest = {
|
|
|
34
40
|
until?: number | undefined;
|
|
35
41
|
};
|
|
36
42
|
|
|
37
|
-
export type GetTeamsTeams =
|
|
43
|
+
export type GetTeamsTeams = Team | TeamLimited;
|
|
38
44
|
|
|
39
45
|
/**
|
|
40
46
|
* A paginated list of teams.
|
|
41
47
|
*/
|
|
42
48
|
export type GetTeamsResponseBody = {
|
|
43
|
-
teams: Array<
|
|
49
|
+
teams: Array<Team | TeamLimited>;
|
|
44
50
|
/**
|
|
45
51
|
* This object contains information related to the pagination of the current request, including the necessary parameters to get the next or previous page of data.
|
|
46
52
|
*/
|
|
@@ -110,19 +116,17 @@ export const GetTeamsTeams$inboundSchema: z.ZodType<
|
|
|
110
116
|
GetTeamsTeams,
|
|
111
117
|
z.ZodTypeDef,
|
|
112
118
|
unknown
|
|
113
|
-
> = z.union([
|
|
119
|
+
> = z.union([Team$inboundSchema, TeamLimited$inboundSchema]);
|
|
114
120
|
|
|
115
121
|
/** @internal */
|
|
116
|
-
export type GetTeamsTeams$Outbound =
|
|
117
|
-
[k: string]: any;
|
|
118
|
-
};
|
|
122
|
+
export type GetTeamsTeams$Outbound = Team$Outbound | TeamLimited$Outbound;
|
|
119
123
|
|
|
120
124
|
/** @internal */
|
|
121
125
|
export const GetTeamsTeams$outboundSchema: z.ZodType<
|
|
122
126
|
GetTeamsTeams$Outbound,
|
|
123
127
|
z.ZodTypeDef,
|
|
124
128
|
GetTeamsTeams
|
|
125
|
-
> = z.union([
|
|
129
|
+
> = z.union([Team$outboundSchema, TeamLimited$outboundSchema]);
|
|
126
130
|
|
|
127
131
|
/**
|
|
128
132
|
* @internal
|
|
@@ -157,13 +161,13 @@ export const GetTeamsResponseBody$inboundSchema: z.ZodType<
|
|
|
157
161
|
z.ZodTypeDef,
|
|
158
162
|
unknown
|
|
159
163
|
> = z.object({
|
|
160
|
-
teams: z.array(z.union([
|
|
164
|
+
teams: z.array(z.union([Team$inboundSchema, TeamLimited$inboundSchema])),
|
|
161
165
|
pagination: Pagination$inboundSchema,
|
|
162
166
|
});
|
|
163
167
|
|
|
164
168
|
/** @internal */
|
|
165
169
|
export type GetTeamsResponseBody$Outbound = {
|
|
166
|
-
teams: Array<
|
|
170
|
+
teams: Array<Team$Outbound | TeamLimited$Outbound>;
|
|
167
171
|
pagination: Pagination$Outbound;
|
|
168
172
|
};
|
|
169
173
|
|
|
@@ -173,7 +177,7 @@ export const GetTeamsResponseBody$outboundSchema: z.ZodType<
|
|
|
173
177
|
z.ZodTypeDef,
|
|
174
178
|
GetTeamsResponseBody
|
|
175
179
|
> = z.object({
|
|
176
|
-
teams: z.array(z.union([
|
|
180
|
+
teams: z.array(z.union([Team$outboundSchema, TeamLimited$outboundSchema])),
|
|
177
181
|
pagination: Pagination$outboundSchema,
|
|
178
182
|
});
|
|
179
183
|
|