@zoralabs/coins-sdk 0.3.2 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/README.md +21 -0
- package/dist/actions/createCoin.d.ts +5 -1
- package/dist/actions/createCoin.d.ts.map +1 -1
- package/dist/api/explore.d.ts +5 -0
- package/dist/api/explore.d.ts.map +1 -1
- package/dist/api/index.d.ts +0 -2
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/queries.d.ts +21 -1
- package/dist/api/queries.d.ts.map +1 -1
- package/dist/client/sdk.gen.d.ts +230 -7
- package/dist/client/sdk.gen.d.ts.map +1 -1
- package/dist/client/types.gen.d.ts +772 -67
- package/dist/client/types.gen.d.ts.map +1 -1
- package/dist/index.cjs +136 -23
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +120 -7
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/actions/createCoin.ts +17 -8
- package/src/api/explore.ts +29 -0
- package/src/api/index.ts +0 -4
- package/src/api/queries.ts +90 -0
- package/src/client/sdk.gen.ts +140 -20
- package/src/client/types.gen.ts +806 -74
- package/dist/api/pool-config.d.ts +0 -5
- package/dist/api/pool-config.d.ts.map +0 -1
- package/src/api/pool-config.ts +0 -17
package/src/client/sdk.gen.ts
CHANGED
|
@@ -18,22 +18,31 @@ import type {
|
|
|
18
18
|
GetCoinSwapsResponse,
|
|
19
19
|
GetCoinsData,
|
|
20
20
|
GetCoinsResponse,
|
|
21
|
+
GetContentCoinPoolConfigData,
|
|
22
|
+
GetContentCoinPoolConfigResponse,
|
|
21
23
|
SetCreateUploadJwtData,
|
|
22
24
|
SetCreateUploadJwtResponse,
|
|
25
|
+
GetCreatorCoinPoolConfigData,
|
|
26
|
+
GetCreatorCoinPoolConfigResponse,
|
|
23
27
|
GetExploreData,
|
|
24
28
|
GetExploreResponse,
|
|
29
|
+
GetFeaturedCreatorsData,
|
|
30
|
+
GetFeaturedCreatorsResponse,
|
|
25
31
|
GetProfileData,
|
|
26
32
|
GetProfileResponse,
|
|
27
33
|
GetProfileBalancesData,
|
|
28
34
|
GetProfileBalancesResponse,
|
|
29
35
|
GetProfileCoinsData,
|
|
30
36
|
GetProfileCoinsResponse,
|
|
37
|
+
GetProfileSocialData,
|
|
38
|
+
GetProfileSocialResponse,
|
|
39
|
+
GetTokenInfoData,
|
|
40
|
+
GetTokenInfoResponse,
|
|
41
|
+
GetTraderLeaderboardData,
|
|
42
|
+
GetTraderLeaderboardResponse,
|
|
31
43
|
PostQuoteData,
|
|
32
44
|
PostQuoteResponse,
|
|
33
45
|
PostQuoteError,
|
|
34
|
-
GetCreateContentPoolConfigData,
|
|
35
|
-
GetCreateContentPoolConfigResponse,
|
|
36
|
-
GetCreateContentPoolConfigError,
|
|
37
46
|
PostCreateContentData,
|
|
38
47
|
PostCreateContentResponse,
|
|
39
48
|
PostCreateContentError,
|
|
@@ -189,6 +198,28 @@ export const getCoins = <ThrowOnError extends boolean = false>(
|
|
|
189
198
|
});
|
|
190
199
|
};
|
|
191
200
|
|
|
201
|
+
/**
|
|
202
|
+
* zoraSDK_contentCoinPoolConfig query
|
|
203
|
+
*/
|
|
204
|
+
export const getContentCoinPoolConfig = <ThrowOnError extends boolean = false>(
|
|
205
|
+
options: Options<GetContentCoinPoolConfigData, ThrowOnError>,
|
|
206
|
+
) => {
|
|
207
|
+
return (options.client ?? _heyApiClient).get<
|
|
208
|
+
GetContentCoinPoolConfigResponse,
|
|
209
|
+
unknown,
|
|
210
|
+
ThrowOnError
|
|
211
|
+
>({
|
|
212
|
+
security: [
|
|
213
|
+
{
|
|
214
|
+
name: "api-key",
|
|
215
|
+
type: "apiKey",
|
|
216
|
+
},
|
|
217
|
+
],
|
|
218
|
+
url: "/contentCoinPoolConfig",
|
|
219
|
+
...options,
|
|
220
|
+
});
|
|
221
|
+
};
|
|
222
|
+
|
|
192
223
|
/**
|
|
193
224
|
* zoraSDK_createUploadJWT mutation
|
|
194
225
|
*/
|
|
@@ -215,6 +246,28 @@ export const setCreateUploadJwt = <ThrowOnError extends boolean = false>(
|
|
|
215
246
|
});
|
|
216
247
|
};
|
|
217
248
|
|
|
249
|
+
/**
|
|
250
|
+
* zoraSDK_creatorCoinPoolConfig query
|
|
251
|
+
*/
|
|
252
|
+
export const getCreatorCoinPoolConfig = <ThrowOnError extends boolean = false>(
|
|
253
|
+
options?: Options<GetCreatorCoinPoolConfigData, ThrowOnError>,
|
|
254
|
+
) => {
|
|
255
|
+
return (options?.client ?? _heyApiClient).get<
|
|
256
|
+
GetCreatorCoinPoolConfigResponse,
|
|
257
|
+
unknown,
|
|
258
|
+
ThrowOnError
|
|
259
|
+
>({
|
|
260
|
+
security: [
|
|
261
|
+
{
|
|
262
|
+
name: "api-key",
|
|
263
|
+
type: "apiKey",
|
|
264
|
+
},
|
|
265
|
+
],
|
|
266
|
+
url: "/creatorCoinPoolConfig",
|
|
267
|
+
...options,
|
|
268
|
+
});
|
|
269
|
+
};
|
|
270
|
+
|
|
218
271
|
/**
|
|
219
272
|
* zoraSDK_explore query
|
|
220
273
|
*/
|
|
@@ -237,6 +290,28 @@ export const getExplore = <ThrowOnError extends boolean = false>(
|
|
|
237
290
|
});
|
|
238
291
|
};
|
|
239
292
|
|
|
293
|
+
/**
|
|
294
|
+
* zoraSDK_featuredCreators query
|
|
295
|
+
*/
|
|
296
|
+
export const getFeaturedCreators = <ThrowOnError extends boolean = false>(
|
|
297
|
+
options?: Options<GetFeaturedCreatorsData, ThrowOnError>,
|
|
298
|
+
) => {
|
|
299
|
+
return (options?.client ?? _heyApiClient).get<
|
|
300
|
+
GetFeaturedCreatorsResponse,
|
|
301
|
+
unknown,
|
|
302
|
+
ThrowOnError
|
|
303
|
+
>({
|
|
304
|
+
security: [
|
|
305
|
+
{
|
|
306
|
+
name: "api-key",
|
|
307
|
+
type: "apiKey",
|
|
308
|
+
},
|
|
309
|
+
],
|
|
310
|
+
url: "/featuredCreators",
|
|
311
|
+
...options,
|
|
312
|
+
});
|
|
313
|
+
};
|
|
314
|
+
|
|
240
315
|
/**
|
|
241
316
|
* zoraSDK_profile query
|
|
242
317
|
*/
|
|
@@ -303,12 +378,15 @@ export const getProfileCoins = <ThrowOnError extends boolean = false>(
|
|
|
303
378
|
});
|
|
304
379
|
};
|
|
305
380
|
|
|
306
|
-
|
|
307
|
-
|
|
381
|
+
/**
|
|
382
|
+
* zoraSDK_profileSocial query
|
|
383
|
+
*/
|
|
384
|
+
export const getProfileSocial = <ThrowOnError extends boolean = false>(
|
|
385
|
+
options: Options<GetProfileSocialData, ThrowOnError>,
|
|
308
386
|
) => {
|
|
309
|
-
return (options
|
|
310
|
-
|
|
311
|
-
|
|
387
|
+
return (options.client ?? _heyApiClient).get<
|
|
388
|
+
GetProfileSocialResponse,
|
|
389
|
+
unknown,
|
|
312
390
|
ThrowOnError
|
|
313
391
|
>({
|
|
314
392
|
security: [
|
|
@@ -317,23 +395,42 @@ export const postQuote = <ThrowOnError extends boolean = false>(
|
|
|
317
395
|
type: "apiKey",
|
|
318
396
|
},
|
|
319
397
|
],
|
|
320
|
-
url: "/
|
|
398
|
+
url: "/profileSocial",
|
|
399
|
+
...options,
|
|
400
|
+
});
|
|
401
|
+
};
|
|
402
|
+
|
|
403
|
+
/**
|
|
404
|
+
* zoraSDK_tokenInfo query
|
|
405
|
+
*/
|
|
406
|
+
export const getTokenInfo = <ThrowOnError extends boolean = false>(
|
|
407
|
+
options: Options<GetTokenInfoData, ThrowOnError>,
|
|
408
|
+
) => {
|
|
409
|
+
return (options.client ?? _heyApiClient).get<
|
|
410
|
+
GetTokenInfoResponse,
|
|
411
|
+
unknown,
|
|
412
|
+
ThrowOnError
|
|
413
|
+
>({
|
|
414
|
+
security: [
|
|
415
|
+
{
|
|
416
|
+
name: "api-key",
|
|
417
|
+
type: "apiKey",
|
|
418
|
+
},
|
|
419
|
+
],
|
|
420
|
+
url: "/tokenInfo",
|
|
321
421
|
...options,
|
|
322
|
-
headers: {
|
|
323
|
-
"Content-Type": "application/json",
|
|
324
|
-
...options?.headers,
|
|
325
|
-
},
|
|
326
422
|
});
|
|
327
423
|
};
|
|
328
424
|
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
425
|
+
/**
|
|
426
|
+
* zoraSDK_traderLeaderboard query
|
|
427
|
+
*/
|
|
428
|
+
export const getTraderLeaderboard = <ThrowOnError extends boolean = false>(
|
|
429
|
+
options?: Options<GetTraderLeaderboardData, ThrowOnError>,
|
|
333
430
|
) => {
|
|
334
431
|
return (options?.client ?? _heyApiClient).get<
|
|
335
|
-
|
|
336
|
-
|
|
432
|
+
GetTraderLeaderboardResponse,
|
|
433
|
+
unknown,
|
|
337
434
|
ThrowOnError
|
|
338
435
|
>({
|
|
339
436
|
security: [
|
|
@@ -342,11 +439,34 @@ export const getCreateContentPoolConfig = <
|
|
|
342
439
|
type: "apiKey",
|
|
343
440
|
},
|
|
344
441
|
],
|
|
345
|
-
url: "/
|
|
442
|
+
url: "/traderLeaderboard",
|
|
346
443
|
...options,
|
|
347
444
|
});
|
|
348
445
|
};
|
|
349
446
|
|
|
447
|
+
export const postQuote = <ThrowOnError extends boolean = false>(
|
|
448
|
+
options?: Options<PostQuoteData, ThrowOnError>,
|
|
449
|
+
) => {
|
|
450
|
+
return (options?.client ?? _heyApiClient).post<
|
|
451
|
+
PostQuoteResponse,
|
|
452
|
+
PostQuoteError,
|
|
453
|
+
ThrowOnError
|
|
454
|
+
>({
|
|
455
|
+
security: [
|
|
456
|
+
{
|
|
457
|
+
name: "api-key",
|
|
458
|
+
type: "apiKey",
|
|
459
|
+
},
|
|
460
|
+
],
|
|
461
|
+
url: "/quote",
|
|
462
|
+
...options,
|
|
463
|
+
headers: {
|
|
464
|
+
"Content-Type": "application/json",
|
|
465
|
+
...options?.headers,
|
|
466
|
+
},
|
|
467
|
+
});
|
|
468
|
+
};
|
|
469
|
+
|
|
350
470
|
export const postCreateContent = <ThrowOnError extends boolean = false>(
|
|
351
471
|
options?: Options<PostCreateContentData, ThrowOnError>,
|
|
352
472
|
) => {
|