@herd-labs/sdk 0.3.1 → 0.4.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/src/config.d.ts +8 -8
- package/dist/src/config.js +8 -11
- package/dist/src/errors.d.ts +29 -44
- package/dist/src/errors.js +13 -16
- package/dist/src/live/ActionsServiceLive.d.ts +2 -2
- package/dist/src/live/ActionsServiceLive.js +9 -9
- package/dist/src/live/AdaptersServiceLive.d.ts +2 -2
- package/dist/src/live/AdaptersServiceLive.js +6 -6
- package/dist/src/live/AgentSafesServiceLive.d.ts +2 -2
- package/dist/src/live/AgentSafesServiceLive.js +3 -3
- package/dist/src/live/AgentWalletsServiceLive.d.ts +2 -2
- package/dist/src/live/AgentWalletsServiceLive.js +3 -3
- package/dist/src/live/AgentWorkflowsServiceLive.d.ts +2 -2
- package/dist/src/live/AgentWorkflowsServiceLive.js +10 -10
- package/dist/src/live/AuthServiceLive.d.ts +2 -2
- package/dist/src/live/AuthServiceLive.js +5 -5
- package/dist/src/live/BookmarksServiceLive.d.ts +2 -2
- package/dist/src/live/BookmarksServiceLive.js +16 -16
- package/dist/src/live/CodeBlocksServiceLive.d.ts +2 -2
- package/dist/src/live/CodeBlocksServiceLive.js +8 -8
- package/dist/src/live/CollectionsServiceLive.d.ts +2 -2
- package/dist/src/live/CollectionsServiceLive.js +3 -3
- package/dist/src/live/ContractsServiceLive.d.ts +2 -2
- package/dist/src/live/ContractsServiceLive.js +6 -6
- package/dist/src/live/DocsServiceLive.d.ts +2 -2
- package/dist/src/live/DocsServiceLive.js +2 -2
- package/dist/src/live/GroupsServiceLive.d.ts +2 -2
- package/dist/src/live/GroupsServiceLive.js +5 -5
- package/dist/src/live/HalServiceLive.d.ts +2 -2
- package/dist/src/live/HalServiceLive.js +9 -9
- package/dist/src/live/TransactionsServiceLive.d.ts +2 -2
- package/dist/src/live/TransactionsServiceLive.js +17 -17
- package/dist/src/live/WalletsServiceLive.d.ts +2 -2
- package/dist/src/live/WalletsServiceLive.js +14 -14
- package/dist/src/live/http.d.ts +4 -4
- package/dist/src/live/http.js +13 -13
- package/dist/src/schemas/actions.d.ts +95 -323
- package/dist/src/schemas/actions.js +41 -37
- package/dist/src/schemas/adapters.d.ts +5 -15
- package/dist/src/schemas/adapters.js +2 -2
- package/dist/src/schemas/agent-wallets.d.ts +66 -210
- package/dist/src/schemas/agent-wallets.js +25 -25
- package/dist/src/schemas/agent-workflows.d.ts +62 -62
- package/dist/src/schemas/agent-workflows.js +35 -31
- package/dist/src/schemas/auth.d.ts +22 -51
- package/dist/src/schemas/auth.js +6 -6
- package/dist/src/schemas/bookmarks.d.ts +64 -204
- package/dist/src/schemas/bookmarks.js +27 -23
- package/dist/src/schemas/codeblocks.d.ts +98 -294
- package/dist/src/schemas/codeblocks.js +41 -36
- package/dist/src/schemas/collections.d.ts +68 -224
- package/dist/src/schemas/collections.js +28 -24
- package/dist/src/schemas/common.d.ts +9 -25
- package/dist/src/schemas/common.js +5 -5
- package/dist/src/schemas/contracts.d.ts +125 -431
- package/dist/src/schemas/contracts.js +52 -63
- package/dist/src/schemas/docs.d.ts +9 -26
- package/dist/src/schemas/docs.js +4 -4
- package/dist/src/schemas/groups.d.ts +47 -47
- package/dist/src/schemas/groups.js +18 -18
- package/dist/src/schemas/hal.d.ts +57 -211
- package/dist/src/schemas/hal.js +32 -30
- package/dist/src/schemas/transactions.d.ts +404 -890
- package/dist/src/schemas/transactions.js +128 -132
- package/dist/src/schemas/wallets.d.ts +205 -709
- package/dist/src/schemas/wallets.js +112 -96
- package/dist/src/services/ActionsService.d.ts +1 -1
- package/dist/src/services/ActionsService.js +2 -2
- package/dist/src/services/AdaptersService.d.ts +1 -1
- package/dist/src/services/AdaptersService.js +2 -2
- package/dist/src/services/AgentSafesService.d.ts +1 -1
- package/dist/src/services/AgentSafesService.js +2 -2
- package/dist/src/services/AgentWalletsService.d.ts +1 -1
- package/dist/src/services/AgentWalletsService.js +2 -2
- package/dist/src/services/AgentWorkflowsService.d.ts +3 -3
- package/dist/src/services/AgentWorkflowsService.js +6 -2
- package/dist/src/services/AuthService.d.ts +3 -3
- package/dist/src/services/AuthService.js +2 -2
- package/dist/src/services/BookmarksService.d.ts +2 -2
- package/dist/src/services/BookmarksService.js +2 -2
- package/dist/src/services/CodeBlocksService.d.ts +1 -1
- package/dist/src/services/CodeBlocksService.js +2 -2
- package/dist/src/services/CollectionsService.d.ts +1 -1
- package/dist/src/services/CollectionsService.js +2 -2
- package/dist/src/services/ContractsService.d.ts +1 -1
- package/dist/src/services/ContractsService.js +2 -2
- package/dist/src/services/DocsService.d.ts +2 -2
- package/dist/src/services/DocsService.js +2 -2
- package/dist/src/services/GroupsService.d.ts +3 -3
- package/dist/src/services/GroupsService.js +4 -2
- package/dist/src/services/HalService.d.ts +1 -1
- package/dist/src/services/HalService.js +2 -2
- package/dist/src/services/TransactionsService.d.ts +1 -1
- package/dist/src/services/TransactionsService.js +2 -2
- package/dist/src/services/WalletsService.d.ts +1 -1
- package/dist/src/services/WalletsService.js +2 -2
- package/package.json +13 -18
|
@@ -4,11 +4,11 @@ import { Schema } from "effect";
|
|
|
4
4
|
//#region src/schemas/wallets.ts
|
|
5
5
|
var WalletBalance = class extends Schema.Class("WalletBalance")({
|
|
6
6
|
address: Schema.String,
|
|
7
|
-
|
|
8
|
-
amount: Schema.Union(Schema.String, Schema.Number),
|
|
7
|
+
amount: Schema.Union([Schema.String, Schema.Number]),
|
|
9
8
|
decimals: Schema.NullOr(Schema.Number),
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
logoUrl: Schema.NullOr(Schema.String),
|
|
10
|
+
symbol: Schema.NullOr(Schema.String),
|
|
11
|
+
valueUsd: Schema.NullOr(Schema.Number)
|
|
12
12
|
}) {};
|
|
13
13
|
var Erc7702Delegation = class extends Schema.Class("Erc7702Delegation")({
|
|
14
14
|
address: Schema.String,
|
|
@@ -20,194 +20,210 @@ var MultisigSigner = class extends Schema.Class("MultisigSigner")({
|
|
|
20
20
|
isContract: Schema.Boolean
|
|
21
21
|
}) {};
|
|
22
22
|
var PendingTransaction = class extends Schema.Class("PendingTransaction")({
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
value: Schema.String,
|
|
23
|
+
confirmationsReceived: Schema.optional(Schema.Number),
|
|
24
|
+
confirmationsRequired: Schema.optional(Schema.Number),
|
|
26
25
|
data: Schema.NullOr(Schema.String),
|
|
26
|
+
method: Schema.optional(Schema.NullOr(Schema.String)),
|
|
27
27
|
nonce: Schema.Number,
|
|
28
|
-
submissionDate: Schema.optional(Schema.String),
|
|
29
|
-
confirmationsRequired: Schema.optional(Schema.Number),
|
|
30
|
-
confirmationsReceived: Schema.optional(Schema.Number),
|
|
31
28
|
proposer: Schema.optional(Schema.NullOr(Schema.String)),
|
|
32
|
-
|
|
29
|
+
safeTxHash: Schema.String,
|
|
30
|
+
submissionDate: Schema.optional(Schema.String),
|
|
31
|
+
to: Schema.String,
|
|
32
|
+
value: Schema.String
|
|
33
33
|
}) {};
|
|
34
34
|
var MultisigDetails = class extends Schema.Class("MultisigDetails")({
|
|
35
|
-
|
|
35
|
+
pendingTransactions: Schema.Array(PendingTransaction),
|
|
36
36
|
signers: Schema.Array(MultisigSigner),
|
|
37
|
-
|
|
37
|
+
threshold: Schema.Number
|
|
38
38
|
}) {};
|
|
39
39
|
var WalletOverview = class extends Schema.Class("WalletOverview")({
|
|
40
|
-
|
|
40
|
+
balances: Schema.Array(WalletBalance),
|
|
41
41
|
blockchain: Blockchain,
|
|
42
|
-
|
|
43
|
-
implementationAddress: Schema.optional(Schema.String),
|
|
42
|
+
earliestTx: Schema.NullOr(Schema.Number),
|
|
44
43
|
erc7702Delegation: Schema.optional(Erc7702Delegation),
|
|
44
|
+
implementationAddress: Schema.optional(Schema.String),
|
|
45
45
|
multisigDetails: Schema.optional(MultisigDetails),
|
|
46
|
-
totalTransactionCount: Schema.Number,
|
|
47
|
-
earliestTx: Schema.NullOr(Schema.Number),
|
|
48
46
|
totalDeployedContractsCount: Schema.Number,
|
|
49
|
-
|
|
47
|
+
totalTransactionCount: Schema.Number,
|
|
48
|
+
walletAddress: Schema.String,
|
|
49
|
+
walletType: Schema.Literals([
|
|
50
|
+
"eoa",
|
|
51
|
+
"erc7702",
|
|
52
|
+
"erc4337",
|
|
53
|
+
"multisig",
|
|
54
|
+
"contract"
|
|
55
|
+
])
|
|
50
56
|
}) {};
|
|
51
57
|
var TokenBalanceInfo = class extends Schema.Class("TokenBalanceInfo")({
|
|
52
|
-
|
|
58
|
+
decimals: Schema.NullOr(Schema.Number),
|
|
53
59
|
formatted: Schema.String,
|
|
54
|
-
|
|
55
|
-
|
|
60
|
+
raw: Schema.String,
|
|
61
|
+
symbol: Schema.NullOr(Schema.String)
|
|
56
62
|
}) {};
|
|
57
63
|
var TokenTransfer = class extends Schema.Class("TokenTransfer")({
|
|
58
|
-
|
|
64
|
+
amount: Schema.String,
|
|
65
|
+
blockNumber: Schema.Number,
|
|
59
66
|
blockTimestamp: Schema.Number,
|
|
60
67
|
blockTimestampUtc: Schema.String,
|
|
61
|
-
|
|
62
|
-
|
|
68
|
+
direction: Schema.Literals(["in", "out"]),
|
|
69
|
+
formattedAmount: Schema.String,
|
|
63
70
|
fromAddress: Schema.String,
|
|
71
|
+
logIndex: Schema.Number,
|
|
64
72
|
toAddress: Schema.String,
|
|
65
|
-
|
|
66
|
-
formattedAmount: Schema.String,
|
|
67
|
-
direction: Schema.Literal("in", "out")
|
|
73
|
+
txHash: Schema.String
|
|
68
74
|
}) {};
|
|
69
75
|
var TokenActivityPagination = class extends Schema.Class("TokenActivityPagination")({
|
|
76
|
+
hasMore: Schema.Boolean,
|
|
70
77
|
page: Schema.Number,
|
|
71
|
-
pageSize: Schema.Number
|
|
72
|
-
hasMore: Schema.Boolean
|
|
78
|
+
pageSize: Schema.Number
|
|
73
79
|
}) {};
|
|
74
80
|
var TokenActivity = class extends Schema.Class("TokenActivity")({
|
|
81
|
+
balance: TokenBalanceInfo,
|
|
82
|
+
blockchain: Blockchain,
|
|
75
83
|
holderAddress: Schema.String,
|
|
84
|
+
pagination: TokenActivityPagination,
|
|
76
85
|
tokenAddress: Schema.String,
|
|
77
|
-
|
|
78
|
-
balance: TokenBalanceInfo,
|
|
79
|
-
transfers: Schema.Array(TokenTransfer),
|
|
80
|
-
pagination: TokenActivityPagination
|
|
86
|
+
transfers: Schema.Array(TokenTransfer)
|
|
81
87
|
}) {};
|
|
82
88
|
var WalletTxCall = class extends Schema.Class("WalletTxCall")({
|
|
83
89
|
callee: Schema.String,
|
|
84
|
-
functionSignature: Schema.String,
|
|
85
|
-
functionName: Schema.String,
|
|
86
90
|
contractName: Schema.NullOr(Schema.String),
|
|
87
|
-
entityLabel: Schema.NullOr(Schema.String)
|
|
91
|
+
entityLabel: Schema.NullOr(Schema.String),
|
|
92
|
+
functionName: Schema.String,
|
|
93
|
+
functionSignature: Schema.String
|
|
88
94
|
}) {};
|
|
89
95
|
var WalletTxActionExecution = class extends Schema.Class("WalletTxActionExecution")({
|
|
90
96
|
actionId: Schema.String,
|
|
91
|
-
versionId: Schema.String,
|
|
92
97
|
actionName: Schema.String,
|
|
93
|
-
executionId: Schema.String
|
|
98
|
+
executionId: Schema.String,
|
|
99
|
+
versionId: Schema.String
|
|
94
100
|
}) {};
|
|
95
101
|
var WalletTxTransfer = class extends Schema.Class("WalletTxTransfer")({
|
|
96
|
-
txHash: Schema.String,
|
|
97
|
-
blockNumber: Schema.Number,
|
|
98
|
-
tokenAddress: Schema.String,
|
|
99
|
-
fromAddress: Schema.String,
|
|
100
|
-
toAddress: Schema.String,
|
|
101
102
|
amount: Schema.Number,
|
|
103
|
+
blockNumber: Schema.Number,
|
|
102
104
|
blockTimestamp: Schema.Number,
|
|
103
105
|
chainId: Schema.Number,
|
|
104
|
-
|
|
106
|
+
fromAddress: Schema.String,
|
|
107
|
+
fromAddressIsContract: Schema.Boolean,
|
|
108
|
+
fromEntityLabel: Schema.optional(Schema.NullOr(Schema.String)),
|
|
109
|
+
toAddress: Schema.String,
|
|
110
|
+
toAddressIsContract: Schema.Boolean,
|
|
111
|
+
toEntityLabel: Schema.optional(Schema.NullOr(Schema.String)),
|
|
112
|
+
tokenAddress: Schema.String,
|
|
105
113
|
tokenDecimals: Schema.Number,
|
|
114
|
+
tokenId: Schema.Number,
|
|
115
|
+
tokenLogoUrl: Schema.String,
|
|
106
116
|
tokenName: Schema.String,
|
|
107
|
-
tokenSymbol: Schema.String,
|
|
108
117
|
tokenPriceUsd: Schema.Number,
|
|
109
|
-
|
|
110
|
-
tokenType: Schema.
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
118
|
+
tokenSymbol: Schema.String,
|
|
119
|
+
tokenType: Schema.Literals([
|
|
120
|
+
"NATIVE",
|
|
121
|
+
"ERC20",
|
|
122
|
+
"ERC721",
|
|
123
|
+
"ERC1155"
|
|
124
|
+
]),
|
|
125
|
+
txHash: Schema.String
|
|
115
126
|
}) {};
|
|
116
127
|
var WalletTxBalanceChange = class extends Schema.Class("WalletTxBalanceChange")({
|
|
117
|
-
txHash: Schema.optional(Schema.String),
|
|
118
|
-
blockNumber: Schema.Number,
|
|
119
|
-
tokenAddress: Schema.String,
|
|
120
|
-
holderAddress: Schema.String,
|
|
121
|
-
holderIsContract: Schema.Boolean,
|
|
122
128
|
balanceChange: Schema.Number,
|
|
129
|
+
blockNumber: Schema.Number,
|
|
123
130
|
blockTimestamp: Schema.Number,
|
|
124
131
|
chainId: Schema.Number,
|
|
125
|
-
|
|
126
|
-
|
|
132
|
+
holderAddress: Schema.String,
|
|
133
|
+
holderEntityLabel: Schema.optional(Schema.NullOr(Schema.String)),
|
|
134
|
+
holderIsContract: Schema.Boolean,
|
|
135
|
+
tokenAddress: Schema.String,
|
|
127
136
|
tokenDecimals: Schema.Number,
|
|
137
|
+
tokenEntityLabel: Schema.optional(Schema.NullOr(Schema.String)),
|
|
138
|
+
tokenId: Schema.Number,
|
|
139
|
+
tokenLogoUrl: Schema.String,
|
|
128
140
|
tokenName: Schema.String,
|
|
129
|
-
tokenSymbol: Schema.String,
|
|
130
141
|
tokenPriceUsd: Schema.Number,
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
142
|
+
tokenSymbol: Schema.String,
|
|
143
|
+
tokenType: Schema.Literals([
|
|
144
|
+
"NATIVE",
|
|
145
|
+
"ERC20",
|
|
146
|
+
"ERC721",
|
|
147
|
+
"ERC1155"
|
|
148
|
+
]),
|
|
149
|
+
transfers: Schema.Array(WalletTxTransfer),
|
|
150
|
+
txHash: Schema.optional(Schema.String)
|
|
135
151
|
}) {};
|
|
136
152
|
var WalletTransaction = class extends Schema.Class("WalletTransaction")({
|
|
137
|
-
|
|
153
|
+
actionExecution: Schema.optional(WalletTxActionExecution),
|
|
154
|
+
blockNumber: Schema.Number,
|
|
138
155
|
blockTimestamp: Schema.Number,
|
|
139
156
|
blockTimestampUtc: Schema.String,
|
|
140
|
-
blockNumber: Schema.Number,
|
|
141
|
-
success: Schema.Boolean,
|
|
142
|
-
errorMessage: Schema.optional(Schema.String),
|
|
143
157
|
calls: Schema.Array(WalletTxCall),
|
|
144
|
-
walletBalanceChanges: Schema.Array(WalletTxBalanceChange),
|
|
145
158
|
createdContracts: Schema.Array(Schema.Struct({
|
|
146
159
|
address: Schema.String,
|
|
147
160
|
contractName: Schema.NullOr(Schema.String),
|
|
148
161
|
entityLabel: Schema.NullOr(Schema.String)
|
|
149
162
|
})),
|
|
150
|
-
|
|
163
|
+
errorMessage: Schema.optional(Schema.String),
|
|
164
|
+
success: Schema.Boolean,
|
|
165
|
+
txHash: Schema.String,
|
|
166
|
+
walletBalanceChanges: Schema.Array(WalletTxBalanceChange)
|
|
151
167
|
}) {};
|
|
152
168
|
var TransactionActivityPagination = class extends Schema.Class("TransactionActivityPagination")({
|
|
169
|
+
hasMore: Schema.Boolean,
|
|
153
170
|
page: Schema.Number,
|
|
154
|
-
pageSize: Schema.Number
|
|
155
|
-
hasMore: Schema.Boolean
|
|
171
|
+
pageSize: Schema.Number
|
|
156
172
|
}) {};
|
|
157
173
|
var TransactionActivity = class extends Schema.Class("TransactionActivity")({
|
|
158
|
-
fromAddress: Schema.String,
|
|
159
174
|
blockchain: Blockchain,
|
|
175
|
+
earliestTx: Schema.NullOr(Schema.Number),
|
|
176
|
+
fromAddress: Schema.String,
|
|
177
|
+
pagination: TransactionActivityPagination,
|
|
160
178
|
toAddressesFilter: Schema.optional(Schema.Array(Schema.String)),
|
|
161
179
|
totalTransactionCount: Schema.Number,
|
|
162
|
-
|
|
163
|
-
transactions: Schema.Array(WalletTransaction),
|
|
164
|
-
pagination: TransactionActivityPagination
|
|
180
|
+
transactions: Schema.Array(WalletTransaction)
|
|
165
181
|
}) {};
|
|
166
182
|
var DeployedContract = class extends Schema.Class("DeployedContract")({
|
|
167
|
-
contractAddress: Schema.String,
|
|
168
|
-
contractName: Schema.NullOr(Schema.String),
|
|
169
|
-
entity: Schema.NullOr(Schema.String),
|
|
170
|
-
symbol: Schema.NullOr(Schema.String),
|
|
171
183
|
blockNumber: Schema.Number,
|
|
172
184
|
blockTimestamp: Schema.Number,
|
|
173
185
|
blockTimestampUtc: Schema.String,
|
|
186
|
+
contractAddress: Schema.String,
|
|
187
|
+
contractName: Schema.NullOr(Schema.String),
|
|
174
188
|
deploymentTxnHash: Schema.String,
|
|
189
|
+
entity: Schema.NullOr(Schema.String),
|
|
175
190
|
factoryAddress: Schema.NullOr(Schema.String),
|
|
176
|
-
factoryName: Schema.NullOr(Schema.String)
|
|
191
|
+
factoryName: Schema.NullOr(Schema.String),
|
|
192
|
+
symbol: Schema.NullOr(Schema.String)
|
|
177
193
|
}) {};
|
|
178
194
|
var DeployedContractsPagination = class extends Schema.Class("DeployedContractsPagination")({
|
|
195
|
+
hasMore: Schema.Boolean,
|
|
179
196
|
page: Schema.Number,
|
|
180
|
-
pageSize: Schema.Number
|
|
181
|
-
hasMore: Schema.Boolean
|
|
197
|
+
pageSize: Schema.Number
|
|
182
198
|
}) {};
|
|
183
199
|
var DeployedContracts = class extends Schema.Class("DeployedContracts")({
|
|
184
|
-
deployerAddress: Schema.String,
|
|
185
200
|
blockchain: Blockchain,
|
|
186
|
-
isEOA: Schema.Boolean,
|
|
187
|
-
totalDeployedContractsCount: Schema.Number,
|
|
188
201
|
deployedContracts: Schema.Array(DeployedContract),
|
|
189
|
-
|
|
202
|
+
deployerAddress: Schema.String,
|
|
203
|
+
isEOA: Schema.Boolean,
|
|
204
|
+
pagination: DeployedContractsPagination,
|
|
205
|
+
totalDeployedContractsCount: Schema.Number
|
|
190
206
|
}) {};
|
|
191
207
|
var TokenActivityParams = class extends Schema.Class("TokenActivityParams")({
|
|
192
|
-
|
|
193
|
-
beforeTimestamp: Schema.optional(Schema.Number),
|
|
208
|
+
afterBlocknumber: Schema.optional(Schema.Number),
|
|
194
209
|
afterTimestamp: Schema.optional(Schema.Number),
|
|
195
210
|
beforeBlocknumber: Schema.optional(Schema.Number),
|
|
196
|
-
|
|
211
|
+
beforeTimestamp: Schema.optional(Schema.Number),
|
|
197
212
|
fromAddress: Schema.optional(Schema.String),
|
|
213
|
+
page: Schema.optional(Schema.Number),
|
|
198
214
|
toAddress: Schema.optional(Schema.String)
|
|
199
215
|
}) {};
|
|
200
216
|
/** Same fields as MCP `getTransactionActivityTool` inputs (camelCase); POST `/v1/wallets/transaction-activity` body uses snake_case. */
|
|
201
217
|
var TransactionActivityQuery = class extends Schema.Class("TransactionActivityQuery")({
|
|
218
|
+
afterBlocknumber: Schema.optional(Schema.Number),
|
|
219
|
+
afterTimestamp: Schema.optional(Schema.Number),
|
|
220
|
+
beforeBlocknumber: Schema.optional(Schema.Number),
|
|
221
|
+
beforeTimestamp: Schema.optional(Schema.Number),
|
|
202
222
|
blockchain: Blockchain,
|
|
203
223
|
fromAddress: Schema.optional(Schema.String),
|
|
204
|
-
toAddresses: Schema.optional(Schema.Array(Schema.String)),
|
|
205
224
|
page: Schema.optional(Schema.Number),
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
beforeBlocknumber: Schema.optional(Schema.Number),
|
|
209
|
-
afterBlocknumber: Schema.optional(Schema.Number),
|
|
210
|
-
successOnly: Schema.optional(Schema.Boolean)
|
|
225
|
+
successOnly: Schema.optional(Schema.Boolean),
|
|
226
|
+
toAddresses: Schema.optional(Schema.Array(Schema.String))
|
|
211
227
|
}) {};
|
|
212
228
|
|
|
213
229
|
//#endregion
|
|
@@ -3,7 +3,7 @@ import { Action, ActionVersionsResponse, ActionsSearchParams, ActionsSearchRespo
|
|
|
3
3
|
import { Context, Effect, Schema } from "effect";
|
|
4
4
|
|
|
5
5
|
//#region src/services/ActionsService.d.ts
|
|
6
|
-
declare const ActionsService_base: Context.
|
|
6
|
+
declare const ActionsService_base: Context.ServiceClass<ActionsService, "ActionsService", {
|
|
7
7
|
readonly get: (id: string, options?: {
|
|
8
8
|
includeReferences?: boolean;
|
|
9
9
|
}) => Effect.Effect<Action, ActionNotFoundError | ServiceError>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Context
|
|
1
|
+
import { Context } from "effect";
|
|
2
2
|
|
|
3
3
|
//#region src/services/ActionsService.ts
|
|
4
|
-
var ActionsService = class extends Context.
|
|
4
|
+
var ActionsService = class extends Context.Service()("ActionsService") {};
|
|
5
5
|
|
|
6
6
|
//#endregion
|
|
7
7
|
export { ActionsService };
|
|
@@ -4,7 +4,7 @@ import { CreateAdapterParams } from "../schemas/adapters.js";
|
|
|
4
4
|
import { Context, Effect } from "effect";
|
|
5
5
|
|
|
6
6
|
//#region src/services/AdaptersService.d.ts
|
|
7
|
-
declare const AdaptersService_base: Context.
|
|
7
|
+
declare const AdaptersService_base: Context.ServiceClass<AdaptersService, "AdaptersService", {
|
|
8
8
|
readonly get: (id: string) => Effect.Effect<Action, ActionNotFoundError | ServiceError>;
|
|
9
9
|
readonly create: (params: CreateAdapterParams) => Effect.Effect<CreateActionResponse, ServiceError>;
|
|
10
10
|
readonly updateMetadata: (id: string, params: UpdateActionMetadataParams) => Effect.Effect<void, ActionNotFoundError | ServiceError>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Context
|
|
1
|
+
import { Context } from "effect";
|
|
2
2
|
|
|
3
3
|
//#region src/services/AdaptersService.ts
|
|
4
|
-
var AdaptersService = class extends Context.
|
|
4
|
+
var AdaptersService = class extends Context.Service()("AdaptersService") {};
|
|
5
5
|
|
|
6
6
|
//#endregion
|
|
7
7
|
export { AdaptersService };
|
|
@@ -4,7 +4,7 @@ import { AgentSafe, AgentSafeMetadata, EditAgentSafeMetadataParams, SetSafePropo
|
|
|
4
4
|
import { Context, Effect } from "effect";
|
|
5
5
|
|
|
6
6
|
//#region src/services/AgentSafesService.d.ts
|
|
7
|
-
declare const AgentSafesService_base: Context.
|
|
7
|
+
declare const AgentSafesService_base: Context.ServiceClass<AgentSafesService, "AgentSafesService", {
|
|
8
8
|
readonly getAgentSafe: (blockchain: BlockchainType, safeAddress: EvmAddressType) => Effect.Effect<AgentSafe, ServiceError>;
|
|
9
9
|
readonly setSafeProposer: (blockchain: BlockchainType, safeAddress: EvmAddressType, params: SetSafeProposerParams) => Effect.Effect<SetSafeProposerResponse, ServiceError>;
|
|
10
10
|
readonly editAgentSafeMetadata: (blockchain: BlockchainType, safeAddress: EvmAddressType, params: EditAgentSafeMetadataParams) => Effect.Effect<AgentSafeMetadata, ServiceError>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Context
|
|
1
|
+
import { Context } from "effect";
|
|
2
2
|
|
|
3
3
|
//#region src/services/AgentSafesService.ts
|
|
4
|
-
var AgentSafesService = class extends Context.
|
|
4
|
+
var AgentSafesService = class extends Context.Service()("AgentSafesService") {};
|
|
5
5
|
|
|
6
6
|
//#endregion
|
|
7
7
|
export { AgentSafesService };
|
|
@@ -4,7 +4,7 @@ import { AgentWalletSafesList, AgentWalletsList, AgentWalletsListParams } from "
|
|
|
4
4
|
import { Context, Effect } from "effect";
|
|
5
5
|
|
|
6
6
|
//#region src/services/AgentWalletsService.d.ts
|
|
7
|
-
declare const AgentWalletsService_base: Context.
|
|
7
|
+
declare const AgentWalletsService_base: Context.ServiceClass<AgentWalletsService, "AgentWalletsService", {
|
|
8
8
|
readonly listAgentWallets: (params?: AgentWalletsListParams) => Effect.Effect<AgentWalletsList, ServiceError>;
|
|
9
9
|
readonly listAgentWalletSafes: (agentWalletAddress: EvmAddressType) => Effect.Effect<AgentWalletSafesList, ServiceError>;
|
|
10
10
|
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Context
|
|
1
|
+
import { Context } from "effect";
|
|
2
2
|
|
|
3
3
|
//#region src/services/AgentWalletsService.ts
|
|
4
|
-
var AgentWalletsService = class extends Context.
|
|
4
|
+
var AgentWalletsService = class extends Context.Service()("AgentWalletsService") {};
|
|
5
5
|
|
|
6
6
|
//#endregion
|
|
7
7
|
export { AgentWalletsService };
|
|
@@ -4,16 +4,16 @@ import { Context, Effect } from "effect";
|
|
|
4
4
|
|
|
5
5
|
//#region src/services/AgentWorkflowsService.d.ts
|
|
6
6
|
declare class AgentWorkflowNotFoundError extends Error {
|
|
7
|
-
readonly workflowId: string;
|
|
8
7
|
readonly _tag = "AgentWorkflowNotFoundError";
|
|
8
|
+
readonly workflowId: string;
|
|
9
9
|
constructor(workflowId: string);
|
|
10
10
|
}
|
|
11
11
|
declare class AgentWorkflowRunNotFoundError extends Error {
|
|
12
|
-
readonly runId: string;
|
|
13
12
|
readonly _tag = "AgentWorkflowRunNotFoundError";
|
|
13
|
+
readonly runId: string;
|
|
14
14
|
constructor(runId: string);
|
|
15
15
|
}
|
|
16
|
-
declare const AgentWorkflowsService_base: Context.
|
|
16
|
+
declare const AgentWorkflowsService_base: Context.ServiceClass<AgentWorkflowsService, "AgentWorkflowsService", {
|
|
17
17
|
readonly create: (params: CreateAgentWorkflowParamsType) => Effect.Effect<CreateAgentWorkflowResponseType, ServiceError>;
|
|
18
18
|
readonly list: (params: ListAgentWorkflowsParamsType) => Effect.Effect<ListAgentWorkflowsResponseType, ServiceError>;
|
|
19
19
|
readonly get: (agentWorkflowId: string) => Effect.Effect<AgentWorkflowWithRunsType, AgentWorkflowNotFoundError | ServiceError>;
|
|
@@ -1,21 +1,25 @@
|
|
|
1
|
-
import { Context
|
|
1
|
+
import { Context } from "effect";
|
|
2
2
|
|
|
3
3
|
//#region src/services/AgentWorkflowsService.ts
|
|
4
4
|
var AgentWorkflowNotFoundError = class extends Error {
|
|
5
5
|
_tag = "AgentWorkflowNotFoundError";
|
|
6
|
+
workflowId;
|
|
6
7
|
constructor(workflowId) {
|
|
7
8
|
super(`Agent workflow ${workflowId} not found`);
|
|
8
9
|
this.workflowId = workflowId;
|
|
10
|
+
this.name = "AgentWorkflowNotFoundError";
|
|
9
11
|
}
|
|
10
12
|
};
|
|
11
13
|
var AgentWorkflowRunNotFoundError = class extends Error {
|
|
12
14
|
_tag = "AgentWorkflowRunNotFoundError";
|
|
15
|
+
runId;
|
|
13
16
|
constructor(runId) {
|
|
14
17
|
super(`Agent workflow run ${runId} not found`);
|
|
15
18
|
this.runId = runId;
|
|
19
|
+
this.name = "AgentWorkflowRunNotFoundError";
|
|
16
20
|
}
|
|
17
21
|
};
|
|
18
|
-
var AgentWorkflowsService = class extends Context.
|
|
22
|
+
var AgentWorkflowsService = class extends Context.Service()("AgentWorkflowsService") {};
|
|
19
23
|
|
|
20
24
|
//#endregion
|
|
21
25
|
export { AgentWorkflowNotFoundError, AgentWorkflowRunNotFoundError, AgentWorkflowsService };
|
|
@@ -3,11 +3,11 @@ import { ApiKeyListResponseType, CreatedApiKeyType, TokenResponse, WhoamiRespons
|
|
|
3
3
|
import { Context, Effect } from "effect";
|
|
4
4
|
|
|
5
5
|
//#region src/services/AuthService.d.ts
|
|
6
|
-
declare const AuthService_base: Context.
|
|
7
|
-
readonly whoami:
|
|
6
|
+
declare const AuthService_base: Context.ServiceClass<AuthService, "AuthService", {
|
|
7
|
+
readonly whoami: Effect.Effect<WhoamiResponse, AuthError>;
|
|
8
8
|
readonly refreshToken: (refreshToken: string, clientId: string) => Effect.Effect<TokenResponse, AuthError>;
|
|
9
9
|
readonly provisionApiKey: (name?: string) => Effect.Effect<CreatedApiKeyType, AuthError>;
|
|
10
|
-
readonly listApiKeys:
|
|
10
|
+
readonly listApiKeys: Effect.Effect<ApiKeyListResponseType, AuthError>;
|
|
11
11
|
readonly revokeApiKey: (keyId: string) => Effect.Effect<void, AuthError>;
|
|
12
12
|
}>;
|
|
13
13
|
declare class AuthService extends AuthService_base {}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Context
|
|
1
|
+
import { Context } from "effect";
|
|
2
2
|
|
|
3
3
|
//#region src/services/AuthService.ts
|
|
4
|
-
var AuthService = class extends Context.
|
|
4
|
+
var AuthService = class extends Context.Service()("AuthService") {};
|
|
5
5
|
|
|
6
6
|
//#endregion
|
|
7
7
|
export { AuthService };
|
|
@@ -3,9 +3,9 @@ import { AddContractBookmarkParams, AddTransactionBookmarkParams, AddWalletBookm
|
|
|
3
3
|
import { Context, Effect } from "effect";
|
|
4
4
|
|
|
5
5
|
//#region src/services/BookmarksService.d.ts
|
|
6
|
-
declare const BookmarksService_base: Context.
|
|
6
|
+
declare const BookmarksService_base: Context.ServiceClass<BookmarksService, "BookmarksService", {
|
|
7
7
|
readonly list: (params?: {
|
|
8
|
-
readonly objectTypes?:
|
|
8
|
+
readonly objectTypes?: readonly BookmarkObjectTypeValue[];
|
|
9
9
|
}) => Effect.Effect<BookmarksList, ServiceError>;
|
|
10
10
|
readonly addContract: (params: AddContractBookmarkParams) => Effect.Effect<BookmarkResponse, ServiceError>;
|
|
11
11
|
readonly addTransaction: (params: AddTransactionBookmarkParams) => Effect.Effect<BookmarkResponse, ServiceError>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Context
|
|
1
|
+
import { Context } from "effect";
|
|
2
2
|
|
|
3
3
|
//#region src/services/BookmarksService.ts
|
|
4
|
-
var BookmarksService = class extends Context.
|
|
4
|
+
var BookmarksService = class extends Context.Service()("BookmarksService") {};
|
|
5
5
|
|
|
6
6
|
//#endregion
|
|
7
7
|
export { BookmarksService };
|
|
@@ -3,7 +3,7 @@ import { CodeBlockDefinition, CodeBlockExecuteResponse, CodeBlocksSearchParams,
|
|
|
3
3
|
import { Context, Effect } from "effect";
|
|
4
4
|
|
|
5
5
|
//#region src/services/CodeBlocksService.d.ts
|
|
6
|
-
declare const CodeBlocksService_base: Context.
|
|
6
|
+
declare const CodeBlocksService_base: Context.ServiceClass<CodeBlocksService, "CodeBlocksService", {
|
|
7
7
|
readonly get: (id: string) => Effect.Effect<CodeBlockDefinition, CodeBlockNotFoundError | ServiceError>;
|
|
8
8
|
readonly search: (params: CodeBlocksSearchParams) => Effect.Effect<CodeBlocksSearchResponse, ServiceError>;
|
|
9
9
|
readonly create: (params: CreateCodeBlockParams) => Effect.Effect<CreateCodeBlockResponse, ServiceError>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Context
|
|
1
|
+
import { Context } from "effect";
|
|
2
2
|
|
|
3
3
|
//#region src/services/CodeBlocksService.ts
|
|
4
|
-
var CodeBlocksService = class extends Context.
|
|
4
|
+
var CodeBlocksService = class extends Context.Service()("CodeBlocksService") {};
|
|
5
5
|
|
|
6
6
|
//#endregion
|
|
7
7
|
export { CodeBlocksService };
|
|
@@ -3,7 +3,7 @@ import { Collection, CollectionsSearchParams, CollectionsSearchResponse, CreateC
|
|
|
3
3
|
import { Context, Effect } from "effect";
|
|
4
4
|
|
|
5
5
|
//#region src/services/CollectionsService.d.ts
|
|
6
|
-
declare const CollectionsService_base: Context.
|
|
6
|
+
declare const CollectionsService_base: Context.ServiceClass<CollectionsService, "CollectionsService", {
|
|
7
7
|
readonly get: (collectionId: string) => Effect.Effect<Collection, CollectionNotFoundError | ServiceError>;
|
|
8
8
|
readonly search: (params: CollectionsSearchParams) => Effect.Effect<CollectionsSearchResponse, ServiceError>;
|
|
9
9
|
readonly create: (params: CreateCollectionParams) => Effect.Effect<CreateCollectionResponse, ServiceError>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Context
|
|
1
|
+
import { Context } from "effect";
|
|
2
2
|
|
|
3
3
|
//#region src/services/CollectionsService.ts
|
|
4
|
-
var CollectionsService = class extends Context.
|
|
4
|
+
var CollectionsService = class extends Context.Service()("CollectionsService") {};
|
|
5
5
|
|
|
6
6
|
//#endregion
|
|
7
7
|
export { CollectionsService };
|
|
@@ -5,7 +5,7 @@ import { DeployedContracts } from "../schemas/wallets.js";
|
|
|
5
5
|
import { Context, Effect } from "effect";
|
|
6
6
|
|
|
7
7
|
//#region src/services/ContractsService.d.ts
|
|
8
|
-
declare const ContractsService_base: Context.
|
|
8
|
+
declare const ContractsService_base: Context.ServiceClass<ContractsService, "ContractsService", {
|
|
9
9
|
readonly getMetadata: (address: EvmAddressType, blockchain: BlockchainType) => Effect.Effect<ContractMetadata, ServiceError>;
|
|
10
10
|
readonly diffVersions: (address: EvmAddressType, blockchain: BlockchainType, params?: DiffVersionsParams) => Effect.Effect<ContractDiff, ServiceError>;
|
|
11
11
|
readonly getContractCode: (blockchain: BlockchainType, params: GetContractCodeParams) => Effect.Effect<GetContractCodeResponse, ServiceError>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Context
|
|
1
|
+
import { Context } from "effect";
|
|
2
2
|
|
|
3
3
|
//#region src/services/ContractsService.ts
|
|
4
|
-
var ContractsService = class extends Context.
|
|
4
|
+
var ContractsService = class extends Context.Service()("ContractsService") {};
|
|
5
5
|
|
|
6
6
|
//#endregion
|
|
7
7
|
export { ContractsService };
|
|
@@ -3,8 +3,8 @@ import { DocContent, DocEntry } from "../schemas/docs.js";
|
|
|
3
3
|
import { Context, Effect } from "effect";
|
|
4
4
|
|
|
5
5
|
//#region src/services/DocsService.d.ts
|
|
6
|
-
declare const DocsService_base: Context.
|
|
7
|
-
readonly list:
|
|
6
|
+
declare const DocsService_base: Context.ServiceClass<DocsService, "DocsService", {
|
|
7
|
+
readonly list: Effect.Effect<readonly DocEntry[], ServiceError>;
|
|
8
8
|
readonly read: (docId: string) => Effect.Effect<DocContent, DocNotFoundError | ServiceError>;
|
|
9
9
|
}>;
|
|
10
10
|
declare class DocsService extends DocsService_base {}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Context
|
|
1
|
+
import { Context } from "effect";
|
|
2
2
|
|
|
3
3
|
//#region src/services/DocsService.ts
|
|
4
|
-
var DocsService = class extends Context.
|
|
4
|
+
var DocsService = class extends Context.Service()("DocsService") {};
|
|
5
5
|
|
|
6
6
|
//#endregion
|
|
7
7
|
export { DocsService };
|
|
@@ -4,15 +4,15 @@ import { Context, Effect } from "effect";
|
|
|
4
4
|
|
|
5
5
|
//#region src/services/GroupsService.d.ts
|
|
6
6
|
declare class GroupNotFoundError extends Error {
|
|
7
|
-
readonly groupId: string;
|
|
8
7
|
readonly _tag = "GroupNotFoundError";
|
|
8
|
+
readonly groupId: string;
|
|
9
9
|
constructor(groupId: string);
|
|
10
10
|
}
|
|
11
|
-
declare const GroupsService_base: Context.
|
|
11
|
+
declare const GroupsService_base: Context.ServiceClass<GroupsService, "GroupsService", {
|
|
12
12
|
readonly create: (params: {
|
|
13
13
|
params: CreateGroupParamsType;
|
|
14
14
|
}) => Effect.Effect<CreateGroupResponseType, ServiceError>;
|
|
15
|
-
readonly list:
|
|
15
|
+
readonly list: Effect.Effect<ListGroupsResponseType, ServiceError>;
|
|
16
16
|
readonly get: (params: {
|
|
17
17
|
groupId: string;
|
|
18
18
|
}) => Effect.Effect<GroupDetailsType, GroupNotFoundError | ServiceError>;
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import { Context
|
|
1
|
+
import { Context } from "effect";
|
|
2
2
|
|
|
3
3
|
//#region src/services/GroupsService.ts
|
|
4
4
|
var GroupNotFoundError = class extends Error {
|
|
5
5
|
_tag = "GroupNotFoundError";
|
|
6
|
+
groupId;
|
|
6
7
|
constructor(groupId) {
|
|
7
8
|
super(`Group ${groupId} not found`);
|
|
8
9
|
this.groupId = groupId;
|
|
10
|
+
this.name = "GroupNotFoundError";
|
|
9
11
|
}
|
|
10
12
|
};
|
|
11
|
-
var GroupsService = class extends Context.
|
|
13
|
+
var GroupsService = class extends Context.Service()("GroupsService") {};
|
|
12
14
|
|
|
13
15
|
//#endregion
|
|
14
16
|
export { GroupNotFoundError, GroupsService };
|
|
@@ -3,7 +3,7 @@ import { EvaluateExistingParams, EvaluateExistingResponse, EvaluateParams, Evalu
|
|
|
3
3
|
import { Context, Effect } from "effect";
|
|
4
4
|
|
|
5
5
|
//#region src/services/HalService.d.ts
|
|
6
|
-
declare const HalService_base: Context.
|
|
6
|
+
declare const HalService_base: Context.ServiceClass<HalService, "HalService", {
|
|
7
7
|
readonly evaluate: (params: EvaluateParams) => Effect.Effect<EvaluateResponse, SimulationError | ServiceError>;
|
|
8
8
|
readonly evaluateExisting: (params: EvaluateExistingParams) => Effect.Effect<EvaluateExistingResponse, ActionNotFoundError | SimulationError | ServiceError>;
|
|
9
9
|
}>;
|