vanta-auditor-api-sdk 0.6.1 → 0.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (275) hide show
  1. package/README.md +21 -1
  2. package/docs/sdks/audits/README.md +760 -1
  3. package/funcs/auditsList.js +10 -0
  4. package/funcs/auditsList.js.map +1 -1
  5. package/funcs/auditsListAccountAccessServices.d.ts +33 -0
  6. package/funcs/auditsListAccountAccessServices.d.ts.map +1 -0
  7. package/funcs/auditsListAccountAccessServices.js +141 -0
  8. package/funcs/auditsListAccountAccessServices.js.map +1 -0
  9. package/funcs/auditsListAuditIssues.d.ts +3 -1
  10. package/funcs/auditsListAuditIssues.d.ts.map +1 -1
  11. package/funcs/auditsListAuditIssues.js +5 -1
  12. package/funcs/auditsListAuditIssues.js.map +1 -1
  13. package/funcs/auditsListAuditRisks.d.ts +37 -0
  14. package/funcs/auditsListAuditRisks.d.ts.map +1 -0
  15. package/funcs/auditsListAuditRisks.js +152 -0
  16. package/funcs/auditsListAuditRisks.js.map +1 -0
  17. package/funcs/auditsListCodeChanges.d.ts +34 -0
  18. package/funcs/auditsListCodeChanges.d.ts.map +1 -0
  19. package/funcs/auditsListCodeChanges.js +146 -0
  20. package/funcs/auditsListCodeChanges.js.map +1 -0
  21. package/funcs/auditsListPersonnelAccountAccess.d.ts +58 -0
  22. package/funcs/auditsListPersonnelAccountAccess.d.ts.map +1 -0
  23. package/funcs/auditsListPersonnelAccountAccess.js +172 -0
  24. package/funcs/auditsListPersonnelAccountAccess.js.map +1 -0
  25. package/funcs/auditsListPersonnelGroups.d.ts +39 -0
  26. package/funcs/auditsListPersonnelGroups.d.ts.map +1 -0
  27. package/funcs/auditsListPersonnelGroups.js +151 -0
  28. package/funcs/auditsListPersonnelGroups.js.map +1 -0
  29. package/funcs/auditsListPersonnelPeople.d.ts +36 -0
  30. package/funcs/auditsListPersonnelPeople.d.ts.map +1 -0
  31. package/funcs/auditsListPersonnelPeople.js +149 -0
  32. package/funcs/auditsListPersonnelPeople.js.map +1 -0
  33. package/funcs/auditsListRiskSnapshots.d.ts +32 -0
  34. package/funcs/auditsListRiskSnapshots.d.ts.map +1 -0
  35. package/funcs/auditsListRiskSnapshots.js +140 -0
  36. package/funcs/auditsListRiskSnapshots.js.map +1 -0
  37. package/funcs/auditsListVendors.d.ts +35 -0
  38. package/funcs/auditsListVendors.d.ts.map +1 -0
  39. package/funcs/auditsListVendors.js +148 -0
  40. package/funcs/auditsListVendors.js.map +1 -0
  41. package/jsr.json +1 -1
  42. package/lib/config.d.ts +3 -3
  43. package/lib/config.js +3 -3
  44. package/lib/config.js.map +1 -1
  45. package/models/components/accountaccess.d.ts +64 -0
  46. package/models/components/accountaccess.d.ts.map +1 -0
  47. package/models/components/accountaccess.js +58 -0
  48. package/models/components/accountaccess.js.map +1 -0
  49. package/models/components/accountaccessservice.d.ts +36 -0
  50. package/models/components/accountaccessservice.d.ts.map +1 -0
  51. package/models/components/accountaccessservice.js +53 -0
  52. package/models/components/accountaccessservice.js.map +1 -0
  53. package/models/components/accountaccessstatus.d.ts +25 -0
  54. package/models/components/accountaccessstatus.d.ts.map +1 -0
  55. package/models/components/accountaccessstatus.js +56 -0
  56. package/models/components/accountaccessstatus.js.map +1 -0
  57. package/models/components/apicodechangesource.d.ts +18 -0
  58. package/models/components/apicodechangesource.d.ts.map +1 -0
  59. package/models/components/apicodechangesource.js +52 -0
  60. package/models/components/apicodechangesource.js.map +1 -0
  61. package/models/components/auditrisk.d.ts +153 -0
  62. package/models/components/auditrisk.d.ts.map +1 -0
  63. package/models/components/auditrisk.js +108 -0
  64. package/models/components/auditrisk.js.map +1 -0
  65. package/models/components/auditriskcia.d.ts +17 -0
  66. package/models/components/auditriskcia.d.ts.map +1 -0
  67. package/models/components/auditriskcia.js +51 -0
  68. package/models/components/auditriskcia.js.map +1 -0
  69. package/models/components/auditvendor.d.ts +96 -0
  70. package/models/components/auditvendor.d.ts.map +1 -0
  71. package/models/components/auditvendor.js +86 -0
  72. package/models/components/auditvendor.js.map +1 -0
  73. package/models/components/auditvendorrisklevel.d.ts +15 -0
  74. package/models/components/auditvendorrisklevel.d.ts.map +1 -0
  75. package/models/components/auditvendorrisklevel.js +52 -0
  76. package/models/components/auditvendorrisklevel.js.map +1 -0
  77. package/models/components/auditvendorstatus.d.ts +13 -0
  78. package/models/components/auditvendorstatus.d.ts.map +1 -0
  79. package/models/components/auditvendorstatus.js +50 -0
  80. package/models/components/auditvendorstatus.js.map +1 -0
  81. package/models/components/codechange.d.ts +50 -0
  82. package/models/components/codechange.d.ts.map +1 -0
  83. package/models/components/codechange.js +58 -0
  84. package/models/components/codechange.js.map +1 -0
  85. package/models/components/grouporderby.d.ts +13 -0
  86. package/models/components/grouporderby.d.ts.map +1 -0
  87. package/models/components/grouporderby.js +50 -0
  88. package/models/components/grouporderby.js.map +1 -0
  89. package/models/components/index.d.ts +31 -0
  90. package/models/components/index.d.ts.map +1 -1
  91. package/models/components/index.js +31 -0
  92. package/models/components/index.js.map +1 -1
  93. package/models/components/issuesnapshotitemorderby.d.ts +16 -0
  94. package/models/components/issuesnapshotitemorderby.d.ts.map +1 -0
  95. package/models/components/issuesnapshotitemorderby.js +50 -0
  96. package/models/components/issuesnapshotitemorderby.js.map +1 -0
  97. package/models/components/orderdirection.d.ts +16 -0
  98. package/models/components/orderdirection.d.ts.map +1 -0
  99. package/models/components/orderdirection.js +50 -0
  100. package/models/components/orderdirection.js.map +1 -0
  101. package/models/components/paginatedresponseaccountaccess.d.ts +22 -0
  102. package/models/components/paginatedresponseaccountaccess.d.ts.map +1 -0
  103. package/models/components/paginatedresponseaccountaccess.js +61 -0
  104. package/models/components/paginatedresponseaccountaccess.js.map +1 -0
  105. package/models/components/paginatedresponseaccountaccessservice.d.ts +22 -0
  106. package/models/components/paginatedresponseaccountaccessservice.d.ts.map +1 -0
  107. package/models/components/paginatedresponseaccountaccessservice.js +61 -0
  108. package/models/components/paginatedresponseaccountaccessservice.js.map +1 -0
  109. package/models/components/paginatedresponseauditrisk.d.ts +22 -0
  110. package/models/components/paginatedresponseauditrisk.d.ts.map +1 -0
  111. package/models/components/paginatedresponseauditrisk.js +61 -0
  112. package/models/components/paginatedresponseauditrisk.js.map +1 -0
  113. package/models/components/paginatedresponseauditvendor.d.ts +22 -0
  114. package/models/components/paginatedresponseauditvendor.d.ts.map +1 -0
  115. package/models/components/paginatedresponseauditvendor.js +61 -0
  116. package/models/components/paginatedresponseauditvendor.js.map +1 -0
  117. package/models/components/paginatedresponsecodechange.d.ts +22 -0
  118. package/models/components/paginatedresponsecodechange.d.ts.map +1 -0
  119. package/models/components/paginatedresponsecodechange.js +61 -0
  120. package/models/components/paginatedresponsecodechange.js.map +1 -0
  121. package/models/components/paginatedresponsepersonnelgroup.d.ts +22 -0
  122. package/models/components/paginatedresponsepersonnelgroup.d.ts.map +1 -0
  123. package/models/components/paginatedresponsepersonnelgroup.js +61 -0
  124. package/models/components/paginatedresponsepersonnelgroup.js.map +1 -0
  125. package/models/components/paginatedresponsepersonnelperson.d.ts +22 -0
  126. package/models/components/paginatedresponsepersonnelperson.d.ts.map +1 -0
  127. package/models/components/paginatedresponsepersonnelperson.js +61 -0
  128. package/models/components/paginatedresponsepersonnelperson.js.map +1 -0
  129. package/models/components/paginatedresponserisksnapshot.d.ts +22 -0
  130. package/models/components/paginatedresponserisksnapshot.d.ts.map +1 -0
  131. package/models/components/paginatedresponserisksnapshot.js +61 -0
  132. package/models/components/paginatedresponserisksnapshot.js.map +1 -0
  133. package/models/components/peopleemploymentstatus.d.ts +20 -0
  134. package/models/components/peopleemploymentstatus.d.ts.map +1 -0
  135. package/models/components/peopleemploymentstatus.js +54 -0
  136. package/models/components/peopleemploymentstatus.js.map +1 -0
  137. package/models/components/peopleorderby.d.ts +10 -0
  138. package/models/components/peopleorderby.d.ts.map +1 -0
  139. package/models/components/peopleorderby.js +47 -0
  140. package/models/components/peopleorderby.js.map +1 -0
  141. package/models/components/peoplesecuritytaskstatus.d.ts +18 -0
  142. package/models/components/peoplesecuritytaskstatus.d.ts.map +1 -0
  143. package/models/components/peoplesecuritytaskstatus.js +52 -0
  144. package/models/components/peoplesecuritytaskstatus.js.map +1 -0
  145. package/models/components/peopletaskstatus.d.ts +22 -0
  146. package/models/components/peopletaskstatus.d.ts.map +1 -0
  147. package/models/components/peopletaskstatus.js +56 -0
  148. package/models/components/peopletaskstatus.js.map +1 -0
  149. package/models/components/personnelgroup.d.ts +54 -0
  150. package/models/components/personnelgroup.d.ts.map +1 -0
  151. package/models/components/personnelgroup.js +57 -0
  152. package/models/components/personnelgroup.js.map +1 -0
  153. package/models/components/personnelgrouptask.d.ts +16 -0
  154. package/models/components/personnelgrouptask.d.ts.map +1 -0
  155. package/models/components/personnelgrouptask.js +50 -0
  156. package/models/components/personnelgrouptask.js.map +1 -0
  157. package/models/components/personnelperson.d.ts +338 -0
  158. package/models/components/personnelperson.d.ts.map +1 -0
  159. package/models/components/personnelperson.js +177 -0
  160. package/models/components/personnelperson.js.map +1 -0
  161. package/models/components/riskorderby.d.ts +18 -0
  162. package/models/components/riskorderby.d.ts.map +1 -0
  163. package/models/components/riskorderby.js +56 -0
  164. package/models/components/riskorderby.js.map +1 -0
  165. package/models/components/risksnapshot.d.ts +26 -0
  166. package/models/components/risksnapshot.d.ts.map +1 -0
  167. package/models/components/risksnapshot.js +51 -0
  168. package/models/components/risksnapshot.js.map +1 -0
  169. package/models/components/vendororderby.d.ts +10 -0
  170. package/models/components/vendororderby.d.ts.map +1 -0
  171. package/models/components/vendororderby.js +47 -0
  172. package/models/components/vendororderby.js.map +1 -0
  173. package/models/operations/index.d.ts +8 -0
  174. package/models/operations/index.d.ts.map +1 -1
  175. package/models/operations/index.js +8 -0
  176. package/models/operations/index.js.map +1 -1
  177. package/models/operations/listaccountaccessservices.d.ts +25 -0
  178. package/models/operations/listaccountaccessservices.d.ts.map +1 -0
  179. package/models/operations/listaccountaccessservices.js +51 -0
  180. package/models/operations/listaccountaccessservices.js.map +1 -0
  181. package/models/operations/listauditissues.d.ts +11 -0
  182. package/models/operations/listauditissues.d.ts.map +1 -1
  183. package/models/operations/listauditissues.js +3 -0
  184. package/models/operations/listauditissues.js.map +1 -1
  185. package/models/operations/listauditrisks.d.ts +46 -0
  186. package/models/operations/listauditrisks.d.ts.map +1 -0
  187. package/models/operations/listauditrisks.js +56 -0
  188. package/models/operations/listauditrisks.js.map +1 -0
  189. package/models/operations/listcodechanges.d.ts +46 -0
  190. package/models/operations/listcodechanges.d.ts.map +1 -0
  191. package/models/operations/listcodechanges.js +57 -0
  192. package/models/operations/listcodechanges.js.map +1 -0
  193. package/models/operations/listpersonnelaccountaccess.d.ts +41 -0
  194. package/models/operations/listpersonnelaccountaccess.d.ts.map +1 -0
  195. package/models/operations/listpersonnelaccountaccess.js +55 -0
  196. package/models/operations/listpersonnelaccountaccess.js.map +1 -0
  197. package/models/operations/listpersonnelgroups.d.ts +46 -0
  198. package/models/operations/listpersonnelgroups.d.ts.map +1 -0
  199. package/models/operations/listpersonnelgroups.js +56 -0
  200. package/models/operations/listpersonnelgroups.js.map +1 -0
  201. package/models/operations/listpersonnelpeople.d.ts +51 -0
  202. package/models/operations/listpersonnelpeople.d.ts.map +1 -0
  203. package/models/operations/listpersonnelpeople.js +57 -0
  204. package/models/operations/listpersonnelpeople.js.map +1 -0
  205. package/models/operations/listrisksnapshots.d.ts +25 -0
  206. package/models/operations/listrisksnapshots.d.ts.map +1 -0
  207. package/models/operations/listrisksnapshots.js +51 -0
  208. package/models/operations/listrisksnapshots.js.map +1 -0
  209. package/models/operations/listvendors.d.ts +51 -0
  210. package/models/operations/listvendors.d.ts.map +1 -0
  211. package/models/operations/listvendors.js +58 -0
  212. package/models/operations/listvendors.js.map +1 -0
  213. package/package.json +1 -1
  214. package/sdk/audits.d.ts +219 -1
  215. package/sdk/audits.d.ts.map +1 -1
  216. package/sdk/audits.js +243 -1
  217. package/sdk/audits.js.map +1 -1
  218. package/src/funcs/auditsList.ts +10 -0
  219. package/src/funcs/auditsListAccountAccessServices.ts +192 -0
  220. package/src/funcs/auditsListAuditIssues.ts +5 -1
  221. package/src/funcs/auditsListAuditRisks.ts +200 -0
  222. package/src/funcs/auditsListCodeChanges.ts +194 -0
  223. package/src/funcs/auditsListPersonnelAccountAccess.ts +223 -0
  224. package/src/funcs/auditsListPersonnelGroups.ts +200 -0
  225. package/src/funcs/auditsListPersonnelPeople.ts +198 -0
  226. package/src/funcs/auditsListRiskSnapshots.ts +188 -0
  227. package/src/funcs/auditsListVendors.ts +196 -0
  228. package/src/lib/config.ts +3 -3
  229. package/src/models/components/accountaccess.ts +99 -0
  230. package/src/models/components/accountaccessservice.ts +60 -0
  231. package/src/models/components/accountaccessstatus.ts +34 -0
  232. package/src/models/components/apicodechangesource.ts +25 -0
  233. package/src/models/components/auditrisk.ts +216 -0
  234. package/src/models/components/auditriskcia.ts +23 -0
  235. package/src/models/components/auditvendor.ts +158 -0
  236. package/src/models/components/auditvendorrisklevel.ts +24 -0
  237. package/src/models/components/auditvendorstatus.ts +22 -0
  238. package/src/models/components/codechange.ts +79 -0
  239. package/src/models/components/grouporderby.ts +19 -0
  240. package/src/models/components/index.ts +31 -0
  241. package/src/models/components/issuesnapshotitemorderby.ts +25 -0
  242. package/src/models/components/orderdirection.ts +23 -0
  243. package/src/models/components/paginatedresponseaccountaccess.ts +62 -0
  244. package/src/models/components/paginatedresponseaccountaccessservice.ts +74 -0
  245. package/src/models/components/paginatedresponseauditrisk.ts +61 -0
  246. package/src/models/components/paginatedresponseauditvendor.ts +62 -0
  247. package/src/models/components/paginatedresponsecodechange.ts +62 -0
  248. package/src/models/components/paginatedresponsepersonnelgroup.ts +65 -0
  249. package/src/models/components/paginatedresponsepersonnelperson.ts +70 -0
  250. package/src/models/components/paginatedresponserisksnapshot.ts +62 -0
  251. package/src/models/components/peopleemploymentstatus.ts +27 -0
  252. package/src/models/components/peopleorderby.ts +17 -0
  253. package/src/models/components/peoplesecuritytaskstatus.ts +27 -0
  254. package/src/models/components/peopletaskstatus.ts +29 -0
  255. package/src/models/components/personnelgroup.ts +84 -0
  256. package/src/models/components/personnelgrouptask.ts +37 -0
  257. package/src/models/components/personnelperson.ts +554 -0
  258. package/src/models/components/riskorderby.ts +24 -0
  259. package/src/models/components/risksnapshot.ts +48 -0
  260. package/src/models/components/vendororderby.ts +17 -0
  261. package/src/models/operations/index.ts +8 -0
  262. package/src/models/operations/listaccountaccessservices.ts +48 -0
  263. package/src/models/operations/listauditissues.ts +13 -0
  264. package/src/models/operations/listauditrisks.ts +71 -0
  265. package/src/models/operations/listcodechanges.ts +72 -0
  266. package/src/models/operations/listpersonnelaccountaccess.ts +67 -0
  267. package/src/models/operations/listpersonnelgroups.ts +71 -0
  268. package/src/models/operations/listpersonnelpeople.ts +77 -0
  269. package/src/models/operations/listrisksnapshots.ts +46 -0
  270. package/src/models/operations/listvendors.ts +80 -0
  271. package/src/sdk/audits.ts +307 -1
  272. package/src/types/async.ts +8 -7
  273. package/types/async.d.ts.map +1 -1
  274. package/types/async.js +8 -7
  275. package/types/async.js.map +1 -1
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.AuditRiskCia$inboundSchema = exports.AuditRiskCia = void 0;
40
+ const z = __importStar(require("zod/v3"));
41
+ /**
42
+ * CIA triad category returned by the auditor API.
43
+ */
44
+ exports.AuditRiskCia = {
45
+ Availability: "AVAILABILITY",
46
+ Confidentiality: "CONFIDENTIALITY",
47
+ Integrity: "INTEGRITY",
48
+ };
49
+ /** @internal */
50
+ exports.AuditRiskCia$inboundSchema = z.nativeEnum(exports.AuditRiskCia);
51
+ //# sourceMappingURL=auditriskcia.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auditriskcia.js","sourceRoot":"","sources":["../../src/models/components/auditriskcia.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,0CAA4B;AAG5B;;GAEG;AACU,QAAA,YAAY,GAAG;IAC1B,YAAY,EAAE,cAAc;IAC5B,eAAe,EAAE,iBAAiB;IAClC,SAAS,EAAE,WAAW;CACd,CAAC;AAMX,gBAAgB;AACH,QAAA,0BAA0B,GACrC,CAAC,CAAC,UAAU,CAAC,oBAAY,CAAC,CAAC"}
@@ -0,0 +1,96 @@
1
+ import * as z from "zod/v3";
2
+ import { ClosedEnum } from "../../types/enums.js";
3
+ import { Result as SafeParseResult } from "../../types/fp.js";
4
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
+ import { AuditVendorRiskLevel } from "./auditvendorrisklevel.js";
6
+ import { AuditVendorStatus } from "./auditvendorstatus.js";
7
+ /**
8
+ * Residual risk level of the vendor.
9
+ *
10
+ * @remarks
11
+ * Full Audit View only - omitted in Controlled Audit View.
12
+ */
13
+ export declare const ResidualRisk: {
14
+ readonly Critical: "CRITICAL";
15
+ readonly High: "HIGH";
16
+ readonly Medium: "MEDIUM";
17
+ readonly Low: "LOW";
18
+ readonly Unscored: "UNSCORED";
19
+ };
20
+ /**
21
+ * Residual risk level of the vendor.
22
+ *
23
+ * @remarks
24
+ * Full Audit View only - omitted in Controlled Audit View.
25
+ */
26
+ export type ResidualRisk = ClosedEnum<typeof ResidualRisk>;
27
+ /**
28
+ * BAA/DPA document completion counts, or null if no such documents are required.
29
+ *
30
+ * @remarks
31
+ * Full Audit View only - omitted in Controlled Audit View.
32
+ */
33
+ export type DataAgreements = {
34
+ total: number;
35
+ complete: number;
36
+ };
37
+ /**
38
+ * Managed vendor row returned by the auditor managed-vendors API.
39
+ *
40
+ * @remarks
41
+ *
42
+ * Only `id` and `name` are required. All other fields are optional to support
43
+ * controlled audits where only approved columns are returned and
44
+ * customizable field visibility.
45
+ */
46
+ export type AuditVendor = {
47
+ /**
48
+ * Vendor record ID.
49
+ */
50
+ id: string;
51
+ /**
52
+ * Vendor name.
53
+ */
54
+ name: string;
55
+ inherentRisk?: AuditVendorRiskLevel | undefined;
56
+ status?: AuditVendorStatus | undefined;
57
+ /**
58
+ * Number of findings associated with the vendor.
59
+ */
60
+ findings?: number | undefined;
61
+ /**
62
+ * Date when the last security review was completed, or null if none.
63
+ */
64
+ lastReviewedCompleted?: Date | null | undefined;
65
+ /**
66
+ * Date when the next security review is due, or null if not scheduled.
67
+ */
68
+ nextSecurityReviewDueDate?: Date | null | undefined;
69
+ /**
70
+ * Vendor category (e.g. cloud provider, SaaS).
71
+ */
72
+ vendorCategory?: string | null | undefined;
73
+ /**
74
+ * Residual risk level of the vendor.
75
+ *
76
+ * @remarks
77
+ * Full Audit View only - omitted in Controlled Audit View.
78
+ */
79
+ residualRisk?: ResidualRisk | null | undefined;
80
+ /**
81
+ * BAA/DPA document completion counts, or null if no such documents are required.
82
+ *
83
+ * @remarks
84
+ * Full Audit View only - omitted in Controlled Audit View.
85
+ */
86
+ dataAgreements?: DataAgreements | null | undefined;
87
+ };
88
+ /** @internal */
89
+ export declare const ResidualRisk$inboundSchema: z.ZodNativeEnum<typeof ResidualRisk>;
90
+ /** @internal */
91
+ export declare const DataAgreements$inboundSchema: z.ZodType<DataAgreements, z.ZodTypeDef, unknown>;
92
+ export declare function dataAgreementsFromJSON(jsonString: string): SafeParseResult<DataAgreements, SDKValidationError>;
93
+ /** @internal */
94
+ export declare const AuditVendor$inboundSchema: z.ZodType<AuditVendor, z.ZodTypeDef, unknown>;
95
+ export declare function auditVendorFromJSON(jsonString: string): SafeParseResult<AuditVendor, SDKValidationError>;
96
+ //# sourceMappingURL=auditvendor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auditvendor.d.ts","sourceRoot":"","sources":["../../src/models/components/auditvendor.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,oBAAoB,EAErB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,iBAAiB,EAElB,MAAM,wBAAwB,CAAC;AAEhC;;;;;GAKG;AACH,eAAO,MAAM,YAAY;;;;;;CAMf,CAAC;AACX;;;;;GAKG;AACH,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AAE3D;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;;;;;;GAQG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAC;IAChD,MAAM,CAAC,EAAE,iBAAiB,GAAG,SAAS,CAAC;IACvC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B;;OAEG;IACH,qBAAqB,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,SAAS,CAAC;IAChD;;OAEG;IACH,yBAAyB,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,SAAS,CAAC;IACpD;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC3C;;;;;OAKG;IACH,YAAY,CAAC,EAAE,YAAY,GAAG,IAAI,GAAG,SAAS,CAAC;IAC/C;;;;;OAKG;IACH,cAAc,CAAC,EAAE,cAAc,GAAG,IAAI,GAAG,SAAS,CAAC;CACpD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,YAAY,CAChD,CAAC;AAE7B,gBAAgB;AAChB,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,OAAO,CAClD,cAAc,EACd,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AAEH,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,cAAc,EAAE,kBAAkB,CAAC,CAMrD;AAED,gBAAgB;AAChB,eAAO,MAAM,yBAAyB,EAAE,CAAC,CAAC,OAAO,CAC/C,WAAW,EACX,CAAC,CAAC,UAAU,EACZ,OAAO,CAiBP,CAAC;AAEH,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,WAAW,EAAE,kBAAkB,CAAC,CAMlD"}
@@ -0,0 +1,86 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.AuditVendor$inboundSchema = exports.DataAgreements$inboundSchema = exports.ResidualRisk$inboundSchema = exports.ResidualRisk = void 0;
40
+ exports.dataAgreementsFromJSON = dataAgreementsFromJSON;
41
+ exports.auditVendorFromJSON = auditVendorFromJSON;
42
+ const z = __importStar(require("zod/v3"));
43
+ const schemas_js_1 = require("../../lib/schemas.js");
44
+ const auditvendorrisklevel_js_1 = require("./auditvendorrisklevel.js");
45
+ const auditvendorstatus_js_1 = require("./auditvendorstatus.js");
46
+ /**
47
+ * Residual risk level of the vendor.
48
+ *
49
+ * @remarks
50
+ * Full Audit View only - omitted in Controlled Audit View.
51
+ */
52
+ exports.ResidualRisk = {
53
+ Critical: "CRITICAL",
54
+ High: "HIGH",
55
+ Medium: "MEDIUM",
56
+ Low: "LOW",
57
+ Unscored: "UNSCORED",
58
+ };
59
+ /** @internal */
60
+ exports.ResidualRisk$inboundSchema = z.nativeEnum(exports.ResidualRisk);
61
+ /** @internal */
62
+ exports.DataAgreements$inboundSchema = z.object({
63
+ total: z.number(),
64
+ complete: z.number(),
65
+ });
66
+ function dataAgreementsFromJSON(jsonString) {
67
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataAgreements$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataAgreements' from JSON`);
68
+ }
69
+ /** @internal */
70
+ exports.AuditVendor$inboundSchema = z.object({
71
+ id: z.string(),
72
+ name: z.string(),
73
+ inherentRisk: auditvendorrisklevel_js_1.AuditVendorRiskLevel$inboundSchema.optional(),
74
+ status: auditvendorstatus_js_1.AuditVendorStatus$inboundSchema.optional(),
75
+ findings: z.number().optional(),
76
+ lastReviewedCompleted: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
77
+ nextSecurityReviewDueDate: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
78
+ vendorCategory: z.nullable(z.string()).optional(),
79
+ residualRisk: z.nullable(exports.ResidualRisk$inboundSchema).optional(),
80
+ dataAgreements: z.nullable(z.lazy(() => exports.DataAgreements$inboundSchema))
81
+ .optional(),
82
+ });
83
+ function auditVendorFromJSON(jsonString) {
84
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AuditVendor$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AuditVendor' from JSON`);
85
+ }
86
+ //# sourceMappingURL=auditvendor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auditvendor.js","sourceRoot":"","sources":["../../src/models/components/auditvendor.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkHH,wDAQC;AAyBD,kDAQC;AAzJD,0CAA4B;AAC5B,qDAAiD;AAIjD,uEAGmC;AACnC,iEAGgC;AAEhC;;;;;GAKG;AACU,QAAA,YAAY,GAAG;IAC1B,QAAQ,EAAE,UAAU;IACpB,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;IAChB,GAAG,EAAE,KAAK;IACV,QAAQ,EAAE,UAAU;CACZ,CAAC;AAwEX,gBAAgB;AACH,QAAA,0BAA0B,GACrC,CAAC,CAAC,UAAU,CAAC,oBAAY,CAAC,CAAC;AAE7B,gBAAgB;AACH,QAAA,4BAA4B,GAIrC,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;CACrB,CAAC,CAAC;AAEH,SAAgB,sBAAsB,CACpC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,oCAA4B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACxD,4CAA4C,CAC7C,CAAC;AACJ,CAAC;AAED,gBAAgB;AACH,QAAA,yBAAyB,GAIlC,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,YAAY,EAAE,4DAAkC,CAAC,QAAQ,EAAE;IAC3D,MAAM,EAAE,sDAA+B,CAAC,QAAQ,EAAE;IAClD,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,qBAAqB,EAAE,CAAC,CAAC,QAAQ,CAC/B,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,CAClE,CAAC,QAAQ,EAAE;IACZ,yBAAyB,EAAE,CAAC,CAAC,QAAQ,CACnC,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,CAClE,CAAC,QAAQ,EAAE;IACZ,cAAc,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACjD,YAAY,EAAE,CAAC,CAAC,QAAQ,CAAC,kCAA0B,CAAC,CAAC,QAAQ,EAAE;IAC/D,cAAc,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,oCAA4B,CAAC,CAAC;SACnE,QAAQ,EAAE;CACd,CAAC,CAAC;AAEH,SAAgB,mBAAmB,CACjC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,iCAAyB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACrD,yCAAyC,CAC1C,CAAC;AACJ,CAAC"}
@@ -0,0 +1,15 @@
1
+ import * as z from "zod/v3";
2
+ import { ClosedEnum } from "../../types/enums.js";
3
+ export declare const AuditVendorRiskLevel: {
4
+ readonly Critical: "CRITICAL";
5
+ readonly High: "HIGH";
6
+ readonly Medium: "MEDIUM";
7
+ readonly Low: "LOW";
8
+ readonly Unscored: "UNSCORED";
9
+ };
10
+ export type AuditVendorRiskLevel = ClosedEnum<typeof AuditVendorRiskLevel>;
11
+ /** @internal */
12
+ export declare const AuditVendorRiskLevel$inboundSchema: z.ZodNativeEnum<typeof AuditVendorRiskLevel>;
13
+ /** @internal */
14
+ export declare const AuditVendorRiskLevel$outboundSchema: z.ZodNativeEnum<typeof AuditVendorRiskLevel>;
15
+ //# sourceMappingURL=auditvendorrisklevel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auditvendorrisklevel.d.ts","sourceRoot":"","sources":["../../src/models/components/auditvendorrisklevel.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,eAAO,MAAM,oBAAoB;;;;;;CAMvB,CAAC;AACX,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAE3E,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,aAAa,CAC9D,OAAO,oBAAoB,CACS,CAAC;AACvC,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,aAAa,CAC/D,OAAO,oBAAoB,CACS,CAAC"}
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.AuditVendorRiskLevel$outboundSchema = exports.AuditVendorRiskLevel$inboundSchema = exports.AuditVendorRiskLevel = void 0;
40
+ const z = __importStar(require("zod/v3"));
41
+ exports.AuditVendorRiskLevel = {
42
+ Critical: "CRITICAL",
43
+ High: "HIGH",
44
+ Medium: "MEDIUM",
45
+ Low: "LOW",
46
+ Unscored: "UNSCORED",
47
+ };
48
+ /** @internal */
49
+ exports.AuditVendorRiskLevel$inboundSchema = z.nativeEnum(exports.AuditVendorRiskLevel);
50
+ /** @internal */
51
+ exports.AuditVendorRiskLevel$outboundSchema = exports.AuditVendorRiskLevel$inboundSchema;
52
+ //# sourceMappingURL=auditvendorrisklevel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auditvendorrisklevel.js","sourceRoot":"","sources":["../../src/models/components/auditvendorrisklevel.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,0CAA4B;AAGf,QAAA,oBAAoB,GAAG;IAClC,QAAQ,EAAE,UAAU;IACpB,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;IAChB,GAAG,EAAE,KAAK;IACV,QAAQ,EAAE,UAAU;CACZ,CAAC;AAGX,gBAAgB;AACH,QAAA,kCAAkC,GAE3C,CAAC,CAAC,UAAU,CAAC,4BAAoB,CAAC,CAAC;AACvC,gBAAgB;AACH,QAAA,mCAAmC,GAE5C,0CAAkC,CAAC"}
@@ -0,0 +1,13 @@
1
+ import * as z from "zod/v3";
2
+ import { ClosedEnum } from "../../types/enums.js";
3
+ export declare const AuditVendorStatus: {
4
+ readonly Active: "ACTIVE";
5
+ readonly Archived: "ARCHIVED";
6
+ readonly InProcurement: "IN_PROCUREMENT";
7
+ };
8
+ export type AuditVendorStatus = ClosedEnum<typeof AuditVendorStatus>;
9
+ /** @internal */
10
+ export declare const AuditVendorStatus$inboundSchema: z.ZodNativeEnum<typeof AuditVendorStatus>;
11
+ /** @internal */
12
+ export declare const AuditVendorStatus$outboundSchema: z.ZodNativeEnum<typeof AuditVendorStatus>;
13
+ //# sourceMappingURL=auditvendorstatus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auditvendorstatus.d.ts","sourceRoot":"","sources":["../../src/models/components/auditvendorstatus.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,eAAO,MAAM,iBAAiB;;;;CAIpB,CAAC;AACX,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAErE,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,aAAa,CAC3D,OAAO,iBAAiB,CACS,CAAC;AACpC,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,aAAa,CAC5D,OAAO,iBAAiB,CACS,CAAC"}
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.AuditVendorStatus$outboundSchema = exports.AuditVendorStatus$inboundSchema = exports.AuditVendorStatus = void 0;
40
+ const z = __importStar(require("zod/v3"));
41
+ exports.AuditVendorStatus = {
42
+ Active: "ACTIVE",
43
+ Archived: "ARCHIVED",
44
+ InProcurement: "IN_PROCUREMENT",
45
+ };
46
+ /** @internal */
47
+ exports.AuditVendorStatus$inboundSchema = z.nativeEnum(exports.AuditVendorStatus);
48
+ /** @internal */
49
+ exports.AuditVendorStatus$outboundSchema = exports.AuditVendorStatus$inboundSchema;
50
+ //# sourceMappingURL=auditvendorstatus.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auditvendorstatus.js","sourceRoot":"","sources":["../../src/models/components/auditvendorstatus.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,0CAA4B;AAGf,QAAA,iBAAiB,GAAG;IAC/B,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;IACpB,aAAa,EAAE,gBAAgB;CACvB,CAAC;AAGX,gBAAgB;AACH,QAAA,+BAA+B,GAExC,CAAC,CAAC,UAAU,CAAC,yBAAiB,CAAC,CAAC;AACpC,gBAAgB;AACH,QAAA,gCAAgC,GAEzC,uCAA+B,CAAC"}
@@ -0,0 +1,50 @@
1
+ import * as z from "zod/v3";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
+ /**
5
+ * Code change data.
6
+ *
7
+ * @remarks
8
+ *
9
+ * `id` and `codeChange` are required. All other fields are optional to support customizable field visibility.
10
+ *
11
+ * Omitted keys mean the column is not in the response; `null` means the column is present but empty.
12
+ */
13
+ export type CodeChange = {
14
+ /**
15
+ * Code change record ID - always present.
16
+ */
17
+ id: string;
18
+ /**
19
+ * Code change title (e.g. PR title) - always present.
20
+ */
21
+ codeChange: string;
22
+ /**
23
+ * Code change identifier (e.g. PR number).
24
+ */
25
+ identifier?: string | undefined;
26
+ /**
27
+ * Version control source where the change originated.
28
+ *
29
+ * @remarks
30
+ * Known values are listed in {@link ApiCodeChangeSource}; other strings may
31
+ * appear if a new source is onboarded before this enum is updated.
32
+ */
33
+ service?: string | undefined;
34
+ /**
35
+ * Repository name.
36
+ */
37
+ repository?: string | undefined;
38
+ /**
39
+ * Date the code change was opened.
40
+ */
41
+ openedAt?: Date | undefined;
42
+ /**
43
+ * Date the code change was merged/closed.
44
+ */
45
+ closedAt?: Date | undefined;
46
+ };
47
+ /** @internal */
48
+ export declare const CodeChange$inboundSchema: z.ZodType<CodeChange, z.ZodTypeDef, unknown>;
49
+ export declare function codeChangeFromJSON(jsonString: string): SafeParseResult<CodeChange, SDKValidationError>;
50
+ //# sourceMappingURL=codechange.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"codechange.d.ts","sourceRoot":"","sources":["../../src/models/components/codechange.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;;;;;;;GAQG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC;;OAEG;IACH,QAAQ,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IAC5B;;OAEG;IACH,QAAQ,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,wBAAwB,EAAE,CAAC,CAAC,OAAO,CAC9C,UAAU,EACV,CAAC,CAAC,UAAU,EACZ,OAAO,CAWP,CAAC;AAEH,wBAAgB,kBAAkB,CAChC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,UAAU,EAAE,kBAAkB,CAAC,CAMjD"}
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.CodeChange$inboundSchema = void 0;
40
+ exports.codeChangeFromJSON = codeChangeFromJSON;
41
+ const z = __importStar(require("zod/v3"));
42
+ const schemas_js_1 = require("../../lib/schemas.js");
43
+ /** @internal */
44
+ exports.CodeChange$inboundSchema = z.object({
45
+ id: z.string(),
46
+ codeChange: z.string(),
47
+ identifier: z.string().optional(),
48
+ service: z.string().optional(),
49
+ repository: z.string().optional(),
50
+ openedAt: z.string().datetime({ offset: true }).transform(v => new Date(v))
51
+ .optional(),
52
+ closedAt: z.string().datetime({ offset: true }).transform(v => new Date(v))
53
+ .optional(),
54
+ });
55
+ function codeChangeFromJSON(jsonString) {
56
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CodeChange$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CodeChange' from JSON`);
57
+ }
58
+ //# sourceMappingURL=codechange.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"codechange.js","sourceRoot":"","sources":["../../src/models/components/codechange.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoEH,gDAQC;AA1ED,0CAA4B;AAC5B,qDAAiD;AAgDjD,gBAAgB;AACH,QAAA,wBAAwB,GAIjC,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;SACxE,QAAQ,EAAE;IACb,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;SACxE,QAAQ,EAAE;CACd,CAAC,CAAC;AAEH,SAAgB,kBAAkB,CAChC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,gCAAwB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACpD,wCAAwC,CACzC,CAAC;AACJ,CAAC"}
@@ -0,0 +1,13 @@
1
+ import * as z from "zod/v3";
2
+ import { ClosedEnum } from "../../types/enums.js";
3
+ export declare const GroupOrderBy: {
4
+ readonly Name: "name";
5
+ readonly Members: "members";
6
+ readonly Source: "source";
7
+ readonly TasksLastUpdated: "tasksLastUpdated";
8
+ readonly PointOfContact: "pointOfContact";
9
+ };
10
+ export type GroupOrderBy = ClosedEnum<typeof GroupOrderBy>;
11
+ /** @internal */
12
+ export declare const GroupOrderBy$outboundSchema: z.ZodNativeEnum<typeof GroupOrderBy>;
13
+ //# sourceMappingURL=grouporderby.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"grouporderby.d.ts","sourceRoot":"","sources":["../../src/models/components/grouporderby.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,eAAO,MAAM,YAAY;;;;;;CAMf,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AAE3D,gBAAgB;AAChB,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,YAAY,CACjD,CAAC"}
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.GroupOrderBy$outboundSchema = exports.GroupOrderBy = void 0;
40
+ const z = __importStar(require("zod/v3"));
41
+ exports.GroupOrderBy = {
42
+ Name: "name",
43
+ Members: "members",
44
+ Source: "source",
45
+ TasksLastUpdated: "tasksLastUpdated",
46
+ PointOfContact: "pointOfContact",
47
+ };
48
+ /** @internal */
49
+ exports.GroupOrderBy$outboundSchema = z.nativeEnum(exports.GroupOrderBy);
50
+ //# sourceMappingURL=grouporderby.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"grouporderby.js","sourceRoot":"","sources":["../../src/models/components/grouporderby.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,0CAA4B;AAGf,QAAA,YAAY,GAAG;IAC1B,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,gBAAgB,EAAE,kBAAkB;IACpC,cAAc,EAAE,gBAAgB;CACxB,CAAC;AAGX,gBAAgB;AACH,QAAA,2BAA2B,GACtC,CAAC,CAAC,UAAU,CAAC,oBAAY,CAAC,CAAC"}