@hol-org/rb-client 0.1.163 → 0.1.165
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +603 -1
- package/dist/index.d.cts +14787 -1878
- package/dist/index.d.ts +14787 -1878
- package/dist/index.js +603 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1123,6 +1123,26 @@ var verificationVerifySenderResponseSchema = import_zod2.z.object({
|
|
|
1123
1123
|
ownerType: import_zod2.z.string(),
|
|
1124
1124
|
ownerId: import_zod2.z.string()
|
|
1125
1125
|
}).passthrough();
|
|
1126
|
+
var verificationDnsErrorSchema = import_zod2.z.object({
|
|
1127
|
+
code: import_zod2.z.string(),
|
|
1128
|
+
message: import_zod2.z.string(),
|
|
1129
|
+
details: import_zod2.z.record(jsonValueSchema).optional()
|
|
1130
|
+
}).passthrough();
|
|
1131
|
+
var verificationDnsStatusResponseSchema = import_zod2.z.object({
|
|
1132
|
+
uaid: import_zod2.z.string(),
|
|
1133
|
+
verified: import_zod2.z.boolean(),
|
|
1134
|
+
profileId: import_zod2.z.string(),
|
|
1135
|
+
checkedAt: import_zod2.z.string(),
|
|
1136
|
+
nativeId: import_zod2.z.string().optional(),
|
|
1137
|
+
dnsName: import_zod2.z.string().optional(),
|
|
1138
|
+
verificationLevel: import_zod2.z.string().optional(),
|
|
1139
|
+
resolutionMode: import_zod2.z.string().optional(),
|
|
1140
|
+
reconstructedUaid: import_zod2.z.string().optional(),
|
|
1141
|
+
selectedFollowupProfile: import_zod2.z.string().optional(),
|
|
1142
|
+
error: verificationDnsErrorSchema.optional(),
|
|
1143
|
+
source: import_zod2.z.string().optional(),
|
|
1144
|
+
persisted: import_zod2.z.boolean().optional()
|
|
1145
|
+
}).passthrough();
|
|
1126
1146
|
var registerStatusResponseSchema = import_zod2.z.object({
|
|
1127
1147
|
registered: import_zod2.z.boolean(),
|
|
1128
1148
|
agent: jsonValueSchema.optional()
|
|
@@ -1199,6 +1219,102 @@ var skillRegistryListResponseSchema = import_zod2.z.object({
|
|
|
1199
1219
|
items: import_zod2.z.array(skillRegistryPublishSummarySchema),
|
|
1200
1220
|
nextCursor: import_zod2.z.string().nullable()
|
|
1201
1221
|
}).passthrough();
|
|
1222
|
+
var skillSecurityBreakdownResponseSchema = import_zod2.z.object({
|
|
1223
|
+
name: import_zod2.z.string(),
|
|
1224
|
+
version: import_zod2.z.string(),
|
|
1225
|
+
jobId: import_zod2.z.string(),
|
|
1226
|
+
createdAt: import_zod2.z.string(),
|
|
1227
|
+
safety: skillSafetySummarySchema.nullable(),
|
|
1228
|
+
findings: import_zod2.z.array(skillSafetyFindingSchema)
|
|
1229
|
+
}).passthrough();
|
|
1230
|
+
var skillCatalogChannelSchema = import_zod2.z.enum([
|
|
1231
|
+
"stable",
|
|
1232
|
+
"prerelease",
|
|
1233
|
+
"all"
|
|
1234
|
+
]);
|
|
1235
|
+
var skillCatalogSortBySchema = import_zod2.z.enum([
|
|
1236
|
+
"trending",
|
|
1237
|
+
"upvotes",
|
|
1238
|
+
"updated",
|
|
1239
|
+
"name"
|
|
1240
|
+
]);
|
|
1241
|
+
var skillCatalogVersionSummarySchema = import_zod2.z.object({
|
|
1242
|
+
version: import_zod2.z.string(),
|
|
1243
|
+
publishedAt: import_zod2.z.string(),
|
|
1244
|
+
verified: import_zod2.z.boolean().optional()
|
|
1245
|
+
}).passthrough();
|
|
1246
|
+
var skillCatalogItemSchema = import_zod2.z.object({
|
|
1247
|
+
name: import_zod2.z.string(),
|
|
1248
|
+
description: import_zod2.z.string().optional(),
|
|
1249
|
+
iconHcs1: import_zod2.z.string().optional(),
|
|
1250
|
+
category: import_zod2.z.string().optional(),
|
|
1251
|
+
tags: import_zod2.z.array(import_zod2.z.string()).optional(),
|
|
1252
|
+
latest: skillCatalogVersionSummarySchema,
|
|
1253
|
+
latestStable: skillCatalogVersionSummarySchema.optional(),
|
|
1254
|
+
recommended: skillCatalogVersionSummarySchema,
|
|
1255
|
+
upvotes: import_zod2.z.number().int(),
|
|
1256
|
+
verified: import_zod2.z.boolean(),
|
|
1257
|
+
repoStamped: import_zod2.z.boolean(),
|
|
1258
|
+
trustScore: import_zod2.z.number().optional(),
|
|
1259
|
+
safetyScore: import_zod2.z.number().optional()
|
|
1260
|
+
}).passthrough();
|
|
1261
|
+
var skillCatalogResponseSchema = import_zod2.z.object({
|
|
1262
|
+
items: import_zod2.z.array(skillCatalogItemSchema),
|
|
1263
|
+
nextCursor: import_zod2.z.string().nullable()
|
|
1264
|
+
}).passthrough();
|
|
1265
|
+
var skillRecommendedVersionResponseSchema = import_zod2.z.object({
|
|
1266
|
+
name: import_zod2.z.string(),
|
|
1267
|
+
version: import_zod2.z.string(),
|
|
1268
|
+
updatedAt: import_zod2.z.string(),
|
|
1269
|
+
setBy: import_zod2.z.string()
|
|
1270
|
+
}).passthrough();
|
|
1271
|
+
var skillDeprecationRecordSchema = import_zod2.z.object({
|
|
1272
|
+
name: import_zod2.z.string(),
|
|
1273
|
+
version: import_zod2.z.string().optional(),
|
|
1274
|
+
reason: import_zod2.z.string(),
|
|
1275
|
+
replacementRef: import_zod2.z.string().optional(),
|
|
1276
|
+
deprecatedAt: import_zod2.z.string(),
|
|
1277
|
+
deprecatedBy: import_zod2.z.string()
|
|
1278
|
+
}).passthrough();
|
|
1279
|
+
var skillDeprecationsResponseSchema = import_zod2.z.object({
|
|
1280
|
+
name: import_zod2.z.string(),
|
|
1281
|
+
items: import_zod2.z.array(skillDeprecationRecordSchema)
|
|
1282
|
+
}).passthrough();
|
|
1283
|
+
var skillBadgeMetricSchema = import_zod2.z.enum([
|
|
1284
|
+
"version",
|
|
1285
|
+
"status",
|
|
1286
|
+
"verification",
|
|
1287
|
+
"repo_commit",
|
|
1288
|
+
"manifest",
|
|
1289
|
+
"domain",
|
|
1290
|
+
"trust",
|
|
1291
|
+
"safety",
|
|
1292
|
+
"upvotes",
|
|
1293
|
+
"updated"
|
|
1294
|
+
]);
|
|
1295
|
+
var skillBadgeStyleSchema = import_zod2.z.enum([
|
|
1296
|
+
"flat",
|
|
1297
|
+
"flat-square",
|
|
1298
|
+
"for-the-badge",
|
|
1299
|
+
"plastic",
|
|
1300
|
+
"social"
|
|
1301
|
+
]);
|
|
1302
|
+
var skillBadgeResponseSchema = import_zod2.z.object({
|
|
1303
|
+
schemaVersion: import_zod2.z.number().int(),
|
|
1304
|
+
label: import_zod2.z.string(),
|
|
1305
|
+
message: import_zod2.z.string(),
|
|
1306
|
+
color: import_zod2.z.string(),
|
|
1307
|
+
style: skillBadgeStyleSchema.optional(),
|
|
1308
|
+
isError: import_zod2.z.boolean().optional(),
|
|
1309
|
+
cacheSeconds: import_zod2.z.number().int().optional()
|
|
1310
|
+
}).passthrough();
|
|
1311
|
+
var skillRegistryTagsResponseSchema = import_zod2.z.object({
|
|
1312
|
+
tags: import_zod2.z.array(import_zod2.z.string())
|
|
1313
|
+
}).passthrough();
|
|
1314
|
+
var skillRegistryCategoriesResponseSchema = import_zod2.z.object({
|
|
1315
|
+
categories: import_zod2.z.array(import_zod2.z.string())
|
|
1316
|
+
}).passthrough();
|
|
1317
|
+
var skillResolverManifestResponseSchema = import_zod2.z.record(jsonValueSchema);
|
|
1202
1318
|
var skillRegistryQuoteFileBreakdownSchema = import_zod2.z.object({
|
|
1203
1319
|
name: import_zod2.z.string(),
|
|
1204
1320
|
mimeType: import_zod2.z.string(),
|
|
@@ -1307,6 +1423,81 @@ var skillVerificationStatusSchema = import_zod2.z.enum([
|
|
|
1307
1423
|
"approved",
|
|
1308
1424
|
"rejected"
|
|
1309
1425
|
]);
|
|
1426
|
+
var skillVerificationStatusLabelSchema = import_zod2.z.enum([
|
|
1427
|
+
"not_requested",
|
|
1428
|
+
"pending",
|
|
1429
|
+
"approved",
|
|
1430
|
+
"rejected"
|
|
1431
|
+
]);
|
|
1432
|
+
var skillVerificationSignalFailureReasonSchema = import_zod2.z.enum([
|
|
1433
|
+
"missing_owner",
|
|
1434
|
+
"missing_repo_or_commit",
|
|
1435
|
+
"unsupported_repo",
|
|
1436
|
+
"repo_fetch_failed",
|
|
1437
|
+
"manifest_pointer_missing",
|
|
1438
|
+
"manifest_fetch_failed",
|
|
1439
|
+
"manifest_parse_failed",
|
|
1440
|
+
"missing_file_hashes",
|
|
1441
|
+
"missing_domain",
|
|
1442
|
+
"challenge_invalid",
|
|
1443
|
+
"challenge_expired",
|
|
1444
|
+
"dns_lookup_failed",
|
|
1445
|
+
"dns_record_missing",
|
|
1446
|
+
"mismatch"
|
|
1447
|
+
]);
|
|
1448
|
+
var skillVerificationPublisherBoundSignalSchema = import_zod2.z.object({
|
|
1449
|
+
ok: import_zod2.z.boolean(),
|
|
1450
|
+
ownerAccountId: import_zod2.z.string().nullable(),
|
|
1451
|
+
ownerUserId: import_zod2.z.string().nullable(),
|
|
1452
|
+
checkedAt: import_zod2.z.string(),
|
|
1453
|
+
reason: skillVerificationSignalFailureReasonSchema.optional()
|
|
1454
|
+
}).passthrough();
|
|
1455
|
+
var skillVerificationRepoCommitIntegrityMismatchSchema = import_zod2.z.object({
|
|
1456
|
+
path: import_zod2.z.string(),
|
|
1457
|
+
expectedSha256: import_zod2.z.string(),
|
|
1458
|
+
actualSha256: import_zod2.z.string().optional(),
|
|
1459
|
+
error: import_zod2.z.string().optional()
|
|
1460
|
+
}).passthrough();
|
|
1461
|
+
var skillVerificationRepoCommitIntegritySignalSchema = import_zod2.z.object({
|
|
1462
|
+
ok: import_zod2.z.boolean(),
|
|
1463
|
+
repo: import_zod2.z.string().nullable(),
|
|
1464
|
+
commit: import_zod2.z.string().nullable(),
|
|
1465
|
+
checkedAt: import_zod2.z.string(),
|
|
1466
|
+
filesChecked: import_zod2.z.number().int().min(0),
|
|
1467
|
+
mismatches: import_zod2.z.array(skillVerificationRepoCommitIntegrityMismatchSchema),
|
|
1468
|
+
partial: import_zod2.z.boolean().optional(),
|
|
1469
|
+
reason: skillVerificationSignalFailureReasonSchema.optional()
|
|
1470
|
+
}).passthrough();
|
|
1471
|
+
var skillVerificationManifestIntegrityShaMismatchSchema = import_zod2.z.object({
|
|
1472
|
+
path: import_zod2.z.string(),
|
|
1473
|
+
expectedSha256: import_zod2.z.string(),
|
|
1474
|
+
actualSha256: import_zod2.z.string().optional()
|
|
1475
|
+
}).passthrough();
|
|
1476
|
+
var skillVerificationManifestIntegritySignalSchema = import_zod2.z.object({
|
|
1477
|
+
ok: import_zod2.z.boolean(),
|
|
1478
|
+
manifestHrl: import_zod2.z.string().nullable(),
|
|
1479
|
+
manifestSha256: import_zod2.z.string().nullable(),
|
|
1480
|
+
checkedAt: import_zod2.z.string(),
|
|
1481
|
+
missingFiles: import_zod2.z.array(import_zod2.z.string()),
|
|
1482
|
+
shaMismatches: import_zod2.z.array(skillVerificationManifestIntegrityShaMismatchSchema),
|
|
1483
|
+
extraFiles: import_zod2.z.array(import_zod2.z.string()).optional(),
|
|
1484
|
+
reason: skillVerificationSignalFailureReasonSchema.optional()
|
|
1485
|
+
}).passthrough();
|
|
1486
|
+
var skillVerificationDomainProofSignalSchema = import_zod2.z.object({
|
|
1487
|
+
ok: import_zod2.z.boolean(),
|
|
1488
|
+
domain: import_zod2.z.string().optional(),
|
|
1489
|
+
method: import_zod2.z.literal("dns_txt").optional(),
|
|
1490
|
+
checkedAt: import_zod2.z.string().optional(),
|
|
1491
|
+
details: import_zod2.z.string().optional(),
|
|
1492
|
+
txtRecordName: import_zod2.z.string().optional(),
|
|
1493
|
+
reason: skillVerificationSignalFailureReasonSchema.optional()
|
|
1494
|
+
}).passthrough();
|
|
1495
|
+
var skillVerificationSignalsSchema = import_zod2.z.object({
|
|
1496
|
+
publisherBound: skillVerificationPublisherBoundSignalSchema,
|
|
1497
|
+
repoCommitIntegrity: skillVerificationRepoCommitIntegritySignalSchema,
|
|
1498
|
+
manifestIntegrity: skillVerificationManifestIntegritySignalSchema,
|
|
1499
|
+
domainProof: skillVerificationDomainProofSignalSchema.optional()
|
|
1500
|
+
}).passthrough();
|
|
1310
1501
|
var skillVerificationRequestSchema = import_zod2.z.object({
|
|
1311
1502
|
id: import_zod2.z.string(),
|
|
1312
1503
|
network: import_zod2.z.union([import_zod2.z.literal("mainnet"), import_zod2.z.literal("testnet")]),
|
|
@@ -1317,6 +1508,8 @@ var skillVerificationRequestSchema = import_zod2.z.object({
|
|
|
1317
1508
|
usdCents: import_zod2.z.number(),
|
|
1318
1509
|
creditsCharged: import_zod2.z.number(),
|
|
1319
1510
|
creditAccountId: import_zod2.z.string().optional(),
|
|
1511
|
+
signals: skillVerificationSignalsSchema.optional(),
|
|
1512
|
+
reviewNotes: import_zod2.z.string().optional(),
|
|
1320
1513
|
requestedBy: import_zod2.z.object({
|
|
1321
1514
|
userId: import_zod2.z.string().optional(),
|
|
1322
1515
|
accountId: import_zod2.z.string().optional(),
|
|
@@ -1327,6 +1520,11 @@ var skillVerificationRequestSchema = import_zod2.z.object({
|
|
|
1327
1520
|
email: import_zod2.z.string().optional()
|
|
1328
1521
|
}).optional(),
|
|
1329
1522
|
approvedAt: import_zod2.z.string().optional(),
|
|
1523
|
+
rejectedBy: import_zod2.z.object({
|
|
1524
|
+
userId: import_zod2.z.string().optional(),
|
|
1525
|
+
email: import_zod2.z.string().optional()
|
|
1526
|
+
}).optional(),
|
|
1527
|
+
rejectedAt: import_zod2.z.string().optional(),
|
|
1330
1528
|
createdAt: import_zod2.z.string(),
|
|
1331
1529
|
updatedAt: import_zod2.z.string()
|
|
1332
1530
|
}).passthrough();
|
|
@@ -1335,10 +1533,40 @@ var skillVerificationRequestCreateResponseSchema = import_zod2.z.object({
|
|
|
1335
1533
|
}).passthrough();
|
|
1336
1534
|
var skillVerificationStatusResponseSchema = import_zod2.z.object({
|
|
1337
1535
|
name: import_zod2.z.string(),
|
|
1536
|
+
version: import_zod2.z.string(),
|
|
1537
|
+
status: skillVerificationStatusLabelSchema,
|
|
1338
1538
|
verified: import_zod2.z.boolean(),
|
|
1339
1539
|
previouslyVerified: import_zod2.z.boolean(),
|
|
1540
|
+
signals: skillVerificationSignalsSchema.nullable().optional(),
|
|
1541
|
+
reviewNotes: import_zod2.z.string().nullable().optional(),
|
|
1340
1542
|
pendingRequest: skillVerificationRequestSchema.nullable().optional()
|
|
1341
1543
|
}).passthrough();
|
|
1544
|
+
var skillVerificationDomainProofChallengeRequestSchema = import_zod2.z.object({
|
|
1545
|
+
name: import_zod2.z.string().min(1),
|
|
1546
|
+
version: import_zod2.z.string().min(1).optional(),
|
|
1547
|
+
domain: import_zod2.z.string().min(1).optional()
|
|
1548
|
+
}).passthrough();
|
|
1549
|
+
var skillVerificationDomainProofChallengeResponseSchema = import_zod2.z.object({
|
|
1550
|
+
challengeId: import_zod2.z.string().min(1),
|
|
1551
|
+
name: import_zod2.z.string().min(1),
|
|
1552
|
+
version: import_zod2.z.string().min(1),
|
|
1553
|
+
domain: import_zod2.z.string().min(1),
|
|
1554
|
+
method: import_zod2.z.literal("dns_txt"),
|
|
1555
|
+
txtRecordName: import_zod2.z.string().min(1),
|
|
1556
|
+
txtRecordValue: import_zod2.z.string().min(1),
|
|
1557
|
+
expiresAt: import_zod2.z.string().min(1)
|
|
1558
|
+
}).passthrough();
|
|
1559
|
+
var skillVerificationDomainProofVerifyRequestSchema = import_zod2.z.object({
|
|
1560
|
+
name: import_zod2.z.string().min(1),
|
|
1561
|
+
version: import_zod2.z.string().min(1).optional(),
|
|
1562
|
+
domain: import_zod2.z.string().min(1).optional(),
|
|
1563
|
+
challengeToken: import_zod2.z.string().min(1)
|
|
1564
|
+
}).passthrough();
|
|
1565
|
+
var skillVerificationDomainProofVerifyResponseSchema = import_zod2.z.object({
|
|
1566
|
+
name: import_zod2.z.string().min(1),
|
|
1567
|
+
version: import_zod2.z.string().min(1),
|
|
1568
|
+
signal: skillVerificationDomainProofSignalSchema
|
|
1569
|
+
}).passthrough();
|
|
1342
1570
|
|
|
1343
1571
|
// ../../src/utils/is-browser.ts
|
|
1344
1572
|
var isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined";
|
|
@@ -3560,6 +3788,40 @@ async function verifySenderOwnership(client, uaid) {
|
|
|
3560
3788
|
"verification sender response"
|
|
3561
3789
|
);
|
|
3562
3790
|
}
|
|
3791
|
+
async function verifyUaidDnsTxt(client, payload) {
|
|
3792
|
+
const raw = await client.requestJson("/verification/dns/verify", {
|
|
3793
|
+
method: "POST",
|
|
3794
|
+
headers: { "content-type": "application/json" },
|
|
3795
|
+
body: {
|
|
3796
|
+
uaid: payload.uaid,
|
|
3797
|
+
...payload.persist !== void 0 ? { persist: payload.persist } : {}
|
|
3798
|
+
}
|
|
3799
|
+
});
|
|
3800
|
+
return client.parseWithSchema(
|
|
3801
|
+
raw,
|
|
3802
|
+
verificationDnsStatusResponseSchema,
|
|
3803
|
+
"verification dns verify response"
|
|
3804
|
+
);
|
|
3805
|
+
}
|
|
3806
|
+
async function getVerificationDnsStatus(client, uaid, query) {
|
|
3807
|
+
const params = new URLSearchParams();
|
|
3808
|
+
if (query?.refresh !== void 0) {
|
|
3809
|
+
params.set("refresh", String(query.refresh));
|
|
3810
|
+
}
|
|
3811
|
+
if (query?.persist !== void 0) {
|
|
3812
|
+
params.set("persist", String(query.persist));
|
|
3813
|
+
}
|
|
3814
|
+
const queryString = params.toString();
|
|
3815
|
+
const path2 = `/verification/dns/status/${encodeURIComponent(uaid)}${queryString ? `?${queryString}` : ""}`;
|
|
3816
|
+
const raw = await client.requestJson(path2, {
|
|
3817
|
+
method: "GET"
|
|
3818
|
+
});
|
|
3819
|
+
return client.parseWithSchema(
|
|
3820
|
+
raw,
|
|
3821
|
+
verificationDnsStatusResponseSchema,
|
|
3822
|
+
"verification dns status response"
|
|
3823
|
+
);
|
|
3824
|
+
}
|
|
3563
3825
|
async function getRegisterStatus(client, uaid) {
|
|
3564
3826
|
const raw = await client.requestJson(
|
|
3565
3827
|
`/register/status/${encodeURIComponent(uaid)}`,
|
|
@@ -3624,6 +3886,24 @@ async function listSkills(client, params = {}) {
|
|
|
3624
3886
|
if (params.accountId) {
|
|
3625
3887
|
query.set("accountId", params.accountId);
|
|
3626
3888
|
}
|
|
3889
|
+
if (params.q) {
|
|
3890
|
+
query.set("q", params.q);
|
|
3891
|
+
}
|
|
3892
|
+
if (params.tag) {
|
|
3893
|
+
query.set("tag", params.tag);
|
|
3894
|
+
}
|
|
3895
|
+
if (params.category) {
|
|
3896
|
+
query.set("category", params.category);
|
|
3897
|
+
}
|
|
3898
|
+
if (typeof params.featured === "boolean") {
|
|
3899
|
+
query.set("featured", params.featured ? "true" : "false");
|
|
3900
|
+
}
|
|
3901
|
+
if (typeof params.verified === "boolean") {
|
|
3902
|
+
query.set("verified", params.verified ? "true" : "false");
|
|
3903
|
+
}
|
|
3904
|
+
if (params.view) {
|
|
3905
|
+
query.set("view", params.view);
|
|
3906
|
+
}
|
|
3627
3907
|
const suffix = query.size > 0 ? `?${query.toString()}` : "";
|
|
3628
3908
|
const raw = await client.requestJson(`/skills${suffix}`, {
|
|
3629
3909
|
method: "GET"
|
|
@@ -3634,6 +3914,62 @@ async function listSkills(client, params = {}) {
|
|
|
3634
3914
|
"skill registry list response"
|
|
3635
3915
|
);
|
|
3636
3916
|
}
|
|
3917
|
+
async function getSkillSecurityBreakdown(client, params) {
|
|
3918
|
+
const normalizedJobId = params.jobId.trim();
|
|
3919
|
+
if (!normalizedJobId) {
|
|
3920
|
+
throw new Error("jobId is required");
|
|
3921
|
+
}
|
|
3922
|
+
const raw = await client.requestJson(
|
|
3923
|
+
`/skills/${encodeURIComponent(normalizedJobId)}/security-breakdown`,
|
|
3924
|
+
{ method: "GET" }
|
|
3925
|
+
);
|
|
3926
|
+
return client.parseWithSchema(
|
|
3927
|
+
raw,
|
|
3928
|
+
skillSecurityBreakdownResponseSchema,
|
|
3929
|
+
"skill security breakdown response"
|
|
3930
|
+
);
|
|
3931
|
+
}
|
|
3932
|
+
async function getSkillsCatalog(client, params = {}) {
|
|
3933
|
+
const query = new URLSearchParams();
|
|
3934
|
+
if (params.q) {
|
|
3935
|
+
query.set("q", params.q);
|
|
3936
|
+
}
|
|
3937
|
+
if (params.category) {
|
|
3938
|
+
query.set("category", params.category);
|
|
3939
|
+
}
|
|
3940
|
+
params.tags?.forEach((tag) => {
|
|
3941
|
+
if (tag.trim()) {
|
|
3942
|
+
query.append("tag", tag.trim());
|
|
3943
|
+
}
|
|
3944
|
+
});
|
|
3945
|
+
if (typeof params.featured === "boolean") {
|
|
3946
|
+
query.set("featured", params.featured ? "true" : "false");
|
|
3947
|
+
}
|
|
3948
|
+
if (typeof params.verified === "boolean") {
|
|
3949
|
+
query.set("verified", params.verified ? "true" : "false");
|
|
3950
|
+
}
|
|
3951
|
+
if (params.channel) {
|
|
3952
|
+
query.set("channel", params.channel);
|
|
3953
|
+
}
|
|
3954
|
+
if (params.sortBy) {
|
|
3955
|
+
query.set("sortBy", params.sortBy);
|
|
3956
|
+
}
|
|
3957
|
+
if (typeof params.limit === "number" && Number.isFinite(params.limit)) {
|
|
3958
|
+
query.set("limit", String(Math.trunc(params.limit)));
|
|
3959
|
+
}
|
|
3960
|
+
if (params.cursor) {
|
|
3961
|
+
query.set("cursor", params.cursor);
|
|
3962
|
+
}
|
|
3963
|
+
const suffix = query.size > 0 ? `?${query.toString()}` : "";
|
|
3964
|
+
const raw = await client.requestJson(`/skills/catalog${suffix}`, {
|
|
3965
|
+
method: "GET"
|
|
3966
|
+
});
|
|
3967
|
+
return client.parseWithSchema(
|
|
3968
|
+
raw,
|
|
3969
|
+
skillCatalogResponseSchema,
|
|
3970
|
+
"skill catalog response"
|
|
3971
|
+
);
|
|
3972
|
+
}
|
|
3637
3973
|
async function listSkillVersions(client, params) {
|
|
3638
3974
|
const normalizedName = params.name.trim();
|
|
3639
3975
|
if (!normalizedName) {
|
|
@@ -3753,6 +4089,169 @@ async function getSkillOwnership(client, params) {
|
|
|
3753
4089
|
"skill registry ownership response"
|
|
3754
4090
|
);
|
|
3755
4091
|
}
|
|
4092
|
+
async function getRecommendedSkillVersion(client, params) {
|
|
4093
|
+
const normalizedName = params.name.trim();
|
|
4094
|
+
if (!normalizedName) {
|
|
4095
|
+
throw new Error("name is required");
|
|
4096
|
+
}
|
|
4097
|
+
const query = new URLSearchParams();
|
|
4098
|
+
query.set("name", normalizedName);
|
|
4099
|
+
const raw = await client.requestJson(
|
|
4100
|
+
`/skills/recommended?${query.toString()}`,
|
|
4101
|
+
{ method: "GET" }
|
|
4102
|
+
);
|
|
4103
|
+
return client.parseWithSchema(
|
|
4104
|
+
raw,
|
|
4105
|
+
skillRecommendedVersionResponseSchema,
|
|
4106
|
+
"skill recommended version response"
|
|
4107
|
+
);
|
|
4108
|
+
}
|
|
4109
|
+
async function setRecommendedSkillVersion(client, payload) {
|
|
4110
|
+
const normalizedName = payload.name.trim();
|
|
4111
|
+
const normalizedVersion = payload.version.trim();
|
|
4112
|
+
if (!normalizedName) {
|
|
4113
|
+
throw new Error("name is required");
|
|
4114
|
+
}
|
|
4115
|
+
if (!normalizedVersion) {
|
|
4116
|
+
throw new Error("version is required");
|
|
4117
|
+
}
|
|
4118
|
+
const raw = await client.requestJson("/skills/recommended", {
|
|
4119
|
+
method: "POST",
|
|
4120
|
+
body: {
|
|
4121
|
+
name: normalizedName,
|
|
4122
|
+
version: normalizedVersion
|
|
4123
|
+
},
|
|
4124
|
+
headers: { "content-type": "application/json" }
|
|
4125
|
+
});
|
|
4126
|
+
return client.parseWithSchema(
|
|
4127
|
+
raw,
|
|
4128
|
+
skillRecommendedVersionResponseSchema,
|
|
4129
|
+
"skill recommended version response"
|
|
4130
|
+
);
|
|
4131
|
+
}
|
|
4132
|
+
async function getSkillDeprecations(client, params) {
|
|
4133
|
+
const normalizedName = params.name.trim();
|
|
4134
|
+
if (!normalizedName) {
|
|
4135
|
+
throw new Error("name is required");
|
|
4136
|
+
}
|
|
4137
|
+
const query = new URLSearchParams();
|
|
4138
|
+
query.set("name", normalizedName);
|
|
4139
|
+
const raw = await client.requestJson(
|
|
4140
|
+
`/skills/deprecations?${query.toString()}`,
|
|
4141
|
+
{ method: "GET" }
|
|
4142
|
+
);
|
|
4143
|
+
return client.parseWithSchema(
|
|
4144
|
+
raw,
|
|
4145
|
+
skillDeprecationsResponseSchema,
|
|
4146
|
+
"skill deprecations response"
|
|
4147
|
+
);
|
|
4148
|
+
}
|
|
4149
|
+
async function setSkillDeprecation(client, payload) {
|
|
4150
|
+
const normalizedName = payload.name.trim();
|
|
4151
|
+
if (!normalizedName) {
|
|
4152
|
+
throw new Error("name is required");
|
|
4153
|
+
}
|
|
4154
|
+
const version = payload.version?.trim();
|
|
4155
|
+
const reason = payload.reason.trim();
|
|
4156
|
+
if (!reason) {
|
|
4157
|
+
throw new Error("reason is required");
|
|
4158
|
+
}
|
|
4159
|
+
const replacementRef = payload.replacementRef?.trim();
|
|
4160
|
+
const raw = await client.requestJson("/skills/deprecate", {
|
|
4161
|
+
method: "POST",
|
|
4162
|
+
body: {
|
|
4163
|
+
name: normalizedName,
|
|
4164
|
+
version,
|
|
4165
|
+
reason,
|
|
4166
|
+
replacementRef
|
|
4167
|
+
},
|
|
4168
|
+
headers: { "content-type": "application/json" }
|
|
4169
|
+
});
|
|
4170
|
+
return client.parseWithSchema(
|
|
4171
|
+
raw,
|
|
4172
|
+
skillDeprecationRecordSchema,
|
|
4173
|
+
"skill deprecation response"
|
|
4174
|
+
);
|
|
4175
|
+
}
|
|
4176
|
+
async function getSkillBadge(client, params) {
|
|
4177
|
+
const normalizedName = params.name.trim();
|
|
4178
|
+
if (!normalizedName) {
|
|
4179
|
+
throw new Error("name is required");
|
|
4180
|
+
}
|
|
4181
|
+
const query = new URLSearchParams();
|
|
4182
|
+
query.set("name", normalizedName);
|
|
4183
|
+
if (params.metric) {
|
|
4184
|
+
query.set("metric", params.metric);
|
|
4185
|
+
}
|
|
4186
|
+
if (params.label?.trim()) {
|
|
4187
|
+
query.set("label", params.label.trim());
|
|
4188
|
+
}
|
|
4189
|
+
if (params.style) {
|
|
4190
|
+
query.set("style", params.style);
|
|
4191
|
+
}
|
|
4192
|
+
const raw = await client.requestJson(
|
|
4193
|
+
`/skills/badge?${query.toString()}`,
|
|
4194
|
+
{ method: "GET" }
|
|
4195
|
+
);
|
|
4196
|
+
return client.parseWithSchema(
|
|
4197
|
+
raw,
|
|
4198
|
+
skillBadgeResponseSchema,
|
|
4199
|
+
"skill badge response"
|
|
4200
|
+
);
|
|
4201
|
+
}
|
|
4202
|
+
async function listSkillTags(client) {
|
|
4203
|
+
const raw = await client.requestJson("/skills/tags", {
|
|
4204
|
+
method: "GET"
|
|
4205
|
+
});
|
|
4206
|
+
return client.parseWithSchema(
|
|
4207
|
+
raw,
|
|
4208
|
+
skillRegistryTagsResponseSchema,
|
|
4209
|
+
"skill tags response"
|
|
4210
|
+
);
|
|
4211
|
+
}
|
|
4212
|
+
async function listSkillCategories(client) {
|
|
4213
|
+
const raw = await client.requestJson("/skills/categories", {
|
|
4214
|
+
method: "GET"
|
|
4215
|
+
});
|
|
4216
|
+
return client.parseWithSchema(
|
|
4217
|
+
raw,
|
|
4218
|
+
skillRegistryCategoriesResponseSchema,
|
|
4219
|
+
"skill categories response"
|
|
4220
|
+
);
|
|
4221
|
+
}
|
|
4222
|
+
async function resolveSkillMarkdown(client, skillRef) {
|
|
4223
|
+
const normalizedSkillRef = skillRef.trim();
|
|
4224
|
+
if (!normalizedSkillRef) {
|
|
4225
|
+
throw new Error("skillRef is required");
|
|
4226
|
+
}
|
|
4227
|
+
const response = await client.request(
|
|
4228
|
+
`/skills/${encodeURIComponent(normalizedSkillRef)}/SKILL.md`,
|
|
4229
|
+
{
|
|
4230
|
+
method: "GET",
|
|
4231
|
+
headers: {
|
|
4232
|
+
accept: "text/markdown, text/plain;q=0.9, */*;q=0.8"
|
|
4233
|
+
}
|
|
4234
|
+
}
|
|
4235
|
+
);
|
|
4236
|
+
return response.text();
|
|
4237
|
+
}
|
|
4238
|
+
async function resolveSkillManifest(client, skillRef) {
|
|
4239
|
+
const normalizedSkillRef = skillRef.trim();
|
|
4240
|
+
if (!normalizedSkillRef) {
|
|
4241
|
+
throw new Error("skillRef is required");
|
|
4242
|
+
}
|
|
4243
|
+
const raw = await client.requestJson(
|
|
4244
|
+
`/skills/${encodeURIComponent(normalizedSkillRef)}/manifest`,
|
|
4245
|
+
{
|
|
4246
|
+
method: "GET"
|
|
4247
|
+
}
|
|
4248
|
+
);
|
|
4249
|
+
return client.parseWithSchema(
|
|
4250
|
+
raw,
|
|
4251
|
+
skillResolverManifestResponseSchema,
|
|
4252
|
+
"skill resolver manifest response"
|
|
4253
|
+
);
|
|
4254
|
+
}
|
|
3756
4255
|
async function getSkillVoteStatus(client, params) {
|
|
3757
4256
|
const normalizedName = params.name.trim();
|
|
3758
4257
|
if (!normalizedName) {
|
|
@@ -3795,7 +4294,11 @@ async function requestSkillVerification(client, payload) {
|
|
|
3795
4294
|
"/skills/verification/request",
|
|
3796
4295
|
{
|
|
3797
4296
|
method: "POST",
|
|
3798
|
-
body: {
|
|
4297
|
+
body: {
|
|
4298
|
+
name: normalizedName,
|
|
4299
|
+
version: payload.version,
|
|
4300
|
+
tier: payload.tier
|
|
4301
|
+
},
|
|
3799
4302
|
headers: { "content-type": "application/json" }
|
|
3800
4303
|
}
|
|
3801
4304
|
);
|
|
@@ -3812,6 +4315,9 @@ async function getSkillVerificationStatus(client, params) {
|
|
|
3812
4315
|
}
|
|
3813
4316
|
const query = new URLSearchParams();
|
|
3814
4317
|
query.set("name", normalizedName);
|
|
4318
|
+
if (params.version) {
|
|
4319
|
+
query.set("version", params.version);
|
|
4320
|
+
}
|
|
3815
4321
|
const raw = await client.requestJson(
|
|
3816
4322
|
`/skills/verification/status?${query.toString()}`,
|
|
3817
4323
|
{ method: "GET" }
|
|
@@ -3822,6 +4328,57 @@ async function getSkillVerificationStatus(client, params) {
|
|
|
3822
4328
|
"skill verification status response"
|
|
3823
4329
|
);
|
|
3824
4330
|
}
|
|
4331
|
+
async function createSkillDomainProofChallenge(client, payload) {
|
|
4332
|
+
const normalizedName = payload.name.trim();
|
|
4333
|
+
if (!normalizedName) {
|
|
4334
|
+
throw new Error("name is required");
|
|
4335
|
+
}
|
|
4336
|
+
const raw = await client.requestJson(
|
|
4337
|
+
"/skills/verification/domain/challenge",
|
|
4338
|
+
{
|
|
4339
|
+
method: "POST",
|
|
4340
|
+
body: {
|
|
4341
|
+
name: normalizedName,
|
|
4342
|
+
version: payload.version,
|
|
4343
|
+
domain: payload.domain
|
|
4344
|
+
},
|
|
4345
|
+
headers: { "content-type": "application/json" }
|
|
4346
|
+
}
|
|
4347
|
+
);
|
|
4348
|
+
return client.parseWithSchema(
|
|
4349
|
+
raw,
|
|
4350
|
+
skillVerificationDomainProofChallengeResponseSchema,
|
|
4351
|
+
"skill domain proof challenge response"
|
|
4352
|
+
);
|
|
4353
|
+
}
|
|
4354
|
+
async function verifySkillDomainProof(client, payload) {
|
|
4355
|
+
const normalizedName = payload.name.trim();
|
|
4356
|
+
const challengeToken = payload.challengeToken.trim();
|
|
4357
|
+
if (!normalizedName) {
|
|
4358
|
+
throw new Error("name is required");
|
|
4359
|
+
}
|
|
4360
|
+
if (!challengeToken) {
|
|
4361
|
+
throw new Error("challengeToken is required");
|
|
4362
|
+
}
|
|
4363
|
+
const raw = await client.requestJson(
|
|
4364
|
+
"/skills/verification/domain/verify",
|
|
4365
|
+
{
|
|
4366
|
+
method: "POST",
|
|
4367
|
+
body: {
|
|
4368
|
+
name: normalizedName,
|
|
4369
|
+
version: payload.version,
|
|
4370
|
+
domain: payload.domain,
|
|
4371
|
+
challengeToken
|
|
4372
|
+
},
|
|
4373
|
+
headers: { "content-type": "application/json" }
|
|
4374
|
+
}
|
|
4375
|
+
);
|
|
4376
|
+
return client.parseWithSchema(
|
|
4377
|
+
raw,
|
|
4378
|
+
skillVerificationDomainProofVerifyResponseSchema,
|
|
4379
|
+
"skill domain proof verify response"
|
|
4380
|
+
);
|
|
4381
|
+
}
|
|
3825
4382
|
|
|
3826
4383
|
// ../../src/services/registry-broker/client/base-client.ts
|
|
3827
4384
|
var import_buffer4 = require("buffer");
|
|
@@ -4165,6 +4722,12 @@ var RegistryBrokerClient = class _RegistryBrokerClient {
|
|
|
4165
4722
|
async listSkills(options) {
|
|
4166
4723
|
return listSkills(this, options);
|
|
4167
4724
|
}
|
|
4725
|
+
async getSkillSecurityBreakdown(params) {
|
|
4726
|
+
return getSkillSecurityBreakdown(this, params);
|
|
4727
|
+
}
|
|
4728
|
+
async getSkillsCatalog(options) {
|
|
4729
|
+
return getSkillsCatalog(this, options);
|
|
4730
|
+
}
|
|
4168
4731
|
async listSkillVersions(params) {
|
|
4169
4732
|
return listSkillVersions(this, params);
|
|
4170
4733
|
}
|
|
@@ -4186,6 +4749,33 @@ var RegistryBrokerClient = class _RegistryBrokerClient {
|
|
|
4186
4749
|
async getSkillOwnership(params) {
|
|
4187
4750
|
return getSkillOwnership(this, params);
|
|
4188
4751
|
}
|
|
4752
|
+
async getRecommendedSkillVersion(params) {
|
|
4753
|
+
return getRecommendedSkillVersion(this, params);
|
|
4754
|
+
}
|
|
4755
|
+
async setRecommendedSkillVersion(payload) {
|
|
4756
|
+
return setRecommendedSkillVersion(this, payload);
|
|
4757
|
+
}
|
|
4758
|
+
async getSkillDeprecations(params) {
|
|
4759
|
+
return getSkillDeprecations(this, params);
|
|
4760
|
+
}
|
|
4761
|
+
async setSkillDeprecation(payload) {
|
|
4762
|
+
return setSkillDeprecation(this, payload);
|
|
4763
|
+
}
|
|
4764
|
+
async getSkillBadge(params) {
|
|
4765
|
+
return getSkillBadge(this, params);
|
|
4766
|
+
}
|
|
4767
|
+
async listSkillTags() {
|
|
4768
|
+
return listSkillTags(this);
|
|
4769
|
+
}
|
|
4770
|
+
async listSkillCategories() {
|
|
4771
|
+
return listSkillCategories(this);
|
|
4772
|
+
}
|
|
4773
|
+
async resolveSkillMarkdown(skillRef) {
|
|
4774
|
+
return resolveSkillMarkdown(this, skillRef);
|
|
4775
|
+
}
|
|
4776
|
+
async resolveSkillManifest(skillRef) {
|
|
4777
|
+
return resolveSkillManifest(this, skillRef);
|
|
4778
|
+
}
|
|
4189
4779
|
async getSkillVoteStatus(params) {
|
|
4190
4780
|
return getSkillVoteStatus(this, params);
|
|
4191
4781
|
}
|
|
@@ -4198,6 +4788,12 @@ var RegistryBrokerClient = class _RegistryBrokerClient {
|
|
|
4198
4788
|
async getSkillVerificationStatus(params) {
|
|
4199
4789
|
return getSkillVerificationStatus(this, params);
|
|
4200
4790
|
}
|
|
4791
|
+
async createSkillDomainProofChallenge(payload) {
|
|
4792
|
+
return createSkillDomainProofChallenge(this, payload);
|
|
4793
|
+
}
|
|
4794
|
+
async verifySkillDomainProof(payload) {
|
|
4795
|
+
return verifySkillDomainProof(this, payload);
|
|
4796
|
+
}
|
|
4201
4797
|
async adaptersDetailed() {
|
|
4202
4798
|
return adaptersDetailed(this);
|
|
4203
4799
|
}
|
|
@@ -4393,6 +4989,12 @@ var RegistryBrokerClient = class _RegistryBrokerClient {
|
|
|
4393
4989
|
async verifySenderOwnership(uaid) {
|
|
4394
4990
|
return verifySenderOwnership(this, uaid);
|
|
4395
4991
|
}
|
|
4992
|
+
async verifyUaidDnsTxt(payload) {
|
|
4993
|
+
return verifyUaidDnsTxt(this, payload);
|
|
4994
|
+
}
|
|
4995
|
+
async getVerificationDnsStatus(uaid, query) {
|
|
4996
|
+
return getVerificationDnsStatus(this, uaid, query);
|
|
4997
|
+
}
|
|
4396
4998
|
async fetchHistorySnapshot(sessionId, options) {
|
|
4397
4999
|
return fetchHistorySnapshot(
|
|
4398
5000
|
this.conversationContexts,
|