diff --git a/openapi/access.yaml b/openapi/access.yaml index 586436eb8..8a8473df4 100644 --- a/openapi/access.yaml +++ b/openapi/access.yaml @@ -1082,6 +1082,8 @@ components: type: array items: $ref: '#/components/schemas/TransactionSignature' + transaction_type: + $ref: '#/components/schemas/TransactionType' result: $ref: '#/components/schemas/TransactionResult' _expandable: @@ -1149,6 +1151,8 @@ components: computation_used: type: string format: uint64 + transaction_type: + $ref: '#/components/schemas/TransactionType' events: type: array items: @@ -1157,9 +1161,17 @@ components: $ref: '#/components/schemas/Metadata' _links: $ref: '#/components/schemas/Links' + TransactionType: + type: string + description: This value indicates whether the transaction is a standard transaction, a scheduled transaction, or a system transaction. Unknown is returned for transactions that are not yet executed or could not be determined. + enum: + - standard + - scheduled + - system + - unknown TransactionExecution: type: string - description: This value indicates whether the transaction execution succeded or not, this value should be checked when determining transaction success. + description: This value indicates whether the transaction execution succeded or not, this value should be checked when determining transaction success. enum: - Pending - Success diff --git a/openapi/experimental/go-client-generated/README.md b/openapi/experimental/go-client-generated/README.md index 8978e2305..c168fdeec 100644 --- a/openapi/experimental/go-client-generated/README.md +++ b/openapi/experimental/go-client-generated/README.md @@ -45,6 +45,7 @@ Class | Method | HTTP request | Description - [TransactionResult](docs/TransactionResult.md) - [TransactionSignature](docs/TransactionSignature.md) - [TransactionStatus](docs/TransactionStatus.md) + - [TransactionType](docs/TransactionType.md) - [TransferRole](docs/TransferRole.md) ## Documentation For Authorization diff --git a/openapi/experimental/go-client-generated/api/swagger.yaml b/openapi/experimental/go-client-generated/api/swagger.yaml index 87c3096b6..479c97ff3 100644 --- a/openapi/experimental/go-client-generated/api/swagger.yaml +++ b/openapi/experimental/go-client-generated/api/swagger.yaml @@ -403,6 +403,7 @@ components: transaction: _links: null reference_block_id: null + transaction_type: standard payer: payer script: script result: @@ -412,6 +413,7 @@ components: status_code: 0 _links: _self: _self + transaction_type: null block_id: null computation_used: computation_used events: @@ -465,6 +467,7 @@ components: transaction: _links: null reference_block_id: null + transaction_type: standard payer: payer script: script result: @@ -474,6 +477,7 @@ components: status_code: 0 _links: _self: _self + transaction_type: null block_id: null computation_used: computation_used events: @@ -569,6 +573,7 @@ components: transaction: _links: null reference_block_id: null + transaction_type: standard payer: payer script: script result: @@ -578,6 +583,7 @@ components: status_code: 0 _links: _self: _self + transaction_type: null block_id: null computation_used: computation_used events: @@ -751,6 +757,8 @@ components: type: array items: $ref: "#/components/schemas/TransactionSignature" + transaction_type: + $ref: "#/components/schemas/TransactionType" result: $ref: "#/components/schemas/TransactionResult" _expandable: @@ -760,6 +768,7 @@ components: example: _links: null reference_block_id: null + transaction_type: standard payer: payer script: script result: @@ -769,6 +778,7 @@ components: status_code: 0 _links: _self: _self + transaction_type: null block_id: null computation_used: computation_used events: @@ -834,6 +844,8 @@ components: computation_used: type: string format: uint64 + transaction_type: + $ref: "#/components/schemas/TransactionType" events: type: array items: @@ -847,6 +859,7 @@ components: status_code: 0 _links: _self: _self + transaction_type: null block_id: null computation_used: computation_used events: @@ -861,6 +874,16 @@ components: type: type event_index: event_index status: Pending + TransactionType: + type: string + description: "This value indicates whether the transaction is a standard transaction,\ + \ a scheduled transaction, or a system transaction. Unknown is returned for\ + \ transactions that are not yet executed or could not be determined." + enum: + - standard + - scheduled + - system + - unknown TransactionExecution: type: string description: "This value indicates whether the transaction execution succeeded\ @@ -930,6 +953,7 @@ components: status_code: 0 _links: _self: _self + transaction_type: null block_id: null computation_used: computation_used events: @@ -951,6 +975,7 @@ components: transaction: _links: null reference_block_id: null + transaction_type: standard payer: payer script: script result: @@ -960,6 +985,7 @@ components: status_code: 0 _links: _self: _self + transaction_type: null block_id: null computation_used: computation_used events: @@ -1028,6 +1054,7 @@ components: status_code: 0 _links: _self: _self + transaction_type: null block_id: null computation_used: computation_used events: @@ -1049,6 +1076,7 @@ components: transaction: _links: null reference_block_id: null + transaction_type: standard payer: payer script: script result: @@ -1058,6 +1086,7 @@ components: status_code: 0 _links: _self: _self + transaction_type: null block_id: null computation_used: computation_used events: @@ -1139,6 +1168,7 @@ components: status_code: 0 _links: _self: _self + transaction_type: null block_id: null computation_used: computation_used events: @@ -1161,6 +1191,7 @@ components: transaction: _links: null reference_block_id: null + transaction_type: standard payer: payer script: script result: @@ -1170,6 +1201,7 @@ components: status_code: 0 _links: _self: _self + transaction_type: null block_id: null computation_used: computation_used events: @@ -1237,6 +1269,7 @@ components: status_code: 0 _links: _self: _self + transaction_type: null block_id: null computation_used: computation_used events: @@ -1259,6 +1292,7 @@ components: transaction: _links: null reference_block_id: null + transaction_type: standard payer: payer script: script result: @@ -1268,6 +1302,7 @@ components: status_code: 0 _links: _self: _self + transaction_type: null block_id: null computation_used: computation_used events: @@ -1394,6 +1429,7 @@ components: status_code: 0 _links: _self: _self + transaction_type: null block_id: null computation_used: computation_used events: @@ -1415,6 +1451,7 @@ components: transaction: _links: null reference_block_id: null + transaction_type: standard payer: payer script: script result: @@ -1424,6 +1461,7 @@ components: status_code: 0 _links: _self: _self + transaction_type: null block_id: null computation_used: computation_used events: @@ -1550,6 +1588,7 @@ components: status_code: 0 _links: _self: _self + transaction_type: null block_id: null computation_used: computation_used events: @@ -1572,6 +1611,7 @@ components: transaction: _links: null reference_block_id: null + transaction_type: standard payer: payer script: script result: @@ -1581,6 +1621,7 @@ components: status_code: 0 _links: _self: _self + transaction_type: null block_id: null computation_used: computation_used events: diff --git a/openapi/experimental/go-client-generated/docs/Transaction.md b/openapi/experimental/go-client-generated/docs/Transaction.md index e53d808fa..66caa5d07 100644 --- a/openapi/experimental/go-client-generated/docs/Transaction.md +++ b/openapi/experimental/go-client-generated/docs/Transaction.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **Authorizers** | **[]string** | | [default to null] **PayloadSignatures** | [**[]TransactionSignature**](TransactionSignature.md) | | [default to null] **EnvelopeSignatures** | [**[]TransactionSignature**](TransactionSignature.md) | | [default to null] +**TransactionType** | [***TransactionType**](TransactionType.md) | | [optional] [default to null] **Result** | [***TransactionResult**](TransactionResult.md) | | [optional] [default to null] **Expandable** | [***TransactionExpandable**](Transaction__expandable.md) | | [default to null] **Links** | [***Links**](Links.md) | | [optional] [default to null] diff --git a/openapi/experimental/go-client-generated/docs/TransactionResult.md b/openapi/experimental/go-client-generated/docs/TransactionResult.md index a37402ccd..22f1acc26 100644 --- a/openapi/experimental/go-client-generated/docs/TransactionResult.md +++ b/openapi/experimental/go-client-generated/docs/TransactionResult.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **StatusCode** | **int32** | | [default to null] **ErrorMessage** | **string** | Provided transaction error in case the transaction wasn't successful. | [default to null] **ComputationUsed** | **string** | | [default to null] +**TransactionType** | [***TransactionType**](TransactionType.md) | | [optional] [default to null] **Events** | [**[]Event**](Event.md) | | [default to null] **Links** | [***Links**](Links.md) | | [optional] [default to null] diff --git a/openapi/experimental/go-client-generated/docs/TransactionType.md b/openapi/experimental/go-client-generated/docs/TransactionType.md new file mode 100644 index 000000000..40ea482c9 --- /dev/null +++ b/openapi/experimental/go-client-generated/docs/TransactionType.md @@ -0,0 +1,8 @@ +# TransactionType + +## 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/experimental/go-client-generated/model_transaction.go b/openapi/experimental/go-client-generated/model_transaction.go index 68bfec85e..d042b150a 100644 --- a/openapi/experimental/go-client-generated/model_transaction.go +++ b/openapi/experimental/go-client-generated/model_transaction.go @@ -22,6 +22,7 @@ type Transaction struct { Authorizers []string `json:"authorizers"` PayloadSignatures []TransactionSignature `json:"payload_signatures"` EnvelopeSignatures []TransactionSignature `json:"envelope_signatures"` + TransactionType *TransactionType `json:"transaction_type,omitempty"` Result *TransactionResult `json:"result,omitempty"` Expandable *TransactionExpandable `json:"_expandable"` Links *Links `json:"_links,omitempty"` diff --git a/openapi/experimental/go-client-generated/model_transaction_result.go b/openapi/experimental/go-client-generated/model_transaction_result.go index d7640d848..136b35427 100644 --- a/openapi/experimental/go-client-generated/model_transaction_result.go +++ b/openapi/experimental/go-client-generated/model_transaction_result.go @@ -17,6 +17,7 @@ type TransactionResult struct { // Provided transaction error in case the transaction wasn't successful. ErrorMessage string `json:"error_message"` ComputationUsed string `json:"computation_used"` + TransactionType *TransactionType `json:"transaction_type,omitempty"` Events []Event `json:"events"` Links *Links `json:"_links,omitempty"` } diff --git a/openapi/experimental/go-client-generated/model_transaction_type.go b/openapi/experimental/go-client-generated/model_transaction_type.go new file mode 100644 index 000000000..1f22f9448 --- /dev/null +++ b/openapi/experimental/go-client-generated/model_transaction_type.go @@ -0,0 +1,19 @@ +/* + * Flow Experimental API + * + * Experimental API endpoints for the Flow Access Node. These endpoints are subject to change without notice. Endpoints may be moved to a permanent API once they are stable. + * + * API version: 0.1.0 + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package swagger +// TransactionType : This value indicates whether the transaction is a standard transaction, a scheduled transaction, or a system transaction. Unknown is returned for transactions that are not yet executed or could not be determined. +type TransactionType string + +// List of TransactionType +const ( + STANDARD_TransactionType TransactionType = "standard" + SCHEDULED_TransactionType TransactionType = "scheduled" + SYSTEM_TransactionType TransactionType = "system" + UNKNOWN_TransactionType TransactionType = "unknown" +) diff --git a/openapi/experimental/openapi.yaml b/openapi/experimental/openapi.yaml index a8d33426b..b69fd930d 100644 --- a/openapi/experimental/openapi.yaml +++ b/openapi/experimental/openapi.yaml @@ -451,6 +451,8 @@ components: type: array items: $ref: '#/components/schemas/TransactionSignature' + transaction_type: + $ref: '#/components/schemas/TransactionType' result: $ref: '#/components/schemas/TransactionResult' _expandable: @@ -488,12 +490,22 @@ components: computation_used: type: string format: uint64 + transaction_type: + $ref: '#/components/schemas/TransactionType' events: type: array items: $ref: '#/components/schemas/Event' _links: $ref: '#/components/schemas/Links' + TransactionType: + type: string + description: This value indicates whether the transaction is a standard transaction, a scheduled transaction, or a system transaction. Unknown is returned for transactions that are not yet executed or could not be determined. + enum: + - standard + - scheduled + - system + - unknown TransactionExecution: type: string description: This value indicates whether the transaction execution succeeded or not, this value should be checked when determining transaction success. diff --git a/openapi/go-client-generated/README.md b/openapi/go-client-generated/README.md index dea02883f..14e4221d7 100644 --- a/openapi/go-client-generated/README.md +++ b/openapi/go-client-generated/README.md @@ -84,6 +84,7 @@ Class | Method | HTTP request | Description - [TransactionResult](docs/TransactionResult.md) - [TransactionSignature](docs/TransactionSignature.md) - [TransactionStatus](docs/TransactionStatus.md) + - [TransactionType](docs/TransactionType.md) - [TransactionsBody](docs/TransactionsBody.md) ## Documentation For Authorization diff --git a/openapi/go-client-generated/api/swagger.yaml b/openapi/go-client-generated/api/swagger.yaml index 7a143d4c7..24c33618d 100644 --- a/openapi/go-client-generated/api/swagger.yaml +++ b/openapi/go-client-generated/api/swagger.yaml @@ -1988,6 +1988,7 @@ components: transactions: - _links: null reference_block_id: null + transaction_type: standard payer: payer script: script result: @@ -2003,6 +2004,7 @@ components: status_code: 0 _links: _self: _self + transaction_type: null block_id: null computation_used: computation_used events: @@ -2043,6 +2045,7 @@ components: key_index: key_index - _links: null reference_block_id: null + transaction_type: standard payer: payer script: script result: @@ -2058,6 +2061,7 @@ components: status_code: 0 _links: _self: _self + transaction_type: null block_id: null computation_used: computation_used events: @@ -2151,6 +2155,8 @@ components: type: array items: $ref: "#/components/schemas/TransactionSignature" + transaction_type: + $ref: "#/components/schemas/TransactionType" result: $ref: "#/components/schemas/TransactionResult" _expandable: @@ -2160,6 +2166,7 @@ components: example: _links: null reference_block_id: null + transaction_type: standard payer: payer script: script result: @@ -2175,6 +2182,7 @@ components: status_code: 0 _links: _self: _self + transaction_type: null block_id: null computation_used: computation_used events: @@ -2278,6 +2286,8 @@ components: computation_used: type: string format: uint64 + transaction_type: + $ref: "#/components/schemas/TransactionType" events: type: array items: @@ -2299,6 +2309,7 @@ components: status_code: 0 _links: _self: _self + transaction_type: null block_id: null computation_used: computation_used events: @@ -2313,6 +2324,16 @@ components: type: type event_index: event_index status: Pending + TransactionType: + type: string + description: "This value indicates whether the transaction is a standard transaction,\ + \ a scheduled transaction, or a system transaction. Unknown is returned for\ + \ transactions that are not yet executed or could not be determined." + enum: + - standard + - scheduled + - system + - unknown TransactionExecution: type: string description: "This value indicates whether the transaction execution succeded\ diff --git a/openapi/go-client-generated/docs/Transaction.md b/openapi/go-client-generated/docs/Transaction.md index 672dd7bc7..c97b89139 100644 --- a/openapi/go-client-generated/docs/Transaction.md +++ b/openapi/go-client-generated/docs/Transaction.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **Authorizers** | **[]string** | | [default to null] **PayloadSignatures** | [**[]TransactionSignature**](TransactionSignature.md) | | [default to null] **EnvelopeSignatures** | [**[]TransactionSignature**](TransactionSignature.md) | | [default to null] +**TransactionType** | [***TransactionType**](TransactionType.md) | | [optional] [default to null] **Result** | [***TransactionResult**](TransactionResult.md) | | [optional] [default to null] **Expandable** | [***TransactionExpandable**](Transaction__expandable.md) | | [default to null] **Links** | [***Links**](Links.md) | | [optional] [default to null] diff --git a/openapi/go-client-generated/docs/TransactionResult.md b/openapi/go-client-generated/docs/TransactionResult.md index 51eb96100..a84508e63 100644 --- a/openapi/go-client-generated/docs/TransactionResult.md +++ b/openapi/go-client-generated/docs/TransactionResult.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **StatusCode** | **int32** | | [default to null] **ErrorMessage** | **string** | Provided transaction error in case the transaction wasn't successful. | [default to null] **ComputationUsed** | **string** | | [default to null] +**TransactionType** | [***TransactionType**](TransactionType.md) | | [optional] [default to null] **Events** | [**[]Event**](Event.md) | | [default to null] **Metadata** | [***Metadata**](Metadata.md) | | [optional] [default to null] **Links** | [***Links**](Links.md) | | [optional] [default to null] diff --git a/openapi/go-client-generated/docs/TransactionType.md b/openapi/go-client-generated/docs/TransactionType.md new file mode 100644 index 000000000..40ea482c9 --- /dev/null +++ b/openapi/go-client-generated/docs/TransactionType.md @@ -0,0 +1,8 @@ +# TransactionType + +## 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_transaction.go b/openapi/go-client-generated/model_transaction.go index ed5c61023..e1dd38875 100644 --- a/openapi/go-client-generated/model_transaction.go +++ b/openapi/go-client-generated/model_transaction.go @@ -22,6 +22,7 @@ type Transaction struct { Authorizers []string `json:"authorizers"` PayloadSignatures []TransactionSignature `json:"payload_signatures"` EnvelopeSignatures []TransactionSignature `json:"envelope_signatures"` + TransactionType *TransactionType `json:"transaction_type,omitempty"` Result *TransactionResult `json:"result,omitempty"` Expandable *TransactionExpandable `json:"_expandable"` Links *Links `json:"_links,omitempty"` diff --git a/openapi/go-client-generated/model_transaction_result.go b/openapi/go-client-generated/model_transaction_result.go index 528d230d8..6cdb6ac28 100644 --- a/openapi/go-client-generated/model_transaction_result.go +++ b/openapi/go-client-generated/model_transaction_result.go @@ -17,6 +17,7 @@ type TransactionResult struct { // Provided transaction error in case the transaction wasn't successful. ErrorMessage string `json:"error_message"` ComputationUsed string `json:"computation_used"` + TransactionType *TransactionType `json:"transaction_type,omitempty"` Events []Event `json:"events"` Metadata *Metadata `json:"metadata,omitempty"` Links *Links `json:"_links,omitempty"` diff --git a/openapi/go-client-generated/model_transaction_type.go b/openapi/go-client-generated/model_transaction_type.go new file mode 100644 index 000000000..8a3ff18bb --- /dev/null +++ b/openapi/go-client-generated/model_transaction_type.go @@ -0,0 +1,19 @@ +/* + * 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 +// TransactionType : This value indicates whether the transaction is a standard transaction, a scheduled transaction, or a system transaction. Unknown is returned for transactions that are not yet executed or could not be determined. +type TransactionType string + +// List of TransactionType +const ( + STANDARD_TransactionType TransactionType = "standard" + SCHEDULED_TransactionType TransactionType = "scheduled" + SYSTEM_TransactionType TransactionType = "system" + UNKNOWN_TransactionType TransactionType = "unknown" +)