@herd-labs/sdk 0.0.4 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/dist/index.d.ts +14 -3
  2. package/dist/index.js +14 -3
  3. package/dist/src/live/AdaptersServiceLive.d.ts +2 -2
  4. package/dist/src/live/AgentSafesServiceLive.d.ts +9 -0
  5. package/dist/src/live/AgentSafesServiceLive.js +19 -0
  6. package/dist/src/live/AgentWalletsServiceLive.d.ts +9 -0
  7. package/dist/src/live/AgentWalletsServiceLive.js +18 -0
  8. package/dist/src/live/AgentWorkflowsServiceLive.d.ts +9 -0
  9. package/dist/src/live/AgentWorkflowsServiceLive.js +37 -0
  10. package/dist/src/live/AuthServiceLive.d.ts +2 -2
  11. package/dist/src/live/BookmarksServiceLive.d.ts +2 -2
  12. package/dist/src/live/CodeBlocksServiceLive.d.ts +2 -2
  13. package/dist/src/live/CollectionsServiceLive.d.ts +2 -2
  14. package/dist/src/live/ContractsServiceLive.d.ts +2 -2
  15. package/dist/src/live/ContractsServiceLive.js +1 -6
  16. package/dist/src/live/DocsServiceLive.d.ts +2 -2
  17. package/dist/src/live/GroupsServiceLive.d.ts +9 -0
  18. package/dist/src/live/GroupsServiceLive.js +26 -0
  19. package/dist/src/live/HalServiceLive.d.ts +2 -2
  20. package/dist/src/live/TransactionsServiceLive.d.ts +2 -2
  21. package/dist/src/live/WalletsServiceLive.d.ts +2 -2
  22. package/dist/src/schemas/actions.d.ts +8 -8
  23. package/dist/src/schemas/agent-wallets.d.ts +226 -0
  24. package/dist/src/schemas/agent-wallets.js +68 -0
  25. package/dist/src/schemas/agent-workflows.d.ts +120 -0
  26. package/dist/src/schemas/agent-workflows.js +79 -0
  27. package/dist/src/schemas/auth.d.ts +15 -1
  28. package/dist/src/schemas/auth.js +4 -2
  29. package/dist/src/schemas/bookmarks.d.ts +23 -23
  30. package/dist/src/schemas/codeblocks.d.ts +2 -2
  31. package/dist/src/schemas/collections.d.ts +6 -6
  32. package/dist/src/schemas/contracts.d.ts +26 -239
  33. package/dist/src/schemas/contracts.js +1 -62
  34. package/dist/src/schemas/groups.d.ts +94 -0
  35. package/dist/src/schemas/groups.js +62 -0
  36. package/dist/src/schemas/hal.d.ts +23 -23
  37. package/dist/src/schemas/transactions.d.ts +85 -85
  38. package/dist/src/schemas/wallets.d.ts +60 -60
  39. package/dist/src/services/AgentSafesService.d.ts +14 -0
  40. package/dist/src/services/AgentSafesService.js +7 -0
  41. package/dist/src/services/AgentWalletsService.d.ts +13 -0
  42. package/dist/src/services/AgentWalletsService.js +7 -0
  43. package/dist/src/services/AgentWorkflowsService.d.ts +27 -0
  44. package/dist/src/services/AgentWorkflowsService.js +21 -0
  45. package/dist/src/services/ContractsService.d.ts +1 -2
  46. package/dist/src/services/GroupsService.d.ts +34 -0
  47. package/dist/src/services/GroupsService.js +14 -0
  48. package/package.json +1 -1
@@ -0,0 +1,226 @@
1
+ import { Schema } from "effect";
2
+ import * as effect_Brand3 from "effect/Brand";
3
+
4
+ //#region src/schemas/agent-wallets.d.ts
5
+ declare const AgentWallet_base: Schema.Class<AgentWallet, {
6
+ id: typeof Schema.UUID;
7
+ groupId: typeof Schema.UUID;
8
+ address: Schema.brand<Schema.filter<typeof Schema.String>, "EvmAddress">;
9
+ name: Schema.NullOr<typeof Schema.String>;
10
+ intent: Schema.NullOr<typeof Schema.String>;
11
+ }, Schema.Struct.Encoded<{
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 address: string & effect_Brand3.Brand<"EvmAddress">;
21
+ } & {
22
+ readonly name: string | null;
23
+ } & {
24
+ readonly intent: string | null;
25
+ } & {
26
+ readonly groupId: string;
27
+ }, {}, {}>;
28
+ declare class AgentWallet extends AgentWallet_base {}
29
+ declare const AgentWalletSafe_base: Schema.Class<AgentWalletSafe, {
30
+ blockchain: Schema.Literal<["ethereum", "base"]>;
31
+ safeAddress: Schema.brand<Schema.filter<typeof Schema.String>, "EvmAddress">;
32
+ name: Schema.NullOr<typeof Schema.String>;
33
+ intent: Schema.NullOr<typeof Schema.String>;
34
+ isProposer: typeof Schema.Boolean;
35
+ isSigner: typeof Schema.Boolean;
36
+ }, Schema.Struct.Encoded<{
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 blockchain: "ethereum" | "base";
45
+ } & {
46
+ readonly name: string | null;
47
+ } & {
48
+ readonly intent: string | null;
49
+ } & {
50
+ readonly safeAddress: string & effect_Brand3.Brand<"EvmAddress">;
51
+ } & {
52
+ readonly isProposer: boolean;
53
+ } & {
54
+ readonly isSigner: boolean;
55
+ }, {}, {}>;
56
+ declare class AgentWalletSafe extends AgentWalletSafe_base {}
57
+ declare const LinkedAgentWallet_base: Schema.Class<LinkedAgentWallet, {
58
+ agentWalletId: typeof Schema.UUID;
59
+ address: Schema.brand<Schema.filter<typeof Schema.String>, "EvmAddress">;
60
+ name: Schema.NullOr<typeof Schema.String>;
61
+ intent: Schema.NullOr<typeof Schema.String>;
62
+ isProposer: typeof Schema.Boolean;
63
+ isSigner: typeof Schema.Boolean;
64
+ }, Schema.Struct.Encoded<{
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 address: string & effect_Brand3.Brand<"EvmAddress">;
73
+ } & {
74
+ readonly name: string | null;
75
+ } & {
76
+ readonly intent: string | null;
77
+ } & {
78
+ readonly isProposer: boolean;
79
+ } & {
80
+ readonly isSigner: boolean;
81
+ } & {
82
+ readonly agentWalletId: string;
83
+ }, {}, {}>;
84
+ declare class LinkedAgentWallet extends LinkedAgentWallet_base {}
85
+ declare const AgentSafeMetadata_base: Schema.Class<AgentSafeMetadata, {
86
+ blockchain: Schema.Literal<["ethereum", "base"]>;
87
+ safeAddress: Schema.brand<Schema.filter<typeof Schema.String>, "EvmAddress">;
88
+ name: Schema.NullOr<typeof Schema.String>;
89
+ intent: Schema.NullOr<typeof Schema.String>;
90
+ }, Schema.Struct.Encoded<{
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 blockchain: "ethereum" | "base";
97
+ } & {
98
+ readonly name: string | null;
99
+ } & {
100
+ readonly intent: string | null;
101
+ } & {
102
+ readonly safeAddress: string & effect_Brand3.Brand<"EvmAddress">;
103
+ }, {}, {}>;
104
+ declare class AgentSafeMetadata extends AgentSafeMetadata_base {}
105
+ declare const AgentWalletsListParams_base: Schema.Class<AgentWalletsListParams, {
106
+ groupId: Schema.optional<typeof Schema.UUID>;
107
+ }, Schema.Struct.Encoded<{
108
+ groupId: Schema.optional<typeof Schema.UUID>;
109
+ }>, never, {
110
+ readonly groupId?: string | undefined;
111
+ }, {}, {}>;
112
+ declare class AgentWalletsListParams extends AgentWalletsListParams_base {}
113
+ declare const AgentWalletsList_base: Schema.Class<AgentWalletsList, {
114
+ agentWallets: Schema.Array$<typeof AgentWallet>;
115
+ }, Schema.Struct.Encoded<{
116
+ agentWallets: Schema.Array$<typeof AgentWallet>;
117
+ }>, never, {
118
+ readonly agentWallets: readonly AgentWallet[];
119
+ }, {}, {}>;
120
+ declare class AgentWalletsList extends AgentWalletsList_base {}
121
+ declare const AgentWalletSafesList_base: Schema.Class<AgentWalletSafesList, {
122
+ safes: Schema.Array$<typeof AgentWalletSafe>;
123
+ }, Schema.Struct.Encoded<{
124
+ safes: Schema.Array$<typeof AgentWalletSafe>;
125
+ }>, never, {
126
+ readonly safes: readonly AgentWalletSafe[];
127
+ }, {}, {}>;
128
+ declare class AgentWalletSafesList extends AgentWalletSafesList_base {}
129
+ declare const AgentSafe_base: Schema.Class<AgentSafe, {
130
+ blockchain: Schema.Literal<["ethereum", "base"]>;
131
+ safeAddress: Schema.brand<Schema.filter<typeof Schema.String>, "EvmAddress">;
132
+ name: Schema.NullOr<typeof Schema.String>;
133
+ intent: Schema.NullOr<typeof Schema.String>;
134
+ linkedAgentWallets: Schema.Array$<typeof LinkedAgentWallet>;
135
+ owners: Schema.Array$<Schema.brand<Schema.filter<typeof Schema.String>, "EvmAddress">>;
136
+ threshold: typeof Schema.Number;
137
+ safeUrl: typeof Schema.String;
138
+ }, Schema.Struct.Encoded<{
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 blockchain: "ethereum" | "base";
149
+ } & {
150
+ readonly name: string | null;
151
+ } & {
152
+ readonly intent: string | null;
153
+ } & {
154
+ readonly safeAddress: string & effect_Brand3.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_Brand3.Brand<"EvmAddress">)[];
163
+ }, {}, {}>;
164
+ declare class AgentSafe extends AgentSafe_base {}
165
+ declare const SetSafeProposerParams_base: Schema.Class<SetSafeProposerParams, {
166
+ agentWalletAddress: Schema.brand<Schema.filter<typeof Schema.String>, "EvmAddress">;
167
+ name: Schema.optional<typeof Schema.String>;
168
+ intent: Schema.optional<typeof Schema.String>;
169
+ }, Schema.Struct.Encoded<{
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_Brand3.Brand<"EvmAddress">;
179
+ }, {}, {}>;
180
+ declare class SetSafeProposerParams extends SetSafeProposerParams_base {}
181
+ declare const SetSafeProposerResponse_base: Schema.Class<SetSafeProposerResponse, {
182
+ blockchain: Schema.Literal<["ethereum", "base"]>;
183
+ safeAddress: Schema.brand<Schema.filter<typeof Schema.String>, "EvmAddress">;
184
+ name: Schema.NullOr<typeof Schema.String>;
185
+ intent: Schema.NullOr<typeof Schema.String>;
186
+ agentWalletAddress: Schema.brand<Schema.filter<typeof Schema.String>, "EvmAddress">;
187
+ isProposer: typeof Schema.Boolean;
188
+ isSigner: typeof Schema.Boolean;
189
+ }, Schema.Struct.Encoded<{
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 blockchain: "ethereum" | "base";
199
+ } & {
200
+ readonly name: string | null;
201
+ } & {
202
+ readonly intent: string | null;
203
+ } & {
204
+ readonly safeAddress: string & effect_Brand3.Brand<"EvmAddress">;
205
+ } & {
206
+ readonly isProposer: boolean;
207
+ } & {
208
+ readonly isSigner: boolean;
209
+ } & {
210
+ readonly agentWalletAddress: string & effect_Brand3.Brand<"EvmAddress">;
211
+ }, {}, {}>;
212
+ declare class SetSafeProposerResponse extends SetSafeProposerResponse_base {}
213
+ declare const EditAgentSafeMetadataParams_base: Schema.Class<EditAgentSafeMetadataParams, {
214
+ name: Schema.optional<typeof Schema.String>;
215
+ intent: Schema.optional<typeof Schema.String>;
216
+ }, Schema.Struct.Encoded<{
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
+ }, {}, {}>;
224
+ declare class EditAgentSafeMetadataParams extends EditAgentSafeMetadataParams_base {}
225
+ //#endregion
226
+ export { AgentSafe, AgentSafeMetadata, AgentWallet, AgentWalletSafe, AgentWalletSafesList, AgentWalletsList, AgentWalletsListParams, EditAgentSafeMetadataParams, LinkedAgentWallet, SetSafeProposerParams, SetSafeProposerResponse };
@@ -0,0 +1,68 @@
1
+ import { Blockchain, EvmAddress } from "./common.js";
2
+ import { Schema } from "effect";
3
+
4
+ //#region src/schemas/agent-wallets.ts
5
+ const OptionalString = Schema.optional(Schema.String);
6
+ var AgentWallet = class extends Schema.Class("AgentWallet")({
7
+ id: Schema.UUID,
8
+ groupId: Schema.UUID,
9
+ address: EvmAddress,
10
+ name: Schema.NullOr(Schema.String),
11
+ intent: Schema.NullOr(Schema.String)
12
+ }) {};
13
+ var AgentWalletSafe = class extends Schema.Class("AgentWalletSafe")({
14
+ blockchain: Blockchain,
15
+ safeAddress: EvmAddress,
16
+ name: Schema.NullOr(Schema.String),
17
+ intent: Schema.NullOr(Schema.String),
18
+ isProposer: Schema.Boolean,
19
+ isSigner: Schema.Boolean
20
+ }) {};
21
+ var LinkedAgentWallet = class extends Schema.Class("LinkedAgentWallet")({
22
+ agentWalletId: Schema.UUID,
23
+ address: EvmAddress,
24
+ name: Schema.NullOr(Schema.String),
25
+ intent: Schema.NullOr(Schema.String),
26
+ isProposer: Schema.Boolean,
27
+ isSigner: Schema.Boolean
28
+ }) {};
29
+ var AgentSafeMetadata = class extends Schema.Class("AgentSafeMetadata")({
30
+ blockchain: Blockchain,
31
+ safeAddress: EvmAddress,
32
+ name: Schema.NullOr(Schema.String),
33
+ intent: Schema.NullOr(Schema.String)
34
+ }) {};
35
+ var AgentWalletsListParams = class extends Schema.Class("AgentWalletsListParams")({ groupId: Schema.optional(Schema.UUID) }) {};
36
+ var AgentWalletsList = class extends Schema.Class("AgentWalletsList")({ agentWallets: Schema.Array(AgentWallet) }) {};
37
+ var AgentWalletSafesList = class extends Schema.Class("AgentWalletSafesList")({ safes: Schema.Array(AgentWalletSafe) }) {};
38
+ var AgentSafe = class extends Schema.Class("AgentSafe")({
39
+ blockchain: Blockchain,
40
+ safeAddress: EvmAddress,
41
+ name: Schema.NullOr(Schema.String),
42
+ intent: Schema.NullOr(Schema.String),
43
+ linkedAgentWallets: Schema.Array(LinkedAgentWallet),
44
+ owners: Schema.Array(EvmAddress),
45
+ threshold: Schema.Number,
46
+ safeUrl: Schema.String
47
+ }) {};
48
+ var SetSafeProposerParams = class extends Schema.Class("SetSafeProposerParams")({
49
+ agentWalletAddress: EvmAddress,
50
+ name: OptionalString,
51
+ intent: OptionalString
52
+ }) {};
53
+ var SetSafeProposerResponse = class extends Schema.Class("SetSafeProposerResponse")({
54
+ blockchain: Blockchain,
55
+ safeAddress: EvmAddress,
56
+ name: Schema.NullOr(Schema.String),
57
+ intent: Schema.NullOr(Schema.String),
58
+ agentWalletAddress: EvmAddress,
59
+ isProposer: Schema.Boolean,
60
+ isSigner: Schema.Boolean
61
+ }) {};
62
+ var EditAgentSafeMetadataParams = class extends Schema.Class("EditAgentSafeMetadataParams")({
63
+ name: OptionalString,
64
+ intent: OptionalString
65
+ }) {};
66
+
67
+ //#endregion
68
+ export { AgentSafe, AgentSafeMetadata, AgentWallet, AgentWalletSafe, AgentWalletSafesList, AgentWalletsList, AgentWalletsListParams, EditAgentSafeMetadataParams, LinkedAgentWallet, SetSafeProposerParams, SetSafeProposerResponse };
@@ -0,0 +1,120 @@
1
+ import { Schema } from "effect";
2
+
3
+ //#region src/schemas/agent-workflows.d.ts
4
+ declare const AgentWorkflow: Schema.Struct<{
5
+ id: typeof Schema.String;
6
+ groupId: typeof Schema.String;
7
+ type: typeof Schema.String;
8
+ name: Schema.NullOr<typeof Schema.String>;
9
+ intent: Schema.NullOr<typeof Schema.String>;
10
+ createdAt: typeof Schema.String;
11
+ updatedAt: typeof Schema.String;
12
+ }>;
13
+ type AgentWorkflowType = typeof AgentWorkflow.Type;
14
+ declare const AgentWorkflowRun: Schema.Struct<{
15
+ id: typeof Schema.String;
16
+ agentWorkflowId: typeof Schema.String;
17
+ outputs: Schema.Record$<typeof Schema.String, typeof Schema.Unknown>;
18
+ changelog: typeof Schema.String;
19
+ createdAt: typeof Schema.String;
20
+ updatedAt: typeof Schema.String;
21
+ }>;
22
+ type AgentWorkflowRunType = typeof AgentWorkflowRun.Type;
23
+ declare const AgentWorkflowDecision: Schema.Struct<{
24
+ id: typeof Schema.String;
25
+ agentWorkflowRunId: typeof Schema.String;
26
+ groupId: typeof Schema.String;
27
+ userId: typeof Schema.String;
28
+ decision: Schema.Literal<["approve", "reject"]>;
29
+ createdAt: typeof Schema.String;
30
+ updatedAt: typeof Schema.String;
31
+ }>;
32
+ type AgentWorkflowDecisionType = typeof AgentWorkflowDecision.Type;
33
+ declare const AgentWorkflowWithRuns: Schema.Struct<{
34
+ id: typeof Schema.String;
35
+ groupId: typeof Schema.String;
36
+ type: typeof Schema.String;
37
+ name: Schema.NullOr<typeof Schema.String>;
38
+ intent: Schema.NullOr<typeof Schema.String>;
39
+ createdAt: typeof Schema.String;
40
+ updatedAt: typeof Schema.String;
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<{
52
+ groupId: typeof Schema.String;
53
+ type: Schema.Literal<["safe_transaction", "wallet_transaction", "group_membership_change", "group_quorum_change"]>;
54
+ name: typeof Schema.String;
55
+ intent: Schema.optional<typeof Schema.String>;
56
+ }>;
57
+ type CreateAgentWorkflowParamsType = typeof CreateAgentWorkflowParams.Type;
58
+ declare const CreateAgentWorkflowResponse: Schema.Struct<{
59
+ workflowId: typeof Schema.String;
60
+ }>;
61
+ type CreateAgentWorkflowResponseType = typeof CreateAgentWorkflowResponse.Type;
62
+ declare const ListAgentWorkflowsParams: Schema.Struct<{
63
+ groupId: typeof Schema.String;
64
+ type: Schema.optional<Schema.Literal<["safe_transaction", "wallet_transaction", "group_membership_change", "group_quorum_change"]>>;
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<{
80
+ agentWorkflowId: typeof Schema.String;
81
+ }>;
82
+ type GetAgentWorkflowParamsType = typeof GetAgentWorkflowParams.Type;
83
+ declare const CreateAgentWorkflowRunParams: Schema.Struct<{
84
+ agentWorkflowId: typeof Schema.String;
85
+ outputs: Schema.Record$<typeof Schema.String, typeof Schema.Unknown>;
86
+ changelog: Schema.optional<typeof Schema.String>;
87
+ }>;
88
+ type CreateAgentWorkflowRunParamsType = typeof CreateAgentWorkflowRunParams.Type;
89
+ declare const CreateAgentWorkflowRunResponse: Schema.Struct<{
90
+ workflowRunId: typeof Schema.String;
91
+ }>;
92
+ type CreateAgentWorkflowRunResponseType = typeof CreateAgentWorkflowRunResponse.Type;
93
+ declare const SubmitAgentWorkflowDecisionParams: Schema.Struct<{
94
+ agentWorkflowRunId: typeof Schema.String;
95
+ decision: Schema.Literal<["approve", "reject"]>;
96
+ }>;
97
+ type SubmitAgentWorkflowDecisionParamsType = typeof SubmitAgentWorkflowDecisionParams.Type;
98
+ declare const SubmitAgentWorkflowDecisionResponse: Schema.Struct<{
99
+ decisionId: typeof Schema.String;
100
+ }>;
101
+ type SubmitAgentWorkflowDecisionResponseType = typeof SubmitAgentWorkflowDecisionResponse.Type;
102
+ declare const PushAgentWorkflowParams: Schema.Struct<{
103
+ agentWorkflowRunId: typeof Schema.String;
104
+ }>;
105
+ type PushAgentWorkflowParamsType = typeof PushAgentWorkflowParams.Type;
106
+ declare const PushAgentWorkflowResponse: Schema.Struct<{
107
+ pushId: typeof Schema.String;
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;
119
+ //#endregion
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 };
@@ -0,0 +1,79 @@
1
+ import { Schema } from "effect";
2
+
3
+ //#region src/schemas/agent-workflows.ts
4
+ const AgentWorkflow = Schema.Struct({
5
+ id: Schema.String,
6
+ groupId: Schema.String,
7
+ type: Schema.String,
8
+ name: Schema.NullOr(Schema.String),
9
+ intent: Schema.NullOr(Schema.String),
10
+ createdAt: Schema.String,
11
+ updatedAt: Schema.String
12
+ });
13
+ const AgentWorkflowRun = Schema.Struct({
14
+ id: Schema.String,
15
+ agentWorkflowId: Schema.String,
16
+ outputs: Schema.Record({
17
+ key: Schema.String,
18
+ value: Schema.Unknown
19
+ }),
20
+ changelog: Schema.String,
21
+ createdAt: Schema.String,
22
+ updatedAt: Schema.String
23
+ });
24
+ const AgentWorkflowDecision = Schema.Struct({
25
+ id: Schema.String,
26
+ agentWorkflowRunId: Schema.String,
27
+ groupId: Schema.String,
28
+ userId: Schema.String,
29
+ decision: Schema.Literal("approve", "reject"),
30
+ createdAt: Schema.String,
31
+ updatedAt: Schema.String
32
+ });
33
+ const AgentWorkflowWithRuns = Schema.Struct({
34
+ id: Schema.String,
35
+ groupId: Schema.String,
36
+ type: Schema.String,
37
+ name: Schema.NullOr(Schema.String),
38
+ intent: Schema.NullOr(Schema.String),
39
+ createdAt: Schema.String,
40
+ updatedAt: Schema.String,
41
+ runs: Schema.Array(AgentWorkflowRun)
42
+ });
43
+ const CreateAgentWorkflowParams = Schema.Struct({
44
+ groupId: Schema.String,
45
+ type: Schema.Literal("safe_transaction", "wallet_transaction", "group_membership_change", "group_quorum_change"),
46
+ name: Schema.String,
47
+ intent: Schema.optional(Schema.String)
48
+ });
49
+ const CreateAgentWorkflowResponse = Schema.Struct({ workflowId: Schema.String });
50
+ const ListAgentWorkflowsParams = Schema.Struct({
51
+ groupId: Schema.String,
52
+ type: Schema.optional(Schema.Literal("safe_transaction", "wallet_transaction", "group_membership_change", "group_quorum_change"))
53
+ });
54
+ const ListAgentWorkflowsResponse = Schema.Struct({ workflows: Schema.Array(AgentWorkflow) });
55
+ const GetAgentWorkflowParams = Schema.Struct({ agentWorkflowId: Schema.String });
56
+ const CreateAgentWorkflowRunParams = Schema.Struct({
57
+ agentWorkflowId: Schema.String,
58
+ outputs: Schema.Record({
59
+ key: Schema.String,
60
+ value: Schema.Unknown
61
+ }),
62
+ changelog: Schema.optional(Schema.String)
63
+ });
64
+ const CreateAgentWorkflowRunResponse = Schema.Struct({ workflowRunId: Schema.String });
65
+ const SubmitAgentWorkflowDecisionParams = Schema.Struct({
66
+ agentWorkflowRunId: Schema.String,
67
+ decision: Schema.Literal("approve", "reject")
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
+ });
77
+
78
+ //#endregion
79
+ export { AgentWorkflow, AgentWorkflowDecision, AgentWorkflowRun, AgentWorkflowWithRuns, CreateAgentWorkflowParams, CreateAgentWorkflowResponse, CreateAgentWorkflowRunParams, CreateAgentWorkflowRunResponse, ExecuteSafeTxParams, ExecuteSafeTxResponse, GetAgentWorkflowParams, ListAgentWorkflowsParams, ListAgentWorkflowsResponse, PushAgentWorkflowParams, PushAgentWorkflowResponse, SubmitAgentWorkflowDecisionParams, SubmitAgentWorkflowDecisionResponse };
@@ -1,16 +1,30 @@
1
1
  import { Schema } from "effect";
2
2
 
3
3
  //#region src/schemas/auth.d.ts
4
+ declare const FeatureFlagsSchema: Schema.Struct<{
5
+ agentWalletApi: typeof Schema.Boolean;
6
+ }>;
7
+ type FeatureFlags = typeof FeatureFlagsSchema.Type;
4
8
  declare const WhoamiResponse_base: Schema.Class<WhoamiResponse, {
5
9
  id: typeof Schema.String;
6
10
  email: typeof Schema.String;
11
+ featureFlags: Schema.Struct<{
12
+ agentWalletApi: typeof Schema.Boolean;
13
+ }>;
7
14
  }, Schema.Struct.Encoded<{
8
15
  id: typeof Schema.String;
9
16
  email: typeof Schema.String;
17
+ featureFlags: Schema.Struct<{
18
+ agentWalletApi: typeof Schema.Boolean;
19
+ }>;
10
20
  }>, never, {
11
21
  readonly id: string;
12
22
  } & {
13
23
  readonly email: string;
24
+ } & {
25
+ readonly featureFlags: {
26
+ readonly agentWalletApi: boolean;
27
+ };
14
28
  }, {}, {}>;
15
29
  declare class WhoamiResponse extends WhoamiResponse_base {}
16
30
  declare const TokenResponse_base: Schema.Class<TokenResponse, {
@@ -46,4 +60,4 @@ declare const ApiKeyResponse_base: Schema.Class<ApiKeyResponse, {
46
60
  }, {}, {}>;
47
61
  declare class ApiKeyResponse extends ApiKeyResponse_base {}
48
62
  //#endregion
49
- export { ApiKeyResponse, TokenResponse, WhoamiResponse };
63
+ export { ApiKeyResponse, FeatureFlags, FeatureFlagsSchema, TokenResponse, WhoamiResponse };
@@ -1,9 +1,11 @@
1
1
  import { Schema } from "effect";
2
2
 
3
3
  //#region src/schemas/auth.ts
4
+ const FeatureFlagsSchema = Schema.Struct({ agentWalletApi: Schema.Boolean });
4
5
  var WhoamiResponse = class extends Schema.Class("WhoamiResponse")({
5
6
  id: Schema.String,
6
- email: Schema.String
7
+ email: Schema.String,
8
+ featureFlags: FeatureFlagsSchema
7
9
  }) {};
8
10
  var TokenResponse = class extends Schema.Class("TokenResponse")({
9
11
  accessToken: Schema.String,
@@ -17,4 +19,4 @@ var ApiKeyResponse = class extends Schema.Class("ApiKeyResponse")({
17
19
  }) {};
18
20
 
19
21
  //#endregion
20
- export { ApiKeyResponse, TokenResponse, WhoamiResponse };
22
+ export { ApiKeyResponse, FeatureFlagsSchema, TokenResponse, WhoamiResponse };