Skip to content

Commit a04f1e9

Browse files
committed
fix: remove ai
1 parent dfb8680 commit a04f1e9

File tree

4 files changed

+8
-319
lines changed

4 files changed

+8
-319
lines changed

agent/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"name": "agent",
33
"packageManager": "[email protected]+sha512.1f79bc245a66eb0b07c5d4d83131240774642caaa86ef7d0434ab47c0d16f66b04e21e0c086eb61e62c77efc4d7f7ec071afad3796af64892fae66509173893a",
44
"dependencies": {
5-
"@ai-sdk/anthropic": "^1.2.12",
65
"@animo-id/mdoc": "^0.5.2",
76
"@credo-ts/askar": "0.6.0-alpha-20250324131619",
87
"@credo-ts/core": "0.6.0-alpha-20250324131619",
@@ -11,7 +10,6 @@
1110
"@openwallet-foundation/askar-nodejs": "^0.3.2",
1211
"@openwallet-foundation/askar-shared": "^0.3.2",
1312
"@peculiar/x509": "^1.14.2",
14-
"ai": "^4.3.19",
1513
"cors": "^2.8.5",
1614
"dotenv": "^16.6.1",
1715
"express": "^4.21.2",

agent/src/ai.ts

Lines changed: 0 additions & 118 deletions
This file was deleted.

agent/src/endpoints.ts

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import { type OpenId4VcVerificationSessionRecord, OpenId4VcVerificationSessionSt
1818
import express, { type NextFunction, type Request, type Response } from 'express'
1919
import z from 'zod'
2020
import { agent } from './agent'
21-
import { validateVerificationRequest, zValidateVerificationRequestSchema } from './ai'
2221
import {
2322
funkeDeployedAccessCertificate,
2423
funkeDeployedAccessCertificateRoot,
@@ -539,24 +538,3 @@ apiRouter.use((error: Error, _request: Request, response: Response, _next: NextF
539538
error: error.message,
540539
})
541540
})
542-
543-
apiRouter.post('/validate-verification-request', async (request: Request, response: Response) => {
544-
try {
545-
const validateVerificationRequestBody = zValidateVerificationRequestSchema.parse(request.body)
546-
const result = await validateVerificationRequest(validateVerificationRequestBody)
547-
return response.json(result)
548-
} catch (error) {
549-
if (error instanceof z.ZodError) {
550-
return response.status(400).json({
551-
error: 'Invalid request body',
552-
details: error.errors,
553-
})
554-
}
555-
556-
console.error('Error validating verification request:', error)
557-
return response.status(500).json({
558-
error: 'Internal server error during verification validation',
559-
message: error instanceof Error ? error.message : 'Unknown error',
560-
})
561-
}
562-
})

0 commit comments

Comments
 (0)