@herd-labs/sdk 0.1.0 → 0.3.0

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.
Files changed (47) hide show
  1. package/dist/index.d.ts +3 -3
  2. package/dist/index.js +3 -3
  3. package/dist/src/config.d.ts +17 -5
  4. package/dist/src/config.js +12 -2
  5. package/dist/src/live/ActionsServiceLive.js +10 -10
  6. package/dist/src/live/AdaptersServiceLive.d.ts +2 -2
  7. package/dist/src/live/AdaptersServiceLive.js +7 -7
  8. package/dist/src/live/AgentSafesServiceLive.d.ts +2 -2
  9. package/dist/src/live/AgentSafesServiceLive.js +4 -4
  10. package/dist/src/live/AgentWalletsServiceLive.d.ts +2 -2
  11. package/dist/src/live/AgentWalletsServiceLive.js +3 -3
  12. package/dist/src/live/AgentWorkflowsServiceLive.d.ts +2 -2
  13. package/dist/src/live/AgentWorkflowsServiceLive.js +8 -8
  14. package/dist/src/live/AuthServiceLive.d.ts +2 -2
  15. package/dist/src/live/AuthServiceLive.js +8 -7
  16. package/dist/src/live/BookmarksServiceLive.js +7 -7
  17. package/dist/src/live/CodeBlocksServiceLive.d.ts +2 -2
  18. package/dist/src/live/CodeBlocksServiceLive.js +1 -2
  19. package/dist/src/live/CollectionsServiceLive.d.ts +2 -2
  20. package/dist/src/live/CollectionsServiceLive.js +5 -5
  21. package/dist/src/live/ContractsServiceLive.d.ts +2 -2
  22. package/dist/src/live/ContractsServiceLive.js +5 -5
  23. package/dist/src/live/DocsServiceLive.d.ts +2 -2
  24. package/dist/src/live/DocsServiceLive.js +3 -3
  25. package/dist/src/live/GroupsServiceLive.js +7 -7
  26. package/dist/src/live/HalServiceLive.d.ts +2 -2
  27. package/dist/src/live/HalServiceLive.js +4 -4
  28. package/dist/src/live/TransactionsServiceLive.d.ts +2 -2
  29. package/dist/src/live/TransactionsServiceLive.js +4 -4
  30. package/dist/src/live/WalletsServiceLive.d.ts +2 -2
  31. package/dist/src/live/WalletsServiceLive.js +5 -5
  32. package/dist/src/live/http.d.ts +1 -4
  33. package/dist/src/live/http.js +15 -4
  34. package/dist/src/schemas/actions.d.ts +13 -13
  35. package/dist/src/schemas/agent-wallets.d.ts +20 -20
  36. package/dist/src/schemas/auth.d.ts +22 -12
  37. package/dist/src/schemas/auth.js +16 -5
  38. package/dist/src/schemas/bookmarks.d.ts +8 -8
  39. package/dist/src/schemas/codeblocks.d.ts +9 -9
  40. package/dist/src/schemas/collections.d.ts +7 -7
  41. package/dist/src/schemas/contracts.d.ts +13 -13
  42. package/dist/src/schemas/hal.d.ts +19 -17
  43. package/dist/src/schemas/hal.js +1 -1
  44. package/dist/src/schemas/transactions.d.ts +29 -29
  45. package/dist/src/schemas/wallets.d.ts +22 -22
  46. package/dist/src/services/AuthService.d.ts +3 -2
  47. package/package.json +2 -1
@@ -67,9 +67,11 @@ declare const TopHolder_base: Schema.Class<TopHolder, {
67
67
  entityLabel: Schema.optional<typeof Schema.String>;
68
68
  coingeckoLabel: Schema.optional<typeof Schema.String>;
69
69
  }>, never, {
70
+ readonly name?: string | undefined;
71
+ } & {
70
72
  readonly address: string;
71
73
  } & {
72
- readonly name?: string | undefined;
74
+ readonly type: "contract" | "wallet";
73
75
  } & {
74
76
  readonly rank: number;
75
77
  } & {
@@ -78,8 +80,6 @@ declare const TopHolder_base: Schema.Class<TopHolder, {
78
80
  readonly valueUsd: number;
79
81
  } & {
80
82
  readonly sharePercentage: number;
81
- } & {
82
- readonly type: "contract" | "wallet";
83
83
  } & {
84
84
  readonly entityLabel?: string | undefined;
85
85
  } & {
@@ -180,8 +180,8 @@ declare const AddressDetails_base: Schema.Class<AddressDetails, {
180
180
  readonly deploymentTxHash?: string | undefined;
181
181
  } & {
182
182
  readonly factory?: {
183
- readonly address: string;
184
183
  readonly name: string;
184
+ readonly address: string;
185
185
  } | undefined;
186
186
  } & {
187
187
  readonly constructorArgs?: {
@@ -301,8 +301,6 @@ declare const ContractCodeMatchBlock_base: Schema.Class<ContractCodeMatchBlock,
301
301
  patterns: Schema.Array$<typeof Schema.String>;
302
302
  }>, never, {
303
303
  readonly code: string;
304
- } & {
305
- readonly patterns: readonly string[];
306
304
  } & {
307
305
  readonly fileName: string;
308
306
  } & {
@@ -311,6 +309,8 @@ declare const ContractCodeMatchBlock_base: Schema.Class<ContractCodeMatchBlock,
311
309
  readonly endLine: number;
312
310
  } & {
313
311
  readonly numberOfMatches: number;
312
+ } & {
313
+ readonly patterns: readonly string[];
314
314
  }, {}, {}>;
315
315
  declare class ContractCodeMatchBlock extends ContractCodeMatchBlock_base {}
316
316
  declare const ContractCodeSearchResult_base: Schema.Class<ContractCodeSearchResult, {
@@ -328,13 +328,13 @@ declare const ContractCodeSearchResult_base: Schema.Class<ContractCodeSearchResu
328
328
  proxyCode: Schema.optional<typeof Schema.String>;
329
329
  matches: Schema.optional<Schema.Array$<typeof ContractCodeMatchBlock>>;
330
330
  }>, never, {
331
- readonly contractAddress: string & effect_Brand1.Brand<"EvmAddress">;
331
+ readonly code?: string | undefined;
332
332
  } & {
333
333
  readonly blockchain: "ethereum" | "base";
334
334
  } & {
335
- readonly contractName: string;
335
+ readonly contractAddress: string & effect_Brand1.Brand<"EvmAddress">;
336
336
  } & {
337
- readonly code?: string | undefined;
337
+ readonly contractName: string;
338
338
  } & {
339
339
  readonly proxyCode?: string | undefined;
340
340
  } & {
@@ -354,6 +354,8 @@ declare const GetContractCodeParams_base: Schema.Class<GetContractCodeParams, {
354
354
  returnAllCode: Schema.optional<typeof Schema.Boolean>;
355
355
  patterns: Schema.optional<Schema.Array$<typeof Schema.String>>;
356
356
  }>, never, {
357
+ readonly patterns?: readonly string[] | undefined;
358
+ } & {
357
359
  readonly query: string;
358
360
  } & {
359
361
  readonly contractAddresses: readonly (string & effect_Brand1.Brand<"EvmAddress">)[];
@@ -361,8 +363,6 @@ declare const GetContractCodeParams_base: Schema.Class<GetContractCodeParams, {
361
363
  readonly includeProxies?: boolean | undefined;
362
364
  } & {
363
365
  readonly returnAllCode?: boolean | undefined;
364
- } & {
365
- readonly patterns?: readonly string[] | undefined;
366
366
  }, {}, {}>;
367
367
  declare class GetContractCodeParams extends GetContractCodeParams_base {}
368
368
  declare const GetContractCodeResponse_base: Schema.Class<GetContractCodeResponse, {
@@ -432,9 +432,9 @@ declare const ContractDiff_base: Schema.Class<ContractDiff, {
432
432
  contractAddress: Schema.optional<typeof Schema.String>;
433
433
  blockchain: Schema.optional<typeof Schema.String>;
434
434
  }>, never, {
435
- readonly contractAddress?: string | undefined;
436
- } & {
437
435
  readonly blockchain?: string | undefined;
436
+ } & {
437
+ readonly contractAddress?: string | undefined;
438
438
  } & {
439
439
  readonly errorMessage?: string | undefined;
440
440
  } & {
@@ -1,5 +1,5 @@
1
1
  import { Schema } from "effect";
2
- import * as effect_Brand12 from "effect/Brand";
2
+ import * as effect_Brand3 from "effect/Brand";
3
3
 
4
4
  //#region src/schemas/hal.d.ts
5
5
  declare const EvaluateParams_base: Schema.Class<EvaluateParams, {
@@ -25,7 +25,7 @@ declare const EvaluateParams_base: Schema.Class<EvaluateParams, {
25
25
  tevmForkId: Schema.optional<typeof Schema.String>;
26
26
  simulationBlockNumber: Schema.optional<typeof Schema.Number>;
27
27
  }>, never, {
28
- readonly walletAddress: string & effect_Brand12.Brand<"EvmAddress">;
28
+ readonly walletAddress: string & effect_Brand3.Brand<"EvmAddress">;
29
29
  } & {
30
30
  readonly expression: unknown;
31
31
  } & {
@@ -45,7 +45,8 @@ declare const EvaluateParams_base: Schema.Class<EvaluateParams, {
45
45
  declare class EvaluateParams extends EvaluateParams_base {}
46
46
  declare const EvaluateExistingParams_base: Schema.Class<EvaluateExistingParams, {
47
47
  actionId: typeof Schema.String;
48
- version: Schema.optional<typeof Schema.String>;
48
+ /** Published action-expression id (UUID). When omitted, the latest published expression is simulated. */
49
+ actionExpressionId: Schema.optional<typeof Schema.UUID>;
49
50
  walletAddress: Schema.brand<Schema.filter<typeof Schema.String>, "EvmAddress">;
50
51
  inputValues: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>;
51
52
  simulationBalanceFunding: Schema.optional<Schema.Array$<Schema.Struct<{
@@ -56,7 +57,8 @@ declare const EvaluateExistingParams_base: Schema.Class<EvaluateExistingParams,
56
57
  simulationBlockNumber: Schema.optional<typeof Schema.Number>;
57
58
  }, Schema.Struct.Encoded<{
58
59
  actionId: typeof Schema.String;
59
- version: Schema.optional<typeof Schema.String>;
60
+ /** Published action-expression id (UUID). When omitted, the latest published expression is simulated. */
61
+ actionExpressionId: Schema.optional<typeof Schema.UUID>;
60
62
  walletAddress: Schema.brand<Schema.filter<typeof Schema.String>, "EvmAddress">;
61
63
  inputValues: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>;
62
64
  simulationBalanceFunding: Schema.optional<Schema.Array$<Schema.Struct<{
@@ -66,11 +68,9 @@ declare const EvaluateExistingParams_base: Schema.Class<EvaluateExistingParams,
66
68
  tevmForkId: Schema.optional<typeof Schema.String>;
67
69
  simulationBlockNumber: Schema.optional<typeof Schema.Number>;
68
70
  }>, never, {
69
- readonly walletAddress: string & effect_Brand12.Brand<"EvmAddress">;
70
- } & {
71
71
  readonly actionId: string;
72
72
  } & {
73
- readonly version?: string | undefined;
73
+ readonly walletAddress: string & effect_Brand3.Brand<"EvmAddress">;
74
74
  } & {
75
75
  readonly tevmForkId?: string | undefined;
76
76
  } & {
@@ -84,6 +84,8 @@ declare const EvaluateExistingParams_base: Schema.Class<EvaluateExistingParams,
84
84
  }[] | undefined;
85
85
  } & {
86
86
  readonly simulationBlockNumber?: number | undefined;
87
+ } & {
88
+ readonly actionExpressionId?: string | undefined;
87
89
  }, {}, {}>;
88
90
  declare class EvaluateExistingParams extends EvaluateExistingParams_base {}
89
91
  declare const TransactionStatus_base: Schema.Class<TransactionStatus, {
@@ -121,21 +123,21 @@ declare const TransactionStatus_base: Schema.Class<TransactionStatus, {
121
123
  args: Schema.optional<Schema.NullOr<typeof Schema.Unknown>>;
122
124
  transactionData: Schema.optional<Schema.NullOr<typeof Schema.Unknown>>;
123
125
  }>, never, {
124
- readonly blockchain?: "ethereum" | "base" | undefined;
125
- } & {
126
- readonly transactionHash: string | null;
127
- } & {
128
126
  readonly value?: string | null | undefined;
129
127
  } & {
130
128
  readonly status: "success" | "failed" | "pending";
131
129
  } & {
132
- readonly blockNumber: number | null;
130
+ readonly blockchain?: "ethereum" | "base" | undefined;
133
131
  } & {
134
- readonly blockTimestamp: number | null;
132
+ readonly transactionHash: string | null;
133
+ } & {
134
+ readonly blockNumber: number | null;
135
135
  } & {
136
136
  readonly toContractName: string | null;
137
137
  } & {
138
138
  readonly data?: string | undefined;
139
+ } & {
140
+ readonly blockTimestamp: number | null;
139
141
  } & {
140
142
  readonly to?: string | undefined;
141
143
  } & {
@@ -177,14 +179,14 @@ declare const EvaluateResponse_base: Schema.Class<EvaluateResponse, {
177
179
  tevmForkId: Schema.optional<typeof Schema.String>;
178
180
  tevmForkBlockchain: Schema.optional<Schema.Literal<["ethereum", "base"]>>;
179
181
  }>, never, {
180
- readonly hint?: string | undefined;
181
- } & {
182
182
  readonly error?: {
183
- readonly message: string;
184
183
  readonly name: string;
184
+ readonly message: string;
185
185
  } | undefined;
186
186
  } & {
187
- readonly status: "failed" | "completed" | "suspended";
187
+ readonly status: "completed" | "suspended" | "failed";
188
+ } & {
189
+ readonly hint?: string | undefined;
188
190
  } & {
189
191
  readonly tevmForkId?: string | undefined;
190
192
  } & {
@@ -22,7 +22,7 @@ const SimulationBalanceFunding = Schema.Array(Schema.Struct({
22
22
  }));
23
23
  var EvaluateExistingParams = class extends Schema.Class("EvaluateExistingParams")({
24
24
  actionId: Schema.String,
25
- version: Schema.optional(Schema.String),
25
+ actionExpressionId: Schema.optional(Schema.UUID),
26
26
  walletAddress: EvmAddress,
27
27
  inputValues: Schema.optional(Schema.Record({
28
28
  key: Schema.String,
@@ -450,21 +450,15 @@ declare const Transaction_base: Schema.Class<Transaction, {
450
450
  }>, never, {
451
451
  readonly id: string;
452
452
  } & {
453
- readonly blockchain: "ethereum" | "base";
453
+ readonly error?: string | null | undefined;
454
454
  } & {
455
455
  readonly txHash: string;
456
456
  } & {
457
- readonly functionSignature?: string | null | undefined;
457
+ readonly blockchain: "ethereum" | "base";
458
458
  } & {
459
- readonly error?: string | null | undefined;
459
+ readonly functionSignature?: string | null | undefined;
460
460
  } & {
461
461
  readonly blockNumber: number;
462
- } & {
463
- readonly outputs?: {
464
- readonly value: string;
465
- readonly from: string;
466
- readonly summary: string;
467
- } | undefined;
468
462
  } & {
469
463
  readonly fromAddress: string;
470
464
  } & {
@@ -478,9 +472,9 @@ declare const Transaction_base: Schema.Class<Transaction, {
478
472
  } & {
479
473
  readonly transactionMetadata: {
480
474
  readonly value: number;
475
+ readonly status: number;
481
476
  readonly from: string;
482
477
  readonly hash: string;
483
- readonly status: number;
484
478
  readonly type: string;
485
479
  readonly blockNumber: number;
486
480
  readonly blockHash: string;
@@ -511,8 +505,8 @@ declare const Transaction_base: Schema.Class<Transaction, {
511
505
  readonly removed: boolean;
512
506
  readonly emittedAfterTraceAddress: readonly number[];
513
507
  readonly implementation?: {
514
- readonly address: string;
515
508
  readonly name: string;
509
+ readonly address: string;
516
510
  readonly is7702?: boolean | undefined;
517
511
  } | undefined;
518
512
  readonly decoded?: {
@@ -540,11 +534,11 @@ declare const Transaction_base: Schema.Class<Transaction, {
540
534
  readonly txHash?: string | undefined;
541
535
  readonly tokenType: "ERC20" | "ERC721" | "ERC1155" | "NATIVE";
542
536
  readonly blockNumber: number;
543
- readonly blockTimestamp: number;
544
537
  readonly tokenAddress: string;
545
538
  readonly holderAddress: string;
546
539
  readonly holderIsContract: boolean;
547
540
  readonly balanceChange: number;
541
+ readonly blockTimestamp: number;
548
542
  readonly chainId: number;
549
543
  readonly tokenId: number;
550
544
  readonly tokenDecimals: number;
@@ -560,12 +554,12 @@ declare const Transaction_base: Schema.Class<Transaction, {
560
554
  readonly txHash: string;
561
555
  readonly tokenType: "ERC20" | "ERC721" | "ERC1155" | "NATIVE";
562
556
  readonly blockNumber: number;
563
- readonly blockTimestamp: number;
564
557
  readonly toEntityLabel?: string | null | undefined;
565
558
  readonly fromEntityLabel?: string | null | undefined;
566
559
  readonly traceAddress?: string | undefined;
567
560
  readonly logIndex?: number | undefined;
568
561
  readonly tokenAddress: string;
562
+ readonly blockTimestamp: number;
569
563
  readonly chainId: number;
570
564
  readonly tokenId: number;
571
565
  readonly tokenDecimals: number;
@@ -595,6 +589,12 @@ declare const Transaction_base: Schema.Class<Transaction, {
595
589
  }[];
596
590
  } & {
597
591
  readonly createdContracts: readonly string[];
592
+ } & {
593
+ readonly outputs?: {
594
+ readonly value: string;
595
+ readonly from: string;
596
+ readonly summary: string;
597
+ } | undefined;
598
598
  } & {
599
599
  readonly actionExecution?: {
600
600
  readonly actionId: string;
@@ -763,17 +763,17 @@ declare const LatestFunctionTransactions_base: Schema.Class<LatestFunctionTransa
763
763
  }>>;
764
764
  }>>>;
765
765
  }>, never, {
766
- readonly contractAddress?: string | undefined;
767
- } & {
768
766
  readonly blockchain?: "ethereum" | "base" | undefined;
767
+ } & {
768
+ readonly contractAddress?: string | undefined;
769
769
  } & {
770
770
  readonly transactions?: readonly {
771
771
  readonly from: string;
772
772
  readonly txHash: string;
773
773
  readonly blockNumber: number;
774
774
  readonly blockTimestamp: number;
775
- readonly blockTimestampUtc: string;
776
775
  readonly success: boolean;
776
+ readonly blockTimestampUtc: string;
777
777
  readonly functionCalls: readonly {
778
778
  readonly value: number;
779
779
  readonly signature: string;
@@ -794,10 +794,10 @@ declare const LatestFunctionTransactions_base: Schema.Class<LatestFunctionTransa
794
794
  } | null;
795
795
  }[];
796
796
  }[] | undefined;
797
- } & {
798
- readonly errorMessage?: string | undefined;
799
797
  } & {
800
798
  readonly signature?: string | undefined;
799
+ } & {
800
+ readonly errorMessage?: string | undefined;
801
801
  } & {
802
802
  readonly availableSignatures?: readonly {
803
803
  readonly name: string;
@@ -874,13 +874,11 @@ declare const LatestEventTransactions_base: Schema.Class<LatestEventTransactions
874
874
  }>>;
875
875
  }>>>;
876
876
  }>, never, {
877
- readonly contractAddress?: string | undefined;
878
- } & {
879
877
  readonly blockchain?: "ethereum" | "base" | undefined;
878
+ } & {
879
+ readonly contractAddress?: string | undefined;
880
880
  } & {
881
881
  readonly transactions?: readonly {
882
- readonly from: string;
883
- readonly txHash: string;
884
882
  readonly logs: readonly {
885
883
  readonly contractAddress: string;
886
884
  readonly contractName: string;
@@ -900,15 +898,17 @@ declare const LatestEventTransactions_base: Schema.Class<LatestEventTransactions
900
898
  readonly rawTopics: readonly string[];
901
899
  readonly rawData: string;
902
900
  }[];
901
+ readonly from: string;
902
+ readonly txHash: string;
903
903
  readonly blockNumber: number;
904
904
  readonly blockTimestamp: number;
905
- readonly blockTimestampUtc: string;
906
905
  readonly success: boolean;
906
+ readonly blockTimestampUtc: string;
907
907
  }[] | undefined;
908
- } & {
909
- readonly errorMessage?: string | undefined;
910
908
  } & {
911
909
  readonly signature?: string | undefined;
910
+ } & {
911
+ readonly errorMessage?: string | undefined;
912
912
  } & {
913
913
  readonly availableSignatures?: readonly {
914
914
  readonly name: string;
@@ -945,6 +945,10 @@ declare const LatestTxParams_base: Schema.Class<LatestTxParams, {
945
945
  topic3: Schema.optional<typeof Schema.String>;
946
946
  calledBy: Schema.optional<Schema.Array$<typeof Schema.String>>;
947
947
  }>, never, {
948
+ readonly limit?: number | undefined;
949
+ } & {
950
+ readonly offset?: number | undefined;
951
+ } & {
948
952
  readonly page?: number | undefined;
949
953
  } & {
950
954
  readonly beforeTimestamp?: number | undefined;
@@ -954,10 +958,6 @@ declare const LatestTxParams_base: Schema.Class<LatestTxParams, {
954
958
  readonly beforeBlocknumber?: number | undefined;
955
959
  } & {
956
960
  readonly afterBlocknumber?: number | undefined;
957
- } & {
958
- readonly limit?: number | undefined;
959
- } & {
960
- readonly offset?: number | undefined;
961
961
  } & {
962
962
  readonly successOnly?: boolean | undefined;
963
963
  } & {
@@ -19,10 +19,10 @@ declare const WalletBalance_base: Schema.Class<WalletBalance, {
19
19
  readonly symbol: string | null;
20
20
  } & {
21
21
  readonly address: string;
22
- } & {
23
- readonly decimals: number | null;
24
22
  } & {
25
23
  readonly valueUsd: number | null;
24
+ } & {
25
+ readonly decimals: number | null;
26
26
  } & {
27
27
  readonly amount: string | number;
28
28
  } & {
@@ -145,10 +145,10 @@ declare const WalletOverview_base: Schema.Class<WalletOverview, {
145
145
  readonly walletAddress: string;
146
146
  } & {
147
147
  readonly implementationAddress?: string | undefined;
148
- } & {
149
- readonly totalDeployedContractsCount: number;
150
148
  } & {
151
149
  readonly totalTransactionCount: number;
150
+ } & {
151
+ readonly totalDeployedContractsCount: number;
152
152
  } & {
153
153
  readonly walletType: "contract" | "eoa" | "erc7702" | "erc4337" | "multisig";
154
154
  } & {
@@ -207,18 +207,18 @@ declare const TokenTransfer_base: Schema.Class<TokenTransfer, {
207
207
  readonly txHash: string;
208
208
  } & {
209
209
  readonly blockNumber: number;
210
- } & {
211
- readonly blockTimestamp: number;
212
- } & {
213
- readonly blockTimestampUtc: string;
214
210
  } & {
215
211
  readonly logIndex: number;
212
+ } & {
213
+ readonly blockTimestamp: number;
216
214
  } & {
217
215
  readonly fromAddress: string;
218
216
  } & {
219
217
  readonly toAddress: string;
220
218
  } & {
221
219
  readonly amount: string;
220
+ } & {
221
+ readonly blockTimestampUtc: string;
222
222
  } & {
223
223
  readonly direction: "in" | "out";
224
224
  } & {
@@ -259,14 +259,14 @@ declare const TokenActivity_base: Schema.Class<TokenActivity, {
259
259
  readonly blockchain: "ethereum" | "base";
260
260
  } & {
261
261
  readonly balance: TokenBalanceInfo;
262
- } & {
263
- readonly pagination: TokenActivityPagination;
264
262
  } & {
265
263
  readonly tokenAddress: string;
266
264
  } & {
267
265
  readonly holderAddress: string;
268
266
  } & {
269
267
  readonly transfers: readonly TokenTransfer[];
268
+ } & {
269
+ readonly pagination: TokenActivityPagination;
270
270
  }, {}, {}>;
271
271
  declare class TokenActivity extends TokenActivity_base {}
272
272
  declare const WalletTxCall_base: Schema.Class<WalletTxCall, {
@@ -359,14 +359,14 @@ declare const WalletTxTransfer_base: Schema.Class<WalletTxTransfer, {
359
359
  readonly tokenType: "ERC20" | "ERC721" | "ERC1155" | "NATIVE";
360
360
  } & {
361
361
  readonly blockNumber: number;
362
- } & {
363
- readonly blockTimestamp: number;
364
362
  } & {
365
363
  readonly toEntityLabel?: string | null | undefined;
366
364
  } & {
367
365
  readonly fromEntityLabel?: string | null | undefined;
368
366
  } & {
369
367
  readonly tokenAddress: string;
368
+ } & {
369
+ readonly blockTimestamp: number;
370
370
  } & {
371
371
  readonly chainId: number;
372
372
  } & {
@@ -437,8 +437,6 @@ declare const WalletTxBalanceChange_base: Schema.Class<WalletTxBalanceChange, {
437
437
  readonly tokenType: "ERC20" | "ERC721" | "ERC1155" | "NATIVE";
438
438
  } & {
439
439
  readonly blockNumber: number;
440
- } & {
441
- readonly blockTimestamp: number;
442
440
  } & {
443
441
  readonly tokenAddress: string;
444
442
  } & {
@@ -447,6 +445,8 @@ declare const WalletTxBalanceChange_base: Schema.Class<WalletTxBalanceChange, {
447
445
  readonly holderIsContract: boolean;
448
446
  } & {
449
447
  readonly balanceChange: number;
448
+ } & {
449
+ readonly blockTimestamp: number;
450
450
  } & {
451
451
  readonly chainId: number;
452
452
  } & {
@@ -507,8 +507,6 @@ declare const WalletTransaction_base: Schema.Class<WalletTransaction, {
507
507
  readonly blockNumber: number;
508
508
  } & {
509
509
  readonly blockTimestamp: number;
510
- } & {
511
- readonly blockTimestampUtc: string;
512
510
  } & {
513
511
  readonly success: boolean;
514
512
  } & {
@@ -519,6 +517,8 @@ declare const WalletTransaction_base: Schema.Class<WalletTransaction, {
519
517
  }[];
520
518
  } & {
521
519
  readonly actionExecution?: WalletTxActionExecution | undefined;
520
+ } & {
521
+ readonly blockTimestampUtc: string;
522
522
  } & {
523
523
  readonly calls: readonly WalletTxCall[];
524
524
  } & {
@@ -561,14 +561,14 @@ declare const TransactionActivity_base: Schema.Class<TransactionActivity, {
561
561
  readonly blockchain: "ethereum" | "base";
562
562
  } & {
563
563
  readonly transactions: readonly WalletTransaction[];
564
- } & {
565
- readonly pagination: TransactionActivityPagination;
566
564
  } & {
567
565
  readonly fromAddress: string;
568
566
  } & {
569
567
  readonly totalTransactionCount: number;
570
568
  } & {
571
569
  readonly earliestTx: number | null;
570
+ } & {
571
+ readonly pagination: TransactionActivityPagination;
572
572
  } & {
573
573
  readonly toAddressesFilter?: readonly string[] | undefined;
574
574
  }, {}, {}>;
@@ -649,14 +649,14 @@ declare const DeployedContracts_base: Schema.Class<DeployedContracts, {
649
649
  pagination: typeof DeployedContractsPagination;
650
650
  }>, never, {
651
651
  readonly blockchain: "ethereum" | "base";
652
- } & {
653
- readonly deployerAddress: string;
654
- } & {
655
- readonly isEOA: boolean;
656
652
  } & {
657
653
  readonly totalDeployedContractsCount: number;
658
654
  } & {
659
655
  readonly pagination: DeployedContractsPagination;
656
+ } & {
657
+ readonly deployerAddress: string;
658
+ } & {
659
+ readonly isEOA: boolean;
660
660
  } & {
661
661
  readonly deployedContracts: readonly DeployedContract[];
662
662
  }, {}, {}>;
@@ -1,12 +1,13 @@
1
1
  import { AuthError } from "../errors.js";
2
- import { ApiKeyResponse, TokenResponse, WhoamiResponse } from "../schemas/auth.js";
2
+ import { ApiKeyListResponseType, CreatedApiKeyType, TokenResponse, WhoamiResponse } from "../schemas/auth.js";
3
3
  import { Context, Effect } from "effect";
4
4
 
5
5
  //#region src/services/AuthService.d.ts
6
6
  declare const AuthService_base: Context.TagClass<AuthService, "AuthService", {
7
7
  readonly whoami: () => Effect.Effect<WhoamiResponse, AuthError>;
8
8
  readonly refreshToken: (refreshToken: string, clientId: string) => Effect.Effect<TokenResponse, AuthError>;
9
- readonly provisionApiKey: () => Effect.Effect<ApiKeyResponse, AuthError>;
9
+ readonly provisionApiKey: (name?: string) => Effect.Effect<CreatedApiKeyType, AuthError>;
10
+ readonly listApiKeys: () => Effect.Effect<ApiKeyListResponseType, AuthError>;
10
11
  readonly revokeApiKey: (keyId: string) => Effect.Effect<void, AuthError>;
11
12
  }>;
12
13
  declare class AuthService extends AuthService_base {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@herd-labs/sdk",
3
- "version": "0.1.0",
3
+ "version": "0.3.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -31,6 +31,7 @@
31
31
  "typescript": "^5"
32
32
  },
33
33
  "dependencies": {
34
+ "@better-auth/api-key": "^1.6.9",
34
35
  "@effect/cli": "0.69.0",
35
36
  "@effect/platform": "^0.90.0",
36
37
  "@effect/cluster": "^0.45.0",