From 2824aef52946045acf96c771e439bccce072f0fb Mon Sep 17 00:00:00 2001 From: Felipe Neuhauss Date: Wed, 3 May 2023 11:03:32 +0100 Subject: [PATCH 1/3] feat: prometheus and grafana integration Signed-off-by: Felipe Neuhauss --- api-gateway/src/api/service/contract.ts | 2 +- api-gateway/src/api/service/module.ts | 2 +- api-gateway/src/api/service/policy.ts | 2 +- api-gateway/src/api/service/settings.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/api-gateway/src/api/service/contract.ts b/api-gateway/src/api/service/contract.ts index c816309f2..61c147098 100644 --- a/api-gateway/src/api/service/contract.ts +++ b/api-gateway/src/api/service/contract.ts @@ -35,7 +35,7 @@ contractAPI.post( const user = req.user; const {description} = req.body; const guardians = new Guardians(); - return res.json( + return res.status(201).json( await guardians.createContract(user.did, description) ); } catch (error) { diff --git a/api-gateway/src/api/service/module.ts b/api-gateway/src/api/service/module.ts index 19013c951..b62909cb2 100644 --- a/api-gateway/src/api/service/module.ts +++ b/api-gateway/src/api/service/module.ts @@ -54,7 +54,7 @@ moduleAPI.delete('/:uuid', permissionHelper(UserRole.STANDARD_REGISTRY), async ( return next(createError(422, 'Invalid uuid')); } const result = await guardian.deleteModule(req.params.uuid, req.user.did); - res.status(201).json(result); + res.status(200).json(result); } catch (error) { new Logger().error(error, ['API_GATEWAY']); return next(error); diff --git a/api-gateway/src/api/service/policy.ts b/api-gateway/src/api/service/policy.ts index c80020a52..7c27a9e2b 100644 --- a/api-gateway/src/api/service/policy.ts +++ b/api-gateway/src/api/service/policy.ts @@ -486,7 +486,7 @@ policyAPI.post('/:policyId/dry-run/user', permissionHelper(UserRole.STANDARD_REG return next(createError(403, 'Invalid owner.')); } - res.send(await engineService.createVirtualUser(req.params.policyId, req.user.did)); + res.status(201).send(await engineService.createVirtualUser(req.params.policyId, req.user.did)); } catch (error) { new Logger().error(error, ['API_GATEWAY']); return next(error); diff --git a/api-gateway/src/api/service/settings.ts b/api-gateway/src/api/service/settings.ts index 5aea93d79..5a1e4e7b1 100644 --- a/api-gateway/src/api/service/settings.ts +++ b/api-gateway/src/api/service/settings.ts @@ -22,7 +22,7 @@ settingsAPI.post('/', validate(updateSettings()), permissionHelper(UserRole.STAN await Promise.all([ guardians.updateSettings(settings) ]); - res.json(null); + res.status(201).json(null); } catch (error) { new Logger().error(error, ['API_GATEWAY']); return next(error); From 7296c7230c61a6b8bfee93e94185431e7fe97681 Mon Sep 17 00:00:00 2001 From: Felipe Neuhauss Date: Thu, 4 May 2023 16:52:48 +0100 Subject: [PATCH 2/3] feat: swagger updated Signed-off-by: Felipe Neuhauss --- api-docs/api/swagger/swagger.yaml | 326 +++++++++++++++++++++++++++--- 1 file changed, 299 insertions(+), 27 deletions(-) diff --git a/api-docs/api/swagger/swagger.yaml b/api-docs/api/swagger/swagger.yaml index 60d56d26c..71080d6f4 100644 --- a/api-docs/api/swagger/swagger.yaml +++ b/api-docs/api/swagger/swagger.yaml @@ -859,7 +859,7 @@ tags: description: "Operations with data schemas" - name: "tokens" description: "Everything about tokens" - - name: "trustchains" + - name: "trust-chains" description: "Audit and trust chain" - name: "policies" description: "Policy engine operations" @@ -987,7 +987,7 @@ paths: $ref: "#/components/schemas/Credentials" responses: 201: - description: Successful operation. + description: Created. content: application/json: schema: @@ -1166,7 +1166,7 @@ paths: $ref: "#/components/schemas/User" responses: 201: - description: Successful operation. + description: Created. 401: description: Unauthorized. 403: @@ -1331,7 +1331,7 @@ paths: $ref: "#/components/schemas/Schema" responses: 201: - description: Successful operation. + description: Created. 401: description: Unauthorized. 403: @@ -1639,7 +1639,7 @@ paths: required: true responses: 201: - description: Successful operation. + description: Created. content: application/json: schema: @@ -1733,7 +1733,7 @@ paths: type: string responses: 201: - description: Successful operation. + description: Created. content: application/json: schema: @@ -2026,7 +2026,7 @@ paths: $ref: "#/components/schemas/Schema" responses: 201: - description: Successful operation. + description: Created. 401: description: Unauthorized. 403: @@ -2302,7 +2302,7 @@ paths: $ref: "#/components/schemas/Token" responses: 201: - description: Successful operation. + description: Created. content: application/json: schema: @@ -2534,8 +2534,178 @@ paths: schema: $ref: "#/components/schemas/Error" + /tokens/{tokenId}/{username}/grant-kyc: + put: + tags: + - tokens + description: Sets the KYC flag for the user. Only users with the Standard Registry role are allowed to make the request. + parameters: + - in: path + name: tokenId + schema: + type: string + required: true + description: Token ID. + - in: path + name: username + schema: + type: string + required: true + description: Username. + security: + - bearerAuth: [] + summary: Sets the KYC flag for the user. + responses: + 200: + description: Successful operation. + content: + application/json: + schema: + $ref: "#/components/schemas/TokenInfo" + 400: + description: Bad Request. + content: + application/json: + schema: + $ref: "#/components/schemas/Error" + 401: + description: Unauthorized. + 403: + description: Forbidden. + 500: + description: Internal server error. + content: + application/json: + schema: + $ref: "#/components/schemas/Error" + + /tokens/push/{tokenId}/{username}/grant-kyc: + put: + tags: + - tokens + description: Sets the KYC flag for the user. Only users with the Standard Registry role are allowed to make the request. + security: + - bearerAuth: [] + summary: Sets the KYC flag for the user. + parameters: + - in: path + name: tokenId + schema: + type: string + required: true + description: Token ID. + - in: path + name: username + schema: + type: string + required: true + description: Username. + responses: + 202: + description: Successful operation. + content: + application/json: + schema: + $ref: "#/components/schemas/Task" + 401: + description: Unauthorized. + 403: + description: Forbidden. + 500: + description: Internal server error. + content: + application/json: + schema: + $ref: "#/components/schemas/Error" + + /tokens/{tokenId}/{username}/revoke-kyc: + put: + tags: + - tokens + description: Unsets the KYC flag for the user. Only users with the Standard Registry role are allowed to make the request. + parameters: + - in: path + name: tokenId + schema: + type: string + required: true + description: Token ID. + - in: path + name: username + schema: + type: string + required: true + description: Username. + security: + - bearerAuth: [] + summary: Unsets the KYC flag for the user. + responses: + 200: + description: Successful operation. + content: + application/json: + schema: + $ref: "#/components/schemas/TokenInfo" + 400: + description: Bad Request. + content: + application/json: + schema: + $ref: "#/components/schemas/Error" + 401: + description: Unauthorized. + 403: + description: Forbidden. + 500: + description: Internal server error. + content: + application/json: + schema: + $ref: "#/components/schemas/Error" + + /tokens/push/{tokenId}/{username}/revoke-kyc: + put: + tags: + - tokens + description: Unsets the KYC flag for the user. Only users with the Standard Registry role are allowed to make the request. + security: + - bearerAuth: [] + summary: Unsets the KYC flag for the user. + parameters: + - in: path + name: tokenId + schema: + type: string + required: true + description: Token ID. + - in: path + name: username + schema: + type: string + required: true + description: Username. + responses: + 202: + description: Successful operation. + content: + application/json: + schema: + $ref: "#/components/schemas/Task" + 401: + description: Unauthorized. + 403: + description: Forbidden. + 500: + description: Internal server error. + content: + application/json: + schema: + $ref: "#/components/schemas/Error" + + /tokens/{tokenId}/{username}/grantKyc: put: + deprecated: true tags: - tokens description: Sets the KYC flag for the user. Only users with the Standard Registry role are allowed to make the request. @@ -2581,6 +2751,7 @@ paths: /tokens/push/{tokenId}/{username}/grantKyc: put: + deprecated: true tags: - tokens description: Sets the KYC flag for the user. Only users with the Standard Registry role are allowed to make the request. @@ -2620,6 +2791,7 @@ paths: /tokens/{tokenId}/{username}/revokeKyc: put: + deprecated: true tags: - tokens description: Unsets the KYC flag for the user. Only users with the Standard Registry role are allowed to make the request. @@ -2665,6 +2837,7 @@ paths: /tokens/push/{tokenId}/{username}/revokeKyc: put: + deprecated: true tags: - tokens description: Unsets the KYC flag for the user. Only users with the Standard Registry role are allowed to make the request. @@ -2872,8 +3045,9 @@ paths: /trustchains: get: + deprecated: true tags: - - trustchains + - trust-chains description: Requests all VP documents. Only users with the Auditor role are allowed to make the request. security: - bearerAuth: [] @@ -2933,6 +3107,102 @@ paths: $ref: "#/components/schemas/Error" /trustchains/{hash}: + get: + deprecated: true + tags: + - trust-chains + description: Builds and returns a trustchain, from the VP to the root VC document. Only users with the Auditor role are allowed to make the request. + parameters: + - in: path + name: hash + schema: + type: string + required: true + description: Hash or ID of a VP document. + security: + - bearerAuth: [] + summary: Returns a trustchain for a VP document. + responses: + 200: + description: Successful operation. + content: + application/json: + schema: + $ref: "#/components/schemas/TrustChains" + 401: + description: Unauthorized. + 403: + description: Forbidden. + 500: + description: Internal server error. + content: + application/json: + schema: + $ref: "#/components/schemas/Error" + + /trust-chains: + get: + tags: + - trustchains + description: Requests all VP documents. Only users with the Auditor role are allowed to make the request. + security: + - bearerAuth: [] + summary: Returns a list of all VP documents. + parameters: + - in: query + name: pageIndex + schema: + type: integer + description: The number of pages to skip before starting to collect the result set + examples: + pageIndex: + summary: Example of a pageIndex + value: 0 + - in: query + name: pageSize + schema: + type: integer + description: The numbers of items to return + examples: + pageSize: + summary: Example of a pageSize + value: 100 + - in: query + name: policyId + schema: + type: string + description: Selected policy ID. + - in: query + name: policyOwner + schema: + type: string + description: Selected Standard Registry (DID). + responses: + 200: + description: Successful operation. + headers: + x-total-count: + schema: + type: integer + description: Total items in the collection. + content: + application/json: + schema: + type: array + items: + $ref: "#/components/schemas/VerifiablePresentation" + 401: + description: Unauthorized. + 403: + description: Forbidden. + 500: + description: Internal server error. + content: + application/json: + schema: + $ref: "#/components/schemas/Error" + + /trust-chains/{hash}: get: tags: - trustchains @@ -3039,7 +3309,7 @@ paths: $ref: "#/components/schemas/PolicyConfig" responses: 201: - description: Successful operation. + description: Created. 401: description: Unauthorized. 403: @@ -3616,7 +3886,7 @@ paths: type: string responses: 201: - description: Successful operation. + description: Created. content: application/json: schema: @@ -3698,7 +3968,7 @@ paths: format: binary responses: 201: - description: Successful operation. + description: Created. content: application/json: schema: @@ -3872,8 +4142,8 @@ paths: required: true description: Policy ID. responses: - 200: - description: Successful operation. + 201: + description: Created. content: application/json: schema: @@ -4555,7 +4825,7 @@ paths: - bearerAuth: [] responses: 201: - description: Successful operation. + description: Created. content: binary/octet-stream: schema: @@ -4588,7 +4858,7 @@ paths: - bearerAuth: [] responses: 201: - description: Successful operation. + description: Created. content: application/json: schema: @@ -4636,8 +4906,8 @@ paths: - bearerAuth: [] summary: Set settings. responses: - 200: - description: Successful operation. + 201: + description: Created. 401: description: Unauthorized. 403: @@ -4988,8 +5258,8 @@ paths: example: description: "Smart Contract Description" responses: - 200: - description: Successful operation. + 201: + description: Created. content: application/json: schema: @@ -4998,6 +5268,8 @@ paths: description: Unauthorized. 403: description: Forbidden. + 422: + description: Unprocessable Entity. 500: description: Internal server error. content: @@ -5490,7 +5762,7 @@ paths: $ref: "#/components/schemas/Module" responses: 201: - description: Successful operation. + description: Created. 401: description: Unauthorized. 403: @@ -5747,7 +6019,7 @@ paths: type: string responses: 201: - description: Successful operation. + description: Created. content: application/json: schema: @@ -5781,7 +6053,7 @@ paths: format: binary responses: 201: - description: Successful operation. + description: Created. content: application/json: schema: @@ -5940,7 +6212,7 @@ paths: $ref: "#/components/schemas/Tag" responses: 201: - description: Successful operation. + description: Created. content: application/json: schema: @@ -6189,7 +6461,7 @@ paths: $ref: "#/components/schemas/Schema" responses: 201: - description: Successful operation. + description: Created. content: application/json: schema: @@ -6381,7 +6653,7 @@ paths: $ref: "#/components/schemas/Theme" responses: 201: - description: Successful operation. + description: Created. 401: description: Unauthorized. 403: @@ -6511,7 +6783,7 @@ paths: format: binary responses: 201: - description: Successful operation. + description: Created. content: application/json: schema: From 30e0cc83c589ae0eaae9a7293c88a6590af0d9e7 Mon Sep 17 00:00:00 2001 From: Felipe Neuhauss Date: Thu, 4 May 2023 17:15:36 +0100 Subject: [PATCH 3/3] feat: docs updated --- api-docs/api/swagger/swagger.yaml | 272 +++++++++++++++--------------- 1 file changed, 136 insertions(+), 136 deletions(-) diff --git a/api-docs/api/swagger/swagger.yaml b/api-docs/api/swagger/swagger.yaml index 71080d6f4..4b20a3333 100644 --- a/api-docs/api/swagger/swagger.yaml +++ b/api-docs/api/swagger/swagger.yaml @@ -915,7 +915,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /accounts/session: get: tags: @@ -972,7 +972,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /accounts/register: post: tags: @@ -998,7 +998,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /accounts/login: post: tags: @@ -1024,7 +1024,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /accounts/root-authorities: get: deprecated: true @@ -1051,7 +1051,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /accounts/standard-registries: get: tags: @@ -1077,7 +1077,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /profiles/{username}/balance: get: tags: @@ -1110,7 +1110,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /profiles/{username}: get: tags: @@ -1177,7 +1177,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /profiles/push/{username}: put: tags: @@ -1217,7 +1217,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /schemas: get: tags: @@ -1269,7 +1269,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /schema/{schemaId}: get: tags: @@ -1302,7 +1302,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /schemas/{topicId}: post: tags: @@ -1402,7 +1402,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /schemas/push/{topicId}: post: tags: @@ -1446,7 +1446,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /schemas/{schemaId}/publish: put: tags: @@ -1491,7 +1491,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /schemas/push/{schemaId}/publish: put: tags: @@ -1534,7 +1534,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /schemas/{schemaId}: put: tags: @@ -1609,7 +1609,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /schemas/{topicId}/import/file: post: tags: @@ -1656,7 +1656,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /schemas/push/{topicId}/import/file: post: tags: @@ -1701,7 +1701,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /schemas/{topicId}/import/message: post: tags: @@ -1750,7 +1750,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /schemas/push/{topicId}/import/message: post: tags: @@ -1797,7 +1797,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /schemas/import/message/preview: post: tags: @@ -1835,7 +1835,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /schemas/push/import/message/preview: post: tags: @@ -1871,7 +1871,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /schemas/import/file/preview: post: tags: @@ -1907,7 +1907,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /schemas/{schemaId}/export/message: post: tags: @@ -1940,7 +1940,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /schemas/{schemaId}/export/file: post: tags: @@ -1969,7 +1969,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /schemas/type/{type}: get: tags: @@ -2223,12 +2223,12 @@ paths: type: string enum: [ - STANDARD_REGISTRY, - USER, - POLICY, - MINT_TOKEN, - WIPE_TOKEN, - MINT_NFTOKEN, + STANDARD_REGISTRY, + USER, + POLICY, + MINT_TOKEN, + WIPE_TOKEN, + MINT_NFTOKEN, ] required: true description: schema type. @@ -2332,7 +2332,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /tokens/push: post: tags: @@ -2365,7 +2365,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /tokens/{tokenId}/{username}/info: get: tags: @@ -2409,7 +2409,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /tokens/{tokenId}/associate: put: tags: @@ -2438,7 +2438,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /tokens/push/{tokenId}/associate: put: tags: @@ -2471,7 +2471,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /tokens/{tokenId}/dissociate: put: tags: @@ -2500,7 +2500,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /tokens/push/{tokenId}/dissociate: put: tags: @@ -2533,7 +2533,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /tokens/{tokenId}/{username}/grant-kyc: put: tags: @@ -2578,7 +2578,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /tokens/push/{tokenId}/{username}/grant-kyc: put: tags: @@ -2617,7 +2617,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /tokens/{tokenId}/{username}/revoke-kyc: put: tags: @@ -2662,7 +2662,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /tokens/push/{tokenId}/{username}/revoke-kyc: put: tags: @@ -2701,8 +2701,8 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - - + + /tokens/{tokenId}/{username}/grantKyc: put: deprecated: true @@ -2748,7 +2748,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /tokens/push/{tokenId}/{username}/grantKyc: put: deprecated: true @@ -2788,7 +2788,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /tokens/{tokenId}/{username}/revokeKyc: put: deprecated: true @@ -2834,7 +2834,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /tokens/push/{tokenId}/{username}/revokeKyc: put: deprecated: true @@ -2874,7 +2874,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /tokens/{tokenId}/{username}/freeze: put: tags: @@ -2919,7 +2919,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /tokens/push/{tokenId}/{username}/freeze: put: tags: @@ -2958,7 +2958,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /tokens/{tokenId}/{username}/unfreeze: put: tags: @@ -3003,7 +3003,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /tokens/push/{tokenId}/{username}/unfreeze: put: tags: @@ -3042,7 +3042,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /trustchains: get: deprecated: true @@ -3105,7 +3105,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /trustchains/{hash}: get: deprecated: true @@ -3139,7 +3139,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /trust-chains: get: tags: @@ -3201,7 +3201,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /trust-chains/{hash}: get: tags: @@ -3234,7 +3234,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /policies: get: tags: @@ -3320,7 +3320,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /policies/push: post: tags: @@ -3353,7 +3353,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /policies/{policyId}: get: tags: @@ -3431,7 +3431,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /policies/{policyId}/publish: put: tags: @@ -3474,7 +3474,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /policies/push/{policyId}/publish: put: tags: @@ -3517,7 +3517,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /policies/validate: post: tags: @@ -3550,7 +3550,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /policies/{policyId}/groups: get: tags: @@ -3635,7 +3635,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /policies/{policyId}/blocks: get: tags: @@ -3668,7 +3668,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /policies/{policyId}/blocks/{uuid}: get: tags: @@ -3747,7 +3747,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /policies/{policyId}/tag/{tag}: get: tags: @@ -3789,7 +3789,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /policies/{policyId}/export/message: get: tags: @@ -3822,7 +3822,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /policies/{policyId}/export/file: get: tags: @@ -3855,7 +3855,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /policies/import/message: post: tags: @@ -3903,7 +3903,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /policies/push/import/message: post: tags: @@ -3939,7 +3939,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /policies/import/file: post: tags: @@ -3985,7 +3985,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /policies/push/import/file: post: tags: @@ -4019,7 +4019,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /policies/import/message/preview: post: tags: @@ -4055,7 +4055,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /policies/push/import/message/preview: post: tags: @@ -4091,7 +4091,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /policies/import/file/preview: post: tags: @@ -4125,7 +4125,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /policies/{policyId}/dry-run: put: tags: @@ -4158,7 +4158,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /policies/{policyId}/draft: put: tags: @@ -4191,7 +4191,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /policies/{policyId}/dry-run/users: get: tags: @@ -4231,7 +4231,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /policies/{policyId}/dry-run/user: post: tags: @@ -4271,7 +4271,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /policies/{policyId}/dry-run/login: post: tags: @@ -4321,7 +4321,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /policies/{policyId}/dry-run/restart: post: tags: @@ -4350,7 +4350,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /policies/{policyId}/dry-run/transactions: get: tags: @@ -4392,7 +4392,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /policies/{policyId}/dry-run/artifacts: get: tags: @@ -4434,7 +4434,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /policies/{policyId}/dry-run/ipfs: get: tags: @@ -4476,7 +4476,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /policies/{policyId}/tag/{tag}/blocks: post: tags: @@ -4659,7 +4659,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /demo/registeredUsers: get: tags: @@ -4703,12 +4703,12 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /demo/randomKey: get: + deprecated: true tags: - demo - deprecated: true description: Generates a new Hedera account with a random private key. security: - bearerAuth: [] @@ -4729,7 +4729,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /demo/random-key: get: tags: @@ -4754,7 +4754,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /demo/push/randomKey: get: tags: @@ -4781,7 +4781,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /demo/push/random-key: get: tags: @@ -4807,7 +4807,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /ipfs/file/{cid}: get: tags: @@ -4839,7 +4839,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /ipfs/file/: post: tags: @@ -4872,7 +4872,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /settings: get: tags: @@ -4940,7 +4940,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /logs: post: tags: @@ -4977,7 +4977,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /logs/attributes: get: tags: @@ -5018,7 +5018,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /tasks/{taskId}: get: tags: @@ -5051,7 +5051,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /artifact: get: tags: @@ -5108,7 +5108,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /artifact/{policyId}: post: tags: @@ -5154,7 +5154,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /artifact/{artifactId}: delete: tags: @@ -5187,7 +5187,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /contracts: get: tags: @@ -5276,7 +5276,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /contracts/import: post: tags: @@ -5299,7 +5299,7 @@ paths: example: contractId: "0.0.49176956" description: "Smart Contract Description" - + responses: 200: description: Successful operation. @@ -5317,7 +5317,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /contracts/{contractId}/user: post: tags: @@ -5362,7 +5362,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /contracts/{contractId}/status: post: tags: @@ -5396,7 +5396,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /contracts/{contractId}/pair: post: tags: @@ -5450,7 +5450,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /contracts/pair: get: tags: @@ -5505,7 +5505,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /contracts/{contractId}/retire/request: post: tags: @@ -5569,7 +5569,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /contracts/retire/request: get: tags: @@ -5659,7 +5659,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /contracts/retire: post: tags: @@ -5696,7 +5696,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /modules: get: tags: @@ -5773,7 +5773,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /modules/menu: get: tags: @@ -5801,7 +5801,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /modules/{uuid}: get: tags: @@ -5903,7 +5903,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /modules/{uuid}/publish: put: tags: @@ -5936,7 +5936,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /modules/{uuid}/export/message: get: tags: @@ -5969,7 +5969,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /modules/{uuid}/export/file: get: tags: @@ -5998,7 +5998,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /modules/import/message: post: tags: @@ -6034,7 +6034,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /modules/import/file: post: tags: @@ -6068,7 +6068,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /modules/import/message/preview: post: tags: @@ -6104,7 +6104,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /modules/import/file/preview: post: tags: @@ -6138,7 +6138,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /modules/validate: post: tags: @@ -6194,7 +6194,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /tags/: post: tags: @@ -6256,12 +6256,12 @@ paths: type: string enum: [ - Schema, - Policy, - Token, - Module, - Contract, - PolicyDocument, + Schema, + Policy, + Token, + Module, + Contract, + PolicyDocument, ] target: type: string @@ -6274,12 +6274,12 @@ paths: type: string enum: [ - Schema, - Policy, - Token, - Module, - Contract, - PolicyDocument, + Schema, + Policy, + Token, + Module, + Contract, + PolicyDocument, ] targets: type: array @@ -6609,7 +6609,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /themes: get: tags: @@ -6664,7 +6664,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /themes/{themeId}: put: tags: @@ -6735,7 +6735,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /themes/{themeId}/export/file: get: tags: @@ -6764,7 +6764,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" - + /themes/import/file: post: tags: