@keystrokehq/prisma 0.1.0 → 0.1.2
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 +10 -10
- package/dist/actions/create-connection.cjs.map +1 -1
- package/dist/actions/create-connection.d.cts +24 -3
- package/dist/actions/create-connection.d.cts.map +1 -1
- package/dist/actions/create-connection.d.mts +24 -3
- package/dist/actions/create-connection.d.mts.map +1 -1
- package/dist/actions/create-connection.mjs +10 -10
- package/dist/actions/create-connection.mjs.map +1 -1
- package/dist/actions/create-database.cjs +19 -19
- package/dist/actions/create-database.cjs.map +1 -1
- package/dist/actions/create-database.d.cts +48 -3
- package/dist/actions/create-database.d.cts.map +1 -1
- package/dist/actions/create-database.d.mts +48 -3
- package/dist/actions/create-database.d.mts.map +1 -1
- package/dist/actions/create-database.mjs +19 -19
- package/dist/actions/create-database.mjs.map +1 -1
- package/dist/actions/create-project.cjs +23 -23
- package/dist/actions/create-project.cjs.map +1 -1
- package/dist/actions/create-project.d.cts +50 -3
- package/dist/actions/create-project.d.cts.map +1 -1
- package/dist/actions/create-project.d.mts +50 -3
- package/dist/actions/create-project.d.mts.map +1 -1
- package/dist/actions/create-project.mjs +23 -23
- package/dist/actions/create-project.mjs.map +1 -1
- package/dist/actions/delete-connection.cjs.map +1 -1
- package/dist/actions/delete-connection.d.cts +7 -3
- package/dist/actions/delete-connection.d.cts.map +1 -1
- package/dist/actions/delete-connection.d.mts +7 -3
- package/dist/actions/delete-connection.d.mts.map +1 -1
- package/dist/actions/delete-connection.mjs.map +1 -1
- package/dist/actions/delete-database.cjs +1 -1
- package/dist/actions/delete-database.cjs.map +1 -1
- package/dist/actions/delete-database.d.cts +9 -3
- package/dist/actions/delete-database.d.cts.map +1 -1
- package/dist/actions/delete-database.d.mts +9 -3
- package/dist/actions/delete-database.d.mts.map +1 -1
- package/dist/actions/delete-database.mjs +1 -1
- package/dist/actions/delete-database.mjs.map +1 -1
- package/dist/actions/delete-project.cjs.map +1 -1
- package/dist/actions/delete-project.d.cts +7 -3
- package/dist/actions/delete-project.d.cts.map +1 -1
- package/dist/actions/delete-project.d.mts +7 -3
- package/dist/actions/delete-project.d.mts.map +1 -1
- package/dist/actions/delete-project.mjs.map +1 -1
- package/dist/actions/execute-sql-command.cjs +3 -3
- package/dist/actions/execute-sql-command.cjs.map +1 -1
- package/dist/actions/execute-sql-command.d.cts +17 -3
- package/dist/actions/execute-sql-command.d.cts.map +1 -1
- package/dist/actions/execute-sql-command.d.mts +17 -3
- package/dist/actions/execute-sql-command.d.mts.map +1 -1
- package/dist/actions/execute-sql-command.mjs +3 -3
- package/dist/actions/execute-sql-command.mjs.map +1 -1
- package/dist/actions/execute-sql-query.cjs +2 -2
- package/dist/actions/execute-sql-query.cjs.map +1 -1
- package/dist/actions/execute-sql-query.d.cts +21 -3
- package/dist/actions/execute-sql-query.d.cts.map +1 -1
- package/dist/actions/execute-sql-query.d.mts +21 -3
- package/dist/actions/execute-sql-query.d.mts.map +1 -1
- package/dist/actions/execute-sql-query.mjs +2 -2
- package/dist/actions/execute-sql-query.mjs.map +1 -1
- package/dist/actions/get-database-usage.cjs +5 -5
- package/dist/actions/get-database-usage.cjs.map +1 -1
- package/dist/actions/get-database-usage.d.cts +27 -3
- package/dist/actions/get-database-usage.d.cts.map +1 -1
- package/dist/actions/get-database-usage.d.mts +27 -3
- package/dist/actions/get-database-usage.d.mts.map +1 -1
- package/dist/actions/get-database-usage.mjs +5 -5
- package/dist/actions/get-database-usage.mjs.map +1 -1
- package/dist/actions/get-database.cjs +10 -10
- package/dist/actions/get-database.cjs.map +1 -1
- package/dist/actions/get-database.d.cts +24 -3
- package/dist/actions/get-database.d.cts.map +1 -1
- package/dist/actions/get-database.d.mts +24 -3
- package/dist/actions/get-database.d.mts.map +1 -1
- package/dist/actions/get-database.mjs +10 -10
- package/dist/actions/get-database.mjs.map +1 -1
- package/dist/actions/get-project.cjs +6 -6
- package/dist/actions/get-project.cjs.map +1 -1
- package/dist/actions/get-project.d.cts +18 -3
- package/dist/actions/get-project.d.cts.map +1 -1
- package/dist/actions/get-project.d.mts +18 -3
- package/dist/actions/get-project.d.mts.map +1 -1
- package/dist/actions/get-project.mjs +6 -6
- package/dist/actions/get-project.mjs.map +1 -1
- package/dist/actions/inspect-database-schema.cjs +8 -8
- package/dist/actions/inspect-database-schema.cjs.map +1 -1
- package/dist/actions/inspect-database-schema.d.cts +36 -3
- package/dist/actions/inspect-database-schema.d.cts.map +1 -1
- package/dist/actions/inspect-database-schema.d.mts +36 -3
- package/dist/actions/inspect-database-schema.d.mts.map +1 -1
- package/dist/actions/inspect-database-schema.mjs +8 -8
- package/dist/actions/inspect-database-schema.mjs.map +1 -1
- package/dist/actions/list-accelerate-regions.cjs +3 -3
- package/dist/actions/list-accelerate-regions.cjs.map +1 -1
- package/dist/actions/list-accelerate-regions.d.cts +9 -3
- package/dist/actions/list-accelerate-regions.d.cts.map +1 -1
- package/dist/actions/list-accelerate-regions.d.mts +9 -3
- package/dist/actions/list-accelerate-regions.d.mts.map +1 -1
- package/dist/actions/list-accelerate-regions.mjs +3 -3
- package/dist/actions/list-accelerate-regions.mjs.map +1 -1
- package/dist/actions/list-backups.cjs +9 -9
- package/dist/actions/list-backups.cjs.map +1 -1
- package/dist/actions/list-backups.d.cts +25 -3
- package/dist/actions/list-backups.d.cts.map +1 -1
- package/dist/actions/list-backups.d.mts +25 -3
- package/dist/actions/list-backups.d.mts.map +1 -1
- package/dist/actions/list-backups.mjs +9 -9
- package/dist/actions/list-backups.mjs.map +1 -1
- package/dist/actions/list-connections.cjs +7 -7
- package/dist/actions/list-connections.cjs.map +1 -1
- package/dist/actions/list-connections.d.cts +26 -3
- package/dist/actions/list-connections.d.cts.map +1 -1
- package/dist/actions/list-connections.d.mts +26 -3
- package/dist/actions/list-connections.d.mts.map +1 -1
- package/dist/actions/list-connections.mjs +7 -7
- package/dist/actions/list-connections.mjs.map +1 -1
- package/dist/actions/list-databases.cjs +11 -11
- package/dist/actions/list-databases.cjs.map +1 -1
- package/dist/actions/list-databases.d.cts +32 -3
- package/dist/actions/list-databases.d.cts.map +1 -1
- package/dist/actions/list-databases.d.mts +32 -3
- package/dist/actions/list-databases.d.mts.map +1 -1
- package/dist/actions/list-databases.mjs +11 -11
- package/dist/actions/list-databases.mjs.map +1 -1
- package/dist/actions/list-postgres-regions.cjs +4 -4
- package/dist/actions/list-postgres-regions.cjs.map +1 -1
- package/dist/actions/list-postgres-regions.d.cts +10 -3
- package/dist/actions/list-postgres-regions.d.cts.map +1 -1
- package/dist/actions/list-postgres-regions.d.mts +10 -3
- package/dist/actions/list-postgres-regions.d.mts.map +1 -1
- package/dist/actions/list-postgres-regions.mjs +4 -4
- package/dist/actions/list-postgres-regions.mjs.map +1 -1
- package/dist/actions/list-projects.cjs +7 -7
- package/dist/actions/list-projects.cjs.map +1 -1
- package/dist/actions/list-projects.d.cts +24 -3
- package/dist/actions/list-projects.d.cts.map +1 -1
- package/dist/actions/list-projects.d.mts +24 -3
- package/dist/actions/list-projects.d.mts.map +1 -1
- package/dist/actions/list-projects.mjs +7 -7
- package/dist/actions/list-projects.mjs.map +1 -1
- package/dist/actions/list-workspace-integrations.cjs +8 -8
- package/dist/actions/list-workspace-integrations.cjs.map +1 -1
- package/dist/actions/list-workspace-integrations.d.cts +30 -3
- package/dist/actions/list-workspace-integrations.d.cts.map +1 -1
- package/dist/actions/list-workspace-integrations.d.mts +30 -3
- package/dist/actions/list-workspace-integrations.d.mts.map +1 -1
- package/dist/actions/list-workspace-integrations.mjs +8 -8
- package/dist/actions/list-workspace-integrations.mjs.map +1 -1
- package/dist/actions/list-workspaces.cjs +5 -5
- package/dist/actions/list-workspaces.cjs.map +1 -1
- package/dist/actions/list-workspaces.d.cts +20 -3
- package/dist/actions/list-workspaces.d.cts.map +1 -1
- package/dist/actions/list-workspaces.d.mts +20 -3
- package/dist/actions/list-workspaces.d.mts.map +1 -1
- package/dist/actions/list-workspaces.mjs +5 -5
- package/dist/actions/list-workspaces.mjs.map +1 -1
- package/dist/actions/restore-backup.cjs +10 -10
- package/dist/actions/restore-backup.cjs.map +1 -1
- package/dist/actions/restore-backup.d.cts +28 -3
- package/dist/actions/restore-backup.d.cts.map +1 -1
- package/dist/actions/restore-backup.d.mts +28 -3
- package/dist/actions/restore-backup.d.mts.map +1 -1
- package/dist/actions/restore-backup.mjs +10 -10
- package/dist/actions/restore-backup.mjs.map +1 -1
- package/dist/actions/transfer-project.cjs +2 -2
- package/dist/actions/transfer-project.cjs.map +1 -1
- package/dist/actions/transfer-project.d.cts +12 -3
- package/dist/actions/transfer-project.d.cts.map +1 -1
- package/dist/actions/transfer-project.d.mts +12 -3
- package/dist/actions/transfer-project.d.mts.map +1 -1
- package/dist/actions/transfer-project.mjs +2 -2
- package/dist/actions/transfer-project.mjs.map +1 -1
- package/package.json +2 -2
package/dist/action.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.cjs","names":["prisma","executePrismaTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { prisma } from \"./app\";\nimport { executePrismaTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input:
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["prisma","executePrismaTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { prisma } from \"./app\";\nimport { executePrismaTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return prisma.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executePrismaTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,OAAO,OAAO;EACnB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,kBAAkB,MAAM,KAAgC,CAAC;EACzF;CACF,CAAC;AACH"}
|
package/dist/action.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { prisma } from \"./app\";\nimport { executePrismaTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input:
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { prisma } from \"./app\";\nimport { executePrismaTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return prisma.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executePrismaTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,OAAO,OAAO;EACnB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,kBAAkB,MAAM,KAAgC,CAAC;EACzF;CACF,CAAC;AACH"}
|
|
@@ -6,19 +6,19 @@ const PrismaCreateConnectionInput = zod.z.object({
|
|
|
6
6
|
databaseId: zod.z.string().describe("Unique database identifier to create connection for (format: 'db_xxxxx'). Must be a database the authenticated user has write access to. The new connection will provide API key access to this database.")
|
|
7
7
|
}).describe("Request parameters for creating a new database connection.");
|
|
8
8
|
const PrismaCreateConnection_DatabaseInfoSchema = zod.z.object({
|
|
9
|
-
id: zod.z.string().describe("Unique database ID containing this connection."),
|
|
10
|
-
name: zod.z.string().describe("Human-readable database name.")
|
|
9
|
+
id: zod.z.string().describe("Unique database ID containing this connection.").nullable(),
|
|
10
|
+
name: zod.z.string().describe("Human-readable database name.").nullable()
|
|
11
11
|
}).describe("Database information in connection response.");
|
|
12
12
|
const PrismaCreateConnection_CreatedConnectionSchema = zod.z.object({
|
|
13
|
-
id: zod.z.string().describe("Unique connection identifier for future operations."),
|
|
14
|
-
host: zod.z.string().describe("Database host endpoint with port (e.g., 'db.prisma.io:5432'). Use for direct database connections when not using the connection string."),
|
|
15
|
-
name: zod.z.string().describe("Connection name as specified in request."),
|
|
16
|
-
pass: zod.z.string().describe("Database password (secret key) for authentication. Use with 'user' field for direct database connections. Store securely as it provides database access."),
|
|
17
|
-
type: zod.z.string().describe("Object type, always 'connection'."),
|
|
18
|
-
user: zod.z.string().describe("Database username (tenant ID) for authentication. Use with 'pass' field for direct database connections."),
|
|
13
|
+
id: zod.z.string().describe("Unique connection identifier for future operations.").nullable(),
|
|
14
|
+
host: zod.z.string().describe("Database host endpoint with port (e.g., 'db.prisma.io:5432'). Use for direct database connections when not using the connection string.").nullable(),
|
|
15
|
+
name: zod.z.string().describe("Connection name as specified in request.").nullable(),
|
|
16
|
+
pass: zod.z.string().describe("Database password (secret key) for authentication. Use with 'user' field for direct database connections. Store securely as it provides database access.").nullable(),
|
|
17
|
+
type: zod.z.string().describe("Object type, always 'connection'.").nullable(),
|
|
18
|
+
user: zod.z.string().describe("Database username (tenant ID) for authentication. Use with 'pass' field for direct database connections.").nullable(),
|
|
19
19
|
database: PrismaCreateConnection_DatabaseInfoSchema.nullable(),
|
|
20
|
-
createdAt: zod.z.string().describe("ISO 8601 creation timestamp."),
|
|
21
|
-
connectionString: zod.z.string().describe("Complete database connection string with embedded API key credentials. Use this string to connect applications to the database. Contains authentication tokens and endpoint information. Store securely as it provides full database access.")
|
|
20
|
+
createdAt: zod.z.string().describe("ISO 8601 creation timestamp.").nullable(),
|
|
21
|
+
connectionString: zod.z.string().describe("Complete database connection string with embedded API key credentials. Use this string to connect applications to the database. Contains authentication tokens and endpoint information. Store securely as it provides full database access.").nullable()
|
|
22
22
|
}).describe("Complete connection object returned after creation.");
|
|
23
23
|
const PrismaCreateConnectionOutput = zod.z.object({ data: PrismaCreateConnection_CreatedConnectionSchema.nullable() }).describe("API response containing newly created connection with credentials.");
|
|
24
24
|
const prismaCreateConnection = require_action.action("PRISMA_CREATE_CONNECTION", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-connection.cjs","names":["z","action"],"sources":["../../src/actions/create-connection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaCreateConnectionInput
|
|
1
|
+
{"version":3,"file":"create-connection.cjs","names":["z","action"],"sources":["../../src/actions/create-connection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaCreateConnectionInput = z.object({\n name: z.string().describe(\"Human-readable name for the new connection/API key. This will be displayed in UIs and used for identification. Choose descriptive names like 'Production API Key', 'Analytics Access', 'Dev Environment', etc.\"),\n databaseId: z.string().describe(\"Unique database identifier to create connection for (format: 'db_xxxxx'). Must be a database the authenticated user has write access to. The new connection will provide API key access to this database.\"),\n}).describe(\"Request parameters for creating a new database connection.\");\nconst PrismaCreateConnection_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}).describe(\"Database information in connection response.\");\nconst PrismaCreateConnection_CreatedConnectionSchema = z.object({\n id: z.string().describe(\"Unique connection identifier for future operations.\").nullable(),\n host: z.string().describe(\"Database host endpoint with port (e.g., 'db.prisma.io:5432'). Use for direct database connections when not using the connection string.\").nullable(),\n name: z.string().describe(\"Connection name as specified in request.\").nullable(),\n pass: z.string().describe(\"Database password (secret key) for authentication. Use with 'user' field for direct database connections. Store securely as it provides database access.\").nullable(),\n type: z.string().describe(\"Object type, always 'connection'.\").nullable(),\n user: z.string().describe(\"Database username (tenant ID) for authentication. Use with 'pass' field for direct database connections.\").nullable(),\n database: PrismaCreateConnection_DatabaseInfoSchema.nullable(),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp.\").nullable(),\n connectionString: z.string().describe(\"Complete database connection string with embedded API key credentials. Use this string to connect applications to the database. Contains authentication tokens and endpoint information. Store securely as it provides full database access.\").nullable(),\n}).describe(\"Complete connection object returned after creation.\");\nexport const PrismaCreateConnectionOutput = z.object({\n data: PrismaCreateConnection_CreatedConnectionSchema.nullable(),\n}).describe(\"API response containing newly created connection with credentials.\");\n\nexport const prismaCreateConnection = action(\"PRISMA_CREATE_CONNECTION\", {\n slug: \"prisma-create-connection\",\n name: \"Create Database Connection\",\n description: \"Create new API key connection for database access. Creates connection string with embedded credentials for application database access. Returns complete connection details ready for immediate use.\",\n input: PrismaCreateConnectionInput,\n output: PrismaCreateConnectionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gNAAgN;CAC1O,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2MAA2M;AAC7O,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,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,SAAS,8CAA8C;AAC1D,MAAM,iDAAiDA,IAAAA,EAAE,OAAO;CAC9D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACxF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yIAAyI,CAAC,CAAC,SAAS;CAC9K,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC/E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0JAA0J,CAAC,CAAC,SAAS;CAC/L,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACxE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;CAC/I,UAAU,0CAA0C,SAAS;CAC7D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACxE,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8OAA8O,CAAC,CAAC,SAAS;AACjS,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,MAAM,+CAA+C,SAAS,EAChE,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAEhF,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,30 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-connection.d.ts
|
|
4
|
-
declare const PrismaCreateConnectionInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PrismaCreateConnectionInput: z.ZodObject<{
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
databaseId: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const PrismaCreateConnectionOutput: z.ZodObject<{
|
|
9
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
10
|
+
id: z.ZodNullable<z.ZodString>;
|
|
11
|
+
host: z.ZodNullable<z.ZodString>;
|
|
12
|
+
name: z.ZodNullable<z.ZodString>;
|
|
13
|
+
pass: z.ZodNullable<z.ZodString>;
|
|
14
|
+
type: z.ZodNullable<z.ZodString>;
|
|
15
|
+
user: z.ZodNullable<z.ZodString>;
|
|
16
|
+
database: z.ZodNullable<z.ZodObject<{
|
|
17
|
+
id: z.ZodNullable<z.ZodString>;
|
|
18
|
+
name: z.ZodNullable<z.ZodString>;
|
|
19
|
+
}, z.core.$strip>>;
|
|
20
|
+
createdAt: z.ZodNullable<z.ZodString>;
|
|
21
|
+
connectionString: z.ZodNullable<z.ZodString>;
|
|
22
|
+
}, z.core.$strip>>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
declare const prismaCreateConnection: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
25
|
+
name: string;
|
|
26
|
+
databaseId: string;
|
|
27
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
28
|
//#endregion
|
|
8
29
|
export { prismaCreateConnection };
|
|
9
30
|
//# sourceMappingURL=create-connection.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-connection.d.cts","names":[],"sources":["../../src/actions/create-connection.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"create-connection.d.cts","names":[],"sources":["../../src/actions/create-connection.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;cAmB3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAI5B,sBAAA,gCAAsB,wBAAA"}
|
|
@@ -1,9 +1,30 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-connection.d.ts
|
|
4
|
-
declare const PrismaCreateConnectionInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PrismaCreateConnectionInput: z.ZodObject<{
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
databaseId: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const PrismaCreateConnectionOutput: z.ZodObject<{
|
|
9
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
10
|
+
id: z.ZodNullable<z.ZodString>;
|
|
11
|
+
host: z.ZodNullable<z.ZodString>;
|
|
12
|
+
name: z.ZodNullable<z.ZodString>;
|
|
13
|
+
pass: z.ZodNullable<z.ZodString>;
|
|
14
|
+
type: z.ZodNullable<z.ZodString>;
|
|
15
|
+
user: z.ZodNullable<z.ZodString>;
|
|
16
|
+
database: z.ZodNullable<z.ZodObject<{
|
|
17
|
+
id: z.ZodNullable<z.ZodString>;
|
|
18
|
+
name: z.ZodNullable<z.ZodString>;
|
|
19
|
+
}, z.core.$strip>>;
|
|
20
|
+
createdAt: z.ZodNullable<z.ZodString>;
|
|
21
|
+
connectionString: z.ZodNullable<z.ZodString>;
|
|
22
|
+
}, z.core.$strip>>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
declare const prismaCreateConnection: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
25
|
+
name: string;
|
|
26
|
+
databaseId: string;
|
|
27
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
28
|
//#endregion
|
|
8
29
|
export { prismaCreateConnection };
|
|
9
30
|
//# sourceMappingURL=create-connection.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-connection.d.mts","names":[],"sources":["../../src/actions/create-connection.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"create-connection.d.mts","names":[],"sources":["../../src/actions/create-connection.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;cAmB3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAI5B,sBAAA,gCAAsB,wBAAA"}
|
|
@@ -6,19 +6,19 @@ const PrismaCreateConnectionInput = z.object({
|
|
|
6
6
|
databaseId: z.string().describe("Unique database identifier to create connection for (format: 'db_xxxxx'). Must be a database the authenticated user has write access to. The new connection will provide API key access to this database.")
|
|
7
7
|
}).describe("Request parameters for creating a new database connection.");
|
|
8
8
|
const PrismaCreateConnection_DatabaseInfoSchema = z.object({
|
|
9
|
-
id: z.string().describe("Unique database ID containing this connection."),
|
|
10
|
-
name: z.string().describe("Human-readable database name.")
|
|
9
|
+
id: z.string().describe("Unique database ID containing this connection.").nullable(),
|
|
10
|
+
name: z.string().describe("Human-readable database name.").nullable()
|
|
11
11
|
}).describe("Database information in connection response.");
|
|
12
12
|
const PrismaCreateConnection_CreatedConnectionSchema = z.object({
|
|
13
|
-
id: z.string().describe("Unique connection identifier for future operations."),
|
|
14
|
-
host: z.string().describe("Database host endpoint with port (e.g., 'db.prisma.io:5432'). Use for direct database connections when not using the connection string."),
|
|
15
|
-
name: z.string().describe("Connection name as specified in request."),
|
|
16
|
-
pass: z.string().describe("Database password (secret key) for authentication. Use with 'user' field for direct database connections. Store securely as it provides database access."),
|
|
17
|
-
type: z.string().describe("Object type, always 'connection'."),
|
|
18
|
-
user: z.string().describe("Database username (tenant ID) for authentication. Use with 'pass' field for direct database connections."),
|
|
13
|
+
id: z.string().describe("Unique connection identifier for future operations.").nullable(),
|
|
14
|
+
host: z.string().describe("Database host endpoint with port (e.g., 'db.prisma.io:5432'). Use for direct database connections when not using the connection string.").nullable(),
|
|
15
|
+
name: z.string().describe("Connection name as specified in request.").nullable(),
|
|
16
|
+
pass: z.string().describe("Database password (secret key) for authentication. Use with 'user' field for direct database connections. Store securely as it provides database access.").nullable(),
|
|
17
|
+
type: z.string().describe("Object type, always 'connection'.").nullable(),
|
|
18
|
+
user: z.string().describe("Database username (tenant ID) for authentication. Use with 'pass' field for direct database connections.").nullable(),
|
|
19
19
|
database: PrismaCreateConnection_DatabaseInfoSchema.nullable(),
|
|
20
|
-
createdAt: z.string().describe("ISO 8601 creation timestamp."),
|
|
21
|
-
connectionString: z.string().describe("Complete database connection string with embedded API key credentials. Use this string to connect applications to the database. Contains authentication tokens and endpoint information. Store securely as it provides full database access.")
|
|
20
|
+
createdAt: z.string().describe("ISO 8601 creation timestamp.").nullable(),
|
|
21
|
+
connectionString: z.string().describe("Complete database connection string with embedded API key credentials. Use this string to connect applications to the database. Contains authentication tokens and endpoint information. Store securely as it provides full database access.").nullable()
|
|
22
22
|
}).describe("Complete connection object returned after creation.");
|
|
23
23
|
const prismaCreateConnection = action("PRISMA_CREATE_CONNECTION", {
|
|
24
24
|
slug: "prisma-create-connection",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-connection.mjs","names":[],"sources":["../../src/actions/create-connection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaCreateConnectionInput
|
|
1
|
+
{"version":3,"file":"create-connection.mjs","names":[],"sources":["../../src/actions/create-connection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaCreateConnectionInput = z.object({\n name: z.string().describe(\"Human-readable name for the new connection/API key. This will be displayed in UIs and used for identification. Choose descriptive names like 'Production API Key', 'Analytics Access', 'Dev Environment', etc.\"),\n databaseId: z.string().describe(\"Unique database identifier to create connection for (format: 'db_xxxxx'). Must be a database the authenticated user has write access to. The new connection will provide API key access to this database.\"),\n}).describe(\"Request parameters for creating a new database connection.\");\nconst PrismaCreateConnection_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}).describe(\"Database information in connection response.\");\nconst PrismaCreateConnection_CreatedConnectionSchema = z.object({\n id: z.string().describe(\"Unique connection identifier for future operations.\").nullable(),\n host: z.string().describe(\"Database host endpoint with port (e.g., 'db.prisma.io:5432'). Use for direct database connections when not using the connection string.\").nullable(),\n name: z.string().describe(\"Connection name as specified in request.\").nullable(),\n pass: z.string().describe(\"Database password (secret key) for authentication. Use with 'user' field for direct database connections. Store securely as it provides database access.\").nullable(),\n type: z.string().describe(\"Object type, always 'connection'.\").nullable(),\n user: z.string().describe(\"Database username (tenant ID) for authentication. Use with 'pass' field for direct database connections.\").nullable(),\n database: PrismaCreateConnection_DatabaseInfoSchema.nullable(),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp.\").nullable(),\n connectionString: z.string().describe(\"Complete database connection string with embedded API key credentials. Use this string to connect applications to the database. Contains authentication tokens and endpoint information. Store securely as it provides full database access.\").nullable(),\n}).describe(\"Complete connection object returned after creation.\");\nexport const PrismaCreateConnectionOutput = z.object({\n data: PrismaCreateConnection_CreatedConnectionSchema.nullable(),\n}).describe(\"API response containing newly created connection with credentials.\");\n\nexport const prismaCreateConnection = action(\"PRISMA_CREATE_CONNECTION\", {\n slug: \"prisma-create-connection\",\n name: \"Create Database Connection\",\n description: \"Create new API key connection for database access. Creates connection string with embedded credentials for application database access. Returns complete connection details ready for immediate use.\",\n input: PrismaCreateConnectionInput,\n output: PrismaCreateConnectionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO;CAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gNAAgN;CAC1O,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2MAA2M;AAC7O,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,4CAA4C,EAAE,OAAO;CACzD,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,SAAS,8CAA8C;AAC1D,MAAM,iDAAiD,EAAE,OAAO;CAC9D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACxF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yIAAyI,CAAC,CAAC,SAAS;CAC9K,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC/E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0JAA0J,CAAC,CAAC,SAAS;CAC/L,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACxE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;CAC/I,UAAU,0CAA0C,SAAS;CAC7D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACxE,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,8OAA8O,CAAC,CAAC,SAAS;AACjS,CAAC,CAAC,CAAC,SAAS,qDAAqD;AAKjE,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT0C,EAAE,OAAO,EACnD,MAAM,+CAA+C,SAAS,EAChE,CAAC,CAAC,CAAC,SAAS,oEAOF;AACV,CAAC"}
|
|
@@ -8,37 +8,37 @@ const PrismaCreateDatabaseInput = zod.z.object({
|
|
|
8
8
|
projectId: zod.z.string().describe("Unique project identifier to create database in (format: 'prj_xxxxx'). Must be a project the authenticated user has write access to. The new database will belong to this project.")
|
|
9
9
|
}).describe("Request parameters for creating a new database in a project.");
|
|
10
10
|
const PrismaCreateDatabase_RegionInfoSchema = zod.z.object({
|
|
11
|
-
id: zod.z.string().describe("Region identifier (e.g., 'us-east-1')."),
|
|
12
|
-
name: zod.z.string().describe("Human-readable region name.")
|
|
11
|
+
id: zod.z.string().describe("Region identifier (e.g., 'us-east-1').").nullable(),
|
|
12
|
+
name: zod.z.string().describe("Human-readable region name.").nullable()
|
|
13
13
|
}).describe("Database region information.");
|
|
14
14
|
const PrismaCreateDatabase_DirectConnectionSchema = zod.z.object({
|
|
15
|
-
host: zod.z.string().describe("Database host and port (e.g., 'db.prisma.io:5432')."),
|
|
16
|
-
pass: zod.z.string().describe("Database password for authentication. Use with host and user for direct connections."),
|
|
17
|
-
user: zod.z.string().describe("Database username for authentication.")
|
|
15
|
+
host: zod.z.string().describe("Database host and port (e.g., 'db.prisma.io:5432').").nullable(),
|
|
16
|
+
pass: zod.z.string().describe("Database password for authentication. Use with host and user for direct connections.").nullable(),
|
|
17
|
+
user: zod.z.string().describe("Database username for authentication.").nullable()
|
|
18
18
|
}).describe("Direct database connection credentials for non-Prisma clients.");
|
|
19
19
|
const PrismaCreateDatabase_ApiKeySchema = zod.z.object({
|
|
20
|
-
id: zod.z.string().describe("Unique API key identifier."),
|
|
21
|
-
name: zod.z.string().describe("Human-readable API key name."),
|
|
22
|
-
type: zod.z.string().describe("Key type, typically 'connection'."),
|
|
23
|
-
createdAt: zod.z.string().describe("ISO 8601 creation timestamp."),
|
|
24
|
-
connectionString: zod.z.string().describe("Prisma connection string for use with Prisma Client."),
|
|
20
|
+
id: zod.z.string().describe("Unique API key identifier.").nullable(),
|
|
21
|
+
name: zod.z.string().describe("Human-readable API key name.").nullable(),
|
|
22
|
+
type: zod.z.string().describe("Key type, typically 'connection'.").nullable(),
|
|
23
|
+
createdAt: zod.z.string().describe("ISO 8601 creation timestamp.").nullable(),
|
|
24
|
+
connectionString: zod.z.string().describe("Prisma connection string for use with Prisma Client.").nullable(),
|
|
25
25
|
directConnection: PrismaCreateDatabase_DirectConnectionSchema.nullable().optional()
|
|
26
26
|
}).describe("Database API key for connection.");
|
|
27
27
|
const PrismaCreateDatabase_ProjectInfoSchema = zod.z.object({
|
|
28
|
-
id: zod.z.string().describe("Unique project ID containing this database."),
|
|
29
|
-
name: zod.z.string().describe("Human-readable project name.")
|
|
28
|
+
id: zod.z.string().describe("Unique project ID containing this database.").nullable(),
|
|
29
|
+
name: zod.z.string().describe("Human-readable project name.").nullable()
|
|
30
30
|
}).describe("Project information in database response.");
|
|
31
31
|
const PrismaCreateDatabase_CreatedDatabaseSchema = zod.z.object({
|
|
32
|
-
id: zod.z.string().describe("Unique database identifier (format: 'db_xxxxx') for future operations."),
|
|
33
|
-
name: zod.z.string().describe("Database name as specified in request."),
|
|
34
|
-
type: zod.z.string().describe("Object type, always 'database'."),
|
|
32
|
+
id: zod.z.string().describe("Unique database identifier (format: 'db_xxxxx') for future operations.").nullable(),
|
|
33
|
+
name: zod.z.string().describe("Database name as specified in request.").nullable(),
|
|
34
|
+
type: zod.z.string().describe("Object type, always 'database'.").nullable(),
|
|
35
35
|
region: PrismaCreateDatabase_RegionInfoSchema.nullable(),
|
|
36
|
-
status: zod.z.string().describe("Current database status: 'ready' (available), 'provisioning' (creating)."),
|
|
36
|
+
status: zod.z.string().describe("Current database status: 'ready' (available), 'provisioning' (creating).").nullable(),
|
|
37
37
|
apiKeys: zod.z.array(PrismaCreateDatabase_ApiKeySchema).describe("List of API keys for database access."),
|
|
38
38
|
project: PrismaCreateDatabase_ProjectInfoSchema.nullable(),
|
|
39
|
-
createdAt: zod.z.string().describe("ISO 8601 creation timestamp."),
|
|
40
|
-
isDefault: zod.z.boolean().describe("True if this is the default database for the project."),
|
|
41
|
-
connectionString: zod.z.string().describe("Primary Prisma connection string for use with Prisma Client."),
|
|
39
|
+
createdAt: zod.z.string().describe("ISO 8601 creation timestamp.").nullable(),
|
|
40
|
+
isDefault: zod.z.boolean().describe("True if this is the default database for the project.").nullable(),
|
|
41
|
+
connectionString: zod.z.string().describe("Primary Prisma connection string for use with Prisma Client.").nullable(),
|
|
42
42
|
directConnection: PrismaCreateDatabase_DirectConnectionSchema.nullable().optional()
|
|
43
43
|
}).describe("Complete database object returned after creation.");
|
|
44
44
|
const PrismaCreateDatabaseOutput = zod.z.object({ data: PrismaCreateDatabase_CreatedDatabaseSchema.nullable() }).describe("API response containing newly created database with connection details.");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-database.cjs","names":["z","action"],"sources":["../../src/actions/create-database.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaCreateDatabaseInput
|
|
1
|
+
{"version":3,"file":"create-database.cjs","names":["z","action"],"sources":["../../src/actions/create-database.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaCreateDatabaseInput = z.object({\n name: z.string().describe(\"Human-readable name for the new database. This will be displayed in UIs and used for identification. Choose descriptive names like 'Production DB', 'Analytics', etc.\"),\n region: z.string().describe(\"AWS region where the database will be deployed. Valid values: 'us-east-1', 'us-west-1', 'eu-central-1', 'eu-west-3', 'ap-southeast-1', 'ap-northeast-1'. Choose region closest to your users for optimal performance. Use LIST_POSTGRES_REGIONS to get current available regions.\"),\n isDefault: z.boolean().default(false).describe(\"Whether this database should be the default for the project. Default false. Only one database can be default per project. Setting to true will make other databases non-default.\").optional(),\n projectId: z.string().describe(\"Unique project identifier to create database in (format: 'prj_xxxxx'). Must be a project the authenticated user has write access to. The new database will belong to this project.\"),\n}).describe(\"Request parameters for creating a new database in a project.\");\nconst PrismaCreateDatabase_RegionInfoSchema = z.object({\n id: z.string().describe(\"Region identifier (e.g., 'us-east-1').\").nullable(),\n name: z.string().describe(\"Human-readable region name.\").nullable(),\n}).describe(\"Database region information.\");\nconst PrismaCreateDatabase_DirectConnectionSchema = z.object({\n host: z.string().describe(\"Database host and port (e.g., 'db.prisma.io:5432').\").nullable(),\n pass: z.string().describe(\"Database password for authentication. Use with host and user for direct connections.\").nullable(),\n user: z.string().describe(\"Database username for authentication.\").nullable(),\n}).describe(\"Direct database connection credentials for non-Prisma clients.\");\nconst PrismaCreateDatabase_ApiKeySchema = z.object({\n id: z.string().describe(\"Unique API key identifier.\").nullable(),\n name: z.string().describe(\"Human-readable API key name.\").nullable(),\n type: z.string().describe(\"Key type, typically 'connection'.\").nullable(),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp.\").nullable(),\n connectionString: z.string().describe(\"Prisma connection string for use with Prisma Client.\").nullable(),\n directConnection: PrismaCreateDatabase_DirectConnectionSchema.nullable().optional(),\n}).describe(\"Database API key for connection.\");\nconst PrismaCreateDatabase_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}).describe(\"Project information in database response.\");\nconst PrismaCreateDatabase_CreatedDatabaseSchema = z.object({\n id: z.string().describe(\"Unique database identifier (format: 'db_xxxxx') for future operations.\").nullable(),\n name: z.string().describe(\"Database name as specified in request.\").nullable(),\n type: z.string().describe(\"Object type, always 'database'.\").nullable(),\n region: PrismaCreateDatabase_RegionInfoSchema.nullable(),\n status: z.string().describe(\"Current database status: 'ready' (available), 'provisioning' (creating).\").nullable(),\n apiKeys: z.array(PrismaCreateDatabase_ApiKeySchema).describe(\"List of API keys for database access.\"),\n project: PrismaCreateDatabase_ProjectInfoSchema.nullable(),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp.\").nullable(),\n isDefault: z.boolean().describe(\"True if this is the default database for the project.\").nullable(),\n connectionString: z.string().describe(\"Primary Prisma connection string for use with Prisma Client.\").nullable(),\n directConnection: PrismaCreateDatabase_DirectConnectionSchema.nullable().optional(),\n}).describe(\"Complete database object returned after creation.\");\nexport const PrismaCreateDatabaseOutput = z.object({\n data: PrismaCreateDatabase_CreatedDatabaseSchema.nullable(),\n}).describe(\"API response containing newly created database with connection details.\");\n\nexport const prismaCreateDatabase = action(\"PRISMA_CREATE_DATABASE\", {\n slug: \"prisma-create-database\",\n name: \"Create Project Database\",\n description: \"Create new postgres database in an existing Prisma project. Creates database in specified region with connection strings and API keys. Returns complete database details ready for immediate use.\",\n input: PrismaCreateDatabaseInput,\n output: PrismaCreateDatabaseOutput,\n});\n"],"mappings":"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"}
|
|
@@ -1,9 +1,54 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-database.d.ts
|
|
4
|
-
declare const PrismaCreateDatabaseInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PrismaCreateDatabaseInput: z.ZodObject<{
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
region: z.ZodString;
|
|
7
|
+
isDefault: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
8
|
+
projectId: z.ZodString;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
declare const PrismaCreateDatabaseOutput: z.ZodObject<{
|
|
11
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
12
|
+
id: z.ZodNullable<z.ZodString>;
|
|
13
|
+
name: z.ZodNullable<z.ZodString>;
|
|
14
|
+
type: z.ZodNullable<z.ZodString>;
|
|
15
|
+
region: z.ZodNullable<z.ZodObject<{
|
|
16
|
+
id: z.ZodNullable<z.ZodString>;
|
|
17
|
+
name: z.ZodNullable<z.ZodString>;
|
|
18
|
+
}, z.core.$strip>>;
|
|
19
|
+
status: z.ZodNullable<z.ZodString>;
|
|
20
|
+
apiKeys: z.ZodArray<z.ZodObject<{
|
|
21
|
+
id: z.ZodNullable<z.ZodString>;
|
|
22
|
+
name: z.ZodNullable<z.ZodString>;
|
|
23
|
+
type: z.ZodNullable<z.ZodString>;
|
|
24
|
+
createdAt: z.ZodNullable<z.ZodString>;
|
|
25
|
+
connectionString: z.ZodNullable<z.ZodString>;
|
|
26
|
+
directConnection: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
27
|
+
host: z.ZodNullable<z.ZodString>;
|
|
28
|
+
pass: z.ZodNullable<z.ZodString>;
|
|
29
|
+
user: z.ZodNullable<z.ZodString>;
|
|
30
|
+
}, z.core.$strip>>>;
|
|
31
|
+
}, z.core.$strip>>;
|
|
32
|
+
project: z.ZodNullable<z.ZodObject<{
|
|
33
|
+
id: z.ZodNullable<z.ZodString>;
|
|
34
|
+
name: z.ZodNullable<z.ZodString>;
|
|
35
|
+
}, z.core.$strip>>;
|
|
36
|
+
createdAt: z.ZodNullable<z.ZodString>;
|
|
37
|
+
isDefault: z.ZodNullable<z.ZodBoolean>;
|
|
38
|
+
connectionString: z.ZodNullable<z.ZodString>;
|
|
39
|
+
directConnection: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
40
|
+
host: z.ZodNullable<z.ZodString>;
|
|
41
|
+
pass: z.ZodNullable<z.ZodString>;
|
|
42
|
+
user: z.ZodNullable<z.ZodString>;
|
|
43
|
+
}, z.core.$strip>>>;
|
|
44
|
+
}, z.core.$strip>>;
|
|
45
|
+
}, z.core.$strip>;
|
|
46
|
+
declare const prismaCreateDatabase: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
47
|
+
name: string;
|
|
48
|
+
region: string;
|
|
49
|
+
projectId: string;
|
|
50
|
+
isDefault?: boolean | undefined;
|
|
51
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
52
|
//#endregion
|
|
8
53
|
export { prismaCreateDatabase };
|
|
9
54
|
//# sourceMappingURL=create-database.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-database.d.cts","names":[],"sources":["../../src/actions/create-database.ts"],"mappings":";;;cAIa,yBAAA,
|
|
1
|
+
{"version":3,"file":"create-database.d.cts","names":[],"sources":["../../src/actions/create-database.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;cAwCzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAI1B,oBAAA,gCAAoB,wBAAA"}
|
|
@@ -1,9 +1,54 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-database.d.ts
|
|
4
|
-
declare const PrismaCreateDatabaseInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PrismaCreateDatabaseInput: z.ZodObject<{
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
region: z.ZodString;
|
|
7
|
+
isDefault: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
8
|
+
projectId: z.ZodString;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
declare const PrismaCreateDatabaseOutput: z.ZodObject<{
|
|
11
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
12
|
+
id: z.ZodNullable<z.ZodString>;
|
|
13
|
+
name: z.ZodNullable<z.ZodString>;
|
|
14
|
+
type: z.ZodNullable<z.ZodString>;
|
|
15
|
+
region: z.ZodNullable<z.ZodObject<{
|
|
16
|
+
id: z.ZodNullable<z.ZodString>;
|
|
17
|
+
name: z.ZodNullable<z.ZodString>;
|
|
18
|
+
}, z.core.$strip>>;
|
|
19
|
+
status: z.ZodNullable<z.ZodString>;
|
|
20
|
+
apiKeys: z.ZodArray<z.ZodObject<{
|
|
21
|
+
id: z.ZodNullable<z.ZodString>;
|
|
22
|
+
name: z.ZodNullable<z.ZodString>;
|
|
23
|
+
type: z.ZodNullable<z.ZodString>;
|
|
24
|
+
createdAt: z.ZodNullable<z.ZodString>;
|
|
25
|
+
connectionString: z.ZodNullable<z.ZodString>;
|
|
26
|
+
directConnection: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
27
|
+
host: z.ZodNullable<z.ZodString>;
|
|
28
|
+
pass: z.ZodNullable<z.ZodString>;
|
|
29
|
+
user: z.ZodNullable<z.ZodString>;
|
|
30
|
+
}, z.core.$strip>>>;
|
|
31
|
+
}, z.core.$strip>>;
|
|
32
|
+
project: z.ZodNullable<z.ZodObject<{
|
|
33
|
+
id: z.ZodNullable<z.ZodString>;
|
|
34
|
+
name: z.ZodNullable<z.ZodString>;
|
|
35
|
+
}, z.core.$strip>>;
|
|
36
|
+
createdAt: z.ZodNullable<z.ZodString>;
|
|
37
|
+
isDefault: z.ZodNullable<z.ZodBoolean>;
|
|
38
|
+
connectionString: z.ZodNullable<z.ZodString>;
|
|
39
|
+
directConnection: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
40
|
+
host: z.ZodNullable<z.ZodString>;
|
|
41
|
+
pass: z.ZodNullable<z.ZodString>;
|
|
42
|
+
user: z.ZodNullable<z.ZodString>;
|
|
43
|
+
}, z.core.$strip>>>;
|
|
44
|
+
}, z.core.$strip>>;
|
|
45
|
+
}, z.core.$strip>;
|
|
46
|
+
declare const prismaCreateDatabase: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
47
|
+
name: string;
|
|
48
|
+
region: string;
|
|
49
|
+
projectId: string;
|
|
50
|
+
isDefault?: boolean | undefined;
|
|
51
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
52
|
//#endregion
|
|
8
53
|
export { prismaCreateDatabase };
|
|
9
54
|
//# sourceMappingURL=create-database.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-database.d.mts","names":[],"sources":["../../src/actions/create-database.ts"],"mappings":";;;cAIa,yBAAA,
|
|
1
|
+
{"version":3,"file":"create-database.d.mts","names":[],"sources":["../../src/actions/create-database.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;cAwCzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAI1B,oBAAA,gCAAoB,wBAAA"}
|
|
@@ -8,37 +8,37 @@ const PrismaCreateDatabaseInput = z.object({
|
|
|
8
8
|
projectId: z.string().describe("Unique project identifier to create database in (format: 'prj_xxxxx'). Must be a project the authenticated user has write access to. The new database will belong to this project.")
|
|
9
9
|
}).describe("Request parameters for creating a new database in a project.");
|
|
10
10
|
const PrismaCreateDatabase_RegionInfoSchema = z.object({
|
|
11
|
-
id: z.string().describe("Region identifier (e.g., 'us-east-1')."),
|
|
12
|
-
name: z.string().describe("Human-readable region name.")
|
|
11
|
+
id: z.string().describe("Region identifier (e.g., 'us-east-1').").nullable(),
|
|
12
|
+
name: z.string().describe("Human-readable region name.").nullable()
|
|
13
13
|
}).describe("Database region information.");
|
|
14
14
|
const PrismaCreateDatabase_DirectConnectionSchema = z.object({
|
|
15
|
-
host: z.string().describe("Database host and port (e.g., 'db.prisma.io:5432')."),
|
|
16
|
-
pass: z.string().describe("Database password for authentication. Use with host and user for direct connections."),
|
|
17
|
-
user: z.string().describe("Database username for authentication.")
|
|
15
|
+
host: z.string().describe("Database host and port (e.g., 'db.prisma.io:5432').").nullable(),
|
|
16
|
+
pass: z.string().describe("Database password for authentication. Use with host and user for direct connections.").nullable(),
|
|
17
|
+
user: z.string().describe("Database username for authentication.").nullable()
|
|
18
18
|
}).describe("Direct database connection credentials for non-Prisma clients.");
|
|
19
19
|
const PrismaCreateDatabase_ApiKeySchema = z.object({
|
|
20
|
-
id: z.string().describe("Unique API key identifier."),
|
|
21
|
-
name: z.string().describe("Human-readable API key name."),
|
|
22
|
-
type: z.string().describe("Key type, typically 'connection'."),
|
|
23
|
-
createdAt: z.string().describe("ISO 8601 creation timestamp."),
|
|
24
|
-
connectionString: z.string().describe("Prisma connection string for use with Prisma Client."),
|
|
20
|
+
id: z.string().describe("Unique API key identifier.").nullable(),
|
|
21
|
+
name: z.string().describe("Human-readable API key name.").nullable(),
|
|
22
|
+
type: z.string().describe("Key type, typically 'connection'.").nullable(),
|
|
23
|
+
createdAt: z.string().describe("ISO 8601 creation timestamp.").nullable(),
|
|
24
|
+
connectionString: z.string().describe("Prisma connection string for use with Prisma Client.").nullable(),
|
|
25
25
|
directConnection: PrismaCreateDatabase_DirectConnectionSchema.nullable().optional()
|
|
26
26
|
}).describe("Database API key for connection.");
|
|
27
27
|
const PrismaCreateDatabase_ProjectInfoSchema = z.object({
|
|
28
|
-
id: z.string().describe("Unique project ID containing this database."),
|
|
29
|
-
name: z.string().describe("Human-readable project name.")
|
|
28
|
+
id: z.string().describe("Unique project ID containing this database.").nullable(),
|
|
29
|
+
name: z.string().describe("Human-readable project name.").nullable()
|
|
30
30
|
}).describe("Project information in database response.");
|
|
31
31
|
const PrismaCreateDatabase_CreatedDatabaseSchema = z.object({
|
|
32
|
-
id: z.string().describe("Unique database identifier (format: 'db_xxxxx') for future operations."),
|
|
33
|
-
name: z.string().describe("Database name as specified in request."),
|
|
34
|
-
type: z.string().describe("Object type, always 'database'."),
|
|
32
|
+
id: z.string().describe("Unique database identifier (format: 'db_xxxxx') for future operations.").nullable(),
|
|
33
|
+
name: z.string().describe("Database name as specified in request.").nullable(),
|
|
34
|
+
type: z.string().describe("Object type, always 'database'.").nullable(),
|
|
35
35
|
region: PrismaCreateDatabase_RegionInfoSchema.nullable(),
|
|
36
|
-
status: z.string().describe("Current database status: 'ready' (available), 'provisioning' (creating)."),
|
|
36
|
+
status: z.string().describe("Current database status: 'ready' (available), 'provisioning' (creating).").nullable(),
|
|
37
37
|
apiKeys: z.array(PrismaCreateDatabase_ApiKeySchema).describe("List of API keys for database access."),
|
|
38
38
|
project: PrismaCreateDatabase_ProjectInfoSchema.nullable(),
|
|
39
|
-
createdAt: z.string().describe("ISO 8601 creation timestamp."),
|
|
40
|
-
isDefault: z.boolean().describe("True if this is the default database for the project."),
|
|
41
|
-
connectionString: z.string().describe("Primary Prisma connection string for use with Prisma Client."),
|
|
39
|
+
createdAt: z.string().describe("ISO 8601 creation timestamp.").nullable(),
|
|
40
|
+
isDefault: z.boolean().describe("True if this is the default database for the project.").nullable(),
|
|
41
|
+
connectionString: z.string().describe("Primary Prisma connection string for use with Prisma Client.").nullable(),
|
|
42
42
|
directConnection: PrismaCreateDatabase_DirectConnectionSchema.nullable().optional()
|
|
43
43
|
}).describe("Complete database object returned after creation.");
|
|
44
44
|
const prismaCreateDatabase = action("PRISMA_CREATE_DATABASE", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-database.mjs","names":[],"sources":["../../src/actions/create-database.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaCreateDatabaseInput
|
|
1
|
+
{"version":3,"file":"create-database.mjs","names":[],"sources":["../../src/actions/create-database.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaCreateDatabaseInput = z.object({\n name: z.string().describe(\"Human-readable name for the new database. This will be displayed in UIs and used for identification. Choose descriptive names like 'Production DB', 'Analytics', etc.\"),\n region: z.string().describe(\"AWS region where the database will be deployed. Valid values: 'us-east-1', 'us-west-1', 'eu-central-1', 'eu-west-3', 'ap-southeast-1', 'ap-northeast-1'. Choose region closest to your users for optimal performance. Use LIST_POSTGRES_REGIONS to get current available regions.\"),\n isDefault: z.boolean().default(false).describe(\"Whether this database should be the default for the project. Default false. Only one database can be default per project. Setting to true will make other databases non-default.\").optional(),\n projectId: z.string().describe(\"Unique project identifier to create database in (format: 'prj_xxxxx'). Must be a project the authenticated user has write access to. The new database will belong to this project.\"),\n}).describe(\"Request parameters for creating a new database in a project.\");\nconst PrismaCreateDatabase_RegionInfoSchema = z.object({\n id: z.string().describe(\"Region identifier (e.g., 'us-east-1').\").nullable(),\n name: z.string().describe(\"Human-readable region name.\").nullable(),\n}).describe(\"Database region information.\");\nconst PrismaCreateDatabase_DirectConnectionSchema = z.object({\n host: z.string().describe(\"Database host and port (e.g., 'db.prisma.io:5432').\").nullable(),\n pass: z.string().describe(\"Database password for authentication. Use with host and user for direct connections.\").nullable(),\n user: z.string().describe(\"Database username for authentication.\").nullable(),\n}).describe(\"Direct database connection credentials for non-Prisma clients.\");\nconst PrismaCreateDatabase_ApiKeySchema = z.object({\n id: z.string().describe(\"Unique API key identifier.\").nullable(),\n name: z.string().describe(\"Human-readable API key name.\").nullable(),\n type: z.string().describe(\"Key type, typically 'connection'.\").nullable(),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp.\").nullable(),\n connectionString: z.string().describe(\"Prisma connection string for use with Prisma Client.\").nullable(),\n directConnection: PrismaCreateDatabase_DirectConnectionSchema.nullable().optional(),\n}).describe(\"Database API key for connection.\");\nconst PrismaCreateDatabase_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}).describe(\"Project information in database response.\");\nconst PrismaCreateDatabase_CreatedDatabaseSchema = z.object({\n id: z.string().describe(\"Unique database identifier (format: 'db_xxxxx') for future operations.\").nullable(),\n name: z.string().describe(\"Database name as specified in request.\").nullable(),\n type: z.string().describe(\"Object type, always 'database'.\").nullable(),\n region: PrismaCreateDatabase_RegionInfoSchema.nullable(),\n status: z.string().describe(\"Current database status: 'ready' (available), 'provisioning' (creating).\").nullable(),\n apiKeys: z.array(PrismaCreateDatabase_ApiKeySchema).describe(\"List of API keys for database access.\"),\n project: PrismaCreateDatabase_ProjectInfoSchema.nullable(),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp.\").nullable(),\n isDefault: z.boolean().describe(\"True if this is the default database for the project.\").nullable(),\n connectionString: z.string().describe(\"Primary Prisma connection string for use with Prisma Client.\").nullable(),\n directConnection: PrismaCreateDatabase_DirectConnectionSchema.nullable().optional(),\n}).describe(\"Complete database object returned after creation.\");\nexport const PrismaCreateDatabaseOutput = z.object({\n data: PrismaCreateDatabase_CreatedDatabaseSchema.nullable(),\n}).describe(\"API response containing newly created database with connection details.\");\n\nexport const prismaCreateDatabase = action(\"PRISMA_CREATE_DATABASE\", {\n slug: \"prisma-create-database\",\n name: \"Create Project Database\",\n description: \"Create new postgres database in an existing Prisma project. Creates database in specified region with connection strings and API keys. Returns complete database details ready for immediate use.\",\n input: PrismaCreateDatabaseInput,\n output: PrismaCreateDatabaseOutput,\n});\n"],"mappings":"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"}
|