@herd-labs/sdk 0.5.0 → 0.5.2

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 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, CreateParamQueryParams, DirectionalTraversalParams, DoubleClickJsonResponse, DoubleClickJsonResponseSchema, ExecuteManyParamQueriesParams, ExecuteParamQueryParams, GetNodeByIdentityParams, GetNodeParams, GraphVersionTarget, GraphVersionTargetSchema, IncludeDraftsParams, IntegrityCheckKey, IntegrityCheckKeySchema, IntegrityCheckParams, IssuerTokensParams, ListCuratedTokensParams, ListResearchRunsParams, LogoBatchParams, MarkResearchRunFailedParams, NodeReadParams, OptionalSlotMethodologyParams, ParamQueryOutputType, ParamQueryOutputTypeSchema, RefreshAllTokensParams, RefreshSingleTokenParams, RefreshStaleSlotsForExpansionParams, RefreshStaleSlotsForNodeParams, RegisterTokenParams, SetCuratedParams, SetLogoParams, SetPrimaryTokenParams, SlotMethodologyParams, SlotPathParams, SlotTargetType, SlotTargetTypeSchema, StartResearchRunParams, SubmitResearchGraphParams, 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 CreateParamQueryParams, 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 ExecuteManyParamQueriesParams, type ExecuteParamQueryParams, 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 ParamQueryOutputType, ParamQueryOutputTypeSchema, 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 RefreshAllTokensParams, type RefreshSingleTokenParams, 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 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, ParamQueryOutputTypeSchema, 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, ParamQueryOutputTypeSchema, 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 effect_unstable_http_HttpClient3 from "effect/unstable/http/HttpClient";
4
+ import * as effect_unstable_http_HttpClient8 from "effect/unstable/http/HttpClient";
5
5
 
6
6
  //#region src/live/ActionsServiceLive.d.ts
7
- declare const ActionsServiceLive: Layer.Layer<ActionsService, never, HerdConfigService | effect_unstable_http_HttpClient3.HttpClient>;
7
+ declare const ActionsServiceLive: Layer.Layer<ActionsService, never, HerdConfigService | effect_unstable_http_HttpClient8.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 effect_unstable_http_HttpClient4 from "effect/unstable/http/HttpClient";
4
+ import * as effect_unstable_http_HttpClient1 from "effect/unstable/http/HttpClient";
5
5
 
6
6
  //#region src/live/AdaptersServiceLive.d.ts
7
- declare const AdaptersServiceLive: Layer.Layer<AdaptersService, never, HerdConfigService | effect_unstable_http_HttpClient4.HttpClient>;
7
+ declare const AdaptersServiceLive: Layer.Layer<AdaptersService, never, HerdConfigService | effect_unstable_http_HttpClient1.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 effect_unstable_http_HttpClient6 from "effect/unstable/http/HttpClient";
4
+ import * as effect_unstable_http_HttpClient0 from "effect/unstable/http/HttpClient";
5
5
 
6
6
  //#region src/live/AgentSafesServiceLive.d.ts
7
- declare const AgentSafesServiceLive: Layer.Layer<AgentSafesService, never, HerdConfigService | effect_unstable_http_HttpClient6.HttpClient>;
7
+ declare const AgentSafesServiceLive: Layer.Layer<AgentSafesService, never, HerdConfigService | effect_unstable_http_HttpClient0.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 effect_unstable_http_HttpClient0 from "effect/unstable/http/HttpClient";
4
+ import * as effect_unstable_http_HttpClient3 from "effect/unstable/http/HttpClient";
5
5
 
6
6
  //#region src/live/AgentWalletsServiceLive.d.ts
7
- declare const AgentWalletsServiceLive: Layer.Layer<AgentWalletsService, never, HerdConfigService | effect_unstable_http_HttpClient0.HttpClient>;
7
+ declare const AgentWalletsServiceLive: Layer.Layer<AgentWalletsService, never, HerdConfigService | effect_unstable_http_HttpClient3.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 effect_unstable_http_HttpClient8 from "effect/unstable/http/HttpClient";
4
+ import * as effect_unstable_http_HttpClient7 from "effect/unstable/http/HttpClient";
5
5
 
6
6
  //#region src/live/AgentWorkflowsServiceLive.d.ts
7
- declare const AgentWorkflowsServiceLive: Layer.Layer<AgentWorkflowsService, never, HerdConfigService | effect_unstable_http_HttpClient8.HttpClient>;
7
+ declare const AgentWorkflowsServiceLive: Layer.Layer<AgentWorkflowsService, never, HerdConfigService | effect_unstable_http_HttpClient7.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 effect_unstable_http_HttpClient7 from "effect/unstable/http/HttpClient";
4
+ import * as effect_unstable_http_HttpClient2 from "effect/unstable/http/HttpClient";
5
5
 
6
6
  //#region src/live/AuthServiceLive.d.ts
7
- declare const AuthServiceLive: Layer.Layer<AuthService, never, HerdConfigService | effect_unstable_http_HttpClient7.HttpClient>;
7
+ declare const AuthServiceLive: Layer.Layer<AuthService, never, HerdConfigService | effect_unstable_http_HttpClient2.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 effect_unstable_http_HttpClient1 from "effect/unstable/http/HttpClient";
4
+ import * as effect_unstable_http_HttpClient4 from "effect/unstable/http/HttpClient";
5
5
 
6
6
  //#region src/live/BookmarksServiceLive.d.ts
7
- declare const BookmarksServiceLive: Layer.Layer<BookmarksService, never, HerdConfigService | effect_unstable_http_HttpClient1.HttpClient>;
7
+ declare const BookmarksServiceLive: Layer.Layer<BookmarksService, never, HerdConfigService | effect_unstable_http_HttpClient4.HttpClient>;
8
8
  //#endregion
9
9
  export { BookmarksServiceLive };
@@ -1,9 +1,9 @@
1
1
  import { HerdConfigService } from "../config.js";
2
2
  import { CodeBlocksService } from "../services/CodeBlocksService.js";
3
3
  import { Layer } from "effect";
4
- import * as effect_unstable_http_HttpClient2 from "effect/unstable/http/HttpClient";
4
+ import * as effect_unstable_http_HttpClient6 from "effect/unstable/http/HttpClient";
5
5
 
6
6
  //#region src/live/CodeBlocksServiceLive.d.ts
7
- declare const CodeBlocksServiceLive: Layer.Layer<CodeBlocksService, never, HerdConfigService | effect_unstable_http_HttpClient2.HttpClient>;
7
+ declare const CodeBlocksServiceLive: Layer.Layer<CodeBlocksService, never, HerdConfigService | effect_unstable_http_HttpClient6.HttpClient>;
8
8
  //#endregion
9
9
  export { CodeBlocksServiceLive };
@@ -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 effect_unstable_http_HttpClient0 from "effect/unstable/http/HttpClient";
4
+ import * as effect_unstable_http_HttpClient5 from "effect/unstable/http/HttpClient";
5
5
 
6
6
  //#region src/live/CollectionsServiceLive.d.ts
7
- declare const CollectionsServiceLive: Layer.Layer<CollectionsService, never, HerdConfigService | effect_unstable_http_HttpClient0.HttpClient>;
7
+ declare const CollectionsServiceLive: Layer.Layer<CollectionsService, never, HerdConfigService | effect_unstable_http_HttpClient5.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 effect_unstable_http_HttpClient13 from "effect/unstable/http/HttpClient";
4
+ import * as effect_unstable_http_HttpClient0 from "effect/unstable/http/HttpClient";
5
5
 
6
6
  //#region src/live/ContractsServiceLive.d.ts
7
- declare const ContractsServiceLive: Layer.Layer<ContractsService, never, HerdConfigService | effect_unstable_http_HttpClient13.HttpClient>;
7
+ declare const ContractsServiceLive: Layer.Layer<ContractsService, never, HerdConfigService | effect_unstable_http_HttpClient0.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 effect_unstable_http_HttpClient10 from "effect/unstable/http/HttpClient";
4
+ import * as effect_unstable_http_HttpClient14 from "effect/unstable/http/HttpClient";
5
5
 
6
6
  //#region src/live/DocsServiceLive.d.ts
7
- declare const DocsServiceLive: Layer.Layer<DocsService, never, HerdConfigService | effect_unstable_http_HttpClient10.HttpClient>;
7
+ declare const DocsServiceLive: Layer.Layer<DocsService, never, HerdConfigService | effect_unstable_http_HttpClient14.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_HttpClient12 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_HttpClient12.HttpClient>;
8
+ //#endregion
9
+ export { DoubleClickServiceLive };
@@ -0,0 +1,128 @@
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
+ createParamQuery: (params) => postJson("/v1/param-queries/", params, "Failed to create param query"),
45
+ executeParamQuery: (params) => postJson(`/v1/param-queries/${params.queryId}/execute`, {
46
+ existingRunId: params.existingRunId,
47
+ slotName: params.slotName,
48
+ targetId: params.targetId,
49
+ targetType: params.targetType
50
+ }, "Failed to execute param query"),
51
+ executeManyParamQueries: (params) => postJson("/v1/param-queries/execute-many", params, "Failed to execute param queries"),
52
+ repointParamQueryToLatest: (params) => postJson(`/v1/param-queries/${params.oldQueryId}/repoint-to-latest`, {
53
+ description: params.description,
54
+ name: params.name,
55
+ newBase: params.newBase,
56
+ retireReason: params.retireReason,
57
+ targets: params.targets
58
+ }, "Failed to repoint param query to latest base"),
59
+ getAssembledNode: (params) => getJson(`/v1/balance-graph/nodes/${params.nodeId}/assembled`, void 0, "Failed to get assembled node"),
60
+ getIssuer: (slug) => getJson(`/v1/display-tokens/issuers/${slug}`, void 0, "Failed to get issuer"),
61
+ getLogo: (params) => getJson("/v1/display-tokens/logos", params, "Failed to get logo"),
62
+ getLogoBatch: (params) => postJson("/v1/display-tokens/logos/batch", params, "Failed to get logo batch"),
63
+ getLogoBatchMap: (params) => postJson("/v1/display-tokens/logos/batch-map", params, "Failed to get logo batch map"),
64
+ getNode: (params) => getJson(`/v1/balance-graph/nodes/${params.nodeId}`, {
65
+ versionOverride: params.versionOverride,
66
+ adminLive: params.adminLive
67
+ }, "Failed to get graph node"),
68
+ getNodeByIdentity: (params) => getJson("/v1/balance-graph/nodes", { identityKey: params.identityKey }, "Failed to get graph node by identity"),
69
+ getNodeWithCounts: (params) => getJson(`/v1/balance-graph/nodes/${params.nodeId}/with-counts`, { adminLive: params.adminLive }, "Failed to get graph node with counts"),
70
+ getResearchRun: (runId) => getJson(`/v1/balance-graph-research/runs/${runId}`, void 0, "Failed to get research run"),
71
+ getResearchRunWithPins: (runId) => getJson(`/v1/balance-graph-research/runs/${runId}/with-pins`, void 0, "Failed to get research run pins"),
72
+ getTokenByChainAndAddress: (params) => getJson("/v1/display-tokens/tokens", params, "Failed to get token"),
73
+ getTokenMetrics: (nodeId) => getJson(`/v1/display-tokens/tokens/${nodeId}/metrics`, void 0, "Failed to get token metrics"),
74
+ getTokenMetricsBatch: (nodeIds) => postJson("/v1/display-tokens/tokens/metrics/batch", { tokenNodeIds: nodeIds }, "Failed to get token metrics"),
75
+ integrityCheck: (params) => getJson(`/v1/integrity/${params.key}`, { includeDrafts: params.includeDrafts }, "Failed to run integrity check"),
76
+ integritySummary: (params) => getJson("/v1/integrity/summary", { includeDrafts: params?.includeDrafts }, "Failed to get integrity summary"),
77
+ listCuratedTokens: (params) => getJson("/v1/display-tokens/curated", params, "Failed to list curated tokens"),
78
+ listEdgesForNode: (params) => getJson(`/v1/balance-graph/nodes/${params.nodeId}/edges`, { adminLive: params.adminLive }, "Failed to list graph node edges"),
79
+ listIssuerTokenLinks: getJson("/v1/display-tokens/issuer-token-links", void 0, "Failed to list issuer token links"),
80
+ listIssuerTokens: (params) => getJson(`/v1/display-tokens/issuers/${params.slug}/tokens`, { include: params.include }, "Failed to list issuer tokens"),
81
+ listIssuers: getJson("/v1/display-tokens/issuers", void 0, "Failed to list issuers"),
82
+ listRecentResearchRuns: getJson("/v1/balance-graph-research/runs/recent", void 0, "Failed to list recent research runs"),
83
+ listRecentResearchRunsWithStats: getJson("/v1/balance-graph-research/runs/recent-with-stats", void 0, "Failed to list recent research runs with stats"),
84
+ listResearchRunFindings: (runId) => getJson(`/v1/balance-graph-research/runs/${runId}/findings`, void 0, "Failed to list research findings"),
85
+ listResearchRuns: (params) => getJson("/v1/balance-graph-research/runs", params, "Failed to list research runs"),
86
+ markResearchRunCompleted: (runId) => postJson(`/v1/balance-graph-research/runs/${runId}/mark-completed`, {}, "Failed to mark research run complete"),
87
+ markResearchRunFailed: (params) => postJson(`/v1/balance-graph-research/runs/${params.runId}/mark-failed`, { reason: params.reason }, "Failed to mark research run failed"),
88
+ refreshAllTokens: (params = {}) => postJson("/v1/display-tokens/tokens/refresh-all", params, "Failed to refresh all tokens"),
89
+ refreshStaleSlotsForExpansion: (params) => postJson("/v1/param-queries/refresh-stale-slots/expansion", params, "Failed to refresh expansion slots"),
90
+ refreshStaleSlotsForNode: (params) => postJson(`/v1/param-queries/nodes/${params.nodeId}/refresh-stale-slots`, {
91
+ staleMs: params.staleMs,
92
+ adminLive: params.adminLive
93
+ }, "Failed to refresh node slots"),
94
+ refreshSingleToken: (params) => postJsonQuery(`/v1/display-tokens/tokens/${params.nodeId}/refresh`, {
95
+ side: params.side,
96
+ maxAgeMs: params.maxAgeMs
97
+ }, {}, "Failed to refresh token"),
98
+ registerToken: (params) => postJson("/v1/display-tokens/register", params, "Failed to register token"),
99
+ removeSlot: (params) => deleteJson(`/v1/param-queries/slots/${params.targetType}/${params.targetId}/${params.slotName}`, "Failed to remove slot"),
100
+ revertVersionToDraft: (params) => patchJson(`${reviewPath(params.target)}/${params.versionId}/revert-to-draft`, {}, "Failed to revert graph version to draft"),
101
+ runAccountingCheckForNode: (params) => postJson("/v1/accounting-checks/node", params, "Failed to run accounting check"),
102
+ runAccountingCheckForNodes: (params) => postJson("/v1/accounting-checks/nodes", params, "Failed to run accounting checks"),
103
+ setCurated: (params) => patchJson(`/v1/display-tokens/${params.nodeId}/curated`, { curated: params.curated }, "Failed to set curated"),
104
+ setLogo: (params) => patchJson(`/v1/balance-graph/nodes/${params.nodeId}/logo`, { logoUrl: params.logoUrl }, "Failed to set logo"),
105
+ setPrimaryToken: (params) => postJson(`/v1/display-tokens/${params.nodeId}/set-primary`, { primaryTokenId: params.primaryTokenId }, "Failed to set primary token"),
106
+ setSlotMethodology: (params) => patchJson(`/v1/param-queries/slots/${params.targetType}/${params.targetId}/${params.slotName}/methodology`, { methodology: params.methodology }, "Failed to set slot methodology"),
107
+ startResearchRun: (params) => postJson("/v1/balance-graph-research/runs", params, "Failed to start research run"),
108
+ submitResearchGraph: (params) => postJson(`/v1/balance-graph-research/runs/${params.runId}/graph`, {
109
+ graph: params.graph,
110
+ tools: params.tools,
111
+ status: params.status
112
+ }, "Failed to submit research graph"),
113
+ traverseDeep: (params) => postJson("/v1/balance-graph/traversal/deep", params, "Failed to traverse graph"),
114
+ traverseDirectional: (params) => postJson("/v1/balance-graph/traversal/directional", params, "Failed to traverse directional graph"),
115
+ updateIssuer: (params) => {
116
+ const { slug, ...body } = params;
117
+ return patchJson(`/v1/display-tokens/issuers/${slug}`, body, "Failed to update issuer");
118
+ },
119
+ upsertSideMetrics: (params) => postJson(`/v1/display-tokens/tokens/${params.nodeId}/metrics/upsert-side`, {
120
+ side: params.side,
121
+ metrics: params.metrics,
122
+ reason: params.reason
123
+ }, "Failed to upsert token side metrics")
124
+ };
125
+ }));
126
+
127
+ //#endregion
128
+ 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 effect_unstable_http_HttpClient5 from "effect/unstable/http/HttpClient";
4
+ import * as effect_unstable_http_HttpClient11 from "effect/unstable/http/HttpClient";
5
5
 
6
6
  //#region src/live/GroupsServiceLive.d.ts
7
- declare const GroupsServiceLive: Layer.Layer<GroupsService, never, HerdConfigService | effect_unstable_http_HttpClient5.HttpClient>;
7
+ declare const GroupsServiceLive: Layer.Layer<GroupsService, never, HerdConfigService | effect_unstable_http_HttpClient11.HttpClient>;
8
8
  //#endregion
9
9
  export { GroupsServiceLive };
@@ -1,9 +1,9 @@
1
1
  import { HerdConfigService } from "../config.js";
2
2
  import { HalService } from "../services/HalService.js";
3
3
  import { Layer } from "effect";
4
- import * as effect_unstable_http_HttpClient11 from "effect/unstable/http/HttpClient";
4
+ import * as effect_unstable_http_HttpClient9 from "effect/unstable/http/HttpClient";
5
5
 
6
6
  //#region src/live/HalServiceLive.d.ts
7
- declare const HalServiceLive: Layer.Layer<HalService, never, HerdConfigService | effect_unstable_http_HttpClient11.HttpClient>;
7
+ declare const HalServiceLive: Layer.Layer<HalService, never, HerdConfigService | effect_unstable_http_HttpClient9.HttpClient>;
8
8
  //#endregion
9
9
  export { HalServiceLive };
@@ -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 effect_unstable_http_HttpClient12 from "effect/unstable/http/HttpClient";
4
+ import * as effect_unstable_http_HttpClient13 from "effect/unstable/http/HttpClient";
5
5
 
6
6
  //#region src/live/TransactionsServiceLive.d.ts
7
- declare const TransactionsServiceLive: Layer.Layer<TransactionsService, never, HerdConfigService | effect_unstable_http_HttpClient12.HttpClient>;
7
+ declare const TransactionsServiceLive: Layer.Layer<TransactionsService, never, HerdConfigService | effect_unstable_http_HttpClient13.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 effect_unstable_http_HttpClient9 from "effect/unstable/http/HttpClient";
4
+ import * as effect_unstable_http_HttpClient10 from "effect/unstable/http/HttpClient";
5
5
 
6
6
  //#region src/live/WalletsServiceLive.d.ts
7
- declare const WalletsServiceLive: Layer.Layer<WalletsService, never, HerdConfigService | effect_unstable_http_HttpClient9.HttpClient>;
7
+ declare const WalletsServiceLive: Layer.Layer<WalletsService, never, HerdConfigService | effect_unstable_http_HttpClient10.HttpClient>;
8
8
  //#endregion
9
9
  export { WalletsServiceLive };
@@ -0,0 +1,219 @@
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 ParamQueryOutputTypeSchema: Schema.Literals<readonly ["holding", "backing", "metric", "conversionRate", "conversionShare", "positionState"]>;
11
+ type ParamQueryOutputType = typeof ParamQueryOutputTypeSchema.Type;
12
+ declare const TraverseDepthSchema: Schema.Union<readonly [Schema.Number, Schema.Literal<"full">]>;
13
+ type TraverseDepth = typeof TraverseDepthSchema.Type;
14
+ declare const GraphVersionTargetSchema: Schema.Literals<readonly ["node", "edge"]>;
15
+ type GraphVersionTarget = typeof GraphVersionTargetSchema.Type;
16
+ type IncludeDraftsParams = {
17
+ readonly includeDrafts?: boolean | undefined;
18
+ };
19
+ type IntegrityCheckParams = IncludeDraftsParams & {
20
+ readonly key: IntegrityCheckKey;
21
+ };
22
+ type RefreshStaleSlotsForNodeParams = {
23
+ readonly nodeId: string;
24
+ readonly staleMs?: number | undefined;
25
+ readonly adminLive?: boolean | undefined;
26
+ };
27
+ type RefreshStaleSlotsForExpansionParams = {
28
+ readonly nodeIds: readonly string[];
29
+ readonly edgeIds: readonly string[];
30
+ readonly staleMs?: number | undefined;
31
+ readonly adminLive?: boolean | undefined;
32
+ };
33
+ type SlotTargetParams = {
34
+ readonly targetType: SlotTargetType;
35
+ readonly targetId: string;
36
+ };
37
+ type AddSlotParams = SlotTargetParams & {
38
+ readonly slotName: string;
39
+ readonly queryId: string;
40
+ readonly methodology: string;
41
+ };
42
+ type CreateParamQueryParams = {
43
+ readonly name: string;
44
+ readonly baseQueryId: string;
45
+ readonly params: Readonly<Record<string, unknown>>;
46
+ readonly outputType: ParamQueryOutputType;
47
+ readonly description: string;
48
+ };
49
+ type QueryType = "hal" | "code_block";
50
+ type RepointParamQueryTarget = SlotPathParams & {
51
+ readonly methodology?: string | undefined;
52
+ };
53
+ type RepointParamQueryToLatestParams = {
54
+ readonly oldQueryId: string;
55
+ readonly newBase: {
56
+ readonly queryType: QueryType;
57
+ readonly definitionId: string;
58
+ readonly versionId: string;
59
+ readonly description?: string | undefined;
60
+ };
61
+ readonly targets: readonly RepointParamQueryTarget[];
62
+ readonly name?: string | undefined;
63
+ readonly description?: string | undefined;
64
+ readonly retireReason?: string | undefined;
65
+ };
66
+ type ExecuteParamQueryParams = SlotTargetParams & {
67
+ readonly slotName: string;
68
+ readonly queryId: string;
69
+ readonly existingRunId?: string | undefined;
70
+ };
71
+ type ExecuteManyParamQueriesParams = {
72
+ readonly paramQueries: readonly ExecuteParamQueryParams[];
73
+ readonly concurrency?: number | undefined;
74
+ };
75
+ type SlotPathParams = SlotTargetParams & {
76
+ readonly slotName: string;
77
+ };
78
+ type ConvertSlotToFixedParams = SlotPathParams & {
79
+ readonly fixedValue: unknown;
80
+ readonly methodology?: string | undefined;
81
+ };
82
+ type SlotMethodologyParams = SlotPathParams & {
83
+ readonly methodology: string;
84
+ };
85
+ type OptionalSlotMethodologyParams = SlotPathParams & {
86
+ readonly methodology?: string | undefined;
87
+ };
88
+ type NodeReadParams = {
89
+ readonly nodeId: string;
90
+ readonly adminLive?: boolean | undefined;
91
+ };
92
+ type GetNodeParams = NodeReadParams & {
93
+ readonly versionOverride?: number | undefined;
94
+ };
95
+ type GetNodeByIdentityParams = {
96
+ readonly identityKey: string;
97
+ };
98
+ type TraversalParams = {
99
+ readonly nodeId: string;
100
+ readonly assetsDepth?: TraverseDepth | undefined;
101
+ readonly liabilitiesDepth?: TraverseDepth | undefined;
102
+ readonly skipRequery?: boolean | undefined;
103
+ readonly adminLive?: boolean | undefined;
104
+ };
105
+ type DirectionalTraversalParams = TraversalParams & {
106
+ readonly skipLiabilities?: boolean | undefined;
107
+ };
108
+ type StartResearchRunParams = {
109
+ readonly focalNodeId: string;
110
+ readonly triggeredBy?: string | undefined;
111
+ readonly sessionId?: string | undefined;
112
+ };
113
+ type ListResearchRunsParams = {
114
+ readonly tokenId: string;
115
+ readonly latest?: boolean | undefined;
116
+ };
117
+ type SubmitResearchGraphParams = {
118
+ readonly runId: string;
119
+ readonly graph: unknown;
120
+ readonly tools: readonly string[];
121
+ readonly status: "found" | "not_found";
122
+ };
123
+ type MarkResearchRunFailedParams = {
124
+ readonly runId: string;
125
+ readonly reason: string;
126
+ };
127
+ type AccountingCheckParams = {
128
+ readonly nodeId: string;
129
+ readonly tolerancePct?: number | undefined;
130
+ readonly breachPct?: number | undefined;
131
+ readonly toleranceUsd?: number | undefined;
132
+ readonly breachUsd?: number | undefined;
133
+ };
134
+ type AccountingCheckNodesParams = Omit<AccountingCheckParams, "nodeId"> & {
135
+ readonly nodeIds: readonly string[];
136
+ };
137
+ type RegisterTokenParams = {
138
+ readonly symbol: string;
139
+ readonly chain: string;
140
+ readonly address: string;
141
+ };
142
+ type ChainAddressParams = {
143
+ readonly chain: string;
144
+ readonly address: string;
145
+ };
146
+ type ListCuratedTokensParams = {
147
+ readonly include?: "metrics" | undefined;
148
+ readonly chain?: string | undefined;
149
+ readonly address?: string | undefined;
150
+ };
151
+ type SetPrimaryTokenParams = {
152
+ readonly nodeId: string;
153
+ readonly primaryTokenId?: string | undefined;
154
+ };
155
+ type SetCuratedParams = {
156
+ readonly nodeId: string;
157
+ readonly curated: boolean;
158
+ };
159
+ type CreateIssuerParams = {
160
+ readonly slug: string;
161
+ readonly name: string;
162
+ readonly shortName: string;
163
+ readonly logoUrl?: string | undefined;
164
+ readonly description?: string | undefined;
165
+ readonly website?: string | undefined;
166
+ };
167
+ type UpdateIssuerParams = {
168
+ readonly slug: string;
169
+ readonly name?: string | undefined;
170
+ readonly shortName?: string | undefined;
171
+ readonly logoUrl?: string | undefined;
172
+ readonly description?: string | undefined;
173
+ readonly website?: string | undefined;
174
+ };
175
+ type AddIssuerTokenParams = {
176
+ readonly slug: string;
177
+ readonly nodeId: string;
178
+ readonly order: number;
179
+ };
180
+ type IssuerTokensParams = {
181
+ readonly slug: string;
182
+ readonly include?: "metrics" | undefined;
183
+ };
184
+ type LogoBatchParams = {
185
+ readonly chain: string;
186
+ readonly addresses: readonly string[];
187
+ };
188
+ type SetLogoParams = {
189
+ readonly nodeId: string;
190
+ readonly logoUrl: string | null;
191
+ };
192
+ type RefreshSingleTokenParams = {
193
+ readonly nodeId: string;
194
+ readonly side?: "assets" | "liabilities" | undefined;
195
+ readonly maxAgeMs?: number | undefined;
196
+ };
197
+ type RefreshAllTokensParams = {
198
+ readonly staleMs?: number | undefined;
199
+ readonly adminLive?: boolean | undefined;
200
+ readonly limit?: number | undefined;
201
+ };
202
+ type UpsertSideMetricsParams = {
203
+ readonly nodeId: string;
204
+ readonly side: "assets" | "liabilities";
205
+ readonly metrics: unknown;
206
+ readonly reason?: string | undefined;
207
+ };
208
+ type VersionReviewParams = {
209
+ readonly target: GraphVersionTarget;
210
+ readonly versionId: string;
211
+ readonly notes?: string | undefined;
212
+ };
213
+ type BulkVersionReviewParams = {
214
+ readonly target: GraphVersionTarget;
215
+ readonly versionIds: readonly string[];
216
+ readonly notes?: string | undefined;
217
+ };
218
+ //#endregion
219
+ export { AccountingCheckNodesParams, AccountingCheckParams, AddIssuerTokenParams, AddSlotParams, BulkVersionReviewParams, ChainAddressParams, ConvertSlotToFixedParams, CreateIssuerParams, CreateParamQueryParams, DirectionalTraversalParams, DoubleClickJsonResponse, DoubleClickJsonResponseSchema, ExecuteManyParamQueriesParams, ExecuteParamQueryParams, GetNodeByIdentityParams, GetNodeParams, GraphVersionTarget, GraphVersionTargetSchema, IncludeDraftsParams, IntegrityCheckKey, IntegrityCheckKeySchema, IntegrityCheckParams, IssuerTokensParams, ListCuratedTokensParams, ListResearchRunsParams, LogoBatchParams, MarkResearchRunFailedParams, NodeReadParams, OptionalSlotMethodologyParams, ParamQueryOutputType, ParamQueryOutputTypeSchema, QueryType, RefreshAllTokensParams, RefreshSingleTokenParams, RefreshStaleSlotsForExpansionParams, RefreshStaleSlotsForNodeParams, RegisterTokenParams, RepointParamQueryTarget, RepointParamQueryToLatestParams, SetCuratedParams, SetLogoParams, SetPrimaryTokenParams, SlotMethodologyParams, SlotPathParams, SlotTargetParams, SlotTargetType, SlotTargetTypeSchema, StartResearchRunParams, SubmitResearchGraphParams, TraversalParams, TraverseDepth, TraverseDepthSchema, UpdateIssuerParams, UpsertSideMetricsParams, VersionReviewParams };
@@ -0,0 +1,30 @@
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 ParamQueryOutputTypeSchema = Schema.Literals([
19
+ "holding",
20
+ "backing",
21
+ "metric",
22
+ "conversionRate",
23
+ "conversionShare",
24
+ "positionState"
25
+ ]);
26
+ const TraverseDepthSchema = Schema.Union([Schema.Number, Schema.Literal("full")]);
27
+ const GraphVersionTargetSchema = Schema.Literals(["node", "edge"]);
28
+
29
+ //#endregion
30
+ export { DoubleClickJsonResponseSchema, GraphVersionTargetSchema, IntegrityCheckKeySchema, ParamQueryOutputTypeSchema, SlotTargetTypeSchema, TraverseDepthSchema };
@@ -0,0 +1,67 @@
1
+ import { ServiceError } from "../errors.js";
2
+ import { AccountingCheckNodesParams, AccountingCheckParams, AddIssuerTokenParams, AddSlotParams, BulkVersionReviewParams, ChainAddressParams, ConvertSlotToFixedParams, CreateIssuerParams, CreateParamQueryParams, DirectionalTraversalParams, DoubleClickJsonResponse, ExecuteManyParamQueriesParams, ExecuteParamQueryParams, GetNodeByIdentityParams, GetNodeParams, IncludeDraftsParams, IntegrityCheckParams, IssuerTokensParams, ListCuratedTokensParams, ListResearchRunsParams, LogoBatchParams, MarkResearchRunFailedParams, NodeReadParams, OptionalSlotMethodologyParams, RefreshAllTokensParams, RefreshSingleTokenParams, RefreshStaleSlotsForExpansionParams, RefreshStaleSlotsForNodeParams, RegisterTokenParams, RepointParamQueryToLatestParams, SetCuratedParams, SetLogoParams, SetPrimaryTokenParams, SlotMethodologyParams, SlotPathParams, StartResearchRunParams, SubmitResearchGraphParams, 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 createParamQuery: (params: CreateParamQueryParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
12
+ readonly repointParamQueryToLatest: (params: RepointParamQueryToLatestParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
13
+ readonly executeParamQuery: (params: ExecuteParamQueryParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
14
+ readonly executeManyParamQueries: (params: ExecuteManyParamQueriesParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
15
+ readonly addSlot: (params: AddSlotParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
16
+ readonly removeSlot: (params: SlotPathParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
17
+ readonly convertSlotToFixed: (params: ConvertSlotToFixedParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
18
+ readonly convertSlotToNotPriced: (params: OptionalSlotMethodologyParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
19
+ readonly setSlotMethodology: (params: SlotMethodologyParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
20
+ readonly getNode: (params: GetNodeParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
21
+ readonly getNodeByIdentity: (params: GetNodeByIdentityParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
22
+ readonly getAssembledNode: (params: NodeReadParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
23
+ readonly getNodeWithCounts: (params: NodeReadParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
24
+ readonly listEdgesForNode: (params: NodeReadParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
25
+ readonly traverseDirectional: (params: DirectionalTraversalParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
26
+ readonly traverseDeep: (params: TraversalParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
27
+ readonly listResearchRuns: (params: ListResearchRunsParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
28
+ readonly listRecentResearchRuns: Effect.Effect<DoubleClickJsonResponse, ServiceError>;
29
+ readonly listRecentResearchRunsWithStats: Effect.Effect<DoubleClickJsonResponse, ServiceError>;
30
+ readonly getResearchRun: (runId: string) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
31
+ readonly getResearchRunWithPins: (runId: string) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
32
+ readonly listResearchRunFindings: (runId: string) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
33
+ readonly startResearchRun: (params: StartResearchRunParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
34
+ readonly submitResearchGraph: (params: SubmitResearchGraphParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
35
+ readonly markResearchRunCompleted: (runId: string) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
36
+ readonly markResearchRunFailed: (params: MarkResearchRunFailedParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
37
+ readonly approveVersion: (params: VersionReviewParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
38
+ readonly revertVersionToDraft: (params: VersionReviewParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
39
+ readonly bulkApproveVersions: (params: BulkVersionReviewParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
40
+ readonly bulkRejectVersions: (params: BulkVersionReviewParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
41
+ readonly runAccountingCheckForNode: (params: AccountingCheckParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
42
+ readonly runAccountingCheckForNodes: (params: AccountingCheckNodesParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
43
+ readonly listCuratedTokens: (params?: ListCuratedTokensParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
44
+ readonly getTokenByChainAndAddress: (params: ChainAddressParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
45
+ readonly registerToken: (params: RegisterTokenParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
46
+ readonly setPrimaryToken: (params: SetPrimaryTokenParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
47
+ readonly setCurated: (params: SetCuratedParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
48
+ readonly getTokenMetrics: (nodeId: string) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
49
+ readonly getTokenMetricsBatch: (nodeIds: readonly string[]) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
50
+ readonly refreshSingleToken: (params: RefreshSingleTokenParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
51
+ readonly refreshAllTokens: (params?: RefreshAllTokensParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
52
+ readonly upsertSideMetrics: (params: UpsertSideMetricsParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
53
+ readonly listIssuers: Effect.Effect<DoubleClickJsonResponse, ServiceError>;
54
+ readonly getIssuer: (slug: string) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
55
+ readonly listIssuerTokens: (params: IssuerTokensParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
56
+ readonly createIssuer: (params: CreateIssuerParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
57
+ readonly updateIssuer: (params: UpdateIssuerParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
58
+ readonly addIssuerToken: (params: AddIssuerTokenParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
59
+ readonly listIssuerTokenLinks: Effect.Effect<DoubleClickJsonResponse, ServiceError>;
60
+ readonly getLogo: (params: ChainAddressParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
61
+ readonly getLogoBatch: (params: LogoBatchParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
62
+ readonly getLogoBatchMap: (params: LogoBatchParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
63
+ readonly setLogo: (params: SetLogoParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
64
+ }>;
65
+ declare class DoubleClickService extends DoubleClickService_base {}
66
+ //#endregion
67
+ export { DoubleClickService };
@@ -0,0 +1,7 @@
1
+ import { Context } from "effect";
2
+
3
+ //#region src/services/DoubleClickService.ts
4
+ var DoubleClickService = class extends Context.Service()("DoubleClickService") {};
5
+
6
+ //#endregion
7
+ export { DoubleClickService };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@herd-labs/sdk",
3
- "version": "0.5.0",
3
+ "version": "0.5.2",
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": {