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