@@ -52,6 +52,64 @@ Retrieve the package information for a purl post
5252- **license (str) ** - The license parameter if enabled will show alerts and license information. If disabled will only show the basic package metadata and scores. Default is true
5353- **components (array{dict}) ** - The components list of packages urls
5454
55+ export.cdx_bom(org_slug, id, query_params)
56+ """""""""""""""""""""""""""""""""""""""""
57+ Export a Socket SBOM as a CycloneDX SBOM
58+
59+ **Usage: **
60+
61+ .. code-block ::
62+
63+ from socketdev import socketdev
64+ from socketdev.export import ExportQueryParams
65+
66+ socket = socketdev(token="REPLACE_ME")
67+ query_params = ExportQueryParams(
68+ author="john_doe",
69+ project_name="my-project"
70+ )
71+ print(socket.export.cdx_bom("org_slug", "sbom_id", query_params))
72+
73+ **PARAMETERS: **
74+
75+ - **org_slug (str) ** - The organization name
76+ - **id (str) ** - The ID of either a full scan or an SBOM report
77+ - **query_params (ExportQueryParams) ** - Optional query parameters for filtering:
78+ - **author (str) ** - Filter by author
79+ - **project_group (str) ** - Filter by project group
80+ - **project_name (str) ** - Filter by project name
81+ - **project_version (str) ** - Filter by project version
82+ - **project_id (str) ** - Filter by project ID
83+
84+ export.spdx_bom(org_slug, id, query_params)
85+ """"""""""""""""""""""""""""""""""""""""""
86+ Export a Socket SBOM as an SPDX SBOM
87+
88+ **Usage: **
89+
90+ .. code-block ::
91+
92+ from socketdev import socketdev
93+ from socketdev.export import ExportQueryParams
94+
95+ socket = socketdev(token="REPLACE_ME")
96+ query_params = ExportQueryParams(
97+ project_name="my-project",
98+ project_version="1.0.0"
99+ )
100+ print(socket.export.spdx_bom("org_slug", "sbom_id", query_params))
101+
102+ **PARAMETERS: **
103+
104+ - **org_slug (str) ** - The organization name
105+ - **id (str) ** - The ID of either a full scan or an SBOM report
106+ - **query_params (ExportQueryParams) ** - Optional query parameters for filtering:
107+ - **author (str) ** - Filter by author
108+ - **project_group (str) ** - Filter by project group
109+ - **project_name (str) ** - Filter by project name
110+ - **project_version (str) ** - Filter by project version
111+ - **project_id (str) ** - Filter by project ID
112+
55113fullscans.get(org_slug)
56114"""""""""""""""""""""""
57115Retrieve the Fullscans information for around Organization
@@ -143,6 +201,25 @@ Delete an existing full scan.
143201- **org_slug (str) ** - The organization name
144202- **full_scan_id (str) ** - The ID of the full scan
145203
204+ fullscans.stream_diff(org_slug, before, after, preview)
205+ """""""""""""""""""""""""""""""""""""""""""""""""""""""
206+ Stream a diff between two full scans. Returns a scan diff.
207+
208+ **Usage: **
209+
210+ .. code-block ::
211+
212+ from socketdev import socketdev
213+ socket = socketdev(token="REPLACE_ME")
214+ print(socket.fullscans.stream_diff("org_slug", "before_scan_id", "after_scan_id"))
215+
216+ **PARAMETERS: **
217+
218+ - **org_slug (str) ** - The organization name
219+ - **before (str) ** - The base full scan ID
220+ - **after (str) ** - The comparison full scan ID
221+ - **preview (bool) ** - Create a diff-scan that is not persisted. Defaults to False
222+
146223fullscans.stream(org_slug, full_scan_id)
147224""""""""""""""""""""""""""""""""""""""""
148225Stream all SBOM artifacts for a full scan.
0 commit comments