@hol-org/rb-client 0.1.163 → 0.1.164

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 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,94 @@ 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 skillCatalogChannelSchema = import_zod2.z.enum([
1223
+ "stable",
1224
+ "prerelease",
1225
+ "all"
1226
+ ]);
1227
+ var skillCatalogSortBySchema = import_zod2.z.enum([
1228
+ "trending",
1229
+ "upvotes",
1230
+ "updated",
1231
+ "name"
1232
+ ]);
1233
+ var skillCatalogVersionSummarySchema = import_zod2.z.object({
1234
+ version: import_zod2.z.string(),
1235
+ publishedAt: import_zod2.z.string(),
1236
+ verified: import_zod2.z.boolean().optional()
1237
+ }).passthrough();
1238
+ var skillCatalogItemSchema = import_zod2.z.object({
1239
+ name: import_zod2.z.string(),
1240
+ description: import_zod2.z.string().optional(),
1241
+ iconHcs1: import_zod2.z.string().optional(),
1242
+ category: import_zod2.z.string().optional(),
1243
+ tags: import_zod2.z.array(import_zod2.z.string()).optional(),
1244
+ latest: skillCatalogVersionSummarySchema,
1245
+ latestStable: skillCatalogVersionSummarySchema.optional(),
1246
+ recommended: skillCatalogVersionSummarySchema,
1247
+ upvotes: import_zod2.z.number().int(),
1248
+ verified: import_zod2.z.boolean(),
1249
+ repoStamped: import_zod2.z.boolean(),
1250
+ trustScore: import_zod2.z.number().optional(),
1251
+ safetyScore: import_zod2.z.number().optional()
1252
+ }).passthrough();
1253
+ var skillCatalogResponseSchema = import_zod2.z.object({
1254
+ items: import_zod2.z.array(skillCatalogItemSchema),
1255
+ nextCursor: import_zod2.z.string().nullable()
1256
+ }).passthrough();
1257
+ var skillRecommendedVersionResponseSchema = import_zod2.z.object({
1258
+ name: import_zod2.z.string(),
1259
+ version: import_zod2.z.string(),
1260
+ updatedAt: import_zod2.z.string(),
1261
+ setBy: import_zod2.z.string()
1262
+ }).passthrough();
1263
+ var skillDeprecationRecordSchema = import_zod2.z.object({
1264
+ name: import_zod2.z.string(),
1265
+ version: import_zod2.z.string().optional(),
1266
+ reason: import_zod2.z.string(),
1267
+ replacementRef: import_zod2.z.string().optional(),
1268
+ deprecatedAt: import_zod2.z.string(),
1269
+ deprecatedBy: import_zod2.z.string()
1270
+ }).passthrough();
1271
+ var skillDeprecationsResponseSchema = import_zod2.z.object({
1272
+ name: import_zod2.z.string(),
1273
+ items: import_zod2.z.array(skillDeprecationRecordSchema)
1274
+ }).passthrough();
1275
+ var skillBadgeMetricSchema = import_zod2.z.enum([
1276
+ "version",
1277
+ "status",
1278
+ "verification",
1279
+ "repo_commit",
1280
+ "manifest",
1281
+ "domain",
1282
+ "trust",
1283
+ "safety",
1284
+ "upvotes",
1285
+ "updated"
1286
+ ]);
1287
+ var skillBadgeStyleSchema = import_zod2.z.enum([
1288
+ "flat",
1289
+ "flat-square",
1290
+ "for-the-badge",
1291
+ "plastic",
1292
+ "social"
1293
+ ]);
1294
+ var skillBadgeResponseSchema = import_zod2.z.object({
1295
+ schemaVersion: import_zod2.z.number().int(),
1296
+ label: import_zod2.z.string(),
1297
+ message: import_zod2.z.string(),
1298
+ color: import_zod2.z.string(),
1299
+ style: skillBadgeStyleSchema.optional(),
1300
+ isError: import_zod2.z.boolean().optional(),
1301
+ cacheSeconds: import_zod2.z.number().int().optional()
1302
+ }).passthrough();
1303
+ var skillRegistryTagsResponseSchema = import_zod2.z.object({
1304
+ tags: import_zod2.z.array(import_zod2.z.string())
1305
+ }).passthrough();
1306
+ var skillRegistryCategoriesResponseSchema = import_zod2.z.object({
1307
+ categories: import_zod2.z.array(import_zod2.z.string())
1308
+ }).passthrough();
1309
+ var skillResolverManifestResponseSchema = import_zod2.z.record(jsonValueSchema);
1202
1310
  var skillRegistryQuoteFileBreakdownSchema = import_zod2.z.object({
1203
1311
  name: import_zod2.z.string(),
1204
1312
  mimeType: import_zod2.z.string(),
@@ -1307,6 +1415,81 @@ var skillVerificationStatusSchema = import_zod2.z.enum([
1307
1415
  "approved",
1308
1416
  "rejected"
1309
1417
  ]);
1418
+ var skillVerificationStatusLabelSchema = import_zod2.z.enum([
1419
+ "not_requested",
1420
+ "pending",
1421
+ "approved",
1422
+ "rejected"
1423
+ ]);
1424
+ var skillVerificationSignalFailureReasonSchema = import_zod2.z.enum([
1425
+ "missing_owner",
1426
+ "missing_repo_or_commit",
1427
+ "unsupported_repo",
1428
+ "repo_fetch_failed",
1429
+ "manifest_pointer_missing",
1430
+ "manifest_fetch_failed",
1431
+ "manifest_parse_failed",
1432
+ "missing_file_hashes",
1433
+ "missing_domain",
1434
+ "challenge_invalid",
1435
+ "challenge_expired",
1436
+ "dns_lookup_failed",
1437
+ "dns_record_missing",
1438
+ "mismatch"
1439
+ ]);
1440
+ var skillVerificationPublisherBoundSignalSchema = import_zod2.z.object({
1441
+ ok: import_zod2.z.boolean(),
1442
+ ownerAccountId: import_zod2.z.string().nullable(),
1443
+ ownerUserId: import_zod2.z.string().nullable(),
1444
+ checkedAt: import_zod2.z.string(),
1445
+ reason: skillVerificationSignalFailureReasonSchema.optional()
1446
+ }).passthrough();
1447
+ var skillVerificationRepoCommitIntegrityMismatchSchema = import_zod2.z.object({
1448
+ path: import_zod2.z.string(),
1449
+ expectedSha256: import_zod2.z.string(),
1450
+ actualSha256: import_zod2.z.string().optional(),
1451
+ error: import_zod2.z.string().optional()
1452
+ }).passthrough();
1453
+ var skillVerificationRepoCommitIntegritySignalSchema = import_zod2.z.object({
1454
+ ok: import_zod2.z.boolean(),
1455
+ repo: import_zod2.z.string().nullable(),
1456
+ commit: import_zod2.z.string().nullable(),
1457
+ checkedAt: import_zod2.z.string(),
1458
+ filesChecked: import_zod2.z.number().int().min(0),
1459
+ mismatches: import_zod2.z.array(skillVerificationRepoCommitIntegrityMismatchSchema),
1460
+ partial: import_zod2.z.boolean().optional(),
1461
+ reason: skillVerificationSignalFailureReasonSchema.optional()
1462
+ }).passthrough();
1463
+ var skillVerificationManifestIntegrityShaMismatchSchema = import_zod2.z.object({
1464
+ path: import_zod2.z.string(),
1465
+ expectedSha256: import_zod2.z.string(),
1466
+ actualSha256: import_zod2.z.string().optional()
1467
+ }).passthrough();
1468
+ var skillVerificationManifestIntegritySignalSchema = import_zod2.z.object({
1469
+ ok: import_zod2.z.boolean(),
1470
+ manifestHrl: import_zod2.z.string().nullable(),
1471
+ manifestSha256: import_zod2.z.string().nullable(),
1472
+ checkedAt: import_zod2.z.string(),
1473
+ missingFiles: import_zod2.z.array(import_zod2.z.string()),
1474
+ shaMismatches: import_zod2.z.array(skillVerificationManifestIntegrityShaMismatchSchema),
1475
+ extraFiles: import_zod2.z.array(import_zod2.z.string()).optional(),
1476
+ reason: skillVerificationSignalFailureReasonSchema.optional()
1477
+ }).passthrough();
1478
+ var skillVerificationDomainProofSignalSchema = import_zod2.z.object({
1479
+ ok: import_zod2.z.boolean(),
1480
+ domain: import_zod2.z.string().optional(),
1481
+ method: import_zod2.z.literal("dns_txt").optional(),
1482
+ checkedAt: import_zod2.z.string().optional(),
1483
+ details: import_zod2.z.string().optional(),
1484
+ txtRecordName: import_zod2.z.string().optional(),
1485
+ reason: skillVerificationSignalFailureReasonSchema.optional()
1486
+ }).passthrough();
1487
+ var skillVerificationSignalsSchema = import_zod2.z.object({
1488
+ publisherBound: skillVerificationPublisherBoundSignalSchema,
1489
+ repoCommitIntegrity: skillVerificationRepoCommitIntegritySignalSchema,
1490
+ manifestIntegrity: skillVerificationManifestIntegritySignalSchema,
1491
+ domainProof: skillVerificationDomainProofSignalSchema.optional()
1492
+ }).passthrough();
1310
1493
  var skillVerificationRequestSchema = import_zod2.z.object({
1311
1494
  id: import_zod2.z.string(),
1312
1495
  network: import_zod2.z.union([import_zod2.z.literal("mainnet"), import_zod2.z.literal("testnet")]),
@@ -1317,6 +1500,8 @@ var skillVerificationRequestSchema = import_zod2.z.object({
1317
1500
  usdCents: import_zod2.z.number(),
1318
1501
  creditsCharged: import_zod2.z.number(),
1319
1502
  creditAccountId: import_zod2.z.string().optional(),
1503
+ signals: skillVerificationSignalsSchema.optional(),
1504
+ reviewNotes: import_zod2.z.string().optional(),
1320
1505
  requestedBy: import_zod2.z.object({
1321
1506
  userId: import_zod2.z.string().optional(),
1322
1507
  accountId: import_zod2.z.string().optional(),
@@ -1327,6 +1512,11 @@ var skillVerificationRequestSchema = import_zod2.z.object({
1327
1512
  email: import_zod2.z.string().optional()
1328
1513
  }).optional(),
1329
1514
  approvedAt: import_zod2.z.string().optional(),
1515
+ rejectedBy: import_zod2.z.object({
1516
+ userId: import_zod2.z.string().optional(),
1517
+ email: import_zod2.z.string().optional()
1518
+ }).optional(),
1519
+ rejectedAt: import_zod2.z.string().optional(),
1330
1520
  createdAt: import_zod2.z.string(),
1331
1521
  updatedAt: import_zod2.z.string()
1332
1522
  }).passthrough();
@@ -1335,10 +1525,40 @@ var skillVerificationRequestCreateResponseSchema = import_zod2.z.object({
1335
1525
  }).passthrough();
1336
1526
  var skillVerificationStatusResponseSchema = import_zod2.z.object({
1337
1527
  name: import_zod2.z.string(),
1528
+ version: import_zod2.z.string(),
1529
+ status: skillVerificationStatusLabelSchema,
1338
1530
  verified: import_zod2.z.boolean(),
1339
1531
  previouslyVerified: import_zod2.z.boolean(),
1532
+ signals: skillVerificationSignalsSchema.nullable().optional(),
1533
+ reviewNotes: import_zod2.z.string().nullable().optional(),
1340
1534
  pendingRequest: skillVerificationRequestSchema.nullable().optional()
1341
1535
  }).passthrough();
1536
+ var skillVerificationDomainProofChallengeRequestSchema = import_zod2.z.object({
1537
+ name: import_zod2.z.string().min(1),
1538
+ version: import_zod2.z.string().min(1).optional(),
1539
+ domain: import_zod2.z.string().min(1).optional()
1540
+ }).passthrough();
1541
+ var skillVerificationDomainProofChallengeResponseSchema = import_zod2.z.object({
1542
+ challengeId: import_zod2.z.string().min(1),
1543
+ name: import_zod2.z.string().min(1),
1544
+ version: import_zod2.z.string().min(1),
1545
+ domain: import_zod2.z.string().min(1),
1546
+ method: import_zod2.z.literal("dns_txt"),
1547
+ txtRecordName: import_zod2.z.string().min(1),
1548
+ txtRecordValue: import_zod2.z.string().min(1),
1549
+ expiresAt: import_zod2.z.string().min(1)
1550
+ }).passthrough();
1551
+ var skillVerificationDomainProofVerifyRequestSchema = import_zod2.z.object({
1552
+ name: import_zod2.z.string().min(1),
1553
+ version: import_zod2.z.string().min(1).optional(),
1554
+ domain: import_zod2.z.string().min(1).optional(),
1555
+ challengeToken: import_zod2.z.string().min(1)
1556
+ }).passthrough();
1557
+ var skillVerificationDomainProofVerifyResponseSchema = import_zod2.z.object({
1558
+ name: import_zod2.z.string().min(1),
1559
+ version: import_zod2.z.string().min(1),
1560
+ signal: skillVerificationDomainProofSignalSchema
1561
+ }).passthrough();
1342
1562
 
1343
1563
  // ../../src/utils/is-browser.ts
1344
1564
  var isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined";
@@ -3560,6 +3780,40 @@ async function verifySenderOwnership(client, uaid) {
3560
3780
  "verification sender response"
3561
3781
  );
3562
3782
  }
3783
+ async function verifyUaidDnsTxt(client, payload) {
3784
+ const raw = await client.requestJson("/verification/dns/verify", {
3785
+ method: "POST",
3786
+ headers: { "content-type": "application/json" },
3787
+ body: {
3788
+ uaid: payload.uaid,
3789
+ ...payload.persist !== void 0 ? { persist: payload.persist } : {}
3790
+ }
3791
+ });
3792
+ return client.parseWithSchema(
3793
+ raw,
3794
+ verificationDnsStatusResponseSchema,
3795
+ "verification dns verify response"
3796
+ );
3797
+ }
3798
+ async function getVerificationDnsStatus(client, uaid, query) {
3799
+ const params = new URLSearchParams();
3800
+ if (query?.refresh !== void 0) {
3801
+ params.set("refresh", String(query.refresh));
3802
+ }
3803
+ if (query?.persist !== void 0) {
3804
+ params.set("persist", String(query.persist));
3805
+ }
3806
+ const queryString = params.toString();
3807
+ const path2 = `/verification/dns/status/${encodeURIComponent(uaid)}${queryString ? `?${queryString}` : ""}`;
3808
+ const raw = await client.requestJson(path2, {
3809
+ method: "GET"
3810
+ });
3811
+ return client.parseWithSchema(
3812
+ raw,
3813
+ verificationDnsStatusResponseSchema,
3814
+ "verification dns status response"
3815
+ );
3816
+ }
3563
3817
  async function getRegisterStatus(client, uaid) {
3564
3818
  const raw = await client.requestJson(
3565
3819
  `/register/status/${encodeURIComponent(uaid)}`,
@@ -3624,6 +3878,24 @@ async function listSkills(client, params = {}) {
3624
3878
  if (params.accountId) {
3625
3879
  query.set("accountId", params.accountId);
3626
3880
  }
3881
+ if (params.q) {
3882
+ query.set("q", params.q);
3883
+ }
3884
+ if (params.tag) {
3885
+ query.set("tag", params.tag);
3886
+ }
3887
+ if (params.category) {
3888
+ query.set("category", params.category);
3889
+ }
3890
+ if (typeof params.featured === "boolean") {
3891
+ query.set("featured", params.featured ? "true" : "false");
3892
+ }
3893
+ if (typeof params.verified === "boolean") {
3894
+ query.set("verified", params.verified ? "true" : "false");
3895
+ }
3896
+ if (params.view) {
3897
+ query.set("view", params.view);
3898
+ }
3627
3899
  const suffix = query.size > 0 ? `?${query.toString()}` : "";
3628
3900
  const raw = await client.requestJson(`/skills${suffix}`, {
3629
3901
  method: "GET"
@@ -3634,6 +3906,47 @@ async function listSkills(client, params = {}) {
3634
3906
  "skill registry list response"
3635
3907
  );
3636
3908
  }
3909
+ async function getSkillsCatalog(client, params = {}) {
3910
+ const query = new URLSearchParams();
3911
+ if (params.q) {
3912
+ query.set("q", params.q);
3913
+ }
3914
+ if (params.category) {
3915
+ query.set("category", params.category);
3916
+ }
3917
+ params.tags?.forEach((tag) => {
3918
+ if (tag.trim()) {
3919
+ query.append("tag", tag.trim());
3920
+ }
3921
+ });
3922
+ if (typeof params.featured === "boolean") {
3923
+ query.set("featured", params.featured ? "true" : "false");
3924
+ }
3925
+ if (typeof params.verified === "boolean") {
3926
+ query.set("verified", params.verified ? "true" : "false");
3927
+ }
3928
+ if (params.channel) {
3929
+ query.set("channel", params.channel);
3930
+ }
3931
+ if (params.sortBy) {
3932
+ query.set("sortBy", params.sortBy);
3933
+ }
3934
+ if (typeof params.limit === "number" && Number.isFinite(params.limit)) {
3935
+ query.set("limit", String(Math.trunc(params.limit)));
3936
+ }
3937
+ if (params.cursor) {
3938
+ query.set("cursor", params.cursor);
3939
+ }
3940
+ const suffix = query.size > 0 ? `?${query.toString()}` : "";
3941
+ const raw = await client.requestJson(`/skills/catalog${suffix}`, {
3942
+ method: "GET"
3943
+ });
3944
+ return client.parseWithSchema(
3945
+ raw,
3946
+ skillCatalogResponseSchema,
3947
+ "skill catalog response"
3948
+ );
3949
+ }
3637
3950
  async function listSkillVersions(client, params) {
3638
3951
  const normalizedName = params.name.trim();
3639
3952
  if (!normalizedName) {
@@ -3753,6 +4066,169 @@ async function getSkillOwnership(client, params) {
3753
4066
  "skill registry ownership response"
3754
4067
  );
3755
4068
  }
4069
+ async function getRecommendedSkillVersion(client, params) {
4070
+ const normalizedName = params.name.trim();
4071
+ if (!normalizedName) {
4072
+ throw new Error("name is required");
4073
+ }
4074
+ const query = new URLSearchParams();
4075
+ query.set("name", normalizedName);
4076
+ const raw = await client.requestJson(
4077
+ `/skills/recommended?${query.toString()}`,
4078
+ { method: "GET" }
4079
+ );
4080
+ return client.parseWithSchema(
4081
+ raw,
4082
+ skillRecommendedVersionResponseSchema,
4083
+ "skill recommended version response"
4084
+ );
4085
+ }
4086
+ async function setRecommendedSkillVersion(client, payload) {
4087
+ const normalizedName = payload.name.trim();
4088
+ const normalizedVersion = payload.version.trim();
4089
+ if (!normalizedName) {
4090
+ throw new Error("name is required");
4091
+ }
4092
+ if (!normalizedVersion) {
4093
+ throw new Error("version is required");
4094
+ }
4095
+ const raw = await client.requestJson("/skills/recommended", {
4096
+ method: "POST",
4097
+ body: {
4098
+ name: normalizedName,
4099
+ version: normalizedVersion
4100
+ },
4101
+ headers: { "content-type": "application/json" }
4102
+ });
4103
+ return client.parseWithSchema(
4104
+ raw,
4105
+ skillRecommendedVersionResponseSchema,
4106
+ "skill recommended version response"
4107
+ );
4108
+ }
4109
+ async function getSkillDeprecations(client, params) {
4110
+ const normalizedName = params.name.trim();
4111
+ if (!normalizedName) {
4112
+ throw new Error("name is required");
4113
+ }
4114
+ const query = new URLSearchParams();
4115
+ query.set("name", normalizedName);
4116
+ const raw = await client.requestJson(
4117
+ `/skills/deprecations?${query.toString()}`,
4118
+ { method: "GET" }
4119
+ );
4120
+ return client.parseWithSchema(
4121
+ raw,
4122
+ skillDeprecationsResponseSchema,
4123
+ "skill deprecations response"
4124
+ );
4125
+ }
4126
+ async function setSkillDeprecation(client, payload) {
4127
+ const normalizedName = payload.name.trim();
4128
+ if (!normalizedName) {
4129
+ throw new Error("name is required");
4130
+ }
4131
+ const version = payload.version?.trim();
4132
+ const reason = payload.reason.trim();
4133
+ if (!reason) {
4134
+ throw new Error("reason is required");
4135
+ }
4136
+ const replacementRef = payload.replacementRef?.trim();
4137
+ const raw = await client.requestJson("/skills/deprecate", {
4138
+ method: "POST",
4139
+ body: {
4140
+ name: normalizedName,
4141
+ version,
4142
+ reason,
4143
+ replacementRef
4144
+ },
4145
+ headers: { "content-type": "application/json" }
4146
+ });
4147
+ return client.parseWithSchema(
4148
+ raw,
4149
+ skillDeprecationRecordSchema,
4150
+ "skill deprecation response"
4151
+ );
4152
+ }
4153
+ async function getSkillBadge(client, params) {
4154
+ const normalizedName = params.name.trim();
4155
+ if (!normalizedName) {
4156
+ throw new Error("name is required");
4157
+ }
4158
+ const query = new URLSearchParams();
4159
+ query.set("name", normalizedName);
4160
+ if (params.metric) {
4161
+ query.set("metric", params.metric);
4162
+ }
4163
+ if (params.label?.trim()) {
4164
+ query.set("label", params.label.trim());
4165
+ }
4166
+ if (params.style) {
4167
+ query.set("style", params.style);
4168
+ }
4169
+ const raw = await client.requestJson(
4170
+ `/skills/badge?${query.toString()}`,
4171
+ { method: "GET" }
4172
+ );
4173
+ return client.parseWithSchema(
4174
+ raw,
4175
+ skillBadgeResponseSchema,
4176
+ "skill badge response"
4177
+ );
4178
+ }
4179
+ async function listSkillTags(client) {
4180
+ const raw = await client.requestJson("/skills/tags", {
4181
+ method: "GET"
4182
+ });
4183
+ return client.parseWithSchema(
4184
+ raw,
4185
+ skillRegistryTagsResponseSchema,
4186
+ "skill tags response"
4187
+ );
4188
+ }
4189
+ async function listSkillCategories(client) {
4190
+ const raw = await client.requestJson("/skills/categories", {
4191
+ method: "GET"
4192
+ });
4193
+ return client.parseWithSchema(
4194
+ raw,
4195
+ skillRegistryCategoriesResponseSchema,
4196
+ "skill categories response"
4197
+ );
4198
+ }
4199
+ async function resolveSkillMarkdown(client, skillRef) {
4200
+ const normalizedSkillRef = skillRef.trim();
4201
+ if (!normalizedSkillRef) {
4202
+ throw new Error("skillRef is required");
4203
+ }
4204
+ const response = await client.request(
4205
+ `/skills/${encodeURIComponent(normalizedSkillRef)}/SKILL.md`,
4206
+ {
4207
+ method: "GET",
4208
+ headers: {
4209
+ accept: "text/markdown, text/plain;q=0.9, */*;q=0.8"
4210
+ }
4211
+ }
4212
+ );
4213
+ return response.text();
4214
+ }
4215
+ async function resolveSkillManifest(client, skillRef) {
4216
+ const normalizedSkillRef = skillRef.trim();
4217
+ if (!normalizedSkillRef) {
4218
+ throw new Error("skillRef is required");
4219
+ }
4220
+ const raw = await client.requestJson(
4221
+ `/skills/${encodeURIComponent(normalizedSkillRef)}/manifest`,
4222
+ {
4223
+ method: "GET"
4224
+ }
4225
+ );
4226
+ return client.parseWithSchema(
4227
+ raw,
4228
+ skillResolverManifestResponseSchema,
4229
+ "skill resolver manifest response"
4230
+ );
4231
+ }
3756
4232
  async function getSkillVoteStatus(client, params) {
3757
4233
  const normalizedName = params.name.trim();
3758
4234
  if (!normalizedName) {
@@ -3795,7 +4271,11 @@ async function requestSkillVerification(client, payload) {
3795
4271
  "/skills/verification/request",
3796
4272
  {
3797
4273
  method: "POST",
3798
- body: { name: normalizedName, tier: payload.tier },
4274
+ body: {
4275
+ name: normalizedName,
4276
+ version: payload.version,
4277
+ tier: payload.tier
4278
+ },
3799
4279
  headers: { "content-type": "application/json" }
3800
4280
  }
3801
4281
  );
@@ -3812,6 +4292,9 @@ async function getSkillVerificationStatus(client, params) {
3812
4292
  }
3813
4293
  const query = new URLSearchParams();
3814
4294
  query.set("name", normalizedName);
4295
+ if (params.version) {
4296
+ query.set("version", params.version);
4297
+ }
3815
4298
  const raw = await client.requestJson(
3816
4299
  `/skills/verification/status?${query.toString()}`,
3817
4300
  { method: "GET" }
@@ -3822,6 +4305,57 @@ async function getSkillVerificationStatus(client, params) {
3822
4305
  "skill verification status response"
3823
4306
  );
3824
4307
  }
4308
+ async function createSkillDomainProofChallenge(client, payload) {
4309
+ const normalizedName = payload.name.trim();
4310
+ if (!normalizedName) {
4311
+ throw new Error("name is required");
4312
+ }
4313
+ const raw = await client.requestJson(
4314
+ "/skills/verification/domain/challenge",
4315
+ {
4316
+ method: "POST",
4317
+ body: {
4318
+ name: normalizedName,
4319
+ version: payload.version,
4320
+ domain: payload.domain
4321
+ },
4322
+ headers: { "content-type": "application/json" }
4323
+ }
4324
+ );
4325
+ return client.parseWithSchema(
4326
+ raw,
4327
+ skillVerificationDomainProofChallengeResponseSchema,
4328
+ "skill domain proof challenge response"
4329
+ );
4330
+ }
4331
+ async function verifySkillDomainProof(client, payload) {
4332
+ const normalizedName = payload.name.trim();
4333
+ const challengeToken = payload.challengeToken.trim();
4334
+ if (!normalizedName) {
4335
+ throw new Error("name is required");
4336
+ }
4337
+ if (!challengeToken) {
4338
+ throw new Error("challengeToken is required");
4339
+ }
4340
+ const raw = await client.requestJson(
4341
+ "/skills/verification/domain/verify",
4342
+ {
4343
+ method: "POST",
4344
+ body: {
4345
+ name: normalizedName,
4346
+ version: payload.version,
4347
+ domain: payload.domain,
4348
+ challengeToken
4349
+ },
4350
+ headers: { "content-type": "application/json" }
4351
+ }
4352
+ );
4353
+ return client.parseWithSchema(
4354
+ raw,
4355
+ skillVerificationDomainProofVerifyResponseSchema,
4356
+ "skill domain proof verify response"
4357
+ );
4358
+ }
3825
4359
 
3826
4360
  // ../../src/services/registry-broker/client/base-client.ts
3827
4361
  var import_buffer4 = require("buffer");
@@ -4165,6 +4699,9 @@ var RegistryBrokerClient = class _RegistryBrokerClient {
4165
4699
  async listSkills(options) {
4166
4700
  return listSkills(this, options);
4167
4701
  }
4702
+ async getSkillsCatalog(options) {
4703
+ return getSkillsCatalog(this, options);
4704
+ }
4168
4705
  async listSkillVersions(params) {
4169
4706
  return listSkillVersions(this, params);
4170
4707
  }
@@ -4186,6 +4723,33 @@ var RegistryBrokerClient = class _RegistryBrokerClient {
4186
4723
  async getSkillOwnership(params) {
4187
4724
  return getSkillOwnership(this, params);
4188
4725
  }
4726
+ async getRecommendedSkillVersion(params) {
4727
+ return getRecommendedSkillVersion(this, params);
4728
+ }
4729
+ async setRecommendedSkillVersion(payload) {
4730
+ return setRecommendedSkillVersion(this, payload);
4731
+ }
4732
+ async getSkillDeprecations(params) {
4733
+ return getSkillDeprecations(this, params);
4734
+ }
4735
+ async setSkillDeprecation(payload) {
4736
+ return setSkillDeprecation(this, payload);
4737
+ }
4738
+ async getSkillBadge(params) {
4739
+ return getSkillBadge(this, params);
4740
+ }
4741
+ async listSkillTags() {
4742
+ return listSkillTags(this);
4743
+ }
4744
+ async listSkillCategories() {
4745
+ return listSkillCategories(this);
4746
+ }
4747
+ async resolveSkillMarkdown(skillRef) {
4748
+ return resolveSkillMarkdown(this, skillRef);
4749
+ }
4750
+ async resolveSkillManifest(skillRef) {
4751
+ return resolveSkillManifest(this, skillRef);
4752
+ }
4189
4753
  async getSkillVoteStatus(params) {
4190
4754
  return getSkillVoteStatus(this, params);
4191
4755
  }
@@ -4198,6 +4762,12 @@ var RegistryBrokerClient = class _RegistryBrokerClient {
4198
4762
  async getSkillVerificationStatus(params) {
4199
4763
  return getSkillVerificationStatus(this, params);
4200
4764
  }
4765
+ async createSkillDomainProofChallenge(payload) {
4766
+ return createSkillDomainProofChallenge(this, payload);
4767
+ }
4768
+ async verifySkillDomainProof(payload) {
4769
+ return verifySkillDomainProof(this, payload);
4770
+ }
4201
4771
  async adaptersDetailed() {
4202
4772
  return adaptersDetailed(this);
4203
4773
  }
@@ -4393,6 +4963,12 @@ var RegistryBrokerClient = class _RegistryBrokerClient {
4393
4963
  async verifySenderOwnership(uaid) {
4394
4964
  return verifySenderOwnership(this, uaid);
4395
4965
  }
4966
+ async verifyUaidDnsTxt(payload) {
4967
+ return verifyUaidDnsTxt(this, payload);
4968
+ }
4969
+ async getVerificationDnsStatus(uaid, query) {
4970
+ return getVerificationDnsStatus(this, uaid, query);
4971
+ }
4396
4972
  async fetchHistorySnapshot(sessionId, options) {
4397
4973
  return fetchHistorySnapshot(
4398
4974
  this.conversationContexts,