@herd-labs/sdk 0.3.0 → 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 +7 -7
- 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 +6 -5
- package/dist/src/live/http.js +16 -18
- 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 -47
- package/dist/src/schemas/auth.js +10 -7
- 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 +14 -19
|
@@ -1,226 +1,82 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
|
-
import * as effect_Brand5 from "effect/Brand";
|
|
3
2
|
|
|
4
3
|
//#region src/schemas/agent-wallets.d.ts
|
|
5
|
-
declare const AgentWallet_base: Schema.Class<AgentWallet, {
|
|
6
|
-
|
|
7
|
-
groupId:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
id: typeof Schema.UUID;
|
|
13
|
-
groupId: typeof Schema.UUID;
|
|
14
|
-
address: Schema.brand<Schema.filter<typeof Schema.String>, "EvmAddress">;
|
|
15
|
-
name: Schema.NullOr<typeof Schema.String>;
|
|
16
|
-
intent: Schema.NullOr<typeof Schema.String>;
|
|
17
|
-
}>, never, {
|
|
18
|
-
readonly id: string;
|
|
19
|
-
} & {
|
|
20
|
-
readonly name: string | null;
|
|
21
|
-
} & {
|
|
22
|
-
readonly intent: string | null;
|
|
23
|
-
} & {
|
|
24
|
-
readonly address: string & effect_Brand5.Brand<"EvmAddress">;
|
|
25
|
-
} & {
|
|
26
|
-
readonly groupId: string;
|
|
27
|
-
}, {}, {}>;
|
|
4
|
+
declare const AgentWallet_base: Schema.Class<AgentWallet, Schema.Struct<{
|
|
5
|
+
readonly address: Schema.brand<Schema.String, "EvmAddress">;
|
|
6
|
+
readonly groupId: Schema.String;
|
|
7
|
+
readonly id: Schema.String;
|
|
8
|
+
readonly intent: Schema.NullOr<Schema.String>;
|
|
9
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
10
|
+
}>, {}>;
|
|
28
11
|
declare class AgentWallet extends AgentWallet_base {}
|
|
29
|
-
declare const AgentWalletSafe_base: Schema.Class<AgentWalletSafe, {
|
|
30
|
-
blockchain: Schema.
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
blockchain: Schema.Literal<["ethereum", "base"]>;
|
|
38
|
-
safeAddress: Schema.brand<Schema.filter<typeof Schema.String>, "EvmAddress">;
|
|
39
|
-
name: Schema.NullOr<typeof Schema.String>;
|
|
40
|
-
intent: Schema.NullOr<typeof Schema.String>;
|
|
41
|
-
isProposer: typeof Schema.Boolean;
|
|
42
|
-
isSigner: typeof Schema.Boolean;
|
|
43
|
-
}>, never, {
|
|
44
|
-
readonly name: string | null;
|
|
45
|
-
} & {
|
|
46
|
-
readonly intent: string | null;
|
|
47
|
-
} & {
|
|
48
|
-
readonly blockchain: "ethereum" | "base";
|
|
49
|
-
} & {
|
|
50
|
-
readonly safeAddress: string & effect_Brand5.Brand<"EvmAddress">;
|
|
51
|
-
} & {
|
|
52
|
-
readonly isProposer: boolean;
|
|
53
|
-
} & {
|
|
54
|
-
readonly isSigner: boolean;
|
|
55
|
-
}, {}, {}>;
|
|
12
|
+
declare const AgentWalletSafe_base: Schema.Class<AgentWalletSafe, Schema.Struct<{
|
|
13
|
+
readonly blockchain: Schema.Literals<readonly ["ethereum", "base"]>;
|
|
14
|
+
readonly intent: Schema.NullOr<Schema.String>;
|
|
15
|
+
readonly isProposer: Schema.Boolean;
|
|
16
|
+
readonly isSigner: Schema.Boolean;
|
|
17
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
18
|
+
readonly safeAddress: Schema.brand<Schema.String, "EvmAddress">;
|
|
19
|
+
}>, {}>;
|
|
56
20
|
declare class AgentWalletSafe extends AgentWalletSafe_base {}
|
|
57
|
-
declare const LinkedAgentWallet_base: Schema.Class<LinkedAgentWallet, {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
agentWalletId: typeof Schema.UUID;
|
|
66
|
-
address: Schema.brand<Schema.filter<typeof Schema.String>, "EvmAddress">;
|
|
67
|
-
name: Schema.NullOr<typeof Schema.String>;
|
|
68
|
-
intent: Schema.NullOr<typeof Schema.String>;
|
|
69
|
-
isProposer: typeof Schema.Boolean;
|
|
70
|
-
isSigner: typeof Schema.Boolean;
|
|
71
|
-
}>, never, {
|
|
72
|
-
readonly name: string | null;
|
|
73
|
-
} & {
|
|
74
|
-
readonly intent: string | null;
|
|
75
|
-
} & {
|
|
76
|
-
readonly address: string & effect_Brand5.Brand<"EvmAddress">;
|
|
77
|
-
} & {
|
|
78
|
-
readonly isProposer: boolean;
|
|
79
|
-
} & {
|
|
80
|
-
readonly isSigner: boolean;
|
|
81
|
-
} & {
|
|
82
|
-
readonly agentWalletId: string;
|
|
83
|
-
}, {}, {}>;
|
|
21
|
+
declare const LinkedAgentWallet_base: Schema.Class<LinkedAgentWallet, Schema.Struct<{
|
|
22
|
+
readonly address: Schema.brand<Schema.String, "EvmAddress">;
|
|
23
|
+
readonly agentWalletId: Schema.String;
|
|
24
|
+
readonly intent: Schema.NullOr<Schema.String>;
|
|
25
|
+
readonly isProposer: Schema.Boolean;
|
|
26
|
+
readonly isSigner: Schema.Boolean;
|
|
27
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
28
|
+
}>, {}>;
|
|
84
29
|
declare class LinkedAgentWallet extends LinkedAgentWallet_base {}
|
|
85
|
-
declare const AgentSafeMetadata_base: Schema.Class<AgentSafeMetadata, {
|
|
86
|
-
blockchain: Schema.
|
|
87
|
-
|
|
88
|
-
name: Schema.NullOr<
|
|
89
|
-
|
|
90
|
-
}
|
|
91
|
-
blockchain: Schema.Literal<["ethereum", "base"]>;
|
|
92
|
-
safeAddress: Schema.brand<Schema.filter<typeof Schema.String>, "EvmAddress">;
|
|
93
|
-
name: Schema.NullOr<typeof Schema.String>;
|
|
94
|
-
intent: Schema.NullOr<typeof Schema.String>;
|
|
95
|
-
}>, never, {
|
|
96
|
-
readonly name: string | null;
|
|
97
|
-
} & {
|
|
98
|
-
readonly intent: string | null;
|
|
99
|
-
} & {
|
|
100
|
-
readonly blockchain: "ethereum" | "base";
|
|
101
|
-
} & {
|
|
102
|
-
readonly safeAddress: string & effect_Brand5.Brand<"EvmAddress">;
|
|
103
|
-
}, {}, {}>;
|
|
30
|
+
declare const AgentSafeMetadata_base: Schema.Class<AgentSafeMetadata, Schema.Struct<{
|
|
31
|
+
readonly blockchain: Schema.Literals<readonly ["ethereum", "base"]>;
|
|
32
|
+
readonly intent: Schema.NullOr<Schema.String>;
|
|
33
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
34
|
+
readonly safeAddress: Schema.brand<Schema.String, "EvmAddress">;
|
|
35
|
+
}>, {}>;
|
|
104
36
|
declare class AgentSafeMetadata extends AgentSafeMetadata_base {}
|
|
105
|
-
declare const AgentWalletsListParams_base: Schema.Class<AgentWalletsListParams, {
|
|
106
|
-
groupId: Schema.optional<
|
|
107
|
-
}
|
|
108
|
-
groupId: Schema.optional<typeof Schema.UUID>;
|
|
109
|
-
}>, never, {
|
|
110
|
-
readonly groupId?: string | undefined;
|
|
111
|
-
}, {}, {}>;
|
|
37
|
+
declare const AgentWalletsListParams_base: Schema.Class<AgentWalletsListParams, Schema.Struct<{
|
|
38
|
+
readonly groupId: Schema.optional<Schema.String>;
|
|
39
|
+
}>, {}>;
|
|
112
40
|
declare class AgentWalletsListParams extends AgentWalletsListParams_base {}
|
|
113
|
-
declare const AgentWalletsList_base: Schema.Class<AgentWalletsList, {
|
|
114
|
-
agentWallets: Schema
|
|
115
|
-
}
|
|
116
|
-
agentWallets: Schema.Array$<typeof AgentWallet>;
|
|
117
|
-
}>, never, {
|
|
118
|
-
readonly agentWallets: readonly AgentWallet[];
|
|
119
|
-
}, {}, {}>;
|
|
41
|
+
declare const AgentWalletsList_base: Schema.Class<AgentWalletsList, Schema.Struct<{
|
|
42
|
+
readonly agentWallets: Schema.$Array<typeof AgentWallet>;
|
|
43
|
+
}>, {}>;
|
|
120
44
|
declare class AgentWalletsList extends AgentWalletsList_base {}
|
|
121
|
-
declare const AgentWalletSafesList_base: Schema.Class<AgentWalletSafesList, {
|
|
122
|
-
safes: Schema
|
|
123
|
-
}
|
|
124
|
-
safes: Schema.Array$<typeof AgentWalletSafe>;
|
|
125
|
-
}>, never, {
|
|
126
|
-
readonly safes: readonly AgentWalletSafe[];
|
|
127
|
-
}, {}, {}>;
|
|
45
|
+
declare const AgentWalletSafesList_base: Schema.Class<AgentWalletSafesList, Schema.Struct<{
|
|
46
|
+
readonly safes: Schema.$Array<typeof AgentWalletSafe>;
|
|
47
|
+
}>, {}>;
|
|
128
48
|
declare class AgentWalletSafesList extends AgentWalletSafesList_base {}
|
|
129
|
-
declare const AgentSafe_base: Schema.Class<AgentSafe, {
|
|
130
|
-
blockchain: Schema.
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
}
|
|
139
|
-
blockchain: Schema.Literal<["ethereum", "base"]>;
|
|
140
|
-
safeAddress: Schema.brand<Schema.filter<typeof Schema.String>, "EvmAddress">;
|
|
141
|
-
name: Schema.NullOr<typeof Schema.String>;
|
|
142
|
-
intent: Schema.NullOr<typeof Schema.String>;
|
|
143
|
-
linkedAgentWallets: Schema.Array$<typeof LinkedAgentWallet>;
|
|
144
|
-
owners: Schema.Array$<Schema.brand<Schema.filter<typeof Schema.String>, "EvmAddress">>;
|
|
145
|
-
threshold: typeof Schema.Number;
|
|
146
|
-
safeUrl: typeof Schema.String;
|
|
147
|
-
}>, never, {
|
|
148
|
-
readonly name: string | null;
|
|
149
|
-
} & {
|
|
150
|
-
readonly intent: string | null;
|
|
151
|
-
} & {
|
|
152
|
-
readonly blockchain: "ethereum" | "base";
|
|
153
|
-
} & {
|
|
154
|
-
readonly safeAddress: string & effect_Brand5.Brand<"EvmAddress">;
|
|
155
|
-
} & {
|
|
156
|
-
readonly threshold: number;
|
|
157
|
-
} & {
|
|
158
|
-
readonly safeUrl: string;
|
|
159
|
-
} & {
|
|
160
|
-
readonly linkedAgentWallets: readonly LinkedAgentWallet[];
|
|
161
|
-
} & {
|
|
162
|
-
readonly owners: readonly (string & effect_Brand5.Brand<"EvmAddress">)[];
|
|
163
|
-
}, {}, {}>;
|
|
49
|
+
declare const AgentSafe_base: Schema.Class<AgentSafe, Schema.Struct<{
|
|
50
|
+
readonly blockchain: Schema.Literals<readonly ["ethereum", "base"]>;
|
|
51
|
+
readonly intent: Schema.NullOr<Schema.String>;
|
|
52
|
+
readonly linkedAgentWallets: Schema.$Array<typeof LinkedAgentWallet>;
|
|
53
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
54
|
+
readonly owners: Schema.$Array<Schema.brand<Schema.String, "EvmAddress">>;
|
|
55
|
+
readonly safeAddress: Schema.brand<Schema.String, "EvmAddress">;
|
|
56
|
+
readonly safeUrl: Schema.String;
|
|
57
|
+
readonly threshold: Schema.Number;
|
|
58
|
+
}>, {}>;
|
|
164
59
|
declare class AgentSafe extends AgentSafe_base {}
|
|
165
|
-
declare const SetSafeProposerParams_base: Schema.Class<SetSafeProposerParams, {
|
|
166
|
-
agentWalletAddress: Schema.brand<Schema.
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
}
|
|
170
|
-
agentWalletAddress: Schema.brand<Schema.filter<typeof Schema.String>, "EvmAddress">;
|
|
171
|
-
name: Schema.optional<typeof Schema.String>;
|
|
172
|
-
intent: Schema.optional<typeof Schema.String>;
|
|
173
|
-
}>, never, {
|
|
174
|
-
readonly name?: string | undefined;
|
|
175
|
-
} & {
|
|
176
|
-
readonly intent?: string | undefined;
|
|
177
|
-
} & {
|
|
178
|
-
readonly agentWalletAddress: string & effect_Brand5.Brand<"EvmAddress">;
|
|
179
|
-
}, {}, {}>;
|
|
60
|
+
declare const SetSafeProposerParams_base: Schema.Class<SetSafeProposerParams, Schema.Struct<{
|
|
61
|
+
readonly agentWalletAddress: Schema.brand<Schema.String, "EvmAddress">;
|
|
62
|
+
readonly intent: Schema.optional<Schema.String>;
|
|
63
|
+
readonly name: Schema.optional<Schema.String>;
|
|
64
|
+
}>, {}>;
|
|
180
65
|
declare class SetSafeProposerParams extends SetSafeProposerParams_base {}
|
|
181
|
-
declare const SetSafeProposerResponse_base: Schema.Class<SetSafeProposerResponse, {
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
}
|
|
190
|
-
blockchain: Schema.Literal<["ethereum", "base"]>;
|
|
191
|
-
safeAddress: Schema.brand<Schema.filter<typeof Schema.String>, "EvmAddress">;
|
|
192
|
-
name: Schema.NullOr<typeof Schema.String>;
|
|
193
|
-
intent: Schema.NullOr<typeof Schema.String>;
|
|
194
|
-
agentWalletAddress: Schema.brand<Schema.filter<typeof Schema.String>, "EvmAddress">;
|
|
195
|
-
isProposer: typeof Schema.Boolean;
|
|
196
|
-
isSigner: typeof Schema.Boolean;
|
|
197
|
-
}>, never, {
|
|
198
|
-
readonly name: string | null;
|
|
199
|
-
} & {
|
|
200
|
-
readonly intent: string | null;
|
|
201
|
-
} & {
|
|
202
|
-
readonly blockchain: "ethereum" | "base";
|
|
203
|
-
} & {
|
|
204
|
-
readonly safeAddress: string & effect_Brand5.Brand<"EvmAddress">;
|
|
205
|
-
} & {
|
|
206
|
-
readonly isProposer: boolean;
|
|
207
|
-
} & {
|
|
208
|
-
readonly isSigner: boolean;
|
|
209
|
-
} & {
|
|
210
|
-
readonly agentWalletAddress: string & effect_Brand5.Brand<"EvmAddress">;
|
|
211
|
-
}, {}, {}>;
|
|
66
|
+
declare const SetSafeProposerResponse_base: Schema.Class<SetSafeProposerResponse, Schema.Struct<{
|
|
67
|
+
readonly agentWalletAddress: Schema.brand<Schema.String, "EvmAddress">;
|
|
68
|
+
readonly blockchain: Schema.Literals<readonly ["ethereum", "base"]>;
|
|
69
|
+
readonly intent: Schema.NullOr<Schema.String>;
|
|
70
|
+
readonly isProposer: Schema.Boolean;
|
|
71
|
+
readonly isSigner: Schema.Boolean;
|
|
72
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
73
|
+
readonly safeAddress: Schema.brand<Schema.String, "EvmAddress">;
|
|
74
|
+
}>, {}>;
|
|
212
75
|
declare class SetSafeProposerResponse extends SetSafeProposerResponse_base {}
|
|
213
|
-
declare const EditAgentSafeMetadataParams_base: Schema.Class<EditAgentSafeMetadataParams, {
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
}
|
|
217
|
-
name: Schema.optional<typeof Schema.String>;
|
|
218
|
-
intent: Schema.optional<typeof Schema.String>;
|
|
219
|
-
}>, never, {
|
|
220
|
-
readonly name?: string | undefined;
|
|
221
|
-
} & {
|
|
222
|
-
readonly intent?: string | undefined;
|
|
223
|
-
}, {}, {}>;
|
|
76
|
+
declare const EditAgentSafeMetadataParams_base: Schema.Class<EditAgentSafeMetadataParams, Schema.Struct<{
|
|
77
|
+
readonly intent: Schema.optional<Schema.String>;
|
|
78
|
+
readonly name: Schema.optional<Schema.String>;
|
|
79
|
+
}>, {}>;
|
|
224
80
|
declare class EditAgentSafeMetadataParams extends EditAgentSafeMetadataParams_base {}
|
|
225
81
|
//#endregion
|
|
226
82
|
export { AgentSafe, AgentSafeMetadata, AgentWallet, AgentWalletSafe, AgentWalletSafesList, AgentWalletsList, AgentWalletsListParams, EditAgentSafeMetadataParams, LinkedAgentWallet, SetSafeProposerParams, SetSafeProposerResponse };
|
|
@@ -4,64 +4,64 @@ import { Schema } from "effect";
|
|
|
4
4
|
//#region src/schemas/agent-wallets.ts
|
|
5
5
|
const OptionalString = Schema.optional(Schema.String);
|
|
6
6
|
var AgentWallet = class extends Schema.Class("AgentWallet")({
|
|
7
|
-
id: Schema.UUID,
|
|
8
|
-
groupId: Schema.UUID,
|
|
9
7
|
address: EvmAddress,
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
groupId: Schema.String.check(Schema.isUUID()),
|
|
9
|
+
id: Schema.String.check(Schema.isUUID()),
|
|
10
|
+
intent: Schema.NullOr(Schema.String),
|
|
11
|
+
name: Schema.NullOr(Schema.String)
|
|
12
12
|
}) {};
|
|
13
13
|
var AgentWalletSafe = class extends Schema.Class("AgentWalletSafe")({
|
|
14
14
|
blockchain: Blockchain,
|
|
15
|
-
safeAddress: EvmAddress,
|
|
16
|
-
name: Schema.NullOr(Schema.String),
|
|
17
15
|
intent: Schema.NullOr(Schema.String),
|
|
18
16
|
isProposer: Schema.Boolean,
|
|
19
|
-
isSigner: Schema.Boolean
|
|
17
|
+
isSigner: Schema.Boolean,
|
|
18
|
+
name: Schema.NullOr(Schema.String),
|
|
19
|
+
safeAddress: EvmAddress
|
|
20
20
|
}) {};
|
|
21
21
|
var LinkedAgentWallet = class extends Schema.Class("LinkedAgentWallet")({
|
|
22
|
-
agentWalletId: Schema.UUID,
|
|
23
22
|
address: EvmAddress,
|
|
24
|
-
|
|
23
|
+
agentWalletId: Schema.String.check(Schema.isUUID()),
|
|
25
24
|
intent: Schema.NullOr(Schema.String),
|
|
26
25
|
isProposer: Schema.Boolean,
|
|
27
|
-
isSigner: Schema.Boolean
|
|
26
|
+
isSigner: Schema.Boolean,
|
|
27
|
+
name: Schema.NullOr(Schema.String)
|
|
28
28
|
}) {};
|
|
29
29
|
var AgentSafeMetadata = class extends Schema.Class("AgentSafeMetadata")({
|
|
30
30
|
blockchain: Blockchain,
|
|
31
|
-
|
|
31
|
+
intent: Schema.NullOr(Schema.String),
|
|
32
32
|
name: Schema.NullOr(Schema.String),
|
|
33
|
-
|
|
33
|
+
safeAddress: EvmAddress
|
|
34
34
|
}) {};
|
|
35
|
-
var AgentWalletsListParams = class extends Schema.Class("AgentWalletsListParams")({ groupId: Schema.optional(Schema.
|
|
35
|
+
var AgentWalletsListParams = class extends Schema.Class("AgentWalletsListParams")({ groupId: Schema.optional(Schema.String.check(Schema.isUUID())) }) {};
|
|
36
36
|
var AgentWalletsList = class extends Schema.Class("AgentWalletsList")({ agentWallets: Schema.Array(AgentWallet) }) {};
|
|
37
37
|
var AgentWalletSafesList = class extends Schema.Class("AgentWalletSafesList")({ safes: Schema.Array(AgentWalletSafe) }) {};
|
|
38
38
|
var AgentSafe = class extends Schema.Class("AgentSafe")({
|
|
39
39
|
blockchain: Blockchain,
|
|
40
|
-
safeAddress: EvmAddress,
|
|
41
|
-
name: Schema.NullOr(Schema.String),
|
|
42
40
|
intent: Schema.NullOr(Schema.String),
|
|
43
41
|
linkedAgentWallets: Schema.Array(LinkedAgentWallet),
|
|
42
|
+
name: Schema.NullOr(Schema.String),
|
|
44
43
|
owners: Schema.Array(EvmAddress),
|
|
45
|
-
|
|
46
|
-
safeUrl: Schema.String
|
|
44
|
+
safeAddress: EvmAddress,
|
|
45
|
+
safeUrl: Schema.String,
|
|
46
|
+
threshold: Schema.Number
|
|
47
47
|
}) {};
|
|
48
48
|
var SetSafeProposerParams = class extends Schema.Class("SetSafeProposerParams")({
|
|
49
49
|
agentWalletAddress: EvmAddress,
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
intent: OptionalString,
|
|
51
|
+
name: OptionalString
|
|
52
52
|
}) {};
|
|
53
53
|
var SetSafeProposerResponse = class extends Schema.Class("SetSafeProposerResponse")({
|
|
54
|
+
agentWalletAddress: EvmAddress,
|
|
54
55
|
blockchain: Blockchain,
|
|
55
|
-
safeAddress: EvmAddress,
|
|
56
|
-
name: Schema.NullOr(Schema.String),
|
|
57
56
|
intent: Schema.NullOr(Schema.String),
|
|
58
|
-
agentWalletAddress: EvmAddress,
|
|
59
57
|
isProposer: Schema.Boolean,
|
|
60
|
-
isSigner: Schema.Boolean
|
|
58
|
+
isSigner: Schema.Boolean,
|
|
59
|
+
name: Schema.NullOr(Schema.String),
|
|
60
|
+
safeAddress: EvmAddress
|
|
61
61
|
}) {};
|
|
62
62
|
var EditAgentSafeMetadataParams = class extends Schema.Class("EditAgentSafeMetadataParams")({
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
intent: OptionalString,
|
|
64
|
+
name: OptionalString
|
|
65
65
|
}) {};
|
|
66
66
|
|
|
67
67
|
//#endregion
|
|
@@ -2,118 +2,118 @@ import { Schema } from "effect";
|
|
|
2
2
|
|
|
3
3
|
//#region src/schemas/agent-workflows.d.ts
|
|
4
4
|
declare const AgentWorkflow: Schema.Struct<{
|
|
5
|
-
|
|
6
|
-
groupId:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
updatedAt:
|
|
5
|
+
readonly createdAt: Schema.String;
|
|
6
|
+
readonly groupId: Schema.String;
|
|
7
|
+
readonly id: Schema.String;
|
|
8
|
+
readonly intent: Schema.NullOr<Schema.String>;
|
|
9
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
10
|
+
readonly type: Schema.String;
|
|
11
|
+
readonly updatedAt: Schema.String;
|
|
12
12
|
}>;
|
|
13
13
|
type AgentWorkflowType = typeof AgentWorkflow.Type;
|
|
14
14
|
declare const AgentWorkflowRun: Schema.Struct<{
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
updatedAt:
|
|
15
|
+
readonly agentWorkflowId: Schema.String;
|
|
16
|
+
readonly changelog: Schema.String;
|
|
17
|
+
readonly createdAt: Schema.String;
|
|
18
|
+
readonly id: Schema.String;
|
|
19
|
+
readonly outputs: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
20
|
+
readonly updatedAt: Schema.String;
|
|
21
21
|
}>;
|
|
22
22
|
type AgentWorkflowRunType = typeof AgentWorkflowRun.Type;
|
|
23
23
|
declare const AgentWorkflowDecision: Schema.Struct<{
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
24
|
+
readonly agentWorkflowRunId: Schema.String;
|
|
25
|
+
readonly createdAt: Schema.String;
|
|
26
|
+
readonly decision: Schema.Literals<readonly ["approve", "reject"]>;
|
|
27
|
+
readonly groupId: Schema.String;
|
|
28
|
+
readonly id: Schema.String;
|
|
29
|
+
readonly updatedAt: Schema.String;
|
|
30
|
+
readonly userId: Schema.String;
|
|
31
31
|
}>;
|
|
32
32
|
type AgentWorkflowDecisionType = typeof AgentWorkflowDecision.Type;
|
|
33
33
|
declare const AgentWorkflowWithRuns: Schema.Struct<{
|
|
34
|
-
|
|
35
|
-
groupId:
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
outputs: Schema
|
|
45
|
-
|
|
46
|
-
createdAt: typeof Schema.String;
|
|
47
|
-
updatedAt: typeof Schema.String;
|
|
34
|
+
readonly createdAt: Schema.String;
|
|
35
|
+
readonly groupId: Schema.String;
|
|
36
|
+
readonly id: Schema.String;
|
|
37
|
+
readonly intent: Schema.NullOr<Schema.String>;
|
|
38
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
39
|
+
readonly runs: Schema.$Array<Schema.Struct<{
|
|
40
|
+
readonly agentWorkflowId: Schema.String;
|
|
41
|
+
readonly changelog: Schema.String;
|
|
42
|
+
readonly createdAt: Schema.String;
|
|
43
|
+
readonly id: Schema.String;
|
|
44
|
+
readonly outputs: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
45
|
+
readonly updatedAt: Schema.String;
|
|
48
46
|
}>>;
|
|
47
|
+
readonly type: Schema.String;
|
|
48
|
+
readonly updatedAt: Schema.String;
|
|
49
49
|
}>;
|
|
50
50
|
type AgentWorkflowWithRunsType = typeof AgentWorkflowWithRuns.Type;
|
|
51
51
|
declare const CreateAgentWorkflowParams: Schema.Struct<{
|
|
52
|
-
groupId:
|
|
53
|
-
|
|
54
|
-
name:
|
|
55
|
-
|
|
52
|
+
readonly groupId: Schema.String;
|
|
53
|
+
readonly intent: Schema.optional<Schema.String>;
|
|
54
|
+
readonly name: Schema.String;
|
|
55
|
+
readonly type: Schema.Literals<readonly ["safe_transaction", "wallet_transaction", "group_membership_change", "group_quorum_change"]>;
|
|
56
56
|
}>;
|
|
57
57
|
type CreateAgentWorkflowParamsType = typeof CreateAgentWorkflowParams.Type;
|
|
58
58
|
declare const CreateAgentWorkflowResponse: Schema.Struct<{
|
|
59
|
-
workflowId:
|
|
59
|
+
readonly workflowId: Schema.String;
|
|
60
60
|
}>;
|
|
61
61
|
type CreateAgentWorkflowResponseType = typeof CreateAgentWorkflowResponse.Type;
|
|
62
62
|
declare const ListAgentWorkflowsParams: Schema.Struct<{
|
|
63
|
-
groupId:
|
|
64
|
-
type: Schema.optional<Schema.
|
|
63
|
+
readonly groupId: Schema.String;
|
|
64
|
+
readonly type: Schema.optional<Schema.Literals<readonly ["safe_transaction", "wallet_transaction", "group_membership_change", "group_quorum_change"]>>;
|
|
65
65
|
}>;
|
|
66
66
|
type ListAgentWorkflowsParamsType = typeof ListAgentWorkflowsParams.Type;
|
|
67
67
|
declare const ListAgentWorkflowsResponse: Schema.Struct<{
|
|
68
|
-
workflows: Schema
|
|
69
|
-
|
|
70
|
-
groupId:
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
updatedAt:
|
|
68
|
+
readonly workflows: Schema.$Array<Schema.Struct<{
|
|
69
|
+
readonly createdAt: Schema.String;
|
|
70
|
+
readonly groupId: Schema.String;
|
|
71
|
+
readonly id: Schema.String;
|
|
72
|
+
readonly intent: Schema.NullOr<Schema.String>;
|
|
73
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
74
|
+
readonly type: Schema.String;
|
|
75
|
+
readonly updatedAt: Schema.String;
|
|
76
76
|
}>>;
|
|
77
77
|
}>;
|
|
78
78
|
type ListAgentWorkflowsResponseType = typeof ListAgentWorkflowsResponse.Type;
|
|
79
79
|
declare const GetAgentWorkflowParams: Schema.Struct<{
|
|
80
|
-
agentWorkflowId:
|
|
80
|
+
readonly agentWorkflowId: Schema.String;
|
|
81
81
|
}>;
|
|
82
82
|
type GetAgentWorkflowParamsType = typeof GetAgentWorkflowParams.Type;
|
|
83
83
|
declare const CreateAgentWorkflowRunParams: Schema.Struct<{
|
|
84
|
-
agentWorkflowId:
|
|
85
|
-
|
|
86
|
-
|
|
84
|
+
readonly agentWorkflowId: Schema.String;
|
|
85
|
+
readonly changelog: Schema.optional<Schema.String>;
|
|
86
|
+
readonly outputs: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
87
87
|
}>;
|
|
88
88
|
type CreateAgentWorkflowRunParamsType = typeof CreateAgentWorkflowRunParams.Type;
|
|
89
89
|
declare const CreateAgentWorkflowRunResponse: Schema.Struct<{
|
|
90
|
-
workflowRunId:
|
|
90
|
+
readonly workflowRunId: Schema.String;
|
|
91
91
|
}>;
|
|
92
92
|
type CreateAgentWorkflowRunResponseType = typeof CreateAgentWorkflowRunResponse.Type;
|
|
93
93
|
declare const SubmitAgentWorkflowDecisionParams: Schema.Struct<{
|
|
94
|
-
agentWorkflowRunId:
|
|
95
|
-
decision: Schema.
|
|
94
|
+
readonly agentWorkflowRunId: Schema.String;
|
|
95
|
+
readonly decision: Schema.Literals<readonly ["approve", "reject"]>;
|
|
96
96
|
}>;
|
|
97
97
|
type SubmitAgentWorkflowDecisionParamsType = typeof SubmitAgentWorkflowDecisionParams.Type;
|
|
98
98
|
declare const SubmitAgentWorkflowDecisionResponse: Schema.Struct<{
|
|
99
|
-
decisionId:
|
|
99
|
+
readonly decisionId: Schema.String;
|
|
100
100
|
}>;
|
|
101
101
|
type SubmitAgentWorkflowDecisionResponseType = typeof SubmitAgentWorkflowDecisionResponse.Type;
|
|
102
102
|
declare const PushAgentWorkflowParams: Schema.Struct<{
|
|
103
|
-
agentWorkflowRunId:
|
|
103
|
+
readonly agentWorkflowRunId: Schema.String;
|
|
104
104
|
}>;
|
|
105
105
|
type PushAgentWorkflowParamsType = typeof PushAgentWorkflowParams.Type;
|
|
106
106
|
declare const PushAgentWorkflowResponse: Schema.Struct<{
|
|
107
|
-
pushId:
|
|
107
|
+
readonly pushId: Schema.String;
|
|
108
108
|
}>;
|
|
109
109
|
type PushAgentWorkflowResponseType = typeof PushAgentWorkflowResponse.Type;
|
|
110
110
|
declare const ExecuteSafeTxParams: Schema.Struct<{
|
|
111
|
-
agentWorkflowRunId:
|
|
111
|
+
readonly agentWorkflowRunId: Schema.String;
|
|
112
112
|
}>;
|
|
113
113
|
type ExecuteSafeTxParamsType = typeof ExecuteSafeTxParams.Type;
|
|
114
114
|
declare const ExecuteSafeTxResponse: Schema.Struct<{
|
|
115
|
-
|
|
116
|
-
|
|
115
|
+
readonly blockchain: Schema.Literals<readonly ["ethereum", "base"]>;
|
|
116
|
+
readonly transactionHash: Schema.String;
|
|
117
117
|
}>;
|
|
118
118
|
type ExecuteSafeTxResponseType = typeof ExecuteSafeTxResponse.Type;
|
|
119
119
|
//#endregion
|