@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,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-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.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-project.d.mts","names":[],"sources":["../../src/actions/get-project.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-project.d.mts","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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-project.mjs","names":[],"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.mjs","names":[],"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,wBAAwB,EAAE,OAAO,EAC5C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wLAAwL,EAClN,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,uCAAuC,EAAE,OAAO;CACpD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACjF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;AACvE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AACtE,MAAM,wCAAwC,EAAE,OAAO;CACrD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACnE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACrE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC/E,WAAW,qCAAqC,SAAS;AAC3D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+BAA+B;AAKzD,MAAa,mBAIT,OAAO,sBAAsB;CAC/B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAboC,EAAE,OAAO,EAC7C,MAAM,sCAAsC,SAAS,EACvD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inspect-database-schema.cjs","names":["z","action"],"sources":["../../src/actions/inspect-database-schema.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaInspectDatabaseSchemaInput = 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 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 tableName: z.string().describe(\"Optional specific table name to inspect. If provided, returns detailed column information for that table only. If omitted, returns overview of all tables in the database. Use for focused schema analysis of specific tables.\").optional(),\n includeIndexes: z.boolean().default(false).describe(\"Whether to include index information in the schema results. When true, shows primary keys, foreign keys, and other indexes. Useful for understanding table relationships and query optimization.\").optional(),\n}).describe(\"Request parameters for inspecting database schema structure.\");\nconst PrismaInspectDatabaseSchema_ColumnInfoSchema = z.object({\n dataType: z.string().describe(\"PostgreSQL data type (e.g., 'integer', 'text', 'timestamp with time zone').\").nullable(),\n columnName: z.string().describe(\"Name of the database column.\").nullable(),\n isNullable: z.boolean().describe(\"Whether the column allows NULL values.\").nullable(),\n defaultValue: z.string().describe(\"Default value for the column, if any.\").nullable().optional(),\n isForeignKey: z.boolean().default(false).describe(\"Whether this column is a foreign key.\").nullable().optional(),\n isPrimaryKey: z.boolean().default(false).describe(\"Whether this column is part of the primary key.\").nullable().optional(),\n referencedTable: z.string().describe(\"Referenced table name if this is a foreign key.\").nullable().optional(),\n referencedColumn: z.string().describe(\"Referenced column name if this is a foreign key.\").nullable().optional(),\n}).passthrough().describe(\"Database column information with type and constraints.\");\nconst PrismaInspectDatabaseSchema_TableInfoSchema = z.object({\n columns: z.array(PrismaInspectDatabaseSchema_ColumnInfoSchema).describe(\"Array of column information for the table including types, constraints, and relationships.\"),\n rowCount: z.number().int().describe(\"Approximate number of rows in the table.\").nullable().optional(),\n tableName: z.string().describe(\"Name of the database table.\").nullable(),\n tableType: z.string().describe(\"Type of table (e.g., 'BASE TABLE', 'VIEW').\").nullable(),\n}).passthrough().describe(\"Database table information with columns and metadata.\");\nconst PrismaInspectDatabaseSchema_DatabaseSchemaInfoSchema = z.object({\n tables: z.array(PrismaInspectDatabaseSchema_TableInfoSchema).describe(\"Array of table information including columns and metadata.\"),\n schemaName: z.string().describe(\"Schema name (typically 'public' for PostgreSQL).\").nullable(),\n totalTables: z.number().int().describe(\"Total number of tables in the database.\").nullable(),\n databaseName: z.string().describe(\"Name of the database.\").nullable(),\n}).passthrough().describe(\"Complete database schema information.\");\nexport const PrismaInspectDatabaseSchemaOutput = z.object({\n database_schema: PrismaInspectDatabaseSchema_DatabaseSchemaInfoSchema.nullable(),\n}).passthrough().describe(\"API response containing database schema information.\");\n\nexport const prismaInspectDatabaseSchema = action(\"PRISMA_INSPECT_DATABASE_SCHEMA\", {\n slug: \"prisma-inspect-database-schema\",\n name: \"Inspect Database Schema\",\n description: \"Inspect database schema structure and table information. Returns comprehensive schema details including tables, columns, data types, constraints, and relationships. Essential for understanding database structure before executing queries.\",\n input: PrismaInspectDatabaseSchemaInput,\n output: PrismaInspectDatabaseSchemaOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"inspect-database-schema.cjs","names":["z","action"],"sources":["../../src/actions/inspect-database-schema.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 PrismaInspectDatabaseSchemaInput = 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 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 tableName: z.string().describe(\"Optional specific table name to inspect. If provided, returns detailed column information for that table only. If omitted, returns overview of all tables in the database. Use for focused schema analysis of specific tables.\").optional(),\n includeIndexes: z.boolean().default(false).describe(\"Whether to include index information in the schema results. When true, shows primary keys, foreign keys, and other indexes. Useful for understanding table relationships and query optimization.\").optional(),\n}).describe(\"Request parameters for inspecting database schema structure.\");\nconst PrismaInspectDatabaseSchema_ColumnInfoSchema = z.object({\n dataType: z.string().describe(\"PostgreSQL data type (e.g., 'integer', 'text', 'timestamp with time zone').\").nullable(),\n columnName: z.string().describe(\"Name of the database column.\").nullable(),\n isNullable: z.boolean().describe(\"Whether the column allows NULL values.\").nullable(),\n defaultValue: z.string().describe(\"Default value for the column, if any.\").nullable().optional(),\n isForeignKey: z.boolean().default(false).describe(\"Whether this column is a foreign key.\").nullable().optional(),\n isPrimaryKey: z.boolean().default(false).describe(\"Whether this column is part of the primary key.\").nullable().optional(),\n referencedTable: z.string().describe(\"Referenced table name if this is a foreign key.\").nullable().optional(),\n referencedColumn: z.string().describe(\"Referenced column name if this is a foreign key.\").nullable().optional(),\n}).passthrough().describe(\"Database column information with type and constraints.\");\nconst PrismaInspectDatabaseSchema_TableInfoSchema = z.object({\n columns: z.array(PrismaInspectDatabaseSchema_ColumnInfoSchema).describe(\"Array of column information for the table including types, constraints, and relationships.\"),\n rowCount: z.number().int().describe(\"Approximate number of rows in the table.\").nullable().optional(),\n tableName: z.string().describe(\"Name of the database table.\").nullable(),\n tableType: z.string().describe(\"Type of table (e.g., 'BASE TABLE', 'VIEW').\").nullable(),\n}).passthrough().describe(\"Database table information with columns and metadata.\");\nconst PrismaInspectDatabaseSchema_DatabaseSchemaInfoSchema = z.object({\n tables: z.array(PrismaInspectDatabaseSchema_TableInfoSchema).describe(\"Array of table information including columns and metadata.\"),\n schemaName: z.string().describe(\"Schema name (typically 'public' for PostgreSQL).\").nullable(),\n totalTables: z.number().int().describe(\"Total number of tables in the database.\").nullable(),\n databaseName: z.string().describe(\"Name of the database.\").nullable(),\n}).passthrough().describe(\"Complete database schema information.\");\nexport const PrismaInspectDatabaseSchemaOutput = z.object({\n database_schema: PrismaInspectDatabaseSchema_DatabaseSchemaInfoSchema.nullable(),\n}).passthrough().describe(\"API response containing database schema information.\");\n\nexport const prismaInspectDatabaseSchema: AppAction<\n typeof PrismaInspectDatabaseSchemaInput,\n typeof PrismaInspectDatabaseSchemaOutput,\n typeof prisma.credential\n> = action(\"PRISMA_INSPECT_DATABASE_SCHEMA\", {\n slug: \"prisma-inspect-database-schema\",\n name: \"Inspect Database Schema\",\n description: \"Inspect database schema structure and table information. Returns comprehensive schema details including tables, columns, data types, constraints, and relationships. Essential for understanding database structure before executing queries.\",\n input: PrismaInspectDatabaseSchemaInput,\n output: PrismaInspectDatabaseSchemaOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mMAAmM;CAC7N,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mKAAmK;CAC7L,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gKAAgK;CAC9L,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gOAAgO,CAAC,CAAC,SAAS;CAC1Q,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,kMAAkM,CAAC,CAAC,SAAS;AACnQ,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,+CAA+CA,IAAAA,EAAE,OAAO;CAC5D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACtH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACzE,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACpF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,cAAcA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,cAAcA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzH,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAAwD;AAClF,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,SAASA,IAAAA,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,4FAA4F;CACpK,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACvE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AACjF,MAAM,uDAAuDA,IAAAA,EAAE,OAAO;CACpE,QAAQA,IAAAA,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,4DAA4D;CAClI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC7F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC3F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;AACtE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AACjE,MAAa,oCAAoCA,IAAAA,EAAE,OAAO,EACxD,iBAAiB,qDAAqD,SAAS,EACjF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAAsD;AAEhF,MAAa,8BAITC,eAAAA,OAAO,kCAAkC;CAC3C,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/inspect-database-schema.d.ts
|
|
@@ -30,13 +32,7 @@ declare const PrismaInspectDatabaseSchemaOutput: z.ZodObject<{
|
|
|
30
32
|
databaseName: z.ZodNullable<z.ZodString>;
|
|
31
33
|
}, z.core.$loose>>;
|
|
32
34
|
}, z.core.$loose>;
|
|
33
|
-
declare const prismaInspectDatabaseSchema:
|
|
34
|
-
host: string;
|
|
35
|
-
user: string;
|
|
36
|
-
password: string;
|
|
37
|
-
tableName?: string | undefined;
|
|
38
|
-
includeIndexes?: boolean | undefined;
|
|
39
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
35
|
+
declare const prismaInspectDatabaseSchema: AppAction<typeof PrismaInspectDatabaseSchemaInput, typeof PrismaInspectDatabaseSchemaOutput, typeof prisma.credential>;
|
|
40
36
|
//#endregion
|
|
41
37
|
export { prismaInspectDatabaseSchema };
|
|
42
38
|
//# sourceMappingURL=inspect-database-schema.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inspect-database-schema.d.cts","names":[],"sources":["../../src/actions/inspect-database-schema.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"inspect-database-schema.d.cts","names":[],"sources":["../../src/actions/inspect-database-schema.ts"],"mappings":";;;;;cAMa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;cA6BhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAIjC,2BAAA,EAA6B,SAAA,QACjC,gCAAA,SACA,iCAAA,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/inspect-database-schema.d.ts
|
|
@@ -30,13 +32,7 @@ declare const PrismaInspectDatabaseSchemaOutput: z.ZodObject<{
|
|
|
30
32
|
databaseName: z.ZodNullable<z.ZodString>;
|
|
31
33
|
}, z.core.$loose>>;
|
|
32
34
|
}, z.core.$loose>;
|
|
33
|
-
declare const prismaInspectDatabaseSchema:
|
|
34
|
-
host: string;
|
|
35
|
-
user: string;
|
|
36
|
-
password: string;
|
|
37
|
-
tableName?: string | undefined;
|
|
38
|
-
includeIndexes?: boolean | undefined;
|
|
39
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
35
|
+
declare const prismaInspectDatabaseSchema: AppAction<typeof PrismaInspectDatabaseSchemaInput, typeof PrismaInspectDatabaseSchemaOutput, typeof prisma.credential>;
|
|
40
36
|
//#endregion
|
|
41
37
|
export { prismaInspectDatabaseSchema };
|
|
42
38
|
//# sourceMappingURL=inspect-database-schema.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inspect-database-schema.d.mts","names":[],"sources":["../../src/actions/inspect-database-schema.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"inspect-database-schema.d.mts","names":[],"sources":["../../src/actions/inspect-database-schema.ts"],"mappings":";;;;;cAMa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;cA6BhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAIjC,2BAAA,EAA6B,SAAA,QACjC,gCAAA,SACA,iCAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inspect-database-schema.mjs","names":[],"sources":["../../src/actions/inspect-database-schema.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaInspectDatabaseSchemaInput = 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 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 tableName: z.string().describe(\"Optional specific table name to inspect. If provided, returns detailed column information for that table only. If omitted, returns overview of all tables in the database. Use for focused schema analysis of specific tables.\").optional(),\n includeIndexes: z.boolean().default(false).describe(\"Whether to include index information in the schema results. When true, shows primary keys, foreign keys, and other indexes. Useful for understanding table relationships and query optimization.\").optional(),\n}).describe(\"Request parameters for inspecting database schema structure.\");\nconst PrismaInspectDatabaseSchema_ColumnInfoSchema = z.object({\n dataType: z.string().describe(\"PostgreSQL data type (e.g., 'integer', 'text', 'timestamp with time zone').\").nullable(),\n columnName: z.string().describe(\"Name of the database column.\").nullable(),\n isNullable: z.boolean().describe(\"Whether the column allows NULL values.\").nullable(),\n defaultValue: z.string().describe(\"Default value for the column, if any.\").nullable().optional(),\n isForeignKey: z.boolean().default(false).describe(\"Whether this column is a foreign key.\").nullable().optional(),\n isPrimaryKey: z.boolean().default(false).describe(\"Whether this column is part of the primary key.\").nullable().optional(),\n referencedTable: z.string().describe(\"Referenced table name if this is a foreign key.\").nullable().optional(),\n referencedColumn: z.string().describe(\"Referenced column name if this is a foreign key.\").nullable().optional(),\n}).passthrough().describe(\"Database column information with type and constraints.\");\nconst PrismaInspectDatabaseSchema_TableInfoSchema = z.object({\n columns: z.array(PrismaInspectDatabaseSchema_ColumnInfoSchema).describe(\"Array of column information for the table including types, constraints, and relationships.\"),\n rowCount: z.number().int().describe(\"Approximate number of rows in the table.\").nullable().optional(),\n tableName: z.string().describe(\"Name of the database table.\").nullable(),\n tableType: z.string().describe(\"Type of table (e.g., 'BASE TABLE', 'VIEW').\").nullable(),\n}).passthrough().describe(\"Database table information with columns and metadata.\");\nconst PrismaInspectDatabaseSchema_DatabaseSchemaInfoSchema = z.object({\n tables: z.array(PrismaInspectDatabaseSchema_TableInfoSchema).describe(\"Array of table information including columns and metadata.\"),\n schemaName: z.string().describe(\"Schema name (typically 'public' for PostgreSQL).\").nullable(),\n totalTables: z.number().int().describe(\"Total number of tables in the database.\").nullable(),\n databaseName: z.string().describe(\"Name of the database.\").nullable(),\n}).passthrough().describe(\"Complete database schema information.\");\nexport const PrismaInspectDatabaseSchemaOutput = z.object({\n database_schema: PrismaInspectDatabaseSchema_DatabaseSchemaInfoSchema.nullable(),\n}).passthrough().describe(\"API response containing database schema information.\");\n\nexport const prismaInspectDatabaseSchema = action(\"PRISMA_INSPECT_DATABASE_SCHEMA\", {\n slug: \"prisma-inspect-database-schema\",\n name: \"Inspect Database Schema\",\n description: \"Inspect database schema structure and table information. Returns comprehensive schema details including tables, columns, data types, constraints, and relationships. Essential for understanding database structure before executing queries.\",\n input: PrismaInspectDatabaseSchemaInput,\n output: PrismaInspectDatabaseSchemaOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"inspect-database-schema.mjs","names":[],"sources":["../../src/actions/inspect-database-schema.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 PrismaInspectDatabaseSchemaInput = 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 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 tableName: z.string().describe(\"Optional specific table name to inspect. If provided, returns detailed column information for that table only. If omitted, returns overview of all tables in the database. Use for focused schema analysis of specific tables.\").optional(),\n includeIndexes: z.boolean().default(false).describe(\"Whether to include index information in the schema results. When true, shows primary keys, foreign keys, and other indexes. Useful for understanding table relationships and query optimization.\").optional(),\n}).describe(\"Request parameters for inspecting database schema structure.\");\nconst PrismaInspectDatabaseSchema_ColumnInfoSchema = z.object({\n dataType: z.string().describe(\"PostgreSQL data type (e.g., 'integer', 'text', 'timestamp with time zone').\").nullable(),\n columnName: z.string().describe(\"Name of the database column.\").nullable(),\n isNullable: z.boolean().describe(\"Whether the column allows NULL values.\").nullable(),\n defaultValue: z.string().describe(\"Default value for the column, if any.\").nullable().optional(),\n isForeignKey: z.boolean().default(false).describe(\"Whether this column is a foreign key.\").nullable().optional(),\n isPrimaryKey: z.boolean().default(false).describe(\"Whether this column is part of the primary key.\").nullable().optional(),\n referencedTable: z.string().describe(\"Referenced table name if this is a foreign key.\").nullable().optional(),\n referencedColumn: z.string().describe(\"Referenced column name if this is a foreign key.\").nullable().optional(),\n}).passthrough().describe(\"Database column information with type and constraints.\");\nconst PrismaInspectDatabaseSchema_TableInfoSchema = z.object({\n columns: z.array(PrismaInspectDatabaseSchema_ColumnInfoSchema).describe(\"Array of column information for the table including types, constraints, and relationships.\"),\n rowCount: z.number().int().describe(\"Approximate number of rows in the table.\").nullable().optional(),\n tableName: z.string().describe(\"Name of the database table.\").nullable(),\n tableType: z.string().describe(\"Type of table (e.g., 'BASE TABLE', 'VIEW').\").nullable(),\n}).passthrough().describe(\"Database table information with columns and metadata.\");\nconst PrismaInspectDatabaseSchema_DatabaseSchemaInfoSchema = z.object({\n tables: z.array(PrismaInspectDatabaseSchema_TableInfoSchema).describe(\"Array of table information including columns and metadata.\"),\n schemaName: z.string().describe(\"Schema name (typically 'public' for PostgreSQL).\").nullable(),\n totalTables: z.number().int().describe(\"Total number of tables in the database.\").nullable(),\n databaseName: z.string().describe(\"Name of the database.\").nullable(),\n}).passthrough().describe(\"Complete database schema information.\");\nexport const PrismaInspectDatabaseSchemaOutput = z.object({\n database_schema: PrismaInspectDatabaseSchema_DatabaseSchemaInfoSchema.nullable(),\n}).passthrough().describe(\"API response containing database schema information.\");\n\nexport const prismaInspectDatabaseSchema: AppAction<\n typeof PrismaInspectDatabaseSchemaInput,\n typeof PrismaInspectDatabaseSchemaOutput,\n typeof prisma.credential\n> = action(\"PRISMA_INSPECT_DATABASE_SCHEMA\", {\n slug: \"prisma-inspect-database-schema\",\n name: \"Inspect Database Schema\",\n description: \"Inspect database schema structure and table information. Returns comprehensive schema details including tables, columns, data types, constraints, and relationships. Essential for understanding database structure before executing queries.\",\n input: PrismaInspectDatabaseSchemaInput,\n output: PrismaInspectDatabaseSchemaOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,mCAAmC,EAAE,OAAO;CACvD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mMAAmM;CAC7N,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mKAAmK;CAC7L,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gKAAgK;CAC9L,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gOAAgO,CAAC,CAAC,SAAS;CAC1Q,gBAAgB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,kMAAkM,CAAC,CAAC,SAAS;AACnQ,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,+CAA+C,EAAE,OAAO;CAC5D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACtH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACzE,YAAY,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACpF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,cAAc,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,cAAc,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzH,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAAwD;AAClF,MAAM,8CAA8C,EAAE,OAAO;CAC3D,SAAS,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,4FAA4F;CACpK,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACvE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AACjF,MAAM,uDAAuD,EAAE,OAAO;CACpE,QAAQ,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,4DAA4D;CAClI,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC7F,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC3F,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;AACtE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAKjE,MAAa,8BAIT,OAAO,kCAAkC;CAC3C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAb+C,EAAE,OAAO,EACxD,iBAAiB,qDAAqD,SAAS,EACjF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-accelerate-regions.cjs","names":["z","action"],"sources":["../../src/actions/list-accelerate-regions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaListAccelerateRegionsInput = z.object({}).describe(\"Request parameters for listing Prisma Accelerate regions.\");\nconst PrismaListAccelerateRegions_AccelerateRegionSchema = z.object({\n id: z.string().describe(\"Unique region identifier (e.g., 'us-east-1', 'eu-west-1'). Use this ID when configuring Accelerate caching in the desired region.\").nullable(),\n name: z.string().describe(\"Human-readable region name (e.g., 'US East (N. Virginia)', 'Europe (Ireland)'). Displays geographical location for optimal cache placement near your users.\").nullable(),\n type: z.string().describe(\"Object type, always 'region'. Provides consistency across API responses.\").nullable(),\n}).passthrough().describe(\"Prisma Accelerate region object for caching service.\");\nexport const PrismaListAccelerateRegionsOutput = z.object({\n data: z.array(PrismaListAccelerateRegions_AccelerateRegionSchema).describe(\"Array of Prisma Accelerate regions for global database caching. Choose regions closest to your users for optimal performance. All listed regions are available for cache deployment.\"),\n}).passthrough().describe(\"API response containing available Prisma Accelerate regions.\");\n\nexport const prismaListAccelerateRegions = action(\"PRISMA_LIST_ACCELERATE_REGIONS\", {\n slug: \"prisma-list-accelerate-regions\",\n name: \"List Prisma Accelerate Regions\",\n description: \"Retrieve all available regions for Prisma Accelerate. Returns regions where Accelerate global database cache can be deployed. Use for cache region selection to minimize latency for your users.\",\n input: PrismaListAccelerateRegionsInput,\n output: PrismaListAccelerateRegionsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-accelerate-regions.cjs","names":["z","action"],"sources":["../../src/actions/list-accelerate-regions.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 PrismaListAccelerateRegionsInput = z.object({}).describe(\"Request parameters for listing Prisma Accelerate regions.\");\nconst PrismaListAccelerateRegions_AccelerateRegionSchema = z.object({\n id: z.string().describe(\"Unique region identifier (e.g., 'us-east-1', 'eu-west-1'). Use this ID when configuring Accelerate caching in the desired region.\").nullable(),\n name: z.string().describe(\"Human-readable region name (e.g., 'US East (N. Virginia)', 'Europe (Ireland)'). Displays geographical location for optimal cache placement near your users.\").nullable(),\n type: z.string().describe(\"Object type, always 'region'. Provides consistency across API responses.\").nullable(),\n}).passthrough().describe(\"Prisma Accelerate region object for caching service.\");\nexport const PrismaListAccelerateRegionsOutput = z.object({\n data: z.array(PrismaListAccelerateRegions_AccelerateRegionSchema).describe(\"Array of Prisma Accelerate regions for global database caching. Choose regions closest to your users for optimal performance. All listed regions are available for cache deployment.\"),\n}).passthrough().describe(\"API response containing available Prisma Accelerate regions.\");\n\nexport const prismaListAccelerateRegions: AppAction<\n typeof PrismaListAccelerateRegionsInput,\n typeof PrismaListAccelerateRegionsOutput,\n typeof prisma.credential\n> = action(\"PRISMA_LIST_ACCELERATE_REGIONS\", {\n slug: \"prisma-list-accelerate-regions\",\n name: \"List Prisma Accelerate Regions\",\n description: \"Retrieve all available regions for Prisma Accelerate. Returns regions where Accelerate global database cache can be deployed. Use for cache region selection to minimize latency for your users.\",\n input: PrismaListAccelerateRegionsInput,\n output: PrismaListAccelerateRegionsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACjI,MAAM,qDAAqDA,IAAAA,EAAE,OAAO;CAClE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mIAAmI,CAAC,CAAC,SAAS;CACtK,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6JAA6J,CAAC,CAAC,SAAS;CAClM,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAAsD;AAChF,MAAa,oCAAoCA,IAAAA,EAAE,OAAO,EACxD,MAAMA,IAAAA,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,sLAAsL,EACnQ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8DAA8D;AAExF,MAAa,8BAITC,eAAAA,OAAO,kCAAkC;CAC3C,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/list-accelerate-regions.d.ts
|
|
@@ -9,7 +11,7 @@ declare const PrismaListAccelerateRegionsOutput: z.ZodObject<{
|
|
|
9
11
|
type: z.ZodNullable<z.ZodString>;
|
|
10
12
|
}, z.core.$loose>>;
|
|
11
13
|
}, z.core.$loose>;
|
|
12
|
-
declare const prismaListAccelerateRegions:
|
|
14
|
+
declare const prismaListAccelerateRegions: AppAction<typeof PrismaListAccelerateRegionsInput, typeof PrismaListAccelerateRegionsOutput, typeof prisma.credential>;
|
|
13
15
|
//#endregion
|
|
14
16
|
export { prismaListAccelerateRegions };
|
|
15
17
|
//# sourceMappingURL=list-accelerate-regions.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-accelerate-regions.d.cts","names":[],"sources":["../../src/actions/list-accelerate-regions.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-accelerate-regions.d.cts","names":[],"sources":["../../src/actions/list-accelerate-regions.ts"],"mappings":";;;;;cAMa,gCAAA,EAAgC,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAMhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;cAIjC,2BAAA,EAA6B,SAAA,QACjC,gCAAA,SACA,iCAAA,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/list-accelerate-regions.d.ts
|
|
@@ -9,7 +11,7 @@ declare const PrismaListAccelerateRegionsOutput: z.ZodObject<{
|
|
|
9
11
|
type: z.ZodNullable<z.ZodString>;
|
|
10
12
|
}, z.core.$loose>>;
|
|
11
13
|
}, z.core.$loose>;
|
|
12
|
-
declare const prismaListAccelerateRegions:
|
|
14
|
+
declare const prismaListAccelerateRegions: AppAction<typeof PrismaListAccelerateRegionsInput, typeof PrismaListAccelerateRegionsOutput, typeof prisma.credential>;
|
|
13
15
|
//#endregion
|
|
14
16
|
export { prismaListAccelerateRegions };
|
|
15
17
|
//# sourceMappingURL=list-accelerate-regions.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-accelerate-regions.d.mts","names":[],"sources":["../../src/actions/list-accelerate-regions.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-accelerate-regions.d.mts","names":[],"sources":["../../src/actions/list-accelerate-regions.ts"],"mappings":";;;;;cAMa,gCAAA,EAAgC,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAMhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;cAIjC,2BAAA,EAA6B,SAAA,QACjC,gCAAA,SACA,iCAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-accelerate-regions.mjs","names":[],"sources":["../../src/actions/list-accelerate-regions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaListAccelerateRegionsInput = z.object({}).describe(\"Request parameters for listing Prisma Accelerate regions.\");\nconst PrismaListAccelerateRegions_AccelerateRegionSchema = z.object({\n id: z.string().describe(\"Unique region identifier (e.g., 'us-east-1', 'eu-west-1'). Use this ID when configuring Accelerate caching in the desired region.\").nullable(),\n name: z.string().describe(\"Human-readable region name (e.g., 'US East (N. Virginia)', 'Europe (Ireland)'). Displays geographical location for optimal cache placement near your users.\").nullable(),\n type: z.string().describe(\"Object type, always 'region'. Provides consistency across API responses.\").nullable(),\n}).passthrough().describe(\"Prisma Accelerate region object for caching service.\");\nexport const PrismaListAccelerateRegionsOutput = z.object({\n data: z.array(PrismaListAccelerateRegions_AccelerateRegionSchema).describe(\"Array of Prisma Accelerate regions for global database caching. Choose regions closest to your users for optimal performance. All listed regions are available for cache deployment.\"),\n}).passthrough().describe(\"API response containing available Prisma Accelerate regions.\");\n\nexport const prismaListAccelerateRegions = action(\"PRISMA_LIST_ACCELERATE_REGIONS\", {\n slug: \"prisma-list-accelerate-regions\",\n name: \"List Prisma Accelerate Regions\",\n description: \"Retrieve all available regions for Prisma Accelerate. Returns regions where Accelerate global database cache can be deployed. Use for cache region selection to minimize latency for your users.\",\n input: PrismaListAccelerateRegionsInput,\n output: PrismaListAccelerateRegionsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-accelerate-regions.mjs","names":[],"sources":["../../src/actions/list-accelerate-regions.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 PrismaListAccelerateRegionsInput = z.object({}).describe(\"Request parameters for listing Prisma Accelerate regions.\");\nconst PrismaListAccelerateRegions_AccelerateRegionSchema = z.object({\n id: z.string().describe(\"Unique region identifier (e.g., 'us-east-1', 'eu-west-1'). Use this ID when configuring Accelerate caching in the desired region.\").nullable(),\n name: z.string().describe(\"Human-readable region name (e.g., 'US East (N. Virginia)', 'Europe (Ireland)'). Displays geographical location for optimal cache placement near your users.\").nullable(),\n type: z.string().describe(\"Object type, always 'region'. Provides consistency across API responses.\").nullable(),\n}).passthrough().describe(\"Prisma Accelerate region object for caching service.\");\nexport const PrismaListAccelerateRegionsOutput = z.object({\n data: z.array(PrismaListAccelerateRegions_AccelerateRegionSchema).describe(\"Array of Prisma Accelerate regions for global database caching. Choose regions closest to your users for optimal performance. All listed regions are available for cache deployment.\"),\n}).passthrough().describe(\"API response containing available Prisma Accelerate regions.\");\n\nexport const prismaListAccelerateRegions: AppAction<\n typeof PrismaListAccelerateRegionsInput,\n typeof PrismaListAccelerateRegionsOutput,\n typeof prisma.credential\n> = action(\"PRISMA_LIST_ACCELERATE_REGIONS\", {\n slug: \"prisma-list-accelerate-regions\",\n name: \"List Prisma Accelerate Regions\",\n description: \"Retrieve all available regions for Prisma Accelerate. Returns regions where Accelerate global database cache can be deployed. Use for cache region selection to minimize latency for your users.\",\n input: PrismaListAccelerateRegionsInput,\n output: PrismaListAccelerateRegionsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,mCAAmC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACjI,MAAM,qDAAqD,EAAE,OAAO;CAClE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,mIAAmI,CAAC,CAAC,SAAS;CACtK,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6JAA6J,CAAC,CAAC,SAAS;CAClM,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAAsD;AAKhF,MAAa,8BAIT,OAAO,kCAAkC;CAC3C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAb+C,EAAE,OAAO,EACxD,MAAM,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,sLAAsL,EACnQ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8DAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-backups.cjs","names":["z","action"],"sources":["../../src/actions/list-backups.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaListBackupsInput = z.object({\n limit: z.number().int().default(25).describe(\"Maximum number of backups to return in a single request. Defaults to 25 if not specified. Typical range is 1-100. Use smaller values (10-25) for UI pagination, larger values (50-100) for processing.\").optional(),\n databaseId: z.string().describe(\"Unique database identifier to list backups for (format: 'db_xxxxx'). Must be a database the authenticated user has access to. All available backups for this database will be returned.\"),\n}).describe(\"Request parameters for listing backups for a database.\");\nconst PrismaListBackups_BackupSchema = z.object({\n id: z.string().describe(\"Unique backup identifier used for restoration operations. Use this ID with restore backup action to recover data to a new database.\").nullable(),\n size: z.number().int().describe(\"Backup size in bytes. Use for storage monitoring and restoration planning. Larger backups may take longer to restore.\").nullable(),\n type: z.string().describe(\"Object type, always 'backup'. Provides consistency across API responses.\").nullable(),\n status: z.string().describe(\"Current backup status indicating availability for restoration. Values: 'completed' (ready for restore), 'running' (backup in progress), 'failed' (backup error), 'expired' (past retention period).\").nullable(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when backup was created (e.g., '2025-07-20T11:09:30.705Z').\").nullable(),\n backupType: z.string().describe(\"Type of backup performed. Common values: 'full' (complete database), 'incremental' (changes only), 'scheduled' (automatic backup).\").nullable(),\n}).passthrough().describe(\"Database backup object with restoration details.\");\nconst PrismaListBackups_BackupMetaSchema = z.object({\n backupRetentionDays: z.number().int().describe(\"Number of days backups are retained before automatic deletion. Backups older than this period are automatically purged. Use for planning backup strategies and compliance requirements.\").nullable(),\n}).passthrough().describe(\"Backup metadata and retention policy information.\");\nconst PrismaListBackups_BackupPaginationSchema = z.object({\n limit: z.number().int().describe(\"Current limit applied to the backup listing request.\").nullable(),\n hasMore: z.boolean().describe(\"True if more backups are available beyond the current limit.\").nullable(),\n}).passthrough().describe(\"Pagination metadata for backup listing.\");\nexport const PrismaListBackupsOutput = z.object({\n data: z.array(PrismaListBackups_BackupSchema).describe(\"Array of backup objects for the specified database. Backups are ordered by creation date with most recent first. Only includes backups available for restoration within retention period.\"),\n meta: PrismaListBackups_BackupMetaSchema.nullable(),\n pagination: PrismaListBackups_BackupPaginationSchema.nullable(),\n}).passthrough().describe(\"API response containing backup list, metadata, and pagination.\");\n\nexport const prismaListBackups = action(\"PRISMA_LIST_BACKUPS\", {\n slug: \"prisma-list-backups\",\n name: \"List Database Backups\",\n description: \"Retrieve list of available backups for a specific database. Returns backup details including status, size, type, and restoration readiness. Use for backup monitoring, restoration planning, and compliance auditing.\",\n input: PrismaListBackupsInput,\n output: PrismaListBackupsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-backups.cjs","names":["z","action"],"sources":["../../src/actions/list-backups.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 PrismaListBackupsInput = z.object({\n limit: z.number().int().default(25).describe(\"Maximum number of backups to return in a single request. Defaults to 25 if not specified. Typical range is 1-100. Use smaller values (10-25) for UI pagination, larger values (50-100) for processing.\").optional(),\n databaseId: z.string().describe(\"Unique database identifier to list backups for (format: 'db_xxxxx'). Must be a database the authenticated user has access to. All available backups for this database will be returned.\"),\n}).describe(\"Request parameters for listing backups for a database.\");\nconst PrismaListBackups_BackupSchema = z.object({\n id: z.string().describe(\"Unique backup identifier used for restoration operations. Use this ID with restore backup action to recover data to a new database.\").nullable(),\n size: z.number().int().describe(\"Backup size in bytes. Use for storage monitoring and restoration planning. Larger backups may take longer to restore.\").nullable(),\n type: z.string().describe(\"Object type, always 'backup'. Provides consistency across API responses.\").nullable(),\n status: z.string().describe(\"Current backup status indicating availability for restoration. Values: 'completed' (ready for restore), 'running' (backup in progress), 'failed' (backup error), 'expired' (past retention period).\").nullable(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when backup was created (e.g., '2025-07-20T11:09:30.705Z').\").nullable(),\n backupType: z.string().describe(\"Type of backup performed. Common values: 'full' (complete database), 'incremental' (changes only), 'scheduled' (automatic backup).\").nullable(),\n}).passthrough().describe(\"Database backup object with restoration details.\");\nconst PrismaListBackups_BackupMetaSchema = z.object({\n backupRetentionDays: z.number().int().describe(\"Number of days backups are retained before automatic deletion. Backups older than this period are automatically purged. Use for planning backup strategies and compliance requirements.\").nullable(),\n}).passthrough().describe(\"Backup metadata and retention policy information.\");\nconst PrismaListBackups_BackupPaginationSchema = z.object({\n limit: z.number().int().describe(\"Current limit applied to the backup listing request.\").nullable(),\n hasMore: z.boolean().describe(\"True if more backups are available beyond the current limit.\").nullable(),\n}).passthrough().describe(\"Pagination metadata for backup listing.\");\nexport const PrismaListBackupsOutput = z.object({\n data: z.array(PrismaListBackups_BackupSchema).describe(\"Array of backup objects for the specified database. Backups are ordered by creation date with most recent first. Only includes backups available for restoration within retention period.\"),\n meta: PrismaListBackups_BackupMetaSchema.nullable(),\n pagination: PrismaListBackups_BackupPaginationSchema.nullable(),\n}).passthrough().describe(\"API response containing backup list, metadata, and pagination.\");\n\nexport const prismaListBackups: AppAction<\n typeof PrismaListBackupsInput,\n typeof PrismaListBackupsOutput,\n typeof prisma.credential\n> = action(\"PRISMA_LIST_BACKUPS\", {\n slug: \"prisma-list-backups\",\n name: \"List Database Backups\",\n description: \"Retrieve list of available backups for a specific database. Returns backup details including status, size, type, and restoration readiness. Use for backup monitoring, restoration planning, and compliance auditing.\",\n input: PrismaListBackupsInput,\n output: PrismaListBackupsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,wMAAwM,CAAC,CAAC,SAAS;CAChQ,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yLAAyL;AAC3N,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,iCAAiCA,IAAAA,EAAE,OAAO;CAC9C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qIAAqI,CAAC,CAAC,SAAS;CACxK,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uHAAuH,CAAC,CAAC,SAAS;CAClK,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CAC/G,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qMAAqM,CAAC,CAAC,SAAS;CAC5O,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CAC1H,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS;AACjL,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAC5E,MAAM,qCAAqCA,IAAAA,EAAE,OAAO,EAClD,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yLAAyL,CAAC,CAAC,SAAS,EACrP,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAC7E,MAAM,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAClG,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AACnE,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,MAAM,8BAA8B,CAAC,CAAC,SAAS,2LAA2L;CAClP,MAAM,mCAAmC,SAAS;CAClD,YAAY,yCAAyC,SAAS;AAChE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gEAAgE;AAE1F,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/list-backups.d.ts
|
|
@@ -22,10 +24,7 @@ declare const PrismaListBackupsOutput: z.ZodObject<{
|
|
|
22
24
|
hasMore: z.ZodNullable<z.ZodBoolean>;
|
|
23
25
|
}, z.core.$loose>>;
|
|
24
26
|
}, z.core.$loose>;
|
|
25
|
-
declare const prismaListBackups:
|
|
26
|
-
databaseId: string;
|
|
27
|
-
limit?: number | undefined;
|
|
28
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
27
|
+
declare const prismaListBackups: AppAction<typeof PrismaListBackupsInput, typeof PrismaListBackupsOutput, typeof prisma.credential>;
|
|
29
28
|
//#endregion
|
|
30
29
|
export { prismaListBackups };
|
|
31
30
|
//# sourceMappingURL=list-backups.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-backups.d.cts","names":[],"sources":["../../src/actions/list-backups.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-backups.d.cts","names":[],"sources":["../../src/actions/list-backups.ts"],"mappings":";;;;;cAMa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;cAmBtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAMvB,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/list-backups.d.ts
|
|
@@ -22,10 +24,7 @@ declare const PrismaListBackupsOutput: z.ZodObject<{
|
|
|
22
24
|
hasMore: z.ZodNullable<z.ZodBoolean>;
|
|
23
25
|
}, z.core.$loose>>;
|
|
24
26
|
}, z.core.$loose>;
|
|
25
|
-
declare const prismaListBackups:
|
|
26
|
-
databaseId: string;
|
|
27
|
-
limit?: number | undefined;
|
|
28
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
27
|
+
declare const prismaListBackups: AppAction<typeof PrismaListBackupsInput, typeof PrismaListBackupsOutput, typeof prisma.credential>;
|
|
29
28
|
//#endregion
|
|
30
29
|
export { prismaListBackups };
|
|
31
30
|
//# sourceMappingURL=list-backups.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-backups.d.mts","names":[],"sources":["../../src/actions/list-backups.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-backups.d.mts","names":[],"sources":["../../src/actions/list-backups.ts"],"mappings":";;;;;cAMa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;cAmBtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAMvB,iBAAA,EAAmB,SAAA,QACvB,sBAAA,SACA,uBAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-backups.mjs","names":[],"sources":["../../src/actions/list-backups.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaListBackupsInput = z.object({\n limit: z.number().int().default(25).describe(\"Maximum number of backups to return in a single request. Defaults to 25 if not specified. Typical range is 1-100. Use smaller values (10-25) for UI pagination, larger values (50-100) for processing.\").optional(),\n databaseId: z.string().describe(\"Unique database identifier to list backups for (format: 'db_xxxxx'). Must be a database the authenticated user has access to. All available backups for this database will be returned.\"),\n}).describe(\"Request parameters for listing backups for a database.\");\nconst PrismaListBackups_BackupSchema = z.object({\n id: z.string().describe(\"Unique backup identifier used for restoration operations. Use this ID with restore backup action to recover data to a new database.\").nullable(),\n size: z.number().int().describe(\"Backup size in bytes. Use for storage monitoring and restoration planning. Larger backups may take longer to restore.\").nullable(),\n type: z.string().describe(\"Object type, always 'backup'. Provides consistency across API responses.\").nullable(),\n status: z.string().describe(\"Current backup status indicating availability for restoration. Values: 'completed' (ready for restore), 'running' (backup in progress), 'failed' (backup error), 'expired' (past retention period).\").nullable(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when backup was created (e.g., '2025-07-20T11:09:30.705Z').\").nullable(),\n backupType: z.string().describe(\"Type of backup performed. Common values: 'full' (complete database), 'incremental' (changes only), 'scheduled' (automatic backup).\").nullable(),\n}).passthrough().describe(\"Database backup object with restoration details.\");\nconst PrismaListBackups_BackupMetaSchema = z.object({\n backupRetentionDays: z.number().int().describe(\"Number of days backups are retained before automatic deletion. Backups older than this period are automatically purged. Use for planning backup strategies and compliance requirements.\").nullable(),\n}).passthrough().describe(\"Backup metadata and retention policy information.\");\nconst PrismaListBackups_BackupPaginationSchema = z.object({\n limit: z.number().int().describe(\"Current limit applied to the backup listing request.\").nullable(),\n hasMore: z.boolean().describe(\"True if more backups are available beyond the current limit.\").nullable(),\n}).passthrough().describe(\"Pagination metadata for backup listing.\");\nexport const PrismaListBackupsOutput = z.object({\n data: z.array(PrismaListBackups_BackupSchema).describe(\"Array of backup objects for the specified database. Backups are ordered by creation date with most recent first. Only includes backups available for restoration within retention period.\"),\n meta: PrismaListBackups_BackupMetaSchema.nullable(),\n pagination: PrismaListBackups_BackupPaginationSchema.nullable(),\n}).passthrough().describe(\"API response containing backup list, metadata, and pagination.\");\n\nexport const prismaListBackups = action(\"PRISMA_LIST_BACKUPS\", {\n slug: \"prisma-list-backups\",\n name: \"List Database Backups\",\n description: \"Retrieve list of available backups for a specific database. Returns backup details including status, size, type, and restoration readiness. Use for backup monitoring, restoration planning, and compliance auditing.\",\n input: PrismaListBackupsInput,\n output: PrismaListBackupsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-backups.mjs","names":[],"sources":["../../src/actions/list-backups.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 PrismaListBackupsInput = z.object({\n limit: z.number().int().default(25).describe(\"Maximum number of backups to return in a single request. Defaults to 25 if not specified. Typical range is 1-100. Use smaller values (10-25) for UI pagination, larger values (50-100) for processing.\").optional(),\n databaseId: z.string().describe(\"Unique database identifier to list backups for (format: 'db_xxxxx'). Must be a database the authenticated user has access to. All available backups for this database will be returned.\"),\n}).describe(\"Request parameters for listing backups for a database.\");\nconst PrismaListBackups_BackupSchema = z.object({\n id: z.string().describe(\"Unique backup identifier used for restoration operations. Use this ID with restore backup action to recover data to a new database.\").nullable(),\n size: z.number().int().describe(\"Backup size in bytes. Use for storage monitoring and restoration planning. Larger backups may take longer to restore.\").nullable(),\n type: z.string().describe(\"Object type, always 'backup'. Provides consistency across API responses.\").nullable(),\n status: z.string().describe(\"Current backup status indicating availability for restoration. Values: 'completed' (ready for restore), 'running' (backup in progress), 'failed' (backup error), 'expired' (past retention period).\").nullable(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when backup was created (e.g., '2025-07-20T11:09:30.705Z').\").nullable(),\n backupType: z.string().describe(\"Type of backup performed. Common values: 'full' (complete database), 'incremental' (changes only), 'scheduled' (automatic backup).\").nullable(),\n}).passthrough().describe(\"Database backup object with restoration details.\");\nconst PrismaListBackups_BackupMetaSchema = z.object({\n backupRetentionDays: z.number().int().describe(\"Number of days backups are retained before automatic deletion. Backups older than this period are automatically purged. Use for planning backup strategies and compliance requirements.\").nullable(),\n}).passthrough().describe(\"Backup metadata and retention policy information.\");\nconst PrismaListBackups_BackupPaginationSchema = z.object({\n limit: z.number().int().describe(\"Current limit applied to the backup listing request.\").nullable(),\n hasMore: z.boolean().describe(\"True if more backups are available beyond the current limit.\").nullable(),\n}).passthrough().describe(\"Pagination metadata for backup listing.\");\nexport const PrismaListBackupsOutput = z.object({\n data: z.array(PrismaListBackups_BackupSchema).describe(\"Array of backup objects for the specified database. Backups are ordered by creation date with most recent first. Only includes backups available for restoration within retention period.\"),\n meta: PrismaListBackups_BackupMetaSchema.nullable(),\n pagination: PrismaListBackups_BackupPaginationSchema.nullable(),\n}).passthrough().describe(\"API response containing backup list, metadata, and pagination.\");\n\nexport const prismaListBackups: AppAction<\n typeof PrismaListBackupsInput,\n typeof PrismaListBackupsOutput,\n typeof prisma.credential\n> = action(\"PRISMA_LIST_BACKUPS\", {\n slug: \"prisma-list-backups\",\n name: \"List Database Backups\",\n description: \"Retrieve list of available backups for a specific database. Returns backup details including status, size, type, and restoration readiness. Use for backup monitoring, restoration planning, and compliance auditing.\",\n input: PrismaListBackupsInput,\n output: PrismaListBackupsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,yBAAyB,EAAE,OAAO;CAC7C,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,wMAAwM,CAAC,CAAC,SAAS;CAChQ,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,yLAAyL;AAC3N,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,iCAAiC,EAAE,OAAO;CAC9C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qIAAqI,CAAC,CAAC,SAAS;CACxK,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uHAAuH,CAAC,CAAC,SAAS;CAClK,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CAC/G,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qMAAqM,CAAC,CAAC,SAAS;CAC5O,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CAC1H,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS;AACjL,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAC5E,MAAM,qCAAqC,EAAE,OAAO,EAClD,qBAAqB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yLAAyL,CAAC,CAAC,SAAS,EACrP,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAC7E,MAAM,2CAA2C,EAAE,OAAO;CACxD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAClG,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAOnE,MAAa,oBAIT,OAAO,uBAAuB;CAChC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAfqC,EAAE,OAAO;EAC9C,MAAM,EAAE,MAAM,8BAA8B,CAAC,CAAC,SAAS,2LAA2L;EAClP,MAAM,mCAAmC,SAAS;EAClD,YAAY,yCAAyC,SAAS;CAChE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gEAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-connections.cjs","names":["z","action"],"sources":["../../src/actions/list-connections.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaListConnectionsInput = z.object({\n limit: z.number().int().default(100).describe(\"Maximum number of connections to return in a single request. Defaults to 100 if not specified. Valid range is typically 1-500. Use smaller values (10-50) for faster responses when you only need a few connections, or larger values (100-500) when bulk processing.\").optional(),\n cursor: z.string().describe(\"Pagination cursor for retrieving the next page of results. Use the 'nextCursor' value from a previous response to get subsequent pages. Leave as None/null for the first page. Enables efficient pagination through large numbers of connections without missing or duplicating entries.\").optional(),\n databaseId: z.string().describe(\"Unique database identifier to list connections for (format: 'db_xxxxx'). Must be a database the authenticated user has access to. All connection strings and API keys for this database will be returned.\"),\n}).describe(\"Request parameters for listing connections for a database.\");\nconst PrismaListConnections_DatabaseInfoSchema = z.object({\n id: z.string().describe(\"Unique database ID containing this connection.\").nullable(),\n name: z.string().describe(\"Human-readable database name.\").nullable(),\n}).passthrough().describe(\"Database information embedded in connection objects.\");\nconst PrismaListConnections_ConnectionSchema = z.object({\n id: z.string().describe(\"Unique connection identifier (format: 'con_xxxxx'). Use this ID for connection-specific operations like deletion. Each connection represents a unique API key for database access.\").nullable(),\n name: z.string().describe(\"Human-readable connection name set during creation. Used for identification and management in UIs. Common names include 'Production API Key', 'Dev Access', etc.\").nullable(),\n type: z.string().describe(\"Object type, always 'connection'. Provides consistency across API responses.\").nullable(),\n database: PrismaListConnections_DatabaseInfoSchema.nullable(),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp in UTC (e.g., '2025-07-20T11:08:47.879Z').\").nullable(),\n}).passthrough().describe(\"Database connection string / API key object.\");\nconst PrismaListConnections_PaginationSchema = z.object({\n hasMore: z.boolean().describe(\"True if more pages available. Check before making next request.\").nullable(),\n nextCursor: z.string().describe(\"Opaque cursor for next page. Pass to subsequent requests. Null when no more pages.\").nullable().optional(),\n}).passthrough().describe(\"Pagination metadata for cursor-based navigation through connection results.\");\nexport const PrismaListConnectionsOutput = z.object({\n data: z.array(PrismaListConnections_ConnectionSchema).describe(\"Array of connection objects for the specified database. Connections are ordered by creation date with most recent first. Each connection represents an API key for database access with unique credentials.\"),\n pagination: PrismaListConnections_PaginationSchema.nullable(),\n}).passthrough().describe(\"API response containing connection list and pagination metadata.\");\n\nexport const prismaListConnections = action(\"PRISMA_LIST_CONNECTIONS\", {\n slug: \"prisma-list-connections\",\n name: \"List Database Connections\",\n description: \"Retrieve paginated list of connections for a specific database. Returns connection details including names, creation dates, and database context. Use for API key management, security audits, and access control.\",\n input: PrismaListConnectionsInput,\n output: PrismaListConnectionsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-connections.cjs","names":["z","action"],"sources":["../../src/actions/list-connections.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 PrismaListConnectionsInput = z.object({\n limit: z.number().int().default(100).describe(\"Maximum number of connections to return in a single request. Defaults to 100 if not specified. Valid range is typically 1-500. Use smaller values (10-50) for faster responses when you only need a few connections, or larger values (100-500) when bulk processing.\").optional(),\n cursor: z.string().describe(\"Pagination cursor for retrieving the next page of results. Use the 'nextCursor' value from a previous response to get subsequent pages. Leave as None/null for the first page. Enables efficient pagination through large numbers of connections without missing or duplicating entries.\").optional(),\n databaseId: z.string().describe(\"Unique database identifier to list connections for (format: 'db_xxxxx'). Must be a database the authenticated user has access to. All connection strings and API keys for this database will be returned.\"),\n}).describe(\"Request parameters for listing connections for a database.\");\nconst PrismaListConnections_DatabaseInfoSchema = z.object({\n id: z.string().describe(\"Unique database ID containing this connection.\").nullable(),\n name: z.string().describe(\"Human-readable database name.\").nullable(),\n}).passthrough().describe(\"Database information embedded in connection objects.\");\nconst PrismaListConnections_ConnectionSchema = z.object({\n id: z.string().describe(\"Unique connection identifier (format: 'con_xxxxx'). Use this ID for connection-specific operations like deletion. Each connection represents a unique API key for database access.\").nullable(),\n name: z.string().describe(\"Human-readable connection name set during creation. Used for identification and management in UIs. Common names include 'Production API Key', 'Dev Access', etc.\").nullable(),\n type: z.string().describe(\"Object type, always 'connection'. Provides consistency across API responses.\").nullable(),\n database: PrismaListConnections_DatabaseInfoSchema.nullable(),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp in UTC (e.g., '2025-07-20T11:08:47.879Z').\").nullable(),\n}).passthrough().describe(\"Database connection string / API key object.\");\nconst PrismaListConnections_PaginationSchema = z.object({\n hasMore: z.boolean().describe(\"True if more pages available. Check before making next request.\").nullable(),\n nextCursor: z.string().describe(\"Opaque cursor for next page. Pass to subsequent requests. Null when no more pages.\").nullable().optional(),\n}).passthrough().describe(\"Pagination metadata for cursor-based navigation through connection results.\");\nexport const PrismaListConnectionsOutput = z.object({\n data: z.array(PrismaListConnections_ConnectionSchema).describe(\"Array of connection objects for the specified database. Connections are ordered by creation date with most recent first. Each connection represents an API key for database access with unique credentials.\"),\n pagination: PrismaListConnections_PaginationSchema.nullable(),\n}).passthrough().describe(\"API response containing connection list and pagination metadata.\");\n\nexport const prismaListConnections: AppAction<\n typeof PrismaListConnectionsInput,\n typeof PrismaListConnectionsOutput,\n typeof prisma.credential\n> = action(\"PRISMA_LIST_CONNECTIONS\", {\n slug: \"prisma-list-connections\",\n name: \"List Database Connections\",\n description: \"Retrieve paginated list of connections for a specific database. Returns connection details including names, creation dates, and database context. Use for API key management, security audits, and access control.\",\n input: PrismaListConnectionsInput,\n output: PrismaListConnectionsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,uQAAuQ,CAAC,CAAC,SAAS;CAChU,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0RAA0R,CAAC,CAAC,SAAS;CACjU,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2MAA2M;AAC7O,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACnF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;AACtE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAAsD;AAChF,MAAM,yCAAyCA,IAAAA,EAAE,OAAO;CACtD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oLAAoL,CAAC,CAAC,SAAS;CACvN,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kKAAkK,CAAC,CAAC,SAAS;CACvM,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CACnH,UAAU,yCAAyC,SAAS;CAC5D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AACxE,MAAM,yCAAyCA,IAAAA,EAAE,OAAO;CACtD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC1G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6EAA6E;AACvG,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,6MAA6M;CAC5Q,YAAY,uCAAuC,SAAS;AAC9D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kEAAkE;AAE5F,MAAa,wBAITC,eAAAA,OAAO,2BAA2B;CACpC,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/list-connections.d.ts
|
|
@@ -22,11 +24,7 @@ declare const PrismaListConnectionsOutput: z.ZodObject<{
|
|
|
22
24
|
nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
25
|
}, z.core.$loose>>;
|
|
24
26
|
}, z.core.$loose>;
|
|
25
|
-
declare const prismaListConnections:
|
|
26
|
-
databaseId: string;
|
|
27
|
-
limit?: number | undefined;
|
|
28
|
-
cursor?: string | undefined;
|
|
29
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
27
|
+
declare const prismaListConnections: AppAction<typeof PrismaListConnectionsInput, typeof PrismaListConnectionsOutput, typeof prisma.credential>;
|
|
30
28
|
//#endregion
|
|
31
29
|
export { prismaListConnections };
|
|
32
30
|
//# sourceMappingURL=list-connections.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-connections.d.cts","names":[],"sources":["../../src/actions/list-connections.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-connections.d.cts","names":[],"sources":["../../src/actions/list-connections.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAoB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAK3B,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/list-connections.d.ts
|
|
@@ -22,11 +24,7 @@ declare const PrismaListConnectionsOutput: z.ZodObject<{
|
|
|
22
24
|
nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
25
|
}, z.core.$loose>>;
|
|
24
26
|
}, z.core.$loose>;
|
|
25
|
-
declare const prismaListConnections:
|
|
26
|
-
databaseId: string;
|
|
27
|
-
limit?: number | undefined;
|
|
28
|
-
cursor?: string | undefined;
|
|
29
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
27
|
+
declare const prismaListConnections: AppAction<typeof PrismaListConnectionsInput, typeof PrismaListConnectionsOutput, typeof prisma.credential>;
|
|
30
28
|
//#endregion
|
|
31
29
|
export { prismaListConnections };
|
|
32
30
|
//# sourceMappingURL=list-connections.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-connections.d.mts","names":[],"sources":["../../src/actions/list-connections.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-connections.d.mts","names":[],"sources":["../../src/actions/list-connections.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAoB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAK3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-connections.mjs","names":[],"sources":["../../src/actions/list-connections.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaListConnectionsInput = z.object({\n limit: z.number().int().default(100).describe(\"Maximum number of connections to return in a single request. Defaults to 100 if not specified. Valid range is typically 1-500. Use smaller values (10-50) for faster responses when you only need a few connections, or larger values (100-500) when bulk processing.\").optional(),\n cursor: z.string().describe(\"Pagination cursor for retrieving the next page of results. Use the 'nextCursor' value from a previous response to get subsequent pages. Leave as None/null for the first page. Enables efficient pagination through large numbers of connections without missing or duplicating entries.\").optional(),\n databaseId: z.string().describe(\"Unique database identifier to list connections for (format: 'db_xxxxx'). Must be a database the authenticated user has access to. All connection strings and API keys for this database will be returned.\"),\n}).describe(\"Request parameters for listing connections for a database.\");\nconst PrismaListConnections_DatabaseInfoSchema = z.object({\n id: z.string().describe(\"Unique database ID containing this connection.\").nullable(),\n name: z.string().describe(\"Human-readable database name.\").nullable(),\n}).passthrough().describe(\"Database information embedded in connection objects.\");\nconst PrismaListConnections_ConnectionSchema = z.object({\n id: z.string().describe(\"Unique connection identifier (format: 'con_xxxxx'). Use this ID for connection-specific operations like deletion. Each connection represents a unique API key for database access.\").nullable(),\n name: z.string().describe(\"Human-readable connection name set during creation. Used for identification and management in UIs. Common names include 'Production API Key', 'Dev Access', etc.\").nullable(),\n type: z.string().describe(\"Object type, always 'connection'. Provides consistency across API responses.\").nullable(),\n database: PrismaListConnections_DatabaseInfoSchema.nullable(),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp in UTC (e.g., '2025-07-20T11:08:47.879Z').\").nullable(),\n}).passthrough().describe(\"Database connection string / API key object.\");\nconst PrismaListConnections_PaginationSchema = z.object({\n hasMore: z.boolean().describe(\"True if more pages available. Check before making next request.\").nullable(),\n nextCursor: z.string().describe(\"Opaque cursor for next page. Pass to subsequent requests. Null when no more pages.\").nullable().optional(),\n}).passthrough().describe(\"Pagination metadata for cursor-based navigation through connection results.\");\nexport const PrismaListConnectionsOutput = z.object({\n data: z.array(PrismaListConnections_ConnectionSchema).describe(\"Array of connection objects for the specified database. Connections are ordered by creation date with most recent first. Each connection represents an API key for database access with unique credentials.\"),\n pagination: PrismaListConnections_PaginationSchema.nullable(),\n}).passthrough().describe(\"API response containing connection list and pagination metadata.\");\n\nexport const prismaListConnections = action(\"PRISMA_LIST_CONNECTIONS\", {\n slug: \"prisma-list-connections\",\n name: \"List Database Connections\",\n description: \"Retrieve paginated list of connections for a specific database. Returns connection details including names, creation dates, and database context. Use for API key management, security audits, and access control.\",\n input: PrismaListConnectionsInput,\n output: PrismaListConnectionsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-connections.mjs","names":[],"sources":["../../src/actions/list-connections.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 PrismaListConnectionsInput = z.object({\n limit: z.number().int().default(100).describe(\"Maximum number of connections to return in a single request. Defaults to 100 if not specified. Valid range is typically 1-500. Use smaller values (10-50) for faster responses when you only need a few connections, or larger values (100-500) when bulk processing.\").optional(),\n cursor: z.string().describe(\"Pagination cursor for retrieving the next page of results. Use the 'nextCursor' value from a previous response to get subsequent pages. Leave as None/null for the first page. Enables efficient pagination through large numbers of connections without missing or duplicating entries.\").optional(),\n databaseId: z.string().describe(\"Unique database identifier to list connections for (format: 'db_xxxxx'). Must be a database the authenticated user has access to. All connection strings and API keys for this database will be returned.\"),\n}).describe(\"Request parameters for listing connections for a database.\");\nconst PrismaListConnections_DatabaseInfoSchema = z.object({\n id: z.string().describe(\"Unique database ID containing this connection.\").nullable(),\n name: z.string().describe(\"Human-readable database name.\").nullable(),\n}).passthrough().describe(\"Database information embedded in connection objects.\");\nconst PrismaListConnections_ConnectionSchema = z.object({\n id: z.string().describe(\"Unique connection identifier (format: 'con_xxxxx'). Use this ID for connection-specific operations like deletion. Each connection represents a unique API key for database access.\").nullable(),\n name: z.string().describe(\"Human-readable connection name set during creation. Used for identification and management in UIs. Common names include 'Production API Key', 'Dev Access', etc.\").nullable(),\n type: z.string().describe(\"Object type, always 'connection'. Provides consistency across API responses.\").nullable(),\n database: PrismaListConnections_DatabaseInfoSchema.nullable(),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp in UTC (e.g., '2025-07-20T11:08:47.879Z').\").nullable(),\n}).passthrough().describe(\"Database connection string / API key object.\");\nconst PrismaListConnections_PaginationSchema = z.object({\n hasMore: z.boolean().describe(\"True if more pages available. Check before making next request.\").nullable(),\n nextCursor: z.string().describe(\"Opaque cursor for next page. Pass to subsequent requests. Null when no more pages.\").nullable().optional(),\n}).passthrough().describe(\"Pagination metadata for cursor-based navigation through connection results.\");\nexport const PrismaListConnectionsOutput = z.object({\n data: z.array(PrismaListConnections_ConnectionSchema).describe(\"Array of connection objects for the specified database. Connections are ordered by creation date with most recent first. Each connection represents an API key for database access with unique credentials.\"),\n pagination: PrismaListConnections_PaginationSchema.nullable(),\n}).passthrough().describe(\"API response containing connection list and pagination metadata.\");\n\nexport const prismaListConnections: AppAction<\n typeof PrismaListConnectionsInput,\n typeof PrismaListConnectionsOutput,\n typeof prisma.credential\n> = action(\"PRISMA_LIST_CONNECTIONS\", {\n slug: \"prisma-list-connections\",\n name: \"List Database Connections\",\n description: \"Retrieve paginated list of connections for a specific database. Returns connection details including names, creation dates, and database context. Use for API key management, security audits, and access control.\",\n input: PrismaListConnectionsInput,\n output: PrismaListConnectionsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6B,EAAE,OAAO;CACjD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,uQAAuQ,CAAC,CAAC,SAAS;CAChU,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0RAA0R,CAAC,CAAC,SAAS;CACjU,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2MAA2M;AAC7O,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,2CAA2C,EAAE,OAAO;CACxD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACnF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;AACtE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAAsD;AAChF,MAAM,yCAAyC,EAAE,OAAO;CACtD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oLAAoL,CAAC,CAAC,SAAS;CACvN,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kKAAkK,CAAC,CAAC,SAAS;CACvM,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CACnH,UAAU,yCAAyC,SAAS;CAC5D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AACxE,MAAM,yCAAyC,EAAE,OAAO;CACtD,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC1G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6EAA6E;AAMvG,MAAa,wBAIT,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdyC,EAAE,OAAO;EAClD,MAAM,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,6MAA6M;EAC5Q,YAAY,uCAAuC,SAAS;CAC9D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kEAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-databases.cjs","names":["z","action"],"sources":["../../src/actions/list-databases.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaListDatabasesInput = z.object({\n limit: z.number().int().default(100).describe(\"Maximum number of databases to return in a single request. Defaults to 100 if not specified. Valid range is typically 1-500. Use smaller values (10-50) for faster responses when you only need a few databases, or larger values (100-500) when bulk processing.\").optional(),\n cursor: z.string().describe(\"Pagination cursor for retrieving the next page of results. Use the 'nextCursor' value from a previous response to get subsequent pages. Leave as None/null for the first page. Enables efficient pagination through large numbers of databases without missing or duplicating entries.\").optional(),\n projectId: z.string().describe(\"Unique project identifier to list databases for (format: 'prj_xxxxx'). Must be a project the authenticated user has access to. All databases belonging to this project will be returned.\"),\n}).describe(\"Request parameters for listing databases in a project.\");\nconst PrismaListDatabases_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 (e.g., 'US East (N. Virginia)').\").nullable(),\n}).passthrough().describe(\"Database region information.\");\nconst PrismaListDatabases_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 objects.\");\nconst PrismaListDatabases_DatabaseSchema = z.object({\n id: z.string().describe(\"Unique database identifier (format: 'db_xxxxx'). Use this ID for database-specific operations like getting details, managing connections, or deletion.\").nullable(),\n name: z.string().describe(\"Human-readable database name set during creation. Used for identification and display in UIs. Often matches project name for default databases.\").nullable(),\n type: z.string().describe(\"Object type, always 'database'. Provides consistency across API responses.\").nullable(),\n region: PrismaListDatabases_RegionInfoSchema.nullable(),\n status: z.string().describe(\"Current database status indicating operational state. Common values: 'ready' (operational), 'provisioning' (being created), 'failure' (error state), 'maintenance' (temporary unavailable).\").nullable(),\n project: PrismaListDatabases_ProjectInfoSchema.nullable(),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp in UTC (e.g., '2025-07-20T11:08:16.761Z').\").nullable(),\n isDefault: z.boolean().describe(\"True if this is the default database for the project. Default databases are created automatically with projects and typically cannot be deleted.\").nullable(),\n}).passthrough().describe(\"Prisma postgres database in a project.\");\nconst PrismaListDatabases_PaginationSchema = z.object({\n hasMore: z.boolean().describe(\"True if more pages available. Check before making next request.\").nullable(),\n nextCursor: z.string().describe(\"Opaque cursor for next page. Pass to subsequent requests. Null when no more pages.\").nullable().optional(),\n}).passthrough().describe(\"Pagination metadata for cursor-based navigation through database results.\");\nexport const PrismaListDatabasesOutput = z.object({\n data: z.array(PrismaListDatabases_DatabaseSchema).describe(\"Array of database objects within the specified project. Databases are ordered by creation date with most recent first. Includes both default and additional databases created for the project.\"),\n pagination: PrismaListDatabases_PaginationSchema.nullable(),\n}).passthrough().describe(\"API response containing database list and pagination metadata.\");\n\nexport const prismaListDatabases = action(\"PRISMA_LIST_DATABASES\", {\n slug: \"prisma-list-databases\",\n name: \"List Project Databases\",\n description: \"Retrieve paginated list of databases for a specific Prisma project. Returns database details including status, region, and project context. Use for database discovery, monitoring, and project administration.\",\n input: PrismaListDatabasesInput,\n output: PrismaListDatabasesOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-databases.cjs","names":["z","action"],"sources":["../../src/actions/list-databases.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 PrismaListDatabasesInput = z.object({\n limit: z.number().int().default(100).describe(\"Maximum number of databases to return in a single request. Defaults to 100 if not specified. Valid range is typically 1-500. Use smaller values (10-50) for faster responses when you only need a few databases, or larger values (100-500) when bulk processing.\").optional(),\n cursor: z.string().describe(\"Pagination cursor for retrieving the next page of results. Use the 'nextCursor' value from a previous response to get subsequent pages. Leave as None/null for the first page. Enables efficient pagination through large numbers of databases without missing or duplicating entries.\").optional(),\n projectId: z.string().describe(\"Unique project identifier to list databases for (format: 'prj_xxxxx'). Must be a project the authenticated user has access to. All databases belonging to this project will be returned.\"),\n}).describe(\"Request parameters for listing databases in a project.\");\nconst PrismaListDatabases_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 (e.g., 'US East (N. Virginia)').\").nullable(),\n}).passthrough().describe(\"Database region information.\");\nconst PrismaListDatabases_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 objects.\");\nconst PrismaListDatabases_DatabaseSchema = z.object({\n id: z.string().describe(\"Unique database identifier (format: 'db_xxxxx'). Use this ID for database-specific operations like getting details, managing connections, or deletion.\").nullable(),\n name: z.string().describe(\"Human-readable database name set during creation. Used for identification and display in UIs. Often matches project name for default databases.\").nullable(),\n type: z.string().describe(\"Object type, always 'database'. Provides consistency across API responses.\").nullable(),\n region: PrismaListDatabases_RegionInfoSchema.nullable(),\n status: z.string().describe(\"Current database status indicating operational state. Common values: 'ready' (operational), 'provisioning' (being created), 'failure' (error state), 'maintenance' (temporary unavailable).\").nullable(),\n project: PrismaListDatabases_ProjectInfoSchema.nullable(),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp in UTC (e.g., '2025-07-20T11:08:16.761Z').\").nullable(),\n isDefault: z.boolean().describe(\"True if this is the default database for the project. Default databases are created automatically with projects and typically cannot be deleted.\").nullable(),\n}).passthrough().describe(\"Prisma postgres database in a project.\");\nconst PrismaListDatabases_PaginationSchema = z.object({\n hasMore: z.boolean().describe(\"True if more pages available. Check before making next request.\").nullable(),\n nextCursor: z.string().describe(\"Opaque cursor for next page. Pass to subsequent requests. Null when no more pages.\").nullable().optional(),\n}).passthrough().describe(\"Pagination metadata for cursor-based navigation through database results.\");\nexport const PrismaListDatabasesOutput = z.object({\n data: z.array(PrismaListDatabases_DatabaseSchema).describe(\"Array of database objects within the specified project. Databases are ordered by creation date with most recent first. Includes both default and additional databases created for the project.\"),\n pagination: PrismaListDatabases_PaginationSchema.nullable(),\n}).passthrough().describe(\"API response containing database list and pagination metadata.\");\n\nexport const prismaListDatabases: AppAction<\n typeof PrismaListDatabasesInput,\n typeof PrismaListDatabasesOutput,\n typeof prisma.credential\n> = action(\"PRISMA_LIST_DATABASES\", {\n slug: \"prisma-list-databases\",\n name: \"List Project Databases\",\n description: \"Retrieve paginated list of databases for a specific Prisma project. Returns database details including status, region, and project context. Use for database discovery, monitoring, and project administration.\",\n input: PrismaListDatabasesInput,\n output: PrismaListDatabasesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,mQAAmQ,CAAC,CAAC,SAAS;CAC5T,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wRAAwR,CAAC,CAAC,SAAS;CAC/T,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0LAA0L;AAC3N,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,uCAAuCA,IAAAA,EAAE,OAAO;CACpD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC3E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8BAA8B;AACxD,MAAM,wCAAwCA,IAAAA,EAAE,OAAO;CACrD,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,mDAAmD;AAC7E,MAAM,qCAAqCA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wJAAwJ,CAAC,CAAC,SAAS;CAC3L,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iJAAiJ,CAAC,CAAC,SAAS;CACtL,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CACjH,QAAQ,qCAAqC,SAAS;CACtD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6LAA6L,CAAC,CAAC,SAAS;CACpO,SAAS,sCAAsC,SAAS;CACxD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CAClH,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kJAAkJ,CAAC,CAAC,SAAS;AAC/L,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAClE,MAAM,uCAAuCA,IAAAA,EAAE,OAAO;CACpD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC1G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2EAA2E;AACrG,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,gMAAgM;CAC3P,YAAY,qCAAqC,SAAS;AAC5D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gEAAgE;AAE1F,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/list-databases.d.ts
|
|
@@ -28,11 +30,7 @@ declare const PrismaListDatabasesOutput: z.ZodObject<{
|
|
|
28
30
|
nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
31
|
}, z.core.$loose>>;
|
|
30
32
|
}, z.core.$loose>;
|
|
31
|
-
declare const prismaListDatabases:
|
|
32
|
-
projectId: string;
|
|
33
|
-
limit?: number | undefined;
|
|
34
|
-
cursor?: string | undefined;
|
|
35
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
33
|
+
declare const prismaListDatabases: AppAction<typeof PrismaListDatabasesInput, typeof PrismaListDatabasesOutput, typeof prisma.credential>;
|
|
36
34
|
//#endregion
|
|
37
35
|
export { prismaListDatabases };
|
|
38
36
|
//# sourceMappingURL=list-databases.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-databases.d.cts","names":[],"sources":["../../src/actions/list-databases.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-databases.d.cts","names":[],"sources":["../../src/actions/list-databases.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;cA2BxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAKzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,MAAA,CAAO,UAAA"}
|