@helium/blockchain-api 0.1.2 → 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.
- package/README.md +106 -49
- package/dist/index.d.ts +2382 -0
- package/dist/index.js +852 -0
- package/package.json +36 -126
- package/src/server/api/errors.ts +0 -152
- package/src/server/api/index.ts +0 -40
- package/src/server/api/procedures.ts +0 -144
- package/src/server/api/routers/fiat/router.ts +0 -709
- package/src/server/api/routers/fiat/schemas.ts +0 -169
- package/src/server/api/routers/health/router.ts +0 -41
- package/src/server/api/routers/hotspots/procedures/claimRewards.ts +0 -258
- package/src/server/api/routers/hotspots/procedures/createSplit.ts +0 -253
- package/src/server/api/routers/hotspots/procedures/deleteSplit.ts +0 -156
- package/src/server/api/routers/hotspots/procedures/getHotspots.ts +0 -31
- package/src/server/api/routers/hotspots/procedures/getPendingRewards.ts +0 -44
- package/src/server/api/routers/hotspots/procedures/getSplit.ts +0 -88
- package/src/server/api/routers/hotspots/procedures/transferHotspot.ts +0 -204
- package/src/server/api/routers/hotspots/procedures/updateRewardsDestination.ts +0 -201
- package/src/server/api/routers/hotspots/router.ts +0 -30
- package/src/server/api/routers/hotspots/schemas.ts +0 -182
- package/src/server/api/routers/swap/procedures/getInstructions.ts +0 -152
- package/src/server/api/routers/swap/procedures/getQuote.ts +0 -53
- package/src/server/api/routers/swap/procedures/getTokens.ts +0 -88
- package/src/server/api/routers/swap/router.ts +0 -15
- package/src/server/api/routers/swap/schemas.ts +0 -96
- package/src/server/api/routers/tokens/procedures/createHntAccount.ts +0 -87
- package/src/server/api/routers/tokens/procedures/getBalances.ts +0 -27
- package/src/server/api/routers/tokens/procedures/transfer.ts +0 -159
- package/src/server/api/routers/tokens/router.ts +0 -15
- package/src/server/api/routers/tokens/schemas.ts +0 -80
- package/src/server/api/routers/transactions/procedures/get.ts +0 -46
- package/src/server/api/routers/transactions/procedures/getByPayer.ts +0 -111
- package/src/server/api/routers/transactions/procedures/getByPayerAndTag.ts +0 -119
- package/src/server/api/routers/transactions/procedures/resubmit.ts +0 -68
- package/src/server/api/routers/transactions/procedures/submit.ts +0 -216
- package/src/server/api/routers/transactions/router.ts +0 -21
- package/src/server/api/routers/transactions/schemas.ts +0 -119
- package/src/server/api/routers/webhooks/router.ts +0 -75
- package/src/server/api/routers/welcomePacks/procedures/claim.ts +0 -157
- package/src/server/api/routers/welcomePacks/procedures/create.ts +0 -247
- package/src/server/api/routers/welcomePacks/procedures/deletePack.ts +0 -118
- package/src/server/api/routers/welcomePacks/procedures/get.ts +0 -36
- package/src/server/api/routers/welcomePacks/procedures/getByAddress.ts +0 -26
- package/src/server/api/routers/welcomePacks/procedures/invite.ts +0 -44
- package/src/server/api/routers/welcomePacks/procedures/list.ts +0 -27
- package/src/server/api/routers/welcomePacks/router.ts +0 -27
- package/src/server/api/routers/welcomePacks/schemas.ts +0 -135
- package/src/server/api/schemas.ts +0 -281
- package/tsconfig.json +0 -45
- package/types/README.md +0 -86
- package/types/index.ts +0 -27
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,2382 @@
|
|
|
1
|
+
import * as zod from 'zod';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import * as zod_v4_core from 'zod/v4/core';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Client configuration options.
|
|
7
|
+
*/
|
|
8
|
+
interface ClientOptions {
|
|
9
|
+
/** Base URL of the Helium API server (e.g., "https://api.helium.com") */
|
|
10
|
+
url: string;
|
|
11
|
+
/** Transport protocol: "rpc" (default) or "rest" */
|
|
12
|
+
transport?: "rpc" | "rest";
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Complete API contract definition.
|
|
17
|
+
* Defines all routes, inputs, outputs, and errors for the Helium Blockchain API.
|
|
18
|
+
*/
|
|
19
|
+
declare const apiContract: {
|
|
20
|
+
readonly health: {
|
|
21
|
+
readonly check: {
|
|
22
|
+
readonly route: {
|
|
23
|
+
readonly method: "GET";
|
|
24
|
+
readonly path: "/health";
|
|
25
|
+
};
|
|
26
|
+
readonly output: zod.ZodObject<{
|
|
27
|
+
ok: zod.ZodBoolean;
|
|
28
|
+
error: zod.ZodOptional<zod.ZodString>;
|
|
29
|
+
}, zod_v4_core.$strip>;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
readonly tokens: {
|
|
33
|
+
readonly getBalances: {
|
|
34
|
+
readonly route: {
|
|
35
|
+
readonly method: "GET";
|
|
36
|
+
readonly path: "/tokens/{walletAddress}";
|
|
37
|
+
};
|
|
38
|
+
readonly input: zod.ZodObject<{
|
|
39
|
+
walletAddress: zod.ZodString;
|
|
40
|
+
}, zod_v4_core.$strip>;
|
|
41
|
+
readonly output: zod.ZodObject<{
|
|
42
|
+
totalBalanceUsd: zod.ZodNumber;
|
|
43
|
+
solBalance: zod.ZodNumber;
|
|
44
|
+
solBalanceUsd: zod.ZodNumber;
|
|
45
|
+
tokens: zod.ZodArray<zod.ZodObject<{
|
|
46
|
+
mint: zod.ZodString;
|
|
47
|
+
address: zod.ZodString;
|
|
48
|
+
balance: zod.ZodString;
|
|
49
|
+
decimals: zod.ZodNumber;
|
|
50
|
+
uiAmount: zod.ZodNumber;
|
|
51
|
+
symbol: zod.ZodOptional<zod.ZodString>;
|
|
52
|
+
name: zod.ZodOptional<zod.ZodString>;
|
|
53
|
+
logoURI: zod.ZodOptional<zod.ZodString>;
|
|
54
|
+
priceUsd: zod.ZodOptional<zod.ZodNumber>;
|
|
55
|
+
balanceUsd: zod.ZodOptional<zod.ZodNumber>;
|
|
56
|
+
}, zod_v4_core.$strip>>;
|
|
57
|
+
}, zod_v4_core.$strip>;
|
|
58
|
+
readonly errors: {
|
|
59
|
+
readonly BAD_REQUEST: {
|
|
60
|
+
readonly message: "Wallet address is required";
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
readonly transfer: {
|
|
65
|
+
readonly route: {
|
|
66
|
+
readonly method: "POST";
|
|
67
|
+
readonly path: "/tokens/transfer";
|
|
68
|
+
};
|
|
69
|
+
readonly input: zod.ZodObject<{
|
|
70
|
+
walletAddress: zod.ZodString;
|
|
71
|
+
mint: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
72
|
+
destination: zod.ZodString;
|
|
73
|
+
amount: zod.ZodString;
|
|
74
|
+
decimals: zod.ZodOptional<zod.ZodNumber>;
|
|
75
|
+
}, zod_v4_core.$strip>;
|
|
76
|
+
readonly output: zod.ZodObject<{
|
|
77
|
+
transactionData: zod.ZodObject<{
|
|
78
|
+
transactions: zod.ZodArray<zod.ZodObject<{
|
|
79
|
+
serializedTransaction: zod.ZodString;
|
|
80
|
+
metadata: zod.ZodOptional<zod.ZodObject<{
|
|
81
|
+
type: zod.ZodString;
|
|
82
|
+
description: zod.ZodString;
|
|
83
|
+
}, zod_v4_core.$catchall<zod.ZodUnknown>>>;
|
|
84
|
+
}, zod_v4_core.$strip>>;
|
|
85
|
+
parallel: zod.ZodBoolean;
|
|
86
|
+
tag: zod.ZodOptional<zod.ZodString>;
|
|
87
|
+
}, zod_v4_core.$strip>;
|
|
88
|
+
}, zod_v4_core.$strip>;
|
|
89
|
+
readonly errors: {
|
|
90
|
+
readonly BAD_REQUEST: {
|
|
91
|
+
readonly message: "Invalid transfer parameters";
|
|
92
|
+
};
|
|
93
|
+
readonly INSUFFICIENT_FUNDS: {
|
|
94
|
+
readonly message: "Insufficient balance for transfer";
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
readonly createHntAccount: {
|
|
99
|
+
readonly route: {
|
|
100
|
+
readonly method: "POST";
|
|
101
|
+
readonly path: "/tokens/hnt-account";
|
|
102
|
+
};
|
|
103
|
+
readonly input: zod.ZodObject<{
|
|
104
|
+
walletAddress: zod.ZodString;
|
|
105
|
+
}, zod_v4_core.$strip>;
|
|
106
|
+
readonly output: zod.ZodObject<{
|
|
107
|
+
transactionData: zod.ZodObject<{
|
|
108
|
+
transactions: zod.ZodArray<zod.ZodObject<{
|
|
109
|
+
serializedTransaction: zod.ZodString;
|
|
110
|
+
metadata: zod.ZodOptional<zod.ZodObject<{
|
|
111
|
+
type: zod.ZodString;
|
|
112
|
+
description: zod.ZodString;
|
|
113
|
+
}, zod_v4_core.$catchall<zod.ZodUnknown>>>;
|
|
114
|
+
}, zod_v4_core.$strip>>;
|
|
115
|
+
parallel: zod.ZodBoolean;
|
|
116
|
+
tag: zod.ZodOptional<zod.ZodString>;
|
|
117
|
+
}, zod_v4_core.$strip>;
|
|
118
|
+
}, zod_v4_core.$strip>;
|
|
119
|
+
readonly errors: {
|
|
120
|
+
readonly BAD_REQUEST: {
|
|
121
|
+
readonly message: "Invalid wallet address";
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
readonly hotspots: {
|
|
127
|
+
readonly getHotspots: {
|
|
128
|
+
readonly route: {
|
|
129
|
+
readonly method: "GET";
|
|
130
|
+
readonly path: "/hotspots/wallet/{walletAddress}";
|
|
131
|
+
};
|
|
132
|
+
readonly input: zod.ZodObject<{
|
|
133
|
+
walletAddress: zod.ZodString;
|
|
134
|
+
type: zod.ZodOptional<zod.ZodEnum<{
|
|
135
|
+
iot: "iot";
|
|
136
|
+
mobile: "mobile";
|
|
137
|
+
all: "all";
|
|
138
|
+
}>>;
|
|
139
|
+
page: zod.ZodDefault<zod.ZodCoercedNumber<unknown>>;
|
|
140
|
+
limit: zod.ZodDefault<zod.ZodCoercedNumber<unknown>>;
|
|
141
|
+
}, zod_v4_core.$strip>;
|
|
142
|
+
readonly output: zod.ZodObject<{
|
|
143
|
+
hotspots: zod.ZodArray<zod.ZodObject<{
|
|
144
|
+
address: zod.ZodString;
|
|
145
|
+
entityKey: zod.ZodString;
|
|
146
|
+
name: zod.ZodString;
|
|
147
|
+
type: zod.ZodEnum<{
|
|
148
|
+
iot: "iot";
|
|
149
|
+
mobile: "mobile";
|
|
150
|
+
all: "all";
|
|
151
|
+
}>;
|
|
152
|
+
deviceType: zod.ZodEnum<{
|
|
153
|
+
"iot-gateway": "iot-gateway";
|
|
154
|
+
wifiIndoor: "wifiIndoor";
|
|
155
|
+
wifiOutdoor: "wifiOutdoor";
|
|
156
|
+
wifiDataOnly: "wifiDataOnly";
|
|
157
|
+
cbrs: "cbrs";
|
|
158
|
+
}>;
|
|
159
|
+
city: zod.ZodOptional<zod.ZodString>;
|
|
160
|
+
state: zod.ZodOptional<zod.ZodString>;
|
|
161
|
+
country: zod.ZodOptional<zod.ZodString>;
|
|
162
|
+
asset: zod.ZodString;
|
|
163
|
+
isOnline: zod.ZodOptional<zod.ZodBoolean>;
|
|
164
|
+
owner: zod.ZodOptional<zod.ZodString>;
|
|
165
|
+
shares: zod.ZodOptional<zod.ZodObject<{
|
|
166
|
+
fixed: zod.ZodOptional<zod.ZodString>;
|
|
167
|
+
percentage: zod.ZodOptional<zod.ZodNumber>;
|
|
168
|
+
}, zod_v4_core.$strip>>;
|
|
169
|
+
ownershipType: zod.ZodString;
|
|
170
|
+
}, zod_v4_core.$strip>>;
|
|
171
|
+
total: zod.ZodNumber;
|
|
172
|
+
page: zod.ZodNumber;
|
|
173
|
+
totalPages: zod.ZodNumber;
|
|
174
|
+
}, zod_v4_core.$strip>;
|
|
175
|
+
readonly errors: {
|
|
176
|
+
readonly BAD_REQUEST: {
|
|
177
|
+
readonly message: "Invalid wallet address";
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
readonly claimRewards: {
|
|
182
|
+
readonly route: {
|
|
183
|
+
readonly method: "POST";
|
|
184
|
+
readonly path: "/hotspots/claim-rewards";
|
|
185
|
+
};
|
|
186
|
+
readonly input: zod.ZodObject<{
|
|
187
|
+
walletAddress: zod.ZodString;
|
|
188
|
+
}, zod_v4_core.$strip>;
|
|
189
|
+
readonly output: zod.ZodObject<{
|
|
190
|
+
transactionData: zod.ZodObject<{
|
|
191
|
+
transactions: zod.ZodArray<zod.ZodObject<{
|
|
192
|
+
serializedTransaction: zod.ZodString;
|
|
193
|
+
metadata: zod.ZodOptional<zod.ZodObject<{
|
|
194
|
+
type: zod.ZodString;
|
|
195
|
+
description: zod.ZodString;
|
|
196
|
+
}, zod_v4_core.$catchall<zod.ZodUnknown>>>;
|
|
197
|
+
}, zod_v4_core.$strip>>;
|
|
198
|
+
parallel: zod.ZodBoolean;
|
|
199
|
+
tag: zod.ZodOptional<zod.ZodString>;
|
|
200
|
+
}, zod_v4_core.$strip>;
|
|
201
|
+
}, zod_v4_core.$strip>;
|
|
202
|
+
readonly errors: {
|
|
203
|
+
readonly BAD_REQUEST: {
|
|
204
|
+
readonly message: "Invalid wallet address";
|
|
205
|
+
};
|
|
206
|
+
readonly NO_REWARDS: {
|
|
207
|
+
readonly message: "No rewards to claim";
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
readonly getPendingRewards: {
|
|
212
|
+
readonly route: {
|
|
213
|
+
readonly method: "GET";
|
|
214
|
+
readonly path: "/hotspots/pending-rewards/{walletAddress}";
|
|
215
|
+
};
|
|
216
|
+
readonly input: zod.ZodObject<{
|
|
217
|
+
walletAddress: zod.ZodString;
|
|
218
|
+
}, zod_v4_core.$strip>;
|
|
219
|
+
readonly output: zod.ZodObject<{
|
|
220
|
+
pending: zod.ZodString;
|
|
221
|
+
}, zod_v4_core.$strip>;
|
|
222
|
+
readonly errors: {
|
|
223
|
+
readonly BAD_REQUEST: {
|
|
224
|
+
readonly message: "Invalid wallet address";
|
|
225
|
+
};
|
|
226
|
+
};
|
|
227
|
+
};
|
|
228
|
+
readonly transferHotspot: {
|
|
229
|
+
readonly route: {
|
|
230
|
+
readonly method: "POST";
|
|
231
|
+
readonly path: "/hotspots/transfer";
|
|
232
|
+
};
|
|
233
|
+
readonly input: zod.ZodObject<{
|
|
234
|
+
walletAddress: zod.ZodString;
|
|
235
|
+
hotspotPubkey: zod.ZodString;
|
|
236
|
+
recipient: zod.ZodString;
|
|
237
|
+
}, zod_v4_core.$strip>;
|
|
238
|
+
readonly output: zod.ZodObject<{
|
|
239
|
+
transactionData: zod.ZodObject<{
|
|
240
|
+
transactions: zod.ZodArray<zod.ZodObject<{
|
|
241
|
+
serializedTransaction: zod.ZodString;
|
|
242
|
+
metadata: zod.ZodOptional<zod.ZodObject<{
|
|
243
|
+
type: zod.ZodString;
|
|
244
|
+
description: zod.ZodString;
|
|
245
|
+
}, zod_v4_core.$catchall<zod.ZodUnknown>>>;
|
|
246
|
+
}, zod_v4_core.$strip>>;
|
|
247
|
+
parallel: zod.ZodBoolean;
|
|
248
|
+
tag: zod.ZodOptional<zod.ZodString>;
|
|
249
|
+
}, zod_v4_core.$strip>;
|
|
250
|
+
}, zod_v4_core.$strip>;
|
|
251
|
+
readonly errors: {
|
|
252
|
+
readonly BAD_REQUEST: {
|
|
253
|
+
readonly message: "Invalid transfer parameters";
|
|
254
|
+
};
|
|
255
|
+
readonly NOT_OWNER: {
|
|
256
|
+
readonly status: 403;
|
|
257
|
+
readonly message: "You do not own this asset.";
|
|
258
|
+
readonly data: zod.ZodObject<{
|
|
259
|
+
owner: zod.ZodString;
|
|
260
|
+
wallet: zod.ZodString;
|
|
261
|
+
}, zod_v4_core.$strip>;
|
|
262
|
+
};
|
|
263
|
+
readonly INVALID_HOTSPOT: {
|
|
264
|
+
readonly status: 400;
|
|
265
|
+
readonly message: "The specified asset is not a valid Helium hotspot.";
|
|
266
|
+
};
|
|
267
|
+
readonly NOT_FOUND: {
|
|
268
|
+
readonly status: 404;
|
|
269
|
+
readonly message: "The requested resource was not found.";
|
|
270
|
+
};
|
|
271
|
+
};
|
|
272
|
+
};
|
|
273
|
+
readonly updateRewardsDestination: {
|
|
274
|
+
readonly route: {
|
|
275
|
+
readonly method: "POST";
|
|
276
|
+
readonly path: "/hotspots/update-rewards-destination";
|
|
277
|
+
};
|
|
278
|
+
readonly input: zod.ZodObject<{
|
|
279
|
+
walletAddress: zod.ZodString;
|
|
280
|
+
hotspotPubkey: zod.ZodString;
|
|
281
|
+
destination: zod.ZodString;
|
|
282
|
+
lazyDistributors: zod.ZodArray<zod.ZodString>;
|
|
283
|
+
}, zod_v4_core.$strip>;
|
|
284
|
+
readonly output: zod.ZodObject<{
|
|
285
|
+
transactionData: zod.ZodObject<{
|
|
286
|
+
transactions: zod.ZodArray<zod.ZodObject<{
|
|
287
|
+
serializedTransaction: zod.ZodString;
|
|
288
|
+
metadata: zod.ZodOptional<zod.ZodObject<{
|
|
289
|
+
type: zod.ZodString;
|
|
290
|
+
description: zod.ZodString;
|
|
291
|
+
}, zod_v4_core.$catchall<zod.ZodUnknown>>>;
|
|
292
|
+
}, zod_v4_core.$strip>>;
|
|
293
|
+
parallel: zod.ZodBoolean;
|
|
294
|
+
tag: zod.ZodOptional<zod.ZodString>;
|
|
295
|
+
}, zod_v4_core.$strip>;
|
|
296
|
+
}, zod_v4_core.$strip>;
|
|
297
|
+
readonly errors: {
|
|
298
|
+
readonly BAD_REQUEST: {
|
|
299
|
+
readonly message: "Invalid parameters";
|
|
300
|
+
};
|
|
301
|
+
readonly NOT_OWNER: {
|
|
302
|
+
readonly status: 403;
|
|
303
|
+
readonly message: "You do not own this asset.";
|
|
304
|
+
readonly data: zod.ZodObject<{
|
|
305
|
+
owner: zod.ZodString;
|
|
306
|
+
wallet: zod.ZodString;
|
|
307
|
+
}, zod_v4_core.$strip>;
|
|
308
|
+
};
|
|
309
|
+
readonly INVALID_HOTSPOT: {
|
|
310
|
+
readonly status: 400;
|
|
311
|
+
readonly message: "The specified asset is not a valid Helium hotspot.";
|
|
312
|
+
};
|
|
313
|
+
readonly NOT_FOUND: {
|
|
314
|
+
readonly status: 404;
|
|
315
|
+
readonly message: "The requested resource was not found.";
|
|
316
|
+
};
|
|
317
|
+
};
|
|
318
|
+
};
|
|
319
|
+
readonly getSplit: {
|
|
320
|
+
readonly route: {
|
|
321
|
+
readonly method: "GET";
|
|
322
|
+
readonly path: "/hotspots/split/{walletAddress}/{hotspotPubkey}";
|
|
323
|
+
};
|
|
324
|
+
readonly input: zod.ZodObject<{
|
|
325
|
+
walletAddress: zod.ZodString;
|
|
326
|
+
hotspotPubkey: zod.ZodString;
|
|
327
|
+
}, zod_v4_core.$strip>;
|
|
328
|
+
readonly output: zod.ZodObject<{
|
|
329
|
+
walletAddress: zod.ZodString;
|
|
330
|
+
hotspotPubkey: zod.ZodString;
|
|
331
|
+
splitAddress: zod.ZodString;
|
|
332
|
+
shares: zod.ZodArray<zod.ZodObject<{
|
|
333
|
+
wallet: zod.ZodString;
|
|
334
|
+
delegate: zod.ZodString;
|
|
335
|
+
fixed: zod.ZodNumber;
|
|
336
|
+
shares: zod.ZodNumber;
|
|
337
|
+
}, zod_v4_core.$strip>>;
|
|
338
|
+
}, zod_v4_core.$strip>;
|
|
339
|
+
readonly errors: {
|
|
340
|
+
readonly NOT_FOUND: {
|
|
341
|
+
readonly message: "Split not found";
|
|
342
|
+
};
|
|
343
|
+
};
|
|
344
|
+
};
|
|
345
|
+
readonly createSplit: {
|
|
346
|
+
readonly route: {
|
|
347
|
+
readonly method: "POST";
|
|
348
|
+
readonly path: "/hotspots/split";
|
|
349
|
+
};
|
|
350
|
+
readonly input: zod.ZodObject<{
|
|
351
|
+
walletAddress: zod.ZodString;
|
|
352
|
+
hotspotPubkey: zod.ZodString;
|
|
353
|
+
rewardsSplit: zod.ZodArray<zod.ZodObject<{
|
|
354
|
+
address: zod.ZodString;
|
|
355
|
+
type: zod.ZodEnum<{
|
|
356
|
+
fixed: "fixed";
|
|
357
|
+
percentage: "percentage";
|
|
358
|
+
}>;
|
|
359
|
+
amount: zod.ZodNumber;
|
|
360
|
+
}, zod_v4_core.$strip>>;
|
|
361
|
+
schedule: zod.ZodObject<{
|
|
362
|
+
frequency: zod.ZodEnum<{
|
|
363
|
+
daily: "daily";
|
|
364
|
+
weekly: "weekly";
|
|
365
|
+
monthly: "monthly";
|
|
366
|
+
}>;
|
|
367
|
+
time: zod.ZodString;
|
|
368
|
+
timezone: zod.ZodString;
|
|
369
|
+
dayOfWeek: zod.ZodOptional<zod.ZodString>;
|
|
370
|
+
dayOfMonth: zod.ZodOptional<zod.ZodString>;
|
|
371
|
+
}, zod_v4_core.$strip>;
|
|
372
|
+
lazyDistributor: zod.ZodString;
|
|
373
|
+
}, zod_v4_core.$strip>;
|
|
374
|
+
readonly output: zod.ZodObject<{
|
|
375
|
+
transactionData: zod.ZodObject<{
|
|
376
|
+
transactions: zod.ZodArray<zod.ZodObject<{
|
|
377
|
+
serializedTransaction: zod.ZodString;
|
|
378
|
+
metadata: zod.ZodOptional<zod.ZodObject<{
|
|
379
|
+
type: zod.ZodString;
|
|
380
|
+
description: zod.ZodString;
|
|
381
|
+
}, zod_v4_core.$catchall<zod.ZodUnknown>>>;
|
|
382
|
+
}, zod_v4_core.$strip>>;
|
|
383
|
+
parallel: zod.ZodBoolean;
|
|
384
|
+
tag: zod.ZodOptional<zod.ZodString>;
|
|
385
|
+
}, zod_v4_core.$strip>;
|
|
386
|
+
}, zod_v4_core.$strip>;
|
|
387
|
+
readonly errors: {
|
|
388
|
+
readonly BAD_REQUEST: {
|
|
389
|
+
readonly message: "Invalid split configuration";
|
|
390
|
+
};
|
|
391
|
+
readonly NOT_OWNER: {
|
|
392
|
+
readonly status: 403;
|
|
393
|
+
readonly message: "You do not own this asset.";
|
|
394
|
+
readonly data: zod.ZodObject<{
|
|
395
|
+
owner: zod.ZodString;
|
|
396
|
+
wallet: zod.ZodString;
|
|
397
|
+
}, zod_v4_core.$strip>;
|
|
398
|
+
};
|
|
399
|
+
readonly INVALID_HOTSPOT: {
|
|
400
|
+
readonly status: 400;
|
|
401
|
+
readonly message: "The specified asset is not a valid Helium hotspot.";
|
|
402
|
+
};
|
|
403
|
+
readonly NOT_FOUND: {
|
|
404
|
+
readonly status: 404;
|
|
405
|
+
readonly message: "The requested resource was not found.";
|
|
406
|
+
};
|
|
407
|
+
};
|
|
408
|
+
};
|
|
409
|
+
readonly deleteSplit: {
|
|
410
|
+
readonly route: {
|
|
411
|
+
readonly method: "DELETE";
|
|
412
|
+
readonly path: "/hotspots/split";
|
|
413
|
+
};
|
|
414
|
+
readonly input: zod.ZodObject<{
|
|
415
|
+
walletAddress: zod.ZodString;
|
|
416
|
+
hotspotPubkey: zod.ZodString;
|
|
417
|
+
}, zod_v4_core.$strip>;
|
|
418
|
+
readonly output: zod.ZodObject<{
|
|
419
|
+
transactionData: zod.ZodObject<{
|
|
420
|
+
transactions: zod.ZodArray<zod.ZodObject<{
|
|
421
|
+
serializedTransaction: zod.ZodString;
|
|
422
|
+
metadata: zod.ZodOptional<zod.ZodObject<{
|
|
423
|
+
type: zod.ZodString;
|
|
424
|
+
description: zod.ZodString;
|
|
425
|
+
}, zod_v4_core.$catchall<zod.ZodUnknown>>>;
|
|
426
|
+
}, zod_v4_core.$strip>>;
|
|
427
|
+
parallel: zod.ZodBoolean;
|
|
428
|
+
tag: zod.ZodOptional<zod.ZodString>;
|
|
429
|
+
}, zod_v4_core.$strip>;
|
|
430
|
+
}, zod_v4_core.$strip>;
|
|
431
|
+
readonly errors: {
|
|
432
|
+
readonly NOT_OWNER: {
|
|
433
|
+
readonly status: 403;
|
|
434
|
+
readonly message: "You do not own this asset.";
|
|
435
|
+
readonly data: zod.ZodObject<{
|
|
436
|
+
owner: zod.ZodString;
|
|
437
|
+
wallet: zod.ZodString;
|
|
438
|
+
}, zod_v4_core.$strip>;
|
|
439
|
+
};
|
|
440
|
+
readonly INVALID_HOTSPOT: {
|
|
441
|
+
readonly status: 400;
|
|
442
|
+
readonly message: "The specified asset is not a valid Helium hotspot.";
|
|
443
|
+
};
|
|
444
|
+
readonly NOT_FOUND: {
|
|
445
|
+
readonly status: 404;
|
|
446
|
+
readonly message: "The requested resource was not found.";
|
|
447
|
+
};
|
|
448
|
+
};
|
|
449
|
+
};
|
|
450
|
+
};
|
|
451
|
+
readonly swap: {
|
|
452
|
+
readonly getTokens: {
|
|
453
|
+
readonly route: {
|
|
454
|
+
readonly method: "GET";
|
|
455
|
+
readonly path: "/swap/tokens";
|
|
456
|
+
};
|
|
457
|
+
readonly input: zod.ZodObject<{
|
|
458
|
+
limit: zod.ZodDefault<zod.ZodCoercedNumber<unknown>>;
|
|
459
|
+
}, zod_v4_core.$strip>;
|
|
460
|
+
readonly output: zod.ZodObject<{
|
|
461
|
+
tokens: zod.ZodArray<zod.ZodObject<{
|
|
462
|
+
address: zod.ZodString;
|
|
463
|
+
symbol: zod.ZodString;
|
|
464
|
+
name: zod.ZodString;
|
|
465
|
+
decimals: zod.ZodNumber;
|
|
466
|
+
logoURI: zod.ZodOptional<zod.ZodString>;
|
|
467
|
+
tags: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
468
|
+
}, zod_v4_core.$strip>>;
|
|
469
|
+
}, zod_v4_core.$strip>;
|
|
470
|
+
readonly errors: {};
|
|
471
|
+
};
|
|
472
|
+
readonly getQuote: {
|
|
473
|
+
readonly route: {
|
|
474
|
+
readonly method: "GET";
|
|
475
|
+
readonly path: "/swap/quote";
|
|
476
|
+
};
|
|
477
|
+
readonly input: zod.ZodObject<{
|
|
478
|
+
inputMint: zod.ZodString;
|
|
479
|
+
outputMint: zod.ZodString;
|
|
480
|
+
amount: zod.ZodString;
|
|
481
|
+
swapMode: zod.ZodDefault<zod.ZodEnum<{
|
|
482
|
+
ExactIn: "ExactIn";
|
|
483
|
+
ExactOut: "ExactOut";
|
|
484
|
+
}>>;
|
|
485
|
+
slippageBps: zod.ZodDefault<zod.ZodCoercedNumber<unknown>>;
|
|
486
|
+
}, zod_v4_core.$strip>;
|
|
487
|
+
readonly output: zod.ZodObject<{
|
|
488
|
+
inputMint: zod.ZodString;
|
|
489
|
+
inAmount: zod.ZodString;
|
|
490
|
+
outputMint: zod.ZodString;
|
|
491
|
+
outAmount: zod.ZodString;
|
|
492
|
+
otherAmountThreshold: zod.ZodString;
|
|
493
|
+
swapMode: zod.ZodString;
|
|
494
|
+
slippageBps: zod.ZodNumber;
|
|
495
|
+
platformFee: zod.ZodOptional<zod.ZodUnknown>;
|
|
496
|
+
priceImpactPct: zod.ZodString;
|
|
497
|
+
routePlan: zod.ZodArray<zod.ZodUnknown>;
|
|
498
|
+
contextSlot: zod.ZodOptional<zod.ZodNumber>;
|
|
499
|
+
timeTaken: zod.ZodOptional<zod.ZodNumber>;
|
|
500
|
+
}, zod_v4_core.$loose>;
|
|
501
|
+
readonly errors: {
|
|
502
|
+
readonly BAD_REQUEST: {
|
|
503
|
+
readonly message: "Invalid quote parameters";
|
|
504
|
+
};
|
|
505
|
+
readonly EXTERNAL_API_ERROR: {
|
|
506
|
+
readonly message: "Jupiter API request failed";
|
|
507
|
+
};
|
|
508
|
+
};
|
|
509
|
+
};
|
|
510
|
+
readonly getInstructions: {
|
|
511
|
+
readonly route: {
|
|
512
|
+
readonly method: "POST";
|
|
513
|
+
readonly path: "/swap/instructions";
|
|
514
|
+
};
|
|
515
|
+
readonly input: zod.ZodObject<{
|
|
516
|
+
quoteResponse: zod.ZodObject<{
|
|
517
|
+
inputMint: zod.ZodString;
|
|
518
|
+
inAmount: zod.ZodString;
|
|
519
|
+
outputMint: zod.ZodString;
|
|
520
|
+
outAmount: zod.ZodString;
|
|
521
|
+
otherAmountThreshold: zod.ZodString;
|
|
522
|
+
swapMode: zod.ZodString;
|
|
523
|
+
slippageBps: zod.ZodNumber;
|
|
524
|
+
platformFee: zod.ZodOptional<zod.ZodUnknown>;
|
|
525
|
+
priceImpactPct: zod.ZodString;
|
|
526
|
+
routePlan: zod.ZodArray<zod.ZodUnknown>;
|
|
527
|
+
contextSlot: zod.ZodOptional<zod.ZodNumber>;
|
|
528
|
+
timeTaken: zod.ZodOptional<zod.ZodNumber>;
|
|
529
|
+
}, zod_v4_core.$loose>;
|
|
530
|
+
userPublicKey: zod.ZodString;
|
|
531
|
+
destinationTokenAccount: zod.ZodOptional<zod.ZodString>;
|
|
532
|
+
dynamicComputeUnitLimit: zod.ZodDefault<zod.ZodBoolean>;
|
|
533
|
+
prioritizationFeeLamports: zod.ZodOptional<zod.ZodObject<{
|
|
534
|
+
priorityLevelWithMaxLamports: zod.ZodObject<{
|
|
535
|
+
maxLamports: zod.ZodDefault<zod.ZodNumber>;
|
|
536
|
+
priorityLevel: zod.ZodDefault<zod.ZodEnum<{
|
|
537
|
+
low: "low";
|
|
538
|
+
medium: "medium";
|
|
539
|
+
high: "high";
|
|
540
|
+
}>>;
|
|
541
|
+
}, zod_v4_core.$strip>;
|
|
542
|
+
}, zod_v4_core.$strip>>;
|
|
543
|
+
}, zod_v4_core.$strip>;
|
|
544
|
+
readonly output: zod.ZodObject<{
|
|
545
|
+
transactions: zod.ZodArray<zod.ZodObject<{
|
|
546
|
+
serializedTransaction: zod.ZodString;
|
|
547
|
+
metadata: zod.ZodOptional<zod.ZodObject<{
|
|
548
|
+
type: zod.ZodString;
|
|
549
|
+
description: zod.ZodString;
|
|
550
|
+
}, zod_v4_core.$catchall<zod.ZodUnknown>>>;
|
|
551
|
+
}, zod_v4_core.$strip>>;
|
|
552
|
+
parallel: zod.ZodBoolean;
|
|
553
|
+
tag: zod.ZodOptional<zod.ZodString>;
|
|
554
|
+
}, zod_v4_core.$strip>;
|
|
555
|
+
readonly errors: {
|
|
556
|
+
readonly BAD_REQUEST: {
|
|
557
|
+
readonly message: "Invalid instruction parameters";
|
|
558
|
+
};
|
|
559
|
+
readonly EXTERNAL_API_ERROR: {
|
|
560
|
+
readonly message: "Jupiter API request failed";
|
|
561
|
+
};
|
|
562
|
+
};
|
|
563
|
+
};
|
|
564
|
+
};
|
|
565
|
+
readonly transactions: {
|
|
566
|
+
readonly submit: {
|
|
567
|
+
readonly route: {
|
|
568
|
+
readonly method: "POST";
|
|
569
|
+
readonly path: "/transactions";
|
|
570
|
+
};
|
|
571
|
+
readonly input: zod.ZodObject<{
|
|
572
|
+
transactions: zod.ZodArray<zod.ZodObject<{
|
|
573
|
+
serializedTransaction: zod.ZodString;
|
|
574
|
+
metadata: zod.ZodOptional<zod.ZodObject<{
|
|
575
|
+
type: zod.ZodString;
|
|
576
|
+
description: zod.ZodString;
|
|
577
|
+
}, zod_v4_core.$catchall<zod.ZodUnknown>>>;
|
|
578
|
+
}, zod_v4_core.$strip>>;
|
|
579
|
+
parallel: zod.ZodBoolean;
|
|
580
|
+
tag: zod.ZodOptional<zod.ZodString>;
|
|
581
|
+
}, zod_v4_core.$strip>;
|
|
582
|
+
readonly output: zod.ZodObject<{
|
|
583
|
+
batchId: zod.ZodString;
|
|
584
|
+
message: zod.ZodOptional<zod.ZodString>;
|
|
585
|
+
}, zod_v4_core.$strip>;
|
|
586
|
+
readonly errors: {
|
|
587
|
+
readonly INSUFFICIENT_FUNDS: {
|
|
588
|
+
readonly status: 400;
|
|
589
|
+
readonly message: "Insufficient SOL balance to complete this transaction.";
|
|
590
|
+
readonly data: zod.ZodObject<{
|
|
591
|
+
required: zod.ZodNumber;
|
|
592
|
+
available: zod.ZodNumber;
|
|
593
|
+
}, zod_v4_core.$strip>;
|
|
594
|
+
};
|
|
595
|
+
readonly TRANSACTION_FAILED: {
|
|
596
|
+
readonly status: 500;
|
|
597
|
+
readonly message: "Transaction failed to execute.";
|
|
598
|
+
readonly data: zod.ZodObject<{
|
|
599
|
+
logs: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
600
|
+
signature: zod.ZodOptional<zod.ZodString>;
|
|
601
|
+
}, zod_v4_core.$strip>;
|
|
602
|
+
};
|
|
603
|
+
readonly SIMULATION_FAILED: {
|
|
604
|
+
readonly status: 400;
|
|
605
|
+
readonly message: "Transaction simulation failed.";
|
|
606
|
+
readonly data: zod.ZodObject<{
|
|
607
|
+
logs: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
608
|
+
link: zod.ZodOptional<zod.ZodString>;
|
|
609
|
+
}, zod_v4_core.$strip>;
|
|
610
|
+
};
|
|
611
|
+
readonly BAD_REQUEST: {
|
|
612
|
+
readonly message: "Invalid transaction data";
|
|
613
|
+
};
|
|
614
|
+
};
|
|
615
|
+
};
|
|
616
|
+
readonly get: {
|
|
617
|
+
readonly route: {
|
|
618
|
+
readonly method: "GET";
|
|
619
|
+
readonly path: "/transactions/{id}";
|
|
620
|
+
};
|
|
621
|
+
readonly input: zod.ZodObject<{
|
|
622
|
+
id: zod.ZodString;
|
|
623
|
+
commitment: zod.ZodEnum<{
|
|
624
|
+
confirmed: "confirmed";
|
|
625
|
+
finalized: "finalized";
|
|
626
|
+
}>;
|
|
627
|
+
}, zod_v4_core.$strip>;
|
|
628
|
+
readonly output: zod.ZodObject<{
|
|
629
|
+
batchId: zod.ZodString;
|
|
630
|
+
status: zod.ZodString;
|
|
631
|
+
submissionType: zod.ZodString;
|
|
632
|
+
parallel: zod.ZodBoolean;
|
|
633
|
+
transactions: zod.ZodArray<zod.ZodObject<{
|
|
634
|
+
signature: zod.ZodString;
|
|
635
|
+
status: zod.ZodString;
|
|
636
|
+
transaction: zod.ZodOptional<zod.ZodUnknown>;
|
|
637
|
+
}, zod_v4_core.$strip>>;
|
|
638
|
+
jitoBundleId: zod.ZodOptional<zod.ZodString>;
|
|
639
|
+
jitoBundleStatus: zod.ZodOptional<zod.ZodUnknown>;
|
|
640
|
+
}, zod_v4_core.$strip>;
|
|
641
|
+
readonly errors: {
|
|
642
|
+
readonly NOT_FOUND: {
|
|
643
|
+
readonly message: "Transaction batch not found";
|
|
644
|
+
};
|
|
645
|
+
};
|
|
646
|
+
};
|
|
647
|
+
readonly resubmit: {
|
|
648
|
+
readonly route: {
|
|
649
|
+
readonly method: "POST";
|
|
650
|
+
readonly path: "/transactions/{id}/resubmit";
|
|
651
|
+
};
|
|
652
|
+
readonly input: zod.ZodObject<{
|
|
653
|
+
id: zod.ZodString;
|
|
654
|
+
}, zod_v4_core.$strip>;
|
|
655
|
+
readonly output: zod.ZodObject<{
|
|
656
|
+
success: zod.ZodBoolean;
|
|
657
|
+
message: zod.ZodString;
|
|
658
|
+
error: zod.ZodOptional<zod.ZodString>;
|
|
659
|
+
newSignatures: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
660
|
+
}, zod_v4_core.$strip>;
|
|
661
|
+
readonly errors: {
|
|
662
|
+
readonly NOT_FOUND: {
|
|
663
|
+
readonly message: "Transaction batch not found";
|
|
664
|
+
};
|
|
665
|
+
readonly BAD_REQUEST: {
|
|
666
|
+
readonly message: "Cannot resubmit this transaction";
|
|
667
|
+
};
|
|
668
|
+
};
|
|
669
|
+
};
|
|
670
|
+
readonly getByPayer: {
|
|
671
|
+
readonly route: {
|
|
672
|
+
readonly method: "GET";
|
|
673
|
+
readonly path: "/transactions/payer/{payer}";
|
|
674
|
+
};
|
|
675
|
+
readonly input: zod.ZodObject<{
|
|
676
|
+
payer: zod.ZodString;
|
|
677
|
+
page: zod.ZodDefault<zod.ZodCoercedNumber<unknown>>;
|
|
678
|
+
limit: zod.ZodDefault<zod.ZodCoercedNumber<unknown>>;
|
|
679
|
+
status: zod.ZodDefault<zod.ZodOptional<zod.ZodString>>;
|
|
680
|
+
}, zod_v4_core.$strip>;
|
|
681
|
+
readonly output: zod.ZodObject<{
|
|
682
|
+
payer: zod.ZodString;
|
|
683
|
+
batches: zod.ZodArray<zod.ZodObject<{
|
|
684
|
+
batchId: zod.ZodString;
|
|
685
|
+
tag: zod.ZodOptional<zod.ZodString>;
|
|
686
|
+
status: zod.ZodString;
|
|
687
|
+
submissionType: zod.ZodString;
|
|
688
|
+
parallel: zod.ZodBoolean;
|
|
689
|
+
createdAt: zod.ZodString;
|
|
690
|
+
updatedAt: zod.ZodString;
|
|
691
|
+
transactions: zod.ZodArray<zod.ZodObject<{
|
|
692
|
+
metadata: zod.ZodOptional<zod.ZodObject<{
|
|
693
|
+
type: zod.ZodString;
|
|
694
|
+
description: zod.ZodString;
|
|
695
|
+
}, zod_v4_core.$catchall<zod.ZodUnknown>>>;
|
|
696
|
+
}, zod_v4_core.$strip>>;
|
|
697
|
+
}, zod_v4_core.$strip>>;
|
|
698
|
+
pagination: zod.ZodObject<{
|
|
699
|
+
page: zod.ZodNumber;
|
|
700
|
+
limit: zod.ZodNumber;
|
|
701
|
+
total: zod.ZodNumber;
|
|
702
|
+
totalPages: zod.ZodNumber;
|
|
703
|
+
}, zod_v4_core.$strip>;
|
|
704
|
+
}, zod_v4_core.$strip>;
|
|
705
|
+
readonly errors: {
|
|
706
|
+
readonly BAD_REQUEST: {
|
|
707
|
+
readonly message: "Invalid payer address";
|
|
708
|
+
};
|
|
709
|
+
};
|
|
710
|
+
};
|
|
711
|
+
readonly getByPayerAndTag: {
|
|
712
|
+
readonly route: {
|
|
713
|
+
readonly method: "GET";
|
|
714
|
+
readonly path: "/transactions/payer/{payer}/tag/{tag}";
|
|
715
|
+
};
|
|
716
|
+
readonly input: zod.ZodObject<{
|
|
717
|
+
payer: zod.ZodString;
|
|
718
|
+
tag: zod.ZodString;
|
|
719
|
+
page: zod.ZodDefault<zod.ZodCoercedNumber<unknown>>;
|
|
720
|
+
limit: zod.ZodDefault<zod.ZodCoercedNumber<unknown>>;
|
|
721
|
+
status: zod.ZodDefault<zod.ZodOptional<zod.ZodString>>;
|
|
722
|
+
}, zod_v4_core.$strip>;
|
|
723
|
+
readonly output: zod.ZodObject<{
|
|
724
|
+
payer: zod.ZodString;
|
|
725
|
+
batches: zod.ZodArray<zod.ZodObject<{
|
|
726
|
+
batchId: zod.ZodString;
|
|
727
|
+
tag: zod.ZodOptional<zod.ZodString>;
|
|
728
|
+
status: zod.ZodString;
|
|
729
|
+
submissionType: zod.ZodString;
|
|
730
|
+
parallel: zod.ZodBoolean;
|
|
731
|
+
createdAt: zod.ZodString;
|
|
732
|
+
updatedAt: zod.ZodString;
|
|
733
|
+
transactions: zod.ZodArray<zod.ZodObject<{
|
|
734
|
+
metadata: zod.ZodOptional<zod.ZodObject<{
|
|
735
|
+
type: zod.ZodString;
|
|
736
|
+
description: zod.ZodString;
|
|
737
|
+
}, zod_v4_core.$catchall<zod.ZodUnknown>>>;
|
|
738
|
+
}, zod_v4_core.$strip>>;
|
|
739
|
+
}, zod_v4_core.$strip>>;
|
|
740
|
+
pagination: zod.ZodObject<{
|
|
741
|
+
page: zod.ZodNumber;
|
|
742
|
+
limit: zod.ZodNumber;
|
|
743
|
+
total: zod.ZodNumber;
|
|
744
|
+
totalPages: zod.ZodNumber;
|
|
745
|
+
}, zod_v4_core.$strip>;
|
|
746
|
+
}, zod_v4_core.$strip>;
|
|
747
|
+
readonly errors: {
|
|
748
|
+
readonly BAD_REQUEST: {
|
|
749
|
+
readonly message: "Invalid parameters";
|
|
750
|
+
};
|
|
751
|
+
};
|
|
752
|
+
};
|
|
753
|
+
};
|
|
754
|
+
readonly welcomePacks: {
|
|
755
|
+
readonly list: {
|
|
756
|
+
readonly route: {
|
|
757
|
+
readonly method: "GET";
|
|
758
|
+
readonly path: "/welcome-packs/{walletAddress}";
|
|
759
|
+
};
|
|
760
|
+
readonly input: zod.ZodObject<{
|
|
761
|
+
walletAddress: zod.ZodString;
|
|
762
|
+
}, zod_v4_core.$strip>;
|
|
763
|
+
readonly output: zod.ZodArray<zod.ZodObject<{
|
|
764
|
+
address: zod.ZodString;
|
|
765
|
+
id: zod.ZodNumber;
|
|
766
|
+
owner: zod.ZodString;
|
|
767
|
+
asset: zod.ZodString;
|
|
768
|
+
lazyDistributor: zod.ZodString;
|
|
769
|
+
rewardsMint: zod.ZodString;
|
|
770
|
+
rentRefund: zod.ZodString;
|
|
771
|
+
solAmount: zod.ZodString;
|
|
772
|
+
rewardsSplit: zod.ZodArray<zod.ZodObject<{
|
|
773
|
+
address: zod.ZodString;
|
|
774
|
+
type: zod.ZodEnum<{
|
|
775
|
+
fixed: "fixed";
|
|
776
|
+
percentage: "percentage";
|
|
777
|
+
}>;
|
|
778
|
+
amount: zod.ZodNumber;
|
|
779
|
+
}, zod_v4_core.$strip>>;
|
|
780
|
+
rewardsSchedule: zod.ZodString;
|
|
781
|
+
assetReturnAddress: zod.ZodString;
|
|
782
|
+
bumpSeed: zod.ZodNumber;
|
|
783
|
+
uniqueId: zod.ZodString;
|
|
784
|
+
loading: zod.ZodOptional<zod.ZodBoolean>;
|
|
785
|
+
hotspot: zod.ZodNullable<zod.ZodObject<{
|
|
786
|
+
address: zod.ZodString;
|
|
787
|
+
entityKey: zod.ZodString;
|
|
788
|
+
name: zod.ZodString;
|
|
789
|
+
type: zod.ZodEnum<{
|
|
790
|
+
iot: "iot";
|
|
791
|
+
mobile: "mobile";
|
|
792
|
+
all: "all";
|
|
793
|
+
}>;
|
|
794
|
+
deviceType: zod.ZodEnum<{
|
|
795
|
+
"iot-gateway": "iot-gateway";
|
|
796
|
+
wifiIndoor: "wifiIndoor";
|
|
797
|
+
wifiOutdoor: "wifiOutdoor";
|
|
798
|
+
wifiDataOnly: "wifiDataOnly";
|
|
799
|
+
cbrs: "cbrs";
|
|
800
|
+
}>;
|
|
801
|
+
city: zod.ZodOptional<zod.ZodString>;
|
|
802
|
+
state: zod.ZodOptional<zod.ZodString>;
|
|
803
|
+
country: zod.ZodOptional<zod.ZodString>;
|
|
804
|
+
asset: zod.ZodString;
|
|
805
|
+
isOnline: zod.ZodOptional<zod.ZodBoolean>;
|
|
806
|
+
owner: zod.ZodOptional<zod.ZodString>;
|
|
807
|
+
shares: zod.ZodOptional<zod.ZodObject<{
|
|
808
|
+
fixed: zod.ZodOptional<zod.ZodString>;
|
|
809
|
+
percentage: zod.ZodOptional<zod.ZodNumber>;
|
|
810
|
+
}, zod_v4_core.$strip>>;
|
|
811
|
+
ownershipType: zod.ZodString;
|
|
812
|
+
}, zod_v4_core.$strip>>;
|
|
813
|
+
}, zod_v4_core.$strip>>;
|
|
814
|
+
readonly errors: {
|
|
815
|
+
readonly BAD_REQUEST: {
|
|
816
|
+
readonly message: "Invalid wallet address";
|
|
817
|
+
};
|
|
818
|
+
};
|
|
819
|
+
};
|
|
820
|
+
readonly create: {
|
|
821
|
+
readonly route: {
|
|
822
|
+
readonly method: "POST";
|
|
823
|
+
readonly path: "/welcome-packs";
|
|
824
|
+
};
|
|
825
|
+
readonly input: zod.ZodObject<{
|
|
826
|
+
walletAddress: zod.ZodString;
|
|
827
|
+
assetId: zod.ZodString;
|
|
828
|
+
solAmount: zod.ZodNumber;
|
|
829
|
+
rentRefund: zod.ZodString;
|
|
830
|
+
assetReturnAddress: zod.ZodString;
|
|
831
|
+
rewardsSplit: zod.ZodArray<zod.ZodObject<{
|
|
832
|
+
address: zod.ZodString;
|
|
833
|
+
type: zod.ZodEnum<{
|
|
834
|
+
fixed: "fixed";
|
|
835
|
+
percentage: "percentage";
|
|
836
|
+
}>;
|
|
837
|
+
amount: zod.ZodNumber;
|
|
838
|
+
}, zod_v4_core.$strip>>;
|
|
839
|
+
schedule: zod.ZodObject<{
|
|
840
|
+
frequency: zod.ZodEnum<{
|
|
841
|
+
daily: "daily";
|
|
842
|
+
weekly: "weekly";
|
|
843
|
+
monthly: "monthly";
|
|
844
|
+
}>;
|
|
845
|
+
time: zod.ZodString;
|
|
846
|
+
timezone: zod.ZodString;
|
|
847
|
+
dayOfWeek: zod.ZodOptional<zod.ZodString>;
|
|
848
|
+
dayOfMonth: zod.ZodOptional<zod.ZodString>;
|
|
849
|
+
}, zod_v4_core.$strip>;
|
|
850
|
+
lazyDistributor: zod.ZodString;
|
|
851
|
+
}, zod_v4_core.$strip>;
|
|
852
|
+
readonly output: zod.ZodObject<{
|
|
853
|
+
welcomePack: zod.ZodObject<{
|
|
854
|
+
address: zod.ZodString;
|
|
855
|
+
id: zod.ZodNumber;
|
|
856
|
+
owner: zod.ZodString;
|
|
857
|
+
asset: zod.ZodString;
|
|
858
|
+
lazyDistributor: zod.ZodString;
|
|
859
|
+
rewardsMint: zod.ZodString;
|
|
860
|
+
rentRefund: zod.ZodString;
|
|
861
|
+
solAmount: zod.ZodString;
|
|
862
|
+
rewardsSplit: zod.ZodArray<zod.ZodObject<{
|
|
863
|
+
address: zod.ZodString;
|
|
864
|
+
type: zod.ZodEnum<{
|
|
865
|
+
fixed: "fixed";
|
|
866
|
+
percentage: "percentage";
|
|
867
|
+
}>;
|
|
868
|
+
amount: zod.ZodNumber;
|
|
869
|
+
}, zod_v4_core.$strip>>;
|
|
870
|
+
rewardsSchedule: zod.ZodString;
|
|
871
|
+
assetReturnAddress: zod.ZodString;
|
|
872
|
+
bumpSeed: zod.ZodNumber;
|
|
873
|
+
uniqueId: zod.ZodString;
|
|
874
|
+
loading: zod.ZodOptional<zod.ZodBoolean>;
|
|
875
|
+
hotspot: zod.ZodNullable<zod.ZodObject<{
|
|
876
|
+
address: zod.ZodString;
|
|
877
|
+
entityKey: zod.ZodString;
|
|
878
|
+
name: zod.ZodString;
|
|
879
|
+
type: zod.ZodEnum<{
|
|
880
|
+
iot: "iot";
|
|
881
|
+
mobile: "mobile";
|
|
882
|
+
all: "all";
|
|
883
|
+
}>;
|
|
884
|
+
deviceType: zod.ZodEnum<{
|
|
885
|
+
"iot-gateway": "iot-gateway";
|
|
886
|
+
wifiIndoor: "wifiIndoor";
|
|
887
|
+
wifiOutdoor: "wifiOutdoor";
|
|
888
|
+
wifiDataOnly: "wifiDataOnly";
|
|
889
|
+
cbrs: "cbrs";
|
|
890
|
+
}>;
|
|
891
|
+
city: zod.ZodOptional<zod.ZodString>;
|
|
892
|
+
state: zod.ZodOptional<zod.ZodString>;
|
|
893
|
+
country: zod.ZodOptional<zod.ZodString>;
|
|
894
|
+
asset: zod.ZodString;
|
|
895
|
+
isOnline: zod.ZodOptional<zod.ZodBoolean>;
|
|
896
|
+
owner: zod.ZodOptional<zod.ZodString>;
|
|
897
|
+
shares: zod.ZodOptional<zod.ZodObject<{
|
|
898
|
+
fixed: zod.ZodOptional<zod.ZodString>;
|
|
899
|
+
percentage: zod.ZodOptional<zod.ZodNumber>;
|
|
900
|
+
}, zod_v4_core.$strip>>;
|
|
901
|
+
ownershipType: zod.ZodString;
|
|
902
|
+
}, zod_v4_core.$strip>>;
|
|
903
|
+
}, zod_v4_core.$strip>;
|
|
904
|
+
transactionData: zod.ZodObject<{
|
|
905
|
+
transactions: zod.ZodArray<zod.ZodObject<{
|
|
906
|
+
serializedTransaction: zod.ZodString;
|
|
907
|
+
metadata: zod.ZodOptional<zod.ZodObject<{
|
|
908
|
+
type: zod.ZodString;
|
|
909
|
+
description: zod.ZodString;
|
|
910
|
+
}, zod_v4_core.$catchall<zod.ZodUnknown>>>;
|
|
911
|
+
}, zod_v4_core.$strip>>;
|
|
912
|
+
parallel: zod.ZodBoolean;
|
|
913
|
+
tag: zod.ZodOptional<zod.ZodString>;
|
|
914
|
+
}, zod_v4_core.$strip>;
|
|
915
|
+
}, zod_v4_core.$strip>;
|
|
916
|
+
readonly errors: {
|
|
917
|
+
readonly BAD_REQUEST: {
|
|
918
|
+
readonly message: "Invalid welcome pack configuration";
|
|
919
|
+
};
|
|
920
|
+
readonly UNAUTHORIZED: {
|
|
921
|
+
readonly status: 401;
|
|
922
|
+
readonly message: "Authentication required. Please sign in to continue.";
|
|
923
|
+
};
|
|
924
|
+
readonly FORBIDDEN: {
|
|
925
|
+
readonly status: 403;
|
|
926
|
+
readonly message: "You do not have permission to access this resource.";
|
|
927
|
+
};
|
|
928
|
+
readonly NOT_FOUND: {
|
|
929
|
+
readonly status: 404;
|
|
930
|
+
readonly message: "The requested resource was not found.";
|
|
931
|
+
};
|
|
932
|
+
readonly VALIDATION_ERROR: {
|
|
933
|
+
readonly status: 400;
|
|
934
|
+
readonly message: "Invalid input data provided.";
|
|
935
|
+
readonly data: zod.ZodObject<{
|
|
936
|
+
fields: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
937
|
+
}, zod_v4_core.$strip>;
|
|
938
|
+
};
|
|
939
|
+
};
|
|
940
|
+
};
|
|
941
|
+
readonly get: {
|
|
942
|
+
readonly route: {
|
|
943
|
+
readonly method: "GET";
|
|
944
|
+
readonly path: "/welcome-packs/{walletAddress}/{packId}";
|
|
945
|
+
};
|
|
946
|
+
readonly input: zod.ZodObject<{
|
|
947
|
+
walletAddress: zod.ZodString;
|
|
948
|
+
packId: zod.ZodNumber;
|
|
949
|
+
}, zod_v4_core.$strip>;
|
|
950
|
+
readonly output: zod.ZodObject<{
|
|
951
|
+
address: zod.ZodString;
|
|
952
|
+
id: zod.ZodNumber;
|
|
953
|
+
owner: zod.ZodString;
|
|
954
|
+
asset: zod.ZodString;
|
|
955
|
+
lazyDistributor: zod.ZodString;
|
|
956
|
+
rewardsMint: zod.ZodString;
|
|
957
|
+
rentRefund: zod.ZodString;
|
|
958
|
+
solAmount: zod.ZodString;
|
|
959
|
+
rewardsSplit: zod.ZodArray<zod.ZodObject<{
|
|
960
|
+
address: zod.ZodString;
|
|
961
|
+
type: zod.ZodEnum<{
|
|
962
|
+
fixed: "fixed";
|
|
963
|
+
percentage: "percentage";
|
|
964
|
+
}>;
|
|
965
|
+
amount: zod.ZodNumber;
|
|
966
|
+
}, zod_v4_core.$strip>>;
|
|
967
|
+
rewardsSchedule: zod.ZodString;
|
|
968
|
+
assetReturnAddress: zod.ZodString;
|
|
969
|
+
bumpSeed: zod.ZodNumber;
|
|
970
|
+
uniqueId: zod.ZodString;
|
|
971
|
+
loading: zod.ZodOptional<zod.ZodBoolean>;
|
|
972
|
+
hotspot: zod.ZodNullable<zod.ZodObject<{
|
|
973
|
+
address: zod.ZodString;
|
|
974
|
+
entityKey: zod.ZodString;
|
|
975
|
+
name: zod.ZodString;
|
|
976
|
+
type: zod.ZodEnum<{
|
|
977
|
+
iot: "iot";
|
|
978
|
+
mobile: "mobile";
|
|
979
|
+
all: "all";
|
|
980
|
+
}>;
|
|
981
|
+
deviceType: zod.ZodEnum<{
|
|
982
|
+
"iot-gateway": "iot-gateway";
|
|
983
|
+
wifiIndoor: "wifiIndoor";
|
|
984
|
+
wifiOutdoor: "wifiOutdoor";
|
|
985
|
+
wifiDataOnly: "wifiDataOnly";
|
|
986
|
+
cbrs: "cbrs";
|
|
987
|
+
}>;
|
|
988
|
+
city: zod.ZodOptional<zod.ZodString>;
|
|
989
|
+
state: zod.ZodOptional<zod.ZodString>;
|
|
990
|
+
country: zod.ZodOptional<zod.ZodString>;
|
|
991
|
+
asset: zod.ZodString;
|
|
992
|
+
isOnline: zod.ZodOptional<zod.ZodBoolean>;
|
|
993
|
+
owner: zod.ZodOptional<zod.ZodString>;
|
|
994
|
+
shares: zod.ZodOptional<zod.ZodObject<{
|
|
995
|
+
fixed: zod.ZodOptional<zod.ZodString>;
|
|
996
|
+
percentage: zod.ZodOptional<zod.ZodNumber>;
|
|
997
|
+
}, zod_v4_core.$strip>>;
|
|
998
|
+
ownershipType: zod.ZodString;
|
|
999
|
+
}, zod_v4_core.$strip>>;
|
|
1000
|
+
}, zod_v4_core.$strip>;
|
|
1001
|
+
readonly errors: {
|
|
1002
|
+
readonly NOT_FOUND: {
|
|
1003
|
+
readonly message: "Welcome pack not found";
|
|
1004
|
+
};
|
|
1005
|
+
};
|
|
1006
|
+
};
|
|
1007
|
+
readonly delete: {
|
|
1008
|
+
readonly route: {
|
|
1009
|
+
readonly method: "DELETE";
|
|
1010
|
+
readonly path: "/welcome-packs/{walletAddress}/{packId}";
|
|
1011
|
+
};
|
|
1012
|
+
readonly input: zod.ZodObject<{
|
|
1013
|
+
walletAddress: zod.ZodString;
|
|
1014
|
+
packId: zod.ZodNumber;
|
|
1015
|
+
}, zod_v4_core.$strip>;
|
|
1016
|
+
readonly output: zod.ZodObject<{
|
|
1017
|
+
transactionData: zod.ZodObject<{
|
|
1018
|
+
transactions: zod.ZodArray<zod.ZodObject<{
|
|
1019
|
+
serializedTransaction: zod.ZodString;
|
|
1020
|
+
metadata: zod.ZodOptional<zod.ZodObject<{
|
|
1021
|
+
type: zod.ZodString;
|
|
1022
|
+
description: zod.ZodString;
|
|
1023
|
+
}, zod_v4_core.$catchall<zod.ZodUnknown>>>;
|
|
1024
|
+
}, zod_v4_core.$strip>>;
|
|
1025
|
+
parallel: zod.ZodBoolean;
|
|
1026
|
+
tag: zod.ZodOptional<zod.ZodString>;
|
|
1027
|
+
}, zod_v4_core.$strip>;
|
|
1028
|
+
}, zod_v4_core.$strip>;
|
|
1029
|
+
readonly errors: {
|
|
1030
|
+
readonly NOT_FOUND: {
|
|
1031
|
+
readonly message: "Welcome pack not found";
|
|
1032
|
+
};
|
|
1033
|
+
readonly UNAUTHORIZED: {
|
|
1034
|
+
readonly status: 401;
|
|
1035
|
+
readonly message: "Authentication required. Please sign in to continue.";
|
|
1036
|
+
};
|
|
1037
|
+
readonly FORBIDDEN: {
|
|
1038
|
+
readonly status: 403;
|
|
1039
|
+
readonly message: "You do not have permission to access this resource.";
|
|
1040
|
+
};
|
|
1041
|
+
readonly VALIDATION_ERROR: {
|
|
1042
|
+
readonly status: 400;
|
|
1043
|
+
readonly message: "Invalid input data provided.";
|
|
1044
|
+
readonly data: zod.ZodObject<{
|
|
1045
|
+
fields: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
1046
|
+
}, zod_v4_core.$strip>;
|
|
1047
|
+
};
|
|
1048
|
+
};
|
|
1049
|
+
};
|
|
1050
|
+
readonly getByAddress: {
|
|
1051
|
+
readonly route: {
|
|
1052
|
+
readonly method: "GET";
|
|
1053
|
+
readonly path: "/welcome-packs/address/{packAddress}";
|
|
1054
|
+
};
|
|
1055
|
+
readonly input: zod.ZodObject<{
|
|
1056
|
+
packAddress: zod.ZodString;
|
|
1057
|
+
}, zod_v4_core.$strip>;
|
|
1058
|
+
readonly output: zod.ZodObject<{
|
|
1059
|
+
address: zod.ZodString;
|
|
1060
|
+
id: zod.ZodNumber;
|
|
1061
|
+
owner: zod.ZodString;
|
|
1062
|
+
asset: zod.ZodString;
|
|
1063
|
+
lazyDistributor: zod.ZodString;
|
|
1064
|
+
rewardsMint: zod.ZodString;
|
|
1065
|
+
rentRefund: zod.ZodString;
|
|
1066
|
+
solAmount: zod.ZodString;
|
|
1067
|
+
rewardsSplit: zod.ZodArray<zod.ZodObject<{
|
|
1068
|
+
address: zod.ZodString;
|
|
1069
|
+
type: zod.ZodEnum<{
|
|
1070
|
+
fixed: "fixed";
|
|
1071
|
+
percentage: "percentage";
|
|
1072
|
+
}>;
|
|
1073
|
+
amount: zod.ZodNumber;
|
|
1074
|
+
}, zod_v4_core.$strip>>;
|
|
1075
|
+
rewardsSchedule: zod.ZodString;
|
|
1076
|
+
assetReturnAddress: zod.ZodString;
|
|
1077
|
+
bumpSeed: zod.ZodNumber;
|
|
1078
|
+
uniqueId: zod.ZodString;
|
|
1079
|
+
loading: zod.ZodOptional<zod.ZodBoolean>;
|
|
1080
|
+
hotspot: zod.ZodNullable<zod.ZodObject<{
|
|
1081
|
+
address: zod.ZodString;
|
|
1082
|
+
entityKey: zod.ZodString;
|
|
1083
|
+
name: zod.ZodString;
|
|
1084
|
+
type: zod.ZodEnum<{
|
|
1085
|
+
iot: "iot";
|
|
1086
|
+
mobile: "mobile";
|
|
1087
|
+
all: "all";
|
|
1088
|
+
}>;
|
|
1089
|
+
deviceType: zod.ZodEnum<{
|
|
1090
|
+
"iot-gateway": "iot-gateway";
|
|
1091
|
+
wifiIndoor: "wifiIndoor";
|
|
1092
|
+
wifiOutdoor: "wifiOutdoor";
|
|
1093
|
+
wifiDataOnly: "wifiDataOnly";
|
|
1094
|
+
cbrs: "cbrs";
|
|
1095
|
+
}>;
|
|
1096
|
+
city: zod.ZodOptional<zod.ZodString>;
|
|
1097
|
+
state: zod.ZodOptional<zod.ZodString>;
|
|
1098
|
+
country: zod.ZodOptional<zod.ZodString>;
|
|
1099
|
+
asset: zod.ZodString;
|
|
1100
|
+
isOnline: zod.ZodOptional<zod.ZodBoolean>;
|
|
1101
|
+
owner: zod.ZodOptional<zod.ZodString>;
|
|
1102
|
+
shares: zod.ZodOptional<zod.ZodObject<{
|
|
1103
|
+
fixed: zod.ZodOptional<zod.ZodString>;
|
|
1104
|
+
percentage: zod.ZodOptional<zod.ZodNumber>;
|
|
1105
|
+
}, zod_v4_core.$strip>>;
|
|
1106
|
+
ownershipType: zod.ZodString;
|
|
1107
|
+
}, zod_v4_core.$strip>>;
|
|
1108
|
+
}, zod_v4_core.$strip>;
|
|
1109
|
+
readonly errors: {
|
|
1110
|
+
readonly NOT_FOUND: {
|
|
1111
|
+
readonly message: "Welcome pack not found";
|
|
1112
|
+
};
|
|
1113
|
+
};
|
|
1114
|
+
};
|
|
1115
|
+
readonly claim: {
|
|
1116
|
+
readonly route: {
|
|
1117
|
+
readonly method: "POST";
|
|
1118
|
+
readonly path: "/welcome-packs/claim";
|
|
1119
|
+
};
|
|
1120
|
+
readonly input: zod.ZodObject<{
|
|
1121
|
+
packAddress: zod.ZodString;
|
|
1122
|
+
walletAddress: zod.ZodString;
|
|
1123
|
+
signature: zod.ZodString;
|
|
1124
|
+
expirationTs: zod.ZodString;
|
|
1125
|
+
}, zod_v4_core.$strip>;
|
|
1126
|
+
readonly output: zod.ZodObject<{
|
|
1127
|
+
transactionData: zod.ZodObject<{
|
|
1128
|
+
transactions: zod.ZodArray<zod.ZodObject<{
|
|
1129
|
+
serializedTransaction: zod.ZodString;
|
|
1130
|
+
metadata: zod.ZodOptional<zod.ZodObject<{
|
|
1131
|
+
type: zod.ZodString;
|
|
1132
|
+
description: zod.ZodString;
|
|
1133
|
+
}, zod_v4_core.$catchall<zod.ZodUnknown>>>;
|
|
1134
|
+
}, zod_v4_core.$strip>>;
|
|
1135
|
+
parallel: zod.ZodBoolean;
|
|
1136
|
+
tag: zod.ZodOptional<zod.ZodString>;
|
|
1137
|
+
}, zod_v4_core.$strip>;
|
|
1138
|
+
}, zod_v4_core.$strip>;
|
|
1139
|
+
readonly errors: {
|
|
1140
|
+
readonly BAD_REQUEST: {
|
|
1141
|
+
readonly message: "Invalid claim parameters";
|
|
1142
|
+
};
|
|
1143
|
+
readonly EXPIRED: {
|
|
1144
|
+
readonly message: "Claim link has expired";
|
|
1145
|
+
};
|
|
1146
|
+
readonly UNAUTHORIZED: {
|
|
1147
|
+
readonly status: 401;
|
|
1148
|
+
readonly message: "Authentication required. Please sign in to continue.";
|
|
1149
|
+
};
|
|
1150
|
+
readonly FORBIDDEN: {
|
|
1151
|
+
readonly status: 403;
|
|
1152
|
+
readonly message: "You do not have permission to access this resource.";
|
|
1153
|
+
};
|
|
1154
|
+
readonly NOT_FOUND: {
|
|
1155
|
+
readonly status: 404;
|
|
1156
|
+
readonly message: "The requested resource was not found.";
|
|
1157
|
+
};
|
|
1158
|
+
readonly VALIDATION_ERROR: {
|
|
1159
|
+
readonly status: 400;
|
|
1160
|
+
readonly message: "Invalid input data provided.";
|
|
1161
|
+
readonly data: zod.ZodObject<{
|
|
1162
|
+
fields: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
1163
|
+
}, zod_v4_core.$strip>;
|
|
1164
|
+
};
|
|
1165
|
+
};
|
|
1166
|
+
};
|
|
1167
|
+
readonly invite: {
|
|
1168
|
+
readonly route: {
|
|
1169
|
+
readonly method: "POST";
|
|
1170
|
+
readonly path: "/welcome-packs/invite";
|
|
1171
|
+
};
|
|
1172
|
+
readonly input: zod.ZodObject<{
|
|
1173
|
+
packAddress: zod.ZodString;
|
|
1174
|
+
walletAddress: zod.ZodString;
|
|
1175
|
+
expirationDays: zod.ZodDefault<zod.ZodNumber>;
|
|
1176
|
+
}, zod_v4_core.$strip>;
|
|
1177
|
+
readonly output: zod.ZodObject<{
|
|
1178
|
+
message: zod.ZodString;
|
|
1179
|
+
expirationTs: zod.ZodNumber;
|
|
1180
|
+
}, zod_v4_core.$strip>;
|
|
1181
|
+
readonly errors: {
|
|
1182
|
+
readonly NOT_FOUND: {
|
|
1183
|
+
readonly message: "Welcome pack not found";
|
|
1184
|
+
};
|
|
1185
|
+
readonly UNAUTHORIZED: {
|
|
1186
|
+
readonly status: 401;
|
|
1187
|
+
readonly message: "Authentication required. Please sign in to continue.";
|
|
1188
|
+
};
|
|
1189
|
+
readonly FORBIDDEN: {
|
|
1190
|
+
readonly status: 403;
|
|
1191
|
+
readonly message: "You do not have permission to access this resource.";
|
|
1192
|
+
};
|
|
1193
|
+
readonly VALIDATION_ERROR: {
|
|
1194
|
+
readonly status: 400;
|
|
1195
|
+
readonly message: "Invalid input data provided.";
|
|
1196
|
+
readonly data: zod.ZodObject<{
|
|
1197
|
+
fields: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
1198
|
+
}, zod_v4_core.$strip>;
|
|
1199
|
+
};
|
|
1200
|
+
};
|
|
1201
|
+
};
|
|
1202
|
+
};
|
|
1203
|
+
};
|
|
1204
|
+
type APIContract = typeof apiContract;
|
|
1205
|
+
|
|
1206
|
+
/**
|
|
1207
|
+
* Utility types to infer client interface from contract definitions.
|
|
1208
|
+
* This provides full type safety derived from Zod schemas.
|
|
1209
|
+
*/
|
|
1210
|
+
type ContractProcedureWithInput = {
|
|
1211
|
+
input: z.ZodTypeAny;
|
|
1212
|
+
output: z.ZodTypeAny;
|
|
1213
|
+
};
|
|
1214
|
+
type ContractProcedureWithoutInput = {
|
|
1215
|
+
output: z.ZodTypeAny;
|
|
1216
|
+
};
|
|
1217
|
+
type ContractProcedure = ContractProcedureWithInput | ContractProcedureWithoutInput;
|
|
1218
|
+
type InferProcedure<T> = T extends ContractProcedureWithInput ? (input: z.input<T["input"]>) => Promise<z.output<T["output"]>> : T extends ContractProcedureWithoutInput ? () => Promise<z.output<T["output"]>> : never;
|
|
1219
|
+
type InferRouter<T> = {
|
|
1220
|
+
[K in keyof T]: T[K] extends ContractProcedure ? InferProcedure<T[K]> : T[K] extends Record<string, ContractProcedure> ? {
|
|
1221
|
+
[P in keyof T[K]]: InferProcedure<T[K][P]>;
|
|
1222
|
+
} : never;
|
|
1223
|
+
};
|
|
1224
|
+
/**
|
|
1225
|
+
* Fully typed API client interface inferred from contract definitions.
|
|
1226
|
+
* Types automatically stay in sync with schema changes.
|
|
1227
|
+
*/
|
|
1228
|
+
type APIRouter = InferRouter<typeof apiContract>;
|
|
1229
|
+
/**
|
|
1230
|
+
* Create a typed client for the Helium Blockchain API.
|
|
1231
|
+
*
|
|
1232
|
+
* All consumer-facing endpoints are public and don't require authentication.
|
|
1233
|
+
*
|
|
1234
|
+
* @example
|
|
1235
|
+
* ```typescript
|
|
1236
|
+
* import { createClient } from '@helium/blockchain-api';
|
|
1237
|
+
*
|
|
1238
|
+
* const client = createClient({ url: 'https://api.helium.com' });
|
|
1239
|
+
*
|
|
1240
|
+
* const balances = await client.tokens.getBalances({ walletAddress: '...' });
|
|
1241
|
+
* const hotspots = await client.hotspots.getHotspots({ walletAddress: '...' });
|
|
1242
|
+
* const quote = await client.swap.getQuote({ inputMint: '...', outputMint: '...', amount: 1000 });
|
|
1243
|
+
* ```
|
|
1244
|
+
*/
|
|
1245
|
+
declare function createClient(options: ClientOptions): APIRouter;
|
|
1246
|
+
|
|
1247
|
+
type DeepPartial<T> = {
|
|
1248
|
+
[P in keyof T]?: T[P] extends (...args: infer A) => infer R ? (...args: A) => R | Promise<Awaited<R>> : T[P] extends object ? DeepPartial<T[P]> : T[P];
|
|
1249
|
+
};
|
|
1250
|
+
/**
|
|
1251
|
+
* Mock implementation overrides for testing.
|
|
1252
|
+
*/
|
|
1253
|
+
type MockImplementation = DeepPartial<APIRouter>;
|
|
1254
|
+
/**
|
|
1255
|
+
* Create a mock client for testing purposes.
|
|
1256
|
+
* Provides typed mock implementations that can be used in unit tests.
|
|
1257
|
+
*
|
|
1258
|
+
* @example
|
|
1259
|
+
* ```typescript
|
|
1260
|
+
* const mockClient = createMockClient({
|
|
1261
|
+
* tokens: {
|
|
1262
|
+
* getBalances: async () => ({
|
|
1263
|
+
* totalBalanceUsd: 100,
|
|
1264
|
+
* solBalance: 1,
|
|
1265
|
+
* solBalanceUsd: 50,
|
|
1266
|
+
* tokens: [{ mint: 'HNT...', balance: '1000000', ... }]
|
|
1267
|
+
* })
|
|
1268
|
+
* },
|
|
1269
|
+
* health: {
|
|
1270
|
+
* check: async () => ({ ok: true })
|
|
1271
|
+
* }
|
|
1272
|
+
* });
|
|
1273
|
+
*
|
|
1274
|
+
* const result = await mockClient.tokens.getBalances({ walletAddress: '...' });
|
|
1275
|
+
* expect(result.totalBalanceUsd).toBe(100);
|
|
1276
|
+
* ```
|
|
1277
|
+
*/
|
|
1278
|
+
declare function createMockClient(mocks?: MockImplementation): APIRouter;
|
|
1279
|
+
|
|
1280
|
+
interface OpenAPIInfo {
|
|
1281
|
+
title: string;
|
|
1282
|
+
version: string;
|
|
1283
|
+
description?: string;
|
|
1284
|
+
}
|
|
1285
|
+
interface OpenAPISpec {
|
|
1286
|
+
openapi: string;
|
|
1287
|
+
info: OpenAPIInfo;
|
|
1288
|
+
servers?: Array<{
|
|
1289
|
+
url: string;
|
|
1290
|
+
description?: string;
|
|
1291
|
+
}>;
|
|
1292
|
+
paths: Record<string, unknown>;
|
|
1293
|
+
components: {
|
|
1294
|
+
schemas: Record<string, unknown>;
|
|
1295
|
+
};
|
|
1296
|
+
}
|
|
1297
|
+
/**
|
|
1298
|
+
* Generate an OpenAPI 3.0 specification from the API contract.
|
|
1299
|
+
*
|
|
1300
|
+
* @example
|
|
1301
|
+
* ```typescript
|
|
1302
|
+
* const spec = generateOpenAPISpec({
|
|
1303
|
+
* title: 'Helium Blockchain API',
|
|
1304
|
+
* version: '1.0.0',
|
|
1305
|
+
* servers: [{ url: 'https://api.helium.com' }]
|
|
1306
|
+
* });
|
|
1307
|
+
*
|
|
1308
|
+
* // Write to file
|
|
1309
|
+
* fs.writeFileSync('openapi.json', JSON.stringify(spec, null, 2));
|
|
1310
|
+
* ```
|
|
1311
|
+
*/
|
|
1312
|
+
declare function generateOpenAPISpec(options: {
|
|
1313
|
+
info?: Partial<OpenAPIInfo>;
|
|
1314
|
+
servers?: Array<{
|
|
1315
|
+
url: string;
|
|
1316
|
+
description?: string;
|
|
1317
|
+
}>;
|
|
1318
|
+
}): OpenAPISpec;
|
|
1319
|
+
/**
|
|
1320
|
+
* Get the API contract for inspection or custom processing.
|
|
1321
|
+
*/
|
|
1322
|
+
declare function getAPIContract(): APIContract;
|
|
1323
|
+
|
|
1324
|
+
/**
|
|
1325
|
+
* Metadata associated with a transaction for tracking and display purposes.
|
|
1326
|
+
*/
|
|
1327
|
+
declare const TransactionMetadataSchema: z.ZodObject<{
|
|
1328
|
+
type: z.ZodString;
|
|
1329
|
+
description: z.ZodString;
|
|
1330
|
+
}, z.core.$catchall<z.ZodUnknown>>;
|
|
1331
|
+
/**
|
|
1332
|
+
* A single transaction item with serialized data and optional metadata.
|
|
1333
|
+
*/
|
|
1334
|
+
declare const TransactionItemSchema: z.ZodObject<{
|
|
1335
|
+
serializedTransaction: z.ZodString;
|
|
1336
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
1337
|
+
type: z.ZodString;
|
|
1338
|
+
description: z.ZodString;
|
|
1339
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
1340
|
+
}, z.core.$strip>;
|
|
1341
|
+
/**
|
|
1342
|
+
* Transaction data returned by procedures that create transactions.
|
|
1343
|
+
* Contains serialized transactions ready for signing and submission.
|
|
1344
|
+
*/
|
|
1345
|
+
declare const TransactionDataSchema: z.ZodObject<{
|
|
1346
|
+
transactions: z.ZodArray<z.ZodObject<{
|
|
1347
|
+
serializedTransaction: z.ZodString;
|
|
1348
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
1349
|
+
type: z.ZodString;
|
|
1350
|
+
description: z.ZodString;
|
|
1351
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
1352
|
+
}, z.core.$strip>>;
|
|
1353
|
+
parallel: z.ZodBoolean;
|
|
1354
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
1355
|
+
}, z.core.$strip>;
|
|
1356
|
+
/**
|
|
1357
|
+
* Request schema for submitting a batch of transactions.
|
|
1358
|
+
*/
|
|
1359
|
+
declare const TransactionBatchRequestSchema: z.ZodObject<{
|
|
1360
|
+
transactions: z.ZodArray<z.ZodObject<{
|
|
1361
|
+
serializedTransaction: z.ZodString;
|
|
1362
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
1363
|
+
type: z.ZodString;
|
|
1364
|
+
description: z.ZodString;
|
|
1365
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
1366
|
+
}, z.core.$strip>>;
|
|
1367
|
+
parallel: z.ZodBoolean;
|
|
1368
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
1369
|
+
}, z.core.$strip>;
|
|
1370
|
+
/**
|
|
1371
|
+
* Response schema for transaction batch submission.
|
|
1372
|
+
*/
|
|
1373
|
+
declare const TransactionBatchResponseSchema: z.ZodObject<{
|
|
1374
|
+
batchId: z.ZodString;
|
|
1375
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1376
|
+
}, z.core.$strip>;
|
|
1377
|
+
/**
|
|
1378
|
+
* Standard error response schema.
|
|
1379
|
+
*/
|
|
1380
|
+
declare const ErrorResponseSchema: z.ZodObject<{
|
|
1381
|
+
error: z.ZodString;
|
|
1382
|
+
details: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1383
|
+
}, z.core.$strip>;
|
|
1384
|
+
/**
|
|
1385
|
+
* Solana wallet address validation.
|
|
1386
|
+
*/
|
|
1387
|
+
declare const WalletAddressSchema: z.ZodString;
|
|
1388
|
+
/**
|
|
1389
|
+
* Solana public key validation (base58 encoded).
|
|
1390
|
+
*/
|
|
1391
|
+
declare const PublicKeySchema: z.ZodString;
|
|
1392
|
+
/**
|
|
1393
|
+
* Standard pagination input schema.
|
|
1394
|
+
*/
|
|
1395
|
+
declare const PaginationInputSchema: z.ZodObject<{
|
|
1396
|
+
page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1397
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1398
|
+
}, z.core.$strip>;
|
|
1399
|
+
/**
|
|
1400
|
+
* Standard pagination output schema.
|
|
1401
|
+
*/
|
|
1402
|
+
declare const PaginationOutputSchema: z.ZodObject<{
|
|
1403
|
+
total: z.ZodNumber;
|
|
1404
|
+
page: z.ZodNumber;
|
|
1405
|
+
totalPages: z.ZodNumber;
|
|
1406
|
+
}, z.core.$strip>;
|
|
1407
|
+
type TransactionMetadata = z.infer<typeof TransactionMetadataSchema>;
|
|
1408
|
+
type TransactionItem = z.infer<typeof TransactionItemSchema>;
|
|
1409
|
+
type TransactionData = z.infer<typeof TransactionDataSchema>;
|
|
1410
|
+
type TransactionBatchRequest = z.infer<typeof TransactionBatchRequestSchema>;
|
|
1411
|
+
type TransactionBatchResponse = z.infer<typeof TransactionBatchResponseSchema>;
|
|
1412
|
+
type ErrorResponse = z.infer<typeof ErrorResponseSchema>;
|
|
1413
|
+
|
|
1414
|
+
declare const HealthResponseSchema: z.ZodObject<{
|
|
1415
|
+
ok: z.ZodBoolean;
|
|
1416
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1417
|
+
}, z.core.$strip>;
|
|
1418
|
+
type HealthResponse = z.infer<typeof HealthResponseSchema>;
|
|
1419
|
+
|
|
1420
|
+
declare const GetBalancesInputSchema: z.ZodObject<{
|
|
1421
|
+
walletAddress: z.ZodString;
|
|
1422
|
+
}, z.core.$strip>;
|
|
1423
|
+
declare const TransferInputSchema: z.ZodObject<{
|
|
1424
|
+
walletAddress: z.ZodString;
|
|
1425
|
+
mint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1426
|
+
destination: z.ZodString;
|
|
1427
|
+
amount: z.ZodString;
|
|
1428
|
+
decimals: z.ZodOptional<z.ZodNumber>;
|
|
1429
|
+
}, z.core.$strip>;
|
|
1430
|
+
declare const CreateHntAccountInputSchema: z.ZodObject<{
|
|
1431
|
+
walletAddress: z.ZodString;
|
|
1432
|
+
}, z.core.$strip>;
|
|
1433
|
+
declare const TokenAccountSchema: z.ZodObject<{
|
|
1434
|
+
mint: z.ZodString;
|
|
1435
|
+
address: z.ZodString;
|
|
1436
|
+
balance: z.ZodString;
|
|
1437
|
+
decimals: z.ZodNumber;
|
|
1438
|
+
uiAmount: z.ZodNumber;
|
|
1439
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
1440
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1441
|
+
logoURI: z.ZodOptional<z.ZodString>;
|
|
1442
|
+
priceUsd: z.ZodOptional<z.ZodNumber>;
|
|
1443
|
+
balanceUsd: z.ZodOptional<z.ZodNumber>;
|
|
1444
|
+
}, z.core.$strip>;
|
|
1445
|
+
declare const TokenBalanceDataSchema: z.ZodObject<{
|
|
1446
|
+
totalBalanceUsd: z.ZodNumber;
|
|
1447
|
+
solBalance: z.ZodNumber;
|
|
1448
|
+
solBalanceUsd: z.ZodNumber;
|
|
1449
|
+
tokens: z.ZodArray<z.ZodObject<{
|
|
1450
|
+
mint: z.ZodString;
|
|
1451
|
+
address: z.ZodString;
|
|
1452
|
+
balance: z.ZodString;
|
|
1453
|
+
decimals: z.ZodNumber;
|
|
1454
|
+
uiAmount: z.ZodNumber;
|
|
1455
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
1456
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1457
|
+
logoURI: z.ZodOptional<z.ZodString>;
|
|
1458
|
+
priceUsd: z.ZodOptional<z.ZodNumber>;
|
|
1459
|
+
balanceUsd: z.ZodOptional<z.ZodNumber>;
|
|
1460
|
+
}, z.core.$strip>>;
|
|
1461
|
+
}, z.core.$strip>;
|
|
1462
|
+
declare const TransferOutputSchema: z.ZodObject<{
|
|
1463
|
+
transactionData: z.ZodObject<{
|
|
1464
|
+
transactions: z.ZodArray<z.ZodObject<{
|
|
1465
|
+
serializedTransaction: z.ZodString;
|
|
1466
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
1467
|
+
type: z.ZodString;
|
|
1468
|
+
description: z.ZodString;
|
|
1469
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
1470
|
+
}, z.core.$strip>>;
|
|
1471
|
+
parallel: z.ZodBoolean;
|
|
1472
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
1473
|
+
}, z.core.$strip>;
|
|
1474
|
+
}, z.core.$strip>;
|
|
1475
|
+
declare const CreateHntAccountOutputSchema: z.ZodObject<{
|
|
1476
|
+
transactionData: z.ZodObject<{
|
|
1477
|
+
transactions: z.ZodArray<z.ZodObject<{
|
|
1478
|
+
serializedTransaction: z.ZodString;
|
|
1479
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
1480
|
+
type: z.ZodString;
|
|
1481
|
+
description: z.ZodString;
|
|
1482
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
1483
|
+
}, z.core.$strip>>;
|
|
1484
|
+
parallel: z.ZodBoolean;
|
|
1485
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
1486
|
+
}, z.core.$strip>;
|
|
1487
|
+
}, z.core.$strip>;
|
|
1488
|
+
type GetBalancesInput = z.infer<typeof GetBalancesInputSchema>;
|
|
1489
|
+
type TransferInput = z.infer<typeof TransferInputSchema>;
|
|
1490
|
+
type CreateHntAccountInput = z.infer<typeof CreateHntAccountInputSchema>;
|
|
1491
|
+
type TokenAccount = z.infer<typeof TokenAccountSchema>;
|
|
1492
|
+
type TokenBalanceData = z.infer<typeof TokenBalanceDataSchema>;
|
|
1493
|
+
type TransferOutput = z.infer<typeof TransferOutputSchema>;
|
|
1494
|
+
type CreateHntAccountOutput = z.infer<typeof CreateHntAccountOutputSchema>;
|
|
1495
|
+
|
|
1496
|
+
declare const HotspotTypeSchema: z.ZodEnum<{
|
|
1497
|
+
iot: "iot";
|
|
1498
|
+
mobile: "mobile";
|
|
1499
|
+
all: "all";
|
|
1500
|
+
}>;
|
|
1501
|
+
declare const DeviceTypeSchema: z.ZodEnum<{
|
|
1502
|
+
"iot-gateway": "iot-gateway";
|
|
1503
|
+
wifiIndoor: "wifiIndoor";
|
|
1504
|
+
wifiOutdoor: "wifiOutdoor";
|
|
1505
|
+
wifiDataOnly: "wifiDataOnly";
|
|
1506
|
+
cbrs: "cbrs";
|
|
1507
|
+
}>;
|
|
1508
|
+
declare const OwnershipTypeSchema: z.ZodEnum<{
|
|
1509
|
+
all: "all";
|
|
1510
|
+
owner: "owner";
|
|
1511
|
+
direct: "direct";
|
|
1512
|
+
fanout: "fanout";
|
|
1513
|
+
}>;
|
|
1514
|
+
declare const HotspotSharesSchema: z.ZodObject<{
|
|
1515
|
+
fixed: z.ZodOptional<z.ZodString>;
|
|
1516
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
1517
|
+
}, z.core.$strip>;
|
|
1518
|
+
declare const HotspotSchema: z.ZodObject<{
|
|
1519
|
+
address: z.ZodString;
|
|
1520
|
+
entityKey: z.ZodString;
|
|
1521
|
+
name: z.ZodString;
|
|
1522
|
+
type: z.ZodEnum<{
|
|
1523
|
+
iot: "iot";
|
|
1524
|
+
mobile: "mobile";
|
|
1525
|
+
all: "all";
|
|
1526
|
+
}>;
|
|
1527
|
+
deviceType: z.ZodEnum<{
|
|
1528
|
+
"iot-gateway": "iot-gateway";
|
|
1529
|
+
wifiIndoor: "wifiIndoor";
|
|
1530
|
+
wifiOutdoor: "wifiOutdoor";
|
|
1531
|
+
wifiDataOnly: "wifiDataOnly";
|
|
1532
|
+
cbrs: "cbrs";
|
|
1533
|
+
}>;
|
|
1534
|
+
city: z.ZodOptional<z.ZodString>;
|
|
1535
|
+
state: z.ZodOptional<z.ZodString>;
|
|
1536
|
+
country: z.ZodOptional<z.ZodString>;
|
|
1537
|
+
asset: z.ZodString;
|
|
1538
|
+
isOnline: z.ZodOptional<z.ZodBoolean>;
|
|
1539
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
1540
|
+
shares: z.ZodOptional<z.ZodObject<{
|
|
1541
|
+
fixed: z.ZodOptional<z.ZodString>;
|
|
1542
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
1543
|
+
}, z.core.$strip>>;
|
|
1544
|
+
ownershipType: z.ZodString;
|
|
1545
|
+
}, z.core.$strip>;
|
|
1546
|
+
declare const GetHotspotsInputSchema: z.ZodObject<{
|
|
1547
|
+
walletAddress: z.ZodString;
|
|
1548
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
1549
|
+
iot: "iot";
|
|
1550
|
+
mobile: "mobile";
|
|
1551
|
+
all: "all";
|
|
1552
|
+
}>>;
|
|
1553
|
+
page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1554
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1555
|
+
}, z.core.$strip>;
|
|
1556
|
+
declare const ClaimRewardsInputSchema: z.ZodObject<{
|
|
1557
|
+
walletAddress: z.ZodString;
|
|
1558
|
+
}, z.core.$strip>;
|
|
1559
|
+
declare const GetPendingRewardsInputSchema: z.ZodObject<{
|
|
1560
|
+
walletAddress: z.ZodString;
|
|
1561
|
+
}, z.core.$strip>;
|
|
1562
|
+
declare const TransferHotspotInputSchema: z.ZodObject<{
|
|
1563
|
+
walletAddress: z.ZodString;
|
|
1564
|
+
hotspotPubkey: z.ZodString;
|
|
1565
|
+
recipient: z.ZodString;
|
|
1566
|
+
}, z.core.$strip>;
|
|
1567
|
+
declare const UpdateRewardsDestinationInputSchema: z.ZodObject<{
|
|
1568
|
+
walletAddress: z.ZodString;
|
|
1569
|
+
hotspotPubkey: z.ZodString;
|
|
1570
|
+
destination: z.ZodString;
|
|
1571
|
+
lazyDistributors: z.ZodArray<z.ZodString>;
|
|
1572
|
+
}, z.core.$strip>;
|
|
1573
|
+
declare const GetSplitInputSchema: z.ZodObject<{
|
|
1574
|
+
walletAddress: z.ZodString;
|
|
1575
|
+
hotspotPubkey: z.ZodString;
|
|
1576
|
+
}, z.core.$strip>;
|
|
1577
|
+
declare const RewardSplitInputSchema: z.ZodObject<{
|
|
1578
|
+
address: z.ZodString;
|
|
1579
|
+
type: z.ZodEnum<{
|
|
1580
|
+
fixed: "fixed";
|
|
1581
|
+
percentage: "percentage";
|
|
1582
|
+
}>;
|
|
1583
|
+
amount: z.ZodNumber;
|
|
1584
|
+
}, z.core.$strip>;
|
|
1585
|
+
declare const ScheduleInputSchema: z.ZodObject<{
|
|
1586
|
+
frequency: z.ZodEnum<{
|
|
1587
|
+
daily: "daily";
|
|
1588
|
+
weekly: "weekly";
|
|
1589
|
+
monthly: "monthly";
|
|
1590
|
+
}>;
|
|
1591
|
+
time: z.ZodString;
|
|
1592
|
+
timezone: z.ZodString;
|
|
1593
|
+
dayOfWeek: z.ZodOptional<z.ZodString>;
|
|
1594
|
+
dayOfMonth: z.ZodOptional<z.ZodString>;
|
|
1595
|
+
}, z.core.$strip>;
|
|
1596
|
+
declare const CreateSplitInputSchema: z.ZodObject<{
|
|
1597
|
+
walletAddress: z.ZodString;
|
|
1598
|
+
hotspotPubkey: z.ZodString;
|
|
1599
|
+
rewardsSplit: z.ZodArray<z.ZodObject<{
|
|
1600
|
+
address: z.ZodString;
|
|
1601
|
+
type: z.ZodEnum<{
|
|
1602
|
+
fixed: "fixed";
|
|
1603
|
+
percentage: "percentage";
|
|
1604
|
+
}>;
|
|
1605
|
+
amount: z.ZodNumber;
|
|
1606
|
+
}, z.core.$strip>>;
|
|
1607
|
+
schedule: z.ZodObject<{
|
|
1608
|
+
frequency: z.ZodEnum<{
|
|
1609
|
+
daily: "daily";
|
|
1610
|
+
weekly: "weekly";
|
|
1611
|
+
monthly: "monthly";
|
|
1612
|
+
}>;
|
|
1613
|
+
time: z.ZodString;
|
|
1614
|
+
timezone: z.ZodString;
|
|
1615
|
+
dayOfWeek: z.ZodOptional<z.ZodString>;
|
|
1616
|
+
dayOfMonth: z.ZodOptional<z.ZodString>;
|
|
1617
|
+
}, z.core.$strip>;
|
|
1618
|
+
lazyDistributor: z.ZodString;
|
|
1619
|
+
}, z.core.$strip>;
|
|
1620
|
+
declare const DeleteSplitInputSchema: z.ZodObject<{
|
|
1621
|
+
walletAddress: z.ZodString;
|
|
1622
|
+
hotspotPubkey: z.ZodString;
|
|
1623
|
+
}, z.core.$strip>;
|
|
1624
|
+
declare const HotspotsDataSchema: z.ZodObject<{
|
|
1625
|
+
hotspots: z.ZodArray<z.ZodObject<{
|
|
1626
|
+
address: z.ZodString;
|
|
1627
|
+
entityKey: z.ZodString;
|
|
1628
|
+
name: z.ZodString;
|
|
1629
|
+
type: z.ZodEnum<{
|
|
1630
|
+
iot: "iot";
|
|
1631
|
+
mobile: "mobile";
|
|
1632
|
+
all: "all";
|
|
1633
|
+
}>;
|
|
1634
|
+
deviceType: z.ZodEnum<{
|
|
1635
|
+
"iot-gateway": "iot-gateway";
|
|
1636
|
+
wifiIndoor: "wifiIndoor";
|
|
1637
|
+
wifiOutdoor: "wifiOutdoor";
|
|
1638
|
+
wifiDataOnly: "wifiDataOnly";
|
|
1639
|
+
cbrs: "cbrs";
|
|
1640
|
+
}>;
|
|
1641
|
+
city: z.ZodOptional<z.ZodString>;
|
|
1642
|
+
state: z.ZodOptional<z.ZodString>;
|
|
1643
|
+
country: z.ZodOptional<z.ZodString>;
|
|
1644
|
+
asset: z.ZodString;
|
|
1645
|
+
isOnline: z.ZodOptional<z.ZodBoolean>;
|
|
1646
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
1647
|
+
shares: z.ZodOptional<z.ZodObject<{
|
|
1648
|
+
fixed: z.ZodOptional<z.ZodString>;
|
|
1649
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
1650
|
+
}, z.core.$strip>>;
|
|
1651
|
+
ownershipType: z.ZodString;
|
|
1652
|
+
}, z.core.$strip>>;
|
|
1653
|
+
total: z.ZodNumber;
|
|
1654
|
+
page: z.ZodNumber;
|
|
1655
|
+
totalPages: z.ZodNumber;
|
|
1656
|
+
}, z.core.$strip>;
|
|
1657
|
+
declare const ClaimRewardsOutputSchema: z.ZodObject<{
|
|
1658
|
+
transactionData: z.ZodObject<{
|
|
1659
|
+
transactions: z.ZodArray<z.ZodObject<{
|
|
1660
|
+
serializedTransaction: z.ZodString;
|
|
1661
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
1662
|
+
type: z.ZodString;
|
|
1663
|
+
description: z.ZodString;
|
|
1664
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
1665
|
+
}, z.core.$strip>>;
|
|
1666
|
+
parallel: z.ZodBoolean;
|
|
1667
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
1668
|
+
}, z.core.$strip>;
|
|
1669
|
+
}, z.core.$strip>;
|
|
1670
|
+
declare const TransferHotspotOutputSchema: z.ZodObject<{
|
|
1671
|
+
transactionData: z.ZodObject<{
|
|
1672
|
+
transactions: z.ZodArray<z.ZodObject<{
|
|
1673
|
+
serializedTransaction: z.ZodString;
|
|
1674
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
1675
|
+
type: z.ZodString;
|
|
1676
|
+
description: z.ZodString;
|
|
1677
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
1678
|
+
}, z.core.$strip>>;
|
|
1679
|
+
parallel: z.ZodBoolean;
|
|
1680
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
1681
|
+
}, z.core.$strip>;
|
|
1682
|
+
}, z.core.$strip>;
|
|
1683
|
+
declare const UpdateRewardsDestinationOutputSchema: z.ZodObject<{
|
|
1684
|
+
transactionData: z.ZodObject<{
|
|
1685
|
+
transactions: z.ZodArray<z.ZodObject<{
|
|
1686
|
+
serializedTransaction: z.ZodString;
|
|
1687
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
1688
|
+
type: z.ZodString;
|
|
1689
|
+
description: z.ZodString;
|
|
1690
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
1691
|
+
}, z.core.$strip>>;
|
|
1692
|
+
parallel: z.ZodBoolean;
|
|
1693
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
1694
|
+
}, z.core.$strip>;
|
|
1695
|
+
}, z.core.$strip>;
|
|
1696
|
+
declare const SplitShareSchema: z.ZodObject<{
|
|
1697
|
+
wallet: z.ZodString;
|
|
1698
|
+
delegate: z.ZodString;
|
|
1699
|
+
fixed: z.ZodNumber;
|
|
1700
|
+
shares: z.ZodNumber;
|
|
1701
|
+
}, z.core.$strip>;
|
|
1702
|
+
declare const SplitResponseSchema: z.ZodObject<{
|
|
1703
|
+
walletAddress: z.ZodString;
|
|
1704
|
+
hotspotPubkey: z.ZodString;
|
|
1705
|
+
splitAddress: z.ZodString;
|
|
1706
|
+
shares: z.ZodArray<z.ZodObject<{
|
|
1707
|
+
wallet: z.ZodString;
|
|
1708
|
+
delegate: z.ZodString;
|
|
1709
|
+
fixed: z.ZodNumber;
|
|
1710
|
+
shares: z.ZodNumber;
|
|
1711
|
+
}, z.core.$strip>>;
|
|
1712
|
+
}, z.core.$strip>;
|
|
1713
|
+
declare const CreateSplitOutputSchema: z.ZodObject<{
|
|
1714
|
+
transactionData: z.ZodObject<{
|
|
1715
|
+
transactions: z.ZodArray<z.ZodObject<{
|
|
1716
|
+
serializedTransaction: z.ZodString;
|
|
1717
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
1718
|
+
type: z.ZodString;
|
|
1719
|
+
description: z.ZodString;
|
|
1720
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
1721
|
+
}, z.core.$strip>>;
|
|
1722
|
+
parallel: z.ZodBoolean;
|
|
1723
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
1724
|
+
}, z.core.$strip>;
|
|
1725
|
+
}, z.core.$strip>;
|
|
1726
|
+
declare const DeleteSplitOutputSchema: z.ZodObject<{
|
|
1727
|
+
transactionData: z.ZodObject<{
|
|
1728
|
+
transactions: z.ZodArray<z.ZodObject<{
|
|
1729
|
+
serializedTransaction: z.ZodString;
|
|
1730
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
1731
|
+
type: z.ZodString;
|
|
1732
|
+
description: z.ZodString;
|
|
1733
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
1734
|
+
}, z.core.$strip>>;
|
|
1735
|
+
parallel: z.ZodBoolean;
|
|
1736
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
1737
|
+
}, z.core.$strip>;
|
|
1738
|
+
}, z.core.$strip>;
|
|
1739
|
+
declare const PendingRewardsOutputSchema: z.ZodObject<{
|
|
1740
|
+
pending: z.ZodString;
|
|
1741
|
+
}, z.core.$strip>;
|
|
1742
|
+
type HotspotType = z.infer<typeof HotspotTypeSchema>;
|
|
1743
|
+
type DeviceType = z.infer<typeof DeviceTypeSchema>;
|
|
1744
|
+
type OwnershipType = z.infer<typeof OwnershipTypeSchema>;
|
|
1745
|
+
type Hotspot = z.infer<typeof HotspotSchema>;
|
|
1746
|
+
type HotspotsData = z.infer<typeof HotspotsDataSchema>;
|
|
1747
|
+
type GetHotspotsInput = z.infer<typeof GetHotspotsInputSchema>;
|
|
1748
|
+
type ClaimRewardsInput = z.infer<typeof ClaimRewardsInputSchema>;
|
|
1749
|
+
type GetPendingRewardsInput = z.infer<typeof GetPendingRewardsInputSchema>;
|
|
1750
|
+
type TransferHotspotInput = z.infer<typeof TransferHotspotInputSchema>;
|
|
1751
|
+
type UpdateRewardsDestinationInput = z.infer<typeof UpdateRewardsDestinationInputSchema>;
|
|
1752
|
+
type GetSplitInput = z.infer<typeof GetSplitInputSchema>;
|
|
1753
|
+
type CreateSplitInput = z.infer<typeof CreateSplitInputSchema>;
|
|
1754
|
+
type DeleteSplitInput = z.infer<typeof DeleteSplitInputSchema>;
|
|
1755
|
+
type RewardSplitInput = z.infer<typeof RewardSplitInputSchema>;
|
|
1756
|
+
type ScheduleInput = z.infer<typeof ScheduleInputSchema>;
|
|
1757
|
+
type SplitShare = z.infer<typeof SplitShareSchema>;
|
|
1758
|
+
type SplitResponse = z.infer<typeof SplitResponseSchema>;
|
|
1759
|
+
type PendingRewardsOutput = z.infer<typeof PendingRewardsOutputSchema>;
|
|
1760
|
+
|
|
1761
|
+
declare const GetTokensInputSchema: z.ZodObject<{
|
|
1762
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1763
|
+
}, z.core.$strip>;
|
|
1764
|
+
declare const GetQuoteInputSchema: z.ZodObject<{
|
|
1765
|
+
inputMint: z.ZodString;
|
|
1766
|
+
outputMint: z.ZodString;
|
|
1767
|
+
amount: z.ZodString;
|
|
1768
|
+
swapMode: z.ZodDefault<z.ZodEnum<{
|
|
1769
|
+
ExactIn: "ExactIn";
|
|
1770
|
+
ExactOut: "ExactOut";
|
|
1771
|
+
}>>;
|
|
1772
|
+
slippageBps: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1773
|
+
}, z.core.$strip>;
|
|
1774
|
+
declare const QuoteResponseSchema: z.ZodObject<{
|
|
1775
|
+
inputMint: z.ZodString;
|
|
1776
|
+
inAmount: z.ZodString;
|
|
1777
|
+
outputMint: z.ZodString;
|
|
1778
|
+
outAmount: z.ZodString;
|
|
1779
|
+
otherAmountThreshold: z.ZodString;
|
|
1780
|
+
swapMode: z.ZodString;
|
|
1781
|
+
slippageBps: z.ZodNumber;
|
|
1782
|
+
platformFee: z.ZodOptional<z.ZodUnknown>;
|
|
1783
|
+
priceImpactPct: z.ZodString;
|
|
1784
|
+
routePlan: z.ZodArray<z.ZodUnknown>;
|
|
1785
|
+
contextSlot: z.ZodOptional<z.ZodNumber>;
|
|
1786
|
+
timeTaken: z.ZodOptional<z.ZodNumber>;
|
|
1787
|
+
}, z.core.$loose>;
|
|
1788
|
+
declare const GetInstructionsInputSchema: z.ZodObject<{
|
|
1789
|
+
quoteResponse: z.ZodObject<{
|
|
1790
|
+
inputMint: z.ZodString;
|
|
1791
|
+
inAmount: z.ZodString;
|
|
1792
|
+
outputMint: z.ZodString;
|
|
1793
|
+
outAmount: z.ZodString;
|
|
1794
|
+
otherAmountThreshold: z.ZodString;
|
|
1795
|
+
swapMode: z.ZodString;
|
|
1796
|
+
slippageBps: z.ZodNumber;
|
|
1797
|
+
platformFee: z.ZodOptional<z.ZodUnknown>;
|
|
1798
|
+
priceImpactPct: z.ZodString;
|
|
1799
|
+
routePlan: z.ZodArray<z.ZodUnknown>;
|
|
1800
|
+
contextSlot: z.ZodOptional<z.ZodNumber>;
|
|
1801
|
+
timeTaken: z.ZodOptional<z.ZodNumber>;
|
|
1802
|
+
}, z.core.$loose>;
|
|
1803
|
+
userPublicKey: z.ZodString;
|
|
1804
|
+
destinationTokenAccount: z.ZodOptional<z.ZodString>;
|
|
1805
|
+
dynamicComputeUnitLimit: z.ZodDefault<z.ZodBoolean>;
|
|
1806
|
+
prioritizationFeeLamports: z.ZodOptional<z.ZodObject<{
|
|
1807
|
+
priorityLevelWithMaxLamports: z.ZodObject<{
|
|
1808
|
+
maxLamports: z.ZodDefault<z.ZodNumber>;
|
|
1809
|
+
priorityLevel: z.ZodDefault<z.ZodEnum<{
|
|
1810
|
+
low: "low";
|
|
1811
|
+
medium: "medium";
|
|
1812
|
+
high: "high";
|
|
1813
|
+
}>>;
|
|
1814
|
+
}, z.core.$strip>;
|
|
1815
|
+
}, z.core.$strip>>;
|
|
1816
|
+
}, z.core.$strip>;
|
|
1817
|
+
declare const TokenSchema: z.ZodObject<{
|
|
1818
|
+
address: z.ZodString;
|
|
1819
|
+
symbol: z.ZodString;
|
|
1820
|
+
name: z.ZodString;
|
|
1821
|
+
decimals: z.ZodNumber;
|
|
1822
|
+
logoURI: z.ZodOptional<z.ZodString>;
|
|
1823
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1824
|
+
}, z.core.$strip>;
|
|
1825
|
+
declare const TokenListOutputSchema: z.ZodObject<{
|
|
1826
|
+
tokens: z.ZodArray<z.ZodObject<{
|
|
1827
|
+
address: z.ZodString;
|
|
1828
|
+
symbol: z.ZodString;
|
|
1829
|
+
name: z.ZodString;
|
|
1830
|
+
decimals: z.ZodNumber;
|
|
1831
|
+
logoURI: z.ZodOptional<z.ZodString>;
|
|
1832
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1833
|
+
}, z.core.$strip>>;
|
|
1834
|
+
}, z.core.$strip>;
|
|
1835
|
+
declare const SwapTransactionDataSchema: z.ZodObject<{
|
|
1836
|
+
transactions: z.ZodArray<z.ZodObject<{
|
|
1837
|
+
serializedTransaction: z.ZodString;
|
|
1838
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
1839
|
+
type: z.ZodString;
|
|
1840
|
+
description: z.ZodString;
|
|
1841
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
1842
|
+
}, z.core.$strip>>;
|
|
1843
|
+
parallel: z.ZodBoolean;
|
|
1844
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
1845
|
+
}, z.core.$strip>;
|
|
1846
|
+
type GetTokensInput = z.infer<typeof GetTokensInputSchema>;
|
|
1847
|
+
type GetQuoteInput = z.infer<typeof GetQuoteInputSchema>;
|
|
1848
|
+
type GetInstructionsInput = z.infer<typeof GetInstructionsInputSchema>;
|
|
1849
|
+
type QuoteResponse = z.infer<typeof QuoteResponseSchema>;
|
|
1850
|
+
type Token = z.infer<typeof TokenSchema>;
|
|
1851
|
+
type TokenListOutput = z.infer<typeof TokenListOutputSchema>;
|
|
1852
|
+
|
|
1853
|
+
declare const SubmitInputSchema: z.ZodObject<{
|
|
1854
|
+
transactions: z.ZodArray<z.ZodObject<{
|
|
1855
|
+
serializedTransaction: z.ZodString;
|
|
1856
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
1857
|
+
type: z.ZodString;
|
|
1858
|
+
description: z.ZodString;
|
|
1859
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
1860
|
+
}, z.core.$strip>>;
|
|
1861
|
+
parallel: z.ZodBoolean;
|
|
1862
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
1863
|
+
}, z.core.$strip>;
|
|
1864
|
+
declare const GetInputSchema: z.ZodObject<{
|
|
1865
|
+
id: z.ZodString;
|
|
1866
|
+
commitment: z.ZodEnum<{
|
|
1867
|
+
confirmed: "confirmed";
|
|
1868
|
+
finalized: "finalized";
|
|
1869
|
+
}>;
|
|
1870
|
+
}, z.core.$strip>;
|
|
1871
|
+
declare const ResubmitInputSchema: z.ZodObject<{
|
|
1872
|
+
id: z.ZodString;
|
|
1873
|
+
}, z.core.$strip>;
|
|
1874
|
+
declare const GetByPayerInputSchema: z.ZodObject<{
|
|
1875
|
+
payer: z.ZodString;
|
|
1876
|
+
page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1877
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1878
|
+
status: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
1879
|
+
}, z.core.$strip>;
|
|
1880
|
+
declare const GetByPayerAndTagInputSchema: z.ZodObject<{
|
|
1881
|
+
payer: z.ZodString;
|
|
1882
|
+
tag: z.ZodString;
|
|
1883
|
+
page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1884
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1885
|
+
status: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
1886
|
+
}, z.core.$strip>;
|
|
1887
|
+
declare const SubmitOutputSchema: z.ZodObject<{
|
|
1888
|
+
batchId: z.ZodString;
|
|
1889
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1890
|
+
}, z.core.$strip>;
|
|
1891
|
+
declare const TransactionStatusSchema: z.ZodObject<{
|
|
1892
|
+
signature: z.ZodString;
|
|
1893
|
+
status: z.ZodString;
|
|
1894
|
+
transaction: z.ZodOptional<z.ZodUnknown>;
|
|
1895
|
+
}, z.core.$strip>;
|
|
1896
|
+
declare const BatchStatusOutputSchema: z.ZodObject<{
|
|
1897
|
+
batchId: z.ZodString;
|
|
1898
|
+
status: z.ZodString;
|
|
1899
|
+
submissionType: z.ZodString;
|
|
1900
|
+
parallel: z.ZodBoolean;
|
|
1901
|
+
transactions: z.ZodArray<z.ZodObject<{
|
|
1902
|
+
signature: z.ZodString;
|
|
1903
|
+
status: z.ZodString;
|
|
1904
|
+
transaction: z.ZodOptional<z.ZodUnknown>;
|
|
1905
|
+
}, z.core.$strip>>;
|
|
1906
|
+
jitoBundleId: z.ZodOptional<z.ZodString>;
|
|
1907
|
+
jitoBundleStatus: z.ZodOptional<z.ZodUnknown>;
|
|
1908
|
+
}, z.core.$strip>;
|
|
1909
|
+
declare const ResubmitOutputSchema: z.ZodObject<{
|
|
1910
|
+
success: z.ZodBoolean;
|
|
1911
|
+
message: z.ZodString;
|
|
1912
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1913
|
+
newSignatures: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1914
|
+
}, z.core.$strip>;
|
|
1915
|
+
declare const PayerBatchSummarySchema: z.ZodObject<{
|
|
1916
|
+
batchId: z.ZodString;
|
|
1917
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
1918
|
+
status: z.ZodString;
|
|
1919
|
+
submissionType: z.ZodString;
|
|
1920
|
+
parallel: z.ZodBoolean;
|
|
1921
|
+
createdAt: z.ZodString;
|
|
1922
|
+
updatedAt: z.ZodString;
|
|
1923
|
+
transactions: z.ZodArray<z.ZodObject<{
|
|
1924
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
1925
|
+
type: z.ZodString;
|
|
1926
|
+
description: z.ZodString;
|
|
1927
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
1928
|
+
}, z.core.$strip>>;
|
|
1929
|
+
}, z.core.$strip>;
|
|
1930
|
+
declare const PayerBatchesOutputSchema: z.ZodObject<{
|
|
1931
|
+
payer: z.ZodString;
|
|
1932
|
+
batches: z.ZodArray<z.ZodObject<{
|
|
1933
|
+
batchId: z.ZodString;
|
|
1934
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
1935
|
+
status: z.ZodString;
|
|
1936
|
+
submissionType: z.ZodString;
|
|
1937
|
+
parallel: z.ZodBoolean;
|
|
1938
|
+
createdAt: z.ZodString;
|
|
1939
|
+
updatedAt: z.ZodString;
|
|
1940
|
+
transactions: z.ZodArray<z.ZodObject<{
|
|
1941
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
1942
|
+
type: z.ZodString;
|
|
1943
|
+
description: z.ZodString;
|
|
1944
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
1945
|
+
}, z.core.$strip>>;
|
|
1946
|
+
}, z.core.$strip>>;
|
|
1947
|
+
pagination: z.ZodObject<{
|
|
1948
|
+
page: z.ZodNumber;
|
|
1949
|
+
limit: z.ZodNumber;
|
|
1950
|
+
total: z.ZodNumber;
|
|
1951
|
+
totalPages: z.ZodNumber;
|
|
1952
|
+
}, z.core.$strip>;
|
|
1953
|
+
}, z.core.$strip>;
|
|
1954
|
+
type SubmitInput = z.infer<typeof SubmitInputSchema>;
|
|
1955
|
+
type GetInput = z.infer<typeof GetInputSchema>;
|
|
1956
|
+
type ResubmitInput = z.infer<typeof ResubmitInputSchema>;
|
|
1957
|
+
type GetByPayerInput = z.infer<typeof GetByPayerInputSchema>;
|
|
1958
|
+
type GetByPayerAndTagInput = z.infer<typeof GetByPayerAndTagInputSchema>;
|
|
1959
|
+
type SubmitOutput = z.infer<typeof SubmitOutputSchema>;
|
|
1960
|
+
type BatchStatusOutput = z.infer<typeof BatchStatusOutputSchema>;
|
|
1961
|
+
type ResubmitOutput = z.infer<typeof ResubmitOutputSchema>;
|
|
1962
|
+
type PayerBatchesOutput = z.infer<typeof PayerBatchesOutputSchema>;
|
|
1963
|
+
type TransactionStatus = z.infer<typeof TransactionStatusSchema>;
|
|
1964
|
+
type PayerBatchSummary = z.infer<typeof PayerBatchSummarySchema>;
|
|
1965
|
+
|
|
1966
|
+
declare const WelcomePackListInputSchema: z.ZodObject<{
|
|
1967
|
+
walletAddress: z.ZodString;
|
|
1968
|
+
}, z.core.$strip>;
|
|
1969
|
+
declare const WelcomePackCreateInputSchema: z.ZodObject<{
|
|
1970
|
+
walletAddress: z.ZodString;
|
|
1971
|
+
assetId: z.ZodString;
|
|
1972
|
+
solAmount: z.ZodNumber;
|
|
1973
|
+
rentRefund: z.ZodString;
|
|
1974
|
+
assetReturnAddress: z.ZodString;
|
|
1975
|
+
rewardsSplit: z.ZodArray<z.ZodObject<{
|
|
1976
|
+
address: z.ZodString;
|
|
1977
|
+
type: z.ZodEnum<{
|
|
1978
|
+
fixed: "fixed";
|
|
1979
|
+
percentage: "percentage";
|
|
1980
|
+
}>;
|
|
1981
|
+
amount: z.ZodNumber;
|
|
1982
|
+
}, z.core.$strip>>;
|
|
1983
|
+
schedule: z.ZodObject<{
|
|
1984
|
+
frequency: z.ZodEnum<{
|
|
1985
|
+
daily: "daily";
|
|
1986
|
+
weekly: "weekly";
|
|
1987
|
+
monthly: "monthly";
|
|
1988
|
+
}>;
|
|
1989
|
+
time: z.ZodString;
|
|
1990
|
+
timezone: z.ZodString;
|
|
1991
|
+
dayOfWeek: z.ZodOptional<z.ZodString>;
|
|
1992
|
+
dayOfMonth: z.ZodOptional<z.ZodString>;
|
|
1993
|
+
}, z.core.$strip>;
|
|
1994
|
+
lazyDistributor: z.ZodString;
|
|
1995
|
+
}, z.core.$strip>;
|
|
1996
|
+
declare const WelcomePackGetInputSchema: z.ZodObject<{
|
|
1997
|
+
walletAddress: z.ZodString;
|
|
1998
|
+
packId: z.ZodNumber;
|
|
1999
|
+
}, z.core.$strip>;
|
|
2000
|
+
declare const WelcomePackDeleteInputSchema: z.ZodObject<{
|
|
2001
|
+
walletAddress: z.ZodString;
|
|
2002
|
+
packId: z.ZodNumber;
|
|
2003
|
+
}, z.core.$strip>;
|
|
2004
|
+
declare const WelcomePackGetByAddressInputSchema: z.ZodObject<{
|
|
2005
|
+
packAddress: z.ZodString;
|
|
2006
|
+
}, z.core.$strip>;
|
|
2007
|
+
declare const WelcomePackClaimInputSchema: z.ZodObject<{
|
|
2008
|
+
packAddress: z.ZodString;
|
|
2009
|
+
walletAddress: z.ZodString;
|
|
2010
|
+
signature: z.ZodString;
|
|
2011
|
+
expirationTs: z.ZodString;
|
|
2012
|
+
}, z.core.$strip>;
|
|
2013
|
+
declare const WelcomePackInviteInputSchema: z.ZodObject<{
|
|
2014
|
+
packAddress: z.ZodString;
|
|
2015
|
+
walletAddress: z.ZodString;
|
|
2016
|
+
expirationDays: z.ZodDefault<z.ZodNumber>;
|
|
2017
|
+
}, z.core.$strip>;
|
|
2018
|
+
declare const WelcomePackSchema: z.ZodObject<{
|
|
2019
|
+
address: z.ZodString;
|
|
2020
|
+
id: z.ZodNumber;
|
|
2021
|
+
owner: z.ZodString;
|
|
2022
|
+
asset: z.ZodString;
|
|
2023
|
+
lazyDistributor: z.ZodString;
|
|
2024
|
+
rewardsMint: z.ZodString;
|
|
2025
|
+
rentRefund: z.ZodString;
|
|
2026
|
+
solAmount: z.ZodString;
|
|
2027
|
+
rewardsSplit: z.ZodArray<z.ZodObject<{
|
|
2028
|
+
address: z.ZodString;
|
|
2029
|
+
type: z.ZodEnum<{
|
|
2030
|
+
fixed: "fixed";
|
|
2031
|
+
percentage: "percentage";
|
|
2032
|
+
}>;
|
|
2033
|
+
amount: z.ZodNumber;
|
|
2034
|
+
}, z.core.$strip>>;
|
|
2035
|
+
rewardsSchedule: z.ZodString;
|
|
2036
|
+
assetReturnAddress: z.ZodString;
|
|
2037
|
+
bumpSeed: z.ZodNumber;
|
|
2038
|
+
uniqueId: z.ZodString;
|
|
2039
|
+
loading: z.ZodOptional<z.ZodBoolean>;
|
|
2040
|
+
hotspot: z.ZodNullable<z.ZodObject<{
|
|
2041
|
+
address: z.ZodString;
|
|
2042
|
+
entityKey: z.ZodString;
|
|
2043
|
+
name: z.ZodString;
|
|
2044
|
+
type: z.ZodEnum<{
|
|
2045
|
+
iot: "iot";
|
|
2046
|
+
mobile: "mobile";
|
|
2047
|
+
all: "all";
|
|
2048
|
+
}>;
|
|
2049
|
+
deviceType: z.ZodEnum<{
|
|
2050
|
+
"iot-gateway": "iot-gateway";
|
|
2051
|
+
wifiIndoor: "wifiIndoor";
|
|
2052
|
+
wifiOutdoor: "wifiOutdoor";
|
|
2053
|
+
wifiDataOnly: "wifiDataOnly";
|
|
2054
|
+
cbrs: "cbrs";
|
|
2055
|
+
}>;
|
|
2056
|
+
city: z.ZodOptional<z.ZodString>;
|
|
2057
|
+
state: z.ZodOptional<z.ZodString>;
|
|
2058
|
+
country: z.ZodOptional<z.ZodString>;
|
|
2059
|
+
asset: z.ZodString;
|
|
2060
|
+
isOnline: z.ZodOptional<z.ZodBoolean>;
|
|
2061
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
2062
|
+
shares: z.ZodOptional<z.ZodObject<{
|
|
2063
|
+
fixed: z.ZodOptional<z.ZodString>;
|
|
2064
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
2065
|
+
}, z.core.$strip>>;
|
|
2066
|
+
ownershipType: z.ZodString;
|
|
2067
|
+
}, z.core.$strip>>;
|
|
2068
|
+
}, z.core.$strip>;
|
|
2069
|
+
declare const WelcomePackListOutputSchema: z.ZodArray<z.ZodObject<{
|
|
2070
|
+
address: z.ZodString;
|
|
2071
|
+
id: z.ZodNumber;
|
|
2072
|
+
owner: z.ZodString;
|
|
2073
|
+
asset: z.ZodString;
|
|
2074
|
+
lazyDistributor: z.ZodString;
|
|
2075
|
+
rewardsMint: z.ZodString;
|
|
2076
|
+
rentRefund: z.ZodString;
|
|
2077
|
+
solAmount: z.ZodString;
|
|
2078
|
+
rewardsSplit: z.ZodArray<z.ZodObject<{
|
|
2079
|
+
address: z.ZodString;
|
|
2080
|
+
type: z.ZodEnum<{
|
|
2081
|
+
fixed: "fixed";
|
|
2082
|
+
percentage: "percentage";
|
|
2083
|
+
}>;
|
|
2084
|
+
amount: z.ZodNumber;
|
|
2085
|
+
}, z.core.$strip>>;
|
|
2086
|
+
rewardsSchedule: z.ZodString;
|
|
2087
|
+
assetReturnAddress: z.ZodString;
|
|
2088
|
+
bumpSeed: z.ZodNumber;
|
|
2089
|
+
uniqueId: z.ZodString;
|
|
2090
|
+
loading: z.ZodOptional<z.ZodBoolean>;
|
|
2091
|
+
hotspot: z.ZodNullable<z.ZodObject<{
|
|
2092
|
+
address: z.ZodString;
|
|
2093
|
+
entityKey: z.ZodString;
|
|
2094
|
+
name: z.ZodString;
|
|
2095
|
+
type: z.ZodEnum<{
|
|
2096
|
+
iot: "iot";
|
|
2097
|
+
mobile: "mobile";
|
|
2098
|
+
all: "all";
|
|
2099
|
+
}>;
|
|
2100
|
+
deviceType: z.ZodEnum<{
|
|
2101
|
+
"iot-gateway": "iot-gateway";
|
|
2102
|
+
wifiIndoor: "wifiIndoor";
|
|
2103
|
+
wifiOutdoor: "wifiOutdoor";
|
|
2104
|
+
wifiDataOnly: "wifiDataOnly";
|
|
2105
|
+
cbrs: "cbrs";
|
|
2106
|
+
}>;
|
|
2107
|
+
city: z.ZodOptional<z.ZodString>;
|
|
2108
|
+
state: z.ZodOptional<z.ZodString>;
|
|
2109
|
+
country: z.ZodOptional<z.ZodString>;
|
|
2110
|
+
asset: z.ZodString;
|
|
2111
|
+
isOnline: z.ZodOptional<z.ZodBoolean>;
|
|
2112
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
2113
|
+
shares: z.ZodOptional<z.ZodObject<{
|
|
2114
|
+
fixed: z.ZodOptional<z.ZodString>;
|
|
2115
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
2116
|
+
}, z.core.$strip>>;
|
|
2117
|
+
ownershipType: z.ZodString;
|
|
2118
|
+
}, z.core.$strip>>;
|
|
2119
|
+
}, z.core.$strip>>;
|
|
2120
|
+
declare const WelcomePackCreateOutputSchema: z.ZodObject<{
|
|
2121
|
+
welcomePack: z.ZodObject<{
|
|
2122
|
+
address: z.ZodString;
|
|
2123
|
+
id: z.ZodNumber;
|
|
2124
|
+
owner: z.ZodString;
|
|
2125
|
+
asset: z.ZodString;
|
|
2126
|
+
lazyDistributor: z.ZodString;
|
|
2127
|
+
rewardsMint: z.ZodString;
|
|
2128
|
+
rentRefund: z.ZodString;
|
|
2129
|
+
solAmount: z.ZodString;
|
|
2130
|
+
rewardsSplit: z.ZodArray<z.ZodObject<{
|
|
2131
|
+
address: z.ZodString;
|
|
2132
|
+
type: z.ZodEnum<{
|
|
2133
|
+
fixed: "fixed";
|
|
2134
|
+
percentage: "percentage";
|
|
2135
|
+
}>;
|
|
2136
|
+
amount: z.ZodNumber;
|
|
2137
|
+
}, z.core.$strip>>;
|
|
2138
|
+
rewardsSchedule: z.ZodString;
|
|
2139
|
+
assetReturnAddress: z.ZodString;
|
|
2140
|
+
bumpSeed: z.ZodNumber;
|
|
2141
|
+
uniqueId: z.ZodString;
|
|
2142
|
+
loading: z.ZodOptional<z.ZodBoolean>;
|
|
2143
|
+
hotspot: z.ZodNullable<z.ZodObject<{
|
|
2144
|
+
address: z.ZodString;
|
|
2145
|
+
entityKey: z.ZodString;
|
|
2146
|
+
name: z.ZodString;
|
|
2147
|
+
type: z.ZodEnum<{
|
|
2148
|
+
iot: "iot";
|
|
2149
|
+
mobile: "mobile";
|
|
2150
|
+
all: "all";
|
|
2151
|
+
}>;
|
|
2152
|
+
deviceType: z.ZodEnum<{
|
|
2153
|
+
"iot-gateway": "iot-gateway";
|
|
2154
|
+
wifiIndoor: "wifiIndoor";
|
|
2155
|
+
wifiOutdoor: "wifiOutdoor";
|
|
2156
|
+
wifiDataOnly: "wifiDataOnly";
|
|
2157
|
+
cbrs: "cbrs";
|
|
2158
|
+
}>;
|
|
2159
|
+
city: z.ZodOptional<z.ZodString>;
|
|
2160
|
+
state: z.ZodOptional<z.ZodString>;
|
|
2161
|
+
country: z.ZodOptional<z.ZodString>;
|
|
2162
|
+
asset: z.ZodString;
|
|
2163
|
+
isOnline: z.ZodOptional<z.ZodBoolean>;
|
|
2164
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
2165
|
+
shares: z.ZodOptional<z.ZodObject<{
|
|
2166
|
+
fixed: z.ZodOptional<z.ZodString>;
|
|
2167
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
2168
|
+
}, z.core.$strip>>;
|
|
2169
|
+
ownershipType: z.ZodString;
|
|
2170
|
+
}, z.core.$strip>>;
|
|
2171
|
+
}, z.core.$strip>;
|
|
2172
|
+
transactionData: z.ZodObject<{
|
|
2173
|
+
transactions: z.ZodArray<z.ZodObject<{
|
|
2174
|
+
serializedTransaction: z.ZodString;
|
|
2175
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
2176
|
+
type: z.ZodString;
|
|
2177
|
+
description: z.ZodString;
|
|
2178
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
2179
|
+
}, z.core.$strip>>;
|
|
2180
|
+
parallel: z.ZodBoolean;
|
|
2181
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
2182
|
+
}, z.core.$strip>;
|
|
2183
|
+
}, z.core.$strip>;
|
|
2184
|
+
declare const WelcomePackDeleteOutputSchema: z.ZodObject<{
|
|
2185
|
+
transactionData: z.ZodObject<{
|
|
2186
|
+
transactions: z.ZodArray<z.ZodObject<{
|
|
2187
|
+
serializedTransaction: z.ZodString;
|
|
2188
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
2189
|
+
type: z.ZodString;
|
|
2190
|
+
description: z.ZodString;
|
|
2191
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
2192
|
+
}, z.core.$strip>>;
|
|
2193
|
+
parallel: z.ZodBoolean;
|
|
2194
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
2195
|
+
}, z.core.$strip>;
|
|
2196
|
+
}, z.core.$strip>;
|
|
2197
|
+
declare const WelcomePackClaimOutputSchema: z.ZodObject<{
|
|
2198
|
+
transactionData: z.ZodObject<{
|
|
2199
|
+
transactions: z.ZodArray<z.ZodObject<{
|
|
2200
|
+
serializedTransaction: z.ZodString;
|
|
2201
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
2202
|
+
type: z.ZodString;
|
|
2203
|
+
description: z.ZodString;
|
|
2204
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
2205
|
+
}, z.core.$strip>>;
|
|
2206
|
+
parallel: z.ZodBoolean;
|
|
2207
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
2208
|
+
}, z.core.$strip>;
|
|
2209
|
+
}, z.core.$strip>;
|
|
2210
|
+
declare const WelcomePackInviteOutputSchema: z.ZodObject<{
|
|
2211
|
+
message: z.ZodString;
|
|
2212
|
+
expirationTs: z.ZodNumber;
|
|
2213
|
+
}, z.core.$strip>;
|
|
2214
|
+
type WelcomePackListInput = z.infer<typeof WelcomePackListInputSchema>;
|
|
2215
|
+
type WelcomePackCreateInput = z.infer<typeof WelcomePackCreateInputSchema>;
|
|
2216
|
+
type WelcomePackGetInput = z.infer<typeof WelcomePackGetInputSchema>;
|
|
2217
|
+
type WelcomePackDeleteInput = z.infer<typeof WelcomePackDeleteInputSchema>;
|
|
2218
|
+
type WelcomePackGetByAddressInput = z.infer<typeof WelcomePackGetByAddressInputSchema>;
|
|
2219
|
+
type WelcomePackClaimInput = z.infer<typeof WelcomePackClaimInputSchema>;
|
|
2220
|
+
type WelcomePackInviteInput = z.infer<typeof WelcomePackInviteInputSchema>;
|
|
2221
|
+
type WelcomePack = z.infer<typeof WelcomePackSchema>;
|
|
2222
|
+
type WelcomePackListOutput = z.infer<typeof WelcomePackListOutputSchema>;
|
|
2223
|
+
type WelcomePackCreateOutput = z.infer<typeof WelcomePackCreateOutputSchema>;
|
|
2224
|
+
type WelcomePackDeleteOutput = z.infer<typeof WelcomePackDeleteOutputSchema>;
|
|
2225
|
+
type WelcomePackClaimOutput = z.infer<typeof WelcomePackClaimOutputSchema>;
|
|
2226
|
+
type WelcomePackInviteOutput = z.infer<typeof WelcomePackInviteOutputSchema>;
|
|
2227
|
+
|
|
2228
|
+
/** Authentication required error */
|
|
2229
|
+
declare const UNAUTHORIZED: {
|
|
2230
|
+
readonly status: 401;
|
|
2231
|
+
readonly message: "Authentication required. Please sign in to continue.";
|
|
2232
|
+
};
|
|
2233
|
+
/** Insufficient permissions error */
|
|
2234
|
+
declare const FORBIDDEN: {
|
|
2235
|
+
readonly status: 403;
|
|
2236
|
+
readonly message: "You do not have permission to access this resource.";
|
|
2237
|
+
};
|
|
2238
|
+
/** Resource not found error */
|
|
2239
|
+
declare const NOT_FOUND: {
|
|
2240
|
+
readonly status: 404;
|
|
2241
|
+
readonly message: "The requested resource was not found.";
|
|
2242
|
+
};
|
|
2243
|
+
/** Input validation failed error */
|
|
2244
|
+
declare const VALIDATION_ERROR: {
|
|
2245
|
+
readonly status: 400;
|
|
2246
|
+
readonly message: "Invalid input data provided.";
|
|
2247
|
+
readonly data: z.ZodObject<{
|
|
2248
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2249
|
+
}, z.core.$strip>;
|
|
2250
|
+
};
|
|
2251
|
+
/** Rate limit exceeded error */
|
|
2252
|
+
declare const RATE_LIMITED: {
|
|
2253
|
+
readonly status: 429;
|
|
2254
|
+
readonly message: "Too many requests. Please try again later.";
|
|
2255
|
+
};
|
|
2256
|
+
/** Duplicate resource error */
|
|
2257
|
+
declare const CONFLICT: {
|
|
2258
|
+
readonly status: 409;
|
|
2259
|
+
readonly message: "A resource with this identifier already exists.";
|
|
2260
|
+
readonly data: z.ZodObject<{
|
|
2261
|
+
existingId: z.ZodOptional<z.ZodString>;
|
|
2262
|
+
}, z.core.$strip>;
|
|
2263
|
+
};
|
|
2264
|
+
/**
|
|
2265
|
+
* Common error definitions that can be spread into procedure error configs.
|
|
2266
|
+
*/
|
|
2267
|
+
declare const commonErrors: {
|
|
2268
|
+
readonly UNAUTHORIZED: {
|
|
2269
|
+
readonly status: 401;
|
|
2270
|
+
readonly message: "Authentication required. Please sign in to continue.";
|
|
2271
|
+
};
|
|
2272
|
+
readonly FORBIDDEN: {
|
|
2273
|
+
readonly status: 403;
|
|
2274
|
+
readonly message: "You do not have permission to access this resource.";
|
|
2275
|
+
};
|
|
2276
|
+
readonly NOT_FOUND: {
|
|
2277
|
+
readonly status: 404;
|
|
2278
|
+
readonly message: "The requested resource was not found.";
|
|
2279
|
+
};
|
|
2280
|
+
readonly VALIDATION_ERROR: {
|
|
2281
|
+
readonly status: 400;
|
|
2282
|
+
readonly message: "Invalid input data provided.";
|
|
2283
|
+
readonly data: z.ZodObject<{
|
|
2284
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2285
|
+
}, z.core.$strip>;
|
|
2286
|
+
};
|
|
2287
|
+
};
|
|
2288
|
+
|
|
2289
|
+
/** Insufficient Solana balance error */
|
|
2290
|
+
declare const INSUFFICIENT_FUNDS: {
|
|
2291
|
+
readonly status: 400;
|
|
2292
|
+
readonly message: "Insufficient SOL balance to complete this transaction.";
|
|
2293
|
+
readonly data: z.ZodObject<{
|
|
2294
|
+
required: z.ZodNumber;
|
|
2295
|
+
available: z.ZodNumber;
|
|
2296
|
+
}, z.core.$strip>;
|
|
2297
|
+
};
|
|
2298
|
+
/** Solana transaction failed error */
|
|
2299
|
+
declare const TRANSACTION_FAILED: {
|
|
2300
|
+
readonly status: 500;
|
|
2301
|
+
readonly message: "Transaction failed to execute.";
|
|
2302
|
+
readonly data: z.ZodObject<{
|
|
2303
|
+
logs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2304
|
+
signature: z.ZodOptional<z.ZodString>;
|
|
2305
|
+
}, z.core.$strip>;
|
|
2306
|
+
};
|
|
2307
|
+
/** Transaction simulation failed error */
|
|
2308
|
+
declare const SIMULATION_FAILED: {
|
|
2309
|
+
readonly status: 400;
|
|
2310
|
+
readonly message: "Transaction simulation failed.";
|
|
2311
|
+
readonly data: z.ZodObject<{
|
|
2312
|
+
logs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2313
|
+
link: z.ZodOptional<z.ZodString>;
|
|
2314
|
+
}, z.core.$strip>;
|
|
2315
|
+
};
|
|
2316
|
+
/**
|
|
2317
|
+
* Solana-specific error definitions for transaction-related procedures.
|
|
2318
|
+
*/
|
|
2319
|
+
declare const solanaErrors: {
|
|
2320
|
+
readonly INSUFFICIENT_FUNDS: {
|
|
2321
|
+
readonly status: 400;
|
|
2322
|
+
readonly message: "Insufficient SOL balance to complete this transaction.";
|
|
2323
|
+
readonly data: z.ZodObject<{
|
|
2324
|
+
required: z.ZodNumber;
|
|
2325
|
+
available: z.ZodNumber;
|
|
2326
|
+
}, z.core.$strip>;
|
|
2327
|
+
};
|
|
2328
|
+
readonly TRANSACTION_FAILED: {
|
|
2329
|
+
readonly status: 500;
|
|
2330
|
+
readonly message: "Transaction failed to execute.";
|
|
2331
|
+
readonly data: z.ZodObject<{
|
|
2332
|
+
logs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2333
|
+
signature: z.ZodOptional<z.ZodString>;
|
|
2334
|
+
}, z.core.$strip>;
|
|
2335
|
+
};
|
|
2336
|
+
readonly SIMULATION_FAILED: {
|
|
2337
|
+
readonly status: 400;
|
|
2338
|
+
readonly message: "Transaction simulation failed.";
|
|
2339
|
+
readonly data: z.ZodObject<{
|
|
2340
|
+
logs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2341
|
+
link: z.ZodOptional<z.ZodString>;
|
|
2342
|
+
}, z.core.$strip>;
|
|
2343
|
+
};
|
|
2344
|
+
};
|
|
2345
|
+
|
|
2346
|
+
/** Asset not owned by wallet error */
|
|
2347
|
+
declare const NOT_OWNER: {
|
|
2348
|
+
readonly status: 403;
|
|
2349
|
+
readonly message: "You do not own this asset.";
|
|
2350
|
+
readonly data: z.ZodObject<{
|
|
2351
|
+
owner: z.ZodString;
|
|
2352
|
+
wallet: z.ZodString;
|
|
2353
|
+
}, z.core.$strip>;
|
|
2354
|
+
};
|
|
2355
|
+
/** Invalid Helium hotspot error */
|
|
2356
|
+
declare const INVALID_HOTSPOT: {
|
|
2357
|
+
readonly status: 400;
|
|
2358
|
+
readonly message: "The specified asset is not a valid Helium hotspot.";
|
|
2359
|
+
};
|
|
2360
|
+
/**
|
|
2361
|
+
* Hotspot-specific error definitions.
|
|
2362
|
+
*/
|
|
2363
|
+
declare const hotspotErrors: {
|
|
2364
|
+
readonly NOT_OWNER: {
|
|
2365
|
+
readonly status: 403;
|
|
2366
|
+
readonly message: "You do not own this asset.";
|
|
2367
|
+
readonly data: z.ZodObject<{
|
|
2368
|
+
owner: z.ZodString;
|
|
2369
|
+
wallet: z.ZodString;
|
|
2370
|
+
}, z.core.$strip>;
|
|
2371
|
+
};
|
|
2372
|
+
readonly INVALID_HOTSPOT: {
|
|
2373
|
+
readonly status: 400;
|
|
2374
|
+
readonly message: "The specified asset is not a valid Helium hotspot.";
|
|
2375
|
+
};
|
|
2376
|
+
readonly NOT_FOUND: {
|
|
2377
|
+
readonly status: 404;
|
|
2378
|
+
readonly message: "The requested resource was not found.";
|
|
2379
|
+
};
|
|
2380
|
+
};
|
|
2381
|
+
|
|
2382
|
+
export { type APIContract, type APIRouter, type BatchStatusOutput, BatchStatusOutputSchema, CONFLICT, type ClaimRewardsInput, ClaimRewardsInputSchema, ClaimRewardsOutputSchema, type ClientOptions, type CreateHntAccountInput, CreateHntAccountInputSchema, type CreateHntAccountOutput, CreateHntAccountOutputSchema, type CreateSplitInput, CreateSplitInputSchema, CreateSplitOutputSchema, type DeleteSplitInput, DeleteSplitInputSchema, DeleteSplitOutputSchema, type DeviceType, DeviceTypeSchema, type ErrorResponse, ErrorResponseSchema, FORBIDDEN, type GetBalancesInput, GetBalancesInputSchema, type GetByPayerAndTagInput, GetByPayerAndTagInputSchema, type GetByPayerInput, GetByPayerInputSchema, type GetHotspotsInput, GetHotspotsInputSchema, type GetInput, GetInputSchema, type GetInstructionsInput, GetInstructionsInputSchema, type GetPendingRewardsInput, GetPendingRewardsInputSchema, type GetQuoteInput, GetQuoteInputSchema, type GetSplitInput, GetSplitInputSchema, type GetTokensInput, GetTokensInputSchema, type HealthResponse, HealthResponseSchema, type Hotspot, HotspotSchema, HotspotSharesSchema, type HotspotType, HotspotTypeSchema, type HotspotsData, HotspotsDataSchema, INSUFFICIENT_FUNDS, INVALID_HOTSPOT, type MockImplementation, NOT_FOUND, NOT_OWNER, type OwnershipType, OwnershipTypeSchema, PaginationInputSchema, PaginationOutputSchema, type PayerBatchSummary, PayerBatchSummarySchema, type PayerBatchesOutput, PayerBatchesOutputSchema, type PendingRewardsOutput, PendingRewardsOutputSchema, PublicKeySchema, type QuoteResponse, QuoteResponseSchema, RATE_LIMITED, type ResubmitInput, ResubmitInputSchema, type ResubmitOutput, ResubmitOutputSchema, type RewardSplitInput, RewardSplitInputSchema, SIMULATION_FAILED, type ScheduleInput, ScheduleInputSchema, type SplitResponse, SplitResponseSchema, type SplitShare, SplitShareSchema, type SubmitInput, SubmitInputSchema, type SubmitOutput, SubmitOutputSchema, SwapTransactionDataSchema, TRANSACTION_FAILED, type Token, type TokenAccount, TokenAccountSchema, type TokenBalanceData, TokenBalanceDataSchema, type TokenListOutput, TokenListOutputSchema, TokenSchema, type TransactionBatchRequest, TransactionBatchRequestSchema, type TransactionBatchResponse, TransactionBatchResponseSchema, type TransactionData, TransactionDataSchema, type TransactionItem, TransactionItemSchema, type TransactionMetadata, TransactionMetadataSchema, type TransactionStatus, TransactionStatusSchema, type TransferHotspotInput, TransferHotspotInputSchema, TransferHotspotOutputSchema, type TransferInput, TransferInputSchema, type TransferOutput, TransferOutputSchema, UNAUTHORIZED, type UpdateRewardsDestinationInput, UpdateRewardsDestinationInputSchema, UpdateRewardsDestinationOutputSchema, VALIDATION_ERROR, WalletAddressSchema, type WelcomePack, type WelcomePackClaimInput, WelcomePackClaimInputSchema, type WelcomePackClaimOutput, WelcomePackClaimOutputSchema, type WelcomePackCreateInput, WelcomePackCreateInputSchema, type WelcomePackCreateOutput, WelcomePackCreateOutputSchema, type WelcomePackDeleteInput, WelcomePackDeleteInputSchema, type WelcomePackDeleteOutput, WelcomePackDeleteOutputSchema, type WelcomePackGetByAddressInput, WelcomePackGetByAddressInputSchema, type WelcomePackGetInput, WelcomePackGetInputSchema, type WelcomePackInviteInput, WelcomePackInviteInputSchema, type WelcomePackInviteOutput, WelcomePackInviteOutputSchema, type WelcomePackListInput, WelcomePackListInputSchema, type WelcomePackListOutput, WelcomePackListOutputSchema, WelcomePackSchema, apiContract, commonErrors, createClient, createMockClient, generateOpenAPISpec, getAPIContract, hotspotErrors, solanaErrors };
|