diff --git a/packages/cactus-core-api/src/main/json/generated/openapi-spec.json b/packages/cactus-core-api/src/main/json/generated/openapi-spec.json index e7c2b65aafb..4f2e18f4169 100644 --- a/packages/cactus-core-api/src/main/json/generated/openapi-spec.json +++ b/packages/cactus-core-api/src/main/json/generated/openapi-spec.json @@ -27,6 +27,15 @@ ], "components": { "schemas": { + "ConsensusAlgorithmFamily": { + "type": "string", + "description": "Enumerates a list of consensus algorithm families in existence. Does not intend to be an exhaustive list, just a practical one, meaning that we only include items here that are relevant to Hyperledger Cactus in fulfilling its own duties. This can be extended later as more sophisticated features of Cactus get implemented. This enum is meant to be first and foremest a useful abstraction for achieving practical tasks, not an encyclopedia and therefore we ask of everyone that this to be extended only in ways that serve a practical purpose for the runtime behavior of Cactus or Cactus plugins in general. The bottom line is that we can accept this enum being not 100% accurate as long as it 100% satisfies what it was designed to do.", + "enum": [ + "org.hyperledger.cactus.consensusalgorithm.PROOF_OF_AUTHORITY", + "org.hyperledger.cactus.consensusalgorithm.PROOF_OF_STAKE", + "org.hyperledger.cactus.consensusalgorithm.PROOF_OF_WORK" + ] + }, "PrimaryKey": { "type": "string", "minLength": 1, diff --git a/packages/cactus-core-api/src/main/typescript/generated/openapi/typescript-axios/api.ts b/packages/cactus-core-api/src/main/typescript/generated/openapi/typescript-axios/api.ts index a7381e68505..366efacaf14 100644 --- a/packages/cactus-core-api/src/main/typescript/generated/openapi/typescript-axios/api.ts +++ b/packages/cactus-core-api/src/main/typescript/generated/openapi/typescript-axios/api.ts @@ -124,6 +124,17 @@ export interface CactusNodeMeta { */ publicKeyPem: string; } +/** + * Enumerates a list of consensus algorithm families in existence. Does not intend to be an exhaustive list, just a practical one, meaning that we only include items here that are relevant to Hyperledger Cactus in fulfilling its own duties. This can be extended later as more sophisticated features of Cactus get implemented. This enum is meant to be first and foremest a useful abstraction for achieving practical tasks, not an encyclopedia and therefore we ask of everyone that this to be extended only in ways that serve a practical purpose for the runtime behavior of Cactus or Cactus plugins in general. The bottom line is that we can accept this enum being not 100% accurate as long as it 100% satisfies what it was designed to do. + * @export + * @enum {string} + */ +export enum ConsensusAlgorithmFamily { + AUTHORITY = 'org.hyperledger.cactus.consensusalgorithm.PROOF_OF_AUTHORITY', + STAKE = 'org.hyperledger.cactus.consensusalgorithm.PROOF_OF_STAKE', + WORK = 'org.hyperledger.cactus.consensusalgorithm.PROOF_OF_WORK' +} + /** * * @export diff --git a/packages/cactus-core-api/src/main/typescript/openapi-spec.ts b/packages/cactus-core-api/src/main/typescript/openapi-spec.ts index 7ce06033481..26552b7ac65 100644 --- a/packages/cactus-core-api/src/main/typescript/openapi-spec.ts +++ b/packages/cactus-core-api/src/main/typescript/openapi-spec.ts @@ -35,6 +35,28 @@ export const CACTUS_OPEN_API_JSON: OpenAPIV3.Document = { ], components: { schemas: { + ConsensusAlgorithmFamily: { + type: "string", + description: + "Enumerates a list of consensus algorithm families in " + + "existence. Does not intend to be an exhaustive list, just a " + + "practical one, meaning that we only include items here that are " + + "relevant to Hyperledger Cactus in fulfilling its own duties. " + + "This can be extended later as more sophisticated features " + + "of Cactus get implemented. " + + "This enum is meant to be first and foremest a useful abstraction " + + "for achieving practical tasks, not an encyclopedia and therefore " + + "we ask of everyone that this to be extended only in ways that " + + "serve a practical purpose for the runtime behavior of Cactus or " + + "Cactus plugins in general. The bottom line is that we can accept " + + "this enum being not 100% accurate as long as it 100% satisfies " + + "what it was designed to do.", + enum: [ + "org.hyperledger.cactus.consensusalgorithm.PROOF_OF_AUTHORITY", + "org.hyperledger.cactus.consensusalgorithm.PROOF_OF_STAKE", + "org.hyperledger.cactus.consensusalgorithm.PROOF_OF_WORK", + ], + }, PrimaryKey: { type: "string", minLength: 1,