Skip to content

Commit f3adcfb

Browse files
committed
Release v11.4.9
Origin-SHA: 52ef447c3567b0003ad94b3598e72066fe9cfa09
1 parent 2624c5e commit f3adcfb

10 files changed

Lines changed: 530 additions & 322 deletions

File tree

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# @opensea/sdk
22

3+
## 11.4.9
4+
5+
### Patch Changes
6+
7+
- 06e96e1: Use the current SIWE session, scoped-token creation, token-exchange, session refresh, and session-only revocation endpoints in the SDK and CLI.
8+
- feb1446: Sync OpenAPI spec: add `/api/v2/saved-tools` (GET/POST/DELETE) beta endpoints and `read:tools`/`write:tools` auth scopes, new saved-tool schemas, and additive token fields (`is_verified`, `holders_count`, `created_at`, `genesis_date`, `description_source`, `subreddit_identifier`). Adds `OPENSEA_SCOPES.READ_TOOLS`/`WRITE_TOOLS` to the SDK.
9+
- Updated dependencies [feb1446]
10+
- @opensea/api-types@0.8.2
11+
312
## 11.4.8
413

514
### Patch Changes

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,23 @@ Happy seafaring!
4141

4242
### Wallet-authenticated API helpers
4343

44+
For a server-side EVM signer, `OpenSeaAuth` runs the current SIWE session,
45+
scoped-token creation, and token-exchange flow. It re-exchanges the scoped token
46+
when the JWT expires and uses the wallet session for revocation.
47+
48+
```typescript
49+
import { OpenSeaAuth } from "@opensea/sdk"
50+
51+
const auth = new OpenSeaAuth()
52+
const token = await auth.authenticate(signer, {
53+
scopes: ["read:favorites", "write:orders"],
54+
})
55+
const freshToken = await auth.getValidToken()
56+
await auth.revoke(freshToken.accessToken)
57+
```
58+
4459
Pass an exchanged scoped JWT as `authToken`, then use the generated
45-
`walletAuth` helpers. Server-side allowlist and scope enforcement still apply.
60+
`walletAuth` helpers. Server-side scope enforcement still applies.
4661

4762
```typescript
4863
import { OpenSeaAPI } from "@opensea/sdk"

package-lock.json

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@opensea/sdk",
3-
"version": "11.4.8",
3+
"version": "11.4.9",
44
"description": "TypeScript SDK for the OpenSea marketplace helps developers build new experiences using NFTs, tokens, and our marketplace data",
55
"license": "MIT",
66
"author": "OpenSea Developers",
@@ -45,7 +45,7 @@
4545
"types": "lib/index.d.ts",
4646
"dependencies": {
4747
"@noble/hashes": "^2.0.1",
48-
"@opensea/api-types": "^0.8.1",
48+
"@opensea/api-types": "^0.8.2",
4949
"@opensea/seaport-js": "^4.1.1",
5050
"ethers": "^6.16.0"
5151
},

0 commit comments

Comments
 (0)