@vercel/sdk 1.8.2 → 1.8.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/bin/mcp-server.js +1384 -1354
- package/bin/mcp-server.js.map +45 -45
- package/docs/sdks/edgeconfig/README.md +1 -1
- package/esm/__tests__/deployments.test.js +1 -1
- package/esm/__tests__/deployments.test.js.map +1 -1
- package/esm/__tests__/edgeconfig.test.js +1 -22
- package/esm/__tests__/edgeconfig.test.js.map +1 -1
- package/esm/__tests__/projects.test.js +13 -15
- package/esm/__tests__/projects.test.js.map +1 -1
- package/esm/funcs/edgeConfigGetEdgeConfigItems.d.ts +1 -1
- package/esm/funcs/edgeConfigGetEdgeConfigItems.d.ts.map +1 -1
- package/esm/funcs/edgeConfigGetEdgeConfigItems.js +2 -1
- package/esm/funcs/edgeConfigGetEdgeConfigItems.js.map +1 -1
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/security.d.ts +2 -2
- package/esm/lib/security.d.ts.map +1 -1
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/server.js +1 -1
- package/esm/models/addbypassipop.d.ts +2 -2
- package/esm/models/addbypassipop.js +2 -2
- package/esm/models/artifactqueryop.d.ts +2 -2
- package/esm/models/artifactqueryop.js +2 -2
- package/esm/models/authtoken.d.ts +4 -4
- package/esm/models/authtoken.js +4 -4
- package/esm/models/canceldeploymentop.d.ts +20 -20
- package/esm/models/canceldeploymentop.d.ts.map +1 -1
- package/esm/models/canceldeploymentop.js +44 -44
- package/esm/models/canceldeploymentop.js.map +1 -1
- package/esm/models/createdeploymentop.d.ts +54 -54
- package/esm/models/createdeploymentop.d.ts.map +1 -1
- package/esm/models/createdeploymentop.js +78 -78
- package/esm/models/createdeploymentop.js.map +1 -1
- package/esm/models/createeventop.d.ts +4 -4
- package/esm/models/createeventop.js +4 -4
- package/esm/models/createortransferdomainop.d.ts +4 -4
- package/esm/models/createortransferdomainop.js +4 -4
- package/esm/models/createprojectenvop.d.ts +8 -8
- package/esm/models/createprojectenvop.d.ts.map +1 -1
- package/esm/models/createprojectenvop.js +8 -8
- package/esm/models/createprojectenvop.js.map +1 -1
- package/esm/models/createprojectop.d.ts +20 -20
- package/esm/models/createprojectop.d.ts.map +1 -1
- package/esm/models/createprojectop.js +20 -20
- package/esm/models/createprojectop.js.map +1 -1
- package/esm/models/createrecordop.d.ts +6 -6
- package/esm/models/createrecordop.d.ts.map +1 -1
- package/esm/models/createrecordop.js +18 -18
- package/esm/models/createrecordop.js.map +1 -1
- package/esm/models/editprojectenvop.d.ts +6 -6
- package/esm/models/editprojectenvop.d.ts.map +1 -1
- package/esm/models/editprojectenvop.js +6 -6
- package/esm/models/editprojectenvop.js.map +1 -1
- package/esm/models/filterprojectenvsop.d.ts +23 -23
- package/esm/models/filterprojectenvsop.d.ts.map +1 -1
- package/esm/models/filterprojectenvsop.js +17 -17
- package/esm/models/filterprojectenvsop.js.map +1 -1
- package/esm/models/getactiveattackstatusop.d.ts +2 -2
- package/esm/models/getactiveattackstatusop.js +2 -2
- package/esm/models/getaliasop.d.ts +4 -4
- package/esm/models/getaliasop.d.ts.map +1 -1
- package/esm/models/getaliasop.js +8 -8
- package/esm/models/getaliasop.js.map +1 -1
- package/esm/models/getauthuserop.d.ts +4 -4
- package/esm/models/getauthuserop.d.ts.map +1 -1
- package/esm/models/getauthuserop.js +4 -4
- package/esm/models/getauthuserop.js.map +1 -1
- package/esm/models/getconfigurationop.d.ts +67 -6
- package/esm/models/getconfigurationop.d.ts.map +1 -1
- package/esm/models/getconfigurationop.js +59 -6
- package/esm/models/getconfigurationop.js.map +1 -1
- package/esm/models/getdeploymenteventsop.d.ts +6 -6
- package/esm/models/getdeploymenteventsop.js +8 -8
- package/esm/models/getdeploymentop.d.ts +30 -30
- package/esm/models/getdeploymentop.d.ts.map +1 -1
- package/esm/models/getdeploymentop.js +78 -78
- package/esm/models/getdeploymentop.js.map +1 -1
- package/esm/models/getedgeconfigbackupop.d.ts +2 -2
- package/esm/models/getedgeconfigbackupop.js +2 -2
- package/esm/models/getprojectenvop.d.ts +23 -23
- package/esm/models/getprojectenvop.d.ts.map +1 -1
- package/esm/models/getprojectenvop.js +17 -17
- package/esm/models/getprojectenvop.js.map +1 -1
- package/esm/models/getprojectmembersop.d.ts +2 -2
- package/esm/models/getprojectmembersop.js +2 -2
- package/esm/models/getprojectsop.d.ts +148 -148
- package/esm/models/getprojectsop.d.ts.map +1 -1
- package/esm/models/getprojectsop.js +152 -152
- package/esm/models/getprojectsop.js.map +1 -1
- package/esm/models/getrecordsop.d.ts +2 -2
- package/esm/models/getrecordsop.d.ts.map +1 -1
- package/esm/models/getrecordsop.js +2 -2
- package/esm/models/getrecordsop.js.map +1 -1
- package/esm/models/getteamsop.d.ts +4 -4
- package/esm/models/getteamsop.d.ts.map +1 -1
- package/esm/models/getteamsop.js +4 -4
- package/esm/models/getteamsop.js.map +1 -1
- package/esm/models/inviteusertoteamop.d.ts +2 -2
- package/esm/models/inviteusertoteamop.js +2 -2
- package/esm/models/listaccessgroupsop.d.ts +2 -2
- package/esm/models/listaccessgroupsop.js +2 -2
- package/esm/models/listaliasesop.d.ts +4 -4
- package/esm/models/listaliasesop.js +8 -8
- package/esm/models/listdeploymentaliasesop.d.ts +4 -4
- package/esm/models/listdeploymentaliasesop.js +8 -8
- package/esm/models/listpromotealiasesop.d.ts +2 -2
- package/esm/models/listpromotealiasesop.js +2 -2
- package/esm/models/patchdomainop.d.ts +6 -6
- package/esm/models/patchdomainop.js +6 -6
- package/esm/models/patchurlprotectionbypassop.d.ts +4 -4
- package/esm/models/patchurlprotectionbypassop.js +4 -4
- package/esm/models/removeprojectenvop.d.ts +14 -14
- package/esm/models/removeprojectenvop.d.ts.map +1 -1
- package/esm/models/removeprojectenvop.js +14 -14
- package/esm/models/removeprojectenvop.js.map +1 -1
- package/esm/models/updatefirewallconfigop.d.ts +4 -4
- package/esm/models/updatefirewallconfigop.d.ts.map +1 -1
- package/esm/models/updatefirewallconfigop.js +24 -24
- package/esm/models/updatefirewallconfigop.js.map +1 -1
- package/esm/models/updateprojectdatacacheop.d.ts +20 -20
- package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
- package/esm/models/updateprojectdatacacheop.js +20 -20
- package/esm/models/updateprojectdatacacheop.js.map +1 -1
- package/esm/models/updateprojectop.d.ts +20 -20
- package/esm/models/updateprojectop.d.ts.map +1 -1
- package/esm/models/updateprojectop.js +20 -20
- package/esm/models/updateprojectop.js.map +1 -1
- package/esm/models/updateprojectprotectionbypassop.d.ts +4 -4
- package/esm/models/updateprojectprotectionbypassop.js +4 -4
- package/esm/models/uploadfileop.d.ts +2 -2
- package/esm/models/uploadfileop.js +2 -2
- package/esm/models/userevent.d.ts +24 -24
- package/esm/models/userevent.d.ts.map +1 -1
- package/esm/models/userevent.js +467 -467
- package/esm/models/userevent.js.map +1 -1
- package/esm/sdk/edgeconfig.d.ts +1 -1
- package/esm/sdk/edgeconfig.d.ts.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/deployments.test.ts +1 -1
- package/src/__tests__/edgeconfig.test.ts +1 -22
- package/src/__tests__/projects.test.ts +13 -15
- package/src/funcs/edgeConfigGetEdgeConfigItems.ts +5 -4
- package/src/lib/config.ts +3 -3
- package/src/lib/security.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/addbypassipop.ts +6 -6
- package/src/models/artifactqueryop.ts +5 -5
- package/src/models/authtoken.ts +8 -8
- package/src/models/canceldeploymentop.ts +98 -98
- package/src/models/createdeploymentop.ts +153 -153
- package/src/models/createeventop.ts +8 -8
- package/src/models/createortransferdomainop.ts +10 -10
- package/src/models/createprojectenvop.ts +20 -20
- package/src/models/createprojectop.ts +52 -52
- package/src/models/createrecordop.ts +38 -38
- package/src/models/editprojectenvop.ts +16 -16
- package/src/models/filterprojectenvsop.ts +41 -43
- package/src/models/getactiveattackstatusop.ts +6 -6
- package/src/models/getaliasop.ts +20 -20
- package/src/models/getauthuserop.ts +9 -9
- package/src/models/getconfigurationop.ts +120 -15
- package/src/models/getdeploymenteventsop.ts +26 -26
- package/src/models/getdeploymentop.ts +170 -170
- package/src/models/getedgeconfigbackupop.ts +6 -6
- package/src/models/getprojectenvop.ts +39 -39
- package/src/models/getprojectmembersop.ts +6 -6
- package/src/models/getprojectsop.ts +311 -311
- package/src/models/getrecordsop.ts +4 -4
- package/src/models/getteamsop.ts +8 -8
- package/src/models/inviteusertoteamop.ts +6 -6
- package/src/models/listaccessgroupsop.ts +6 -6
- package/src/models/listaliasesop.ts +20 -20
- package/src/models/listdeploymentaliasesop.ts +20 -20
- package/src/models/listpromotealiasesop.ts +6 -6
- package/src/models/patchdomainop.ts +15 -15
- package/src/models/patchurlprotectionbypassop.ts +10 -10
- package/src/models/removeprojectenvop.ts +36 -38
- package/src/models/updatefirewallconfigop.ts +52 -52
- package/src/models/updateprojectdatacacheop.ts +47 -47
- package/src/models/updateprojectop.ts +52 -52
- package/src/models/updateprojectprotectionbypassop.ts +14 -14
- package/src/models/uploadfileop.ts +6 -6
- package/src/models/userevent.ts +955 -955
- package/src/sdk/edgeconfig.ts +1 -1
- package/vercel-spec.json +259 -229
package/src/models/getaliasop.ts
CHANGED
|
@@ -149,10 +149,10 @@ export type GetAliasProtectionBypass1 = {
|
|
|
149
149
|
};
|
|
150
150
|
|
|
151
151
|
export type GetAliasProtectionBypass =
|
|
152
|
-
|
|
|
153
|
-
| ProtectionBypass3
|
|
152
|
+
| GetAliasProtectionBypass2
|
|
154
153
|
| ProtectionBypass4
|
|
155
|
-
|
|
|
154
|
+
| GetAliasProtectionBypass1
|
|
155
|
+
| ProtectionBypass3;
|
|
156
156
|
|
|
157
157
|
export type DefaultApp = {
|
|
158
158
|
projectId: string;
|
|
@@ -248,10 +248,10 @@ export type GetAliasResponseBody = {
|
|
|
248
248
|
*/
|
|
249
249
|
protectionBypass?: {
|
|
250
250
|
[k: string]:
|
|
251
|
-
|
|
|
252
|
-
| ProtectionBypass3
|
|
251
|
+
| GetAliasProtectionBypass2
|
|
253
252
|
| ProtectionBypass4
|
|
254
|
-
|
|
|
253
|
+
| GetAliasProtectionBypass1
|
|
254
|
+
| ProtectionBypass3;
|
|
255
255
|
} | undefined;
|
|
256
256
|
/**
|
|
257
257
|
* The microfrontends for the alias including the routing configuration
|
|
@@ -814,18 +814,18 @@ export const GetAliasProtectionBypass$inboundSchema: z.ZodType<
|
|
|
814
814
|
z.ZodTypeDef,
|
|
815
815
|
unknown
|
|
816
816
|
> = z.union([
|
|
817
|
+
z.lazy(() => GetAliasProtectionBypass2$inboundSchema),
|
|
818
|
+
z.lazy(() => ProtectionBypass4$inboundSchema),
|
|
817
819
|
z.lazy(() => GetAliasProtectionBypass1$inboundSchema),
|
|
818
820
|
z.lazy(() => ProtectionBypass3$inboundSchema),
|
|
819
|
-
z.lazy(() => ProtectionBypass4$inboundSchema),
|
|
820
|
-
z.lazy(() => GetAliasProtectionBypass2$inboundSchema),
|
|
821
821
|
]);
|
|
822
822
|
|
|
823
823
|
/** @internal */
|
|
824
824
|
export type GetAliasProtectionBypass$Outbound =
|
|
825
|
-
|
|
|
826
|
-
| ProtectionBypass3$Outbound
|
|
825
|
+
| GetAliasProtectionBypass2$Outbound
|
|
827
826
|
| ProtectionBypass4$Outbound
|
|
828
|
-
|
|
|
827
|
+
| GetAliasProtectionBypass1$Outbound
|
|
828
|
+
| ProtectionBypass3$Outbound;
|
|
829
829
|
|
|
830
830
|
/** @internal */
|
|
831
831
|
export const GetAliasProtectionBypass$outboundSchema: z.ZodType<
|
|
@@ -833,10 +833,10 @@ export const GetAliasProtectionBypass$outboundSchema: z.ZodType<
|
|
|
833
833
|
z.ZodTypeDef,
|
|
834
834
|
GetAliasProtectionBypass
|
|
835
835
|
> = z.union([
|
|
836
|
+
z.lazy(() => GetAliasProtectionBypass2$outboundSchema),
|
|
837
|
+
z.lazy(() => ProtectionBypass4$outboundSchema),
|
|
836
838
|
z.lazy(() => GetAliasProtectionBypass1$outboundSchema),
|
|
837
839
|
z.lazy(() => ProtectionBypass3$outboundSchema),
|
|
838
|
-
z.lazy(() => ProtectionBypass4$outboundSchema),
|
|
839
|
-
z.lazy(() => GetAliasProtectionBypass2$outboundSchema),
|
|
840
840
|
]);
|
|
841
841
|
|
|
842
842
|
/**
|
|
@@ -1056,10 +1056,10 @@ export const GetAliasResponseBody$inboundSchema: z.ZodType<
|
|
|
1056
1056
|
updatedAt: z.nullable(z.number()).optional(),
|
|
1057
1057
|
protectionBypass: z.record(
|
|
1058
1058
|
z.union([
|
|
1059
|
+
z.lazy(() => GetAliasProtectionBypass2$inboundSchema),
|
|
1060
|
+
z.lazy(() => ProtectionBypass4$inboundSchema),
|
|
1059
1061
|
z.lazy(() => GetAliasProtectionBypass1$inboundSchema),
|
|
1060
1062
|
z.lazy(() => ProtectionBypass3$inboundSchema),
|
|
1061
|
-
z.lazy(() => ProtectionBypass4$inboundSchema),
|
|
1062
|
-
z.lazy(() => GetAliasProtectionBypass2$inboundSchema),
|
|
1063
1063
|
]),
|
|
1064
1064
|
).optional(),
|
|
1065
1065
|
microfrontends: z.lazy(() => GetAliasMicrofrontends$inboundSchema).optional(),
|
|
@@ -1081,10 +1081,10 @@ export type GetAliasResponseBody$Outbound = {
|
|
|
1081
1081
|
updatedAt?: number | null | undefined;
|
|
1082
1082
|
protectionBypass?: {
|
|
1083
1083
|
[k: string]:
|
|
1084
|
-
|
|
|
1085
|
-
| ProtectionBypass3$Outbound
|
|
1084
|
+
| GetAliasProtectionBypass2$Outbound
|
|
1086
1085
|
| ProtectionBypass4$Outbound
|
|
1087
|
-
|
|
|
1086
|
+
| GetAliasProtectionBypass1$Outbound
|
|
1087
|
+
| ProtectionBypass3$Outbound;
|
|
1088
1088
|
} | undefined;
|
|
1089
1089
|
microfrontends?: GetAliasMicrofrontends$Outbound | undefined;
|
|
1090
1090
|
};
|
|
@@ -1109,10 +1109,10 @@ export const GetAliasResponseBody$outboundSchema: z.ZodType<
|
|
|
1109
1109
|
updatedAt: z.nullable(z.number()).optional(),
|
|
1110
1110
|
protectionBypass: z.record(
|
|
1111
1111
|
z.union([
|
|
1112
|
+
z.lazy(() => GetAliasProtectionBypass2$outboundSchema),
|
|
1113
|
+
z.lazy(() => ProtectionBypass4$outboundSchema),
|
|
1112
1114
|
z.lazy(() => GetAliasProtectionBypass1$outboundSchema),
|
|
1113
1115
|
z.lazy(() => ProtectionBypass3$outboundSchema),
|
|
1114
|
-
z.lazy(() => ProtectionBypass4$outboundSchema),
|
|
1115
|
-
z.lazy(() => GetAliasProtectionBypass2$outboundSchema),
|
|
1116
1116
|
]),
|
|
1117
1117
|
).optional(),
|
|
1118
1118
|
microfrontends: z.lazy(() => GetAliasMicrofrontends$outboundSchema)
|
|
@@ -19,13 +19,13 @@ import {
|
|
|
19
19
|
} from "./authuserlimited.js";
|
|
20
20
|
import { SDKValidationError } from "./sdkvalidationerror.js";
|
|
21
21
|
|
|
22
|
-
export type GetAuthUserUser =
|
|
22
|
+
export type GetAuthUserUser = AuthUser | AuthUserLimited;
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* Successful response.
|
|
26
26
|
*/
|
|
27
27
|
export type GetAuthUserResponseBody = {
|
|
28
|
-
user:
|
|
28
|
+
user: AuthUser | AuthUserLimited;
|
|
29
29
|
};
|
|
30
30
|
|
|
31
31
|
/** @internal */
|
|
@@ -33,19 +33,19 @@ export const GetAuthUserUser$inboundSchema: z.ZodType<
|
|
|
33
33
|
GetAuthUserUser,
|
|
34
34
|
z.ZodTypeDef,
|
|
35
35
|
unknown
|
|
36
|
-
> = z.union([
|
|
36
|
+
> = z.union([AuthUser$inboundSchema, AuthUserLimited$inboundSchema]);
|
|
37
37
|
|
|
38
38
|
/** @internal */
|
|
39
39
|
export type GetAuthUserUser$Outbound =
|
|
40
|
-
|
|
|
41
|
-
|
|
|
40
|
+
| AuthUser$Outbound
|
|
41
|
+
| AuthUserLimited$Outbound;
|
|
42
42
|
|
|
43
43
|
/** @internal */
|
|
44
44
|
export const GetAuthUserUser$outboundSchema: z.ZodType<
|
|
45
45
|
GetAuthUserUser$Outbound,
|
|
46
46
|
z.ZodTypeDef,
|
|
47
47
|
GetAuthUserUser
|
|
48
|
-
> = z.union([
|
|
48
|
+
> = z.union([AuthUser$outboundSchema, AuthUserLimited$outboundSchema]);
|
|
49
49
|
|
|
50
50
|
/**
|
|
51
51
|
* @internal
|
|
@@ -82,12 +82,12 @@ export const GetAuthUserResponseBody$inboundSchema: z.ZodType<
|
|
|
82
82
|
z.ZodTypeDef,
|
|
83
83
|
unknown
|
|
84
84
|
> = z.object({
|
|
85
|
-
user: z.union([
|
|
85
|
+
user: z.union([AuthUser$inboundSchema, AuthUserLimited$inboundSchema]),
|
|
86
86
|
});
|
|
87
87
|
|
|
88
88
|
/** @internal */
|
|
89
89
|
export type GetAuthUserResponseBody$Outbound = {
|
|
90
|
-
user:
|
|
90
|
+
user: AuthUser$Outbound | AuthUserLimited$Outbound;
|
|
91
91
|
};
|
|
92
92
|
|
|
93
93
|
/** @internal */
|
|
@@ -96,7 +96,7 @@ export const GetAuthUserResponseBody$outboundSchema: z.ZodType<
|
|
|
96
96
|
z.ZodTypeDef,
|
|
97
97
|
GetAuthUserResponseBody
|
|
98
98
|
> = z.object({
|
|
99
|
-
user: z.union([
|
|
99
|
+
user: z.union([AuthUser$outboundSchema, AuthUserLimited$outboundSchema]),
|
|
100
100
|
});
|
|
101
101
|
|
|
102
102
|
/**
|
|
@@ -35,6 +35,22 @@ export const ProjectSelection = {
|
|
|
35
35
|
*/
|
|
36
36
|
export type ProjectSelection = ClosedEnum<typeof ProjectSelection>;
|
|
37
37
|
|
|
38
|
+
export const GetConfigurationResponseBodyLevel = {
|
|
39
|
+
Error: "error",
|
|
40
|
+
Info: "info",
|
|
41
|
+
Warn: "warn",
|
|
42
|
+
} as const;
|
|
43
|
+
export type GetConfigurationResponseBodyLevel = ClosedEnum<
|
|
44
|
+
typeof GetConfigurationResponseBodyLevel
|
|
45
|
+
>;
|
|
46
|
+
|
|
47
|
+
export type ResponseBodyNotification = {
|
|
48
|
+
level: GetConfigurationResponseBodyLevel;
|
|
49
|
+
title: string;
|
|
50
|
+
message?: string | undefined;
|
|
51
|
+
href?: string | undefined;
|
|
52
|
+
};
|
|
53
|
+
|
|
38
54
|
export const TransferRequestKind = {
|
|
39
55
|
TransferFromMarketplace: "transfer-from-marketplace",
|
|
40
56
|
} as const;
|
|
@@ -107,7 +123,7 @@ export type TransferRequest1 = {
|
|
|
107
123
|
authorizationId?: string | undefined;
|
|
108
124
|
};
|
|
109
125
|
|
|
110
|
-
export type TransferRequest =
|
|
126
|
+
export type TransferRequest = TransferRequest1 | TransferRequest2;
|
|
111
127
|
|
|
112
128
|
/**
|
|
113
129
|
* Source defines where the configuration was installed from. It is used to analyze user engagement for integration installations in product metrics.
|
|
@@ -162,7 +178,8 @@ export type GetConfigurationResponseBody2 = {
|
|
|
162
178
|
* A string representing the permission for projects. Possible values are `all` or `selected`.
|
|
163
179
|
*/
|
|
164
180
|
projectSelection: ProjectSelection;
|
|
165
|
-
|
|
181
|
+
notification: ResponseBodyNotification;
|
|
182
|
+
transferRequest: TransferRequest1 | TransferRequest2;
|
|
166
183
|
/**
|
|
167
184
|
* When a configuration is limited to access certain projects, this will contain each of the project ID it is allowed to access. If it is not defined, the configuration has full access.
|
|
168
185
|
*/
|
|
@@ -361,8 +378,8 @@ export type GetConfigurationResponseBody1 = {
|
|
|
361
378
|
* The configuration with the provided id
|
|
362
379
|
*/
|
|
363
380
|
export type GetConfigurationResponseBody =
|
|
364
|
-
|
|
|
365
|
-
|
|
|
381
|
+
| GetConfigurationResponseBody2
|
|
382
|
+
| GetConfigurationResponseBody1;
|
|
366
383
|
|
|
367
384
|
/** @internal */
|
|
368
385
|
export const GetConfigurationRequest$inboundSchema: z.ZodType<
|
|
@@ -445,6 +462,91 @@ export namespace ProjectSelection$ {
|
|
|
445
462
|
export const outboundSchema = ProjectSelection$outboundSchema;
|
|
446
463
|
}
|
|
447
464
|
|
|
465
|
+
/** @internal */
|
|
466
|
+
export const GetConfigurationResponseBodyLevel$inboundSchema: z.ZodNativeEnum<
|
|
467
|
+
typeof GetConfigurationResponseBodyLevel
|
|
468
|
+
> = z.nativeEnum(GetConfigurationResponseBodyLevel);
|
|
469
|
+
|
|
470
|
+
/** @internal */
|
|
471
|
+
export const GetConfigurationResponseBodyLevel$outboundSchema: z.ZodNativeEnum<
|
|
472
|
+
typeof GetConfigurationResponseBodyLevel
|
|
473
|
+
> = GetConfigurationResponseBodyLevel$inboundSchema;
|
|
474
|
+
|
|
475
|
+
/**
|
|
476
|
+
* @internal
|
|
477
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
478
|
+
*/
|
|
479
|
+
export namespace GetConfigurationResponseBodyLevel$ {
|
|
480
|
+
/** @deprecated use `GetConfigurationResponseBodyLevel$inboundSchema` instead. */
|
|
481
|
+
export const inboundSchema = GetConfigurationResponseBodyLevel$inboundSchema;
|
|
482
|
+
/** @deprecated use `GetConfigurationResponseBodyLevel$outboundSchema` instead. */
|
|
483
|
+
export const outboundSchema =
|
|
484
|
+
GetConfigurationResponseBodyLevel$outboundSchema;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
/** @internal */
|
|
488
|
+
export const ResponseBodyNotification$inboundSchema: z.ZodType<
|
|
489
|
+
ResponseBodyNotification,
|
|
490
|
+
z.ZodTypeDef,
|
|
491
|
+
unknown
|
|
492
|
+
> = z.object({
|
|
493
|
+
level: GetConfigurationResponseBodyLevel$inboundSchema,
|
|
494
|
+
title: z.string(),
|
|
495
|
+
message: z.string().optional(),
|
|
496
|
+
href: z.string().optional(),
|
|
497
|
+
});
|
|
498
|
+
|
|
499
|
+
/** @internal */
|
|
500
|
+
export type ResponseBodyNotification$Outbound = {
|
|
501
|
+
level: string;
|
|
502
|
+
title: string;
|
|
503
|
+
message?: string | undefined;
|
|
504
|
+
href?: string | undefined;
|
|
505
|
+
};
|
|
506
|
+
|
|
507
|
+
/** @internal */
|
|
508
|
+
export const ResponseBodyNotification$outboundSchema: z.ZodType<
|
|
509
|
+
ResponseBodyNotification$Outbound,
|
|
510
|
+
z.ZodTypeDef,
|
|
511
|
+
ResponseBodyNotification
|
|
512
|
+
> = z.object({
|
|
513
|
+
level: GetConfigurationResponseBodyLevel$outboundSchema,
|
|
514
|
+
title: z.string(),
|
|
515
|
+
message: z.string().optional(),
|
|
516
|
+
href: z.string().optional(),
|
|
517
|
+
});
|
|
518
|
+
|
|
519
|
+
/**
|
|
520
|
+
* @internal
|
|
521
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
522
|
+
*/
|
|
523
|
+
export namespace ResponseBodyNotification$ {
|
|
524
|
+
/** @deprecated use `ResponseBodyNotification$inboundSchema` instead. */
|
|
525
|
+
export const inboundSchema = ResponseBodyNotification$inboundSchema;
|
|
526
|
+
/** @deprecated use `ResponseBodyNotification$outboundSchema` instead. */
|
|
527
|
+
export const outboundSchema = ResponseBodyNotification$outboundSchema;
|
|
528
|
+
/** @deprecated use `ResponseBodyNotification$Outbound` instead. */
|
|
529
|
+
export type Outbound = ResponseBodyNotification$Outbound;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
export function responseBodyNotificationToJSON(
|
|
533
|
+
responseBodyNotification: ResponseBodyNotification,
|
|
534
|
+
): string {
|
|
535
|
+
return JSON.stringify(
|
|
536
|
+
ResponseBodyNotification$outboundSchema.parse(responseBodyNotification),
|
|
537
|
+
);
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
export function responseBodyNotificationFromJSON(
|
|
541
|
+
jsonString: string,
|
|
542
|
+
): SafeParseResult<ResponseBodyNotification, SDKValidationError> {
|
|
543
|
+
return safeParse(
|
|
544
|
+
jsonString,
|
|
545
|
+
(x) => ResponseBodyNotification$inboundSchema.parse(JSON.parse(x)),
|
|
546
|
+
`Failed to parse 'ResponseBodyNotification' from JSON`,
|
|
547
|
+
);
|
|
548
|
+
}
|
|
549
|
+
|
|
448
550
|
/** @internal */
|
|
449
551
|
export const TransferRequestKind$inboundSchema: z.ZodNativeEnum<
|
|
450
552
|
typeof TransferRequestKind
|
|
@@ -892,14 +994,14 @@ export const TransferRequest$inboundSchema: z.ZodType<
|
|
|
892
994
|
z.ZodTypeDef,
|
|
893
995
|
unknown
|
|
894
996
|
> = z.union([
|
|
895
|
-
z.lazy(() => TransferRequest2$inboundSchema),
|
|
896
997
|
z.lazy(() => TransferRequest1$inboundSchema),
|
|
998
|
+
z.lazy(() => TransferRequest2$inboundSchema),
|
|
897
999
|
]);
|
|
898
1000
|
|
|
899
1001
|
/** @internal */
|
|
900
1002
|
export type TransferRequest$Outbound =
|
|
901
|
-
|
|
|
902
|
-
|
|
|
1003
|
+
| TransferRequest1$Outbound
|
|
1004
|
+
| TransferRequest2$Outbound;
|
|
903
1005
|
|
|
904
1006
|
/** @internal */
|
|
905
1007
|
export const TransferRequest$outboundSchema: z.ZodType<
|
|
@@ -907,8 +1009,8 @@ export const TransferRequest$outboundSchema: z.ZodType<
|
|
|
907
1009
|
z.ZodTypeDef,
|
|
908
1010
|
TransferRequest
|
|
909
1011
|
> = z.union([
|
|
910
|
-
z.lazy(() => TransferRequest2$outboundSchema),
|
|
911
1012
|
z.lazy(() => TransferRequest1$outboundSchema),
|
|
1013
|
+
z.lazy(() => TransferRequest2$outboundSchema),
|
|
912
1014
|
]);
|
|
913
1015
|
|
|
914
1016
|
/**
|
|
@@ -1043,9 +1145,10 @@ export const GetConfigurationResponseBody2$inboundSchema: z.ZodType<
|
|
|
1043
1145
|
unknown
|
|
1044
1146
|
> = z.object({
|
|
1045
1147
|
projectSelection: ProjectSelection$inboundSchema,
|
|
1148
|
+
notification: z.lazy(() => ResponseBodyNotification$inboundSchema),
|
|
1046
1149
|
transferRequest: z.union([
|
|
1047
|
-
z.lazy(() => TransferRequest2$inboundSchema),
|
|
1048
1150
|
z.lazy(() => TransferRequest1$inboundSchema),
|
|
1151
|
+
z.lazy(() => TransferRequest2$inboundSchema),
|
|
1049
1152
|
]),
|
|
1050
1153
|
projects: z.array(z.string()).optional(),
|
|
1051
1154
|
completedAt: z.number().optional(),
|
|
@@ -1076,7 +1179,8 @@ export const GetConfigurationResponseBody2$inboundSchema: z.ZodType<
|
|
|
1076
1179
|
/** @internal */
|
|
1077
1180
|
export type GetConfigurationResponseBody2$Outbound = {
|
|
1078
1181
|
projectSelection: string;
|
|
1079
|
-
|
|
1182
|
+
notification: ResponseBodyNotification$Outbound;
|
|
1183
|
+
transferRequest: TransferRequest1$Outbound | TransferRequest2$Outbound;
|
|
1080
1184
|
projects?: Array<string> | undefined;
|
|
1081
1185
|
completedAt?: number | undefined;
|
|
1082
1186
|
createdAt: number;
|
|
@@ -1105,9 +1209,10 @@ export const GetConfigurationResponseBody2$outboundSchema: z.ZodType<
|
|
|
1105
1209
|
GetConfigurationResponseBody2
|
|
1106
1210
|
> = z.object({
|
|
1107
1211
|
projectSelection: ProjectSelection$outboundSchema,
|
|
1212
|
+
notification: z.lazy(() => ResponseBodyNotification$outboundSchema),
|
|
1108
1213
|
transferRequest: z.union([
|
|
1109
|
-
z.lazy(() => TransferRequest2$outboundSchema),
|
|
1110
1214
|
z.lazy(() => TransferRequest1$outboundSchema),
|
|
1215
|
+
z.lazy(() => TransferRequest2$outboundSchema),
|
|
1111
1216
|
]),
|
|
1112
1217
|
projects: z.array(z.string()).optional(),
|
|
1113
1218
|
completedAt: z.number().optional(),
|
|
@@ -1374,14 +1479,14 @@ export const GetConfigurationResponseBody$inboundSchema: z.ZodType<
|
|
|
1374
1479
|
z.ZodTypeDef,
|
|
1375
1480
|
unknown
|
|
1376
1481
|
> = z.union([
|
|
1377
|
-
z.lazy(() => GetConfigurationResponseBody1$inboundSchema),
|
|
1378
1482
|
z.lazy(() => GetConfigurationResponseBody2$inboundSchema),
|
|
1483
|
+
z.lazy(() => GetConfigurationResponseBody1$inboundSchema),
|
|
1379
1484
|
]);
|
|
1380
1485
|
|
|
1381
1486
|
/** @internal */
|
|
1382
1487
|
export type GetConfigurationResponseBody$Outbound =
|
|
1383
|
-
|
|
|
1384
|
-
|
|
|
1488
|
+
| GetConfigurationResponseBody2$Outbound
|
|
1489
|
+
| GetConfigurationResponseBody1$Outbound;
|
|
1385
1490
|
|
|
1386
1491
|
/** @internal */
|
|
1387
1492
|
export const GetConfigurationResponseBody$outboundSchema: z.ZodType<
|
|
@@ -1389,8 +1494,8 @@ export const GetConfigurationResponseBody$outboundSchema: z.ZodType<
|
|
|
1389
1494
|
z.ZodTypeDef,
|
|
1390
1495
|
GetConfigurationResponseBody
|
|
1391
1496
|
> = z.union([
|
|
1392
|
-
z.lazy(() => GetConfigurationResponseBody1$outboundSchema),
|
|
1393
1497
|
z.lazy(() => GetConfigurationResponseBody2$outboundSchema),
|
|
1498
|
+
z.lazy(() => GetConfigurationResponseBody1$outboundSchema),
|
|
1394
1499
|
]);
|
|
1395
1500
|
|
|
1396
1501
|
/**
|
|
@@ -205,8 +205,8 @@ export type GetDeploymentEventsResponseBodyDeployments1 = {
|
|
|
205
205
|
};
|
|
206
206
|
|
|
207
207
|
export type GetDeploymentEventsResponseBody =
|
|
208
|
-
|
|
|
209
|
-
|
|
|
208
|
+
| GetDeploymentEventsResponseBodyDeployments2
|
|
209
|
+
| GetDeploymentEventsResponseBodyDeployments1;
|
|
210
210
|
|
|
211
211
|
export type Info = {
|
|
212
212
|
type: string;
|
|
@@ -341,15 +341,15 @@ export type GetDeploymentEventsResponseBody1 = {
|
|
|
341
341
|
};
|
|
342
342
|
|
|
343
343
|
export type GetDeploymentEventsDeploymentsResponseBody =
|
|
344
|
-
|
|
|
345
|
-
|
|
|
344
|
+
| GetDeploymentEventsResponseBody2
|
|
345
|
+
| GetDeploymentEventsResponseBody1;
|
|
346
346
|
|
|
347
347
|
export type GetDeploymentEventsResponse =
|
|
348
348
|
| Array<
|
|
349
|
-
|
|
349
|
+
GetDeploymentEventsResponseBody2 | GetDeploymentEventsResponseBody1 | null
|
|
350
350
|
>
|
|
351
|
-
|
|
|
352
|
-
|
|
|
351
|
+
| GetDeploymentEventsResponseBodyDeployments2
|
|
352
|
+
| GetDeploymentEventsResponseBodyDeployments1;
|
|
353
353
|
|
|
354
354
|
/** @internal */
|
|
355
355
|
export const Direction$inboundSchema: z.ZodNativeEnum<typeof Direction> = z
|
|
@@ -1116,14 +1116,14 @@ export const GetDeploymentEventsResponseBody$inboundSchema: z.ZodType<
|
|
|
1116
1116
|
z.ZodTypeDef,
|
|
1117
1117
|
unknown
|
|
1118
1118
|
> = z.union([
|
|
1119
|
-
z.lazy(() => GetDeploymentEventsResponseBodyDeployments1$inboundSchema),
|
|
1120
1119
|
z.lazy(() => GetDeploymentEventsResponseBodyDeployments2$inboundSchema),
|
|
1120
|
+
z.lazy(() => GetDeploymentEventsResponseBodyDeployments1$inboundSchema),
|
|
1121
1121
|
]);
|
|
1122
1122
|
|
|
1123
1123
|
/** @internal */
|
|
1124
1124
|
export type GetDeploymentEventsResponseBody$Outbound =
|
|
1125
|
-
|
|
|
1126
|
-
|
|
|
1125
|
+
| GetDeploymentEventsResponseBodyDeployments2$Outbound
|
|
1126
|
+
| GetDeploymentEventsResponseBodyDeployments1$Outbound;
|
|
1127
1127
|
|
|
1128
1128
|
/** @internal */
|
|
1129
1129
|
export const GetDeploymentEventsResponseBody$outboundSchema: z.ZodType<
|
|
@@ -1131,8 +1131,8 @@ export const GetDeploymentEventsResponseBody$outboundSchema: z.ZodType<
|
|
|
1131
1131
|
z.ZodTypeDef,
|
|
1132
1132
|
GetDeploymentEventsResponseBody
|
|
1133
1133
|
> = z.union([
|
|
1134
|
-
z.lazy(() => GetDeploymentEventsResponseBodyDeployments1$outboundSchema),
|
|
1135
1134
|
z.lazy(() => GetDeploymentEventsResponseBodyDeployments2$outboundSchema),
|
|
1135
|
+
z.lazy(() => GetDeploymentEventsResponseBodyDeployments1$outboundSchema),
|
|
1136
1136
|
]);
|
|
1137
1137
|
|
|
1138
1138
|
/**
|
|
@@ -1754,14 +1754,14 @@ export function getDeploymentEventsResponseBody1FromJSON(
|
|
|
1754
1754
|
export const GetDeploymentEventsDeploymentsResponseBody$inboundSchema:
|
|
1755
1755
|
z.ZodType<GetDeploymentEventsDeploymentsResponseBody, z.ZodTypeDef, unknown> =
|
|
1756
1756
|
z.union([
|
|
1757
|
-
z.lazy(() => GetDeploymentEventsResponseBody1$inboundSchema),
|
|
1758
1757
|
z.lazy(() => GetDeploymentEventsResponseBody2$inboundSchema),
|
|
1758
|
+
z.lazy(() => GetDeploymentEventsResponseBody1$inboundSchema),
|
|
1759
1759
|
]);
|
|
1760
1760
|
|
|
1761
1761
|
/** @internal */
|
|
1762
1762
|
export type GetDeploymentEventsDeploymentsResponseBody$Outbound =
|
|
1763
|
-
|
|
|
1764
|
-
|
|
|
1763
|
+
| GetDeploymentEventsResponseBody2$Outbound
|
|
1764
|
+
| GetDeploymentEventsResponseBody1$Outbound;
|
|
1765
1765
|
|
|
1766
1766
|
/** @internal */
|
|
1767
1767
|
export const GetDeploymentEventsDeploymentsResponseBody$outboundSchema:
|
|
@@ -1770,8 +1770,8 @@ export const GetDeploymentEventsDeploymentsResponseBody$outboundSchema:
|
|
|
1770
1770
|
z.ZodTypeDef,
|
|
1771
1771
|
GetDeploymentEventsDeploymentsResponseBody
|
|
1772
1772
|
> = z.union([
|
|
1773
|
-
z.lazy(() => GetDeploymentEventsResponseBody1$outboundSchema),
|
|
1774
1773
|
z.lazy(() => GetDeploymentEventsResponseBody2$outboundSchema),
|
|
1774
|
+
z.lazy(() => GetDeploymentEventsResponseBody1$outboundSchema),
|
|
1775
1775
|
]);
|
|
1776
1776
|
|
|
1777
1777
|
/**
|
|
@@ -1823,15 +1823,15 @@ export const GetDeploymentEventsResponse$inboundSchema: z.ZodType<
|
|
|
1823
1823
|
unknown
|
|
1824
1824
|
> = z.union([
|
|
1825
1825
|
z.array(z.nullable(z.union([
|
|
1826
|
-
z.lazy(() =>
|
|
1826
|
+
z.lazy(() => GetDeploymentEventsResponseBody2$inboundSchema),
|
|
1827
1827
|
z.lazy(() =>
|
|
1828
|
-
|
|
1828
|
+
GetDeploymentEventsResponseBody1$inboundSchema
|
|
1829
1829
|
),
|
|
1830
1830
|
]))),
|
|
1831
1831
|
z.union([
|
|
1832
|
-
z.lazy(() =>
|
|
1832
|
+
z.lazy(() => GetDeploymentEventsResponseBodyDeployments2$inboundSchema),
|
|
1833
1833
|
z.lazy(() =>
|
|
1834
|
-
|
|
1834
|
+
GetDeploymentEventsResponseBodyDeployments1$inboundSchema
|
|
1835
1835
|
),
|
|
1836
1836
|
]),
|
|
1837
1837
|
]);
|
|
@@ -1839,12 +1839,12 @@ export const GetDeploymentEventsResponse$inboundSchema: z.ZodType<
|
|
|
1839
1839
|
/** @internal */
|
|
1840
1840
|
export type GetDeploymentEventsResponse$Outbound =
|
|
1841
1841
|
| Array<
|
|
1842
|
-
| GetDeploymentEventsResponseBody1$Outbound
|
|
1843
1842
|
| GetDeploymentEventsResponseBody2$Outbound
|
|
1843
|
+
| GetDeploymentEventsResponseBody1$Outbound
|
|
1844
1844
|
| null
|
|
1845
1845
|
>
|
|
1846
|
-
|
|
|
1847
|
-
|
|
|
1846
|
+
| GetDeploymentEventsResponseBodyDeployments2$Outbound
|
|
1847
|
+
| GetDeploymentEventsResponseBodyDeployments1$Outbound;
|
|
1848
1848
|
|
|
1849
1849
|
/** @internal */
|
|
1850
1850
|
export const GetDeploymentEventsResponse$outboundSchema: z.ZodType<
|
|
@@ -1853,15 +1853,15 @@ export const GetDeploymentEventsResponse$outboundSchema: z.ZodType<
|
|
|
1853
1853
|
GetDeploymentEventsResponse
|
|
1854
1854
|
> = z.union([
|
|
1855
1855
|
z.array(z.nullable(z.union([
|
|
1856
|
-
z.lazy(() =>
|
|
1856
|
+
z.lazy(() => GetDeploymentEventsResponseBody2$outboundSchema),
|
|
1857
1857
|
z.lazy(() =>
|
|
1858
|
-
|
|
1858
|
+
GetDeploymentEventsResponseBody1$outboundSchema
|
|
1859
1859
|
),
|
|
1860
1860
|
]))),
|
|
1861
1861
|
z.union([
|
|
1862
|
-
z.lazy(() =>
|
|
1862
|
+
z.lazy(() => GetDeploymentEventsResponseBodyDeployments2$outboundSchema),
|
|
1863
1863
|
z.lazy(() =>
|
|
1864
|
-
|
|
1864
|
+
GetDeploymentEventsResponseBodyDeployments1$outboundSchema
|
|
1865
1865
|
),
|
|
1866
1866
|
]),
|
|
1867
1867
|
]);
|