@hol-org/rb-client 0.1.164 → 0.1.166
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.
- package/dist/index.cjs +26 -0
- package/dist/index.d.cts +220 -85
- package/dist/index.d.ts +220 -85
- package/dist/index.js +26 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1219,6 +1219,14 @@ var skillRegistryListResponseSchema = import_zod2.z.object({
|
|
|
1219
1219
|
items: import_zod2.z.array(skillRegistryPublishSummarySchema),
|
|
1220
1220
|
nextCursor: import_zod2.z.string().nullable()
|
|
1221
1221
|
}).passthrough();
|
|
1222
|
+
var skillSecurityBreakdownResponseSchema = import_zod2.z.object({
|
|
1223
|
+
name: import_zod2.z.string(),
|
|
1224
|
+
version: import_zod2.z.string(),
|
|
1225
|
+
jobId: import_zod2.z.string(),
|
|
1226
|
+
createdAt: import_zod2.z.string(),
|
|
1227
|
+
safety: skillSafetySummarySchema.nullable(),
|
|
1228
|
+
findings: import_zod2.z.array(skillSafetyFindingSchema)
|
|
1229
|
+
}).passthrough();
|
|
1222
1230
|
var skillCatalogChannelSchema = import_zod2.z.enum([
|
|
1223
1231
|
"stable",
|
|
1224
1232
|
"prerelease",
|
|
@@ -3906,6 +3914,21 @@ async function listSkills(client, params = {}) {
|
|
|
3906
3914
|
"skill registry list response"
|
|
3907
3915
|
);
|
|
3908
3916
|
}
|
|
3917
|
+
async function getSkillSecurityBreakdown(client, params) {
|
|
3918
|
+
const normalizedJobId = params.jobId.trim();
|
|
3919
|
+
if (!normalizedJobId) {
|
|
3920
|
+
throw new Error("jobId is required");
|
|
3921
|
+
}
|
|
3922
|
+
const raw = await client.requestJson(
|
|
3923
|
+
`/skills/${encodeURIComponent(normalizedJobId)}/security-breakdown`,
|
|
3924
|
+
{ method: "GET" }
|
|
3925
|
+
);
|
|
3926
|
+
return client.parseWithSchema(
|
|
3927
|
+
raw,
|
|
3928
|
+
skillSecurityBreakdownResponseSchema,
|
|
3929
|
+
"skill security breakdown response"
|
|
3930
|
+
);
|
|
3931
|
+
}
|
|
3909
3932
|
async function getSkillsCatalog(client, params = {}) {
|
|
3910
3933
|
const query = new URLSearchParams();
|
|
3911
3934
|
if (params.q) {
|
|
@@ -4699,6 +4722,9 @@ var RegistryBrokerClient = class _RegistryBrokerClient {
|
|
|
4699
4722
|
async listSkills(options) {
|
|
4700
4723
|
return listSkills(this, options);
|
|
4701
4724
|
}
|
|
4725
|
+
async getSkillSecurityBreakdown(params) {
|
|
4726
|
+
return getSkillSecurityBreakdown(this, params);
|
|
4727
|
+
}
|
|
4702
4728
|
async getSkillsCatalog(options) {
|
|
4703
4729
|
return getSkillsCatalog(this, options);
|
|
4704
4730
|
}
|