Skip to content

Commit 02655fe

Browse files
Release v0.6.0
Origin-SHA: 12ec70653ffc71110241b58761c01985d9abd5b7 Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1 parent bc0d673 commit 02655fe

9 files changed

Lines changed: 1482 additions & 28 deletions

AGENTS.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ pnpm run test # Run smoke tests with Vitest
2020
| `scripts/update-spec.mjs` | Fetches the latest spec; falls back to existing local file on network errors |
2121
| `src/generated.ts` | Auto-generated types from `openapi-typescript` — do not edit manually |
2222
| `src/schemas-generated.ts` | Auto-generated named re-exports of every `components.schemas.*` entry — do not edit manually |
23-
| `src/index.ts` | Hand-written. Re-exports `schemas-generated.ts`, plus response envelopes and operation helpers |
23+
| `src/auth-scopes-generated.ts` | Auto-generated runtime scope metadata (`AUTH_SCOPES`, `AuthScopeInfo`) derived from the spec's `AuthScope` schema — do not edit manually |
24+
| `src/index.ts` | Hand-written. Re-exports `schemas-generated.ts` and `auth-scopes-generated.ts`, plus response envelopes and operation helpers |
2425
| `scripts/generate-schema-exports.mjs` | Emits `schemas-generated.ts` from the spec; runs as part of `pnpm run generate` |
26+
| `scripts/generate-auth-scopes.mjs` | Emits `auth-scopes-generated.ts` from the spec's `AuthScope` schema; runs as part of `pnpm run generate` |
2527
| `scripts/check-consumer-imports.mjs` | CI guard — verifies every name workspace packages import from `@opensea/api-types` is in the built `dist/index.d.ts` |
2628
| `test/smoke.test.ts` | Smoke test verifying the generated types compile and export correctly |
2729

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,25 @@
11
# @opensea/api-types
22

3+
## 0.6.0
4+
5+
### Minor Changes
6+
7+
- c460fc1: Sync OpenAPI spec: add wallet trading P&L endpoints and schemas —
8+
`GET /api/v2/account/{address}/pnl` (`WalletPnlResponse`),
9+
`/pnl/closed-positions` (`ClosedPositionsResponse`, `ClosedPositionResponse`),
10+
and `/pnl/token-transfers` (`PositionTokenTransfersResponse`,
11+
`PositionTokenTransferResponse`). Also adds `ListingPriceInput` and removes the
12+
`@Hidden` favorites path from the published spec.
13+
- ef89be8: Sync OpenAPI spec: adds the `AuthScope` schema (now exported as a named type)
14+
with per-scope `x-enum-descriptions` / `x-enum-display-names` metadata. Adds
15+
the package's first runtime export, `AUTH_SCOPES` (with `AuthScopeInfo` type)
16+
— scope names, display names, and descriptions generated from the spec at
17+
codegen time.
18+
19+
### Patch Changes
20+
21+
- e59df7f: Sync OpenAPI spec: add tool activity endpoint, `robinhood` chain, `source`/`collection` search filters, `calldata_suffix` on fulfillment, SIWX wallet-link endpoint (`POST /api/v2/accounts/wallets/siwx` with `LinkWalletSiwxRequest`/`WalletLinkResponse`), re-published `GET /api/v2/account/{address}/favorites`, and the new `write:wallets` auth scope (also added to the SDK's `OPENSEA_SCOPES`)
22+
323
## 0.5.0
424

525
### Minor Changes

0 commit comments

Comments
 (0)