From c27c2b6ea664ab1cffc77b8a32545a948afa5c15 Mon Sep 17 00:00:00 2001 From: qed-it-deploy-1 Date: Tue, 1 Oct 2019 19:04:09 +0000 Subject: [PATCH] feat: automatic push to dev_guide from CI [tag=v1.6.0] --- go/examples/cmd/transferandread/main.go | 4 +- go/examples/cmd/walletbalances/main.go | 2 +- go/sdk/README.md | 10 +- go/sdk/api/openapi.yaml | 306 +++++++++++------- go/sdk/api_analytics.go | 2 +- go/sdk/api_health.go | 2 +- go/sdk/api_node.go | 226 ++++++++++++- go/sdk/api_wallet.go | 2 +- go/sdk/client.go | 24 +- go/sdk/configuration.go | 2 +- go/sdk/docs/AnalyticIssueWalletTx.md | 2 +- go/sdk/docs/AnalyticTransferWalletTx.md | 2 +- ...nalyticsConfidentialIssuanceDescription.md | 4 +- .../AnalyticsPublicIssuanceDescription.md | 2 +- go/sdk/docs/AnalyticsRule.md | 3 +- go/sdk/docs/AnalyticsRuleDefinition.md | 3 +- go/sdk/docs/AnalyticsRuleWalletDefinition.md | 3 +- go/sdk/docs/AnalyticsTransferTx.md | 1 - go/sdk/docs/BalanceForAsset.md | 2 +- go/sdk/docs/GetTaskStatusResponse.md | 4 +- go/sdk/docs/IssueAssetRequest.md | 2 +- go/sdk/docs/NodeApi.md | 62 +++- go/sdk/docs/Rule.md | 3 +- go/sdk/docs/TaskActionRequest.md | 11 + go/sdk/docs/TaskData.md | 14 + go/sdk/docs/TaskState.md | 9 + go/sdk/docs/TransferAssetRequest.md | 3 +- go/sdk/model_analytic_issue_wallet_tx.go | 6 +- go/sdk/model_analytic_rule_wallet_tx.go | 6 +- go/sdk/model_analytic_transaction.go | 2 +- go/sdk/model_analytic_transfer_wallet_tx.go | 6 +- go/sdk/model_analytic_wallet_metadata.go | 2 +- go/sdk/model_analytic_wallet_tx.go | 2 +- ...ytics_confidential_issuance_description.go | 9 +- go/sdk/model_analytics_issue_tx.go | 2 +- go/sdk/model_analytics_multi_transfer_tx.go | 2 +- go/sdk/model_analytics_output.go | 8 +- go/sdk/model_analytics_output_description.go | 2 +- ...l_analytics_public_issuance_description.go | 6 +- go/sdk/model_analytics_rule.go | 8 +- go/sdk/model_analytics_rule_definition.go | 8 +- go/sdk/model_analytics_rule_tx.go | 2 +- .../model_analytics_rule_wallet_definition.go | 8 +- go/sdk/model_analytics_spend_description.go | 2 +- go/sdk/model_analytics_transfer_tx.go | 4 +- go/sdk/model_analytics_tx_metadata.go | 2 +- go/sdk/model_analytics_tx_type.go | 9 +- go/sdk/model_async_task_created_response.go | 2 +- go/sdk/model_balance_for_asset.go | 6 +- go/sdk/model_create_rule_request.go | 2 +- go/sdk/model_delete_rule_request.go | 2 +- go/sdk/model_delete_wallet_request.go | 2 +- go/sdk/model_error_response.go | 2 +- ...el_export_auditor_access_wallet_request.go | 2 +- ...l_export_auditor_access_wallet_response.go | 2 +- go/sdk/model_export_wallet_request.go | 2 +- go/sdk/model_export_wallet_response.go | 2 +- go/sdk/model_generate_wallet_request.go | 2 +- go/sdk/model_get_all_wallets_response.go | 2 +- go/sdk/model_get_network_activity_request.go | 6 +- go/sdk/model_get_network_activity_response.go | 2 +- go/sdk/model_get_new_address_request.go | 2 +- go/sdk/model_get_new_address_response.go | 2 +- go/sdk/model_get_public_key_request.go | 2 +- go/sdk/model_get_public_key_response.go | 2 +- go/sdk/model_get_rules_response.go | 2 +- go/sdk/model_get_sync_status_response.go | 2 +- go/sdk/model_get_task_status_request.go | 2 +- go/sdk/model_get_task_status_response.go | 14 +- go/sdk/model_get_tasks_request.go | 2 +- go/sdk/model_get_tasks_response.go | 2 +- go/sdk/model_get_wallet_activity_request.go | 2 +- go/sdk/model_get_wallet_activity_response.go | 2 +- go/sdk/model_get_wallet_balance_request.go | 2 +- go/sdk/model_get_wallet_balance_response.go | 2 +- go/sdk/model_healthcheck_response.go | 8 +- go/sdk/model_healthcheck_response_item.go | 2 +- ...el_import_auditor_access_wallet_request.go | 2 +- go/sdk/model_import_wallet_request.go | 2 +- go/sdk/model_issue_asset_request.go | 10 +- go/sdk/model_result.go | 12 +- go/sdk/model_rule.go | 8 +- go/sdk/model_task_action_request.go | 16 + go/sdk/model_task_data.go | 21 ++ go/sdk/model_task_state.go | 26 ++ go/sdk/model_task_type.go | 17 +- go/sdk/model_transfer_asset_request.go | 8 +- go/sdk/model_unlock_wallet_request.go | 2 +- go/sdk/response.go | 2 +- js/sdk/README.md | 12 +- js/sdk/docs/AnalyticIssueWalletTx.md | 2 +- js/sdk/docs/AnalyticTransferWalletTx.md | 2 +- ...nalyticsConfidentialIssuanceDescription.md | 4 +- .../AnalyticsPublicIssuanceDescription.md | 2 +- js/sdk/docs/AnalyticsRule.md | 3 +- js/sdk/docs/AnalyticsRuleDefinition.md | 3 +- js/sdk/docs/AnalyticsRuleWalletDefinition.md | 3 +- js/sdk/docs/AnalyticsTransferTx.md | 1 - js/sdk/docs/BalanceForAsset.md | 2 +- js/sdk/docs/GetTaskStatusResponse.md | 4 +- js/sdk/docs/IssueAssetRequest.md | 2 +- js/sdk/docs/NodeApi.md | 100 +++++- js/sdk/docs/Result.md | 2 + js/sdk/docs/Rule.md | 3 +- js/sdk/docs/TaskActionRequest.md | 9 + js/sdk/docs/TaskData.md | 12 + js/sdk/docs/TaskState.md | 26 ++ js/sdk/docs/TaskType.md | 4 + js/sdk/docs/TransferAssetRequest.md | 3 +- js/sdk/package.json | 2 +- js/sdk/src/ApiClient.js | 4 +- js/sdk/src/api/AnalyticsApi.js | 4 +- js/sdk/src/api/HealthApi.js | 4 +- js/sdk/src/api/NodeApi.js | 120 ++++++- js/sdk/src/api/WalletApi.js | 4 +- js/sdk/src/index.js | 30 +- js/sdk/src/model/AnalyticIssueWalletTx.js | 10 +- js/sdk/src/model/AnalyticRuleWalletTx.js | 4 +- js/sdk/src/model/AnalyticTransaction.js | 4 +- js/sdk/src/model/AnalyticTransferWalletTx.js | 10 +- js/sdk/src/model/AnalyticWalletMetadata.js | 4 +- js/sdk/src/model/AnalyticWalletTx.js | 4 +- ...nalyticsConfidentialIssuanceDescription.js | 31 +- js/sdk/src/model/AnalyticsIssueTx.js | 4 +- js/sdk/src/model/AnalyticsMultiTransferTx.js | 4 +- js/sdk/src/model/AnalyticsOutput.js | 4 +- .../src/model/AnalyticsOutputDescription.js | 4 +- .../AnalyticsPublicIssuanceDescription.js | 12 +- js/sdk/src/model/AnalyticsRule.js | 30 +- js/sdk/src/model/AnalyticsRuleDefinition.js | 22 +- js/sdk/src/model/AnalyticsRuleTx.js | 4 +- .../model/AnalyticsRuleWalletDefinition.js | 22 +- js/sdk/src/model/AnalyticsSpendDescription.js | 4 +- js/sdk/src/model/AnalyticsTransferTx.js | 20 +- js/sdk/src/model/AnalyticsTxMetadata.js | 4 +- js/sdk/src/model/AnalyticsTxType.js | 2 +- js/sdk/src/model/AsyncTaskCreatedResponse.js | 4 +- js/sdk/src/model/BalanceForAsset.js | 12 +- js/sdk/src/model/CreateRuleRequest.js | 4 +- js/sdk/src/model/DeleteRuleRequest.js | 4 +- js/sdk/src/model/DeleteWalletRequest.js | 4 +- js/sdk/src/model/ErrorResponse.js | 4 +- .../model/ExportAuditorAccessWalletRequest.js | 4 +- .../ExportAuditorAccessWalletResponse.js | 4 +- js/sdk/src/model/ExportWalletRequest.js | 4 +- js/sdk/src/model/ExportWalletResponse.js | 4 +- js/sdk/src/model/GenerateWalletRequest.js | 4 +- js/sdk/src/model/GetAllWalletsResponse.js | 4 +- js/sdk/src/model/GetNetworkActivityRequest.js | 4 +- .../src/model/GetNetworkActivityResponse.js | 4 +- js/sdk/src/model/GetNewAddressRequest.js | 4 +- js/sdk/src/model/GetNewAddressResponse.js | 4 +- js/sdk/src/model/GetPublicKeyRequest.js | 4 +- js/sdk/src/model/GetPublicKeyResponse.js | 4 +- js/sdk/src/model/GetRulesResponse.js | 4 +- js/sdk/src/model/GetSyncStatusResponse.js | 4 +- js/sdk/src/model/GetTaskStatusRequest.js | 4 +- js/sdk/src/model/GetTaskStatusResponse.js | 22 +- js/sdk/src/model/GetTasksRequest.js | 4 +- js/sdk/src/model/GetTasksResponse.js | 4 +- js/sdk/src/model/GetWalletActivityRequest.js | 4 +- js/sdk/src/model/GetWalletActivityResponse.js | 4 +- js/sdk/src/model/GetWalletBalanceRequest.js | 4 +- js/sdk/src/model/GetWalletBalanceResponse.js | 4 +- js/sdk/src/model/HealthcheckResponse.js | 4 +- js/sdk/src/model/HealthcheckResponseItem.js | 4 +- .../model/ImportAuditorAccessWalletRequest.js | 4 +- js/sdk/src/model/ImportWalletRequest.js | 4 +- js/sdk/src/model/IssueAssetRequest.js | 12 +- js/sdk/src/model/Result.js | 7 +- js/sdk/src/model/Rule.js | 30 +- js/sdk/src/model/TaskActionRequest.js | 90 ++++++ js/sdk/src/model/TaskData.js | 109 +++++++ js/sdk/src/model/TaskState.js | 103 ++++++ js/sdk/src/model/TaskType.js | 14 +- js/sdk/src/model/TransferAssetRequest.js | 20 +- js/sdk/src/model/UnlockWalletRequest.js | 4 +- js/sdk/test/api/AnalyticsApi.spec.js | 2 +- js/sdk/test/api/HealthApi.spec.js | 2 +- js/sdk/test/api/NodeApi.spec.js | 22 +- js/sdk/test/api/WalletApi.spec.js | 2 +- .../test/model/AnalyticIssueWalletTx.spec.js | 2 +- .../test/model/AnalyticRuleWalletTx.spec.js | 2 +- js/sdk/test/model/AnalyticTransaction.spec.js | 2 +- .../model/AnalyticTransferWalletTx.spec.js | 2 +- .../test/model/AnalyticWalletMetadata.spec.js | 2 +- js/sdk/test/model/AnalyticWalletTx.spec.js | 2 +- ...icsConfidentialIssuanceDescription.spec.js | 10 +- js/sdk/test/model/AnalyticsIssueTx.spec.js | 2 +- .../model/AnalyticsMultiTransferTx.spec.js | 2 +- js/sdk/test/model/AnalyticsOutput.spec.js | 2 +- .../model/AnalyticsOutputDescription.spec.js | 2 +- ...AnalyticsPublicIssuanceDescription.spec.js | 2 +- js/sdk/test/model/AnalyticsRule.spec.js | 12 +- .../model/AnalyticsRuleDefinition.spec.js | 12 +- js/sdk/test/model/AnalyticsRuleTx.spec.js | 2 +- .../AnalyticsRuleWalletDefinition.spec.js | 12 +- .../model/AnalyticsSpendDescription.spec.js | 2 +- js/sdk/test/model/AnalyticsTransferTx.spec.js | 8 +- js/sdk/test/model/AnalyticsTxMetadata.spec.js | 2 +- js/sdk/test/model/AnalyticsTxType.spec.js | 2 +- .../model/AsyncTaskCreatedResponse.spec.js | 2 +- js/sdk/test/model/BalanceForAsset.spec.js | 2 +- js/sdk/test/model/CreateRuleRequest.spec.js | 2 +- js/sdk/test/model/DeleteRuleRequest.spec.js | 2 +- js/sdk/test/model/DeleteWalletRequest.spec.js | 2 +- js/sdk/test/model/ErrorResponse.spec.js | 2 +- .../ExportAuditorAccessWalletRequest.spec.js | 2 +- .../ExportAuditorAccessWalletResponse.spec.js | 2 +- js/sdk/test/model/ExportWalletRequest.spec.js | 2 +- .../test/model/ExportWalletResponse.spec.js | 2 +- .../test/model/GenerateWalletRequest.spec.js | 2 +- .../test/model/GetAllWalletsResponse.spec.js | 2 +- .../model/GetNetworkActivityRequest.spec.js | 2 +- .../model/GetNetworkActivityResponse.spec.js | 2 +- .../test/model/GetNewAddressRequest.spec.js | 2 +- .../test/model/GetNewAddressResponse.spec.js | 2 +- js/sdk/test/model/GetPublicKeyRequest.spec.js | 2 +- .../test/model/GetPublicKeyResponse.spec.js | 2 +- js/sdk/test/model/GetRulesResponse.spec.js | 2 +- .../test/model/GetSyncStatusResponse.spec.js | 2 +- .../test/model/GetTaskStatusRequest.spec.js | 2 +- .../test/model/GetTaskStatusResponse.spec.js | 2 +- js/sdk/test/model/GetTasksRequest.spec.js | 2 +- js/sdk/test/model/GetTasksResponse.spec.js | 2 +- .../model/GetWalletActivityRequest.spec.js | 2 +- .../model/GetWalletActivityResponse.spec.js | 2 +- .../model/GetWalletBalanceRequest.spec.js | 2 +- .../model/GetWalletBalanceResponse.spec.js | 2 +- js/sdk/test/model/HealthcheckResponse.spec.js | 2 +- .../model/HealthcheckResponseItem.spec.js | 2 +- .../ImportAuditorAccessWalletRequest.spec.js | 2 +- js/sdk/test/model/ImportWalletRequest.spec.js | 2 +- js/sdk/test/model/IssueAssetRequest.spec.js | 2 +- js/sdk/test/model/Result.spec.js | 2 +- js/sdk/test/model/Rule.spec.js | 12 +- js/sdk/test/model/TaskActionRequest.spec.js | 73 +++++ js/sdk/test/model/TaskData.spec.js | 91 ++++++ js/sdk/test/model/TaskState.spec.js | 60 ++++ js/sdk/test/model/TaskType.spec.js | 2 +- .../test/model/TransferAssetRequest.spec.js | 8 +- js/sdk/test/model/UnlockWalletRequest.spec.js | 2 +- spec/asset-swagger.yaml | 272 ++++++++++------ 243 files changed, 2056 insertions(+), 775 deletions(-) create mode 100644 go/sdk/docs/TaskActionRequest.md create mode 100644 go/sdk/docs/TaskData.md create mode 100644 go/sdk/docs/TaskState.md create mode 100644 go/sdk/model_task_action_request.go create mode 100644 go/sdk/model_task_data.go create mode 100644 go/sdk/model_task_state.go create mode 100644 js/sdk/docs/TaskActionRequest.md create mode 100644 js/sdk/docs/TaskData.md create mode 100644 js/sdk/docs/TaskState.md create mode 100644 js/sdk/src/model/TaskActionRequest.js create mode 100644 js/sdk/src/model/TaskData.js create mode 100644 js/sdk/src/model/TaskState.js create mode 100644 js/sdk/test/model/TaskActionRequest.spec.js create mode 100644 js/sdk/test/model/TaskData.spec.js create mode 100644 js/sdk/test/model/TaskState.spec.js diff --git a/go/examples/cmd/transferandread/main.go b/go/examples/cmd/transferandread/main.go index 688b32d..a358c72 100644 --- a/go/examples/cmd/transferandread/main.go +++ b/go/examples/cmd/transferandread/main.go @@ -98,7 +98,7 @@ func main() { if err != nil { log.Fatal(err) } - fmt.Printf("got an issue-tx with asset ID %d, amount %d and memo \"%s\"", txContent.AssetId, txContent.Amount, txContent.Memo) + fmt.Printf("got an issue-tx with asset ID %s, amount %d and memo \"%s\"", txContent.AssetId, txContent.Amount, txContent.Memo) case "Transfer": var txContent sdk.AnalyticTransferWalletTx @@ -106,7 +106,7 @@ func main() { if err != nil { log.Fatal(err) } - fmt.Printf("got an transfer-tx with asset ID %d, amount %d and memo \"%s\"", txContent.AssetId, txContent.Amount, txContent.Memo) + fmt.Printf("got an transfer-tx with asset ID %s, amount %d and memo \"%s\"", txContent.AssetId, txContent.Amount, txContent.Memo) } } diff --git a/go/examples/cmd/walletbalances/main.go b/go/examples/cmd/walletbalances/main.go index 5796ffe..0fe2efa 100644 --- a/go/examples/cmd/walletbalances/main.go +++ b/go/examples/cmd/walletbalances/main.go @@ -26,7 +26,7 @@ func main() { for i := range balanceResponse.Assets { assetBalance := balanceResponse.Assets[i] - fmt.Printf("asset %d has balance %d\n", assetBalance.AssetId, assetBalance.Amount) + fmt.Printf("asset %s has balance %d\n", assetBalance.AssetId, assetBalance.Amount) } } diff --git a/go/sdk/README.md b/go/sdk/README.md index 2788e0e..e19088d 100644 --- a/go/sdk/README.md +++ b/go/sdk/README.md @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/opena ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. -- API version: 1.5.0 +- API version: 1.6.0 - Package version: 1.1.0 - Build package: org.openapitools.codegen.languages.GoClientCodegen @@ -33,7 +33,9 @@ Class | Method | HTTP request | Description *AnalyticsApi* | [**AnalyticsGetNetworkActivityPost**](docs/AnalyticsApi.md#analyticsgetnetworkactivitypost) | **Post** /analytics/get_network_activity | Get details on past blocks either by order using start_index and number_of_results or by the tx_hashes of the transactions *AnalyticsApi* | [**AnalyticsGetSyncStatusPost**](docs/AnalyticsApi.md#analyticsgetsyncstatuspost) | **Post** /analytics/get_sync_status | Get blockchain sync status information *HealthApi* | [**HealthPost**](docs/HealthApi.md#healthpost) | **Post** /health | Perform a healthcheck of the node and its dependent services -*NodeApi* | [**NodeDeleteWalletPost**](docs/NodeApi.md#nodedeletewalletpost) | **Post** /node/delete_wallet | Delete a Wallet +*NodeApi* | [**NodeApproveTaskPost**](docs/NodeApi.md#nodeapprovetaskpost) | **Post** /node/approve_task | Approve task with pending incoming transaction [async call] +*NodeApi* | [**NodeCancelTaskPost**](docs/NodeApi.md#nodecanceltaskpost) | **Post** /node/cancel_task | Cancel task with pending incoming transaction both incoming and outgoing [async call] +*NodeApi* | [**NodeDeleteWalletPost**](docs/NodeApi.md#nodedeletewalletpost) | **Post** /node/delete_wallet | Delete a Wallet [async call] *NodeApi* | [**NodeExportAuditorAccessWalletPost**](docs/NodeApi.md#nodeexportauditoraccesswalletpost) | **Post** /node/export_auditor_access_wallet | Export viewing credentials for a Wallet *NodeApi* | [**NodeExportWalletPost**](docs/NodeApi.md#nodeexportwalletpost) | **Post** /node/export_wallet | Export wallet secret key *NodeApi* | [**NodeGenerateWalletPost**](docs/NodeApi.md#nodegeneratewalletpost) | **Post** /node/generate_wallet | Generate a new Wallet @@ -62,7 +64,6 @@ Class | Method | HTTP request | Description - [AnalyticTransferWalletTx](docs/AnalyticTransferWalletTx.md) - [AnalyticWalletMetadata](docs/AnalyticWalletMetadata.md) - [AnalyticWalletTx](docs/AnalyticWalletTx.md) - - [AnalyticsAssetConverterProofDescription](docs/AnalyticsAssetConverterProofDescription.md) - [AnalyticsConfidentialIssuanceDescription](docs/AnalyticsConfidentialIssuanceDescription.md) - [AnalyticsIssueTx](docs/AnalyticsIssueTx.md) - [AnalyticsMultiTransferTx](docs/AnalyticsMultiTransferTx.md) @@ -112,6 +113,9 @@ Class | Method | HTTP request | Description - [IssueAssetRequest](docs/IssueAssetRequest.md) - [Result](docs/Result.md) - [Rule](docs/Rule.md) + - [TaskActionRequest](docs/TaskActionRequest.md) + - [TaskData](docs/TaskData.md) + - [TaskState](docs/TaskState.md) - [TaskType](docs/TaskType.md) - [TransferAssetRequest](docs/TransferAssetRequest.md) - [UnlockWalletRequest](docs/UnlockWalletRequest.md) diff --git a/go/sdk/api/openapi.yaml b/go/sdk/api/openapi.yaml index 73f3a81..09e92e8 100644 --- a/go/sdk/api/openapi.yaml +++ b/go/sdk/api/openapi.yaml @@ -1,7 +1,7 @@ openapi: 3.0.0 info: title: QEDIT - Asset Transfers - version: 1.5.0 + version: 1.6.0 servers: - url: http://{server_url}:{port} variables: @@ -443,7 +443,7 @@ paths: schema: $ref: '#/components/schemas/ErrorResponse' description: Internal error - summary: Delete a Wallet + summary: Delete a Wallet [async call] tags: - Node /node/export_wallet: @@ -755,6 +755,72 @@ paths: summary: Get a (potentially) filtered list of all Tasks tags: - Node + /node/approve_task: + post: + description: Confirmation request tasks are confirmed using this point. After the user confirms the incoming transaction, it is asynchronously sent to the blockchain and its status can be queried like any other async task. + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/TaskActionRequest' + required: true + responses: + 200: + description: Success + 400: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Bad request + 401: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Unauthorized + 500: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Internal error + summary: Approve task with pending incoming transaction [async call] + tags: + - Node + /node/cancel_task: + post: + description: A user may select to decline an incoming transaction. The related task will change its result to failure both on senders and the receivers side. This endpoint can also be used to cancel an outgoing pending transaction that is awaiting user interaction from the receiver + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/TaskActionRequest' + required: true + responses: + 200: + description: Success + 400: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Bad request + 401: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Unauthorized + 500: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Internal error + summary: Cancel task with pending incoming transaction both incoming and outgoing [async call] + tags: + - Node /health: post: description: Reports the health of the various components of the system as well as an overall status for the Node. If the Node's status is good, then the Node is synced with the Blockchain and can successfully process requests. @@ -782,6 +848,14 @@ paths: - Health components: schemas: + AssetId: + description: | + The ID of an Asset Type. It must be a string of length 0 to 40 characters. Allowed characters are lower- and uppercase letters, digits, dot (.), and hyphen (-). It must not end with an hyphen. Asset IDs are case-sensitive. + type: string + Namespace: + description: | + A `Namespace` describes what Asset IDs can be issued in an Issuance Rule. It is a string in the same format as `AssetId`. Additionally, if it ends with a wildcard character `*`, then the namespace covers all asset IDs with the namespace as a prefix. Without a final wildcard, the namespace covers exactly one asset ID. Example: The namespace `currencies.dollar` covers only this exact asset type, while `currencies.*` covers all asset types that start with `currencies.`. + type: string GetWalletBalanceRequest: example: wallet_id: source_wallet @@ -797,9 +871,9 @@ components: wallet_id: source_wallet properties: asset_id: - description: The ID of the Asset Type - format: int32 - type: integer + description: | + The ID of an Asset Type. It must be a string of length 0 to 40 characters. Allowed characters are lower- and uppercase letters, digits, dot (.), and hyphen (-). It must not end with an hyphen. Asset IDs are case-sensitive. + type: string amount: description: The outstanding balance for the Asset Type format: int32 @@ -812,9 +886,9 @@ components: example: wallet_id: source_wallet assets: - - asset_id: 1 + - asset_id: bank-a.loans.1 amount: 8 - - asset_id: 10 + - asset_id: bank-a.loans.2 amount: 200 properties: wallet_id: @@ -834,9 +908,10 @@ components: wallet_id: source_wallet authorization: PrivacyIsAwesome recipient_address: q1dxlf6vap2566t8w3z8f5j5lxy9n036zfsaytjve7fedsw6w8c9q9ctrwfz6ryyjwkgvj6tjg70f - asset_id: 1 + asset_id: bank-a.loans.1 amount: 4 memo: '{"recipient_name": "Dan"}' + require_confirmation_from: bf45ab74bd4a46fe7a2432ba05e2f726bf4fe42a80052849e13e2541230d3204 properties: wallet_id: description: The ID of the Wallet to transfer from @@ -848,9 +923,9 @@ components: description: The Address of the recipient of the funds type: string asset_id: - description: The ID for the Asset Type to transfer - format: int32 - type: integer + description: | + The ID of an Asset Type. It must be a string of length 0 to 40 characters. Allowed characters are lower- and uppercase letters, digits, dot (.), and hyphen (-). It must not end with an hyphen. Asset IDs are case-sensitive. + type: string amount: description: The amount of assets to transfer format: int32 @@ -858,6 +933,9 @@ components: memo: description: An app-customizable field to store additional private data relating to the transfer; the memo is shared between the sender and the receiver, but is not divulged to other parties type: string + require_confirmation_from: + description: A user may request confirmation from the receiving party. If a public key of the approver is included in this optional field, the transaction will only become valid after the received signs it. The receiver will be able to decide whether to accept or reject the transfer by calling the /node/approve_task or the /node/reject_task respectively. + type: string required: - amount - asset_id @@ -866,6 +944,20 @@ components: - recipient_address - wallet_id type: object + TaskActionRequest: + description: To approve or cancel a task, the user should include the task id and authorization of the wallet related to this task. + example: + task_id: 5aaa4045-e949-4c44-a7ef-25fb55a1afa6 + authorization: PrivacyIsAwesome + properties: + task_id: + type: string + authorization: + type: string + required: + - authorization + - task_id + type: object GetWalletActivityRequest: example: wallet_id: source_wallet @@ -893,13 +985,11 @@ components: rules: - public_key: bf45ab74bd4a46fe7a2432ba05e2f726bf4fe42a80052849e13e2541230d3204 can_issue_confidentially: false - can_issue_asset_id_first: 100 - can_issue_asset_id_last: 112 + namespace: bank-a.loans.* is_admin: false - public_key: bf45ab74bd4a46fe7a2432ba05e2f726bf4fe42a80052849e13e2541230d3204 can_issue_confidentially: false - can_issue_asset_id_first: 100 - can_issue_asset_id_last: 112 + namespace: bank-a.loans.* is_admin: false properties: rules: @@ -997,8 +1087,7 @@ components: result: $ref: '#/components/schemas/Result' state: - description: More granular current state of the Task; list of supported states is not guaranteed to be stable - type: string + $ref: '#/components/schemas/TaskState' tx_hash: description: The Blockchain-generated hash of the Transaction; populated after the Blockchain Node accepted the Transaction type: string @@ -1008,8 +1097,7 @@ components: type: $ref: '#/components/schemas/TaskType' data: - description: Container for the Transaction data; each Transaction type has different fields - type: object + $ref: '#/components/schemas/TaskData' error: description: In case of failure this field reports the reason for the failure type: string @@ -1019,9 +1107,24 @@ components: enum: - pending - in_progress + - awaiting_user_interaction - success - failure type: string + TaskState: + description: A fine-grained status of the node's inner state. This field is subject to changes and should not be relied upon during development + enum: + - pending_state + - in_progress_state + - tx_generated_state + - conf_req_sent_state + - conf_req_received_state + - conf_req_canceled_by_sender_state + - conf_req_canceled_by_receiver_state + - tx_submitted_state + - failure_state + - success_state + type: string TaskType: description: Task type enum: @@ -1031,7 +1134,26 @@ components: - alter_rule - import_wallet - delete_wallet + - outgoing_confirm_request + - incoming_confirm_request type: string + TaskData: + description: an object that includes additional request details + properties: + require_confirmation_from: + description: The public key for the confirmation request receiver + type: string + recipient_address: + description: The address the request was sent to + type: string + asset_id: + type: string + amount: + format: int32 + type: integer + wallet_id: + type: string + type: object GetTasksResponse: example: tasks: @@ -1096,7 +1218,7 @@ components: - is_confidential: false, public_issuance_description: amount: 12 - asset_id: 5 + asset_id: bank-a.loans.1 output_description: cv: c2366ace373af05c92fc315dd502637ee4fa6ba46f05319ddcff209619bbaa27 cm: 0e148cb409e313cb13f28c6d8110fdb7f4daf119db99cedeab1234bd64ac4681 @@ -1118,7 +1240,7 @@ components: - is_confidential: false, public_issuance_description: amount: 12 - asset_id: 5 + asset_id: bank-a.loans.1 output_description: cv: c2366ace373af05c92fc315dd502637ee4fa6ba46f05319ddcff209619bbaa27 cm: 0e148cb409e313cb13f28c6d8110fdb7f4daf119db99cedeab1234bd64ac4681 @@ -1158,7 +1280,7 @@ components: authorization: PrivacyIsAwesome recipient_address: q1dxlf6vap2566t8w3z8f5j5lxy9n036zfsaytjve7fedsw6w8c9q9ctrwfz6ryyjwkgvj6tjg70f amount: 4 - asset_id: 1 + asset_id: bank-a.loans.1 confidential: false memo: '{"recipient_name": "Dan"}' properties: @@ -1172,9 +1294,9 @@ components: description: The Address of the recipient of the issued Assets type: string asset_id: - description: The ID of the Asset Type to issue - format: int32 - type: integer + description: | + The ID of an Asset Type. It must be a string of length 0 to 40 characters. Allowed characters are lower- and uppercase letters, digits, dot (.), and hyphen (-). It must not end with an hyphen. Asset IDs are case-sensitive. + type: string amount: description: the amount of Assets to issue format: int32 @@ -1418,8 +1540,7 @@ components: rules_to_add: - public_key: bf45ab74bd4a46fe7a2432ba05e2f726bf4fe42a80052849e13e2541230d3204 can_issue_confidentially: false - can_issue_asset_id_first: 100 - can_issue_asset_id_last: 112 + namespace: bank-a.loans.* is_admin: false properties: wallet_id: @@ -1445,8 +1566,7 @@ components: rules_to_delete: - public_key: bf45ab74bd4a46fe7a2432ba05e2f726bf4fe42a80052849e13e2541230d3204 can_issue_confidentially: false - can_issue_asset_id_first: 100 - can_issue_asset_id_last: 112 + namespace: bank-a.loans.* is_admin: false properties: wallet_id: @@ -1469,8 +1589,7 @@ components: example: public_key: bf45ab74bd4a46fe7a2432ba05e2f726bf4fe42a80052849e13e2541230d3204 can_issue_confidentially: false - can_issue_asset_id_first: 100 - can_issue_asset_id_last: 112 + namespace: bank-a.loans.* is_admin: false properties: public_key: @@ -1479,22 +1598,17 @@ components: is_admin: description: Boolean signifying whether the Rule grants admin rights type: boolean - can_issue_asset_id_first: - description: The lower Asset ID in the range of IDs the Rule grants issuance rights for (range is inclusive) - format: int32 - type: integer - can_issue_asset_id_last: - description: The upper Asset ID in the range of IDs the Rule grants issuance rights for (range is inclusive) - format: int32 - type: integer + namespace: + description: | + A `Namespace` describes what Asset IDs can be issued in an Issuance Rule. It is a string in the same format as `AssetId`. Additionally, if it ends with a wildcard character `*`, then the namespace covers all asset IDs with the namespace as a prefix. Without a final wildcard, the namespace covers exactly one asset ID. Example: The namespace `currencies.dollar` covers only this exact asset type, while `currencies.*` covers all asset types that start with `currencies.`. + type: string can_issue_confidentially: description: Boolean signifying whether the Rule grants confidentialy issuance rights; if true, then both public and confidential issuance right are granted; if false, then only public issuance rights are granted type: boolean required: - - can_issue_asset_id_first - - can_issue_asset_id_last - can_issue_confidentially - is_admin + - namespace - public_key type: object ErrorResponse: @@ -1536,7 +1650,7 @@ components: - is_confidential: false, public_issuance_description: amount: 12 - asset_id: 5 + asset_id: bank-a.loans.1 output_description: cv: c2366ace373af05c92fc315dd502637ee4fa6ba46f05319ddcff209619bbaa27 cm: 0e148cb409e313cb13f28c6d8110fdb7f4daf119db99cedeab1234bd64ac4681 @@ -1612,11 +1726,6 @@ components: AnalyticsTransferTx: description: The data of a single Transfer within a Transfer transaction properties: - asset_converter_descriptions: - description: The Converter Proofs - items: - $ref: '#/components/schemas/AnalyticsAssetConverterProofDescription' - type: array spends: description: The information and Proofs associated with the Assets spent in the Transfer items: @@ -1665,8 +1774,7 @@ components: example: public_key: AAAAAAAAAA== is_admin: true - can_issue_asset_id_first: 11 - can_issue_asset_id_last: 20 + namespace: bank-a.loans.* can_issue_confidentially: true properties: public_key: @@ -1675,14 +1783,10 @@ components: is_admin: description: Boolean signifying whether the Rule grants admin rights type: boolean - can_issue_asset_id_first: - description: The lower Asset ID in the range of IDs the Rule grants issuance rights for (range is inclusive) - format: int32 - type: integer - can_issue_asset_id_last: - description: The upper Asset ID in the range of IDs the Rule grants issuance rights for (range is inclusive) - format: int32 - type: integer + namespace: + description: | + A `Namespace` describes what Asset IDs can be issued in an Issuance Rule. It is a string in the same format as `AssetId`. Additionally, if it ends with a wildcard character `*`, then the namespace covers all asset IDs with the namespace as a prefix. Without a final wildcard, the namespace covers exactly one asset ID. Example: The namespace `currencies.dollar` covers only this exact asset type, while `currencies.*` covers all asset types that start with `currencies.`. + type: string can_issue_confidentially: description: Boolean signifying whether the Rule grants confidentialy issuance rights; if true, then both public and confidential issuance right are granted; if false, then only public issuance rights are granted type: boolean @@ -1691,8 +1795,7 @@ components: example: public_key: AAAAAAAAAA== is_admin: true - can_issue_asset_id_first: 11 - can_issue_asset_id_last: 20 + namespace: bank-a.loans.* can_issue_confidentially: true operation: CreateRule properties: @@ -1702,14 +1805,10 @@ components: is_admin: description: Boolean signifying whether the Rule grants admin rights type: boolean - can_issue_asset_id_first: - description: The lower Asset ID in the range of IDs the Rule grants issuance rights for (range is inclusive) - format: int32 - type: integer - can_issue_asset_id_last: - description: The upper Asset ID in the range of IDs the Rule grants issuance rights for (range is inclusive) - format: int32 - type: integer + namespace: + description: | + A `Namespace` describes what Asset IDs can be issued in an Issuance Rule. It is a string in the same format as `AssetId`. Additionally, if it ends with a wildcard character `*`, then the namespace covers all asset IDs with the namespace as a prefix. Without a final wildcard, the namespace covers exactly one asset ID. Example: The namespace `currencies.dollar` covers only this exact asset type, while `currencies.*` covers all asset types that start with `currencies.`. + type: string can_issue_confidentially: description: Boolean signifying whether the Rule grants confidentialy issuance rights; if true, then both public and confidential issuance right are granted; if false, then only public issuance rights are granted type: boolean @@ -1735,15 +1834,14 @@ components: AnalyticsPublicIssuanceDescription: description: Describes what Asset Type and amount were issued; null if the Issuance was confidential example: - asset_id: 10 + asset_id: bank-a.loans.1 amount: 3 nullable: true properties: asset_id: - description: The ID of the Asset Type issued - format: int32 - minimum: 1 - type: integer + description: | + The ID of an Asset Type. It must be a string of length 0 to 40 characters. Allowed characters are lower- and uppercase letters, digits, dot (.), and hyphen (-). It must not end with an hyphen. Asset IDs are case-sensitive. + type: string amount: description: The amount of Assets issued format: int32 @@ -1753,26 +1851,6 @@ components: - amount - asset_id type: object - AnalyticsAssetConverterProofDescription: - example: - asset_cv: AAAAAAAAAAA= - amount_cv: AAAAAAAAAAA= - input_cv: AAAAAAAAAAA= - zkproof: 000AAAAAAA= - properties: - input_cv: - description: The commitment to both the Asset Type and amount of the Note - type: string - amount_cv: - description: The commitment to the Asset amount - type: string - asset_cv: - description: The commitment to the ID of the Asset Type - type: string - zkproof: - description: The Proof that the commitment contents match - type: string - type: object AnalyticsSpendDescription: example: cv: AAAAAAAAAAA= @@ -1826,16 +1904,16 @@ components: example: input_cv: AAAAAAAAAAA= zkproof: 000AAAAAAA= - rule: - - min_id: 11 - - max_id: 20 + namespace: bank-a.loans.* nullable: true properties: - input_cv: - description: Thecommitment to both the Asset Type and amount of the issued Note + casset: + description: The commitment to both the Asset Type and amount of the issued Note + type: string + namespace: + description: | + A `Namespace` describes what Asset IDs can be issued in an Issuance Rule. It is a string in the same format as `AssetId`. Additionally, if it ends with a wildcard character `*`, then the namespace covers all asset IDs with the namespace as a prefix. Without a final wildcard, the namespace covers exactly one asset ID. Example: The namespace `currencies.dollar` covers only this exact asset type, while `currencies.*` covers all asset types that start with `currencies.`. type: string - rule: - $ref: '#/components/schemas/AnalyticsRule' zkproof: description: The Proof that the issued Asset Type indeed matches the reported Rule type: string @@ -1843,20 +1921,14 @@ components: AnalyticsRule: description: The Rule used in the Issuance example: - min_id: 11 - max_id: 20 + namespace: bank-a.loans.* properties: - min_id: - description: The lower Asset ID in the range of IDs the Rule grants issuance rights for (range is inclusive) - format: int32 - type: integer - max_id: - description: The upper Asset ID in the range of IDs the Rule grants issuance rights for (range is inclusive) - format: int32 - type: integer + namespace: + description: | + A `Namespace` describes what Asset IDs can be issued in an Issuance Rule. It is a string in the same format as `AssetId`. Additionally, if it ends with a wildcard character `*`, then the namespace covers all asset IDs with the namespace as a prefix. Without a final wildcard, the namespace covers exactly one asset ID. Example: The namespace `currencies.dollar` covers only this exact asset type, while `currencies.*` covers all asset types that start with `currencies.`. + type: string required: - - max_id - - min_id + - namespace type: object GetWalletActivityResponse: example: @@ -1925,9 +1997,9 @@ components: description: The Address the Assets were issued to type: string asset_id: - description: The ID of the Asset Type issued - format: int32 - type: integer + description: | + The ID of an Asset Type. It must be a string of length 0 to 40 characters. Allowed characters are lower- and uppercase letters, digits, dot (.), and hyphen (-). It must not end with an hyphen. Asset IDs are case-sensitive. + type: string amount: description: The amount of Assets issued format: int32 @@ -1951,9 +2023,9 @@ components: description: The address of the Wallet the Assets were transferred to type: string asset_id: - description: The Id of the Asset Type transferred - format: int32 - type: integer + description: | + The ID of an Asset Type. It must be a string of length 0 to 40 characters. Allowed characters are lower- and uppercase letters, digits, dot (.), and hyphen (-). It must not end with an hyphen. Asset IDs are case-sensitive. + type: string amount: description: The amount of Assets transferred format: int32 diff --git a/go/sdk/api_analytics.go b/go/sdk/api_analytics.go index ff0ee16..1bbcc4b 100644 --- a/go/sdk/api_analytics.go +++ b/go/sdk/api_analytics.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/api_health.go b/go/sdk/api_health.go index 355cae1..8c731b1 100644 --- a/go/sdk/api_health.go +++ b/go/sdk/api_health.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/api_node.go b/go/sdk/api_node.go index 0167bec..132014e 100644 --- a/go/sdk/api_node.go +++ b/go/sdk/api_node.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -25,7 +25,229 @@ var ( type NodeApiService service /* -NodeApiService Delete a Wallet +NodeApiService Approve task with pending incoming transaction [async call] +Confirmation request tasks are confirmed using this point. After the user confirms the incoming transaction, it is asynchronously sent to the blockchain and its status can be queried like any other async task. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param taskActionRequest +*/ +func (a *NodeApiService) NodeApproveTaskPost(ctx context.Context, taskActionRequest TaskActionRequest) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/node/approve_task" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &taskActionRequest + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["x-auth-token"] = key + } + } + + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 400 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 401 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} + +/* +NodeApiService Cancel task with pending incoming transaction both incoming and outgoing [async call] +A user may select to decline an incoming transaction. The related task will change its result to failure both on senders and the receivers side. This endpoint can also be used to cancel an outgoing pending transaction that is awaiting user interaction from the receiver + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param taskActionRequest +*/ +func (a *NodeApiService) NodeCancelTaskPost(ctx context.Context, taskActionRequest TaskActionRequest) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/node/cancel_task" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &taskActionRequest + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["x-auth-token"] = key + } + } + + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 400 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 401 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} + +/* +NodeApiService Delete a Wallet [async call] Deletes a Wallet from the Node; All private information about the Wallet will be deleted including transactional history, balances, and keys; If the secret key of the Wallet are not stored elsewhere then all Assets held in the Wallet will be forever lost! If the secret key of the Wallet is stored elsewhere, then all held Assets and the entire transactional history of the Wallet can be restored from the Blockchain at any time by importing the Wallet into a Node. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param deleteWalletRequest diff --git a/go/sdk/api_wallet.go b/go/sdk/api_wallet.go index 1c1443d..4a6f12c 100644 --- a/go/sdk/api_wallet.go +++ b/go/sdk/api_wallet.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/client.go b/go/sdk/client.go index a795c52..dfaea9f 100644 --- a/go/sdk/client.go +++ b/go/sdk/client.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -37,7 +37,7 @@ var ( xmlCheck = regexp.MustCompile("(?i:[application|text]/xml)") ) -// APIClient manages communication with the QEDIT - Asset Transfers API v1.5.0 +// APIClient manages communication with the QEDIT - Asset Transfers API v1.6.0 // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *Configuration @@ -322,17 +322,17 @@ func (c *APIClient) prepareRequest( } func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { - if strings.Contains(contentType, "application/xml") { - if err = xml.Unmarshal(b, v); err != nil { - return err - } - return nil - } else if strings.Contains(contentType, "application/json") { - if err = json.Unmarshal(b, v); err != nil { - return err + if strings.Contains(contentType, "application/xml") { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } else if strings.Contains(contentType, "application/json") { + if err = json.Unmarshal(b, v); err != nil { + return err + } + return nil } - return nil - } return errors.New("undefined response type") } diff --git a/go/sdk/configuration.go b/go/sdk/configuration.go index 1368ba1..082f1b0 100644 --- a/go/sdk/configuration.go +++ b/go/sdk/configuration.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/docs/AnalyticIssueWalletTx.md b/go/sdk/docs/AnalyticIssueWalletTx.md index 20266d2..d5cd65a 100644 --- a/go/sdk/docs/AnalyticIssueWalletTx.md +++ b/go/sdk/docs/AnalyticIssueWalletTx.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **IssuedBySelf** | **bool** | Boolean signifying whether the Wallet used to issue the Assets is the Wallet in question | [optional] **SenderId** | **string** | The public key of the Wallet that was used to issue the Assets | [optional] **RecipientAddress** | **string** | The Address the Assets were issued to | [optional] -**AssetId** | **int32** | The ID of the Asset Type issued | [optional] +**AssetId** | **string** | The ID of an Asset Type. It must be a string of length 0 to 40 characters. Allowed characters are lower- and uppercase letters, digits, dot (.), and hyphen (-). It must not end with an hyphen. Asset IDs are case-sensitive. | [optional] **Amount** | **int32** | The amount of Assets issued | [optional] **IsConfidential** | **bool** | Boolean signifying whether the Issuance was done confidentially | [optional] **Memo** | **string** | The private memo attached to the Issuance | [optional] diff --git a/go/sdk/docs/AnalyticTransferWalletTx.md b/go/sdk/docs/AnalyticTransferWalletTx.md index b8c5786..0a241b4 100644 --- a/go/sdk/docs/AnalyticTransferWalletTx.md +++ b/go/sdk/docs/AnalyticTransferWalletTx.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **IsIncoming** | **bool** | Boolean signifying whether the Assets were transferred to the Wallet in question; false of the Assets were transferred from the Wallet into another | [optional] **SenderId** | **string** | The public key of the Wallet the Assets were transferred from | [optional] **RecipientAddress** | **string** | The address of the Wallet the Assets were transferred to | [optional] -**AssetId** | **int32** | The Id of the Asset Type transferred | [optional] +**AssetId** | **string** | The ID of an Asset Type. It must be a string of length 0 to 40 characters. Allowed characters are lower- and uppercase letters, digits, dot (.), and hyphen (-). It must not end with an hyphen. Asset IDs are case-sensitive. | [optional] **Amount** | **int32** | The amount of Assets transferred | [optional] **Memo** | **string** | The private memo attached to the Transfer | [optional] diff --git a/go/sdk/docs/AnalyticsConfidentialIssuanceDescription.md b/go/sdk/docs/AnalyticsConfidentialIssuanceDescription.md index f1fd148..30940b6 100644 --- a/go/sdk/docs/AnalyticsConfidentialIssuanceDescription.md +++ b/go/sdk/docs/AnalyticsConfidentialIssuanceDescription.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**InputCv** | **string** | Thecommitment to both the Asset Type and amount of the issued Note | [optional] -**Rule** | [**AnalyticsRule**](AnalyticsRule.md) | | [optional] +**Casset** | **string** | The commitment to both the Asset Type and amount of the issued Note | [optional] +**Namespace** | **string** | A `Namespace` describes what Asset IDs can be issued in an Issuance Rule. It is a string in the same format as `AssetId`. Additionally, if it ends with a wildcard character `*`, then the namespace covers all asset IDs with the namespace as a prefix. Without a final wildcard, the namespace covers exactly one asset ID. Example: The namespace `currencies.dollar` covers only this exact asset type, while `currencies.*` covers all asset types that start with `currencies.`. | [optional] **Zkproof** | **string** | The Proof that the issued Asset Type indeed matches the reported Rule | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/go/sdk/docs/AnalyticsPublicIssuanceDescription.md b/go/sdk/docs/AnalyticsPublicIssuanceDescription.md index d795427..08eb07d 100644 --- a/go/sdk/docs/AnalyticsPublicIssuanceDescription.md +++ b/go/sdk/docs/AnalyticsPublicIssuanceDescription.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**AssetId** | **int32** | The ID of the Asset Type issued | +**AssetId** | **string** | The ID of an Asset Type. It must be a string of length 0 to 40 characters. Allowed characters are lower- and uppercase letters, digits, dot (.), and hyphen (-). It must not end with an hyphen. Asset IDs are case-sensitive. | **Amount** | **int32** | The amount of Assets issued | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/go/sdk/docs/AnalyticsRule.md b/go/sdk/docs/AnalyticsRule.md index 2fb001c..9572503 100644 --- a/go/sdk/docs/AnalyticsRule.md +++ b/go/sdk/docs/AnalyticsRule.md @@ -3,8 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**MinId** | **int32** | The lower Asset ID in the range of IDs the Rule grants issuance rights for (range is inclusive) | -**MaxId** | **int32** | The upper Asset ID in the range of IDs the Rule grants issuance rights for (range is inclusive) | +**Namespace** | **string** | A `Namespace` describes what Asset IDs can be issued in an Issuance Rule. It is a string in the same format as `AssetId`. Additionally, if it ends with a wildcard character `*`, then the namespace covers all asset IDs with the namespace as a prefix. Without a final wildcard, the namespace covers exactly one asset ID. Example: The namespace `currencies.dollar` covers only this exact asset type, while `currencies.*` covers all asset types that start with `currencies.`. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/go/sdk/docs/AnalyticsRuleDefinition.md b/go/sdk/docs/AnalyticsRuleDefinition.md index 7b25e1b..47f2bba 100644 --- a/go/sdk/docs/AnalyticsRuleDefinition.md +++ b/go/sdk/docs/AnalyticsRuleDefinition.md @@ -5,8 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **PublicKey** | **string** | The public key of the Wallet that is being granted rights in this Rule | [optional] **IsAdmin** | **bool** | Boolean signifying whether the Rule grants admin rights | [optional] -**CanIssueAssetIdFirst** | **int32** | The lower Asset ID in the range of IDs the Rule grants issuance rights for (range is inclusive) | [optional] -**CanIssueAssetIdLast** | **int32** | The upper Asset ID in the range of IDs the Rule grants issuance rights for (range is inclusive) | [optional] +**Namespace** | **string** | A `Namespace` describes what Asset IDs can be issued in an Issuance Rule. It is a string in the same format as `AssetId`. Additionally, if it ends with a wildcard character `*`, then the namespace covers all asset IDs with the namespace as a prefix. Without a final wildcard, the namespace covers exactly one asset ID. Example: The namespace `currencies.dollar` covers only this exact asset type, while `currencies.*` covers all asset types that start with `currencies.`. | [optional] **CanIssueConfidentially** | **bool** | Boolean signifying whether the Rule grants confidentialy issuance rights; if true, then both public and confidential issuance right are granted; if false, then only public issuance rights are granted | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/go/sdk/docs/AnalyticsRuleWalletDefinition.md b/go/sdk/docs/AnalyticsRuleWalletDefinition.md index 0f1a0c3..3db566c 100644 --- a/go/sdk/docs/AnalyticsRuleWalletDefinition.md +++ b/go/sdk/docs/AnalyticsRuleWalletDefinition.md @@ -5,8 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **PublicKey** | **string** | The public key of the Wallet that is being granted rights in this Rule | [optional] **IsAdmin** | **bool** | Boolean signifying whether the Rule grants admin rights | [optional] -**CanIssueAssetIdFirst** | **int32** | The lower Asset ID in the range of IDs the Rule grants issuance rights for (range is inclusive) | [optional] -**CanIssueAssetIdLast** | **int32** | The upper Asset ID in the range of IDs the Rule grants issuance rights for (range is inclusive) | [optional] +**Namespace** | **string** | A `Namespace` describes what Asset IDs can be issued in an Issuance Rule. It is a string in the same format as `AssetId`. Additionally, if it ends with a wildcard character `*`, then the namespace covers all asset IDs with the namespace as a prefix. Without a final wildcard, the namespace covers exactly one asset ID. Example: The namespace `currencies.dollar` covers only this exact asset type, while `currencies.*` covers all asset types that start with `currencies.`. | [optional] **CanIssueConfidentially** | **bool** | Boolean signifying whether the Rule grants confidentialy issuance rights; if true, then both public and confidential issuance right are granted; if false, then only public issuance rights are granted | [optional] **Operation** | **string** | Operation of the transaction, which can be rule creation or deletion | [optional] diff --git a/go/sdk/docs/AnalyticsTransferTx.md b/go/sdk/docs/AnalyticsTransferTx.md index 6fcda50..ec40138 100644 --- a/go/sdk/docs/AnalyticsTransferTx.md +++ b/go/sdk/docs/AnalyticsTransferTx.md @@ -3,7 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**AssetConverterDescriptions** | [**[]AnalyticsAssetConverterProofDescription**](AnalyticsAssetConverterProofDescription.md) | The Converter Proofs | [optional] **Spends** | [**[]AnalyticsSpendDescription**](AnalyticsSpendDescription.md) | The information and Proofs associated with the Assets spent in the Transfer | [optional] **Outputs** | [**[]AnalyticsOutputDescription**](AnalyticsOutputDescription.md) | The information and Proofs associated with the Assets output from the Transfer | [optional] **Rk** | **string** | The re-randomized public key of the Wallet which created the Transfer | [optional] diff --git a/go/sdk/docs/BalanceForAsset.md b/go/sdk/docs/BalanceForAsset.md index d004e88..dffd169 100644 --- a/go/sdk/docs/BalanceForAsset.md +++ b/go/sdk/docs/BalanceForAsset.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**AssetId** | **int32** | The ID of the Asset Type | +**AssetId** | **string** | The ID of an Asset Type. It must be a string of length 0 to 40 characters. Allowed characters are lower- and uppercase letters, digits, dot (.), and hyphen (-). It must not end with an hyphen. Asset IDs are case-sensitive. | **Amount** | **int32** | The outstanding balance for the Asset Type | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/go/sdk/docs/GetTaskStatusResponse.md b/go/sdk/docs/GetTaskStatusResponse.md index 157b1b0..12bdc26 100644 --- a/go/sdk/docs/GetTaskStatusResponse.md +++ b/go/sdk/docs/GetTaskStatusResponse.md @@ -7,11 +7,11 @@ Name | Type | Description | Notes **CreatedAt** | **string** | UTC time of creation of the Task in RFC-3339 format | [optional] **UpdatedAt** | **string** | UTC last time the Task was updated in RFC-3339 format | [optional] **Result** | [**Result**](Result.md) | | [optional] -**State** | **string** | More granular current state of the Task; list of supported states is not guaranteed to be stable | [optional] +**State** | [**TaskState**](TaskState.md) | | [optional] **TxHash** | **string** | The Blockchain-generated hash of the Transaction; populated after the Blockchain Node accepted the Transaction | [optional] **QeditTxHash** | **string** | The QEDIT-generated hash of the Transaction; generated after proof generation, but prior to Broadcast by the QEDIT Node | [optional] **Type** | [**TaskType**](TaskType.md) | | [optional] -**Data** | [**map[string]interface{}**](map[string]interface{}.md) | Container for the Transaction data; each Transaction type has different fields | [optional] +**Data** | [**TaskData**](TaskData.md) | | [optional] **Error** | **string** | In case of failure this field reports the reason for the failure | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/go/sdk/docs/IssueAssetRequest.md b/go/sdk/docs/IssueAssetRequest.md index 305d1e0..f93e9fe 100644 --- a/go/sdk/docs/IssueAssetRequest.md +++ b/go/sdk/docs/IssueAssetRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **WalletId** | **string** | The ID of the Wallet that has the required Issuance privileges | **Authorization** | **string** | The authorization password for the Wallet that has the Issuance privileges | **RecipientAddress** | **string** | The Address of the recipient of the issued Assets | -**AssetId** | **int32** | The ID of the Asset Type to issue | +**AssetId** | **string** | The ID of an Asset Type. It must be a string of length 0 to 40 characters. Allowed characters are lower- and uppercase letters, digits, dot (.), and hyphen (-). It must not end with an hyphen. Asset IDs are case-sensitive. | **Amount** | **int32** | the amount of Assets to issue | **Confidential** | **bool** | Boolean which should be true if the issuance should be confidential, and false of the Issuance should be public | **Memo** | **string** | | diff --git a/go/sdk/docs/NodeApi.md b/go/sdk/docs/NodeApi.md index bde88c8..2d99e65 100644 --- a/go/sdk/docs/NodeApi.md +++ b/go/sdk/docs/NodeApi.md @@ -4,7 +4,9 @@ All URIs are relative to *http://localhost:12052* Method | HTTP request | Description ------------- | ------------- | ------------- -[**NodeDeleteWalletPost**](NodeApi.md#NodeDeleteWalletPost) | **Post** /node/delete_wallet | Delete a Wallet +[**NodeApproveTaskPost**](NodeApi.md#NodeApproveTaskPost) | **Post** /node/approve_task | Approve task with pending incoming transaction [async call] +[**NodeCancelTaskPost**](NodeApi.md#NodeCancelTaskPost) | **Post** /node/cancel_task | Cancel task with pending incoming transaction both incoming and outgoing [async call] +[**NodeDeleteWalletPost**](NodeApi.md#NodeDeleteWalletPost) | **Post** /node/delete_wallet | Delete a Wallet [async call] [**NodeExportAuditorAccessWalletPost**](NodeApi.md#NodeExportAuditorAccessWalletPost) | **Post** /node/export_auditor_access_wallet | Export viewing credentials for a Wallet [**NodeExportWalletPost**](NodeApi.md#NodeExportWalletPost) | **Post** /node/export_wallet | Export wallet secret key [**NodeGenerateWalletPost**](NodeApi.md#NodeGenerateWalletPost) | **Post** /node/generate_wallet | Generate a new Wallet @@ -17,9 +19,65 @@ Method | HTTP request | Description [**NodeUnlockWalletPost**](NodeApi.md#NodeUnlockWalletPost) | **Post** /node/unlock_wallet | Unlocks a wallet for a given amount of seconds [async call] +# **NodeApproveTaskPost** +> NodeApproveTaskPost(ctx, taskActionRequest) +Approve task with pending incoming transaction [async call] + +Confirmation request tasks are confirmed using this point. After the user confirms the incoming transaction, it is asynchronously sent to the blockchain and its status can be queried like any other async task. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **taskActionRequest** | [**TaskActionRequest**](TaskActionRequest.md)| | + +### Return type + + (empty response body) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **NodeCancelTaskPost** +> NodeCancelTaskPost(ctx, taskActionRequest) +Cancel task with pending incoming transaction both incoming and outgoing [async call] + +A user may select to decline an incoming transaction. The related task will change its result to failure both on senders and the receivers side. This endpoint can also be used to cancel an outgoing pending transaction that is awaiting user interaction from the receiver + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **taskActionRequest** | [**TaskActionRequest**](TaskActionRequest.md)| | + +### Return type + + (empty response body) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **NodeDeleteWalletPost** > AsyncTaskCreatedResponse NodeDeleteWalletPost(ctx, deleteWalletRequest) -Delete a Wallet +Delete a Wallet [async call] Deletes a Wallet from the Node; All private information about the Wallet will be deleted including transactional history, balances, and keys; If the secret key of the Wallet are not stored elsewhere then all Assets held in the Wallet will be forever lost! If the secret key of the Wallet is stored elsewhere, then all held Assets and the entire transactional history of the Wallet can be restored from the Blockchain at any time by importing the Wallet into a Node. diff --git a/go/sdk/docs/Rule.md b/go/sdk/docs/Rule.md index 7d356de..b1566f0 100644 --- a/go/sdk/docs/Rule.md +++ b/go/sdk/docs/Rule.md @@ -5,8 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **PublicKey** | **string** | The public key of the Wallet that is being granted rights in this Rule | **IsAdmin** | **bool** | Boolean signifying whether the Rule grants admin rights | -**CanIssueAssetIdFirst** | **int32** | The lower Asset ID in the range of IDs the Rule grants issuance rights for (range is inclusive) | -**CanIssueAssetIdLast** | **int32** | The upper Asset ID in the range of IDs the Rule grants issuance rights for (range is inclusive) | +**Namespace** | **string** | A `Namespace` describes what Asset IDs can be issued in an Issuance Rule. It is a string in the same format as `AssetId`. Additionally, if it ends with a wildcard character `*`, then the namespace covers all asset IDs with the namespace as a prefix. Without a final wildcard, the namespace covers exactly one asset ID. Example: The namespace `currencies.dollar` covers only this exact asset type, while `currencies.*` covers all asset types that start with `currencies.`. | **CanIssueConfidentially** | **bool** | Boolean signifying whether the Rule grants confidentialy issuance rights; if true, then both public and confidential issuance right are granted; if false, then only public issuance rights are granted | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/go/sdk/docs/TaskActionRequest.md b/go/sdk/docs/TaskActionRequest.md new file mode 100644 index 0000000..410667b --- /dev/null +++ b/go/sdk/docs/TaskActionRequest.md @@ -0,0 +1,11 @@ +# TaskActionRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TaskId** | **string** | | +**Authorization** | **string** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go/sdk/docs/TaskData.md b/go/sdk/docs/TaskData.md new file mode 100644 index 0000000..d3041e4 --- /dev/null +++ b/go/sdk/docs/TaskData.md @@ -0,0 +1,14 @@ +# TaskData + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RequireConfirmationFrom** | **string** | The public key for the confirmation request receiver | [optional] +**RecipientAddress** | **string** | The address the request was sent to | [optional] +**AssetId** | **string** | | [optional] +**Amount** | **int32** | | [optional] +**WalletId** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go/sdk/docs/TaskState.md b/go/sdk/docs/TaskState.md new file mode 100644 index 0000000..28f7d7e --- /dev/null +++ b/go/sdk/docs/TaskState.md @@ -0,0 +1,9 @@ +# TaskState + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go/sdk/docs/TransferAssetRequest.md b/go/sdk/docs/TransferAssetRequest.md index d970cb5..d3ad6bf 100644 --- a/go/sdk/docs/TransferAssetRequest.md +++ b/go/sdk/docs/TransferAssetRequest.md @@ -6,9 +6,10 @@ Name | Type | Description | Notes **WalletId** | **string** | The ID of the Wallet to transfer from | **Authorization** | **string** | The authorization password for the Wallet to transfer from | **RecipientAddress** | **string** | The Address of the recipient of the funds | -**AssetId** | **int32** | The ID for the Asset Type to transfer | +**AssetId** | **string** | The ID of an Asset Type. It must be a string of length 0 to 40 characters. Allowed characters are lower- and uppercase letters, digits, dot (.), and hyphen (-). It must not end with an hyphen. Asset IDs are case-sensitive. | **Amount** | **int32** | The amount of assets to transfer | **Memo** | **string** | An app-customizable field to store additional private data relating to the transfer; the memo is shared between the sender and the receiver, but is not divulged to other parties | +**RequireConfirmationFrom** | **string** | A user may request confirmation from the receiving party. If a public key of the approver is included in this optional field, the transaction will only become valid after the received signs it. The receiver will be able to decide whether to accept or reject the transfer by calling the /node/approve_task or the /node/reject_task respectively. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/go/sdk/model_analytic_issue_wallet_tx.go b/go/sdk/model_analytic_issue_wallet_tx.go index abb9cb7..63f45a5 100644 --- a/go/sdk/model_analytic_issue_wallet_tx.go +++ b/go/sdk/model_analytic_issue_wallet_tx.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -18,8 +18,8 @@ type AnalyticIssueWalletTx struct { SenderId string `json:"sender_id,omitempty"` // The Address the Assets were issued to RecipientAddress string `json:"recipient_address,omitempty"` - // The ID of the Asset Type issued - AssetId int32 `json:"asset_id,omitempty"` + // The ID of an Asset Type. It must be a string of length 0 to 40 characters. Allowed characters are lower- and uppercase letters, digits, dot (.), and hyphen (-). It must not end with an hyphen. Asset IDs are case-sensitive. + AssetId string `json:"asset_id,omitempty"` // The amount of Assets issued Amount int32 `json:"amount,omitempty"` // Boolean signifying whether the Issuance was done confidentially diff --git a/go/sdk/model_analytic_rule_wallet_tx.go b/go/sdk/model_analytic_rule_wallet_tx.go index 53a968d..596d55d 100644 --- a/go/sdk/model_analytic_rule_wallet_tx.go +++ b/go/sdk/model_analytic_rule_wallet_tx.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -15,6 +15,6 @@ type AnalyticRuleWalletTx struct { // Boolean signifying whether the Rule granted permissions to the Wallet in question RuleAffectSelf bool `json:"rule_affect_self,omitempty"` // The public key of the Wallet that was used to create the Rule - TxSigner string `json:"tx_signer,omitempty"` - Rule AnalyticsRuleWalletDefinition `json:"rule,omitempty"` + TxSigner string `json:"tx_signer,omitempty"` + Rule AnalyticsRuleWalletDefinition `json:"rule,omitempty"` } diff --git a/go/sdk/model_analytic_transaction.go b/go/sdk/model_analytic_transaction.go index 4d7c200..454b7c8 100644 --- a/go/sdk/model_analytic_transaction.go +++ b/go/sdk/model_analytic_transaction.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_analytic_transfer_wallet_tx.go b/go/sdk/model_analytic_transfer_wallet_tx.go index 2cce2b7..38b20e0 100644 --- a/go/sdk/model_analytic_transfer_wallet_tx.go +++ b/go/sdk/model_analytic_transfer_wallet_tx.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -16,8 +16,8 @@ type AnalyticTransferWalletTx struct { SenderId string `json:"sender_id,omitempty"` // The address of the Wallet the Assets were transferred to RecipientAddress string `json:"recipient_address,omitempty"` - // The Id of the Asset Type transferred - AssetId int32 `json:"asset_id,omitempty"` + // The ID of an Asset Type. It must be a string of length 0 to 40 characters. Allowed characters are lower- and uppercase letters, digits, dot (.), and hyphen (-). It must not end with an hyphen. Asset IDs are case-sensitive. + AssetId string `json:"asset_id,omitempty"` // The amount of Assets transferred Amount int32 `json:"amount,omitempty"` // The private memo attached to the Transfer diff --git a/go/sdk/model_analytic_wallet_metadata.go b/go/sdk/model_analytic_wallet_metadata.go index e555453..8192573 100644 --- a/go/sdk/model_analytic_wallet_metadata.go +++ b/go/sdk/model_analytic_wallet_metadata.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_analytic_wallet_tx.go b/go/sdk/model_analytic_wallet_tx.go index 4775f67..b8fc8ff 100644 --- a/go/sdk/model_analytic_wallet_tx.go +++ b/go/sdk/model_analytic_wallet_tx.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_analytics_confidential_issuance_description.go b/go/sdk/model_analytics_confidential_issuance_description.go index e602e97..7519d34 100644 --- a/go/sdk/model_analytics_confidential_issuance_description.go +++ b/go/sdk/model_analytics_confidential_issuance_description.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -11,9 +11,10 @@ package sdk // The details and Proof attached to a confidential Issuance; null if the Issuance was public type AnalyticsConfidentialIssuanceDescription struct { - // Thecommitment to both the Asset Type and amount of the issued Note - InputCv string `json:"input_cv,omitempty"` - Rule AnalyticsRule `json:"rule,omitempty"` + // The commitment to both the Asset Type and amount of the issued Note + Casset string `json:"casset,omitempty"` + // A `Namespace` describes what Asset IDs can be issued in an Issuance Rule. It is a string in the same format as `AssetId`. Additionally, if it ends with a wildcard character `*`, then the namespace covers all asset IDs with the namespace as a prefix. Without a final wildcard, the namespace covers exactly one asset ID. Example: The namespace `currencies.dollar` covers only this exact asset type, while `currencies.*` covers all asset types that start with `currencies.`. + Namespace string `json:"namespace,omitempty"` // The Proof that the issued Asset Type indeed matches the reported Rule Zkproof string `json:"zkproof,omitempty"` } diff --git a/go/sdk/model_analytics_issue_tx.go b/go/sdk/model_analytics_issue_tx.go index b354e87..1224053 100644 --- a/go/sdk/model_analytics_issue_tx.go +++ b/go/sdk/model_analytics_issue_tx.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_analytics_multi_transfer_tx.go b/go/sdk/model_analytics_multi_transfer_tx.go index 2483dba..c74c1ac 100644 --- a/go/sdk/model_analytics_multi_transfer_tx.go +++ b/go/sdk/model_analytics_multi_transfer_tx.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_analytics_output.go b/go/sdk/model_analytics_output.go index 143201c..aca3b55 100644 --- a/go/sdk/model_analytics_output.go +++ b/go/sdk/model_analytics_output.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -11,8 +11,8 @@ package sdk type AnalyticsOutput struct { // Boolean signifying whether the Issuance was done confidentially; false if the Issuance was done publicly - IsConfidential bool `json:"is_confidential,omitempty"` - PublicIssuanceDescription AnalyticsPublicIssuanceDescription `json:"public_issuance_description,omitempty"` + IsConfidential bool `json:"is_confidential,omitempty"` + PublicIssuanceDescription AnalyticsPublicIssuanceDescription `json:"public_issuance_description,omitempty"` ConfidentialIssuanceDescription AnalyticsConfidentialIssuanceDescription `json:"confidential_issuance_description,omitempty"` - OutputDescription AnalyticsOutputDescription `json:"output_description,omitempty"` + OutputDescription AnalyticsOutputDescription `json:"output_description,omitempty"` } diff --git a/go/sdk/model_analytics_output_description.go b/go/sdk/model_analytics_output_description.go index e97fa5d..4d5c5a8 100644 --- a/go/sdk/model_analytics_output_description.go +++ b/go/sdk/model_analytics_output_description.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_analytics_public_issuance_description.go b/go/sdk/model_analytics_public_issuance_description.go index b224bd5..153e822 100644 --- a/go/sdk/model_analytics_public_issuance_description.go +++ b/go/sdk/model_analytics_public_issuance_description.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -11,8 +11,8 @@ package sdk // Describes what Asset Type and amount were issued; null if the Issuance was confidential type AnalyticsPublicIssuanceDescription struct { - // The ID of the Asset Type issued - AssetId int32 `json:"asset_id"` + // The ID of an Asset Type. It must be a string of length 0 to 40 characters. Allowed characters are lower- and uppercase letters, digits, dot (.), and hyphen (-). It must not end with an hyphen. Asset IDs are case-sensitive. + AssetId string `json:"asset_id"` // The amount of Assets issued Amount int32 `json:"amount"` } diff --git a/go/sdk/model_analytics_rule.go b/go/sdk/model_analytics_rule.go index 6e5ca71..8ce04f1 100644 --- a/go/sdk/model_analytics_rule.go +++ b/go/sdk/model_analytics_rule.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -11,8 +11,6 @@ package sdk // The Rule used in the Issuance type AnalyticsRule struct { - // The lower Asset ID in the range of IDs the Rule grants issuance rights for (range is inclusive) - MinId int32 `json:"min_id"` - // The upper Asset ID in the range of IDs the Rule grants issuance rights for (range is inclusive) - MaxId int32 `json:"max_id"` + // A `Namespace` describes what Asset IDs can be issued in an Issuance Rule. It is a string in the same format as `AssetId`. Additionally, if it ends with a wildcard character `*`, then the namespace covers all asset IDs with the namespace as a prefix. Without a final wildcard, the namespace covers exactly one asset ID. Example: The namespace `currencies.dollar` covers only this exact asset type, while `currencies.*` covers all asset types that start with `currencies.`. + Namespace string `json:"namespace"` } diff --git a/go/sdk/model_analytics_rule_definition.go b/go/sdk/model_analytics_rule_definition.go index 1218254..7636e88 100644 --- a/go/sdk/model_analytics_rule_definition.go +++ b/go/sdk/model_analytics_rule_definition.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -14,10 +14,8 @@ type AnalyticsRuleDefinition struct { PublicKey string `json:"public_key,omitempty"` // Boolean signifying whether the Rule grants admin rights IsAdmin bool `json:"is_admin,omitempty"` - // The lower Asset ID in the range of IDs the Rule grants issuance rights for (range is inclusive) - CanIssueAssetIdFirst int32 `json:"can_issue_asset_id_first,omitempty"` - // The upper Asset ID in the range of IDs the Rule grants issuance rights for (range is inclusive) - CanIssueAssetIdLast int32 `json:"can_issue_asset_id_last,omitempty"` + // A `Namespace` describes what Asset IDs can be issued in an Issuance Rule. It is a string in the same format as `AssetId`. Additionally, if it ends with a wildcard character `*`, then the namespace covers all asset IDs with the namespace as a prefix. Without a final wildcard, the namespace covers exactly one asset ID. Example: The namespace `currencies.dollar` covers only this exact asset type, while `currencies.*` covers all asset types that start with `currencies.`. + Namespace string `json:"namespace,omitempty"` // Boolean signifying whether the Rule grants confidentialy issuance rights; if true, then both public and confidential issuance right are granted; if false, then only public issuance rights are granted CanIssueConfidentially bool `json:"can_issue_confidentially,omitempty"` } diff --git a/go/sdk/model_analytics_rule_tx.go b/go/sdk/model_analytics_rule_tx.go index 57e8acc..683bf92 100644 --- a/go/sdk/model_analytics_rule_tx.go +++ b/go/sdk/model_analytics_rule_tx.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_analytics_rule_wallet_definition.go b/go/sdk/model_analytics_rule_wallet_definition.go index dbef034..6c09c61 100644 --- a/go/sdk/model_analytics_rule_wallet_definition.go +++ b/go/sdk/model_analytics_rule_wallet_definition.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -14,10 +14,8 @@ type AnalyticsRuleWalletDefinition struct { PublicKey string `json:"public_key,omitempty"` // Boolean signifying whether the Rule grants admin rights IsAdmin bool `json:"is_admin,omitempty"` - // The lower Asset ID in the range of IDs the Rule grants issuance rights for (range is inclusive) - CanIssueAssetIdFirst int32 `json:"can_issue_asset_id_first,omitempty"` - // The upper Asset ID in the range of IDs the Rule grants issuance rights for (range is inclusive) - CanIssueAssetIdLast int32 `json:"can_issue_asset_id_last,omitempty"` + // A `Namespace` describes what Asset IDs can be issued in an Issuance Rule. It is a string in the same format as `AssetId`. Additionally, if it ends with a wildcard character `*`, then the namespace covers all asset IDs with the namespace as a prefix. Without a final wildcard, the namespace covers exactly one asset ID. Example: The namespace `currencies.dollar` covers only this exact asset type, while `currencies.*` covers all asset types that start with `currencies.`. + Namespace string `json:"namespace,omitempty"` // Boolean signifying whether the Rule grants confidentialy issuance rights; if true, then both public and confidential issuance right are granted; if false, then only public issuance rights are granted CanIssueConfidentially bool `json:"can_issue_confidentially,omitempty"` // Operation of the transaction, which can be rule creation or deletion diff --git a/go/sdk/model_analytics_spend_description.go b/go/sdk/model_analytics_spend_description.go index 320fb3c..ab5061b 100644 --- a/go/sdk/model_analytics_spend_description.go +++ b/go/sdk/model_analytics_spend_description.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_analytics_transfer_tx.go b/go/sdk/model_analytics_transfer_tx.go index 8cd5f8b..c114c81 100644 --- a/go/sdk/model_analytics_transfer_tx.go +++ b/go/sdk/model_analytics_transfer_tx.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -11,8 +11,6 @@ package sdk // The data of a single Transfer within a Transfer transaction type AnalyticsTransferTx struct { - // The Converter Proofs - AssetConverterDescriptions []AnalyticsAssetConverterProofDescription `json:"asset_converter_descriptions,omitempty"` // The information and Proofs associated with the Assets spent in the Transfer Spends []AnalyticsSpendDescription `json:"spends,omitempty"` // The information and Proofs associated with the Assets output from the Transfer diff --git a/go/sdk/model_analytics_tx_metadata.go b/go/sdk/model_analytics_tx_metadata.go index 5b14168..0169c61 100644 --- a/go/sdk/model_analytics_tx_metadata.go +++ b/go/sdk/model_analytics_tx_metadata.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_analytics_tx_type.go b/go/sdk/model_analytics_tx_type.go index 71fdca8..92e2bdf 100644 --- a/go/sdk/model_analytics_tx_type.go +++ b/go/sdk/model_analytics_tx_type.go @@ -3,18 +3,17 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package sdk - // AnalyticsTxType : Type of transaction type AnalyticsTxType string // List of AnalyticsTxType const ( - ISSUE AnalyticsTxType = "Issue" + ISSUE AnalyticsTxType = "Issue" TRANSFER AnalyticsTxType = "Transfer" - RULE AnalyticsTxType = "Rule" -) + RULE AnalyticsTxType = "Rule" +) \ No newline at end of file diff --git a/go/sdk/model_async_task_created_response.go b/go/sdk/model_async_task_created_response.go index 57b1f3f..edde97e 100644 --- a/go/sdk/model_async_task_created_response.go +++ b/go/sdk/model_async_task_created_response.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_balance_for_asset.go b/go/sdk/model_balance_for_asset.go index b5ea09f..19fdba9 100644 --- a/go/sdk/model_balance_for_asset.go +++ b/go/sdk/model_balance_for_asset.go @@ -3,15 +3,15 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package sdk type BalanceForAsset struct { - // The ID of the Asset Type - AssetId int32 `json:"asset_id"` + // The ID of an Asset Type. It must be a string of length 0 to 40 characters. Allowed characters are lower- and uppercase letters, digits, dot (.), and hyphen (-). It must not end with an hyphen. Asset IDs are case-sensitive. + AssetId string `json:"asset_id"` // The outstanding balance for the Asset Type Amount int32 `json:"amount"` } diff --git a/go/sdk/model_create_rule_request.go b/go/sdk/model_create_rule_request.go index fb4eab8..da1578f 100644 --- a/go/sdk/model_create_rule_request.go +++ b/go/sdk/model_create_rule_request.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_delete_rule_request.go b/go/sdk/model_delete_rule_request.go index 00c85ae..758d305 100644 --- a/go/sdk/model_delete_rule_request.go +++ b/go/sdk/model_delete_rule_request.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_delete_wallet_request.go b/go/sdk/model_delete_wallet_request.go index ac215fb..5a13ce8 100644 --- a/go/sdk/model_delete_wallet_request.go +++ b/go/sdk/model_delete_wallet_request.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_error_response.go b/go/sdk/model_error_response.go index dd59ab2..3dc2f30 100644 --- a/go/sdk/model_error_response.go +++ b/go/sdk/model_error_response.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_export_auditor_access_wallet_request.go b/go/sdk/model_export_auditor_access_wallet_request.go index ee738a4..3fd2bd9 100644 --- a/go/sdk/model_export_auditor_access_wallet_request.go +++ b/go/sdk/model_export_auditor_access_wallet_request.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_export_auditor_access_wallet_response.go b/go/sdk/model_export_auditor_access_wallet_response.go index ded3049..f7a9290 100644 --- a/go/sdk/model_export_auditor_access_wallet_response.go +++ b/go/sdk/model_export_auditor_access_wallet_response.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_export_wallet_request.go b/go/sdk/model_export_wallet_request.go index 3d182dd..7a90c1b 100644 --- a/go/sdk/model_export_wallet_request.go +++ b/go/sdk/model_export_wallet_request.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_export_wallet_response.go b/go/sdk/model_export_wallet_response.go index a258dc9..f39e4de 100644 --- a/go/sdk/model_export_wallet_response.go +++ b/go/sdk/model_export_wallet_response.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_generate_wallet_request.go b/go/sdk/model_generate_wallet_request.go index 69726e4..933499c 100644 --- a/go/sdk/model_generate_wallet_request.go +++ b/go/sdk/model_generate_wallet_request.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_get_all_wallets_response.go b/go/sdk/model_get_all_wallets_response.go index 2428ff0..03d9b8b 100644 --- a/go/sdk/model_get_all_wallets_response.go +++ b/go/sdk/model_get_all_wallets_response.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_get_network_activity_request.go b/go/sdk/model_get_network_activity_request.go index c14d0b4..85e35e5 100644 --- a/go/sdk/model_get_network_activity_request.go +++ b/go/sdk/model_get_network_activity_request.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -13,6 +13,6 @@ type GetNetworkActivityRequest struct { // An offset used to paginate through the activity history; indexing is 0-based StartIndex int32 `json:"start_index"` // Maximal number of results to fetch in this call - NumberOfResults int32 `json:"number_of_results"` - TxHashes []string `json:"tx_hashes,omitempty"` + NumberOfResults int32 `json:"number_of_results"` + TxHashes []string `json:"tx_hashes,omitempty"` } diff --git a/go/sdk/model_get_network_activity_response.go b/go/sdk/model_get_network_activity_response.go index 31e39bc..f6bbc52 100644 --- a/go/sdk/model_get_network_activity_response.go +++ b/go/sdk/model_get_network_activity_response.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_get_new_address_request.go b/go/sdk/model_get_new_address_request.go index 4040a90..d25cb84 100644 --- a/go/sdk/model_get_new_address_request.go +++ b/go/sdk/model_get_new_address_request.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_get_new_address_response.go b/go/sdk/model_get_new_address_response.go index d3914a4..b4136c6 100644 --- a/go/sdk/model_get_new_address_response.go +++ b/go/sdk/model_get_new_address_response.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_get_public_key_request.go b/go/sdk/model_get_public_key_request.go index c1b571e..cdba14a 100644 --- a/go/sdk/model_get_public_key_request.go +++ b/go/sdk/model_get_public_key_request.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_get_public_key_response.go b/go/sdk/model_get_public_key_response.go index 225ef40..448f67d 100644 --- a/go/sdk/model_get_public_key_response.go +++ b/go/sdk/model_get_public_key_response.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_get_rules_response.go b/go/sdk/model_get_rules_response.go index 33857e1..23fbabd 100644 --- a/go/sdk/model_get_rules_response.go +++ b/go/sdk/model_get_rules_response.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_get_sync_status_response.go b/go/sdk/model_get_sync_status_response.go index 8460aec..a412288 100644 --- a/go/sdk/model_get_sync_status_response.go +++ b/go/sdk/model_get_sync_status_response.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_get_task_status_request.go b/go/sdk/model_get_task_status_request.go index a3e3df4..490798e 100644 --- a/go/sdk/model_get_task_status_request.go +++ b/go/sdk/model_get_task_status_request.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_get_task_status_response.go b/go/sdk/model_get_task_status_response.go index 43fabe1..0162ff2 100644 --- a/go/sdk/model_get_task_status_response.go +++ b/go/sdk/model_get_task_status_response.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -16,16 +16,14 @@ type GetTaskStatusResponse struct { CreatedAt string `json:"created_at,omitempty"` // UTC last time the Task was updated in RFC-3339 format UpdatedAt string `json:"updated_at,omitempty"` - Result Result `json:"result,omitempty"` - // More granular current state of the Task; list of supported states is not guaranteed to be stable - State string `json:"state,omitempty"` + Result Result `json:"result,omitempty"` + State TaskState `json:"state,omitempty"` // The Blockchain-generated hash of the Transaction; populated after the Blockchain Node accepted the Transaction TxHash string `json:"tx_hash,omitempty"` // The QEDIT-generated hash of the Transaction; generated after proof generation, but prior to Broadcast by the QEDIT Node - QeditTxHash string `json:"qedit_tx_hash,omitempty"` - Type TaskType `json:"type,omitempty"` - // Container for the Transaction data; each Transaction type has different fields - Data map[string]interface{} `json:"data,omitempty"` + QeditTxHash string `json:"qedit_tx_hash,omitempty"` + Type TaskType `json:"type,omitempty"` + Data TaskData `json:"data,omitempty"` // In case of failure this field reports the reason for the failure Error string `json:"error,omitempty"` } diff --git a/go/sdk/model_get_tasks_request.go b/go/sdk/model_get_tasks_request.go index 20c6d2a..f631f11 100644 --- a/go/sdk/model_get_tasks_request.go +++ b/go/sdk/model_get_tasks_request.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_get_tasks_response.go b/go/sdk/model_get_tasks_response.go index e2738b4..f54e738 100644 --- a/go/sdk/model_get_tasks_response.go +++ b/go/sdk/model_get_tasks_response.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_get_wallet_activity_request.go b/go/sdk/model_get_wallet_activity_request.go index e05b858..f49f0d8 100644 --- a/go/sdk/model_get_wallet_activity_request.go +++ b/go/sdk/model_get_wallet_activity_request.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_get_wallet_activity_response.go b/go/sdk/model_get_wallet_activity_response.go index 484ec87..73c0a16 100644 --- a/go/sdk/model_get_wallet_activity_response.go +++ b/go/sdk/model_get_wallet_activity_response.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_get_wallet_balance_request.go b/go/sdk/model_get_wallet_balance_request.go index 6cafad4..09c6bbe 100644 --- a/go/sdk/model_get_wallet_balance_request.go +++ b/go/sdk/model_get_wallet_balance_request.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_get_wallet_balance_response.go b/go/sdk/model_get_wallet_balance_response.go index d6d6dc2..124113c 100644 --- a/go/sdk/model_get_wallet_balance_response.go +++ b/go/sdk/model_get_wallet_balance_response.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_healthcheck_response.go b/go/sdk/model_healthcheck_response.go index 043e47b..102b1c3 100644 --- a/go/sdk/model_healthcheck_response.go +++ b/go/sdk/model_healthcheck_response.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -11,10 +11,10 @@ package sdk type HealthcheckResponse struct { // API version of the Node - Version string `json:"version,omitempty"` + Version string `json:"version,omitempty"` BlockchainConnector HealthcheckResponseItem `json:"blockchain_connector,omitempty"` - MessageQueue HealthcheckResponseItem `json:"message_queue,omitempty"` - Database HealthcheckResponseItem `json:"database,omitempty"` + MessageQueue HealthcheckResponseItem `json:"message_queue,omitempty"` + Database HealthcheckResponseItem `json:"database,omitempty"` // Boolean signifying whether the endpoint is ready for calls Passing bool `json:"passing,omitempty"` } diff --git a/go/sdk/model_healthcheck_response_item.go b/go/sdk/model_healthcheck_response_item.go index f07dca4..f3ecc1a 100644 --- a/go/sdk/model_healthcheck_response_item.go +++ b/go/sdk/model_healthcheck_response_item.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_import_auditor_access_wallet_request.go b/go/sdk/model_import_auditor_access_wallet_request.go index 2243a61..96fc822 100644 --- a/go/sdk/model_import_auditor_access_wallet_request.go +++ b/go/sdk/model_import_auditor_access_wallet_request.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_import_wallet_request.go b/go/sdk/model_import_wallet_request.go index 2e6d71d..0cb4cdf 100644 --- a/go/sdk/model_import_wallet_request.go +++ b/go/sdk/model_import_wallet_request.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_issue_asset_request.go b/go/sdk/model_issue_asset_request.go index f2069ef..07864c5 100644 --- a/go/sdk/model_issue_asset_request.go +++ b/go/sdk/model_issue_asset_request.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -16,11 +16,11 @@ type IssueAssetRequest struct { Authorization string `json:"authorization"` // The Address of the recipient of the issued Assets RecipientAddress string `json:"recipient_address"` - // The ID of the Asset Type to issue - AssetId int32 `json:"asset_id"` + // The ID of an Asset Type. It must be a string of length 0 to 40 characters. Allowed characters are lower- and uppercase letters, digits, dot (.), and hyphen (-). It must not end with an hyphen. Asset IDs are case-sensitive. + AssetId string `json:"asset_id"` // the amount of Assets to issue Amount int32 `json:"amount"` // Boolean which should be true if the issuance should be confidential, and false of the Issuance should be public - Confidential bool `json:"confidential"` - Memo string `json:"memo"` + Confidential bool `json:"confidential"` + Memo string `json:"memo"` } diff --git a/go/sdk/model_result.go b/go/sdk/model_result.go index 8539f59..c4ab8b3 100644 --- a/go/sdk/model_result.go +++ b/go/sdk/model_result.go @@ -3,19 +3,19 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package sdk - // Result : The current result (status) of the Task type Result string // List of Result const ( - PENDING Result = "pending" + PENDING Result = "pending" IN_PROGRESS Result = "in_progress" - SUCCESS Result = "success" - FAILURE Result = "failure" -) + AWAITING_USER_INTERACTION Result = "awaiting_user_interaction" + SUCCESS Result = "success" + FAILURE Result = "failure" +) \ No newline at end of file diff --git a/go/sdk/model_rule.go b/go/sdk/model_rule.go index bfa7bdd..2ad0748 100644 --- a/go/sdk/model_rule.go +++ b/go/sdk/model_rule.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -14,10 +14,8 @@ type Rule struct { PublicKey string `json:"public_key"` // Boolean signifying whether the Rule grants admin rights IsAdmin bool `json:"is_admin"` - // The lower Asset ID in the range of IDs the Rule grants issuance rights for (range is inclusive) - CanIssueAssetIdFirst int32 `json:"can_issue_asset_id_first"` - // The upper Asset ID in the range of IDs the Rule grants issuance rights for (range is inclusive) - CanIssueAssetIdLast int32 `json:"can_issue_asset_id_last"` + // A `Namespace` describes what Asset IDs can be issued in an Issuance Rule. It is a string in the same format as `AssetId`. Additionally, if it ends with a wildcard character `*`, then the namespace covers all asset IDs with the namespace as a prefix. Without a final wildcard, the namespace covers exactly one asset ID. Example: The namespace `currencies.dollar` covers only this exact asset type, while `currencies.*` covers all asset types that start with `currencies.`. + Namespace string `json:"namespace"` // Boolean signifying whether the Rule grants confidentialy issuance rights; if true, then both public and confidential issuance right are granted; if false, then only public issuance rights are granted CanIssueConfidentially bool `json:"can_issue_confidentially"` } diff --git a/go/sdk/model_task_action_request.go b/go/sdk/model_task_action_request.go new file mode 100644 index 0000000..fe3b926 --- /dev/null +++ b/go/sdk/model_task_action_request.go @@ -0,0 +1,16 @@ +/* + * QEDIT - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.6.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +// To approve or cancel a task, the user should include the task id and authorization of the wallet related to this task. +type TaskActionRequest struct { + TaskId string `json:"task_id"` + Authorization string `json:"authorization"` +} diff --git a/go/sdk/model_task_data.go b/go/sdk/model_task_data.go new file mode 100644 index 0000000..e8f47f6 --- /dev/null +++ b/go/sdk/model_task_data.go @@ -0,0 +1,21 @@ +/* + * QEDIT - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.6.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +// an object that includes additional request details +type TaskData struct { + // The public key for the confirmation request receiver + RequireConfirmationFrom string `json:"require_confirmation_from,omitempty"` + // The address the request was sent to + RecipientAddress string `json:"recipient_address,omitempty"` + AssetId string `json:"asset_id,omitempty"` + Amount int32 `json:"amount,omitempty"` + WalletId string `json:"wallet_id,omitempty"` +} diff --git a/go/sdk/model_task_state.go b/go/sdk/model_task_state.go new file mode 100644 index 0000000..2fcb188 --- /dev/null +++ b/go/sdk/model_task_state.go @@ -0,0 +1,26 @@ +/* + * QEDIT - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.6.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk +// TaskState : A fine-grained status of the node's inner state. This field is subject to changes and should not be relied upon during development +type TaskState string + +// List of TaskState +const ( + PENDING_STATE TaskState = "pending_state" + IN_PROGRESS_STATE TaskState = "in_progress_state" + TX_GENERATED_STATE TaskState = "tx_generated_state" + CONF_REQ_SENT_STATE TaskState = "conf_req_sent_state" + CONF_REQ_RECEIVED_STATE TaskState = "conf_req_received_state" + CONF_REQ_CANCELED_BY_SENDER_STATE TaskState = "conf_req_canceled_by_sender_state" + CONF_REQ_CANCELED_BY_RECEIVER_STATE TaskState = "conf_req_canceled_by_receiver_state" + TX_SUBMITTED_STATE TaskState = "tx_submitted_state" + FAILURE_STATE TaskState = "failure_state" + SUCCESS_STATE TaskState = "success_state" +) \ No newline at end of file diff --git a/go/sdk/model_task_type.go b/go/sdk/model_task_type.go index 14c7799..d1aac8b 100644 --- a/go/sdk/model_task_type.go +++ b/go/sdk/model_task_type.go @@ -3,21 +3,22 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package sdk - // TaskType : Task type type TaskType string // List of TaskType const ( - UNLOCK_WALLET TaskType = "unlock_wallet" + UNLOCK_WALLET TaskType = "unlock_wallet" TRANSFER_ASSET TaskType = "transfer_asset" - ISSUE_ASSET TaskType = "issue_asset" - ALTER_RULE TaskType = "alter_rule" - IMPORT_WALLET TaskType = "import_wallet" - DELETE_WALLET TaskType = "delete_wallet" -) + ISSUE_ASSET TaskType = "issue_asset" + ALTER_RULE TaskType = "alter_rule" + IMPORT_WALLET TaskType = "import_wallet" + DELETE_WALLET TaskType = "delete_wallet" + OUTGOING_CONFIRM_REQUEST TaskType = "outgoing_confirm_request" + INCOMING_CONFIRM_REQUEST TaskType = "incoming_confirm_request" +) \ No newline at end of file diff --git a/go/sdk/model_transfer_asset_request.go b/go/sdk/model_transfer_asset_request.go index 9d2a772..6727e45 100644 --- a/go/sdk/model_transfer_asset_request.go +++ b/go/sdk/model_transfer_asset_request.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -16,10 +16,12 @@ type TransferAssetRequest struct { Authorization string `json:"authorization"` // The Address of the recipient of the funds RecipientAddress string `json:"recipient_address"` - // The ID for the Asset Type to transfer - AssetId int32 `json:"asset_id"` + // The ID of an Asset Type. It must be a string of length 0 to 40 characters. Allowed characters are lower- and uppercase letters, digits, dot (.), and hyphen (-). It must not end with an hyphen. Asset IDs are case-sensitive. + AssetId string `json:"asset_id"` // The amount of assets to transfer Amount int32 `json:"amount"` // An app-customizable field to store additional private data relating to the transfer; the memo is shared between the sender and the receiver, but is not divulged to other parties Memo string `json:"memo"` + // A user may request confirmation from the receiving party. If a public key of the approver is included in this optional field, the transaction will only become valid after the received signs it. The receiver will be able to decide whether to accept or reject the transfer by calling the /node/approve_task or the /node/reject_task respectively. + RequireConfirmationFrom string `json:"require_confirmation_from,omitempty"` } diff --git a/go/sdk/model_unlock_wallet_request.go b/go/sdk/model_unlock_wallet_request.go index 8f6c7e2..227a578 100644 --- a/go/sdk/model_unlock_wallet_request.go +++ b/go/sdk/model_unlock_wallet_request.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/response.go b/go/sdk/response.go index 09b42b3..ae837df 100644 --- a/go/sdk/response.go +++ b/go/sdk/response.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.5.0 + * API version: 1.6.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/js/sdk/README.md b/js/sdk/README.md index 75f240b..3f5fe2a 100644 --- a/js/sdk/README.md +++ b/js/sdk/README.md @@ -4,8 +4,8 @@ QedItAssetTransfers - JavaScript client for qed-it-asset-transfers No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 1.5.0 -- Package version: 1.5.0 +- API version: 1.6.0 +- Package version: 1.6.0 - Build package: org.openapitools.codegen.languages.JavascriptClientCodegen ## Installation @@ -123,7 +123,9 @@ Class | Method | HTTP request | Description *QedItAssetTransfers.AnalyticsApi* | [**analyticsGetNetworkActivityPost**](docs/AnalyticsApi.md#analyticsGetNetworkActivityPost) | **POST** /analytics/get_network_activity | Get details on past blocks either by order using start_index and number_of_results or by the tx_hashes of the transactions *QedItAssetTransfers.AnalyticsApi* | [**analyticsGetSyncStatusPost**](docs/AnalyticsApi.md#analyticsGetSyncStatusPost) | **POST** /analytics/get_sync_status | Get blockchain sync status information *QedItAssetTransfers.HealthApi* | [**healthPost**](docs/HealthApi.md#healthPost) | **POST** /health | Perform a healthcheck of the node and its dependent services -*QedItAssetTransfers.NodeApi* | [**nodeDeleteWalletPost**](docs/NodeApi.md#nodeDeleteWalletPost) | **POST** /node/delete_wallet | Delete a Wallet +*QedItAssetTransfers.NodeApi* | [**nodeApproveTaskPost**](docs/NodeApi.md#nodeApproveTaskPost) | **POST** /node/approve_task | Approve task with pending incoming transaction [async call] +*QedItAssetTransfers.NodeApi* | [**nodeCancelTaskPost**](docs/NodeApi.md#nodeCancelTaskPost) | **POST** /node/cancel_task | Cancel task with pending incoming transaction both incoming and outgoing [async call] +*QedItAssetTransfers.NodeApi* | [**nodeDeleteWalletPost**](docs/NodeApi.md#nodeDeleteWalletPost) | **POST** /node/delete_wallet | Delete a Wallet [async call] *QedItAssetTransfers.NodeApi* | [**nodeExportAuditorAccessWalletPost**](docs/NodeApi.md#nodeExportAuditorAccessWalletPost) | **POST** /node/export_auditor_access_wallet | Export viewing credentials for a Wallet *QedItAssetTransfers.NodeApi* | [**nodeExportWalletPost**](docs/NodeApi.md#nodeExportWalletPost) | **POST** /node/export_wallet | Export wallet secret key *QedItAssetTransfers.NodeApi* | [**nodeGenerateWalletPost**](docs/NodeApi.md#nodeGenerateWalletPost) | **POST** /node/generate_wallet | Generate a new Wallet @@ -152,7 +154,6 @@ Class | Method | HTTP request | Description - [QedItAssetTransfers.AnalyticTransferWalletTx](docs/AnalyticTransferWalletTx.md) - [QedItAssetTransfers.AnalyticWalletMetadata](docs/AnalyticWalletMetadata.md) - [QedItAssetTransfers.AnalyticWalletTx](docs/AnalyticWalletTx.md) - - [QedItAssetTransfers.AnalyticsAssetConverterProofDescription](docs/AnalyticsAssetConverterProofDescription.md) - [QedItAssetTransfers.AnalyticsConfidentialIssuanceDescription](docs/AnalyticsConfidentialIssuanceDescription.md) - [QedItAssetTransfers.AnalyticsIssueTx](docs/AnalyticsIssueTx.md) - [QedItAssetTransfers.AnalyticsMultiTransferTx](docs/AnalyticsMultiTransferTx.md) @@ -202,6 +203,9 @@ Class | Method | HTTP request | Description - [QedItAssetTransfers.IssueAssetRequest](docs/IssueAssetRequest.md) - [QedItAssetTransfers.Result](docs/Result.md) - [QedItAssetTransfers.Rule](docs/Rule.md) + - [QedItAssetTransfers.TaskActionRequest](docs/TaskActionRequest.md) + - [QedItAssetTransfers.TaskData](docs/TaskData.md) + - [QedItAssetTransfers.TaskState](docs/TaskState.md) - [QedItAssetTransfers.TaskType](docs/TaskType.md) - [QedItAssetTransfers.TransferAssetRequest](docs/TransferAssetRequest.md) - [QedItAssetTransfers.UnlockWalletRequest](docs/UnlockWalletRequest.md) diff --git a/js/sdk/docs/AnalyticIssueWalletTx.md b/js/sdk/docs/AnalyticIssueWalletTx.md index fd49820..2cf8d2d 100644 --- a/js/sdk/docs/AnalyticIssueWalletTx.md +++ b/js/sdk/docs/AnalyticIssueWalletTx.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **issuedBySelf** | **Boolean** | Boolean signifying whether the Wallet used to issue the Assets is the Wallet in question | [optional] **senderId** | **String** | The public key of the Wallet that was used to issue the Assets | [optional] **recipientAddress** | **String** | The Address the Assets were issued to | [optional] -**assetId** | **Number** | The ID of the Asset Type issued | [optional] +**assetId** | **String** | The ID of an Asset Type. It must be a string of length 0 to 40 characters. Allowed characters are lower- and uppercase letters, digits, dot (.), and hyphen (-). It must not end with an hyphen. Asset IDs are case-sensitive. | [optional] **amount** | **Number** | The amount of Assets issued | [optional] **isConfidential** | **Boolean** | Boolean signifying whether the Issuance was done confidentially | [optional] **memo** | **String** | The private memo attached to the Issuance | [optional] diff --git a/js/sdk/docs/AnalyticTransferWalletTx.md b/js/sdk/docs/AnalyticTransferWalletTx.md index 9b9ac78..02ac2e3 100644 --- a/js/sdk/docs/AnalyticTransferWalletTx.md +++ b/js/sdk/docs/AnalyticTransferWalletTx.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **isIncoming** | **Boolean** | Boolean signifying whether the Assets were transferred to the Wallet in question; false of the Assets were transferred from the Wallet into another | [optional] **senderId** | **String** | The public key of the Wallet the Assets were transferred from | [optional] **recipientAddress** | **String** | The address of the Wallet the Assets were transferred to | [optional] -**assetId** | **Number** | The Id of the Asset Type transferred | [optional] +**assetId** | **String** | The ID of an Asset Type. It must be a string of length 0 to 40 characters. Allowed characters are lower- and uppercase letters, digits, dot (.), and hyphen (-). It must not end with an hyphen. Asset IDs are case-sensitive. | [optional] **amount** | **Number** | The amount of Assets transferred | [optional] **memo** | **String** | The private memo attached to the Transfer | [optional] diff --git a/js/sdk/docs/AnalyticsConfidentialIssuanceDescription.md b/js/sdk/docs/AnalyticsConfidentialIssuanceDescription.md index 5512eb7..657a08d 100644 --- a/js/sdk/docs/AnalyticsConfidentialIssuanceDescription.md +++ b/js/sdk/docs/AnalyticsConfidentialIssuanceDescription.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**inputCv** | **String** | Thecommitment to both the Asset Type and amount of the issued Note | [optional] -**rule** | [**AnalyticsRule**](AnalyticsRule.md) | | [optional] +**casset** | **String** | The commitment to both the Asset Type and amount of the issued Note | [optional] +**namespace** | **String** | A `Namespace` describes what Asset IDs can be issued in an Issuance Rule. It is a string in the same format as `AssetId`. Additionally, if it ends with a wildcard character `*`, then the namespace covers all asset IDs with the namespace as a prefix. Without a final wildcard, the namespace covers exactly one asset ID. Example: The namespace `currencies.dollar` covers only this exact asset type, while `currencies.*` covers all asset types that start with `currencies.`. | [optional] **zkproof** | **String** | The Proof that the issued Asset Type indeed matches the reported Rule | [optional] diff --git a/js/sdk/docs/AnalyticsPublicIssuanceDescription.md b/js/sdk/docs/AnalyticsPublicIssuanceDescription.md index 78cfc07..48d0f22 100644 --- a/js/sdk/docs/AnalyticsPublicIssuanceDescription.md +++ b/js/sdk/docs/AnalyticsPublicIssuanceDescription.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**assetId** | **Number** | The ID of the Asset Type issued | +**assetId** | **String** | The ID of an Asset Type. It must be a string of length 0 to 40 characters. Allowed characters are lower- and uppercase letters, digits, dot (.), and hyphen (-). It must not end with an hyphen. Asset IDs are case-sensitive. | **amount** | **Number** | The amount of Assets issued | diff --git a/js/sdk/docs/AnalyticsRule.md b/js/sdk/docs/AnalyticsRule.md index d77896c..0a4b036 100644 --- a/js/sdk/docs/AnalyticsRule.md +++ b/js/sdk/docs/AnalyticsRule.md @@ -3,7 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**minId** | **Number** | The lower Asset ID in the range of IDs the Rule grants issuance rights for (range is inclusive) | -**maxId** | **Number** | The upper Asset ID in the range of IDs the Rule grants issuance rights for (range is inclusive) | +**namespace** | **String** | A `Namespace` describes what Asset IDs can be issued in an Issuance Rule. It is a string in the same format as `AssetId`. Additionally, if it ends with a wildcard character `*`, then the namespace covers all asset IDs with the namespace as a prefix. Without a final wildcard, the namespace covers exactly one asset ID. Example: The namespace `currencies.dollar` covers only this exact asset type, while `currencies.*` covers all asset types that start with `currencies.`. | diff --git a/js/sdk/docs/AnalyticsRuleDefinition.md b/js/sdk/docs/AnalyticsRuleDefinition.md index be0f9cf..8fdc7f5 100644 --- a/js/sdk/docs/AnalyticsRuleDefinition.md +++ b/js/sdk/docs/AnalyticsRuleDefinition.md @@ -5,8 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **publicKey** | **String** | The public key of the Wallet that is being granted rights in this Rule | [optional] **isAdmin** | **Boolean** | Boolean signifying whether the Rule grants admin rights | [optional] -**canIssueAssetIdFirst** | **Number** | The lower Asset ID in the range of IDs the Rule grants issuance rights for (range is inclusive) | [optional] -**canIssueAssetIdLast** | **Number** | The upper Asset ID in the range of IDs the Rule grants issuance rights for (range is inclusive) | [optional] +**namespace** | **String** | A `Namespace` describes what Asset IDs can be issued in an Issuance Rule. It is a string in the same format as `AssetId`. Additionally, if it ends with a wildcard character `*`, then the namespace covers all asset IDs with the namespace as a prefix. Without a final wildcard, the namespace covers exactly one asset ID. Example: The namespace `currencies.dollar` covers only this exact asset type, while `currencies.*` covers all asset types that start with `currencies.`. | [optional] **canIssueConfidentially** | **Boolean** | Boolean signifying whether the Rule grants confidentialy issuance rights; if true, then both public and confidential issuance right are granted; if false, then only public issuance rights are granted | [optional] diff --git a/js/sdk/docs/AnalyticsRuleWalletDefinition.md b/js/sdk/docs/AnalyticsRuleWalletDefinition.md index 24df214..4c7e1a0 100644 --- a/js/sdk/docs/AnalyticsRuleWalletDefinition.md +++ b/js/sdk/docs/AnalyticsRuleWalletDefinition.md @@ -5,8 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **publicKey** | **String** | The public key of the Wallet that is being granted rights in this Rule | [optional] **isAdmin** | **Boolean** | Boolean signifying whether the Rule grants admin rights | [optional] -**canIssueAssetIdFirst** | **Number** | The lower Asset ID in the range of IDs the Rule grants issuance rights for (range is inclusive) | [optional] -**canIssueAssetIdLast** | **Number** | The upper Asset ID in the range of IDs the Rule grants issuance rights for (range is inclusive) | [optional] +**namespace** | **String** | A `Namespace` describes what Asset IDs can be issued in an Issuance Rule. It is a string in the same format as `AssetId`. Additionally, if it ends with a wildcard character `*`, then the namespace covers all asset IDs with the namespace as a prefix. Without a final wildcard, the namespace covers exactly one asset ID. Example: The namespace `currencies.dollar` covers only this exact asset type, while `currencies.*` covers all asset types that start with `currencies.`. | [optional] **canIssueConfidentially** | **Boolean** | Boolean signifying whether the Rule grants confidentialy issuance rights; if true, then both public and confidential issuance right are granted; if false, then only public issuance rights are granted | [optional] **operation** | **String** | Operation of the transaction, which can be rule creation or deletion | [optional] diff --git a/js/sdk/docs/AnalyticsTransferTx.md b/js/sdk/docs/AnalyticsTransferTx.md index 5965fe2..2f005f6 100644 --- a/js/sdk/docs/AnalyticsTransferTx.md +++ b/js/sdk/docs/AnalyticsTransferTx.md @@ -3,7 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**assetConverterDescriptions** | [**[AnalyticsAssetConverterProofDescription]**](AnalyticsAssetConverterProofDescription.md) | The Converter Proofs | [optional] **spends** | [**[AnalyticsSpendDescription]**](AnalyticsSpendDescription.md) | The information and Proofs associated with the Assets spent in the Transfer | [optional] **outputs** | [**[AnalyticsOutputDescription]**](AnalyticsOutputDescription.md) | The information and Proofs associated with the Assets output from the Transfer | [optional] **rk** | **String** | The re-randomized public key of the Wallet which created the Transfer | [optional] diff --git a/js/sdk/docs/BalanceForAsset.md b/js/sdk/docs/BalanceForAsset.md index b9483f7..eaa5a70 100644 --- a/js/sdk/docs/BalanceForAsset.md +++ b/js/sdk/docs/BalanceForAsset.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**assetId** | **Number** | The ID of the Asset Type | +**assetId** | **String** | The ID of an Asset Type. It must be a string of length 0 to 40 characters. Allowed characters are lower- and uppercase letters, digits, dot (.), and hyphen (-). It must not end with an hyphen. Asset IDs are case-sensitive. | **amount** | **Number** | The outstanding balance for the Asset Type | diff --git a/js/sdk/docs/GetTaskStatusResponse.md b/js/sdk/docs/GetTaskStatusResponse.md index 0f24df9..84fd880 100644 --- a/js/sdk/docs/GetTaskStatusResponse.md +++ b/js/sdk/docs/GetTaskStatusResponse.md @@ -7,11 +7,11 @@ Name | Type | Description | Notes **createdAt** | **Date** | UTC time of creation of the Task in RFC-3339 format | [optional] **updatedAt** | **Date** | UTC last time the Task was updated in RFC-3339 format | [optional] **result** | [**Result**](Result.md) | | [optional] -**state** | **String** | More granular current state of the Task; list of supported states is not guaranteed to be stable | [optional] +**state** | [**TaskState**](TaskState.md) | | [optional] **txHash** | **String** | The Blockchain-generated hash of the Transaction; populated after the Blockchain Node accepted the Transaction | [optional] **qeditTxHash** | **String** | The QEDIT-generated hash of the Transaction; generated after proof generation, but prior to Broadcast by the QEDIT Node | [optional] **type** | [**TaskType**](TaskType.md) | | [optional] -**data** | **Object** | Container for the Transaction data; each Transaction type has different fields | [optional] +**data** | [**TaskData**](TaskData.md) | | [optional] **error** | **String** | In case of failure this field reports the reason for the failure | [optional] diff --git a/js/sdk/docs/IssueAssetRequest.md b/js/sdk/docs/IssueAssetRequest.md index 907a98b..ef737d0 100644 --- a/js/sdk/docs/IssueAssetRequest.md +++ b/js/sdk/docs/IssueAssetRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **walletId** | **String** | The ID of the Wallet that has the required Issuance privileges | **authorization** | **String** | The authorization password for the Wallet that has the Issuance privileges | **recipientAddress** | **String** | The Address of the recipient of the issued Assets | -**assetId** | **Number** | The ID of the Asset Type to issue | +**assetId** | **String** | The ID of an Asset Type. It must be a string of length 0 to 40 characters. Allowed characters are lower- and uppercase letters, digits, dot (.), and hyphen (-). It must not end with an hyphen. Asset IDs are case-sensitive. | **amount** | **Number** | the amount of Assets to issue | **confidential** | **Boolean** | Boolean which should be true if the issuance should be confidential, and false of the Issuance should be public | **memo** | **String** | | diff --git a/js/sdk/docs/NodeApi.md b/js/sdk/docs/NodeApi.md index c51cb33..0c3be0c 100644 --- a/js/sdk/docs/NodeApi.md +++ b/js/sdk/docs/NodeApi.md @@ -4,7 +4,9 @@ All URIs are relative to *http://localhost:12052* Method | HTTP request | Description ------------- | ------------- | ------------- -[**nodeDeleteWalletPost**](NodeApi.md#nodeDeleteWalletPost) | **POST** /node/delete_wallet | Delete a Wallet +[**nodeApproveTaskPost**](NodeApi.md#nodeApproveTaskPost) | **POST** /node/approve_task | Approve task with pending incoming transaction [async call] +[**nodeCancelTaskPost**](NodeApi.md#nodeCancelTaskPost) | **POST** /node/cancel_task | Cancel task with pending incoming transaction both incoming and outgoing [async call] +[**nodeDeleteWalletPost**](NodeApi.md#nodeDeleteWalletPost) | **POST** /node/delete_wallet | Delete a Wallet [async call] [**nodeExportAuditorAccessWalletPost**](NodeApi.md#nodeExportAuditorAccessWalletPost) | **POST** /node/export_auditor_access_wallet | Export viewing credentials for a Wallet [**nodeExportWalletPost**](NodeApi.md#nodeExportWalletPost) | **POST** /node/export_wallet | Export wallet secret key [**nodeGenerateWalletPost**](NodeApi.md#nodeGenerateWalletPost) | **POST** /node/generate_wallet | Generate a new Wallet @@ -17,11 +19,105 @@ Method | HTTP request | Description [**nodeUnlockWalletPost**](NodeApi.md#nodeUnlockWalletPost) | **POST** /node/unlock_wallet | Unlocks a wallet for a given amount of seconds [async call] + +# **nodeApproveTaskPost** +> nodeApproveTaskPost(taskActionRequest) + +Approve task with pending incoming transaction [async call] + +Confirmation request tasks are confirmed using this point. After the user confirms the incoming transaction, it is asynchronously sent to the blockchain and its status can be queried like any other async task. + +### Example +```javascript +var QedItAssetTransfers = require('qed-it-asset-transfers'); +var defaultClient = QedItAssetTransfers.ApiClient.instance; +// Configure API key authorization: ApiKeyAuth +var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth']; +ApiKeyAuth.apiKey = 'YOUR API KEY'; +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyAuth.apiKeyPrefix = 'Token'; + +var apiInstance = new QedItAssetTransfers.NodeApi(); +var taskActionRequest = new QedItAssetTransfers.TaskActionRequest(); // TaskActionRequest | +apiInstance.nodeApproveTaskPost(taskActionRequest).then(function() { + console.log('API called successfully.'); +}, function(error) { + console.error(error); +}); + +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **taskActionRequest** | [**TaskActionRequest**](TaskActionRequest.md)| | + +### Return type + +null (empty response body) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **nodeCancelTaskPost** +> nodeCancelTaskPost(taskActionRequest) + +Cancel task with pending incoming transaction both incoming and outgoing [async call] + +A user may select to decline an incoming transaction. The related task will change its result to failure both on senders and the receivers side. This endpoint can also be used to cancel an outgoing pending transaction that is awaiting user interaction from the receiver + +### Example +```javascript +var QedItAssetTransfers = require('qed-it-asset-transfers'); +var defaultClient = QedItAssetTransfers.ApiClient.instance; +// Configure API key authorization: ApiKeyAuth +var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth']; +ApiKeyAuth.apiKey = 'YOUR API KEY'; +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyAuth.apiKeyPrefix = 'Token'; + +var apiInstance = new QedItAssetTransfers.NodeApi(); +var taskActionRequest = new QedItAssetTransfers.TaskActionRequest(); // TaskActionRequest | +apiInstance.nodeCancelTaskPost(taskActionRequest).then(function() { + console.log('API called successfully.'); +}, function(error) { + console.error(error); +}); + +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **taskActionRequest** | [**TaskActionRequest**](TaskActionRequest.md)| | + +### Return type + +null (empty response body) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + # **nodeDeleteWalletPost** > AsyncTaskCreatedResponse nodeDeleteWalletPost(deleteWalletRequest) -Delete a Wallet +Delete a Wallet [async call] Deletes a Wallet from the Node; All private information about the Wallet will be deleted including transactional history, balances, and keys; If the secret key of the Wallet are not stored elsewhere then all Assets held in the Wallet will be forever lost! If the secret key of the Wallet is stored elsewhere, then all held Assets and the entire transactional history of the Wallet can be restored from the Blockchain at any time by importing the Wallet into a Node. diff --git a/js/sdk/docs/Result.md b/js/sdk/docs/Result.md index f1eedd0..9999ab2 100644 --- a/js/sdk/docs/Result.md +++ b/js/sdk/docs/Result.md @@ -7,6 +7,8 @@ * `in_progress` (value: `"in_progress"`) +* `awaiting_user_interaction` (value: `"awaiting_user_interaction"`) + * `success` (value: `"success"`) * `failure` (value: `"failure"`) diff --git a/js/sdk/docs/Rule.md b/js/sdk/docs/Rule.md index 0616c01..f6897b5 100644 --- a/js/sdk/docs/Rule.md +++ b/js/sdk/docs/Rule.md @@ -5,8 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **publicKey** | **String** | The public key of the Wallet that is being granted rights in this Rule | **isAdmin** | **Boolean** | Boolean signifying whether the Rule grants admin rights | -**canIssueAssetIdFirst** | **Number** | The lower Asset ID in the range of IDs the Rule grants issuance rights for (range is inclusive) | -**canIssueAssetIdLast** | **Number** | The upper Asset ID in the range of IDs the Rule grants issuance rights for (range is inclusive) | +**namespace** | **String** | A `Namespace` describes what Asset IDs can be issued in an Issuance Rule. It is a string in the same format as `AssetId`. Additionally, if it ends with a wildcard character `*`, then the namespace covers all asset IDs with the namespace as a prefix. Without a final wildcard, the namespace covers exactly one asset ID. Example: The namespace `currencies.dollar` covers only this exact asset type, while `currencies.*` covers all asset types that start with `currencies.`. | **canIssueConfidentially** | **Boolean** | Boolean signifying whether the Rule grants confidentialy issuance rights; if true, then both public and confidential issuance right are granted; if false, then only public issuance rights are granted | diff --git a/js/sdk/docs/TaskActionRequest.md b/js/sdk/docs/TaskActionRequest.md new file mode 100644 index 0000000..5458659 --- /dev/null +++ b/js/sdk/docs/TaskActionRequest.md @@ -0,0 +1,9 @@ +# QedItAssetTransfers.TaskActionRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**taskId** | **String** | | +**authorization** | **String** | | + + diff --git a/js/sdk/docs/TaskData.md b/js/sdk/docs/TaskData.md new file mode 100644 index 0000000..899e2a8 --- /dev/null +++ b/js/sdk/docs/TaskData.md @@ -0,0 +1,12 @@ +# QedItAssetTransfers.TaskData + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**requireConfirmationFrom** | **String** | The public key for the confirmation request receiver | [optional] +**recipientAddress** | **String** | The address the request was sent to | [optional] +**assetId** | **String** | | [optional] +**amount** | **Number** | | [optional] +**walletId** | **String** | | [optional] + + diff --git a/js/sdk/docs/TaskState.md b/js/sdk/docs/TaskState.md new file mode 100644 index 0000000..bede76f --- /dev/null +++ b/js/sdk/docs/TaskState.md @@ -0,0 +1,26 @@ +# QedItAssetTransfers.TaskState + +## Enum + + +* `pending_state` (value: `"pending_state"`) + +* `in_progress_state` (value: `"in_progress_state"`) + +* `tx_generated_state` (value: `"tx_generated_state"`) + +* `conf_req_sent_state` (value: `"conf_req_sent_state"`) + +* `conf_req_received_state` (value: `"conf_req_received_state"`) + +* `conf_req_canceled_by_sender_state` (value: `"conf_req_canceled_by_sender_state"`) + +* `conf_req_canceled_by_receiver_state` (value: `"conf_req_canceled_by_receiver_state"`) + +* `tx_submitted_state` (value: `"tx_submitted_state"`) + +* `failure_state` (value: `"failure_state"`) + +* `success_state` (value: `"success_state"`) + + diff --git a/js/sdk/docs/TaskType.md b/js/sdk/docs/TaskType.md index be7489a..e9bc728 100644 --- a/js/sdk/docs/TaskType.md +++ b/js/sdk/docs/TaskType.md @@ -15,4 +15,8 @@ * `delete_wallet` (value: `"delete_wallet"`) +* `outgoing_confirm_request` (value: `"outgoing_confirm_request"`) + +* `incoming_confirm_request` (value: `"incoming_confirm_request"`) + diff --git a/js/sdk/docs/TransferAssetRequest.md b/js/sdk/docs/TransferAssetRequest.md index c911360..88cc406 100644 --- a/js/sdk/docs/TransferAssetRequest.md +++ b/js/sdk/docs/TransferAssetRequest.md @@ -6,8 +6,9 @@ Name | Type | Description | Notes **walletId** | **String** | The ID of the Wallet to transfer from | **authorization** | **String** | The authorization password for the Wallet to transfer from | **recipientAddress** | **String** | The Address of the recipient of the funds | -**assetId** | **Number** | The ID for the Asset Type to transfer | +**assetId** | **String** | The ID of an Asset Type. It must be a string of length 0 to 40 characters. Allowed characters are lower- and uppercase letters, digits, dot (.), and hyphen (-). It must not end with an hyphen. Asset IDs are case-sensitive. | **amount** | **Number** | The amount of assets to transfer | **memo** | **String** | An app-customizable field to store additional private data relating to the transfer; the memo is shared between the sender and the receiver, but is not divulged to other parties | +**requireConfirmationFrom** | **String** | A user may request confirmation from the receiving party. If a public key of the approver is included in this optional field, the transaction will only become valid after the received signs it. The receiver will be able to decide whether to accept or reject the transfer by calling the /node/approve_task or the /node/reject_task respectively. | [optional] diff --git a/js/sdk/package.json b/js/sdk/package.json index a068fd2..614baca 100644 --- a/js/sdk/package.json +++ b/js/sdk/package.json @@ -1,6 +1,6 @@ { "name": "qed-it-asset-transfers", - "version": "1.5.0", + "version": "1.6.0", "description": "ERROR_UNKNOWN", "license": "Unlicense", "main": "src/index.js", diff --git a/js/sdk/src/ApiClient.js b/js/sdk/src/ApiClient.js index e1abd36..0e45f04 100644 --- a/js/sdk/src/ApiClient.js +++ b/js/sdk/src/ApiClient.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -32,7 +32,7 @@ /** * @module ApiClient - * @version 1.5.0 + * @version 1.6.0 */ /** diff --git a/js/sdk/src/api/AnalyticsApi.js b/js/sdk/src/api/AnalyticsApi.js index 164ceac..f881865 100644 --- a/js/sdk/src/api/AnalyticsApi.js +++ b/js/sdk/src/api/AnalyticsApi.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -33,7 +33,7 @@ /** * Analytics service. * @module api/AnalyticsApi - * @version 1.5.0 + * @version 1.6.0 */ /** diff --git a/js/sdk/src/api/HealthApi.js b/js/sdk/src/api/HealthApi.js index 79efdda..e1afa2d 100644 --- a/js/sdk/src/api/HealthApi.js +++ b/js/sdk/src/api/HealthApi.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -33,7 +33,7 @@ /** * Health service. * @module api/HealthApi - * @version 1.5.0 + * @version 1.6.0 */ /** diff --git a/js/sdk/src/api/NodeApi.js b/js/sdk/src/api/NodeApi.js index 12e8826..d846f56 100644 --- a/js/sdk/src/api/NodeApi.js +++ b/js/sdk/src/api/NodeApi.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,24 +16,24 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/AsyncTaskCreatedResponse', 'model/DeleteWalletRequest', 'model/ErrorResponse', 'model/ExportAuditorAccessWalletRequest', 'model/ExportAuditorAccessWalletResponse', 'model/ExportWalletRequest', 'model/ExportWalletResponse', 'model/GenerateWalletRequest', 'model/GetAllWalletsResponse', 'model/GetRulesResponse', 'model/GetTaskStatusRequest', 'model/GetTaskStatusResponse', 'model/GetTasksRequest', 'model/GetTasksResponse', 'model/ImportAuditorAccessWalletRequest', 'model/ImportWalletRequest', 'model/UnlockWalletRequest'], factory); + define(['ApiClient', 'model/AsyncTaskCreatedResponse', 'model/DeleteWalletRequest', 'model/ErrorResponse', 'model/ExportAuditorAccessWalletRequest', 'model/ExportAuditorAccessWalletResponse', 'model/ExportWalletRequest', 'model/ExportWalletResponse', 'model/GenerateWalletRequest', 'model/GetAllWalletsResponse', 'model/GetRulesResponse', 'model/GetTaskStatusRequest', 'model/GetTaskStatusResponse', 'model/GetTasksRequest', 'model/GetTasksResponse', 'model/ImportAuditorAccessWalletRequest', 'model/ImportWalletRequest', 'model/TaskActionRequest', 'model/UnlockWalletRequest'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../model/AsyncTaskCreatedResponse'), require('../model/DeleteWalletRequest'), require('../model/ErrorResponse'), require('../model/ExportAuditorAccessWalletRequest'), require('../model/ExportAuditorAccessWalletResponse'), require('../model/ExportWalletRequest'), require('../model/ExportWalletResponse'), require('../model/GenerateWalletRequest'), require('../model/GetAllWalletsResponse'), require('../model/GetRulesResponse'), require('../model/GetTaskStatusRequest'), require('../model/GetTaskStatusResponse'), require('../model/GetTasksRequest'), require('../model/GetTasksResponse'), require('../model/ImportAuditorAccessWalletRequest'), require('../model/ImportWalletRequest'), require('../model/UnlockWalletRequest')); + module.exports = factory(require('../ApiClient'), require('../model/AsyncTaskCreatedResponse'), require('../model/DeleteWalletRequest'), require('../model/ErrorResponse'), require('../model/ExportAuditorAccessWalletRequest'), require('../model/ExportAuditorAccessWalletResponse'), require('../model/ExportWalletRequest'), require('../model/ExportWalletResponse'), require('../model/GenerateWalletRequest'), require('../model/GetAllWalletsResponse'), require('../model/GetRulesResponse'), require('../model/GetTaskStatusRequest'), require('../model/GetTaskStatusResponse'), require('../model/GetTasksRequest'), require('../model/GetTasksResponse'), require('../model/ImportAuditorAccessWalletRequest'), require('../model/ImportWalletRequest'), require('../model/TaskActionRequest'), require('../model/UnlockWalletRequest')); } else { // Browser globals (root is window) if (!root.QedItAssetTransfers) { root.QedItAssetTransfers = {}; } - root.QedItAssetTransfers.NodeApi = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.AsyncTaskCreatedResponse, root.QedItAssetTransfers.DeleteWalletRequest, root.QedItAssetTransfers.ErrorResponse, root.QedItAssetTransfers.ExportAuditorAccessWalletRequest, root.QedItAssetTransfers.ExportAuditorAccessWalletResponse, root.QedItAssetTransfers.ExportWalletRequest, root.QedItAssetTransfers.ExportWalletResponse, root.QedItAssetTransfers.GenerateWalletRequest, root.QedItAssetTransfers.GetAllWalletsResponse, root.QedItAssetTransfers.GetRulesResponse, root.QedItAssetTransfers.GetTaskStatusRequest, root.QedItAssetTransfers.GetTaskStatusResponse, root.QedItAssetTransfers.GetTasksRequest, root.QedItAssetTransfers.GetTasksResponse, root.QedItAssetTransfers.ImportAuditorAccessWalletRequest, root.QedItAssetTransfers.ImportWalletRequest, root.QedItAssetTransfers.UnlockWalletRequest); + root.QedItAssetTransfers.NodeApi = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.AsyncTaskCreatedResponse, root.QedItAssetTransfers.DeleteWalletRequest, root.QedItAssetTransfers.ErrorResponse, root.QedItAssetTransfers.ExportAuditorAccessWalletRequest, root.QedItAssetTransfers.ExportAuditorAccessWalletResponse, root.QedItAssetTransfers.ExportWalletRequest, root.QedItAssetTransfers.ExportWalletResponse, root.QedItAssetTransfers.GenerateWalletRequest, root.QedItAssetTransfers.GetAllWalletsResponse, root.QedItAssetTransfers.GetRulesResponse, root.QedItAssetTransfers.GetTaskStatusRequest, root.QedItAssetTransfers.GetTaskStatusResponse, root.QedItAssetTransfers.GetTasksRequest, root.QedItAssetTransfers.GetTasksResponse, root.QedItAssetTransfers.ImportAuditorAccessWalletRequest, root.QedItAssetTransfers.ImportWalletRequest, root.QedItAssetTransfers.TaskActionRequest, root.QedItAssetTransfers.UnlockWalletRequest); } -}(this, function(ApiClient, AsyncTaskCreatedResponse, DeleteWalletRequest, ErrorResponse, ExportAuditorAccessWalletRequest, ExportAuditorAccessWalletResponse, ExportWalletRequest, ExportWalletResponse, GenerateWalletRequest, GetAllWalletsResponse, GetRulesResponse, GetTaskStatusRequest, GetTaskStatusResponse, GetTasksRequest, GetTasksResponse, ImportAuditorAccessWalletRequest, ImportWalletRequest, UnlockWalletRequest) { +}(this, function(ApiClient, AsyncTaskCreatedResponse, DeleteWalletRequest, ErrorResponse, ExportAuditorAccessWalletRequest, ExportAuditorAccessWalletResponse, ExportWalletRequest, ExportWalletResponse, GenerateWalletRequest, GetAllWalletsResponse, GetRulesResponse, GetTaskStatusRequest, GetTaskStatusResponse, GetTasksRequest, GetTasksResponse, ImportAuditorAccessWalletRequest, ImportWalletRequest, TaskActionRequest, UnlockWalletRequest) { 'use strict'; /** * Node service. * @module api/NodeApi - * @version 1.5.0 + * @version 1.6.0 */ /** @@ -49,7 +49,111 @@ /** - * Delete a Wallet + * Approve task with pending incoming transaction [async call] + * Confirmation request tasks are confirmed using this point. After the user confirms the incoming transaction, it is asynchronously sent to the blockchain and its status can be queried like any other async task. + * @param {module:model/TaskActionRequest} taskActionRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response + */ + this.nodeApproveTaskPostWithHttpInfo = function(taskActionRequest) { + var postBody = taskActionRequest; + + // verify the required parameter 'taskActionRequest' is set + if (taskActionRequest === undefined || taskActionRequest === null) { + throw new Error("Missing the required parameter 'taskActionRequest' when calling nodeApproveTaskPost"); + } + + + var pathParams = { + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['ApiKeyAuth']; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = null; + + return this.apiClient.callApi( + '/node/approve_task', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * Approve task with pending incoming transaction [async call] + * Confirmation request tasks are confirmed using this point. After the user confirms the incoming transaction, it is asynchronously sent to the blockchain and its status can be queried like any other async task. + * @param {module:model/TaskActionRequest} taskActionRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise} + */ + this.nodeApproveTaskPost = function(taskActionRequest) { + return this.nodeApproveTaskPostWithHttpInfo(taskActionRequest) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * Cancel task with pending incoming transaction both incoming and outgoing [async call] + * A user may select to decline an incoming transaction. The related task will change its result to failure both on senders and the receivers side. This endpoint can also be used to cancel an outgoing pending transaction that is awaiting user interaction from the receiver + * @param {module:model/TaskActionRequest} taskActionRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response + */ + this.nodeCancelTaskPostWithHttpInfo = function(taskActionRequest) { + var postBody = taskActionRequest; + + // verify the required parameter 'taskActionRequest' is set + if (taskActionRequest === undefined || taskActionRequest === null) { + throw new Error("Missing the required parameter 'taskActionRequest' when calling nodeCancelTaskPost"); + } + + + var pathParams = { + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['ApiKeyAuth']; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = null; + + return this.apiClient.callApi( + '/node/cancel_task', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * Cancel task with pending incoming transaction both incoming and outgoing [async call] + * A user may select to decline an incoming transaction. The related task will change its result to failure both on senders and the receivers side. This endpoint can also be used to cancel an outgoing pending transaction that is awaiting user interaction from the receiver + * @param {module:model/TaskActionRequest} taskActionRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise} + */ + this.nodeCancelTaskPost = function(taskActionRequest) { + return this.nodeCancelTaskPostWithHttpInfo(taskActionRequest) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * Delete a Wallet [async call] * Deletes a Wallet from the Node; All private information about the Wallet will be deleted including transactional history, balances, and keys; If the secret key of the Wallet are not stored elsewhere then all Assets held in the Wallet will be forever lost! If the secret key of the Wallet is stored elsewhere, then all held Assets and the entire transactional history of the Wallet can be restored from the Blockchain at any time by importing the Wallet into a Node. * @param {module:model/DeleteWalletRequest} deleteWalletRequest * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AsyncTaskCreatedResponse} and HTTP response @@ -87,7 +191,7 @@ } /** - * Delete a Wallet + * Delete a Wallet [async call] * Deletes a Wallet from the Node; All private information about the Wallet will be deleted including transactional history, balances, and keys; If the secret key of the Wallet are not stored elsewhere then all Assets held in the Wallet will be forever lost! If the secret key of the Wallet is stored elsewhere, then all held Assets and the entire transactional history of the Wallet can be restored from the Blockchain at any time by importing the Wallet into a Node. * @param {module:model/DeleteWalletRequest} deleteWalletRequest * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AsyncTaskCreatedResponse} diff --git a/js/sdk/src/api/WalletApi.js b/js/sdk/src/api/WalletApi.js index ca7dc7e..79f0b6a 100644 --- a/js/sdk/src/api/WalletApi.js +++ b/js/sdk/src/api/WalletApi.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -33,7 +33,7 @@ /** * Wallet service. * @module api/WalletApi - * @version 1.5.0 + * @version 1.6.0 */ /** diff --git a/js/sdk/src/index.js b/js/sdk/src/index.js index 18223f9..a22906a 100644 --- a/js/sdk/src/index.js +++ b/js/sdk/src/index.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,12 +16,12 @@ (function(factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/AnalyticIssueWalletTx', 'model/AnalyticRuleWalletTx', 'model/AnalyticTransaction', 'model/AnalyticTransferWalletTx', 'model/AnalyticWalletMetadata', 'model/AnalyticWalletTx', 'model/AnalyticsAssetConverterProofDescription', 'model/AnalyticsConfidentialIssuanceDescription', 'model/AnalyticsIssueTx', 'model/AnalyticsMultiTransferTx', 'model/AnalyticsOutput', 'model/AnalyticsOutputDescription', 'model/AnalyticsPublicIssuanceDescription', 'model/AnalyticsRule', 'model/AnalyticsRuleDefinition', 'model/AnalyticsRuleTx', 'model/AnalyticsRuleWalletDefinition', 'model/AnalyticsSpendDescription', 'model/AnalyticsTransferTx', 'model/AnalyticsTxMetadata', 'model/AnalyticsTxType', 'model/AsyncTaskCreatedResponse', 'model/BalanceForAsset', 'model/CreateRuleRequest', 'model/DeleteRuleRequest', 'model/DeleteWalletRequest', 'model/ErrorResponse', 'model/ExportAuditorAccessWalletRequest', 'model/ExportAuditorAccessWalletResponse', 'model/ExportWalletRequest', 'model/ExportWalletResponse', 'model/GenerateWalletRequest', 'model/GetAllWalletsResponse', 'model/GetNetworkActivityRequest', 'model/GetNetworkActivityResponse', 'model/GetNewAddressRequest', 'model/GetNewAddressResponse', 'model/GetPublicKeyRequest', 'model/GetPublicKeyResponse', 'model/GetRulesResponse', 'model/GetSyncStatusResponse', 'model/GetTaskStatusRequest', 'model/GetTaskStatusResponse', 'model/GetTasksRequest', 'model/GetTasksResponse', 'model/GetWalletActivityRequest', 'model/GetWalletActivityResponse', 'model/GetWalletBalanceRequest', 'model/GetWalletBalanceResponse', 'model/HealthcheckResponse', 'model/HealthcheckResponseItem', 'model/ImportAuditorAccessWalletRequest', 'model/ImportWalletRequest', 'model/IssueAssetRequest', 'model/Result', 'model/Rule', 'model/TaskType', 'model/TransferAssetRequest', 'model/UnlockWalletRequest', 'api/AnalyticsApi', 'api/HealthApi', 'api/NodeApi', 'api/WalletApi'], factory); + define(['ApiClient', 'model/AnalyticIssueWalletTx', 'model/AnalyticRuleWalletTx', 'model/AnalyticTransaction', 'model/AnalyticTransferWalletTx', 'model/AnalyticWalletMetadata', 'model/AnalyticWalletTx', 'model/AnalyticsConfidentialIssuanceDescription', 'model/AnalyticsIssueTx', 'model/AnalyticsMultiTransferTx', 'model/AnalyticsOutput', 'model/AnalyticsOutputDescription', 'model/AnalyticsPublicIssuanceDescription', 'model/AnalyticsRule', 'model/AnalyticsRuleDefinition', 'model/AnalyticsRuleTx', 'model/AnalyticsRuleWalletDefinition', 'model/AnalyticsSpendDescription', 'model/AnalyticsTransferTx', 'model/AnalyticsTxMetadata', 'model/AnalyticsTxType', 'model/AsyncTaskCreatedResponse', 'model/BalanceForAsset', 'model/CreateRuleRequest', 'model/DeleteRuleRequest', 'model/DeleteWalletRequest', 'model/ErrorResponse', 'model/ExportAuditorAccessWalletRequest', 'model/ExportAuditorAccessWalletResponse', 'model/ExportWalletRequest', 'model/ExportWalletResponse', 'model/GenerateWalletRequest', 'model/GetAllWalletsResponse', 'model/GetNetworkActivityRequest', 'model/GetNetworkActivityResponse', 'model/GetNewAddressRequest', 'model/GetNewAddressResponse', 'model/GetPublicKeyRequest', 'model/GetPublicKeyResponse', 'model/GetRulesResponse', 'model/GetSyncStatusResponse', 'model/GetTaskStatusRequest', 'model/GetTaskStatusResponse', 'model/GetTasksRequest', 'model/GetTasksResponse', 'model/GetWalletActivityRequest', 'model/GetWalletActivityResponse', 'model/GetWalletBalanceRequest', 'model/GetWalletBalanceResponse', 'model/HealthcheckResponse', 'model/HealthcheckResponseItem', 'model/ImportAuditorAccessWalletRequest', 'model/ImportWalletRequest', 'model/IssueAssetRequest', 'model/Result', 'model/Rule', 'model/TaskActionRequest', 'model/TaskData', 'model/TaskState', 'model/TaskType', 'model/TransferAssetRequest', 'model/UnlockWalletRequest', 'api/AnalyticsApi', 'api/HealthApi', 'api/NodeApi', 'api/WalletApi'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('./ApiClient'), require('./model/AnalyticIssueWalletTx'), require('./model/AnalyticRuleWalletTx'), require('./model/AnalyticTransaction'), require('./model/AnalyticTransferWalletTx'), require('./model/AnalyticWalletMetadata'), require('./model/AnalyticWalletTx'), require('./model/AnalyticsAssetConverterProofDescription'), require('./model/AnalyticsConfidentialIssuanceDescription'), require('./model/AnalyticsIssueTx'), require('./model/AnalyticsMultiTransferTx'), require('./model/AnalyticsOutput'), require('./model/AnalyticsOutputDescription'), require('./model/AnalyticsPublicIssuanceDescription'), require('./model/AnalyticsRule'), require('./model/AnalyticsRuleDefinition'), require('./model/AnalyticsRuleTx'), require('./model/AnalyticsRuleWalletDefinition'), require('./model/AnalyticsSpendDescription'), require('./model/AnalyticsTransferTx'), require('./model/AnalyticsTxMetadata'), require('./model/AnalyticsTxType'), require('./model/AsyncTaskCreatedResponse'), require('./model/BalanceForAsset'), require('./model/CreateRuleRequest'), require('./model/DeleteRuleRequest'), require('./model/DeleteWalletRequest'), require('./model/ErrorResponse'), require('./model/ExportAuditorAccessWalletRequest'), require('./model/ExportAuditorAccessWalletResponse'), require('./model/ExportWalletRequest'), require('./model/ExportWalletResponse'), require('./model/GenerateWalletRequest'), require('./model/GetAllWalletsResponse'), require('./model/GetNetworkActivityRequest'), require('./model/GetNetworkActivityResponse'), require('./model/GetNewAddressRequest'), require('./model/GetNewAddressResponse'), require('./model/GetPublicKeyRequest'), require('./model/GetPublicKeyResponse'), require('./model/GetRulesResponse'), require('./model/GetSyncStatusResponse'), require('./model/GetTaskStatusRequest'), require('./model/GetTaskStatusResponse'), require('./model/GetTasksRequest'), require('./model/GetTasksResponse'), require('./model/GetWalletActivityRequest'), require('./model/GetWalletActivityResponse'), require('./model/GetWalletBalanceRequest'), require('./model/GetWalletBalanceResponse'), require('./model/HealthcheckResponse'), require('./model/HealthcheckResponseItem'), require('./model/ImportAuditorAccessWalletRequest'), require('./model/ImportWalletRequest'), require('./model/IssueAssetRequest'), require('./model/Result'), require('./model/Rule'), require('./model/TaskType'), require('./model/TransferAssetRequest'), require('./model/UnlockWalletRequest'), require('./api/AnalyticsApi'), require('./api/HealthApi'), require('./api/NodeApi'), require('./api/WalletApi')); + module.exports = factory(require('./ApiClient'), require('./model/AnalyticIssueWalletTx'), require('./model/AnalyticRuleWalletTx'), require('./model/AnalyticTransaction'), require('./model/AnalyticTransferWalletTx'), require('./model/AnalyticWalletMetadata'), require('./model/AnalyticWalletTx'), require('./model/AnalyticsConfidentialIssuanceDescription'), require('./model/AnalyticsIssueTx'), require('./model/AnalyticsMultiTransferTx'), require('./model/AnalyticsOutput'), require('./model/AnalyticsOutputDescription'), require('./model/AnalyticsPublicIssuanceDescription'), require('./model/AnalyticsRule'), require('./model/AnalyticsRuleDefinition'), require('./model/AnalyticsRuleTx'), require('./model/AnalyticsRuleWalletDefinition'), require('./model/AnalyticsSpendDescription'), require('./model/AnalyticsTransferTx'), require('./model/AnalyticsTxMetadata'), require('./model/AnalyticsTxType'), require('./model/AsyncTaskCreatedResponse'), require('./model/BalanceForAsset'), require('./model/CreateRuleRequest'), require('./model/DeleteRuleRequest'), require('./model/DeleteWalletRequest'), require('./model/ErrorResponse'), require('./model/ExportAuditorAccessWalletRequest'), require('./model/ExportAuditorAccessWalletResponse'), require('./model/ExportWalletRequest'), require('./model/ExportWalletResponse'), require('./model/GenerateWalletRequest'), require('./model/GetAllWalletsResponse'), require('./model/GetNetworkActivityRequest'), require('./model/GetNetworkActivityResponse'), require('./model/GetNewAddressRequest'), require('./model/GetNewAddressResponse'), require('./model/GetPublicKeyRequest'), require('./model/GetPublicKeyResponse'), require('./model/GetRulesResponse'), require('./model/GetSyncStatusResponse'), require('./model/GetTaskStatusRequest'), require('./model/GetTaskStatusResponse'), require('./model/GetTasksRequest'), require('./model/GetTasksResponse'), require('./model/GetWalletActivityRequest'), require('./model/GetWalletActivityResponse'), require('./model/GetWalletBalanceRequest'), require('./model/GetWalletBalanceResponse'), require('./model/HealthcheckResponse'), require('./model/HealthcheckResponseItem'), require('./model/ImportAuditorAccessWalletRequest'), require('./model/ImportWalletRequest'), require('./model/IssueAssetRequest'), require('./model/Result'), require('./model/Rule'), require('./model/TaskActionRequest'), require('./model/TaskData'), require('./model/TaskState'), require('./model/TaskType'), require('./model/TransferAssetRequest'), require('./model/UnlockWalletRequest'), require('./api/AnalyticsApi'), require('./api/HealthApi'), require('./api/NodeApi'), require('./api/WalletApi')); } -}(function(ApiClient, AnalyticIssueWalletTx, AnalyticRuleWalletTx, AnalyticTransaction, AnalyticTransferWalletTx, AnalyticWalletMetadata, AnalyticWalletTx, AnalyticsAssetConverterProofDescription, AnalyticsConfidentialIssuanceDescription, AnalyticsIssueTx, AnalyticsMultiTransferTx, AnalyticsOutput, AnalyticsOutputDescription, AnalyticsPublicIssuanceDescription, AnalyticsRule, AnalyticsRuleDefinition, AnalyticsRuleTx, AnalyticsRuleWalletDefinition, AnalyticsSpendDescription, AnalyticsTransferTx, AnalyticsTxMetadata, AnalyticsTxType, AsyncTaskCreatedResponse, BalanceForAsset, CreateRuleRequest, DeleteRuleRequest, DeleteWalletRequest, ErrorResponse, ExportAuditorAccessWalletRequest, ExportAuditorAccessWalletResponse, ExportWalletRequest, ExportWalletResponse, GenerateWalletRequest, GetAllWalletsResponse, GetNetworkActivityRequest, GetNetworkActivityResponse, GetNewAddressRequest, GetNewAddressResponse, GetPublicKeyRequest, GetPublicKeyResponse, GetRulesResponse, GetSyncStatusResponse, GetTaskStatusRequest, GetTaskStatusResponse, GetTasksRequest, GetTasksResponse, GetWalletActivityRequest, GetWalletActivityResponse, GetWalletBalanceRequest, GetWalletBalanceResponse, HealthcheckResponse, HealthcheckResponseItem, ImportAuditorAccessWalletRequest, ImportWalletRequest, IssueAssetRequest, Result, Rule, TaskType, TransferAssetRequest, UnlockWalletRequest, AnalyticsApi, HealthApi, NodeApi, WalletApi) { +}(function(ApiClient, AnalyticIssueWalletTx, AnalyticRuleWalletTx, AnalyticTransaction, AnalyticTransferWalletTx, AnalyticWalletMetadata, AnalyticWalletTx, AnalyticsConfidentialIssuanceDescription, AnalyticsIssueTx, AnalyticsMultiTransferTx, AnalyticsOutput, AnalyticsOutputDescription, AnalyticsPublicIssuanceDescription, AnalyticsRule, AnalyticsRuleDefinition, AnalyticsRuleTx, AnalyticsRuleWalletDefinition, AnalyticsSpendDescription, AnalyticsTransferTx, AnalyticsTxMetadata, AnalyticsTxType, AsyncTaskCreatedResponse, BalanceForAsset, CreateRuleRequest, DeleteRuleRequest, DeleteWalletRequest, ErrorResponse, ExportAuditorAccessWalletRequest, ExportAuditorAccessWalletResponse, ExportWalletRequest, ExportWalletResponse, GenerateWalletRequest, GetAllWalletsResponse, GetNetworkActivityRequest, GetNetworkActivityResponse, GetNewAddressRequest, GetNewAddressResponse, GetPublicKeyRequest, GetPublicKeyResponse, GetRulesResponse, GetSyncStatusResponse, GetTaskStatusRequest, GetTaskStatusResponse, GetTasksRequest, GetTasksResponse, GetWalletActivityRequest, GetWalletActivityResponse, GetWalletBalanceRequest, GetWalletBalanceResponse, HealthcheckResponse, HealthcheckResponseItem, ImportAuditorAccessWalletRequest, ImportWalletRequest, IssueAssetRequest, Result, Rule, TaskActionRequest, TaskData, TaskState, TaskType, TransferAssetRequest, UnlockWalletRequest, AnalyticsApi, HealthApi, NodeApi, WalletApi) { 'use strict'; /** @@ -53,7 +53,7 @@ * *

* @module index - * @version 1.5.0 + * @version 1.6.0 */ var exports = { /** @@ -91,11 +91,6 @@ * @property {module:model/AnalyticWalletTx} */ AnalyticWalletTx: AnalyticWalletTx, - /** - * The AnalyticsAssetConverterProofDescription model constructor. - * @property {module:model/AnalyticsAssetConverterProofDescription} - */ - AnalyticsAssetConverterProofDescription: AnalyticsAssetConverterProofDescription, /** * The AnalyticsConfidentialIssuanceDescription model constructor. * @property {module:model/AnalyticsConfidentialIssuanceDescription} @@ -341,6 +336,21 @@ * @property {module:model/Rule} */ Rule: Rule, + /** + * The TaskActionRequest model constructor. + * @property {module:model/TaskActionRequest} + */ + TaskActionRequest: TaskActionRequest, + /** + * The TaskData model constructor. + * @property {module:model/TaskData} + */ + TaskData: TaskData, + /** + * The TaskState model constructor. + * @property {module:model/TaskState} + */ + TaskState: TaskState, /** * The TaskType model constructor. * @property {module:model/TaskType} diff --git a/js/sdk/src/model/AnalyticIssueWalletTx.js b/js/sdk/src/model/AnalyticIssueWalletTx.js index b7f4a05..4162ebd 100644 --- a/js/sdk/src/model/AnalyticIssueWalletTx.js +++ b/js/sdk/src/model/AnalyticIssueWalletTx.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The AnalyticIssueWalletTx model module. * @module model/AnalyticIssueWalletTx - * @version 1.5.0 + * @version 1.6.0 */ /** @@ -71,7 +71,7 @@ obj['recipient_address'] = ApiClient.convertToType(data['recipient_address'], 'String'); } if (data.hasOwnProperty('asset_id')) { - obj['asset_id'] = ApiClient.convertToType(data['asset_id'], 'Number'); + obj['asset_id'] = ApiClient.convertToType(data['asset_id'], 'String'); } if (data.hasOwnProperty('amount')) { obj['amount'] = ApiClient.convertToType(data['amount'], 'Number'); @@ -107,8 +107,8 @@ */ exports.prototype['recipient_address'] = undefined; /** - * The ID of the Asset Type issued - * @member {Number} asset_id + * The ID of an Asset Type. It must be a string of length 0 to 40 characters. Allowed characters are lower- and uppercase letters, digits, dot (.), and hyphen (-). It must not end with an hyphen. Asset IDs are case-sensitive. + * @member {String} asset_id */ exports.prototype['asset_id'] = undefined; /** diff --git a/js/sdk/src/model/AnalyticRuleWalletTx.js b/js/sdk/src/model/AnalyticRuleWalletTx.js index 67b6535..cf2766d 100644 --- a/js/sdk/src/model/AnalyticRuleWalletTx.js +++ b/js/sdk/src/model/AnalyticRuleWalletTx.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The AnalyticRuleWalletTx model module. * @module model/AnalyticRuleWalletTx - * @version 1.5.0 + * @version 1.6.0 */ /** diff --git a/js/sdk/src/model/AnalyticTransaction.js b/js/sdk/src/model/AnalyticTransaction.js index a40830b..75ef6f0 100644 --- a/js/sdk/src/model/AnalyticTransaction.js +++ b/js/sdk/src/model/AnalyticTransaction.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The AnalyticTransaction model module. * @module model/AnalyticTransaction - * @version 1.5.0 + * @version 1.6.0 */ /** diff --git a/js/sdk/src/model/AnalyticTransferWalletTx.js b/js/sdk/src/model/AnalyticTransferWalletTx.js index 73d80e5..f690fdb 100644 --- a/js/sdk/src/model/AnalyticTransferWalletTx.js +++ b/js/sdk/src/model/AnalyticTransferWalletTx.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The AnalyticTransferWalletTx model module. * @module model/AnalyticTransferWalletTx - * @version 1.5.0 + * @version 1.6.0 */ /** @@ -68,7 +68,7 @@ obj['recipient_address'] = ApiClient.convertToType(data['recipient_address'], 'String'); } if (data.hasOwnProperty('asset_id')) { - obj['asset_id'] = ApiClient.convertToType(data['asset_id'], 'Number'); + obj['asset_id'] = ApiClient.convertToType(data['asset_id'], 'String'); } if (data.hasOwnProperty('amount')) { obj['amount'] = ApiClient.convertToType(data['amount'], 'Number'); @@ -96,8 +96,8 @@ */ exports.prototype['recipient_address'] = undefined; /** - * The Id of the Asset Type transferred - * @member {Number} asset_id + * The ID of an Asset Type. It must be a string of length 0 to 40 characters. Allowed characters are lower- and uppercase letters, digits, dot (.), and hyphen (-). It must not end with an hyphen. Asset IDs are case-sensitive. + * @member {String} asset_id */ exports.prototype['asset_id'] = undefined; /** diff --git a/js/sdk/src/model/AnalyticWalletMetadata.js b/js/sdk/src/model/AnalyticWalletMetadata.js index f0125b4..b1c302b 100644 --- a/js/sdk/src/model/AnalyticWalletMetadata.js +++ b/js/sdk/src/model/AnalyticWalletMetadata.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The AnalyticWalletMetadata model module. * @module model/AnalyticWalletMetadata - * @version 1.5.0 + * @version 1.6.0 */ /** diff --git a/js/sdk/src/model/AnalyticWalletTx.js b/js/sdk/src/model/AnalyticWalletTx.js index ffee544..283a775 100644 --- a/js/sdk/src/model/AnalyticWalletTx.js +++ b/js/sdk/src/model/AnalyticWalletTx.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The AnalyticWalletTx model module. * @module model/AnalyticWalletTx - * @version 1.5.0 + * @version 1.6.0 */ /** diff --git a/js/sdk/src/model/AnalyticsConfidentialIssuanceDescription.js b/js/sdk/src/model/AnalyticsConfidentialIssuanceDescription.js index 7b2dd8e..ddc8f66 100644 --- a/js/sdk/src/model/AnalyticsConfidentialIssuanceDescription.js +++ b/js/sdk/src/model/AnalyticsConfidentialIssuanceDescription.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,18 +16,18 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/AnalyticsRule'], factory); + define(['ApiClient'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./AnalyticsRule')); + module.exports = factory(require('../ApiClient')); } else { // Browser globals (root is window) if (!root.QedItAssetTransfers) { root.QedItAssetTransfers = {}; } - root.QedItAssetTransfers.AnalyticsConfidentialIssuanceDescription = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.AnalyticsRule); + root.QedItAssetTransfers.AnalyticsConfidentialIssuanceDescription = factory(root.QedItAssetTransfers.ApiClient); } -}(this, function(ApiClient, AnalyticsRule) { +}(this, function(ApiClient) { 'use strict'; @@ -35,7 +35,7 @@ /** * The AnalyticsConfidentialIssuanceDescription model module. * @module model/AnalyticsConfidentialIssuanceDescription - * @version 1.5.0 + * @version 1.6.0 */ /** @@ -59,11 +59,11 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - if (data.hasOwnProperty('input_cv')) { - obj['input_cv'] = ApiClient.convertToType(data['input_cv'], 'String'); + if (data.hasOwnProperty('casset')) { + obj['casset'] = ApiClient.convertToType(data['casset'], 'String'); } - if (data.hasOwnProperty('rule')) { - obj['rule'] = AnalyticsRule.constructFromObject(data['rule']); + if (data.hasOwnProperty('namespace')) { + obj['namespace'] = ApiClient.convertToType(data['namespace'], 'String'); } if (data.hasOwnProperty('zkproof')) { obj['zkproof'] = ApiClient.convertToType(data['zkproof'], 'String'); @@ -73,14 +73,15 @@ } /** - * Thecommitment to both the Asset Type and amount of the issued Note - * @member {String} input_cv + * The commitment to both the Asset Type and amount of the issued Note + * @member {String} casset */ - exports.prototype['input_cv'] = undefined; + exports.prototype['casset'] = undefined; /** - * @member {module:model/AnalyticsRule} rule + * A `Namespace` describes what Asset IDs can be issued in an Issuance Rule. It is a string in the same format as `AssetId`. Additionally, if it ends with a wildcard character `*`, then the namespace covers all asset IDs with the namespace as a prefix. Without a final wildcard, the namespace covers exactly one asset ID. Example: The namespace `currencies.dollar` covers only this exact asset type, while `currencies.*` covers all asset types that start with `currencies.`. + * @member {String} namespace */ - exports.prototype['rule'] = undefined; + exports.prototype['namespace'] = undefined; /** * The Proof that the issued Asset Type indeed matches the reported Rule * @member {String} zkproof diff --git a/js/sdk/src/model/AnalyticsIssueTx.js b/js/sdk/src/model/AnalyticsIssueTx.js index ad884b3..6fdd785 100644 --- a/js/sdk/src/model/AnalyticsIssueTx.js +++ b/js/sdk/src/model/AnalyticsIssueTx.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The AnalyticsIssueTx model module. * @module model/AnalyticsIssueTx - * @version 1.5.0 + * @version 1.6.0 */ /** diff --git a/js/sdk/src/model/AnalyticsMultiTransferTx.js b/js/sdk/src/model/AnalyticsMultiTransferTx.js index fda7073..22b577a 100644 --- a/js/sdk/src/model/AnalyticsMultiTransferTx.js +++ b/js/sdk/src/model/AnalyticsMultiTransferTx.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The AnalyticsMultiTransferTx model module. * @module model/AnalyticsMultiTransferTx - * @version 1.5.0 + * @version 1.6.0 */ /** diff --git a/js/sdk/src/model/AnalyticsOutput.js b/js/sdk/src/model/AnalyticsOutput.js index a5f0c92..e82ec1e 100644 --- a/js/sdk/src/model/AnalyticsOutput.js +++ b/js/sdk/src/model/AnalyticsOutput.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The AnalyticsOutput model module. * @module model/AnalyticsOutput - * @version 1.5.0 + * @version 1.6.0 */ /** diff --git a/js/sdk/src/model/AnalyticsOutputDescription.js b/js/sdk/src/model/AnalyticsOutputDescription.js index 07fd2bf..b2b5e3e 100644 --- a/js/sdk/src/model/AnalyticsOutputDescription.js +++ b/js/sdk/src/model/AnalyticsOutputDescription.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The AnalyticsOutputDescription model module. * @module model/AnalyticsOutputDescription - * @version 1.5.0 + * @version 1.6.0 */ /** diff --git a/js/sdk/src/model/AnalyticsPublicIssuanceDescription.js b/js/sdk/src/model/AnalyticsPublicIssuanceDescription.js index 80986d8..54246e7 100644 --- a/js/sdk/src/model/AnalyticsPublicIssuanceDescription.js +++ b/js/sdk/src/model/AnalyticsPublicIssuanceDescription.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The AnalyticsPublicIssuanceDescription model module. * @module model/AnalyticsPublicIssuanceDescription - * @version 1.5.0 + * @version 1.6.0 */ /** @@ -43,7 +43,7 @@ * Describes what Asset Type and amount were issued; null if the Issuance was confidential * @alias module:model/AnalyticsPublicIssuanceDescription * @class - * @param assetId {Number} The ID of the Asset Type issued + * @param assetId {String} The ID of an Asset Type. It must be a string of length 0 to 40 characters. Allowed characters are lower- and uppercase letters, digits, dot (.), and hyphen (-). It must not end with an hyphen. Asset IDs are case-sensitive. * @param amount {Number} The amount of Assets issued */ var exports = function(assetId, amount) { @@ -64,7 +64,7 @@ if (data) { obj = obj || new exports(); if (data.hasOwnProperty('asset_id')) { - obj['asset_id'] = ApiClient.convertToType(data['asset_id'], 'Number'); + obj['asset_id'] = ApiClient.convertToType(data['asset_id'], 'String'); } if (data.hasOwnProperty('amount')) { obj['amount'] = ApiClient.convertToType(data['amount'], 'Number'); @@ -74,8 +74,8 @@ } /** - * The ID of the Asset Type issued - * @member {Number} asset_id + * The ID of an Asset Type. It must be a string of length 0 to 40 characters. Allowed characters are lower- and uppercase letters, digits, dot (.), and hyphen (-). It must not end with an hyphen. Asset IDs are case-sensitive. + * @member {String} asset_id */ exports.prototype['asset_id'] = undefined; /** diff --git a/js/sdk/src/model/AnalyticsRule.js b/js/sdk/src/model/AnalyticsRule.js index 517bed7..dd758ce 100644 --- a/js/sdk/src/model/AnalyticsRule.js +++ b/js/sdk/src/model/AnalyticsRule.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The AnalyticsRule model module. * @module model/AnalyticsRule - * @version 1.5.0 + * @version 1.6.0 */ /** @@ -43,14 +43,12 @@ * The Rule used in the Issuance * @alias module:model/AnalyticsRule * @class - * @param minId {Number} The lower Asset ID in the range of IDs the Rule grants issuance rights for (range is inclusive) - * @param maxId {Number} The upper Asset ID in the range of IDs the Rule grants issuance rights for (range is inclusive) + * @param namespace {String} A `Namespace` describes what Asset IDs can be issued in an Issuance Rule. It is a string in the same format as `AssetId`. Additionally, if it ends with a wildcard character `*`, then the namespace covers all asset IDs with the namespace as a prefix. Without a final wildcard, the namespace covers exactly one asset ID. Example: The namespace `currencies.dollar` covers only this exact asset type, while `currencies.*` covers all asset types that start with `currencies.`. */ - var exports = function(minId, maxId) { + var exports = function(namespace) { var _this = this; - _this['min_id'] = minId; - _this['max_id'] = maxId; + _this['namespace'] = namespace; }; /** @@ -63,26 +61,18 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - if (data.hasOwnProperty('min_id')) { - obj['min_id'] = ApiClient.convertToType(data['min_id'], 'Number'); - } - if (data.hasOwnProperty('max_id')) { - obj['max_id'] = ApiClient.convertToType(data['max_id'], 'Number'); + if (data.hasOwnProperty('namespace')) { + obj['namespace'] = ApiClient.convertToType(data['namespace'], 'String'); } } return obj; } /** - * The lower Asset ID in the range of IDs the Rule grants issuance rights for (range is inclusive) - * @member {Number} min_id - */ - exports.prototype['min_id'] = undefined; - /** - * The upper Asset ID in the range of IDs the Rule grants issuance rights for (range is inclusive) - * @member {Number} max_id + * A `Namespace` describes what Asset IDs can be issued in an Issuance Rule. It is a string in the same format as `AssetId`. Additionally, if it ends with a wildcard character `*`, then the namespace covers all asset IDs with the namespace as a prefix. Without a final wildcard, the namespace covers exactly one asset ID. Example: The namespace `currencies.dollar` covers only this exact asset type, while `currencies.*` covers all asset types that start with `currencies.`. + * @member {String} namespace */ - exports.prototype['max_id'] = undefined; + exports.prototype['namespace'] = undefined; diff --git a/js/sdk/src/model/AnalyticsRuleDefinition.js b/js/sdk/src/model/AnalyticsRuleDefinition.js index 7e058e0..3a92878 100644 --- a/js/sdk/src/model/AnalyticsRuleDefinition.js +++ b/js/sdk/src/model/AnalyticsRuleDefinition.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The AnalyticsRuleDefinition model module. * @module model/AnalyticsRuleDefinition - * @version 1.5.0 + * @version 1.6.0 */ /** @@ -64,11 +64,8 @@ if (data.hasOwnProperty('is_admin')) { obj['is_admin'] = ApiClient.convertToType(data['is_admin'], 'Boolean'); } - if (data.hasOwnProperty('can_issue_asset_id_first')) { - obj['can_issue_asset_id_first'] = ApiClient.convertToType(data['can_issue_asset_id_first'], 'Number'); - } - if (data.hasOwnProperty('can_issue_asset_id_last')) { - obj['can_issue_asset_id_last'] = ApiClient.convertToType(data['can_issue_asset_id_last'], 'Number'); + if (data.hasOwnProperty('namespace')) { + obj['namespace'] = ApiClient.convertToType(data['namespace'], 'String'); } if (data.hasOwnProperty('can_issue_confidentially')) { obj['can_issue_confidentially'] = ApiClient.convertToType(data['can_issue_confidentially'], 'Boolean'); @@ -88,15 +85,10 @@ */ exports.prototype['is_admin'] = undefined; /** - * The lower Asset ID in the range of IDs the Rule grants issuance rights for (range is inclusive) - * @member {Number} can_issue_asset_id_first - */ - exports.prototype['can_issue_asset_id_first'] = undefined; - /** - * The upper Asset ID in the range of IDs the Rule grants issuance rights for (range is inclusive) - * @member {Number} can_issue_asset_id_last + * A `Namespace` describes what Asset IDs can be issued in an Issuance Rule. It is a string in the same format as `AssetId`. Additionally, if it ends with a wildcard character `*`, then the namespace covers all asset IDs with the namespace as a prefix. Without a final wildcard, the namespace covers exactly one asset ID. Example: The namespace `currencies.dollar` covers only this exact asset type, while `currencies.*` covers all asset types that start with `currencies.`. + * @member {String} namespace */ - exports.prototype['can_issue_asset_id_last'] = undefined; + exports.prototype['namespace'] = undefined; /** * Boolean signifying whether the Rule grants confidentialy issuance rights; if true, then both public and confidential issuance right are granted; if false, then only public issuance rights are granted * @member {Boolean} can_issue_confidentially diff --git a/js/sdk/src/model/AnalyticsRuleTx.js b/js/sdk/src/model/AnalyticsRuleTx.js index eba76a5..1cdffbb 100644 --- a/js/sdk/src/model/AnalyticsRuleTx.js +++ b/js/sdk/src/model/AnalyticsRuleTx.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The AnalyticsRuleTx model module. * @module model/AnalyticsRuleTx - * @version 1.5.0 + * @version 1.6.0 */ /** diff --git a/js/sdk/src/model/AnalyticsRuleWalletDefinition.js b/js/sdk/src/model/AnalyticsRuleWalletDefinition.js index 67bc257..7e34d1e 100644 --- a/js/sdk/src/model/AnalyticsRuleWalletDefinition.js +++ b/js/sdk/src/model/AnalyticsRuleWalletDefinition.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The AnalyticsRuleWalletDefinition model module. * @module model/AnalyticsRuleWalletDefinition - * @version 1.5.0 + * @version 1.6.0 */ /** @@ -64,11 +64,8 @@ if (data.hasOwnProperty('is_admin')) { obj['is_admin'] = ApiClient.convertToType(data['is_admin'], 'Boolean'); } - if (data.hasOwnProperty('can_issue_asset_id_first')) { - obj['can_issue_asset_id_first'] = ApiClient.convertToType(data['can_issue_asset_id_first'], 'Number'); - } - if (data.hasOwnProperty('can_issue_asset_id_last')) { - obj['can_issue_asset_id_last'] = ApiClient.convertToType(data['can_issue_asset_id_last'], 'Number'); + if (data.hasOwnProperty('namespace')) { + obj['namespace'] = ApiClient.convertToType(data['namespace'], 'String'); } if (data.hasOwnProperty('can_issue_confidentially')) { obj['can_issue_confidentially'] = ApiClient.convertToType(data['can_issue_confidentially'], 'Boolean'); @@ -91,15 +88,10 @@ */ exports.prototype['is_admin'] = undefined; /** - * The lower Asset ID in the range of IDs the Rule grants issuance rights for (range is inclusive) - * @member {Number} can_issue_asset_id_first - */ - exports.prototype['can_issue_asset_id_first'] = undefined; - /** - * The upper Asset ID in the range of IDs the Rule grants issuance rights for (range is inclusive) - * @member {Number} can_issue_asset_id_last + * A `Namespace` describes what Asset IDs can be issued in an Issuance Rule. It is a string in the same format as `AssetId`. Additionally, if it ends with a wildcard character `*`, then the namespace covers all asset IDs with the namespace as a prefix. Without a final wildcard, the namespace covers exactly one asset ID. Example: The namespace `currencies.dollar` covers only this exact asset type, while `currencies.*` covers all asset types that start with `currencies.`. + * @member {String} namespace */ - exports.prototype['can_issue_asset_id_last'] = undefined; + exports.prototype['namespace'] = undefined; /** * Boolean signifying whether the Rule grants confidentialy issuance rights; if true, then both public and confidential issuance right are granted; if false, then only public issuance rights are granted * @member {Boolean} can_issue_confidentially diff --git a/js/sdk/src/model/AnalyticsSpendDescription.js b/js/sdk/src/model/AnalyticsSpendDescription.js index 4252261..9a565e2 100644 --- a/js/sdk/src/model/AnalyticsSpendDescription.js +++ b/js/sdk/src/model/AnalyticsSpendDescription.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The AnalyticsSpendDescription model module. * @module model/AnalyticsSpendDescription - * @version 1.5.0 + * @version 1.6.0 */ /** diff --git a/js/sdk/src/model/AnalyticsTransferTx.js b/js/sdk/src/model/AnalyticsTransferTx.js index 321c8f4..3926ac2 100644 --- a/js/sdk/src/model/AnalyticsTransferTx.js +++ b/js/sdk/src/model/AnalyticsTransferTx.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,18 +16,18 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/AnalyticsAssetConverterProofDescription', 'model/AnalyticsOutputDescription', 'model/AnalyticsSpendDescription'], factory); + define(['ApiClient', 'model/AnalyticsOutputDescription', 'model/AnalyticsSpendDescription'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./AnalyticsAssetConverterProofDescription'), require('./AnalyticsOutputDescription'), require('./AnalyticsSpendDescription')); + module.exports = factory(require('../ApiClient'), require('./AnalyticsOutputDescription'), require('./AnalyticsSpendDescription')); } else { // Browser globals (root is window) if (!root.QedItAssetTransfers) { root.QedItAssetTransfers = {}; } - root.QedItAssetTransfers.AnalyticsTransferTx = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.AnalyticsAssetConverterProofDescription, root.QedItAssetTransfers.AnalyticsOutputDescription, root.QedItAssetTransfers.AnalyticsSpendDescription); + root.QedItAssetTransfers.AnalyticsTransferTx = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.AnalyticsOutputDescription, root.QedItAssetTransfers.AnalyticsSpendDescription); } -}(this, function(ApiClient, AnalyticsAssetConverterProofDescription, AnalyticsOutputDescription, AnalyticsSpendDescription) { +}(this, function(ApiClient, AnalyticsOutputDescription, AnalyticsSpendDescription) { 'use strict'; @@ -35,7 +35,7 @@ /** * The AnalyticsTransferTx model module. * @module model/AnalyticsTransferTx - * @version 1.5.0 + * @version 1.6.0 */ /** @@ -59,9 +59,6 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - if (data.hasOwnProperty('asset_converter_descriptions')) { - obj['asset_converter_descriptions'] = ApiClient.convertToType(data['asset_converter_descriptions'], [AnalyticsAssetConverterProofDescription]); - } if (data.hasOwnProperty('spends')) { obj['spends'] = ApiClient.convertToType(data['spends'], [AnalyticsSpendDescription]); } @@ -81,11 +78,6 @@ return obj; } - /** - * The Converter Proofs - * @member {Array.} asset_converter_descriptions - */ - exports.prototype['asset_converter_descriptions'] = undefined; /** * The information and Proofs associated with the Assets spent in the Transfer * @member {Array.} spends diff --git a/js/sdk/src/model/AnalyticsTxMetadata.js b/js/sdk/src/model/AnalyticsTxMetadata.js index 1934f66..4913ea3 100644 --- a/js/sdk/src/model/AnalyticsTxMetadata.js +++ b/js/sdk/src/model/AnalyticsTxMetadata.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The AnalyticsTxMetadata model module. * @module model/AnalyticsTxMetadata - * @version 1.5.0 + * @version 1.6.0 */ /** diff --git a/js/sdk/src/model/AnalyticsTxType.js b/js/sdk/src/model/AnalyticsTxType.js index 51dba41..7c1e840 100644 --- a/js/sdk/src/model/AnalyticsTxType.js +++ b/js/sdk/src/model/AnalyticsTxType.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/src/model/AsyncTaskCreatedResponse.js b/js/sdk/src/model/AsyncTaskCreatedResponse.js index 477d278..4433e89 100644 --- a/js/sdk/src/model/AsyncTaskCreatedResponse.js +++ b/js/sdk/src/model/AsyncTaskCreatedResponse.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The AsyncTaskCreatedResponse model module. * @module model/AsyncTaskCreatedResponse - * @version 1.5.0 + * @version 1.6.0 */ /** diff --git a/js/sdk/src/model/BalanceForAsset.js b/js/sdk/src/model/BalanceForAsset.js index 452a3d6..2dc6142 100644 --- a/js/sdk/src/model/BalanceForAsset.js +++ b/js/sdk/src/model/BalanceForAsset.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,14 +35,14 @@ /** * The BalanceForAsset model module. * @module model/BalanceForAsset - * @version 1.5.0 + * @version 1.6.0 */ /** * Constructs a new BalanceForAsset. * @alias module:model/BalanceForAsset * @class - * @param assetId {Number} The ID of the Asset Type + * @param assetId {String} The ID of an Asset Type. It must be a string of length 0 to 40 characters. Allowed characters are lower- and uppercase letters, digits, dot (.), and hyphen (-). It must not end with an hyphen. Asset IDs are case-sensitive. * @param amount {Number} The outstanding balance for the Asset Type */ var exports = function(assetId, amount) { @@ -63,7 +63,7 @@ if (data) { obj = obj || new exports(); if (data.hasOwnProperty('asset_id')) { - obj['asset_id'] = ApiClient.convertToType(data['asset_id'], 'Number'); + obj['asset_id'] = ApiClient.convertToType(data['asset_id'], 'String'); } if (data.hasOwnProperty('amount')) { obj['amount'] = ApiClient.convertToType(data['amount'], 'Number'); @@ -73,8 +73,8 @@ } /** - * The ID of the Asset Type - * @member {Number} asset_id + * The ID of an Asset Type. It must be a string of length 0 to 40 characters. Allowed characters are lower- and uppercase letters, digits, dot (.), and hyphen (-). It must not end with an hyphen. Asset IDs are case-sensitive. + * @member {String} asset_id */ exports.prototype['asset_id'] = undefined; /** diff --git a/js/sdk/src/model/CreateRuleRequest.js b/js/sdk/src/model/CreateRuleRequest.js index 35bb8b7..c11c6c5 100644 --- a/js/sdk/src/model/CreateRuleRequest.js +++ b/js/sdk/src/model/CreateRuleRequest.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The CreateRuleRequest model module. * @module model/CreateRuleRequest - * @version 1.5.0 + * @version 1.6.0 */ /** diff --git a/js/sdk/src/model/DeleteRuleRequest.js b/js/sdk/src/model/DeleteRuleRequest.js index bf4abfd..65c64e5 100644 --- a/js/sdk/src/model/DeleteRuleRequest.js +++ b/js/sdk/src/model/DeleteRuleRequest.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The DeleteRuleRequest model module. * @module model/DeleteRuleRequest - * @version 1.5.0 + * @version 1.6.0 */ /** diff --git a/js/sdk/src/model/DeleteWalletRequest.js b/js/sdk/src/model/DeleteWalletRequest.js index 07148a5..1b1f311 100644 --- a/js/sdk/src/model/DeleteWalletRequest.js +++ b/js/sdk/src/model/DeleteWalletRequest.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The DeleteWalletRequest model module. * @module model/DeleteWalletRequest - * @version 1.5.0 + * @version 1.6.0 */ /** diff --git a/js/sdk/src/model/ErrorResponse.js b/js/sdk/src/model/ErrorResponse.js index e8d0720..f25cb39 100644 --- a/js/sdk/src/model/ErrorResponse.js +++ b/js/sdk/src/model/ErrorResponse.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The ErrorResponse model module. * @module model/ErrorResponse - * @version 1.5.0 + * @version 1.6.0 */ /** diff --git a/js/sdk/src/model/ExportAuditorAccessWalletRequest.js b/js/sdk/src/model/ExportAuditorAccessWalletRequest.js index 66e0865..90e9e20 100644 --- a/js/sdk/src/model/ExportAuditorAccessWalletRequest.js +++ b/js/sdk/src/model/ExportAuditorAccessWalletRequest.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The ExportAuditorAccessWalletRequest model module. * @module model/ExportAuditorAccessWalletRequest - * @version 1.5.0 + * @version 1.6.0 */ /** diff --git a/js/sdk/src/model/ExportAuditorAccessWalletResponse.js b/js/sdk/src/model/ExportAuditorAccessWalletResponse.js index 5f4dd54..0d2f6c3 100644 --- a/js/sdk/src/model/ExportAuditorAccessWalletResponse.js +++ b/js/sdk/src/model/ExportAuditorAccessWalletResponse.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The ExportAuditorAccessWalletResponse model module. * @module model/ExportAuditorAccessWalletResponse - * @version 1.5.0 + * @version 1.6.0 */ /** diff --git a/js/sdk/src/model/ExportWalletRequest.js b/js/sdk/src/model/ExportWalletRequest.js index 96b8f87..a76444a 100644 --- a/js/sdk/src/model/ExportWalletRequest.js +++ b/js/sdk/src/model/ExportWalletRequest.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The ExportWalletRequest model module. * @module model/ExportWalletRequest - * @version 1.5.0 + * @version 1.6.0 */ /** diff --git a/js/sdk/src/model/ExportWalletResponse.js b/js/sdk/src/model/ExportWalletResponse.js index 8055aeb..4aba9d2 100644 --- a/js/sdk/src/model/ExportWalletResponse.js +++ b/js/sdk/src/model/ExportWalletResponse.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The ExportWalletResponse model module. * @module model/ExportWalletResponse - * @version 1.5.0 + * @version 1.6.0 */ /** diff --git a/js/sdk/src/model/GenerateWalletRequest.js b/js/sdk/src/model/GenerateWalletRequest.js index 9d98922..6efe1d1 100644 --- a/js/sdk/src/model/GenerateWalletRequest.js +++ b/js/sdk/src/model/GenerateWalletRequest.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The GenerateWalletRequest model module. * @module model/GenerateWalletRequest - * @version 1.5.0 + * @version 1.6.0 */ /** diff --git a/js/sdk/src/model/GetAllWalletsResponse.js b/js/sdk/src/model/GetAllWalletsResponse.js index d9cf9c9..2f646e2 100644 --- a/js/sdk/src/model/GetAllWalletsResponse.js +++ b/js/sdk/src/model/GetAllWalletsResponse.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The GetAllWalletsResponse model module. * @module model/GetAllWalletsResponse - * @version 1.5.0 + * @version 1.6.0 */ /** diff --git a/js/sdk/src/model/GetNetworkActivityRequest.js b/js/sdk/src/model/GetNetworkActivityRequest.js index 0609e2e..366e2c3 100644 --- a/js/sdk/src/model/GetNetworkActivityRequest.js +++ b/js/sdk/src/model/GetNetworkActivityRequest.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The GetNetworkActivityRequest model module. * @module model/GetNetworkActivityRequest - * @version 1.5.0 + * @version 1.6.0 */ /** diff --git a/js/sdk/src/model/GetNetworkActivityResponse.js b/js/sdk/src/model/GetNetworkActivityResponse.js index b12d7fb..4c9b2fd 100644 --- a/js/sdk/src/model/GetNetworkActivityResponse.js +++ b/js/sdk/src/model/GetNetworkActivityResponse.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The GetNetworkActivityResponse model module. * @module model/GetNetworkActivityResponse - * @version 1.5.0 + * @version 1.6.0 */ /** diff --git a/js/sdk/src/model/GetNewAddressRequest.js b/js/sdk/src/model/GetNewAddressRequest.js index 58d6241..63e4f3a 100644 --- a/js/sdk/src/model/GetNewAddressRequest.js +++ b/js/sdk/src/model/GetNewAddressRequest.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The GetNewAddressRequest model module. * @module model/GetNewAddressRequest - * @version 1.5.0 + * @version 1.6.0 */ /** diff --git a/js/sdk/src/model/GetNewAddressResponse.js b/js/sdk/src/model/GetNewAddressResponse.js index b086326..bfd0e98 100644 --- a/js/sdk/src/model/GetNewAddressResponse.js +++ b/js/sdk/src/model/GetNewAddressResponse.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The GetNewAddressResponse model module. * @module model/GetNewAddressResponse - * @version 1.5.0 + * @version 1.6.0 */ /** diff --git a/js/sdk/src/model/GetPublicKeyRequest.js b/js/sdk/src/model/GetPublicKeyRequest.js index e4d46ab..6cd7099 100644 --- a/js/sdk/src/model/GetPublicKeyRequest.js +++ b/js/sdk/src/model/GetPublicKeyRequest.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The GetPublicKeyRequest model module. * @module model/GetPublicKeyRequest - * @version 1.5.0 + * @version 1.6.0 */ /** diff --git a/js/sdk/src/model/GetPublicKeyResponse.js b/js/sdk/src/model/GetPublicKeyResponse.js index cf1c527..2517df7 100644 --- a/js/sdk/src/model/GetPublicKeyResponse.js +++ b/js/sdk/src/model/GetPublicKeyResponse.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The GetPublicKeyResponse model module. * @module model/GetPublicKeyResponse - * @version 1.5.0 + * @version 1.6.0 */ /** diff --git a/js/sdk/src/model/GetRulesResponse.js b/js/sdk/src/model/GetRulesResponse.js index a7b4065..57badac 100644 --- a/js/sdk/src/model/GetRulesResponse.js +++ b/js/sdk/src/model/GetRulesResponse.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The GetRulesResponse model module. * @module model/GetRulesResponse - * @version 1.5.0 + * @version 1.6.0 */ /** diff --git a/js/sdk/src/model/GetSyncStatusResponse.js b/js/sdk/src/model/GetSyncStatusResponse.js index 0c4c1f6..b433d7e 100644 --- a/js/sdk/src/model/GetSyncStatusResponse.js +++ b/js/sdk/src/model/GetSyncStatusResponse.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The GetSyncStatusResponse model module. * @module model/GetSyncStatusResponse - * @version 1.5.0 + * @version 1.6.0 */ /** diff --git a/js/sdk/src/model/GetTaskStatusRequest.js b/js/sdk/src/model/GetTaskStatusRequest.js index 976aa5e..4182543 100644 --- a/js/sdk/src/model/GetTaskStatusRequest.js +++ b/js/sdk/src/model/GetTaskStatusRequest.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The GetTaskStatusRequest model module. * @module model/GetTaskStatusRequest - * @version 1.5.0 + * @version 1.6.0 */ /** diff --git a/js/sdk/src/model/GetTaskStatusResponse.js b/js/sdk/src/model/GetTaskStatusResponse.js index 3b57408..58a529c 100644 --- a/js/sdk/src/model/GetTaskStatusResponse.js +++ b/js/sdk/src/model/GetTaskStatusResponse.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,18 +16,18 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/Result', 'model/TaskType'], factory); + define(['ApiClient', 'model/Result', 'model/TaskData', 'model/TaskState', 'model/TaskType'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./Result'), require('./TaskType')); + module.exports = factory(require('../ApiClient'), require('./Result'), require('./TaskData'), require('./TaskState'), require('./TaskType')); } else { // Browser globals (root is window) if (!root.QedItAssetTransfers) { root.QedItAssetTransfers = {}; } - root.QedItAssetTransfers.GetTaskStatusResponse = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.Result, root.QedItAssetTransfers.TaskType); + root.QedItAssetTransfers.GetTaskStatusResponse = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.Result, root.QedItAssetTransfers.TaskData, root.QedItAssetTransfers.TaskState, root.QedItAssetTransfers.TaskType); } -}(this, function(ApiClient, Result, TaskType) { +}(this, function(ApiClient, Result, TaskData, TaskState, TaskType) { 'use strict'; @@ -35,7 +35,7 @@ /** * The GetTaskStatusResponse model module. * @module model/GetTaskStatusResponse - * @version 1.5.0 + * @version 1.6.0 */ /** @@ -71,7 +71,7 @@ obj['result'] = Result.constructFromObject(data['result']); } if (data.hasOwnProperty('state')) { - obj['state'] = ApiClient.convertToType(data['state'], 'String'); + obj['state'] = TaskState.constructFromObject(data['state']); } if (data.hasOwnProperty('tx_hash')) { obj['tx_hash'] = ApiClient.convertToType(data['tx_hash'], 'String'); @@ -83,7 +83,7 @@ obj['type'] = TaskType.constructFromObject(data['type']); } if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], Object); + obj['data'] = TaskData.constructFromObject(data['data']); } if (data.hasOwnProperty('error')) { obj['error'] = ApiClient.convertToType(data['error'], 'String'); @@ -112,8 +112,7 @@ */ exports.prototype['result'] = undefined; /** - * More granular current state of the Task; list of supported states is not guaranteed to be stable - * @member {String} state + * @member {module:model/TaskState} state */ exports.prototype['state'] = undefined; /** @@ -131,8 +130,7 @@ */ exports.prototype['type'] = undefined; /** - * Container for the Transaction data; each Transaction type has different fields - * @member {Object} data + * @member {module:model/TaskData} data */ exports.prototype['data'] = undefined; /** diff --git a/js/sdk/src/model/GetTasksRequest.js b/js/sdk/src/model/GetTasksRequest.js index b6910d9..b4b7d7d 100644 --- a/js/sdk/src/model/GetTasksRequest.js +++ b/js/sdk/src/model/GetTasksRequest.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The GetTasksRequest model module. * @module model/GetTasksRequest - * @version 1.5.0 + * @version 1.6.0 */ /** diff --git a/js/sdk/src/model/GetTasksResponse.js b/js/sdk/src/model/GetTasksResponse.js index 58b3083..ff07d92 100644 --- a/js/sdk/src/model/GetTasksResponse.js +++ b/js/sdk/src/model/GetTasksResponse.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The GetTasksResponse model module. * @module model/GetTasksResponse - * @version 1.5.0 + * @version 1.6.0 */ /** diff --git a/js/sdk/src/model/GetWalletActivityRequest.js b/js/sdk/src/model/GetWalletActivityRequest.js index 353f248..62e99a7 100644 --- a/js/sdk/src/model/GetWalletActivityRequest.js +++ b/js/sdk/src/model/GetWalletActivityRequest.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The GetWalletActivityRequest model module. * @module model/GetWalletActivityRequest - * @version 1.5.0 + * @version 1.6.0 */ /** diff --git a/js/sdk/src/model/GetWalletActivityResponse.js b/js/sdk/src/model/GetWalletActivityResponse.js index 6b10286..780b154 100644 --- a/js/sdk/src/model/GetWalletActivityResponse.js +++ b/js/sdk/src/model/GetWalletActivityResponse.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The GetWalletActivityResponse model module. * @module model/GetWalletActivityResponse - * @version 1.5.0 + * @version 1.6.0 */ /** diff --git a/js/sdk/src/model/GetWalletBalanceRequest.js b/js/sdk/src/model/GetWalletBalanceRequest.js index f3313fa..abb4e31 100644 --- a/js/sdk/src/model/GetWalletBalanceRequest.js +++ b/js/sdk/src/model/GetWalletBalanceRequest.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The GetWalletBalanceRequest model module. * @module model/GetWalletBalanceRequest - * @version 1.5.0 + * @version 1.6.0 */ /** diff --git a/js/sdk/src/model/GetWalletBalanceResponse.js b/js/sdk/src/model/GetWalletBalanceResponse.js index 34f940c..9b003c2 100644 --- a/js/sdk/src/model/GetWalletBalanceResponse.js +++ b/js/sdk/src/model/GetWalletBalanceResponse.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The GetWalletBalanceResponse model module. * @module model/GetWalletBalanceResponse - * @version 1.5.0 + * @version 1.6.0 */ /** diff --git a/js/sdk/src/model/HealthcheckResponse.js b/js/sdk/src/model/HealthcheckResponse.js index de8a937..d654ff1 100644 --- a/js/sdk/src/model/HealthcheckResponse.js +++ b/js/sdk/src/model/HealthcheckResponse.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The HealthcheckResponse model module. * @module model/HealthcheckResponse - * @version 1.5.0 + * @version 1.6.0 */ /** diff --git a/js/sdk/src/model/HealthcheckResponseItem.js b/js/sdk/src/model/HealthcheckResponseItem.js index 876230e..7545826 100644 --- a/js/sdk/src/model/HealthcheckResponseItem.js +++ b/js/sdk/src/model/HealthcheckResponseItem.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The HealthcheckResponseItem model module. * @module model/HealthcheckResponseItem - * @version 1.5.0 + * @version 1.6.0 */ /** diff --git a/js/sdk/src/model/ImportAuditorAccessWalletRequest.js b/js/sdk/src/model/ImportAuditorAccessWalletRequest.js index 7ac69bf..fcff50f 100644 --- a/js/sdk/src/model/ImportAuditorAccessWalletRequest.js +++ b/js/sdk/src/model/ImportAuditorAccessWalletRequest.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The ImportAuditorAccessWalletRequest model module. * @module model/ImportAuditorAccessWalletRequest - * @version 1.5.0 + * @version 1.6.0 */ /** diff --git a/js/sdk/src/model/ImportWalletRequest.js b/js/sdk/src/model/ImportWalletRequest.js index 9d9a7a3..b0d838b 100644 --- a/js/sdk/src/model/ImportWalletRequest.js +++ b/js/sdk/src/model/ImportWalletRequest.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The ImportWalletRequest model module. * @module model/ImportWalletRequest - * @version 1.5.0 + * @version 1.6.0 */ /** diff --git a/js/sdk/src/model/IssueAssetRequest.js b/js/sdk/src/model/IssueAssetRequest.js index c0a7f68..77d2a57 100644 --- a/js/sdk/src/model/IssueAssetRequest.js +++ b/js/sdk/src/model/IssueAssetRequest.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The IssueAssetRequest model module. * @module model/IssueAssetRequest - * @version 1.5.0 + * @version 1.6.0 */ /** @@ -45,7 +45,7 @@ * @param walletId {String} The ID of the Wallet that has the required Issuance privileges * @param authorization {String} The authorization password for the Wallet that has the Issuance privileges * @param recipientAddress {String} The Address of the recipient of the issued Assets - * @param assetId {Number} The ID of the Asset Type to issue + * @param assetId {String} The ID of an Asset Type. It must be a string of length 0 to 40 characters. Allowed characters are lower- and uppercase letters, digits, dot (.), and hyphen (-). It must not end with an hyphen. Asset IDs are case-sensitive. * @param amount {Number} the amount of Assets to issue * @param confidential {Boolean} Boolean which should be true if the issuance should be confidential, and false of the Issuance should be public * @param memo {String} @@ -82,7 +82,7 @@ obj['recipient_address'] = ApiClient.convertToType(data['recipient_address'], 'String'); } if (data.hasOwnProperty('asset_id')) { - obj['asset_id'] = ApiClient.convertToType(data['asset_id'], 'Number'); + obj['asset_id'] = ApiClient.convertToType(data['asset_id'], 'String'); } if (data.hasOwnProperty('amount')) { obj['amount'] = ApiClient.convertToType(data['amount'], 'Number'); @@ -113,8 +113,8 @@ */ exports.prototype['recipient_address'] = undefined; /** - * The ID of the Asset Type to issue - * @member {Number} asset_id + * The ID of an Asset Type. It must be a string of length 0 to 40 characters. Allowed characters are lower- and uppercase letters, digits, dot (.), and hyphen (-). It must not end with an hyphen. Asset IDs are case-sensitive. + * @member {String} asset_id */ exports.prototype['asset_id'] = undefined; /** diff --git a/js/sdk/src/model/Result.js b/js/sdk/src/model/Result.js index 4f0edb2..db4b832 100644 --- a/js/sdk/src/model/Result.js +++ b/js/sdk/src/model/Result.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -47,6 +47,11 @@ * @const */ "in_progress": "in_progress", + /** + * value: "awaiting_user_interaction" + * @const + */ + "awaiting_user_interaction": "awaiting_user_interaction", /** * value: "success" * @const diff --git a/js/sdk/src/model/Rule.js b/js/sdk/src/model/Rule.js index 8e54e62..95d30d8 100644 --- a/js/sdk/src/model/Rule.js +++ b/js/sdk/src/model/Rule.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The Rule model module. * @module model/Rule - * @version 1.5.0 + * @version 1.6.0 */ /** @@ -44,17 +44,15 @@ * @class * @param publicKey {String} The public key of the Wallet that is being granted rights in this Rule * @param isAdmin {Boolean} Boolean signifying whether the Rule grants admin rights - * @param canIssueAssetIdFirst {Number} The lower Asset ID in the range of IDs the Rule grants issuance rights for (range is inclusive) - * @param canIssueAssetIdLast {Number} The upper Asset ID in the range of IDs the Rule grants issuance rights for (range is inclusive) + * @param namespace {String} A `Namespace` describes what Asset IDs can be issued in an Issuance Rule. It is a string in the same format as `AssetId`. Additionally, if it ends with a wildcard character `*`, then the namespace covers all asset IDs with the namespace as a prefix. Without a final wildcard, the namespace covers exactly one asset ID. Example: The namespace `currencies.dollar` covers only this exact asset type, while `currencies.*` covers all asset types that start with `currencies.`. * @param canIssueConfidentially {Boolean} Boolean signifying whether the Rule grants confidentialy issuance rights; if true, then both public and confidential issuance right are granted; if false, then only public issuance rights are granted */ - var exports = function(publicKey, isAdmin, canIssueAssetIdFirst, canIssueAssetIdLast, canIssueConfidentially) { + var exports = function(publicKey, isAdmin, namespace, canIssueConfidentially) { var _this = this; _this['public_key'] = publicKey; _this['is_admin'] = isAdmin; - _this['can_issue_asset_id_first'] = canIssueAssetIdFirst; - _this['can_issue_asset_id_last'] = canIssueAssetIdLast; + _this['namespace'] = namespace; _this['can_issue_confidentially'] = canIssueConfidentially; }; @@ -74,11 +72,8 @@ if (data.hasOwnProperty('is_admin')) { obj['is_admin'] = ApiClient.convertToType(data['is_admin'], 'Boolean'); } - if (data.hasOwnProperty('can_issue_asset_id_first')) { - obj['can_issue_asset_id_first'] = ApiClient.convertToType(data['can_issue_asset_id_first'], 'Number'); - } - if (data.hasOwnProperty('can_issue_asset_id_last')) { - obj['can_issue_asset_id_last'] = ApiClient.convertToType(data['can_issue_asset_id_last'], 'Number'); + if (data.hasOwnProperty('namespace')) { + obj['namespace'] = ApiClient.convertToType(data['namespace'], 'String'); } if (data.hasOwnProperty('can_issue_confidentially')) { obj['can_issue_confidentially'] = ApiClient.convertToType(data['can_issue_confidentially'], 'Boolean'); @@ -98,15 +93,10 @@ */ exports.prototype['is_admin'] = undefined; /** - * The lower Asset ID in the range of IDs the Rule grants issuance rights for (range is inclusive) - * @member {Number} can_issue_asset_id_first - */ - exports.prototype['can_issue_asset_id_first'] = undefined; - /** - * The upper Asset ID in the range of IDs the Rule grants issuance rights for (range is inclusive) - * @member {Number} can_issue_asset_id_last + * A `Namespace` describes what Asset IDs can be issued in an Issuance Rule. It is a string in the same format as `AssetId`. Additionally, if it ends with a wildcard character `*`, then the namespace covers all asset IDs with the namespace as a prefix. Without a final wildcard, the namespace covers exactly one asset ID. Example: The namespace `currencies.dollar` covers only this exact asset type, while `currencies.*` covers all asset types that start with `currencies.`. + * @member {String} namespace */ - exports.prototype['can_issue_asset_id_last'] = undefined; + exports.prototype['namespace'] = undefined; /** * Boolean signifying whether the Rule grants confidentialy issuance rights; if true, then both public and confidential issuance right are granted; if false, then only public issuance rights are granted * @member {Boolean} can_issue_confidentially diff --git a/js/sdk/src/model/TaskActionRequest.js b/js/sdk/src/model/TaskActionRequest.js new file mode 100644 index 0000000..b634b0c --- /dev/null +++ b/js/sdk/src/model/TaskActionRequest.js @@ -0,0 +1,90 @@ +/** + * QEDIT - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.6.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.TaskActionRequest = factory(root.QedItAssetTransfers.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + + /** + * The TaskActionRequest model module. + * @module model/TaskActionRequest + * @version 1.6.0 + */ + + /** + * Constructs a new TaskActionRequest. + * To approve or cancel a task, the user should include the task id and authorization of the wallet related to this task. + * @alias module:model/TaskActionRequest + * @class + * @param taskId {String} + * @param authorization {String} + */ + var exports = function(taskId, authorization) { + var _this = this; + + _this['task_id'] = taskId; + _this['authorization'] = authorization; + }; + + /** + * Constructs a TaskActionRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/TaskActionRequest} obj Optional instance to populate. + * @return {module:model/TaskActionRequest} The populated TaskActionRequest instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('task_id')) { + obj['task_id'] = ApiClient.convertToType(data['task_id'], 'String'); + } + if (data.hasOwnProperty('authorization')) { + obj['authorization'] = ApiClient.convertToType(data['authorization'], 'String'); + } + } + return obj; + } + + /** + * @member {String} task_id + */ + exports.prototype['task_id'] = undefined; + /** + * @member {String} authorization + */ + exports.prototype['authorization'] = undefined; + + + + return exports; +})); + + diff --git a/js/sdk/src/model/TaskData.js b/js/sdk/src/model/TaskData.js new file mode 100644 index 0000000..b86e54a --- /dev/null +++ b/js/sdk/src/model/TaskData.js @@ -0,0 +1,109 @@ +/** + * QEDIT - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.6.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.TaskData = factory(root.QedItAssetTransfers.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + + /** + * The TaskData model module. + * @module model/TaskData + * @version 1.6.0 + */ + + /** + * Constructs a new TaskData. + * an object that includes additional request details + * @alias module:model/TaskData + * @class + */ + var exports = function() { + var _this = this; + + }; + + /** + * Constructs a TaskData from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/TaskData} obj Optional instance to populate. + * @return {module:model/TaskData} The populated TaskData instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('require_confirmation_from')) { + obj['require_confirmation_from'] = ApiClient.convertToType(data['require_confirmation_from'], 'String'); + } + if (data.hasOwnProperty('recipient_address')) { + obj['recipient_address'] = ApiClient.convertToType(data['recipient_address'], 'String'); + } + if (data.hasOwnProperty('asset_id')) { + obj['asset_id'] = ApiClient.convertToType(data['asset_id'], 'String'); + } + if (data.hasOwnProperty('amount')) { + obj['amount'] = ApiClient.convertToType(data['amount'], 'Number'); + } + if (data.hasOwnProperty('wallet_id')) { + obj['wallet_id'] = ApiClient.convertToType(data['wallet_id'], 'String'); + } + } + return obj; + } + + /** + * The public key for the confirmation request receiver + * @member {String} require_confirmation_from + */ + exports.prototype['require_confirmation_from'] = undefined; + /** + * The address the request was sent to + * @member {String} recipient_address + */ + exports.prototype['recipient_address'] = undefined; + /** + * @member {String} asset_id + */ + exports.prototype['asset_id'] = undefined; + /** + * @member {Number} amount + */ + exports.prototype['amount'] = undefined; + /** + * @member {String} wallet_id + */ + exports.prototype['wallet_id'] = undefined; + + + + return exports; +})); + + diff --git a/js/sdk/src/model/TaskState.js b/js/sdk/src/model/TaskState.js new file mode 100644 index 0000000..6139a10 --- /dev/null +++ b/js/sdk/src/model/TaskState.js @@ -0,0 +1,103 @@ +/** + * QEDIT - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.6.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.TaskState = factory(root.QedItAssetTransfers.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + /** + * Enum class TaskState. + * @enum {} + * @readonly + */ + var exports = { + /** + * value: "pending_state" + * @const + */ + "pending_state": "pending_state", + /** + * value: "in_progress_state" + * @const + */ + "in_progress_state": "in_progress_state", + /** + * value: "tx_generated_state" + * @const + */ + "tx_generated_state": "tx_generated_state", + /** + * value: "conf_req_sent_state" + * @const + */ + "conf_req_sent_state": "conf_req_sent_state", + /** + * value: "conf_req_received_state" + * @const + */ + "conf_req_received_state": "conf_req_received_state", + /** + * value: "conf_req_canceled_by_sender_state" + * @const + */ + "conf_req_canceled_by_sender_state": "conf_req_canceled_by_sender_state", + /** + * value: "conf_req_canceled_by_receiver_state" + * @const + */ + "conf_req_canceled_by_receiver_state": "conf_req_canceled_by_receiver_state", + /** + * value: "tx_submitted_state" + * @const + */ + "tx_submitted_state": "tx_submitted_state", + /** + * value: "failure_state" + * @const + */ + "failure_state": "failure_state", + /** + * value: "success_state" + * @const + */ + "success_state": "success_state" }; + + /** + * Returns a TaskState enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/TaskState} The enum TaskState value. + */ + exports.constructFromObject = function(object) { + return object; + } + + return exports; +})); + + diff --git a/js/sdk/src/model/TaskType.js b/js/sdk/src/model/TaskType.js index 9071a97..cbd94e2 100644 --- a/js/sdk/src/model/TaskType.js +++ b/js/sdk/src/model/TaskType.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -66,7 +66,17 @@ * value: "delete_wallet" * @const */ - "delete_wallet": "delete_wallet" }; + "delete_wallet": "delete_wallet", + /** + * value: "outgoing_confirm_request" + * @const + */ + "outgoing_confirm_request": "outgoing_confirm_request", + /** + * value: "incoming_confirm_request" + * @const + */ + "incoming_confirm_request": "incoming_confirm_request" }; /** * Returns a TaskType enum value from a Javascript object name. diff --git a/js/sdk/src/model/TransferAssetRequest.js b/js/sdk/src/model/TransferAssetRequest.js index 18077a5..c0c0ea1 100644 --- a/js/sdk/src/model/TransferAssetRequest.js +++ b/js/sdk/src/model/TransferAssetRequest.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The TransferAssetRequest model module. * @module model/TransferAssetRequest - * @version 1.5.0 + * @version 1.6.0 */ /** @@ -45,7 +45,7 @@ * @param walletId {String} The ID of the Wallet to transfer from * @param authorization {String} The authorization password for the Wallet to transfer from * @param recipientAddress {String} The Address of the recipient of the funds - * @param assetId {Number} The ID for the Asset Type to transfer + * @param assetId {String} The ID of an Asset Type. It must be a string of length 0 to 40 characters. Allowed characters are lower- and uppercase letters, digits, dot (.), and hyphen (-). It must not end with an hyphen. Asset IDs are case-sensitive. * @param amount {Number} The amount of assets to transfer * @param memo {String} An app-customizable field to store additional private data relating to the transfer; the memo is shared between the sender and the receiver, but is not divulged to other parties */ @@ -80,7 +80,7 @@ obj['recipient_address'] = ApiClient.convertToType(data['recipient_address'], 'String'); } if (data.hasOwnProperty('asset_id')) { - obj['asset_id'] = ApiClient.convertToType(data['asset_id'], 'Number'); + obj['asset_id'] = ApiClient.convertToType(data['asset_id'], 'String'); } if (data.hasOwnProperty('amount')) { obj['amount'] = ApiClient.convertToType(data['amount'], 'Number'); @@ -88,6 +88,9 @@ if (data.hasOwnProperty('memo')) { obj['memo'] = ApiClient.convertToType(data['memo'], 'String'); } + if (data.hasOwnProperty('require_confirmation_from')) { + obj['require_confirmation_from'] = ApiClient.convertToType(data['require_confirmation_from'], 'String'); + } } return obj; } @@ -108,8 +111,8 @@ */ exports.prototype['recipient_address'] = undefined; /** - * The ID for the Asset Type to transfer - * @member {Number} asset_id + * The ID of an Asset Type. It must be a string of length 0 to 40 characters. Allowed characters are lower- and uppercase letters, digits, dot (.), and hyphen (-). It must not end with an hyphen. Asset IDs are case-sensitive. + * @member {String} asset_id */ exports.prototype['asset_id'] = undefined; /** @@ -122,6 +125,11 @@ * @member {String} memo */ exports.prototype['memo'] = undefined; + /** + * A user may request confirmation from the receiving party. If a public key of the approver is included in this optional field, the transaction will only become valid after the received signs it. The receiver will be able to decide whether to accept or reject the transfer by calling the /node/approve_task or the /node/reject_task respectively. + * @member {String} require_confirmation_from + */ + exports.prototype['require_confirmation_from'] = undefined; diff --git a/js/sdk/src/model/UnlockWalletRequest.js b/js/sdk/src/model/UnlockWalletRequest.js index 6b2c32d..486fc19 100644 --- a/js/sdk/src/model/UnlockWalletRequest.js +++ b/js/sdk/src/model/UnlockWalletRequest.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The UnlockWalletRequest model module. * @module model/UnlockWalletRequest - * @version 1.5.0 + * @version 1.6.0 */ /** diff --git a/js/sdk/test/api/AnalyticsApi.spec.js b/js/sdk/test/api/AnalyticsApi.spec.js index 16cad51..1b61a5d 100644 --- a/js/sdk/test/api/AnalyticsApi.spec.js +++ b/js/sdk/test/api/AnalyticsApi.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/api/HealthApi.spec.js b/js/sdk/test/api/HealthApi.spec.js index a7c6a90..e6e1864 100644 --- a/js/sdk/test/api/HealthApi.spec.js +++ b/js/sdk/test/api/HealthApi.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/api/NodeApi.spec.js b/js/sdk/test/api/NodeApi.spec.js index 0c34fd2..ee7a3f1 100644 --- a/js/sdk/test/api/NodeApi.spec.js +++ b/js/sdk/test/api/NodeApi.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -50,6 +50,26 @@ } describe('NodeApi', function() { + describe('nodeApproveTaskPost', function() { + it('should call nodeApproveTaskPost successfully', function(done) { + //uncomment below and update the code to test nodeApproveTaskPost + //instance.nodeApproveTaskPost(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('nodeCancelTaskPost', function() { + it('should call nodeCancelTaskPost successfully', function(done) { + //uncomment below and update the code to test nodeCancelTaskPost + //instance.nodeCancelTaskPost(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); describe('nodeDeleteWalletPost', function() { it('should call nodeDeleteWalletPost successfully', function(done) { //uncomment below and update the code to test nodeDeleteWalletPost diff --git a/js/sdk/test/api/WalletApi.spec.js b/js/sdk/test/api/WalletApi.spec.js index e104b17..08488ae 100644 --- a/js/sdk/test/api/WalletApi.spec.js +++ b/js/sdk/test/api/WalletApi.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/AnalyticIssueWalletTx.spec.js b/js/sdk/test/model/AnalyticIssueWalletTx.spec.js index 4b7f47b..35434b7 100644 --- a/js/sdk/test/model/AnalyticIssueWalletTx.spec.js +++ b/js/sdk/test/model/AnalyticIssueWalletTx.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/AnalyticRuleWalletTx.spec.js b/js/sdk/test/model/AnalyticRuleWalletTx.spec.js index 04a8b40..841af8d 100644 --- a/js/sdk/test/model/AnalyticRuleWalletTx.spec.js +++ b/js/sdk/test/model/AnalyticRuleWalletTx.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/AnalyticTransaction.spec.js b/js/sdk/test/model/AnalyticTransaction.spec.js index 38a7166..fccb50c 100644 --- a/js/sdk/test/model/AnalyticTransaction.spec.js +++ b/js/sdk/test/model/AnalyticTransaction.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/AnalyticTransferWalletTx.spec.js b/js/sdk/test/model/AnalyticTransferWalletTx.spec.js index 959ba32..8629f1f 100644 --- a/js/sdk/test/model/AnalyticTransferWalletTx.spec.js +++ b/js/sdk/test/model/AnalyticTransferWalletTx.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/AnalyticWalletMetadata.spec.js b/js/sdk/test/model/AnalyticWalletMetadata.spec.js index 68484ce..05a594d 100644 --- a/js/sdk/test/model/AnalyticWalletMetadata.spec.js +++ b/js/sdk/test/model/AnalyticWalletMetadata.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/AnalyticWalletTx.spec.js b/js/sdk/test/model/AnalyticWalletTx.spec.js index bb499f8..c542493 100644 --- a/js/sdk/test/model/AnalyticWalletTx.spec.js +++ b/js/sdk/test/model/AnalyticWalletTx.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/AnalyticsConfidentialIssuanceDescription.spec.js b/js/sdk/test/model/AnalyticsConfidentialIssuanceDescription.spec.js index 9b8e7a0..3a65b68 100644 --- a/js/sdk/test/model/AnalyticsConfidentialIssuanceDescription.spec.js +++ b/js/sdk/test/model/AnalyticsConfidentialIssuanceDescription.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -56,14 +56,14 @@ //expect(instance).to.be.a(QedItAssetTransfers.AnalyticsConfidentialIssuanceDescription); }); - it('should have the property inputCv (base name: "input_cv")', function() { - // uncomment below and update the code to test the property inputCv + it('should have the property casset (base name: "casset")', function() { + // uncomment below and update the code to test the property casset //var instance = new QedItAssetTransfers.AnalyticsConfidentialIssuanceDescription(); //expect(instance).to.be(); }); - it('should have the property rule (base name: "rule")', function() { - // uncomment below and update the code to test the property rule + it('should have the property namespace (base name: "namespace")', function() { + // uncomment below and update the code to test the property namespace //var instance = new QedItAssetTransfers.AnalyticsConfidentialIssuanceDescription(); //expect(instance).to.be(); }); diff --git a/js/sdk/test/model/AnalyticsIssueTx.spec.js b/js/sdk/test/model/AnalyticsIssueTx.spec.js index 5f8d812..957a4bc 100644 --- a/js/sdk/test/model/AnalyticsIssueTx.spec.js +++ b/js/sdk/test/model/AnalyticsIssueTx.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/AnalyticsMultiTransferTx.spec.js b/js/sdk/test/model/AnalyticsMultiTransferTx.spec.js index 838d8e9..a95ac92 100644 --- a/js/sdk/test/model/AnalyticsMultiTransferTx.spec.js +++ b/js/sdk/test/model/AnalyticsMultiTransferTx.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/AnalyticsOutput.spec.js b/js/sdk/test/model/AnalyticsOutput.spec.js index 24d5c5e..47d7d29 100644 --- a/js/sdk/test/model/AnalyticsOutput.spec.js +++ b/js/sdk/test/model/AnalyticsOutput.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/AnalyticsOutputDescription.spec.js b/js/sdk/test/model/AnalyticsOutputDescription.spec.js index 4f26b80..8b7f3a1 100644 --- a/js/sdk/test/model/AnalyticsOutputDescription.spec.js +++ b/js/sdk/test/model/AnalyticsOutputDescription.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/AnalyticsPublicIssuanceDescription.spec.js b/js/sdk/test/model/AnalyticsPublicIssuanceDescription.spec.js index f0ee090..c7119e8 100644 --- a/js/sdk/test/model/AnalyticsPublicIssuanceDescription.spec.js +++ b/js/sdk/test/model/AnalyticsPublicIssuanceDescription.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/AnalyticsRule.spec.js b/js/sdk/test/model/AnalyticsRule.spec.js index db7602a..a151c49 100644 --- a/js/sdk/test/model/AnalyticsRule.spec.js +++ b/js/sdk/test/model/AnalyticsRule.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -56,14 +56,8 @@ //expect(instance).to.be.a(QedItAssetTransfers.AnalyticsRule); }); - it('should have the property minId (base name: "min_id")', function() { - // uncomment below and update the code to test the property minId - //var instance = new QedItAssetTransfers.AnalyticsRule(); - //expect(instance).to.be(); - }); - - it('should have the property maxId (base name: "max_id")', function() { - // uncomment below and update the code to test the property maxId + it('should have the property namespace (base name: "namespace")', function() { + // uncomment below and update the code to test the property namespace //var instance = new QedItAssetTransfers.AnalyticsRule(); //expect(instance).to.be(); }); diff --git a/js/sdk/test/model/AnalyticsRuleDefinition.spec.js b/js/sdk/test/model/AnalyticsRuleDefinition.spec.js index 0f6bdab..28dd69a 100644 --- a/js/sdk/test/model/AnalyticsRuleDefinition.spec.js +++ b/js/sdk/test/model/AnalyticsRuleDefinition.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -68,14 +68,8 @@ //expect(instance).to.be(); }); - it('should have the property canIssueAssetIdFirst (base name: "can_issue_asset_id_first")', function() { - // uncomment below and update the code to test the property canIssueAssetIdFirst - //var instance = new QedItAssetTransfers.AnalyticsRuleDefinition(); - //expect(instance).to.be(); - }); - - it('should have the property canIssueAssetIdLast (base name: "can_issue_asset_id_last")', function() { - // uncomment below and update the code to test the property canIssueAssetIdLast + it('should have the property namespace (base name: "namespace")', function() { + // uncomment below and update the code to test the property namespace //var instance = new QedItAssetTransfers.AnalyticsRuleDefinition(); //expect(instance).to.be(); }); diff --git a/js/sdk/test/model/AnalyticsRuleTx.spec.js b/js/sdk/test/model/AnalyticsRuleTx.spec.js index 561bc10..b439340 100644 --- a/js/sdk/test/model/AnalyticsRuleTx.spec.js +++ b/js/sdk/test/model/AnalyticsRuleTx.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/AnalyticsRuleWalletDefinition.spec.js b/js/sdk/test/model/AnalyticsRuleWalletDefinition.spec.js index 2cddf23..dd13706 100644 --- a/js/sdk/test/model/AnalyticsRuleWalletDefinition.spec.js +++ b/js/sdk/test/model/AnalyticsRuleWalletDefinition.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -68,14 +68,8 @@ //expect(instance).to.be(); }); - it('should have the property canIssueAssetIdFirst (base name: "can_issue_asset_id_first")', function() { - // uncomment below and update the code to test the property canIssueAssetIdFirst - //var instance = new QedItAssetTransfers.AnalyticsRuleWalletDefinition(); - //expect(instance).to.be(); - }); - - it('should have the property canIssueAssetIdLast (base name: "can_issue_asset_id_last")', function() { - // uncomment below and update the code to test the property canIssueAssetIdLast + it('should have the property namespace (base name: "namespace")', function() { + // uncomment below and update the code to test the property namespace //var instance = new QedItAssetTransfers.AnalyticsRuleWalletDefinition(); //expect(instance).to.be(); }); diff --git a/js/sdk/test/model/AnalyticsSpendDescription.spec.js b/js/sdk/test/model/AnalyticsSpendDescription.spec.js index 17d67c1..14f63f0 100644 --- a/js/sdk/test/model/AnalyticsSpendDescription.spec.js +++ b/js/sdk/test/model/AnalyticsSpendDescription.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/AnalyticsTransferTx.spec.js b/js/sdk/test/model/AnalyticsTransferTx.spec.js index 1a5b399..e8da059 100644 --- a/js/sdk/test/model/AnalyticsTransferTx.spec.js +++ b/js/sdk/test/model/AnalyticsTransferTx.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -56,12 +56,6 @@ //expect(instance).to.be.a(QedItAssetTransfers.AnalyticsTransferTx); }); - it('should have the property assetConverterDescriptions (base name: "asset_converter_descriptions")', function() { - // uncomment below and update the code to test the property assetConverterDescriptions - //var instance = new QedItAssetTransfers.AnalyticsTransferTx(); - //expect(instance).to.be(); - }); - it('should have the property spends (base name: "spends")', function() { // uncomment below and update the code to test the property spends //var instance = new QedItAssetTransfers.AnalyticsTransferTx(); diff --git a/js/sdk/test/model/AnalyticsTxMetadata.spec.js b/js/sdk/test/model/AnalyticsTxMetadata.spec.js index 66715bf..aff2c41 100644 --- a/js/sdk/test/model/AnalyticsTxMetadata.spec.js +++ b/js/sdk/test/model/AnalyticsTxMetadata.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/AnalyticsTxType.spec.js b/js/sdk/test/model/AnalyticsTxType.spec.js index 8503800..a15f183 100644 --- a/js/sdk/test/model/AnalyticsTxType.spec.js +++ b/js/sdk/test/model/AnalyticsTxType.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/AsyncTaskCreatedResponse.spec.js b/js/sdk/test/model/AsyncTaskCreatedResponse.spec.js index fdcc8c9..e64b7ef 100644 --- a/js/sdk/test/model/AsyncTaskCreatedResponse.spec.js +++ b/js/sdk/test/model/AsyncTaskCreatedResponse.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/BalanceForAsset.spec.js b/js/sdk/test/model/BalanceForAsset.spec.js index 833fcbe..02e8c40 100644 --- a/js/sdk/test/model/BalanceForAsset.spec.js +++ b/js/sdk/test/model/BalanceForAsset.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/CreateRuleRequest.spec.js b/js/sdk/test/model/CreateRuleRequest.spec.js index 91ffe50..b3c4e84 100644 --- a/js/sdk/test/model/CreateRuleRequest.spec.js +++ b/js/sdk/test/model/CreateRuleRequest.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/DeleteRuleRequest.spec.js b/js/sdk/test/model/DeleteRuleRequest.spec.js index 16a99a6..7e582b1 100644 --- a/js/sdk/test/model/DeleteRuleRequest.spec.js +++ b/js/sdk/test/model/DeleteRuleRequest.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/DeleteWalletRequest.spec.js b/js/sdk/test/model/DeleteWalletRequest.spec.js index af015ec..6804f0b 100644 --- a/js/sdk/test/model/DeleteWalletRequest.spec.js +++ b/js/sdk/test/model/DeleteWalletRequest.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/ErrorResponse.spec.js b/js/sdk/test/model/ErrorResponse.spec.js index 7dc2e38..74714f8 100644 --- a/js/sdk/test/model/ErrorResponse.spec.js +++ b/js/sdk/test/model/ErrorResponse.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/ExportAuditorAccessWalletRequest.spec.js b/js/sdk/test/model/ExportAuditorAccessWalletRequest.spec.js index 0cd6692..0412c23 100644 --- a/js/sdk/test/model/ExportAuditorAccessWalletRequest.spec.js +++ b/js/sdk/test/model/ExportAuditorAccessWalletRequest.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/ExportAuditorAccessWalletResponse.spec.js b/js/sdk/test/model/ExportAuditorAccessWalletResponse.spec.js index 24b324c..d5f4c66 100644 --- a/js/sdk/test/model/ExportAuditorAccessWalletResponse.spec.js +++ b/js/sdk/test/model/ExportAuditorAccessWalletResponse.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/ExportWalletRequest.spec.js b/js/sdk/test/model/ExportWalletRequest.spec.js index 70514f3..23193ff 100644 --- a/js/sdk/test/model/ExportWalletRequest.spec.js +++ b/js/sdk/test/model/ExportWalletRequest.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/ExportWalletResponse.spec.js b/js/sdk/test/model/ExportWalletResponse.spec.js index ea80d8e..d574500 100644 --- a/js/sdk/test/model/ExportWalletResponse.spec.js +++ b/js/sdk/test/model/ExportWalletResponse.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/GenerateWalletRequest.spec.js b/js/sdk/test/model/GenerateWalletRequest.spec.js index d4b240e..194b08a 100644 --- a/js/sdk/test/model/GenerateWalletRequest.spec.js +++ b/js/sdk/test/model/GenerateWalletRequest.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/GetAllWalletsResponse.spec.js b/js/sdk/test/model/GetAllWalletsResponse.spec.js index d0fe3a3..a7afc8e 100644 --- a/js/sdk/test/model/GetAllWalletsResponse.spec.js +++ b/js/sdk/test/model/GetAllWalletsResponse.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/GetNetworkActivityRequest.spec.js b/js/sdk/test/model/GetNetworkActivityRequest.spec.js index f809d1c..fe65a2c 100644 --- a/js/sdk/test/model/GetNetworkActivityRequest.spec.js +++ b/js/sdk/test/model/GetNetworkActivityRequest.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/GetNetworkActivityResponse.spec.js b/js/sdk/test/model/GetNetworkActivityResponse.spec.js index a7cf0aa..8210dd7 100644 --- a/js/sdk/test/model/GetNetworkActivityResponse.spec.js +++ b/js/sdk/test/model/GetNetworkActivityResponse.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/GetNewAddressRequest.spec.js b/js/sdk/test/model/GetNewAddressRequest.spec.js index f99d28a..c9989f9 100644 --- a/js/sdk/test/model/GetNewAddressRequest.spec.js +++ b/js/sdk/test/model/GetNewAddressRequest.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/GetNewAddressResponse.spec.js b/js/sdk/test/model/GetNewAddressResponse.spec.js index 35dce79..45dfbf0 100644 --- a/js/sdk/test/model/GetNewAddressResponse.spec.js +++ b/js/sdk/test/model/GetNewAddressResponse.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/GetPublicKeyRequest.spec.js b/js/sdk/test/model/GetPublicKeyRequest.spec.js index c703323..322589e 100644 --- a/js/sdk/test/model/GetPublicKeyRequest.spec.js +++ b/js/sdk/test/model/GetPublicKeyRequest.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/GetPublicKeyResponse.spec.js b/js/sdk/test/model/GetPublicKeyResponse.spec.js index 944b0ac..527595e 100644 --- a/js/sdk/test/model/GetPublicKeyResponse.spec.js +++ b/js/sdk/test/model/GetPublicKeyResponse.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/GetRulesResponse.spec.js b/js/sdk/test/model/GetRulesResponse.spec.js index 5d24c46..fc86786 100644 --- a/js/sdk/test/model/GetRulesResponse.spec.js +++ b/js/sdk/test/model/GetRulesResponse.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/GetSyncStatusResponse.spec.js b/js/sdk/test/model/GetSyncStatusResponse.spec.js index 978be4a..dba7a5a 100644 --- a/js/sdk/test/model/GetSyncStatusResponse.spec.js +++ b/js/sdk/test/model/GetSyncStatusResponse.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/GetTaskStatusRequest.spec.js b/js/sdk/test/model/GetTaskStatusRequest.spec.js index 992f00a..cae626c 100644 --- a/js/sdk/test/model/GetTaskStatusRequest.spec.js +++ b/js/sdk/test/model/GetTaskStatusRequest.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/GetTaskStatusResponse.spec.js b/js/sdk/test/model/GetTaskStatusResponse.spec.js index 60a9fe0..ee2a7d9 100644 --- a/js/sdk/test/model/GetTaskStatusResponse.spec.js +++ b/js/sdk/test/model/GetTaskStatusResponse.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/GetTasksRequest.spec.js b/js/sdk/test/model/GetTasksRequest.spec.js index 7258de0..da53e30 100644 --- a/js/sdk/test/model/GetTasksRequest.spec.js +++ b/js/sdk/test/model/GetTasksRequest.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/GetTasksResponse.spec.js b/js/sdk/test/model/GetTasksResponse.spec.js index cad20a7..a9d15fe 100644 --- a/js/sdk/test/model/GetTasksResponse.spec.js +++ b/js/sdk/test/model/GetTasksResponse.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/GetWalletActivityRequest.spec.js b/js/sdk/test/model/GetWalletActivityRequest.spec.js index d7f9359..a1eebed 100644 --- a/js/sdk/test/model/GetWalletActivityRequest.spec.js +++ b/js/sdk/test/model/GetWalletActivityRequest.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/GetWalletActivityResponse.spec.js b/js/sdk/test/model/GetWalletActivityResponse.spec.js index abfd05f..6029fb4 100644 --- a/js/sdk/test/model/GetWalletActivityResponse.spec.js +++ b/js/sdk/test/model/GetWalletActivityResponse.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/GetWalletBalanceRequest.spec.js b/js/sdk/test/model/GetWalletBalanceRequest.spec.js index 09775f9..a6612a0 100644 --- a/js/sdk/test/model/GetWalletBalanceRequest.spec.js +++ b/js/sdk/test/model/GetWalletBalanceRequest.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/GetWalletBalanceResponse.spec.js b/js/sdk/test/model/GetWalletBalanceResponse.spec.js index 80389d0..c2c8ebd 100644 --- a/js/sdk/test/model/GetWalletBalanceResponse.spec.js +++ b/js/sdk/test/model/GetWalletBalanceResponse.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/HealthcheckResponse.spec.js b/js/sdk/test/model/HealthcheckResponse.spec.js index 30fd182..e86fe24 100644 --- a/js/sdk/test/model/HealthcheckResponse.spec.js +++ b/js/sdk/test/model/HealthcheckResponse.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/HealthcheckResponseItem.spec.js b/js/sdk/test/model/HealthcheckResponseItem.spec.js index 46b9f55..0bcaf7f 100644 --- a/js/sdk/test/model/HealthcheckResponseItem.spec.js +++ b/js/sdk/test/model/HealthcheckResponseItem.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/ImportAuditorAccessWalletRequest.spec.js b/js/sdk/test/model/ImportAuditorAccessWalletRequest.spec.js index 3da03c1..440def7 100644 --- a/js/sdk/test/model/ImportAuditorAccessWalletRequest.spec.js +++ b/js/sdk/test/model/ImportAuditorAccessWalletRequest.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/ImportWalletRequest.spec.js b/js/sdk/test/model/ImportWalletRequest.spec.js index 67a1511..644a44f 100644 --- a/js/sdk/test/model/ImportWalletRequest.spec.js +++ b/js/sdk/test/model/ImportWalletRequest.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/IssueAssetRequest.spec.js b/js/sdk/test/model/IssueAssetRequest.spec.js index cfcdc57..3028159 100644 --- a/js/sdk/test/model/IssueAssetRequest.spec.js +++ b/js/sdk/test/model/IssueAssetRequest.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/Result.spec.js b/js/sdk/test/model/Result.spec.js index 232d882..2fefa13 100644 --- a/js/sdk/test/model/Result.spec.js +++ b/js/sdk/test/model/Result.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/Rule.spec.js b/js/sdk/test/model/Rule.spec.js index ff61a44..05d822d 100644 --- a/js/sdk/test/model/Rule.spec.js +++ b/js/sdk/test/model/Rule.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -68,14 +68,8 @@ //expect(instance).to.be(); }); - it('should have the property canIssueAssetIdFirst (base name: "can_issue_asset_id_first")', function() { - // uncomment below and update the code to test the property canIssueAssetIdFirst - //var instance = new QedItAssetTransfers.Rule(); - //expect(instance).to.be(); - }); - - it('should have the property canIssueAssetIdLast (base name: "can_issue_asset_id_last")', function() { - // uncomment below and update the code to test the property canIssueAssetIdLast + it('should have the property namespace (base name: "namespace")', function() { + // uncomment below and update the code to test the property namespace //var instance = new QedItAssetTransfers.Rule(); //expect(instance).to.be(); }); diff --git a/js/sdk/test/model/TaskActionRequest.spec.js b/js/sdk/test/model/TaskActionRequest.spec.js new file mode 100644 index 0000000..57ea29f --- /dev/null +++ b/js/sdk/test/model/TaskActionRequest.spec.js @@ -0,0 +1,73 @@ +/** + * QEDIT - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.6.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.TaskActionRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('TaskActionRequest', function() { + it('should create an instance of TaskActionRequest', function() { + // uncomment below and update the code to test TaskActionRequest + //var instance = new QedItAssetTransfers.TaskActionRequest(); + //expect(instance).to.be.a(QedItAssetTransfers.TaskActionRequest); + }); + + it('should have the property taskId (base name: "task_id")', function() { + // uncomment below and update the code to test the property taskId + //var instance = new QedItAssetTransfers.TaskActionRequest(); + //expect(instance).to.be(); + }); + + it('should have the property authorization (base name: "authorization")', function() { + // uncomment below and update the code to test the property authorization + //var instance = new QedItAssetTransfers.TaskActionRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/js/sdk/test/model/TaskData.spec.js b/js/sdk/test/model/TaskData.spec.js new file mode 100644 index 0000000..90b294f --- /dev/null +++ b/js/sdk/test/model/TaskData.spec.js @@ -0,0 +1,91 @@ +/** + * QEDIT - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.6.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.TaskData(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('TaskData', function() { + it('should create an instance of TaskData', function() { + // uncomment below and update the code to test TaskData + //var instance = new QedItAssetTransfers.TaskData(); + //expect(instance).to.be.a(QedItAssetTransfers.TaskData); + }); + + it('should have the property requireConfirmationFrom (base name: "require_confirmation_from")', function() { + // uncomment below and update the code to test the property requireConfirmationFrom + //var instance = new QedItAssetTransfers.TaskData(); + //expect(instance).to.be(); + }); + + it('should have the property recipientAddress (base name: "recipient_address")', function() { + // uncomment below and update the code to test the property recipientAddress + //var instance = new QedItAssetTransfers.TaskData(); + //expect(instance).to.be(); + }); + + it('should have the property assetId (base name: "asset_id")', function() { + // uncomment below and update the code to test the property assetId + //var instance = new QedItAssetTransfers.TaskData(); + //expect(instance).to.be(); + }); + + it('should have the property amount (base name: "amount")', function() { + // uncomment below and update the code to test the property amount + //var instance = new QedItAssetTransfers.TaskData(); + //expect(instance).to.be(); + }); + + it('should have the property walletId (base name: "wallet_id")', function() { + // uncomment below and update the code to test the property walletId + //var instance = new QedItAssetTransfers.TaskData(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/js/sdk/test/model/TaskState.spec.js b/js/sdk/test/model/TaskState.spec.js new file mode 100644 index 0000000..242c4e7 --- /dev/null +++ b/js/sdk/test/model/TaskState.spec.js @@ -0,0 +1,60 @@ +/** + * QEDIT - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.6.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('TaskState', function() { + it('should create an instance of TaskState', function() { + // uncomment below and update the code to test TaskState + //var instance = new QedItAssetTransfers.TaskState(); + //expect(instance).to.be.a(QedItAssetTransfers.TaskState); + }); + + }); + +})); diff --git a/js/sdk/test/model/TaskType.spec.js b/js/sdk/test/model/TaskType.spec.js index a160836..cbbdc60 100644 --- a/js/sdk/test/model/TaskType.spec.js +++ b/js/sdk/test/model/TaskType.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/js/sdk/test/model/TransferAssetRequest.spec.js b/js/sdk/test/model/TransferAssetRequest.spec.js index 027960e..53b5452 100644 --- a/js/sdk/test/model/TransferAssetRequest.spec.js +++ b/js/sdk/test/model/TransferAssetRequest.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -92,6 +92,12 @@ //expect(instance).to.be(); }); + it('should have the property requireConfirmationFrom (base name: "require_confirmation_from")', function() { + // uncomment below and update the code to test the property requireConfirmationFrom + //var instance = new QedItAssetTransfers.TransferAssetRequest(); + //expect(instance).to.be(); + }); + }); })); diff --git a/js/sdk/test/model/UnlockWalletRequest.spec.js b/js/sdk/test/model/UnlockWalletRequest.spec.js index 5ddbc90..86f4de0 100644 --- a/js/sdk/test/model/UnlockWalletRequest.spec.js +++ b/js/sdk/test/model/UnlockWalletRequest.spec.js @@ -2,7 +2,7 @@ * QEDIT - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.5.0 + * OpenAPI spec version: 1.6.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/spec/asset-swagger.yaml b/spec/asset-swagger.yaml index 5c466a3..cfb989a 100644 --- a/spec/asset-swagger.yaml +++ b/spec/asset-swagger.yaml @@ -1,6 +1,6 @@ openapi: 3.0.0 info: - version: 1.5.0 + version: 1.6.0 title: QEDIT - Asset Transfers security: - ApiKeyAuth: [] @@ -308,6 +308,8 @@ paths: application/json: schema: $ref: '#/components/schemas/ErrorResponse' + + /analytics/get_network_activity: post: tags: @@ -376,6 +378,7 @@ paths: application/json: schema: $ref: '#/components/schemas/ErrorResponse' + /node/generate_wallet: post: tags: @@ -413,7 +416,7 @@ paths: post: tags: - Node - summary: Delete a Wallet + summary: Delete a Wallet [async call] description: Deletes a Wallet from the Node; All private information about the Wallet will be deleted including transactional history, balances, and keys; If the secret key of the Wallet are not stored elsewhere then all Assets held in the Wallet will be forever lost! If the secret key of the Wallet is stored elsewhere, then all held Assets and the entire transactional history of the Wallet can be restored from the Blockchain at any time by importing the Wallet into a Node. requestBody: required: true @@ -755,6 +758,73 @@ paths: application/json: schema: $ref: '#/components/schemas/ErrorResponse' + /node/approve_task: + post: + tags: + - Node + summary: Approve task with pending incoming transaction [async call] + description: Confirmation request tasks are confirmed using this point. After the user confirms the incoming transaction, it is asynchronously sent to the blockchain and its status can be queried like any other async task. + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/TaskActionRequest' + responses: + '200': + description: Success + '400': + description: Bad request + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + '401': + description: Unauthorized + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + '500': + description: Internal error + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + /node/cancel_task: + post: + tags: + - Node + summary: Cancel task with pending incoming transaction both incoming and outgoing [async call] + description: A user may select to decline an incoming transaction. The related task will change its result to failure both on senders and the receivers side. This endpoint can also be used to cancel an outgoing pending transaction that is awaiting user interaction from the receiver + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/TaskActionRequest' + responses: + '200': + description: Success + '400': + description: Bad request + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + '401': + description: Unauthorized + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + '500': + description: Internal error + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + /health: post: tags: @@ -787,6 +857,22 @@ components: name: x-auth-token in: header schemas: + AssetId: + type: string + description: > + The ID of an Asset Type. It must be a string of length 0 to 40 characters. + Allowed characters are lower- and uppercase letters, digits, dot (.), and hyphen (-). + It must not end with an hyphen. Asset IDs are case-sensitive. + Namespace: + type: string + description: > + A `Namespace` describes what Asset IDs can be issued in an Issuance Rule. + It is a string in the same format as `AssetId`. + Additionally, if it ends with a wildcard character `*`, then the namespace covers + all asset IDs with the namespace as a prefix. Without a final wildcard, the namespace covers + exactly one asset ID. + Example: The namespace `currencies.dollar` covers only this exact asset type, while + `currencies.*` covers all asset types that start with `currencies.`. GetWalletBalanceRequest: type: object properties: @@ -801,8 +887,7 @@ components: type: object properties: asset_id: - type: integer - description: The ID of the Asset Type + $ref: '#/components/schemas/AssetId' amount: type: integer description: The outstanding balance for the Asset Type @@ -828,9 +913,9 @@ components: example: wallet_id: source_wallet assets: - - asset_id: 1 + - asset_id: "bank-a.loans.1" amount: 8 - - asset_id: 10 + - asset_id: "bank-a.loans.2" amount: 200 TransferAssetRequest: type: object @@ -845,14 +930,16 @@ components: type: string description: The Address of the recipient of the funds asset_id: - type: integer - description: The ID for the Asset Type to transfer + $ref: '#/components/schemas/AssetId' amount: type: integer description: The amount of assets to transfer memo: type: string description: An app-customizable field to store additional private data relating to the transfer; the memo is shared between the sender and the receiver, but is not divulged to other parties + require_confirmation_from: + type: string + description: A user may request confirmation from the receiving party. If a public key of the approver is included in this optional field, the transaction will only become valid after the received signs it. The receiver will be able to decide whether to accept or reject the transfer by calling the /node/approve_task or the /node/reject_task respectively. required: - wallet_id - authorization @@ -864,9 +951,24 @@ components: wallet_id: source_wallet authorization: PrivacyIsAwesome recipient_address: q1dxlf6vap2566t8w3z8f5j5lxy9n036zfsaytjve7fedsw6w8c9q9ctrwfz6ryyjwkgvj6tjg70f - asset_id: 1 + asset_id: "bank-a.loans.1" amount: 4 memo: '{"recipient_name": "Dan"}' + require_confirmation_from: bf45ab74bd4a46fe7a2432ba05e2f726bf4fe42a80052849e13e2541230d3204 + TaskActionRequest: + type: object + description: To approve or cancel a task, the user should include the task id and authorization of the wallet related to this task. + properties: + task_id: + type: string + authorization: + type: string + required: + - task_id + - authorization + example: + task_id: "5aaa4045-e949-4c44-a7ef-25fb55a1afa6" + authorization: PrivacyIsAwesome GetWalletActivityRequest: type: object properties: @@ -971,7 +1073,7 @@ components: result: $ref: '#/components/schemas/Result' state: - type: string + $ref: '#/components/schemas/TaskState' description: More granular current state of the Task; list of supported states is not guaranteed to be stable tx_hash: type: string @@ -982,8 +1084,8 @@ components: type: $ref: '#/components/schemas/TaskType' data: - type: object - description: Container for the Transaction data; each Transaction type has different fields + $ref: '#/components/schemas/TaskData' + description: Container for the Transaction data related to the task; different tasks might have various fields error: type: string description: In case of failure this field reports the reason for the failure @@ -1001,9 +1103,24 @@ components: enum: - pending - in_progress + - awaiting_user_interaction - success - failure description: The current result (status) of the Task + TaskState: + type: string + enum: + - pending_state + - in_progress_state + - tx_generated_state + - conf_req_sent_state + - conf_req_received_state + - conf_req_canceled_by_sender_state + - conf_req_canceled_by_receiver_state + - tx_submitted_state + - failure_state + - success_state + description: A fine-grained status of the node's inner state. This field is subject to changes and should not be relied upon during development TaskType: type: string enum: @@ -1013,7 +1130,25 @@ components: - alter_rule - import_wallet - delete_wallet + - outgoing_confirm_request + - incoming_confirm_request description: Task type + TaskData: + type: object + description: an object that includes additional request details + properties: + require_confirmation_from: + type: string + description: The public key for the confirmation request receiver + recipient_address: + type: string + description: The address the request was sent to + asset_id: + type: string + amount: + type: integer + wallet_id: + type: string GetTasksResponse: type: object properties: @@ -1075,8 +1210,7 @@ components: type: string description: The Address of the recipient of the issued Assets asset_id: - type: integer - description: The ID of the Asset Type to issue + $ref: '#/components/schemas/AssetId' amount: type: integer description: the amount of Assets to issue @@ -1098,7 +1232,7 @@ components: authorization: PrivacyIsAwesome recipient_address: q1dxlf6vap2566t8w3z8f5j5lxy9n036zfsaytjve7fedsw6w8c9q9ctrwfz6ryyjwkgvj6tjg70f amount: 4 - asset_id: 1 + asset_id: "bank-a.loans.1" confidential: false memo: '{"recipient_name": "Dan"}' GetNewAddressRequest: @@ -1342,8 +1476,7 @@ components: rules_to_add: - public_key: bf45ab74bd4a46fe7a2432ba05e2f726bf4fe42a80052849e13e2541230d3204 can_issue_confidentially: false - can_issue_asset_id_first: 100 - can_issue_asset_id_last: 112 + namespace: "bank-a.loans.*" is_admin: false DeleteRuleRequest: type: object @@ -1369,8 +1502,7 @@ components: rules_to_delete: - public_key: bf45ab74bd4a46fe7a2432ba05e2f726bf4fe42a80052849e13e2541230d3204 can_issue_confidentially: false - can_issue_asset_id_first: 100 - can_issue_asset_id_last: 112 + namespace: "bank-a.loans.*" is_admin: false Rule: type: object @@ -1381,26 +1513,20 @@ components: is_admin: type: boolean description: Boolean signifying whether the Rule grants admin rights - can_issue_asset_id_first: - type: integer - description: The lower Asset ID in the range of IDs the Rule grants issuance rights for (range is inclusive) - can_issue_asset_id_last: - type: integer - description: The upper Asset ID in the range of IDs the Rule grants issuance rights for (range is inclusive) + namespace: + $ref: '#/components/schemas/Namespace' can_issue_confidentially: type: boolean description: Boolean signifying whether the Rule grants confidentialy issuance rights; if true, then both public and confidential issuance right are granted; if false, then only public issuance rights are granted required: - public_key - can_issue_confidentially - - can_issue_asset_id_first - - can_issue_asset_id_last + - namespace - is_admin example: public_key: bf45ab74bd4a46fe7a2432ba05e2f726bf4fe42a80052849e13e2541230d3204 can_issue_confidentially: false - can_issue_asset_id_first: 100 - can_issue_asset_id_last: 112 + namespace: "bank-a.loans.*" is_admin: false ErrorResponse: type: object @@ -1450,7 +1576,7 @@ components: - is_confidential: false, public_issuance_description: amount: 12 - asset_id: 5 + asset_id: "bank-a.loans.1" output_description: cv: 'c2366ace373af05c92fc315dd502637ee4fa6ba46f05319ddcff209619bbaa27' cm: '0e148cb409e313cb13f28c6d8110fdb7f4daf119db99cedeab1234bd64ac4681' @@ -1520,11 +1646,6 @@ components: type: object description: The data of a single Transfer within a Transfer transaction properties: - asset_converter_descriptions: - type: array - description: The Converter Proofs - items: - $ref: '#/components/schemas/AnalyticsAssetConverterProofDescription' spends: type: array description: The information and Proofs associated with the Assets spent in the Transfer @@ -1578,20 +1699,15 @@ components: is_admin: type: boolean description: Boolean signifying whether the Rule grants admin rights - can_issue_asset_id_first: - type: integer - description: The lower Asset ID in the range of IDs the Rule grants issuance rights for (range is inclusive) - can_issue_asset_id_last: - type: integer - description: The upper Asset ID in the range of IDs the Rule grants issuance rights for (range is inclusive) + namespace: + $ref: '#/components/schemas/Namespace' can_issue_confidentially: type: boolean description: Boolean signifying whether the Rule grants confidentialy issuance rights; if true, then both public and confidential issuance right are granted; if false, then only public issuance rights are granted example: public_key: "AAAAAAAAAA==" is_admin: true - can_issue_asset_id_first: 11 - can_issue_asset_id_last: 20 + namespace: "bank-a.loans.*" can_issue_confidentially: true AnalyticsRuleWalletDefinition: @@ -1603,12 +1719,8 @@ components: is_admin: type: boolean description: Boolean signifying whether the Rule grants admin rights - can_issue_asset_id_first: - type: integer - description: The lower Asset ID in the range of IDs the Rule grants issuance rights for (range is inclusive) - can_issue_asset_id_last: - type: integer - description: The upper Asset ID in the range of IDs the Rule grants issuance rights for (range is inclusive) + namespace: + $ref: '#/components/schemas/Namespace' can_issue_confidentially: type: boolean description: Boolean signifying whether the Rule grants confidentialy issuance rights; if true, then both public and confidential issuance right are granted; if false, then only public issuance rights are granted @@ -1621,8 +1733,7 @@ components: example: public_key: "AAAAAAAAAA==" is_admin: true - can_issue_asset_id_first: 11 - can_issue_asset_id_last: 20 + namespace: "bank-a.loans.*" can_issue_confidentially: true operation: "CreateRule" @@ -1648,38 +1759,15 @@ components: - amount properties: asset_id: - type: integer - minimum: 1 - description: The ID of the Asset Type issued + $ref: '#/components/schemas/AssetId' amount: type: integer minimum: 0 description: The amount of Assets issued example: - asset_id: 10 + asset_id: "bank-a.loans.1" amount: 3 - AnalyticsAssetConverterProofDescription: - type: object - properties: - input_cv: - type: string - description: The commitment to both the Asset Type and amount of the Note - amount_cv: - type: string - description: The commitment to the Asset amount - asset_cv: - type: string - description: The commitment to the ID of the Asset Type - zkproof: - type: string - description: The Proof that the commitment contents match - example: - asset_cv: "AAAAAAAAAAA=" - amount_cv: "AAAAAAAAAAA=" - input_cv: "AAAAAAAAAAA=" - zkproof: "000AAAAAAA=" - AnalyticsSpendDescription: type: object properties: @@ -1735,37 +1823,29 @@ components: description: The details and Proof attached to a confidential Issuance; null if the Issuance was public nullable: true properties: - input_cv: + casset: type: string - description: Thecommitment to both the Asset Type and amount of the issued Note - rule: - $ref: '#/components/schemas/AnalyticsRule' + description: The commitment to both the Asset Type and amount of the issued Note + namespace: + $ref: '#/components/schemas/Namespace' zkproof: type: string description: The Proof that the issued Asset Type indeed matches the reported Rule example: input_cv: "AAAAAAAAAAA=" zkproof: "000AAAAAAA=" - rule: - - min_id: 11 - - max_id: 20 + namespace: "bank-a.loans.*" AnalyticsRule: type: object description: The Rule used in the Issuance properties: - min_id: - type: integer - description: The lower Asset ID in the range of IDs the Rule grants issuance rights for (range is inclusive) - max_id: - type: integer - description: The upper Asset ID in the range of IDs the Rule grants issuance rights for (range is inclusive) + namespace: + $ref: '#/components/schemas/Namespace' required: - - min_id - - max_id + - namespace example: - min_id: 11 - max_id: 20 + namespace: "bank-a.loans.*" GetWalletActivityResponse: type: object @@ -1819,8 +1899,7 @@ components: type: string description: The Address the Assets were issued to asset_id: - type: integer - description: The ID of the Asset Type issued + $ref: '#/components/schemas/AssetId' amount: type: integer description: The amount of Assets issued @@ -1844,8 +1923,7 @@ components: type: string description: The address of the Wallet the Assets were transferred to asset_id: - type: integer - description: The Id of the Asset Type transferred + $ref: '#/components/schemas/AssetId' amount: type: integer description: The amount of Assets transferred