@keystrokehq/prisma 0.1.3 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/create-connection.cjs +1 -0
- package/dist/actions/create-connection.cjs.map +1 -1
- package/dist/actions/create-connection.d.cts +3 -4
- package/dist/actions/create-connection.d.cts.map +1 -1
- package/dist/actions/create-connection.d.mts +3 -4
- package/dist/actions/create-connection.d.mts.map +1 -1
- package/dist/actions/create-connection.mjs +1 -0
- package/dist/actions/create-connection.mjs.map +1 -1
- package/dist/actions/create-database.cjs +1 -0
- package/dist/actions/create-database.cjs.map +1 -1
- package/dist/actions/create-database.d.cts +3 -6
- package/dist/actions/create-database.d.cts.map +1 -1
- package/dist/actions/create-database.d.mts +3 -6
- package/dist/actions/create-database.d.mts.map +1 -1
- package/dist/actions/create-database.mjs +1 -0
- package/dist/actions/create-database.mjs.map +1 -1
- package/dist/actions/create-project.cjs +1 -0
- package/dist/actions/create-project.cjs.map +1 -1
- package/dist/actions/create-project.d.cts +3 -4
- package/dist/actions/create-project.d.cts.map +1 -1
- package/dist/actions/create-project.d.mts +3 -4
- package/dist/actions/create-project.d.mts.map +1 -1
- package/dist/actions/create-project.mjs +1 -0
- package/dist/actions/create-project.mjs.map +1 -1
- package/dist/actions/delete-connection.cjs +1 -0
- package/dist/actions/delete-connection.cjs.map +1 -1
- package/dist/actions/delete-connection.d.cts +3 -3
- package/dist/actions/delete-connection.d.cts.map +1 -1
- package/dist/actions/delete-connection.d.mts +3 -3
- package/dist/actions/delete-connection.d.mts.map +1 -1
- package/dist/actions/delete-connection.mjs +1 -0
- package/dist/actions/delete-connection.mjs.map +1 -1
- package/dist/actions/delete-database.cjs +1 -0
- package/dist/actions/delete-database.cjs.map +1 -1
- package/dist/actions/delete-database.d.cts +3 -3
- package/dist/actions/delete-database.d.cts.map +1 -1
- package/dist/actions/delete-database.d.mts +3 -3
- package/dist/actions/delete-database.d.mts.map +1 -1
- package/dist/actions/delete-database.mjs +1 -0
- package/dist/actions/delete-database.mjs.map +1 -1
- package/dist/actions/delete-project.cjs +1 -0
- package/dist/actions/delete-project.cjs.map +1 -1
- package/dist/actions/delete-project.d.cts +3 -3
- package/dist/actions/delete-project.d.cts.map +1 -1
- package/dist/actions/delete-project.d.mts +3 -3
- package/dist/actions/delete-project.d.mts.map +1 -1
- package/dist/actions/delete-project.mjs +1 -0
- package/dist/actions/delete-project.mjs.map +1 -1
- package/dist/actions/execute-sql-command.cjs +1 -0
- package/dist/actions/execute-sql-command.cjs.map +1 -1
- package/dist/actions/execute-sql-command.d.cts +3 -5
- package/dist/actions/execute-sql-command.d.cts.map +1 -1
- package/dist/actions/execute-sql-command.d.mts +3 -5
- package/dist/actions/execute-sql-command.d.mts.map +1 -1
- package/dist/actions/execute-sql-command.mjs +1 -0
- package/dist/actions/execute-sql-command.mjs.map +1 -1
- package/dist/actions/execute-sql-query.cjs +1 -0
- package/dist/actions/execute-sql-query.cjs.map +1 -1
- package/dist/actions/execute-sql-query.d.cts +3 -7
- package/dist/actions/execute-sql-query.d.cts.map +1 -1
- package/dist/actions/execute-sql-query.d.mts +3 -7
- package/dist/actions/execute-sql-query.d.mts.map +1 -1
- package/dist/actions/execute-sql-query.mjs +1 -0
- package/dist/actions/execute-sql-query.mjs.map +1 -1
- package/dist/actions/get-database-usage.cjs +1 -0
- package/dist/actions/get-database-usage.cjs.map +1 -1
- package/dist/actions/get-database-usage.d.cts +3 -5
- package/dist/actions/get-database-usage.d.cts.map +1 -1
- package/dist/actions/get-database-usage.d.mts +3 -5
- package/dist/actions/get-database-usage.d.mts.map +1 -1
- package/dist/actions/get-database-usage.mjs +1 -0
- package/dist/actions/get-database-usage.mjs.map +1 -1
- package/dist/actions/get-database.cjs +1 -0
- package/dist/actions/get-database.cjs.map +1 -1
- package/dist/actions/get-database.d.cts +3 -3
- package/dist/actions/get-database.d.cts.map +1 -1
- package/dist/actions/get-database.d.mts +3 -3
- package/dist/actions/get-database.d.mts.map +1 -1
- package/dist/actions/get-database.mjs +1 -0
- package/dist/actions/get-database.mjs.map +1 -1
- package/dist/actions/get-project.cjs +1 -0
- package/dist/actions/get-project.cjs.map +1 -1
- package/dist/actions/get-project.d.cts +3 -3
- package/dist/actions/get-project.d.cts.map +1 -1
- package/dist/actions/get-project.d.mts +3 -3
- package/dist/actions/get-project.d.mts.map +1 -1
- package/dist/actions/get-project.mjs +1 -0
- package/dist/actions/get-project.mjs.map +1 -1
- package/dist/actions/inspect-database-schema.cjs +1 -0
- package/dist/actions/inspect-database-schema.cjs.map +1 -1
- package/dist/actions/inspect-database-schema.d.cts +3 -7
- package/dist/actions/inspect-database-schema.d.cts.map +1 -1
- package/dist/actions/inspect-database-schema.d.mts +3 -7
- package/dist/actions/inspect-database-schema.d.mts.map +1 -1
- package/dist/actions/inspect-database-schema.mjs +1 -0
- package/dist/actions/inspect-database-schema.mjs.map +1 -1
- package/dist/actions/list-accelerate-regions.cjs +1 -0
- package/dist/actions/list-accelerate-regions.cjs.map +1 -1
- package/dist/actions/list-accelerate-regions.d.cts +3 -1
- package/dist/actions/list-accelerate-regions.d.cts.map +1 -1
- package/dist/actions/list-accelerate-regions.d.mts +3 -1
- package/dist/actions/list-accelerate-regions.d.mts.map +1 -1
- package/dist/actions/list-accelerate-regions.mjs +1 -0
- package/dist/actions/list-accelerate-regions.mjs.map +1 -1
- package/dist/actions/list-backups.cjs +1 -0
- package/dist/actions/list-backups.cjs.map +1 -1
- package/dist/actions/list-backups.d.cts +3 -4
- package/dist/actions/list-backups.d.cts.map +1 -1
- package/dist/actions/list-backups.d.mts +3 -4
- package/dist/actions/list-backups.d.mts.map +1 -1
- package/dist/actions/list-backups.mjs +1 -0
- package/dist/actions/list-backups.mjs.map +1 -1
- package/dist/actions/list-connections.cjs +1 -0
- package/dist/actions/list-connections.cjs.map +1 -1
- package/dist/actions/list-connections.d.cts +3 -5
- package/dist/actions/list-connections.d.cts.map +1 -1
- package/dist/actions/list-connections.d.mts +3 -5
- package/dist/actions/list-connections.d.mts.map +1 -1
- package/dist/actions/list-connections.mjs +1 -0
- package/dist/actions/list-connections.mjs.map +1 -1
- package/dist/actions/list-databases.cjs +1 -0
- package/dist/actions/list-databases.cjs.map +1 -1
- package/dist/actions/list-databases.d.cts +3 -5
- package/dist/actions/list-databases.d.cts.map +1 -1
- package/dist/actions/list-databases.d.mts +3 -5
- package/dist/actions/list-databases.d.mts.map +1 -1
- package/dist/actions/list-databases.mjs +1 -0
- package/dist/actions/list-databases.mjs.map +1 -1
- package/dist/actions/list-postgres-regions.cjs +1 -0
- package/dist/actions/list-postgres-regions.cjs.map +1 -1
- package/dist/actions/list-postgres-regions.d.cts +3 -1
- package/dist/actions/list-postgres-regions.d.cts.map +1 -1
- package/dist/actions/list-postgres-regions.d.mts +3 -1
- package/dist/actions/list-postgres-regions.d.mts.map +1 -1
- package/dist/actions/list-postgres-regions.mjs +1 -0
- package/dist/actions/list-postgres-regions.mjs.map +1 -1
- package/dist/actions/list-projects.cjs +1 -0
- package/dist/actions/list-projects.cjs.map +1 -1
- package/dist/actions/list-projects.d.cts +3 -4
- package/dist/actions/list-projects.d.cts.map +1 -1
- package/dist/actions/list-projects.d.mts +3 -4
- package/dist/actions/list-projects.d.mts.map +1 -1
- package/dist/actions/list-projects.mjs +1 -0
- package/dist/actions/list-projects.mjs.map +1 -1
- package/dist/actions/list-workspace-integrations.cjs +1 -0
- package/dist/actions/list-workspace-integrations.cjs.map +1 -1
- package/dist/actions/list-workspace-integrations.d.cts +3 -5
- package/dist/actions/list-workspace-integrations.d.cts.map +1 -1
- package/dist/actions/list-workspace-integrations.d.mts +3 -5
- package/dist/actions/list-workspace-integrations.d.mts.map +1 -1
- package/dist/actions/list-workspace-integrations.mjs +1 -0
- package/dist/actions/list-workspace-integrations.mjs.map +1 -1
- package/dist/actions/list-workspaces.cjs +1 -0
- package/dist/actions/list-workspaces.cjs.map +1 -1
- package/dist/actions/list-workspaces.d.cts +3 -4
- package/dist/actions/list-workspaces.d.cts.map +1 -1
- package/dist/actions/list-workspaces.d.mts +3 -4
- package/dist/actions/list-workspaces.d.mts.map +1 -1
- package/dist/actions/list-workspaces.mjs +1 -0
- package/dist/actions/list-workspaces.mjs.map +1 -1
- package/dist/actions/restore-backup.cjs +1 -0
- package/dist/actions/restore-backup.cjs.map +1 -1
- package/dist/actions/restore-backup.d.cts +3 -5
- package/dist/actions/restore-backup.d.cts.map +1 -1
- package/dist/actions/restore-backup.d.mts +3 -5
- package/dist/actions/restore-backup.d.mts.map +1 -1
- package/dist/actions/restore-backup.mjs +1 -0
- package/dist/actions/restore-backup.mjs.map +1 -1
- package/dist/actions/transfer-project.cjs +1 -0
- package/dist/actions/transfer-project.cjs.map +1 -1
- package/dist/actions/transfer-project.d.cts +3 -4
- package/dist/actions/transfer-project.d.cts.map +1 -1
- package/dist/actions/transfer-project.d.mts +3 -4
- package/dist/actions/transfer-project.d.mts.map +1 -1
- package/dist/actions/transfer-project.mjs +1 -0
- package/dist/actions/transfer-project.mjs.map +1 -1
- package/dist/app.cjs +5 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +7 -1
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +7 -1
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +3 -2
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-project.cjs","names":["z","action"],"sources":["../../src/actions/delete-project.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaDeleteProjectInput = z.object({\n id: z.string().describe(\"Unique project identifier to delete (format: 'proj_xxxxx'). WARNING: This permanently deletes the project and all associated data including databases, environments, and configurations. This action cannot be undone. Ensure all important data is backed up before deletion.\"),\n}).describe(\"Request parameters for deleting a project.\");\nexport const PrismaDeleteProjectOutput = z.record(z.string(), z.unknown()).describe(\"Empty response for successful project deletion.\");\n\nexport const prismaDeleteProject = action(\"PRISMA_DELETE_PROJECT\", {\n slug: \"prisma-delete-project\",\n name: \"Delete Prisma Project\",\n description: \"Permanently delete Prisma project and all associated resources. WARNING: This action cannot be undone. All databases, environments, and project data will be permanently destroyed. Use with extreme caution in production environments.\",\n input: PrismaDeleteProjectInput,\n output: PrismaDeleteProjectOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete-project.cjs","names":["z","action"],"sources":["../../src/actions/delete-project.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { prisma } from \"../app\";\n\nexport const PrismaDeleteProjectInput = z.object({\n id: z.string().describe(\"Unique project identifier to delete (format: 'proj_xxxxx'). WARNING: This permanently deletes the project and all associated data including databases, environments, and configurations. This action cannot be undone. Ensure all important data is backed up before deletion.\"),\n}).describe(\"Request parameters for deleting a project.\");\nexport const PrismaDeleteProjectOutput = z.record(z.string(), z.unknown()).describe(\"Empty response for successful project deletion.\");\n\nexport const prismaDeleteProject: AppAction<\n typeof PrismaDeleteProjectInput,\n typeof PrismaDeleteProjectOutput,\n typeof prisma.credential\n> = action(\"PRISMA_DELETE_PROJECT\", {\n slug: \"prisma-delete-project\",\n name: \"Delete Prisma Project\",\n description: \"Permanently delete Prisma project and all associated resources. WARNING: This action cannot be undone. All databases, environments, and project data will be permanently destroyed. Use with extreme caution in production environments.\",\n input: PrismaDeleteProjectInput,\n output: PrismaDeleteProjectOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gRAAgR,EAC1S,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAa,4BAA4BA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAErI,MAAa,sBAITC,eAAAA,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { prisma } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/delete-project.d.ts
|
|
@@ -5,9 +7,7 @@ declare const PrismaDeleteProjectInput: z.ZodObject<{
|
|
|
5
7
|
id: z.ZodString;
|
|
6
8
|
}, z.core.$strip>;
|
|
7
9
|
declare const PrismaDeleteProjectOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
8
|
-
declare const prismaDeleteProject:
|
|
9
|
-
id: string;
|
|
10
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
10
|
+
declare const prismaDeleteProject: AppAction<typeof PrismaDeleteProjectInput, typeof PrismaDeleteProjectOutput, typeof prisma.credential>;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { prismaDeleteProject };
|
|
13
13
|
//# sourceMappingURL=delete-project.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-project.d.cts","names":[],"sources":["../../src/actions/delete-project.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete-project.d.cts","names":[],"sources":["../../src/actions/delete-project.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAGxB,yBAAA,EAAyB,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAEzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { prisma } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/delete-project.d.ts
|
|
@@ -5,9 +7,7 @@ declare const PrismaDeleteProjectInput: z.ZodObject<{
|
|
|
5
7
|
id: z.ZodString;
|
|
6
8
|
}, z.core.$strip>;
|
|
7
9
|
declare const PrismaDeleteProjectOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
8
|
-
declare const prismaDeleteProject:
|
|
9
|
-
id: string;
|
|
10
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
10
|
+
declare const prismaDeleteProject: AppAction<typeof PrismaDeleteProjectInput, typeof PrismaDeleteProjectOutput, typeof prisma.credential>;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { prismaDeleteProject };
|
|
13
13
|
//# sourceMappingURL=delete-project.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-project.d.mts","names":[],"sources":["../../src/actions/delete-project.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete-project.d.mts","names":[],"sources":["../../src/actions/delete-project.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAGxB,yBAAA,EAAyB,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAEzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-project.mjs","names":[],"sources":["../../src/actions/delete-project.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaDeleteProjectInput = z.object({\n id: z.string().describe(\"Unique project identifier to delete (format: 'proj_xxxxx'). WARNING: This permanently deletes the project and all associated data including databases, environments, and configurations. This action cannot be undone. Ensure all important data is backed up before deletion.\"),\n}).describe(\"Request parameters for deleting a project.\");\nexport const PrismaDeleteProjectOutput = z.record(z.string(), z.unknown()).describe(\"Empty response for successful project deletion.\");\n\nexport const prismaDeleteProject = action(\"PRISMA_DELETE_PROJECT\", {\n slug: \"prisma-delete-project\",\n name: \"Delete Prisma Project\",\n description: \"Permanently delete Prisma project and all associated resources. WARNING: This action cannot be undone. All databases, environments, and project data will be permanently destroyed. Use with extreme caution in production environments.\",\n input: PrismaDeleteProjectInput,\n output: PrismaDeleteProjectOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete-project.mjs","names":[],"sources":["../../src/actions/delete-project.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { prisma } from \"../app\";\n\nexport const PrismaDeleteProjectInput = z.object({\n id: z.string().describe(\"Unique project identifier to delete (format: 'proj_xxxxx'). WARNING: This permanently deletes the project and all associated data including databases, environments, and configurations. This action cannot be undone. Ensure all important data is backed up before deletion.\"),\n}).describe(\"Request parameters for deleting a project.\");\nexport const PrismaDeleteProjectOutput = z.record(z.string(), z.unknown()).describe(\"Empty response for successful project deletion.\");\n\nexport const prismaDeleteProject: AppAction<\n typeof PrismaDeleteProjectInput,\n typeof PrismaDeleteProjectOutput,\n typeof prisma.credential\n> = action(\"PRISMA_DELETE_PROJECT\", {\n slug: \"prisma-delete-project\",\n name: \"Delete Prisma Project\",\n description: \"Permanently delete Prisma project and all associated resources. WARNING: This action cannot be undone. All databases, environments, and project data will be permanently destroyed. Use with extreme caution in production environments.\",\n input: PrismaDeleteProjectInput,\n output: PrismaDeleteProjectOutput,\n});\n"],"mappings":";;;AAWA,MAAa,sBAIT,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbsC,EAAE,OAAO,EAC/C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gRAAgR,EAC1S,CAAC,CAAC,CAAC,SAAS,4CAWH;CACP,QAXuC,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iDAW1E;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execute-sql-command.cjs","names":["z","action"],"sources":["../../src/actions/execute-sql-command.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaExecuteSqlCommandInput = z.object({\n command: z.string().describe(\"SQL command to execute against the database (INSERT, UPDATE, DELETE, CREATE TABLE, etc.). Examples: 'INSERT INTO users (name, email) VALUES ($1, $2)', 'UPDATE users SET active = $1 WHERE id = $2', 'DELETE FROM sessions WHERE expires_at < NOW()', 'CREATE TABLE logs (id SERIAL PRIMARY KEY, message TEXT, created_at TIMESTAMP DEFAULT NOW())'\"),\n parameters: z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean(), z.record(z.string(), z.unknown())])).describe(\"Optional array of parameters for parameterized commands using $1, $2, etc. placeholders. Example: command='INSERT INTO users (name, email) VALUES ($1, $2)', parameters=['John Doe', 'john@example.com']. Parameters are automatically escaped to prevent SQL injection.\").optional(),\n connectionString: z.string().describe(\"PostgreSQL connection string for direct database access. Use the standard format: 'postgresql://USER:PASSWORD@HOST:PORT/DATABASE?sslmode=require'. Get credentials from create_connection or create_database response fields: use 'user' as USER, 'pass' as PASSWORD, and 'host' as HOST:PORT. Example: 'postgresql://user:pass@db.prisma.io:5432/postgres?sslmode=require'. Note: Do NOT use Prisma Accelerate URLs (prisma+postgres://accelerate.prisma-data.net/...) - those are for Prisma Client SDK only. Use the direct connection credentials instead.\"),\n}).describe(\"Request parameters for executing SQL commands that modify data.\");\nconst PrismaExecuteSqlCommand_SqlCommandResultSchema = z.object({\n success: z.boolean().describe(\"Whether the command executed successfully without errors.\").nullable(),\n affectedRows: z.number().int().describe(\"Number of rows affected by the command operation. For INSERT: number of rows inserted. For UPDATE: number of rows updated. For DELETE: number of rows deleted. For DDL commands (CREATE, ALTER, DROP): typically 0.\").nullable(),\n executionTimeMs: z.number().int().describe(\"Command execution time in milliseconds for performance monitoring.\").nullable(),\n}).passthrough().describe(\"Command execution result with affected rows and metadata.\");\nexport const PrismaExecuteSqlCommandOutput = z.object({\n result: PrismaExecuteSqlCommand_SqlCommandResultSchema.nullable(),\n}).passthrough().describe(\"API response containing command execution results.\");\n\nexport const prismaExecuteSqlCommand = action(\"PRISMA_EXECUTE_SQL_COMMAND\", {\n slug: \"prisma-execute-sql-command\",\n name: \"Execute SQL Command\",\n description: \"Execute SQL commands that modify database data or structure. Runs INSERT, UPDATE, DELETE, CREATE TABLE, and other data modification commands safely through PostgreSQL driver with parameterized query support.\",\n input: PrismaExecuteSqlCommandInput,\n output: PrismaExecuteSqlCommandOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"execute-sql-command.cjs","names":["z","action"],"sources":["../../src/actions/execute-sql-command.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { prisma } from \"../app\";\n\nexport const PrismaExecuteSqlCommandInput = z.object({\n command: z.string().describe(\"SQL command to execute against the database (INSERT, UPDATE, DELETE, CREATE TABLE, etc.). Examples: 'INSERT INTO users (name, email) VALUES ($1, $2)', 'UPDATE users SET active = $1 WHERE id = $2', 'DELETE FROM sessions WHERE expires_at < NOW()', 'CREATE TABLE logs (id SERIAL PRIMARY KEY, message TEXT, created_at TIMESTAMP DEFAULT NOW())'\"),\n parameters: z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean(), z.record(z.string(), z.unknown())])).describe(\"Optional array of parameters for parameterized commands using $1, $2, etc. placeholders. Example: command='INSERT INTO users (name, email) VALUES ($1, $2)', parameters=['John Doe', 'john@example.com']. Parameters are automatically escaped to prevent SQL injection.\").optional(),\n connectionString: z.string().describe(\"PostgreSQL connection string for direct database access. Use the standard format: 'postgresql://USER:PASSWORD@HOST:PORT/DATABASE?sslmode=require'. Get credentials from create_connection or create_database response fields: use 'user' as USER, 'pass' as PASSWORD, and 'host' as HOST:PORT. Example: 'postgresql://user:pass@db.prisma.io:5432/postgres?sslmode=require'. Note: Do NOT use Prisma Accelerate URLs (prisma+postgres://accelerate.prisma-data.net/...) - those are for Prisma Client SDK only. Use the direct connection credentials instead.\"),\n}).describe(\"Request parameters for executing SQL commands that modify data.\");\nconst PrismaExecuteSqlCommand_SqlCommandResultSchema = z.object({\n success: z.boolean().describe(\"Whether the command executed successfully without errors.\").nullable(),\n affectedRows: z.number().int().describe(\"Number of rows affected by the command operation. For INSERT: number of rows inserted. For UPDATE: number of rows updated. For DELETE: number of rows deleted. For DDL commands (CREATE, ALTER, DROP): typically 0.\").nullable(),\n executionTimeMs: z.number().int().describe(\"Command execution time in milliseconds for performance monitoring.\").nullable(),\n}).passthrough().describe(\"Command execution result with affected rows and metadata.\");\nexport const PrismaExecuteSqlCommandOutput = z.object({\n result: PrismaExecuteSqlCommand_SqlCommandResultSchema.nullable(),\n}).passthrough().describe(\"API response containing command execution results.\");\n\nexport const prismaExecuteSqlCommand: AppAction<\n typeof PrismaExecuteSqlCommandInput,\n typeof PrismaExecuteSqlCommandOutput,\n typeof prisma.credential\n> = action(\"PRISMA_EXECUTE_SQL_COMMAND\", {\n slug: \"prisma-execute-sql-command\",\n name: \"Execute SQL Command\",\n description: \"Execute SQL commands that modify database data or structure. Runs INSERT, UPDATE, DELETE, CREATE TABLE, and other data modification commands safely through PostgreSQL driver with parameterized query support.\",\n input: PrismaExecuteSqlCommandInput,\n output: PrismaExecuteSqlCommandOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qVAAqV;CAClX,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;EAAGA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,QAAQ;EAAGA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC;CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,0QAA0Q,CAAC,CAAC,SAAS;CACvZ,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,giBAAgiB;AACxkB,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAM,iDAAiDA,IAAAA,EAAE,OAAO;CAC9D,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACpG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qNAAqN,CAAC,CAAC,SAAS;CACxQ,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;AAC5H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAA2D;AACrF,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,QAAQ,+CAA+C,SAAS,EAClE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAE9E,MAAa,0BAITC,eAAAA,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { prisma } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/execute-sql-command.d.ts
|
|
@@ -13,11 +15,7 @@ declare const PrismaExecuteSqlCommandOutput: z.ZodObject<{
|
|
|
13
15
|
executionTimeMs: z.ZodNullable<z.ZodNumber>;
|
|
14
16
|
}, z.core.$loose>>;
|
|
15
17
|
}, z.core.$loose>;
|
|
16
|
-
declare const prismaExecuteSqlCommand:
|
|
17
|
-
command: string;
|
|
18
|
-
connectionString: string;
|
|
19
|
-
parameters?: (string | number | boolean | Record<string, unknown>)[] | undefined;
|
|
20
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
18
|
+
declare const prismaExecuteSqlCommand: AppAction<typeof PrismaExecuteSqlCommandInput, typeof PrismaExecuteSqlCommandOutput, typeof prisma.credential>;
|
|
21
19
|
//#endregion
|
|
22
20
|
export { prismaExecuteSqlCommand };
|
|
23
21
|
//# sourceMappingURL=execute-sql-command.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execute-sql-command.d.cts","names":[],"sources":["../../src/actions/execute-sql-command.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"execute-sql-command.d.cts","names":[],"sources":["../../src/actions/execute-sql-command.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;cAU5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;cAI7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { prisma } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/execute-sql-command.d.ts
|
|
@@ -13,11 +15,7 @@ declare const PrismaExecuteSqlCommandOutput: z.ZodObject<{
|
|
|
13
15
|
executionTimeMs: z.ZodNullable<z.ZodNumber>;
|
|
14
16
|
}, z.core.$loose>>;
|
|
15
17
|
}, z.core.$loose>;
|
|
16
|
-
declare const prismaExecuteSqlCommand:
|
|
17
|
-
command: string;
|
|
18
|
-
connectionString: string;
|
|
19
|
-
parameters?: (string | number | boolean | Record<string, unknown>)[] | undefined;
|
|
20
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
18
|
+
declare const prismaExecuteSqlCommand: AppAction<typeof PrismaExecuteSqlCommandInput, typeof PrismaExecuteSqlCommandOutput, typeof prisma.credential>;
|
|
21
19
|
//#endregion
|
|
22
20
|
export { prismaExecuteSqlCommand };
|
|
23
21
|
//# sourceMappingURL=execute-sql-command.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execute-sql-command.d.mts","names":[],"sources":["../../src/actions/execute-sql-command.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"execute-sql-command.d.mts","names":[],"sources":["../../src/actions/execute-sql-command.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;cAU5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;cAI7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execute-sql-command.mjs","names":[],"sources":["../../src/actions/execute-sql-command.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaExecuteSqlCommandInput = z.object({\n command: z.string().describe(\"SQL command to execute against the database (INSERT, UPDATE, DELETE, CREATE TABLE, etc.). Examples: 'INSERT INTO users (name, email) VALUES ($1, $2)', 'UPDATE users SET active = $1 WHERE id = $2', 'DELETE FROM sessions WHERE expires_at < NOW()', 'CREATE TABLE logs (id SERIAL PRIMARY KEY, message TEXT, created_at TIMESTAMP DEFAULT NOW())'\"),\n parameters: z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean(), z.record(z.string(), z.unknown())])).describe(\"Optional array of parameters for parameterized commands using $1, $2, etc. placeholders. Example: command='INSERT INTO users (name, email) VALUES ($1, $2)', parameters=['John Doe', 'john@example.com']. Parameters are automatically escaped to prevent SQL injection.\").optional(),\n connectionString: z.string().describe(\"PostgreSQL connection string for direct database access. Use the standard format: 'postgresql://USER:PASSWORD@HOST:PORT/DATABASE?sslmode=require'. Get credentials from create_connection or create_database response fields: use 'user' as USER, 'pass' as PASSWORD, and 'host' as HOST:PORT. Example: 'postgresql://user:pass@db.prisma.io:5432/postgres?sslmode=require'. Note: Do NOT use Prisma Accelerate URLs (prisma+postgres://accelerate.prisma-data.net/...) - those are for Prisma Client SDK only. Use the direct connection credentials instead.\"),\n}).describe(\"Request parameters for executing SQL commands that modify data.\");\nconst PrismaExecuteSqlCommand_SqlCommandResultSchema = z.object({\n success: z.boolean().describe(\"Whether the command executed successfully without errors.\").nullable(),\n affectedRows: z.number().int().describe(\"Number of rows affected by the command operation. For INSERT: number of rows inserted. For UPDATE: number of rows updated. For DELETE: number of rows deleted. For DDL commands (CREATE, ALTER, DROP): typically 0.\").nullable(),\n executionTimeMs: z.number().int().describe(\"Command execution time in milliseconds for performance monitoring.\").nullable(),\n}).passthrough().describe(\"Command execution result with affected rows and metadata.\");\nexport const PrismaExecuteSqlCommandOutput = z.object({\n result: PrismaExecuteSqlCommand_SqlCommandResultSchema.nullable(),\n}).passthrough().describe(\"API response containing command execution results.\");\n\nexport const prismaExecuteSqlCommand = action(\"PRISMA_EXECUTE_SQL_COMMAND\", {\n slug: \"prisma-execute-sql-command\",\n name: \"Execute SQL Command\",\n description: \"Execute SQL commands that modify database data or structure. Runs INSERT, UPDATE, DELETE, CREATE TABLE, and other data modification commands safely through PostgreSQL driver with parameterized query support.\",\n input: PrismaExecuteSqlCommandInput,\n output: PrismaExecuteSqlCommandOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"execute-sql-command.mjs","names":[],"sources":["../../src/actions/execute-sql-command.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { prisma } from \"../app\";\n\nexport const PrismaExecuteSqlCommandInput = z.object({\n command: z.string().describe(\"SQL command to execute against the database (INSERT, UPDATE, DELETE, CREATE TABLE, etc.). Examples: 'INSERT INTO users (name, email) VALUES ($1, $2)', 'UPDATE users SET active = $1 WHERE id = $2', 'DELETE FROM sessions WHERE expires_at < NOW()', 'CREATE TABLE logs (id SERIAL PRIMARY KEY, message TEXT, created_at TIMESTAMP DEFAULT NOW())'\"),\n parameters: z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean(), z.record(z.string(), z.unknown())])).describe(\"Optional array of parameters for parameterized commands using $1, $2, etc. placeholders. Example: command='INSERT INTO users (name, email) VALUES ($1, $2)', parameters=['John Doe', 'john@example.com']. Parameters are automatically escaped to prevent SQL injection.\").optional(),\n connectionString: z.string().describe(\"PostgreSQL connection string for direct database access. Use the standard format: 'postgresql://USER:PASSWORD@HOST:PORT/DATABASE?sslmode=require'. Get credentials from create_connection or create_database response fields: use 'user' as USER, 'pass' as PASSWORD, and 'host' as HOST:PORT. Example: 'postgresql://user:pass@db.prisma.io:5432/postgres?sslmode=require'. Note: Do NOT use Prisma Accelerate URLs (prisma+postgres://accelerate.prisma-data.net/...) - those are for Prisma Client SDK only. Use the direct connection credentials instead.\"),\n}).describe(\"Request parameters for executing SQL commands that modify data.\");\nconst PrismaExecuteSqlCommand_SqlCommandResultSchema = z.object({\n success: z.boolean().describe(\"Whether the command executed successfully without errors.\").nullable(),\n affectedRows: z.number().int().describe(\"Number of rows affected by the command operation. For INSERT: number of rows inserted. For UPDATE: number of rows updated. For DELETE: number of rows deleted. For DDL commands (CREATE, ALTER, DROP): typically 0.\").nullable(),\n executionTimeMs: z.number().int().describe(\"Command execution time in milliseconds for performance monitoring.\").nullable(),\n}).passthrough().describe(\"Command execution result with affected rows and metadata.\");\nexport const PrismaExecuteSqlCommandOutput = z.object({\n result: PrismaExecuteSqlCommand_SqlCommandResultSchema.nullable(),\n}).passthrough().describe(\"API response containing command execution results.\");\n\nexport const prismaExecuteSqlCommand: AppAction<\n typeof PrismaExecuteSqlCommandInput,\n typeof PrismaExecuteSqlCommandOutput,\n typeof prisma.credential\n> = action(\"PRISMA_EXECUTE_SQL_COMMAND\", {\n slug: \"prisma-execute-sql-command\",\n name: \"Execute SQL Command\",\n description: \"Execute SQL commands that modify database data or structure. Runs INSERT, UPDATE, DELETE, CREATE TABLE, and other data modification commands safely through PostgreSQL driver with parameterized query support.\",\n input: PrismaExecuteSqlCommandInput,\n output: PrismaExecuteSqlCommandOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+B,EAAE,OAAO;CACnD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qVAAqV;CAClX,YAAY,EAAE,MAAM,EAAE,MAAM;EAAC,EAAE,OAAO;EAAG,EAAE,OAAO,CAAC,CAAC,IAAI;EAAG,EAAE,OAAO;EAAG,EAAE,QAAQ;EAAG,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC;CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,0QAA0Q,CAAC,CAAC,SAAS;CACvZ,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,giBAAgiB;AACxkB,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAM,iDAAiD,EAAE,OAAO;CAC9D,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACpG,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qNAAqN,CAAC,CAAC,SAAS;CACxQ,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;AAC5H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAA2D;AAKrF,MAAa,0BAIT,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAb2C,EAAE,OAAO,EACpD,QAAQ,+CAA+C,SAAS,EAClE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execute-sql-query.cjs","names":["z","action"],"sources":["../../src/actions/execute-sql-query.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaExecuteSqlQueryInput = z.object({\n host: z.string().describe(\"Database host with port (format: 'db.prisma.io:5432'). Obtain this from create_connection action response field 'host'. This is the direct PostgreSQL endpoint for your Prisma Postgres database.\"),\n user: z.string().describe(\"Database username (tenant ID from Prisma). Obtain this from create_connection action response field 'user'. This is a unique identifier for your database tenant.\"),\n query: z.string().describe(\"SQL SELECT query to execute against the database. Use standard PostgreSQL syntax. Common examples: 'SELECT * FROM users LIMIT 10', 'SELECT name, email FROM customers WHERE active = true', 'SELECT table_name FROM information_schema.tables WHERE table_schema = \\\\'public\\\\''. Avoid INSERT/UPDATE/DELETE - use execute_sql_command for those operations.\"),\n password: z.string().describe(\"Database password (secret key from Prisma). Obtain this from create_connection action response field 'pass'. Format is typically 'sk_xxxxx'. Keep this secure.\"),\n parameters: z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean(), z.record(z.string(), z.unknown())])).describe(\"Optional array of parameters for parameterized queries using %s placeholders. Example: query='SELECT * FROM users WHERE id = %s AND active = %s', parameters=[123, true]. Parameters are automatically escaped to prevent SQL injection. Use %s for each parameter in order they appear in the query.\").optional(),\n}).describe(\"Request parameters for executing SQL SELECT queries.\");\nconst PrismaExecuteSqlQuery_SqlQueryResultSchema = z.object({\n data: z.array(z.record(z.string(), z.unknown())).describe(\"Array of result rows as objects with column names as keys. Each row represents a database record with typed values. Empty array if no results found.\"),\n rowCount: z.number().int().describe(\"Number of rows returned by the query.\").nullable(),\n executionTimeMs: z.number().int().describe(\"Query execution time in milliseconds for performance monitoring.\").nullable(),\n}).passthrough().describe(\"Query execution result with metadata.\");\nexport const PrismaExecuteSqlQueryOutput = z.object({\n result: PrismaExecuteSqlQuery_SqlQueryResultSchema.nullable(),\n}).passthrough().describe(\"API response containing query results and metadata.\");\n\nexport const prismaExecuteSqlQuery = action(\"PRISMA_EXECUTE_SQL_QUERY\", {\n slug: \"prisma-execute-sql-query\",\n name: \"Execute SQL Query\",\n description: \"Execute SQL SELECT queries against Prisma Postgres databases. Runs read-only queries safely through direct PostgreSQL connection with SSL. Uses credentials from create_connection action (host, user, pass fields). Perfect for data analysis, schema inspection, and reporting operations.\",\n input: PrismaExecuteSqlQueryInput,\n output: PrismaExecuteSqlQueryOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"execute-sql-query.cjs","names":["z","action"],"sources":["../../src/actions/execute-sql-query.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { prisma } from \"../app\";\n\nexport const PrismaExecuteSqlQueryInput = z.object({\n host: z.string().describe(\"Database host with port (format: 'db.prisma.io:5432'). Obtain this from create_connection action response field 'host'. This is the direct PostgreSQL endpoint for your Prisma Postgres database.\"),\n user: z.string().describe(\"Database username (tenant ID from Prisma). Obtain this from create_connection action response field 'user'. This is a unique identifier for your database tenant.\"),\n query: z.string().describe(\"SQL SELECT query to execute against the database. Use standard PostgreSQL syntax. Common examples: 'SELECT * FROM users LIMIT 10', 'SELECT name, email FROM customers WHERE active = true', 'SELECT table_name FROM information_schema.tables WHERE table_schema = \\\\'public\\\\''. Avoid INSERT/UPDATE/DELETE - use execute_sql_command for those operations.\"),\n password: z.string().describe(\"Database password (secret key from Prisma). Obtain this from create_connection action response field 'pass'. Format is typically 'sk_xxxxx'. Keep this secure.\"),\n parameters: z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean(), z.record(z.string(), z.unknown())])).describe(\"Optional array of parameters for parameterized queries using %s placeholders. Example: query='SELECT * FROM users WHERE id = %s AND active = %s', parameters=[123, true]. Parameters are automatically escaped to prevent SQL injection. Use %s for each parameter in order they appear in the query.\").optional(),\n}).describe(\"Request parameters for executing SQL SELECT queries.\");\nconst PrismaExecuteSqlQuery_SqlQueryResultSchema = z.object({\n data: z.array(z.record(z.string(), z.unknown())).describe(\"Array of result rows as objects with column names as keys. Each row represents a database record with typed values. Empty array if no results found.\"),\n rowCount: z.number().int().describe(\"Number of rows returned by the query.\").nullable(),\n executionTimeMs: z.number().int().describe(\"Query execution time in milliseconds for performance monitoring.\").nullable(),\n}).passthrough().describe(\"Query execution result with metadata.\");\nexport const PrismaExecuteSqlQueryOutput = z.object({\n result: PrismaExecuteSqlQuery_SqlQueryResultSchema.nullable(),\n}).passthrough().describe(\"API response containing query results and metadata.\");\n\nexport const prismaExecuteSqlQuery: AppAction<\n typeof PrismaExecuteSqlQueryInput,\n typeof PrismaExecuteSqlQueryOutput,\n typeof prisma.credential\n> = action(\"PRISMA_EXECUTE_SQL_QUERY\", {\n slug: \"prisma-execute-sql-query\",\n name: \"Execute SQL Query\",\n description: \"Execute SQL SELECT queries against Prisma Postgres databases. Runs read-only queries safely through direct PostgreSQL connection with SSL. Uses credentials from create_connection action (host, user, pass fields). Perfect for data analysis, schema inspection, and reporting operations.\",\n input: PrismaExecuteSqlQueryInput,\n output: PrismaExecuteSqlQueryOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mMAAmM;CAC7N,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mKAAmK;CAC7L,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8VAA8V;CACzX,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gKAAgK;CAC9L,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;EAAGA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,QAAQ;EAAGA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC;CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,uSAAuS,CAAC,CAAC,SAAS;AACtb,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,sJAAsJ;CAChN,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACtF,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;AAC1H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AACjE,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,QAAQ,2CAA2C,SAAS,EAC9D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAE/E,MAAa,wBAITC,eAAAA,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { prisma } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/execute-sql-query.d.ts
|
|
@@ -15,13 +17,7 @@ declare const PrismaExecuteSqlQueryOutput: z.ZodObject<{
|
|
|
15
17
|
executionTimeMs: z.ZodNullable<z.ZodNumber>;
|
|
16
18
|
}, z.core.$loose>>;
|
|
17
19
|
}, z.core.$loose>;
|
|
18
|
-
declare const prismaExecuteSqlQuery:
|
|
19
|
-
host: string;
|
|
20
|
-
user: string;
|
|
21
|
-
query: string;
|
|
22
|
-
password: string;
|
|
23
|
-
parameters?: (string | number | boolean | Record<string, unknown>)[] | undefined;
|
|
24
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
20
|
+
declare const prismaExecuteSqlQuery: AppAction<typeof PrismaExecuteSqlQueryInput, typeof PrismaExecuteSqlQueryOutput, typeof prisma.credential>;
|
|
25
21
|
//#endregion
|
|
26
22
|
export { prismaExecuteSqlQuery };
|
|
27
23
|
//# sourceMappingURL=execute-sql-query.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execute-sql-query.d.cts","names":[],"sources":["../../src/actions/execute-sql-query.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"execute-sql-query.d.cts","names":[],"sources":["../../src/actions/execute-sql-query.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;cAY1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;cAI3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { prisma } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/execute-sql-query.d.ts
|
|
@@ -15,13 +17,7 @@ declare const PrismaExecuteSqlQueryOutput: z.ZodObject<{
|
|
|
15
17
|
executionTimeMs: z.ZodNullable<z.ZodNumber>;
|
|
16
18
|
}, z.core.$loose>>;
|
|
17
19
|
}, z.core.$loose>;
|
|
18
|
-
declare const prismaExecuteSqlQuery:
|
|
19
|
-
host: string;
|
|
20
|
-
user: string;
|
|
21
|
-
query: string;
|
|
22
|
-
password: string;
|
|
23
|
-
parameters?: (string | number | boolean | Record<string, unknown>)[] | undefined;
|
|
24
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
20
|
+
declare const prismaExecuteSqlQuery: AppAction<typeof PrismaExecuteSqlQueryInput, typeof PrismaExecuteSqlQueryOutput, typeof prisma.credential>;
|
|
25
21
|
//#endregion
|
|
26
22
|
export { prismaExecuteSqlQuery };
|
|
27
23
|
//# sourceMappingURL=execute-sql-query.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execute-sql-query.d.mts","names":[],"sources":["../../src/actions/execute-sql-query.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"execute-sql-query.d.mts","names":[],"sources":["../../src/actions/execute-sql-query.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;cAY1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;cAI3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execute-sql-query.mjs","names":[],"sources":["../../src/actions/execute-sql-query.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaExecuteSqlQueryInput = z.object({\n host: z.string().describe(\"Database host with port (format: 'db.prisma.io:5432'). Obtain this from create_connection action response field 'host'. This is the direct PostgreSQL endpoint for your Prisma Postgres database.\"),\n user: z.string().describe(\"Database username (tenant ID from Prisma). Obtain this from create_connection action response field 'user'. This is a unique identifier for your database tenant.\"),\n query: z.string().describe(\"SQL SELECT query to execute against the database. Use standard PostgreSQL syntax. Common examples: 'SELECT * FROM users LIMIT 10', 'SELECT name, email FROM customers WHERE active = true', 'SELECT table_name FROM information_schema.tables WHERE table_schema = \\\\'public\\\\''. Avoid INSERT/UPDATE/DELETE - use execute_sql_command for those operations.\"),\n password: z.string().describe(\"Database password (secret key from Prisma). Obtain this from create_connection action response field 'pass'. Format is typically 'sk_xxxxx'. Keep this secure.\"),\n parameters: z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean(), z.record(z.string(), z.unknown())])).describe(\"Optional array of parameters for parameterized queries using %s placeholders. Example: query='SELECT * FROM users WHERE id = %s AND active = %s', parameters=[123, true]. Parameters are automatically escaped to prevent SQL injection. Use %s for each parameter in order they appear in the query.\").optional(),\n}).describe(\"Request parameters for executing SQL SELECT queries.\");\nconst PrismaExecuteSqlQuery_SqlQueryResultSchema = z.object({\n data: z.array(z.record(z.string(), z.unknown())).describe(\"Array of result rows as objects with column names as keys. Each row represents a database record with typed values. Empty array if no results found.\"),\n rowCount: z.number().int().describe(\"Number of rows returned by the query.\").nullable(),\n executionTimeMs: z.number().int().describe(\"Query execution time in milliseconds for performance monitoring.\").nullable(),\n}).passthrough().describe(\"Query execution result with metadata.\");\nexport const PrismaExecuteSqlQueryOutput = z.object({\n result: PrismaExecuteSqlQuery_SqlQueryResultSchema.nullable(),\n}).passthrough().describe(\"API response containing query results and metadata.\");\n\nexport const prismaExecuteSqlQuery = action(\"PRISMA_EXECUTE_SQL_QUERY\", {\n slug: \"prisma-execute-sql-query\",\n name: \"Execute SQL Query\",\n description: \"Execute SQL SELECT queries against Prisma Postgres databases. Runs read-only queries safely through direct PostgreSQL connection with SSL. Uses credentials from create_connection action (host, user, pass fields). Perfect for data analysis, schema inspection, and reporting operations.\",\n input: PrismaExecuteSqlQueryInput,\n output: PrismaExecuteSqlQueryOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"execute-sql-query.mjs","names":[],"sources":["../../src/actions/execute-sql-query.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { prisma } from \"../app\";\n\nexport const PrismaExecuteSqlQueryInput = z.object({\n host: z.string().describe(\"Database host with port (format: 'db.prisma.io:5432'). Obtain this from create_connection action response field 'host'. This is the direct PostgreSQL endpoint for your Prisma Postgres database.\"),\n user: z.string().describe(\"Database username (tenant ID from Prisma). Obtain this from create_connection action response field 'user'. This is a unique identifier for your database tenant.\"),\n query: z.string().describe(\"SQL SELECT query to execute against the database. Use standard PostgreSQL syntax. Common examples: 'SELECT * FROM users LIMIT 10', 'SELECT name, email FROM customers WHERE active = true', 'SELECT table_name FROM information_schema.tables WHERE table_schema = \\\\'public\\\\''. Avoid INSERT/UPDATE/DELETE - use execute_sql_command for those operations.\"),\n password: z.string().describe(\"Database password (secret key from Prisma). Obtain this from create_connection action response field 'pass'. Format is typically 'sk_xxxxx'. Keep this secure.\"),\n parameters: z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean(), z.record(z.string(), z.unknown())])).describe(\"Optional array of parameters for parameterized queries using %s placeholders. Example: query='SELECT * FROM users WHERE id = %s AND active = %s', parameters=[123, true]. Parameters are automatically escaped to prevent SQL injection. Use %s for each parameter in order they appear in the query.\").optional(),\n}).describe(\"Request parameters for executing SQL SELECT queries.\");\nconst PrismaExecuteSqlQuery_SqlQueryResultSchema = z.object({\n data: z.array(z.record(z.string(), z.unknown())).describe(\"Array of result rows as objects with column names as keys. Each row represents a database record with typed values. Empty array if no results found.\"),\n rowCount: z.number().int().describe(\"Number of rows returned by the query.\").nullable(),\n executionTimeMs: z.number().int().describe(\"Query execution time in milliseconds for performance monitoring.\").nullable(),\n}).passthrough().describe(\"Query execution result with metadata.\");\nexport const PrismaExecuteSqlQueryOutput = z.object({\n result: PrismaExecuteSqlQuery_SqlQueryResultSchema.nullable(),\n}).passthrough().describe(\"API response containing query results and metadata.\");\n\nexport const prismaExecuteSqlQuery: AppAction<\n typeof PrismaExecuteSqlQueryInput,\n typeof PrismaExecuteSqlQueryOutput,\n typeof prisma.credential\n> = action(\"PRISMA_EXECUTE_SQL_QUERY\", {\n slug: \"prisma-execute-sql-query\",\n name: \"Execute SQL Query\",\n description: \"Execute SQL SELECT queries against Prisma Postgres databases. Runs read-only queries safely through direct PostgreSQL connection with SSL. Uses credentials from create_connection action (host, user, pass fields). Perfect for data analysis, schema inspection, and reporting operations.\",\n input: PrismaExecuteSqlQueryInput,\n output: PrismaExecuteSqlQueryOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6B,EAAE,OAAO;CACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mMAAmM;CAC7N,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mKAAmK;CAC7L,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8VAA8V;CACzX,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gKAAgK;CAC9L,YAAY,EAAE,MAAM,EAAE,MAAM;EAAC,EAAE,OAAO;EAAG,EAAE,OAAO,CAAC,CAAC,IAAI;EAAG,EAAE,OAAO;EAAG,EAAE,QAAQ;EAAG,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC;CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,uSAAuS,CAAC,CAAC,SAAS;AACtb,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,6CAA6C,EAAE,OAAO;CAC1D,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,sJAAsJ;CAChN,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACtF,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;AAC1H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAKjE,MAAa,wBAIT,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbyC,EAAE,OAAO,EAClD,QAAQ,2CAA2C,SAAS,EAC9D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-database-usage.cjs","names":["z","action"],"sources":["../../src/actions/get-database-usage.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaGetDatabaseUsageInput = z.object({\n endDate: z.string().describe(\"End date for metrics query in ISO 8601 format (e.g., '2025-07-31T23:59:59Z'). Defaults to current date if not provided. Will be set to end of day if a future date is provided.\").optional(),\n startDate: z.string().describe(\"Start date for metrics query in ISO 8601 format (e.g., '2025-07-01T00:00:00Z'). Defaults to start of current month if not provided. Use to specify custom date ranges for usage analysis.\").optional(),\n databaseId: z.string().describe(\"Unique database identifier to retrieve usage metrics for (format: 'db_xxxxx'). Must be a database the authenticated user has access to. This ID is obtained from database listing or creation operations.\"),\n}).describe(\"Request parameters for retrieving database usage metrics.\");\nconst PrismaGetDatabaseUsage_UsagePeriodSchema = z.object({\n end: z.string().describe(\"ISO 8601 timestamp marking the end of the metrics period (e.g., '2025-07-31T23:59:59Z').\").nullable(),\n start: z.string().describe(\"ISO 8601 timestamp marking the start of the metrics period (e.g., '2025-07-01T00:00:00Z').\").nullable(),\n}).passthrough().describe(\"Time period for the usage metrics.\");\nconst PrismaGetDatabaseUsage_MetricValueSchema = z.object({\n unit: z.string().describe(\"Unit of measurement for the metric value. Examples: 'bytes' for storage, 'count' for operations.\").nullable(),\n used: z.number().describe(\"Amount of the resource used during the specified period. Numeric value representing usage count or size.\").nullable(),\n}).passthrough().describe(\"Individual metric value with unit information.\");\nconst PrismaGetDatabaseUsage_UsageMetricsSchema = z.object({\n storage: PrismaGetDatabaseUsage_MetricValueSchema.nullable(),\n operations: PrismaGetDatabaseUsage_MetricValueSchema.nullable(),\n}).passthrough().describe(\"Database usage metrics including operations and storage.\");\nexport const PrismaGetDatabaseUsageOutput = z.object({\n period: PrismaGetDatabaseUsage_UsagePeriodSchema.nullable(),\n metrics: PrismaGetDatabaseUsage_UsageMetricsSchema.nullable(),\n generatedAt: z.string().describe(\"ISO 8601 timestamp when the usage report was generated (e.g., '2025-08-01T10:30:00Z').\").nullable(),\n}).passthrough().describe(\"API response containing database usage metrics.\");\n\nexport const prismaGetDatabaseUsage = action(\"PRISMA_GET_DATABASE_USAGE\", {\n slug: \"prisma-get-database-usage\",\n name: \"Get Database Usage Metrics\",\n description: \"Retrieve usage metrics for a specific Prisma database. Returns metrics including storage usage and operation counts (reads/writes) for the specified time period. Use for monitoring resource consumption, cost analysis, and capacity planning.\",\n input: PrismaGetDatabaseUsageInput,\n output: PrismaGetDatabaseUsageOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-database-usage.cjs","names":["z","action"],"sources":["../../src/actions/get-database-usage.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { prisma } from \"../app\";\n\nexport const PrismaGetDatabaseUsageInput = z.object({\n endDate: z.string().describe(\"End date for metrics query in ISO 8601 format (e.g., '2025-07-31T23:59:59Z'). Defaults to current date if not provided. Will be set to end of day if a future date is provided.\").optional(),\n startDate: z.string().describe(\"Start date for metrics query in ISO 8601 format (e.g., '2025-07-01T00:00:00Z'). Defaults to start of current month if not provided. Use to specify custom date ranges for usage analysis.\").optional(),\n databaseId: z.string().describe(\"Unique database identifier to retrieve usage metrics for (format: 'db_xxxxx'). Must be a database the authenticated user has access to. This ID is obtained from database listing or creation operations.\"),\n}).describe(\"Request parameters for retrieving database usage metrics.\");\nconst PrismaGetDatabaseUsage_UsagePeriodSchema = z.object({\n end: z.string().describe(\"ISO 8601 timestamp marking the end of the metrics period (e.g., '2025-07-31T23:59:59Z').\").nullable(),\n start: z.string().describe(\"ISO 8601 timestamp marking the start of the metrics period (e.g., '2025-07-01T00:00:00Z').\").nullable(),\n}).passthrough().describe(\"Time period for the usage metrics.\");\nconst PrismaGetDatabaseUsage_MetricValueSchema = z.object({\n unit: z.string().describe(\"Unit of measurement for the metric value. Examples: 'bytes' for storage, 'count' for operations.\").nullable(),\n used: z.number().describe(\"Amount of the resource used during the specified period. Numeric value representing usage count or size.\").nullable(),\n}).passthrough().describe(\"Individual metric value with unit information.\");\nconst PrismaGetDatabaseUsage_UsageMetricsSchema = z.object({\n storage: PrismaGetDatabaseUsage_MetricValueSchema.nullable(),\n operations: PrismaGetDatabaseUsage_MetricValueSchema.nullable(),\n}).passthrough().describe(\"Database usage metrics including operations and storage.\");\nexport const PrismaGetDatabaseUsageOutput = z.object({\n period: PrismaGetDatabaseUsage_UsagePeriodSchema.nullable(),\n metrics: PrismaGetDatabaseUsage_UsageMetricsSchema.nullable(),\n generatedAt: z.string().describe(\"ISO 8601 timestamp when the usage report was generated (e.g., '2025-08-01T10:30:00Z').\").nullable(),\n}).passthrough().describe(\"API response containing database usage metrics.\");\n\nexport const prismaGetDatabaseUsage: AppAction<\n typeof PrismaGetDatabaseUsageInput,\n typeof PrismaGetDatabaseUsageOutput,\n typeof prisma.credential\n> = action(\"PRISMA_GET_DATABASE_USAGE\", {\n slug: \"prisma-get-database-usage\",\n name: \"Get Database Usage Metrics\",\n description: \"Retrieve usage metrics for a specific Prisma database. Returns metrics including storage usage and operation counts (reads/writes) for the specified time period. Use for monitoring resource consumption, cost analysis, and capacity planning.\",\n input: PrismaGetDatabaseUsageInput,\n output: PrismaGetDatabaseUsageOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iLAAiL,CAAC,CAAC,SAAS;CACzN,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2LAA2L,CAAC,CAAC,SAAS;CACrO,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2MAA2M;AAC7O,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;CAC9H,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;AACpI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAAoC;AAC9D,MAAM,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CACvI,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;AACjJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAC1E,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,SAAS,yCAAyC,SAAS;CAC3D,YAAY,yCAAyC,SAAS;AAChE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAA0D;AACpF,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,QAAQ,yCAAyC,SAAS;CAC1D,SAAS,0CAA0C,SAAS;CAC5D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;AACtI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAE3E,MAAa,yBAITC,eAAAA,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { prisma } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-database-usage.d.ts
|
|
@@ -23,11 +25,7 @@ declare const PrismaGetDatabaseUsageOutput: z.ZodObject<{
|
|
|
23
25
|
}, z.core.$loose>>;
|
|
24
26
|
generatedAt: z.ZodNullable<z.ZodString>;
|
|
25
27
|
}, z.core.$loose>;
|
|
26
|
-
declare const prismaGetDatabaseUsage:
|
|
27
|
-
databaseId: string;
|
|
28
|
-
endDate?: string | undefined;
|
|
29
|
-
startDate?: string | undefined;
|
|
30
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
28
|
+
declare const prismaGetDatabaseUsage: AppAction<typeof PrismaGetDatabaseUsageInput, typeof PrismaGetDatabaseUsageOutput, typeof prisma.credential>;
|
|
31
29
|
//#endregion
|
|
32
30
|
export { prismaGetDatabaseUsage };
|
|
33
31
|
//# sourceMappingURL=get-database-usage.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-database-usage.d.cts","names":[],"sources":["../../src/actions/get-database-usage.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-database-usage.d.cts","names":[],"sources":["../../src/actions/get-database-usage.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;cAiB3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAM5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { prisma } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-database-usage.d.ts
|
|
@@ -23,11 +25,7 @@ declare const PrismaGetDatabaseUsageOutput: z.ZodObject<{
|
|
|
23
25
|
}, z.core.$loose>>;
|
|
24
26
|
generatedAt: z.ZodNullable<z.ZodString>;
|
|
25
27
|
}, z.core.$loose>;
|
|
26
|
-
declare const prismaGetDatabaseUsage:
|
|
27
|
-
databaseId: string;
|
|
28
|
-
endDate?: string | undefined;
|
|
29
|
-
startDate?: string | undefined;
|
|
30
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
28
|
+
declare const prismaGetDatabaseUsage: AppAction<typeof PrismaGetDatabaseUsageInput, typeof PrismaGetDatabaseUsageOutput, typeof prisma.credential>;
|
|
31
29
|
//#endregion
|
|
32
30
|
export { prismaGetDatabaseUsage };
|
|
33
31
|
//# sourceMappingURL=get-database-usage.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-database-usage.d.mts","names":[],"sources":["../../src/actions/get-database-usage.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-database-usage.d.mts","names":[],"sources":["../../src/actions/get-database-usage.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;cAiB3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAM5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-database-usage.mjs","names":[],"sources":["../../src/actions/get-database-usage.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaGetDatabaseUsageInput = z.object({\n endDate: z.string().describe(\"End date for metrics query in ISO 8601 format (e.g., '2025-07-31T23:59:59Z'). Defaults to current date if not provided. Will be set to end of day if a future date is provided.\").optional(),\n startDate: z.string().describe(\"Start date for metrics query in ISO 8601 format (e.g., '2025-07-01T00:00:00Z'). Defaults to start of current month if not provided. Use to specify custom date ranges for usage analysis.\").optional(),\n databaseId: z.string().describe(\"Unique database identifier to retrieve usage metrics for (format: 'db_xxxxx'). Must be a database the authenticated user has access to. This ID is obtained from database listing or creation operations.\"),\n}).describe(\"Request parameters for retrieving database usage metrics.\");\nconst PrismaGetDatabaseUsage_UsagePeriodSchema = z.object({\n end: z.string().describe(\"ISO 8601 timestamp marking the end of the metrics period (e.g., '2025-07-31T23:59:59Z').\").nullable(),\n start: z.string().describe(\"ISO 8601 timestamp marking the start of the metrics period (e.g., '2025-07-01T00:00:00Z').\").nullable(),\n}).passthrough().describe(\"Time period for the usage metrics.\");\nconst PrismaGetDatabaseUsage_MetricValueSchema = z.object({\n unit: z.string().describe(\"Unit of measurement for the metric value. Examples: 'bytes' for storage, 'count' for operations.\").nullable(),\n used: z.number().describe(\"Amount of the resource used during the specified period. Numeric value representing usage count or size.\").nullable(),\n}).passthrough().describe(\"Individual metric value with unit information.\");\nconst PrismaGetDatabaseUsage_UsageMetricsSchema = z.object({\n storage: PrismaGetDatabaseUsage_MetricValueSchema.nullable(),\n operations: PrismaGetDatabaseUsage_MetricValueSchema.nullable(),\n}).passthrough().describe(\"Database usage metrics including operations and storage.\");\nexport const PrismaGetDatabaseUsageOutput = z.object({\n period: PrismaGetDatabaseUsage_UsagePeriodSchema.nullable(),\n metrics: PrismaGetDatabaseUsage_UsageMetricsSchema.nullable(),\n generatedAt: z.string().describe(\"ISO 8601 timestamp when the usage report was generated (e.g., '2025-08-01T10:30:00Z').\").nullable(),\n}).passthrough().describe(\"API response containing database usage metrics.\");\n\nexport const prismaGetDatabaseUsage = action(\"PRISMA_GET_DATABASE_USAGE\", {\n slug: \"prisma-get-database-usage\",\n name: \"Get Database Usage Metrics\",\n description: \"Retrieve usage metrics for a specific Prisma database. Returns metrics including storage usage and operation counts (reads/writes) for the specified time period. Use for monitoring resource consumption, cost analysis, and capacity planning.\",\n input: PrismaGetDatabaseUsageInput,\n output: PrismaGetDatabaseUsageOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-database-usage.mjs","names":[],"sources":["../../src/actions/get-database-usage.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { prisma } from \"../app\";\n\nexport const PrismaGetDatabaseUsageInput = z.object({\n endDate: z.string().describe(\"End date for metrics query in ISO 8601 format (e.g., '2025-07-31T23:59:59Z'). Defaults to current date if not provided. Will be set to end of day if a future date is provided.\").optional(),\n startDate: z.string().describe(\"Start date for metrics query in ISO 8601 format (e.g., '2025-07-01T00:00:00Z'). Defaults to start of current month if not provided. Use to specify custom date ranges for usage analysis.\").optional(),\n databaseId: z.string().describe(\"Unique database identifier to retrieve usage metrics for (format: 'db_xxxxx'). Must be a database the authenticated user has access to. This ID is obtained from database listing or creation operations.\"),\n}).describe(\"Request parameters for retrieving database usage metrics.\");\nconst PrismaGetDatabaseUsage_UsagePeriodSchema = z.object({\n end: z.string().describe(\"ISO 8601 timestamp marking the end of the metrics period (e.g., '2025-07-31T23:59:59Z').\").nullable(),\n start: z.string().describe(\"ISO 8601 timestamp marking the start of the metrics period (e.g., '2025-07-01T00:00:00Z').\").nullable(),\n}).passthrough().describe(\"Time period for the usage metrics.\");\nconst PrismaGetDatabaseUsage_MetricValueSchema = z.object({\n unit: z.string().describe(\"Unit of measurement for the metric value. Examples: 'bytes' for storage, 'count' for operations.\").nullable(),\n used: z.number().describe(\"Amount of the resource used during the specified period. Numeric value representing usage count or size.\").nullable(),\n}).passthrough().describe(\"Individual metric value with unit information.\");\nconst PrismaGetDatabaseUsage_UsageMetricsSchema = z.object({\n storage: PrismaGetDatabaseUsage_MetricValueSchema.nullable(),\n operations: PrismaGetDatabaseUsage_MetricValueSchema.nullable(),\n}).passthrough().describe(\"Database usage metrics including operations and storage.\");\nexport const PrismaGetDatabaseUsageOutput = z.object({\n period: PrismaGetDatabaseUsage_UsagePeriodSchema.nullable(),\n metrics: PrismaGetDatabaseUsage_UsageMetricsSchema.nullable(),\n generatedAt: z.string().describe(\"ISO 8601 timestamp when the usage report was generated (e.g., '2025-08-01T10:30:00Z').\").nullable(),\n}).passthrough().describe(\"API response containing database usage metrics.\");\n\nexport const prismaGetDatabaseUsage: AppAction<\n typeof PrismaGetDatabaseUsageInput,\n typeof PrismaGetDatabaseUsageOutput,\n typeof prisma.credential\n> = action(\"PRISMA_GET_DATABASE_USAGE\", {\n slug: \"prisma-get-database-usage\",\n name: \"Get Database Usage Metrics\",\n description: \"Retrieve usage metrics for a specific Prisma database. Returns metrics including storage usage and operation counts (reads/writes) for the specified time period. Use for monitoring resource consumption, cost analysis, and capacity planning.\",\n input: PrismaGetDatabaseUsageInput,\n output: PrismaGetDatabaseUsageOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8B,EAAE,OAAO;CAClD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iLAAiL,CAAC,CAAC,SAAS;CACzN,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2LAA2L,CAAC,CAAC,SAAS;CACrO,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2MAA2M;AAC7O,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,2CAA2C,EAAE,OAAO;CACxD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;CAC9H,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;AACpI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAAoC;AAC9D,MAAM,2CAA2C,EAAE,OAAO;CACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CACvI,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;AACjJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAC1E,MAAM,4CAA4C,EAAE,OAAO;CACzD,SAAS,yCAAyC,SAAS;CAC3D,YAAY,yCAAyC,SAAS;AAChE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAA0D;AAOpF,MAAa,yBAIT,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAf0C,EAAE,OAAO;EACnD,QAAQ,yCAAyC,SAAS;EAC1D,SAAS,0CAA0C,SAAS;EAC5D,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;CACtI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-database.cjs","names":["z","action"],"sources":["../../src/actions/get-database.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaGetDatabaseInput = z.object({\n databaseId: z.string().describe(\"Unique database identifier to retrieve (format: 'db_xxxxx'). This ID is obtained from database listing or creation operations. Must be a database the authenticated user has access to.\"),\n}).describe(\"Request parameters for retrieving a specific database by ID.\");\nconst PrismaGetDatabase_RegionInfoSchema = z.object({\n id: z.string().describe(\"Region identifier (e.g., 'us-east-1').\").nullable(),\n name: z.string().describe(\"Human-readable region name.\").nullable(),\n}).passthrough().describe(\"Database region information.\");\nconst PrismaGetDatabase_ProjectInfoSchema = z.object({\n id: z.string().describe(\"Unique project ID containing this database.\").nullable(),\n name: z.string().describe(\"Human-readable project name.\").nullable(),\n}).passthrough().describe(\"Project information embedded in database.\");\nconst PrismaGetDatabase_DatabaseDetailsSchema = z.object({\n id: z.string().describe(\"Unique database identifier.\").nullable(),\n name: z.string().describe(\"Human-readable database name.\").nullable(),\n type: z.string().describe(\"Object type, always 'database'.\").nullable(),\n region: PrismaGetDatabase_RegionInfoSchema.nullable(),\n status: z.string().describe(\"Current database operational status. Values: 'ready' (operational), 'provisioning' (being created), 'failure' (error state), 'maintenance' (temporarily unavailable).\").nullable(),\n project: PrismaGetDatabase_ProjectInfoSchema.nullable(),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp in UTC.\").nullable(),\n isDefault: z.boolean().describe(\"True if this is the default database for its project. Default databases are created automatically with projects.\").nullable(),\n}).passthrough().describe(\"Complete database information.\");\nexport const PrismaGetDatabaseOutput = z.object({\n data: PrismaGetDatabase_DatabaseDetailsSchema.nullable(),\n}).passthrough().describe(\"API response containing database details.\");\n\nexport const prismaGetDatabase = action(\"PRISMA_GET_DATABASE\", {\n slug: \"prisma-get-database\",\n name: \"Get Prisma Database\",\n description: \"Retrieve specific Prisma database by ID. Returns database details including status, project context, and regional deployment. Use for database monitoring, validation, and administrative operations.\",\n input: PrismaGetDatabaseInput,\n output: PrismaGetDatabaseOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-database.cjs","names":["z","action"],"sources":["../../src/actions/get-database.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { prisma } from \"../app\";\n\nexport const PrismaGetDatabaseInput = z.object({\n databaseId: z.string().describe(\"Unique database identifier to retrieve (format: 'db_xxxxx'). This ID is obtained from database listing or creation operations. Must be a database the authenticated user has access to.\"),\n}).describe(\"Request parameters for retrieving a specific database by ID.\");\nconst PrismaGetDatabase_RegionInfoSchema = z.object({\n id: z.string().describe(\"Region identifier (e.g., 'us-east-1').\").nullable(),\n name: z.string().describe(\"Human-readable region name.\").nullable(),\n}).passthrough().describe(\"Database region information.\");\nconst PrismaGetDatabase_ProjectInfoSchema = z.object({\n id: z.string().describe(\"Unique project ID containing this database.\").nullable(),\n name: z.string().describe(\"Human-readable project name.\").nullable(),\n}).passthrough().describe(\"Project information embedded in database.\");\nconst PrismaGetDatabase_DatabaseDetailsSchema = z.object({\n id: z.string().describe(\"Unique database identifier.\").nullable(),\n name: z.string().describe(\"Human-readable database name.\").nullable(),\n type: z.string().describe(\"Object type, always 'database'.\").nullable(),\n region: PrismaGetDatabase_RegionInfoSchema.nullable(),\n status: z.string().describe(\"Current database operational status. Values: 'ready' (operational), 'provisioning' (being created), 'failure' (error state), 'maintenance' (temporarily unavailable).\").nullable(),\n project: PrismaGetDatabase_ProjectInfoSchema.nullable(),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp in UTC.\").nullable(),\n isDefault: z.boolean().describe(\"True if this is the default database for its project. Default databases are created automatically with projects.\").nullable(),\n}).passthrough().describe(\"Complete database information.\");\nexport const PrismaGetDatabaseOutput = z.object({\n data: PrismaGetDatabase_DatabaseDetailsSchema.nullable(),\n}).passthrough().describe(\"API response containing database details.\");\n\nexport const prismaGetDatabase: AppAction<\n typeof PrismaGetDatabaseInput,\n typeof PrismaGetDatabaseOutput,\n typeof prisma.credential\n> = action(\"PRISMA_GET_DATABASE\", {\n slug: \"prisma-get-database\",\n name: \"Get Prisma Database\",\n description: \"Retrieve specific Prisma database by ID. Returns database details including status, project context, and regional deployment. Use for database monitoring, validation, and administrative operations.\",\n input: PrismaGetDatabaseInput,\n output: PrismaGetDatabaseOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO,EAC7C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yLAAyL,EAC3N,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,qCAAqCA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC3E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;AACpE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8BAA8B;AACxD,MAAM,sCAAsCA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAChF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;AACrE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AACrE,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACpE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACtE,QAAQ,mCAAmC,SAAS;CACpD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uKAAuK,CAAC,CAAC,SAAS;CAC9M,SAAS,oCAAoC,SAAS;CACtD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC/E,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;AAC/J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gCAAgC;AAC1D,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,MAAM,wCAAwC,SAAS,EACzD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAErE,MAAa,oBAITC,eAAAA,OAAO,uBAAuB;CAChC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { prisma } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-database.d.ts
|
|
@@ -22,9 +24,7 @@ declare const PrismaGetDatabaseOutput: z.ZodObject<{
|
|
|
22
24
|
isDefault: z.ZodNullable<z.ZodBoolean>;
|
|
23
25
|
}, z.core.$loose>>;
|
|
24
26
|
}, z.core.$loose>;
|
|
25
|
-
declare const prismaGetDatabase:
|
|
26
|
-
databaseId: string;
|
|
27
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
27
|
+
declare const prismaGetDatabase: AppAction<typeof PrismaGetDatabaseInput, typeof PrismaGetDatabaseOutput, typeof prisma.credential>;
|
|
28
28
|
//#endregion
|
|
29
29
|
export { prismaGetDatabase };
|
|
30
30
|
//# sourceMappingURL=get-database.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-database.d.cts","names":[],"sources":["../../src/actions/get-database.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-database.d.cts","names":[],"sources":["../../src/actions/get-database.ts"],"mappings":";;;;;cAMa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;cAqBtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAIvB,iBAAA,EAAmB,SAAA,QACvB,sBAAA,SACA,uBAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { prisma } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-database.d.ts
|
|
@@ -22,9 +24,7 @@ declare const PrismaGetDatabaseOutput: z.ZodObject<{
|
|
|
22
24
|
isDefault: z.ZodNullable<z.ZodBoolean>;
|
|
23
25
|
}, z.core.$loose>>;
|
|
24
26
|
}, z.core.$loose>;
|
|
25
|
-
declare const prismaGetDatabase:
|
|
26
|
-
databaseId: string;
|
|
27
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
27
|
+
declare const prismaGetDatabase: AppAction<typeof PrismaGetDatabaseInput, typeof PrismaGetDatabaseOutput, typeof prisma.credential>;
|
|
28
28
|
//#endregion
|
|
29
29
|
export { prismaGetDatabase };
|
|
30
30
|
//# sourceMappingURL=get-database.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-database.d.mts","names":[],"sources":["../../src/actions/get-database.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-database.d.mts","names":[],"sources":["../../src/actions/get-database.ts"],"mappings":";;;;;cAMa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;cAqBtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAIvB,iBAAA,EAAmB,SAAA,QACvB,sBAAA,SACA,uBAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-database.mjs","names":[],"sources":["../../src/actions/get-database.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaGetDatabaseInput = z.object({\n databaseId: z.string().describe(\"Unique database identifier to retrieve (format: 'db_xxxxx'). This ID is obtained from database listing or creation operations. Must be a database the authenticated user has access to.\"),\n}).describe(\"Request parameters for retrieving a specific database by ID.\");\nconst PrismaGetDatabase_RegionInfoSchema = z.object({\n id: z.string().describe(\"Region identifier (e.g., 'us-east-1').\").nullable(),\n name: z.string().describe(\"Human-readable region name.\").nullable(),\n}).passthrough().describe(\"Database region information.\");\nconst PrismaGetDatabase_ProjectInfoSchema = z.object({\n id: z.string().describe(\"Unique project ID containing this database.\").nullable(),\n name: z.string().describe(\"Human-readable project name.\").nullable(),\n}).passthrough().describe(\"Project information embedded in database.\");\nconst PrismaGetDatabase_DatabaseDetailsSchema = z.object({\n id: z.string().describe(\"Unique database identifier.\").nullable(),\n name: z.string().describe(\"Human-readable database name.\").nullable(),\n type: z.string().describe(\"Object type, always 'database'.\").nullable(),\n region: PrismaGetDatabase_RegionInfoSchema.nullable(),\n status: z.string().describe(\"Current database operational status. Values: 'ready' (operational), 'provisioning' (being created), 'failure' (error state), 'maintenance' (temporarily unavailable).\").nullable(),\n project: PrismaGetDatabase_ProjectInfoSchema.nullable(),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp in UTC.\").nullable(),\n isDefault: z.boolean().describe(\"True if this is the default database for its project. Default databases are created automatically with projects.\").nullable(),\n}).passthrough().describe(\"Complete database information.\");\nexport const PrismaGetDatabaseOutput = z.object({\n data: PrismaGetDatabase_DatabaseDetailsSchema.nullable(),\n}).passthrough().describe(\"API response containing database details.\");\n\nexport const prismaGetDatabase = action(\"PRISMA_GET_DATABASE\", {\n slug: \"prisma-get-database\",\n name: \"Get Prisma Database\",\n description: \"Retrieve specific Prisma database by ID. Returns database details including status, project context, and regional deployment. Use for database monitoring, validation, and administrative operations.\",\n input: PrismaGetDatabaseInput,\n output: PrismaGetDatabaseOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-database.mjs","names":[],"sources":["../../src/actions/get-database.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { prisma } from \"../app\";\n\nexport const PrismaGetDatabaseInput = z.object({\n databaseId: z.string().describe(\"Unique database identifier to retrieve (format: 'db_xxxxx'). This ID is obtained from database listing or creation operations. Must be a database the authenticated user has access to.\"),\n}).describe(\"Request parameters for retrieving a specific database by ID.\");\nconst PrismaGetDatabase_RegionInfoSchema = z.object({\n id: z.string().describe(\"Region identifier (e.g., 'us-east-1').\").nullable(),\n name: z.string().describe(\"Human-readable region name.\").nullable(),\n}).passthrough().describe(\"Database region information.\");\nconst PrismaGetDatabase_ProjectInfoSchema = z.object({\n id: z.string().describe(\"Unique project ID containing this database.\").nullable(),\n name: z.string().describe(\"Human-readable project name.\").nullable(),\n}).passthrough().describe(\"Project information embedded in database.\");\nconst PrismaGetDatabase_DatabaseDetailsSchema = z.object({\n id: z.string().describe(\"Unique database identifier.\").nullable(),\n name: z.string().describe(\"Human-readable database name.\").nullable(),\n type: z.string().describe(\"Object type, always 'database'.\").nullable(),\n region: PrismaGetDatabase_RegionInfoSchema.nullable(),\n status: z.string().describe(\"Current database operational status. Values: 'ready' (operational), 'provisioning' (being created), 'failure' (error state), 'maintenance' (temporarily unavailable).\").nullable(),\n project: PrismaGetDatabase_ProjectInfoSchema.nullable(),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp in UTC.\").nullable(),\n isDefault: z.boolean().describe(\"True if this is the default database for its project. Default databases are created automatically with projects.\").nullable(),\n}).passthrough().describe(\"Complete database information.\");\nexport const PrismaGetDatabaseOutput = z.object({\n data: PrismaGetDatabase_DatabaseDetailsSchema.nullable(),\n}).passthrough().describe(\"API response containing database details.\");\n\nexport const prismaGetDatabase: AppAction<\n typeof PrismaGetDatabaseInput,\n typeof PrismaGetDatabaseOutput,\n typeof prisma.credential\n> = action(\"PRISMA_GET_DATABASE\", {\n slug: \"prisma-get-database\",\n name: \"Get Prisma Database\",\n description: \"Retrieve specific Prisma database by ID. Returns database details including status, project context, and regional deployment. Use for database monitoring, validation, and administrative operations.\",\n input: PrismaGetDatabaseInput,\n output: PrismaGetDatabaseOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,yBAAyB,EAAE,OAAO,EAC7C,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,yLAAyL,EAC3N,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,qCAAqC,EAAE,OAAO;CAClD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC3E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;AACpE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8BAA8B;AACxD,MAAM,sCAAsC,EAAE,OAAO;CACnD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAChF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;AACrE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AACrE,MAAM,0CAA0C,EAAE,OAAO;CACvD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACpE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACtE,QAAQ,mCAAmC,SAAS;CACpD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uKAAuK,CAAC,CAAC,SAAS;CAC9M,SAAS,oCAAoC,SAAS;CACtD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC/E,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;AAC/J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gCAAgC;AAK1D,MAAa,oBAIT,OAAO,uBAAuB;CAChC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbqC,EAAE,OAAO,EAC9C,MAAM,wCAAwC,SAAS,EACzD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-project.cjs","names":["z","action"],"sources":["../../src/actions/get-project.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaGetProjectInput = z.object({\n id: z.string().describe(\"Unique project identifier to retrieve (format: 'proj_xxxxx'). This ID is obtained from project listing or creation operations. Must be a project the authenticated user has access to.\"),\n}).describe(\"Request parameters for retrieving a specific project by ID.\");\nconst PrismaGetProject_WorkspaceInfoSchema = z.object({\n id: z.string().describe(\"Unique workspace ID containing this project.\").nullable(),\n name: z.string().describe(\"Human-readable workspace name.\").nullable(),\n}).passthrough().describe(\"Workspace information embedded in project.\");\nconst PrismaGetProject_ProjectDetailsSchema = z.object({\n id: z.string().describe(\"Unique project identifier.\").nullable(),\n name: z.string().describe(\"Human-readable project name.\").nullable(),\n type: z.string().describe(\"Object type, always 'project'.\").nullable(),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp in UTC.\").nullable(),\n workspace: PrismaGetProject_WorkspaceInfoSchema.nullable(),\n}).passthrough().describe(\"Complete project information.\");\nexport const PrismaGetProjectOutput = z.object({\n data: PrismaGetProject_ProjectDetailsSchema.nullable(),\n}).passthrough().describe(\"API response containing project details.\");\n\nexport const prismaGetProject = action(\"PRISMA_GET_PROJECT\", {\n slug: \"prisma-get-project\",\n name: \"Get Prisma Project\",\n description: \"Retrieve specific Prisma project by ID. Returns project details including name, creation timestamp, and workspace information. Use for project detail views, validation, and administrative operations.\",\n input: PrismaGetProjectInput,\n output: PrismaGetProjectOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-project.cjs","names":["z","action"],"sources":["../../src/actions/get-project.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { prisma } from \"../app\";\n\nexport const PrismaGetProjectInput = z.object({\n id: z.string().describe(\"Unique project identifier to retrieve (format: 'proj_xxxxx'). This ID is obtained from project listing or creation operations. Must be a project the authenticated user has access to.\"),\n}).describe(\"Request parameters for retrieving a specific project by ID.\");\nconst PrismaGetProject_WorkspaceInfoSchema = z.object({\n id: z.string().describe(\"Unique workspace ID containing this project.\").nullable(),\n name: z.string().describe(\"Human-readable workspace name.\").nullable(),\n}).passthrough().describe(\"Workspace information embedded in project.\");\nconst PrismaGetProject_ProjectDetailsSchema = z.object({\n id: z.string().describe(\"Unique project identifier.\").nullable(),\n name: z.string().describe(\"Human-readable project name.\").nullable(),\n type: z.string().describe(\"Object type, always 'project'.\").nullable(),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp in UTC.\").nullable(),\n workspace: PrismaGetProject_WorkspaceInfoSchema.nullable(),\n}).passthrough().describe(\"Complete project information.\");\nexport const PrismaGetProjectOutput = z.object({\n data: PrismaGetProject_ProjectDetailsSchema.nullable(),\n}).passthrough().describe(\"API response containing project details.\");\n\nexport const prismaGetProject: AppAction<\n typeof PrismaGetProjectInput,\n typeof PrismaGetProjectOutput,\n typeof prisma.credential\n> = action(\"PRISMA_GET_PROJECT\", {\n slug: \"prisma-get-project\",\n name: \"Get Prisma Project\",\n description: \"Retrieve specific Prisma project by ID. Returns project details including name, creation timestamp, and workspace information. Use for project detail views, validation, and administrative operations.\",\n input: PrismaGetProjectInput,\n output: PrismaGetProjectOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,wBAAwBA,IAAAA,EAAE,OAAO,EAC5C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wLAAwL,EAClN,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,uCAAuCA,IAAAA,EAAE,OAAO;CACpD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACjF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;AACvE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AACtE,MAAM,wCAAwCA,IAAAA,EAAE,OAAO;CACrD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACrE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC/E,WAAW,qCAAqC,SAAS;AAC3D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+BAA+B;AACzD,MAAa,yBAAyBA,IAAAA,EAAE,OAAO,EAC7C,MAAM,sCAAsC,SAAS,EACvD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AAEpE,MAAa,mBAITC,eAAAA,OAAO,sBAAsB;CAC/B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { prisma } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-project.d.ts
|
|
@@ -16,9 +18,7 @@ declare const PrismaGetProjectOutput: z.ZodObject<{
|
|
|
16
18
|
}, z.core.$loose>>;
|
|
17
19
|
}, z.core.$loose>>;
|
|
18
20
|
}, z.core.$loose>;
|
|
19
|
-
declare const prismaGetProject:
|
|
20
|
-
id: string;
|
|
21
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
21
|
+
declare const prismaGetProject: AppAction<typeof PrismaGetProjectInput, typeof PrismaGetProjectOutput, typeof prisma.credential>;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { prismaGetProject };
|
|
24
24
|
//# sourceMappingURL=get-project.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-project.d.cts","names":[],"sources":["../../src/actions/get-project.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-project.d.cts","names":[],"sources":["../../src/actions/get-project.ts"],"mappings":";;;;;cAMa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;cAcrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAItB,gBAAA,EAAkB,SAAA,QACtB,qBAAA,SACA,sBAAA,SACA,MAAA,CAAO,UAAA"}
|