@herd-labs/sdk 0.5.2 → 0.5.3
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/src/errors.js +1 -1
- package/dist/src/live/ActionsServiceLive.d.ts +2 -2
- package/dist/src/live/AgentSafesServiceLive.d.ts +2 -2
- package/dist/src/live/AgentWalletsServiceLive.d.ts +2 -2
- package/dist/src/live/AgentWorkflowsServiceLive.d.ts +2 -2
- package/dist/src/live/AuthServiceLive.d.ts +2 -2
- package/dist/src/live/BookmarksServiceLive.d.ts +2 -2
- package/dist/src/live/CodeBlocksServiceLive.d.ts +2 -2
- package/dist/src/live/CollectionsServiceLive.d.ts +2 -2
- package/dist/src/live/ContractsServiceLive.d.ts +2 -2
- package/dist/src/live/DocsServiceLive.d.ts +2 -2
- package/dist/src/live/DoubleClickServiceLive.js +13 -2
- package/dist/src/live/GroupsServiceLive.d.ts +2 -2
- package/dist/src/live/HalServiceLive.d.ts +2 -2
- package/dist/src/live/TransactionsServiceLive.d.ts +2 -2
- package/dist/src/live/WalletsServiceLive.d.ts +2 -2
- package/dist/src/schemas/actions.d.ts +4 -4
- package/dist/src/schemas/actions.js +3 -3
- package/dist/src/schemas/agent-wallets.d.ts +6 -6
- package/dist/src/schemas/agent-wallets.js +1 -1
- package/dist/src/schemas/auth.d.ts +1 -1
- package/dist/src/schemas/auth.js +1 -1
- package/dist/src/schemas/bookmarks.d.ts +4 -4
- package/dist/src/schemas/codeblocks.d.ts +2 -2
- package/dist/src/schemas/codeblocks.js +2 -2
- package/dist/src/schemas/collections.d.ts +3 -3
- package/dist/src/schemas/collections.js +3 -3
- package/dist/src/schemas/common.d.ts +6 -6
- package/dist/src/schemas/common.js +12 -6
- package/dist/src/schemas/contracts.d.ts +55 -55
- package/dist/src/schemas/contracts.js +21 -21
- package/dist/src/schemas/doubleclick.d.ts +16 -3
- package/dist/src/schemas/doubleclick.js +2 -1
- package/dist/src/schemas/groups.d.ts +7 -7
- package/dist/src/schemas/groups.js +5 -5
- package/dist/src/schemas/hal.d.ts +16 -16
- package/dist/src/schemas/hal.js +5 -5
- package/dist/src/schemas/transactions.d.ts +145 -145
- package/dist/src/schemas/transactions.js +52 -52
- package/dist/src/schemas/wallets.d.ts +137 -137
- package/dist/src/schemas/wallets.js +51 -51
- package/dist/src/services/DoubleClickService.d.ts +7 -1
- package/package.json +3 -3
package/dist/src/errors.js
CHANGED
|
@@ -9,7 +9,7 @@ import { Schema } from "effect";
|
|
|
9
9
|
var ServiceError = class extends Schema.TaggedErrorClass()("ServiceError", {
|
|
10
10
|
message: Schema.String,
|
|
11
11
|
metadata: Schema.Record(Schema.String, Schema.Unknown),
|
|
12
|
-
cause: Schema.optionalKey(Schema.Defect)
|
|
12
|
+
cause: Schema.optionalKey(Schema.Defect())
|
|
13
13
|
}) {};
|
|
14
14
|
var ActionNotFoundError = class extends Schema.TaggedErrorClass()("ActionNotFoundError", { id: Schema.String }) {};
|
|
15
15
|
var CodeBlockNotFoundError = class extends Schema.TaggedErrorClass()("CodeBlockNotFoundError", { id: Schema.String }) {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { HerdConfigService } from "../config.js";
|
|
2
2
|
import { ActionsService } from "../services/ActionsService.js";
|
|
3
3
|
import { Layer } from "effect";
|
|
4
|
-
import * as
|
|
4
|
+
import * as effect_unstable_http_HttpClient0 from "effect/unstable/http/HttpClient";
|
|
5
5
|
|
|
6
6
|
//#region src/live/ActionsServiceLive.d.ts
|
|
7
|
-
declare const ActionsServiceLive: Layer.Layer<ActionsService, never, HerdConfigService |
|
|
7
|
+
declare const ActionsServiceLive: Layer.Layer<ActionsService, never, HerdConfigService | effect_unstable_http_HttpClient0.HttpClient>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { ActionsServiceLive };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { HerdConfigService } from "../config.js";
|
|
2
2
|
import { AgentSafesService } from "../services/AgentSafesService.js";
|
|
3
3
|
import { Layer } from "effect";
|
|
4
|
-
import * as
|
|
4
|
+
import * as effect_unstable_http_HttpClient2 from "effect/unstable/http/HttpClient";
|
|
5
5
|
|
|
6
6
|
//#region src/live/AgentSafesServiceLive.d.ts
|
|
7
|
-
declare const AgentSafesServiceLive: Layer.Layer<AgentSafesService, never, HerdConfigService |
|
|
7
|
+
declare const AgentSafesServiceLive: Layer.Layer<AgentSafesService, never, HerdConfigService | effect_unstable_http_HttpClient2.HttpClient>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { AgentSafesServiceLive };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { HerdConfigService } from "../config.js";
|
|
2
2
|
import { AgentWalletsService } from "../services/AgentWalletsService.js";
|
|
3
3
|
import { Layer } from "effect";
|
|
4
|
-
import * as
|
|
4
|
+
import * as effect_unstable_http_HttpClient5 from "effect/unstable/http/HttpClient";
|
|
5
5
|
|
|
6
6
|
//#region src/live/AgentWalletsServiceLive.d.ts
|
|
7
|
-
declare const AgentWalletsServiceLive: Layer.Layer<AgentWalletsService, never, HerdConfigService |
|
|
7
|
+
declare const AgentWalletsServiceLive: Layer.Layer<AgentWalletsService, never, HerdConfigService | effect_unstable_http_HttpClient5.HttpClient>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { AgentWalletsServiceLive };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { HerdConfigService } from "../config.js";
|
|
2
2
|
import { AgentWorkflowsService } from "../services/AgentWorkflowsService.js";
|
|
3
3
|
import { Layer } from "effect";
|
|
4
|
-
import * as
|
|
4
|
+
import * as effect_unstable_http_HttpClient6 from "effect/unstable/http/HttpClient";
|
|
5
5
|
|
|
6
6
|
//#region src/live/AgentWorkflowsServiceLive.d.ts
|
|
7
|
-
declare const AgentWorkflowsServiceLive: Layer.Layer<AgentWorkflowsService, never, HerdConfigService |
|
|
7
|
+
declare const AgentWorkflowsServiceLive: Layer.Layer<AgentWorkflowsService, never, HerdConfigService | effect_unstable_http_HttpClient6.HttpClient>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { AgentWorkflowsServiceLive };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { HerdConfigService } from "../config.js";
|
|
2
2
|
import { AuthService } from "../services/AuthService.js";
|
|
3
3
|
import { Layer } from "effect";
|
|
4
|
-
import * as
|
|
4
|
+
import * as effect_unstable_http_HttpClient11 from "effect/unstable/http/HttpClient";
|
|
5
5
|
|
|
6
6
|
//#region src/live/AuthServiceLive.d.ts
|
|
7
|
-
declare const AuthServiceLive: Layer.Layer<AuthService, never, HerdConfigService |
|
|
7
|
+
declare const AuthServiceLive: Layer.Layer<AuthService, never, HerdConfigService | effect_unstable_http_HttpClient11.HttpClient>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { AuthServiceLive };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { HerdConfigService } from "../config.js";
|
|
2
2
|
import { BookmarksService } from "../services/BookmarksService.js";
|
|
3
3
|
import { Layer } from "effect";
|
|
4
|
-
import * as
|
|
4
|
+
import * as effect_unstable_http_HttpClient7 from "effect/unstable/http/HttpClient";
|
|
5
5
|
|
|
6
6
|
//#region src/live/BookmarksServiceLive.d.ts
|
|
7
|
-
declare const BookmarksServiceLive: Layer.Layer<BookmarksService, never, HerdConfigService |
|
|
7
|
+
declare const BookmarksServiceLive: Layer.Layer<BookmarksService, never, HerdConfigService | effect_unstable_http_HttpClient7.HttpClient>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { BookmarksServiceLive };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { HerdConfigService } from "../config.js";
|
|
2
2
|
import { CodeBlocksService } from "../services/CodeBlocksService.js";
|
|
3
3
|
import { Layer } from "effect";
|
|
4
|
-
import * as
|
|
4
|
+
import * as effect_unstable_http_HttpClient10 from "effect/unstable/http/HttpClient";
|
|
5
5
|
|
|
6
6
|
//#region src/live/CodeBlocksServiceLive.d.ts
|
|
7
|
-
declare const CodeBlocksServiceLive: Layer.Layer<CodeBlocksService, never, HerdConfigService |
|
|
7
|
+
declare const CodeBlocksServiceLive: Layer.Layer<CodeBlocksService, never, HerdConfigService | effect_unstable_http_HttpClient10.HttpClient>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { CodeBlocksServiceLive };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { HerdConfigService } from "../config.js";
|
|
2
2
|
import { CollectionsService } from "../services/CollectionsService.js";
|
|
3
3
|
import { Layer } from "effect";
|
|
4
|
-
import * as
|
|
4
|
+
import * as effect_unstable_http_HttpClient13 from "effect/unstable/http/HttpClient";
|
|
5
5
|
|
|
6
6
|
//#region src/live/CollectionsServiceLive.d.ts
|
|
7
|
-
declare const CollectionsServiceLive: Layer.Layer<CollectionsService, never, HerdConfigService |
|
|
7
|
+
declare const CollectionsServiceLive: Layer.Layer<CollectionsService, never, HerdConfigService | effect_unstable_http_HttpClient13.HttpClient>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { CollectionsServiceLive };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { HerdConfigService } from "../config.js";
|
|
2
2
|
import { ContractsService } from "../services/ContractsService.js";
|
|
3
3
|
import { Layer } from "effect";
|
|
4
|
-
import * as
|
|
4
|
+
import * as effect_unstable_http_HttpClient9 from "effect/unstable/http/HttpClient";
|
|
5
5
|
|
|
6
6
|
//#region src/live/ContractsServiceLive.d.ts
|
|
7
|
-
declare const ContractsServiceLive: Layer.Layer<ContractsService, never, HerdConfigService |
|
|
7
|
+
declare const ContractsServiceLive: Layer.Layer<ContractsService, never, HerdConfigService | effect_unstable_http_HttpClient9.HttpClient>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { ContractsServiceLive };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { HerdConfigService } from "../config.js";
|
|
2
2
|
import { DocsService } from "../services/DocsService.js";
|
|
3
3
|
import { Layer } from "effect";
|
|
4
|
-
import * as
|
|
4
|
+
import * as effect_unstable_http_HttpClient8 from "effect/unstable/http/HttpClient";
|
|
5
5
|
|
|
6
6
|
//#region src/live/DocsServiceLive.d.ts
|
|
7
|
-
declare const DocsServiceLive: Layer.Layer<DocsService, never, HerdConfigService |
|
|
7
|
+
declare const DocsServiceLive: Layer.Layer<DocsService, never, HerdConfigService | effect_unstable_http_HttpClient8.HttpClient>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { DocsServiceLive };
|
|
@@ -40,6 +40,11 @@ const DoubleClickServiceLive = Layer.effect(DoubleClickService, Effect.gen(funct
|
|
|
40
40
|
methodology: params.methodology
|
|
41
41
|
}, "Failed to convert slot to fixed"),
|
|
42
42
|
convertSlotToNotPriced: (params) => patchJson(`/v1/param-queries/slots/${params.targetType}/${params.targetId}/${params.slotName}/to-not-priced`, { methodology: params.methodology }, "Failed to convert slot to not priced"),
|
|
43
|
+
createForumThread: (params) => postJson("/v1/forum/threads", {
|
|
44
|
+
body: params.body,
|
|
45
|
+
agentName: params.agentName,
|
|
46
|
+
agentModel: params.agentModel
|
|
47
|
+
}, "Failed to create forum thread"),
|
|
43
48
|
createIssuer: (params) => postJson("/v1/display-tokens/issuers", params, "Failed to create issuer"),
|
|
44
49
|
createParamQuery: (params) => postJson("/v1/param-queries/", params, "Failed to create param query"),
|
|
45
50
|
executeParamQuery: (params) => postJson(`/v1/param-queries/${params.queryId}/execute`, {
|
|
@@ -57,6 +62,8 @@ const DoubleClickServiceLive = Layer.effect(DoubleClickService, Effect.gen(funct
|
|
|
57
62
|
targets: params.targets
|
|
58
63
|
}, "Failed to repoint param query to latest base"),
|
|
59
64
|
getAssembledNode: (params) => getJson(`/v1/balance-graph/nodes/${params.nodeId}/assembled`, void 0, "Failed to get assembled node"),
|
|
65
|
+
getForumItem: (params) => getJson(`/v1/forum/items/${params.itemId}`, void 0, "Failed to get forum item"),
|
|
66
|
+
getForumThread: (rootThreadId) => getJson(`/v1/forum/threads/${rootThreadId}`, void 0, "Failed to get forum thread"),
|
|
60
67
|
getIssuer: (slug) => getJson(`/v1/display-tokens/issuers/${slug}`, void 0, "Failed to get issuer"),
|
|
61
68
|
getLogo: (params) => getJson("/v1/display-tokens/logos", params, "Failed to get logo"),
|
|
62
69
|
getLogoBatch: (params) => postJson("/v1/display-tokens/logos/batch", params, "Failed to get logo batch"),
|
|
@@ -75,6 +82,8 @@ const DoubleClickServiceLive = Layer.effect(DoubleClickService, Effect.gen(funct
|
|
|
75
82
|
integrityCheck: (params) => getJson(`/v1/integrity/${params.key}`, { includeDrafts: params.includeDrafts }, "Failed to run integrity check"),
|
|
76
83
|
integritySummary: (params) => getJson("/v1/integrity/summary", { includeDrafts: params?.includeDrafts }, "Failed to get integrity summary"),
|
|
77
84
|
listCuratedTokens: (params) => getJson("/v1/display-tokens/curated", params, "Failed to list curated tokens"),
|
|
85
|
+
listForumItemVersions: (params) => getJson(`/v1/forum/items/${params.itemId}/versions`, void 0, "Failed to list forum item versions"),
|
|
86
|
+
listForumThreads: getJson("/v1/forum/threads", void 0, "Failed to list forum threads"),
|
|
78
87
|
listEdgesForNode: (params) => getJson(`/v1/balance-graph/nodes/${params.nodeId}/edges`, { adminLive: params.adminLive }, "Failed to list graph node edges"),
|
|
79
88
|
listIssuerTokenLinks: getJson("/v1/display-tokens/issuer-token-links", void 0, "Failed to list issuer token links"),
|
|
80
89
|
listIssuerTokens: (params) => getJson(`/v1/display-tokens/issuers/${params.slug}/tokens`, { include: params.include }, "Failed to list issuer tokens"),
|
|
@@ -92,8 +101,9 @@ const DoubleClickServiceLive = Layer.effect(DoubleClickService, Effect.gen(funct
|
|
|
92
101
|
adminLive: params.adminLive
|
|
93
102
|
}, "Failed to refresh node slots"),
|
|
94
103
|
refreshSingleToken: (params) => postJsonQuery(`/v1/display-tokens/tokens/${params.nodeId}/refresh`, {
|
|
95
|
-
|
|
96
|
-
maxAgeMs: params.maxAgeMs
|
|
104
|
+
adminLive: params.adminLive,
|
|
105
|
+
maxAgeMs: params.maxAgeMs,
|
|
106
|
+
side: params.side
|
|
97
107
|
}, {}, "Failed to refresh token"),
|
|
98
108
|
registerToken: (params) => postJson("/v1/display-tokens/register", params, "Failed to register token"),
|
|
99
109
|
removeSlot: (params) => deleteJson(`/v1/param-queries/slots/${params.targetType}/${params.targetId}/${params.slotName}`, "Failed to remove slot"),
|
|
@@ -112,6 +122,7 @@ const DoubleClickServiceLive = Layer.effect(DoubleClickService, Effect.gen(funct
|
|
|
112
122
|
}, "Failed to submit research graph"),
|
|
113
123
|
traverseDeep: (params) => postJson("/v1/balance-graph/traversal/deep", params, "Failed to traverse graph"),
|
|
114
124
|
traverseDirectional: (params) => postJson("/v1/balance-graph/traversal/directional", params, "Failed to traverse directional graph"),
|
|
125
|
+
updateForumItem: (params) => patchJson(`/v1/forum/items/${params.itemId}`, { body: params.body }, "Failed to update forum item"),
|
|
115
126
|
updateIssuer: (params) => {
|
|
116
127
|
const { slug, ...body } = params;
|
|
117
128
|
return patchJson(`/v1/display-tokens/issuers/${slug}`, body, "Failed to update issuer");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { HerdConfigService } from "../config.js";
|
|
2
2
|
import { GroupsService } from "../services/GroupsService.js";
|
|
3
3
|
import { Layer } from "effect";
|
|
4
|
-
import * as
|
|
4
|
+
import * as effect_unstable_http_HttpClient0 from "effect/unstable/http/HttpClient";
|
|
5
5
|
|
|
6
6
|
//#region src/live/GroupsServiceLive.d.ts
|
|
7
|
-
declare const GroupsServiceLive: Layer.Layer<GroupsService, never, HerdConfigService |
|
|
7
|
+
declare const GroupsServiceLive: Layer.Layer<GroupsService, never, HerdConfigService | effect_unstable_http_HttpClient0.HttpClient>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { GroupsServiceLive };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { HerdConfigService } from "../config.js";
|
|
2
2
|
import { HalService } from "../services/HalService.js";
|
|
3
3
|
import { Layer } from "effect";
|
|
4
|
-
import * as
|
|
4
|
+
import * as effect_unstable_http_HttpClient14 from "effect/unstable/http/HttpClient";
|
|
5
5
|
|
|
6
6
|
//#region src/live/HalServiceLive.d.ts
|
|
7
|
-
declare const HalServiceLive: Layer.Layer<HalService, never, HerdConfigService |
|
|
7
|
+
declare const HalServiceLive: Layer.Layer<HalService, never, HerdConfigService | effect_unstable_http_HttpClient14.HttpClient>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { HalServiceLive };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { HerdConfigService } from "../config.js";
|
|
2
2
|
import { TransactionsService } from "../services/TransactionsService.js";
|
|
3
3
|
import { Layer } from "effect";
|
|
4
|
-
import * as
|
|
4
|
+
import * as effect_unstable_http_HttpClient4 from "effect/unstable/http/HttpClient";
|
|
5
5
|
|
|
6
6
|
//#region src/live/TransactionsServiceLive.d.ts
|
|
7
|
-
declare const TransactionsServiceLive: Layer.Layer<TransactionsService, never, HerdConfigService |
|
|
7
|
+
declare const TransactionsServiceLive: Layer.Layer<TransactionsService, never, HerdConfigService | effect_unstable_http_HttpClient4.HttpClient>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { TransactionsServiceLive };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { HerdConfigService } from "../config.js";
|
|
2
2
|
import { WalletsService } from "../services/WalletsService.js";
|
|
3
3
|
import { Layer } from "effect";
|
|
4
|
-
import * as
|
|
4
|
+
import * as effect_unstable_http_HttpClient3 from "effect/unstable/http/HttpClient";
|
|
5
5
|
|
|
6
6
|
//#region src/live/WalletsServiceLive.d.ts
|
|
7
|
-
declare const WalletsServiceLive: Layer.Layer<WalletsService, never, HerdConfigService |
|
|
7
|
+
declare const WalletsServiceLive: Layer.Layer<WalletsService, never, HerdConfigService | effect_unstable_http_HttpClient3.HttpClient>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { WalletsServiceLive };
|
|
@@ -37,8 +37,8 @@ declare const ActionsSearchParamsSchema: Schema.Struct<{
|
|
|
37
37
|
readonly name: Schema.optional<Schema.String>;
|
|
38
38
|
readonly expressionType: Schema.optional<Schema.Literals<readonly ["action", "adapter"]>>;
|
|
39
39
|
}>>;
|
|
40
|
-
readonly limit: Schema.
|
|
41
|
-
readonly offset: Schema.
|
|
40
|
+
readonly limit: Schema.Finite;
|
|
41
|
+
readonly offset: Schema.Finite;
|
|
42
42
|
readonly scope: Schema.$Array<Schema.Literals<readonly ["yours", "all_published", "verified"]>>;
|
|
43
43
|
}>;
|
|
44
44
|
type ActionsSearchParams = typeof ActionsSearchParamsSchema.Type;
|
|
@@ -58,7 +58,7 @@ declare const ActionsSearchResponseSchema: Schema.Struct<{
|
|
|
58
58
|
readonly name: Schema.String;
|
|
59
59
|
}>>;
|
|
60
60
|
readonly nextCursor: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
61
|
-
readonly totalCount: Schema.optional<Schema.
|
|
61
|
+
readonly totalCount: Schema.optional<Schema.Finite>;
|
|
62
62
|
}>;
|
|
63
63
|
type ActionsSearchResponse = typeof ActionsSearchResponseSchema.Type;
|
|
64
64
|
declare const ActionVersionsResponseSchema: Schema.Struct<{
|
|
@@ -137,7 +137,7 @@ type RelatedAdaptersResponse = typeof RelatedAdaptersResponseSchema.Type;
|
|
|
137
137
|
declare const RelatedAdaptersSearchParamsSchema: Schema.Struct<{
|
|
138
138
|
readonly contracts: Schema.$Array<Schema.Struct<{
|
|
139
139
|
readonly address: Schema.brand<Schema.String, "EvmAddress">;
|
|
140
|
-
readonly blockchain: Schema.optional<Schema.Literals<readonly ["ethereum", "base"]>>;
|
|
140
|
+
readonly blockchain: Schema.optional<Schema.Literals<readonly ["ethereum", "base", "bsc", "arbitrum", "monad"]>>;
|
|
141
141
|
readonly functionSignatures: Schema.optional<Schema.$Array<Schema.String>>;
|
|
142
142
|
}>>;
|
|
143
143
|
readonly scope: Schema.$Array<Schema.Literals<readonly ["yours", "verified"]>>;
|
|
@@ -29,11 +29,11 @@ const ActionsSearchParamsSchema = Schema.Struct({
|
|
|
29
29
|
name: Schema.optional(Schema.String),
|
|
30
30
|
expressionType: Schema.optional(Schema.Literals(["action", "adapter"]))
|
|
31
31
|
})),
|
|
32
|
-
limit: Schema.
|
|
32
|
+
limit: Schema.Finite.check(Schema.isBetween({
|
|
33
33
|
minimum: 1,
|
|
34
34
|
maximum: 100
|
|
35
35
|
})),
|
|
36
|
-
offset: Schema.
|
|
36
|
+
offset: Schema.Finite,
|
|
37
37
|
scope: Schema.Array(Schema.Literals([
|
|
38
38
|
"yours",
|
|
39
39
|
"all_published",
|
|
@@ -43,7 +43,7 @@ const ActionsSearchParamsSchema = Schema.Struct({
|
|
|
43
43
|
const ActionsSearchResponseSchema = Schema.Struct({
|
|
44
44
|
items: Schema.Array(ActionSchema),
|
|
45
45
|
nextCursor: Schema.optional(Schema.NullOr(Schema.String)),
|
|
46
|
-
totalCount: Schema.optional(Schema.
|
|
46
|
+
totalCount: Schema.optional(Schema.Finite)
|
|
47
47
|
});
|
|
48
48
|
const ActionVersionsResponseSchema = Schema.Struct({ versionsByActionId: Schema.Record(Schema.String, Schema.Array(ActionVersionSchema)) });
|
|
49
49
|
const RelatedAdapterItemSchema = Schema.Struct({
|
|
@@ -10,7 +10,7 @@ declare const AgentWalletSchema: Schema.Struct<{
|
|
|
10
10
|
}>;
|
|
11
11
|
type AgentWallet = typeof AgentWalletSchema.Type;
|
|
12
12
|
declare const AgentWalletSafeSchema: Schema.Struct<{
|
|
13
|
-
readonly blockchain: Schema.Literals<readonly ["ethereum", "base"]>;
|
|
13
|
+
readonly blockchain: Schema.Literals<readonly ["ethereum", "base", "bsc", "arbitrum", "monad"]>;
|
|
14
14
|
readonly intent: Schema.NullOr<Schema.String>;
|
|
15
15
|
readonly isProposer: Schema.Boolean;
|
|
16
16
|
readonly isSigner: Schema.Boolean;
|
|
@@ -28,7 +28,7 @@ declare const LinkedAgentWalletSchema: Schema.Struct<{
|
|
|
28
28
|
}>;
|
|
29
29
|
type LinkedAgentWallet = typeof LinkedAgentWalletSchema.Type;
|
|
30
30
|
declare const AgentSafeMetadataSchema: Schema.Struct<{
|
|
31
|
-
readonly blockchain: Schema.Literals<readonly ["ethereum", "base"]>;
|
|
31
|
+
readonly blockchain: Schema.Literals<readonly ["ethereum", "base", "bsc", "arbitrum", "monad"]>;
|
|
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">;
|
|
@@ -50,7 +50,7 @@ declare const AgentWalletsListSchema: Schema.Struct<{
|
|
|
50
50
|
type AgentWalletsList = typeof AgentWalletsListSchema.Type;
|
|
51
51
|
declare const AgentWalletSafesListSchema: Schema.Struct<{
|
|
52
52
|
readonly safes: Schema.$Array<Schema.Struct<{
|
|
53
|
-
readonly blockchain: Schema.Literals<readonly ["ethereum", "base"]>;
|
|
53
|
+
readonly blockchain: Schema.Literals<readonly ["ethereum", "base", "bsc", "arbitrum", "monad"]>;
|
|
54
54
|
readonly intent: Schema.NullOr<Schema.String>;
|
|
55
55
|
readonly isProposer: Schema.Boolean;
|
|
56
56
|
readonly isSigner: Schema.Boolean;
|
|
@@ -60,7 +60,7 @@ declare const AgentWalletSafesListSchema: Schema.Struct<{
|
|
|
60
60
|
}>;
|
|
61
61
|
type AgentWalletSafesList = typeof AgentWalletSafesListSchema.Type;
|
|
62
62
|
declare const AgentSafeSchema: Schema.Struct<{
|
|
63
|
-
readonly blockchain: Schema.Literals<readonly ["ethereum", "base"]>;
|
|
63
|
+
readonly blockchain: Schema.Literals<readonly ["ethereum", "base", "bsc", "arbitrum", "monad"]>;
|
|
64
64
|
readonly intent: Schema.NullOr<Schema.String>;
|
|
65
65
|
readonly linkedAgentWallets: Schema.$Array<Schema.Struct<{
|
|
66
66
|
readonly address: Schema.brand<Schema.String, "EvmAddress">;
|
|
@@ -74,7 +74,7 @@ declare const AgentSafeSchema: Schema.Struct<{
|
|
|
74
74
|
readonly owners: Schema.$Array<Schema.brand<Schema.String, "EvmAddress">>;
|
|
75
75
|
readonly safeAddress: Schema.brand<Schema.String, "EvmAddress">;
|
|
76
76
|
readonly safeUrl: Schema.String;
|
|
77
|
-
readonly threshold: Schema.
|
|
77
|
+
readonly threshold: Schema.Finite;
|
|
78
78
|
}>;
|
|
79
79
|
type AgentSafe = typeof AgentSafeSchema.Type;
|
|
80
80
|
declare const SetSafeProposerParamsSchema: Schema.Struct<{
|
|
@@ -85,7 +85,7 @@ declare const SetSafeProposerParamsSchema: Schema.Struct<{
|
|
|
85
85
|
type SetSafeProposerParams = typeof SetSafeProposerParamsSchema.Type;
|
|
86
86
|
declare const SetSafeProposerResponseSchema: Schema.Struct<{
|
|
87
87
|
readonly agentWalletAddress: Schema.brand<Schema.String, "EvmAddress">;
|
|
88
|
-
readonly blockchain: Schema.Literals<readonly ["ethereum", "base"]>;
|
|
88
|
+
readonly blockchain: Schema.Literals<readonly ["ethereum", "base", "bsc", "arbitrum", "monad"]>;
|
|
89
89
|
readonly intent: Schema.NullOr<Schema.String>;
|
|
90
90
|
readonly isProposer: Schema.Boolean;
|
|
91
91
|
readonly isSigner: Schema.Boolean;
|
|
@@ -43,7 +43,7 @@ const AgentSafeSchema = Schema.Struct({
|
|
|
43
43
|
owners: Schema.Array(EvmAddressSchema),
|
|
44
44
|
safeAddress: EvmAddressSchema,
|
|
45
45
|
safeUrl: Schema.String,
|
|
46
|
-
threshold: Schema.
|
|
46
|
+
threshold: Schema.Finite
|
|
47
47
|
});
|
|
48
48
|
const SetSafeProposerParamsSchema = Schema.Struct({
|
|
49
49
|
agentWalletAddress: EvmAddressSchema,
|
|
@@ -18,7 +18,7 @@ declare const WhoamiResponseSchema: Schema.Struct<{
|
|
|
18
18
|
type WhoamiResponse = typeof WhoamiResponseSchema.Type;
|
|
19
19
|
declare const TokenResponseSchema: Schema.Struct<{
|
|
20
20
|
readonly accessToken: Schema.String;
|
|
21
|
-
readonly expiresIn: Schema.
|
|
21
|
+
readonly expiresIn: Schema.Finite;
|
|
22
22
|
readonly refreshToken: Schema.String;
|
|
23
23
|
readonly tokenType: Schema.String;
|
|
24
24
|
}>;
|
package/dist/src/schemas/auth.js
CHANGED
|
@@ -69,12 +69,12 @@ declare const BookmarkResponseSchema: Schema.Struct<{
|
|
|
69
69
|
type BookmarkResponse = typeof BookmarkResponseSchema.Type;
|
|
70
70
|
declare const AddContractBookmarkParamsSchema: Schema.Struct<{
|
|
71
71
|
readonly address: Schema.brand<Schema.String, "EvmAddress">;
|
|
72
|
-
readonly blockchain: Schema.Literals<readonly ["ethereum", "base"]>;
|
|
72
|
+
readonly blockchain: Schema.Literals<readonly ["ethereum", "base", "bsc", "arbitrum", "monad"]>;
|
|
73
73
|
readonly label: Schema.optional<Schema.String>;
|
|
74
74
|
}>;
|
|
75
75
|
type AddContractBookmarkParams = typeof AddContractBookmarkParamsSchema.Type;
|
|
76
76
|
declare const AddTransactionBookmarkParamsSchema: Schema.Struct<{
|
|
77
|
-
readonly blockchain: Schema.Literals<readonly ["ethereum", "base"]>;
|
|
77
|
+
readonly blockchain: Schema.Literals<readonly ["ethereum", "base", "bsc", "arbitrum", "monad"]>;
|
|
78
78
|
readonly label: Schema.optional<Schema.String>;
|
|
79
79
|
readonly txHash: Schema.String;
|
|
80
80
|
}>;
|
|
@@ -86,7 +86,7 @@ declare const AddWalletBookmarkParamsSchema: Schema.Struct<{
|
|
|
86
86
|
type AddWalletBookmarkParams = typeof AddWalletBookmarkParamsSchema.Type;
|
|
87
87
|
declare const UpdateBookmarkLabelParamsSchema: Schema.Struct<{
|
|
88
88
|
readonly address: Schema.optional<Schema.String>;
|
|
89
|
-
readonly blockchain: Schema.optional<Schema.Literals<readonly ["ethereum", "base"]>>;
|
|
89
|
+
readonly blockchain: Schema.optional<Schema.Literals<readonly ["ethereum", "base", "bsc", "arbitrum", "monad"]>>;
|
|
90
90
|
readonly label: Schema.NullOr<Schema.String>;
|
|
91
91
|
readonly objectType: Schema.Literals<readonly ["contract", "transaction", "wallet"]>;
|
|
92
92
|
readonly txHash: Schema.optional<Schema.String>;
|
|
@@ -94,7 +94,7 @@ declare const UpdateBookmarkLabelParamsSchema: Schema.Struct<{
|
|
|
94
94
|
type UpdateBookmarkLabelParams = typeof UpdateBookmarkLabelParamsSchema.Type;
|
|
95
95
|
declare const DeleteBookmarkParamsSchema: Schema.Struct<{
|
|
96
96
|
readonly address: Schema.optional<Schema.String>;
|
|
97
|
-
readonly blockchain: Schema.optional<Schema.Literals<readonly ["ethereum", "base"]>>;
|
|
97
|
+
readonly blockchain: Schema.optional<Schema.Literals<readonly ["ethereum", "base", "bsc", "arbitrum", "monad"]>>;
|
|
98
98
|
readonly objectType: Schema.Literals<readonly ["contract", "transaction", "wallet"]>;
|
|
99
99
|
readonly txHash: Schema.optional<Schema.String>;
|
|
100
100
|
}>;
|
|
@@ -45,7 +45,7 @@ declare const CodeBlocksSearchParamsSchema: Schema.Struct<{
|
|
|
45
45
|
readonly filters: Schema.optional<Schema.Struct<{
|
|
46
46
|
readonly name: Schema.optional<Schema.String>;
|
|
47
47
|
}>>;
|
|
48
|
-
readonly limit: Schema.
|
|
48
|
+
readonly limit: Schema.Finite;
|
|
49
49
|
readonly scope: Schema.Literals<readonly ["user", "public"]>;
|
|
50
50
|
}>;
|
|
51
51
|
type CodeBlocksSearchParams = typeof CodeBlocksSearchParamsSchema.Type;
|
|
@@ -98,7 +98,7 @@ declare const CodeBlockLogEntrySchema: Schema.Struct<{
|
|
|
98
98
|
type CodeBlockLogEntry = typeof CodeBlockLogEntrySchema.Type;
|
|
99
99
|
declare const CodeBlockExecuteResponseSchema: Schema.Struct<{
|
|
100
100
|
readonly error: Schema.optional<Schema.Struct<{
|
|
101
|
-
readonly status: Schema.optional<Schema.
|
|
101
|
+
readonly status: Schema.optional<Schema.Finite>;
|
|
102
102
|
readonly message: Schema.String;
|
|
103
103
|
readonly body: Schema.optional<Schema.Unknown>;
|
|
104
104
|
}>>;
|
|
@@ -27,7 +27,7 @@ const CodeBlockDefinitionSchema = Schema.Struct({
|
|
|
27
27
|
const CodeBlocksSearchParamsSchema = Schema.Struct({
|
|
28
28
|
cursor: Schema.optional(Schema.String),
|
|
29
29
|
filters: Schema.optional(Schema.Struct({ name: Schema.optional(Schema.String) })),
|
|
30
|
-
limit: Schema.
|
|
30
|
+
limit: Schema.Finite,
|
|
31
31
|
scope: Schema.Literals(["user", "public"])
|
|
32
32
|
});
|
|
33
33
|
const CodeBlocksSearchResponseSchema = Schema.Struct({
|
|
@@ -55,7 +55,7 @@ const CodeBlockLogEntrySchema = Schema.Struct({
|
|
|
55
55
|
});
|
|
56
56
|
const CodeBlockExecuteResponseSchema = Schema.Struct({
|
|
57
57
|
error: Schema.optional(Schema.Struct({
|
|
58
|
-
status: Schema.optional(Schema.
|
|
58
|
+
status: Schema.optional(Schema.Finite),
|
|
59
59
|
message: Schema.String,
|
|
60
60
|
body: Schema.optional(Schema.Unknown)
|
|
61
61
|
})),
|
|
@@ -57,8 +57,8 @@ declare const CollectionsSearchParamsSchema: Schema.Struct<{
|
|
|
57
57
|
readonly filters: Schema.optional<Schema.Struct<{
|
|
58
58
|
readonly name: Schema.optional<Schema.String>;
|
|
59
59
|
}>>;
|
|
60
|
-
readonly limit: Schema.
|
|
61
|
-
readonly offset: Schema.
|
|
60
|
+
readonly limit: Schema.Finite;
|
|
61
|
+
readonly offset: Schema.Finite;
|
|
62
62
|
readonly scope: Schema.optional<Schema.$Array<Schema.Literals<readonly ["yours", "all", "verified"]>>>;
|
|
63
63
|
}>;
|
|
64
64
|
type CollectionsSearchParams = typeof CollectionsSearchParamsSchema.Type;
|
|
@@ -83,7 +83,7 @@ declare const CollectionsSearchResponseSchema: Schema.Struct<{
|
|
|
83
83
|
}>>;
|
|
84
84
|
readonly name: Schema.String;
|
|
85
85
|
}>>;
|
|
86
|
-
readonly total: Schema.
|
|
86
|
+
readonly total: Schema.Finite;
|
|
87
87
|
}>;
|
|
88
88
|
type CollectionsSearchResponse = typeof CollectionsSearchResponseSchema.Type;
|
|
89
89
|
declare const CreateCollectionParamsSchema: Schema.Struct<{
|
|
@@ -26,8 +26,8 @@ const CollectionSchema = Schema.Struct({
|
|
|
26
26
|
});
|
|
27
27
|
const CollectionsSearchParamsSchema = Schema.Struct({
|
|
28
28
|
filters: Schema.optional(Schema.Struct({ name: Schema.optional(Schema.String) })),
|
|
29
|
-
limit: Schema.
|
|
30
|
-
offset: Schema.
|
|
29
|
+
limit: Schema.Finite,
|
|
30
|
+
offset: Schema.Finite,
|
|
31
31
|
scope: Schema.optional(Schema.Array(Schema.Literals([
|
|
32
32
|
"yours",
|
|
33
33
|
"all",
|
|
@@ -36,7 +36,7 @@ const CollectionsSearchParamsSchema = Schema.Struct({
|
|
|
36
36
|
});
|
|
37
37
|
const CollectionsSearchResponseSchema = Schema.Struct({
|
|
38
38
|
items: Schema.Array(CollectionSchema),
|
|
39
|
-
total: Schema.
|
|
39
|
+
total: Schema.Finite
|
|
40
40
|
});
|
|
41
41
|
const CreateCollectionParamsSchema = Schema.Struct({
|
|
42
42
|
description: Schema.optional(Schema.String),
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
2
|
|
|
3
3
|
//#region src/schemas/common.d.ts
|
|
4
|
-
declare const BlockchainSchema: Schema.Literals<readonly ["ethereum", "base"]>;
|
|
4
|
+
declare const BlockchainSchema: Schema.Literals<readonly ["ethereum", "base", "bsc", "arbitrum", "monad"]>;
|
|
5
5
|
type Blockchain = typeof BlockchainSchema.Type;
|
|
6
6
|
declare const EvmAddressSchema: Schema.brand<Schema.String, "EvmAddress">;
|
|
7
7
|
type EvmAddress = typeof EvmAddressSchema.Type;
|
|
8
8
|
declare const PaginationParamsSchema: Schema.Struct<{
|
|
9
|
-
readonly afterBlocknumber: Schema.optional<Schema.
|
|
10
|
-
readonly afterTimestamp: Schema.optional<Schema.
|
|
11
|
-
readonly beforeBlocknumber: Schema.optional<Schema.
|
|
12
|
-
readonly beforeTimestamp: Schema.optional<Schema.
|
|
13
|
-
readonly page: Schema.optional<Schema.
|
|
9
|
+
readonly afterBlocknumber: Schema.optional<Schema.Finite>;
|
|
10
|
+
readonly afterTimestamp: Schema.optional<Schema.Finite>;
|
|
11
|
+
readonly beforeBlocknumber: Schema.optional<Schema.Finite>;
|
|
12
|
+
readonly beforeTimestamp: Schema.optional<Schema.Finite>;
|
|
13
|
+
readonly page: Schema.optional<Schema.Finite>;
|
|
14
14
|
}>;
|
|
15
15
|
type PaginationParams = typeof PaginationParamsSchema.Type;
|
|
16
16
|
//#endregion
|
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
2
|
|
|
3
3
|
//#region src/schemas/common.ts
|
|
4
|
-
const BlockchainSchema = Schema.Literals([
|
|
4
|
+
const BlockchainSchema = Schema.Literals([
|
|
5
|
+
"ethereum",
|
|
6
|
+
"base",
|
|
7
|
+
"bsc",
|
|
8
|
+
"arbitrum",
|
|
9
|
+
"monad"
|
|
10
|
+
]);
|
|
5
11
|
const EvmAddressSchema = Schema.String.check(Schema.isPattern(/^0x[0-9a-fA-F]{40}$/u)).pipe(Schema.brand("EvmAddress"));
|
|
6
12
|
const PaginationParamsSchema = Schema.Struct({
|
|
7
|
-
afterBlocknumber: Schema.optional(Schema.
|
|
8
|
-
afterTimestamp: Schema.optional(Schema.
|
|
9
|
-
beforeBlocknumber: Schema.optional(Schema.
|
|
10
|
-
beforeTimestamp: Schema.optional(Schema.
|
|
11
|
-
page: Schema.optional(Schema.
|
|
13
|
+
afterBlocknumber: Schema.optional(Schema.Finite),
|
|
14
|
+
afterTimestamp: Schema.optional(Schema.Finite),
|
|
15
|
+
beforeBlocknumber: Schema.optional(Schema.Finite),
|
|
16
|
+
beforeTimestamp: Schema.optional(Schema.Finite),
|
|
17
|
+
page: Schema.optional(Schema.Finite)
|
|
12
18
|
});
|
|
13
19
|
|
|
14
20
|
//#endregion
|