@herd-labs/sdk 0.5.2 → 0.5.3
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/src/errors.js +1 -1
- package/dist/src/live/ActionsServiceLive.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/CodeBlocksServiceLive.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.js +13 -2
- package/dist/src/live/GroupsServiceLive.d.ts +2 -2
- package/dist/src/live/HalServiceLive.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/actions.d.ts +4 -4
- package/dist/src/schemas/actions.js +3 -3
- package/dist/src/schemas/agent-wallets.d.ts +6 -6
- package/dist/src/schemas/agent-wallets.js +1 -1
- package/dist/src/schemas/auth.d.ts +1 -1
- package/dist/src/schemas/auth.js +1 -1
- package/dist/src/schemas/bookmarks.d.ts +4 -4
- package/dist/src/schemas/codeblocks.d.ts +2 -2
- package/dist/src/schemas/codeblocks.js +2 -2
- package/dist/src/schemas/collections.d.ts +3 -3
- package/dist/src/schemas/collections.js +3 -3
- package/dist/src/schemas/common.d.ts +6 -6
- package/dist/src/schemas/common.js +12 -6
- package/dist/src/schemas/contracts.d.ts +55 -55
- package/dist/src/schemas/contracts.js +21 -21
- package/dist/src/schemas/doubleclick.d.ts +16 -3
- package/dist/src/schemas/doubleclick.js +2 -1
- package/dist/src/schemas/groups.d.ts +7 -7
- package/dist/src/schemas/groups.js +5 -5
- package/dist/src/schemas/hal.d.ts +16 -16
- package/dist/src/schemas/hal.js +5 -5
- package/dist/src/schemas/transactions.d.ts +145 -145
- package/dist/src/schemas/transactions.js +52 -52
- package/dist/src/schemas/wallets.d.ts +137 -137
- package/dist/src/schemas/wallets.js +51 -51
- package/dist/src/services/DoubleClickService.d.ts +7 -1
- package/package.json +3 -3
|
@@ -4,11 +4,11 @@ import { Schema } from "effect";
|
|
|
4
4
|
//#region src/schemas/wallets.ts
|
|
5
5
|
const WalletBalanceSchema = Schema.Struct({
|
|
6
6
|
address: Schema.String,
|
|
7
|
-
amount: Schema.Union([Schema.String, Schema.
|
|
8
|
-
decimals: Schema.NullOr(Schema.
|
|
7
|
+
amount: Schema.Union([Schema.String, Schema.Finite]),
|
|
8
|
+
decimals: Schema.NullOr(Schema.Finite),
|
|
9
9
|
logoUrl: Schema.NullOr(Schema.String),
|
|
10
10
|
symbol: Schema.NullOr(Schema.String),
|
|
11
|
-
valueUsd: Schema.NullOr(Schema.
|
|
11
|
+
valueUsd: Schema.NullOr(Schema.Finite)
|
|
12
12
|
});
|
|
13
13
|
const Erc7702DelegationSchema = Schema.Struct({
|
|
14
14
|
address: Schema.String,
|
|
@@ -20,11 +20,11 @@ const MultisigSignerSchema = Schema.Struct({
|
|
|
20
20
|
isContract: Schema.Boolean
|
|
21
21
|
});
|
|
22
22
|
const PendingTransactionSchema = Schema.Struct({
|
|
23
|
-
confirmationsReceived: Schema.optional(Schema.
|
|
24
|
-
confirmationsRequired: Schema.optional(Schema.
|
|
23
|
+
confirmationsReceived: Schema.optional(Schema.Finite),
|
|
24
|
+
confirmationsRequired: Schema.optional(Schema.Finite),
|
|
25
25
|
data: Schema.NullOr(Schema.String),
|
|
26
26
|
method: Schema.optional(Schema.NullOr(Schema.String)),
|
|
27
|
-
nonce: Schema.
|
|
27
|
+
nonce: Schema.Finite,
|
|
28
28
|
proposer: Schema.optional(Schema.NullOr(Schema.String)),
|
|
29
29
|
safeTxHash: Schema.String,
|
|
30
30
|
submissionDate: Schema.optional(Schema.String),
|
|
@@ -34,17 +34,17 @@ const PendingTransactionSchema = Schema.Struct({
|
|
|
34
34
|
const MultisigDetailsSchema = Schema.Struct({
|
|
35
35
|
pendingTransactions: Schema.Array(PendingTransactionSchema),
|
|
36
36
|
signers: Schema.Array(MultisigSignerSchema),
|
|
37
|
-
threshold: Schema.
|
|
37
|
+
threshold: Schema.Finite
|
|
38
38
|
});
|
|
39
39
|
const WalletOverviewSchema = Schema.Struct({
|
|
40
40
|
balances: Schema.Array(WalletBalanceSchema),
|
|
41
41
|
blockchain: BlockchainSchema,
|
|
42
|
-
earliestTx: Schema.NullOr(Schema.
|
|
42
|
+
earliestTx: Schema.NullOr(Schema.Finite),
|
|
43
43
|
erc7702Delegation: Schema.optional(Erc7702DelegationSchema),
|
|
44
44
|
implementationAddress: Schema.optional(Schema.String),
|
|
45
45
|
multisigDetails: Schema.optional(MultisigDetailsSchema),
|
|
46
|
-
totalDeployedContractsCount: Schema.
|
|
47
|
-
totalTransactionCount: Schema.
|
|
46
|
+
totalDeployedContractsCount: Schema.Finite,
|
|
47
|
+
totalTransactionCount: Schema.Finite,
|
|
48
48
|
walletAddress: Schema.String,
|
|
49
49
|
walletType: Schema.Literals([
|
|
50
50
|
"eoa",
|
|
@@ -61,7 +61,7 @@ const TokenTypeSchema = Schema.Literals([
|
|
|
61
61
|
]);
|
|
62
62
|
const Erc20BalanceInfoSchema = Schema.Struct({
|
|
63
63
|
tokenType: Schema.Literal("ERC20"),
|
|
64
|
-
decimals: Schema.NullOr(Schema.
|
|
64
|
+
decimals: Schema.NullOr(Schema.Finite),
|
|
65
65
|
formatted: Schema.String,
|
|
66
66
|
raw: Schema.String,
|
|
67
67
|
symbol: Schema.NullOr(Schema.String)
|
|
@@ -85,12 +85,12 @@ const TokenBalanceInfoSchema = Schema.Union([
|
|
|
85
85
|
Erc1155BalanceInfoSchema
|
|
86
86
|
]);
|
|
87
87
|
const TokenTransferBase = Schema.Struct({
|
|
88
|
-
blockNumber: Schema.
|
|
89
|
-
blockTimestamp: Schema.
|
|
88
|
+
blockNumber: Schema.Finite,
|
|
89
|
+
blockTimestamp: Schema.Finite,
|
|
90
90
|
blockTimestampUtc: Schema.String,
|
|
91
91
|
direction: Schema.Literals(["in", "out"]),
|
|
92
92
|
fromAddress: Schema.String,
|
|
93
|
-
logIndex: Schema.
|
|
93
|
+
logIndex: Schema.Finite,
|
|
94
94
|
toAddress: Schema.String,
|
|
95
95
|
txHash: Schema.String
|
|
96
96
|
});
|
|
@@ -118,8 +118,8 @@ const TokenTransferSchema = Schema.Union([
|
|
|
118
118
|
]);
|
|
119
119
|
const TokenActivityPaginationSchema = Schema.Struct({
|
|
120
120
|
hasMore: Schema.Boolean,
|
|
121
|
-
page: Schema.
|
|
122
|
-
pageSize: Schema.
|
|
121
|
+
page: Schema.Finite,
|
|
122
|
+
pageSize: Schema.Finite
|
|
123
123
|
});
|
|
124
124
|
const TokenActivitySchema = Schema.Struct({
|
|
125
125
|
balance: TokenBalanceInfoSchema,
|
|
@@ -144,10 +144,10 @@ const WalletTxActionExecutionSchema = Schema.Struct({
|
|
|
144
144
|
versionId: Schema.String
|
|
145
145
|
});
|
|
146
146
|
const WalletTxTransferSchema = Schema.Struct({
|
|
147
|
-
amount: Schema.
|
|
148
|
-
blockNumber: Schema.
|
|
149
|
-
blockTimestamp: Schema.
|
|
150
|
-
chainId: Schema.
|
|
147
|
+
amount: Schema.Finite,
|
|
148
|
+
blockNumber: Schema.Finite,
|
|
149
|
+
blockTimestamp: Schema.Finite,
|
|
150
|
+
chainId: Schema.Finite,
|
|
151
151
|
fromAddress: Schema.String,
|
|
152
152
|
fromAddressIsContract: Schema.Boolean,
|
|
153
153
|
fromEntityLabel: Schema.optional(Schema.NullOr(Schema.String)),
|
|
@@ -155,11 +155,11 @@ const WalletTxTransferSchema = Schema.Struct({
|
|
|
155
155
|
toAddressIsContract: Schema.Boolean,
|
|
156
156
|
toEntityLabel: Schema.optional(Schema.NullOr(Schema.String)),
|
|
157
157
|
tokenAddress: Schema.String,
|
|
158
|
-
tokenDecimals: Schema.
|
|
159
|
-
tokenId: Schema.
|
|
158
|
+
tokenDecimals: Schema.Finite,
|
|
159
|
+
tokenId: Schema.Finite,
|
|
160
160
|
tokenLogoUrl: Schema.String,
|
|
161
161
|
tokenName: Schema.String,
|
|
162
|
-
tokenPriceUsd: Schema.
|
|
162
|
+
tokenPriceUsd: Schema.Finite,
|
|
163
163
|
tokenSymbol: Schema.String,
|
|
164
164
|
tokenType: Schema.Literals([
|
|
165
165
|
"NATIVE",
|
|
@@ -170,20 +170,20 @@ const WalletTxTransferSchema = Schema.Struct({
|
|
|
170
170
|
txHash: Schema.String
|
|
171
171
|
});
|
|
172
172
|
const WalletTxBalanceChangeSchema = Schema.Struct({
|
|
173
|
-
balanceChange: Schema.
|
|
174
|
-
blockNumber: Schema.
|
|
175
|
-
blockTimestamp: Schema.
|
|
176
|
-
chainId: Schema.
|
|
173
|
+
balanceChange: Schema.Finite,
|
|
174
|
+
blockNumber: Schema.Finite,
|
|
175
|
+
blockTimestamp: Schema.Finite,
|
|
176
|
+
chainId: Schema.Finite,
|
|
177
177
|
holderAddress: Schema.String,
|
|
178
178
|
holderEntityLabel: Schema.optional(Schema.NullOr(Schema.String)),
|
|
179
179
|
holderIsContract: Schema.Boolean,
|
|
180
180
|
tokenAddress: Schema.String,
|
|
181
|
-
tokenDecimals: Schema.
|
|
181
|
+
tokenDecimals: Schema.Finite,
|
|
182
182
|
tokenEntityLabel: Schema.optional(Schema.NullOr(Schema.String)),
|
|
183
|
-
tokenId: Schema.
|
|
183
|
+
tokenId: Schema.Finite,
|
|
184
184
|
tokenLogoUrl: Schema.String,
|
|
185
185
|
tokenName: Schema.String,
|
|
186
|
-
tokenPriceUsd: Schema.
|
|
186
|
+
tokenPriceUsd: Schema.Finite,
|
|
187
187
|
tokenSymbol: Schema.String,
|
|
188
188
|
tokenType: Schema.Literals([
|
|
189
189
|
"NATIVE",
|
|
@@ -196,8 +196,8 @@ const WalletTxBalanceChangeSchema = Schema.Struct({
|
|
|
196
196
|
});
|
|
197
197
|
const WalletTransactionSchema = Schema.Struct({
|
|
198
198
|
actionExecution: Schema.optional(WalletTxActionExecutionSchema),
|
|
199
|
-
blockNumber: Schema.
|
|
200
|
-
blockTimestamp: Schema.
|
|
199
|
+
blockNumber: Schema.Finite,
|
|
200
|
+
blockTimestamp: Schema.Finite,
|
|
201
201
|
blockTimestampUtc: Schema.String,
|
|
202
202
|
calls: Schema.Array(WalletTxCallSchema),
|
|
203
203
|
createdContracts: Schema.Array(Schema.Struct({
|
|
@@ -212,21 +212,21 @@ const WalletTransactionSchema = Schema.Struct({
|
|
|
212
212
|
});
|
|
213
213
|
const TransactionActivityPaginationSchema = Schema.Struct({
|
|
214
214
|
hasMore: Schema.Boolean,
|
|
215
|
-
page: Schema.
|
|
216
|
-
pageSize: Schema.
|
|
215
|
+
page: Schema.Finite,
|
|
216
|
+
pageSize: Schema.Finite
|
|
217
217
|
});
|
|
218
218
|
const TransactionActivitySchema = Schema.Struct({
|
|
219
219
|
blockchain: BlockchainSchema,
|
|
220
|
-
earliestTx: Schema.NullOr(Schema.
|
|
220
|
+
earliestTx: Schema.NullOr(Schema.Finite),
|
|
221
221
|
fromAddress: Schema.String,
|
|
222
222
|
pagination: TransactionActivityPaginationSchema,
|
|
223
223
|
toAddressesFilter: Schema.optional(Schema.Array(Schema.String)),
|
|
224
|
-
totalTransactionCount: Schema.
|
|
224
|
+
totalTransactionCount: Schema.Finite,
|
|
225
225
|
transactions: Schema.Array(WalletTransactionSchema)
|
|
226
226
|
});
|
|
227
227
|
const DeployedContractSchema = Schema.Struct({
|
|
228
|
-
blockNumber: Schema.
|
|
229
|
-
blockTimestamp: Schema.
|
|
228
|
+
blockNumber: Schema.Finite,
|
|
229
|
+
blockTimestamp: Schema.Finite,
|
|
230
230
|
blockTimestampUtc: Schema.String,
|
|
231
231
|
contractAddress: Schema.String,
|
|
232
232
|
contractName: Schema.NullOr(Schema.String),
|
|
@@ -238,8 +238,8 @@ const DeployedContractSchema = Schema.Struct({
|
|
|
238
238
|
});
|
|
239
239
|
const DeployedContractsPaginationSchema = Schema.Struct({
|
|
240
240
|
hasMore: Schema.Boolean,
|
|
241
|
-
page: Schema.
|
|
242
|
-
pageSize: Schema.
|
|
241
|
+
page: Schema.Finite,
|
|
242
|
+
pageSize: Schema.Finite
|
|
243
243
|
});
|
|
244
244
|
const DeployedContractsSchema = Schema.Struct({
|
|
245
245
|
blockchain: BlockchainSchema,
|
|
@@ -247,26 +247,26 @@ const DeployedContractsSchema = Schema.Struct({
|
|
|
247
247
|
deployerAddress: Schema.String,
|
|
248
248
|
isEOA: Schema.Boolean,
|
|
249
249
|
pagination: DeployedContractsPaginationSchema,
|
|
250
|
-
totalDeployedContractsCount: Schema.
|
|
250
|
+
totalDeployedContractsCount: Schema.Finite
|
|
251
251
|
});
|
|
252
252
|
const TokenActivityParamsSchema = Schema.Struct({
|
|
253
|
-
afterBlocknumber: Schema.optional(Schema.
|
|
254
|
-
afterTimestamp: Schema.optional(Schema.
|
|
255
|
-
beforeBlocknumber: Schema.optional(Schema.
|
|
256
|
-
beforeTimestamp: Schema.optional(Schema.
|
|
253
|
+
afterBlocknumber: Schema.optional(Schema.Finite),
|
|
254
|
+
afterTimestamp: Schema.optional(Schema.Finite),
|
|
255
|
+
beforeBlocknumber: Schema.optional(Schema.Finite),
|
|
256
|
+
beforeTimestamp: Schema.optional(Schema.Finite),
|
|
257
257
|
fromAddress: Schema.optional(Schema.String),
|
|
258
|
-
page: Schema.optional(Schema.
|
|
258
|
+
page: Schema.optional(Schema.Finite),
|
|
259
259
|
toAddress: Schema.optional(Schema.String)
|
|
260
260
|
});
|
|
261
261
|
/** Same fields as MCP `getTransactionActivityTool` inputs (camelCase); POST `/v1/wallets/transaction-activity` body uses snake_case. */
|
|
262
262
|
const TransactionActivityQuerySchema = Schema.Struct({
|
|
263
|
-
afterBlocknumber: Schema.optional(Schema.
|
|
264
|
-
afterTimestamp: Schema.optional(Schema.
|
|
265
|
-
beforeBlocknumber: Schema.optional(Schema.
|
|
266
|
-
beforeTimestamp: Schema.optional(Schema.
|
|
263
|
+
afterBlocknumber: Schema.optional(Schema.Finite),
|
|
264
|
+
afterTimestamp: Schema.optional(Schema.Finite),
|
|
265
|
+
beforeBlocknumber: Schema.optional(Schema.Finite),
|
|
266
|
+
beforeTimestamp: Schema.optional(Schema.Finite),
|
|
267
267
|
blockchain: BlockchainSchema,
|
|
268
268
|
fromAddress: Schema.optional(Schema.String),
|
|
269
|
-
page: Schema.optional(Schema.
|
|
269
|
+
page: Schema.optional(Schema.Finite),
|
|
270
270
|
successOnly: Schema.optional(Schema.Boolean),
|
|
271
271
|
toAddresses: Schema.optional(Schema.Array(Schema.String))
|
|
272
272
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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";
|
|
2
|
+
import { AccountingCheckNodesParams, AccountingCheckParams, AddIssuerTokenParams, AddSlotParams, BulkVersionReviewParams, ChainAddressParams, ConvertSlotToFixedParams, CreateForumThreadParams, CreateIssuerParams, CreateParamQueryParams, DirectionalTraversalParams, DoubleClickJsonResponse, ExecuteManyParamQueriesParams, ExecuteParamQueryParams, ForumItemParams, 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, UpdateForumItemParams, UpdateIssuerParams, UpsertSideMetricsParams, VersionReviewParams } from "../schemas/doubleclick.js";
|
|
3
3
|
import { Context, Effect } from "effect";
|
|
4
4
|
|
|
5
5
|
//#region src/services/DoubleClickService.d.ts
|
|
@@ -61,6 +61,12 @@ declare const DoubleClickService_base: Context.ServiceClass<DoubleClickService,
|
|
|
61
61
|
readonly getLogoBatch: (params: LogoBatchParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
|
|
62
62
|
readonly getLogoBatchMap: (params: LogoBatchParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
|
|
63
63
|
readonly setLogo: (params: SetLogoParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
|
|
64
|
+
readonly listForumThreads: Effect.Effect<DoubleClickJsonResponse, ServiceError>;
|
|
65
|
+
readonly getForumThread: (rootThreadId: string) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
|
|
66
|
+
readonly getForumItem: (params: ForumItemParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
|
|
67
|
+
readonly listForumItemVersions: (params: ForumItemParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
|
|
68
|
+
readonly createForumThread: (params: CreateForumThreadParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
|
|
69
|
+
readonly updateForumItem: (params: UpdateForumItemParams) => Effect.Effect<DoubleClickJsonResponse, ServiceError>;
|
|
64
70
|
}>;
|
|
65
71
|
declare class DoubleClickService extends DoubleClickService_base {}
|
|
66
72
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@herd-labs/sdk",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.3",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@better-auth/api-key": "1.7.0-beta.4",
|
|
32
|
-
"@effect/platform-bun": "4.0.0-beta.
|
|
33
|
-
"effect": "4.0.0-beta.
|
|
32
|
+
"@effect/platform-bun": "4.0.0-beta.85",
|
|
33
|
+
"effect": "4.0.0-beta.85"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"typescript": "^5"
|