@keystrokehq/prisma 0.1.2 → 0.1.3
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/actions/create-connection.cjs +3 -3
- package/dist/actions/create-connection.cjs.map +1 -1
- package/dist/actions/create-connection.d.cts +3 -3
- package/dist/actions/create-connection.d.mts +3 -3
- package/dist/actions/create-connection.mjs +3 -3
- package/dist/actions/create-connection.mjs.map +1 -1
- package/dist/actions/create-database.cjs +6 -6
- package/dist/actions/create-database.cjs.map +1 -1
- package/dist/actions/create-database.d.cts +7 -7
- package/dist/actions/create-database.d.mts +7 -7
- package/dist/actions/create-database.mjs +6 -6
- package/dist/actions/create-database.mjs.map +1 -1
- package/dist/actions/create-project.cjs +7 -7
- package/dist/actions/create-project.cjs.map +1 -1
- package/dist/actions/create-project.d.cts +8 -8
- package/dist/actions/create-project.d.mts +8 -8
- package/dist/actions/create-project.mjs +7 -7
- package/dist/actions/create-project.mjs.map +1 -1
- package/dist/actions/delete-connection.cjs +1 -1
- package/dist/actions/delete-connection.cjs.map +1 -1
- package/dist/actions/delete-connection.d.cts +1 -1
- package/dist/actions/delete-connection.d.cts.map +1 -1
- package/dist/actions/delete-connection.d.mts +1 -1
- package/dist/actions/delete-connection.d.mts.map +1 -1
- package/dist/actions/delete-connection.mjs +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 +1 -1
- package/dist/actions/delete-database.d.mts +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 +1 -1
- package/dist/actions/delete-project.cjs.map +1 -1
- package/dist/actions/delete-project.d.cts +1 -1
- package/dist/actions/delete-project.d.cts.map +1 -1
- package/dist/actions/delete-project.d.mts +1 -1
- package/dist/actions/delete-project.d.mts.map +1 -1
- package/dist/actions/delete-project.mjs +1 -1
- package/dist/actions/delete-project.mjs.map +1 -1
- package/dist/actions/execute-sql-command.cjs +2 -2
- package/dist/actions/execute-sql-command.cjs.map +1 -1
- package/dist/actions/execute-sql-command.d.cts +2 -2
- package/dist/actions/execute-sql-command.d.mts +2 -2
- package/dist/actions/execute-sql-command.mjs +2 -2
- 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 +2 -2
- package/dist/actions/execute-sql-query.d.mts +2 -2
- 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 +4 -4
- package/dist/actions/get-database-usage.cjs.map +1 -1
- package/dist/actions/get-database-usage.d.cts +5 -5
- package/dist/actions/get-database-usage.d.mts +5 -5
- package/dist/actions/get-database-usage.mjs +4 -4
- package/dist/actions/get-database-usage.mjs.map +1 -1
- package/dist/actions/get-database.cjs +4 -4
- package/dist/actions/get-database.cjs.map +1 -1
- package/dist/actions/get-database.d.cts +4 -4
- package/dist/actions/get-database.d.mts +4 -4
- package/dist/actions/get-database.mjs +4 -4
- package/dist/actions/get-database.mjs.map +1 -1
- package/dist/actions/get-project.cjs +3 -3
- package/dist/actions/get-project.cjs.map +1 -1
- package/dist/actions/get-project.d.cts +3 -3
- package/dist/actions/get-project.d.mts +3 -3
- package/dist/actions/get-project.mjs +3 -3
- package/dist/actions/get-project.mjs.map +1 -1
- package/dist/actions/inspect-database-schema.cjs +4 -4
- package/dist/actions/inspect-database-schema.cjs.map +1 -1
- package/dist/actions/inspect-database-schema.d.cts +4 -4
- package/dist/actions/inspect-database-schema.d.mts +4 -4
- package/dist/actions/inspect-database-schema.mjs +4 -4
- package/dist/actions/inspect-database-schema.mjs.map +1 -1
- package/dist/actions/list-accelerate-regions.cjs +2 -2
- package/dist/actions/list-accelerate-regions.cjs.map +1 -1
- package/dist/actions/list-accelerate-regions.d.cts +2 -2
- package/dist/actions/list-accelerate-regions.d.mts +2 -2
- package/dist/actions/list-accelerate-regions.mjs +2 -2
- package/dist/actions/list-accelerate-regions.mjs.map +1 -1
- package/dist/actions/list-backups.cjs +4 -4
- package/dist/actions/list-backups.cjs.map +1 -1
- package/dist/actions/list-backups.d.cts +4 -4
- package/dist/actions/list-backups.d.mts +4 -4
- package/dist/actions/list-backups.mjs +4 -4
- package/dist/actions/list-backups.mjs.map +1 -1
- package/dist/actions/list-connections.cjs +4 -4
- package/dist/actions/list-connections.cjs.map +1 -1
- package/dist/actions/list-connections.d.cts +4 -4
- package/dist/actions/list-connections.d.mts +4 -4
- package/dist/actions/list-connections.mjs +4 -4
- package/dist/actions/list-connections.mjs.map +1 -1
- package/dist/actions/list-databases.cjs +5 -5
- package/dist/actions/list-databases.cjs.map +1 -1
- package/dist/actions/list-databases.d.cts +5 -5
- package/dist/actions/list-databases.d.mts +5 -5
- package/dist/actions/list-databases.mjs +5 -5
- package/dist/actions/list-databases.mjs.map +1 -1
- package/dist/actions/list-postgres-regions.cjs +2 -2
- package/dist/actions/list-postgres-regions.cjs.map +1 -1
- package/dist/actions/list-postgres-regions.d.cts +2 -2
- package/dist/actions/list-postgres-regions.d.mts +2 -2
- package/dist/actions/list-postgres-regions.mjs +2 -2
- package/dist/actions/list-postgres-regions.mjs.map +1 -1
- package/dist/actions/list-projects.cjs +4 -4
- package/dist/actions/list-projects.cjs.map +1 -1
- package/dist/actions/list-projects.d.cts +4 -4
- package/dist/actions/list-projects.d.mts +4 -4
- package/dist/actions/list-projects.mjs +4 -4
- package/dist/actions/list-projects.mjs.map +1 -1
- package/dist/actions/list-workspace-integrations.cjs +5 -5
- package/dist/actions/list-workspace-integrations.cjs.map +1 -1
- package/dist/actions/list-workspace-integrations.d.cts +5 -5
- package/dist/actions/list-workspace-integrations.d.mts +5 -5
- package/dist/actions/list-workspace-integrations.mjs +5 -5
- package/dist/actions/list-workspace-integrations.mjs.map +1 -1
- package/dist/actions/list-workspaces.cjs +3 -3
- package/dist/actions/list-workspaces.cjs.map +1 -1
- package/dist/actions/list-workspaces.d.cts +3 -3
- package/dist/actions/list-workspaces.d.mts +3 -3
- package/dist/actions/list-workspaces.mjs +3 -3
- package/dist/actions/list-workspaces.mjs.map +1 -1
- package/dist/actions/restore-backup.cjs +4 -4
- package/dist/actions/restore-backup.cjs.map +1 -1
- package/dist/actions/restore-backup.d.cts +4 -4
- package/dist/actions/restore-backup.d.mts +4 -4
- package/dist/actions/restore-backup.mjs +4 -4
- package/dist/actions/restore-backup.mjs.map +1 -1
- package/dist/actions/transfer-project.cjs +1 -1
- package/dist/actions/transfer-project.cjs.map +1 -1
- package/dist/actions/transfer-project.d.cts +1 -1
- package/dist/actions/transfer-project.d.mts +1 -1
- package/dist/actions/transfer-project.mjs +1 -1
- package/dist/actions/transfer-project.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -8,7 +8,7 @@ const PrismaCreateConnectionInput = zod.z.object({
|
|
|
8
8
|
const PrismaCreateConnection_DatabaseInfoSchema = zod.z.object({
|
|
9
9
|
id: zod.z.string().describe("Unique database ID containing this connection.").nullable(),
|
|
10
10
|
name: zod.z.string().describe("Human-readable database name.").nullable()
|
|
11
|
-
}).describe("Database information in connection response.");
|
|
11
|
+
}).passthrough().describe("Database information in connection response.");
|
|
12
12
|
const PrismaCreateConnection_CreatedConnectionSchema = zod.z.object({
|
|
13
13
|
id: zod.z.string().describe("Unique connection identifier for future operations.").nullable(),
|
|
14
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(),
|
|
@@ -19,8 +19,8 @@ const PrismaCreateConnection_CreatedConnectionSchema = zod.z.object({
|
|
|
19
19
|
database: PrismaCreateConnection_DatabaseInfoSchema.nullable(),
|
|
20
20
|
createdAt: zod.z.string().describe("ISO 8601 creation timestamp.").nullable(),
|
|
21
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
|
-
}).describe("Complete connection object returned after creation.");
|
|
23
|
-
const PrismaCreateConnectionOutput = zod.z.object({ data: PrismaCreateConnection_CreatedConnectionSchema.nullable() }).describe("API response containing newly created connection with credentials.");
|
|
22
|
+
}).passthrough().describe("Complete connection object returned after creation.");
|
|
23
|
+
const PrismaCreateConnectionOutput = zod.z.object({ data: PrismaCreateConnection_CreatedConnectionSchema.nullable() }).passthrough().describe("API response containing newly created connection with credentials.");
|
|
24
24
|
const prismaCreateConnection = require_action.action("PRISMA_CREATE_CONNECTION", {
|
|
25
25
|
slug: "prisma-create-connection",
|
|
26
26
|
name: "Create Database 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 = 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;
|
|
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}).passthrough().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}).passthrough().describe(\"Complete connection object returned after creation.\");\nexport const PrismaCreateConnectionOutput = z.object({\n data: PrismaCreateConnection_CreatedConnectionSchema.nullable(),\n}).passthrough().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,M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AO,EACnD,MAAM,+CAA+C,SAAS,EAChE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oEAAoE;AAE9F,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -16,11 +16,11 @@ declare const PrismaCreateConnectionOutput: z.ZodObject<{
|
|
|
16
16
|
database: z.ZodNullable<z.ZodObject<{
|
|
17
17
|
id: z.ZodNullable<z.ZodString>;
|
|
18
18
|
name: z.ZodNullable<z.ZodString>;
|
|
19
|
-
}, z.core.$
|
|
19
|
+
}, z.core.$loose>>;
|
|
20
20
|
createdAt: z.ZodNullable<z.ZodString>;
|
|
21
21
|
connectionString: z.ZodNullable<z.ZodString>;
|
|
22
|
-
}, z.core.$
|
|
23
|
-
}, z.core.$
|
|
22
|
+
}, z.core.$loose>>;
|
|
23
|
+
}, z.core.$loose>;
|
|
24
24
|
declare const prismaCreateConnection: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
25
25
|
name: string;
|
|
26
26
|
databaseId: string;
|
|
@@ -16,11 +16,11 @@ declare const PrismaCreateConnectionOutput: z.ZodObject<{
|
|
|
16
16
|
database: z.ZodNullable<z.ZodObject<{
|
|
17
17
|
id: z.ZodNullable<z.ZodString>;
|
|
18
18
|
name: z.ZodNullable<z.ZodString>;
|
|
19
|
-
}, z.core.$
|
|
19
|
+
}, z.core.$loose>>;
|
|
20
20
|
createdAt: z.ZodNullable<z.ZodString>;
|
|
21
21
|
connectionString: z.ZodNullable<z.ZodString>;
|
|
22
|
-
}, z.core.$
|
|
23
|
-
}, z.core.$
|
|
22
|
+
}, z.core.$loose>>;
|
|
23
|
+
}, z.core.$loose>;
|
|
24
24
|
declare const prismaCreateConnection: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
25
25
|
name: string;
|
|
26
26
|
databaseId: string;
|
|
@@ -8,7 +8,7 @@ const PrismaCreateConnectionInput = z.object({
|
|
|
8
8
|
const PrismaCreateConnection_DatabaseInfoSchema = z.object({
|
|
9
9
|
id: z.string().describe("Unique database ID containing this connection.").nullable(),
|
|
10
10
|
name: z.string().describe("Human-readable database name.").nullable()
|
|
11
|
-
}).describe("Database information in connection response.");
|
|
11
|
+
}).passthrough().describe("Database information in connection response.");
|
|
12
12
|
const PrismaCreateConnection_CreatedConnectionSchema = z.object({
|
|
13
13
|
id: z.string().describe("Unique connection identifier for future operations.").nullable(),
|
|
14
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(),
|
|
@@ -19,13 +19,13 @@ const PrismaCreateConnection_CreatedConnectionSchema = z.object({
|
|
|
19
19
|
database: PrismaCreateConnection_DatabaseInfoSchema.nullable(),
|
|
20
20
|
createdAt: z.string().describe("ISO 8601 creation timestamp.").nullable(),
|
|
21
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
|
-
}).describe("Complete connection object returned after creation.");
|
|
22
|
+
}).passthrough().describe("Complete connection object returned after creation.");
|
|
23
23
|
const prismaCreateConnection = action("PRISMA_CREATE_CONNECTION", {
|
|
24
24
|
slug: "prisma-create-connection",
|
|
25
25
|
name: "Create Database Connection",
|
|
26
26
|
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.",
|
|
27
27
|
input: PrismaCreateConnectionInput,
|
|
28
|
-
output: z.object({ data: PrismaCreateConnection_CreatedConnectionSchema.nullable() }).describe("API response containing newly created connection with credentials.")
|
|
28
|
+
output: z.object({ data: PrismaCreateConnection_CreatedConnectionSchema.nullable() }).passthrough().describe("API response containing newly created connection with credentials.")
|
|
29
29
|
});
|
|
30
30
|
//#endregion
|
|
31
31
|
export { prismaCreateConnection };
|
|
@@ -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 = 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;
|
|
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}).passthrough().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}).passthrough().describe(\"Complete connection object returned after creation.\");\nexport const PrismaCreateConnectionOutput = z.object({\n data: PrismaCreateConnection_CreatedConnectionSchema.nullable(),\n}).passthrough().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,YAAY,CAAC,CAAC,SAAS,8CAA8C;AACxE,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,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAK/E,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,YAAY,CAAC,CAAC,SAAS,oEAOhB;AACV,CAAC"}
|
|
@@ -10,12 +10,12 @@ const PrismaCreateDatabaseInput = zod.z.object({
|
|
|
10
10
|
const PrismaCreateDatabase_RegionInfoSchema = zod.z.object({
|
|
11
11
|
id: zod.z.string().describe("Region identifier (e.g., 'us-east-1').").nullable(),
|
|
12
12
|
name: zod.z.string().describe("Human-readable region name.").nullable()
|
|
13
|
-
}).describe("Database region information.");
|
|
13
|
+
}).passthrough().describe("Database region information.");
|
|
14
14
|
const PrismaCreateDatabase_DirectConnectionSchema = zod.z.object({
|
|
15
15
|
host: zod.z.string().describe("Database host and port (e.g., 'db.prisma.io:5432').").nullable(),
|
|
16
16
|
pass: zod.z.string().describe("Database password for authentication. Use with host and user for direct connections.").nullable(),
|
|
17
17
|
user: zod.z.string().describe("Database username for authentication.").nullable()
|
|
18
|
-
}).describe("Direct database connection credentials for non-Prisma clients.");
|
|
18
|
+
}).passthrough().describe("Direct database connection credentials for non-Prisma clients.");
|
|
19
19
|
const PrismaCreateDatabase_ApiKeySchema = zod.z.object({
|
|
20
20
|
id: zod.z.string().describe("Unique API key identifier.").nullable(),
|
|
21
21
|
name: zod.z.string().describe("Human-readable API key name.").nullable(),
|
|
@@ -23,11 +23,11 @@ const PrismaCreateDatabase_ApiKeySchema = zod.z.object({
|
|
|
23
23
|
createdAt: zod.z.string().describe("ISO 8601 creation timestamp.").nullable(),
|
|
24
24
|
connectionString: zod.z.string().describe("Prisma connection string for use with Prisma Client.").nullable(),
|
|
25
25
|
directConnection: PrismaCreateDatabase_DirectConnectionSchema.nullable().optional()
|
|
26
|
-
}).describe("Database API key for connection.");
|
|
26
|
+
}).passthrough().describe("Database API key for connection.");
|
|
27
27
|
const PrismaCreateDatabase_ProjectInfoSchema = zod.z.object({
|
|
28
28
|
id: zod.z.string().describe("Unique project ID containing this database.").nullable(),
|
|
29
29
|
name: zod.z.string().describe("Human-readable project name.").nullable()
|
|
30
|
-
}).describe("Project information in database response.");
|
|
30
|
+
}).passthrough().describe("Project information in database response.");
|
|
31
31
|
const PrismaCreateDatabase_CreatedDatabaseSchema = zod.z.object({
|
|
32
32
|
id: zod.z.string().describe("Unique database identifier (format: 'db_xxxxx') for future operations.").nullable(),
|
|
33
33
|
name: zod.z.string().describe("Database name as specified in request.").nullable(),
|
|
@@ -40,8 +40,8 @@ const PrismaCreateDatabase_CreatedDatabaseSchema = zod.z.object({
|
|
|
40
40
|
isDefault: zod.z.boolean().describe("True if this is the default database for the project.").nullable(),
|
|
41
41
|
connectionString: zod.z.string().describe("Primary Prisma connection string for use with Prisma Client.").nullable(),
|
|
42
42
|
directConnection: PrismaCreateDatabase_DirectConnectionSchema.nullable().optional()
|
|
43
|
-
}).describe("Complete database object returned after creation.");
|
|
44
|
-
const PrismaCreateDatabaseOutput = zod.z.object({ data: PrismaCreateDatabase_CreatedDatabaseSchema.nullable() }).describe("API response containing newly created database with connection details.");
|
|
43
|
+
}).passthrough().describe("Complete database object returned after creation.");
|
|
44
|
+
const PrismaCreateDatabaseOutput = zod.z.object({ data: PrismaCreateDatabase_CreatedDatabaseSchema.nullable() }).passthrough().describe("API response containing newly created database with connection details.");
|
|
45
45
|
const prismaCreateDatabase = require_action.action("PRISMA_CREATE_DATABASE", {
|
|
46
46
|
slug: "prisma-create-database",
|
|
47
47
|
name: "Create Project Database",
|
|
@@ -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 = 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":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uKAAuK;CACjM,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mRAAmR;CAC/S,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,kLAAkL,CAAC,CAAC,SAAS;CAC5O,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oLAAoL;AACrN,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,wCAAwCA,IAAAA,EAAE,OAAO;CACrD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC3E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;AACpE,CAAC,CAAC,CAAC,SAAS,8BAA8B;
|
|
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}).passthrough().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}).passthrough().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}).passthrough().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}).passthrough().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}).passthrough().describe(\"Complete database object returned after creation.\");\nexport const PrismaCreateDatabaseOutput = z.object({\n data: PrismaCreateDatabase_CreatedDatabaseSchema.nullable(),\n}).passthrough().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":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uKAAuK;CACjM,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mRAAmR;CAC/S,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,kLAAkL,CAAC,CAAC,SAAS;CAC5O,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oLAAoL;AACrN,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,wCAAwCA,IAAAA,EAAE,OAAO;CACrD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC3E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;AACpE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8BAA8B;AACxD,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAC1F,MAAMA,IAAAA,EAAE,OAAO,CAAC,C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AS;CACtE,QAAQ,sCAAsC,SAAS;CACvD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CACjH,SAASA,IAAAA,EAAE,MAAM,iCAAiC,CAAC,CAAC,SAAS,uCAAuC;CACpG,SAAS,uCAAuC,SAAS;CACzD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACxE,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAClG,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CAC/G,kBAAkB,4CAA4C,SAAS,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAC7E,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,MAAM,2CAA2C,SAAS,EAC5D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yEAAyE;AAEnG,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -15,7 +15,7 @@ declare const PrismaCreateDatabaseOutput: z.ZodObject<{
|
|
|
15
15
|
region: z.ZodNullable<z.ZodObject<{
|
|
16
16
|
id: z.ZodNullable<z.ZodString>;
|
|
17
17
|
name: z.ZodNullable<z.ZodString>;
|
|
18
|
-
}, z.core.$
|
|
18
|
+
}, z.core.$loose>>;
|
|
19
19
|
status: z.ZodNullable<z.ZodString>;
|
|
20
20
|
apiKeys: z.ZodArray<z.ZodObject<{
|
|
21
21
|
id: z.ZodNullable<z.ZodString>;
|
|
@@ -27,12 +27,12 @@ declare const PrismaCreateDatabaseOutput: z.ZodObject<{
|
|
|
27
27
|
host: z.ZodNullable<z.ZodString>;
|
|
28
28
|
pass: z.ZodNullable<z.ZodString>;
|
|
29
29
|
user: z.ZodNullable<z.ZodString>;
|
|
30
|
-
}, z.core.$
|
|
31
|
-
}, z.core.$
|
|
30
|
+
}, z.core.$loose>>>;
|
|
31
|
+
}, z.core.$loose>>;
|
|
32
32
|
project: z.ZodNullable<z.ZodObject<{
|
|
33
33
|
id: z.ZodNullable<z.ZodString>;
|
|
34
34
|
name: z.ZodNullable<z.ZodString>;
|
|
35
|
-
}, z.core.$
|
|
35
|
+
}, z.core.$loose>>;
|
|
36
36
|
createdAt: z.ZodNullable<z.ZodString>;
|
|
37
37
|
isDefault: z.ZodNullable<z.ZodBoolean>;
|
|
38
38
|
connectionString: z.ZodNullable<z.ZodString>;
|
|
@@ -40,9 +40,9 @@ declare const PrismaCreateDatabaseOutput: z.ZodObject<{
|
|
|
40
40
|
host: z.ZodNullable<z.ZodString>;
|
|
41
41
|
pass: z.ZodNullable<z.ZodString>;
|
|
42
42
|
user: z.ZodNullable<z.ZodString>;
|
|
43
|
-
}, z.core.$
|
|
44
|
-
}, z.core.$
|
|
45
|
-
}, z.core.$
|
|
43
|
+
}, z.core.$loose>>>;
|
|
44
|
+
}, z.core.$loose>>;
|
|
45
|
+
}, z.core.$loose>;
|
|
46
46
|
declare const prismaCreateDatabase: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
47
47
|
name: string;
|
|
48
48
|
region: string;
|
|
@@ -15,7 +15,7 @@ declare const PrismaCreateDatabaseOutput: z.ZodObject<{
|
|
|
15
15
|
region: z.ZodNullable<z.ZodObject<{
|
|
16
16
|
id: z.ZodNullable<z.ZodString>;
|
|
17
17
|
name: z.ZodNullable<z.ZodString>;
|
|
18
|
-
}, z.core.$
|
|
18
|
+
}, z.core.$loose>>;
|
|
19
19
|
status: z.ZodNullable<z.ZodString>;
|
|
20
20
|
apiKeys: z.ZodArray<z.ZodObject<{
|
|
21
21
|
id: z.ZodNullable<z.ZodString>;
|
|
@@ -27,12 +27,12 @@ declare const PrismaCreateDatabaseOutput: z.ZodObject<{
|
|
|
27
27
|
host: z.ZodNullable<z.ZodString>;
|
|
28
28
|
pass: z.ZodNullable<z.ZodString>;
|
|
29
29
|
user: z.ZodNullable<z.ZodString>;
|
|
30
|
-
}, z.core.$
|
|
31
|
-
}, z.core.$
|
|
30
|
+
}, z.core.$loose>>>;
|
|
31
|
+
}, z.core.$loose>>;
|
|
32
32
|
project: z.ZodNullable<z.ZodObject<{
|
|
33
33
|
id: z.ZodNullable<z.ZodString>;
|
|
34
34
|
name: z.ZodNullable<z.ZodString>;
|
|
35
|
-
}, z.core.$
|
|
35
|
+
}, z.core.$loose>>;
|
|
36
36
|
createdAt: z.ZodNullable<z.ZodString>;
|
|
37
37
|
isDefault: z.ZodNullable<z.ZodBoolean>;
|
|
38
38
|
connectionString: z.ZodNullable<z.ZodString>;
|
|
@@ -40,9 +40,9 @@ declare const PrismaCreateDatabaseOutput: z.ZodObject<{
|
|
|
40
40
|
host: z.ZodNullable<z.ZodString>;
|
|
41
41
|
pass: z.ZodNullable<z.ZodString>;
|
|
42
42
|
user: z.ZodNullable<z.ZodString>;
|
|
43
|
-
}, z.core.$
|
|
44
|
-
}, z.core.$
|
|
45
|
-
}, z.core.$
|
|
43
|
+
}, z.core.$loose>>>;
|
|
44
|
+
}, z.core.$loose>>;
|
|
45
|
+
}, z.core.$loose>;
|
|
46
46
|
declare const prismaCreateDatabase: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
47
47
|
name: string;
|
|
48
48
|
region: string;
|
|
@@ -10,12 +10,12 @@ const PrismaCreateDatabaseInput = z.object({
|
|
|
10
10
|
const PrismaCreateDatabase_RegionInfoSchema = z.object({
|
|
11
11
|
id: z.string().describe("Region identifier (e.g., 'us-east-1').").nullable(),
|
|
12
12
|
name: z.string().describe("Human-readable region name.").nullable()
|
|
13
|
-
}).describe("Database region information.");
|
|
13
|
+
}).passthrough().describe("Database region information.");
|
|
14
14
|
const PrismaCreateDatabase_DirectConnectionSchema = z.object({
|
|
15
15
|
host: z.string().describe("Database host and port (e.g., 'db.prisma.io:5432').").nullable(),
|
|
16
16
|
pass: z.string().describe("Database password for authentication. Use with host and user for direct connections.").nullable(),
|
|
17
17
|
user: z.string().describe("Database username for authentication.").nullable()
|
|
18
|
-
}).describe("Direct database connection credentials for non-Prisma clients.");
|
|
18
|
+
}).passthrough().describe("Direct database connection credentials for non-Prisma clients.");
|
|
19
19
|
const PrismaCreateDatabase_ApiKeySchema = z.object({
|
|
20
20
|
id: z.string().describe("Unique API key identifier.").nullable(),
|
|
21
21
|
name: z.string().describe("Human-readable API key name.").nullable(),
|
|
@@ -23,11 +23,11 @@ const PrismaCreateDatabase_ApiKeySchema = z.object({
|
|
|
23
23
|
createdAt: z.string().describe("ISO 8601 creation timestamp.").nullable(),
|
|
24
24
|
connectionString: z.string().describe("Prisma connection string for use with Prisma Client.").nullable(),
|
|
25
25
|
directConnection: PrismaCreateDatabase_DirectConnectionSchema.nullable().optional()
|
|
26
|
-
}).describe("Database API key for connection.");
|
|
26
|
+
}).passthrough().describe("Database API key for connection.");
|
|
27
27
|
const PrismaCreateDatabase_ProjectInfoSchema = z.object({
|
|
28
28
|
id: z.string().describe("Unique project ID containing this database.").nullable(),
|
|
29
29
|
name: z.string().describe("Human-readable project name.").nullable()
|
|
30
|
-
}).describe("Project information in database response.");
|
|
30
|
+
}).passthrough().describe("Project information in database response.");
|
|
31
31
|
const PrismaCreateDatabase_CreatedDatabaseSchema = z.object({
|
|
32
32
|
id: z.string().describe("Unique database identifier (format: 'db_xxxxx') for future operations.").nullable(),
|
|
33
33
|
name: z.string().describe("Database name as specified in request.").nullable(),
|
|
@@ -40,13 +40,13 @@ const PrismaCreateDatabase_CreatedDatabaseSchema = z.object({
|
|
|
40
40
|
isDefault: z.boolean().describe("True if this is the default database for the project.").nullable(),
|
|
41
41
|
connectionString: z.string().describe("Primary Prisma connection string for use with Prisma Client.").nullable(),
|
|
42
42
|
directConnection: PrismaCreateDatabase_DirectConnectionSchema.nullable().optional()
|
|
43
|
-
}).describe("Complete database object returned after creation.");
|
|
43
|
+
}).passthrough().describe("Complete database object returned after creation.");
|
|
44
44
|
const prismaCreateDatabase = action("PRISMA_CREATE_DATABASE", {
|
|
45
45
|
slug: "prisma-create-database",
|
|
46
46
|
name: "Create Project Database",
|
|
47
47
|
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.",
|
|
48
48
|
input: PrismaCreateDatabaseInput,
|
|
49
|
-
output: z.object({ data: PrismaCreateDatabase_CreatedDatabaseSchema.nullable() }).describe("API response containing newly created database with connection details.")
|
|
49
|
+
output: z.object({ data: PrismaCreateDatabase_CreatedDatabaseSchema.nullable() }).passthrough().describe("API response containing newly created database with connection details.")
|
|
50
50
|
});
|
|
51
51
|
//#endregion
|
|
52
52
|
export { prismaCreateDatabase };
|
|
@@ -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 = 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":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO;CAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uKAAuK;CACjM,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mRAAmR;CAC/S,WAAW,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,kLAAkL,CAAC,CAAC,SAAS;CAC5O,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oLAAoL;AACrN,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,wCAAwC,EAAE,OAAO;CACrD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC3E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;AACpE,CAAC,CAAC,CAAC,SAAS,8BAA8B;
|
|
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}).passthrough().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}).passthrough().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}).passthrough().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}).passthrough().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}).passthrough().describe(\"Complete database object returned after creation.\");\nexport const PrismaCreateDatabaseOutput = z.object({\n data: PrismaCreateDatabase_CreatedDatabaseSchema.nullable(),\n}).passthrough().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":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO;CAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uKAAuK;CACjM,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mRAAmR;CAC/S,WAAW,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,kLAAkL,CAAC,CAAC,SAAS;CAC5O,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oLAAoL;AACrN,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,wCAAwC,EAAE,OAAO;CACrD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC3E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;AACpE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8BAA8B;AACxD,MAAM,8CAA8C,EAAE,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QAAQ,sCAAsC,SAAS;CACvD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CACjH,SAAS,EAAE,MAAM,iCAAiC,CAAC,CAAC,SAAS,uCAAuC;CACpG,SAAS,uCAAuC,SAAS;CACzD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACxE,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAClG,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CAC/G,kBAAkB,4CAA4C,SAAS,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAK7E,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATwC,EAAE,OAAO,EACjD,MAAM,2CAA2C,SAAS,EAC5D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yEAOhB;AACV,CAAC"}
|
|
@@ -8,12 +8,12 @@ const PrismaCreateProjectInput = zod.z.object({
|
|
|
8
8
|
const PrismaCreateProject_RegionInfoSchema = zod.z.object({
|
|
9
9
|
id: zod.z.string().describe("Region identifier (e.g., 'us-east-1').").nullable(),
|
|
10
10
|
name: zod.z.string().describe("Human-readable region name.").nullable()
|
|
11
|
-
}).describe("Database region information.");
|
|
11
|
+
}).passthrough().describe("Database region information.");
|
|
12
12
|
const PrismaCreateProject_DirectConnectionSchema = zod.z.object({
|
|
13
13
|
host: zod.z.string().describe("PostgreSQL host and port (e.g., 'db.prisma.io:5432').").nullable(),
|
|
14
14
|
pass: zod.z.string().describe("PostgreSQL password (secure key).").nullable(),
|
|
15
15
|
user: zod.z.string().describe("PostgreSQL username (tenant ID).").nullable()
|
|
16
|
-
}).describe("Direct PostgreSQL connection credentials for bypassing Prisma Accelerate.");
|
|
16
|
+
}).passthrough().describe("Direct PostgreSQL connection credentials for bypassing Prisma Accelerate.");
|
|
17
17
|
const PrismaCreateProject_ApiKeySchema = zod.z.object({
|
|
18
18
|
id: zod.z.string().describe("Unique API key identifier.").nullable(),
|
|
19
19
|
name: zod.z.string().describe("Human-readable API key name.").nullable(),
|
|
@@ -21,7 +21,7 @@ const PrismaCreateProject_ApiKeySchema = zod.z.object({
|
|
|
21
21
|
createdAt: zod.z.string().describe("ISO 8601 creation timestamp.").nullable(),
|
|
22
22
|
connectionString: zod.z.string().describe("Database connection string with embedded credentials.").nullable(),
|
|
23
23
|
directConnection: PrismaCreateProject_DirectConnectionSchema.nullable().optional()
|
|
24
|
-
}).describe("Database API key for connection.");
|
|
24
|
+
}).passthrough().describe("Database API key for connection.");
|
|
25
25
|
const PrismaCreateProject_DatabaseSchema = zod.z.object({
|
|
26
26
|
id: zod.z.string().describe("Unique database identifier.").nullable(),
|
|
27
27
|
name: zod.z.string().describe("Database name.").nullable(),
|
|
@@ -33,11 +33,11 @@ const PrismaCreateProject_DatabaseSchema = zod.z.object({
|
|
|
33
33
|
isDefault: zod.z.boolean().describe("True if this is the default database for the project.").nullable(),
|
|
34
34
|
connectionString: zod.z.string().describe("Primary database connection string.").nullable(),
|
|
35
35
|
directConnection: PrismaCreateProject_DirectConnectionSchema.nullable().optional()
|
|
36
|
-
}).describe("Postgres database created with the project.");
|
|
36
|
+
}).passthrough().describe("Postgres database created with the project.");
|
|
37
37
|
const PrismaCreateProject_WorkspaceInfoSchema = zod.z.object({
|
|
38
38
|
id: zod.z.string().describe("Unique workspace ID containing this project.").nullable(),
|
|
39
39
|
name: zod.z.string().describe("Human-readable workspace name.").nullable()
|
|
40
|
-
}).describe("Workspace information in project response.");
|
|
40
|
+
}).passthrough().describe("Workspace information in project response.");
|
|
41
41
|
const PrismaCreateProject_CreatedProjectSchema = zod.z.object({
|
|
42
42
|
id: zod.z.string().describe("Unique project identifier for future operations.").nullable(),
|
|
43
43
|
name: zod.z.string().describe("Project name as specified in request.").nullable(),
|
|
@@ -45,8 +45,8 @@ const PrismaCreateProject_CreatedProjectSchema = zod.z.object({
|
|
|
45
45
|
database: PrismaCreateProject_DatabaseSchema.nullable(),
|
|
46
46
|
createdAt: zod.z.string().describe("ISO 8601 creation timestamp.").nullable(),
|
|
47
47
|
workspace: PrismaCreateProject_WorkspaceInfoSchema.nullable()
|
|
48
|
-
}).describe("Complete project object returned after creation.");
|
|
49
|
-
const PrismaCreateProjectOutput = zod.z.object({ data: PrismaCreateProject_CreatedProjectSchema.nullable() }).describe("API response containing newly created project with database.");
|
|
48
|
+
}).passthrough().describe("Complete project object returned after creation.");
|
|
49
|
+
const PrismaCreateProjectOutput = zod.z.object({ data: PrismaCreateProject_CreatedProjectSchema.nullable() }).passthrough().describe("API response containing newly created project with database.");
|
|
50
50
|
const prismaCreateProject = require_action.action("PRISMA_CREATE_PROJECT", {
|
|
51
51
|
slug: "prisma-create-project",
|
|
52
52
|
name: "Create Prisma Project",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-project.cjs","names":["z","action"],"sources":["../../src/actions/create-project.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaCreateProjectInput = z.object({\n name: z.string().describe(\"Human-readable name for the new project. This will be displayed in UIs and used for identification. Choose descriptive names like 'Production API', 'Dev Environment', etc.\"),\n region: z.string().describe(\"AWS region where the postgres database will be deployed. Available regions: '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.\"),\n}).describe(\"Request parameters for creating a new Prisma project with postgres database.\");\nconst PrismaCreateProject_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 PrismaCreateProject_DirectConnectionSchema = z.object({\n host: z.string().describe(\"PostgreSQL host and port (e.g., 'db.prisma.io:5432').\").nullable(),\n pass: z.string().describe(\"PostgreSQL password (secure key).\").nullable(),\n user: z.string().describe(\"PostgreSQL username (tenant ID).\").nullable(),\n}).describe(\"Direct PostgreSQL connection credentials for bypassing Prisma Accelerate.\");\nconst PrismaCreateProject_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(\"Database connection string with embedded credentials.\").nullable(),\n directConnection: PrismaCreateProject_DirectConnectionSchema.nullable().optional(),\n}).describe(\"Database API key for connection.\");\nconst PrismaCreateProject_DatabaseSchema = z.object({\n id: z.string().describe(\"Unique database identifier.\").nullable(),\n name: z.string().describe(\"Database name.\").nullable(),\n type: z.string().describe(\"Database type, always 'database'.\").nullable(),\n region: PrismaCreateProject_RegionInfoSchema.nullable(),\n status: z.string().describe(\"Current database status (e.g., 'active', 'provisioning').\").nullable(),\n apiKeys: z.array(PrismaCreateProject_ApiKeySchema).describe(\"List of API keys for database access.\"),\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 database connection string.\").nullable(),\n directConnection: PrismaCreateProject_DirectConnectionSchema.nullable().optional(),\n}).describe(\"Postgres database created with the project.\");\nconst PrismaCreateProject_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}).describe(\"Workspace information in project response.\");\nconst PrismaCreateProject_CreatedProjectSchema = z.object({\n id: z.string().describe(\"Unique project identifier for future operations.\").nullable(),\n name: z.string().describe(\"Project name as specified in request.\").nullable(),\n type: z.string().describe(\"Object type, always 'project'.\").nullable(),\n database: PrismaCreateProject_DatabaseSchema.nullable(),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp.\").nullable(),\n workspace: PrismaCreateProject_WorkspaceInfoSchema.nullable(),\n}).describe(\"Complete project object returned after creation.\");\nexport const PrismaCreateProjectOutput = z.object({\n data: PrismaCreateProject_CreatedProjectSchema.nullable(),\n}).describe(\"API response containing newly created project with database.\");\n\nexport const prismaCreateProject = action(\"PRISMA_CREATE_PROJECT\", {\n slug: \"prisma-create-project\",\n name: \"Create Prisma Project\",\n description: \"Create new Prisma project with managed postgres database. Creates project in authenticated user's workspace with postgres database in specified region. Returns complete project details including connection strings and API keys.\",\n input: PrismaCreateProjectInput,\n output: PrismaCreateProjectOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6KAA6K;CACvM,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qOAAqO;AACnQ,CAAC,CAAC,CAAC,SAAS,8EAA8E;AAC1F,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,6BAA6B,CAAC,CAAC,SAAS;AACpE,CAAC,CAAC,CAAC,SAAS,8BAA8B;
|
|
1
|
+
{"version":3,"file":"create-project.cjs","names":["z","action"],"sources":["../../src/actions/create-project.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaCreateProjectInput = z.object({\n name: z.string().describe(\"Human-readable name for the new project. This will be displayed in UIs and used for identification. Choose descriptive names like 'Production API', 'Dev Environment', etc.\"),\n region: z.string().describe(\"AWS region where the postgres database will be deployed. Available regions: '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.\"),\n}).describe(\"Request parameters for creating a new Prisma project with postgres database.\");\nconst PrismaCreateProject_RegionInfoSchema = z.object({\n id: z.string().describe(\"Region identifier (e.g., 'us-east-1').\").nullable(),\n name: z.string().describe(\"Human-readable region name.\").nullable(),\n}).passthrough().describe(\"Database region information.\");\nconst PrismaCreateProject_DirectConnectionSchema = z.object({\n host: z.string().describe(\"PostgreSQL host and port (e.g., 'db.prisma.io:5432').\").nullable(),\n pass: z.string().describe(\"PostgreSQL password (secure key).\").nullable(),\n user: z.string().describe(\"PostgreSQL username (tenant ID).\").nullable(),\n}).passthrough().describe(\"Direct PostgreSQL connection credentials for bypassing Prisma Accelerate.\");\nconst PrismaCreateProject_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(\"Database connection string with embedded credentials.\").nullable(),\n directConnection: PrismaCreateProject_DirectConnectionSchema.nullable().optional(),\n}).passthrough().describe(\"Database API key for connection.\");\nconst PrismaCreateProject_DatabaseSchema = z.object({\n id: z.string().describe(\"Unique database identifier.\").nullable(),\n name: z.string().describe(\"Database name.\").nullable(),\n type: z.string().describe(\"Database type, always 'database'.\").nullable(),\n region: PrismaCreateProject_RegionInfoSchema.nullable(),\n status: z.string().describe(\"Current database status (e.g., 'active', 'provisioning').\").nullable(),\n apiKeys: z.array(PrismaCreateProject_ApiKeySchema).describe(\"List of API keys for database access.\"),\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 database connection string.\").nullable(),\n directConnection: PrismaCreateProject_DirectConnectionSchema.nullable().optional(),\n}).passthrough().describe(\"Postgres database created with the project.\");\nconst PrismaCreateProject_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 in project response.\");\nconst PrismaCreateProject_CreatedProjectSchema = z.object({\n id: z.string().describe(\"Unique project identifier for future operations.\").nullable(),\n name: z.string().describe(\"Project name as specified in request.\").nullable(),\n type: z.string().describe(\"Object type, always 'project'.\").nullable(),\n database: PrismaCreateProject_DatabaseSchema.nullable(),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp.\").nullable(),\n workspace: PrismaCreateProject_WorkspaceInfoSchema.nullable(),\n}).passthrough().describe(\"Complete project object returned after creation.\");\nexport const PrismaCreateProjectOutput = z.object({\n data: PrismaCreateProject_CreatedProjectSchema.nullable(),\n}).passthrough().describe(\"API response containing newly created project with database.\");\n\nexport const prismaCreateProject = action(\"PRISMA_CREATE_PROJECT\", {\n slug: \"prisma-create-project\",\n name: \"Create Prisma Project\",\n description: \"Create new Prisma project with managed postgres database. Creates project in authenticated user's workspace with postgres database in specified region. Returns complete project details including connection strings and API keys.\",\n input: PrismaCreateProjectInput,\n output: PrismaCreateProjectOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6KAA6K;CACvM,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qOAAqO;AACnQ,CAAC,CAAC,CAAC,SAAS,8EAA8E;AAC1F,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,6BAA6B,CAAC,CAAC,SAAS;AACpE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8BAA8B;AACxD,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CA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AM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -17,7 +17,7 @@ declare const PrismaCreateProjectOutput: z.ZodObject<{
|
|
|
17
17
|
region: z.ZodNullable<z.ZodObject<{
|
|
18
18
|
id: z.ZodNullable<z.ZodString>;
|
|
19
19
|
name: z.ZodNullable<z.ZodString>;
|
|
20
|
-
}, z.core.$
|
|
20
|
+
}, z.core.$loose>>;
|
|
21
21
|
status: z.ZodNullable<z.ZodString>;
|
|
22
22
|
apiKeys: z.ZodArray<z.ZodObject<{
|
|
23
23
|
id: z.ZodNullable<z.ZodString>;
|
|
@@ -29,8 +29,8 @@ declare const PrismaCreateProjectOutput: z.ZodObject<{
|
|
|
29
29
|
host: z.ZodNullable<z.ZodString>;
|
|
30
30
|
pass: z.ZodNullable<z.ZodString>;
|
|
31
31
|
user: z.ZodNullable<z.ZodString>;
|
|
32
|
-
}, z.core.$
|
|
33
|
-
}, z.core.$
|
|
32
|
+
}, z.core.$loose>>>;
|
|
33
|
+
}, z.core.$loose>>;
|
|
34
34
|
createdAt: z.ZodNullable<z.ZodString>;
|
|
35
35
|
isDefault: z.ZodNullable<z.ZodBoolean>;
|
|
36
36
|
connectionString: z.ZodNullable<z.ZodString>;
|
|
@@ -38,15 +38,15 @@ declare const PrismaCreateProjectOutput: z.ZodObject<{
|
|
|
38
38
|
host: z.ZodNullable<z.ZodString>;
|
|
39
39
|
pass: z.ZodNullable<z.ZodString>;
|
|
40
40
|
user: z.ZodNullable<z.ZodString>;
|
|
41
|
-
}, z.core.$
|
|
42
|
-
}, z.core.$
|
|
41
|
+
}, z.core.$loose>>>;
|
|
42
|
+
}, z.core.$loose>>;
|
|
43
43
|
createdAt: z.ZodNullable<z.ZodString>;
|
|
44
44
|
workspace: z.ZodNullable<z.ZodObject<{
|
|
45
45
|
id: z.ZodNullable<z.ZodString>;
|
|
46
46
|
name: z.ZodNullable<z.ZodString>;
|
|
47
|
-
}, z.core.$
|
|
48
|
-
}, z.core.$
|
|
49
|
-
}, z.core.$
|
|
47
|
+
}, z.core.$loose>>;
|
|
48
|
+
}, z.core.$loose>>;
|
|
49
|
+
}, z.core.$loose>;
|
|
50
50
|
declare const prismaCreateProject: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
51
51
|
name: string;
|
|
52
52
|
region: string;
|
|
@@ -17,7 +17,7 @@ declare const PrismaCreateProjectOutput: z.ZodObject<{
|
|
|
17
17
|
region: z.ZodNullable<z.ZodObject<{
|
|
18
18
|
id: z.ZodNullable<z.ZodString>;
|
|
19
19
|
name: z.ZodNullable<z.ZodString>;
|
|
20
|
-
}, z.core.$
|
|
20
|
+
}, z.core.$loose>>;
|
|
21
21
|
status: z.ZodNullable<z.ZodString>;
|
|
22
22
|
apiKeys: z.ZodArray<z.ZodObject<{
|
|
23
23
|
id: z.ZodNullable<z.ZodString>;
|
|
@@ -29,8 +29,8 @@ declare const PrismaCreateProjectOutput: z.ZodObject<{
|
|
|
29
29
|
host: z.ZodNullable<z.ZodString>;
|
|
30
30
|
pass: z.ZodNullable<z.ZodString>;
|
|
31
31
|
user: z.ZodNullable<z.ZodString>;
|
|
32
|
-
}, z.core.$
|
|
33
|
-
}, z.core.$
|
|
32
|
+
}, z.core.$loose>>>;
|
|
33
|
+
}, z.core.$loose>>;
|
|
34
34
|
createdAt: z.ZodNullable<z.ZodString>;
|
|
35
35
|
isDefault: z.ZodNullable<z.ZodBoolean>;
|
|
36
36
|
connectionString: z.ZodNullable<z.ZodString>;
|
|
@@ -38,15 +38,15 @@ declare const PrismaCreateProjectOutput: z.ZodObject<{
|
|
|
38
38
|
host: z.ZodNullable<z.ZodString>;
|
|
39
39
|
pass: z.ZodNullable<z.ZodString>;
|
|
40
40
|
user: z.ZodNullable<z.ZodString>;
|
|
41
|
-
}, z.core.$
|
|
42
|
-
}, z.core.$
|
|
41
|
+
}, z.core.$loose>>>;
|
|
42
|
+
}, z.core.$loose>>;
|
|
43
43
|
createdAt: z.ZodNullable<z.ZodString>;
|
|
44
44
|
workspace: z.ZodNullable<z.ZodObject<{
|
|
45
45
|
id: z.ZodNullable<z.ZodString>;
|
|
46
46
|
name: z.ZodNullable<z.ZodString>;
|
|
47
|
-
}, z.core.$
|
|
48
|
-
}, z.core.$
|
|
49
|
-
}, z.core.$
|
|
47
|
+
}, z.core.$loose>>;
|
|
48
|
+
}, z.core.$loose>>;
|
|
49
|
+
}, z.core.$loose>;
|
|
50
50
|
declare const prismaCreateProject: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
51
51
|
name: string;
|
|
52
52
|
region: string;
|
|
@@ -8,12 +8,12 @@ const PrismaCreateProjectInput = z.object({
|
|
|
8
8
|
const PrismaCreateProject_RegionInfoSchema = z.object({
|
|
9
9
|
id: z.string().describe("Region identifier (e.g., 'us-east-1').").nullable(),
|
|
10
10
|
name: z.string().describe("Human-readable region name.").nullable()
|
|
11
|
-
}).describe("Database region information.");
|
|
11
|
+
}).passthrough().describe("Database region information.");
|
|
12
12
|
const PrismaCreateProject_DirectConnectionSchema = z.object({
|
|
13
13
|
host: z.string().describe("PostgreSQL host and port (e.g., 'db.prisma.io:5432').").nullable(),
|
|
14
14
|
pass: z.string().describe("PostgreSQL password (secure key).").nullable(),
|
|
15
15
|
user: z.string().describe("PostgreSQL username (tenant ID).").nullable()
|
|
16
|
-
}).describe("Direct PostgreSQL connection credentials for bypassing Prisma Accelerate.");
|
|
16
|
+
}).passthrough().describe("Direct PostgreSQL connection credentials for bypassing Prisma Accelerate.");
|
|
17
17
|
const PrismaCreateProject_ApiKeySchema = z.object({
|
|
18
18
|
id: z.string().describe("Unique API key identifier.").nullable(),
|
|
19
19
|
name: z.string().describe("Human-readable API key name.").nullable(),
|
|
@@ -21,7 +21,7 @@ const PrismaCreateProject_ApiKeySchema = z.object({
|
|
|
21
21
|
createdAt: z.string().describe("ISO 8601 creation timestamp.").nullable(),
|
|
22
22
|
connectionString: z.string().describe("Database connection string with embedded credentials.").nullable(),
|
|
23
23
|
directConnection: PrismaCreateProject_DirectConnectionSchema.nullable().optional()
|
|
24
|
-
}).describe("Database API key for connection.");
|
|
24
|
+
}).passthrough().describe("Database API key for connection.");
|
|
25
25
|
const PrismaCreateProject_DatabaseSchema = z.object({
|
|
26
26
|
id: z.string().describe("Unique database identifier.").nullable(),
|
|
27
27
|
name: z.string().describe("Database name.").nullable(),
|
|
@@ -33,11 +33,11 @@ const PrismaCreateProject_DatabaseSchema = z.object({
|
|
|
33
33
|
isDefault: z.boolean().describe("True if this is the default database for the project.").nullable(),
|
|
34
34
|
connectionString: z.string().describe("Primary database connection string.").nullable(),
|
|
35
35
|
directConnection: PrismaCreateProject_DirectConnectionSchema.nullable().optional()
|
|
36
|
-
}).describe("Postgres database created with the project.");
|
|
36
|
+
}).passthrough().describe("Postgres database created with the project.");
|
|
37
37
|
const PrismaCreateProject_WorkspaceInfoSchema = z.object({
|
|
38
38
|
id: z.string().describe("Unique workspace ID containing this project.").nullable(),
|
|
39
39
|
name: z.string().describe("Human-readable workspace name.").nullable()
|
|
40
|
-
}).describe("Workspace information in project response.");
|
|
40
|
+
}).passthrough().describe("Workspace information in project response.");
|
|
41
41
|
const PrismaCreateProject_CreatedProjectSchema = z.object({
|
|
42
42
|
id: z.string().describe("Unique project identifier for future operations.").nullable(),
|
|
43
43
|
name: z.string().describe("Project name as specified in request.").nullable(),
|
|
@@ -45,13 +45,13 @@ const PrismaCreateProject_CreatedProjectSchema = z.object({
|
|
|
45
45
|
database: PrismaCreateProject_DatabaseSchema.nullable(),
|
|
46
46
|
createdAt: z.string().describe("ISO 8601 creation timestamp.").nullable(),
|
|
47
47
|
workspace: PrismaCreateProject_WorkspaceInfoSchema.nullable()
|
|
48
|
-
}).describe("Complete project object returned after creation.");
|
|
48
|
+
}).passthrough().describe("Complete project object returned after creation.");
|
|
49
49
|
const prismaCreateProject = action("PRISMA_CREATE_PROJECT", {
|
|
50
50
|
slug: "prisma-create-project",
|
|
51
51
|
name: "Create Prisma Project",
|
|
52
52
|
description: "Create new Prisma project with managed postgres database. Creates project in authenticated user's workspace with postgres database in specified region. Returns complete project details including connection strings and API keys.",
|
|
53
53
|
input: PrismaCreateProjectInput,
|
|
54
|
-
output: z.object({ data: PrismaCreateProject_CreatedProjectSchema.nullable() }).describe("API response containing newly created project with database.")
|
|
54
|
+
output: z.object({ data: PrismaCreateProject_CreatedProjectSchema.nullable() }).passthrough().describe("API response containing newly created project with database.")
|
|
55
55
|
});
|
|
56
56
|
//#endregion
|
|
57
57
|
export { prismaCreateProject };
|