Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AUTOMATED] Update files from 0xsequence/metadata #494

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
184 changes: 171 additions & 13 deletions docs/pages/api/metadata/rpc.gen.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# sequence-metadata v0.4.0 44263e09bb6f2ffe8597ad6f629f286040f3099f
# sequence-metadata v0.4.0 08dbdadc405873e296fe0b9e29179cf34b5c247f
# --
# Code generated by webrpc-gen@v0.21.1 with openapi generator; DO NOT EDIT
#
Expand Down Expand Up @@ -637,6 +637,24 @@ components:
- ERC20
- ERC721
- ERC1155
Source:
type: string
description: Represented as uint8 on the server side
enum:
- UNKNOWN
- FETCHER
- FETCHER_OPENSEA_API
- FETCHER_ENS_API
- FETCHER_ON_CHAIN_ERC20_INTERFACE
- FETCHER_ON_CHAIN_TOKEN_URI
- FETCHER_ON_CHAIN_CONTRACT_URI
- TOKEN_DIRECTORY
- TOKEN_DIRECTORY_PUBLIC_TOKEN_LIST
- TOKEN_DIRECTORY_3RD_PARTY
- TOKEN_DIRECTORY_SEQUENCE_GITHUB
- TOKEN_DIRECTORY_SEQUENCE_BUILDER
- SEQUENCE_BUILDER
- SEQUENCE_BUILDER_COLLECTIONS
ResourceStatus:
type: string
description: Represented as uint32 on the server side
Expand Down Expand Up @@ -743,6 +761,7 @@ components:
- chainId
- address
- type
- source
- metadata
- contentHash
- deployed
Expand All @@ -757,6 +776,8 @@ components:
type: string
type:
$ref: '#/components/schemas/ContractType'
source:
$ref: '#/components/schemas/Source'
metadata:
type: object
description: 'map<string,any>'
Expand All @@ -780,6 +801,7 @@ components:
type: object
required:
- key
- source
- chainId
- contractAddress
- tokenId
Expand All @@ -788,6 +810,8 @@ components:
properties:
key:
type: string
source:
$ref: '#/components/schemas/Source'
chainId:
type: number
contractAddress:
Expand All @@ -814,6 +838,7 @@ components:
required:
- chainId
- address
- source
- name
- type
- symbol
Expand All @@ -830,6 +855,8 @@ components:
type: number
address:
type: string
source:
type: string
name:
type: string
type:
Expand Down Expand Up @@ -900,12 +927,15 @@ components:
type: object
required:
- tokenId
- source
- name
- attributes
- status
properties:
tokenId:
type: string
source:
type: string
name:
type: string
description:
Expand Down Expand Up @@ -1205,6 +1235,16 @@ components:
type: string
hash:
type: string
Metadata_GetTask_Request:
type: object
properties:
taskId:
type: number
Metadata_GetTaskStatus_Request:
type: object
properties:
taskId:
type: number
Metadata_RefreshTokenMetadata_Request:
type: object
properties:
Expand Down Expand Up @@ -1403,6 +1443,16 @@ components:
type: boolean
page:
$ref: '#/components/schemas/Page'
Metadata_GetTask_Response:
type: object
properties:
task:
$ref: '#/components/schemas/Task'
Metadata_GetTaskStatus_Response:
type: object
properties:
status:
$ref: '#/components/schemas/TaskStatus'
Metadata_RefreshTokenMetadata_Response:
type: object
properties:
Expand All @@ -1418,13 +1468,13 @@ components:
Metadata_RefreshContractTokens_Response:
type: object
properties:
task:
$ref: '#/components/schemas/Task'
taskID:
type: number
Metadata_RefreshAllContractTokens_Response:
type: object
properties:
task:
$ref: '#/components/schemas/Task'
taskID:
type: number
retryAfter:
type: number
Metadata_GetTokenMetadata_Response:
Expand All @@ -1435,8 +1485,8 @@ components:
description: '[]TokenMetadata'
items:
$ref: '#/components/schemas/TokenMetadata'
task:
$ref: '#/components/schemas/Task'
taskID:
type: number
Metadata_GetTokenMetadataBatch_Response:
type: object
properties:
Expand All @@ -1448,8 +1498,8 @@ components:
description: '[]TokenMetadata'
items:
$ref: '#/components/schemas/TokenMetadata'
task:
$ref: '#/components/schemas/Task'
taskID:
type: number
Metadata_SearchTokenMetadata_Response:
type: object
properties:
Expand Down Expand Up @@ -1483,8 +1533,8 @@ components:
properties:
contractInfo:
$ref: '#/components/schemas/ContractInfo'
task:
$ref: '#/components/schemas/Task'
taskID:
type: number
Metadata_GetContractInfoBatch_Response:
type: object
properties:
Expand All @@ -1493,8 +1543,8 @@ components:
description: 'map<string,ContractInfo>'
additionalProperties:
$ref: '#/components/schemas/ContractInfo'
task:
$ref: '#/components/schemas/Task'
taskID:
type: number
Metadata_SearchContractInfo_Response:
type: object
properties:
Expand Down Expand Up @@ -1872,6 +1922,114 @@ components:
status:
type: boolean
paths:
/rpc/Metadata/GetTask:
post:
summary: GetTask
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/Metadata_GetTask_Request'
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/Metadata_GetTask_Response'
'4XX':
description: Client error
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/ErrorWebrpcEndpoint'
- $ref: '#/components/schemas/ErrorWebrpcRequestFailed'
- $ref: '#/components/schemas/ErrorWebrpcBadRoute'
- $ref: '#/components/schemas/ErrorWebrpcBadMethod'
- $ref: '#/components/schemas/ErrorWebrpcBadRequest'
- $ref: '#/components/schemas/ErrorWebrpcClientDisconnected'
- $ref: '#/components/schemas/ErrorWebrpcStreamLost'
- $ref: '#/components/schemas/ErrorUnauthorized'
- $ref: '#/components/schemas/ErrorPermissionDenied'
- $ref: '#/components/schemas/ErrorSessionExpired'
- $ref: '#/components/schemas/ErrorMethodNotFound'
- $ref: '#/components/schemas/ErrorRequestConflict'
- $ref: '#/components/schemas/ErrorGeoblocked'
- $ref: '#/components/schemas/ErrorTimeout'
- $ref: '#/components/schemas/ErrorInvalidArgument'
- $ref: '#/components/schemas/ErrorRequiredArgument'
- $ref: '#/components/schemas/ErrorQueryFailed'
- $ref: '#/components/schemas/ErrorValidationFailed'
- $ref: '#/components/schemas/ErrorRateLimited'
- $ref: '#/components/schemas/ErrorNotFound'
- $ref: '#/components/schemas/ErrorProjectNotFound'
- $ref: '#/components/schemas/ErrorChainNotFound'
- $ref: '#/components/schemas/ErrorTokenDirectoryDisabled'
'5XX':
description: Server error
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/ErrorWebrpcBadResponse'
- $ref: '#/components/schemas/ErrorWebrpcServerPanic'
- $ref: '#/components/schemas/ErrorWebrpcInternalError'
- $ref: '#/components/schemas/ErrorFail'
/rpc/Metadata/GetTaskStatus:
post:
summary: GetTaskStatus
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/Metadata_GetTaskStatus_Request'
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/Metadata_GetTaskStatus_Response'
'4XX':
description: Client error
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/ErrorWebrpcEndpoint'
- $ref: '#/components/schemas/ErrorWebrpcRequestFailed'
- $ref: '#/components/schemas/ErrorWebrpcBadRoute'
- $ref: '#/components/schemas/ErrorWebrpcBadMethod'
- $ref: '#/components/schemas/ErrorWebrpcBadRequest'
- $ref: '#/components/schemas/ErrorWebrpcClientDisconnected'
- $ref: '#/components/schemas/ErrorWebrpcStreamLost'
- $ref: '#/components/schemas/ErrorUnauthorized'
- $ref: '#/components/schemas/ErrorPermissionDenied'
- $ref: '#/components/schemas/ErrorSessionExpired'
- $ref: '#/components/schemas/ErrorMethodNotFound'
- $ref: '#/components/schemas/ErrorRequestConflict'
- $ref: '#/components/schemas/ErrorGeoblocked'
- $ref: '#/components/schemas/ErrorTimeout'
- $ref: '#/components/schemas/ErrorInvalidArgument'
- $ref: '#/components/schemas/ErrorRequiredArgument'
- $ref: '#/components/schemas/ErrorQueryFailed'
- $ref: '#/components/schemas/ErrorValidationFailed'
- $ref: '#/components/schemas/ErrorRateLimited'
- $ref: '#/components/schemas/ErrorNotFound'
- $ref: '#/components/schemas/ErrorProjectNotFound'
- $ref: '#/components/schemas/ErrorChainNotFound'
- $ref: '#/components/schemas/ErrorTokenDirectoryDisabled'
'5XX':
description: Server error
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/ErrorWebrpcBadResponse'
- $ref: '#/components/schemas/ErrorWebrpcServerPanic'
- $ref: '#/components/schemas/ErrorWebrpcInternalError'
- $ref: '#/components/schemas/ErrorFail'
/rpc/Metadata/RefreshTokenMetadata:
post:
summary: RefreshTokenMetadata
Expand Down