@herd-labs/sdk 0.0.5 → 0.2.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 (49) hide show
  1. package/dist/index.d.ts +4 -4
  2. package/dist/index.js +4 -4
  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.js +7 -7
  7. package/dist/src/live/AgentSafesServiceLive.js +4 -4
  8. package/dist/src/live/AgentWalletsServiceLive.d.ts +2 -2
  9. package/dist/src/live/AgentWalletsServiceLive.js +3 -3
  10. package/dist/src/live/AgentWorkflowsServiceLive.d.ts +2 -2
  11. package/dist/src/live/AgentWorkflowsServiceLive.js +12 -8
  12. package/dist/src/live/AuthServiceLive.d.ts +2 -2
  13. package/dist/src/live/AuthServiceLive.js +8 -7
  14. package/dist/src/live/BookmarksServiceLive.d.ts +2 -2
  15. package/dist/src/live/BookmarksServiceLive.js +7 -7
  16. package/dist/src/live/CodeBlocksServiceLive.d.ts +2 -2
  17. package/dist/src/live/CodeBlocksServiceLive.js +1 -2
  18. package/dist/src/live/CollectionsServiceLive.d.ts +2 -2
  19. package/dist/src/live/CollectionsServiceLive.js +5 -5
  20. package/dist/src/live/ContractsServiceLive.d.ts +2 -2
  21. package/dist/src/live/ContractsServiceLive.js +5 -5
  22. package/dist/src/live/DocsServiceLive.d.ts +2 -2
  23. package/dist/src/live/DocsServiceLive.js +3 -3
  24. package/dist/src/live/GroupsServiceLive.d.ts +2 -2
  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 +3 -3
  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.js +5 -5
  31. package/dist/src/live/http.d.ts +1 -4
  32. package/dist/src/live/http.js +15 -4
  33. package/dist/src/schemas/actions.d.ts +16 -16
  34. package/dist/src/schemas/adapters.d.ts +2 -2
  35. package/dist/src/schemas/agent-wallets.d.ts +19 -19
  36. package/dist/src/schemas/agent-workflows.d.ts +74 -199
  37. package/dist/src/schemas/agent-workflows.js +32 -25
  38. package/dist/src/schemas/auth.d.ts +22 -12
  39. package/dist/src/schemas/auth.js +16 -5
  40. package/dist/src/schemas/bookmarks.d.ts +18 -18
  41. package/dist/src/schemas/codeblocks.d.ts +8 -8
  42. package/dist/src/schemas/collections.d.ts +8 -8
  43. package/dist/src/schemas/contracts.d.ts +13 -13
  44. package/dist/src/schemas/hal.d.ts +10 -10
  45. package/dist/src/schemas/transactions.d.ts +44 -44
  46. package/dist/src/schemas/wallets.d.ts +20 -20
  47. package/dist/src/services/AgentWorkflowsService.d.ts +8 -7
  48. package/dist/src/services/AuthService.d.ts +3 -2
  49. package/package.json +2 -1
@@ -23,14 +23,14 @@ declare const CodeBlockCode_base: Schema.Class<CodeBlockCode, {
23
23
  readonly name: string;
24
24
  } & {
25
25
  readonly intent: string;
26
+ } & {
27
+ readonly publishedAt: string | null;
26
28
  } & {
27
29
  readonly code: string;
28
30
  } & {
29
31
  readonly valTownFileUrl: string;
30
32
  } & {
31
33
  readonly arguments?: unknown;
32
- } & {
33
- readonly publishedAt: string | null;
34
34
  }, {}, {}>;
35
35
  declare class CodeBlockCode extends CodeBlockCode_base {}
36
36
  declare const CodeBlockVersion_base: Schema.Class<CodeBlockVersion, {
@@ -96,15 +96,15 @@ declare const CodeBlocksSearchParams_base: Schema.Class<CodeBlocksSearchParams,
96
96
  name: Schema.optional<typeof Schema.String>;
97
97
  }>>;
98
98
  }>, never, {
99
- readonly limit: number;
100
- } & {
101
99
  readonly scope: "user" | "public";
102
100
  } & {
103
- readonly cursor?: string | undefined;
101
+ readonly limit: number;
104
102
  } & {
105
103
  readonly filters?: {
106
104
  readonly name?: string | undefined;
107
105
  } | undefined;
106
+ } & {
107
+ readonly cursor?: string | undefined;
108
108
  }, {}, {}>;
109
109
  declare class CodeBlocksSearchParams extends CodeBlocksSearchParams_base {}
110
110
  declare const CodeBlocksSearchResponse_base: Schema.Class<CodeBlocksSearchResponse, {
@@ -204,8 +204,8 @@ declare const CodeBlockExecuteResponse_base: Schema.Class<CodeBlockExecuteRespon
204
204
  } & {
205
205
  readonly error?: {
206
206
  readonly message: string;
207
- readonly status?: number | undefined;
208
207
  readonly body?: unknown;
208
+ readonly status?: number | undefined;
209
209
  } | undefined;
210
210
  } & {
211
211
  readonly logs?: readonly CodeBlockLogEntry[] | undefined;
@@ -263,12 +263,12 @@ declare const CreateCodeVersionResponse_base: Schema.Class<CreateCodeVersionResp
263
263
  readonly name: string;
264
264
  } & {
265
265
  readonly intent: string;
266
+ } & {
267
+ readonly publishedAt: string | null;
266
268
  } & {
267
269
  readonly code: string;
268
270
  } & {
269
271
  readonly valTownFileUrl: string;
270
- } & {
271
- readonly publishedAt: string | null;
272
272
  }, {}, {}>;
273
273
  declare class CreateCodeVersionResponse extends CreateCodeVersionResponse_base {}
274
274
  declare const UpdateCodeBlockMetadataParams_base: Schema.Class<UpdateCodeBlockMetadataParams, {
@@ -11,10 +11,10 @@ declare const CollectionSpecItem_base: Schema.Class<CollectionSpecItem, {
11
11
  expressionRef: typeof Schema.String;
12
12
  }>, never, {
13
13
  readonly id: string;
14
- } & {
15
- readonly expressionRef: string;
16
14
  } & {
17
15
  readonly type: "action" | "adapter";
16
+ } & {
17
+ readonly expressionRef: string;
18
18
  }, {}, {}>;
19
19
  declare class CollectionSpecItem extends CollectionSpecItem_base {}
20
20
  declare const CollectionSpec_base: Schema.Class<CollectionSpec, {
@@ -92,15 +92,15 @@ declare const CollectionsSearchParams_base: Schema.Class<CollectionsSearchParams
92
92
  name: Schema.optional<typeof Schema.String>;
93
93
  }>>;
94
94
  }>, never, {
95
- readonly limit: number;
95
+ readonly offset: number;
96
+ } & {
97
+ readonly scope?: readonly ("yours" | "verified" | "all")[] | undefined;
96
98
  } & {
97
- readonly scope?: readonly ("yours" | "all" | "verified")[] | undefined;
99
+ readonly limit: number;
98
100
  } & {
99
101
  readonly filters?: {
100
102
  readonly name?: string | undefined;
101
103
  } | undefined;
102
- } & {
103
- readonly offset: number;
104
104
  }, {}, {}>;
105
105
  declare class CollectionsSearchParams extends CollectionsSearchParams_base {}
106
106
  declare const CollectionsSearchResponse_base: Schema.Class<CollectionsSearchResponse, {
@@ -149,8 +149,8 @@ declare const CreateCollectionParams_base: Schema.Class<CreateCollectionParams,
149
149
  readonly spec: {
150
150
  readonly items: readonly {
151
151
  readonly id: string;
152
- readonly expressionRef: string;
153
152
  readonly type: "action" | "adapter";
153
+ readonly expressionRef: string;
154
154
  }[];
155
155
  readonly version: "1.0";
156
156
  };
@@ -230,8 +230,8 @@ declare const UpdateCollectionParams_base: Schema.Class<UpdateCollectionParams,
230
230
  readonly spec?: {
231
231
  readonly items: readonly {
232
232
  readonly id: string;
233
- readonly expressionRef: string;
234
233
  readonly type: "action" | "adapter";
234
+ readonly expressionRef: string;
235
235
  }[];
236
236
  readonly version: "1.0";
237
237
  } | undefined;
@@ -1,5 +1,5 @@
1
1
  import { Schema } from "effect";
2
- import * as effect_Brand0 from "effect/Brand";
2
+ import * as effect_Brand13 from "effect/Brand";
3
3
 
4
4
  //#region src/schemas/contracts.d.ts
5
5
  declare const FunctionSummary_base: Schema.Class<FunctionSummary, {
@@ -71,7 +71,7 @@ declare const TopHolder_base: Schema.Class<TopHolder, {
71
71
  } & {
72
72
  readonly address: string;
73
73
  } & {
74
- readonly type: "contract" | "wallet";
74
+ readonly type: "wallet" | "contract";
75
75
  } & {
76
76
  readonly rank: number;
77
77
  } & {
@@ -252,11 +252,11 @@ declare const ContractMetadata_base: Schema.Class<ContractMetadata, {
252
252
  signatureImplementations: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.String>>;
253
253
  signatureImplementationNames: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.String>>;
254
254
  }>, never, {
255
+ readonly contractName?: string | undefined;
256
+ } & {
255
257
  readonly errorMessage?: string | undefined;
256
258
  } & {
257
259
  readonly addressDetails?: AddressDetails | undefined;
258
- } & {
259
- readonly contractName?: string | undefined;
260
260
  } & {
261
261
  readonly abi?: readonly {
262
262
  readonly [x: string]: unknown;
@@ -328,11 +328,11 @@ 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_Brand13.Brand<"EvmAddress">;
332
+ } & {
331
333
  readonly blockchain: "ethereum" | "base";
332
334
  } & {
333
335
  readonly code?: string | undefined;
334
- } & {
335
- readonly contractAddress: string & effect_Brand0.Brand<"EvmAddress">;
336
336
  } & {
337
337
  readonly contractName: string;
338
338
  } & {
@@ -358,7 +358,7 @@ declare const GetContractCodeParams_base: Schema.Class<GetContractCodeParams, {
358
358
  } & {
359
359
  readonly query: string;
360
360
  } & {
361
- readonly contractAddresses: readonly (string & effect_Brand0.Brand<"EvmAddress">)[];
361
+ readonly contractAddresses: readonly (string & effect_Brand13.Brand<"EvmAddress">)[];
362
362
  } & {
363
363
  readonly includeProxies?: boolean | undefined;
364
364
  } & {
@@ -396,13 +396,13 @@ declare const DiffVersionInfo_base: Schema.Class<DiffVersionInfo, {
396
396
  blockNumber: typeof Schema.Number;
397
397
  contractName: typeof Schema.String;
398
398
  }>, never, {
399
- readonly versionNumber: number;
400
- } & {
401
399
  readonly contractName: string;
402
- } & {
403
- readonly implementationAddress: string;
404
400
  } & {
405
401
  readonly blockNumber: number;
402
+ } & {
403
+ readonly versionNumber: number;
404
+ } & {
405
+ readonly implementationAddress: string;
406
406
  }, {}, {}>;
407
407
  declare class DiffVersionInfo extends DiffVersionInfo_base {}
408
408
  declare const DiffEntry_base: Schema.Class<DiffEntry, {
@@ -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 blockchain?: string | undefined;
436
- } & {
437
435
  readonly contractAddress?: string | undefined;
436
+ } & {
437
+ readonly blockchain?: 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_Brand1 from "effect/Brand";
2
+ import * as effect_Brand11 from "effect/Brand";
3
3
 
4
4
  //#region src/schemas/hal.d.ts
5
5
  declare const EvaluateParams_base: Schema.Class<EvaluateParams, {
@@ -27,7 +27,7 @@ declare const EvaluateParams_base: Schema.Class<EvaluateParams, {
27
27
  }>, never, {
28
28
  readonly expression: unknown;
29
29
  } & {
30
- readonly walletAddress: string & effect_Brand1.Brand<"EvmAddress">;
30
+ readonly walletAddress: string & effect_Brand11.Brand<"EvmAddress">;
31
31
  } & {
32
32
  readonly inputValues?: {
33
33
  readonly [x: string]: unknown;
@@ -66,11 +66,11 @@ declare const EvaluateExistingParams_base: Schema.Class<EvaluateExistingParams,
66
66
  tevmForkId: Schema.optional<typeof Schema.String>;
67
67
  simulationBlockNumber: Schema.optional<typeof Schema.Number>;
68
68
  }>, never, {
69
- readonly actionId: string;
69
+ readonly walletAddress: string & effect_Brand11.Brand<"EvmAddress">;
70
70
  } & {
71
71
  readonly version?: string | undefined;
72
72
  } & {
73
- readonly walletAddress: string & effect_Brand1.Brand<"EvmAddress">;
73
+ readonly actionId: string;
74
74
  } & {
75
75
  readonly inputValues?: {
76
76
  readonly [x: string]: unknown;
@@ -127,17 +127,17 @@ declare const TransactionStatus_base: Schema.Class<TransactionStatus, {
127
127
  } & {
128
128
  readonly status: "success" | "failed" | "pending";
129
129
  } & {
130
- readonly blockNumber: number | null;
130
+ readonly transactionHash: string | null;
131
131
  } & {
132
132
  readonly batchName: string | null;
133
133
  } & {
134
134
  readonly batchStepIndex: number | null;
135
135
  } & {
136
136
  readonly toContractName: string | null;
137
- } & {
138
- readonly transactionHash: string | null;
139
137
  } & {
140
138
  readonly transactionErrorMessage: string | null;
139
+ } & {
140
+ readonly blockNumber: number | null;
141
141
  } & {
142
142
  readonly blockTimestamp: number | null;
143
143
  } & {
@@ -177,11 +177,9 @@ declare const EvaluateResponse_base: Schema.Class<EvaluateResponse, {
177
177
  tevmForkId: Schema.optional<typeof Schema.String>;
178
178
  tevmForkBlockchain: Schema.optional<Schema.Literal<["ethereum", "base"]>>;
179
179
  }>, never, {
180
- readonly hint?: string | undefined;
181
- } & {
182
180
  readonly error?: {
183
- readonly message: string;
184
181
  readonly name: string;
182
+ readonly message: string;
185
183
  } | undefined;
186
184
  } & {
187
185
  readonly status: "failed" | "completed" | "suspended";
@@ -189,6 +187,8 @@ declare const EvaluateResponse_base: Schema.Class<EvaluateResponse, {
189
187
  readonly tevmForkId?: string | undefined;
190
188
  } & {
191
189
  readonly result?: unknown;
190
+ } & {
191
+ readonly hint?: string | undefined;
192
192
  } & {
193
193
  readonly transactionStatuses?: readonly TransactionStatus[] | undefined;
194
194
  } & {
@@ -450,19 +450,25 @@ declare const Transaction_base: Schema.Class<Transaction, {
450
450
  }>, never, {
451
451
  readonly id: string;
452
452
  } & {
453
- readonly txHash: string;
453
+ readonly functionSignature?: string | null | undefined;
454
454
  } & {
455
455
  readonly blockchain: "ethereum" | "base";
456
456
  } & {
457
457
  readonly error?: string | null | undefined;
458
458
  } & {
459
- readonly functionSignature?: string | null | undefined;
459
+ readonly outputs?: {
460
+ readonly value: string;
461
+ readonly from: string;
462
+ readonly summary: string;
463
+ } | undefined;
460
464
  } & {
461
- readonly blockNumber: number;
465
+ readonly txHash: string;
462
466
  } & {
463
467
  readonly tevmForkId?: string | null | undefined;
464
468
  } & {
465
469
  readonly success: boolean;
470
+ } & {
471
+ readonly blockNumber: number;
466
472
  } & {
467
473
  readonly fromAddress: string;
468
474
  } & {
@@ -474,10 +480,10 @@ declare const Transaction_base: Schema.Class<Transaction, {
474
480
  } & {
475
481
  readonly transactionMetadata: {
476
482
  readonly value: number;
477
- readonly status: number;
478
483
  readonly from: string;
479
- readonly hash: string;
480
484
  readonly type: string;
485
+ readonly hash: string;
486
+ readonly status: number;
481
487
  readonly blockNumber: number;
482
488
  readonly to: string | null;
483
489
  readonly blockHash: string;
@@ -497,8 +503,8 @@ declare const Transaction_base: Schema.Class<Transaction, {
497
503
  } & {
498
504
  readonly decodedLogs: readonly {
499
505
  readonly address: string;
500
- readonly blockNumber: number;
501
506
  readonly transactionHash: string;
507
+ readonly blockNumber: number;
502
508
  readonly data: string;
503
509
  readonly blockHash: string;
504
510
  readonly topics: readonly string[];
@@ -534,14 +540,14 @@ declare const Transaction_base: Schema.Class<Transaction, {
534
540
  } & {
535
541
  readonly balanceChanges: readonly {
536
542
  readonly txHash?: string | undefined;
537
- readonly tokenType: "ERC20" | "ERC721" | "ERC1155" | "NATIVE";
538
- readonly blockNumber: number;
539
543
  readonly tokenAddress: string;
544
+ readonly blockNumber: number;
540
545
  readonly blockTimestamp: number;
541
546
  readonly holderAddress: string;
542
547
  readonly holderIsContract: boolean;
543
548
  readonly balanceChange: number;
544
549
  readonly chainId: number;
550
+ readonly tokenType: "NATIVE" | "ERC20" | "ERC721" | "ERC1155";
545
551
  readonly tokenId: number;
546
552
  readonly tokenDecimals: number;
547
553
  readonly tokenName: string;
@@ -554,15 +560,15 @@ declare const Transaction_base: Schema.Class<Transaction, {
554
560
  } & {
555
561
  readonly transfers: readonly {
556
562
  readonly txHash: string;
557
- readonly tokenType: "ERC20" | "ERC721" | "ERC1155" | "NATIVE";
558
- readonly blockNumber: number;
559
563
  readonly tokenAddress: string;
564
+ readonly blockNumber: number;
560
565
  readonly blockTimestamp: number;
561
566
  readonly toEntityLabel?: string | null | undefined;
562
567
  readonly fromEntityLabel?: string | null | undefined;
563
568
  readonly traceAddress?: string | undefined;
564
569
  readonly logIndex?: number | undefined;
565
570
  readonly chainId: number;
571
+ readonly tokenType: "NATIVE" | "ERC20" | "ERC721" | "ERC1155";
566
572
  readonly tokenId: number;
567
573
  readonly tokenDecimals: number;
568
574
  readonly tokenName: string;
@@ -591,12 +597,6 @@ declare const Transaction_base: Schema.Class<Transaction, {
591
597
  }[];
592
598
  } & {
593
599
  readonly createdContracts: readonly string[];
594
- } & {
595
- readonly outputs?: {
596
- readonly value: string;
597
- readonly from: string;
598
- readonly summary: string;
599
- } | undefined;
600
600
  } & {
601
601
  readonly actionExecution?: {
602
602
  readonly actionId: string;
@@ -763,29 +763,19 @@ declare const LatestFunctionTransactions_base: Schema.Class<LatestFunctionTransa
763
763
  }>>;
764
764
  }>>>;
765
765
  }>, never, {
766
- readonly blockchain?: "ethereum" | "base" | undefined;
767
- } & {
768
766
  readonly contractAddress?: string | undefined;
769
767
  } & {
770
- readonly signature?: string | undefined;
771
- } & {
772
- readonly errorMessage?: string | undefined;
773
- } & {
774
- readonly availableSignatures?: readonly {
775
- readonly name: string;
776
- readonly signature: string;
777
- }[] | undefined;
768
+ readonly blockchain?: "ethereum" | "base" | undefined;
778
769
  } & {
779
770
  readonly transactions?: readonly {
780
- readonly txHash: string;
781
771
  readonly from: string;
782
- readonly blockNumber: number;
772
+ readonly txHash: string;
783
773
  readonly success: boolean;
774
+ readonly blockNumber: number;
784
775
  readonly blockTimestamp: number;
785
776
  readonly blockTimestampUtc: string;
786
777
  readonly functionCalls: readonly {
787
778
  readonly value: number;
788
- readonly signature: string;
789
779
  readonly functionName: string;
790
780
  readonly inputArgs: {
791
781
  readonly [x: string]: unknown;
@@ -793,6 +783,7 @@ declare const LatestFunctionTransactions_base: Schema.Class<LatestFunctionTransa
793
783
  readonly outputArgs: {
794
784
  readonly [x: string]: unknown;
795
785
  } | null;
786
+ readonly signature: string;
796
787
  readonly traceInput: string;
797
788
  readonly callerFunctionDetails: {
798
789
  readonly functionSignature: string | null;
@@ -803,6 +794,15 @@ declare const LatestFunctionTransactions_base: Schema.Class<LatestFunctionTransa
803
794
  } | null;
804
795
  }[];
805
796
  }[] | undefined;
797
+ } & {
798
+ readonly signature?: string | undefined;
799
+ } & {
800
+ readonly errorMessage?: string | undefined;
801
+ } & {
802
+ readonly availableSignatures?: readonly {
803
+ readonly name: string;
804
+ readonly signature: string;
805
+ }[] | undefined;
806
806
  }, {}, {}>;
807
807
  declare class LatestFunctionTransactions extends LatestFunctionTransactions_base {}
808
808
  declare const LatestEventTransactions_base: Schema.Class<LatestEventTransactions, {
@@ -874,21 +874,12 @@ declare const LatestEventTransactions_base: Schema.Class<LatestEventTransactions
874
874
  }>>;
875
875
  }>>>;
876
876
  }>, never, {
877
- readonly blockchain?: "ethereum" | "base" | undefined;
878
- } & {
879
877
  readonly contractAddress?: string | undefined;
880
878
  } & {
881
- readonly signature?: string | undefined;
882
- } & {
883
- readonly errorMessage?: string | undefined;
884
- } & {
885
- readonly availableSignatures?: readonly {
886
- readonly name: string;
887
- readonly signature: string;
888
- }[] | undefined;
879
+ readonly blockchain?: "ethereum" | "base" | undefined;
889
880
  } & {
890
881
  readonly transactions?: readonly {
891
- readonly txHash: string;
882
+ readonly from: string;
892
883
  readonly logs: readonly {
893
884
  readonly contractAddress: string;
894
885
  readonly contractName: string;
@@ -908,12 +899,21 @@ declare const LatestEventTransactions_base: Schema.Class<LatestEventTransactions
908
899
  readonly rawTopics: readonly string[];
909
900
  readonly rawData: string;
910
901
  }[];
911
- readonly from: string;
912
- readonly blockNumber: number;
902
+ readonly txHash: string;
913
903
  readonly success: boolean;
904
+ readonly blockNumber: number;
914
905
  readonly blockTimestamp: number;
915
906
  readonly blockTimestampUtc: string;
916
907
  }[] | undefined;
908
+ } & {
909
+ readonly signature?: string | undefined;
910
+ } & {
911
+ readonly errorMessage?: string | undefined;
912
+ } & {
913
+ readonly availableSignatures?: readonly {
914
+ readonly name: string;
915
+ readonly signature: string;
916
+ }[] | undefined;
917
917
  }, {}, {}>;
918
918
  declare class LatestEventTransactions extends LatestEventTransactions_base {}
919
919
  declare const LatestTxParams_base: Schema.Class<LatestTxParams, {
@@ -945,6 +945,8 @@ 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 offset?: number | undefined;
949
+ } & {
948
950
  readonly limit?: number | undefined;
949
951
  } & {
950
952
  readonly page?: number | undefined;
@@ -956,8 +958,6 @@ declare const LatestTxParams_base: Schema.Class<LatestTxParams, {
956
958
  readonly beforeBlocknumber?: number | undefined;
957
959
  } & {
958
960
  readonly afterBlocknumber?: number | undefined;
959
- } & {
960
- readonly offset?: number | undefined;
961
961
  } & {
962
962
  readonly successOnly?: boolean | undefined;
963
963
  } & {
@@ -19,12 +19,12 @@ declare const WalletBalance_base: Schema.Class<WalletBalance, {
19
19
  readonly symbol: string | null;
20
20
  } & {
21
21
  readonly address: string;
22
+ } & {
23
+ readonly amount: string | number;
22
24
  } & {
23
25
  readonly valueUsd: number | null;
24
26
  } & {
25
27
  readonly decimals: number | null;
26
- } & {
27
- readonly amount: string | number;
28
28
  } & {
29
29
  readonly logoUrl: string | null;
30
30
  }, {}, {}>;
@@ -141,10 +141,10 @@ declare const WalletOverview_base: Schema.Class<WalletOverview, {
141
141
  balances: Schema.Array$<typeof WalletBalance>;
142
142
  }>, never, {
143
143
  readonly blockchain: "ethereum" | "base";
144
- } & {
145
- readonly implementationAddress?: string | undefined;
146
144
  } & {
147
145
  readonly walletAddress: string;
146
+ } & {
147
+ readonly implementationAddress?: string | undefined;
148
148
  } & {
149
149
  readonly totalTransactionCount: number;
150
150
  } & {
@@ -257,14 +257,14 @@ 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
265
  readonly transfers: readonly TokenTransfer[];
266
+ } & {
267
+ readonly balance: TokenBalanceInfo;
268
268
  } & {
269
269
  readonly pagination: TokenActivityPagination;
270
270
  }, {}, {}>;
@@ -283,12 +283,12 @@ declare const WalletTxCall_base: Schema.Class<WalletTxCall, {
283
283
  entityLabel: Schema.NullOr<typeof Schema.String>;
284
284
  }>, never, {
285
285
  readonly functionSignature: string;
286
- } & {
287
- readonly entityLabel: string | null;
288
286
  } & {
289
287
  readonly contractName: string | null;
290
288
  } & {
291
289
  readonly functionName: string;
290
+ } & {
291
+ readonly entityLabel: string | null;
292
292
  } & {
293
293
  readonly callee: string;
294
294
  }, {}, {}>;
@@ -356,11 +356,9 @@ declare const WalletTxTransfer_base: Schema.Class<WalletTxTransfer, {
356
356
  }>, never, {
357
357
  readonly txHash: string;
358
358
  } & {
359
- readonly tokenType: "ERC20" | "ERC721" | "ERC1155" | "NATIVE";
359
+ readonly tokenAddress: string;
360
360
  } & {
361
361
  readonly blockNumber: number;
362
- } & {
363
- readonly tokenAddress: string;
364
362
  } & {
365
363
  readonly blockTimestamp: number;
366
364
  } & {
@@ -369,6 +367,8 @@ declare const WalletTxTransfer_base: Schema.Class<WalletTxTransfer, {
369
367
  readonly fromEntityLabel?: string | null | undefined;
370
368
  } & {
371
369
  readonly chainId: number;
370
+ } & {
371
+ readonly tokenType: "NATIVE" | "ERC20" | "ERC721" | "ERC1155";
372
372
  } & {
373
373
  readonly tokenId: number;
374
374
  } & {
@@ -434,11 +434,9 @@ declare const WalletTxBalanceChange_base: Schema.Class<WalletTxBalanceChange, {
434
434
  }>, never, {
435
435
  readonly txHash?: string | undefined;
436
436
  } & {
437
- readonly tokenType: "ERC20" | "ERC721" | "ERC1155" | "NATIVE";
437
+ readonly tokenAddress: string;
438
438
  } & {
439
439
  readonly blockNumber: number;
440
- } & {
441
- readonly tokenAddress: string;
442
440
  } & {
443
441
  readonly blockTimestamp: number;
444
442
  } & {
@@ -449,6 +447,8 @@ declare const WalletTxBalanceChange_base: Schema.Class<WalletTxBalanceChange, {
449
447
  readonly balanceChange: number;
450
448
  } & {
451
449
  readonly chainId: number;
450
+ } & {
451
+ readonly tokenType: "NATIVE" | "ERC20" | "ERC721" | "ERC1155";
452
452
  } & {
453
453
  readonly tokenId: number;
454
454
  } & {
@@ -502,23 +502,23 @@ declare const WalletTransaction_base: Schema.Class<WalletTransaction, {
502
502
  }>, never, {
503
503
  readonly txHash: string;
504
504
  } & {
505
- readonly errorMessage?: string | undefined;
505
+ readonly success: boolean;
506
506
  } & {
507
507
  readonly blockNumber: number;
508
- } & {
509
- readonly success: boolean;
510
508
  } & {
511
509
  readonly blockTimestamp: number;
512
510
  } & {
513
511
  readonly createdContracts: readonly {
514
512
  readonly address: string;
515
- readonly entityLabel: string | null;
516
513
  readonly contractName: string | null;
514
+ readonly entityLabel: string | null;
517
515
  }[];
518
516
  } & {
519
517
  readonly actionExecution?: WalletTxActionExecution | undefined;
520
518
  } & {
521
519
  readonly blockTimestampUtc: string;
520
+ } & {
521
+ readonly errorMessage?: string | undefined;
522
522
  } & {
523
523
  readonly calls: readonly WalletTxCall[];
524
524
  } & {
@@ -559,10 +559,10 @@ declare const TransactionActivity_base: Schema.Class<TransactionActivity, {
559
559
  pagination: typeof TransactionActivityPagination;
560
560
  }>, never, {
561
561
  readonly blockchain: "ethereum" | "base";
562
- } & {
563
- readonly fromAddress: string;
564
562
  } & {
565
563
  readonly transactions: readonly WalletTransaction[];
564
+ } & {
565
+ readonly fromAddress: string;
566
566
  } & {
567
567
  readonly totalTransactionCount: number;
568
568
  } & {
@@ -1,5 +1,5 @@
1
1
  import { ServiceError } from "../errors.js";
2
- import { AgentWorkflowWithRuns, CreateAgentWorkflowParams, CreateAgentWorkflowResponse, CreateAgentWorkflowRunParams, CreateAgentWorkflowRunResponse, ListAgentWorkflowsParams, ListAgentWorkflowsResponse, PushAgentWorkflowParams, PushAgentWorkflowResponse, SubmitAgentWorkflowDecisionParams, SubmitAgentWorkflowDecisionResponse } from "../schemas/agent-workflows.js";
2
+ import { AgentWorkflowWithRunsType, CreateAgentWorkflowParamsType, CreateAgentWorkflowResponseType, CreateAgentWorkflowRunParamsType, CreateAgentWorkflowRunResponseType, ExecuteSafeTxParamsType, ExecuteSafeTxResponseType, ListAgentWorkflowsParamsType, ListAgentWorkflowsResponseType, PushAgentWorkflowParamsType, PushAgentWorkflowResponseType, SubmitAgentWorkflowDecisionParamsType, SubmitAgentWorkflowDecisionResponseType } from "../schemas/agent-workflows.js";
3
3
  import { Context, Effect } from "effect";
4
4
 
5
5
  //#region src/services/AgentWorkflowsService.d.ts
@@ -14,12 +14,13 @@ declare class AgentWorkflowRunNotFoundError extends Error {
14
14
  constructor(runId: string);
15
15
  }
16
16
  declare const AgentWorkflowsService_base: Context.TagClass<AgentWorkflowsService, "AgentWorkflowsService", {
17
- readonly create: (params: CreateAgentWorkflowParams) => Effect.Effect<CreateAgentWorkflowResponse, ServiceError>;
18
- readonly list: (params: ListAgentWorkflowsParams) => Effect.Effect<ListAgentWorkflowsResponse, ServiceError>;
19
- readonly get: (agentWorkflowId: string) => Effect.Effect<AgentWorkflowWithRuns, AgentWorkflowNotFoundError | ServiceError>;
20
- readonly createRun: (params: CreateAgentWorkflowRunParams) => Effect.Effect<CreateAgentWorkflowRunResponse, AgentWorkflowNotFoundError | ServiceError>;
21
- readonly submitDecision: (params: SubmitAgentWorkflowDecisionParams) => Effect.Effect<SubmitAgentWorkflowDecisionResponse, AgentWorkflowRunNotFoundError | ServiceError>;
22
- readonly push: (params: PushAgentWorkflowParams) => Effect.Effect<PushAgentWorkflowResponse, AgentWorkflowRunNotFoundError | ServiceError>;
17
+ readonly create: (params: CreateAgentWorkflowParamsType) => Effect.Effect<CreateAgentWorkflowResponseType, ServiceError>;
18
+ readonly list: (params: ListAgentWorkflowsParamsType) => Effect.Effect<ListAgentWorkflowsResponseType, ServiceError>;
19
+ readonly get: (agentWorkflowId: string) => Effect.Effect<AgentWorkflowWithRunsType, AgentWorkflowNotFoundError | ServiceError>;
20
+ readonly createRun: (params: CreateAgentWorkflowRunParamsType) => Effect.Effect<CreateAgentWorkflowRunResponseType, AgentWorkflowNotFoundError | ServiceError>;
21
+ readonly submitDecision: (params: SubmitAgentWorkflowDecisionParamsType) => Effect.Effect<SubmitAgentWorkflowDecisionResponseType, AgentWorkflowRunNotFoundError | ServiceError>;
22
+ readonly push: (params: PushAgentWorkflowParamsType) => Effect.Effect<PushAgentWorkflowResponseType, AgentWorkflowRunNotFoundError | ServiceError>;
23
+ readonly executeSafeTx: (params: ExecuteSafeTxParamsType) => Effect.Effect<ExecuteSafeTxResponseType, AgentWorkflowRunNotFoundError | ServiceError>;
23
24
  }>;
24
25
  declare class AgentWorkflowsService extends AgentWorkflowsService_base {}
25
26
  //#endregion
@@ -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 {}