@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.
Files changed (137) hide show
  1. package/dist/actions/create-connection.cjs +3 -3
  2. package/dist/actions/create-connection.cjs.map +1 -1
  3. package/dist/actions/create-connection.d.cts +3 -3
  4. package/dist/actions/create-connection.d.mts +3 -3
  5. package/dist/actions/create-connection.mjs +3 -3
  6. package/dist/actions/create-connection.mjs.map +1 -1
  7. package/dist/actions/create-database.cjs +6 -6
  8. package/dist/actions/create-database.cjs.map +1 -1
  9. package/dist/actions/create-database.d.cts +7 -7
  10. package/dist/actions/create-database.d.mts +7 -7
  11. package/dist/actions/create-database.mjs +6 -6
  12. package/dist/actions/create-database.mjs.map +1 -1
  13. package/dist/actions/create-project.cjs +7 -7
  14. package/dist/actions/create-project.cjs.map +1 -1
  15. package/dist/actions/create-project.d.cts +8 -8
  16. package/dist/actions/create-project.d.mts +8 -8
  17. package/dist/actions/create-project.mjs +7 -7
  18. package/dist/actions/create-project.mjs.map +1 -1
  19. package/dist/actions/delete-connection.cjs +1 -1
  20. package/dist/actions/delete-connection.cjs.map +1 -1
  21. package/dist/actions/delete-connection.d.cts +1 -1
  22. package/dist/actions/delete-connection.d.cts.map +1 -1
  23. package/dist/actions/delete-connection.d.mts +1 -1
  24. package/dist/actions/delete-connection.d.mts.map +1 -1
  25. package/dist/actions/delete-connection.mjs +1 -1
  26. package/dist/actions/delete-connection.mjs.map +1 -1
  27. package/dist/actions/delete-database.cjs +1 -1
  28. package/dist/actions/delete-database.cjs.map +1 -1
  29. package/dist/actions/delete-database.d.cts +1 -1
  30. package/dist/actions/delete-database.d.mts +1 -1
  31. package/dist/actions/delete-database.mjs +1 -1
  32. package/dist/actions/delete-database.mjs.map +1 -1
  33. package/dist/actions/delete-project.cjs +1 -1
  34. package/dist/actions/delete-project.cjs.map +1 -1
  35. package/dist/actions/delete-project.d.cts +1 -1
  36. package/dist/actions/delete-project.d.cts.map +1 -1
  37. package/dist/actions/delete-project.d.mts +1 -1
  38. package/dist/actions/delete-project.d.mts.map +1 -1
  39. package/dist/actions/delete-project.mjs +1 -1
  40. package/dist/actions/delete-project.mjs.map +1 -1
  41. package/dist/actions/execute-sql-command.cjs +2 -2
  42. package/dist/actions/execute-sql-command.cjs.map +1 -1
  43. package/dist/actions/execute-sql-command.d.cts +2 -2
  44. package/dist/actions/execute-sql-command.d.mts +2 -2
  45. package/dist/actions/execute-sql-command.mjs +2 -2
  46. package/dist/actions/execute-sql-command.mjs.map +1 -1
  47. package/dist/actions/execute-sql-query.cjs +2 -2
  48. package/dist/actions/execute-sql-query.cjs.map +1 -1
  49. package/dist/actions/execute-sql-query.d.cts +2 -2
  50. package/dist/actions/execute-sql-query.d.mts +2 -2
  51. package/dist/actions/execute-sql-query.mjs +2 -2
  52. package/dist/actions/execute-sql-query.mjs.map +1 -1
  53. package/dist/actions/get-database-usage.cjs +4 -4
  54. package/dist/actions/get-database-usage.cjs.map +1 -1
  55. package/dist/actions/get-database-usage.d.cts +5 -5
  56. package/dist/actions/get-database-usage.d.mts +5 -5
  57. package/dist/actions/get-database-usage.mjs +4 -4
  58. package/dist/actions/get-database-usage.mjs.map +1 -1
  59. package/dist/actions/get-database.cjs +4 -4
  60. package/dist/actions/get-database.cjs.map +1 -1
  61. package/dist/actions/get-database.d.cts +4 -4
  62. package/dist/actions/get-database.d.mts +4 -4
  63. package/dist/actions/get-database.mjs +4 -4
  64. package/dist/actions/get-database.mjs.map +1 -1
  65. package/dist/actions/get-project.cjs +3 -3
  66. package/dist/actions/get-project.cjs.map +1 -1
  67. package/dist/actions/get-project.d.cts +3 -3
  68. package/dist/actions/get-project.d.mts +3 -3
  69. package/dist/actions/get-project.mjs +3 -3
  70. package/dist/actions/get-project.mjs.map +1 -1
  71. package/dist/actions/inspect-database-schema.cjs +4 -4
  72. package/dist/actions/inspect-database-schema.cjs.map +1 -1
  73. package/dist/actions/inspect-database-schema.d.cts +4 -4
  74. package/dist/actions/inspect-database-schema.d.mts +4 -4
  75. package/dist/actions/inspect-database-schema.mjs +4 -4
  76. package/dist/actions/inspect-database-schema.mjs.map +1 -1
  77. package/dist/actions/list-accelerate-regions.cjs +2 -2
  78. package/dist/actions/list-accelerate-regions.cjs.map +1 -1
  79. package/dist/actions/list-accelerate-regions.d.cts +2 -2
  80. package/dist/actions/list-accelerate-regions.d.mts +2 -2
  81. package/dist/actions/list-accelerate-regions.mjs +2 -2
  82. package/dist/actions/list-accelerate-regions.mjs.map +1 -1
  83. package/dist/actions/list-backups.cjs +4 -4
  84. package/dist/actions/list-backups.cjs.map +1 -1
  85. package/dist/actions/list-backups.d.cts +4 -4
  86. package/dist/actions/list-backups.d.mts +4 -4
  87. package/dist/actions/list-backups.mjs +4 -4
  88. package/dist/actions/list-backups.mjs.map +1 -1
  89. package/dist/actions/list-connections.cjs +4 -4
  90. package/dist/actions/list-connections.cjs.map +1 -1
  91. package/dist/actions/list-connections.d.cts +4 -4
  92. package/dist/actions/list-connections.d.mts +4 -4
  93. package/dist/actions/list-connections.mjs +4 -4
  94. package/dist/actions/list-connections.mjs.map +1 -1
  95. package/dist/actions/list-databases.cjs +5 -5
  96. package/dist/actions/list-databases.cjs.map +1 -1
  97. package/dist/actions/list-databases.d.cts +5 -5
  98. package/dist/actions/list-databases.d.mts +5 -5
  99. package/dist/actions/list-databases.mjs +5 -5
  100. package/dist/actions/list-databases.mjs.map +1 -1
  101. package/dist/actions/list-postgres-regions.cjs +2 -2
  102. package/dist/actions/list-postgres-regions.cjs.map +1 -1
  103. package/dist/actions/list-postgres-regions.d.cts +2 -2
  104. package/dist/actions/list-postgres-regions.d.mts +2 -2
  105. package/dist/actions/list-postgres-regions.mjs +2 -2
  106. package/dist/actions/list-postgres-regions.mjs.map +1 -1
  107. package/dist/actions/list-projects.cjs +4 -4
  108. package/dist/actions/list-projects.cjs.map +1 -1
  109. package/dist/actions/list-projects.d.cts +4 -4
  110. package/dist/actions/list-projects.d.mts +4 -4
  111. package/dist/actions/list-projects.mjs +4 -4
  112. package/dist/actions/list-projects.mjs.map +1 -1
  113. package/dist/actions/list-workspace-integrations.cjs +5 -5
  114. package/dist/actions/list-workspace-integrations.cjs.map +1 -1
  115. package/dist/actions/list-workspace-integrations.d.cts +5 -5
  116. package/dist/actions/list-workspace-integrations.d.mts +5 -5
  117. package/dist/actions/list-workspace-integrations.mjs +5 -5
  118. package/dist/actions/list-workspace-integrations.mjs.map +1 -1
  119. package/dist/actions/list-workspaces.cjs +3 -3
  120. package/dist/actions/list-workspaces.cjs.map +1 -1
  121. package/dist/actions/list-workspaces.d.cts +3 -3
  122. package/dist/actions/list-workspaces.d.mts +3 -3
  123. package/dist/actions/list-workspaces.mjs +3 -3
  124. package/dist/actions/list-workspaces.mjs.map +1 -1
  125. package/dist/actions/restore-backup.cjs +4 -4
  126. package/dist/actions/restore-backup.cjs.map +1 -1
  127. package/dist/actions/restore-backup.d.cts +4 -4
  128. package/dist/actions/restore-backup.d.mts +4 -4
  129. package/dist/actions/restore-backup.mjs +4 -4
  130. package/dist/actions/restore-backup.mjs.map +1 -1
  131. package/dist/actions/transfer-project.cjs +1 -1
  132. package/dist/actions/transfer-project.cjs.map +1 -1
  133. package/dist/actions/transfer-project.d.cts +1 -1
  134. package/dist/actions/transfer-project.d.mts +1 -1
  135. package/dist/actions/transfer-project.mjs +1 -1
  136. package/dist/actions/transfer-project.mjs.map +1 -1
  137. package/package.json +1 -1
@@ -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":"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"}
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":"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"}
@@ -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.object({}).describe("Empty response for successful connection deletion.");
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.object({}).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,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAEtH,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
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,7 +4,7 @@ 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.ZodObject<{}, z.core.$strip>;
7
+ declare const PrismaDeleteConnectionOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
8
8
  declare const prismaDeleteConnection: import("@keystrokehq/action").WorkflowActionDefinition<{
9
9
  id: string;
10
10
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
@@ -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,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAE5B,sBAAA,gCAAsB,wBAAA"}
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,7 +4,7 @@ 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.ZodObject<{}, z.core.$strip>;
7
+ declare const PrismaDeleteConnectionOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
8
8
  declare const prismaDeleteConnection: import("@keystrokehq/action").WorkflowActionDefinition<{
9
9
  id: string;
10
10
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
@@ -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,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAE5B,sBAAA,gCAAsB,wBAAA"}
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.object({}).describe("Empty response for successful connection deletion.")
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.object({}).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,CAAC,CAAC,CAAC,CAAC,SAAS,oDAOxD;AACV,CAAC"}
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;AAEhE,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
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,7 +6,7 @@ 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.$strip>;
9
+ }, z.core.$loose>;
10
10
  declare const prismaDeleteDatabase: import("@keystrokehq/action").WorkflowActionDefinition<{
11
11
  databaseId: string;
12
12
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
@@ -6,7 +6,7 @@ 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.$strip>;
9
+ }, z.core.$loose>;
10
10
  declare const prismaDeleteDatabase: import("@keystrokehq/action").WorkflowActionDefinition<{
11
11
  databaseId: string;
12
12
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
@@ -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,oDAOF;AACV,CAAC"}
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.object({}).describe("Empty response for successful project deletion.");
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.object({}).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,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAEhH,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
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,7 +4,7 @@ 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.ZodObject<{}, z.core.$strip>;
7
+ declare const PrismaDeleteProjectOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
8
8
  declare const prismaDeleteProject: import("@keystrokehq/action").WorkflowActionDefinition<{
9
9
  id: string;
10
10
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
@@ -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,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAEzB,mBAAA,gCAAmB,wBAAA"}
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,7 +4,7 @@ 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.ZodObject<{}, z.core.$strip>;
7
+ declare const PrismaDeleteProjectOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
8
8
  declare const prismaDeleteProject: import("@keystrokehq/action").WorkflowActionDefinition<{
9
9
  id: string;
10
10
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
@@ -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,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAEzB,mBAAA,gCAAmB,wBAAA"}
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.object({}).describe("Empty response for successful project deletion.")
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.object({}).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,CAAC,CAAC,CAAC,CAAC,SAAS,iDAOrD;AACV,CAAC"}
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;AACvE,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,QAAQ,+CAA+C,SAAS,EAClE,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAEhE,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
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,8 +11,8 @@ 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.$strip>>;
15
- }, z.core.$strip>;
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;
@@ -11,8 +11,8 @@ 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.$strip>>;
15
- }, z.core.$strip>;
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;
@@ -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 };
@@ -1 +1 @@
1
- {"version":3,"file":"execute-sql-command.mjs","names":[],"sources":["../../src/actions/execute-sql-command.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaExecuteSqlCommandInput = z.object({\n command: z.string().describe(\"SQL command to execute against the database (INSERT, UPDATE, DELETE, CREATE TABLE, etc.). Examples: 'INSERT INTO users (name, email) VALUES ($1, $2)', 'UPDATE users SET active = $1 WHERE id = $2', 'DELETE FROM sessions WHERE expires_at < NOW()', 'CREATE TABLE logs (id SERIAL PRIMARY KEY, message TEXT, created_at TIMESTAMP DEFAULT NOW())'\"),\n parameters: z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean(), z.record(z.string(), z.unknown())])).describe(\"Optional array of parameters for parameterized commands using $1, $2, etc. placeholders. Example: command='INSERT INTO users (name, email) VALUES ($1, $2)', parameters=['John Doe', 'john@example.com']. Parameters are automatically escaped to prevent SQL injection.\").optional(),\n connectionString: z.string().describe(\"PostgreSQL connection string for direct database access. Use the standard format: 'postgresql://USER:PASSWORD@HOST:PORT/DATABASE?sslmode=require'. Get credentials from create_connection or create_database response fields: use 'user' as USER, 'pass' as PASSWORD, and 'host' as HOST:PORT. Example: 'postgresql://user:pass@db.prisma.io:5432/postgres?sslmode=require'. Note: Do NOT use Prisma Accelerate URLs (prisma+postgres://accelerate.prisma-data.net/...) - those are for Prisma Client SDK only. Use the direct connection credentials instead.\"),\n}).describe(\"Request parameters for executing SQL commands that modify data.\");\nconst PrismaExecuteSqlCommand_SqlCommandResultSchema = z.object({\n success: z.boolean().describe(\"Whether the command executed successfully without errors.\").nullable(),\n affectedRows: z.number().int().describe(\"Number of rows affected by the command operation. For INSERT: number of rows inserted. For UPDATE: number of rows updated. For DELETE: number of rows deleted. For DDL commands (CREATE, ALTER, DROP): typically 0.\").nullable(),\n executionTimeMs: z.number().int().describe(\"Command execution time in milliseconds for performance monitoring.\").nullable(),\n}).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+B,EAAE,OAAO;CACnD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qVAAqV;CAClX,YAAY,EAAE,MAAM,EAAE,MAAM;EAAC,EAAE,OAAO;EAAG,EAAE,OAAO,CAAC,CAAC,IAAI;EAAG,EAAE,OAAO;EAAG,EAAE,QAAQ;EAAG,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC;CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,0QAA0Q,CAAC,CAAC,SAAS;CACvZ,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,giBAAgiB;AACxkB,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAM,iDAAiD,EAAE,OAAO;CAC9D,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACpG,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qNAAqN,CAAC,CAAC,SAAS;CACxQ,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;AAC5H,CAAC,CAAC,CAAC,SAAS,2DAA2D;AAKvE,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT2C,EAAE,OAAO,EACpD,QAAQ,+CAA+C,SAAS,EAClE,CAAC,CAAC,CAAC,SAAS,oDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"execute-sql-command.mjs","names":[],"sources":["../../src/actions/execute-sql-command.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaExecuteSqlCommandInput = z.object({\n command: z.string().describe(\"SQL command to execute against the database (INSERT, UPDATE, DELETE, CREATE TABLE, etc.). Examples: 'INSERT INTO users (name, email) VALUES ($1, $2)', 'UPDATE users SET active = $1 WHERE id = $2', 'DELETE FROM sessions WHERE expires_at < NOW()', 'CREATE TABLE logs (id SERIAL PRIMARY KEY, message TEXT, created_at TIMESTAMP DEFAULT NOW())'\"),\n parameters: z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean(), z.record(z.string(), z.unknown())])).describe(\"Optional array of parameters for parameterized commands using $1, $2, etc. placeholders. Example: command='INSERT INTO users (name, email) VALUES ($1, $2)', parameters=['John Doe', 'john@example.com']. Parameters are automatically escaped to prevent SQL injection.\").optional(),\n connectionString: z.string().describe(\"PostgreSQL connection string for direct database access. Use the standard format: 'postgresql://USER:PASSWORD@HOST:PORT/DATABASE?sslmode=require'. Get credentials from create_connection or create_database response fields: use 'user' as USER, 'pass' as PASSWORD, and 'host' as HOST:PORT. Example: 'postgresql://user:pass@db.prisma.io:5432/postgres?sslmode=require'. Note: Do NOT use Prisma Accelerate URLs (prisma+postgres://accelerate.prisma-data.net/...) - those are for Prisma Client SDK only. Use the direct connection credentials instead.\"),\n}).describe(\"Request parameters for executing SQL commands that modify data.\");\nconst PrismaExecuteSqlCommand_SqlCommandResultSchema = z.object({\n success: z.boolean().describe(\"Whether the command executed successfully without errors.\").nullable(),\n affectedRows: z.number().int().describe(\"Number of rows affected by the command operation. For INSERT: number of rows inserted. For UPDATE: number of rows updated. For DELETE: number of rows deleted. For DDL commands (CREATE, ALTER, DROP): typically 0.\").nullable(),\n executionTimeMs: z.number().int().describe(\"Command execution time in milliseconds for performance monitoring.\").nullable(),\n}).passthrough().describe(\"Command execution result with affected rows and metadata.\");\nexport const PrismaExecuteSqlCommandOutput = z.object({\n result: PrismaExecuteSqlCommand_SqlCommandResultSchema.nullable(),\n}).passthrough().describe(\"API response containing command execution results.\");\n\nexport const prismaExecuteSqlCommand = action(\"PRISMA_EXECUTE_SQL_COMMAND\", {\n slug: \"prisma-execute-sql-command\",\n name: \"Execute SQL Command\",\n description: \"Execute SQL commands that modify database data or structure. Runs INSERT, UPDATE, DELETE, CREATE TABLE, and other data modification commands safely through PostgreSQL driver with parameterized query support.\",\n input: PrismaExecuteSqlCommandInput,\n output: PrismaExecuteSqlCommandOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+B,EAAE,OAAO;CACnD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qVAAqV;CAClX,YAAY,EAAE,MAAM,EAAE,MAAM;EAAC,EAAE,OAAO;EAAG,EAAE,OAAO,CAAC,CAAC,IAAI;EAAG,EAAE,OAAO;EAAG,EAAE,QAAQ;EAAG,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC;CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,0QAA0Q,CAAC,CAAC,SAAS;CACvZ,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,giBAAgiB;AACxkB,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAM,iDAAiD,EAAE,OAAO;CAC9D,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACpG,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qNAAqN,CAAC,CAAC,SAAS;CACxQ,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;AAC5H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAA2D;AAKrF,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT2C,EAAE,OAAO,EACpD,QAAQ,+CAA+C,SAAS,EAClE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAOhB;AACV,CAAC"}
@@ -18,8 +18,8 @@ const PrismaExecuteSqlQuery_SqlQueryResultSchema = zod.z.object({
18
18
  data: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Array of result rows as objects with column names as keys. Each row represents a database record with typed values. Empty array if no results found."),
19
19
  rowCount: zod.z.number().int().describe("Number of rows returned by the query.").nullable(),
20
20
  executionTimeMs: zod.z.number().int().describe("Query execution time in milliseconds for performance monitoring.").nullable()
21
- }).describe("Query execution result with metadata.");
22
- const PrismaExecuteSqlQueryOutput = zod.z.object({ result: PrismaExecuteSqlQuery_SqlQueryResultSchema.nullable() }).describe("API response containing query results and metadata.");
21
+ }).passthrough().describe("Query execution result with metadata.");
22
+ const PrismaExecuteSqlQueryOutput = zod.z.object({ result: PrismaExecuteSqlQuery_SqlQueryResultSchema.nullable() }).passthrough().describe("API response containing query results and metadata.");
23
23
  const prismaExecuteSqlQuery = require_action.action("PRISMA_EXECUTE_SQL_QUERY", {
24
24
  slug: "prisma-execute-sql-query",
25
25
  name: "Execute SQL Query",
@@ -1 +1 @@
1
- {"version":3,"file":"execute-sql-query.cjs","names":["z","action"],"sources":["../../src/actions/execute-sql-query.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaExecuteSqlQueryInput = z.object({\n host: z.string().describe(\"Database host with port (format: 'db.prisma.io:5432'). Obtain this from create_connection action response field 'host'. This is the direct PostgreSQL endpoint for your Prisma Postgres database.\"),\n user: z.string().describe(\"Database username (tenant ID from Prisma). Obtain this from create_connection action response field 'user'. This is a unique identifier for your database tenant.\"),\n query: z.string().describe(\"SQL SELECT query to execute against the database. Use standard PostgreSQL syntax. Common examples: 'SELECT * FROM users LIMIT 10', 'SELECT name, email FROM customers WHERE active = true', 'SELECT table_name FROM information_schema.tables WHERE table_schema = \\\\'public\\\\''. Avoid INSERT/UPDATE/DELETE - use execute_sql_command for those operations.\"),\n password: z.string().describe(\"Database password (secret key from Prisma). Obtain this from create_connection action response field 'pass'. Format is typically 'sk_xxxxx'. Keep this secure.\"),\n parameters: z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean(), z.record(z.string(), z.unknown())])).describe(\"Optional array of parameters for parameterized queries using %s placeholders. Example: query='SELECT * FROM users WHERE id = %s AND active = %s', parameters=[123, true]. Parameters are automatically escaped to prevent SQL injection. Use %s for each parameter in order they appear in the query.\").optional(),\n}).describe(\"Request parameters for executing SQL SELECT queries.\");\nconst PrismaExecuteSqlQuery_SqlQueryResultSchema = z.object({\n data: z.array(z.record(z.string(), z.unknown())).describe(\"Array of result rows as objects with column names as keys. Each row represents a database record with typed values. Empty array if no results found.\"),\n rowCount: z.number().int().describe(\"Number of rows returned by the query.\").nullable(),\n executionTimeMs: z.number().int().describe(\"Query execution time in milliseconds for performance monitoring.\").nullable(),\n}).describe(\"Query execution result with metadata.\");\nexport const PrismaExecuteSqlQueryOutput = z.object({\n result: PrismaExecuteSqlQuery_SqlQueryResultSchema.nullable(),\n}).describe(\"API response containing query results and metadata.\");\n\nexport const prismaExecuteSqlQuery = action(\"PRISMA_EXECUTE_SQL_QUERY\", {\n slug: \"prisma-execute-sql-query\",\n name: \"Execute SQL Query\",\n description: \"Execute SQL SELECT queries against Prisma Postgres databases. Runs read-only queries safely through direct PostgreSQL connection with SSL. Uses credentials from create_connection action (host, user, pass fields). Perfect for data analysis, schema inspection, and reporting operations.\",\n input: PrismaExecuteSqlQueryInput,\n output: PrismaExecuteSqlQueryOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mMAAmM;CAC7N,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mKAAmK;CAC7L,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8VAA8V;CACzX,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gKAAgK;CAC9L,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;EAAGA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,QAAQ;EAAGA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC;CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,uSAAuS,CAAC,CAAC,SAAS;AACtb,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,sJAAsJ;CAChN,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACtF,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;AAC1H,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,QAAQ,2CAA2C,SAAS,EAC9D,CAAC,CAAC,CAAC,SAAS,qDAAqD;AAEjE,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"execute-sql-query.cjs","names":["z","action"],"sources":["../../src/actions/execute-sql-query.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaExecuteSqlQueryInput = z.object({\n host: z.string().describe(\"Database host with port (format: 'db.prisma.io:5432'). Obtain this from create_connection action response field 'host'. This is the direct PostgreSQL endpoint for your Prisma Postgres database.\"),\n user: z.string().describe(\"Database username (tenant ID from Prisma). Obtain this from create_connection action response field 'user'. This is a unique identifier for your database tenant.\"),\n query: z.string().describe(\"SQL SELECT query to execute against the database. Use standard PostgreSQL syntax. Common examples: 'SELECT * FROM users LIMIT 10', 'SELECT name, email FROM customers WHERE active = true', 'SELECT table_name FROM information_schema.tables WHERE table_schema = \\\\'public\\\\''. Avoid INSERT/UPDATE/DELETE - use execute_sql_command for those operations.\"),\n password: z.string().describe(\"Database password (secret key from Prisma). Obtain this from create_connection action response field 'pass'. Format is typically 'sk_xxxxx'. Keep this secure.\"),\n parameters: z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean(), z.record(z.string(), z.unknown())])).describe(\"Optional array of parameters for parameterized queries using %s placeholders. Example: query='SELECT * FROM users WHERE id = %s AND active = %s', parameters=[123, true]. Parameters are automatically escaped to prevent SQL injection. Use %s for each parameter in order they appear in the query.\").optional(),\n}).describe(\"Request parameters for executing SQL SELECT queries.\");\nconst PrismaExecuteSqlQuery_SqlQueryResultSchema = z.object({\n data: z.array(z.record(z.string(), z.unknown())).describe(\"Array of result rows as objects with column names as keys. Each row represents a database record with typed values. Empty array if no results found.\"),\n rowCount: z.number().int().describe(\"Number of rows returned by the query.\").nullable(),\n executionTimeMs: z.number().int().describe(\"Query execution time in milliseconds for performance monitoring.\").nullable(),\n}).passthrough().describe(\"Query execution result with metadata.\");\nexport const PrismaExecuteSqlQueryOutput = z.object({\n result: PrismaExecuteSqlQuery_SqlQueryResultSchema.nullable(),\n}).passthrough().describe(\"API response containing query results and metadata.\");\n\nexport const prismaExecuteSqlQuery = action(\"PRISMA_EXECUTE_SQL_QUERY\", {\n slug: \"prisma-execute-sql-query\",\n name: \"Execute SQL Query\",\n description: \"Execute SQL SELECT queries against Prisma Postgres databases. Runs read-only queries safely through direct PostgreSQL connection with SSL. Uses credentials from create_connection action (host, user, pass fields). Perfect for data analysis, schema inspection, and reporting operations.\",\n input: PrismaExecuteSqlQueryInput,\n output: PrismaExecuteSqlQueryOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mMAAmM;CAC7N,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mKAAmK;CAC7L,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8VAA8V;CACzX,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gKAAgK;CAC9L,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;EAAGA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,QAAQ;EAAGA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC;CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,uSAAuS,CAAC,CAAC,SAAS;AACtb,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,sJAAsJ;CAChN,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACtF,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;AAC1H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AACjE,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,QAAQ,2CAA2C,SAAS,EAC9D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAE/E,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -13,8 +13,8 @@ declare const PrismaExecuteSqlQueryOutput: z.ZodObject<{
13
13
  data: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
14
14
  rowCount: z.ZodNullable<z.ZodNumber>;
15
15
  executionTimeMs: z.ZodNullable<z.ZodNumber>;
16
- }, z.core.$strip>>;
17
- }, z.core.$strip>;
16
+ }, z.core.$loose>>;
17
+ }, z.core.$loose>;
18
18
  declare const prismaExecuteSqlQuery: import("@keystrokehq/action").WorkflowActionDefinition<{
19
19
  host: string;
20
20
  user: string;
@@ -13,8 +13,8 @@ declare const PrismaExecuteSqlQueryOutput: z.ZodObject<{
13
13
  data: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
14
14
  rowCount: z.ZodNullable<z.ZodNumber>;
15
15
  executionTimeMs: z.ZodNullable<z.ZodNumber>;
16
- }, z.core.$strip>>;
17
- }, z.core.$strip>;
16
+ }, z.core.$loose>>;
17
+ }, z.core.$loose>;
18
18
  declare const prismaExecuteSqlQuery: import("@keystrokehq/action").WorkflowActionDefinition<{
19
19
  host: string;
20
20
  user: string;
@@ -18,13 +18,13 @@ const PrismaExecuteSqlQuery_SqlQueryResultSchema = z.object({
18
18
  data: z.array(z.record(z.string(), z.unknown())).describe("Array of result rows as objects with column names as keys. Each row represents a database record with typed values. Empty array if no results found."),
19
19
  rowCount: z.number().int().describe("Number of rows returned by the query.").nullable(),
20
20
  executionTimeMs: z.number().int().describe("Query execution time in milliseconds for performance monitoring.").nullable()
21
- }).describe("Query execution result with metadata.");
21
+ }).passthrough().describe("Query execution result with metadata.");
22
22
  const prismaExecuteSqlQuery = action("PRISMA_EXECUTE_SQL_QUERY", {
23
23
  slug: "prisma-execute-sql-query",
24
24
  name: "Execute SQL Query",
25
25
  description: "Execute SQL SELECT queries against Prisma Postgres databases. Runs read-only queries safely through direct PostgreSQL connection with SSL. Uses credentials from create_connection action (host, user, pass fields). Perfect for data analysis, schema inspection, and reporting operations.",
26
26
  input: PrismaExecuteSqlQueryInput,
27
- output: z.object({ result: PrismaExecuteSqlQuery_SqlQueryResultSchema.nullable() }).describe("API response containing query results and metadata.")
27
+ output: z.object({ result: PrismaExecuteSqlQuery_SqlQueryResultSchema.nullable() }).passthrough().describe("API response containing query results and metadata.")
28
28
  });
29
29
  //#endregion
30
30
  export { prismaExecuteSqlQuery };
@@ -1 +1 @@
1
- {"version":3,"file":"execute-sql-query.mjs","names":[],"sources":["../../src/actions/execute-sql-query.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaExecuteSqlQueryInput = z.object({\n host: z.string().describe(\"Database host with port (format: 'db.prisma.io:5432'). Obtain this from create_connection action response field 'host'. This is the direct PostgreSQL endpoint for your Prisma Postgres database.\"),\n user: z.string().describe(\"Database username (tenant ID from Prisma). Obtain this from create_connection action response field 'user'. This is a unique identifier for your database tenant.\"),\n query: z.string().describe(\"SQL SELECT query to execute against the database. Use standard PostgreSQL syntax. Common examples: 'SELECT * FROM users LIMIT 10', 'SELECT name, email FROM customers WHERE active = true', 'SELECT table_name FROM information_schema.tables WHERE table_schema = \\\\'public\\\\''. Avoid INSERT/UPDATE/DELETE - use execute_sql_command for those operations.\"),\n password: z.string().describe(\"Database password (secret key from Prisma). Obtain this from create_connection action response field 'pass'. Format is typically 'sk_xxxxx'. Keep this secure.\"),\n parameters: z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean(), z.record(z.string(), z.unknown())])).describe(\"Optional array of parameters for parameterized queries using %s placeholders. Example: query='SELECT * FROM users WHERE id = %s AND active = %s', parameters=[123, true]. Parameters are automatically escaped to prevent SQL injection. Use %s for each parameter in order they appear in the query.\").optional(),\n}).describe(\"Request parameters for executing SQL SELECT queries.\");\nconst PrismaExecuteSqlQuery_SqlQueryResultSchema = z.object({\n data: z.array(z.record(z.string(), z.unknown())).describe(\"Array of result rows as objects with column names as keys. Each row represents a database record with typed values. Empty array if no results found.\"),\n rowCount: z.number().int().describe(\"Number of rows returned by the query.\").nullable(),\n executionTimeMs: z.number().int().describe(\"Query execution time in milliseconds for performance monitoring.\").nullable(),\n}).describe(\"Query execution result with metadata.\");\nexport const PrismaExecuteSqlQueryOutput = z.object({\n result: PrismaExecuteSqlQuery_SqlQueryResultSchema.nullable(),\n}).describe(\"API response containing query results and metadata.\");\n\nexport const prismaExecuteSqlQuery = action(\"PRISMA_EXECUTE_SQL_QUERY\", {\n slug: \"prisma-execute-sql-query\",\n name: \"Execute SQL Query\",\n description: \"Execute SQL SELECT queries against Prisma Postgres databases. Runs read-only queries safely through direct PostgreSQL connection with SSL. Uses credentials from create_connection action (host, user, pass fields). Perfect for data analysis, schema inspection, and reporting operations.\",\n input: PrismaExecuteSqlQueryInput,\n output: PrismaExecuteSqlQueryOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO;CACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mMAAmM;CAC7N,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mKAAmK;CAC7L,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8VAA8V;CACzX,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gKAAgK;CAC9L,YAAY,EAAE,MAAM,EAAE,MAAM;EAAC,EAAE,OAAO;EAAG,EAAE,OAAO,CAAC,CAAC,IAAI;EAAG,EAAE,OAAO;EAAG,EAAE,QAAQ;EAAG,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC;CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,uSAAuS,CAAC,CAAC,SAAS;AACtb,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,6CAA6C,EAAE,OAAO;CAC1D,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,sJAAsJ;CAChN,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACtF,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;AAC1H,CAAC,CAAC,CAAC,SAAS,uCAAuC;AAKnD,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATyC,EAAE,OAAO,EAClD,QAAQ,2CAA2C,SAAS,EAC9D,CAAC,CAAC,CAAC,SAAS,qDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"execute-sql-query.mjs","names":[],"sources":["../../src/actions/execute-sql-query.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaExecuteSqlQueryInput = z.object({\n host: z.string().describe(\"Database host with port (format: 'db.prisma.io:5432'). Obtain this from create_connection action response field 'host'. This is the direct PostgreSQL endpoint for your Prisma Postgres database.\"),\n user: z.string().describe(\"Database username (tenant ID from Prisma). Obtain this from create_connection action response field 'user'. This is a unique identifier for your database tenant.\"),\n query: z.string().describe(\"SQL SELECT query to execute against the database. Use standard PostgreSQL syntax. Common examples: 'SELECT * FROM users LIMIT 10', 'SELECT name, email FROM customers WHERE active = true', 'SELECT table_name FROM information_schema.tables WHERE table_schema = \\\\'public\\\\''. Avoid INSERT/UPDATE/DELETE - use execute_sql_command for those operations.\"),\n password: z.string().describe(\"Database password (secret key from Prisma). Obtain this from create_connection action response field 'pass'. Format is typically 'sk_xxxxx'. Keep this secure.\"),\n parameters: z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean(), z.record(z.string(), z.unknown())])).describe(\"Optional array of parameters for parameterized queries using %s placeholders. Example: query='SELECT * FROM users WHERE id = %s AND active = %s', parameters=[123, true]. Parameters are automatically escaped to prevent SQL injection. Use %s for each parameter in order they appear in the query.\").optional(),\n}).describe(\"Request parameters for executing SQL SELECT queries.\");\nconst PrismaExecuteSqlQuery_SqlQueryResultSchema = z.object({\n data: z.array(z.record(z.string(), z.unknown())).describe(\"Array of result rows as objects with column names as keys. Each row represents a database record with typed values. Empty array if no results found.\"),\n rowCount: z.number().int().describe(\"Number of rows returned by the query.\").nullable(),\n executionTimeMs: z.number().int().describe(\"Query execution time in milliseconds for performance monitoring.\").nullable(),\n}).passthrough().describe(\"Query execution result with metadata.\");\nexport const PrismaExecuteSqlQueryOutput = z.object({\n result: PrismaExecuteSqlQuery_SqlQueryResultSchema.nullable(),\n}).passthrough().describe(\"API response containing query results and metadata.\");\n\nexport const prismaExecuteSqlQuery = action(\"PRISMA_EXECUTE_SQL_QUERY\", {\n slug: \"prisma-execute-sql-query\",\n name: \"Execute SQL Query\",\n description: \"Execute SQL SELECT queries against Prisma Postgres databases. Runs read-only queries safely through direct PostgreSQL connection with SSL. Uses credentials from create_connection action (host, user, pass fields). Perfect for data analysis, schema inspection, and reporting operations.\",\n input: PrismaExecuteSqlQueryInput,\n output: PrismaExecuteSqlQueryOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO;CACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mMAAmM;CAC7N,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mKAAmK;CAC7L,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8VAA8V;CACzX,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gKAAgK;CAC9L,YAAY,EAAE,MAAM,EAAE,MAAM;EAAC,EAAE,OAAO;EAAG,EAAE,OAAO,CAAC,CAAC,IAAI;EAAG,EAAE,OAAO;EAAG,EAAE,QAAQ;EAAG,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC;CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,uSAAuS,CAAC,CAAC,SAAS;AACtb,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,6CAA6C,EAAE,OAAO;CAC1D,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,sJAAsJ;CAChN,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACtF,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;AAC1H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAKjE,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATyC,EAAE,OAAO,EAClD,QAAQ,2CAA2C,SAAS,EAC9D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAOhB;AACV,CAAC"}
@@ -9,20 +9,20 @@ const PrismaGetDatabaseUsageInput = zod.z.object({
9
9
  const PrismaGetDatabaseUsage_UsagePeriodSchema = zod.z.object({
10
10
  end: zod.z.string().describe("ISO 8601 timestamp marking the end of the metrics period (e.g., '2025-07-31T23:59:59Z').").nullable(),
11
11
  start: zod.z.string().describe("ISO 8601 timestamp marking the start of the metrics period (e.g., '2025-07-01T00:00:00Z').").nullable()
12
- }).describe("Time period for the usage metrics.");
12
+ }).passthrough().describe("Time period for the usage metrics.");
13
13
  const PrismaGetDatabaseUsage_MetricValueSchema = zod.z.object({
14
14
  unit: zod.z.string().describe("Unit of measurement for the metric value. Examples: 'bytes' for storage, 'count' for operations.").nullable(),
15
15
  used: zod.z.number().describe("Amount of the resource used during the specified period. Numeric value representing usage count or size.").nullable()
16
- }).describe("Individual metric value with unit information.");
16
+ }).passthrough().describe("Individual metric value with unit information.");
17
17
  const PrismaGetDatabaseUsage_UsageMetricsSchema = zod.z.object({
18
18
  storage: PrismaGetDatabaseUsage_MetricValueSchema.nullable(),
19
19
  operations: PrismaGetDatabaseUsage_MetricValueSchema.nullable()
20
- }).describe("Database usage metrics including operations and storage.");
20
+ }).passthrough().describe("Database usage metrics including operations and storage.");
21
21
  const PrismaGetDatabaseUsageOutput = zod.z.object({
22
22
  period: PrismaGetDatabaseUsage_UsagePeriodSchema.nullable(),
23
23
  metrics: PrismaGetDatabaseUsage_UsageMetricsSchema.nullable(),
24
24
  generatedAt: zod.z.string().describe("ISO 8601 timestamp when the usage report was generated (e.g., '2025-08-01T10:30:00Z').").nullable()
25
- }).describe("API response containing database usage metrics.");
25
+ }).passthrough().describe("API response containing database usage metrics.");
26
26
  const prismaGetDatabaseUsage = require_action.action("PRISMA_GET_DATABASE_USAGE", {
27
27
  slug: "prisma-get-database-usage",
28
28
  name: "Get Database Usage Metrics",
@@ -1 +1 @@
1
- {"version":3,"file":"get-database-usage.cjs","names":["z","action"],"sources":["../../src/actions/get-database-usage.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaGetDatabaseUsageInput = z.object({\n endDate: z.string().describe(\"End date for metrics query in ISO 8601 format (e.g., '2025-07-31T23:59:59Z'). Defaults to current date if not provided. Will be set to end of day if a future date is provided.\").optional(),\n startDate: z.string().describe(\"Start date for metrics query in ISO 8601 format (e.g., '2025-07-01T00:00:00Z'). Defaults to start of current month if not provided. Use to specify custom date ranges for usage analysis.\").optional(),\n databaseId: z.string().describe(\"Unique database identifier to retrieve usage metrics for (format: 'db_xxxxx'). Must be a database the authenticated user has access to. This ID is obtained from database listing or creation operations.\"),\n}).describe(\"Request parameters for retrieving database usage metrics.\");\nconst PrismaGetDatabaseUsage_UsagePeriodSchema = z.object({\n end: z.string().describe(\"ISO 8601 timestamp marking the end of the metrics period (e.g., '2025-07-31T23:59:59Z').\").nullable(),\n start: z.string().describe(\"ISO 8601 timestamp marking the start of the metrics period (e.g., '2025-07-01T00:00:00Z').\").nullable(),\n}).describe(\"Time period for the usage metrics.\");\nconst PrismaGetDatabaseUsage_MetricValueSchema = z.object({\n unit: z.string().describe(\"Unit of measurement for the metric value. Examples: 'bytes' for storage, 'count' for operations.\").nullable(),\n used: z.number().describe(\"Amount of the resource used during the specified period. Numeric value representing usage count or size.\").nullable(),\n}).describe(\"Individual metric value with unit information.\");\nconst PrismaGetDatabaseUsage_UsageMetricsSchema = z.object({\n storage: PrismaGetDatabaseUsage_MetricValueSchema.nullable(),\n operations: PrismaGetDatabaseUsage_MetricValueSchema.nullable(),\n}).describe(\"Database usage metrics including operations and storage.\");\nexport const PrismaGetDatabaseUsageOutput = z.object({\n period: PrismaGetDatabaseUsage_UsagePeriodSchema.nullable(),\n metrics: PrismaGetDatabaseUsage_UsageMetricsSchema.nullable(),\n generatedAt: z.string().describe(\"ISO 8601 timestamp when the usage report was generated (e.g., '2025-08-01T10:30:00Z').\").nullable(),\n}).describe(\"API response containing database usage metrics.\");\n\nexport const prismaGetDatabaseUsage = action(\"PRISMA_GET_DATABASE_USAGE\", {\n slug: \"prisma-get-database-usage\",\n name: \"Get Database Usage Metrics\",\n description: \"Retrieve usage metrics for a specific Prisma database. Returns metrics including storage usage and operation counts (reads/writes) for the specified time period. Use for monitoring resource consumption, cost analysis, and capacity planning.\",\n input: PrismaGetDatabaseUsageInput,\n output: PrismaGetDatabaseUsageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iLAAiL,CAAC,CAAC,SAAS;CACzN,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2LAA2L,CAAC,CAAC,SAAS;CACrO,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2MAA2M;AAC7O,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;CAC9H,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;AACpI,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAChD,MAAM,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CACvI,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;AACjJ,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,SAAS,yCAAyC,SAAS;CAC3D,YAAY,yCAAyC,SAAS;AAChE,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,QAAQ,yCAAyC,SAAS;CAC1D,SAAS,0CAA0C,SAAS;CAC5D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;AACtI,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAE7D,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-database-usage.cjs","names":["z","action"],"sources":["../../src/actions/get-database-usage.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaGetDatabaseUsageInput = z.object({\n endDate: z.string().describe(\"End date for metrics query in ISO 8601 format (e.g., '2025-07-31T23:59:59Z'). Defaults to current date if not provided. Will be set to end of day if a future date is provided.\").optional(),\n startDate: z.string().describe(\"Start date for metrics query in ISO 8601 format (e.g., '2025-07-01T00:00:00Z'). Defaults to start of current month if not provided. Use to specify custom date ranges for usage analysis.\").optional(),\n databaseId: z.string().describe(\"Unique database identifier to retrieve usage metrics for (format: 'db_xxxxx'). Must be a database the authenticated user has access to. This ID is obtained from database listing or creation operations.\"),\n}).describe(\"Request parameters for retrieving database usage metrics.\");\nconst PrismaGetDatabaseUsage_UsagePeriodSchema = z.object({\n end: z.string().describe(\"ISO 8601 timestamp marking the end of the metrics period (e.g., '2025-07-31T23:59:59Z').\").nullable(),\n start: z.string().describe(\"ISO 8601 timestamp marking the start of the metrics period (e.g., '2025-07-01T00:00:00Z').\").nullable(),\n}).passthrough().describe(\"Time period for the usage metrics.\");\nconst PrismaGetDatabaseUsage_MetricValueSchema = z.object({\n unit: z.string().describe(\"Unit of measurement for the metric value. Examples: 'bytes' for storage, 'count' for operations.\").nullable(),\n used: z.number().describe(\"Amount of the resource used during the specified period. Numeric value representing usage count or size.\").nullable(),\n}).passthrough().describe(\"Individual metric value with unit information.\");\nconst PrismaGetDatabaseUsage_UsageMetricsSchema = z.object({\n storage: PrismaGetDatabaseUsage_MetricValueSchema.nullable(),\n operations: PrismaGetDatabaseUsage_MetricValueSchema.nullable(),\n}).passthrough().describe(\"Database usage metrics including operations and storage.\");\nexport const PrismaGetDatabaseUsageOutput = z.object({\n period: PrismaGetDatabaseUsage_UsagePeriodSchema.nullable(),\n metrics: PrismaGetDatabaseUsage_UsageMetricsSchema.nullable(),\n generatedAt: z.string().describe(\"ISO 8601 timestamp when the usage report was generated (e.g., '2025-08-01T10:30:00Z').\").nullable(),\n}).passthrough().describe(\"API response containing database usage metrics.\");\n\nexport const prismaGetDatabaseUsage = action(\"PRISMA_GET_DATABASE_USAGE\", {\n slug: \"prisma-get-database-usage\",\n name: \"Get Database Usage Metrics\",\n description: \"Retrieve usage metrics for a specific Prisma database. Returns metrics including storage usage and operation counts (reads/writes) for the specified time period. Use for monitoring resource consumption, cost analysis, and capacity planning.\",\n input: PrismaGetDatabaseUsageInput,\n output: PrismaGetDatabaseUsageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iLAAiL,CAAC,CAAC,SAAS;CACzN,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2LAA2L,CAAC,CAAC,SAAS;CACrO,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2MAA2M;AAC7O,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;CAC9H,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;AACpI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAAoC;AAC9D,MAAM,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CACvI,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;AACjJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAC1E,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,SAAS,yCAAyC,SAAS;CAC3D,YAAY,yCAAyC,SAAS;AAChE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAA0D;AACpF,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,QAAQ,yCAAyC,SAAS;CAC1D,SAAS,0CAA0C,SAAS;CAC5D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;AACtI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAE3E,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -10,19 +10,19 @@ declare const PrismaGetDatabaseUsageOutput: z.ZodObject<{
10
10
  period: z.ZodNullable<z.ZodObject<{
11
11
  end: z.ZodNullable<z.ZodString>;
12
12
  start: z.ZodNullable<z.ZodString>;
13
- }, z.core.$strip>>;
13
+ }, z.core.$loose>>;
14
14
  metrics: z.ZodNullable<z.ZodObject<{
15
15
  storage: z.ZodNullable<z.ZodObject<{
16
16
  unit: z.ZodNullable<z.ZodString>;
17
17
  used: z.ZodNullable<z.ZodNumber>;
18
- }, z.core.$strip>>;
18
+ }, z.core.$loose>>;
19
19
  operations: z.ZodNullable<z.ZodObject<{
20
20
  unit: z.ZodNullable<z.ZodString>;
21
21
  used: z.ZodNullable<z.ZodNumber>;
22
- }, z.core.$strip>>;
23
- }, z.core.$strip>>;
22
+ }, z.core.$loose>>;
23
+ }, z.core.$loose>>;
24
24
  generatedAt: z.ZodNullable<z.ZodString>;
25
- }, z.core.$strip>;
25
+ }, z.core.$loose>;
26
26
  declare const prismaGetDatabaseUsage: import("@keystrokehq/action").WorkflowActionDefinition<{
27
27
  databaseId: string;
28
28
  endDate?: string | undefined;
@@ -10,19 +10,19 @@ declare const PrismaGetDatabaseUsageOutput: z.ZodObject<{
10
10
  period: z.ZodNullable<z.ZodObject<{
11
11
  end: z.ZodNullable<z.ZodString>;
12
12
  start: z.ZodNullable<z.ZodString>;
13
- }, z.core.$strip>>;
13
+ }, z.core.$loose>>;
14
14
  metrics: z.ZodNullable<z.ZodObject<{
15
15
  storage: z.ZodNullable<z.ZodObject<{
16
16
  unit: z.ZodNullable<z.ZodString>;
17
17
  used: z.ZodNullable<z.ZodNumber>;
18
- }, z.core.$strip>>;
18
+ }, z.core.$loose>>;
19
19
  operations: z.ZodNullable<z.ZodObject<{
20
20
  unit: z.ZodNullable<z.ZodString>;
21
21
  used: z.ZodNullable<z.ZodNumber>;
22
- }, z.core.$strip>>;
23
- }, z.core.$strip>>;
22
+ }, z.core.$loose>>;
23
+ }, z.core.$loose>>;
24
24
  generatedAt: z.ZodNullable<z.ZodString>;
25
- }, z.core.$strip>;
25
+ }, z.core.$loose>;
26
26
  declare const prismaGetDatabaseUsage: import("@keystrokehq/action").WorkflowActionDefinition<{
27
27
  databaseId: string;
28
28
  endDate?: string | undefined;