@herd-labs/sdk 0.3.1 → 0.5.0

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 (99) hide show
  1. package/dist/index.d.ts +17 -17
  2. package/dist/index.js +17 -17
  3. package/dist/src/config.d.ts +11 -11
  4. package/dist/src/config.js +9 -12
  5. package/dist/src/errors.d.ts +35 -44
  6. package/dist/src/errors.js +19 -16
  7. package/dist/src/live/ActionsServiceLive.d.ts +3 -3
  8. package/dist/src/live/ActionsServiceLive.js +14 -14
  9. package/dist/src/live/AdaptersServiceLive.d.ts +3 -3
  10. package/dist/src/live/AdaptersServiceLive.js +8 -8
  11. package/dist/src/live/AgentSafesServiceLive.d.ts +3 -3
  12. package/dist/src/live/AgentSafesServiceLive.js +5 -5
  13. package/dist/src/live/AgentWalletsServiceLive.d.ts +3 -3
  14. package/dist/src/live/AgentWalletsServiceLive.js +4 -4
  15. package/dist/src/live/AgentWorkflowsServiceLive.d.ts +3 -3
  16. package/dist/src/live/AgentWorkflowsServiceLive.js +14 -14
  17. package/dist/src/live/AuthServiceLive.d.ts +3 -3
  18. package/dist/src/live/AuthServiceLive.js +7 -7
  19. package/dist/src/live/BookmarksServiceLive.d.ts +3 -3
  20. package/dist/src/live/BookmarksServiceLive.js +20 -20
  21. package/dist/src/live/CodeBlocksServiceLive.d.ts +3 -3
  22. package/dist/src/live/CodeBlocksServiceLive.js +11 -11
  23. package/dist/src/live/CollectionsServiceLive.d.ts +3 -3
  24. package/dist/src/live/CollectionsServiceLive.js +6 -6
  25. package/dist/src/live/ContractsServiceLive.d.ts +3 -3
  26. package/dist/src/live/ContractsServiceLive.js +10 -10
  27. package/dist/src/live/DocsServiceLive.d.ts +3 -3
  28. package/dist/src/live/DocsServiceLive.js +4 -4
  29. package/dist/src/live/GroupsServiceLive.d.ts +3 -3
  30. package/dist/src/live/GroupsServiceLive.js +9 -9
  31. package/dist/src/live/HalServiceLive.d.ts +3 -3
  32. package/dist/src/live/HalServiceLive.js +12 -12
  33. package/dist/src/live/TransactionsServiceLive.d.ts +3 -3
  34. package/dist/src/live/TransactionsServiceLive.js +18 -18
  35. package/dist/src/live/WalletsServiceLive.d.ts +3 -3
  36. package/dist/src/live/WalletsServiceLive.js +18 -18
  37. package/dist/src/live/http.d.ts +6 -6
  38. package/dist/src/live/http.js +15 -15
  39. package/dist/src/schemas/actions.d.ts +179 -339
  40. package/dist/src/schemas/actions.js +80 -76
  41. package/dist/src/schemas/adapters.d.ts +7 -17
  42. package/dist/src/schemas/adapters.js +5 -5
  43. package/dist/src/schemas/agent-wallets.d.ts +98 -222
  44. package/dist/src/schemas/agent-wallets.js +52 -52
  45. package/dist/src/schemas/agent-workflows.d.ts +104 -104
  46. package/dist/src/schemas/agent-workflows.js +53 -49
  47. package/dist/src/schemas/auth.d.ts +35 -64
  48. package/dist/src/schemas/auth.js +16 -16
  49. package/dist/src/schemas/bookmarks.d.ts +98 -216
  50. package/dist/src/schemas/bookmarks.js +55 -51
  51. package/dist/src/schemas/codeblocks.d.ts +149 -308
  52. package/dist/src/schemas/codeblocks.js +72 -67
  53. package/dist/src/schemas/collections.d.ts +120 -232
  54. package/dist/src/schemas/collections.js +48 -44
  55. package/dist/src/schemas/common.d.ts +13 -29
  56. package/dist/src/schemas/common.js +8 -8
  57. package/dist/src/schemas/contracts.d.ts +256 -447
  58. package/dist/src/schemas/contracts.js +92 -103
  59. package/dist/src/schemas/docs.d.ts +12 -29
  60. package/dist/src/schemas/docs.js +9 -9
  61. package/dist/src/schemas/groups.d.ts +74 -74
  62. package/dist/src/schemas/groups.js +32 -32
  63. package/dist/src/schemas/hal.d.ts +109 -217
  64. package/dist/src/schemas/hal.js +44 -42
  65. package/dist/src/schemas/transactions.d.ts +648 -926
  66. package/dist/src/schemas/transactions.js +158 -162
  67. package/dist/src/schemas/wallets.d.ts +577 -731
  68. package/dist/src/schemas/wallets.js +206 -145
  69. package/dist/src/services/ActionsService.d.ts +3 -3
  70. package/dist/src/services/ActionsService.js +2 -2
  71. package/dist/src/services/AdaptersService.d.ts +1 -1
  72. package/dist/src/services/AdaptersService.js +2 -2
  73. package/dist/src/services/AgentSafesService.d.ts +5 -5
  74. package/dist/src/services/AgentSafesService.js +2 -2
  75. package/dist/src/services/AgentWalletsService.d.ts +3 -3
  76. package/dist/src/services/AgentWalletsService.js +2 -2
  77. package/dist/src/services/AgentWorkflowsService.d.ts +11 -11
  78. package/dist/src/services/AgentWorkflowsService.js +6 -2
  79. package/dist/src/services/AuthService.d.ts +5 -5
  80. package/dist/src/services/AuthService.js +2 -2
  81. package/dist/src/services/BookmarksService.d.ts +3 -3
  82. package/dist/src/services/BookmarksService.js +2 -2
  83. package/dist/src/services/CodeBlocksService.d.ts +1 -1
  84. package/dist/src/services/CodeBlocksService.js +2 -2
  85. package/dist/src/services/CollectionsService.d.ts +1 -1
  86. package/dist/src/services/CollectionsService.js +2 -2
  87. package/dist/src/services/ContractsService.d.ts +6 -6
  88. package/dist/src/services/ContractsService.js +2 -2
  89. package/dist/src/services/DocsService.d.ts +2 -2
  90. package/dist/src/services/DocsService.js +2 -2
  91. package/dist/src/services/GroupsService.d.ts +13 -13
  92. package/dist/src/services/GroupsService.js +4 -2
  93. package/dist/src/services/HalService.d.ts +1 -1
  94. package/dist/src/services/HalService.js +2 -2
  95. package/dist/src/services/TransactionsService.d.ts +5 -5
  96. package/dist/src/services/TransactionsService.js +2 -2
  97. package/dist/src/services/WalletsService.d.ts +5 -5
  98. package/dist/src/services/WalletsService.js +2 -2
  99. package/package.json +13 -18
package/dist/index.d.ts CHANGED
@@ -1,20 +1,20 @@
1
- import { HerdConfig, HerdConfigSchema, HerdConfigType } from "./src/config.js";
1
+ import { HerdConfig, HerdConfigSchema, HerdConfigService } from "./src/config.js";
2
2
  import { ActionNotFoundError, AuthError, CodeBlockNotFoundError, CollectionNotFoundError, DocNotFoundError, ServiceError, SimulationError, TransactionNotFoundError } from "./src/errors.js";
3
- import { Blockchain, BlockchainType, EvmAddress, EvmAddressType, PaginationParams } from "./src/schemas/common.js";
4
- import { Action, ActionExpression, ActionVersion, ActionVersionsResponse, ActionsSearchParams, ActionsSearchResponse, CreateActionParams, CreateActionResponse, GetActionVersionsParams, PublishExpressionParams, PublishExpressionResponse, RelatedAdapterItem, RelatedAdaptersContract, RelatedAdaptersFunctionSignature, RelatedAdaptersResponse, RelatedAdaptersSearchParams, UpdateActionMetadataParams, UpdateExpressionParams } from "./src/schemas/actions.js";
5
- import { CreateAdapterParams } from "./src/schemas/adapters.js";
6
- import { AgentSafe, AgentSafeMetadata, AgentWallet, AgentWalletSafe, AgentWalletSafesList, AgentWalletsList, AgentWalletsListParams, EditAgentSafeMetadataParams, LinkedAgentWallet, SetSafeProposerParams, SetSafeProposerResponse } from "./src/schemas/agent-wallets.js";
7
- import { ApiKey, ApiKeyListResponse, ApiKeyListResponseType, ApiKeyType, CreateApiKeyParams, CreateApiKeyParamsType, CreatedApiKey, CreatedApiKeyType, DeleteApiKeyParams, DeleteApiKeyParamsType, FeatureFlags, FeatureFlagsSchema, TokenResponse, WhoamiResponse } from "./src/schemas/auth.js";
8
- import { AddContractBookmarkParams, AddTransactionBookmarkParams, AddWalletBookmarkParams, BookmarkObjectType, BookmarkObjectTypeValue, BookmarkResponse, BookmarksList, ContractBookmark, DeleteBookmarkParams, TransactionBookmark, UpdateBookmarkLabelParams, WalletBookmark } from "./src/schemas/bookmarks.js";
9
- import { CodeBlockCode, CodeBlockDefinition, CodeBlockExecuteResponse, CodeBlockLogEntry, CodeBlockVersion, CodeBlocksSearchParams, CodeBlocksSearchResponse, CreateCodeBlockParams, CreateCodeBlockResponse, CreateCodeVersionParams, CreateCodeVersionResponse, ExecuteCodeBlockParams, PublishCodeBlockResponse, PublishCodeParams, UpdateCodeBlockMetadataParams, UpdateCodeParams } from "./src/schemas/codeblocks.js";
10
- import { Collection, CollectionSpec, CollectionSpecItem, CollectionVersion, CollectionsSearchParams, CollectionsSearchResponse, CreateCollectionParams, CreateCollectionResponse, UpdateCollectionParams } from "./src/schemas/collections.js";
11
- import { AddressDetails, ContractCodeMatchBlock, ContractCodeSearchResult, ContractDiff, ContractMetadata, DiffEntry, DiffVersionInfo, DiffVersionsParams, EventSummary, FunctionSummary, GetContractCodeParams, GetContractCodeResponse, HistoricalImplementation, TokenDetails, TokenImage, TopHolder } from "./src/schemas/contracts.js";
12
- import { DocContent, DocEntry } from "./src/schemas/docs.js";
13
- import { CreateGroupParams, CreateGroupResponse, EditGroupMetadataParams, EditGroupMetadataResponse, GroupDetails, GroupIdParams, GroupMember, GroupSummary, GroupWallet, ListGroupsResponse, ProposalResponse, ProposeMemberChangeParams, ProposeQuorumChangeParams } from "./src/schemas/groups.js";
14
- import { AgentWorkflow, AgentWorkflowDecision, AgentWorkflowRun, AgentWorkflowWithRuns, CreateAgentWorkflowParams, CreateAgentWorkflowResponse, CreateAgentWorkflowRunParams, CreateAgentWorkflowRunResponse, ExecuteSafeTxParams, ExecuteSafeTxResponse, GetAgentWorkflowParams, ListAgentWorkflowsParams, ListAgentWorkflowsResponse, PushAgentWorkflowParams, PushAgentWorkflowResponse, SubmitAgentWorkflowDecisionParams, SubmitAgentWorkflowDecisionResponse } from "./src/schemas/agent-workflows.js";
15
- import { EvaluateExistingParams, EvaluateExistingResponse, EvaluateParams, EvaluateResponse, TransactionStatus } from "./src/schemas/hal.js";
16
- import { DecodedTrace, LatestEventTransactions, LatestFunctionTransactions, LatestTxParams, Transaction, TransactionQueryResponse } from "./src/schemas/transactions.js";
17
- import { DeployedContract, DeployedContracts, DeployedContractsPagination, Erc7702Delegation, MultisigDetails, MultisigSigner, PendingTransaction, TokenActivity, TokenActivityPagination, TokenActivityParams, TokenBalanceInfo, TokenTransfer, TransactionActivity, TransactionActivityPagination, TransactionActivityQuery, WalletBalance, WalletOverview, WalletTransaction, WalletTxActionExecution, WalletTxBalanceChange, WalletTxCall, WalletTxTransfer } from "./src/schemas/wallets.js";
3
+ import { Blockchain, BlockchainSchema, EvmAddress, EvmAddressSchema, PaginationParams, PaginationParamsSchema } from "./src/schemas/common.js";
4
+ import { Action, ActionExpression, ActionExpressionSchema, ActionSchema, ActionVersion, ActionVersionSchema, ActionVersionsResponse, ActionVersionsResponseSchema, ActionsSearchParams, ActionsSearchParamsSchema, ActionsSearchResponse, ActionsSearchResponseSchema, CreateActionParams, CreateActionParamsSchema, CreateActionResponse, CreateActionResponseSchema, GetActionVersionsParams, GetActionVersionsParamsSchema, PublishExpressionParams, PublishExpressionParamsSchema, PublishExpressionResponse, PublishExpressionResponseSchema, RelatedAdapterItem, RelatedAdapterItemSchema, RelatedAdaptersContract, RelatedAdaptersContractSchema, RelatedAdaptersFunctionSignature, RelatedAdaptersFunctionSignatureSchema, RelatedAdaptersResponse, RelatedAdaptersResponseSchema, RelatedAdaptersSearchParams, RelatedAdaptersSearchParamsSchema, UpdateActionMetadataParams, UpdateActionMetadataParamsSchema, UpdateExpressionParams, UpdateExpressionParamsSchema } from "./src/schemas/actions.js";
5
+ import { CreateAdapterParams, CreateAdapterParamsSchema } from "./src/schemas/adapters.js";
6
+ import { AgentSafe, AgentSafeMetadata, AgentSafeMetadataSchema, AgentSafeSchema, AgentWallet, AgentWalletSafe, AgentWalletSafeSchema, AgentWalletSafesList, AgentWalletSafesListSchema, AgentWalletSchema, AgentWalletsList, AgentWalletsListParams, AgentWalletsListParamsSchema, AgentWalletsListSchema, EditAgentSafeMetadataParams, EditAgentSafeMetadataParamsSchema, LinkedAgentWallet, LinkedAgentWalletSchema, SetSafeProposerParams, SetSafeProposerParamsSchema, SetSafeProposerResponse, SetSafeProposerResponseSchema } from "./src/schemas/agent-wallets.js";
7
+ import { ApiKey, ApiKeyListResponse, ApiKeyListResponseSchema, ApiKeySchema, CreateApiKeyParams, CreateApiKeyParamsSchema, CreatedApiKey, CreatedApiKeySchema, DeleteApiKeyParams, DeleteApiKeyParamsSchema, FeatureFlags, FeatureFlagsSchema, TokenResponse, TokenResponseSchema, WhoamiResponse, WhoamiResponseSchema } from "./src/schemas/auth.js";
8
+ import { AddContractBookmarkParams, AddContractBookmarkParamsSchema, AddTransactionBookmarkParams, AddTransactionBookmarkParamsSchema, AddWalletBookmarkParams, AddWalletBookmarkParamsSchema, BookmarkObjectType, BookmarkObjectTypeSchema, BookmarkResponse, BookmarkResponseSchema, BookmarksList, BookmarksListSchema, ContractBookmark, ContractBookmarkSchema, DeleteBookmarkParams, DeleteBookmarkParamsSchema, TransactionBookmark, TransactionBookmarkSchema, UpdateBookmarkLabelParams, UpdateBookmarkLabelParamsSchema, WalletBookmark, WalletBookmarkSchema } from "./src/schemas/bookmarks.js";
9
+ import { CodeBlockCode, CodeBlockCodeSchema, CodeBlockDefinition, CodeBlockDefinitionSchema, CodeBlockExecuteResponse, CodeBlockExecuteResponseSchema, CodeBlockLogEntry, CodeBlockLogEntrySchema, CodeBlockVersion, CodeBlockVersionSchema, CodeBlocksSearchParams, CodeBlocksSearchParamsSchema, CodeBlocksSearchResponse, CodeBlocksSearchResponseSchema, CreateCodeBlockParams, CreateCodeBlockParamsSchema, CreateCodeBlockResponse, CreateCodeBlockResponseSchema, CreateCodeVersionParams, CreateCodeVersionParamsSchema, CreateCodeVersionResponse, CreateCodeVersionResponseSchema, ExecuteCodeBlockParams, ExecuteCodeBlockParamsSchema, PublishCodeBlockResponse, PublishCodeBlockResponseSchema, PublishCodeParams, PublishCodeParamsSchema, UpdateCodeBlockMetadataParams, UpdateCodeBlockMetadataParamsSchema, UpdateCodeParams, UpdateCodeParamsSchema } from "./src/schemas/codeblocks.js";
10
+ import { Collection, CollectionSchema, CollectionSpec, CollectionSpecItem, CollectionSpecItemSchema, CollectionSpecSchema, CollectionVersion, CollectionVersionSchema, CollectionsSearchParams, CollectionsSearchParamsSchema, CollectionsSearchResponse, CollectionsSearchResponseSchema, CreateCollectionParams, CreateCollectionParamsSchema, CreateCollectionResponse, CreateCollectionResponseSchema, UpdateCollectionParams, UpdateCollectionParamsSchema } from "./src/schemas/collections.js";
11
+ import { AddressDetails, AddressDetailsSchema, ContractCodeMatchBlock, ContractCodeMatchBlockSchema, ContractCodeSearchResult, ContractCodeSearchResultSchema, ContractDiff, ContractDiffSchema, ContractMetadata, ContractMetadataSchema, DiffEntry, DiffEntrySchema, DiffVersionInfo, DiffVersionInfoSchema, DiffVersionsParams, DiffVersionsParamsSchema, EventSummary, EventSummarySchema, FunctionSummary, FunctionSummarySchema, GetContractCodeParams, GetContractCodeParamsSchema, GetContractCodeResponse, GetContractCodeResponseSchema, HistoricalImplementation, HistoricalImplementationSchema, TokenDetails, TokenDetailsSchema, TokenImage, TokenImageSchema, TopHolder, TopHolderSchema } from "./src/schemas/contracts.js";
12
+ import { DocContent, DocContentSchema, DocEntry, DocEntrySchema } from "./src/schemas/docs.js";
13
+ import { CreateGroupParams, CreateGroupParamsSchema, CreateGroupResponse, CreateGroupResponseSchema, EditGroupMetadataParams, EditGroupMetadataParamsSchema, EditGroupMetadataResponse, EditGroupMetadataResponseSchema, GroupDetails, GroupDetailsSchema, GroupIdParams, GroupIdParamsSchema, GroupMember, GroupMemberSchema, GroupSummary, GroupSummarySchema, GroupWallet, GroupWalletSchema, ListGroupsResponse, ListGroupsResponseSchema, ProposalResponse, ProposalResponseSchema, ProposeMemberChangeParams, ProposeMemberChangeParamsSchema, ProposeQuorumChangeParams, ProposeQuorumChangeParamsSchema } from "./src/schemas/groups.js";
14
+ import { AgentWorkflow, AgentWorkflowDecision, AgentWorkflowDecisionSchema, AgentWorkflowRun, AgentWorkflowRunSchema, AgentWorkflowSchema, AgentWorkflowWithRuns, AgentWorkflowWithRunsSchema, CreateAgentWorkflowParams, CreateAgentWorkflowParamsSchema, CreateAgentWorkflowResponse, CreateAgentWorkflowResponseSchema, CreateAgentWorkflowRunParams, CreateAgentWorkflowRunParamsSchema, CreateAgentWorkflowRunResponse, CreateAgentWorkflowRunResponseSchema, ExecuteSafeTxParams, ExecuteSafeTxParamsSchema, ExecuteSafeTxResponse, ExecuteSafeTxResponseSchema, GetAgentWorkflowParams, GetAgentWorkflowParamsSchema, ListAgentWorkflowsParams, ListAgentWorkflowsParamsSchema, ListAgentWorkflowsResponse, ListAgentWorkflowsResponseSchema, PushAgentWorkflowParams, PushAgentWorkflowParamsSchema, PushAgentWorkflowResponse, PushAgentWorkflowResponseSchema, SubmitAgentWorkflowDecisionParams, SubmitAgentWorkflowDecisionParamsSchema, SubmitAgentWorkflowDecisionResponse, SubmitAgentWorkflowDecisionResponseSchema } from "./src/schemas/agent-workflows.js";
15
+ import { EvaluateExistingParams, EvaluateExistingParamsSchema, EvaluateExistingResponse, EvaluateExistingResponseSchema, EvaluateParams, EvaluateParamsSchema, EvaluateResponse, EvaluateResponseSchema, TransactionStatus, TransactionStatusSchema } from "./src/schemas/hal.js";
16
+ import { DecodedTrace, LatestEventTransactions, LatestEventTransactionsSchema, LatestFunctionTransactions, LatestFunctionTransactionsSchema, LatestTxParams, LatestTxParamsSchema, Transaction, TransactionQueryResponse, TransactionQueryResponseSchema, TransactionSchema } from "./src/schemas/transactions.js";
17
+ import { DeployedContract, DeployedContractSchema, DeployedContracts, DeployedContractsPagination, DeployedContractsPaginationSchema, DeployedContractsSchema, Erc7702Delegation, Erc7702DelegationSchema, MultisigDetails, MultisigDetailsSchema, MultisigSigner, MultisigSignerSchema, PendingTransaction, PendingTransactionSchema, TokenActivity, TokenActivityPagination, TokenActivityPaginationSchema, TokenActivityParams, TokenActivityParamsSchema, TokenActivitySchema, TokenBalanceInfo, TokenBalanceInfoSchema, TokenTransfer, TokenTransferSchema, TransactionActivity, TransactionActivityPagination, TransactionActivityPaginationSchema, TransactionActivityQuery, TransactionActivityQuerySchema, TransactionActivitySchema, WalletBalance, WalletBalanceSchema, WalletOverview, WalletOverviewSchema, WalletTransaction, WalletTransactionSchema, WalletTxActionExecution, WalletTxActionExecutionSchema, WalletTxBalanceChange, WalletTxBalanceChangeSchema, WalletTxCall, WalletTxCallSchema, WalletTxTransfer, WalletTxTransferSchema } from "./src/schemas/wallets.js";
18
18
  import { ActionsService } from "./src/services/ActionsService.js";
19
19
  import { AdaptersService } from "./src/services/AdaptersService.js";
20
20
  import { AgentWalletsService } from "./src/services/AgentWalletsService.js";
@@ -45,4 +45,4 @@ import { GroupsServiceLive } from "./src/live/GroupsServiceLive.js";
45
45
  import { HalServiceLive } from "./src/live/HalServiceLive.js";
46
46
  import { TransactionsServiceLive } from "./src/live/TransactionsServiceLive.js";
47
47
  import { WalletsServiceLive } from "./src/live/WalletsServiceLive.js";
48
- export { Action, ActionExpression, ActionNotFoundError, ActionVersion, ActionVersionsResponse, ActionsSearchParams, ActionsSearchResponse, ActionsService, ActionsServiceLive, AdaptersService, AdaptersServiceLive, AddContractBookmarkParams, AddTransactionBookmarkParams, AddWalletBookmarkParams, AddressDetails, AgentSafe, AgentSafeMetadata, AgentSafesService, AgentSafesServiceLive, AgentWallet, AgentWalletSafe, AgentWalletSafesList, AgentWalletsList, AgentWalletsListParams, AgentWalletsService, AgentWalletsServiceLive, AgentWorkflow, AgentWorkflowDecision, AgentWorkflowNotFoundError, AgentWorkflowRun, AgentWorkflowRunNotFoundError, AgentWorkflowWithRuns, AgentWorkflowsService, AgentWorkflowsServiceLive, ApiKey, ApiKeyListResponse, type ApiKeyListResponseType, type ApiKeyType, AuthError, AuthService, AuthServiceLive, Blockchain, type BlockchainType, BookmarkObjectType, type BookmarkObjectTypeValue, BookmarkResponse, BookmarksList, BookmarksService, BookmarksServiceLive, CodeBlockCode, CodeBlockDefinition, CodeBlockExecuteResponse, CodeBlockLogEntry, CodeBlockNotFoundError, CodeBlockVersion, CodeBlocksSearchParams, CodeBlocksSearchResponse, CodeBlocksService, CodeBlocksServiceLive, Collection, CollectionNotFoundError, CollectionSpec, CollectionSpecItem, CollectionVersion, CollectionsSearchParams, CollectionsSearchResponse, CollectionsService, CollectionsServiceLive, ContractBookmark, ContractCodeMatchBlock, ContractCodeSearchResult, ContractDiff, ContractMetadata, ContractsService, ContractsServiceLive, CreateActionParams, CreateActionResponse, CreateAdapterParams, CreateAgentWorkflowParams, CreateAgentWorkflowResponse, CreateAgentWorkflowRunParams, CreateAgentWorkflowRunResponse, CreateApiKeyParams, type CreateApiKeyParamsType, CreateCodeBlockParams, CreateCodeBlockResponse, CreateCodeVersionParams, CreateCodeVersionResponse, CreateCollectionParams, CreateCollectionResponse, CreateGroupParams, CreateGroupResponse, CreatedApiKey, type CreatedApiKeyType, type DecodedTrace, DeleteApiKeyParams, type DeleteApiKeyParamsType, DeleteBookmarkParams, DeployedContract, DeployedContracts, DeployedContractsPagination, DiffEntry, DiffVersionInfo, DiffVersionsParams, DocContent, DocEntry, DocNotFoundError, DocsService, DocsServiceLive, EditAgentSafeMetadataParams, EditGroupMetadataParams, EditGroupMetadataResponse, Erc7702Delegation, EvaluateExistingParams, EvaluateExistingResponse, EvaluateParams, EvaluateResponse, EventSummary, EvmAddress, type EvmAddressType, ExecuteCodeBlockParams, ExecuteSafeTxParams, ExecuteSafeTxResponse, type FeatureFlags, FeatureFlagsSchema, FunctionSummary, GetActionVersionsParams, GetAgentWorkflowParams, GetContractCodeParams, GetContractCodeResponse, GroupDetails, GroupIdParams, GroupMember, GroupNotFoundError, GroupSummary, GroupWallet, GroupsService, GroupsServiceLive, HalService, HalServiceLive, HerdConfig, HerdConfigSchema, type HerdConfigType, HistoricalImplementation, LatestEventTransactions, LatestFunctionTransactions, LatestTxParams, LinkedAgentWallet, ListAgentWorkflowsParams, ListAgentWorkflowsResponse, ListGroupsResponse, MultisigDetails, MultisigSigner, PaginationParams, PendingTransaction, ProposalResponse, ProposeMemberChangeParams, ProposeQuorumChangeParams, PublishCodeBlockResponse, PublishCodeParams, PublishExpressionParams, PublishExpressionResponse, PushAgentWorkflowParams, PushAgentWorkflowResponse, RelatedAdapterItem, RelatedAdaptersContract, RelatedAdaptersFunctionSignature, RelatedAdaptersResponse, RelatedAdaptersSearchParams, ServiceError, SetSafeProposerParams, SetSafeProposerResponse, SimulationError, SubmitAgentWorkflowDecisionParams, SubmitAgentWorkflowDecisionResponse, TokenActivity, TokenActivityPagination, TokenActivityParams, TokenBalanceInfo, TokenDetails, TokenImage, TokenResponse, TokenTransfer, TopHolder, Transaction, TransactionActivity, TransactionActivityPagination, TransactionActivityQuery, TransactionBookmark, TransactionNotFoundError, TransactionQueryResponse, TransactionStatus, TransactionsService, TransactionsServiceLive, UpdateActionMetadataParams, UpdateBookmarkLabelParams, UpdateCodeBlockMetadataParams, UpdateCodeParams, UpdateCollectionParams, UpdateExpressionParams, WalletBalance, WalletBookmark, WalletOverview, WalletTransaction, WalletTxActionExecution, WalletTxBalanceChange, WalletTxCall, WalletTxTransfer, WalletsService, WalletsServiceLive, WhoamiResponse };
48
+ export { type Action, type ActionExpression, ActionExpressionSchema, ActionNotFoundError, ActionSchema, type ActionVersion, ActionVersionSchema, type ActionVersionsResponse, ActionVersionsResponseSchema, type ActionsSearchParams, ActionsSearchParamsSchema, type ActionsSearchResponse, ActionsSearchResponseSchema, ActionsService, ActionsServiceLive, AdaptersService, AdaptersServiceLive, type AddContractBookmarkParams, AddContractBookmarkParamsSchema, type AddTransactionBookmarkParams, AddTransactionBookmarkParamsSchema, type AddWalletBookmarkParams, AddWalletBookmarkParamsSchema, type AddressDetails, AddressDetailsSchema, type AgentSafe, type AgentSafeMetadata, AgentSafeMetadataSchema, AgentSafeSchema, AgentSafesService, AgentSafesServiceLive, type AgentWallet, type AgentWalletSafe, AgentWalletSafeSchema, type AgentWalletSafesList, AgentWalletSafesListSchema, AgentWalletSchema, type AgentWalletsList, type AgentWalletsListParams, AgentWalletsListParamsSchema, AgentWalletsListSchema, AgentWalletsService, AgentWalletsServiceLive, type AgentWorkflow, type AgentWorkflowDecision, AgentWorkflowDecisionSchema, AgentWorkflowNotFoundError, type AgentWorkflowRun, AgentWorkflowRunNotFoundError, AgentWorkflowRunSchema, AgentWorkflowSchema, type AgentWorkflowWithRuns, AgentWorkflowWithRunsSchema, AgentWorkflowsService, AgentWorkflowsServiceLive, type ApiKey, type ApiKeyListResponse, ApiKeyListResponseSchema, ApiKeySchema, AuthError, AuthService, AuthServiceLive, type Blockchain, BlockchainSchema, type BookmarkObjectType, BookmarkObjectTypeSchema, type BookmarkResponse, BookmarkResponseSchema, type BookmarksList, BookmarksListSchema, BookmarksService, BookmarksServiceLive, type CodeBlockCode, CodeBlockCodeSchema, type CodeBlockDefinition, CodeBlockDefinitionSchema, type CodeBlockExecuteResponse, CodeBlockExecuteResponseSchema, type CodeBlockLogEntry, CodeBlockLogEntrySchema, CodeBlockNotFoundError, type CodeBlockVersion, CodeBlockVersionSchema, type CodeBlocksSearchParams, CodeBlocksSearchParamsSchema, type CodeBlocksSearchResponse, CodeBlocksSearchResponseSchema, CodeBlocksService, CodeBlocksServiceLive, type Collection, CollectionNotFoundError, CollectionSchema, type CollectionSpec, type CollectionSpecItem, CollectionSpecItemSchema, CollectionSpecSchema, type CollectionVersion, CollectionVersionSchema, type CollectionsSearchParams, CollectionsSearchParamsSchema, type CollectionsSearchResponse, CollectionsSearchResponseSchema, CollectionsService, CollectionsServiceLive, type ContractBookmark, ContractBookmarkSchema, type ContractCodeMatchBlock, ContractCodeMatchBlockSchema, type ContractCodeSearchResult, ContractCodeSearchResultSchema, type ContractDiff, ContractDiffSchema, type ContractMetadata, ContractMetadataSchema, ContractsService, ContractsServiceLive, type CreateActionParams, CreateActionParamsSchema, type CreateActionResponse, CreateActionResponseSchema, type CreateAdapterParams, CreateAdapterParamsSchema, type CreateAgentWorkflowParams, CreateAgentWorkflowParamsSchema, type CreateAgentWorkflowResponse, CreateAgentWorkflowResponseSchema, type CreateAgentWorkflowRunParams, CreateAgentWorkflowRunParamsSchema, type CreateAgentWorkflowRunResponse, CreateAgentWorkflowRunResponseSchema, type CreateApiKeyParams, CreateApiKeyParamsSchema, type CreateCodeBlockParams, CreateCodeBlockParamsSchema, type CreateCodeBlockResponse, CreateCodeBlockResponseSchema, type CreateCodeVersionParams, CreateCodeVersionParamsSchema, type CreateCodeVersionResponse, CreateCodeVersionResponseSchema, type CreateCollectionParams, CreateCollectionParamsSchema, type CreateCollectionResponse, CreateCollectionResponseSchema, type CreateGroupParams, CreateGroupParamsSchema, type CreateGroupResponse, CreateGroupResponseSchema, type CreatedApiKey, CreatedApiKeySchema, type DecodedTrace, type DeleteApiKeyParams, DeleteApiKeyParamsSchema, type DeleteBookmarkParams, DeleteBookmarkParamsSchema, type DeployedContract, DeployedContractSchema, type DeployedContracts, type DeployedContractsPagination, DeployedContractsPaginationSchema, DeployedContractsSchema, type DiffEntry, DiffEntrySchema, type DiffVersionInfo, DiffVersionInfoSchema, type DiffVersionsParams, DiffVersionsParamsSchema, type DocContent, DocContentSchema, type DocEntry, DocEntrySchema, DocNotFoundError, DocsService, DocsServiceLive, type EditAgentSafeMetadataParams, EditAgentSafeMetadataParamsSchema, type EditGroupMetadataParams, EditGroupMetadataParamsSchema, type EditGroupMetadataResponse, EditGroupMetadataResponseSchema, type Erc7702Delegation, Erc7702DelegationSchema, type EvaluateExistingParams, EvaluateExistingParamsSchema, type EvaluateExistingResponse, EvaluateExistingResponseSchema, type EvaluateParams, EvaluateParamsSchema, type EvaluateResponse, EvaluateResponseSchema, type EventSummary, EventSummarySchema, type EvmAddress, EvmAddressSchema, type ExecuteCodeBlockParams, ExecuteCodeBlockParamsSchema, type ExecuteSafeTxParams, ExecuteSafeTxParamsSchema, type ExecuteSafeTxResponse, ExecuteSafeTxResponseSchema, type FeatureFlags, FeatureFlagsSchema, type FunctionSummary, FunctionSummarySchema, type GetActionVersionsParams, GetActionVersionsParamsSchema, type GetAgentWorkflowParams, GetAgentWorkflowParamsSchema, type GetContractCodeParams, GetContractCodeParamsSchema, type GetContractCodeResponse, GetContractCodeResponseSchema, type GroupDetails, GroupDetailsSchema, type GroupIdParams, GroupIdParamsSchema, type GroupMember, GroupMemberSchema, GroupNotFoundError, type GroupSummary, GroupSummarySchema, type GroupWallet, GroupWalletSchema, GroupsService, GroupsServiceLive, HalService, HalServiceLive, type HerdConfig, HerdConfigSchema, HerdConfigService, type HistoricalImplementation, HistoricalImplementationSchema, type LatestEventTransactions, LatestEventTransactionsSchema, type LatestFunctionTransactions, LatestFunctionTransactionsSchema, type LatestTxParams, LatestTxParamsSchema, type LinkedAgentWallet, LinkedAgentWalletSchema, type ListAgentWorkflowsParams, ListAgentWorkflowsParamsSchema, type ListAgentWorkflowsResponse, ListAgentWorkflowsResponseSchema, type ListGroupsResponse, ListGroupsResponseSchema, type MultisigDetails, MultisigDetailsSchema, type MultisigSigner, MultisigSignerSchema, type PaginationParams, PaginationParamsSchema, type PendingTransaction, PendingTransactionSchema, type ProposalResponse, ProposalResponseSchema, type ProposeMemberChangeParams, ProposeMemberChangeParamsSchema, type ProposeQuorumChangeParams, ProposeQuorumChangeParamsSchema, type PublishCodeBlockResponse, PublishCodeBlockResponseSchema, type PublishCodeParams, PublishCodeParamsSchema, type PublishExpressionParams, PublishExpressionParamsSchema, type PublishExpressionResponse, PublishExpressionResponseSchema, type PushAgentWorkflowParams, PushAgentWorkflowParamsSchema, type PushAgentWorkflowResponse, PushAgentWorkflowResponseSchema, type RelatedAdapterItem, RelatedAdapterItemSchema, type RelatedAdaptersContract, RelatedAdaptersContractSchema, type RelatedAdaptersFunctionSignature, RelatedAdaptersFunctionSignatureSchema, type RelatedAdaptersResponse, RelatedAdaptersResponseSchema, type RelatedAdaptersSearchParams, RelatedAdaptersSearchParamsSchema, ServiceError, type SetSafeProposerParams, SetSafeProposerParamsSchema, type SetSafeProposerResponse, SetSafeProposerResponseSchema, SimulationError, type SubmitAgentWorkflowDecisionParams, SubmitAgentWorkflowDecisionParamsSchema, type SubmitAgentWorkflowDecisionResponse, SubmitAgentWorkflowDecisionResponseSchema, type TokenActivity, type TokenActivityPagination, TokenActivityPaginationSchema, type TokenActivityParams, TokenActivityParamsSchema, TokenActivitySchema, type TokenBalanceInfo, TokenBalanceInfoSchema, type TokenDetails, TokenDetailsSchema, type TokenImage, TokenImageSchema, type TokenResponse, TokenResponseSchema, type TokenTransfer, TokenTransferSchema, type TopHolder, TopHolderSchema, type Transaction, type TransactionActivity, type TransactionActivityPagination, TransactionActivityPaginationSchema, type TransactionActivityQuery, TransactionActivityQuerySchema, TransactionActivitySchema, type TransactionBookmark, TransactionBookmarkSchema, TransactionNotFoundError, type TransactionQueryResponse, TransactionQueryResponseSchema, TransactionSchema, type TransactionStatus, TransactionStatusSchema, TransactionsService, TransactionsServiceLive, type UpdateActionMetadataParams, UpdateActionMetadataParamsSchema, type UpdateBookmarkLabelParams, UpdateBookmarkLabelParamsSchema, type UpdateCodeBlockMetadataParams, UpdateCodeBlockMetadataParamsSchema, type UpdateCodeParams, UpdateCodeParamsSchema, type UpdateCollectionParams, UpdateCollectionParamsSchema, type UpdateExpressionParams, UpdateExpressionParamsSchema, type WalletBalance, WalletBalanceSchema, type WalletBookmark, WalletBookmarkSchema, type WalletOverview, WalletOverviewSchema, type WalletTransaction, WalletTransactionSchema, type WalletTxActionExecution, WalletTxActionExecutionSchema, type WalletTxBalanceChange, WalletTxBalanceChangeSchema, type WalletTxCall, WalletTxCallSchema, type WalletTxTransfer, WalletTxTransferSchema, WalletsService, WalletsServiceLive, type WhoamiResponse, WhoamiResponseSchema };
package/dist/index.js CHANGED
@@ -1,20 +1,20 @@
1
- import { HerdConfig, HerdConfigSchema } from "./src/config.js";
1
+ import { HerdConfigSchema, HerdConfigService } from "./src/config.js";
2
2
  import { ActionNotFoundError, AuthError, CodeBlockNotFoundError, CollectionNotFoundError, DocNotFoundError, ServiceError, SimulationError, TransactionNotFoundError } from "./src/errors.js";
3
- import { Blockchain, EvmAddress, PaginationParams } from "./src/schemas/common.js";
4
- import { Action, ActionExpression, ActionVersion, ActionVersionsResponse, ActionsSearchParams, ActionsSearchResponse, CreateActionParams, CreateActionResponse, GetActionVersionsParams, PublishExpressionParams, PublishExpressionResponse, RelatedAdapterItem, RelatedAdaptersContract, RelatedAdaptersFunctionSignature, RelatedAdaptersResponse, RelatedAdaptersSearchParams, UpdateActionMetadataParams, UpdateExpressionParams } from "./src/schemas/actions.js";
5
- import { CreateAdapterParams } from "./src/schemas/adapters.js";
6
- import { AgentSafe, AgentSafeMetadata, AgentWallet, AgentWalletSafe, AgentWalletSafesList, AgentWalletsList, AgentWalletsListParams, EditAgentSafeMetadataParams, LinkedAgentWallet, SetSafeProposerParams, SetSafeProposerResponse } from "./src/schemas/agent-wallets.js";
7
- import { ApiKey, ApiKeyListResponse, CreateApiKeyParams, CreatedApiKey, DeleteApiKeyParams, FeatureFlagsSchema, TokenResponse, WhoamiResponse } from "./src/schemas/auth.js";
8
- import { AddContractBookmarkParams, AddTransactionBookmarkParams, AddWalletBookmarkParams, BookmarkObjectType, BookmarkResponse, BookmarksList, ContractBookmark, DeleteBookmarkParams, TransactionBookmark, UpdateBookmarkLabelParams, WalletBookmark } from "./src/schemas/bookmarks.js";
9
- import { CodeBlockCode, CodeBlockDefinition, CodeBlockExecuteResponse, CodeBlockLogEntry, CodeBlockVersion, CodeBlocksSearchParams, CodeBlocksSearchResponse, CreateCodeBlockParams, CreateCodeBlockResponse, CreateCodeVersionParams, CreateCodeVersionResponse, ExecuteCodeBlockParams, PublishCodeBlockResponse, PublishCodeParams, UpdateCodeBlockMetadataParams, UpdateCodeParams } from "./src/schemas/codeblocks.js";
10
- import { Collection, CollectionSpec, CollectionSpecItem, CollectionVersion, CollectionsSearchParams, CollectionsSearchResponse, CreateCollectionParams, CreateCollectionResponse, UpdateCollectionParams } from "./src/schemas/collections.js";
11
- import { AddressDetails, ContractCodeMatchBlock, ContractCodeSearchResult, ContractDiff, ContractMetadata, DiffEntry, DiffVersionInfo, DiffVersionsParams, EventSummary, FunctionSummary, GetContractCodeParams, GetContractCodeResponse, HistoricalImplementation, TokenDetails, TokenImage, TopHolder } from "./src/schemas/contracts.js";
12
- import { DocContent, DocEntry } from "./src/schemas/docs.js";
13
- import { CreateGroupParams, CreateGroupResponse, EditGroupMetadataParams, EditGroupMetadataResponse, GroupDetails, GroupIdParams, GroupMember, GroupSummary, GroupWallet, ListGroupsResponse, ProposalResponse, ProposeMemberChangeParams, ProposeQuorumChangeParams } from "./src/schemas/groups.js";
14
- import { AgentWorkflow, AgentWorkflowDecision, AgentWorkflowRun, AgentWorkflowWithRuns, CreateAgentWorkflowParams, CreateAgentWorkflowResponse, CreateAgentWorkflowRunParams, CreateAgentWorkflowRunResponse, ExecuteSafeTxParams, ExecuteSafeTxResponse, GetAgentWorkflowParams, ListAgentWorkflowsParams, ListAgentWorkflowsResponse, PushAgentWorkflowParams, PushAgentWorkflowResponse, SubmitAgentWorkflowDecisionParams, SubmitAgentWorkflowDecisionResponse } from "./src/schemas/agent-workflows.js";
15
- import { EvaluateExistingParams, EvaluateExistingResponse, EvaluateParams, EvaluateResponse, TransactionStatus } from "./src/schemas/hal.js";
16
- import { LatestEventTransactions, LatestFunctionTransactions, LatestTxParams, Transaction, TransactionQueryResponse } from "./src/schemas/transactions.js";
17
- import { DeployedContract, DeployedContracts, DeployedContractsPagination, Erc7702Delegation, MultisigDetails, MultisigSigner, PendingTransaction, TokenActivity, TokenActivityPagination, TokenActivityParams, TokenBalanceInfo, TokenTransfer, TransactionActivity, TransactionActivityPagination, TransactionActivityQuery, WalletBalance, WalletOverview, WalletTransaction, WalletTxActionExecution, WalletTxBalanceChange, WalletTxCall, WalletTxTransfer } from "./src/schemas/wallets.js";
3
+ import { BlockchainSchema, EvmAddressSchema, PaginationParamsSchema } from "./src/schemas/common.js";
4
+ import { ActionExpressionSchema, ActionSchema, ActionVersionSchema, ActionVersionsResponseSchema, ActionsSearchParamsSchema, ActionsSearchResponseSchema, CreateActionParamsSchema, CreateActionResponseSchema, GetActionVersionsParamsSchema, PublishExpressionParamsSchema, PublishExpressionResponseSchema, RelatedAdapterItemSchema, RelatedAdaptersContractSchema, RelatedAdaptersFunctionSignatureSchema, RelatedAdaptersResponseSchema, RelatedAdaptersSearchParamsSchema, UpdateActionMetadataParamsSchema, UpdateExpressionParamsSchema } from "./src/schemas/actions.js";
5
+ import { CreateAdapterParamsSchema } from "./src/schemas/adapters.js";
6
+ import { AgentSafeMetadataSchema, AgentSafeSchema, AgentWalletSafeSchema, AgentWalletSafesListSchema, AgentWalletSchema, AgentWalletsListParamsSchema, AgentWalletsListSchema, EditAgentSafeMetadataParamsSchema, LinkedAgentWalletSchema, SetSafeProposerParamsSchema, SetSafeProposerResponseSchema } from "./src/schemas/agent-wallets.js";
7
+ import { ApiKeyListResponseSchema, ApiKeySchema, CreateApiKeyParamsSchema, CreatedApiKeySchema, DeleteApiKeyParamsSchema, FeatureFlagsSchema, TokenResponseSchema, WhoamiResponseSchema } from "./src/schemas/auth.js";
8
+ import { AddContractBookmarkParamsSchema, AddTransactionBookmarkParamsSchema, AddWalletBookmarkParamsSchema, BookmarkObjectTypeSchema, BookmarkResponseSchema, BookmarksListSchema, ContractBookmarkSchema, DeleteBookmarkParamsSchema, TransactionBookmarkSchema, UpdateBookmarkLabelParamsSchema, WalletBookmarkSchema } from "./src/schemas/bookmarks.js";
9
+ import { CodeBlockCodeSchema, CodeBlockDefinitionSchema, CodeBlockExecuteResponseSchema, CodeBlockLogEntrySchema, CodeBlockVersionSchema, CodeBlocksSearchParamsSchema, CodeBlocksSearchResponseSchema, CreateCodeBlockParamsSchema, CreateCodeBlockResponseSchema, CreateCodeVersionParamsSchema, CreateCodeVersionResponseSchema, ExecuteCodeBlockParamsSchema, PublishCodeBlockResponseSchema, PublishCodeParamsSchema, UpdateCodeBlockMetadataParamsSchema, UpdateCodeParamsSchema } from "./src/schemas/codeblocks.js";
10
+ import { CollectionSchema, CollectionSpecItemSchema, CollectionSpecSchema, CollectionVersionSchema, CollectionsSearchParamsSchema, CollectionsSearchResponseSchema, CreateCollectionParamsSchema, CreateCollectionResponseSchema, UpdateCollectionParamsSchema } from "./src/schemas/collections.js";
11
+ import { AddressDetailsSchema, ContractCodeMatchBlockSchema, ContractCodeSearchResultSchema, ContractDiffSchema, ContractMetadataSchema, DiffEntrySchema, DiffVersionInfoSchema, DiffVersionsParamsSchema, EventSummarySchema, FunctionSummarySchema, GetContractCodeParamsSchema, GetContractCodeResponseSchema, HistoricalImplementationSchema, TokenDetailsSchema, TokenImageSchema, TopHolderSchema } from "./src/schemas/contracts.js";
12
+ import { DocContentSchema, DocEntrySchema } from "./src/schemas/docs.js";
13
+ import { CreateGroupParamsSchema, CreateGroupResponseSchema, EditGroupMetadataParamsSchema, EditGroupMetadataResponseSchema, GroupDetailsSchema, GroupIdParamsSchema, GroupMemberSchema, GroupSummarySchema, GroupWalletSchema, ListGroupsResponseSchema, ProposalResponseSchema, ProposeMemberChangeParamsSchema, ProposeQuorumChangeParamsSchema } from "./src/schemas/groups.js";
14
+ import { AgentWorkflowDecisionSchema, AgentWorkflowRunSchema, AgentWorkflowSchema, AgentWorkflowWithRunsSchema, CreateAgentWorkflowParamsSchema, CreateAgentWorkflowResponseSchema, CreateAgentWorkflowRunParamsSchema, CreateAgentWorkflowRunResponseSchema, ExecuteSafeTxParamsSchema, ExecuteSafeTxResponseSchema, GetAgentWorkflowParamsSchema, ListAgentWorkflowsParamsSchema, ListAgentWorkflowsResponseSchema, PushAgentWorkflowParamsSchema, PushAgentWorkflowResponseSchema, SubmitAgentWorkflowDecisionParamsSchema, SubmitAgentWorkflowDecisionResponseSchema } from "./src/schemas/agent-workflows.js";
15
+ import { EvaluateExistingParamsSchema, EvaluateExistingResponseSchema, EvaluateParamsSchema, EvaluateResponseSchema, TransactionStatusSchema } from "./src/schemas/hal.js";
16
+ import { LatestEventTransactionsSchema, LatestFunctionTransactionsSchema, LatestTxParamsSchema, TransactionQueryResponseSchema, TransactionSchema } from "./src/schemas/transactions.js";
17
+ import { DeployedContractSchema, DeployedContractsPaginationSchema, DeployedContractsSchema, Erc7702DelegationSchema, MultisigDetailsSchema, MultisigSignerSchema, PendingTransactionSchema, TokenActivityPaginationSchema, TokenActivityParamsSchema, TokenActivitySchema, TokenBalanceInfoSchema, TokenTransferSchema, TransactionActivityPaginationSchema, TransactionActivityQuerySchema, TransactionActivitySchema, WalletBalanceSchema, WalletOverviewSchema, WalletTransactionSchema, WalletTxActionExecutionSchema, WalletTxBalanceChangeSchema, WalletTxCallSchema, WalletTxTransferSchema } from "./src/schemas/wallets.js";
18
18
  import { ActionsService } from "./src/services/ActionsService.js";
19
19
  import { AdaptersService } from "./src/services/AdaptersService.js";
20
20
  import { AgentWalletsService } from "./src/services/AgentWalletsService.js";
@@ -46,4 +46,4 @@ import { HalServiceLive } from "./src/live/HalServiceLive.js";
46
46
  import { TransactionsServiceLive } from "./src/live/TransactionsServiceLive.js";
47
47
  import { WalletsServiceLive } from "./src/live/WalletsServiceLive.js";
48
48
 
49
- export { Action, ActionExpression, ActionNotFoundError, ActionVersion, ActionVersionsResponse, ActionsSearchParams, ActionsSearchResponse, ActionsService, ActionsServiceLive, AdaptersService, AdaptersServiceLive, AddContractBookmarkParams, AddTransactionBookmarkParams, AddWalletBookmarkParams, AddressDetails, AgentSafe, AgentSafeMetadata, AgentSafesService, AgentSafesServiceLive, AgentWallet, AgentWalletSafe, AgentWalletSafesList, AgentWalletsList, AgentWalletsListParams, AgentWalletsService, AgentWalletsServiceLive, AgentWorkflow, AgentWorkflowDecision, AgentWorkflowNotFoundError, AgentWorkflowRun, AgentWorkflowRunNotFoundError, AgentWorkflowWithRuns, AgentWorkflowsService, AgentWorkflowsServiceLive, ApiKey, ApiKeyListResponse, AuthError, AuthService, AuthServiceLive, Blockchain, BookmarkObjectType, BookmarkResponse, BookmarksList, BookmarksService, BookmarksServiceLive, CodeBlockCode, CodeBlockDefinition, CodeBlockExecuteResponse, CodeBlockLogEntry, CodeBlockNotFoundError, CodeBlockVersion, CodeBlocksSearchParams, CodeBlocksSearchResponse, CodeBlocksService, CodeBlocksServiceLive, Collection, CollectionNotFoundError, CollectionSpec, CollectionSpecItem, CollectionVersion, CollectionsSearchParams, CollectionsSearchResponse, CollectionsService, CollectionsServiceLive, ContractBookmark, ContractCodeMatchBlock, ContractCodeSearchResult, ContractDiff, ContractMetadata, ContractsService, ContractsServiceLive, CreateActionParams, CreateActionResponse, CreateAdapterParams, CreateAgentWorkflowParams, CreateAgentWorkflowResponse, CreateAgentWorkflowRunParams, CreateAgentWorkflowRunResponse, CreateApiKeyParams, CreateCodeBlockParams, CreateCodeBlockResponse, CreateCodeVersionParams, CreateCodeVersionResponse, CreateCollectionParams, CreateCollectionResponse, CreateGroupParams, CreateGroupResponse, CreatedApiKey, DeleteApiKeyParams, DeleteBookmarkParams, DeployedContract, DeployedContracts, DeployedContractsPagination, DiffEntry, DiffVersionInfo, DiffVersionsParams, DocContent, DocEntry, DocNotFoundError, DocsService, DocsServiceLive, EditAgentSafeMetadataParams, EditGroupMetadataParams, EditGroupMetadataResponse, Erc7702Delegation, EvaluateExistingParams, EvaluateExistingResponse, EvaluateParams, EvaluateResponse, EventSummary, EvmAddress, ExecuteCodeBlockParams, ExecuteSafeTxParams, ExecuteSafeTxResponse, FeatureFlagsSchema, FunctionSummary, GetActionVersionsParams, GetAgentWorkflowParams, GetContractCodeParams, GetContractCodeResponse, GroupDetails, GroupIdParams, GroupMember, GroupNotFoundError, GroupSummary, GroupWallet, GroupsService, GroupsServiceLive, HalService, HalServiceLive, HerdConfig, HerdConfigSchema, HistoricalImplementation, LatestEventTransactions, LatestFunctionTransactions, LatestTxParams, LinkedAgentWallet, ListAgentWorkflowsParams, ListAgentWorkflowsResponse, ListGroupsResponse, MultisigDetails, MultisigSigner, PaginationParams, PendingTransaction, ProposalResponse, ProposeMemberChangeParams, ProposeQuorumChangeParams, PublishCodeBlockResponse, PublishCodeParams, PublishExpressionParams, PublishExpressionResponse, PushAgentWorkflowParams, PushAgentWorkflowResponse, RelatedAdapterItem, RelatedAdaptersContract, RelatedAdaptersFunctionSignature, RelatedAdaptersResponse, RelatedAdaptersSearchParams, ServiceError, SetSafeProposerParams, SetSafeProposerResponse, SimulationError, SubmitAgentWorkflowDecisionParams, SubmitAgentWorkflowDecisionResponse, TokenActivity, TokenActivityPagination, TokenActivityParams, TokenBalanceInfo, TokenDetails, TokenImage, TokenResponse, TokenTransfer, TopHolder, Transaction, TransactionActivity, TransactionActivityPagination, TransactionActivityQuery, TransactionBookmark, TransactionNotFoundError, TransactionQueryResponse, TransactionStatus, TransactionsService, TransactionsServiceLive, UpdateActionMetadataParams, UpdateBookmarkLabelParams, UpdateCodeBlockMetadataParams, UpdateCodeParams, UpdateCollectionParams, UpdateExpressionParams, WalletBalance, WalletBookmark, WalletOverview, WalletTransaction, WalletTxActionExecution, WalletTxBalanceChange, WalletTxCall, WalletTxTransfer, WalletsService, WalletsServiceLive, WhoamiResponse };
49
+ export { ActionExpressionSchema, ActionNotFoundError, ActionSchema, ActionVersionSchema, ActionVersionsResponseSchema, ActionsSearchParamsSchema, ActionsSearchResponseSchema, ActionsService, ActionsServiceLive, AdaptersService, AdaptersServiceLive, AddContractBookmarkParamsSchema, AddTransactionBookmarkParamsSchema, AddWalletBookmarkParamsSchema, AddressDetailsSchema, AgentSafeMetadataSchema, AgentSafeSchema, AgentSafesService, AgentSafesServiceLive, AgentWalletSafeSchema, AgentWalletSafesListSchema, AgentWalletSchema, AgentWalletsListParamsSchema, AgentWalletsListSchema, AgentWalletsService, AgentWalletsServiceLive, AgentWorkflowDecisionSchema, AgentWorkflowNotFoundError, AgentWorkflowRunNotFoundError, AgentWorkflowRunSchema, AgentWorkflowSchema, AgentWorkflowWithRunsSchema, AgentWorkflowsService, AgentWorkflowsServiceLive, ApiKeyListResponseSchema, ApiKeySchema, AuthError, AuthService, AuthServiceLive, BlockchainSchema, BookmarkObjectTypeSchema, BookmarkResponseSchema, BookmarksListSchema, BookmarksService, BookmarksServiceLive, CodeBlockCodeSchema, CodeBlockDefinitionSchema, CodeBlockExecuteResponseSchema, CodeBlockLogEntrySchema, CodeBlockNotFoundError, CodeBlockVersionSchema, CodeBlocksSearchParamsSchema, CodeBlocksSearchResponseSchema, CodeBlocksService, CodeBlocksServiceLive, CollectionNotFoundError, CollectionSchema, CollectionSpecItemSchema, CollectionSpecSchema, CollectionVersionSchema, CollectionsSearchParamsSchema, CollectionsSearchResponseSchema, CollectionsService, CollectionsServiceLive, ContractBookmarkSchema, ContractCodeMatchBlockSchema, ContractCodeSearchResultSchema, ContractDiffSchema, ContractMetadataSchema, ContractsService, ContractsServiceLive, CreateActionParamsSchema, CreateActionResponseSchema, CreateAdapterParamsSchema, CreateAgentWorkflowParamsSchema, CreateAgentWorkflowResponseSchema, CreateAgentWorkflowRunParamsSchema, CreateAgentWorkflowRunResponseSchema, CreateApiKeyParamsSchema, CreateCodeBlockParamsSchema, CreateCodeBlockResponseSchema, CreateCodeVersionParamsSchema, CreateCodeVersionResponseSchema, CreateCollectionParamsSchema, CreateCollectionResponseSchema, CreateGroupParamsSchema, CreateGroupResponseSchema, CreatedApiKeySchema, DeleteApiKeyParamsSchema, DeleteBookmarkParamsSchema, DeployedContractSchema, DeployedContractsPaginationSchema, DeployedContractsSchema, DiffEntrySchema, DiffVersionInfoSchema, DiffVersionsParamsSchema, DocContentSchema, DocEntrySchema, DocNotFoundError, DocsService, DocsServiceLive, EditAgentSafeMetadataParamsSchema, EditGroupMetadataParamsSchema, EditGroupMetadataResponseSchema, Erc7702DelegationSchema, EvaluateExistingParamsSchema, EvaluateExistingResponseSchema, EvaluateParamsSchema, EvaluateResponseSchema, EventSummarySchema, EvmAddressSchema, ExecuteCodeBlockParamsSchema, ExecuteSafeTxParamsSchema, ExecuteSafeTxResponseSchema, FeatureFlagsSchema, FunctionSummarySchema, GetActionVersionsParamsSchema, GetAgentWorkflowParamsSchema, GetContractCodeParamsSchema, GetContractCodeResponseSchema, GroupDetailsSchema, GroupIdParamsSchema, GroupMemberSchema, GroupNotFoundError, GroupSummarySchema, GroupWalletSchema, GroupsService, GroupsServiceLive, HalService, HalServiceLive, HerdConfigSchema, HerdConfigService, HistoricalImplementationSchema, LatestEventTransactionsSchema, LatestFunctionTransactionsSchema, LatestTxParamsSchema, LinkedAgentWalletSchema, ListAgentWorkflowsParamsSchema, ListAgentWorkflowsResponseSchema, ListGroupsResponseSchema, MultisigDetailsSchema, MultisigSignerSchema, PaginationParamsSchema, PendingTransactionSchema, ProposalResponseSchema, ProposeMemberChangeParamsSchema, ProposeQuorumChangeParamsSchema, PublishCodeBlockResponseSchema, PublishCodeParamsSchema, PublishExpressionParamsSchema, PublishExpressionResponseSchema, PushAgentWorkflowParamsSchema, PushAgentWorkflowResponseSchema, RelatedAdapterItemSchema, RelatedAdaptersContractSchema, RelatedAdaptersFunctionSignatureSchema, RelatedAdaptersResponseSchema, RelatedAdaptersSearchParamsSchema, ServiceError, SetSafeProposerParamsSchema, SetSafeProposerResponseSchema, SimulationError, SubmitAgentWorkflowDecisionParamsSchema, SubmitAgentWorkflowDecisionResponseSchema, TokenActivityPaginationSchema, TokenActivityParamsSchema, TokenActivitySchema, TokenBalanceInfoSchema, TokenDetailsSchema, TokenImageSchema, TokenResponseSchema, TokenTransferSchema, TopHolderSchema, TransactionActivityPaginationSchema, TransactionActivityQuerySchema, TransactionActivitySchema, TransactionBookmarkSchema, TransactionNotFoundError, TransactionQueryResponseSchema, TransactionSchema, TransactionStatusSchema, TransactionsService, TransactionsServiceLive, UpdateActionMetadataParamsSchema, UpdateBookmarkLabelParamsSchema, UpdateCodeBlockMetadataParamsSchema, UpdateCodeParamsSchema, UpdateCollectionParamsSchema, UpdateExpressionParamsSchema, WalletBalanceSchema, WalletBookmarkSchema, WalletOverviewSchema, WalletTransactionSchema, WalletTxActionExecutionSchema, WalletTxBalanceChangeSchema, WalletTxCallSchema, WalletTxTransferSchema, WalletsService, WalletsServiceLive, WhoamiResponseSchema };
@@ -1,22 +1,22 @@
1
1
  import { Context, Schema } from "effect";
2
- import * as effect_Either0 from "effect/Either";
2
+ import * as effect_Result0 from "effect/Result";
3
3
 
4
4
  //#region src/config.d.ts
5
- declare const HerdConfigSchema: Schema.EitherFromUnion<Schema.Struct<{
6
- baseUrl: typeof Schema.String;
7
- apiKey: typeof Schema.String;
5
+ declare const HerdConfigSchema: Schema.Result<Schema.Struct<{
6
+ readonly apiKey: Schema.String;
7
+ readonly baseUrl: Schema.String;
8
8
  }>, Schema.Struct<{
9
- baseUrl: typeof Schema.String;
10
- oauthAccessToken: typeof Schema.String;
9
+ readonly baseUrl: Schema.String;
10
+ readonly oauthAccessToken: Schema.String;
11
11
  }>>;
12
- type HerdConfigType = typeof HerdConfigSchema.Type;
13
- declare const HerdConfig_base: Context.TagClass<HerdConfig, "HerdConfig", effect_Either0.Either<{
14
- readonly baseUrl: string;
12
+ type HerdConfig = typeof HerdConfigSchema.Type;
13
+ declare const HerdConfigService_base: Context.ServiceClass<HerdConfigService, "HerdConfig", effect_Result0.Result<{
15
14
  readonly apiKey: string;
15
+ readonly baseUrl: string;
16
16
  }, {
17
17
  readonly baseUrl: string;
18
18
  readonly oauthAccessToken: string;
19
19
  }>>;
20
- declare class HerdConfig extends HerdConfig_base {}
20
+ declare class HerdConfigService extends HerdConfigService_base {}
21
21
  //#endregion
22
- export { HerdConfig, HerdConfigSchema, HerdConfigType };
22
+ export { HerdConfig, HerdConfigSchema, HerdConfigService };
@@ -1,17 +1,14 @@
1
1
  import { Context, Schema } from "effect";
2
2
 
3
3
  //#region src/config.ts
4
- const HerdConfigSchema = Schema.EitherFromUnion({
5
- left: Schema.Struct({
6
- baseUrl: Schema.String,
7
- oauthAccessToken: Schema.String
8
- }),
9
- right: Schema.Struct({
10
- baseUrl: Schema.String,
11
- apiKey: Schema.String
12
- })
13
- });
14
- var HerdConfig = class extends Context.Tag("HerdConfig")() {};
4
+ const HerdConfigSchema = Schema.Result(Schema.Struct({
5
+ apiKey: Schema.String,
6
+ baseUrl: Schema.String
7
+ }), Schema.Struct({
8
+ baseUrl: Schema.String,
9
+ oauthAccessToken: Schema.String
10
+ }));
11
+ var HerdConfigService = class extends Context.Service()("HerdConfig") {};
15
12
 
16
13
  //#endregion
17
- export { HerdConfig, HerdConfigSchema };
14
+ export { HerdConfigSchema, HerdConfigService };
@@ -1,57 +1,48 @@
1
1
  import { Schema } from "effect";
2
+ import * as effect_Cause0 from "effect/Cause";
2
3
 
3
4
  //#region src/errors.d.ts
4
- declare const ServiceError_base: Schema.TaggedErrorClass<ServiceError, "ServiceError", {
5
- readonly _tag: Schema.tag<"ServiceError">;
6
- } & {
7
- message: typeof Schema.String;
8
- metadata: Schema.Record$<typeof Schema.String, typeof Schema.Unknown>;
9
- }>;
5
+ declare const ServiceError_base: Schema.Class<ServiceError, Schema.TaggedStruct<"ServiceError", {
6
+ readonly message: Schema.String;
7
+ readonly metadata: Schema.$Record<Schema.String, Schema.Unknown>;
8
+ readonly cause: Schema.optionalKey<Schema.Defect>;
9
+ }>, effect_Cause0.YieldableError>;
10
+ /**
11
+ * SDK error types are defined locally with Effect's `Schema.TaggedErrorClass`. Keep them
12
+ * self-contained: do not use `TaggedError` / `HttpError` (or any error base) from other
13
+ * packages, so the published SDK carries no internal dependencies.
14
+ */
10
15
  declare class ServiceError extends ServiceError_base {}
11
- declare const ActionNotFoundError_base: Schema.TaggedErrorClass<ActionNotFoundError, "ActionNotFoundError", {
12
- readonly _tag: Schema.tag<"ActionNotFoundError">;
13
- } & {
14
- id: typeof Schema.String;
15
- }>;
16
+ declare const ActionNotFoundError_base: Schema.Class<ActionNotFoundError, Schema.TaggedStruct<"ActionNotFoundError", {
17
+ readonly id: Schema.String;
18
+ }>, effect_Cause0.YieldableError>;
16
19
  declare class ActionNotFoundError extends ActionNotFoundError_base {}
17
- declare const CodeBlockNotFoundError_base: Schema.TaggedErrorClass<CodeBlockNotFoundError, "CodeBlockNotFoundError", {
18
- readonly _tag: Schema.tag<"CodeBlockNotFoundError">;
19
- } & {
20
- id: typeof Schema.String;
21
- }>;
20
+ declare const CodeBlockNotFoundError_base: Schema.Class<CodeBlockNotFoundError, Schema.TaggedStruct<"CodeBlockNotFoundError", {
21
+ readonly id: Schema.String;
22
+ }>, effect_Cause0.YieldableError>;
22
23
  declare class CodeBlockNotFoundError extends CodeBlockNotFoundError_base {}
23
- declare const CollectionNotFoundError_base: Schema.TaggedErrorClass<CollectionNotFoundError, "CollectionNotFoundError", {
24
- readonly _tag: Schema.tag<"CollectionNotFoundError">;
25
- } & {
26
- id: typeof Schema.String;
27
- }>;
24
+ declare const CollectionNotFoundError_base: Schema.Class<CollectionNotFoundError, Schema.TaggedStruct<"CollectionNotFoundError", {
25
+ readonly id: Schema.String;
26
+ }>, effect_Cause0.YieldableError>;
28
27
  declare class CollectionNotFoundError extends CollectionNotFoundError_base {}
29
- declare const TransactionNotFoundError_base: Schema.TaggedErrorClass<TransactionNotFoundError, "TransactionNotFoundError", {
30
- readonly _tag: Schema.tag<"TransactionNotFoundError">;
31
- } & {
32
- txHash: typeof Schema.String;
33
- blockchain: typeof Schema.String;
34
- }>;
28
+ declare const TransactionNotFoundError_base: Schema.Class<TransactionNotFoundError, Schema.TaggedStruct<"TransactionNotFoundError", {
29
+ readonly blockchain: Schema.String;
30
+ readonly txHash: Schema.String;
31
+ }>, effect_Cause0.YieldableError>;
35
32
  declare class TransactionNotFoundError extends TransactionNotFoundError_base {}
36
- declare const DocNotFoundError_base: Schema.TaggedErrorClass<DocNotFoundError, "DocNotFoundError", {
37
- readonly _tag: Schema.tag<"DocNotFoundError">;
38
- } & {
39
- docId: typeof Schema.String;
40
- }>;
33
+ declare const DocNotFoundError_base: Schema.Class<DocNotFoundError, Schema.TaggedStruct<"DocNotFoundError", {
34
+ readonly docId: Schema.String;
35
+ }>, effect_Cause0.YieldableError>;
41
36
  declare class DocNotFoundError extends DocNotFoundError_base {}
42
- declare const AuthError_base: Schema.TaggedErrorClass<AuthError, "AuthError", {
43
- readonly _tag: Schema.tag<"AuthError">;
44
- } & {
45
- message: typeof Schema.String;
46
- }>;
37
+ declare const AuthError_base: Schema.Class<AuthError, Schema.TaggedStruct<"AuthError", {
38
+ readonly message: Schema.String;
39
+ }>, effect_Cause0.YieldableError>;
47
40
  declare class AuthError extends AuthError_base {}
48
- declare const SimulationError_base: Schema.TaggedErrorClass<SimulationError, "SimulationError", {
49
- readonly _tag: Schema.tag<"SimulationError">;
50
- } & {
51
- name: typeof Schema.String;
52
- message: typeof Schema.String;
53
- hint: Schema.optional<typeof Schema.String>;
54
- }>;
41
+ declare const SimulationError_base: Schema.Class<SimulationError, Schema.TaggedStruct<"SimulationError", {
42
+ readonly hint: Schema.optional<Schema.String>;
43
+ readonly message: Schema.String;
44
+ readonly name: Schema.String;
45
+ }>, effect_Cause0.YieldableError>;
55
46
  declare class SimulationError extends SimulationError_base {}
56
47
  declare const ensureServiceError: (fallbackMessage: string) => (error: unknown) => ServiceError;
57
48
  //#endregion
@@ -1,26 +1,29 @@
1
1
  import { Schema } from "effect";
2
2
 
3
3
  //#region src/errors.ts
4
- var ServiceError = class extends Schema.TaggedError()("ServiceError", {
4
+ /**
5
+ * SDK error types are defined locally with Effect's `Schema.TaggedErrorClass`. Keep them
6
+ * self-contained: do not use `TaggedError` / `HttpError` (or any error base) from other
7
+ * packages, so the published SDK carries no internal dependencies.
8
+ */
9
+ var ServiceError = class extends Schema.TaggedErrorClass()("ServiceError", {
5
10
  message: Schema.String,
6
- metadata: Schema.Record({
7
- key: Schema.String,
8
- value: Schema.Unknown
9
- })
11
+ metadata: Schema.Record(Schema.String, Schema.Unknown),
12
+ cause: Schema.optionalKey(Schema.Defect)
10
13
  }) {};
11
- var ActionNotFoundError = class extends Schema.TaggedError()("ActionNotFoundError", { id: Schema.String }) {};
12
- var CodeBlockNotFoundError = class extends Schema.TaggedError()("CodeBlockNotFoundError", { id: Schema.String }) {};
13
- var CollectionNotFoundError = class extends Schema.TaggedError()("CollectionNotFoundError", { id: Schema.String }) {};
14
- var TransactionNotFoundError = class extends Schema.TaggedError()("TransactionNotFoundError", {
15
- txHash: Schema.String,
16
- blockchain: Schema.String
14
+ var ActionNotFoundError = class extends Schema.TaggedErrorClass()("ActionNotFoundError", { id: Schema.String }) {};
15
+ var CodeBlockNotFoundError = class extends Schema.TaggedErrorClass()("CodeBlockNotFoundError", { id: Schema.String }) {};
16
+ var CollectionNotFoundError = class extends Schema.TaggedErrorClass()("CollectionNotFoundError", { id: Schema.String }) {};
17
+ var TransactionNotFoundError = class extends Schema.TaggedErrorClass()("TransactionNotFoundError", {
18
+ blockchain: Schema.String,
19
+ txHash: Schema.String
17
20
  }) {};
18
- var DocNotFoundError = class extends Schema.TaggedError()("DocNotFoundError", { docId: Schema.String }) {};
19
- var AuthError = class extends Schema.TaggedError()("AuthError", { message: Schema.String }) {};
20
- var SimulationError = class extends Schema.TaggedError()("SimulationError", {
21
- name: Schema.String,
21
+ var DocNotFoundError = class extends Schema.TaggedErrorClass()("DocNotFoundError", { docId: Schema.String }) {};
22
+ var AuthError = class extends Schema.TaggedErrorClass()("AuthError", { message: Schema.String }) {};
23
+ var SimulationError = class extends Schema.TaggedErrorClass()("SimulationError", {
24
+ hint: Schema.optional(Schema.String),
22
25
  message: Schema.String,
23
- hint: Schema.optional(Schema.String)
26
+ name: Schema.String
24
27
  }) {};
25
28
  const ensureServiceError = (fallbackMessage) => (error) => {
26
29
  if (error instanceof ServiceError) return error;
@@ -1,9 +1,9 @@
1
- import { HerdConfig } from "../config.js";
1
+ import { HerdConfigService } from "../config.js";
2
2
  import { ActionsService } from "../services/ActionsService.js";
3
3
  import { Layer } from "effect";
4
- import * as _effect_platform_HttpClient0 from "@effect/platform/HttpClient";
4
+ import * as effect_unstable_http_HttpClient3 from "effect/unstable/http/HttpClient";
5
5
 
6
6
  //#region src/live/ActionsServiceLive.d.ts
7
- declare const ActionsServiceLive: Layer.Layer<ActionsService, never, HerdConfig | _effect_platform_HttpClient0.HttpClient>;
7
+ declare const ActionsServiceLive: Layer.Layer<ActionsService, never, HerdConfigService | effect_unstable_http_HttpClient3.HttpClient>;
8
8
  //#endregion
9
9
  export { ActionsServiceLive };
@@ -1,33 +1,33 @@
1
1
  import { ActionNotFoundError, ServiceError, ensureServiceError } from "../errors.js";
2
- import { Action, ActionVersionsResponse, ActionsSearchResponse, CreateActionResponse, PublishExpressionResponse, RelatedAdaptersResponse } from "../schemas/actions.js";
2
+ import { ActionSchema, ActionVersionsResponseSchema, ActionsSearchResponseSchema, CreateActionResponseSchema, PublishExpressionResponseSchema, RelatedAdaptersResponseSchema } from "../schemas/actions.js";
3
3
  import { ActionsService } from "../services/ActionsService.js";
4
4
  import { authorizedClient, checkStatus, jsonBody, makeUrl } from "./http.js";
5
5
  import { Effect, Layer, pipe } from "effect";
6
- import { HttpClientResponse } from "@effect/platform";
6
+ import { HttpClientResponse } from "effect/unstable/http";
7
7
 
8
8
  //#region src/live/ActionsServiceLive.ts
9
- const mapNotFound = (id) => Effect.catchAll((error) => {
9
+ const mapNotFound = (id) => Effect.catch((error) => {
10
10
  if (error instanceof ServiceError && error.metadata["status"] === 404) return Effect.fail(new ActionNotFoundError({ id }));
11
11
  return Effect.fail(error);
12
12
  });
13
13
  const ActionsServiceLive = Layer.effect(ActionsService, Effect.gen(function* () {
14
14
  const { baseUrl, client } = yield* authorizedClient;
15
15
  return {
16
- get: (id, options) => pipe(client.get(makeUrl(baseUrl, `/v1/actions/${id}`, options?.includeReferences === true ? { includeReferences: "true" } : void 0)), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(Action)), Effect.mapError(ensureServiceError("Failed to get action")), mapNotFound(id)),
17
- getVersions: (params) => pipe(client.post(makeUrl(baseUrl, "/v1/actions/versions"), { body: jsonBody({
18
- actionIds: params.actionIds,
19
- latest: params.latest
20
- }) }), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(ActionVersionsResponse)), Effect.mapError(ensureServiceError("Failed to get action versions"))),
21
- search: (params) => pipe(client.post(makeUrl(baseUrl, "/v1/actions/query"), { body: jsonBody(params) }), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(ActionsSearchResponse)), Effect.mapError(ensureServiceError("Failed to search actions"))),
22
- searchRelatedAdapters: (params) => pipe(client.post(makeUrl(baseUrl, "/v1/actions/related-adapters/query"), { body: jsonBody(params) }), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(RelatedAdaptersResponse)), Effect.mapError(ensureServiceError("Failed to search related adapters"))),
23
16
  create: (params) => pipe(client.post(makeUrl(baseUrl, "/v1/actions"), { body: jsonBody({
24
17
  ...params,
25
18
  expressionType: "action"
26
- }) }), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(CreateActionResponse)), Effect.mapError(ensureServiceError("Failed to create action"))),
27
- updateMetadata: (id, params) => pipe(client.patch(makeUrl(baseUrl, `/v1/actions/${id}`), { body: jsonBody(params) }), Effect.flatMap(checkStatus), Effect.asVoid, Effect.mapError(ensureServiceError("Failed to update action metadata")), mapNotFound(id)),
19
+ }) }), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(CreateActionResponseSchema)), Effect.mapError(ensureServiceError("Failed to create action"))),
20
+ delete: (id) => pipe(client.del(makeUrl(baseUrl, `/v1/actions/${id}`)), Effect.flatMap(checkStatus), Effect.asVoid, Effect.mapError(ensureServiceError("Failed to delete action")), mapNotFound(id)),
21
+ get: (id, options) => pipe(client.get(makeUrl(baseUrl, `/v1/actions/${id}`, options?.includeReferences === true ? { includeReferences: "true" } : void 0)), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(ActionSchema)), Effect.mapError(ensureServiceError("Failed to get action")), mapNotFound(id)),
22
+ getVersions: (params) => pipe(client.post(makeUrl(baseUrl, "/v1/actions/versions"), { body: jsonBody({
23
+ actionIds: params.actionIds,
24
+ latest: params.latest
25
+ }) }), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(ActionVersionsResponseSchema)), Effect.mapError(ensureServiceError("Failed to get action versions"))),
26
+ publishExpression: (id, expressionId, params) => pipe(client.post(makeUrl(baseUrl, `/v1/actions/${id}/expressions/${expressionId}/publish`), { body: jsonBody(params ?? {}) }), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(PublishExpressionResponseSchema)), Effect.mapError(ensureServiceError("Failed to publish expression")), mapNotFound(id)),
27
+ search: (params) => pipe(client.post(makeUrl(baseUrl, "/v1/actions/query"), { body: jsonBody(params) }), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(ActionsSearchResponseSchema)), Effect.mapError(ensureServiceError("Failed to search actions"))),
28
+ searchRelatedAdapters: (params) => pipe(client.post(makeUrl(baseUrl, "/v1/actions/related-adapters/query"), { body: jsonBody(params) }), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(RelatedAdaptersResponseSchema)), Effect.mapError(ensureServiceError("Failed to search related adapters"))),
28
29
  updateExpression: (id, expressionId, params) => pipe(client.put(makeUrl(baseUrl, `/v1/actions/${id}/expressions/${expressionId}`), { body: jsonBody(params) }), Effect.flatMap(checkStatus), Effect.asVoid, Effect.mapError(ensureServiceError("Failed to update expression")), mapNotFound(id)),
29
- publishExpression: (id, expressionId, params) => pipe(client.post(makeUrl(baseUrl, `/v1/actions/${id}/expressions/${expressionId}/publish`), { body: jsonBody(params ?? {}) }), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(PublishExpressionResponse)), Effect.mapError(ensureServiceError("Failed to publish expression")), mapNotFound(id)),
30
- delete: (id) => pipe(client.del(makeUrl(baseUrl, `/v1/actions/${id}`)), Effect.flatMap(checkStatus), Effect.asVoid, Effect.mapError(ensureServiceError("Failed to delete action")), mapNotFound(id))
30
+ updateMetadata: (id, params) => pipe(client.patch(makeUrl(baseUrl, `/v1/actions/${id}`), { body: jsonBody(params) }), Effect.flatMap(checkStatus), Effect.asVoid, Effect.mapError(ensureServiceError("Failed to update action metadata")), mapNotFound(id))
31
31
  };
32
32
  }));
33
33
 
@@ -1,9 +1,9 @@
1
- import { HerdConfig } from "../config.js";
1
+ import { HerdConfigService } from "../config.js";
2
2
  import { AdaptersService } from "../services/AdaptersService.js";
3
3
  import { Layer } from "effect";
4
- import * as _effect_platform_HttpClient0 from "@effect/platform/HttpClient";
4
+ import * as effect_unstable_http_HttpClient4 from "effect/unstable/http/HttpClient";
5
5
 
6
6
  //#region src/live/AdaptersServiceLive.d.ts
7
- declare const AdaptersServiceLive: Layer.Layer<AdaptersService, never, HerdConfig | _effect_platform_HttpClient0.HttpClient>;
7
+ declare const AdaptersServiceLive: Layer.Layer<AdaptersService, never, HerdConfigService | effect_unstable_http_HttpClient4.HttpClient>;
8
8
  //#endregion
9
9
  export { AdaptersServiceLive };
@@ -1,27 +1,27 @@
1
1
  import { ActionNotFoundError, ServiceError, ensureServiceError } from "../errors.js";
2
- import { Action, CreateActionResponse, PublishExpressionResponse } from "../schemas/actions.js";
2
+ import { ActionSchema, CreateActionResponseSchema, PublishExpressionResponseSchema } from "../schemas/actions.js";
3
3
  import { AdaptersService } from "../services/AdaptersService.js";
4
4
  import { authorizedClient, checkStatus, jsonBody, makeUrl } from "./http.js";
5
5
  import { Effect, Layer, pipe } from "effect";
6
- import { HttpClientResponse } from "@effect/platform";
6
+ import { HttpClientResponse } from "effect/unstable/http";
7
7
 
8
8
  //#region src/live/AdaptersServiceLive.ts
9
- const mapNotFound = (id) => Effect.catchAll((error) => {
9
+ const mapNotFound = (id) => Effect.catch((error) => {
10
10
  if (error instanceof ServiceError && error.metadata["status"] === 404) return Effect.fail(new ActionNotFoundError({ id }));
11
11
  return Effect.fail(error);
12
12
  });
13
13
  const AdaptersServiceLive = Layer.effect(AdaptersService, Effect.gen(function* () {
14
14
  const { baseUrl, client } = yield* authorizedClient;
15
15
  return {
16
- get: (id) => pipe(client.get(makeUrl(baseUrl, `/v1/actions/${id}`)), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(Action)), Effect.mapError(ensureServiceError("Failed to get adapter")), mapNotFound(id)),
17
16
  create: (params) => pipe(client.post(makeUrl(baseUrl, "/v1/actions"), { body: jsonBody({
18
17
  ...params,
19
18
  expressionType: "adapter"
20
- }) }), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(CreateActionResponse)), Effect.mapError(ensureServiceError("Failed to create adapter"))),
21
- updateMetadata: (id, params) => pipe(client.patch(makeUrl(baseUrl, `/v1/actions/${id}`), { body: jsonBody(params) }), Effect.flatMap(checkStatus), Effect.asVoid, Effect.mapError(ensureServiceError("Failed to update adapter metadata")), mapNotFound(id)),
19
+ }) }), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(CreateActionResponseSchema)), Effect.mapError(ensureServiceError("Failed to create adapter"))),
20
+ delete: (id) => pipe(client.del(makeUrl(baseUrl, `/v1/actions/${id}`)), Effect.flatMap(checkStatus), Effect.asVoid, Effect.mapError(ensureServiceError("Failed to delete adapter")), mapNotFound(id)),
21
+ get: (id) => pipe(client.get(makeUrl(baseUrl, `/v1/actions/${id}`)), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(ActionSchema)), Effect.mapError(ensureServiceError("Failed to get adapter")), mapNotFound(id)),
22
+ publishExpression: (id, expressionId, params) => pipe(client.post(makeUrl(baseUrl, `/v1/actions/${id}/expressions/${expressionId}/publish`), { body: jsonBody(params ?? {}) }), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(PublishExpressionResponseSchema)), Effect.mapError(ensureServiceError("Failed to publish adapter expression")), mapNotFound(id)),
22
23
  updateExpression: (id, expressionId, params) => pipe(client.put(makeUrl(baseUrl, `/v1/actions/${id}/expressions/${expressionId}`), { body: jsonBody(params) }), Effect.flatMap(checkStatus), Effect.asVoid, Effect.mapError(ensureServiceError("Failed to update adapter expression")), mapNotFound(id)),
23
- publishExpression: (id, expressionId, params) => pipe(client.post(makeUrl(baseUrl, `/v1/actions/${id}/expressions/${expressionId}/publish`), { body: jsonBody(params ?? {}) }), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(PublishExpressionResponse)), Effect.mapError(ensureServiceError("Failed to publish adapter expression")), mapNotFound(id)),
24
- delete: (id) => pipe(client.del(makeUrl(baseUrl, `/v1/actions/${id}`)), Effect.flatMap(checkStatus), Effect.asVoid, Effect.mapError(ensureServiceError("Failed to delete adapter")), mapNotFound(id))
24
+ updateMetadata: (id, params) => pipe(client.patch(makeUrl(baseUrl, `/v1/actions/${id}`), { body: jsonBody(params) }), Effect.flatMap(checkStatus), Effect.asVoid, Effect.mapError(ensureServiceError("Failed to update adapter metadata")), mapNotFound(id))
25
25
  };
26
26
  }));
27
27
 
@@ -1,9 +1,9 @@
1
- import { HerdConfig } from "../config.js";
1
+ import { HerdConfigService } from "../config.js";
2
2
  import { AgentSafesService } from "../services/AgentSafesService.js";
3
3
  import { Layer } from "effect";
4
- import * as _effect_platform_HttpClient1 from "@effect/platform/HttpClient";
4
+ import * as effect_unstable_http_HttpClient6 from "effect/unstable/http/HttpClient";
5
5
 
6
6
  //#region src/live/AgentSafesServiceLive.d.ts
7
- declare const AgentSafesServiceLive: Layer.Layer<AgentSafesService, never, HerdConfig | _effect_platform_HttpClient1.HttpClient>;
7
+ declare const AgentSafesServiceLive: Layer.Layer<AgentSafesService, never, HerdConfigService | effect_unstable_http_HttpClient6.HttpClient>;
8
8
  //#endregion
9
9
  export { AgentSafesServiceLive };
@@ -1,17 +1,17 @@
1
1
  import { ensureServiceError } from "../errors.js";
2
- import { AgentSafe, AgentSafeMetadata, SetSafeProposerResponse } from "../schemas/agent-wallets.js";
2
+ import { AgentSafeMetadataSchema, AgentSafeSchema, SetSafeProposerResponseSchema } from "../schemas/agent-wallets.js";
3
3
  import { AgentSafesService } from "../services/AgentSafesService.js";
4
4
  import { authorizedClient, checkStatus, jsonBody, makeUrl } from "./http.js";
5
5
  import { Effect, Layer, pipe } from "effect";
6
- import { HttpClientResponse } from "@effect/platform";
6
+ import { HttpClientResponse } from "effect/unstable/http";
7
7
 
8
8
  //#region src/live/AgentSafesServiceLive.ts
9
9
  const AgentSafesServiceLive = Layer.effect(AgentSafesService, Effect.gen(function* () {
10
10
  const { baseUrl, client } = yield* authorizedClient;
11
11
  return {
12
- getAgentSafe: (blockchain, safeAddress) => pipe(client.get(makeUrl(baseUrl, `/v1/agent-safes/${blockchain}/${safeAddress}`)), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(AgentSafe)), Effect.mapError(ensureServiceError("Failed to get agent Safe"))),
13
- setSafeProposer: (blockchain, safeAddress, params) => pipe(client.post(makeUrl(baseUrl, `/v1/agent-safes/${blockchain}/${safeAddress}/proposers`), { body: jsonBody(params) }), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(SetSafeProposerResponse)), Effect.mapError(ensureServiceError("Failed to set agent Safe proposer"))),
14
- editAgentSafeMetadata: (blockchain, safeAddress, params) => pipe(client.patch(makeUrl(baseUrl, `/v1/agent-safes/${blockchain}/${safeAddress}`), { body: jsonBody(params) }), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(AgentSafeMetadata)), Effect.mapError(ensureServiceError("Failed to edit agent Safe metadata")))
12
+ editAgentSafeMetadata: (blockchain, safeAddress, params) => pipe(client.patch(makeUrl(baseUrl, `/v1/agent-safes/${blockchain}/${safeAddress}`), { body: jsonBody(params) }), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(AgentSafeMetadataSchema)), Effect.mapError(ensureServiceError("Failed to edit agent Safe metadata"))),
13
+ getAgentSafe: (blockchain, safeAddress) => pipe(client.get(makeUrl(baseUrl, `/v1/agent-safes/${blockchain}/${safeAddress}`)), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(AgentSafeSchema)), Effect.mapError(ensureServiceError("Failed to get agent Safe"))),
14
+ setSafeProposer: (blockchain, safeAddress, params) => pipe(client.post(makeUrl(baseUrl, `/v1/agent-safes/${blockchain}/${safeAddress}/proposers`), { body: jsonBody(params) }), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(SetSafeProposerResponseSchema)), Effect.mapError(ensureServiceError("Failed to set agent Safe proposer")))
15
15
  };
16
16
  }));
17
17
 
@@ -1,9 +1,9 @@
1
- import { HerdConfig } from "../config.js";
1
+ import { HerdConfigService } from "../config.js";
2
2
  import { AgentWalletsService } from "../services/AgentWalletsService.js";
3
3
  import { Layer } from "effect";
4
- import * as _effect_platform_HttpClient11 from "@effect/platform/HttpClient";
4
+ import * as effect_unstable_http_HttpClient0 from "effect/unstable/http/HttpClient";
5
5
 
6
6
  //#region src/live/AgentWalletsServiceLive.d.ts
7
- declare const AgentWalletsServiceLive: Layer.Layer<AgentWalletsService, never, HerdConfig | _effect_platform_HttpClient11.HttpClient>;
7
+ declare const AgentWalletsServiceLive: Layer.Layer<AgentWalletsService, never, HerdConfigService | effect_unstable_http_HttpClient0.HttpClient>;
8
8
  //#endregion
9
9
  export { AgentWalletsServiceLive };