@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.
Files changed (99) hide show
  1. package/dist/index.d.ts +17 -17
  2. package/dist/index.js +17 -17
  3. package/dist/src/config.d.ts +11 -11
  4. package/dist/src/config.js +9 -12
  5. package/dist/src/errors.d.ts +35 -44
  6. package/dist/src/errors.js +19 -16
  7. package/dist/src/live/ActionsServiceLive.d.ts +3 -3
  8. package/dist/src/live/ActionsServiceLive.js +14 -14
  9. package/dist/src/live/AdaptersServiceLive.d.ts +3 -3
  10. package/dist/src/live/AdaptersServiceLive.js +8 -8
  11. package/dist/src/live/AgentSafesServiceLive.d.ts +3 -3
  12. package/dist/src/live/AgentSafesServiceLive.js +5 -5
  13. package/dist/src/live/AgentWalletsServiceLive.d.ts +3 -3
  14. package/dist/src/live/AgentWalletsServiceLive.js +4 -4
  15. package/dist/src/live/AgentWorkflowsServiceLive.d.ts +3 -3
  16. package/dist/src/live/AgentWorkflowsServiceLive.js +14 -14
  17. package/dist/src/live/AuthServiceLive.d.ts +3 -3
  18. package/dist/src/live/AuthServiceLive.js +7 -7
  19. package/dist/src/live/BookmarksServiceLive.d.ts +3 -3
  20. package/dist/src/live/BookmarksServiceLive.js +20 -20
  21. package/dist/src/live/CodeBlocksServiceLive.d.ts +3 -3
  22. package/dist/src/live/CodeBlocksServiceLive.js +11 -11
  23. package/dist/src/live/CollectionsServiceLive.d.ts +3 -3
  24. package/dist/src/live/CollectionsServiceLive.js +6 -6
  25. package/dist/src/live/ContractsServiceLive.d.ts +3 -3
  26. package/dist/src/live/ContractsServiceLive.js +10 -10
  27. package/dist/src/live/DocsServiceLive.d.ts +3 -3
  28. package/dist/src/live/DocsServiceLive.js +4 -4
  29. package/dist/src/live/GroupsServiceLive.d.ts +3 -3
  30. package/dist/src/live/GroupsServiceLive.js +9 -9
  31. package/dist/src/live/HalServiceLive.d.ts +3 -3
  32. package/dist/src/live/HalServiceLive.js +12 -12
  33. package/dist/src/live/TransactionsServiceLive.d.ts +3 -3
  34. package/dist/src/live/TransactionsServiceLive.js +18 -18
  35. package/dist/src/live/WalletsServiceLive.d.ts +3 -3
  36. package/dist/src/live/WalletsServiceLive.js +18 -18
  37. package/dist/src/live/http.d.ts +6 -6
  38. package/dist/src/live/http.js +15 -15
  39. package/dist/src/schemas/actions.d.ts +179 -339
  40. package/dist/src/schemas/actions.js +80 -76
  41. package/dist/src/schemas/adapters.d.ts +7 -17
  42. package/dist/src/schemas/adapters.js +5 -5
  43. package/dist/src/schemas/agent-wallets.d.ts +98 -222
  44. package/dist/src/schemas/agent-wallets.js +52 -52
  45. package/dist/src/schemas/agent-workflows.d.ts +104 -104
  46. package/dist/src/schemas/agent-workflows.js +53 -49
  47. package/dist/src/schemas/auth.d.ts +35 -64
  48. package/dist/src/schemas/auth.js +16 -16
  49. package/dist/src/schemas/bookmarks.d.ts +98 -216
  50. package/dist/src/schemas/bookmarks.js +55 -51
  51. package/dist/src/schemas/codeblocks.d.ts +149 -308
  52. package/dist/src/schemas/codeblocks.js +72 -67
  53. package/dist/src/schemas/collections.d.ts +120 -232
  54. package/dist/src/schemas/collections.js +48 -44
  55. package/dist/src/schemas/common.d.ts +13 -29
  56. package/dist/src/schemas/common.js +8 -8
  57. package/dist/src/schemas/contracts.d.ts +256 -447
  58. package/dist/src/schemas/contracts.js +92 -103
  59. package/dist/src/schemas/docs.d.ts +12 -29
  60. package/dist/src/schemas/docs.js +9 -9
  61. package/dist/src/schemas/groups.d.ts +74 -74
  62. package/dist/src/schemas/groups.js +32 -32
  63. package/dist/src/schemas/hal.d.ts +109 -217
  64. package/dist/src/schemas/hal.js +44 -42
  65. package/dist/src/schemas/transactions.d.ts +648 -926
  66. package/dist/src/schemas/transactions.js +158 -162
  67. package/dist/src/schemas/wallets.d.ts +577 -731
  68. package/dist/src/schemas/wallets.js +206 -145
  69. package/dist/src/services/ActionsService.d.ts +3 -3
  70. package/dist/src/services/ActionsService.js +2 -2
  71. package/dist/src/services/AdaptersService.d.ts +1 -1
  72. package/dist/src/services/AdaptersService.js +2 -2
  73. package/dist/src/services/AgentSafesService.d.ts +5 -5
  74. package/dist/src/services/AgentSafesService.js +2 -2
  75. package/dist/src/services/AgentWalletsService.d.ts +3 -3
  76. package/dist/src/services/AgentWalletsService.js +2 -2
  77. package/dist/src/services/AgentWorkflowsService.d.ts +11 -11
  78. package/dist/src/services/AgentWorkflowsService.js +6 -2
  79. package/dist/src/services/AuthService.d.ts +5 -5
  80. package/dist/src/services/AuthService.js +2 -2
  81. package/dist/src/services/BookmarksService.d.ts +3 -3
  82. package/dist/src/services/BookmarksService.js +2 -2
  83. package/dist/src/services/CodeBlocksService.d.ts +1 -1
  84. package/dist/src/services/CodeBlocksService.js +2 -2
  85. package/dist/src/services/CollectionsService.d.ts +1 -1
  86. package/dist/src/services/CollectionsService.js +2 -2
  87. package/dist/src/services/ContractsService.d.ts +6 -6
  88. package/dist/src/services/ContractsService.js +2 -2
  89. package/dist/src/services/DocsService.d.ts +2 -2
  90. package/dist/src/services/DocsService.js +2 -2
  91. package/dist/src/services/GroupsService.d.ts +13 -13
  92. package/dist/src/services/GroupsService.js +4 -2
  93. package/dist/src/services/HalService.d.ts +1 -1
  94. package/dist/src/services/HalService.js +2 -2
  95. package/dist/src/services/TransactionsService.d.ts +5 -5
  96. package/dist/src/services/TransactionsService.js +2 -2
  97. package/dist/src/services/WalletsService.d.ts +5 -5
  98. package/dist/src/services/WalletsService.js +2 -2
  99. package/package.json +13 -18
@@ -1,11 +1,11 @@
1
1
  import { ServiceError } from "../errors.js";
2
- import { AddContractBookmarkParams, AddTransactionBookmarkParams, AddWalletBookmarkParams, BookmarkObjectTypeValue, BookmarkResponse, BookmarksList, DeleteBookmarkParams, UpdateBookmarkLabelParams } from "../schemas/bookmarks.js";
2
+ import { AddContractBookmarkParams, AddTransactionBookmarkParams, AddWalletBookmarkParams, BookmarkObjectType, BookmarkResponse, BookmarksList, DeleteBookmarkParams, UpdateBookmarkLabelParams } from "../schemas/bookmarks.js";
3
3
  import { Context, Effect } from "effect";
4
4
 
5
5
  //#region src/services/BookmarksService.d.ts
6
- declare const BookmarksService_base: Context.TagClass<BookmarksService, "BookmarksService", {
6
+ declare const BookmarksService_base: Context.ServiceClass<BookmarksService, "BookmarksService", {
7
7
  readonly list: (params?: {
8
- readonly objectTypes?: ReadonlyArray<BookmarkObjectTypeValue>;
8
+ readonly objectTypes?: readonly BookmarkObjectType[];
9
9
  }) => Effect.Effect<BookmarksList, ServiceError>;
10
10
  readonly addContract: (params: AddContractBookmarkParams) => Effect.Effect<BookmarkResponse, ServiceError>;
11
11
  readonly addTransaction: (params: AddTransactionBookmarkParams) => Effect.Effect<BookmarkResponse, ServiceError>;
@@ -1,7 +1,7 @@
1
- import { Context, Effect } from "effect";
1
+ import { Context } from "effect";
2
2
 
3
3
  //#region src/services/BookmarksService.ts
4
- var BookmarksService = class extends Context.Tag("BookmarksService")() {};
4
+ var BookmarksService = class extends Context.Service()("BookmarksService") {};
5
5
 
6
6
  //#endregion
7
7
  export { BookmarksService };
@@ -3,7 +3,7 @@ import { CodeBlockDefinition, CodeBlockExecuteResponse, CodeBlocksSearchParams,
3
3
  import { Context, Effect } from "effect";
4
4
 
5
5
  //#region src/services/CodeBlocksService.d.ts
6
- declare const CodeBlocksService_base: Context.TagClass<CodeBlocksService, "CodeBlocksService", {
6
+ declare const CodeBlocksService_base: Context.ServiceClass<CodeBlocksService, "CodeBlocksService", {
7
7
  readonly get: (id: string) => Effect.Effect<CodeBlockDefinition, CodeBlockNotFoundError | ServiceError>;
8
8
  readonly search: (params: CodeBlocksSearchParams) => Effect.Effect<CodeBlocksSearchResponse, ServiceError>;
9
9
  readonly create: (params: CreateCodeBlockParams) => Effect.Effect<CreateCodeBlockResponse, ServiceError>;
@@ -1,7 +1,7 @@
1
- import { Context, Effect } from "effect";
1
+ import { Context } from "effect";
2
2
 
3
3
  //#region src/services/CodeBlocksService.ts
4
- var CodeBlocksService = class extends Context.Tag("CodeBlocksService")() {};
4
+ var CodeBlocksService = class extends Context.Service()("CodeBlocksService") {};
5
5
 
6
6
  //#endregion
7
7
  export { CodeBlocksService };
@@ -3,7 +3,7 @@ import { Collection, CollectionsSearchParams, CollectionsSearchResponse, CreateC
3
3
  import { Context, Effect } from "effect";
4
4
 
5
5
  //#region src/services/CollectionsService.d.ts
6
- declare const CollectionsService_base: Context.TagClass<CollectionsService, "CollectionsService", {
6
+ declare const CollectionsService_base: Context.ServiceClass<CollectionsService, "CollectionsService", {
7
7
  readonly get: (collectionId: string) => Effect.Effect<Collection, CollectionNotFoundError | ServiceError>;
8
8
  readonly search: (params: CollectionsSearchParams) => Effect.Effect<CollectionsSearchResponse, ServiceError>;
9
9
  readonly create: (params: CreateCollectionParams) => Effect.Effect<CreateCollectionResponse, ServiceError>;
@@ -1,7 +1,7 @@
1
- import { Context, Effect } from "effect";
1
+ import { Context } from "effect";
2
2
 
3
3
  //#region src/services/CollectionsService.ts
4
- var CollectionsService = class extends Context.Tag("CollectionsService")() {};
4
+ var CollectionsService = class extends Context.Service()("CollectionsService") {};
5
5
 
6
6
  //#endregion
7
7
  export { CollectionsService };
@@ -1,15 +1,15 @@
1
1
  import { ServiceError } from "../errors.js";
2
- import { BlockchainType, EvmAddressType, PaginationParams } from "../schemas/common.js";
2
+ import { Blockchain, EvmAddress, PaginationParams } from "../schemas/common.js";
3
3
  import { ContractDiff, ContractMetadata, DiffVersionsParams, GetContractCodeParams, GetContractCodeResponse } from "../schemas/contracts.js";
4
4
  import { DeployedContracts } from "../schemas/wallets.js";
5
5
  import { Context, Effect } from "effect";
6
6
 
7
7
  //#region src/services/ContractsService.d.ts
8
- declare const ContractsService_base: Context.TagClass<ContractsService, "ContractsService", {
9
- readonly getMetadata: (address: EvmAddressType, blockchain: BlockchainType) => Effect.Effect<ContractMetadata, ServiceError>;
10
- readonly diffVersions: (address: EvmAddressType, blockchain: BlockchainType, params?: DiffVersionsParams) => Effect.Effect<ContractDiff, ServiceError>;
11
- readonly getContractCode: (blockchain: BlockchainType, params: GetContractCodeParams) => Effect.Effect<GetContractCodeResponse, ServiceError>;
12
- readonly getDeployedContracts: (blockchain: BlockchainType, address: EvmAddressType, params?: PaginationParams) => Effect.Effect<DeployedContracts, ServiceError>;
8
+ declare const ContractsService_base: Context.ServiceClass<ContractsService, "ContractsService", {
9
+ readonly getMetadata: (address: EvmAddress, blockchain: Blockchain) => Effect.Effect<ContractMetadata, ServiceError>;
10
+ readonly diffVersions: (address: EvmAddress, blockchain: Blockchain, params?: DiffVersionsParams) => Effect.Effect<ContractDiff, ServiceError>;
11
+ readonly getContractCode: (blockchain: Blockchain, params: GetContractCodeParams) => Effect.Effect<GetContractCodeResponse, ServiceError>;
12
+ readonly getDeployedContracts: (blockchain: Blockchain, address: EvmAddress, params?: PaginationParams) => Effect.Effect<DeployedContracts, ServiceError>;
13
13
  }>;
14
14
  declare class ContractsService extends ContractsService_base {}
15
15
  //#endregion
@@ -1,7 +1,7 @@
1
- import { Context, Effect } from "effect";
1
+ import { Context } from "effect";
2
2
 
3
3
  //#region src/services/ContractsService.ts
4
- var ContractsService = class extends Context.Tag("ContractsService")() {};
4
+ var ContractsService = class extends Context.Service()("ContractsService") {};
5
5
 
6
6
  //#endregion
7
7
  export { ContractsService };
@@ -3,8 +3,8 @@ import { DocContent, DocEntry } from "../schemas/docs.js";
3
3
  import { Context, Effect } from "effect";
4
4
 
5
5
  //#region src/services/DocsService.d.ts
6
- declare const DocsService_base: Context.TagClass<DocsService, "DocsService", {
7
- readonly list: () => Effect.Effect<ReadonlyArray<DocEntry>, ServiceError>;
6
+ declare const DocsService_base: Context.ServiceClass<DocsService, "DocsService", {
7
+ readonly list: Effect.Effect<readonly DocEntry[], ServiceError>;
8
8
  readonly read: (docId: string) => Effect.Effect<DocContent, DocNotFoundError | ServiceError>;
9
9
  }>;
10
10
  declare class DocsService extends DocsService_base {}
@@ -1,7 +1,7 @@
1
- import { Context, Effect } from "effect";
1
+ import { Context } from "effect";
2
2
 
3
3
  //#region src/services/DocsService.ts
4
- var DocsService = class extends Context.Tag("DocsService")() {};
4
+ var DocsService = class extends Context.Service()("DocsService") {};
5
5
 
6
6
  //#endregion
7
7
  export { DocsService };
@@ -1,33 +1,33 @@
1
1
  import { ServiceError } from "../errors.js";
2
- import { CreateGroupParamsType, CreateGroupResponseType, EditGroupMetadataParamsType, EditGroupMetadataResponseType, GroupDetailsType, ListGroupsResponseType, ProposalResponseType, ProposeMemberChangeParamsType, ProposeQuorumChangeParamsType } from "../schemas/groups.js";
2
+ import { CreateGroupParams, CreateGroupResponse, EditGroupMetadataParams, EditGroupMetadataResponse, GroupDetails, ListGroupsResponse, ProposalResponse, ProposeMemberChangeParams, ProposeQuorumChangeParams } from "../schemas/groups.js";
3
3
  import { Context, Effect } from "effect";
4
4
 
5
5
  //#region src/services/GroupsService.d.ts
6
6
  declare class GroupNotFoundError extends Error {
7
- readonly groupId: string;
8
7
  readonly _tag = "GroupNotFoundError";
8
+ readonly groupId: string;
9
9
  constructor(groupId: string);
10
10
  }
11
- declare const GroupsService_base: Context.TagClass<GroupsService, "GroupsService", {
11
+ declare const GroupsService_base: Context.ServiceClass<GroupsService, "GroupsService", {
12
12
  readonly create: (params: {
13
- params: CreateGroupParamsType;
14
- }) => Effect.Effect<CreateGroupResponseType, ServiceError>;
15
- readonly list: () => Effect.Effect<ListGroupsResponseType, ServiceError>;
13
+ params: CreateGroupParams;
14
+ }) => Effect.Effect<CreateGroupResponse, ServiceError>;
15
+ readonly list: Effect.Effect<ListGroupsResponse, ServiceError>;
16
16
  readonly get: (params: {
17
17
  groupId: string;
18
- }) => Effect.Effect<GroupDetailsType, GroupNotFoundError | ServiceError>;
18
+ }) => Effect.Effect<GroupDetails, GroupNotFoundError | ServiceError>;
19
19
  readonly proposeMemberChange: (params: {
20
20
  groupId: string;
21
- params: ProposeMemberChangeParamsType;
22
- }) => Effect.Effect<ProposalResponseType, GroupNotFoundError | ServiceError>;
21
+ params: ProposeMemberChangeParams;
22
+ }) => Effect.Effect<ProposalResponse, GroupNotFoundError | ServiceError>;
23
23
  readonly proposeQuorumChange: (params: {
24
24
  groupId: string;
25
- params: ProposeQuorumChangeParamsType;
26
- }) => Effect.Effect<ProposalResponseType, GroupNotFoundError | ServiceError>;
25
+ params: ProposeQuorumChangeParams;
26
+ }) => Effect.Effect<ProposalResponse, GroupNotFoundError | ServiceError>;
27
27
  readonly editMetadata: (params: {
28
28
  groupId: string;
29
- params: EditGroupMetadataParamsType;
30
- }) => Effect.Effect<EditGroupMetadataResponseType, GroupNotFoundError | ServiceError>;
29
+ params: EditGroupMetadataParams;
30
+ }) => Effect.Effect<EditGroupMetadataResponse, GroupNotFoundError | ServiceError>;
31
31
  }>;
32
32
  declare class GroupsService extends GroupsService_base {}
33
33
  //#endregion
@@ -1,14 +1,16 @@
1
- import { Context, Effect } from "effect";
1
+ import { Context } from "effect";
2
2
 
3
3
  //#region src/services/GroupsService.ts
4
4
  var GroupNotFoundError = class extends Error {
5
5
  _tag = "GroupNotFoundError";
6
+ groupId;
6
7
  constructor(groupId) {
7
8
  super(`Group ${groupId} not found`);
8
9
  this.groupId = groupId;
10
+ this.name = "GroupNotFoundError";
9
11
  }
10
12
  };
11
- var GroupsService = class extends Context.Tag("GroupsService")() {};
13
+ var GroupsService = class extends Context.Service()("GroupsService") {};
12
14
 
13
15
  //#endregion
14
16
  export { GroupNotFoundError, GroupsService };
@@ -3,7 +3,7 @@ import { EvaluateExistingParams, EvaluateExistingResponse, EvaluateParams, Evalu
3
3
  import { Context, Effect } from "effect";
4
4
 
5
5
  //#region src/services/HalService.d.ts
6
- declare const HalService_base: Context.TagClass<HalService, "HalService", {
6
+ declare const HalService_base: Context.ServiceClass<HalService, "HalService", {
7
7
  readonly evaluate: (params: EvaluateParams) => Effect.Effect<EvaluateResponse, SimulationError | ServiceError>;
8
8
  readonly evaluateExisting: (params: EvaluateExistingParams) => Effect.Effect<EvaluateExistingResponse, ActionNotFoundError | SimulationError | ServiceError>;
9
9
  }>;
@@ -1,7 +1,7 @@
1
- import { Context, Effect } from "effect";
1
+ import { Context } from "effect";
2
2
 
3
3
  //#region src/services/HalService.ts
4
- var HalService = class extends Context.Tag("HalService")() {};
4
+ var HalService = class extends Context.Service()("HalService") {};
5
5
 
6
6
  //#endregion
7
7
  export { HalService };
@@ -1,16 +1,16 @@
1
1
  import { ServiceError } from "../errors.js";
2
- import { BlockchainType, EvmAddressType } from "../schemas/common.js";
2
+ import { Blockchain, EvmAddress } from "../schemas/common.js";
3
3
  import { LatestEventTransactions, LatestFunctionTransactions, LatestTxParams, TransactionQueryResponse } from "../schemas/transactions.js";
4
4
  import { Context, Effect } from "effect";
5
5
 
6
6
  //#region src/services/TransactionsService.d.ts
7
- declare const TransactionsService_base: Context.TagClass<TransactionsService, "TransactionsService", {
8
- readonly getTransaction: (blockchain: BlockchainType, txHash: string) => Effect.Effect<TransactionQueryResponse, ServiceError>;
9
- readonly getLatestFunctionTransactions: (blockchain: BlockchainType, address: EvmAddressType, filter: {
7
+ declare const TransactionsService_base: Context.ServiceClass<TransactionsService, "TransactionsService", {
8
+ readonly getTransaction: (blockchain: Blockchain, txHash: string) => Effect.Effect<TransactionQueryResponse, ServiceError>;
9
+ readonly getLatestFunctionTransactions: (blockchain: Blockchain, address: EvmAddress, filter: {
10
10
  readonly name?: string;
11
11
  readonly signature?: string;
12
12
  }, params?: LatestTxParams) => Effect.Effect<LatestFunctionTransactions, ServiceError>;
13
- readonly getLatestEventTransactions: (blockchain: BlockchainType, address: EvmAddressType, filter: {
13
+ readonly getLatestEventTransactions: (blockchain: Blockchain, address: EvmAddress, filter: {
14
14
  readonly name?: string;
15
15
  readonly signature?: string;
16
16
  }, params?: LatestTxParams) => Effect.Effect<LatestEventTransactions, ServiceError>;
@@ -1,7 +1,7 @@
1
- import { Context, Effect } from "effect";
1
+ import { Context } from "effect";
2
2
 
3
3
  //#region src/services/TransactionsService.ts
4
- var TransactionsService = class extends Context.Tag("TransactionsService")() {};
4
+ var TransactionsService = class extends Context.Service()("TransactionsService") {};
5
5
 
6
6
  //#endregion
7
7
  export { TransactionsService };
@@ -1,14 +1,14 @@
1
1
  import { ServiceError } from "../errors.js";
2
- import { BlockchainType, EvmAddressType, PaginationParams } from "../schemas/common.js";
2
+ import { Blockchain, EvmAddress, PaginationParams } from "../schemas/common.js";
3
3
  import { DeployedContracts, TokenActivity, TokenActivityParams, TransactionActivity, TransactionActivityQuery, WalletOverview } from "../schemas/wallets.js";
4
4
  import { Context, Effect } from "effect";
5
5
 
6
6
  //#region src/services/WalletsService.d.ts
7
- declare const WalletsService_base: Context.TagClass<WalletsService, "WalletsService", {
8
- readonly getOverview: (blockchain: BlockchainType, address: EvmAddressType, params?: PaginationParams) => Effect.Effect<WalletOverview, ServiceError>;
9
- readonly getTokenActivity: (blockchain: BlockchainType, address: EvmAddressType, tokenAddress: EvmAddressType, params?: TokenActivityParams) => Effect.Effect<TokenActivity, ServiceError>;
7
+ declare const WalletsService_base: Context.ServiceClass<WalletsService, "WalletsService", {
8
+ readonly getOverview: (blockchain: Blockchain, address: EvmAddress, params?: PaginationParams) => Effect.Effect<WalletOverview, ServiceError>;
9
+ readonly getTokenActivity: (blockchain: Blockchain, address: EvmAddress, tokenAddress: EvmAddress, params?: TokenActivityParams) => Effect.Effect<TokenActivity, ServiceError>;
10
10
  readonly getTransactions: (query: TransactionActivityQuery) => Effect.Effect<TransactionActivity, ServiceError>;
11
- readonly getDeployedContracts: (blockchain: BlockchainType, address: EvmAddressType, params?: PaginationParams) => Effect.Effect<DeployedContracts, ServiceError>;
11
+ readonly getDeployedContracts: (blockchain: Blockchain, address: EvmAddress, params?: PaginationParams) => Effect.Effect<DeployedContracts, ServiceError>;
12
12
  }>;
13
13
  declare class WalletsService extends WalletsService_base {}
14
14
  //#endregion
@@ -1,7 +1,7 @@
1
- import { Context, Effect } from "effect";
1
+ import { Context } from "effect";
2
2
 
3
3
  //#region src/services/WalletsService.ts
4
- var WalletsService = class extends Context.Tag("WalletsService")() {};
4
+ var WalletsService = class extends Context.Service()("WalletsService") {};
5
5
 
6
6
  //#endregion
7
7
  export { WalletsService };
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "@herd-labs/sdk",
3
- "version": "0.3.1",
3
+ "version": "0.5.0",
4
+ "files": [
5
+ "dist"
6
+ ],
4
7
  "type": "module",
5
8
  "main": "./dist/index.js",
6
9
  "module": "./dist/index.js",
7
10
  "types": "./dist/index.d.ts",
8
11
  "exports": {
9
12
  ".": {
10
- "types": "./dist/index.d.ts",
13
+ "default": "./dist/index.js",
11
14
  "import": "./dist/index.js",
12
- "default": "./dist/index.js"
15
+ "types": "./dist/index.d.ts"
13
16
  }
14
17
  },
15
- "files": [
16
- "dist"
17
- ],
18
18
  "publishConfig": {
19
19
  "access": "public"
20
20
  },
@@ -24,20 +24,15 @@
24
24
  "postpack": "bun ./scripts/restore-publish.ts",
25
25
  "release": "echo 'Use the GitHub Actions workflow: Actions → Release: SDK → Run workflow'",
26
26
  "tsc": "tsgo --noEmit",
27
- "lint": "eslint .",
28
- "lint:fix": "eslint . --fix"
27
+ "check": "ultracite check",
28
+ "fix": "ultracite fix"
29
+ },
30
+ "dependencies": {
31
+ "@better-auth/api-key": "1.7.0-beta.4",
32
+ "@effect/platform-bun": "4.0.0-beta.74",
33
+ "effect": "4.0.0-beta.74"
29
34
  },
30
35
  "peerDependencies": {
31
36
  "typescript": "^5"
32
- },
33
- "dependencies": {
34
- "@better-auth/api-key": "^1.6.9",
35
- "@effect/cli": "0.69.0",
36
- "@effect/platform": "^0.90.0",
37
- "@effect/cluster": "^0.45.0",
38
- "@effect/platform-bun": "^0.76.0",
39
- "@effect/rpc": "^0.67.0",
40
- "@effect/workflow": "^0.7.0",
41
- "effect": "3.18.4"
42
37
  }
43
38
  }