@herd-labs/sdk 0.0.4 → 0.0.5

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 (46) hide show
  1. package/dist/index.d.ts +14 -3
  2. package/dist/index.js +14 -3
  3. package/dist/src/live/AgentSafesServiceLive.d.ts +9 -0
  4. package/dist/src/live/AgentSafesServiceLive.js +19 -0
  5. package/dist/src/live/AgentWalletsServiceLive.d.ts +9 -0
  6. package/dist/src/live/AgentWalletsServiceLive.js +18 -0
  7. package/dist/src/live/AgentWorkflowsServiceLive.d.ts +9 -0
  8. package/dist/src/live/AgentWorkflowsServiceLive.js +33 -0
  9. package/dist/src/live/AuthServiceLive.d.ts +2 -2
  10. package/dist/src/live/BookmarksServiceLive.d.ts +2 -2
  11. package/dist/src/live/CodeBlocksServiceLive.d.ts +2 -2
  12. package/dist/src/live/ContractsServiceLive.d.ts +2 -2
  13. package/dist/src/live/ContractsServiceLive.js +1 -6
  14. package/dist/src/live/DocsServiceLive.d.ts +2 -2
  15. package/dist/src/live/GroupsServiceLive.d.ts +9 -0
  16. package/dist/src/live/GroupsServiceLive.js +26 -0
  17. package/dist/src/live/HalServiceLive.d.ts +2 -2
  18. package/dist/src/live/TransactionsServiceLive.d.ts +2 -2
  19. package/dist/src/live/WalletsServiceLive.d.ts +2 -2
  20. package/dist/src/schemas/actions.d.ts +9 -9
  21. package/dist/src/schemas/agent-wallets.d.ts +226 -0
  22. package/dist/src/schemas/agent-wallets.js +68 -0
  23. package/dist/src/schemas/agent-workflows.d.ts +245 -0
  24. package/dist/src/schemas/agent-workflows.js +72 -0
  25. package/dist/src/schemas/auth.d.ts +15 -1
  26. package/dist/src/schemas/auth.js +4 -2
  27. package/dist/src/schemas/bookmarks.d.ts +5 -5
  28. package/dist/src/schemas/codeblocks.d.ts +5 -5
  29. package/dist/src/schemas/collections.d.ts +1 -1
  30. package/dist/src/schemas/contracts.d.ts +19 -232
  31. package/dist/src/schemas/contracts.js +1 -62
  32. package/dist/src/schemas/groups.d.ts +94 -0
  33. package/dist/src/schemas/groups.js +62 -0
  34. package/dist/src/schemas/hal.d.ts +9 -9
  35. package/dist/src/schemas/transactions.d.ts +86 -86
  36. package/dist/src/schemas/wallets.d.ts +50 -50
  37. package/dist/src/services/AgentSafesService.d.ts +14 -0
  38. package/dist/src/services/AgentSafesService.js +7 -0
  39. package/dist/src/services/AgentWalletsService.d.ts +13 -0
  40. package/dist/src/services/AgentWalletsService.js +7 -0
  41. package/dist/src/services/AgentWorkflowsService.d.ts +26 -0
  42. package/dist/src/services/AgentWorkflowsService.js +21 -0
  43. package/dist/src/services/ContractsService.d.ts +1 -2
  44. package/dist/src/services/GroupsService.d.ts +34 -0
  45. package/dist/src/services/GroupsService.js +14 -0
  46. package/package.json +1 -1
@@ -0,0 +1,26 @@
1
+ import { ServiceError } from "../errors.js";
2
+ import { AgentWorkflowWithRuns, CreateAgentWorkflowParams, CreateAgentWorkflowResponse, CreateAgentWorkflowRunParams, CreateAgentWorkflowRunResponse, ListAgentWorkflowsParams, ListAgentWorkflowsResponse, PushAgentWorkflowParams, PushAgentWorkflowResponse, SubmitAgentWorkflowDecisionParams, SubmitAgentWorkflowDecisionResponse } from "../schemas/agent-workflows.js";
3
+ import { Context, Effect } from "effect";
4
+
5
+ //#region src/services/AgentWorkflowsService.d.ts
6
+ declare class AgentWorkflowNotFoundError extends Error {
7
+ readonly workflowId: string;
8
+ readonly _tag = "AgentWorkflowNotFoundError";
9
+ constructor(workflowId: string);
10
+ }
11
+ declare class AgentWorkflowRunNotFoundError extends Error {
12
+ readonly runId: string;
13
+ readonly _tag = "AgentWorkflowRunNotFoundError";
14
+ constructor(runId: string);
15
+ }
16
+ declare const AgentWorkflowsService_base: Context.TagClass<AgentWorkflowsService, "AgentWorkflowsService", {
17
+ readonly create: (params: CreateAgentWorkflowParams) => Effect.Effect<CreateAgentWorkflowResponse, ServiceError>;
18
+ readonly list: (params: ListAgentWorkflowsParams) => Effect.Effect<ListAgentWorkflowsResponse, ServiceError>;
19
+ readonly get: (agentWorkflowId: string) => Effect.Effect<AgentWorkflowWithRuns, AgentWorkflowNotFoundError | ServiceError>;
20
+ readonly createRun: (params: CreateAgentWorkflowRunParams) => Effect.Effect<CreateAgentWorkflowRunResponse, AgentWorkflowNotFoundError | ServiceError>;
21
+ readonly submitDecision: (params: SubmitAgentWorkflowDecisionParams) => Effect.Effect<SubmitAgentWorkflowDecisionResponse, AgentWorkflowRunNotFoundError | ServiceError>;
22
+ readonly push: (params: PushAgentWorkflowParams) => Effect.Effect<PushAgentWorkflowResponse, AgentWorkflowRunNotFoundError | ServiceError>;
23
+ }>;
24
+ declare class AgentWorkflowsService extends AgentWorkflowsService_base {}
25
+ //#endregion
26
+ export { AgentWorkflowNotFoundError, AgentWorkflowRunNotFoundError, AgentWorkflowsService };
@@ -0,0 +1,21 @@
1
+ import { Context, Effect } from "effect";
2
+
3
+ //#region src/services/AgentWorkflowsService.ts
4
+ var AgentWorkflowNotFoundError = class extends Error {
5
+ _tag = "AgentWorkflowNotFoundError";
6
+ constructor(workflowId) {
7
+ super(`Agent workflow ${workflowId} not found`);
8
+ this.workflowId = workflowId;
9
+ }
10
+ };
11
+ var AgentWorkflowRunNotFoundError = class extends Error {
12
+ _tag = "AgentWorkflowRunNotFoundError";
13
+ constructor(runId) {
14
+ super(`Agent workflow run ${runId} not found`);
15
+ this.runId = runId;
16
+ }
17
+ };
18
+ var AgentWorkflowsService = class extends Context.Tag("AgentWorkflowsService")() {};
19
+
20
+ //#endregion
21
+ export { AgentWorkflowNotFoundError, AgentWorkflowRunNotFoundError, AgentWorkflowsService };
@@ -1,13 +1,12 @@
1
1
  import { ServiceError } from "../errors.js";
2
2
  import { BlockchainType, EvmAddressType, PaginationParams } from "../schemas/common.js";
3
- import { ContractDiff, ContractMetadata, DiffVersionsParams, GetContractCodeParams, GetContractCodeResponse, RolesTopology } from "../schemas/contracts.js";
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
8
  declare const ContractsService_base: Context.TagClass<ContractsService, "ContractsService", {
9
9
  readonly getMetadata: (address: EvmAddressType, blockchain: BlockchainType) => Effect.Effect<ContractMetadata, ServiceError>;
10
- readonly getRolesTopology: (address: EvmAddressType, blockchain: BlockchainType) => Effect.Effect<RolesTopology, ServiceError>;
11
10
  readonly diffVersions: (address: EvmAddressType, blockchain: BlockchainType, params?: DiffVersionsParams) => Effect.Effect<ContractDiff, ServiceError>;
12
11
  readonly getContractCode: (blockchain: BlockchainType, params: GetContractCodeParams) => Effect.Effect<GetContractCodeResponse, ServiceError>;
13
12
  readonly getDeployedContracts: (blockchain: BlockchainType, address: EvmAddressType, params?: PaginationParams) => Effect.Effect<DeployedContracts, ServiceError>;
@@ -0,0 +1,34 @@
1
+ import { ServiceError } from "../errors.js";
2
+ import { CreateGroupParamsType, CreateGroupResponseType, EditGroupMetadataParamsType, EditGroupMetadataResponseType, GroupDetailsType, ListGroupsResponseType, ProposalResponseType, ProposeMemberChangeParamsType, ProposeQuorumChangeParamsType } from "../schemas/groups.js";
3
+ import { Context, Effect } from "effect";
4
+
5
+ //#region src/services/GroupsService.d.ts
6
+ declare class GroupNotFoundError extends Error {
7
+ readonly groupId: string;
8
+ readonly _tag = "GroupNotFoundError";
9
+ constructor(groupId: string);
10
+ }
11
+ declare const GroupsService_base: Context.TagClass<GroupsService, "GroupsService", {
12
+ readonly create: (params: {
13
+ params: CreateGroupParamsType;
14
+ }) => Effect.Effect<CreateGroupResponseType, ServiceError>;
15
+ readonly list: () => Effect.Effect<ListGroupsResponseType, ServiceError>;
16
+ readonly get: (params: {
17
+ groupId: string;
18
+ }) => Effect.Effect<GroupDetailsType, GroupNotFoundError | ServiceError>;
19
+ readonly proposeMemberChange: (params: {
20
+ groupId: string;
21
+ params: ProposeMemberChangeParamsType;
22
+ }) => Effect.Effect<ProposalResponseType, GroupNotFoundError | ServiceError>;
23
+ readonly proposeQuorumChange: (params: {
24
+ groupId: string;
25
+ params: ProposeQuorumChangeParamsType;
26
+ }) => Effect.Effect<ProposalResponseType, GroupNotFoundError | ServiceError>;
27
+ readonly editMetadata: (params: {
28
+ groupId: string;
29
+ params: EditGroupMetadataParamsType;
30
+ }) => Effect.Effect<EditGroupMetadataResponseType, GroupNotFoundError | ServiceError>;
31
+ }>;
32
+ declare class GroupsService extends GroupsService_base {}
33
+ //#endregion
34
+ export { GroupNotFoundError, GroupsService };
@@ -0,0 +1,14 @@
1
+ import { Context, Effect } from "effect";
2
+
3
+ //#region src/services/GroupsService.ts
4
+ var GroupNotFoundError = class extends Error {
5
+ _tag = "GroupNotFoundError";
6
+ constructor(groupId) {
7
+ super(`Group ${groupId} not found`);
8
+ this.groupId = groupId;
9
+ }
10
+ };
11
+ var GroupsService = class extends Context.Tag("GroupsService")() {};
12
+
13
+ //#endregion
14
+ export { GroupNotFoundError, GroupsService };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@herd-labs/sdk",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",