@herd-labs/sdk 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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/AuthServiceLive.js +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/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/live/http.d.ts +3 -2
- package/dist/src/live/http.js +4 -6
- package/dist/src/schemas/actions.d.ts +18 -18
- package/dist/src/schemas/agent-wallets.d.ts +12 -12
- package/dist/src/schemas/auth.d.ts +6 -2
- package/dist/src/schemas/auth.js +4 -1
- package/dist/src/schemas/bookmarks.d.ts +12 -12
- package/dist/src/schemas/codeblocks.d.ts +13 -13
- package/dist/src/schemas/collections.d.ts +8 -8
- package/dist/src/schemas/contracts.d.ts +16 -16
- package/dist/src/schemas/hal.d.ts +27 -27
- package/dist/src/schemas/transactions.d.ts +91 -91
- package/dist/src/schemas/wallets.d.ts +59 -59
- package/package.json +2 -2
|
@@ -20,11 +20,11 @@ declare const WalletBalance_base: Schema.Class<WalletBalance, {
|
|
|
20
20
|
} & {
|
|
21
21
|
readonly address: string;
|
|
22
22
|
} & {
|
|
23
|
-
readonly
|
|
23
|
+
readonly amount: string | number;
|
|
24
24
|
} & {
|
|
25
25
|
readonly decimals: number | null;
|
|
26
26
|
} & {
|
|
27
|
-
readonly
|
|
27
|
+
readonly valueUsd: number | null;
|
|
28
28
|
} & {
|
|
29
29
|
readonly logoUrl: string | null;
|
|
30
30
|
}, {}, {}>;
|
|
@@ -38,9 +38,9 @@ declare const Erc7702Delegation_base: Schema.Class<Erc7702Delegation, {
|
|
|
38
38
|
contractName: typeof Schema.String;
|
|
39
39
|
functions: Schema.Array$<typeof Schema.String>;
|
|
40
40
|
}>, never, {
|
|
41
|
-
readonly contractName: string;
|
|
42
|
-
} & {
|
|
43
41
|
readonly address: string;
|
|
42
|
+
} & {
|
|
43
|
+
readonly contractName: string;
|
|
44
44
|
} & {
|
|
45
45
|
readonly functions: readonly string[];
|
|
46
46
|
}, {}, {}>;
|
|
@@ -83,14 +83,14 @@ declare const PendingTransaction_base: Schema.Class<PendingTransaction, {
|
|
|
83
83
|
readonly value: string;
|
|
84
84
|
} & {
|
|
85
85
|
readonly method?: string | null | undefined;
|
|
86
|
-
} & {
|
|
87
|
-
readonly data: string | null;
|
|
88
|
-
} & {
|
|
89
|
-
readonly nonce: number;
|
|
90
86
|
} & {
|
|
91
87
|
readonly to: string;
|
|
88
|
+
} & {
|
|
89
|
+
readonly data: string | null;
|
|
92
90
|
} & {
|
|
93
91
|
readonly safeTxHash: string;
|
|
92
|
+
} & {
|
|
93
|
+
readonly nonce: number;
|
|
94
94
|
} & {
|
|
95
95
|
readonly submissionDate?: string | undefined;
|
|
96
96
|
} & {
|
|
@@ -143,14 +143,14 @@ declare const WalletOverview_base: Schema.Class<WalletOverview, {
|
|
|
143
143
|
readonly blockchain: "ethereum" | "base";
|
|
144
144
|
} & {
|
|
145
145
|
readonly walletAddress: string;
|
|
146
|
-
} & {
|
|
147
|
-
readonly implementationAddress?: string | undefined;
|
|
148
146
|
} & {
|
|
149
147
|
readonly totalTransactionCount: number;
|
|
150
148
|
} & {
|
|
151
149
|
readonly totalDeployedContractsCount: number;
|
|
152
150
|
} & {
|
|
153
151
|
readonly walletType: "contract" | "eoa" | "erc7702" | "erc4337" | "multisig";
|
|
152
|
+
} & {
|
|
153
|
+
readonly implementationAddress?: string | undefined;
|
|
154
154
|
} & {
|
|
155
155
|
readonly erc7702Delegation?: Erc7702Delegation | undefined;
|
|
156
156
|
} & {
|
|
@@ -207,22 +207,22 @@ declare const TokenTransfer_base: Schema.Class<TokenTransfer, {
|
|
|
207
207
|
readonly txHash: string;
|
|
208
208
|
} & {
|
|
209
209
|
readonly blockNumber: number;
|
|
210
|
-
} & {
|
|
211
|
-
readonly logIndex: number;
|
|
212
210
|
} & {
|
|
213
211
|
readonly blockTimestamp: number;
|
|
214
|
-
} & {
|
|
215
|
-
readonly fromAddress: string;
|
|
216
|
-
} & {
|
|
217
|
-
readonly toAddress: string;
|
|
218
212
|
} & {
|
|
219
213
|
readonly amount: string;
|
|
220
214
|
} & {
|
|
221
215
|
readonly blockTimestampUtc: string;
|
|
222
216
|
} & {
|
|
223
|
-
readonly
|
|
217
|
+
readonly logIndex: number;
|
|
218
|
+
} & {
|
|
219
|
+
readonly fromAddress: string;
|
|
220
|
+
} & {
|
|
221
|
+
readonly toAddress: string;
|
|
224
222
|
} & {
|
|
225
223
|
readonly formattedAmount: string;
|
|
224
|
+
} & {
|
|
225
|
+
readonly direction: "in" | "out";
|
|
226
226
|
}, {}, {}>;
|
|
227
227
|
declare class TokenTransfer extends TokenTransfer_base {}
|
|
228
228
|
declare const TokenActivityPagination_base: Schema.Class<TokenActivityPagination, {
|
|
@@ -257,16 +257,16 @@ declare const TokenActivity_base: Schema.Class<TokenActivity, {
|
|
|
257
257
|
pagination: typeof TokenActivityPagination;
|
|
258
258
|
}>, never, {
|
|
259
259
|
readonly blockchain: "ethereum" | "base";
|
|
260
|
-
} & {
|
|
261
|
-
readonly balance: TokenBalanceInfo;
|
|
262
260
|
} & {
|
|
263
261
|
readonly tokenAddress: string;
|
|
264
262
|
} & {
|
|
265
263
|
readonly holderAddress: string;
|
|
266
264
|
} & {
|
|
267
|
-
readonly
|
|
265
|
+
readonly balance: TokenBalanceInfo;
|
|
268
266
|
} & {
|
|
269
267
|
readonly pagination: TokenActivityPagination;
|
|
268
|
+
} & {
|
|
269
|
+
readonly transfers: readonly TokenTransfer[];
|
|
270
270
|
}, {}, {}>;
|
|
271
271
|
declare class TokenActivity extends TokenActivity_base {}
|
|
272
272
|
declare const WalletTxCall_base: Schema.Class<WalletTxCall, {
|
|
@@ -282,15 +282,15 @@ declare const WalletTxCall_base: Schema.Class<WalletTxCall, {
|
|
|
282
282
|
contractName: Schema.NullOr<typeof Schema.String>;
|
|
283
283
|
entityLabel: Schema.NullOr<typeof Schema.String>;
|
|
284
284
|
}>, never, {
|
|
285
|
-
readonly contractName: string | null;
|
|
286
|
-
} & {
|
|
287
285
|
readonly functionSignature: string;
|
|
288
286
|
} & {
|
|
289
|
-
readonly
|
|
287
|
+
readonly contractName: string | null;
|
|
288
|
+
} & {
|
|
289
|
+
readonly callee: string;
|
|
290
290
|
} & {
|
|
291
291
|
readonly functionName: string;
|
|
292
292
|
} & {
|
|
293
|
-
readonly
|
|
293
|
+
readonly entityLabel: string | null;
|
|
294
294
|
}, {}, {}>;
|
|
295
295
|
declare class WalletTxCall extends WalletTxCall_base {}
|
|
296
296
|
declare const WalletTxActionExecution_base: Schema.Class<WalletTxActionExecution, {
|
|
@@ -305,10 +305,10 @@ declare const WalletTxActionExecution_base: Schema.Class<WalletTxActionExecution
|
|
|
305
305
|
executionId: typeof Schema.String;
|
|
306
306
|
}>, never, {
|
|
307
307
|
readonly actionId: string;
|
|
308
|
-
} & {
|
|
309
|
-
readonly versionId: string;
|
|
310
308
|
} & {
|
|
311
309
|
readonly actionName: string;
|
|
310
|
+
} & {
|
|
311
|
+
readonly versionId: string;
|
|
312
312
|
} & {
|
|
313
313
|
readonly executionId: string;
|
|
314
314
|
}, {}, {}>;
|
|
@@ -356,17 +356,19 @@ declare const WalletTxTransfer_base: Schema.Class<WalletTxTransfer, {
|
|
|
356
356
|
}>, never, {
|
|
357
357
|
readonly txHash: string;
|
|
358
358
|
} & {
|
|
359
|
-
readonly tokenType: "
|
|
359
|
+
readonly tokenType: "NATIVE" | "ERC20" | "ERC721" | "ERC1155";
|
|
360
|
+
} & {
|
|
361
|
+
readonly tokenAddress: string;
|
|
360
362
|
} & {
|
|
361
363
|
readonly blockNumber: number;
|
|
362
364
|
} & {
|
|
363
|
-
readonly
|
|
365
|
+
readonly blockTimestamp: number;
|
|
364
366
|
} & {
|
|
365
|
-
readonly
|
|
367
|
+
readonly amount: number;
|
|
366
368
|
} & {
|
|
367
|
-
readonly
|
|
369
|
+
readonly fromAddress: string;
|
|
368
370
|
} & {
|
|
369
|
-
readonly
|
|
371
|
+
readonly toAddress: string;
|
|
370
372
|
} & {
|
|
371
373
|
readonly chainId: number;
|
|
372
374
|
} & {
|
|
@@ -381,16 +383,14 @@ declare const WalletTxTransfer_base: Schema.Class<WalletTxTransfer, {
|
|
|
381
383
|
readonly tokenPriceUsd: number;
|
|
382
384
|
} & {
|
|
383
385
|
readonly tokenLogoUrl: string;
|
|
384
|
-
} & {
|
|
385
|
-
readonly fromAddress: string;
|
|
386
|
-
} & {
|
|
387
|
-
readonly toAddress: string;
|
|
388
|
-
} & {
|
|
389
|
-
readonly amount: number;
|
|
390
386
|
} & {
|
|
391
387
|
readonly fromAddressIsContract: boolean;
|
|
392
388
|
} & {
|
|
393
389
|
readonly toAddressIsContract: boolean;
|
|
390
|
+
} & {
|
|
391
|
+
readonly fromEntityLabel?: string | null | undefined;
|
|
392
|
+
} & {
|
|
393
|
+
readonly toEntityLabel?: string | null | undefined;
|
|
394
394
|
}, {}, {}>;
|
|
395
395
|
declare class WalletTxTransfer extends WalletTxTransfer_base {}
|
|
396
396
|
declare const WalletTxBalanceChange_base: Schema.Class<WalletTxBalanceChange, {
|
|
@@ -434,19 +434,17 @@ declare const WalletTxBalanceChange_base: Schema.Class<WalletTxBalanceChange, {
|
|
|
434
434
|
}>, never, {
|
|
435
435
|
readonly txHash?: string | undefined;
|
|
436
436
|
} & {
|
|
437
|
-
readonly tokenType: "
|
|
438
|
-
} & {
|
|
439
|
-
readonly blockNumber: number;
|
|
437
|
+
readonly tokenType: "NATIVE" | "ERC20" | "ERC721" | "ERC1155";
|
|
440
438
|
} & {
|
|
441
439
|
readonly tokenAddress: string;
|
|
442
440
|
} & {
|
|
443
|
-
readonly
|
|
441
|
+
readonly blockNumber: number;
|
|
444
442
|
} & {
|
|
445
|
-
readonly
|
|
443
|
+
readonly blockTimestamp: number;
|
|
446
444
|
} & {
|
|
447
|
-
readonly
|
|
445
|
+
readonly holderAddress: string;
|
|
448
446
|
} & {
|
|
449
|
-
readonly
|
|
447
|
+
readonly transfers: readonly WalletTxTransfer[];
|
|
450
448
|
} & {
|
|
451
449
|
readonly chainId: number;
|
|
452
450
|
} & {
|
|
@@ -461,12 +459,14 @@ declare const WalletTxBalanceChange_base: Schema.Class<WalletTxBalanceChange, {
|
|
|
461
459
|
readonly tokenPriceUsd: number;
|
|
462
460
|
} & {
|
|
463
461
|
readonly tokenLogoUrl: string;
|
|
462
|
+
} & {
|
|
463
|
+
readonly holderIsContract: boolean;
|
|
464
|
+
} & {
|
|
465
|
+
readonly balanceChange: number;
|
|
464
466
|
} & {
|
|
465
467
|
readonly holderEntityLabel?: string | null | undefined;
|
|
466
468
|
} & {
|
|
467
469
|
readonly tokenEntityLabel?: string | null | undefined;
|
|
468
|
-
} & {
|
|
469
|
-
readonly transfers: readonly WalletTxTransfer[];
|
|
470
470
|
}, {}, {}>;
|
|
471
471
|
declare class WalletTxBalanceChange extends WalletTxBalanceChange_base {}
|
|
472
472
|
declare const WalletTransaction_base: Schema.Class<WalletTransaction, {
|
|
@@ -502,27 +502,27 @@ declare const WalletTransaction_base: Schema.Class<WalletTransaction, {
|
|
|
502
502
|
}>, never, {
|
|
503
503
|
readonly txHash: string;
|
|
504
504
|
} & {
|
|
505
|
-
readonly
|
|
505
|
+
readonly success: boolean;
|
|
506
506
|
} & {
|
|
507
507
|
readonly blockNumber: number;
|
|
508
508
|
} & {
|
|
509
509
|
readonly blockTimestamp: number;
|
|
510
510
|
} & {
|
|
511
|
-
readonly
|
|
511
|
+
readonly blockTimestampUtc: string;
|
|
512
|
+
} & {
|
|
513
|
+
readonly errorMessage?: string | undefined;
|
|
514
|
+
} & {
|
|
515
|
+
readonly calls: readonly WalletTxCall[];
|
|
516
|
+
} & {
|
|
517
|
+
readonly walletBalanceChanges: readonly WalletTxBalanceChange[];
|
|
512
518
|
} & {
|
|
513
519
|
readonly createdContracts: readonly {
|
|
514
|
-
readonly contractName: string | null;
|
|
515
520
|
readonly address: string;
|
|
521
|
+
readonly contractName: string | null;
|
|
516
522
|
readonly entityLabel: string | null;
|
|
517
523
|
}[];
|
|
518
524
|
} & {
|
|
519
525
|
readonly actionExecution?: WalletTxActionExecution | undefined;
|
|
520
|
-
} & {
|
|
521
|
-
readonly blockTimestampUtc: string;
|
|
522
|
-
} & {
|
|
523
|
-
readonly calls: readonly WalletTxCall[];
|
|
524
|
-
} & {
|
|
525
|
-
readonly walletBalanceChanges: readonly WalletTxBalanceChange[];
|
|
526
526
|
}, {}, {}>;
|
|
527
527
|
declare class WalletTransaction extends WalletTransaction_base {}
|
|
528
528
|
declare const TransactionActivityPagination_base: Schema.Class<TransactionActivityPagination, {
|
|
@@ -561,12 +561,12 @@ declare const TransactionActivity_base: Schema.Class<TransactionActivity, {
|
|
|
561
561
|
readonly blockchain: "ethereum" | "base";
|
|
562
562
|
} & {
|
|
563
563
|
readonly transactions: readonly WalletTransaction[];
|
|
564
|
-
} & {
|
|
565
|
-
readonly fromAddress: string;
|
|
566
564
|
} & {
|
|
567
565
|
readonly totalTransactionCount: number;
|
|
568
566
|
} & {
|
|
569
567
|
readonly earliestTx: number | null;
|
|
568
|
+
} & {
|
|
569
|
+
readonly fromAddress: string;
|
|
570
570
|
} & {
|
|
571
571
|
readonly pagination: TransactionActivityPagination;
|
|
572
572
|
} & {
|
|
@@ -727,10 +727,10 @@ declare const TransactionActivityQuery_base: Schema.Class<TransactionActivityQue
|
|
|
727
727
|
readonly afterBlocknumber?: number | undefined;
|
|
728
728
|
} & {
|
|
729
729
|
readonly fromAddress?: string | undefined;
|
|
730
|
-
} & {
|
|
731
|
-
readonly successOnly?: boolean | undefined;
|
|
732
730
|
} & {
|
|
733
731
|
readonly toAddresses?: readonly string[] | undefined;
|
|
732
|
+
} & {
|
|
733
|
+
readonly successOnly?: boolean | undefined;
|
|
734
734
|
}, {}, {}>;
|
|
735
735
|
/** Same fields as MCP `getTransactionActivityTool` inputs (camelCase); POST `/v1/wallets/transaction-activity` body uses snake_case. */
|
|
736
736
|
declare class TransactionActivityQuery extends TransactionActivityQuery_base {}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@herd-labs/sdk",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"prepack": "bun run build && bun ./scripts/prepare-publish.ts",
|
|
24
24
|
"postpack": "bun ./scripts/restore-publish.ts",
|
|
25
25
|
"release": "echo 'Use the GitHub Actions workflow: Actions → Release: SDK → Run workflow'",
|
|
26
|
-
"tsc": "
|
|
26
|
+
"tsc": "tsgo --noEmit",
|
|
27
27
|
"lint": "eslint .",
|
|
28
28
|
"lint:fix": "eslint . --fix"
|
|
29
29
|
},
|