@hashgraphonline/standards-sdk 0.1.178 → 0.1.179
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 +18 -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 +18 -1
- package/dist/browser/services/registry-broker/client/guard.d.ts.map +1 -1
- package/dist/browser/services/registry-broker/schemas.d.ts +1145 -4
- package/dist/browser/services/registry-broker/schemas.d.ts.map +1 -1
- package/dist/browser/services/registry-broker/types.d.ts +59 -1
- package/dist/browser/services/registry-broker/types.d.ts.map +1 -1
- package/dist/browser/standards-sdk.browser.js +190 -2
- package/dist/browser/standards-sdk.browser.js.map +1 -1
- package/dist/browser-root/services/registry-broker/client/base-client.d.ts +18 -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 +18 -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 +1145 -4
- package/dist/browser-root/services/registry-broker/schemas.d.ts.map +1 -1
- package/dist/browser-root/services/registry-broker/types.d.ts +59 -1
- package/dist/browser-root/services/registry-broker/types.d.ts.map +1 -1
- package/dist/browser-root/standards-sdk.root-browser.js +430 -3
- package/dist/browser-root/standards-sdk.root-browser.js.map +1 -1
- package/dist/cjs/services/registry-broker/client/base-client.d.ts +18 -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 +18 -1
- package/dist/cjs/services/registry-broker/client/guard.d.ts.map +1 -1
- package/dist/cjs/services/registry-broker/schemas.d.ts +1141 -0
- package/dist/cjs/services/registry-broker/schemas.d.ts.map +1 -1
- package/dist/cjs/services/registry-broker/types.d.ts +59 -1
- package/dist/cjs/services/registry-broker/types.d.ts.map +1 -1
- package/dist/cjs/standards-sdk.cjs +2 -2
- package/dist/cjs/standards-sdk.cjs.map +1 -1
- package/dist/es/services/registry-broker/client/base-client.d.ts +18 -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 +18 -1
- package/dist/es/services/registry-broker/client/guard.d.ts.map +1 -1
- package/dist/es/services/registry-broker/schemas.d.ts +1141 -0
- package/dist/es/services/registry-broker/schemas.d.ts.map +1 -1
- package/dist/es/services/registry-broker/types.d.ts +59 -1
- package/dist/es/services/registry-broker/types.d.ts.map +1 -1
- package/dist/es/standards-sdk.es116.js +1 -1
- package/dist/es/standards-sdk.es121.js +1 -1
- package/dist/es/standards-sdk.es127.js +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.es143.js +1 -1
- package/dist/es/standards-sdk.es145.js +54 -3
- package/dist/es/standards-sdk.es145.js.map +1 -1
- package/dist/es/standards-sdk.es147.js +1 -1
- package/dist/es/standards-sdk.es16.js +1 -1
- package/dist/es/standards-sdk.es160.js +2147 -12461
- package/dist/es/standards-sdk.es160.js.map +1 -1
- package/dist/es/standards-sdk.es161.js +12461 -1936
- package/dist/es/standards-sdk.es161.js.map +1 -1
- package/dist/es/standards-sdk.es162.js +671 -55
- package/dist/es/standards-sdk.es162.js.map +1 -1
- package/dist/es/standards-sdk.es164.js +63 -71
- package/dist/es/standards-sdk.es164.js.map +1 -1
- package/dist/es/standards-sdk.es165.js +160 -188
- package/dist/es/standards-sdk.es165.js.map +1 -1
- package/dist/es/standards-sdk.es166.js +318 -13
- package/dist/es/standards-sdk.es166.js.map +1 -1
- package/dist/es/standards-sdk.es167.js +337 -64
- package/dist/es/standards-sdk.es167.js.map +1 -1
- package/dist/es/standards-sdk.es168.js +410 -129
- package/dist/es/standards-sdk.es168.js.map +1 -1
- package/dist/es/standards-sdk.es169.js +209 -200
- package/dist/es/standards-sdk.es169.js.map +1 -1
- package/dist/es/standards-sdk.es170.js +64 -334
- package/dist/es/standards-sdk.es170.js.map +1 -1
- package/dist/es/standards-sdk.es171.js +55 -452
- package/dist/es/standards-sdk.es171.js.map +1 -1
- package/dist/es/standards-sdk.es172.js +71 -321
- package/dist/es/standards-sdk.es172.js.map +1 -1
- package/dist/es/standards-sdk.es173.js +182 -58
- package/dist/es/standards-sdk.es173.js.map +1 -1
- package/dist/es/standards-sdk.es174.js +15 -670
- package/dist/es/standards-sdk.es174.js.map +1 -1
- package/dist/es/standards-sdk.es175.js +1 -1
- package/dist/es/standards-sdk.es176.js +1 -1
- package/dist/es/standards-sdk.es178.js +1 -1
- package/dist/es/standards-sdk.es179.js +1 -1
- package/dist/es/standards-sdk.es18.js +2 -2
- package/dist/es/standards-sdk.es180.js +1 -1
- package/dist/es/standards-sdk.es181.js +1 -1
- package/dist/es/standards-sdk.es182.js +208 -3
- package/dist/es/standards-sdk.es182.js.map +1 -1
- package/dist/es/standards-sdk.es183.js +1 -1
- package/dist/es/standards-sdk.es184.js +1 -1
- package/dist/es/standards-sdk.es19.js +2 -2
- package/dist/es/standards-sdk.es27.js +2 -2
- package/dist/es/standards-sdk.es30.js +1 -1
- package/dist/es/standards-sdk.es31.js +1 -1
- package/dist/es/standards-sdk.es35.js +2 -2
- package/dist/es/standards-sdk.es36.js +1 -1
- package/dist/es/standards-sdk.es37.js +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.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.es67.js +1 -1
- package/dist/es/standards-sdk.es71.js +1 -1
- package/dist/es/standards-sdk.es72.js +1 -1
- package/dist/es/standards-sdk.es75.js +1 -1
- package/dist/es/standards-sdk.es84.js +1 -1
- package/package.json +1 -1
|
@@ -6913,7 +6913,7 @@ const guardRevocationResponseSchema = objectType({
|
|
|
6913
6913
|
generatedAt: stringType(),
|
|
6914
6914
|
items: arrayType(guardRevocationSchema)
|
|
6915
6915
|
});
|
|
6916
|
-
objectType({
|
|
6916
|
+
const guardReceiptSchema = objectType({
|
|
6917
6917
|
receiptId: stringType(),
|
|
6918
6918
|
capturedAt: stringType(),
|
|
6919
6919
|
harness: stringType(),
|
|
@@ -6938,9 +6938,197 @@ objectType({
|
|
|
6938
6938
|
capabilities: arrayType(stringType()),
|
|
6939
6939
|
summary: stringType()
|
|
6940
6940
|
});
|
|
6941
|
+
const guardHistoryArtifactSchema = objectType({
|
|
6942
|
+
artifactId: stringType(),
|
|
6943
|
+
artifactName: stringType(),
|
|
6944
|
+
artifactType: enumType(["skill", "plugin"]),
|
|
6945
|
+
artifactSlug: stringType(),
|
|
6946
|
+
publisher: stringType().optional(),
|
|
6947
|
+
harnesses: arrayType(stringType()),
|
|
6948
|
+
eventCount: numberType(),
|
|
6949
|
+
firstSeenAt: stringType(),
|
|
6950
|
+
lastSeenAt: stringType(),
|
|
6951
|
+
latestDecision: enumType([
|
|
6952
|
+
"allow",
|
|
6953
|
+
"warn",
|
|
6954
|
+
"block",
|
|
6955
|
+
"review",
|
|
6956
|
+
"require-reapproval",
|
|
6957
|
+
"sandbox-required"
|
|
6958
|
+
]),
|
|
6959
|
+
latestRecommendation: enumType(["monitor", "review", "block"])
|
|
6960
|
+
});
|
|
6961
|
+
const guardReceiptHistoryResponseSchema = objectType({
|
|
6962
|
+
generatedAt: stringType(),
|
|
6963
|
+
artifacts: arrayType(guardHistoryArtifactSchema)
|
|
6964
|
+
});
|
|
6965
|
+
const guardInventoryArtifactSchema = objectType({
|
|
6966
|
+
artifactId: stringType(),
|
|
6967
|
+
artifactName: stringType(),
|
|
6968
|
+
artifactType: enumType(["skill", "plugin"]),
|
|
6969
|
+
artifactSlug: stringType(),
|
|
6970
|
+
publisher: stringType().optional(),
|
|
6971
|
+
harnesses: arrayType(stringType()),
|
|
6972
|
+
devices: arrayType(stringType()),
|
|
6973
|
+
eventCount: numberType(),
|
|
6974
|
+
firstSeenAt: stringType(),
|
|
6975
|
+
lastSeenAt: stringType(),
|
|
6976
|
+
latestDecision: enumType([
|
|
6977
|
+
"allow",
|
|
6978
|
+
"warn",
|
|
6979
|
+
"block",
|
|
6980
|
+
"review",
|
|
6981
|
+
"require-reapproval",
|
|
6982
|
+
"sandbox-required"
|
|
6983
|
+
]),
|
|
6984
|
+
latestRecommendation: enumType(["monitor", "review", "block"]),
|
|
6985
|
+
latestHash: stringType(),
|
|
6986
|
+
latestSummary: stringType()
|
|
6987
|
+
});
|
|
6988
|
+
const guardInventoryDiffEntrySchema = objectType({
|
|
6989
|
+
artifactId: stringType(),
|
|
6990
|
+
artifactName: stringType(),
|
|
6991
|
+
artifactType: enumType(["skill", "plugin"]),
|
|
6992
|
+
changeType: enumType(["new", "changed", "removed"]),
|
|
6993
|
+
previousHash: stringType().nullable(),
|
|
6994
|
+
currentHash: stringType().nullable()
|
|
6995
|
+
});
|
|
6996
|
+
const guardInventoryDiffResponseSchema = objectType({
|
|
6997
|
+
generatedAt: stringType(),
|
|
6998
|
+
items: arrayType(guardInventoryDiffEntrySchema)
|
|
6999
|
+
});
|
|
6941
7000
|
const guardReceiptSyncResponseSchema = objectType({
|
|
6942
7001
|
syncedAt: stringType(),
|
|
6943
|
-
receiptsStored: numberType()
|
|
7002
|
+
receiptsStored: numberType(),
|
|
7003
|
+
inventoryStored: numberType().optional(),
|
|
7004
|
+
inventoryDiff: guardInventoryDiffResponseSchema.optional()
|
|
7005
|
+
});
|
|
7006
|
+
const guardInventoryResponseSchema = objectType({
|
|
7007
|
+
generatedAt: stringType(),
|
|
7008
|
+
items: arrayType(guardInventoryArtifactSchema)
|
|
7009
|
+
});
|
|
7010
|
+
const guardAbomSummarySchema = objectType({
|
|
7011
|
+
totalArtifacts: numberType(),
|
|
7012
|
+
totalDevices: numberType(),
|
|
7013
|
+
totalHarnesses: numberType(),
|
|
7014
|
+
blockedArtifacts: numberType(),
|
|
7015
|
+
reviewArtifacts: numberType()
|
|
7016
|
+
});
|
|
7017
|
+
const guardAbomResponseSchema = objectType({
|
|
7018
|
+
generatedAt: stringType(),
|
|
7019
|
+
summary: guardAbomSummarySchema,
|
|
7020
|
+
items: arrayType(guardInventoryArtifactSchema)
|
|
7021
|
+
});
|
|
7022
|
+
const guardTimelineEventSchema = objectType({
|
|
7023
|
+
receiptId: stringType(),
|
|
7024
|
+
capturedAt: stringType(),
|
|
7025
|
+
harness: stringType(),
|
|
7026
|
+
deviceId: stringType(),
|
|
7027
|
+
deviceName: stringType(),
|
|
7028
|
+
artifactHash: stringType(),
|
|
7029
|
+
policyDecision: enumType([
|
|
7030
|
+
"allow",
|
|
7031
|
+
"warn",
|
|
7032
|
+
"block",
|
|
7033
|
+
"review",
|
|
7034
|
+
"require-reapproval",
|
|
7035
|
+
"sandbox-required"
|
|
7036
|
+
]),
|
|
7037
|
+
recommendation: enumType(["monitor", "review", "block"]),
|
|
7038
|
+
changedSinceLastApproval: booleanType(),
|
|
7039
|
+
summary: stringType(),
|
|
7040
|
+
capabilities: arrayType(stringType()),
|
|
7041
|
+
publisher: stringType().optional()
|
|
7042
|
+
});
|
|
7043
|
+
const guardArtifactTimelineResponseSchema = objectType({
|
|
7044
|
+
generatedAt: stringType(),
|
|
7045
|
+
artifactId: stringType(),
|
|
7046
|
+
artifactName: stringType(),
|
|
7047
|
+
artifactType: enumType(["skill", "plugin"]),
|
|
7048
|
+
artifactSlug: stringType(),
|
|
7049
|
+
events: arrayType(guardTimelineEventSchema)
|
|
7050
|
+
});
|
|
7051
|
+
const guardReceiptExportSummarySchema = objectType({
|
|
7052
|
+
totalReceipts: numberType(),
|
|
7053
|
+
blockedCount: numberType(),
|
|
7054
|
+
reviewCount: numberType(),
|
|
7055
|
+
approvedCount: numberType()
|
|
7056
|
+
});
|
|
7057
|
+
const guardExportSignatureSchema = objectType({
|
|
7058
|
+
algorithm: enumType(["hmac-sha256", "none"]),
|
|
7059
|
+
digest: stringType()
|
|
7060
|
+
});
|
|
7061
|
+
const guardReceiptExportResponseSchema = objectType({
|
|
7062
|
+
generatedAt: stringType(),
|
|
7063
|
+
summary: guardReceiptExportSummarySchema,
|
|
7064
|
+
provenanceSummary: arrayType(stringType()),
|
|
7065
|
+
items: arrayType(guardReceiptSchema),
|
|
7066
|
+
signature: guardExportSignatureSchema
|
|
7067
|
+
});
|
|
7068
|
+
const guardAlertPreferencesSchema = objectType({
|
|
7069
|
+
emailEnabled: booleanType(),
|
|
7070
|
+
digestMode: enumType(["immediate", "daily", "weekly"]),
|
|
7071
|
+
watchlistEnabled: booleanType(),
|
|
7072
|
+
advisoriesEnabled: booleanType(),
|
|
7073
|
+
repeatedWarningsEnabled: booleanType(),
|
|
7074
|
+
teamAlertsEnabled: booleanType(),
|
|
7075
|
+
updatedAt: stringType()
|
|
7076
|
+
});
|
|
7077
|
+
const guardWatchlistItemSchema = objectType({
|
|
7078
|
+
artifactId: stringType(),
|
|
7079
|
+
artifactName: stringType(),
|
|
7080
|
+
artifactType: enumType(["skill", "plugin"]),
|
|
7081
|
+
artifactSlug: stringType(),
|
|
7082
|
+
reason: stringType(),
|
|
7083
|
+
source: enumType(["manual", "synced", "team-policy"]),
|
|
7084
|
+
createdAt: stringType()
|
|
7085
|
+
});
|
|
7086
|
+
const guardWatchlistResponseSchema = objectType({
|
|
7087
|
+
generatedAt: stringType(),
|
|
7088
|
+
items: arrayType(guardWatchlistItemSchema)
|
|
7089
|
+
});
|
|
7090
|
+
const guardExceptionItemSchema = objectType({
|
|
7091
|
+
exceptionId: stringType(),
|
|
7092
|
+
scope: enumType(["artifact", "publisher", "harness", "global"]),
|
|
7093
|
+
harness: stringType().nullable(),
|
|
7094
|
+
artifactId: stringType().nullable(),
|
|
7095
|
+
publisher: stringType().nullable(),
|
|
7096
|
+
reason: stringType(),
|
|
7097
|
+
owner: stringType(),
|
|
7098
|
+
source: enumType(["manual", "team-policy"]),
|
|
7099
|
+
expiresAt: stringType(),
|
|
7100
|
+
createdAt: stringType(),
|
|
7101
|
+
updatedAt: stringType()
|
|
7102
|
+
});
|
|
7103
|
+
const guardExceptionListResponseSchema = objectType({
|
|
7104
|
+
generatedAt: stringType(),
|
|
7105
|
+
items: arrayType(guardExceptionItemSchema)
|
|
7106
|
+
});
|
|
7107
|
+
const guardTeamPolicyAuditItemSchema = objectType({
|
|
7108
|
+
changedAt: stringType(),
|
|
7109
|
+
actor: stringType(),
|
|
7110
|
+
change: enumType(["created", "updated"]),
|
|
7111
|
+
summary: stringType()
|
|
7112
|
+
});
|
|
7113
|
+
const guardTeamPolicyPackSchema = objectType({
|
|
7114
|
+
name: stringType(),
|
|
7115
|
+
sharedHarnessDefaults: recordType(stringType(), enumType(["observe", "prompt", "enforce"])),
|
|
7116
|
+
allowedPublishers: arrayType(stringType()),
|
|
7117
|
+
blockedArtifacts: arrayType(stringType()),
|
|
7118
|
+
alertChannel: enumType(["email", "slack", "teams", "webhook"]),
|
|
7119
|
+
updatedAt: stringType(),
|
|
7120
|
+
auditTrail: arrayType(guardTeamPolicyAuditItemSchema)
|
|
7121
|
+
});
|
|
7122
|
+
const guardDeviceSchema = objectType({
|
|
7123
|
+
deviceId: stringType(),
|
|
7124
|
+
deviceName: stringType(),
|
|
7125
|
+
harnesses: arrayType(stringType()),
|
|
7126
|
+
receiptCount: numberType(),
|
|
7127
|
+
lastSeenAt: stringType()
|
|
7128
|
+
});
|
|
7129
|
+
const guardDeviceListResponseSchema = objectType({
|
|
7130
|
+
generatedAt: stringType(),
|
|
7131
|
+
items: arrayType(guardDeviceSchema)
|
|
6944
7132
|
});
|
|
6945
7133
|
const hbarPurchaseIntentResponseSchema = objectType({
|
|
6946
7134
|
transaction: stringType(),
|
|
@@ -9847,10 +10035,198 @@ async function getGuardRevocations(client) {
|
|
|
9847
10035
|
"guard revocations response"
|
|
9848
10036
|
);
|
|
9849
10037
|
}
|
|
10038
|
+
async function getGuardInventory(client) {
|
|
10039
|
+
const raw = await client.requestJson("/guard/inventory", {
|
|
10040
|
+
method: "GET"
|
|
10041
|
+
});
|
|
10042
|
+
return client.parseWithSchema(
|
|
10043
|
+
raw,
|
|
10044
|
+
guardInventoryResponseSchema,
|
|
10045
|
+
"guard inventory response"
|
|
10046
|
+
);
|
|
10047
|
+
}
|
|
10048
|
+
async function getGuardReceiptHistory(client) {
|
|
10049
|
+
const raw = await client.requestJson("/guard/history", {
|
|
10050
|
+
method: "GET"
|
|
10051
|
+
});
|
|
10052
|
+
return client.parseWithSchema(
|
|
10053
|
+
raw,
|
|
10054
|
+
guardReceiptHistoryResponseSchema,
|
|
10055
|
+
"guard receipt history response"
|
|
10056
|
+
);
|
|
10057
|
+
}
|
|
10058
|
+
async function getGuardArtifactTimeline(client, artifactId) {
|
|
10059
|
+
const normalizedArtifactId = artifactId.trim();
|
|
10060
|
+
if (!normalizedArtifactId) {
|
|
10061
|
+
throw new Error("artifactId is required");
|
|
10062
|
+
}
|
|
10063
|
+
const raw = await client.requestJson(
|
|
10064
|
+
`/guard/history/${encodeURIComponent(normalizedArtifactId)}`,
|
|
10065
|
+
{ method: "GET" }
|
|
10066
|
+
);
|
|
10067
|
+
return client.parseWithSchema(
|
|
10068
|
+
raw,
|
|
10069
|
+
guardArtifactTimelineResponseSchema,
|
|
10070
|
+
"guard artifact timeline response"
|
|
10071
|
+
);
|
|
10072
|
+
}
|
|
10073
|
+
async function exportGuardAbom(client) {
|
|
10074
|
+
const raw = await client.requestJson("/guard/abom", {
|
|
10075
|
+
method: "GET"
|
|
10076
|
+
});
|
|
10077
|
+
return client.parseWithSchema(
|
|
10078
|
+
raw,
|
|
10079
|
+
guardAbomResponseSchema,
|
|
10080
|
+
"guard abom response"
|
|
10081
|
+
);
|
|
10082
|
+
}
|
|
10083
|
+
async function exportGuardReceipts(client) {
|
|
10084
|
+
const raw = await client.requestJson("/guard/receipts/export", {
|
|
10085
|
+
method: "GET"
|
|
10086
|
+
});
|
|
10087
|
+
return client.parseWithSchema(
|
|
10088
|
+
raw,
|
|
10089
|
+
guardReceiptExportResponseSchema,
|
|
10090
|
+
"guard receipt export response"
|
|
10091
|
+
);
|
|
10092
|
+
}
|
|
10093
|
+
async function getGuardInventoryDiff(client) {
|
|
10094
|
+
const raw = await client.requestJson("/guard/inventory/diff", {
|
|
10095
|
+
method: "GET"
|
|
10096
|
+
});
|
|
10097
|
+
return client.parseWithSchema(
|
|
10098
|
+
raw,
|
|
10099
|
+
guardInventoryDiffResponseSchema,
|
|
10100
|
+
"guard inventory diff response"
|
|
10101
|
+
);
|
|
10102
|
+
}
|
|
10103
|
+
async function getGuardDevices(client) {
|
|
10104
|
+
const raw = await client.requestJson("/guard/devices", {
|
|
10105
|
+
method: "GET"
|
|
10106
|
+
});
|
|
10107
|
+
return client.parseWithSchema(
|
|
10108
|
+
raw,
|
|
10109
|
+
guardDeviceListResponseSchema,
|
|
10110
|
+
"guard devices response"
|
|
10111
|
+
);
|
|
10112
|
+
}
|
|
10113
|
+
async function getGuardAlertPreferences(client) {
|
|
10114
|
+
const raw = await client.requestJson("/guard/alerts/preferences", {
|
|
10115
|
+
method: "GET"
|
|
10116
|
+
});
|
|
10117
|
+
return client.parseWithSchema(
|
|
10118
|
+
raw,
|
|
10119
|
+
guardAlertPreferencesSchema,
|
|
10120
|
+
"guard alert preferences response"
|
|
10121
|
+
);
|
|
10122
|
+
}
|
|
10123
|
+
async function updateGuardAlertPreferences(client, payload) {
|
|
10124
|
+
const raw = await client.requestJson("/guard/alerts/preferences", {
|
|
10125
|
+
method: "PUT",
|
|
10126
|
+
body: payload
|
|
10127
|
+
});
|
|
10128
|
+
return client.parseWithSchema(
|
|
10129
|
+
raw,
|
|
10130
|
+
guardAlertPreferencesSchema,
|
|
10131
|
+
"guard alert preferences response"
|
|
10132
|
+
);
|
|
10133
|
+
}
|
|
10134
|
+
async function getGuardExceptions(client) {
|
|
10135
|
+
const raw = await client.requestJson("/guard/exceptions", {
|
|
10136
|
+
method: "GET"
|
|
10137
|
+
});
|
|
10138
|
+
return client.parseWithSchema(
|
|
10139
|
+
raw,
|
|
10140
|
+
guardExceptionListResponseSchema,
|
|
10141
|
+
"guard exceptions response"
|
|
10142
|
+
);
|
|
10143
|
+
}
|
|
10144
|
+
async function getGuardWatchlist(client) {
|
|
10145
|
+
const raw = await client.requestJson("/guard/watchlist", {
|
|
10146
|
+
method: "GET"
|
|
10147
|
+
});
|
|
10148
|
+
return client.parseWithSchema(
|
|
10149
|
+
raw,
|
|
10150
|
+
guardWatchlistResponseSchema,
|
|
10151
|
+
"guard watchlist response"
|
|
10152
|
+
);
|
|
10153
|
+
}
|
|
10154
|
+
async function addGuardWatchlistItem(client, payload) {
|
|
10155
|
+
const raw = await client.requestJson("/guard/watchlist", {
|
|
10156
|
+
method: "POST",
|
|
10157
|
+
body: payload
|
|
10158
|
+
});
|
|
10159
|
+
return client.parseWithSchema(
|
|
10160
|
+
raw,
|
|
10161
|
+
guardWatchlistResponseSchema,
|
|
10162
|
+
"guard watchlist response"
|
|
10163
|
+
);
|
|
10164
|
+
}
|
|
10165
|
+
async function removeGuardWatchlistItem(client, artifactId) {
|
|
10166
|
+
const normalizedArtifactId = artifactId.trim();
|
|
10167
|
+
if (!normalizedArtifactId) {
|
|
10168
|
+
throw new Error("artifactId is required");
|
|
10169
|
+
}
|
|
10170
|
+
const raw = await client.requestJson(
|
|
10171
|
+
`/guard/watchlist/${encodeURIComponent(normalizedArtifactId)}`,
|
|
10172
|
+
{ method: "DELETE" }
|
|
10173
|
+
);
|
|
10174
|
+
return client.parseWithSchema(
|
|
10175
|
+
raw,
|
|
10176
|
+
guardWatchlistResponseSchema,
|
|
10177
|
+
"guard watchlist response"
|
|
10178
|
+
);
|
|
10179
|
+
}
|
|
10180
|
+
async function addGuardException(client, payload) {
|
|
10181
|
+
const raw = await client.requestJson("/guard/exceptions", {
|
|
10182
|
+
method: "POST",
|
|
10183
|
+
body: payload
|
|
10184
|
+
});
|
|
10185
|
+
return client.parseWithSchema(
|
|
10186
|
+
raw,
|
|
10187
|
+
guardExceptionListResponseSchema,
|
|
10188
|
+
"guard exceptions response"
|
|
10189
|
+
);
|
|
10190
|
+
}
|
|
10191
|
+
async function removeGuardException(client, exceptionId) {
|
|
10192
|
+
const normalizedExceptionId = exceptionId.trim();
|
|
10193
|
+
if (!normalizedExceptionId) {
|
|
10194
|
+
throw new Error("exceptionId is required");
|
|
10195
|
+
}
|
|
10196
|
+
const raw = await client.requestJson(
|
|
10197
|
+
`/guard/exceptions/${encodeURIComponent(normalizedExceptionId)}`,
|
|
10198
|
+
{ method: "DELETE" }
|
|
10199
|
+
);
|
|
10200
|
+
return client.parseWithSchema(
|
|
10201
|
+
raw,
|
|
10202
|
+
guardExceptionListResponseSchema,
|
|
10203
|
+
"guard exceptions response"
|
|
10204
|
+
);
|
|
10205
|
+
}
|
|
10206
|
+
async function getGuardTeamPolicyPack(client) {
|
|
10207
|
+
const raw = await client.requestJson("/guard/team/policy-pack", {
|
|
10208
|
+
method: "GET"
|
|
10209
|
+
});
|
|
10210
|
+
return client.parseWithSchema(
|
|
10211
|
+
raw,
|
|
10212
|
+
guardTeamPolicyPackSchema,
|
|
10213
|
+
"guard team policy pack response"
|
|
10214
|
+
);
|
|
10215
|
+
}
|
|
10216
|
+
async function updateGuardTeamPolicyPack(client, payload) {
|
|
10217
|
+
const raw = await client.requestJson("/guard/team/policy-pack", {
|
|
10218
|
+
method: "PUT",
|
|
10219
|
+
body: payload
|
|
10220
|
+
});
|
|
10221
|
+
return client.parseWithSchema(
|
|
10222
|
+
raw,
|
|
10223
|
+
guardTeamPolicyPackSchema,
|
|
10224
|
+
"guard team policy pack response"
|
|
10225
|
+
);
|
|
10226
|
+
}
|
|
9850
10227
|
async function syncGuardReceipts(client, payload) {
|
|
9851
10228
|
const raw = await client.requestJson("/guard/receipts/sync", {
|
|
9852
10229
|
method: "POST",
|
|
9853
|
-
headers: { "content-type": "application/json" },
|
|
9854
10230
|
body: payload
|
|
9855
10231
|
});
|
|
9856
10232
|
return client.parseWithSchema(
|
|
@@ -11669,9 +12045,60 @@ class RegistryBrokerClient {
|
|
|
11669
12045
|
async getGuardRevocations() {
|
|
11670
12046
|
return getGuardRevocations(this);
|
|
11671
12047
|
}
|
|
12048
|
+
async getGuardInventory() {
|
|
12049
|
+
return getGuardInventory(this);
|
|
12050
|
+
}
|
|
12051
|
+
async getGuardReceiptHistory() {
|
|
12052
|
+
return getGuardReceiptHistory(this);
|
|
12053
|
+
}
|
|
12054
|
+
async getGuardArtifactTimeline(artifactId) {
|
|
12055
|
+
return getGuardArtifactTimeline(this, artifactId);
|
|
12056
|
+
}
|
|
12057
|
+
async getGuardInventoryDiff() {
|
|
12058
|
+
return getGuardInventoryDiff(this);
|
|
12059
|
+
}
|
|
12060
|
+
async exportGuardAbom() {
|
|
12061
|
+
return exportGuardAbom(this);
|
|
12062
|
+
}
|
|
12063
|
+
async exportGuardReceipts() {
|
|
12064
|
+
return exportGuardReceipts(this);
|
|
12065
|
+
}
|
|
12066
|
+
async getGuardDevices() {
|
|
12067
|
+
return getGuardDevices(this);
|
|
12068
|
+
}
|
|
12069
|
+
async getGuardAlertPreferences() {
|
|
12070
|
+
return getGuardAlertPreferences(this);
|
|
12071
|
+
}
|
|
12072
|
+
async updateGuardAlertPreferences(payload) {
|
|
12073
|
+
return updateGuardAlertPreferences(this, payload);
|
|
12074
|
+
}
|
|
12075
|
+
async getGuardExceptions() {
|
|
12076
|
+
return getGuardExceptions(this);
|
|
12077
|
+
}
|
|
12078
|
+
async getGuardWatchlist() {
|
|
12079
|
+
return getGuardWatchlist(this);
|
|
12080
|
+
}
|
|
12081
|
+
async addGuardWatchlistItem(payload) {
|
|
12082
|
+
return addGuardWatchlistItem(this, payload);
|
|
12083
|
+
}
|
|
12084
|
+
async removeGuardWatchlistItem(artifactId) {
|
|
12085
|
+
return removeGuardWatchlistItem(this, artifactId);
|
|
12086
|
+
}
|
|
12087
|
+
async addGuardException(payload) {
|
|
12088
|
+
return addGuardException(this, payload);
|
|
12089
|
+
}
|
|
12090
|
+
async removeGuardException(exceptionId) {
|
|
12091
|
+
return removeGuardException(this, exceptionId);
|
|
12092
|
+
}
|
|
11672
12093
|
async syncGuardReceipts(payload) {
|
|
11673
12094
|
return syncGuardReceipts(this, payload);
|
|
11674
12095
|
}
|
|
12096
|
+
async getGuardTeamPolicyPack() {
|
|
12097
|
+
return getGuardTeamPolicyPack(this);
|
|
12098
|
+
}
|
|
12099
|
+
async updateGuardTeamPolicyPack(payload) {
|
|
12100
|
+
return updateGuardTeamPolicyPack(this, payload);
|
|
12101
|
+
}
|
|
11675
12102
|
async createHbarPurchaseIntent(payload) {
|
|
11676
12103
|
return createHbarPurchaseIntent(this, payload);
|
|
11677
12104
|
}
|