@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.
Files changed (187) hide show
  1. package/bin/mcp-server.js +1384 -1354
  2. package/bin/mcp-server.js.map +45 -45
  3. package/docs/sdks/edgeconfig/README.md +1 -1
  4. package/esm/__tests__/deployments.test.js +1 -1
  5. package/esm/__tests__/deployments.test.js.map +1 -1
  6. package/esm/__tests__/edgeconfig.test.js +1 -22
  7. package/esm/__tests__/edgeconfig.test.js.map +1 -1
  8. package/esm/__tests__/projects.test.js +13 -15
  9. package/esm/__tests__/projects.test.js.map +1 -1
  10. package/esm/funcs/edgeConfigGetEdgeConfigItems.d.ts +1 -1
  11. package/esm/funcs/edgeConfigGetEdgeConfigItems.d.ts.map +1 -1
  12. package/esm/funcs/edgeConfigGetEdgeConfigItems.js +2 -1
  13. package/esm/funcs/edgeConfigGetEdgeConfigItems.js.map +1 -1
  14. package/esm/lib/config.d.ts +3 -3
  15. package/esm/lib/config.js +3 -3
  16. package/esm/lib/security.d.ts +2 -2
  17. package/esm/lib/security.d.ts.map +1 -1
  18. package/esm/mcp-server/mcp-server.js +1 -1
  19. package/esm/mcp-server/server.js +1 -1
  20. package/esm/models/addbypassipop.d.ts +2 -2
  21. package/esm/models/addbypassipop.js +2 -2
  22. package/esm/models/artifactqueryop.d.ts +2 -2
  23. package/esm/models/artifactqueryop.js +2 -2
  24. package/esm/models/authtoken.d.ts +4 -4
  25. package/esm/models/authtoken.js +4 -4
  26. package/esm/models/canceldeploymentop.d.ts +20 -20
  27. package/esm/models/canceldeploymentop.d.ts.map +1 -1
  28. package/esm/models/canceldeploymentop.js +44 -44
  29. package/esm/models/canceldeploymentop.js.map +1 -1
  30. package/esm/models/createdeploymentop.d.ts +54 -54
  31. package/esm/models/createdeploymentop.d.ts.map +1 -1
  32. package/esm/models/createdeploymentop.js +78 -78
  33. package/esm/models/createdeploymentop.js.map +1 -1
  34. package/esm/models/createeventop.d.ts +4 -4
  35. package/esm/models/createeventop.js +4 -4
  36. package/esm/models/createortransferdomainop.d.ts +4 -4
  37. package/esm/models/createortransferdomainop.js +4 -4
  38. package/esm/models/createprojectenvop.d.ts +8 -8
  39. package/esm/models/createprojectenvop.d.ts.map +1 -1
  40. package/esm/models/createprojectenvop.js +8 -8
  41. package/esm/models/createprojectenvop.js.map +1 -1
  42. package/esm/models/createprojectop.d.ts +20 -20
  43. package/esm/models/createprojectop.d.ts.map +1 -1
  44. package/esm/models/createprojectop.js +20 -20
  45. package/esm/models/createprojectop.js.map +1 -1
  46. package/esm/models/createrecordop.d.ts +6 -6
  47. package/esm/models/createrecordop.d.ts.map +1 -1
  48. package/esm/models/createrecordop.js +18 -18
  49. package/esm/models/createrecordop.js.map +1 -1
  50. package/esm/models/editprojectenvop.d.ts +6 -6
  51. package/esm/models/editprojectenvop.d.ts.map +1 -1
  52. package/esm/models/editprojectenvop.js +6 -6
  53. package/esm/models/editprojectenvop.js.map +1 -1
  54. package/esm/models/filterprojectenvsop.d.ts +23 -23
  55. package/esm/models/filterprojectenvsop.d.ts.map +1 -1
  56. package/esm/models/filterprojectenvsop.js +17 -17
  57. package/esm/models/filterprojectenvsop.js.map +1 -1
  58. package/esm/models/getactiveattackstatusop.d.ts +2 -2
  59. package/esm/models/getactiveattackstatusop.js +2 -2
  60. package/esm/models/getaliasop.d.ts +4 -4
  61. package/esm/models/getaliasop.d.ts.map +1 -1
  62. package/esm/models/getaliasop.js +8 -8
  63. package/esm/models/getaliasop.js.map +1 -1
  64. package/esm/models/getauthuserop.d.ts +4 -4
  65. package/esm/models/getauthuserop.d.ts.map +1 -1
  66. package/esm/models/getauthuserop.js +4 -4
  67. package/esm/models/getauthuserop.js.map +1 -1
  68. package/esm/models/getconfigurationop.d.ts +67 -6
  69. package/esm/models/getconfigurationop.d.ts.map +1 -1
  70. package/esm/models/getconfigurationop.js +59 -6
  71. package/esm/models/getconfigurationop.js.map +1 -1
  72. package/esm/models/getdeploymenteventsop.d.ts +6 -6
  73. package/esm/models/getdeploymenteventsop.js +8 -8
  74. package/esm/models/getdeploymentop.d.ts +30 -30
  75. package/esm/models/getdeploymentop.d.ts.map +1 -1
  76. package/esm/models/getdeploymentop.js +78 -78
  77. package/esm/models/getdeploymentop.js.map +1 -1
  78. package/esm/models/getedgeconfigbackupop.d.ts +2 -2
  79. package/esm/models/getedgeconfigbackupop.js +2 -2
  80. package/esm/models/getprojectenvop.d.ts +23 -23
  81. package/esm/models/getprojectenvop.d.ts.map +1 -1
  82. package/esm/models/getprojectenvop.js +17 -17
  83. package/esm/models/getprojectenvop.js.map +1 -1
  84. package/esm/models/getprojectmembersop.d.ts +2 -2
  85. package/esm/models/getprojectmembersop.js +2 -2
  86. package/esm/models/getprojectsop.d.ts +148 -148
  87. package/esm/models/getprojectsop.d.ts.map +1 -1
  88. package/esm/models/getprojectsop.js +152 -152
  89. package/esm/models/getprojectsop.js.map +1 -1
  90. package/esm/models/getrecordsop.d.ts +2 -2
  91. package/esm/models/getrecordsop.d.ts.map +1 -1
  92. package/esm/models/getrecordsop.js +2 -2
  93. package/esm/models/getrecordsop.js.map +1 -1
  94. package/esm/models/getteamsop.d.ts +4 -4
  95. package/esm/models/getteamsop.d.ts.map +1 -1
  96. package/esm/models/getteamsop.js +4 -4
  97. package/esm/models/getteamsop.js.map +1 -1
  98. package/esm/models/inviteusertoteamop.d.ts +2 -2
  99. package/esm/models/inviteusertoteamop.js +2 -2
  100. package/esm/models/listaccessgroupsop.d.ts +2 -2
  101. package/esm/models/listaccessgroupsop.js +2 -2
  102. package/esm/models/listaliasesop.d.ts +4 -4
  103. package/esm/models/listaliasesop.js +8 -8
  104. package/esm/models/listdeploymentaliasesop.d.ts +4 -4
  105. package/esm/models/listdeploymentaliasesop.js +8 -8
  106. package/esm/models/listpromotealiasesop.d.ts +2 -2
  107. package/esm/models/listpromotealiasesop.js +2 -2
  108. package/esm/models/patchdomainop.d.ts +6 -6
  109. package/esm/models/patchdomainop.js +6 -6
  110. package/esm/models/patchurlprotectionbypassop.d.ts +4 -4
  111. package/esm/models/patchurlprotectionbypassop.js +4 -4
  112. package/esm/models/removeprojectenvop.d.ts +14 -14
  113. package/esm/models/removeprojectenvop.d.ts.map +1 -1
  114. package/esm/models/removeprojectenvop.js +14 -14
  115. package/esm/models/removeprojectenvop.js.map +1 -1
  116. package/esm/models/updatefirewallconfigop.d.ts +4 -4
  117. package/esm/models/updatefirewallconfigop.d.ts.map +1 -1
  118. package/esm/models/updatefirewallconfigop.js +24 -24
  119. package/esm/models/updatefirewallconfigop.js.map +1 -1
  120. package/esm/models/updateprojectdatacacheop.d.ts +20 -20
  121. package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
  122. package/esm/models/updateprojectdatacacheop.js +20 -20
  123. package/esm/models/updateprojectdatacacheop.js.map +1 -1
  124. package/esm/models/updateprojectop.d.ts +20 -20
  125. package/esm/models/updateprojectop.d.ts.map +1 -1
  126. package/esm/models/updateprojectop.js +20 -20
  127. package/esm/models/updateprojectop.js.map +1 -1
  128. package/esm/models/updateprojectprotectionbypassop.d.ts +4 -4
  129. package/esm/models/updateprojectprotectionbypassop.js +4 -4
  130. package/esm/models/uploadfileop.d.ts +2 -2
  131. package/esm/models/uploadfileop.js +2 -2
  132. package/esm/models/userevent.d.ts +24 -24
  133. package/esm/models/userevent.d.ts.map +1 -1
  134. package/esm/models/userevent.js +467 -467
  135. package/esm/models/userevent.js.map +1 -1
  136. package/esm/sdk/edgeconfig.d.ts +1 -1
  137. package/esm/sdk/edgeconfig.d.ts.map +1 -1
  138. package/jsr.json +1 -1
  139. package/package.json +1 -1
  140. package/src/__tests__/deployments.test.ts +1 -1
  141. package/src/__tests__/edgeconfig.test.ts +1 -22
  142. package/src/__tests__/projects.test.ts +13 -15
  143. package/src/funcs/edgeConfigGetEdgeConfigItems.ts +5 -4
  144. package/src/lib/config.ts +3 -3
  145. package/src/lib/security.ts +2 -2
  146. package/src/mcp-server/mcp-server.ts +1 -1
  147. package/src/mcp-server/server.ts +1 -1
  148. package/src/models/addbypassipop.ts +6 -6
  149. package/src/models/artifactqueryop.ts +5 -5
  150. package/src/models/authtoken.ts +8 -8
  151. package/src/models/canceldeploymentop.ts +98 -98
  152. package/src/models/createdeploymentop.ts +153 -153
  153. package/src/models/createeventop.ts +8 -8
  154. package/src/models/createortransferdomainop.ts +10 -10
  155. package/src/models/createprojectenvop.ts +20 -20
  156. package/src/models/createprojectop.ts +52 -52
  157. package/src/models/createrecordop.ts +38 -38
  158. package/src/models/editprojectenvop.ts +16 -16
  159. package/src/models/filterprojectenvsop.ts +41 -43
  160. package/src/models/getactiveattackstatusop.ts +6 -6
  161. package/src/models/getaliasop.ts +20 -20
  162. package/src/models/getauthuserop.ts +9 -9
  163. package/src/models/getconfigurationop.ts +120 -15
  164. package/src/models/getdeploymenteventsop.ts +26 -26
  165. package/src/models/getdeploymentop.ts +170 -170
  166. package/src/models/getedgeconfigbackupop.ts +6 -6
  167. package/src/models/getprojectenvop.ts +39 -39
  168. package/src/models/getprojectmembersop.ts +6 -6
  169. package/src/models/getprojectsop.ts +311 -311
  170. package/src/models/getrecordsop.ts +4 -4
  171. package/src/models/getteamsop.ts +8 -8
  172. package/src/models/inviteusertoteamop.ts +6 -6
  173. package/src/models/listaccessgroupsop.ts +6 -6
  174. package/src/models/listaliasesop.ts +20 -20
  175. package/src/models/listdeploymentaliasesop.ts +20 -20
  176. package/src/models/listpromotealiasesop.ts +6 -6
  177. package/src/models/patchdomainop.ts +15 -15
  178. package/src/models/patchurlprotectionbypassop.ts +10 -10
  179. package/src/models/removeprojectenvop.ts +36 -38
  180. package/src/models/updatefirewallconfigop.ts +52 -52
  181. package/src/models/updateprojectdatacacheop.ts +47 -47
  182. package/src/models/updateprojectop.ts +52 -52
  183. package/src/models/updateprojectprotectionbypassop.ts +14 -14
  184. package/src/models/uploadfileop.ts +6 -6
  185. package/src/models/userevent.ts +955 -955
  186. package/src/sdk/edgeconfig.ts +1 -1
  187. package/vercel-spec.json +259 -229
@@ -149,10 +149,10 @@ export type GetAliasProtectionBypass1 = {
149
149
  };
150
150
 
151
151
  export type GetAliasProtectionBypass =
152
- | GetAliasProtectionBypass1
153
- | ProtectionBypass3
152
+ | GetAliasProtectionBypass2
154
153
  | ProtectionBypass4
155
- | GetAliasProtectionBypass2;
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
- | GetAliasProtectionBypass1
252
- | ProtectionBypass3
251
+ | GetAliasProtectionBypass2
253
252
  | ProtectionBypass4
254
- | GetAliasProtectionBypass2;
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
- | GetAliasProtectionBypass1$Outbound
826
- | ProtectionBypass3$Outbound
825
+ | GetAliasProtectionBypass2$Outbound
827
826
  | ProtectionBypass4$Outbound
828
- | GetAliasProtectionBypass2$Outbound;
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
- | GetAliasProtectionBypass1$Outbound
1085
- | ProtectionBypass3$Outbound
1084
+ | GetAliasProtectionBypass2$Outbound
1086
1085
  | ProtectionBypass4$Outbound
1087
- | GetAliasProtectionBypass2$Outbound;
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 = AuthUserLimited | AuthUser;
22
+ export type GetAuthUserUser = AuthUser | AuthUserLimited;
23
23
 
24
24
  /**
25
25
  * Successful response.
26
26
  */
27
27
  export type GetAuthUserResponseBody = {
28
- user: AuthUserLimited | AuthUser;
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([AuthUserLimited$inboundSchema, AuthUser$inboundSchema]);
36
+ > = z.union([AuthUser$inboundSchema, AuthUserLimited$inboundSchema]);
37
37
 
38
38
  /** @internal */
39
39
  export type GetAuthUserUser$Outbound =
40
- | AuthUserLimited$Outbound
41
- | AuthUser$Outbound;
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([AuthUserLimited$outboundSchema, AuthUser$outboundSchema]);
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([AuthUserLimited$inboundSchema, AuthUser$inboundSchema]),
85
+ user: z.union([AuthUser$inboundSchema, AuthUserLimited$inboundSchema]),
86
86
  });
87
87
 
88
88
  /** @internal */
89
89
  export type GetAuthUserResponseBody$Outbound = {
90
- user: AuthUserLimited$Outbound | AuthUser$Outbound;
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([AuthUserLimited$outboundSchema, AuthUser$outboundSchema]),
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 = TransferRequest2 | TransferRequest1;
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
- transferRequest: TransferRequest2 | TransferRequest1;
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
- | GetConfigurationResponseBody1
365
- | GetConfigurationResponseBody2;
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
- | TransferRequest2$Outbound
902
- | TransferRequest1$Outbound;
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
- transferRequest: TransferRequest2$Outbound | TransferRequest1$Outbound;
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
- | GetConfigurationResponseBody1$Outbound
1384
- | GetConfigurationResponseBody2$Outbound;
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
- | GetDeploymentEventsResponseBodyDeployments1
209
- | GetDeploymentEventsResponseBodyDeployments2;
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
- | GetDeploymentEventsResponseBody1
345
- | GetDeploymentEventsResponseBody2;
344
+ | GetDeploymentEventsResponseBody2
345
+ | GetDeploymentEventsResponseBody1;
346
346
 
347
347
  export type GetDeploymentEventsResponse =
348
348
  | Array<
349
- GetDeploymentEventsResponseBody1 | GetDeploymentEventsResponseBody2 | null
349
+ GetDeploymentEventsResponseBody2 | GetDeploymentEventsResponseBody1 | null
350
350
  >
351
- | GetDeploymentEventsResponseBodyDeployments1
352
- | GetDeploymentEventsResponseBodyDeployments2;
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
- | GetDeploymentEventsResponseBodyDeployments1$Outbound
1126
- | GetDeploymentEventsResponseBodyDeployments2$Outbound;
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
- | GetDeploymentEventsResponseBody1$Outbound
1764
- | GetDeploymentEventsResponseBody2$Outbound;
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(() => GetDeploymentEventsResponseBody1$inboundSchema),
1826
+ z.lazy(() => GetDeploymentEventsResponseBody2$inboundSchema),
1827
1827
  z.lazy(() =>
1828
- GetDeploymentEventsResponseBody2$inboundSchema
1828
+ GetDeploymentEventsResponseBody1$inboundSchema
1829
1829
  ),
1830
1830
  ]))),
1831
1831
  z.union([
1832
- z.lazy(() => GetDeploymentEventsResponseBodyDeployments1$inboundSchema),
1832
+ z.lazy(() => GetDeploymentEventsResponseBodyDeployments2$inboundSchema),
1833
1833
  z.lazy(() =>
1834
- GetDeploymentEventsResponseBodyDeployments2$inboundSchema
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
- | GetDeploymentEventsResponseBodyDeployments1$Outbound
1847
- | GetDeploymentEventsResponseBodyDeployments2$Outbound;
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(() => GetDeploymentEventsResponseBody1$outboundSchema),
1856
+ z.lazy(() => GetDeploymentEventsResponseBody2$outboundSchema),
1857
1857
  z.lazy(() =>
1858
- GetDeploymentEventsResponseBody2$outboundSchema
1858
+ GetDeploymentEventsResponseBody1$outboundSchema
1859
1859
  ),
1860
1860
  ]))),
1861
1861
  z.union([
1862
- z.lazy(() => GetDeploymentEventsResponseBodyDeployments1$outboundSchema),
1862
+ z.lazy(() => GetDeploymentEventsResponseBodyDeployments2$outboundSchema),
1863
1863
  z.lazy(() =>
1864
- GetDeploymentEventsResponseBodyDeployments2$outboundSchema
1864
+ GetDeploymentEventsResponseBodyDeployments1$outboundSchema
1865
1865
  ),
1866
1866
  ]),
1867
1867
  ]);