@herd-labs/sdk 0.3.1 → 0.5.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 +17 -17
- package/dist/index.js +17 -17
- package/dist/src/config.d.ts +11 -11
- package/dist/src/config.js +9 -12
- package/dist/src/errors.d.ts +35 -44
- package/dist/src/errors.js +19 -16
- package/dist/src/live/ActionsServiceLive.d.ts +3 -3
- package/dist/src/live/ActionsServiceLive.js +14 -14
- package/dist/src/live/AdaptersServiceLive.d.ts +3 -3
- package/dist/src/live/AdaptersServiceLive.js +8 -8
- package/dist/src/live/AgentSafesServiceLive.d.ts +3 -3
- package/dist/src/live/AgentSafesServiceLive.js +5 -5
- package/dist/src/live/AgentWalletsServiceLive.d.ts +3 -3
- package/dist/src/live/AgentWalletsServiceLive.js +4 -4
- package/dist/src/live/AgentWorkflowsServiceLive.d.ts +3 -3
- package/dist/src/live/AgentWorkflowsServiceLive.js +14 -14
- package/dist/src/live/AuthServiceLive.d.ts +3 -3
- package/dist/src/live/AuthServiceLive.js +7 -7
- package/dist/src/live/BookmarksServiceLive.d.ts +3 -3
- package/dist/src/live/BookmarksServiceLive.js +20 -20
- package/dist/src/live/CodeBlocksServiceLive.d.ts +3 -3
- package/dist/src/live/CodeBlocksServiceLive.js +11 -11
- package/dist/src/live/CollectionsServiceLive.d.ts +3 -3
- package/dist/src/live/CollectionsServiceLive.js +6 -6
- package/dist/src/live/ContractsServiceLive.d.ts +3 -3
- package/dist/src/live/ContractsServiceLive.js +10 -10
- package/dist/src/live/DocsServiceLive.d.ts +3 -3
- package/dist/src/live/DocsServiceLive.js +4 -4
- package/dist/src/live/GroupsServiceLive.d.ts +3 -3
- package/dist/src/live/GroupsServiceLive.js +9 -9
- package/dist/src/live/HalServiceLive.d.ts +3 -3
- package/dist/src/live/HalServiceLive.js +12 -12
- package/dist/src/live/TransactionsServiceLive.d.ts +3 -3
- package/dist/src/live/TransactionsServiceLive.js +18 -18
- package/dist/src/live/WalletsServiceLive.d.ts +3 -3
- package/dist/src/live/WalletsServiceLive.js +18 -18
- package/dist/src/live/http.d.ts +6 -6
- package/dist/src/live/http.js +15 -15
- package/dist/src/schemas/actions.d.ts +179 -339
- package/dist/src/schemas/actions.js +80 -76
- package/dist/src/schemas/adapters.d.ts +7 -17
- package/dist/src/schemas/adapters.js +5 -5
- package/dist/src/schemas/agent-wallets.d.ts +98 -222
- package/dist/src/schemas/agent-wallets.js +52 -52
- package/dist/src/schemas/agent-workflows.d.ts +104 -104
- package/dist/src/schemas/agent-workflows.js +53 -49
- package/dist/src/schemas/auth.d.ts +35 -64
- package/dist/src/schemas/auth.js +16 -16
- package/dist/src/schemas/bookmarks.d.ts +98 -216
- package/dist/src/schemas/bookmarks.js +55 -51
- package/dist/src/schemas/codeblocks.d.ts +149 -308
- package/dist/src/schemas/codeblocks.js +72 -67
- package/dist/src/schemas/collections.d.ts +120 -232
- package/dist/src/schemas/collections.js +48 -44
- package/dist/src/schemas/common.d.ts +13 -29
- package/dist/src/schemas/common.js +8 -8
- package/dist/src/schemas/contracts.d.ts +256 -447
- package/dist/src/schemas/contracts.js +92 -103
- package/dist/src/schemas/docs.d.ts +12 -29
- package/dist/src/schemas/docs.js +9 -9
- package/dist/src/schemas/groups.d.ts +74 -74
- package/dist/src/schemas/groups.js +32 -32
- package/dist/src/schemas/hal.d.ts +109 -217
- package/dist/src/schemas/hal.js +44 -42
- package/dist/src/schemas/transactions.d.ts +648 -926
- package/dist/src/schemas/transactions.js +158 -162
- package/dist/src/schemas/wallets.d.ts +577 -731
- package/dist/src/schemas/wallets.js +206 -145
- package/dist/src/services/ActionsService.d.ts +3 -3
- package/dist/src/services/ActionsService.js +2 -2
- package/dist/src/services/AdaptersService.d.ts +1 -1
- package/dist/src/services/AdaptersService.js +2 -2
- package/dist/src/services/AgentSafesService.d.ts +5 -5
- package/dist/src/services/AgentSafesService.js +2 -2
- package/dist/src/services/AgentWalletsService.d.ts +3 -3
- package/dist/src/services/AgentWalletsService.js +2 -2
- package/dist/src/services/AgentWorkflowsService.d.ts +11 -11
- package/dist/src/services/AgentWorkflowsService.js +6 -2
- package/dist/src/services/AuthService.d.ts +5 -5
- package/dist/src/services/AuthService.js +2 -2
- package/dist/src/services/BookmarksService.d.ts +3 -3
- package/dist/src/services/BookmarksService.js +2 -2
- package/dist/src/services/CodeBlocksService.d.ts +1 -1
- package/dist/src/services/CodeBlocksService.js +2 -2
- package/dist/src/services/CollectionsService.d.ts +1 -1
- package/dist/src/services/CollectionsService.js +2 -2
- package/dist/src/services/ContractsService.d.ts +6 -6
- package/dist/src/services/ContractsService.js +2 -2
- package/dist/src/services/DocsService.d.ts +2 -2
- package/dist/src/services/DocsService.js +2 -2
- package/dist/src/services/GroupsService.d.ts +13 -13
- package/dist/src/services/GroupsService.js +4 -2
- package/dist/src/services/HalService.d.ts +1 -1
- package/dist/src/services/HalService.js +2 -2
- package/dist/src/services/TransactionsService.d.ts +5 -5
- package/dist/src/services/TransactionsService.js +2 -2
- package/dist/src/services/WalletsService.d.ts +5 -5
- package/dist/src/services/WalletsService.js +2 -2
- package/package.json +13 -18
|
@@ -1,103 +1,107 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Schema } from "effect";
|
|
1
|
+
import { BlockchainSchema, EvmAddressSchema } from "./common.js";
|
|
2
|
+
import { Effect, Schema } from "effect";
|
|
3
3
|
|
|
4
4
|
//#region src/schemas/actions.ts
|
|
5
|
-
|
|
6
|
-
id: Schema.String,
|
|
7
|
-
name: Schema.String,
|
|
5
|
+
const ActionExpressionSchema = Schema.Struct({
|
|
8
6
|
expression: Schema.Unknown,
|
|
9
|
-
intent: Schema.optionalWith(Schema.String, { default: () => "" }),
|
|
10
|
-
publishedAt: Schema.optionalWith(Schema.NullOr(Schema.String), { default: () => null })
|
|
11
|
-
}) {};
|
|
12
|
-
var Action = class extends Schema.Class("Action")({
|
|
13
7
|
id: Schema.String,
|
|
8
|
+
intent: Schema.String.pipe(Schema.withDecodingDefaultType(Effect.succeed(""))),
|
|
14
9
|
name: Schema.String,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
var ActionVersion = class extends Schema.Class("ActionVersion")({
|
|
10
|
+
publishedAt: Schema.NullOr(Schema.String).pipe(Schema.withDecodingDefaultType(Effect.succeed(null)))
|
|
11
|
+
});
|
|
12
|
+
const ActionSchema = Schema.Struct({
|
|
13
|
+
expressionType: Schema.String.pipe(Schema.withDecodingDefaultType(Effect.succeed("action"))),
|
|
14
|
+
expressionWithReferences: Schema.NullOr(Schema.String).pipe(Schema.withDecodingDefaultType(Effect.succeed(null))),
|
|
21
15
|
id: Schema.String,
|
|
22
|
-
|
|
16
|
+
intent: Schema.String.pipe(Schema.withDecodingDefaultType(Effect.succeed(""))),
|
|
17
|
+
latestExpression: Schema.NullOr(ActionExpressionSchema).pipe(Schema.withDecodingDefaultType(Effect.succeed(null))),
|
|
18
|
+
name: Schema.String
|
|
19
|
+
});
|
|
20
|
+
const ActionVersionSchema = Schema.Struct({
|
|
23
21
|
expression: Schema.Unknown,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
offset: Schema.Number,
|
|
22
|
+
id: Schema.String,
|
|
23
|
+
intent: Schema.String.pipe(Schema.withDecodingDefaultType(Effect.succeed(""))),
|
|
24
|
+
name: Schema.String,
|
|
25
|
+
publishedAt: Schema.NullOr(Schema.String).pipe(Schema.withDecodingDefaultType(Effect.succeed(null)))
|
|
26
|
+
});
|
|
27
|
+
const ActionsSearchParamsSchema = Schema.Struct({
|
|
31
28
|
filters: Schema.optional(Schema.Struct({
|
|
32
29
|
name: Schema.optional(Schema.String),
|
|
33
|
-
expressionType: Schema.optional(Schema.
|
|
34
|
-
}))
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
30
|
+
expressionType: Schema.optional(Schema.Literals(["action", "adapter"]))
|
|
31
|
+
})),
|
|
32
|
+
limit: Schema.Number.check(Schema.isBetween({
|
|
33
|
+
minimum: 1,
|
|
34
|
+
maximum: 100
|
|
35
|
+
})),
|
|
36
|
+
offset: Schema.Number,
|
|
37
|
+
scope: Schema.Array(Schema.Literals([
|
|
38
|
+
"yours",
|
|
39
|
+
"all_published",
|
|
40
|
+
"verified"
|
|
41
|
+
]))
|
|
42
|
+
});
|
|
43
|
+
const ActionsSearchResponseSchema = Schema.Struct({
|
|
44
|
+
items: Schema.Array(ActionSchema),
|
|
45
|
+
nextCursor: Schema.optional(Schema.NullOr(Schema.String)),
|
|
46
|
+
totalCount: Schema.optional(Schema.Number)
|
|
47
|
+
});
|
|
48
|
+
const ActionVersionsResponseSchema = Schema.Struct({ versionsByActionId: Schema.Record(Schema.String, Schema.Array(ActionVersionSchema)) });
|
|
49
|
+
const RelatedAdapterItemSchema = Schema.Struct({
|
|
50
|
+
expressionType: Schema.String,
|
|
46
51
|
id: Schema.String,
|
|
47
|
-
name: Schema.String,
|
|
48
52
|
intent: Schema.String,
|
|
49
|
-
|
|
50
|
-
})
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
adapters: Schema.Array(
|
|
54
|
-
|
|
55
|
-
})
|
|
56
|
-
|
|
53
|
+
name: Schema.String
|
|
54
|
+
});
|
|
55
|
+
const RelatedAdaptersFunctionSignatureSchema = Schema.Struct({
|
|
56
|
+
actions: Schema.Array(RelatedAdapterItemSchema),
|
|
57
|
+
adapters: Schema.Array(RelatedAdapterItemSchema),
|
|
58
|
+
functionSignature: Schema.String
|
|
59
|
+
});
|
|
60
|
+
const RelatedAdaptersContractSchema = Schema.Struct({
|
|
57
61
|
blockchain: Schema.NullOr(Schema.String),
|
|
58
62
|
contractAddress: Schema.String,
|
|
59
|
-
functionSignatures: Schema.Array(
|
|
60
|
-
})
|
|
61
|
-
const
|
|
62
|
-
|
|
63
|
+
functionSignatures: Schema.Array(RelatedAdaptersFunctionSignatureSchema)
|
|
64
|
+
});
|
|
65
|
+
const RelatedAdaptersResponseSchema = Schema.Array(RelatedAdaptersContractSchema);
|
|
66
|
+
const RelatedAdaptersSearchParamsSchema = Schema.Struct({
|
|
63
67
|
contracts: Schema.Array(Schema.Struct({
|
|
64
|
-
address:
|
|
65
|
-
blockchain: Schema.optional(
|
|
68
|
+
address: EvmAddressSchema,
|
|
69
|
+
blockchain: Schema.optional(BlockchainSchema),
|
|
66
70
|
functionSignatures: Schema.optional(Schema.Array(Schema.String))
|
|
67
71
|
})),
|
|
68
|
-
scope: Schema.Array(Schema.
|
|
69
|
-
})
|
|
70
|
-
|
|
71
|
-
|
|
72
|
+
scope: Schema.Array(Schema.Literals(["yours", "verified"]))
|
|
73
|
+
});
|
|
74
|
+
const CreateActionParamsSchema = Schema.Struct({
|
|
75
|
+
expression: Schema.Unknown,
|
|
72
76
|
intent: Schema.optional(Schema.String),
|
|
73
|
-
|
|
74
|
-
})
|
|
75
|
-
|
|
76
|
-
id: Schema.String,
|
|
77
|
-
name: Schema.String,
|
|
77
|
+
name: Schema.String
|
|
78
|
+
});
|
|
79
|
+
const CreateActionResponseSchema = Schema.Struct({
|
|
78
80
|
expressionType: Schema.String,
|
|
81
|
+
id: Schema.String,
|
|
79
82
|
latestExpression: Schema.Struct({
|
|
80
83
|
id: Schema.String,
|
|
81
84
|
name: Schema.String
|
|
82
|
-
})
|
|
83
|
-
|
|
84
|
-
|
|
85
|
+
}),
|
|
86
|
+
name: Schema.String
|
|
87
|
+
});
|
|
88
|
+
const PublishExpressionResponseSchema = Schema.Struct({
|
|
85
89
|
id: Schema.String,
|
|
86
90
|
publishedAt: Schema.String
|
|
87
|
-
})
|
|
88
|
-
|
|
91
|
+
});
|
|
92
|
+
const GetActionVersionsParamsSchema = Schema.Struct({
|
|
89
93
|
actionIds: Schema.Array(Schema.String),
|
|
90
94
|
latest: Schema.optional(Schema.Boolean)
|
|
91
|
-
})
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
})
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
})
|
|
100
|
-
|
|
95
|
+
});
|
|
96
|
+
const UpdateActionMetadataParamsSchema = Schema.Struct({
|
|
97
|
+
intent: Schema.optional(Schema.String),
|
|
98
|
+
name: Schema.optional(Schema.String)
|
|
99
|
+
});
|
|
100
|
+
const UpdateExpressionParamsSchema = Schema.Struct({
|
|
101
|
+
expression: Schema.Unknown,
|
|
102
|
+
name: Schema.String
|
|
103
|
+
});
|
|
104
|
+
const PublishExpressionParamsSchema = Schema.Struct({ intent: Schema.optional(Schema.String) });
|
|
101
105
|
|
|
102
106
|
//#endregion
|
|
103
|
-
export {
|
|
107
|
+
export { ActionExpressionSchema, ActionSchema, ActionVersionSchema, ActionVersionsResponseSchema, ActionsSearchParamsSchema, ActionsSearchResponseSchema, CreateActionParamsSchema, CreateActionResponseSchema, GetActionVersionsParamsSchema, PublishExpressionParamsSchema, PublishExpressionResponseSchema, RelatedAdapterItemSchema, RelatedAdaptersContractSchema, RelatedAdaptersFunctionSignatureSchema, RelatedAdaptersResponseSchema, RelatedAdaptersSearchParamsSchema, UpdateActionMetadataParamsSchema, UpdateExpressionParamsSchema };
|
|
@@ -1,21 +1,11 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
2
|
|
|
3
3
|
//#region src/schemas/adapters.d.ts
|
|
4
|
-
declare const
|
|
5
|
-
|
|
6
|
-
intent: Schema.optional<
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
intent: Schema.optional<typeof Schema.String>;
|
|
11
|
-
expression: typeof Schema.Unknown;
|
|
12
|
-
}>, never, {
|
|
13
|
-
readonly name: string;
|
|
14
|
-
} & {
|
|
15
|
-
readonly intent?: string | undefined;
|
|
16
|
-
} & {
|
|
17
|
-
readonly expression: unknown;
|
|
18
|
-
}, {}, {}>;
|
|
19
|
-
declare class CreateAdapterParams extends CreateAdapterParams_base {}
|
|
4
|
+
declare const CreateAdapterParamsSchema: Schema.Struct<{
|
|
5
|
+
readonly expression: Schema.Unknown;
|
|
6
|
+
readonly intent: Schema.optional<Schema.String>;
|
|
7
|
+
readonly name: Schema.String;
|
|
8
|
+
}>;
|
|
9
|
+
type CreateAdapterParams = typeof CreateAdapterParamsSchema.Type;
|
|
20
10
|
//#endregion
|
|
21
|
-
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
|
-
|
|
5
|
-
|
|
4
|
+
const CreateAdapterParamsSchema = Schema.Struct({
|
|
5
|
+
expression: Schema.Unknown,
|
|
6
6
|
intent: Schema.optional(Schema.String),
|
|
7
|
-
|
|
8
|
-
})
|
|
7
|
+
name: Schema.String
|
|
8
|
+
});
|
|
9
9
|
|
|
10
10
|
//#endregion
|
|
11
|
-
export {
|
|
11
|
+
export { CreateAdapterParamsSchema };
|
|
@@ -1,226 +1,102 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
|
-
import * as effect_Brand0 from "effect/Brand";
|
|
3
2
|
|
|
4
3
|
//#region src/schemas/agent-wallets.d.ts
|
|
5
|
-
declare const
|
|
6
|
-
|
|
7
|
-
groupId:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
readonly
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
readonly
|
|
25
|
-
|
|
26
|
-
readonly
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
intent: Schema.NullOr<
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
}
|
|
74
|
-
readonly
|
|
75
|
-
|
|
76
|
-
readonly
|
|
77
|
-
|
|
78
|
-
readonly
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
readonly
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
name: Schema.NullOr<
|
|
94
|
-
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
readonly intent:
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
readonly safeAddress: string & effect_Brand0.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 name: string | null;
|
|
149
|
-
} & {
|
|
150
|
-
readonly intent: string | null;
|
|
151
|
-
} & {
|
|
152
|
-
readonly blockchain: "ethereum" | "base";
|
|
153
|
-
} & {
|
|
154
|
-
readonly safeAddress: string & effect_Brand0.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_Brand0.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_Brand0.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 name: string | null;
|
|
199
|
-
} & {
|
|
200
|
-
readonly intent: string | null;
|
|
201
|
-
} & {
|
|
202
|
-
readonly blockchain: "ethereum" | "base";
|
|
203
|
-
} & {
|
|
204
|
-
readonly safeAddress: string & effect_Brand0.Brand<"EvmAddress">;
|
|
205
|
-
} & {
|
|
206
|
-
readonly isProposer: boolean;
|
|
207
|
-
} & {
|
|
208
|
-
readonly isSigner: boolean;
|
|
209
|
-
} & {
|
|
210
|
-
readonly agentWalletAddress: string & effect_Brand0.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 {}
|
|
4
|
+
declare const AgentWalletSchema: Schema.Struct<{
|
|
5
|
+
readonly address: Schema.brand<Schema.String, "EvmAddress">;
|
|
6
|
+
readonly groupId: Schema.String;
|
|
7
|
+
readonly id: Schema.String;
|
|
8
|
+
readonly intent: Schema.NullOr<Schema.String>;
|
|
9
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
10
|
+
}>;
|
|
11
|
+
type AgentWallet = typeof AgentWalletSchema.Type;
|
|
12
|
+
declare const AgentWalletSafeSchema: Schema.Struct<{
|
|
13
|
+
readonly blockchain: Schema.Literals<readonly ["ethereum", "base"]>;
|
|
14
|
+
readonly intent: Schema.NullOr<Schema.String>;
|
|
15
|
+
readonly isProposer: Schema.Boolean;
|
|
16
|
+
readonly isSigner: Schema.Boolean;
|
|
17
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
18
|
+
readonly safeAddress: Schema.brand<Schema.String, "EvmAddress">;
|
|
19
|
+
}>;
|
|
20
|
+
type AgentWalletSafe = typeof AgentWalletSafeSchema.Type;
|
|
21
|
+
declare const LinkedAgentWalletSchema: Schema.Struct<{
|
|
22
|
+
readonly address: Schema.brand<Schema.String, "EvmAddress">;
|
|
23
|
+
readonly agentWalletId: Schema.String;
|
|
24
|
+
readonly intent: Schema.NullOr<Schema.String>;
|
|
25
|
+
readonly isProposer: Schema.Boolean;
|
|
26
|
+
readonly isSigner: Schema.Boolean;
|
|
27
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
28
|
+
}>;
|
|
29
|
+
type LinkedAgentWallet = typeof LinkedAgentWalletSchema.Type;
|
|
30
|
+
declare const AgentSafeMetadataSchema: Schema.Struct<{
|
|
31
|
+
readonly blockchain: Schema.Literals<readonly ["ethereum", "base"]>;
|
|
32
|
+
readonly intent: Schema.NullOr<Schema.String>;
|
|
33
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
34
|
+
readonly safeAddress: Schema.brand<Schema.String, "EvmAddress">;
|
|
35
|
+
}>;
|
|
36
|
+
type AgentSafeMetadata = typeof AgentSafeMetadataSchema.Type;
|
|
37
|
+
declare const AgentWalletsListParamsSchema: Schema.Struct<{
|
|
38
|
+
readonly groupId: Schema.optional<Schema.String>;
|
|
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<{
|
|
63
|
+
readonly blockchain: Schema.Literals<readonly ["ethereum", "base"]>;
|
|
64
|
+
readonly intent: Schema.NullOr<Schema.String>;
|
|
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
|
+
}>>;
|
|
73
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
74
|
+
readonly owners: Schema.$Array<Schema.brand<Schema.String, "EvmAddress">>;
|
|
75
|
+
readonly safeAddress: Schema.brand<Schema.String, "EvmAddress">;
|
|
76
|
+
readonly safeUrl: Schema.String;
|
|
77
|
+
readonly threshold: Schema.Number;
|
|
78
|
+
}>;
|
|
79
|
+
type AgentSafe = typeof AgentSafeSchema.Type;
|
|
80
|
+
declare const SetSafeProposerParamsSchema: Schema.Struct<{
|
|
81
|
+
readonly agentWalletAddress: Schema.brand<Schema.String, "EvmAddress">;
|
|
82
|
+
readonly intent: Schema.optional<Schema.String>;
|
|
83
|
+
readonly name: Schema.optional<Schema.String>;
|
|
84
|
+
}>;
|
|
85
|
+
type SetSafeProposerParams = typeof SetSafeProposerParamsSchema.Type;
|
|
86
|
+
declare const SetSafeProposerResponseSchema: Schema.Struct<{
|
|
87
|
+
readonly agentWalletAddress: Schema.brand<Schema.String, "EvmAddress">;
|
|
88
|
+
readonly blockchain: Schema.Literals<readonly ["ethereum", "base"]>;
|
|
89
|
+
readonly intent: Schema.NullOr<Schema.String>;
|
|
90
|
+
readonly isProposer: Schema.Boolean;
|
|
91
|
+
readonly isSigner: Schema.Boolean;
|
|
92
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
93
|
+
readonly safeAddress: Schema.brand<Schema.String, "EvmAddress">;
|
|
94
|
+
}>;
|
|
95
|
+
type SetSafeProposerResponse = typeof SetSafeProposerResponseSchema.Type;
|
|
96
|
+
declare const EditAgentSafeMetadataParamsSchema: Schema.Struct<{
|
|
97
|
+
readonly intent: Schema.optional<Schema.String>;
|
|
98
|
+
readonly name: Schema.optional<Schema.String>;
|
|
99
|
+
}>;
|
|
100
|
+
type EditAgentSafeMetadataParams = typeof EditAgentSafeMetadataParamsSchema.Type;
|
|
225
101
|
//#endregion
|
|
226
|
-
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 };
|