@herd-labs/sdk 0.3.0 → 0.3.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.
@@ -1,9 +1,9 @@
1
1
  import { HerdConfig } from "../config.js";
2
2
  import { AgentSafesService } from "../services/AgentSafesService.js";
3
3
  import { Layer } from "effect";
4
- import * as _effect_platform_HttpClient2 from "@effect/platform/HttpClient";
4
+ import * as _effect_platform_HttpClient1 from "@effect/platform/HttpClient";
5
5
 
6
6
  //#region src/live/AgentSafesServiceLive.d.ts
7
- declare const AgentSafesServiceLive: Layer.Layer<AgentSafesService, never, HerdConfig | _effect_platform_HttpClient2.HttpClient>;
7
+ declare const AgentSafesServiceLive: Layer.Layer<AgentSafesService, never, HerdConfig | _effect_platform_HttpClient1.HttpClient>;
8
8
  //#endregion
9
9
  export { AgentSafesServiceLive };
@@ -1,9 +1,9 @@
1
1
  import { HerdConfig } from "../config.js";
2
2
  import { AgentWalletsService } from "../services/AgentWalletsService.js";
3
3
  import { Layer } from "effect";
4
- import * as _effect_platform_HttpClient1 from "@effect/platform/HttpClient";
4
+ import * as _effect_platform_HttpClient11 from "@effect/platform/HttpClient";
5
5
 
6
6
  //#region src/live/AgentWalletsServiceLive.d.ts
7
- declare const AgentWalletsServiceLive: Layer.Layer<AgentWalletsService, never, HerdConfig | _effect_platform_HttpClient1.HttpClient>;
7
+ declare const AgentWalletsServiceLive: Layer.Layer<AgentWalletsService, never, HerdConfig | _effect_platform_HttpClient11.HttpClient>;
8
8
  //#endregion
9
9
  export { AgentWalletsServiceLive };
@@ -1,9 +1,9 @@
1
1
  import { HerdConfig } from "../config.js";
2
2
  import { AgentWorkflowsService } from "../services/AgentWorkflowsService.js";
3
3
  import { Layer } from "effect";
4
- import * as _effect_platform_HttpClient3 from "@effect/platform/HttpClient";
4
+ import * as _effect_platform_HttpClient12 from "@effect/platform/HttpClient";
5
5
 
6
6
  //#region src/live/AgentWorkflowsServiceLive.d.ts
7
- declare const AgentWorkflowsServiceLive: Layer.Layer<AgentWorkflowsService, never, HerdConfig | _effect_platform_HttpClient3.HttpClient>;
7
+ declare const AgentWorkflowsServiceLive: Layer.Layer<AgentWorkflowsService, never, HerdConfig | _effect_platform_HttpClient12.HttpClient>;
8
8
  //#endregion
9
9
  export { AgentWorkflowsServiceLive };
@@ -1,9 +1,9 @@
1
1
  import { HerdConfig } from "../config.js";
2
2
  import { AuthService } from "../services/AuthService.js";
3
3
  import { Layer } from "effect";
4
- import * as _effect_platform_HttpClient4 from "@effect/platform/HttpClient";
4
+ import * as _effect_platform_HttpClient13 from "@effect/platform/HttpClient";
5
5
 
6
6
  //#region src/live/AuthServiceLive.d.ts
7
- declare const AuthServiceLive: Layer.Layer<AuthService, never, HerdConfig | _effect_platform_HttpClient4.HttpClient>;
7
+ declare const AuthServiceLive: Layer.Layer<AuthService, never, HerdConfig | _effect_platform_HttpClient13.HttpClient>;
8
8
  //#endregion
9
9
  export { AuthServiceLive };
@@ -1,7 +1,7 @@
1
1
  import { AuthError } from "../errors.js";
2
2
  import { ApiKeyListResponse, CreatedApiKey, TokenResponse, WhoamiResponse } from "../schemas/auth.js";
3
3
  import { AuthService } from "../services/AuthService.js";
4
- import { authorizedClient, checkStatus, jsonBody, makeUrl } from "./http.js";
4
+ import { authorizedClient, checkStatus, jsonBody, makeUrl, urlEncodedBody } from "./http.js";
5
5
  import { Effect, Layer, pipe } from "effect";
6
6
  import { HttpClientResponse } from "@effect/platform";
7
7
 
@@ -10,7 +10,7 @@ const AuthServiceLive = Layer.effect(AuthService, Effect.gen(function* () {
10
10
  const { baseUrl, client } = yield* authorizedClient;
11
11
  return {
12
12
  whoami: () => pipe(client.get(makeUrl(baseUrl, "/v1/users/me")), Effect.flatMap(checkStatus), Effect.flatMap(HttpClientResponse.schemaBodyJson(WhoamiResponse)), Effect.mapError((error) => new AuthError({ message: String(error) }))),
13
- refreshToken: (refreshToken, clientId) => pipe(client.post(makeUrl(baseUrl, "/api/auth/oauth2/token"), { body: jsonBody({
13
+ refreshToken: (refreshToken, clientId) => pipe(client.post(makeUrl(baseUrl, "/api/auth/oauth2/token"), { body: urlEncodedBody({
14
14
  grant_type: "refresh_token",
15
15
  refresh_token: refreshToken,
16
16
  client_id: clientId,
@@ -1,9 +1,9 @@
1
1
  import { HerdConfig } from "../config.js";
2
2
  import { BookmarksService } from "../services/BookmarksService.js";
3
3
  import { Layer } from "effect";
4
- import * as _effect_platform_HttpClient5 from "@effect/platform/HttpClient";
4
+ import * as _effect_platform_HttpClient2 from "@effect/platform/HttpClient";
5
5
 
6
6
  //#region src/live/BookmarksServiceLive.d.ts
7
- declare const BookmarksServiceLive: Layer.Layer<BookmarksService, never, HerdConfig | _effect_platform_HttpClient5.HttpClient>;
7
+ declare const BookmarksServiceLive: Layer.Layer<BookmarksService, never, HerdConfig | _effect_platform_HttpClient2.HttpClient>;
8
8
  //#endregion
9
9
  export { BookmarksServiceLive };
@@ -1,9 +1,9 @@
1
1
  import { HerdConfig } from "../config.js";
2
2
  import { CodeBlocksService } from "../services/CodeBlocksService.js";
3
3
  import { Layer } from "effect";
4
- import * as _effect_platform_HttpClient11 from "@effect/platform/HttpClient";
4
+ import * as _effect_platform_HttpClient9 from "@effect/platform/HttpClient";
5
5
 
6
6
  //#region src/live/CodeBlocksServiceLive.d.ts
7
- declare const CodeBlocksServiceLive: Layer.Layer<CodeBlocksService, never, HerdConfig | _effect_platform_HttpClient11.HttpClient>;
7
+ declare const CodeBlocksServiceLive: Layer.Layer<CodeBlocksService, never, HerdConfig | _effect_platform_HttpClient9.HttpClient>;
8
8
  //#endregion
9
9
  export { CodeBlocksServiceLive };
@@ -1,9 +1,9 @@
1
1
  import { HerdConfig } from "../config.js";
2
2
  import { CollectionsService } from "../services/CollectionsService.js";
3
3
  import { Layer } from "effect";
4
- import * as _effect_platform_HttpClient13 from "@effect/platform/HttpClient";
4
+ import * as _effect_platform_HttpClient4 from "@effect/platform/HttpClient";
5
5
 
6
6
  //#region src/live/CollectionsServiceLive.d.ts
7
- declare const CollectionsServiceLive: Layer.Layer<CollectionsService, never, HerdConfig | _effect_platform_HttpClient13.HttpClient>;
7
+ declare const CollectionsServiceLive: Layer.Layer<CollectionsService, never, HerdConfig | _effect_platform_HttpClient4.HttpClient>;
8
8
  //#endregion
9
9
  export { CollectionsServiceLive };
@@ -1,9 +1,9 @@
1
1
  import { HerdConfig } from "../config.js";
2
2
  import { ContractsService } from "../services/ContractsService.js";
3
3
  import { Layer } from "effect";
4
- import * as _effect_platform_HttpClient9 from "@effect/platform/HttpClient";
4
+ import * as _effect_platform_HttpClient5 from "@effect/platform/HttpClient";
5
5
 
6
6
  //#region src/live/ContractsServiceLive.d.ts
7
- declare const ContractsServiceLive: Layer.Layer<ContractsService, never, HerdConfig | _effect_platform_HttpClient9.HttpClient>;
7
+ declare const ContractsServiceLive: Layer.Layer<ContractsService, never, HerdConfig | _effect_platform_HttpClient5.HttpClient>;
8
8
  //#endregion
9
9
  export { ContractsServiceLive };
@@ -1,9 +1,9 @@
1
1
  import { HerdConfig } from "../config.js";
2
2
  import { DocsService } from "../services/DocsService.js";
3
3
  import { Layer } from "effect";
4
- import * as _effect_platform_HttpClient12 from "@effect/platform/HttpClient";
4
+ import * as _effect_platform_HttpClient3 from "@effect/platform/HttpClient";
5
5
 
6
6
  //#region src/live/DocsServiceLive.d.ts
7
- declare const DocsServiceLive: Layer.Layer<DocsService, never, HerdConfig | _effect_platform_HttpClient12.HttpClient>;
7
+ declare const DocsServiceLive: Layer.Layer<DocsService, never, HerdConfig | _effect_platform_HttpClient3.HttpClient>;
8
8
  //#endregion
9
9
  export { DocsServiceLive };
@@ -1,9 +1,9 @@
1
1
  import { HerdConfig } from "../config.js";
2
2
  import { GroupsService } from "../services/GroupsService.js";
3
3
  import { Layer } from "effect";
4
- import * as _effect_platform_HttpClient10 from "@effect/platform/HttpClient";
4
+ import * as _effect_platform_HttpClient7 from "@effect/platform/HttpClient";
5
5
 
6
6
  //#region src/live/GroupsServiceLive.d.ts
7
- declare const GroupsServiceLive: Layer.Layer<GroupsService, never, HerdConfig | _effect_platform_HttpClient10.HttpClient>;
7
+ declare const GroupsServiceLive: Layer.Layer<GroupsService, never, HerdConfig | _effect_platform_HttpClient7.HttpClient>;
8
8
  //#endregion
9
9
  export { GroupsServiceLive };
@@ -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 _effect_platform_HttpClient6 from "@effect/platform/HttpClient";
4
+ import * as _effect_platform_HttpClient8 from "@effect/platform/HttpClient";
5
5
 
6
6
  //#region src/live/HalServiceLive.d.ts
7
- declare const HalServiceLive: Layer.Layer<HalService, never, HerdConfig | _effect_platform_HttpClient6.HttpClient>;
7
+ declare const HalServiceLive: Layer.Layer<HalService, never, HerdConfig | _effect_platform_HttpClient8.HttpClient>;
8
8
  //#endregion
9
9
  export { HalServiceLive };
@@ -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 _effect_platform_HttpClient7 from "@effect/platform/HttpClient";
4
+ import * as _effect_platform_HttpClient6 from "@effect/platform/HttpClient";
5
5
 
6
6
  //#region src/live/TransactionsServiceLive.d.ts
7
- declare const TransactionsServiceLive: Layer.Layer<TransactionsService, never, HerdConfig | _effect_platform_HttpClient7.HttpClient>;
7
+ declare const TransactionsServiceLive: Layer.Layer<TransactionsService, never, HerdConfig | _effect_platform_HttpClient6.HttpClient>;
8
8
  //#endregion
9
9
  export { TransactionsServiceLive };
@@ -1,9 +1,9 @@
1
1
  import { HerdConfig } from "../config.js";
2
2
  import { WalletsService } from "../services/WalletsService.js";
3
3
  import { Layer } from "effect";
4
- import * as _effect_platform_HttpClient8 from "@effect/platform/HttpClient";
4
+ import * as _effect_platform_HttpClient10 from "@effect/platform/HttpClient";
5
5
 
6
6
  //#region src/live/WalletsServiceLive.d.ts
7
- declare const WalletsServiceLive: Layer.Layer<WalletsService, never, HerdConfig | _effect_platform_HttpClient8.HttpClient>;
7
+ declare const WalletsServiceLive: Layer.Layer<WalletsService, never, HerdConfig | _effect_platform_HttpClient10.HttpClient>;
8
8
  //#endregion
9
9
  export { WalletsServiceLive };
@@ -1,7 +1,7 @@
1
1
  import { HerdConfig } from "../config.js";
2
2
  import { ServiceError } from "../errors.js";
3
3
  import { Effect, Schema } from "effect";
4
- import { HttpBody, HttpClient, HttpClientResponse } from "@effect/platform";
4
+ import { HttpBody, HttpClient, HttpClientResponse, UrlParams } from "@effect/platform";
5
5
  import * as _effect_platform_HttpClientError0 from "@effect/platform/HttpClientError";
6
6
 
7
7
  //#region src/live/http.d.ts
@@ -13,5 +13,6 @@ declare const authorizedClient: Effect.Effect<{
13
13
  declare const handleJsonResponse: <A, I, R>(schema: Schema.Schema<A, I, R>) => (response: HttpClientResponse.HttpClientResponse) => Effect.Effect<A, ServiceError, R>;
14
14
  declare const checkStatus: (response: HttpClientResponse.HttpClientResponse) => Effect.Effect<HttpClientResponse.HttpClientResponse, ServiceError>;
15
15
  declare const jsonBody: (body: unknown) => HttpBody.HttpBody;
16
+ declare const urlEncodedBody: (body: UrlParams.Input) => HttpBody.HttpBody;
16
17
  //#endregion
17
- export { authorizedClient, checkStatus, handleJsonResponse, jsonBody, makeUrl };
18
+ export { authorizedClient, checkStatus, handleJsonResponse, jsonBody, makeUrl, urlEncodedBody };
@@ -1,7 +1,7 @@
1
1
  import { HerdConfig } from "../config.js";
2
2
  import { ServiceError } from "../errors.js";
3
3
  import { Effect, Either, pipe } from "effect";
4
- import { HttpBody, HttpClient, HttpClientRequest, HttpClientResponse } from "@effect/platform";
4
+ import { HttpBody, HttpClient, HttpClientRequest, HttpClientResponse, UrlParams } from "@effect/platform";
5
5
 
6
6
  //#region src/live/http.ts
7
7
  const makeUrl = (baseUrl, path, queryParams) => {
@@ -27,10 +27,7 @@ const authorizedClient = Effect.gen(function* () {
27
27
  });
28
28
  return {
29
29
  baseUrl,
30
- client: client.pipe(HttpClient.mapRequest(HttpClientRequest.setHeaders({
31
- ...authHeaders,
32
- "Content-Type": "application/json"
33
- })))
30
+ client: client.pipe(HttpClient.mapRequest(HttpClientRequest.setHeaders(authHeaders)))
34
31
  };
35
32
  });
36
33
  const handleJsonResponse = (schema) => (response) => pipe(HttpClientResponse.schemaBodyJson(schema)(response), Effect.mapError((error) => new ServiceError({
@@ -60,6 +57,7 @@ const checkStatus = (response) => {
60
57
  }));
61
58
  };
62
59
  const jsonBody = (body) => HttpBody.unsafeJson(body);
60
+ const urlEncodedBody = (body) => HttpBody.urlParams(UrlParams.fromInput(body));
63
61
 
64
62
  //#endregion
65
- export { authorizedClient, checkStatus, handleJsonResponse, jsonBody, makeUrl };
63
+ export { authorizedClient, checkStatus, handleJsonResponse, jsonBody, makeUrl, urlEncodedBody };
@@ -1,5 +1,5 @@
1
1
  import { Schema } from "effect";
2
- import * as effect_Brand14 from "effect/Brand";
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, {
@@ -27,11 +27,11 @@ declare const ActionExpression_base: Schema.Class<ActionExpression, {
27
27
  } & {
28
28
  readonly name: string;
29
29
  } & {
30
- readonly intent?: string | undefined;
31
- } & {
32
- readonly publishedAt?: string | null | undefined;
30
+ readonly intent?: string;
33
31
  } & {
34
32
  readonly expression: unknown;
33
+ } & {
34
+ readonly publishedAt?: string | null;
35
35
  }, {}, {}>;
36
36
  declare class ActionExpression extends ActionExpression_base {}
37
37
  declare const Action_base: Schema.Class<Action, {
@@ -69,13 +69,13 @@ declare const Action_base: Schema.Class<Action, {
69
69
  } & {
70
70
  readonly name: string;
71
71
  } & {
72
- readonly intent?: string | undefined;
72
+ readonly intent?: string;
73
73
  } & {
74
- readonly expressionType?: string | undefined;
74
+ readonly expressionType?: string;
75
75
  } & {
76
- readonly latestExpression?: ActionExpression | null | undefined;
76
+ readonly latestExpression?: ActionExpression | null;
77
77
  } & {
78
- readonly expressionWithReferences?: string | null | undefined;
78
+ readonly expressionWithReferences?: string | null;
79
79
  }, {}, {}>;
80
80
  declare class Action extends Action_base {}
81
81
  declare const ActionVersion_base: Schema.Class<ActionVersion, {
@@ -103,11 +103,11 @@ declare const ActionVersion_base: Schema.Class<ActionVersion, {
103
103
  } & {
104
104
  readonly name: string;
105
105
  } & {
106
- readonly intent?: string | undefined;
107
- } & {
108
- readonly publishedAt?: string | null | undefined;
106
+ readonly intent?: string;
109
107
  } & {
110
108
  readonly expression: unknown;
109
+ } & {
110
+ readonly publishedAt?: string | null;
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 limit: number;
130
+ readonly offset: number;
131
131
  } & {
132
- readonly scope: readonly ("yours" | "verified" | "all_published")[];
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, {
@@ -237,8 +237,8 @@ declare const RelatedAdaptersSearchParams_base: Schema.Class<RelatedAdaptersSear
237
237
  } & {
238
238
  readonly contracts: readonly {
239
239
  readonly blockchain?: "ethereum" | "base" | undefined;
240
- readonly address: string & effect_Brand14.Brand<"EvmAddress">;
241
240
  readonly functionSignatures?: readonly string[] | undefined;
241
+ readonly address: string & effect_Brand0.Brand<"EvmAddress">;
242
242
  }[];
243
243
  }, {}, {}>;
244
244
  declare class RelatedAdaptersSearchParams extends RelatedAdaptersSearchParams_base {}
@@ -1,5 +1,5 @@
1
1
  import { Schema } from "effect";
2
- import * as effect_Brand5 from "effect/Brand";
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,7 +21,7 @@ declare const AgentWallet_base: Schema.Class<AgentWallet, {
21
21
  } & {
22
22
  readonly intent: string | null;
23
23
  } & {
24
- readonly address: string & effect_Brand5.Brand<"EvmAddress">;
24
+ readonly address: string & effect_Brand0.Brand<"EvmAddress">;
25
25
  } & {
26
26
  readonly groupId: string;
27
27
  }, {}, {}>;
@@ -47,7 +47,7 @@ declare const AgentWalletSafe_base: Schema.Class<AgentWalletSafe, {
47
47
  } & {
48
48
  readonly blockchain: "ethereum" | "base";
49
49
  } & {
50
- readonly safeAddress: string & effect_Brand5.Brand<"EvmAddress">;
50
+ readonly safeAddress: string & effect_Brand0.Brand<"EvmAddress">;
51
51
  } & {
52
52
  readonly isProposer: boolean;
53
53
  } & {
@@ -73,13 +73,13 @@ declare const LinkedAgentWallet_base: Schema.Class<LinkedAgentWallet, {
73
73
  } & {
74
74
  readonly intent: string | null;
75
75
  } & {
76
- readonly address: string & effect_Brand5.Brand<"EvmAddress">;
76
+ readonly agentWalletId: string;
77
+ } & {
78
+ readonly address: string & effect_Brand0.Brand<"EvmAddress">;
77
79
  } & {
78
80
  readonly isProposer: boolean;
79
81
  } & {
80
82
  readonly isSigner: boolean;
81
- } & {
82
- readonly agentWalletId: string;
83
83
  }, {}, {}>;
84
84
  declare class LinkedAgentWallet extends LinkedAgentWallet_base {}
85
85
  declare const AgentSafeMetadata_base: Schema.Class<AgentSafeMetadata, {
@@ -99,7 +99,7 @@ declare const AgentSafeMetadata_base: Schema.Class<AgentSafeMetadata, {
99
99
  } & {
100
100
  readonly blockchain: "ethereum" | "base";
101
101
  } & {
102
- readonly safeAddress: string & effect_Brand5.Brand<"EvmAddress">;
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, {
@@ -151,7 +151,7 @@ declare const AgentSafe_base: Schema.Class<AgentSafe, {
151
151
  } & {
152
152
  readonly blockchain: "ethereum" | "base";
153
153
  } & {
154
- readonly safeAddress: string & effect_Brand5.Brand<"EvmAddress">;
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 & effect_Brand5.Brand<"EvmAddress">)[];
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 & effect_Brand5.Brand<"EvmAddress">;
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, {
@@ -201,13 +201,13 @@ declare const SetSafeProposerResponse_base: Schema.Class<SetSafeProposerResponse
201
201
  } & {
202
202
  readonly blockchain: "ethereum" | "base";
203
203
  } & {
204
- readonly safeAddress: string & effect_Brand5.Brand<"EvmAddress">;
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 & effect_Brand5.Brand<"EvmAddress">;
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, {
@@ -4,6 +4,7 @@ import { ApiKey as ApiKey$1 } from "@better-auth/api-key/types";
4
4
  //#region src/schemas/auth.d.ts
5
5
  declare const FeatureFlagsSchema: Schema.Struct<{
6
6
  agentWalletApi: typeof Schema.Boolean;
7
+ apiKeys: typeof Schema.Boolean;
7
8
  }>;
8
9
  type FeatureFlags = typeof FeatureFlagsSchema.Type;
9
10
  declare const WhoamiResponse_base: Schema.Class<WhoamiResponse, {
@@ -11,12 +12,14 @@ declare const WhoamiResponse_base: Schema.Class<WhoamiResponse, {
11
12
  email: typeof Schema.String;
12
13
  featureFlags: Schema.Struct<{
13
14
  agentWalletApi: typeof Schema.Boolean;
15
+ apiKeys: typeof Schema.Boolean;
14
16
  }>;
15
17
  }, Schema.Struct.Encoded<{
16
18
  id: typeof Schema.String;
17
19
  email: typeof Schema.String;
18
20
  featureFlags: Schema.Struct<{
19
21
  agentWalletApi: typeof Schema.Boolean;
22
+ apiKeys: typeof Schema.Boolean;
20
23
  }>;
21
24
  }>, never, {
22
25
  readonly id: string;
@@ -25,6 +28,7 @@ declare const WhoamiResponse_base: Schema.Class<WhoamiResponse, {
25
28
  } & {
26
29
  readonly featureFlags: {
27
30
  readonly agentWalletApi: boolean;
31
+ readonly apiKeys: boolean;
28
32
  };
29
33
  }, {}, {}>;
30
34
  declare class WhoamiResponse extends WhoamiResponse_base {}
@@ -39,13 +43,13 @@ declare const TokenResponse_base: Schema.Class<TokenResponse, {
39
43
  expiresIn: typeof Schema.Number;
40
44
  tokenType: typeof Schema.String;
41
45
  }>, never, {
42
- readonly tokenType: string;
43
- } & {
44
46
  readonly accessToken: string;
45
47
  } & {
46
48
  readonly refreshToken: string;
47
49
  } & {
48
50
  readonly expiresIn: number;
51
+ } & {
52
+ readonly tokenType: string;
49
53
  }, {}, {}>;
50
54
  declare class TokenResponse extends TokenResponse_base {}
51
55
  type ApiKeyType = Pick<ApiKey$1, "id" | "name" | "start" | "createdAt" | "lastRequest">;
@@ -1,7 +1,10 @@
1
1
  import { Schema } from "effect";
2
2
 
3
3
  //#region src/schemas/auth.ts
4
- const FeatureFlagsSchema = Schema.Struct({ agentWalletApi: Schema.Boolean });
4
+ const FeatureFlagsSchema = Schema.Struct({
5
+ agentWalletApi: Schema.Boolean,
6
+ apiKeys: Schema.Boolean
7
+ });
5
8
  var WhoamiResponse = class extends Schema.Class("WhoamiResponse")({
6
9
  id: Schema.String,
7
10
  email: Schema.String,
@@ -1,5 +1,5 @@
1
1
  import { Schema } from "effect";
2
- import * as effect_Brand0 from "effect/Brand";
2
+ import * as effect_Brand9 from "effect/Brand";
3
3
 
4
4
  //#region src/schemas/bookmarks.d.ts
5
5
  declare const BookmarkObjectType: Schema.Literal<["contract", "transaction", "wallet"]>;
@@ -82,14 +82,14 @@ declare const WalletBookmark_base: Schema.Class<WalletBookmark, {
82
82
  updatedAt: typeof Schema.String;
83
83
  }>, never, {
84
84
  readonly id: string;
85
+ } & {
86
+ readonly walletAddress: string;
85
87
  } & {
86
88
  readonly createdAt: string;
87
89
  } & {
88
90
  readonly updatedAt: string;
89
91
  } & {
90
92
  readonly userLabel: string | null;
91
- } & {
92
- readonly walletAddress: string;
93
93
  }, {}, {}>;
94
94
  declare class WalletBookmark extends WalletBookmark_base {}
95
95
  declare const BookmarksList_base: Schema.Class<BookmarksList, {
@@ -140,9 +140,9 @@ declare const AddContractBookmarkParams_base: Schema.Class<AddContractBookmarkPa
140
140
  }>, never, {
141
141
  readonly blockchain: "ethereum" | "base";
142
142
  } & {
143
- readonly label?: string | undefined;
143
+ readonly address: string & effect_Brand9.Brand<"EvmAddress">;
144
144
  } & {
145
- readonly address: string & effect_Brand0.Brand<"EvmAddress">;
145
+ readonly label?: string | undefined;
146
146
  }, {}, {}>;
147
147
  declare class AddContractBookmarkParams extends AddContractBookmarkParams_base {}
148
148
  declare const AddTransactionBookmarkParams_base: Schema.Class<AddTransactionBookmarkParams, {
@@ -168,9 +168,9 @@ declare const AddWalletBookmarkParams_base: Schema.Class<AddWalletBookmarkParams
168
168
  address: Schema.brand<Schema.filter<typeof Schema.String>, "EvmAddress">;
169
169
  label: Schema.optional<typeof Schema.String>;
170
170
  }>, never, {
171
- readonly label?: string | undefined;
171
+ readonly address: string & effect_Brand9.Brand<"EvmAddress">;
172
172
  } & {
173
- readonly address: string & effect_Brand0.Brand<"EvmAddress">;
173
+ readonly label?: string | undefined;
174
174
  }, {}, {}>;
175
175
  declare class AddWalletBookmarkParams extends AddWalletBookmarkParams_base {}
176
176
  declare const UpdateBookmarkLabelParams_base: Schema.Class<UpdateBookmarkLabelParams, {
@@ -190,11 +190,11 @@ declare const UpdateBookmarkLabelParams_base: Schema.Class<UpdateBookmarkLabelPa
190
190
  } & {
191
191
  readonly blockchain?: "ethereum" | "base" | undefined;
192
192
  } & {
193
- readonly label: string | null;
193
+ readonly address?: string | undefined;
194
194
  } & {
195
- readonly objectType: "contract" | "transaction" | "wallet";
195
+ readonly label: string | null;
196
196
  } & {
197
- readonly address?: string | undefined;
197
+ readonly objectType: "wallet" | "contract" | "transaction";
198
198
  }, {}, {}>;
199
199
  declare class UpdateBookmarkLabelParams extends UpdateBookmarkLabelParams_base {}
200
200
  declare const DeleteBookmarkParams_base: Schema.Class<DeleteBookmarkParams, {
@@ -211,10 +211,10 @@ declare const DeleteBookmarkParams_base: Schema.Class<DeleteBookmarkParams, {
211
211
  readonly txHash?: string | undefined;
212
212
  } & {
213
213
  readonly blockchain?: "ethereum" | "base" | undefined;
214
- } & {
215
- readonly objectType: "contract" | "transaction" | "wallet";
216
214
  } & {
217
215
  readonly address?: string | undefined;
216
+ } & {
217
+ readonly objectType: "wallet" | "contract" | "transaction";
218
218
  }, {}, {}>;
219
219
  declare class DeleteBookmarkParams extends DeleteBookmarkParams_base {}
220
220
  //#endregion
@@ -23,14 +23,14 @@ declare const CodeBlockCode_base: Schema.Class<CodeBlockCode, {
23
23
  readonly name: string;
24
24
  } & {
25
25
  readonly intent: string;
26
+ } & {
27
+ readonly publishedAt: string | null;
26
28
  } & {
27
29
  readonly code: string;
28
30
  } & {
29
31
  readonly valTownFileUrl: string;
30
32
  } & {
31
33
  readonly arguments?: unknown;
32
- } & {
33
- readonly publishedAt: string | null;
34
34
  }, {}, {}>;
35
35
  declare class CodeBlockCode extends CodeBlockCode_base {}
36
36
  declare const CodeBlockVersion_base: Schema.Class<CodeBlockVersion, {
@@ -73,12 +73,12 @@ declare const CodeBlockDefinition_base: Schema.Class<CodeBlockDefinition, {
73
73
  readonly name: string;
74
74
  } & {
75
75
  readonly intent: string;
76
+ } & {
77
+ readonly actionId?: string | null | undefined;
76
78
  } & {
77
79
  readonly latestCode: CodeBlockCode | null;
78
80
  } & {
79
81
  readonly allVersions?: readonly CodeBlockVersion[] | undefined;
80
- } & {
81
- readonly actionId?: string | null | undefined;
82
82
  }, {}, {}>;
83
83
  declare class CodeBlockDefinition extends CodeBlockDefinition_base {}
84
84
  declare const CodeBlocksSearchParams_base: Schema.Class<CodeBlocksSearchParams, {
@@ -96,15 +96,15 @@ declare const CodeBlocksSearchParams_base: Schema.Class<CodeBlocksSearchParams,
96
96
  name: Schema.optional<typeof Schema.String>;
97
97
  }>>;
98
98
  }>, never, {
99
- readonly limit: number;
100
- } & {
101
99
  readonly scope: "user" | "public";
102
100
  } & {
103
- readonly cursor?: string | undefined;
101
+ readonly limit: number;
104
102
  } & {
105
103
  readonly filters?: {
106
104
  readonly name?: string | undefined;
107
105
  } | undefined;
106
+ } & {
107
+ readonly cursor?: string | undefined;
108
108
  }, {}, {}>;
109
109
  declare class CodeBlocksSearchParams extends CodeBlocksSearchParams_base {}
110
110
  declare const CodeBlocksSearchResponse_base: Schema.Class<CodeBlocksSearchResponse, {
@@ -172,9 +172,9 @@ declare const CodeBlockLogEntry_base: Schema.Class<CodeBlockLogEntry, {
172
172
  message: typeof Schema.String;
173
173
  time: typeof Schema.String;
174
174
  }>, never, {
175
- readonly level: string;
176
- } & {
177
175
  readonly message: string;
176
+ } & {
177
+ readonly level: string;
178
178
  } & {
179
179
  readonly time: string;
180
180
  }, {}, {}>;
@@ -204,11 +204,11 @@ declare const CodeBlockExecuteResponse_base: Schema.Class<CodeBlockExecuteRespon
204
204
  } & {
205
205
  readonly error?: {
206
206
  readonly message: string;
207
- readonly status?: number | undefined;
208
207
  readonly body?: unknown;
208
+ readonly status?: number | undefined;
209
209
  } | undefined;
210
210
  } & {
211
- readonly logs?: readonly CodeBlockLogEntry[] | undefined;
211
+ readonly logs?: readonly CodeBlockLogEntry[];
212
212
  }, {}, {}>;
213
213
  declare class CodeBlockExecuteResponse extends CodeBlockExecuteResponse_base {}
214
214
  declare const CreateCodeBlockParams_base: Schema.Class<CreateCodeBlockParams, {
@@ -263,12 +263,12 @@ declare const CreateCodeVersionResponse_base: Schema.Class<CreateCodeVersionResp
263
263
  readonly name: string;
264
264
  } & {
265
265
  readonly intent: string;
266
+ } & {
267
+ readonly publishedAt: string | null;
266
268
  } & {
267
269
  readonly code: string;
268
270
  } & {
269
271
  readonly valTownFileUrl: string;
270
- } & {
271
- readonly publishedAt: string | null;
272
272
  }, {}, {}>;
273
273
  declare class CreateCodeVersionResponse extends CreateCodeVersionResponse_base {}
274
274
  declare const UpdateCodeBlockMetadataParams_base: Schema.Class<UpdateCodeBlockMetadataParams, {