@herd-labs/sdk 0.1.0 → 0.2.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 (48) hide show
  1. package/dist/index.d.ts +3 -3
  2. package/dist/index.js +3 -3
  3. package/dist/src/config.d.ts +17 -5
  4. package/dist/src/config.js +12 -2
  5. package/dist/src/live/ActionsServiceLive.js +10 -10
  6. package/dist/src/live/AdaptersServiceLive.d.ts +2 -2
  7. package/dist/src/live/AdaptersServiceLive.js +7 -7
  8. package/dist/src/live/AgentSafesServiceLive.d.ts +2 -2
  9. package/dist/src/live/AgentSafesServiceLive.js +4 -4
  10. package/dist/src/live/AgentWalletsServiceLive.d.ts +2 -2
  11. package/dist/src/live/AgentWalletsServiceLive.js +3 -3
  12. package/dist/src/live/AgentWorkflowsServiceLive.d.ts +2 -2
  13. package/dist/src/live/AgentWorkflowsServiceLive.js +8 -8
  14. package/dist/src/live/AuthServiceLive.d.ts +2 -2
  15. package/dist/src/live/AuthServiceLive.js +8 -7
  16. package/dist/src/live/BookmarksServiceLive.d.ts +2 -2
  17. package/dist/src/live/BookmarksServiceLive.js +7 -7
  18. package/dist/src/live/CodeBlocksServiceLive.d.ts +2 -2
  19. package/dist/src/live/CodeBlocksServiceLive.js +1 -2
  20. package/dist/src/live/CollectionsServiceLive.d.ts +2 -2
  21. package/dist/src/live/CollectionsServiceLive.js +5 -5
  22. package/dist/src/live/ContractsServiceLive.d.ts +2 -2
  23. package/dist/src/live/ContractsServiceLive.js +5 -5
  24. package/dist/src/live/DocsServiceLive.d.ts +2 -2
  25. package/dist/src/live/DocsServiceLive.js +3 -3
  26. package/dist/src/live/GroupsServiceLive.d.ts +2 -2
  27. package/dist/src/live/GroupsServiceLive.js +7 -7
  28. package/dist/src/live/HalServiceLive.d.ts +2 -2
  29. package/dist/src/live/HalServiceLive.js +3 -3
  30. package/dist/src/live/TransactionsServiceLive.js +4 -4
  31. package/dist/src/live/WalletsServiceLive.d.ts +2 -2
  32. package/dist/src/live/WalletsServiceLive.js +5 -5
  33. package/dist/src/live/http.d.ts +1 -4
  34. package/dist/src/live/http.js +15 -4
  35. package/dist/src/schemas/actions.d.ts +12 -12
  36. package/dist/src/schemas/adapters.d.ts +2 -2
  37. package/dist/src/schemas/agent-wallets.d.ts +20 -20
  38. package/dist/src/schemas/auth.d.ts +22 -12
  39. package/dist/src/schemas/auth.js +16 -5
  40. package/dist/src/schemas/bookmarks.d.ts +14 -14
  41. package/dist/src/schemas/codeblocks.d.ts +2 -2
  42. package/dist/src/schemas/collections.d.ts +2 -2
  43. package/dist/src/schemas/contracts.d.ts +15 -15
  44. package/dist/src/schemas/hal.d.ts +23 -23
  45. package/dist/src/schemas/transactions.d.ts +35 -35
  46. package/dist/src/schemas/wallets.d.ts +37 -37
  47. package/dist/src/services/AuthService.d.ts +3 -2
  48. package/package.json +2 -1
@@ -1,12 +1,13 @@
1
1
  import { AuthError } from "../errors.js";
2
- import { ApiKeyResponse, TokenResponse, WhoamiResponse } from "../schemas/auth.js";
2
+ import { ApiKeyListResponseType, CreatedApiKeyType, TokenResponse, WhoamiResponse } from "../schemas/auth.js";
3
3
  import { Context, Effect } from "effect";
4
4
 
5
5
  //#region src/services/AuthService.d.ts
6
6
  declare const AuthService_base: Context.TagClass<AuthService, "AuthService", {
7
7
  readonly whoami: () => Effect.Effect<WhoamiResponse, AuthError>;
8
8
  readonly refreshToken: (refreshToken: string, clientId: string) => Effect.Effect<TokenResponse, AuthError>;
9
- readonly provisionApiKey: () => Effect.Effect<ApiKeyResponse, AuthError>;
9
+ readonly provisionApiKey: (name?: string) => Effect.Effect<CreatedApiKeyType, AuthError>;
10
+ readonly listApiKeys: () => Effect.Effect<ApiKeyListResponseType, AuthError>;
10
11
  readonly revokeApiKey: (keyId: string) => Effect.Effect<void, AuthError>;
11
12
  }>;
12
13
  declare class AuthService extends AuthService_base {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@herd-labs/sdk",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -31,6 +31,7 @@
31
31
  "typescript": "^5"
32
32
  },
33
33
  "dependencies": {
34
+ "@better-auth/api-key": "^1.6.9",
34
35
  "@effect/cli": "0.69.0",
35
36
  "@effect/platform": "^0.90.0",
36
37
  "@effect/cluster": "^0.45.0",