@herd-labs/sdk 0.4.0 → 0.5.1
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.
- package/dist/index.d.ts +20 -17
- package/dist/index.js +20 -17
- package/dist/src/config.d.ts +4 -4
- package/dist/src/config.js +2 -2
- package/dist/src/errors.d.ts +6 -0
- package/dist/src/errors.js +7 -1
- package/dist/src/live/ActionsServiceLive.d.ts +2 -2
- package/dist/src/live/ActionsServiceLive.js +7 -7
- package/dist/src/live/AdaptersServiceLive.d.ts +3 -3
- package/dist/src/live/AdaptersServiceLive.js +4 -4
- package/dist/src/live/AgentSafesServiceLive.d.ts +3 -3
- package/dist/src/live/AgentSafesServiceLive.js +4 -4
- package/dist/src/live/AgentWalletsServiceLive.d.ts +3 -3
- package/dist/src/live/AgentWalletsServiceLive.js +3 -3
- package/dist/src/live/AgentWorkflowsServiceLive.d.ts +3 -3
- package/dist/src/live/AgentWorkflowsServiceLive.js +8 -8
- package/dist/src/live/AuthServiceLive.d.ts +3 -3
- package/dist/src/live/AuthServiceLive.js +5 -5
- package/dist/src/live/BookmarksServiceLive.d.ts +2 -2
- package/dist/src/live/BookmarksServiceLive.js +6 -6
- package/dist/src/live/CodeBlocksServiceLive.d.ts +3 -3
- package/dist/src/live/CodeBlocksServiceLive.js +7 -7
- package/dist/src/live/CollectionsServiceLive.d.ts +3 -3
- package/dist/src/live/CollectionsServiceLive.js +4 -4
- package/dist/src/live/ContractsServiceLive.d.ts +3 -3
- package/dist/src/live/ContractsServiceLive.js +6 -6
- package/dist/src/live/DocsServiceLive.d.ts +3 -3
- package/dist/src/live/DocsServiceLive.js +3 -3
- package/dist/src/live/DoubleClickServiceLive.d.ts +9 -0
- package/dist/src/live/DoubleClickServiceLive.js +113 -0
- package/dist/src/live/GroupsServiceLive.d.ts +3 -3
- package/dist/src/live/GroupsServiceLive.js +7 -7
- package/dist/src/live/HalServiceLive.d.ts +3 -3
- package/dist/src/live/HalServiceLive.js +3 -3
- package/dist/src/live/TransactionsServiceLive.d.ts +3 -3
- package/dist/src/live/TransactionsServiceLive.js +4 -4
- package/dist/src/live/WalletsServiceLive.d.ts +3 -3
- package/dist/src/live/WalletsServiceLive.js +5 -5
- package/dist/src/live/http.d.ts +2 -2
- package/dist/src/live/http.js +2 -2
- package/dist/src/schemas/actions.d.ts +127 -59
- package/dist/src/schemas/actions.js +42 -42
- package/dist/src/schemas/adapters.d.ts +4 -4
- package/dist/src/schemas/adapters.js +3 -3
- package/dist/src/schemas/agent-wallets.d.ts +57 -37
- package/dist/src/schemas/agent-wallets.js +35 -35
- package/dist/src/schemas/agent-workflows.d.ts +35 -35
- package/dist/src/schemas/agent-workflows.js +19 -19
- package/dist/src/schemas/auth.d.ts +19 -19
- package/dist/src/schemas/auth.js +10 -10
- package/dist/src/schemas/bookmarks.d.ts +58 -36
- package/dist/src/schemas/bookmarks.js +34 -34
- package/dist/src/schemas/codeblocks.d.ts +89 -52
- package/dist/src/schemas/codeblocks.js +34 -34
- package/dist/src/schemas/collections.d.ts +76 -32
- package/dist/src/schemas/collections.js +23 -23
- package/dist/src/schemas/common.d.ts +8 -8
- package/dist/src/schemas/common.js +5 -5
- package/dist/src/schemas/contracts.d.ts +176 -61
- package/dist/src/schemas/contracts.js +47 -47
- package/dist/src/schemas/docs.d.ts +7 -7
- package/dist/src/schemas/docs.js +5 -5
- package/dist/src/schemas/doubleclick.d.ts +186 -0
- package/dist/src/schemas/doubleclick.js +22 -0
- package/dist/src/schemas/groups.d.ts +27 -27
- package/dist/src/schemas/groups.js +16 -16
- package/dist/src/schemas/hal.d.ts +64 -18
- package/dist/src/schemas/hal.js +18 -18
- package/dist/src/schemas/transactions.d.ts +264 -56
- package/dist/src/schemas/transactions.js +50 -50
- package/dist/src/schemas/wallets.d.ts +434 -84
- package/dist/src/schemas/wallets.js +114 -69
- package/dist/src/services/ActionsService.d.ts +2 -2
- package/dist/src/services/AgentSafesService.d.ts +4 -4
- package/dist/src/services/AgentWalletsService.d.ts +2 -2
- package/dist/src/services/AgentWorkflowsService.d.ts +8 -8
- package/dist/src/services/AuthService.d.ts +3 -3
- package/dist/src/services/BookmarksService.d.ts +2 -2
- package/dist/src/services/ContractsService.d.ts +5 -5
- package/dist/src/services/DoubleClickService.d.ts +63 -0
- package/dist/src/services/DoubleClickService.js +7 -0
- package/dist/src/services/GroupsService.d.ts +11 -11
- package/dist/src/services/TransactionsService.d.ts +4 -4
- package/dist/src/services/WalletsService.d.ts +4 -4
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { HerdConfig, HerdConfigSchema,
|
|
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,
|
|
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,
|
|
8
|
-
import { AddContractBookmarkParams, AddTransactionBookmarkParams, AddWalletBookmarkParams, BookmarkObjectType,
|
|
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
|
+
import { AccountingCheckNodesParams, AccountingCheckParams, AddIssuerTokenParams, AddSlotParams, BulkVersionReviewParams, ChainAddressParams, ConvertSlotToFixedParams, CreateIssuerParams, DirectionalTraversalParams, DoubleClickJsonResponse, DoubleClickJsonResponseSchema, GetNodeByIdentityParams, GetNodeParams, GraphVersionTarget, GraphVersionTargetSchema, IncludeDraftsParams, IntegrityCheckKey, IntegrityCheckKeySchema, IntegrityCheckParams, IssuerTokensParams, ListCuratedTokensParams, ListResearchRunsParams, LogoBatchParams, MarkResearchRunFailedParams, NodeReadParams, OptionalSlotMethodologyParams, RefreshStaleSlotsForExpansionParams, RefreshStaleSlotsForNodeParams, RegisterTokenParams, SetCuratedParams, SetLogoParams, SetPrimaryTokenParams, SlotMethodologyParams, SlotPathParams, SlotTargetType, SlotTargetTypeSchema, StartResearchRunParams, SubmitResearchGraphParams, TokenMetricsRefreshParams, TraversalParams, TraverseDepth, TraverseDepthSchema, UpdateIssuerParams, UpsertSideMetricsParams, VersionReviewParams } from "./src/schemas/doubleclick.js";
|
|
18
19
|
import { ActionsService } from "./src/services/ActionsService.js";
|
|
19
20
|
import { AdaptersService } from "./src/services/AdaptersService.js";
|
|
20
21
|
import { AgentWalletsService } from "./src/services/AgentWalletsService.js";
|
|
@@ -25,6 +26,7 @@ import { CodeBlocksService } from "./src/services/CodeBlocksService.js";
|
|
|
25
26
|
import { CollectionsService } from "./src/services/CollectionsService.js";
|
|
26
27
|
import { ContractsService } from "./src/services/ContractsService.js";
|
|
27
28
|
import { DocsService } from "./src/services/DocsService.js";
|
|
29
|
+
import { DoubleClickService } from "./src/services/DoubleClickService.js";
|
|
28
30
|
import { GroupNotFoundError, GroupsService } from "./src/services/GroupsService.js";
|
|
29
31
|
import { AgentWorkflowNotFoundError, AgentWorkflowRunNotFoundError, AgentWorkflowsService } from "./src/services/AgentWorkflowsService.js";
|
|
30
32
|
import { HalService } from "./src/services/HalService.js";
|
|
@@ -41,8 +43,9 @@ import { CodeBlocksServiceLive } from "./src/live/CodeBlocksServiceLive.js";
|
|
|
41
43
|
import { CollectionsServiceLive } from "./src/live/CollectionsServiceLive.js";
|
|
42
44
|
import { ContractsServiceLive } from "./src/live/ContractsServiceLive.js";
|
|
43
45
|
import { DocsServiceLive } from "./src/live/DocsServiceLive.js";
|
|
46
|
+
import { DoubleClickServiceLive } from "./src/live/DoubleClickServiceLive.js";
|
|
44
47
|
import { GroupsServiceLive } from "./src/live/GroupsServiceLive.js";
|
|
45
48
|
import { HalServiceLive } from "./src/live/HalServiceLive.js";
|
|
46
49
|
import { TransactionsServiceLive } from "./src/live/TransactionsServiceLive.js";
|
|
47
50
|
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 };
|
|
51
|
+
export { type AccountingCheckNodesParams, type AccountingCheckParams, 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 AddIssuerTokenParams, type AddSlotParams, 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 BulkVersionReviewParams, type ChainAddressParams, 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 ConvertSlotToFixedParams, 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 CreateIssuerParams, 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 DirectionalTraversalParams, type DocContent, DocContentSchema, type DocEntry, DocEntrySchema, DocNotFoundError, DocsService, DocsServiceLive, type DoubleClickJsonResponse, DoubleClickJsonResponseSchema, DoubleClickService, DoubleClickServiceLive, 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 GetNodeByIdentityParams, type GetNodeParams, type GraphVersionTarget, GraphVersionTargetSchema, 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 IncludeDraftsParams, type IntegrityCheckKey, IntegrityCheckKeySchema, type IntegrityCheckParams, type IssuerTokensParams, type LatestEventTransactions, LatestEventTransactionsSchema, type LatestFunctionTransactions, LatestFunctionTransactionsSchema, type LatestTxParams, LatestTxParamsSchema, type LinkedAgentWallet, LinkedAgentWalletSchema, type ListAgentWorkflowsParams, ListAgentWorkflowsParamsSchema, type ListAgentWorkflowsResponse, ListAgentWorkflowsResponseSchema, type ListCuratedTokensParams, type ListGroupsResponse, ListGroupsResponseSchema, type ListResearchRunsParams, type LogoBatchParams, type MarkResearchRunFailedParams, type MultisigDetails, MultisigDetailsSchema, type MultisigSigner, MultisigSignerSchema, type NodeReadParams, type OptionalSlotMethodologyParams, 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 RefreshStaleSlotsForExpansionParams, type RefreshStaleSlotsForNodeParams, type RegisterTokenParams, type RelatedAdapterItem, RelatedAdapterItemSchema, type RelatedAdaptersContract, RelatedAdaptersContractSchema, type RelatedAdaptersFunctionSignature, RelatedAdaptersFunctionSignatureSchema, type RelatedAdaptersResponse, RelatedAdaptersResponseSchema, type RelatedAdaptersSearchParams, RelatedAdaptersSearchParamsSchema, ServiceError, type SetCuratedParams, type SetLogoParams, type SetPrimaryTokenParams, type SetSafeProposerParams, SetSafeProposerParamsSchema, type SetSafeProposerResponse, SetSafeProposerResponseSchema, SimulationError, type SlotMethodologyParams, type SlotPathParams, type SlotTargetType, SlotTargetTypeSchema, type StartResearchRunParams, type SubmitAgentWorkflowDecisionParams, SubmitAgentWorkflowDecisionParamsSchema, type SubmitAgentWorkflowDecisionResponse, SubmitAgentWorkflowDecisionResponseSchema, type SubmitResearchGraphParams, type TokenActivity, type TokenActivityPagination, TokenActivityPaginationSchema, type TokenActivityParams, TokenActivityParamsSchema, TokenActivitySchema, type TokenBalanceInfo, TokenBalanceInfoSchema, type TokenDetails, TokenDetailsSchema, type TokenImage, TokenImageSchema, type TokenMetricsRefreshParams, 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 TraversalParams, type TraverseDepth, TraverseDepthSchema, type UpdateActionMetadataParams, UpdateActionMetadataParamsSchema, type UpdateBookmarkLabelParams, UpdateBookmarkLabelParamsSchema, type UpdateCodeBlockMetadataParams, UpdateCodeBlockMetadataParamsSchema, type UpdateCodeParams, UpdateCodeParamsSchema, type UpdateCollectionParams, UpdateCollectionParamsSchema, type UpdateExpressionParams, UpdateExpressionParamsSchema, type UpdateIssuerParams, type UpsertSideMetricsParams, type VersionReviewParams, 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,21 @@
|
|
|
1
|
-
import {
|
|
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 {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
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
|
+
import { DoubleClickJsonResponseSchema, GraphVersionTargetSchema, IntegrityCheckKeySchema, SlotTargetTypeSchema, TraverseDepthSchema } from "./src/schemas/doubleclick.js";
|
|
18
19
|
import { ActionsService } from "./src/services/ActionsService.js";
|
|
19
20
|
import { AdaptersService } from "./src/services/AdaptersService.js";
|
|
20
21
|
import { AgentWalletsService } from "./src/services/AgentWalletsService.js";
|
|
@@ -25,6 +26,7 @@ import { CodeBlocksService } from "./src/services/CodeBlocksService.js";
|
|
|
25
26
|
import { CollectionsService } from "./src/services/CollectionsService.js";
|
|
26
27
|
import { ContractsService } from "./src/services/ContractsService.js";
|
|
27
28
|
import { DocsService } from "./src/services/DocsService.js";
|
|
29
|
+
import { DoubleClickService } from "./src/services/DoubleClickService.js";
|
|
28
30
|
import { GroupNotFoundError, GroupsService } from "./src/services/GroupsService.js";
|
|
29
31
|
import { AgentWorkflowNotFoundError, AgentWorkflowRunNotFoundError, AgentWorkflowsService } from "./src/services/AgentWorkflowsService.js";
|
|
30
32
|
import { HalService } from "./src/services/HalService.js";
|
|
@@ -41,9 +43,10 @@ import { CodeBlocksServiceLive } from "./src/live/CodeBlocksServiceLive.js";
|
|
|
41
43
|
import { CollectionsServiceLive } from "./src/live/CollectionsServiceLive.js";
|
|
42
44
|
import { ContractsServiceLive } from "./src/live/ContractsServiceLive.js";
|
|
43
45
|
import { DocsServiceLive } from "./src/live/DocsServiceLive.js";
|
|
46
|
+
import { DoubleClickServiceLive } from "./src/live/DoubleClickServiceLive.js";
|
|
44
47
|
import { GroupsServiceLive } from "./src/live/GroupsServiceLive.js";
|
|
45
48
|
import { HalServiceLive } from "./src/live/HalServiceLive.js";
|
|
46
49
|
import { TransactionsServiceLive } from "./src/live/TransactionsServiceLive.js";
|
|
47
50
|
import { WalletsServiceLive } from "./src/live/WalletsServiceLive.js";
|
|
48
51
|
|
|
49
|
-
export {
|
|
52
|
+
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, DoubleClickJsonResponseSchema, DoubleClickService, DoubleClickServiceLive, EditAgentSafeMetadataParamsSchema, EditGroupMetadataParamsSchema, EditGroupMetadataResponseSchema, Erc7702DelegationSchema, EvaluateExistingParamsSchema, EvaluateExistingResponseSchema, EvaluateParamsSchema, EvaluateResponseSchema, EventSummarySchema, EvmAddressSchema, ExecuteCodeBlockParamsSchema, ExecuteSafeTxParamsSchema, ExecuteSafeTxResponseSchema, FeatureFlagsSchema, FunctionSummarySchema, GetActionVersionsParamsSchema, GetAgentWorkflowParamsSchema, GetContractCodeParamsSchema, GetContractCodeResponseSchema, GraphVersionTargetSchema, GroupDetailsSchema, GroupIdParamsSchema, GroupMemberSchema, GroupNotFoundError, GroupSummarySchema, GroupWalletSchema, GroupsService, GroupsServiceLive, HalService, HalServiceLive, HerdConfigSchema, HerdConfigService, HistoricalImplementationSchema, IntegrityCheckKeySchema, 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, SlotTargetTypeSchema, SubmitAgentWorkflowDecisionParamsSchema, SubmitAgentWorkflowDecisionResponseSchema, TokenActivityPaginationSchema, TokenActivityParamsSchema, TokenActivitySchema, TokenBalanceInfoSchema, TokenDetailsSchema, TokenImageSchema, TokenResponseSchema, TokenTransferSchema, TopHolderSchema, TransactionActivityPaginationSchema, TransactionActivityQuerySchema, TransactionActivitySchema, TransactionBookmarkSchema, TransactionNotFoundError, TransactionQueryResponseSchema, TransactionSchema, TransactionStatusSchema, TransactionsService, TransactionsServiceLive, TraverseDepthSchema, UpdateActionMetadataParamsSchema, UpdateBookmarkLabelParamsSchema, UpdateCodeBlockMetadataParamsSchema, UpdateCodeParamsSchema, UpdateCollectionParamsSchema, UpdateExpressionParamsSchema, WalletBalanceSchema, WalletBookmarkSchema, WalletOverviewSchema, WalletTransactionSchema, WalletTxActionExecutionSchema, WalletTxBalanceChangeSchema, WalletTxCallSchema, WalletTxTransferSchema, WalletsService, WalletsServiceLive, WhoamiResponseSchema };
|
package/dist/src/config.d.ts
CHANGED
|
@@ -9,14 +9,14 @@ declare const HerdConfigSchema: Schema.Result<Schema.Struct<{
|
|
|
9
9
|
readonly baseUrl: Schema.String;
|
|
10
10
|
readonly oauthAccessToken: Schema.String;
|
|
11
11
|
}>>;
|
|
12
|
-
type
|
|
13
|
-
declare const
|
|
12
|
+
type HerdConfig = typeof HerdConfigSchema.Type;
|
|
13
|
+
declare const HerdConfigService_base: Context.ServiceClass<HerdConfigService, "HerdConfig", effect_Result0.Result<{
|
|
14
14
|
readonly apiKey: string;
|
|
15
15
|
readonly baseUrl: string;
|
|
16
16
|
}, {
|
|
17
17
|
readonly baseUrl: string;
|
|
18
18
|
readonly oauthAccessToken: string;
|
|
19
19
|
}>>;
|
|
20
|
-
declare class
|
|
20
|
+
declare class HerdConfigService extends HerdConfigService_base {}
|
|
21
21
|
//#endregion
|
|
22
|
-
export { HerdConfig, HerdConfigSchema,
|
|
22
|
+
export { HerdConfig, HerdConfigSchema, HerdConfigService };
|
package/dist/src/config.js
CHANGED
|
@@ -8,7 +8,7 @@ const HerdConfigSchema = Schema.Result(Schema.Struct({
|
|
|
8
8
|
baseUrl: Schema.String,
|
|
9
9
|
oauthAccessToken: Schema.String
|
|
10
10
|
}));
|
|
11
|
-
var
|
|
11
|
+
var HerdConfigService = class extends Context.Service()("HerdConfig") {};
|
|
12
12
|
|
|
13
13
|
//#endregion
|
|
14
|
-
export {
|
|
14
|
+
export { HerdConfigSchema, HerdConfigService };
|
package/dist/src/errors.d.ts
CHANGED
|
@@ -5,7 +5,13 @@ import * as effect_Cause0 from "effect/Cause";
|
|
|
5
5
|
declare const ServiceError_base: Schema.Class<ServiceError, Schema.TaggedStruct<"ServiceError", {
|
|
6
6
|
readonly message: Schema.String;
|
|
7
7
|
readonly metadata: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
8
|
+
readonly cause: Schema.optionalKey<Schema.Defect>;
|
|
8
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
|
+
*/
|
|
9
15
|
declare class ServiceError extends ServiceError_base {}
|
|
10
16
|
declare const ActionNotFoundError_base: Schema.Class<ActionNotFoundError, Schema.TaggedStruct<"ActionNotFoundError", {
|
|
11
17
|
readonly id: Schema.String;
|
package/dist/src/errors.js
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
2
|
|
|
3
3
|
//#region src/errors.ts
|
|
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
|
+
*/
|
|
4
9
|
var ServiceError = class extends Schema.TaggedErrorClass()("ServiceError", {
|
|
5
10
|
message: Schema.String,
|
|
6
|
-
metadata: Schema.Record(Schema.String, Schema.Unknown)
|
|
11
|
+
metadata: Schema.Record(Schema.String, Schema.Unknown),
|
|
12
|
+
cause: Schema.optionalKey(Schema.Defect)
|
|
7
13
|
}) {};
|
|
8
14
|
var ActionNotFoundError = class extends Schema.TaggedErrorClass()("ActionNotFoundError", { id: Schema.String }) {};
|
|
9
15
|
var CodeBlockNotFoundError = class extends Schema.TaggedErrorClass()("CodeBlockNotFoundError", { id: Schema.String }) {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HerdConfigService } from "../config.js";
|
|
2
2
|
import { ActionsService } from "../services/ActionsService.js";
|
|
3
3
|
import { Layer } from "effect";
|
|
4
4
|
import * as effect_unstable_http_HttpClient0 from "effect/unstable/http/HttpClient";
|
|
5
5
|
|
|
6
6
|
//#region src/live/ActionsServiceLive.d.ts
|
|
7
|
-
declare const ActionsServiceLive: Layer.Layer<ActionsService, never,
|
|
7
|
+
declare const ActionsServiceLive: Layer.Layer<ActionsService, never, HerdConfigService | effect_unstable_http_HttpClient0.HttpClient>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { ActionsServiceLive };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ActionNotFoundError, ServiceError, ensureServiceError } from "../errors.js";
|
|
2
|
-
import {
|
|
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";
|
|
@@ -16,16 +16,16 @@ const ActionsServiceLive = Layer.effect(ActionsService, Effect.gen(function* ()
|
|
|
16
16
|
create: (params) => pipe(client.post(makeUrl(baseUrl, "/v1/actions"), { body: jsonBody({
|
|
17
17
|
...params,
|
|
18
18
|
expressionType: "action"
|
|
19
|
-
}) }), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(
|
|
19
|
+
}) }), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(CreateActionResponseSchema)), Effect.mapError(ensureServiceError("Failed to create action"))),
|
|
20
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(
|
|
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
22
|
getVersions: (params) => pipe(client.post(makeUrl(baseUrl, "/v1/actions/versions"), { body: jsonBody({
|
|
23
23
|
actionIds: params.actionIds,
|
|
24
24
|
latest: params.latest
|
|
25
|
-
}) }), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(
|
|
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(
|
|
27
|
-
search: (params) => pipe(client.post(makeUrl(baseUrl, "/v1/actions/query"), { body: jsonBody(params) }), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(
|
|
28
|
-
searchRelatedAdapters: (params) => pipe(client.post(makeUrl(baseUrl, "/v1/actions/related-adapters/query"), { body: jsonBody(params) }), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(
|
|
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"))),
|
|
29
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)),
|
|
30
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
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HerdConfigService } from "../config.js";
|
|
2
2
|
import { AdaptersService } from "../services/AdaptersService.js";
|
|
3
3
|
import { Layer } from "effect";
|
|
4
|
-
import * as
|
|
4
|
+
import * as effect_unstable_http_HttpClient10 from "effect/unstable/http/HttpClient";
|
|
5
5
|
|
|
6
6
|
//#region src/live/AdaptersServiceLive.d.ts
|
|
7
|
-
declare const AdaptersServiceLive: Layer.Layer<AdaptersService, never,
|
|
7
|
+
declare const AdaptersServiceLive: Layer.Layer<AdaptersService, never, HerdConfigService | effect_unstable_http_HttpClient10.HttpClient>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { AdaptersServiceLive };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ActionNotFoundError, ServiceError, ensureServiceError } from "../errors.js";
|
|
2
|
-
import {
|
|
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";
|
|
@@ -16,10 +16,10 @@ const AdaptersServiceLive = Layer.effect(AdaptersService, Effect.gen(function* (
|
|
|
16
16
|
create: (params) => pipe(client.post(makeUrl(baseUrl, "/v1/actions"), { body: jsonBody({
|
|
17
17
|
...params,
|
|
18
18
|
expressionType: "adapter"
|
|
19
|
-
}) }), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(
|
|
19
|
+
}) }), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(CreateActionResponseSchema)), Effect.mapError(ensureServiceError("Failed to create adapter"))),
|
|
20
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(
|
|
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(
|
|
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)),
|
|
23
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)),
|
|
24
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
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HerdConfigService } from "../config.js";
|
|
2
2
|
import { AgentSafesService } from "../services/AgentSafesService.js";
|
|
3
3
|
import { Layer } from "effect";
|
|
4
|
-
import * as
|
|
4
|
+
import * as effect_unstable_http_HttpClient3 from "effect/unstable/http/HttpClient";
|
|
5
5
|
|
|
6
6
|
//#region src/live/AgentSafesServiceLive.d.ts
|
|
7
|
-
declare const AgentSafesServiceLive: Layer.Layer<AgentSafesService, never,
|
|
7
|
+
declare const AgentSafesServiceLive: Layer.Layer<AgentSafesService, never, HerdConfigService | effect_unstable_http_HttpClient3.HttpClient>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { AgentSafesServiceLive };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ensureServiceError } from "../errors.js";
|
|
2
|
-
import {
|
|
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";
|
|
@@ -9,9 +9,9 @@ import { HttpClientResponse } from "effect/unstable/http";
|
|
|
9
9
|
const AgentSafesServiceLive = Layer.effect(AgentSafesService, Effect.gen(function* () {
|
|
10
10
|
const { baseUrl, client } = yield* authorizedClient;
|
|
11
11
|
return {
|
|
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(
|
|
13
|
-
getAgentSafe: (blockchain, safeAddress) => pipe(client.get(makeUrl(baseUrl, `/v1/agent-safes/${blockchain}/${safeAddress}`)), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(
|
|
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(
|
|
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 {
|
|
1
|
+
import { HerdConfigService } from "../config.js";
|
|
2
2
|
import { AgentWalletsService } from "../services/AgentWalletsService.js";
|
|
3
3
|
import { Layer } from "effect";
|
|
4
|
-
import * as
|
|
4
|
+
import * as effect_unstable_http_HttpClient4 from "effect/unstable/http/HttpClient";
|
|
5
5
|
|
|
6
6
|
//#region src/live/AgentWalletsServiceLive.d.ts
|
|
7
|
-
declare const AgentWalletsServiceLive: Layer.Layer<AgentWalletsService, never,
|
|
7
|
+
declare const AgentWalletsServiceLive: Layer.Layer<AgentWalletsService, never, HerdConfigService | effect_unstable_http_HttpClient4.HttpClient>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { AgentWalletsServiceLive };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ensureServiceError } from "../errors.js";
|
|
2
|
-
import {
|
|
2
|
+
import { AgentWalletSafesListSchema, AgentWalletsListSchema } from "../schemas/agent-wallets.js";
|
|
3
3
|
import { AgentWalletsService } from "../services/AgentWalletsService.js";
|
|
4
4
|
import { authorizedClient, checkStatus, makeUrl } from "./http.js";
|
|
5
5
|
import { Effect, Layer, pipe } from "effect";
|
|
@@ -9,8 +9,8 @@ import { HttpClientResponse } from "effect/unstable/http";
|
|
|
9
9
|
const AgentWalletsServiceLive = Layer.effect(AgentWalletsService, Effect.gen(function* () {
|
|
10
10
|
const { baseUrl, client } = yield* authorizedClient;
|
|
11
11
|
return {
|
|
12
|
-
listAgentWalletSafes: (agentWalletAddress) => pipe(client.get(makeUrl(baseUrl, `/v1/agent-wallets/${agentWalletAddress}/safes`)), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(
|
|
13
|
-
listAgentWallets: (params) => pipe(client.get(makeUrl(baseUrl, "/v1/agent-wallets", { groupId: params?.groupId })), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(
|
|
12
|
+
listAgentWalletSafes: (agentWalletAddress) => pipe(client.get(makeUrl(baseUrl, `/v1/agent-wallets/${agentWalletAddress}/safes`)), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(AgentWalletSafesListSchema)), Effect.mapError(ensureServiceError("Failed to list agent wallet Safes"))),
|
|
13
|
+
listAgentWallets: (params) => pipe(client.get(makeUrl(baseUrl, "/v1/agent-wallets", { groupId: params?.groupId })), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(AgentWalletsListSchema)), Effect.mapError(ensureServiceError("Failed to list agent wallets")))
|
|
14
14
|
};
|
|
15
15
|
}));
|
|
16
16
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HerdConfigService } from "../config.js";
|
|
2
2
|
import { AgentWorkflowsService } from "../services/AgentWorkflowsService.js";
|
|
3
3
|
import { Layer } from "effect";
|
|
4
|
-
import * as
|
|
4
|
+
import * as effect_unstable_http_HttpClient9 from "effect/unstable/http/HttpClient";
|
|
5
5
|
|
|
6
6
|
//#region src/live/AgentWorkflowsServiceLive.d.ts
|
|
7
|
-
declare const AgentWorkflowsServiceLive: Layer.Layer<AgentWorkflowsService, never,
|
|
7
|
+
declare const AgentWorkflowsServiceLive: Layer.Layer<AgentWorkflowsService, never, HerdConfigService | effect_unstable_http_HttpClient9.HttpClient>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { AgentWorkflowsServiceLive };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ServiceError, ensureServiceError } from "../errors.js";
|
|
2
|
-
import {
|
|
2
|
+
import { AgentWorkflowWithRunsSchema, CreateAgentWorkflowResponseSchema, CreateAgentWorkflowRunResponseSchema, ExecuteSafeTxResponseSchema, ListAgentWorkflowsResponseSchema, PushAgentWorkflowResponseSchema, SubmitAgentWorkflowDecisionResponseSchema } from "../schemas/agent-workflows.js";
|
|
3
3
|
import { AgentWorkflowNotFoundError, AgentWorkflowRunNotFoundError, AgentWorkflowsService } from "../services/AgentWorkflowsService.js";
|
|
4
4
|
import { authorizedClient, checkStatus, jsonBody, makeUrl } from "./http.js";
|
|
5
5
|
import { Effect, Layer, pipe } from "effect";
|
|
@@ -17,19 +17,19 @@ const mapRunNotFound = (runId) => Effect.catch((error) => {
|
|
|
17
17
|
const AgentWorkflowsServiceLive = Layer.effect(AgentWorkflowsService, Effect.gen(function* () {
|
|
18
18
|
const { baseUrl, client } = yield* authorizedClient;
|
|
19
19
|
return {
|
|
20
|
-
create: (params) => pipe(client.post(makeUrl(baseUrl, "/v1/agent-workflows"), { body: jsonBody(params) }), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(
|
|
20
|
+
create: (params) => pipe(client.post(makeUrl(baseUrl, "/v1/agent-workflows"), { body: jsonBody(params) }), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(CreateAgentWorkflowResponseSchema)), Effect.mapError(ensureServiceError("Failed to create agent workflow"))),
|
|
21
21
|
createRun: (params) => pipe(client.post(makeUrl(baseUrl, `/v1/agent-workflows/${params.agentWorkflowId}/runs`), { body: jsonBody({
|
|
22
22
|
outputs: params.outputs,
|
|
23
23
|
changelog: params.changelog
|
|
24
|
-
}) }), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(
|
|
25
|
-
executeSafeTx: (params) => pipe(client.post(makeUrl(baseUrl, `/v1/agent-workflows/runs/${params.agentWorkflowRunId}/push/execute`)), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(
|
|
26
|
-
get: (agentWorkflowId) => pipe(client.get(makeUrl(baseUrl, `/v1/agent-workflows/${agentWorkflowId}`)), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(
|
|
24
|
+
}) }), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(CreateAgentWorkflowRunResponseSchema)), Effect.mapError(ensureServiceError("Failed to create agent workflow run")), mapWorkflowNotFound(params.agentWorkflowId)),
|
|
25
|
+
executeSafeTx: (params) => pipe(client.post(makeUrl(baseUrl, `/v1/agent-workflows/runs/${params.agentWorkflowRunId}/push/execute`)), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(ExecuteSafeTxResponseSchema)), Effect.mapError(ensureServiceError("Failed to execute safe transaction")), mapRunNotFound(params.agentWorkflowRunId)),
|
|
26
|
+
get: (agentWorkflowId) => pipe(client.get(makeUrl(baseUrl, `/v1/agent-workflows/${agentWorkflowId}`)), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(AgentWorkflowWithRunsSchema)), Effect.mapError(ensureServiceError("Failed to get agent workflow")), mapWorkflowNotFound(agentWorkflowId)),
|
|
27
27
|
list: (params) => pipe(client.get(makeUrl(baseUrl, "/v1/agent-workflows", {
|
|
28
28
|
groupId: params.groupId,
|
|
29
29
|
type: params.type
|
|
30
|
-
})), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(
|
|
31
|
-
push: (params) => pipe(client.post(makeUrl(baseUrl, `/v1/agent-workflows/runs/${params.agentWorkflowRunId}/push`)), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(
|
|
32
|
-
submitDecision: (params) => pipe(client.post(makeUrl(baseUrl, `/v1/agent-workflows/runs/${params.agentWorkflowRunId}/decisions`), { body: jsonBody({ decision: params.decision }) }), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(
|
|
30
|
+
})), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(ListAgentWorkflowsResponseSchema)), Effect.mapError(ensureServiceError("Failed to list agent workflows"))),
|
|
31
|
+
push: (params) => pipe(client.post(makeUrl(baseUrl, `/v1/agent-workflows/runs/${params.agentWorkflowRunId}/push`)), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(PushAgentWorkflowResponseSchema)), Effect.mapError(ensureServiceError("Failed to push agent workflow")), mapRunNotFound(params.agentWorkflowRunId)),
|
|
32
|
+
submitDecision: (params) => pipe(client.post(makeUrl(baseUrl, `/v1/agent-workflows/runs/${params.agentWorkflowRunId}/decisions`), { body: jsonBody({ decision: params.decision }) }), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(SubmitAgentWorkflowDecisionResponseSchema)), Effect.mapError(ensureServiceError("Failed to submit agent workflow decision")), mapRunNotFound(params.agentWorkflowRunId))
|
|
33
33
|
};
|
|
34
34
|
}));
|
|
35
35
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HerdConfigService } from "../config.js";
|
|
2
2
|
import { AuthService } from "../services/AuthService.js";
|
|
3
3
|
import { Layer } from "effect";
|
|
4
|
-
import * as
|
|
4
|
+
import * as effect_unstable_http_HttpClient5 from "effect/unstable/http/HttpClient";
|
|
5
5
|
|
|
6
6
|
//#region src/live/AuthServiceLive.d.ts
|
|
7
|
-
declare const AuthServiceLive: Layer.Layer<AuthService, never,
|
|
7
|
+
declare const AuthServiceLive: Layer.Layer<AuthService, never, HerdConfigService | effect_unstable_http_HttpClient5.HttpClient>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { AuthServiceLive };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AuthError } from "../errors.js";
|
|
2
|
-
import {
|
|
2
|
+
import { ApiKeyListResponseSchema, CreatedApiKeySchema, TokenResponseSchema, WhoamiResponseSchema } from "../schemas/auth.js";
|
|
3
3
|
import { AuthService } from "../services/AuthService.js";
|
|
4
4
|
import { authorizedClient, checkStatus, jsonBody, makeUrl, urlEncodedBody } from "./http.js";
|
|
5
5
|
import { Effect, Layer, pipe } from "effect";
|
|
@@ -9,16 +9,16 @@ import { HttpClientResponse } from "effect/unstable/http";
|
|
|
9
9
|
const AuthServiceLive = Layer.effect(AuthService, Effect.gen(function* () {
|
|
10
10
|
const { baseUrl, client } = yield* authorizedClient;
|
|
11
11
|
return {
|
|
12
|
-
listApiKeys: pipe(client.get(makeUrl(baseUrl, "/v1/api-keys")), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(
|
|
13
|
-
provisionApiKey: (name) => pipe(client.post(makeUrl(baseUrl, "/v1/api-keys"), { body: jsonBody({ name }) }), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(
|
|
12
|
+
listApiKeys: pipe(client.get(makeUrl(baseUrl, "/v1/api-keys")), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(ApiKeyListResponseSchema)), Effect.mapError((error) => new AuthError({ message: String(error) }))),
|
|
13
|
+
provisionApiKey: (name) => pipe(client.post(makeUrl(baseUrl, "/v1/api-keys"), { body: jsonBody({ name }) }), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(CreatedApiKeySchema)), Effect.mapError((error) => new AuthError({ message: String(error) }))),
|
|
14
14
|
refreshToken: (refreshToken, clientId) => pipe(client.post(makeUrl(baseUrl, "/api/auth/oauth2/token"), { body: urlEncodedBody({
|
|
15
15
|
grant_type: "refresh_token",
|
|
16
16
|
refresh_token: refreshToken,
|
|
17
17
|
client_id: clientId,
|
|
18
18
|
resource: baseUrl
|
|
19
|
-
}) }), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(
|
|
19
|
+
}) }), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(TokenResponseSchema)), Effect.mapError((error) => new AuthError({ message: String(error) }))),
|
|
20
20
|
revokeApiKey: (keyId) => pipe(client.del(makeUrl(baseUrl, `/v1/api-keys/${keyId}`)), Effect.flatMap(checkStatus), Effect.asVoid, Effect.mapError((error) => new AuthError({ message: String(error) }))),
|
|
21
|
-
whoami: pipe(client.get(makeUrl(baseUrl, "/v1/users/me")), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(
|
|
21
|
+
whoami: pipe(client.get(makeUrl(baseUrl, "/v1/users/me")), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(WhoamiResponseSchema)), Effect.mapError((error) => new AuthError({ message: String(error) })))
|
|
22
22
|
};
|
|
23
23
|
}));
|
|
24
24
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HerdConfigService } from "../config.js";
|
|
2
2
|
import { BookmarksService } from "../services/BookmarksService.js";
|
|
3
3
|
import { Layer } from "effect";
|
|
4
4
|
import * as effect_unstable_http_HttpClient6 from "effect/unstable/http/HttpClient";
|
|
5
5
|
|
|
6
6
|
//#region src/live/BookmarksServiceLive.d.ts
|
|
7
|
-
declare const BookmarksServiceLive: Layer.Layer<BookmarksService, never,
|
|
7
|
+
declare const BookmarksServiceLive: Layer.Layer<BookmarksService, never, HerdConfigService | effect_unstable_http_HttpClient6.HttpClient>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { BookmarksServiceLive };
|