@herd-labs/sdk 0.0.5 → 0.2.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.
Files changed (49) hide show
  1. package/dist/index.d.ts +4 -4
  2. package/dist/index.js +4 -4
  3. package/dist/src/config.d.ts +17 -5
  4. package/dist/src/config.js +12 -2
  5. package/dist/src/live/ActionsServiceLive.js +10 -10
  6. package/dist/src/live/AdaptersServiceLive.js +7 -7
  7. package/dist/src/live/AgentSafesServiceLive.js +4 -4
  8. package/dist/src/live/AgentWalletsServiceLive.d.ts +2 -2
  9. package/dist/src/live/AgentWalletsServiceLive.js +3 -3
  10. package/dist/src/live/AgentWorkflowsServiceLive.d.ts +2 -2
  11. package/dist/src/live/AgentWorkflowsServiceLive.js +12 -8
  12. package/dist/src/live/AuthServiceLive.d.ts +2 -2
  13. package/dist/src/live/AuthServiceLive.js +8 -7
  14. package/dist/src/live/BookmarksServiceLive.d.ts +2 -2
  15. package/dist/src/live/BookmarksServiceLive.js +7 -7
  16. package/dist/src/live/CodeBlocksServiceLive.d.ts +2 -2
  17. package/dist/src/live/CodeBlocksServiceLive.js +1 -2
  18. package/dist/src/live/CollectionsServiceLive.d.ts +2 -2
  19. package/dist/src/live/CollectionsServiceLive.js +5 -5
  20. package/dist/src/live/ContractsServiceLive.d.ts +2 -2
  21. package/dist/src/live/ContractsServiceLive.js +5 -5
  22. package/dist/src/live/DocsServiceLive.d.ts +2 -2
  23. package/dist/src/live/DocsServiceLive.js +3 -3
  24. package/dist/src/live/GroupsServiceLive.d.ts +2 -2
  25. package/dist/src/live/GroupsServiceLive.js +7 -7
  26. package/dist/src/live/HalServiceLive.d.ts +2 -2
  27. package/dist/src/live/HalServiceLive.js +3 -3
  28. package/dist/src/live/TransactionsServiceLive.d.ts +2 -2
  29. package/dist/src/live/TransactionsServiceLive.js +4 -4
  30. package/dist/src/live/WalletsServiceLive.js +5 -5
  31. package/dist/src/live/http.d.ts +1 -4
  32. package/dist/src/live/http.js +15 -4
  33. package/dist/src/schemas/actions.d.ts +16 -16
  34. package/dist/src/schemas/adapters.d.ts +2 -2
  35. package/dist/src/schemas/agent-wallets.d.ts +19 -19
  36. package/dist/src/schemas/agent-workflows.d.ts +74 -199
  37. package/dist/src/schemas/agent-workflows.js +32 -25
  38. package/dist/src/schemas/auth.d.ts +22 -12
  39. package/dist/src/schemas/auth.js +16 -5
  40. package/dist/src/schemas/bookmarks.d.ts +18 -18
  41. package/dist/src/schemas/codeblocks.d.ts +8 -8
  42. package/dist/src/schemas/collections.d.ts +8 -8
  43. package/dist/src/schemas/contracts.d.ts +13 -13
  44. package/dist/src/schemas/hal.d.ts +10 -10
  45. package/dist/src/schemas/transactions.d.ts +44 -44
  46. package/dist/src/schemas/wallets.d.ts +20 -20
  47. package/dist/src/services/AgentWorkflowsService.d.ts +8 -7
  48. package/dist/src/services/AuthService.d.ts +3 -2
  49. package/package.json +2 -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 AgentWorkflow_base: Schema.Class<AgentWorkflow, {
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
- }, Schema.Struct.Encoded<{
13
- id: typeof Schema.String;
14
- groupId: typeof Schema.String;
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
- }>, never, {
49
- readonly id: string;
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
- }, Schema.Struct.Encoded<{
71
- id: typeof Schema.String;
72
- agentWorkflowRunId: typeof Schema.String;
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$<typeof AgentWorkflowRun>;
103
- }, Schema.Struct.Encoded<{
104
- id: typeof Schema.String;
105
- groupId: typeof Schema.String;
106
- type: typeof Schema.String;
107
- name: Schema.NullOr<typeof Schema.String>;
108
- intent: Schema.NullOr<typeof Schema.String>;
109
- createdAt: typeof Schema.String;
110
- updatedAt: typeof Schema.String;
111
- runs: Schema.Array$<typeof AgentWorkflowRun>;
112
- }>, never, {
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
- }, Schema.Struct.Encoded<{
136
- groupId: typeof Schema.String;
137
- type: Schema.Literal<["safe_transaction", "wallet_transaction", "group_membership_change", "group_quorum_change"]>;
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
- }>, never, {
155
- readonly workflowId: string;
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
- }>, never, {
165
- readonly groupId: string;
166
- } & {
167
- readonly type?: "safe_transaction" | "wallet_transaction" | "group_membership_change" | "group_quorum_change" | undefined;
168
- }, {}, {}>;
169
- declare class ListAgentWorkflowsParams extends ListAgentWorkflowsParams_base {}
170
- declare const ListAgentWorkflowsResponse_base: Schema.Class<ListAgentWorkflowsResponse, {
171
- workflows: Schema.Array$<typeof AgentWorkflow>;
172
- }, Schema.Struct.Encoded<{
173
- workflows: Schema.Array$<typeof AgentWorkflow>;
174
- }>, never, {
175
- readonly workflows: readonly AgentWorkflow[];
176
- }, {}, {}>;
177
- declare class ListAgentWorkflowsResponse extends ListAgentWorkflowsResponse_base {}
178
- declare const GetAgentWorkflowParams_base: Schema.Class<GetAgentWorkflowParams, {
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
- }, Schema.Struct.Encoded<{
181
- agentWorkflowId: typeof Schema.String;
182
- }>, never, {
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
- }>, never, {
193
- readonly outputs: {
194
- readonly [x: string]: unknown;
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
- }, Schema.Struct.Encoded<{
203
- workflowRunId: typeof Schema.String;
204
- }>, never, {
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
- }>, never, {
215
- readonly agentWorkflowRunId: string;
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
- }>, never, {
225
- readonly decisionId: string;
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
- }>, never, {
233
- readonly agentWorkflowRunId: string;
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
- }, Schema.Struct.Encoded<{
239
- pushId: typeof Schema.String;
240
- }>, never, {
241
- readonly pushId: string;
242
- }, {}, {}>;
243
- declare class PushAgentWorkflowResponse extends PushAgentWorkflowResponse_base {}
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
- var AgentWorkflow = class extends Schema.Class("AgentWorkflow")({
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
- var AgentWorkflowRun = class extends Schema.Class("AgentWorkflowRun")({
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
- var AgentWorkflowDecision = class extends Schema.Class("AgentWorkflowDecision")({
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
- var AgentWorkflowWithRuns = class extends Schema.Class("AgentWorkflowWithRuns")({
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
- var CreateAgentWorkflowParams = class extends Schema.Class("CreateAgentWorkflowParams")({
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
- var CreateAgentWorkflowResponse = class extends Schema.Class("CreateAgentWorkflowResponse")({ workflowId: Schema.String }) {};
49
- var ListAgentWorkflowsParams = class extends Schema.Class("ListAgentWorkflowsParams")({
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
- var ListAgentWorkflowsResponse = class extends Schema.Class("ListAgentWorkflowsResponse")({ workflows: Schema.Array(AgentWorkflow) }) {};
54
- var GetAgentWorkflowParams = class extends Schema.Class("GetAgentWorkflowParams")({ agentWorkflowId: Schema.String }) {};
55
- var CreateAgentWorkflowRunParams = class extends Schema.Class("CreateAgentWorkflowRunParams")({
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
- var CreateAgentWorkflowRunResponse = class extends Schema.Class("CreateAgentWorkflowRunResponse")({ workflowRunId: Schema.String }) {};
63
- var SubmitAgentWorkflowDecisionParams = class extends Schema.Class("SubmitAgentWorkflowDecisionParams")({
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
- var SubmitAgentWorkflowDecisionResponse = class extends Schema.Class("SubmitAgentWorkflowDecisionResponse")({ decisionId: Schema.String }) {};
68
- var PushAgentWorkflowParams = class extends Schema.Class("PushAgentWorkflowParams")({ agentWorkflowRunId: Schema.String }) {};
69
- var PushAgentWorkflowResponse = class extends Schema.Class("PushAgentWorkflowResponse")({ pushId: Schema.String }) {};
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,4 +1,5 @@
1
1
  import { Schema } from "effect";
2
+ import { ApiKey as ApiKey$1 } from "@better-auth/api-key/types";
2
3
 
3
4
  //#region src/schemas/auth.d.ts
4
5
  declare const FeatureFlagsSchema: Schema.Struct<{
@@ -47,17 +48,26 @@ declare const TokenResponse_base: Schema.Class<TokenResponse, {
47
48
  readonly expiresIn: number;
48
49
  }, {}, {}>;
49
50
  declare class TokenResponse extends TokenResponse_base {}
50
- declare const ApiKeyResponse_base: Schema.Class<ApiKeyResponse, {
51
- keyId: typeof Schema.String;
52
- apiKey: typeof Schema.String;
53
- }, Schema.Struct.Encoded<{
51
+ type ApiKeyType = Pick<ApiKey$1, "id" | "name" | "start" | "createdAt" | "lastRequest">;
52
+ type ApiKeyEncoded = { [K in keyof ApiKeyType]: ApiKeyType[K] extends Date ? string : ApiKeyType[K] extends Date | null ? string | null : ApiKeyType[K] };
53
+ declare const ApiKey: Schema.Schema<ApiKeyType, ApiKeyEncoded>;
54
+ declare const CreatedApiKey: Schema.Struct<{
55
+ id: typeof Schema.String;
56
+ key: typeof Schema.String;
57
+ name: Schema.NullOr<typeof Schema.String>;
58
+ }>;
59
+ type CreatedApiKeyType = typeof CreatedApiKey.Type;
60
+ declare const ApiKeyListResponse: Schema.Struct<{
61
+ apiKeys: Schema.Array$<Schema.Schema<ApiKeyType, ApiKeyEncoded, never>>;
62
+ }>;
63
+ type ApiKeyListResponseType = typeof ApiKeyListResponse.Type;
64
+ declare const CreateApiKeyParams: Schema.Struct<{
65
+ name: Schema.optional<typeof Schema.String>;
66
+ }>;
67
+ type CreateApiKeyParamsType = typeof CreateApiKeyParams.Type;
68
+ declare const DeleteApiKeyParams: Schema.Struct<{
54
69
  keyId: typeof Schema.String;
55
- apiKey: typeof Schema.String;
56
- }>, never, {
57
- readonly keyId: string;
58
- } & {
59
- readonly apiKey: string;
60
- }, {}, {}>;
61
- declare class ApiKeyResponse extends ApiKeyResponse_base {}
70
+ }>;
71
+ type DeleteApiKeyParamsType = typeof DeleteApiKeyParams.Type;
62
72
  //#endregion
63
- export { ApiKeyResponse, FeatureFlags, FeatureFlagsSchema, TokenResponse, WhoamiResponse };
73
+ export { ApiKey, ApiKeyListResponse, ApiKeyListResponseType, ApiKeyType, CreateApiKeyParams, CreateApiKeyParamsType, CreatedApiKey, CreatedApiKeyType, DeleteApiKeyParams, DeleteApiKeyParamsType, FeatureFlags, FeatureFlagsSchema, TokenResponse, WhoamiResponse };
@@ -13,10 +13,21 @@ var TokenResponse = class extends Schema.Class("TokenResponse")({
13
13
  expiresIn: Schema.Number,
14
14
  tokenType: Schema.String
15
15
  }) {};
16
- var ApiKeyResponse = class extends Schema.Class("ApiKeyResponse")({
17
- keyId: Schema.String,
18
- apiKey: Schema.String
19
- }) {};
16
+ const ApiKey = Schema.Struct({
17
+ id: Schema.String,
18
+ name: Schema.NullOr(Schema.String),
19
+ start: Schema.NullOr(Schema.String),
20
+ createdAt: Schema.DateFromString,
21
+ lastRequest: Schema.NullOr(Schema.DateFromString)
22
+ });
23
+ const CreatedApiKey = Schema.Struct({
24
+ id: Schema.String,
25
+ key: Schema.String,
26
+ name: Schema.NullOr(Schema.String)
27
+ });
28
+ const ApiKeyListResponse = Schema.Struct({ apiKeys: Schema.Array(ApiKey) });
29
+ const CreateApiKeyParams = Schema.Struct({ name: Schema.optional(Schema.String) });
30
+ const DeleteApiKeyParams = Schema.Struct({ keyId: Schema.String });
20
31
 
21
32
  //#endregion
22
- export { ApiKeyResponse, FeatureFlagsSchema, TokenResponse, WhoamiResponse };
33
+ export { ApiKey, ApiKeyListResponse, CreateApiKeyParams, CreatedApiKey, DeleteApiKeyParams, FeatureFlagsSchema, TokenResponse, WhoamiResponse };
@@ -1,5 +1,5 @@
1
1
  import { Schema } from "effect";
2
- import * as effect_Brand13 from "effect/Brand";
2
+ import * as effect_Brand9 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 contractName: string | null;
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,12 +58,12 @@ 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;
65
+ } & {
66
+ readonly transactionHash: string;
67
67
  } & {
68
68
  readonly userLabel: string | null;
69
69
  }, {}, {}>;
@@ -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
  }, {}, {}>;
@@ -140,7 +140,7 @@ declare const AddContractBookmarkParams_base: Schema.Class<AddContractBookmarkPa
140
140
  }>, never, {
141
141
  readonly blockchain: "ethereum" | "base";
142
142
  } & {
143
- readonly address: string & effect_Brand13.Brand<"EvmAddress">;
143
+ readonly address: string & effect_Brand9.Brand<"EvmAddress">;
144
144
  } & {
145
145
  readonly label?: string | undefined;
146
146
  }, {}, {}>;
@@ -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,7 +168,7 @@ 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">;
171
+ readonly address: string & effect_Brand9.Brand<"EvmAddress">;
172
172
  } & {
173
173
  readonly label?: string | undefined;
174
174
  }, {}, {}>;
@@ -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
190
  } & {
193
191
  readonly address?: string | undefined;
194
192
  } & {
195
193
  readonly label: string | null;
196
194
  } & {
197
- readonly objectType: "contract" | "wallet" | "transaction";
195
+ readonly objectType: "wallet" | "contract" | "transaction";
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;
214
212
  } & {
215
213
  readonly address?: string | undefined;
216
214
  } & {
217
- readonly objectType: "contract" | "wallet" | "transaction";
215
+ readonly objectType: "wallet" | "contract" | "transaction";
216
+ } & {
217
+ readonly txHash?: string | undefined;
218
218
  }, {}, {}>;
219
219
  declare class DeleteBookmarkParams extends DeleteBookmarkParams_base {}
220
220
  //#endregion