@hashgraphonline/standards-sdk 0.1.176 → 0.1.178

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 (151) hide show
  1. package/dist/browser/hcs-11/client.d.ts +30 -30
  2. package/dist/browser/hcs-21/types.d.ts +23 -23
  3. package/dist/browser/inscribe/inscriber.d.ts.map +1 -1
  4. package/dist/browser/services/registry-broker/client/base-client.d.ts +19 -4
  5. package/dist/browser/services/registry-broker/client/base-client.d.ts.map +1 -1
  6. package/dist/browser/services/registry-broker/client/credits.d.ts +6 -1
  7. package/dist/browser/services/registry-broker/client/credits.d.ts.map +1 -1
  8. package/dist/browser/services/registry-broker/client/guard.d.ts +10 -0
  9. package/dist/browser/services/registry-broker/client/guard.d.ts.map +1 -0
  10. package/dist/browser/services/registry-broker/client/skills.d.ts +5 -3
  11. package/dist/browser/services/registry-broker/client/skills.d.ts.map +1 -1
  12. package/dist/browser/services/registry-broker/schemas.d.ts +7631 -24215
  13. package/dist/browser/services/registry-broker/schemas.d.ts.map +1 -1
  14. package/dist/browser/services/registry-broker/types.d.ts +64 -26
  15. package/dist/browser/services/registry-broker/types.d.ts.map +1 -1
  16. package/dist/browser/standards-sdk.browser.js +381 -225
  17. package/dist/browser/standards-sdk.browser.js.map +1 -1
  18. package/dist/browser/utils/dynamic-import.d.ts.map +1 -1
  19. package/dist/browser-root/hcs-11/client.d.ts +30 -30
  20. package/dist/browser-root/hcs-21/types.d.ts +23 -23
  21. package/dist/browser-root/inscribe/inscriber.d.ts.map +1 -1
  22. package/dist/browser-root/services/registry-broker/client/base-client.d.ts +19 -4
  23. package/dist/browser-root/services/registry-broker/client/base-client.d.ts.map +1 -1
  24. package/dist/browser-root/services/registry-broker/client/credits.d.ts +6 -1
  25. package/dist/browser-root/services/registry-broker/client/credits.d.ts.map +1 -1
  26. package/dist/browser-root/services/registry-broker/client/guard.d.ts +10 -0
  27. package/dist/browser-root/services/registry-broker/client/guard.d.ts.map +1 -0
  28. package/dist/browser-root/services/registry-broker/client/skills.d.ts +5 -3
  29. package/dist/browser-root/services/registry-broker/client/skills.d.ts.map +1 -1
  30. package/dist/browser-root/services/registry-broker/schemas.d.ts +7631 -24215
  31. package/dist/browser-root/services/registry-broker/schemas.d.ts.map +1 -1
  32. package/dist/browser-root/services/registry-broker/types.d.ts +64 -26
  33. package/dist/browser-root/services/registry-broker/types.d.ts.map +1 -1
  34. package/dist/browser-root/standards-sdk.root-browser.js +699 -397
  35. package/dist/browser-root/standards-sdk.root-browser.js.map +1 -1
  36. package/dist/browser-root/utils/dynamic-import.d.ts.map +1 -1
  37. package/dist/cjs/hcs-11/client.d.ts +30 -30
  38. package/dist/cjs/inscribe/inscriber.d.ts.map +1 -1
  39. package/dist/cjs/services/registry-broker/client/base-client.d.ts +19 -4
  40. package/dist/cjs/services/registry-broker/client/base-client.d.ts.map +1 -1
  41. package/dist/cjs/services/registry-broker/client/credits.d.ts +6 -1
  42. package/dist/cjs/services/registry-broker/client/credits.d.ts.map +1 -1
  43. package/dist/cjs/services/registry-broker/client/guard.d.ts +10 -0
  44. package/dist/cjs/services/registry-broker/client/guard.d.ts.map +1 -0
  45. package/dist/cjs/services/registry-broker/client/skills.d.ts +5 -3
  46. package/dist/cjs/services/registry-broker/client/skills.d.ts.map +1 -1
  47. package/dist/cjs/services/registry-broker/schemas.d.ts +7612 -24196
  48. package/dist/cjs/services/registry-broker/schemas.d.ts.map +1 -1
  49. package/dist/cjs/services/registry-broker/types.d.ts +64 -26
  50. package/dist/cjs/services/registry-broker/types.d.ts.map +1 -1
  51. package/dist/cjs/standards-sdk.cjs +2 -2
  52. package/dist/cjs/standards-sdk.cjs.map +1 -1
  53. package/dist/cjs/utils/dynamic-import.d.ts.map +1 -1
  54. package/dist/es/hcs-11/client.d.ts +30 -30
  55. package/dist/es/inscribe/inscriber.d.ts.map +1 -1
  56. package/dist/es/services/registry-broker/client/base-client.d.ts +19 -4
  57. package/dist/es/services/registry-broker/client/base-client.d.ts.map +1 -1
  58. package/dist/es/services/registry-broker/client/credits.d.ts +6 -1
  59. package/dist/es/services/registry-broker/client/credits.d.ts.map +1 -1
  60. package/dist/es/services/registry-broker/client/guard.d.ts +10 -0
  61. package/dist/es/services/registry-broker/client/guard.d.ts.map +1 -0
  62. package/dist/es/services/registry-broker/client/skills.d.ts +5 -3
  63. package/dist/es/services/registry-broker/client/skills.d.ts.map +1 -1
  64. package/dist/es/services/registry-broker/schemas.d.ts +7612 -24196
  65. package/dist/es/services/registry-broker/schemas.d.ts.map +1 -1
  66. package/dist/es/services/registry-broker/types.d.ts +64 -26
  67. package/dist/es/services/registry-broker/types.d.ts.map +1 -1
  68. package/dist/es/standards-sdk.es116.js +1 -1
  69. package/dist/es/standards-sdk.es121.js +1 -1
  70. package/dist/es/standards-sdk.es127.js +1 -1
  71. package/dist/es/standards-sdk.es128.js +5 -5
  72. package/dist/es/standards-sdk.es138.js +1 -1
  73. package/dist/es/standards-sdk.es139.js +1 -1
  74. package/dist/es/standards-sdk.es140.js +5 -5
  75. package/dist/es/standards-sdk.es142.js +9 -6
  76. package/dist/es/standards-sdk.es142.js.map +1 -1
  77. package/dist/es/standards-sdk.es143.js +1 -1
  78. package/dist/es/standards-sdk.es145.js +63 -15
  79. package/dist/es/standards-sdk.es145.js.map +1 -1
  80. package/dist/es/standards-sdk.es147.js +2 -2
  81. package/dist/es/standards-sdk.es148.js +1 -1
  82. package/dist/es/standards-sdk.es16.js +1 -1
  83. package/dist/es/standards-sdk.es160.js +12461 -1778
  84. package/dist/es/standards-sdk.es160.js.map +1 -1
  85. package/dist/es/standards-sdk.es161.js +1936 -12461
  86. package/dist/es/standards-sdk.es161.js.map +1 -1
  87. package/dist/es/standards-sdk.es162.js +54 -15
  88. package/dist/es/standards-sdk.es162.js.map +1 -1
  89. package/dist/es/standards-sdk.es163.js +102 -47
  90. package/dist/es/standards-sdk.es163.js.map +1 -1
  91. package/dist/es/standards-sdk.es164.js +65 -88
  92. package/dist/es/standards-sdk.es164.js.map +1 -1
  93. package/dist/es/standards-sdk.es165.js +180 -61
  94. package/dist/es/standards-sdk.es165.js.map +1 -1
  95. package/dist/es/standards-sdk.es166.js +14 -197
  96. package/dist/es/standards-sdk.es166.js.map +1 -1
  97. package/dist/es/standards-sdk.es167.js +68 -707
  98. package/dist/es/standards-sdk.es167.js.map +1 -1
  99. package/dist/es/standards-sdk.es168.js +165 -66
  100. package/dist/es/standards-sdk.es168.js.map +1 -1
  101. package/dist/es/standards-sdk.es169.js +289 -139
  102. package/dist/es/standards-sdk.es169.js.map +1 -1
  103. package/dist/es/standards-sdk.es170.js +298 -274
  104. package/dist/es/standards-sdk.es170.js.map +1 -1
  105. package/dist/es/standards-sdk.es171.js +369 -262
  106. package/dist/es/standards-sdk.es171.js.map +1 -1
  107. package/dist/es/standards-sdk.es172.js +194 -316
  108. package/dist/es/standards-sdk.es172.js.map +1 -1
  109. package/dist/es/standards-sdk.es173.js +64 -319
  110. package/dist/es/standards-sdk.es173.js.map +1 -1
  111. package/dist/es/standards-sdk.es174.js +664 -68
  112. package/dist/es/standards-sdk.es174.js.map +1 -1
  113. package/dist/es/standards-sdk.es175.js +1 -1
  114. package/dist/es/standards-sdk.es176.js +2 -2
  115. package/dist/es/standards-sdk.es178.js +2 -2
  116. package/dist/es/standards-sdk.es179.js +2 -2
  117. package/dist/es/standards-sdk.es18.js +2 -2
  118. package/dist/es/standards-sdk.es180.js +1 -1
  119. package/dist/es/standards-sdk.es181.js +61 -3
  120. package/dist/es/standards-sdk.es181.js.map +1 -1
  121. package/dist/es/standards-sdk.es182.js +80 -168
  122. package/dist/es/standards-sdk.es182.js.map +1 -1
  123. package/dist/es/standards-sdk.es183.js +156 -206
  124. package/dist/es/standards-sdk.es183.js.map +1 -1
  125. package/dist/es/standards-sdk.es184.js +219 -223
  126. package/dist/es/standards-sdk.es184.js.map +1 -1
  127. package/dist/es/standards-sdk.es185.js +242 -0
  128. package/dist/es/standards-sdk.es185.js.map +1 -0
  129. package/dist/es/standards-sdk.es19.js +2 -2
  130. package/dist/es/standards-sdk.es27.js +2 -2
  131. package/dist/es/standards-sdk.es30.js +1 -1
  132. package/dist/es/standards-sdk.es31.js +1 -1
  133. package/dist/es/standards-sdk.es35.js +2 -2
  134. package/dist/es/standards-sdk.es36.js +1 -1
  135. package/dist/es/standards-sdk.es37.js +1 -1
  136. package/dist/es/standards-sdk.es56.js +1 -1
  137. package/dist/es/standards-sdk.es59.js +1 -1
  138. package/dist/es/standards-sdk.es60.js +1 -1
  139. package/dist/es/standards-sdk.es62.js +1 -1
  140. package/dist/es/standards-sdk.es63.js +2 -2
  141. package/dist/es/standards-sdk.es64.js +1 -1
  142. package/dist/es/standards-sdk.es65.js +1 -1
  143. package/dist/es/standards-sdk.es66.js +1 -1
  144. package/dist/es/standards-sdk.es67.js +1 -1
  145. package/dist/es/standards-sdk.es69.js +1 -1
  146. package/dist/es/standards-sdk.es71.js +1 -1
  147. package/dist/es/standards-sdk.es72.js +1 -1
  148. package/dist/es/standards-sdk.es75.js +1 -1
  149. package/dist/es/standards-sdk.es84.js +1 -1
  150. package/dist/es/utils/dynamic-import.d.ts.map +1 -1
  151. 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();
@@ -6829,6 +6813,151 @@ const creditPurchaseResponseSchema = objectType({
6829
6813
  transactionId: stringType(),
6830
6814
  consensusTimestamp: stringType().nullable().optional()
6831
6815
  });
6816
+ const creditProviderSummarySchema = objectType({
6817
+ name: stringType(),
6818
+ publishableKey: stringType().optional(),
6819
+ currency: stringType().optional(),
6820
+ centsPerHbar: numberType().nullable().optional()
6821
+ });
6822
+ const creditProvidersResponseSchema = objectType({
6823
+ providers: arrayType(creditProviderSummarySchema)
6824
+ });
6825
+ const creditBalanceResponseSchema = objectType({
6826
+ accountId: stringType(),
6827
+ balance: numberType(),
6828
+ balanceRecord: jsonValueSchema.optional(),
6829
+ timestamp: stringType().optional()
6830
+ });
6831
+ const guardPlanIdSchema = enumType(["free", "pro", "team", "enterprise"]);
6832
+ const guardBucketBalanceSchema = objectType({
6833
+ bucketId: enumType([
6834
+ "registry_credits",
6835
+ "chat_credits",
6836
+ "guard_credits",
6837
+ "org_policy_credits"
6838
+ ]),
6839
+ label: stringType(),
6840
+ availableCredits: numberType(),
6841
+ includedMonthlyCredits: numberType().nullable().optional()
6842
+ });
6843
+ const guardPrincipalSchema = objectType({
6844
+ signedIn: booleanType(),
6845
+ userId: stringType().optional(),
6846
+ email: stringType().optional(),
6847
+ accountId: stringType().optional(),
6848
+ stripeCustomerId: stringType().optional(),
6849
+ roles: arrayType(stringType())
6850
+ });
6851
+ const guardEntitlementsSchema = objectType({
6852
+ planId: guardPlanIdSchema,
6853
+ includedMonthlyCredits: numberType(),
6854
+ deviceLimit: numberType(),
6855
+ retentionDays: numberType(),
6856
+ syncEnabled: booleanType(),
6857
+ premiumFeedsEnabled: booleanType(),
6858
+ teamPolicyEnabled: booleanType()
6859
+ });
6860
+ const guardSessionResponseSchema = objectType({
6861
+ principal: guardPrincipalSchema,
6862
+ entitlements: guardEntitlementsSchema,
6863
+ balance: objectType({
6864
+ accountId: stringType(),
6865
+ availableCredits: numberType()
6866
+ }).nullable(),
6867
+ bucketingMode: enumType(["shared-ledger", "product-bucketed"]),
6868
+ buckets: arrayType(guardBucketBalanceSchema)
6869
+ });
6870
+ const guardBalanceResponseSchema = objectType({
6871
+ generatedAt: stringType(),
6872
+ bucketingMode: enumType(["shared-ledger", "product-bucketed"]),
6873
+ buckets: arrayType(guardBucketBalanceSchema)
6874
+ });
6875
+ const guardTrustMatchSchema = objectType({
6876
+ artifactId: stringType(),
6877
+ artifactName: stringType(),
6878
+ artifactType: enumType(["skill", "plugin"]),
6879
+ artifactSlug: stringType(),
6880
+ recommendation: enumType(["monitor", "review", "block"]),
6881
+ verified: booleanType(),
6882
+ safetyScore: numberType().nullable().optional(),
6883
+ trustScore: numberType().nullable().optional(),
6884
+ href: stringType().optional(),
6885
+ ecosystem: stringType().optional()
6886
+ });
6887
+ const guardTrustByHashResponseSchema = objectType({
6888
+ generatedAt: stringType(),
6889
+ query: objectType({
6890
+ sha256: stringType()
6891
+ }),
6892
+ match: guardTrustMatchSchema.nullable(),
6893
+ evidence: arrayType(stringType())
6894
+ });
6895
+ const guardTrustResolveResponseSchema = objectType({
6896
+ generatedAt: stringType(),
6897
+ query: objectType({
6898
+ ecosystem: stringType().optional(),
6899
+ name: stringType().optional(),
6900
+ version: stringType().optional()
6901
+ }),
6902
+ items: arrayType(guardTrustMatchSchema)
6903
+ });
6904
+ const guardRevocationSchema = objectType({
6905
+ id: stringType(),
6906
+ artifactId: stringType(),
6907
+ artifactName: stringType(),
6908
+ reason: stringType(),
6909
+ severity: enumType(["low", "medium", "high"]),
6910
+ publishedAt: stringType()
6911
+ });
6912
+ const guardRevocationResponseSchema = objectType({
6913
+ generatedAt: stringType(),
6914
+ items: arrayType(guardRevocationSchema)
6915
+ });
6916
+ objectType({
6917
+ receiptId: stringType(),
6918
+ capturedAt: stringType(),
6919
+ harness: stringType(),
6920
+ deviceId: stringType(),
6921
+ deviceName: stringType(),
6922
+ artifactId: stringType(),
6923
+ artifactName: stringType(),
6924
+ artifactType: enumType(["skill", "plugin"]),
6925
+ artifactSlug: stringType(),
6926
+ artifactHash: stringType(),
6927
+ policyDecision: enumType([
6928
+ "allow",
6929
+ "warn",
6930
+ "block",
6931
+ "review",
6932
+ "require-reapproval",
6933
+ "sandbox-required"
6934
+ ]),
6935
+ recommendation: enumType(["monitor", "review", "block"]),
6936
+ changedSinceLastApproval: booleanType(),
6937
+ publisher: stringType().optional(),
6938
+ capabilities: arrayType(stringType()),
6939
+ summary: stringType()
6940
+ });
6941
+ const guardReceiptSyncResponseSchema = objectType({
6942
+ syncedAt: stringType(),
6943
+ receiptsStored: numberType()
6944
+ });
6945
+ const hbarPurchaseIntentResponseSchema = objectType({
6946
+ transaction: stringType(),
6947
+ transactionId: stringType(),
6948
+ network: enumType(["mainnet", "testnet"]),
6949
+ accountId: stringType(),
6950
+ treasuryAccountId: stringType(),
6951
+ hbarAmount: numberType(),
6952
+ credits: numberType(),
6953
+ tinybarAmount: numberType(),
6954
+ memo: stringType(),
6955
+ centsPerHbar: numberType(),
6956
+ validStart: stringType(),
6957
+ validDurationSeconds: numberType(),
6958
+ requiresManualSubmit: literalType(true),
6959
+ purchaseId: stringType()
6960
+ });
6832
6961
  const x402SettlementSchema = objectType({
6833
6962
  success: booleanType().optional(),
6834
6963
  transaction: stringType().optional(),
@@ -7158,14 +7287,6 @@ const skillRegistryListResponseSchema = objectType({
7158
7287
  items: arrayType(skillRegistryPublishSummarySchema),
7159
7288
  nextCursor: stringType().nullable()
7160
7289
  }).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
7290
  enumType([
7170
7291
  "stable",
7171
7292
  "prerelease",
@@ -7219,58 +7340,190 @@ const skillDeprecationsResponseSchema = objectType({
7219
7340
  name: stringType(),
7220
7341
  items: arrayType(skillDeprecationRecordSchema)
7221
7342
  }).passthrough();
7222
- const skillPublisherQuickstartCommandSchema = objectType({
7223
- id: stringType(),
7224
- label: stringType(),
7225
- description: stringType(),
7226
- command: stringType(),
7227
- href: stringType().nullable().optional()
7343
+ const skillSecurityBreakdownFindingSchema = recordType(jsonValueSchema);
7344
+ const skillSecurityBreakdownSummarySchema = recordType(jsonValueSchema);
7345
+ const skillSecurityBreakdownResponseSchema = objectType({
7346
+ jobId: stringType(),
7347
+ score: numberType().nullable().optional(),
7348
+ findings: arrayType(skillSecurityBreakdownFindingSchema).optional(),
7349
+ summary: skillSecurityBreakdownSummarySchema.optional(),
7350
+ generatedAt: stringType().nullable().optional(),
7351
+ scannerVersion: stringType().nullable().optional()
7228
7352
  }).passthrough();
7229
- const skillPublisherTemplatePresetSchema = objectType({
7230
- presetId: stringType(),
7353
+ const skillBadgeMetricSchema = enumType([
7354
+ "version",
7355
+ "version_verification",
7356
+ "status",
7357
+ "verification",
7358
+ "repo_commit",
7359
+ "manifest",
7360
+ "domain",
7361
+ "trust",
7362
+ "tier",
7363
+ "safety",
7364
+ "upvotes",
7365
+ "updated"
7366
+ ]);
7367
+ const skillBadgeStyleSchema = enumType([
7368
+ "flat",
7369
+ "flat-square",
7370
+ "for-the-badge",
7371
+ "plastic",
7372
+ "social"
7373
+ ]);
7374
+ const skillBadgeResponseSchema = objectType({
7375
+ schemaVersion: numberType().int(),
7231
7376
  label: stringType(),
7232
- description: stringType(),
7233
- recommendedFor: stringType(),
7234
- command: stringType()
7377
+ message: stringType(),
7378
+ color: stringType(),
7379
+ style: skillBadgeStyleSchema.optional(),
7380
+ isError: booleanType().optional(),
7381
+ cacheSeconds: numberType().int().optional()
7382
+ }).passthrough();
7383
+ const skillRegistryTagsResponseSchema = objectType({
7384
+ tags: arrayType(stringType())
7385
+ }).passthrough();
7386
+ const skillRegistryCategoriesResponseSchema = objectType({
7387
+ categories: arrayType(stringType())
7388
+ }).passthrough();
7389
+ const skillResolverManifestResponseSchema = recordType(jsonValueSchema);
7390
+ const skillRegistryQuoteFileBreakdownSchema = objectType({
7391
+ name: stringType(),
7392
+ mimeType: stringType(),
7393
+ estimatedCostHbar: numberType()
7394
+ }).passthrough();
7395
+ const skillRegistryQuoteResponseSchema = objectType({
7396
+ quoteId: stringType(),
7397
+ name: stringType(),
7398
+ version: stringType(),
7399
+ directoryTopicId: stringType(),
7400
+ estimatedCostHbar: numberType(),
7401
+ credits: numberType(),
7402
+ usdCents: numberType(),
7403
+ expiresAt: stringType(),
7404
+ files: arrayType(skillRegistryQuoteFileBreakdownSchema)
7405
+ }).passthrough();
7406
+ const skillRegistryJobStatusSchema = unionType([
7407
+ literalType("pending"),
7408
+ literalType("in_progress"),
7409
+ literalType("completed"),
7410
+ literalType("failed")
7411
+ ]);
7412
+ const skillRegistryPublishResponseSchema = objectType({
7413
+ jobId: stringType(),
7414
+ status: skillRegistryJobStatusSchema,
7415
+ credits: numberType().nullable().optional(),
7416
+ usdCents: numberType().nullable().optional(),
7417
+ quoteId: stringType().nullable().optional(),
7418
+ createdAt: stringType(),
7419
+ updatedAt: stringType(),
7420
+ network: unionType([literalType("mainnet"), literalType("testnet")])
7421
+ }).passthrough();
7422
+ const skillRegistryJobStatusResponseSchema = objectType({
7423
+ jobId: stringType(),
7424
+ status: skillRegistryJobStatusSchema,
7425
+ network: unionType([literalType("mainnet"), literalType("testnet")]),
7426
+ name: stringType(),
7427
+ version: stringType(),
7428
+ directoryTopicId: stringType(),
7429
+ skillUid: numberType().int().nullable().optional(),
7430
+ directorySequenceNumber: numberType().int().nullable().optional(),
7431
+ versionRegistryTopicId: stringType().nullable().optional(),
7432
+ packageTopicId: stringType().nullable().optional(),
7433
+ manifestHrl: stringType().nullable().optional(),
7434
+ skillJsonHrl: stringType().nullable().optional(),
7435
+ iconHcs1: stringType().nullable().optional(),
7436
+ tags: arrayType(stringType()).nullable().optional(),
7437
+ category: stringType().nullable().optional(),
7438
+ files: arrayType(skillRegistryFileDescriptorSchema).nullable().optional(),
7439
+ quoteCredits: numberType().nullable().optional(),
7440
+ quoteUsdCents: numberType().nullable().optional(),
7441
+ safety: skillSafetySummarySchema.nullable().optional(),
7442
+ reservationId: stringType().nullable().optional(),
7443
+ totalCostHbar: numberType().nullable().optional(),
7444
+ totalCostCredits: numberType().nullable().optional(),
7445
+ failureReason: stringType().nullable().optional(),
7446
+ createdAt: stringType(),
7447
+ updatedAt: stringType()
7448
+ }).passthrough();
7449
+ const skillRegistryVersionItemSchema = objectType({
7450
+ jobId: stringType(),
7451
+ version: stringType(),
7452
+ createdAt: stringType(),
7453
+ verified: booleanType().optional()
7454
+ }).passthrough();
7455
+ const skillRegistryVersionsResponseSchema = objectType({
7456
+ name: stringType(),
7457
+ items: arrayType(skillRegistryVersionItemSchema)
7458
+ }).passthrough();
7459
+ const skillRegistryMineItemSchema = objectType({
7460
+ name: stringType(),
7461
+ latestVersion: stringType(),
7462
+ latestCreatedAt: stringType(),
7463
+ verified: booleanType().optional(),
7464
+ iconHcs1: stringType().optional(),
7465
+ versions: arrayType(stringType())
7466
+ }).passthrough();
7467
+ const skillRegistryMineResponseSchema = objectType({
7468
+ items: arrayType(skillRegistryMineItemSchema)
7469
+ }).passthrough();
7470
+ const skillRegistryMyListResponseSchema = objectType({
7471
+ owned: skillRegistryMineResponseSchema,
7472
+ upvoted: skillRegistryListResponseSchema
7473
+ }).passthrough();
7474
+ const skillRegistryConfigResponseSchema = objectType({
7475
+ enabled: booleanType(),
7476
+ directoryTopicId: stringType().nullable().optional(),
7477
+ maxFiles: numberType().int().nullable().optional(),
7478
+ maxTotalSizeBytes: numberType().int().nullable().optional(),
7479
+ allowedMimeTypes: arrayType(stringType()).nullable().optional(),
7480
+ network: unionType([literalType("mainnet"), literalType("testnet")]).nullable().optional(),
7481
+ publisher: objectType({
7482
+ cliPackageUrl: stringType(),
7483
+ cliCommand: stringType(),
7484
+ actionMarketplaceUrl: stringType(),
7485
+ repositoryUrl: stringType(),
7486
+ guideUrl: stringType().nullable().optional(),
7487
+ docsUrl: stringType().nullable().optional(),
7488
+ submitUrl: stringType().nullable().optional(),
7489
+ skillsIndexUrl: stringType().nullable().optional(),
7490
+ quickstartCommands: arrayType(
7491
+ objectType({
7492
+ id: stringType(),
7493
+ label: stringType(),
7494
+ description: stringType(),
7495
+ command: stringType(),
7496
+ href: stringType().nullable().optional()
7497
+ }).passthrough()
7498
+ ).optional().default([]),
7499
+ templatePresets: arrayType(
7500
+ objectType({
7501
+ presetId: stringType(),
7502
+ label: stringType(),
7503
+ description: stringType(),
7504
+ recommendedFor: stringType(),
7505
+ command: stringType()
7506
+ }).passthrough()
7507
+ ).optional().default([])
7508
+ }).nullable().optional()
7235
7509
  }).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)
7510
+ const skillRegistryOwnershipResponseSchema = objectType({
7511
+ name: stringType(),
7512
+ exists: booleanType(),
7513
+ isOwner: booleanType()
7514
+ }).passthrough();
7515
+ const skillRegistryVoteStatusResponseSchema = objectType({
7516
+ name: stringType(),
7517
+ upvotes: numberType().int(),
7518
+ hasUpvoted: booleanType()
7247
7519
  }).passthrough();
7248
7520
  const skillTrustTierSchema = enumType([
7249
- "unpublished",
7250
7521
  "unclaimed",
7251
7522
  "validated",
7252
7523
  "published",
7253
7524
  "verified",
7254
7525
  "hardened"
7255
7526
  ]);
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
7527
  const skillStatusNextStepSchema = objectType({
7275
7528
  kind: enumType([
7276
7529
  "setup_validate",
@@ -7278,8 +7531,8 @@ const skillStatusNextStepSchema = objectType({
7278
7531
  "verify_domain",
7279
7532
  "harden_workflow",
7280
7533
  "share_status"
7281
- ]).optional(),
7282
- priority: numberType().int().optional(),
7534
+ ]),
7535
+ priority: numberType().int(),
7283
7536
  id: stringType(),
7284
7537
  label: stringType(),
7285
7538
  description: stringType(),
@@ -7345,6 +7598,11 @@ const skillStatusPreviewMetadataSchema = objectType({
7345
7598
  expiresAt: stringType(),
7346
7599
  statusUrl: stringType()
7347
7600
  }).passthrough();
7601
+ const skillStatusChecksSchema = objectType({
7602
+ repoCommitIntegrity: booleanType(),
7603
+ manifestIntegrity: booleanType(),
7604
+ domainProof: booleanType()
7605
+ }).passthrough();
7348
7606
  const skillStatusVerificationSignalsSchema = objectType({
7349
7607
  publisherBound: booleanType(),
7350
7608
  domainProof: booleanType(),
@@ -7358,20 +7616,6 @@ const skillStatusProvenanceSignalsSchema = objectType({
7358
7616
  previewAvailable: booleanType(),
7359
7617
  previewAuthoritative: booleanType()
7360
7618
  }).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
7619
  const skillStatusResponseSchema = objectType({
7376
7620
  name: stringType(),
7377
7621
  version: stringType().nullable(),
@@ -7381,16 +7625,44 @@ const skillStatusResponseSchema = objectType({
7381
7625
  badgeMetric: skillBadgeMetricSchema,
7382
7626
  checks: skillStatusChecksSchema,
7383
7627
  nextSteps: arrayType(skillStatusNextStepSchema),
7384
- verificationSignals: skillStatusVerificationSignalsSchema.default(
7385
- skillStatusDefaultVerificationSignals
7386
- ),
7387
- provenanceSignals: skillStatusProvenanceSignalsSchema.default(
7388
- skillStatusDefaultProvenanceSignals
7389
- ),
7390
- publisher: skillPublisherMetadataSchema.nullable().optional(),
7628
+ verificationSignals: skillStatusVerificationSignalsSchema,
7629
+ provenanceSignals: skillStatusProvenanceSignalsSchema,
7630
+ publisher: skillRegistryConfigResponseSchema.shape.publisher,
7391
7631
  preview: skillStatusPreviewMetadataSchema.nullable().optional(),
7392
7632
  statusUrl: stringType().nullable().optional()
7393
7633
  }).passthrough();
7634
+ const skillQuotePreviewRangeSchema = objectType({
7635
+ min: numberType(),
7636
+ max: numberType()
7637
+ }).passthrough();
7638
+ const skillQuotePreviewResponseSchema = objectType({
7639
+ estimatedCredits: skillQuotePreviewRangeSchema,
7640
+ estimatedHbar: skillQuotePreviewRangeSchema,
7641
+ pricingVersion: stringType(),
7642
+ assumptions: arrayType(stringType()),
7643
+ purchaseUrl: stringType().nullable(),
7644
+ publishUrl: stringType().nullable(),
7645
+ verificationUrl: stringType().nullable()
7646
+ }).passthrough();
7647
+ const skillConversionSignalsResponseSchema = objectType({
7648
+ repoUrl: stringType(),
7649
+ skillDir: stringType(),
7650
+ trustTier: skillTrustTierSchema,
7651
+ actionInstalled: booleanType(),
7652
+ previewUploaded: booleanType(),
7653
+ previewId: stringType().nullable(),
7654
+ lastValidateSuccessAt: stringType().nullable(),
7655
+ stalePreviewAgeDays: numberType().nullable(),
7656
+ published: booleanType(),
7657
+ verified: booleanType(),
7658
+ publishReady: booleanType(),
7659
+ publishBlockedByMissingAuth: booleanType(),
7660
+ statusUrl: stringType().nullable(),
7661
+ purchaseUrl: stringType().nullable(),
7662
+ publishUrl: stringType().nullable(),
7663
+ verificationUrl: stringType().nullable(),
7664
+ nextSteps: arrayType(skillStatusNextStepSchema)
7665
+ }).passthrough();
7394
7666
  const skillInstallArtifactDescriptorSchema = objectType({
7395
7667
  url: stringType(),
7396
7668
  pointer: stringType().nullable(),
@@ -7425,147 +7697,21 @@ const skillInstallResponseSchema = objectType({
7425
7697
  name: stringType(),
7426
7698
  version: stringType(),
7427
7699
  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()
7443
- }).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()
7700
+ network: unionType([literalType("mainnet"), literalType("testnet")]),
7701
+ detailUrl: stringType().nullable(),
7702
+ artifacts: objectType({
7703
+ skillMd: skillInstallArtifactDescriptorSchema,
7704
+ manifest: skillInstallArtifactDescriptorSchema
7705
+ }).passthrough(),
7706
+ resolvers: objectType({
7707
+ pinned: skillInstallResolverDescriptorSchema,
7708
+ latest: skillInstallResolverDescriptorSchema
7709
+ }).passthrough(),
7710
+ share: skillInstallShareDescriptorSchema,
7711
+ snippets: skillInstallSnippetSetSchema
7564
7712
  }).passthrough();
7565
- const skillRegistryVoteStatusResponseSchema = objectType({
7566
- name: stringType(),
7567
- upvotes: numberType().int(),
7568
- hasUpvoted: booleanType()
7713
+ const skillInstallCopyTelemetryResponseSchema = objectType({
7714
+ accepted: booleanType()
7569
7715
  }).passthrough();
7570
7716
  const skillVerificationTierSchema = enumType(["basic", "express"]);
7571
7717
  const skillVerificationStatusSchema = enumType([
@@ -8647,9 +8793,16 @@ async function endSession(client, sessionId) {
8647
8793
  const isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined";
8648
8794
  let nodeRequire;
8649
8795
  const isNodeRuntime = () => typeof process !== "undefined" && Boolean(process.versions?.node);
8796
+ function resolveBuiltinModuleLoader() {
8797
+ if (typeof process === "undefined") {
8798
+ return void 0;
8799
+ }
8800
+ return process.getBuiltinModule;
8801
+ }
8650
8802
  function getNodeRequireSync() {
8651
8803
  try {
8652
- const moduleNamespace = process.getBuiltinModule?.("module");
8804
+ const builtinModuleLoader = resolveBuiltinModuleLoader();
8805
+ const moduleNamespace = builtinModuleLoader?.("module");
8653
8806
  if (typeof moduleNamespace?.createRequire === "function") {
8654
8807
  const requireFromModule = moduleNamespace.createRequire(import.meta.url);
8655
8808
  if (typeof requireFromModule.resolve === "function") {
@@ -9042,6 +9195,61 @@ async function adapterRegistrySubmissionStatus(client, submissionId) {
9042
9195
  "adapter registry submission status response"
9043
9196
  );
9044
9197
  }
9198
+ async function getCreditsBalance(client, params = {}) {
9199
+ const query = new URLSearchParams();
9200
+ const normalizedAccountId = params.accountId?.trim();
9201
+ if (normalizedAccountId) {
9202
+ query.set("accountId", normalizedAccountId);
9203
+ }
9204
+ const suffix = query.size > 0 ? `?${query.toString()}` : "";
9205
+ const raw = await client.requestJson(`/credits/balance${suffix}`, {
9206
+ method: "GET"
9207
+ });
9208
+ return client.parseWithSchema(
9209
+ raw,
9210
+ creditBalanceResponseSchema,
9211
+ "credit balance response"
9212
+ );
9213
+ }
9214
+ async function getCreditProviders(client) {
9215
+ const raw = await client.requestJson("/credits/providers", {
9216
+ method: "GET"
9217
+ });
9218
+ return client.parseWithSchema(
9219
+ raw,
9220
+ creditProvidersResponseSchema,
9221
+ "credit providers response"
9222
+ );
9223
+ }
9224
+ async function createHbarPurchaseIntent(client, payload) {
9225
+ const body = {};
9226
+ const normalizedAccountId = payload.accountId?.trim();
9227
+ if (normalizedAccountId) {
9228
+ body.accountId = normalizedAccountId;
9229
+ }
9230
+ if (payload.credits !== void 0) {
9231
+ body.credits = payload.credits;
9232
+ }
9233
+ if (payload.hbarAmount !== void 0) {
9234
+ body.hbarAmount = payload.hbarAmount;
9235
+ }
9236
+ if (payload.memo?.trim()) {
9237
+ body.memo = payload.memo.trim();
9238
+ }
9239
+ const raw = await client.requestJson(
9240
+ "/credits/payments/hbar/intent",
9241
+ {
9242
+ method: "POST",
9243
+ headers: { "content-type": "application/json" },
9244
+ body
9245
+ }
9246
+ );
9247
+ return client.parseWithSchema(
9248
+ raw,
9249
+ hbarPurchaseIntentResponseSchema,
9250
+ "hbar purchase intent response"
9251
+ );
9252
+ }
9045
9253
  async function loadX402Dependencies(client) {
9046
9254
  const [{ default: axios2 }, x402Axios, x402Types] = await Promise.all([
9047
9255
  Promise.resolve().then(() => index$1),
@@ -9562,6 +9770,95 @@ async function registerOwnedMoltbookAgent(client, uaid, request) {
9562
9770
  "moltbook owner registration update response"
9563
9771
  );
9564
9772
  }
9773
+ async function getGuardSession(client) {
9774
+ const raw = await client.requestJson("/guard/auth/session", {
9775
+ method: "GET"
9776
+ });
9777
+ return client.parseWithSchema(
9778
+ raw,
9779
+ guardSessionResponseSchema,
9780
+ "guard session response"
9781
+ );
9782
+ }
9783
+ async function getGuardEntitlements(client) {
9784
+ const raw = await client.requestJson("/guard/entitlements", {
9785
+ method: "GET"
9786
+ });
9787
+ return client.parseWithSchema(
9788
+ raw,
9789
+ guardSessionResponseSchema,
9790
+ "guard entitlements response"
9791
+ );
9792
+ }
9793
+ async function getGuardBillingBalance(client) {
9794
+ const raw = await client.requestJson("/guard/billing/balance", {
9795
+ method: "GET"
9796
+ });
9797
+ return client.parseWithSchema(
9798
+ raw,
9799
+ guardBalanceResponseSchema,
9800
+ "guard billing balance response"
9801
+ );
9802
+ }
9803
+ async function getGuardTrustByHash(client, sha2562) {
9804
+ const normalizedHash = sha2562.trim();
9805
+ if (!normalizedHash) {
9806
+ throw new Error("sha256 is required");
9807
+ }
9808
+ const raw = await client.requestJson(
9809
+ `/guard/trust/by-hash/${encodeURIComponent(normalizedHash)}`,
9810
+ { method: "GET" }
9811
+ );
9812
+ return client.parseWithSchema(
9813
+ raw,
9814
+ guardTrustByHashResponseSchema,
9815
+ "guard trust by hash response"
9816
+ );
9817
+ }
9818
+ async function resolveGuardTrust(client, query) {
9819
+ const params = new URLSearchParams();
9820
+ if (query.ecosystem?.trim()) {
9821
+ params.set("ecosystem", query.ecosystem.trim());
9822
+ }
9823
+ if (query.name?.trim()) {
9824
+ params.set("name", query.name.trim());
9825
+ }
9826
+ if (query.version?.trim()) {
9827
+ params.set("version", query.version.trim());
9828
+ }
9829
+ const suffix = params.size > 0 ? `?${params.toString()}` : "";
9830
+ const raw = await client.requestJson(
9831
+ `/guard/trust/resolve${suffix}`,
9832
+ { method: "GET" }
9833
+ );
9834
+ return client.parseWithSchema(
9835
+ raw,
9836
+ guardTrustResolveResponseSchema,
9837
+ "guard trust resolve response"
9838
+ );
9839
+ }
9840
+ async function getGuardRevocations(client) {
9841
+ const raw = await client.requestJson("/guard/revocations", {
9842
+ method: "GET"
9843
+ });
9844
+ return client.parseWithSchema(
9845
+ raw,
9846
+ guardRevocationResponseSchema,
9847
+ "guard revocations response"
9848
+ );
9849
+ }
9850
+ async function syncGuardReceipts(client, payload) {
9851
+ const raw = await client.requestJson("/guard/receipts/sync", {
9852
+ method: "POST",
9853
+ headers: { "content-type": "application/json" },
9854
+ body: payload
9855
+ });
9856
+ return client.parseWithSchema(
9857
+ raw,
9858
+ guardReceiptSyncResponseSchema,
9859
+ "guard receipt sync response"
9860
+ );
9861
+ }
9565
9862
  const normalise = (value) => value.trim().toLowerCase();
9566
9863
  const HEDERA_NETWORK_ALIASES = /* @__PURE__ */ new Map([
9567
9864
  ["hedera:mainnet", { canonical: "hedera:mainnet", hederaNetwork: "mainnet" }],
@@ -10121,6 +10418,13 @@ async function facets(client, adapter) {
10121
10418
  "search facets response"
10122
10419
  );
10123
10420
  }
10421
+ function requireTrimmedString(value, fieldName) {
10422
+ const normalizedValue = value.trim();
10423
+ if (!normalizedValue) {
10424
+ throw new Error(`${fieldName} is required`);
10425
+ }
10426
+ return normalizedValue;
10427
+ }
10124
10428
  async function skillsConfig(client) {
10125
10429
  const raw = await client.requestJson("/skills/config", {
10126
10430
  method: "GET"
@@ -10131,57 +10435,6 @@ async function skillsConfig(client) {
10131
10435
  "skill registry config response"
10132
10436
  );
10133
10437
  }
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
10438
  async function listSkills(client, params = {}) {
10186
10439
  const query = new URLSearchParams();
10187
10440
  if (params.name) {
@@ -10231,10 +10484,7 @@ async function listSkills(client, params = {}) {
10231
10484
  );
10232
10485
  }
10233
10486
  async function getSkillSecurityBreakdown(client, params) {
10234
- const normalizedJobId = params.jobId.trim();
10235
- if (!normalizedJobId) {
10236
- throw new Error("jobId is required");
10237
- }
10487
+ const normalizedJobId = requireTrimmedString(params.jobId, "jobId");
10238
10488
  const raw = await client.requestJson(
10239
10489
  `/skills/${encodeURIComponent(normalizedJobId)}/security-breakdown`,
10240
10490
  { method: "GET" }
@@ -10287,10 +10537,7 @@ async function getSkillsCatalog(client, params = {}) {
10287
10537
  );
10288
10538
  }
10289
10539
  async function listSkillVersions(client, params) {
10290
- const normalizedName = params.name.trim();
10291
- if (!normalizedName) {
10292
- throw new Error("name is required");
10293
- }
10540
+ const normalizedName = requireTrimmedString(params.name, "name");
10294
10541
  const query = new URLSearchParams();
10295
10542
  query.set("name", normalizedName);
10296
10543
  const raw = await client.requestJson(
@@ -10351,6 +10598,18 @@ async function quoteSkillPublish(client, payload) {
10351
10598
  "skill registry quote response"
10352
10599
  );
10353
10600
  }
10601
+ async function quoteSkillPublishPreview(client, payload) {
10602
+ const raw = await client.requestJson("/skills/quote-preview", {
10603
+ method: "POST",
10604
+ body: payload,
10605
+ headers: { "content-type": "application/json" }
10606
+ });
10607
+ return client.parseWithSchema(
10608
+ raw,
10609
+ skillQuotePreviewResponseSchema,
10610
+ "skill quote preview response"
10611
+ );
10612
+ }
10354
10613
  async function publishSkill(client, payload) {
10355
10614
  const raw = await client.requestJson("/skills/publish", {
10356
10615
  method: "POST",
@@ -10364,10 +10623,7 @@ async function publishSkill(client, payload) {
10364
10623
  );
10365
10624
  }
10366
10625
  async function getSkillPublishJob(client, jobId, params = {}) {
10367
- const normalized = jobId.trim();
10368
- if (!normalized) {
10369
- throw new Error("jobId is required");
10370
- }
10626
+ const normalized = requireTrimmedString(jobId, "jobId");
10371
10627
  const query = new URLSearchParams();
10372
10628
  if (params.accountId) {
10373
10629
  query.set("accountId", params.accountId);
@@ -10384,10 +10640,7 @@ async function getSkillPublishJob(client, jobId, params = {}) {
10384
10640
  );
10385
10641
  }
10386
10642
  async function getSkillOwnership(client, params) {
10387
- const normalizedName = params.name.trim();
10388
- if (!normalizedName) {
10389
- throw new Error("name is required");
10390
- }
10643
+ const normalizedName = requireTrimmedString(params.name, "name");
10391
10644
  const query = new URLSearchParams();
10392
10645
  query.set("name", normalizedName);
10393
10646
  if (params.accountId) {
@@ -10406,10 +10659,7 @@ async function getSkillOwnership(client, params) {
10406
10659
  );
10407
10660
  }
10408
10661
  async function getRecommendedSkillVersion(client, params) {
10409
- const normalizedName = params.name.trim();
10410
- if (!normalizedName) {
10411
- throw new Error("name is required");
10412
- }
10662
+ const normalizedName = requireTrimmedString(params.name, "name");
10413
10663
  const query = new URLSearchParams();
10414
10664
  query.set("name", normalizedName);
10415
10665
  const raw = await client.requestJson(
@@ -10423,14 +10673,8 @@ async function getRecommendedSkillVersion(client, params) {
10423
10673
  );
10424
10674
  }
10425
10675
  async function setRecommendedSkillVersion(client, payload) {
10426
- const normalizedName = payload.name.trim();
10427
- const normalizedVersion = payload.version.trim();
10428
- if (!normalizedName) {
10429
- throw new Error("name is required");
10430
- }
10431
- if (!normalizedVersion) {
10432
- throw new Error("version is required");
10433
- }
10676
+ const normalizedName = requireTrimmedString(payload.name, "name");
10677
+ const normalizedVersion = requireTrimmedString(payload.version, "version");
10434
10678
  const raw = await client.requestJson("/skills/recommended", {
10435
10679
  method: "POST",
10436
10680
  body: {
@@ -10446,10 +10690,7 @@ async function setRecommendedSkillVersion(client, payload) {
10446
10690
  );
10447
10691
  }
10448
10692
  async function getSkillDeprecations(client, params) {
10449
- const normalizedName = params.name.trim();
10450
- if (!normalizedName) {
10451
- throw new Error("name is required");
10452
- }
10693
+ const normalizedName = requireTrimmedString(params.name, "name");
10453
10694
  const query = new URLSearchParams();
10454
10695
  query.set("name", normalizedName);
10455
10696
  const raw = await client.requestJson(
@@ -10463,15 +10704,9 @@ async function getSkillDeprecations(client, params) {
10463
10704
  );
10464
10705
  }
10465
10706
  async function setSkillDeprecation(client, payload) {
10466
- const normalizedName = payload.name.trim();
10467
- if (!normalizedName) {
10468
- throw new Error("name is required");
10469
- }
10707
+ const normalizedName = requireTrimmedString(payload.name, "name");
10470
10708
  const version2 = payload.version?.trim();
10471
- const reason = payload.reason.trim();
10472
- if (!reason) {
10473
- throw new Error("reason is required");
10474
- }
10709
+ const reason = requireTrimmedString(payload.reason, "reason");
10475
10710
  const replacementRef = payload.replacementRef?.trim();
10476
10711
  const raw = await client.requestJson("/skills/deprecate", {
10477
10712
  method: "POST",
@@ -10490,10 +10725,7 @@ async function setSkillDeprecation(client, payload) {
10490
10725
  );
10491
10726
  }
10492
10727
  async function getSkillBadge(client, params) {
10493
- const normalizedName = params.name.trim();
10494
- if (!normalizedName) {
10495
- throw new Error("name is required");
10496
- }
10728
+ const normalizedName = requireTrimmedString(params.name, "name");
10497
10729
  const query = new URLSearchParams();
10498
10730
  query.set("name", normalizedName);
10499
10731
  if (params.metric) {
@@ -10515,11 +10747,63 @@ async function getSkillBadge(client, params) {
10515
10747
  "skill badge response"
10516
10748
  );
10517
10749
  }
10518
- async function uploadSkillPreviewFromGithubOidc(client, payload) {
10519
- const token = payload.token.trim();
10520
- if (!token) {
10521
- throw new Error("token is required");
10750
+ async function getSkillStatus(client, params) {
10751
+ const normalizedName = requireTrimmedString(params.name, "name");
10752
+ const query = new URLSearchParams();
10753
+ query.set("name", normalizedName);
10754
+ if (params.version?.trim()) {
10755
+ query.set("version", params.version.trim());
10756
+ }
10757
+ const raw = await client.requestJson(
10758
+ `/skills/status?${query.toString()}`,
10759
+ { method: "GET" }
10760
+ );
10761
+ return client.parseWithSchema(
10762
+ raw,
10763
+ skillStatusResponseSchema,
10764
+ "skill status response"
10765
+ );
10766
+ }
10767
+ async function getSkillStatusByRepo(client, params) {
10768
+ const repo = requireTrimmedString(params.repo, "repo");
10769
+ const skillDir = requireTrimmedString(params.skillDir, "skillDir");
10770
+ const query = new URLSearchParams();
10771
+ query.set("repo", repo);
10772
+ query.set("skillDir", skillDir);
10773
+ if (params.ref?.trim()) {
10774
+ query.set("ref", params.ref.trim());
10775
+ }
10776
+ const raw = await client.requestJson(
10777
+ `/skills/status/by-repo?${query.toString()}`,
10778
+ { method: "GET" }
10779
+ );
10780
+ return client.parseWithSchema(
10781
+ raw,
10782
+ skillStatusResponseSchema,
10783
+ "skill status response"
10784
+ );
10785
+ }
10786
+ async function getSkillConversionSignalsByRepo(client, params) {
10787
+ const repo = requireTrimmedString(params.repo, "repo");
10788
+ const skillDir = requireTrimmedString(params.skillDir, "skillDir");
10789
+ const query = new URLSearchParams();
10790
+ query.set("repo", repo);
10791
+ query.set("skillDir", skillDir);
10792
+ if (params.ref?.trim()) {
10793
+ query.set("ref", params.ref.trim());
10522
10794
  }
10795
+ const raw = await client.requestJson(
10796
+ `/skills/conversion-signals/by-repo?${query.toString()}`,
10797
+ { method: "GET" }
10798
+ );
10799
+ return client.parseWithSchema(
10800
+ raw,
10801
+ skillConversionSignalsResponseSchema,
10802
+ "skill conversion signals response"
10803
+ );
10804
+ }
10805
+ async function uploadSkillPreviewFromGithubOidc(client, payload) {
10806
+ const token = requireTrimmedString(payload.token, "token");
10523
10807
  const raw = await client.requestJson(
10524
10808
  "/skills/preview/github-oidc",
10525
10809
  {
@@ -10538,10 +10822,7 @@ async function uploadSkillPreviewFromGithubOidc(client, payload) {
10538
10822
  );
10539
10823
  }
10540
10824
  async function getSkillPreview(client, params) {
10541
- const normalizedName = params.name.trim();
10542
- if (!normalizedName) {
10543
- throw new Error("name is required");
10544
- }
10825
+ const normalizedName = requireTrimmedString(params.name, "name");
10545
10826
  const query = new URLSearchParams();
10546
10827
  query.set("name", normalizedName);
10547
10828
  if (params.version?.trim()) {
@@ -10558,9 +10839,16 @@ async function getSkillPreview(client, params) {
10558
10839
  );
10559
10840
  }
10560
10841
  async function getSkillPreviewByRepo(client, params) {
10561
- const query = buildRepoPreviewQuery(params);
10842
+ const repo = requireTrimmedString(params.repo, "repo");
10843
+ const skillDir = requireTrimmedString(params.skillDir, "skillDir");
10844
+ const query = new URLSearchParams();
10845
+ query.set("repo", repo);
10846
+ query.set("skillDir", skillDir);
10847
+ if (params.ref?.trim()) {
10848
+ query.set("ref", params.ref.trim());
10849
+ }
10562
10850
  const raw = await client.requestJson(
10563
- `/skills/preview/by-repo?${query}`,
10851
+ `/skills/preview/by-repo?${query.toString()}`,
10564
10852
  { method: "GET" }
10565
10853
  );
10566
10854
  return client.parseWithSchema(
@@ -10570,10 +10858,7 @@ async function getSkillPreviewByRepo(client, params) {
10570
10858
  );
10571
10859
  }
10572
10860
  async function getSkillPreviewById(client, previewId) {
10573
- const normalizedPreviewId = previewId.trim();
10574
- if (!normalizedPreviewId) {
10575
- throw new Error("previewId is required");
10576
- }
10861
+ const normalizedPreviewId = requireTrimmedString(previewId, "previewId");
10577
10862
  const raw = await client.requestJson(
10578
10863
  `/skills/preview/${encodeURIComponent(normalizedPreviewId)}`,
10579
10864
  { method: "GET" }
@@ -10585,10 +10870,7 @@ async function getSkillPreviewById(client, previewId) {
10585
10870
  );
10586
10871
  }
10587
10872
  async function getSkillInstall(client, skillRef) {
10588
- const normalizedSkillRef = skillRef.trim();
10589
- if (!normalizedSkillRef) {
10590
- throw new Error("skillRef is required");
10591
- }
10873
+ const normalizedSkillRef = requireTrimmedString(skillRef, "skillRef");
10592
10874
  const raw = await client.requestJson(
10593
10875
  `/skills/${encodeURIComponent(normalizedSkillRef)}/install`,
10594
10876
  { method: "GET" }
@@ -10600,10 +10882,7 @@ async function getSkillInstall(client, skillRef) {
10600
10882
  );
10601
10883
  }
10602
10884
  async function recordSkillInstallCopy(client, skillRef, payload = {}) {
10603
- const normalizedSkillRef = skillRef.trim();
10604
- if (!normalizedSkillRef) {
10605
- throw new Error("skillRef is required");
10606
- }
10885
+ const normalizedSkillRef = requireTrimmedString(skillRef, "skillRef");
10607
10886
  const raw = await client.requestJson(
10608
10887
  `/skills/${encodeURIComponent(normalizedSkillRef)}/telemetry/install-copy`,
10609
10888
  {
@@ -10639,10 +10918,7 @@ async function listSkillCategories(client) {
10639
10918
  );
10640
10919
  }
10641
10920
  async function resolveSkillMarkdown(client, skillRef) {
10642
- const normalizedSkillRef = skillRef.trim();
10643
- if (!normalizedSkillRef) {
10644
- throw new Error("skillRef is required");
10645
- }
10921
+ const normalizedSkillRef = requireTrimmedString(skillRef, "skillRef");
10646
10922
  const response = await client.request(
10647
10923
  `/skills/${encodeURIComponent(normalizedSkillRef)}/SKILL.md`,
10648
10924
  {
@@ -10655,10 +10931,7 @@ async function resolveSkillMarkdown(client, skillRef) {
10655
10931
  return response.text();
10656
10932
  }
10657
10933
  async function resolveSkillManifest(client, skillRef) {
10658
- const normalizedSkillRef = skillRef.trim();
10659
- if (!normalizedSkillRef) {
10660
- throw new Error("skillRef is required");
10661
- }
10934
+ const normalizedSkillRef = requireTrimmedString(skillRef, "skillRef");
10662
10935
  const raw = await client.requestJson(
10663
10936
  `/skills/${encodeURIComponent(normalizedSkillRef)}/manifest`,
10664
10937
  {
@@ -10672,10 +10945,7 @@ async function resolveSkillManifest(client, skillRef) {
10672
10945
  );
10673
10946
  }
10674
10947
  async function getSkillVoteStatus(client, params) {
10675
- const normalizedName = params.name.trim();
10676
- if (!normalizedName) {
10677
- throw new Error("name is required");
10678
- }
10948
+ const normalizedName = requireTrimmedString(params.name, "name");
10679
10949
  const query = new URLSearchParams();
10680
10950
  query.set("name", normalizedName);
10681
10951
  const raw = await client.requestJson(
@@ -10689,10 +10959,7 @@ async function getSkillVoteStatus(client, params) {
10689
10959
  );
10690
10960
  }
10691
10961
  async function setSkillVote(client, payload) {
10692
- const normalizedName = payload.name.trim();
10693
- if (!normalizedName) {
10694
- throw new Error("name is required");
10695
- }
10962
+ const normalizedName = requireTrimmedString(payload.name, "name");
10696
10963
  const raw = await client.requestJson("/skills/vote", {
10697
10964
  method: "POST",
10698
10965
  body: { name: normalizedName, upvoted: payload.upvoted },
@@ -10705,10 +10972,7 @@ async function setSkillVote(client, payload) {
10705
10972
  );
10706
10973
  }
10707
10974
  async function requestSkillVerification(client, payload) {
10708
- const normalizedName = payload.name.trim();
10709
- if (!normalizedName) {
10710
- throw new Error("name is required");
10711
- }
10975
+ const normalizedName = requireTrimmedString(payload.name, "name");
10712
10976
  const raw = await client.requestJson(
10713
10977
  "/skills/verification/request",
10714
10978
  {
@@ -10728,10 +10992,7 @@ async function requestSkillVerification(client, payload) {
10728
10992
  );
10729
10993
  }
10730
10994
  async function getSkillVerificationStatus(client, params) {
10731
- const normalizedName = params.name.trim();
10732
- if (!normalizedName) {
10733
- throw new Error("name is required");
10734
- }
10995
+ const normalizedName = requireTrimmedString(params.name, "name");
10735
10996
  const query = new URLSearchParams();
10736
10997
  query.set("name", normalizedName);
10737
10998
  if (params.version) {
@@ -10748,10 +11009,7 @@ async function getSkillVerificationStatus(client, params) {
10748
11009
  );
10749
11010
  }
10750
11011
  async function createSkillDomainProofChallenge(client, payload) {
10751
- const normalizedName = payload.name.trim();
10752
- if (!normalizedName) {
10753
- throw new Error("name is required");
10754
- }
11012
+ const normalizedName = requireTrimmedString(payload.name, "name");
10755
11013
  const raw = await client.requestJson(
10756
11014
  "/skills/verification/domain/challenge",
10757
11015
  {
@@ -10771,14 +11029,11 @@ async function createSkillDomainProofChallenge(client, payload) {
10771
11029
  );
10772
11030
  }
10773
11031
  async function verifySkillDomainProof(client, payload) {
10774
- const normalizedName = payload.name.trim();
10775
- const challengeToken = payload.challengeToken.trim();
10776
- if (!normalizedName) {
10777
- throw new Error("name is required");
10778
- }
10779
- if (!challengeToken) {
10780
- throw new Error("challengeToken is required");
10781
- }
11032
+ const normalizedName = requireTrimmedString(payload.name, "name");
11033
+ const challengeToken = requireTrimmedString(
11034
+ payload.challengeToken,
11035
+ "challengeToken"
11036
+ );
10782
11037
  const raw = await client.requestJson(
10783
11038
  "/skills/verification/domain/verify",
10784
11039
  {
@@ -11135,15 +11390,9 @@ class RegistryBrokerClient {
11135
11390
  async skillsConfig() {
11136
11391
  return skillsConfig(this);
11137
11392
  }
11138
- async getSkillStatus(params) {
11139
- return getSkillStatus(this, params);
11140
- }
11141
11393
  async listSkills(options) {
11142
11394
  return listSkills(this, options);
11143
11395
  }
11144
- async getSkillSecurityBreakdown(params) {
11145
- return getSkillSecurityBreakdown(this, params);
11146
- }
11147
11396
  async getSkillsCatalog(options) {
11148
11397
  return getSkillsCatalog(this, options);
11149
11398
  }
@@ -11159,6 +11408,9 @@ class RegistryBrokerClient {
11159
11408
  async quoteSkillPublish(payload) {
11160
11409
  return quoteSkillPublish(this, payload);
11161
11410
  }
11411
+ async quoteSkillPublishPreview(payload) {
11412
+ return quoteSkillPublishPreview(this, payload);
11413
+ }
11162
11414
  async publishSkill(payload) {
11163
11415
  return publishSkill(this, payload);
11164
11416
  }
@@ -11183,9 +11435,18 @@ class RegistryBrokerClient {
11183
11435
  async getSkillBadge(params) {
11184
11436
  return getSkillBadge(this, params);
11185
11437
  }
11438
+ async getSkillStatus(params) {
11439
+ return getSkillStatus(this, params);
11440
+ }
11441
+ async getSkillSecurityBreakdown(params) {
11442
+ return getSkillSecurityBreakdown(this, params);
11443
+ }
11186
11444
  async getSkillStatusByRepo(params) {
11187
11445
  return getSkillStatusByRepo(this, params);
11188
11446
  }
11447
+ async getSkillConversionSignalsByRepo(params) {
11448
+ return getSkillConversionSignalsByRepo(this, params);
11449
+ }
11189
11450
  async uploadSkillPreviewFromGithubOidc(payload) {
11190
11451
  return uploadSkillPreviewFromGithubOidc(this, payload);
11191
11452
  }
@@ -11384,6 +11645,36 @@ class RegistryBrokerClient {
11384
11645
  async dashboardStats() {
11385
11646
  return dashboardStats(this);
11386
11647
  }
11648
+ async getCreditsBalance(params = {}) {
11649
+ return getCreditsBalance(this, params);
11650
+ }
11651
+ async getCreditProviders() {
11652
+ return getCreditProviders(this);
11653
+ }
11654
+ async getGuardSession() {
11655
+ return getGuardSession(this);
11656
+ }
11657
+ async getGuardEntitlements() {
11658
+ return getGuardEntitlements(this);
11659
+ }
11660
+ async getGuardBillingBalance() {
11661
+ return getGuardBillingBalance(this);
11662
+ }
11663
+ async getGuardTrustByHash(sha2562) {
11664
+ return getGuardTrustByHash(this, sha2562);
11665
+ }
11666
+ async resolveGuardTrust(query) {
11667
+ return resolveGuardTrust(this, query);
11668
+ }
11669
+ async getGuardRevocations() {
11670
+ return getGuardRevocations(this);
11671
+ }
11672
+ async syncGuardReceipts(payload) {
11673
+ return syncGuardReceipts(this, payload);
11674
+ }
11675
+ async createHbarPurchaseIntent(payload) {
11676
+ return createHbarPurchaseIntent(this, payload);
11677
+ }
11387
11678
  async purchaseCreditsWithHbar(params) {
11388
11679
  return purchaseCreditsWithHbar(this, params);
11389
11680
  }
@@ -11585,9 +11876,20 @@ class RegistryBrokerClient {
11585
11876
  }
11586
11877
  return nodeCrypto;
11587
11878
  }
11879
+ getSecureRandomBytes(size2, feature) {
11880
+ const webCrypto = globalThis.crypto;
11881
+ if (webCrypto && typeof webCrypto.getRandomValues === "function") {
11882
+ const bytes = new Uint8Array(size2);
11883
+ webCrypto.getRandomValues(bytes);
11884
+ return bytes;
11885
+ }
11886
+ return this.getNodeCrypto(feature).randomBytes(size2);
11887
+ }
11588
11888
  createEphemeralKeyPair() {
11589
- const { randomBytes: randomBytes2 } = this.getNodeCrypto("generateEphemeralKeyPair");
11590
- const privateKeyBytes = randomBytes2(32);
11889
+ const privateKeyBytes = this.getSecureRandomBytes(
11890
+ 32,
11891
+ "generateEphemeralKeyPair"
11892
+ );
11591
11893
  const publicKey = secp256k1$2.getPublicKey(privateKeyBytes, true);
11592
11894
  return {
11593
11895
  privateKey: Buffer$1.from(privateKeyBytes).toString("hex"),