@zoralabs/coins-sdk 0.3.3 → 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.
@@ -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
- export const postQuote = <ThrowOnError extends boolean = false>(
307
- options?: Options<PostQuoteData, ThrowOnError>,
381
+ /**
382
+ * zoraSDK_profileSocial query
383
+ */
384
+ export const getProfileSocial = <ThrowOnError extends boolean = false>(
385
+ options: Options<GetProfileSocialData, ThrowOnError>,
308
386
  ) => {
309
- return (options?.client ?? _heyApiClient).post<
310
- PostQuoteResponse,
311
- PostQuoteError,
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: "/quote",
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
- export const getCreateContentPoolConfig = <
330
- ThrowOnError extends boolean = false,
331
- >(
332
- options?: Options<GetCreateContentPoolConfigData, ThrowOnError>,
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
- GetCreateContentPoolConfigResponse,
336
- GetCreateContentPoolConfigError,
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: "/create/content/pool-config",
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
  ) => {