@b3dotfun/sdk 0.0.9-alpha.0 → 0.0.9-alpha.2

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.
@@ -1,3 +1,4 @@
1
+ export * from "./types/api";
1
2
  export * from "./utils/address";
2
3
  export * from "./utils/chain";
3
4
  export * from "./utils/format";
@@ -14,6 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ // Types
18
+ __exportStar(require("./types/api"), exports);
17
19
  // Utils
18
20
  __exportStar(require("./utils/address"), exports);
19
21
  __exportStar(require("./utils/chain"), exports);
@@ -1,5 +1,6 @@
1
1
  export * from "./react/hooks";
2
2
  export * from "./react/providers/AnyspendProvider";
3
+ export * from "./types/api";
3
4
  export * from "./utils/address";
4
5
  export * from "./utils/chain";
5
6
  export * from "./utils/format";
@@ -18,6 +18,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
18
18
  __exportStar(require("./react/hooks"), exports);
19
19
  // Providers
20
20
  __exportStar(require("./react/providers/AnyspendProvider"), exports);
21
+ // Types
22
+ __exportStar(require("./types/api"), exports);
21
23
  // Utils
22
24
  __exportStar(require("./utils/address"), exports);
23
25
  __exportStar(require("./utils/chain"), exports);
@@ -3,11 +3,11 @@ export declare function useAnyspendOrderAndTransactions(isMainnet: boolean, orde
3
3
  success: boolean;
4
4
  message: string;
5
5
  data: {
6
- order: import("../../types/api").components["schemas"]["Order"];
7
- depositTxs: import("../../types/api").components["schemas"]["DepositTx"][] | null;
8
- relayTx: import("../../types/api").components["schemas"]["RelayTx"] | null;
9
- executeTx: import("../../types/api").components["schemas"]["ExecuteTx"] | null;
10
- refundTxs: import("../../types/api").components["schemas"]["RefundTx"][] | null;
6
+ order: import("../..").components["schemas"]["Order"];
7
+ depositTxs: import("../..").components["schemas"]["DepositTx"][] | null;
8
+ relayTx: import("../..").components["schemas"]["RelayTx"] | null;
9
+ executeTx: import("../..").components["schemas"]["ExecuteTx"] | null;
10
+ refundTxs: import("../..").components["schemas"]["RefundTx"][] | null;
11
11
  };
12
12
  statusCode: number;
13
13
  } | undefined;
@@ -17,11 +17,11 @@ export declare function useAnyspendOrderAndTransactions(isMainnet: boolean, orde
17
17
  success: boolean;
18
18
  message: string;
19
19
  data: {
20
- order: import("../../types/api").components["schemas"]["Order"];
21
- depositTxs: import("../../types/api").components["schemas"]["DepositTx"][] | null;
22
- relayTx: import("../../types/api").components["schemas"]["RelayTx"] | null;
23
- executeTx: import("../../types/api").components["schemas"]["ExecuteTx"] | null;
24
- refundTxs: import("../../types/api").components["schemas"]["RefundTx"][] | null;
20
+ order: import("../..").components["schemas"]["Order"];
21
+ depositTxs: import("../..").components["schemas"]["DepositTx"][] | null;
22
+ relayTx: import("../..").components["schemas"]["RelayTx"] | null;
23
+ executeTx: import("../..").components["schemas"]["ExecuteTx"] | null;
24
+ refundTxs: import("../..").components["schemas"]["RefundTx"][] | null;
25
25
  };
26
26
  statusCode: number;
27
27
  }, Error>>;
@@ -14,13 +14,13 @@ export declare function useAnyspendOrderHistory(isMainnet: boolean, creatorAddre
14
14
  expiredAt: number;
15
15
  creatorAddress: string | null;
16
16
  partnerId: string | null;
17
- onrampMetadata: import("../../types/api").components["schemas"]["OnrampMetadata"] | null;
17
+ onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
18
18
  oneClickBuyUrl: string | null;
19
19
  stripePaymentIntentId: string | null;
20
20
  } & {
21
21
  type: "swap";
22
- payload: import("../../types/api").components["schemas"]["SwapPayload"];
23
- metadata: import("../../types/api").components["schemas"]["SwapMetadata"];
22
+ payload: import("../..").components["schemas"]["SwapPayload"];
23
+ metadata: import("../..").components["schemas"]["SwapMetadata"];
24
24
  }) | ({
25
25
  id: string;
26
26
  recipientAddress: string;
@@ -36,13 +36,13 @@ export declare function useAnyspendOrderHistory(isMainnet: boolean, creatorAddre
36
36
  expiredAt: number;
37
37
  creatorAddress: string | null;
38
38
  partnerId: string | null;
39
- onrampMetadata: import("../../types/api").components["schemas"]["OnrampMetadata"] | null;
39
+ onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
40
40
  oneClickBuyUrl: string | null;
41
41
  stripePaymentIntentId: string | null;
42
42
  } & {
43
43
  type: "custom";
44
- payload: import("../../types/api").components["schemas"]["CustomPayload"];
45
- metadata: import("../../types/api").components["schemas"]["CustomMetadata"];
44
+ payload: import("../..").components["schemas"]["CustomPayload"];
45
+ metadata: import("../..").components["schemas"]["CustomMetadata"];
46
46
  }) | ({
47
47
  id: string;
48
48
  recipientAddress: string;
@@ -58,13 +58,13 @@ export declare function useAnyspendOrderHistory(isMainnet: boolean, creatorAddre
58
58
  expiredAt: number;
59
59
  creatorAddress: string | null;
60
60
  partnerId: string | null;
61
- onrampMetadata: import("../../types/api").components["schemas"]["OnrampMetadata"] | null;
61
+ onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
62
62
  oneClickBuyUrl: string | null;
63
63
  stripePaymentIntentId: string | null;
64
64
  } & {
65
65
  type: "mint_nft";
66
- payload: import("../../types/api").components["schemas"]["MintNftPayload"];
67
- metadata: import("../../types/api").components["schemas"]["MintNftMetadata"];
66
+ payload: import("../..").components["schemas"]["MintNftPayload"];
67
+ metadata: import("../..").components["schemas"]["MintNftMetadata"];
68
68
  }) | ({
69
69
  id: string;
70
70
  recipientAddress: string;
@@ -80,13 +80,13 @@ export declare function useAnyspendOrderHistory(isMainnet: boolean, creatorAddre
80
80
  expiredAt: number;
81
81
  creatorAddress: string | null;
82
82
  partnerId: string | null;
83
- onrampMetadata: import("../../types/api").components["schemas"]["OnrampMetadata"] | null;
83
+ onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
84
84
  oneClickBuyUrl: string | null;
85
85
  stripePaymentIntentId: string | null;
86
86
  } & {
87
87
  type: "join_tournament";
88
- payload: import("../../types/api").components["schemas"]["JoinTournamentPayload"];
89
- metadata: import("../../types/api").components["schemas"]["TournamentMetadata"];
88
+ payload: import("../..").components["schemas"]["JoinTournamentPayload"];
89
+ metadata: import("../..").components["schemas"]["TournamentMetadata"];
90
90
  }) | ({
91
91
  id: string;
92
92
  recipientAddress: string;
@@ -102,13 +102,13 @@ export declare function useAnyspendOrderHistory(isMainnet: boolean, creatorAddre
102
102
  expiredAt: number;
103
103
  creatorAddress: string | null;
104
104
  partnerId: string | null;
105
- onrampMetadata: import("../../types/api").components["schemas"]["OnrampMetadata"] | null;
105
+ onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
106
106
  oneClickBuyUrl: string | null;
107
107
  stripePaymentIntentId: string | null;
108
108
  } & {
109
109
  type: "fund_tournament";
110
- payload: import("../../types/api").components["schemas"]["FundTournamentPayload"];
111
- metadata: import("../../types/api").components["schemas"]["TournamentMetadata"];
110
+ payload: import("../..").components["schemas"]["FundTournamentPayload"];
111
+ metadata: import("../..").components["schemas"]["TournamentMetadata"];
112
112
  }))[];
113
113
  isLoadingOrderHistory: boolean;
114
114
  getOrderHistoryError: Error | null;
@@ -127,13 +127,13 @@ export declare function useAnyspendOrderHistory(isMainnet: boolean, creatorAddre
127
127
  expiredAt: number;
128
128
  creatorAddress: string | null;
129
129
  partnerId: string | null;
130
- onrampMetadata: import("../../types/api").components["schemas"]["OnrampMetadata"] | null;
130
+ onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
131
131
  oneClickBuyUrl: string | null;
132
132
  stripePaymentIntentId: string | null;
133
133
  } & {
134
134
  type: "swap";
135
- payload: import("../../types/api").components["schemas"]["SwapPayload"];
136
- metadata: import("../../types/api").components["schemas"]["SwapMetadata"];
135
+ payload: import("../..").components["schemas"]["SwapPayload"];
136
+ metadata: import("../..").components["schemas"]["SwapMetadata"];
137
137
  }) | ({
138
138
  id: string;
139
139
  recipientAddress: string;
@@ -149,13 +149,13 @@ export declare function useAnyspendOrderHistory(isMainnet: boolean, creatorAddre
149
149
  expiredAt: number;
150
150
  creatorAddress: string | null;
151
151
  partnerId: string | null;
152
- onrampMetadata: import("../../types/api").components["schemas"]["OnrampMetadata"] | null;
152
+ onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
153
153
  oneClickBuyUrl: string | null;
154
154
  stripePaymentIntentId: string | null;
155
155
  } & {
156
156
  type: "custom";
157
- payload: import("../../types/api").components["schemas"]["CustomPayload"];
158
- metadata: import("../../types/api").components["schemas"]["CustomMetadata"];
157
+ payload: import("../..").components["schemas"]["CustomPayload"];
158
+ metadata: import("../..").components["schemas"]["CustomMetadata"];
159
159
  }) | ({
160
160
  id: string;
161
161
  recipientAddress: string;
@@ -171,13 +171,13 @@ export declare function useAnyspendOrderHistory(isMainnet: boolean, creatorAddre
171
171
  expiredAt: number;
172
172
  creatorAddress: string | null;
173
173
  partnerId: string | null;
174
- onrampMetadata: import("../../types/api").components["schemas"]["OnrampMetadata"] | null;
174
+ onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
175
175
  oneClickBuyUrl: string | null;
176
176
  stripePaymentIntentId: string | null;
177
177
  } & {
178
178
  type: "mint_nft";
179
- payload: import("../../types/api").components["schemas"]["MintNftPayload"];
180
- metadata: import("../../types/api").components["schemas"]["MintNftMetadata"];
179
+ payload: import("../..").components["schemas"]["MintNftPayload"];
180
+ metadata: import("../..").components["schemas"]["MintNftMetadata"];
181
181
  }) | ({
182
182
  id: string;
183
183
  recipientAddress: string;
@@ -193,13 +193,13 @@ export declare function useAnyspendOrderHistory(isMainnet: boolean, creatorAddre
193
193
  expiredAt: number;
194
194
  creatorAddress: string | null;
195
195
  partnerId: string | null;
196
- onrampMetadata: import("../../types/api").components["schemas"]["OnrampMetadata"] | null;
196
+ onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
197
197
  oneClickBuyUrl: string | null;
198
198
  stripePaymentIntentId: string | null;
199
199
  } & {
200
200
  type: "join_tournament";
201
- payload: import("../../types/api").components["schemas"]["JoinTournamentPayload"];
202
- metadata: import("../../types/api").components["schemas"]["TournamentMetadata"];
201
+ payload: import("../..").components["schemas"]["JoinTournamentPayload"];
202
+ metadata: import("../..").components["schemas"]["TournamentMetadata"];
203
203
  }) | ({
204
204
  id: string;
205
205
  recipientAddress: string;
@@ -215,12 +215,12 @@ export declare function useAnyspendOrderHistory(isMainnet: boolean, creatorAddre
215
215
  expiredAt: number;
216
216
  creatorAddress: string | null;
217
217
  partnerId: string | null;
218
- onrampMetadata: import("../../types/api").components["schemas"]["OnrampMetadata"] | null;
218
+ onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
219
219
  oneClickBuyUrl: string | null;
220
220
  stripePaymentIntentId: string | null;
221
221
  } & {
222
222
  type: "fund_tournament";
223
- payload: import("../../types/api").components["schemas"]["FundTournamentPayload"];
224
- metadata: import("../../types/api").components["schemas"]["TournamentMetadata"];
223
+ payload: import("../..").components["schemas"]["FundTournamentPayload"];
224
+ metadata: import("../..").components["schemas"]["TournamentMetadata"];
225
225
  }))[], Error>>;
226
226
  };
@@ -78,31 +78,6 @@ export interface paths {
78
78
  };
79
79
  };
80
80
  };
81
- "/health-check": {
82
- /**
83
- * Health check
84
- * @description Returns the health status of the AnySpend service
85
- */
86
- get: {
87
- responses: {
88
- /** @description Service is healthy */
89
- 200: {
90
- content: {
91
- "application/json": {
92
- /** @example true */
93
- success: boolean;
94
- /** @example Service is healthy */
95
- message: string;
96
- /** @example null */
97
- data?: Record<string, never> | null;
98
- /** @example 200 */
99
- statusCode: number;
100
- };
101
- };
102
- };
103
- };
104
- };
105
- };
106
81
  "/onramp/coinbase/options": {
107
82
  /**
108
83
  * Get Coinbase onramp options
@@ -1581,6 +1556,11 @@ export interface components {
1581
1556
  */
1582
1557
  createdAt: number;
1583
1558
  };
1559
+ /**
1560
+ * @description Relay transaction status
1561
+ * @enum {string}
1562
+ */
1563
+ RelayStatus: "pending" | "success" | "failure" | "refund" | "delayed" | "waiting";
1584
1564
  /** @description Cross-chain relay transaction */
1585
1565
  RelayTx: {
1586
1566
  /**
@@ -1599,12 +1579,8 @@ export interface components {
1599
1579
  * @example 0x9df917e14bb089f74763d1d2662761d75c97a5a068b8a9e411c3d384c9c40d19
1600
1580
  */
1601
1581
  txHash: string;
1602
- /**
1603
- * @description Relay transaction status
1604
- * @example success
1605
- * @enum {string}
1606
- */
1607
- status: "pending" | "success" | "failure" | "refund" | "delayed" | "waiting";
1582
+ /** @example success */
1583
+ status: components["schemas"]["RelayStatus"];
1608
1584
  /**
1609
1585
  * @description Relay timestamp
1610
1586
  * @example 1752505817654
@@ -1,3 +1,4 @@
1
+ export * from "./types/api";
1
2
  export * from "./utils/address";
2
3
  export * from "./utils/chain";
3
4
  export * from "./utils/format";
@@ -1,3 +1,5 @@
1
+ // Types
2
+ export * from "./types/api.js";
1
3
  // Utils
2
4
  export * from "./utils/address.js";
3
5
  export * from "./utils/chain.js";
@@ -1,5 +1,6 @@
1
1
  export * from "./react/hooks";
2
2
  export * from "./react/providers/AnyspendProvider";
3
+ export * from "./types/api";
3
4
  export * from "./utils/address";
4
5
  export * from "./utils/chain";
5
6
  export * from "./utils/format";
@@ -2,6 +2,8 @@
2
2
  export * from "./react/hooks/index.js";
3
3
  // Providers
4
4
  export * from "./react/providers/AnyspendProvider.js";
5
+ // Types
6
+ export * from "./types/api.js";
5
7
  // Utils
6
8
  export * from "./utils/address.js";
7
9
  export * from "./utils/chain.js";
@@ -3,11 +3,11 @@ export declare function useAnyspendOrderAndTransactions(isMainnet: boolean, orde
3
3
  success: boolean;
4
4
  message: string;
5
5
  data: {
6
- order: import("../../types/api").components["schemas"]["Order"];
7
- depositTxs: import("../../types/api").components["schemas"]["DepositTx"][] | null;
8
- relayTx: import("../../types/api").components["schemas"]["RelayTx"] | null;
9
- executeTx: import("../../types/api").components["schemas"]["ExecuteTx"] | null;
10
- refundTxs: import("../../types/api").components["schemas"]["RefundTx"][] | null;
6
+ order: import("../..").components["schemas"]["Order"];
7
+ depositTxs: import("../..").components["schemas"]["DepositTx"][] | null;
8
+ relayTx: import("../..").components["schemas"]["RelayTx"] | null;
9
+ executeTx: import("../..").components["schemas"]["ExecuteTx"] | null;
10
+ refundTxs: import("../..").components["schemas"]["RefundTx"][] | null;
11
11
  };
12
12
  statusCode: number;
13
13
  } | undefined;
@@ -17,11 +17,11 @@ export declare function useAnyspendOrderAndTransactions(isMainnet: boolean, orde
17
17
  success: boolean;
18
18
  message: string;
19
19
  data: {
20
- order: import("../../types/api").components["schemas"]["Order"];
21
- depositTxs: import("../../types/api").components["schemas"]["DepositTx"][] | null;
22
- relayTx: import("../../types/api").components["schemas"]["RelayTx"] | null;
23
- executeTx: import("../../types/api").components["schemas"]["ExecuteTx"] | null;
24
- refundTxs: import("../../types/api").components["schemas"]["RefundTx"][] | null;
20
+ order: import("../..").components["schemas"]["Order"];
21
+ depositTxs: import("../..").components["schemas"]["DepositTx"][] | null;
22
+ relayTx: import("../..").components["schemas"]["RelayTx"] | null;
23
+ executeTx: import("../..").components["schemas"]["ExecuteTx"] | null;
24
+ refundTxs: import("../..").components["schemas"]["RefundTx"][] | null;
25
25
  };
26
26
  statusCode: number;
27
27
  }, Error>>;
@@ -14,13 +14,13 @@ export declare function useAnyspendOrderHistory(isMainnet: boolean, creatorAddre
14
14
  expiredAt: number;
15
15
  creatorAddress: string | null;
16
16
  partnerId: string | null;
17
- onrampMetadata: import("../../types/api").components["schemas"]["OnrampMetadata"] | null;
17
+ onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
18
18
  oneClickBuyUrl: string | null;
19
19
  stripePaymentIntentId: string | null;
20
20
  } & {
21
21
  type: "swap";
22
- payload: import("../../types/api").components["schemas"]["SwapPayload"];
23
- metadata: import("../../types/api").components["schemas"]["SwapMetadata"];
22
+ payload: import("../..").components["schemas"]["SwapPayload"];
23
+ metadata: import("../..").components["schemas"]["SwapMetadata"];
24
24
  }) | ({
25
25
  id: string;
26
26
  recipientAddress: string;
@@ -36,13 +36,13 @@ export declare function useAnyspendOrderHistory(isMainnet: boolean, creatorAddre
36
36
  expiredAt: number;
37
37
  creatorAddress: string | null;
38
38
  partnerId: string | null;
39
- onrampMetadata: import("../../types/api").components["schemas"]["OnrampMetadata"] | null;
39
+ onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
40
40
  oneClickBuyUrl: string | null;
41
41
  stripePaymentIntentId: string | null;
42
42
  } & {
43
43
  type: "custom";
44
- payload: import("../../types/api").components["schemas"]["CustomPayload"];
45
- metadata: import("../../types/api").components["schemas"]["CustomMetadata"];
44
+ payload: import("../..").components["schemas"]["CustomPayload"];
45
+ metadata: import("../..").components["schemas"]["CustomMetadata"];
46
46
  }) | ({
47
47
  id: string;
48
48
  recipientAddress: string;
@@ -58,13 +58,13 @@ export declare function useAnyspendOrderHistory(isMainnet: boolean, creatorAddre
58
58
  expiredAt: number;
59
59
  creatorAddress: string | null;
60
60
  partnerId: string | null;
61
- onrampMetadata: import("../../types/api").components["schemas"]["OnrampMetadata"] | null;
61
+ onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
62
62
  oneClickBuyUrl: string | null;
63
63
  stripePaymentIntentId: string | null;
64
64
  } & {
65
65
  type: "mint_nft";
66
- payload: import("../../types/api").components["schemas"]["MintNftPayload"];
67
- metadata: import("../../types/api").components["schemas"]["MintNftMetadata"];
66
+ payload: import("../..").components["schemas"]["MintNftPayload"];
67
+ metadata: import("../..").components["schemas"]["MintNftMetadata"];
68
68
  }) | ({
69
69
  id: string;
70
70
  recipientAddress: string;
@@ -80,13 +80,13 @@ export declare function useAnyspendOrderHistory(isMainnet: boolean, creatorAddre
80
80
  expiredAt: number;
81
81
  creatorAddress: string | null;
82
82
  partnerId: string | null;
83
- onrampMetadata: import("../../types/api").components["schemas"]["OnrampMetadata"] | null;
83
+ onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
84
84
  oneClickBuyUrl: string | null;
85
85
  stripePaymentIntentId: string | null;
86
86
  } & {
87
87
  type: "join_tournament";
88
- payload: import("../../types/api").components["schemas"]["JoinTournamentPayload"];
89
- metadata: import("../../types/api").components["schemas"]["TournamentMetadata"];
88
+ payload: import("../..").components["schemas"]["JoinTournamentPayload"];
89
+ metadata: import("../..").components["schemas"]["TournamentMetadata"];
90
90
  }) | ({
91
91
  id: string;
92
92
  recipientAddress: string;
@@ -102,13 +102,13 @@ export declare function useAnyspendOrderHistory(isMainnet: boolean, creatorAddre
102
102
  expiredAt: number;
103
103
  creatorAddress: string | null;
104
104
  partnerId: string | null;
105
- onrampMetadata: import("../../types/api").components["schemas"]["OnrampMetadata"] | null;
105
+ onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
106
106
  oneClickBuyUrl: string | null;
107
107
  stripePaymentIntentId: string | null;
108
108
  } & {
109
109
  type: "fund_tournament";
110
- payload: import("../../types/api").components["schemas"]["FundTournamentPayload"];
111
- metadata: import("../../types/api").components["schemas"]["TournamentMetadata"];
110
+ payload: import("../..").components["schemas"]["FundTournamentPayload"];
111
+ metadata: import("../..").components["schemas"]["TournamentMetadata"];
112
112
  }))[];
113
113
  isLoadingOrderHistory: boolean;
114
114
  getOrderHistoryError: Error | null;
@@ -127,13 +127,13 @@ export declare function useAnyspendOrderHistory(isMainnet: boolean, creatorAddre
127
127
  expiredAt: number;
128
128
  creatorAddress: string | null;
129
129
  partnerId: string | null;
130
- onrampMetadata: import("../../types/api").components["schemas"]["OnrampMetadata"] | null;
130
+ onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
131
131
  oneClickBuyUrl: string | null;
132
132
  stripePaymentIntentId: string | null;
133
133
  } & {
134
134
  type: "swap";
135
- payload: import("../../types/api").components["schemas"]["SwapPayload"];
136
- metadata: import("../../types/api").components["schemas"]["SwapMetadata"];
135
+ payload: import("../..").components["schemas"]["SwapPayload"];
136
+ metadata: import("../..").components["schemas"]["SwapMetadata"];
137
137
  }) | ({
138
138
  id: string;
139
139
  recipientAddress: string;
@@ -149,13 +149,13 @@ export declare function useAnyspendOrderHistory(isMainnet: boolean, creatorAddre
149
149
  expiredAt: number;
150
150
  creatorAddress: string | null;
151
151
  partnerId: string | null;
152
- onrampMetadata: import("../../types/api").components["schemas"]["OnrampMetadata"] | null;
152
+ onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
153
153
  oneClickBuyUrl: string | null;
154
154
  stripePaymentIntentId: string | null;
155
155
  } & {
156
156
  type: "custom";
157
- payload: import("../../types/api").components["schemas"]["CustomPayload"];
158
- metadata: import("../../types/api").components["schemas"]["CustomMetadata"];
157
+ payload: import("../..").components["schemas"]["CustomPayload"];
158
+ metadata: import("../..").components["schemas"]["CustomMetadata"];
159
159
  }) | ({
160
160
  id: string;
161
161
  recipientAddress: string;
@@ -171,13 +171,13 @@ export declare function useAnyspendOrderHistory(isMainnet: boolean, creatorAddre
171
171
  expiredAt: number;
172
172
  creatorAddress: string | null;
173
173
  partnerId: string | null;
174
- onrampMetadata: import("../../types/api").components["schemas"]["OnrampMetadata"] | null;
174
+ onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
175
175
  oneClickBuyUrl: string | null;
176
176
  stripePaymentIntentId: string | null;
177
177
  } & {
178
178
  type: "mint_nft";
179
- payload: import("../../types/api").components["schemas"]["MintNftPayload"];
180
- metadata: import("../../types/api").components["schemas"]["MintNftMetadata"];
179
+ payload: import("../..").components["schemas"]["MintNftPayload"];
180
+ metadata: import("../..").components["schemas"]["MintNftMetadata"];
181
181
  }) | ({
182
182
  id: string;
183
183
  recipientAddress: string;
@@ -193,13 +193,13 @@ export declare function useAnyspendOrderHistory(isMainnet: boolean, creatorAddre
193
193
  expiredAt: number;
194
194
  creatorAddress: string | null;
195
195
  partnerId: string | null;
196
- onrampMetadata: import("../../types/api").components["schemas"]["OnrampMetadata"] | null;
196
+ onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
197
197
  oneClickBuyUrl: string | null;
198
198
  stripePaymentIntentId: string | null;
199
199
  } & {
200
200
  type: "join_tournament";
201
- payload: import("../../types/api").components["schemas"]["JoinTournamentPayload"];
202
- metadata: import("../../types/api").components["schemas"]["TournamentMetadata"];
201
+ payload: import("../..").components["schemas"]["JoinTournamentPayload"];
202
+ metadata: import("../..").components["schemas"]["TournamentMetadata"];
203
203
  }) | ({
204
204
  id: string;
205
205
  recipientAddress: string;
@@ -215,12 +215,12 @@ export declare function useAnyspendOrderHistory(isMainnet: boolean, creatorAddre
215
215
  expiredAt: number;
216
216
  creatorAddress: string | null;
217
217
  partnerId: string | null;
218
- onrampMetadata: import("../../types/api").components["schemas"]["OnrampMetadata"] | null;
218
+ onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
219
219
  oneClickBuyUrl: string | null;
220
220
  stripePaymentIntentId: string | null;
221
221
  } & {
222
222
  type: "fund_tournament";
223
- payload: import("../../types/api").components["schemas"]["FundTournamentPayload"];
224
- metadata: import("../../types/api").components["schemas"]["TournamentMetadata"];
223
+ payload: import("../..").components["schemas"]["FundTournamentPayload"];
224
+ metadata: import("../..").components["schemas"]["TournamentMetadata"];
225
225
  }))[], Error>>;
226
226
  };
@@ -78,31 +78,6 @@ export interface paths {
78
78
  };
79
79
  };
80
80
  };
81
- "/health-check": {
82
- /**
83
- * Health check
84
- * @description Returns the health status of the AnySpend service
85
- */
86
- get: {
87
- responses: {
88
- /** @description Service is healthy */
89
- 200: {
90
- content: {
91
- "application/json": {
92
- /** @example true */
93
- success: boolean;
94
- /** @example Service is healthy */
95
- message: string;
96
- /** @example null */
97
- data?: Record<string, never> | null;
98
- /** @example 200 */
99
- statusCode: number;
100
- };
101
- };
102
- };
103
- };
104
- };
105
- };
106
81
  "/onramp/coinbase/options": {
107
82
  /**
108
83
  * Get Coinbase onramp options
@@ -1581,6 +1556,11 @@ export interface components {
1581
1556
  */
1582
1557
  createdAt: number;
1583
1558
  };
1559
+ /**
1560
+ * @description Relay transaction status
1561
+ * @enum {string}
1562
+ */
1563
+ RelayStatus: "pending" | "success" | "failure" | "refund" | "delayed" | "waiting";
1584
1564
  /** @description Cross-chain relay transaction */
1585
1565
  RelayTx: {
1586
1566
  /**
@@ -1599,12 +1579,8 @@ export interface components {
1599
1579
  * @example 0x9df917e14bb089f74763d1d2662761d75c97a5a068b8a9e411c3d384c9c40d19
1600
1580
  */
1601
1581
  txHash: string;
1602
- /**
1603
- * @description Relay transaction status
1604
- * @example success
1605
- * @enum {string}
1606
- */
1607
- status: "pending" | "success" | "failure" | "refund" | "delayed" | "waiting";
1582
+ /** @example success */
1583
+ status: components["schemas"]["RelayStatus"];
1608
1584
  /**
1609
1585
  * @description Relay timestamp
1610
1586
  * @example 1752505817654
@@ -1,3 +1,4 @@
1
+ export * from "./types/api";
1
2
  export * from "./utils/address";
2
3
  export * from "./utils/chain";
3
4
  export * from "./utils/format";
@@ -1,5 +1,6 @@
1
1
  export * from "./react/hooks";
2
2
  export * from "./react/providers/AnyspendProvider";
3
+ export * from "./types/api";
3
4
  export * from "./utils/address";
4
5
  export * from "./utils/chain";
5
6
  export * from "./utils/format";
@@ -3,11 +3,11 @@ export declare function useAnyspendOrderAndTransactions(isMainnet: boolean, orde
3
3
  success: boolean;
4
4
  message: string;
5
5
  data: {
6
- order: import("../../types/api").components["schemas"]["Order"];
7
- depositTxs: import("../../types/api").components["schemas"]["DepositTx"][] | null;
8
- relayTx: import("../../types/api").components["schemas"]["RelayTx"] | null;
9
- executeTx: import("../../types/api").components["schemas"]["ExecuteTx"] | null;
10
- refundTxs: import("../../types/api").components["schemas"]["RefundTx"][] | null;
6
+ order: import("../..").components["schemas"]["Order"];
7
+ depositTxs: import("../..").components["schemas"]["DepositTx"][] | null;
8
+ relayTx: import("../..").components["schemas"]["RelayTx"] | null;
9
+ executeTx: import("../..").components["schemas"]["ExecuteTx"] | null;
10
+ refundTxs: import("../..").components["schemas"]["RefundTx"][] | null;
11
11
  };
12
12
  statusCode: number;
13
13
  } | undefined;
@@ -17,11 +17,11 @@ export declare function useAnyspendOrderAndTransactions(isMainnet: boolean, orde
17
17
  success: boolean;
18
18
  message: string;
19
19
  data: {
20
- order: import("../../types/api").components["schemas"]["Order"];
21
- depositTxs: import("../../types/api").components["schemas"]["DepositTx"][] | null;
22
- relayTx: import("../../types/api").components["schemas"]["RelayTx"] | null;
23
- executeTx: import("../../types/api").components["schemas"]["ExecuteTx"] | null;
24
- refundTxs: import("../../types/api").components["schemas"]["RefundTx"][] | null;
20
+ order: import("../..").components["schemas"]["Order"];
21
+ depositTxs: import("../..").components["schemas"]["DepositTx"][] | null;
22
+ relayTx: import("../..").components["schemas"]["RelayTx"] | null;
23
+ executeTx: import("../..").components["schemas"]["ExecuteTx"] | null;
24
+ refundTxs: import("../..").components["schemas"]["RefundTx"][] | null;
25
25
  };
26
26
  statusCode: number;
27
27
  }, Error>>;
@@ -14,13 +14,13 @@ export declare function useAnyspendOrderHistory(isMainnet: boolean, creatorAddre
14
14
  expiredAt: number;
15
15
  creatorAddress: string | null;
16
16
  partnerId: string | null;
17
- onrampMetadata: import("../../types/api").components["schemas"]["OnrampMetadata"] | null;
17
+ onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
18
18
  oneClickBuyUrl: string | null;
19
19
  stripePaymentIntentId: string | null;
20
20
  } & {
21
21
  type: "swap";
22
- payload: import("../../types/api").components["schemas"]["SwapPayload"];
23
- metadata: import("../../types/api").components["schemas"]["SwapMetadata"];
22
+ payload: import("../..").components["schemas"]["SwapPayload"];
23
+ metadata: import("../..").components["schemas"]["SwapMetadata"];
24
24
  }) | ({
25
25
  id: string;
26
26
  recipientAddress: string;
@@ -36,13 +36,13 @@ export declare function useAnyspendOrderHistory(isMainnet: boolean, creatorAddre
36
36
  expiredAt: number;
37
37
  creatorAddress: string | null;
38
38
  partnerId: string | null;
39
- onrampMetadata: import("../../types/api").components["schemas"]["OnrampMetadata"] | null;
39
+ onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
40
40
  oneClickBuyUrl: string | null;
41
41
  stripePaymentIntentId: string | null;
42
42
  } & {
43
43
  type: "custom";
44
- payload: import("../../types/api").components["schemas"]["CustomPayload"];
45
- metadata: import("../../types/api").components["schemas"]["CustomMetadata"];
44
+ payload: import("../..").components["schemas"]["CustomPayload"];
45
+ metadata: import("../..").components["schemas"]["CustomMetadata"];
46
46
  }) | ({
47
47
  id: string;
48
48
  recipientAddress: string;
@@ -58,13 +58,13 @@ export declare function useAnyspendOrderHistory(isMainnet: boolean, creatorAddre
58
58
  expiredAt: number;
59
59
  creatorAddress: string | null;
60
60
  partnerId: string | null;
61
- onrampMetadata: import("../../types/api").components["schemas"]["OnrampMetadata"] | null;
61
+ onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
62
62
  oneClickBuyUrl: string | null;
63
63
  stripePaymentIntentId: string | null;
64
64
  } & {
65
65
  type: "mint_nft";
66
- payload: import("../../types/api").components["schemas"]["MintNftPayload"];
67
- metadata: import("../../types/api").components["schemas"]["MintNftMetadata"];
66
+ payload: import("../..").components["schemas"]["MintNftPayload"];
67
+ metadata: import("../..").components["schemas"]["MintNftMetadata"];
68
68
  }) | ({
69
69
  id: string;
70
70
  recipientAddress: string;
@@ -80,13 +80,13 @@ export declare function useAnyspendOrderHistory(isMainnet: boolean, creatorAddre
80
80
  expiredAt: number;
81
81
  creatorAddress: string | null;
82
82
  partnerId: string | null;
83
- onrampMetadata: import("../../types/api").components["schemas"]["OnrampMetadata"] | null;
83
+ onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
84
84
  oneClickBuyUrl: string | null;
85
85
  stripePaymentIntentId: string | null;
86
86
  } & {
87
87
  type: "join_tournament";
88
- payload: import("../../types/api").components["schemas"]["JoinTournamentPayload"];
89
- metadata: import("../../types/api").components["schemas"]["TournamentMetadata"];
88
+ payload: import("../..").components["schemas"]["JoinTournamentPayload"];
89
+ metadata: import("../..").components["schemas"]["TournamentMetadata"];
90
90
  }) | ({
91
91
  id: string;
92
92
  recipientAddress: string;
@@ -102,13 +102,13 @@ export declare function useAnyspendOrderHistory(isMainnet: boolean, creatorAddre
102
102
  expiredAt: number;
103
103
  creatorAddress: string | null;
104
104
  partnerId: string | null;
105
- onrampMetadata: import("../../types/api").components["schemas"]["OnrampMetadata"] | null;
105
+ onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
106
106
  oneClickBuyUrl: string | null;
107
107
  stripePaymentIntentId: string | null;
108
108
  } & {
109
109
  type: "fund_tournament";
110
- payload: import("../../types/api").components["schemas"]["FundTournamentPayload"];
111
- metadata: import("../../types/api").components["schemas"]["TournamentMetadata"];
110
+ payload: import("../..").components["schemas"]["FundTournamentPayload"];
111
+ metadata: import("../..").components["schemas"]["TournamentMetadata"];
112
112
  }))[];
113
113
  isLoadingOrderHistory: boolean;
114
114
  getOrderHistoryError: Error | null;
@@ -127,13 +127,13 @@ export declare function useAnyspendOrderHistory(isMainnet: boolean, creatorAddre
127
127
  expiredAt: number;
128
128
  creatorAddress: string | null;
129
129
  partnerId: string | null;
130
- onrampMetadata: import("../../types/api").components["schemas"]["OnrampMetadata"] | null;
130
+ onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
131
131
  oneClickBuyUrl: string | null;
132
132
  stripePaymentIntentId: string | null;
133
133
  } & {
134
134
  type: "swap";
135
- payload: import("../../types/api").components["schemas"]["SwapPayload"];
136
- metadata: import("../../types/api").components["schemas"]["SwapMetadata"];
135
+ payload: import("../..").components["schemas"]["SwapPayload"];
136
+ metadata: import("../..").components["schemas"]["SwapMetadata"];
137
137
  }) | ({
138
138
  id: string;
139
139
  recipientAddress: string;
@@ -149,13 +149,13 @@ export declare function useAnyspendOrderHistory(isMainnet: boolean, creatorAddre
149
149
  expiredAt: number;
150
150
  creatorAddress: string | null;
151
151
  partnerId: string | null;
152
- onrampMetadata: import("../../types/api").components["schemas"]["OnrampMetadata"] | null;
152
+ onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
153
153
  oneClickBuyUrl: string | null;
154
154
  stripePaymentIntentId: string | null;
155
155
  } & {
156
156
  type: "custom";
157
- payload: import("../../types/api").components["schemas"]["CustomPayload"];
158
- metadata: import("../../types/api").components["schemas"]["CustomMetadata"];
157
+ payload: import("../..").components["schemas"]["CustomPayload"];
158
+ metadata: import("../..").components["schemas"]["CustomMetadata"];
159
159
  }) | ({
160
160
  id: string;
161
161
  recipientAddress: string;
@@ -171,13 +171,13 @@ export declare function useAnyspendOrderHistory(isMainnet: boolean, creatorAddre
171
171
  expiredAt: number;
172
172
  creatorAddress: string | null;
173
173
  partnerId: string | null;
174
- onrampMetadata: import("../../types/api").components["schemas"]["OnrampMetadata"] | null;
174
+ onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
175
175
  oneClickBuyUrl: string | null;
176
176
  stripePaymentIntentId: string | null;
177
177
  } & {
178
178
  type: "mint_nft";
179
- payload: import("../../types/api").components["schemas"]["MintNftPayload"];
180
- metadata: import("../../types/api").components["schemas"]["MintNftMetadata"];
179
+ payload: import("../..").components["schemas"]["MintNftPayload"];
180
+ metadata: import("../..").components["schemas"]["MintNftMetadata"];
181
181
  }) | ({
182
182
  id: string;
183
183
  recipientAddress: string;
@@ -193,13 +193,13 @@ export declare function useAnyspendOrderHistory(isMainnet: boolean, creatorAddre
193
193
  expiredAt: number;
194
194
  creatorAddress: string | null;
195
195
  partnerId: string | null;
196
- onrampMetadata: import("../../types/api").components["schemas"]["OnrampMetadata"] | null;
196
+ onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
197
197
  oneClickBuyUrl: string | null;
198
198
  stripePaymentIntentId: string | null;
199
199
  } & {
200
200
  type: "join_tournament";
201
- payload: import("../../types/api").components["schemas"]["JoinTournamentPayload"];
202
- metadata: import("../../types/api").components["schemas"]["TournamentMetadata"];
201
+ payload: import("../..").components["schemas"]["JoinTournamentPayload"];
202
+ metadata: import("../..").components["schemas"]["TournamentMetadata"];
203
203
  }) | ({
204
204
  id: string;
205
205
  recipientAddress: string;
@@ -215,12 +215,12 @@ export declare function useAnyspendOrderHistory(isMainnet: boolean, creatorAddre
215
215
  expiredAt: number;
216
216
  creatorAddress: string | null;
217
217
  partnerId: string | null;
218
- onrampMetadata: import("../../types/api").components["schemas"]["OnrampMetadata"] | null;
218
+ onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
219
219
  oneClickBuyUrl: string | null;
220
220
  stripePaymentIntentId: string | null;
221
221
  } & {
222
222
  type: "fund_tournament";
223
- payload: import("../../types/api").components["schemas"]["FundTournamentPayload"];
224
- metadata: import("../../types/api").components["schemas"]["TournamentMetadata"];
223
+ payload: import("../..").components["schemas"]["FundTournamentPayload"];
224
+ metadata: import("../..").components["schemas"]["TournamentMetadata"];
225
225
  }))[], Error>>;
226
226
  };
@@ -78,31 +78,6 @@ export interface paths {
78
78
  };
79
79
  };
80
80
  };
81
- "/health-check": {
82
- /**
83
- * Health check
84
- * @description Returns the health status of the AnySpend service
85
- */
86
- get: {
87
- responses: {
88
- /** @description Service is healthy */
89
- 200: {
90
- content: {
91
- "application/json": {
92
- /** @example true */
93
- success: boolean;
94
- /** @example Service is healthy */
95
- message: string;
96
- /** @example null */
97
- data?: Record<string, never> | null;
98
- /** @example 200 */
99
- statusCode: number;
100
- };
101
- };
102
- };
103
- };
104
- };
105
- };
106
81
  "/onramp/coinbase/options": {
107
82
  /**
108
83
  * Get Coinbase onramp options
@@ -1581,6 +1556,11 @@ export interface components {
1581
1556
  */
1582
1557
  createdAt: number;
1583
1558
  };
1559
+ /**
1560
+ * @description Relay transaction status
1561
+ * @enum {string}
1562
+ */
1563
+ RelayStatus: "pending" | "success" | "failure" | "refund" | "delayed" | "waiting";
1584
1564
  /** @description Cross-chain relay transaction */
1585
1565
  RelayTx: {
1586
1566
  /**
@@ -1599,12 +1579,8 @@ export interface components {
1599
1579
  * @example 0x9df917e14bb089f74763d1d2662761d75c97a5a068b8a9e411c3d384c9c40d19
1600
1580
  */
1601
1581
  txHash: string;
1602
- /**
1603
- * @description Relay transaction status
1604
- * @example success
1605
- * @enum {string}
1606
- */
1607
- status: "pending" | "success" | "failure" | "refund" | "delayed" | "waiting";
1582
+ /** @example success */
1583
+ status: components["schemas"]["RelayStatus"];
1608
1584
  /**
1609
1585
  * @description Relay timestamp
1610
1586
  * @example 1752505817654
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@b3dotfun/sdk",
3
- "version": "0.0.9-alpha.0",
3
+ "version": "0.0.9-alpha.2",
4
4
  "source": "src/index.ts",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "react-native": "./dist/cjs/index.native.js",
@@ -4,6 +4,9 @@ export * from "./react/hooks";
4
4
  // Providers
5
5
  export * from "./react/providers/AnyspendProvider";
6
6
 
7
+ // Types
8
+ export * from "./types/api";
9
+
7
10
  // Utils
8
11
  export * from "./utils/address";
9
12
  export * from "./utils/chain";
@@ -1,3 +1,6 @@
1
+ // Types
2
+ export * from "./types/api";
3
+
1
4
  // Utils
2
5
  export * from "./utils/address";
3
6
  export * from "./utils/chain";
@@ -79,31 +79,6 @@ export interface paths {
79
79
  };
80
80
  };
81
81
  };
82
- "/health-check": {
83
- /**
84
- * Health check
85
- * @description Returns the health status of the AnySpend service
86
- */
87
- get: {
88
- responses: {
89
- /** @description Service is healthy */
90
- 200: {
91
- content: {
92
- "application/json": {
93
- /** @example true */
94
- success: boolean;
95
- /** @example Service is healthy */
96
- message: string;
97
- /** @example null */
98
- data?: Record<string, never> | null;
99
- /** @example 200 */
100
- statusCode: number;
101
- };
102
- };
103
- };
104
- };
105
- };
106
- };
107
82
  "/onramp/coinbase/options": {
108
83
  /**
109
84
  * Get Coinbase onramp options
@@ -1606,6 +1581,11 @@ export interface components {
1606
1581
  */
1607
1582
  createdAt: number;
1608
1583
  };
1584
+ /**
1585
+ * @description Relay transaction status
1586
+ * @enum {string}
1587
+ */
1588
+ RelayStatus: "pending" | "success" | "failure" | "refund" | "delayed" | "waiting";
1609
1589
  /** @description Cross-chain relay transaction */
1610
1590
  RelayTx: {
1611
1591
  /**
@@ -1624,12 +1604,8 @@ export interface components {
1624
1604
  * @example 0x9df917e14bb089f74763d1d2662761d75c97a5a068b8a9e411c3d384c9c40d19
1625
1605
  */
1626
1606
  txHash: string;
1627
- /**
1628
- * @description Relay transaction status
1629
- * @example success
1630
- * @enum {string}
1631
- */
1632
- status: "pending" | "success" | "failure" | "refund" | "delayed" | "waiting";
1607
+ /** @example success */
1608
+ status: components["schemas"]["RelayStatus"];
1633
1609
  /**
1634
1610
  * @description Relay timestamp
1635
1611
  * @example 1752505817654