@hol-org/rb-client 0.1.176 → 0.1.177
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 +342 -282
- package/dist/index.d.cts +6827 -24027
- package/dist/index.d.ts +6827 -24027
- package/dist/index.js +342 -282
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -238,13 +238,6 @@ var metadataFacetSchema = z2.record(
|
|
|
238
238
|
jsonValueSchema
|
|
239
239
|
])
|
|
240
240
|
).optional();
|
|
241
|
-
var searchHitMetadataSchema = z2.object({
|
|
242
|
-
delegationRoles: jsonValueSchema.optional(),
|
|
243
|
-
delegationTaskTags: jsonValueSchema.optional(),
|
|
244
|
-
delegationProtocols: jsonValueSchema.optional(),
|
|
245
|
-
delegationSummary: jsonValueSchema.optional(),
|
|
246
|
-
delegationSignals: jsonValueSchema.optional()
|
|
247
|
-
}).passthrough();
|
|
248
241
|
var searchHitSchema = z2.object({
|
|
249
242
|
id: z2.string(),
|
|
250
243
|
uaid: z2.string(),
|
|
@@ -253,7 +246,7 @@ var searchHitSchema = z2.object({
|
|
|
253
246
|
description: z2.string().optional(),
|
|
254
247
|
capabilities: z2.array(capabilityValueSchema),
|
|
255
248
|
endpoints: z2.union([z2.record(jsonValueSchema), z2.array(z2.string())]).optional(),
|
|
256
|
-
metadata:
|
|
249
|
+
metadata: z2.record(jsonValueSchema).optional(),
|
|
257
250
|
metadataFacet: metadataFacetSchema,
|
|
258
251
|
profile: agentProfileSchema.optional(),
|
|
259
252
|
protocols: z2.array(z2.string()).optional(),
|
|
@@ -299,22 +292,13 @@ var resolveResponseSchema = z2.object({
|
|
|
299
292
|
});
|
|
300
293
|
var delegationPlanCandidateSchema = z2.object({
|
|
301
294
|
uaid: z2.string(),
|
|
302
|
-
label: z2.string(),
|
|
303
|
-
registry: z2.string().optional(),
|
|
304
|
-
agent: searchHitSchema,
|
|
305
295
|
score: z2.number(),
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
matchedTaskTags: z2.array(z2.string()).optional(),
|
|
313
|
-
reasons: z2.array(z2.string()).optional(),
|
|
314
|
-
suggestedMessage: z2.string().optional(),
|
|
315
|
-
trustScore: z2.number().optional(),
|
|
316
|
-
verified: z2.boolean().optional(),
|
|
317
|
-
communicationSupported: z2.boolean().optional(),
|
|
296
|
+
displayName: z2.string().optional(),
|
|
297
|
+
summary: z2.string().optional(),
|
|
298
|
+
protocols: z2.array(z2.string()).optional(),
|
|
299
|
+
surfaces: z2.array(z2.string()).optional(),
|
|
300
|
+
languages: z2.array(z2.string()).optional(),
|
|
301
|
+
artifacts: z2.array(z2.string()).optional(),
|
|
318
302
|
availability: z2.boolean().optional(),
|
|
319
303
|
explanation: z2.string().optional()
|
|
320
304
|
}).passthrough();
|
|
@@ -1232,14 +1216,6 @@ var skillRegistryListResponseSchema = z2.object({
|
|
|
1232
1216
|
items: z2.array(skillRegistryPublishSummarySchema),
|
|
1233
1217
|
nextCursor: z2.string().nullable()
|
|
1234
1218
|
}).passthrough();
|
|
1235
|
-
var skillSecurityBreakdownResponseSchema = z2.object({
|
|
1236
|
-
name: z2.string(),
|
|
1237
|
-
version: z2.string(),
|
|
1238
|
-
jobId: z2.string(),
|
|
1239
|
-
createdAt: z2.string(),
|
|
1240
|
-
safety: skillSafetySummarySchema.nullable(),
|
|
1241
|
-
findings: z2.array(skillSafetyFindingSchema)
|
|
1242
|
-
}).passthrough();
|
|
1243
1219
|
var skillCatalogChannelSchema = z2.enum([
|
|
1244
1220
|
"stable",
|
|
1245
1221
|
"prerelease",
|
|
@@ -1293,58 +1269,188 @@ var skillDeprecationsResponseSchema = z2.object({
|
|
|
1293
1269
|
name: z2.string(),
|
|
1294
1270
|
items: z2.array(skillDeprecationRecordSchema)
|
|
1295
1271
|
}).passthrough();
|
|
1296
|
-
var
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1272
|
+
var skillSecurityBreakdownResponseSchema = z2.object({
|
|
1273
|
+
jobId: z2.string(),
|
|
1274
|
+
score: z2.number().nullable().optional(),
|
|
1275
|
+
findings: z2.array(z2.unknown()).optional(),
|
|
1276
|
+
summary: z2.unknown().optional(),
|
|
1277
|
+
generatedAt: z2.string().nullable().optional(),
|
|
1278
|
+
scannerVersion: z2.string().nullable().optional()
|
|
1302
1279
|
}).passthrough();
|
|
1303
|
-
var
|
|
1304
|
-
|
|
1280
|
+
var skillBadgeMetricSchema = z2.enum([
|
|
1281
|
+
"version",
|
|
1282
|
+
"version_verification",
|
|
1283
|
+
"status",
|
|
1284
|
+
"verification",
|
|
1285
|
+
"repo_commit",
|
|
1286
|
+
"manifest",
|
|
1287
|
+
"domain",
|
|
1288
|
+
"trust",
|
|
1289
|
+
"tier",
|
|
1290
|
+
"safety",
|
|
1291
|
+
"upvotes",
|
|
1292
|
+
"updated"
|
|
1293
|
+
]);
|
|
1294
|
+
var skillBadgeStyleSchema = z2.enum([
|
|
1295
|
+
"flat",
|
|
1296
|
+
"flat-square",
|
|
1297
|
+
"for-the-badge",
|
|
1298
|
+
"plastic",
|
|
1299
|
+
"social"
|
|
1300
|
+
]);
|
|
1301
|
+
var skillBadgeResponseSchema = z2.object({
|
|
1302
|
+
schemaVersion: z2.number().int(),
|
|
1305
1303
|
label: z2.string(),
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1304
|
+
message: z2.string(),
|
|
1305
|
+
color: z2.string(),
|
|
1306
|
+
style: skillBadgeStyleSchema.optional(),
|
|
1307
|
+
isError: z2.boolean().optional(),
|
|
1308
|
+
cacheSeconds: z2.number().int().optional()
|
|
1309
|
+
}).passthrough();
|
|
1310
|
+
var skillRegistryTagsResponseSchema = z2.object({
|
|
1311
|
+
tags: z2.array(z2.string())
|
|
1312
|
+
}).passthrough();
|
|
1313
|
+
var skillRegistryCategoriesResponseSchema = z2.object({
|
|
1314
|
+
categories: z2.array(z2.string())
|
|
1315
|
+
}).passthrough();
|
|
1316
|
+
var skillResolverManifestResponseSchema = z2.record(jsonValueSchema);
|
|
1317
|
+
var skillRegistryQuoteFileBreakdownSchema = z2.object({
|
|
1318
|
+
name: z2.string(),
|
|
1319
|
+
mimeType: z2.string(),
|
|
1320
|
+
estimatedCostHbar: z2.number()
|
|
1321
|
+
}).passthrough();
|
|
1322
|
+
var skillRegistryQuoteResponseSchema = z2.object({
|
|
1323
|
+
quoteId: z2.string(),
|
|
1324
|
+
name: z2.string(),
|
|
1325
|
+
version: z2.string(),
|
|
1326
|
+
directoryTopicId: z2.string(),
|
|
1327
|
+
estimatedCostHbar: z2.number(),
|
|
1328
|
+
credits: z2.number(),
|
|
1329
|
+
usdCents: z2.number(),
|
|
1330
|
+
expiresAt: z2.string(),
|
|
1331
|
+
files: z2.array(skillRegistryQuoteFileBreakdownSchema)
|
|
1332
|
+
}).passthrough();
|
|
1333
|
+
var skillRegistryJobStatusSchema = z2.union([
|
|
1334
|
+
z2.literal("pending"),
|
|
1335
|
+
z2.literal("in_progress"),
|
|
1336
|
+
z2.literal("completed"),
|
|
1337
|
+
z2.literal("failed")
|
|
1338
|
+
]);
|
|
1339
|
+
var skillRegistryPublishResponseSchema = z2.object({
|
|
1340
|
+
jobId: z2.string(),
|
|
1341
|
+
status: skillRegistryJobStatusSchema,
|
|
1342
|
+
credits: z2.number().nullable().optional(),
|
|
1343
|
+
usdCents: z2.number().nullable().optional(),
|
|
1344
|
+
quoteId: z2.string().nullable().optional(),
|
|
1345
|
+
createdAt: z2.string(),
|
|
1346
|
+
updatedAt: z2.string(),
|
|
1347
|
+
network: z2.union([z2.literal("mainnet"), z2.literal("testnet")])
|
|
1309
1348
|
}).passthrough();
|
|
1310
|
-
var
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1349
|
+
var skillRegistryJobStatusResponseSchema = z2.object({
|
|
1350
|
+
jobId: z2.string(),
|
|
1351
|
+
status: skillRegistryJobStatusSchema,
|
|
1352
|
+
network: z2.union([z2.literal("mainnet"), z2.literal("testnet")]),
|
|
1353
|
+
name: z2.string(),
|
|
1354
|
+
version: z2.string(),
|
|
1355
|
+
directoryTopicId: z2.string(),
|
|
1356
|
+
skillUid: z2.number().int().nullable().optional(),
|
|
1357
|
+
directorySequenceNumber: z2.number().int().nullable().optional(),
|
|
1358
|
+
versionRegistryTopicId: z2.string().nullable().optional(),
|
|
1359
|
+
packageTopicId: z2.string().nullable().optional(),
|
|
1360
|
+
manifestHrl: z2.string().nullable().optional(),
|
|
1361
|
+
skillJsonHrl: z2.string().nullable().optional(),
|
|
1362
|
+
iconHcs1: z2.string().nullable().optional(),
|
|
1363
|
+
tags: z2.array(z2.string()).nullable().optional(),
|
|
1364
|
+
category: z2.string().nullable().optional(),
|
|
1365
|
+
files: z2.array(skillRegistryFileDescriptorSchema).nullable().optional(),
|
|
1366
|
+
quoteCredits: z2.number().nullable().optional(),
|
|
1367
|
+
quoteUsdCents: z2.number().nullable().optional(),
|
|
1368
|
+
safety: skillSafetySummarySchema.nullable().optional(),
|
|
1369
|
+
reservationId: z2.string().nullable().optional(),
|
|
1370
|
+
totalCostHbar: z2.number().nullable().optional(),
|
|
1371
|
+
totalCostCredits: z2.number().nullable().optional(),
|
|
1372
|
+
failureReason: z2.string().nullable().optional(),
|
|
1373
|
+
createdAt: z2.string(),
|
|
1374
|
+
updatedAt: z2.string()
|
|
1375
|
+
}).passthrough();
|
|
1376
|
+
var skillRegistryVersionItemSchema = z2.object({
|
|
1377
|
+
jobId: z2.string(),
|
|
1378
|
+
version: z2.string(),
|
|
1379
|
+
createdAt: z2.string(),
|
|
1380
|
+
verified: z2.boolean().optional()
|
|
1381
|
+
}).passthrough();
|
|
1382
|
+
var skillRegistryVersionsResponseSchema = z2.object({
|
|
1383
|
+
name: z2.string(),
|
|
1384
|
+
items: z2.array(skillRegistryVersionItemSchema)
|
|
1385
|
+
}).passthrough();
|
|
1386
|
+
var skillRegistryMineItemSchema = z2.object({
|
|
1387
|
+
name: z2.string(),
|
|
1388
|
+
latestVersion: z2.string(),
|
|
1389
|
+
latestCreatedAt: z2.string(),
|
|
1390
|
+
verified: z2.boolean().optional(),
|
|
1391
|
+
iconHcs1: z2.string().optional(),
|
|
1392
|
+
versions: z2.array(z2.string())
|
|
1393
|
+
}).passthrough();
|
|
1394
|
+
var skillRegistryMineResponseSchema = z2.object({
|
|
1395
|
+
items: z2.array(skillRegistryMineItemSchema)
|
|
1396
|
+
}).passthrough();
|
|
1397
|
+
var skillRegistryMyListResponseSchema = z2.object({
|
|
1398
|
+
owned: skillRegistryMineResponseSchema,
|
|
1399
|
+
upvoted: skillRegistryListResponseSchema
|
|
1400
|
+
}).passthrough();
|
|
1401
|
+
var skillRegistryConfigResponseSchema = z2.object({
|
|
1402
|
+
enabled: z2.boolean(),
|
|
1403
|
+
directoryTopicId: z2.string().nullable().optional(),
|
|
1404
|
+
maxFiles: z2.number().int().nullable().optional(),
|
|
1405
|
+
maxTotalSizeBytes: z2.number().int().nullable().optional(),
|
|
1406
|
+
allowedMimeTypes: z2.array(z2.string()).nullable().optional(),
|
|
1407
|
+
network: z2.union([z2.literal("mainnet"), z2.literal("testnet")]).nullable().optional(),
|
|
1408
|
+
publisher: z2.object({
|
|
1409
|
+
cliPackageUrl: z2.string(),
|
|
1410
|
+
cliCommand: z2.string(),
|
|
1411
|
+
actionMarketplaceUrl: z2.string(),
|
|
1412
|
+
repositoryUrl: z2.string(),
|
|
1413
|
+
guideUrl: z2.string().nullable().optional(),
|
|
1414
|
+
docsUrl: z2.string().nullable().optional(),
|
|
1415
|
+
submitUrl: z2.string().nullable().optional(),
|
|
1416
|
+
skillsIndexUrl: z2.string().nullable().optional(),
|
|
1417
|
+
quickstartCommands: z2.array(
|
|
1418
|
+
z2.object({
|
|
1419
|
+
id: z2.string(),
|
|
1420
|
+
label: z2.string(),
|
|
1421
|
+
description: z2.string(),
|
|
1422
|
+
command: z2.string(),
|
|
1423
|
+
href: z2.string().nullable().optional()
|
|
1424
|
+
}).passthrough()
|
|
1425
|
+
).optional().default([]),
|
|
1426
|
+
templatePresets: z2.array(
|
|
1427
|
+
z2.object({
|
|
1428
|
+
presetId: z2.string(),
|
|
1429
|
+
label: z2.string(),
|
|
1430
|
+
description: z2.string(),
|
|
1431
|
+
recommendedFor: z2.string(),
|
|
1432
|
+
command: z2.string()
|
|
1433
|
+
}).passthrough()
|
|
1434
|
+
).optional().default([])
|
|
1435
|
+
}).nullable().optional()
|
|
1436
|
+
}).passthrough();
|
|
1437
|
+
var skillRegistryOwnershipResponseSchema = z2.object({
|
|
1438
|
+
name: z2.string(),
|
|
1439
|
+
exists: z2.boolean(),
|
|
1440
|
+
isOwner: z2.boolean()
|
|
1441
|
+
}).passthrough();
|
|
1442
|
+
var skillRegistryVoteStatusResponseSchema = z2.object({
|
|
1443
|
+
name: z2.string(),
|
|
1444
|
+
upvotes: z2.number().int(),
|
|
1445
|
+
hasUpvoted: z2.boolean()
|
|
1321
1446
|
}).passthrough();
|
|
1322
1447
|
var skillTrustTierSchema = z2.enum([
|
|
1323
|
-
"unpublished",
|
|
1324
1448
|
"unclaimed",
|
|
1325
1449
|
"validated",
|
|
1326
1450
|
"published",
|
|
1327
1451
|
"verified",
|
|
1328
1452
|
"hardened"
|
|
1329
1453
|
]);
|
|
1330
|
-
var skillStatusDefaultVerificationSignals = {
|
|
1331
|
-
publisherBound: false,
|
|
1332
|
-
domainProof: false,
|
|
1333
|
-
verifiedDomain: false,
|
|
1334
|
-
previewValidated: false
|
|
1335
|
-
};
|
|
1336
|
-
var skillStatusDefaultProvenanceSignals = {
|
|
1337
|
-
repoCommitIntegrity: false,
|
|
1338
|
-
manifestIntegrity: false,
|
|
1339
|
-
canonicalRelease: false,
|
|
1340
|
-
previewAvailable: false,
|
|
1341
|
-
previewAuthoritative: false
|
|
1342
|
-
};
|
|
1343
|
-
var skillStatusChecksSchema = z2.object({
|
|
1344
|
-
repoCommitIntegrity: z2.boolean(),
|
|
1345
|
-
manifestIntegrity: z2.boolean(),
|
|
1346
|
-
domainProof: z2.boolean()
|
|
1347
|
-
}).passthrough();
|
|
1348
1454
|
var skillStatusNextStepSchema = z2.object({
|
|
1349
1455
|
kind: z2.enum([
|
|
1350
1456
|
"setup_validate",
|
|
@@ -1352,8 +1458,8 @@ var skillStatusNextStepSchema = z2.object({
|
|
|
1352
1458
|
"verify_domain",
|
|
1353
1459
|
"harden_workflow",
|
|
1354
1460
|
"share_status"
|
|
1355
|
-
])
|
|
1356
|
-
priority: z2.number().int()
|
|
1461
|
+
]),
|
|
1462
|
+
priority: z2.number().int(),
|
|
1357
1463
|
id: z2.string(),
|
|
1358
1464
|
label: z2.string(),
|
|
1359
1465
|
description: z2.string(),
|
|
@@ -1419,6 +1525,11 @@ var skillStatusPreviewMetadataSchema = z2.object({
|
|
|
1419
1525
|
expiresAt: z2.string(),
|
|
1420
1526
|
statusUrl: z2.string()
|
|
1421
1527
|
}).passthrough();
|
|
1528
|
+
var skillStatusChecksSchema = z2.object({
|
|
1529
|
+
repoCommitIntegrity: z2.boolean(),
|
|
1530
|
+
manifestIntegrity: z2.boolean(),
|
|
1531
|
+
domainProof: z2.boolean()
|
|
1532
|
+
}).passthrough();
|
|
1422
1533
|
var skillStatusVerificationSignalsSchema = z2.object({
|
|
1423
1534
|
publisherBound: z2.boolean(),
|
|
1424
1535
|
domainProof: z2.boolean(),
|
|
@@ -1432,20 +1543,6 @@ var skillStatusProvenanceSignalsSchema = z2.object({
|
|
|
1432
1543
|
previewAvailable: z2.boolean(),
|
|
1433
1544
|
previewAuthoritative: z2.boolean()
|
|
1434
1545
|
}).passthrough();
|
|
1435
|
-
var skillBadgeMetricSchema = z2.enum([
|
|
1436
|
-
"version",
|
|
1437
|
-
"version_verification",
|
|
1438
|
-
"status",
|
|
1439
|
-
"verification",
|
|
1440
|
-
"repo_commit",
|
|
1441
|
-
"manifest",
|
|
1442
|
-
"domain",
|
|
1443
|
-
"trust",
|
|
1444
|
-
"tier",
|
|
1445
|
-
"safety",
|
|
1446
|
-
"upvotes",
|
|
1447
|
-
"updated"
|
|
1448
|
-
]);
|
|
1449
1546
|
var skillStatusResponseSchema = z2.object({
|
|
1450
1547
|
name: z2.string(),
|
|
1451
1548
|
version: z2.string().nullable(),
|
|
@@ -1455,16 +1552,44 @@ var skillStatusResponseSchema = z2.object({
|
|
|
1455
1552
|
badgeMetric: skillBadgeMetricSchema,
|
|
1456
1553
|
checks: skillStatusChecksSchema,
|
|
1457
1554
|
nextSteps: z2.array(skillStatusNextStepSchema),
|
|
1458
|
-
verificationSignals: skillStatusVerificationSignalsSchema
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
provenanceSignals: skillStatusProvenanceSignalsSchema.default(
|
|
1462
|
-
skillStatusDefaultProvenanceSignals
|
|
1463
|
-
),
|
|
1464
|
-
publisher: skillPublisherMetadataSchema.nullable().optional(),
|
|
1555
|
+
verificationSignals: skillStatusVerificationSignalsSchema,
|
|
1556
|
+
provenanceSignals: skillStatusProvenanceSignalsSchema,
|
|
1557
|
+
publisher: skillRegistryConfigResponseSchema.shape.publisher,
|
|
1465
1558
|
preview: skillStatusPreviewMetadataSchema.nullable().optional(),
|
|
1466
1559
|
statusUrl: z2.string().nullable().optional()
|
|
1467
1560
|
}).passthrough();
|
|
1561
|
+
var skillQuotePreviewRangeSchema = z2.object({
|
|
1562
|
+
min: z2.number(),
|
|
1563
|
+
max: z2.number()
|
|
1564
|
+
}).passthrough();
|
|
1565
|
+
var skillQuotePreviewResponseSchema = z2.object({
|
|
1566
|
+
estimatedCredits: skillQuotePreviewRangeSchema,
|
|
1567
|
+
estimatedHbar: skillQuotePreviewRangeSchema,
|
|
1568
|
+
pricingVersion: z2.string(),
|
|
1569
|
+
assumptions: z2.array(z2.string()),
|
|
1570
|
+
purchaseUrl: z2.string().nullable(),
|
|
1571
|
+
publishUrl: z2.string().nullable(),
|
|
1572
|
+
verificationUrl: z2.string().nullable()
|
|
1573
|
+
}).passthrough();
|
|
1574
|
+
var skillConversionSignalsResponseSchema = z2.object({
|
|
1575
|
+
repoUrl: z2.string(),
|
|
1576
|
+
skillDir: z2.string(),
|
|
1577
|
+
trustTier: skillTrustTierSchema,
|
|
1578
|
+
actionInstalled: z2.boolean(),
|
|
1579
|
+
previewUploaded: z2.boolean(),
|
|
1580
|
+
previewId: z2.string().nullable(),
|
|
1581
|
+
lastValidateSuccessAt: z2.string().nullable(),
|
|
1582
|
+
stalePreviewAgeDays: z2.number().nullable(),
|
|
1583
|
+
published: z2.boolean(),
|
|
1584
|
+
verified: z2.boolean(),
|
|
1585
|
+
publishReady: z2.boolean(),
|
|
1586
|
+
publishBlockedByMissingAuth: z2.boolean(),
|
|
1587
|
+
statusUrl: z2.string().nullable(),
|
|
1588
|
+
purchaseUrl: z2.string().nullable(),
|
|
1589
|
+
publishUrl: z2.string().nullable(),
|
|
1590
|
+
verificationUrl: z2.string().nullable(),
|
|
1591
|
+
nextSteps: z2.array(skillStatusNextStepSchema)
|
|
1592
|
+
}).passthrough();
|
|
1468
1593
|
var skillInstallArtifactDescriptorSchema = z2.object({
|
|
1469
1594
|
url: z2.string(),
|
|
1470
1595
|
pointer: z2.string().nullable(),
|
|
@@ -1515,132 +1640,6 @@ var skillInstallResponseSchema = z2.object({
|
|
|
1515
1640
|
var skillInstallCopyTelemetryResponseSchema = z2.object({
|
|
1516
1641
|
accepted: z2.boolean()
|
|
1517
1642
|
}).passthrough();
|
|
1518
|
-
var skillBadgeStyleSchema = z2.enum([
|
|
1519
|
-
"flat",
|
|
1520
|
-
"flat-square",
|
|
1521
|
-
"for-the-badge",
|
|
1522
|
-
"plastic",
|
|
1523
|
-
"social"
|
|
1524
|
-
]);
|
|
1525
|
-
var skillBadgeResponseSchema = z2.object({
|
|
1526
|
-
schemaVersion: z2.number().int(),
|
|
1527
|
-
label: z2.string(),
|
|
1528
|
-
message: z2.string(),
|
|
1529
|
-
color: z2.string(),
|
|
1530
|
-
style: skillBadgeStyleSchema.optional(),
|
|
1531
|
-
isError: z2.boolean().optional(),
|
|
1532
|
-
cacheSeconds: z2.number().int().optional()
|
|
1533
|
-
}).passthrough();
|
|
1534
|
-
var skillRegistryTagsResponseSchema = z2.object({
|
|
1535
|
-
tags: z2.array(z2.string())
|
|
1536
|
-
}).passthrough();
|
|
1537
|
-
var skillRegistryCategoriesResponseSchema = z2.object({
|
|
1538
|
-
categories: z2.array(z2.string())
|
|
1539
|
-
}).passthrough();
|
|
1540
|
-
var skillResolverManifestResponseSchema = z2.record(jsonValueSchema);
|
|
1541
|
-
var skillRegistryQuoteFileBreakdownSchema = z2.object({
|
|
1542
|
-
name: z2.string(),
|
|
1543
|
-
mimeType: z2.string(),
|
|
1544
|
-
estimatedCostHbar: z2.number()
|
|
1545
|
-
}).passthrough();
|
|
1546
|
-
var skillRegistryQuoteResponseSchema = z2.object({
|
|
1547
|
-
quoteId: z2.string(),
|
|
1548
|
-
name: z2.string(),
|
|
1549
|
-
version: z2.string(),
|
|
1550
|
-
directoryTopicId: z2.string(),
|
|
1551
|
-
estimatedCostHbar: z2.number(),
|
|
1552
|
-
credits: z2.number(),
|
|
1553
|
-
usdCents: z2.number(),
|
|
1554
|
-
expiresAt: z2.string(),
|
|
1555
|
-
files: z2.array(skillRegistryQuoteFileBreakdownSchema)
|
|
1556
|
-
}).passthrough();
|
|
1557
|
-
var skillRegistryJobStatusSchema = z2.union([
|
|
1558
|
-
z2.literal("pending"),
|
|
1559
|
-
z2.literal("in_progress"),
|
|
1560
|
-
z2.literal("completed"),
|
|
1561
|
-
z2.literal("failed")
|
|
1562
|
-
]);
|
|
1563
|
-
var skillRegistryPublishResponseSchema = z2.object({
|
|
1564
|
-
jobId: z2.string(),
|
|
1565
|
-
status: skillRegistryJobStatusSchema,
|
|
1566
|
-
credits: z2.number().nullable().optional(),
|
|
1567
|
-
usdCents: z2.number().nullable().optional(),
|
|
1568
|
-
quoteId: z2.string().nullable().optional(),
|
|
1569
|
-
createdAt: z2.string(),
|
|
1570
|
-
updatedAt: z2.string(),
|
|
1571
|
-
network: z2.union([z2.literal("mainnet"), z2.literal("testnet")])
|
|
1572
|
-
}).passthrough();
|
|
1573
|
-
var skillRegistryJobStatusResponseSchema = z2.object({
|
|
1574
|
-
jobId: z2.string(),
|
|
1575
|
-
status: skillRegistryJobStatusSchema,
|
|
1576
|
-
network: z2.union([z2.literal("mainnet"), z2.literal("testnet")]),
|
|
1577
|
-
name: z2.string(),
|
|
1578
|
-
version: z2.string(),
|
|
1579
|
-
directoryTopicId: z2.string(),
|
|
1580
|
-
skillUid: z2.number().int().nullable().optional(),
|
|
1581
|
-
directorySequenceNumber: z2.number().int().nullable().optional(),
|
|
1582
|
-
versionRegistryTopicId: z2.string().nullable().optional(),
|
|
1583
|
-
packageTopicId: z2.string().nullable().optional(),
|
|
1584
|
-
manifestHrl: z2.string().nullable().optional(),
|
|
1585
|
-
skillJsonHrl: z2.string().nullable().optional(),
|
|
1586
|
-
iconHcs1: z2.string().nullable().optional(),
|
|
1587
|
-
tags: z2.array(z2.string()).nullable().optional(),
|
|
1588
|
-
category: z2.string().nullable().optional(),
|
|
1589
|
-
files: z2.array(skillRegistryFileDescriptorSchema).nullable().optional(),
|
|
1590
|
-
quoteCredits: z2.number().nullable().optional(),
|
|
1591
|
-
quoteUsdCents: z2.number().nullable().optional(),
|
|
1592
|
-
safety: skillSafetySummarySchema.nullable().optional(),
|
|
1593
|
-
reservationId: z2.string().nullable().optional(),
|
|
1594
|
-
totalCostHbar: z2.number().nullable().optional(),
|
|
1595
|
-
totalCostCredits: z2.number().nullable().optional(),
|
|
1596
|
-
failureReason: z2.string().nullable().optional(),
|
|
1597
|
-
createdAt: z2.string(),
|
|
1598
|
-
updatedAt: z2.string()
|
|
1599
|
-
}).passthrough();
|
|
1600
|
-
var skillRegistryVersionItemSchema = z2.object({
|
|
1601
|
-
jobId: z2.string(),
|
|
1602
|
-
version: z2.string(),
|
|
1603
|
-
createdAt: z2.string(),
|
|
1604
|
-
verified: z2.boolean().optional()
|
|
1605
|
-
}).passthrough();
|
|
1606
|
-
var skillRegistryVersionsResponseSchema = z2.object({
|
|
1607
|
-
name: z2.string(),
|
|
1608
|
-
items: z2.array(skillRegistryVersionItemSchema)
|
|
1609
|
-
}).passthrough();
|
|
1610
|
-
var skillRegistryMineItemSchema = z2.object({
|
|
1611
|
-
name: z2.string(),
|
|
1612
|
-
latestVersion: z2.string(),
|
|
1613
|
-
latestCreatedAt: z2.string(),
|
|
1614
|
-
verified: z2.boolean().optional(),
|
|
1615
|
-
iconHcs1: z2.string().optional(),
|
|
1616
|
-
versions: z2.array(z2.string())
|
|
1617
|
-
}).passthrough();
|
|
1618
|
-
var skillRegistryMineResponseSchema = z2.object({
|
|
1619
|
-
items: z2.array(skillRegistryMineItemSchema)
|
|
1620
|
-
}).passthrough();
|
|
1621
|
-
var skillRegistryMyListResponseSchema = z2.object({
|
|
1622
|
-
owned: skillRegistryMineResponseSchema,
|
|
1623
|
-
upvoted: skillRegistryListResponseSchema
|
|
1624
|
-
}).passthrough();
|
|
1625
|
-
var skillRegistryConfigResponseSchema = z2.object({
|
|
1626
|
-
enabled: z2.boolean(),
|
|
1627
|
-
directoryTopicId: z2.string().nullable().optional(),
|
|
1628
|
-
maxFiles: z2.number().int().nullable().optional(),
|
|
1629
|
-
maxTotalSizeBytes: z2.number().int().nullable().optional(),
|
|
1630
|
-
allowedMimeTypes: z2.array(z2.string()).nullable().optional(),
|
|
1631
|
-
network: z2.union([z2.literal("mainnet"), z2.literal("testnet")]).nullable().optional(),
|
|
1632
|
-
publisher: skillPublisherMetadataSchema.nullable().optional()
|
|
1633
|
-
}).passthrough();
|
|
1634
|
-
var skillRegistryOwnershipResponseSchema = z2.object({
|
|
1635
|
-
name: z2.string(),
|
|
1636
|
-
exists: z2.boolean(),
|
|
1637
|
-
isOwner: z2.boolean()
|
|
1638
|
-
}).passthrough();
|
|
1639
|
-
var skillRegistryVoteStatusResponseSchema = z2.object({
|
|
1640
|
-
name: z2.string(),
|
|
1641
|
-
upvotes: z2.number().int(),
|
|
1642
|
-
hasUpvoted: z2.boolean()
|
|
1643
|
-
}).passthrough();
|
|
1644
1643
|
var skillVerificationTierSchema = z2.enum(["basic", "express"]);
|
|
1645
1644
|
var skillVerificationStatusSchema = z2.enum([
|
|
1646
1645
|
"pending",
|
|
@@ -4248,57 +4247,6 @@ async function skillsConfig(client) {
|
|
|
4248
4247
|
"skill registry config response"
|
|
4249
4248
|
);
|
|
4250
4249
|
}
|
|
4251
|
-
async function getSkillStatus(client, params) {
|
|
4252
|
-
const normalizedName = params.name.trim();
|
|
4253
|
-
if (!normalizedName) {
|
|
4254
|
-
throw new Error("name is required");
|
|
4255
|
-
}
|
|
4256
|
-
const query = new URLSearchParams();
|
|
4257
|
-
query.set("name", normalizedName);
|
|
4258
|
-
if (params.version?.trim()) {
|
|
4259
|
-
query.set("version", params.version.trim());
|
|
4260
|
-
}
|
|
4261
|
-
const raw = await client.requestJson(
|
|
4262
|
-
`/skills/status?${query.toString()}`,
|
|
4263
|
-
{
|
|
4264
|
-
method: "GET"
|
|
4265
|
-
}
|
|
4266
|
-
);
|
|
4267
|
-
return client.parseWithSchema(
|
|
4268
|
-
raw,
|
|
4269
|
-
skillStatusResponseSchema,
|
|
4270
|
-
"skill status response"
|
|
4271
|
-
);
|
|
4272
|
-
}
|
|
4273
|
-
function buildRepoPreviewQuery(params) {
|
|
4274
|
-
const repo = params.repo.trim();
|
|
4275
|
-
const skillDir = params.skillDir.trim();
|
|
4276
|
-
if (!repo) {
|
|
4277
|
-
throw new Error("repo is required");
|
|
4278
|
-
}
|
|
4279
|
-
if (!skillDir) {
|
|
4280
|
-
throw new Error("skillDir is required");
|
|
4281
|
-
}
|
|
4282
|
-
const query = new URLSearchParams();
|
|
4283
|
-
query.set("repo", repo);
|
|
4284
|
-
query.set("skillDir", skillDir);
|
|
4285
|
-
if (params.ref?.trim()) {
|
|
4286
|
-
query.set("ref", params.ref.trim());
|
|
4287
|
-
}
|
|
4288
|
-
return query.toString();
|
|
4289
|
-
}
|
|
4290
|
-
async function getSkillStatusByRepo(client, params) {
|
|
4291
|
-
const query = buildRepoPreviewQuery(params);
|
|
4292
|
-
const raw = await client.requestJson(
|
|
4293
|
-
`/skills/status/by-repo?${query}`,
|
|
4294
|
-
{ method: "GET" }
|
|
4295
|
-
);
|
|
4296
|
-
return client.parseWithSchema(
|
|
4297
|
-
raw,
|
|
4298
|
-
skillStatusResponseSchema,
|
|
4299
|
-
"skill status response"
|
|
4300
|
-
);
|
|
4301
|
-
}
|
|
4302
4250
|
async function listSkills(client, params = {}) {
|
|
4303
4251
|
const query = new URLSearchParams();
|
|
4304
4252
|
if (params.name) {
|
|
@@ -4468,6 +4416,18 @@ async function quoteSkillPublish(client, payload) {
|
|
|
4468
4416
|
"skill registry quote response"
|
|
4469
4417
|
);
|
|
4470
4418
|
}
|
|
4419
|
+
async function quoteSkillPublishPreview(client, payload) {
|
|
4420
|
+
const raw = await client.requestJson("/skills/quote-preview", {
|
|
4421
|
+
method: "POST",
|
|
4422
|
+
body: payload,
|
|
4423
|
+
headers: { "content-type": "application/json" }
|
|
4424
|
+
});
|
|
4425
|
+
return client.parseWithSchema(
|
|
4426
|
+
raw,
|
|
4427
|
+
skillQuotePreviewResponseSchema,
|
|
4428
|
+
"skill quote preview response"
|
|
4429
|
+
);
|
|
4430
|
+
}
|
|
4471
4431
|
async function publishSkill(client, payload) {
|
|
4472
4432
|
const raw = await client.requestJson("/skills/publish", {
|
|
4473
4433
|
method: "POST",
|
|
@@ -4632,6 +4592,76 @@ async function getSkillBadge(client, params) {
|
|
|
4632
4592
|
"skill badge response"
|
|
4633
4593
|
);
|
|
4634
4594
|
}
|
|
4595
|
+
async function getSkillStatus(client, params) {
|
|
4596
|
+
const normalizedName = params.name.trim();
|
|
4597
|
+
if (!normalizedName) {
|
|
4598
|
+
throw new Error("name is required");
|
|
4599
|
+
}
|
|
4600
|
+
const query = new URLSearchParams();
|
|
4601
|
+
query.set("name", normalizedName);
|
|
4602
|
+
if (params.version?.trim()) {
|
|
4603
|
+
query.set("version", params.version.trim());
|
|
4604
|
+
}
|
|
4605
|
+
const raw = await client.requestJson(
|
|
4606
|
+
`/skills/status?${query.toString()}`,
|
|
4607
|
+
{ method: "GET" }
|
|
4608
|
+
);
|
|
4609
|
+
return client.parseWithSchema(
|
|
4610
|
+
raw,
|
|
4611
|
+
skillStatusResponseSchema,
|
|
4612
|
+
"skill status response"
|
|
4613
|
+
);
|
|
4614
|
+
}
|
|
4615
|
+
async function getSkillStatusByRepo(client, params) {
|
|
4616
|
+
const repo = params.repo.trim();
|
|
4617
|
+
const skillDir = params.skillDir.trim();
|
|
4618
|
+
if (!repo) {
|
|
4619
|
+
throw new Error("repo is required");
|
|
4620
|
+
}
|
|
4621
|
+
if (!skillDir) {
|
|
4622
|
+
throw new Error("skillDir is required");
|
|
4623
|
+
}
|
|
4624
|
+
const query = new URLSearchParams();
|
|
4625
|
+
query.set("repo", repo);
|
|
4626
|
+
query.set("skillDir", skillDir);
|
|
4627
|
+
if (params.ref?.trim()) {
|
|
4628
|
+
query.set("ref", params.ref.trim());
|
|
4629
|
+
}
|
|
4630
|
+
const raw = await client.requestJson(
|
|
4631
|
+
`/skills/status/by-repo?${query.toString()}`,
|
|
4632
|
+
{ method: "GET" }
|
|
4633
|
+
);
|
|
4634
|
+
return client.parseWithSchema(
|
|
4635
|
+
raw,
|
|
4636
|
+
skillStatusResponseSchema,
|
|
4637
|
+
"skill status response"
|
|
4638
|
+
);
|
|
4639
|
+
}
|
|
4640
|
+
async function getSkillConversionSignalsByRepo(client, params) {
|
|
4641
|
+
const repo = params.repo.trim();
|
|
4642
|
+
const skillDir = params.skillDir.trim();
|
|
4643
|
+
if (!repo) {
|
|
4644
|
+
throw new Error("repo is required");
|
|
4645
|
+
}
|
|
4646
|
+
if (!skillDir) {
|
|
4647
|
+
throw new Error("skillDir is required");
|
|
4648
|
+
}
|
|
4649
|
+
const query = new URLSearchParams();
|
|
4650
|
+
query.set("repo", repo);
|
|
4651
|
+
query.set("skillDir", skillDir);
|
|
4652
|
+
if (params.ref?.trim()) {
|
|
4653
|
+
query.set("ref", params.ref.trim());
|
|
4654
|
+
}
|
|
4655
|
+
const raw = await client.requestJson(
|
|
4656
|
+
`/skills/conversion-signals/by-repo?${query.toString()}`,
|
|
4657
|
+
{ method: "GET" }
|
|
4658
|
+
);
|
|
4659
|
+
return client.parseWithSchema(
|
|
4660
|
+
raw,
|
|
4661
|
+
skillConversionSignalsResponseSchema,
|
|
4662
|
+
"skill conversion signals response"
|
|
4663
|
+
);
|
|
4664
|
+
}
|
|
4635
4665
|
async function uploadSkillPreviewFromGithubOidc(client, payload) {
|
|
4636
4666
|
const token = payload.token.trim();
|
|
4637
4667
|
if (!token) {
|
|
@@ -4675,9 +4705,22 @@ async function getSkillPreview(client, params) {
|
|
|
4675
4705
|
);
|
|
4676
4706
|
}
|
|
4677
4707
|
async function getSkillPreviewByRepo(client, params) {
|
|
4678
|
-
const
|
|
4708
|
+
const repo = params.repo.trim();
|
|
4709
|
+
const skillDir = params.skillDir.trim();
|
|
4710
|
+
if (!repo) {
|
|
4711
|
+
throw new Error("repo is required");
|
|
4712
|
+
}
|
|
4713
|
+
if (!skillDir) {
|
|
4714
|
+
throw new Error("skillDir is required");
|
|
4715
|
+
}
|
|
4716
|
+
const query = new URLSearchParams();
|
|
4717
|
+
query.set("repo", repo);
|
|
4718
|
+
query.set("skillDir", skillDir);
|
|
4719
|
+
if (params.ref?.trim()) {
|
|
4720
|
+
query.set("ref", params.ref.trim());
|
|
4721
|
+
}
|
|
4679
4722
|
const raw = await client.requestJson(
|
|
4680
|
-
`/skills/preview/by-repo?${query}`,
|
|
4723
|
+
`/skills/preview/by-repo?${query.toString()}`,
|
|
4681
4724
|
{ method: "GET" }
|
|
4682
4725
|
);
|
|
4683
4726
|
return client.parseWithSchema(
|
|
@@ -5254,15 +5297,9 @@ var RegistryBrokerClient = class _RegistryBrokerClient {
|
|
|
5254
5297
|
async skillsConfig() {
|
|
5255
5298
|
return skillsConfig(this);
|
|
5256
5299
|
}
|
|
5257
|
-
async getSkillStatus(params) {
|
|
5258
|
-
return getSkillStatus(this, params);
|
|
5259
|
-
}
|
|
5260
5300
|
async listSkills(options) {
|
|
5261
5301
|
return listSkills(this, options);
|
|
5262
5302
|
}
|
|
5263
|
-
async getSkillSecurityBreakdown(params) {
|
|
5264
|
-
return getSkillSecurityBreakdown(this, params);
|
|
5265
|
-
}
|
|
5266
5303
|
async getSkillsCatalog(options) {
|
|
5267
5304
|
return getSkillsCatalog(this, options);
|
|
5268
5305
|
}
|
|
@@ -5278,6 +5315,9 @@ var RegistryBrokerClient = class _RegistryBrokerClient {
|
|
|
5278
5315
|
async quoteSkillPublish(payload) {
|
|
5279
5316
|
return quoteSkillPublish(this, payload);
|
|
5280
5317
|
}
|
|
5318
|
+
async quoteSkillPublishPreview(payload) {
|
|
5319
|
+
return quoteSkillPublishPreview(this, payload);
|
|
5320
|
+
}
|
|
5281
5321
|
async publishSkill(payload) {
|
|
5282
5322
|
return publishSkill(this, payload);
|
|
5283
5323
|
}
|
|
@@ -5302,9 +5342,18 @@ var RegistryBrokerClient = class _RegistryBrokerClient {
|
|
|
5302
5342
|
async getSkillBadge(params) {
|
|
5303
5343
|
return getSkillBadge(this, params);
|
|
5304
5344
|
}
|
|
5345
|
+
async getSkillStatus(params) {
|
|
5346
|
+
return getSkillStatus(this, params);
|
|
5347
|
+
}
|
|
5348
|
+
async getSkillSecurityBreakdown(params) {
|
|
5349
|
+
return getSkillSecurityBreakdown(this, params);
|
|
5350
|
+
}
|
|
5305
5351
|
async getSkillStatusByRepo(params) {
|
|
5306
5352
|
return getSkillStatusByRepo(this, params);
|
|
5307
5353
|
}
|
|
5354
|
+
async getSkillConversionSignalsByRepo(params) {
|
|
5355
|
+
return getSkillConversionSignalsByRepo(this, params);
|
|
5356
|
+
}
|
|
5308
5357
|
async uploadSkillPreviewFromGithubOidc(payload) {
|
|
5309
5358
|
return uploadSkillPreviewFromGithubOidc(this, payload);
|
|
5310
5359
|
}
|
|
@@ -5704,9 +5753,20 @@ var RegistryBrokerClient = class _RegistryBrokerClient {
|
|
|
5704
5753
|
}
|
|
5705
5754
|
return nodeCrypto;
|
|
5706
5755
|
}
|
|
5756
|
+
getSecureRandomBytes(size, feature) {
|
|
5757
|
+
const webCrypto = globalThis.crypto;
|
|
5758
|
+
if (webCrypto && typeof webCrypto.getRandomValues === "function") {
|
|
5759
|
+
const bytes = new Uint8Array(size);
|
|
5760
|
+
webCrypto.getRandomValues(bytes);
|
|
5761
|
+
return bytes;
|
|
5762
|
+
}
|
|
5763
|
+
return this.getNodeCrypto(feature).randomBytes(size);
|
|
5764
|
+
}
|
|
5707
5765
|
createEphemeralKeyPair() {
|
|
5708
|
-
const
|
|
5709
|
-
|
|
5766
|
+
const privateKeyBytes = this.getSecureRandomBytes(
|
|
5767
|
+
32,
|
|
5768
|
+
"generateEphemeralKeyPair"
|
|
5769
|
+
);
|
|
5710
5770
|
const publicKey = secp256k12.getPublicKey(privateKeyBytes, true);
|
|
5711
5771
|
return {
|
|
5712
5772
|
privateKey: Buffer5.from(privateKeyBytes).toString("hex"),
|