@vercel/sdk 1.18.3 → 1.18.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 (250) hide show
  1. package/README.md +42 -22
  2. package/bin/mcp-server.js +2709 -2592
  3. package/bin/mcp-server.js.map +32 -32
  4. package/esm/__tests__/accessgroups.test.js +1 -3
  5. package/esm/__tests__/accessgroups.test.js.map +1 -1
  6. package/esm/__tests__/bulkredirects.test.d.ts +2 -0
  7. package/esm/__tests__/bulkredirects.test.d.ts.map +1 -0
  8. package/esm/__tests__/bulkredirects.test.js +171 -0
  9. package/esm/__tests__/bulkredirects.test.js.map +1 -0
  10. package/esm/__tests__/domains.test.js +9 -6
  11. package/esm/__tests__/domains.test.js.map +1 -1
  12. package/esm/__tests__/edgeconfig.test.js +6 -6
  13. package/esm/__tests__/edgeconfig.test.js.map +1 -1
  14. package/esm/__tests__/security.test.js +23 -14
  15. package/esm/__tests__/security.test.js.map +1 -1
  16. package/esm/__tests__/vercel.test.js +15 -143
  17. package/esm/__tests__/vercel.test.js.map +1 -1
  18. package/esm/funcs/{deleteV1BulkRedirects.d.ts → bulkRedirectsDeleteRedirects.d.ts} +6 -3
  19. package/esm/funcs/bulkRedirectsDeleteRedirects.d.ts.map +1 -0
  20. package/esm/funcs/{deleteV1BulkRedirects.js → bulkRedirectsDeleteRedirects.js} +19 -9
  21. package/esm/funcs/bulkRedirectsDeleteRedirects.js.map +1 -0
  22. package/esm/funcs/{patchV1BulkRedirects.d.ts → bulkRedirectsEditRedirect.d.ts} +6 -3
  23. package/esm/funcs/bulkRedirectsEditRedirect.d.ts.map +1 -0
  24. package/esm/funcs/{patchV1BulkRedirects.js → bulkRedirectsEditRedirect.js} +19 -9
  25. package/esm/funcs/bulkRedirectsEditRedirect.js.map +1 -0
  26. package/esm/funcs/{getV1BulkRedirects.d.ts → bulkRedirectsGetRedirects.d.ts} +6 -3
  27. package/esm/funcs/bulkRedirectsGetRedirects.d.ts.map +1 -0
  28. package/esm/funcs/{getV1BulkRedirects.js → bulkRedirectsGetRedirects.js} +19 -9
  29. package/esm/funcs/bulkRedirectsGetRedirects.js.map +1 -0
  30. package/esm/funcs/{getV1BulkRedirectsVersions.d.ts → bulkRedirectsGetVersions.d.ts} +6 -3
  31. package/esm/funcs/bulkRedirectsGetVersions.d.ts.map +1 -0
  32. package/esm/funcs/{getV1BulkRedirectsVersions.js → bulkRedirectsGetVersions.js} +19 -9
  33. package/esm/funcs/bulkRedirectsGetVersions.js.map +1 -0
  34. package/esm/funcs/{postV1BulkRedirectsRestore.d.ts → bulkRedirectsRestoreRedirects.d.ts} +6 -3
  35. package/esm/funcs/bulkRedirectsRestoreRedirects.d.ts.map +1 -0
  36. package/esm/funcs/{postV1BulkRedirectsRestore.js → bulkRedirectsRestoreRedirects.js} +19 -9
  37. package/esm/funcs/bulkRedirectsRestoreRedirects.js.map +1 -0
  38. package/esm/funcs/bulkRedirectsStageRedirects.d.ts +17 -0
  39. package/esm/funcs/bulkRedirectsStageRedirects.d.ts.map +1 -0
  40. package/esm/funcs/bulkRedirectsStageRedirects.js +83 -0
  41. package/esm/funcs/bulkRedirectsStageRedirects.js.map +1 -0
  42. package/esm/funcs/{postV1BulkRedirectsVersions.d.ts → bulkRedirectsUpdateVersion.d.ts} +6 -3
  43. package/esm/funcs/bulkRedirectsUpdateVersion.d.ts.map +1 -0
  44. package/esm/funcs/{postV1BulkRedirectsVersions.js → bulkRedirectsUpdateVersion.js} +19 -9
  45. package/esm/funcs/bulkRedirectsUpdateVersion.js.map +1 -0
  46. package/esm/lib/config.d.ts +2 -2
  47. package/esm/lib/config.js +2 -2
  48. package/esm/mcp-server/mcp-server.js +1 -1
  49. package/esm/mcp-server/server.js +15 -15
  50. package/esm/mcp-server/server.js.map +1 -1
  51. package/esm/mcp-server/tools/bulkRedirectsDeleteRedirects.d.ts +7 -0
  52. package/esm/mcp-server/tools/bulkRedirectsDeleteRedirects.d.ts.map +1 -0
  53. package/esm/mcp-server/tools/bulkRedirectsDeleteRedirects.js +28 -0
  54. package/esm/mcp-server/tools/bulkRedirectsDeleteRedirects.js.map +1 -0
  55. package/esm/mcp-server/tools/bulkRedirectsEditRedirect.d.ts +7 -0
  56. package/esm/mcp-server/tools/bulkRedirectsEditRedirect.d.ts.map +1 -0
  57. package/esm/mcp-server/tools/bulkRedirectsEditRedirect.js +28 -0
  58. package/esm/mcp-server/tools/bulkRedirectsEditRedirect.js.map +1 -0
  59. package/esm/mcp-server/tools/bulkRedirectsGetRedirects.d.ts +7 -0
  60. package/esm/mcp-server/tools/bulkRedirectsGetRedirects.d.ts.map +1 -0
  61. package/esm/mcp-server/tools/bulkRedirectsGetRedirects.js +28 -0
  62. package/esm/mcp-server/tools/bulkRedirectsGetRedirects.js.map +1 -0
  63. package/esm/mcp-server/tools/bulkRedirectsGetVersions.d.ts +7 -0
  64. package/esm/mcp-server/tools/bulkRedirectsGetVersions.d.ts.map +1 -0
  65. package/esm/mcp-server/tools/bulkRedirectsGetVersions.js +28 -0
  66. package/esm/mcp-server/tools/bulkRedirectsGetVersions.js.map +1 -0
  67. package/esm/mcp-server/tools/bulkRedirectsRestoreRedirects.d.ts +7 -0
  68. package/esm/mcp-server/tools/bulkRedirectsRestoreRedirects.d.ts.map +1 -0
  69. package/esm/mcp-server/tools/bulkRedirectsRestoreRedirects.js +28 -0
  70. package/esm/mcp-server/tools/bulkRedirectsRestoreRedirects.js.map +1 -0
  71. package/esm/mcp-server/tools/bulkRedirectsStageRedirects.d.ts +7 -0
  72. package/esm/mcp-server/tools/bulkRedirectsStageRedirects.d.ts.map +1 -0
  73. package/esm/mcp-server/tools/bulkRedirectsStageRedirects.js +28 -0
  74. package/esm/mcp-server/tools/bulkRedirectsStageRedirects.js.map +1 -0
  75. package/esm/mcp-server/tools/bulkRedirectsUpdateVersion.d.ts +7 -0
  76. package/esm/mcp-server/tools/bulkRedirectsUpdateVersion.d.ts.map +1 -0
  77. package/esm/mcp-server/tools/bulkRedirectsUpdateVersion.js +28 -0
  78. package/esm/mcp-server/tools/bulkRedirectsUpdateVersion.js.map +1 -0
  79. package/esm/models/artifactqueryop.d.ts +8 -8
  80. package/esm/models/artifactqueryop.d.ts.map +1 -1
  81. package/esm/models/artifactqueryop.js +8 -8
  82. package/esm/models/artifactqueryop.js.map +1 -1
  83. package/esm/models/deleteredirectsop.d.ts +112 -0
  84. package/esm/models/deleteredirectsop.d.ts.map +1 -0
  85. package/esm/models/deleteredirectsop.js +99 -0
  86. package/esm/models/deleteredirectsop.js.map +1 -0
  87. package/esm/models/{patchv1bulkredirectsop.d.ts → editredirectop.d.ts} +39 -29
  88. package/esm/models/editredirectop.d.ts.map +1 -0
  89. package/esm/models/editredirectop.js +123 -0
  90. package/esm/models/editredirectop.js.map +1 -0
  91. package/esm/models/getfirewallconfigop.d.ts +8 -8
  92. package/esm/models/getfirewallconfigop.d.ts.map +1 -1
  93. package/esm/models/getfirewallconfigop.js +10 -8
  94. package/esm/models/getfirewallconfigop.js.map +1 -1
  95. package/esm/models/{getv1bulkredirectsop.d.ts → getredirectsop.d.ts} +37 -27
  96. package/esm/models/getredirectsop.d.ts.map +1 -0
  97. package/esm/models/{getv1bulkredirectsop.js → getredirectsop.js} +38 -28
  98. package/esm/models/getredirectsop.js.map +1 -0
  99. package/esm/models/{getv1bulkredirectsversionsop.d.ts → getversionsop.d.ts} +23 -13
  100. package/esm/models/getversionsop.d.ts.map +1 -0
  101. package/esm/models/{getv1bulkredirectsversionsop.js → getversionsop.js} +17 -13
  102. package/esm/models/getversionsop.js.map +1 -0
  103. package/esm/models/listaccessgroupsop.d.ts +8 -8
  104. package/esm/models/listaccessgroupsop.d.ts.map +1 -1
  105. package/esm/models/listaccessgroupsop.js +8 -8
  106. package/esm/models/listaccessgroupsop.js.map +1 -1
  107. package/esm/models/putfirewallconfigop.d.ts +11 -6
  108. package/esm/models/putfirewallconfigop.d.ts.map +1 -1
  109. package/esm/models/putfirewallconfigop.js +12 -2
  110. package/esm/models/putfirewallconfigop.js.map +1 -1
  111. package/esm/models/restoreredirectsop.d.ts +114 -0
  112. package/esm/models/restoreredirectsop.d.ts.map +1 -0
  113. package/esm/models/restoreredirectsop.js +101 -0
  114. package/esm/models/restoreredirectsop.js.map +1 -0
  115. package/esm/models/{putv1bulkredirectsop.d.ts → stageredirectsop.d.ts} +44 -21
  116. package/esm/models/stageredirectsop.d.ts.map +1 -0
  117. package/esm/models/stageredirectsop.js +136 -0
  118. package/esm/models/stageredirectsop.js.map +1 -0
  119. package/esm/models/team.d.ts +6 -6
  120. package/esm/models/team.d.ts.map +1 -1
  121. package/esm/models/team.js +6 -4
  122. package/esm/models/team.js.map +1 -1
  123. package/esm/models/updateversionop.d.ts +120 -0
  124. package/esm/models/updateversionop.d.ts.map +1 -0
  125. package/esm/models/updateversionop.js +106 -0
  126. package/esm/models/updateversionop.js.map +1 -0
  127. package/esm/sdk/bulkredirects.d.ts +60 -0
  128. package/esm/sdk/bulkredirects.d.ts.map +1 -0
  129. package/esm/sdk/bulkredirects.js +78 -0
  130. package/esm/sdk/bulkredirects.js.map +1 -0
  131. package/esm/sdk/sdk.d.ts +4 -33
  132. package/esm/sdk/sdk.d.ts.map +1 -1
  133. package/esm/sdk/sdk.js +4 -47
  134. package/esm/sdk/sdk.js.map +1 -1
  135. package/examples/package-lock.json +1 -1
  136. package/jsr.json +1 -1
  137. package/package.json +1 -1
  138. package/src/__tests__/accessgroups.test.ts +1 -3
  139. package/src/__tests__/bulkredirects.test.ts +192 -0
  140. package/src/__tests__/domains.test.ts +9 -6
  141. package/src/__tests__/edgeconfig.test.ts +6 -6
  142. package/src/__tests__/security.test.ts +23 -14
  143. package/src/__tests__/vercel.test.ts +26 -160
  144. package/src/funcs/{deleteV1BulkRedirects.ts → bulkRedirectsDeleteRedirects.ts} +28 -17
  145. package/src/funcs/{patchV1BulkRedirects.ts → bulkRedirectsEditRedirect.ts} +29 -18
  146. package/src/funcs/{getV1BulkRedirects.ts → bulkRedirectsGetRedirects.ts} +28 -17
  147. package/src/funcs/{getV1BulkRedirectsVersions.ts → bulkRedirectsGetVersions.ts} +28 -17
  148. package/src/funcs/{postV1BulkRedirectsRestore.ts → bulkRedirectsRestoreRedirects.ts} +29 -18
  149. package/src/funcs/bulkRedirectsStageRedirects.ts +171 -0
  150. package/src/funcs/{postV1BulkRedirectsVersions.ts → bulkRedirectsUpdateVersion.ts} +29 -18
  151. package/src/lib/config.ts +2 -2
  152. package/src/mcp-server/mcp-server.ts +1 -1
  153. package/src/mcp-server/server.ts +15 -15
  154. package/src/mcp-server/tools/bulkRedirectsDeleteRedirects.ts +37 -0
  155. package/src/mcp-server/tools/bulkRedirectsEditRedirect.ts +37 -0
  156. package/src/mcp-server/tools/{getV1BulkRedirects.ts → bulkRedirectsGetRedirects.ts} +9 -7
  157. package/src/mcp-server/tools/{putV1BulkRedirects.ts → bulkRedirectsGetVersions.ts} +9 -7
  158. package/src/mcp-server/tools/bulkRedirectsRestoreRedirects.ts +38 -0
  159. package/src/mcp-server/tools/bulkRedirectsStageRedirects.ts +37 -0
  160. package/src/mcp-server/tools/bulkRedirectsUpdateVersion.ts +38 -0
  161. package/src/models/artifactqueryop.ts +17 -21
  162. package/src/models/deleteredirectsop.ts +275 -0
  163. package/src/models/{patchv1bulkredirectsop.ts → editredirectop.ts} +78 -74
  164. package/src/models/getfirewallconfigop.ts +25 -17
  165. package/src/models/{getv1bulkredirectsop.ts → getredirectsop.ts} +91 -66
  166. package/src/models/{getv1bulkredirectsversionsop.ts → getversionsop.ts} +42 -34
  167. package/src/models/listaccessgroupsop.ts +18 -26
  168. package/src/models/putfirewallconfigop.ts +35 -4
  169. package/src/models/restoreredirectsop.ts +281 -0
  170. package/src/models/{putv1bulkredirectsop.ts → stageredirectsop.ts} +113 -50
  171. package/src/models/team.ts +14 -10
  172. package/src/models/updateversionop.ts +285 -0
  173. package/src/sdk/bulkredirects.ts +162 -0
  174. package/src/sdk/sdk.ts +7 -132
  175. package/vercel-spec.json +212 -36
  176. package/esm/funcs/deleteV1BulkRedirects.d.ts.map +0 -1
  177. package/esm/funcs/deleteV1BulkRedirects.js.map +0 -1
  178. package/esm/funcs/getV1BulkRedirects.d.ts.map +0 -1
  179. package/esm/funcs/getV1BulkRedirects.js.map +0 -1
  180. package/esm/funcs/getV1BulkRedirectsVersions.d.ts.map +0 -1
  181. package/esm/funcs/getV1BulkRedirectsVersions.js.map +0 -1
  182. package/esm/funcs/patchV1BulkRedirects.d.ts.map +0 -1
  183. package/esm/funcs/patchV1BulkRedirects.js.map +0 -1
  184. package/esm/funcs/postV1BulkRedirectsRestore.d.ts.map +0 -1
  185. package/esm/funcs/postV1BulkRedirectsRestore.js.map +0 -1
  186. package/esm/funcs/postV1BulkRedirectsVersions.d.ts.map +0 -1
  187. package/esm/funcs/postV1BulkRedirectsVersions.js.map +0 -1
  188. package/esm/funcs/putV1BulkRedirects.d.ts +0 -11
  189. package/esm/funcs/putV1BulkRedirects.d.ts.map +0 -1
  190. package/esm/funcs/putV1BulkRedirects.js +0 -69
  191. package/esm/funcs/putV1BulkRedirects.js.map +0 -1
  192. package/esm/mcp-server/tools/deleteV1BulkRedirects.d.ts +0 -7
  193. package/esm/mcp-server/tools/deleteV1BulkRedirects.d.ts.map +0 -1
  194. package/esm/mcp-server/tools/deleteV1BulkRedirects.js +0 -26
  195. package/esm/mcp-server/tools/deleteV1BulkRedirects.js.map +0 -1
  196. package/esm/mcp-server/tools/getV1BulkRedirects.d.ts +0 -7
  197. package/esm/mcp-server/tools/getV1BulkRedirects.d.ts.map +0 -1
  198. package/esm/mcp-server/tools/getV1BulkRedirects.js +0 -26
  199. package/esm/mcp-server/tools/getV1BulkRedirects.js.map +0 -1
  200. package/esm/mcp-server/tools/getV1BulkRedirectsVersions.d.ts +0 -7
  201. package/esm/mcp-server/tools/getV1BulkRedirectsVersions.d.ts.map +0 -1
  202. package/esm/mcp-server/tools/getV1BulkRedirectsVersions.js +0 -26
  203. package/esm/mcp-server/tools/getV1BulkRedirectsVersions.js.map +0 -1
  204. package/esm/mcp-server/tools/patchV1BulkRedirects.d.ts +0 -7
  205. package/esm/mcp-server/tools/patchV1BulkRedirects.d.ts.map +0 -1
  206. package/esm/mcp-server/tools/patchV1BulkRedirects.js +0 -26
  207. package/esm/mcp-server/tools/patchV1BulkRedirects.js.map +0 -1
  208. package/esm/mcp-server/tools/postV1BulkRedirectsRestore.d.ts +0 -7
  209. package/esm/mcp-server/tools/postV1BulkRedirectsRestore.d.ts.map +0 -1
  210. package/esm/mcp-server/tools/postV1BulkRedirectsRestore.js +0 -26
  211. package/esm/mcp-server/tools/postV1BulkRedirectsRestore.js.map +0 -1
  212. package/esm/mcp-server/tools/postV1BulkRedirectsVersions.d.ts +0 -7
  213. package/esm/mcp-server/tools/postV1BulkRedirectsVersions.d.ts.map +0 -1
  214. package/esm/mcp-server/tools/postV1BulkRedirectsVersions.js +0 -26
  215. package/esm/mcp-server/tools/postV1BulkRedirectsVersions.js.map +0 -1
  216. package/esm/mcp-server/tools/putV1BulkRedirects.d.ts +0 -7
  217. package/esm/mcp-server/tools/putV1BulkRedirects.d.ts.map +0 -1
  218. package/esm/mcp-server/tools/putV1BulkRedirects.js +0 -26
  219. package/esm/mcp-server/tools/putV1BulkRedirects.js.map +0 -1
  220. package/esm/models/deletev1bulkredirectsop.d.ts +0 -102
  221. package/esm/models/deletev1bulkredirectsop.d.ts.map +0 -1
  222. package/esm/models/deletev1bulkredirectsop.js +0 -95
  223. package/esm/models/deletev1bulkredirectsop.js.map +0 -1
  224. package/esm/models/getv1bulkredirectsop.d.ts.map +0 -1
  225. package/esm/models/getv1bulkredirectsop.js.map +0 -1
  226. package/esm/models/getv1bulkredirectsversionsop.d.ts.map +0 -1
  227. package/esm/models/getv1bulkredirectsversionsop.js.map +0 -1
  228. package/esm/models/patchv1bulkredirectsop.d.ts.map +0 -1
  229. package/esm/models/patchv1bulkredirectsop.js +0 -121
  230. package/esm/models/patchv1bulkredirectsop.js.map +0 -1
  231. package/esm/models/postv1bulkredirectsrestoreop.d.ts +0 -104
  232. package/esm/models/postv1bulkredirectsrestoreop.d.ts.map +0 -1
  233. package/esm/models/postv1bulkredirectsrestoreop.js +0 -96
  234. package/esm/models/postv1bulkredirectsrestoreop.js.map +0 -1
  235. package/esm/models/postv1bulkredirectsversionsop.d.ts +0 -110
  236. package/esm/models/postv1bulkredirectsversionsop.d.ts.map +0 -1
  237. package/esm/models/postv1bulkredirectsversionsop.js +0 -102
  238. package/esm/models/postv1bulkredirectsversionsop.js.map +0 -1
  239. package/esm/models/putv1bulkredirectsop.d.ts.map +0 -1
  240. package/esm/models/putv1bulkredirectsop.js +0 -108
  241. package/esm/models/putv1bulkredirectsop.js.map +0 -1
  242. package/src/funcs/putV1BulkRedirects.ts +0 -156
  243. package/src/mcp-server/tools/deleteV1BulkRedirects.ts +0 -36
  244. package/src/mcp-server/tools/getV1BulkRedirectsVersions.ts +0 -35
  245. package/src/mcp-server/tools/patchV1BulkRedirects.ts +0 -36
  246. package/src/mcp-server/tools/postV1BulkRedirectsRestore.ts +0 -36
  247. package/src/mcp-server/tools/postV1BulkRedirectsVersions.ts +0 -36
  248. package/src/models/deletev1bulkredirectsop.ts +0 -267
  249. package/src/models/postv1bulkredirectsrestoreop.ts +0 -275
  250. package/src/models/postv1bulkredirectsversionsop.ts +0 -296
@@ -0,0 +1,114 @@
1
+ import * as z from "zod/v3";
2
+ import { Result as SafeParseResult } from "../types/fp.js";
3
+ import { SDKValidationError } from "./sdkvalidationerror.js";
4
+ export type RestoreRedirectsRequestBody = {
5
+ name?: string | undefined;
6
+ /**
7
+ * The redirects to restore. The source of the redirect is used to match the redirect to restore.
8
+ */
9
+ redirects: Array<string>;
10
+ };
11
+ export type RestoreRedirectsRequest = {
12
+ projectId: string;
13
+ /**
14
+ * The Team identifier to perform the request on behalf of.
15
+ */
16
+ teamId?: string | undefined;
17
+ /**
18
+ * The Team slug to perform the request on behalf of.
19
+ */
20
+ slug?: string | undefined;
21
+ requestBody?: RestoreRedirectsRequestBody | undefined;
22
+ };
23
+ export type RestoreRedirectsVersion = {
24
+ /**
25
+ * The unique identifier for the version.
26
+ */
27
+ id: string;
28
+ /**
29
+ * The key of the version. The key may be duplicated across versions if the contents are the same as a different version.
30
+ */
31
+ key: string;
32
+ lastModified: number;
33
+ createdBy: string;
34
+ /**
35
+ * Optional name for the version. If not provided, defaults to an ISO timestamp string.
36
+ */
37
+ name?: string | undefined;
38
+ /**
39
+ * Whether this version has not been promoted to production yet and is not serving end users.
40
+ */
41
+ isStaging?: boolean | undefined;
42
+ /**
43
+ * Whether this version is currently live in production.
44
+ */
45
+ isLive?: boolean | undefined;
46
+ /**
47
+ * The number of redirects in this version.
48
+ */
49
+ redirectCount?: number | undefined;
50
+ /**
51
+ * The staging link for previewing redirects in this version.
52
+ */
53
+ alias?: string | undefined;
54
+ };
55
+ export type RestoreRedirectsResponseBody = {
56
+ version: RestoreRedirectsVersion;
57
+ restored: Array<string>;
58
+ failedToRestore: Array<string>;
59
+ };
60
+ /** @internal */
61
+ export declare const RestoreRedirectsRequestBody$inboundSchema: z.ZodType<RestoreRedirectsRequestBody, z.ZodTypeDef, unknown>;
62
+ /** @internal */
63
+ export type RestoreRedirectsRequestBody$Outbound = {
64
+ name?: string | undefined;
65
+ redirects: Array<string>;
66
+ };
67
+ /** @internal */
68
+ export declare const RestoreRedirectsRequestBody$outboundSchema: z.ZodType<RestoreRedirectsRequestBody$Outbound, z.ZodTypeDef, RestoreRedirectsRequestBody>;
69
+ export declare function restoreRedirectsRequestBodyToJSON(restoreRedirectsRequestBody: RestoreRedirectsRequestBody): string;
70
+ export declare function restoreRedirectsRequestBodyFromJSON(jsonString: string): SafeParseResult<RestoreRedirectsRequestBody, SDKValidationError>;
71
+ /** @internal */
72
+ export declare const RestoreRedirectsRequest$inboundSchema: z.ZodType<RestoreRedirectsRequest, z.ZodTypeDef, unknown>;
73
+ /** @internal */
74
+ export type RestoreRedirectsRequest$Outbound = {
75
+ projectId: string;
76
+ teamId?: string | undefined;
77
+ slug?: string | undefined;
78
+ RequestBody?: RestoreRedirectsRequestBody$Outbound | undefined;
79
+ };
80
+ /** @internal */
81
+ export declare const RestoreRedirectsRequest$outboundSchema: z.ZodType<RestoreRedirectsRequest$Outbound, z.ZodTypeDef, RestoreRedirectsRequest>;
82
+ export declare function restoreRedirectsRequestToJSON(restoreRedirectsRequest: RestoreRedirectsRequest): string;
83
+ export declare function restoreRedirectsRequestFromJSON(jsonString: string): SafeParseResult<RestoreRedirectsRequest, SDKValidationError>;
84
+ /** @internal */
85
+ export declare const RestoreRedirectsVersion$inboundSchema: z.ZodType<RestoreRedirectsVersion, z.ZodTypeDef, unknown>;
86
+ /** @internal */
87
+ export type RestoreRedirectsVersion$Outbound = {
88
+ id: string;
89
+ key: string;
90
+ lastModified: number;
91
+ createdBy: string;
92
+ name?: string | undefined;
93
+ isStaging?: boolean | undefined;
94
+ isLive?: boolean | undefined;
95
+ redirectCount?: number | undefined;
96
+ alias?: string | undefined;
97
+ };
98
+ /** @internal */
99
+ export declare const RestoreRedirectsVersion$outboundSchema: z.ZodType<RestoreRedirectsVersion$Outbound, z.ZodTypeDef, RestoreRedirectsVersion>;
100
+ export declare function restoreRedirectsVersionToJSON(restoreRedirectsVersion: RestoreRedirectsVersion): string;
101
+ export declare function restoreRedirectsVersionFromJSON(jsonString: string): SafeParseResult<RestoreRedirectsVersion, SDKValidationError>;
102
+ /** @internal */
103
+ export declare const RestoreRedirectsResponseBody$inboundSchema: z.ZodType<RestoreRedirectsResponseBody, z.ZodTypeDef, unknown>;
104
+ /** @internal */
105
+ export type RestoreRedirectsResponseBody$Outbound = {
106
+ version: RestoreRedirectsVersion$Outbound;
107
+ restored: Array<string>;
108
+ failedToRestore: Array<string>;
109
+ };
110
+ /** @internal */
111
+ export declare const RestoreRedirectsResponseBody$outboundSchema: z.ZodType<RestoreRedirectsResponseBody$Outbound, z.ZodTypeDef, RestoreRedirectsResponseBody>;
112
+ export declare function restoreRedirectsResponseBodyToJSON(restoreRedirectsResponseBody: RestoreRedirectsResponseBody): string;
113
+ export declare function restoreRedirectsResponseBodyFromJSON(jsonString: string): SafeParseResult<RestoreRedirectsResponseBody, SDKValidationError>;
114
+ //# sourceMappingURL=restoreredirectsop.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"restoreredirectsop.d.ts","sourceRoot":"","sources":["../../src/models/restoreredirectsop.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,MAAM,MAAM,2BAA2B,GAAG;IACxC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B;;OAEG;IACH,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,WAAW,CAAC,EAAE,2BAA2B,GAAG,SAAS,CAAC;CACvD,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAChC;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC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Z,OAAO,CAKP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,qCAAqC,GAAG;IAClD,OAAO,EAAE,gCAAgC,CAAC;IAC1C,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACxB,eAAe,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAChC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,2CAA2C,EAAE,CAAC,CAAC,OAAO,CACjE,qCAAqC,EACrC,CAAC,CAAC,UAAU,EACZ,4BAA4B,CAK5B,CAAC;AAEH,wBAAgB,kCAAkC,CAChD,4BAA4B,EAAE,4BAA4B,GACzD,MAAM,CAMR;AACD,wBAAgB,oCAAoC,CAClD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,4BAA4B,EAAE,kBAAkB,CAAC,CAMnE"}
@@ -0,0 +1,101 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod/v3";
5
+ import { remap as remap$ } from "../lib/primitives.js";
6
+ import { safeParse } from "../lib/schemas.js";
7
+ /** @internal */
8
+ export const RestoreRedirectsRequestBody$inboundSchema = z.object({
9
+ name: z.string().optional(),
10
+ redirects: z.array(z.string()),
11
+ });
12
+ /** @internal */
13
+ export const RestoreRedirectsRequestBody$outboundSchema = z.object({
14
+ name: z.string().optional(),
15
+ redirects: z.array(z.string()),
16
+ });
17
+ export function restoreRedirectsRequestBodyToJSON(restoreRedirectsRequestBody) {
18
+ return JSON.stringify(RestoreRedirectsRequestBody$outboundSchema.parse(restoreRedirectsRequestBody));
19
+ }
20
+ export function restoreRedirectsRequestBodyFromJSON(jsonString) {
21
+ return safeParse(jsonString, (x) => RestoreRedirectsRequestBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RestoreRedirectsRequestBody' from JSON`);
22
+ }
23
+ /** @internal */
24
+ export const RestoreRedirectsRequest$inboundSchema = z.object({
25
+ projectId: z.string(),
26
+ teamId: z.string().optional(),
27
+ slug: z.string().optional(),
28
+ RequestBody: z.lazy(() => RestoreRedirectsRequestBody$inboundSchema)
29
+ .optional(),
30
+ }).transform((v) => {
31
+ return remap$(v, {
32
+ "RequestBody": "requestBody",
33
+ });
34
+ });
35
+ /** @internal */
36
+ export const RestoreRedirectsRequest$outboundSchema = z.object({
37
+ projectId: z.string(),
38
+ teamId: z.string().optional(),
39
+ slug: z.string().optional(),
40
+ requestBody: z.lazy(() => RestoreRedirectsRequestBody$outboundSchema)
41
+ .optional(),
42
+ }).transform((v) => {
43
+ return remap$(v, {
44
+ requestBody: "RequestBody",
45
+ });
46
+ });
47
+ export function restoreRedirectsRequestToJSON(restoreRedirectsRequest) {
48
+ return JSON.stringify(RestoreRedirectsRequest$outboundSchema.parse(restoreRedirectsRequest));
49
+ }
50
+ export function restoreRedirectsRequestFromJSON(jsonString) {
51
+ return safeParse(jsonString, (x) => RestoreRedirectsRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RestoreRedirectsRequest' from JSON`);
52
+ }
53
+ /** @internal */
54
+ export const RestoreRedirectsVersion$inboundSchema = z.object({
55
+ id: z.string(),
56
+ key: z.string(),
57
+ lastModified: z.number(),
58
+ createdBy: z.string(),
59
+ name: z.string().optional(),
60
+ isStaging: z.boolean().optional(),
61
+ isLive: z.boolean().optional(),
62
+ redirectCount: z.number().optional(),
63
+ alias: z.string().optional(),
64
+ });
65
+ /** @internal */
66
+ export const RestoreRedirectsVersion$outboundSchema = z.object({
67
+ id: z.string(),
68
+ key: z.string(),
69
+ lastModified: z.number(),
70
+ createdBy: z.string(),
71
+ name: z.string().optional(),
72
+ isStaging: z.boolean().optional(),
73
+ isLive: z.boolean().optional(),
74
+ redirectCount: z.number().optional(),
75
+ alias: z.string().optional(),
76
+ });
77
+ export function restoreRedirectsVersionToJSON(restoreRedirectsVersion) {
78
+ return JSON.stringify(RestoreRedirectsVersion$outboundSchema.parse(restoreRedirectsVersion));
79
+ }
80
+ export function restoreRedirectsVersionFromJSON(jsonString) {
81
+ return safeParse(jsonString, (x) => RestoreRedirectsVersion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RestoreRedirectsVersion' from JSON`);
82
+ }
83
+ /** @internal */
84
+ export const RestoreRedirectsResponseBody$inboundSchema = z.object({
85
+ version: z.lazy(() => RestoreRedirectsVersion$inboundSchema),
86
+ restored: z.array(z.string()),
87
+ failedToRestore: z.array(z.string()),
88
+ });
89
+ /** @internal */
90
+ export const RestoreRedirectsResponseBody$outboundSchema = z.object({
91
+ version: z.lazy(() => RestoreRedirectsVersion$outboundSchema),
92
+ restored: z.array(z.string()),
93
+ failedToRestore: z.array(z.string()),
94
+ });
95
+ export function restoreRedirectsResponseBodyToJSON(restoreRedirectsResponseBody) {
96
+ return JSON.stringify(RestoreRedirectsResponseBody$outboundSchema.parse(restoreRedirectsResponseBody));
97
+ }
98
+ export function restoreRedirectsResponseBodyFromJSON(jsonString) {
99
+ return safeParse(jsonString, (x) => RestoreRedirectsResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RestoreRedirectsResponseBody' from JSON`);
100
+ }
101
+ //# sourceMappingURL=restoreredirectsop.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"restoreredirectsop.js","sourceRoot":"","sources":["../../src/models/restoreredirectsop.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAgE9C,gBAAgB;AAChB,MAAM,CAAC,MAAM,yCAAyC,GAIlD,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CAC/B,CAAC,CAAC;AAOH,gBAAgB;AA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C;CACrC,CAAC,CAAC;AAQH,gBAAgB;AAChB,MAAM,CAAC,MAAM,2CAA2C,GAIpD,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,sCAAsC,CAAC;IAC7D,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC7B,eAAe,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CACrC,CAAC,CAAC;AAEH,MAAM,UAAU,kCAAkC,CAChD,4BAA0D;IAE1D,OAAO,IAAI,CAAC,SAAS,CACnB,2CAA2C,CAAC,KAAK,CAC/C,4BAA4B,CAC7B,CACF,CAAC;AACJ,CAAC;AACD,MAAM,UAAU,oCAAoC,CAClD,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,0CAA0C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACtE,0DAA0D,CAC3D,CAAC;AACJ,CAAC"}
@@ -10,14 +10,25 @@ export type Redirects = {
10
10
  caseSensitive?: boolean | undefined;
11
11
  query?: boolean | undefined;
12
12
  };
13
- export type PutV1BulkRedirectsRequestBody = {
13
+ export type StageRedirectsRequestBody = {
14
14
  projectId: string;
15
15
  teamId: string;
16
16
  overwrite?: boolean | undefined;
17
17
  name?: string | undefined;
18
18
  redirects?: Array<Redirects> | undefined;
19
19
  };
20
- export type PutV1BulkRedirectsVersion = {
20
+ export type StageRedirectsRequest = {
21
+ /**
22
+ * The Team identifier to perform the request on behalf of.
23
+ */
24
+ teamId?: string | undefined;
25
+ /**
26
+ * The Team slug to perform the request on behalf of.
27
+ */
28
+ slug?: string | undefined;
29
+ requestBody?: StageRedirectsRequestBody | undefined;
30
+ };
31
+ export type StageRedirectsVersion = {
21
32
  /**
22
33
  * The unique identifier for the version.
23
34
  */
@@ -49,9 +60,9 @@ export type PutV1BulkRedirectsVersion = {
49
60
  */
50
61
  alias?: string | undefined;
51
62
  };
52
- export type PutV1BulkRedirectsResponseBody = {
63
+ export type StageRedirectsResponseBody = {
53
64
  alias: string | null;
54
- version: PutV1BulkRedirectsVersion;
65
+ version: StageRedirectsVersion;
55
66
  };
56
67
  /** @internal */
57
68
  export declare const StatusCode$inboundSchema: z.ZodType<StatusCode, z.ZodTypeDef, unknown>;
@@ -77,9 +88,9 @@ export declare const Redirects$outboundSchema: z.ZodType<Redirects$Outbound, z.Z
77
88
  export declare function redirectsToJSON(redirects: Redirects): string;
78
89
  export declare function redirectsFromJSON(jsonString: string): SafeParseResult<Redirects, SDKValidationError>;
79
90
  /** @internal */
80
- export declare const PutV1BulkRedirectsRequestBody$inboundSchema: z.ZodType<PutV1BulkRedirectsRequestBody, z.ZodTypeDef, unknown>;
91
+ export declare const StageRedirectsRequestBody$inboundSchema: z.ZodType<StageRedirectsRequestBody, z.ZodTypeDef, unknown>;
81
92
  /** @internal */
82
- export type PutV1BulkRedirectsRequestBody$Outbound = {
93
+ export type StageRedirectsRequestBody$Outbound = {
83
94
  projectId: string;
84
95
  teamId: string;
85
96
  overwrite?: boolean | undefined;
@@ -87,13 +98,25 @@ export type PutV1BulkRedirectsRequestBody$Outbound = {
87
98
  redirects?: Array<Redirects$Outbound> | undefined;
88
99
  };
89
100
  /** @internal */
90
- export declare const PutV1BulkRedirectsRequestBody$outboundSchema: z.ZodType<PutV1BulkRedirectsRequestBody$Outbound, z.ZodTypeDef, PutV1BulkRedirectsRequestBody>;
91
- export declare function putV1BulkRedirectsRequestBodyToJSON(putV1BulkRedirectsRequestBody: PutV1BulkRedirectsRequestBody): string;
92
- export declare function putV1BulkRedirectsRequestBodyFromJSON(jsonString: string): SafeParseResult<PutV1BulkRedirectsRequestBody, SDKValidationError>;
101
+ export declare const StageRedirectsRequestBody$outboundSchema: z.ZodType<StageRedirectsRequestBody$Outbound, z.ZodTypeDef, StageRedirectsRequestBody>;
102
+ export declare function stageRedirectsRequestBodyToJSON(stageRedirectsRequestBody: StageRedirectsRequestBody): string;
103
+ export declare function stageRedirectsRequestBodyFromJSON(jsonString: string): SafeParseResult<StageRedirectsRequestBody, SDKValidationError>;
104
+ /** @internal */
105
+ export declare const StageRedirectsRequest$inboundSchema: z.ZodType<StageRedirectsRequest, z.ZodTypeDef, unknown>;
106
+ /** @internal */
107
+ export type StageRedirectsRequest$Outbound = {
108
+ teamId?: string | undefined;
109
+ slug?: string | undefined;
110
+ RequestBody?: StageRedirectsRequestBody$Outbound | undefined;
111
+ };
112
+ /** @internal */
113
+ export declare const StageRedirectsRequest$outboundSchema: z.ZodType<StageRedirectsRequest$Outbound, z.ZodTypeDef, StageRedirectsRequest>;
114
+ export declare function stageRedirectsRequestToJSON(stageRedirectsRequest: StageRedirectsRequest): string;
115
+ export declare function stageRedirectsRequestFromJSON(jsonString: string): SafeParseResult<StageRedirectsRequest, SDKValidationError>;
93
116
  /** @internal */
94
- export declare const PutV1BulkRedirectsVersion$inboundSchema: z.ZodType<PutV1BulkRedirectsVersion, z.ZodTypeDef, unknown>;
117
+ export declare const StageRedirectsVersion$inboundSchema: z.ZodType<StageRedirectsVersion, z.ZodTypeDef, unknown>;
95
118
  /** @internal */
96
- export type PutV1BulkRedirectsVersion$Outbound = {
119
+ export type StageRedirectsVersion$Outbound = {
97
120
  id: string;
98
121
  key: string;
99
122
  lastModified: number;
@@ -105,18 +128,18 @@ export type PutV1BulkRedirectsVersion$Outbound = {
105
128
  alias?: string | undefined;
106
129
  };
107
130
  /** @internal */
108
- export declare const PutV1BulkRedirectsVersion$outboundSchema: z.ZodType<PutV1BulkRedirectsVersion$Outbound, z.ZodTypeDef, PutV1BulkRedirectsVersion>;
109
- export declare function putV1BulkRedirectsVersionToJSON(putV1BulkRedirectsVersion: PutV1BulkRedirectsVersion): string;
110
- export declare function putV1BulkRedirectsVersionFromJSON(jsonString: string): SafeParseResult<PutV1BulkRedirectsVersion, SDKValidationError>;
131
+ export declare const StageRedirectsVersion$outboundSchema: z.ZodType<StageRedirectsVersion$Outbound, z.ZodTypeDef, StageRedirectsVersion>;
132
+ export declare function stageRedirectsVersionToJSON(stageRedirectsVersion: StageRedirectsVersion): string;
133
+ export declare function stageRedirectsVersionFromJSON(jsonString: string): SafeParseResult<StageRedirectsVersion, SDKValidationError>;
111
134
  /** @internal */
112
- export declare const PutV1BulkRedirectsResponseBody$inboundSchema: z.ZodType<PutV1BulkRedirectsResponseBody, z.ZodTypeDef, unknown>;
135
+ export declare const StageRedirectsResponseBody$inboundSchema: z.ZodType<StageRedirectsResponseBody, z.ZodTypeDef, unknown>;
113
136
  /** @internal */
114
- export type PutV1BulkRedirectsResponseBody$Outbound = {
137
+ export type StageRedirectsResponseBody$Outbound = {
115
138
  alias: string | null;
116
- version: PutV1BulkRedirectsVersion$Outbound;
139
+ version: StageRedirectsVersion$Outbound;
117
140
  };
118
141
  /** @internal */
119
- export declare const PutV1BulkRedirectsResponseBody$outboundSchema: z.ZodType<PutV1BulkRedirectsResponseBody$Outbound, z.ZodTypeDef, PutV1BulkRedirectsResponseBody>;
120
- export declare function putV1BulkRedirectsResponseBodyToJSON(putV1BulkRedirectsResponseBody: PutV1BulkRedirectsResponseBody): string;
121
- export declare function putV1BulkRedirectsResponseBodyFromJSON(jsonString: string): SafeParseResult<PutV1BulkRedirectsResponseBody, SDKValidationError>;
122
- //# sourceMappingURL=putv1bulkredirectsop.d.ts.map
142
+ export declare const StageRedirectsResponseBody$outboundSchema: z.ZodType<StageRedirectsResponseBody$Outbound, z.ZodTypeDef, StageRedirectsResponseBody>;
143
+ export declare function stageRedirectsResponseBodyToJSON(stageRedirectsResponseBody: StageRedirectsResponseBody): string;
144
+ export declare function stageRedirectsResponseBodyFromJSON(jsonString: string): SafeParseResult<StageRedirectsResponseBody, SDKValidationError>;
145
+ //# sourceMappingURL=stageredirectsop.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stageredirectsop.d.ts","sourceRoot":"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C;AAEH,wBAAgB,2BAA2B,CACzC,qBAAqB,EAAE,qBAAqB,GAC3C,MAAM,CAIR;AACD,wBAAgB,6BAA6B,CAC3C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,qBAAqB,EAAE,kBAAkB,CAAC,CAM5D;AAED,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,OAAO,CAC9D,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,mCAAmC,GAAG;IAChD,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,OAAO,EAAE,8BAA8B,CAAC;CACzC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,OAAO,CAC/D,mCAAmC,EACnC,CAAC,CAAC,UAAU,EACZ,0BAA0B,CAI1B,CAAC;AAEH,wBAAgB,gCAAgC,CAC9C,0BAA0B,EAAE,0BAA0B,GACrD,MAAM,CAIR;AACD,wBAAgB,kCAAkC,CAChD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,0BAA0B,EAAE,kBAAkB,CAAC,CAMjE"}
@@ -0,0 +1,136 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod/v3";
5
+ import { remap as remap$ } from "../lib/primitives.js";
6
+ import { safeParse } from "../lib/schemas.js";
7
+ /** @internal */
8
+ export const StatusCode$inboundSchema = z.union([z.number(), z.string()]);
9
+ /** @internal */
10
+ export const StatusCode$outboundSchema = z.union([z.number(), z.string()]);
11
+ export function statusCodeToJSON(statusCode) {
12
+ return JSON.stringify(StatusCode$outboundSchema.parse(statusCode));
13
+ }
14
+ export function statusCodeFromJSON(jsonString) {
15
+ return safeParse(jsonString, (x) => StatusCode$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'StatusCode' from JSON`);
16
+ }
17
+ /** @internal */
18
+ export const Redirects$inboundSchema = z.object({
19
+ source: z.string(),
20
+ destination: z.string(),
21
+ statusCode: z.union([z.number(), z.string()]).optional(),
22
+ permanent: z.boolean().optional(),
23
+ caseSensitive: z.boolean().optional(),
24
+ query: z.boolean().optional(),
25
+ });
26
+ /** @internal */
27
+ export const Redirects$outboundSchema = z.object({
28
+ source: z.string(),
29
+ destination: z.string(),
30
+ statusCode: z.union([z.number(), z.string()]).optional(),
31
+ permanent: z.boolean().optional(),
32
+ caseSensitive: z.boolean().optional(),
33
+ query: z.boolean().optional(),
34
+ });
35
+ export function redirectsToJSON(redirects) {
36
+ return JSON.stringify(Redirects$outboundSchema.parse(redirects));
37
+ }
38
+ export function redirectsFromJSON(jsonString) {
39
+ return safeParse(jsonString, (x) => Redirects$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Redirects' from JSON`);
40
+ }
41
+ /** @internal */
42
+ export const StageRedirectsRequestBody$inboundSchema = z.object({
43
+ projectId: z.string(),
44
+ teamId: z.string(),
45
+ overwrite: z.boolean().optional(),
46
+ name: z.string().optional(),
47
+ redirects: z.array(z.lazy(() => Redirects$inboundSchema)).optional(),
48
+ });
49
+ /** @internal */
50
+ export const StageRedirectsRequestBody$outboundSchema = z.object({
51
+ projectId: z.string(),
52
+ teamId: z.string(),
53
+ overwrite: z.boolean().optional(),
54
+ name: z.string().optional(),
55
+ redirects: z.array(z.lazy(() => Redirects$outboundSchema)).optional(),
56
+ });
57
+ export function stageRedirectsRequestBodyToJSON(stageRedirectsRequestBody) {
58
+ return JSON.stringify(StageRedirectsRequestBody$outboundSchema.parse(stageRedirectsRequestBody));
59
+ }
60
+ export function stageRedirectsRequestBodyFromJSON(jsonString) {
61
+ return safeParse(jsonString, (x) => StageRedirectsRequestBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'StageRedirectsRequestBody' from JSON`);
62
+ }
63
+ /** @internal */
64
+ export const StageRedirectsRequest$inboundSchema = z.object({
65
+ teamId: z.string().optional(),
66
+ slug: z.string().optional(),
67
+ RequestBody: z.lazy(() => StageRedirectsRequestBody$inboundSchema).optional(),
68
+ }).transform((v) => {
69
+ return remap$(v, {
70
+ "RequestBody": "requestBody",
71
+ });
72
+ });
73
+ /** @internal */
74
+ export const StageRedirectsRequest$outboundSchema = z.object({
75
+ teamId: z.string().optional(),
76
+ slug: z.string().optional(),
77
+ requestBody: z.lazy(() => StageRedirectsRequestBody$outboundSchema)
78
+ .optional(),
79
+ }).transform((v) => {
80
+ return remap$(v, {
81
+ requestBody: "RequestBody",
82
+ });
83
+ });
84
+ export function stageRedirectsRequestToJSON(stageRedirectsRequest) {
85
+ return JSON.stringify(StageRedirectsRequest$outboundSchema.parse(stageRedirectsRequest));
86
+ }
87
+ export function stageRedirectsRequestFromJSON(jsonString) {
88
+ return safeParse(jsonString, (x) => StageRedirectsRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'StageRedirectsRequest' from JSON`);
89
+ }
90
+ /** @internal */
91
+ export const StageRedirectsVersion$inboundSchema = z.object({
92
+ id: z.string(),
93
+ key: z.string(),
94
+ lastModified: z.number(),
95
+ createdBy: z.string(),
96
+ name: z.string().optional(),
97
+ isStaging: z.boolean().optional(),
98
+ isLive: z.boolean().optional(),
99
+ redirectCount: z.number().optional(),
100
+ alias: z.string().optional(),
101
+ });
102
+ /** @internal */
103
+ export const StageRedirectsVersion$outboundSchema = z.object({
104
+ id: z.string(),
105
+ key: z.string(),
106
+ lastModified: z.number(),
107
+ createdBy: z.string(),
108
+ name: z.string().optional(),
109
+ isStaging: z.boolean().optional(),
110
+ isLive: z.boolean().optional(),
111
+ redirectCount: z.number().optional(),
112
+ alias: z.string().optional(),
113
+ });
114
+ export function stageRedirectsVersionToJSON(stageRedirectsVersion) {
115
+ return JSON.stringify(StageRedirectsVersion$outboundSchema.parse(stageRedirectsVersion));
116
+ }
117
+ export function stageRedirectsVersionFromJSON(jsonString) {
118
+ return safeParse(jsonString, (x) => StageRedirectsVersion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'StageRedirectsVersion' from JSON`);
119
+ }
120
+ /** @internal */
121
+ export const StageRedirectsResponseBody$inboundSchema = z.object({
122
+ alias: z.nullable(z.string()),
123
+ version: z.lazy(() => StageRedirectsVersion$inboundSchema),
124
+ });
125
+ /** @internal */
126
+ export const StageRedirectsResponseBody$outboundSchema = z.object({
127
+ alias: z.nullable(z.string()),
128
+ version: z.lazy(() => StageRedirectsVersion$outboundSchema),
129
+ });
130
+ export function stageRedirectsResponseBodyToJSON(stageRedirectsResponseBody) {
131
+ return JSON.stringify(StageRedirectsResponseBody$outboundSchema.parse(stageRedirectsResponseBody));
132
+ }
133
+ export function stageRedirectsResponseBodyFromJSON(jsonString) {
134
+ return safeParse(jsonString, (x) => StageRedirectsResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'StageRedirectsResponseBody' from JSON`);
135
+ }
136
+ //# sourceMappingURL=stageredirectsop.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stageredirectsop.js","sourceRoot":"","sources":["../../src/models/stageredirectsop.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAyE9C,gBAAgB;AAChB,MAAM,CAAC,MAAM,wBAAwB,GAIjC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;AAItC,gBAAgB;AAChB,MAAM,CAAC,MAAM,yBAAyB,GAIlC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;AAEtC,MAAM,UAAU,gBAAgB,CAAC,UAAsB;IACrD,OAAO,IAAI,CAAC,SAAS,CAAC,yBAAyB,CA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0BAA0B,CAAC,CAC5E,CAAC;AACJ,CAAC;AACD,MAAM,UAAU,kCAAkC,CAChD,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,wCAAwC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACpE,wDAAwD,CACzD,CAAC;AACJ,CAAC"}
@@ -194,11 +194,11 @@ export type SsoProtection = {
194
194
  deploymentType: string;
195
195
  };
196
196
  /**
197
- * Default deployment protection for this team
197
+ * Default deployment protection for this team null indicates protection is disabled
198
198
  */
199
199
  export type DefaultDeploymentProtection = {
200
- passwordProtection?: PasswordProtection | undefined;
201
- ssoProtection?: SsoProtection | undefined;
200
+ passwordProtection?: PasswordProtection | null | undefined;
201
+ ssoProtection?: SsoProtection | null | undefined;
202
202
  };
203
203
  /**
204
204
  * Default deployment expiration settings for this team
@@ -404,7 +404,7 @@ export type Team = {
404
404
  */
405
405
  remoteCaching?: RemoteCaching | undefined;
406
406
  /**
407
- * Default deployment protection for this team
407
+ * Default deployment protection for this team null indicates protection is disabled
408
408
  */
409
409
  defaultDeploymentProtection?: DefaultDeploymentProtection | undefined;
410
410
  /**
@@ -629,8 +629,8 @@ export declare function ssoProtectionFromJSON(jsonString: string): SafeParseResu
629
629
  export declare const DefaultDeploymentProtection$inboundSchema: z.ZodType<DefaultDeploymentProtection, z.ZodTypeDef, unknown>;
630
630
  /** @internal */
631
631
  export type DefaultDeploymentProtection$Outbound = {
632
- passwordProtection?: PasswordProtection$Outbound | undefined;
633
- ssoProtection?: SsoProtection$Outbound | undefined;
632
+ passwordProtection?: PasswordProtection$Outbound | null | undefined;
633
+ ssoProtection?: SsoProtection$Outbound | null | undefined;
634
634
  };
635
635
  /** @internal */
636
636
  export declare const DefaultDeploymentProtection$outboundSchema: z.ZodType<DefaultDeploymentProtection$Outbound, z.ZodTypeDef, DefaultDeploymentProtection>;