@hol-org/rb-client 0.1.178 → 0.1.180

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
@@ -916,10 +916,14 @@ var guardBucketBalanceSchema = z2.object({
916
916
  });
917
917
  var guardPrincipalSchema = z2.object({
918
918
  signedIn: z2.boolean(),
919
+ principalType: z2.enum(["user", "service"]).default("user"),
919
920
  userId: z2.string().optional(),
920
921
  email: z2.string().optional(),
921
922
  accountId: z2.string().optional(),
922
923
  stripeCustomerId: z2.string().optional(),
924
+ serviceId: z2.string().optional(),
925
+ workspaceId: z2.string().optional(),
926
+ serviceLabel: z2.string().optional(),
923
927
  roles: z2.array(z2.string())
924
928
  });
925
929
  var guardEntitlementsSchema = z2.object({
@@ -946,6 +950,65 @@ var guardBalanceResponseSchema = z2.object({
946
950
  bucketingMode: z2.enum(["shared-ledger", "product-bucketed"]),
947
951
  buckets: z2.array(guardBucketBalanceSchema)
948
952
  });
953
+ var guardFeedItemSchema = z2.object({
954
+ id: z2.string(),
955
+ artifactType: z2.enum(["skill", "plugin"]),
956
+ slug: z2.string(),
957
+ name: z2.string(),
958
+ href: z2.string(),
959
+ ecosystem: z2.string().optional(),
960
+ safetyScore: z2.number().nullable().optional(),
961
+ trustScore: z2.number().nullable().optional(),
962
+ verified: z2.boolean(),
963
+ recommendation: z2.enum(["monitor", "review", "block"]),
964
+ updatedAt: z2.string()
965
+ });
966
+ var guardFeedSummarySchema = z2.object({
967
+ total: z2.number(),
968
+ monitorCount: z2.number(),
969
+ reviewCount: z2.number(),
970
+ blockCount: z2.number()
971
+ });
972
+ var guardFeedResponseSchema = z2.object({
973
+ generatedAt: z2.string(),
974
+ items: z2.array(guardFeedItemSchema),
975
+ summary: guardFeedSummarySchema
976
+ });
977
+ var guardIntegrationSchema = z2.object({
978
+ id: z2.enum(["openclaw", "hermes"]),
979
+ name: z2.string(),
980
+ status: z2.enum(["available", "planned"]),
981
+ href: z2.string().nullable(),
982
+ summary: z2.string()
983
+ });
984
+ var guardActionItemSchema = z2.object({
985
+ title: z2.string(),
986
+ description: z2.string(),
987
+ href: z2.string()
988
+ });
989
+ var guardOverviewResponseSchema = z2.object({
990
+ generatedAt: z2.string(),
991
+ principal: guardPrincipalSchema,
992
+ entitlements: guardEntitlementsSchema,
993
+ balance: z2.object({
994
+ accountId: z2.string(),
995
+ availableCredits: z2.number()
996
+ }).nullable(),
997
+ trustFeed: guardFeedResponseSchema,
998
+ integrations: z2.array(guardIntegrationSchema),
999
+ actionItems: z2.array(guardActionItemSchema)
1000
+ });
1001
+ var guardPolicySchema = z2.object({
1002
+ mode: z2.enum(["observe", "prompt", "enforce"]),
1003
+ defaultAction: z2.enum(["allow", "warn", "block"]),
1004
+ unknownPublisherAction: z2.enum(["review", "block", "allow"]),
1005
+ changedHashAction: z2.enum(["allow", "warn", "require-reapproval", "block"]),
1006
+ newNetworkDomainAction: z2.enum(["allow", "warn", "block"]),
1007
+ subprocessAction: z2.enum(["allow", "warn", "block"]),
1008
+ telemetryEnabled: z2.boolean(),
1009
+ syncEnabled: z2.boolean(),
1010
+ updatedAt: z2.string()
1011
+ });
949
1012
  var guardTrustMatchSchema = z2.object({
950
1013
  artifactId: z2.string(),
951
1014
  artifactName: z2.string(),
@@ -981,7 +1044,13 @@ var guardRevocationSchema = z2.object({
981
1044
  artifactName: z2.string(),
982
1045
  reason: z2.string(),
983
1046
  severity: z2.enum(["low", "medium", "high"]),
984
- publishedAt: z2.string()
1047
+ publishedAt: z2.string(),
1048
+ confidence: z2.number().optional(),
1049
+ remediation: z2.string().nullable().optional(),
1050
+ scope: z2.enum(["artifact", "publisher", "domain", "workspace", "ecosystem"]).optional(),
1051
+ source: z2.string().optional(),
1052
+ firstSeenAt: z2.string().optional(),
1053
+ lastUpdatedAt: z2.string().optional()
985
1054
  });
986
1055
  var guardRevocationResponseSchema = z2.object({
987
1056
  generatedAt: z2.string(),
@@ -1012,9 +1081,299 @@ var guardReceiptSchema = z2.object({
1012
1081
  capabilities: z2.array(z2.string()),
1013
1082
  summary: z2.string()
1014
1083
  });
1084
+ var guardHistoryArtifactSchema = z2.object({
1085
+ artifactId: z2.string(),
1086
+ artifactName: z2.string(),
1087
+ artifactType: z2.enum(["skill", "plugin"]),
1088
+ artifactSlug: z2.string(),
1089
+ publisher: z2.string().optional(),
1090
+ harnesses: z2.array(z2.string()),
1091
+ eventCount: z2.number(),
1092
+ firstSeenAt: z2.string(),
1093
+ lastSeenAt: z2.string(),
1094
+ latestDecision: z2.enum([
1095
+ "allow",
1096
+ "warn",
1097
+ "block",
1098
+ "review",
1099
+ "require-reapproval",
1100
+ "sandbox-required"
1101
+ ]),
1102
+ latestRecommendation: z2.enum(["monitor", "review", "block"])
1103
+ });
1104
+ var guardReceiptHistoryResponseSchema = z2.object({
1105
+ generatedAt: z2.string(),
1106
+ artifacts: z2.array(guardHistoryArtifactSchema)
1107
+ });
1108
+ var guardInventoryArtifactSchema = z2.object({
1109
+ artifactId: z2.string(),
1110
+ artifactName: z2.string(),
1111
+ artifactType: z2.enum(["skill", "plugin"]),
1112
+ artifactSlug: z2.string(),
1113
+ publisher: z2.string().optional(),
1114
+ harnesses: z2.array(z2.string()),
1115
+ devices: z2.array(z2.string()),
1116
+ eventCount: z2.number(),
1117
+ firstSeenAt: z2.string(),
1118
+ lastSeenAt: z2.string(),
1119
+ latestDecision: z2.enum([
1120
+ "allow",
1121
+ "warn",
1122
+ "block",
1123
+ "review",
1124
+ "require-reapproval",
1125
+ "sandbox-required"
1126
+ ]),
1127
+ latestRecommendation: z2.enum(["monitor", "review", "block"]),
1128
+ latestHash: z2.string(),
1129
+ latestSummary: z2.string()
1130
+ });
1131
+ var guardInventoryDiffEntrySchema = z2.object({
1132
+ artifactId: z2.string(),
1133
+ artifactName: z2.string(),
1134
+ artifactType: z2.enum(["skill", "plugin"]),
1135
+ changeType: z2.enum(["new", "changed", "removed"]),
1136
+ previousHash: z2.string().nullable(),
1137
+ currentHash: z2.string().nullable()
1138
+ });
1139
+ var guardInventoryDiffResponseSchema = z2.object({
1140
+ generatedAt: z2.string(),
1141
+ items: z2.array(guardInventoryDiffEntrySchema)
1142
+ });
1015
1143
  var guardReceiptSyncResponseSchema = z2.object({
1016
1144
  syncedAt: z2.string(),
1017
- receiptsStored: z2.number()
1145
+ receiptsStored: z2.number(),
1146
+ inventoryStored: z2.number().optional(),
1147
+ inventoryDiff: guardInventoryDiffResponseSchema.optional(),
1148
+ advisories: z2.array(guardRevocationSchema).optional(),
1149
+ policy: guardPolicySchema.optional(),
1150
+ alertPreferences: z2.lazy(() => guardAlertPreferencesSchema).optional(),
1151
+ exceptions: z2.array(z2.lazy(() => guardExceptionItemSchema)).optional(),
1152
+ teamPolicyPack: z2.lazy(() => guardTeamPolicyPackSchema).optional()
1153
+ });
1154
+ var guardInventoryResponseSchema = z2.object({
1155
+ generatedAt: z2.string(),
1156
+ items: z2.array(guardInventoryArtifactSchema)
1157
+ });
1158
+ var guardAbomSummarySchema = z2.object({
1159
+ totalArtifacts: z2.number(),
1160
+ totalDevices: z2.number(),
1161
+ totalHarnesses: z2.number(),
1162
+ blockedArtifacts: z2.number(),
1163
+ reviewArtifacts: z2.number()
1164
+ });
1165
+ var guardAbomResponseSchema = z2.object({
1166
+ generatedAt: z2.string(),
1167
+ summary: guardAbomSummarySchema,
1168
+ items: z2.array(guardInventoryArtifactSchema)
1169
+ });
1170
+ var guardTimelineEventSchema = z2.object({
1171
+ receiptId: z2.string(),
1172
+ capturedAt: z2.string(),
1173
+ harness: z2.string(),
1174
+ deviceId: z2.string(),
1175
+ deviceName: z2.string(),
1176
+ artifactHash: z2.string(),
1177
+ policyDecision: z2.enum([
1178
+ "allow",
1179
+ "warn",
1180
+ "block",
1181
+ "review",
1182
+ "require-reapproval",
1183
+ "sandbox-required"
1184
+ ]),
1185
+ recommendation: z2.enum(["monitor", "review", "block"]),
1186
+ changedSinceLastApproval: z2.boolean(),
1187
+ summary: z2.string(),
1188
+ capabilities: z2.array(z2.string()),
1189
+ publisher: z2.string().optional()
1190
+ });
1191
+ var guardArtifactTimelineResponseSchema = z2.object({
1192
+ generatedAt: z2.string(),
1193
+ artifactId: z2.string(),
1194
+ artifactName: z2.string(),
1195
+ artifactType: z2.enum(["skill", "plugin"]),
1196
+ artifactSlug: z2.string(),
1197
+ events: z2.array(guardTimelineEventSchema)
1198
+ });
1199
+ var guardReceiptExportSummarySchema = z2.object({
1200
+ totalReceipts: z2.number(),
1201
+ blockedCount: z2.number(),
1202
+ reviewCount: z2.number(),
1203
+ approvedCount: z2.number()
1204
+ });
1205
+ var guardExportSignatureSchema = z2.object({
1206
+ algorithm: z2.enum(["hmac-sha256", "none"]),
1207
+ digest: z2.string()
1208
+ });
1209
+ var guardReceiptExportResponseSchema = z2.object({
1210
+ generatedAt: z2.string(),
1211
+ summary: guardReceiptExportSummarySchema,
1212
+ provenanceSummary: z2.array(z2.string()),
1213
+ items: z2.array(guardReceiptSchema),
1214
+ signature: guardExportSignatureSchema
1215
+ });
1216
+ var guardAlertPreferencesSchema = z2.object({
1217
+ emailEnabled: z2.boolean(),
1218
+ digestMode: z2.enum(["immediate", "daily", "weekly"]),
1219
+ watchlistEnabled: z2.boolean(),
1220
+ advisoriesEnabled: z2.boolean(),
1221
+ repeatedWarningsEnabled: z2.boolean(),
1222
+ teamAlertsEnabled: z2.boolean(),
1223
+ updatedAt: z2.string()
1224
+ });
1225
+ var guardWatchlistItemSchema = z2.object({
1226
+ artifactId: z2.string(),
1227
+ artifactName: z2.string(),
1228
+ artifactType: z2.enum(["skill", "plugin"]),
1229
+ artifactSlug: z2.string(),
1230
+ reason: z2.string(),
1231
+ source: z2.enum(["manual", "synced", "team-policy"]),
1232
+ createdAt: z2.string()
1233
+ });
1234
+ var guardWatchlistResponseSchema = z2.object({
1235
+ generatedAt: z2.string(),
1236
+ items: z2.array(guardWatchlistItemSchema)
1237
+ });
1238
+ var guardWatchlistLookupMatchSchema = z2.object({
1239
+ artifactId: z2.string().nullable(),
1240
+ publisher: z2.string().nullable(),
1241
+ domain: z2.string().nullable(),
1242
+ source: z2.enum(["watchlist", "team-policy"]),
1243
+ reason: z2.string()
1244
+ });
1245
+ var guardWatchlistLookupResponseSchema = z2.object({
1246
+ generatedAt: z2.string(),
1247
+ matched: z2.boolean(),
1248
+ scope: z2.enum(["artifact", "publisher", "domain", "none"]),
1249
+ item: guardWatchlistLookupMatchSchema.nullable()
1250
+ });
1251
+ var guardPainSignalSchema = z2.object({
1252
+ signalId: z2.string(),
1253
+ signalName: z2.string(),
1254
+ artifactId: z2.string(),
1255
+ artifactName: z2.string(),
1256
+ artifactType: z2.enum(["skill", "plugin"]),
1257
+ harness: z2.string(),
1258
+ latestSummary: z2.string(),
1259
+ firstSeenAt: z2.string(),
1260
+ lastSeenAt: z2.string(),
1261
+ count: z2.number(),
1262
+ source: z2.literal("scanner"),
1263
+ publisher: z2.string().optional()
1264
+ });
1265
+ var guardPainSignalListResponseSchema = z2.object({
1266
+ generatedAt: z2.string(),
1267
+ items: z2.array(guardPainSignalSchema)
1268
+ });
1269
+ var guardPainSignalAggregateSchema = z2.object({
1270
+ artifactId: z2.string(),
1271
+ artifactName: z2.string(),
1272
+ artifactType: z2.enum(["skill", "plugin"]),
1273
+ signalName: z2.string(),
1274
+ latestSummary: z2.string(),
1275
+ firstSeenAt: z2.string(),
1276
+ lastSeenAt: z2.string(),
1277
+ totalCount: z2.number(),
1278
+ consumerCount: z2.number(),
1279
+ harnesses: z2.array(z2.string()),
1280
+ publishers: z2.array(z2.string())
1281
+ });
1282
+ var guardPainSignalAggregateResponseSchema = z2.object({
1283
+ generatedAt: z2.string(),
1284
+ summary: z2.object({
1285
+ totalSignals: z2.number(),
1286
+ uniqueArtifacts: z2.number(),
1287
+ uniqueConsumers: z2.number()
1288
+ }),
1289
+ items: z2.array(guardPainSignalAggregateSchema)
1290
+ });
1291
+ var guardExceptionItemSchema = z2.object({
1292
+ exceptionId: z2.string(),
1293
+ scope: z2.enum(["artifact", "publisher", "harness", "global"]),
1294
+ harness: z2.string().nullable(),
1295
+ artifactId: z2.string().nullable(),
1296
+ publisher: z2.string().nullable(),
1297
+ reason: z2.string(),
1298
+ owner: z2.string(),
1299
+ source: z2.enum(["manual", "team-policy"]),
1300
+ expiresAt: z2.string(),
1301
+ createdAt: z2.string(),
1302
+ updatedAt: z2.string()
1303
+ });
1304
+ var guardExceptionListResponseSchema = z2.object({
1305
+ generatedAt: z2.string(),
1306
+ items: z2.array(guardExceptionItemSchema)
1307
+ });
1308
+ var guardPreflightEvidenceSchema = z2.object({
1309
+ category: z2.enum([
1310
+ "policy",
1311
+ "trust",
1312
+ "watchlist",
1313
+ "team-policy",
1314
+ "exception"
1315
+ ]),
1316
+ source: z2.string(),
1317
+ detail: z2.string()
1318
+ });
1319
+ var guardPreflightRequestSchema = z2.object({
1320
+ harness: z2.string(),
1321
+ artifactName: z2.string(),
1322
+ artifactType: z2.enum(["skill", "plugin"]),
1323
+ artifactId: z2.string().optional(),
1324
+ artifactSlug: z2.string().optional(),
1325
+ artifactHash: z2.string().optional(),
1326
+ publisher: z2.string().optional(),
1327
+ domain: z2.string().optional(),
1328
+ launchSummary: z2.string().optional(),
1329
+ capabilities: z2.array(z2.string()).optional(),
1330
+ workspacePath: z2.string().optional()
1331
+ });
1332
+ var guardPreflightVerdictResponseSchema = z2.object({
1333
+ generatedAt: z2.string(),
1334
+ principal: guardPrincipalSchema,
1335
+ decision: z2.enum(["allow", "review", "block"]),
1336
+ recommendation: z2.enum(["monitor", "review", "block"]),
1337
+ rationale: z2.string(),
1338
+ category: z2.enum(["exception", "team-policy", "watchlist", "trust", "policy"]).optional(),
1339
+ confidence: z2.number().optional(),
1340
+ freshnessTimestamp: z2.string().optional(),
1341
+ evidenceSources: z2.array(z2.string()).optional(),
1342
+ scope: z2.enum(["artifact", "publisher", "domain", "policy"]),
1343
+ matchedEvidence: z2.array(guardPreflightEvidenceSchema),
1344
+ matchedException: guardExceptionItemSchema.nullable(),
1345
+ trustMatch: guardTrustMatchSchema.nullable()
1346
+ });
1347
+ var guardTeamPolicyAuditItemSchema = z2.object({
1348
+ changedAt: z2.string(),
1349
+ actor: z2.string(),
1350
+ change: z2.enum(["created", "updated"]),
1351
+ summary: z2.string()
1352
+ });
1353
+ var guardTeamPolicyPackSchema = z2.object({
1354
+ name: z2.string(),
1355
+ sharedHarnessDefaults: z2.record(
1356
+ z2.string(),
1357
+ z2.enum(["observe", "prompt", "enforce"])
1358
+ ),
1359
+ allowedPublishers: z2.array(z2.string()),
1360
+ blockedPublishers: z2.array(z2.string()).optional(),
1361
+ blockedDomains: z2.array(z2.string()).optional(),
1362
+ blockedArtifacts: z2.array(z2.string()),
1363
+ alertChannel: z2.enum(["email", "slack", "teams", "webhook"]),
1364
+ updatedAt: z2.string(),
1365
+ auditTrail: z2.array(guardTeamPolicyAuditItemSchema)
1366
+ });
1367
+ var guardDeviceSchema = z2.object({
1368
+ deviceId: z2.string(),
1369
+ deviceName: z2.string(),
1370
+ harnesses: z2.array(z2.string()),
1371
+ receiptCount: z2.number(),
1372
+ lastSeenAt: z2.string()
1373
+ });
1374
+ var guardDeviceListResponseSchema = z2.object({
1375
+ generatedAt: z2.string(),
1376
+ items: z2.array(guardDeviceSchema)
1018
1377
  });
1019
1378
  var hbarPurchaseIntentResponseSchema = z2.object({
1020
1379
  transaction: z2.string(),
@@ -1414,13 +1773,11 @@ var skillDeprecationsResponseSchema = z2.object({
1414
1773
  name: z2.string(),
1415
1774
  items: z2.array(skillDeprecationRecordSchema)
1416
1775
  }).passthrough();
1417
- var skillSecurityBreakdownFindingSchema = z2.record(jsonValueSchema);
1418
- var skillSecurityBreakdownSummarySchema = z2.record(jsonValueSchema);
1419
1776
  var skillSecurityBreakdownResponseSchema = z2.object({
1420
1777
  jobId: z2.string(),
1421
1778
  score: z2.number().nullable().optional(),
1422
- findings: z2.array(skillSecurityBreakdownFindingSchema).optional(),
1423
- summary: skillSecurityBreakdownSummarySchema.optional(),
1779
+ findings: z2.array(jsonValueSchema).optional(),
1780
+ summary: jsonValueSchema.optional(),
1424
1781
  generatedAt: z2.string().nullable().optional(),
1425
1782
  scannerVersion: z2.string().nullable().optional()
1426
1783
  }).passthrough();
@@ -3906,6 +4263,32 @@ async function getGuardBillingBalance(client) {
3906
4263
  "guard billing balance response"
3907
4264
  );
3908
4265
  }
4266
+ async function getGuardFeed(client, limit) {
4267
+ const params = new URLSearchParams();
4268
+ if (typeof limit === "number" && Number.isFinite(limit) && Math.trunc(limit) > 0) {
4269
+ params.set("limit", String(Math.trunc(limit)));
4270
+ }
4271
+ const query = params.toString();
4272
+ const suffix = query ? `?${query}` : "";
4273
+ const raw = await client.requestJson(`/guard/feed${suffix}`, {
4274
+ method: "GET"
4275
+ });
4276
+ return client.parseWithSchema(
4277
+ raw,
4278
+ guardFeedResponseSchema,
4279
+ "guard feed response"
4280
+ );
4281
+ }
4282
+ async function getGuardOverview(client) {
4283
+ const raw = await client.requestJson("/guard/overview", {
4284
+ method: "GET"
4285
+ });
4286
+ return client.parseWithSchema(
4287
+ raw,
4288
+ guardOverviewResponseSchema,
4289
+ "guard overview response"
4290
+ );
4291
+ }
3909
4292
  async function getGuardTrustByHash(client, sha256) {
3910
4293
  const normalizedHash = sha256.trim();
3911
4294
  if (!normalizedHash) {
@@ -3953,10 +4336,336 @@ async function getGuardRevocations(client) {
3953
4336
  "guard revocations response"
3954
4337
  );
3955
4338
  }
4339
+ async function fetchGuardAdvisories(client) {
4340
+ const raw = await client.requestJson("/guard/advisories", {
4341
+ method: "GET"
4342
+ });
4343
+ return client.parseWithSchema(
4344
+ raw,
4345
+ guardRevocationResponseSchema,
4346
+ "guard advisories response"
4347
+ );
4348
+ }
4349
+ async function fetchGuardPolicy(client) {
4350
+ const raw = await client.requestJson("/guard/policy/fetch", {
4351
+ method: "GET"
4352
+ });
4353
+ return client.parseWithSchema(
4354
+ raw,
4355
+ guardPolicySchema,
4356
+ "guard policy response"
4357
+ );
4358
+ }
4359
+ async function getGuardInventory(client) {
4360
+ const raw = await client.requestJson("/guard/inventory", {
4361
+ method: "GET"
4362
+ });
4363
+ return client.parseWithSchema(
4364
+ raw,
4365
+ guardInventoryResponseSchema,
4366
+ "guard inventory response"
4367
+ );
4368
+ }
4369
+ async function getGuardReceiptHistory(client) {
4370
+ const raw = await client.requestJson("/guard/history", {
4371
+ method: "GET"
4372
+ });
4373
+ return client.parseWithSchema(
4374
+ raw,
4375
+ guardReceiptHistoryResponseSchema,
4376
+ "guard receipt history response"
4377
+ );
4378
+ }
4379
+ async function getGuardArtifactTimeline(client, artifactId) {
4380
+ const normalizedArtifactId = artifactId.trim();
4381
+ if (!normalizedArtifactId) {
4382
+ throw new Error("artifactId is required");
4383
+ }
4384
+ const raw = await client.requestJson(
4385
+ `/guard/history/${encodeURIComponent(normalizedArtifactId)}`,
4386
+ { method: "GET" }
4387
+ );
4388
+ return client.parseWithSchema(
4389
+ raw,
4390
+ guardArtifactTimelineResponseSchema,
4391
+ "guard artifact timeline response"
4392
+ );
4393
+ }
4394
+ async function exportGuardAbom(client) {
4395
+ const raw = await client.requestJson("/guard/abom", {
4396
+ method: "GET"
4397
+ });
4398
+ return client.parseWithSchema(
4399
+ raw,
4400
+ guardAbomResponseSchema,
4401
+ "guard abom response"
4402
+ );
4403
+ }
4404
+ async function exportGuardArtifactAbom(client, artifactId) {
4405
+ const normalizedArtifactId = artifactId.trim();
4406
+ if (!normalizedArtifactId) {
4407
+ throw new Error("artifactId is required");
4408
+ }
4409
+ const raw = await client.requestJson(
4410
+ `/guard/abom/${encodeURIComponent(normalizedArtifactId)}`,
4411
+ { method: "GET" }
4412
+ );
4413
+ return client.parseWithSchema(
4414
+ raw,
4415
+ guardAbomResponseSchema,
4416
+ "guard artifact abom response"
4417
+ );
4418
+ }
4419
+ async function exportGuardReceipts(client) {
4420
+ const raw = await client.requestJson("/guard/receipts/export", {
4421
+ method: "GET"
4422
+ });
4423
+ return client.parseWithSchema(
4424
+ raw,
4425
+ guardReceiptExportResponseSchema,
4426
+ "guard receipt export response"
4427
+ );
4428
+ }
4429
+ async function getGuardInventoryDiff(client) {
4430
+ const raw = await client.requestJson("/guard/inventory/diff", {
4431
+ method: "GET"
4432
+ });
4433
+ return client.parseWithSchema(
4434
+ raw,
4435
+ guardInventoryDiffResponseSchema,
4436
+ "guard inventory diff response"
4437
+ );
4438
+ }
4439
+ async function getGuardDevices(client) {
4440
+ const raw = await client.requestJson("/guard/devices", {
4441
+ method: "GET"
4442
+ });
4443
+ return client.parseWithSchema(
4444
+ raw,
4445
+ guardDeviceListResponseSchema,
4446
+ "guard devices response"
4447
+ );
4448
+ }
4449
+ async function getGuardAlertPreferences(client) {
4450
+ const raw = await client.requestJson("/guard/alerts/preferences", {
4451
+ method: "GET"
4452
+ });
4453
+ return client.parseWithSchema(
4454
+ raw,
4455
+ guardAlertPreferencesSchema,
4456
+ "guard alert preferences response"
4457
+ );
4458
+ }
4459
+ async function updateGuardAlertPreferences(client, payload) {
4460
+ const raw = await client.requestJson("/guard/alerts/preferences", {
4461
+ method: "PUT",
4462
+ body: payload
4463
+ });
4464
+ return client.parseWithSchema(
4465
+ raw,
4466
+ guardAlertPreferencesSchema,
4467
+ "guard alert preferences response"
4468
+ );
4469
+ }
4470
+ async function getGuardExceptions(client) {
4471
+ const raw = await client.requestJson("/guard/exceptions", {
4472
+ method: "GET"
4473
+ });
4474
+ return client.parseWithSchema(
4475
+ raw,
4476
+ guardExceptionListResponseSchema,
4477
+ "guard exceptions response"
4478
+ );
4479
+ }
4480
+ async function getGuardWatchlist(client) {
4481
+ const raw = await client.requestJson("/guard/watchlist", {
4482
+ method: "GET"
4483
+ });
4484
+ return client.parseWithSchema(
4485
+ raw,
4486
+ guardWatchlistResponseSchema,
4487
+ "guard watchlist response"
4488
+ );
4489
+ }
4490
+ async function lookupGuardWatchlist(client, payload) {
4491
+ const raw = await client.requestJson("/guard/watchlist/lookup", {
4492
+ method: "POST",
4493
+ body: payload
4494
+ });
4495
+ return client.parseWithSchema(
4496
+ raw,
4497
+ guardWatchlistLookupResponseSchema,
4498
+ "guard watchlist lookup response"
4499
+ );
4500
+ }
4501
+ async function getGuardPainSignals(client) {
4502
+ const raw = await client.requestJson("/guard/signals/pain", {
4503
+ method: "GET"
4504
+ });
4505
+ return client.parseWithSchema(
4506
+ raw,
4507
+ guardPainSignalListResponseSchema,
4508
+ "guard pain signals response"
4509
+ );
4510
+ }
4511
+ async function getGuardAggregatedPainSignals(client) {
4512
+ const raw = await client.requestJson(
4513
+ "/guard/signals/pain/aggregate",
4514
+ {
4515
+ method: "GET"
4516
+ }
4517
+ );
4518
+ return client.parseWithSchema(
4519
+ raw,
4520
+ guardPainSignalAggregateResponseSchema,
4521
+ "guard aggregated pain signals response"
4522
+ );
4523
+ }
4524
+ async function getGuardPreflightVerdict(client, path, payload) {
4525
+ const raw = await client.requestJson(path, {
4526
+ method: "POST",
4527
+ body: payload
4528
+ });
4529
+ return client.parseWithSchema(
4530
+ raw,
4531
+ guardPreflightVerdictResponseSchema,
4532
+ "guard preflight verdict response"
4533
+ );
4534
+ }
4535
+ async function getGuardPreInstallVerdict(client, payload) {
4536
+ return getGuardPreflightVerdict(
4537
+ client,
4538
+ "/guard/verdict/pre-install",
4539
+ payload
4540
+ );
4541
+ }
4542
+ async function getGuardPreExecutionVerdict(client, payload) {
4543
+ return getGuardPreflightVerdict(
4544
+ client,
4545
+ "/guard/verdict/pre-execution",
4546
+ payload
4547
+ );
4548
+ }
4549
+ async function ingestGuardPainSignals(client, items) {
4550
+ const raw = await client.requestJson("/guard/signals/pain", {
4551
+ method: "POST",
4552
+ body: { items }
4553
+ });
4554
+ return client.parseWithSchema(
4555
+ raw,
4556
+ guardPainSignalListResponseSchema,
4557
+ "guard pain signals response"
4558
+ );
4559
+ }
4560
+ async function submitGuardReceipts(client, payload) {
4561
+ const raw = await client.requestJson("/guard/receipts/submit", {
4562
+ method: "POST",
4563
+ body: payload
4564
+ });
4565
+ return client.parseWithSchema(
4566
+ raw,
4567
+ guardReceiptSyncResponseSchema,
4568
+ "guard receipt submit response"
4569
+ );
4570
+ }
4571
+ async function addGuardWatchlistItem(client, payload) {
4572
+ const raw = await client.requestJson("/guard/watchlist", {
4573
+ method: "POST",
4574
+ body: payload
4575
+ });
4576
+ return client.parseWithSchema(
4577
+ raw,
4578
+ guardWatchlistResponseSchema,
4579
+ "guard watchlist response"
4580
+ );
4581
+ }
4582
+ async function removeGuardWatchlistItem(client, artifactId) {
4583
+ const normalizedArtifactId = artifactId.trim();
4584
+ if (!normalizedArtifactId) {
4585
+ throw new Error("artifactId is required");
4586
+ }
4587
+ const raw = await client.requestJson(
4588
+ `/guard/watchlist/${encodeURIComponent(normalizedArtifactId)}`,
4589
+ { method: "DELETE" }
4590
+ );
4591
+ return client.parseWithSchema(
4592
+ raw,
4593
+ guardWatchlistResponseSchema,
4594
+ "guard watchlist response"
4595
+ );
4596
+ }
4597
+ async function addGuardException(client, payload) {
4598
+ const raw = await client.requestJson("/guard/exceptions", {
4599
+ method: "POST",
4600
+ body: payload
4601
+ });
4602
+ return client.parseWithSchema(
4603
+ raw,
4604
+ guardExceptionListResponseSchema,
4605
+ "guard exceptions response"
4606
+ );
4607
+ }
4608
+ async function requestGuardException(client, payload) {
4609
+ const raw = await client.requestJson("/guard/exceptions/request", {
4610
+ method: "POST",
4611
+ body: payload
4612
+ });
4613
+ return client.parseWithSchema(
4614
+ raw,
4615
+ guardExceptionListResponseSchema,
4616
+ "guard exception request response"
4617
+ );
4618
+ }
4619
+ async function syncGuardInventory(client, payload) {
4620
+ const raw = await client.requestJson("/guard/inventory/sync", {
4621
+ method: "POST",
4622
+ body: payload
4623
+ });
4624
+ return client.parseWithSchema(
4625
+ raw,
4626
+ guardReceiptSyncResponseSchema,
4627
+ "guard inventory sync response"
4628
+ );
4629
+ }
4630
+ async function removeGuardException(client, exceptionId) {
4631
+ const normalizedExceptionId = exceptionId.trim();
4632
+ if (!normalizedExceptionId) {
4633
+ throw new Error("exceptionId is required");
4634
+ }
4635
+ const raw = await client.requestJson(
4636
+ `/guard/exceptions/${encodeURIComponent(normalizedExceptionId)}`,
4637
+ { method: "DELETE" }
4638
+ );
4639
+ return client.parseWithSchema(
4640
+ raw,
4641
+ guardExceptionListResponseSchema,
4642
+ "guard exceptions response"
4643
+ );
4644
+ }
4645
+ async function getGuardTeamPolicyPack(client) {
4646
+ const raw = await client.requestJson("/guard/team/policy-pack", {
4647
+ method: "GET"
4648
+ });
4649
+ return client.parseWithSchema(
4650
+ raw,
4651
+ guardTeamPolicyPackSchema,
4652
+ "guard team policy pack response"
4653
+ );
4654
+ }
4655
+ async function updateGuardTeamPolicyPack(client, payload) {
4656
+ const raw = await client.requestJson("/guard/team/policy-pack", {
4657
+ method: "PUT",
4658
+ body: payload
4659
+ });
4660
+ return client.parseWithSchema(
4661
+ raw,
4662
+ guardTeamPolicyPackSchema,
4663
+ "guard team policy pack response"
4664
+ );
4665
+ }
3956
4666
  async function syncGuardReceipts(client, payload) {
3957
4667
  const raw = await client.requestJson("/guard/receipts/sync", {
3958
4668
  method: "POST",
3959
- headers: { "content-type": "application/json" },
3960
4669
  body: payload
3961
4670
  });
3962
4671
  return client.parseWithSchema(
@@ -5781,6 +6490,12 @@ var RegistryBrokerClient = class _RegistryBrokerClient {
5781
6490
  async getGuardBillingBalance() {
5782
6491
  return getGuardBillingBalance(this);
5783
6492
  }
6493
+ async getGuardFeed(limit) {
6494
+ return getGuardFeed(this, limit);
6495
+ }
6496
+ async getGuardOverview() {
6497
+ return getGuardOverview(this);
6498
+ }
5784
6499
  async getGuardTrustByHash(sha256) {
5785
6500
  return getGuardTrustByHash(this, sha256);
5786
6501
  }
@@ -5790,9 +6505,96 @@ var RegistryBrokerClient = class _RegistryBrokerClient {
5790
6505
  async getGuardRevocations() {
5791
6506
  return getGuardRevocations(this);
5792
6507
  }
6508
+ async fetchGuardAdvisories() {
6509
+ return fetchGuardAdvisories(this);
6510
+ }
6511
+ async fetchGuardPolicy() {
6512
+ return fetchGuardPolicy(this);
6513
+ }
6514
+ async getGuardInventory() {
6515
+ return getGuardInventory(this);
6516
+ }
6517
+ async getGuardReceiptHistory() {
6518
+ return getGuardReceiptHistory(this);
6519
+ }
6520
+ async getGuardArtifactTimeline(artifactId) {
6521
+ return getGuardArtifactTimeline(this, artifactId);
6522
+ }
6523
+ async getGuardInventoryDiff() {
6524
+ return getGuardInventoryDiff(this);
6525
+ }
6526
+ async exportGuardAbom() {
6527
+ return exportGuardAbom(this);
6528
+ }
6529
+ async exportGuardArtifactAbom(artifactId) {
6530
+ return exportGuardArtifactAbom(this, artifactId);
6531
+ }
6532
+ async exportGuardReceipts() {
6533
+ return exportGuardReceipts(this);
6534
+ }
6535
+ async getGuardDevices() {
6536
+ return getGuardDevices(this);
6537
+ }
6538
+ async getGuardAlertPreferences() {
6539
+ return getGuardAlertPreferences(this);
6540
+ }
6541
+ async updateGuardAlertPreferences(payload) {
6542
+ return updateGuardAlertPreferences(this, payload);
6543
+ }
6544
+ async getGuardExceptions() {
6545
+ return getGuardExceptions(this);
6546
+ }
6547
+ async getGuardWatchlist() {
6548
+ return getGuardWatchlist(this);
6549
+ }
6550
+ async lookupGuardWatchlist(payload) {
6551
+ return lookupGuardWatchlist(this, payload);
6552
+ }
6553
+ async getGuardPainSignals() {
6554
+ return getGuardPainSignals(this);
6555
+ }
6556
+ async getGuardAggregatedPainSignals() {
6557
+ return getGuardAggregatedPainSignals(this);
6558
+ }
6559
+ async getGuardPreInstallVerdict(payload) {
6560
+ return getGuardPreInstallVerdict(this, payload);
6561
+ }
6562
+ async getGuardPreExecutionVerdict(payload) {
6563
+ return getGuardPreExecutionVerdict(this, payload);
6564
+ }
6565
+ async addGuardWatchlistItem(payload) {
6566
+ return addGuardWatchlistItem(this, payload);
6567
+ }
6568
+ async removeGuardWatchlistItem(artifactId) {
6569
+ return removeGuardWatchlistItem(this, artifactId);
6570
+ }
6571
+ async addGuardException(payload) {
6572
+ return addGuardException(this, payload);
6573
+ }
6574
+ async requestGuardException(payload) {
6575
+ return requestGuardException(this, payload);
6576
+ }
6577
+ async removeGuardException(exceptionId) {
6578
+ return removeGuardException(this, exceptionId);
6579
+ }
6580
+ async ingestGuardPainSignals(items) {
6581
+ return ingestGuardPainSignals(this, items);
6582
+ }
5793
6583
  async syncGuardReceipts(payload) {
5794
6584
  return syncGuardReceipts(this, payload);
5795
6585
  }
6586
+ async syncGuardInventory(payload) {
6587
+ return syncGuardInventory(this, payload);
6588
+ }
6589
+ async submitGuardReceipts(payload) {
6590
+ return submitGuardReceipts(this, payload);
6591
+ }
6592
+ async getGuardTeamPolicyPack() {
6593
+ return getGuardTeamPolicyPack(this);
6594
+ }
6595
+ async updateGuardTeamPolicyPack(payload) {
6596
+ return updateGuardTeamPolicyPack(this, payload);
6597
+ }
5796
6598
  async createHbarPurchaseIntent(payload) {
5797
6599
  return createHbarPurchaseIntent(this, payload);
5798
6600
  }