@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.cjs CHANGED
@@ -975,10 +975,14 @@ var guardBucketBalanceSchema = import_zod2.z.object({
975
975
  });
976
976
  var guardPrincipalSchema = import_zod2.z.object({
977
977
  signedIn: import_zod2.z.boolean(),
978
+ principalType: import_zod2.z.enum(["user", "service"]).default("user"),
978
979
  userId: import_zod2.z.string().optional(),
979
980
  email: import_zod2.z.string().optional(),
980
981
  accountId: import_zod2.z.string().optional(),
981
982
  stripeCustomerId: import_zod2.z.string().optional(),
983
+ serviceId: import_zod2.z.string().optional(),
984
+ workspaceId: import_zod2.z.string().optional(),
985
+ serviceLabel: import_zod2.z.string().optional(),
982
986
  roles: import_zod2.z.array(import_zod2.z.string())
983
987
  });
984
988
  var guardEntitlementsSchema = import_zod2.z.object({
@@ -1005,6 +1009,65 @@ var guardBalanceResponseSchema = import_zod2.z.object({
1005
1009
  bucketingMode: import_zod2.z.enum(["shared-ledger", "product-bucketed"]),
1006
1010
  buckets: import_zod2.z.array(guardBucketBalanceSchema)
1007
1011
  });
1012
+ var guardFeedItemSchema = import_zod2.z.object({
1013
+ id: import_zod2.z.string(),
1014
+ artifactType: import_zod2.z.enum(["skill", "plugin"]),
1015
+ slug: import_zod2.z.string(),
1016
+ name: import_zod2.z.string(),
1017
+ href: import_zod2.z.string(),
1018
+ ecosystem: import_zod2.z.string().optional(),
1019
+ safetyScore: import_zod2.z.number().nullable().optional(),
1020
+ trustScore: import_zod2.z.number().nullable().optional(),
1021
+ verified: import_zod2.z.boolean(),
1022
+ recommendation: import_zod2.z.enum(["monitor", "review", "block"]),
1023
+ updatedAt: import_zod2.z.string()
1024
+ });
1025
+ var guardFeedSummarySchema = import_zod2.z.object({
1026
+ total: import_zod2.z.number(),
1027
+ monitorCount: import_zod2.z.number(),
1028
+ reviewCount: import_zod2.z.number(),
1029
+ blockCount: import_zod2.z.number()
1030
+ });
1031
+ var guardFeedResponseSchema = import_zod2.z.object({
1032
+ generatedAt: import_zod2.z.string(),
1033
+ items: import_zod2.z.array(guardFeedItemSchema),
1034
+ summary: guardFeedSummarySchema
1035
+ });
1036
+ var guardIntegrationSchema = import_zod2.z.object({
1037
+ id: import_zod2.z.enum(["openclaw", "hermes"]),
1038
+ name: import_zod2.z.string(),
1039
+ status: import_zod2.z.enum(["available", "planned"]),
1040
+ href: import_zod2.z.string().nullable(),
1041
+ summary: import_zod2.z.string()
1042
+ });
1043
+ var guardActionItemSchema = import_zod2.z.object({
1044
+ title: import_zod2.z.string(),
1045
+ description: import_zod2.z.string(),
1046
+ href: import_zod2.z.string()
1047
+ });
1048
+ var guardOverviewResponseSchema = import_zod2.z.object({
1049
+ generatedAt: import_zod2.z.string(),
1050
+ principal: guardPrincipalSchema,
1051
+ entitlements: guardEntitlementsSchema,
1052
+ balance: import_zod2.z.object({
1053
+ accountId: import_zod2.z.string(),
1054
+ availableCredits: import_zod2.z.number()
1055
+ }).nullable(),
1056
+ trustFeed: guardFeedResponseSchema,
1057
+ integrations: import_zod2.z.array(guardIntegrationSchema),
1058
+ actionItems: import_zod2.z.array(guardActionItemSchema)
1059
+ });
1060
+ var guardPolicySchema = import_zod2.z.object({
1061
+ mode: import_zod2.z.enum(["observe", "prompt", "enforce"]),
1062
+ defaultAction: import_zod2.z.enum(["allow", "warn", "block"]),
1063
+ unknownPublisherAction: import_zod2.z.enum(["review", "block", "allow"]),
1064
+ changedHashAction: import_zod2.z.enum(["allow", "warn", "require-reapproval", "block"]),
1065
+ newNetworkDomainAction: import_zod2.z.enum(["allow", "warn", "block"]),
1066
+ subprocessAction: import_zod2.z.enum(["allow", "warn", "block"]),
1067
+ telemetryEnabled: import_zod2.z.boolean(),
1068
+ syncEnabled: import_zod2.z.boolean(),
1069
+ updatedAt: import_zod2.z.string()
1070
+ });
1008
1071
  var guardTrustMatchSchema = import_zod2.z.object({
1009
1072
  artifactId: import_zod2.z.string(),
1010
1073
  artifactName: import_zod2.z.string(),
@@ -1040,7 +1103,13 @@ var guardRevocationSchema = import_zod2.z.object({
1040
1103
  artifactName: import_zod2.z.string(),
1041
1104
  reason: import_zod2.z.string(),
1042
1105
  severity: import_zod2.z.enum(["low", "medium", "high"]),
1043
- publishedAt: import_zod2.z.string()
1106
+ publishedAt: import_zod2.z.string(),
1107
+ confidence: import_zod2.z.number().optional(),
1108
+ remediation: import_zod2.z.string().nullable().optional(),
1109
+ scope: import_zod2.z.enum(["artifact", "publisher", "domain", "workspace", "ecosystem"]).optional(),
1110
+ source: import_zod2.z.string().optional(),
1111
+ firstSeenAt: import_zod2.z.string().optional(),
1112
+ lastUpdatedAt: import_zod2.z.string().optional()
1044
1113
  });
1045
1114
  var guardRevocationResponseSchema = import_zod2.z.object({
1046
1115
  generatedAt: import_zod2.z.string(),
@@ -1071,9 +1140,299 @@ var guardReceiptSchema = import_zod2.z.object({
1071
1140
  capabilities: import_zod2.z.array(import_zod2.z.string()),
1072
1141
  summary: import_zod2.z.string()
1073
1142
  });
1143
+ var guardHistoryArtifactSchema = import_zod2.z.object({
1144
+ artifactId: import_zod2.z.string(),
1145
+ artifactName: import_zod2.z.string(),
1146
+ artifactType: import_zod2.z.enum(["skill", "plugin"]),
1147
+ artifactSlug: import_zod2.z.string(),
1148
+ publisher: import_zod2.z.string().optional(),
1149
+ harnesses: import_zod2.z.array(import_zod2.z.string()),
1150
+ eventCount: import_zod2.z.number(),
1151
+ firstSeenAt: import_zod2.z.string(),
1152
+ lastSeenAt: import_zod2.z.string(),
1153
+ latestDecision: import_zod2.z.enum([
1154
+ "allow",
1155
+ "warn",
1156
+ "block",
1157
+ "review",
1158
+ "require-reapproval",
1159
+ "sandbox-required"
1160
+ ]),
1161
+ latestRecommendation: import_zod2.z.enum(["monitor", "review", "block"])
1162
+ });
1163
+ var guardReceiptHistoryResponseSchema = import_zod2.z.object({
1164
+ generatedAt: import_zod2.z.string(),
1165
+ artifacts: import_zod2.z.array(guardHistoryArtifactSchema)
1166
+ });
1167
+ var guardInventoryArtifactSchema = import_zod2.z.object({
1168
+ artifactId: import_zod2.z.string(),
1169
+ artifactName: import_zod2.z.string(),
1170
+ artifactType: import_zod2.z.enum(["skill", "plugin"]),
1171
+ artifactSlug: import_zod2.z.string(),
1172
+ publisher: import_zod2.z.string().optional(),
1173
+ harnesses: import_zod2.z.array(import_zod2.z.string()),
1174
+ devices: import_zod2.z.array(import_zod2.z.string()),
1175
+ eventCount: import_zod2.z.number(),
1176
+ firstSeenAt: import_zod2.z.string(),
1177
+ lastSeenAt: import_zod2.z.string(),
1178
+ latestDecision: import_zod2.z.enum([
1179
+ "allow",
1180
+ "warn",
1181
+ "block",
1182
+ "review",
1183
+ "require-reapproval",
1184
+ "sandbox-required"
1185
+ ]),
1186
+ latestRecommendation: import_zod2.z.enum(["monitor", "review", "block"]),
1187
+ latestHash: import_zod2.z.string(),
1188
+ latestSummary: import_zod2.z.string()
1189
+ });
1190
+ var guardInventoryDiffEntrySchema = import_zod2.z.object({
1191
+ artifactId: import_zod2.z.string(),
1192
+ artifactName: import_zod2.z.string(),
1193
+ artifactType: import_zod2.z.enum(["skill", "plugin"]),
1194
+ changeType: import_zod2.z.enum(["new", "changed", "removed"]),
1195
+ previousHash: import_zod2.z.string().nullable(),
1196
+ currentHash: import_zod2.z.string().nullable()
1197
+ });
1198
+ var guardInventoryDiffResponseSchema = import_zod2.z.object({
1199
+ generatedAt: import_zod2.z.string(),
1200
+ items: import_zod2.z.array(guardInventoryDiffEntrySchema)
1201
+ });
1074
1202
  var guardReceiptSyncResponseSchema = import_zod2.z.object({
1075
1203
  syncedAt: import_zod2.z.string(),
1076
- receiptsStored: import_zod2.z.number()
1204
+ receiptsStored: import_zod2.z.number(),
1205
+ inventoryStored: import_zod2.z.number().optional(),
1206
+ inventoryDiff: guardInventoryDiffResponseSchema.optional(),
1207
+ advisories: import_zod2.z.array(guardRevocationSchema).optional(),
1208
+ policy: guardPolicySchema.optional(),
1209
+ alertPreferences: import_zod2.z.lazy(() => guardAlertPreferencesSchema).optional(),
1210
+ exceptions: import_zod2.z.array(import_zod2.z.lazy(() => guardExceptionItemSchema)).optional(),
1211
+ teamPolicyPack: import_zod2.z.lazy(() => guardTeamPolicyPackSchema).optional()
1212
+ });
1213
+ var guardInventoryResponseSchema = import_zod2.z.object({
1214
+ generatedAt: import_zod2.z.string(),
1215
+ items: import_zod2.z.array(guardInventoryArtifactSchema)
1216
+ });
1217
+ var guardAbomSummarySchema = import_zod2.z.object({
1218
+ totalArtifacts: import_zod2.z.number(),
1219
+ totalDevices: import_zod2.z.number(),
1220
+ totalHarnesses: import_zod2.z.number(),
1221
+ blockedArtifacts: import_zod2.z.number(),
1222
+ reviewArtifacts: import_zod2.z.number()
1223
+ });
1224
+ var guardAbomResponseSchema = import_zod2.z.object({
1225
+ generatedAt: import_zod2.z.string(),
1226
+ summary: guardAbomSummarySchema,
1227
+ items: import_zod2.z.array(guardInventoryArtifactSchema)
1228
+ });
1229
+ var guardTimelineEventSchema = import_zod2.z.object({
1230
+ receiptId: import_zod2.z.string(),
1231
+ capturedAt: import_zod2.z.string(),
1232
+ harness: import_zod2.z.string(),
1233
+ deviceId: import_zod2.z.string(),
1234
+ deviceName: import_zod2.z.string(),
1235
+ artifactHash: import_zod2.z.string(),
1236
+ policyDecision: import_zod2.z.enum([
1237
+ "allow",
1238
+ "warn",
1239
+ "block",
1240
+ "review",
1241
+ "require-reapproval",
1242
+ "sandbox-required"
1243
+ ]),
1244
+ recommendation: import_zod2.z.enum(["monitor", "review", "block"]),
1245
+ changedSinceLastApproval: import_zod2.z.boolean(),
1246
+ summary: import_zod2.z.string(),
1247
+ capabilities: import_zod2.z.array(import_zod2.z.string()),
1248
+ publisher: import_zod2.z.string().optional()
1249
+ });
1250
+ var guardArtifactTimelineResponseSchema = import_zod2.z.object({
1251
+ generatedAt: import_zod2.z.string(),
1252
+ artifactId: import_zod2.z.string(),
1253
+ artifactName: import_zod2.z.string(),
1254
+ artifactType: import_zod2.z.enum(["skill", "plugin"]),
1255
+ artifactSlug: import_zod2.z.string(),
1256
+ events: import_zod2.z.array(guardTimelineEventSchema)
1257
+ });
1258
+ var guardReceiptExportSummarySchema = import_zod2.z.object({
1259
+ totalReceipts: import_zod2.z.number(),
1260
+ blockedCount: import_zod2.z.number(),
1261
+ reviewCount: import_zod2.z.number(),
1262
+ approvedCount: import_zod2.z.number()
1263
+ });
1264
+ var guardExportSignatureSchema = import_zod2.z.object({
1265
+ algorithm: import_zod2.z.enum(["hmac-sha256", "none"]),
1266
+ digest: import_zod2.z.string()
1267
+ });
1268
+ var guardReceiptExportResponseSchema = import_zod2.z.object({
1269
+ generatedAt: import_zod2.z.string(),
1270
+ summary: guardReceiptExportSummarySchema,
1271
+ provenanceSummary: import_zod2.z.array(import_zod2.z.string()),
1272
+ items: import_zod2.z.array(guardReceiptSchema),
1273
+ signature: guardExportSignatureSchema
1274
+ });
1275
+ var guardAlertPreferencesSchema = import_zod2.z.object({
1276
+ emailEnabled: import_zod2.z.boolean(),
1277
+ digestMode: import_zod2.z.enum(["immediate", "daily", "weekly"]),
1278
+ watchlistEnabled: import_zod2.z.boolean(),
1279
+ advisoriesEnabled: import_zod2.z.boolean(),
1280
+ repeatedWarningsEnabled: import_zod2.z.boolean(),
1281
+ teamAlertsEnabled: import_zod2.z.boolean(),
1282
+ updatedAt: import_zod2.z.string()
1283
+ });
1284
+ var guardWatchlistItemSchema = import_zod2.z.object({
1285
+ artifactId: import_zod2.z.string(),
1286
+ artifactName: import_zod2.z.string(),
1287
+ artifactType: import_zod2.z.enum(["skill", "plugin"]),
1288
+ artifactSlug: import_zod2.z.string(),
1289
+ reason: import_zod2.z.string(),
1290
+ source: import_zod2.z.enum(["manual", "synced", "team-policy"]),
1291
+ createdAt: import_zod2.z.string()
1292
+ });
1293
+ var guardWatchlistResponseSchema = import_zod2.z.object({
1294
+ generatedAt: import_zod2.z.string(),
1295
+ items: import_zod2.z.array(guardWatchlistItemSchema)
1296
+ });
1297
+ var guardWatchlistLookupMatchSchema = import_zod2.z.object({
1298
+ artifactId: import_zod2.z.string().nullable(),
1299
+ publisher: import_zod2.z.string().nullable(),
1300
+ domain: import_zod2.z.string().nullable(),
1301
+ source: import_zod2.z.enum(["watchlist", "team-policy"]),
1302
+ reason: import_zod2.z.string()
1303
+ });
1304
+ var guardWatchlistLookupResponseSchema = import_zod2.z.object({
1305
+ generatedAt: import_zod2.z.string(),
1306
+ matched: import_zod2.z.boolean(),
1307
+ scope: import_zod2.z.enum(["artifact", "publisher", "domain", "none"]),
1308
+ item: guardWatchlistLookupMatchSchema.nullable()
1309
+ });
1310
+ var guardPainSignalSchema = import_zod2.z.object({
1311
+ signalId: import_zod2.z.string(),
1312
+ signalName: import_zod2.z.string(),
1313
+ artifactId: import_zod2.z.string(),
1314
+ artifactName: import_zod2.z.string(),
1315
+ artifactType: import_zod2.z.enum(["skill", "plugin"]),
1316
+ harness: import_zod2.z.string(),
1317
+ latestSummary: import_zod2.z.string(),
1318
+ firstSeenAt: import_zod2.z.string(),
1319
+ lastSeenAt: import_zod2.z.string(),
1320
+ count: import_zod2.z.number(),
1321
+ source: import_zod2.z.literal("scanner"),
1322
+ publisher: import_zod2.z.string().optional()
1323
+ });
1324
+ var guardPainSignalListResponseSchema = import_zod2.z.object({
1325
+ generatedAt: import_zod2.z.string(),
1326
+ items: import_zod2.z.array(guardPainSignalSchema)
1327
+ });
1328
+ var guardPainSignalAggregateSchema = import_zod2.z.object({
1329
+ artifactId: import_zod2.z.string(),
1330
+ artifactName: import_zod2.z.string(),
1331
+ artifactType: import_zod2.z.enum(["skill", "plugin"]),
1332
+ signalName: import_zod2.z.string(),
1333
+ latestSummary: import_zod2.z.string(),
1334
+ firstSeenAt: import_zod2.z.string(),
1335
+ lastSeenAt: import_zod2.z.string(),
1336
+ totalCount: import_zod2.z.number(),
1337
+ consumerCount: import_zod2.z.number(),
1338
+ harnesses: import_zod2.z.array(import_zod2.z.string()),
1339
+ publishers: import_zod2.z.array(import_zod2.z.string())
1340
+ });
1341
+ var guardPainSignalAggregateResponseSchema = import_zod2.z.object({
1342
+ generatedAt: import_zod2.z.string(),
1343
+ summary: import_zod2.z.object({
1344
+ totalSignals: import_zod2.z.number(),
1345
+ uniqueArtifacts: import_zod2.z.number(),
1346
+ uniqueConsumers: import_zod2.z.number()
1347
+ }),
1348
+ items: import_zod2.z.array(guardPainSignalAggregateSchema)
1349
+ });
1350
+ var guardExceptionItemSchema = import_zod2.z.object({
1351
+ exceptionId: import_zod2.z.string(),
1352
+ scope: import_zod2.z.enum(["artifact", "publisher", "harness", "global"]),
1353
+ harness: import_zod2.z.string().nullable(),
1354
+ artifactId: import_zod2.z.string().nullable(),
1355
+ publisher: import_zod2.z.string().nullable(),
1356
+ reason: import_zod2.z.string(),
1357
+ owner: import_zod2.z.string(),
1358
+ source: import_zod2.z.enum(["manual", "team-policy"]),
1359
+ expiresAt: import_zod2.z.string(),
1360
+ createdAt: import_zod2.z.string(),
1361
+ updatedAt: import_zod2.z.string()
1362
+ });
1363
+ var guardExceptionListResponseSchema = import_zod2.z.object({
1364
+ generatedAt: import_zod2.z.string(),
1365
+ items: import_zod2.z.array(guardExceptionItemSchema)
1366
+ });
1367
+ var guardPreflightEvidenceSchema = import_zod2.z.object({
1368
+ category: import_zod2.z.enum([
1369
+ "policy",
1370
+ "trust",
1371
+ "watchlist",
1372
+ "team-policy",
1373
+ "exception"
1374
+ ]),
1375
+ source: import_zod2.z.string(),
1376
+ detail: import_zod2.z.string()
1377
+ });
1378
+ var guardPreflightRequestSchema = import_zod2.z.object({
1379
+ harness: import_zod2.z.string(),
1380
+ artifactName: import_zod2.z.string(),
1381
+ artifactType: import_zod2.z.enum(["skill", "plugin"]),
1382
+ artifactId: import_zod2.z.string().optional(),
1383
+ artifactSlug: import_zod2.z.string().optional(),
1384
+ artifactHash: import_zod2.z.string().optional(),
1385
+ publisher: import_zod2.z.string().optional(),
1386
+ domain: import_zod2.z.string().optional(),
1387
+ launchSummary: import_zod2.z.string().optional(),
1388
+ capabilities: import_zod2.z.array(import_zod2.z.string()).optional(),
1389
+ workspacePath: import_zod2.z.string().optional()
1390
+ });
1391
+ var guardPreflightVerdictResponseSchema = import_zod2.z.object({
1392
+ generatedAt: import_zod2.z.string(),
1393
+ principal: guardPrincipalSchema,
1394
+ decision: import_zod2.z.enum(["allow", "review", "block"]),
1395
+ recommendation: import_zod2.z.enum(["monitor", "review", "block"]),
1396
+ rationale: import_zod2.z.string(),
1397
+ category: import_zod2.z.enum(["exception", "team-policy", "watchlist", "trust", "policy"]).optional(),
1398
+ confidence: import_zod2.z.number().optional(),
1399
+ freshnessTimestamp: import_zod2.z.string().optional(),
1400
+ evidenceSources: import_zod2.z.array(import_zod2.z.string()).optional(),
1401
+ scope: import_zod2.z.enum(["artifact", "publisher", "domain", "policy"]),
1402
+ matchedEvidence: import_zod2.z.array(guardPreflightEvidenceSchema),
1403
+ matchedException: guardExceptionItemSchema.nullable(),
1404
+ trustMatch: guardTrustMatchSchema.nullable()
1405
+ });
1406
+ var guardTeamPolicyAuditItemSchema = import_zod2.z.object({
1407
+ changedAt: import_zod2.z.string(),
1408
+ actor: import_zod2.z.string(),
1409
+ change: import_zod2.z.enum(["created", "updated"]),
1410
+ summary: import_zod2.z.string()
1411
+ });
1412
+ var guardTeamPolicyPackSchema = import_zod2.z.object({
1413
+ name: import_zod2.z.string(),
1414
+ sharedHarnessDefaults: import_zod2.z.record(
1415
+ import_zod2.z.string(),
1416
+ import_zod2.z.enum(["observe", "prompt", "enforce"])
1417
+ ),
1418
+ allowedPublishers: import_zod2.z.array(import_zod2.z.string()),
1419
+ blockedPublishers: import_zod2.z.array(import_zod2.z.string()).optional(),
1420
+ blockedDomains: import_zod2.z.array(import_zod2.z.string()).optional(),
1421
+ blockedArtifacts: import_zod2.z.array(import_zod2.z.string()),
1422
+ alertChannel: import_zod2.z.enum(["email", "slack", "teams", "webhook"]),
1423
+ updatedAt: import_zod2.z.string(),
1424
+ auditTrail: import_zod2.z.array(guardTeamPolicyAuditItemSchema)
1425
+ });
1426
+ var guardDeviceSchema = import_zod2.z.object({
1427
+ deviceId: import_zod2.z.string(),
1428
+ deviceName: import_zod2.z.string(),
1429
+ harnesses: import_zod2.z.array(import_zod2.z.string()),
1430
+ receiptCount: import_zod2.z.number(),
1431
+ lastSeenAt: import_zod2.z.string()
1432
+ });
1433
+ var guardDeviceListResponseSchema = import_zod2.z.object({
1434
+ generatedAt: import_zod2.z.string(),
1435
+ items: import_zod2.z.array(guardDeviceSchema)
1077
1436
  });
1078
1437
  var hbarPurchaseIntentResponseSchema = import_zod2.z.object({
1079
1438
  transaction: import_zod2.z.string(),
@@ -1473,13 +1832,11 @@ var skillDeprecationsResponseSchema = import_zod2.z.object({
1473
1832
  name: import_zod2.z.string(),
1474
1833
  items: import_zod2.z.array(skillDeprecationRecordSchema)
1475
1834
  }).passthrough();
1476
- var skillSecurityBreakdownFindingSchema = import_zod2.z.record(jsonValueSchema);
1477
- var skillSecurityBreakdownSummarySchema = import_zod2.z.record(jsonValueSchema);
1478
1835
  var skillSecurityBreakdownResponseSchema = import_zod2.z.object({
1479
1836
  jobId: import_zod2.z.string(),
1480
1837
  score: import_zod2.z.number().nullable().optional(),
1481
- findings: import_zod2.z.array(skillSecurityBreakdownFindingSchema).optional(),
1482
- summary: skillSecurityBreakdownSummarySchema.optional(),
1838
+ findings: import_zod2.z.array(jsonValueSchema).optional(),
1839
+ summary: jsonValueSchema.optional(),
1483
1840
  generatedAt: import_zod2.z.string().nullable().optional(),
1484
1841
  scannerVersion: import_zod2.z.string().nullable().optional()
1485
1842
  }).passthrough();
@@ -3966,6 +4323,32 @@ async function getGuardBillingBalance(client) {
3966
4323
  "guard billing balance response"
3967
4324
  );
3968
4325
  }
4326
+ async function getGuardFeed(client, limit) {
4327
+ const params = new URLSearchParams();
4328
+ if (typeof limit === "number" && Number.isFinite(limit) && Math.trunc(limit) > 0) {
4329
+ params.set("limit", String(Math.trunc(limit)));
4330
+ }
4331
+ const query = params.toString();
4332
+ const suffix = query ? `?${query}` : "";
4333
+ const raw = await client.requestJson(`/guard/feed${suffix}`, {
4334
+ method: "GET"
4335
+ });
4336
+ return client.parseWithSchema(
4337
+ raw,
4338
+ guardFeedResponseSchema,
4339
+ "guard feed response"
4340
+ );
4341
+ }
4342
+ async function getGuardOverview(client) {
4343
+ const raw = await client.requestJson("/guard/overview", {
4344
+ method: "GET"
4345
+ });
4346
+ return client.parseWithSchema(
4347
+ raw,
4348
+ guardOverviewResponseSchema,
4349
+ "guard overview response"
4350
+ );
4351
+ }
3969
4352
  async function getGuardTrustByHash(client, sha256) {
3970
4353
  const normalizedHash = sha256.trim();
3971
4354
  if (!normalizedHash) {
@@ -4013,10 +4396,336 @@ async function getGuardRevocations(client) {
4013
4396
  "guard revocations response"
4014
4397
  );
4015
4398
  }
4399
+ async function fetchGuardAdvisories(client) {
4400
+ const raw = await client.requestJson("/guard/advisories", {
4401
+ method: "GET"
4402
+ });
4403
+ return client.parseWithSchema(
4404
+ raw,
4405
+ guardRevocationResponseSchema,
4406
+ "guard advisories response"
4407
+ );
4408
+ }
4409
+ async function fetchGuardPolicy(client) {
4410
+ const raw = await client.requestJson("/guard/policy/fetch", {
4411
+ method: "GET"
4412
+ });
4413
+ return client.parseWithSchema(
4414
+ raw,
4415
+ guardPolicySchema,
4416
+ "guard policy response"
4417
+ );
4418
+ }
4419
+ async function getGuardInventory(client) {
4420
+ const raw = await client.requestJson("/guard/inventory", {
4421
+ method: "GET"
4422
+ });
4423
+ return client.parseWithSchema(
4424
+ raw,
4425
+ guardInventoryResponseSchema,
4426
+ "guard inventory response"
4427
+ );
4428
+ }
4429
+ async function getGuardReceiptHistory(client) {
4430
+ const raw = await client.requestJson("/guard/history", {
4431
+ method: "GET"
4432
+ });
4433
+ return client.parseWithSchema(
4434
+ raw,
4435
+ guardReceiptHistoryResponseSchema,
4436
+ "guard receipt history response"
4437
+ );
4438
+ }
4439
+ async function getGuardArtifactTimeline(client, artifactId) {
4440
+ const normalizedArtifactId = artifactId.trim();
4441
+ if (!normalizedArtifactId) {
4442
+ throw new Error("artifactId is required");
4443
+ }
4444
+ const raw = await client.requestJson(
4445
+ `/guard/history/${encodeURIComponent(normalizedArtifactId)}`,
4446
+ { method: "GET" }
4447
+ );
4448
+ return client.parseWithSchema(
4449
+ raw,
4450
+ guardArtifactTimelineResponseSchema,
4451
+ "guard artifact timeline response"
4452
+ );
4453
+ }
4454
+ async function exportGuardAbom(client) {
4455
+ const raw = await client.requestJson("/guard/abom", {
4456
+ method: "GET"
4457
+ });
4458
+ return client.parseWithSchema(
4459
+ raw,
4460
+ guardAbomResponseSchema,
4461
+ "guard abom response"
4462
+ );
4463
+ }
4464
+ async function exportGuardArtifactAbom(client, artifactId) {
4465
+ const normalizedArtifactId = artifactId.trim();
4466
+ if (!normalizedArtifactId) {
4467
+ throw new Error("artifactId is required");
4468
+ }
4469
+ const raw = await client.requestJson(
4470
+ `/guard/abom/${encodeURIComponent(normalizedArtifactId)}`,
4471
+ { method: "GET" }
4472
+ );
4473
+ return client.parseWithSchema(
4474
+ raw,
4475
+ guardAbomResponseSchema,
4476
+ "guard artifact abom response"
4477
+ );
4478
+ }
4479
+ async function exportGuardReceipts(client) {
4480
+ const raw = await client.requestJson("/guard/receipts/export", {
4481
+ method: "GET"
4482
+ });
4483
+ return client.parseWithSchema(
4484
+ raw,
4485
+ guardReceiptExportResponseSchema,
4486
+ "guard receipt export response"
4487
+ );
4488
+ }
4489
+ async function getGuardInventoryDiff(client) {
4490
+ const raw = await client.requestJson("/guard/inventory/diff", {
4491
+ method: "GET"
4492
+ });
4493
+ return client.parseWithSchema(
4494
+ raw,
4495
+ guardInventoryDiffResponseSchema,
4496
+ "guard inventory diff response"
4497
+ );
4498
+ }
4499
+ async function getGuardDevices(client) {
4500
+ const raw = await client.requestJson("/guard/devices", {
4501
+ method: "GET"
4502
+ });
4503
+ return client.parseWithSchema(
4504
+ raw,
4505
+ guardDeviceListResponseSchema,
4506
+ "guard devices response"
4507
+ );
4508
+ }
4509
+ async function getGuardAlertPreferences(client) {
4510
+ const raw = await client.requestJson("/guard/alerts/preferences", {
4511
+ method: "GET"
4512
+ });
4513
+ return client.parseWithSchema(
4514
+ raw,
4515
+ guardAlertPreferencesSchema,
4516
+ "guard alert preferences response"
4517
+ );
4518
+ }
4519
+ async function updateGuardAlertPreferences(client, payload) {
4520
+ const raw = await client.requestJson("/guard/alerts/preferences", {
4521
+ method: "PUT",
4522
+ body: payload
4523
+ });
4524
+ return client.parseWithSchema(
4525
+ raw,
4526
+ guardAlertPreferencesSchema,
4527
+ "guard alert preferences response"
4528
+ );
4529
+ }
4530
+ async function getGuardExceptions(client) {
4531
+ const raw = await client.requestJson("/guard/exceptions", {
4532
+ method: "GET"
4533
+ });
4534
+ return client.parseWithSchema(
4535
+ raw,
4536
+ guardExceptionListResponseSchema,
4537
+ "guard exceptions response"
4538
+ );
4539
+ }
4540
+ async function getGuardWatchlist(client) {
4541
+ const raw = await client.requestJson("/guard/watchlist", {
4542
+ method: "GET"
4543
+ });
4544
+ return client.parseWithSchema(
4545
+ raw,
4546
+ guardWatchlistResponseSchema,
4547
+ "guard watchlist response"
4548
+ );
4549
+ }
4550
+ async function lookupGuardWatchlist(client, payload) {
4551
+ const raw = await client.requestJson("/guard/watchlist/lookup", {
4552
+ method: "POST",
4553
+ body: payload
4554
+ });
4555
+ return client.parseWithSchema(
4556
+ raw,
4557
+ guardWatchlistLookupResponseSchema,
4558
+ "guard watchlist lookup response"
4559
+ );
4560
+ }
4561
+ async function getGuardPainSignals(client) {
4562
+ const raw = await client.requestJson("/guard/signals/pain", {
4563
+ method: "GET"
4564
+ });
4565
+ return client.parseWithSchema(
4566
+ raw,
4567
+ guardPainSignalListResponseSchema,
4568
+ "guard pain signals response"
4569
+ );
4570
+ }
4571
+ async function getGuardAggregatedPainSignals(client) {
4572
+ const raw = await client.requestJson(
4573
+ "/guard/signals/pain/aggregate",
4574
+ {
4575
+ method: "GET"
4576
+ }
4577
+ );
4578
+ return client.parseWithSchema(
4579
+ raw,
4580
+ guardPainSignalAggregateResponseSchema,
4581
+ "guard aggregated pain signals response"
4582
+ );
4583
+ }
4584
+ async function getGuardPreflightVerdict(client, path, payload) {
4585
+ const raw = await client.requestJson(path, {
4586
+ method: "POST",
4587
+ body: payload
4588
+ });
4589
+ return client.parseWithSchema(
4590
+ raw,
4591
+ guardPreflightVerdictResponseSchema,
4592
+ "guard preflight verdict response"
4593
+ );
4594
+ }
4595
+ async function getGuardPreInstallVerdict(client, payload) {
4596
+ return getGuardPreflightVerdict(
4597
+ client,
4598
+ "/guard/verdict/pre-install",
4599
+ payload
4600
+ );
4601
+ }
4602
+ async function getGuardPreExecutionVerdict(client, payload) {
4603
+ return getGuardPreflightVerdict(
4604
+ client,
4605
+ "/guard/verdict/pre-execution",
4606
+ payload
4607
+ );
4608
+ }
4609
+ async function ingestGuardPainSignals(client, items) {
4610
+ const raw = await client.requestJson("/guard/signals/pain", {
4611
+ method: "POST",
4612
+ body: { items }
4613
+ });
4614
+ return client.parseWithSchema(
4615
+ raw,
4616
+ guardPainSignalListResponseSchema,
4617
+ "guard pain signals response"
4618
+ );
4619
+ }
4620
+ async function submitGuardReceipts(client, payload) {
4621
+ const raw = await client.requestJson("/guard/receipts/submit", {
4622
+ method: "POST",
4623
+ body: payload
4624
+ });
4625
+ return client.parseWithSchema(
4626
+ raw,
4627
+ guardReceiptSyncResponseSchema,
4628
+ "guard receipt submit response"
4629
+ );
4630
+ }
4631
+ async function addGuardWatchlistItem(client, payload) {
4632
+ const raw = await client.requestJson("/guard/watchlist", {
4633
+ method: "POST",
4634
+ body: payload
4635
+ });
4636
+ return client.parseWithSchema(
4637
+ raw,
4638
+ guardWatchlistResponseSchema,
4639
+ "guard watchlist response"
4640
+ );
4641
+ }
4642
+ async function removeGuardWatchlistItem(client, artifactId) {
4643
+ const normalizedArtifactId = artifactId.trim();
4644
+ if (!normalizedArtifactId) {
4645
+ throw new Error("artifactId is required");
4646
+ }
4647
+ const raw = await client.requestJson(
4648
+ `/guard/watchlist/${encodeURIComponent(normalizedArtifactId)}`,
4649
+ { method: "DELETE" }
4650
+ );
4651
+ return client.parseWithSchema(
4652
+ raw,
4653
+ guardWatchlistResponseSchema,
4654
+ "guard watchlist response"
4655
+ );
4656
+ }
4657
+ async function addGuardException(client, payload) {
4658
+ const raw = await client.requestJson("/guard/exceptions", {
4659
+ method: "POST",
4660
+ body: payload
4661
+ });
4662
+ return client.parseWithSchema(
4663
+ raw,
4664
+ guardExceptionListResponseSchema,
4665
+ "guard exceptions response"
4666
+ );
4667
+ }
4668
+ async function requestGuardException(client, payload) {
4669
+ const raw = await client.requestJson("/guard/exceptions/request", {
4670
+ method: "POST",
4671
+ body: payload
4672
+ });
4673
+ return client.parseWithSchema(
4674
+ raw,
4675
+ guardExceptionListResponseSchema,
4676
+ "guard exception request response"
4677
+ );
4678
+ }
4679
+ async function syncGuardInventory(client, payload) {
4680
+ const raw = await client.requestJson("/guard/inventory/sync", {
4681
+ method: "POST",
4682
+ body: payload
4683
+ });
4684
+ return client.parseWithSchema(
4685
+ raw,
4686
+ guardReceiptSyncResponseSchema,
4687
+ "guard inventory sync response"
4688
+ );
4689
+ }
4690
+ async function removeGuardException(client, exceptionId) {
4691
+ const normalizedExceptionId = exceptionId.trim();
4692
+ if (!normalizedExceptionId) {
4693
+ throw new Error("exceptionId is required");
4694
+ }
4695
+ const raw = await client.requestJson(
4696
+ `/guard/exceptions/${encodeURIComponent(normalizedExceptionId)}`,
4697
+ { method: "DELETE" }
4698
+ );
4699
+ return client.parseWithSchema(
4700
+ raw,
4701
+ guardExceptionListResponseSchema,
4702
+ "guard exceptions response"
4703
+ );
4704
+ }
4705
+ async function getGuardTeamPolicyPack(client) {
4706
+ const raw = await client.requestJson("/guard/team/policy-pack", {
4707
+ method: "GET"
4708
+ });
4709
+ return client.parseWithSchema(
4710
+ raw,
4711
+ guardTeamPolicyPackSchema,
4712
+ "guard team policy pack response"
4713
+ );
4714
+ }
4715
+ async function updateGuardTeamPolicyPack(client, payload) {
4716
+ const raw = await client.requestJson("/guard/team/policy-pack", {
4717
+ method: "PUT",
4718
+ body: payload
4719
+ });
4720
+ return client.parseWithSchema(
4721
+ raw,
4722
+ guardTeamPolicyPackSchema,
4723
+ "guard team policy pack response"
4724
+ );
4725
+ }
4016
4726
  async function syncGuardReceipts(client, payload) {
4017
4727
  const raw = await client.requestJson("/guard/receipts/sync", {
4018
4728
  method: "POST",
4019
- headers: { "content-type": "application/json" },
4020
4729
  body: payload
4021
4730
  });
4022
4731
  return client.parseWithSchema(
@@ -5841,6 +6550,12 @@ var RegistryBrokerClient = class _RegistryBrokerClient {
5841
6550
  async getGuardBillingBalance() {
5842
6551
  return getGuardBillingBalance(this);
5843
6552
  }
6553
+ async getGuardFeed(limit) {
6554
+ return getGuardFeed(this, limit);
6555
+ }
6556
+ async getGuardOverview() {
6557
+ return getGuardOverview(this);
6558
+ }
5844
6559
  async getGuardTrustByHash(sha256) {
5845
6560
  return getGuardTrustByHash(this, sha256);
5846
6561
  }
@@ -5850,9 +6565,96 @@ var RegistryBrokerClient = class _RegistryBrokerClient {
5850
6565
  async getGuardRevocations() {
5851
6566
  return getGuardRevocations(this);
5852
6567
  }
6568
+ async fetchGuardAdvisories() {
6569
+ return fetchGuardAdvisories(this);
6570
+ }
6571
+ async fetchGuardPolicy() {
6572
+ return fetchGuardPolicy(this);
6573
+ }
6574
+ async getGuardInventory() {
6575
+ return getGuardInventory(this);
6576
+ }
6577
+ async getGuardReceiptHistory() {
6578
+ return getGuardReceiptHistory(this);
6579
+ }
6580
+ async getGuardArtifactTimeline(artifactId) {
6581
+ return getGuardArtifactTimeline(this, artifactId);
6582
+ }
6583
+ async getGuardInventoryDiff() {
6584
+ return getGuardInventoryDiff(this);
6585
+ }
6586
+ async exportGuardAbom() {
6587
+ return exportGuardAbom(this);
6588
+ }
6589
+ async exportGuardArtifactAbom(artifactId) {
6590
+ return exportGuardArtifactAbom(this, artifactId);
6591
+ }
6592
+ async exportGuardReceipts() {
6593
+ return exportGuardReceipts(this);
6594
+ }
6595
+ async getGuardDevices() {
6596
+ return getGuardDevices(this);
6597
+ }
6598
+ async getGuardAlertPreferences() {
6599
+ return getGuardAlertPreferences(this);
6600
+ }
6601
+ async updateGuardAlertPreferences(payload) {
6602
+ return updateGuardAlertPreferences(this, payload);
6603
+ }
6604
+ async getGuardExceptions() {
6605
+ return getGuardExceptions(this);
6606
+ }
6607
+ async getGuardWatchlist() {
6608
+ return getGuardWatchlist(this);
6609
+ }
6610
+ async lookupGuardWatchlist(payload) {
6611
+ return lookupGuardWatchlist(this, payload);
6612
+ }
6613
+ async getGuardPainSignals() {
6614
+ return getGuardPainSignals(this);
6615
+ }
6616
+ async getGuardAggregatedPainSignals() {
6617
+ return getGuardAggregatedPainSignals(this);
6618
+ }
6619
+ async getGuardPreInstallVerdict(payload) {
6620
+ return getGuardPreInstallVerdict(this, payload);
6621
+ }
6622
+ async getGuardPreExecutionVerdict(payload) {
6623
+ return getGuardPreExecutionVerdict(this, payload);
6624
+ }
6625
+ async addGuardWatchlistItem(payload) {
6626
+ return addGuardWatchlistItem(this, payload);
6627
+ }
6628
+ async removeGuardWatchlistItem(artifactId) {
6629
+ return removeGuardWatchlistItem(this, artifactId);
6630
+ }
6631
+ async addGuardException(payload) {
6632
+ return addGuardException(this, payload);
6633
+ }
6634
+ async requestGuardException(payload) {
6635
+ return requestGuardException(this, payload);
6636
+ }
6637
+ async removeGuardException(exceptionId) {
6638
+ return removeGuardException(this, exceptionId);
6639
+ }
6640
+ async ingestGuardPainSignals(items) {
6641
+ return ingestGuardPainSignals(this, items);
6642
+ }
5853
6643
  async syncGuardReceipts(payload) {
5854
6644
  return syncGuardReceipts(this, payload);
5855
6645
  }
6646
+ async syncGuardInventory(payload) {
6647
+ return syncGuardInventory(this, payload);
6648
+ }
6649
+ async submitGuardReceipts(payload) {
6650
+ return submitGuardReceipts(this, payload);
6651
+ }
6652
+ async getGuardTeamPolicyPack() {
6653
+ return getGuardTeamPolicyPack(this);
6654
+ }
6655
+ async updateGuardTeamPolicyPack(payload) {
6656
+ return updateGuardTeamPolicyPack(this, payload);
6657
+ }
5856
6658
  async createHbarPurchaseIntent(payload) {
5857
6659
  return createHbarPurchaseIntent(this, payload);
5858
6660
  }