gondi 0.62.0 → 0.63.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.
@@ -23,14 +23,20 @@ export type Scalars = {
23
23
  Float: number;
24
24
  Address: Address;
25
25
  BigInt: bigint;
26
+ /** Date (isoformat) */
26
27
  Date: any;
28
+ /** Date with time (isoformat) */
27
29
  DateTime: Date;
28
30
  Hash: Hash;
29
31
  Hex: Hex;
32
+ /** 64-bit integer as a JSON number. */
30
33
  Int64: any;
34
+ /** The `JSON` scalar type represents JSON values as specified by [ECMA-404](https://ecma-international.org/wp-content/uploads/ECMA-404_2nd_edition_december_2017.pdf). */
31
35
  JSON: object;
32
36
  Signature: Hex;
37
+ /** Represents a file upload. */
33
38
  Upload: any;
39
+ /** Represents NULL values */
34
40
  Void: any;
35
41
  };
36
42
  export type ActiveOfferNotification = Node & Notification & {
@@ -1150,6 +1156,8 @@ export declare enum CollectionSortField {
1150
1156
  OutstandingPrincipal = "OUTSTANDING_PRINCIPAL",
1151
1157
  OwnersTotalValue = "OWNERS_TOTAL_VALUE",
1152
1158
  SaleListingCount = "SALE_LISTING_COUNT",
1159
+ /** The listings SALE_LISTING_COUNT counts, as a share of the collection's supply (Collection.nftsCount); collections without a sampled supply go last. */
1160
+ SaleListingShare = "SALE_LISTING_SHARE",
1153
1161
  Supply = "SUPPLY",
1154
1162
  TotalLoanVolume = "TOTAL_LOAN_VOLUME",
1155
1163
  TotalOutstandingPrincipal = "TOTAL_OUTSTANDING_PRINCIPAL",
@@ -2663,7 +2671,7 @@ export type LoansData = {
2663
2671
  minPrincipalAmount: Scalars['BigInt'];
2664
2672
  minRemainingTime: Scalars['BigInt'];
2665
2673
  };
2666
- /** This is the definition of a lost source. Lost sources are the lender/s that have lost a loan because of renegotiation or refinance. */
2674
+ /** This is the definition of a lost source. Lost sources are the lender/s that have lost a loan because of renegotiation or refinance. */
2667
2675
  export type LostSource = Node & {
2668
2676
  __typename?: 'LostSource';
2669
2677
  accruedInterest: Scalars['BigInt'];
@@ -2951,7 +2959,7 @@ export type Mutation = {
2951
2959
  generateSingleNftOfferToBeSigned: SingleNftOffer;
2952
2960
  /** This is the first step of the trait loan offer flow: an offer any NFT carrying every one of the traits can borrow against. This step populates some fields of the offer, among them the validator holding the token ids that carry them now. `duration` must be a positive whole number of seconds that represents either a multiple of 30 days or one of the special values of 3, 5, 7, 10, 15, 20 or 45 days, and at most 3650 days; otherwise the call fails with INVALID_OFFER_DURATION_ERROR. Refer to gondi-js examples for more details. */
2953
2961
  generateTraitOfferToBeSigned: TraitOffer;
2954
- /** Hides all loan offers from a user for a given contract address. */
2962
+ /** Hides all loan offers from a user for a given contract address. */
2955
2963
  hideAllOffers: Array<Offer>;
2956
2964
  /** Hides a loan offer. */
2957
2965
  hideOffer: Offer;
@@ -2959,7 +2967,7 @@ export type Mutation = {
2959
2967
  hideOffers: Array<Offer>;
2960
2968
  /** Hides a trade bid. Listings can no longer be hidden: cancelling them on-chain is the only supported way to take one down, so an ask is rejected. */
2961
2969
  hideOrder: Order;
2962
- /** Hides a loan renegotiation offer. */
2970
+ /** Hides a loan renegotiation offer. */
2963
2971
  hideRenegotiation: Renegotiation;
2964
2972
  linkWalletAddress: LinkedWallets;
2965
2973
  markNotificationIdsAsRead?: Maybe<Scalars['Void']>;
@@ -2987,6 +2995,10 @@ export type Mutation = {
2987
2995
  recordItemVisit: Scalars['Boolean'];
2988
2996
  /** Refreshes NFT metadata and image */
2989
2997
  refreshNftMetadata: Nft;
2998
+ /** Register a browser's push subscription under the wallet you are signed in with, so your account's alerts can be pushed to it. A subscription registered before moves to the wallet that registers it last, and a wallet keeps the 10 it registered last. Returns true once it is stored. */
2999
+ registerPushSubscription: Scalars['Boolean'];
3000
+ /** Signs again the OpenSea listings of the caller's asks that failed (listOpenSeaListingResults: FAILED), on OpenSea's current terms and at the OpenSea price they were first signed at; the GONDI asks are not touched. First call (no signature) returns a SignatureRequest for one Seaport bulk order holding only those listings. Sign the typedData and call again with the signature: it returns RelistOpenSeaListingsResult, each listing PENDING until listOpenSeaListingResults says what became of it. A listing that cannot be signed again (its ask ended, or OpenSea no longer lists the collection) is left out of the typedData and reported as FAILED; when none can be, the first call returns the result at once. Refused as a whole for an order that is not the caller's or has no failed listing, and for a signature that does not match the typedData, which changes with OpenSea's terms: ask for it again. */
3001
+ relistOpenSeaListings: RelistOpenSeaListingsResultSignatureRequest;
2990
3002
  removeLinkedWallets?: Maybe<Scalars['Void']>;
2991
3003
  /** Removes a loan listing from a user. */
2992
3004
  removeListing: Listing;
@@ -3020,7 +3032,7 @@ export type Mutation = {
3020
3032
  showOffer: Offer;
3021
3033
  /** Unhides a trade bid. Listings can no longer be hidden, so an ask is rejected: one hidden before that change stays hidden and is cancelled on-chain rather than brought back. */
3022
3034
  showOrder: Order;
3023
- /** Unhides a loan renegotiation offer. */
3035
+ /** Unhides a loan renegotiation offer. */
3024
3036
  showRenegotiation: Renegotiation;
3025
3037
  signInWithEthereum: Scalars['String'];
3026
3038
  /** Starts proving the caller's X account: returns the x.com page to send them to. X sends them back to the configured redirect URI with `code` and `state` for completeTwitterVerification. */
@@ -3037,6 +3049,8 @@ export type Mutation = {
3037
3049
  unfollowWallet?: Maybe<Scalars['Void']>;
3038
3050
  /** Take a gallery back to a draft only its account can see. */
3039
3051
  unpublishGallery: Gallery;
3052
+ /** Stop pushing your account's alerts to a browser, by the endpoint of its push subscription. Returns whether your account had it registered. */
3053
+ unregisterPushSubscription: Scalars['Boolean'];
3040
3054
  /** Replace a gallery's name, description, style and works. A draft's slug follows its new name; a published gallery keeps its slug. The publication state stays as it is. */
3041
3055
  updateGallery: Gallery;
3042
3056
  uploadProfilePicture: User;
@@ -3192,6 +3206,12 @@ export type MutationRecordItemVisitArgs = {
3192
3206
  export type MutationRefreshNftMetadataArgs = {
3193
3207
  nftId: Scalars['Int'];
3194
3208
  };
3209
+ export type MutationRegisterPushSubscriptionArgs = {
3210
+ subscription: PushSubscriptionInput;
3211
+ };
3212
+ export type MutationRelistOpenSeaListingsArgs = {
3213
+ relistInput: RelistOpenSeaListingsInput;
3214
+ };
3195
3215
  export type MutationRemoveLinkedWalletsArgs = {
3196
3216
  linkedWalletsId: Scalars['String'];
3197
3217
  };
@@ -3280,6 +3300,9 @@ export type MutationUnfollowWalletArgs = {
3280
3300
  export type MutationUnpublishGalleryArgs = {
3281
3301
  galleryId: Scalars['Int'];
3282
3302
  };
3303
+ export type MutationUnregisterPushSubscriptionArgs = {
3304
+ endpoint: Scalars['String'];
3305
+ };
3283
3306
  export type MutationUpdateGalleryArgs = {
3284
3307
  gallery: GalleryInput;
3285
3308
  galleryId: Scalars['Int'];
@@ -3913,13 +3936,26 @@ export type OffersSortInput = {
3913
3936
  order: Ordering;
3914
3937
  principalOfInterest?: InputMaybe<Scalars['BigInt']>;
3915
3938
  };
3939
+ export declare enum OpenSeaListingFailureReason {
3940
+ /** OpenSea refused the listing for its fees or zone: the collection's terms changed after it was signed. listOpenSeaListingTerms answers the new ones. */
3941
+ TermsChanged = "TERMS_CHANGED"
3942
+ }
3916
3943
  export type OpenSeaListingResult = {
3917
3944
  __typename?: 'OpenSeaListingResult';
3918
3945
  contractAddress: Scalars['Address'];
3919
3946
  error?: Maybe<Scalars['String']>;
3947
+ /** Set for a failure the client can act on; error is the text to show for any failure. */
3948
+ failureReason?: Maybe<OpenSeaListingFailureReason>;
3920
3949
  orderHash?: Maybe<Scalars['Hash']>;
3950
+ /** PENDING while the listing waits to be posted to OpenSea; listOpenSeaListingResults then says what became of it. */
3951
+ status: OpenSeaListingStatus;
3921
3952
  tokenId: Scalars['BigInt'];
3922
3953
  };
3954
+ export declare enum OpenSeaListingStatus {
3955
+ Failed = "FAILED",
3956
+ Pending = "PENDING",
3957
+ Posted = "POSTED"
3958
+ }
3923
3959
  export type OpenSeaListingTerms = {
3924
3960
  __typename?: 'OpenSeaListingTerms';
3925
3961
  collectionId: Scalars['Int'];
@@ -4188,6 +4224,15 @@ export type PortfolioValuation = {
4188
4224
  value: Scalars['Float'];
4189
4225
  valuedNfts: Scalars['Int'];
4190
4226
  };
4227
+ /** A browser's push subscription, as `PushSubscription.toJSON()` gives it, with the two entries of `keys` beside the endpoint. */
4228
+ export type PushSubscriptionInput = {
4229
+ /** The browser's authentication secret, `keys.auth`, in base64url. */
4230
+ auth: Scalars['String'];
4231
+ /** The push service URL of the subscription. Only the push services of Chrome, Safari, Firefox and Edge are accepted. */
4232
+ endpoint: Scalars['String'];
4233
+ /** The browser's public key, `keys.p256dh`, in base64url. */
4234
+ p256dh: Scalars['String'];
4235
+ };
4191
4236
  /** Query for the lending module */
4192
4237
  export type Query = {
4193
4238
  __typename?: 'Query';
@@ -4215,7 +4260,7 @@ export type Query = {
4215
4260
  getCancelOrdersCalldata: Array<CancelAllOrdersCalldata>;
4216
4261
  /** Get some general loan stats about the activities for a collection. */
4217
4262
  getCollectionActivitiesCount: CollectionEventsCountByDayAndCurrency;
4218
- /** Get a collection by its slug. Slugs are unique identifiers for collections. */
4263
+ /** Get a collection by its slug. Slugs are unique identifiers for collections. */
4219
4264
  getCollectionBySlug?: Maybe<Collection>;
4220
4265
  /** Highest active bid targeting a single collection whose trait constraint is satisfied by the supplied trait IDs. Considers single-trait bids whose trait is in the input, multi-trait bids whose trait set is contained in the input, collection-level bids, and native set bids covering every NFT that carries all the input traits. Returns null when traitIds is empty or no matching bid exists. */
4221
4266
  getCollectionHighestBidMatchingTraits?: Maybe<Order>;
@@ -4353,6 +4398,8 @@ export type Query = {
4353
4398
  listNftsFromUser: NftConnection;
4354
4399
  listNotifications: NotificationConnection;
4355
4400
  listOffers: OfferConnection;
4401
+ /** What became of the OpenSea listing of each of the caller's orders among orderIds, as published with listOnOpenSea: PENDING until it is posted to OpenSea or fails. An order with no OpenSea listing waiting or settled has no entry. */
4402
+ listOpenSeaListingResults: Array<OpenSeaListingResult>;
4356
4403
  listOpenSeaListingTerms: Array<OpenSeaListingTerms>;
4357
4404
  /** This field is deprecated. Use list_orders_v2 instead. This field will be removed in the next major version. */
4358
4405
  listOrders: OrderConnection;
@@ -4391,6 +4438,8 @@ export type Query = {
4391
4438
  previewRenegotiationCompetition: LoanOfferCompetitionPreview;
4392
4439
  /** The Telegram chat the viewer's account gets its notifications in, or null when no wallet of the account linked one. */
4393
4440
  telegramConnection?: Maybe<TelegramConnection>;
4441
+ /** The key a browser subscribes to this server's push messages with, as the `applicationServerKey` of `PushManager.subscribe()`. Null when the server has none configured. */
4442
+ webPushPublicKey?: Maybe<Scalars['String']>;
4394
4443
  };
4395
4444
  /** Query for the lending module */
4396
4445
  export type QueryCollectionMarketDepthArgs = {
@@ -5129,6 +5178,10 @@ export type QueryListOffersArgs = {
5129
5178
  worseOffers?: InputMaybe<Scalars['Boolean']>;
5130
5179
  };
5131
5180
  /** Query for the lending module */
5181
+ export type QueryListOpenSeaListingResultsArgs = {
5182
+ orderIds: Array<Scalars['Int64']>;
5183
+ };
5184
+ /** Query for the lending module */
5132
5185
  export type QueryListOpenSeaListingTermsArgs = {
5133
5186
  collectionIds: Array<Scalars['Int']>;
5134
5187
  };
@@ -5326,6 +5379,18 @@ export type RefinanceTermsFilter = {
5326
5379
  profitLeft?: InputMaybe<Interval>;
5327
5380
  remainingTime?: InputMaybe<Interval>;
5328
5381
  };
5382
+ export type RelistOpenSeaListingsInput = {
5383
+ /** The caller's GONDI asks whose OpenSea listing failed, 1 to 50. The same ids on both calls. */
5384
+ orderIds: Array<Scalars['Int64']>;
5385
+ /** The caller's signature of the typedData the call without it returned. */
5386
+ signature?: InputMaybe<Scalars['Signature']>;
5387
+ };
5388
+ export type RelistOpenSeaListingsResult = {
5389
+ __typename?: 'RelistOpenSeaListingsResult';
5390
+ /** One entry per order: PENDING once its newly signed listing waits to be posted to OpenSea, FAILED with the error when it could not be signed again. */
5391
+ openSeaListings: Array<OpenSeaListingResult>;
5392
+ };
5393
+ export type RelistOpenSeaListingsResultSignatureRequest = RelistOpenSeaListingsResult | SignatureRequest;
5329
5394
  /** A renegotiation when the loan terms change and the borrower accepted. The difference with refinance is that renegotiation does not mean better terms for the borrower, because of that the borrower needs to accept the renegotiation. Also the renegotiation can be made by the same previous lender.Renegotiation can be top ups. A top up is when someone adds more principal to the loan. */
5330
5395
  export type Renegotiation = Event & Node & {
5331
5396
  __typename?: 'Renegotiation';
@@ -5768,6 +5833,8 @@ export type SingleNftOrder = Event & Node & Order & {
5768
5833
  createdDate: Scalars['DateTime'];
5769
5834
  currency: Currency;
5770
5835
  currencyAddress: Scalars['Address'];
5836
+ /** What a descending listing asks at `expiration`, its price falling linearly from `price` at `startTime`; null for a fixed price. */
5837
+ endPrice?: Maybe<Scalars['BigInt']>;
5771
5838
  evmOrder?: Maybe<Scalars['JSON']>;
5772
5839
  executions: Scalars['Int'];
5773
5840
  expiration: Scalars['DateTime'];
@@ -5820,6 +5887,8 @@ export type SingleNftOrderInput = {
5820
5887
  /** The maker's Seaport counter, which the order is built with. Optional: GONDI looks it up when it is missing. A signed order whose counter is not the maker's current one is rejected. */
5821
5888
  counter?: InputMaybe<Scalars['BigInt']>;
5822
5889
  currencyAddress: Scalars['Address'];
5890
+ /** Makes a listing's price fall linearly from `price` at `startTime` to this, below `price`, at `expirationTime`. Listings only, not stealth ones. */
5891
+ endPrice?: InputMaybe<Scalars['BigInt']>;
5823
5892
  expirationTime: Scalars['BigInt'];
5824
5893
  fees?: InputMaybe<Array<OrderFee>>;
5825
5894
  isAsk?: InputMaybe<Scalars['Boolean']>;
@@ -6176,6 +6245,8 @@ export type Trait = Node & {
6176
6245
  __typename?: 'Trait';
6177
6246
  collectionId: Scalars['String'];
6178
6247
  id: Scalars['String'];
6248
+ /** Whether GONDI computed the trait instead of reading it from the metadata: the `None` of a type the NFT lacks, or its `Trait count`. */
6249
+ isDerived: Scalars['Boolean'];
6179
6250
  isSynthetic: Scalars['Boolean'];
6180
6251
  key: Scalars['String'];
6181
6252
  sampleAsset?: Maybe<Asset>;
@@ -6430,6 +6501,8 @@ export type TraitValue = Node & {
6430
6501
  __typename?: 'TraitValue';
6431
6502
  collectionId: Scalars['Int'];
6432
6503
  id: Scalars['String'];
6504
+ /** Whether GONDI computed the value instead of reading it from the metadata: the `None` of a type an NFT lacks, or its `Trait count`. */
6505
+ isDerived: Scalars['Boolean'];
6433
6506
  isSynthetic: Scalars['Boolean'];
6434
6507
  key: Scalars['String'];
6435
6508
  rarity: Scalars['Int'];
@@ -7343,6 +7416,8 @@ export type PublishBulkOrdersMutation = {
7343
7416
  tokenId: bigint;
7344
7417
  orderHash?: Hash | null;
7345
7418
  error?: string | null;
7419
+ failureReason?: OpenSeaListingFailureReason | null;
7420
+ status: OpenSeaListingStatus;
7346
7421
  }>;
7347
7422
  } | {
7348
7423
  __typename?: 'SignatureRequest';
@@ -7533,6 +7608,34 @@ export type PublishSellAndRepayOrderMutation = {
7533
7608
  };
7534
7609
  };
7535
7610
  };
7611
+ export type RelistOpenSeaListingsMutationVariables = Exact<{
7612
+ relistInput: RelistOpenSeaListingsInput;
7613
+ }>;
7614
+ export type RelistOpenSeaListingsMutation = {
7615
+ __typename?: 'Mutation';
7616
+ result: {
7617
+ __typename?: 'RelistOpenSeaListingsResult';
7618
+ openSeaListings: Array<{
7619
+ __typename?: 'OpenSeaListingResult';
7620
+ contractAddress: Address;
7621
+ tokenId: bigint;
7622
+ orderHash?: Hash | null;
7623
+ error?: string | null;
7624
+ failureReason?: OpenSeaListingFailureReason | null;
7625
+ status: OpenSeaListingStatus;
7626
+ }>;
7627
+ } | {
7628
+ __typename?: 'SignatureRequest';
7629
+ key: string;
7630
+ typedData: {
7631
+ __typename?: 'TypedData';
7632
+ types: object;
7633
+ primaryType: string;
7634
+ domain: object;
7635
+ message: object;
7636
+ };
7637
+ };
7638
+ };
7536
7639
  export type ShowOrderMutationVariables = Exact<{
7537
7640
  id: Scalars['Int64'];
7538
7641
  }>;
@@ -8141,10 +8244,11 @@ export type NftIdBySlugTokenIdQuery = {
8141
8244
  } | null;
8142
8245
  };
8143
8246
  export type OwnedNftsQueryVariables = Exact<{
8247
+ owner: Scalars['Address'];
8144
8248
  after?: InputMaybe<Scalars['String']>;
8145
- includeInLoans?: InputMaybe<Scalars['Boolean']>;
8146
- includeInStash?: InputMaybe<Scalars['Boolean']>;
8147
- standards?: InputMaybe<Array<TokenStandardType> | TokenStandardType>;
8249
+ includeInLoans: Scalars['Boolean'];
8250
+ includeInStash: Scalars['Boolean'];
8251
+ standards: Array<TokenStandardType> | TokenStandardType;
8148
8252
  }>;
8149
8253
  export type OwnedNftsQuery = {
8150
8254
  __typename?: 'Query';
@@ -8687,6 +8791,21 @@ export type GetSaleCalldataQuery = {
8687
8791
  __typename?: 'Query';
8688
8792
  saleCalldata: Hex;
8689
8793
  };
8794
+ export type ListOpenSeaListingResultsQueryVariables = Exact<{
8795
+ orderIds: Array<Scalars['Int64']> | Scalars['Int64'];
8796
+ }>;
8797
+ export type ListOpenSeaListingResultsQuery = {
8798
+ __typename?: 'Query';
8799
+ result: Array<{
8800
+ __typename?: 'OpenSeaListingResult';
8801
+ contractAddress: Address;
8802
+ tokenId: bigint;
8803
+ orderHash?: Hash | null;
8804
+ error?: string | null;
8805
+ failureReason?: OpenSeaListingFailureReason | null;
8806
+ status: OpenSeaListingStatus;
8807
+ }>;
8808
+ };
8690
8809
  export type ListOrdersQueryVariables = Exact<{
8691
8810
  side?: InputMaybe<OrderSide>;
8692
8811
  collectionIds?: InputMaybe<Array<Scalars['Int']> | Scalars['Int']>;
@@ -10758,7 +10877,7 @@ export type MultipleTraitOrderFieldPolicy = {
10758
10877
  traits?: FieldPolicy<any> | FieldReadFunction<any>;
10759
10878
  updatedDate?: FieldPolicy<any> | FieldReadFunction<any>;
10760
10879
  };
10761
- export type MutationKeySpecifier = ('acceptLinkedWallets' | 'addListingsOfNftsFromUser' | 'addOrUpdateListing' | 'addOrUpdateRenegotiationRequest' | 'addOrUpdateTopUpRequest' | 'cancelTradeOrders' | 'completeTwitterVerification' | 'createBidBudget' | 'createGallery' | 'createTelegramLink' | 'deleteGallery' | 'deleteProfilePicture' | 'disconnectTelegram' | 'disconnectTwitter' | 'editUser' | 'followArtist' | 'followCollection' | 'followCollections' | 'followEdition' | 'followNft' | 'followWallet' | 'generateCollectionOfferToBeSigned' | 'generateRenegotiationOfferToBeSigned' | 'generateSignInNonce' | 'generateSingleNftOfferToBeSigned' | 'generateTraitOfferToBeSigned' | 'hideAllOffers' | 'hideOffer' | 'hideOffers' | 'hideOrder' | 'hideRenegotiation' | 'linkWalletAddress' | 'markNotificationIdsAsRead' | 'markNotificationsAsRead' | 'publishBulkOrdersForNfts' | 'publishBuyNowPayLaterOrder' | 'publishDealOrder' | 'publishGallery' | 'publishOrderForCollection' | 'publishOrderForNft' | 'publishOrderForNftSet' | 'publishOrderForTrait' | 'publishSellAndRepayOrder' | 'recordGalleryVisit' | 'recordItemVisit' | 'refreshNftMetadata' | 'removeLinkedWallets' | 'removeListing' | 'removeListingsOfNftsFromUser' | 'removeRenegotiationRequest' | 'removeTopUpRequest' | 'resendVerificationEmail' | 'saveItemBrowseList' | 'saveRenegotiationSignedOffer' | 'saveSignedCollectionOffer' | 'saveSignedSingleNftOffer' | 'saveSignedTraitOffer' | 'setMinimumOfferAmount' | 'setNftWatchNotifications' | 'setNotificationPreferences' | 'setReferral' | 'setWatchNotifications' | 'showOffer' | 'showOrder' | 'showRenegotiation' | 'signInWithEthereum' | 'startTwitterVerification' | 'unfollowArtist' | 'unfollowCollection' | 'unfollowEdition' | 'unfollowNft' | 'unfollowWallet' | 'unpublishGallery' | 'updateGallery' | 'uploadProfilePicture' | 'verifyMailValidationCode' | MutationKeySpecifier)[];
10880
+ export type MutationKeySpecifier = ('acceptLinkedWallets' | 'addListingsOfNftsFromUser' | 'addOrUpdateListing' | 'addOrUpdateRenegotiationRequest' | 'addOrUpdateTopUpRequest' | 'cancelTradeOrders' | 'completeTwitterVerification' | 'createBidBudget' | 'createGallery' | 'createTelegramLink' | 'deleteGallery' | 'deleteProfilePicture' | 'disconnectTelegram' | 'disconnectTwitter' | 'editUser' | 'followArtist' | 'followCollection' | 'followCollections' | 'followEdition' | 'followNft' | 'followWallet' | 'generateCollectionOfferToBeSigned' | 'generateRenegotiationOfferToBeSigned' | 'generateSignInNonce' | 'generateSingleNftOfferToBeSigned' | 'generateTraitOfferToBeSigned' | 'hideAllOffers' | 'hideOffer' | 'hideOffers' | 'hideOrder' | 'hideRenegotiation' | 'linkWalletAddress' | 'markNotificationIdsAsRead' | 'markNotificationsAsRead' | 'publishBulkOrdersForNfts' | 'publishBuyNowPayLaterOrder' | 'publishDealOrder' | 'publishGallery' | 'publishOrderForCollection' | 'publishOrderForNft' | 'publishOrderForNftSet' | 'publishOrderForTrait' | 'publishSellAndRepayOrder' | 'recordGalleryVisit' | 'recordItemVisit' | 'refreshNftMetadata' | 'registerPushSubscription' | 'relistOpenSeaListings' | 'removeLinkedWallets' | 'removeListing' | 'removeListingsOfNftsFromUser' | 'removeRenegotiationRequest' | 'removeTopUpRequest' | 'resendVerificationEmail' | 'saveItemBrowseList' | 'saveRenegotiationSignedOffer' | 'saveSignedCollectionOffer' | 'saveSignedSingleNftOffer' | 'saveSignedTraitOffer' | 'setMinimumOfferAmount' | 'setNftWatchNotifications' | 'setNotificationPreferences' | 'setReferral' | 'setWatchNotifications' | 'showOffer' | 'showOrder' | 'showRenegotiation' | 'signInWithEthereum' | 'startTwitterVerification' | 'unfollowArtist' | 'unfollowCollection' | 'unfollowEdition' | 'unfollowNft' | 'unfollowWallet' | 'unpublishGallery' | 'unregisterPushSubscription' | 'updateGallery' | 'uploadProfilePicture' | 'verifyMailValidationCode' | MutationKeySpecifier)[];
10762
10881
  export type MutationFieldPolicy = {
10763
10882
  acceptLinkedWallets?: FieldPolicy<any> | FieldReadFunction<any>;
10764
10883
  addListingsOfNftsFromUser?: FieldPolicy<any> | FieldReadFunction<any>;
@@ -10806,6 +10925,8 @@ export type MutationFieldPolicy = {
10806
10925
  recordGalleryVisit?: FieldPolicy<any> | FieldReadFunction<any>;
10807
10926
  recordItemVisit?: FieldPolicy<any> | FieldReadFunction<any>;
10808
10927
  refreshNftMetadata?: FieldPolicy<any> | FieldReadFunction<any>;
10928
+ registerPushSubscription?: FieldPolicy<any> | FieldReadFunction<any>;
10929
+ relistOpenSeaListings?: FieldPolicy<any> | FieldReadFunction<any>;
10809
10930
  removeLinkedWallets?: FieldPolicy<any> | FieldReadFunction<any>;
10810
10931
  removeListing?: FieldPolicy<any> | FieldReadFunction<any>;
10811
10932
  removeListingsOfNftsFromUser?: FieldPolicy<any> | FieldReadFunction<any>;
@@ -10833,6 +10954,7 @@ export type MutationFieldPolicy = {
10833
10954
  unfollowNft?: FieldPolicy<any> | FieldReadFunction<any>;
10834
10955
  unfollowWallet?: FieldPolicy<any> | FieldReadFunction<any>;
10835
10956
  unpublishGallery?: FieldPolicy<any> | FieldReadFunction<any>;
10957
+ unregisterPushSubscription?: FieldPolicy<any> | FieldReadFunction<any>;
10836
10958
  updateGallery?: FieldPolicy<any> | FieldReadFunction<any>;
10837
10959
  uploadProfilePicture?: FieldPolicy<any> | FieldReadFunction<any>;
10838
10960
  verifyMailValidationCode?: FieldPolicy<any> | FieldReadFunction<any>;
@@ -11119,11 +11241,13 @@ export type OfferValidatorFieldPolicy = {
11119
11241
  offerId?: FieldPolicy<any> | FieldReadFunction<any>;
11120
11242
  validator?: FieldPolicy<any> | FieldReadFunction<any>;
11121
11243
  };
11122
- export type OpenSeaListingResultKeySpecifier = ('contractAddress' | 'error' | 'orderHash' | 'tokenId' | OpenSeaListingResultKeySpecifier)[];
11244
+ export type OpenSeaListingResultKeySpecifier = ('contractAddress' | 'error' | 'failureReason' | 'orderHash' | 'status' | 'tokenId' | OpenSeaListingResultKeySpecifier)[];
11123
11245
  export type OpenSeaListingResultFieldPolicy = {
11124
11246
  contractAddress?: FieldPolicy<any> | FieldReadFunction<any>;
11125
11247
  error?: FieldPolicy<any> | FieldReadFunction<any>;
11248
+ failureReason?: FieldPolicy<any> | FieldReadFunction<any>;
11126
11249
  orderHash?: FieldPolicy<any> | FieldReadFunction<any>;
11250
+ status?: FieldPolicy<any> | FieldReadFunction<any>;
11127
11251
  tokenId?: FieldPolicy<any> | FieldReadFunction<any>;
11128
11252
  };
11129
11253
  export type OpenSeaListingTermsKeySpecifier = ('collectionId' | 'creatorFees' | 'listingCurrency' | 'marketplaceFeeBps' | OpenSeaListingTermsKeySpecifier)[];
@@ -11280,7 +11404,7 @@ export type PortfolioValuationFieldPolicy = {
11280
11404
  value?: FieldPolicy<any> | FieldReadFunction<any>;
11281
11405
  valuedNfts?: FieldPolicy<any> | FieldReadFunction<any>;
11282
11406
  };
11283
- export type QueryKeySpecifier = ('collectionMarketDepth' | 'collectorsAlsoBought' | 'dealReadiness' | 'featuredListings' | 'galleries' | 'gallery' | 'geoAccess' | 'getAddressByName' | 'getAddressByUsername' | 'getArtist' | 'getArtistBySlug' | 'getBorrowingPower' | 'getCancelAllNftOrdersCalldata' | 'getCancelOrdersCalldata' | 'getCollectionActivitiesCount' | 'getCollectionBySlug' | 'getCollectionHighestBidMatchingTraits' | 'getCollectionLoansData' | 'getCollectionOfferSteps' | 'getCollectionsByContractAddress' | 'getCurrency' | 'getEditionBySlug' | 'getFeedId' | 'getFulfillManyOrdersCalldata' | 'getLendingMarketPulse' | 'getListingById' | 'getLoanActivitiesStatisticsByMonth' | 'getLoanById' | 'getMarketOverview' | 'getNftByContractAddressAndTokenId' | 'getNftBySlugAndTokenId' | 'getOrderCancelCalldata' | 'getOrderSaleCalldata' | 'getOutstandingDebt' | 'getOutstandingLoanStatistics' | 'getPointsFromReferrals' | 'getPortfolioLeaderboard' | 'getPortfolioValuation' | 'getPurchaseBundlerFromOrder' | 'getRealizedProfitsByDay' | 'getReferredWallets' | 'getSaleManyOrdersCalldata' | 'getSellAndRepayOrderSwapCalldata' | 'getSourcesStatistics' | 'getSourcesStatisticsByCollection' | 'getSwapQuote' | 'getSwapRate' | 'getTopLenders' | 'getUserPointActivities' | 'getUserPoints' | 'getWalletFollowStats' | 'getWalletHoldingsSummary' | 'getWalletLendingSummary' | 'getWalletTradingSummary' | 'globalSearch' | 'globalSearchV2' | 'isUsernameAvailable' | 'itemBrowseList' | 'itemLoanOfferBook' | 'listApprovalExposures' | 'listArtistCatalog' | 'listArtistFollows' | 'listArtistHolderItems' | 'listArtistHolderPopulation' | 'listArtistHolders' | 'listArtistHoldersV2' | 'listArtists' | 'listAuctions' | 'listBids' | 'listBlendLiens' | 'listCollectionFollows' | 'listCollectionHolders' | 'listCollectionTraitFilterOptions' | 'listCollectionTraitKeyOptions' | 'listCollectionTraitTypes' | 'listCollectionTraitValues' | 'listCollections' | 'listCollectionsWithListings' | 'listCollectionsWithLoans' | 'listCurrencies' | 'listDeals' | 'listEditionFollows' | 'listEditions' | 'listEditionsV2' | 'listEvents' | 'listGalleries' | 'listListings' | 'listListingsForSale' | 'listLoanActivities' | 'listLoanEvents' | 'listLoans' | 'listNames' | 'listNftDelegations' | 'listNftFollows' | 'listNftOffersAndRenegotiations' | 'listNftStrategyDeployments' | 'listNfts' | 'listNftsFromCollections' | 'listNftsFromUser' | 'listNotifications' | 'listOffers' | 'listOpenSeaListingTerms' | 'listOrders' | 'listOrdersV2' | 'listPlatformFees' | 'listPopularSearches' | 'listProfiles' | 'listRenegotiations' | 'listSales' | 'listSitemapNfts' | 'listSources' | 'listUsers' | 'listWalletFollowers' | 'listWalletFollowing' | 'loanDealCollections' | 'loanDeals' | 'me' | 'minimumOfferAmount' | 'mostViewedGalleries' | 'nftGalleries' | 'notificationPreferences' | 'previewItemLoanOfferCompetition' | 'previewNftSetCondition' | 'previewRenegotiationCompetition' | 'telegramConnection' | QueryKeySpecifier)[];
11407
+ export type QueryKeySpecifier = ('collectionMarketDepth' | 'collectorsAlsoBought' | 'dealReadiness' | 'featuredListings' | 'galleries' | 'gallery' | 'geoAccess' | 'getAddressByName' | 'getAddressByUsername' | 'getArtist' | 'getArtistBySlug' | 'getBorrowingPower' | 'getCancelAllNftOrdersCalldata' | 'getCancelOrdersCalldata' | 'getCollectionActivitiesCount' | 'getCollectionBySlug' | 'getCollectionHighestBidMatchingTraits' | 'getCollectionLoansData' | 'getCollectionOfferSteps' | 'getCollectionsByContractAddress' | 'getCurrency' | 'getEditionBySlug' | 'getFeedId' | 'getFulfillManyOrdersCalldata' | 'getLendingMarketPulse' | 'getListingById' | 'getLoanActivitiesStatisticsByMonth' | 'getLoanById' | 'getMarketOverview' | 'getNftByContractAddressAndTokenId' | 'getNftBySlugAndTokenId' | 'getOrderCancelCalldata' | 'getOrderSaleCalldata' | 'getOutstandingDebt' | 'getOutstandingLoanStatistics' | 'getPointsFromReferrals' | 'getPortfolioLeaderboard' | 'getPortfolioValuation' | 'getPurchaseBundlerFromOrder' | 'getRealizedProfitsByDay' | 'getReferredWallets' | 'getSaleManyOrdersCalldata' | 'getSellAndRepayOrderSwapCalldata' | 'getSourcesStatistics' | 'getSourcesStatisticsByCollection' | 'getSwapQuote' | 'getSwapRate' | 'getTopLenders' | 'getUserPointActivities' | 'getUserPoints' | 'getWalletFollowStats' | 'getWalletHoldingsSummary' | 'getWalletLendingSummary' | 'getWalletTradingSummary' | 'globalSearch' | 'globalSearchV2' | 'isUsernameAvailable' | 'itemBrowseList' | 'itemLoanOfferBook' | 'listApprovalExposures' | 'listArtistCatalog' | 'listArtistFollows' | 'listArtistHolderItems' | 'listArtistHolderPopulation' | 'listArtistHolders' | 'listArtistHoldersV2' | 'listArtists' | 'listAuctions' | 'listBids' | 'listBlendLiens' | 'listCollectionFollows' | 'listCollectionHolders' | 'listCollectionTraitFilterOptions' | 'listCollectionTraitKeyOptions' | 'listCollectionTraitTypes' | 'listCollectionTraitValues' | 'listCollections' | 'listCollectionsWithListings' | 'listCollectionsWithLoans' | 'listCurrencies' | 'listDeals' | 'listEditionFollows' | 'listEditions' | 'listEditionsV2' | 'listEvents' | 'listGalleries' | 'listListings' | 'listListingsForSale' | 'listLoanActivities' | 'listLoanEvents' | 'listLoans' | 'listNames' | 'listNftDelegations' | 'listNftFollows' | 'listNftOffersAndRenegotiations' | 'listNftStrategyDeployments' | 'listNfts' | 'listNftsFromCollections' | 'listNftsFromUser' | 'listNotifications' | 'listOffers' | 'listOpenSeaListingResults' | 'listOpenSeaListingTerms' | 'listOrders' | 'listOrdersV2' | 'listPlatformFees' | 'listPopularSearches' | 'listProfiles' | 'listRenegotiations' | 'listSales' | 'listSitemapNfts' | 'listSources' | 'listUsers' | 'listWalletFollowers' | 'listWalletFollowing' | 'loanDealCollections' | 'loanDeals' | 'me' | 'minimumOfferAmount' | 'mostViewedGalleries' | 'nftGalleries' | 'notificationPreferences' | 'previewItemLoanOfferCompetition' | 'previewNftSetCondition' | 'previewRenegotiationCompetition' | 'telegramConnection' | 'webPushPublicKey' | QueryKeySpecifier)[];
11284
11408
  export type QueryFieldPolicy = {
11285
11409
  collectionMarketDepth?: FieldPolicy<any> | FieldReadFunction<any>;
11286
11410
  collectorsAlsoBought?: FieldPolicy<any> | FieldReadFunction<any>;
@@ -11383,6 +11507,7 @@ export type QueryFieldPolicy = {
11383
11507
  listNftsFromUser?: FieldPolicy<any> | FieldReadFunction<any>;
11384
11508
  listNotifications?: FieldPolicy<any> | FieldReadFunction<any>;
11385
11509
  listOffers?: FieldPolicy<any> | FieldReadFunction<any>;
11510
+ listOpenSeaListingResults?: FieldPolicy<any> | FieldReadFunction<any>;
11386
11511
  listOpenSeaListingTerms?: FieldPolicy<any> | FieldReadFunction<any>;
11387
11512
  listOrders?: FieldPolicy<any> | FieldReadFunction<any>;
11388
11513
  listOrdersV2?: FieldPolicy<any> | FieldReadFunction<any>;
@@ -11407,6 +11532,7 @@ export type QueryFieldPolicy = {
11407
11532
  previewNftSetCondition?: FieldPolicy<any> | FieldReadFunction<any>;
11408
11533
  previewRenegotiationCompetition?: FieldPolicy<any> | FieldReadFunction<any>;
11409
11534
  telegramConnection?: FieldPolicy<any> | FieldReadFunction<any>;
11535
+ webPushPublicKey?: FieldPolicy<any> | FieldReadFunction<any>;
11410
11536
  };
11411
11537
  export type RealizedProfitDayKeySpecifier = ('currencyAddress' | 'day' | 'netProfit' | 'profit' | RealizedProfitDayKeySpecifier)[];
11412
11538
  export type RealizedProfitDayFieldPolicy = {
@@ -11415,6 +11541,10 @@ export type RealizedProfitDayFieldPolicy = {
11415
11541
  netProfit?: FieldPolicy<any> | FieldReadFunction<any>;
11416
11542
  profit?: FieldPolicy<any> | FieldReadFunction<any>;
11417
11543
  };
11544
+ export type RelistOpenSeaListingsResultKeySpecifier = ('openSeaListings' | RelistOpenSeaListingsResultKeySpecifier)[];
11545
+ export type RelistOpenSeaListingsResultFieldPolicy = {
11546
+ openSeaListings?: FieldPolicy<any> | FieldReadFunction<any>;
11547
+ };
11418
11548
  export type RenegotiationKeySpecifier = ('aprBps' | 'availablePrincipalAmount' | 'createdDate' | 'duration' | 'expirationTime' | 'fallbackOfferId' | 'feeAmount' | 'hidden' | 'id' | 'isAddNewTranche' | 'lenderAddress' | 'lenderName' | 'lenderProfilePictureUrl' | 'loan' | 'loanAddress' | 'loanId' | 'loanReferenceId' | 'nft' | 'offerHash' | 'principalAmount' | 'private' | 'renegotiationId' | 'repayment' | 'requiresLiquidation' | 'signature' | 'signerAddress' | 'status' | 'strictImprovement' | 'timestamp' | RenegotiationKeySpecifier)[];
11419
11549
  export type RenegotiationFieldPolicy = {
11420
11550
  aprBps?: FieldPolicy<any> | FieldReadFunction<any>;
@@ -11741,12 +11871,13 @@ export type SingleNFTOfferCollectionOfferSetOfferTraitOfferRenegotiationEdgeFiel
11741
11871
  cursor?: FieldPolicy<any> | FieldReadFunction<any>;
11742
11872
  node?: FieldPolicy<any> | FieldReadFunction<any>;
11743
11873
  };
11744
- export type SingleNFTOrderKeySpecifier = ('cancelsOffChain' | 'createdDate' | 'currency' | 'currencyAddress' | 'evmOrder' | 'executions' | 'expiration' | 'feeMetadata' | 'fees' | 'hidden' | 'id' | 'isAsk' | 'isPrivate' | 'loanDealOffer' | 'maker' | 'makerName' | 'makerProfilePictureUrl' | 'marketPlace' | 'marketPlaceAddress' | 'maxExecutions' | 'netAmount' | 'nft' | 'nftId' | 'nonce' | 'orderType' | 'originalId' | 'platformFees' | 'price' | 'signature' | 'startTime' | 'status' | 'stealth' | 'steppedNetAmount' | 'steppedPrice' | 'taker' | 'takerName' | 'takerProfilePictureUrl' | 'timestamp' | 'updatedDate' | SingleNFTOrderKeySpecifier)[];
11874
+ export type SingleNFTOrderKeySpecifier = ('cancelsOffChain' | 'createdDate' | 'currency' | 'currencyAddress' | 'endPrice' | 'evmOrder' | 'executions' | 'expiration' | 'feeMetadata' | 'fees' | 'hidden' | 'id' | 'isAsk' | 'isPrivate' | 'loanDealOffer' | 'maker' | 'makerName' | 'makerProfilePictureUrl' | 'marketPlace' | 'marketPlaceAddress' | 'maxExecutions' | 'netAmount' | 'nft' | 'nftId' | 'nonce' | 'orderType' | 'originalId' | 'platformFees' | 'price' | 'signature' | 'startTime' | 'status' | 'stealth' | 'steppedNetAmount' | 'steppedPrice' | 'taker' | 'takerName' | 'takerProfilePictureUrl' | 'timestamp' | 'updatedDate' | SingleNFTOrderKeySpecifier)[];
11745
11875
  export type SingleNFTOrderFieldPolicy = {
11746
11876
  cancelsOffChain?: FieldPolicy<any> | FieldReadFunction<any>;
11747
11877
  createdDate?: FieldPolicy<any> | FieldReadFunction<any>;
11748
11878
  currency?: FieldPolicy<any> | FieldReadFunction<any>;
11749
11879
  currencyAddress?: FieldPolicy<any> | FieldReadFunction<any>;
11880
+ endPrice?: FieldPolicy<any> | FieldReadFunction<any>;
11750
11881
  evmOrder?: FieldPolicy<any> | FieldReadFunction<any>;
11751
11882
  executions?: FieldPolicy<any> | FieldReadFunction<any>;
11752
11883
  expiration?: FieldPolicy<any> | FieldReadFunction<any>;
@@ -12016,10 +12147,11 @@ export type TopUpRequestedNotificationFieldPolicy = {
12016
12147
  topUp?: FieldPolicy<any> | FieldReadFunction<any>;
12017
12148
  user?: FieldPolicy<any> | FieldReadFunction<any>;
12018
12149
  };
12019
- export type TraitKeySpecifier = ('collectionId' | 'id' | 'isSynthetic' | 'key' | 'sampleAsset' | 'statistics' | 'traitType' | 'type' | 'value' | TraitKeySpecifier)[];
12150
+ export type TraitKeySpecifier = ('collectionId' | 'id' | 'isDerived' | 'isSynthetic' | 'key' | 'sampleAsset' | 'statistics' | 'traitType' | 'type' | 'value' | TraitKeySpecifier)[];
12020
12151
  export type TraitFieldPolicy = {
12021
12152
  collectionId?: FieldPolicy<any> | FieldReadFunction<any>;
12022
12153
  id?: FieldPolicy<any> | FieldReadFunction<any>;
12154
+ isDerived?: FieldPolicy<any> | FieldReadFunction<any>;
12023
12155
  isSynthetic?: FieldPolicy<any> | FieldReadFunction<any>;
12024
12156
  key?: FieldPolicy<any> | FieldReadFunction<any>;
12025
12157
  sampleAsset?: FieldPolicy<any> | FieldReadFunction<any>;
@@ -12176,10 +12308,11 @@ export type TraitTypeEdgeFieldPolicy = {
12176
12308
  cursor?: FieldPolicy<any> | FieldReadFunction<any>;
12177
12309
  node?: FieldPolicy<any> | FieldReadFunction<any>;
12178
12310
  };
12179
- export type TraitValueKeySpecifier = ('collectionId' | 'id' | 'isSynthetic' | 'key' | 'rarity' | 'sampleAsset' | 'sampleAssetId' | 'statistics' | 'value' | TraitValueKeySpecifier)[];
12311
+ export type TraitValueKeySpecifier = ('collectionId' | 'id' | 'isDerived' | 'isSynthetic' | 'key' | 'rarity' | 'sampleAsset' | 'sampleAssetId' | 'statistics' | 'value' | TraitValueKeySpecifier)[];
12180
12312
  export type TraitValueFieldPolicy = {
12181
12313
  collectionId?: FieldPolicy<any> | FieldReadFunction<any>;
12182
12314
  id?: FieldPolicy<any> | FieldReadFunction<any>;
12315
+ isDerived?: FieldPolicy<any> | FieldReadFunction<any>;
12183
12316
  isSynthetic?: FieldPolicy<any> | FieldReadFunction<any>;
12184
12317
  key?: FieldPolicy<any> | FieldReadFunction<any>;
12185
12318
  rarity?: FieldPolicy<any> | FieldReadFunction<any>;
@@ -13243,6 +13376,10 @@ export type StrictTypedTypePolicies = {
13243
13376
  keyFields?: false | RealizedProfitDayKeySpecifier | (() => undefined | RealizedProfitDayKeySpecifier);
13244
13377
  fields?: RealizedProfitDayFieldPolicy;
13245
13378
  };
13379
+ RelistOpenSeaListingsResult?: Omit<TypePolicy, 'fields' | 'keyFields'> & {
13380
+ keyFields?: false | RelistOpenSeaListingsResultKeySpecifier | (() => undefined | RelistOpenSeaListingsResultKeySpecifier);
13381
+ fields?: RelistOpenSeaListingsResultFieldPolicy;
13382
+ };
13246
13383
  Renegotiation?: Omit<TypePolicy, 'fields' | 'keyFields'> & {
13247
13384
  keyFields?: false | RenegotiationKeySpecifier | (() => undefined | RenegotiationKeySpecifier);
13248
13385
  fields?: RenegotiationFieldPolicy;
@@ -13566,6 +13703,7 @@ export declare const PublishOrderForNftDocument: DocumentNode;
13566
13703
  export declare const PublishOrderForNftSetDocument: DocumentNode;
13567
13704
  export declare const PublishOrderForTraitDocument: DocumentNode;
13568
13705
  export declare const PublishSellAndRepayOrderDocument: DocumentNode;
13706
+ export declare const RelistOpenSeaListingsDocument: DocumentNode;
13569
13707
  export declare const ShowOrderDocument: DocumentNode;
13570
13708
  export declare const GenerateRenegotiationOfferHashDocument: DocumentNode;
13571
13709
  export declare const HideRenegotiationOfferDocument: DocumentNode;
@@ -13587,6 +13725,7 @@ export declare const ListOffersDocument: DocumentNode;
13587
13725
  export declare const BuyWithLoanListingDocument: DocumentNode;
13588
13726
  export declare const GetCancelOrdersCalldataDocument: DocumentNode;
13589
13727
  export declare const GetSaleCalldataDocument: DocumentNode;
13728
+ export declare const ListOpenSeaListingResultsDocument: DocumentNode;
13590
13729
  export declare const ListOrdersDocument: DocumentNode;
13591
13730
  export declare const PreviewItemLoanOfferCompetitionDocument: DocumentNode;
13592
13731
  export declare const PreviewRenegotiationCompetitionDocument: DocumentNode;
@@ -13613,6 +13752,7 @@ export declare function getSdk<C, E>(requester: Requester<C, E>): {
13613
13752
  publishOrderForNftSet(variables: PublishOrderForNftSetMutationVariables, options?: C): Promise<PublishOrderForNftSetMutation>;
13614
13753
  publishOrderForTrait(variables: PublishOrderForTraitMutationVariables, options?: C): Promise<PublishOrderForTraitMutation>;
13615
13754
  publishSellAndRepayOrder(variables: PublishSellAndRepayOrderMutationVariables, options?: C): Promise<PublishSellAndRepayOrderMutation>;
13755
+ relistOpenSeaListings(variables: RelistOpenSeaListingsMutationVariables, options?: C): Promise<RelistOpenSeaListingsMutation>;
13616
13756
  showOrder(variables: ShowOrderMutationVariables, options?: C): Promise<ShowOrderMutation>;
13617
13757
  generateRenegotiationOfferHash(variables: GenerateRenegotiationOfferHashMutationVariables, options?: C): Promise<GenerateRenegotiationOfferHashMutation>;
13618
13758
  hideRenegotiationOffer(variables: HideRenegotiationOfferMutationVariables, options?: C): Promise<HideRenegotiationOfferMutation>;
@@ -13629,11 +13769,12 @@ export declare function getSdk<C, E>(requester: Requester<C, E>): {
13629
13769
  nftFlaggedByContractAddressAndTokenId(variables: NftFlaggedByContractAddressAndTokenIdQueryVariables, options?: C): Promise<NftFlaggedByContractAddressAndTokenIdQuery>;
13630
13770
  nftIdByContractAddressAndTokenId(variables: NftIdByContractAddressAndTokenIdQueryVariables, options?: C): Promise<NftIdByContractAddressAndTokenIdQuery>;
13631
13771
  nftIdBySlugTokenId(variables: NftIdBySlugTokenIdQueryVariables, options?: C): Promise<NftIdBySlugTokenIdQuery>;
13632
- ownedNfts(variables?: OwnedNftsQueryVariables, options?: C): Promise<OwnedNftsQuery>;
13772
+ ownedNfts(variables: OwnedNftsQueryVariables, options?: C): Promise<OwnedNftsQuery>;
13633
13773
  listOffers(variables: ListOffersQueryVariables, options?: C): Promise<ListOffersQuery>;
13634
13774
  buyWithLoanListing(variables: BuyWithLoanListingQueryVariables, options?: C): Promise<BuyWithLoanListingQuery>;
13635
13775
  getCancelOrdersCalldata(variables: GetCancelOrdersCalldataQueryVariables, options?: C): Promise<GetCancelOrdersCalldataQuery>;
13636
13776
  getSaleCalldata(variables: GetSaleCalldataQueryVariables, options?: C): Promise<GetSaleCalldataQuery>;
13777
+ listOpenSeaListingResults(variables: ListOpenSeaListingResultsQueryVariables, options?: C): Promise<ListOpenSeaListingResultsQuery>;
13637
13778
  listOrders(variables?: ListOrdersQueryVariables, options?: C): Promise<ListOrdersQuery>;
13638
13779
  previewItemLoanOfferCompetition(variables: PreviewItemLoanOfferCompetitionQueryVariables, options?: C): Promise<PreviewItemLoanOfferCompetitionQuery>;
13639
13780
  previewRenegotiationCompetition(variables: PreviewRenegotiationCompetitionQueryVariables, options?: C): Promise<PreviewRenegotiationCompetitionQuery>;
@@ -5,7 +5,7 @@ import { Auction, AuctionV8 } from './blockchain';
5
5
  import { Api, OrderInput, Props as ApiProps } from './clients/api';
6
6
  import { Contracts, GondiPublicClient, Wallet } from './clients/contracts';
7
7
  import { CrossCurrencyRenegotiationInput, CrossCurrencyRenegotiationQuote } from './clients/contracts/CrossCurrencyRenegotiation';
8
- import { DealInput, GenerateCollectionOfferHashMutation, LoanOfferPublicationInput, MarketplaceEnum, NftOrderInput, OfferValidatorInput, SingleNftOrderInput, SingleNftSignedOfferInput, TokenStandardType } from './generated/graphql';
8
+ import { DealInput, GenerateCollectionOfferHashMutation, LoanOfferPublicationInput, MarketplaceEnum, NftOrderInput, OfferValidatorInput, OwnedNftsQueryVariables, SingleNftOrderInput, SingleNftSignedOfferInput, TokenStandardType } from './generated/graphql';
9
9
  import * as model from './model';
10
10
  import { NftStandard } from './model';
11
11
  import { BuyWithLoanInput, BuyWithLoanQuote } from './utils/buyWithLoan';
@@ -339,6 +339,7 @@ export declare class Gondi {
339
339
  contractAddress: import("./generated/graphql").Scalars["Address"];
340
340
  counter?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
341
341
  currencyAddress: import("./generated/graphql").Scalars["Address"];
342
+ endPrice?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
342
343
  expirationTime: import("./generated/graphql").Scalars["BigInt"];
343
344
  fees?: import("./generated/graphql").InputMaybe<Array<import("./generated/graphql").OrderFee>>;
344
345
  isAsk?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["Boolean"]>;
@@ -418,6 +419,7 @@ export declare class Gondi {
418
419
  contractAddress: import("./generated/graphql").Scalars["Address"];
419
420
  counter?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
420
421
  currencyAddress: import("./generated/graphql").Scalars["Address"];
422
+ endPrice?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
421
423
  expirationTime: import("./generated/graphql").Scalars["BigInt"];
422
424
  fees?: import("./generated/graphql").InputMaybe<Array<import("./generated/graphql").OrderFee>>;
423
425
  isAsk?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["Boolean"]>;
@@ -497,6 +499,7 @@ export declare class Gondi {
497
499
  contractAddress: import("./generated/graphql").Scalars["Address"];
498
500
  counter?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
499
501
  currencyAddress: import("./generated/graphql").Scalars["Address"];
502
+ endPrice?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
500
503
  expirationTime: import("./generated/graphql").Scalars["BigInt"];
501
504
  fees?: import("./generated/graphql").InputMaybe<Array<import("./generated/graphql").OrderFee>>;
502
505
  isAsk?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["Boolean"]>;
@@ -576,6 +579,7 @@ export declare class Gondi {
576
579
  contractAddress: import("./generated/graphql").Scalars["Address"];
577
580
  counter?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
578
581
  currencyAddress: import("./generated/graphql").Scalars["Address"];
582
+ endPrice?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
579
583
  expirationTime: import("./generated/graphql").Scalars["BigInt"];
580
584
  fees?: import("./generated/graphql").InputMaybe<Array<import("./generated/graphql").OrderFee>>;
581
585
  isAsk?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["Boolean"]>;
@@ -655,6 +659,7 @@ export declare class Gondi {
655
659
  contractAddress: import("./generated/graphql").Scalars["Address"];
656
660
  counter?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
657
661
  currencyAddress: import("./generated/graphql").Scalars["Address"];
662
+ endPrice?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
658
663
  expirationTime: import("./generated/graphql").Scalars["BigInt"];
659
664
  fees?: import("./generated/graphql").InputMaybe<Array<import("./generated/graphql").OrderFee>>;
660
665
  isAsk?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["Boolean"]>;
@@ -755,9 +760,12 @@ export declare class Gondi {
755
760
  * Publishes `orders` like `makeOrders` and lists each one on OpenSea too, under the same
756
761
  * signature. Public asks on Ethereum only; the owner must have approved OpenSea's conduit for
757
762
  * each collection. A refusal never touches the GONDI ask: `openSeaListings` holds one entry per
758
- * ask, with its `orderHash` once OpenSea took it, or the `error` saying why it did not. An
759
- * order's `openSeaPrice`, at least its `price`, prices its OpenSea listing on its own, so the
760
- * seller can receive there what they do on GONDI after OpenSea's higher fees.
763
+ * ask with its `status`. `PENDING` means the listing waits to be posted to OpenSea: follow it
764
+ * with `openSeaListingResults`. `POSTED` carries its `orderHash`, and `FAILED` the `error`
765
+ * saying why OpenSea did not take it, with a `failureReason` when the caller can act on it:
766
+ * `relistOrdersOnOpenSea` signs a failed listing again. An order's `openSeaPrice`, at least its
767
+ * `price`, prices its OpenSea listing on its own, so the seller can receive there what they do
768
+ * on GONDI after OpenSea's higher fees.
761
769
  */
762
770
  makeOrdersOnOpenSea(orders: SingleNftOrderInput[]): Promise<{
763
771
  __typename?: "BulkNFTOrdersResult";
@@ -789,8 +797,38 @@ export declare class Gondi {
789
797
  tokenId: bigint;
790
798
  orderHash?: Hash | null;
791
799
  error?: string | null;
800
+ failureReason?: import("./generated/graphql").OpenSeaListingFailureReason | null;
801
+ status: import("./generated/graphql").OpenSeaListingStatus;
792
802
  }>;
793
803
  }>;
804
+ /**
805
+ * Signs again the OpenSea listings of the wallet's asks `orderIds` that failed, for example
806
+ * because OpenSea's fees for the collection changed after `makeOrdersOnOpenSea` signed them
807
+ * (`failureReason: TERMS_CHANGED`). The GONDI asks are not touched: same orders, same ids. Each
808
+ * listing is rebuilt on OpenSea's current terms at the OpenSea price it was first signed at,
809
+ * and one signature covers them all.
810
+ *
811
+ * A listing that cannot be signed again, because its ask ended or OpenSea no longer lists the
812
+ * collection, is left out of the signature and returned as `FAILED` with its `error`; when none
813
+ * can be, the wallet is not asked to sign.
814
+ *
815
+ * @param orderIds The ids of the GONDI asks whose OpenSea listing is `FAILED`, 1 to 50.
816
+ * @returns One entry per order: `PENDING` once its newly signed listing waits to be posted to
817
+ * OpenSea, or `FAILED` with the `error`. Follow the pending ones with `openSeaListingResults`.
818
+ * @throws {RelistOnOpenSeaError} When the API refuses the whole call: an order has no failed
819
+ * OpenSea listing (`NOT_FAILED`), or the signature did not match the current listings, usually
820
+ * because the terms changed again while signing (`STALE_SIGNATURE`: call the method again, a
821
+ * bounded number of times). Any other failure, such as the wallet rejecting the signature, is
822
+ * thrown as it is.
823
+ */
824
+ relistOrdersOnOpenSea(orderIds: number[]): Promise<model.OpenSeaListingResult[]>;
825
+ /**
826
+ * What became of the OpenSea listing of each of the wallet's asks among `orderIds`, as signed
827
+ * by `makeOrdersOnOpenSea` or `relistOrdersOnOpenSea`: `PENDING` until it is `POSTED` to
828
+ * OpenSea or `FAILED`, then with its `error` and, when the caller can act on it, its
829
+ * `failureReason`. An order with no OpenSea listing has no entry.
830
+ */
831
+ openSeaListingResults(orderIds: number[]): Promise<model.OpenSeaListingResult[]>;
794
832
  /** Publishes the batch, signing the typed data the API answers with when it asks for it. */
795
833
  private publishBulkOrders;
796
834
  makeDeal(dealInput: DealInput): Promise<{
@@ -3062,7 +3100,16 @@ export declare class Gondi {
3062
3100
  usdcStep: bigint;
3063
3101
  wethStep: bigint;
3064
3102
  }>;
3065
- ownedNfts(args: Parameters<Api['ownedNfts']>[0]): Promise<{
3103
+ /**
3104
+ * Lists the NFTs the wallet holds, one page at a time.
3105
+ *
3106
+ * @param args.after - The `pageInfo.endCursor` of the previous page; omit it for the first page.
3107
+ * @param args.includeInLoans - Also list the NFTs the wallet borrowed against in an active loan. Defaults to false.
3108
+ * @param args.includeInStash - Also list the NFTs the wallet holds in an old ERC721 wrapper stash. Defaults to false.
3109
+ * @param args.standards - The token standards to list. Defaults to ERC721 only.
3110
+ * @returns The page's NFTs, newest NFT id first, and its `pageInfo`.
3111
+ */
3112
+ ownedNfts({ after, includeInLoans, includeInStash, standards, }?: OptionalNullable<Omit<OwnedNftsQueryVariables, 'owner'>, 'includeInLoans' | 'includeInStash' | 'standards'>): Promise<{
3066
3113
  ownedNfts: {
3067
3114
  __typename?: "NFT";
3068
3115
  id: string;