Skip to content

Commit f261b79

Browse files
committed
Release v0.8.6
Origin-SHA: 49f6b1ccdea412dd451b3ecdb71446338fc13e0e
1 parent 8a94c9c commit f261b79

7 files changed

Lines changed: 174 additions & 3 deletions

File tree

CHANGELOG.md

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

3+
## 0.8.6
4+
5+
### Patch Changes
6+
7+
- 954d547: Add typed account agent status fields and helpers to mark or clear registered
8+
agent wallets from the SDK and CLI.
9+
310
## 0.8.5
411

512
### Patch Changes

opensea-api.json

Lines changed: 94 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,78 @@
260260
"x-opensea-auth-scopes": ["write:drops"]
261261
}
262262
},
263+
"/api/v2/accounts/wallets/{wallet}/agent": {
264+
"put": {
265+
"tags": ["Account Endpoints"],
266+
"summary": "Mark a registered wallet as an agent wallet",
267+
"operationId": "mark_wallet_as_agent",
268+
"parameters": [
269+
{
270+
"name": "wallet",
271+
"in": "path",
272+
"required": true,
273+
"schema": {
274+
"type": "string"
275+
}
276+
}
277+
],
278+
"responses": {
279+
"200": {
280+
"description": "OK",
281+
"content": {
282+
"application/json": {
283+
"schema": {
284+
"$ref": "#/components/schemas/WalletAgentStatusResponse"
285+
}
286+
}
287+
}
288+
}
289+
},
290+
"security": [
291+
{
292+
"ApiKeyAuth": [],
293+
"WalletAuth": ["write:wallets"]
294+
}
295+
],
296+
"x-opensea-auth-required": true,
297+
"x-opensea-auth-scopes": ["write:wallets"]
298+
},
299+
"delete": {
300+
"tags": ["Account Endpoints"],
301+
"summary": "Remove a registered wallet's agent designation",
302+
"operationId": "remove_wallet_agent_designation",
303+
"parameters": [
304+
{
305+
"name": "wallet",
306+
"in": "path",
307+
"required": true,
308+
"schema": {
309+
"type": "string"
310+
}
311+
}
312+
],
313+
"responses": {
314+
"200": {
315+
"description": "OK",
316+
"content": {
317+
"application/json": {
318+
"schema": {
319+
"$ref": "#/components/schemas/WalletAgentStatusResponse"
320+
}
321+
}
322+
}
323+
}
324+
},
325+
"security": [
326+
{
327+
"ApiKeyAuth": [],
328+
"WalletAuth": ["write:wallets"]
329+
}
330+
],
331+
"x-opensea-auth-required": true,
332+
"x-opensea-auth-scopes": ["write:wallets"]
333+
}
334+
},
263335
"/api/v2/watchlist": {
264336
"post": {
265337
"tags": ["Account Endpoints"],
@@ -8668,6 +8740,18 @@
86688740
},
86698741
"required": ["media_token", "name"]
86708742
},
8743+
"WalletAgentStatusResponse": {
8744+
"type": "object",
8745+
"properties": {
8746+
"address": {
8747+
"type": "string"
8748+
},
8749+
"is_agent": {
8750+
"type": "boolean"
8751+
}
8752+
},
8753+
"required": ["address", "is_agent"]
8754+
},
86718755
"WatchlistRequest": {
86728756
"type": "object",
86738757
"description": "Request body for managing a watchlist entry",
@@ -16385,6 +16469,10 @@
1638516469
"is_verified": {
1638616470
"type": "boolean"
1638716471
},
16472+
"is_agent": {
16473+
"type": "boolean",
16474+
"description": "Whether the account owner has designated at least one registered wallet as an agent wallet. This is self-declared and is not OpenSea verification."
16475+
},
1638816476
"follower_count": {
1638916477
"type": "integer",
1639016478
"format": "int64"
@@ -16424,6 +16512,7 @@
1642416512
"bio",
1642516513
"follower_count",
1642616514
"following_count",
16515+
"is_agent",
1642716516
"is_verified",
1642816517
"joined_date",
1642916518
"social_media_accounts"
@@ -17530,7 +17619,11 @@
1753017619
"/api/v2/profile/shelves",
1753117620
"/api/v2/profile/shelves/{shelf_id}"
1753217621
],
17533-
["/api/v2/accounts/wallets/siwx", "/api/v2/accounts/wallets/{wallet}"]
17622+
[
17623+
"/api/v2/accounts/wallets/siwx",
17624+
"/api/v2/accounts/wallets/{wallet}",
17625+
"/api/v2/accounts/wallets/{wallet}/agent"
17626+
]
1753417627
],
1753517628
"x-enum-mcp-tools": [
1753617629
["check_drop_eligibility"],

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.8.5",
3+
"version": "0.8.6",
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
@@ -103,7 +103,7 @@ export const AUTH_SCOPES = [
103103
displayName: "Manage linked wallets",
104104
description: "Link and unlink wallets for the authenticated account",
105105
group: "write",
106-
endpoints: ["/api/v2/accounts/wallets/siwx","/api/v2/accounts/wallets/{wallet}"],
106+
endpoints: ["/api/v2/accounts/wallets/siwx","/api/v2/accounts/wallets/{wallet}","/api/v2/accounts/wallets/{wallet}/agent"],
107107
mcpTools: ["manage_wallets"],
108108
},
109109
] as const satisfies readonly {

src/generated.ts

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,24 @@ export interface paths {
2828
patch: operations["update_drop_item"];
2929
trace?: never;
3030
};
31+
"/api/v2/accounts/wallets/{wallet}/agent": {
32+
parameters: {
33+
query?: never;
34+
header?: never;
35+
path?: never;
36+
cookie?: never;
37+
};
38+
get?: never;
39+
/** Mark a registered wallet as an agent wallet */
40+
put: operations["mark_wallet_as_agent"];
41+
post?: never;
42+
/** Remove a registered wallet's agent designation */
43+
delete: operations["remove_wallet_agent_designation"];
44+
options?: never;
45+
head?: never;
46+
patch?: never;
47+
trace?: never;
48+
};
3149
"/api/v2/watchlist": {
3250
parameters: {
3351
query?: never;
@@ -2447,6 +2465,10 @@ export interface components {
24472465
/** @description Item traits */
24482466
traits?: components["schemas"]["SelfMintDropItemTraitRequest"][];
24492467
};
2468+
WalletAgentStatusResponse: {
2469+
address: string;
2470+
is_agent: boolean;
2471+
};
24502472
/** @description Request body for managing a watchlist entry */
24512473
WatchlistRequest: {
24522474
/**
@@ -5807,6 +5829,8 @@ export interface components {
58075829
display_name?: string;
58085830
ens_name?: string;
58095831
is_verified: boolean;
5832+
/** @description Whether the account owner has designated at least one registered wallet as an agent wallet. This is self-declared and is not OpenSea verification. */
5833+
is_agent: boolean;
58105834
/** Format: int64 */
58115835
follower_count: number;
58125836
/** Format: int64 */
@@ -6541,6 +6565,50 @@ export interface operations {
65416565
500: components["responses"]["InternalError"];
65426566
};
65436567
};
6568+
mark_wallet_as_agent: {
6569+
parameters: {
6570+
query?: never;
6571+
header?: never;
6572+
path: {
6573+
wallet: string;
6574+
};
6575+
cookie?: never;
6576+
};
6577+
requestBody?: never;
6578+
responses: {
6579+
/** @description OK */
6580+
200: {
6581+
headers: {
6582+
[name: string]: unknown;
6583+
};
6584+
content: {
6585+
"application/json": components["schemas"]["WalletAgentStatusResponse"];
6586+
};
6587+
};
6588+
};
6589+
};
6590+
remove_wallet_agent_designation: {
6591+
parameters: {
6592+
query?: never;
6593+
header?: never;
6594+
path: {
6595+
wallet: string;
6596+
};
6597+
cookie?: never;
6598+
};
6599+
requestBody?: never;
6600+
responses: {
6601+
/** @description OK */
6602+
200: {
6603+
headers: {
6604+
[name: string]: unknown;
6605+
};
6606+
content: {
6607+
"application/json": components["schemas"]["WalletAgentStatusResponse"];
6608+
};
6609+
};
6610+
};
6611+
};
65446612
add_watchlist_entry: {
65456613
parameters: {
65466614
query?: never;

src/schemas-generated.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,7 @@ export type ValidateMetadataAttribute = Schemas["ValidateMetadataAttribute"]
322322
export type ValidateMetadataDetails = Schemas["ValidateMetadataDetails"]
323323
export type ValidateMetadataResponse = Schemas["ValidateMetadataResponse"]
324324
export type VideoMediaRequest = Schemas["VideoMediaRequest"]
325+
export type WalletAgentStatusResponse = Schemas["WalletAgentStatusResponse"]
325326
export type WalletLinkResponse = Schemas["WalletLinkResponse"]
326327
export type WalletPnlResponse = Schemas["WalletPnlResponse"]
327328
export type WalletUnlinkResponse = Schemas["WalletUnlinkResponse"]

test/smoke.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import type {
2626
Schemas,
2727
TokenActivityStatsResponse,
2828
TokenActivityWindowStatsResponse,
29+
WalletAgentStatusResponse,
2930
} from "../src/index.js"
3031
import { AUTH_SCOPES } from "../src/index.js"
3132

@@ -67,6 +68,7 @@ describe("@opensea/api-types smoke tests", () => {
6768
type _contract = Contract
6869
type _tokenActivityStats = TokenActivityStatsResponse
6970
type _tokenActivityWindowStats = TokenActivityWindowStatsResponse
71+
type _walletAgentStatus = WalletAgentStatusResponse
7072
expect(true).toBe(true)
7173
})
7274

0 commit comments

Comments
 (0)