@hashgraphonline/standards-sdk 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.
Files changed (109) hide show
  1. package/dist/browser/services/registry-broker/client/base-client.d.ts +7 -4
  2. package/dist/browser/services/registry-broker/client/base-client.d.ts.map +1 -1
  3. package/dist/browser/services/registry-broker/client/skills.d.ts +5 -3
  4. package/dist/browser/services/registry-broker/client/skills.d.ts.map +1 -1
  5. package/dist/browser/services/registry-broker/schemas.d.ts +6871 -24133
  6. package/dist/browser/services/registry-broker/schemas.d.ts.map +1 -1
  7. package/dist/browser/services/registry-broker/types.d.ts +34 -26
  8. package/dist/browser/services/registry-broker/types.d.ts.map +1 -1
  9. package/dist/browser/standards-sdk.browser.js +220 -221
  10. package/dist/browser/standards-sdk.browser.js.map +1 -1
  11. package/dist/browser-root/services/registry-broker/client/base-client.d.ts +7 -4
  12. package/dist/browser-root/services/registry-broker/client/base-client.d.ts.map +1 -1
  13. package/dist/browser-root/services/registry-broker/client/skills.d.ts +5 -3
  14. package/dist/browser-root/services/registry-broker/client/skills.d.ts.map +1 -1
  15. package/dist/browser-root/services/registry-broker/schemas.d.ts +6871 -24133
  16. package/dist/browser-root/services/registry-broker/schemas.d.ts.map +1 -1
  17. package/dist/browser-root/services/registry-broker/types.d.ts +34 -26
  18. package/dist/browser-root/services/registry-broker/types.d.ts.map +1 -1
  19. package/dist/browser-root/standards-sdk.root-browser.js +342 -282
  20. package/dist/browser-root/standards-sdk.root-browser.js.map +1 -1
  21. package/dist/cjs/services/registry-broker/client/base-client.d.ts +7 -4
  22. package/dist/cjs/services/registry-broker/client/base-client.d.ts.map +1 -1
  23. package/dist/cjs/services/registry-broker/client/skills.d.ts +5 -3
  24. package/dist/cjs/services/registry-broker/client/skills.d.ts.map +1 -1
  25. package/dist/cjs/services/registry-broker/schemas.d.ts +6869 -24131
  26. package/dist/cjs/services/registry-broker/schemas.d.ts.map +1 -1
  27. package/dist/cjs/services/registry-broker/types.d.ts +34 -26
  28. package/dist/cjs/services/registry-broker/types.d.ts.map +1 -1
  29. package/dist/cjs/standards-sdk.cjs +1 -1
  30. package/dist/cjs/standards-sdk.cjs.map +1 -1
  31. package/dist/es/services/registry-broker/client/base-client.d.ts +7 -4
  32. package/dist/es/services/registry-broker/client/base-client.d.ts.map +1 -1
  33. package/dist/es/services/registry-broker/client/skills.d.ts +5 -3
  34. package/dist/es/services/registry-broker/client/skills.d.ts.map +1 -1
  35. package/dist/es/services/registry-broker/schemas.d.ts +6869 -24131
  36. package/dist/es/services/registry-broker/schemas.d.ts.map +1 -1
  37. package/dist/es/services/registry-broker/types.d.ts +34 -26
  38. package/dist/es/services/registry-broker/types.d.ts.map +1 -1
  39. package/dist/es/standards-sdk.es116.js +1 -1
  40. package/dist/es/standards-sdk.es121.js +1 -1
  41. package/dist/es/standards-sdk.es127.js +1 -1
  42. package/dist/es/standards-sdk.es128.js +5 -5
  43. package/dist/es/standards-sdk.es138.js +1 -1
  44. package/dist/es/standards-sdk.es139.js +1 -1
  45. package/dist/es/standards-sdk.es140.js +5 -5
  46. package/dist/es/standards-sdk.es142.js +3 -3
  47. package/dist/es/standards-sdk.es143.js +1 -1
  48. package/dist/es/standards-sdk.es145.js +28 -11
  49. package/dist/es/standards-sdk.es145.js.map +1 -1
  50. package/dist/es/standards-sdk.es147.js +1 -1
  51. package/dist/es/standards-sdk.es148.js +1 -1
  52. package/dist/es/standards-sdk.es16.js +1 -1
  53. package/dist/es/standards-sdk.es160.js +12461 -1778
  54. package/dist/es/standards-sdk.es160.js.map +1 -1
  55. package/dist/es/standards-sdk.es161.js +1773 -12461
  56. package/dist/es/standards-sdk.es161.js.map +1 -1
  57. package/dist/es/standards-sdk.es163.js +167 -51
  58. package/dist/es/standards-sdk.es163.js.map +1 -1
  59. package/dist/es/standards-sdk.es164.js +306 -88
  60. package/dist/es/standards-sdk.es164.js.map +1 -1
  61. package/dist/es/standards-sdk.es165.js +336 -71
  62. package/dist/es/standards-sdk.es165.js.map +1 -1
  63. package/dist/es/standards-sdk.es166.js +439 -186
  64. package/dist/es/standards-sdk.es166.js.map +1 -1
  65. package/dist/es/standards-sdk.es167.js +314 -695
  66. package/dist/es/standards-sdk.es167.js.map +1 -1
  67. package/dist/es/standards-sdk.es168.js +66 -63
  68. package/dist/es/standards-sdk.es168.js.map +1 -1
  69. package/dist/es/standards-sdk.es169.js +744 -158
  70. package/dist/es/standards-sdk.es169.js.map +1 -1
  71. package/dist/es/standards-sdk.es170.js +55 -321
  72. package/dist/es/standards-sdk.es170.js.map +1 -1
  73. package/dist/es/standards-sdk.es171.js +88 -330
  74. package/dist/es/standards-sdk.es171.js.map +1 -1
  75. package/dist/es/standards-sdk.es172.js +71 -443
  76. package/dist/es/standards-sdk.es172.js.map +1 -1
  77. package/dist/es/standards-sdk.es173.js +184 -315
  78. package/dist/es/standards-sdk.es173.js.map +1 -1
  79. package/dist/es/standards-sdk.es174.js +63 -66
  80. package/dist/es/standards-sdk.es174.js.map +1 -1
  81. package/dist/es/standards-sdk.es175.js +1 -1
  82. package/dist/es/standards-sdk.es176.js +1 -1
  83. package/dist/es/standards-sdk.es178.js +2 -2
  84. package/dist/es/standards-sdk.es179.js +1 -1
  85. package/dist/es/standards-sdk.es18.js +2 -2
  86. package/dist/es/standards-sdk.es180.js +1 -1
  87. package/dist/es/standards-sdk.es181.js +2 -2
  88. package/dist/es/standards-sdk.es182.js +1 -1
  89. package/dist/es/standards-sdk.es183.js +1 -1
  90. package/dist/es/standards-sdk.es19.js +2 -2
  91. package/dist/es/standards-sdk.es27.js +2 -2
  92. package/dist/es/standards-sdk.es30.js +1 -1
  93. package/dist/es/standards-sdk.es31.js +1 -1
  94. package/dist/es/standards-sdk.es35.js +2 -2
  95. package/dist/es/standards-sdk.es36.js +1 -1
  96. package/dist/es/standards-sdk.es37.js +1 -1
  97. package/dist/es/standards-sdk.es56.js +1 -1
  98. package/dist/es/standards-sdk.es59.js +1 -1
  99. package/dist/es/standards-sdk.es60.js +1 -1
  100. package/dist/es/standards-sdk.es62.js +1 -1
  101. package/dist/es/standards-sdk.es63.js +2 -2
  102. package/dist/es/standards-sdk.es64.js +1 -1
  103. package/dist/es/standards-sdk.es65.js +1 -1
  104. package/dist/es/standards-sdk.es66.js +1 -1
  105. package/dist/es/standards-sdk.es67.js +1 -1
  106. package/dist/es/standards-sdk.es69.js +1 -1
  107. package/dist/es/standards-sdk.es75.js +1 -1
  108. package/dist/es/standards-sdk.es84.js +1 -1
  109. package/package.json +1 -1
@@ -6164,13 +6164,6 @@ const metadataFacetSchema = recordType(
6164
6164
  jsonValueSchema
6165
6165
  ])
6166
6166
  ).optional();
6167
- const searchHitMetadataSchema = objectType({
6168
- delegationRoles: jsonValueSchema.optional(),
6169
- delegationTaskTags: jsonValueSchema.optional(),
6170
- delegationProtocols: jsonValueSchema.optional(),
6171
- delegationSummary: jsonValueSchema.optional(),
6172
- delegationSignals: jsonValueSchema.optional()
6173
- }).passthrough();
6174
6167
  const searchHitSchema = objectType({
6175
6168
  id: stringType(),
6176
6169
  uaid: stringType(),
@@ -6179,7 +6172,7 @@ const searchHitSchema = objectType({
6179
6172
  description: stringType().optional(),
6180
6173
  capabilities: arrayType(capabilityValueSchema),
6181
6174
  endpoints: unionType([recordType(jsonValueSchema), arrayType(stringType())]).optional(),
6182
- metadata: searchHitMetadataSchema.optional(),
6175
+ metadata: recordType(jsonValueSchema).optional(),
6183
6176
  metadataFacet: metadataFacetSchema,
6184
6177
  profile: agentProfileSchema.optional(),
6185
6178
  protocols: arrayType(stringType()).optional(),
@@ -6225,22 +6218,13 @@ const resolveResponseSchema = objectType({
6225
6218
  });
6226
6219
  const delegationPlanCandidateSchema = objectType({
6227
6220
  uaid: stringType(),
6228
- label: stringType(),
6229
- registry: stringType().optional(),
6230
- agent: searchHitSchema,
6231
6221
  score: numberType(),
6232
- matchedQueries: arrayType(stringType()).optional(),
6233
- matchedRoles: arrayType(stringType()).optional(),
6234
- matchedProtocols: arrayType(stringType()).optional(),
6235
- matchedSurfaces: arrayType(stringType()).optional(),
6236
- matchedLanguages: arrayType(stringType()).optional(),
6237
- matchedArtifacts: arrayType(stringType()).optional(),
6238
- matchedTaskTags: arrayType(stringType()).optional(),
6239
- reasons: arrayType(stringType()).optional(),
6240
- suggestedMessage: stringType().optional(),
6241
- trustScore: numberType().optional(),
6242
- verified: booleanType().optional(),
6243
- communicationSupported: booleanType().optional(),
6222
+ displayName: stringType().optional(),
6223
+ summary: stringType().optional(),
6224
+ protocols: arrayType(stringType()).optional(),
6225
+ surfaces: arrayType(stringType()).optional(),
6226
+ languages: arrayType(stringType()).optional(),
6227
+ artifacts: arrayType(stringType()).optional(),
6244
6228
  availability: booleanType().optional(),
6245
6229
  explanation: stringType().optional()
6246
6230
  }).passthrough();
@@ -7158,14 +7142,6 @@ const skillRegistryListResponseSchema = objectType({
7158
7142
  items: arrayType(skillRegistryPublishSummarySchema),
7159
7143
  nextCursor: stringType().nullable()
7160
7144
  }).passthrough();
7161
- const skillSecurityBreakdownResponseSchema = objectType({
7162
- name: stringType(),
7163
- version: stringType(),
7164
- jobId: stringType(),
7165
- createdAt: stringType(),
7166
- safety: skillSafetySummarySchema.nullable(),
7167
- findings: arrayType(skillSafetyFindingSchema)
7168
- }).passthrough();
7169
7145
  enumType([
7170
7146
  "stable",
7171
7147
  "prerelease",
@@ -7219,58 +7195,188 @@ const skillDeprecationsResponseSchema = objectType({
7219
7195
  name: stringType(),
7220
7196
  items: arrayType(skillDeprecationRecordSchema)
7221
7197
  }).passthrough();
7222
- const skillPublisherQuickstartCommandSchema = objectType({
7223
- id: stringType(),
7224
- label: stringType(),
7225
- description: stringType(),
7226
- command: stringType(),
7227
- href: stringType().nullable().optional()
7198
+ const skillSecurityBreakdownResponseSchema = objectType({
7199
+ jobId: stringType(),
7200
+ score: numberType().nullable().optional(),
7201
+ findings: arrayType(unknownType()).optional(),
7202
+ summary: unknownType().optional(),
7203
+ generatedAt: stringType().nullable().optional(),
7204
+ scannerVersion: stringType().nullable().optional()
7228
7205
  }).passthrough();
7229
- const skillPublisherTemplatePresetSchema = objectType({
7230
- presetId: stringType(),
7206
+ const skillBadgeMetricSchema = enumType([
7207
+ "version",
7208
+ "version_verification",
7209
+ "status",
7210
+ "verification",
7211
+ "repo_commit",
7212
+ "manifest",
7213
+ "domain",
7214
+ "trust",
7215
+ "tier",
7216
+ "safety",
7217
+ "upvotes",
7218
+ "updated"
7219
+ ]);
7220
+ const skillBadgeStyleSchema = enumType([
7221
+ "flat",
7222
+ "flat-square",
7223
+ "for-the-badge",
7224
+ "plastic",
7225
+ "social"
7226
+ ]);
7227
+ const skillBadgeResponseSchema = objectType({
7228
+ schemaVersion: numberType().int(),
7231
7229
  label: stringType(),
7232
- description: stringType(),
7233
- recommendedFor: stringType(),
7234
- command: stringType()
7230
+ message: stringType(),
7231
+ color: stringType(),
7232
+ style: skillBadgeStyleSchema.optional(),
7233
+ isError: booleanType().optional(),
7234
+ cacheSeconds: numberType().int().optional()
7235
+ }).passthrough();
7236
+ const skillRegistryTagsResponseSchema = objectType({
7237
+ tags: arrayType(stringType())
7238
+ }).passthrough();
7239
+ const skillRegistryCategoriesResponseSchema = objectType({
7240
+ categories: arrayType(stringType())
7241
+ }).passthrough();
7242
+ const skillResolverManifestResponseSchema = recordType(jsonValueSchema);
7243
+ const skillRegistryQuoteFileBreakdownSchema = objectType({
7244
+ name: stringType(),
7245
+ mimeType: stringType(),
7246
+ estimatedCostHbar: numberType()
7247
+ }).passthrough();
7248
+ const skillRegistryQuoteResponseSchema = objectType({
7249
+ quoteId: stringType(),
7250
+ name: stringType(),
7251
+ version: stringType(),
7252
+ directoryTopicId: stringType(),
7253
+ estimatedCostHbar: numberType(),
7254
+ credits: numberType(),
7255
+ usdCents: numberType(),
7256
+ expiresAt: stringType(),
7257
+ files: arrayType(skillRegistryQuoteFileBreakdownSchema)
7258
+ }).passthrough();
7259
+ const skillRegistryJobStatusSchema = unionType([
7260
+ literalType("pending"),
7261
+ literalType("in_progress"),
7262
+ literalType("completed"),
7263
+ literalType("failed")
7264
+ ]);
7265
+ const skillRegistryPublishResponseSchema = objectType({
7266
+ jobId: stringType(),
7267
+ status: skillRegistryJobStatusSchema,
7268
+ credits: numberType().nullable().optional(),
7269
+ usdCents: numberType().nullable().optional(),
7270
+ quoteId: stringType().nullable().optional(),
7271
+ createdAt: stringType(),
7272
+ updatedAt: stringType(),
7273
+ network: unionType([literalType("mainnet"), literalType("testnet")])
7235
7274
  }).passthrough();
7236
- const skillPublisherMetadataSchema = objectType({
7237
- cliPackageUrl: stringType(),
7238
- cliCommand: stringType(),
7239
- actionMarketplaceUrl: stringType(),
7240
- repositoryUrl: stringType(),
7241
- guideUrl: stringType().nullable().optional(),
7242
- docsUrl: stringType().nullable().optional(),
7243
- submitUrl: stringType().nullable().optional(),
7244
- skillsIndexUrl: stringType().nullable().optional(),
7245
- quickstartCommands: arrayType(skillPublisherQuickstartCommandSchema),
7246
- templatePresets: arrayType(skillPublisherTemplatePresetSchema)
7275
+ const skillRegistryJobStatusResponseSchema = objectType({
7276
+ jobId: stringType(),
7277
+ status: skillRegistryJobStatusSchema,
7278
+ network: unionType([literalType("mainnet"), literalType("testnet")]),
7279
+ name: stringType(),
7280
+ version: stringType(),
7281
+ directoryTopicId: stringType(),
7282
+ skillUid: numberType().int().nullable().optional(),
7283
+ directorySequenceNumber: numberType().int().nullable().optional(),
7284
+ versionRegistryTopicId: stringType().nullable().optional(),
7285
+ packageTopicId: stringType().nullable().optional(),
7286
+ manifestHrl: stringType().nullable().optional(),
7287
+ skillJsonHrl: stringType().nullable().optional(),
7288
+ iconHcs1: stringType().nullable().optional(),
7289
+ tags: arrayType(stringType()).nullable().optional(),
7290
+ category: stringType().nullable().optional(),
7291
+ files: arrayType(skillRegistryFileDescriptorSchema).nullable().optional(),
7292
+ quoteCredits: numberType().nullable().optional(),
7293
+ quoteUsdCents: numberType().nullable().optional(),
7294
+ safety: skillSafetySummarySchema.nullable().optional(),
7295
+ reservationId: stringType().nullable().optional(),
7296
+ totalCostHbar: numberType().nullable().optional(),
7297
+ totalCostCredits: numberType().nullable().optional(),
7298
+ failureReason: stringType().nullable().optional(),
7299
+ createdAt: stringType(),
7300
+ updatedAt: stringType()
7301
+ }).passthrough();
7302
+ const skillRegistryVersionItemSchema = objectType({
7303
+ jobId: stringType(),
7304
+ version: stringType(),
7305
+ createdAt: stringType(),
7306
+ verified: booleanType().optional()
7307
+ }).passthrough();
7308
+ const skillRegistryVersionsResponseSchema = objectType({
7309
+ name: stringType(),
7310
+ items: arrayType(skillRegistryVersionItemSchema)
7311
+ }).passthrough();
7312
+ const skillRegistryMineItemSchema = objectType({
7313
+ name: stringType(),
7314
+ latestVersion: stringType(),
7315
+ latestCreatedAt: stringType(),
7316
+ verified: booleanType().optional(),
7317
+ iconHcs1: stringType().optional(),
7318
+ versions: arrayType(stringType())
7319
+ }).passthrough();
7320
+ const skillRegistryMineResponseSchema = objectType({
7321
+ items: arrayType(skillRegistryMineItemSchema)
7322
+ }).passthrough();
7323
+ const skillRegistryMyListResponseSchema = objectType({
7324
+ owned: skillRegistryMineResponseSchema,
7325
+ upvoted: skillRegistryListResponseSchema
7326
+ }).passthrough();
7327
+ const skillRegistryConfigResponseSchema = objectType({
7328
+ enabled: booleanType(),
7329
+ directoryTopicId: stringType().nullable().optional(),
7330
+ maxFiles: numberType().int().nullable().optional(),
7331
+ maxTotalSizeBytes: numberType().int().nullable().optional(),
7332
+ allowedMimeTypes: arrayType(stringType()).nullable().optional(),
7333
+ network: unionType([literalType("mainnet"), literalType("testnet")]).nullable().optional(),
7334
+ publisher: objectType({
7335
+ cliPackageUrl: stringType(),
7336
+ cliCommand: stringType(),
7337
+ actionMarketplaceUrl: stringType(),
7338
+ repositoryUrl: stringType(),
7339
+ guideUrl: stringType().nullable().optional(),
7340
+ docsUrl: stringType().nullable().optional(),
7341
+ submitUrl: stringType().nullable().optional(),
7342
+ skillsIndexUrl: stringType().nullable().optional(),
7343
+ quickstartCommands: arrayType(
7344
+ objectType({
7345
+ id: stringType(),
7346
+ label: stringType(),
7347
+ description: stringType(),
7348
+ command: stringType(),
7349
+ href: stringType().nullable().optional()
7350
+ }).passthrough()
7351
+ ).optional().default([]),
7352
+ templatePresets: arrayType(
7353
+ objectType({
7354
+ presetId: stringType(),
7355
+ label: stringType(),
7356
+ description: stringType(),
7357
+ recommendedFor: stringType(),
7358
+ command: stringType()
7359
+ }).passthrough()
7360
+ ).optional().default([])
7361
+ }).nullable().optional()
7362
+ }).passthrough();
7363
+ const skillRegistryOwnershipResponseSchema = objectType({
7364
+ name: stringType(),
7365
+ exists: booleanType(),
7366
+ isOwner: booleanType()
7367
+ }).passthrough();
7368
+ const skillRegistryVoteStatusResponseSchema = objectType({
7369
+ name: stringType(),
7370
+ upvotes: numberType().int(),
7371
+ hasUpvoted: booleanType()
7247
7372
  }).passthrough();
7248
7373
  const skillTrustTierSchema = enumType([
7249
- "unpublished",
7250
7374
  "unclaimed",
7251
7375
  "validated",
7252
7376
  "published",
7253
7377
  "verified",
7254
7378
  "hardened"
7255
7379
  ]);
7256
- const skillStatusDefaultVerificationSignals = {
7257
- publisherBound: false,
7258
- domainProof: false,
7259
- verifiedDomain: false,
7260
- previewValidated: false
7261
- };
7262
- const skillStatusDefaultProvenanceSignals = {
7263
- repoCommitIntegrity: false,
7264
- manifestIntegrity: false,
7265
- canonicalRelease: false,
7266
- previewAvailable: false,
7267
- previewAuthoritative: false
7268
- };
7269
- const skillStatusChecksSchema = objectType({
7270
- repoCommitIntegrity: booleanType(),
7271
- manifestIntegrity: booleanType(),
7272
- domainProof: booleanType()
7273
- }).passthrough();
7274
7380
  const skillStatusNextStepSchema = objectType({
7275
7381
  kind: enumType([
7276
7382
  "setup_validate",
@@ -7278,8 +7384,8 @@ const skillStatusNextStepSchema = objectType({
7278
7384
  "verify_domain",
7279
7385
  "harden_workflow",
7280
7386
  "share_status"
7281
- ]).optional(),
7282
- priority: numberType().int().optional(),
7387
+ ]),
7388
+ priority: numberType().int(),
7283
7389
  id: stringType(),
7284
7390
  label: stringType(),
7285
7391
  description: stringType(),
@@ -7345,6 +7451,11 @@ const skillStatusPreviewMetadataSchema = objectType({
7345
7451
  expiresAt: stringType(),
7346
7452
  statusUrl: stringType()
7347
7453
  }).passthrough();
7454
+ const skillStatusChecksSchema = objectType({
7455
+ repoCommitIntegrity: booleanType(),
7456
+ manifestIntegrity: booleanType(),
7457
+ domainProof: booleanType()
7458
+ }).passthrough();
7348
7459
  const skillStatusVerificationSignalsSchema = objectType({
7349
7460
  publisherBound: booleanType(),
7350
7461
  domainProof: booleanType(),
@@ -7358,20 +7469,6 @@ const skillStatusProvenanceSignalsSchema = objectType({
7358
7469
  previewAvailable: booleanType(),
7359
7470
  previewAuthoritative: booleanType()
7360
7471
  }).passthrough();
7361
- const skillBadgeMetricSchema = enumType([
7362
- "version",
7363
- "version_verification",
7364
- "status",
7365
- "verification",
7366
- "repo_commit",
7367
- "manifest",
7368
- "domain",
7369
- "trust",
7370
- "tier",
7371
- "safety",
7372
- "upvotes",
7373
- "updated"
7374
- ]);
7375
7472
  const skillStatusResponseSchema = objectType({
7376
7473
  name: stringType(),
7377
7474
  version: stringType().nullable(),
@@ -7381,16 +7478,44 @@ const skillStatusResponseSchema = objectType({
7381
7478
  badgeMetric: skillBadgeMetricSchema,
7382
7479
  checks: skillStatusChecksSchema,
7383
7480
  nextSteps: arrayType(skillStatusNextStepSchema),
7384
- verificationSignals: skillStatusVerificationSignalsSchema.default(
7385
- skillStatusDefaultVerificationSignals
7386
- ),
7387
- provenanceSignals: skillStatusProvenanceSignalsSchema.default(
7388
- skillStatusDefaultProvenanceSignals
7389
- ),
7390
- publisher: skillPublisherMetadataSchema.nullable().optional(),
7481
+ verificationSignals: skillStatusVerificationSignalsSchema,
7482
+ provenanceSignals: skillStatusProvenanceSignalsSchema,
7483
+ publisher: skillRegistryConfigResponseSchema.shape.publisher,
7391
7484
  preview: skillStatusPreviewMetadataSchema.nullable().optional(),
7392
7485
  statusUrl: stringType().nullable().optional()
7393
7486
  }).passthrough();
7487
+ const skillQuotePreviewRangeSchema = objectType({
7488
+ min: numberType(),
7489
+ max: numberType()
7490
+ }).passthrough();
7491
+ const skillQuotePreviewResponseSchema = objectType({
7492
+ estimatedCredits: skillQuotePreviewRangeSchema,
7493
+ estimatedHbar: skillQuotePreviewRangeSchema,
7494
+ pricingVersion: stringType(),
7495
+ assumptions: arrayType(stringType()),
7496
+ purchaseUrl: stringType().nullable(),
7497
+ publishUrl: stringType().nullable(),
7498
+ verificationUrl: stringType().nullable()
7499
+ }).passthrough();
7500
+ const skillConversionSignalsResponseSchema = objectType({
7501
+ repoUrl: stringType(),
7502
+ skillDir: stringType(),
7503
+ trustTier: skillTrustTierSchema,
7504
+ actionInstalled: booleanType(),
7505
+ previewUploaded: booleanType(),
7506
+ previewId: stringType().nullable(),
7507
+ lastValidateSuccessAt: stringType().nullable(),
7508
+ stalePreviewAgeDays: numberType().nullable(),
7509
+ published: booleanType(),
7510
+ verified: booleanType(),
7511
+ publishReady: booleanType(),
7512
+ publishBlockedByMissingAuth: booleanType(),
7513
+ statusUrl: stringType().nullable(),
7514
+ purchaseUrl: stringType().nullable(),
7515
+ publishUrl: stringType().nullable(),
7516
+ verificationUrl: stringType().nullable(),
7517
+ nextSteps: arrayType(skillStatusNextStepSchema)
7518
+ }).passthrough();
7394
7519
  const skillInstallArtifactDescriptorSchema = objectType({
7395
7520
  url: stringType(),
7396
7521
  pointer: stringType().nullable(),
@@ -7441,132 +7566,6 @@ const skillInstallResponseSchema = objectType({
7441
7566
  const skillInstallCopyTelemetryResponseSchema = objectType({
7442
7567
  accepted: booleanType()
7443
7568
  }).passthrough();
7444
- const skillBadgeStyleSchema = enumType([
7445
- "flat",
7446
- "flat-square",
7447
- "for-the-badge",
7448
- "plastic",
7449
- "social"
7450
- ]);
7451
- const skillBadgeResponseSchema = objectType({
7452
- schemaVersion: numberType().int(),
7453
- label: stringType(),
7454
- message: stringType(),
7455
- color: stringType(),
7456
- style: skillBadgeStyleSchema.optional(),
7457
- isError: booleanType().optional(),
7458
- cacheSeconds: numberType().int().optional()
7459
- }).passthrough();
7460
- const skillRegistryTagsResponseSchema = objectType({
7461
- tags: arrayType(stringType())
7462
- }).passthrough();
7463
- const skillRegistryCategoriesResponseSchema = objectType({
7464
- categories: arrayType(stringType())
7465
- }).passthrough();
7466
- const skillResolverManifestResponseSchema = recordType(jsonValueSchema);
7467
- const skillRegistryQuoteFileBreakdownSchema = objectType({
7468
- name: stringType(),
7469
- mimeType: stringType(),
7470
- estimatedCostHbar: numberType()
7471
- }).passthrough();
7472
- const skillRegistryQuoteResponseSchema = objectType({
7473
- quoteId: stringType(),
7474
- name: stringType(),
7475
- version: stringType(),
7476
- directoryTopicId: stringType(),
7477
- estimatedCostHbar: numberType(),
7478
- credits: numberType(),
7479
- usdCents: numberType(),
7480
- expiresAt: stringType(),
7481
- files: arrayType(skillRegistryQuoteFileBreakdownSchema)
7482
- }).passthrough();
7483
- const skillRegistryJobStatusSchema = unionType([
7484
- literalType("pending"),
7485
- literalType("in_progress"),
7486
- literalType("completed"),
7487
- literalType("failed")
7488
- ]);
7489
- const skillRegistryPublishResponseSchema = objectType({
7490
- jobId: stringType(),
7491
- status: skillRegistryJobStatusSchema,
7492
- credits: numberType().nullable().optional(),
7493
- usdCents: numberType().nullable().optional(),
7494
- quoteId: stringType().nullable().optional(),
7495
- createdAt: stringType(),
7496
- updatedAt: stringType(),
7497
- network: unionType([literalType("mainnet"), literalType("testnet")])
7498
- }).passthrough();
7499
- const skillRegistryJobStatusResponseSchema = objectType({
7500
- jobId: stringType(),
7501
- status: skillRegistryJobStatusSchema,
7502
- network: unionType([literalType("mainnet"), literalType("testnet")]),
7503
- name: stringType(),
7504
- version: stringType(),
7505
- directoryTopicId: stringType(),
7506
- skillUid: numberType().int().nullable().optional(),
7507
- directorySequenceNumber: numberType().int().nullable().optional(),
7508
- versionRegistryTopicId: stringType().nullable().optional(),
7509
- packageTopicId: stringType().nullable().optional(),
7510
- manifestHrl: stringType().nullable().optional(),
7511
- skillJsonHrl: stringType().nullable().optional(),
7512
- iconHcs1: stringType().nullable().optional(),
7513
- tags: arrayType(stringType()).nullable().optional(),
7514
- category: stringType().nullable().optional(),
7515
- files: arrayType(skillRegistryFileDescriptorSchema).nullable().optional(),
7516
- quoteCredits: numberType().nullable().optional(),
7517
- quoteUsdCents: numberType().nullable().optional(),
7518
- safety: skillSafetySummarySchema.nullable().optional(),
7519
- reservationId: stringType().nullable().optional(),
7520
- totalCostHbar: numberType().nullable().optional(),
7521
- totalCostCredits: numberType().nullable().optional(),
7522
- failureReason: stringType().nullable().optional(),
7523
- createdAt: stringType(),
7524
- updatedAt: stringType()
7525
- }).passthrough();
7526
- const skillRegistryVersionItemSchema = objectType({
7527
- jobId: stringType(),
7528
- version: stringType(),
7529
- createdAt: stringType(),
7530
- verified: booleanType().optional()
7531
- }).passthrough();
7532
- const skillRegistryVersionsResponseSchema = objectType({
7533
- name: stringType(),
7534
- items: arrayType(skillRegistryVersionItemSchema)
7535
- }).passthrough();
7536
- const skillRegistryMineItemSchema = objectType({
7537
- name: stringType(),
7538
- latestVersion: stringType(),
7539
- latestCreatedAt: stringType(),
7540
- verified: booleanType().optional(),
7541
- iconHcs1: stringType().optional(),
7542
- versions: arrayType(stringType())
7543
- }).passthrough();
7544
- const skillRegistryMineResponseSchema = objectType({
7545
- items: arrayType(skillRegistryMineItemSchema)
7546
- }).passthrough();
7547
- const skillRegistryMyListResponseSchema = objectType({
7548
- owned: skillRegistryMineResponseSchema,
7549
- upvoted: skillRegistryListResponseSchema
7550
- }).passthrough();
7551
- const skillRegistryConfigResponseSchema = objectType({
7552
- enabled: booleanType(),
7553
- directoryTopicId: stringType().nullable().optional(),
7554
- maxFiles: numberType().int().nullable().optional(),
7555
- maxTotalSizeBytes: numberType().int().nullable().optional(),
7556
- allowedMimeTypes: arrayType(stringType()).nullable().optional(),
7557
- network: unionType([literalType("mainnet"), literalType("testnet")]).nullable().optional(),
7558
- publisher: skillPublisherMetadataSchema.nullable().optional()
7559
- }).passthrough();
7560
- const skillRegistryOwnershipResponseSchema = objectType({
7561
- name: stringType(),
7562
- exists: booleanType(),
7563
- isOwner: booleanType()
7564
- }).passthrough();
7565
- const skillRegistryVoteStatusResponseSchema = objectType({
7566
- name: stringType(),
7567
- upvotes: numberType().int(),
7568
- hasUpvoted: booleanType()
7569
- }).passthrough();
7570
7569
  const skillVerificationTierSchema = enumType(["basic", "express"]);
7571
7570
  const skillVerificationStatusSchema = enumType([
7572
7571
  "pending",
@@ -10131,57 +10130,6 @@ async function skillsConfig(client) {
10131
10130
  "skill registry config response"
10132
10131
  );
10133
10132
  }
10134
- async function getSkillStatus(client, params) {
10135
- const normalizedName = params.name.trim();
10136
- if (!normalizedName) {
10137
- throw new Error("name is required");
10138
- }
10139
- const query = new URLSearchParams();
10140
- query.set("name", normalizedName);
10141
- if (params.version?.trim()) {
10142
- query.set("version", params.version.trim());
10143
- }
10144
- const raw = await client.requestJson(
10145
- `/skills/status?${query.toString()}`,
10146
- {
10147
- method: "GET"
10148
- }
10149
- );
10150
- return client.parseWithSchema(
10151
- raw,
10152
- skillStatusResponseSchema,
10153
- "skill status response"
10154
- );
10155
- }
10156
- function buildRepoPreviewQuery(params) {
10157
- const repo = params.repo.trim();
10158
- const skillDir = params.skillDir.trim();
10159
- if (!repo) {
10160
- throw new Error("repo is required");
10161
- }
10162
- if (!skillDir) {
10163
- throw new Error("skillDir is required");
10164
- }
10165
- const query = new URLSearchParams();
10166
- query.set("repo", repo);
10167
- query.set("skillDir", skillDir);
10168
- if (params.ref?.trim()) {
10169
- query.set("ref", params.ref.trim());
10170
- }
10171
- return query.toString();
10172
- }
10173
- async function getSkillStatusByRepo(client, params) {
10174
- const query = buildRepoPreviewQuery(params);
10175
- const raw = await client.requestJson(
10176
- `/skills/status/by-repo?${query}`,
10177
- { method: "GET" }
10178
- );
10179
- return client.parseWithSchema(
10180
- raw,
10181
- skillStatusResponseSchema,
10182
- "skill status response"
10183
- );
10184
- }
10185
10133
  async function listSkills(client, params = {}) {
10186
10134
  const query = new URLSearchParams();
10187
10135
  if (params.name) {
@@ -10351,6 +10299,18 @@ async function quoteSkillPublish(client, payload) {
10351
10299
  "skill registry quote response"
10352
10300
  );
10353
10301
  }
10302
+ async function quoteSkillPublishPreview(client, payload) {
10303
+ const raw = await client.requestJson("/skills/quote-preview", {
10304
+ method: "POST",
10305
+ body: payload,
10306
+ headers: { "content-type": "application/json" }
10307
+ });
10308
+ return client.parseWithSchema(
10309
+ raw,
10310
+ skillQuotePreviewResponseSchema,
10311
+ "skill quote preview response"
10312
+ );
10313
+ }
10354
10314
  async function publishSkill(client, payload) {
10355
10315
  const raw = await client.requestJson("/skills/publish", {
10356
10316
  method: "POST",
@@ -10515,6 +10475,76 @@ async function getSkillBadge(client, params) {
10515
10475
  "skill badge response"
10516
10476
  );
10517
10477
  }
10478
+ async function getSkillStatus(client, params) {
10479
+ const normalizedName = params.name.trim();
10480
+ if (!normalizedName) {
10481
+ throw new Error("name is required");
10482
+ }
10483
+ const query = new URLSearchParams();
10484
+ query.set("name", normalizedName);
10485
+ if (params.version?.trim()) {
10486
+ query.set("version", params.version.trim());
10487
+ }
10488
+ const raw = await client.requestJson(
10489
+ `/skills/status?${query.toString()}`,
10490
+ { method: "GET" }
10491
+ );
10492
+ return client.parseWithSchema(
10493
+ raw,
10494
+ skillStatusResponseSchema,
10495
+ "skill status response"
10496
+ );
10497
+ }
10498
+ async function getSkillStatusByRepo(client, params) {
10499
+ const repo = params.repo.trim();
10500
+ const skillDir = params.skillDir.trim();
10501
+ if (!repo) {
10502
+ throw new Error("repo is required");
10503
+ }
10504
+ if (!skillDir) {
10505
+ throw new Error("skillDir is required");
10506
+ }
10507
+ const query = new URLSearchParams();
10508
+ query.set("repo", repo);
10509
+ query.set("skillDir", skillDir);
10510
+ if (params.ref?.trim()) {
10511
+ query.set("ref", params.ref.trim());
10512
+ }
10513
+ const raw = await client.requestJson(
10514
+ `/skills/status/by-repo?${query.toString()}`,
10515
+ { method: "GET" }
10516
+ );
10517
+ return client.parseWithSchema(
10518
+ raw,
10519
+ skillStatusResponseSchema,
10520
+ "skill status response"
10521
+ );
10522
+ }
10523
+ async function getSkillConversionSignalsByRepo(client, params) {
10524
+ const repo = params.repo.trim();
10525
+ const skillDir = params.skillDir.trim();
10526
+ if (!repo) {
10527
+ throw new Error("repo is required");
10528
+ }
10529
+ if (!skillDir) {
10530
+ throw new Error("skillDir is required");
10531
+ }
10532
+ const query = new URLSearchParams();
10533
+ query.set("repo", repo);
10534
+ query.set("skillDir", skillDir);
10535
+ if (params.ref?.trim()) {
10536
+ query.set("ref", params.ref.trim());
10537
+ }
10538
+ const raw = await client.requestJson(
10539
+ `/skills/conversion-signals/by-repo?${query.toString()}`,
10540
+ { method: "GET" }
10541
+ );
10542
+ return client.parseWithSchema(
10543
+ raw,
10544
+ skillConversionSignalsResponseSchema,
10545
+ "skill conversion signals response"
10546
+ );
10547
+ }
10518
10548
  async function uploadSkillPreviewFromGithubOidc(client, payload) {
10519
10549
  const token = payload.token.trim();
10520
10550
  if (!token) {
@@ -10558,9 +10588,22 @@ async function getSkillPreview(client, params) {
10558
10588
  );
10559
10589
  }
10560
10590
  async function getSkillPreviewByRepo(client, params) {
10561
- const query = buildRepoPreviewQuery(params);
10591
+ const repo = params.repo.trim();
10592
+ const skillDir = params.skillDir.trim();
10593
+ if (!repo) {
10594
+ throw new Error("repo is required");
10595
+ }
10596
+ if (!skillDir) {
10597
+ throw new Error("skillDir is required");
10598
+ }
10599
+ const query = new URLSearchParams();
10600
+ query.set("repo", repo);
10601
+ query.set("skillDir", skillDir);
10602
+ if (params.ref?.trim()) {
10603
+ query.set("ref", params.ref.trim());
10604
+ }
10562
10605
  const raw = await client.requestJson(
10563
- `/skills/preview/by-repo?${query}`,
10606
+ `/skills/preview/by-repo?${query.toString()}`,
10564
10607
  { method: "GET" }
10565
10608
  );
10566
10609
  return client.parseWithSchema(
@@ -11135,15 +11178,9 @@ class RegistryBrokerClient {
11135
11178
  async skillsConfig() {
11136
11179
  return skillsConfig(this);
11137
11180
  }
11138
- async getSkillStatus(params) {
11139
- return getSkillStatus(this, params);
11140
- }
11141
11181
  async listSkills(options) {
11142
11182
  return listSkills(this, options);
11143
11183
  }
11144
- async getSkillSecurityBreakdown(params) {
11145
- return getSkillSecurityBreakdown(this, params);
11146
- }
11147
11184
  async getSkillsCatalog(options) {
11148
11185
  return getSkillsCatalog(this, options);
11149
11186
  }
@@ -11159,6 +11196,9 @@ class RegistryBrokerClient {
11159
11196
  async quoteSkillPublish(payload) {
11160
11197
  return quoteSkillPublish(this, payload);
11161
11198
  }
11199
+ async quoteSkillPublishPreview(payload) {
11200
+ return quoteSkillPublishPreview(this, payload);
11201
+ }
11162
11202
  async publishSkill(payload) {
11163
11203
  return publishSkill(this, payload);
11164
11204
  }
@@ -11183,9 +11223,18 @@ class RegistryBrokerClient {
11183
11223
  async getSkillBadge(params) {
11184
11224
  return getSkillBadge(this, params);
11185
11225
  }
11226
+ async getSkillStatus(params) {
11227
+ return getSkillStatus(this, params);
11228
+ }
11229
+ async getSkillSecurityBreakdown(params) {
11230
+ return getSkillSecurityBreakdown(this, params);
11231
+ }
11186
11232
  async getSkillStatusByRepo(params) {
11187
11233
  return getSkillStatusByRepo(this, params);
11188
11234
  }
11235
+ async getSkillConversionSignalsByRepo(params) {
11236
+ return getSkillConversionSignalsByRepo(this, params);
11237
+ }
11189
11238
  async uploadSkillPreviewFromGithubOidc(payload) {
11190
11239
  return uploadSkillPreviewFromGithubOidc(this, payload);
11191
11240
  }
@@ -11585,9 +11634,20 @@ class RegistryBrokerClient {
11585
11634
  }
11586
11635
  return nodeCrypto;
11587
11636
  }
11637
+ getSecureRandomBytes(size2, feature) {
11638
+ const webCrypto = globalThis.crypto;
11639
+ if (webCrypto && typeof webCrypto.getRandomValues === "function") {
11640
+ const bytes = new Uint8Array(size2);
11641
+ webCrypto.getRandomValues(bytes);
11642
+ return bytes;
11643
+ }
11644
+ return this.getNodeCrypto(feature).randomBytes(size2);
11645
+ }
11588
11646
  createEphemeralKeyPair() {
11589
- const { randomBytes: randomBytes2 } = this.getNodeCrypto("generateEphemeralKeyPair");
11590
- const privateKeyBytes = randomBytes2(32);
11647
+ const privateKeyBytes = this.getSecureRandomBytes(
11648
+ 32,
11649
+ "generateEphemeralKeyPair"
11650
+ );
11591
11651
  const publicKey = secp256k1$2.getPublicKey(privateKeyBytes, true);
11592
11652
  return {
11593
11653
  privateKey: Buffer$1.from(privateKeyBytes).toString("hex"),