-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathagent.yml
132 lines (120 loc) · 3.77 KB
/
agent.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
version: 3.0
constants:
baseUrl: http://localhost:3435
port: 3435
methods:
- addLinkedDomainsService
- getDidConfigurationResource
- issueDidConfigurationResource
- issueDomainLinkageCredential
- registerCredentialIssuance
- removeCredentialIssuance
- saveDidConfigurationResource
- crmAddCredential
- crmUpdateCredentialState
- crmGetCredential
- crmGetCredentials
- crmStoreCredential
- crmDeleteCredential
- crmDeleteCredentials
- crmGetCredentialsByClaims
- crmGetCredentialsByClaimsCount
dbConnection:
$require: typeorm?t=function#createConnection
$args:
- type: sqlite
database: ':memory:'
synchronize: false
migrationsRun: true
migrations:
$require: './packages/ssi-sdk-core/dist?t=function#flattenMigrations'
$args:
- migrations:
- $require: '@veramo/data-store?t=object#migrations'
- $require: './packages/data-store?t=object#DataStoreDigitalCredentialMigrations'
- $require: './packages/wellknown-did-issuer/dist?t=object#WellknownDidIssuerMigrations'
entities:
$require: './packages/ssi-sdk-core/dist?t=function#flattenArray'
$args:
- items:
- $require: '@veramo/data-store?t=object#Entities'
- $require: './packages/data-store?t=object#DataStoreDigitalCredentialEntities'
- $require: './packages/wellknown-did-issuer/dist?t=object#WellknownDidIssuerEntities'
server:
baseUrl:
$ref: /constants/baseUrl
port:
$ref: /constants/port
use:
# CORS
- - $require: 'cors'
# Add agent to the request object
- - $require: '@veramo/remote-server?t=function#RequestWithAgentRouter'
$args:
- agent:
$ref: /agent
# API base path
- - /agent
- $require: '@veramo/remote-server?t=function#apiKeyAuth'
$args:
# Please configure your own API key. This is used when executing agent methods through ${baseUrl}/agent or ${baseUrl}/api-docs
- apiKey: test123
- $require: '@veramo/remote-server?t=function#AgentRouter'
$args:
- exposedMethods:
$ref: /constants/methods
# Open API schema
- - /open-api.json
- $require: '@veramo/remote-server?t=function#ApiSchemaRouter'
$args:
- basePath: :3335/agent
securityScheme: bearer
apiName: Agent
apiVersion: '1.0.0'
exposedMethods:
$ref: /constants/methods
# Swagger docs
- - /api-docs
- $require: swagger-ui-express?t=object#serve
- $require: swagger-ui-express?t=function#setup
$args:
- null
- swaggerOptions:
url: '/open-api.json'
# Execute during server initialization
init:
- $require: '@veramo/remote-server?t=function#createDefaultDid'
$args:
- agent:
$ref: /agent
baseUrl:
$ref: /constants/baseUrl
messagingServiceEndpoint: /messaging
# DID Manager
didManager:
$require: '@veramo/did-manager#DIDManager'
$args:
- store:
$require: '@veramo/data-store#DIDStore'
# Credential Manager
credentialStore:
$require: ./packages/credential-store/dist#CredentialStore
$args:
- store:
$require: './packages/data-store/dist#DigitalCredentialStore'
$args:
- $ref: /dbConnection
# Agent
agent:
$require: '@veramo/core#Agent'
$args:
- schemaValidation: false
plugins:
- $ref: /didManager
- $ref: /credentialStore
- $require: '@veramo/data-store#DataStore'
$args:
- $ref: /dbConnection
- $require: ./packages/wellknown-did-issuer/dist#WellKnownDidIssuer
$args:
- $ref: /dbConnection