@hashgraphonline/standards-sdk 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/browser/services/registry-broker/client/base-client.d.ts +15 -1
- package/dist/browser/services/registry-broker/client/base-client.d.ts.map +1 -1
- package/dist/browser/services/registry-broker/client/guard.d.ts +15 -1
- package/dist/browser/services/registry-broker/client/guard.d.ts.map +1 -1
- package/dist/browser/services/registry-broker/schemas.d.ts +1705 -173
- package/dist/browser/services/registry-broker/schemas.d.ts.map +1 -1
- package/dist/browser/services/registry-broker/types.d.ts +29 -1
- package/dist/browser/services/registry-broker/types.d.ts.map +1 -1
- package/dist/browser/standards-sdk.browser.js +178 -9
- package/dist/browser/standards-sdk.browser.js.map +1 -1
- package/dist/browser-root/services/registry-broker/client/base-client.d.ts +15 -1
- package/dist/browser-root/services/registry-broker/client/base-client.d.ts.map +1 -1
- package/dist/browser-root/services/registry-broker/client/guard.d.ts +15 -1
- package/dist/browser-root/services/registry-broker/client/guard.d.ts.map +1 -1
- package/dist/browser-root/services/registry-broker/schemas.d.ts +1705 -173
- package/dist/browser-root/services/registry-broker/schemas.d.ts.map +1 -1
- package/dist/browser-root/services/registry-broker/types.d.ts +29 -1
- package/dist/browser-root/services/registry-broker/types.d.ts.map +1 -1
- package/dist/browser-root/standards-sdk.root-browser.js +382 -7
- package/dist/browser-root/standards-sdk.root-browser.js.map +1 -1
- package/dist/cjs/services/registry-broker/client/base-client.d.ts +15 -1
- package/dist/cjs/services/registry-broker/client/base-client.d.ts.map +1 -1
- package/dist/cjs/services/registry-broker/client/guard.d.ts +15 -1
- package/dist/cjs/services/registry-broker/client/guard.d.ts.map +1 -1
- package/dist/cjs/services/registry-broker/schemas.d.ts +1705 -173
- package/dist/cjs/services/registry-broker/schemas.d.ts.map +1 -1
- package/dist/cjs/services/registry-broker/types.d.ts +29 -1
- package/dist/cjs/services/registry-broker/types.d.ts.map +1 -1
- package/dist/cjs/standards-sdk.cjs +1 -1
- package/dist/cjs/standards-sdk.cjs.map +1 -1
- package/dist/es/services/registry-broker/client/base-client.d.ts +15 -1
- package/dist/es/services/registry-broker/client/base-client.d.ts.map +1 -1
- package/dist/es/services/registry-broker/client/guard.d.ts +15 -1
- package/dist/es/services/registry-broker/client/guard.d.ts.map +1 -1
- package/dist/es/services/registry-broker/schemas.d.ts +1705 -173
- package/dist/es/services/registry-broker/schemas.d.ts.map +1 -1
- package/dist/es/services/registry-broker/types.d.ts +29 -1
- package/dist/es/services/registry-broker/types.d.ts.map +1 -1
- package/dist/es/standards-sdk.es128.js +5 -5
- package/dist/es/standards-sdk.es138.js +1 -1
- package/dist/es/standards-sdk.es139.js +1 -1
- package/dist/es/standards-sdk.es140.js +5 -5
- package/dist/es/standards-sdk.es142.js +2 -2
- package/dist/es/standards-sdk.es145.js +44 -2
- package/dist/es/standards-sdk.es145.js.map +1 -1
- package/dist/es/standards-sdk.es148.js +1 -1
- package/dist/es/standards-sdk.es160.js +191 -7
- package/dist/es/standards-sdk.es160.js.map +1 -1
- package/dist/es/standards-sdk.es163.js +47 -102
- package/dist/es/standards-sdk.es163.js.map +1 -1
- package/dist/es/standards-sdk.es164.js +96 -58
- package/dist/es/standards-sdk.es164.js.map +1 -1
- package/dist/es/standards-sdk.es165.js +70 -161
- package/dist/es/standards-sdk.es165.js.map +1 -1
- package/dist/es/standards-sdk.es166.js +187 -309
- package/dist/es/standards-sdk.es166.js.map +1 -1
- package/dist/es/standards-sdk.es167.js +13 -342
- package/dist/es/standards-sdk.es167.js.map +1 -1
- package/dist/es/standards-sdk.es168.js +64 -444
- package/dist/es/standards-sdk.es168.js.map +1 -1
- package/dist/es/standards-sdk.es169.js +142 -301
- package/dist/es/standards-sdk.es169.js.map +1 -1
- package/dist/es/standards-sdk.es170.js +310 -64
- package/dist/es/standards-sdk.es170.js.map +1 -1
- package/dist/es/standards-sdk.es171.js +345 -55
- package/dist/es/standards-sdk.es171.js.map +1 -1
- package/dist/es/standards-sdk.es172.js +443 -71
- package/dist/es/standards-sdk.es172.js.map +1 -1
- package/dist/es/standards-sdk.es173.js +315 -184
- package/dist/es/standards-sdk.es173.js.map +1 -1
- package/dist/es/standards-sdk.es174.js +74 -15
- package/dist/es/standards-sdk.es174.js.map +1 -1
- package/dist/es/standards-sdk.es178.js +1 -1
- package/dist/es/standards-sdk.es181.js +1 -1
- package/dist/es/standards-sdk.es182.js +179 -1
- package/dist/es/standards-sdk.es182.js.map +1 -1
- package/dist/es/standards-sdk.es56.js +1 -1
- package/dist/es/standards-sdk.es59.js +1 -1
- package/dist/es/standards-sdk.es60.js +1 -1
- package/dist/es/standards-sdk.es62.js +1 -1
- package/dist/es/standards-sdk.es63.js +2 -2
- package/dist/es/standards-sdk.es64.js +1 -1
- package/dist/es/standards-sdk.es65.js +1 -1
- package/dist/es/standards-sdk.es66.js +1 -1
- package/dist/es/standards-sdk.es69.js +1 -1
- package/dist/es/standards-sdk.es71.js +1 -1
- package/dist/es/standards-sdk.es72.js +1 -1
- package/package.json +1 -1
|
@@ -6842,10 +6842,14 @@ const guardBucketBalanceSchema = objectType({
|
|
|
6842
6842
|
});
|
|
6843
6843
|
const guardPrincipalSchema = objectType({
|
|
6844
6844
|
signedIn: booleanType(),
|
|
6845
|
+
principalType: enumType(["user", "service"]).default("user"),
|
|
6845
6846
|
userId: stringType().optional(),
|
|
6846
6847
|
email: stringType().optional(),
|
|
6847
6848
|
accountId: stringType().optional(),
|
|
6848
6849
|
stripeCustomerId: stringType().optional(),
|
|
6850
|
+
serviceId: stringType().optional(),
|
|
6851
|
+
workspaceId: stringType().optional(),
|
|
6852
|
+
serviceLabel: stringType().optional(),
|
|
6849
6853
|
roles: arrayType(stringType())
|
|
6850
6854
|
});
|
|
6851
6855
|
const guardEntitlementsSchema = objectType({
|
|
@@ -6872,6 +6876,65 @@ const guardBalanceResponseSchema = objectType({
|
|
|
6872
6876
|
bucketingMode: enumType(["shared-ledger", "product-bucketed"]),
|
|
6873
6877
|
buckets: arrayType(guardBucketBalanceSchema)
|
|
6874
6878
|
});
|
|
6879
|
+
const guardFeedItemSchema = objectType({
|
|
6880
|
+
id: stringType(),
|
|
6881
|
+
artifactType: enumType(["skill", "plugin"]),
|
|
6882
|
+
slug: stringType(),
|
|
6883
|
+
name: stringType(),
|
|
6884
|
+
href: stringType(),
|
|
6885
|
+
ecosystem: stringType().optional(),
|
|
6886
|
+
safetyScore: numberType().nullable().optional(),
|
|
6887
|
+
trustScore: numberType().nullable().optional(),
|
|
6888
|
+
verified: booleanType(),
|
|
6889
|
+
recommendation: enumType(["monitor", "review", "block"]),
|
|
6890
|
+
updatedAt: stringType()
|
|
6891
|
+
});
|
|
6892
|
+
const guardFeedSummarySchema = objectType({
|
|
6893
|
+
total: numberType(),
|
|
6894
|
+
monitorCount: numberType(),
|
|
6895
|
+
reviewCount: numberType(),
|
|
6896
|
+
blockCount: numberType()
|
|
6897
|
+
});
|
|
6898
|
+
const guardFeedResponseSchema = objectType({
|
|
6899
|
+
generatedAt: stringType(),
|
|
6900
|
+
items: arrayType(guardFeedItemSchema),
|
|
6901
|
+
summary: guardFeedSummarySchema
|
|
6902
|
+
});
|
|
6903
|
+
const guardIntegrationSchema = objectType({
|
|
6904
|
+
id: enumType(["openclaw", "hermes"]),
|
|
6905
|
+
name: stringType(),
|
|
6906
|
+
status: enumType(["available", "planned"]),
|
|
6907
|
+
href: stringType().nullable(),
|
|
6908
|
+
summary: stringType()
|
|
6909
|
+
});
|
|
6910
|
+
const guardActionItemSchema = objectType({
|
|
6911
|
+
title: stringType(),
|
|
6912
|
+
description: stringType(),
|
|
6913
|
+
href: stringType()
|
|
6914
|
+
});
|
|
6915
|
+
const guardOverviewResponseSchema = objectType({
|
|
6916
|
+
generatedAt: stringType(),
|
|
6917
|
+
principal: guardPrincipalSchema,
|
|
6918
|
+
entitlements: guardEntitlementsSchema,
|
|
6919
|
+
balance: objectType({
|
|
6920
|
+
accountId: stringType(),
|
|
6921
|
+
availableCredits: numberType()
|
|
6922
|
+
}).nullable(),
|
|
6923
|
+
trustFeed: guardFeedResponseSchema,
|
|
6924
|
+
integrations: arrayType(guardIntegrationSchema),
|
|
6925
|
+
actionItems: arrayType(guardActionItemSchema)
|
|
6926
|
+
});
|
|
6927
|
+
const guardPolicySchema = objectType({
|
|
6928
|
+
mode: enumType(["observe", "prompt", "enforce"]),
|
|
6929
|
+
defaultAction: enumType(["allow", "warn", "block"]),
|
|
6930
|
+
unknownPublisherAction: enumType(["review", "block", "allow"]),
|
|
6931
|
+
changedHashAction: enumType(["allow", "warn", "require-reapproval", "block"]),
|
|
6932
|
+
newNetworkDomainAction: enumType(["allow", "warn", "block"]),
|
|
6933
|
+
subprocessAction: enumType(["allow", "warn", "block"]),
|
|
6934
|
+
telemetryEnabled: booleanType(),
|
|
6935
|
+
syncEnabled: booleanType(),
|
|
6936
|
+
updatedAt: stringType()
|
|
6937
|
+
});
|
|
6875
6938
|
const guardTrustMatchSchema = objectType({
|
|
6876
6939
|
artifactId: stringType(),
|
|
6877
6940
|
artifactName: stringType(),
|
|
@@ -6907,7 +6970,13 @@ const guardRevocationSchema = objectType({
|
|
|
6907
6970
|
artifactName: stringType(),
|
|
6908
6971
|
reason: stringType(),
|
|
6909
6972
|
severity: enumType(["low", "medium", "high"]),
|
|
6910
|
-
publishedAt: stringType()
|
|
6973
|
+
publishedAt: stringType(),
|
|
6974
|
+
confidence: numberType().optional(),
|
|
6975
|
+
remediation: stringType().nullable().optional(),
|
|
6976
|
+
scope: enumType(["artifact", "publisher", "domain", "workspace", "ecosystem"]).optional(),
|
|
6977
|
+
source: stringType().optional(),
|
|
6978
|
+
firstSeenAt: stringType().optional(),
|
|
6979
|
+
lastUpdatedAt: stringType().optional()
|
|
6911
6980
|
});
|
|
6912
6981
|
const guardRevocationResponseSchema = objectType({
|
|
6913
6982
|
generatedAt: stringType(),
|
|
@@ -7001,7 +7070,12 @@ const guardReceiptSyncResponseSchema = objectType({
|
|
|
7001
7070
|
syncedAt: stringType(),
|
|
7002
7071
|
receiptsStored: numberType(),
|
|
7003
7072
|
inventoryStored: numberType().optional(),
|
|
7004
|
-
inventoryDiff: guardInventoryDiffResponseSchema.optional()
|
|
7073
|
+
inventoryDiff: guardInventoryDiffResponseSchema.optional(),
|
|
7074
|
+
advisories: arrayType(guardRevocationSchema).optional(),
|
|
7075
|
+
policy: guardPolicySchema.optional(),
|
|
7076
|
+
alertPreferences: lazyType(() => guardAlertPreferencesSchema).optional(),
|
|
7077
|
+
exceptions: arrayType(lazyType(() => guardExceptionItemSchema)).optional(),
|
|
7078
|
+
teamPolicyPack: lazyType(() => guardTeamPolicyPackSchema).optional()
|
|
7005
7079
|
});
|
|
7006
7080
|
const guardInventoryResponseSchema = objectType({
|
|
7007
7081
|
generatedAt: stringType(),
|
|
@@ -7087,6 +7161,59 @@ const guardWatchlistResponseSchema = objectType({
|
|
|
7087
7161
|
generatedAt: stringType(),
|
|
7088
7162
|
items: arrayType(guardWatchlistItemSchema)
|
|
7089
7163
|
});
|
|
7164
|
+
const guardWatchlistLookupMatchSchema = objectType({
|
|
7165
|
+
artifactId: stringType().nullable(),
|
|
7166
|
+
publisher: stringType().nullable(),
|
|
7167
|
+
domain: stringType().nullable(),
|
|
7168
|
+
source: enumType(["watchlist", "team-policy"]),
|
|
7169
|
+
reason: stringType()
|
|
7170
|
+
});
|
|
7171
|
+
const guardWatchlistLookupResponseSchema = objectType({
|
|
7172
|
+
generatedAt: stringType(),
|
|
7173
|
+
matched: booleanType(),
|
|
7174
|
+
scope: enumType(["artifact", "publisher", "domain", "none"]),
|
|
7175
|
+
item: guardWatchlistLookupMatchSchema.nullable()
|
|
7176
|
+
});
|
|
7177
|
+
const guardPainSignalSchema = objectType({
|
|
7178
|
+
signalId: stringType(),
|
|
7179
|
+
signalName: stringType(),
|
|
7180
|
+
artifactId: stringType(),
|
|
7181
|
+
artifactName: stringType(),
|
|
7182
|
+
artifactType: enumType(["skill", "plugin"]),
|
|
7183
|
+
harness: stringType(),
|
|
7184
|
+
latestSummary: stringType(),
|
|
7185
|
+
firstSeenAt: stringType(),
|
|
7186
|
+
lastSeenAt: stringType(),
|
|
7187
|
+
count: numberType(),
|
|
7188
|
+
source: literalType("scanner"),
|
|
7189
|
+
publisher: stringType().optional()
|
|
7190
|
+
});
|
|
7191
|
+
const guardPainSignalListResponseSchema = objectType({
|
|
7192
|
+
generatedAt: stringType(),
|
|
7193
|
+
items: arrayType(guardPainSignalSchema)
|
|
7194
|
+
});
|
|
7195
|
+
const guardPainSignalAggregateSchema = objectType({
|
|
7196
|
+
artifactId: stringType(),
|
|
7197
|
+
artifactName: stringType(),
|
|
7198
|
+
artifactType: enumType(["skill", "plugin"]),
|
|
7199
|
+
signalName: stringType(),
|
|
7200
|
+
latestSummary: stringType(),
|
|
7201
|
+
firstSeenAt: stringType(),
|
|
7202
|
+
lastSeenAt: stringType(),
|
|
7203
|
+
totalCount: numberType(),
|
|
7204
|
+
consumerCount: numberType(),
|
|
7205
|
+
harnesses: arrayType(stringType()),
|
|
7206
|
+
publishers: arrayType(stringType())
|
|
7207
|
+
});
|
|
7208
|
+
const guardPainSignalAggregateResponseSchema = objectType({
|
|
7209
|
+
generatedAt: stringType(),
|
|
7210
|
+
summary: objectType({
|
|
7211
|
+
totalSignals: numberType(),
|
|
7212
|
+
uniqueArtifacts: numberType(),
|
|
7213
|
+
uniqueConsumers: numberType()
|
|
7214
|
+
}),
|
|
7215
|
+
items: arrayType(guardPainSignalAggregateSchema)
|
|
7216
|
+
});
|
|
7090
7217
|
const guardExceptionItemSchema = objectType({
|
|
7091
7218
|
exceptionId: stringType(),
|
|
7092
7219
|
scope: enumType(["artifact", "publisher", "harness", "global"]),
|
|
@@ -7104,6 +7231,45 @@ const guardExceptionListResponseSchema = objectType({
|
|
|
7104
7231
|
generatedAt: stringType(),
|
|
7105
7232
|
items: arrayType(guardExceptionItemSchema)
|
|
7106
7233
|
});
|
|
7234
|
+
const guardPreflightEvidenceSchema = objectType({
|
|
7235
|
+
category: enumType([
|
|
7236
|
+
"policy",
|
|
7237
|
+
"trust",
|
|
7238
|
+
"watchlist",
|
|
7239
|
+
"team-policy",
|
|
7240
|
+
"exception"
|
|
7241
|
+
]),
|
|
7242
|
+
source: stringType(),
|
|
7243
|
+
detail: stringType()
|
|
7244
|
+
});
|
|
7245
|
+
objectType({
|
|
7246
|
+
harness: stringType(),
|
|
7247
|
+
artifactName: stringType(),
|
|
7248
|
+
artifactType: enumType(["skill", "plugin"]),
|
|
7249
|
+
artifactId: stringType().optional(),
|
|
7250
|
+
artifactSlug: stringType().optional(),
|
|
7251
|
+
artifactHash: stringType().optional(),
|
|
7252
|
+
publisher: stringType().optional(),
|
|
7253
|
+
domain: stringType().optional(),
|
|
7254
|
+
launchSummary: stringType().optional(),
|
|
7255
|
+
capabilities: arrayType(stringType()).optional(),
|
|
7256
|
+
workspacePath: stringType().optional()
|
|
7257
|
+
});
|
|
7258
|
+
const guardPreflightVerdictResponseSchema = objectType({
|
|
7259
|
+
generatedAt: stringType(),
|
|
7260
|
+
principal: guardPrincipalSchema,
|
|
7261
|
+
decision: enumType(["allow", "review", "block"]),
|
|
7262
|
+
recommendation: enumType(["monitor", "review", "block"]),
|
|
7263
|
+
rationale: stringType(),
|
|
7264
|
+
category: enumType(["exception", "team-policy", "watchlist", "trust", "policy"]).optional(),
|
|
7265
|
+
confidence: numberType().optional(),
|
|
7266
|
+
freshnessTimestamp: stringType().optional(),
|
|
7267
|
+
evidenceSources: arrayType(stringType()).optional(),
|
|
7268
|
+
scope: enumType(["artifact", "publisher", "domain", "policy"]),
|
|
7269
|
+
matchedEvidence: arrayType(guardPreflightEvidenceSchema),
|
|
7270
|
+
matchedException: guardExceptionItemSchema.nullable(),
|
|
7271
|
+
trustMatch: guardTrustMatchSchema.nullable()
|
|
7272
|
+
});
|
|
7107
7273
|
const guardTeamPolicyAuditItemSchema = objectType({
|
|
7108
7274
|
changedAt: stringType(),
|
|
7109
7275
|
actor: stringType(),
|
|
@@ -7112,8 +7278,13 @@ const guardTeamPolicyAuditItemSchema = objectType({
|
|
|
7112
7278
|
});
|
|
7113
7279
|
const guardTeamPolicyPackSchema = objectType({
|
|
7114
7280
|
name: stringType(),
|
|
7115
|
-
sharedHarnessDefaults: recordType(
|
|
7281
|
+
sharedHarnessDefaults: recordType(
|
|
7282
|
+
stringType(),
|
|
7283
|
+
enumType(["observe", "prompt", "enforce"])
|
|
7284
|
+
),
|
|
7116
7285
|
allowedPublishers: arrayType(stringType()),
|
|
7286
|
+
blockedPublishers: arrayType(stringType()).optional(),
|
|
7287
|
+
blockedDomains: arrayType(stringType()).optional(),
|
|
7117
7288
|
blockedArtifacts: arrayType(stringType()),
|
|
7118
7289
|
alertChannel: enumType(["email", "slack", "teams", "webhook"]),
|
|
7119
7290
|
updatedAt: stringType(),
|
|
@@ -7528,13 +7699,11 @@ const skillDeprecationsResponseSchema = objectType({
|
|
|
7528
7699
|
name: stringType(),
|
|
7529
7700
|
items: arrayType(skillDeprecationRecordSchema)
|
|
7530
7701
|
}).passthrough();
|
|
7531
|
-
const skillSecurityBreakdownFindingSchema = recordType(jsonValueSchema);
|
|
7532
|
-
const skillSecurityBreakdownSummarySchema = recordType(jsonValueSchema);
|
|
7533
7702
|
const skillSecurityBreakdownResponseSchema = objectType({
|
|
7534
7703
|
jobId: stringType(),
|
|
7535
7704
|
score: numberType().nullable().optional(),
|
|
7536
|
-
findings: arrayType(
|
|
7537
|
-
summary:
|
|
7705
|
+
findings: arrayType(jsonValueSchema).optional(),
|
|
7706
|
+
summary: jsonValueSchema.optional(),
|
|
7538
7707
|
generatedAt: stringType().nullable().optional(),
|
|
7539
7708
|
scannerVersion: stringType().nullable().optional()
|
|
7540
7709
|
}).passthrough();
|
|
@@ -9988,6 +10157,32 @@ async function getGuardBillingBalance(client) {
|
|
|
9988
10157
|
"guard billing balance response"
|
|
9989
10158
|
);
|
|
9990
10159
|
}
|
|
10160
|
+
async function getGuardFeed(client, limit) {
|
|
10161
|
+
const params = new URLSearchParams();
|
|
10162
|
+
if (typeof limit === "number" && Number.isFinite(limit) && Math.trunc(limit) > 0) {
|
|
10163
|
+
params.set("limit", String(Math.trunc(limit)));
|
|
10164
|
+
}
|
|
10165
|
+
const query = params.toString();
|
|
10166
|
+
const suffix = query ? `?${query}` : "";
|
|
10167
|
+
const raw = await client.requestJson(`/guard/feed${suffix}`, {
|
|
10168
|
+
method: "GET"
|
|
10169
|
+
});
|
|
10170
|
+
return client.parseWithSchema(
|
|
10171
|
+
raw,
|
|
10172
|
+
guardFeedResponseSchema,
|
|
10173
|
+
"guard feed response"
|
|
10174
|
+
);
|
|
10175
|
+
}
|
|
10176
|
+
async function getGuardOverview(client) {
|
|
10177
|
+
const raw = await client.requestJson("/guard/overview", {
|
|
10178
|
+
method: "GET"
|
|
10179
|
+
});
|
|
10180
|
+
return client.parseWithSchema(
|
|
10181
|
+
raw,
|
|
10182
|
+
guardOverviewResponseSchema,
|
|
10183
|
+
"guard overview response"
|
|
10184
|
+
);
|
|
10185
|
+
}
|
|
9991
10186
|
async function getGuardTrustByHash(client, sha2562) {
|
|
9992
10187
|
const normalizedHash = sha2562.trim();
|
|
9993
10188
|
if (!normalizedHash) {
|
|
@@ -10035,6 +10230,26 @@ async function getGuardRevocations(client) {
|
|
|
10035
10230
|
"guard revocations response"
|
|
10036
10231
|
);
|
|
10037
10232
|
}
|
|
10233
|
+
async function fetchGuardAdvisories(client) {
|
|
10234
|
+
const raw = await client.requestJson("/guard/advisories", {
|
|
10235
|
+
method: "GET"
|
|
10236
|
+
});
|
|
10237
|
+
return client.parseWithSchema(
|
|
10238
|
+
raw,
|
|
10239
|
+
guardRevocationResponseSchema,
|
|
10240
|
+
"guard advisories response"
|
|
10241
|
+
);
|
|
10242
|
+
}
|
|
10243
|
+
async function fetchGuardPolicy(client) {
|
|
10244
|
+
const raw = await client.requestJson("/guard/policy/fetch", {
|
|
10245
|
+
method: "GET"
|
|
10246
|
+
});
|
|
10247
|
+
return client.parseWithSchema(
|
|
10248
|
+
raw,
|
|
10249
|
+
guardPolicySchema,
|
|
10250
|
+
"guard policy response"
|
|
10251
|
+
);
|
|
10252
|
+
}
|
|
10038
10253
|
async function getGuardInventory(client) {
|
|
10039
10254
|
const raw = await client.requestJson("/guard/inventory", {
|
|
10040
10255
|
method: "GET"
|
|
@@ -10080,6 +10295,21 @@ async function exportGuardAbom(client) {
|
|
|
10080
10295
|
"guard abom response"
|
|
10081
10296
|
);
|
|
10082
10297
|
}
|
|
10298
|
+
async function exportGuardArtifactAbom(client, artifactId) {
|
|
10299
|
+
const normalizedArtifactId = artifactId.trim();
|
|
10300
|
+
if (!normalizedArtifactId) {
|
|
10301
|
+
throw new Error("artifactId is required");
|
|
10302
|
+
}
|
|
10303
|
+
const raw = await client.requestJson(
|
|
10304
|
+
`/guard/abom/${encodeURIComponent(normalizedArtifactId)}`,
|
|
10305
|
+
{ method: "GET" }
|
|
10306
|
+
);
|
|
10307
|
+
return client.parseWithSchema(
|
|
10308
|
+
raw,
|
|
10309
|
+
guardAbomResponseSchema,
|
|
10310
|
+
"guard artifact abom response"
|
|
10311
|
+
);
|
|
10312
|
+
}
|
|
10083
10313
|
async function exportGuardReceipts(client) {
|
|
10084
10314
|
const raw = await client.requestJson("/guard/receipts/export", {
|
|
10085
10315
|
method: "GET"
|
|
@@ -10151,6 +10381,87 @@ async function getGuardWatchlist(client) {
|
|
|
10151
10381
|
"guard watchlist response"
|
|
10152
10382
|
);
|
|
10153
10383
|
}
|
|
10384
|
+
async function lookupGuardWatchlist(client, payload) {
|
|
10385
|
+
const raw = await client.requestJson("/guard/watchlist/lookup", {
|
|
10386
|
+
method: "POST",
|
|
10387
|
+
body: payload
|
|
10388
|
+
});
|
|
10389
|
+
return client.parseWithSchema(
|
|
10390
|
+
raw,
|
|
10391
|
+
guardWatchlistLookupResponseSchema,
|
|
10392
|
+
"guard watchlist lookup response"
|
|
10393
|
+
);
|
|
10394
|
+
}
|
|
10395
|
+
async function getGuardPainSignals(client) {
|
|
10396
|
+
const raw = await client.requestJson("/guard/signals/pain", {
|
|
10397
|
+
method: "GET"
|
|
10398
|
+
});
|
|
10399
|
+
return client.parseWithSchema(
|
|
10400
|
+
raw,
|
|
10401
|
+
guardPainSignalListResponseSchema,
|
|
10402
|
+
"guard pain signals response"
|
|
10403
|
+
);
|
|
10404
|
+
}
|
|
10405
|
+
async function getGuardAggregatedPainSignals(client) {
|
|
10406
|
+
const raw = await client.requestJson(
|
|
10407
|
+
"/guard/signals/pain/aggregate",
|
|
10408
|
+
{
|
|
10409
|
+
method: "GET"
|
|
10410
|
+
}
|
|
10411
|
+
);
|
|
10412
|
+
return client.parseWithSchema(
|
|
10413
|
+
raw,
|
|
10414
|
+
guardPainSignalAggregateResponseSchema,
|
|
10415
|
+
"guard aggregated pain signals response"
|
|
10416
|
+
);
|
|
10417
|
+
}
|
|
10418
|
+
async function getGuardPreflightVerdict(client, path, payload) {
|
|
10419
|
+
const raw = await client.requestJson(path, {
|
|
10420
|
+
method: "POST",
|
|
10421
|
+
body: payload
|
|
10422
|
+
});
|
|
10423
|
+
return client.parseWithSchema(
|
|
10424
|
+
raw,
|
|
10425
|
+
guardPreflightVerdictResponseSchema,
|
|
10426
|
+
"guard preflight verdict response"
|
|
10427
|
+
);
|
|
10428
|
+
}
|
|
10429
|
+
async function getGuardPreInstallVerdict(client, payload) {
|
|
10430
|
+
return getGuardPreflightVerdict(
|
|
10431
|
+
client,
|
|
10432
|
+
"/guard/verdict/pre-install",
|
|
10433
|
+
payload
|
|
10434
|
+
);
|
|
10435
|
+
}
|
|
10436
|
+
async function getGuardPreExecutionVerdict(client, payload) {
|
|
10437
|
+
return getGuardPreflightVerdict(
|
|
10438
|
+
client,
|
|
10439
|
+
"/guard/verdict/pre-execution",
|
|
10440
|
+
payload
|
|
10441
|
+
);
|
|
10442
|
+
}
|
|
10443
|
+
async function ingestGuardPainSignals(client, items) {
|
|
10444
|
+
const raw = await client.requestJson("/guard/signals/pain", {
|
|
10445
|
+
method: "POST",
|
|
10446
|
+
body: { items }
|
|
10447
|
+
});
|
|
10448
|
+
return client.parseWithSchema(
|
|
10449
|
+
raw,
|
|
10450
|
+
guardPainSignalListResponseSchema,
|
|
10451
|
+
"guard pain signals response"
|
|
10452
|
+
);
|
|
10453
|
+
}
|
|
10454
|
+
async function submitGuardReceipts(client, payload) {
|
|
10455
|
+
const raw = await client.requestJson("/guard/receipts/submit", {
|
|
10456
|
+
method: "POST",
|
|
10457
|
+
body: payload
|
|
10458
|
+
});
|
|
10459
|
+
return client.parseWithSchema(
|
|
10460
|
+
raw,
|
|
10461
|
+
guardReceiptSyncResponseSchema,
|
|
10462
|
+
"guard receipt submit response"
|
|
10463
|
+
);
|
|
10464
|
+
}
|
|
10154
10465
|
async function addGuardWatchlistItem(client, payload) {
|
|
10155
10466
|
const raw = await client.requestJson("/guard/watchlist", {
|
|
10156
10467
|
method: "POST",
|
|
@@ -10188,6 +10499,28 @@ async function addGuardException(client, payload) {
|
|
|
10188
10499
|
"guard exceptions response"
|
|
10189
10500
|
);
|
|
10190
10501
|
}
|
|
10502
|
+
async function requestGuardException(client, payload) {
|
|
10503
|
+
const raw = await client.requestJson("/guard/exceptions/request", {
|
|
10504
|
+
method: "POST",
|
|
10505
|
+
body: payload
|
|
10506
|
+
});
|
|
10507
|
+
return client.parseWithSchema(
|
|
10508
|
+
raw,
|
|
10509
|
+
guardExceptionListResponseSchema,
|
|
10510
|
+
"guard exception request response"
|
|
10511
|
+
);
|
|
10512
|
+
}
|
|
10513
|
+
async function syncGuardInventory(client, payload) {
|
|
10514
|
+
const raw = await client.requestJson("/guard/inventory/sync", {
|
|
10515
|
+
method: "POST",
|
|
10516
|
+
body: payload
|
|
10517
|
+
});
|
|
10518
|
+
return client.parseWithSchema(
|
|
10519
|
+
raw,
|
|
10520
|
+
guardReceiptSyncResponseSchema,
|
|
10521
|
+
"guard inventory sync response"
|
|
10522
|
+
);
|
|
10523
|
+
}
|
|
10191
10524
|
async function removeGuardException(client, exceptionId) {
|
|
10192
10525
|
const normalizedExceptionId = exceptionId.trim();
|
|
10193
10526
|
if (!normalizedExceptionId) {
|
|
@@ -12036,6 +12369,12 @@ class RegistryBrokerClient {
|
|
|
12036
12369
|
async getGuardBillingBalance() {
|
|
12037
12370
|
return getGuardBillingBalance(this);
|
|
12038
12371
|
}
|
|
12372
|
+
async getGuardFeed(limit) {
|
|
12373
|
+
return getGuardFeed(this, limit);
|
|
12374
|
+
}
|
|
12375
|
+
async getGuardOverview() {
|
|
12376
|
+
return getGuardOverview(this);
|
|
12377
|
+
}
|
|
12039
12378
|
async getGuardTrustByHash(sha2562) {
|
|
12040
12379
|
return getGuardTrustByHash(this, sha2562);
|
|
12041
12380
|
}
|
|
@@ -12045,6 +12384,12 @@ class RegistryBrokerClient {
|
|
|
12045
12384
|
async getGuardRevocations() {
|
|
12046
12385
|
return getGuardRevocations(this);
|
|
12047
12386
|
}
|
|
12387
|
+
async fetchGuardAdvisories() {
|
|
12388
|
+
return fetchGuardAdvisories(this);
|
|
12389
|
+
}
|
|
12390
|
+
async fetchGuardPolicy() {
|
|
12391
|
+
return fetchGuardPolicy(this);
|
|
12392
|
+
}
|
|
12048
12393
|
async getGuardInventory() {
|
|
12049
12394
|
return getGuardInventory(this);
|
|
12050
12395
|
}
|
|
@@ -12060,6 +12405,9 @@ class RegistryBrokerClient {
|
|
|
12060
12405
|
async exportGuardAbom() {
|
|
12061
12406
|
return exportGuardAbom(this);
|
|
12062
12407
|
}
|
|
12408
|
+
async exportGuardArtifactAbom(artifactId) {
|
|
12409
|
+
return exportGuardArtifactAbom(this, artifactId);
|
|
12410
|
+
}
|
|
12063
12411
|
async exportGuardReceipts() {
|
|
12064
12412
|
return exportGuardReceipts(this);
|
|
12065
12413
|
}
|
|
@@ -12078,6 +12426,21 @@ class RegistryBrokerClient {
|
|
|
12078
12426
|
async getGuardWatchlist() {
|
|
12079
12427
|
return getGuardWatchlist(this);
|
|
12080
12428
|
}
|
|
12429
|
+
async lookupGuardWatchlist(payload) {
|
|
12430
|
+
return lookupGuardWatchlist(this, payload);
|
|
12431
|
+
}
|
|
12432
|
+
async getGuardPainSignals() {
|
|
12433
|
+
return getGuardPainSignals(this);
|
|
12434
|
+
}
|
|
12435
|
+
async getGuardAggregatedPainSignals() {
|
|
12436
|
+
return getGuardAggregatedPainSignals(this);
|
|
12437
|
+
}
|
|
12438
|
+
async getGuardPreInstallVerdict(payload) {
|
|
12439
|
+
return getGuardPreInstallVerdict(this, payload);
|
|
12440
|
+
}
|
|
12441
|
+
async getGuardPreExecutionVerdict(payload) {
|
|
12442
|
+
return getGuardPreExecutionVerdict(this, payload);
|
|
12443
|
+
}
|
|
12081
12444
|
async addGuardWatchlistItem(payload) {
|
|
12082
12445
|
return addGuardWatchlistItem(this, payload);
|
|
12083
12446
|
}
|
|
@@ -12087,12 +12450,24 @@ class RegistryBrokerClient {
|
|
|
12087
12450
|
async addGuardException(payload) {
|
|
12088
12451
|
return addGuardException(this, payload);
|
|
12089
12452
|
}
|
|
12453
|
+
async requestGuardException(payload) {
|
|
12454
|
+
return requestGuardException(this, payload);
|
|
12455
|
+
}
|
|
12090
12456
|
async removeGuardException(exceptionId) {
|
|
12091
12457
|
return removeGuardException(this, exceptionId);
|
|
12092
12458
|
}
|
|
12459
|
+
async ingestGuardPainSignals(items) {
|
|
12460
|
+
return ingestGuardPainSignals(this, items);
|
|
12461
|
+
}
|
|
12093
12462
|
async syncGuardReceipts(payload) {
|
|
12094
12463
|
return syncGuardReceipts(this, payload);
|
|
12095
12464
|
}
|
|
12465
|
+
async syncGuardInventory(payload) {
|
|
12466
|
+
return syncGuardInventory(this, payload);
|
|
12467
|
+
}
|
|
12468
|
+
async submitGuardReceipts(payload) {
|
|
12469
|
+
return submitGuardReceipts(this, payload);
|
|
12470
|
+
}
|
|
12096
12471
|
async getGuardTeamPolicyPack() {
|
|
12097
12472
|
return getGuardTeamPolicyPack(this);
|
|
12098
12473
|
}
|