vanta-auditor-api-sdk 0.3.0 → 0.4.1

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 (325) hide show
  1. package/README.md +3 -7
  2. package/RUNTIMES.md +6 -6
  3. package/bin/mcp-server.js +126 -317
  4. package/bin/mcp-server.js.map +70 -69
  5. package/docs/sdks/auditors/README.md +1 -0
  6. package/docs/sdks/audits/README.md +9 -0
  7. package/examples/auditsList.example.ts +2 -2
  8. package/examples/package-lock.json +7 -14
  9. package/funcs/auditorsCreate.js +1 -1
  10. package/funcs/auditorsCreate.js.map +1 -1
  11. package/funcs/auditsCreateCommentForEvidence.js +1 -1
  12. package/funcs/auditsCreateCommentForEvidence.js.map +1 -1
  13. package/funcs/auditsCreateCustomControl.js +1 -1
  14. package/funcs/auditsCreateCustomControl.js.map +1 -1
  15. package/funcs/auditsCreateCustomEvidenceRequest.js +1 -1
  16. package/funcs/auditsCreateCustomEvidenceRequest.js.map +1 -1
  17. package/funcs/auditsGetEvidenceUrls.js +1 -1
  18. package/funcs/auditsGetEvidenceUrls.js.map +1 -1
  19. package/funcs/auditsList.js +1 -1
  20. package/funcs/auditsList.js.map +1 -1
  21. package/funcs/auditsListComments.js +1 -1
  22. package/funcs/auditsListComments.js.map +1 -1
  23. package/funcs/auditsListControls.js +1 -1
  24. package/funcs/auditsListControls.js.map +1 -1
  25. package/funcs/auditsListEvidence.js +1 -1
  26. package/funcs/auditsListEvidence.js.map +1 -1
  27. package/funcs/auditsUpdateEvidence.js +1 -1
  28. package/funcs/auditsUpdateEvidence.js.map +1 -1
  29. package/jsr.json +1 -1
  30. package/lib/base64.d.ts +1 -1
  31. package/lib/base64.d.ts.map +1 -1
  32. package/lib/base64.js +1 -1
  33. package/lib/base64.js.map +1 -1
  34. package/lib/config.d.ts +3 -3
  35. package/lib/config.js +3 -3
  36. package/lib/encodings.d.ts.map +1 -1
  37. package/lib/env.d.ts +1 -1
  38. package/lib/env.d.ts.map +1 -1
  39. package/lib/env.js +19 -2
  40. package/lib/env.js.map +1 -1
  41. package/lib/schemas.d.ts +1 -1
  42. package/lib/schemas.d.ts.map +1 -1
  43. package/lib/schemas.js +2 -2
  44. package/lib/schemas.js.map +1 -1
  45. package/lib/security.d.ts.map +1 -1
  46. package/lib/security.js.map +1 -1
  47. package/lib/url.js +1 -1
  48. package/lib/url.js.map +1 -1
  49. package/mcp-server/cli/start/command.d.ts.map +1 -1
  50. package/mcp-server/cli/start/command.js +2 -3
  51. package/mcp-server/cli/start/command.js.map +1 -1
  52. package/mcp-server/extensions.d.ts +1 -1
  53. package/mcp-server/extensions.d.ts.map +1 -1
  54. package/mcp-server/mcp-server.js +1 -1
  55. package/mcp-server/prompts.d.ts +1 -1
  56. package/mcp-server/prompts.d.ts.map +1 -1
  57. package/mcp-server/server.js +1 -1
  58. package/mcp-server/shared.d.ts.map +1 -1
  59. package/mcp-server/shared.js +1 -1
  60. package/mcp-server/shared.js.map +1 -1
  61. package/mcp-server/tools.d.ts +1 -1
  62. package/mcp-server/tools.d.ts.map +1 -1
  63. package/models/components/addauditorinput.d.ts +1 -13
  64. package/models/components/addauditorinput.d.ts.map +1 -1
  65. package/models/components/addauditorinput.js +2 -13
  66. package/models/components/addauditorinput.js.map +1 -1
  67. package/models/components/addcommentinput.d.ts +1 -13
  68. package/models/components/addcommentinput.d.ts.map +1 -1
  69. package/models/components/addcommentinput.js +2 -13
  70. package/models/components/addcommentinput.js.map +1 -1
  71. package/models/components/audit.d.ts +1 -13
  72. package/models/components/audit.d.ts.map +1 -1
  73. package/models/components/audit.js +2 -13
  74. package/models/components/audit.js.map +1 -1
  75. package/models/components/auditevidencestate.d.ts +1 -25
  76. package/models/components/auditevidencestate.d.ts.map +1 -1
  77. package/models/components/auditevidencestate.js +2 -13
  78. package/models/components/auditevidencestate.js.map +1 -1
  79. package/models/components/auditevidencetype.d.ts +1 -19
  80. package/models/components/auditevidencetype.d.ts.map +1 -1
  81. package/models/components/auditevidencetype.js +2 -13
  82. package/models/components/auditevidencetype.js.map +1 -1
  83. package/models/components/auditevidenceupdateinput.d.ts +1 -25
  84. package/models/components/auditevidenceupdateinput.d.ts.map +1 -1
  85. package/models/components/auditevidenceupdateinput.js +2 -24
  86. package/models/components/auditevidenceupdateinput.js.map +1 -1
  87. package/models/components/auditfocus.d.ts +1 -17
  88. package/models/components/auditfocus.d.ts.map +1 -1
  89. package/models/components/auditfocus.js +2 -13
  90. package/models/components/auditfocus.js.map +1 -1
  91. package/models/components/auditor.d.ts +1 -13
  92. package/models/components/auditor.d.ts.map +1 -1
  93. package/models/components/auditor.js +2 -13
  94. package/models/components/auditor.js.map +1 -1
  95. package/models/components/auditorcontrol.d.ts +1 -25
  96. package/models/components/auditorcontrol.d.ts.map +1 -1
  97. package/models/components/auditorcontrol.js +2 -24
  98. package/models/components/auditorcontrol.js.map +1 -1
  99. package/models/components/auditorenabledstatetransition.d.ts +1 -23
  100. package/models/components/auditorenabledstatetransition.d.ts.map +1 -1
  101. package/models/components/auditorenabledstatetransition.js +2 -13
  102. package/models/components/auditorenabledstatetransition.js.map +1 -1
  103. package/models/components/comment.d.ts +1 -13
  104. package/models/components/comment.d.ts.map +1 -1
  105. package/models/components/comment.js +2 -13
  106. package/models/components/comment.js.map +1 -1
  107. package/models/components/control.d.ts +1 -25
  108. package/models/components/control.d.ts.map +1 -1
  109. package/models/components/control.js +2 -24
  110. package/models/components/control.js.map +1 -1
  111. package/models/components/controldomain.d.ts +1 -89
  112. package/models/components/controldomain.d.ts.map +1 -1
  113. package/models/components/controldomain.js +2 -13
  114. package/models/components/controldomain.js.map +1 -1
  115. package/models/components/controlsource.d.ts +1 -17
  116. package/models/components/controlsource.d.ts.map +1 -1
  117. package/models/components/controlsource.js +2 -13
  118. package/models/components/controlsource.js.map +1 -1
  119. package/models/components/createcustomcontrolinput.d.ts +1 -31
  120. package/models/components/createcustomcontrolinput.d.ts.map +1 -1
  121. package/models/components/createcustomcontrolinput.js +2 -24
  122. package/models/components/createcustomcontrolinput.js.map +1 -1
  123. package/models/components/createcustomevidencerequestinput.d.ts +1 -13
  124. package/models/components/createcustomevidencerequestinput.d.ts.map +1 -1
  125. package/models/components/createcustomevidencerequestinput.js +2 -13
  126. package/models/components/createcustomevidencerequestinput.js.map +1 -1
  127. package/models/components/customevidencerequest.d.ts +1 -13
  128. package/models/components/customevidencerequest.d.ts.map +1 -1
  129. package/models/components/customevidencerequest.js +2 -13
  130. package/models/components/customevidencerequest.js.map +1 -1
  131. package/models/components/customfield.d.ts +1 -25
  132. package/models/components/customfield.d.ts.map +1 -1
  133. package/models/components/customfield.js +2 -24
  134. package/models/components/customfield.js.map +1 -1
  135. package/models/components/evidence.d.ts +1 -13
  136. package/models/components/evidence.d.ts.map +1 -1
  137. package/models/components/evidence.js +2 -13
  138. package/models/components/evidence.js.map +1 -1
  139. package/models/components/evidencecontrol.d.ts +1 -13
  140. package/models/components/evidencecontrol.d.ts.map +1 -1
  141. package/models/components/evidencecontrol.js +2 -13
  142. package/models/components/evidencecontrol.js.map +1 -1
  143. package/models/components/evidenceurl.d.ts +1 -13
  144. package/models/components/evidenceurl.d.ts.map +1 -1
  145. package/models/components/evidenceurl.js +2 -13
  146. package/models/components/evidenceurl.js.map +1 -1
  147. package/models/components/frameworkid.d.ts +1 -83
  148. package/models/components/frameworkid.d.ts.map +1 -1
  149. package/models/components/frameworkid.js +2 -13
  150. package/models/components/frameworkid.js.map +1 -1
  151. package/models/components/frameworksection.d.ts +1 -25
  152. package/models/components/frameworksection.d.ts.map +1 -1
  153. package/models/components/frameworksection.js +2 -24
  154. package/models/components/frameworksection.js.map +1 -1
  155. package/models/components/pageinfo.d.ts +1 -13
  156. package/models/components/pageinfo.d.ts.map +1 -1
  157. package/models/components/pageinfo.js +2 -13
  158. package/models/components/pageinfo.js.map +1 -1
  159. package/models/components/paginatedresponseaudit.d.ts +1 -25
  160. package/models/components/paginatedresponseaudit.d.ts.map +1 -1
  161. package/models/components/paginatedresponseaudit.js +2 -24
  162. package/models/components/paginatedresponseaudit.js.map +1 -1
  163. package/models/components/paginatedresponseauditorcontrol.d.ts +1 -25
  164. package/models/components/paginatedresponseauditorcontrol.d.ts.map +1 -1
  165. package/models/components/paginatedresponseauditorcontrol.js +2 -24
  166. package/models/components/paginatedresponseauditorcontrol.js.map +1 -1
  167. package/models/components/paginatedresponsecomment.d.ts +1 -25
  168. package/models/components/paginatedresponsecomment.d.ts.map +1 -1
  169. package/models/components/paginatedresponsecomment.js +2 -24
  170. package/models/components/paginatedresponsecomment.js.map +1 -1
  171. package/models/components/paginatedresponseevidence.d.ts +1 -25
  172. package/models/components/paginatedresponseevidence.d.ts.map +1 -1
  173. package/models/components/paginatedresponseevidence.js +2 -24
  174. package/models/components/paginatedresponseevidence.js.map +1 -1
  175. package/models/components/paginatedresponseevidenceurl.d.ts +1 -25
  176. package/models/components/paginatedresponseevidenceurl.d.ts.map +1 -1
  177. package/models/components/paginatedresponseevidenceurl.js +2 -24
  178. package/models/components/paginatedresponseevidenceurl.js.map +1 -1
  179. package/models/components/recurrenceduration.d.ts +1 -27
  180. package/models/components/recurrenceduration.d.ts.map +1 -1
  181. package/models/components/recurrenceduration.js +2 -13
  182. package/models/components/recurrenceduration.js.map +1 -1
  183. package/models/components/section.d.ts +1 -13
  184. package/models/components/section.d.ts.map +1 -1
  185. package/models/components/section.js +2 -13
  186. package/models/components/section.js.map +1 -1
  187. package/models/components/security.d.ts +1 -13
  188. package/models/components/security.d.ts.map +1 -1
  189. package/models/components/security.js +2 -13
  190. package/models/components/security.js.map +1 -1
  191. package/models/errors/index.d.ts +1 -0
  192. package/models/errors/index.d.ts.map +1 -1
  193. package/models/errors/index.js +1 -0
  194. package/models/errors/index.js.map +1 -1
  195. package/models/errors/responsevalidationerror.js +1 -1
  196. package/models/errors/responsevalidationerror.js.map +1 -1
  197. package/models/errors/sdkvalidationerror.d.ts +1 -1
  198. package/models/errors/sdkvalidationerror.d.ts.map +1 -1
  199. package/models/errors/sdkvalidationerror.js +1 -1
  200. package/models/errors/sdkvalidationerror.js.map +1 -1
  201. package/models/operations/createcommentforauditevidence.d.ts +1 -13
  202. package/models/operations/createcommentforauditevidence.d.ts.map +1 -1
  203. package/models/operations/createcommentforauditevidence.js +2 -13
  204. package/models/operations/createcommentforauditevidence.js.map +1 -1
  205. package/models/operations/createcustomcontrol.d.ts +1 -13
  206. package/models/operations/createcustomcontrol.d.ts.map +1 -1
  207. package/models/operations/createcustomcontrol.js +2 -13
  208. package/models/operations/createcustomcontrol.js.map +1 -1
  209. package/models/operations/createcustomevidencerequest.d.ts +1 -13
  210. package/models/operations/createcustomevidencerequest.d.ts.map +1 -1
  211. package/models/operations/createcustomevidencerequest.js +2 -13
  212. package/models/operations/createcustomevidencerequest.js.map +1 -1
  213. package/models/operations/listauditcomments.d.ts +1 -13
  214. package/models/operations/listauditcomments.d.ts.map +1 -1
  215. package/models/operations/listauditcomments.js +2 -13
  216. package/models/operations/listauditcomments.js.map +1 -1
  217. package/models/operations/listauditcontrols.d.ts +1 -13
  218. package/models/operations/listauditcontrols.d.ts.map +1 -1
  219. package/models/operations/listauditcontrols.js +2 -13
  220. package/models/operations/listauditcontrols.js.map +1 -1
  221. package/models/operations/listauditevidence.d.ts +1 -13
  222. package/models/operations/listauditevidence.d.ts.map +1 -1
  223. package/models/operations/listauditevidence.js +2 -13
  224. package/models/operations/listauditevidence.js.map +1 -1
  225. package/models/operations/listauditevidenceurls.d.ts +1 -13
  226. package/models/operations/listauditevidenceurls.d.ts.map +1 -1
  227. package/models/operations/listauditevidenceurls.js +2 -13
  228. package/models/operations/listauditevidenceurls.js.map +1 -1
  229. package/models/operations/listaudits.d.ts +1 -13
  230. package/models/operations/listaudits.d.ts.map +1 -1
  231. package/models/operations/listaudits.js +2 -13
  232. package/models/operations/listaudits.js.map +1 -1
  233. package/models/operations/updateauditevidence.d.ts +1 -13
  234. package/models/operations/updateauditevidence.d.ts.map +1 -1
  235. package/models/operations/updateauditevidence.js +2 -13
  236. package/models/operations/updateauditevidence.js.map +1 -1
  237. package/package.json +6 -11
  238. package/src/funcs/auditorsCreate.ts +1 -1
  239. package/src/funcs/auditsCreateCommentForEvidence.ts +1 -1
  240. package/src/funcs/auditsCreateCustomControl.ts +1 -1
  241. package/src/funcs/auditsCreateCustomEvidenceRequest.ts +1 -1
  242. package/src/funcs/auditsGetEvidenceUrls.ts +1 -1
  243. package/src/funcs/auditsList.ts +1 -1
  244. package/src/funcs/auditsListComments.ts +1 -1
  245. package/src/funcs/auditsListControls.ts +1 -1
  246. package/src/funcs/auditsListEvidence.ts +1 -1
  247. package/src/funcs/auditsUpdateEvidence.ts +1 -1
  248. package/src/lib/base64.ts +1 -1
  249. package/src/lib/config.ts +3 -3
  250. package/src/lib/env.ts +21 -5
  251. package/src/lib/schemas.ts +1 -1
  252. package/src/lib/security.ts +4 -1
  253. package/src/lib/url.ts +1 -1
  254. package/src/mcp-server/cli/start/command.ts +2 -3
  255. package/src/mcp-server/extensions.ts +1 -1
  256. package/src/mcp-server/mcp-server.ts +1 -1
  257. package/src/mcp-server/prompts.ts +1 -1
  258. package/src/mcp-server/server.ts +1 -1
  259. package/src/mcp-server/shared.ts +1 -2
  260. package/src/mcp-server/tools.ts +1 -1
  261. package/src/models/components/addauditorinput.ts +1 -16
  262. package/src/models/components/addcommentinput.ts +1 -16
  263. package/src/models/components/audit.ts +1 -16
  264. package/src/models/components/auditevidencestate.ts +1 -13
  265. package/src/models/components/auditevidencetype.ts +1 -13
  266. package/src/models/components/auditevidenceupdateinput.ts +1 -31
  267. package/src/models/components/auditfocus.ts +1 -13
  268. package/src/models/components/auditor.ts +1 -16
  269. package/src/models/components/auditorcontrol.ts +1 -31
  270. package/src/models/components/auditorenabledstatetransition.ts +1 -13
  271. package/src/models/components/comment.ts +1 -16
  272. package/src/models/components/control.ts +1 -31
  273. package/src/models/components/controldomain.ts +1 -13
  274. package/src/models/components/controlsource.ts +1 -13
  275. package/src/models/components/createcustomcontrolinput.ts +1 -28
  276. package/src/models/components/createcustomevidencerequestinput.ts +1 -16
  277. package/src/models/components/customevidencerequest.ts +1 -16
  278. package/src/models/components/customfield.ts +1 -31
  279. package/src/models/components/evidence.ts +1 -16
  280. package/src/models/components/evidencecontrol.ts +1 -16
  281. package/src/models/components/evidenceurl.ts +1 -16
  282. package/src/models/components/frameworkid.ts +1 -13
  283. package/src/models/components/frameworksection.ts +1 -31
  284. package/src/models/components/pageinfo.ts +1 -16
  285. package/src/models/components/paginatedresponseaudit.ts +1 -31
  286. package/src/models/components/paginatedresponseauditorcontrol.ts +1 -33
  287. package/src/models/components/paginatedresponsecomment.ts +1 -31
  288. package/src/models/components/paginatedresponseevidence.ts +1 -31
  289. package/src/models/components/paginatedresponseevidenceurl.ts +1 -33
  290. package/src/models/components/recurrenceduration.ts +1 -13
  291. package/src/models/components/section.ts +1 -16
  292. package/src/models/components/security.ts +1 -16
  293. package/src/models/errors/index.ts +1 -0
  294. package/src/models/errors/responsevalidationerror.ts +1 -1
  295. package/src/models/errors/sdkvalidationerror.ts +1 -1
  296. package/src/models/operations/createcommentforauditevidence.ts +1 -18
  297. package/src/models/operations/createcustomcontrol.ts +1 -16
  298. package/src/models/operations/createcustomevidencerequest.ts +1 -17
  299. package/src/models/operations/listauditcomments.ts +1 -16
  300. package/src/models/operations/listauditcontrols.ts +1 -16
  301. package/src/models/operations/listauditevidence.ts +1 -16
  302. package/src/models/operations/listauditevidenceurls.ts +1 -16
  303. package/src/models/operations/listaudits.ts +1 -16
  304. package/src/models/operations/updateauditevidence.ts +1 -16
  305. package/src/types/blobs.ts +7 -6
  306. package/src/types/constdatetime.ts +1 -1
  307. package/src/types/enums.ts +55 -6
  308. package/src/types/index.ts +0 -1
  309. package/types/blobs.d.ts +1 -1
  310. package/types/blobs.d.ts.map +1 -1
  311. package/types/blobs.js +1 -1
  312. package/types/blobs.js.map +1 -1
  313. package/types/constdatetime.d.ts +1 -1
  314. package/types/constdatetime.d.ts.map +1 -1
  315. package/types/constdatetime.js +1 -1
  316. package/types/constdatetime.js.map +1 -1
  317. package/types/enums.d.ts +10 -6
  318. package/types/enums.d.ts.map +1 -1
  319. package/types/enums.js +76 -2
  320. package/types/enums.js.map +1 -1
  321. package/types/index.d.ts +0 -1
  322. package/types/index.d.ts.map +1 -1
  323. package/types/index.js +1 -3
  324. package/types/index.js.map +1 -1
  325. package/docs/sdks/vanta/README.md +0 -7
@@ -84,7 +84,10 @@ type SecurityInputOAuth2 = {
84
84
  type SecurityInputOAuth2ClientCredentials = {
85
85
  type: "oauth2:client_credentials";
86
86
  value:
87
- | { clientID?: string | undefined; clientSecret?: string | undefined }
87
+ | {
88
+ clientID?: string | undefined;
89
+ clientSecret?: string | undefined;
90
+ }
88
91
  | null
89
92
  | string
90
93
  | undefined;
package/src/lib/url.ts CHANGED
@@ -10,7 +10,7 @@ export function pathToFunc(
10
10
  pathPattern: string,
11
11
  options?: { charEncoding?: "percent" | "none" },
12
12
  ): (params?: Params) => string {
13
- const paramRE = /\{([a-zA-Z0-9_]+?)\}/g;
13
+ const paramRE = /\{([a-zA-Z0-9_][a-zA-Z0-9_-]*?)\}/g;
14
14
 
15
15
  return function buildURLPath(params: Record<string, unknown> = {}): string {
16
16
  return pathPattern.replace(paramRE, function (_, placeholder) {
@@ -2,9 +2,8 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import { buildCommand } from "@stricli/core";
6
- import { numberParser } from "@stricli/core";
7
- import * as z from "zod";
5
+ import { buildCommand, numberParser } from "@stricli/core";
6
+ import * as z from "zod/v3";
8
7
  import { consoleLoggerLevels } from "../../console-logger.js";
9
8
 
10
9
  export const startCommand = buildCommand({
@@ -2,7 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import { ZodRawShape } from "zod";
5
+ import { ZodRawShape } from "zod/v3";
6
6
  import { PromptArgsRawShape, PromptDefinition } from "./prompts.js";
7
7
  import { ResourceDefinition, ResourceTemplateDefinition } from "./resources.js";
8
8
  import { ToolDefinition } from "./tools.js";
@@ -19,7 +19,7 @@ const routes = buildRouteMap({
19
19
  export const app = buildApplication(routes, {
20
20
  name: "mcp",
21
21
  versionInfo: {
22
- currentVersion: "0.3.0",
22
+ currentVersion: "0.4.1",
23
23
  },
24
24
  });
25
25
 
@@ -11,7 +11,7 @@ import {
11
11
  ZodType,
12
12
  ZodTypeAny,
13
13
  ZodTypeDef,
14
- } from "zod";
14
+ } from "zod/v3";
15
15
  import { VantaCore } from "../core.js";
16
16
  import { ConsoleLogger } from "./console-logger.js";
17
17
  import { MCPScope } from "./scopes.js";
@@ -34,7 +34,7 @@ export function createMCPServer(deps: {
34
34
  }) {
35
35
  const server = new McpServer({
36
36
  name: "Vanta",
37
- version: "0.3.0",
37
+ version: "0.4.1",
38
38
  });
39
39
 
40
40
  const client = new VantaCore({
@@ -2,9 +2,8 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import * as z from "zod";
5
+ import * as z from "zod/v3";
6
6
  import { bytesToBase64 } from "../lib/base64.js";
7
-
8
7
  type BinaryData =
9
8
  | Uint8Array
10
9
  | ArrayBuffer
@@ -5,7 +5,7 @@
5
5
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
6
6
  import { RequestHandlerExtra } from "@modelcontextprotocol/sdk/shared/protocol.js";
7
7
  import { CallToolResult } from "@modelcontextprotocol/sdk/types.js";
8
- import { objectOutputType, ZodRawShape, ZodTypeAny } from "zod";
8
+ import { objectOutputType, ZodRawShape, ZodTypeAny } from "zod/v3";
9
9
  import { VantaCore } from "../core.js";
10
10
  import { ConsoleLogger } from "./console-logger.js";
11
11
  import { MCPScope } from "./scopes.js";
@@ -2,7 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import * as z from "zod";
5
+ import * as z from "zod/v3";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
@@ -32,7 +32,6 @@ export const AddAuditorInput$inboundSchema: z.ZodType<
32
32
  givenName: z.string(),
33
33
  familyName: z.string(),
34
34
  });
35
-
36
35
  /** @internal */
37
36
  export type AddAuditorInput$Outbound = {
38
37
  email: string;
@@ -51,25 +50,11 @@ export const AddAuditorInput$outboundSchema: z.ZodType<
51
50
  familyName: z.string(),
52
51
  });
53
52
 
54
- /**
55
- * @internal
56
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
57
- */
58
- export namespace AddAuditorInput$ {
59
- /** @deprecated use `AddAuditorInput$inboundSchema` instead. */
60
- export const inboundSchema = AddAuditorInput$inboundSchema;
61
- /** @deprecated use `AddAuditorInput$outboundSchema` instead. */
62
- export const outboundSchema = AddAuditorInput$outboundSchema;
63
- /** @deprecated use `AddAuditorInput$Outbound` instead. */
64
- export type Outbound = AddAuditorInput$Outbound;
65
- }
66
-
67
53
  export function addAuditorInputToJSON(
68
54
  addAuditorInput: AddAuditorInput,
69
55
  ): string {
70
56
  return JSON.stringify(AddAuditorInput$outboundSchema.parse(addAuditorInput));
71
57
  }
72
-
73
58
  export function addAuditorInputFromJSON(
74
59
  jsonString: string,
75
60
  ): SafeParseResult<AddAuditorInput, SDKValidationError> {
@@ -2,7 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import * as z from "zod";
5
+ import * as z from "zod/v3";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
@@ -34,7 +34,6 @@ export const AddCommentInput$inboundSchema: z.ZodType<
34
34
  new Date(v)
35
35
  ),
36
36
  });
37
-
38
37
  /** @internal */
39
38
  export type AddCommentInput$Outbound = {
40
39
  text: string;
@@ -53,25 +52,11 @@ export const AddCommentInput$outboundSchema: z.ZodType<
53
52
  creationDate: z.date().transform(v => v.toISOString()),
54
53
  });
55
54
 
56
- /**
57
- * @internal
58
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
59
- */
60
- export namespace AddCommentInput$ {
61
- /** @deprecated use `AddCommentInput$inboundSchema` instead. */
62
- export const inboundSchema = AddCommentInput$inboundSchema;
63
- /** @deprecated use `AddCommentInput$outboundSchema` instead. */
64
- export const outboundSchema = AddCommentInput$outboundSchema;
65
- /** @deprecated use `AddCommentInput$Outbound` instead. */
66
- export type Outbound = AddCommentInput$Outbound;
67
- }
68
-
69
55
  export function addCommentInputToJSON(
70
56
  addCommentInput: AddCommentInput,
71
57
  ): string {
72
58
  return JSON.stringify(AddCommentInput$outboundSchema.parse(addCommentInput));
73
59
  }
74
-
75
60
  export function addCommentInputFromJSON(
76
61
  jsonString: string,
77
62
  ): SafeParseResult<AddCommentInput, SDKValidationError> {
@@ -2,7 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import * as z from "zod";
5
+ import * as z from "zod/v3";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
@@ -105,7 +105,6 @@ export const Audit$inboundSchema: z.ZodType<Audit, z.ZodTypeDef, unknown> = z
105
105
  ),
106
106
  auditFocus: AuditFocus$inboundSchema,
107
107
  });
108
-
109
108
  /** @internal */
110
109
  export type Audit$Outbound = {
111
110
  id: string;
@@ -148,23 +147,9 @@ export const Audit$outboundSchema: z.ZodType<
148
147
  auditFocus: AuditFocus$outboundSchema,
149
148
  });
150
149
 
151
- /**
152
- * @internal
153
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
154
- */
155
- export namespace Audit$ {
156
- /** @deprecated use `Audit$inboundSchema` instead. */
157
- export const inboundSchema = Audit$inboundSchema;
158
- /** @deprecated use `Audit$outboundSchema` instead. */
159
- export const outboundSchema = Audit$outboundSchema;
160
- /** @deprecated use `Audit$Outbound` instead. */
161
- export type Outbound = Audit$Outbound;
162
- }
163
-
164
150
  export function auditToJSON(audit: Audit): string {
165
151
  return JSON.stringify(Audit$outboundSchema.parse(audit));
166
152
  }
167
-
168
153
  export function auditFromJSON(
169
154
  jsonString: string,
170
155
  ): SafeParseResult<Audit, SDKValidationError> {
@@ -2,7 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import * as z from "zod";
5
+ import * as z from "zod/v3";
6
6
  import { ClosedEnum } from "../../types/enums.js";
7
7
 
8
8
  export const AuditEvidenceState = {
@@ -19,19 +19,7 @@ export type AuditEvidenceState = ClosedEnum<typeof AuditEvidenceState>;
19
19
  export const AuditEvidenceState$inboundSchema: z.ZodNativeEnum<
20
20
  typeof AuditEvidenceState
21
21
  > = z.nativeEnum(AuditEvidenceState);
22
-
23
22
  /** @internal */
24
23
  export const AuditEvidenceState$outboundSchema: z.ZodNativeEnum<
25
24
  typeof AuditEvidenceState
26
25
  > = AuditEvidenceState$inboundSchema;
27
-
28
- /**
29
- * @internal
30
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
31
- */
32
- export namespace AuditEvidenceState$ {
33
- /** @deprecated use `AuditEvidenceState$inboundSchema` instead. */
34
- export const inboundSchema = AuditEvidenceState$inboundSchema;
35
- /** @deprecated use `AuditEvidenceState$outboundSchema` instead. */
36
- export const outboundSchema = AuditEvidenceState$outboundSchema;
37
- }
@@ -2,7 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import * as z from "zod";
5
+ import * as z from "zod/v3";
6
6
  import { ClosedEnum } from "../../types/enums.js";
7
7
 
8
8
  export const AuditEvidenceType = {
@@ -16,19 +16,7 @@ export type AuditEvidenceType = ClosedEnum<typeof AuditEvidenceType>;
16
16
  export const AuditEvidenceType$inboundSchema: z.ZodNativeEnum<
17
17
  typeof AuditEvidenceType
18
18
  > = z.nativeEnum(AuditEvidenceType);
19
-
20
19
  /** @internal */
21
20
  export const AuditEvidenceType$outboundSchema: z.ZodNativeEnum<
22
21
  typeof AuditEvidenceType
23
22
  > = AuditEvidenceType$inboundSchema;
24
-
25
- /**
26
- * @internal
27
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
28
- */
29
- export namespace AuditEvidenceType$ {
30
- /** @deprecated use `AuditEvidenceType$inboundSchema` instead. */
31
- export const inboundSchema = AuditEvidenceType$inboundSchema;
32
- /** @deprecated use `AuditEvidenceType$outboundSchema` instead. */
33
- export const outboundSchema = AuditEvidenceType$outboundSchema;
34
- }
@@ -2,7 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import * as z from "zod";
5
+ import * as z from "zod/v3";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
@@ -33,7 +33,6 @@ export const StatusUpdate$inboundSchema: z.ZodType<
33
33
  auditorEmail: z.string(),
34
34
  stateTransition: AuditorEnabledStateTransition$inboundSchema,
35
35
  });
36
-
37
36
  /** @internal */
38
37
  export type StatusUpdate$Outbound = {
39
38
  auditorEmail: string;
@@ -50,23 +49,9 @@ export const StatusUpdate$outboundSchema: z.ZodType<
50
49
  stateTransition: AuditorEnabledStateTransition$outboundSchema,
51
50
  });
52
51
 
53
- /**
54
- * @internal
55
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
56
- */
57
- export namespace StatusUpdate$ {
58
- /** @deprecated use `StatusUpdate$inboundSchema` instead. */
59
- export const inboundSchema = StatusUpdate$inboundSchema;
60
- /** @deprecated use `StatusUpdate$outboundSchema` instead. */
61
- export const outboundSchema = StatusUpdate$outboundSchema;
62
- /** @deprecated use `StatusUpdate$Outbound` instead. */
63
- export type Outbound = StatusUpdate$Outbound;
64
- }
65
-
66
52
  export function statusUpdateToJSON(statusUpdate: StatusUpdate): string {
67
53
  return JSON.stringify(StatusUpdate$outboundSchema.parse(statusUpdate));
68
54
  }
69
-
70
55
  export function statusUpdateFromJSON(
71
56
  jsonString: string,
72
57
  ): SafeParseResult<StatusUpdate, SDKValidationError> {
@@ -85,7 +70,6 @@ export const AuditEvidenceUpdateInput$inboundSchema: z.ZodType<
85
70
  > = z.object({
86
71
  statusUpdate: z.lazy(() => StatusUpdate$inboundSchema).optional(),
87
72
  });
88
-
89
73
  /** @internal */
90
74
  export type AuditEvidenceUpdateInput$Outbound = {
91
75
  statusUpdate?: StatusUpdate$Outbound | undefined;
@@ -100,19 +84,6 @@ export const AuditEvidenceUpdateInput$outboundSchema: z.ZodType<
100
84
  statusUpdate: z.lazy(() => StatusUpdate$outboundSchema).optional(),
101
85
  });
102
86
 
103
- /**
104
- * @internal
105
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
106
- */
107
- export namespace AuditEvidenceUpdateInput$ {
108
- /** @deprecated use `AuditEvidenceUpdateInput$inboundSchema` instead. */
109
- export const inboundSchema = AuditEvidenceUpdateInput$inboundSchema;
110
- /** @deprecated use `AuditEvidenceUpdateInput$outboundSchema` instead. */
111
- export const outboundSchema = AuditEvidenceUpdateInput$outboundSchema;
112
- /** @deprecated use `AuditEvidenceUpdateInput$Outbound` instead. */
113
- export type Outbound = AuditEvidenceUpdateInput$Outbound;
114
- }
115
-
116
87
  export function auditEvidenceUpdateInputToJSON(
117
88
  auditEvidenceUpdateInput: AuditEvidenceUpdateInput,
118
89
  ): string {
@@ -120,7 +91,6 @@ export function auditEvidenceUpdateInputToJSON(
120
91
  AuditEvidenceUpdateInput$outboundSchema.parse(auditEvidenceUpdateInput),
121
92
  );
122
93
  }
123
-
124
94
  export function auditEvidenceUpdateInputFromJSON(
125
95
  jsonString: string,
126
96
  ): SafeParseResult<AuditEvidenceUpdateInput, SDKValidationError> {
@@ -2,7 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import * as z from "zod";
5
+ import * as z from "zod/v3";
6
6
  import { ClosedEnum } from "../../types/enums.js";
7
7
 
8
8
  export const AuditFocus = {
@@ -14,18 +14,6 @@ export type AuditFocus = ClosedEnum<typeof AuditFocus>;
14
14
  /** @internal */
15
15
  export const AuditFocus$inboundSchema: z.ZodNativeEnum<typeof AuditFocus> = z
16
16
  .nativeEnum(AuditFocus);
17
-
18
17
  /** @internal */
19
18
  export const AuditFocus$outboundSchema: z.ZodNativeEnum<typeof AuditFocus> =
20
19
  AuditFocus$inboundSchema;
21
-
22
- /**
23
- * @internal
24
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
25
- */
26
- export namespace AuditFocus$ {
27
- /** @deprecated use `AuditFocus$inboundSchema` instead. */
28
- export const inboundSchema = AuditFocus$inboundSchema;
29
- /** @deprecated use `AuditFocus$outboundSchema` instead. */
30
- export const outboundSchema = AuditFocus$outboundSchema;
31
- }
@@ -2,7 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import * as z from "zod";
5
+ import * as z from "zod/v3";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
@@ -36,7 +36,6 @@ export const Auditor$inboundSchema: z.ZodType<Auditor, z.ZodTypeDef, unknown> =
36
36
  givenName: z.string(),
37
37
  familyName: z.string(),
38
38
  });
39
-
40
39
  /** @internal */
41
40
  export type Auditor$Outbound = {
42
41
  id: string;
@@ -59,23 +58,9 @@ export const Auditor$outboundSchema: z.ZodType<
59
58
  familyName: z.string(),
60
59
  });
61
60
 
62
- /**
63
- * @internal
64
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
65
- */
66
- export namespace Auditor$ {
67
- /** @deprecated use `Auditor$inboundSchema` instead. */
68
- export const inboundSchema = Auditor$inboundSchema;
69
- /** @deprecated use `Auditor$outboundSchema` instead. */
70
- export const outboundSchema = Auditor$outboundSchema;
71
- /** @deprecated use `Auditor$Outbound` instead. */
72
- export type Outbound = Auditor$Outbound;
73
- }
74
-
75
61
  export function auditorToJSON(auditor: Auditor): string {
76
62
  return JSON.stringify(Auditor$outboundSchema.parse(auditor));
77
63
  }
78
-
79
64
  export function auditorFromJSON(
80
65
  jsonString: string,
81
66
  ): SafeParseResult<Auditor, SDKValidationError> {
@@ -2,7 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import * as z from "zod";
5
+ import * as z from "zod/v3";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
@@ -93,7 +93,6 @@ export const Owner$inboundSchema: z.ZodType<Owner, z.ZodTypeDef, unknown> = z
93
93
  displayName: z.string(),
94
94
  emailAddress: z.string(),
95
95
  });
96
-
97
96
  /** @internal */
98
97
  export type Owner$Outbound = {
99
98
  id: string;
@@ -112,23 +111,9 @@ export const Owner$outboundSchema: z.ZodType<
112
111
  emailAddress: z.string(),
113
112
  });
114
113
 
115
- /**
116
- * @internal
117
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
118
- */
119
- export namespace Owner$ {
120
- /** @deprecated use `Owner$inboundSchema` instead. */
121
- export const inboundSchema = Owner$inboundSchema;
122
- /** @deprecated use `Owner$outboundSchema` instead. */
123
- export const outboundSchema = Owner$outboundSchema;
124
- /** @deprecated use `Owner$Outbound` instead. */
125
- export type Outbound = Owner$Outbound;
126
- }
127
-
128
114
  export function ownerToJSON(owner: Owner): string {
129
115
  return JSON.stringify(Owner$outboundSchema.parse(owner));
130
116
  }
131
-
132
117
  export function ownerFromJSON(
133
118
  jsonString: string,
134
119
  ): SafeParseResult<Owner, SDKValidationError> {
@@ -157,7 +142,6 @@ export const AuditorControl$inboundSchema: z.ZodType<
157
142
  framework: z.string(),
158
143
  sections: z.array(Section$inboundSchema),
159
144
  });
160
-
161
145
  /** @internal */
162
146
  export type AuditorControl$Outbound = {
163
147
  id: string;
@@ -192,23 +176,9 @@ export const AuditorControl$outboundSchema: z.ZodType<
192
176
  sections: z.array(Section$outboundSchema),
193
177
  });
194
178
 
195
- /**
196
- * @internal
197
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
198
- */
199
- export namespace AuditorControl$ {
200
- /** @deprecated use `AuditorControl$inboundSchema` instead. */
201
- export const inboundSchema = AuditorControl$inboundSchema;
202
- /** @deprecated use `AuditorControl$outboundSchema` instead. */
203
- export const outboundSchema = AuditorControl$outboundSchema;
204
- /** @deprecated use `AuditorControl$Outbound` instead. */
205
- export type Outbound = AuditorControl$Outbound;
206
- }
207
-
208
179
  export function auditorControlToJSON(auditorControl: AuditorControl): string {
209
180
  return JSON.stringify(AuditorControl$outboundSchema.parse(auditorControl));
210
181
  }
211
-
212
182
  export function auditorControlFromJSON(
213
183
  jsonString: string,
214
184
  ): SafeParseResult<AuditorControl, SDKValidationError> {
@@ -2,7 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import * as z from "zod";
5
+ import * as z from "zod/v3";
6
6
  import { ClosedEnum } from "../../types/enums.js";
7
7
 
8
8
  export const AuditorEnabledStateTransition = {
@@ -20,19 +20,7 @@ export type AuditorEnabledStateTransition = ClosedEnum<
20
20
  export const AuditorEnabledStateTransition$inboundSchema: z.ZodNativeEnum<
21
21
  typeof AuditorEnabledStateTransition
22
22
  > = z.nativeEnum(AuditorEnabledStateTransition);
23
-
24
23
  /** @internal */
25
24
  export const AuditorEnabledStateTransition$outboundSchema: z.ZodNativeEnum<
26
25
  typeof AuditorEnabledStateTransition
27
26
  > = AuditorEnabledStateTransition$inboundSchema;
28
-
29
- /**
30
- * @internal
31
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
32
- */
33
- export namespace AuditorEnabledStateTransition$ {
34
- /** @deprecated use `AuditorEnabledStateTransition$inboundSchema` instead. */
35
- export const inboundSchema = AuditorEnabledStateTransition$inboundSchema;
36
- /** @deprecated use `AuditorEnabledStateTransition$outboundSchema` instead. */
37
- export const outboundSchema = AuditorEnabledStateTransition$outboundSchema;
38
- }
@@ -2,7 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import * as z from "zod";
5
+ import * as z from "zod/v3";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
@@ -55,7 +55,6 @@ export const Comment$inboundSchema: z.ZodType<Comment, z.ZodTypeDef, unknown> =
55
55
  ),
56
56
  email: z.nullable(z.string()),
57
57
  });
58
-
59
58
  /** @internal */
60
59
  export type Comment$Outbound = {
61
60
  id: string;
@@ -82,23 +81,9 @@ export const Comment$outboundSchema: z.ZodType<
82
81
  email: z.nullable(z.string()),
83
82
  });
84
83
 
85
- /**
86
- * @internal
87
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
88
- */
89
- export namespace Comment$ {
90
- /** @deprecated use `Comment$inboundSchema` instead. */
91
- export const inboundSchema = Comment$inboundSchema;
92
- /** @deprecated use `Comment$outboundSchema` instead. */
93
- export const outboundSchema = Comment$outboundSchema;
94
- /** @deprecated use `Comment$Outbound` instead. */
95
- export type Outbound = Comment$Outbound;
96
- }
97
-
98
84
  export function commentToJSON(comment: Comment): string {
99
85
  return JSON.stringify(Comment$outboundSchema.parse(comment));
100
86
  }
101
-
102
87
  export function commentFromJSON(
103
88
  jsonString: string,
104
89
  ): SafeParseResult<Comment, SDKValidationError> {
@@ -2,7 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import * as z from "zod";
5
+ import * as z from "zod/v3";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
@@ -82,7 +82,6 @@ export const ControlOwner$inboundSchema: z.ZodType<
82
82
  displayName: z.string(),
83
83
  emailAddress: z.string(),
84
84
  });
85
-
86
85
  /** @internal */
87
86
  export type ControlOwner$Outbound = {
88
87
  id: string;
@@ -101,23 +100,9 @@ export const ControlOwner$outboundSchema: z.ZodType<
101
100
  emailAddress: z.string(),
102
101
  });
103
102
 
104
- /**
105
- * @internal
106
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
107
- */
108
- export namespace ControlOwner$ {
109
- /** @deprecated use `ControlOwner$inboundSchema` instead. */
110
- export const inboundSchema = ControlOwner$inboundSchema;
111
- /** @deprecated use `ControlOwner$outboundSchema` instead. */
112
- export const outboundSchema = ControlOwner$outboundSchema;
113
- /** @deprecated use `ControlOwner$Outbound` instead. */
114
- export type Outbound = ControlOwner$Outbound;
115
- }
116
-
117
103
  export function controlOwnerToJSON(controlOwner: ControlOwner): string {
118
104
  return JSON.stringify(ControlOwner$outboundSchema.parse(controlOwner));
119
105
  }
120
-
121
106
  export function controlOwnerFromJSON(
122
107
  jsonString: string,
123
108
  ): SafeParseResult<ControlOwner, SDKValidationError> {
@@ -141,7 +126,6 @@ export const Control$inboundSchema: z.ZodType<Control, z.ZodTypeDef, unknown> =
141
126
  role: z.nullable(z.string()).optional(),
142
127
  customFields: z.array(CustomField$inboundSchema),
143
128
  });
144
-
145
129
  /** @internal */
146
130
  export type Control$Outbound = {
147
131
  id: string;
@@ -172,23 +156,9 @@ export const Control$outboundSchema: z.ZodType<
172
156
  customFields: z.array(CustomField$outboundSchema),
173
157
  });
174
158
 
175
- /**
176
- * @internal
177
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
178
- */
179
- export namespace Control$ {
180
- /** @deprecated use `Control$inboundSchema` instead. */
181
- export const inboundSchema = Control$inboundSchema;
182
- /** @deprecated use `Control$outboundSchema` instead. */
183
- export const outboundSchema = Control$outboundSchema;
184
- /** @deprecated use `Control$Outbound` instead. */
185
- export type Outbound = Control$Outbound;
186
- }
187
-
188
159
  export function controlToJSON(control: Control): string {
189
160
  return JSON.stringify(Control$outboundSchema.parse(control));
190
161
  }
191
-
192
162
  export function controlFromJSON(
193
163
  jsonString: string,
194
164
  ): SafeParseResult<Control, SDKValidationError> {
@@ -2,7 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import * as z from "zod";
5
+ import * as z from "zod/v3";
6
6
  import { ClosedEnum } from "../../types/enums.js";
7
7
 
8
8
  export const ControlDomain = {
@@ -52,19 +52,7 @@ export type ControlDomain = ClosedEnum<typeof ControlDomain>;
52
52
  export const ControlDomain$inboundSchema: z.ZodNativeEnum<
53
53
  typeof ControlDomain
54
54
  > = z.nativeEnum(ControlDomain);
55
-
56
55
  /** @internal */
57
56
  export const ControlDomain$outboundSchema: z.ZodNativeEnum<
58
57
  typeof ControlDomain
59
58
  > = ControlDomain$inboundSchema;
60
-
61
- /**
62
- * @internal
63
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
64
- */
65
- export namespace ControlDomain$ {
66
- /** @deprecated use `ControlDomain$inboundSchema` instead. */
67
- export const inboundSchema = ControlDomain$inboundSchema;
68
- /** @deprecated use `ControlDomain$outboundSchema` instead. */
69
- export const outboundSchema = ControlDomain$outboundSchema;
70
- }