@herd-labs/sdk 0.5.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 +4 -1
- package/dist/index.js +4 -1
- package/dist/src/live/ActionsServiceLive.d.ts +2 -2
- package/dist/src/live/AdaptersServiceLive.d.ts +2 -2
- package/dist/src/live/AgentSafesServiceLive.d.ts +2 -2
- package/dist/src/live/AgentWalletsServiceLive.d.ts +2 -2
- package/dist/src/live/AgentWorkflowsServiceLive.d.ts +2 -2
- package/dist/src/live/AuthServiceLive.d.ts +2 -2
- package/dist/src/live/BookmarksServiceLive.d.ts +2 -2
- package/dist/src/live/CollectionsServiceLive.d.ts +2 -2
- package/dist/src/live/ContractsServiceLive.d.ts +2 -2
- package/dist/src/live/DocsServiceLive.d.ts +2 -2
- package/dist/src/live/DoubleClickServiceLive.d.ts +9 -0
- package/dist/src/live/DoubleClickServiceLive.js +113 -0
- package/dist/src/live/GroupsServiceLive.d.ts +2 -2
- package/dist/src/live/TransactionsServiceLive.d.ts +2 -2
- package/dist/src/live/WalletsServiceLive.d.ts +2 -2
- package/dist/src/schemas/doubleclick.d.ts +186 -0
- package/dist/src/schemas/doubleclick.js +22 -0
- package/dist/src/services/DoubleClickService.d.ts +63 -0
- package/dist/src/services/DoubleClickService.js +7 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ import { AgentWorkflow, AgentWorkflowDecision, AgentWorkflowDecisionSchema, Agen
|
|
|
15
15
|
import { EvaluateExistingParams, EvaluateExistingParamsSchema, EvaluateExistingResponse, EvaluateExistingResponseSchema, EvaluateParams, EvaluateParamsSchema, EvaluateResponse, EvaluateResponseSchema, TransactionStatus, TransactionStatusSchema } from "./src/schemas/hal.js";
|
|
16
16
|
import { DecodedTrace, LatestEventTransactions, LatestEventTransactionsSchema, LatestFunctionTransactions, LatestFunctionTransactionsSchema, LatestTxParams, LatestTxParamsSchema, Transaction, TransactionQueryResponse, TransactionQueryResponseSchema, TransactionSchema } from "./src/schemas/transactions.js";
|
|
17
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 { 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 };
|
|
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
|
@@ -15,6 +15,7 @@ import { AgentWorkflowDecisionSchema, AgentWorkflowRunSchema, AgentWorkflowSchem
|
|
|
15
15
|
import { EvaluateExistingParamsSchema, EvaluateExistingResponseSchema, EvaluateParamsSchema, EvaluateResponseSchema, TransactionStatusSchema } from "./src/schemas/hal.js";
|
|
16
16
|
import { LatestEventTransactionsSchema, LatestFunctionTransactionsSchema, LatestTxParamsSchema, TransactionQueryResponseSchema, TransactionSchema } from "./src/schemas/transactions.js";
|
|
17
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 { 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 };
|
|
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 };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { HerdConfigService } from "../config.js";
|
|
2
2
|
import { ActionsService } from "../services/ActionsService.js";
|
|
3
3
|
import { Layer } from "effect";
|
|
4
|
-
import * as
|
|
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, HerdConfigService |
|
|
7
|
+
declare const ActionsServiceLive: Layer.Layer<ActionsService, never, HerdConfigService | effect_unstable_http_HttpClient0.HttpClient>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { ActionsServiceLive };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
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, HerdConfigService |
|
|
7
|
+
declare const AdaptersServiceLive: Layer.Layer<AdaptersService, never, HerdConfigService | effect_unstable_http_HttpClient10.HttpClient>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { AdaptersServiceLive };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
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, HerdConfigService |
|
|
7
|
+
declare const AgentSafesServiceLive: Layer.Layer<AgentSafesService, never, HerdConfigService | effect_unstable_http_HttpClient3.HttpClient>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { AgentSafesServiceLive };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
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, HerdConfigService |
|
|
7
|
+
declare const AgentWalletsServiceLive: Layer.Layer<AgentWalletsService, never, HerdConfigService | effect_unstable_http_HttpClient4.HttpClient>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { AgentWalletsServiceLive };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
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, HerdConfigService |
|
|
7
|
+
declare const AgentWorkflowsServiceLive: Layer.Layer<AgentWorkflowsService, never, HerdConfigService | effect_unstable_http_HttpClient9.HttpClient>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { AgentWorkflowsServiceLive };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
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, HerdConfigService |
|
|
7
|
+
declare const AuthServiceLive: Layer.Layer<AuthService, never, HerdConfigService | effect_unstable_http_HttpClient5.HttpClient>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { AuthServiceLive };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { HerdConfigService } from "../config.js";
|
|
2
2
|
import { BookmarksService } from "../services/BookmarksService.js";
|
|
3
3
|
import { Layer } from "effect";
|
|
4
|
-
import * as
|
|
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, HerdConfigService |
|
|
7
|
+
declare const BookmarksServiceLive: Layer.Layer<BookmarksService, never, HerdConfigService | effect_unstable_http_HttpClient6.HttpClient>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { BookmarksServiceLive };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { HerdConfigService } from "../config.js";
|
|
2
2
|
import { CollectionsService } from "../services/CollectionsService.js";
|
|
3
3
|
import { Layer } from "effect";
|
|
4
|
-
import * as
|
|
4
|
+
import * as effect_unstable_http_HttpClient1 from "effect/unstable/http/HttpClient";
|
|
5
5
|
|
|
6
6
|
//#region src/live/CollectionsServiceLive.d.ts
|
|
7
|
-
declare const CollectionsServiceLive: Layer.Layer<CollectionsService, never, HerdConfigService |
|
|
7
|
+
declare const CollectionsServiceLive: Layer.Layer<CollectionsService, never, HerdConfigService | effect_unstable_http_HttpClient1.HttpClient>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { CollectionsServiceLive };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { HerdConfigService } from "../config.js";
|
|
2
2
|
import { ContractsService } from "../services/ContractsService.js";
|
|
3
3
|
import { Layer } from "effect";
|
|
4
|
-
import * as
|
|
4
|
+
import * as effect_unstable_http_HttpClient12 from "effect/unstable/http/HttpClient";
|
|
5
5
|
|
|
6
6
|
//#region src/live/ContractsServiceLive.d.ts
|
|
7
|
-
declare const ContractsServiceLive: Layer.Layer<ContractsService, never, HerdConfigService |
|
|
7
|
+
declare const ContractsServiceLive: Layer.Layer<ContractsService, never, HerdConfigService | effect_unstable_http_HttpClient12.HttpClient>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { ContractsServiceLive };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { HerdConfigService } from "../config.js";
|
|
2
2
|
import { DocsService } from "../services/DocsService.js";
|
|
3
3
|
import { Layer } from "effect";
|
|
4
|
-
import * as
|
|
4
|
+
import * as effect_unstable_http_HttpClient13 from "effect/unstable/http/HttpClient";
|
|
5
5
|
|
|
6
6
|
//#region src/live/DocsServiceLive.d.ts
|
|
7
|
-
declare const DocsServiceLive: Layer.Layer<DocsService, never, HerdConfigService |
|
|
7
|
+
declare const DocsServiceLive: Layer.Layer<DocsService, never, HerdConfigService | effect_unstable_http_HttpClient13.HttpClient>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { DocsServiceLive };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { HerdConfigService } from "../config.js";
|
|
2
|
+
import { DoubleClickService } from "../services/DoubleClickService.js";
|
|
3
|
+
import { Layer } from "effect";
|
|
4
|
+
import * as effect_unstable_http_HttpClient8 from "effect/unstable/http/HttpClient";
|
|
5
|
+
|
|
6
|
+
//#region src/live/DoubleClickServiceLive.d.ts
|
|
7
|
+
declare const DoubleClickServiceLive: Layer.Layer<DoubleClickService, never, HerdConfigService | effect_unstable_http_HttpClient8.HttpClient>;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { DoubleClickServiceLive };
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { ensureServiceError } from "../errors.js";
|
|
2
|
+
import { DoubleClickJsonResponseSchema } from "../schemas/doubleclick.js";
|
|
3
|
+
import { DoubleClickService } from "../services/DoubleClickService.js";
|
|
4
|
+
import { authorizedClient, checkStatus, jsonBody, makeUrl } from "./http.js";
|
|
5
|
+
import { Effect, Layer, pipe } from "effect";
|
|
6
|
+
import { HttpClientResponse } from "effect/unstable/http";
|
|
7
|
+
|
|
8
|
+
//#region src/live/DoubleClickServiceLive.ts
|
|
9
|
+
const decodeJson = HttpClientResponse.schemaBodyJson(DoubleClickJsonResponseSchema);
|
|
10
|
+
const reviewPath = (target) => `/v1/balance-graph/${target}-versions`;
|
|
11
|
+
const reviewIdsKey = (target) => `${target}VersionIds`;
|
|
12
|
+
const DoubleClickServiceLive = Layer.effect(DoubleClickService, Effect.gen(function* () {
|
|
13
|
+
const { baseUrl, client } = yield* authorizedClient;
|
|
14
|
+
const getJson = (path, query, message) => pipe(client.get(makeUrl(baseUrl, path, query)), Effect.flatMap(checkStatus), Effect.flatMap(decodeJson), Effect.mapError(ensureServiceError(message)));
|
|
15
|
+
const postJson = (path, body, message) => pipe(client.post(makeUrl(baseUrl, path), { body: jsonBody(body) }), Effect.flatMap(checkStatus), Effect.flatMap(decodeJson), Effect.mapError(ensureServiceError(message)));
|
|
16
|
+
const postJsonQuery = (path, query, body, message) => pipe(client.post(makeUrl(baseUrl, path, query), { body: jsonBody(body) }), Effect.flatMap(checkStatus), Effect.flatMap(decodeJson), Effect.mapError(ensureServiceError(message)));
|
|
17
|
+
const patchJson = (path, body, message) => pipe(client.patch(makeUrl(baseUrl, path), { body: jsonBody(body) }), Effect.flatMap(checkStatus), Effect.flatMap(decodeJson), Effect.mapError(ensureServiceError(message)));
|
|
18
|
+
const deleteJson = (path, message) => pipe(client.del(makeUrl(baseUrl, path)), Effect.flatMap(checkStatus), Effect.flatMap(decodeJson), Effect.mapError(ensureServiceError(message)));
|
|
19
|
+
return {
|
|
20
|
+
addIssuerToken: (params) => postJson(`/v1/display-tokens/issuers/${params.slug}/add-token`, {
|
|
21
|
+
nodeId: params.nodeId,
|
|
22
|
+
order: params.order
|
|
23
|
+
}, "Failed to add issuer token"),
|
|
24
|
+
addSlot: (params) => postJson(`/v1/param-queries/slots/${params.targetType}/${params.targetId}`, {
|
|
25
|
+
slotName: params.slotName,
|
|
26
|
+
queryId: params.queryId,
|
|
27
|
+
methodology: params.methodology
|
|
28
|
+
}, "Failed to add slot"),
|
|
29
|
+
approveVersion: (params) => patchJson(`${reviewPath(params.target)}/${params.versionId}/approve`, { notes: params.notes }, "Failed to approve graph version"),
|
|
30
|
+
bulkApproveVersions: (params) => postJson(`${reviewPath(params.target)}/bulk-approve`, {
|
|
31
|
+
[reviewIdsKey(params.target)]: params.versionIds,
|
|
32
|
+
notes: params.notes
|
|
33
|
+
}, "Failed to bulk approve graph versions"),
|
|
34
|
+
bulkRejectVersions: (params) => postJson(`${reviewPath(params.target)}/bulk-reject`, {
|
|
35
|
+
[reviewIdsKey(params.target)]: params.versionIds,
|
|
36
|
+
notes: params.notes
|
|
37
|
+
}, "Failed to bulk reject graph versions"),
|
|
38
|
+
convertSlotToFixed: (params) => patchJson(`/v1/param-queries/slots/${params.targetType}/${params.targetId}/${params.slotName}/to-fixed`, {
|
|
39
|
+
fixedValue: params.fixedValue,
|
|
40
|
+
methodology: params.methodology
|
|
41
|
+
}, "Failed to convert slot to fixed"),
|
|
42
|
+
convertSlotToNotPriced: (params) => patchJson(`/v1/param-queries/slots/${params.targetType}/${params.targetId}/${params.slotName}/to-not-priced`, { methodology: params.methodology }, "Failed to convert slot to not priced"),
|
|
43
|
+
createIssuer: (params) => postJson("/v1/display-tokens/issuers", params, "Failed to create issuer"),
|
|
44
|
+
getAssembledNode: (params) => getJson(`/v1/balance-graph/nodes/${params.nodeId}/assembled`, void 0, "Failed to get assembled node"),
|
|
45
|
+
getIssuer: (slug) => getJson(`/v1/display-tokens/issuers/${slug}`, void 0, "Failed to get issuer"),
|
|
46
|
+
getLogo: (params) => getJson("/v1/display-tokens/logos", params, "Failed to get logo"),
|
|
47
|
+
getLogoBatch: (params) => postJson("/v1/display-tokens/logos/batch", params, "Failed to get logo batch"),
|
|
48
|
+
getLogoBatchMap: (params) => postJson("/v1/display-tokens/logos/batch-map", params, "Failed to get logo batch map"),
|
|
49
|
+
getNode: (params) => getJson(`/v1/balance-graph/nodes/${params.nodeId}`, {
|
|
50
|
+
versionOverride: params.versionOverride,
|
|
51
|
+
adminLive: params.adminLive
|
|
52
|
+
}, "Failed to get graph node"),
|
|
53
|
+
getNodeByIdentity: (params) => getJson("/v1/balance-graph/nodes", { identityKey: params.identityKey }, "Failed to get graph node by identity"),
|
|
54
|
+
getNodeWithCounts: (params) => getJson(`/v1/balance-graph/nodes/${params.nodeId}/with-counts`, { adminLive: params.adminLive }, "Failed to get graph node with counts"),
|
|
55
|
+
getResearchRun: (runId) => getJson(`/v1/balance-graph-research/runs/${runId}`, void 0, "Failed to get research run"),
|
|
56
|
+
getResearchRunWithPins: (runId) => getJson(`/v1/balance-graph-research/runs/${runId}/with-pins`, void 0, "Failed to get research run pins"),
|
|
57
|
+
getTokenByChainAndAddress: (params) => getJson("/v1/display-tokens/tokens", params, "Failed to get token"),
|
|
58
|
+
getTokenMetrics: (nodeId) => getJson(`/v1/display-tokens/tokens/${nodeId}/metrics`, void 0, "Failed to get token metrics"),
|
|
59
|
+
getTokenMetricsBatch: (nodeIds) => postJson("/v1/display-tokens/tokens/metrics/batch", { tokenNodeIds: nodeIds }, "Failed to get token metrics"),
|
|
60
|
+
integrityCheck: (params) => getJson(`/v1/integrity/${params.key}`, { includeDrafts: params.includeDrafts }, "Failed to run integrity check"),
|
|
61
|
+
integritySummary: (params) => getJson("/v1/integrity/summary", { includeDrafts: params?.includeDrafts }, "Failed to get integrity summary"),
|
|
62
|
+
listCuratedTokens: (params) => getJson("/v1/display-tokens/curated", params, "Failed to list curated tokens"),
|
|
63
|
+
listEdgesForNode: (params) => getJson(`/v1/balance-graph/nodes/${params.nodeId}/edges`, { adminLive: params.adminLive }, "Failed to list graph node edges"),
|
|
64
|
+
listIssuerTokenLinks: getJson("/v1/display-tokens/issuer-token-links", void 0, "Failed to list issuer token links"),
|
|
65
|
+
listIssuerTokens: (params) => getJson(`/v1/display-tokens/issuers/${params.slug}/tokens`, { include: params.include }, "Failed to list issuer tokens"),
|
|
66
|
+
listIssuers: getJson("/v1/display-tokens/issuers", void 0, "Failed to list issuers"),
|
|
67
|
+
listRecentResearchRuns: getJson("/v1/balance-graph-research/runs/recent", void 0, "Failed to list recent research runs"),
|
|
68
|
+
listRecentResearchRunsWithStats: getJson("/v1/balance-graph-research/runs/recent-with-stats", void 0, "Failed to list recent research runs with stats"),
|
|
69
|
+
listResearchRunFindings: (runId) => getJson(`/v1/balance-graph-research/runs/${runId}/findings`, void 0, "Failed to list research findings"),
|
|
70
|
+
listResearchRuns: (params) => getJson("/v1/balance-graph-research/runs", params, "Failed to list research runs"),
|
|
71
|
+
markResearchRunCompleted: (runId) => postJson(`/v1/balance-graph-research/runs/${runId}/mark-completed`, {}, "Failed to mark research run complete"),
|
|
72
|
+
markResearchRunFailed: (params) => postJson(`/v1/balance-graph-research/runs/${params.runId}/mark-failed`, { reason: params.reason }, "Failed to mark research run failed"),
|
|
73
|
+
refreshAllCuratedMetrics: (params = {}) => postJson("/v1/display-tokens/metrics/refresh-all", params, "Failed to refresh all curated metrics"),
|
|
74
|
+
refreshStaleSlotsForExpansion: (params) => postJson("/v1/param-queries/refresh-stale-slots/expansion", params, "Failed to refresh expansion slots"),
|
|
75
|
+
refreshStaleSlotsForNode: (params) => postJson(`/v1/param-queries/nodes/${params.nodeId}/refresh-stale-slots`, {
|
|
76
|
+
staleMs: params.staleMs,
|
|
77
|
+
adminLive: params.adminLive
|
|
78
|
+
}, "Failed to refresh node slots"),
|
|
79
|
+
refreshTokenMetrics: (params) => postJsonQuery(`/v1/display-tokens/tokens/${params.nodeId}/refresh-metrics`, {
|
|
80
|
+
side: params.side,
|
|
81
|
+
maxAgeMs: params.maxAgeMs
|
|
82
|
+
}, {}, "Failed to refresh token metrics"),
|
|
83
|
+
registerToken: (params) => postJson("/v1/display-tokens/register", params, "Failed to register token"),
|
|
84
|
+
removeSlot: (params) => deleteJson(`/v1/param-queries/slots/${params.targetType}/${params.targetId}/${params.slotName}`, "Failed to remove slot"),
|
|
85
|
+
revertVersionToDraft: (params) => patchJson(`${reviewPath(params.target)}/${params.versionId}/revert-to-draft`, {}, "Failed to revert graph version to draft"),
|
|
86
|
+
runAccountingCheckForNode: (params) => postJson("/v1/accounting-checks/node", params, "Failed to run accounting check"),
|
|
87
|
+
runAccountingCheckForNodes: (params) => postJson("/v1/accounting-checks/nodes", params, "Failed to run accounting checks"),
|
|
88
|
+
setCurated: (params) => patchJson(`/v1/display-tokens/${params.nodeId}/curated`, { curated: params.curated }, "Failed to set curated"),
|
|
89
|
+
setLogo: (params) => patchJson(`/v1/balance-graph/nodes/${params.nodeId}/logo`, { logoUrl: params.logoUrl }, "Failed to set logo"),
|
|
90
|
+
setPrimaryToken: (params) => postJson(`/v1/display-tokens/${params.nodeId}/set-primary`, { primaryTokenId: params.primaryTokenId }, "Failed to set primary token"),
|
|
91
|
+
setSlotMethodology: (params) => patchJson(`/v1/param-queries/slots/${params.targetType}/${params.targetId}/${params.slotName}/methodology`, { methodology: params.methodology }, "Failed to set slot methodology"),
|
|
92
|
+
startResearchRun: (params) => postJson("/v1/balance-graph-research/runs", params, "Failed to start research run"),
|
|
93
|
+
submitResearchGraph: (params) => postJson(`/v1/balance-graph-research/runs/${params.runId}/graph`, {
|
|
94
|
+
graph: params.graph,
|
|
95
|
+
tools: params.tools,
|
|
96
|
+
status: params.status
|
|
97
|
+
}, "Failed to submit research graph"),
|
|
98
|
+
traverseDeep: (params) => postJson("/v1/balance-graph/traversal/deep", params, "Failed to traverse graph"),
|
|
99
|
+
traverseDirectional: (params) => postJson("/v1/balance-graph/traversal/directional", params, "Failed to traverse directional graph"),
|
|
100
|
+
updateIssuer: (params) => {
|
|
101
|
+
const { slug, ...body } = params;
|
|
102
|
+
return patchJson(`/v1/display-tokens/issuers/${slug}`, body, "Failed to update issuer");
|
|
103
|
+
},
|
|
104
|
+
upsertSideMetrics: (params) => postJson(`/v1/display-tokens/tokens/${params.nodeId}/metrics/upsert-side`, {
|
|
105
|
+
side: params.side,
|
|
106
|
+
metrics: params.metrics,
|
|
107
|
+
reason: params.reason
|
|
108
|
+
}, "Failed to upsert token side metrics")
|
|
109
|
+
};
|
|
110
|
+
}));
|
|
111
|
+
|
|
112
|
+
//#endregion
|
|
113
|
+
export { DoubleClickServiceLive };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { HerdConfigService } from "../config.js";
|
|
2
2
|
import { GroupsService } from "../services/GroupsService.js";
|
|
3
3
|
import { Layer } from "effect";
|
|
4
|
-
import * as
|
|
4
|
+
import * as effect_unstable_http_HttpClient7 from "effect/unstable/http/HttpClient";
|
|
5
5
|
|
|
6
6
|
//#region src/live/GroupsServiceLive.d.ts
|
|
7
|
-
declare const GroupsServiceLive: Layer.Layer<GroupsService, never, HerdConfigService |
|
|
7
|
+
declare const GroupsServiceLive: Layer.Layer<GroupsService, never, HerdConfigService | effect_unstable_http_HttpClient7.HttpClient>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { GroupsServiceLive };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { HerdConfigService } from "../config.js";
|
|
2
2
|
import { TransactionsService } from "../services/TransactionsService.js";
|
|
3
3
|
import { Layer } from "effect";
|
|
4
|
-
import * as
|
|
4
|
+
import * as effect_unstable_http_HttpClient14 from "effect/unstable/http/HttpClient";
|
|
5
5
|
|
|
6
6
|
//#region src/live/TransactionsServiceLive.d.ts
|
|
7
|
-
declare const TransactionsServiceLive: Layer.Layer<TransactionsService, never, HerdConfigService |
|
|
7
|
+
declare const TransactionsServiceLive: Layer.Layer<TransactionsService, never, HerdConfigService | effect_unstable_http_HttpClient14.HttpClient>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { TransactionsServiceLive };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { HerdConfigService } from "../config.js";
|
|
2
2
|
import { WalletsService } from "../services/WalletsService.js";
|
|
3
3
|
import { Layer } from "effect";
|
|
4
|
-
import * as
|
|
4
|
+
import * as effect_unstable_http_HttpClient0 from "effect/unstable/http/HttpClient";
|
|
5
5
|
|
|
6
6
|
//#region src/live/WalletsServiceLive.d.ts
|
|
7
|
-
declare const WalletsServiceLive: Layer.Layer<WalletsService, never, HerdConfigService |
|
|
7
|
+
declare const WalletsServiceLive: Layer.Layer<WalletsService, never, HerdConfigService | effect_unstable_http_HttpClient0.HttpClient>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { WalletsServiceLive };
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
|
|
3
|
+
//#region src/schemas/doubleclick.d.ts
|
|
4
|
+
declare const DoubleClickJsonResponseSchema: Schema.Unknown;
|
|
5
|
+
type DoubleClickJsonResponse = typeof DoubleClickJsonResponseSchema.Type;
|
|
6
|
+
declare const IntegrityCheckKeySchema: Schema.Literals<readonly ["schema-defects", "stale-queries", "fixed-slot-shape-defects", "dangling-underlying-keys", "version-pointer-defects", "entity-reference-defects", "duplicate-edges", "base-query-id-defects", "live-param-query-usage", "live-slots-bad-bases"]>;
|
|
7
|
+
type IntegrityCheckKey = typeof IntegrityCheckKeySchema.Type;
|
|
8
|
+
declare const SlotTargetTypeSchema: Schema.Literals<readonly ["node", "edge"]>;
|
|
9
|
+
type SlotTargetType = typeof SlotTargetTypeSchema.Type;
|
|
10
|
+
declare const TraverseDepthSchema: Schema.Union<readonly [Schema.Number, Schema.Literal<"full">]>;
|
|
11
|
+
type TraverseDepth = typeof TraverseDepthSchema.Type;
|
|
12
|
+
declare const GraphVersionTargetSchema: Schema.Literals<readonly ["node", "edge"]>;
|
|
13
|
+
type GraphVersionTarget = typeof GraphVersionTargetSchema.Type;
|
|
14
|
+
type IncludeDraftsParams = {
|
|
15
|
+
readonly includeDrafts?: boolean | undefined;
|
|
16
|
+
};
|
|
17
|
+
type IntegrityCheckParams = IncludeDraftsParams & {
|
|
18
|
+
readonly key: IntegrityCheckKey;
|
|
19
|
+
};
|
|
20
|
+
type RefreshStaleSlotsForNodeParams = {
|
|
21
|
+
readonly nodeId: string;
|
|
22
|
+
readonly staleMs?: number | undefined;
|
|
23
|
+
readonly adminLive?: boolean | undefined;
|
|
24
|
+
};
|
|
25
|
+
type RefreshStaleSlotsForExpansionParams = {
|
|
26
|
+
readonly nodeIds: readonly string[];
|
|
27
|
+
readonly edgeIds: readonly string[];
|
|
28
|
+
readonly staleMs?: number | undefined;
|
|
29
|
+
readonly adminLive?: boolean | undefined;
|
|
30
|
+
};
|
|
31
|
+
type SlotTargetParams = {
|
|
32
|
+
readonly targetType: SlotTargetType;
|
|
33
|
+
readonly targetId: string;
|
|
34
|
+
};
|
|
35
|
+
type AddSlotParams = SlotTargetParams & {
|
|
36
|
+
readonly slotName: string;
|
|
37
|
+
readonly queryId: string;
|
|
38
|
+
readonly methodology: string;
|
|
39
|
+
};
|
|
40
|
+
type SlotPathParams = SlotTargetParams & {
|
|
41
|
+
readonly slotName: string;
|
|
42
|
+
};
|
|
43
|
+
type ConvertSlotToFixedParams = SlotPathParams & {
|
|
44
|
+
readonly fixedValue: unknown;
|
|
45
|
+
readonly methodology?: string | undefined;
|
|
46
|
+
};
|
|
47
|
+
type SlotMethodologyParams = SlotPathParams & {
|
|
48
|
+
readonly methodology: string;
|
|
49
|
+
};
|
|
50
|
+
type OptionalSlotMethodologyParams = SlotPathParams & {
|
|
51
|
+
readonly methodology?: string | undefined;
|
|
52
|
+
};
|
|
53
|
+
type NodeReadParams = {
|
|
54
|
+
readonly nodeId: string;
|
|
55
|
+
readonly adminLive?: boolean | undefined;
|
|
56
|
+
};
|
|
57
|
+
type GetNodeParams = NodeReadParams & {
|
|
58
|
+
readonly versionOverride?: number | undefined;
|
|
59
|
+
};
|
|
60
|
+
type GetNodeByIdentityParams = {
|
|
61
|
+
readonly identityKey: string;
|
|
62
|
+
};
|
|
63
|
+
type TraversalParams = {
|
|
64
|
+
readonly nodeId: string;
|
|
65
|
+
readonly assetsDepth?: TraverseDepth | undefined;
|
|
66
|
+
readonly liabilitiesDepth?: TraverseDepth | undefined;
|
|
67
|
+
readonly skipRequery?: boolean | undefined;
|
|
68
|
+
readonly adminLive?: boolean | undefined;
|
|
69
|
+
};
|
|
70
|
+
type DirectionalTraversalParams = TraversalParams & {
|
|
71
|
+
readonly skipLiabilities?: boolean | undefined;
|
|
72
|
+
};
|
|
73
|
+
type StartResearchRunParams = {
|
|
74
|
+
readonly focalNodeId: string;
|
|
75
|
+
readonly triggeredBy?: string | undefined;
|
|
76
|
+
readonly sessionId?: string | undefined;
|
|
77
|
+
};
|
|
78
|
+
type ListResearchRunsParams = {
|
|
79
|
+
readonly tokenId: string;
|
|
80
|
+
readonly latest?: boolean | undefined;
|
|
81
|
+
};
|
|
82
|
+
type SubmitResearchGraphParams = {
|
|
83
|
+
readonly runId: string;
|
|
84
|
+
readonly graph: unknown;
|
|
85
|
+
readonly tools: readonly string[];
|
|
86
|
+
readonly status: "found" | "not_found";
|
|
87
|
+
};
|
|
88
|
+
type MarkResearchRunFailedParams = {
|
|
89
|
+
readonly runId: string;
|
|
90
|
+
readonly reason: string;
|
|
91
|
+
};
|
|
92
|
+
type AccountingCheckParams = {
|
|
93
|
+
readonly nodeId: string;
|
|
94
|
+
readonly tolerancePct?: number | undefined;
|
|
95
|
+
readonly breachPct?: number | undefined;
|
|
96
|
+
readonly toleranceUsd?: number | undefined;
|
|
97
|
+
readonly breachUsd?: number | undefined;
|
|
98
|
+
};
|
|
99
|
+
type AccountingCheckNodesParams = Omit<AccountingCheckParams, "nodeId"> & {
|
|
100
|
+
readonly nodeIds: readonly string[];
|
|
101
|
+
};
|
|
102
|
+
type RegisterTokenParams = {
|
|
103
|
+
readonly symbol: string;
|
|
104
|
+
readonly chain: string;
|
|
105
|
+
readonly address: string;
|
|
106
|
+
};
|
|
107
|
+
type ChainAddressParams = {
|
|
108
|
+
readonly chain: string;
|
|
109
|
+
readonly address: string;
|
|
110
|
+
};
|
|
111
|
+
type ListCuratedTokensParams = {
|
|
112
|
+
readonly include?: "metrics" | undefined;
|
|
113
|
+
readonly chain?: string | undefined;
|
|
114
|
+
readonly address?: string | undefined;
|
|
115
|
+
};
|
|
116
|
+
type SetPrimaryTokenParams = {
|
|
117
|
+
readonly nodeId: string;
|
|
118
|
+
readonly primaryTokenId?: string | undefined;
|
|
119
|
+
};
|
|
120
|
+
type SetCuratedParams = {
|
|
121
|
+
readonly nodeId: string;
|
|
122
|
+
readonly curated: boolean;
|
|
123
|
+
};
|
|
124
|
+
type CreateIssuerParams = {
|
|
125
|
+
readonly slug: string;
|
|
126
|
+
readonly name: string;
|
|
127
|
+
readonly shortName: string;
|
|
128
|
+
readonly logoUrl?: string | undefined;
|
|
129
|
+
readonly description?: string | undefined;
|
|
130
|
+
readonly website?: string | undefined;
|
|
131
|
+
};
|
|
132
|
+
type UpdateIssuerParams = {
|
|
133
|
+
readonly slug: string;
|
|
134
|
+
readonly name?: string | undefined;
|
|
135
|
+
readonly shortName?: string | undefined;
|
|
136
|
+
readonly logoUrl?: string | undefined;
|
|
137
|
+
readonly description?: string | undefined;
|
|
138
|
+
readonly website?: string | undefined;
|
|
139
|
+
};
|
|
140
|
+
type AddIssuerTokenParams = {
|
|
141
|
+
readonly slug: string;
|
|
142
|
+
readonly nodeId: string;
|
|
143
|
+
readonly order: number;
|
|
144
|
+
};
|
|
145
|
+
type IssuerTokensParams = {
|
|
146
|
+
readonly slug: string;
|
|
147
|
+
readonly include?: "metrics" | undefined;
|
|
148
|
+
};
|
|
149
|
+
type LogoBatchParams = {
|
|
150
|
+
readonly chain: string;
|
|
151
|
+
readonly addresses: readonly string[];
|
|
152
|
+
};
|
|
153
|
+
type SetLogoParams = {
|
|
154
|
+
readonly nodeId: string;
|
|
155
|
+
readonly logoUrl: string | null;
|
|
156
|
+
};
|
|
157
|
+
type TokenMetricsRefreshParams = {
|
|
158
|
+
readonly nodeId: string;
|
|
159
|
+
readonly side?: "assets" | "liabilities" | undefined;
|
|
160
|
+
readonly maxAgeMs?: number | undefined;
|
|
161
|
+
};
|
|
162
|
+
type RefreshAllCuratedMetricsParams = {
|
|
163
|
+
readonly staleMs?: number | undefined;
|
|
164
|
+
readonly adminLive?: boolean | undefined;
|
|
165
|
+
readonly pollIntervalMs?: number | undefined;
|
|
166
|
+
readonly maxPollAttempts?: number | undefined;
|
|
167
|
+
readonly limit?: number | undefined;
|
|
168
|
+
};
|
|
169
|
+
type UpsertSideMetricsParams = {
|
|
170
|
+
readonly nodeId: string;
|
|
171
|
+
readonly side: "assets" | "liabilities";
|
|
172
|
+
readonly metrics: unknown;
|
|
173
|
+
readonly reason?: string | undefined;
|
|
174
|
+
};
|
|
175
|
+
type VersionReviewParams = {
|
|
176
|
+
readonly target: GraphVersionTarget;
|
|
177
|
+
readonly versionId: string;
|
|
178
|
+
readonly notes?: string | undefined;
|
|
179
|
+
};
|
|
180
|
+
type BulkVersionReviewParams = {
|
|
181
|
+
readonly target: GraphVersionTarget;
|
|
182
|
+
readonly versionIds: readonly string[];
|
|
183
|
+
readonly notes?: string | undefined;
|
|
184
|
+
};
|
|
185
|
+
//#endregion
|
|
186
|
+
export { 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, RefreshAllCuratedMetricsParams, RefreshStaleSlotsForExpansionParams, RefreshStaleSlotsForNodeParams, RegisterTokenParams, SetCuratedParams, SetLogoParams, SetPrimaryTokenParams, SlotMethodologyParams, SlotPathParams, SlotTargetParams, SlotTargetType, SlotTargetTypeSchema, StartResearchRunParams, SubmitResearchGraphParams, TokenMetricsRefreshParams, TraversalParams, TraverseDepth, TraverseDepthSchema, UpdateIssuerParams, UpsertSideMetricsParams, VersionReviewParams };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
|
|
3
|
+
//#region src/schemas/doubleclick.ts
|
|
4
|
+
const DoubleClickJsonResponseSchema = Schema.Unknown;
|
|
5
|
+
const IntegrityCheckKeySchema = Schema.Literals([
|
|
6
|
+
"schema-defects",
|
|
7
|
+
"stale-queries",
|
|
8
|
+
"fixed-slot-shape-defects",
|
|
9
|
+
"dangling-underlying-keys",
|
|
10
|
+
"version-pointer-defects",
|
|
11
|
+
"entity-reference-defects",
|
|
12
|
+
"duplicate-edges",
|
|
13
|
+
"base-query-id-defects",
|
|
14
|
+
"live-param-query-usage",
|
|
15
|
+
"live-slots-bad-bases"
|
|
16
|
+
]);
|
|
17
|
+
const SlotTargetTypeSchema = Schema.Literals(["node", "edge"]);
|
|
18
|
+
const TraverseDepthSchema = Schema.Union([Schema.Number, Schema.Literal("full")]);
|
|
19
|
+
const GraphVersionTargetSchema = Schema.Literals(["node", "edge"]);
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
export { DoubleClickJsonResponseSchema, GraphVersionTargetSchema, IntegrityCheckKeySchema, SlotTargetTypeSchema, TraverseDepthSchema };
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { ServiceError } from "../errors.js";
|
|
2
|
+
import { AccountingCheckNodesParams, AccountingCheckParams, AddIssuerTokenParams, AddSlotParams, BulkVersionReviewParams, ChainAddressParams, ConvertSlotToFixedParams, CreateIssuerParams, DirectionalTraversalParams, DoubleClickJsonResponse, GetNodeByIdentityParams, GetNodeParams, IncludeDraftsParams, IntegrityCheckParams, IssuerTokensParams, ListCuratedTokensParams, ListResearchRunsParams, LogoBatchParams, MarkResearchRunFailedParams, NodeReadParams, OptionalSlotMethodologyParams, RefreshAllCuratedMetricsParams, RefreshStaleSlotsForExpansionParams, RefreshStaleSlotsForNodeParams, RegisterTokenParams, SetCuratedParams, SetLogoParams, SetPrimaryTokenParams, SlotMethodologyParams, SlotPathParams, StartResearchRunParams, SubmitResearchGraphParams, TokenMetricsRefreshParams, TraversalParams, UpdateIssuerParams, UpsertSideMetricsParams, VersionReviewParams } from "../schemas/doubleclick.js";
|
|
3
|
+
import { Context, Effect } from "effect";
|
|
4
|
+
|
|
5
|
+
//#region src/services/DoubleClickService.d.ts
|
|
6
|
+
declare const DoubleClickService_base: Context.ServiceClass<DoubleClickService, "DoubleClickService", {
|
|
7
|
+
readonly integritySummary: (params?: IncludeDraftsParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
|
|
8
|
+
readonly integrityCheck: (params: IntegrityCheckParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
|
|
9
|
+
readonly refreshStaleSlotsForNode: (params: RefreshStaleSlotsForNodeParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
|
|
10
|
+
readonly refreshStaleSlotsForExpansion: (params: RefreshStaleSlotsForExpansionParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
|
|
11
|
+
readonly addSlot: (params: AddSlotParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
|
|
12
|
+
readonly removeSlot: (params: SlotPathParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
|
|
13
|
+
readonly convertSlotToFixed: (params: ConvertSlotToFixedParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
|
|
14
|
+
readonly convertSlotToNotPriced: (params: OptionalSlotMethodologyParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
|
|
15
|
+
readonly setSlotMethodology: (params: SlotMethodologyParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
|
|
16
|
+
readonly getNode: (params: GetNodeParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
|
|
17
|
+
readonly getNodeByIdentity: (params: GetNodeByIdentityParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
|
|
18
|
+
readonly getAssembledNode: (params: NodeReadParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
|
|
19
|
+
readonly getNodeWithCounts: (params: NodeReadParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
|
|
20
|
+
readonly listEdgesForNode: (params: NodeReadParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
|
|
21
|
+
readonly traverseDirectional: (params: DirectionalTraversalParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
|
|
22
|
+
readonly traverseDeep: (params: TraversalParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
|
|
23
|
+
readonly listResearchRuns: (params: ListResearchRunsParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
|
|
24
|
+
readonly listRecentResearchRuns: Effect.Effect<DoubleClickJsonResponse, ServiceError>;
|
|
25
|
+
readonly listRecentResearchRunsWithStats: Effect.Effect<DoubleClickJsonResponse, ServiceError>;
|
|
26
|
+
readonly getResearchRun: (runId: string) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
|
|
27
|
+
readonly getResearchRunWithPins: (runId: string) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
|
|
28
|
+
readonly listResearchRunFindings: (runId: string) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
|
|
29
|
+
readonly startResearchRun: (params: StartResearchRunParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
|
|
30
|
+
readonly submitResearchGraph: (params: SubmitResearchGraphParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
|
|
31
|
+
readonly markResearchRunCompleted: (runId: string) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
|
|
32
|
+
readonly markResearchRunFailed: (params: MarkResearchRunFailedParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
|
|
33
|
+
readonly approveVersion: (params: VersionReviewParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
|
|
34
|
+
readonly revertVersionToDraft: (params: VersionReviewParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
|
|
35
|
+
readonly bulkApproveVersions: (params: BulkVersionReviewParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
|
|
36
|
+
readonly bulkRejectVersions: (params: BulkVersionReviewParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
|
|
37
|
+
readonly runAccountingCheckForNode: (params: AccountingCheckParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
|
|
38
|
+
readonly runAccountingCheckForNodes: (params: AccountingCheckNodesParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
|
|
39
|
+
readonly listCuratedTokens: (params?: ListCuratedTokensParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
|
|
40
|
+
readonly getTokenByChainAndAddress: (params: ChainAddressParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
|
|
41
|
+
readonly registerToken: (params: RegisterTokenParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
|
|
42
|
+
readonly setPrimaryToken: (params: SetPrimaryTokenParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
|
|
43
|
+
readonly setCurated: (params: SetCuratedParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
|
|
44
|
+
readonly getTokenMetrics: (nodeId: string) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
|
|
45
|
+
readonly getTokenMetricsBatch: (nodeIds: readonly string[]) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
|
|
46
|
+
readonly refreshTokenMetrics: (params: TokenMetricsRefreshParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
|
|
47
|
+
readonly refreshAllCuratedMetrics: (params?: RefreshAllCuratedMetricsParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
|
|
48
|
+
readonly upsertSideMetrics: (params: UpsertSideMetricsParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
|
|
49
|
+
readonly listIssuers: Effect.Effect<DoubleClickJsonResponse, ServiceError>;
|
|
50
|
+
readonly getIssuer: (slug: string) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
|
|
51
|
+
readonly listIssuerTokens: (params: IssuerTokensParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
|
|
52
|
+
readonly createIssuer: (params: CreateIssuerParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
|
|
53
|
+
readonly updateIssuer: (params: UpdateIssuerParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
|
|
54
|
+
readonly addIssuerToken: (params: AddIssuerTokenParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
|
|
55
|
+
readonly listIssuerTokenLinks: Effect.Effect<DoubleClickJsonResponse, ServiceError>;
|
|
56
|
+
readonly getLogo: (params: ChainAddressParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
|
|
57
|
+
readonly getLogoBatch: (params: LogoBatchParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
|
|
58
|
+
readonly getLogoBatchMap: (params: LogoBatchParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
|
|
59
|
+
readonly setLogo: (params: SetLogoParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
|
|
60
|
+
}>;
|
|
61
|
+
declare class DoubleClickService extends DoubleClickService_base {}
|
|
62
|
+
//#endregion
|
|
63
|
+
export { DoubleClickService };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@herd-labs/sdk",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"postpack": "bun ./scripts/restore-publish.ts",
|
|
25
25
|
"release": "echo 'Use the GitHub Actions workflow: Actions → Release: SDK → Run workflow'",
|
|
26
26
|
"tsc": "tsgo --noEmit",
|
|
27
|
-
"check": "ultracite check",
|
|
27
|
+
"check": "ultracite check --deny-warnings",
|
|
28
28
|
"fix": "ultracite fix"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|