Skip to content

Commit

Permalink
chore: sync develop changes
Browse files Browse the repository at this point in the history
Signed-off-by: Krishna Waske <[email protected]>
  • Loading branch information
GHkrishna committed Oct 10, 2024
1 parent 33f55c3 commit 555f8f3
Show file tree
Hide file tree
Showing 36 changed files with 38 additions and 886 deletions.
1 change: 0 additions & 1 deletion .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -184,4 +184,3 @@ SOVRIN_STAGING_NET=`{"reqSignature":{},"txn":{"data":{"data":{"alias":"australia
{"reqSignature":{"type":"ED25519","values":[{"from":"6feBTywcmJUriqqnGc1zSJ","value":"2wMAYGVoSt3ZtU3CzcvhzMAQ2EFhZvPwBsGKqpNmWvKVWbFeyC6yMZxHCVdtj2fqfj36FJkvPKkh3gwmvvrt6eeW"}]},"txn":{"data":{"data":{"alias":"virginia","services":[]},"dest":"EoGRm7eRADtHJRThMCrBXMUM2FpPRML19tNxDAG8YTP8"},"metadata":{"digest":"4ee79b267e7a5aa9ca96ee667f75dadfafdf1238c2841d2d5fa28accf542331c","from":"6feBTywcmJUriqqnGc1zSJ","payloadDigest":"1b4afb24a5d19cf90eb41bb9c265610a6922c6e0aa59386dc3af2016988f4dc6","reqId":1558034311268528084},"protocolVersion":2,"type":"0"},"txnMetadata":{"seqNo":133,"txnTime":1558034311},"ver":"1"}
{"reqSignature":{"type":"ED25519","values":[{"from":"6feBTywcmJUriqqnGc1zSJ","value":"3QyhWLE53fg8wsNRFJijV6QKax2deCAzhUa1g152KYJ7exk1iqv6mLsHtY5KXNiXLg1a8vxQiFj8Hp8iRb7CXrCA"}]},"txn":{"data":{"data":{"alias":"RFCU","services":[]},"dest":"2B8bkZX3SvcBq3amP7aeATsSPz82RyyCJQbEjZpLgZLh"},"metadata":{"digest":"58c132bc0b8c96fb7628e8b7af9a9086ff2b2c894091090f88eb328ee945fe28","from":"6feBTywcmJUriqqnGc1zSJ","payloadDigest":"64b6882e3cbf71154369d91f9da431d069b465116dada6ba685928cd11c7b9e3","reqId":1558034435821210238},"protocolVersion":2,"type":"0"},"txnMetadata":{"seqNo":134,"txnTime":1558034436},"ver":"1"}
`

2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,4 @@ COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/patches ./patches

# Set entry point
ENTRYPOINT ["node", "./bin/afj-rest.js", "start"]
ENTRYPOINT ["node", "./bin/afj-rest.js", "start"]
2 changes: 1 addition & 1 deletion jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ const config: Config.InitialOptions = {
testTimeout: 120000,
}

export default config
export default config
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,4 @@
"engines": {
"node": "18.19.0"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -269,4 +269,4 @@ index 3b37667..931bcc6 100644
+export interface AnonCredsResolutionMetadata extends CredoExtensible {
error?: 'invalid' | 'notFound' | 'unsupportedAnonCredsMethod' | string;
message?: string;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ index d12468b..ae70f36 100644
+ prettyVc?: any;
[key: string]: unknown;
}
/**
/**
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ index 006d870..da56801 100644
+ //ps.validatePresentation(request.presentation_definition, parsedPresentation);
let verificationResult;
// FIXME: for some reason it won't accept the input if it doesn't know
// whether it's a JWT or JSON-LD VP even though the input is the same.
// whether it's a JWT or JSON-LD VP even though the input is the same.
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ index fb1fb9d..b519694 100644
- connectionId: connection === null || connection === void 0 ? void 0 : connection.id,
});
const formatServices = this.getFormatServicesFromMessage(proposalMessage.formats);
if (formatServices.length === 0) {
if (formatServices.length === 0) {
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ index d491d4e..d60ec79 100644
+ }
const shouldUpdate = !(0, core_1.isStorageUpToDate)(tenantRecord.storageVersion);
// If the tenant storage is not up to date, and autoUpdate is disabled we throw an error
if (shouldUpdate && !this.rootAgentContext.config.autoUpdateStorageOnStartup) {
if (shouldUpdate && !this.rootAgentContext.config.autoUpdateStorageOnStartup) {
2 changes: 1 addition & 1 deletion scripts/taskdef/credo-ecs-taskdef.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,4 @@
}
}
]
}
}
2 changes: 1 addition & 1 deletion scripts/taskdef/credo-fargate-taskdef.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,4 @@
}
}
]
}
}
2 changes: 1 addition & 1 deletion src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,4 +253,4 @@ export async function runCliServer() {
fileServerUrl: parsed.fileServerUrl,
fileServerToken: parsed.fileServerToken,
} as AriesRestConfig)
}
}
2 changes: 1 addition & 1 deletion src/cliAgent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -440,4 +440,4 @@ export async function runRestAgent(restConfig: AriesRestConfig) {
app.listen(adminPort, () => {
logger.info(`Successfully started server on port ${adminPort}`)
})
}
}
2 changes: 1 addition & 1 deletion src/controllers/agent/AgentController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ export class AgentController extends Controller {
throw ErrorHandlingService.handle(error)
}
}
}
}
2 changes: 1 addition & 1 deletion src/controllers/basic-messages/BasicMessageController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ export class BasicMessageController extends Controller {
throw ErrorHandlingService.handle(error)
}
}
}
}
2 changes: 1 addition & 1 deletion src/controllers/connections/ConnectionController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,4 +149,4 @@ export class ConnectionController extends Controller {
throw ErrorHandlingService.handle(error)
}
}
}
}
2 changes: 1 addition & 1 deletion src/controllers/credentials/CredentialController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,4 +295,4 @@ export class CredentialController extends Controller {
throw ErrorHandlingService.handle(error)
}
}
}
}
2 changes: 1 addition & 1 deletion src/controllers/did/DidController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -440,4 +440,4 @@ export class DidController extends Controller {
throw ErrorHandlingService.handle(error)
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -188,4 +188,4 @@ export class EndorserTransactionController extends Controller {
}
return credentialDefinitionState
}
}
}
2 changes: 1 addition & 1 deletion src/controllers/examples.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,4 +301,4 @@ export const CredentialDefinitionExample = {
y: 'string',
},
},
}
}
2 changes: 1 addition & 1 deletion src/controllers/multi-tenancy/MultiTenancyController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1888,4 +1888,4 @@ export class MultiTenancyController extends Controller {
throw ErrorHandlingService.handle(error)
}
}
}
}
2 changes: 1 addition & 1 deletion src/controllers/outofband/OutOfBandController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -321,4 +321,4 @@ export class OutOfBandController extends Controller {
throw ErrorHandlingService.handle(error)
}
}
}
}
2 changes: 1 addition & 1 deletion src/controllers/polygon/PolygonController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,4 +141,4 @@ export class Polygon extends Controller {
throw ErrorHandlingService.handle(error)
}
}
}
}
2 changes: 1 addition & 1 deletion src/controllers/proofs/ProofController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,4 +279,4 @@ export class ProofController extends Controller {
throw ErrorHandlingService.handle(error)
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,4 @@ export class QuestionAnswerController extends Controller {
throw ErrorHandlingService.handle(error)
}
}
}
}
2 changes: 1 addition & 1 deletion src/controllers/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -387,4 +387,4 @@ export interface SchemaMetadata {
/**
* @example "ea4e5e69-fc04-465a-90d2-9f8ff78aa71d"
*/
export type ThreadId = string
export type ThreadId = string
2 changes: 1 addition & 1 deletion src/enums/enum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@ export enum HttpStatusCode {
export declare enum CustomHandshakeProtocol {
DidExchange = 'https://didcomm.org/didexchange/1.1',
Connections = 'https://didcomm.org/connections/1.0',
}
}
2 changes: 1 addition & 1 deletion src/errorHandlingService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@ class ErrorHandlingService {
}
}

export default ErrorHandlingService
export default ErrorHandlingService
2 changes: 1 addition & 1 deletion src/events/CredentialEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ export const credentialEvents = async (agent: Agent<RestMultiTenantAgentModules>
})
}
})
}
}
2 changes: 1 addition & 1 deletion src/events/ProofEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ export const proofEvents = async (agent: Agent, config: ServerConfig) => {
})
}
})
}
}
2 changes: 1 addition & 1 deletion src/events/ReuseConnectionEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ export const reuseConnectionEvents = async (agent: Agent, config: ServerConfig)
})
}
})
}
}
2 changes: 1 addition & 1 deletion src/routes/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4822,4 +4822,4 @@ export function RegisterRoutes(app: Router) {
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
}

// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
4 changes: 1 addition & 3 deletions src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ import { ValidateError } from 'tsoa'

dotenv.config()

dotenv.config()

export const setupServer = async (agent: Agent, config: ServerConfig, apiKey?: string) => {
container.registerInstance(Agent, agent)
fs.writeFileSync('config.json', JSON.stringify(config, null, 2))
Expand Down Expand Up @@ -105,4 +103,4 @@ export const setupServer = async (agent: Agent, config: ServerConfig, apiKey?: s
})

return app
}
}
2 changes: 1 addition & 1 deletion src/utils/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,4 +146,4 @@ export const setupAgent = async ({ name, endpoints, port }: { name: string; endp
await agent.initialize()

return agent
}
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
"types": ["jest", "node"]
},
"exclude": ["node_modules", "build"]
}
}
Loading

0 comments on commit 555f8f3

Please sign in to comment.