@hashgraphonline/standards-sdk 0.1.175 → 0.1.176

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 (110) hide show
  1. package/README.md +23 -0
  2. package/dist/browser/services/registry-broker/client/base-client.d.ts +9 -5
  3. package/dist/browser/services/registry-broker/client/base-client.d.ts.map +1 -1
  4. package/dist/browser/services/registry-broker/client/skills.d.ts +9 -5
  5. package/dist/browser/services/registry-broker/client/skills.d.ts.map +1 -1
  6. package/dist/browser/services/registry-broker/schemas.d.ts +2870 -8
  7. package/dist/browser/services/registry-broker/schemas.d.ts.map +1 -1
  8. package/dist/browser/services/registry-broker/types.d.ts +36 -1
  9. package/dist/browser/services/registry-broker/types.d.ts.map +1 -1
  10. package/dist/browser/standards-sdk.browser.js +155 -1
  11. package/dist/browser/standards-sdk.browser.js.map +1 -1
  12. package/dist/browser-root/services/registry-broker/client/base-client.d.ts +9 -5
  13. package/dist/browser-root/services/registry-broker/client/base-client.d.ts.map +1 -1
  14. package/dist/browser-root/services/registry-broker/client/skills.d.ts +9 -5
  15. package/dist/browser-root/services/registry-broker/client/skills.d.ts.map +1 -1
  16. package/dist/browser-root/services/registry-broker/schemas.d.ts +2870 -8
  17. package/dist/browser-root/services/registry-broker/schemas.d.ts.map +1 -1
  18. package/dist/browser-root/services/registry-broker/types.d.ts +36 -1
  19. package/dist/browser-root/services/registry-broker/types.d.ts.map +1 -1
  20. package/dist/browser-root/standards-sdk.root-browser.js +308 -1
  21. package/dist/browser-root/standards-sdk.root-browser.js.map +1 -1
  22. package/dist/cjs/services/registry-broker/client/base-client.d.ts +9 -5
  23. package/dist/cjs/services/registry-broker/client/base-client.d.ts.map +1 -1
  24. package/dist/cjs/services/registry-broker/client/skills.d.ts +9 -5
  25. package/dist/cjs/services/registry-broker/client/skills.d.ts.map +1 -1
  26. package/dist/cjs/services/registry-broker/schemas.d.ts +2870 -8
  27. package/dist/cjs/services/registry-broker/schemas.d.ts.map +1 -1
  28. package/dist/cjs/services/registry-broker/types.d.ts +36 -1
  29. package/dist/cjs/services/registry-broker/types.d.ts.map +1 -1
  30. package/dist/cjs/standards-sdk.cjs +2 -2
  31. package/dist/cjs/standards-sdk.cjs.map +1 -1
  32. package/dist/es/services/registry-broker/client/base-client.d.ts +9 -5
  33. package/dist/es/services/registry-broker/client/base-client.d.ts.map +1 -1
  34. package/dist/es/services/registry-broker/client/skills.d.ts +9 -5
  35. package/dist/es/services/registry-broker/client/skills.d.ts.map +1 -1
  36. package/dist/es/services/registry-broker/schemas.d.ts +2870 -8
  37. package/dist/es/services/registry-broker/schemas.d.ts.map +1 -1
  38. package/dist/es/services/registry-broker/types.d.ts +36 -1
  39. package/dist/es/services/registry-broker/types.d.ts.map +1 -1
  40. package/dist/es/standards-sdk.es116.js +1 -1
  41. package/dist/es/standards-sdk.es121.js +1 -1
  42. package/dist/es/standards-sdk.es127.js +1 -1
  43. package/dist/es/standards-sdk.es128.js +5 -5
  44. package/dist/es/standards-sdk.es138.js +1 -1
  45. package/dist/es/standards-sdk.es139.js +1 -1
  46. package/dist/es/standards-sdk.es140.js +5 -5
  47. package/dist/es/standards-sdk.es142.js +3 -3
  48. package/dist/es/standards-sdk.es143.js +1 -1
  49. package/dist/es/standards-sdk.es145.js +24 -3
  50. package/dist/es/standards-sdk.es145.js.map +1 -1
  51. package/dist/es/standards-sdk.es147.js +1 -1
  52. package/dist/es/standards-sdk.es148.js +1 -1
  53. package/dist/es/standards-sdk.es16.js +1 -1
  54. package/dist/es/standards-sdk.es160.js +1778 -12461
  55. package/dist/es/standards-sdk.es160.js.map +1 -1
  56. package/dist/es/standards-sdk.es161.js +12461 -1608
  57. package/dist/es/standards-sdk.es161.js.map +1 -1
  58. package/dist/es/standards-sdk.es163.js +51 -167
  59. package/dist/es/standards-sdk.es163.js.map +1 -1
  60. package/dist/es/standards-sdk.es164.js +88 -306
  61. package/dist/es/standards-sdk.es164.js.map +1 -1
  62. package/dist/es/standards-sdk.es165.js +71 -336
  63. package/dist/es/standards-sdk.es165.js.map +1 -1
  64. package/dist/es/standards-sdk.es166.js +186 -439
  65. package/dist/es/standards-sdk.es166.js.map +1 -1
  66. package/dist/es/standards-sdk.es167.js +695 -314
  67. package/dist/es/standards-sdk.es167.js.map +1 -1
  68. package/dist/es/standards-sdk.es168.js +63 -66
  69. package/dist/es/standards-sdk.es168.js.map +1 -1
  70. package/dist/es/standards-sdk.es169.js +158 -90
  71. package/dist/es/standards-sdk.es169.js.map +1 -1
  72. package/dist/es/standards-sdk.es170.js +314 -65
  73. package/dist/es/standards-sdk.es170.js.map +1 -1
  74. package/dist/es/standards-sdk.es171.js +345 -55
  75. package/dist/es/standards-sdk.es171.js.map +1 -1
  76. package/dist/es/standards-sdk.es172.js +443 -71
  77. package/dist/es/standards-sdk.es172.js.map +1 -1
  78. package/dist/es/standards-sdk.es173.js +315 -184
  79. package/dist/es/standards-sdk.es173.js.map +1 -1
  80. package/dist/es/standards-sdk.es174.js +68 -565
  81. package/dist/es/standards-sdk.es174.js.map +1 -1
  82. package/dist/es/standards-sdk.es175.js +1 -1
  83. package/dist/es/standards-sdk.es176.js +1 -1
  84. package/dist/es/standards-sdk.es178.js +2 -2
  85. package/dist/es/standards-sdk.es179.js +1 -1
  86. package/dist/es/standards-sdk.es18.js +2 -2
  87. package/dist/es/standards-sdk.es180.js +1 -1
  88. package/dist/es/standards-sdk.es181.js +2 -2
  89. package/dist/es/standards-sdk.es182.js +1 -1
  90. package/dist/es/standards-sdk.es183.js +1 -1
  91. package/dist/es/standards-sdk.es19.js +2 -2
  92. package/dist/es/standards-sdk.es27.js +2 -2
  93. package/dist/es/standards-sdk.es30.js +1 -1
  94. package/dist/es/standards-sdk.es31.js +1 -1
  95. package/dist/es/standards-sdk.es35.js +2 -2
  96. package/dist/es/standards-sdk.es36.js +1 -1
  97. package/dist/es/standards-sdk.es37.js +1 -1
  98. package/dist/es/standards-sdk.es56.js +1 -1
  99. package/dist/es/standards-sdk.es59.js +1 -1
  100. package/dist/es/standards-sdk.es60.js +1 -1
  101. package/dist/es/standards-sdk.es62.js +1 -1
  102. package/dist/es/standards-sdk.es63.js +2 -2
  103. package/dist/es/standards-sdk.es64.js +1 -1
  104. package/dist/es/standards-sdk.es65.js +1 -1
  105. package/dist/es/standards-sdk.es66.js +1 -1
  106. package/dist/es/standards-sdk.es67.js +1 -1
  107. package/dist/es/standards-sdk.es69.js +1 -1
  108. package/dist/es/standards-sdk.es75.js +1 -1
  109. package/dist/es/standards-sdk.es84.js +1 -1
  110. package/package.json +2 -1
@@ -7247,24 +7247,120 @@ const skillPublisherMetadataSchema = objectType({
7247
7247
  }).passthrough();
7248
7248
  const skillTrustTierSchema = enumType([
7249
7249
  "unpublished",
7250
+ "unclaimed",
7251
+ "validated",
7250
7252
  "published",
7251
7253
  "verified",
7252
7254
  "hardened"
7253
7255
  ]);
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
+ };
7254
7269
  const skillStatusChecksSchema = objectType({
7255
7270
  repoCommitIntegrity: booleanType(),
7256
7271
  manifestIntegrity: booleanType(),
7257
7272
  domainProof: booleanType()
7258
7273
  }).passthrough();
7259
7274
  const skillStatusNextStepSchema = objectType({
7275
+ kind: enumType([
7276
+ "setup_validate",
7277
+ "publish_first_release",
7278
+ "verify_domain",
7279
+ "harden_workflow",
7280
+ "share_status"
7281
+ ]).optional(),
7282
+ priority: numberType().int().optional(),
7260
7283
  id: stringType(),
7261
7284
  label: stringType(),
7262
7285
  description: stringType(),
7286
+ url: stringType().nullable().optional(),
7263
7287
  href: stringType().nullable().optional(),
7264
7288
  command: stringType().nullable().optional()
7265
7289
  }).passthrough();
7290
+ const skillPreviewSuggestedNextStepSchema = objectType({
7291
+ id: stringType(),
7292
+ label: stringType(),
7293
+ description: stringType(),
7294
+ command: stringType().optional(),
7295
+ href: stringType().optional()
7296
+ }).passthrough();
7297
+ const skillPreviewReportSchema = objectType({
7298
+ schema_version: literalType("skill-preview.v1"),
7299
+ tool_version: stringType(),
7300
+ preview_id: stringType(),
7301
+ repo_url: stringType(),
7302
+ repo_owner: stringType(),
7303
+ repo_name: stringType(),
7304
+ default_branch: stringType(),
7305
+ commit_sha: stringType(),
7306
+ ref: stringType(),
7307
+ event_name: stringType(),
7308
+ workflow_run_url: stringType(),
7309
+ skill_dir: stringType(),
7310
+ name: stringType(),
7311
+ version: stringType(),
7312
+ validation_status: literalType("passed"),
7313
+ findings: arrayType(unknownType()),
7314
+ package_summary: recordType(stringType(), unknownType()),
7315
+ suggested_next_steps: arrayType(skillPreviewSuggestedNextStepSchema),
7316
+ generated_at: stringType()
7317
+ }).passthrough();
7318
+ const skillPreviewRecordSchema = objectType({
7319
+ id: stringType(),
7320
+ previewId: stringType(),
7321
+ source: literalType("github-oidc"),
7322
+ report: skillPreviewReportSchema,
7323
+ generatedAt: stringType(),
7324
+ expiresAt: stringType(),
7325
+ statusUrl: stringType(),
7326
+ authoritative: booleanType()
7327
+ }).passthrough();
7328
+ const skillPreviewLookupResponseSchema = objectType({
7329
+ found: booleanType(),
7330
+ authoritative: booleanType(),
7331
+ preview: skillPreviewRecordSchema.nullable(),
7332
+ statusUrl: stringType().nullable(),
7333
+ expiresAt: stringType().nullable()
7334
+ }).passthrough();
7335
+ const skillStatusPreviewMetadataSchema = objectType({
7336
+ previewId: stringType(),
7337
+ repoUrl: stringType(),
7338
+ repoOwner: stringType(),
7339
+ repoName: stringType(),
7340
+ commitSha: stringType(),
7341
+ ref: stringType(),
7342
+ eventName: stringType(),
7343
+ skillDir: stringType(),
7344
+ generatedAt: stringType(),
7345
+ expiresAt: stringType(),
7346
+ statusUrl: stringType()
7347
+ }).passthrough();
7348
+ const skillStatusVerificationSignalsSchema = objectType({
7349
+ publisherBound: booleanType(),
7350
+ domainProof: booleanType(),
7351
+ verifiedDomain: booleanType(),
7352
+ previewValidated: booleanType()
7353
+ }).passthrough();
7354
+ const skillStatusProvenanceSignalsSchema = objectType({
7355
+ repoCommitIntegrity: booleanType(),
7356
+ manifestIntegrity: booleanType(),
7357
+ canonicalRelease: booleanType(),
7358
+ previewAvailable: booleanType(),
7359
+ previewAuthoritative: booleanType()
7360
+ }).passthrough();
7266
7361
  const skillBadgeMetricSchema = enumType([
7267
7362
  "version",
7363
+ "version_verification",
7268
7364
  "status",
7269
7365
  "verification",
7270
7366
  "repo_commit",
@@ -7285,7 +7381,65 @@ const skillStatusResponseSchema = objectType({
7285
7381
  badgeMetric: skillBadgeMetricSchema,
7286
7382
  checks: skillStatusChecksSchema,
7287
7383
  nextSteps: arrayType(skillStatusNextStepSchema),
7288
- publisher: skillPublisherMetadataSchema.nullable().optional()
7384
+ verificationSignals: skillStatusVerificationSignalsSchema.default(
7385
+ skillStatusDefaultVerificationSignals
7386
+ ),
7387
+ provenanceSignals: skillStatusProvenanceSignalsSchema.default(
7388
+ skillStatusDefaultProvenanceSignals
7389
+ ),
7390
+ publisher: skillPublisherMetadataSchema.nullable().optional(),
7391
+ preview: skillStatusPreviewMetadataSchema.nullable().optional(),
7392
+ statusUrl: stringType().nullable().optional()
7393
+ }).passthrough();
7394
+ const skillInstallArtifactDescriptorSchema = objectType({
7395
+ url: stringType(),
7396
+ pointer: stringType().nullable(),
7397
+ sha256: stringType().nullable()
7398
+ }).passthrough();
7399
+ const skillInstallResolverDescriptorSchema = objectType({
7400
+ skillRef: stringType(),
7401
+ skillMdUrl: stringType(),
7402
+ manifestUrl: stringType()
7403
+ }).passthrough();
7404
+ const skillInstallBadgeDescriptorSchema = objectType({
7405
+ apiUrl: stringType(),
7406
+ imageUrl: stringType(),
7407
+ markdown: stringType(),
7408
+ html: stringType()
7409
+ }).passthrough();
7410
+ const skillInstallShareDescriptorSchema = objectType({
7411
+ canonicalUrl: stringType().nullable(),
7412
+ latestUrl: stringType().nullable(),
7413
+ markdownLink: stringType().nullable(),
7414
+ htmlLink: stringType().nullable(),
7415
+ badge: skillInstallBadgeDescriptorSchema.nullable()
7416
+ }).passthrough();
7417
+ const skillInstallSnippetSetSchema = objectType({
7418
+ cli: stringType(),
7419
+ claude: stringType(),
7420
+ cursor: stringType(),
7421
+ codex: stringType(),
7422
+ openclaw: stringType()
7423
+ }).passthrough();
7424
+ const skillInstallResponseSchema = objectType({
7425
+ name: stringType(),
7426
+ version: stringType(),
7427
+ skillRef: stringType(),
7428
+ network: unionType([literalType("mainnet"), literalType("testnet")]),
7429
+ detailUrl: stringType().nullable(),
7430
+ artifacts: objectType({
7431
+ skillMd: skillInstallArtifactDescriptorSchema,
7432
+ manifest: skillInstallArtifactDescriptorSchema
7433
+ }).passthrough(),
7434
+ resolvers: objectType({
7435
+ pinned: skillInstallResolverDescriptorSchema,
7436
+ latest: skillInstallResolverDescriptorSchema
7437
+ }).passthrough(),
7438
+ share: skillInstallShareDescriptorSchema,
7439
+ snippets: skillInstallSnippetSetSchema
7440
+ }).passthrough();
7441
+ const skillInstallCopyTelemetryResponseSchema = objectType({
7442
+ accepted: booleanType()
7289
7443
  }).passthrough();
7290
7444
  const skillBadgeStyleSchema = enumType([
7291
7445
  "flat",
@@ -9999,6 +10153,35 @@ async function getSkillStatus(client, params) {
9999
10153
  "skill status response"
10000
10154
  );
10001
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
+ }
10002
10185
  async function listSkills(client, params = {}) {
10003
10186
  const query = new URLSearchParams();
10004
10187
  if (params.name) {
@@ -10332,6 +10515,109 @@ async function getSkillBadge(client, params) {
10332
10515
  "skill badge response"
10333
10516
  );
10334
10517
  }
10518
+ async function uploadSkillPreviewFromGithubOidc(client, payload) {
10519
+ const token = payload.token.trim();
10520
+ if (!token) {
10521
+ throw new Error("token is required");
10522
+ }
10523
+ const raw = await client.requestJson(
10524
+ "/skills/preview/github-oidc",
10525
+ {
10526
+ method: "POST",
10527
+ body: payload.report,
10528
+ headers: {
10529
+ "content-type": "application/json",
10530
+ authorization: `Bearer ${token}`
10531
+ }
10532
+ }
10533
+ );
10534
+ return client.parseWithSchema(
10535
+ raw,
10536
+ skillPreviewRecordSchema,
10537
+ "skill preview record response"
10538
+ );
10539
+ }
10540
+ async function getSkillPreview(client, params) {
10541
+ const normalizedName = params.name.trim();
10542
+ if (!normalizedName) {
10543
+ throw new Error("name is required");
10544
+ }
10545
+ const query = new URLSearchParams();
10546
+ query.set("name", normalizedName);
10547
+ if (params.version?.trim()) {
10548
+ query.set("version", params.version.trim());
10549
+ }
10550
+ const raw = await client.requestJson(
10551
+ `/skills/preview?${query.toString()}`,
10552
+ { method: "GET" }
10553
+ );
10554
+ return client.parseWithSchema(
10555
+ raw,
10556
+ skillPreviewLookupResponseSchema,
10557
+ "skill preview response"
10558
+ );
10559
+ }
10560
+ async function getSkillPreviewByRepo(client, params) {
10561
+ const query = buildRepoPreviewQuery(params);
10562
+ const raw = await client.requestJson(
10563
+ `/skills/preview/by-repo?${query}`,
10564
+ { method: "GET" }
10565
+ );
10566
+ return client.parseWithSchema(
10567
+ raw,
10568
+ skillPreviewLookupResponseSchema,
10569
+ "skill preview by repo response"
10570
+ );
10571
+ }
10572
+ async function getSkillPreviewById(client, previewId) {
10573
+ const normalizedPreviewId = previewId.trim();
10574
+ if (!normalizedPreviewId) {
10575
+ throw new Error("previewId is required");
10576
+ }
10577
+ const raw = await client.requestJson(
10578
+ `/skills/preview/${encodeURIComponent(normalizedPreviewId)}`,
10579
+ { method: "GET" }
10580
+ );
10581
+ return client.parseWithSchema(
10582
+ raw,
10583
+ skillPreviewLookupResponseSchema,
10584
+ "skill preview by id response"
10585
+ );
10586
+ }
10587
+ async function getSkillInstall(client, skillRef) {
10588
+ const normalizedSkillRef = skillRef.trim();
10589
+ if (!normalizedSkillRef) {
10590
+ throw new Error("skillRef is required");
10591
+ }
10592
+ const raw = await client.requestJson(
10593
+ `/skills/${encodeURIComponent(normalizedSkillRef)}/install`,
10594
+ { method: "GET" }
10595
+ );
10596
+ return client.parseWithSchema(
10597
+ raw,
10598
+ skillInstallResponseSchema,
10599
+ "skill install response"
10600
+ );
10601
+ }
10602
+ async function recordSkillInstallCopy(client, skillRef, payload = {}) {
10603
+ const normalizedSkillRef = skillRef.trim();
10604
+ if (!normalizedSkillRef) {
10605
+ throw new Error("skillRef is required");
10606
+ }
10607
+ const raw = await client.requestJson(
10608
+ `/skills/${encodeURIComponent(normalizedSkillRef)}/telemetry/install-copy`,
10609
+ {
10610
+ method: "POST",
10611
+ body: payload,
10612
+ headers: { "content-type": "application/json" }
10613
+ }
10614
+ );
10615
+ return client.parseWithSchema(
10616
+ raw,
10617
+ skillInstallCopyTelemetryResponseSchema,
10618
+ "skill install copy telemetry response"
10619
+ );
10620
+ }
10335
10621
  async function listSkillTags(client) {
10336
10622
  const raw = await client.requestJson("/skills/tags", {
10337
10623
  method: "GET"
@@ -10897,6 +11183,27 @@ class RegistryBrokerClient {
10897
11183
  async getSkillBadge(params) {
10898
11184
  return getSkillBadge(this, params);
10899
11185
  }
11186
+ async getSkillStatusByRepo(params) {
11187
+ return getSkillStatusByRepo(this, params);
11188
+ }
11189
+ async uploadSkillPreviewFromGithubOidc(payload) {
11190
+ return uploadSkillPreviewFromGithubOidc(this, payload);
11191
+ }
11192
+ async getSkillPreview(params) {
11193
+ return getSkillPreview(this, params);
11194
+ }
11195
+ async getSkillPreviewByRepo(params) {
11196
+ return getSkillPreviewByRepo(this, params);
11197
+ }
11198
+ async getSkillPreviewById(previewId) {
11199
+ return getSkillPreviewById(this, previewId);
11200
+ }
11201
+ async getSkillInstall(skillRef) {
11202
+ return getSkillInstall(this, skillRef);
11203
+ }
11204
+ async recordSkillInstallCopy(skillRef, payload) {
11205
+ return recordSkillInstallCopy(this, skillRef, payload);
11206
+ }
10900
11207
  async listSkillTags() {
10901
11208
  return listSkillTags(this);
10902
11209
  }