@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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
2
|
|
|
3
3
|
//#region src/schemas/agent-workflows.d.ts
|
|
4
|
-
declare const
|
|
4
|
+
declare const AgentWorkflow: Schema.Struct<{
|
|
5
5
|
id: typeof Schema.String;
|
|
6
6
|
groupId: typeof Schema.String;
|
|
7
7
|
type: typeof Schema.String;
|
|
@@ -9,57 +9,18 @@ declare const AgentWorkflow_base: Schema.Class<AgentWorkflow, {
|
|
|
9
9
|
intent: Schema.NullOr<typeof Schema.String>;
|
|
10
10
|
createdAt: typeof Schema.String;
|
|
11
11
|
updatedAt: typeof Schema.String;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
type: typeof Schema.String;
|
|
16
|
-
name: Schema.NullOr<typeof Schema.String>;
|
|
17
|
-
intent: Schema.NullOr<typeof Schema.String>;
|
|
18
|
-
createdAt: typeof Schema.String;
|
|
19
|
-
updatedAt: typeof Schema.String;
|
|
20
|
-
}>, never, {
|
|
21
|
-
readonly id: string;
|
|
22
|
-
} & {
|
|
23
|
-
readonly name: string | null;
|
|
24
|
-
} & {
|
|
25
|
-
readonly intent: string | null;
|
|
26
|
-
} & {
|
|
27
|
-
readonly groupId: string;
|
|
28
|
-
} & {
|
|
29
|
-
readonly type: string;
|
|
30
|
-
} & {
|
|
31
|
-
readonly createdAt: string;
|
|
32
|
-
} & {
|
|
33
|
-
readonly updatedAt: string;
|
|
34
|
-
}, {}, {}>;
|
|
35
|
-
declare class AgentWorkflow extends AgentWorkflow_base {}
|
|
36
|
-
declare const AgentWorkflowRun_base: Schema.Class<AgentWorkflowRun, {
|
|
37
|
-
id: typeof Schema.String;
|
|
38
|
-
agentWorkflowId: typeof Schema.String;
|
|
39
|
-
outputs: Schema.Record$<typeof Schema.String, typeof Schema.Unknown>;
|
|
40
|
-
createdAt: typeof Schema.String;
|
|
41
|
-
updatedAt: typeof Schema.String;
|
|
42
|
-
}, Schema.Struct.Encoded<{
|
|
12
|
+
}>;
|
|
13
|
+
type AgentWorkflowType = typeof AgentWorkflow.Type;
|
|
14
|
+
declare const AgentWorkflowRun: Schema.Struct<{
|
|
43
15
|
id: typeof Schema.String;
|
|
44
16
|
agentWorkflowId: typeof Schema.String;
|
|
45
17
|
outputs: Schema.Record$<typeof Schema.String, typeof Schema.Unknown>;
|
|
18
|
+
changelog: typeof Schema.String;
|
|
46
19
|
createdAt: typeof Schema.String;
|
|
47
20
|
updatedAt: typeof Schema.String;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
readonly createdAt: string;
|
|
52
|
-
} & {
|
|
53
|
-
readonly outputs: {
|
|
54
|
-
readonly [x: string]: unknown;
|
|
55
|
-
};
|
|
56
|
-
} & {
|
|
57
|
-
readonly updatedAt: string;
|
|
58
|
-
} & {
|
|
59
|
-
readonly agentWorkflowId: string;
|
|
60
|
-
}, {}, {}>;
|
|
61
|
-
declare class AgentWorkflowRun extends AgentWorkflowRun_base {}
|
|
62
|
-
declare const AgentWorkflowDecision_base: Schema.Class<AgentWorkflowDecision, {
|
|
21
|
+
}>;
|
|
22
|
+
type AgentWorkflowRunType = typeof AgentWorkflowRun.Type;
|
|
23
|
+
declare const AgentWorkflowDecision: Schema.Struct<{
|
|
63
24
|
id: typeof Schema.String;
|
|
64
25
|
agentWorkflowRunId: typeof Schema.String;
|
|
65
26
|
groupId: typeof Schema.String;
|
|
@@ -67,31 +28,9 @@ declare const AgentWorkflowDecision_base: Schema.Class<AgentWorkflowDecision, {
|
|
|
67
28
|
decision: Schema.Literal<["approve", "reject"]>;
|
|
68
29
|
createdAt: typeof Schema.String;
|
|
69
30
|
updatedAt: typeof Schema.String;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
groupId: typeof Schema.String;
|
|
74
|
-
userId: typeof Schema.String;
|
|
75
|
-
decision: Schema.Literal<["approve", "reject"]>;
|
|
76
|
-
createdAt: typeof Schema.String;
|
|
77
|
-
updatedAt: typeof Schema.String;
|
|
78
|
-
}>, never, {
|
|
79
|
-
readonly id: string;
|
|
80
|
-
} & {
|
|
81
|
-
readonly groupId: string;
|
|
82
|
-
} & {
|
|
83
|
-
readonly createdAt: string;
|
|
84
|
-
} & {
|
|
85
|
-
readonly userId: string;
|
|
86
|
-
} & {
|
|
87
|
-
readonly updatedAt: string;
|
|
88
|
-
} & {
|
|
89
|
-
readonly agentWorkflowRunId: string;
|
|
90
|
-
} & {
|
|
91
|
-
readonly decision: "approve" | "reject";
|
|
92
|
-
}, {}, {}>;
|
|
93
|
-
declare class AgentWorkflowDecision extends AgentWorkflowDecision_base {}
|
|
94
|
-
declare const AgentWorkflowWithRuns_base: Schema.Class<AgentWorkflowWithRuns, {
|
|
31
|
+
}>;
|
|
32
|
+
type AgentWorkflowDecisionType = typeof AgentWorkflowDecision.Type;
|
|
33
|
+
declare const AgentWorkflowWithRuns: Schema.Struct<{
|
|
95
34
|
id: typeof Schema.String;
|
|
96
35
|
groupId: typeof Schema.String;
|
|
97
36
|
type: typeof Schema.String;
|
|
@@ -99,147 +38,83 @@ declare const AgentWorkflowWithRuns_base: Schema.Class<AgentWorkflowWithRuns, {
|
|
|
99
38
|
intent: Schema.NullOr<typeof Schema.String>;
|
|
100
39
|
createdAt: typeof Schema.String;
|
|
101
40
|
updatedAt: typeof Schema.String;
|
|
102
|
-
runs: Schema.Array$<
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
readonly id: string;
|
|
114
|
-
} & {
|
|
115
|
-
readonly name: string | null;
|
|
116
|
-
} & {
|
|
117
|
-
readonly intent: string | null;
|
|
118
|
-
} & {
|
|
119
|
-
readonly groupId: string;
|
|
120
|
-
} & {
|
|
121
|
-
readonly type: string;
|
|
122
|
-
} & {
|
|
123
|
-
readonly createdAt: string;
|
|
124
|
-
} & {
|
|
125
|
-
readonly updatedAt: string;
|
|
126
|
-
} & {
|
|
127
|
-
readonly runs: readonly AgentWorkflowRun[];
|
|
128
|
-
}, {}, {}>;
|
|
129
|
-
declare class AgentWorkflowWithRuns extends AgentWorkflowWithRuns_base {}
|
|
130
|
-
declare const CreateAgentWorkflowParams_base: Schema.Class<CreateAgentWorkflowParams, {
|
|
41
|
+
runs: Schema.Array$<Schema.Struct<{
|
|
42
|
+
id: typeof Schema.String;
|
|
43
|
+
agentWorkflowId: typeof Schema.String;
|
|
44
|
+
outputs: Schema.Record$<typeof Schema.String, typeof Schema.Unknown>;
|
|
45
|
+
changelog: typeof Schema.String;
|
|
46
|
+
createdAt: typeof Schema.String;
|
|
47
|
+
updatedAt: typeof Schema.String;
|
|
48
|
+
}>>;
|
|
49
|
+
}>;
|
|
50
|
+
type AgentWorkflowWithRunsType = typeof AgentWorkflowWithRuns.Type;
|
|
51
|
+
declare const CreateAgentWorkflowParams: Schema.Struct<{
|
|
131
52
|
groupId: typeof Schema.String;
|
|
132
53
|
type: Schema.Literal<["safe_transaction", "wallet_transaction", "group_membership_change", "group_quorum_change"]>;
|
|
133
54
|
name: typeof Schema.String;
|
|
134
55
|
intent: Schema.optional<typeof Schema.String>;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
name: typeof Schema.String;
|
|
139
|
-
intent: Schema.optional<typeof Schema.String>;
|
|
140
|
-
}>, never, {
|
|
141
|
-
readonly name: string;
|
|
142
|
-
} & {
|
|
143
|
-
readonly intent?: string | undefined;
|
|
144
|
-
} & {
|
|
145
|
-
readonly groupId: string;
|
|
146
|
-
} & {
|
|
147
|
-
readonly type: "safe_transaction" | "wallet_transaction" | "group_membership_change" | "group_quorum_change";
|
|
148
|
-
}, {}, {}>;
|
|
149
|
-
declare class CreateAgentWorkflowParams extends CreateAgentWorkflowParams_base {}
|
|
150
|
-
declare const CreateAgentWorkflowResponse_base: Schema.Class<CreateAgentWorkflowResponse, {
|
|
151
|
-
workflowId: typeof Schema.String;
|
|
152
|
-
}, Schema.Struct.Encoded<{
|
|
56
|
+
}>;
|
|
57
|
+
type CreateAgentWorkflowParamsType = typeof CreateAgentWorkflowParams.Type;
|
|
58
|
+
declare const CreateAgentWorkflowResponse: Schema.Struct<{
|
|
153
59
|
workflowId: typeof Schema.String;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
declare class CreateAgentWorkflowResponse extends CreateAgentWorkflowResponse_base {}
|
|
158
|
-
declare const ListAgentWorkflowsParams_base: Schema.Class<ListAgentWorkflowsParams, {
|
|
159
|
-
groupId: typeof Schema.String;
|
|
160
|
-
type: Schema.optional<Schema.Literal<["safe_transaction", "wallet_transaction", "group_membership_change", "group_quorum_change"]>>;
|
|
161
|
-
}, Schema.Struct.Encoded<{
|
|
60
|
+
}>;
|
|
61
|
+
type CreateAgentWorkflowResponseType = typeof CreateAgentWorkflowResponse.Type;
|
|
62
|
+
declare const ListAgentWorkflowsParams: Schema.Struct<{
|
|
162
63
|
groupId: typeof Schema.String;
|
|
163
64
|
type: Schema.optional<Schema.Literal<["safe_transaction", "wallet_transaction", "group_membership_change", "group_quorum_change"]>>;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
declare const
|
|
65
|
+
}>;
|
|
66
|
+
type ListAgentWorkflowsParamsType = typeof ListAgentWorkflowsParams.Type;
|
|
67
|
+
declare const ListAgentWorkflowsResponse: Schema.Struct<{
|
|
68
|
+
workflows: Schema.Array$<Schema.Struct<{
|
|
69
|
+
id: typeof Schema.String;
|
|
70
|
+
groupId: typeof Schema.String;
|
|
71
|
+
type: typeof Schema.String;
|
|
72
|
+
name: Schema.NullOr<typeof Schema.String>;
|
|
73
|
+
intent: Schema.NullOr<typeof Schema.String>;
|
|
74
|
+
createdAt: typeof Schema.String;
|
|
75
|
+
updatedAt: typeof Schema.String;
|
|
76
|
+
}>>;
|
|
77
|
+
}>;
|
|
78
|
+
type ListAgentWorkflowsResponseType = typeof ListAgentWorkflowsResponse.Type;
|
|
79
|
+
declare const GetAgentWorkflowParams: Schema.Struct<{
|
|
179
80
|
agentWorkflowId: typeof Schema.String;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
readonly agentWorkflowId: string;
|
|
184
|
-
}, {}, {}>;
|
|
185
|
-
declare class GetAgentWorkflowParams extends GetAgentWorkflowParams_base {}
|
|
186
|
-
declare const CreateAgentWorkflowRunParams_base: Schema.Class<CreateAgentWorkflowRunParams, {
|
|
187
|
-
agentWorkflowId: typeof Schema.String;
|
|
188
|
-
outputs: Schema.Record$<typeof Schema.String, typeof Schema.Unknown>;
|
|
189
|
-
}, Schema.Struct.Encoded<{
|
|
81
|
+
}>;
|
|
82
|
+
type GetAgentWorkflowParamsType = typeof GetAgentWorkflowParams.Type;
|
|
83
|
+
declare const CreateAgentWorkflowRunParams: Schema.Struct<{
|
|
190
84
|
agentWorkflowId: typeof Schema.String;
|
|
191
85
|
outputs: Schema.Record$<typeof Schema.String, typeof Schema.Unknown>;
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
} & {
|
|
197
|
-
readonly agentWorkflowId: string;
|
|
198
|
-
}, {}, {}>;
|
|
199
|
-
declare class CreateAgentWorkflowRunParams extends CreateAgentWorkflowRunParams_base {}
|
|
200
|
-
declare const CreateAgentWorkflowRunResponse_base: Schema.Class<CreateAgentWorkflowRunResponse, {
|
|
86
|
+
changelog: Schema.optional<typeof Schema.String>;
|
|
87
|
+
}>;
|
|
88
|
+
type CreateAgentWorkflowRunParamsType = typeof CreateAgentWorkflowRunParams.Type;
|
|
89
|
+
declare const CreateAgentWorkflowRunResponse: Schema.Struct<{
|
|
201
90
|
workflowRunId: typeof Schema.String;
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
readonly workflowRunId: string;
|
|
206
|
-
}, {}, {}>;
|
|
207
|
-
declare class CreateAgentWorkflowRunResponse extends CreateAgentWorkflowRunResponse_base {}
|
|
208
|
-
declare const SubmitAgentWorkflowDecisionParams_base: Schema.Class<SubmitAgentWorkflowDecisionParams, {
|
|
209
|
-
agentWorkflowRunId: typeof Schema.String;
|
|
210
|
-
decision: Schema.Literal<["approve", "reject"]>;
|
|
211
|
-
}, Schema.Struct.Encoded<{
|
|
91
|
+
}>;
|
|
92
|
+
type CreateAgentWorkflowRunResponseType = typeof CreateAgentWorkflowRunResponse.Type;
|
|
93
|
+
declare const SubmitAgentWorkflowDecisionParams: Schema.Struct<{
|
|
212
94
|
agentWorkflowRunId: typeof Schema.String;
|
|
213
95
|
decision: Schema.Literal<["approve", "reject"]>;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
readonly decision: "approve" | "reject";
|
|
218
|
-
}, {}, {}>;
|
|
219
|
-
declare class SubmitAgentWorkflowDecisionParams extends SubmitAgentWorkflowDecisionParams_base {}
|
|
220
|
-
declare const SubmitAgentWorkflowDecisionResponse_base: Schema.Class<SubmitAgentWorkflowDecisionResponse, {
|
|
221
|
-
decisionId: typeof Schema.String;
|
|
222
|
-
}, Schema.Struct.Encoded<{
|
|
96
|
+
}>;
|
|
97
|
+
type SubmitAgentWorkflowDecisionParamsType = typeof SubmitAgentWorkflowDecisionParams.Type;
|
|
98
|
+
declare const SubmitAgentWorkflowDecisionResponse: Schema.Struct<{
|
|
223
99
|
decisionId: typeof Schema.String;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
declare class SubmitAgentWorkflowDecisionResponse extends SubmitAgentWorkflowDecisionResponse_base {}
|
|
228
|
-
declare const PushAgentWorkflowParams_base: Schema.Class<PushAgentWorkflowParams, {
|
|
229
|
-
agentWorkflowRunId: typeof Schema.String;
|
|
230
|
-
}, Schema.Struct.Encoded<{
|
|
100
|
+
}>;
|
|
101
|
+
type SubmitAgentWorkflowDecisionResponseType = typeof SubmitAgentWorkflowDecisionResponse.Type;
|
|
102
|
+
declare const PushAgentWorkflowParams: Schema.Struct<{
|
|
231
103
|
agentWorkflowRunId: typeof Schema.String;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
declare class PushAgentWorkflowParams extends PushAgentWorkflowParams_base {}
|
|
236
|
-
declare const PushAgentWorkflowResponse_base: Schema.Class<PushAgentWorkflowResponse, {
|
|
104
|
+
}>;
|
|
105
|
+
type PushAgentWorkflowParamsType = typeof PushAgentWorkflowParams.Type;
|
|
106
|
+
declare const PushAgentWorkflowResponse: Schema.Struct<{
|
|
237
107
|
pushId: typeof Schema.String;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
}
|
|
243
|
-
|
|
108
|
+
}>;
|
|
109
|
+
type PushAgentWorkflowResponseType = typeof PushAgentWorkflowResponse.Type;
|
|
110
|
+
declare const ExecuteSafeTxParams: Schema.Struct<{
|
|
111
|
+
agentWorkflowRunId: typeof Schema.String;
|
|
112
|
+
}>;
|
|
113
|
+
type ExecuteSafeTxParamsType = typeof ExecuteSafeTxParams.Type;
|
|
114
|
+
declare const ExecuteSafeTxResponse: Schema.Struct<{
|
|
115
|
+
transactionHash: typeof Schema.String;
|
|
116
|
+
blockchain: Schema.Literal<["ethereum", "base"]>;
|
|
117
|
+
}>;
|
|
118
|
+
type ExecuteSafeTxResponseType = typeof ExecuteSafeTxResponse.Type;
|
|
244
119
|
//#endregion
|
|
245
|
-
export { AgentWorkflow, AgentWorkflowDecision, AgentWorkflowRun, AgentWorkflowWithRuns, CreateAgentWorkflowParams, CreateAgentWorkflowResponse, CreateAgentWorkflowRunParams, CreateAgentWorkflowRunResponse, GetAgentWorkflowParams, ListAgentWorkflowsParams, ListAgentWorkflowsResponse, PushAgentWorkflowParams, PushAgentWorkflowResponse, SubmitAgentWorkflowDecisionParams, SubmitAgentWorkflowDecisionResponse };
|
|
120
|
+
export { AgentWorkflow, AgentWorkflowDecision, AgentWorkflowDecisionType, AgentWorkflowRun, AgentWorkflowRunType, AgentWorkflowType, AgentWorkflowWithRuns, AgentWorkflowWithRunsType, CreateAgentWorkflowParams, CreateAgentWorkflowParamsType, CreateAgentWorkflowResponse, CreateAgentWorkflowResponseType, CreateAgentWorkflowRunParams, CreateAgentWorkflowRunParamsType, CreateAgentWorkflowRunResponse, CreateAgentWorkflowRunResponseType, ExecuteSafeTxParams, ExecuteSafeTxParamsType, ExecuteSafeTxResponse, ExecuteSafeTxResponseType, GetAgentWorkflowParams, GetAgentWorkflowParamsType, ListAgentWorkflowsParams, ListAgentWorkflowsParamsType, ListAgentWorkflowsResponse, ListAgentWorkflowsResponseType, PushAgentWorkflowParams, PushAgentWorkflowParamsType, PushAgentWorkflowResponse, PushAgentWorkflowResponseType, SubmitAgentWorkflowDecisionParams, SubmitAgentWorkflowDecisionParamsType, SubmitAgentWorkflowDecisionResponse, SubmitAgentWorkflowDecisionResponseType };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
2
|
|
|
3
3
|
//#region src/schemas/agent-workflows.ts
|
|
4
|
-
|
|
4
|
+
const AgentWorkflow = Schema.Struct({
|
|
5
5
|
id: Schema.String,
|
|
6
6
|
groupId: Schema.String,
|
|
7
7
|
type: Schema.String,
|
|
@@ -9,18 +9,19 @@ var AgentWorkflow = class extends Schema.Class("AgentWorkflow")({
|
|
|
9
9
|
intent: Schema.NullOr(Schema.String),
|
|
10
10
|
createdAt: Schema.String,
|
|
11
11
|
updatedAt: Schema.String
|
|
12
|
-
})
|
|
13
|
-
|
|
12
|
+
});
|
|
13
|
+
const AgentWorkflowRun = Schema.Struct({
|
|
14
14
|
id: Schema.String,
|
|
15
15
|
agentWorkflowId: Schema.String,
|
|
16
16
|
outputs: Schema.Record({
|
|
17
17
|
key: Schema.String,
|
|
18
18
|
value: Schema.Unknown
|
|
19
19
|
}),
|
|
20
|
+
changelog: Schema.String,
|
|
20
21
|
createdAt: Schema.String,
|
|
21
22
|
updatedAt: Schema.String
|
|
22
|
-
})
|
|
23
|
-
|
|
23
|
+
});
|
|
24
|
+
const AgentWorkflowDecision = Schema.Struct({
|
|
24
25
|
id: Schema.String,
|
|
25
26
|
agentWorkflowRunId: Schema.String,
|
|
26
27
|
groupId: Schema.String,
|
|
@@ -28,8 +29,8 @@ var AgentWorkflowDecision = class extends Schema.Class("AgentWorkflowDecision")(
|
|
|
28
29
|
decision: Schema.Literal("approve", "reject"),
|
|
29
30
|
createdAt: Schema.String,
|
|
30
31
|
updatedAt: Schema.String
|
|
31
|
-
})
|
|
32
|
-
|
|
32
|
+
});
|
|
33
|
+
const AgentWorkflowWithRuns = Schema.Struct({
|
|
33
34
|
id: Schema.String,
|
|
34
35
|
groupId: Schema.String,
|
|
35
36
|
type: Schema.String,
|
|
@@ -38,35 +39,41 @@ var AgentWorkflowWithRuns = class extends Schema.Class("AgentWorkflowWithRuns")(
|
|
|
38
39
|
createdAt: Schema.String,
|
|
39
40
|
updatedAt: Schema.String,
|
|
40
41
|
runs: Schema.Array(AgentWorkflowRun)
|
|
41
|
-
})
|
|
42
|
-
|
|
42
|
+
});
|
|
43
|
+
const CreateAgentWorkflowParams = Schema.Struct({
|
|
43
44
|
groupId: Schema.String,
|
|
44
45
|
type: Schema.Literal("safe_transaction", "wallet_transaction", "group_membership_change", "group_quorum_change"),
|
|
45
46
|
name: Schema.String,
|
|
46
47
|
intent: Schema.optional(Schema.String)
|
|
47
|
-
})
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
});
|
|
49
|
+
const CreateAgentWorkflowResponse = Schema.Struct({ workflowId: Schema.String });
|
|
50
|
+
const ListAgentWorkflowsParams = Schema.Struct({
|
|
50
51
|
groupId: Schema.String,
|
|
51
52
|
type: Schema.optional(Schema.Literal("safe_transaction", "wallet_transaction", "group_membership_change", "group_quorum_change"))
|
|
52
|
-
})
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
});
|
|
54
|
+
const ListAgentWorkflowsResponse = Schema.Struct({ workflows: Schema.Array(AgentWorkflow) });
|
|
55
|
+
const GetAgentWorkflowParams = Schema.Struct({ agentWorkflowId: Schema.String });
|
|
56
|
+
const CreateAgentWorkflowRunParams = Schema.Struct({
|
|
56
57
|
agentWorkflowId: Schema.String,
|
|
57
58
|
outputs: Schema.Record({
|
|
58
59
|
key: Schema.String,
|
|
59
60
|
value: Schema.Unknown
|
|
60
|
-
})
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
61
|
+
}),
|
|
62
|
+
changelog: Schema.optional(Schema.String)
|
|
63
|
+
});
|
|
64
|
+
const CreateAgentWorkflowRunResponse = Schema.Struct({ workflowRunId: Schema.String });
|
|
65
|
+
const SubmitAgentWorkflowDecisionParams = Schema.Struct({
|
|
64
66
|
agentWorkflowRunId: Schema.String,
|
|
65
67
|
decision: Schema.Literal("approve", "reject")
|
|
66
|
-
})
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
});
|
|
69
|
+
const SubmitAgentWorkflowDecisionResponse = Schema.Struct({ decisionId: Schema.String });
|
|
70
|
+
const PushAgentWorkflowParams = Schema.Struct({ agentWorkflowRunId: Schema.String });
|
|
71
|
+
const PushAgentWorkflowResponse = Schema.Struct({ pushId: Schema.String });
|
|
72
|
+
const ExecuteSafeTxParams = Schema.Struct({ agentWorkflowRunId: Schema.String });
|
|
73
|
+
const ExecuteSafeTxResponse = Schema.Struct({
|
|
74
|
+
transactionHash: Schema.String,
|
|
75
|
+
blockchain: Schema.Literal("ethereum", "base")
|
|
76
|
+
});
|
|
70
77
|
|
|
71
78
|
//#endregion
|
|
72
|
-
export { AgentWorkflow, AgentWorkflowDecision, AgentWorkflowRun, AgentWorkflowWithRuns, CreateAgentWorkflowParams, CreateAgentWorkflowResponse, CreateAgentWorkflowRunParams, CreateAgentWorkflowRunResponse, GetAgentWorkflowParams, ListAgentWorkflowsParams, ListAgentWorkflowsResponse, PushAgentWorkflowParams, PushAgentWorkflowResponse, SubmitAgentWorkflowDecisionParams, SubmitAgentWorkflowDecisionResponse };
|
|
79
|
+
export { AgentWorkflow, AgentWorkflowDecision, AgentWorkflowRun, AgentWorkflowWithRuns, CreateAgentWorkflowParams, CreateAgentWorkflowResponse, CreateAgentWorkflowRunParams, CreateAgentWorkflowRunResponse, ExecuteSafeTxParams, ExecuteSafeTxResponse, GetAgentWorkflowParams, ListAgentWorkflowsParams, ListAgentWorkflowsResponse, PushAgentWorkflowParams, PushAgentWorkflowResponse, SubmitAgentWorkflowDecisionParams, SubmitAgentWorkflowDecisionResponse };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
|
-
import * as
|
|
2
|
+
import * as effect_Brand0 from "effect/Brand";
|
|
3
3
|
|
|
4
4
|
//#region src/schemas/bookmarks.d.ts
|
|
5
5
|
declare const BookmarkObjectType: Schema.Literal<["contract", "transaction", "wallet"]>;
|
|
@@ -24,18 +24,18 @@ declare const ContractBookmark_base: Schema.Class<ContractBookmark, {
|
|
|
24
24
|
updatedAt: typeof Schema.String;
|
|
25
25
|
}>, never, {
|
|
26
26
|
readonly id: string;
|
|
27
|
-
} & {
|
|
28
|
-
readonly blockchain: string;
|
|
29
27
|
} & {
|
|
30
28
|
readonly contractAddress: string;
|
|
31
29
|
} & {
|
|
32
|
-
readonly
|
|
30
|
+
readonly blockchain: string;
|
|
33
31
|
} & {
|
|
34
32
|
readonly createdAt: string;
|
|
35
33
|
} & {
|
|
36
34
|
readonly updatedAt: string;
|
|
37
35
|
} & {
|
|
38
36
|
readonly userLabel: string | null;
|
|
37
|
+
} & {
|
|
38
|
+
readonly contractName: string | null;
|
|
39
39
|
} & {
|
|
40
40
|
readonly label: string | null;
|
|
41
41
|
}, {}, {}>;
|
|
@@ -58,14 +58,14 @@ declare const TransactionBookmark_base: Schema.Class<TransactionBookmark, {
|
|
|
58
58
|
readonly id: string;
|
|
59
59
|
} & {
|
|
60
60
|
readonly blockchain: string;
|
|
61
|
-
} & {
|
|
62
|
-
readonly transactionHash: string;
|
|
63
61
|
} & {
|
|
64
62
|
readonly createdAt: string;
|
|
65
63
|
} & {
|
|
66
64
|
readonly updatedAt: string;
|
|
67
65
|
} & {
|
|
68
66
|
readonly userLabel: string | null;
|
|
67
|
+
} & {
|
|
68
|
+
readonly transactionHash: string;
|
|
69
69
|
}, {}, {}>;
|
|
70
70
|
declare class TransactionBookmark extends TransactionBookmark_base {}
|
|
71
71
|
declare const WalletBookmark_base: Schema.Class<WalletBookmark, {
|
|
@@ -82,14 +82,14 @@ declare const WalletBookmark_base: Schema.Class<WalletBookmark, {
|
|
|
82
82
|
updatedAt: typeof Schema.String;
|
|
83
83
|
}>, never, {
|
|
84
84
|
readonly id: string;
|
|
85
|
-
} & {
|
|
86
|
-
readonly walletAddress: string;
|
|
87
85
|
} & {
|
|
88
86
|
readonly createdAt: string;
|
|
89
87
|
} & {
|
|
90
88
|
readonly updatedAt: string;
|
|
91
89
|
} & {
|
|
92
90
|
readonly userLabel: string | null;
|
|
91
|
+
} & {
|
|
92
|
+
readonly walletAddress: string;
|
|
93
93
|
}, {}, {}>;
|
|
94
94
|
declare class WalletBookmark extends WalletBookmark_base {}
|
|
95
95
|
declare const BookmarksList_base: Schema.Class<BookmarksList, {
|
|
@@ -101,9 +101,9 @@ declare const BookmarksList_base: Schema.Class<BookmarksList, {
|
|
|
101
101
|
transactions: Schema.Array$<typeof TransactionBookmark>;
|
|
102
102
|
wallets: Schema.Array$<typeof WalletBookmark>;
|
|
103
103
|
}>, never, {
|
|
104
|
-
readonly transactions: readonly TransactionBookmark[];
|
|
105
|
-
} & {
|
|
106
104
|
readonly contracts: readonly ContractBookmark[];
|
|
105
|
+
} & {
|
|
106
|
+
readonly transactions: readonly TransactionBookmark[];
|
|
107
107
|
} & {
|
|
108
108
|
readonly wallets: readonly WalletBookmark[];
|
|
109
109
|
}, {}, {}>;
|
|
@@ -139,10 +139,10 @@ declare const AddContractBookmarkParams_base: Schema.Class<AddContractBookmarkPa
|
|
|
139
139
|
label: Schema.optional<typeof Schema.String>;
|
|
140
140
|
}>, never, {
|
|
141
141
|
readonly blockchain: "ethereum" | "base";
|
|
142
|
-
} & {
|
|
143
|
-
readonly address: string & effect_Brand13.Brand<"EvmAddress">;
|
|
144
142
|
} & {
|
|
145
143
|
readonly label?: string | undefined;
|
|
144
|
+
} & {
|
|
145
|
+
readonly address: string & effect_Brand0.Brand<"EvmAddress">;
|
|
146
146
|
}, {}, {}>;
|
|
147
147
|
declare class AddContractBookmarkParams extends AddContractBookmarkParams_base {}
|
|
148
148
|
declare const AddTransactionBookmarkParams_base: Schema.Class<AddTransactionBookmarkParams, {
|
|
@@ -154,11 +154,11 @@ declare const AddTransactionBookmarkParams_base: Schema.Class<AddTransactionBook
|
|
|
154
154
|
blockchain: Schema.Literal<["ethereum", "base"]>;
|
|
155
155
|
label: Schema.optional<typeof Schema.String>;
|
|
156
156
|
}>, never, {
|
|
157
|
-
readonly txHash: string;
|
|
158
|
-
} & {
|
|
159
157
|
readonly blockchain: "ethereum" | "base";
|
|
160
158
|
} & {
|
|
161
159
|
readonly label?: string | undefined;
|
|
160
|
+
} & {
|
|
161
|
+
readonly txHash: string;
|
|
162
162
|
}, {}, {}>;
|
|
163
163
|
declare class AddTransactionBookmarkParams extends AddTransactionBookmarkParams_base {}
|
|
164
164
|
declare const AddWalletBookmarkParams_base: Schema.Class<AddWalletBookmarkParams, {
|
|
@@ -168,9 +168,9 @@ declare const AddWalletBookmarkParams_base: Schema.Class<AddWalletBookmarkParams
|
|
|
168
168
|
address: Schema.brand<Schema.filter<typeof Schema.String>, "EvmAddress">;
|
|
169
169
|
label: Schema.optional<typeof Schema.String>;
|
|
170
170
|
}>, never, {
|
|
171
|
-
readonly address: string & effect_Brand13.Brand<"EvmAddress">;
|
|
172
|
-
} & {
|
|
173
171
|
readonly label?: string | undefined;
|
|
172
|
+
} & {
|
|
173
|
+
readonly address: string & effect_Brand0.Brand<"EvmAddress">;
|
|
174
174
|
}, {}, {}>;
|
|
175
175
|
declare class AddWalletBookmarkParams extends AddWalletBookmarkParams_base {}
|
|
176
176
|
declare const UpdateBookmarkLabelParams_base: Schema.Class<UpdateBookmarkLabelParams, {
|
|
@@ -186,15 +186,15 @@ declare const UpdateBookmarkLabelParams_base: Schema.Class<UpdateBookmarkLabelPa
|
|
|
186
186
|
blockchain: Schema.optional<Schema.Literal<["ethereum", "base"]>>;
|
|
187
187
|
label: Schema.NullOr<typeof Schema.String>;
|
|
188
188
|
}>, never, {
|
|
189
|
-
readonly txHash?: string | undefined;
|
|
190
|
-
} & {
|
|
191
189
|
readonly blockchain?: "ethereum" | "base" | undefined;
|
|
192
|
-
} & {
|
|
193
|
-
readonly address?: string | undefined;
|
|
194
190
|
} & {
|
|
195
191
|
readonly label: string | null;
|
|
196
192
|
} & {
|
|
197
|
-
readonly objectType: "contract" | "
|
|
193
|
+
readonly objectType: "contract" | "transaction" | "wallet";
|
|
194
|
+
} & {
|
|
195
|
+
readonly address?: string | undefined;
|
|
196
|
+
} & {
|
|
197
|
+
readonly txHash?: string | undefined;
|
|
198
198
|
}, {}, {}>;
|
|
199
199
|
declare class UpdateBookmarkLabelParams extends UpdateBookmarkLabelParams_base {}
|
|
200
200
|
declare const DeleteBookmarkParams_base: Schema.Class<DeleteBookmarkParams, {
|
|
@@ -208,13 +208,13 @@ declare const DeleteBookmarkParams_base: Schema.Class<DeleteBookmarkParams, {
|
|
|
208
208
|
txHash: Schema.optional<typeof Schema.String>;
|
|
209
209
|
blockchain: Schema.optional<Schema.Literal<["ethereum", "base"]>>;
|
|
210
210
|
}>, never, {
|
|
211
|
-
readonly txHash?: string | undefined;
|
|
212
|
-
} & {
|
|
213
211
|
readonly blockchain?: "ethereum" | "base" | undefined;
|
|
212
|
+
} & {
|
|
213
|
+
readonly objectType: "contract" | "transaction" | "wallet";
|
|
214
214
|
} & {
|
|
215
215
|
readonly address?: string | undefined;
|
|
216
216
|
} & {
|
|
217
|
-
readonly
|
|
217
|
+
readonly txHash?: string | undefined;
|
|
218
218
|
}, {}, {}>;
|
|
219
219
|
declare class DeleteBookmarkParams extends DeleteBookmarkParams_base {}
|
|
220
220
|
//#endregion
|
|
@@ -23,14 +23,14 @@ declare const CodeBlockCode_base: Schema.Class<CodeBlockCode, {
|
|
|
23
23
|
readonly name: string;
|
|
24
24
|
} & {
|
|
25
25
|
readonly intent: string;
|
|
26
|
+
} & {
|
|
27
|
+
readonly publishedAt: string | null;
|
|
26
28
|
} & {
|
|
27
29
|
readonly code: string;
|
|
28
30
|
} & {
|
|
29
31
|
readonly valTownFileUrl: string;
|
|
30
32
|
} & {
|
|
31
33
|
readonly arguments?: unknown;
|
|
32
|
-
} & {
|
|
33
|
-
readonly publishedAt: string | null;
|
|
34
34
|
}, {}, {}>;
|
|
35
35
|
declare class CodeBlockCode extends CodeBlockCode_base {}
|
|
36
36
|
declare const CodeBlockVersion_base: Schema.Class<CodeBlockVersion, {
|
|
@@ -99,12 +99,12 @@ declare const CodeBlocksSearchParams_base: Schema.Class<CodeBlocksSearchParams,
|
|
|
99
99
|
readonly limit: number;
|
|
100
100
|
} & {
|
|
101
101
|
readonly scope: "user" | "public";
|
|
102
|
-
} & {
|
|
103
|
-
readonly cursor?: string | undefined;
|
|
104
102
|
} & {
|
|
105
103
|
readonly filters?: {
|
|
106
104
|
readonly name?: string | undefined;
|
|
107
105
|
} | undefined;
|
|
106
|
+
} & {
|
|
107
|
+
readonly cursor?: string | undefined;
|
|
108
108
|
}, {}, {}>;
|
|
109
109
|
declare class CodeBlocksSearchParams extends CodeBlocksSearchParams_base {}
|
|
110
110
|
declare const CodeBlocksSearchResponse_base: Schema.Class<CodeBlocksSearchResponse, {
|
|
@@ -204,8 +204,8 @@ declare const CodeBlockExecuteResponse_base: Schema.Class<CodeBlockExecuteRespon
|
|
|
204
204
|
} & {
|
|
205
205
|
readonly error?: {
|
|
206
206
|
readonly message: string;
|
|
207
|
-
readonly status?: number | undefined;
|
|
208
207
|
readonly body?: unknown;
|
|
208
|
+
readonly status?: number | undefined;
|
|
209
209
|
} | undefined;
|
|
210
210
|
} & {
|
|
211
211
|
readonly logs?: readonly CodeBlockLogEntry[] | undefined;
|
|
@@ -263,12 +263,12 @@ declare const CreateCodeVersionResponse_base: Schema.Class<CreateCodeVersionResp
|
|
|
263
263
|
readonly name: string;
|
|
264
264
|
} & {
|
|
265
265
|
readonly intent: string;
|
|
266
|
+
} & {
|
|
267
|
+
readonly publishedAt: string | null;
|
|
266
268
|
} & {
|
|
267
269
|
readonly code: string;
|
|
268
270
|
} & {
|
|
269
271
|
readonly valTownFileUrl: string;
|
|
270
|
-
} & {
|
|
271
|
-
readonly publishedAt: string | null;
|
|
272
272
|
}, {}, {}>;
|
|
273
273
|
declare class CreateCodeVersionResponse extends CreateCodeVersionResponse_base {}
|
|
274
274
|
declare const UpdateCodeBlockMetadataParams_base: Schema.Class<UpdateCodeBlockMetadataParams, {
|