@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.
- package/dist/index.d.ts +4 -4
- package/dist/index.js +4 -4
- package/dist/src/config.d.ts +17 -5
- package/dist/src/config.js +12 -2
- package/dist/src/live/ActionsServiceLive.js +10 -10
- package/dist/src/live/AdaptersServiceLive.js +7 -7
- package/dist/src/live/AgentSafesServiceLive.js +4 -4
- package/dist/src/live/AgentWalletsServiceLive.d.ts +2 -2
- package/dist/src/live/AgentWalletsServiceLive.js +3 -3
- package/dist/src/live/AgentWorkflowsServiceLive.d.ts +2 -2
- package/dist/src/live/AgentWorkflowsServiceLive.js +12 -8
- package/dist/src/live/AuthServiceLive.d.ts +2 -2
- package/dist/src/live/AuthServiceLive.js +8 -7
- package/dist/src/live/BookmarksServiceLive.d.ts +2 -2
- package/dist/src/live/BookmarksServiceLive.js +7 -7
- package/dist/src/live/CodeBlocksServiceLive.d.ts +2 -2
- package/dist/src/live/CodeBlocksServiceLive.js +1 -2
- package/dist/src/live/CollectionsServiceLive.d.ts +2 -2
- package/dist/src/live/CollectionsServiceLive.js +5 -5
- package/dist/src/live/ContractsServiceLive.d.ts +2 -2
- package/dist/src/live/ContractsServiceLive.js +5 -5
- package/dist/src/live/DocsServiceLive.d.ts +2 -2
- package/dist/src/live/DocsServiceLive.js +3 -3
- package/dist/src/live/GroupsServiceLive.d.ts +2 -2
- package/dist/src/live/GroupsServiceLive.js +7 -7
- package/dist/src/live/HalServiceLive.d.ts +2 -2
- package/dist/src/live/HalServiceLive.js +3 -3
- package/dist/src/live/TransactionsServiceLive.d.ts +2 -2
- package/dist/src/live/TransactionsServiceLive.js +4 -4
- package/dist/src/live/WalletsServiceLive.js +5 -5
- package/dist/src/live/http.d.ts +1 -4
- package/dist/src/live/http.js +15 -4
- package/dist/src/schemas/actions.d.ts +16 -16
- package/dist/src/schemas/adapters.d.ts +2 -2
- package/dist/src/schemas/agent-wallets.d.ts +19 -19
- package/dist/src/schemas/agent-workflows.d.ts +74 -199
- package/dist/src/schemas/agent-workflows.js +32 -25
- package/dist/src/schemas/auth.d.ts +22 -12
- package/dist/src/schemas/auth.js +16 -5
- package/dist/src/schemas/bookmarks.d.ts +18 -18
- package/dist/src/schemas/codeblocks.d.ts +8 -8
- package/dist/src/schemas/collections.d.ts +8 -8
- package/dist/src/schemas/contracts.d.ts +13 -13
- package/dist/src/schemas/hal.d.ts +10 -10
- package/dist/src/schemas/transactions.d.ts +44 -44
- package/dist/src/schemas/wallets.d.ts +20 -20
- package/dist/src/services/AgentWorkflowsService.d.ts +8 -7
- package/dist/src/services/AuthService.d.ts +3 -2
- package/package.json +2 -1
|
@@ -11,14 +11,14 @@ const mapNotFound = (groupId) => Effect.catchAll((error) => {
|
|
|
11
11
|
return Effect.fail(error);
|
|
12
12
|
});
|
|
13
13
|
const GroupsServiceLive = Layer.effect(GroupsService, Effect.gen(function* () {
|
|
14
|
-
const {
|
|
14
|
+
const { baseUrl, client } = yield* authorizedClient;
|
|
15
15
|
return {
|
|
16
|
-
create: ({ params }) => pipe(client.post(makeUrl(
|
|
17
|
-
list: () => pipe(client.get(makeUrl(
|
|
18
|
-
get: ({ groupId }) => pipe(client.get(makeUrl(
|
|
19
|
-
proposeMemberChange: ({ groupId, params }) => pipe(client.post(makeUrl(
|
|
20
|
-
proposeQuorumChange: ({ groupId, params }) => pipe(client.post(makeUrl(
|
|
21
|
-
editMetadata: ({ groupId, params }) => pipe(client.patch(makeUrl(
|
|
16
|
+
create: ({ params }) => pipe(client.post(makeUrl(baseUrl, "/v1/groups"), { body: jsonBody(params) }), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(CreateGroupResponse)), Effect.mapError(ensureServiceError("Failed to create group"))),
|
|
17
|
+
list: () => pipe(client.get(makeUrl(baseUrl, "/v1/groups")), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(ListGroupsResponse)), Effect.mapError(ensureServiceError("Failed to list groups"))),
|
|
18
|
+
get: ({ groupId }) => pipe(client.get(makeUrl(baseUrl, `/v1/groups/${groupId}`)), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(GroupDetails)), Effect.mapError(ensureServiceError("Failed to get group")), mapNotFound(groupId)),
|
|
19
|
+
proposeMemberChange: ({ groupId, params }) => pipe(client.post(makeUrl(baseUrl, `/v1/groups/${groupId}/proposals/member`), { body: jsonBody(params) }), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(ProposalResponse)), Effect.mapError(ensureServiceError("Failed to propose member change")), mapNotFound(groupId)),
|
|
20
|
+
proposeQuorumChange: ({ groupId, params }) => pipe(client.post(makeUrl(baseUrl, `/v1/groups/${groupId}/proposals/quorum`), { body: jsonBody(params) }), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(ProposalResponse)), Effect.mapError(ensureServiceError("Failed to propose quorum change")), mapNotFound(groupId)),
|
|
21
|
+
editMetadata: ({ groupId, params }) => pipe(client.patch(makeUrl(baseUrl, `/v1/groups/${groupId}`), { body: jsonBody(params) }), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(EditGroupMetadataResponse)), Effect.mapError(ensureServiceError("Failed to edit group metadata")), mapNotFound(groupId))
|
|
22
22
|
};
|
|
23
23
|
}));
|
|
24
24
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { HerdConfig } from "../config.js";
|
|
2
2
|
import { HalService } from "../services/HalService.js";
|
|
3
3
|
import { Layer } from "effect";
|
|
4
|
-
import * as
|
|
4
|
+
import * as _effect_platform_HttpClient13 from "@effect/platform/HttpClient";
|
|
5
5
|
|
|
6
6
|
//#region src/live/HalServiceLive.d.ts
|
|
7
|
-
declare const HalServiceLive: Layer.Layer<HalService, never, HerdConfig |
|
|
7
|
+
declare const HalServiceLive: Layer.Layer<HalService, never, HerdConfig | _effect_platform_HttpClient13.HttpClient>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { HalServiceLive };
|
|
@@ -14,9 +14,9 @@ const mapSimulationError = Effect.catchAll((error) => {
|
|
|
14
14
|
return Effect.fail(error);
|
|
15
15
|
});
|
|
16
16
|
const HalServiceLive = Layer.effect(HalService, Effect.gen(function* () {
|
|
17
|
-
const {
|
|
18
|
-
const callEvaluate = (body) => pipe(client.post(makeUrl(
|
|
19
|
-
const callEvaluateExisting = (body) => pipe(client.post(makeUrl(
|
|
17
|
+
const { baseUrl, client } = yield* authorizedClient;
|
|
18
|
+
const callEvaluate = (body) => pipe(client.post(makeUrl(baseUrl, "/v1/actions/executions/evaluate"), { body: jsonBody(body) }), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(EvaluateResponse)), Effect.mapError(ensureServiceError("Failed to evaluate expression")), mapSimulationError);
|
|
19
|
+
const callEvaluateExisting = (body) => pipe(client.post(makeUrl(baseUrl, "/v1/actions/executions/evaluate/existing"), { body: jsonBody(body) }), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(EvaluateExistingResponse)), Effect.mapError(ensureServiceError("Failed to evaluate existing action")), mapSimulationError);
|
|
20
20
|
return {
|
|
21
21
|
evaluate: (params) => callEvaluate({
|
|
22
22
|
expression: params.expression,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { HerdConfig } from "../config.js";
|
|
2
2
|
import { TransactionsService } from "../services/TransactionsService.js";
|
|
3
3
|
import { Layer } from "effect";
|
|
4
|
-
import * as
|
|
4
|
+
import * as _effect_platform_HttpClient12 from "@effect/platform/HttpClient";
|
|
5
5
|
|
|
6
6
|
//#region src/live/TransactionsServiceLive.d.ts
|
|
7
|
-
declare const TransactionsServiceLive: Layer.Layer<TransactionsService, never, HerdConfig |
|
|
7
|
+
declare const TransactionsServiceLive: Layer.Layer<TransactionsService, never, HerdConfig | _effect_platform_HttpClient12.HttpClient>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { TransactionsServiceLive };
|
|
@@ -23,17 +23,17 @@ const latestTxParamsToSnakeCaseQuery = (params) => pipe({
|
|
|
23
23
|
called_by: params?.calledBy
|
|
24
24
|
}, Record.filterMap(Option.liftNullable(Function.identity)));
|
|
25
25
|
const TransactionsServiceLive = Layer.effect(TransactionsService, Effect.gen(function* () {
|
|
26
|
-
const {
|
|
26
|
+
const { baseUrl, client } = yield* authorizedClient;
|
|
27
27
|
return {
|
|
28
|
-
getTransaction: (blockchain, txHash) => pipe(client.get(makeUrl(
|
|
29
|
-
getLatestFunctionTransactions: (blockchain, address, filter, params) => pipe(client.get(makeUrl(
|
|
28
|
+
getTransaction: (blockchain, txHash) => pipe(client.get(makeUrl(baseUrl, `/v1/transactions/${blockchain}/${txHash}`)), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(TransactionQueryResponse)), Effect.mapError(ensureServiceError("Failed to get transaction"))),
|
|
29
|
+
getLatestFunctionTransactions: (blockchain, address, filter, params) => pipe(client.get(makeUrl(baseUrl, `/v1/contracts/${blockchain}/${address}/latest_function_transactions`, {
|
|
30
30
|
...latestTxParamsToSnakeCaseQuery(params),
|
|
31
31
|
...toOptionalQuery({
|
|
32
32
|
name: filter.name,
|
|
33
33
|
signature: filter.signature
|
|
34
34
|
})
|
|
35
35
|
})), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(LatestFunctionTransactions)), Effect.mapError(ensureServiceError("Failed to get latest function transactions"))),
|
|
36
|
-
getLatestEventTransactions: (blockchain, address, filter, params) => pipe(client.get(makeUrl(
|
|
36
|
+
getLatestEventTransactions: (blockchain, address, filter, params) => pipe(client.get(makeUrl(baseUrl, `/v1/contracts/${blockchain}/${address}/latest_event_transactions`, {
|
|
37
37
|
...latestTxParamsToSnakeCaseQuery(params),
|
|
38
38
|
...toOptionalQuery({
|
|
39
39
|
name: filter.name,
|
|
@@ -7,15 +7,15 @@ import { HttpClientResponse } from "@effect/platform";
|
|
|
7
7
|
|
|
8
8
|
//#region src/live/WalletsServiceLive.ts
|
|
9
9
|
const WalletsServiceLive = Layer.effect(WalletsService, Effect.gen(function* () {
|
|
10
|
-
const {
|
|
10
|
+
const { baseUrl, client } = yield* authorizedClient;
|
|
11
11
|
return {
|
|
12
|
-
getOverview: (blockchain, address, params) => pipe(client.get(makeUrl(
|
|
12
|
+
getOverview: (blockchain, address, params) => pipe(client.get(makeUrl(baseUrl, `/v1/wallets/${blockchain}/${address}/overview`, {
|
|
13
13
|
before_timestamp: params?.beforeTimestamp,
|
|
14
14
|
after_timestamp: params?.afterTimestamp,
|
|
15
15
|
before_blocknumber: params?.beforeBlocknumber,
|
|
16
16
|
after_blocknumber: params?.afterBlocknumber
|
|
17
17
|
})), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(WalletOverview)), Effect.mapError(ensureServiceError("Failed to get wallet overview"))),
|
|
18
|
-
getTokenActivity: (blockchain, address, tokenAddress, params) => pipe(client.get(makeUrl(
|
|
18
|
+
getTokenActivity: (blockchain, address, tokenAddress, params) => pipe(client.get(makeUrl(baseUrl, `/v1/wallets/${blockchain}/${address}/tokens/${tokenAddress}`, {
|
|
19
19
|
page: params?.page,
|
|
20
20
|
before_timestamp: params?.beforeTimestamp,
|
|
21
21
|
after_timestamp: params?.afterTimestamp,
|
|
@@ -34,13 +34,13 @@ const WalletsServiceLive = Layer.effect(WalletsService, Effect.gen(function* ()
|
|
|
34
34
|
after_blocknumber: query.afterBlocknumber,
|
|
35
35
|
success_only: query.successOnly === true ? true : void 0
|
|
36
36
|
}, Record.filterMap(Option.liftNullable(Function.identity)));
|
|
37
|
-
return pipe(client.post(makeUrl(
|
|
37
|
+
return pipe(client.post(makeUrl(baseUrl, "/v1/wallets/transaction-activity"), { body: jsonBody({
|
|
38
38
|
blockchain: query.blockchain,
|
|
39
39
|
page: query.page ?? 1,
|
|
40
40
|
...optionalFields
|
|
41
41
|
}) }), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(TransactionActivity)), Effect.mapError(ensureServiceError("Failed to get wallet transactions")));
|
|
42
42
|
},
|
|
43
|
-
getDeployedContracts: (blockchain, address, params) => pipe(client.get(makeUrl(
|
|
43
|
+
getDeployedContracts: (blockchain, address, params) => pipe(client.get(makeUrl(baseUrl, `/v1/wallets/${blockchain}/${address}/created_contracts`, {
|
|
44
44
|
page: params?.page,
|
|
45
45
|
before_timestamp: params?.beforeTimestamp,
|
|
46
46
|
after_timestamp: params?.afterTimestamp,
|
package/dist/src/live/http.d.ts
CHANGED
|
@@ -7,10 +7,7 @@ import * as _effect_platform_HttpClientError0 from "@effect/platform/HttpClientE
|
|
|
7
7
|
//#region src/live/http.d.ts
|
|
8
8
|
declare const makeUrl: (baseUrl: string, path: string, queryParams?: object) => string;
|
|
9
9
|
declare const authorizedClient: Effect.Effect<{
|
|
10
|
-
|
|
11
|
-
readonly baseUrl: string;
|
|
12
|
-
readonly accessToken: string;
|
|
13
|
-
};
|
|
10
|
+
baseUrl: string;
|
|
14
11
|
client: HttpClient.HttpClient.With<_effect_platform_HttpClientError0.HttpClientError, never>;
|
|
15
12
|
}, never, HerdConfig | HttpClient.HttpClient>;
|
|
16
13
|
declare const handleJsonResponse: <A, I, R>(schema: Schema.Schema<A, I, R>) => (response: HttpClientResponse.HttpClientResponse) => Effect.Effect<A, ServiceError, R>;
|
package/dist/src/live/http.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HerdConfig } from "../config.js";
|
|
2
2
|
import { ServiceError } from "../errors.js";
|
|
3
|
-
import { Effect, pipe } from "effect";
|
|
3
|
+
import { Effect, Either, pipe } from "effect";
|
|
4
4
|
import { HttpBody, HttpClient, HttpClientRequest, HttpClientResponse } from "@effect/platform";
|
|
5
5
|
|
|
6
6
|
//#region src/live/http.ts
|
|
@@ -14,10 +14,21 @@ const makeUrl = (baseUrl, path, queryParams) => {
|
|
|
14
14
|
};
|
|
15
15
|
const authorizedClient = Effect.gen(function* () {
|
|
16
16
|
const config = yield* HerdConfig;
|
|
17
|
+
const client = yield* HttpClient.HttpClient;
|
|
18
|
+
const { baseUrl, authHeaders } = Either.match(config, {
|
|
19
|
+
onLeft: ({ baseUrl: baseUrl$1, oauthAccessToken }) => ({
|
|
20
|
+
baseUrl: baseUrl$1,
|
|
21
|
+
authHeaders: { Authorization: `Bearer ${oauthAccessToken}` }
|
|
22
|
+
}),
|
|
23
|
+
onRight: ({ baseUrl: baseUrl$1, apiKey }) => ({
|
|
24
|
+
baseUrl: baseUrl$1,
|
|
25
|
+
authHeaders: { "x-api-key": apiKey }
|
|
26
|
+
})
|
|
27
|
+
});
|
|
17
28
|
return {
|
|
18
|
-
|
|
19
|
-
client:
|
|
20
|
-
|
|
29
|
+
baseUrl,
|
|
30
|
+
client: client.pipe(HttpClient.mapRequest(HttpClientRequest.setHeaders({
|
|
31
|
+
...authHeaders,
|
|
21
32
|
"Content-Type": "application/json"
|
|
22
33
|
})))
|
|
23
34
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
|
-
import * as
|
|
2
|
+
import * as effect_Brand0 from "effect/Brand";
|
|
3
3
|
|
|
4
4
|
//#region src/schemas/actions.d.ts
|
|
5
5
|
declare const ActionExpression_base: Schema.Class<ActionExpression, {
|
|
@@ -26,12 +26,12 @@ declare const ActionExpression_base: Schema.Class<ActionExpression, {
|
|
|
26
26
|
readonly id: string;
|
|
27
27
|
} & {
|
|
28
28
|
readonly name: string;
|
|
29
|
+
} & {
|
|
30
|
+
readonly expression: unknown;
|
|
29
31
|
} & {
|
|
30
32
|
readonly intent?: string | undefined;
|
|
31
33
|
} & {
|
|
32
34
|
readonly publishedAt?: string | null | undefined;
|
|
33
|
-
} & {
|
|
34
|
-
readonly expression: unknown;
|
|
35
35
|
}, {}, {}>;
|
|
36
36
|
declare class ActionExpression extends ActionExpression_base {}
|
|
37
37
|
declare const Action_base: Schema.Class<Action, {
|
|
@@ -102,12 +102,12 @@ declare const ActionVersion_base: Schema.Class<ActionVersion, {
|
|
|
102
102
|
readonly id: string;
|
|
103
103
|
} & {
|
|
104
104
|
readonly name: string;
|
|
105
|
+
} & {
|
|
106
|
+
readonly expression: unknown;
|
|
105
107
|
} & {
|
|
106
108
|
readonly intent?: string | undefined;
|
|
107
109
|
} & {
|
|
108
110
|
readonly publishedAt?: string | null | undefined;
|
|
109
|
-
} & {
|
|
110
|
-
readonly expression: unknown;
|
|
111
111
|
}, {}, {}>;
|
|
112
112
|
declare class ActionVersion extends ActionVersion_base {}
|
|
113
113
|
declare const ActionsSearchParams_base: Schema.Class<ActionsSearchParams, {
|
|
@@ -127,16 +127,16 @@ declare const ActionsSearchParams_base: Schema.Class<ActionsSearchParams, {
|
|
|
127
127
|
expressionType: Schema.optional<Schema.Literal<["action", "adapter"]>>;
|
|
128
128
|
}>>;
|
|
129
129
|
}>, never, {
|
|
130
|
-
readonly
|
|
130
|
+
readonly offset: number;
|
|
131
131
|
} & {
|
|
132
|
-
readonly scope: readonly ("yours" | "
|
|
132
|
+
readonly scope: readonly ("yours" | "all_published" | "verified")[];
|
|
133
|
+
} & {
|
|
134
|
+
readonly limit: number;
|
|
133
135
|
} & {
|
|
134
136
|
readonly filters?: {
|
|
135
137
|
readonly name?: string | undefined;
|
|
136
138
|
readonly expressionType?: "action" | "adapter" | undefined;
|
|
137
139
|
} | undefined;
|
|
138
|
-
} & {
|
|
139
|
-
readonly offset: number;
|
|
140
140
|
}, {}, {}>;
|
|
141
141
|
declare class ActionsSearchParams extends ActionsSearchParams_base {}
|
|
142
142
|
declare const ActionsSearchResponse_base: Schema.Class<ActionsSearchResponse, {
|
|
@@ -149,10 +149,10 @@ declare const ActionsSearchResponse_base: Schema.Class<ActionsSearchResponse, {
|
|
|
149
149
|
nextCursor: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
150
150
|
}>, never, {
|
|
151
151
|
readonly items: readonly Action[];
|
|
152
|
-
} & {
|
|
153
|
-
readonly nextCursor?: string | null | undefined;
|
|
154
152
|
} & {
|
|
155
153
|
readonly totalCount?: number | undefined;
|
|
154
|
+
} & {
|
|
155
|
+
readonly nextCursor?: string | null | undefined;
|
|
156
156
|
}, {}, {}>;
|
|
157
157
|
declare class ActionsSearchResponse extends ActionsSearchResponse_base {}
|
|
158
158
|
declare const ActionVersionsResponse_base: Schema.Class<ActionVersionsResponse, {
|
|
@@ -210,9 +210,9 @@ declare const RelatedAdaptersContract_base: Schema.Class<RelatedAdaptersContract
|
|
|
210
210
|
contractAddress: typeof Schema.String;
|
|
211
211
|
functionSignatures: Schema.Array$<typeof RelatedAdaptersFunctionSignature>;
|
|
212
212
|
}>, never, {
|
|
213
|
-
readonly blockchain: string | null;
|
|
214
|
-
} & {
|
|
215
213
|
readonly contractAddress: string;
|
|
214
|
+
} & {
|
|
215
|
+
readonly blockchain: string | null;
|
|
216
216
|
} & {
|
|
217
217
|
readonly functionSignatures: readonly RelatedAdaptersFunctionSignature[];
|
|
218
218
|
}, {}, {}>;
|
|
@@ -238,7 +238,7 @@ declare const RelatedAdaptersSearchParams_base: Schema.Class<RelatedAdaptersSear
|
|
|
238
238
|
readonly contracts: readonly {
|
|
239
239
|
readonly blockchain?: "ethereum" | "base" | undefined;
|
|
240
240
|
readonly functionSignatures?: readonly string[] | undefined;
|
|
241
|
-
readonly address: string &
|
|
241
|
+
readonly address: string & effect_Brand0.Brand<"EvmAddress">;
|
|
242
242
|
}[];
|
|
243
243
|
}, {}, {}>;
|
|
244
244
|
declare class RelatedAdaptersSearchParams extends RelatedAdaptersSearchParams_base {}
|
|
@@ -252,10 +252,10 @@ declare const CreateActionParams_base: Schema.Class<CreateActionParams, {
|
|
|
252
252
|
expression: typeof Schema.Unknown;
|
|
253
253
|
}>, never, {
|
|
254
254
|
readonly name: string;
|
|
255
|
-
} & {
|
|
256
|
-
readonly intent?: string | undefined;
|
|
257
255
|
} & {
|
|
258
256
|
readonly expression: unknown;
|
|
257
|
+
} & {
|
|
258
|
+
readonly intent?: string | undefined;
|
|
259
259
|
}, {}, {}>;
|
|
260
260
|
declare class CreateActionParams extends CreateActionParams_base {}
|
|
261
261
|
declare const CreateActionResponse_base: Schema.Class<CreateActionResponse, {
|
|
@@ -11,10 +11,10 @@ declare const CreateAdapterParams_base: Schema.Class<CreateAdapterParams, {
|
|
|
11
11
|
expression: typeof Schema.Unknown;
|
|
12
12
|
}>, never, {
|
|
13
13
|
readonly name: string;
|
|
14
|
-
} & {
|
|
15
|
-
readonly intent?: string | undefined;
|
|
16
14
|
} & {
|
|
17
15
|
readonly expression: unknown;
|
|
16
|
+
} & {
|
|
17
|
+
readonly intent?: string | undefined;
|
|
18
18
|
}, {}, {}>;
|
|
19
19
|
declare class CreateAdapterParams extends CreateAdapterParams_base {}
|
|
20
20
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
|
-
import * as
|
|
2
|
+
import * as effect_Brand0 from "effect/Brand";
|
|
3
3
|
|
|
4
4
|
//#region src/schemas/agent-wallets.d.ts
|
|
5
5
|
declare const AgentWallet_base: Schema.Class<AgentWallet, {
|
|
@@ -21,9 +21,9 @@ declare const AgentWallet_base: Schema.Class<AgentWallet, {
|
|
|
21
21
|
} & {
|
|
22
22
|
readonly intent: string | null;
|
|
23
23
|
} & {
|
|
24
|
-
readonly
|
|
24
|
+
readonly address: string & effect_Brand0.Brand<"EvmAddress">;
|
|
25
25
|
} & {
|
|
26
|
-
readonly
|
|
26
|
+
readonly groupId: string;
|
|
27
27
|
}, {}, {}>;
|
|
28
28
|
declare class AgentWallet extends AgentWallet_base {}
|
|
29
29
|
declare const AgentWalletSafe_base: Schema.Class<AgentWalletSafe, {
|
|
@@ -41,13 +41,13 @@ declare const AgentWalletSafe_base: Schema.Class<AgentWalletSafe, {
|
|
|
41
41
|
isProposer: typeof Schema.Boolean;
|
|
42
42
|
isSigner: typeof Schema.Boolean;
|
|
43
43
|
}>, never, {
|
|
44
|
-
readonly blockchain: "ethereum" | "base";
|
|
45
|
-
} & {
|
|
46
44
|
readonly name: string | null;
|
|
47
45
|
} & {
|
|
48
46
|
readonly intent: string | null;
|
|
49
47
|
} & {
|
|
50
|
-
readonly
|
|
48
|
+
readonly blockchain: "ethereum" | "base";
|
|
49
|
+
} & {
|
|
50
|
+
readonly safeAddress: string & effect_Brand0.Brand<"EvmAddress">;
|
|
51
51
|
} & {
|
|
52
52
|
readonly isProposer: boolean;
|
|
53
53
|
} & {
|
|
@@ -73,7 +73,7 @@ declare const LinkedAgentWallet_base: Schema.Class<LinkedAgentWallet, {
|
|
|
73
73
|
} & {
|
|
74
74
|
readonly intent: string | null;
|
|
75
75
|
} & {
|
|
76
|
-
readonly address: string &
|
|
76
|
+
readonly address: string & effect_Brand0.Brand<"EvmAddress">;
|
|
77
77
|
} & {
|
|
78
78
|
readonly isProposer: boolean;
|
|
79
79
|
} & {
|
|
@@ -93,13 +93,13 @@ declare const AgentSafeMetadata_base: Schema.Class<AgentSafeMetadata, {
|
|
|
93
93
|
name: Schema.NullOr<typeof Schema.String>;
|
|
94
94
|
intent: Schema.NullOr<typeof Schema.String>;
|
|
95
95
|
}>, never, {
|
|
96
|
-
readonly blockchain: "ethereum" | "base";
|
|
97
|
-
} & {
|
|
98
96
|
readonly name: string | null;
|
|
99
97
|
} & {
|
|
100
98
|
readonly intent: string | null;
|
|
101
99
|
} & {
|
|
102
|
-
readonly
|
|
100
|
+
readonly blockchain: "ethereum" | "base";
|
|
101
|
+
} & {
|
|
102
|
+
readonly safeAddress: string & effect_Brand0.Brand<"EvmAddress">;
|
|
103
103
|
}, {}, {}>;
|
|
104
104
|
declare class AgentSafeMetadata extends AgentSafeMetadata_base {}
|
|
105
105
|
declare const AgentWalletsListParams_base: Schema.Class<AgentWalletsListParams, {
|
|
@@ -145,13 +145,13 @@ declare const AgentSafe_base: Schema.Class<AgentSafe, {
|
|
|
145
145
|
threshold: typeof Schema.Number;
|
|
146
146
|
safeUrl: typeof Schema.String;
|
|
147
147
|
}>, never, {
|
|
148
|
-
readonly blockchain: "ethereum" | "base";
|
|
149
|
-
} & {
|
|
150
148
|
readonly name: string | null;
|
|
151
149
|
} & {
|
|
152
150
|
readonly intent: string | null;
|
|
153
151
|
} & {
|
|
154
|
-
readonly
|
|
152
|
+
readonly blockchain: "ethereum" | "base";
|
|
153
|
+
} & {
|
|
154
|
+
readonly safeAddress: string & effect_Brand0.Brand<"EvmAddress">;
|
|
155
155
|
} & {
|
|
156
156
|
readonly threshold: number;
|
|
157
157
|
} & {
|
|
@@ -159,7 +159,7 @@ declare const AgentSafe_base: Schema.Class<AgentSafe, {
|
|
|
159
159
|
} & {
|
|
160
160
|
readonly linkedAgentWallets: readonly LinkedAgentWallet[];
|
|
161
161
|
} & {
|
|
162
|
-
readonly owners: readonly (string &
|
|
162
|
+
readonly owners: readonly (string & effect_Brand0.Brand<"EvmAddress">)[];
|
|
163
163
|
}, {}, {}>;
|
|
164
164
|
declare class AgentSafe extends AgentSafe_base {}
|
|
165
165
|
declare const SetSafeProposerParams_base: Schema.Class<SetSafeProposerParams, {
|
|
@@ -175,7 +175,7 @@ declare const SetSafeProposerParams_base: Schema.Class<SetSafeProposerParams, {
|
|
|
175
175
|
} & {
|
|
176
176
|
readonly intent?: string | undefined;
|
|
177
177
|
} & {
|
|
178
|
-
readonly agentWalletAddress: string &
|
|
178
|
+
readonly agentWalletAddress: string & effect_Brand0.Brand<"EvmAddress">;
|
|
179
179
|
}, {}, {}>;
|
|
180
180
|
declare class SetSafeProposerParams extends SetSafeProposerParams_base {}
|
|
181
181
|
declare const SetSafeProposerResponse_base: Schema.Class<SetSafeProposerResponse, {
|
|
@@ -195,19 +195,19 @@ declare const SetSafeProposerResponse_base: Schema.Class<SetSafeProposerResponse
|
|
|
195
195
|
isProposer: typeof Schema.Boolean;
|
|
196
196
|
isSigner: typeof Schema.Boolean;
|
|
197
197
|
}>, never, {
|
|
198
|
-
readonly blockchain: "ethereum" | "base";
|
|
199
|
-
} & {
|
|
200
198
|
readonly name: string | null;
|
|
201
199
|
} & {
|
|
202
200
|
readonly intent: string | null;
|
|
203
201
|
} & {
|
|
204
|
-
readonly
|
|
202
|
+
readonly blockchain: "ethereum" | "base";
|
|
203
|
+
} & {
|
|
204
|
+
readonly safeAddress: string & effect_Brand0.Brand<"EvmAddress">;
|
|
205
205
|
} & {
|
|
206
206
|
readonly isProposer: boolean;
|
|
207
207
|
} & {
|
|
208
208
|
readonly isSigner: boolean;
|
|
209
209
|
} & {
|
|
210
|
-
readonly agentWalletAddress: string &
|
|
210
|
+
readonly agentWalletAddress: string & effect_Brand0.Brand<"EvmAddress">;
|
|
211
211
|
}, {}, {}>;
|
|
212
212
|
declare class SetSafeProposerResponse extends SetSafeProposerResponse_base {}
|
|
213
213
|
declare const EditAgentSafeMetadataParams_base: Schema.Class<EditAgentSafeMetadataParams, {
|