@opensea/sdk 12.10.0 → 12.10.1

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.
@@ -24,28 +24,28 @@ export declare class WalletAuthAPI {
24
24
  collection: string;
25
25
  contract: string;
26
26
  tokenStandard: string;
27
- name?: string | undefined;
28
- description?: string | undefined;
29
- imageUrl?: string | undefined;
30
- displayImageUrl?: string | undefined;
31
- displayAnimationUrl?: string | undefined;
32
- metadataUrl?: string | undefined;
27
+ name?: string | null | undefined;
28
+ description?: string | null | undefined;
29
+ imageUrl?: string | null | undefined;
30
+ displayImageUrl?: string | null | undefined;
31
+ displayAnimationUrl?: string | null | undefined;
32
+ metadataUrl?: string | null | undefined;
33
33
  openseaUrl: string;
34
34
  updatedAt: string;
35
35
  isDisabled: boolean;
36
36
  isNsfw: boolean;
37
- originalImageUrl?: string | undefined;
38
- originalAnimationUrl?: string | undefined;
37
+ originalImageUrl?: string | null | undefined;
38
+ originalAnimationUrl?: string | null | undefined;
39
39
  traits: {
40
40
  traitType: string;
41
- displayType?: string | undefined;
42
- maxValue?: string | undefined;
41
+ displayType?: string | null | undefined;
42
+ maxValue?: string | null | undefined;
43
43
  value: unknown;
44
44
  }[];
45
- estimatedValueUsd?: number | undefined;
46
- decimals?: number | undefined;
45
+ estimatedValueUsd?: number | null | undefined;
46
+ decimals?: number | null | undefined;
47
47
  }[];
48
- next?: string | undefined;
48
+ next?: string | null | undefined;
49
49
  }>;
50
50
  getTokenWatchlist(address: string): Promise<{
51
51
  tokens: {
@@ -108,44 +108,44 @@ export declare class WalletAuthAPI {
108
108
  getAccountFollowing(addressOrUsername: string, query?: WalletAuthQuery<"get_account_following">): Promise<{
109
109
  profiles: {
110
110
  address: string;
111
- username?: string | undefined;
112
- displayName?: string | undefined;
113
- profileImageUrl?: string | undefined;
111
+ username?: string | null | undefined;
112
+ displayName?: string | null | undefined;
113
+ profileImageUrl?: string | null | undefined;
114
114
  isVerified: boolean;
115
115
  followerCount: number;
116
116
  nftPfp?: {
117
117
  contractAddress: string;
118
118
  tokenId: string;
119
119
  chain: string;
120
- collectionSlug?: string | undefined;
120
+ collectionSlug?: string | null | undefined;
121
121
  imageUrl: string;
122
122
  isVerified: boolean;
123
- } | undefined;
123
+ } | null | undefined;
124
124
  isFollowing: boolean;
125
125
  isWatching: boolean;
126
126
  }[];
127
- next?: string | undefined;
127
+ next?: string | null | undefined;
128
128
  }>;
129
129
  getAccountFollowers(addressOrUsername: string, query?: WalletAuthQuery<"get_account_followers">): Promise<{
130
130
  profiles: {
131
131
  address: string;
132
- username?: string | undefined;
133
- displayName?: string | undefined;
134
- profileImageUrl?: string | undefined;
132
+ username?: string | null | undefined;
133
+ displayName?: string | null | undefined;
134
+ profileImageUrl?: string | null | undefined;
135
135
  isVerified: boolean;
136
136
  followerCount: number;
137
137
  nftPfp?: {
138
138
  contractAddress: string;
139
139
  tokenId: string;
140
140
  chain: string;
141
- collectionSlug?: string | undefined;
141
+ collectionSlug?: string | null | undefined;
142
142
  imageUrl: string;
143
143
  isVerified: boolean;
144
- } | undefined;
144
+ } | null | undefined;
145
145
  isFollowing: boolean;
146
146
  isWatching: boolean;
147
147
  }[];
148
- next?: string | undefined;
148
+ next?: string | null | undefined;
149
149
  }>;
150
150
  followAccount(addressOrUsername: string): Promise<{
151
151
  status: string;
@@ -190,10 +190,10 @@ export declare class WalletAuthAPI {
190
190
  }>;
191
191
  savePrerevealDropItem(slug: string, body: WalletAuthRequest<"save_prereveal_drop_item">): Promise<{
192
192
  name: string;
193
- description?: string | undefined;
193
+ description?: string | null | undefined;
194
194
  imageUrl: string;
195
195
  mediaToken: string;
196
- mediaType?: string | undefined;
196
+ mediaType?: string | null | undefined;
197
197
  }>;
198
198
  saveSelfMintDropItem(slug: string, body: WalletAuthRequest<"save_self_mint_drop_item">): Promise<{
199
199
  to: string;
@@ -213,8 +213,8 @@ export declare class WalletAuthAPI {
213
213
  }>;
214
214
  updateDropItem(slug: string, tokenId: string | number, body: WalletAuthRequest<"update_drop_item">): Promise<{
215
215
  tokenId: string;
216
- name?: string | undefined;
217
- description?: string | undefined;
216
+ name?: string | null | undefined;
217
+ description?: string | null | undefined;
218
218
  imageUrl: string;
219
219
  attributes: {
220
220
  traitType: string;
@@ -222,8 +222,8 @@ export declare class WalletAuthAPI {
222
222
  }[];
223
223
  mediaToken: string;
224
224
  contractStandard: string;
225
- externalUrl?: string | undefined;
226
- animationUrl?: string | undefined;
225
+ externalUrl?: string | null | undefined;
226
+ animationUrl?: string | null | undefined;
227
227
  chain: string;
228
228
  contractAddress: string;
229
229
  }>;
@@ -339,9 +339,9 @@ export declare class WalletAuthAPI {
339
339
  * so the loss is invisible to the caller.
340
340
  */
341
341
  updateProfileSettings(body: WalletAuthRequest<"update_profile_settings">): Promise<{
342
- displayName?: string | undefined;
343
- bio?: string | undefined;
344
- externalUrl?: string | undefined;
342
+ displayName?: string | null | undefined;
343
+ bio?: string | null | undefined;
344
+ externalUrl?: string | null | undefined;
345
345
  }>;
346
346
  claimProfileUsername(body: WalletAuthRequest<"claim_profile_username">): Promise<{
347
347
  success: boolean;
@@ -369,7 +369,7 @@ export declare class WalletAuthAPI {
369
369
  contractAddress: string;
370
370
  tokenId: string;
371
371
  chain: string;
372
- collectionSlug?: string | undefined;
372
+ collectionSlug?: string | null | undefined;
373
373
  imageUrl: string;
374
374
  isVerified: boolean;
375
375
  }>;
@@ -378,21 +378,21 @@ export declare class WalletAuthAPI {
378
378
  }>;
379
379
  createProfileShelf(body: WalletAuthRequest<"create_profile_shelf">): Promise<{
380
380
  id: string;
381
- accountAddress?: string | undefined;
381
+ accountAddress?: string | null | undefined;
382
382
  title: string;
383
- description?: string | undefined;
383
+ description?: string | null | undefined;
384
384
  displayOrder: number;
385
385
  items: {
386
386
  chain: string;
387
387
  contractAddress: string;
388
388
  tokenId: string;
389
389
  }[];
390
- icon?: string | undefined;
391
- view?: string | undefined;
392
- singleItemShelfSide?: string | undefined;
390
+ icon?: string | null | undefined;
391
+ view?: string | null | undefined;
392
+ singleItemShelfSide?: string | null | undefined;
393
393
  shelfItemMetadata: {
394
394
  [x: string]: {
395
- description?: string | undefined;
395
+ description?: string | null | undefined;
396
396
  };
397
397
  };
398
398
  }>;
@@ -401,21 +401,21 @@ export declare class WalletAuthAPI {
401
401
  }>;
402
402
  updateProfileShelf(shelfId: string, body: WalletAuthRequest<"update_profile_shelf">): Promise<{
403
403
  id: string;
404
- accountAddress?: string | undefined;
404
+ accountAddress?: string | null | undefined;
405
405
  title: string;
406
- description?: string | undefined;
406
+ description?: string | null | undefined;
407
407
  displayOrder: number;
408
408
  items: {
409
409
  chain: string;
410
410
  contractAddress: string;
411
411
  tokenId: string;
412
412
  }[];
413
- icon?: string | undefined;
414
- view?: string | undefined;
415
- singleItemShelfSide?: string | undefined;
413
+ icon?: string | null | undefined;
414
+ view?: string | null | undefined;
415
+ singleItemShelfSide?: string | null | undefined;
416
416
  shelfItemMetadata: {
417
417
  [x: string]: {
418
- description?: string | undefined;
418
+ description?: string | null | undefined;
419
419
  };
420
420
  };
421
421
  }>;
@@ -477,9 +477,9 @@ export declare class WalletAuthAPI {
477
477
  agentAccountId: string;
478
478
  ownerAccountId: string;
479
479
  status: string;
480
- awaitingConfirmationFrom?: string | undefined;
480
+ awaitingConfirmationFrom?: string | null | undefined;
481
481
  createdAt: number;
482
- confirmedAt?: number | undefined;
482
+ confirmedAt?: number | null | undefined;
483
483
  };
484
484
  created: boolean;
485
485
  }>;
@@ -492,9 +492,9 @@ export declare class WalletAuthAPI {
492
492
  agentAccountId: string;
493
493
  ownerAccountId: string;
494
494
  status: string;
495
- awaitingConfirmationFrom?: string | undefined;
495
+ awaitingConfirmationFrom?: string | null | undefined;
496
496
  createdAt: number;
497
- confirmedAt?: number | undefined;
497
+ confirmedAt?: number | null | undefined;
498
498
  };
499
499
  created: boolean;
500
500
  }>;
@@ -524,9 +524,9 @@ export declare class WalletAuthAPI {
524
524
  agentAccountId: string;
525
525
  ownerAccountId: string;
526
526
  status: string;
527
- awaitingConfirmationFrom?: string | undefined;
527
+ awaitingConfirmationFrom?: string | null | undefined;
528
528
  createdAt: number;
529
- confirmedAt?: number | undefined;
529
+ confirmedAt?: number | null | undefined;
530
530
  }[];
531
531
  }>;
532
532
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opensea/sdk",
3
- "version": "12.10.0",
3
+ "version": "12.10.1",
4
4
  "description": "TypeScript SDK for the OpenSea marketplace helps developers build new experiences using NFTs, tokens, and our marketplace data",
5
5
  "license": "MIT",
6
6
  "author": "OpenSea Developers",
@@ -47,7 +47,7 @@
47
47
  "types": "lib/index.d.ts",
48
48
  "dependencies": {
49
49
  "@noble/hashes": "^2.0.1",
50
- "@opensea/api-types": "^0.13.0",
50
+ "@opensea/api-types": "^0.14.0",
51
51
  "@opensea/seaport-js": "^4.2.0",
52
52
  "ethers": "^6.16.0"
53
53
  },