@pear-protocol/types 0.0.14 → 0.0.15

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.
@@ -5,6 +5,7 @@ import { z } from 'zod';
5
5
  declare const HyperliquidMetadata: z.ZodObject<{
6
6
  agentWalletAddress: z.ZodString;
7
7
  isSubaccount: z.ZodBoolean;
8
+ mainAccountAddress: z.ZodString;
8
9
  }, z.core.$strip>;
9
10
  export declare const TradeAccount: z.ZodObject<{
10
11
  id: z.ZodUUID;
@@ -20,6 +21,7 @@ export declare const TradeAccount: z.ZodObject<{
20
21
  metadata: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
21
22
  agentWalletAddress: z.ZodString;
22
23
  isSubaccount: z.ZodBoolean;
24
+ mainAccountAddress: z.ZodString;
23
25
  }, z.core.$strip>]>>;
24
26
  createdAt: z.ZodString;
25
27
  updatedAt: z.ZodString;
@@ -3,7 +3,8 @@ import { Connector } from '../connector';
3
3
 
4
4
  const HyperliquidMetadata = z.object({
5
5
  agentWalletAddress: z.string(),
6
- isSubaccount: z.boolean()
6
+ isSubaccount: z.boolean(),
7
+ mainAccountAddress: z.string()
7
8
  });
8
9
  const ConnectorMetadata = z.union([HyperliquidMetadata]).optional();
9
10
  const TradeAccount = z.object({
@@ -11,6 +11,7 @@ declare const CreateHyperliquidCredentials: z.ZodObject<{
11
11
  declare const CreateHyperliquidMetadata: z.ZodObject<{
12
12
  agentWalletAddress: z.ZodString;
13
13
  isSubaccount: z.ZodBoolean;
14
+ mainAccountAddress: z.ZodString;
14
15
  }, z.core.$strip>;
15
16
  declare const CreateBinanceCredentials: z.ZodObject<{
16
17
  read: z.ZodObject<{
@@ -50,6 +51,7 @@ export declare const CreateTradeAccount: z.ZodDiscriminatedUnion<[z.ZodObject<{
50
51
  metadata: z.ZodObject<{
51
52
  agentWalletAddress: z.ZodString;
52
53
  isSubaccount: z.ZodBoolean;
54
+ mainAccountAddress: z.ZodString;
53
55
  }, z.core.$strip>;
54
56
  }, z.core.$strip>, z.ZodObject<{
55
57
  connector: z.ZodLiteral<"binance">;
@@ -95,6 +97,7 @@ export declare const UpdateTradeAccount: z.ZodDiscriminatedUnion<[z.ZodObject<{
95
97
  metadata: z.ZodOptional<z.ZodObject<{
96
98
  agentWalletAddress: z.ZodString;
97
99
  isSubaccount: z.ZodBoolean;
100
+ mainAccountAddress: z.ZodString;
98
101
  }, z.core.$strip>>;
99
102
  }, z.core.$strip>, z.ZodObject<{
100
103
  connector: z.ZodLiteral<"binance">;
@@ -5,7 +5,8 @@ const CreateHyperliquidCredentials = z.object({
5
5
  });
6
6
  const CreateHyperliquidMetadata = z.object({
7
7
  agentWalletAddress: z.string().regex(/^0x[a-fA-F0-9]{40}$/, "Invalid Ethereum address"),
8
- isSubaccount: z.boolean()
8
+ isSubaccount: z.boolean(),
9
+ mainAccountAddress: z.string().regex(/^0x[a-fA-F0-9]{40}$/, "Invalid Ethereum address")
9
10
  });
10
11
  const BinanceApiKeyPair = z.object({
11
12
  api_key: z.string().min(1, "API key is required"),
@@ -14,6 +14,7 @@ export declare const TradeAccountResponse: z.ZodObject<{
14
14
  metadata: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
15
15
  agentWalletAddress: z.ZodString;
16
16
  isSubaccount: z.ZodBoolean;
17
+ mainAccountAddress: z.ZodString;
17
18
  }, z.core.$strip>]>>;
18
19
  createdAt: z.ZodString;
19
20
  updatedAt: z.ZodString;
@@ -36,6 +37,7 @@ export declare const TradeAccountListResponse: z.ZodObject<{
36
37
  metadata: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
37
38
  agentWalletAddress: z.ZodString;
38
39
  isSubaccount: z.ZodBoolean;
40
+ mainAccountAddress: z.ZodString;
39
41
  }, z.core.$strip>]>>;
40
42
  createdAt: z.ZodString;
41
43
  updatedAt: z.ZodString;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pear-protocol/types",
3
- "version": "0.0.14",
3
+ "version": "0.0.15",
4
4
  "description": "Pear Protocol Types definitions",
5
5
  "private": false,
6
6
  "type": "module",