@herd-labs/sdk 0.4.0 → 0.5.1
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 +20 -17
- package/dist/index.js +20 -17
- package/dist/src/config.d.ts +4 -4
- package/dist/src/config.js +2 -2
- package/dist/src/errors.d.ts +6 -0
- package/dist/src/errors.js +7 -1
- package/dist/src/live/ActionsServiceLive.d.ts +2 -2
- package/dist/src/live/ActionsServiceLive.js +7 -7
- package/dist/src/live/AdaptersServiceLive.d.ts +3 -3
- package/dist/src/live/AdaptersServiceLive.js +4 -4
- package/dist/src/live/AgentSafesServiceLive.d.ts +3 -3
- package/dist/src/live/AgentSafesServiceLive.js +4 -4
- package/dist/src/live/AgentWalletsServiceLive.d.ts +3 -3
- package/dist/src/live/AgentWalletsServiceLive.js +3 -3
- package/dist/src/live/AgentWorkflowsServiceLive.d.ts +3 -3
- package/dist/src/live/AgentWorkflowsServiceLive.js +8 -8
- package/dist/src/live/AuthServiceLive.d.ts +3 -3
- package/dist/src/live/AuthServiceLive.js +5 -5
- package/dist/src/live/BookmarksServiceLive.d.ts +2 -2
- package/dist/src/live/BookmarksServiceLive.js +6 -6
- package/dist/src/live/CodeBlocksServiceLive.d.ts +3 -3
- package/dist/src/live/CodeBlocksServiceLive.js +7 -7
- package/dist/src/live/CollectionsServiceLive.d.ts +3 -3
- package/dist/src/live/CollectionsServiceLive.js +4 -4
- package/dist/src/live/ContractsServiceLive.d.ts +3 -3
- package/dist/src/live/ContractsServiceLive.js +6 -6
- package/dist/src/live/DocsServiceLive.d.ts +3 -3
- package/dist/src/live/DocsServiceLive.js +3 -3
- package/dist/src/live/DoubleClickServiceLive.d.ts +9 -0
- package/dist/src/live/DoubleClickServiceLive.js +113 -0
- package/dist/src/live/GroupsServiceLive.d.ts +3 -3
- package/dist/src/live/GroupsServiceLive.js +7 -7
- package/dist/src/live/HalServiceLive.d.ts +3 -3
- package/dist/src/live/HalServiceLive.js +3 -3
- package/dist/src/live/TransactionsServiceLive.d.ts +3 -3
- package/dist/src/live/TransactionsServiceLive.js +4 -4
- package/dist/src/live/WalletsServiceLive.d.ts +3 -3
- package/dist/src/live/WalletsServiceLive.js +5 -5
- package/dist/src/live/http.d.ts +2 -2
- package/dist/src/live/http.js +2 -2
- package/dist/src/schemas/actions.d.ts +127 -59
- package/dist/src/schemas/actions.js +42 -42
- package/dist/src/schemas/adapters.d.ts +4 -4
- package/dist/src/schemas/adapters.js +3 -3
- package/dist/src/schemas/agent-wallets.d.ts +57 -37
- package/dist/src/schemas/agent-wallets.js +35 -35
- package/dist/src/schemas/agent-workflows.d.ts +35 -35
- package/dist/src/schemas/agent-workflows.js +19 -19
- package/dist/src/schemas/auth.d.ts +19 -19
- package/dist/src/schemas/auth.js +10 -10
- package/dist/src/schemas/bookmarks.d.ts +58 -36
- package/dist/src/schemas/bookmarks.js +34 -34
- package/dist/src/schemas/codeblocks.d.ts +89 -52
- package/dist/src/schemas/codeblocks.js +34 -34
- package/dist/src/schemas/collections.d.ts +76 -32
- package/dist/src/schemas/collections.js +23 -23
- package/dist/src/schemas/common.d.ts +8 -8
- package/dist/src/schemas/common.js +5 -5
- package/dist/src/schemas/contracts.d.ts +176 -61
- package/dist/src/schemas/contracts.js +47 -47
- package/dist/src/schemas/docs.d.ts +7 -7
- package/dist/src/schemas/docs.js +5 -5
- package/dist/src/schemas/doubleclick.d.ts +186 -0
- package/dist/src/schemas/doubleclick.js +22 -0
- package/dist/src/schemas/groups.d.ts +27 -27
- package/dist/src/schemas/groups.js +16 -16
- package/dist/src/schemas/hal.d.ts +64 -18
- package/dist/src/schemas/hal.js +18 -18
- package/dist/src/schemas/transactions.d.ts +264 -56
- package/dist/src/schemas/transactions.js +50 -50
- package/dist/src/schemas/wallets.d.ts +434 -84
- package/dist/src/schemas/wallets.js +114 -69
- package/dist/src/services/ActionsService.d.ts +2 -2
- package/dist/src/services/AgentSafesService.d.ts +4 -4
- package/dist/src/services/AgentWalletsService.d.ts +2 -2
- package/dist/src/services/AgentWorkflowsService.d.ts +8 -8
- package/dist/src/services/AuthService.d.ts +3 -3
- package/dist/src/services/BookmarksService.d.ts +2 -2
- package/dist/src/services/ContractsService.d.ts +5 -5
- package/dist/src/services/DoubleClickService.d.ts +63 -0
- package/dist/src/services/DoubleClickService.js +7 -0
- package/dist/src/services/GroupsService.d.ts +11 -11
- package/dist/src/services/TransactionsService.d.ts +4 -4
- package/dist/src/services/WalletsService.d.ts +4 -4
- package/package.json +3 -3
|
@@ -1,32 +1,38 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
2
|
|
|
3
3
|
//#region src/schemas/actions.d.ts
|
|
4
|
-
declare const
|
|
4
|
+
declare const ActionExpressionSchema: Schema.Struct<{
|
|
5
5
|
readonly expression: Schema.Unknown;
|
|
6
6
|
readonly id: Schema.String;
|
|
7
7
|
readonly intent: Schema.withDecodingDefaultType<Schema.String, never>;
|
|
8
8
|
readonly name: Schema.String;
|
|
9
9
|
readonly publishedAt: Schema.withDecodingDefaultType<Schema.NullOr<Schema.String>, never>;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
declare const
|
|
10
|
+
}>;
|
|
11
|
+
type ActionExpression = typeof ActionExpressionSchema.Type;
|
|
12
|
+
declare const ActionSchema: Schema.Struct<{
|
|
13
13
|
readonly expressionType: Schema.withDecodingDefaultType<Schema.String, never>;
|
|
14
14
|
readonly expressionWithReferences: Schema.withDecodingDefaultType<Schema.NullOr<Schema.String>, never>;
|
|
15
15
|
readonly id: Schema.String;
|
|
16
16
|
readonly intent: Schema.withDecodingDefaultType<Schema.String, never>;
|
|
17
|
-
readonly latestExpression: Schema.withDecodingDefaultType<Schema.NullOr<
|
|
17
|
+
readonly latestExpression: Schema.withDecodingDefaultType<Schema.NullOr<Schema.Struct<{
|
|
18
|
+
readonly expression: Schema.Unknown;
|
|
19
|
+
readonly id: Schema.String;
|
|
20
|
+
readonly intent: Schema.withDecodingDefaultType<Schema.String, never>;
|
|
21
|
+
readonly name: Schema.String;
|
|
22
|
+
readonly publishedAt: Schema.withDecodingDefaultType<Schema.NullOr<Schema.String>, never>;
|
|
23
|
+
}>>, never>;
|
|
18
24
|
readonly name: Schema.String;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
declare const
|
|
25
|
+
}>;
|
|
26
|
+
type Action = typeof ActionSchema.Type;
|
|
27
|
+
declare const ActionVersionSchema: Schema.Struct<{
|
|
22
28
|
readonly expression: Schema.Unknown;
|
|
23
29
|
readonly id: Schema.String;
|
|
24
30
|
readonly intent: Schema.withDecodingDefaultType<Schema.String, never>;
|
|
25
31
|
readonly name: Schema.String;
|
|
26
32
|
readonly publishedAt: Schema.withDecodingDefaultType<Schema.NullOr<Schema.String>, never>;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
declare const
|
|
33
|
+
}>;
|
|
34
|
+
type ActionVersion = typeof ActionVersionSchema.Type;
|
|
35
|
+
declare const ActionsSearchParamsSchema: Schema.Struct<{
|
|
30
36
|
readonly filters: Schema.optional<Schema.Struct<{
|
|
31
37
|
readonly name: Schema.optional<Schema.String>;
|
|
32
38
|
readonly expressionType: Schema.optional<Schema.Literals<readonly ["action", "adapter"]>>;
|
|
@@ -34,54 +40,116 @@ declare const ActionsSearchParams_base: Schema.Class<ActionsSearchParams, Schema
|
|
|
34
40
|
readonly limit: Schema.Number;
|
|
35
41
|
readonly offset: Schema.Number;
|
|
36
42
|
readonly scope: Schema.$Array<Schema.Literals<readonly ["yours", "all_published", "verified"]>>;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
declare const
|
|
40
|
-
readonly items: Schema.$Array<
|
|
43
|
+
}>;
|
|
44
|
+
type ActionsSearchParams = typeof ActionsSearchParamsSchema.Type;
|
|
45
|
+
declare const ActionsSearchResponseSchema: Schema.Struct<{
|
|
46
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
47
|
+
readonly expressionType: Schema.withDecodingDefaultType<Schema.String, never>;
|
|
48
|
+
readonly expressionWithReferences: Schema.withDecodingDefaultType<Schema.NullOr<Schema.String>, never>;
|
|
49
|
+
readonly id: Schema.String;
|
|
50
|
+
readonly intent: Schema.withDecodingDefaultType<Schema.String, never>;
|
|
51
|
+
readonly latestExpression: Schema.withDecodingDefaultType<Schema.NullOr<Schema.Struct<{
|
|
52
|
+
readonly expression: Schema.Unknown;
|
|
53
|
+
readonly id: Schema.String;
|
|
54
|
+
readonly intent: Schema.withDecodingDefaultType<Schema.String, never>;
|
|
55
|
+
readonly name: Schema.String;
|
|
56
|
+
readonly publishedAt: Schema.withDecodingDefaultType<Schema.NullOr<Schema.String>, never>;
|
|
57
|
+
}>>, never>;
|
|
58
|
+
readonly name: Schema.String;
|
|
59
|
+
}>>;
|
|
41
60
|
readonly nextCursor: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
42
61
|
readonly totalCount: Schema.optional<Schema.Number>;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
declare const
|
|
46
|
-
readonly versionsByActionId: Schema.$Record<Schema.String, Schema.$Array<
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
62
|
+
}>;
|
|
63
|
+
type ActionsSearchResponse = typeof ActionsSearchResponseSchema.Type;
|
|
64
|
+
declare const ActionVersionsResponseSchema: Schema.Struct<{
|
|
65
|
+
readonly versionsByActionId: Schema.$Record<Schema.String, Schema.$Array<Schema.Struct<{
|
|
66
|
+
readonly expression: Schema.Unknown;
|
|
67
|
+
readonly id: Schema.String;
|
|
68
|
+
readonly intent: Schema.withDecodingDefaultType<Schema.String, never>;
|
|
69
|
+
readonly name: Schema.String;
|
|
70
|
+
readonly publishedAt: Schema.withDecodingDefaultType<Schema.NullOr<Schema.String>, never>;
|
|
71
|
+
}>>>;
|
|
72
|
+
}>;
|
|
73
|
+
type ActionVersionsResponse = typeof ActionVersionsResponseSchema.Type;
|
|
74
|
+
declare const RelatedAdapterItemSchema: Schema.Struct<{
|
|
50
75
|
readonly expressionType: Schema.String;
|
|
51
76
|
readonly id: Schema.String;
|
|
52
77
|
readonly intent: Schema.String;
|
|
53
78
|
readonly name: Schema.String;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
declare const
|
|
57
|
-
readonly actions: Schema.$Array<
|
|
58
|
-
|
|
79
|
+
}>;
|
|
80
|
+
type RelatedAdapterItem = typeof RelatedAdapterItemSchema.Type;
|
|
81
|
+
declare const RelatedAdaptersFunctionSignatureSchema: Schema.Struct<{
|
|
82
|
+
readonly actions: Schema.$Array<Schema.Struct<{
|
|
83
|
+
readonly expressionType: Schema.String;
|
|
84
|
+
readonly id: Schema.String;
|
|
85
|
+
readonly intent: Schema.String;
|
|
86
|
+
readonly name: Schema.String;
|
|
87
|
+
}>>;
|
|
88
|
+
readonly adapters: Schema.$Array<Schema.Struct<{
|
|
89
|
+
readonly expressionType: Schema.String;
|
|
90
|
+
readonly id: Schema.String;
|
|
91
|
+
readonly intent: Schema.String;
|
|
92
|
+
readonly name: Schema.String;
|
|
93
|
+
}>>;
|
|
59
94
|
readonly functionSignature: Schema.String;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
declare const
|
|
95
|
+
}>;
|
|
96
|
+
type RelatedAdaptersFunctionSignature = typeof RelatedAdaptersFunctionSignatureSchema.Type;
|
|
97
|
+
declare const RelatedAdaptersContractSchema: Schema.Struct<{
|
|
63
98
|
readonly blockchain: Schema.NullOr<Schema.String>;
|
|
64
99
|
readonly contractAddress: Schema.String;
|
|
65
|
-
readonly functionSignatures: Schema.$Array<
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
100
|
+
readonly functionSignatures: Schema.$Array<Schema.Struct<{
|
|
101
|
+
readonly actions: Schema.$Array<Schema.Struct<{
|
|
102
|
+
readonly expressionType: Schema.String;
|
|
103
|
+
readonly id: Schema.String;
|
|
104
|
+
readonly intent: Schema.String;
|
|
105
|
+
readonly name: Schema.String;
|
|
106
|
+
}>>;
|
|
107
|
+
readonly adapters: Schema.$Array<Schema.Struct<{
|
|
108
|
+
readonly expressionType: Schema.String;
|
|
109
|
+
readonly id: Schema.String;
|
|
110
|
+
readonly intent: Schema.String;
|
|
111
|
+
readonly name: Schema.String;
|
|
112
|
+
}>>;
|
|
113
|
+
readonly functionSignature: Schema.String;
|
|
114
|
+
}>>;
|
|
115
|
+
}>;
|
|
116
|
+
type RelatedAdaptersContract = typeof RelatedAdaptersContractSchema.Type;
|
|
117
|
+
declare const RelatedAdaptersResponseSchema: Schema.$Array<Schema.Struct<{
|
|
118
|
+
readonly blockchain: Schema.NullOr<Schema.String>;
|
|
119
|
+
readonly contractAddress: Schema.String;
|
|
120
|
+
readonly functionSignatures: Schema.$Array<Schema.Struct<{
|
|
121
|
+
readonly actions: Schema.$Array<Schema.Struct<{
|
|
122
|
+
readonly expressionType: Schema.String;
|
|
123
|
+
readonly id: Schema.String;
|
|
124
|
+
readonly intent: Schema.String;
|
|
125
|
+
readonly name: Schema.String;
|
|
126
|
+
}>>;
|
|
127
|
+
readonly adapters: Schema.$Array<Schema.Struct<{
|
|
128
|
+
readonly expressionType: Schema.String;
|
|
129
|
+
readonly id: Schema.String;
|
|
130
|
+
readonly intent: Schema.String;
|
|
131
|
+
readonly name: Schema.String;
|
|
132
|
+
}>>;
|
|
133
|
+
readonly functionSignature: Schema.String;
|
|
134
|
+
}>>;
|
|
135
|
+
}>>;
|
|
136
|
+
type RelatedAdaptersResponse = typeof RelatedAdaptersResponseSchema.Type;
|
|
137
|
+
declare const RelatedAdaptersSearchParamsSchema: Schema.Struct<{
|
|
70
138
|
readonly contracts: Schema.$Array<Schema.Struct<{
|
|
71
139
|
readonly address: Schema.brand<Schema.String, "EvmAddress">;
|
|
72
140
|
readonly blockchain: Schema.optional<Schema.Literals<readonly ["ethereum", "base"]>>;
|
|
73
141
|
readonly functionSignatures: Schema.optional<Schema.$Array<Schema.String>>;
|
|
74
142
|
}>>;
|
|
75
143
|
readonly scope: Schema.$Array<Schema.Literals<readonly ["yours", "verified"]>>;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
declare const
|
|
144
|
+
}>;
|
|
145
|
+
type RelatedAdaptersSearchParams = typeof RelatedAdaptersSearchParamsSchema.Type;
|
|
146
|
+
declare const CreateActionParamsSchema: Schema.Struct<{
|
|
79
147
|
readonly expression: Schema.Unknown;
|
|
80
148
|
readonly intent: Schema.optional<Schema.String>;
|
|
81
149
|
readonly name: Schema.String;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
declare const
|
|
150
|
+
}>;
|
|
151
|
+
type CreateActionParams = typeof CreateActionParamsSchema.Type;
|
|
152
|
+
declare const CreateActionResponseSchema: Schema.Struct<{
|
|
85
153
|
readonly expressionType: Schema.String;
|
|
86
154
|
readonly id: Schema.String;
|
|
87
155
|
readonly latestExpression: Schema.Struct<{
|
|
@@ -89,31 +157,31 @@ declare const CreateActionResponse_base: Schema.Class<CreateActionResponse, Sche
|
|
|
89
157
|
readonly name: Schema.String;
|
|
90
158
|
}>;
|
|
91
159
|
readonly name: Schema.String;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
declare const
|
|
160
|
+
}>;
|
|
161
|
+
type CreateActionResponse = typeof CreateActionResponseSchema.Type;
|
|
162
|
+
declare const PublishExpressionResponseSchema: Schema.Struct<{
|
|
95
163
|
readonly id: Schema.String;
|
|
96
164
|
readonly publishedAt: Schema.String;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
declare const
|
|
165
|
+
}>;
|
|
166
|
+
type PublishExpressionResponse = typeof PublishExpressionResponseSchema.Type;
|
|
167
|
+
declare const GetActionVersionsParamsSchema: Schema.Struct<{
|
|
100
168
|
readonly actionIds: Schema.$Array<Schema.String>;
|
|
101
169
|
readonly latest: Schema.optional<Schema.Boolean>;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
declare const
|
|
170
|
+
}>;
|
|
171
|
+
type GetActionVersionsParams = typeof GetActionVersionsParamsSchema.Type;
|
|
172
|
+
declare const UpdateActionMetadataParamsSchema: Schema.Struct<{
|
|
105
173
|
readonly intent: Schema.optional<Schema.String>;
|
|
106
174
|
readonly name: Schema.optional<Schema.String>;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
declare const
|
|
175
|
+
}>;
|
|
176
|
+
type UpdateActionMetadataParams = typeof UpdateActionMetadataParamsSchema.Type;
|
|
177
|
+
declare const UpdateExpressionParamsSchema: Schema.Struct<{
|
|
110
178
|
readonly expression: Schema.Unknown;
|
|
111
179
|
readonly name: Schema.String;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
declare const
|
|
180
|
+
}>;
|
|
181
|
+
type UpdateExpressionParams = typeof UpdateExpressionParamsSchema.Type;
|
|
182
|
+
declare const PublishExpressionParamsSchema: Schema.Struct<{
|
|
115
183
|
readonly intent: Schema.optional<Schema.String>;
|
|
116
|
-
}
|
|
117
|
-
|
|
184
|
+
}>;
|
|
185
|
+
type PublishExpressionParams = typeof PublishExpressionParamsSchema.Type;
|
|
118
186
|
//#endregion
|
|
119
|
-
export { Action, ActionExpression, ActionVersion, ActionVersionsResponse, ActionsSearchParams, ActionsSearchResponse, CreateActionParams, CreateActionResponse, GetActionVersionsParams, PublishExpressionParams, PublishExpressionResponse, RelatedAdapterItem, RelatedAdaptersContract, RelatedAdaptersFunctionSignature, RelatedAdaptersResponse, RelatedAdaptersSearchParams, UpdateActionMetadataParams, UpdateExpressionParams };
|
|
187
|
+
export { Action, ActionExpression, ActionExpressionSchema, ActionSchema, ActionVersion, ActionVersionSchema, ActionVersionsResponse, ActionVersionsResponseSchema, ActionsSearchParams, ActionsSearchParamsSchema, ActionsSearchResponse, ActionsSearchResponseSchema, CreateActionParams, CreateActionParamsSchema, CreateActionResponse, CreateActionResponseSchema, GetActionVersionsParams, GetActionVersionsParamsSchema, PublishExpressionParams, PublishExpressionParamsSchema, PublishExpressionResponse, PublishExpressionResponseSchema, RelatedAdapterItem, RelatedAdapterItemSchema, RelatedAdaptersContract, RelatedAdaptersContractSchema, RelatedAdaptersFunctionSignature, RelatedAdaptersFunctionSignatureSchema, RelatedAdaptersResponse, RelatedAdaptersResponseSchema, RelatedAdaptersSearchParams, RelatedAdaptersSearchParamsSchema, UpdateActionMetadataParams, UpdateActionMetadataParamsSchema, UpdateExpressionParams, UpdateExpressionParamsSchema };
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BlockchainSchema, EvmAddressSchema } from "./common.js";
|
|
2
2
|
import { Effect, Schema } from "effect";
|
|
3
3
|
|
|
4
4
|
//#region src/schemas/actions.ts
|
|
5
|
-
|
|
5
|
+
const ActionExpressionSchema = Schema.Struct({
|
|
6
6
|
expression: Schema.Unknown,
|
|
7
7
|
id: Schema.String,
|
|
8
8
|
intent: Schema.String.pipe(Schema.withDecodingDefaultType(Effect.succeed(""))),
|
|
9
9
|
name: Schema.String,
|
|
10
10
|
publishedAt: Schema.NullOr(Schema.String).pipe(Schema.withDecodingDefaultType(Effect.succeed(null)))
|
|
11
|
-
})
|
|
12
|
-
|
|
11
|
+
});
|
|
12
|
+
const ActionSchema = Schema.Struct({
|
|
13
13
|
expressionType: Schema.String.pipe(Schema.withDecodingDefaultType(Effect.succeed("action"))),
|
|
14
14
|
expressionWithReferences: Schema.NullOr(Schema.String).pipe(Schema.withDecodingDefaultType(Effect.succeed(null))),
|
|
15
15
|
id: Schema.String,
|
|
16
16
|
intent: Schema.String.pipe(Schema.withDecodingDefaultType(Effect.succeed(""))),
|
|
17
|
-
latestExpression: Schema.NullOr(
|
|
17
|
+
latestExpression: Schema.NullOr(ActionExpressionSchema).pipe(Schema.withDecodingDefaultType(Effect.succeed(null))),
|
|
18
18
|
name: Schema.String
|
|
19
|
-
})
|
|
20
|
-
|
|
19
|
+
});
|
|
20
|
+
const ActionVersionSchema = Schema.Struct({
|
|
21
21
|
expression: Schema.Unknown,
|
|
22
22
|
id: Schema.String,
|
|
23
23
|
intent: Schema.String.pipe(Schema.withDecodingDefaultType(Effect.succeed(""))),
|
|
24
24
|
name: Schema.String,
|
|
25
25
|
publishedAt: Schema.NullOr(Schema.String).pipe(Schema.withDecodingDefaultType(Effect.succeed(null)))
|
|
26
|
-
})
|
|
27
|
-
|
|
26
|
+
});
|
|
27
|
+
const ActionsSearchParamsSchema = Schema.Struct({
|
|
28
28
|
filters: Schema.optional(Schema.Struct({
|
|
29
29
|
name: Schema.optional(Schema.String),
|
|
30
30
|
expressionType: Schema.optional(Schema.Literals(["action", "adapter"]))
|
|
@@ -39,44 +39,44 @@ var ActionsSearchParams = class extends Schema.Class("ActionsSearchParams")({
|
|
|
39
39
|
"all_published",
|
|
40
40
|
"verified"
|
|
41
41
|
]))
|
|
42
|
-
})
|
|
43
|
-
|
|
44
|
-
items: Schema.Array(
|
|
42
|
+
});
|
|
43
|
+
const ActionsSearchResponseSchema = Schema.Struct({
|
|
44
|
+
items: Schema.Array(ActionSchema),
|
|
45
45
|
nextCursor: Schema.optional(Schema.NullOr(Schema.String)),
|
|
46
46
|
totalCount: Schema.optional(Schema.Number)
|
|
47
|
-
})
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
});
|
|
48
|
+
const ActionVersionsResponseSchema = Schema.Struct({ versionsByActionId: Schema.Record(Schema.String, Schema.Array(ActionVersionSchema)) });
|
|
49
|
+
const RelatedAdapterItemSchema = Schema.Struct({
|
|
50
50
|
expressionType: Schema.String,
|
|
51
51
|
id: Schema.String,
|
|
52
52
|
intent: Schema.String,
|
|
53
53
|
name: Schema.String
|
|
54
|
-
})
|
|
55
|
-
|
|
56
|
-
actions: Schema.Array(
|
|
57
|
-
adapters: Schema.Array(
|
|
54
|
+
});
|
|
55
|
+
const RelatedAdaptersFunctionSignatureSchema = Schema.Struct({
|
|
56
|
+
actions: Schema.Array(RelatedAdapterItemSchema),
|
|
57
|
+
adapters: Schema.Array(RelatedAdapterItemSchema),
|
|
58
58
|
functionSignature: Schema.String
|
|
59
|
-
})
|
|
60
|
-
|
|
59
|
+
});
|
|
60
|
+
const RelatedAdaptersContractSchema = Schema.Struct({
|
|
61
61
|
blockchain: Schema.NullOr(Schema.String),
|
|
62
62
|
contractAddress: Schema.String,
|
|
63
|
-
functionSignatures: Schema.Array(
|
|
64
|
-
})
|
|
65
|
-
const
|
|
66
|
-
|
|
63
|
+
functionSignatures: Schema.Array(RelatedAdaptersFunctionSignatureSchema)
|
|
64
|
+
});
|
|
65
|
+
const RelatedAdaptersResponseSchema = Schema.Array(RelatedAdaptersContractSchema);
|
|
66
|
+
const RelatedAdaptersSearchParamsSchema = Schema.Struct({
|
|
67
67
|
contracts: Schema.Array(Schema.Struct({
|
|
68
|
-
address:
|
|
69
|
-
blockchain: Schema.optional(
|
|
68
|
+
address: EvmAddressSchema,
|
|
69
|
+
blockchain: Schema.optional(BlockchainSchema),
|
|
70
70
|
functionSignatures: Schema.optional(Schema.Array(Schema.String))
|
|
71
71
|
})),
|
|
72
72
|
scope: Schema.Array(Schema.Literals(["yours", "verified"]))
|
|
73
|
-
})
|
|
74
|
-
|
|
73
|
+
});
|
|
74
|
+
const CreateActionParamsSchema = Schema.Struct({
|
|
75
75
|
expression: Schema.Unknown,
|
|
76
76
|
intent: Schema.optional(Schema.String),
|
|
77
77
|
name: Schema.String
|
|
78
|
-
})
|
|
79
|
-
|
|
78
|
+
});
|
|
79
|
+
const CreateActionResponseSchema = Schema.Struct({
|
|
80
80
|
expressionType: Schema.String,
|
|
81
81
|
id: Schema.String,
|
|
82
82
|
latestExpression: Schema.Struct({
|
|
@@ -84,24 +84,24 @@ var CreateActionResponse = class extends Schema.Class("CreateActionResponse")({
|
|
|
84
84
|
name: Schema.String
|
|
85
85
|
}),
|
|
86
86
|
name: Schema.String
|
|
87
|
-
})
|
|
88
|
-
|
|
87
|
+
});
|
|
88
|
+
const PublishExpressionResponseSchema = Schema.Struct({
|
|
89
89
|
id: Schema.String,
|
|
90
90
|
publishedAt: Schema.String
|
|
91
|
-
})
|
|
92
|
-
|
|
91
|
+
});
|
|
92
|
+
const GetActionVersionsParamsSchema = Schema.Struct({
|
|
93
93
|
actionIds: Schema.Array(Schema.String),
|
|
94
94
|
latest: Schema.optional(Schema.Boolean)
|
|
95
|
-
})
|
|
96
|
-
|
|
95
|
+
});
|
|
96
|
+
const UpdateActionMetadataParamsSchema = Schema.Struct({
|
|
97
97
|
intent: Schema.optional(Schema.String),
|
|
98
98
|
name: Schema.optional(Schema.String)
|
|
99
|
-
})
|
|
100
|
-
|
|
99
|
+
});
|
|
100
|
+
const UpdateExpressionParamsSchema = Schema.Struct({
|
|
101
101
|
expression: Schema.Unknown,
|
|
102
102
|
name: Schema.String
|
|
103
|
-
})
|
|
104
|
-
|
|
103
|
+
});
|
|
104
|
+
const PublishExpressionParamsSchema = Schema.Struct({ intent: Schema.optional(Schema.String) });
|
|
105
105
|
|
|
106
106
|
//#endregion
|
|
107
|
-
export {
|
|
107
|
+
export { ActionExpressionSchema, ActionSchema, ActionVersionSchema, ActionVersionsResponseSchema, ActionsSearchParamsSchema, ActionsSearchResponseSchema, CreateActionParamsSchema, CreateActionResponseSchema, GetActionVersionsParamsSchema, PublishExpressionParamsSchema, PublishExpressionResponseSchema, RelatedAdapterItemSchema, RelatedAdaptersContractSchema, RelatedAdaptersFunctionSignatureSchema, RelatedAdaptersResponseSchema, RelatedAdaptersSearchParamsSchema, UpdateActionMetadataParamsSchema, UpdateExpressionParamsSchema };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
2
|
|
|
3
3
|
//#region src/schemas/adapters.d.ts
|
|
4
|
-
declare const
|
|
4
|
+
declare const CreateAdapterParamsSchema: Schema.Struct<{
|
|
5
5
|
readonly expression: Schema.Unknown;
|
|
6
6
|
readonly intent: Schema.optional<Schema.String>;
|
|
7
7
|
readonly name: Schema.String;
|
|
8
|
-
}
|
|
9
|
-
|
|
8
|
+
}>;
|
|
9
|
+
type CreateAdapterParams = typeof CreateAdapterParamsSchema.Type;
|
|
10
10
|
//#endregion
|
|
11
|
-
export { CreateAdapterParams };
|
|
11
|
+
export { CreateAdapterParams, CreateAdapterParamsSchema };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
2
|
|
|
3
3
|
//#region src/schemas/adapters.ts
|
|
4
|
-
|
|
4
|
+
const CreateAdapterParamsSchema = Schema.Struct({
|
|
5
5
|
expression: Schema.Unknown,
|
|
6
6
|
intent: Schema.optional(Schema.String),
|
|
7
7
|
name: Schema.String
|
|
8
|
-
})
|
|
8
|
+
});
|
|
9
9
|
|
|
10
10
|
//#endregion
|
|
11
|
-
export {
|
|
11
|
+
export { CreateAdapterParamsSchema };
|
|
@@ -1,69 +1,89 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
2
|
|
|
3
3
|
//#region src/schemas/agent-wallets.d.ts
|
|
4
|
-
declare const
|
|
4
|
+
declare const AgentWalletSchema: Schema.Struct<{
|
|
5
5
|
readonly address: Schema.brand<Schema.String, "EvmAddress">;
|
|
6
6
|
readonly groupId: Schema.String;
|
|
7
7
|
readonly id: Schema.String;
|
|
8
8
|
readonly intent: Schema.NullOr<Schema.String>;
|
|
9
9
|
readonly name: Schema.NullOr<Schema.String>;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
declare const
|
|
10
|
+
}>;
|
|
11
|
+
type AgentWallet = typeof AgentWalletSchema.Type;
|
|
12
|
+
declare const AgentWalletSafeSchema: Schema.Struct<{
|
|
13
13
|
readonly blockchain: Schema.Literals<readonly ["ethereum", "base"]>;
|
|
14
14
|
readonly intent: Schema.NullOr<Schema.String>;
|
|
15
15
|
readonly isProposer: Schema.Boolean;
|
|
16
16
|
readonly isSigner: Schema.Boolean;
|
|
17
17
|
readonly name: Schema.NullOr<Schema.String>;
|
|
18
18
|
readonly safeAddress: Schema.brand<Schema.String, "EvmAddress">;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
declare const
|
|
19
|
+
}>;
|
|
20
|
+
type AgentWalletSafe = typeof AgentWalletSafeSchema.Type;
|
|
21
|
+
declare const LinkedAgentWalletSchema: Schema.Struct<{
|
|
22
22
|
readonly address: Schema.brand<Schema.String, "EvmAddress">;
|
|
23
23
|
readonly agentWalletId: Schema.String;
|
|
24
24
|
readonly intent: Schema.NullOr<Schema.String>;
|
|
25
25
|
readonly isProposer: Schema.Boolean;
|
|
26
26
|
readonly isSigner: Schema.Boolean;
|
|
27
27
|
readonly name: Schema.NullOr<Schema.String>;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
declare const
|
|
28
|
+
}>;
|
|
29
|
+
type LinkedAgentWallet = typeof LinkedAgentWalletSchema.Type;
|
|
30
|
+
declare const AgentSafeMetadataSchema: Schema.Struct<{
|
|
31
31
|
readonly blockchain: Schema.Literals<readonly ["ethereum", "base"]>;
|
|
32
32
|
readonly intent: Schema.NullOr<Schema.String>;
|
|
33
33
|
readonly name: Schema.NullOr<Schema.String>;
|
|
34
34
|
readonly safeAddress: Schema.brand<Schema.String, "EvmAddress">;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
declare const
|
|
35
|
+
}>;
|
|
36
|
+
type AgentSafeMetadata = typeof AgentSafeMetadataSchema.Type;
|
|
37
|
+
declare const AgentWalletsListParamsSchema: Schema.Struct<{
|
|
38
38
|
readonly groupId: Schema.optional<Schema.String>;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
declare const
|
|
42
|
-
readonly agentWallets: Schema.$Array<
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
39
|
+
}>;
|
|
40
|
+
type AgentWalletsListParams = typeof AgentWalletsListParamsSchema.Type;
|
|
41
|
+
declare const AgentWalletsListSchema: Schema.Struct<{
|
|
42
|
+
readonly agentWallets: Schema.$Array<Schema.Struct<{
|
|
43
|
+
readonly address: Schema.brand<Schema.String, "EvmAddress">;
|
|
44
|
+
readonly groupId: Schema.String;
|
|
45
|
+
readonly id: Schema.String;
|
|
46
|
+
readonly intent: Schema.NullOr<Schema.String>;
|
|
47
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
48
|
+
}>>;
|
|
49
|
+
}>;
|
|
50
|
+
type AgentWalletsList = typeof AgentWalletsListSchema.Type;
|
|
51
|
+
declare const AgentWalletSafesListSchema: Schema.Struct<{
|
|
52
|
+
readonly safes: Schema.$Array<Schema.Struct<{
|
|
53
|
+
readonly blockchain: Schema.Literals<readonly ["ethereum", "base"]>;
|
|
54
|
+
readonly intent: Schema.NullOr<Schema.String>;
|
|
55
|
+
readonly isProposer: Schema.Boolean;
|
|
56
|
+
readonly isSigner: Schema.Boolean;
|
|
57
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
58
|
+
readonly safeAddress: Schema.brand<Schema.String, "EvmAddress">;
|
|
59
|
+
}>>;
|
|
60
|
+
}>;
|
|
61
|
+
type AgentWalletSafesList = typeof AgentWalletSafesListSchema.Type;
|
|
62
|
+
declare const AgentSafeSchema: Schema.Struct<{
|
|
50
63
|
readonly blockchain: Schema.Literals<readonly ["ethereum", "base"]>;
|
|
51
64
|
readonly intent: Schema.NullOr<Schema.String>;
|
|
52
|
-
readonly linkedAgentWallets: Schema.$Array<
|
|
65
|
+
readonly linkedAgentWallets: Schema.$Array<Schema.Struct<{
|
|
66
|
+
readonly address: Schema.brand<Schema.String, "EvmAddress">;
|
|
67
|
+
readonly agentWalletId: Schema.String;
|
|
68
|
+
readonly intent: Schema.NullOr<Schema.String>;
|
|
69
|
+
readonly isProposer: Schema.Boolean;
|
|
70
|
+
readonly isSigner: Schema.Boolean;
|
|
71
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
72
|
+
}>>;
|
|
53
73
|
readonly name: Schema.NullOr<Schema.String>;
|
|
54
74
|
readonly owners: Schema.$Array<Schema.brand<Schema.String, "EvmAddress">>;
|
|
55
75
|
readonly safeAddress: Schema.brand<Schema.String, "EvmAddress">;
|
|
56
76
|
readonly safeUrl: Schema.String;
|
|
57
77
|
readonly threshold: Schema.Number;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
declare const
|
|
78
|
+
}>;
|
|
79
|
+
type AgentSafe = typeof AgentSafeSchema.Type;
|
|
80
|
+
declare const SetSafeProposerParamsSchema: Schema.Struct<{
|
|
61
81
|
readonly agentWalletAddress: Schema.brand<Schema.String, "EvmAddress">;
|
|
62
82
|
readonly intent: Schema.optional<Schema.String>;
|
|
63
83
|
readonly name: Schema.optional<Schema.String>;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
declare const
|
|
84
|
+
}>;
|
|
85
|
+
type SetSafeProposerParams = typeof SetSafeProposerParamsSchema.Type;
|
|
86
|
+
declare const SetSafeProposerResponseSchema: Schema.Struct<{
|
|
67
87
|
readonly agentWalletAddress: Schema.brand<Schema.String, "EvmAddress">;
|
|
68
88
|
readonly blockchain: Schema.Literals<readonly ["ethereum", "base"]>;
|
|
69
89
|
readonly intent: Schema.NullOr<Schema.String>;
|
|
@@ -71,12 +91,12 @@ declare const SetSafeProposerResponse_base: Schema.Class<SetSafeProposerResponse
|
|
|
71
91
|
readonly isSigner: Schema.Boolean;
|
|
72
92
|
readonly name: Schema.NullOr<Schema.String>;
|
|
73
93
|
readonly safeAddress: Schema.brand<Schema.String, "EvmAddress">;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
declare const
|
|
94
|
+
}>;
|
|
95
|
+
type SetSafeProposerResponse = typeof SetSafeProposerResponseSchema.Type;
|
|
96
|
+
declare const EditAgentSafeMetadataParamsSchema: Schema.Struct<{
|
|
77
97
|
readonly intent: Schema.optional<Schema.String>;
|
|
78
98
|
readonly name: Schema.optional<Schema.String>;
|
|
79
|
-
}
|
|
80
|
-
|
|
99
|
+
}>;
|
|
100
|
+
type EditAgentSafeMetadataParams = typeof EditAgentSafeMetadataParamsSchema.Type;
|
|
81
101
|
//#endregion
|
|
82
|
-
export { AgentSafe, AgentSafeMetadata, AgentWallet, AgentWalletSafe, AgentWalletSafesList, AgentWalletsList, AgentWalletsListParams, EditAgentSafeMetadataParams, LinkedAgentWallet, SetSafeProposerParams, SetSafeProposerResponse };
|
|
102
|
+
export { AgentSafe, AgentSafeMetadata, AgentSafeMetadataSchema, AgentSafeSchema, AgentWallet, AgentWalletSafe, AgentWalletSafeSchema, AgentWalletSafesList, AgentWalletSafesListSchema, AgentWalletSchema, AgentWalletsList, AgentWalletsListParams, AgentWalletsListParamsSchema, AgentWalletsListSchema, EditAgentSafeMetadataParams, EditAgentSafeMetadataParamsSchema, LinkedAgentWallet, LinkedAgentWalletSchema, SetSafeProposerParams, SetSafeProposerParamsSchema, SetSafeProposerResponse, SetSafeProposerResponseSchema };
|