@keystrokehq/prisma 0.1.3 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (189) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/create-connection.cjs +1 -0
  4. package/dist/actions/create-connection.cjs.map +1 -1
  5. package/dist/actions/create-connection.d.cts +3 -4
  6. package/dist/actions/create-connection.d.cts.map +1 -1
  7. package/dist/actions/create-connection.d.mts +3 -4
  8. package/dist/actions/create-connection.d.mts.map +1 -1
  9. package/dist/actions/create-connection.mjs +1 -0
  10. package/dist/actions/create-connection.mjs.map +1 -1
  11. package/dist/actions/create-database.cjs +1 -0
  12. package/dist/actions/create-database.cjs.map +1 -1
  13. package/dist/actions/create-database.d.cts +3 -6
  14. package/dist/actions/create-database.d.cts.map +1 -1
  15. package/dist/actions/create-database.d.mts +3 -6
  16. package/dist/actions/create-database.d.mts.map +1 -1
  17. package/dist/actions/create-database.mjs +1 -0
  18. package/dist/actions/create-database.mjs.map +1 -1
  19. package/dist/actions/create-project.cjs +1 -0
  20. package/dist/actions/create-project.cjs.map +1 -1
  21. package/dist/actions/create-project.d.cts +3 -4
  22. package/dist/actions/create-project.d.cts.map +1 -1
  23. package/dist/actions/create-project.d.mts +3 -4
  24. package/dist/actions/create-project.d.mts.map +1 -1
  25. package/dist/actions/create-project.mjs +1 -0
  26. package/dist/actions/create-project.mjs.map +1 -1
  27. package/dist/actions/delete-connection.cjs +1 -0
  28. package/dist/actions/delete-connection.cjs.map +1 -1
  29. package/dist/actions/delete-connection.d.cts +3 -3
  30. package/dist/actions/delete-connection.d.cts.map +1 -1
  31. package/dist/actions/delete-connection.d.mts +3 -3
  32. package/dist/actions/delete-connection.d.mts.map +1 -1
  33. package/dist/actions/delete-connection.mjs +1 -0
  34. package/dist/actions/delete-connection.mjs.map +1 -1
  35. package/dist/actions/delete-database.cjs +1 -0
  36. package/dist/actions/delete-database.cjs.map +1 -1
  37. package/dist/actions/delete-database.d.cts +3 -3
  38. package/dist/actions/delete-database.d.cts.map +1 -1
  39. package/dist/actions/delete-database.d.mts +3 -3
  40. package/dist/actions/delete-database.d.mts.map +1 -1
  41. package/dist/actions/delete-database.mjs +1 -0
  42. package/dist/actions/delete-database.mjs.map +1 -1
  43. package/dist/actions/delete-project.cjs +1 -0
  44. package/dist/actions/delete-project.cjs.map +1 -1
  45. package/dist/actions/delete-project.d.cts +3 -3
  46. package/dist/actions/delete-project.d.cts.map +1 -1
  47. package/dist/actions/delete-project.d.mts +3 -3
  48. package/dist/actions/delete-project.d.mts.map +1 -1
  49. package/dist/actions/delete-project.mjs +1 -0
  50. package/dist/actions/delete-project.mjs.map +1 -1
  51. package/dist/actions/execute-sql-command.cjs +1 -0
  52. package/dist/actions/execute-sql-command.cjs.map +1 -1
  53. package/dist/actions/execute-sql-command.d.cts +3 -5
  54. package/dist/actions/execute-sql-command.d.cts.map +1 -1
  55. package/dist/actions/execute-sql-command.d.mts +3 -5
  56. package/dist/actions/execute-sql-command.d.mts.map +1 -1
  57. package/dist/actions/execute-sql-command.mjs +1 -0
  58. package/dist/actions/execute-sql-command.mjs.map +1 -1
  59. package/dist/actions/execute-sql-query.cjs +1 -0
  60. package/dist/actions/execute-sql-query.cjs.map +1 -1
  61. package/dist/actions/execute-sql-query.d.cts +3 -7
  62. package/dist/actions/execute-sql-query.d.cts.map +1 -1
  63. package/dist/actions/execute-sql-query.d.mts +3 -7
  64. package/dist/actions/execute-sql-query.d.mts.map +1 -1
  65. package/dist/actions/execute-sql-query.mjs +1 -0
  66. package/dist/actions/execute-sql-query.mjs.map +1 -1
  67. package/dist/actions/get-database-usage.cjs +1 -0
  68. package/dist/actions/get-database-usage.cjs.map +1 -1
  69. package/dist/actions/get-database-usage.d.cts +3 -5
  70. package/dist/actions/get-database-usage.d.cts.map +1 -1
  71. package/dist/actions/get-database-usage.d.mts +3 -5
  72. package/dist/actions/get-database-usage.d.mts.map +1 -1
  73. package/dist/actions/get-database-usage.mjs +1 -0
  74. package/dist/actions/get-database-usage.mjs.map +1 -1
  75. package/dist/actions/get-database.cjs +1 -0
  76. package/dist/actions/get-database.cjs.map +1 -1
  77. package/dist/actions/get-database.d.cts +3 -3
  78. package/dist/actions/get-database.d.cts.map +1 -1
  79. package/dist/actions/get-database.d.mts +3 -3
  80. package/dist/actions/get-database.d.mts.map +1 -1
  81. package/dist/actions/get-database.mjs +1 -0
  82. package/dist/actions/get-database.mjs.map +1 -1
  83. package/dist/actions/get-project.cjs +1 -0
  84. package/dist/actions/get-project.cjs.map +1 -1
  85. package/dist/actions/get-project.d.cts +3 -3
  86. package/dist/actions/get-project.d.cts.map +1 -1
  87. package/dist/actions/get-project.d.mts +3 -3
  88. package/dist/actions/get-project.d.mts.map +1 -1
  89. package/dist/actions/get-project.mjs +1 -0
  90. package/dist/actions/get-project.mjs.map +1 -1
  91. package/dist/actions/inspect-database-schema.cjs +1 -0
  92. package/dist/actions/inspect-database-schema.cjs.map +1 -1
  93. package/dist/actions/inspect-database-schema.d.cts +3 -7
  94. package/dist/actions/inspect-database-schema.d.cts.map +1 -1
  95. package/dist/actions/inspect-database-schema.d.mts +3 -7
  96. package/dist/actions/inspect-database-schema.d.mts.map +1 -1
  97. package/dist/actions/inspect-database-schema.mjs +1 -0
  98. package/dist/actions/inspect-database-schema.mjs.map +1 -1
  99. package/dist/actions/list-accelerate-regions.cjs +1 -0
  100. package/dist/actions/list-accelerate-regions.cjs.map +1 -1
  101. package/dist/actions/list-accelerate-regions.d.cts +3 -1
  102. package/dist/actions/list-accelerate-regions.d.cts.map +1 -1
  103. package/dist/actions/list-accelerate-regions.d.mts +3 -1
  104. package/dist/actions/list-accelerate-regions.d.mts.map +1 -1
  105. package/dist/actions/list-accelerate-regions.mjs +1 -0
  106. package/dist/actions/list-accelerate-regions.mjs.map +1 -1
  107. package/dist/actions/list-backups.cjs +1 -0
  108. package/dist/actions/list-backups.cjs.map +1 -1
  109. package/dist/actions/list-backups.d.cts +3 -4
  110. package/dist/actions/list-backups.d.cts.map +1 -1
  111. package/dist/actions/list-backups.d.mts +3 -4
  112. package/dist/actions/list-backups.d.mts.map +1 -1
  113. package/dist/actions/list-backups.mjs +1 -0
  114. package/dist/actions/list-backups.mjs.map +1 -1
  115. package/dist/actions/list-connections.cjs +1 -0
  116. package/dist/actions/list-connections.cjs.map +1 -1
  117. package/dist/actions/list-connections.d.cts +3 -5
  118. package/dist/actions/list-connections.d.cts.map +1 -1
  119. package/dist/actions/list-connections.d.mts +3 -5
  120. package/dist/actions/list-connections.d.mts.map +1 -1
  121. package/dist/actions/list-connections.mjs +1 -0
  122. package/dist/actions/list-connections.mjs.map +1 -1
  123. package/dist/actions/list-databases.cjs +1 -0
  124. package/dist/actions/list-databases.cjs.map +1 -1
  125. package/dist/actions/list-databases.d.cts +3 -5
  126. package/dist/actions/list-databases.d.cts.map +1 -1
  127. package/dist/actions/list-databases.d.mts +3 -5
  128. package/dist/actions/list-databases.d.mts.map +1 -1
  129. package/dist/actions/list-databases.mjs +1 -0
  130. package/dist/actions/list-databases.mjs.map +1 -1
  131. package/dist/actions/list-postgres-regions.cjs +1 -0
  132. package/dist/actions/list-postgres-regions.cjs.map +1 -1
  133. package/dist/actions/list-postgres-regions.d.cts +3 -1
  134. package/dist/actions/list-postgres-regions.d.cts.map +1 -1
  135. package/dist/actions/list-postgres-regions.d.mts +3 -1
  136. package/dist/actions/list-postgres-regions.d.mts.map +1 -1
  137. package/dist/actions/list-postgres-regions.mjs +1 -0
  138. package/dist/actions/list-postgres-regions.mjs.map +1 -1
  139. package/dist/actions/list-projects.cjs +1 -0
  140. package/dist/actions/list-projects.cjs.map +1 -1
  141. package/dist/actions/list-projects.d.cts +3 -4
  142. package/dist/actions/list-projects.d.cts.map +1 -1
  143. package/dist/actions/list-projects.d.mts +3 -4
  144. package/dist/actions/list-projects.d.mts.map +1 -1
  145. package/dist/actions/list-projects.mjs +1 -0
  146. package/dist/actions/list-projects.mjs.map +1 -1
  147. package/dist/actions/list-workspace-integrations.cjs +1 -0
  148. package/dist/actions/list-workspace-integrations.cjs.map +1 -1
  149. package/dist/actions/list-workspace-integrations.d.cts +3 -5
  150. package/dist/actions/list-workspace-integrations.d.cts.map +1 -1
  151. package/dist/actions/list-workspace-integrations.d.mts +3 -5
  152. package/dist/actions/list-workspace-integrations.d.mts.map +1 -1
  153. package/dist/actions/list-workspace-integrations.mjs +1 -0
  154. package/dist/actions/list-workspace-integrations.mjs.map +1 -1
  155. package/dist/actions/list-workspaces.cjs +1 -0
  156. package/dist/actions/list-workspaces.cjs.map +1 -1
  157. package/dist/actions/list-workspaces.d.cts +3 -4
  158. package/dist/actions/list-workspaces.d.cts.map +1 -1
  159. package/dist/actions/list-workspaces.d.mts +3 -4
  160. package/dist/actions/list-workspaces.d.mts.map +1 -1
  161. package/dist/actions/list-workspaces.mjs +1 -0
  162. package/dist/actions/list-workspaces.mjs.map +1 -1
  163. package/dist/actions/restore-backup.cjs +1 -0
  164. package/dist/actions/restore-backup.cjs.map +1 -1
  165. package/dist/actions/restore-backup.d.cts +3 -5
  166. package/dist/actions/restore-backup.d.cts.map +1 -1
  167. package/dist/actions/restore-backup.d.mts +3 -5
  168. package/dist/actions/restore-backup.d.mts.map +1 -1
  169. package/dist/actions/restore-backup.mjs +1 -0
  170. package/dist/actions/restore-backup.mjs.map +1 -1
  171. package/dist/actions/transfer-project.cjs +1 -0
  172. package/dist/actions/transfer-project.cjs.map +1 -1
  173. package/dist/actions/transfer-project.d.cts +3 -4
  174. package/dist/actions/transfer-project.d.cts.map +1 -1
  175. package/dist/actions/transfer-project.d.mts +3 -4
  176. package/dist/actions/transfer-project.d.mts.map +1 -1
  177. package/dist/actions/transfer-project.mjs +1 -0
  178. package/dist/actions/transfer-project.mjs.map +1 -1
  179. package/dist/app.cjs +5 -2
  180. package/dist/app.cjs.map +1 -1
  181. package/dist/app.d.cts +7 -1
  182. package/dist/app.d.cts.map +1 -1
  183. package/dist/app.d.mts +7 -1
  184. package/dist/app.d.mts.map +1 -1
  185. package/dist/app.mjs +3 -2
  186. package/dist/app.mjs.map +1 -1
  187. package/dist/index.d.cts +1 -1
  188. package/dist/index.d.mts +1 -1
  189. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"action.cjs","names":["prisma","executePrismaTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { prisma } from \"./app\";\nimport { executePrismaTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return prisma.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executePrismaTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,OAAO,OAAO;EACnB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,kBAAkB,MAAM,KAAgC,CAAC;EACzF;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.cjs","names":["prisma","executePrismaTool"],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { prisma } from \"./app\";\nimport { executePrismaTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof prisma.credential> {\n return prisma.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executePrismaTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOsD;CACtD,OAAOA,YAAAA,OAAO,OAAO;EACnB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,kBAAkB,MAAM,KAAgC,CAAC;EACzF;CACF,CAAC;AACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { prisma } from \"./app\";\nimport { executePrismaTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return prisma.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executePrismaTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,OAAO,OAAO;EACnB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,kBAAkB,MAAM,KAAgC,CAAC;EACzF;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { prisma } from \"./app\";\nimport { executePrismaTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof prisma.credential> {\n return prisma.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executePrismaTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOsD;CACtD,OAAO,OAAO,OAAO;EACnB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,kBAAkB,MAAM,KAAgC,CAAC;EACzF;CACF,CAAC;AACH"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/create-connection.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-connection.cjs","names":["z","action"],"sources":["../../src/actions/create-connection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaCreateConnectionInput = z.object({\n name: z.string().describe(\"Human-readable name for the new connection/API key. This will be displayed in UIs and used for identification. Choose descriptive names like 'Production API Key', 'Analytics Access', 'Dev Environment', etc.\"),\n databaseId: z.string().describe(\"Unique database identifier to create connection for (format: 'db_xxxxx'). Must be a database the authenticated user has write access to. The new connection will provide API key access to this database.\"),\n}).describe(\"Request parameters for creating a new database connection.\");\nconst PrismaCreateConnection_DatabaseInfoSchema = z.object({\n id: z.string().describe(\"Unique database ID containing this connection.\").nullable(),\n name: z.string().describe(\"Human-readable database name.\").nullable(),\n}).passthrough().describe(\"Database information in connection response.\");\nconst PrismaCreateConnection_CreatedConnectionSchema = z.object({\n id: z.string().describe(\"Unique connection identifier for future operations.\").nullable(),\n host: z.string().describe(\"Database host endpoint with port (e.g., 'db.prisma.io:5432'). Use for direct database connections when not using the connection string.\").nullable(),\n name: z.string().describe(\"Connection name as specified in request.\").nullable(),\n pass: z.string().describe(\"Database password (secret key) for authentication. Use with 'user' field for direct database connections. Store securely as it provides database access.\").nullable(),\n type: z.string().describe(\"Object type, always 'connection'.\").nullable(),\n user: z.string().describe(\"Database username (tenant ID) for authentication. Use with 'pass' field for direct database connections.\").nullable(),\n database: PrismaCreateConnection_DatabaseInfoSchema.nullable(),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp.\").nullable(),\n connectionString: z.string().describe(\"Complete database connection string with embedded API key credentials. Use this string to connect applications to the database. Contains authentication tokens and endpoint information. Store securely as it provides full database access.\").nullable(),\n}).passthrough().describe(\"Complete connection object returned after creation.\");\nexport const PrismaCreateConnectionOutput = z.object({\n data: PrismaCreateConnection_CreatedConnectionSchema.nullable(),\n}).passthrough().describe(\"API response containing newly created connection with credentials.\");\n\nexport const prismaCreateConnection = action(\"PRISMA_CREATE_CONNECTION\", {\n slug: \"prisma-create-connection\",\n name: \"Create Database Connection\",\n description: \"Create new API key connection for database access. Creates connection string with embedded credentials for application database access. Returns complete connection details ready for immediate use.\",\n input: PrismaCreateConnectionInput,\n output: PrismaCreateConnectionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gNAAgN;CAC1O,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2MAA2M;AAC7O,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACnF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;AACtE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AACxE,MAAM,iDAAiDA,IAAAA,EAAE,OAAO;CAC9D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACxF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yIAAyI,CAAC,CAAC,SAAS;CAC9K,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC/E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0JAA0J,CAAC,CAAC,SAAS;CAC/L,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACxE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;CAC/I,UAAU,0CAA0C,SAAS;CAC7D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACxE,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8OAA8O,CAAC,CAAC,SAAS;AACjS,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAC/E,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,MAAM,+CAA+C,SAAS,EAChE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oEAAoE;AAE9F,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-connection.cjs","names":["z","action"],"sources":["../../src/actions/create-connection.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { prisma } from \"../app\";\n\nexport const PrismaCreateConnectionInput = z.object({\n name: z.string().describe(\"Human-readable name for the new connection/API key. This will be displayed in UIs and used for identification. Choose descriptive names like 'Production API Key', 'Analytics Access', 'Dev Environment', etc.\"),\n databaseId: z.string().describe(\"Unique database identifier to create connection for (format: 'db_xxxxx'). Must be a database the authenticated user has write access to. The new connection will provide API key access to this database.\"),\n}).describe(\"Request parameters for creating a new database connection.\");\nconst PrismaCreateConnection_DatabaseInfoSchema = z.object({\n id: z.string().describe(\"Unique database ID containing this connection.\").nullable(),\n name: z.string().describe(\"Human-readable database name.\").nullable(),\n}).passthrough().describe(\"Database information in connection response.\");\nconst PrismaCreateConnection_CreatedConnectionSchema = z.object({\n id: z.string().describe(\"Unique connection identifier for future operations.\").nullable(),\n host: z.string().describe(\"Database host endpoint with port (e.g., 'db.prisma.io:5432'). Use for direct database connections when not using the connection string.\").nullable(),\n name: z.string().describe(\"Connection name as specified in request.\").nullable(),\n pass: z.string().describe(\"Database password (secret key) for authentication. Use with 'user' field for direct database connections. Store securely as it provides database access.\").nullable(),\n type: z.string().describe(\"Object type, always 'connection'.\").nullable(),\n user: z.string().describe(\"Database username (tenant ID) for authentication. Use with 'pass' field for direct database connections.\").nullable(),\n database: PrismaCreateConnection_DatabaseInfoSchema.nullable(),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp.\").nullable(),\n connectionString: z.string().describe(\"Complete database connection string with embedded API key credentials. Use this string to connect applications to the database. Contains authentication tokens and endpoint information. Store securely as it provides full database access.\").nullable(),\n}).passthrough().describe(\"Complete connection object returned after creation.\");\nexport const PrismaCreateConnectionOutput = z.object({\n data: PrismaCreateConnection_CreatedConnectionSchema.nullable(),\n}).passthrough().describe(\"API response containing newly created connection with credentials.\");\n\nexport const prismaCreateConnection: AppAction<\n typeof PrismaCreateConnectionInput,\n typeof PrismaCreateConnectionOutput,\n typeof prisma.credential\n> = action(\"PRISMA_CREATE_CONNECTION\", {\n slug: \"prisma-create-connection\",\n name: \"Create Database Connection\",\n description: \"Create new API key connection for database access. Creates connection string with embedded credentials for application database access. Returns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CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAC/E,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,MAAM,+CAA+C,SAAS,EAChE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oEAAoE;AAE9F,MAAa,yBAITC,eAAAA,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { prisma } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-connection.d.ts
@@ -21,10 +23,7 @@ declare const PrismaCreateConnectionOutput: z.ZodObject<{
21
23
  connectionString: z.ZodNullable<z.ZodString>;
22
24
  }, z.core.$loose>>;
23
25
  }, z.core.$loose>;
24
- declare const prismaCreateConnection: import("@keystrokehq/action").WorkflowActionDefinition<{
25
- name: string;
26
- databaseId: string;
27
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
26
+ declare const prismaCreateConnection: AppAction<typeof PrismaCreateConnectionInput, typeof PrismaCreateConnectionOutput, typeof prisma.credential>;
28
27
  //#endregion
29
28
  export { prismaCreateConnection };
30
29
  //# sourceMappingURL=create-connection.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-connection.d.cts","names":[],"sources":["../../src/actions/create-connection.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;cAmB3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAI5B,sBAAA,gCAAsB,wBAAA"}
1
+ {"version":3,"file":"create-connection.d.cts","names":[],"sources":["../../src/actions/create-connection.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;cAmB3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAI5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { prisma } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-connection.d.ts
@@ -21,10 +23,7 @@ declare const PrismaCreateConnectionOutput: z.ZodObject<{
21
23
  connectionString: z.ZodNullable<z.ZodString>;
22
24
  }, z.core.$loose>>;
23
25
  }, z.core.$loose>;
24
- declare const prismaCreateConnection: import("@keystrokehq/action").WorkflowActionDefinition<{
25
- name: string;
26
- databaseId: string;
27
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
26
+ declare const prismaCreateConnection: AppAction<typeof PrismaCreateConnectionInput, typeof PrismaCreateConnectionOutput, typeof prisma.credential>;
28
27
  //#endregion
29
28
  export { prismaCreateConnection };
30
29
  //# sourceMappingURL=create-connection.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-connection.d.mts","names":[],"sources":["../../src/actions/create-connection.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;cAmB3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAI5B,sBAAA,gCAAsB,wBAAA"}
1
+ {"version":3,"file":"create-connection.d.mts","names":[],"sources":["../../src/actions/create-connection.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;cAmB3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAI5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/create-connection.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-connection.mjs","names":[],"sources":["../../src/actions/create-connection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaCreateConnectionInput = z.object({\n name: z.string().describe(\"Human-readable name for the new connection/API key. This will be displayed in UIs and used for identification. Choose descriptive names like 'Production API Key', 'Analytics Access', 'Dev Environment', etc.\"),\n databaseId: z.string().describe(\"Unique database identifier to create connection for (format: 'db_xxxxx'). Must be a database the authenticated user has write access to. The new connection will provide API key access to this database.\"),\n}).describe(\"Request parameters for creating a new database connection.\");\nconst PrismaCreateConnection_DatabaseInfoSchema = z.object({\n id: z.string().describe(\"Unique database ID containing this connection.\").nullable(),\n name: z.string().describe(\"Human-readable database name.\").nullable(),\n}).passthrough().describe(\"Database information in connection response.\");\nconst PrismaCreateConnection_CreatedConnectionSchema = z.object({\n id: z.string().describe(\"Unique connection identifier for future operations.\").nullable(),\n host: z.string().describe(\"Database host endpoint with port (e.g., 'db.prisma.io:5432'). Use for direct database connections when not using the connection string.\").nullable(),\n name: z.string().describe(\"Connection name as specified in request.\").nullable(),\n pass: z.string().describe(\"Database password (secret key) for authentication. Use with 'user' field for direct database connections. Store securely as it provides database access.\").nullable(),\n type: z.string().describe(\"Object type, always 'connection'.\").nullable(),\n user: z.string().describe(\"Database username (tenant ID) for authentication. Use with 'pass' field for direct database connections.\").nullable(),\n database: PrismaCreateConnection_DatabaseInfoSchema.nullable(),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp.\").nullable(),\n connectionString: z.string().describe(\"Complete database connection string with embedded API key credentials. Use this string to connect applications to the database. Contains authentication tokens and endpoint information. Store securely as it provides full database access.\").nullable(),\n}).passthrough().describe(\"Complete connection object returned after creation.\");\nexport const PrismaCreateConnectionOutput = z.object({\n data: PrismaCreateConnection_CreatedConnectionSchema.nullable(),\n}).passthrough().describe(\"API response containing newly created connection with credentials.\");\n\nexport const prismaCreateConnection = action(\"PRISMA_CREATE_CONNECTION\", {\n slug: \"prisma-create-connection\",\n name: \"Create Database Connection\",\n description: \"Create new API key connection for database access. Creates connection string with embedded credentials for application database access. Returns complete connection details ready for immediate use.\",\n input: PrismaCreateConnectionInput,\n output: PrismaCreateConnectionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO;CAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gNAAgN;CAC1O,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2MAA2M;AAC7O,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,4CAA4C,EAAE,OAAO;CACzD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACnF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;AACtE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AACxE,MAAM,iDAAiD,EAAE,OAAO;CAC9D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACxF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yIAAyI,CAAC,CAAC,SAAS;CAC9K,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC/E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0JAA0J,CAAC,CAAC,SAAS;CAC/L,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACxE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;CAC/I,UAAU,0CAA0C,SAAS;CAC7D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACxE,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,8OAA8O,CAAC,CAAC,SAAS;AACjS,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAK/E,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT0C,EAAE,OAAO,EACnD,MAAM,+CAA+C,SAAS,EAChE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oEAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"create-connection.mjs","names":[],"sources":["../../src/actions/create-connection.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { prisma } from \"../app\";\n\nexport const PrismaCreateConnectionInput = z.object({\n name: z.string().describe(\"Human-readable name for the new connection/API key. This will be displayed in UIs and used for identification. Choose descriptive names like 'Production API Key', 'Analytics Access', 'Dev Environment', etc.\"),\n databaseId: z.string().describe(\"Unique database identifier to create connection for (format: 'db_xxxxx'). Must be a database the authenticated user has write access to. The new connection will provide API key access to this database.\"),\n}).describe(\"Request parameters for creating a new database connection.\");\nconst PrismaCreateConnection_DatabaseInfoSchema = z.object({\n id: z.string().describe(\"Unique database ID containing this connection.\").nullable(),\n name: z.string().describe(\"Human-readable database name.\").nullable(),\n}).passthrough().describe(\"Database information in connection response.\");\nconst PrismaCreateConnection_CreatedConnectionSchema = z.object({\n id: z.string().describe(\"Unique connection identifier for future operations.\").nullable(),\n host: z.string().describe(\"Database host endpoint with port (e.g., 'db.prisma.io:5432'). Use for direct database connections when not using the connection string.\").nullable(),\n name: z.string().describe(\"Connection name as specified in request.\").nullable(),\n pass: z.string().describe(\"Database password (secret key) for authentication. Use with 'user' field for direct database connections. Store securely as it provides database access.\").nullable(),\n type: z.string().describe(\"Object type, always 'connection'.\").nullable(),\n user: z.string().describe(\"Database username (tenant ID) for authentication. Use with 'pass' field for direct database connections.\").nullable(),\n database: PrismaCreateConnection_DatabaseInfoSchema.nullable(),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp.\").nullable(),\n connectionString: z.string().describe(\"Complete database connection string with embedded API key credentials. Use this string to connect applications to the database. Contains authentication tokens and endpoint information. Store securely as it provides full database access.\").nullable(),\n}).passthrough().describe(\"Complete connection object returned after creation.\");\nexport const PrismaCreateConnectionOutput = z.object({\n data: PrismaCreateConnection_CreatedConnectionSchema.nullable(),\n}).passthrough().describe(\"API response containing newly created connection with credentials.\");\n\nexport const prismaCreateConnection: AppAction<\n typeof PrismaCreateConnectionInput,\n typeof PrismaCreateConnectionOutput,\n typeof prisma.credential\n> = action(\"PRISMA_CREATE_CONNECTION\", {\n slug: \"prisma-create-connection\",\n name: \"Create Database Connection\",\n description: \"Create new API key connection for database access. Creates connection string with embedded credentials for application database access. Returns complete connection details ready for immediate use.\",\n input: PrismaCreateConnectionInput,\n output: PrismaCreateConnectionOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8B,EAAE,OAAO;CAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gNAAgN;CAC1O,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2MAA2M;AAC7O,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,4CAA4C,EAAE,OAAO;CACzD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACnF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;AACtE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AACxE,MAAM,iDAAiD,EAAE,OAAO;CAC9D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACxF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yIAAyI,CAAC,CAAC,SAAS;CAC9K,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC/E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0JAA0J,CAAC,CAAC,SAAS;CAC/L,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACxE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;CAC/I,UAAU,0CAA0C,SAAS;CAC7D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACxE,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,8OAA8O,CAAC,CAAC,SAAS;AACjS,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAK/E,MAAa,yBAIT,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAb0C,EAAE,OAAO,EACnD,MAAM,+CAA+C,SAAS,EAChE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oEAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/create-database.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-database.cjs","names":["z","action"],"sources":["../../src/actions/create-database.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaCreateDatabaseInput = z.object({\n name: z.string().describe(\"Human-readable name for the new database. This will be displayed in UIs and used for identification. Choose descriptive names like 'Production DB', 'Analytics', etc.\"),\n region: z.string().describe(\"AWS region where the database will be deployed. Valid values: 'us-east-1', 'us-west-1', 'eu-central-1', 'eu-west-3', 'ap-southeast-1', 'ap-northeast-1'. Choose region closest to your users for optimal performance. Use LIST_POSTGRES_REGIONS to get current available regions.\"),\n isDefault: z.boolean().default(false).describe(\"Whether this database should be the default for the project. Default false. Only one database can be default per project. Setting to true will make other databases non-default.\").optional(),\n projectId: z.string().describe(\"Unique project identifier to create database in (format: 'prj_xxxxx'). Must be a project the authenticated user has write access to. The new database will belong to this project.\"),\n}).describe(\"Request parameters for creating a new database in a project.\");\nconst PrismaCreateDatabase_RegionInfoSchema = z.object({\n id: z.string().describe(\"Region identifier (e.g., 'us-east-1').\").nullable(),\n name: z.string().describe(\"Human-readable region name.\").nullable(),\n}).passthrough().describe(\"Database region information.\");\nconst PrismaCreateDatabase_DirectConnectionSchema = z.object({\n host: z.string().describe(\"Database host and port (e.g., 'db.prisma.io:5432').\").nullable(),\n pass: z.string().describe(\"Database password for authentication. Use with host and user for direct connections.\").nullable(),\n user: z.string().describe(\"Database username for authentication.\").nullable(),\n}).passthrough().describe(\"Direct database connection credentials for non-Prisma clients.\");\nconst PrismaCreateDatabase_ApiKeySchema = z.object({\n id: z.string().describe(\"Unique API key identifier.\").nullable(),\n name: z.string().describe(\"Human-readable API key name.\").nullable(),\n type: z.string().describe(\"Key type, typically 'connection'.\").nullable(),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp.\").nullable(),\n connectionString: z.string().describe(\"Prisma connection string for use with Prisma Client.\").nullable(),\n directConnection: PrismaCreateDatabase_DirectConnectionSchema.nullable().optional(),\n}).passthrough().describe(\"Database API key for connection.\");\nconst PrismaCreateDatabase_ProjectInfoSchema = z.object({\n id: z.string().describe(\"Unique project ID containing this database.\").nullable(),\n name: z.string().describe(\"Human-readable project name.\").nullable(),\n}).passthrough().describe(\"Project information in database response.\");\nconst PrismaCreateDatabase_CreatedDatabaseSchema = z.object({\n id: z.string().describe(\"Unique database identifier (format: 'db_xxxxx') for future operations.\").nullable(),\n name: z.string().describe(\"Database name as specified in request.\").nullable(),\n type: z.string().describe(\"Object type, always 'database'.\").nullable(),\n region: PrismaCreateDatabase_RegionInfoSchema.nullable(),\n status: z.string().describe(\"Current database status: 'ready' (available), 'provisioning' (creating).\").nullable(),\n apiKeys: z.array(PrismaCreateDatabase_ApiKeySchema).describe(\"List of API keys for database access.\"),\n project: PrismaCreateDatabase_ProjectInfoSchema.nullable(),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp.\").nullable(),\n isDefault: z.boolean().describe(\"True if this is the default database for the project.\").nullable(),\n connectionString: z.string().describe(\"Primary Prisma connection string for use with Prisma Client.\").nullable(),\n directConnection: PrismaCreateDatabase_DirectConnectionSchema.nullable().optional(),\n}).passthrough().describe(\"Complete database object returned after creation.\");\nexport const PrismaCreateDatabaseOutput = z.object({\n data: PrismaCreateDatabase_CreatedDatabaseSchema.nullable(),\n}).passthrough().describe(\"API response containing newly created database with connection details.\");\n\nexport const prismaCreateDatabase = action(\"PRISMA_CREATE_DATABASE\", {\n slug: \"prisma-create-database\",\n name: \"Create Project Database\",\n description: \"Create new postgres database in an existing Prisma project. Creates database in specified region with connection strings and API keys. Returns complete database details ready for immediate use.\",\n input: PrismaCreateDatabaseInput,\n output: PrismaCreateDatabaseOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uKAAuK;CACjM,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mRAAmR;CAC/S,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,kLAAkL,CAAC,CAAC,SAAS;CAC5O,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oLAAoL;AACrN,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,wCAAwCA,IAAAA,EAAE,OAAO;CACrD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC3E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;AACpE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8BAA8B;AACxD,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAC1F,MAAMA,IAAAA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AAiC,CAAC,CAAC,SAAS;CACtE,QAAQ,sCAAsC,SAAS;CACvD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CACjH,SAASA,IAAAA,EAAE,MAAM,iCAAiC,CAAC,CAAC,SAAS,uCAAuC;CACpG,SAAS,uCAAuC,SAAS;CACzD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACxE,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAClG,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CAC/G,kBAAkB,4CAA4C,SAAS,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAC7E,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,MAAM,2CAA2C,SAAS,EAC5D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yEAAyE;AAEnG,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-database.cjs","names":["z","action"],"sources":["../../src/actions/create-database.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { prisma } from \"../app\";\n\nexport const PrismaCreateDatabaseInput = z.object({\n name: z.string().describe(\"Human-readable name for the new database. This will be displayed in UIs and used for identification. Choose descriptive names like 'Production DB', 'Analytics', etc.\"),\n region: z.string().describe(\"AWS region where the database will be deployed. Valid values: 'us-east-1', 'us-west-1', 'eu-central-1', 'eu-west-3', 'ap-southeast-1', 'ap-northeast-1'. Choose region closest to your users for optimal performance. Use LIST_POSTGRES_REGIONS to get current available regions.\"),\n isDefault: z.boolean().default(false).describe(\"Whether this database should be the default for the project. Default false. Only one database can be default per project. Setting to true will make other databases non-default.\").optional(),\n projectId: z.string().describe(\"Unique project identifier to create database in (format: 'prj_xxxxx'). Must be a project the authenticated user has write access to. The new database will belong to this project.\"),\n}).describe(\"Request parameters for creating a new database in a project.\");\nconst PrismaCreateDatabase_RegionInfoSchema = z.object({\n id: z.string().describe(\"Region identifier (e.g., 'us-east-1').\").nullable(),\n name: z.string().describe(\"Human-readable region name.\").nullable(),\n}).passthrough().describe(\"Database region information.\");\nconst PrismaCreateDatabase_DirectConnectionSchema = z.object({\n host: z.string().describe(\"Database host and port (e.g., 'db.prisma.io:5432').\").nullable(),\n pass: z.string().describe(\"Database password for authentication. Use with host and user for direct connections.\").nullable(),\n user: z.string().describe(\"Database username for authentication.\").nullable(),\n}).passthrough().describe(\"Direct database connection credentials for non-Prisma clients.\");\nconst PrismaCreateDatabase_ApiKeySchema = z.object({\n id: z.string().describe(\"Unique API key identifier.\").nullable(),\n name: z.string().describe(\"Human-readable API key name.\").nullable(),\n type: z.string().describe(\"Key type, typically 'connection'.\").nullable(),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp.\").nullable(),\n connectionString: z.string().describe(\"Prisma connection string for use with Prisma Client.\").nullable(),\n directConnection: PrismaCreateDatabase_DirectConnectionSchema.nullable().optional(),\n}).passthrough().describe(\"Database API key for connection.\");\nconst PrismaCreateDatabase_ProjectInfoSchema = z.object({\n id: z.string().describe(\"Unique project ID containing this database.\").nullable(),\n name: z.string().describe(\"Human-readable project name.\").nullable(),\n}).passthrough().describe(\"Project information in database response.\");\nconst PrismaCreateDatabase_CreatedDatabaseSchema = z.object({\n id: z.string().describe(\"Unique database identifier (format: 'db_xxxxx') for future operations.\").nullable(),\n name: z.string().describe(\"Database name as specified in request.\").nullable(),\n type: z.string().describe(\"Object type, always 'database'.\").nullable(),\n region: PrismaCreateDatabase_RegionInfoSchema.nullable(),\n status: z.string().describe(\"Current database status: 'ready' (available), 'provisioning' (creating).\").nullable(),\n apiKeys: z.array(PrismaCreateDatabase_ApiKeySchema).describe(\"List of API keys for database access.\"),\n project: PrismaCreateDatabase_ProjectInfoSchema.nullable(),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp.\").nullable(),\n isDefault: z.boolean().describe(\"True if this is the default database for the project.\").nullable(),\n connectionString: z.string().describe(\"Primary Prisma connection string for use with Prisma Client.\").nullable(),\n directConnection: PrismaCreateDatabase_DirectConnectionSchema.nullable().optional(),\n}).passthrough().describe(\"Complete database object returned after creation.\");\nexport const PrismaCreateDatabaseOutput = z.object({\n data: PrismaCreateDatabase_CreatedDatabaseSchema.nullable(),\n}).passthrough().describe(\"API response containing newly created database with connection details.\");\n\nexport const prismaCreateDatabase: AppAction<\n typeof PrismaCreateDatabaseInput,\n typeof PrismaCreateDatabaseOutput,\n typeof prisma.credential\n> = action(\"PRISMA_CREATE_DATABASE\", {\n slug: \"prisma-create-database\",\n name: \"Create Project Database\",\n description: \"Create new postgres database in an existing Prisma project. Creates database in specified region with connection strings and API keys. Returns complete database details ready for immediate use.\",\n input: PrismaCreateDatabaseInput,\n output: PrismaCreateDatabaseOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uKAAuK;CACjM,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mRAAmR;CAC/S,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,kLAAkL,CAAC,CAAC,SAAS;CAC5O,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oLAAoL;AACrN,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,wCAAwCA,IAAAA,EAAE,OAAO;CACrD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC3E,MA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AAS,2CAA2C;AACrE,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CAC3G,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC7E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACtE,QAAQ,sCAAsC,SAAS;CACvD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CACjH,SAASA,IAAAA,EAAE,MAAM,iCAAiC,CAAC,CAAC,SAAS,uCAAuC;CACpG,SAAS,uCAAuC,SAAS;CACzD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACxE,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAClG,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CAC/G,kBAAkB,4CAA4C,SAAS,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAC7E,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,MAAM,2CAA2C,SAAS,EAC5D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yEAAyE;AAEnG,MAAa,uBAITC,eAAAA,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { prisma } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-database.d.ts
@@ -43,12 +45,7 @@ declare const PrismaCreateDatabaseOutput: z.ZodObject<{
43
45
  }, z.core.$loose>>>;
44
46
  }, z.core.$loose>>;
45
47
  }, z.core.$loose>;
46
- declare const prismaCreateDatabase: import("@keystrokehq/action").WorkflowActionDefinition<{
47
- name: string;
48
- region: string;
49
- projectId: string;
50
- isDefault?: boolean | undefined;
51
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
48
+ declare const prismaCreateDatabase: AppAction<typeof PrismaCreateDatabaseInput, typeof PrismaCreateDatabaseOutput, typeof prisma.credential>;
52
49
  //#endregion
53
50
  export { prismaCreateDatabase };
54
51
  //# sourceMappingURL=create-database.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-database.d.cts","names":[],"sources":["../../src/actions/create-database.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;cAwCzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAI1B,oBAAA,gCAAoB,wBAAA"}
1
+ {"version":3,"file":"create-database.d.cts","names":[],"sources":["../../src/actions/create-database.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;cAwCzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAI1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { prisma } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-database.d.ts
@@ -43,12 +45,7 @@ declare const PrismaCreateDatabaseOutput: z.ZodObject<{
43
45
  }, z.core.$loose>>>;
44
46
  }, z.core.$loose>>;
45
47
  }, z.core.$loose>;
46
- declare const prismaCreateDatabase: import("@keystrokehq/action").WorkflowActionDefinition<{
47
- name: string;
48
- region: string;
49
- projectId: string;
50
- isDefault?: boolean | undefined;
51
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
48
+ declare const prismaCreateDatabase: AppAction<typeof PrismaCreateDatabaseInput, typeof PrismaCreateDatabaseOutput, typeof prisma.credential>;
52
49
  //#endregion
53
50
  export { prismaCreateDatabase };
54
51
  //# sourceMappingURL=create-database.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-database.d.mts","names":[],"sources":["../../src/actions/create-database.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;cAwCzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAI1B,oBAAA,gCAAoB,wBAAA"}
1
+ {"version":3,"file":"create-database.d.mts","names":[],"sources":["../../src/actions/create-database.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;cAwCzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAI1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/create-database.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-database.mjs","names":[],"sources":["../../src/actions/create-database.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaCreateDatabaseInput = z.object({\n name: z.string().describe(\"Human-readable name for the new database. This will be displayed in UIs and used for identification. Choose descriptive names like 'Production DB', 'Analytics', etc.\"),\n region: z.string().describe(\"AWS region where the database will be deployed. Valid values: 'us-east-1', 'us-west-1', 'eu-central-1', 'eu-west-3', 'ap-southeast-1', 'ap-northeast-1'. Choose region closest to your users for optimal performance. Use LIST_POSTGRES_REGIONS to get current available regions.\"),\n isDefault: z.boolean().default(false).describe(\"Whether this database should be the default for the project. Default false. Only one database can be default per project. Setting to true will make other databases non-default.\").optional(),\n projectId: z.string().describe(\"Unique project identifier to create database in (format: 'prj_xxxxx'). Must be a project the authenticated user has write access to. The new database will belong to this project.\"),\n}).describe(\"Request parameters for creating a new database in a project.\");\nconst PrismaCreateDatabase_RegionInfoSchema = z.object({\n id: z.string().describe(\"Region identifier (e.g., 'us-east-1').\").nullable(),\n name: z.string().describe(\"Human-readable region name.\").nullable(),\n}).passthrough().describe(\"Database region information.\");\nconst PrismaCreateDatabase_DirectConnectionSchema = z.object({\n host: z.string().describe(\"Database host and port (e.g., 'db.prisma.io:5432').\").nullable(),\n pass: z.string().describe(\"Database password for authentication. Use with host and user for direct connections.\").nullable(),\n user: z.string().describe(\"Database username for authentication.\").nullable(),\n}).passthrough().describe(\"Direct database connection credentials for non-Prisma clients.\");\nconst PrismaCreateDatabase_ApiKeySchema = z.object({\n id: z.string().describe(\"Unique API key identifier.\").nullable(),\n name: z.string().describe(\"Human-readable API key name.\").nullable(),\n type: z.string().describe(\"Key type, typically 'connection'.\").nullable(),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp.\").nullable(),\n connectionString: z.string().describe(\"Prisma connection string for use with Prisma Client.\").nullable(),\n directConnection: PrismaCreateDatabase_DirectConnectionSchema.nullable().optional(),\n}).passthrough().describe(\"Database API key for connection.\");\nconst PrismaCreateDatabase_ProjectInfoSchema = z.object({\n id: z.string().describe(\"Unique project ID containing this database.\").nullable(),\n name: z.string().describe(\"Human-readable project name.\").nullable(),\n}).passthrough().describe(\"Project information in database response.\");\nconst PrismaCreateDatabase_CreatedDatabaseSchema = z.object({\n id: z.string().describe(\"Unique database identifier (format: 'db_xxxxx') for future operations.\").nullable(),\n name: z.string().describe(\"Database name as specified in request.\").nullable(),\n type: z.string().describe(\"Object type, always 'database'.\").nullable(),\n region: PrismaCreateDatabase_RegionInfoSchema.nullable(),\n status: z.string().describe(\"Current database status: 'ready' (available), 'provisioning' (creating).\").nullable(),\n apiKeys: z.array(PrismaCreateDatabase_ApiKeySchema).describe(\"List of API keys for database access.\"),\n project: PrismaCreateDatabase_ProjectInfoSchema.nullable(),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp.\").nullable(),\n isDefault: z.boolean().describe(\"True if this is the default database for the project.\").nullable(),\n connectionString: z.string().describe(\"Primary Prisma connection string for use with Prisma Client.\").nullable(),\n directConnection: PrismaCreateDatabase_DirectConnectionSchema.nullable().optional(),\n}).passthrough().describe(\"Complete database object returned after creation.\");\nexport const PrismaCreateDatabaseOutput = z.object({\n data: PrismaCreateDatabase_CreatedDatabaseSchema.nullable(),\n}).passthrough().describe(\"API response containing newly created database with connection details.\");\n\nexport const prismaCreateDatabase = action(\"PRISMA_CREATE_DATABASE\", {\n slug: \"prisma-create-database\",\n name: \"Create Project Database\",\n description: \"Create new postgres database in an existing Prisma project. Creates database in specified region with connection strings and API keys. Returns complete database details ready for immediate use.\",\n input: PrismaCreateDatabaseInput,\n output: PrismaCreateDatabaseOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO;CAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uKAAuK;CACjM,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mRAAmR;CAC/S,WAAW,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,kLAAkL,CAAC,CAAC,SAAS;CAC5O,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oLAAoL;AACrN,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,wCAAwC,EAAE,OAAO;CACrD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC3E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,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CAAwC,CAAC,CAAC,SAAS;CAC7E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACtE,QAAQ,sCAAsC,SAAS;CACvD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CACjH,SAAS,EAAE,MAAM,iCAAiC,CAAC,CAAC,SAAS,uCAAuC;CACpG,SAAS,uCAAuC,SAAS;CACzD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACxE,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAClG,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CAC/G,kBAAkB,4CAA4C,SAAS,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAK7E,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATwC,EAAE,OAAO,EACjD,MAAM,2CAA2C,SAAS,EAC5D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yEAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"create-database.mjs","names":[],"sources":["../../src/actions/create-database.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { prisma } from \"../app\";\n\nexport const PrismaCreateDatabaseInput = z.object({\n name: z.string().describe(\"Human-readable name for the new database. This will be displayed in UIs and used for identification. Choose descriptive names like 'Production DB', 'Analytics', etc.\"),\n region: z.string().describe(\"AWS region where the database will be deployed. Valid values: 'us-east-1', 'us-west-1', 'eu-central-1', 'eu-west-3', 'ap-southeast-1', 'ap-northeast-1'. Choose region closest to your users for optimal performance. Use LIST_POSTGRES_REGIONS to get current available regions.\"),\n isDefault: z.boolean().default(false).describe(\"Whether this database should be the default for the project. Default false. Only one database can be default per project. Setting to true will make other databases non-default.\").optional(),\n projectId: z.string().describe(\"Unique project identifier to create database in (format: 'prj_xxxxx'). Must be a project the authenticated user has write access to. The new database will belong to this project.\"),\n}).describe(\"Request parameters for creating a new database in a project.\");\nconst PrismaCreateDatabase_RegionInfoSchema = z.object({\n id: z.string().describe(\"Region identifier (e.g., 'us-east-1').\").nullable(),\n name: z.string().describe(\"Human-readable region name.\").nullable(),\n}).passthrough().describe(\"Database region information.\");\nconst PrismaCreateDatabase_DirectConnectionSchema = z.object({\n host: z.string().describe(\"Database host and port (e.g., 'db.prisma.io:5432').\").nullable(),\n pass: z.string().describe(\"Database password for authentication. Use with host and user for direct connections.\").nullable(),\n user: z.string().describe(\"Database username for authentication.\").nullable(),\n}).passthrough().describe(\"Direct database connection credentials for non-Prisma clients.\");\nconst PrismaCreateDatabase_ApiKeySchema = z.object({\n id: z.string().describe(\"Unique API key identifier.\").nullable(),\n name: z.string().describe(\"Human-readable API key name.\").nullable(),\n type: z.string().describe(\"Key type, typically 'connection'.\").nullable(),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp.\").nullable(),\n connectionString: z.string().describe(\"Prisma connection string for use with Prisma Client.\").nullable(),\n directConnection: PrismaCreateDatabase_DirectConnectionSchema.nullable().optional(),\n}).passthrough().describe(\"Database API key for connection.\");\nconst PrismaCreateDatabase_ProjectInfoSchema = z.object({\n id: z.string().describe(\"Unique project ID containing this database.\").nullable(),\n name: z.string().describe(\"Human-readable project name.\").nullable(),\n}).passthrough().describe(\"Project information in database response.\");\nconst PrismaCreateDatabase_CreatedDatabaseSchema = z.object({\n id: z.string().describe(\"Unique database identifier (format: 'db_xxxxx') for future operations.\").nullable(),\n name: z.string().describe(\"Database name as specified in request.\").nullable(),\n type: z.string().describe(\"Object type, always 'database'.\").nullable(),\n region: PrismaCreateDatabase_RegionInfoSchema.nullable(),\n status: z.string().describe(\"Current database status: 'ready' (available), 'provisioning' (creating).\").nullable(),\n apiKeys: z.array(PrismaCreateDatabase_ApiKeySchema).describe(\"List of API keys for database access.\"),\n project: PrismaCreateDatabase_ProjectInfoSchema.nullable(),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp.\").nullable(),\n isDefault: z.boolean().describe(\"True if this is the default database for the project.\").nullable(),\n connectionString: z.string().describe(\"Primary Prisma connection string for use with Prisma Client.\").nullable(),\n directConnection: PrismaCreateDatabase_DirectConnectionSchema.nullable().optional(),\n}).passthrough().describe(\"Complete database object returned after creation.\");\nexport const PrismaCreateDatabaseOutput = z.object({\n data: PrismaCreateDatabase_CreatedDatabaseSchema.nullable(),\n}).passthrough().describe(\"API response containing newly created database with connection details.\");\n\nexport const prismaCreateDatabase: AppAction<\n typeof PrismaCreateDatabaseInput,\n typeof PrismaCreateDatabaseOutput,\n typeof prisma.credential\n> = action(\"PRISMA_CREATE_DATABASE\", {\n slug: \"prisma-create-database\",\n name: \"Create Project Database\",\n description: \"Create new postgres database in an existing Prisma project. Creates database in specified region with connection strings and API keys. Returns complete database details ready for immediate use.\",\n input: PrismaCreateDatabaseInput,\n output: PrismaCreateDatabaseOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,4BAA4B,EAAE,OAAO;CAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uKAAuK;CACjM,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mRAAmR;CAC/S,WAAW,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,kLAAkL,CAAC,CAAC,SAAS;CAC5O,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oLAAoL;AACrN,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,wCAAwC,EAAE,OAAO;CACrD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC3E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;AACpE,CAAC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7E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACtE,QAAQ,sCAAsC,SAAS;CACvD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CACjH,SAAS,EAAE,MAAM,iCAAiC,CAAC,CAAC,SAAS,uCAAuC;CACpG,SAAS,uCAAuC,SAAS;CACzD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACxE,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAClG,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CAC/G,kBAAkB,4CAA4C,SAAS,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAK7E,MAAa,uBAIT,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbwC,EAAE,OAAO,EACjD,MAAM,2CAA2C,SAAS,EAC5D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yEAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/create-project.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-project.cjs","names":["z","action"],"sources":["../../src/actions/create-project.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaCreateProjectInput = z.object({\n name: z.string().describe(\"Human-readable name for the new project. This will be displayed in UIs and used for identification. Choose descriptive names like 'Production API', 'Dev Environment', etc.\"),\n region: z.string().describe(\"AWS region where the postgres database will be deployed. Available regions: 'us-east-1', 'us-west-1', 'eu-central-1', 'eu-west-3', 'ap-southeast-1', 'ap-northeast-1'. Choose region closest to your users for optimal performance.\"),\n}).describe(\"Request parameters for creating a new Prisma project with postgres database.\");\nconst PrismaCreateProject_RegionInfoSchema = z.object({\n id: z.string().describe(\"Region identifier (e.g., 'us-east-1').\").nullable(),\n name: z.string().describe(\"Human-readable region name.\").nullable(),\n}).passthrough().describe(\"Database region information.\");\nconst PrismaCreateProject_DirectConnectionSchema = z.object({\n host: z.string().describe(\"PostgreSQL host and port (e.g., 'db.prisma.io:5432').\").nullable(),\n pass: z.string().describe(\"PostgreSQL password (secure key).\").nullable(),\n user: z.string().describe(\"PostgreSQL username (tenant ID).\").nullable(),\n}).passthrough().describe(\"Direct PostgreSQL connection credentials for bypassing Prisma Accelerate.\");\nconst PrismaCreateProject_ApiKeySchema = z.object({\n id: z.string().describe(\"Unique API key identifier.\").nullable(),\n name: z.string().describe(\"Human-readable API key name.\").nullable(),\n type: z.string().describe(\"Key type, typically 'connection'.\").nullable(),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp.\").nullable(),\n connectionString: z.string().describe(\"Database connection string with embedded credentials.\").nullable(),\n directConnection: PrismaCreateProject_DirectConnectionSchema.nullable().optional(),\n}).passthrough().describe(\"Database API key for connection.\");\nconst PrismaCreateProject_DatabaseSchema = z.object({\n id: z.string().describe(\"Unique database identifier.\").nullable(),\n name: z.string().describe(\"Database name.\").nullable(),\n type: z.string().describe(\"Database type, always 'database'.\").nullable(),\n region: PrismaCreateProject_RegionInfoSchema.nullable(),\n status: z.string().describe(\"Current database status (e.g., 'active', 'provisioning').\").nullable(),\n apiKeys: z.array(PrismaCreateProject_ApiKeySchema).describe(\"List of API keys for database access.\"),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp.\").nullable(),\n isDefault: z.boolean().describe(\"True if this is the default database for the project.\").nullable(),\n connectionString: z.string().describe(\"Primary database connection string.\").nullable(),\n directConnection: PrismaCreateProject_DirectConnectionSchema.nullable().optional(),\n}).passthrough().describe(\"Postgres database created with the project.\");\nconst PrismaCreateProject_WorkspaceInfoSchema = z.object({\n id: z.string().describe(\"Unique workspace ID containing this project.\").nullable(),\n name: z.string().describe(\"Human-readable workspace name.\").nullable(),\n}).passthrough().describe(\"Workspace information in project response.\");\nconst PrismaCreateProject_CreatedProjectSchema = z.object({\n id: z.string().describe(\"Unique project identifier for future operations.\").nullable(),\n name: z.string().describe(\"Project name as specified in request.\").nullable(),\n type: z.string().describe(\"Object type, always 'project'.\").nullable(),\n database: PrismaCreateProject_DatabaseSchema.nullable(),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp.\").nullable(),\n workspace: PrismaCreateProject_WorkspaceInfoSchema.nullable(),\n}).passthrough().describe(\"Complete project object returned after creation.\");\nexport const PrismaCreateProjectOutput = z.object({\n data: PrismaCreateProject_CreatedProjectSchema.nullable(),\n}).passthrough().describe(\"API response containing newly created project with database.\");\n\nexport const prismaCreateProject = action(\"PRISMA_CREATE_PROJECT\", {\n slug: \"prisma-create-project\",\n name: \"Create Prisma Project\",\n description: \"Create new Prisma project with managed postgres database. Creates project in authenticated user's workspace with postgres database in specified region. Returns complete project details including connection strings and API keys.\",\n input: PrismaCreateProjectInput,\n output: PrismaCreateProjectOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6KAA6K;CACvM,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qOAAqO;AACnQ,CAAC,CAAC,CAAC,SAAS,8EAA8E;AAC1F,MAAM,uCAAuCA,IAAAA,EAAE,OAAO;CACpD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC3E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;AACpE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8BAA8B;AACxD,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,MAAMA,IAAAA,EAAE,OAAO,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;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-project.cjs","names":["z","action"],"sources":["../../src/actions/create-project.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { prisma } from \"../app\";\n\nexport const 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: AppAction<\n typeof PrismaCreateProjectInput,\n typeof PrismaCreateProjectOutput,\n typeof prisma.credential\n> = 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"],"m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,CAAC,SAAS;CACrF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC5E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACrE,UAAU,mCAAmC,SAAS;CACtD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACxE,WAAW,wCAAwC,SAAS;AAC9D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAC5E,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,MAAM,yCAAyC,SAAS,EAC1D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8DAA8D;AAExF,MAAa,sBAITC,eAAAA,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { prisma } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-project.d.ts
@@ -47,10 +49,7 @@ declare const PrismaCreateProjectOutput: z.ZodObject<{
47
49
  }, z.core.$loose>>;
48
50
  }, z.core.$loose>>;
49
51
  }, z.core.$loose>;
50
- declare const prismaCreateProject: import("@keystrokehq/action").WorkflowActionDefinition<{
51
- name: string;
52
- region: string;
53
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
52
+ declare const prismaCreateProject: AppAction<typeof PrismaCreateProjectInput, typeof PrismaCreateProjectOutput, typeof prisma.credential>;
54
53
  //#endregion
55
54
  export { prismaCreateProject };
56
55
  //# sourceMappingURL=create-project.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-project.d.cts","names":[],"sources":["../../src/actions/create-project.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cA6CxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAIzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"create-project.d.cts","names":[],"sources":["../../src/actions/create-project.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cA6CxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAIzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { prisma } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-project.d.ts
@@ -47,10 +49,7 @@ declare const PrismaCreateProjectOutput: z.ZodObject<{
47
49
  }, z.core.$loose>>;
48
50
  }, z.core.$loose>>;
49
51
  }, z.core.$loose>;
50
- declare const prismaCreateProject: import("@keystrokehq/action").WorkflowActionDefinition<{
51
- name: string;
52
- region: string;
53
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
52
+ declare const prismaCreateProject: AppAction<typeof PrismaCreateProjectInput, typeof PrismaCreateProjectOutput, typeof prisma.credential>;
54
53
  //#endregion
55
54
  export { prismaCreateProject };
56
55
  //# sourceMappingURL=create-project.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-project.d.mts","names":[],"sources":["../../src/actions/create-project.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cA6CxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAIzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"create-project.d.mts","names":[],"sources":["../../src/actions/create-project.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cA6CxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAIzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/create-project.ts
@@ -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}).passthrough().describe(\"Database region information.\");\nconst PrismaCreateProject_DirectConnectionSchema = z.object({\n host: z.string().describe(\"PostgreSQL host and port (e.g., 'db.prisma.io:5432').\").nullable(),\n pass: z.string().describe(\"PostgreSQL password (secure key).\").nullable(),\n user: z.string().describe(\"PostgreSQL username (tenant ID).\").nullable(),\n}).passthrough().describe(\"Direct PostgreSQL connection credentials for bypassing Prisma Accelerate.\");\nconst PrismaCreateProject_ApiKeySchema = z.object({\n id: z.string().describe(\"Unique API key identifier.\").nullable(),\n name: z.string().describe(\"Human-readable API key name.\").nullable(),\n type: z.string().describe(\"Key type, typically 'connection'.\").nullable(),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp.\").nullable(),\n connectionString: z.string().describe(\"Database connection string with embedded credentials.\").nullable(),\n directConnection: PrismaCreateProject_DirectConnectionSchema.nullable().optional(),\n}).passthrough().describe(\"Database API key for connection.\");\nconst PrismaCreateProject_DatabaseSchema = z.object({\n id: z.string().describe(\"Unique database identifier.\").nullable(),\n name: z.string().describe(\"Database name.\").nullable(),\n type: z.string().describe(\"Database type, always 'database'.\").nullable(),\n region: PrismaCreateProject_RegionInfoSchema.nullable(),\n status: z.string().describe(\"Current database status (e.g., 'active', 'provisioning').\").nullable(),\n apiKeys: z.array(PrismaCreateProject_ApiKeySchema).describe(\"List of API keys for database access.\"),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp.\").nullable(),\n isDefault: z.boolean().describe(\"True if this is the default database for the project.\").nullable(),\n connectionString: z.string().describe(\"Primary database connection string.\").nullable(),\n directConnection: PrismaCreateProject_DirectConnectionSchema.nullable().optional(),\n}).passthrough().describe(\"Postgres database created with the project.\");\nconst PrismaCreateProject_WorkspaceInfoSchema = z.object({\n id: z.string().describe(\"Unique workspace ID containing this project.\").nullable(),\n name: z.string().describe(\"Human-readable workspace name.\").nullable(),\n}).passthrough().describe(\"Workspace information in project response.\");\nconst PrismaCreateProject_CreatedProjectSchema = z.object({\n id: z.string().describe(\"Unique project identifier for future operations.\").nullable(),\n name: z.string().describe(\"Project name as specified in request.\").nullable(),\n type: z.string().describe(\"Object type, always 'project'.\").nullable(),\n database: PrismaCreateProject_DatabaseSchema.nullable(),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp.\").nullable(),\n workspace: PrismaCreateProject_WorkspaceInfoSchema.nullable(),\n}).passthrough().describe(\"Complete project object returned after creation.\");\nexport const PrismaCreateProjectOutput = z.object({\n data: PrismaCreateProject_CreatedProjectSchema.nullable(),\n}).passthrough().describe(\"API response containing newly created project with database.\");\n\nexport const prismaCreateProject = action(\"PRISMA_CREATE_PROJECT\", {\n slug: \"prisma-create-project\",\n name: \"Create Prisma Project\",\n description: \"Create new Prisma project with managed postgres database. Creates project in authenticated user's workspace with postgres database in specified region. Returns complete project details including connection strings and API keys.\",\n input: PrismaCreateProjectInput,\n output: PrismaCreateProjectOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6KAA6K;CACvM,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qOAAqO;AACnQ,CAAC,CAAC,CAAC,SAAS,8EAA8E;AAC1F,MAAM,uCAAuC,EAAE,OAAO;CACpD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC3E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;AACpE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8BAA8B;AACxD,MAAM,6CAA6C,EAAE,OAAO;CAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC5F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACxE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;AACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2EAA2E;AACrG,MAAM,mCAAmC,EAAE,OAAO;CAChD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACnE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACxE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACx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AAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC5E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACrE,UAAU,mCAAmC,SAAS;CACtD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACxE,WAAW,wCAAwC,SAAS;AAC9D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAK5E,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATuC,EAAE,OAAO,EAChD,MAAM,yCAAyC,SAAS,EAC1D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8DAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"create-project.mjs","names":[],"sources":["../../src/actions/create-project.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { prisma } from \"../app\";\n\nexport const 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: AppAction<\n typeof PrismaCreateProjectInput,\n typeof PrismaCreateProjectOutput,\n typeof prisma.credential\n> = 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":";;;;AAMA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6KAA6K;CACvM,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qOAAqO;AACnQ,CAAC,CAAC,CAAC,SAAS,8EAA8E;AAC1F,MAAM,uCAAuC,EAAE,OAAO;CACpD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC3E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;AACpE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8BAA8B;AACxD,MAAM,6CAA6C,EAAE,OAAO;CAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC5F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACxE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;AACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2EAA2E;AACrG,MAAM,mCAAmC,EAAE,OAAO;CAChD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAA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AC,SAAS,gCAAgC,CAAC,CAAC,SAAS;AACvE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AACtE,MAAM,2CAA2C,EAAE,OAAO;CACxD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACrF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC5E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACrE,UAAU,mCAAmC,SAAS;CACtD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACxE,WAAW,wCAAwC,SAAS;AAC9D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAK5E,MAAa,sBAIT,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbuC,EAAE,OAAO,EAChD,MAAM,yCAAyC,SAAS,EAC1D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8DAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/delete-connection.ts
@@ -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.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"}
1
+ {"version":3,"file":"delete-connection.cjs","names":["z","action"],"sources":["../../src/actions/delete-connection.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { prisma } from \"../app\";\n\nexport const 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: AppAction<\n typeof PrismaDeleteConnectionInput,\n typeof PrismaDeleteConnectionOutput,\n typeof prisma.credential\n> = 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":";;;;AAMA,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,yBAITC,eAAAA,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { prisma } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/delete-connection.d.ts
@@ -5,9 +7,7 @@ declare const PrismaDeleteConnectionInput: z.ZodObject<{
5
7
  id: z.ZodString;
6
8
  }, z.core.$strip>;
7
9
  declare const PrismaDeleteConnectionOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
8
- declare const prismaDeleteConnection: import("@keystrokehq/action").WorkflowActionDefinition<{
9
- id: string;
10
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
10
+ declare const prismaDeleteConnection: AppAction<typeof PrismaDeleteConnectionInput, typeof PrismaDeleteConnectionOutput, typeof prisma.credential>;
11
11
  //#endregion
12
12
  export { prismaDeleteConnection };
13
13
  //# sourceMappingURL=delete-connection.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-connection.d.cts","names":[],"sources":["../../src/actions/delete-connection.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAG3B,4BAAA,EAA4B,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAE5B,sBAAA,gCAAsB,wBAAA"}
1
+ {"version":3,"file":"delete-connection.d.cts","names":[],"sources":["../../src/actions/delete-connection.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAG3B,4BAAA,EAA4B,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAE5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { prisma } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/delete-connection.d.ts
@@ -5,9 +7,7 @@ declare const PrismaDeleteConnectionInput: z.ZodObject<{
5
7
  id: z.ZodString;
6
8
  }, z.core.$strip>;
7
9
  declare const PrismaDeleteConnectionOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
8
- declare const prismaDeleteConnection: import("@keystrokehq/action").WorkflowActionDefinition<{
9
- id: string;
10
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
10
+ declare const prismaDeleteConnection: AppAction<typeof PrismaDeleteConnectionInput, typeof PrismaDeleteConnectionOutput, typeof prisma.credential>;
11
11
  //#endregion
12
12
  export { prismaDeleteConnection };
13
13
  //# sourceMappingURL=delete-connection.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-connection.d.mts","names":[],"sources":["../../src/actions/delete-connection.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAG3B,4BAAA,EAA4B,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAE5B,sBAAA,gCAAsB,wBAAA"}
1
+ {"version":3,"file":"delete-connection.d.mts","names":[],"sources":["../../src/actions/delete-connection.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAG3B,4BAAA,EAA4B,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAE5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const prismaDeleteConnection = action("PRISMA_DELETE_CONNECTION", {
@@ -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.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"}
1
+ {"version":3,"file":"delete-connection.mjs","names":[],"sources":["../../src/actions/delete-connection.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { prisma } from \"../app\";\n\nexport const 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: AppAction<\n typeof PrismaDeleteConnectionInput,\n typeof PrismaDeleteConnectionOutput,\n typeof prisma.credential\n> = 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":";;;AAWA,MAAa,yBAIT,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbyC,EAAE,OAAO,EAClD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kSAAkS,EAC5T,CAAC,CAAC,CAAC,SAAS,wDAWH;CACP,QAX0C,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oDAW7E;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/delete-database.ts
@@ -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}).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"}
1
+ {"version":3,"file":"delete-database.cjs","names":["z","action"],"sources":["../../src/actions/delete-database.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { prisma } from \"../app\";\n\nexport const 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: AppAction<\n typeof PrismaDeleteDatabaseInput,\n typeof PrismaDeleteDatabaseOutput,\n typeof prisma.credential\n> = 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":";;;;AAMA,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,uBAITC,eAAAA,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { prisma } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/delete-database.d.ts
@@ -7,9 +9,7 @@ declare const PrismaDeleteDatabaseInput: z.ZodObject<{
7
9
  declare const PrismaDeleteDatabaseOutput: z.ZodObject<{
8
10
  message: z.ZodNullable<z.ZodString>;
9
11
  }, z.core.$loose>;
10
- declare const prismaDeleteDatabase: import("@keystrokehq/action").WorkflowActionDefinition<{
11
- databaseId: string;
12
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
12
+ declare const prismaDeleteDatabase: AppAction<typeof PrismaDeleteDatabaseInput, typeof PrismaDeleteDatabaseOutput, typeof prisma.credential>;
13
13
  //#endregion
14
14
  export { prismaDeleteDatabase };
15
15
  //# sourceMappingURL=delete-database.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-database.d.cts","names":[],"sources":["../../src/actions/delete-database.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAGzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAI1B,oBAAA,gCAAoB,wBAAA"}
1
+ {"version":3,"file":"delete-database.d.cts","names":[],"sources":["../../src/actions/delete-database.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAGzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAI1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { prisma } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/delete-database.d.ts
@@ -7,9 +9,7 @@ declare const PrismaDeleteDatabaseInput: z.ZodObject<{
7
9
  declare const PrismaDeleteDatabaseOutput: z.ZodObject<{
8
10
  message: z.ZodNullable<z.ZodString>;
9
11
  }, z.core.$loose>;
10
- declare const prismaDeleteDatabase: import("@keystrokehq/action").WorkflowActionDefinition<{
11
- databaseId: string;
12
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
12
+ declare const prismaDeleteDatabase: AppAction<typeof PrismaDeleteDatabaseInput, typeof PrismaDeleteDatabaseOutput, typeof prisma.credential>;
13
13
  //#endregion
14
14
  export { prismaDeleteDatabase };
15
15
  //# sourceMappingURL=delete-database.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-database.d.mts","names":[],"sources":["../../src/actions/delete-database.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAGzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAI1B,oBAAA,gCAAoB,wBAAA"}
1
+ {"version":3,"file":"delete-database.d.mts","names":[],"sources":["../../src/actions/delete-database.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAGzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAI1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const prismaDeleteDatabase = action("PRISMA_DELETE_DATABASE", {
@@ -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}).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"}
1
+ {"version":3,"file":"delete-database.mjs","names":[],"sources":["../../src/actions/delete-database.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { prisma } from \"../app\";\n\nexport const 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: AppAction<\n typeof PrismaDeleteDatabaseInput,\n typeof PrismaDeleteDatabaseOutput,\n typeof prisma.credential\n> = 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":";;;AAaA,MAAa,uBAIT,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAfuC,EAAE,OAAO,EAChD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qQAAqQ,EACvS,CAAC,CAAC,CAAC,SAAS,6CAaH;CACP,QAbwC,EAAE,OAAO,EACjD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,EACzG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAWhB;AACV,CAAC"}