@herd-labs/sdk 0.3.0 → 0.4.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 (97) hide show
  1. package/dist/src/config.d.ts +8 -8
  2. package/dist/src/config.js +8 -11
  3. package/dist/src/errors.d.ts +29 -44
  4. package/dist/src/errors.js +13 -16
  5. package/dist/src/live/ActionsServiceLive.d.ts +2 -2
  6. package/dist/src/live/ActionsServiceLive.js +9 -9
  7. package/dist/src/live/AdaptersServiceLive.d.ts +2 -2
  8. package/dist/src/live/AdaptersServiceLive.js +6 -6
  9. package/dist/src/live/AgentSafesServiceLive.d.ts +2 -2
  10. package/dist/src/live/AgentSafesServiceLive.js +3 -3
  11. package/dist/src/live/AgentWalletsServiceLive.d.ts +2 -2
  12. package/dist/src/live/AgentWalletsServiceLive.js +3 -3
  13. package/dist/src/live/AgentWorkflowsServiceLive.d.ts +2 -2
  14. package/dist/src/live/AgentWorkflowsServiceLive.js +10 -10
  15. package/dist/src/live/AuthServiceLive.d.ts +2 -2
  16. package/dist/src/live/AuthServiceLive.js +7 -7
  17. package/dist/src/live/BookmarksServiceLive.d.ts +2 -2
  18. package/dist/src/live/BookmarksServiceLive.js +16 -16
  19. package/dist/src/live/CodeBlocksServiceLive.d.ts +2 -2
  20. package/dist/src/live/CodeBlocksServiceLive.js +8 -8
  21. package/dist/src/live/CollectionsServiceLive.d.ts +2 -2
  22. package/dist/src/live/CollectionsServiceLive.js +3 -3
  23. package/dist/src/live/ContractsServiceLive.d.ts +2 -2
  24. package/dist/src/live/ContractsServiceLive.js +6 -6
  25. package/dist/src/live/DocsServiceLive.d.ts +2 -2
  26. package/dist/src/live/DocsServiceLive.js +2 -2
  27. package/dist/src/live/GroupsServiceLive.d.ts +2 -2
  28. package/dist/src/live/GroupsServiceLive.js +5 -5
  29. package/dist/src/live/HalServiceLive.d.ts +2 -2
  30. package/dist/src/live/HalServiceLive.js +9 -9
  31. package/dist/src/live/TransactionsServiceLive.d.ts +2 -2
  32. package/dist/src/live/TransactionsServiceLive.js +17 -17
  33. package/dist/src/live/WalletsServiceLive.d.ts +2 -2
  34. package/dist/src/live/WalletsServiceLive.js +14 -14
  35. package/dist/src/live/http.d.ts +6 -5
  36. package/dist/src/live/http.js +16 -18
  37. package/dist/src/schemas/actions.d.ts +95 -323
  38. package/dist/src/schemas/actions.js +41 -37
  39. package/dist/src/schemas/adapters.d.ts +5 -15
  40. package/dist/src/schemas/adapters.js +2 -2
  41. package/dist/src/schemas/agent-wallets.d.ts +66 -210
  42. package/dist/src/schemas/agent-wallets.js +25 -25
  43. package/dist/src/schemas/agent-workflows.d.ts +62 -62
  44. package/dist/src/schemas/agent-workflows.js +35 -31
  45. package/dist/src/schemas/auth.d.ts +22 -47
  46. package/dist/src/schemas/auth.js +10 -7
  47. package/dist/src/schemas/bookmarks.d.ts +64 -204
  48. package/dist/src/schemas/bookmarks.js +27 -23
  49. package/dist/src/schemas/codeblocks.d.ts +98 -294
  50. package/dist/src/schemas/codeblocks.js +41 -36
  51. package/dist/src/schemas/collections.d.ts +68 -224
  52. package/dist/src/schemas/collections.js +28 -24
  53. package/dist/src/schemas/common.d.ts +9 -25
  54. package/dist/src/schemas/common.js +5 -5
  55. package/dist/src/schemas/contracts.d.ts +125 -431
  56. package/dist/src/schemas/contracts.js +52 -63
  57. package/dist/src/schemas/docs.d.ts +9 -26
  58. package/dist/src/schemas/docs.js +4 -4
  59. package/dist/src/schemas/groups.d.ts +47 -47
  60. package/dist/src/schemas/groups.js +18 -18
  61. package/dist/src/schemas/hal.d.ts +57 -211
  62. package/dist/src/schemas/hal.js +32 -30
  63. package/dist/src/schemas/transactions.d.ts +404 -890
  64. package/dist/src/schemas/transactions.js +128 -132
  65. package/dist/src/schemas/wallets.d.ts +205 -709
  66. package/dist/src/schemas/wallets.js +112 -96
  67. package/dist/src/services/ActionsService.d.ts +1 -1
  68. package/dist/src/services/ActionsService.js +2 -2
  69. package/dist/src/services/AdaptersService.d.ts +1 -1
  70. package/dist/src/services/AdaptersService.js +2 -2
  71. package/dist/src/services/AgentSafesService.d.ts +1 -1
  72. package/dist/src/services/AgentSafesService.js +2 -2
  73. package/dist/src/services/AgentWalletsService.d.ts +1 -1
  74. package/dist/src/services/AgentWalletsService.js +2 -2
  75. package/dist/src/services/AgentWorkflowsService.d.ts +3 -3
  76. package/dist/src/services/AgentWorkflowsService.js +6 -2
  77. package/dist/src/services/AuthService.d.ts +3 -3
  78. package/dist/src/services/AuthService.js +2 -2
  79. package/dist/src/services/BookmarksService.d.ts +2 -2
  80. package/dist/src/services/BookmarksService.js +2 -2
  81. package/dist/src/services/CodeBlocksService.d.ts +1 -1
  82. package/dist/src/services/CodeBlocksService.js +2 -2
  83. package/dist/src/services/CollectionsService.d.ts +1 -1
  84. package/dist/src/services/CollectionsService.js +2 -2
  85. package/dist/src/services/ContractsService.d.ts +1 -1
  86. package/dist/src/services/ContractsService.js +2 -2
  87. package/dist/src/services/DocsService.d.ts +2 -2
  88. package/dist/src/services/DocsService.js +2 -2
  89. package/dist/src/services/GroupsService.d.ts +3 -3
  90. package/dist/src/services/GroupsService.js +4 -2
  91. package/dist/src/services/HalService.d.ts +1 -1
  92. package/dist/src/services/HalService.js +2 -2
  93. package/dist/src/services/TransactionsService.d.ts +1 -1
  94. package/dist/src/services/TransactionsService.js +2 -2
  95. package/dist/src/services/WalletsService.d.ts +1 -1
  96. package/dist/src/services/WalletsService.js +2 -2
  97. package/package.json +14 -19
@@ -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 };
@@ -4,7 +4,7 @@ import { LatestEventTransactions, LatestFunctionTransactions, LatestTxParams, Tr
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", {
7
+ declare const TransactionsService_base: Context.ServiceClass<TransactionsService, "TransactionsService", {
8
8
  readonly getTransaction: (blockchain: BlockchainType, txHash: string) => Effect.Effect<TransactionQueryResponse, ServiceError>;
9
9
  readonly getLatestFunctionTransactions: (blockchain: BlockchainType, address: EvmAddressType, filter: {
10
10
  readonly name?: string;
@@ -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 };
@@ -4,7 +4,7 @@ import { DeployedContracts, TokenActivity, TokenActivityParams, TransactionActiv
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", {
7
+ declare const WalletsService_base: Context.ServiceClass<WalletsService, "WalletsService", {
8
8
  readonly getOverview: (blockchain: BlockchainType, address: EvmAddressType, params?: PaginationParams) => Effect.Effect<WalletOverview, ServiceError>;
9
9
  readonly getTokenActivity: (blockchain: BlockchainType, address: EvmAddressType, tokenAddress: EvmAddressType, params?: TokenActivityParams) => Effect.Effect<TokenActivity, ServiceError>;
10
10
  readonly getTransactions: (query: TransactionActivityQuery) => Effect.Effect<TransactionActivity, ServiceError>;
@@ -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.0",
3
+ "version": "0.4.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
  },
@@ -23,21 +23,16 @@
23
23
  "prepack": "bun run build && bun ./scripts/prepare-publish.ts",
24
24
  "postpack": "bun ./scripts/restore-publish.ts",
25
25
  "release": "echo 'Use the GitHub Actions workflow: Actions → Release: SDK → Run workflow'",
26
- "tsc": "tsc --noEmit",
27
- "lint": "eslint .",
28
- "lint:fix": "eslint . --fix"
29
- },
30
- "peerDependencies": {
31
- "typescript": "^5"
26
+ "tsc": "tsgo --noEmit",
27
+ "check": "ultracite check",
28
+ "fix": "ultracite fix"
32
29
  },
33
30
  "dependencies": {
34
31
  "@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"
32
+ "@effect/platform-bun": "4.0.0-beta.74",
33
+ "effect": "4.0.0-beta.74"
34
+ },
35
+ "peerDependencies": {
36
+ "typescript": "^5"
42
37
  }
43
38
  }