Skip to content
Snippets Groups Projects
agent-swagger.json 35 KiB
Newer Older
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "version": {
            "type": "string",
            "example": "1.0.2",
            "pattern": "/^(\\d+\\.)?(\\d+\\.)?(\\*|\\d+)$/"
          }
        },
        "required": [
          "name",
          "attributes",
          "version"
        ]
      },
      "SchemaRecordDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "attributes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "version": {
            "type": "string"
          },
          "issuerId": {
            "type": "string"
          },
          "methodName": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "createdAt": {
            "format": "date-time",
            "type": "string"
          },
          "updatedAt": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "name",
          "attributes",
          "version",
        ]
      },
      "IdReqDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          }
        },
        "required": [
          "id"
        ]
      },
      "CreddefRecordDto": {
        "type": "object",
        "properties": {
          "schemaId": {
            "type": "string"
          },
          "issuerId": {
            "type": "string"
          },
          "tag": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "createdAt": {
            "format": "date-time",
            "type": "string"
          },
          "updatedAt": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "schemaId",
          "issuerId",
          "tag",
        ]
      },
      "CreateCredentialDefinitionRequestDto": {
        "type": "object",
        "properties": {
          "schemaId": {
            "type": "string"
          },
          "tag": {
            "type": "string"
          }
        },
        "required": [
          "schemaId",
          "tag"
        ]
      },
      "OfferCredentialAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "value": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "value"
        ]
      },
      "OfferCredentialRequestDto": {
        "type": "object",
        "properties": {
          "connectionId": {
            "type": "string",
            "example": "6464b521-005a-4379-91e0-a3692b31cafd"
          },
          "credentialDefinitionId": {
            "type": "string"
          },
          "attributes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OfferCredentialAttributes"
            }
          }
        },
        "required": [
          "credentialDefinitionId",
          "attributes"
        ]
      },
      "CredentialRecordDto": {
        "type": "object",
        "properties": {
          "state": {
            "enum": [
              "proposal-sent",
              "proposal-received",
              "offer-sent",
              "offer-received",
              "declined",
              "request-sent",
              "request-received",
              "credential-issued",
              "credential-received",
              "done",
              "abandoned"
            ],
            "type": "string"
          },
          "credentialRecordType": {
            "type": "string"
          },
          "connectionId": {
            "type": "string"
          },
          "attributes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OfferCredentialAttributes"
            }
          },
          "tags": {
            "type": "object"
          },
          "id": {
            "type": "string"
          },
          "createdAt": {
            "format": "date-time",
            "type": "string"
          },
          "updatedAt": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "state",
          "credentialRecordType",
          "tags",
        ]
      },
      "CredentialOfferResponseDto": {
        "type": "object",
        "properties": {
          "credentialUrl": {
            "type": "string",
            "nullable": true
          },
          "shortCredentialUrl": {
            "type": "string",
            "nullable": true
          },
          "credentialRecord": {
            "$ref": "#/components/schemas/CredentialRecordDto"
          }
        },
        "required": [
          "credentialUrl",
          "shortCredentialUrl",
          "credentialRecord"
        ]
      },
      "CredentialFormatDataDto": {
        "type": "object",
        "properties": {
          "proposalAttributes": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "offerAttributes": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "anoncredsProposal": {
            "type": "object"
          },
          "anoncredsOffer": {
            "type": "object"
          },
          "anoncredsRequest": {
            "type": "object"
          },
          "anoncredsCredential": {
            "type": "object"
          }
        }
      },
      "AcceptCredentialDto": {
        "type": "object",
        "properties": {
          "credentialId": {
            "type": "string"
          },
          "credentialUrl": {
            "type": "string"
          }
        },
        "required": [
          "credentialId",
          "credentialUrl"
        ]
      },
      "MakeBasicMessageRequestDto": {
        "type": "object",
        "properties": {
          "connectionId": {
            "type": "string",
            "example": "6464b521-005a-4379-91e0-a3692b31cafd"
          },
          "message": {
            "type": "string",
            "example": "hello world"
          }
        },
        "required": [
          "connectionId",
        ]
      },
      "MessageRecordDto": {
        "type": "object",
        "properties": {
          "connectionId": {
            "type": "string",
            "example": "6464b521-005a-4379-91e0-a3692b31cafd"
          },
          "role": {
            "enum": [
              "sender",
              "receiver"
            ],
            "type": "string"
          },
          "sentTime": {
            "type": "string"
          },
          "from": {
            "type": "string",
            "example": "example-ocm-name"
          },
          "to": {
            "type": "string",
            "example": "example-ocm-name"
          },
          "content": {
            "type": "string",
            "example": "hello world"
          },
          "id": {
            "type": "string"
          },
          "createdAt": {
            "format": "date-time",
            "type": "string"
          },
          "updatedAt": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "connectionId",
          "role",
          "sentTime",
          "content",
        ]
      },
      "ProofRecordDto": {
        "type": "object",
        "properties": {
          "connectionId": {
            "type": "string"
          },
          "state": {
            "enum": [
              "proposal-sent",
              "proposal-received",
              "request-sent",
              "request-received",
              "presentation-sent",
              "presentation-received",
              "declined",
              "abandoned",
              "done"
            ],
            "type": "string"
          },
          "tags": {
            "type": "object"
          },
          "id": {
            "type": "string"
          },
          "createdAt": {
            "format": "date-time",
            "type": "string"
          },
          "updatedAt": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "state",
          "tags",
        ]
      },
      "ProofFormatDataDto": {
        "type": "object",
        "properties": {
          "anoncredsProposal": {
            "type": "object"
          },
          "anoncredsRequest": {
            "type": "object"
          },
          "anoncredsPresentation": {
            "type": "object"
          }
        }
      },
      "RequestProofAttribute": {
        "type": "object",
        "properties": {
          "attributeName": {
            "type": "string"
          },
          "credentialDefinitionId": {
            "type": "string"
          },
          "schemaId": {
            "type": "string"
          }
        },
        "required": [
          "attributeName",
          "credentialDefinitionId",
          "schemaId"
        ]
      },
      "RequestProofDto": {
        "type": "object",
        "properties": {
          "connectionId": {
            "type": "string",
            "example": "6464b521-005a-4379-91e0-a3692b31cafd"
          },
          "attributes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RequestProofAttribute"
            }
          }
        },
        "required": [
          "attributes"
        ]
      },
      "RequestProofResponseDto": {
        "type": "object",
        "properties": {
          "proofUrl": {
            "type": "string",
            "nullable": true
          },
          "shortProofUrl": {
            "type": "string",
            "nullable": true
          },
          "proofRecord": {
            "$ref": "#/components/schemas/ProofRecordDto"
          }
        },
        "required": [
          "proofUrl",
          "shortProofUrl",
          "proofRecord"
        ]
      },
      "AcceptProofDto": {
        "type": "object",
        "properties": {
          "proofId": {
            "type": "string"
          },
          "proofUrl": {
            "type": "string"
          }
        },
        "required": [
          "proofId",
          "proofUrl"
        ]
      }
    }
  }
}