@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.js CHANGED
@@ -1170,6 +1170,14 @@ var skillRegistryListResponseSchema = z2.object({
1170
1170
  items: z2.array(skillRegistryPublishSummarySchema),
1171
1171
  nextCursor: z2.string().nullable()
1172
1172
  }).passthrough();
1173
+ var skillSecurityBreakdownResponseSchema = z2.object({
1174
+ name: z2.string(),
1175
+ version: z2.string(),
1176
+ jobId: z2.string(),
1177
+ createdAt: z2.string(),
1178
+ safety: skillSafetySummarySchema.nullable(),
1179
+ findings: z2.array(skillSafetyFindingSchema)
1180
+ }).passthrough();
1173
1181
  var skillCatalogChannelSchema = z2.enum([
1174
1182
  "stable",
1175
1183
  "prerelease",
@@ -3857,6 +3865,21 @@ async function listSkills(client, params = {}) {
3857
3865
  "skill registry list response"
3858
3866
  );
3859
3867
  }
3868
+ async function getSkillSecurityBreakdown(client, params) {
3869
+ const normalizedJobId = params.jobId.trim();
3870
+ if (!normalizedJobId) {
3871
+ throw new Error("jobId is required");
3872
+ }
3873
+ const raw = await client.requestJson(
3874
+ `/skills/${encodeURIComponent(normalizedJobId)}/security-breakdown`,
3875
+ { method: "GET" }
3876
+ );
3877
+ return client.parseWithSchema(
3878
+ raw,
3879
+ skillSecurityBreakdownResponseSchema,
3880
+ "skill security breakdown response"
3881
+ );
3882
+ }
3860
3883
  async function getSkillsCatalog(client, params = {}) {
3861
3884
  const query = new URLSearchParams();
3862
3885
  if (params.q) {
@@ -4655,6 +4678,9 @@ var RegistryBrokerClient = class _RegistryBrokerClient {
4655
4678
  async listSkills(options) {
4656
4679
  return listSkills(this, options);
4657
4680
  }
4681
+ async getSkillSecurityBreakdown(params) {
4682
+ return getSkillSecurityBreakdown(this, params);
4683
+ }
4658
4684
  async getSkillsCatalog(options) {
4659
4685
  return getSkillsCatalog(this, options);
4660
4686
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hol-org/rb-client",
3
- "version": "0.1.164",
3
+ "version": "0.1.166",
4
4
  "description": "Lightweight Registry Broker client for HOL registries.",
5
5
  "type": "module",
6
6
  "files": [