Skip to content

Commit

Permalink
fix(database): naming schema fix
Browse files Browse the repository at this point in the history
  • Loading branch information
schaier-io committed Feb 23, 2025
1 parent ba33129 commit 12fe138
Show file tree
Hide file tree
Showing 9 changed files with 677 additions and 508 deletions.
106 changes: 53 additions & 53 deletions frontend/openapi-docs.json

Large diffs are not rendered by default.

38 changes: 19 additions & 19 deletions frontend/src/lib/api/generated/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1377,12 +1377,12 @@ export type DeleteRegistryResponses = {
status: string;
data: {
name: string;
api_url: string;
capability_name: string;
capability_version: string;
apiUrl: string;
capabilityName: string;
capabilityVersion: string;
description: string | null;
requests_per_hour: string | null;
privacy_policy: string | null;
requestsPerHour: string | null;
privacyPolicy: string | null;
terms: string | null;
other: string | null;
tags: Array<string>;
Expand Down Expand Up @@ -1444,10 +1444,10 @@ export type GetRegistryResponses = {
metadata: {
name: string;
description?: string | null;
api_url: string;
example_output?: string | null;
apiUrl: string;
exampleOutput?: string | null;
tags: Array<string>;
requests_per_hour?: string | null;
requestsPerHour?: string | null;
capability: {
name: string;
version: string;
Expand All @@ -1458,7 +1458,7 @@ export type GetRegistryResponses = {
organization?: string | null;
};
legal?: {
privacy_policy?: string | null;
privacyPolicy?: string | null;
terms?: string | null;
other?: string | null;
} | null;
Expand All @@ -1467,7 +1467,7 @@ export type GetRegistryResponses = {
unit: string;
}>;
image: string;
metadata_version: number;
metadataVersion: number;
};
}>;
};
Expand All @@ -1494,7 +1494,7 @@ export type PostRegistryData = {
/**
* Link to a example output of the agent
*/
example_output?: string;
exampleOutput?: string;
/**
* Tags used in the registry metadata
*/
Expand All @@ -1506,7 +1506,7 @@ export type PostRegistryData = {
/**
* Base URL of the agent, to request interactions
*/
api_url: string;
apiUrl: string;
/**
* Description of the agent
*/
Expand All @@ -1521,7 +1521,7 @@ export type PostRegistryData = {
/**
* The request the agent can handle per hour
*/
requests_per_hour: string;
requestsPerHour: string;
/**
* Price for a default interaction
*/
Expand All @@ -1533,7 +1533,7 @@ export type PostRegistryData = {
* Legal information about the agent
*/
legal?: {
privacy_policy?: string;
privacyPolicy?: string;
terms?: string;
other?: string;
};
Expand All @@ -1559,12 +1559,12 @@ export type PostRegistryResponses = {
status: string;
data: {
name: string;
api_url: string;
capability_name: string;
capability_version: string;
apiUrl: string;
capabilityName: string;
capabilityVersion: string;
description: string | null;
requests_per_hour: string | null;
privacy_policy: string | null;
requestsPerHour: string | null;
privacyPolicy: string | null;
terms: string | null;
other: string | null;
tags: Array<string>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,17 +131,17 @@ CREATE TABLE "RegistryRequest" (
"paymentSourceId" TEXT NOT NULL,
"smartContractWalletId" TEXT NOT NULL,
"name" TEXT NOT NULL,
"api_url" TEXT NOT NULL,
"capability_name" TEXT NOT NULL,
"capability_version" TEXT NOT NULL,
"apiUrl" TEXT NOT NULL,
"capabilityName" TEXT NOT NULL,
"capabilityVersion" TEXT NOT NULL,
"description" TEXT,
"requests_per_hour" TEXT,
"privacy_policy" TEXT,
"requestsPerHour" TEXT,
"privacyPolicy" TEXT,
"terms" TEXT,
"other" TEXT,
"author_name" TEXT NOT NULL,
"author_contact" TEXT,
"author_organization" TEXT,
"authorName" TEXT NOT NULL,
"authorContact" TEXT,
"authorOrganization" TEXT,
"tags" TEXT[],
"agentIdentifier" TEXT,
"state" "RegistrationState" NOT NULL,
Expand Down
28 changes: 14 additions & 14 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -154,20 +154,20 @@ model RegistryRequest {
SmartContractWallet HotWallet @relation(fields: [smartContractWalletId], references: [id], onDelete: Restrict)
smartContractWalletId String
name String
api_url String
capability_name String
capability_version String
description String?
requests_per_hour String?
privacy_policy String?
terms String?
other String?
author_name String
author_contact String?
author_organization String?
name String
apiUrl String
capabilityName String
capabilityVersion String
description String?
requestsPerHour String?
privacyPolicy String?
terms String?
other String?
authorName String
authorContact String?
authorOrganization String?
tags String[]
Pricing AgentPricing[]
Expand Down
1 change: 0 additions & 1 deletion prisma/seed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ export const seed = async (prisma: PrismaClient) => {
},
where: { token: adminKey },
});

console.log('ADMIN_KEY seeded');
} else {
console.log('ADMIN_KEY is not seeded. Provide ADMIN_KEY in .env');
Expand Down
Loading

0 comments on commit 12fe138

Please sign in to comment.