@herd-labs/sdk 0.0.5 → 0.1.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.
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/src/live/AdaptersServiceLive.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/AgentWorkflowsServiceLive.js +7 -3
- 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/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 +15 -15
- package/dist/src/schemas/agent-wallets.d.ts +4 -4
- package/dist/src/schemas/agent-workflows.d.ts +74 -199
- package/dist/src/schemas/agent-workflows.js +32 -25
- package/dist/src/schemas/bookmarks.d.ts +24 -24
- package/dist/src/schemas/codeblocks.d.ts +7 -7
- package/dist/src/schemas/collections.d.ts +7 -7
- package/dist/src/schemas/contracts.d.ts +20 -20
- package/dist/src/schemas/hal.d.ts +18 -18
- package/dist/src/schemas/transactions.d.ts +49 -49
- package/dist/src/schemas/wallets.d.ts +34 -34
- package/dist/src/services/AgentWorkflowsService.d.ts +8 -7
- package/package.json +1 -1
|
@@ -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 valueUsd: number | null;
|
|
24
22
|
} & {
|
|
25
23
|
readonly decimals: number | null;
|
|
24
|
+
} & {
|
|
25
|
+
readonly valueUsd: number | null;
|
|
26
26
|
} & {
|
|
27
27
|
readonly amount: string | number;
|
|
28
28
|
} & {
|
|
@@ -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 address: string;
|
|
42
|
-
} & {
|
|
43
41
|
readonly contractName: string;
|
|
42
|
+
} & {
|
|
43
|
+
readonly address: string;
|
|
44
44
|
} & {
|
|
45
45
|
readonly functions: readonly string[];
|
|
46
46
|
}, {}, {}>;
|
|
@@ -83,12 +83,12 @@ declare const PendingTransaction_base: Schema.Class<PendingTransaction, {
|
|
|
83
83
|
readonly value: string;
|
|
84
84
|
} & {
|
|
85
85
|
readonly method?: string | null | undefined;
|
|
86
|
-
} & {
|
|
87
|
-
readonly to: string;
|
|
88
86
|
} & {
|
|
89
87
|
readonly data: string | null;
|
|
90
88
|
} & {
|
|
91
89
|
readonly nonce: number;
|
|
90
|
+
} & {
|
|
91
|
+
readonly to: string;
|
|
92
92
|
} & {
|
|
93
93
|
readonly safeTxHash: string;
|
|
94
94
|
} & {
|
|
@@ -141,14 +141,14 @@ 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;
|
|
148
146
|
} & {
|
|
149
|
-
readonly
|
|
147
|
+
readonly implementationAddress?: string | undefined;
|
|
150
148
|
} & {
|
|
151
149
|
readonly totalDeployedContractsCount: number;
|
|
150
|
+
} & {
|
|
151
|
+
readonly totalTransactionCount: number;
|
|
152
152
|
} & {
|
|
153
153
|
readonly walletType: "contract" | "eoa" | "erc7702" | "erc4337" | "multisig";
|
|
154
154
|
} & {
|
|
@@ -209,6 +209,8 @@ declare const TokenTransfer_base: Schema.Class<TokenTransfer, {
|
|
|
209
209
|
readonly blockNumber: number;
|
|
210
210
|
} & {
|
|
211
211
|
readonly blockTimestamp: number;
|
|
212
|
+
} & {
|
|
213
|
+
readonly blockTimestampUtc: string;
|
|
212
214
|
} & {
|
|
213
215
|
readonly logIndex: number;
|
|
214
216
|
} & {
|
|
@@ -217,8 +219,6 @@ declare const TokenTransfer_base: Schema.Class<TokenTransfer, {
|
|
|
217
219
|
readonly toAddress: string;
|
|
218
220
|
} & {
|
|
219
221
|
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;
|
|
262
264
|
} & {
|
|
263
265
|
readonly tokenAddress: string;
|
|
264
266
|
} & {
|
|
265
267
|
readonly holderAddress: string;
|
|
266
268
|
} & {
|
|
267
269
|
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, {
|
|
@@ -282,11 +282,11 @@ 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
|
+
} & {
|
|
285
287
|
readonly functionSignature: string;
|
|
286
288
|
} & {
|
|
287
289
|
readonly entityLabel: string | null;
|
|
288
|
-
} & {
|
|
289
|
-
readonly contractName: string | null;
|
|
290
290
|
} & {
|
|
291
291
|
readonly functionName: string;
|
|
292
292
|
} & {
|
|
@@ -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 actionName: string;
|
|
310
308
|
} & {
|
|
311
309
|
readonly versionId: string;
|
|
310
|
+
} & {
|
|
311
|
+
readonly actionName: string;
|
|
312
312
|
} & {
|
|
313
313
|
readonly executionId: string;
|
|
314
314
|
}, {}, {}>;
|
|
@@ -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 tokenAddress: string;
|
|
364
362
|
} & {
|
|
365
363
|
readonly blockTimestamp: number;
|
|
366
364
|
} & {
|
|
367
365
|
readonly toEntityLabel?: string | null | undefined;
|
|
368
366
|
} & {
|
|
369
367
|
readonly fromEntityLabel?: string | null | undefined;
|
|
368
|
+
} & {
|
|
369
|
+
readonly tokenAddress: string;
|
|
370
370
|
} & {
|
|
371
371
|
readonly chainId: number;
|
|
372
372
|
} & {
|
|
@@ -437,10 +437,10 @@ 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 tokenAddress: string;
|
|
442
440
|
} & {
|
|
443
441
|
readonly blockTimestamp: number;
|
|
442
|
+
} & {
|
|
443
|
+
readonly tokenAddress: string;
|
|
444
444
|
} & {
|
|
445
445
|
readonly holderAddress: string;
|
|
446
446
|
} & {
|
|
@@ -505,20 +505,20 @@ declare const WalletTransaction_base: Schema.Class<WalletTransaction, {
|
|
|
505
505
|
readonly errorMessage?: string | undefined;
|
|
506
506
|
} & {
|
|
507
507
|
readonly blockNumber: number;
|
|
508
|
-
} & {
|
|
509
|
-
readonly success: boolean;
|
|
510
508
|
} & {
|
|
511
509
|
readonly blockTimestamp: number;
|
|
510
|
+
} & {
|
|
511
|
+
readonly blockTimestampUtc: string;
|
|
512
|
+
} & {
|
|
513
|
+
readonly success: boolean;
|
|
512
514
|
} & {
|
|
513
515
|
readonly createdContracts: readonly {
|
|
516
|
+
readonly contractName: string | null;
|
|
514
517
|
readonly address: string;
|
|
515
518
|
readonly entityLabel: string | null;
|
|
516
|
-
readonly contractName: string | null;
|
|
517
519
|
}[];
|
|
518
520
|
} & {
|
|
519
521
|
readonly actionExecution?: WalletTxActionExecution | undefined;
|
|
520
|
-
} & {
|
|
521
|
-
readonly blockTimestampUtc: string;
|
|
522
522
|
} & {
|
|
523
523
|
readonly calls: readonly WalletTxCall[];
|
|
524
524
|
} & {
|
|
@@ -559,16 +559,16 @@ 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 pagination: TransactionActivityPagination;
|
|
566
|
+
} & {
|
|
567
|
+
readonly fromAddress: string;
|
|
566
568
|
} & {
|
|
567
569
|
readonly totalTransactionCount: number;
|
|
568
570
|
} & {
|
|
569
571
|
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 totalDeployedContractsCount: number;
|
|
654
|
-
} & {
|
|
655
|
-
readonly pagination: DeployedContractsPagination;
|
|
656
652
|
} & {
|
|
657
653
|
readonly deployerAddress: string;
|
|
658
654
|
} & {
|
|
659
655
|
readonly isEOA: boolean;
|
|
656
|
+
} & {
|
|
657
|
+
readonly totalDeployedContractsCount: number;
|
|
658
|
+
} & {
|
|
659
|
+
readonly pagination: DeployedContractsPagination;
|
|
660
660
|
} & {
|
|
661
661
|
readonly deployedContracts: readonly DeployedContract[];
|
|
662
662
|
}, {}, {}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ServiceError } from "../errors.js";
|
|
2
|
-
import {
|
|
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:
|
|
18
|
-
readonly list: (params:
|
|
19
|
-
readonly get: (agentWorkflowId: string) => Effect.Effect<
|
|
20
|
-
readonly createRun: (params:
|
|
21
|
-
readonly submitDecision: (params:
|
|
22
|
-
readonly push: (params:
|
|
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
|