@keystrokehq/prisma 0.1.2 → 0.1.4
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 +16 -4
- package/dist/actions/create-connection.d.mts +16 -4
- 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 +20 -8
- package/dist/actions/create-database.d.mts +20 -8
- 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 +21 -9
- package/dist/actions/create-project.d.mts +21 -9
- 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 +14 -2
- package/dist/actions/delete-connection.d.cts.map +1 -1
- package/dist/actions/delete-connection.d.mts +14 -2
- 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 +14 -2
- package/dist/actions/delete-database.d.mts +14 -2
- 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 +14 -2
- package/dist/actions/delete-project.d.cts.map +1 -1
- package/dist/actions/delete-project.d.mts +14 -2
- 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 +15 -3
- package/dist/actions/execute-sql-command.d.cts.map +1 -1
- package/dist/actions/execute-sql-command.d.mts +15 -3
- package/dist/actions/execute-sql-command.d.mts.map +1 -1
- 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 +15 -3
- package/dist/actions/execute-sql-query.d.cts.map +1 -1
- package/dist/actions/execute-sql-query.d.mts +15 -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 +4 -4
- package/dist/actions/get-database-usage.cjs.map +1 -1
- package/dist/actions/get-database-usage.d.cts +18 -6
- package/dist/actions/get-database-usage.d.mts +18 -6
- 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 +17 -5
- package/dist/actions/get-database.d.mts +17 -5
- 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 +16 -4
- package/dist/actions/get-project.d.mts +16 -4
- 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 +17 -5
- package/dist/actions/inspect-database-schema.d.mts +17 -5
- 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 +15 -3
- package/dist/actions/list-accelerate-regions.d.cts.map +1 -1
- package/dist/actions/list-accelerate-regions.d.mts +15 -3
- package/dist/actions/list-accelerate-regions.d.mts.map +1 -1
- 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 +17 -5
- package/dist/actions/list-backups.d.mts +17 -5
- 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 +17 -5
- package/dist/actions/list-connections.d.mts +17 -5
- 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 +18 -6
- package/dist/actions/list-databases.d.mts +18 -6
- 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 +15 -3
- package/dist/actions/list-postgres-regions.d.cts.map +1 -1
- package/dist/actions/list-postgres-regions.d.mts +15 -3
- package/dist/actions/list-postgres-regions.d.mts.map +1 -1
- 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 +17 -5
- package/dist/actions/list-projects.d.mts +17 -5
- 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 +18 -6
- package/dist/actions/list-workspace-integrations.d.mts +18 -6
- 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 +16 -4
- package/dist/actions/list-workspaces.d.mts +16 -4
- 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 +17 -5
- package/dist/actions/restore-backup.d.mts +17 -5
- 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 +14 -2
- package/dist/actions/transfer-project.d.mts +14 -2
- package/dist/actions/transfer-project.mjs +1 -1
- package/dist/actions/transfer-project.mjs.map +1 -1
- package/dist/app.cjs +5 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +9 -1
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +9 -1
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +3 -1
- package/dist/app.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -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,19 +38,31 @@ 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;
|
|
53
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
53
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"prisma", z.ZodObject<{
|
|
54
|
+
connectionId: z.ZodString;
|
|
55
|
+
entityId: z.ZodString;
|
|
56
|
+
instanceId: z.ZodString;
|
|
57
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
58
|
+
accessToken: z.ZodString;
|
|
59
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"prisma", z.ZodObject<{
|
|
60
|
+
connectionId: z.ZodString;
|
|
61
|
+
entityId: z.ZodString;
|
|
62
|
+
instanceId: z.ZodString;
|
|
63
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
64
|
+
accessToken: z.ZodString;
|
|
65
|
+
}, z.core.$strip>>]>;
|
|
54
66
|
//#endregion
|
|
55
67
|
export { prismaCreateProject };
|
|
56
68
|
//# sourceMappingURL=create-project.d.mts.map
|
|
@@ -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 };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-project.mjs","names":[],"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,2BAA2B,EAAE,OAAO;CAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6KAA6K;CACvM,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qOAAqO;AACnQ,CAAC,CAAC,CAAC,SAAS,8EAA8E;AAC1F,MAAM,uCAAuC,EAAE,OAAO;CACpD,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-project.mjs","names":[],"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,2BAA2B,EAAE,OAAO;CAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6KAA6K;CACvM,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qOAAqO;AACnQ,CAAC,CAAC,CAAC,SAAS,8EAA8E;AAC1F,MAAM,uCAAuC,EAAE,OAAO;CACpD,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,6CAA6C,EAAE,OAAO;CAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC5F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACxE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;AACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2EAA2E;AACrG,MAAM,mCAAmC,EAAE,OAAO;CAChD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACnE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACxE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACxE,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CACxG,kBAAkB,2CAA2C,SAAS,CAAC,CAAC,SAAS;AACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAAkC;AAC5D,MAAM,qCAAqC,EAAE,OAAO;CAClD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACxE,QAAQ,qCAAqC,SAAS;CACtD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CAClG,SAAS,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,uCAAuC;CACnG,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,qCAAqC,CAAC,CAAC,SAAS;CACtF,kBAAkB,2CAA2C,SAAS,CAAC,CAAC,SAAS;AACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AACvE,MAAM,0CAA0C,EAAE,OAAO;CACvD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACjF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;AACvE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AACtE,MAAM,2CAA2C,EAAE,OAAO;CACxD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACrF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC5E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACrE,UAAU,mCAAmC,SAAS;CACtD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACxE,WAAW,wCAAwC,SAAS;AAC9D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAK5E,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATuC,EAAE,OAAO,EAChD,MAAM,yCAAyC,SAAS,EAC1D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8DAOhB;AACV,CAAC"}
|
|
@@ -2,7 +2,7 @@ const require_action = require("../action.cjs");
|
|
|
2
2
|
let zod = require("zod");
|
|
3
3
|
//#region src/actions/delete-connection.ts
|
|
4
4
|
const PrismaDeleteConnectionInput = zod.z.object({ id: zod.z.string().describe("Unique connection identifier to delete (format: 'con_xxxxx'). WARNING: This permanently revokes API key access to the database. Any applications using this connection string will lose access immediately. This action cannot be undone - ensure no critical systems depend on this connection.") }).describe("Request parameters for deleting a database connection.");
|
|
5
|
-
const PrismaDeleteConnectionOutput = zod.z.
|
|
5
|
+
const PrismaDeleteConnectionOutput = zod.z.record(zod.z.string(), zod.z.unknown()).describe("Empty response for successful connection deletion.");
|
|
6
6
|
const prismaDeleteConnection = require_action.action("PRISMA_DELETE_CONNECTION", {
|
|
7
7
|
slug: "prisma-delete-connection",
|
|
8
8
|
name: "Delete Database Connection",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-connection.cjs","names":["z","action"],"sources":["../../src/actions/delete-connection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaDeleteConnectionInput = z.object({\n id: z.string().describe(\"Unique connection identifier to delete (format: 'con_xxxxx'). WARNING: This permanently revokes API key access to the database. Any applications using this connection string will lose access immediately. This action cannot be undone - ensure no critical systems depend on this connection.\"),\n}).describe(\"Request parameters for deleting a database connection.\");\nexport const PrismaDeleteConnectionOutput = z.
|
|
1
|
+
{"version":3,"file":"delete-connection.cjs","names":["z","action"],"sources":["../../src/actions/delete-connection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaDeleteConnectionInput = z.object({\n id: z.string().describe(\"Unique connection identifier to delete (format: 'con_xxxxx'). WARNING: This permanently revokes API key access to the database. Any applications using this connection string will lose access immediately. This action cannot be undone - ensure no critical systems depend on this connection.\"),\n}).describe(\"Request parameters for deleting a database connection.\");\nexport const PrismaDeleteConnectionOutput = z.record(z.string(), z.unknown()).describe(\"Empty response for successful connection deletion.\");\n\nexport const prismaDeleteConnection = action(\"PRISMA_DELETE_CONNECTION\", {\n slug: \"prisma-delete-connection\",\n name: \"Delete Database Connection\",\n description: \"Permanently delete database connection and revoke API key access. WARNING: This immediately revokes database access for any applications using this connection string. Ensure no critical systems depend on this connection.\",\n input: PrismaDeleteConnectionInput,\n output: PrismaDeleteConnectionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kSAAkS,EAC5T,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAa,+BAA+BA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAE3I,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -4,10 +4,22 @@ import { z } from "zod";
|
|
|
4
4
|
declare const PrismaDeleteConnectionInput: z.ZodObject<{
|
|
5
5
|
id: z.ZodString;
|
|
6
6
|
}, z.core.$strip>;
|
|
7
|
-
declare const PrismaDeleteConnectionOutput: z.
|
|
7
|
+
declare const PrismaDeleteConnectionOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
8
8
|
declare const prismaDeleteConnection: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
9
9
|
id: string;
|
|
10
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
10
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"prisma", z.ZodObject<{
|
|
11
|
+
connectionId: z.ZodString;
|
|
12
|
+
entityId: z.ZodString;
|
|
13
|
+
instanceId: z.ZodString;
|
|
14
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
15
|
+
accessToken: z.ZodString;
|
|
16
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"prisma", z.ZodObject<{
|
|
17
|
+
connectionId: z.ZodString;
|
|
18
|
+
entityId: z.ZodString;
|
|
19
|
+
instanceId: z.ZodString;
|
|
20
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
21
|
+
accessToken: z.ZodString;
|
|
22
|
+
}, z.core.$strip>>]>;
|
|
11
23
|
//#endregion
|
|
12
24
|
export { prismaDeleteConnection };
|
|
13
25
|
//# sourceMappingURL=delete-connection.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-connection.d.cts","names":[],"sources":["../../src/actions/delete-connection.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAG3B,4BAAA,EAA4B,CAAA,CAAA,SAAA,
|
|
1
|
+
{"version":3,"file":"delete-connection.d.cts","names":[],"sources":["../../src/actions/delete-connection.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAG3B,4BAAA,EAA4B,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAE5B,sBAAA,gCAAsB,wBAAA"}
|
|
@@ -4,10 +4,22 @@ import { z } from "zod";
|
|
|
4
4
|
declare const PrismaDeleteConnectionInput: z.ZodObject<{
|
|
5
5
|
id: z.ZodString;
|
|
6
6
|
}, z.core.$strip>;
|
|
7
|
-
declare const PrismaDeleteConnectionOutput: z.
|
|
7
|
+
declare const PrismaDeleteConnectionOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
8
8
|
declare const prismaDeleteConnection: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
9
9
|
id: string;
|
|
10
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
10
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"prisma", z.ZodObject<{
|
|
11
|
+
connectionId: z.ZodString;
|
|
12
|
+
entityId: z.ZodString;
|
|
13
|
+
instanceId: z.ZodString;
|
|
14
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
15
|
+
accessToken: z.ZodString;
|
|
16
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"prisma", z.ZodObject<{
|
|
17
|
+
connectionId: z.ZodString;
|
|
18
|
+
entityId: z.ZodString;
|
|
19
|
+
instanceId: z.ZodString;
|
|
20
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
21
|
+
accessToken: z.ZodString;
|
|
22
|
+
}, z.core.$strip>>]>;
|
|
11
23
|
//#endregion
|
|
12
24
|
export { prismaDeleteConnection };
|
|
13
25
|
//# sourceMappingURL=delete-connection.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-connection.d.mts","names":[],"sources":["../../src/actions/delete-connection.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAG3B,4BAAA,EAA4B,CAAA,CAAA,SAAA,
|
|
1
|
+
{"version":3,"file":"delete-connection.d.mts","names":[],"sources":["../../src/actions/delete-connection.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAG3B,4BAAA,EAA4B,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAE5B,sBAAA,gCAAsB,wBAAA"}
|
|
@@ -5,7 +5,7 @@ const prismaDeleteConnection = action("PRISMA_DELETE_CONNECTION", {
|
|
|
5
5
|
name: "Delete Database Connection",
|
|
6
6
|
description: "Permanently delete database connection and revoke API key access. WARNING: This immediately revokes database access for any applications using this connection string. Ensure no critical systems depend on this connection.",
|
|
7
7
|
input: z.object({ id: z.string().describe("Unique connection identifier to delete (format: 'con_xxxxx'). WARNING: This permanently revokes API key access to the database. Any applications using this connection string will lose access immediately. This action cannot be undone - ensure no critical systems depend on this connection.") }).describe("Request parameters for deleting a database connection."),
|
|
8
|
-
output: z.
|
|
8
|
+
output: z.record(z.string(), z.unknown()).describe("Empty response for successful connection deletion.")
|
|
9
9
|
});
|
|
10
10
|
//#endregion
|
|
11
11
|
export { prismaDeleteConnection };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-connection.mjs","names":[],"sources":["../../src/actions/delete-connection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaDeleteConnectionInput = z.object({\n id: z.string().describe(\"Unique connection identifier to delete (format: 'con_xxxxx'). WARNING: This permanently revokes API key access to the database. Any applications using this connection string will lose access immediately. This action cannot be undone - ensure no critical systems depend on this connection.\"),\n}).describe(\"Request parameters for deleting a database connection.\");\nexport const PrismaDeleteConnectionOutput = z.
|
|
1
|
+
{"version":3,"file":"delete-connection.mjs","names":[],"sources":["../../src/actions/delete-connection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaDeleteConnectionInput = z.object({\n id: z.string().describe(\"Unique connection identifier to delete (format: 'con_xxxxx'). WARNING: This permanently revokes API key access to the database. Any applications using this connection string will lose access immediately. This action cannot be undone - ensure no critical systems depend on this connection.\"),\n}).describe(\"Request parameters for deleting a database connection.\");\nexport const PrismaDeleteConnectionOutput = z.record(z.string(), z.unknown()).describe(\"Empty response for successful connection deletion.\");\n\nexport const prismaDeleteConnection = action(\"PRISMA_DELETE_CONNECTION\", {\n slug: \"prisma-delete-connection\",\n name: \"Delete Database Connection\",\n description: \"Permanently delete database connection and revoke API key access. WARNING: This immediately revokes database access for any applications using this connection string. Ensure no critical systems depend on this connection.\",\n input: PrismaDeleteConnectionInput,\n output: PrismaDeleteConnectionOutput,\n});\n"],"mappings":";;AASA,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OATyC,EAAE,OAAO,EAClD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kSAAkS,EAC5T,CAAC,CAAC,CAAC,SAAS,wDAOH;CACP,QAP0C,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oDAO7E;AACV,CAAC"}
|
|
@@ -2,7 +2,7 @@ const require_action = require("../action.cjs");
|
|
|
2
2
|
let zod = require("zod");
|
|
3
3
|
//#region src/actions/delete-database.ts
|
|
4
4
|
const PrismaDeleteDatabaseInput = zod.z.object({ databaseId: zod.z.string().describe("Unique database identifier to delete (format: 'db_xxxxx'). WARNING: This permanently deletes the database and all stored data. Default databases typically cannot be deleted. This action cannot be undone. Ensure all important data is backed up before deletion.") }).describe("Request parameters for deleting a database.");
|
|
5
|
-
const PrismaDeleteDatabaseOutput = zod.z.object({ message: zod.z.string().describe("Confirmation message indicating successful database deletion.").nullable() }).describe("Response containing deletion confirmation message.");
|
|
5
|
+
const PrismaDeleteDatabaseOutput = zod.z.object({ message: zod.z.string().describe("Confirmation message indicating successful database deletion.").nullable() }).passthrough().describe("Response containing deletion confirmation message.");
|
|
6
6
|
const prismaDeleteDatabase = require_action.action("PRISMA_DELETE_DATABASE", {
|
|
7
7
|
slug: "prisma-delete-database",
|
|
8
8
|
name: "Delete Prisma Database",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-database.cjs","names":["z","action"],"sources":["../../src/actions/delete-database.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaDeleteDatabaseInput = z.object({\n databaseId: z.string().describe(\"Unique database identifier to delete (format: 'db_xxxxx'). WARNING: This permanently deletes the database and all stored data. Default databases typically cannot be deleted. This action cannot be undone. Ensure all important data is backed up before deletion.\"),\n}).describe(\"Request parameters for deleting a database.\");\nexport const PrismaDeleteDatabaseOutput = z.object({\n message: z.string().describe(\"Confirmation message indicating successful database deletion.\").nullable(),\n}).describe(\"Response containing deletion confirmation message.\");\n\nexport const prismaDeleteDatabase = action(\"PRISMA_DELETE_DATABASE\", {\n slug: \"prisma-delete-database\",\n name: \"Delete Prisma Database\",\n description: \"Permanently delete Prisma database and all stored data. WARNING: This action cannot be undone. All data in the database will be permanently destroyed. Default databases typically cannot be deleted.\",\n input: PrismaDeleteDatabaseInput,\n output: PrismaDeleteDatabaseOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qQAAqQ,EACvS,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,EACzG,CAAC,CAAC,CAAC,SAAS,oDAAoD;
|
|
1
|
+
{"version":3,"file":"delete-database.cjs","names":["z","action"],"sources":["../../src/actions/delete-database.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaDeleteDatabaseInput = z.object({\n databaseId: z.string().describe(\"Unique database identifier to delete (format: 'db_xxxxx'). WARNING: This permanently deletes the database and all stored data. Default databases typically cannot be deleted. This action cannot be undone. Ensure all important data is backed up before deletion.\"),\n}).describe(\"Request parameters for deleting a database.\");\nexport const PrismaDeleteDatabaseOutput = z.object({\n message: z.string().describe(\"Confirmation message indicating successful database deletion.\").nullable(),\n}).passthrough().describe(\"Response containing deletion confirmation message.\");\n\nexport const prismaDeleteDatabase = action(\"PRISMA_DELETE_DATABASE\", {\n slug: \"prisma-delete-database\",\n name: \"Delete Prisma Database\",\n description: \"Permanently delete Prisma database and all stored data. WARNING: This action cannot be undone. All data in the database will be permanently destroyed. Default databases typically cannot be deleted.\",\n input: PrismaDeleteDatabaseInput,\n output: PrismaDeleteDatabaseOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qQAAqQ,EACvS,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,EACzG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAE9E,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -6,10 +6,22 @@ declare const PrismaDeleteDatabaseInput: z.ZodObject<{
|
|
|
6
6
|
}, z.core.$strip>;
|
|
7
7
|
declare const PrismaDeleteDatabaseOutput: z.ZodObject<{
|
|
8
8
|
message: z.ZodNullable<z.ZodString>;
|
|
9
|
-
}, z.core.$
|
|
9
|
+
}, z.core.$loose>;
|
|
10
10
|
declare const prismaDeleteDatabase: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
11
11
|
databaseId: string;
|
|
12
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
12
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"prisma", z.ZodObject<{
|
|
13
|
+
connectionId: z.ZodString;
|
|
14
|
+
entityId: z.ZodString;
|
|
15
|
+
instanceId: z.ZodString;
|
|
16
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
17
|
+
accessToken: z.ZodString;
|
|
18
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"prisma", z.ZodObject<{
|
|
19
|
+
connectionId: z.ZodString;
|
|
20
|
+
entityId: z.ZodString;
|
|
21
|
+
instanceId: z.ZodString;
|
|
22
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
23
|
+
accessToken: z.ZodString;
|
|
24
|
+
}, z.core.$strip>>]>;
|
|
13
25
|
//#endregion
|
|
14
26
|
export { prismaDeleteDatabase };
|
|
15
27
|
//# sourceMappingURL=delete-database.d.cts.map
|
|
@@ -6,10 +6,22 @@ declare const PrismaDeleteDatabaseInput: z.ZodObject<{
|
|
|
6
6
|
}, z.core.$strip>;
|
|
7
7
|
declare const PrismaDeleteDatabaseOutput: z.ZodObject<{
|
|
8
8
|
message: z.ZodNullable<z.ZodString>;
|
|
9
|
-
}, z.core.$
|
|
9
|
+
}, z.core.$loose>;
|
|
10
10
|
declare const prismaDeleteDatabase: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
11
11
|
databaseId: string;
|
|
12
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
12
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"prisma", z.ZodObject<{
|
|
13
|
+
connectionId: z.ZodString;
|
|
14
|
+
entityId: z.ZodString;
|
|
15
|
+
instanceId: z.ZodString;
|
|
16
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
17
|
+
accessToken: z.ZodString;
|
|
18
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"prisma", z.ZodObject<{
|
|
19
|
+
connectionId: z.ZodString;
|
|
20
|
+
entityId: z.ZodString;
|
|
21
|
+
instanceId: z.ZodString;
|
|
22
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
23
|
+
accessToken: z.ZodString;
|
|
24
|
+
}, z.core.$strip>>]>;
|
|
13
25
|
//#endregion
|
|
14
26
|
export { prismaDeleteDatabase };
|
|
15
27
|
//# sourceMappingURL=delete-database.d.mts.map
|
|
@@ -5,7 +5,7 @@ const prismaDeleteDatabase = action("PRISMA_DELETE_DATABASE", {
|
|
|
5
5
|
name: "Delete Prisma Database",
|
|
6
6
|
description: "Permanently delete Prisma database and all stored data. WARNING: This action cannot be undone. All data in the database will be permanently destroyed. Default databases typically cannot be deleted.",
|
|
7
7
|
input: z.object({ databaseId: z.string().describe("Unique database identifier to delete (format: 'db_xxxxx'). WARNING: This permanently deletes the database and all stored data. Default databases typically cannot be deleted. This action cannot be undone. Ensure all important data is backed up before deletion.") }).describe("Request parameters for deleting a database."),
|
|
8
|
-
output: z.object({ message: z.string().describe("Confirmation message indicating successful database deletion.").nullable() }).describe("Response containing deletion confirmation message.")
|
|
8
|
+
output: z.object({ message: z.string().describe("Confirmation message indicating successful database deletion.").nullable() }).passthrough().describe("Response containing deletion confirmation message.")
|
|
9
9
|
});
|
|
10
10
|
//#endregion
|
|
11
11
|
export { prismaDeleteDatabase };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-database.mjs","names":[],"sources":["../../src/actions/delete-database.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaDeleteDatabaseInput = z.object({\n databaseId: z.string().describe(\"Unique database identifier to delete (format: 'db_xxxxx'). WARNING: This permanently deletes the database and all stored data. Default databases typically cannot be deleted. This action cannot be undone. Ensure all important data is backed up before deletion.\"),\n}).describe(\"Request parameters for deleting a database.\");\nexport const PrismaDeleteDatabaseOutput = z.object({\n message: z.string().describe(\"Confirmation message indicating successful database deletion.\").nullable(),\n}).describe(\"Response containing deletion confirmation message.\");\n\nexport const prismaDeleteDatabase = action(\"PRISMA_DELETE_DATABASE\", {\n slug: \"prisma-delete-database\",\n name: \"Delete Prisma Database\",\n description: \"Permanently delete Prisma database and all stored data. WARNING: This action cannot be undone. All data in the database will be permanently destroyed. Default databases typically cannot be deleted.\",\n input: PrismaDeleteDatabaseInput,\n output: PrismaDeleteDatabaseOutput,\n});\n"],"mappings":";;AAWA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAXuC,EAAE,OAAO,EAChD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qQAAqQ,EACvS,CAAC,CAAC,CAAC,SAAS,6CASH;CACP,QATwC,EAAE,OAAO,EACjD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,EACzG,CAAC,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"delete-database.mjs","names":[],"sources":["../../src/actions/delete-database.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaDeleteDatabaseInput = z.object({\n databaseId: z.string().describe(\"Unique database identifier to delete (format: 'db_xxxxx'). WARNING: This permanently deletes the database and all stored data. Default databases typically cannot be deleted. This action cannot be undone. Ensure all important data is backed up before deletion.\"),\n}).describe(\"Request parameters for deleting a database.\");\nexport const PrismaDeleteDatabaseOutput = z.object({\n message: z.string().describe(\"Confirmation message indicating successful database deletion.\").nullable(),\n}).passthrough().describe(\"Response containing deletion confirmation message.\");\n\nexport const prismaDeleteDatabase = action(\"PRISMA_DELETE_DATABASE\", {\n slug: \"prisma-delete-database\",\n name: \"Delete Prisma Database\",\n description: \"Permanently delete Prisma database and all stored data. WARNING: This action cannot be undone. All data in the database will be permanently destroyed. Default databases typically cannot be deleted.\",\n input: PrismaDeleteDatabaseInput,\n output: PrismaDeleteDatabaseOutput,\n});\n"],"mappings":";;AAWA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAXuC,EAAE,OAAO,EAChD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qQAAqQ,EACvS,CAAC,CAAC,CAAC,SAAS,6CASH;CACP,QATwC,EAAE,OAAO,EACjD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,EACzG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAOhB;AACV,CAAC"}
|
|
@@ -2,7 +2,7 @@ const require_action = require("../action.cjs");
|
|
|
2
2
|
let zod = require("zod");
|
|
3
3
|
//#region src/actions/delete-project.ts
|
|
4
4
|
const PrismaDeleteProjectInput = zod.z.object({ id: zod.z.string().describe("Unique project identifier to delete (format: 'proj_xxxxx'). WARNING: This permanently deletes the project and all associated data including databases, environments, and configurations. This action cannot be undone. Ensure all important data is backed up before deletion.") }).describe("Request parameters for deleting a project.");
|
|
5
|
-
const PrismaDeleteProjectOutput = zod.z.
|
|
5
|
+
const PrismaDeleteProjectOutput = zod.z.record(zod.z.string(), zod.z.unknown()).describe("Empty response for successful project deletion.");
|
|
6
6
|
const prismaDeleteProject = require_action.action("PRISMA_DELETE_PROJECT", {
|
|
7
7
|
slug: "prisma-delete-project",
|
|
8
8
|
name: "Delete Prisma Project",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-project.cjs","names":["z","action"],"sources":["../../src/actions/delete-project.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaDeleteProjectInput = z.object({\n id: z.string().describe(\"Unique project identifier to delete (format: 'proj_xxxxx'). WARNING: This permanently deletes the project and all associated data including databases, environments, and configurations. This action cannot be undone. Ensure all important data is backed up before deletion.\"),\n}).describe(\"Request parameters for deleting a project.\");\nexport const PrismaDeleteProjectOutput = z.
|
|
1
|
+
{"version":3,"file":"delete-project.cjs","names":["z","action"],"sources":["../../src/actions/delete-project.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaDeleteProjectInput = z.object({\n id: z.string().describe(\"Unique project identifier to delete (format: 'proj_xxxxx'). WARNING: This permanently deletes the project and all associated data including databases, environments, and configurations. This action cannot be undone. Ensure all important data is backed up before deletion.\"),\n}).describe(\"Request parameters for deleting a project.\");\nexport const PrismaDeleteProjectOutput = z.record(z.string(), z.unknown()).describe(\"Empty response for successful project deletion.\");\n\nexport const prismaDeleteProject = action(\"PRISMA_DELETE_PROJECT\", {\n slug: \"prisma-delete-project\",\n name: \"Delete Prisma Project\",\n description: \"Permanently delete Prisma project and all associated resources. WARNING: This action cannot be undone. All databases, environments, and project data will be permanently destroyed. Use with extreme caution in production environments.\",\n input: PrismaDeleteProjectInput,\n output: PrismaDeleteProjectOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gRAAgR,EAC1S,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAa,4BAA4BA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAErI,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -4,10 +4,22 @@ import { z } from "zod";
|
|
|
4
4
|
declare const PrismaDeleteProjectInput: z.ZodObject<{
|
|
5
5
|
id: z.ZodString;
|
|
6
6
|
}, z.core.$strip>;
|
|
7
|
-
declare const PrismaDeleteProjectOutput: z.
|
|
7
|
+
declare const PrismaDeleteProjectOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
8
8
|
declare const prismaDeleteProject: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
9
9
|
id: string;
|
|
10
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
10
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"prisma", z.ZodObject<{
|
|
11
|
+
connectionId: z.ZodString;
|
|
12
|
+
entityId: z.ZodString;
|
|
13
|
+
instanceId: z.ZodString;
|
|
14
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
15
|
+
accessToken: z.ZodString;
|
|
16
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"prisma", z.ZodObject<{
|
|
17
|
+
connectionId: z.ZodString;
|
|
18
|
+
entityId: z.ZodString;
|
|
19
|
+
instanceId: z.ZodString;
|
|
20
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
21
|
+
accessToken: z.ZodString;
|
|
22
|
+
}, z.core.$strip>>]>;
|
|
11
23
|
//#endregion
|
|
12
24
|
export { prismaDeleteProject };
|
|
13
25
|
//# sourceMappingURL=delete-project.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-project.d.cts","names":[],"sources":["../../src/actions/delete-project.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAGxB,yBAAA,EAAyB,CAAA,CAAA,SAAA,
|
|
1
|
+
{"version":3,"file":"delete-project.d.cts","names":[],"sources":["../../src/actions/delete-project.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAGxB,yBAAA,EAAyB,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAEzB,mBAAA,gCAAmB,wBAAA"}
|
|
@@ -4,10 +4,22 @@ import { z } from "zod";
|
|
|
4
4
|
declare const PrismaDeleteProjectInput: z.ZodObject<{
|
|
5
5
|
id: z.ZodString;
|
|
6
6
|
}, z.core.$strip>;
|
|
7
|
-
declare const PrismaDeleteProjectOutput: z.
|
|
7
|
+
declare const PrismaDeleteProjectOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
8
8
|
declare const prismaDeleteProject: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
9
9
|
id: string;
|
|
10
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
10
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"prisma", z.ZodObject<{
|
|
11
|
+
connectionId: z.ZodString;
|
|
12
|
+
entityId: z.ZodString;
|
|
13
|
+
instanceId: z.ZodString;
|
|
14
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
15
|
+
accessToken: z.ZodString;
|
|
16
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"prisma", z.ZodObject<{
|
|
17
|
+
connectionId: z.ZodString;
|
|
18
|
+
entityId: z.ZodString;
|
|
19
|
+
instanceId: z.ZodString;
|
|
20
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
21
|
+
accessToken: z.ZodString;
|
|
22
|
+
}, z.core.$strip>>]>;
|
|
11
23
|
//#endregion
|
|
12
24
|
export { prismaDeleteProject };
|
|
13
25
|
//# sourceMappingURL=delete-project.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-project.d.mts","names":[],"sources":["../../src/actions/delete-project.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAGxB,yBAAA,EAAyB,CAAA,CAAA,SAAA,
|
|
1
|
+
{"version":3,"file":"delete-project.d.mts","names":[],"sources":["../../src/actions/delete-project.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAGxB,yBAAA,EAAyB,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAEzB,mBAAA,gCAAmB,wBAAA"}
|
|
@@ -5,7 +5,7 @@ const prismaDeleteProject = action("PRISMA_DELETE_PROJECT", {
|
|
|
5
5
|
name: "Delete Prisma Project",
|
|
6
6
|
description: "Permanently delete Prisma project and all associated resources. WARNING: This action cannot be undone. All databases, environments, and project data will be permanently destroyed. Use with extreme caution in production environments.",
|
|
7
7
|
input: z.object({ id: z.string().describe("Unique project identifier to delete (format: 'proj_xxxxx'). WARNING: This permanently deletes the project and all associated data including databases, environments, and configurations. This action cannot be undone. Ensure all important data is backed up before deletion.") }).describe("Request parameters for deleting a project."),
|
|
8
|
-
output: z.
|
|
8
|
+
output: z.record(z.string(), z.unknown()).describe("Empty response for successful project deletion.")
|
|
9
9
|
});
|
|
10
10
|
//#endregion
|
|
11
11
|
export { prismaDeleteProject };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-project.mjs","names":[],"sources":["../../src/actions/delete-project.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaDeleteProjectInput = z.object({\n id: z.string().describe(\"Unique project identifier to delete (format: 'proj_xxxxx'). WARNING: This permanently deletes the project and all associated data including databases, environments, and configurations. This action cannot be undone. Ensure all important data is backed up before deletion.\"),\n}).describe(\"Request parameters for deleting a project.\");\nexport const PrismaDeleteProjectOutput = z.
|
|
1
|
+
{"version":3,"file":"delete-project.mjs","names":[],"sources":["../../src/actions/delete-project.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaDeleteProjectInput = z.object({\n id: z.string().describe(\"Unique project identifier to delete (format: 'proj_xxxxx'). WARNING: This permanently deletes the project and all associated data including databases, environments, and configurations. This action cannot be undone. Ensure all important data is backed up before deletion.\"),\n}).describe(\"Request parameters for deleting a project.\");\nexport const PrismaDeleteProjectOutput = z.record(z.string(), z.unknown()).describe(\"Empty response for successful project deletion.\");\n\nexport const prismaDeleteProject = action(\"PRISMA_DELETE_PROJECT\", {\n slug: \"prisma-delete-project\",\n name: \"Delete Prisma Project\",\n description: \"Permanently delete Prisma project and all associated resources. WARNING: This action cannot be undone. All databases, environments, and project data will be permanently destroyed. Use with extreme caution in production environments.\",\n input: PrismaDeleteProjectInput,\n output: PrismaDeleteProjectOutput,\n});\n"],"mappings":";;AASA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OATsC,EAAE,OAAO,EAC/C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gRAAgR,EAC1S,CAAC,CAAC,CAAC,SAAS,4CAOH;CACP,QAPuC,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iDAO1E;AACV,CAAC"}
|
|
@@ -16,8 +16,8 @@ const PrismaExecuteSqlCommand_SqlCommandResultSchema = zod.z.object({
|
|
|
16
16
|
success: zod.z.boolean().describe("Whether the command executed successfully without errors.").nullable(),
|
|
17
17
|
affectedRows: zod.z.number().int().describe("Number of rows affected by the command operation. For INSERT: number of rows inserted. For UPDATE: number of rows updated. For DELETE: number of rows deleted. For DDL commands (CREATE, ALTER, DROP): typically 0.").nullable(),
|
|
18
18
|
executionTimeMs: zod.z.number().int().describe("Command execution time in milliseconds for performance monitoring.").nullable()
|
|
19
|
-
}).describe("Command execution result with affected rows and metadata.");
|
|
20
|
-
const PrismaExecuteSqlCommandOutput = zod.z.object({ result: PrismaExecuteSqlCommand_SqlCommandResultSchema.nullable() }).describe("API response containing command execution results.");
|
|
19
|
+
}).passthrough().describe("Command execution result with affected rows and metadata.");
|
|
20
|
+
const PrismaExecuteSqlCommandOutput = zod.z.object({ result: PrismaExecuteSqlCommand_SqlCommandResultSchema.nullable() }).passthrough().describe("API response containing command execution results.");
|
|
21
21
|
const prismaExecuteSqlCommand = require_action.action("PRISMA_EXECUTE_SQL_COMMAND", {
|
|
22
22
|
slug: "prisma-execute-sql-command",
|
|
23
23
|
name: "Execute SQL Command",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execute-sql-command.cjs","names":["z","action"],"sources":["../../src/actions/execute-sql-command.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaExecuteSqlCommandInput = z.object({\n command: z.string().describe(\"SQL command to execute against the database (INSERT, UPDATE, DELETE, CREATE TABLE, etc.). Examples: 'INSERT INTO users (name, email) VALUES ($1, $2)', 'UPDATE users SET active = $1 WHERE id = $2', 'DELETE FROM sessions WHERE expires_at < NOW()', 'CREATE TABLE logs (id SERIAL PRIMARY KEY, message TEXT, created_at TIMESTAMP DEFAULT NOW())'\"),\n parameters: z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean(), z.record(z.string(), z.unknown())])).describe(\"Optional array of parameters for parameterized commands using $1, $2, etc. placeholders. Example: command='INSERT INTO users (name, email) VALUES ($1, $2)', parameters=['John Doe', 'john@example.com']. Parameters are automatically escaped to prevent SQL injection.\").optional(),\n connectionString: z.string().describe(\"PostgreSQL connection string for direct database access. Use the standard format: 'postgresql://USER:PASSWORD@HOST:PORT/DATABASE?sslmode=require'. Get credentials from create_connection or create_database response fields: use 'user' as USER, 'pass' as PASSWORD, and 'host' as HOST:PORT. Example: 'postgresql://user:pass@db.prisma.io:5432/postgres?sslmode=require'. Note: Do NOT use Prisma Accelerate URLs (prisma+postgres://accelerate.prisma-data.net/...) - those are for Prisma Client SDK only. Use the direct connection credentials instead.\"),\n}).describe(\"Request parameters for executing SQL commands that modify data.\");\nconst PrismaExecuteSqlCommand_SqlCommandResultSchema = z.object({\n success: z.boolean().describe(\"Whether the command executed successfully without errors.\").nullable(),\n affectedRows: z.number().int().describe(\"Number of rows affected by the command operation. For INSERT: number of rows inserted. For UPDATE: number of rows updated. For DELETE: number of rows deleted. For DDL commands (CREATE, ALTER, DROP): typically 0.\").nullable(),\n executionTimeMs: z.number().int().describe(\"Command execution time in milliseconds for performance monitoring.\").nullable(),\n}).describe(\"Command execution result with affected rows and metadata.\");\nexport const PrismaExecuteSqlCommandOutput = z.object({\n result: PrismaExecuteSqlCommand_SqlCommandResultSchema.nullable(),\n}).describe(\"API response containing command execution results.\");\n\nexport const prismaExecuteSqlCommand = action(\"PRISMA_EXECUTE_SQL_COMMAND\", {\n slug: \"prisma-execute-sql-command\",\n name: \"Execute SQL Command\",\n description: \"Execute SQL commands that modify database data or structure. Runs INSERT, UPDATE, DELETE, CREATE TABLE, and other data modification commands safely through PostgreSQL driver with parameterized query support.\",\n input: PrismaExecuteSqlCommandInput,\n output: PrismaExecuteSqlCommandOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qVAAqV;CAClX,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;EAAGA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,QAAQ;EAAGA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC;CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,0QAA0Q,CAAC,CAAC,SAAS;CACvZ,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,giBAAgiB;AACxkB,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAM,iDAAiDA,IAAAA,EAAE,OAAO;CAC9D,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACpG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qNAAqN,CAAC,CAAC,SAAS;CACxQ,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;AAC5H,CAAC,CAAC,CAAC,SAAS,2DAA2D;
|
|
1
|
+
{"version":3,"file":"execute-sql-command.cjs","names":["z","action"],"sources":["../../src/actions/execute-sql-command.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaExecuteSqlCommandInput = z.object({\n command: z.string().describe(\"SQL command to execute against the database (INSERT, UPDATE, DELETE, CREATE TABLE, etc.). Examples: 'INSERT INTO users (name, email) VALUES ($1, $2)', 'UPDATE users SET active = $1 WHERE id = $2', 'DELETE FROM sessions WHERE expires_at < NOW()', 'CREATE TABLE logs (id SERIAL PRIMARY KEY, message TEXT, created_at TIMESTAMP DEFAULT NOW())'\"),\n parameters: z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean(), z.record(z.string(), z.unknown())])).describe(\"Optional array of parameters for parameterized commands using $1, $2, etc. placeholders. Example: command='INSERT INTO users (name, email) VALUES ($1, $2)', parameters=['John Doe', 'john@example.com']. Parameters are automatically escaped to prevent SQL injection.\").optional(),\n connectionString: z.string().describe(\"PostgreSQL connection string for direct database access. Use the standard format: 'postgresql://USER:PASSWORD@HOST:PORT/DATABASE?sslmode=require'. Get credentials from create_connection or create_database response fields: use 'user' as USER, 'pass' as PASSWORD, and 'host' as HOST:PORT. Example: 'postgresql://user:pass@db.prisma.io:5432/postgres?sslmode=require'. Note: Do NOT use Prisma Accelerate URLs (prisma+postgres://accelerate.prisma-data.net/...) - those are for Prisma Client SDK only. Use the direct connection credentials instead.\"),\n}).describe(\"Request parameters for executing SQL commands that modify data.\");\nconst PrismaExecuteSqlCommand_SqlCommandResultSchema = z.object({\n success: z.boolean().describe(\"Whether the command executed successfully without errors.\").nullable(),\n affectedRows: z.number().int().describe(\"Number of rows affected by the command operation. For INSERT: number of rows inserted. For UPDATE: number of rows updated. For DELETE: number of rows deleted. For DDL commands (CREATE, ALTER, DROP): typically 0.\").nullable(),\n executionTimeMs: z.number().int().describe(\"Command execution time in milliseconds for performance monitoring.\").nullable(),\n}).passthrough().describe(\"Command execution result with affected rows and metadata.\");\nexport const PrismaExecuteSqlCommandOutput = z.object({\n result: PrismaExecuteSqlCommand_SqlCommandResultSchema.nullable(),\n}).passthrough().describe(\"API response containing command execution results.\");\n\nexport const prismaExecuteSqlCommand = action(\"PRISMA_EXECUTE_SQL_COMMAND\", {\n slug: \"prisma-execute-sql-command\",\n name: \"Execute SQL Command\",\n description: \"Execute SQL commands that modify database data or structure. Runs INSERT, UPDATE, DELETE, CREATE TABLE, and other data modification commands safely through PostgreSQL driver with parameterized query support.\",\n input: PrismaExecuteSqlCommandInput,\n output: PrismaExecuteSqlCommandOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qVAAqV;CAClX,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;EAAGA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,QAAQ;EAAGA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC;CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,0QAA0Q,CAAC,CAAC,SAAS;CACvZ,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,giBAAgiB;AACxkB,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAM,iDAAiDA,IAAAA,EAAE,OAAO;CAC9D,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACpG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qNAAqN,CAAC,CAAC,SAAS;CACxQ,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;AAC5H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAA2D;AACrF,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,QAAQ,+CAA+C,SAAS,EAClE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAE9E,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -11,13 +11,25 @@ declare const PrismaExecuteSqlCommandOutput: z.ZodObject<{
|
|
|
11
11
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
12
12
|
affectedRows: z.ZodNullable<z.ZodNumber>;
|
|
13
13
|
executionTimeMs: z.ZodNullable<z.ZodNumber>;
|
|
14
|
-
}, z.core.$
|
|
15
|
-
}, z.core.$
|
|
14
|
+
}, z.core.$loose>>;
|
|
15
|
+
}, z.core.$loose>;
|
|
16
16
|
declare const prismaExecuteSqlCommand: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
17
17
|
command: string;
|
|
18
18
|
connectionString: string;
|
|
19
19
|
parameters?: (string | number | boolean | Record<string, unknown>)[] | undefined;
|
|
20
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
20
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"prisma", z.ZodObject<{
|
|
21
|
+
connectionId: z.ZodString;
|
|
22
|
+
entityId: z.ZodString;
|
|
23
|
+
instanceId: z.ZodString;
|
|
24
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
25
|
+
accessToken: z.ZodString;
|
|
26
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"prisma", z.ZodObject<{
|
|
27
|
+
connectionId: z.ZodString;
|
|
28
|
+
entityId: z.ZodString;
|
|
29
|
+
instanceId: z.ZodString;
|
|
30
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
31
|
+
accessToken: z.ZodString;
|
|
32
|
+
}, z.core.$strip>>]>;
|
|
21
33
|
//#endregion
|
|
22
34
|
export { prismaExecuteSqlCommand };
|
|
23
35
|
//# sourceMappingURL=execute-sql-command.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execute-sql-command.d.cts","names":[],"sources":["../../src/actions/execute-sql-command.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;cAU5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;cAI7B,uBAAA,gCAAuB,wBAAA
|
|
1
|
+
{"version":3,"file":"execute-sql-command.d.cts","names":[],"sources":["../../src/actions/execute-sql-command.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;cAU5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;cAI7B,uBAAA,gCAAuB,wBAAA"}
|
|
@@ -11,13 +11,25 @@ declare const PrismaExecuteSqlCommandOutput: z.ZodObject<{
|
|
|
11
11
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
12
12
|
affectedRows: z.ZodNullable<z.ZodNumber>;
|
|
13
13
|
executionTimeMs: z.ZodNullable<z.ZodNumber>;
|
|
14
|
-
}, z.core.$
|
|
15
|
-
}, z.core.$
|
|
14
|
+
}, z.core.$loose>>;
|
|
15
|
+
}, z.core.$loose>;
|
|
16
16
|
declare const prismaExecuteSqlCommand: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
17
17
|
command: string;
|
|
18
18
|
connectionString: string;
|
|
19
19
|
parameters?: (string | number | boolean | Record<string, unknown>)[] | undefined;
|
|
20
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
20
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"prisma", z.ZodObject<{
|
|
21
|
+
connectionId: z.ZodString;
|
|
22
|
+
entityId: z.ZodString;
|
|
23
|
+
instanceId: z.ZodString;
|
|
24
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
25
|
+
accessToken: z.ZodString;
|
|
26
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"prisma", z.ZodObject<{
|
|
27
|
+
connectionId: z.ZodString;
|
|
28
|
+
entityId: z.ZodString;
|
|
29
|
+
instanceId: z.ZodString;
|
|
30
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
31
|
+
accessToken: z.ZodString;
|
|
32
|
+
}, z.core.$strip>>]>;
|
|
21
33
|
//#endregion
|
|
22
34
|
export { prismaExecuteSqlCommand };
|
|
23
35
|
//# sourceMappingURL=execute-sql-command.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execute-sql-command.d.mts","names":[],"sources":["../../src/actions/execute-sql-command.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;cAU5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;cAI7B,uBAAA,gCAAuB,wBAAA
|
|
1
|
+
{"version":3,"file":"execute-sql-command.d.mts","names":[],"sources":["../../src/actions/execute-sql-command.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;cAU5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;cAI7B,uBAAA,gCAAuB,wBAAA"}
|
|
@@ -16,13 +16,13 @@ const PrismaExecuteSqlCommand_SqlCommandResultSchema = z.object({
|
|
|
16
16
|
success: z.boolean().describe("Whether the command executed successfully without errors.").nullable(),
|
|
17
17
|
affectedRows: z.number().int().describe("Number of rows affected by the command operation. For INSERT: number of rows inserted. For UPDATE: number of rows updated. For DELETE: number of rows deleted. For DDL commands (CREATE, ALTER, DROP): typically 0.").nullable(),
|
|
18
18
|
executionTimeMs: z.number().int().describe("Command execution time in milliseconds for performance monitoring.").nullable()
|
|
19
|
-
}).describe("Command execution result with affected rows and metadata.");
|
|
19
|
+
}).passthrough().describe("Command execution result with affected rows and metadata.");
|
|
20
20
|
const prismaExecuteSqlCommand = action("PRISMA_EXECUTE_SQL_COMMAND", {
|
|
21
21
|
slug: "prisma-execute-sql-command",
|
|
22
22
|
name: "Execute SQL Command",
|
|
23
23
|
description: "Execute SQL commands that modify database data or structure. Runs INSERT, UPDATE, DELETE, CREATE TABLE, and other data modification commands safely through PostgreSQL driver with parameterized query support.",
|
|
24
24
|
input: PrismaExecuteSqlCommandInput,
|
|
25
|
-
output: z.object({ result: PrismaExecuteSqlCommand_SqlCommandResultSchema.nullable() }).describe("API response containing command execution results.")
|
|
25
|
+
output: z.object({ result: PrismaExecuteSqlCommand_SqlCommandResultSchema.nullable() }).passthrough().describe("API response containing command execution results.")
|
|
26
26
|
});
|
|
27
27
|
//#endregion
|
|
28
28
|
export { prismaExecuteSqlCommand };
|