@hol-org/rb-client 0.1.179 → 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 +382 -7
- package/dist/index.d.cts +1675 -170
- package/dist/index.d.ts +1675 -170
- package/dist/index.js +382 -7
- package/package.json +1 -1
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(),
|
|
@@ -1134,7 +1203,12 @@ var guardReceiptSyncResponseSchema = import_zod2.z.object({
|
|
|
1134
1203
|
syncedAt: import_zod2.z.string(),
|
|
1135
1204
|
receiptsStored: import_zod2.z.number(),
|
|
1136
1205
|
inventoryStored: import_zod2.z.number().optional(),
|
|
1137
|
-
inventoryDiff: guardInventoryDiffResponseSchema.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()
|
|
1138
1212
|
});
|
|
1139
1213
|
var guardInventoryResponseSchema = import_zod2.z.object({
|
|
1140
1214
|
generatedAt: import_zod2.z.string(),
|
|
@@ -1220,6 +1294,59 @@ var guardWatchlistResponseSchema = import_zod2.z.object({
|
|
|
1220
1294
|
generatedAt: import_zod2.z.string(),
|
|
1221
1295
|
items: import_zod2.z.array(guardWatchlistItemSchema)
|
|
1222
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
|
+
});
|
|
1223
1350
|
var guardExceptionItemSchema = import_zod2.z.object({
|
|
1224
1351
|
exceptionId: import_zod2.z.string(),
|
|
1225
1352
|
scope: import_zod2.z.enum(["artifact", "publisher", "harness", "global"]),
|
|
@@ -1237,6 +1364,45 @@ var guardExceptionListResponseSchema = import_zod2.z.object({
|
|
|
1237
1364
|
generatedAt: import_zod2.z.string(),
|
|
1238
1365
|
items: import_zod2.z.array(guardExceptionItemSchema)
|
|
1239
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
|
+
});
|
|
1240
1406
|
var guardTeamPolicyAuditItemSchema = import_zod2.z.object({
|
|
1241
1407
|
changedAt: import_zod2.z.string(),
|
|
1242
1408
|
actor: import_zod2.z.string(),
|
|
@@ -1245,8 +1411,13 @@ var guardTeamPolicyAuditItemSchema = import_zod2.z.object({
|
|
|
1245
1411
|
});
|
|
1246
1412
|
var guardTeamPolicyPackSchema = import_zod2.z.object({
|
|
1247
1413
|
name: import_zod2.z.string(),
|
|
1248
|
-
sharedHarnessDefaults: import_zod2.z.record(
|
|
1414
|
+
sharedHarnessDefaults: import_zod2.z.record(
|
|
1415
|
+
import_zod2.z.string(),
|
|
1416
|
+
import_zod2.z.enum(["observe", "prompt", "enforce"])
|
|
1417
|
+
),
|
|
1249
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(),
|
|
1250
1421
|
blockedArtifacts: import_zod2.z.array(import_zod2.z.string()),
|
|
1251
1422
|
alertChannel: import_zod2.z.enum(["email", "slack", "teams", "webhook"]),
|
|
1252
1423
|
updatedAt: import_zod2.z.string(),
|
|
@@ -1661,13 +1832,11 @@ var skillDeprecationsResponseSchema = import_zod2.z.object({
|
|
|
1661
1832
|
name: import_zod2.z.string(),
|
|
1662
1833
|
items: import_zod2.z.array(skillDeprecationRecordSchema)
|
|
1663
1834
|
}).passthrough();
|
|
1664
|
-
var skillSecurityBreakdownFindingSchema = import_zod2.z.record(jsonValueSchema);
|
|
1665
|
-
var skillSecurityBreakdownSummarySchema = import_zod2.z.record(jsonValueSchema);
|
|
1666
1835
|
var skillSecurityBreakdownResponseSchema = import_zod2.z.object({
|
|
1667
1836
|
jobId: import_zod2.z.string(),
|
|
1668
1837
|
score: import_zod2.z.number().nullable().optional(),
|
|
1669
|
-
findings: import_zod2.z.array(
|
|
1670
|
-
summary:
|
|
1838
|
+
findings: import_zod2.z.array(jsonValueSchema).optional(),
|
|
1839
|
+
summary: jsonValueSchema.optional(),
|
|
1671
1840
|
generatedAt: import_zod2.z.string().nullable().optional(),
|
|
1672
1841
|
scannerVersion: import_zod2.z.string().nullable().optional()
|
|
1673
1842
|
}).passthrough();
|
|
@@ -4154,6 +4323,32 @@ async function getGuardBillingBalance(client) {
|
|
|
4154
4323
|
"guard billing balance response"
|
|
4155
4324
|
);
|
|
4156
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
|
+
}
|
|
4157
4352
|
async function getGuardTrustByHash(client, sha256) {
|
|
4158
4353
|
const normalizedHash = sha256.trim();
|
|
4159
4354
|
if (!normalizedHash) {
|
|
@@ -4201,6 +4396,26 @@ async function getGuardRevocations(client) {
|
|
|
4201
4396
|
"guard revocations response"
|
|
4202
4397
|
);
|
|
4203
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
|
+
}
|
|
4204
4419
|
async function getGuardInventory(client) {
|
|
4205
4420
|
const raw = await client.requestJson("/guard/inventory", {
|
|
4206
4421
|
method: "GET"
|
|
@@ -4246,6 +4461,21 @@ async function exportGuardAbom(client) {
|
|
|
4246
4461
|
"guard abom response"
|
|
4247
4462
|
);
|
|
4248
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
|
+
}
|
|
4249
4479
|
async function exportGuardReceipts(client) {
|
|
4250
4480
|
const raw = await client.requestJson("/guard/receipts/export", {
|
|
4251
4481
|
method: "GET"
|
|
@@ -4317,6 +4547,87 @@ async function getGuardWatchlist(client) {
|
|
|
4317
4547
|
"guard watchlist response"
|
|
4318
4548
|
);
|
|
4319
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
|
+
}
|
|
4320
4631
|
async function addGuardWatchlistItem(client, payload) {
|
|
4321
4632
|
const raw = await client.requestJson("/guard/watchlist", {
|
|
4322
4633
|
method: "POST",
|
|
@@ -4354,6 +4665,28 @@ async function addGuardException(client, payload) {
|
|
|
4354
4665
|
"guard exceptions response"
|
|
4355
4666
|
);
|
|
4356
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
|
+
}
|
|
4357
4690
|
async function removeGuardException(client, exceptionId) {
|
|
4358
4691
|
const normalizedExceptionId = exceptionId.trim();
|
|
4359
4692
|
if (!normalizedExceptionId) {
|
|
@@ -6217,6 +6550,12 @@ var RegistryBrokerClient = class _RegistryBrokerClient {
|
|
|
6217
6550
|
async getGuardBillingBalance() {
|
|
6218
6551
|
return getGuardBillingBalance(this);
|
|
6219
6552
|
}
|
|
6553
|
+
async getGuardFeed(limit) {
|
|
6554
|
+
return getGuardFeed(this, limit);
|
|
6555
|
+
}
|
|
6556
|
+
async getGuardOverview() {
|
|
6557
|
+
return getGuardOverview(this);
|
|
6558
|
+
}
|
|
6220
6559
|
async getGuardTrustByHash(sha256) {
|
|
6221
6560
|
return getGuardTrustByHash(this, sha256);
|
|
6222
6561
|
}
|
|
@@ -6226,6 +6565,12 @@ var RegistryBrokerClient = class _RegistryBrokerClient {
|
|
|
6226
6565
|
async getGuardRevocations() {
|
|
6227
6566
|
return getGuardRevocations(this);
|
|
6228
6567
|
}
|
|
6568
|
+
async fetchGuardAdvisories() {
|
|
6569
|
+
return fetchGuardAdvisories(this);
|
|
6570
|
+
}
|
|
6571
|
+
async fetchGuardPolicy() {
|
|
6572
|
+
return fetchGuardPolicy(this);
|
|
6573
|
+
}
|
|
6229
6574
|
async getGuardInventory() {
|
|
6230
6575
|
return getGuardInventory(this);
|
|
6231
6576
|
}
|
|
@@ -6241,6 +6586,9 @@ var RegistryBrokerClient = class _RegistryBrokerClient {
|
|
|
6241
6586
|
async exportGuardAbom() {
|
|
6242
6587
|
return exportGuardAbom(this);
|
|
6243
6588
|
}
|
|
6589
|
+
async exportGuardArtifactAbom(artifactId) {
|
|
6590
|
+
return exportGuardArtifactAbom(this, artifactId);
|
|
6591
|
+
}
|
|
6244
6592
|
async exportGuardReceipts() {
|
|
6245
6593
|
return exportGuardReceipts(this);
|
|
6246
6594
|
}
|
|
@@ -6259,6 +6607,21 @@ var RegistryBrokerClient = class _RegistryBrokerClient {
|
|
|
6259
6607
|
async getGuardWatchlist() {
|
|
6260
6608
|
return getGuardWatchlist(this);
|
|
6261
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
|
+
}
|
|
6262
6625
|
async addGuardWatchlistItem(payload) {
|
|
6263
6626
|
return addGuardWatchlistItem(this, payload);
|
|
6264
6627
|
}
|
|
@@ -6268,12 +6631,24 @@ var RegistryBrokerClient = class _RegistryBrokerClient {
|
|
|
6268
6631
|
async addGuardException(payload) {
|
|
6269
6632
|
return addGuardException(this, payload);
|
|
6270
6633
|
}
|
|
6634
|
+
async requestGuardException(payload) {
|
|
6635
|
+
return requestGuardException(this, payload);
|
|
6636
|
+
}
|
|
6271
6637
|
async removeGuardException(exceptionId) {
|
|
6272
6638
|
return removeGuardException(this, exceptionId);
|
|
6273
6639
|
}
|
|
6640
|
+
async ingestGuardPainSignals(items) {
|
|
6641
|
+
return ingestGuardPainSignals(this, items);
|
|
6642
|
+
}
|
|
6274
6643
|
async syncGuardReceipts(payload) {
|
|
6275
6644
|
return syncGuardReceipts(this, payload);
|
|
6276
6645
|
}
|
|
6646
|
+
async syncGuardInventory(payload) {
|
|
6647
|
+
return syncGuardInventory(this, payload);
|
|
6648
|
+
}
|
|
6649
|
+
async submitGuardReceipts(payload) {
|
|
6650
|
+
return submitGuardReceipts(this, payload);
|
|
6651
|
+
}
|
|
6277
6652
|
async getGuardTeamPolicyPack() {
|
|
6278
6653
|
return getGuardTeamPolicyPack(this);
|
|
6279
6654
|
}
|