@keystrokehq/prisma 0.1.4 → 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 -16
  6. package/dist/actions/create-connection.d.cts.map +1 -1
  7. package/dist/actions/create-connection.d.mts +3 -16
  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 -18
  14. package/dist/actions/create-database.d.cts.map +1 -1
  15. package/dist/actions/create-database.d.mts +3 -18
  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 -16
  22. package/dist/actions/create-project.d.cts.map +1 -1
  23. package/dist/actions/create-project.d.mts +3 -16
  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 -15
  30. package/dist/actions/delete-connection.d.cts.map +1 -1
  31. package/dist/actions/delete-connection.d.mts +3 -15
  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 -15
  38. package/dist/actions/delete-database.d.cts.map +1 -1
  39. package/dist/actions/delete-database.d.mts +3 -15
  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 -15
  46. package/dist/actions/delete-project.d.cts.map +1 -1
  47. package/dist/actions/delete-project.d.mts +3 -15
  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 -17
  54. package/dist/actions/execute-sql-command.d.cts.map +1 -1
  55. package/dist/actions/execute-sql-command.d.mts +3 -17
  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 -19
  62. package/dist/actions/execute-sql-query.d.cts.map +1 -1
  63. package/dist/actions/execute-sql-query.d.mts +3 -19
  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 -17
  70. package/dist/actions/get-database-usage.d.cts.map +1 -1
  71. package/dist/actions/get-database-usage.d.mts +3 -17
  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 -15
  78. package/dist/actions/get-database.d.cts.map +1 -1
  79. package/dist/actions/get-database.d.mts +3 -15
  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 -15
  86. package/dist/actions/get-project.d.cts.map +1 -1
  87. package/dist/actions/get-project.d.mts +3 -15
  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 -19
  94. package/dist/actions/inspect-database-schema.d.cts.map +1 -1
  95. package/dist/actions/inspect-database-schema.d.mts +3 -19
  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 -13
  102. package/dist/actions/list-accelerate-regions.d.cts.map +1 -1
  103. package/dist/actions/list-accelerate-regions.d.mts +3 -13
  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 -16
  110. package/dist/actions/list-backups.d.cts.map +1 -1
  111. package/dist/actions/list-backups.d.mts +3 -16
  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 -17
  118. package/dist/actions/list-connections.d.cts.map +1 -1
  119. package/dist/actions/list-connections.d.mts +3 -17
  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 -17
  126. package/dist/actions/list-databases.d.cts.map +1 -1
  127. package/dist/actions/list-databases.d.mts +3 -17
  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 -13
  134. package/dist/actions/list-postgres-regions.d.cts.map +1 -1
  135. package/dist/actions/list-postgres-regions.d.mts +3 -13
  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 -16
  142. package/dist/actions/list-projects.d.cts.map +1 -1
  143. package/dist/actions/list-projects.d.mts +3 -16
  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 -17
  150. package/dist/actions/list-workspace-integrations.d.cts.map +1 -1
  151. package/dist/actions/list-workspace-integrations.d.mts +3 -17
  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 -16
  158. package/dist/actions/list-workspaces.d.cts.map +1 -1
  159. package/dist/actions/list-workspaces.d.mts +3 -16
  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 -17
  166. package/dist/actions/restore-backup.d.cts.map +1 -1
  167. package/dist/actions/restore-backup.d.mts +3 -17
  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 -16
  174. package/dist/actions/transfer-project.d.cts.map +1 -1
  175. package/dist/actions/transfer-project.d.mts +3 -16
  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 +2 -2
  180. package/dist/app.cjs.map +1 -1
  181. package/dist/app.d.cts +4 -6
  182. package/dist/app.d.cts.map +1 -1
  183. package/dist/app.d.mts +4 -6
  184. package/dist/app.d.mts.map +1 -1
  185. package/dist/app.mjs +0 -1
  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,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/list-backups.d.ts
@@ -22,22 +24,7 @@ declare const PrismaListBackupsOutput: z.ZodObject<{
22
24
  hasMore: z.ZodNullable<z.ZodBoolean>;
23
25
  }, z.core.$loose>>;
24
26
  }, z.core.$loose>;
25
- declare const prismaListBackups: import("@keystrokehq/action").WorkflowActionDefinition<{
26
- databaseId: string;
27
- limit?: number | undefined;
28
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"prisma", z.ZodObject<{
29
- connectionId: z.ZodString;
30
- entityId: z.ZodString;
31
- instanceId: z.ZodString;
32
- }, z.core.$strip>, z.ZodObject<{
33
- accessToken: z.ZodString;
34
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"prisma", z.ZodObject<{
35
- connectionId: z.ZodString;
36
- entityId: z.ZodString;
37
- instanceId: z.ZodString;
38
- }, z.core.$strip>, z.ZodObject<{
39
- accessToken: z.ZodString;
40
- }, z.core.$strip>>]>;
27
+ declare const prismaListBackups: AppAction<typeof PrismaListBackupsInput, typeof PrismaListBackupsOutput, typeof prisma.credential>;
41
28
  //#endregion
42
29
  export { prismaListBackups };
43
30
  //# sourceMappingURL=list-backups.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-backups.d.cts","names":[],"sources":["../../src/actions/list-backups.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;cAmBtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAMvB,iBAAA,gCAAiB,wBAAA"}
1
+ {"version":3,"file":"list-backups.d.cts","names":[],"sources":["../../src/actions/list-backups.ts"],"mappings":";;;;;cAMa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;cAmBtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAMvB,iBAAA,EAAmB,SAAA,QACvB,sBAAA,SACA,uBAAA,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/list-backups.d.ts
@@ -22,22 +24,7 @@ declare const PrismaListBackupsOutput: z.ZodObject<{
22
24
  hasMore: z.ZodNullable<z.ZodBoolean>;
23
25
  }, z.core.$loose>>;
24
26
  }, z.core.$loose>;
25
- declare const prismaListBackups: import("@keystrokehq/action").WorkflowActionDefinition<{
26
- databaseId: string;
27
- limit?: number | undefined;
28
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"prisma", z.ZodObject<{
29
- connectionId: z.ZodString;
30
- entityId: z.ZodString;
31
- instanceId: z.ZodString;
32
- }, z.core.$strip>, z.ZodObject<{
33
- accessToken: z.ZodString;
34
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"prisma", z.ZodObject<{
35
- connectionId: z.ZodString;
36
- entityId: z.ZodString;
37
- instanceId: z.ZodString;
38
- }, z.core.$strip>, z.ZodObject<{
39
- accessToken: z.ZodString;
40
- }, z.core.$strip>>]>;
27
+ declare const prismaListBackups: AppAction<typeof PrismaListBackupsInput, typeof PrismaListBackupsOutput, typeof prisma.credential>;
41
28
  //#endregion
42
29
  export { prismaListBackups };
43
30
  //# sourceMappingURL=list-backups.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-backups.d.mts","names":[],"sources":["../../src/actions/list-backups.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;cAmBtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAMvB,iBAAA,gCAAiB,wBAAA"}
1
+ {"version":3,"file":"list-backups.d.mts","names":[],"sources":["../../src/actions/list-backups.ts"],"mappings":";;;;;cAMa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;cAmBtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAMvB,iBAAA,EAAmB,SAAA,QACvB,sBAAA,SACA,uBAAA,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/list-backups.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-backups.mjs","names":[],"sources":["../../src/actions/list-backups.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaListBackupsInput = z.object({\n limit: z.number().int().default(25).describe(\"Maximum number of backups to return in a single request. Defaults to 25 if not specified. Typical range is 1-100. Use smaller values (10-25) for UI pagination, larger values (50-100) for processing.\").optional(),\n databaseId: z.string().describe(\"Unique database identifier to list backups for (format: 'db_xxxxx'). Must be a database the authenticated user has access to. All available backups for this database will be returned.\"),\n}).describe(\"Request parameters for listing backups for a database.\");\nconst PrismaListBackups_BackupSchema = z.object({\n id: z.string().describe(\"Unique backup identifier used for restoration operations. Use this ID with restore backup action to recover data to a new database.\").nullable(),\n size: z.number().int().describe(\"Backup size in bytes. Use for storage monitoring and restoration planning. Larger backups may take longer to restore.\").nullable(),\n type: z.string().describe(\"Object type, always 'backup'. Provides consistency across API responses.\").nullable(),\n status: z.string().describe(\"Current backup status indicating availability for restoration. Values: 'completed' (ready for restore), 'running' (backup in progress), 'failed' (backup error), 'expired' (past retention period).\").nullable(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when backup was created (e.g., '2025-07-20T11:09:30.705Z').\").nullable(),\n backupType: z.string().describe(\"Type of backup performed. Common values: 'full' (complete database), 'incremental' (changes only), 'scheduled' (automatic backup).\").nullable(),\n}).passthrough().describe(\"Database backup object with restoration details.\");\nconst PrismaListBackups_BackupMetaSchema = z.object({\n backupRetentionDays: z.number().int().describe(\"Number of days backups are retained before automatic deletion. Backups older than this period are automatically purged. Use for planning backup strategies and compliance requirements.\").nullable(),\n}).passthrough().describe(\"Backup metadata and retention policy information.\");\nconst PrismaListBackups_BackupPaginationSchema = z.object({\n limit: z.number().int().describe(\"Current limit applied to the backup listing request.\").nullable(),\n hasMore: z.boolean().describe(\"True if more backups are available beyond the current limit.\").nullable(),\n}).passthrough().describe(\"Pagination metadata for backup listing.\");\nexport const PrismaListBackupsOutput = z.object({\n data: z.array(PrismaListBackups_BackupSchema).describe(\"Array of backup objects for the specified database. Backups are ordered by creation date with most recent first. Only includes backups available for restoration within retention period.\"),\n meta: PrismaListBackups_BackupMetaSchema.nullable(),\n pagination: PrismaListBackups_BackupPaginationSchema.nullable(),\n}).passthrough().describe(\"API response containing backup list, metadata, and pagination.\");\n\nexport const prismaListBackups = action(\"PRISMA_LIST_BACKUPS\", {\n slug: \"prisma-list-backups\",\n name: \"List Database Backups\",\n description: \"Retrieve list of available backups for a specific database. Returns backup details including status, size, type, and restoration readiness. Use for backup monitoring, restoration planning, and compliance auditing.\",\n input: PrismaListBackupsInput,\n output: PrismaListBackupsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyB,EAAE,OAAO;CAC7C,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,wMAAwM,CAAC,CAAC,SAAS;CAChQ,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,yLAAyL;AAC3N,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,iCAAiC,EAAE,OAAO;CAC9C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qIAAqI,CAAC,CAAC,SAAS;CACxK,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uHAAuH,CAAC,CAAC,SAAS;CAClK,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CAC/G,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qMAAqM,CAAC,CAAC,SAAS;CAC5O,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CAC1H,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS;AACjL,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAC5E,MAAM,qCAAqC,EAAE,OAAO,EAClD,qBAAqB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yLAAyL,CAAC,CAAC,SAAS,EACrP,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAC7E,MAAM,2CAA2C,EAAE,OAAO;CACxD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAClG,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAOnE,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXqC,EAAE,OAAO;EAC9C,MAAM,EAAE,MAAM,8BAA8B,CAAC,CAAC,SAAS,2LAA2L;EAClP,MAAM,mCAAmC,SAAS;EAClD,YAAY,yCAAyC,SAAS;CAChE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gEAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"list-backups.mjs","names":[],"sources":["../../src/actions/list-backups.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 PrismaListBackupsInput = z.object({\n limit: z.number().int().default(25).describe(\"Maximum number of backups to return in a single request. Defaults to 25 if not specified. Typical range is 1-100. Use smaller values (10-25) for UI pagination, larger values (50-100) for processing.\").optional(),\n databaseId: z.string().describe(\"Unique database identifier to list backups for (format: 'db_xxxxx'). Must be a database the authenticated user has access to. All available backups for this database will be returned.\"),\n}).describe(\"Request parameters for listing backups for a database.\");\nconst PrismaListBackups_BackupSchema = z.object({\n id: z.string().describe(\"Unique backup identifier used for restoration operations. Use this ID with restore backup action to recover data to a new database.\").nullable(),\n size: z.number().int().describe(\"Backup size in bytes. Use for storage monitoring and restoration planning. Larger backups may take longer to restore.\").nullable(),\n type: z.string().describe(\"Object type, always 'backup'. Provides consistency across API responses.\").nullable(),\n status: z.string().describe(\"Current backup status indicating availability for restoration. Values: 'completed' (ready for restore), 'running' (backup in progress), 'failed' (backup error), 'expired' (past retention period).\").nullable(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when backup was created (e.g., '2025-07-20T11:09:30.705Z').\").nullable(),\n backupType: z.string().describe(\"Type of backup performed. Common values: 'full' (complete database), 'incremental' (changes only), 'scheduled' (automatic backup).\").nullable(),\n}).passthrough().describe(\"Database backup object with restoration details.\");\nconst PrismaListBackups_BackupMetaSchema = z.object({\n backupRetentionDays: z.number().int().describe(\"Number of days backups are retained before automatic deletion. Backups older than this period are automatically purged. Use for planning backup strategies and compliance requirements.\").nullable(),\n}).passthrough().describe(\"Backup metadata and retention policy information.\");\nconst PrismaListBackups_BackupPaginationSchema = z.object({\n limit: z.number().int().describe(\"Current limit applied to the backup listing request.\").nullable(),\n hasMore: z.boolean().describe(\"True if more backups are available beyond the current limit.\").nullable(),\n}).passthrough().describe(\"Pagination metadata for backup listing.\");\nexport const PrismaListBackupsOutput = z.object({\n data: z.array(PrismaListBackups_BackupSchema).describe(\"Array of backup objects for the specified database. Backups are ordered by creation date with most recent first. Only includes backups available for restoration within retention period.\"),\n meta: PrismaListBackups_BackupMetaSchema.nullable(),\n pagination: PrismaListBackups_BackupPaginationSchema.nullable(),\n}).passthrough().describe(\"API response containing backup list, metadata, and pagination.\");\n\nexport const prismaListBackups: AppAction<\n typeof PrismaListBackupsInput,\n typeof PrismaListBackupsOutput,\n typeof prisma.credential\n> = action(\"PRISMA_LIST_BACKUPS\", {\n slug: \"prisma-list-backups\",\n name: \"List Database Backups\",\n description: \"Retrieve list of available backups for a specific database. Returns backup details including status, size, type, and restoration readiness. Use for backup monitoring, restoration planning, and compliance auditing.\",\n input: PrismaListBackupsInput,\n output: PrismaListBackupsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,yBAAyB,EAAE,OAAO;CAC7C,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,wMAAwM,CAAC,CAAC,SAAS;CAChQ,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,yLAAyL;AAC3N,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,iCAAiC,EAAE,OAAO;CAC9C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qIAAqI,CAAC,CAAC,SAAS;CACxK,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uHAAuH,CAAC,CAAC,SAAS;CAClK,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CAC/G,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qMAAqM,CAAC,CAAC,SAAS;CAC5O,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CAC1H,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS;AACjL,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAC5E,MAAM,qCAAqC,EAAE,OAAO,EAClD,qBAAqB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yLAAyL,CAAC,CAAC,SAAS,EACrP,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAC7E,MAAM,2CAA2C,EAAE,OAAO;CACxD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAClG,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAOnE,MAAa,oBAIT,OAAO,uBAAuB;CAChC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAfqC,EAAE,OAAO;EAC9C,MAAM,EAAE,MAAM,8BAA8B,CAAC,CAAC,SAAS,2LAA2L;EAClP,MAAM,mCAAmC,SAAS;EAClD,YAAY,yCAAyC,SAAS;CAChE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gEAWhB;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/list-connections.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-connections.cjs","names":["z","action"],"sources":["../../src/actions/list-connections.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaListConnectionsInput = z.object({\n limit: z.number().int().default(100).describe(\"Maximum number of connections to return in a single request. Defaults to 100 if not specified. Valid range is typically 1-500. Use smaller values (10-50) for faster responses when you only need a few connections, or larger values (100-500) when bulk processing.\").optional(),\n cursor: z.string().describe(\"Pagination cursor for retrieving the next page of results. Use the 'nextCursor' value from a previous response to get subsequent pages. Leave as None/null for the first page. Enables efficient pagination through large numbers of connections without missing or duplicating entries.\").optional(),\n databaseId: z.string().describe(\"Unique database identifier to list connections for (format: 'db_xxxxx'). Must be a database the authenticated user has access to. All connection strings and API keys for this database will be returned.\"),\n}).describe(\"Request parameters for listing connections for a database.\");\nconst PrismaListConnections_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 embedded in connection objects.\");\nconst PrismaListConnections_ConnectionSchema = z.object({\n id: z.string().describe(\"Unique connection identifier (format: 'con_xxxxx'). Use this ID for connection-specific operations like deletion. Each connection represents a unique API key for database access.\").nullable(),\n name: z.string().describe(\"Human-readable connection name set during creation. Used for identification and management in UIs. Common names include 'Production API Key', 'Dev Access', etc.\").nullable(),\n type: z.string().describe(\"Object type, always 'connection'. Provides consistency across API responses.\").nullable(),\n database: PrismaListConnections_DatabaseInfoSchema.nullable(),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp in UTC (e.g., '2025-07-20T11:08:47.879Z').\").nullable(),\n}).passthrough().describe(\"Database connection string / API key object.\");\nconst PrismaListConnections_PaginationSchema = z.object({\n hasMore: z.boolean().describe(\"True if more pages available. Check before making next request.\").nullable(),\n nextCursor: z.string().describe(\"Opaque cursor for next page. Pass to subsequent requests. Null when no more pages.\").nullable().optional(),\n}).passthrough().describe(\"Pagination metadata for cursor-based navigation through connection results.\");\nexport const PrismaListConnectionsOutput = z.object({\n data: z.array(PrismaListConnections_ConnectionSchema).describe(\"Array of connection objects for the specified database. Connections are ordered by creation date with most recent first. Each connection represents an API key for database access with unique credentials.\"),\n pagination: PrismaListConnections_PaginationSchema.nullable(),\n}).passthrough().describe(\"API response containing connection list and pagination metadata.\");\n\nexport const prismaListConnections = action(\"PRISMA_LIST_CONNECTIONS\", {\n slug: \"prisma-list-connections\",\n name: \"List Database Connections\",\n description: \"Retrieve paginated list of connections for a specific database. Returns connection details including names, creation dates, and database context. Use for API key management, security audits, and access control.\",\n input: PrismaListConnectionsInput,\n output: PrismaListConnectionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,uQAAuQ,CAAC,CAAC,SAAS;CAChU,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0RAA0R,CAAC,CAAC,SAAS;CACjU,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2MAA2M;AAC7O,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,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,sDAAsD;AAChF,MAAM,yCAAyCA,IAAAA,EAAE,OAAO;CACtD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oLAAoL,CAAC,CAAC,SAAS;CACvN,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kKAAkK,CAAC,CAAC,SAAS;CACvM,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CACnH,UAAU,yCAAyC,SAAS;CAC5D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AACxE,MAAM,yCAAyCA,IAAAA,EAAE,OAAO;CACtD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC1G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6EAA6E;AACvG,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,6MAA6M;CAC5Q,YAAY,uCAAuC,SAAS;AAC9D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kEAAkE;AAE5F,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-connections.cjs","names":["z","action"],"sources":["../../src/actions/list-connections.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 PrismaListConnectionsInput = z.object({\n limit: z.number().int().default(100).describe(\"Maximum number of connections to return in a single request. Defaults to 100 if not specified. Valid range is typically 1-500. Use smaller values (10-50) for faster responses when you only need a few connections, or larger values (100-500) when bulk processing.\").optional(),\n cursor: z.string().describe(\"Pagination cursor for retrieving the next page of results. Use the 'nextCursor' value from a previous response to get subsequent pages. Leave as None/null for the first page. Enables efficient pagination through large numbers of connections without missing or duplicating entries.\").optional(),\n databaseId: z.string().describe(\"Unique database identifier to list connections for (format: 'db_xxxxx'). Must be a database the authenticated user has access to. All connection strings and API keys for this database will be returned.\"),\n}).describe(\"Request parameters for listing connections for a database.\");\nconst PrismaListConnections_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 embedded in connection objects.\");\nconst PrismaListConnections_ConnectionSchema = z.object({\n id: z.string().describe(\"Unique connection identifier (format: 'con_xxxxx'). Use this ID for connection-specific operations like deletion. Each connection represents a unique API key for database access.\").nullable(),\n name: z.string().describe(\"Human-readable connection name set during creation. Used for identification and management in UIs. Common names include 'Production API Key', 'Dev Access', etc.\").nullable(),\n type: z.string().describe(\"Object type, always 'connection'. Provides consistency across API responses.\").nullable(),\n database: PrismaListConnections_DatabaseInfoSchema.nullable(),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp in UTC (e.g., '2025-07-20T11:08:47.879Z').\").nullable(),\n}).passthrough().describe(\"Database connection string / API key object.\");\nconst PrismaListConnections_PaginationSchema = z.object({\n hasMore: z.boolean().describe(\"True if more pages available. Check before making next request.\").nullable(),\n nextCursor: z.string().describe(\"Opaque cursor for next page. Pass to subsequent requests. Null when no more pages.\").nullable().optional(),\n}).passthrough().describe(\"Pagination metadata for cursor-based navigation through connection results.\");\nexport const PrismaListConnectionsOutput = z.object({\n data: z.array(PrismaListConnections_ConnectionSchema).describe(\"Array of connection objects for the specified database. Connections are ordered by creation date with most recent first. Each connection represents an API key for database access with unique credentials.\"),\n pagination: PrismaListConnections_PaginationSchema.nullable(),\n}).passthrough().describe(\"API response containing connection list and pagination metadata.\");\n\nexport const prismaListConnections: AppAction<\n typeof PrismaListConnectionsInput,\n typeof PrismaListConnectionsOutput,\n typeof prisma.credential\n> = action(\"PRISMA_LIST_CONNECTIONS\", {\n slug: \"prisma-list-connections\",\n name: \"List Database Connections\",\n description: \"Retrieve paginated list of connections for a specific database. Returns connection details including names, creation dates, and database context. Use for API key management, security audits, and access control.\",\n input: PrismaListConnectionsInput,\n output: PrismaListConnectionsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,uQAAuQ,CAAC,CAAC,SAAS;CAChU,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0RAA0R,CAAC,CAAC,SAAS;CACjU,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2MAA2M;AAC7O,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,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,sDAAsD;AAChF,MAAM,yCAAyCA,IAAAA,EAAE,OAAO;CACtD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oLAAoL,CAAC,CAAC,SAAS;CACvN,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kKAAkK,CAAC,CAAC,SAAS;CACvM,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CACnH,UAAU,yCAAyC,SAAS;CAC5D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AACxE,MAAM,yCAAyCA,IAAAA,EAAE,OAAO;CACtD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC1G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6EAA6E;AACvG,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,6MAA6M;CAC5Q,YAAY,uCAAuC,SAAS;AAC9D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kEAAkE;AAE5F,MAAa,wBAITC,eAAAA,OAAO,2BAA2B;CACpC,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/list-connections.d.ts
@@ -22,23 +24,7 @@ declare const PrismaListConnectionsOutput: z.ZodObject<{
22
24
  nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
25
  }, z.core.$loose>>;
24
26
  }, z.core.$loose>;
25
- declare const prismaListConnections: import("@keystrokehq/action").WorkflowActionDefinition<{
26
- databaseId: string;
27
- limit?: number | undefined;
28
- cursor?: string | undefined;
29
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"prisma", z.ZodObject<{
30
- connectionId: z.ZodString;
31
- entityId: z.ZodString;
32
- instanceId: z.ZodString;
33
- }, z.core.$strip>, z.ZodObject<{
34
- accessToken: z.ZodString;
35
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"prisma", z.ZodObject<{
36
- connectionId: z.ZodString;
37
- entityId: z.ZodString;
38
- instanceId: z.ZodString;
39
- }, z.core.$strip>, z.ZodObject<{
40
- accessToken: z.ZodString;
41
- }, z.core.$strip>>]>;
27
+ declare const prismaListConnections: AppAction<typeof PrismaListConnectionsInput, typeof PrismaListConnectionsOutput, typeof prisma.credential>;
42
28
  //#endregion
43
29
  export { prismaListConnections };
44
30
  //# sourceMappingURL=list-connections.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-connections.d.cts","names":[],"sources":["../../src/actions/list-connections.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAoB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAK3B,qBAAA,gCAAqB,wBAAA"}
1
+ {"version":3,"file":"list-connections.d.cts","names":[],"sources":["../../src/actions/list-connections.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAoB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAK3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,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/list-connections.d.ts
@@ -22,23 +24,7 @@ declare const PrismaListConnectionsOutput: z.ZodObject<{
22
24
  nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
25
  }, z.core.$loose>>;
24
26
  }, z.core.$loose>;
25
- declare const prismaListConnections: import("@keystrokehq/action").WorkflowActionDefinition<{
26
- databaseId: string;
27
- limit?: number | undefined;
28
- cursor?: string | undefined;
29
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"prisma", z.ZodObject<{
30
- connectionId: z.ZodString;
31
- entityId: z.ZodString;
32
- instanceId: z.ZodString;
33
- }, z.core.$strip>, z.ZodObject<{
34
- accessToken: z.ZodString;
35
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"prisma", z.ZodObject<{
36
- connectionId: z.ZodString;
37
- entityId: z.ZodString;
38
- instanceId: z.ZodString;
39
- }, z.core.$strip>, z.ZodObject<{
40
- accessToken: z.ZodString;
41
- }, z.core.$strip>>]>;
27
+ declare const prismaListConnections: AppAction<typeof PrismaListConnectionsInput, typeof PrismaListConnectionsOutput, typeof prisma.credential>;
42
28
  //#endregion
43
29
  export { prismaListConnections };
44
30
  //# sourceMappingURL=list-connections.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-connections.d.mts","names":[],"sources":["../../src/actions/list-connections.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAoB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAK3B,qBAAA,gCAAqB,wBAAA"}
1
+ {"version":3,"file":"list-connections.d.mts","names":[],"sources":["../../src/actions/list-connections.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAoB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAK3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,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/list-connections.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-connections.mjs","names":[],"sources":["../../src/actions/list-connections.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaListConnectionsInput = z.object({\n limit: z.number().int().default(100).describe(\"Maximum number of connections to return in a single request. Defaults to 100 if not specified. Valid range is typically 1-500. Use smaller values (10-50) for faster responses when you only need a few connections, or larger values (100-500) when bulk processing.\").optional(),\n cursor: z.string().describe(\"Pagination cursor for retrieving the next page of results. Use the 'nextCursor' value from a previous response to get subsequent pages. Leave as None/null for the first page. Enables efficient pagination through large numbers of connections without missing or duplicating entries.\").optional(),\n databaseId: z.string().describe(\"Unique database identifier to list connections for (format: 'db_xxxxx'). Must be a database the authenticated user has access to. All connection strings and API keys for this database will be returned.\"),\n}).describe(\"Request parameters for listing connections for a database.\");\nconst PrismaListConnections_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 embedded in connection objects.\");\nconst PrismaListConnections_ConnectionSchema = z.object({\n id: z.string().describe(\"Unique connection identifier (format: 'con_xxxxx'). Use this ID for connection-specific operations like deletion. Each connection represents a unique API key for database access.\").nullable(),\n name: z.string().describe(\"Human-readable connection name set during creation. Used for identification and management in UIs. Common names include 'Production API Key', 'Dev Access', etc.\").nullable(),\n type: z.string().describe(\"Object type, always 'connection'. Provides consistency across API responses.\").nullable(),\n database: PrismaListConnections_DatabaseInfoSchema.nullable(),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp in UTC (e.g., '2025-07-20T11:08:47.879Z').\").nullable(),\n}).passthrough().describe(\"Database connection string / API key object.\");\nconst PrismaListConnections_PaginationSchema = z.object({\n hasMore: z.boolean().describe(\"True if more pages available. Check before making next request.\").nullable(),\n nextCursor: z.string().describe(\"Opaque cursor for next page. Pass to subsequent requests. Null when no more pages.\").nullable().optional(),\n}).passthrough().describe(\"Pagination metadata for cursor-based navigation through connection results.\");\nexport const PrismaListConnectionsOutput = z.object({\n data: z.array(PrismaListConnections_ConnectionSchema).describe(\"Array of connection objects for the specified database. Connections are ordered by creation date with most recent first. Each connection represents an API key for database access with unique credentials.\"),\n pagination: PrismaListConnections_PaginationSchema.nullable(),\n}).passthrough().describe(\"API response containing connection list and pagination metadata.\");\n\nexport const prismaListConnections = action(\"PRISMA_LIST_CONNECTIONS\", {\n slug: \"prisma-list-connections\",\n name: \"List Database Connections\",\n description: \"Retrieve paginated list of connections for a specific database. Returns connection details including names, creation dates, and database context. Use for API key management, security audits, and access control.\",\n input: PrismaListConnectionsInput,\n output: PrismaListConnectionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO;CACjD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,uQAAuQ,CAAC,CAAC,SAAS;CAChU,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0RAA0R,CAAC,CAAC,SAAS;CACjU,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2MAA2M;AAC7O,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,2CAA2C,EAAE,OAAO;CACxD,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,sDAAsD;AAChF,MAAM,yCAAyC,EAAE,OAAO;CACtD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oLAAoL,CAAC,CAAC,SAAS;CACvN,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kKAAkK,CAAC,CAAC,SAAS;CACvM,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CACnH,UAAU,yCAAyC,SAAS;CAC5D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AACxE,MAAM,yCAAyC,EAAE,OAAO;CACtD,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC1G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6EAA6E;AAMvG,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVyC,EAAE,OAAO;EAClD,MAAM,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,6MAA6M;EAC5Q,YAAY,uCAAuC,SAAS;CAC9D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kEAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"list-connections.mjs","names":[],"sources":["../../src/actions/list-connections.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 PrismaListConnectionsInput = z.object({\n limit: z.number().int().default(100).describe(\"Maximum number of connections to return in a single request. Defaults to 100 if not specified. Valid range is typically 1-500. Use smaller values (10-50) for faster responses when you only need a few connections, or larger values (100-500) when bulk processing.\").optional(),\n cursor: z.string().describe(\"Pagination cursor for retrieving the next page of results. Use the 'nextCursor' value from a previous response to get subsequent pages. Leave as None/null for the first page. Enables efficient pagination through large numbers of connections without missing or duplicating entries.\").optional(),\n databaseId: z.string().describe(\"Unique database identifier to list connections for (format: 'db_xxxxx'). Must be a database the authenticated user has access to. All connection strings and API keys for this database will be returned.\"),\n}).describe(\"Request parameters for listing connections for a database.\");\nconst PrismaListConnections_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 embedded in connection objects.\");\nconst PrismaListConnections_ConnectionSchema = z.object({\n id: z.string().describe(\"Unique connection identifier (format: 'con_xxxxx'). Use this ID for connection-specific operations like deletion. Each connection represents a unique API key for database access.\").nullable(),\n name: z.string().describe(\"Human-readable connection name set during creation. Used for identification and management in UIs. Common names include 'Production API Key', 'Dev Access', etc.\").nullable(),\n type: z.string().describe(\"Object type, always 'connection'. Provides consistency across API responses.\").nullable(),\n database: PrismaListConnections_DatabaseInfoSchema.nullable(),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp in UTC (e.g., '2025-07-20T11:08:47.879Z').\").nullable(),\n}).passthrough().describe(\"Database connection string / API key object.\");\nconst PrismaListConnections_PaginationSchema = z.object({\n hasMore: z.boolean().describe(\"True if more pages available. Check before making next request.\").nullable(),\n nextCursor: z.string().describe(\"Opaque cursor for next page. Pass to subsequent requests. Null when no more pages.\").nullable().optional(),\n}).passthrough().describe(\"Pagination metadata for cursor-based navigation through connection results.\");\nexport const PrismaListConnectionsOutput = z.object({\n data: z.array(PrismaListConnections_ConnectionSchema).describe(\"Array of connection objects for the specified database. Connections are ordered by creation date with most recent first. Each connection represents an API key for database access with unique credentials.\"),\n pagination: PrismaListConnections_PaginationSchema.nullable(),\n}).passthrough().describe(\"API response containing connection list and pagination metadata.\");\n\nexport const prismaListConnections: AppAction<\n typeof PrismaListConnectionsInput,\n typeof PrismaListConnectionsOutput,\n typeof prisma.credential\n> = action(\"PRISMA_LIST_CONNECTIONS\", {\n slug: \"prisma-list-connections\",\n name: \"List Database Connections\",\n description: \"Retrieve paginated list of connections for a specific database. Returns connection details including names, creation dates, and database context. Use for API key management, security audits, and access control.\",\n input: PrismaListConnectionsInput,\n output: PrismaListConnectionsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6B,EAAE,OAAO;CACjD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,uQAAuQ,CAAC,CAAC,SAAS;CAChU,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0RAA0R,CAAC,CAAC,SAAS;CACjU,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2MAA2M;AAC7O,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,2CAA2C,EAAE,OAAO;CACxD,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,sDAAsD;AAChF,MAAM,yCAAyC,EAAE,OAAO;CACtD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oLAAoL,CAAC,CAAC,SAAS;CACvN,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kKAAkK,CAAC,CAAC,SAAS;CACvM,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CACnH,UAAU,yCAAyC,SAAS;CAC5D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AACxE,MAAM,yCAAyC,EAAE,OAAO;CACtD,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC1G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6EAA6E;AAMvG,MAAa,wBAIT,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdyC,EAAE,OAAO;EAClD,MAAM,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,6MAA6M;EAC5Q,YAAY,uCAAuC,SAAS;CAC9D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kEAWhB;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/list-databases.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-databases.cjs","names":["z","action"],"sources":["../../src/actions/list-databases.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaListDatabasesInput = z.object({\n limit: z.number().int().default(100).describe(\"Maximum number of databases to return in a single request. Defaults to 100 if not specified. Valid range is typically 1-500. Use smaller values (10-50) for faster responses when you only need a few databases, or larger values (100-500) when bulk processing.\").optional(),\n cursor: z.string().describe(\"Pagination cursor for retrieving the next page of results. Use the 'nextCursor' value from a previous response to get subsequent pages. Leave as None/null for the first page. Enables efficient pagination through large numbers of databases without missing or duplicating entries.\").optional(),\n projectId: z.string().describe(\"Unique project identifier to list databases for (format: 'prj_xxxxx'). Must be a project the authenticated user has access to. All databases belonging to this project will be returned.\"),\n}).describe(\"Request parameters for listing databases in a project.\");\nconst PrismaListDatabases_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 (e.g., 'US East (N. Virginia)').\").nullable(),\n}).passthrough().describe(\"Database region information.\");\nconst PrismaListDatabases_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 embedded in database objects.\");\nconst PrismaListDatabases_DatabaseSchema = z.object({\n id: z.string().describe(\"Unique database identifier (format: 'db_xxxxx'). Use this ID for database-specific operations like getting details, managing connections, or deletion.\").nullable(),\n name: z.string().describe(\"Human-readable database name set during creation. Used for identification and display in UIs. Often matches project name for default databases.\").nullable(),\n type: z.string().describe(\"Object type, always 'database'. Provides consistency across API responses.\").nullable(),\n region: PrismaListDatabases_RegionInfoSchema.nullable(),\n status: z.string().describe(\"Current database status indicating operational state. Common values: 'ready' (operational), 'provisioning' (being created), 'failure' (error state), 'maintenance' (temporary unavailable).\").nullable(),\n project: PrismaListDatabases_ProjectInfoSchema.nullable(),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp in UTC (e.g., '2025-07-20T11:08:16.761Z').\").nullable(),\n isDefault: z.boolean().describe(\"True if this is the default database for the project. Default databases are created automatically with projects and typically cannot be deleted.\").nullable(),\n}).passthrough().describe(\"Prisma postgres database in a project.\");\nconst PrismaListDatabases_PaginationSchema = z.object({\n hasMore: z.boolean().describe(\"True if more pages available. Check before making next request.\").nullable(),\n nextCursor: z.string().describe(\"Opaque cursor for next page. Pass to subsequent requests. Null when no more pages.\").nullable().optional(),\n}).passthrough().describe(\"Pagination metadata for cursor-based navigation through database results.\");\nexport const PrismaListDatabasesOutput = z.object({\n data: z.array(PrismaListDatabases_DatabaseSchema).describe(\"Array of database objects within the specified project. Databases are ordered by creation date with most recent first. Includes both default and additional databases created for the project.\"),\n pagination: PrismaListDatabases_PaginationSchema.nullable(),\n}).passthrough().describe(\"API response containing database list and pagination metadata.\");\n\nexport const prismaListDatabases = action(\"PRISMA_LIST_DATABASES\", {\n slug: \"prisma-list-databases\",\n name: \"List Project Databases\",\n description: \"Retrieve paginated list of databases for a specific Prisma project. Returns database details including status, region, and project context. Use for database discovery, monitoring, and project administration.\",\n input: PrismaListDatabasesInput,\n output: PrismaListDatabasesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,mQAAmQ,CAAC,CAAC,SAAS;CAC5T,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wRAAwR,CAAC,CAAC,SAAS;CAC/T,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0LAA0L;AAC3N,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,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,6DAA6D,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8BAA8B;AACxD,MAAM,wCAAwCA,IAAAA,EAAE,OAAO;CACrD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAChF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;AACrE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAC7E,MAAM,qCAAqCA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wJAAwJ,CAAC,CAAC,SAAS;CAC3L,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iJAAiJ,CAAC,CAAC,SAAS;CACtL,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CACjH,QAAQ,qCAAqC,SAAS;CACtD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6LAA6L,CAAC,CAAC,SAAS;CACpO,SAAS,sCAAsC,SAAS;CACxD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CAClH,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kJAAkJ,CAAC,CAAC,SAAS;AAC/L,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAClE,MAAM,uCAAuCA,IAAAA,EAAE,OAAO;CACpD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC1G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2EAA2E;AACrG,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,gMAAgM;CAC3P,YAAY,qCAAqC,SAAS;AAC5D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gEAAgE;AAE1F,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-databases.cjs","names":["z","action"],"sources":["../../src/actions/list-databases.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 PrismaListDatabasesInput = z.object({\n limit: z.number().int().default(100).describe(\"Maximum number of databases to return in a single request. Defaults to 100 if not specified. Valid range is typically 1-500. Use smaller values (10-50) for faster responses when you only need a few databases, or larger values (100-500) when bulk processing.\").optional(),\n cursor: z.string().describe(\"Pagination cursor for retrieving the next page of results. Use the 'nextCursor' value from a previous response to get subsequent pages. Leave as None/null for the first page. Enables efficient pagination through large numbers of databases without missing or duplicating entries.\").optional(),\n projectId: z.string().describe(\"Unique project identifier to list databases for (format: 'prj_xxxxx'). Must be a project the authenticated user has access to. All databases belonging to this project will be returned.\"),\n}).describe(\"Request parameters for listing databases in a project.\");\nconst PrismaListDatabases_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 (e.g., 'US East (N. Virginia)').\").nullable(),\n}).passthrough().describe(\"Database region information.\");\nconst PrismaListDatabases_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 embedded in database objects.\");\nconst PrismaListDatabases_DatabaseSchema = z.object({\n id: z.string().describe(\"Unique database identifier (format: 'db_xxxxx'). Use this ID for database-specific operations like getting details, managing connections, or deletion.\").nullable(),\n name: z.string().describe(\"Human-readable database name set during creation. Used for identification and display in UIs. Often matches project name for default databases.\").nullable(),\n type: z.string().describe(\"Object type, always 'database'. Provides consistency across API responses.\").nullable(),\n region: PrismaListDatabases_RegionInfoSchema.nullable(),\n status: z.string().describe(\"Current database status indicating operational state. Common values: 'ready' (operational), 'provisioning' (being created), 'failure' (error state), 'maintenance' (temporary unavailable).\").nullable(),\n project: PrismaListDatabases_ProjectInfoSchema.nullable(),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp in UTC (e.g., '2025-07-20T11:08:16.761Z').\").nullable(),\n isDefault: z.boolean().describe(\"True if this is the default database for the project. Default databases are created automatically with projects and typically cannot be deleted.\").nullable(),\n}).passthrough().describe(\"Prisma postgres database in a project.\");\nconst PrismaListDatabases_PaginationSchema = z.object({\n hasMore: z.boolean().describe(\"True if more pages available. Check before making next request.\").nullable(),\n nextCursor: z.string().describe(\"Opaque cursor for next page. Pass to subsequent requests. Null when no more pages.\").nullable().optional(),\n}).passthrough().describe(\"Pagination metadata for cursor-based navigation through database results.\");\nexport const PrismaListDatabasesOutput = z.object({\n data: z.array(PrismaListDatabases_DatabaseSchema).describe(\"Array of database objects within the specified project. Databases are ordered by creation date with most recent first. Includes both default and additional databases created for the project.\"),\n pagination: PrismaListDatabases_PaginationSchema.nullable(),\n}).passthrough().describe(\"API response containing database list and pagination metadata.\");\n\nexport const prismaListDatabases: AppAction<\n typeof PrismaListDatabasesInput,\n typeof PrismaListDatabasesOutput,\n typeof prisma.credential\n> = action(\"PRISMA_LIST_DATABASES\", {\n slug: \"prisma-list-databases\",\n name: \"List Project Databases\",\n description: \"Retrieve paginated list of databases for a specific Prisma project. Returns database details including status, region, and project context. Use for database discovery, monitoring, and project administration.\",\n input: PrismaListDatabasesInput,\n output: PrismaListDatabasesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,mQAAmQ,CAAC,CAAC,SAAS;CAC5T,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wRAAwR,CAAC,CAAC,SAAS;CAC/T,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0LAA0L;AAC3N,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,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,6DAA6D,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8BAA8B;AACxD,MAAM,wCAAwCA,IAAAA,EAAE,OAAO;CACrD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAChF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;AACrE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAC7E,MAAM,qCAAqCA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wJAAwJ,CAAC,CAAC,SAAS;CAC3L,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iJAAiJ,CAAC,CAAC,SAAS;CACtL,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CACjH,QAAQ,qCAAqC,SAAS;CACtD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6LAA6L,CAAC,CAAC,SAAS;CACpO,SAAS,sCAAsC,SAAS;CACxD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CAClH,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kJAAkJ,CAAC,CAAC,SAAS;AAC/L,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAClE,MAAM,uCAAuCA,IAAAA,EAAE,OAAO;CACpD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC1G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2EAA2E;AACrG,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,gMAAgM;CAC3P,YAAY,qCAAqC,SAAS;AAC5D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gEAAgE;AAE1F,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/list-databases.d.ts
@@ -28,23 +30,7 @@ declare const PrismaListDatabasesOutput: z.ZodObject<{
28
30
  nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
31
  }, z.core.$loose>>;
30
32
  }, z.core.$loose>;
31
- declare const prismaListDatabases: import("@keystrokehq/action").WorkflowActionDefinition<{
32
- projectId: string;
33
- limit?: number | undefined;
34
- cursor?: string | undefined;
35
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"prisma", z.ZodObject<{
36
- connectionId: z.ZodString;
37
- entityId: z.ZodString;
38
- instanceId: z.ZodString;
39
- }, z.core.$strip>, z.ZodObject<{
40
- accessToken: z.ZodString;
41
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"prisma", z.ZodObject<{
42
- connectionId: z.ZodString;
43
- entityId: z.ZodString;
44
- instanceId: z.ZodString;
45
- }, z.core.$strip>, z.ZodObject<{
46
- accessToken: z.ZodString;
47
- }, z.core.$strip>>]>;
33
+ declare const prismaListDatabases: AppAction<typeof PrismaListDatabasesInput, typeof PrismaListDatabasesOutput, typeof prisma.credential>;
48
34
  //#endregion
49
35
  export { prismaListDatabases };
50
36
  //# sourceMappingURL=list-databases.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-databases.d.cts","names":[],"sources":["../../src/actions/list-databases.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;cA2BxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAKzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"list-databases.d.cts","names":[],"sources":["../../src/actions/list-databases.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;cA2BxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAKzB,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/list-databases.d.ts
@@ -28,23 +30,7 @@ declare const PrismaListDatabasesOutput: z.ZodObject<{
28
30
  nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
31
  }, z.core.$loose>>;
30
32
  }, z.core.$loose>;
31
- declare const prismaListDatabases: import("@keystrokehq/action").WorkflowActionDefinition<{
32
- projectId: string;
33
- limit?: number | undefined;
34
- cursor?: string | undefined;
35
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"prisma", z.ZodObject<{
36
- connectionId: z.ZodString;
37
- entityId: z.ZodString;
38
- instanceId: z.ZodString;
39
- }, z.core.$strip>, z.ZodObject<{
40
- accessToken: z.ZodString;
41
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"prisma", z.ZodObject<{
42
- connectionId: z.ZodString;
43
- entityId: z.ZodString;
44
- instanceId: z.ZodString;
45
- }, z.core.$strip>, z.ZodObject<{
46
- accessToken: z.ZodString;
47
- }, z.core.$strip>>]>;
33
+ declare const prismaListDatabases: AppAction<typeof PrismaListDatabasesInput, typeof PrismaListDatabasesOutput, typeof prisma.credential>;
48
34
  //#endregion
49
35
  export { prismaListDatabases };
50
36
  //# sourceMappingURL=list-databases.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-databases.d.mts","names":[],"sources":["../../src/actions/list-databases.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;cA2BxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAKzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"list-databases.d.mts","names":[],"sources":["../../src/actions/list-databases.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;cA2BxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAKzB,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/list-databases.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-databases.mjs","names":[],"sources":["../../src/actions/list-databases.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaListDatabasesInput = z.object({\n limit: z.number().int().default(100).describe(\"Maximum number of databases to return in a single request. Defaults to 100 if not specified. Valid range is typically 1-500. Use smaller values (10-50) for faster responses when you only need a few databases, or larger values (100-500) when bulk processing.\").optional(),\n cursor: z.string().describe(\"Pagination cursor for retrieving the next page of results. Use the 'nextCursor' value from a previous response to get subsequent pages. Leave as None/null for the first page. Enables efficient pagination through large numbers of databases without missing or duplicating entries.\").optional(),\n projectId: z.string().describe(\"Unique project identifier to list databases for (format: 'prj_xxxxx'). Must be a project the authenticated user has access to. All databases belonging to this project will be returned.\"),\n}).describe(\"Request parameters for listing databases in a project.\");\nconst PrismaListDatabases_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 (e.g., 'US East (N. Virginia)').\").nullable(),\n}).passthrough().describe(\"Database region information.\");\nconst PrismaListDatabases_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 embedded in database objects.\");\nconst PrismaListDatabases_DatabaseSchema = z.object({\n id: z.string().describe(\"Unique database identifier (format: 'db_xxxxx'). Use this ID for database-specific operations like getting details, managing connections, or deletion.\").nullable(),\n name: z.string().describe(\"Human-readable database name set during creation. Used for identification and display in UIs. Often matches project name for default databases.\").nullable(),\n type: z.string().describe(\"Object type, always 'database'. Provides consistency across API responses.\").nullable(),\n region: PrismaListDatabases_RegionInfoSchema.nullable(),\n status: z.string().describe(\"Current database status indicating operational state. Common values: 'ready' (operational), 'provisioning' (being created), 'failure' (error state), 'maintenance' (temporary unavailable).\").nullable(),\n project: PrismaListDatabases_ProjectInfoSchema.nullable(),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp in UTC (e.g., '2025-07-20T11:08:16.761Z').\").nullable(),\n isDefault: z.boolean().describe(\"True if this is the default database for the project. Default databases are created automatically with projects and typically cannot be deleted.\").nullable(),\n}).passthrough().describe(\"Prisma postgres database in a project.\");\nconst PrismaListDatabases_PaginationSchema = z.object({\n hasMore: z.boolean().describe(\"True if more pages available. Check before making next request.\").nullable(),\n nextCursor: z.string().describe(\"Opaque cursor for next page. Pass to subsequent requests. Null when no more pages.\").nullable().optional(),\n}).passthrough().describe(\"Pagination metadata for cursor-based navigation through database results.\");\nexport const PrismaListDatabasesOutput = z.object({\n data: z.array(PrismaListDatabases_DatabaseSchema).describe(\"Array of database objects within the specified project. Databases are ordered by creation date with most recent first. Includes both default and additional databases created for the project.\"),\n pagination: PrismaListDatabases_PaginationSchema.nullable(),\n}).passthrough().describe(\"API response containing database list and pagination metadata.\");\n\nexport const prismaListDatabases = action(\"PRISMA_LIST_DATABASES\", {\n slug: \"prisma-list-databases\",\n name: \"List Project Databases\",\n description: \"Retrieve paginated list of databases for a specific Prisma project. Returns database details including status, region, and project context. Use for database discovery, monitoring, and project administration.\",\n input: PrismaListDatabasesInput,\n output: PrismaListDatabasesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,mQAAmQ,CAAC,CAAC,SAAS;CAC5T,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wRAAwR,CAAC,CAAC,SAAS;CAC/T,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0LAA0L;AAC3N,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,uCAAuC,EAAE,OAAO;CACpD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC3E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8BAA8B;AACxD,MAAM,wCAAwC,EAAE,OAAO;CACrD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAChF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;AACrE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAC7E,MAAM,qCAAqC,EAAE,OAAO;CAClD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wJAAwJ,CAAC,CAAC,SAAS;CAC3L,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iJAAiJ,CAAC,CAAC,SAAS;CACtL,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CACjH,QAAQ,qCAAqC,SAAS;CACtD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6LAA6L,CAAC,CAAC,SAAS;CACpO,SAAS,sCAAsC,SAAS;CACxD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CAClH,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,kJAAkJ,CAAC,CAAC,SAAS;AAC/L,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAClE,MAAM,uCAAuC,EAAE,OAAO;CACpD,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC1G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2EAA2E;AAMrG,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVuC,EAAE,OAAO;EAChD,MAAM,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,gMAAgM;EAC3P,YAAY,qCAAqC,SAAS;CAC5D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gEAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"list-databases.mjs","names":[],"sources":["../../src/actions/list-databases.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 PrismaListDatabasesInput = z.object({\n limit: z.number().int().default(100).describe(\"Maximum number of databases to return in a single request. Defaults to 100 if not specified. Valid range is typically 1-500. Use smaller values (10-50) for faster responses when you only need a few databases, or larger values (100-500) when bulk processing.\").optional(),\n cursor: z.string().describe(\"Pagination cursor for retrieving the next page of results. Use the 'nextCursor' value from a previous response to get subsequent pages. Leave as None/null for the first page. Enables efficient pagination through large numbers of databases without missing or duplicating entries.\").optional(),\n projectId: z.string().describe(\"Unique project identifier to list databases for (format: 'prj_xxxxx'). Must be a project the authenticated user has access to. All databases belonging to this project will be returned.\"),\n}).describe(\"Request parameters for listing databases in a project.\");\nconst PrismaListDatabases_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 (e.g., 'US East (N. Virginia)').\").nullable(),\n}).passthrough().describe(\"Database region information.\");\nconst PrismaListDatabases_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 embedded in database objects.\");\nconst PrismaListDatabases_DatabaseSchema = z.object({\n id: z.string().describe(\"Unique database identifier (format: 'db_xxxxx'). Use this ID for database-specific operations like getting details, managing connections, or deletion.\").nullable(),\n name: z.string().describe(\"Human-readable database name set during creation. Used for identification and display in UIs. Often matches project name for default databases.\").nullable(),\n type: z.string().describe(\"Object type, always 'database'. Provides consistency across API responses.\").nullable(),\n region: PrismaListDatabases_RegionInfoSchema.nullable(),\n status: z.string().describe(\"Current database status indicating operational state. Common values: 'ready' (operational), 'provisioning' (being created), 'failure' (error state), 'maintenance' (temporary unavailable).\").nullable(),\n project: PrismaListDatabases_ProjectInfoSchema.nullable(),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp in UTC (e.g., '2025-07-20T11:08:16.761Z').\").nullable(),\n isDefault: z.boolean().describe(\"True if this is the default database for the project. Default databases are created automatically with projects and typically cannot be deleted.\").nullable(),\n}).passthrough().describe(\"Prisma postgres database in a project.\");\nconst PrismaListDatabases_PaginationSchema = z.object({\n hasMore: z.boolean().describe(\"True if more pages available. Check before making next request.\").nullable(),\n nextCursor: z.string().describe(\"Opaque cursor for next page. Pass to subsequent requests. Null when no more pages.\").nullable().optional(),\n}).passthrough().describe(\"Pagination metadata for cursor-based navigation through database results.\");\nexport const PrismaListDatabasesOutput = z.object({\n data: z.array(PrismaListDatabases_DatabaseSchema).describe(\"Array of database objects within the specified project. Databases are ordered by creation date with most recent first. Includes both default and additional databases created for the project.\"),\n pagination: PrismaListDatabases_PaginationSchema.nullable(),\n}).passthrough().describe(\"API response containing database list and pagination metadata.\");\n\nexport const prismaListDatabases: AppAction<\n typeof PrismaListDatabasesInput,\n typeof PrismaListDatabasesOutput,\n typeof prisma.credential\n> = action(\"PRISMA_LIST_DATABASES\", {\n slug: \"prisma-list-databases\",\n name: \"List Project Databases\",\n description: \"Retrieve paginated list of databases for a specific Prisma project. Returns database details including status, region, and project context. Use for database discovery, monitoring, and project administration.\",\n input: PrismaListDatabasesInput,\n output: PrismaListDatabasesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,mQAAmQ,CAAC,CAAC,SAAS;CAC5T,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wRAAwR,CAAC,CAAC,SAAS;CAC/T,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0LAA0L;AAC3N,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,uCAAuC,EAAE,OAAO;CACpD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC3E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8BAA8B;AACxD,MAAM,wCAAwC,EAAE,OAAO;CACrD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAChF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;AACrE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAC7E,MAAM,qCAAqC,EAAE,OAAO;CAClD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wJAAwJ,CAAC,CAAC,SAAS;CAC3L,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iJAAiJ,CAAC,CAAC,SAAS;CACtL,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CACjH,QAAQ,qCAAqC,SAAS;CACtD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6LAA6L,CAAC,CAAC,SAAS;CACpO,SAAS,sCAAsC,SAAS;CACxD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CAClH,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,kJAAkJ,CAAC,CAAC,SAAS;AAC/L,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAClE,MAAM,uCAAuC,EAAE,OAAO;CACpD,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC1G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2EAA2E;AAMrG,MAAa,sBAIT,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAduC,EAAE,OAAO;EAChD,MAAM,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,gMAAgM;EAC3P,YAAY,qCAAqC,SAAS;CAC5D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gEAWhB;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/list-postgres-regions.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-postgres-regions.cjs","names":["z","action"],"sources":["../../src/actions/list-postgres-regions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaListPostgresRegionsInput = z.object({}).describe(\"Request parameters for listing Prisma Postgres regions.\");\nconst PrismaListPostgresRegions_PostgresRegionSchema = z.object({\n id: z.string().describe(\"Unique region identifier (e.g., 'us-east-1', 'eu-west-1'). Use this ID when creating databases to specify the desired region.\").nullable(),\n name: z.string().describe(\"Human-readable region name (e.g., 'US East (N. Virginia)', 'Europe (Ireland)'). Displays geographical location for user-friendly region selection.\").nullable(),\n type: z.string().describe(\"Object type, always 'region'. Provides consistency across API responses.\").nullable(),\n status: z.string().describe(\"Current region availability status for Prisma Postgres. Values: 'available' (ready for database creation), 'unavailable' (temporarily disabled), 'maintenance' (scheduled maintenance). Only use 'available' regions for new databases.\").nullable(),\n}).passthrough().describe(\"Prisma Postgres region object with availability status.\");\nexport const PrismaListPostgresRegionsOutput = z.object({\n data: z.array(PrismaListPostgresRegions_PostgresRegionSchema).describe(\"Array of Prisma Postgres regions with availability status. Filter for 'available' status when creating new databases. Regions are ordered by geographical priority.\"),\n}).passthrough().describe(\"API response containing available Prisma Postgres regions.\");\n\nexport const prismaListPostgresRegions = action(\"PRISMA_LIST_POSTGRES_REGIONS\", {\n slug: \"prisma-list-postgres-regions\",\n name: \"List Prisma Postgres Regions\",\n description: \"Retrieve all available regions for Prisma Postgres. Returns regions where Prisma Postgres databases can be deployed with current availability status. Use for region selection during database creation and capacity planning.\",\n input: PrismaListPostgresRegionsInput,\n output: PrismaListPostgresRegionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yDAAyD;AAC7H,MAAM,iDAAiDA,IAAAA,EAAE,OAAO;CAC9D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H,CAAC,CAAC,SAAS;CAClK,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oJAAoJ,CAAC,CAAC,SAAS;CACzL,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CAC/G,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yOAAyO,CAAC,CAAC,SAAS;AAClR,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAAyD;AACnF,MAAa,kCAAkCA,IAAAA,EAAE,OAAO,EACtD,MAAMA,IAAAA,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,qKAAqK,EAC9O,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4DAA4D;AAEtF,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-postgres-regions.cjs","names":["z","action"],"sources":["../../src/actions/list-postgres-regions.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 PrismaListPostgresRegionsInput = z.object({}).describe(\"Request parameters for listing Prisma Postgres regions.\");\nconst PrismaListPostgresRegions_PostgresRegionSchema = z.object({\n id: z.string().describe(\"Unique region identifier (e.g., 'us-east-1', 'eu-west-1'). Use this ID when creating databases to specify the desired region.\").nullable(),\n name: z.string().describe(\"Human-readable region name (e.g., 'US East (N. Virginia)', 'Europe (Ireland)'). Displays geographical location for user-friendly region selection.\").nullable(),\n type: z.string().describe(\"Object type, always 'region'. Provides consistency across API responses.\").nullable(),\n status: z.string().describe(\"Current region availability status for Prisma Postgres. Values: 'available' (ready for database creation), 'unavailable' (temporarily disabled), 'maintenance' (scheduled maintenance). Only use 'available' regions for new databases.\").nullable(),\n}).passthrough().describe(\"Prisma Postgres region object with availability status.\");\nexport const PrismaListPostgresRegionsOutput = z.object({\n data: z.array(PrismaListPostgresRegions_PostgresRegionSchema).describe(\"Array of Prisma Postgres regions with availability status. Filter for 'available' status when creating new databases. Regions are ordered by geographical priority.\"),\n}).passthrough().describe(\"API response containing available Prisma Postgres regions.\");\n\nexport const prismaListPostgresRegions: AppAction<\n typeof PrismaListPostgresRegionsInput,\n typeof PrismaListPostgresRegionsOutput,\n typeof prisma.credential\n> = action(\"PRISMA_LIST_POSTGRES_REGIONS\", {\n slug: \"prisma-list-postgres-regions\",\n name: \"List Prisma Postgres Regions\",\n description: \"Retrieve all available regions for Prisma Postgres. Returns regions where Prisma Postgres databases can be deployed with current availability status. Use for region selection during database creation and capacity planning.\",\n input: PrismaListPostgresRegionsInput,\n output: PrismaListPostgresRegionsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yDAAyD;AAC7H,MAAM,iDAAiDA,IAAAA,EAAE,OAAO;CAC9D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H,CAAC,CAAC,SAAS;CAClK,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oJAAoJ,CAAC,CAAC,SAAS;CACzL,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CAC/G,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yOAAyO,CAAC,CAAC,SAAS;AAClR,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAAyD;AACnF,MAAa,kCAAkCA,IAAAA,EAAE,OAAO,EACtD,MAAMA,IAAAA,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,qKAAqK,EAC9O,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4DAA4D;AAEtF,MAAa,4BAITC,eAAAA,OAAO,gCAAgC;CACzC,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/list-postgres-regions.d.ts
@@ -10,19 +12,7 @@ declare const PrismaListPostgresRegionsOutput: z.ZodObject<{
10
12
  status: z.ZodNullable<z.ZodString>;
11
13
  }, z.core.$loose>>;
12
14
  }, z.core.$loose>;
13
- declare const prismaListPostgresRegions: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"prisma", z.ZodObject<{
14
- connectionId: z.ZodString;
15
- entityId: z.ZodString;
16
- instanceId: z.ZodString;
17
- }, z.core.$strip>, z.ZodObject<{
18
- accessToken: z.ZodString;
19
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"prisma", z.ZodObject<{
20
- connectionId: z.ZodString;
21
- entityId: z.ZodString;
22
- instanceId: z.ZodString;
23
- }, z.core.$strip>, z.ZodObject<{
24
- accessToken: z.ZodString;
25
- }, z.core.$strip>>]>;
15
+ declare const prismaListPostgresRegions: AppAction<typeof PrismaListPostgresRegionsInput, typeof PrismaListPostgresRegionsOutput, typeof prisma.credential>;
26
16
  //#endregion
27
17
  export { prismaListPostgresRegions };
28
18
  //# sourceMappingURL=list-postgres-regions.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-postgres-regions.d.cts","names":[],"sources":["../../src/actions/list-postgres-regions.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAO9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;cAI/B,yBAAA,gCAAyB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,WAAA,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"list-postgres-regions.d.cts","names":[],"sources":["../../src/actions/list-postgres-regions.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAO9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;cAI/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,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/list-postgres-regions.d.ts
@@ -10,19 +12,7 @@ declare const PrismaListPostgresRegionsOutput: z.ZodObject<{
10
12
  status: z.ZodNullable<z.ZodString>;
11
13
  }, z.core.$loose>>;
12
14
  }, z.core.$loose>;
13
- declare const prismaListPostgresRegions: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"prisma", z.ZodObject<{
14
- connectionId: z.ZodString;
15
- entityId: z.ZodString;
16
- instanceId: z.ZodString;
17
- }, z.core.$strip>, z.ZodObject<{
18
- accessToken: z.ZodString;
19
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"prisma", z.ZodObject<{
20
- connectionId: z.ZodString;
21
- entityId: z.ZodString;
22
- instanceId: z.ZodString;
23
- }, z.core.$strip>, z.ZodObject<{
24
- accessToken: z.ZodString;
25
- }, z.core.$strip>>]>;
15
+ declare const prismaListPostgresRegions: AppAction<typeof PrismaListPostgresRegionsInput, typeof PrismaListPostgresRegionsOutput, typeof prisma.credential>;
26
16
  //#endregion
27
17
  export { prismaListPostgresRegions };
28
18
  //# sourceMappingURL=list-postgres-regions.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-postgres-regions.d.mts","names":[],"sources":["../../src/actions/list-postgres-regions.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAO9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;cAI/B,yBAAA,gCAAyB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,WAAA,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"list-postgres-regions.d.mts","names":[],"sources":["../../src/actions/list-postgres-regions.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAO9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;cAI/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,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/list-postgres-regions.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-postgres-regions.mjs","names":[],"sources":["../../src/actions/list-postgres-regions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaListPostgresRegionsInput = z.object({}).describe(\"Request parameters for listing Prisma Postgres regions.\");\nconst PrismaListPostgresRegions_PostgresRegionSchema = z.object({\n id: z.string().describe(\"Unique region identifier (e.g., 'us-east-1', 'eu-west-1'). Use this ID when creating databases to specify the desired region.\").nullable(),\n name: z.string().describe(\"Human-readable region name (e.g., 'US East (N. Virginia)', 'Europe (Ireland)'). Displays geographical location for user-friendly region selection.\").nullable(),\n type: z.string().describe(\"Object type, always 'region'. Provides consistency across API responses.\").nullable(),\n status: z.string().describe(\"Current region availability status for Prisma Postgres. Values: 'available' (ready for database creation), 'unavailable' (temporarily disabled), 'maintenance' (scheduled maintenance). Only use 'available' regions for new databases.\").nullable(),\n}).passthrough().describe(\"Prisma Postgres region object with availability status.\");\nexport const PrismaListPostgresRegionsOutput = z.object({\n data: z.array(PrismaListPostgresRegions_PostgresRegionSchema).describe(\"Array of Prisma Postgres regions with availability status. Filter for 'available' status when creating new databases. Regions are ordered by geographical priority.\"),\n}).passthrough().describe(\"API response containing available Prisma Postgres regions.\");\n\nexport const prismaListPostgresRegions = action(\"PRISMA_LIST_POSTGRES_REGIONS\", {\n slug: \"prisma-list-postgres-regions\",\n name: \"List Prisma Postgres Regions\",\n description: \"Retrieve all available regions for Prisma Postgres. Returns regions where Prisma Postgres databases can be deployed with current availability status. Use for region selection during database creation and capacity planning.\",\n input: PrismaListPostgresRegionsInput,\n output: PrismaListPostgresRegionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yDAAyD;AAC7H,MAAM,iDAAiD,EAAE,OAAO;CAC9D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H,CAAC,CAAC,SAAS;CAClK,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oJAAoJ,CAAC,CAAC,SAAS;CACzL,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CAC/G,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,yOAAyO,CAAC,CAAC,SAAS;AAClR,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAAyD;AAKnF,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT6C,EAAE,OAAO,EACtD,MAAM,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,qKAAqK,EAC9O,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4DAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"list-postgres-regions.mjs","names":[],"sources":["../../src/actions/list-postgres-regions.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 PrismaListPostgresRegionsInput = z.object({}).describe(\"Request parameters for listing Prisma Postgres regions.\");\nconst PrismaListPostgresRegions_PostgresRegionSchema = z.object({\n id: z.string().describe(\"Unique region identifier (e.g., 'us-east-1', 'eu-west-1'). Use this ID when creating databases to specify the desired region.\").nullable(),\n name: z.string().describe(\"Human-readable region name (e.g., 'US East (N. Virginia)', 'Europe (Ireland)'). Displays geographical location for user-friendly region selection.\").nullable(),\n type: z.string().describe(\"Object type, always 'region'. Provides consistency across API responses.\").nullable(),\n status: z.string().describe(\"Current region availability status for Prisma Postgres. Values: 'available' (ready for database creation), 'unavailable' (temporarily disabled), 'maintenance' (scheduled maintenance). Only use 'available' regions for new databases.\").nullable(),\n}).passthrough().describe(\"Prisma Postgres region object with availability status.\");\nexport const PrismaListPostgresRegionsOutput = z.object({\n data: z.array(PrismaListPostgresRegions_PostgresRegionSchema).describe(\"Array of Prisma Postgres regions with availability status. Filter for 'available' status when creating new databases. Regions are ordered by geographical priority.\"),\n}).passthrough().describe(\"API response containing available Prisma Postgres regions.\");\n\nexport const prismaListPostgresRegions: AppAction<\n typeof PrismaListPostgresRegionsInput,\n typeof PrismaListPostgresRegionsOutput,\n typeof prisma.credential\n> = action(\"PRISMA_LIST_POSTGRES_REGIONS\", {\n slug: \"prisma-list-postgres-regions\",\n name: \"List Prisma Postgres Regions\",\n description: \"Retrieve all available regions for Prisma Postgres. Returns regions where Prisma Postgres databases can be deployed with current availability status. Use for region selection during database creation and capacity planning.\",\n input: PrismaListPostgresRegionsInput,\n output: PrismaListPostgresRegionsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,iCAAiC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yDAAyD;AAC7H,MAAM,iDAAiD,EAAE,OAAO;CAC9D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H,CAAC,CAAC,SAAS;CAClK,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oJAAoJ,CAAC,CAAC,SAAS;CACzL,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CAC/G,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,yOAAyO,CAAC,CAAC,SAAS;AAClR,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAAyD;AAKnF,MAAa,4BAIT,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAb6C,EAAE,OAAO,EACtD,MAAM,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,qKAAqK,EAC9O,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4DAWhB;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/list-projects.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-projects.cjs","names":["z","action"],"sources":["../../src/actions/list-projects.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaListProjectsInput = z.object({\n limit: z.number().int().default(100).describe(\"Maximum number of projects to return in a single request. Defaults to 100 if not specified. Valid range is typically 1-500. Use smaller values (10-50) for faster responses when you only need a few projects, or larger values (100-500) when bulk processing. The API may return fewer results than requested if fewer projects exist.\").optional(),\n cursor: z.string().describe(\"Pagination cursor for retrieving the next page of results. Use the 'nextCursor' value from a previous response to get subsequent pages. Leave as None/null for the first page. This enables efficient pagination through large numbers of projects without missing or duplicating entries.\").optional(),\n}).describe(\"Request parameters for listing Prisma projects with pagination support.\");\nconst PrismaListProjects_WorkspaceInfoSchema = z.object({\n id: z.string().describe(\"Unique workspace ID that contains this project (format: 'wksp_xxxxx').\").nullable(),\n name: z.string().describe(\"Human-readable workspace name for display purposes.\").nullable(),\n}).passthrough().describe(\"Workspace information embedded in project objects.\");\nconst PrismaListProjects_ProjectSchema = z.object({\n id: z.string().describe(\"Unique project identifier (format: 'prj_xxxxx'). Use this ID for all project-specific operations like getting details, creating databases, or managing environments.\").nullable(),\n name: z.string().describe(\"Human-readable project name set during creation. Used for display in UIs and identification. Can be modified by project admins.\").nullable(),\n type: z.string().describe(\"Object type, always 'project'. Provides consistency across API responses.\").nullable(),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp in UTC (e.g., '2025-07-20T10:54:59.040Z').\").nullable(),\n workspace: PrismaListProjects_WorkspaceInfoSchema.nullable(),\n}).passthrough().describe(\"Prisma project containing databases and environments.\");\nconst PrismaListProjects_PaginationSchema = z.object({\n hasMore: z.boolean().describe(\"True if more pages available. Check before making next request.\").nullable(),\n nextCursor: z.string().describe(\"Opaque cursor for next page. Pass to subsequent requests. Null when no more pages.\").nullable().optional(),\n}).passthrough().describe(\"Pagination metadata for cursor-based navigation through project results.\");\nexport const PrismaListProjectsOutput = z.object({\n data: z.array(PrismaListProjects_ProjectSchema).describe(\"Array of project objects accessible to the authenticated user. Projects are ordered by creation date with most recent first. Each project includes workspace context and creation metadata.\"),\n pagination: PrismaListProjects_PaginationSchema.nullable(),\n}).passthrough().describe(\"API response containing project list and pagination metadata.\");\n\nexport const prismaListProjects = action(\"PRISMA_LIST_PROJECTS\", {\n slug: \"prisma-list-projects\",\n name: \"List Prisma Projects\",\n description: \"Retrieve paginated list of Prisma projects accessible to authenticated user. Returns project IDs, names, workspace info, and timestamps with cursor-based pagination. Use for project discovery, UI selection flows, and administrative operations.\",\n input: PrismaListProjectsInput,\n output: PrismaListProjectsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,0UAA0U,CAAC,CAAC,SAAS;CACnY,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4RAA4R,CAAC,CAAC,SAAS;AACrU,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAM,yCAAyCA,IAAAA,EAAE,OAAO;CACtD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CAC3G,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAC9E,MAAM,mCAAmCA,IAAAA,EAAE,OAAO;CAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sKAAsK,CAAC,CAAC,SAAS;CACzM,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI,CAAC,CAAC,SAAS;CACtK,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CAChH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CAClH,WAAW,uCAAuC,SAAS;AAC7D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AACjF,MAAM,sCAAsCA,IAAAA,EAAE,OAAO;CACnD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC1G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0EAA0E;AACpG,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,6LAA6L;CACtP,YAAY,oCAAoC,SAAS;AAC3D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+DAA+D;AAEzF,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-projects.cjs","names":["z","action"],"sources":["../../src/actions/list-projects.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 PrismaListProjectsInput = z.object({\n limit: z.number().int().default(100).describe(\"Maximum number of projects to return in a single request. Defaults to 100 if not specified. Valid range is typically 1-500. Use smaller values (10-50) for faster responses when you only need a few projects, or larger values (100-500) when bulk processing. The API may return fewer results than requested if fewer projects exist.\").optional(),\n cursor: z.string().describe(\"Pagination cursor for retrieving the next page of results. Use the 'nextCursor' value from a previous response to get subsequent pages. Leave as None/null for the first page. This enables efficient pagination through large numbers of projects without missing or duplicating entries.\").optional(),\n}).describe(\"Request parameters for listing Prisma projects with pagination support.\");\nconst PrismaListProjects_WorkspaceInfoSchema = z.object({\n id: z.string().describe(\"Unique workspace ID that contains this project (format: 'wksp_xxxxx').\").nullable(),\n name: z.string().describe(\"Human-readable workspace name for display purposes.\").nullable(),\n}).passthrough().describe(\"Workspace information embedded in project objects.\");\nconst PrismaListProjects_ProjectSchema = z.object({\n id: z.string().describe(\"Unique project identifier (format: 'prj_xxxxx'). Use this ID for all project-specific operations like getting details, creating databases, or managing environments.\").nullable(),\n name: z.string().describe(\"Human-readable project name set during creation. Used for display in UIs and identification. Can be modified by project admins.\").nullable(),\n type: z.string().describe(\"Object type, always 'project'. Provides consistency across API responses.\").nullable(),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp in UTC (e.g., '2025-07-20T10:54:59.040Z').\").nullable(),\n workspace: PrismaListProjects_WorkspaceInfoSchema.nullable(),\n}).passthrough().describe(\"Prisma project containing databases and environments.\");\nconst PrismaListProjects_PaginationSchema = z.object({\n hasMore: z.boolean().describe(\"True if more pages available. Check before making next request.\").nullable(),\n nextCursor: z.string().describe(\"Opaque cursor for next page. Pass to subsequent requests. Null when no more pages.\").nullable().optional(),\n}).passthrough().describe(\"Pagination metadata for cursor-based navigation through project results.\");\nexport const PrismaListProjectsOutput = z.object({\n data: z.array(PrismaListProjects_ProjectSchema).describe(\"Array of project objects accessible to the authenticated user. Projects are ordered by creation date with most recent first. Each project includes workspace context and creation metadata.\"),\n pagination: PrismaListProjects_PaginationSchema.nullable(),\n}).passthrough().describe(\"API response containing project list and pagination metadata.\");\n\nexport const prismaListProjects: AppAction<\n typeof PrismaListProjectsInput,\n typeof PrismaListProjectsOutput,\n typeof prisma.credential\n> = action(\"PRISMA_LIST_PROJECTS\", {\n slug: \"prisma-list-projects\",\n name: \"List Prisma Projects\",\n description: \"Retrieve paginated list of Prisma projects accessible to authenticated user. Returns project IDs, names, workspace info, and timestamps with cursor-based pagination. Use for project discovery, UI selection flows, and administrative operations.\",\n input: PrismaListProjectsInput,\n output: PrismaListProjectsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,0UAA0U,CAAC,CAAC,SAAS;CACnY,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4RAA4R,CAAC,CAAC,SAAS;AACrU,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAM,yCAAyCA,IAAAA,EAAE,OAAO;CACtD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CAC3G,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAC9E,MAAM,mCAAmCA,IAAAA,EAAE,OAAO;CAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sKAAsK,CAAC,CAAC,SAAS;CACzM,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI,CAAC,CAAC,SAAS;CACtK,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CAChH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CAClH,WAAW,uCAAuC,SAAS;AAC7D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AACjF,MAAM,sCAAsCA,IAAAA,EAAE,OAAO;CACnD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC1G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0EAA0E;AACpG,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,6LAA6L;CACtP,YAAY,oCAAoC,SAAS;AAC3D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+DAA+D;AAEzF,MAAa,qBAITC,eAAAA,OAAO,wBAAwB;CACjC,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/list-projects.d.ts
@@ -21,22 +23,7 @@ declare const PrismaListProjectsOutput: z.ZodObject<{
21
23
  nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
24
  }, z.core.$loose>>;
23
25
  }, z.core.$loose>;
24
- declare const prismaListProjects: import("@keystrokehq/action").WorkflowActionDefinition<{
25
- limit?: number | undefined;
26
- cursor?: string | undefined;
27
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"prisma", z.ZodObject<{
28
- connectionId: z.ZodString;
29
- entityId: z.ZodString;
30
- instanceId: z.ZodString;
31
- }, z.core.$strip>, z.ZodObject<{
32
- accessToken: z.ZodString;
33
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"prisma", z.ZodObject<{
34
- connectionId: z.ZodString;
35
- entityId: z.ZodString;
36
- instanceId: z.ZodString;
37
- }, z.core.$strip>, z.ZodObject<{
38
- accessToken: z.ZodString;
39
- }, z.core.$strip>>]>;
26
+ declare const prismaListProjects: AppAction<typeof PrismaListProjectsInput, typeof PrismaListProjectsOutput, typeof prisma.credential>;
40
27
  //#endregion
41
28
  export { prismaListProjects };
42
29
  //# sourceMappingURL=list-projects.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-projects.d.cts","names":[],"sources":["../../src/actions/list-projects.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;cAmBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAKxB,kBAAA,gCAAkB,wBAAA"}
1
+ {"version":3,"file":"list-projects.d.cts","names":[],"sources":["../../src/actions/list-projects.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;cAmBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAKxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,MAAA,CAAO,UAAA"}