diff --git a/openapi/access.yaml b/openapi/access.yaml index 441fbaae4..e60edecab 100644 --- a/openapi/access.yaml +++ b/openapi/access.yaml @@ -933,11 +933,18 @@ components: - Executed - Sealed - Expired + BlockStatus: + type: string + description: This value indicates the status of a block. + enum: + - BLOCK_UNKNOWN + - BLOCK_FINALIZED + - BLOCK_SEALED Block: type: object required: - header - - _expandable + - block_status properties: header: $ref: '#/components/schemas/BlockHeader' @@ -955,6 +962,8 @@ components: format: uri _links: $ref: '#/components/schemas/Links' + block_status: + $ref: '#/components/schemas/BlockStatus' BlockHeader: type: object required: diff --git a/openapi/go-client-generated/README.md b/openapi/go-client-generated/README.md index e2bbbf779..50b96a91d 100644 --- a/openapi/go-client-generated/README.md +++ b/openapi/go-client-generated/README.md @@ -51,6 +51,7 @@ Class | Method | HTTP request | Description - [BlockHeight](docs/BlockHeight.md) - [BlockPayload](docs/BlockPayload.md) - [BlockSeal](docs/BlockSeal.md) + - [BlockStatus](docs/BlockStatus.md) - [Chunk](docs/Chunk.md) - [Collection](docs/Collection.md) - [CollectionExpandable](docs/CollectionExpandable.md) diff --git a/openapi/go-client-generated/api/swagger.yaml b/openapi/go-client-generated/api/swagger.yaml index 3f4abf614..8cad874e7 100644 --- a/openapi/go-client-generated/api/swagger.yaml +++ b/openapi/go-client-generated/api/swagger.yaml @@ -1575,9 +1575,16 @@ components: - Executed - Sealed - Expired + BlockStatus: + type: string + description: This value indicates the status of a block. + enum: + - BLOCK_UNKNOWN + - BLOCK_FINALIZED + - BLOCK_SEALED Block: required: - - _expandable + - block_status - header type: object properties: @@ -1591,7 +1598,10 @@ components: $ref: '#/components/schemas/Block__expandable' _links: $ref: '#/components/schemas/Links' + block_status: + $ref: '#/components/schemas/BlockStatus' example: + block_status: BLOCK_UNKNOWN payload: collection_guarantees: - collection_id: null diff --git a/openapi/go-client-generated/docs/Block.md b/openapi/go-client-generated/docs/Block.md index d683a5ef6..df6f38706 100644 --- a/openapi/go-client-generated/docs/Block.md +++ b/openapi/go-client-generated/docs/Block.md @@ -6,8 +6,9 @@ Name | Type | Description | Notes **Header** | [***BlockHeader**](BlockHeader.md) | | [default to null] **Payload** | [***BlockPayload**](BlockPayload.md) | | [optional] [default to null] **ExecutionResult** | [***ExecutionResult**](ExecutionResult.md) | | [optional] [default to null] -**Expandable** | [***BlockExpandable**](Block__expandable.md) | | [default to null] +**Expandable** | [***BlockExpandable**](Block__expandable.md) | | [optional] [default to null] **Links** | [***Links**](Links.md) | | [optional] [default to null] +**BlockStatus** | [***BlockStatus**](BlockStatus.md) | | [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/openapi/go-client-generated/docs/BlockStatus.md b/openapi/go-client-generated/docs/BlockStatus.md new file mode 100644 index 000000000..a9902ef39 --- /dev/null +++ b/openapi/go-client-generated/docs/BlockStatus.md @@ -0,0 +1,8 @@ +# BlockStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/openapi/go-client-generated/model_block.go b/openapi/go-client-generated/model_block.go index 860f60013..158b7b6b1 100644 --- a/openapi/go-client-generated/model_block.go +++ b/openapi/go-client-generated/model_block.go @@ -12,6 +12,7 @@ type Block struct { Header *BlockHeader `json:"header"` Payload *BlockPayload `json:"payload,omitempty"` ExecutionResult *ExecutionResult `json:"execution_result,omitempty"` - Expandable *BlockExpandable `json:"_expandable"` + Expandable *BlockExpandable `json:"_expandable,omitempty"` Links *Links `json:"_links,omitempty"` + BlockStatus *BlockStatus `json:"block_status"` } diff --git a/openapi/go-client-generated/model_block_status.go b/openapi/go-client-generated/model_block_status.go new file mode 100644 index 000000000..018c8348b --- /dev/null +++ b/openapi/go-client-generated/model_block_status.go @@ -0,0 +1,18 @@ +/* + * Access API + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: 1.0.0 + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger +// BlockStatus : This value indicates the status of a block. +type BlockStatus string + +// List of BlockStatus +const ( + UNKNOWN_BlockStatus BlockStatus = "BLOCK_UNKNOWN" + FINALIZED_BlockStatus BlockStatus = "BLOCK_FINALIZED" + SEALED_BlockStatus BlockStatus = "BLOCK_SEALED" +)