@vayolabs/core-sdk 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,456 @@
1
+ import { G as GetV1DashboardPartnerFeesPayoutsQueryParams, a as GetV1DashboardTransactionsQueryParams, b as GetV1DashboardUsersQueryParams, P as PostV1LendingOperationsRedeemAllocatedBuildMutationRequest, c as PostV1LendingOperationsRedeemAllocatedBuildQueryParams, d as PostV1LendingOperationsRedeemAllocatedSubmitMutationRequest } from '../PostV1LendingOperationsRedeemAllocatedSubmit-znL3KL6k.cjs';
2
+ export { e as GetV1DashboardPartnerFeesPayouts200, f as GetV1DashboardPartnerFeesPayoutsQuery, g as GetV1DashboardPartnerFeesPayoutsQueryResponse, h as GetV1DashboardTransactions200, i as GetV1DashboardTransactionsQuery, j as GetV1DashboardTransactionsQueryResponse, k as GetV1DashboardUsers200, l as GetV1DashboardUsersQuery, m as GetV1DashboardUsersQueryResponse, n as PostV1LendingOperationsRedeemAllocatedBuild200, o as PostV1LendingOperationsRedeemAllocatedBuildMutation, p as PostV1LendingOperationsRedeemAllocatedBuildMutationResponse, q as PostV1LendingOperationsRedeemAllocatedSubmit200, r as PostV1LendingOperationsRedeemAllocatedSubmitMutation, s as PostV1LendingOperationsRedeemAllocatedSubmitMutationResponse } from '../PostV1LendingOperationsRedeemAllocatedSubmit-znL3KL6k.cjs';
3
+ import { G as GetV1LendingReservesQueryParams } from '../GetV1LendingReserves-CzfPNOVx.cjs';
4
+ export { a as GetV1LendingReserves200, b as GetV1LendingReservesQuery, c as GetV1LendingReservesQueryResponse } from '../GetV1LendingReserves-CzfPNOVx.cjs';
5
+
6
+ /**
7
+ * Generated by Kubb (https://kubb.dev/).
8
+ * Do not edit manually.
9
+ */
10
+ type GetHealthModeS200 = any;
11
+ type GetHealthModeSQueryResponse = GetHealthModeS200;
12
+ type GetHealthModeSQuery = {
13
+ Response: GetHealthModeS200;
14
+ Errors: any;
15
+ };
16
+
17
+ /**
18
+ * Generated by Kubb (https://kubb.dev/).
19
+ * Do not edit manually.
20
+ */
21
+ type GetV1DashboardAllowlist200 = any;
22
+ type GetV1DashboardAllowlistQueryResponse = GetV1DashboardAllowlist200;
23
+ type GetV1DashboardAllowlistQuery = {
24
+ Response: GetV1DashboardAllowlist200;
25
+ Errors: any;
26
+ };
27
+
28
+ /**
29
+ * Generated by Kubb (https://kubb.dev/).
30
+ * Do not edit manually.
31
+ */
32
+ type GetV1DashboardApiKeys200 = any;
33
+ type GetV1DashboardApiKeysQueryResponse = GetV1DashboardApiKeys200;
34
+ type GetV1DashboardApiKeysQuery = {
35
+ Response: GetV1DashboardApiKeys200;
36
+ Errors: any;
37
+ };
38
+
39
+ /**
40
+ * Generated by Kubb (https://kubb.dev/).
41
+ * Do not edit manually.
42
+ */
43
+ type GetV1DashboardConsumption200 = any;
44
+ type GetV1DashboardConsumptionQueryResponse = GetV1DashboardConsumption200;
45
+ type GetV1DashboardConsumptionQuery = {
46
+ Response: GetV1DashboardConsumption200;
47
+ Errors: any;
48
+ };
49
+
50
+ /**
51
+ * Generated by Kubb (https://kubb.dev/).
52
+ * Do not edit manually.
53
+ */
54
+ type GetV1DashboardInvestmentPerformance200 = any;
55
+ type GetV1DashboardInvestmentPerformanceQueryResponse = GetV1DashboardInvestmentPerformance200;
56
+ type GetV1DashboardInvestmentPerformanceQuery = {
57
+ Response: GetV1DashboardInvestmentPerformance200;
58
+ Errors: any;
59
+ };
60
+
61
+ /**
62
+ * Generated by Kubb (https://kubb.dev/).
63
+ * Do not edit manually.
64
+ */
65
+ type GetV1DashboardOverview200 = any;
66
+ type GetV1DashboardOverviewQueryResponse = GetV1DashboardOverview200;
67
+ type GetV1DashboardOverviewQuery = {
68
+ Response: GetV1DashboardOverview200;
69
+ Errors: any;
70
+ };
71
+
72
+ /**
73
+ * Generated by Kubb (https://kubb.dev/).
74
+ * Do not edit manually.
75
+ */
76
+ type GetV1DashboardPartnerFees200 = any;
77
+ type GetV1DashboardPartnerFeesQueryResponse = GetV1DashboardPartnerFees200;
78
+ type GetV1DashboardPartnerFeesQuery = {
79
+ Response: GetV1DashboardPartnerFees200;
80
+ Errors: any;
81
+ };
82
+
83
+ /**
84
+ * Generated by Kubb (https://kubb.dev/).
85
+ * Do not edit manually.
86
+ */
87
+ type GetV1DashboardPerformanceFees200 = any;
88
+ type GetV1DashboardPerformanceFeesQueryResponse = GetV1DashboardPerformanceFees200;
89
+ type GetV1DashboardPerformanceFeesQuery = {
90
+ Response: GetV1DashboardPerformanceFees200;
91
+ Errors: any;
92
+ };
93
+
94
+ /**
95
+ * Generated by Kubb (https://kubb.dev/).
96
+ * Do not edit manually.
97
+ */
98
+ type GetV1LendingMarkets200 = any;
99
+ type GetV1LendingMarketsQueryResponse = GetV1LendingMarkets200;
100
+ type GetV1LendingMarketsQuery = {
101
+ Response: GetV1LendingMarkets200;
102
+ Errors: any;
103
+ };
104
+
105
+ /**
106
+ * Generated by Kubb (https://kubb.dev/).
107
+ * Do not edit manually.
108
+ */
109
+ type GetV1LendingMarketsAvailable200 = any;
110
+ type GetV1LendingMarketsAvailableQueryResponse = GetV1LendingMarketsAvailable200;
111
+ type GetV1LendingMarketsAvailableQuery = {
112
+ Response: GetV1LendingMarketsAvailable200;
113
+ Errors: any;
114
+ };
115
+
116
+ /**
117
+ * Generated by Kubb (https://kubb.dev/).
118
+ * Do not edit manually.
119
+ */
120
+ type PostV1RebalanceOperationsByPendingOperationIdConfirmPathParams = {
121
+ /**
122
+ * @type string, uuid
123
+ */
124
+ pendingOperationId: string;
125
+ };
126
+ /**
127
+ * @description Confirmation accepted
128
+ */
129
+ type PostV1RebalanceOperationsByPendingOperationIdConfirm200 = any;
130
+ /**
131
+ * @description Invalid or missing API key
132
+ */
133
+ type PostV1RebalanceOperationsByPendingOperationIdConfirm401 = any;
134
+ /**
135
+ * @description API key missing required scope, or pending operation belongs to a different partner
136
+ */
137
+ type PostV1RebalanceOperationsByPendingOperationIdConfirm403 = any;
138
+ /**
139
+ * @description Signature not yet visible on-chain — partner should retry later
140
+ */
141
+ type PostV1RebalanceOperationsByPendingOperationIdConfirm422 = any;
142
+ type PostV1RebalanceOperationsByPendingOperationIdConfirmMutationRequest = {
143
+ /**
144
+ * @minLength 1
145
+ * @maxLength 128
146
+ * @type string
147
+ */
148
+ signature: string;
149
+ status: (string | string | string);
150
+ /**
151
+ * @type string | undefined
152
+ */
153
+ errorMessage?: string;
154
+ };
155
+ type PostV1RebalanceOperationsByPendingOperationIdConfirmMutationResponse = PostV1RebalanceOperationsByPendingOperationIdConfirm200;
156
+ type PostV1RebalanceOperationsByPendingOperationIdConfirmMutation = {
157
+ Response: PostV1RebalanceOperationsByPendingOperationIdConfirm200;
158
+ Request: PostV1RebalanceOperationsByPendingOperationIdConfirmMutationRequest;
159
+ PathParams: PostV1RebalanceOperationsByPendingOperationIdConfirmPathParams;
160
+ Errors: PostV1RebalanceOperationsByPendingOperationIdConfirm401 | PostV1RebalanceOperationsByPendingOperationIdConfirm403 | PostV1RebalanceOperationsByPendingOperationIdConfirm422;
161
+ };
162
+
163
+ /**
164
+ * Generated by Kubb (https://kubb.dev/).
165
+ * Do not edit manually.
166
+ */
167
+ type PutV1DashboardAllowlist200 = any;
168
+ type PutV1DashboardAllowlistMutationRequest = {
169
+ allowedMarketAddresses?: (string[] | null);
170
+ allowedReserveAddresses?: (string[] | null);
171
+ };
172
+ type PutV1DashboardAllowlistMutationResponse = PutV1DashboardAllowlist200;
173
+ type PutV1DashboardAllowlistMutation = {
174
+ Response: PutV1DashboardAllowlist200;
175
+ Request: PutV1DashboardAllowlistMutationRequest;
176
+ Errors: any;
177
+ };
178
+
179
+ /**
180
+ * Per-request context injected by `createVayoPartnerClient()` into every
181
+ * generated client call via `RequestConfig.context`. Holds connection
182
+ * details, auth, and fetch overrides.
183
+ */
184
+ interface ClientContext {
185
+ baseUrl: string;
186
+ apiKey: string;
187
+ /** Per-call idempotency key. Auto-generated for mutating routes if absent. */
188
+ idempotencyKey?: string;
189
+ /** Custom fetch (e.g. for Node 18-, edge runtimes, instrumentation). */
190
+ fetch?: typeof fetch;
191
+ /** Override the default UUID v4 generator (useful for deterministic tests). */
192
+ generateIdempotencyKey?: () => string;
193
+ }
194
+ type RequestConfig<TData = unknown> = {
195
+ baseURL?: string;
196
+ url?: string;
197
+ method?: "GET" | "PUT" | "PATCH" | "POST" | "DELETE" | "OPTIONS" | "HEAD";
198
+ params?: unknown;
199
+ data?: TData | FormData;
200
+ responseType?: "arraybuffer" | "blob" | "document" | "json" | "text" | "stream";
201
+ signal?: AbortSignal;
202
+ headers?: [string, string][] | Record<string, string>;
203
+ credentials?: RequestCredentials;
204
+ /**
205
+ * Per-call SDK context. Injected by `createVayoPartnerClient()` — not part
206
+ * of the kubb-generated function signatures, partners never set this
207
+ * directly.
208
+ */
209
+ context?: ClientContext;
210
+ };
211
+ type ResponseConfig<TData = unknown> = {
212
+ data: TData;
213
+ status: number;
214
+ statusText: string;
215
+ headers: Headers;
216
+ };
217
+ declare function client<TResponseData, _TError = unknown, TRequestData = unknown>(config: RequestConfig<TRequestData>): Promise<ResponseConfig<TResponseData>>;
218
+ type Client = typeof client;
219
+
220
+ /**
221
+ * Generated by Kubb (https://kubb.dev/).
222
+ * Do not edit manually.
223
+ */
224
+
225
+ /**
226
+ * {@link /health/mode-s}
227
+ */
228
+ declare function getHealthModeS(config?: Partial<RequestConfig> & {
229
+ client?: Client;
230
+ }): Promise<any>;
231
+
232
+ /**
233
+ * Generated by Kubb (https://kubb.dev/).
234
+ * Do not edit manually.
235
+ */
236
+
237
+ /**
238
+ * @summary Read-only view of the partner's effective market/reserve allowlist
239
+ * {@link /v1/dashboard/allowlist}
240
+ */
241
+ declare function getV1DashboardAllowlist(config?: Partial<RequestConfig> & {
242
+ client?: Client;
243
+ }): Promise<any>;
244
+
245
+ /**
246
+ * Generated by Kubb (https://kubb.dev/).
247
+ * Do not edit manually.
248
+ */
249
+
250
+ /**
251
+ * @summary Partner's own API keys (prefix + metadata only, never plaintext)
252
+ * {@link /v1/dashboard/api-keys}
253
+ */
254
+ declare function getV1DashboardApiKeys(config?: Partial<RequestConfig> & {
255
+ client?: Client;
256
+ }): Promise<any>;
257
+
258
+ /**
259
+ * Generated by Kubb (https://kubb.dev/).
260
+ * Do not edit manually.
261
+ */
262
+
263
+ /**
264
+ * @summary API consumption metrics (requests 24h/7d/30d, rate limit config, recent logs)
265
+ * {@link /v1/dashboard/consumption}
266
+ */
267
+ declare function getV1DashboardConsumption(config?: Partial<RequestConfig> & {
268
+ client?: Client;
269
+ }): Promise<any>;
270
+
271
+ /**
272
+ * Generated by Kubb (https://kubb.dev/).
273
+ * Do not edit manually.
274
+ */
275
+
276
+ /**
277
+ * @summary Aggregated investment performance — total yield, volume, user count across windows (NOT performance fees)
278
+ * {@link /v1/dashboard/investment-performance}
279
+ */
280
+ declare function getV1DashboardInvestmentPerformance(config?: Partial<RequestConfig> & {
281
+ client?: Client;
282
+ }): Promise<any>;
283
+
284
+ /**
285
+ * Generated by Kubb (https://kubb.dev/).
286
+ * Do not edit manually.
287
+ */
288
+
289
+ /**
290
+ * @summary Partner dashboard home — users, volume, fees, consumption at a glance
291
+ * {@link /v1/dashboard/overview}
292
+ */
293
+ declare function getV1DashboardOverview(config?: Partial<RequestConfig> & {
294
+ client?: Client;
295
+ }): Promise<any>;
296
+
297
+ /**
298
+ * Generated by Kubb (https://kubb.dev/).
299
+ * Do not edit manually.
300
+ */
301
+
302
+ /**
303
+ * @summary Partner's earned fee share (NOT investment performance) — current model, bps, totals across windows
304
+ * {@link /v1/dashboard/partner-fees}
305
+ */
306
+ declare function getV1DashboardPartnerFees(config?: Partial<RequestConfig> & {
307
+ client?: Client;
308
+ }): Promise<any>;
309
+
310
+ /**
311
+ * Generated by Kubb (https://kubb.dev/).
312
+ * Do not edit manually.
313
+ */
314
+
315
+ /**
316
+ * @summary Paginated partner fee payout history (row-level detail)
317
+ * {@link /v1/dashboard/partner-fees/payouts}
318
+ */
319
+ declare function getV1DashboardPartnerFeesPayouts(params?: GetV1DashboardPartnerFeesPayoutsQueryParams, config?: Partial<RequestConfig> & {
320
+ client?: Client;
321
+ }): Promise<any>;
322
+
323
+ /**
324
+ * Generated by Kubb (https://kubb.dev/).
325
+ * Do not edit manually.
326
+ */
327
+
328
+ /**
329
+ * @summary Legacy alias of /partner-fees — performance fees collected from the partner's users
330
+ * {@link /v1/dashboard/performance-fees}
331
+ */
332
+ declare function getV1DashboardPerformanceFees(config?: Partial<RequestConfig> & {
333
+ client?: Client;
334
+ }): Promise<any>;
335
+
336
+ /**
337
+ * Generated by Kubb (https://kubb.dev/).
338
+ * Do not edit manually.
339
+ */
340
+
341
+ /**
342
+ * @summary Paginated transactions across the partner's user base (filter by type/status)
343
+ * {@link /v1/dashboard/transactions}
344
+ */
345
+ declare function getV1DashboardTransactions(params?: GetV1DashboardTransactionsQueryParams, config?: Partial<RequestConfig> & {
346
+ client?: Client;
347
+ }): Promise<any>;
348
+
349
+ /**
350
+ * Generated by Kubb (https://kubb.dev/).
351
+ * Do not edit manually.
352
+ */
353
+
354
+ /**
355
+ * @summary Paginated list of the partner's users
356
+ * {@link /v1/dashboard/users}
357
+ */
358
+ declare function getV1DashboardUsers(params?: GetV1DashboardUsersQueryParams, config?: Partial<RequestConfig> & {
359
+ client?: Client;
360
+ }): Promise<any>;
361
+
362
+ /**
363
+ * Generated by Kubb (https://kubb.dev/).
364
+ * Do not edit manually.
365
+ */
366
+
367
+ /**
368
+ * @summary List lending markets — filtered by the partner's allowlist (intersection with global)
369
+ * {@link /v1/lending/markets}
370
+ */
371
+ declare function getV1LendingMarkets(config?: Partial<RequestConfig> & {
372
+ client?: Client;
373
+ }): Promise<any>;
374
+
375
+ /**
376
+ * Generated by Kubb (https://kubb.dev/).
377
+ * Do not edit manually.
378
+ */
379
+
380
+ /**
381
+ * @summary List all Vayo-approved markets (global whitelist) — ignores the partner allowlist
382
+ * {@link /v1/lending/markets/available}
383
+ */
384
+ declare function getV1LendingMarketsAvailable(config?: Partial<RequestConfig> & {
385
+ client?: Client;
386
+ }): Promise<any>;
387
+
388
+ /**
389
+ * Generated by Kubb (https://kubb.dev/).
390
+ * Do not edit manually.
391
+ */
392
+
393
+ /**
394
+ * @summary Flat list of reserves across markets — filtered by partner allowlist
395
+ * {@link /v1/lending/reserves}
396
+ */
397
+ declare function getV1LendingReserves(params?: GetV1LendingReservesQueryParams, config?: Partial<RequestConfig> & {
398
+ client?: Client;
399
+ }): Promise<any>;
400
+
401
+ /**
402
+ * Generated by Kubb (https://kubb.dev/).
403
+ * Do not edit manually.
404
+ */
405
+
406
+ /**
407
+ * @description Builds a Kamino redeem transaction with the witness cosignature attached. The partner deserializes, adds the user wallet authority signature via their own Privy SDK, and submits via /submit (or directly to their own RPC).
408
+ * @summary Mode S — build a partially-signed redeem tx
409
+ * {@link /v1/lending-operations/redeem-allocated/build}
410
+ */
411
+ declare function postV1LendingOperationsRedeemAllocatedBuild(data: PostV1LendingOperationsRedeemAllocatedBuildMutationRequest, params?: PostV1LendingOperationsRedeemAllocatedBuildQueryParams, config?: Partial<RequestConfig<PostV1LendingOperationsRedeemAllocatedBuildMutationRequest>> & {
412
+ client?: Client;
413
+ }): Promise<any>;
414
+
415
+ /**
416
+ * Generated by Kubb (https://kubb.dev/).
417
+ * Do not edit manually.
418
+ */
419
+
420
+ /**
421
+ * @description Verifies the witness/Kora cosignatures are still intact (Defense 2b — message hash re-verification) and submits to RPC. Optional: partners may submit directly to their own RPC instead and skip this endpoint entirely. The cryptographic anti-bypass guarantee holds either way.
422
+ * @summary Mode S — submit a fully-signed redeem tx (optional)
423
+ * {@link /v1/lending-operations/redeem-allocated/submit}
424
+ */
425
+ declare function postV1LendingOperationsRedeemAllocatedSubmit(data: PostV1LendingOperationsRedeemAllocatedSubmitMutationRequest, config?: Partial<RequestConfig<PostV1LendingOperationsRedeemAllocatedSubmitMutationRequest>> & {
426
+ client?: Client;
427
+ }): Promise<any>;
428
+
429
+ /**
430
+ * Generated by Kubb (https://kubb.dev/).
431
+ * Do not edit manually.
432
+ */
433
+
434
+ /**
435
+ * @description Signing proxy reports the result of submitting the atomic rebalance tx. Authenticated with a scoped API key (scope: `rebalance:operation:confirm`) and requires an `Idempotency-Key` header. Vayo independently verifies the reported signature on-chain before trusting confirmations.
436
+ * @summary Confirm the outcome of an async rebalance operation
437
+ * {@link /v1/rebalance/operations/:pendingOperationId/confirm}
438
+ */
439
+ declare function postV1RebalanceOperationsByPendingOperationIdConfirm(pendingOperationId: PostV1RebalanceOperationsByPendingOperationIdConfirmPathParams["pendingOperationId"], data: PostV1RebalanceOperationsByPendingOperationIdConfirmMutationRequest, config?: Partial<RequestConfig<PostV1RebalanceOperationsByPendingOperationIdConfirmMutationRequest>> & {
440
+ client?: Client;
441
+ }): Promise<any>;
442
+
443
+ /**
444
+ * Generated by Kubb (https://kubb.dev/).
445
+ * Do not edit manually.
446
+ */
447
+
448
+ /**
449
+ * @summary Update the partner's market/reserve allowlist (subset of the Vayo global whitelist)
450
+ * {@link /v1/dashboard/allowlist}
451
+ */
452
+ declare function putV1DashboardAllowlist(data: PutV1DashboardAllowlistMutationRequest, config?: Partial<RequestConfig<PutV1DashboardAllowlistMutationRequest>> & {
453
+ client?: Client;
454
+ }): Promise<any>;
455
+
456
+ export { type GetHealthModeS200, type GetHealthModeSQuery, type GetHealthModeSQueryResponse, type GetV1DashboardAllowlist200, type GetV1DashboardAllowlistQuery, type GetV1DashboardAllowlistQueryResponse, type GetV1DashboardApiKeys200, type GetV1DashboardApiKeysQuery, type GetV1DashboardApiKeysQueryResponse, type GetV1DashboardConsumption200, type GetV1DashboardConsumptionQuery, type GetV1DashboardConsumptionQueryResponse, type GetV1DashboardInvestmentPerformance200, type GetV1DashboardInvestmentPerformanceQuery, type GetV1DashboardInvestmentPerformanceQueryResponse, type GetV1DashboardOverview200, type GetV1DashboardOverviewQuery, type GetV1DashboardOverviewQueryResponse, type GetV1DashboardPartnerFees200, GetV1DashboardPartnerFeesPayoutsQueryParams, type GetV1DashboardPartnerFeesQuery, type GetV1DashboardPartnerFeesQueryResponse, type GetV1DashboardPerformanceFees200, type GetV1DashboardPerformanceFeesQuery, type GetV1DashboardPerformanceFeesQueryResponse, GetV1DashboardTransactionsQueryParams, GetV1DashboardUsersQueryParams, type GetV1LendingMarkets200, type GetV1LendingMarketsAvailable200, type GetV1LendingMarketsAvailableQuery, type GetV1LendingMarketsAvailableQueryResponse, type GetV1LendingMarketsQuery, type GetV1LendingMarketsQueryResponse, GetV1LendingReservesQueryParams, PostV1LendingOperationsRedeemAllocatedBuildMutationRequest, PostV1LendingOperationsRedeemAllocatedBuildQueryParams, PostV1LendingOperationsRedeemAllocatedSubmitMutationRequest, type PostV1RebalanceOperationsByPendingOperationIdConfirm200, type PostV1RebalanceOperationsByPendingOperationIdConfirm401, type PostV1RebalanceOperationsByPendingOperationIdConfirm403, type PostV1RebalanceOperationsByPendingOperationIdConfirm422, type PostV1RebalanceOperationsByPendingOperationIdConfirmMutation, type PostV1RebalanceOperationsByPendingOperationIdConfirmMutationRequest, type PostV1RebalanceOperationsByPendingOperationIdConfirmMutationResponse, type PostV1RebalanceOperationsByPendingOperationIdConfirmPathParams, type PutV1DashboardAllowlist200, type PutV1DashboardAllowlistMutation, type PutV1DashboardAllowlistMutationRequest, type PutV1DashboardAllowlistMutationResponse, getHealthModeS, getV1DashboardAllowlist, getV1DashboardApiKeys, getV1DashboardConsumption, getV1DashboardInvestmentPerformance, getV1DashboardOverview, getV1DashboardPartnerFees, getV1DashboardPartnerFeesPayouts, getV1DashboardPerformanceFees, getV1DashboardTransactions, getV1DashboardUsers, getV1LendingMarkets, getV1LendingMarketsAvailable, getV1LendingReserves, postV1LendingOperationsRedeemAllocatedBuild, postV1LendingOperationsRedeemAllocatedSubmit, postV1RebalanceOperationsByPendingOperationIdConfirm, putV1DashboardAllowlist };