From 1dd418d074bda11e3e4b9ee0be20b6e6b80f542b Mon Sep 17 00:00:00 2001 From: sksadjad Date: Wed, 22 Jun 2022 11:44:32 +0200 Subject: [PATCH] reverted the plugin commit --- .../connection-manager/plugin.schema.json | 667 ------------------ 1 file changed, 667 deletions(-) delete mode 100644 packages/connection-manager/plugin.schema.json diff --git a/packages/connection-manager/plugin.schema.json b/packages/connection-manager/plugin.schema.json deleted file mode 100644 index 697e9bcd6..000000000 --- a/packages/connection-manager/plugin.schema.json +++ /dev/null @@ -1,667 +0,0 @@ -{ - "IConnectionManager": { - "components": { - "schemas": { - "IAddConnectionArgs": { - "type": "object", - "properties": { - "partyId": { - "type": "string" - }, - "connection": { - "$ref": "#/components/schemas/IBasicConnection" - } - }, - "required": [ - "partyId", - "connection" - ] - }, - "IBasicConnection": { - "type": "object", - "properties": { - "type": { - "$ref": "#/components/schemas/ConnectionTypeEnum" - }, - "identifier": { - "$ref": "#/components/schemas/IBasicConnectionIdentifier" - }, - "config": { - "$ref": "#/components/schemas/BasicConnectionConfig" - }, - "metadata": { - "type": "array", - "items": { - "$ref": "#/components/schemas/IBasicConnectionMetadataItem" - } - } - }, - "required": [ - "type", - "identifier", - "config" - ] - }, - "ConnectionTypeEnum": { - "type": "string", - "enum": [ - "openid", - "didauth" - ] - }, - "IBasicConnectionIdentifier": { - "type": "object", - "properties": { - "type": { - "$ref": "#/components/schemas/ConnectionIdentifierEnum" - }, - "correlationId": { - "type": "string" - } - }, - "required": [ - "type", - "correlationId" - ] - }, - "ConnectionIdentifierEnum": { - "type": "string", - "enum": [ - "did", - "url" - ] - }, - "BasicConnectionConfig": { - "anyOf": [ - { - "$ref": "#/components/schemas/IBasicDidAuthConfig" - }, - { - "$ref": "#/components/schemas/IBasicOpenIdConfig" - } - ] - }, - "IBasicDidAuthConfig": { - "type": "object", - "properties": { - "identifier": { - "$ref": "#/components/schemas/IIdentifier" - }, - "stateId": { - "type": "string" - }, - "redirectUrl": { - "type": "string" - }, - "sessionId": { - "type": "string" - } - }, - "required": [ - "identifier", - "stateId", - "redirectUrl", - "sessionId" - ] - }, - "IIdentifier": { - "type": "object", - "properties": { - "did": { - "type": "string", - "description": "Decentralized identifier" - }, - "alias": { - "type": "string", - "description": "Optional. Identifier alias. Can be used to reference an object in an external system" - }, - "provider": { - "type": "string", - "description": "Identifier provider name" - }, - "controllerKeyId": { - "type": "string", - "description": "Controller key id" - }, - "keys": { - "type": "array", - "items": { - "$ref": "#/components/schemas/IKey" - }, - "description": "Array of managed keys" - }, - "services": { - "type": "array", - "items": { - "$ref": "#/components/schemas/IService" - }, - "description": "Array of services" - } - }, - "required": [ - "did", - "provider", - "keys", - "services" - ], - "description": "Identifier interface" - }, - "IKey": { - "type": "object", - "properties": { - "kid": { - "type": "string", - "description": "Key ID" - }, - "kms": { - "type": "string", - "description": "Key Management System" - }, - "type": { - "$ref": "#/components/schemas/TKeyType", - "description": "Key type" - }, - "publicKeyHex": { - "type": "string", - "description": "Public key" - }, - "privateKeyHex": { - "type": "string", - "description": "Optional. Private key" - }, - "meta": { - "anyOf": [ - { - "$ref": "#/components/schemas/KeyMetadata" - }, - { - "type": "null" - } - ], - "description": "Optional. Key metadata. This should be used to determine which algorithms are supported." - } - }, - "required": [ - "kid", - "kms", - "type", - "publicKeyHex" - ], - "description": "Cryptographic key" - }, - "TKeyType": { - "type": "string", - "enum": [ - "Ed25519", - "Secp256k1", - "X25519", - "Bls12381G1", - "Bls12381G2" - ], - "description": "Cryptographic key type" - }, - "KeyMetadata": { - "type": "object", - "properties": { - "algorithms": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "IService": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "ID" - }, - "type": { - "type": "string", - "description": "Service type" - }, - "serviceEndpoint": { - "type": "string", - "description": "Endpoint URL" - }, - "description": { - "type": "string", - "description": "Optional. Description" - } - }, - "required": [ - "id", - "type", - "serviceEndpoint" - ], - "description": "Identifier service" - }, - "IBasicOpenIdConfig": { - "type": "object", - "properties": { - "clientId": { - "type": "string" - }, - "clientSecret": { - "type": "string" - }, - "scopes": { - "type": "array", - "items": { - "type": "string" - } - }, - "issuer": { - "type": "string" - }, - "redirectUrl": { - "type": "string" - }, - "dangerouslyAllowInsecureHttpRequests": { - "type": "boolean" - }, - "clientAuthMethod": { - "type": "string", - "enum": [ - "basic", - "post" - ] - } - }, - "required": [ - "clientId", - "clientSecret", - "scopes", - "issuer", - "redirectUrl", - "dangerouslyAllowInsecureHttpRequests" - ] - }, - "IBasicConnectionMetadataItem": { - "type": "object", - "properties": { - "label": { - "type": "string" - }, - "value": { - "type": "string" - } - }, - "required": [ - "label", - "value" - ] - }, - "IConnection": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/components/schemas/ConnectionTypeEnum" - }, - "identifier": { - "$ref": "#/components/schemas/IConnectionIdentifier" - }, - "config": { - "$ref": "#/components/schemas/ConnectionConfig" - }, - "metadata": { - "type": "array", - "items": { - "$ref": "#/components/schemas/IConnectionMetadataItem" - } - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "lastUpdatedAt": { - "type": "string", - "format": "date-time" - } - }, - "required": [ - "id", - "type", - "identifier", - "config", - "createdAt", - "lastUpdatedAt" - ] - }, - "IConnectionIdentifier": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/components/schemas/ConnectionIdentifierEnum" - }, - "correlationId": { - "type": "string" - } - }, - "required": [ - "id", - "type", - "correlationId" - ] - }, - "ConnectionConfig": { - "anyOf": [ - { - "$ref": "#/components/schemas/IOpenIdConfig" - }, - { - "$ref": "#/components/schemas/IDidAuthConfig" - } - ] - }, - "IOpenIdConfig": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "clientId": { - "type": "string" - }, - "clientSecret": { - "type": "string" - }, - "scopes": { - "type": "array", - "items": { - "type": "string" - } - }, - "issuer": { - "type": "string" - }, - "redirectUrl": { - "type": "string" - }, - "dangerouslyAllowInsecureHttpRequests": { - "type": "boolean" - }, - "clientAuthMethod": { - "type": "string", - "enum": [ - "basic", - "post" - ] - } - }, - "required": [ - "id", - "clientId", - "clientSecret", - "scopes", - "issuer", - "redirectUrl", - "dangerouslyAllowInsecureHttpRequests" - ] - }, - "IDidAuthConfig": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "identifier": { - "$ref": "#/components/schemas/IIdentifier" - }, - "stateId": { - "type": "string" - }, - "redirectUrl": { - "type": "string" - }, - "sessionId": { - "type": "string" - } - }, - "required": [ - "id", - "identifier", - "stateId", - "redirectUrl", - "sessionId" - ] - }, - "IConnectionMetadataItem": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "label": { - "type": "string" - }, - "value": { - "type": "string" - } - }, - "required": [ - "id", - "label", - "value" - ] - }, - "IAddPartyArgs": { - "type": "object", - "properties": { - "name": { - "type": "string" - } - }, - "required": [ - "name" - ] - }, - "IConnectionParty": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "connections": { - "type": "array", - "items": { - "$ref": "#/components/schemas/IConnection" - } - } - }, - "required": [ - "id", - "name", - "connections" - ] - }, - "IGetConnectionArgs": { - "type": "object", - "properties": { - "connectionId": { - "type": "string" - } - }, - "required": [ - "connectionId" - ] - }, - "IGetConnectionsArgs": { - "type": "object", - "properties": { - "partyId": { - "type": "string" - } - }, - "required": [ - "partyId" - ] - }, - "IGetPartyArgs": { - "type": "object", - "properties": { - "partyId": { - "type": "string" - } - }, - "required": [ - "partyId" - ] - }, - "IRemoveConnectionArgs": { - "type": "object", - "properties": { - "connectionId": { - "type": "string" - } - }, - "required": [ - "connectionId" - ] - }, - "IRemovePartyArgs": { - "type": "object", - "properties": { - "partyId": { - "type": "string" - } - }, - "required": [ - "partyId" - ] - }, - "IUpdateConnectionArgs": { - "type": "object", - "properties": { - "connection": { - "$ref": "#/components/schemas/IConnection" - } - }, - "required": [ - "connection" - ] - }, - "IUpdatePartyArgs": { - "type": "object", - "properties": { - "party": { - "$ref": "#/components/schemas/IConnectionParty" - } - }, - "required": [ - "party" - ] - } - }, - "methods": { - "cmAddConnection": { - "description": "", - "arguments": { - "$ref": "#/components/schemas/IAddConnectionArgs" - }, - "returnType": { - "$ref": "#/components/schemas/IConnection" - } - }, - "cmAddParty": { - "description": "", - "arguments": { - "$ref": "#/components/schemas/IAddPartyArgs" - }, - "returnType": { - "$ref": "#/components/schemas/IConnectionParty" - } - }, - "cmGetConnection": { - "description": "", - "arguments": { - "$ref": "#/components/schemas/IGetConnectionArgs" - }, - "returnType": { - "$ref": "#/components/schemas/IConnection" - } - }, - "cmGetConnections": { - "description": "", - "arguments": { - "$ref": "#/components/schemas/IGetConnectionsArgs" - }, - "returnType": { - "type": "array", - "items": { - "$ref": "#/components/schemas/IConnection" - } - } - }, - "cmGetParties": { - "description": "", - "arguments": { - "type": "object" - }, - "returnType": { - "type": "array", - "items": { - "$ref": "#/components/schemas/IConnectionParty" - } - } - }, - "cmGetParty": { - "description": "", - "arguments": { - "$ref": "#/components/schemas/IGetPartyArgs" - }, - "returnType": { - "$ref": "#/components/schemas/IConnectionParty" - } - }, - "cmRemoveConnection": { - "description": "", - "arguments": { - "$ref": "#/components/schemas/IRemoveConnectionArgs" - }, - "returnType": { - "type": "boolean" - } - }, - "cmRemoveParty": { - "description": "", - "arguments": { - "$ref": "#/components/schemas/IRemovePartyArgs" - }, - "returnType": { - "type": "boolean" - } - }, - "cmUpdateConnection": { - "description": "", - "arguments": { - "$ref": "#/components/schemas/IUpdateConnectionArgs" - }, - "returnType": { - "$ref": "#/components/schemas/IConnection" - } - }, - "cmUpdateParty": { - "description": "", - "arguments": { - "$ref": "#/components/schemas/IUpdatePartyArgs" - }, - "returnType": { - "$ref": "#/components/schemas/IConnectionParty" - } - } - } - } - } -} \ No newline at end of file