Skip to content

Commit

Permalink
feat: rename prism-agent to cloud-agent (#1019)
Browse files Browse the repository at this point in the history
Signed-off-by: Yurii Shynbuiev <yurii.shynbuiev@iohk.io>
Signed-off-by: Hyperledger Bot <hyperledger-bot@hyperledger.org>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Hyperledger Bot <hyperledger-bot@hyperledger.org>
  • Loading branch information
3 people committed May 8, 2024
1 parent d674f31 commit 74560da
Show file tree
Hide file tree
Showing 51 changed files with 279 additions and 397 deletions.
2 changes: 1 addition & 1 deletion cloud-agent/client/typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@hyperledger/cloud-agent-client-ts",
"name": "@hyperledger/identus-cloud-agent-client-ts",
"version": "0.0.1",
"description": "TypeScript OpenAPI client for Identus Cloud Agent",
"author": "allain.magyar@iohk.io",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ agent {
port = 8085
port =${?AGENT_HTTP_PORT}
}
publicEndpointUrl = "https://host.docker.internal:8080/prism-agent"
publicEndpointUrl = "https://host.docker.internal:8080/cloud-agent"
publicEndpointUrl = ${?REST_SERVICE_URL}
}
didCommEndpoint {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,19 @@ object MainApp extends ZIOAppDefault {
val app = for {
_ <- Console
.printLine(s"""
|██████╗ ██████╗ ██╗███████╗███╗ ███╗
|██╔══██╗██╔══██╗██║██╔════╝████╗ ████║
|██████╔╝██████╔╝██║███████╗██╔████╔██║
|██╔═══╝ ██╔══██╗██║╚════██║██║╚██╔╝██║
|██║ ██║ ██║██║███████║██║ ╚═╝ ██║
|╚═╝ ╚═╝ ╚═╝╚═╝╚══════╝╚═╝ ╚═╝
|██╗██████╗ ███████╗███╗ ██╗████████╗██╗ ██╗███████╗
|██║██╔══██╗██╔════╝████╗ ██║╚══██╔══╝██║ ██║██╔════╝
|██║██║ ██║█████╗ ██╔██╗ ██║ ██║ ██║ ██║███████╗
|██║██║ ██║██╔══╝ ██║╚██╗██║ ██║ ██║ ██║╚════██║
|██║██████╔╝███████╗██║ ╚████║ ██║ ╚██████╔╝███████║
|╚═╝╚═════╝ ╚══════╝╚═╝ ╚═══╝ ╚═╝ ╚═════╝ ╚══════╝
|
| ██████╗██╗ ██████╗ ██╗ ██╗██████╗
|██╔════╝██║ ██╔═══██╗██║ ██║██╔══██╗
|██║ ██║ ██║ ██║██║ ██║██║ ██║
|██║ ██║ ██║ ██║██║ ██║██║ ██║
|╚██████╗███████╗╚██████╔╝╚██████╔╝██████╔╝
| ╚═════╝╚══════╝ ╚═════╝ ╚═════╝ ╚═════╝
|
| █████╗ ██████╗ ███████╗███╗ ██╗████████╗
|██╔══██╗██╔════╝ ██╔════╝████╗ ██║╚══██╔══╝
Expand All @@ -122,7 +129,7 @@ object MainApp extends ZIOAppDefault {
|██║ ██║╚██████╔╝███████╗██║ ╚████║ ██║
|╚═╝ ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═══╝ ╚═╝
|
|version: ${BuildInfo.version}
|version: ${buildinfo.BuildInfo.version}
|
|""".stripMargin)
.ignore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ object DocModels {
.openapi("3.0.3")
.info(
Info(
title = "Open Enterprise Agent API Reference",
title = "Identus Cloud Agent API Reference",
version = "1.0", // Will be replaced dynamically by 'Tapir2StaticOAS'
summary = None,
description = Some("""
|The Open Enterprise Agent API facilitates the integration and management of self-sovereign identity capabilities within applications.
|The Identus Cloud Agent API facilitates the integration and management of self-sovereign identity capabilities within applications.
|It supports DID (Decentralized Identifiers) management, verifiable credential exchange, and secure messaging based on DIDComm standards.
|The API is designed to be interoperable with various blockchain and DLT (Distributed Ledger Technology) platforms, ensuring wide compatibility and flexibility.
|Key features include connection management, credential issuance and verification, and secure, privacy-preserving communication between entities.
Expand All @@ -81,11 +81,14 @@ object DocModels {
)
.servers(
List(
Server(url = "http://localhost:8085", description = Some("Local Prism Agent")),
Server(url = "http://localhost/prism-agent", description = Some("Local Prism Agent with APISIX proxy")),
Server(url = "http://localhost:8085", description = Some("The local instance of the Cloud Agent")),
Server(
url = "https://k8s-dev.atalaprism.io/prism-agent",
description = Some("Prism Agent on the Staging Environment")
url = "http://localhost/cloud-agent",
description = Some("The local instance of the Cloud Agent behind the APISIX proxy")
),
Server(
url = "https://k8s-dev.atalaprism.io/cloud-agent",
description = Some("The Cloud Agent in the Staging Environment")
),
)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ object ConnectionsPage {
object self
extends Annotation[String](
description = "The URL that uniquely identifies the resource being returned in the response.",
example = "/prism-agent/connections?offset=10&limit=10"
example = "/cloud-agent/connections?offset=10&limit=10"
)

object pageOf
Expand All @@ -70,14 +70,14 @@ object ConnectionsPage {
extends Annotation[String](
description =
"An optional string field containing the URL of the next page of results. If the API response does not contain any more pages, this field should be set to None.",
example = "/prism-agent/connections?offset=20&limit=10"
example = "/cloud-agent/connections?offset=20&limit=10"
)

object previous
extends Annotation[String](
description =
"An optional string field containing the URL of the previous page of results. If the API response is the first page of results, this field should be set to None.",
example = "/prism-agent/connections?offset=0&limit=10"
example = "/cloud-agent/connections?offset=0&limit=10"
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ object EntityResponse {
object self
extends Annotation[String](
description = "The `self` link of the entity.",
example = "http://localhost:8080/prism-agent/iam/entities/00000000-0000-0000-0000-000000000000"
example = "http://localhost:8080/cloud-agent/iam/entities/00000000-0000-0000-0000-000000000000"
)

object id
Expand Down Expand Up @@ -103,7 +103,7 @@ object EntityResponse {

val Example = EntityResponse(
kind = "Entity",
self = "/prism-agent/iam/entities/00000000-0000-0000-0000-000000000000",
self = "/cloud-agent/iam/entities/00000000-0000-0000-0000-000000000000",
id = UUID.fromString("00000000-0000-0000-0000-000000000000"),
name = "John Doe",
walletId = UUID.fromString("00000000-0000-0000-0000-000000000000"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,27 +69,27 @@ object EntityResponsePage {
object self
extends Annotation[String](
description = "A string field containing the URL of the current API endpoint",
example = "/prism-agent/schema-registry/schemas?skip=10&limit=10"
example = "/cloud-agent/schema-registry/schemas?skip=10&limit=10"
)

object pageOf
extends Annotation[String](
description = "A string field indicating the type of resource that the contents field contains",
example = "/prism-agent/schema-registry/schemas"
example = "/cloud-agent/schema-registry/schemas"
)

object next
extends Annotation[String](
description = "An optional string field containing the URL of the next page of results. " +
"If the API response does not contain any more pages, this field should be set to None.",
example = "/prism-agent/schema-registry/schemas?skip=20&limit=10"
example = "/cloud-agent/schema-registry/schemas?skip=20&limit=10"
)

object previous
extends Annotation[String](
description = "An optional string field containing the URL of the previous page of results. " +
"If the API response is the first page of results, this field should be set to None.",
example = "/prism-agent/schema-registry/schemas?skip=0&limit=10"
example = "/cloud-agent/schema-registry/schemas?skip=0&limit=10"
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ object CreateIssueCredentialRecordRequest {
|Note that this parameter only applies when the offer is of type 'JWT'.
|""".stripMargin,
example = Some(
"https://agent-host.com/prism-agent/schema-registry/schemas/d9569cec-c81e-4779-aa86-0d5994d82676/schema"
"https://agent-host.com/cloud-agent/schema-registry/schemas/d9569cec-c81e-4779-aa86-0d5994d82676/schema"
)
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,27 +70,27 @@ object IssueCredentialRecordPage {
object self
extends Annotation[String](
description = "The URL that uniquely identifies the resource being returned in the response.",
example = "/prism-agent/issue-credentials/records?offset=10&limit=10"
example = "/cloud-agent/issue-credentials/records?offset=10&limit=10"
)

object pageOf
extends Annotation[String](
description = "A string field indicating the type of resource that the contents field contains.",
example = "/prism-agent/issue-credentials/records"
example = "/cloud-agent/issue-credentials/records"
)

object next
extends Annotation[String](
description =
"An optional string field containing the URL of the next page of results. If the API response does not contain any more pages, this field should be set to None.",
example = "/prism-agent/issue-credentials/records?offset=20&limit=10"
example = "/cloud-agent/issue-credentials/records?offset=20&limit=10"
)

object previous
extends Annotation[String](
description =
"An optional string field containing the URL of the previous page of results. If the API response is the first page of results, this field should be set to None.",
example = "/prism-agent/issue-credentials/records?offset=0&limit=10"
example = "/cloud-agent/issue-credentials/records?offset=0&limit=10"
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ object CredentialDefinitionResponse {
object self
extends Annotation[String](
description = "The URL that uniquely identifies the resource being returned in the response.",
example = "/prism-agent/credential-definition-registry/schemas/0527aea1-d131-3948-a34d-03af39aba8b4"
example = "/cloud-agent/credential-definition-registry/schemas/0527aea1-d131-3948-a34d-03af39aba8b4"
)

object kind
Expand Down Expand Up @@ -187,7 +187,7 @@ object CredentialDefinitionResponse {
extends Annotation[Option[String]](
description = "The unique identifier of the schema used for this credential definition.",
example =
Some("https://agent-host.com/prism-agent/schema-registry/schemas/d9569cec-c81e-4779-aa86-0d5994d82676")
Some("https://agent-host.com/cloud-agent/schema-registry/schemas/d9569cec-c81e-4779-aa86-0d5994d82676")
)

object authored
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,27 +70,27 @@ object CredentialDefinitionResponsePage {
object self
extends Annotation[String](
description = "A string field containing the URL of the current API endpoint",
example = "/prism-agent/credential-definition-registry/definitions?skip=10&limit=10"
example = "/cloud-agent/credential-definition-registry/definitions?skip=10&limit=10"
)

object pageOf
extends Annotation[String](
description = "A string field indicating the type of resource that the contents field contains",
example = "/prism-agent/credential-definition-registry/definitions"
example = "/cloud-agent/credential-definition-registry/definitions"
)

object next
extends Annotation[String](
description = "An optional string field containing the URL of the next page of results. " +
"If the API response does not contain any more pages, this field should be set to None.",
example = "/prism-agent/credential-definition-registry/definitions?skip=20&limit=10"
example = "/cloud-agent/credential-definition-registry/definitions?skip=20&limit=10"
)

object previous
extends Annotation[String](
description = "An optional string field containing the URL of the previous page of results. " +
"If the API response is the first page of results, this field should be set to None.",
example = "/prism-agent/credential-definition-registry/definitions?skip=0&limit=10"
example = "/cloud-agent/credential-definition-registry/definitions?skip=0&limit=10"
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ object CredentialSchemaResponse {
object self
extends Annotation[String](
description = "The URL that uniquely identifies the resource being returned in the response.",
example = "/prism-agent/schema-registry/schemas/0527aea1-d131-3948-a34d-03af39aba8b4"
example = "/cloud-agent/schema-registry/schemas/0527aea1-d131-3948-a34d-03af39aba8b4"
)
object kind
extends Annotation[String](
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,27 +64,27 @@ object CredentialSchemaResponsePage {
object self
extends Annotation[String](
description = "A string field containing the URL of the current API endpoint",
example = "/prism-agent/schema-registry/schemas?skip=10&limit=10"
example = "/cloud-agent/schema-registry/schemas?skip=10&limit=10"
)

object pageOf
extends Annotation[String](
description = "A string field indicating the type of resource that the contents field contains",
example = "/prism-agent/schema-registry/schemas"
example = "/cloud-agent/schema-registry/schemas"
)

object next
extends Annotation[String](
description = "An optional string field containing the URL of the next page of results. " +
"If the API response does not contain any more pages, this field should be set to None.",
example = "/prism-agent/schema-registry/schemas?skip=20&limit=10"
example = "/cloud-agent/schema-registry/schemas?skip=20&limit=10"
)

object previous
extends Annotation[String](
description = "An optional string field containing the URL of the previous page of results. " +
"If the API response is the first page of results, this field should be set to None.",
example = "/prism-agent/schema-registry/schemas?skip=0&limit=10"
example = "/cloud-agent/schema-registry/schemas?skip=0&limit=10"
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ object VerificationPolicyResponse {
object self
extends Annotation[String](
description = "The URL that uniquely identifies the resource being returned in the response.",
example = "/prism-agent/verification/policies/0527aea1-d131-3948-a34d-03af39aba8b4"
example = "/cloud-agent/verification/policies/0527aea1-d131-3948-a34d-03af39aba8b4"
)

object kind
Expand Down Expand Up @@ -229,7 +229,7 @@ object VerificationPolicyResponse {
}

val example = VerificationPolicyResponse(
self = "/prism-agent/verification/policies",
self = "/cloud-agent/verification/policies",
kind = "VerificationPolicy",
id = UUID.fromString("0527aea1-d131-3948-a34d-03af39aba8b4"),
nonce = 0,
Expand Down Expand Up @@ -286,7 +286,7 @@ object VerificationPolicyResponsePage {
object self
extends Annotation[String](
description = "The URL that uniquely identifies the resource being returned in the response.",
example = "/prism-agent/verification/policies?name=Trusted&offset=0&limit=10"
example = "/cloud-agent/verification/policies?name=Trusted&offset=0&limit=10"
)

object kind
Expand All @@ -298,21 +298,21 @@ object VerificationPolicyResponsePage {
object pageOf
extends Annotation[String](
description = "A string field indicating the type of resource that the contents field contains",
example = "/prism-agent/verification/policies"
example = "/cloud-agent/verification/policies"
)

object next
extends Annotation[String](
description = "An optional string field containing the URL of the next page of results. " +
"If the API response does not contain any more pages, this field should be set to None.",
example = "/prism-agent/verification/policies?skip=20&limit=10"
example = "/cloud-agent/verification/policies?skip=20&limit=10"
)

object previous
extends Annotation[String](
description = "An optional string field containing the URL of the previous page of results. " +
"If the API response is the first page of results, this field should be set to None.",
example = "/prism-agent/verification/policies?skip=0&limit=10"
example = "/cloud-agent/verification/policies?skip=0&limit=10"
)
object contents
extends Annotation[Seq[VerificationPolicyResponse]](
Expand All @@ -323,11 +323,11 @@ object VerificationPolicyResponsePage {
}

val example = VerificationPolicyResponsePage(
self = "/prism-agent/verification/policies?name=Trusted&offset=0&limit=10",
self = "/cloud-agent/verification/policies?name=Trusted&offset=0&limit=10",
kind = "VerificationPolicyPage",
pageOf = "/prism-agent/verification/policies",
next = Some("/prism-agent/verification/policies?skip=20&limit=10"),
previous = Some("/prism-agent/verification/policies?skip=0&limit=10"),
pageOf = "/cloud-agent/verification/policies",
next = Some("/cloud-agent/verification/policies?skip=20&limit=10"),
previous = Some("/cloud-agent/verification/policies?skip=0&limit=10"),
contents = List(VerificationPolicyResponse.example)
)
}
Expand Down

0 comments on commit 74560da

Please sign in to comment.