@keystrokehq/prisma 0.1.0

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 (210) hide show
  1. package/README.md +17 -0
  2. package/dist/action.cjs +21 -0
  3. package/dist/action.cjs.map +1 -0
  4. package/dist/action.mjs +21 -0
  5. package/dist/action.mjs.map +1 -0
  6. package/dist/actions/create-connection.cjs +34 -0
  7. package/dist/actions/create-connection.cjs.map +1 -0
  8. package/dist/actions/create-connection.d.cts +9 -0
  9. package/dist/actions/create-connection.d.cts.map +1 -0
  10. package/dist/actions/create-connection.d.mts +9 -0
  11. package/dist/actions/create-connection.d.mts.map +1 -0
  12. package/dist/actions/create-connection.mjs +33 -0
  13. package/dist/actions/create-connection.mjs.map +1 -0
  14. package/dist/actions/create-database.cjs +55 -0
  15. package/dist/actions/create-database.cjs.map +1 -0
  16. package/dist/actions/create-database.d.cts +9 -0
  17. package/dist/actions/create-database.d.cts.map +1 -0
  18. package/dist/actions/create-database.d.mts +9 -0
  19. package/dist/actions/create-database.d.mts.map +1 -0
  20. package/dist/actions/create-database.mjs +54 -0
  21. package/dist/actions/create-database.mjs.map +1 -0
  22. package/dist/actions/create-project.cjs +60 -0
  23. package/dist/actions/create-project.cjs.map +1 -0
  24. package/dist/actions/create-project.d.cts +9 -0
  25. package/dist/actions/create-project.d.cts.map +1 -0
  26. package/dist/actions/create-project.d.mts +9 -0
  27. package/dist/actions/create-project.d.mts.map +1 -0
  28. package/dist/actions/create-project.mjs +59 -0
  29. package/dist/actions/create-project.mjs.map +1 -0
  30. package/dist/actions/delete-connection.cjs +16 -0
  31. package/dist/actions/delete-connection.cjs.map +1 -0
  32. package/dist/actions/delete-connection.d.cts +9 -0
  33. package/dist/actions/delete-connection.d.cts.map +1 -0
  34. package/dist/actions/delete-connection.d.mts +9 -0
  35. package/dist/actions/delete-connection.d.mts.map +1 -0
  36. package/dist/actions/delete-connection.mjs +13 -0
  37. package/dist/actions/delete-connection.mjs.map +1 -0
  38. package/dist/actions/delete-database.cjs +16 -0
  39. package/dist/actions/delete-database.cjs.map +1 -0
  40. package/dist/actions/delete-database.d.cts +9 -0
  41. package/dist/actions/delete-database.d.cts.map +1 -0
  42. package/dist/actions/delete-database.d.mts +9 -0
  43. package/dist/actions/delete-database.d.mts.map +1 -0
  44. package/dist/actions/delete-database.mjs +13 -0
  45. package/dist/actions/delete-database.mjs.map +1 -0
  46. package/dist/actions/delete-project.cjs +16 -0
  47. package/dist/actions/delete-project.cjs.map +1 -0
  48. package/dist/actions/delete-project.d.cts +9 -0
  49. package/dist/actions/delete-project.d.cts.map +1 -0
  50. package/dist/actions/delete-project.d.mts +9 -0
  51. package/dist/actions/delete-project.d.mts.map +1 -0
  52. package/dist/actions/delete-project.mjs +13 -0
  53. package/dist/actions/delete-project.mjs.map +1 -0
  54. package/dist/actions/execute-sql-command.cjs +31 -0
  55. package/dist/actions/execute-sql-command.cjs.map +1 -0
  56. package/dist/actions/execute-sql-command.d.cts +9 -0
  57. package/dist/actions/execute-sql-command.d.cts.map +1 -0
  58. package/dist/actions/execute-sql-command.d.mts +9 -0
  59. package/dist/actions/execute-sql-command.d.mts.map +1 -0
  60. package/dist/actions/execute-sql-command.mjs +30 -0
  61. package/dist/actions/execute-sql-command.mjs.map +1 -0
  62. package/dist/actions/execute-sql-query.cjs +33 -0
  63. package/dist/actions/execute-sql-query.cjs.map +1 -0
  64. package/dist/actions/execute-sql-query.d.cts +9 -0
  65. package/dist/actions/execute-sql-query.d.cts.map +1 -0
  66. package/dist/actions/execute-sql-query.d.mts +9 -0
  67. package/dist/actions/execute-sql-query.d.mts.map +1 -0
  68. package/dist/actions/execute-sql-query.mjs +32 -0
  69. package/dist/actions/execute-sql-query.mjs.map +1 -0
  70. package/dist/actions/get-database-usage.cjs +36 -0
  71. package/dist/actions/get-database-usage.cjs.map +1 -0
  72. package/dist/actions/get-database-usage.d.cts +9 -0
  73. package/dist/actions/get-database-usage.d.cts.map +1 -0
  74. package/dist/actions/get-database-usage.d.mts +9 -0
  75. package/dist/actions/get-database-usage.d.mts.map +1 -0
  76. package/dist/actions/get-database-usage.mjs +35 -0
  77. package/dist/actions/get-database-usage.mjs.map +1 -0
  78. package/dist/actions/get-database.cjs +34 -0
  79. package/dist/actions/get-database.cjs.map +1 -0
  80. package/dist/actions/get-database.d.cts +9 -0
  81. package/dist/actions/get-database.d.cts.map +1 -0
  82. package/dist/actions/get-database.d.mts +9 -0
  83. package/dist/actions/get-database.d.mts.map +1 -0
  84. package/dist/actions/get-database.mjs +33 -0
  85. package/dist/actions/get-database.mjs.map +1 -0
  86. package/dist/actions/get-project.cjs +27 -0
  87. package/dist/actions/get-project.cjs.map +1 -0
  88. package/dist/actions/get-project.d.cts +9 -0
  89. package/dist/actions/get-project.d.cts.map +1 -0
  90. package/dist/actions/get-project.d.mts +9 -0
  91. package/dist/actions/get-project.d.mts.map +1 -0
  92. package/dist/actions/get-project.mjs +26 -0
  93. package/dist/actions/get-project.mjs.map +1 -0
  94. package/dist/actions/index.cjs +45 -0
  95. package/dist/actions/index.d.cts +23 -0
  96. package/dist/actions/index.d.mts +23 -0
  97. package/dist/actions/index.mjs +23 -0
  98. package/dist/actions/inspect-database-schema.cjs +44 -0
  99. package/dist/actions/inspect-database-schema.cjs.map +1 -0
  100. package/dist/actions/inspect-database-schema.d.cts +9 -0
  101. package/dist/actions/inspect-database-schema.d.cts.map +1 -0
  102. package/dist/actions/inspect-database-schema.d.mts +9 -0
  103. package/dist/actions/inspect-database-schema.d.mts.map +1 -0
  104. package/dist/actions/inspect-database-schema.mjs +43 -0
  105. package/dist/actions/inspect-database-schema.mjs.map +1 -0
  106. package/dist/actions/list-accelerate-regions.cjs +21 -0
  107. package/dist/actions/list-accelerate-regions.cjs.map +1 -0
  108. package/dist/actions/list-accelerate-regions.d.cts +9 -0
  109. package/dist/actions/list-accelerate-regions.d.cts.map +1 -0
  110. package/dist/actions/list-accelerate-regions.d.mts +9 -0
  111. package/dist/actions/list-accelerate-regions.d.mts.map +1 -0
  112. package/dist/actions/list-accelerate-regions.mjs +20 -0
  113. package/dist/actions/list-accelerate-regions.mjs.map +1 -0
  114. package/dist/actions/list-backups.cjs +36 -0
  115. package/dist/actions/list-backups.cjs.map +1 -0
  116. package/dist/actions/list-backups.d.cts +9 -0
  117. package/dist/actions/list-backups.d.cts.map +1 -0
  118. package/dist/actions/list-backups.d.mts +9 -0
  119. package/dist/actions/list-backups.d.mts.map +1 -0
  120. package/dist/actions/list-backups.mjs +35 -0
  121. package/dist/actions/list-backups.mjs.map +1 -0
  122. package/dist/actions/list-connections.cjs +38 -0
  123. package/dist/actions/list-connections.cjs.map +1 -0
  124. package/dist/actions/list-connections.d.cts +9 -0
  125. package/dist/actions/list-connections.d.cts.map +1 -0
  126. package/dist/actions/list-connections.d.mts +9 -0
  127. package/dist/actions/list-connections.d.mts.map +1 -0
  128. package/dist/actions/list-connections.mjs +37 -0
  129. package/dist/actions/list-connections.mjs.map +1 -0
  130. package/dist/actions/list-databases.cjs +45 -0
  131. package/dist/actions/list-databases.cjs.map +1 -0
  132. package/dist/actions/list-databases.d.cts +9 -0
  133. package/dist/actions/list-databases.d.cts.map +1 -0
  134. package/dist/actions/list-databases.d.mts +9 -0
  135. package/dist/actions/list-databases.d.mts.map +1 -0
  136. package/dist/actions/list-databases.mjs +44 -0
  137. package/dist/actions/list-databases.mjs.map +1 -0
  138. package/dist/actions/list-postgres-regions.cjs +22 -0
  139. package/dist/actions/list-postgres-regions.cjs.map +1 -0
  140. package/dist/actions/list-postgres-regions.d.cts +9 -0
  141. package/dist/actions/list-postgres-regions.d.cts.map +1 -0
  142. package/dist/actions/list-postgres-regions.d.mts +9 -0
  143. package/dist/actions/list-postgres-regions.d.mts.map +1 -0
  144. package/dist/actions/list-postgres-regions.mjs +21 -0
  145. package/dist/actions/list-postgres-regions.mjs.map +1 -0
  146. package/dist/actions/list-projects.cjs +37 -0
  147. package/dist/actions/list-projects.cjs.map +1 -0
  148. package/dist/actions/list-projects.d.cts +9 -0
  149. package/dist/actions/list-projects.d.cts.map +1 -0
  150. package/dist/actions/list-projects.d.mts +9 -0
  151. package/dist/actions/list-projects.d.mts.map +1 -0
  152. package/dist/actions/list-projects.mjs +36 -0
  153. package/dist/actions/list-projects.mjs.map +1 -0
  154. package/dist/actions/list-workspace-integrations.cjs +43 -0
  155. package/dist/actions/list-workspace-integrations.cjs.map +1 -0
  156. package/dist/actions/list-workspace-integrations.d.cts +9 -0
  157. package/dist/actions/list-workspace-integrations.d.cts.map +1 -0
  158. package/dist/actions/list-workspace-integrations.d.mts +9 -0
  159. package/dist/actions/list-workspace-integrations.d.mts.map +1 -0
  160. package/dist/actions/list-workspace-integrations.mjs +42 -0
  161. package/dist/actions/list-workspace-integrations.mjs.map +1 -0
  162. package/dist/actions/list-workspaces.cjs +32 -0
  163. package/dist/actions/list-workspaces.cjs.map +1 -0
  164. package/dist/actions/list-workspaces.d.cts +9 -0
  165. package/dist/actions/list-workspaces.d.cts.map +1 -0
  166. package/dist/actions/list-workspaces.d.mts +9 -0
  167. package/dist/actions/list-workspaces.d.mts.map +1 -0
  168. package/dist/actions/list-workspaces.mjs +31 -0
  169. package/dist/actions/list-workspaces.mjs.map +1 -0
  170. package/dist/actions/restore-backup.cjs +38 -0
  171. package/dist/actions/restore-backup.cjs.map +1 -0
  172. package/dist/actions/restore-backup.d.cts +9 -0
  173. package/dist/actions/restore-backup.d.cts.map +1 -0
  174. package/dist/actions/restore-backup.d.mts +9 -0
  175. package/dist/actions/restore-backup.d.mts.map +1 -0
  176. package/dist/actions/restore-backup.mjs +37 -0
  177. package/dist/actions/restore-backup.mjs.map +1 -0
  178. package/dist/actions/transfer-project.cjs +22 -0
  179. package/dist/actions/transfer-project.cjs.map +1 -0
  180. package/dist/actions/transfer-project.d.cts +9 -0
  181. package/dist/actions/transfer-project.d.cts.map +1 -0
  182. package/dist/actions/transfer-project.d.mts +9 -0
  183. package/dist/actions/transfer-project.d.mts.map +1 -0
  184. package/dist/actions/transfer-project.mjs +19 -0
  185. package/dist/actions/transfer-project.mjs.map +1 -0
  186. package/dist/app.cjs +9 -0
  187. package/dist/app.cjs.map +1 -0
  188. package/dist/app.d.cts +5 -0
  189. package/dist/app.d.cts.map +1 -0
  190. package/dist/app.d.mts +5 -0
  191. package/dist/app.d.mts.map +1 -0
  192. package/dist/app.mjs +10 -0
  193. package/dist/app.mjs.map +1 -0
  194. package/dist/catalog.cjs +15 -0
  195. package/dist/catalog.cjs.map +1 -0
  196. package/dist/catalog.d.cts +14 -0
  197. package/dist/catalog.d.cts.map +1 -0
  198. package/dist/catalog.d.mts +14 -0
  199. package/dist/catalog.d.mts.map +1 -0
  200. package/dist/catalog.mjs +15 -0
  201. package/dist/catalog.mjs.map +1 -0
  202. package/dist/execute.cjs +18 -0
  203. package/dist/execute.cjs.map +1 -0
  204. package/dist/execute.mjs +18 -0
  205. package/dist/execute.mjs.map +1 -0
  206. package/dist/index.cjs +50 -0
  207. package/dist/index.d.cts +25 -0
  208. package/dist/index.d.mts +25 -0
  209. package/dist/index.mjs +26 -0
  210. package/package.json +49 -0
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-projects.d.ts
4
+ declare const PrismaListProjectsInput: z.ZodTypeAny;
5
+ declare const PrismaListProjectsOutput: z.ZodTypeAny;
6
+ declare const prismaListProjects: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { prismaListProjects };
9
+ //# sourceMappingURL=list-projects.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-projects.d.cts","names":[],"sources":["../../src/actions/list-projects.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAG8C;AAAA,cAgBzE,wBAAA,EAA0B,CAAA,CAAE,UAGmC;AAAA,cAE/D,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-projects.d.ts
4
+ declare const PrismaListProjectsInput: z.ZodTypeAny;
5
+ declare const PrismaListProjectsOutput: z.ZodTypeAny;
6
+ declare const prismaListProjects: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { prismaListProjects };
9
+ //# sourceMappingURL=list-projects.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-projects.d.mts","names":[],"sources":["../../src/actions/list-projects.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAG8C;AAAA,cAgBzE,wBAAA,EAA0B,CAAA,CAAE,UAGmC;AAAA,cAE/D,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,36 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/list-projects.ts
4
+ const PrismaListProjectsInput = z.object({
5
+ 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(),
6
+ 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()
7
+ }).describe("Request parameters for listing Prisma projects with pagination support.");
8
+ const PrismaListProjects_WorkspaceInfoSchema = z.object({
9
+ id: z.string().describe("Unique workspace ID that contains this project (format: 'wksp_xxxxx')."),
10
+ name: z.string().describe("Human-readable workspace name for display purposes.")
11
+ }).describe("Workspace information embedded in project objects.");
12
+ const PrismaListProjects_ProjectSchema = z.object({
13
+ 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."),
14
+ name: z.string().describe("Human-readable project name set during creation. Used for display in UIs and identification. Can be modified by project admins."),
15
+ type: z.string().describe("Object type, always 'project'. Provides consistency across API responses."),
16
+ createdAt: z.string().describe("ISO 8601 creation timestamp in UTC (e.g., '2025-07-20T10:54:59.040Z')."),
17
+ workspace: PrismaListProjects_WorkspaceInfoSchema.nullable()
18
+ }).describe("Prisma project containing databases and environments.");
19
+ const PrismaListProjects_PaginationSchema = z.object({
20
+ hasMore: z.boolean().describe("True if more pages available. Check before making next request."),
21
+ nextCursor: z.string().describe("Opaque cursor for next page. Pass to subsequent requests. Null when no more pages.").nullable().optional()
22
+ }).describe("Pagination metadata for cursor-based navigation through project results.");
23
+ const prismaListProjects = action("PRISMA_LIST_PROJECTS", {
24
+ slug: "prisma-list-projects",
25
+ name: "List Prisma Projects",
26
+ 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.",
27
+ input: PrismaListProjectsInput,
28
+ output: z.object({
29
+ 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."),
30
+ pagination: PrismaListProjects_PaginationSchema.nullable()
31
+ }).describe("API response containing project list and pagination metadata.")
32
+ });
33
+ //#endregion
34
+ export { prismaListProjects };
35
+
36
+ //# sourceMappingURL=list-projects.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-projects.mjs","names":[],"sources":["../../src/actions/list-projects.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaListProjectsInput: z.ZodTypeAny = 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.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique workspace ID that contains this project (format: 'wksp_xxxxx').\"),\n name: z.string().describe(\"Human-readable workspace name for display purposes.\"),\n}).describe(\"Workspace information embedded in project objects.\");\nconst PrismaListProjects_ProjectSchema: z.ZodTypeAny = 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.\"),\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.\"),\n type: z.string().describe(\"Object type, always 'project'. Provides consistency across API responses.\"),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp in UTC (e.g., '2025-07-20T10:54:59.040Z').\"),\n workspace: PrismaListProjects_WorkspaceInfoSchema.nullable(),\n}).describe(\"Prisma project containing databases and environments.\");\nconst PrismaListProjects_PaginationSchema: z.ZodTypeAny = z.object({\n hasMore: z.boolean().describe(\"True if more pages available. Check before making next request.\"),\n nextCursor: z.string().describe(\"Opaque cursor for next page. Pass to subsequent requests. Null when no more pages.\").nullable().optional(),\n}).describe(\"Pagination metadata for cursor-based navigation through project results.\");\nexport const PrismaListProjectsOutput: z.ZodTypeAny = 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}).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,0BAAwC,EAAE,OAAO;CAC5D,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,0UAA0U,CAAC,CAAC,SAAS;CACnY,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4RAA4R,CAAC,CAAC,SAAS;AACrU,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAM,yCAAuD,EAAE,OAAO;CACpE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE;CAChG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;AACjF,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAM,mCAAiD,EAAE,OAAO;CAC9D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,sKAAsK;CAC9L,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI;CAC3J,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E;CACrG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE;CACvG,WAAW,uCAAuC,SAAS;AAC7D,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAM,sCAAoD,EAAE,OAAO;CACjE,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,iEAAiE;CAC/F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5I,CAAC,CAAC,CAAC,SAAS,0EAA0E;AAMtF,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVoD,EAAE,OAAO;EAC7D,MAAM,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,6LAA6L;EACtP,YAAY,oCAAoC,SAAS;CAC3D,CAAC,CAAC,CAAC,SAAS,+DAOF;AACV,CAAC"}
@@ -0,0 +1,43 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/list-workspace-integrations.ts
4
+ const PrismaListWorkspaceIntegrationsInput = zod.z.object({
5
+ limit: zod.z.number().int().default(100).describe("Maximum number of integrations 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 integrations, or larger values (100-500) when bulk processing.").optional(),
6
+ cursor: zod.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 integrations without missing or duplicating entries.").optional(),
7
+ workspaceId: zod.z.string().describe("Unique workspace identifier to list integrations for (format: 'wksp_xxxxx'). Must be a workspace the authenticated user has access to. All integrations belonging to this workspace will be returned.")
8
+ }).describe("Request parameters for listing integrations in a workspace.");
9
+ const PrismaListWorkspaceIntegrations_ClientInfoSchema = zod.z.object({
10
+ id: zod.z.string().describe("Unique client identifier for the OAuth application."),
11
+ name: zod.z.string().describe("Human-readable name of the OAuth client application."),
12
+ redirectUri: zod.z.string().describe("OAuth redirect URI where authorization responses are sent after user consent.")
13
+ }).describe("OAuth client information for an integration.");
14
+ const PrismaListWorkspaceIntegrations_UserInfoSchema = zod.z.object({
15
+ id: zod.z.string().describe("Unique user identifier who created the integration."),
16
+ email: zod.z.string().describe("Email address of the user who created the integration. Used for auditing and contact purposes.")
17
+ }).describe("User information for the creator of an integration.");
18
+ const PrismaListWorkspaceIntegrations_IntegrationSchema = zod.z.object({
19
+ id: zod.z.string().describe("Unique integration identifier (format: 'int_xxxxx'). Use this ID for integration-specific operations like revocation or management."),
20
+ client: PrismaListWorkspaceIntegrations_ClientInfoSchema.nullable(),
21
+ scopes: zod.z.array(zod.z.string()).describe("List of OAuth scopes granted to this integration (e.g., ['workspace:read', 'workspace:admin', 'offline_access']). Scopes determine the level of access this integration has to workspace resources. Common scopes include workspace:read, workspace:admin, database:read, database:write, and offline_access."),
22
+ createdAt: zod.z.string().describe("ISO 8601 creation timestamp in UTC (e.g., '2025-07-20T11:08:16.761Z')."),
23
+ createdByUser: PrismaListWorkspaceIntegrations_UserInfoSchema.nullable()
24
+ }).describe("Workspace integration with OAuth client and scope details.");
25
+ const PrismaListWorkspaceIntegrations_PaginationSchema = zod.z.object({
26
+ hasMore: zod.z.boolean().describe("True if more pages available. Check before making next request."),
27
+ nextCursor: zod.z.string().describe("Opaque cursor for next page. Pass to subsequent requests. Null when no more pages.").nullable().optional()
28
+ }).describe("Pagination metadata for cursor-based navigation through integration results.");
29
+ const PrismaListWorkspaceIntegrationsOutput = zod.z.object({
30
+ data: zod.z.array(PrismaListWorkspaceIntegrations_IntegrationSchema).describe("Array of integration objects within the specified workspace. Integrations represent OAuth applications with authorized access to workspace resources. Includes client details, granted scopes, and creator information for each integration."),
31
+ pagination: PrismaListWorkspaceIntegrations_PaginationSchema.nullable()
32
+ }).describe("API response containing integration list and pagination metadata.");
33
+ const prismaListWorkspaceIntegrations = require_action.action("PRISMA_LIST_WORKSPACE_INTEGRATIONS", {
34
+ slug: "prisma-list-workspace-integrations",
35
+ name: "List Workspace Integrations",
36
+ description: "Retrieve paginated list of integrations for a specific Prisma workspace. Returns integration details including OAuth client info, granted scopes, and creator. Use for security audits, integration management, and workspace administration.",
37
+ input: PrismaListWorkspaceIntegrationsInput,
38
+ output: PrismaListWorkspaceIntegrationsOutput
39
+ });
40
+ //#endregion
41
+ exports.prismaListWorkspaceIntegrations = prismaListWorkspaceIntegrations;
42
+
43
+ //# sourceMappingURL=list-workspace-integrations.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-workspace-integrations.cjs","names":["z","action"],"sources":["../../src/actions/list-workspace-integrations.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaListWorkspaceIntegrationsInput: z.ZodTypeAny = z.object({\n limit: z.number().int().default(100).describe(\"Maximum number of integrations 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 integrations, 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 integrations without missing or duplicating entries.\").optional(),\n workspaceId: z.string().describe(\"Unique workspace identifier to list integrations for (format: 'wksp_xxxxx'). Must be a workspace the authenticated user has access to. All integrations belonging to this workspace will be returned.\"),\n}).describe(\"Request parameters for listing integrations in a workspace.\");\nconst PrismaListWorkspaceIntegrations_ClientInfoSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique client identifier for the OAuth application.\"),\n name: z.string().describe(\"Human-readable name of the OAuth client application.\"),\n redirectUri: z.string().describe(\"OAuth redirect URI where authorization responses are sent after user consent.\"),\n}).describe(\"OAuth client information for an integration.\");\nconst PrismaListWorkspaceIntegrations_UserInfoSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique user identifier who created the integration.\"),\n email: z.string().describe(\"Email address of the user who created the integration. Used for auditing and contact purposes.\"),\n}).describe(\"User information for the creator of an integration.\");\nconst PrismaListWorkspaceIntegrations_IntegrationSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique integration identifier (format: 'int_xxxxx'). Use this ID for integration-specific operations like revocation or management.\"),\n client: PrismaListWorkspaceIntegrations_ClientInfoSchema.nullable(),\n scopes: z.array(z.string()).describe(\"List of OAuth scopes granted to this integration (e.g., ['workspace:read', 'workspace:admin', 'offline_access']). Scopes determine the level of access this integration has to workspace resources. Common scopes include workspace:read, workspace:admin, database:read, database:write, and offline_access.\"),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp in UTC (e.g., '2025-07-20T11:08:16.761Z').\"),\n createdByUser: PrismaListWorkspaceIntegrations_UserInfoSchema.nullable(),\n}).describe(\"Workspace integration with OAuth client and scope details.\");\nconst PrismaListWorkspaceIntegrations_PaginationSchema: z.ZodTypeAny = z.object({\n hasMore: z.boolean().describe(\"True if more pages available. Check before making next request.\"),\n nextCursor: z.string().describe(\"Opaque cursor for next page. Pass to subsequent requests. Null when no more pages.\").nullable().optional(),\n}).describe(\"Pagination metadata for cursor-based navigation through integration results.\");\nexport const PrismaListWorkspaceIntegrationsOutput: z.ZodTypeAny = z.object({\n data: z.array(PrismaListWorkspaceIntegrations_IntegrationSchema).describe(\"Array of integration objects within the specified workspace. Integrations represent OAuth applications with authorized access to workspace resources. Includes client details, granted scopes, and creator information for each integration.\"),\n pagination: PrismaListWorkspaceIntegrations_PaginationSchema.nullable(),\n}).describe(\"API response containing integration list and pagination metadata.\");\n\nexport const prismaListWorkspaceIntegrations = action(\"PRISMA_LIST_WORKSPACE_INTEGRATIONS\", {\n slug: \"prisma-list-workspace-integrations\",\n name: \"List Workspace Integrations\",\n description: \"Retrieve paginated list of integrations for a specific Prisma workspace. Returns integration details including OAuth client info, granted scopes, and creator. Use for security audits, integration management, and workspace administration.\",\n input: PrismaListWorkspaceIntegrationsInput,\n output: PrismaListWorkspaceIntegrationsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAqDA,IAAAA,EAAE,OAAO;CACzE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,yQAAyQ,CAAC,CAAC,SAAS;CAClU,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2RAA2R,CAAC,CAAC,SAAS;CAClU,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uMAAuM;AAC1O,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,mDAAiEA,IAAAA,EAAE,OAAO;CAC9E,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;CAC7E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CAChF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;AAClH,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,iDAA+DA,IAAAA,EAAE,OAAO;CAC5E,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;CAC7E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG;AAC7H,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,oDAAkEA,IAAAA,EAAE,OAAO;CAC/E,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qIAAqI;CAC7J,QAAQ,iDAAiD,SAAS;CAClE,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+SAA+S;CACpV,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE;CACvG,eAAe,+CAA+C,SAAS;AACzE,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,mDAAiEA,IAAAA,EAAE,OAAO;CAC9E,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iEAAiE;CAC/F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5I,CAAC,CAAC,CAAC,SAAS,8EAA8E;AAC1F,MAAa,wCAAsDA,IAAAA,EAAE,OAAO;CAC1E,MAAMA,IAAAA,EAAE,MAAM,iDAAiD,CAAC,CAAC,SAAS,8OAA8O;CACxT,YAAY,iDAAiD,SAAS;AACxE,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAE/E,MAAa,kCAAkCC,eAAAA,OAAO,sCAAsC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-workspace-integrations.d.ts
4
+ declare const PrismaListWorkspaceIntegrationsInput: z.ZodTypeAny;
5
+ declare const PrismaListWorkspaceIntegrationsOutput: z.ZodTypeAny;
6
+ declare const prismaListWorkspaceIntegrations: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { prismaListWorkspaceIntegrations };
9
+ //# sourceMappingURL=list-workspace-integrations.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-workspace-integrations.d.cts","names":[],"sources":["../../src/actions/list-workspace-integrations.ts"],"mappings":";;;cAIa,oCAAA,EAAsC,CAAA,CAAE,UAIqB;AAAA,cAqB7D,qCAAA,EAAuC,CAAA,CAAE,UAG0B;AAAA,cAEnE,+BAAA,gCAA+B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-workspace-integrations.d.ts
4
+ declare const PrismaListWorkspaceIntegrationsInput: z.ZodTypeAny;
5
+ declare const PrismaListWorkspaceIntegrationsOutput: z.ZodTypeAny;
6
+ declare const prismaListWorkspaceIntegrations: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { prismaListWorkspaceIntegrations };
9
+ //# sourceMappingURL=list-workspace-integrations.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-workspace-integrations.d.mts","names":[],"sources":["../../src/actions/list-workspace-integrations.ts"],"mappings":";;;cAIa,oCAAA,EAAsC,CAAA,CAAE,UAIqB;AAAA,cAqB7D,qCAAA,EAAuC,CAAA,CAAE,UAG0B;AAAA,cAEnE,+BAAA,gCAA+B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,42 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/list-workspace-integrations.ts
4
+ const PrismaListWorkspaceIntegrationsInput = z.object({
5
+ limit: z.number().int().default(100).describe("Maximum number of integrations 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 integrations, or larger values (100-500) when bulk processing.").optional(),
6
+ 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 integrations without missing or duplicating entries.").optional(),
7
+ workspaceId: z.string().describe("Unique workspace identifier to list integrations for (format: 'wksp_xxxxx'). Must be a workspace the authenticated user has access to. All integrations belonging to this workspace will be returned.")
8
+ }).describe("Request parameters for listing integrations in a workspace.");
9
+ const PrismaListWorkspaceIntegrations_ClientInfoSchema = z.object({
10
+ id: z.string().describe("Unique client identifier for the OAuth application."),
11
+ name: z.string().describe("Human-readable name of the OAuth client application."),
12
+ redirectUri: z.string().describe("OAuth redirect URI where authorization responses are sent after user consent.")
13
+ }).describe("OAuth client information for an integration.");
14
+ const PrismaListWorkspaceIntegrations_UserInfoSchema = z.object({
15
+ id: z.string().describe("Unique user identifier who created the integration."),
16
+ email: z.string().describe("Email address of the user who created the integration. Used for auditing and contact purposes.")
17
+ }).describe("User information for the creator of an integration.");
18
+ const PrismaListWorkspaceIntegrations_IntegrationSchema = z.object({
19
+ id: z.string().describe("Unique integration identifier (format: 'int_xxxxx'). Use this ID for integration-specific operations like revocation or management."),
20
+ client: PrismaListWorkspaceIntegrations_ClientInfoSchema.nullable(),
21
+ scopes: z.array(z.string()).describe("List of OAuth scopes granted to this integration (e.g., ['workspace:read', 'workspace:admin', 'offline_access']). Scopes determine the level of access this integration has to workspace resources. Common scopes include workspace:read, workspace:admin, database:read, database:write, and offline_access."),
22
+ createdAt: z.string().describe("ISO 8601 creation timestamp in UTC (e.g., '2025-07-20T11:08:16.761Z')."),
23
+ createdByUser: PrismaListWorkspaceIntegrations_UserInfoSchema.nullable()
24
+ }).describe("Workspace integration with OAuth client and scope details.");
25
+ const PrismaListWorkspaceIntegrations_PaginationSchema = z.object({
26
+ hasMore: z.boolean().describe("True if more pages available. Check before making next request."),
27
+ nextCursor: z.string().describe("Opaque cursor for next page. Pass to subsequent requests. Null when no more pages.").nullable().optional()
28
+ }).describe("Pagination metadata for cursor-based navigation through integration results.");
29
+ const prismaListWorkspaceIntegrations = action("PRISMA_LIST_WORKSPACE_INTEGRATIONS", {
30
+ slug: "prisma-list-workspace-integrations",
31
+ name: "List Workspace Integrations",
32
+ description: "Retrieve paginated list of integrations for a specific Prisma workspace. Returns integration details including OAuth client info, granted scopes, and creator. Use for security audits, integration management, and workspace administration.",
33
+ input: PrismaListWorkspaceIntegrationsInput,
34
+ output: z.object({
35
+ data: z.array(PrismaListWorkspaceIntegrations_IntegrationSchema).describe("Array of integration objects within the specified workspace. Integrations represent OAuth applications with authorized access to workspace resources. Includes client details, granted scopes, and creator information for each integration."),
36
+ pagination: PrismaListWorkspaceIntegrations_PaginationSchema.nullable()
37
+ }).describe("API response containing integration list and pagination metadata.")
38
+ });
39
+ //#endregion
40
+ export { prismaListWorkspaceIntegrations };
41
+
42
+ //# sourceMappingURL=list-workspace-integrations.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-workspace-integrations.mjs","names":[],"sources":["../../src/actions/list-workspace-integrations.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaListWorkspaceIntegrationsInput: z.ZodTypeAny = z.object({\n limit: z.number().int().default(100).describe(\"Maximum number of integrations 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 integrations, 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 integrations without missing or duplicating entries.\").optional(),\n workspaceId: z.string().describe(\"Unique workspace identifier to list integrations for (format: 'wksp_xxxxx'). Must be a workspace the authenticated user has access to. All integrations belonging to this workspace will be returned.\"),\n}).describe(\"Request parameters for listing integrations in a workspace.\");\nconst PrismaListWorkspaceIntegrations_ClientInfoSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique client identifier for the OAuth application.\"),\n name: z.string().describe(\"Human-readable name of the OAuth client application.\"),\n redirectUri: z.string().describe(\"OAuth redirect URI where authorization responses are sent after user consent.\"),\n}).describe(\"OAuth client information for an integration.\");\nconst PrismaListWorkspaceIntegrations_UserInfoSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique user identifier who created the integration.\"),\n email: z.string().describe(\"Email address of the user who created the integration. Used for auditing and contact purposes.\"),\n}).describe(\"User information for the creator of an integration.\");\nconst PrismaListWorkspaceIntegrations_IntegrationSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique integration identifier (format: 'int_xxxxx'). Use this ID for integration-specific operations like revocation or management.\"),\n client: PrismaListWorkspaceIntegrations_ClientInfoSchema.nullable(),\n scopes: z.array(z.string()).describe(\"List of OAuth scopes granted to this integration (e.g., ['workspace:read', 'workspace:admin', 'offline_access']). Scopes determine the level of access this integration has to workspace resources. Common scopes include workspace:read, workspace:admin, database:read, database:write, and offline_access.\"),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp in UTC (e.g., '2025-07-20T11:08:16.761Z').\"),\n createdByUser: PrismaListWorkspaceIntegrations_UserInfoSchema.nullable(),\n}).describe(\"Workspace integration with OAuth client and scope details.\");\nconst PrismaListWorkspaceIntegrations_PaginationSchema: z.ZodTypeAny = z.object({\n hasMore: z.boolean().describe(\"True if more pages available. Check before making next request.\"),\n nextCursor: z.string().describe(\"Opaque cursor for next page. Pass to subsequent requests. Null when no more pages.\").nullable().optional(),\n}).describe(\"Pagination metadata for cursor-based navigation through integration results.\");\nexport const PrismaListWorkspaceIntegrationsOutput: z.ZodTypeAny = z.object({\n data: z.array(PrismaListWorkspaceIntegrations_IntegrationSchema).describe(\"Array of integration objects within the specified workspace. Integrations represent OAuth applications with authorized access to workspace resources. Includes client details, granted scopes, and creator information for each integration.\"),\n pagination: PrismaListWorkspaceIntegrations_PaginationSchema.nullable(),\n}).describe(\"API response containing integration list and pagination metadata.\");\n\nexport const prismaListWorkspaceIntegrations = action(\"PRISMA_LIST_WORKSPACE_INTEGRATIONS\", {\n slug: \"prisma-list-workspace-integrations\",\n name: \"List Workspace Integrations\",\n description: \"Retrieve paginated list of integrations for a specific Prisma workspace. Returns integration details including OAuth client info, granted scopes, and creator. Use for security audits, integration management, and workspace administration.\",\n input: PrismaListWorkspaceIntegrationsInput,\n output: PrismaListWorkspaceIntegrationsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAqD,EAAE,OAAO;CACzE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,yQAAyQ,CAAC,CAAC,SAAS;CAClU,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2RAA2R,CAAC,CAAC,SAAS;CAClU,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uMAAuM;AAC1O,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,mDAAiE,EAAE,OAAO;CAC9E,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;CAC7E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CAChF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;AAClH,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,iDAA+D,EAAE,OAAO;CAC5E,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;CAC7E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG;AAC7H,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,oDAAkE,EAAE,OAAO;CAC/E,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qIAAqI;CAC7J,QAAQ,iDAAiD,SAAS;CAClE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+SAA+S;CACpV,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE;CACvG,eAAe,+CAA+C,SAAS;AACzE,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,mDAAiE,EAAE,OAAO;CAC9E,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,iEAAiE;CAC/F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5I,CAAC,CAAC,CAAC,SAAS,8EAA8E;AAM1F,MAAa,kCAAkC,OAAO,sCAAsC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAViE,EAAE,OAAO;EAC1E,MAAM,EAAE,MAAM,iDAAiD,CAAC,CAAC,SAAS,8OAA8O;EACxT,YAAY,iDAAiD,SAAS;CACxE,CAAC,CAAC,CAAC,SAAS,mEAOF;AACV,CAAC"}
@@ -0,0 +1,32 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/list-workspaces.ts
4
+ const PrismaListWorkspacesInput = zod.z.object({
5
+ limit: zod.z.number().int().default(100).describe("Maximum number of workspaces 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 workspaces, or larger values (100-500) when bulk processing. The API may return fewer results than requested if fewer workspaces exist.").optional(),
6
+ cursor: zod.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 workspaces without missing or duplicating entries.").optional()
7
+ }).describe("Request parameters for listing Prisma workspaces with pagination support.");
8
+ const PrismaListWorkspaces_WorkspaceSchema = zod.z.object({
9
+ id: zod.z.string().describe("Unique immutable identifier for the workspace (e.g., 'wksp_cmd5tdzvx07si3o0wmiq7plxu'). This ID is used in all subsequent API calls to reference this specific workspace. It follows the format 'wksp_' followed by a random alphanumeric string. Store this ID to perform workspace-specific operations like listing projects, managing environments, or configuring workspace settings."),
10
+ name: zod.z.string().describe("Human-readable display name of the workspace (e.g., 'Personal workspace', 'Company Production'). This name is set by workspace administrators and can be modified. Use this for displaying workspace information to users in interfaces. Names are not unique identifiers - always use the 'id' field for programmatic references. Common patterns include team names, project names, or environment designations."),
11
+ type: zod.z.string().describe("Object type identifier, always set to 'workspace' for workspace objects. This field provides type safety and consistency across the Prisma API. It helps distinguish workspace objects from other entity types like projects, environments, or databases in mixed API responses or when processing collections of different object types."),
12
+ createdAt: zod.z.string().describe("ISO 8601 formatted timestamp indicating when the workspace was created (e.g., '2025-07-16T10:24:33.261Z'). This timestamp is in UTC timezone. Useful for auditing, sorting workspaces by age, or implementing retention policies. The timestamp includes millisecond precision and follows the format: YYYY-MM-DDTHH:mm:ss.sssZ where Z indicates UTC timezone.")
13
+ }).describe("Prisma workspace containing projects, environments, and team members.");
14
+ const PrismaListWorkspaces_PaginationSchema = zod.z.object({
15
+ hasMore: zod.z.boolean().describe("Boolean indicator of whether additional workspace pages are available. When true, more workspaces exist beyond the current page and you should make another request using the 'nextCursor' value to retrieve them. When false, the current page contains the last available workspaces. Always check this field before attempting pagination to avoid unnecessary API calls."),
16
+ nextCursor: zod.z.string().describe("Opaque cursor token for retrieving the next page of workspace results. This value should be passed as the 'cursor' parameter in subsequent requests to get the next set of workspaces. Will be null/None when there are no more pages available (i.e., when 'hasMore' is false). The cursor is a base64-encoded string that encodes the position in the result set - never attempt to parse or modify this value, always use it as-is.").nullable().optional()
17
+ }).describe("Pagination metadata for cursor-based navigation through workspace results.");
18
+ const PrismaListWorkspacesOutput = zod.z.object({
19
+ data: zod.z.array(PrismaListWorkspaces_WorkspaceSchema).describe("Array of workspace objects accessible to the authenticated user. Each workspace represents a separate organizational unit with its own projects, environments, and team members. The list is ordered by most recently modified workspaces first. May be empty if the user has no workspace access or if all workspaces are beyond the pagination cursor. Each workspace object contains complete metadata including ID, name, creation timestamp, and object type for full programmatic access."),
20
+ pagination: PrismaListWorkspaces_PaginationSchema.nullable()
21
+ }).describe("API response containing workspace list and pagination metadata.");
22
+ const prismaListWorkspaces = require_action.action("PRISMA_LIST_WORKSPACES", {
23
+ slug: "prisma-list-workspaces",
24
+ name: "List Prisma Workspaces",
25
+ description: "Retrieve paginated list of Prisma workspaces accessible to authenticated user. Returns workspace IDs, names, creation timestamps with cursor-based pagination. Use for workspace discovery, UI selection flows, and administrative operations.",
26
+ input: PrismaListWorkspacesInput,
27
+ output: PrismaListWorkspacesOutput
28
+ });
29
+ //#endregion
30
+ exports.prismaListWorkspaces = prismaListWorkspaces;
31
+
32
+ //# sourceMappingURL=list-workspaces.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-workspaces.cjs","names":["z","action"],"sources":["../../src/actions/list-workspaces.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaListWorkspacesInput: z.ZodTypeAny = z.object({\n limit: z.number().int().default(100).describe(\"Maximum number of workspaces 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 workspaces, or larger values (100-500) when bulk processing. The API may return fewer results than requested if fewer workspaces 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 workspaces without missing or duplicating entries.\").optional(),\n}).describe(\"Request parameters for listing Prisma workspaces with pagination support.\");\nconst PrismaListWorkspaces_WorkspaceSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique immutable identifier for the workspace (e.g., 'wksp_cmd5tdzvx07si3o0wmiq7plxu'). This ID is used in all subsequent API calls to reference this specific workspace. It follows the format 'wksp_' followed by a random alphanumeric string. Store this ID to perform workspace-specific operations like listing projects, managing environments, or configuring workspace settings.\"),\n name: z.string().describe(\"Human-readable display name of the workspace (e.g., 'Personal workspace', 'Company Production'). This name is set by workspace administrators and can be modified. Use this for displaying workspace information to users in interfaces. Names are not unique identifiers - always use the 'id' field for programmatic references. Common patterns include team names, project names, or environment designations.\"),\n type: z.string().describe(\"Object type identifier, always set to 'workspace' for workspace objects. This field provides type safety and consistency across the Prisma API. It helps distinguish workspace objects from other entity types like projects, environments, or databases in mixed API responses or when processing collections of different object types.\"),\n createdAt: z.string().describe(\"ISO 8601 formatted timestamp indicating when the workspace was created (e.g., '2025-07-16T10:24:33.261Z'). This timestamp is in UTC timezone. Useful for auditing, sorting workspaces by age, or implementing retention policies. The timestamp includes millisecond precision and follows the format: YYYY-MM-DDTHH:mm:ss.sssZ where Z indicates UTC timezone.\"),\n}).describe(\"Prisma workspace containing projects, environments, and team members.\");\nconst PrismaListWorkspaces_PaginationSchema: z.ZodTypeAny = z.object({\n hasMore: z.boolean().describe(\"Boolean indicator of whether additional workspace pages are available. When true, more workspaces exist beyond the current page and you should make another request using the 'nextCursor' value to retrieve them. When false, the current page contains the last available workspaces. Always check this field before attempting pagination to avoid unnecessary API calls.\"),\n nextCursor: z.string().describe(\"Opaque cursor token for retrieving the next page of workspace results. This value should be passed as the 'cursor' parameter in subsequent requests to get the next set of workspaces. Will be null/None when there are no more pages available (i.e., when 'hasMore' is false). The cursor is a base64-encoded string that encodes the position in the result set - never attempt to parse or modify this value, always use it as-is.\").nullable().optional(),\n}).describe(\"Pagination metadata for cursor-based navigation through workspace results.\");\nexport const PrismaListWorkspacesOutput: z.ZodTypeAny = z.object({\n data: z.array(PrismaListWorkspaces_WorkspaceSchema).describe(\"Array of workspace objects accessible to the authenticated user. Each workspace represents a separate organizational unit with its own projects, environments, and team members. The list is ordered by most recently modified workspaces first. May be empty if the user has no workspace access or if all workspaces are beyond the pagination cursor. Each workspace object contains complete metadata including ID, name, creation timestamp, and object type for full programmatic access.\"),\n pagination: PrismaListWorkspaces_PaginationSchema.nullable(),\n}).describe(\"API response containing workspace list and pagination metadata.\");\n\nexport const prismaListWorkspaces = action(\"PRISMA_LIST_WORKSPACES\", {\n slug: \"prisma-list-workspaces\",\n name: \"List Prisma Workspaces\",\n description: \"Retrieve paginated list of Prisma workspaces accessible to authenticated user. Returns workspace IDs, names, creation timestamps with cursor-based pagination. Use for workspace discovery, UI selection flows, and administrative operations.\",\n input: PrismaListWorkspacesInput,\n output: PrismaListWorkspacesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,gVAAgV,CAAC,CAAC,SAAS;CACzY,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8RAA8R,CAAC,CAAC,SAAS;AACvU,CAAC,CAAC,CAAC,SAAS,2EAA2E;AACvF,MAAM,uCAAqDA,IAAAA,EAAE,OAAO;CAClE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2XAA2X;CACnZ,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oZAAoZ;CAC9a,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2UAA2U;CACrW,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iWAAiW;AAClY,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,MAAM,wCAAsDA,IAAAA,EAAE,OAAO;CACnE,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,8WAA8W;CAC5Y,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,waAAwa,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChe,CAAC,CAAC,CAAC,SAAS,4EAA4E;AACxF,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,MAAMA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,ieAAie;CAC9hB,YAAY,sCAAsC,SAAS;AAC7D,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAE7E,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-workspaces.d.ts
4
+ declare const PrismaListWorkspacesInput: z.ZodTypeAny;
5
+ declare const PrismaListWorkspacesOutput: z.ZodTypeAny;
6
+ declare const prismaListWorkspaces: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { prismaListWorkspaces };
9
+ //# sourceMappingURL=list-workspaces.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-workspaces.d.cts","names":[],"sources":["../../src/actions/list-workspaces.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAG8C;AAAA,cAW3E,0BAAA,EAA4B,CAAA,CAAE,UAGmC;AAAA,cAEjE,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-workspaces.d.ts
4
+ declare const PrismaListWorkspacesInput: z.ZodTypeAny;
5
+ declare const PrismaListWorkspacesOutput: z.ZodTypeAny;
6
+ declare const prismaListWorkspaces: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { prismaListWorkspaces };
9
+ //# sourceMappingURL=list-workspaces.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-workspaces.d.mts","names":[],"sources":["../../src/actions/list-workspaces.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAG8C;AAAA,cAW3E,0BAAA,EAA4B,CAAA,CAAE,UAGmC;AAAA,cAEjE,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,31 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/list-workspaces.ts
4
+ const PrismaListWorkspacesInput = z.object({
5
+ limit: z.number().int().default(100).describe("Maximum number of workspaces 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 workspaces, or larger values (100-500) when bulk processing. The API may return fewer results than requested if fewer workspaces exist.").optional(),
6
+ 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 workspaces without missing or duplicating entries.").optional()
7
+ }).describe("Request parameters for listing Prisma workspaces with pagination support.");
8
+ const PrismaListWorkspaces_WorkspaceSchema = z.object({
9
+ id: z.string().describe("Unique immutable identifier for the workspace (e.g., 'wksp_cmd5tdzvx07si3o0wmiq7plxu'). This ID is used in all subsequent API calls to reference this specific workspace. It follows the format 'wksp_' followed by a random alphanumeric string. Store this ID to perform workspace-specific operations like listing projects, managing environments, or configuring workspace settings."),
10
+ name: z.string().describe("Human-readable display name of the workspace (e.g., 'Personal workspace', 'Company Production'). This name is set by workspace administrators and can be modified. Use this for displaying workspace information to users in interfaces. Names are not unique identifiers - always use the 'id' field for programmatic references. Common patterns include team names, project names, or environment designations."),
11
+ type: z.string().describe("Object type identifier, always set to 'workspace' for workspace objects. This field provides type safety and consistency across the Prisma API. It helps distinguish workspace objects from other entity types like projects, environments, or databases in mixed API responses or when processing collections of different object types."),
12
+ createdAt: z.string().describe("ISO 8601 formatted timestamp indicating when the workspace was created (e.g., '2025-07-16T10:24:33.261Z'). This timestamp is in UTC timezone. Useful for auditing, sorting workspaces by age, or implementing retention policies. The timestamp includes millisecond precision and follows the format: YYYY-MM-DDTHH:mm:ss.sssZ where Z indicates UTC timezone.")
13
+ }).describe("Prisma workspace containing projects, environments, and team members.");
14
+ const PrismaListWorkspaces_PaginationSchema = z.object({
15
+ hasMore: z.boolean().describe("Boolean indicator of whether additional workspace pages are available. When true, more workspaces exist beyond the current page and you should make another request using the 'nextCursor' value to retrieve them. When false, the current page contains the last available workspaces. Always check this field before attempting pagination to avoid unnecessary API calls."),
16
+ nextCursor: z.string().describe("Opaque cursor token for retrieving the next page of workspace results. This value should be passed as the 'cursor' parameter in subsequent requests to get the next set of workspaces. Will be null/None when there are no more pages available (i.e., when 'hasMore' is false). The cursor is a base64-encoded string that encodes the position in the result set - never attempt to parse or modify this value, always use it as-is.").nullable().optional()
17
+ }).describe("Pagination metadata for cursor-based navigation through workspace results.");
18
+ const prismaListWorkspaces = action("PRISMA_LIST_WORKSPACES", {
19
+ slug: "prisma-list-workspaces",
20
+ name: "List Prisma Workspaces",
21
+ description: "Retrieve paginated list of Prisma workspaces accessible to authenticated user. Returns workspace IDs, names, creation timestamps with cursor-based pagination. Use for workspace discovery, UI selection flows, and administrative operations.",
22
+ input: PrismaListWorkspacesInput,
23
+ output: z.object({
24
+ data: z.array(PrismaListWorkspaces_WorkspaceSchema).describe("Array of workspace objects accessible to the authenticated user. Each workspace represents a separate organizational unit with its own projects, environments, and team members. The list is ordered by most recently modified workspaces first. May be empty if the user has no workspace access or if all workspaces are beyond the pagination cursor. Each workspace object contains complete metadata including ID, name, creation timestamp, and object type for full programmatic access."),
25
+ pagination: PrismaListWorkspaces_PaginationSchema.nullable()
26
+ }).describe("API response containing workspace list and pagination metadata.")
27
+ });
28
+ //#endregion
29
+ export { prismaListWorkspaces };
30
+
31
+ //# sourceMappingURL=list-workspaces.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-workspaces.mjs","names":[],"sources":["../../src/actions/list-workspaces.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaListWorkspacesInput: z.ZodTypeAny = z.object({\n limit: z.number().int().default(100).describe(\"Maximum number of workspaces 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 workspaces, or larger values (100-500) when bulk processing. The API may return fewer results than requested if fewer workspaces 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 workspaces without missing or duplicating entries.\").optional(),\n}).describe(\"Request parameters for listing Prisma workspaces with pagination support.\");\nconst PrismaListWorkspaces_WorkspaceSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique immutable identifier for the workspace (e.g., 'wksp_cmd5tdzvx07si3o0wmiq7plxu'). This ID is used in all subsequent API calls to reference this specific workspace. It follows the format 'wksp_' followed by a random alphanumeric string. Store this ID to perform workspace-specific operations like listing projects, managing environments, or configuring workspace settings.\"),\n name: z.string().describe(\"Human-readable display name of the workspace (e.g., 'Personal workspace', 'Company Production'). This name is set by workspace administrators and can be modified. Use this for displaying workspace information to users in interfaces. Names are not unique identifiers - always use the 'id' field for programmatic references. Common patterns include team names, project names, or environment designations.\"),\n type: z.string().describe(\"Object type identifier, always set to 'workspace' for workspace objects. This field provides type safety and consistency across the Prisma API. It helps distinguish workspace objects from other entity types like projects, environments, or databases in mixed API responses or when processing collections of different object types.\"),\n createdAt: z.string().describe(\"ISO 8601 formatted timestamp indicating when the workspace was created (e.g., '2025-07-16T10:24:33.261Z'). This timestamp is in UTC timezone. Useful for auditing, sorting workspaces by age, or implementing retention policies. The timestamp includes millisecond precision and follows the format: YYYY-MM-DDTHH:mm:ss.sssZ where Z indicates UTC timezone.\"),\n}).describe(\"Prisma workspace containing projects, environments, and team members.\");\nconst PrismaListWorkspaces_PaginationSchema: z.ZodTypeAny = z.object({\n hasMore: z.boolean().describe(\"Boolean indicator of whether additional workspace pages are available. When true, more workspaces exist beyond the current page and you should make another request using the 'nextCursor' value to retrieve them. When false, the current page contains the last available workspaces. Always check this field before attempting pagination to avoid unnecessary API calls.\"),\n nextCursor: z.string().describe(\"Opaque cursor token for retrieving the next page of workspace results. This value should be passed as the 'cursor' parameter in subsequent requests to get the next set of workspaces. Will be null/None when there are no more pages available (i.e., when 'hasMore' is false). The cursor is a base64-encoded string that encodes the position in the result set - never attempt to parse or modify this value, always use it as-is.\").nullable().optional(),\n}).describe(\"Pagination metadata for cursor-based navigation through workspace results.\");\nexport const PrismaListWorkspacesOutput: z.ZodTypeAny = z.object({\n data: z.array(PrismaListWorkspaces_WorkspaceSchema).describe(\"Array of workspace objects accessible to the authenticated user. Each workspace represents a separate organizational unit with its own projects, environments, and team members. The list is ordered by most recently modified workspaces first. May be empty if the user has no workspace access or if all workspaces are beyond the pagination cursor. Each workspace object contains complete metadata including ID, name, creation timestamp, and object type for full programmatic access.\"),\n pagination: PrismaListWorkspaces_PaginationSchema.nullable(),\n}).describe(\"API response containing workspace list and pagination metadata.\");\n\nexport const prismaListWorkspaces = action(\"PRISMA_LIST_WORKSPACES\", {\n slug: \"prisma-list-workspaces\",\n name: \"List Prisma Workspaces\",\n description: \"Retrieve paginated list of Prisma workspaces accessible to authenticated user. Returns workspace IDs, names, creation timestamps with cursor-based pagination. Use for workspace discovery, UI selection flows, and administrative operations.\",\n input: PrismaListWorkspacesInput,\n output: PrismaListWorkspacesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0C,EAAE,OAAO;CAC9D,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,gVAAgV,CAAC,CAAC,SAAS;CACzY,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8RAA8R,CAAC,CAAC,SAAS;AACvU,CAAC,CAAC,CAAC,SAAS,2EAA2E;AACvF,MAAM,uCAAqD,EAAE,OAAO;CAClE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,2XAA2X;CACnZ,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oZAAoZ;CAC9a,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2UAA2U;CACrW,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iWAAiW;AAClY,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,MAAM,wCAAsD,EAAE,OAAO;CACnE,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,8WAA8W;CAC5Y,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,waAAwa,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChe,CAAC,CAAC,CAAC,SAAS,4EAA4E;AAMxF,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVsD,EAAE,OAAO;EAC/D,MAAM,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,ieAAie;EAC9hB,YAAY,sCAAsC,SAAS;CAC7D,CAAC,CAAC,CAAC,SAAS,iEAOF;AACV,CAAC"}
@@ -0,0 +1,38 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/restore-backup.ts
4
+ const PrismaRestoreBackupInput = zod.z.object({
5
+ backupId: zod.z.string().describe("Unique backup identifier to restore. Must be a completed backup from the specified database. Use list_backups action to find available backup IDs."),
6
+ databaseId: zod.z.string().describe("Unique source database identifier containing the backup (format: 'db_xxxxx'). Must be a database the authenticated user has access to. The backup will be restored from this database's backup collection."),
7
+ targetDatabaseName: zod.z.string().describe("Name for the new database created from backup restoration. This will be displayed in UIs and used for identification. Choose descriptive names like 'Restored DB 2025-01-20', 'Production Rollback', etc.")
8
+ }).describe("Request parameters for restoring a database backup.");
9
+ const PrismaRestoreBackup_RegionInfoSchema = zod.z.object({
10
+ id: zod.z.string().describe("Region identifier (e.g., 'us-east-1')."),
11
+ name: zod.z.string().describe("Human-readable region name.")
12
+ }).describe("Database region information.");
13
+ const PrismaRestoreBackup_ProjectInfoSchema = zod.z.object({
14
+ id: zod.z.string().describe("Unique project ID containing the restored database."),
15
+ name: zod.z.string().describe("Human-readable project name.")
16
+ }).describe("Project information in database response.");
17
+ const PrismaRestoreBackup_RestoredDatabaseSchema = zod.z.object({
18
+ id: zod.z.string().describe("Unique identifier for the newly restored database."),
19
+ name: zod.z.string().describe("Database name as specified in targetDatabaseName."),
20
+ type: zod.z.string().describe("Object type, always 'database'."),
21
+ region: PrismaRestoreBackup_RegionInfoSchema.nullable(),
22
+ status: zod.z.string().describe("Current database status during restoration process. Values: 'provisioning' (restoration in progress), 'ready' (restoration complete), 'failure' (restoration failed). Monitor this status for completion."),
23
+ project: PrismaRestoreBackup_ProjectInfoSchema.nullable(),
24
+ createdAt: zod.z.string().describe("ISO 8601 timestamp when restoration was initiated."),
25
+ isDefault: zod.z.boolean().describe("False for restored databases as they are not default. Restored databases are additional databases in the project.")
26
+ }).describe("Database object created from backup restoration.");
27
+ const PrismaRestoreBackupOutput = zod.z.object({ data: PrismaRestoreBackup_RestoredDatabaseSchema.nullable() }).describe("API response containing restored database details.");
28
+ const prismaRestoreBackup = require_action.action("PRISMA_RESTORE_BACKUP", {
29
+ slug: "prisma-restore-backup",
30
+ name: "Restore Database Backup",
31
+ description: "Restore database backup to new database instance. Creates new database from existing backup with specified name. Operation is asynchronous - monitor the returned database status for completion. Restoration may take several minutes.",
32
+ input: PrismaRestoreBackupInput,
33
+ output: PrismaRestoreBackupOutput
34
+ });
35
+ //#endregion
36
+ exports.prismaRestoreBackup = prismaRestoreBackup;
37
+
38
+ //# sourceMappingURL=restore-backup.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"restore-backup.cjs","names":["z","action"],"sources":["../../src/actions/restore-backup.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaRestoreBackupInput: z.ZodTypeAny = z.object({\n backupId: z.string().describe(\"Unique backup identifier to restore. Must be a completed backup from the specified database. Use list_backups action to find available backup IDs.\"),\n databaseId: z.string().describe(\"Unique source database identifier containing the backup (format: 'db_xxxxx'). Must be a database the authenticated user has access to. The backup will be restored from this database's backup collection.\"),\n targetDatabaseName: z.string().describe(\"Name for the new database created from backup restoration. This will be displayed in UIs and used for identification. Choose descriptive names like 'Restored DB 2025-01-20', 'Production Rollback', etc.\"),\n}).describe(\"Request parameters for restoring a database backup.\");\nconst PrismaRestoreBackup_RegionInfoSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Region identifier (e.g., 'us-east-1').\"),\n name: z.string().describe(\"Human-readable region name.\"),\n}).describe(\"Database region information.\");\nconst PrismaRestoreBackup_ProjectInfoSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique project ID containing the restored database.\"),\n name: z.string().describe(\"Human-readable project name.\"),\n}).describe(\"Project information in database response.\");\nconst PrismaRestoreBackup_RestoredDatabaseSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the newly restored database.\"),\n name: z.string().describe(\"Database name as specified in targetDatabaseName.\"),\n type: z.string().describe(\"Object type, always 'database'.\"),\n region: PrismaRestoreBackup_RegionInfoSchema.nullable(),\n status: z.string().describe(\"Current database status during restoration process. Values: 'provisioning' (restoration in progress), 'ready' (restoration complete), 'failure' (restoration failed). Monitor this status for completion.\"),\n project: PrismaRestoreBackup_ProjectInfoSchema.nullable(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when restoration was initiated.\"),\n isDefault: z.boolean().describe(\"False for restored databases as they are not default. Restored databases are additional databases in the project.\"),\n}).describe(\"Database object created from backup restoration.\");\nexport const PrismaRestoreBackupOutput: z.ZodTypeAny = z.object({\n data: PrismaRestoreBackup_RestoredDatabaseSchema.nullable(),\n}).describe(\"API response containing restored database details.\");\n\nexport const prismaRestoreBackup = action(\"PRISMA_RESTORE_BACKUP\", {\n slug: \"prisma-restore-backup\",\n name: \"Restore Database Backup\",\n description: \"Restore database backup to new database instance. Creates new database from existing backup with specified name. Operation is asynchronous - monitor the returned database status for completion. Restoration may take several minutes.\",\n input: PrismaRestoreBackupInput,\n output: PrismaRestoreBackupOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oJAAoJ;CAClL,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4MAA4M;CAC5O,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2MAA2M;AACrP,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,uCAAqDA,IAAAA,EAAE,OAAO;CAClE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;AACzD,CAAC,CAAC,CAAC,SAAS,8BAA8B;AAC1C,MAAM,wCAAsDA,IAAAA,EAAE,OAAO;CACnE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;CAC7E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;AAC1D,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACvD,MAAM,6CAA2DA,IAAAA,EAAE,OAAO;CACxE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CAC5E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;CAC7E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;CAC3D,QAAQ,qCAAqC,SAAS;CACtD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2MAA2M;CACvO,SAAS,sCAAsC,SAAS;CACxD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CACnF,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mHAAmH;AACrJ,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAa,4BAA0CA,IAAAA,EAAE,OAAO,EAC9D,MAAM,2CAA2C,SAAS,EAC5D,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAEhE,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/restore-backup.d.ts
4
+ declare const PrismaRestoreBackupInput: z.ZodTypeAny;
5
+ declare const PrismaRestoreBackupOutput: z.ZodTypeAny;
6
+ declare const prismaRestoreBackup: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { prismaRestoreBackup };
9
+ //# sourceMappingURL=restore-backup.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"restore-backup.d.cts","names":[],"sources":["../../src/actions/restore-backup.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAIyB;AAAA,cAmBrD,yBAAA,EAA2B,CAAA,CAAE,UAEuB;AAAA,cAEpD,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/restore-backup.d.ts
4
+ declare const PrismaRestoreBackupInput: z.ZodTypeAny;
5
+ declare const PrismaRestoreBackupOutput: z.ZodTypeAny;
6
+ declare const prismaRestoreBackup: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { prismaRestoreBackup };
9
+ //# sourceMappingURL=restore-backup.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"restore-backup.d.mts","names":[],"sources":["../../src/actions/restore-backup.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAIyB;AAAA,cAmBrD,yBAAA,EAA2B,CAAA,CAAE,UAEuB;AAAA,cAEpD,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,37 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/restore-backup.ts
4
+ const PrismaRestoreBackupInput = z.object({
5
+ backupId: z.string().describe("Unique backup identifier to restore. Must be a completed backup from the specified database. Use list_backups action to find available backup IDs."),
6
+ databaseId: z.string().describe("Unique source database identifier containing the backup (format: 'db_xxxxx'). Must be a database the authenticated user has access to. The backup will be restored from this database's backup collection."),
7
+ targetDatabaseName: z.string().describe("Name for the new database created from backup restoration. This will be displayed in UIs and used for identification. Choose descriptive names like 'Restored DB 2025-01-20', 'Production Rollback', etc.")
8
+ }).describe("Request parameters for restoring a database backup.");
9
+ const PrismaRestoreBackup_RegionInfoSchema = z.object({
10
+ id: z.string().describe("Region identifier (e.g., 'us-east-1')."),
11
+ name: z.string().describe("Human-readable region name.")
12
+ }).describe("Database region information.");
13
+ const PrismaRestoreBackup_ProjectInfoSchema = z.object({
14
+ id: z.string().describe("Unique project ID containing the restored database."),
15
+ name: z.string().describe("Human-readable project name.")
16
+ }).describe("Project information in database response.");
17
+ const PrismaRestoreBackup_RestoredDatabaseSchema = z.object({
18
+ id: z.string().describe("Unique identifier for the newly restored database."),
19
+ name: z.string().describe("Database name as specified in targetDatabaseName."),
20
+ type: z.string().describe("Object type, always 'database'."),
21
+ region: PrismaRestoreBackup_RegionInfoSchema.nullable(),
22
+ status: z.string().describe("Current database status during restoration process. Values: 'provisioning' (restoration in progress), 'ready' (restoration complete), 'failure' (restoration failed). Monitor this status for completion."),
23
+ project: PrismaRestoreBackup_ProjectInfoSchema.nullable(),
24
+ createdAt: z.string().describe("ISO 8601 timestamp when restoration was initiated."),
25
+ isDefault: z.boolean().describe("False for restored databases as they are not default. Restored databases are additional databases in the project.")
26
+ }).describe("Database object created from backup restoration.");
27
+ const prismaRestoreBackup = action("PRISMA_RESTORE_BACKUP", {
28
+ slug: "prisma-restore-backup",
29
+ name: "Restore Database Backup",
30
+ description: "Restore database backup to new database instance. Creates new database from existing backup with specified name. Operation is asynchronous - monitor the returned database status for completion. Restoration may take several minutes.",
31
+ input: PrismaRestoreBackupInput,
32
+ output: z.object({ data: PrismaRestoreBackup_RestoredDatabaseSchema.nullable() }).describe("API response containing restored database details.")
33
+ });
34
+ //#endregion
35
+ export { prismaRestoreBackup };
36
+
37
+ //# sourceMappingURL=restore-backup.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"restore-backup.mjs","names":[],"sources":["../../src/actions/restore-backup.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaRestoreBackupInput: z.ZodTypeAny = z.object({\n backupId: z.string().describe(\"Unique backup identifier to restore. Must be a completed backup from the specified database. Use list_backups action to find available backup IDs.\"),\n databaseId: z.string().describe(\"Unique source database identifier containing the backup (format: 'db_xxxxx'). Must be a database the authenticated user has access to. The backup will be restored from this database's backup collection.\"),\n targetDatabaseName: z.string().describe(\"Name for the new database created from backup restoration. This will be displayed in UIs and used for identification. Choose descriptive names like 'Restored DB 2025-01-20', 'Production Rollback', etc.\"),\n}).describe(\"Request parameters for restoring a database backup.\");\nconst PrismaRestoreBackup_RegionInfoSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Region identifier (e.g., 'us-east-1').\"),\n name: z.string().describe(\"Human-readable region name.\"),\n}).describe(\"Database region information.\");\nconst PrismaRestoreBackup_ProjectInfoSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique project ID containing the restored database.\"),\n name: z.string().describe(\"Human-readable project name.\"),\n}).describe(\"Project information in database response.\");\nconst PrismaRestoreBackup_RestoredDatabaseSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the newly restored database.\"),\n name: z.string().describe(\"Database name as specified in targetDatabaseName.\"),\n type: z.string().describe(\"Object type, always 'database'.\"),\n region: PrismaRestoreBackup_RegionInfoSchema.nullable(),\n status: z.string().describe(\"Current database status during restoration process. Values: 'provisioning' (restoration in progress), 'ready' (restoration complete), 'failure' (restoration failed). Monitor this status for completion.\"),\n project: PrismaRestoreBackup_ProjectInfoSchema.nullable(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when restoration was initiated.\"),\n isDefault: z.boolean().describe(\"False for restored databases as they are not default. Restored databases are additional databases in the project.\"),\n}).describe(\"Database object created from backup restoration.\");\nexport const PrismaRestoreBackupOutput: z.ZodTypeAny = z.object({\n data: PrismaRestoreBackup_RestoredDatabaseSchema.nullable(),\n}).describe(\"API response containing restored database details.\");\n\nexport const prismaRestoreBackup = action(\"PRISMA_RESTORE_BACKUP\", {\n slug: \"prisma-restore-backup\",\n name: \"Restore Database Backup\",\n description: \"Restore database backup to new database instance. Creates new database from existing backup with specified name. Operation is asynchronous - monitor the returned database status for completion. Restoration may take several minutes.\",\n input: PrismaRestoreBackupInput,\n output: PrismaRestoreBackupOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyC,EAAE,OAAO;CAC7D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,oJAAoJ;CAClL,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4MAA4M;CAC5O,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,2MAA2M;AACrP,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,uCAAqD,EAAE,OAAO;CAClE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;AACzD,CAAC,CAAC,CAAC,SAAS,8BAA8B;AAC1C,MAAM,wCAAsD,EAAE,OAAO;CACnE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;CAC7E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;AAC1D,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACvD,MAAM,6CAA2D,EAAE,OAAO;CACxE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CAC5E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;CAC7E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;CAC3D,QAAQ,qCAAqC,SAAS;CACtD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2MAA2M;CACvO,SAAS,sCAAsC,SAAS;CACxD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CACnF,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,mHAAmH;AACrJ,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAK9D,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATqD,EAAE,OAAO,EAC9D,MAAM,2CAA2C,SAAS,EAC5D,CAAC,CAAC,CAAC,SAAS,oDAOF;AACV,CAAC"}
@@ -0,0 +1,22 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/transfer-project.ts
4
+ const PrismaTransferProjectInput = zod.z.object({
5
+ id: zod.z.string().describe("Unique project identifier to transfer (format: 'proj_xxxxx'). Obtain from PRISMA_LIST_PROJECTS or PRISMA_CREATE_PROJECT response. Must be a project owned by the authenticated user's workspace. After transfer, the current user loses access unless explicitly granted by the new owner."),
6
+ recipientAccessToken: zod.z.string().describe("OAuth2 access token of the recipient user who will receive project ownership. This token must be obtained through Prisma's OAuth2 flow for the recipient user. The recipient workspace must have sufficient quota to receive the project. Typically used in partner integrations to transfer provisioned databases to end users.")
7
+ }).describe("Request parameters for transferring project ownership.");
8
+ const PrismaTransferProjectOutput = zod.z.object({
9
+ message: zod.z.string().describe("Human-readable message describing the transfer result."),
10
+ success: zod.z.boolean().describe("True if the project was successfully transferred to the recipient.")
11
+ }).describe("Response for project transfer operation.");
12
+ const prismaTransferProject = require_action.action("PRISMA_TRANSFER_PROJECT", {
13
+ slug: "prisma-transfer-project",
14
+ name: "Transfer Prisma Project",
15
+ description: "Transfer Prisma project ownership to another user's workspace. Transfers project ownership from the current authenticated user to the recipient specified by their OAuth2 access token. This is typically used in partner integrations where databases are provisioned on the partner's workspace and later transferred to end users. The project and all its databases are moved to the recipient's workspace. The current owner loses access unless the new owner explicitly grants it. Requirements: - Valid project ID owned by the current user - Valid OAuth2 access token for the recipient user - Recipient workspace must have sufficient quota for the project",
16
+ input: PrismaTransferProjectInput,
17
+ output: PrismaTransferProjectOutput
18
+ });
19
+ //#endregion
20
+ exports.prismaTransferProject = prismaTransferProject;
21
+
22
+ //# sourceMappingURL=transfer-project.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transfer-project.cjs","names":["z","action"],"sources":["../../src/actions/transfer-project.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaTransferProjectInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique project identifier to transfer (format: 'proj_xxxxx'). Obtain from PRISMA_LIST_PROJECTS or PRISMA_CREATE_PROJECT response. Must be a project owned by the authenticated user's workspace. After transfer, the current user loses access unless explicitly granted by the new owner.\"),\n recipientAccessToken: z.string().describe(\"OAuth2 access token of the recipient user who will receive project ownership. This token must be obtained through Prisma's OAuth2 flow for the recipient user. The recipient workspace must have sufficient quota to receive the project. Typically used in partner integrations to transfer provisioned databases to end users.\"),\n}).describe(\"Request parameters for transferring project ownership.\");\nexport const PrismaTransferProjectOutput: z.ZodTypeAny = z.object({\n message: z.string().describe(\"Human-readable message describing the transfer result.\"),\n success: z.boolean().describe(\"True if the project was successfully transferred to the recipient.\"),\n}).describe(\"Response for project transfer operation.\");\n\nexport const prismaTransferProject = action(\"PRISMA_TRANSFER_PROJECT\", {\n slug: \"prisma-transfer-project\",\n name: \"Transfer Prisma Project\",\n description: \"Transfer Prisma project ownership to another user's workspace. Transfers project ownership from the current authenticated user to the recipient specified by their OAuth2 access token. This is typically used in partner integrations where databases are provisioned on the partner's workspace and later transferred to end users. The project and all its databases are moved to the recipient's workspace. The current owner loses access unless the new owner explicitly grants it. Requirements: - Valid project ID owned by the current user - Valid OAuth2 access token for the recipient user - Recipient workspace must have sufficient quota for the project\",\n input: PrismaTransferProjectInput,\n output: PrismaTransferProjectOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4RAA4R;CACpT,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kUAAkU;AAC9W,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;CACrF,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oEAAoE;AACpG,CAAC,CAAC,CAAC,SAAS,0CAA0C;AAEtD,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/transfer-project.d.ts
4
+ declare const PrismaTransferProjectInput: z.ZodTypeAny;
5
+ declare const PrismaTransferProjectOutput: z.ZodTypeAny;
6
+ declare const prismaTransferProject: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { prismaTransferProject };
9
+ //# sourceMappingURL=transfer-project.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transfer-project.d.cts","names":[],"sources":["../../src/actions/transfer-project.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAG0B;AAAA,cACxD,2BAAA,EAA6B,CAAA,CAAE,UAGW;AAAA,cAE1C,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/transfer-project.d.ts
4
+ declare const PrismaTransferProjectInput: z.ZodTypeAny;
5
+ declare const PrismaTransferProjectOutput: z.ZodTypeAny;
6
+ declare const prismaTransferProject: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { prismaTransferProject };
9
+ //# sourceMappingURL=transfer-project.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transfer-project.d.mts","names":[],"sources":["../../src/actions/transfer-project.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAG0B;AAAA,cACxD,2BAAA,EAA6B,CAAA,CAAE,UAGW;AAAA,cAE1C,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}