@hashgraphonline/standards-sdk 0.1.177 → 0.1.178
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/hcs-11/client.d.ts +30 -30
- package/dist/browser/hcs-21/types.d.ts +23 -23
- package/dist/browser/inscribe/inscriber.d.ts.map +1 -1
- package/dist/browser/services/registry-broker/client/base-client.d.ts +13 -1
- package/dist/browser/services/registry-broker/client/base-client.d.ts.map +1 -1
- package/dist/browser/services/registry-broker/client/credits.d.ts +6 -1
- package/dist/browser/services/registry-broker/client/credits.d.ts.map +1 -1
- package/dist/browser/services/registry-broker/client/guard.d.ts +10 -0
- package/dist/browser/services/registry-broker/client/guard.d.ts.map +1 -0
- package/dist/browser/services/registry-broker/client/skills.d.ts.map +1 -1
- package/dist/browser/services/registry-broker/schemas.d.ts +723 -45
- package/dist/browser/services/registry-broker/schemas.d.ts.map +1 -1
- package/dist/browser/services/registry-broker/types.d.ts +31 -1
- package/dist/browser/services/registry-broker/types.d.ts.map +1 -1
- package/dist/browser/standards-sdk.browser.js +163 -6
- package/dist/browser/standards-sdk.browser.js.map +1 -1
- package/dist/browser/utils/dynamic-import.d.ts.map +1 -1
- package/dist/browser-root/hcs-11/client.d.ts +30 -30
- package/dist/browser-root/hcs-21/types.d.ts +23 -23
- package/dist/browser-root/inscribe/inscriber.d.ts.map +1 -1
- package/dist/browser-root/services/registry-broker/client/base-client.d.ts +13 -1
- package/dist/browser-root/services/registry-broker/client/base-client.d.ts.map +1 -1
- package/dist/browser-root/services/registry-broker/client/credits.d.ts +6 -1
- package/dist/browser-root/services/registry-broker/client/credits.d.ts.map +1 -1
- package/dist/browser-root/services/registry-broker/client/guard.d.ts +10 -0
- package/dist/browser-root/services/registry-broker/client/guard.d.ts.map +1 -0
- package/dist/browser-root/services/registry-broker/client/skills.d.ts.map +1 -1
- package/dist/browser-root/services/registry-broker/schemas.d.ts +723 -45
- package/dist/browser-root/services/registry-broker/schemas.d.ts.map +1 -1
- package/dist/browser-root/services/registry-broker/types.d.ts +31 -1
- package/dist/browser-root/services/registry-broker/types.d.ts.map +1 -1
- package/dist/browser-root/standards-sdk.root-browser.js +373 -131
- package/dist/browser-root/standards-sdk.root-browser.js.map +1 -1
- package/dist/browser-root/utils/dynamic-import.d.ts.map +1 -1
- package/dist/cjs/hcs-11/client.d.ts +30 -30
- package/dist/cjs/inscribe/inscriber.d.ts.map +1 -1
- package/dist/cjs/services/registry-broker/client/base-client.d.ts +13 -1
- package/dist/cjs/services/registry-broker/client/base-client.d.ts.map +1 -1
- package/dist/cjs/services/registry-broker/client/credits.d.ts +6 -1
- package/dist/cjs/services/registry-broker/client/credits.d.ts.map +1 -1
- package/dist/cjs/services/registry-broker/client/guard.d.ts +10 -0
- package/dist/cjs/services/registry-broker/client/guard.d.ts.map +1 -0
- package/dist/cjs/services/registry-broker/client/skills.d.ts.map +1 -1
- package/dist/cjs/services/registry-broker/schemas.d.ts +686 -8
- package/dist/cjs/services/registry-broker/schemas.d.ts.map +1 -1
- package/dist/cjs/services/registry-broker/types.d.ts +31 -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/cjs/utils/dynamic-import.d.ts.map +1 -1
- package/dist/es/hcs-11/client.d.ts +30 -30
- package/dist/es/inscribe/inscriber.d.ts.map +1 -1
- package/dist/es/services/registry-broker/client/base-client.d.ts +13 -1
- package/dist/es/services/registry-broker/client/base-client.d.ts.map +1 -1
- package/dist/es/services/registry-broker/client/credits.d.ts +6 -1
- package/dist/es/services/registry-broker/client/credits.d.ts.map +1 -1
- package/dist/es/services/registry-broker/client/guard.d.ts +10 -0
- package/dist/es/services/registry-broker/client/guard.d.ts.map +1 -0
- package/dist/es/services/registry-broker/client/skills.d.ts.map +1 -1
- package/dist/es/services/registry-broker/schemas.d.ts +686 -8
- package/dist/es/services/registry-broker/schemas.d.ts.map +1 -1
- package/dist/es/services/registry-broker/types.d.ts +31 -1
- package/dist/es/services/registry-broker/types.d.ts.map +1 -1
- package/dist/es/standards-sdk.es121.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 +8 -5
- package/dist/es/standards-sdk.es142.js.map +1 -1
- package/dist/es/standards-sdk.es145.js +37 -6
- package/dist/es/standards-sdk.es145.js.map +1 -1
- package/dist/es/standards-sdk.es147.js +1 -1
- package/dist/es/standards-sdk.es148.js +1 -1
- package/dist/es/standards-sdk.es161.js +165 -2
- package/dist/es/standards-sdk.es161.js.map +1 -1
- package/dist/es/standards-sdk.es162.js +54 -15
- package/dist/es/standards-sdk.es162.js.map +1 -1
- package/dist/es/standards-sdk.es163.js +97 -158
- package/dist/es/standards-sdk.es163.js.map +1 -1
- package/dist/es/standards-sdk.es164.js +71 -312
- package/dist/es/standards-sdk.es164.js.map +1 -1
- package/dist/es/standards-sdk.es165.js +187 -333
- package/dist/es/standards-sdk.es165.js.map +1 -1
- package/dist/es/standards-sdk.es166.js +13 -449
- package/dist/es/standards-sdk.es166.js.map +1 -1
- package/dist/es/standards-sdk.es167.js +65 -323
- package/dist/es/standards-sdk.es167.js.map +1 -1
- package/dist/es/standards-sdk.es168.js +162 -66
- package/dist/es/standards-sdk.es168.js.map +1 -1
- package/dist/es/standards-sdk.es169.js +304 -740
- package/dist/es/standards-sdk.es169.js.map +1 -1
- package/dist/es/standards-sdk.es170.js +345 -55
- package/dist/es/standards-sdk.es170.js.map +1 -1
- package/dist/es/standards-sdk.es171.js +435 -86
- package/dist/es/standards-sdk.es171.js.map +1 -1
- package/dist/es/standards-sdk.es172.js +321 -71
- package/dist/es/standards-sdk.es172.js.map +1 -1
- package/dist/es/standards-sdk.es173.js +58 -182
- package/dist/es/standards-sdk.es173.js.map +1 -1
- package/dist/es/standards-sdk.es174.js +667 -68
- package/dist/es/standards-sdk.es174.js.map +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.es181.js +61 -3
- package/dist/es/standards-sdk.es181.js.map +1 -1
- package/dist/es/standards-sdk.es182.js +80 -168
- package/dist/es/standards-sdk.es182.js.map +1 -1
- package/dist/es/standards-sdk.es183.js +156 -206
- package/dist/es/standards-sdk.es183.js.map +1 -1
- package/dist/es/standards-sdk.es184.js +219 -223
- package/dist/es/standards-sdk.es184.js.map +1 -1
- package/dist/es/standards-sdk.es185.js +242 -0
- package/dist/es/standards-sdk.es185.js.map +1 -0
- 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/dist/es/utils/dynamic-import.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -6813,6 +6813,151 @@ const creditPurchaseResponseSchema = objectType({
|
|
|
6813
6813
|
transactionId: stringType(),
|
|
6814
6814
|
consensusTimestamp: stringType().nullable().optional()
|
|
6815
6815
|
});
|
|
6816
|
+
const creditProviderSummarySchema = objectType({
|
|
6817
|
+
name: stringType(),
|
|
6818
|
+
publishableKey: stringType().optional(),
|
|
6819
|
+
currency: stringType().optional(),
|
|
6820
|
+
centsPerHbar: numberType().nullable().optional()
|
|
6821
|
+
});
|
|
6822
|
+
const creditProvidersResponseSchema = objectType({
|
|
6823
|
+
providers: arrayType(creditProviderSummarySchema)
|
|
6824
|
+
});
|
|
6825
|
+
const creditBalanceResponseSchema = objectType({
|
|
6826
|
+
accountId: stringType(),
|
|
6827
|
+
balance: numberType(),
|
|
6828
|
+
balanceRecord: jsonValueSchema.optional(),
|
|
6829
|
+
timestamp: stringType().optional()
|
|
6830
|
+
});
|
|
6831
|
+
const guardPlanIdSchema = enumType(["free", "pro", "team", "enterprise"]);
|
|
6832
|
+
const guardBucketBalanceSchema = objectType({
|
|
6833
|
+
bucketId: enumType([
|
|
6834
|
+
"registry_credits",
|
|
6835
|
+
"chat_credits",
|
|
6836
|
+
"guard_credits",
|
|
6837
|
+
"org_policy_credits"
|
|
6838
|
+
]),
|
|
6839
|
+
label: stringType(),
|
|
6840
|
+
availableCredits: numberType(),
|
|
6841
|
+
includedMonthlyCredits: numberType().nullable().optional()
|
|
6842
|
+
});
|
|
6843
|
+
const guardPrincipalSchema = objectType({
|
|
6844
|
+
signedIn: booleanType(),
|
|
6845
|
+
userId: stringType().optional(),
|
|
6846
|
+
email: stringType().optional(),
|
|
6847
|
+
accountId: stringType().optional(),
|
|
6848
|
+
stripeCustomerId: stringType().optional(),
|
|
6849
|
+
roles: arrayType(stringType())
|
|
6850
|
+
});
|
|
6851
|
+
const guardEntitlementsSchema = objectType({
|
|
6852
|
+
planId: guardPlanIdSchema,
|
|
6853
|
+
includedMonthlyCredits: numberType(),
|
|
6854
|
+
deviceLimit: numberType(),
|
|
6855
|
+
retentionDays: numberType(),
|
|
6856
|
+
syncEnabled: booleanType(),
|
|
6857
|
+
premiumFeedsEnabled: booleanType(),
|
|
6858
|
+
teamPolicyEnabled: booleanType()
|
|
6859
|
+
});
|
|
6860
|
+
const guardSessionResponseSchema = objectType({
|
|
6861
|
+
principal: guardPrincipalSchema,
|
|
6862
|
+
entitlements: guardEntitlementsSchema,
|
|
6863
|
+
balance: objectType({
|
|
6864
|
+
accountId: stringType(),
|
|
6865
|
+
availableCredits: numberType()
|
|
6866
|
+
}).nullable(),
|
|
6867
|
+
bucketingMode: enumType(["shared-ledger", "product-bucketed"]),
|
|
6868
|
+
buckets: arrayType(guardBucketBalanceSchema)
|
|
6869
|
+
});
|
|
6870
|
+
const guardBalanceResponseSchema = objectType({
|
|
6871
|
+
generatedAt: stringType(),
|
|
6872
|
+
bucketingMode: enumType(["shared-ledger", "product-bucketed"]),
|
|
6873
|
+
buckets: arrayType(guardBucketBalanceSchema)
|
|
6874
|
+
});
|
|
6875
|
+
const guardTrustMatchSchema = objectType({
|
|
6876
|
+
artifactId: stringType(),
|
|
6877
|
+
artifactName: stringType(),
|
|
6878
|
+
artifactType: enumType(["skill", "plugin"]),
|
|
6879
|
+
artifactSlug: stringType(),
|
|
6880
|
+
recommendation: enumType(["monitor", "review", "block"]),
|
|
6881
|
+
verified: booleanType(),
|
|
6882
|
+
safetyScore: numberType().nullable().optional(),
|
|
6883
|
+
trustScore: numberType().nullable().optional(),
|
|
6884
|
+
href: stringType().optional(),
|
|
6885
|
+
ecosystem: stringType().optional()
|
|
6886
|
+
});
|
|
6887
|
+
const guardTrustByHashResponseSchema = objectType({
|
|
6888
|
+
generatedAt: stringType(),
|
|
6889
|
+
query: objectType({
|
|
6890
|
+
sha256: stringType()
|
|
6891
|
+
}),
|
|
6892
|
+
match: guardTrustMatchSchema.nullable(),
|
|
6893
|
+
evidence: arrayType(stringType())
|
|
6894
|
+
});
|
|
6895
|
+
const guardTrustResolveResponseSchema = objectType({
|
|
6896
|
+
generatedAt: stringType(),
|
|
6897
|
+
query: objectType({
|
|
6898
|
+
ecosystem: stringType().optional(),
|
|
6899
|
+
name: stringType().optional(),
|
|
6900
|
+
version: stringType().optional()
|
|
6901
|
+
}),
|
|
6902
|
+
items: arrayType(guardTrustMatchSchema)
|
|
6903
|
+
});
|
|
6904
|
+
const guardRevocationSchema = objectType({
|
|
6905
|
+
id: stringType(),
|
|
6906
|
+
artifactId: stringType(),
|
|
6907
|
+
artifactName: stringType(),
|
|
6908
|
+
reason: stringType(),
|
|
6909
|
+
severity: enumType(["low", "medium", "high"]),
|
|
6910
|
+
publishedAt: stringType()
|
|
6911
|
+
});
|
|
6912
|
+
const guardRevocationResponseSchema = objectType({
|
|
6913
|
+
generatedAt: stringType(),
|
|
6914
|
+
items: arrayType(guardRevocationSchema)
|
|
6915
|
+
});
|
|
6916
|
+
objectType({
|
|
6917
|
+
receiptId: stringType(),
|
|
6918
|
+
capturedAt: stringType(),
|
|
6919
|
+
harness: stringType(),
|
|
6920
|
+
deviceId: stringType(),
|
|
6921
|
+
deviceName: stringType(),
|
|
6922
|
+
artifactId: stringType(),
|
|
6923
|
+
artifactName: stringType(),
|
|
6924
|
+
artifactType: enumType(["skill", "plugin"]),
|
|
6925
|
+
artifactSlug: stringType(),
|
|
6926
|
+
artifactHash: stringType(),
|
|
6927
|
+
policyDecision: enumType([
|
|
6928
|
+
"allow",
|
|
6929
|
+
"warn",
|
|
6930
|
+
"block",
|
|
6931
|
+
"review",
|
|
6932
|
+
"require-reapproval",
|
|
6933
|
+
"sandbox-required"
|
|
6934
|
+
]),
|
|
6935
|
+
recommendation: enumType(["monitor", "review", "block"]),
|
|
6936
|
+
changedSinceLastApproval: booleanType(),
|
|
6937
|
+
publisher: stringType().optional(),
|
|
6938
|
+
capabilities: arrayType(stringType()),
|
|
6939
|
+
summary: stringType()
|
|
6940
|
+
});
|
|
6941
|
+
const guardReceiptSyncResponseSchema = objectType({
|
|
6942
|
+
syncedAt: stringType(),
|
|
6943
|
+
receiptsStored: numberType()
|
|
6944
|
+
});
|
|
6945
|
+
const hbarPurchaseIntentResponseSchema = objectType({
|
|
6946
|
+
transaction: stringType(),
|
|
6947
|
+
transactionId: stringType(),
|
|
6948
|
+
network: enumType(["mainnet", "testnet"]),
|
|
6949
|
+
accountId: stringType(),
|
|
6950
|
+
treasuryAccountId: stringType(),
|
|
6951
|
+
hbarAmount: numberType(),
|
|
6952
|
+
credits: numberType(),
|
|
6953
|
+
tinybarAmount: numberType(),
|
|
6954
|
+
memo: stringType(),
|
|
6955
|
+
centsPerHbar: numberType(),
|
|
6956
|
+
validStart: stringType(),
|
|
6957
|
+
validDurationSeconds: numberType(),
|
|
6958
|
+
requiresManualSubmit: literalType(true),
|
|
6959
|
+
purchaseId: stringType()
|
|
6960
|
+
});
|
|
6816
6961
|
const x402SettlementSchema = objectType({
|
|
6817
6962
|
success: booleanType().optional(),
|
|
6818
6963
|
transaction: stringType().optional(),
|
|
@@ -7195,11 +7340,13 @@ const skillDeprecationsResponseSchema = objectType({
|
|
|
7195
7340
|
name: stringType(),
|
|
7196
7341
|
items: arrayType(skillDeprecationRecordSchema)
|
|
7197
7342
|
}).passthrough();
|
|
7343
|
+
const skillSecurityBreakdownFindingSchema = recordType(jsonValueSchema);
|
|
7344
|
+
const skillSecurityBreakdownSummarySchema = recordType(jsonValueSchema);
|
|
7198
7345
|
const skillSecurityBreakdownResponseSchema = objectType({
|
|
7199
7346
|
jobId: stringType(),
|
|
7200
7347
|
score: numberType().nullable().optional(),
|
|
7201
|
-
findings: arrayType(
|
|
7202
|
-
summary:
|
|
7348
|
+
findings: arrayType(skillSecurityBreakdownFindingSchema).optional(),
|
|
7349
|
+
summary: skillSecurityBreakdownSummarySchema.optional(),
|
|
7203
7350
|
generatedAt: stringType().nullable().optional(),
|
|
7204
7351
|
scannerVersion: stringType().nullable().optional()
|
|
7205
7352
|
}).passthrough();
|
|
@@ -8646,9 +8793,16 @@ async function endSession(client, sessionId) {
|
|
|
8646
8793
|
const isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined";
|
|
8647
8794
|
let nodeRequire;
|
|
8648
8795
|
const isNodeRuntime = () => typeof process !== "undefined" && Boolean(process.versions?.node);
|
|
8796
|
+
function resolveBuiltinModuleLoader() {
|
|
8797
|
+
if (typeof process === "undefined") {
|
|
8798
|
+
return void 0;
|
|
8799
|
+
}
|
|
8800
|
+
return process.getBuiltinModule;
|
|
8801
|
+
}
|
|
8649
8802
|
function getNodeRequireSync() {
|
|
8650
8803
|
try {
|
|
8651
|
-
const
|
|
8804
|
+
const builtinModuleLoader = resolveBuiltinModuleLoader();
|
|
8805
|
+
const moduleNamespace = builtinModuleLoader?.("module");
|
|
8652
8806
|
if (typeof moduleNamespace?.createRequire === "function") {
|
|
8653
8807
|
const requireFromModule = moduleNamespace.createRequire(import.meta.url);
|
|
8654
8808
|
if (typeof requireFromModule.resolve === "function") {
|
|
@@ -9041,6 +9195,61 @@ async function adapterRegistrySubmissionStatus(client, submissionId) {
|
|
|
9041
9195
|
"adapter registry submission status response"
|
|
9042
9196
|
);
|
|
9043
9197
|
}
|
|
9198
|
+
async function getCreditsBalance(client, params = {}) {
|
|
9199
|
+
const query = new URLSearchParams();
|
|
9200
|
+
const normalizedAccountId = params.accountId?.trim();
|
|
9201
|
+
if (normalizedAccountId) {
|
|
9202
|
+
query.set("accountId", normalizedAccountId);
|
|
9203
|
+
}
|
|
9204
|
+
const suffix = query.size > 0 ? `?${query.toString()}` : "";
|
|
9205
|
+
const raw = await client.requestJson(`/credits/balance${suffix}`, {
|
|
9206
|
+
method: "GET"
|
|
9207
|
+
});
|
|
9208
|
+
return client.parseWithSchema(
|
|
9209
|
+
raw,
|
|
9210
|
+
creditBalanceResponseSchema,
|
|
9211
|
+
"credit balance response"
|
|
9212
|
+
);
|
|
9213
|
+
}
|
|
9214
|
+
async function getCreditProviders(client) {
|
|
9215
|
+
const raw = await client.requestJson("/credits/providers", {
|
|
9216
|
+
method: "GET"
|
|
9217
|
+
});
|
|
9218
|
+
return client.parseWithSchema(
|
|
9219
|
+
raw,
|
|
9220
|
+
creditProvidersResponseSchema,
|
|
9221
|
+
"credit providers response"
|
|
9222
|
+
);
|
|
9223
|
+
}
|
|
9224
|
+
async function createHbarPurchaseIntent(client, payload) {
|
|
9225
|
+
const body = {};
|
|
9226
|
+
const normalizedAccountId = payload.accountId?.trim();
|
|
9227
|
+
if (normalizedAccountId) {
|
|
9228
|
+
body.accountId = normalizedAccountId;
|
|
9229
|
+
}
|
|
9230
|
+
if (payload.credits !== void 0) {
|
|
9231
|
+
body.credits = payload.credits;
|
|
9232
|
+
}
|
|
9233
|
+
if (payload.hbarAmount !== void 0) {
|
|
9234
|
+
body.hbarAmount = payload.hbarAmount;
|
|
9235
|
+
}
|
|
9236
|
+
if (payload.memo?.trim()) {
|
|
9237
|
+
body.memo = payload.memo.trim();
|
|
9238
|
+
}
|
|
9239
|
+
const raw = await client.requestJson(
|
|
9240
|
+
"/credits/payments/hbar/intent",
|
|
9241
|
+
{
|
|
9242
|
+
method: "POST",
|
|
9243
|
+
headers: { "content-type": "application/json" },
|
|
9244
|
+
body
|
|
9245
|
+
}
|
|
9246
|
+
);
|
|
9247
|
+
return client.parseWithSchema(
|
|
9248
|
+
raw,
|
|
9249
|
+
hbarPurchaseIntentResponseSchema,
|
|
9250
|
+
"hbar purchase intent response"
|
|
9251
|
+
);
|
|
9252
|
+
}
|
|
9044
9253
|
async function loadX402Dependencies(client) {
|
|
9045
9254
|
const [{ default: axios2 }, x402Axios, x402Types] = await Promise.all([
|
|
9046
9255
|
Promise.resolve().then(() => index$1),
|
|
@@ -9561,6 +9770,95 @@ async function registerOwnedMoltbookAgent(client, uaid, request) {
|
|
|
9561
9770
|
"moltbook owner registration update response"
|
|
9562
9771
|
);
|
|
9563
9772
|
}
|
|
9773
|
+
async function getGuardSession(client) {
|
|
9774
|
+
const raw = await client.requestJson("/guard/auth/session", {
|
|
9775
|
+
method: "GET"
|
|
9776
|
+
});
|
|
9777
|
+
return client.parseWithSchema(
|
|
9778
|
+
raw,
|
|
9779
|
+
guardSessionResponseSchema,
|
|
9780
|
+
"guard session response"
|
|
9781
|
+
);
|
|
9782
|
+
}
|
|
9783
|
+
async function getGuardEntitlements(client) {
|
|
9784
|
+
const raw = await client.requestJson("/guard/entitlements", {
|
|
9785
|
+
method: "GET"
|
|
9786
|
+
});
|
|
9787
|
+
return client.parseWithSchema(
|
|
9788
|
+
raw,
|
|
9789
|
+
guardSessionResponseSchema,
|
|
9790
|
+
"guard entitlements response"
|
|
9791
|
+
);
|
|
9792
|
+
}
|
|
9793
|
+
async function getGuardBillingBalance(client) {
|
|
9794
|
+
const raw = await client.requestJson("/guard/billing/balance", {
|
|
9795
|
+
method: "GET"
|
|
9796
|
+
});
|
|
9797
|
+
return client.parseWithSchema(
|
|
9798
|
+
raw,
|
|
9799
|
+
guardBalanceResponseSchema,
|
|
9800
|
+
"guard billing balance response"
|
|
9801
|
+
);
|
|
9802
|
+
}
|
|
9803
|
+
async function getGuardTrustByHash(client, sha2562) {
|
|
9804
|
+
const normalizedHash = sha2562.trim();
|
|
9805
|
+
if (!normalizedHash) {
|
|
9806
|
+
throw new Error("sha256 is required");
|
|
9807
|
+
}
|
|
9808
|
+
const raw = await client.requestJson(
|
|
9809
|
+
`/guard/trust/by-hash/${encodeURIComponent(normalizedHash)}`,
|
|
9810
|
+
{ method: "GET" }
|
|
9811
|
+
);
|
|
9812
|
+
return client.parseWithSchema(
|
|
9813
|
+
raw,
|
|
9814
|
+
guardTrustByHashResponseSchema,
|
|
9815
|
+
"guard trust by hash response"
|
|
9816
|
+
);
|
|
9817
|
+
}
|
|
9818
|
+
async function resolveGuardTrust(client, query) {
|
|
9819
|
+
const params = new URLSearchParams();
|
|
9820
|
+
if (query.ecosystem?.trim()) {
|
|
9821
|
+
params.set("ecosystem", query.ecosystem.trim());
|
|
9822
|
+
}
|
|
9823
|
+
if (query.name?.trim()) {
|
|
9824
|
+
params.set("name", query.name.trim());
|
|
9825
|
+
}
|
|
9826
|
+
if (query.version?.trim()) {
|
|
9827
|
+
params.set("version", query.version.trim());
|
|
9828
|
+
}
|
|
9829
|
+
const suffix = params.size > 0 ? `?${params.toString()}` : "";
|
|
9830
|
+
const raw = await client.requestJson(
|
|
9831
|
+
`/guard/trust/resolve${suffix}`,
|
|
9832
|
+
{ method: "GET" }
|
|
9833
|
+
);
|
|
9834
|
+
return client.parseWithSchema(
|
|
9835
|
+
raw,
|
|
9836
|
+
guardTrustResolveResponseSchema,
|
|
9837
|
+
"guard trust resolve response"
|
|
9838
|
+
);
|
|
9839
|
+
}
|
|
9840
|
+
async function getGuardRevocations(client) {
|
|
9841
|
+
const raw = await client.requestJson("/guard/revocations", {
|
|
9842
|
+
method: "GET"
|
|
9843
|
+
});
|
|
9844
|
+
return client.parseWithSchema(
|
|
9845
|
+
raw,
|
|
9846
|
+
guardRevocationResponseSchema,
|
|
9847
|
+
"guard revocations response"
|
|
9848
|
+
);
|
|
9849
|
+
}
|
|
9850
|
+
async function syncGuardReceipts(client, payload) {
|
|
9851
|
+
const raw = await client.requestJson("/guard/receipts/sync", {
|
|
9852
|
+
method: "POST",
|
|
9853
|
+
headers: { "content-type": "application/json" },
|
|
9854
|
+
body: payload
|
|
9855
|
+
});
|
|
9856
|
+
return client.parseWithSchema(
|
|
9857
|
+
raw,
|
|
9858
|
+
guardReceiptSyncResponseSchema,
|
|
9859
|
+
"guard receipt sync response"
|
|
9860
|
+
);
|
|
9861
|
+
}
|
|
9564
9862
|
const normalise = (value) => value.trim().toLowerCase();
|
|
9565
9863
|
const HEDERA_NETWORK_ALIASES = /* @__PURE__ */ new Map([
|
|
9566
9864
|
["hedera:mainnet", { canonical: "hedera:mainnet", hederaNetwork: "mainnet" }],
|
|
@@ -10120,6 +10418,13 @@ async function facets(client, adapter) {
|
|
|
10120
10418
|
"search facets response"
|
|
10121
10419
|
);
|
|
10122
10420
|
}
|
|
10421
|
+
function requireTrimmedString(value, fieldName) {
|
|
10422
|
+
const normalizedValue = value.trim();
|
|
10423
|
+
if (!normalizedValue) {
|
|
10424
|
+
throw new Error(`${fieldName} is required`);
|
|
10425
|
+
}
|
|
10426
|
+
return normalizedValue;
|
|
10427
|
+
}
|
|
10123
10428
|
async function skillsConfig(client) {
|
|
10124
10429
|
const raw = await client.requestJson("/skills/config", {
|
|
10125
10430
|
method: "GET"
|
|
@@ -10179,10 +10484,7 @@ async function listSkills(client, params = {}) {
|
|
|
10179
10484
|
);
|
|
10180
10485
|
}
|
|
10181
10486
|
async function getSkillSecurityBreakdown(client, params) {
|
|
10182
|
-
const normalizedJobId = params.jobId
|
|
10183
|
-
if (!normalizedJobId) {
|
|
10184
|
-
throw new Error("jobId is required");
|
|
10185
|
-
}
|
|
10487
|
+
const normalizedJobId = requireTrimmedString(params.jobId, "jobId");
|
|
10186
10488
|
const raw = await client.requestJson(
|
|
10187
10489
|
`/skills/${encodeURIComponent(normalizedJobId)}/security-breakdown`,
|
|
10188
10490
|
{ method: "GET" }
|
|
@@ -10235,10 +10537,7 @@ async function getSkillsCatalog(client, params = {}) {
|
|
|
10235
10537
|
);
|
|
10236
10538
|
}
|
|
10237
10539
|
async function listSkillVersions(client, params) {
|
|
10238
|
-
const normalizedName = params.name
|
|
10239
|
-
if (!normalizedName) {
|
|
10240
|
-
throw new Error("name is required");
|
|
10241
|
-
}
|
|
10540
|
+
const normalizedName = requireTrimmedString(params.name, "name");
|
|
10242
10541
|
const query = new URLSearchParams();
|
|
10243
10542
|
query.set("name", normalizedName);
|
|
10244
10543
|
const raw = await client.requestJson(
|
|
@@ -10324,10 +10623,7 @@ async function publishSkill(client, payload) {
|
|
|
10324
10623
|
);
|
|
10325
10624
|
}
|
|
10326
10625
|
async function getSkillPublishJob(client, jobId, params = {}) {
|
|
10327
|
-
const normalized = jobId
|
|
10328
|
-
if (!normalized) {
|
|
10329
|
-
throw new Error("jobId is required");
|
|
10330
|
-
}
|
|
10626
|
+
const normalized = requireTrimmedString(jobId, "jobId");
|
|
10331
10627
|
const query = new URLSearchParams();
|
|
10332
10628
|
if (params.accountId) {
|
|
10333
10629
|
query.set("accountId", params.accountId);
|
|
@@ -10344,10 +10640,7 @@ async function getSkillPublishJob(client, jobId, params = {}) {
|
|
|
10344
10640
|
);
|
|
10345
10641
|
}
|
|
10346
10642
|
async function getSkillOwnership(client, params) {
|
|
10347
|
-
const normalizedName = params.name
|
|
10348
|
-
if (!normalizedName) {
|
|
10349
|
-
throw new Error("name is required");
|
|
10350
|
-
}
|
|
10643
|
+
const normalizedName = requireTrimmedString(params.name, "name");
|
|
10351
10644
|
const query = new URLSearchParams();
|
|
10352
10645
|
query.set("name", normalizedName);
|
|
10353
10646
|
if (params.accountId) {
|
|
@@ -10366,10 +10659,7 @@ async function getSkillOwnership(client, params) {
|
|
|
10366
10659
|
);
|
|
10367
10660
|
}
|
|
10368
10661
|
async function getRecommendedSkillVersion(client, params) {
|
|
10369
|
-
const normalizedName = params.name
|
|
10370
|
-
if (!normalizedName) {
|
|
10371
|
-
throw new Error("name is required");
|
|
10372
|
-
}
|
|
10662
|
+
const normalizedName = requireTrimmedString(params.name, "name");
|
|
10373
10663
|
const query = new URLSearchParams();
|
|
10374
10664
|
query.set("name", normalizedName);
|
|
10375
10665
|
const raw = await client.requestJson(
|
|
@@ -10383,14 +10673,8 @@ async function getRecommendedSkillVersion(client, params) {
|
|
|
10383
10673
|
);
|
|
10384
10674
|
}
|
|
10385
10675
|
async function setRecommendedSkillVersion(client, payload) {
|
|
10386
|
-
const normalizedName = payload.name
|
|
10387
|
-
const normalizedVersion = payload.version
|
|
10388
|
-
if (!normalizedName) {
|
|
10389
|
-
throw new Error("name is required");
|
|
10390
|
-
}
|
|
10391
|
-
if (!normalizedVersion) {
|
|
10392
|
-
throw new Error("version is required");
|
|
10393
|
-
}
|
|
10676
|
+
const normalizedName = requireTrimmedString(payload.name, "name");
|
|
10677
|
+
const normalizedVersion = requireTrimmedString(payload.version, "version");
|
|
10394
10678
|
const raw = await client.requestJson("/skills/recommended", {
|
|
10395
10679
|
method: "POST",
|
|
10396
10680
|
body: {
|
|
@@ -10406,10 +10690,7 @@ async function setRecommendedSkillVersion(client, payload) {
|
|
|
10406
10690
|
);
|
|
10407
10691
|
}
|
|
10408
10692
|
async function getSkillDeprecations(client, params) {
|
|
10409
|
-
const normalizedName = params.name
|
|
10410
|
-
if (!normalizedName) {
|
|
10411
|
-
throw new Error("name is required");
|
|
10412
|
-
}
|
|
10693
|
+
const normalizedName = requireTrimmedString(params.name, "name");
|
|
10413
10694
|
const query = new URLSearchParams();
|
|
10414
10695
|
query.set("name", normalizedName);
|
|
10415
10696
|
const raw = await client.requestJson(
|
|
@@ -10423,15 +10704,9 @@ async function getSkillDeprecations(client, params) {
|
|
|
10423
10704
|
);
|
|
10424
10705
|
}
|
|
10425
10706
|
async function setSkillDeprecation(client, payload) {
|
|
10426
|
-
const normalizedName = payload.name
|
|
10427
|
-
if (!normalizedName) {
|
|
10428
|
-
throw new Error("name is required");
|
|
10429
|
-
}
|
|
10707
|
+
const normalizedName = requireTrimmedString(payload.name, "name");
|
|
10430
10708
|
const version2 = payload.version?.trim();
|
|
10431
|
-
const reason = payload.reason
|
|
10432
|
-
if (!reason) {
|
|
10433
|
-
throw new Error("reason is required");
|
|
10434
|
-
}
|
|
10709
|
+
const reason = requireTrimmedString(payload.reason, "reason");
|
|
10435
10710
|
const replacementRef = payload.replacementRef?.trim();
|
|
10436
10711
|
const raw = await client.requestJson("/skills/deprecate", {
|
|
10437
10712
|
method: "POST",
|
|
@@ -10450,10 +10725,7 @@ async function setSkillDeprecation(client, payload) {
|
|
|
10450
10725
|
);
|
|
10451
10726
|
}
|
|
10452
10727
|
async function getSkillBadge(client, params) {
|
|
10453
|
-
const normalizedName = params.name
|
|
10454
|
-
if (!normalizedName) {
|
|
10455
|
-
throw new Error("name is required");
|
|
10456
|
-
}
|
|
10728
|
+
const normalizedName = requireTrimmedString(params.name, "name");
|
|
10457
10729
|
const query = new URLSearchParams();
|
|
10458
10730
|
query.set("name", normalizedName);
|
|
10459
10731
|
if (params.metric) {
|
|
@@ -10476,10 +10748,7 @@ async function getSkillBadge(client, params) {
|
|
|
10476
10748
|
);
|
|
10477
10749
|
}
|
|
10478
10750
|
async function getSkillStatus(client, params) {
|
|
10479
|
-
const normalizedName = params.name
|
|
10480
|
-
if (!normalizedName) {
|
|
10481
|
-
throw new Error("name is required");
|
|
10482
|
-
}
|
|
10751
|
+
const normalizedName = requireTrimmedString(params.name, "name");
|
|
10483
10752
|
const query = new URLSearchParams();
|
|
10484
10753
|
query.set("name", normalizedName);
|
|
10485
10754
|
if (params.version?.trim()) {
|
|
@@ -10496,14 +10765,8 @@ async function getSkillStatus(client, params) {
|
|
|
10496
10765
|
);
|
|
10497
10766
|
}
|
|
10498
10767
|
async function getSkillStatusByRepo(client, params) {
|
|
10499
|
-
const repo = params.repo
|
|
10500
|
-
const skillDir = params.skillDir
|
|
10501
|
-
if (!repo) {
|
|
10502
|
-
throw new Error("repo is required");
|
|
10503
|
-
}
|
|
10504
|
-
if (!skillDir) {
|
|
10505
|
-
throw new Error("skillDir is required");
|
|
10506
|
-
}
|
|
10768
|
+
const repo = requireTrimmedString(params.repo, "repo");
|
|
10769
|
+
const skillDir = requireTrimmedString(params.skillDir, "skillDir");
|
|
10507
10770
|
const query = new URLSearchParams();
|
|
10508
10771
|
query.set("repo", repo);
|
|
10509
10772
|
query.set("skillDir", skillDir);
|
|
@@ -10521,14 +10784,8 @@ async function getSkillStatusByRepo(client, params) {
|
|
|
10521
10784
|
);
|
|
10522
10785
|
}
|
|
10523
10786
|
async function getSkillConversionSignalsByRepo(client, params) {
|
|
10524
|
-
const repo = params.repo
|
|
10525
|
-
const skillDir = params.skillDir
|
|
10526
|
-
if (!repo) {
|
|
10527
|
-
throw new Error("repo is required");
|
|
10528
|
-
}
|
|
10529
|
-
if (!skillDir) {
|
|
10530
|
-
throw new Error("skillDir is required");
|
|
10531
|
-
}
|
|
10787
|
+
const repo = requireTrimmedString(params.repo, "repo");
|
|
10788
|
+
const skillDir = requireTrimmedString(params.skillDir, "skillDir");
|
|
10532
10789
|
const query = new URLSearchParams();
|
|
10533
10790
|
query.set("repo", repo);
|
|
10534
10791
|
query.set("skillDir", skillDir);
|
|
@@ -10546,10 +10803,7 @@ async function getSkillConversionSignalsByRepo(client, params) {
|
|
|
10546
10803
|
);
|
|
10547
10804
|
}
|
|
10548
10805
|
async function uploadSkillPreviewFromGithubOidc(client, payload) {
|
|
10549
|
-
const token = payload.token
|
|
10550
|
-
if (!token) {
|
|
10551
|
-
throw new Error("token is required");
|
|
10552
|
-
}
|
|
10806
|
+
const token = requireTrimmedString(payload.token, "token");
|
|
10553
10807
|
const raw = await client.requestJson(
|
|
10554
10808
|
"/skills/preview/github-oidc",
|
|
10555
10809
|
{
|
|
@@ -10568,10 +10822,7 @@ async function uploadSkillPreviewFromGithubOidc(client, payload) {
|
|
|
10568
10822
|
);
|
|
10569
10823
|
}
|
|
10570
10824
|
async function getSkillPreview(client, params) {
|
|
10571
|
-
const normalizedName = params.name
|
|
10572
|
-
if (!normalizedName) {
|
|
10573
|
-
throw new Error("name is required");
|
|
10574
|
-
}
|
|
10825
|
+
const normalizedName = requireTrimmedString(params.name, "name");
|
|
10575
10826
|
const query = new URLSearchParams();
|
|
10576
10827
|
query.set("name", normalizedName);
|
|
10577
10828
|
if (params.version?.trim()) {
|
|
@@ -10588,14 +10839,8 @@ async function getSkillPreview(client, params) {
|
|
|
10588
10839
|
);
|
|
10589
10840
|
}
|
|
10590
10841
|
async function getSkillPreviewByRepo(client, params) {
|
|
10591
|
-
const repo = params.repo
|
|
10592
|
-
const skillDir = params.skillDir
|
|
10593
|
-
if (!repo) {
|
|
10594
|
-
throw new Error("repo is required");
|
|
10595
|
-
}
|
|
10596
|
-
if (!skillDir) {
|
|
10597
|
-
throw new Error("skillDir is required");
|
|
10598
|
-
}
|
|
10842
|
+
const repo = requireTrimmedString(params.repo, "repo");
|
|
10843
|
+
const skillDir = requireTrimmedString(params.skillDir, "skillDir");
|
|
10599
10844
|
const query = new URLSearchParams();
|
|
10600
10845
|
query.set("repo", repo);
|
|
10601
10846
|
query.set("skillDir", skillDir);
|
|
@@ -10613,10 +10858,7 @@ async function getSkillPreviewByRepo(client, params) {
|
|
|
10613
10858
|
);
|
|
10614
10859
|
}
|
|
10615
10860
|
async function getSkillPreviewById(client, previewId) {
|
|
10616
|
-
const normalizedPreviewId = previewId
|
|
10617
|
-
if (!normalizedPreviewId) {
|
|
10618
|
-
throw new Error("previewId is required");
|
|
10619
|
-
}
|
|
10861
|
+
const normalizedPreviewId = requireTrimmedString(previewId, "previewId");
|
|
10620
10862
|
const raw = await client.requestJson(
|
|
10621
10863
|
`/skills/preview/${encodeURIComponent(normalizedPreviewId)}`,
|
|
10622
10864
|
{ method: "GET" }
|
|
@@ -10628,10 +10870,7 @@ async function getSkillPreviewById(client, previewId) {
|
|
|
10628
10870
|
);
|
|
10629
10871
|
}
|
|
10630
10872
|
async function getSkillInstall(client, skillRef) {
|
|
10631
|
-
const normalizedSkillRef = skillRef
|
|
10632
|
-
if (!normalizedSkillRef) {
|
|
10633
|
-
throw new Error("skillRef is required");
|
|
10634
|
-
}
|
|
10873
|
+
const normalizedSkillRef = requireTrimmedString(skillRef, "skillRef");
|
|
10635
10874
|
const raw = await client.requestJson(
|
|
10636
10875
|
`/skills/${encodeURIComponent(normalizedSkillRef)}/install`,
|
|
10637
10876
|
{ method: "GET" }
|
|
@@ -10643,10 +10882,7 @@ async function getSkillInstall(client, skillRef) {
|
|
|
10643
10882
|
);
|
|
10644
10883
|
}
|
|
10645
10884
|
async function recordSkillInstallCopy(client, skillRef, payload = {}) {
|
|
10646
|
-
const normalizedSkillRef = skillRef
|
|
10647
|
-
if (!normalizedSkillRef) {
|
|
10648
|
-
throw new Error("skillRef is required");
|
|
10649
|
-
}
|
|
10885
|
+
const normalizedSkillRef = requireTrimmedString(skillRef, "skillRef");
|
|
10650
10886
|
const raw = await client.requestJson(
|
|
10651
10887
|
`/skills/${encodeURIComponent(normalizedSkillRef)}/telemetry/install-copy`,
|
|
10652
10888
|
{
|
|
@@ -10682,10 +10918,7 @@ async function listSkillCategories(client) {
|
|
|
10682
10918
|
);
|
|
10683
10919
|
}
|
|
10684
10920
|
async function resolveSkillMarkdown(client, skillRef) {
|
|
10685
|
-
const normalizedSkillRef = skillRef
|
|
10686
|
-
if (!normalizedSkillRef) {
|
|
10687
|
-
throw new Error("skillRef is required");
|
|
10688
|
-
}
|
|
10921
|
+
const normalizedSkillRef = requireTrimmedString(skillRef, "skillRef");
|
|
10689
10922
|
const response = await client.request(
|
|
10690
10923
|
`/skills/${encodeURIComponent(normalizedSkillRef)}/SKILL.md`,
|
|
10691
10924
|
{
|
|
@@ -10698,10 +10931,7 @@ async function resolveSkillMarkdown(client, skillRef) {
|
|
|
10698
10931
|
return response.text();
|
|
10699
10932
|
}
|
|
10700
10933
|
async function resolveSkillManifest(client, skillRef) {
|
|
10701
|
-
const normalizedSkillRef = skillRef
|
|
10702
|
-
if (!normalizedSkillRef) {
|
|
10703
|
-
throw new Error("skillRef is required");
|
|
10704
|
-
}
|
|
10934
|
+
const normalizedSkillRef = requireTrimmedString(skillRef, "skillRef");
|
|
10705
10935
|
const raw = await client.requestJson(
|
|
10706
10936
|
`/skills/${encodeURIComponent(normalizedSkillRef)}/manifest`,
|
|
10707
10937
|
{
|
|
@@ -10715,10 +10945,7 @@ async function resolveSkillManifest(client, skillRef) {
|
|
|
10715
10945
|
);
|
|
10716
10946
|
}
|
|
10717
10947
|
async function getSkillVoteStatus(client, params) {
|
|
10718
|
-
const normalizedName = params.name
|
|
10719
|
-
if (!normalizedName) {
|
|
10720
|
-
throw new Error("name is required");
|
|
10721
|
-
}
|
|
10948
|
+
const normalizedName = requireTrimmedString(params.name, "name");
|
|
10722
10949
|
const query = new URLSearchParams();
|
|
10723
10950
|
query.set("name", normalizedName);
|
|
10724
10951
|
const raw = await client.requestJson(
|
|
@@ -10732,10 +10959,7 @@ async function getSkillVoteStatus(client, params) {
|
|
|
10732
10959
|
);
|
|
10733
10960
|
}
|
|
10734
10961
|
async function setSkillVote(client, payload) {
|
|
10735
|
-
const normalizedName = payload.name
|
|
10736
|
-
if (!normalizedName) {
|
|
10737
|
-
throw new Error("name is required");
|
|
10738
|
-
}
|
|
10962
|
+
const normalizedName = requireTrimmedString(payload.name, "name");
|
|
10739
10963
|
const raw = await client.requestJson("/skills/vote", {
|
|
10740
10964
|
method: "POST",
|
|
10741
10965
|
body: { name: normalizedName, upvoted: payload.upvoted },
|
|
@@ -10748,10 +10972,7 @@ async function setSkillVote(client, payload) {
|
|
|
10748
10972
|
);
|
|
10749
10973
|
}
|
|
10750
10974
|
async function requestSkillVerification(client, payload) {
|
|
10751
|
-
const normalizedName = payload.name
|
|
10752
|
-
if (!normalizedName) {
|
|
10753
|
-
throw new Error("name is required");
|
|
10754
|
-
}
|
|
10975
|
+
const normalizedName = requireTrimmedString(payload.name, "name");
|
|
10755
10976
|
const raw = await client.requestJson(
|
|
10756
10977
|
"/skills/verification/request",
|
|
10757
10978
|
{
|
|
@@ -10771,10 +10992,7 @@ async function requestSkillVerification(client, payload) {
|
|
|
10771
10992
|
);
|
|
10772
10993
|
}
|
|
10773
10994
|
async function getSkillVerificationStatus(client, params) {
|
|
10774
|
-
const normalizedName = params.name
|
|
10775
|
-
if (!normalizedName) {
|
|
10776
|
-
throw new Error("name is required");
|
|
10777
|
-
}
|
|
10995
|
+
const normalizedName = requireTrimmedString(params.name, "name");
|
|
10778
10996
|
const query = new URLSearchParams();
|
|
10779
10997
|
query.set("name", normalizedName);
|
|
10780
10998
|
if (params.version) {
|
|
@@ -10791,10 +11009,7 @@ async function getSkillVerificationStatus(client, params) {
|
|
|
10791
11009
|
);
|
|
10792
11010
|
}
|
|
10793
11011
|
async function createSkillDomainProofChallenge(client, payload) {
|
|
10794
|
-
const normalizedName = payload.name
|
|
10795
|
-
if (!normalizedName) {
|
|
10796
|
-
throw new Error("name is required");
|
|
10797
|
-
}
|
|
11012
|
+
const normalizedName = requireTrimmedString(payload.name, "name");
|
|
10798
11013
|
const raw = await client.requestJson(
|
|
10799
11014
|
"/skills/verification/domain/challenge",
|
|
10800
11015
|
{
|
|
@@ -10814,14 +11029,11 @@ async function createSkillDomainProofChallenge(client, payload) {
|
|
|
10814
11029
|
);
|
|
10815
11030
|
}
|
|
10816
11031
|
async function verifySkillDomainProof(client, payload) {
|
|
10817
|
-
const normalizedName = payload.name
|
|
10818
|
-
const challengeToken =
|
|
10819
|
-
|
|
10820
|
-
|
|
10821
|
-
|
|
10822
|
-
if (!challengeToken) {
|
|
10823
|
-
throw new Error("challengeToken is required");
|
|
10824
|
-
}
|
|
11032
|
+
const normalizedName = requireTrimmedString(payload.name, "name");
|
|
11033
|
+
const challengeToken = requireTrimmedString(
|
|
11034
|
+
payload.challengeToken,
|
|
11035
|
+
"challengeToken"
|
|
11036
|
+
);
|
|
10825
11037
|
const raw = await client.requestJson(
|
|
10826
11038
|
"/skills/verification/domain/verify",
|
|
10827
11039
|
{
|
|
@@ -11433,6 +11645,36 @@ class RegistryBrokerClient {
|
|
|
11433
11645
|
async dashboardStats() {
|
|
11434
11646
|
return dashboardStats(this);
|
|
11435
11647
|
}
|
|
11648
|
+
async getCreditsBalance(params = {}) {
|
|
11649
|
+
return getCreditsBalance(this, params);
|
|
11650
|
+
}
|
|
11651
|
+
async getCreditProviders() {
|
|
11652
|
+
return getCreditProviders(this);
|
|
11653
|
+
}
|
|
11654
|
+
async getGuardSession() {
|
|
11655
|
+
return getGuardSession(this);
|
|
11656
|
+
}
|
|
11657
|
+
async getGuardEntitlements() {
|
|
11658
|
+
return getGuardEntitlements(this);
|
|
11659
|
+
}
|
|
11660
|
+
async getGuardBillingBalance() {
|
|
11661
|
+
return getGuardBillingBalance(this);
|
|
11662
|
+
}
|
|
11663
|
+
async getGuardTrustByHash(sha2562) {
|
|
11664
|
+
return getGuardTrustByHash(this, sha2562);
|
|
11665
|
+
}
|
|
11666
|
+
async resolveGuardTrust(query) {
|
|
11667
|
+
return resolveGuardTrust(this, query);
|
|
11668
|
+
}
|
|
11669
|
+
async getGuardRevocations() {
|
|
11670
|
+
return getGuardRevocations(this);
|
|
11671
|
+
}
|
|
11672
|
+
async syncGuardReceipts(payload) {
|
|
11673
|
+
return syncGuardReceipts(this, payload);
|
|
11674
|
+
}
|
|
11675
|
+
async createHbarPurchaseIntent(payload) {
|
|
11676
|
+
return createHbarPurchaseIntent(this, payload);
|
|
11677
|
+
}
|
|
11436
11678
|
async purchaseCreditsWithHbar(params) {
|
|
11437
11679
|
return purchaseCreditsWithHbar(this, params);
|
|
11438
11680
|
}
|