@zoralabs/coins-sdk 0.5.2 → 0.6.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.
@@ -867,6 +867,9 @@ export type GetCoinsResponses = {
867
867
  * Successful operation
868
868
  */
869
869
  200: {
870
+ /**
871
+ * Batch-resolve Zora ERC-20 coins. Returns nulls for unknown IDs. Preserves input order.
872
+ */
870
873
  zora20Tokens: Array<{
871
874
  /**
872
875
  * The Globally Unique ID of this object
@@ -1338,7 +1341,7 @@ export type SetCreateUploadJwtResponses = {
1338
1341
  */
1339
1342
  200: {
1340
1343
  /**
1341
- * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
1344
+ * Generate a signed JWT for media uploads, authenticated via API key.
1342
1345
  */
1343
1346
  createUploadJwtFromApiKey: string;
1344
1347
  };
@@ -2707,6 +2710,160 @@ export type GetProfileBalancesResponses = {
2707
2710
  };
2708
2711
  };
2709
2712
  export type GetProfileBalancesResponse = GetProfileBalancesResponses[keyof GetProfileBalancesResponses];
2713
+ export type GetProfileBySocialHandleData = {
2714
+ body?: never;
2715
+ path?: never;
2716
+ query: {
2717
+ platform: "TWITTER" | "TIKTOK" | "FARCASTER" | "INSTAGRAM";
2718
+ handle: string;
2719
+ };
2720
+ url: "/profileBySocialHandle";
2721
+ };
2722
+ export type GetProfileBySocialHandleErrors = {
2723
+ /**
2724
+ * Bad request
2725
+ */
2726
+ 400: unknown;
2727
+ /**
2728
+ * Internal server error
2729
+ */
2730
+ 500: unknown;
2731
+ };
2732
+ export type GetProfileBySocialHandleResponses = {
2733
+ /**
2734
+ * Successful operation
2735
+ */
2736
+ 200: {
2737
+ profileBySocialHandle?: {
2738
+ /**
2739
+ * The Globally Unique ID of this object
2740
+ */
2741
+ id: string;
2742
+ /**
2743
+ * Manually set username, or truncated wallet address if the profile isn't a GraphQLAccountProfile. For full wallet address, use the profile_id field instead.
2744
+ */
2745
+ handle: string;
2746
+ /**
2747
+ * The `Boolean` scalar type represents `true` or `false`.
2748
+ */
2749
+ platformBlocked: boolean;
2750
+ avatar?: {
2751
+ previewImage: {
2752
+ /**
2753
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
2754
+ */
2755
+ blurhash?: string;
2756
+ /**
2757
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
2758
+ */
2759
+ medium: string;
2760
+ /**
2761
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
2762
+ */
2763
+ small: string;
2764
+ };
2765
+ };
2766
+ socialAccounts: {
2767
+ instagram?: {
2768
+ /**
2769
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
2770
+ */
2771
+ username?: string;
2772
+ /**
2773
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
2774
+ */
2775
+ displayName?: string;
2776
+ /**
2777
+ * The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
2778
+ */
2779
+ followerCount?: number;
2780
+ /**
2781
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
2782
+ */
2783
+ id?: string;
2784
+ };
2785
+ tiktok?: {
2786
+ /**
2787
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
2788
+ */
2789
+ username?: string;
2790
+ /**
2791
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
2792
+ */
2793
+ displayName?: string;
2794
+ /**
2795
+ * The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
2796
+ */
2797
+ followerCount?: number;
2798
+ /**
2799
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
2800
+ */
2801
+ id?: string;
2802
+ };
2803
+ twitter?: {
2804
+ /**
2805
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
2806
+ */
2807
+ username?: string;
2808
+ /**
2809
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
2810
+ */
2811
+ displayName?: string;
2812
+ /**
2813
+ * The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
2814
+ */
2815
+ followerCount?: number;
2816
+ /**
2817
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
2818
+ */
2819
+ id?: string;
2820
+ };
2821
+ farcaster?: {
2822
+ /**
2823
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
2824
+ */
2825
+ username?: string;
2826
+ /**
2827
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
2828
+ */
2829
+ displayName?: string;
2830
+ /**
2831
+ * The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
2832
+ */
2833
+ followerCount?: number;
2834
+ /**
2835
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
2836
+ */
2837
+ id?: string;
2838
+ };
2839
+ };
2840
+ creatorCoin?: {
2841
+ /**
2842
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
2843
+ */
2844
+ symbol: string;
2845
+ /**
2846
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
2847
+ */
2848
+ marketCap: string;
2849
+ /**
2850
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
2851
+ */
2852
+ marketCapDelta24h: string;
2853
+ multichainAddress: string;
2854
+ };
2855
+ /**
2856
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
2857
+ */
2858
+ username: string;
2859
+ /**
2860
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
2861
+ */
2862
+ displayName?: string;
2863
+ };
2864
+ };
2865
+ };
2866
+ export type GetProfileBySocialHandleResponse = GetProfileBySocialHandleResponses[keyof GetProfileBySocialHandleResponses];
2710
2867
  export type GetProfileCoinsData = {
2711
2868
  body?: never;
2712
2869
  path?: never;
@@ -4256,6 +4413,259 @@ export type GetTrendsByNameResponses = {
4256
4413
  };
4257
4414
  };
4258
4415
  export type GetTrendsByNameResponse = GetTrendsByNameResponses[keyof GetTrendsByNameResponses];
4416
+ export type GetWalletTradeActivityData = {
4417
+ body?: never;
4418
+ path?: never;
4419
+ query: {
4420
+ identifier: string;
4421
+ after?: string;
4422
+ first?: number;
4423
+ };
4424
+ url: "/walletTradeActivity";
4425
+ };
4426
+ export type GetWalletTradeActivityErrors = {
4427
+ /**
4428
+ * Bad request
4429
+ */
4430
+ 400: unknown;
4431
+ /**
4432
+ * Internal server error
4433
+ */
4434
+ 500: unknown;
4435
+ };
4436
+ export type GetWalletTradeActivityResponses = {
4437
+ /**
4438
+ * Successful operation
4439
+ */
4440
+ 200: {
4441
+ walletAddressTradeActivity: {
4442
+ /**
4443
+ * The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
4444
+ */
4445
+ count: number;
4446
+ edges: Array<{
4447
+ node: {
4448
+ /**
4449
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
4450
+ */
4451
+ transactionHash: string;
4452
+ /**
4453
+ * The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
4454
+ */
4455
+ transactionLogIndex?: number;
4456
+ /**
4457
+ * Date with time (isoformat)
4458
+ */
4459
+ blockTimestamp: string;
4460
+ /**
4461
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
4462
+ */
4463
+ coinAmount: string;
4464
+ coin?: {
4465
+ /**
4466
+ * The `Boolean` scalar type represents `true` or `false`.
4467
+ */
4468
+ platformBlocked: boolean;
4469
+ address: string;
4470
+ coinType: "CREATOR" | "CONTENT" | "TREND";
4471
+ /**
4472
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
4473
+ */
4474
+ name: string;
4475
+ /**
4476
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
4477
+ */
4478
+ symbol: string;
4479
+ /**
4480
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
4481
+ */
4482
+ description: string;
4483
+ /**
4484
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
4485
+ */
4486
+ tokenUri?: string;
4487
+ mediaContent?: {
4488
+ previewImage?: {
4489
+ /**
4490
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
4491
+ */
4492
+ small: string;
4493
+ /**
4494
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
4495
+ */
4496
+ blurhash?: string;
4497
+ /**
4498
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
4499
+ */
4500
+ medium: string;
4501
+ };
4502
+ };
4503
+ creatorAddress?: string;
4504
+ creatorProfile?: {
4505
+ /**
4506
+ * The Globally Unique ID of this object
4507
+ */
4508
+ id: string;
4509
+ /**
4510
+ * Manually set username, or truncated wallet address if the profile isn't a GraphQLAccountProfile. For full wallet address, use the profile_id field instead.
4511
+ */
4512
+ handle: string;
4513
+ /**
4514
+ * The `Boolean` scalar type represents `true` or `false`.
4515
+ */
4516
+ platformBlocked: boolean;
4517
+ avatar?: {
4518
+ previewImage: {
4519
+ /**
4520
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
4521
+ */
4522
+ blurhash?: string;
4523
+ /**
4524
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
4525
+ */
4526
+ medium: string;
4527
+ /**
4528
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
4529
+ */
4530
+ small: string;
4531
+ };
4532
+ };
4533
+ };
4534
+ uniswapPoolAddress: string;
4535
+ /**
4536
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
4537
+ */
4538
+ totalSupply: string;
4539
+ };
4540
+ /**
4541
+ * The Globally Unique ID of this object
4542
+ */
4543
+ id: string;
4544
+ swapActivityType?: "BUY" | "SELL";
4545
+ currencyAmountWithPrice: {
4546
+ /**
4547
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
4548
+ */
4549
+ amountUsd?: string;
4550
+ /**
4551
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
4552
+ */
4553
+ priceUsdc?: string;
4554
+ /**
4555
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
4556
+ */
4557
+ priceDelta24h?: string;
4558
+ currencyAmount: {
4559
+ /**
4560
+ * Ethereum address of the currency
4561
+ */
4562
+ currencyAddress: string;
4563
+ /**
4564
+ * Amount of the currency, in float format accounting for currency decimals
4565
+ */
4566
+ amountDecimal: number;
4567
+ /**
4568
+ * Raw amount of the currency, in wei. Not formatted with decimals
4569
+ */
4570
+ amountRaw: string;
4571
+ };
4572
+ };
4573
+ senderProfile?: {
4574
+ /**
4575
+ * The Globally Unique ID of this object
4576
+ */
4577
+ id: string;
4578
+ /**
4579
+ * Manually set username, or truncated wallet address if the profile isn't a GraphQLAccountProfile. For full wallet address, use the profile_id field instead.
4580
+ */
4581
+ handle: string;
4582
+ /**
4583
+ * The `Boolean` scalar type represents `true` or `false`.
4584
+ */
4585
+ platformBlocked: boolean;
4586
+ avatar?: {
4587
+ previewImage: {
4588
+ /**
4589
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
4590
+ */
4591
+ blurhash?: string;
4592
+ /**
4593
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
4594
+ */
4595
+ medium: string;
4596
+ /**
4597
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
4598
+ */
4599
+ small: string;
4600
+ };
4601
+ };
4602
+ };
4603
+ /**
4604
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
4605
+ */
4606
+ orderId: string;
4607
+ /**
4608
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
4609
+ */
4610
+ initialBuyAmount?: string;
4611
+ /**
4612
+ * The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).
4613
+ */
4614
+ initialBuyAmountUsd?: number;
4615
+ /**
4616
+ * The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
4617
+ */
4618
+ multiplier: number;
4619
+ makerProfile?: {
4620
+ /**
4621
+ * The Globally Unique ID of this object
4622
+ */
4623
+ id: string;
4624
+ /**
4625
+ * Manually set username, or truncated wallet address if the profile isn't a GraphQLAccountProfile. For full wallet address, use the profile_id field instead.
4626
+ */
4627
+ handle: string;
4628
+ /**
4629
+ * The `Boolean` scalar type represents `true` or `false`.
4630
+ */
4631
+ platformBlocked: boolean;
4632
+ avatar?: {
4633
+ previewImage: {
4634
+ /**
4635
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
4636
+ */
4637
+ blurhash?: string;
4638
+ /**
4639
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
4640
+ */
4641
+ medium: string;
4642
+ /**
4643
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
4644
+ */
4645
+ small: string;
4646
+ };
4647
+ };
4648
+ };
4649
+ };
4650
+ /**
4651
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
4652
+ */
4653
+ cursor: string;
4654
+ }>;
4655
+ pageInfo: {
4656
+ /**
4657
+ * When paginating forwards, the cursor to continue.
4658
+ */
4659
+ endCursor?: string;
4660
+ /**
4661
+ * When paginating forwards, are there more items?
4662
+ */
4663
+ hasNextPage: boolean;
4664
+ };
4665
+ };
4666
+ };
4667
+ };
4668
+ export type GetWalletTradeActivityResponse = GetWalletTradeActivityResponses[keyof GetWalletTradeActivityResponses];
4259
4669
  export type PostQuoteData = {
4260
4670
  body?: {
4261
4671
  referrer?: string;