You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AGENTS.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ When reviewing changes to this package, verify:
43
43
44
44
2.**Dual provider support**: Both `OpenSeaSDK` (ethers) and `OpenSeaViemSDK` (viem) must work. Changes to `BaseOpenSeaSDK` affect both. If adding provider-specific logic, ensure both adapters in `src/provider/` are updated.
45
45
46
-
3.**`@opensea/api-types` dependency**: The SDK imports types from the workspace `@opensea/api-types` package. If the OpenAPI spec changes, rebuild api-types first (`pnpm --filter @opensea/api-types run build`) before testing the SDK.
46
+
3.**`@opensea/api-types` dependency**: The SDK imports types from the workspace `@opensea/api-types` package. If the OpenAPI spec changes, rebuild api-types first (`pnpm --filter @opensea/api-types run build`) before testing the SDK.**Never hand-roll API request/response types in `src/api/types.ts`** — always import from `@opensea/api-types` (or re-export through `src/api/types.ts`) using the canonical OpenAPI schema names. The `pnpm check-api-paths` CI guardrail will fail the build if `src/api/apiPaths.ts` references a URL that isn't in `packages/api-types/opensea-api.json`. See the top-level [AGENTS.md → "Adding a new OpenSea API endpoint"](../../AGENTS.md#adding-a-new-opensea-api-endpoint-to-the-sdk-or-cli) for the full flow.
47
47
48
48
4.**Seaport integration**: Order creation and fulfillment flows use `@opensea/seaport-js`. Changes to order parameters, consideration items, or fulfillment logic must be tested against the Seaport contract behavior.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+29Lines changed: 29 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,34 @@
1
1
# @opensea/sdk
2
2
3
+
## 10.3.1
4
+
5
+
### Patch Changes
6
+
7
+
- 961f2c5: fix(api): consume cross-chain fulfillment types from `@opensea/api-types`
8
+
9
+
The cross-chain fulfillment types added in the previous release were hand-rolled in `packages/sdk/src/api/types.ts` and `packages/cli/src/types/api.ts` rather than generated from the OpenAPI spec. This release pulls them from `@opensea/api-types` (the source of truth) so future spec changes flow through automatically.
10
+
11
+
**`@opensea/api-types`**: Adds named exports for `CrossChainFulfillmentRequest`, `CrossChainFulfillmentResponse`, `CrossChainPaymentToken`, `FulfillerObject`, and `ListingObject` schemas (regenerated from the production OpenAPI spec).
12
+
13
+
**`@opensea/sdk`**_(type rename — minimal-impact since the prior release shipped <1 day ago)_:
Adds a new blocking CI check (`pnpm check-api-paths`) that fails when an `/api/v2/...` URL referenced in SDK or CLI source is not present in `packages/api-types/opensea-api.json`. AGENTS docs updated to make the api-types-first flow explicit for new endpoints.
0 commit comments