diff --git a/.gitattributes b/.gitattributes index 022566c6b5..30699e43c5 100644 --- a/.gitattributes +++ b/.gitattributes @@ -13,10 +13,10 @@ ## Handle line endings automatically for files detected as ## text and leave all files detected as binary untouched. ## This will handle all files NOT defined below. -* text=auto +* text=auto eol=lf ## SOURCE CODE -*.bat text eol=crlf +# *.bat text eol=crlf *.coffee text *.css text *.htm text diff=html diff --git a/.github/workflows/ghpkg-all-kotlin-api-clients-publish.yaml b/.github/workflows/ghpkg-all-kotlin-api-clients-publish.yaml new file mode 100644 index 0000000000..ee1080c1a7 --- /dev/null +++ b/.github/workflows/ghpkg-all-kotlin-api-clients-publish.yaml @@ -0,0 +1,60 @@ +name: ghpkg-all-kotlin-api-clients-publish + +on: + push: + branches: [main, dev] + + pull_request: + branches: [main, dev] + +jobs: + publish: + runs-on: ubuntu-20.04 + steps: + - name: Install Indy SDK + run: > + sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys CE7709D068DB5E88 \ + && sudo add-apt-repository "deb https://repo.sovrin.org/sdk/deb bionic stable" \ + && sudo apt-get update \ + && sudo apt-get install -y \ + libindy \ + libnullpay \ + libvcx \ + indy-cli \ + && sudo rm -f /etc/apt/sources.list.d/sovrin.list* + + - name: Checkout + uses: actions/checkout@v3.1.0 + with: + fetch-depth: 0 + + - name: Get the latest release version + run: | + export GITVERSION=$(git describe --tags | awk -F'.' '{print $$1}') + echo "GITVERSION=$GITVERSION" >> $GITHUB_ENV + + - uses: actions/setup-java@v2 + with: + distribution: 'adopt' + java-version: '8' + + - name: Set up NodeJS v16.9.1 + uses: actions/setup-node@v2.1.2 + with: + node-version: v16.9.1 + + - run: yarn configure + + - name: build-cactus-plugin-ledger-connector-corda-kotlin-client + run: | + WDIR=`pwd` + cd ${WDIR}/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client + chmod +x gradlew + ./gradlew clean + ./gradlew build + + - name: publish-cactus-plugin-ledger-connector-corda-kotlin-client + uses: actions/upload-artifact@v3.0.0 + with: + name: cactus-plugin-ledger-connector-corda-kotlin-client-${{ env.GITVERSION }}.jar + path: packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/build/libs/kotlin-client-1.0.0.jar diff --git a/packages/cactus-plugin-ledger-connector-corda/package.json b/packages/cactus-plugin-ledger-connector-corda/package.json index 04af53086f..d3e3a4c794 100644 --- a/packages/cactus-plugin-ledger-connector-corda/package.json +++ b/packages/cactus-plugin-ledger-connector-corda/package.json @@ -45,7 +45,9 @@ "scripts": { "codegen": "run-p 'codegen:*'", "codegen:openapi": "run-p generate-sdk generate-server", - "generate-sdk": "openapi-generator-cli generate -i ./src/main/json/openapi.json -g typescript-axios -o ./src/main/typescript/generated/openapi/typescript-axios/", + "generate-sdk": "run-p generate-sdk:*", + "generate-sdk:typescript-axios": "openapi-generator-cli generate -i ./src/main/json/openapi.json -g typescript-axios -o ./src/main/typescript/generated/openapi/typescript-axios/", + "generate-sdk:kotlin": "openapi-generator-cli generate -i ./src/main/json/openapi.json -g kotlin -o ./src/main/kotlin/generated/openapi/kotlin-client/ --reserved-words-mappings protected=protected", "generate-server": "openapi-generator-cli generate -i ./src/main/json/openapi.json -g kotlin-spring -o ./src/main-server/kotlin/gen/kotlin-spring/ -c ./src/main-server/openapi-generator-config.yaml", "watch": "npm-watch", "webpack": "npm-run-all webpack:dev", diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/.openapi-generator-ignore b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/.openapi-generator-ignore new file mode 100644 index 0000000000..7484ee590a --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/.openapi-generator-ignore @@ -0,0 +1,23 @@ +# OpenAPI Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/.openapi-generator/FILES b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/.openapi-generator/FILES new file mode 100644 index 0000000000..3b099a4f68 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/.openapi-generator/FILES @@ -0,0 +1,95 @@ +README.md +build.gradle +docs/ClearMonitorTransactionsV1Request.md +docs/ClearMonitorTransactionsV1Response.md +docs/CordaNodeSshCredentials.md +docs/CordaRpcCredentials.md +docs/CordaX500Name.md +docs/CordappDeploymentConfig.md +docs/CordappInfo.md +docs/DefaultApi.md +docs/DeployContractJarsBadRequestV1Response.md +docs/DeployContractJarsSuccessV1Response.md +docs/DeployContractJarsV1Request.md +docs/DiagnoseNodeV1Request.md +docs/DiagnoseNodeV1Response.md +docs/FlowInvocationType.md +docs/GetMonitorTransactionsV1Request.md +docs/GetMonitorTransactionsV1Response.md +docs/GetMonitorTransactionsV1ResponseTx.md +docs/InvokeContractV1Request.md +docs/InvokeContractV1Response.md +docs/JarFile.md +docs/JvmObject.md +docs/JvmType.md +docs/JvmTypeKind.md +docs/ListFlowsV1Request.md +docs/ListFlowsV1Response.md +docs/NetworkHostAndPort.md +docs/NodeDiagnosticInfo.md +docs/NodeInfo.md +docs/Party.md +docs/PublicKey.md +docs/SHA256.md +docs/StartMonitorV1Request.md +docs/StartMonitorV1Response.md +docs/StopMonitorV1Request.md +docs/StopMonitorV1Response.md +docs/X500Principal.md +gradle/wrapper/gradle-wrapper.jar +gradle/wrapper/gradle-wrapper.properties +gradlew +gradlew.bat +settings.gradle +src/main/kotlin/org/openapitools/client/apis/DefaultApi.kt +src/main/kotlin/org/openapitools/client/infrastructure/ApiAbstractions.kt +src/main/kotlin/org/openapitools/client/infrastructure/ApiClient.kt +src/main/kotlin/org/openapitools/client/infrastructure/ApiInfrastructureResponse.kt +src/main/kotlin/org/openapitools/client/infrastructure/BigDecimalAdapter.kt +src/main/kotlin/org/openapitools/client/infrastructure/BigIntegerAdapter.kt +src/main/kotlin/org/openapitools/client/infrastructure/ByteArrayAdapter.kt +src/main/kotlin/org/openapitools/client/infrastructure/Errors.kt +src/main/kotlin/org/openapitools/client/infrastructure/LocalDateAdapter.kt +src/main/kotlin/org/openapitools/client/infrastructure/LocalDateTimeAdapter.kt +src/main/kotlin/org/openapitools/client/infrastructure/OffsetDateTimeAdapter.kt +src/main/kotlin/org/openapitools/client/infrastructure/RequestConfig.kt +src/main/kotlin/org/openapitools/client/infrastructure/RequestMethod.kt +src/main/kotlin/org/openapitools/client/infrastructure/ResponseExtensions.kt +src/main/kotlin/org/openapitools/client/infrastructure/Serializer.kt +src/main/kotlin/org/openapitools/client/infrastructure/URIAdapter.kt +src/main/kotlin/org/openapitools/client/infrastructure/UUIDAdapter.kt +src/main/kotlin/org/openapitools/client/models/ClearMonitorTransactionsV1Request.kt +src/main/kotlin/org/openapitools/client/models/ClearMonitorTransactionsV1Response.kt +src/main/kotlin/org/openapitools/client/models/CordaNodeSshCredentials.kt +src/main/kotlin/org/openapitools/client/models/CordaRpcCredentials.kt +src/main/kotlin/org/openapitools/client/models/CordaX500Name.kt +src/main/kotlin/org/openapitools/client/models/CordappDeploymentConfig.kt +src/main/kotlin/org/openapitools/client/models/CordappInfo.kt +src/main/kotlin/org/openapitools/client/models/DeployContractJarsBadRequestV1Response.kt +src/main/kotlin/org/openapitools/client/models/DeployContractJarsSuccessV1Response.kt +src/main/kotlin/org/openapitools/client/models/DeployContractJarsV1Request.kt +src/main/kotlin/org/openapitools/client/models/DiagnoseNodeV1Request.kt +src/main/kotlin/org/openapitools/client/models/DiagnoseNodeV1Response.kt +src/main/kotlin/org/openapitools/client/models/FlowInvocationType.kt +src/main/kotlin/org/openapitools/client/models/GetMonitorTransactionsV1Request.kt +src/main/kotlin/org/openapitools/client/models/GetMonitorTransactionsV1Response.kt +src/main/kotlin/org/openapitools/client/models/GetMonitorTransactionsV1ResponseTx.kt +src/main/kotlin/org/openapitools/client/models/InvokeContractV1Request.kt +src/main/kotlin/org/openapitools/client/models/InvokeContractV1Response.kt +src/main/kotlin/org/openapitools/client/models/JarFile.kt +src/main/kotlin/org/openapitools/client/models/JvmObject.kt +src/main/kotlin/org/openapitools/client/models/JvmType.kt +src/main/kotlin/org/openapitools/client/models/JvmTypeKind.kt +src/main/kotlin/org/openapitools/client/models/ListFlowsV1Request.kt +src/main/kotlin/org/openapitools/client/models/ListFlowsV1Response.kt +src/main/kotlin/org/openapitools/client/models/NetworkHostAndPort.kt +src/main/kotlin/org/openapitools/client/models/NodeDiagnosticInfo.kt +src/main/kotlin/org/openapitools/client/models/NodeInfo.kt +src/main/kotlin/org/openapitools/client/models/Party.kt +src/main/kotlin/org/openapitools/client/models/PublicKey.kt +src/main/kotlin/org/openapitools/client/models/SHA256.kt +src/main/kotlin/org/openapitools/client/models/StartMonitorV1Request.kt +src/main/kotlin/org/openapitools/client/models/StartMonitorV1Response.kt +src/main/kotlin/org/openapitools/client/models/StopMonitorV1Request.kt +src/main/kotlin/org/openapitools/client/models/StopMonitorV1Response.kt +src/main/kotlin/org/openapitools/client/models/X500Principal.kt diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/.openapi-generator/VERSION b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/.openapi-generator/VERSION new file mode 100644 index 0000000000..804440660c --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/.openapi-generator/VERSION @@ -0,0 +1 @@ +5.2.1 \ No newline at end of file diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/README.md b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/README.md new file mode 100644 index 0000000000..1ea566bdad --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/README.md @@ -0,0 +1,93 @@ +# org.openapitools.client - Kotlin client library for Hyperledger Cactus Plugin - Connector Corda + +## Requires + +* Kotlin 1.4.30 +* Gradle 6.8.3 + +## Build + +First, create the gradle wrapper script: + +``` +gradle wrapper +``` + +Then, run: + +``` +./gradlew check assemble +``` + +This runs all tests and packages the library. + +## Features/Implementation Notes + +* Supports JSON inputs/outputs, File inputs, and Form inputs. +* Supports collection formats for query parameters: csv, tsv, ssv, pipes. +* Some Kotlin and Java types are fully qualified to avoid conflicts with types defined in OpenAPI definitions. +* Implementation of ApiClient is intended to reduce method counts, specifically to benefit Android targets. + + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**clearMonitorTransactionsV1**](docs/DefaultApi.md#clearmonitortransactionsv1) | **DELETE** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/clear-monitor-transactions | Clear transactions from internal store so they'll not be available by GetMonitorTransactionsV1 anymore. +*DefaultApi* | [**deployContractJarsV1**](docs/DefaultApi.md#deploycontractjarsv1) | **POST** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/deploy-contract-jars | Deploys a set of jar files (Cordapps, e.g. the contracts in Corda speak). +*DefaultApi* | [**diagnoseNodeV1**](docs/DefaultApi.md#diagnosenodev1) | **POST** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/diagnose-node | +*DefaultApi* | [**getMonitorTransactionsV1**](docs/DefaultApi.md#getmonitortransactionsv1) | **GET** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/get-monitor-transactions | Get transactions for monitored state classes. +*DefaultApi* | [**getPrometheusMetricsV1**](docs/DefaultApi.md#getprometheusmetricsv1) | **GET** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/get-prometheus-exporter-metrics | Get the Prometheus Metrics +*DefaultApi* | [**invokeContractV1**](docs/DefaultApi.md#invokecontractv1) | **POST** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/invoke-contract | Invokes a contract on a Corda ledger (e.g. a flow) +*DefaultApi* | [**listFlowsV1**](docs/DefaultApi.md#listflowsv1) | **POST** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/list-flows | +*DefaultApi* | [**networkMapV1**](docs/DefaultApi.md#networkmapv1) | **POST** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/network-map | +*DefaultApi* | [**startMonitorV1**](docs/DefaultApi.md#startmonitorv1) | **POST** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/start-monitor | Start monitoring corda changes (transactions) of given state class +*DefaultApi* | [**stopMonitorV1**](docs/DefaultApi.md#stopmonitorv1) | **DELETE** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/stop-monitor | Stop monitoring corda changes (transactions) of given state class + + + +## Documentation for Models + + - [org.openapitools.client.models.ClearMonitorTransactionsV1Request](docs/ClearMonitorTransactionsV1Request.md) + - [org.openapitools.client.models.ClearMonitorTransactionsV1Response](docs/ClearMonitorTransactionsV1Response.md) + - [org.openapitools.client.models.CordaNodeSshCredentials](docs/CordaNodeSshCredentials.md) + - [org.openapitools.client.models.CordaRpcCredentials](docs/CordaRpcCredentials.md) + - [org.openapitools.client.models.CordaX500Name](docs/CordaX500Name.md) + - [org.openapitools.client.models.CordappDeploymentConfig](docs/CordappDeploymentConfig.md) + - [org.openapitools.client.models.CordappInfo](docs/CordappInfo.md) + - [org.openapitools.client.models.DeployContractJarsBadRequestV1Response](docs/DeployContractJarsBadRequestV1Response.md) + - [org.openapitools.client.models.DeployContractJarsSuccessV1Response](docs/DeployContractJarsSuccessV1Response.md) + - [org.openapitools.client.models.DeployContractJarsV1Request](docs/DeployContractJarsV1Request.md) + - [org.openapitools.client.models.DiagnoseNodeV1Request](docs/DiagnoseNodeV1Request.md) + - [org.openapitools.client.models.DiagnoseNodeV1Response](docs/DiagnoseNodeV1Response.md) + - [org.openapitools.client.models.FlowInvocationType](docs/FlowInvocationType.md) + - [org.openapitools.client.models.GetMonitorTransactionsV1Request](docs/GetMonitorTransactionsV1Request.md) + - [org.openapitools.client.models.GetMonitorTransactionsV1Response](docs/GetMonitorTransactionsV1Response.md) + - [org.openapitools.client.models.GetMonitorTransactionsV1ResponseTx](docs/GetMonitorTransactionsV1ResponseTx.md) + - [org.openapitools.client.models.InvokeContractV1Request](docs/InvokeContractV1Request.md) + - [org.openapitools.client.models.InvokeContractV1Response](docs/InvokeContractV1Response.md) + - [org.openapitools.client.models.JarFile](docs/JarFile.md) + - [org.openapitools.client.models.JvmObject](docs/JvmObject.md) + - [org.openapitools.client.models.JvmType](docs/JvmType.md) + - [org.openapitools.client.models.JvmTypeKind](docs/JvmTypeKind.md) + - [org.openapitools.client.models.ListFlowsV1Request](docs/ListFlowsV1Request.md) + - [org.openapitools.client.models.ListFlowsV1Response](docs/ListFlowsV1Response.md) + - [org.openapitools.client.models.NetworkHostAndPort](docs/NetworkHostAndPort.md) + - [org.openapitools.client.models.NodeDiagnosticInfo](docs/NodeDiagnosticInfo.md) + - [org.openapitools.client.models.NodeInfo](docs/NodeInfo.md) + - [org.openapitools.client.models.Party](docs/Party.md) + - [org.openapitools.client.models.PublicKey](docs/PublicKey.md) + - [org.openapitools.client.models.SHA256](docs/SHA256.md) + - [org.openapitools.client.models.StartMonitorV1Request](docs/StartMonitorV1Request.md) + - [org.openapitools.client.models.StartMonitorV1Response](docs/StartMonitorV1Response.md) + - [org.openapitools.client.models.StopMonitorV1Request](docs/StopMonitorV1Request.md) + - [org.openapitools.client.models.StopMonitorV1Response](docs/StopMonitorV1Response.md) + - [org.openapitools.client.models.X500Principal](docs/X500Principal.md) + + + +## Documentation for Authorization + +All endpoints do not require authorization. diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/build.gradle b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/build.gradle new file mode 100644 index 0000000000..3de8b45b13 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/build.gradle @@ -0,0 +1,37 @@ +group 'org.openapitools' +version '1.0.0' + +wrapper { + gradleVersion = '6.8.3' + distributionUrl = "https://services.gradle.org/distributions/gradle-$gradleVersion-all.zip" +} + +buildscript { + ext.kotlin_version = '1.5.10' + + repositories { + maven { url "https://repo1.maven.org/maven2" } + } + dependencies { + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" + } +} + +apply plugin: 'kotlin' + +repositories { + maven { url "https://repo1.maven.org/maven2" } +} + +test { + useJUnitPlatform() +} + +dependencies { + implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version" + implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version" + implementation "com.squareup.moshi:moshi-kotlin:1.12.0" + implementation "com.squareup.moshi:moshi-adapters:1.12.0" + implementation "com.squareup.okhttp3:okhttp:4.9.1" + testImplementation "io.kotlintest:kotlintest-runner-junit5:3.4.2" +} diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/ClearMonitorTransactionsV1Request.md b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/ClearMonitorTransactionsV1Request.md new file mode 100644 index 0000000000..92c08bc28a --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/ClearMonitorTransactionsV1Request.md @@ -0,0 +1,12 @@ + +# ClearMonitorTransactionsV1Request + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**clientAppId** | **kotlin.String** | ID of a client application that wants to monitor the state changes | +**stateFullClassName** | **kotlin.String** | The fully qualified name of the Corda state to monitor | +**txIndexes** | **kotlin.collections.List<kotlin.String>** | | + + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/ClearMonitorTransactionsV1Response.md b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/ClearMonitorTransactionsV1Response.md new file mode 100644 index 0000000000..e65d7990a1 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/ClearMonitorTransactionsV1Response.md @@ -0,0 +1,11 @@ + +# ClearMonitorTransactionsV1Response + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **kotlin.Boolean** | Flag set to true if operation completed correctly. | +**msg** | **kotlin.String** | Message describing operation status or any errors that occurred. | + + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/CordaNodeSshCredentials.md b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/CordaNodeSshCredentials.md new file mode 100644 index 0000000000..07aaf5c630 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/CordaNodeSshCredentials.md @@ -0,0 +1,14 @@ + +# CordaNodeSshCredentials + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hostKeyEntry** | **kotlin.String** | | +**username** | **kotlin.String** | | +**password** | **kotlin.String** | | +**hostname** | **kotlin.String** | | +**port** | **kotlin.Int** | | + + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/CordaRpcCredentials.md b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/CordaRpcCredentials.md new file mode 100644 index 0000000000..02133fe370 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/CordaRpcCredentials.md @@ -0,0 +1,13 @@ + +# CordaRpcCredentials + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hostname** | **kotlin.String** | | +**port** | **kotlin.Int** | | +**username** | **kotlin.String** | | +**password** | **kotlin.String** | | + + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/CordaX500Name.md b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/CordaX500Name.md new file mode 100644 index 0000000000..55470076ea --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/CordaX500Name.md @@ -0,0 +1,16 @@ + +# CordaX500Name + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**organisation** | **kotlin.String** | | +**locality** | **kotlin.String** | | +**country** | **kotlin.String** | | +**x500Principal** | [**X500Principal**](X500Principal.md) | | +**commonName** | **kotlin.String** | | [optional] +**organisationUnit** | **kotlin.String** | | [optional] +**state** | **kotlin.String** | | [optional] + + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/CordappDeploymentConfig.md b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/CordappDeploymentConfig.md new file mode 100644 index 0000000000..e2ea364a2c --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/CordappDeploymentConfig.md @@ -0,0 +1,15 @@ + +# CordappDeploymentConfig + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sshCredentials** | [**CordaNodeSshCredentials**](CordaNodeSshCredentials.md) | | +**rpcCredentials** | [**CordaRpcCredentials**](CordaRpcCredentials.md) | | +**cordaNodeStartCmd** | **kotlin.String** | The shell command to execute in order to start back up a Corda node after having placed new jars in the cordapp directory of said node. | +**cordappDir** | **kotlin.String** | The absolute file system path where the Corda Node is expecting deployed Cordapp jar files to be placed. | +**cordaJarPath** | **kotlin.String** | The absolute file system path where the corda.jar file of the node can be found. This is used to execute database schema migrations where applicable (H2 database in use in development environments). | +**nodeBaseDirPath** | **kotlin.String** | The absolute file system path where the base directory of the Corda node can be found. This is used to pass in to corda.jar when being invoked for certain tasks such as executing database schema migrations for a deployed contract. | + + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/CordappInfo.md b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/CordappInfo.md new file mode 100644 index 0000000000..8b2c46bba5 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/CordappInfo.md @@ -0,0 +1,18 @@ + +# CordappInfo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**jarHash** | [**SHA256**](.md) | | +**licence** | **kotlin.String** | The name of the licence this CorDapp is released under | +**minimumPlatformVersion** | **kotlin.Int** | The minimum platform version the node must be at for the CorDapp to run | +**name** | **kotlin.String** | The name of the JAR file that defines the CorDapp | +**shortName** | **kotlin.String** | The name of the CorDapp | +**targetPlatformVersion** | **kotlin.Int** | The target platform version this CorDapp has been tested against | +**type** | **kotlin.String** | A description of what sort of CorDapp this is - either a contract, workflow, or a combination. | +**vendor** | **kotlin.String** | The vendor of this CorDapp | +**version** | **kotlin.String** | The version of this CorDapp | + + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/DefaultApi.md b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/DefaultApi.md new file mode 100644 index 0000000000..3a66874e7f --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/DefaultApi.md @@ -0,0 +1,470 @@ +# DefaultApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**clearMonitorTransactionsV1**](DefaultApi.md#clearMonitorTransactionsV1) | **DELETE** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/clear-monitor-transactions | Clear transactions from internal store so they'll not be available by GetMonitorTransactionsV1 anymore. +[**deployContractJarsV1**](DefaultApi.md#deployContractJarsV1) | **POST** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/deploy-contract-jars | Deploys a set of jar files (Cordapps, e.g. the contracts in Corda speak). +[**diagnoseNodeV1**](DefaultApi.md#diagnoseNodeV1) | **POST** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/diagnose-node | +[**getMonitorTransactionsV1**](DefaultApi.md#getMonitorTransactionsV1) | **GET** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/get-monitor-transactions | Get transactions for monitored state classes. +[**getPrometheusMetricsV1**](DefaultApi.md#getPrometheusMetricsV1) | **GET** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/get-prometheus-exporter-metrics | Get the Prometheus Metrics +[**invokeContractV1**](DefaultApi.md#invokeContractV1) | **POST** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/invoke-contract | Invokes a contract on a Corda ledger (e.g. a flow) +[**listFlowsV1**](DefaultApi.md#listFlowsV1) | **POST** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/list-flows | +[**networkMapV1**](DefaultApi.md#networkMapV1) | **POST** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/network-map | +[**startMonitorV1**](DefaultApi.md#startMonitorV1) | **POST** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/start-monitor | Start monitoring corda changes (transactions) of given state class +[**stopMonitorV1**](DefaultApi.md#stopMonitorV1) | **DELETE** /api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/stop-monitor | Stop monitoring corda changes (transactions) of given state class + + + +# **clearMonitorTransactionsV1** +> ClearMonitorTransactionsV1Response clearMonitorTransactionsV1(clearMonitorTransactionsV1Request) + +Clear transactions from internal store so they'll not be available by GetMonitorTransactionsV1 anymore. + +### Example +```kotlin +// Import classes: +//import org.openapitools.client.infrastructure.* +//import org.openapitools.client.models.* + +val apiInstance = DefaultApi() +val clearMonitorTransactionsV1Request : ClearMonitorTransactionsV1Request = // ClearMonitorTransactionsV1Request | +try { + val result : ClearMonitorTransactionsV1Response = apiInstance.clearMonitorTransactionsV1(clearMonitorTransactionsV1Request) + println(result) +} catch (e: ClientException) { + println("4xx response calling DefaultApi#clearMonitorTransactionsV1") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling DefaultApi#clearMonitorTransactionsV1") + e.printStackTrace() +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **clearMonitorTransactionsV1Request** | [**ClearMonitorTransactionsV1Request**](ClearMonitorTransactionsV1Request.md)| | [optional] + +### Return type + +[**ClearMonitorTransactionsV1Response**](ClearMonitorTransactionsV1Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **deployContractJarsV1** +> DeployContractJarsSuccessV1Response deployContractJarsV1(deployContractJarsV1Request) + +Deploys a set of jar files (Cordapps, e.g. the contracts in Corda speak). + +### Example +```kotlin +// Import classes: +//import org.openapitools.client.infrastructure.* +//import org.openapitools.client.models.* + +val apiInstance = DefaultApi() +val deployContractJarsV1Request : DeployContractJarsV1Request = // DeployContractJarsV1Request | +try { + val result : DeployContractJarsSuccessV1Response = apiInstance.deployContractJarsV1(deployContractJarsV1Request) + println(result) +} catch (e: ClientException) { + println("4xx response calling DefaultApi#deployContractJarsV1") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling DefaultApi#deployContractJarsV1") + e.printStackTrace() +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **deployContractJarsV1Request** | [**DeployContractJarsV1Request**](DeployContractJarsV1Request.md)| | [optional] + +### Return type + +[**DeployContractJarsSuccessV1Response**](DeployContractJarsSuccessV1Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **diagnoseNodeV1** +> DiagnoseNodeV1Response diagnoseNodeV1(diagnoseNodeV1Request) + + + +Responds with diagnostic information about the Corda node + +### Example +```kotlin +// Import classes: +//import org.openapitools.client.infrastructure.* +//import org.openapitools.client.models.* + +val apiInstance = DefaultApi() +val diagnoseNodeV1Request : DiagnoseNodeV1Request = // DiagnoseNodeV1Request | +try { + val result : DiagnoseNodeV1Response = apiInstance.diagnoseNodeV1(diagnoseNodeV1Request) + println(result) +} catch (e: ClientException) { + println("4xx response calling DefaultApi#diagnoseNodeV1") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling DefaultApi#diagnoseNodeV1") + e.printStackTrace() +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **diagnoseNodeV1Request** | [**DiagnoseNodeV1Request**](DiagnoseNodeV1Request.md)| | [optional] + +### Return type + +[**DiagnoseNodeV1Response**](DiagnoseNodeV1Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **getMonitorTransactionsV1** +> GetMonitorTransactionsV1Response getMonitorTransactionsV1(getMonitorTransactionsV1Request) + +Get transactions for monitored state classes. + +### Example +```kotlin +// Import classes: +//import org.openapitools.client.infrastructure.* +//import org.openapitools.client.models.* + +val apiInstance = DefaultApi() +val getMonitorTransactionsV1Request : GetMonitorTransactionsV1Request = // GetMonitorTransactionsV1Request | +try { + val result : GetMonitorTransactionsV1Response = apiInstance.getMonitorTransactionsV1(getMonitorTransactionsV1Request) + println(result) +} catch (e: ClientException) { + println("4xx response calling DefaultApi#getMonitorTransactionsV1") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling DefaultApi#getMonitorTransactionsV1") + e.printStackTrace() +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **getMonitorTransactionsV1Request** | [**GetMonitorTransactionsV1Request**](GetMonitorTransactionsV1Request.md)| | [optional] + +### Return type + +[**GetMonitorTransactionsV1Response**](GetMonitorTransactionsV1Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **getPrometheusMetricsV1** +> kotlin.String getPrometheusMetricsV1() + +Get the Prometheus Metrics + +### Example +```kotlin +// Import classes: +//import org.openapitools.client.infrastructure.* +//import org.openapitools.client.models.* + +val apiInstance = DefaultApi() +try { + val result : kotlin.String = apiInstance.getPrometheusMetricsV1() + println(result) +} catch (e: ClientException) { + println("4xx response calling DefaultApi#getPrometheusMetricsV1") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling DefaultApi#getPrometheusMetricsV1") + e.printStackTrace() +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +**kotlin.String** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: text/plain + + +# **invokeContractV1** +> InvokeContractV1Response invokeContractV1(invokeContractV1Request) + +Invokes a contract on a Corda ledger (e.g. a flow) + +### Example +```kotlin +// Import classes: +//import org.openapitools.client.infrastructure.* +//import org.openapitools.client.models.* + +val apiInstance = DefaultApi() +val invokeContractV1Request : InvokeContractV1Request = // InvokeContractV1Request | +try { + val result : InvokeContractV1Response = apiInstance.invokeContractV1(invokeContractV1Request) + println(result) +} catch (e: ClientException) { + println("4xx response calling DefaultApi#invokeContractV1") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling DefaultApi#invokeContractV1") + e.printStackTrace() +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **invokeContractV1Request** | [**InvokeContractV1Request**](InvokeContractV1Request.md)| | [optional] + +### Return type + +[**InvokeContractV1Response**](InvokeContractV1Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **listFlowsV1** +> ListFlowsV1Response listFlowsV1(listFlowsV1Request) + + + +Responds with a list of the flows on the Corda node. + +### Example +```kotlin +// Import classes: +//import org.openapitools.client.infrastructure.* +//import org.openapitools.client.models.* + +val apiInstance = DefaultApi() +val listFlowsV1Request : ListFlowsV1Request = // ListFlowsV1Request | +try { + val result : ListFlowsV1Response = apiInstance.listFlowsV1(listFlowsV1Request) + println(result) +} catch (e: ClientException) { + println("4xx response calling DefaultApi#listFlowsV1") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling DefaultApi#listFlowsV1") + e.printStackTrace() +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **listFlowsV1Request** | [**ListFlowsV1Request**](ListFlowsV1Request.md)| | [optional] + +### Return type + +[**ListFlowsV1Response**](ListFlowsV1Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **networkMapV1** +> kotlin.collections.List<NodeInfo> networkMapV1(body) + + + +Responds with a snapshot of the network map as provided by the Corda RPC call: net.corda.core.messaging.CordaRPCOps public abstract fun networkMapSnapshot(): List<NodeInfo> + +### Example +```kotlin +// Import classes: +//import org.openapitools.client.infrastructure.* +//import org.openapitools.client.models.* + +val apiInstance = DefaultApi() +val body : kotlin.Any = Object // kotlin.Any | +try { + val result : kotlin.collections.List = apiInstance.networkMapV1(body) + println(result) +} catch (e: ClientException) { + println("4xx response calling DefaultApi#networkMapV1") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling DefaultApi#networkMapV1") + e.printStackTrace() +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **kotlin.Any**| | [optional] + +### Return type + +[**kotlin.collections.List<NodeInfo>**](NodeInfo.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **startMonitorV1** +> StartMonitorV1Response startMonitorV1(startMonitorV1Request) + +Start monitoring corda changes (transactions) of given state class + +### Example +```kotlin +// Import classes: +//import org.openapitools.client.infrastructure.* +//import org.openapitools.client.models.* + +val apiInstance = DefaultApi() +val startMonitorV1Request : StartMonitorV1Request = // StartMonitorV1Request | +try { + val result : StartMonitorV1Response = apiInstance.startMonitorV1(startMonitorV1Request) + println(result) +} catch (e: ClientException) { + println("4xx response calling DefaultApi#startMonitorV1") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling DefaultApi#startMonitorV1") + e.printStackTrace() +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **startMonitorV1Request** | [**StartMonitorV1Request**](StartMonitorV1Request.md)| | [optional] + +### Return type + +[**StartMonitorV1Response**](StartMonitorV1Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **stopMonitorV1** +> StopMonitorV1Response stopMonitorV1(stopMonitorV1Request) + +Stop monitoring corda changes (transactions) of given state class + +### Example +```kotlin +// Import classes: +//import org.openapitools.client.infrastructure.* +//import org.openapitools.client.models.* + +val apiInstance = DefaultApi() +val stopMonitorV1Request : StopMonitorV1Request = // StopMonitorV1Request | +try { + val result : StopMonitorV1Response = apiInstance.stopMonitorV1(stopMonitorV1Request) + println(result) +} catch (e: ClientException) { + println("4xx response calling DefaultApi#stopMonitorV1") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling DefaultApi#stopMonitorV1") + e.printStackTrace() +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **stopMonitorV1Request** | [**StopMonitorV1Request**](StopMonitorV1Request.md)| | [optional] + +### Return type + +[**StopMonitorV1Response**](StopMonitorV1Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/DeployContractJarsBadRequestV1Response.md b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/DeployContractJarsBadRequestV1Response.md new file mode 100644 index 0000000000..920580b101 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/DeployContractJarsBadRequestV1Response.md @@ -0,0 +1,10 @@ + +# DeployContractJarsBadRequestV1Response + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**errors** | **kotlin.collections.List<kotlin.String>** | | + + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/DeployContractJarsSuccessV1Response.md b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/DeployContractJarsSuccessV1Response.md new file mode 100644 index 0000000000..8497236694 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/DeployContractJarsSuccessV1Response.md @@ -0,0 +1,10 @@ + +# DeployContractJarsSuccessV1Response + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**deployedJarFiles** | **kotlin.collections.List<kotlin.String>** | | + + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/DeployContractJarsV1Request.md b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/DeployContractJarsV1Request.md new file mode 100644 index 0000000000..92c5157172 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/DeployContractJarsV1Request.md @@ -0,0 +1,11 @@ + +# DeployContractJarsV1Request + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cordappDeploymentConfigs** | [**kotlin.collections.List<CordappDeploymentConfig>**](CordappDeploymentConfig.md) | The list of deployment configurations pointing to the nodes where the provided cordapp jar files are to be deployed . | +**jarFiles** | [**kotlin.collections.List<JarFile>**](JarFile.md) | | + + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/DiagnoseNodeV1Request.md b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/DiagnoseNodeV1Request.md new file mode 100644 index 0000000000..72b1c0a67b --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/DiagnoseNodeV1Request.md @@ -0,0 +1,10 @@ + +# DiagnoseNodeV1Request + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**nodeIds** | **kotlin.collections.List<kotlin.String>** | Optional property specifying which Corda Node should be the one being diagnosed in case the Connector has multiple connections established for different nodes (which is not yet a supported feature, but we want to keep this possibility open for the future). | [optional] + + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/DiagnoseNodeV1Response.md b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/DiagnoseNodeV1Response.md new file mode 100644 index 0000000000..818e4e6cb1 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/DiagnoseNodeV1Response.md @@ -0,0 +1,10 @@ + +# DiagnoseNodeV1Response + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**nodeDiagnosticInfo** | [**NodeDiagnosticInfo**](NodeDiagnosticInfo.md) | | + + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/FlowInvocationType.md b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/FlowInvocationType.md new file mode 100644 index 0000000000..0a11c3ca14 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/FlowInvocationType.md @@ -0,0 +1,12 @@ + +# FlowInvocationType + +## Enum + + + * `tRACKEDFLOWDYNAMIC` (value: `"TRACKED_FLOW_DYNAMIC"`) + + * `fLOWDYNAMIC` (value: `"FLOW_DYNAMIC"`) + + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/GetMonitorTransactionsV1Request.md b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/GetMonitorTransactionsV1Request.md new file mode 100644 index 0000000000..9aea6deb32 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/GetMonitorTransactionsV1Request.md @@ -0,0 +1,11 @@ + +# GetMonitorTransactionsV1Request + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**clientAppId** | **kotlin.String** | ID of a client application that wants to monitor the state changes | +**stateFullClassName** | **kotlin.String** | The fully qualified name of the Corda state to monitor | + + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/GetMonitorTransactionsV1Response.md b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/GetMonitorTransactionsV1Response.md new file mode 100644 index 0000000000..0cb77b1b6f --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/GetMonitorTransactionsV1Response.md @@ -0,0 +1,13 @@ + +# GetMonitorTransactionsV1Response + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **kotlin.Boolean** | Flag set to true if operation completed correctly. | +**msg** | **kotlin.String** | Message describing operation status or any errors that occurred. | +**stateFullClassName** | **kotlin.String** | The fully qualified name of the Corda state to monitor | [optional] +**tx** | [**kotlin.collections.List<GetMonitorTransactionsV1ResponseTx>**](GetMonitorTransactionsV1ResponseTx.md) | | [optional] + + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/GetMonitorTransactionsV1ResponseTx.md b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/GetMonitorTransactionsV1ResponseTx.md new file mode 100644 index 0000000000..33c7fb2f85 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/GetMonitorTransactionsV1ResponseTx.md @@ -0,0 +1,11 @@ + +# GetMonitorTransactionsV1ResponseTx + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**index** | **kotlin.String** | | [optional] +**`data`** | **kotlin.String** | | [optional] + + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/InvokeContractV1Request.md b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/InvokeContractV1Request.md new file mode 100644 index 0000000000..43bd152492 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/InvokeContractV1Request.md @@ -0,0 +1,13 @@ + +# InvokeContractV1Request + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**flowFullClassName** | **kotlin.String** | The fully qualified name of the Corda flow to invoke | +**flowInvocationType** | [**FlowInvocationType**](FlowInvocationType.md) | | +**params** | [**kotlin.collections.List<JvmObject>**](JvmObject.md) | The list of arguments to pass in to the contract method being invoked. | +**timeoutMs** | **kotlin.Int** | The amount of milliseconds to wait for a transaction receipt beforegiving up and crashing. | [optional] + + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/InvokeContractV1Response.md b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/InvokeContractV1Response.md new file mode 100644 index 0000000000..b328cd3c75 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/InvokeContractV1Response.md @@ -0,0 +1,14 @@ + +# InvokeContractV1Response + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **kotlin.Boolean** | | +**callOutput** | [**kotlin.Any**](.md) | Data returned from the JVM when no transaction is running | +**flowId** | **kotlin.String** | The id for the flow handle | +**transactionId** | **kotlin.String** | The net.corda.core.flows.StateMachineRunId value returned by the flow execution. | [optional] +**progress** | **kotlin.collections.List<kotlin.String>** | An array of strings representing the aggregated stream of progress updates provided by a *tracked* flow invocation. If the flow invocation was not tracked, this array is still returned, but as empty. | [optional] + + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/JarFile.md b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/JarFile.md new file mode 100644 index 0000000000..faef5ca02a --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/JarFile.md @@ -0,0 +1,12 @@ + +# JarFile + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**filename** | **kotlin.String** | | +**hasDbMigrations** | **kotlin.Boolean** | Indicates whether the cordapp jar in question contains any embedded migrations that Cactus can/should execute between copying the jar into the cordapp directory and starting the node back up. | +**contentBase64** | **kotlin.String** | | + + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/JvmObject.md b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/JvmObject.md new file mode 100644 index 0000000000..2eee76aba2 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/JvmObject.md @@ -0,0 +1,13 @@ + +# JvmObject + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**jvmTypeKind** | [**JvmTypeKind**](JvmTypeKind.md) | | +**jvmType** | [**JvmType**](JvmType.md) | | +**primitiveValue** | [**kotlin.Any**](.md) | | [optional] +**jvmCtorArgs** | [**kotlin.collections.List<JvmObject>**](JvmObject.md) | | [optional] + + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/JvmType.md b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/JvmType.md new file mode 100644 index 0000000000..bca84cf124 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/JvmType.md @@ -0,0 +1,12 @@ + +# JvmType + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**fqClassName** | **kotlin.String** | | +**constructorName** | **kotlin.String** | This parameter is used to specify that the function used to construct this JvmType is not a constructor function but instead is a factory function. Setting this parameter will cause the plugin to look up methods of the class denoted by fqClassName instead of its constructors. | [optional] +**invocationTarget** | [**JvmObject**](JvmObject.md) | | [optional] + + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/JvmTypeKind.md b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/JvmTypeKind.md new file mode 100644 index 0000000000..3b2d350547 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/JvmTypeKind.md @@ -0,0 +1,12 @@ + +# JvmTypeKind + +## Enum + + + * `pRIMITIVE` (value: `"PRIMITIVE"`) + + * `rEFERENCE` (value: `"REFERENCE"`) + + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/ListFlowsV1Request.md b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/ListFlowsV1Request.md new file mode 100644 index 0000000000..d7c3f84a8f --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/ListFlowsV1Request.md @@ -0,0 +1,10 @@ + +# ListFlowsV1Request + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**filter** | **kotlin.String** | | [optional] + + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/ListFlowsV1Response.md b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/ListFlowsV1Response.md new file mode 100644 index 0000000000..4049ed8171 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/ListFlowsV1Response.md @@ -0,0 +1,10 @@ + +# ListFlowsV1Response + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**flowNames** | **kotlin.collections.List<kotlin.String>** | An array of strings storing the names of the flows as returned by the flowList Corda RPC. | + + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/NetworkHostAndPort.md b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/NetworkHostAndPort.md new file mode 100644 index 0000000000..ffd7f6dc04 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/NetworkHostAndPort.md @@ -0,0 +1,11 @@ + +# NetworkHostAndPort + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**host** | **kotlin.String** | | +**port** | [**java.math.BigDecimal**](java.math.BigDecimal.md) | | + + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/NodeDiagnosticInfo.md b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/NodeDiagnosticInfo.md new file mode 100644 index 0000000000..680439dd48 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/NodeDiagnosticInfo.md @@ -0,0 +1,14 @@ + +# NodeDiagnosticInfo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cordapps** | [**kotlin.collections.List<CordappInfo>**](CordappInfo.md) | A list of CorDapps currently installed on this node | +**platformVersion** | **kotlin.Int** | The platform version of this node. This number represents a released API version, and should be used to make functionality decisions (e.g. enabling an app feature only if an underlying platform feature exists) | +**revision** | **kotlin.String** | The git commit hash this node was built from | +**vendor** | **kotlin.String** | The vendor of this node | +**version** | **kotlin.String** | The current node version string, e.g. 4.3, 4.4-SNAPSHOT. Note that this string is effectively freeform, and so should only be used for providing diagnostic information. It should not be used to make functionality decisions (the platformVersion is a better fit for this). | + + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/NodeInfo.md b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/NodeInfo.md new file mode 100644 index 0000000000..6ff905284e --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/NodeInfo.md @@ -0,0 +1,14 @@ + +# NodeInfo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**addresses** | [**kotlin.collections.List<NetworkHostAndPort>**](NetworkHostAndPort.md) | | +**platformVersion** | **kotlin.Int** | | +**serial** | [**java.math.BigDecimal**](java.math.BigDecimal.md) | | +**legalIdentities** | [**kotlin.collections.List<Party>**](Party.md) | | +**legalIdentitiesAndCerts** | [**kotlin.collections.List<kotlin.Any>**](kotlin.Any.md) | | + + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/Party.md b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/Party.md new file mode 100644 index 0000000000..b46526eb41 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/Party.md @@ -0,0 +1,11 @@ + +# Party + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | [**CordaX500Name**](CordaX500Name.md) | | +**owningKey** | [**PublicKey**](PublicKey.md) | | + + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/PublicKey.md b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/PublicKey.md new file mode 100644 index 0000000000..b4016bb27f --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/PublicKey.md @@ -0,0 +1,12 @@ + +# PublicKey + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**algorithm** | **kotlin.String** | | +**format** | **kotlin.String** | | +**encoded** | **kotlin.String** | | + + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/SHA256.md b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/SHA256.md new file mode 100644 index 0000000000..96fd318de1 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/SHA256.md @@ -0,0 +1,12 @@ + +# SHA256 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bytes** | **kotlin.String** | | +**offset** | **kotlin.Int** | | +**propertySize** | **kotlin.Int** | | + + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/StartMonitorV1Request.md b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/StartMonitorV1Request.md new file mode 100644 index 0000000000..cc682ccfca --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/StartMonitorV1Request.md @@ -0,0 +1,11 @@ + +# StartMonitorV1Request + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**clientAppId** | **kotlin.String** | ID of a client application that wants to monitor the state changes | +**stateFullClassName** | **kotlin.String** | The fully qualified name of the Corda state to monitor | + + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/StartMonitorV1Response.md b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/StartMonitorV1Response.md new file mode 100644 index 0000000000..3cedbfce1d --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/StartMonitorV1Response.md @@ -0,0 +1,11 @@ + +# StartMonitorV1Response + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **kotlin.Boolean** | Flag set to true if monitoring started correctly. | +**msg** | **kotlin.String** | Message describing operation status or any errors that occurred. | + + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/StopMonitorV1Request.md b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/StopMonitorV1Request.md new file mode 100644 index 0000000000..7b521a5ce0 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/StopMonitorV1Request.md @@ -0,0 +1,11 @@ + +# StopMonitorV1Request + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**clientAppId** | **kotlin.String** | ID of a client application that wants to monitor the state changes | +**stateFullClassName** | **kotlin.String** | The fully qualified name of the Corda state to monitor | + + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/StopMonitorV1Response.md b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/StopMonitorV1Response.md new file mode 100644 index 0000000000..9f5a64db54 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/StopMonitorV1Response.md @@ -0,0 +1,11 @@ + +# StopMonitorV1Response + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **kotlin.Boolean** | Flag set to true if operation completed correctly. | +**msg** | **kotlin.String** | Message describing operation status or any errors that occurred. | + + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/X500Principal.md b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/X500Principal.md new file mode 100644 index 0000000000..424b36a938 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/docs/X500Principal.md @@ -0,0 +1,11 @@ + +# X500Principal + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **kotlin.String** | | +**encoded** | **kotlin.String** | Base64 encoded public key | + + + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/gradle/wrapper/gradle-wrapper.jar b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 0000000000..e708b1c023 Binary files /dev/null and b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/gradle/wrapper/gradle-wrapper.jar differ diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/gradle/wrapper/gradle-wrapper.properties b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000000..8cf6eb5ad2 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,5 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-all.zip +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/gradlew b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/gradlew new file mode 100644 index 0000000000..4f906e0c81 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/gradlew @@ -0,0 +1,185 @@ +#!/usr/bin/env sh + +# +# Copyright 2015 the original author or authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +############################################################################## +## +## Gradle start up script for UN*X +## +############################################################################## + +# Attempt to set APP_HOME +# Resolve links: $0 may be a link +PRG="$0" +# Need this for relative symlinks. +while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG=`dirname "$PRG"`"/$link" + fi +done +SAVED="`pwd`" +cd "`dirname \"$PRG\"`/" >/dev/null +APP_HOME="`pwd -P`" +cd "$SAVED" >/dev/null + +APP_NAME="Gradle" +APP_BASE_NAME=`basename "$0"` + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD="maximum" + +warn () { + echo "$*" +} + +die () { + echo + echo "$*" + echo + exit 1 +} + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "`uname`" in + CYGWIN* ) + cygwin=true + ;; + Darwin* ) + darwin=true + ;; + MINGW* ) + msys=true + ;; + NONSTOP* ) + nonstop=true + ;; +esac + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + else + JAVACMD="$JAVA_HOME/bin/java" + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD="java" + which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." +fi + +# Increase the maximum file descriptors if we can. +if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then + MAX_FD_LIMIT=`ulimit -H -n` + if [ $? -eq 0 ] ; then + if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then + MAX_FD="$MAX_FD_LIMIT" + fi + ulimit -n $MAX_FD + if [ $? -ne 0 ] ; then + warn "Could not set maximum file descriptor limit: $MAX_FD" + fi + else + warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" + fi +fi + +# For Darwin, add options to specify how the application appears in the dock +if $darwin; then + GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" +fi + +# For Cygwin or MSYS, switch paths to Windows format before running java +if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then + APP_HOME=`cygpath --path --mixed "$APP_HOME"` + CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` + + JAVACMD=`cygpath --unix "$JAVACMD"` + + # We build the pattern for arguments to be converted via cygpath + ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` + SEP="" + for dir in $ROOTDIRSRAW ; do + ROOTDIRS="$ROOTDIRS$SEP$dir" + SEP="|" + done + OURCYGPATTERN="(^($ROOTDIRS))" + # Add a user-defined pattern to the cygpath arguments + if [ "$GRADLE_CYGPATTERN" != "" ] ; then + OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" + fi + # Now convert the arguments - kludge to limit ourselves to /bin/sh + i=0 + for arg in "$@" ; do + CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` + CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option + + if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition + eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` + else + eval `echo args$i`="\"$arg\"" + fi + i=`expr $i + 1` + done + case $i in + 0) set -- ;; + 1) set -- "$args0" ;; + 2) set -- "$args0" "$args1" ;; + 3) set -- "$args0" "$args1" "$args2" ;; + 4) set -- "$args0" "$args1" "$args2" "$args3" ;; + 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; + 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; + 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; + 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; + 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; + esac +fi + +# Escape application args +save () { + for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done + echo " " +} +APP_ARGS=`save "$@"` + +# Collect all arguments for the java command, following the shell quoting and substitution rules +eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" + +exec "$JAVACMD" "$@" diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/gradlew.bat b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/gradlew.bat new file mode 100644 index 0000000000..107acd32c4 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/gradlew.bat @@ -0,0 +1,89 @@ +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem + +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if "%ERRORLEVEL%" == "0" goto execute + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto execute + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* + +:end +@rem End local scope for the variables with windows NT shell +if "%ERRORLEVEL%"=="0" goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 +exit /b 1 + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/settings.gradle b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/settings.gradle new file mode 100644 index 0000000000..391dcea81d --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/settings.gradle @@ -0,0 +1,2 @@ + +rootProject.name = 'kotlin-client' \ No newline at end of file diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/apis/DefaultApi.kt b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/apis/DefaultApi.kt new file mode 100644 index 0000000000..9d3fafef2f --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/apis/DefaultApi.kt @@ -0,0 +1,590 @@ +/** + * Hyperledger Cactus Plugin - Connector Corda + * + * Can perform basic tasks on a Corda ledger + * + * The version of the OpenAPI document: 0.3.0 + * + * + * Please note: + * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * Do not edit this file manually. + */ + +@file:Suppress( + "ArrayInDataClass", + "EnumEntryName", + "RemoveRedundantQualifierName", + "UnusedImport" +) + +package org.openapitools.client.apis + +import org.openapitools.client.models.ClearMonitorTransactionsV1Request +import org.openapitools.client.models.ClearMonitorTransactionsV1Response +import org.openapitools.client.models.DeployContractJarsBadRequestV1Response +import org.openapitools.client.models.DeployContractJarsSuccessV1Response +import org.openapitools.client.models.DeployContractJarsV1Request +import org.openapitools.client.models.DiagnoseNodeV1Request +import org.openapitools.client.models.DiagnoseNodeV1Response +import org.openapitools.client.models.GetMonitorTransactionsV1Request +import org.openapitools.client.models.GetMonitorTransactionsV1Response +import org.openapitools.client.models.InvokeContractV1Request +import org.openapitools.client.models.InvokeContractV1Response +import org.openapitools.client.models.ListFlowsV1Request +import org.openapitools.client.models.ListFlowsV1Response +import org.openapitools.client.models.NodeInfo +import org.openapitools.client.models.StartMonitorV1Request +import org.openapitools.client.models.StartMonitorV1Response +import org.openapitools.client.models.StopMonitorV1Request +import org.openapitools.client.models.StopMonitorV1Response + +import org.openapitools.client.infrastructure.ApiClient +import org.openapitools.client.infrastructure.ClientException +import org.openapitools.client.infrastructure.ClientError +import org.openapitools.client.infrastructure.ServerException +import org.openapitools.client.infrastructure.ServerError +import org.openapitools.client.infrastructure.MultiValueMap +import org.openapitools.client.infrastructure.RequestConfig +import org.openapitools.client.infrastructure.RequestMethod +import org.openapitools.client.infrastructure.ResponseType +import org.openapitools.client.infrastructure.Success +import org.openapitools.client.infrastructure.toMultiValue + +class DefaultApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { + companion object { + @JvmStatic + val defaultBasePath: String by lazy { + System.getProperties().getProperty("org.openapitools.client.baseUrl", "http://localhost") + } + } + + /** + * Clear transactions from internal store so they'll not be available by GetMonitorTransactionsV1 anymore. + * + * @param clearMonitorTransactionsV1Request (optional) + * @return ClearMonitorTransactionsV1Response + * @throws UnsupportedOperationException If the API returns an informational or redirection response + * @throws ClientException If the API returns a client error response + * @throws ServerException If the API returns a server error response + */ + @Suppress("UNCHECKED_CAST") + @Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class) + fun clearMonitorTransactionsV1(clearMonitorTransactionsV1Request: ClearMonitorTransactionsV1Request?) : ClearMonitorTransactionsV1Response { + val localVariableConfig = clearMonitorTransactionsV1RequestConfig(clearMonitorTransactionsV1Request = clearMonitorTransactionsV1Request) + + val localVarResponse = request( + localVariableConfig + ) + + return when (localVarResponse.responseType) { + ResponseType.Success -> (localVarResponse as Success<*>).data as ClearMonitorTransactionsV1Response + ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.") + ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.") + ResponseType.ClientError -> { + val localVarError = localVarResponse as ClientError<*> + throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse) + } + ResponseType.ServerError -> { + val localVarError = localVarResponse as ServerError<*> + throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse) + } + } + } + + /** + * To obtain the request config of the operation clearMonitorTransactionsV1 + * + * @param clearMonitorTransactionsV1Request (optional) + * @return RequestConfig + */ + fun clearMonitorTransactionsV1RequestConfig(clearMonitorTransactionsV1Request: ClearMonitorTransactionsV1Request?) : RequestConfig { + val localVariableBody = clearMonitorTransactionsV1Request + val localVariableQuery: MultiValueMap = mutableMapOf() + val localVariableHeaders: MutableMap = mutableMapOf() + + return RequestConfig( + method = RequestMethod.DELETE, + path = "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/clear-monitor-transactions", + query = localVariableQuery, + headers = localVariableHeaders, + body = localVariableBody + ) + } + + /** + * Deploys a set of jar files (Cordapps, e.g. the contracts in Corda speak). + * + * @param deployContractJarsV1Request (optional) + * @return DeployContractJarsSuccessV1Response + * @throws UnsupportedOperationException If the API returns an informational or redirection response + * @throws ClientException If the API returns a client error response + * @throws ServerException If the API returns a server error response + */ + @Suppress("UNCHECKED_CAST") + @Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class) + fun deployContractJarsV1(deployContractJarsV1Request: DeployContractJarsV1Request?) : DeployContractJarsSuccessV1Response { + val localVariableConfig = deployContractJarsV1RequestConfig(deployContractJarsV1Request = deployContractJarsV1Request) + + val localVarResponse = request( + localVariableConfig + ) + + return when (localVarResponse.responseType) { + ResponseType.Success -> (localVarResponse as Success<*>).data as DeployContractJarsSuccessV1Response + ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.") + ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.") + ResponseType.ClientError -> { + val localVarError = localVarResponse as ClientError<*> + throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse) + } + ResponseType.ServerError -> { + val localVarError = localVarResponse as ServerError<*> + throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse) + } + } + } + + /** + * To obtain the request config of the operation deployContractJarsV1 + * + * @param deployContractJarsV1Request (optional) + * @return RequestConfig + */ + fun deployContractJarsV1RequestConfig(deployContractJarsV1Request: DeployContractJarsV1Request?) : RequestConfig { + val localVariableBody = deployContractJarsV1Request + val localVariableQuery: MultiValueMap = mutableMapOf() + val localVariableHeaders: MutableMap = mutableMapOf() + + return RequestConfig( + method = RequestMethod.POST, + path = "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/deploy-contract-jars", + query = localVariableQuery, + headers = localVariableHeaders, + body = localVariableBody + ) + } + + /** + * + * Responds with diagnostic information about the Corda node + * @param diagnoseNodeV1Request (optional) + * @return DiagnoseNodeV1Response + * @throws UnsupportedOperationException If the API returns an informational or redirection response + * @throws ClientException If the API returns a client error response + * @throws ServerException If the API returns a server error response + */ + @Suppress("UNCHECKED_CAST") + @Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class) + fun diagnoseNodeV1(diagnoseNodeV1Request: DiagnoseNodeV1Request?) : DiagnoseNodeV1Response { + val localVariableConfig = diagnoseNodeV1RequestConfig(diagnoseNodeV1Request = diagnoseNodeV1Request) + + val localVarResponse = request( + localVariableConfig + ) + + return when (localVarResponse.responseType) { + ResponseType.Success -> (localVarResponse as Success<*>).data as DiagnoseNodeV1Response + ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.") + ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.") + ResponseType.ClientError -> { + val localVarError = localVarResponse as ClientError<*> + throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse) + } + ResponseType.ServerError -> { + val localVarError = localVarResponse as ServerError<*> + throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse) + } + } + } + + /** + * To obtain the request config of the operation diagnoseNodeV1 + * + * @param diagnoseNodeV1Request (optional) + * @return RequestConfig + */ + fun diagnoseNodeV1RequestConfig(diagnoseNodeV1Request: DiagnoseNodeV1Request?) : RequestConfig { + val localVariableBody = diagnoseNodeV1Request + val localVariableQuery: MultiValueMap = mutableMapOf() + val localVariableHeaders: MutableMap = mutableMapOf() + + return RequestConfig( + method = RequestMethod.POST, + path = "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/diagnose-node", + query = localVariableQuery, + headers = localVariableHeaders, + body = localVariableBody + ) + } + + /** + * Get transactions for monitored state classes. + * + * @param getMonitorTransactionsV1Request (optional) + * @return GetMonitorTransactionsV1Response + * @throws UnsupportedOperationException If the API returns an informational or redirection response + * @throws ClientException If the API returns a client error response + * @throws ServerException If the API returns a server error response + */ + @Suppress("UNCHECKED_CAST") + @Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class) + fun getMonitorTransactionsV1(getMonitorTransactionsV1Request: GetMonitorTransactionsV1Request?) : GetMonitorTransactionsV1Response { + val localVariableConfig = getMonitorTransactionsV1RequestConfig(getMonitorTransactionsV1Request = getMonitorTransactionsV1Request) + + val localVarResponse = request( + localVariableConfig + ) + + return when (localVarResponse.responseType) { + ResponseType.Success -> (localVarResponse as Success<*>).data as GetMonitorTransactionsV1Response + ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.") + ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.") + ResponseType.ClientError -> { + val localVarError = localVarResponse as ClientError<*> + throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse) + } + ResponseType.ServerError -> { + val localVarError = localVarResponse as ServerError<*> + throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse) + } + } + } + + /** + * To obtain the request config of the operation getMonitorTransactionsV1 + * + * @param getMonitorTransactionsV1Request (optional) + * @return RequestConfig + */ + fun getMonitorTransactionsV1RequestConfig(getMonitorTransactionsV1Request: GetMonitorTransactionsV1Request?) : RequestConfig { + val localVariableBody = getMonitorTransactionsV1Request + val localVariableQuery: MultiValueMap = mutableMapOf() + val localVariableHeaders: MutableMap = mutableMapOf() + + return RequestConfig( + method = RequestMethod.GET, + path = "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/get-monitor-transactions", + query = localVariableQuery, + headers = localVariableHeaders, + body = localVariableBody + ) + } + + /** + * Get the Prometheus Metrics + * + * @return kotlin.String + * @throws UnsupportedOperationException If the API returns an informational or redirection response + * @throws ClientException If the API returns a client error response + * @throws ServerException If the API returns a server error response + */ + @Suppress("UNCHECKED_CAST") + @Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class) + fun getPrometheusMetricsV1() : kotlin.String { + val localVariableConfig = getPrometheusMetricsV1RequestConfig() + + val localVarResponse = request( + localVariableConfig + ) + + return when (localVarResponse.responseType) { + ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.String + ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.") + ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.") + ResponseType.ClientError -> { + val localVarError = localVarResponse as ClientError<*> + throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse) + } + ResponseType.ServerError -> { + val localVarError = localVarResponse as ServerError<*> + throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse) + } + } + } + + /** + * To obtain the request config of the operation getPrometheusMetricsV1 + * + * @return RequestConfig + */ + fun getPrometheusMetricsV1RequestConfig() : RequestConfig { + val localVariableBody = null + val localVariableQuery: MultiValueMap = mutableMapOf() + val localVariableHeaders: MutableMap = mutableMapOf() + + return RequestConfig( + method = RequestMethod.GET, + path = "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/get-prometheus-exporter-metrics", + query = localVariableQuery, + headers = localVariableHeaders, + body = localVariableBody + ) + } + + /** + * Invokes a contract on a Corda ledger (e.g. a flow) + * + * @param invokeContractV1Request (optional) + * @return InvokeContractV1Response + * @throws UnsupportedOperationException If the API returns an informational or redirection response + * @throws ClientException If the API returns a client error response + * @throws ServerException If the API returns a server error response + */ + @Suppress("UNCHECKED_CAST") + @Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class) + fun invokeContractV1(invokeContractV1Request: InvokeContractV1Request?) : InvokeContractV1Response { + val localVariableConfig = invokeContractV1RequestConfig(invokeContractV1Request = invokeContractV1Request) + + val localVarResponse = request( + localVariableConfig + ) + + return when (localVarResponse.responseType) { + ResponseType.Success -> (localVarResponse as Success<*>).data as InvokeContractV1Response + ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.") + ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.") + ResponseType.ClientError -> { + val localVarError = localVarResponse as ClientError<*> + throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse) + } + ResponseType.ServerError -> { + val localVarError = localVarResponse as ServerError<*> + throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse) + } + } + } + + /** + * To obtain the request config of the operation invokeContractV1 + * + * @param invokeContractV1Request (optional) + * @return RequestConfig + */ + fun invokeContractV1RequestConfig(invokeContractV1Request: InvokeContractV1Request?) : RequestConfig { + val localVariableBody = invokeContractV1Request + val localVariableQuery: MultiValueMap = mutableMapOf() + val localVariableHeaders: MutableMap = mutableMapOf() + + return RequestConfig( + method = RequestMethod.POST, + path = "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/invoke-contract", + query = localVariableQuery, + headers = localVariableHeaders, + body = localVariableBody + ) + } + + /** + * + * Responds with a list of the flows on the Corda node. + * @param listFlowsV1Request (optional) + * @return ListFlowsV1Response + * @throws UnsupportedOperationException If the API returns an informational or redirection response + * @throws ClientException If the API returns a client error response + * @throws ServerException If the API returns a server error response + */ + @Suppress("UNCHECKED_CAST") + @Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class) + fun listFlowsV1(listFlowsV1Request: ListFlowsV1Request?) : ListFlowsV1Response { + val localVariableConfig = listFlowsV1RequestConfig(listFlowsV1Request = listFlowsV1Request) + + val localVarResponse = request( + localVariableConfig + ) + + return when (localVarResponse.responseType) { + ResponseType.Success -> (localVarResponse as Success<*>).data as ListFlowsV1Response + ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.") + ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.") + ResponseType.ClientError -> { + val localVarError = localVarResponse as ClientError<*> + throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse) + } + ResponseType.ServerError -> { + val localVarError = localVarResponse as ServerError<*> + throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse) + } + } + } + + /** + * To obtain the request config of the operation listFlowsV1 + * + * @param listFlowsV1Request (optional) + * @return RequestConfig + */ + fun listFlowsV1RequestConfig(listFlowsV1Request: ListFlowsV1Request?) : RequestConfig { + val localVariableBody = listFlowsV1Request + val localVariableQuery: MultiValueMap = mutableMapOf() + val localVariableHeaders: MutableMap = mutableMapOf() + + return RequestConfig( + method = RequestMethod.POST, + path = "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/list-flows", + query = localVariableQuery, + headers = localVariableHeaders, + body = localVariableBody + ) + } + + /** + * + * Responds with a snapshot of the network map as provided by the Corda RPC call: net.corda.core.messaging.CordaRPCOps public abstract fun networkMapSnapshot(): List<NodeInfo> + * @param body (optional) + * @return kotlin.collections.List + * @throws UnsupportedOperationException If the API returns an informational or redirection response + * @throws ClientException If the API returns a client error response + * @throws ServerException If the API returns a server error response + */ + @Suppress("UNCHECKED_CAST") + @Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class) + fun networkMapV1(body: kotlin.Any?) : kotlin.collections.List { + val localVariableConfig = networkMapV1RequestConfig(body = body) + + val localVarResponse = request>( + localVariableConfig + ) + + return when (localVarResponse.responseType) { + ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.collections.List + ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.") + ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.") + ResponseType.ClientError -> { + val localVarError = localVarResponse as ClientError<*> + throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse) + } + ResponseType.ServerError -> { + val localVarError = localVarResponse as ServerError<*> + throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse) + } + } + } + + /** + * To obtain the request config of the operation networkMapV1 + * + * @param body (optional) + * @return RequestConfig + */ + fun networkMapV1RequestConfig(body: kotlin.Any?) : RequestConfig { + val localVariableBody = body + val localVariableQuery: MultiValueMap = mutableMapOf() + val localVariableHeaders: MutableMap = mutableMapOf() + + return RequestConfig( + method = RequestMethod.POST, + path = "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/network-map", + query = localVariableQuery, + headers = localVariableHeaders, + body = localVariableBody + ) + } + + /** + * Start monitoring corda changes (transactions) of given state class + * + * @param startMonitorV1Request (optional) + * @return StartMonitorV1Response + * @throws UnsupportedOperationException If the API returns an informational or redirection response + * @throws ClientException If the API returns a client error response + * @throws ServerException If the API returns a server error response + */ + @Suppress("UNCHECKED_CAST") + @Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class) + fun startMonitorV1(startMonitorV1Request: StartMonitorV1Request?) : StartMonitorV1Response { + val localVariableConfig = startMonitorV1RequestConfig(startMonitorV1Request = startMonitorV1Request) + + val localVarResponse = request( + localVariableConfig + ) + + return when (localVarResponse.responseType) { + ResponseType.Success -> (localVarResponse as Success<*>).data as StartMonitorV1Response + ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.") + ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.") + ResponseType.ClientError -> { + val localVarError = localVarResponse as ClientError<*> + throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse) + } + ResponseType.ServerError -> { + val localVarError = localVarResponse as ServerError<*> + throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse) + } + } + } + + /** + * To obtain the request config of the operation startMonitorV1 + * + * @param startMonitorV1Request (optional) + * @return RequestConfig + */ + fun startMonitorV1RequestConfig(startMonitorV1Request: StartMonitorV1Request?) : RequestConfig { + val localVariableBody = startMonitorV1Request + val localVariableQuery: MultiValueMap = mutableMapOf() + val localVariableHeaders: MutableMap = mutableMapOf() + + return RequestConfig( + method = RequestMethod.POST, + path = "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/start-monitor", + query = localVariableQuery, + headers = localVariableHeaders, + body = localVariableBody + ) + } + + /** + * Stop monitoring corda changes (transactions) of given state class + * + * @param stopMonitorV1Request (optional) + * @return StopMonitorV1Response + * @throws UnsupportedOperationException If the API returns an informational or redirection response + * @throws ClientException If the API returns a client error response + * @throws ServerException If the API returns a server error response + */ + @Suppress("UNCHECKED_CAST") + @Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class) + fun stopMonitorV1(stopMonitorV1Request: StopMonitorV1Request?) : StopMonitorV1Response { + val localVariableConfig = stopMonitorV1RequestConfig(stopMonitorV1Request = stopMonitorV1Request) + + val localVarResponse = request( + localVariableConfig + ) + + return when (localVarResponse.responseType) { + ResponseType.Success -> (localVarResponse as Success<*>).data as StopMonitorV1Response + ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.") + ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.") + ResponseType.ClientError -> { + val localVarError = localVarResponse as ClientError<*> + throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse) + } + ResponseType.ServerError -> { + val localVarError = localVarResponse as ServerError<*> + throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse) + } + } + } + + /** + * To obtain the request config of the operation stopMonitorV1 + * + * @param stopMonitorV1Request (optional) + * @return RequestConfig + */ + fun stopMonitorV1RequestConfig(stopMonitorV1Request: StopMonitorV1Request?) : RequestConfig { + val localVariableBody = stopMonitorV1Request + val localVariableQuery: MultiValueMap = mutableMapOf() + val localVariableHeaders: MutableMap = mutableMapOf() + + return RequestConfig( + method = RequestMethod.DELETE, + path = "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-corda/stop-monitor", + query = localVariableQuery, + headers = localVariableHeaders, + body = localVariableBody + ) + } + +} diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/infrastructure/ApiAbstractions.kt b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/infrastructure/ApiAbstractions.kt new file mode 100644 index 0000000000..ef7a8f1e1a --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/infrastructure/ApiAbstractions.kt @@ -0,0 +1,23 @@ +package org.openapitools.client.infrastructure + +typealias MultiValueMap = MutableMap> + +fun collectionDelimiter(collectionFormat: String) = when(collectionFormat) { + "csv" -> "," + "tsv" -> "\t" + "pipe" -> "|" + "space" -> " " + else -> "" +} + +val defaultMultiValueConverter: (item: Any?) -> String = { item -> "$item" } + +fun toMultiValue(items: Array, collectionFormat: String, map: (item: T) -> String = defaultMultiValueConverter) + = toMultiValue(items.asIterable(), collectionFormat, map) + +fun toMultiValue(items: Iterable, collectionFormat: String, map: (item: T) -> String = defaultMultiValueConverter): List { + return when(collectionFormat) { + "multi" -> items.map(map) + else -> listOf(items.joinToString(separator = collectionDelimiter(collectionFormat), transform = map)) + } +} \ No newline at end of file diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/infrastructure/ApiClient.kt b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/infrastructure/ApiClient.kt new file mode 100644 index 0000000000..b359be1e41 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/infrastructure/ApiClient.kt @@ -0,0 +1,232 @@ +package org.openapitools.client.infrastructure + +import okhttp3.OkHttpClient +import okhttp3.RequestBody +import okhttp3.RequestBody.Companion.asRequestBody +import okhttp3.RequestBody.Companion.toRequestBody +import okhttp3.FormBody +import okhttp3.HttpUrl.Companion.toHttpUrlOrNull +import okhttp3.ResponseBody +import okhttp3.MediaType.Companion.toMediaTypeOrNull +import okhttp3.Request +import okhttp3.Headers +import okhttp3.MultipartBody +import java.io.BufferedWriter +import java.io.File +import java.io.FileWriter +import java.net.URLConnection +import java.time.LocalDate +import java.time.LocalDateTime +import java.time.LocalTime +import java.time.OffsetDateTime +import java.time.OffsetTime +import java.util.Date +import java.util.Locale +import com.squareup.moshi.adapter + +open class ApiClient(val baseUrl: String) { + companion object { + protected const val ContentType = "Content-Type" + protected const val Accept = "Accept" + protected const val Authorization = "Authorization" + protected const val JsonMediaType = "application/json" + protected const val FormDataMediaType = "multipart/form-data" + protected const val FormUrlEncMediaType = "application/x-www-form-urlencoded" + protected const val XmlMediaType = "application/xml" + + val apiKey: MutableMap = mutableMapOf() + val apiKeyPrefix: MutableMap = mutableMapOf() + var username: String? = null + var password: String? = null + var accessToken: String? = null + + @JvmStatic + val client: OkHttpClient by lazy { + builder.build() + } + + @JvmStatic + val builder: OkHttpClient.Builder = OkHttpClient.Builder() + } + + /** + * Guess Content-Type header from the given file (defaults to "application/octet-stream"). + * + * @param file The given file + * @return The guessed Content-Type + */ + protected fun guessContentTypeFromFile(file: File): String { + val contentType = URLConnection.guessContentTypeFromName(file.name) + return contentType ?: "application/octet-stream" + } + + protected inline fun requestBody(content: T, mediaType: String = JsonMediaType): RequestBody = + when { + content is File -> content.asRequestBody(mediaType.toMediaTypeOrNull()) + mediaType == FormDataMediaType -> { + MultipartBody.Builder() + .setType(MultipartBody.FORM) + .apply { + // content's type *must* be Map + @Suppress("UNCHECKED_CAST") + (content as Map).forEach { (key, value) -> + if (value is File) { + val partHeaders = Headers.headersOf( + "Content-Disposition", + "form-data; name=\"$key\"; filename=\"${value.name}\"" + ) + val fileMediaType = guessContentTypeFromFile(value).toMediaTypeOrNull() + addPart(partHeaders, value.asRequestBody(fileMediaType)) + } else { + val partHeaders = Headers.headersOf( + "Content-Disposition", + "form-data; name=\"$key\"" + ) + addPart( + partHeaders, + parameterToString(value).toRequestBody(null) + ) + } + } + }.build() + } + mediaType == FormUrlEncMediaType -> { + FormBody.Builder().apply { + // content's type *must* be Map + @Suppress("UNCHECKED_CAST") + (content as Map).forEach { (key, value) -> + add(key, parameterToString(value)) + } + }.build() + } + mediaType == JsonMediaType -> Serializer.moshi.adapter(T::class.java).toJson(content).toRequestBody( + mediaType.toMediaTypeOrNull() + ) + mediaType == XmlMediaType -> throw UnsupportedOperationException("xml not currently supported.") + // TODO: this should be extended with other serializers + else -> throw UnsupportedOperationException("requestBody currently only supports JSON body and File body.") + } + + @OptIn(ExperimentalStdlibApi::class) + protected inline fun responseBody(body: ResponseBody?, mediaType: String? = JsonMediaType): T? { + if(body == null) { + return null + } + val bodyContent = body.string() + if (bodyContent.isEmpty()) { + return null + } + if (T::class.java == File::class.java) { + // return tempfile + val f = java.nio.file.Files.createTempFile("tmp.org.openapitools.client", null).toFile() + f.deleteOnExit() + val out = BufferedWriter(FileWriter(f)) + out.write(bodyContent) + out.close() + return f as T + } + return when(mediaType) { + JsonMediaType -> Serializer.moshi.adapter().fromJson(bodyContent) + else -> throw UnsupportedOperationException("responseBody currently only supports JSON body.") + } + } + + + protected inline fun request(requestConfig: RequestConfig): ApiInfrastructureResponse { + val httpUrl = baseUrl.toHttpUrlOrNull() ?: throw IllegalStateException("baseUrl is invalid.") + + val url = httpUrl.newBuilder() + .addPathSegments(requestConfig.path.trimStart('/')) + .apply { + requestConfig.query.forEach { query -> + query.value.forEach { queryValue -> + addQueryParameter(query.key, queryValue) + } + } + }.build() + + // take content-type/accept from spec or set to default (application/json) if not defined + if (requestConfig.headers[ContentType].isNullOrEmpty()) { + requestConfig.headers[ContentType] = JsonMediaType + } + if (requestConfig.headers[Accept].isNullOrEmpty()) { + requestConfig.headers[Accept] = JsonMediaType + } + val headers = requestConfig.headers + + if(headers[ContentType] ?: "" == "") { + throw kotlin.IllegalStateException("Missing Content-Type header. This is required.") + } + + if(headers[Accept] ?: "" == "") { + throw kotlin.IllegalStateException("Missing Accept header. This is required.") + } + + // TODO: support multiple contentType options here. + val contentType = (headers[ContentType] as String).substringBefore(";").lowercase(Locale.getDefault()) + + val request = when (requestConfig.method) { + RequestMethod.DELETE -> Request.Builder().url(url).delete(requestBody(requestConfig.body, contentType)) + RequestMethod.GET -> Request.Builder().url(url) + RequestMethod.HEAD -> Request.Builder().url(url).head() + RequestMethod.PATCH -> Request.Builder().url(url).patch(requestBody(requestConfig.body, contentType)) + RequestMethod.PUT -> Request.Builder().url(url).put(requestBody(requestConfig.body, contentType)) + RequestMethod.POST -> Request.Builder().url(url).post(requestBody(requestConfig.body, contentType)) + RequestMethod.OPTIONS -> Request.Builder().url(url).method("OPTIONS", null) + }.apply { + headers.forEach { header -> addHeader(header.key, header.value) } + }.build() + + val response = client.newCall(request).execute() + val accept = response.header(ContentType)?.substringBefore(";")?.lowercase(Locale.getDefault()) + + // TODO: handle specific mapping types. e.g. Map> + return when { + response.isRedirect -> Redirection( + response.code, + response.headers.toMultimap() + ) + response.isInformational -> Informational( + response.message, + response.code, + response.headers.toMultimap() + ) + response.isSuccessful -> Success( + responseBody(response.body, accept), + response.code, + response.headers.toMultimap() + ) + response.isClientError -> ClientError( + response.message, + response.body?.string(), + response.code, + response.headers.toMultimap() + ) + else -> ServerError( + response.message, + response.body?.string(), + response.code, + response.headers.toMultimap() + ) + } + } + + protected fun parameterToString(value: Any?): String = when (value) { + null -> "" + is Array<*> -> toMultiValue(value, "csv").toString() + is Iterable<*> -> toMultiValue(value, "csv").toString() + is OffsetDateTime, is OffsetTime, is LocalDateTime, is LocalDate, is LocalTime, is Date -> + parseDateToQueryString(value) + else -> value.toString() + } + + protected inline fun parseDateToQueryString(value : T): String { + /* + .replace("\"", "") converts the json object string to an actual string for the query parameter. + The moshi or gson adapter allows a more generic solution instead of trying to use a native + formatter. It also easily allows to provide a simple way to define a custom date format pattern + inside a gson/moshi adapter. + */ + return Serializer.moshi.adapter(T::class.java).toJson(value).replace("\"", "") + } +} diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/infrastructure/ApiInfrastructureResponse.kt b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/infrastructure/ApiInfrastructureResponse.kt new file mode 100644 index 0000000000..9dc8d8dbbf --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/infrastructure/ApiInfrastructureResponse.kt @@ -0,0 +1,43 @@ +package org.openapitools.client.infrastructure + +enum class ResponseType { + Success, Informational, Redirection, ClientError, ServerError +} + +interface Response + +abstract class ApiInfrastructureResponse(val responseType: ResponseType): Response { + abstract val statusCode: Int + abstract val headers: Map> +} + +class Success( + val data: T, + override val statusCode: Int = -1, + override val headers: Map> = mapOf() +): ApiInfrastructureResponse(ResponseType.Success) + +class Informational( + val statusText: String, + override val statusCode: Int = -1, + override val headers: Map> = mapOf() +) : ApiInfrastructureResponse(ResponseType.Informational) + +class Redirection( + override val statusCode: Int = -1, + override val headers: Map> = mapOf() +) : ApiInfrastructureResponse(ResponseType.Redirection) + +class ClientError( + val message: String? = null, + val body: Any? = null, + override val statusCode: Int = -1, + override val headers: Map> = mapOf() +) : ApiInfrastructureResponse(ResponseType.ClientError) + +class ServerError( + val message: String? = null, + val body: Any? = null, + override val statusCode: Int = -1, + override val headers: Map> +): ApiInfrastructureResponse(ResponseType.ServerError) \ No newline at end of file diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/infrastructure/BigDecimalAdapter.kt b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/infrastructure/BigDecimalAdapter.kt new file mode 100644 index 0000000000..fb2c972cf8 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/infrastructure/BigDecimalAdapter.kt @@ -0,0 +1,17 @@ +package org.openapitools.client.infrastructure + +import com.squareup.moshi.FromJson +import com.squareup.moshi.ToJson +import java.math.BigDecimal + +class BigDecimalAdapter { + @ToJson + fun toJson(value: BigDecimal): String { + return value.toPlainString() + } + + @FromJson + fun fromJson(value: String): BigDecimal { + return BigDecimal(value) + } +} \ No newline at end of file diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/infrastructure/BigIntegerAdapter.kt b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/infrastructure/BigIntegerAdapter.kt new file mode 100644 index 0000000000..4b6963110c --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/infrastructure/BigIntegerAdapter.kt @@ -0,0 +1,17 @@ +package org.openapitools.client.infrastructure + +import com.squareup.moshi.FromJson +import com.squareup.moshi.ToJson +import java.math.BigInteger + +class BigIntegerAdapter { + @ToJson + fun toJson(value: BigInteger): String { + return value.toString() + } + + @FromJson + fun fromJson(value: String): BigInteger { + return BigInteger(value) + } +} \ No newline at end of file diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/infrastructure/ByteArrayAdapter.kt b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/infrastructure/ByteArrayAdapter.kt new file mode 100644 index 0000000000..ff5e2a81ee --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/infrastructure/ByteArrayAdapter.kt @@ -0,0 +1,12 @@ +package org.openapitools.client.infrastructure + +import com.squareup.moshi.FromJson +import com.squareup.moshi.ToJson + +class ByteArrayAdapter { + @ToJson + fun toJson(data: ByteArray): String = String(data) + + @FromJson + fun fromJson(data: String): ByteArray = data.toByteArray() +} diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/infrastructure/Errors.kt b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/infrastructure/Errors.kt new file mode 100644 index 0000000000..b5310e71f1 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/infrastructure/Errors.kt @@ -0,0 +1,18 @@ +@file:Suppress("unused") +package org.openapitools.client.infrastructure + +import java.lang.RuntimeException + +open class ClientException(message: kotlin.String? = null, val statusCode: Int = -1, val response: Response? = null) : RuntimeException(message) { + + companion object { + private const val serialVersionUID: Long = 123L + } +} + +open class ServerException(message: kotlin.String? = null, val statusCode: Int = -1, val response: Response? = null) : RuntimeException(message) { + + companion object { + private const val serialVersionUID: Long = 456L + } +} \ No newline at end of file diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/infrastructure/LocalDateAdapter.kt b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/infrastructure/LocalDateAdapter.kt new file mode 100644 index 0000000000..b2e1654479 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/infrastructure/LocalDateAdapter.kt @@ -0,0 +1,19 @@ +package org.openapitools.client.infrastructure + +import com.squareup.moshi.FromJson +import com.squareup.moshi.ToJson +import java.time.LocalDate +import java.time.format.DateTimeFormatter + +class LocalDateAdapter { + @ToJson + fun toJson(value: LocalDate): String { + return DateTimeFormatter.ISO_LOCAL_DATE.format(value) + } + + @FromJson + fun fromJson(value: String): LocalDate { + return LocalDate.parse(value, DateTimeFormatter.ISO_LOCAL_DATE) + } + +} diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/infrastructure/LocalDateTimeAdapter.kt b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/infrastructure/LocalDateTimeAdapter.kt new file mode 100644 index 0000000000..e082db9481 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/infrastructure/LocalDateTimeAdapter.kt @@ -0,0 +1,19 @@ +package org.openapitools.client.infrastructure + +import com.squareup.moshi.FromJson +import com.squareup.moshi.ToJson +import java.time.LocalDateTime +import java.time.format.DateTimeFormatter + +class LocalDateTimeAdapter { + @ToJson + fun toJson(value: LocalDateTime): String { + return DateTimeFormatter.ISO_LOCAL_DATE_TIME.format(value) + } + + @FromJson + fun fromJson(value: String): LocalDateTime { + return LocalDateTime.parse(value, DateTimeFormatter.ISO_LOCAL_DATE_TIME) + } + +} diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/infrastructure/OffsetDateTimeAdapter.kt b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/infrastructure/OffsetDateTimeAdapter.kt new file mode 100644 index 0000000000..87437871a3 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/infrastructure/OffsetDateTimeAdapter.kt @@ -0,0 +1,19 @@ +package org.openapitools.client.infrastructure + +import com.squareup.moshi.FromJson +import com.squareup.moshi.ToJson +import java.time.OffsetDateTime +import java.time.format.DateTimeFormatter + +class OffsetDateTimeAdapter { + @ToJson + fun toJson(value: OffsetDateTime): String { + return DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(value) + } + + @FromJson + fun fromJson(value: String): OffsetDateTime { + return OffsetDateTime.parse(value, DateTimeFormatter.ISO_OFFSET_DATE_TIME) + } + +} diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/infrastructure/RequestConfig.kt b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/infrastructure/RequestConfig.kt new file mode 100644 index 0000000000..7e948e1dd0 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/infrastructure/RequestConfig.kt @@ -0,0 +1,17 @@ +package org.openapitools.client.infrastructure + +/** + * Defines a config object for a given request. + * NOTE: This object doesn't include 'body' because it + * allows for caching of the constructed object + * for many request definitions. + * NOTE: Headers is a Map because rfc2616 defines + * multi-valued headers as csv-only. + */ +data class RequestConfig( + val method: RequestMethod, + val path: String, + val headers: MutableMap = mutableMapOf(), + val query: MutableMap> = mutableMapOf(), + val body: T? = null +) \ No newline at end of file diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/infrastructure/RequestMethod.kt b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/infrastructure/RequestMethod.kt new file mode 100644 index 0000000000..931b12b8bd --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/infrastructure/RequestMethod.kt @@ -0,0 +1,8 @@ +package org.openapitools.client.infrastructure + +/** + * Provides enumerated HTTP verbs + */ +enum class RequestMethod { + GET, DELETE, HEAD, OPTIONS, PATCH, POST, PUT +} \ No newline at end of file diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/infrastructure/ResponseExtensions.kt b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/infrastructure/ResponseExtensions.kt new file mode 100644 index 0000000000..9bd2790dc1 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/infrastructure/ResponseExtensions.kt @@ -0,0 +1,24 @@ +package org.openapitools.client.infrastructure + +import okhttp3.Response + +/** + * Provides an extension to evaluation whether the response is a 1xx code + */ +val Response.isInformational : Boolean get() = this.code in 100..199 + +/** + * Provides an extension to evaluation whether the response is a 3xx code + */ +@Suppress("EXTENSION_SHADOWED_BY_MEMBER") +val Response.isRedirect : Boolean get() = this.code in 300..399 + +/** + * Provides an extension to evaluation whether the response is a 4xx code + */ +val Response.isClientError : Boolean get() = this.code in 400..499 + +/** + * Provides an extension to evaluation whether the response is a 5xx (Standard) through 999 (non-standard) code + */ +val Response.isServerError : Boolean get() = this.code in 500..999 diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/infrastructure/Serializer.kt b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/infrastructure/Serializer.kt new file mode 100644 index 0000000000..e22592e47d --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/infrastructure/Serializer.kt @@ -0,0 +1,23 @@ +package org.openapitools.client.infrastructure + +import com.squareup.moshi.Moshi +import com.squareup.moshi.kotlin.reflect.KotlinJsonAdapterFactory + +object Serializer { + @JvmStatic + val moshiBuilder: Moshi.Builder = Moshi.Builder() + .add(OffsetDateTimeAdapter()) + .add(LocalDateTimeAdapter()) + .add(LocalDateAdapter()) + .add(UUIDAdapter()) + .add(ByteArrayAdapter()) + .add(URIAdapter()) + .add(KotlinJsonAdapterFactory()) + .add(BigDecimalAdapter()) + .add(BigIntegerAdapter()) + + @JvmStatic + val moshi: Moshi by lazy { + moshiBuilder.build() + } +} diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/infrastructure/URIAdapter.kt b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/infrastructure/URIAdapter.kt new file mode 100644 index 0000000000..927522757d --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/infrastructure/URIAdapter.kt @@ -0,0 +1,13 @@ +package org.openapitools.client.infrastructure + +import com.squareup.moshi.FromJson +import com.squareup.moshi.ToJson +import java.net.URI + +class URIAdapter { + @ToJson + fun toJson(uri: URI) = uri.toString() + + @FromJson + fun fromJson(s: String): URI = URI.create(s) +} diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/infrastructure/UUIDAdapter.kt b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/infrastructure/UUIDAdapter.kt new file mode 100644 index 0000000000..7ccf7dc25d --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/infrastructure/UUIDAdapter.kt @@ -0,0 +1,13 @@ +package org.openapitools.client.infrastructure + +import com.squareup.moshi.FromJson +import com.squareup.moshi.ToJson +import java.util.UUID + +class UUIDAdapter { + @ToJson + fun toJson(uuid: UUID) = uuid.toString() + + @FromJson + fun fromJson(s: String): UUID = UUID.fromString(s) +} diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/ClearMonitorTransactionsV1Request.kt b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/ClearMonitorTransactionsV1Request.kt new file mode 100644 index 0000000000..25aba32af7 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/ClearMonitorTransactionsV1Request.kt @@ -0,0 +1,48 @@ +/** + * Hyperledger Cactus Plugin - Connector Corda + * + * Can perform basic tasks on a Corda ledger + * + * The version of the OpenAPI document: 0.3.0 + * + * + * Please note: + * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * Do not edit this file manually. + */ + +@file:Suppress( + "ArrayInDataClass", + "EnumEntryName", + "RemoveRedundantQualifierName", + "UnusedImport" +) + +package org.openapitools.client.models + + +import com.squareup.moshi.Json + +/** + * + * + * @param clientAppId ID of a client application that wants to monitor the state changes + * @param stateFullClassName The fully qualified name of the Corda state to monitor + * @param txIndexes + */ + +data class ClearMonitorTransactionsV1Request ( + + /* ID of a client application that wants to monitor the state changes */ + @Json(name = "clientAppId") + val clientAppId: kotlin.String, + + /* The fully qualified name of the Corda state to monitor */ + @Json(name = "stateFullClassName") + val stateFullClassName: kotlin.String, + + @Json(name = "txIndexes") + val txIndexes: kotlin.collections.List = arrayListOf() + +) + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/ClearMonitorTransactionsV1Response.kt b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/ClearMonitorTransactionsV1Response.kt new file mode 100644 index 0000000000..e22a414029 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/ClearMonitorTransactionsV1Response.kt @@ -0,0 +1,44 @@ +/** + * Hyperledger Cactus Plugin - Connector Corda + * + * Can perform basic tasks on a Corda ledger + * + * The version of the OpenAPI document: 0.3.0 + * + * + * Please note: + * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * Do not edit this file manually. + */ + +@file:Suppress( + "ArrayInDataClass", + "EnumEntryName", + "RemoveRedundantQualifierName", + "UnusedImport" +) + +package org.openapitools.client.models + + +import com.squareup.moshi.Json + +/** + * + * + * @param success Flag set to true if operation completed correctly. + * @param msg Message describing operation status or any errors that occurred. + */ + +data class ClearMonitorTransactionsV1Response ( + + /* Flag set to true if operation completed correctly. */ + @Json(name = "success") + val success: kotlin.Boolean, + + /* Message describing operation status or any errors that occurred. */ + @Json(name = "msg") + val msg: kotlin.String + +) + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/CordaNodeSshCredentials.kt b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/CordaNodeSshCredentials.kt new file mode 100644 index 0000000000..d8e4d30bb5 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/CordaNodeSshCredentials.kt @@ -0,0 +1,54 @@ +/** + * Hyperledger Cactus Plugin - Connector Corda + * + * Can perform basic tasks on a Corda ledger + * + * The version of the OpenAPI document: 0.3.0 + * + * + * Please note: + * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * Do not edit this file manually. + */ + +@file:Suppress( + "ArrayInDataClass", + "EnumEntryName", + "RemoveRedundantQualifierName", + "UnusedImport" +) + +package org.openapitools.client.models + + +import com.squareup.moshi.Json + +/** + * + * + * @param hostKeyEntry + * @param username + * @param password + * @param hostname + * @param port + */ + +data class CordaNodeSshCredentials ( + + @Json(name = "hostKeyEntry") + val hostKeyEntry: kotlin.String, + + @Json(name = "username") + val username: kotlin.String, + + @Json(name = "password") + val password: kotlin.String, + + @Json(name = "hostname") + val hostname: kotlin.String, + + @Json(name = "port") + val port: kotlin.Int + +) + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/CordaRpcCredentials.kt b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/CordaRpcCredentials.kt new file mode 100644 index 0000000000..56b1b6c23b --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/CordaRpcCredentials.kt @@ -0,0 +1,50 @@ +/** + * Hyperledger Cactus Plugin - Connector Corda + * + * Can perform basic tasks on a Corda ledger + * + * The version of the OpenAPI document: 0.3.0 + * + * + * Please note: + * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * Do not edit this file manually. + */ + +@file:Suppress( + "ArrayInDataClass", + "EnumEntryName", + "RemoveRedundantQualifierName", + "UnusedImport" +) + +package org.openapitools.client.models + + +import com.squareup.moshi.Json + +/** + * + * + * @param hostname + * @param port + * @param username + * @param password + */ + +data class CordaRpcCredentials ( + + @Json(name = "hostname") + val hostname: kotlin.String, + + @Json(name = "port") + val port: kotlin.Int, + + @Json(name = "username") + val username: kotlin.String, + + @Json(name = "password") + val password: kotlin.String + +) + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/CordaX500Name.kt b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/CordaX500Name.kt new file mode 100644 index 0000000000..343338c6f3 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/CordaX500Name.kt @@ -0,0 +1,63 @@ +/** + * Hyperledger Cactus Plugin - Connector Corda + * + * Can perform basic tasks on a Corda ledger + * + * The version of the OpenAPI document: 0.3.0 + * + * + * Please note: + * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * Do not edit this file manually. + */ + +@file:Suppress( + "ArrayInDataClass", + "EnumEntryName", + "RemoveRedundantQualifierName", + "UnusedImport" +) + +package org.openapitools.client.models + +import org.openapitools.client.models.X500Principal + +import com.squareup.moshi.Json + +/** + * + * + * @param organisation + * @param locality + * @param country + * @param x500Principal + * @param commonName + * @param organisationUnit + * @param state + */ + +data class CordaX500Name ( + + @Json(name = "organisation") + val organisation: kotlin.String, + + @Json(name = "locality") + val locality: kotlin.String, + + @Json(name = "country") + val country: kotlin.String, + + @Json(name = "x500Principal") + val x500Principal: X500Principal, + + @Json(name = "commonName") + val commonName: kotlin.String? = null, + + @Json(name = "organisationUnit") + val organisationUnit: kotlin.String? = null, + + @Json(name = "state") + val state: kotlin.String? = null + +) + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/CordappDeploymentConfig.kt b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/CordappDeploymentConfig.kt new file mode 100644 index 0000000000..5d2cb68dea --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/CordappDeploymentConfig.kt @@ -0,0 +1,64 @@ +/** + * Hyperledger Cactus Plugin - Connector Corda + * + * Can perform basic tasks on a Corda ledger + * + * The version of the OpenAPI document: 0.3.0 + * + * + * Please note: + * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * Do not edit this file manually. + */ + +@file:Suppress( + "ArrayInDataClass", + "EnumEntryName", + "RemoveRedundantQualifierName", + "UnusedImport" +) + +package org.openapitools.client.models + +import org.openapitools.client.models.CordaNodeSshCredentials +import org.openapitools.client.models.CordaRpcCredentials + +import com.squareup.moshi.Json + +/** + * + * + * @param sshCredentials + * @param rpcCredentials + * @param cordaNodeStartCmd The shell command to execute in order to start back up a Corda node after having placed new jars in the cordapp directory of said node. + * @param cordappDir The absolute file system path where the Corda Node is expecting deployed Cordapp jar files to be placed. + * @param cordaJarPath The absolute file system path where the corda.jar file of the node can be found. This is used to execute database schema migrations where applicable (H2 database in use in development environments). + * @param nodeBaseDirPath The absolute file system path where the base directory of the Corda node can be found. This is used to pass in to corda.jar when being invoked for certain tasks such as executing database schema migrations for a deployed contract. + */ + +data class CordappDeploymentConfig ( + + @Json(name = "sshCredentials") + val sshCredentials: CordaNodeSshCredentials, + + @Json(name = "rpcCredentials") + val rpcCredentials: CordaRpcCredentials, + + /* The shell command to execute in order to start back up a Corda node after having placed new jars in the cordapp directory of said node. */ + @Json(name = "cordaNodeStartCmd") + val cordaNodeStartCmd: kotlin.String, + + /* The absolute file system path where the Corda Node is expecting deployed Cordapp jar files to be placed. */ + @Json(name = "cordappDir") + val cordappDir: kotlin.String, + + /* The absolute file system path where the corda.jar file of the node can be found. This is used to execute database schema migrations where applicable (H2 database in use in development environments). */ + @Json(name = "cordaJarPath") + val cordaJarPath: kotlin.String, + + /* The absolute file system path where the base directory of the Corda node can be found. This is used to pass in to corda.jar when being invoked for certain tasks such as executing database schema migrations for a deployed contract. */ + @Json(name = "nodeBaseDirPath") + val nodeBaseDirPath: kotlin.String + +) + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/CordappInfo.kt b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/CordappInfo.kt new file mode 100644 index 0000000000..eefa7d5951 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/CordappInfo.kt @@ -0,0 +1,79 @@ +/** + * Hyperledger Cactus Plugin - Connector Corda + * + * Can perform basic tasks on a Corda ledger + * + * The version of the OpenAPI document: 0.3.0 + * + * + * Please note: + * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * Do not edit this file manually. + */ + +@file:Suppress( + "ArrayInDataClass", + "EnumEntryName", + "RemoveRedundantQualifierName", + "UnusedImport" +) + +package org.openapitools.client.models + +import org.openapitools.client.models.SHA256 + +import com.squareup.moshi.Json + +/** + * A CordappInfo describes a single CorDapp currently installed on the node + * + * @param jarHash + * @param licence The name of the licence this CorDapp is released under + * @param minimumPlatformVersion The minimum platform version the node must be at for the CorDapp to run + * @param name The name of the JAR file that defines the CorDapp + * @param shortName The name of the CorDapp + * @param targetPlatformVersion The target platform version this CorDapp has been tested against + * @param type A description of what sort of CorDapp this is - either a contract, workflow, or a combination. + * @param vendor The vendor of this CorDapp + * @param version The version of this CorDapp + */ + +data class CordappInfo ( + + @Json(name = "jarHash") + val jarHash: SHA256, + + /* The name of the licence this CorDapp is released under */ + @Json(name = "licence") + val licence: kotlin.String, + + /* The minimum platform version the node must be at for the CorDapp to run */ + @Json(name = "minimumPlatformVersion") + val minimumPlatformVersion: kotlin.Int, + + /* The name of the JAR file that defines the CorDapp */ + @Json(name = "name") + val name: kotlin.String, + + /* The name of the CorDapp */ + @Json(name = "shortName") + val shortName: kotlin.String, + + /* The target platform version this CorDapp has been tested against */ + @Json(name = "targetPlatformVersion") + val targetPlatformVersion: kotlin.Int, + + /* A description of what sort of CorDapp this is - either a contract, workflow, or a combination. */ + @Json(name = "type") + val type: kotlin.String, + + /* The vendor of this CorDapp */ + @Json(name = "vendor") + val vendor: kotlin.String, + + /* The version of this CorDapp */ + @Json(name = "version") + val version: kotlin.String + +) + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/DeployContractJarsBadRequestV1Response.kt b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/DeployContractJarsBadRequestV1Response.kt new file mode 100644 index 0000000000..84f9b7bf0b --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/DeployContractJarsBadRequestV1Response.kt @@ -0,0 +1,38 @@ +/** + * Hyperledger Cactus Plugin - Connector Corda + * + * Can perform basic tasks on a Corda ledger + * + * The version of the OpenAPI document: 0.3.0 + * + * + * Please note: + * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * Do not edit this file manually. + */ + +@file:Suppress( + "ArrayInDataClass", + "EnumEntryName", + "RemoveRedundantQualifierName", + "UnusedImport" +) + +package org.openapitools.client.models + + +import com.squareup.moshi.Json + +/** + * + * + * @param errors + */ + +data class DeployContractJarsBadRequestV1Response ( + + @Json(name = "errors") + val errors: kotlin.collections.List + +) + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/DeployContractJarsSuccessV1Response.kt b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/DeployContractJarsSuccessV1Response.kt new file mode 100644 index 0000000000..f0ec1dc101 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/DeployContractJarsSuccessV1Response.kt @@ -0,0 +1,38 @@ +/** + * Hyperledger Cactus Plugin - Connector Corda + * + * Can perform basic tasks on a Corda ledger + * + * The version of the OpenAPI document: 0.3.0 + * + * + * Please note: + * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * Do not edit this file manually. + */ + +@file:Suppress( + "ArrayInDataClass", + "EnumEntryName", + "RemoveRedundantQualifierName", + "UnusedImport" +) + +package org.openapitools.client.models + + +import com.squareup.moshi.Json + +/** + * + * + * @param deployedJarFiles + */ + +data class DeployContractJarsSuccessV1Response ( + + @Json(name = "deployedJarFiles") + val deployedJarFiles: kotlin.collections.List + +) + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/DeployContractJarsV1Request.kt b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/DeployContractJarsV1Request.kt new file mode 100644 index 0000000000..ba58a0481a --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/DeployContractJarsV1Request.kt @@ -0,0 +1,45 @@ +/** + * Hyperledger Cactus Plugin - Connector Corda + * + * Can perform basic tasks on a Corda ledger + * + * The version of the OpenAPI document: 0.3.0 + * + * + * Please note: + * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * Do not edit this file manually. + */ + +@file:Suppress( + "ArrayInDataClass", + "EnumEntryName", + "RemoveRedundantQualifierName", + "UnusedImport" +) + +package org.openapitools.client.models + +import org.openapitools.client.models.CordappDeploymentConfig +import org.openapitools.client.models.JarFile + +import com.squareup.moshi.Json + +/** + * + * + * @param cordappDeploymentConfigs The list of deployment configurations pointing to the nodes where the provided cordapp jar files are to be deployed . + * @param jarFiles + */ + +data class DeployContractJarsV1Request ( + + /* The list of deployment configurations pointing to the nodes where the provided cordapp jar files are to be deployed . */ + @Json(name = "cordappDeploymentConfigs") + val cordappDeploymentConfigs: kotlin.collections.List = arrayListOf(), + + @Json(name = "jarFiles") + val jarFiles: kotlin.collections.List + +) + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/DiagnoseNodeV1Request.kt b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/DiagnoseNodeV1Request.kt new file mode 100644 index 0000000000..ee97437fad --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/DiagnoseNodeV1Request.kt @@ -0,0 +1,39 @@ +/** + * Hyperledger Cactus Plugin - Connector Corda + * + * Can perform basic tasks on a Corda ledger + * + * The version of the OpenAPI document: 0.3.0 + * + * + * Please note: + * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * Do not edit this file manually. + */ + +@file:Suppress( + "ArrayInDataClass", + "EnumEntryName", + "RemoveRedundantQualifierName", + "UnusedImport" +) + +package org.openapitools.client.models + + +import com.squareup.moshi.Json + +/** + * + * + * @param nodeIds Optional property specifying which Corda Node should be the one being diagnosed in case the Connector has multiple connections established for different nodes (which is not yet a supported feature, but we want to keep this possibility open for the future). + */ + +data class DiagnoseNodeV1Request ( + + /* Optional property specifying which Corda Node should be the one being diagnosed in case the Connector has multiple connections established for different nodes (which is not yet a supported feature, but we want to keep this possibility open for the future). */ + @Json(name = "nodeIds") + val nodeIds: kotlin.collections.List? = null + +) + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/DiagnoseNodeV1Response.kt b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/DiagnoseNodeV1Response.kt new file mode 100644 index 0000000000..fdbac69303 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/DiagnoseNodeV1Response.kt @@ -0,0 +1,39 @@ +/** + * Hyperledger Cactus Plugin - Connector Corda + * + * Can perform basic tasks on a Corda ledger + * + * The version of the OpenAPI document: 0.3.0 + * + * + * Please note: + * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * Do not edit this file manually. + */ + +@file:Suppress( + "ArrayInDataClass", + "EnumEntryName", + "RemoveRedundantQualifierName", + "UnusedImport" +) + +package org.openapitools.client.models + +import org.openapitools.client.models.NodeDiagnosticInfo + +import com.squareup.moshi.Json + +/** + * + * + * @param nodeDiagnosticInfo + */ + +data class DiagnoseNodeV1Response ( + + @Json(name = "nodeDiagnosticInfo") + val nodeDiagnosticInfo: NodeDiagnosticInfo + +) + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/FlowInvocationType.kt b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/FlowInvocationType.kt new file mode 100644 index 0000000000..2255e96df7 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/FlowInvocationType.kt @@ -0,0 +1,66 @@ +/** + * Hyperledger Cactus Plugin - Connector Corda + * + * Can perform basic tasks on a Corda ledger + * + * The version of the OpenAPI document: 0.3.0 + * + * + * Please note: + * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * Do not edit this file manually. + */ + +@file:Suppress( + "ArrayInDataClass", + "EnumEntryName", + "RemoveRedundantQualifierName", + "UnusedImport" +) + +package org.openapitools.client.models + + +import com.squareup.moshi.Json + +/** + * Determines which flow starting method will be used on the back-end when invoking the flow. Based on the value here the plugin back-end might invoke the rpc.startFlowDynamic() method or the rpc.startTrackedFlowDynamic() method. Streamed responses are aggregated and returned in a single response to HTTP callers who are not equipped to handle streams like WebSocket/gRPC/etc. do. + * + * Values: tRACKEDFLOWDYNAMIC,fLOWDYNAMIC + */ + +enum class FlowInvocationType(val value: kotlin.String) { + + @Json(name = "TRACKED_FLOW_DYNAMIC") + tRACKEDFLOWDYNAMIC("TRACKED_FLOW_DYNAMIC"), + + @Json(name = "FLOW_DYNAMIC") + fLOWDYNAMIC("FLOW_DYNAMIC"); + + /** + * Override toString() to avoid using the enum variable name as the value, and instead use + * the actual value defined in the API spec file. + * + * This solves a problem when the variable name and its value are different, and ensures that + * the client sends the correct enum values to the server always. + */ + override fun toString(): String = value + + companion object { + /** + * Converts the provided [data] to a [String] on success, null otherwise. + */ + fun encode(data: Any?): kotlin.String? = if (data is FlowInvocationType) "$data" else null + + /** + * Returns a valid [FlowInvocationType] for [data], null otherwise. + */ + fun decode(data: Any?): FlowInvocationType? = data?.let { + val normalizedData = "$it".lowercase() + values().firstOrNull { value -> + it == value || normalizedData == "$value".lowercase() + } + } + } +} + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/GetMonitorTransactionsV1Request.kt b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/GetMonitorTransactionsV1Request.kt new file mode 100644 index 0000000000..d87d0287fd --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/GetMonitorTransactionsV1Request.kt @@ -0,0 +1,44 @@ +/** + * Hyperledger Cactus Plugin - Connector Corda + * + * Can perform basic tasks on a Corda ledger + * + * The version of the OpenAPI document: 0.3.0 + * + * + * Please note: + * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * Do not edit this file manually. + */ + +@file:Suppress( + "ArrayInDataClass", + "EnumEntryName", + "RemoveRedundantQualifierName", + "UnusedImport" +) + +package org.openapitools.client.models + + +import com.squareup.moshi.Json + +/** + * + * + * @param clientAppId ID of a client application that wants to monitor the state changes + * @param stateFullClassName The fully qualified name of the Corda state to monitor + */ + +data class GetMonitorTransactionsV1Request ( + + /* ID of a client application that wants to monitor the state changes */ + @Json(name = "clientAppId") + val clientAppId: kotlin.String, + + /* The fully qualified name of the Corda state to monitor */ + @Json(name = "stateFullClassName") + val stateFullClassName: kotlin.String + +) + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/GetMonitorTransactionsV1Response.kt b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/GetMonitorTransactionsV1Response.kt new file mode 100644 index 0000000000..033b622cb6 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/GetMonitorTransactionsV1Response.kt @@ -0,0 +1,54 @@ +/** + * Hyperledger Cactus Plugin - Connector Corda + * + * Can perform basic tasks on a Corda ledger + * + * The version of the OpenAPI document: 0.3.0 + * + * + * Please note: + * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * Do not edit this file manually. + */ + +@file:Suppress( + "ArrayInDataClass", + "EnumEntryName", + "RemoveRedundantQualifierName", + "UnusedImport" +) + +package org.openapitools.client.models + +import org.openapitools.client.models.GetMonitorTransactionsV1ResponseTx + +import com.squareup.moshi.Json + +/** + * + * + * @param success Flag set to true if operation completed correctly. + * @param msg Message describing operation status or any errors that occurred. + * @param stateFullClassName The fully qualified name of the Corda state to monitor + * @param tx + */ + +data class GetMonitorTransactionsV1Response ( + + /* Flag set to true if operation completed correctly. */ + @Json(name = "success") + val success: kotlin.Boolean, + + /* Message describing operation status or any errors that occurred. */ + @Json(name = "msg") + val msg: kotlin.String, + + /* The fully qualified name of the Corda state to monitor */ + @Json(name = "stateFullClassName") + val stateFullClassName: kotlin.String? = null, + + @Json(name = "tx") + val tx: kotlin.collections.List? = null + +) + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/GetMonitorTransactionsV1ResponseTx.kt b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/GetMonitorTransactionsV1ResponseTx.kt new file mode 100644 index 0000000000..a2e996564f --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/GetMonitorTransactionsV1ResponseTx.kt @@ -0,0 +1,42 @@ +/** + * Hyperledger Cactus Plugin - Connector Corda + * + * Can perform basic tasks on a Corda ledger + * + * The version of the OpenAPI document: 0.3.0 + * + * + * Please note: + * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * Do not edit this file manually. + */ + +@file:Suppress( + "ArrayInDataClass", + "EnumEntryName", + "RemoveRedundantQualifierName", + "UnusedImport" +) + +package org.openapitools.client.models + + +import com.squareup.moshi.Json + +/** + * + * + * @param index + * @param `data` + */ + +data class GetMonitorTransactionsV1ResponseTx ( + + @Json(name = "index") + val index: kotlin.String? = null, + + @Json(name = "data") + val `data`: kotlin.String? = null + +) + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/InvokeContractV1Request.kt b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/InvokeContractV1Request.kt new file mode 100644 index 0000000000..eb8ebb20d2 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/InvokeContractV1Request.kt @@ -0,0 +1,55 @@ +/** + * Hyperledger Cactus Plugin - Connector Corda + * + * Can perform basic tasks on a Corda ledger + * + * The version of the OpenAPI document: 0.3.0 + * + * + * Please note: + * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * Do not edit this file manually. + */ + +@file:Suppress( + "ArrayInDataClass", + "EnumEntryName", + "RemoveRedundantQualifierName", + "UnusedImport" +) + +package org.openapitools.client.models + +import org.openapitools.client.models.FlowInvocationType +import org.openapitools.client.models.JvmObject + +import com.squareup.moshi.Json + +/** + * + * + * @param flowFullClassName The fully qualified name of the Corda flow to invoke + * @param flowInvocationType + * @param params The list of arguments to pass in to the contract method being invoked. + * @param timeoutMs The amount of milliseconds to wait for a transaction receipt beforegiving up and crashing. + */ + +data class InvokeContractV1Request ( + + /* The fully qualified name of the Corda flow to invoke */ + @Json(name = "flowFullClassName") + val flowFullClassName: kotlin.String, + + @Json(name = "flowInvocationType") + val flowInvocationType: FlowInvocationType, + + /* The list of arguments to pass in to the contract method being invoked. */ + @Json(name = "params") + val params: kotlin.collections.List = arrayListOf(), + + /* The amount of milliseconds to wait for a transaction receipt beforegiving up and crashing. */ + @Json(name = "timeoutMs") + val timeoutMs: kotlin.Int? = null + +) + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/InvokeContractV1Response.kt b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/InvokeContractV1Response.kt new file mode 100644 index 0000000000..464e91e48f --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/InvokeContractV1Response.kt @@ -0,0 +1,58 @@ +/** + * Hyperledger Cactus Plugin - Connector Corda + * + * Can perform basic tasks on a Corda ledger + * + * The version of the OpenAPI document: 0.3.0 + * + * + * Please note: + * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * Do not edit this file manually. + */ + +@file:Suppress( + "ArrayInDataClass", + "EnumEntryName", + "RemoveRedundantQualifierName", + "UnusedImport" +) + +package org.openapitools.client.models + + +import com.squareup.moshi.Json + +/** + * + * + * @param success + * @param callOutput Data returned from the JVM when no transaction is running + * @param flowId The id for the flow handle + * @param transactionId The net.corda.core.flows.StateMachineRunId value returned by the flow execution. + * @param progress An array of strings representing the aggregated stream of progress updates provided by a *tracked* flow invocation. If the flow invocation was not tracked, this array is still returned, but as empty. + */ + +data class InvokeContractV1Response ( + + @Json(name = "success") + val success: kotlin.Boolean, + + /* Data returned from the JVM when no transaction is running */ + @Json(name = "callOutput") + val callOutput: kotlin.Any, + + /* The id for the flow handle */ + @Json(name = "flowId") + val flowId: kotlin.String, + + /* The net.corda.core.flows.StateMachineRunId value returned by the flow execution. */ + @Json(name = "transactionId") + val transactionId: kotlin.String? = null, + + /* An array of strings representing the aggregated stream of progress updates provided by a *tracked* flow invocation. If the flow invocation was not tracked, this array is still returned, but as empty. */ + @Json(name = "progress") + val progress: kotlin.collections.List? = null + +) + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/JarFile.kt b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/JarFile.kt new file mode 100644 index 0000000000..4e711ed85a --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/JarFile.kt @@ -0,0 +1,47 @@ +/** + * Hyperledger Cactus Plugin - Connector Corda + * + * Can perform basic tasks on a Corda ledger + * + * The version of the OpenAPI document: 0.3.0 + * + * + * Please note: + * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * Do not edit this file manually. + */ + +@file:Suppress( + "ArrayInDataClass", + "EnumEntryName", + "RemoveRedundantQualifierName", + "UnusedImport" +) + +package org.openapitools.client.models + + +import com.squareup.moshi.Json + +/** + * + * + * @param filename + * @param hasDbMigrations Indicates whether the cordapp jar in question contains any embedded migrations that Cactus can/should execute between copying the jar into the cordapp directory and starting the node back up. + * @param contentBase64 + */ + +data class JarFile ( + + @Json(name = "filename") + val filename: kotlin.String, + + /* Indicates whether the cordapp jar in question contains any embedded migrations that Cactus can/should execute between copying the jar into the cordapp directory and starting the node back up. */ + @Json(name = "hasDbMigrations") + val hasDbMigrations: kotlin.Boolean, + + @Json(name = "contentBase64") + val contentBase64: kotlin.String + +) : kotlin.collections.HashMap() + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/JvmObject.kt b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/JvmObject.kt new file mode 100644 index 0000000000..e2e34f2e56 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/JvmObject.kt @@ -0,0 +1,52 @@ +/** + * Hyperledger Cactus Plugin - Connector Corda + * + * Can perform basic tasks on a Corda ledger + * + * The version of the OpenAPI document: 0.3.0 + * + * + * Please note: + * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * Do not edit this file manually. + */ + +@file:Suppress( + "ArrayInDataClass", + "EnumEntryName", + "RemoveRedundantQualifierName", + "UnusedImport" +) + +package org.openapitools.client.models + +import org.openapitools.client.models.JvmType +import org.openapitools.client.models.JvmTypeKind + +import com.squareup.moshi.Json + +/** + * Can represent JVM primitive and reference types as well. The jvmTypeKind field indicates which one is being stored. If the jvmTypeKind field is set to REFERENCE then the jvmCtorArgs array is expected to be filled, otherwise (e.g. PRIMITIVE jvmTypeKind) it is expected that the primitiveValue property is filled with a primitive data type supported by the JSON standard such as strings, booleans, numbers, etc. + * + * @param jvmTypeKind + * @param jvmType + * @param primitiveValue + * @param jvmCtorArgs + */ + +data class JvmObject ( + + @Json(name = "jvmTypeKind") + val jvmTypeKind: JvmTypeKind, + + @Json(name = "jvmType") + val jvmType: JvmType, + + @Json(name = "primitiveValue") + val primitiveValue: kotlin.Any? = null, + + @Json(name = "jvmCtorArgs") + val jvmCtorArgs: kotlin.collections.List? = null + +) + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/JvmType.kt b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/JvmType.kt new file mode 100644 index 0000000000..5648bd7561 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/JvmType.kt @@ -0,0 +1,48 @@ +/** + * Hyperledger Cactus Plugin - Connector Corda + * + * Can perform basic tasks on a Corda ledger + * + * The version of the OpenAPI document: 0.3.0 + * + * + * Please note: + * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * Do not edit this file manually. + */ + +@file:Suppress( + "ArrayInDataClass", + "EnumEntryName", + "RemoveRedundantQualifierName", + "UnusedImport" +) + +package org.openapitools.client.models + +import org.openapitools.client.models.JvmObject + +import com.squareup.moshi.Json + +/** + * Represents a reference to a JVM type (such as a Java class) + * + * @param fqClassName + * @param constructorName This parameter is used to specify that the function used to construct this JvmType is not a constructor function but instead is a factory function. Setting this parameter will cause the plugin to look up methods of the class denoted by fqClassName instead of its constructors. + * @param invocationTarget + */ + +data class JvmType ( + + @Json(name = "fqClassName") + val fqClassName: kotlin.String, + + /* This parameter is used to specify that the function used to construct this JvmType is not a constructor function but instead is a factory function. Setting this parameter will cause the plugin to look up methods of the class denoted by fqClassName instead of its constructors. */ + @Json(name = "constructorName") + val constructorName: kotlin.String? = null, + + @Json(name = "invocationTarget") + val invocationTarget: JvmObject? = null + +) + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/JvmTypeKind.kt b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/JvmTypeKind.kt new file mode 100644 index 0000000000..f6c740261b --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/JvmTypeKind.kt @@ -0,0 +1,66 @@ +/** + * Hyperledger Cactus Plugin - Connector Corda + * + * Can perform basic tasks on a Corda ledger + * + * The version of the OpenAPI document: 0.3.0 + * + * + * Please note: + * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * Do not edit this file manually. + */ + +@file:Suppress( + "ArrayInDataClass", + "EnumEntryName", + "RemoveRedundantQualifierName", + "UnusedImport" +) + +package org.openapitools.client.models + + +import com.squareup.moshi.Json + +/** + * + * + * Values: pRIMITIVE,rEFERENCE + */ + +enum class JvmTypeKind(val value: kotlin.String) { + + @Json(name = "PRIMITIVE") + pRIMITIVE("PRIMITIVE"), + + @Json(name = "REFERENCE") + rEFERENCE("REFERENCE"); + + /** + * Override toString() to avoid using the enum variable name as the value, and instead use + * the actual value defined in the API spec file. + * + * This solves a problem when the variable name and its value are different, and ensures that + * the client sends the correct enum values to the server always. + */ + override fun toString(): String = value + + companion object { + /** + * Converts the provided [data] to a [String] on success, null otherwise. + */ + fun encode(data: Any?): kotlin.String? = if (data is JvmTypeKind) "$data" else null + + /** + * Returns a valid [JvmTypeKind] for [data], null otherwise. + */ + fun decode(data: Any?): JvmTypeKind? = data?.let { + val normalizedData = "$it".lowercase() + values().firstOrNull { value -> + it == value || normalizedData == "$value".lowercase() + } + } + } +} + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/ListFlowsV1Request.kt b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/ListFlowsV1Request.kt new file mode 100644 index 0000000000..43c118469c --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/ListFlowsV1Request.kt @@ -0,0 +1,38 @@ +/** + * Hyperledger Cactus Plugin - Connector Corda + * + * Can perform basic tasks on a Corda ledger + * + * The version of the OpenAPI document: 0.3.0 + * + * + * Please note: + * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * Do not edit this file manually. + */ + +@file:Suppress( + "ArrayInDataClass", + "EnumEntryName", + "RemoveRedundantQualifierName", + "UnusedImport" +) + +package org.openapitools.client.models + + +import com.squareup.moshi.Json + +/** + * + * + * @param filter + */ + +data class ListFlowsV1Request ( + + @Json(name = "filter") + val filter: kotlin.String? = null + +) + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/ListFlowsV1Response.kt b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/ListFlowsV1Response.kt new file mode 100644 index 0000000000..6aa42ca4e8 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/ListFlowsV1Response.kt @@ -0,0 +1,39 @@ +/** + * Hyperledger Cactus Plugin - Connector Corda + * + * Can perform basic tasks on a Corda ledger + * + * The version of the OpenAPI document: 0.3.0 + * + * + * Please note: + * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * Do not edit this file manually. + */ + +@file:Suppress( + "ArrayInDataClass", + "EnumEntryName", + "RemoveRedundantQualifierName", + "UnusedImport" +) + +package org.openapitools.client.models + + +import com.squareup.moshi.Json + +/** + * + * + * @param flowNames An array of strings storing the names of the flows as returned by the flowList Corda RPC. + */ + +data class ListFlowsV1Response ( + + /* An array of strings storing the names of the flows as returned by the flowList Corda RPC. */ + @Json(name = "flowNames") + val flowNames: kotlin.collections.List = arrayListOf() + +) + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/NetworkHostAndPort.kt b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/NetworkHostAndPort.kt new file mode 100644 index 0000000000..4869153ed1 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/NetworkHostAndPort.kt @@ -0,0 +1,42 @@ +/** + * Hyperledger Cactus Plugin - Connector Corda + * + * Can perform basic tasks on a Corda ledger + * + * The version of the OpenAPI document: 0.3.0 + * + * + * Please note: + * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * Do not edit this file manually. + */ + +@file:Suppress( + "ArrayInDataClass", + "EnumEntryName", + "RemoveRedundantQualifierName", + "UnusedImport" +) + +package org.openapitools.client.models + + +import com.squareup.moshi.Json + +/** + * + * + * @param host + * @param port + */ + +data class NetworkHostAndPort ( + + @Json(name = "host") + val host: kotlin.String, + + @Json(name = "port") + val port: java.math.BigDecimal + +) + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/NodeDiagnosticInfo.kt b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/NodeDiagnosticInfo.kt new file mode 100644 index 0000000000..a43e1f69b7 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/NodeDiagnosticInfo.kt @@ -0,0 +1,60 @@ +/** + * Hyperledger Cactus Plugin - Connector Corda + * + * Can perform basic tasks on a Corda ledger + * + * The version of the OpenAPI document: 0.3.0 + * + * + * Please note: + * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * Do not edit this file manually. + */ + +@file:Suppress( + "ArrayInDataClass", + "EnumEntryName", + "RemoveRedundantQualifierName", + "UnusedImport" +) + +package org.openapitools.client.models + +import org.openapitools.client.models.CordappInfo + +import com.squareup.moshi.Json + +/** + * A NodeDiagnosticInfo holds information about the current node version. + * + * @param cordapps A list of CorDapps currently installed on this node + * @param platformVersion The platform version of this node. This number represents a released API version, and should be used to make functionality decisions (e.g. enabling an app feature only if an underlying platform feature exists) + * @param revision The git commit hash this node was built from + * @param vendor The vendor of this node + * @param version The current node version string, e.g. 4.3, 4.4-SNAPSHOT. Note that this string is effectively freeform, and so should only be used for providing diagnostic information. It should not be used to make functionality decisions (the platformVersion is a better fit for this). + */ + +data class NodeDiagnosticInfo ( + + /* A list of CorDapps currently installed on this node */ + @Json(name = "cordapps") + val cordapps: kotlin.collections.List, + + /* The platform version of this node. This number represents a released API version, and should be used to make functionality decisions (e.g. enabling an app feature only if an underlying platform feature exists) */ + @Json(name = "platformVersion") + val platformVersion: kotlin.Int, + + /* The git commit hash this node was built from */ + @Json(name = "revision") + val revision: kotlin.String, + + /* The vendor of this node */ + @Json(name = "vendor") + val vendor: kotlin.String, + + /* The current node version string, e.g. 4.3, 4.4-SNAPSHOT. Note that this string is effectively freeform, and so should only be used for providing diagnostic information. It should not be used to make functionality decisions (the platformVersion is a better fit for this). */ + @Json(name = "version") + val version: kotlin.String + +) + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/NodeInfo.kt b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/NodeInfo.kt new file mode 100644 index 0000000000..41c1b882d1 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/NodeInfo.kt @@ -0,0 +1,56 @@ +/** + * Hyperledger Cactus Plugin - Connector Corda + * + * Can perform basic tasks on a Corda ledger + * + * The version of the OpenAPI document: 0.3.0 + * + * + * Please note: + * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * Do not edit this file manually. + */ + +@file:Suppress( + "ArrayInDataClass", + "EnumEntryName", + "RemoveRedundantQualifierName", + "UnusedImport" +) + +package org.openapitools.client.models + +import org.openapitools.client.models.NetworkHostAndPort +import org.openapitools.client.models.Party + +import com.squareup.moshi.Json + +/** + * + * + * @param addresses + * @param platformVersion + * @param serial + * @param legalIdentities + * @param legalIdentitiesAndCerts + */ + +data class NodeInfo ( + + @Json(name = "addresses") + val addresses: kotlin.collections.List, + + @Json(name = "platformVersion") + val platformVersion: kotlin.Int, + + @Json(name = "serial") + val serial: java.math.BigDecimal, + + @Json(name = "legalIdentities") + val legalIdentities: kotlin.collections.List, + + @Json(name = "legalIdentitiesAndCerts") + val legalIdentitiesAndCerts: kotlin.collections.List + +) + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/Party.kt b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/Party.kt new file mode 100644 index 0000000000..b3ca2e5baa --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/Party.kt @@ -0,0 +1,44 @@ +/** + * Hyperledger Cactus Plugin - Connector Corda + * + * Can perform basic tasks on a Corda ledger + * + * The version of the OpenAPI document: 0.3.0 + * + * + * Please note: + * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * Do not edit this file manually. + */ + +@file:Suppress( + "ArrayInDataClass", + "EnumEntryName", + "RemoveRedundantQualifierName", + "UnusedImport" +) + +package org.openapitools.client.models + +import org.openapitools.client.models.CordaX500Name +import org.openapitools.client.models.PublicKey + +import com.squareup.moshi.Json + +/** + * + * + * @param name + * @param owningKey + */ + +data class Party ( + + @Json(name = "name") + val name: CordaX500Name, + + @Json(name = "owningKey") + val owningKey: PublicKey + +) + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/PublicKey.kt b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/PublicKey.kt new file mode 100644 index 0000000000..3b61bc18c4 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/PublicKey.kt @@ -0,0 +1,46 @@ +/** + * Hyperledger Cactus Plugin - Connector Corda + * + * Can perform basic tasks on a Corda ledger + * + * The version of the OpenAPI document: 0.3.0 + * + * + * Please note: + * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * Do not edit this file manually. + */ + +@file:Suppress( + "ArrayInDataClass", + "EnumEntryName", + "RemoveRedundantQualifierName", + "UnusedImport" +) + +package org.openapitools.client.models + + +import com.squareup.moshi.Json + +/** + * An instance of a java.security.PublicKey (which is an interface) implementation such as org.hyperledger.cactus.plugin.ledger.connector.corda.server.impl.PublicKeyImpl + * + * @param algorithm + * @param format + * @param encoded + */ + +data class PublicKey ( + + @Json(name = "algorithm") + val algorithm: kotlin.String, + + @Json(name = "format") + val format: kotlin.String, + + @Json(name = "encoded") + val encoded: kotlin.String + +) + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/SHA256.kt b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/SHA256.kt new file mode 100644 index 0000000000..c557720879 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/SHA256.kt @@ -0,0 +1,46 @@ +/** + * Hyperledger Cactus Plugin - Connector Corda + * + * Can perform basic tasks on a Corda ledger + * + * The version of the OpenAPI document: 0.3.0 + * + * + * Please note: + * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * Do not edit this file manually. + */ + +@file:Suppress( + "ArrayInDataClass", + "EnumEntryName", + "RemoveRedundantQualifierName", + "UnusedImport" +) + +package org.openapitools.client.models + + +import com.squareup.moshi.Json + +/** + * SHA-256 is part of the SHA-2 hash function family. Generated hash is fixed size, 256-bits (32-bytes). + * + * @param bytes + * @param offset + * @param propertySize + */ + +data class SHA256 ( + + @Json(name = "bytes") + val bytes: kotlin.String, + + @Json(name = "offset") + val offset: kotlin.Int, + + @Json(name = "size") + val propertySize: kotlin.Int + +) + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/StartMonitorV1Request.kt b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/StartMonitorV1Request.kt new file mode 100644 index 0000000000..6a7c8748eb --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/StartMonitorV1Request.kt @@ -0,0 +1,44 @@ +/** + * Hyperledger Cactus Plugin - Connector Corda + * + * Can perform basic tasks on a Corda ledger + * + * The version of the OpenAPI document: 0.3.0 + * + * + * Please note: + * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * Do not edit this file manually. + */ + +@file:Suppress( + "ArrayInDataClass", + "EnumEntryName", + "RemoveRedundantQualifierName", + "UnusedImport" +) + +package org.openapitools.client.models + + +import com.squareup.moshi.Json + +/** + * + * + * @param clientAppId ID of a client application that wants to monitor the state changes + * @param stateFullClassName The fully qualified name of the Corda state to monitor + */ + +data class StartMonitorV1Request ( + + /* ID of a client application that wants to monitor the state changes */ + @Json(name = "clientAppId") + val clientAppId: kotlin.String, + + /* The fully qualified name of the Corda state to monitor */ + @Json(name = "stateFullClassName") + val stateFullClassName: kotlin.String + +) + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/StartMonitorV1Response.kt b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/StartMonitorV1Response.kt new file mode 100644 index 0000000000..e1ce5f707d --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/StartMonitorV1Response.kt @@ -0,0 +1,44 @@ +/** + * Hyperledger Cactus Plugin - Connector Corda + * + * Can perform basic tasks on a Corda ledger + * + * The version of the OpenAPI document: 0.3.0 + * + * + * Please note: + * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * Do not edit this file manually. + */ + +@file:Suppress( + "ArrayInDataClass", + "EnumEntryName", + "RemoveRedundantQualifierName", + "UnusedImport" +) + +package org.openapitools.client.models + + +import com.squareup.moshi.Json + +/** + * + * + * @param success Flag set to true if monitoring started correctly. + * @param msg Message describing operation status or any errors that occurred. + */ + +data class StartMonitorV1Response ( + + /* Flag set to true if monitoring started correctly. */ + @Json(name = "success") + val success: kotlin.Boolean, + + /* Message describing operation status or any errors that occurred. */ + @Json(name = "msg") + val msg: kotlin.String + +) + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/StopMonitorV1Request.kt b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/StopMonitorV1Request.kt new file mode 100644 index 0000000000..b0e93b3b1e --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/StopMonitorV1Request.kt @@ -0,0 +1,44 @@ +/** + * Hyperledger Cactus Plugin - Connector Corda + * + * Can perform basic tasks on a Corda ledger + * + * The version of the OpenAPI document: 0.3.0 + * + * + * Please note: + * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * Do not edit this file manually. + */ + +@file:Suppress( + "ArrayInDataClass", + "EnumEntryName", + "RemoveRedundantQualifierName", + "UnusedImport" +) + +package org.openapitools.client.models + + +import com.squareup.moshi.Json + +/** + * + * + * @param clientAppId ID of a client application that wants to monitor the state changes + * @param stateFullClassName The fully qualified name of the Corda state to monitor + */ + +data class StopMonitorV1Request ( + + /* ID of a client application that wants to monitor the state changes */ + @Json(name = "clientAppId") + val clientAppId: kotlin.String, + + /* The fully qualified name of the Corda state to monitor */ + @Json(name = "stateFullClassName") + val stateFullClassName: kotlin.String + +) + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/StopMonitorV1Response.kt b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/StopMonitorV1Response.kt new file mode 100644 index 0000000000..7ef86e7342 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/StopMonitorV1Response.kt @@ -0,0 +1,44 @@ +/** + * Hyperledger Cactus Plugin - Connector Corda + * + * Can perform basic tasks on a Corda ledger + * + * The version of the OpenAPI document: 0.3.0 + * + * + * Please note: + * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * Do not edit this file manually. + */ + +@file:Suppress( + "ArrayInDataClass", + "EnumEntryName", + "RemoveRedundantQualifierName", + "UnusedImport" +) + +package org.openapitools.client.models + + +import com.squareup.moshi.Json + +/** + * + * + * @param success Flag set to true if operation completed correctly. + * @param msg Message describing operation status or any errors that occurred. + */ + +data class StopMonitorV1Response ( + + /* Flag set to true if operation completed correctly. */ + @Json(name = "success") + val success: kotlin.Boolean, + + /* Message describing operation status or any errors that occurred. */ + @Json(name = "msg") + val msg: kotlin.String + +) + diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/X500Principal.kt b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/X500Principal.kt new file mode 100644 index 0000000000..5cfccce590 --- /dev/null +++ b/packages/cactus-plugin-ledger-connector-corda/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/X500Principal.kt @@ -0,0 +1,43 @@ +/** + * Hyperledger Cactus Plugin - Connector Corda + * + * Can perform basic tasks on a Corda ledger + * + * The version of the OpenAPI document: 0.3.0 + * + * + * Please note: + * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * Do not edit this file manually. + */ + +@file:Suppress( + "ArrayInDataClass", + "EnumEntryName", + "RemoveRedundantQualifierName", + "UnusedImport" +) + +package org.openapitools.client.models + + +import com.squareup.moshi.Json + +/** + * + * + * @param name + * @param encoded Base64 encoded public key + */ + +data class X500Principal ( + + @Json(name = "name") + val name: kotlin.String, + + /* Base64 encoded public key */ + @Json(name = "encoded") + val encoded: kotlin.String + +) +