Skip to content

Commit b00a4dc

Browse files
ryanioclaude
andcommitted
Release v0.13.0
Origin-SHA: 88bfe14ab42a420816c35f1a097feb0f046d77bd ### Minor Changes - 7d51b1f: Sync OpenAPI spec. - Adds the drop publish flow operations: `build_drop_publish_transaction`, `build_drop_unpublish_transaction`, `upload_drop_metadata_to_ipfs`, `get_drop_metadata_ipfs_progress` and `upload_drop_collection_manifest`, with the `DropTransactionResponse`, `DropMetadataUploadResponse` and `DropMetadataUploadProgressResponse` schemas, and adds their routes to the `write:drops` scope. - `SelfMintDropItemResponse` now carries the transaction fields plus `token_id`. - Fields the API documents as nullable are now typed nullable: the spec is OpenAPI 3.1 and os2-core now emits `type: [T, "null"]` or `anyOf: [ref, null]` for them. Code that reads these fields may need a null check. This is why the bump is minor. - `label` is now required on drop stage edits (`SaveDropEditsStageRequest`). A stage without one was accepted before but could never be published. - The shared 400/403/404/409 responses document the `V1ErrorWrapper` body, `NftSearchResponse` gains the optional `best_listing` field, and field descriptions are updated. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 43062fd commit b00a4dc

7 files changed

Lines changed: 1683 additions & 623 deletions

File tree

‎CHANGELOG.md‎

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

3+
## 0.13.0
4+
5+
### Minor Changes
6+
7+
- 7d51b1f: Sync OpenAPI spec.
8+
9+
- Adds the drop publish flow operations: `build_drop_publish_transaction`, `build_drop_unpublish_transaction`, `upload_drop_metadata_to_ipfs`, `get_drop_metadata_ipfs_progress` and `upload_drop_collection_manifest`, with the `DropTransactionResponse`, `DropMetadataUploadResponse` and `DropMetadataUploadProgressResponse` schemas, and adds their routes to the `write:drops` scope.
10+
- `SelfMintDropItemResponse` now carries the transaction fields plus `token_id`.
11+
- Fields the API documents as nullable are now typed nullable: the spec is OpenAPI 3.1 and os2-core now emits `type: [T, "null"]` or `anyOf: [ref, null]` for them. Code that reads these fields may need a null check. This is why the bump is minor.
12+
- `label` is now required on drop stage edits (`SaveDropEditsStageRequest`). A stage without one was accepted before but could never be published.
13+
- The shared 400/403/404/409 responses document the `V1ErrorWrapper` body, `NftSearchResponse` gains the optional `best_listing` field, and field descriptions are updated.
14+
315
## 0.12.1
416

517
### Patch Changes

‎opensea-api.json‎

Lines changed: 971 additions & 310 deletions
Large diffs are not rendered by default.

‎package-lock.json‎

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

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@opensea/api-types",
3-
"version": "0.12.1",
3+
"version": "0.13.0",
44
"description": "Auto-generated TypeScript types from the OpenSea API OpenAPI spec",
55
"license": "MIT",
66
"author": "OpenSea Developers",

‎src/auth-scopes-generated.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export const AUTH_SCOPES = [
8787
displayName: "Creator Studio drop management",
8888
description: "Manage Creator Studio drops for authenticated account",
8989
group: "write",
90-
endpoints: ["/api/v2/drops/{slug}","/api/v2/drops/{slug}/allowlist","/api/v2/drops/{slug}/allowlist/validate","/api/v2/drops/{slug}/prereveal-item","/api/v2/drops/{slug}/items","/api/v2/drops/{slug}/items/media","/api/v2/drops/{slug}/items/media/save","/api/v2/drops/{slug}/items/{token_id}"],
90+
endpoints: ["/api/v2/drops/{slug}","/api/v2/drops/{slug}/allowlist","/api/v2/drops/{slug}/allowlist/validate","/api/v2/drops/{slug}/prereveal-item","/api/v2/drops/{slug}/items","/api/v2/drops/{slug}/items/media","/api/v2/drops/{slug}/items/media/save","/api/v2/drops/{slug}/items/manifest","/api/v2/drops/{slug}/items/{token_id}","/api/v2/drops/{slug}/metadata/ipfs","/api/v2/drops/{slug}/metadata/ipfs/{workflow_execution_id}","/api/v2/drops/{slug}/publish","/api/v2/drops/{slug}/unpublish"],
9191
mcpTools: ["manage_drops"],
9292
},
9393
{

‎src/generated.ts‎

Lines changed: 660 additions & 309 deletions
Large diffs are not rendered by default.

‎src/schemas-generated.ts‎

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -815,6 +815,24 @@ export type DropItemAttributeResponse = Schemas["DropItemAttributeResponse"]
815815
*/
816816
export type DropItemResponse = Schemas["DropItemResponse"]
817817

818+
/**
819+
* Wire shape, snake_case as the API sends and accepts it. `@opensea/sdk`
820+
* camelizes responses and snakeizes request bodies, so annotate an
821+
* SDK-facing value with `Camelize<DropMetadataUploadProgressResponse>` (exported by
822+
* `@opensea/sdk`) or the matching `@opensea/sdk` type rather than with
823+
* `DropMetadataUploadProgressResponse`.
824+
*/
825+
export type DropMetadataUploadProgressResponse = Schemas["DropMetadataUploadProgressResponse"]
826+
827+
/**
828+
* Wire shape, snake_case as the API sends and accepts it. `@opensea/sdk`
829+
* camelizes responses and snakeizes request bodies, so annotate an
830+
* SDK-facing value with `Camelize<DropMetadataUploadResponse>` (exported by
831+
* `@opensea/sdk`) or the matching `@opensea/sdk` type rather than with
832+
* `DropMetadataUploadResponse`.
833+
*/
834+
export type DropMetadataUploadResponse = Schemas["DropMetadataUploadResponse"]
835+
818836
/**
819837
* Wire shape, snake_case as the API sends and accepts it. `@opensea/sdk`
820838
* camelizes responses and snakeizes request bodies, so annotate an
@@ -869,6 +887,15 @@ export type DropStageEligibilityResponse = Schemas["DropStageEligibilityResponse
869887
*/
870888
export type DropStageResponse = Schemas["DropStageResponse"]
871889

890+
/**
891+
* Wire shape, snake_case as the API sends and accepts it. `@opensea/sdk`
892+
* camelizes responses and snakeizes request bodies, so annotate an
893+
* SDK-facing value with `Camelize<DropTransactionResponse>` (exported by
894+
* `@opensea/sdk`) or the matching `@opensea/sdk` type rather than with
895+
* `DropTransactionResponse`.
896+
*/
897+
export type DropTransactionResponse = Schemas["DropTransactionResponse"]
898+
872899
/**
873900
* Wire shape, snake_case as the API sends and accepts it. `@opensea/sdk`
874901
* camelizes responses and snakeizes request bodies, so annotate an
@@ -1364,6 +1391,15 @@ export type NftResponse = Schemas["NftResponse"]
13641391
*/
13651392
export type NftSalePointResponse = Schemas["NftSalePointResponse"]
13661393

1394+
/**
1395+
* Wire shape, snake_case as the API sends and accepts it. `@opensea/sdk`
1396+
* camelizes responses and snakeizes request bodies, so annotate an
1397+
* SDK-facing value with `Camelize<NftSearchBestListingResponse>` (exported by
1398+
* `@opensea/sdk`) or the matching `@opensea/sdk` type rather than with
1399+
* `NftSearchBestListingResponse`.
1400+
*/
1401+
export type NftSearchBestListingResponse = Schemas["NftSearchBestListingResponse"]
1402+
13671403
/**
13681404
* Wire shape, snake_case as the API sends and accepts it. `@opensea/sdk`
13691405
* camelizes responses and snakeizes request bodies, so annotate an

0 commit comments

Comments
 (0)