@hashgraphonline/standards-sdk 0.1.182 → 0.1.184

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 (155) hide show
  1. package/dist/browser/services/registry-broker/client/base-client.d.ts +2 -1
  2. package/dist/browser/services/registry-broker/client/base-client.d.ts.map +1 -1
  3. package/dist/browser/services/registry-broker/client/chat.d.ts +3 -1
  4. package/dist/browser/services/registry-broker/client/chat.d.ts.map +1 -1
  5. package/dist/browser/services/registry-broker/index.d.ts +1 -0
  6. package/dist/browser/services/registry-broker/index.d.ts.map +1 -1
  7. package/dist/browser/services/registry-broker/schemas.d.ts +313 -28
  8. package/dist/browser/services/registry-broker/schemas.d.ts.map +1 -1
  9. package/dist/browser/services/registry-broker/types.d.ts +12 -1
  10. package/dist/browser/services/registry-broker/types.d.ts.map +1 -1
  11. package/dist/browser/standards-sdk.browser.js +45 -0
  12. package/dist/browser/standards-sdk.browser.js.map +1 -1
  13. package/dist/browser-root/services/registry-broker/client/base-client.d.ts +2 -1
  14. package/dist/browser-root/services/registry-broker/client/base-client.d.ts.map +1 -1
  15. package/dist/browser-root/services/registry-broker/client/chat.d.ts +3 -1
  16. package/dist/browser-root/services/registry-broker/client/chat.d.ts.map +1 -1
  17. package/dist/browser-root/services/registry-broker/index.d.ts +1 -0
  18. package/dist/browser-root/services/registry-broker/index.d.ts.map +1 -1
  19. package/dist/browser-root/services/registry-broker/schemas.d.ts +313 -28
  20. package/dist/browser-root/services/registry-broker/schemas.d.ts.map +1 -1
  21. package/dist/browser-root/services/registry-broker/types.d.ts +12 -1
  22. package/dist/browser-root/services/registry-broker/types.d.ts.map +1 -1
  23. package/dist/browser-root/standards-sdk.root-browser.js +77 -0
  24. package/dist/browser-root/standards-sdk.root-browser.js.map +1 -1
  25. package/dist/cjs/services/registry-broker/client/base-client.d.ts +2 -1
  26. package/dist/cjs/services/registry-broker/client/base-client.d.ts.map +1 -1
  27. package/dist/cjs/services/registry-broker/client/chat.d.ts +3 -1
  28. package/dist/cjs/services/registry-broker/client/chat.d.ts.map +1 -1
  29. package/dist/cjs/services/registry-broker/index.d.ts +1 -0
  30. package/dist/cjs/services/registry-broker/index.d.ts.map +1 -1
  31. package/dist/cjs/services/registry-broker/schemas.d.ts +313 -28
  32. package/dist/cjs/services/registry-broker/schemas.d.ts.map +1 -1
  33. package/dist/cjs/services/registry-broker/types.d.ts +12 -1
  34. package/dist/cjs/services/registry-broker/types.d.ts.map +1 -1
  35. package/dist/cjs/standards-sdk.cjs +2 -2
  36. package/dist/cjs/standards-sdk.cjs.map +1 -1
  37. package/dist/es/services/registry-broker/client/base-client.d.ts +2 -1
  38. package/dist/es/services/registry-broker/client/base-client.d.ts.map +1 -1
  39. package/dist/es/services/registry-broker/client/chat.d.ts +3 -1
  40. package/dist/es/services/registry-broker/client/chat.d.ts.map +1 -1
  41. package/dist/es/services/registry-broker/index.d.ts +1 -0
  42. package/dist/es/services/registry-broker/index.d.ts.map +1 -1
  43. package/dist/es/services/registry-broker/schemas.d.ts +313 -28
  44. package/dist/es/services/registry-broker/schemas.d.ts.map +1 -1
  45. package/dist/es/services/registry-broker/types.d.ts +12 -1
  46. package/dist/es/services/registry-broker/types.d.ts.map +1 -1
  47. package/dist/es/standards-sdk.es.js +12 -4
  48. package/dist/es/standards-sdk.es.js.map +1 -1
  49. package/dist/es/standards-sdk.es104.js +1 -1
  50. package/dist/es/standards-sdk.es106.js +1 -1
  51. package/dist/es/standards-sdk.es108.js +1 -1
  52. package/dist/es/standards-sdk.es11.js +1 -1
  53. package/dist/es/standards-sdk.es110.js +1 -1
  54. package/dist/es/standards-sdk.es116.js +1 -1
  55. package/dist/es/standards-sdk.es12.js +1 -1
  56. package/dist/es/standards-sdk.es121.js +1 -1
  57. package/dist/es/standards-sdk.es127.js +1 -1
  58. package/dist/es/standards-sdk.es128.js +5 -5
  59. package/dist/es/standards-sdk.es138.js +1 -1
  60. package/dist/es/standards-sdk.es139.js +1 -1
  61. package/dist/es/standards-sdk.es140.js +5 -5
  62. package/dist/es/standards-sdk.es142.js +1 -1
  63. package/dist/es/standards-sdk.es145.js +7 -4
  64. package/dist/es/standards-sdk.es145.js.map +1 -1
  65. package/dist/es/standards-sdk.es147.js +1 -1
  66. package/dist/es/standards-sdk.es148.js.map +1 -1
  67. package/dist/es/standards-sdk.es149.js +1 -1
  68. package/dist/es/standards-sdk.es152.js +2547 -159
  69. package/dist/es/standards-sdk.es152.js.map +1 -1
  70. package/dist/es/standards-sdk.es153.js +159 -7
  71. package/dist/es/standards-sdk.es153.js.map +1 -1
  72. package/dist/es/standards-sdk.es154.js +7 -86
  73. package/dist/es/standards-sdk.es154.js.map +1 -1
  74. package/dist/es/standards-sdk.es155.js +64 -43
  75. package/dist/es/standards-sdk.es155.js.map +1 -1
  76. package/dist/es/standards-sdk.es156.js +65 -30
  77. package/dist/es/standards-sdk.es156.js.map +1 -1
  78. package/dist/es/standards-sdk.es157.js +30 -34
  79. package/dist/es/standards-sdk.es157.js.map +1 -1
  80. package/dist/es/standards-sdk.es158.js +34 -48
  81. package/dist/es/standards-sdk.es158.js.map +1 -1
  82. package/dist/es/standards-sdk.es159.js +48 -138
  83. package/dist/es/standards-sdk.es159.js.map +1 -1
  84. package/dist/es/standards-sdk.es16.js +1 -1
  85. package/dist/es/standards-sdk.es160.js +133 -37
  86. package/dist/es/standards-sdk.es160.js.map +1 -1
  87. package/dist/es/standards-sdk.es161.js +42 -2494
  88. package/dist/es/standards-sdk.es161.js.map +1 -1
  89. package/dist/es/standards-sdk.es163.js +54 -15
  90. package/dist/es/standards-sdk.es163.js.map +1 -1
  91. package/dist/es/standards-sdk.es164.js +102 -47
  92. package/dist/es/standards-sdk.es164.js.map +1 -1
  93. package/dist/es/standards-sdk.es165.js +64 -94
  94. package/dist/es/standards-sdk.es165.js.map +1 -1
  95. package/dist/es/standards-sdk.es166.js +180 -61
  96. package/dist/es/standards-sdk.es166.js.map +1 -1
  97. package/dist/es/standards-sdk.es167.js +14 -197
  98. package/dist/es/standards-sdk.es167.js.map +1 -1
  99. package/dist/es/standards-sdk.es168.js +658 -158
  100. package/dist/es/standards-sdk.es168.js.map +1 -1
  101. package/dist/es/standards-sdk.es169.js +139 -289
  102. package/dist/es/standards-sdk.es169.js.map +1 -1
  103. package/dist/es/standards-sdk.es170.js +274 -298
  104. package/dist/es/standards-sdk.es170.js.map +1 -1
  105. package/dist/es/standards-sdk.es171.js +262 -369
  106. package/dist/es/standards-sdk.es171.js.map +1 -1
  107. package/dist/es/standards-sdk.es172.js +316 -194
  108. package/dist/es/standards-sdk.es172.js.map +1 -1
  109. package/dist/es/standards-sdk.es173.js +319 -64
  110. package/dist/es/standards-sdk.es173.js.map +1 -1
  111. package/dist/es/standards-sdk.es174.js +68 -664
  112. package/dist/es/standards-sdk.es174.js.map +1 -1
  113. package/dist/es/standards-sdk.es176.js +1 -1
  114. package/dist/es/standards-sdk.es177.js +24 -1
  115. package/dist/es/standards-sdk.es177.js.map +1 -1
  116. package/dist/es/standards-sdk.es179.js +2 -2
  117. package/dist/es/standards-sdk.es18.js +3 -3
  118. package/dist/es/standards-sdk.es180.js +1 -1
  119. package/dist/es/standards-sdk.es181.js +1 -1
  120. package/dist/es/standards-sdk.es182.js +2 -2
  121. package/dist/es/standards-sdk.es183.js +1 -1
  122. package/dist/es/standards-sdk.es184.js +1 -1
  123. package/dist/es/standards-sdk.es185.js +1 -1
  124. package/dist/es/standards-sdk.es19.js +1 -1
  125. package/dist/es/standards-sdk.es22.js +1 -1
  126. package/dist/es/standards-sdk.es27.js +3 -3
  127. package/dist/es/standards-sdk.es35.js +1 -1
  128. package/dist/es/standards-sdk.es36.js +2 -2
  129. package/dist/es/standards-sdk.es4.js +1 -1
  130. package/dist/es/standards-sdk.es53.js +1 -1
  131. package/dist/es/standards-sdk.es56.js +1 -1
  132. package/dist/es/standards-sdk.es59.js +1 -1
  133. package/dist/es/standards-sdk.es60.js +1 -1
  134. package/dist/es/standards-sdk.es62.js +1 -1
  135. package/dist/es/standards-sdk.es63.js +2 -2
  136. package/dist/es/standards-sdk.es64.js +1 -1
  137. package/dist/es/standards-sdk.es65.js +1 -1
  138. package/dist/es/standards-sdk.es66.js +1 -1
  139. package/dist/es/standards-sdk.es67.js +2 -2
  140. package/dist/es/standards-sdk.es69.js +1 -1
  141. package/dist/es/standards-sdk.es7.js +1 -1
  142. package/dist/es/standards-sdk.es71.js +1 -1
  143. package/dist/es/standards-sdk.es72.js +2 -2
  144. package/dist/es/standards-sdk.es75.js +2 -2
  145. package/dist/es/standards-sdk.es76.js +1 -1
  146. package/dist/es/standards-sdk.es78.js +1 -1
  147. package/dist/es/standards-sdk.es83.js +1 -1
  148. package/dist/es/standards-sdk.es84.js +1 -1
  149. package/dist/es/standards-sdk.es85.js +1 -1
  150. package/dist/es/standards-sdk.es88.js +1 -1
  151. package/dist/es/standards-sdk.es90.js +1 -1
  152. package/dist/es/standards-sdk.es94.js +3 -3
  153. package/dist/es/standards-sdk.es98.js +1 -1
  154. package/dist/es/standards-sdk.es99.js +1 -1
  155. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"standards-sdk.es148.js","sources":["../../src/services/registry-broker/types.ts"],"sourcesContent":["import { z } from 'zod';\nimport type { Signer } from '@hashgraph/sdk';\nimport type { Buffer } from 'buffer';\nimport type {\n AdapterConfigContext,\n AdapterManifest,\n AdapterPackage,\n} from '../../hcs-21/types';\nimport {\n adaptersResponseSchema,\n createSessionResponseSchema,\n encryptionHandshakeResponseSchema,\n detectProtocolResponseSchema,\n dashboardStatsResponseSchema,\n delegationPlanResponseSchema,\n metricsSummaryResponseSchema,\n popularResponseSchema,\n protocolsResponseSchema,\n registerAgentResponseSchema,\n registrationQuoteResponseSchema,\n creditProviderSummarySchema,\n creditProvidersResponseSchema,\n creditBalanceResponseSchema,\n guardBalanceResponseSchema,\n guardBucketBalanceSchema,\n guardEntitlementsSchema,\n guardFeedItemSchema,\n guardFeedResponseSchema,\n guardFeedSummarySchema,\n guardOverviewResponseSchema,\n guardPolicySchema,\n guardPlanIdSchema,\n guardPrincipalSchema,\n guardHistoryArtifactSchema,\n guardReceiptSchema,\n guardReceiptHistoryResponseSchema,\n guardReceiptSyncResponseSchema,\n guardInventoryArtifactSchema,\n guardInventoryResponseSchema,\n guardAbomSummarySchema,\n guardAbomResponseSchema,\n guardTimelineEventSchema,\n guardArtifactTimelineResponseSchema,\n guardReceiptExportSummarySchema,\n guardExportSignatureSchema,\n guardReceiptExportResponseSchema,\n guardAlertPreferencesSchema,\n guardWatchlistItemSchema,\n guardWatchlistLookupResponseSchema,\n guardWatchlistResponseSchema,\n guardPainSignalSchema,\n guardPainSignalListResponseSchema,\n guardPainSignalAggregateSchema,\n guardPainSignalAggregateResponseSchema,\n guardInventoryDiffEntrySchema,\n guardInventoryDiffResponseSchema,\n guardExceptionItemSchema,\n guardExceptionListResponseSchema,\n guardPreflightEvidenceSchema,\n guardPreflightRequestSchema,\n guardPreflightVerdictResponseSchema,\n guardTeamPolicyAuditItemSchema,\n guardTeamPolicyPackSchema,\n guardDeviceSchema,\n guardDeviceListResponseSchema,\n guardRevocationResponseSchema,\n guardSessionResponseSchema,\n guardTrustByHashResponseSchema,\n guardTrustMatchSchema,\n guardTrustResolveResponseSchema,\n creditPurchaseResponseSchema,\n hbarPurchaseIntentResponseSchema,\n x402CreditPurchaseResponseSchema,\n x402MinimumsResponseSchema,\n registriesResponseSchema,\n registrySearchByNamespaceSchema,\n searchFacetsResponseSchema,\n adapterDetailsResponseSchema,\n adapterRegistryAdaptersResponseSchema,\n adapterRegistryCategoriesResponseSchema,\n adapterRegistryCategorySchema,\n adapterRegistryCreateCategoryResponseSchema,\n adapterRegistrySubmitAdapterResponseSchema,\n adapterRegistrySubmitAdapterAcceptedResponseSchema,\n adapterRegistrySubmissionStatusResponseSchema,\n adapterDescriptorSchema,\n adapterChatProfileSchema,\n additionalRegistryCatalogResponseSchema,\n vectorSearchRequestSchema,\n vectorSearchResponseSchema,\n resolveResponseSchema,\n searchResponseSchema,\n sendMessageResponseSchema,\n chatReadinessResponseSchema,\n chatSessionEndResponseSchema,\n chatRouteSummarySchema,\n chatPaymentStateSchema,\n chatHistorySnapshotResponseSchema,\n chatHistoryCompactionResponseSchema,\n statsResponseSchema,\n sessionEncryptionStatusResponseSchema,\n uaidConnectionStatusSchema,\n uaidValidationResponseSchema,\n websocketStatsResponseSchema,\n ledgerChallengeResponseSchema,\n ledgerVerifyResponseSchema,\n registerAgentPendingResponseSchema,\n registerAgentPartialResponseSchema,\n registerAgentSuccessResponseSchema,\n registrationProgressAdditionalEntrySchema,\n registrationProgressRecordSchema,\n registrationProgressResponseSchema,\n registerEncryptionKeyResponseSchema,\n searchStatusResponseSchema,\n agentFeedbackResponseSchema,\n agentFeedbackEligibilityResponseSchema,\n agentFeedbackSubmissionResponseSchema,\n agentFeedbackIndexResponseSchema,\n agentFeedbackEntriesIndexResponseSchema,\n moltbookOwnerRegistrationUpdateResponseSchema,\n AIAgentType,\n AIAgentCapability,\n registerStatusResponseSchema,\n verificationChallengeDetailsResponseSchema,\n verificationChallengeResponseSchema,\n verificationOwnershipResponseSchema,\n verificationStatusResponseSchema,\n verificationDnsStatusResponseSchema,\n verificationVerifyResponseSchema,\n verificationVerifySenderResponseSchema,\n skillRegistryConfigResponseSchema,\n skillCatalogChannelSchema,\n skillCatalogSortBySchema,\n skillCatalogVersionSummarySchema,\n skillCatalogItemSchema,\n skillCatalogResponseSchema,\n skillRecommendedVersionResponseSchema,\n skillDeprecationRecordSchema,\n skillDeprecationsResponseSchema,\n skillBadgeMetricSchema,\n skillBadgeStyleSchema,\n skillBadgeResponseSchema,\n skillRegistryTagsResponseSchema,\n skillRegistryCategoriesResponseSchema,\n skillResolverManifestResponseSchema,\n skillRegistryFileDescriptorSchema,\n skillRegistryJobStatusResponseSchema,\n skillSecurityBreakdownResponseSchema,\n skillRegistryListResponseSchema,\n skillRegistryMineResponseSchema,\n skillRegistryMyListResponseSchema,\n skillRegistryOwnershipResponseSchema,\n skillRegistryPublishResponseSchema,\n skillRegistryPublishSummarySchema,\n skillRegistryQuoteResponseSchema,\n skillRegistryVersionsResponseSchema,\n skillRegistryVoteStatusResponseSchema,\n skillVerificationDomainProofChallengeResponseSchema,\n skillVerificationDomainProofVerifyResponseSchema,\n skillVerificationRequestCreateResponseSchema,\n skillVerificationStatusResponseSchema,\n skillTrustTierSchema,\n skillStatusNextStepSchema,\n skillPreviewSuggestedNextStepSchema,\n skillPreviewReportSchema,\n skillPreviewRecordSchema,\n skillPreviewLookupResponseSchema,\n skillStatusPreviewMetadataSchema,\n skillStatusChecksSchema,\n skillStatusVerificationSignalsSchema,\n skillStatusProvenanceSignalsSchema,\n skillStatusResponseSchema,\n skillQuotePreviewRangeSchema,\n skillQuotePreviewResponseSchema,\n skillConversionSignalsResponseSchema,\n skillInstallArtifactDescriptorSchema,\n skillInstallResolverDescriptorSchema,\n skillInstallBadgeDescriptorSchema,\n skillInstallShareDescriptorSchema,\n skillInstallSnippetSetSchema,\n skillInstallResponseSchema,\n skillInstallCopyTelemetryResponseSchema,\n} from './schemas';\n\nexport type JsonPrimitive = string | number | boolean | null;\nexport type JsonValue = JsonPrimitive | JsonValue[] | JsonObject;\nexport interface JsonObject {\n [key: string]: JsonValue;\n}\n\nexport interface RegistryBrokerClientOptions {\n baseUrl?: string;\n fetchImplementation?: typeof fetch;\n defaultHeaders?: Record<string, string>;\n apiKey?: string;\n /**\n * Optional account identifier to send as the `x-account-id` header.\n *\n * This is used by some Registry Broker deployments to attribute registrations\n * when no API key / user session is present (for example local docker E2E).\n */\n accountId?: string;\n ledgerApiKey?: string;\n registrationAutoTopUp?: AutoTopUpOptions;\n historyAutoTopUp?: HistoryAutoTopUpOptions;\n encryption?: ClientEncryptionOptions;\n}\n\nexport type ChatHistoryEntry = z.infer<\n typeof createSessionResponseSchema\n>['history'][number];\n\nexport type CipherEnvelope = NonNullable<ChatHistoryEntry['cipherEnvelope']>;\n\nexport type CipherEnvelopeRecipient = CipherEnvelope['recipients'][number];\n\nexport interface EphemeralKeyPair {\n privateKey: string;\n publicKey: string;\n}\n\nexport interface DeriveSharedSecretOptions {\n privateKey: string;\n peerPublicKey: string;\n}\n\nexport type SharedSecretInput = string | Uint8Array | Buffer;\n\nexport interface EncryptCipherEnvelopeOptions {\n plaintext: string;\n sessionId: string;\n recipients: Array<\n Pick<\n CipherEnvelopeRecipient,\n 'uaid' | 'ledgerAccountId' | 'userId' | 'email'\n >\n >;\n sharedSecret: SharedSecretInput;\n associatedData?: string;\n revision?: number;\n}\n\nexport interface DecryptCipherEnvelopeOptions {\n envelope: CipherEnvelope;\n sharedSecret: SharedSecretInput;\n encoding?: BufferEncoding;\n}\n\nexport type SessionEncryptionStatusResponse = z.infer<\n typeof sessionEncryptionStatusResponseSchema\n>;\n\nexport type SessionEncryptionSummary =\n SessionEncryptionStatusResponse['encryption'];\n\nexport type EncryptionHandshakeResponse = z.infer<\n typeof encryptionHandshakeResponseSchema\n>;\n\nexport type EncryptionHandshakeRecord =\n EncryptionHandshakeResponse['handshake'];\n\nexport interface RegisterEncryptionKeyPayload {\n keyType: 'secp256k1' | 'ed25519' | 'x25519';\n publicKey: string;\n uaid?: string;\n ledgerAccountId?: string;\n ledgerNetwork?: string;\n email?: string;\n}\n\nexport type RegisterEncryptionKeyResponse = z.infer<\n typeof registerEncryptionKeyResponseSchema\n>;\n\nexport interface AgentRegistrationRequestMetadata {\n trustScore?: number;\n verified?: boolean;\n avgLatency?: number;\n uptime?: number;\n provider?: string;\n category?: string;\n adapter?: string;\n openConvAICompatible?: boolean;\n customFields?: Record<string, string | number | boolean>;\n nativeId?: string;\n tunnelUrl?: string;\n publicUrl?: string;\n payments?: JsonValue;\n [key: string]: JsonValue | undefined;\n}\n\nexport interface AgentRegistrationRequest {\n profile: JsonObject;\n endpoint?: string;\n protocol?: string;\n communicationProtocol?: string;\n registry?: string;\n additionalRegistries?: string[];\n metadata?: AgentRegistrationRequestMetadata;\n}\n\nexport interface AutoTopUpOptions {\n accountId: string;\n privateKey: string;\n memo?: string;\n}\n\nexport interface HistoryAutoTopUpOptions extends AutoTopUpOptions {\n hbarAmount?: number;\n}\n\nexport type GuardContractVersion = 1;\n\nexport const GUARD_CANONICAL_PATH_PREFIX = '/api/guard' as const;\nexport const GUARD_COMPAT_PATH_PREFIX = '/guard' as const;\n\nexport type GuardPlanId = z.infer<typeof guardPlanIdSchema>;\n\nexport type GuardPrincipal = z.infer<typeof guardPrincipalSchema>;\n\nexport type GuardEntitlements = z.infer<typeof guardEntitlementsSchema>;\n\nexport type GuardBucketBalance = z.infer<typeof guardBucketBalanceSchema>;\n\nexport type GuardSessionResponse = z.infer<typeof guardSessionResponseSchema>;\n\nexport type GuardBalanceResponse = z.infer<typeof guardBalanceResponseSchema>;\n\nexport type GuardFeedItem = z.infer<typeof guardFeedItemSchema>;\n\nexport type GuardFeedSummary = z.infer<typeof guardFeedSummarySchema>;\n\nexport type GuardFeedResponse = z.infer<typeof guardFeedResponseSchema>;\n\nexport type GuardOverviewResponse = z.infer<typeof guardOverviewResponseSchema>;\n\nexport type GuardPolicy = z.infer<typeof guardPolicySchema>;\n\nexport type GuardTrustMatch = z.infer<typeof guardTrustMatchSchema>;\n\nexport type GuardTrustByHashResponse = z.infer<\n typeof guardTrustByHashResponseSchema\n>;\n\nexport interface GuardTrustResolveQuery {\n ecosystem?: string;\n name?: string;\n version?: string;\n}\n\nexport type GuardTrustResolveResponse = z.infer<\n typeof guardTrustResolveResponseSchema\n>;\n\nexport type GuardRevocationResponse = z.infer<\n typeof guardRevocationResponseSchema\n>;\n\nexport type GuardReceipt = z.infer<typeof guardReceiptSchema>;\n\nexport interface GuardReceiptSyncPayload {\n receipts: GuardReceipt[];\n inventory?: GuardInventoryArtifact[];\n}\n\nexport type GuardReceiptSyncResponse = z.infer<\n typeof guardReceiptSyncResponseSchema\n>;\n\nexport type GuardHistoryArtifact = z.infer<typeof guardHistoryArtifactSchema>;\n\nexport type GuardReceiptHistoryResponse = z.infer<\n typeof guardReceiptHistoryResponseSchema\n>;\n\nexport type GuardInventoryArtifact = z.infer<\n typeof guardInventoryArtifactSchema\n>;\n\nexport type GuardInventoryResponse = z.infer<\n typeof guardInventoryResponseSchema\n>;\n\nexport type GuardInventoryDiffEntry = z.infer<\n typeof guardInventoryDiffEntrySchema\n>;\n\nexport type GuardInventoryDiffResponse = z.infer<\n typeof guardInventoryDiffResponseSchema\n>;\n\nexport type GuardAbomSummary = z.infer<typeof guardAbomSummarySchema>;\n\nexport type GuardAbomResponse = z.infer<typeof guardAbomResponseSchema>;\n\nexport type GuardTimelineEvent = z.infer<typeof guardTimelineEventSchema>;\n\nexport type GuardArtifactTimelineResponse = z.infer<\n typeof guardArtifactTimelineResponseSchema\n>;\n\nexport type GuardReceiptExportSummary = z.infer<\n typeof guardReceiptExportSummarySchema\n>;\n\nexport type GuardExportSignature = z.infer<typeof guardExportSignatureSchema>;\n\nexport type GuardReceiptExportResponse = z.infer<\n typeof guardReceiptExportResponseSchema\n>;\n\nexport type GuardAlertPreferences = z.infer<typeof guardAlertPreferencesSchema>;\n\nexport interface GuardAlertPreferencesUpdate {\n emailEnabled?: boolean;\n digestMode?: GuardAlertPreferences['digestMode'];\n watchlistEnabled?: boolean;\n advisoriesEnabled?: boolean;\n repeatedWarningsEnabled?: boolean;\n teamAlertsEnabled?: boolean;\n}\n\nexport type GuardWatchlistItem = z.infer<typeof guardWatchlistItemSchema>;\n\nexport type GuardWatchlistResponse = z.infer<\n typeof guardWatchlistResponseSchema\n>;\n\nexport type GuardWatchlistLookupResponse = z.infer<\n typeof guardWatchlistLookupResponseSchema\n>;\n\nexport type GuardPainSignal = z.infer<typeof guardPainSignalSchema>;\n\nexport type GuardPainSignalAggregate = z.infer<\n typeof guardPainSignalAggregateSchema\n>;\n\nexport type GuardPainSignalListResponse = z.infer<\n typeof guardPainSignalListResponseSchema\n>;\n\nexport type GuardPainSignalAggregateResponse = z.infer<\n typeof guardPainSignalAggregateResponseSchema\n>;\n\nexport type GuardPreflightEvidence = z.infer<\n typeof guardPreflightEvidenceSchema\n>;\n\nexport type GuardPreflightRequest = z.infer<typeof guardPreflightRequestSchema>;\n\nexport type GuardPreflightVerdictResponse = z.infer<\n typeof guardPreflightVerdictResponseSchema\n>;\n\nexport interface GuardPainSignalIngestItem {\n signalId: string;\n signalName: string;\n artifactId: string;\n artifactName: string;\n artifactType: GuardInventoryArtifact['artifactType'];\n harness: string;\n latestSummary: string;\n occurredAt: string;\n count?: number;\n source?: 'scanner';\n publisher?: string;\n}\n\nexport interface GuardWatchlistUpsert {\n artifactId: string;\n artifactName: string;\n artifactType: GuardInventoryArtifact['artifactType'];\n artifactSlug: string;\n reason: string;\n source: GuardWatchlistItem['source'];\n}\n\nexport type GuardExceptionScope = z.infer<\n typeof guardExceptionItemSchema\n>['scope'];\n\nexport type GuardExceptionSource = z.infer<\n typeof guardExceptionItemSchema\n>['source'];\n\nexport type GuardExceptionItem = z.infer<typeof guardExceptionItemSchema>;\n\nexport type GuardExceptionListResponse = z.infer<\n typeof guardExceptionListResponseSchema\n>;\n\nexport type GuardTeamPolicyAuditItem = z.infer<\n typeof guardTeamPolicyAuditItemSchema\n>;\n\nexport type GuardTeamPolicyPack = z.infer<typeof guardTeamPolicyPackSchema>;\n\nexport interface GuardTeamPolicyPackUpdate {\n name?: string;\n sharedHarnessDefaults?: GuardTeamPolicyPack['sharedHarnessDefaults'];\n allowedPublishers?: string[];\n blockedPublishers?: string[];\n blockedDomains?: string[];\n blockedArtifacts?: string[];\n alertChannel?: GuardTeamPolicyPack['alertChannel'];\n}\n\nexport type GuardDevice = z.infer<typeof guardDeviceSchema>;\n\nexport type GuardDeviceListResponse = z.infer<\n typeof guardDeviceListResponseSchema\n>;\n\nexport interface GuardExceptionUpsert {\n scope: GuardExceptionScope;\n harness?: string | null;\n artifactId?: string | null;\n publisher?: string | null;\n reason: string;\n owner: string;\n source: GuardExceptionSource;\n expiresAt: string;\n}\n\nexport interface RegisterAgentOptions {\n autoTopUp?: AutoTopUpOptions;\n}\n\nexport interface RegistrationProgressWaitOptions {\n intervalMs?: number;\n timeoutMs?: number;\n throwOnFailure?: boolean;\n onProgress?: (progress: RegistrationProgressRecord) => void;\n signal?: AbortSignal;\n}\n\nexport type AgentSearchHit = z.infer<\n typeof searchResponseSchema\n>['hits'][number];\n\nexport type AgentProfile = AgentSearchHit['profile'];\n\nexport type SearchResult = z.infer<typeof searchResponseSchema>;\n\nexport interface SearchParams {\n q?: string;\n page?: number;\n limit?: number;\n registry?: string;\n registries?: string[];\n capabilities?: string[];\n protocols?: string[];\n minTrust?: number;\n adapters?: string[];\n sortBy?: string;\n sortOrder?: 'asc' | 'desc' | string;\n type?: 'ai-agents' | 'mcp-servers' | 'all' | (string & {});\n verified?: boolean;\n online?: boolean;\n metadata?: Record<string, Array<string | number | boolean>>;\n}\n\nexport interface DelegationWorkspaceContext {\n openFiles?: string[];\n modifiedFiles?: string[];\n relatedPaths?: string[];\n errors?: string[];\n commands?: string[];\n languages?: string[];\n}\n\nexport interface DelegationPlanFilter {\n capabilities?: string[];\n type?: 'ai-agents' | 'mcp-servers';\n registry?: string;\n registries?: string[];\n protocols?: string[];\n adapters?: string[];\n verifiedOnly?: boolean;\n onlineOnly?: boolean;\n minTrust?: number;\n minTrustSignals?: Record<string, number>;\n metadata?: Record<string, Array<string | number | boolean>>;\n metadataRanges?: Record<string, { min?: number; max?: number }>;\n}\n\nexport interface DelegationPlanRequest {\n task: string;\n context?: string;\n workspace?: DelegationWorkspaceContext;\n limit?: number;\n filter?: DelegationPlanFilter;\n}\n\nexport type DelegationPlanCandidate = z.infer<\n typeof delegationPlanResponseSchema\n>['opportunities'][number]['candidates'][number];\n\nexport type DelegationOpportunity = z.infer<\n typeof delegationPlanResponseSchema\n>['opportunities'][number];\n\nexport type DelegationPlanResponse = z.infer<\n typeof delegationPlanResponseSchema\n>;\n\nexport type RegistryStatsResponse = z.infer<typeof statsResponseSchema>;\n\nexport type RegistriesResponse = z.infer<typeof registriesResponseSchema>;\n\nexport type PopularSearchesResponse = z.infer<typeof popularResponseSchema>;\n\nexport type ResolvedAgentResponse = z.infer<typeof resolveResponseSchema>;\n\nexport type CreateSessionResponse = z.infer<typeof createSessionResponseSchema>;\n\nexport type SendMessageResponse = z.infer<typeof sendMessageResponseSchema>;\nexport type ChatReadinessResponse = z.infer<typeof chatReadinessResponseSchema>;\nexport type ChatSessionEndResponse = z.infer<\n typeof chatSessionEndResponseSchema\n>;\nexport type ChatRouteSummary = z.infer<typeof chatRouteSummarySchema>;\nexport type ChatPaymentState = z.infer<typeof chatPaymentStateSchema>;\nexport type ChatRetryResponse = SendMessageResponse;\nexport type SkillSecurityBreakdownResponse = z.infer<\n typeof skillSecurityBreakdownResponseSchema\n>;\nexport type ChatHistorySnapshotResponse = z.infer<\n typeof chatHistorySnapshotResponseSchema\n>;\nexport type ChatHistoryCompactionResponse = z.infer<\n typeof chatHistoryCompactionResponseSchema\n>;\n\nexport type AgentFeedbackResponse = z.infer<typeof agentFeedbackResponseSchema>;\nexport type AgentFeedbackEligibilityResponse = z.infer<\n typeof agentFeedbackEligibilityResponseSchema\n>;\nexport type AgentFeedbackSubmissionResponse = z.infer<\n typeof agentFeedbackSubmissionResponseSchema\n>;\nexport type AgentFeedbackIndexResponse = z.infer<\n typeof agentFeedbackIndexResponseSchema\n>;\n\nexport type VerificationStatusResponse = z.infer<\n typeof verificationStatusResponseSchema\n>;\nexport type VerificationChallengeResponse = z.infer<\n typeof verificationChallengeResponseSchema\n>;\nexport type VerificationChallengeDetailsResponse = z.infer<\n typeof verificationChallengeDetailsResponseSchema\n>;\nexport type VerificationVerifyResponse = z.infer<\n typeof verificationVerifyResponseSchema\n>;\nexport type VerificationOwnershipResponse = z.infer<\n typeof verificationOwnershipResponseSchema\n>;\nexport type VerificationVerifySenderResponse = z.infer<\n typeof verificationVerifySenderResponseSchema\n>;\nexport type VerificationDnsStatusResponse = z.infer<\n typeof verificationDnsStatusResponseSchema\n>;\n\nexport type RegisterStatusResponse = z.infer<\n typeof registerStatusResponseSchema\n>;\n\nexport type MoltbookOwnerRegistrationUpdateResponse = z.infer<\n typeof moltbookOwnerRegistrationUpdateResponseSchema\n>;\n\nexport type SkillRegistryFileDescriptor = z.infer<\n typeof skillRegistryFileDescriptorSchema\n>;\nexport type SkillRegistryPublishSummary = z.infer<\n typeof skillRegistryPublishSummarySchema\n>;\nexport type SkillRegistryListResponse = z.infer<\n typeof skillRegistryListResponseSchema\n>;\nexport type SkillRegistryMineResponse = z.infer<\n typeof skillRegistryMineResponseSchema\n>;\nexport type SkillRegistryMyListResponse = z.infer<\n typeof skillRegistryMyListResponseSchema\n>;\nexport type SkillRegistryQuoteResponse = z.infer<\n typeof skillRegistryQuoteResponseSchema\n>;\nexport type SkillRegistryPublishResponse = z.infer<\n typeof skillRegistryPublishResponseSchema\n>;\nexport type SkillRegistryJobStatusResponse = z.infer<\n typeof skillRegistryJobStatusResponseSchema\n>;\nexport type SkillRegistryConfigResponse = z.infer<\n typeof skillRegistryConfigResponseSchema\n>;\nexport type SkillCatalogChannel = z.infer<typeof skillCatalogChannelSchema>;\nexport type SkillCatalogSortBy = z.infer<typeof skillCatalogSortBySchema>;\nexport type SkillCatalogVersionSummary = z.infer<\n typeof skillCatalogVersionSummarySchema\n>;\nexport type SkillCatalogItem = z.infer<typeof skillCatalogItemSchema>;\nexport type SkillCatalogResponse = z.infer<typeof skillCatalogResponseSchema>;\nexport type SkillRecommendedVersionResponse = z.infer<\n typeof skillRecommendedVersionResponseSchema\n>;\nexport type SkillDeprecationRecord = z.infer<\n typeof skillDeprecationRecordSchema\n>;\nexport type SkillDeprecationsResponse = z.infer<\n typeof skillDeprecationsResponseSchema\n>;\nexport type SkillBadgeMetric = z.infer<typeof skillBadgeMetricSchema>;\nexport type SkillBadgeStyle = z.infer<typeof skillBadgeStyleSchema>;\nexport type SkillBadgeResponse = z.infer<typeof skillBadgeResponseSchema>;\nexport type SkillRegistryTagsResponse = z.infer<\n typeof skillRegistryTagsResponseSchema\n>;\nexport type SkillRegistryCategoriesResponse = z.infer<\n typeof skillRegistryCategoriesResponseSchema\n>;\nexport type SkillResolverManifestResponse = z.infer<\n typeof skillResolverManifestResponseSchema\n>;\nexport type SkillRegistryOwnershipResponse = z.infer<\n typeof skillRegistryOwnershipResponseSchema\n>;\nexport type SkillRegistryVersionsResponse = z.infer<\n typeof skillRegistryVersionsResponseSchema\n>;\nexport type SkillRegistryVoteStatusResponse = z.infer<\n typeof skillRegistryVoteStatusResponseSchema\n>;\nexport type SkillTrustTier = z.infer<typeof skillTrustTierSchema>;\nexport type SkillStatusNextStep = z.infer<typeof skillStatusNextStepSchema>;\nexport type SkillPreviewSuggestedNextStep = z.infer<\n typeof skillPreviewSuggestedNextStepSchema\n>;\nexport type SkillPreviewReport = z.infer<typeof skillPreviewReportSchema>;\nexport type SkillPreviewRecord = z.infer<typeof skillPreviewRecordSchema>;\nexport type SkillPreviewLookupResponse = z.infer<\n typeof skillPreviewLookupResponseSchema\n>;\nexport type SkillStatusPreviewMetadata = z.infer<\n typeof skillStatusPreviewMetadataSchema\n>;\nexport type SkillStatusChecks = z.infer<typeof skillStatusChecksSchema>;\nexport type SkillStatusVerificationSignals = z.infer<\n typeof skillStatusVerificationSignalsSchema\n>;\nexport type SkillStatusProvenanceSignals = z.infer<\n typeof skillStatusProvenanceSignalsSchema\n>;\nexport type SkillStatusResponse = z.infer<typeof skillStatusResponseSchema>;\nexport type SkillQuotePreviewRange = z.infer<\n typeof skillQuotePreviewRangeSchema\n>;\nexport type SkillQuotePreviewResponse = z.infer<\n typeof skillQuotePreviewResponseSchema\n>;\nexport type SkillConversionSignalsResponse = z.infer<\n typeof skillConversionSignalsResponseSchema\n>;\nexport type SkillInstallArtifactDescriptor = z.infer<\n typeof skillInstallArtifactDescriptorSchema\n>;\nexport type SkillInstallResolverDescriptor = z.infer<\n typeof skillInstallResolverDescriptorSchema\n>;\nexport type SkillInstallBadgeDescriptor = z.infer<\n typeof skillInstallBadgeDescriptorSchema\n>;\nexport type SkillInstallShareDescriptor = z.infer<\n typeof skillInstallShareDescriptorSchema\n>;\nexport type SkillInstallSnippetSet = z.infer<\n typeof skillInstallSnippetSetSchema\n>;\nexport type SkillInstallResponse = z.infer<typeof skillInstallResponseSchema>;\nexport type SkillInstallCopyTelemetryResponse = z.infer<\n typeof skillInstallCopyTelemetryResponseSchema\n>;\n\nexport type SkillVerificationRequestCreateResponse = z.infer<\n typeof skillVerificationRequestCreateResponseSchema\n>;\nexport type SkillVerificationStatusResponse = z.infer<\n typeof skillVerificationStatusResponseSchema\n>;\nexport type SkillVerificationDomainProofChallengeResponse = z.infer<\n typeof skillVerificationDomainProofChallengeResponseSchema\n>;\nexport type SkillVerificationDomainProofVerifyResponse = z.infer<\n typeof skillVerificationDomainProofVerifyResponseSchema\n>;\nexport type SkillVerificationRequest =\n SkillVerificationRequestCreateResponse['request'];\nexport type SkillVerificationTier = SkillVerificationRequest['tier'];\n\nexport type SkillRegistryFileRole =\n | 'skill-md'\n | 'skill-json'\n | 'skill-icon'\n | 'file';\n\nexport interface SkillRegistryFileInput {\n name: string;\n base64: string;\n mimeType?: string | null;\n role?: SkillRegistryFileRole | null;\n}\n\nexport interface SkillRegistryQuoteRequest {\n files: SkillRegistryFileInput[];\n directoryTopicId?: string;\n accountId?: string;\n}\n\nexport interface SkillListOptions {\n name?: string;\n version?: string;\n limit?: number;\n cursor?: string;\n includeFiles?: boolean;\n accountId?: string;\n q?: string;\n tag?: string;\n category?: string;\n featured?: boolean;\n verified?: boolean;\n view?: 'latest' | 'all';\n}\n\nexport interface SkillCatalogQueryOptions {\n q?: string;\n category?: string;\n tags?: string[];\n featured?: boolean;\n verified?: boolean;\n channel?: SkillCatalogChannel;\n sortBy?: SkillCatalogSortBy;\n limit?: number;\n cursor?: string;\n}\n\nexport interface SkillRegistryPublishRequest {\n files: SkillRegistryFileInput[];\n directoryTopicId?: string;\n accountId?: string;\n quoteId?: string;\n publisher?: string | null;\n}\n\nexport interface SkillRegistryVoteRequest {\n name: string;\n upvoted: boolean;\n}\n\nexport interface SkillSecurityBreakdownRequest {\n jobId: string;\n}\n\nexport interface SkillStatusRequest {\n name: string;\n version?: string;\n}\n\nexport interface SkillPreviewLookupRequest {\n name: string;\n version?: string;\n}\n\nexport interface SkillPreviewByRepoRequest {\n repo: string;\n skillDir: string;\n ref?: string;\n}\n\nexport interface SkillQuotePreviewRequest {\n fileCount: number;\n totalBytes: number;\n name?: string;\n version?: string;\n repoUrl?: string;\n skillDir?: string;\n}\n\nexport interface UploadSkillPreviewFromGithubOidcRequest {\n token: string;\n report: SkillPreviewReport;\n}\n\nexport interface SkillInstallCopyTelemetryRequest {\n source?: string;\n installType?:\n | 'cli'\n | 'skillmd'\n | 'manifest'\n | 'claude'\n | 'cursor'\n | 'codex'\n | 'openclaw';\n}\n\nexport interface SkillVerificationRequestCreateRequest {\n name: string;\n version?: string;\n tier: SkillVerificationTier;\n}\n\nexport interface SkillVerificationDomainProofChallengeRequest {\n name: string;\n version?: string;\n domain?: string;\n}\n\nexport interface SkillVerificationDomainProofVerifyRequest {\n name: string;\n version?: string;\n domain?: string;\n challengeToken: string;\n}\n\nexport interface SkillRecommendedVersionSetRequest {\n name: string;\n version: string;\n}\n\nexport interface SkillDeprecationSetRequest {\n name: string;\n version?: string;\n reason: string;\n replacementRef?: string;\n}\n\nexport interface SkillBadgeQuery {\n name: string;\n metric?: SkillBadgeMetric;\n label?: string;\n style?: SkillBadgeStyle;\n}\n\nexport interface MoltbookOwnerRegistrationUpdateRequest {\n registered?: boolean;\n name?: string;\n description?: string;\n endpoint?: string;\n metadata?: JsonObject;\n}\n\nexport interface VerificationDnsVerifyRequest {\n uaid: string;\n persist?: boolean;\n}\n\nexport interface VerificationDnsStatusQuery {\n refresh?: boolean;\n persist?: boolean;\n}\n\nexport type AgentFeedbackEntriesIndexResponse = z.infer<\n typeof agentFeedbackEntriesIndexResponseSchema\n>;\n\nexport interface AgentFeedbackQuery {\n includeRevoked?: boolean;\n}\n\nexport interface AgentFeedbackEligibilityRequest {\n sessionId: string;\n}\n\nexport interface AgentFeedbackSubmissionRequest {\n sessionId: string;\n score: number;\n tag1?: string;\n tag2?: string;\n fileUri?: string;\n fileHash?: string;\n}\n\nexport type RegisterAgentSuccessResponse = z.infer<\n typeof registerAgentSuccessResponseSchema\n>;\nexport type RegisterAgentPendingResponse = z.infer<\n typeof registerAgentPendingResponseSchema\n>;\nexport type RegisterAgentPartialResponse = z.infer<\n typeof registerAgentPartialResponseSchema\n>;\nexport type RegisterAgentResponse = z.infer<typeof registerAgentResponseSchema>;\n\nexport type RegistrationProgressAdditionalEntry = z.infer<\n typeof registrationProgressAdditionalEntrySchema\n>;\nexport type RegistrationProgressRecord = z.infer<\n typeof registrationProgressRecordSchema\n>;\nexport type RegistrationProgressResponse = z.infer<\n typeof registrationProgressResponseSchema\n>;\nexport type RegisterAgentQuoteResponse = z.infer<\n typeof registrationQuoteResponseSchema\n>;\nexport type CreditProviderSummary = z.infer<typeof creditProviderSummarySchema>;\nexport type CreditProvidersResponse = z.infer<\n typeof creditProvidersResponseSchema\n>;\nexport type CreditBalanceResponse = z.infer<typeof creditBalanceResponseSchema>;\nexport interface HbarPurchaseIntentRequest {\n accountId?: string;\n credits?: number;\n hbarAmount?: number;\n memo?: string;\n}\nexport type HbarPurchaseIntentResponse = z.infer<\n typeof hbarPurchaseIntentResponseSchema\n>;\nexport type CreditPurchaseResponse = z.infer<\n typeof creditPurchaseResponseSchema\n>;\nexport type X402CreditPurchaseResponse = z.infer<\n typeof x402CreditPurchaseResponseSchema\n>;\nexport type X402MinimumsResponse = z.infer<typeof x402MinimumsResponseSchema>;\nexport type AdditionalRegistryCatalogResponse = z.infer<\n typeof additionalRegistryCatalogResponseSchema\n>;\nexport type AdditionalRegistryDescriptor =\n AdditionalRegistryCatalogResponse['registries'][number];\nexport type AdditionalRegistryNetworkDescriptor =\n AdditionalRegistryDescriptor['networks'][number];\n\nexport type AdapterDetailsResponse = z.infer<\n typeof adapterDetailsResponseSchema\n>;\n\nexport interface LedgerChallengeRequest {\n accountId: string;\n network: string;\n}\n\nexport type LedgerChallengeResponse = z.infer<\n typeof ledgerChallengeResponseSchema\n>;\n\nexport interface LedgerAuthenticationSignerResult {\n signature: string;\n signatureKind?: 'raw' | 'map' | 'evm';\n publicKey?: string;\n}\n\nexport interface LedgerAuthenticationOptions extends LedgerChallengeRequest {\n signer?: Signer;\n sign?: (\n message: string,\n ) =>\n | LedgerAuthenticationSignerResult\n | Promise<LedgerAuthenticationSignerResult>;\n expiresInMinutes?: number;\n}\n\nexport interface LedgerVerifyRequest extends LedgerChallengeRequest {\n challengeId: string;\n signature: string;\n signatureKind?: 'raw' | 'map' | 'evm';\n publicKey?: string;\n expiresInMinutes?: number;\n}\n\nexport type LedgerVerifyResponse = z.infer<typeof ledgerVerifyResponseSchema>;\n\nexport interface LedgerAuthenticationLogger {\n info?: (message: string) => void;\n warn?: (message: string) => void;\n}\n\nexport interface LedgerCredentialAuthOptions {\n accountId: string;\n network: string;\n signer?: Signer;\n sign?: (\n message: string,\n ) =>\n | LedgerAuthenticationSignerResult\n | Promise<LedgerAuthenticationSignerResult>;\n hederaPrivateKey?: string;\n evmPrivateKey?: string;\n expiresInMinutes?: number;\n setAccountHeader?: boolean;\n label?: string;\n logger?: LedgerAuthenticationLogger;\n}\n\nexport type ProtocolsResponse = z.infer<typeof protocolsResponseSchema>;\n\nexport type DetectProtocolResponse = z.infer<\n typeof detectProtocolResponseSchema\n>;\n\nexport type ProtocolDetectionMessage = JsonObject;\n\nexport type RegistrySearchByNamespaceResponse = z.infer<\n typeof registrySearchByNamespaceSchema\n>;\n\nexport type WebsocketStatsResponse = z.infer<\n typeof websocketStatsResponseSchema\n>;\n\nexport type MetricsSummaryResponse = z.infer<\n typeof metricsSummaryResponseSchema\n>;\n\nexport type UaidValidationResponse = z.infer<\n typeof uaidValidationResponseSchema\n>;\n\nexport type UaidConnectionStatus = z.infer<typeof uaidConnectionStatusSchema>;\n\nexport type DashboardStatsResponse = z.infer<\n typeof dashboardStatsResponseSchema\n>;\n\nexport type VectorSearchFilter = z.infer<\n typeof vectorSearchRequestSchema\n>['filter'];\n\nexport type VectorSearchRequest = z.infer<typeof vectorSearchRequestSchema>;\n\nexport type VectorSearchResponse = z.infer<typeof vectorSearchResponseSchema>;\nexport type SearchStatusResponse = z.infer<typeof searchStatusResponseSchema>;\n\ntype CreateSessionBasePayload = {\n auth?: AgentAuthConfig;\n historyTtlSeconds?: number;\n encryptionRequested?: boolean;\n senderUaid?: string;\n visibility?: 'private' | 'public';\n};\n\nexport type CreateSessionRequestPayload =\n | (CreateSessionBasePayload & { uaid: string })\n | (CreateSessionBasePayload & { agentUrl: string });\n\nexport type ChatReadinessRequestPayload =\n | { uaid: string; agentUrl?: never }\n | { agentUrl: string; uaid?: never };\n\nexport interface ChatRetryRequestPayload extends SendMessageBasePayload {\n sessionId: string;\n uaid?: string;\n agentUrl?: string;\n}\n\nexport interface CompactHistoryRequestPayload {\n sessionId: string;\n preserveEntries?: number;\n}\n\nexport interface SendMessageEncryptionOptions\n extends Omit<EncryptCipherEnvelopeOptions, 'sessionId'> {\n sessionId?: string;\n}\n\nexport interface SendMessageBasePayload {\n message: string;\n streaming?: boolean;\n auth?: AgentAuthConfig;\n cipherEnvelope?: CipherEnvelope;\n encryption?: SendMessageEncryptionOptions;\n idempotencyKey?: string;\n senderUaid?: string;\n transport?: 'xmtp' | 'moltbook' | 'http' | 'a2a' | 'acp';\n}\n\nexport interface StartEncryptedChatSessionOptions {\n uaid: string;\n senderUaid?: string;\n historyTtlSeconds?: number;\n handshakeTimeoutMs?: number;\n pollIntervalMs?: number;\n onSessionCreated?: (sessionId: string) => void;\n auth?: AgentAuthConfig;\n}\n\nexport interface AcceptEncryptedChatSessionOptions {\n sessionId: string;\n responderUaid?: string;\n handshakeTimeoutMs?: number;\n pollIntervalMs?: number;\n}\n\nexport interface EncryptedChatSendOptions {\n plaintext: string;\n message?: string;\n recipients?: Array<\n Pick<\n CipherEnvelopeRecipient,\n 'uaid' | 'ledgerAccountId' | 'userId' | 'email'\n >\n >;\n streaming?: boolean;\n auth?: AgentAuthConfig;\n}\n\nexport type ConversationMode = 'encrypted' | 'plaintext';\n\nexport interface DecryptedHistoryEntry {\n entry: ChatHistoryEntry;\n plaintext: string | null;\n}\n\nexport interface ChatConversationHandle {\n sessionId: string;\n mode: ConversationMode;\n summary?: SessionEncryptionSummary | null;\n send: (options: EncryptedChatSendOptions) => Promise<SendMessageResponse>;\n decryptHistoryEntry: (entry: ChatHistoryEntry) => string | null;\n fetchHistory: (\n options?: ChatHistoryFetchOptions,\n ) => Promise<DecryptedHistoryEntry[]>;\n}\n\nexport interface EncryptedChatSessionHandle extends ChatConversationHandle {\n summary: SessionEncryptionSummary;\n mode: 'encrypted';\n}\n\nexport type RecipientIdentity = Pick<\n CipherEnvelopeRecipient,\n 'uaid' | 'ledgerAccountId' | 'userId' | 'email'\n>;\n\nexport interface ChatHistoryFetchOptions {\n decrypt?: boolean;\n identity?: RecipientIdentity;\n sharedSecret?: SharedSecretInput;\n}\n\nexport type ChatHistorySnapshotWithDecryptedEntries =\n ChatHistorySnapshotResponse & {\n decryptedHistory?: DecryptedHistoryEntry[];\n };\n\nexport interface ConversationEncryptionOptions {\n preference?: 'preferred' | 'required' | 'disabled';\n handshakeTimeoutMs?: number;\n pollIntervalMs?: number;\n}\n\nexport interface StartConversationOptions {\n uaid: string;\n senderUaid?: string;\n historyTtlSeconds?: number;\n auth?: AgentAuthConfig;\n encryption?: ConversationEncryptionOptions;\n onSessionCreated?: (sessionId: string) => void;\n}\n\nexport interface AcceptConversationOptions {\n sessionId: string;\n responderUaid?: string;\n encryption?: ConversationEncryptionOptions;\n}\n\nexport interface StartChatBaseOptions {\n auth?: AgentAuthConfig;\n historyTtlSeconds?: number;\n encryption?: ConversationEncryptionOptions;\n senderUaid?: string;\n onSessionCreated?: (sessionId: string) => void;\n}\n\nexport type StartChatOptions =\n | (StartChatBaseOptions & { uaid: string; agentUrl?: never })\n | (StartChatBaseOptions & { agentUrl: string; uaid?: never });\n\nexport interface AutoRegisterEncryptionKeyOptions {\n enabled?: boolean;\n keyType?: 'secp256k1';\n publicKey?: string;\n privateKey?: string;\n envVar?: string;\n envPath?: string;\n generateIfMissing?: boolean;\n overwriteEnv?: boolean;\n uaid?: string;\n ledgerAccountId?: string;\n ledgerNetwork?: string;\n email?: string;\n label?: string;\n}\n\nexport interface ClientEncryptionOptions {\n autoRegister?: AutoRegisterEncryptionKeyOptions;\n autoDecryptHistory?: boolean;\n}\n\nexport interface EnsureAgentKeyOptions\n extends Omit<AutoRegisterEncryptionKeyOptions, 'enabled' | 'uaid'> {\n uaid: string;\n}\n\nexport interface InitializeAgentClientOptions\n extends RegistryBrokerClientOptions {\n uaid: string;\n ensureEncryptionKey?: boolean | EnsureAgentKeyOptions;\n}\n\nexport type SendMessageRequestPayload =\n | (SendMessageBasePayload & { uaid: string })\n | (SendMessageBasePayload & { sessionId: string })\n | (SendMessageBasePayload & { agentUrl: string; sessionId?: string });\n\nexport interface EncryptionHandshakeSubmissionPayload {\n role: 'requester' | 'responder';\n keyType: string;\n ephemeralPublicKey: string;\n longTermPublicKey?: string;\n signature?: string;\n uaid?: string;\n userId?: string;\n ledgerAccountId?: string;\n metadata?: Record<string, JsonValue>;\n}\nexport type AgentAuthType = 'bearer' | 'basic' | 'header' | 'apiKey';\n\nexport interface AgentAuthConfig {\n type?: AgentAuthType;\n token?: string;\n username?: string;\n password?: string;\n headerName?: string;\n headerValue?: string;\n headers?: Record<string, string>;\n}\n\nexport type AdaptersResponse = z.infer<typeof adaptersResponseSchema>;\n\nexport type AdapterRegistryCategory = z.infer<\n typeof adapterRegistryCategorySchema\n>;\n\nexport type AdapterRegistryCategoriesResponse = z.infer<\n typeof adapterRegistryCategoriesResponseSchema\n>;\n\nexport type AdapterRegistryAdaptersResponse = z.infer<\n typeof adapterRegistryAdaptersResponseSchema\n>;\n\nexport type AdapterRegistryCreateCategoryResponse = z.infer<\n typeof adapterRegistryCreateCategoryResponseSchema\n>;\n\nexport type AdapterRegistrySubmitAdapterResponse = z.infer<\n typeof adapterRegistrySubmitAdapterResponseSchema\n>;\n\nexport type AdapterRegistrySubmitAdapterAcceptedResponse = z.infer<\n typeof adapterRegistrySubmitAdapterAcceptedResponseSchema\n>;\n\nexport type AdapterRegistrySubmissionStatusResponse = z.infer<\n typeof adapterRegistrySubmissionStatusResponseSchema\n>;\n\nexport interface CreateAdapterRegistryCategoryRequest {\n name: string;\n description?: string;\n type?: 'adapter-type' | 'custom';\n slug?: string;\n metadata?: {\n version?: string;\n name?: string;\n description?: string;\n operator?: {\n account?: string;\n name?: string;\n contact?: string;\n };\n entityTypes?: string[];\n categories?: string[];\n tags?: string[];\n links?: Record<string, string>;\n };\n}\n\nexport interface SubmitAdapterRegistryAdapterRequest {\n adapterId: string;\n adapterName: string;\n entity: string;\n package: AdapterPackage;\n config: AdapterConfigContext;\n stateModel?: string;\n signature?: string;\n manifest: AdapterManifest;\n manifestPointer?: string;\n manifestSequence?: number;\n keywords?: string[];\n categorySlug?: string;\n newCategory?: CreateAdapterRegistryCategoryRequest;\n}\n\nexport type SearchFacetsResponse = z.infer<typeof searchFacetsResponseSchema>;\n"],"names":[],"mappings":"AA0TO,MAAM,8BAA8B;AACpC,MAAM,2BAA2B;"}
1
+ {"version":3,"file":"standards-sdk.es148.js","sources":["../../src/services/registry-broker/types.ts"],"sourcesContent":["import { z } from 'zod';\nimport type { Signer } from '@hashgraph/sdk';\nimport type { Buffer } from 'buffer';\nimport type {\n AdapterConfigContext,\n AdapterManifest,\n AdapterPackage,\n} from '../../hcs-21/types';\nimport {\n adaptersResponseSchema,\n createSessionResponseSchema,\n encryptionHandshakeResponseSchema,\n detectProtocolResponseSchema,\n dashboardStatsResponseSchema,\n delegationPlanResponseSchema,\n metricsSummaryResponseSchema,\n popularResponseSchema,\n protocolsResponseSchema,\n registerAgentResponseSchema,\n registrationQuoteResponseSchema,\n creditProviderSummarySchema,\n creditProvidersResponseSchema,\n creditBalanceResponseSchema,\n guardBalanceResponseSchema,\n guardBucketBalanceSchema,\n guardEntitlementsSchema,\n guardFeedItemSchema,\n guardFeedResponseSchema,\n guardFeedSummarySchema,\n guardOverviewResponseSchema,\n guardPolicySchema,\n guardPlanIdSchema,\n guardPrincipalSchema,\n guardHistoryArtifactSchema,\n guardReceiptSchema,\n guardReceiptHistoryResponseSchema,\n guardReceiptSyncResponseSchema,\n guardInventoryArtifactSchema,\n guardInventoryResponseSchema,\n guardAbomSummarySchema,\n guardAbomResponseSchema,\n guardTimelineEventSchema,\n guardArtifactTimelineResponseSchema,\n guardReceiptExportSummarySchema,\n guardExportSignatureSchema,\n guardReceiptExportResponseSchema,\n guardAlertPreferencesSchema,\n guardWatchlistItemSchema,\n guardWatchlistLookupResponseSchema,\n guardWatchlistResponseSchema,\n guardPainSignalSchema,\n guardPainSignalListResponseSchema,\n guardPainSignalAggregateSchema,\n guardPainSignalAggregateResponseSchema,\n guardInventoryDiffEntrySchema,\n guardInventoryDiffResponseSchema,\n guardExceptionItemSchema,\n guardExceptionListResponseSchema,\n guardPreflightEvidenceSchema,\n guardPreflightRequestSchema,\n guardPreflightVerdictResponseSchema,\n guardTeamPolicyAuditItemSchema,\n guardTeamPolicyPackSchema,\n guardDeviceSchema,\n guardDeviceListResponseSchema,\n guardRevocationResponseSchema,\n guardSessionResponseSchema,\n guardTrustByHashResponseSchema,\n guardTrustMatchSchema,\n guardTrustResolveResponseSchema,\n creditPurchaseResponseSchema,\n hbarPurchaseIntentResponseSchema,\n x402CreditPurchaseResponseSchema,\n x402MinimumsResponseSchema,\n registriesResponseSchema,\n registrySearchByNamespaceSchema,\n searchFacetsResponseSchema,\n adapterDetailsResponseSchema,\n adapterRegistryAdaptersResponseSchema,\n adapterRegistryCategoriesResponseSchema,\n adapterRegistryCategorySchema,\n adapterRegistryCreateCategoryResponseSchema,\n adapterRegistrySubmitAdapterResponseSchema,\n adapterRegistrySubmitAdapterAcceptedResponseSchema,\n adapterRegistrySubmissionStatusResponseSchema,\n adapterDescriptorSchema,\n adapterChatProfileSchema,\n additionalRegistryCatalogResponseSchema,\n vectorSearchRequestSchema,\n vectorSearchResponseSchema,\n resolveResponseSchema,\n searchResponseSchema,\n sendMessageResponseSchema,\n chatReadinessResponseSchema,\n chatSessionResumeResponseSchema,\n chatSessionEndResponseSchema,\n chatTimelineEntrySchema,\n chatRouteSummarySchema,\n chatPaymentStateSchema,\n chatDeliveryStateSchema,\n chatReadinessStatusSchema,\n chatReplyModeSchema,\n chatRouteTypeSchema,\n chatSessionStateSchema,\n chatErrorCodeSchema,\n chatHistorySnapshotResponseSchema,\n chatHistoryCompactionResponseSchema,\n statsResponseSchema,\n sessionEncryptionStatusResponseSchema,\n uaidConnectionStatusSchema,\n uaidValidationResponseSchema,\n websocketStatsResponseSchema,\n ledgerChallengeResponseSchema,\n ledgerVerifyResponseSchema,\n registerAgentPendingResponseSchema,\n registerAgentPartialResponseSchema,\n registerAgentSuccessResponseSchema,\n registrationProgressAdditionalEntrySchema,\n registrationProgressRecordSchema,\n registrationProgressResponseSchema,\n registerEncryptionKeyResponseSchema,\n searchStatusResponseSchema,\n agentFeedbackResponseSchema,\n agentFeedbackEligibilityResponseSchema,\n agentFeedbackSubmissionResponseSchema,\n agentFeedbackIndexResponseSchema,\n agentFeedbackEntriesIndexResponseSchema,\n moltbookOwnerRegistrationUpdateResponseSchema,\n AIAgentType,\n AIAgentCapability,\n registerStatusResponseSchema,\n verificationChallengeDetailsResponseSchema,\n verificationChallengeResponseSchema,\n verificationOwnershipResponseSchema,\n verificationStatusResponseSchema,\n verificationDnsStatusResponseSchema,\n verificationVerifyResponseSchema,\n verificationVerifySenderResponseSchema,\n skillRegistryConfigResponseSchema,\n skillCatalogChannelSchema,\n skillCatalogSortBySchema,\n skillCatalogVersionSummarySchema,\n skillCatalogItemSchema,\n skillCatalogResponseSchema,\n skillRecommendedVersionResponseSchema,\n skillDeprecationRecordSchema,\n skillDeprecationsResponseSchema,\n skillBadgeMetricSchema,\n skillBadgeStyleSchema,\n skillBadgeResponseSchema,\n skillRegistryTagsResponseSchema,\n skillRegistryCategoriesResponseSchema,\n skillResolverManifestResponseSchema,\n skillRegistryFileDescriptorSchema,\n skillRegistryJobStatusResponseSchema,\n skillSecurityBreakdownResponseSchema,\n skillRegistryListResponseSchema,\n skillRegistryMineResponseSchema,\n skillRegistryMyListResponseSchema,\n skillRegistryOwnershipResponseSchema,\n skillRegistryPublishResponseSchema,\n skillRegistryPublishSummarySchema,\n skillRegistryQuoteResponseSchema,\n skillRegistryVersionsResponseSchema,\n skillRegistryVoteStatusResponseSchema,\n skillVerificationDomainProofChallengeResponseSchema,\n skillVerificationDomainProofVerifyResponseSchema,\n skillVerificationRequestCreateResponseSchema,\n skillVerificationStatusResponseSchema,\n skillTrustTierSchema,\n skillStatusNextStepSchema,\n skillPreviewSuggestedNextStepSchema,\n skillPreviewReportSchema,\n skillPreviewRecordSchema,\n skillPreviewLookupResponseSchema,\n skillStatusPreviewMetadataSchema,\n skillStatusChecksSchema,\n skillStatusVerificationSignalsSchema,\n skillStatusProvenanceSignalsSchema,\n skillStatusResponseSchema,\n skillQuotePreviewRangeSchema,\n skillQuotePreviewResponseSchema,\n skillConversionSignalsResponseSchema,\n skillInstallArtifactDescriptorSchema,\n skillInstallResolverDescriptorSchema,\n skillInstallBadgeDescriptorSchema,\n skillInstallShareDescriptorSchema,\n skillInstallSnippetSetSchema,\n skillInstallResponseSchema,\n skillInstallCopyTelemetryResponseSchema,\n} from './schemas';\n\nexport type JsonPrimitive = string | number | boolean | null;\nexport type JsonValue = JsonPrimitive | JsonValue[] | JsonObject;\nexport interface JsonObject {\n [key: string]: JsonValue;\n}\n\nexport interface RegistryBrokerClientOptions {\n baseUrl?: string;\n fetchImplementation?: typeof fetch;\n defaultHeaders?: Record<string, string>;\n apiKey?: string;\n /**\n * Optional account identifier to send as the `x-account-id` header.\n *\n * This is used by some Registry Broker deployments to attribute registrations\n * when no API key / user session is present (for example local docker E2E).\n */\n accountId?: string;\n ledgerApiKey?: string;\n registrationAutoTopUp?: AutoTopUpOptions;\n historyAutoTopUp?: HistoryAutoTopUpOptions;\n encryption?: ClientEncryptionOptions;\n}\n\nexport type ChatHistoryEntry = z.infer<\n typeof createSessionResponseSchema\n>['history'][number];\n\nexport type ChatTimelineEntry = z.infer<typeof chatTimelineEntrySchema>;\n\nexport type CipherEnvelope = NonNullable<ChatHistoryEntry['cipherEnvelope']>;\n\nexport type CipherEnvelopeRecipient = CipherEnvelope['recipients'][number];\n\nexport interface EphemeralKeyPair {\n privateKey: string;\n publicKey: string;\n}\n\nexport interface DeriveSharedSecretOptions {\n privateKey: string;\n peerPublicKey: string;\n}\n\nexport type SharedSecretInput = string | Uint8Array | Buffer;\n\nexport interface EncryptCipherEnvelopeOptions {\n plaintext: string;\n sessionId: string;\n recipients: Array<\n Pick<\n CipherEnvelopeRecipient,\n 'uaid' | 'ledgerAccountId' | 'userId' | 'email'\n >\n >;\n sharedSecret: SharedSecretInput;\n associatedData?: string;\n revision?: number;\n}\n\nexport interface DecryptCipherEnvelopeOptions {\n envelope: CipherEnvelope;\n sharedSecret: SharedSecretInput;\n encoding?: BufferEncoding;\n}\n\nexport type SessionEncryptionStatusResponse = z.infer<\n typeof sessionEncryptionStatusResponseSchema\n>;\n\nexport type SessionEncryptionSummary =\n SessionEncryptionStatusResponse['encryption'];\n\nexport type EncryptionHandshakeResponse = z.infer<\n typeof encryptionHandshakeResponseSchema\n>;\n\nexport type EncryptionHandshakeRecord =\n EncryptionHandshakeResponse['handshake'];\n\nexport interface RegisterEncryptionKeyPayload {\n keyType: 'secp256k1' | 'ed25519' | 'x25519';\n publicKey: string;\n uaid?: string;\n ledgerAccountId?: string;\n ledgerNetwork?: string;\n email?: string;\n}\n\nexport type RegisterEncryptionKeyResponse = z.infer<\n typeof registerEncryptionKeyResponseSchema\n>;\n\nexport interface AgentRegistrationRequestMetadata {\n trustScore?: number;\n verified?: boolean;\n avgLatency?: number;\n uptime?: number;\n provider?: string;\n category?: string;\n adapter?: string;\n openConvAICompatible?: boolean;\n customFields?: Record<string, string | number | boolean>;\n nativeId?: string;\n tunnelUrl?: string;\n publicUrl?: string;\n payments?: JsonValue;\n [key: string]: JsonValue | undefined;\n}\n\nexport interface AgentRegistrationRequest {\n profile: JsonObject;\n endpoint?: string;\n protocol?: string;\n communicationProtocol?: string;\n registry?: string;\n additionalRegistries?: string[];\n metadata?: AgentRegistrationRequestMetadata;\n}\n\nexport interface AutoTopUpOptions {\n accountId: string;\n privateKey: string;\n memo?: string;\n}\n\nexport interface HistoryAutoTopUpOptions extends AutoTopUpOptions {\n hbarAmount?: number;\n}\n\nexport type GuardContractVersion = 1;\n\nexport const GUARD_CANONICAL_PATH_PREFIX = '/api/guard' as const;\nexport const GUARD_COMPAT_PATH_PREFIX = '/guard' as const;\n\nexport type GuardPlanId = z.infer<typeof guardPlanIdSchema>;\n\nexport type GuardPrincipal = z.infer<typeof guardPrincipalSchema>;\n\nexport type GuardEntitlements = z.infer<typeof guardEntitlementsSchema>;\n\nexport type GuardBucketBalance = z.infer<typeof guardBucketBalanceSchema>;\n\nexport type GuardSessionResponse = z.infer<typeof guardSessionResponseSchema>;\n\nexport type GuardBalanceResponse = z.infer<typeof guardBalanceResponseSchema>;\n\nexport type GuardFeedItem = z.infer<typeof guardFeedItemSchema>;\n\nexport type GuardFeedSummary = z.infer<typeof guardFeedSummarySchema>;\n\nexport type GuardFeedResponse = z.infer<typeof guardFeedResponseSchema>;\n\nexport type GuardOverviewResponse = z.infer<typeof guardOverviewResponseSchema>;\n\nexport type GuardPolicy = z.infer<typeof guardPolicySchema>;\n\nexport type GuardTrustMatch = z.infer<typeof guardTrustMatchSchema>;\n\nexport type GuardTrustByHashResponse = z.infer<\n typeof guardTrustByHashResponseSchema\n>;\n\nexport interface GuardTrustResolveQuery {\n ecosystem?: string;\n name?: string;\n version?: string;\n}\n\nexport type GuardTrustResolveResponse = z.infer<\n typeof guardTrustResolveResponseSchema\n>;\n\nexport type GuardRevocationResponse = z.infer<\n typeof guardRevocationResponseSchema\n>;\n\nexport type GuardReceipt = z.infer<typeof guardReceiptSchema>;\n\nexport interface GuardReceiptSyncPayload {\n receipts: GuardReceipt[];\n inventory?: GuardInventoryArtifact[];\n}\n\nexport type GuardReceiptSyncResponse = z.infer<\n typeof guardReceiptSyncResponseSchema\n>;\n\nexport type GuardHistoryArtifact = z.infer<typeof guardHistoryArtifactSchema>;\n\nexport type GuardReceiptHistoryResponse = z.infer<\n typeof guardReceiptHistoryResponseSchema\n>;\n\nexport type GuardInventoryArtifact = z.infer<\n typeof guardInventoryArtifactSchema\n>;\n\nexport type GuardInventoryResponse = z.infer<\n typeof guardInventoryResponseSchema\n>;\n\nexport type GuardInventoryDiffEntry = z.infer<\n typeof guardInventoryDiffEntrySchema\n>;\n\nexport type GuardInventoryDiffResponse = z.infer<\n typeof guardInventoryDiffResponseSchema\n>;\n\nexport type GuardAbomSummary = z.infer<typeof guardAbomSummarySchema>;\n\nexport type GuardAbomResponse = z.infer<typeof guardAbomResponseSchema>;\n\nexport type GuardTimelineEvent = z.infer<typeof guardTimelineEventSchema>;\n\nexport type GuardArtifactTimelineResponse = z.infer<\n typeof guardArtifactTimelineResponseSchema\n>;\n\nexport type GuardReceiptExportSummary = z.infer<\n typeof guardReceiptExportSummarySchema\n>;\n\nexport type GuardExportSignature = z.infer<typeof guardExportSignatureSchema>;\n\nexport type GuardReceiptExportResponse = z.infer<\n typeof guardReceiptExportResponseSchema\n>;\n\nexport type GuardAlertPreferences = z.infer<typeof guardAlertPreferencesSchema>;\n\nexport interface GuardAlertPreferencesUpdate {\n emailEnabled?: boolean;\n digestMode?: GuardAlertPreferences['digestMode'];\n watchlistEnabled?: boolean;\n advisoriesEnabled?: boolean;\n repeatedWarningsEnabled?: boolean;\n teamAlertsEnabled?: boolean;\n}\n\nexport type GuardWatchlistItem = z.infer<typeof guardWatchlistItemSchema>;\n\nexport type GuardWatchlistResponse = z.infer<\n typeof guardWatchlistResponseSchema\n>;\n\nexport type GuardWatchlistLookupResponse = z.infer<\n typeof guardWatchlistLookupResponseSchema\n>;\n\nexport type GuardPainSignal = z.infer<typeof guardPainSignalSchema>;\n\nexport type GuardPainSignalAggregate = z.infer<\n typeof guardPainSignalAggregateSchema\n>;\n\nexport type GuardPainSignalListResponse = z.infer<\n typeof guardPainSignalListResponseSchema\n>;\n\nexport type GuardPainSignalAggregateResponse = z.infer<\n typeof guardPainSignalAggregateResponseSchema\n>;\n\nexport type GuardPreflightEvidence = z.infer<\n typeof guardPreflightEvidenceSchema\n>;\n\nexport type GuardPreflightRequest = z.infer<typeof guardPreflightRequestSchema>;\n\nexport type GuardPreflightVerdictResponse = z.infer<\n typeof guardPreflightVerdictResponseSchema\n>;\n\nexport interface GuardPainSignalIngestItem {\n signalId: string;\n signalName: string;\n artifactId: string;\n artifactName: string;\n artifactType: GuardInventoryArtifact['artifactType'];\n harness: string;\n latestSummary: string;\n occurredAt: string;\n count?: number;\n source?: 'scanner';\n publisher?: string;\n}\n\nexport interface GuardWatchlistUpsert {\n artifactId: string;\n artifactName: string;\n artifactType: GuardInventoryArtifact['artifactType'];\n artifactSlug: string;\n reason: string;\n source: GuardWatchlistItem['source'];\n}\n\nexport type GuardExceptionScope = z.infer<\n typeof guardExceptionItemSchema\n>['scope'];\n\nexport type GuardExceptionSource = z.infer<\n typeof guardExceptionItemSchema\n>['source'];\n\nexport type GuardExceptionItem = z.infer<typeof guardExceptionItemSchema>;\n\nexport type GuardExceptionListResponse = z.infer<\n typeof guardExceptionListResponseSchema\n>;\n\nexport type GuardTeamPolicyAuditItem = z.infer<\n typeof guardTeamPolicyAuditItemSchema\n>;\n\nexport type GuardTeamPolicyPack = z.infer<typeof guardTeamPolicyPackSchema>;\n\nexport interface GuardTeamPolicyPackUpdate {\n name?: string;\n sharedHarnessDefaults?: GuardTeamPolicyPack['sharedHarnessDefaults'];\n allowedPublishers?: string[];\n blockedPublishers?: string[];\n blockedDomains?: string[];\n blockedArtifacts?: string[];\n alertChannel?: GuardTeamPolicyPack['alertChannel'];\n}\n\nexport type GuardDevice = z.infer<typeof guardDeviceSchema>;\n\nexport type GuardDeviceListResponse = z.infer<\n typeof guardDeviceListResponseSchema\n>;\n\nexport interface GuardExceptionUpsert {\n scope: GuardExceptionScope;\n harness?: string | null;\n artifactId?: string | null;\n publisher?: string | null;\n reason: string;\n owner: string;\n source: GuardExceptionSource;\n expiresAt: string;\n}\n\nexport interface RegisterAgentOptions {\n autoTopUp?: AutoTopUpOptions;\n}\n\nexport interface RegistrationProgressWaitOptions {\n intervalMs?: number;\n timeoutMs?: number;\n throwOnFailure?: boolean;\n onProgress?: (progress: RegistrationProgressRecord) => void;\n signal?: AbortSignal;\n}\n\nexport type AgentSearchHit = z.infer<\n typeof searchResponseSchema\n>['hits'][number];\n\nexport type AgentProfile = AgentSearchHit['profile'];\n\nexport type SearchResult = z.infer<typeof searchResponseSchema>;\n\nexport interface SearchParams {\n q?: string;\n page?: number;\n limit?: number;\n registry?: string;\n registries?: string[];\n capabilities?: string[];\n protocols?: string[];\n minTrust?: number;\n adapters?: string[];\n sortBy?: string;\n sortOrder?: 'asc' | 'desc' | string;\n type?: 'ai-agents' | 'mcp-servers' | 'all' | (string & {});\n verified?: boolean;\n online?: boolean;\n metadata?: Record<string, Array<string | number | boolean>>;\n}\n\nexport interface DelegationWorkspaceContext {\n openFiles?: string[];\n modifiedFiles?: string[];\n relatedPaths?: string[];\n errors?: string[];\n commands?: string[];\n languages?: string[];\n}\n\nexport interface DelegationPlanFilter {\n capabilities?: string[];\n type?: 'ai-agents' | 'mcp-servers';\n registry?: string;\n registries?: string[];\n protocols?: string[];\n adapters?: string[];\n verifiedOnly?: boolean;\n onlineOnly?: boolean;\n minTrust?: number;\n minTrustSignals?: Record<string, number>;\n metadata?: Record<string, Array<string | number | boolean>>;\n metadataRanges?: Record<string, { min?: number; max?: number }>;\n}\n\nexport interface DelegationPlanRequest {\n task: string;\n context?: string;\n workspace?: DelegationWorkspaceContext;\n limit?: number;\n filter?: DelegationPlanFilter;\n}\n\nexport type DelegationPlanCandidate = z.infer<\n typeof delegationPlanResponseSchema\n>['opportunities'][number]['candidates'][number];\n\nexport type DelegationOpportunity = z.infer<\n typeof delegationPlanResponseSchema\n>['opportunities'][number];\n\nexport type DelegationPlanResponse = z.infer<\n typeof delegationPlanResponseSchema\n>;\n\nexport type RegistryStatsResponse = z.infer<typeof statsResponseSchema>;\n\nexport type RegistriesResponse = z.infer<typeof registriesResponseSchema>;\n\nexport type PopularSearchesResponse = z.infer<typeof popularResponseSchema>;\n\nexport type ResolvedAgentResponse = z.infer<typeof resolveResponseSchema>;\n\nexport type CreateSessionResponse = z.infer<typeof createSessionResponseSchema>;\n\nexport type ChatSessionResumeResponse = z.infer<\n typeof chatSessionResumeResponseSchema\n>;\n\nexport type SendMessageResponse = z.infer<typeof sendMessageResponseSchema>;\nexport type ChatReadinessResponse = z.infer<typeof chatReadinessResponseSchema>;\nexport type ChatSessionEndResponse = z.infer<\n typeof chatSessionEndResponseSchema\n>;\nexport type ChatRouteSummary = z.infer<typeof chatRouteSummarySchema>;\nexport type ChatPaymentState = z.infer<typeof chatPaymentStateSchema>;\nexport type ChatDeliveryState = z.infer<typeof chatDeliveryStateSchema>;\nexport type ChatReadinessStatus = z.infer<typeof chatReadinessStatusSchema>;\nexport type ChatReplyMode = z.infer<typeof chatReplyModeSchema>;\nexport type ChatRouteType = z.infer<typeof chatRouteTypeSchema>;\nexport type ChatSessionState = z.infer<typeof chatSessionStateSchema>;\nexport type ChatErrorCode = z.infer<typeof chatErrorCodeSchema>;\nexport type ChatRetryResponse = SendMessageResponse;\nexport type SkillSecurityBreakdownResponse = z.infer<\n typeof skillSecurityBreakdownResponseSchema\n>;\nexport type ChatHistorySnapshotResponse = z.infer<\n typeof chatHistorySnapshotResponseSchema\n>;\nexport type ChatHistoryCompactionResponse = z.infer<\n typeof chatHistoryCompactionResponseSchema\n>;\n\nexport type AgentFeedbackResponse = z.infer<typeof agentFeedbackResponseSchema>;\nexport type AgentFeedbackEligibilityResponse = z.infer<\n typeof agentFeedbackEligibilityResponseSchema\n>;\nexport type AgentFeedbackSubmissionResponse = z.infer<\n typeof agentFeedbackSubmissionResponseSchema\n>;\nexport type AgentFeedbackIndexResponse = z.infer<\n typeof agentFeedbackIndexResponseSchema\n>;\n\nexport type VerificationStatusResponse = z.infer<\n typeof verificationStatusResponseSchema\n>;\nexport type VerificationChallengeResponse = z.infer<\n typeof verificationChallengeResponseSchema\n>;\nexport type VerificationChallengeDetailsResponse = z.infer<\n typeof verificationChallengeDetailsResponseSchema\n>;\nexport type VerificationVerifyResponse = z.infer<\n typeof verificationVerifyResponseSchema\n>;\nexport type VerificationOwnershipResponse = z.infer<\n typeof verificationOwnershipResponseSchema\n>;\nexport type VerificationVerifySenderResponse = z.infer<\n typeof verificationVerifySenderResponseSchema\n>;\nexport type VerificationDnsStatusResponse = z.infer<\n typeof verificationDnsStatusResponseSchema\n>;\n\nexport type RegisterStatusResponse = z.infer<\n typeof registerStatusResponseSchema\n>;\n\nexport type MoltbookOwnerRegistrationUpdateResponse = z.infer<\n typeof moltbookOwnerRegistrationUpdateResponseSchema\n>;\n\nexport type SkillRegistryFileDescriptor = z.infer<\n typeof skillRegistryFileDescriptorSchema\n>;\nexport type SkillRegistryPublishSummary = z.infer<\n typeof skillRegistryPublishSummarySchema\n>;\nexport type SkillRegistryListResponse = z.infer<\n typeof skillRegistryListResponseSchema\n>;\nexport type SkillRegistryMineResponse = z.infer<\n typeof skillRegistryMineResponseSchema\n>;\nexport type SkillRegistryMyListResponse = z.infer<\n typeof skillRegistryMyListResponseSchema\n>;\nexport type SkillRegistryQuoteResponse = z.infer<\n typeof skillRegistryQuoteResponseSchema\n>;\nexport type SkillRegistryPublishResponse = z.infer<\n typeof skillRegistryPublishResponseSchema\n>;\nexport type SkillRegistryJobStatusResponse = z.infer<\n typeof skillRegistryJobStatusResponseSchema\n>;\nexport type SkillRegistryConfigResponse = z.infer<\n typeof skillRegistryConfigResponseSchema\n>;\nexport type SkillCatalogChannel = z.infer<typeof skillCatalogChannelSchema>;\nexport type SkillCatalogSortBy = z.infer<typeof skillCatalogSortBySchema>;\nexport type SkillCatalogVersionSummary = z.infer<\n typeof skillCatalogVersionSummarySchema\n>;\nexport type SkillCatalogItem = z.infer<typeof skillCatalogItemSchema>;\nexport type SkillCatalogResponse = z.infer<typeof skillCatalogResponseSchema>;\nexport type SkillRecommendedVersionResponse = z.infer<\n typeof skillRecommendedVersionResponseSchema\n>;\nexport type SkillDeprecationRecord = z.infer<\n typeof skillDeprecationRecordSchema\n>;\nexport type SkillDeprecationsResponse = z.infer<\n typeof skillDeprecationsResponseSchema\n>;\nexport type SkillBadgeMetric = z.infer<typeof skillBadgeMetricSchema>;\nexport type SkillBadgeStyle = z.infer<typeof skillBadgeStyleSchema>;\nexport type SkillBadgeResponse = z.infer<typeof skillBadgeResponseSchema>;\nexport type SkillRegistryTagsResponse = z.infer<\n typeof skillRegistryTagsResponseSchema\n>;\nexport type SkillRegistryCategoriesResponse = z.infer<\n typeof skillRegistryCategoriesResponseSchema\n>;\nexport type SkillResolverManifestResponse = z.infer<\n typeof skillResolverManifestResponseSchema\n>;\nexport type SkillRegistryOwnershipResponse = z.infer<\n typeof skillRegistryOwnershipResponseSchema\n>;\nexport type SkillRegistryVersionsResponse = z.infer<\n typeof skillRegistryVersionsResponseSchema\n>;\nexport type SkillRegistryVoteStatusResponse = z.infer<\n typeof skillRegistryVoteStatusResponseSchema\n>;\nexport type SkillTrustTier = z.infer<typeof skillTrustTierSchema>;\nexport type SkillStatusNextStep = z.infer<typeof skillStatusNextStepSchema>;\nexport type SkillPreviewSuggestedNextStep = z.infer<\n typeof skillPreviewSuggestedNextStepSchema\n>;\nexport type SkillPreviewReport = z.infer<typeof skillPreviewReportSchema>;\nexport type SkillPreviewRecord = z.infer<typeof skillPreviewRecordSchema>;\nexport type SkillPreviewLookupResponse = z.infer<\n typeof skillPreviewLookupResponseSchema\n>;\nexport type SkillStatusPreviewMetadata = z.infer<\n typeof skillStatusPreviewMetadataSchema\n>;\nexport type SkillStatusChecks = z.infer<typeof skillStatusChecksSchema>;\nexport type SkillStatusVerificationSignals = z.infer<\n typeof skillStatusVerificationSignalsSchema\n>;\nexport type SkillStatusProvenanceSignals = z.infer<\n typeof skillStatusProvenanceSignalsSchema\n>;\nexport type SkillStatusResponse = z.infer<typeof skillStatusResponseSchema>;\nexport type SkillQuotePreviewRange = z.infer<\n typeof skillQuotePreviewRangeSchema\n>;\nexport type SkillQuotePreviewResponse = z.infer<\n typeof skillQuotePreviewResponseSchema\n>;\nexport type SkillConversionSignalsResponse = z.infer<\n typeof skillConversionSignalsResponseSchema\n>;\nexport type SkillInstallArtifactDescriptor = z.infer<\n typeof skillInstallArtifactDescriptorSchema\n>;\nexport type SkillInstallResolverDescriptor = z.infer<\n typeof skillInstallResolverDescriptorSchema\n>;\nexport type SkillInstallBadgeDescriptor = z.infer<\n typeof skillInstallBadgeDescriptorSchema\n>;\nexport type SkillInstallShareDescriptor = z.infer<\n typeof skillInstallShareDescriptorSchema\n>;\nexport type SkillInstallSnippetSet = z.infer<\n typeof skillInstallSnippetSetSchema\n>;\nexport type SkillInstallResponse = z.infer<typeof skillInstallResponseSchema>;\nexport type SkillInstallCopyTelemetryResponse = z.infer<\n typeof skillInstallCopyTelemetryResponseSchema\n>;\n\nexport type SkillVerificationRequestCreateResponse = z.infer<\n typeof skillVerificationRequestCreateResponseSchema\n>;\nexport type SkillVerificationStatusResponse = z.infer<\n typeof skillVerificationStatusResponseSchema\n>;\nexport type SkillVerificationDomainProofChallengeResponse = z.infer<\n typeof skillVerificationDomainProofChallengeResponseSchema\n>;\nexport type SkillVerificationDomainProofVerifyResponse = z.infer<\n typeof skillVerificationDomainProofVerifyResponseSchema\n>;\nexport type SkillVerificationRequest =\n SkillVerificationRequestCreateResponse['request'];\nexport type SkillVerificationTier = SkillVerificationRequest['tier'];\n\nexport type SkillRegistryFileRole =\n | 'skill-md'\n | 'skill-json'\n | 'skill-icon'\n | 'file';\n\nexport interface SkillRegistryFileInput {\n name: string;\n base64: string;\n mimeType?: string | null;\n role?: SkillRegistryFileRole | null;\n}\n\nexport interface SkillRegistryQuoteRequest {\n files: SkillRegistryFileInput[];\n directoryTopicId?: string;\n accountId?: string;\n}\n\nexport interface SkillListOptions {\n name?: string;\n version?: string;\n limit?: number;\n cursor?: string;\n includeFiles?: boolean;\n accountId?: string;\n q?: string;\n tag?: string;\n category?: string;\n featured?: boolean;\n verified?: boolean;\n view?: 'latest' | 'all';\n}\n\nexport interface SkillCatalogQueryOptions {\n q?: string;\n category?: string;\n tags?: string[];\n featured?: boolean;\n verified?: boolean;\n channel?: SkillCatalogChannel;\n sortBy?: SkillCatalogSortBy;\n limit?: number;\n cursor?: string;\n}\n\nexport interface SkillRegistryPublishRequest {\n files: SkillRegistryFileInput[];\n directoryTopicId?: string;\n accountId?: string;\n quoteId?: string;\n publisher?: string | null;\n}\n\nexport interface SkillRegistryVoteRequest {\n name: string;\n upvoted: boolean;\n}\n\nexport interface SkillSecurityBreakdownRequest {\n jobId: string;\n}\n\nexport interface SkillStatusRequest {\n name: string;\n version?: string;\n}\n\nexport interface SkillPreviewLookupRequest {\n name: string;\n version?: string;\n}\n\nexport interface SkillPreviewByRepoRequest {\n repo: string;\n skillDir: string;\n ref?: string;\n}\n\nexport interface SkillQuotePreviewRequest {\n fileCount: number;\n totalBytes: number;\n name?: string;\n version?: string;\n repoUrl?: string;\n skillDir?: string;\n}\n\nexport interface UploadSkillPreviewFromGithubOidcRequest {\n token: string;\n report: SkillPreviewReport;\n}\n\nexport interface SkillInstallCopyTelemetryRequest {\n source?: string;\n installType?:\n | 'cli'\n | 'skillmd'\n | 'manifest'\n | 'claude'\n | 'cursor'\n | 'codex'\n | 'openclaw';\n}\n\nexport interface SkillVerificationRequestCreateRequest {\n name: string;\n version?: string;\n tier: SkillVerificationTier;\n}\n\nexport interface SkillVerificationDomainProofChallengeRequest {\n name: string;\n version?: string;\n domain?: string;\n}\n\nexport interface SkillVerificationDomainProofVerifyRequest {\n name: string;\n version?: string;\n domain?: string;\n challengeToken: string;\n}\n\nexport interface SkillRecommendedVersionSetRequest {\n name: string;\n version: string;\n}\n\nexport interface SkillDeprecationSetRequest {\n name: string;\n version?: string;\n reason: string;\n replacementRef?: string;\n}\n\nexport interface SkillBadgeQuery {\n name: string;\n metric?: SkillBadgeMetric;\n label?: string;\n style?: SkillBadgeStyle;\n}\n\nexport interface MoltbookOwnerRegistrationUpdateRequest {\n registered?: boolean;\n name?: string;\n description?: string;\n endpoint?: string;\n metadata?: JsonObject;\n}\n\nexport interface VerificationDnsVerifyRequest {\n uaid: string;\n persist?: boolean;\n}\n\nexport interface VerificationDnsStatusQuery {\n refresh?: boolean;\n persist?: boolean;\n}\n\nexport type AgentFeedbackEntriesIndexResponse = z.infer<\n typeof agentFeedbackEntriesIndexResponseSchema\n>;\n\nexport interface AgentFeedbackQuery {\n includeRevoked?: boolean;\n}\n\nexport interface AgentFeedbackEligibilityRequest {\n sessionId: string;\n}\n\nexport interface AgentFeedbackSubmissionRequest {\n sessionId: string;\n score: number;\n tag1?: string;\n tag2?: string;\n fileUri?: string;\n fileHash?: string;\n}\n\nexport type RegisterAgentSuccessResponse = z.infer<\n typeof registerAgentSuccessResponseSchema\n>;\nexport type RegisterAgentPendingResponse = z.infer<\n typeof registerAgentPendingResponseSchema\n>;\nexport type RegisterAgentPartialResponse = z.infer<\n typeof registerAgentPartialResponseSchema\n>;\nexport type RegisterAgentResponse = z.infer<typeof registerAgentResponseSchema>;\n\nexport type RegistrationProgressAdditionalEntry = z.infer<\n typeof registrationProgressAdditionalEntrySchema\n>;\nexport type RegistrationProgressRecord = z.infer<\n typeof registrationProgressRecordSchema\n>;\nexport type RegistrationProgressResponse = z.infer<\n typeof registrationProgressResponseSchema\n>;\nexport type RegisterAgentQuoteResponse = z.infer<\n typeof registrationQuoteResponseSchema\n>;\nexport type CreditProviderSummary = z.infer<typeof creditProviderSummarySchema>;\nexport type CreditProvidersResponse = z.infer<\n typeof creditProvidersResponseSchema\n>;\nexport type CreditBalanceResponse = z.infer<typeof creditBalanceResponseSchema>;\nexport interface HbarPurchaseIntentRequest {\n accountId?: string;\n credits?: number;\n hbarAmount?: number;\n memo?: string;\n}\nexport type HbarPurchaseIntentResponse = z.infer<\n typeof hbarPurchaseIntentResponseSchema\n>;\nexport type CreditPurchaseResponse = z.infer<\n typeof creditPurchaseResponseSchema\n>;\nexport type X402CreditPurchaseResponse = z.infer<\n typeof x402CreditPurchaseResponseSchema\n>;\nexport type X402MinimumsResponse = z.infer<typeof x402MinimumsResponseSchema>;\nexport type AdditionalRegistryCatalogResponse = z.infer<\n typeof additionalRegistryCatalogResponseSchema\n>;\nexport type AdditionalRegistryDescriptor =\n AdditionalRegistryCatalogResponse['registries'][number];\nexport type AdditionalRegistryNetworkDescriptor =\n AdditionalRegistryDescriptor['networks'][number];\n\nexport type AdapterDetailsResponse = z.infer<\n typeof adapterDetailsResponseSchema\n>;\n\nexport interface LedgerChallengeRequest {\n accountId: string;\n network: string;\n}\n\nexport type LedgerChallengeResponse = z.infer<\n typeof ledgerChallengeResponseSchema\n>;\n\nexport interface LedgerAuthenticationSignerResult {\n signature: string;\n signatureKind?: 'raw' | 'map' | 'evm';\n publicKey?: string;\n}\n\nexport interface LedgerAuthenticationOptions extends LedgerChallengeRequest {\n signer?: Signer;\n sign?: (\n message: string,\n ) =>\n | LedgerAuthenticationSignerResult\n | Promise<LedgerAuthenticationSignerResult>;\n expiresInMinutes?: number;\n}\n\nexport interface LedgerVerifyRequest extends LedgerChallengeRequest {\n challengeId: string;\n signature: string;\n signatureKind?: 'raw' | 'map' | 'evm';\n publicKey?: string;\n expiresInMinutes?: number;\n}\n\nexport type LedgerVerifyResponse = z.infer<typeof ledgerVerifyResponseSchema>;\n\nexport interface LedgerAuthenticationLogger {\n info?: (message: string) => void;\n warn?: (message: string) => void;\n}\n\nexport interface LedgerCredentialAuthOptions {\n accountId: string;\n network: string;\n signer?: Signer;\n sign?: (\n message: string,\n ) =>\n | LedgerAuthenticationSignerResult\n | Promise<LedgerAuthenticationSignerResult>;\n hederaPrivateKey?: string;\n evmPrivateKey?: string;\n expiresInMinutes?: number;\n setAccountHeader?: boolean;\n label?: string;\n logger?: LedgerAuthenticationLogger;\n}\n\nexport type ProtocolsResponse = z.infer<typeof protocolsResponseSchema>;\n\nexport type DetectProtocolResponse = z.infer<\n typeof detectProtocolResponseSchema\n>;\n\nexport type ProtocolDetectionMessage = JsonObject;\n\nexport type RegistrySearchByNamespaceResponse = z.infer<\n typeof registrySearchByNamespaceSchema\n>;\n\nexport type WebsocketStatsResponse = z.infer<\n typeof websocketStatsResponseSchema\n>;\n\nexport type MetricsSummaryResponse = z.infer<\n typeof metricsSummaryResponseSchema\n>;\n\nexport type UaidValidationResponse = z.infer<\n typeof uaidValidationResponseSchema\n>;\n\nexport type UaidConnectionStatus = z.infer<typeof uaidConnectionStatusSchema>;\n\nexport type DashboardStatsResponse = z.infer<\n typeof dashboardStatsResponseSchema\n>;\n\nexport type VectorSearchFilter = z.infer<\n typeof vectorSearchRequestSchema\n>['filter'];\n\nexport type VectorSearchRequest = z.infer<typeof vectorSearchRequestSchema>;\n\nexport type VectorSearchResponse = z.infer<typeof vectorSearchResponseSchema>;\nexport type SearchStatusResponse = z.infer<typeof searchStatusResponseSchema>;\n\ntype CreateSessionBasePayload = {\n auth?: AgentAuthConfig;\n historyTtlSeconds?: number;\n encryptionRequested?: boolean;\n senderUaid?: string;\n visibility?: 'private' | 'public';\n idempotencyKey?: string;\n};\n\nexport type CreateSessionRequestPayload =\n | (CreateSessionBasePayload & { uaid: string })\n | (CreateSessionBasePayload & { agentUrl: string });\n\nexport type ChatReadinessRequestPayload =\n | { uaid: string; agentUrl?: never; forceRefresh?: boolean }\n | { agentUrl: string; uaid?: never; forceRefresh?: boolean };\n\nexport interface ChatRetryRequestPayload extends SendMessageBasePayload {\n sessionId: string;\n uaid?: string;\n agentUrl?: string;\n}\n\nexport interface CompactHistoryRequestPayload {\n sessionId: string;\n preserveEntries?: number;\n}\n\nexport interface SendMessageEncryptionOptions\n extends Omit<EncryptCipherEnvelopeOptions, 'sessionId'> {\n sessionId?: string;\n}\n\nexport interface SendMessageBasePayload {\n message: string;\n streaming?: boolean;\n auth?: AgentAuthConfig;\n cipherEnvelope?: CipherEnvelope;\n encryption?: SendMessageEncryptionOptions;\n idempotencyKey?: string;\n senderUaid?: string;\n transport?: 'xmtp' | 'moltbook' | 'http' | 'a2a' | 'acp';\n}\n\nexport interface StartEncryptedChatSessionOptions {\n uaid: string;\n senderUaid?: string;\n historyTtlSeconds?: number;\n handshakeTimeoutMs?: number;\n pollIntervalMs?: number;\n onSessionCreated?: (sessionId: string) => void;\n auth?: AgentAuthConfig;\n}\n\nexport interface AcceptEncryptedChatSessionOptions {\n sessionId: string;\n responderUaid?: string;\n handshakeTimeoutMs?: number;\n pollIntervalMs?: number;\n}\n\nexport interface EncryptedChatSendOptions {\n plaintext: string;\n message?: string;\n recipients?: Array<\n Pick<\n CipherEnvelopeRecipient,\n 'uaid' | 'ledgerAccountId' | 'userId' | 'email'\n >\n >;\n streaming?: boolean;\n auth?: AgentAuthConfig;\n}\n\nexport type ConversationMode = 'encrypted' | 'plaintext';\n\nexport interface DecryptedHistoryEntry {\n entry: ChatHistoryEntry;\n plaintext: string | null;\n}\n\nexport interface ChatConversationHandle {\n sessionId: string;\n mode: ConversationMode;\n summary?: SessionEncryptionSummary | null;\n send: (options: EncryptedChatSendOptions) => Promise<SendMessageResponse>;\n decryptHistoryEntry: (entry: ChatHistoryEntry) => string | null;\n fetchHistory: (\n options?: ChatHistoryFetchOptions,\n ) => Promise<DecryptedHistoryEntry[]>;\n}\n\nexport interface EncryptedChatSessionHandle extends ChatConversationHandle {\n summary: SessionEncryptionSummary;\n mode: 'encrypted';\n}\n\nexport type RecipientIdentity = Pick<\n CipherEnvelopeRecipient,\n 'uaid' | 'ledgerAccountId' | 'userId' | 'email'\n>;\n\nexport interface ChatHistoryFetchOptions {\n decrypt?: boolean;\n identity?: RecipientIdentity;\n sharedSecret?: SharedSecretInput;\n}\n\nexport type ChatHistorySnapshotWithDecryptedEntries =\n ChatHistorySnapshotResponse & {\n decryptedHistory?: DecryptedHistoryEntry[];\n };\n\nexport interface ConversationEncryptionOptions {\n preference?: 'preferred' | 'required' | 'disabled';\n handshakeTimeoutMs?: number;\n pollIntervalMs?: number;\n}\n\nexport interface StartConversationOptions {\n uaid: string;\n senderUaid?: string;\n historyTtlSeconds?: number;\n auth?: AgentAuthConfig;\n encryption?: ConversationEncryptionOptions;\n onSessionCreated?: (sessionId: string) => void;\n}\n\nexport interface AcceptConversationOptions {\n sessionId: string;\n responderUaid?: string;\n encryption?: ConversationEncryptionOptions;\n}\n\nexport interface StartChatBaseOptions {\n auth?: AgentAuthConfig;\n historyTtlSeconds?: number;\n encryption?: ConversationEncryptionOptions;\n senderUaid?: string;\n onSessionCreated?: (sessionId: string) => void;\n}\n\nexport type StartChatOptions =\n | (StartChatBaseOptions & { uaid: string; agentUrl?: never })\n | (StartChatBaseOptions & { agentUrl: string; uaid?: never });\n\nexport interface AutoRegisterEncryptionKeyOptions {\n enabled?: boolean;\n keyType?: 'secp256k1';\n publicKey?: string;\n privateKey?: string;\n envVar?: string;\n envPath?: string;\n generateIfMissing?: boolean;\n overwriteEnv?: boolean;\n uaid?: string;\n ledgerAccountId?: string;\n ledgerNetwork?: string;\n email?: string;\n label?: string;\n}\n\nexport interface ClientEncryptionOptions {\n autoRegister?: AutoRegisterEncryptionKeyOptions;\n autoDecryptHistory?: boolean;\n}\n\nexport interface EnsureAgentKeyOptions\n extends Omit<AutoRegisterEncryptionKeyOptions, 'enabled' | 'uaid'> {\n uaid: string;\n}\n\nexport interface InitializeAgentClientOptions\n extends RegistryBrokerClientOptions {\n uaid: string;\n ensureEncryptionKey?: boolean | EnsureAgentKeyOptions;\n}\n\nexport type SendMessageRequestPayload =\n | (SendMessageBasePayload & { uaid: string })\n | (SendMessageBasePayload & { sessionId: string })\n | (SendMessageBasePayload & { agentUrl: string; sessionId?: string });\n\nexport interface EncryptionHandshakeSubmissionPayload {\n role: 'requester' | 'responder';\n keyType: string;\n ephemeralPublicKey: string;\n longTermPublicKey?: string;\n signature?: string;\n uaid?: string;\n userId?: string;\n ledgerAccountId?: string;\n metadata?: Record<string, JsonValue>;\n}\nexport type AgentAuthType = 'bearer' | 'basic' | 'header' | 'apiKey';\n\nexport interface AgentAuthConfig {\n type?: AgentAuthType;\n token?: string;\n username?: string;\n password?: string;\n headerName?: string;\n headerValue?: string;\n headers?: Record<string, string>;\n}\n\nexport type AdaptersResponse = z.infer<typeof adaptersResponseSchema>;\n\nexport type AdapterRegistryCategory = z.infer<\n typeof adapterRegistryCategorySchema\n>;\n\nexport type AdapterRegistryCategoriesResponse = z.infer<\n typeof adapterRegistryCategoriesResponseSchema\n>;\n\nexport type AdapterRegistryAdaptersResponse = z.infer<\n typeof adapterRegistryAdaptersResponseSchema\n>;\n\nexport type AdapterRegistryCreateCategoryResponse = z.infer<\n typeof adapterRegistryCreateCategoryResponseSchema\n>;\n\nexport type AdapterRegistrySubmitAdapterResponse = z.infer<\n typeof adapterRegistrySubmitAdapterResponseSchema\n>;\n\nexport type AdapterRegistrySubmitAdapterAcceptedResponse = z.infer<\n typeof adapterRegistrySubmitAdapterAcceptedResponseSchema\n>;\n\nexport type AdapterRegistrySubmissionStatusResponse = z.infer<\n typeof adapterRegistrySubmissionStatusResponseSchema\n>;\n\nexport interface CreateAdapterRegistryCategoryRequest {\n name: string;\n description?: string;\n type?: 'adapter-type' | 'custom';\n slug?: string;\n metadata?: {\n version?: string;\n name?: string;\n description?: string;\n operator?: {\n account?: string;\n name?: string;\n contact?: string;\n };\n entityTypes?: string[];\n categories?: string[];\n tags?: string[];\n links?: Record<string, string>;\n };\n}\n\nexport interface SubmitAdapterRegistryAdapterRequest {\n adapterId: string;\n adapterName: string;\n entity: string;\n package: AdapterPackage;\n config: AdapterConfigContext;\n stateModel?: string;\n signature?: string;\n manifest: AdapterManifest;\n manifestPointer?: string;\n manifestSequence?: number;\n keywords?: string[];\n categorySlug?: string;\n newCategory?: CreateAdapterRegistryCategoryRequest;\n}\n\nexport type SearchFacetsResponse = z.infer<typeof searchFacetsResponseSchema>;\n"],"names":[],"mappings":"AAoUO,MAAM,8BAA8B;AACpC,MAAM,2BAA2B;"}
@@ -1,4 +1,4 @@
1
- import { optionalImportSync, optionalImport } from "./standards-sdk.es165.js";
1
+ import { optionalImportSync, optionalImport } from "./standards-sdk.es164.js";
2
2
  const unsupported = (method) => new Error(`${method} is not supported by the in-memory signer`);
3
3
  let cachedSdk = null;
4
4
  const loadHashgraphSdk = () => {