@trycompai/mcp-server 0.1.0 → 0.2.0

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 (226) hide show
  1. package/README.md +2 -2
  2. package/bin/mcp-server.js +3550 -2509
  3. package/bin/mcp-server.js.map +43 -21
  4. package/esm/funcs/cloudSecurityCloudSecurityControllerResolveSessionV1.d.ts +16 -0
  5. package/esm/funcs/cloudSecurityCloudSecurityControllerResolveSessionV1.d.ts.map +1 -0
  6. package/esm/funcs/cloudSecurityCloudSecurityControllerResolveSessionV1.js +87 -0
  7. package/esm/funcs/cloudSecurityCloudSecurityControllerResolveSessionV1.js.map +1 -0
  8. package/esm/funcs/evidenceExportAuditorAuditorEvidenceExportControllerExportAllEvidenceV1.d.ts +2 -2
  9. package/esm/funcs/evidenceExportAuditorAuditorEvidenceExportControllerExportAllEvidenceV1.js +3 -3
  10. package/esm/funcs/evidenceExportAuditorAuditorEvidenceExportControllerExportAllEvidenceV1.js.map +1 -1
  11. package/esm/funcs/securityPenetrationTestsPentestFindingContextsControllerListV1.d.ts +18 -0
  12. package/esm/funcs/securityPenetrationTestsPentestFindingContextsControllerListV1.d.ts.map +1 -0
  13. package/esm/funcs/securityPenetrationTestsPentestFindingContextsControllerListV1.js +88 -0
  14. package/esm/funcs/securityPenetrationTestsPentestFindingContextsControllerListV1.js.map +1 -0
  15. package/esm/funcs/securityPenetrationTestsPentestFindingContextsControllerRemoveV1.d.ts +18 -0
  16. package/esm/funcs/securityPenetrationTestsPentestFindingContextsControllerRemoveV1.d.ts.map +1 -0
  17. package/esm/funcs/securityPenetrationTestsPentestFindingContextsControllerRemoveV1.js +90 -0
  18. package/esm/funcs/securityPenetrationTestsPentestFindingContextsControllerRemoveV1.js.map +1 -0
  19. package/esm/funcs/securityPenetrationTestsPentestFindingContextsControllerUpsertV1.d.ts +18 -0
  20. package/esm/funcs/securityPenetrationTestsPentestFindingContextsControllerUpsertV1.d.ts.map +1 -0
  21. package/esm/funcs/securityPenetrationTestsPentestFindingContextsControllerUpsertV1.js +91 -0
  22. package/esm/funcs/securityPenetrationTestsPentestFindingContextsControllerUpsertV1.js.map +1 -0
  23. package/esm/funcs/taskAutomationsAutomationsControllerCreateVersionV1.js +3 -2
  24. package/esm/funcs/taskAutomationsAutomationsControllerCreateVersionV1.js.map +1 -1
  25. package/esm/funcs/trustAccessTrustAccessControllerGetPublicCustomFrameworksV1.d.ts +16 -0
  26. package/esm/funcs/trustAccessTrustAccessControllerGetPublicCustomFrameworksV1.d.ts.map +1 -0
  27. package/esm/funcs/trustAccessTrustAccessControllerGetPublicCustomFrameworksV1.js +87 -0
  28. package/esm/funcs/trustAccessTrustAccessControllerGetPublicCustomFrameworksV1.js.map +1 -0
  29. package/esm/funcs/trustPortalTrustPortalControllerListCustomFrameworksV1.d.ts +17 -0
  30. package/esm/funcs/trustPortalTrustPortalControllerListCustomFrameworksV1.d.ts.map +1 -0
  31. package/esm/funcs/trustPortalTrustPortalControllerListCustomFrameworksV1.js +73 -0
  32. package/esm/funcs/trustPortalTrustPortalControllerListCustomFrameworksV1.js.map +1 -0
  33. package/esm/funcs/trustPortalTrustPortalControllerUpdateAllowedEmailsV1.d.ts +18 -0
  34. package/esm/funcs/trustPortalTrustPortalControllerUpdateAllowedEmailsV1.d.ts.map +1 -0
  35. package/esm/funcs/trustPortalTrustPortalControllerUpdateAllowedEmailsV1.js +84 -0
  36. package/esm/funcs/trustPortalTrustPortalControllerUpdateAllowedEmailsV1.js.map +1 -0
  37. package/esm/funcs/trustPortalTrustPortalControllerUpdateCustomFrameworkV1.d.ts +18 -0
  38. package/esm/funcs/trustPortalTrustPortalControllerUpdateCustomFrameworkV1.d.ts.map +1 -0
  39. package/esm/funcs/trustPortalTrustPortalControllerUpdateCustomFrameworkV1.js +84 -0
  40. package/esm/funcs/trustPortalTrustPortalControllerUpdateCustomFrameworkV1.js.map +1 -0
  41. package/esm/landing-page.js +1 -1
  42. package/esm/lib/config.d.ts +3 -3
  43. package/esm/lib/config.js +3 -3
  44. package/esm/lib/encodings.js +1 -1
  45. package/esm/lib/encodings.js.map +1 -1
  46. package/esm/lib/env.d.ts.map +1 -1
  47. package/esm/lib/env.js +2 -2
  48. package/esm/lib/env.js.map +1 -1
  49. package/esm/lib/primitives.d.ts +1 -0
  50. package/esm/lib/primitives.d.ts.map +1 -1
  51. package/esm/lib/primitives.js +17 -0
  52. package/esm/lib/primitives.js.map +1 -1
  53. package/esm/mcp-server/mcp-server.js +1 -1
  54. package/esm/mcp-server/server.d.ts.map +1 -1
  55. package/esm/mcp-server/server.js +17 -1
  56. package/esm/mcp-server/server.js.map +1 -1
  57. package/esm/mcp-server/tools/cloudSecurityCloudSecurityControllerResolveSessionV1.d.ts +7 -0
  58. package/esm/mcp-server/tools/cloudSecurityCloudSecurityControllerResolveSessionV1.d.ts.map +1 -0
  59. package/esm/mcp-server/tools/cloudSecurityCloudSecurityControllerResolveSessionV1.js +34 -0
  60. package/esm/mcp-server/tools/cloudSecurityCloudSecurityControllerResolveSessionV1.js.map +1 -0
  61. package/esm/mcp-server/tools/evidenceExportAuditorAuditorEvidenceExportControllerExportAllEvidenceV1.js +2 -2
  62. package/esm/mcp-server/tools/evidenceExportAuditorAuditorEvidenceExportControllerExportAllEvidenceV1.js.map +1 -1
  63. package/esm/mcp-server/tools/securityPenetrationTestsPentestFindingContextsControllerListV1.d.ts +7 -0
  64. package/esm/mcp-server/tools/securityPenetrationTestsPentestFindingContextsControllerListV1.d.ts.map +1 -0
  65. package/esm/mcp-server/tools/securityPenetrationTestsPentestFindingContextsControllerListV1.js +34 -0
  66. package/esm/mcp-server/tools/securityPenetrationTestsPentestFindingContextsControllerListV1.js.map +1 -0
  67. package/esm/mcp-server/tools/securityPenetrationTestsPentestFindingContextsControllerRemoveV1.d.ts +7 -0
  68. package/esm/mcp-server/tools/securityPenetrationTestsPentestFindingContextsControllerRemoveV1.d.ts.map +1 -0
  69. package/esm/mcp-server/tools/securityPenetrationTestsPentestFindingContextsControllerRemoveV1.js +34 -0
  70. package/esm/mcp-server/tools/securityPenetrationTestsPentestFindingContextsControllerRemoveV1.js.map +1 -0
  71. package/esm/mcp-server/tools/securityPenetrationTestsPentestFindingContextsControllerUpsertV1.d.ts +7 -0
  72. package/esm/mcp-server/tools/securityPenetrationTestsPentestFindingContextsControllerUpsertV1.d.ts.map +1 -0
  73. package/esm/mcp-server/tools/securityPenetrationTestsPentestFindingContextsControllerUpsertV1.js +34 -0
  74. package/esm/mcp-server/tools/securityPenetrationTestsPentestFindingContextsControllerUpsertV1.js.map +1 -0
  75. package/esm/mcp-server/tools/trustAccessTrustAccessControllerGetPublicCustomFrameworksV1.d.ts +7 -0
  76. package/esm/mcp-server/tools/trustAccessTrustAccessControllerGetPublicCustomFrameworksV1.d.ts.map +1 -0
  77. package/esm/mcp-server/tools/trustAccessTrustAccessControllerGetPublicCustomFrameworksV1.js +34 -0
  78. package/esm/mcp-server/tools/trustAccessTrustAccessControllerGetPublicCustomFrameworksV1.js.map +1 -0
  79. package/esm/mcp-server/tools/trustPortalTrustPortalControllerListCustomFrameworksV1.d.ts +3 -0
  80. package/esm/mcp-server/tools/trustPortalTrustPortalControllerListCustomFrameworksV1.d.ts.map +1 -0
  81. package/esm/mcp-server/tools/trustPortalTrustPortalControllerListCustomFrameworksV1.js +29 -0
  82. package/esm/mcp-server/tools/trustPortalTrustPortalControllerListCustomFrameworksV1.js.map +1 -0
  83. package/esm/mcp-server/tools/trustPortalTrustPortalControllerUpdateAllowedEmailsV1.d.ts +7 -0
  84. package/esm/mcp-server/tools/trustPortalTrustPortalControllerUpdateAllowedEmailsV1.d.ts.map +1 -0
  85. package/esm/mcp-server/tools/trustPortalTrustPortalControllerUpdateAllowedEmailsV1.js +34 -0
  86. package/esm/mcp-server/tools/trustPortalTrustPortalControllerUpdateAllowedEmailsV1.js.map +1 -0
  87. package/esm/mcp-server/tools/trustPortalTrustPortalControllerUpdateCustomFrameworkV1.d.ts +7 -0
  88. package/esm/mcp-server/tools/trustPortalTrustPortalControllerUpdateCustomFrameworkV1.d.ts.map +1 -0
  89. package/esm/mcp-server/tools/trustPortalTrustPortalControllerUpdateCustomFrameworkV1.js +35 -0
  90. package/esm/mcp-server/tools/trustPortalTrustPortalControllerUpdateCustomFrameworkV1.js.map +1 -0
  91. package/esm/models/automationscontrollercreateversionv1op.d.ts +2 -0
  92. package/esm/models/automationscontrollercreateversionv1op.d.ts.map +1 -1
  93. package/esm/models/automationscontrollercreateversionv1op.js +2 -0
  94. package/esm/models/automationscontrollercreateversionv1op.js.map +1 -1
  95. package/esm/models/cloudsecuritycontrollerresolvesessionv1op.d.ts +6 -0
  96. package/esm/models/cloudsecuritycontrollerresolvesessionv1op.d.ts.map +1 -0
  97. package/esm/models/cloudsecuritycontrollerresolvesessionv1op.js +8 -0
  98. package/esm/models/cloudsecuritycontrollerresolvesessionv1op.js.map +1 -0
  99. package/esm/models/complianceresourceresponsedto.d.ts +13 -1
  100. package/esm/models/complianceresourceresponsedto.d.ts.map +1 -1
  101. package/esm/models/complianceresourceresponsedto.js +10 -2
  102. package/esm/models/complianceresourceresponsedto.js.map +1 -1
  103. package/esm/models/complianceresourcesignedurldto.d.ts +4 -3
  104. package/esm/models/complianceresourcesignedurldto.d.ts.map +1 -1
  105. package/esm/models/complianceresourcesignedurldto.js +5 -3
  106. package/esm/models/complianceresourcesignedurldto.js.map +1 -1
  107. package/esm/models/controlscontrollerunlinkdocumenttypev1op.d.ts +3 -1
  108. package/esm/models/controlscontrollerunlinkdocumenttypev1op.d.ts.map +1 -1
  109. package/esm/models/controlscontrollerunlinkdocumenttypev1op.js +2 -0
  110. package/esm/models/controlscontrollerunlinkdocumenttypev1op.js.map +1 -1
  111. package/esm/models/createcontroldto.d.ts +2 -0
  112. package/esm/models/createcontroldto.d.ts.map +1 -1
  113. package/esm/models/createcontroldto.js +2 -0
  114. package/esm/models/createcontroldto.js.map +1 -1
  115. package/esm/models/createfindingdto.d.ts +2 -0
  116. package/esm/models/createfindingdto.d.ts.map +1 -1
  117. package/esm/models/createfindingdto.js +2 -0
  118. package/esm/models/createfindingdto.js.map +1 -1
  119. package/esm/models/createpenetrationtestdto.d.ts +1 -0
  120. package/esm/models/createpenetrationtestdto.d.ts.map +1 -1
  121. package/esm/models/createpenetrationtestdto.js +1 -0
  122. package/esm/models/createpenetrationtestdto.js.map +1 -1
  123. package/esm/models/createversiondto.d.ts +2 -1
  124. package/esm/models/createversiondto.d.ts.map +1 -1
  125. package/esm/models/createversiondto.js +3 -2
  126. package/esm/models/createversiondto.js.map +1 -1
  127. package/esm/models/findingscontrollerlistfindingsv1op.d.ts +2 -0
  128. package/esm/models/findingscontrollerlistfindingsv1op.d.ts.map +1 -1
  129. package/esm/models/findingscontrollerlistfindingsv1op.js +2 -0
  130. package/esm/models/findingscontrollerlistfindingsv1op.js.map +1 -1
  131. package/esm/models/linkdocumenttypesdto.d.ts +2 -0
  132. package/esm/models/linkdocumenttypesdto.d.ts.map +1 -1
  133. package/esm/models/linkdocumenttypesdto.js +2 -0
  134. package/esm/models/linkdocumenttypesdto.js.map +1 -1
  135. package/esm/models/pentestfindingcontextscontrollerlistv1op.d.ts +7 -0
  136. package/esm/models/pentestfindingcontextscontrollerlistv1op.d.ts.map +1 -0
  137. package/esm/models/pentestfindingcontextscontrollerlistv1op.js +9 -0
  138. package/esm/models/pentestfindingcontextscontrollerlistv1op.js.map +1 -0
  139. package/esm/models/pentestfindingcontextscontrollerremovev1op.d.ts +7 -0
  140. package/esm/models/pentestfindingcontextscontrollerremovev1op.d.ts.map +1 -0
  141. package/esm/models/pentestfindingcontextscontrollerremovev1op.js +9 -0
  142. package/esm/models/pentestfindingcontextscontrollerremovev1op.js.map +1 -0
  143. package/esm/models/pentestfindingcontextscontrollerupsertv1op.d.ts +9 -0
  144. package/esm/models/pentestfindingcontextscontrollerupsertv1op.d.ts.map +1 -0
  145. package/esm/models/pentestfindingcontextscontrollerupsertv1op.js +11 -0
  146. package/esm/models/pentestfindingcontextscontrollerupsertv1op.js.map +1 -0
  147. package/esm/models/trustaccesscontrollergetpubliccustomframeworksv1op.d.ts +6 -0
  148. package/esm/models/trustaccesscontrollergetpubliccustomframeworksv1op.d.ts.map +1 -0
  149. package/esm/models/trustaccesscontrollergetpubliccustomframeworksv1op.js +8 -0
  150. package/esm/models/trustaccesscontrollergetpubliccustomframeworksv1op.js.map +1 -0
  151. package/esm/models/trustportalcontrollerupdatecustomframeworkv1op.d.ts +42 -0
  152. package/esm/models/trustportalcontrollerupdatecustomframeworkv1op.d.ts.map +1 -0
  153. package/esm/models/trustportalcontrollerupdatecustomframeworkv1op.js +44 -0
  154. package/esm/models/trustportalcontrollerupdatecustomframeworkv1op.js.map +1 -0
  155. package/esm/models/updateallowedemailsdto.d.ts +6 -0
  156. package/esm/models/updateallowedemailsdto.d.ts.map +1 -0
  157. package/esm/models/updateallowedemailsdto.js +8 -0
  158. package/esm/models/updateallowedemailsdto.js.map +1 -0
  159. package/esm/models/uploadcomplianceresourcedto.d.ts +4 -3
  160. package/esm/models/uploadcomplianceresourcedto.d.ts.map +1 -1
  161. package/esm/models/uploadcomplianceresourcedto.js +4 -3
  162. package/esm/models/uploadcomplianceresourcedto.js.map +1 -1
  163. package/esm/models/upsertfindingcontextdto.d.ts +7 -0
  164. package/esm/models/upsertfindingcontextdto.d.ts.map +1 -0
  165. package/esm/models/upsertfindingcontextdto.js +9 -0
  166. package/esm/models/upsertfindingcontextdto.js.map +1 -0
  167. package/esm/tool-names.d.ts.map +1 -1
  168. package/esm/tool-names.js +33 -1
  169. package/esm/tool-names.js.map +1 -1
  170. package/package.json +1 -1
  171. package/src/funcs/cloudSecurityCloudSecurityControllerResolveSessionV1.ts +153 -0
  172. package/src/funcs/evidenceExportAuditorAuditorEvidenceExportControllerExportAllEvidenceV1.ts +3 -3
  173. package/src/funcs/securityPenetrationTestsPentestFindingContextsControllerListV1.ts +155 -0
  174. package/src/funcs/securityPenetrationTestsPentestFindingContextsControllerRemoveV1.ts +160 -0
  175. package/src/funcs/securityPenetrationTestsPentestFindingContextsControllerUpsertV1.ts +161 -0
  176. package/src/funcs/taskAutomationsAutomationsControllerCreateVersionV1.ts +3 -2
  177. package/src/funcs/trustAccessTrustAccessControllerGetPublicCustomFrameworksV1.ts +155 -0
  178. package/src/funcs/trustPortalTrustPortalControllerListCustomFrameworksV1.ts +125 -0
  179. package/src/funcs/trustPortalTrustPortalControllerUpdateAllowedEmailsV1.ts +146 -0
  180. package/src/funcs/trustPortalTrustPortalControllerUpdateCustomFrameworkV1.ts +149 -0
  181. package/src/landing-page.ts +1 -1
  182. package/src/lib/config.ts +3 -3
  183. package/src/lib/encodings.ts +1 -1
  184. package/src/lib/env.ts +6 -3
  185. package/src/lib/primitives.ts +16 -0
  186. package/src/mcp-server/mcp-server.ts +1 -1
  187. package/src/mcp-server/server.ts +17 -1
  188. package/src/mcp-server/tools/cloudSecurityCloudSecurityControllerResolveSessionV1.ts +45 -0
  189. package/src/mcp-server/tools/evidenceExportAuditorAuditorEvidenceExportControllerExportAllEvidenceV1.ts +2 -2
  190. package/src/mcp-server/tools/securityPenetrationTestsPentestFindingContextsControllerListV1.ts +44 -0
  191. package/src/mcp-server/tools/securityPenetrationTestsPentestFindingContextsControllerRemoveV1.ts +44 -0
  192. package/src/mcp-server/tools/securityPenetrationTestsPentestFindingContextsControllerUpsertV1.ts +44 -0
  193. package/src/mcp-server/tools/trustAccessTrustAccessControllerGetPublicCustomFrameworksV1.ts +44 -0
  194. package/src/mcp-server/tools/trustPortalTrustPortalControllerListCustomFrameworksV1.ts +38 -0
  195. package/src/mcp-server/tools/trustPortalTrustPortalControllerUpdateAllowedEmailsV1.ts +44 -0
  196. package/src/mcp-server/tools/trustPortalTrustPortalControllerUpdateCustomFrameworkV1.ts +46 -0
  197. package/src/models/automationscontrollercreateversionv1op.ts +6 -0
  198. package/src/models/cloudsecuritycontrollerresolvesessionv1op.ts +14 -0
  199. package/src/models/complianceresourceresponsedto.ts +23 -3
  200. package/src/models/complianceresourcesignedurldto.ts +9 -6
  201. package/src/models/controlscontrollerunlinkdocumenttypev1op.ts +3 -1
  202. package/src/models/createcontroldto.ts +2 -0
  203. package/src/models/createfindingdto.ts +2 -0
  204. package/src/models/createpenetrationtestdto.ts +4 -0
  205. package/src/models/createversiondto.ts +6 -4
  206. package/src/models/findingscontrollerlistfindingsv1op.ts +2 -0
  207. package/src/models/linkdocumenttypesdto.ts +2 -0
  208. package/src/models/pentestfindingcontextscontrollerlistv1op.ts +19 -0
  209. package/src/models/pentestfindingcontextscontrollerremovev1op.ts +18 -0
  210. package/src/models/pentestfindingcontextscontrollerupsertv1op.ts +24 -0
  211. package/src/models/trustaccesscontrollergetpubliccustomframeworksv1op.ts +18 -0
  212. package/src/models/trustportalcontrollerupdatecustomframeworkv1op.ts +84 -0
  213. package/src/models/updateallowedemailsdto.ts +15 -0
  214. package/src/models/uploadcomplianceresourcedto.ts +10 -6
  215. package/src/models/upsertfindingcontextdto.ts +16 -0
  216. package/src/tool-names.ts +33 -1
  217. package/esm/lib/dlv.d.ts +0 -14
  218. package/esm/lib/dlv.d.ts.map +0 -1
  219. package/esm/lib/dlv.js +0 -46
  220. package/esm/lib/dlv.js.map +0 -1
  221. package/esm/lib/is-plain-object.d.ts +0 -2
  222. package/esm/lib/is-plain-object.d.ts.map +0 -1
  223. package/esm/lib/is-plain-object.js +0 -38
  224. package/esm/lib/is-plain-object.js.map +0 -1
  225. package/src/lib/dlv.ts +0 -53
  226. package/src/lib/is-plain-object.ts +0 -43
@@ -7,11 +7,15 @@ import * as z from "zod";
7
7
  export type CreatePenetrationTestDto = {
8
8
  targetUrl: string;
9
9
  repoUrl?: string | undefined;
10
+ additionalContext?: string | undefined;
10
11
  };
11
12
 
12
13
  export const CreatePenetrationTestDto$zodSchema: z.ZodType<
13
14
  CreatePenetrationTestDto
14
15
  > = z.object({
16
+ additionalContext: z.string().optional().describe(
17
+ "Free-text context shared with the testing agent, e.g. remediation notes or accepted-by-design explanations from a previous run. Saved per-finding context notes for the same target are appended automatically. Max 4000 characters.",
18
+ ),
15
19
  repoUrl: z.string().optional().describe(
16
20
  "Repository URL containing the target application code",
17
21
  ),
@@ -5,17 +5,19 @@
5
5
  import * as z from "zod";
6
6
 
7
7
  export type CreateVersionDto = {
8
- sourceVersionId?: string | undefined;
8
+ version: number;
9
+ scriptKey: string;
9
10
  changelog?: string | undefined;
10
11
  };
11
12
 
12
13
  export const CreateVersionDto$zodSchema: z.ZodType<CreateVersionDto> = z.object(
13
14
  {
14
15
  changelog: z.string().optional().describe(
15
- "Optional changelog to associate with the new version",
16
+ "Optional changelog describing this version",
16
17
  ),
17
- sourceVersionId: z.string().optional().describe(
18
- "Optional version ID to base the new version on",
18
+ scriptKey: z.string().describe(
19
+ "S3 key of the already-generated & published automation script (returned by the publish step).",
19
20
  ),
21
+ version: z.number().describe("Version number for this published script"),
20
22
  },
21
23
  );
@@ -75,6 +75,7 @@ export const FindingsControllerListFindingsV1EvidenceFormType = {
75
75
  EmployeePerformanceEvaluation: "employee-performance-evaluation",
76
76
  NetworkDiagram: "network-diagram",
77
77
  TabletopExercise: "tabletop-exercise",
78
+ AccountTypes: "account-types",
78
79
  } as const;
79
80
  export type FindingsControllerListFindingsV1EvidenceFormType = ClosedEnum<
80
81
  typeof FindingsControllerListFindingsV1EvidenceFormType
@@ -94,6 +95,7 @@ export const FindingsControllerListFindingsV1EvidenceFormType$zodSchema = z
94
95
  "employee-performance-evaluation",
95
96
  "network-diagram",
96
97
  "tabletop-exercise",
98
+ "account-types",
97
99
  ]);
98
100
 
99
101
  export type FindingsControllerListFindingsV1Request = {
@@ -18,6 +18,7 @@ export const FormType = {
18
18
  EmployeePerformanceEvaluation: "employee_performance_evaluation",
19
19
  NetworkDiagram: "network_diagram",
20
20
  TabletopExercise: "tabletop_exercise",
21
+ AccountTypes: "account_types",
21
22
  } as const;
22
23
  export type FormType = ClosedEnum<typeof FormType>;
23
24
 
@@ -34,6 +35,7 @@ export const FormType$zodSchema = z.enum([
34
35
  "employee_performance_evaluation",
35
36
  "network_diagram",
36
37
  "tabletop_exercise",
38
+ "account_types",
37
39
  ]);
38
40
 
39
41
  export type LinkDocumentTypesDto = { formTypes: Array<FormType> };
@@ -0,0 +1,19 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+
7
+ export type PentestFindingContextsControllerListV1Request = {
8
+ xOrganizationId?: string | undefined;
9
+ targetUrl: string;
10
+ };
11
+
12
+ export const PentestFindingContextsControllerListV1Request$zodSchema: z.ZodType<
13
+ PentestFindingContextsControllerListV1Request
14
+ > = z.object({
15
+ targetUrl: z.string().describe("Target URL the notes are attached to"),
16
+ xOrganizationId: z.string().describe(
17
+ "Organization ID (required for session auth, optional for API key auth)",
18
+ ).optional(),
19
+ });
@@ -0,0 +1,18 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+
7
+ export type PentestFindingContextsControllerRemoveV1Request = {
8
+ xOrganizationId?: string | undefined;
9
+ issueId: string;
10
+ };
11
+
12
+ export const PentestFindingContextsControllerRemoveV1Request$zodSchema:
13
+ z.ZodType<PentestFindingContextsControllerRemoveV1Request> = z.object({
14
+ issueId: z.string(),
15
+ xOrganizationId: z.string().describe(
16
+ "Organization ID (required for session auth, optional for API key auth)",
17
+ ).optional(),
18
+ });
@@ -0,0 +1,24 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import {
7
+ UpsertFindingContextDto,
8
+ UpsertFindingContextDto$zodSchema,
9
+ } from "./upsertfindingcontextdto.js";
10
+
11
+ export type PentestFindingContextsControllerUpsertV1Request = {
12
+ xOrganizationId?: string | undefined;
13
+ issueId: string;
14
+ body: UpsertFindingContextDto;
15
+ };
16
+
17
+ export const PentestFindingContextsControllerUpsertV1Request$zodSchema:
18
+ z.ZodType<PentestFindingContextsControllerUpsertV1Request> = z.object({
19
+ body: UpsertFindingContextDto$zodSchema,
20
+ issueId: z.string(),
21
+ xOrganizationId: z.string().describe(
22
+ "Organization ID (required for session auth, optional for API key auth)",
23
+ ).optional(),
24
+ });
@@ -0,0 +1,18 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+
7
+ export type TrustAccessControllerGetPublicCustomFrameworksV1Request = {
8
+ friendlyUrl: string;
9
+ };
10
+
11
+ export const TrustAccessControllerGetPublicCustomFrameworksV1Request$zodSchema:
12
+ z.ZodType<TrustAccessControllerGetPublicCustomFrameworksV1Request> = z.object(
13
+ {
14
+ friendlyUrl: z.string().describe(
15
+ "Trust Portal friendly URL or Organization ID",
16
+ ),
17
+ },
18
+ );
@@ -0,0 +1,84 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { ClosedEnum } from "../types/enums.js";
7
+
8
+ export const TrustPortalControllerUpdateCustomFrameworkV1Status2 = {
9
+ Started: "started",
10
+ InProgress: "in_progress",
11
+ Compliant: "compliant",
12
+ } as const;
13
+ export type TrustPortalControllerUpdateCustomFrameworkV1Status2 = ClosedEnum<
14
+ typeof TrustPortalControllerUpdateCustomFrameworkV1Status2
15
+ >;
16
+
17
+ export const TrustPortalControllerUpdateCustomFrameworkV1Status2$zodSchema = z
18
+ .enum([
19
+ "started",
20
+ "in_progress",
21
+ "compliant",
22
+ ]);
23
+
24
+ export type TrustPortalControllerUpdateCustomFrameworkV1RequestBody2 = {
25
+ customFrameworkId: string;
26
+ enabled?: boolean | undefined;
27
+ status: TrustPortalControllerUpdateCustomFrameworkV1Status2;
28
+ };
29
+
30
+ export const TrustPortalControllerUpdateCustomFrameworkV1RequestBody2$zodSchema:
31
+ z.ZodType<TrustPortalControllerUpdateCustomFrameworkV1RequestBody2> = z
32
+ .object({
33
+ customFrameworkId: z.string(),
34
+ enabled: z.boolean().optional(),
35
+ status: TrustPortalControllerUpdateCustomFrameworkV1Status2$zodSchema,
36
+ });
37
+
38
+ export const TrustPortalControllerUpdateCustomFrameworkV1Status1 = {
39
+ Started: "started",
40
+ InProgress: "in_progress",
41
+ Compliant: "compliant",
42
+ } as const;
43
+ export type TrustPortalControllerUpdateCustomFrameworkV1Status1 = ClosedEnum<
44
+ typeof TrustPortalControllerUpdateCustomFrameworkV1Status1
45
+ >;
46
+
47
+ export const TrustPortalControllerUpdateCustomFrameworkV1Status1$zodSchema = z
48
+ .enum([
49
+ "started",
50
+ "in_progress",
51
+ "compliant",
52
+ ]);
53
+
54
+ export type TrustPortalControllerUpdateCustomFrameworkV1RequestBody1 = {
55
+ customFrameworkId: string;
56
+ enabled: boolean;
57
+ status?: TrustPortalControllerUpdateCustomFrameworkV1Status1 | undefined;
58
+ };
59
+
60
+ export const TrustPortalControllerUpdateCustomFrameworkV1RequestBody1$zodSchema:
61
+ z.ZodType<TrustPortalControllerUpdateCustomFrameworkV1RequestBody1> = z
62
+ .object({
63
+ customFrameworkId: z.string(),
64
+ enabled: z.boolean(),
65
+ status: TrustPortalControllerUpdateCustomFrameworkV1Status1$zodSchema
66
+ .optional(),
67
+ });
68
+
69
+ /**
70
+ * At least one of `enabled` or `status` must be provided.
71
+ */
72
+ export type TrustPortalControllerUpdateCustomFrameworkV1Request =
73
+ | TrustPortalControllerUpdateCustomFrameworkV1RequestBody1
74
+ | TrustPortalControllerUpdateCustomFrameworkV1RequestBody2;
75
+
76
+ export const TrustPortalControllerUpdateCustomFrameworkV1Request$zodSchema:
77
+ z.ZodType<TrustPortalControllerUpdateCustomFrameworkV1Request> = z.union([
78
+ z.lazy(() =>
79
+ TrustPortalControllerUpdateCustomFrameworkV1RequestBody1$zodSchema
80
+ ),
81
+ z.lazy(() =>
82
+ TrustPortalControllerUpdateCustomFrameworkV1RequestBody2$zodSchema
83
+ ),
84
+ ]).describe("At least one of `enabled` or `status` must be provided.");
@@ -0,0 +1,15 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+
7
+ export type UpdateAllowedEmailsDto = { emails: Array<string> };
8
+
9
+ export const UpdateAllowedEmailsDto$zodSchema: z.ZodType<
10
+ UpdateAllowedEmailsDto
11
+ > = z.object({
12
+ emails: z.array(z.string()).describe(
13
+ "Email addresses that bypass NDA signing for trust portal access. Replaces the full list; send an empty array to clear it.",
14
+ ),
15
+ });
@@ -6,7 +6,7 @@ import * as z from "zod";
6
6
  import { ClosedEnum } from "../types/enums.js";
7
7
 
8
8
  /**
9
- * Compliance framework identifier
9
+ * Native compliance framework identifier
10
10
  */
11
11
  export const UploadComplianceResourceDtoFramework = {
12
12
  Iso27001: "iso_27001",
@@ -23,7 +23,7 @@ export const UploadComplianceResourceDtoFramework = {
23
23
  Ccpa: "ccpa",
24
24
  } as const;
25
25
  /**
26
- * Compliance framework identifier
26
+ * Native compliance framework identifier
27
27
  */
28
28
  export type UploadComplianceResourceDtoFramework = ClosedEnum<
29
29
  typeof UploadComplianceResourceDtoFramework
@@ -42,11 +42,12 @@ export const UploadComplianceResourceDtoFramework$zodSchema = z.enum([
42
42
  "iso_9001",
43
43
  "pipeda",
44
44
  "ccpa",
45
- ]).describe("Compliance framework identifier");
45
+ ]).describe("Native compliance framework identifier");
46
46
 
47
47
  export type UploadComplianceResourceDto = {
48
48
  organizationId: string;
49
- framework: UploadComplianceResourceDtoFramework;
49
+ framework?: UploadComplianceResourceDtoFramework | undefined;
50
+ customFrameworkId?: string | undefined;
50
51
  fileName: string;
51
52
  fileType: string;
52
53
  fileData: string;
@@ -55,11 +56,14 @@ export type UploadComplianceResourceDto = {
55
56
  export const UploadComplianceResourceDto$zodSchema: z.ZodType<
56
57
  UploadComplianceResourceDto
57
58
  > = z.object({
59
+ customFrameworkId: z.string().optional().describe(
60
+ "Org-authored custom framework ID (alternative to `framework`)",
61
+ ),
58
62
  fileData: z.string().describe("Base64 encoded PDF content"),
59
63
  fileName: z.string().describe("Original file name (PDF only)"),
60
64
  fileType: z.string().describe("MIME type of the file"),
61
- framework: UploadComplianceResourceDtoFramework$zodSchema.describe(
62
- "Compliance framework identifier",
65
+ framework: UploadComplianceResourceDtoFramework$zodSchema.optional().describe(
66
+ "Native compliance framework identifier",
63
67
  ),
64
68
  organizationId: z.string().describe(
65
69
  "Organization ID that owns the compliance resource",
@@ -0,0 +1,16 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+
7
+ export type UpsertFindingContextDto = { runId: string; context: string };
8
+
9
+ export const UpsertFindingContextDto$zodSchema: z.ZodType<
10
+ UpsertFindingContextDto
11
+ > = z.object({
12
+ context: z.string().describe(
13
+ "Context for the finding, e.g. an accepted-by-design rationale or remediation details. Shared with the testing agent on future scans of the same target. Max 2000 characters.",
14
+ ),
15
+ runId: z.string().describe("Penetration test run ID the finding belongs to"),
16
+ });
package/src/tool-names.ts CHANGED
@@ -530,7 +530,7 @@ export const toolNames: Array<{ name: string; description: string }>= [
530
530
  },
531
531
  {
532
532
  "name": "export-all-evidence",
533
- "description": "Export all organization evidence as ZIP (Auditor only)\n\nExport all organization evidence as ZIP (Auditor only) in Comp AI. Export all organization evidence for an auditor review package."
533
+ "description": "Trigger bulk evidence export (Auditor only)\n\nTrigger bulk evidence export (Auditor only) in Comp AI. Export all organization evidence for an auditor review package."
534
534
  },
535
535
  {
536
536
  "name": "get-comments",
@@ -612,10 +612,22 @@ export const toolNames: Array<{ name: string; description: string }>= [
612
612
  "name": "update-allowed-domains",
613
613
  "description": "Update allowed domains for the trust portal\n\nUpdate allowed domains for the trust portal in Comp AI. Configure the live Trust Center, custom domain, public overview, FAQs, compliance resources, documents, links, and vendor disclosures."
614
614
  },
615
+ {
616
+ "name": "update-allowed-emails",
617
+ "description": "Update allowed emails for the trust portal\n\nUpdate allowed emails for the trust portal in Comp AI. Configure the live Trust Center, custom domain, public overview, FAQs, compliance resources, documents, links, and vendor disclosures."
618
+ },
615
619
  {
616
620
  "name": "update-frameworks",
617
621
  "description": "Update trust portal framework settings\n\nUpdate trust portal framework settings in Comp AI. Configure the live Trust Center, custom domain, public overview, FAQs, compliance resources, documents, links, and vendor disclosures."
618
622
  },
623
+ {
624
+ "name": "list-custom-frameworks",
625
+ "description": "List org-authored custom frameworks with their trust portal selection\n\nList org-authored custom frameworks with their trust portal selection in Comp AI. Configure the live Trust Center, custom domain, public overview, FAQs, compliance resources, documents, links, and vendor disclosures."
626
+ },
627
+ {
628
+ "name": "update-custom-framework",
629
+ "description": "Enable/disable a custom framework on the trust portal and set its status\n\nEnable/disable a custom framework on the trust portal and set its status in Comp AI. Configure the live Trust Center, custom domain, public overview, FAQs, compliance resources, documents, links, and vendor disclosures."
630
+ },
619
631
  {
620
632
  "name": "update-overview",
621
633
  "description": "Update Trust Center overview\n\nUpdate the public Trust Center overview content that explains security posture and compliance status to prospects and customers."
@@ -716,6 +728,10 @@ export const toolNames: Array<{ name: string; description: string }>= [
716
728
  "name": "get-public-vendors",
717
729
  "description": "List Trust Center vendors\n\nList published vendors and subprocessors for an organization Trust Center so reviewers can inspect third-party posture."
718
730
  },
731
+ {
732
+ "name": "get-public-custom-frameworks",
733
+ "description": "Get org-authored custom frameworks shown on a trust portal\n\nGet org-authored custom frameworks shown on a trust portal in Comp AI. Manage external Trust Center access requests, NDA signing, grants, tokenized document downloads, public FAQs, and reviewer access."
734
+ },
719
735
  {
720
736
  "name": "list-findings",
721
737
  "description": "List audit findings\n\nList audit findings with status, severity, owner, history, and remediation context for compliance review workflows."
@@ -1088,6 +1104,10 @@ export const toolNames: Array<{ name: string; description: string }>= [
1088
1104
  "name": "get-check-definition",
1089
1105
  "description": "Resolve the \"About this check\" description for a finding (AI-cached for AWS; provider-derived for GCP/Azure)\n\nResolve the \"About this check\" description for a finding (AI-cached for AWS; provider-derived for GCP/Azure) in Comp AI. Run AWS, Azure, and GCP cloud security scans, detect enabled services, review findings, and connect cloud posture."
1090
1106
  },
1107
+ {
1108
+ "name": "resolve-session",
1109
+ "description": "Resolve short-lived AWS credentials for a connection (internal only)\n\nResolve short-lived AWS credentials for a connection (internal only) in Comp AI. Run AWS, Azure, and GCP cloud security scans, detect enabled services, review findings, and connect cloud posture results to compliance work."
1110
+ },
1091
1111
  {
1092
1112
  "name": "scan",
1093
1113
  "description": "Run cloud security scan\n\nTrigger a cloud security scan for a connected AWS, Azure, or GCP account and collect findings for compliance remediation."
@@ -1288,6 +1308,18 @@ export const toolNames: Array<{ name: string; description: string }>= [
1288
1308
  "name": "get-pdf",
1289
1309
  "description": "Get penetration test PDF\n\nGet penetration test PDF in Comp AI. Create AI-powered penetration test runs, track progress, inspect findings and events, and download markdown or PDF reports."
1290
1310
  },
1311
+ {
1312
+ "name": "list-pentest-finding-contexts",
1313
+ "description": "List pentest finding context notes\n\nReturns the customer-written context notes attached to pentest findings for a target URL. These notes are shared with the testing agent on future scans of the same target so retests are informed, not blind."
1314
+ },
1315
+ {
1316
+ "name": "set-pentest-finding-context",
1317
+ "description": "Add context to a pentest finding\n\nSaves a customer context note on a pentest finding, e.g. an accepted-by-design rationale or remediation details. Future scans of the same target pass the note to the testing agent so the issue is retested with that context."
1318
+ },
1319
+ {
1320
+ "name": "delete-pentest-finding-context",
1321
+ "description": "Remove context from a pentest finding\n\nDeletes the customer context note attached to a pentest finding so future scans of the target no longer receive it from the testing agent briefing."
1322
+ },
1291
1323
  {
1292
1324
  "name": "get-pending-offboardings",
1293
1325
  "description": "Get members with pending offboarding checklists\n\nLists members whose offboarding checklist is still incomplete, with their outstanding items, so you can track and finish departing-employee offboarding."
package/esm/lib/dlv.d.ts DELETED
@@ -1,14 +0,0 @@
1
- /**
2
- * @param obj The object to walk
3
- * @param key The key path to walk the object with
4
- * @param def A default value to return if the result is undefined
5
- *
6
- * @example
7
- * dlv(obj, "a.b.c.d")
8
- * @example
9
- * dlv(object, ["a", "b", "c", "d"])
10
- * @example
11
- * dlv(object, "foo.bar.baz", "Hello, default value!")
12
- */
13
- export declare function dlv<T = any>(obj: any, key: string | string[], def?: T, p?: number, undef?: never): T | undefined;
14
- //# sourceMappingURL=dlv.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dlv.d.ts","sourceRoot":"","sources":["../../src/lib/dlv.ts"],"names":[],"mappings":"AA2BA;;;;;;;;;;;GAWG;AACH,wBAAgB,GAAG,CAAC,CAAC,GAAG,GAAG,EACzB,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,EACtB,GAAG,CAAC,EAAE,CAAC,EACP,CAAC,CAAC,EAAE,MAAM,EACV,KAAK,CAAC,EAAE,KAAK,GACZ,CAAC,GAAG,SAAS,CAOf"}
package/esm/lib/dlv.js DELETED
@@ -1,46 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
- /*
5
- MIT License
6
-
7
- Copyright (c) 2024 Jason Miller <jason@developit.ca> (http://jasonformat.com)
8
-
9
- Permission is hereby granted, free of charge, to any person obtaining a copy of
10
- this software and associated documentation files (the "Software"), to deal in
11
- the Software without restriction, including without limitation the rights to
12
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
13
- the Software, and to permit persons to whom the Software is furnished to do so,
14
- subject to the following conditions:
15
-
16
- The above copyright notice and this permission notice shall be included in all
17
- copies or substantial portions of the Software.
18
-
19
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
21
- FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
22
- COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
23
- IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
24
- CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25
- */
26
- /**
27
- * @param obj The object to walk
28
- * @param key The key path to walk the object with
29
- * @param def A default value to return if the result is undefined
30
- *
31
- * @example
32
- * dlv(obj, "a.b.c.d")
33
- * @example
34
- * dlv(object, ["a", "b", "c", "d"])
35
- * @example
36
- * dlv(object, "foo.bar.baz", "Hello, default value!")
37
- */
38
- export function dlv(obj, key, def, p, undef) {
39
- key = Array.isArray(key) ? key : key.split(".");
40
- for (p = 0; p < key.length; p++) {
41
- const k = key[p];
42
- obj = k != null && obj ? obj[k] : undef;
43
- }
44
- return obj === undef ? def : obj;
45
- }
46
- //# sourceMappingURL=dlv.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dlv.js","sourceRoot":"","sources":["../../src/lib/dlv.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;;;;;;;;;;;;;;;;EAqBE;AAEF;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,GAAG,CACjB,GAAQ,EACR,GAAsB,EACtB,GAAO,EACP,CAAU,EACV,KAAa;IAEb,GAAG,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAChD,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QAChC,MAAM,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;QACjB,GAAG,GAAG,CAAC,IAAI,IAAI,IAAI,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IAC1C,CAAC;IACD,OAAO,GAAG,KAAK,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;AACnC,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare function isPlainObject(value: unknown): value is object;
2
- //# sourceMappingURL=is-plain-object.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"is-plain-object.d.ts","sourceRoot":"","sources":["../../src/lib/is-plain-object.ts"],"names":[],"mappings":"AA6BA,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAa7D"}
@@ -1,38 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
- /*
5
- MIT License
6
-
7
- Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
8
-
9
- Permission is hereby granted, free of charge, to any person obtaining a copy of
10
- this software and associated documentation files (the "Software"), to deal in
11
- the Software without restriction, including without limitation the rights to
12
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
13
- the Software, and to permit persons to whom the Software is furnished to do so,
14
- subject to the following conditions:
15
-
16
- The above copyright notice and this permission notice shall be included in all
17
- copies or substantial portions of the Software.
18
-
19
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
21
- FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
22
- COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
23
- IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
24
- CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25
- */
26
- // Taken from https://github.com/sindresorhus/is-plain-obj/blob/97f38e8836f86a642cce98fc6ab3058bc36df181/index.js
27
- export function isPlainObject(value) {
28
- if (typeof value !== "object" || value === null) {
29
- return false;
30
- }
31
- const prototype = Object.getPrototypeOf(value);
32
- return ((prototype === null ||
33
- prototype === Object.prototype ||
34
- Object.getPrototypeOf(prototype) === null) &&
35
- !(Symbol.toStringTag in value) &&
36
- !(Symbol.iterator in value));
37
- }
38
- //# sourceMappingURL=is-plain-object.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"is-plain-object.js","sourceRoot":"","sources":["../../src/lib/is-plain-object.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;;;;;;;;;;;;;;;;EAqBE;AAEF,iHAAiH;AAEjH,MAAM,UAAU,aAAa,CAAC,KAAc;IAC1C,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;QAChD,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,SAAS,GAAG,MAAM,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;IAC/C,OAAO,CACL,CAAC,SAAS,KAAK,IAAI;QACjB,SAAS,KAAK,MAAM,CAAC,SAAS;QAC9B,MAAM,CAAC,cAAc,CAAC,SAAS,CAAC,KAAK,IAAI,CAAC;QAC5C,CAAC,CAAC,MAAM,CAAC,WAAW,IAAI,KAAK,CAAC;QAC9B,CAAC,CAAC,MAAM,CAAC,QAAQ,IAAI,KAAK,CAAC,CAC5B,CAAC;AACJ,CAAC"}
package/src/lib/dlv.ts DELETED
@@ -1,53 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- /*
6
- MIT License
7
-
8
- Copyright (c) 2024 Jason Miller <jason@developit.ca> (http://jasonformat.com)
9
-
10
- Permission is hereby granted, free of charge, to any person obtaining a copy of
11
- this software and associated documentation files (the "Software"), to deal in
12
- the Software without restriction, including without limitation the rights to
13
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
14
- the Software, and to permit persons to whom the Software is furnished to do so,
15
- subject to the following conditions:
16
-
17
- The above copyright notice and this permission notice shall be included in all
18
- copies or substantial portions of the Software.
19
-
20
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
22
- FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
23
- COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
24
- IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
25
- CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
26
- */
27
-
28
- /**
29
- * @param obj The object to walk
30
- * @param key The key path to walk the object with
31
- * @param def A default value to return if the result is undefined
32
- *
33
- * @example
34
- * dlv(obj, "a.b.c.d")
35
- * @example
36
- * dlv(object, ["a", "b", "c", "d"])
37
- * @example
38
- * dlv(object, "foo.bar.baz", "Hello, default value!")
39
- */
40
- export function dlv<T = any>(
41
- obj: any,
42
- key: string | string[],
43
- def?: T,
44
- p?: number,
45
- undef?: never,
46
- ): T | undefined {
47
- key = Array.isArray(key) ? key : key.split(".");
48
- for (p = 0; p < key.length; p++) {
49
- const k = key[p];
50
- obj = k != null && obj ? obj[k] : undef;
51
- }
52
- return obj === undef ? def : obj;
53
- }
@@ -1,43 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- /*
6
- MIT License
7
-
8
- Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
9
-
10
- Permission is hereby granted, free of charge, to any person obtaining a copy of
11
- this software and associated documentation files (the "Software"), to deal in
12
- the Software without restriction, including without limitation the rights to
13
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
14
- the Software, and to permit persons to whom the Software is furnished to do so,
15
- subject to the following conditions:
16
-
17
- The above copyright notice and this permission notice shall be included in all
18
- copies or substantial portions of the Software.
19
-
20
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
22
- FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
23
- COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
24
- IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
25
- CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
26
- */
27
-
28
- // Taken from https://github.com/sindresorhus/is-plain-obj/blob/97f38e8836f86a642cce98fc6ab3058bc36df181/index.js
29
-
30
- export function isPlainObject(value: unknown): value is object {
31
- if (typeof value !== "object" || value === null) {
32
- return false;
33
- }
34
-
35
- const prototype = Object.getPrototypeOf(value);
36
- return (
37
- (prototype === null ||
38
- prototype === Object.prototype ||
39
- Object.getPrototypeOf(prototype) === null) &&
40
- !(Symbol.toStringTag in value) &&
41
- !(Symbol.iterator in value)
42
- );
43
- }