@herd-labs/sdk 0.0.4 → 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 +14 -3
- package/dist/index.js +14 -3
- package/dist/src/live/AdaptersServiceLive.d.ts +2 -2
- package/dist/src/live/AgentSafesServiceLive.d.ts +9 -0
- package/dist/src/live/AgentSafesServiceLive.js +19 -0
- package/dist/src/live/AgentWalletsServiceLive.d.ts +9 -0
- package/dist/src/live/AgentWalletsServiceLive.js +18 -0
- package/dist/src/live/AgentWorkflowsServiceLive.d.ts +9 -0
- package/dist/src/live/AgentWorkflowsServiceLive.js +37 -0
- 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/ContractsServiceLive.js +1 -6
- package/dist/src/live/DocsServiceLive.d.ts +2 -2
- package/dist/src/live/GroupsServiceLive.d.ts +9 -0
- package/dist/src/live/GroupsServiceLive.js +26 -0
- 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 +8 -8
- package/dist/src/schemas/agent-wallets.d.ts +226 -0
- package/dist/src/schemas/agent-wallets.js +68 -0
- package/dist/src/schemas/agent-workflows.d.ts +120 -0
- package/dist/src/schemas/agent-workflows.js +79 -0
- package/dist/src/schemas/auth.d.ts +15 -1
- package/dist/src/schemas/auth.js +4 -2
- package/dist/src/schemas/bookmarks.d.ts +23 -23
- package/dist/src/schemas/codeblocks.d.ts +2 -2
- package/dist/src/schemas/collections.d.ts +6 -6
- package/dist/src/schemas/contracts.d.ts +26 -239
- package/dist/src/schemas/contracts.js +1 -62
- package/dist/src/schemas/groups.d.ts +94 -0
- package/dist/src/schemas/groups.js +62 -0
- package/dist/src/schemas/hal.d.ts +23 -23
- package/dist/src/schemas/transactions.d.ts +85 -85
- package/dist/src/schemas/wallets.d.ts +60 -60
- package/dist/src/services/AgentSafesService.d.ts +14 -0
- package/dist/src/services/AgentSafesService.js +7 -0
- package/dist/src/services/AgentWalletsService.d.ts +13 -0
- package/dist/src/services/AgentWalletsService.js +7 -0
- package/dist/src/services/AgentWorkflowsService.d.ts +27 -0
- package/dist/src/services/AgentWorkflowsService.js +21 -0
- package/dist/src/services/ContractsService.d.ts +1 -2
- package/dist/src/services/GroupsService.d.ts +34 -0
- package/dist/src/services/GroupsService.js +14 -0
- package/package.json +1 -1
|
@@ -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;
|
|
24
22
|
} & {
|
|
25
23
|
readonly decimals: number | null;
|
|
26
24
|
} & {
|
|
27
25
|
readonly valueUsd: number | null;
|
|
26
|
+
} & {
|
|
27
|
+
readonly amount: string | number;
|
|
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 address: string;
|
|
42
|
-
} & {
|
|
43
41
|
readonly contractName: string;
|
|
42
|
+
} & {
|
|
43
|
+
readonly address: 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 to: string;
|
|
88
86
|
} & {
|
|
89
87
|
readonly data: string | null;
|
|
90
|
-
} & {
|
|
91
|
-
readonly safeTxHash: string;
|
|
92
88
|
} & {
|
|
93
89
|
readonly nonce: number;
|
|
90
|
+
} & {
|
|
91
|
+
readonly to: string;
|
|
92
|
+
} & {
|
|
93
|
+
readonly safeTxHash: string;
|
|
94
94
|
} & {
|
|
95
95
|
readonly submissionDate?: string | undefined;
|
|
96
96
|
} & {
|
|
@@ -144,13 +144,13 @@ declare const WalletOverview_base: Schema.Class<WalletOverview, {
|
|
|
144
144
|
} & {
|
|
145
145
|
readonly walletAddress: string;
|
|
146
146
|
} & {
|
|
147
|
-
readonly
|
|
147
|
+
readonly implementationAddress?: string | undefined;
|
|
148
148
|
} & {
|
|
149
149
|
readonly totalDeployedContractsCount: number;
|
|
150
150
|
} & {
|
|
151
|
-
readonly
|
|
151
|
+
readonly totalTransactionCount: number;
|
|
152
152
|
} & {
|
|
153
|
-
readonly
|
|
153
|
+
readonly walletType: "contract" | "eoa" | "erc7702" | "erc4337" | "multisig";
|
|
154
154
|
} & {
|
|
155
155
|
readonly erc7702Delegation?: Erc7702Delegation | undefined;
|
|
156
156
|
} & {
|
|
@@ -210,19 +210,19 @@ declare const TokenTransfer_base: Schema.Class<TokenTransfer, {
|
|
|
210
210
|
} & {
|
|
211
211
|
readonly blockTimestamp: number;
|
|
212
212
|
} & {
|
|
213
|
-
readonly
|
|
213
|
+
readonly blockTimestampUtc: string;
|
|
214
|
+
} & {
|
|
215
|
+
readonly logIndex: number;
|
|
214
216
|
} & {
|
|
215
217
|
readonly fromAddress: string;
|
|
216
218
|
} & {
|
|
217
219
|
readonly toAddress: string;
|
|
218
220
|
} & {
|
|
219
|
-
readonly
|
|
221
|
+
readonly amount: string;
|
|
220
222
|
} & {
|
|
221
|
-
readonly
|
|
223
|
+
readonly direction: "in" | "out";
|
|
222
224
|
} & {
|
|
223
225
|
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,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 tokenAddress: string;
|
|
262
|
-
} & {
|
|
263
|
-
readonly holderAddress: string;
|
|
264
260
|
} & {
|
|
265
261
|
readonly balance: TokenBalanceInfo;
|
|
266
262
|
} & {
|
|
267
263
|
readonly pagination: TokenActivityPagination;
|
|
264
|
+
} & {
|
|
265
|
+
readonly tokenAddress: string;
|
|
266
|
+
} & {
|
|
267
|
+
readonly holderAddress: string;
|
|
268
268
|
} & {
|
|
269
269
|
readonly transfers: readonly TokenTransfer[];
|
|
270
270
|
}, {}, {}>;
|
|
@@ -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 functionSignature: string;
|
|
286
|
-
} & {
|
|
287
285
|
readonly contractName: string | null;
|
|
288
286
|
} & {
|
|
289
|
-
readonly
|
|
287
|
+
readonly functionSignature: string;
|
|
288
|
+
} & {
|
|
289
|
+
readonly entityLabel: string | null;
|
|
290
290
|
} & {
|
|
291
291
|
readonly functionName: string;
|
|
292
292
|
} & {
|
|
293
|
-
readonly
|
|
293
|
+
readonly callee: string;
|
|
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 actionName: string;
|
|
310
308
|
} & {
|
|
311
309
|
readonly versionId: string;
|
|
310
|
+
} & {
|
|
311
|
+
readonly actionName: string;
|
|
312
312
|
} & {
|
|
313
313
|
readonly executionId: string;
|
|
314
314
|
}, {}, {}>;
|
|
@@ -356,17 +356,17 @@ declare const WalletTxTransfer_base: Schema.Class<WalletTxTransfer, {
|
|
|
356
356
|
}>, never, {
|
|
357
357
|
readonly txHash: string;
|
|
358
358
|
} & {
|
|
359
|
-
readonly
|
|
359
|
+
readonly tokenType: "ERC20" | "ERC721" | "ERC1155" | "NATIVE";
|
|
360
360
|
} & {
|
|
361
361
|
readonly blockNumber: number;
|
|
362
362
|
} & {
|
|
363
363
|
readonly blockTimestamp: number;
|
|
364
364
|
} & {
|
|
365
|
-
readonly
|
|
365
|
+
readonly toEntityLabel?: string | null | undefined;
|
|
366
366
|
} & {
|
|
367
|
-
readonly
|
|
367
|
+
readonly fromEntityLabel?: string | null | undefined;
|
|
368
368
|
} & {
|
|
369
|
-
readonly
|
|
369
|
+
readonly tokenAddress: string;
|
|
370
370
|
} & {
|
|
371
371
|
readonly chainId: number;
|
|
372
372
|
} & {
|
|
@@ -382,15 +382,15 @@ declare const WalletTxTransfer_base: Schema.Class<WalletTxTransfer, {
|
|
|
382
382
|
} & {
|
|
383
383
|
readonly tokenLogoUrl: string;
|
|
384
384
|
} & {
|
|
385
|
-
readonly
|
|
385
|
+
readonly fromAddress: string;
|
|
386
386
|
} & {
|
|
387
|
-
readonly
|
|
387
|
+
readonly toAddress: string;
|
|
388
388
|
} & {
|
|
389
|
-
readonly
|
|
389
|
+
readonly amount: number;
|
|
390
390
|
} & {
|
|
391
|
-
readonly
|
|
391
|
+
readonly fromAddressIsContract: boolean;
|
|
392
392
|
} & {
|
|
393
|
-
readonly
|
|
393
|
+
readonly toAddressIsContract: boolean;
|
|
394
394
|
}, {}, {}>;
|
|
395
395
|
declare class WalletTxTransfer extends WalletTxTransfer_base {}
|
|
396
396
|
declare const WalletTxBalanceChange_base: Schema.Class<WalletTxBalanceChange, {
|
|
@@ -434,15 +434,15 @@ declare const WalletTxBalanceChange_base: Schema.Class<WalletTxBalanceChange, {
|
|
|
434
434
|
}>, never, {
|
|
435
435
|
readonly txHash?: string | undefined;
|
|
436
436
|
} & {
|
|
437
|
-
readonly
|
|
437
|
+
readonly tokenType: "ERC20" | "ERC721" | "ERC1155" | "NATIVE";
|
|
438
438
|
} & {
|
|
439
439
|
readonly blockNumber: number;
|
|
440
440
|
} & {
|
|
441
441
|
readonly blockTimestamp: number;
|
|
442
442
|
} & {
|
|
443
|
-
readonly
|
|
443
|
+
readonly tokenAddress: string;
|
|
444
444
|
} & {
|
|
445
|
-
readonly
|
|
445
|
+
readonly holderAddress: string;
|
|
446
446
|
} & {
|
|
447
447
|
readonly holderIsContract: boolean;
|
|
448
448
|
} & {
|
|
@@ -461,12 +461,12 @@ declare const WalletTxBalanceChange_base: Schema.Class<WalletTxBalanceChange, {
|
|
|
461
461
|
readonly tokenPriceUsd: number;
|
|
462
462
|
} & {
|
|
463
463
|
readonly tokenLogoUrl: string;
|
|
464
|
-
} & {
|
|
465
|
-
readonly tokenType: "NATIVE" | "ERC20" | "ERC721" | "ERC1155";
|
|
466
464
|
} & {
|
|
467
465
|
readonly holderEntityLabel?: string | null | undefined;
|
|
468
466
|
} & {
|
|
469
467
|
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,7 +502,7 @@ declare const WalletTransaction_base: Schema.Class<WalletTransaction, {
|
|
|
502
502
|
}>, never, {
|
|
503
503
|
readonly txHash: string;
|
|
504
504
|
} & {
|
|
505
|
-
readonly
|
|
505
|
+
readonly errorMessage?: string | undefined;
|
|
506
506
|
} & {
|
|
507
507
|
readonly blockNumber: number;
|
|
508
508
|
} & {
|
|
@@ -510,19 +510,19 @@ declare const WalletTransaction_base: Schema.Class<WalletTransaction, {
|
|
|
510
510
|
} & {
|
|
511
511
|
readonly blockTimestampUtc: string;
|
|
512
512
|
} & {
|
|
513
|
-
readonly
|
|
514
|
-
} & {
|
|
515
|
-
readonly calls: readonly WalletTxCall[];
|
|
516
|
-
} & {
|
|
517
|
-
readonly walletBalanceChanges: readonly WalletTxBalanceChange[];
|
|
513
|
+
readonly success: boolean;
|
|
518
514
|
} & {
|
|
519
515
|
readonly createdContracts: readonly {
|
|
520
|
-
readonly address: string;
|
|
521
516
|
readonly contractName: string | null;
|
|
517
|
+
readonly address: string;
|
|
522
518
|
readonly entityLabel: string | null;
|
|
523
519
|
}[];
|
|
524
520
|
} & {
|
|
525
521
|
readonly actionExecution?: WalletTxActionExecution | undefined;
|
|
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, {
|
|
@@ -560,17 +560,17 @@ declare const TransactionActivity_base: Schema.Class<TransactionActivity, {
|
|
|
560
560
|
}>, never, {
|
|
561
561
|
readonly blockchain: "ethereum" | "base";
|
|
562
562
|
} & {
|
|
563
|
-
readonly
|
|
563
|
+
readonly transactions: readonly WalletTransaction[];
|
|
564
564
|
} & {
|
|
565
|
-
readonly
|
|
565
|
+
readonly pagination: TransactionActivityPagination;
|
|
566
566
|
} & {
|
|
567
567
|
readonly fromAddress: string;
|
|
568
568
|
} & {
|
|
569
|
-
readonly
|
|
569
|
+
readonly totalTransactionCount: number;
|
|
570
570
|
} & {
|
|
571
|
-
readonly
|
|
571
|
+
readonly earliestTx: number | null;
|
|
572
572
|
} & {
|
|
573
|
-
readonly
|
|
573
|
+
readonly toAddressesFilter?: readonly string[] | undefined;
|
|
574
574
|
}, {}, {}>;
|
|
575
575
|
declare class TransactionActivity extends TransactionActivity_base {}
|
|
576
576
|
declare const DeployedContract_base: Schema.Class<DeployedContract, {
|
|
@@ -599,12 +599,12 @@ declare const DeployedContract_base: Schema.Class<DeployedContract, {
|
|
|
599
599
|
readonly symbol: string | null;
|
|
600
600
|
} & {
|
|
601
601
|
readonly contractAddress: string;
|
|
602
|
+
} & {
|
|
603
|
+
readonly contractName: string | null;
|
|
602
604
|
} & {
|
|
603
605
|
readonly blockNumber: number;
|
|
604
606
|
} & {
|
|
605
607
|
readonly blockTimestamp: number;
|
|
606
|
-
} & {
|
|
607
|
-
readonly contractName: string | null;
|
|
608
608
|
} & {
|
|
609
609
|
readonly blockTimestampUtc: string;
|
|
610
610
|
} & {
|
|
@@ -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
|
}, {}, {}>;
|
|
@@ -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 toAddresses?: readonly string[] | undefined;
|
|
732
730
|
} & {
|
|
733
731
|
readonly successOnly?: boolean | undefined;
|
|
732
|
+
} & {
|
|
733
|
+
readonly toAddresses?: readonly string[] | 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 {}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ServiceError } from "../errors.js";
|
|
2
|
+
import { BlockchainType, EvmAddressType } from "../schemas/common.js";
|
|
3
|
+
import { AgentSafe, AgentSafeMetadata, EditAgentSafeMetadataParams, SetSafeProposerParams, SetSafeProposerResponse } from "../schemas/agent-wallets.js";
|
|
4
|
+
import { Context, Effect } from "effect";
|
|
5
|
+
|
|
6
|
+
//#region src/services/AgentSafesService.d.ts
|
|
7
|
+
declare const AgentSafesService_base: Context.TagClass<AgentSafesService, "AgentSafesService", {
|
|
8
|
+
readonly getAgentSafe: (blockchain: BlockchainType, safeAddress: EvmAddressType) => Effect.Effect<AgentSafe, ServiceError>;
|
|
9
|
+
readonly setSafeProposer: (blockchain: BlockchainType, safeAddress: EvmAddressType, params: SetSafeProposerParams) => Effect.Effect<SetSafeProposerResponse, ServiceError>;
|
|
10
|
+
readonly editAgentSafeMetadata: (blockchain: BlockchainType, safeAddress: EvmAddressType, params: EditAgentSafeMetadataParams) => Effect.Effect<AgentSafeMetadata, ServiceError>;
|
|
11
|
+
}>;
|
|
12
|
+
declare class AgentSafesService extends AgentSafesService_base {}
|
|
13
|
+
//#endregion
|
|
14
|
+
export { AgentSafesService };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ServiceError } from "../errors.js";
|
|
2
|
+
import { EvmAddressType } from "../schemas/common.js";
|
|
3
|
+
import { AgentWalletSafesList, AgentWalletsList, AgentWalletsListParams } from "../schemas/agent-wallets.js";
|
|
4
|
+
import { Context, Effect } from "effect";
|
|
5
|
+
|
|
6
|
+
//#region src/services/AgentWalletsService.d.ts
|
|
7
|
+
declare const AgentWalletsService_base: Context.TagClass<AgentWalletsService, "AgentWalletsService", {
|
|
8
|
+
readonly listAgentWallets: (params?: AgentWalletsListParams) => Effect.Effect<AgentWalletsList, ServiceError>;
|
|
9
|
+
readonly listAgentWalletSafes: (agentWalletAddress: EvmAddressType) => Effect.Effect<AgentWalletSafesList, ServiceError>;
|
|
10
|
+
}>;
|
|
11
|
+
declare class AgentWalletsService extends AgentWalletsService_base {}
|
|
12
|
+
//#endregion
|
|
13
|
+
export { AgentWalletsService };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ServiceError } from "../errors.js";
|
|
2
|
+
import { AgentWorkflowWithRunsType, CreateAgentWorkflowParamsType, CreateAgentWorkflowResponseType, CreateAgentWorkflowRunParamsType, CreateAgentWorkflowRunResponseType, ExecuteSafeTxParamsType, ExecuteSafeTxResponseType, ListAgentWorkflowsParamsType, ListAgentWorkflowsResponseType, PushAgentWorkflowParamsType, PushAgentWorkflowResponseType, SubmitAgentWorkflowDecisionParamsType, SubmitAgentWorkflowDecisionResponseType } from "../schemas/agent-workflows.js";
|
|
3
|
+
import { Context, Effect } from "effect";
|
|
4
|
+
|
|
5
|
+
//#region src/services/AgentWorkflowsService.d.ts
|
|
6
|
+
declare class AgentWorkflowNotFoundError extends Error {
|
|
7
|
+
readonly workflowId: string;
|
|
8
|
+
readonly _tag = "AgentWorkflowNotFoundError";
|
|
9
|
+
constructor(workflowId: string);
|
|
10
|
+
}
|
|
11
|
+
declare class AgentWorkflowRunNotFoundError extends Error {
|
|
12
|
+
readonly runId: string;
|
|
13
|
+
readonly _tag = "AgentWorkflowRunNotFoundError";
|
|
14
|
+
constructor(runId: string);
|
|
15
|
+
}
|
|
16
|
+
declare const AgentWorkflowsService_base: Context.TagClass<AgentWorkflowsService, "AgentWorkflowsService", {
|
|
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>;
|
|
24
|
+
}>;
|
|
25
|
+
declare class AgentWorkflowsService extends AgentWorkflowsService_base {}
|
|
26
|
+
//#endregion
|
|
27
|
+
export { AgentWorkflowNotFoundError, AgentWorkflowRunNotFoundError, AgentWorkflowsService };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Context, Effect } from "effect";
|
|
2
|
+
|
|
3
|
+
//#region src/services/AgentWorkflowsService.ts
|
|
4
|
+
var AgentWorkflowNotFoundError = class extends Error {
|
|
5
|
+
_tag = "AgentWorkflowNotFoundError";
|
|
6
|
+
constructor(workflowId) {
|
|
7
|
+
super(`Agent workflow ${workflowId} not found`);
|
|
8
|
+
this.workflowId = workflowId;
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
var AgentWorkflowRunNotFoundError = class extends Error {
|
|
12
|
+
_tag = "AgentWorkflowRunNotFoundError";
|
|
13
|
+
constructor(runId) {
|
|
14
|
+
super(`Agent workflow run ${runId} not found`);
|
|
15
|
+
this.runId = runId;
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
var AgentWorkflowsService = class extends Context.Tag("AgentWorkflowsService")() {};
|
|
19
|
+
|
|
20
|
+
//#endregion
|
|
21
|
+
export { AgentWorkflowNotFoundError, AgentWorkflowRunNotFoundError, AgentWorkflowsService };
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { ServiceError } from "../errors.js";
|
|
2
2
|
import { BlockchainType, EvmAddressType, PaginationParams } from "../schemas/common.js";
|
|
3
|
-
import { ContractDiff, ContractMetadata, DiffVersionsParams, GetContractCodeParams, GetContractCodeResponse
|
|
3
|
+
import { ContractDiff, ContractMetadata, DiffVersionsParams, GetContractCodeParams, GetContractCodeResponse } from "../schemas/contracts.js";
|
|
4
4
|
import { DeployedContracts } from "../schemas/wallets.js";
|
|
5
5
|
import { Context, Effect } from "effect";
|
|
6
6
|
|
|
7
7
|
//#region src/services/ContractsService.d.ts
|
|
8
8
|
declare const ContractsService_base: Context.TagClass<ContractsService, "ContractsService", {
|
|
9
9
|
readonly getMetadata: (address: EvmAddressType, blockchain: BlockchainType) => Effect.Effect<ContractMetadata, ServiceError>;
|
|
10
|
-
readonly getRolesTopology: (address: EvmAddressType, blockchain: BlockchainType) => Effect.Effect<RolesTopology, ServiceError>;
|
|
11
10
|
readonly diffVersions: (address: EvmAddressType, blockchain: BlockchainType, params?: DiffVersionsParams) => Effect.Effect<ContractDiff, ServiceError>;
|
|
12
11
|
readonly getContractCode: (blockchain: BlockchainType, params: GetContractCodeParams) => Effect.Effect<GetContractCodeResponse, ServiceError>;
|
|
13
12
|
readonly getDeployedContracts: (blockchain: BlockchainType, address: EvmAddressType, params?: PaginationParams) => Effect.Effect<DeployedContracts, ServiceError>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ServiceError } from "../errors.js";
|
|
2
|
+
import { CreateGroupParamsType, CreateGroupResponseType, EditGroupMetadataParamsType, EditGroupMetadataResponseType, GroupDetailsType, ListGroupsResponseType, ProposalResponseType, ProposeMemberChangeParamsType, ProposeQuorumChangeParamsType } from "../schemas/groups.js";
|
|
3
|
+
import { Context, Effect } from "effect";
|
|
4
|
+
|
|
5
|
+
//#region src/services/GroupsService.d.ts
|
|
6
|
+
declare class GroupNotFoundError extends Error {
|
|
7
|
+
readonly groupId: string;
|
|
8
|
+
readonly _tag = "GroupNotFoundError";
|
|
9
|
+
constructor(groupId: string);
|
|
10
|
+
}
|
|
11
|
+
declare const GroupsService_base: Context.TagClass<GroupsService, "GroupsService", {
|
|
12
|
+
readonly create: (params: {
|
|
13
|
+
params: CreateGroupParamsType;
|
|
14
|
+
}) => Effect.Effect<CreateGroupResponseType, ServiceError>;
|
|
15
|
+
readonly list: () => Effect.Effect<ListGroupsResponseType, ServiceError>;
|
|
16
|
+
readonly get: (params: {
|
|
17
|
+
groupId: string;
|
|
18
|
+
}) => Effect.Effect<GroupDetailsType, GroupNotFoundError | ServiceError>;
|
|
19
|
+
readonly proposeMemberChange: (params: {
|
|
20
|
+
groupId: string;
|
|
21
|
+
params: ProposeMemberChangeParamsType;
|
|
22
|
+
}) => Effect.Effect<ProposalResponseType, GroupNotFoundError | ServiceError>;
|
|
23
|
+
readonly proposeQuorumChange: (params: {
|
|
24
|
+
groupId: string;
|
|
25
|
+
params: ProposeQuorumChangeParamsType;
|
|
26
|
+
}) => Effect.Effect<ProposalResponseType, GroupNotFoundError | ServiceError>;
|
|
27
|
+
readonly editMetadata: (params: {
|
|
28
|
+
groupId: string;
|
|
29
|
+
params: EditGroupMetadataParamsType;
|
|
30
|
+
}) => Effect.Effect<EditGroupMetadataResponseType, GroupNotFoundError | ServiceError>;
|
|
31
|
+
}>;
|
|
32
|
+
declare class GroupsService extends GroupsService_base {}
|
|
33
|
+
//#endregion
|
|
34
|
+
export { GroupNotFoundError, GroupsService };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Context, Effect } from "effect";
|
|
2
|
+
|
|
3
|
+
//#region src/services/GroupsService.ts
|
|
4
|
+
var GroupNotFoundError = class extends Error {
|
|
5
|
+
_tag = "GroupNotFoundError";
|
|
6
|
+
constructor(groupId) {
|
|
7
|
+
super(`Group ${groupId} not found`);
|
|
8
|
+
this.groupId = groupId;
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
var GroupsService = class extends Context.Tag("GroupsService")() {};
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
export { GroupNotFoundError, GroupsService };
|