@keystrokehq/prisma 0.1.0 → 0.1.2

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 (175) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/create-connection.cjs +10 -10
  4. package/dist/actions/create-connection.cjs.map +1 -1
  5. package/dist/actions/create-connection.d.cts +24 -3
  6. package/dist/actions/create-connection.d.cts.map +1 -1
  7. package/dist/actions/create-connection.d.mts +24 -3
  8. package/dist/actions/create-connection.d.mts.map +1 -1
  9. package/dist/actions/create-connection.mjs +10 -10
  10. package/dist/actions/create-connection.mjs.map +1 -1
  11. package/dist/actions/create-database.cjs +19 -19
  12. package/dist/actions/create-database.cjs.map +1 -1
  13. package/dist/actions/create-database.d.cts +48 -3
  14. package/dist/actions/create-database.d.cts.map +1 -1
  15. package/dist/actions/create-database.d.mts +48 -3
  16. package/dist/actions/create-database.d.mts.map +1 -1
  17. package/dist/actions/create-database.mjs +19 -19
  18. package/dist/actions/create-database.mjs.map +1 -1
  19. package/dist/actions/create-project.cjs +23 -23
  20. package/dist/actions/create-project.cjs.map +1 -1
  21. package/dist/actions/create-project.d.cts +50 -3
  22. package/dist/actions/create-project.d.cts.map +1 -1
  23. package/dist/actions/create-project.d.mts +50 -3
  24. package/dist/actions/create-project.d.mts.map +1 -1
  25. package/dist/actions/create-project.mjs +23 -23
  26. package/dist/actions/create-project.mjs.map +1 -1
  27. package/dist/actions/delete-connection.cjs.map +1 -1
  28. package/dist/actions/delete-connection.d.cts +7 -3
  29. package/dist/actions/delete-connection.d.cts.map +1 -1
  30. package/dist/actions/delete-connection.d.mts +7 -3
  31. package/dist/actions/delete-connection.d.mts.map +1 -1
  32. package/dist/actions/delete-connection.mjs.map +1 -1
  33. package/dist/actions/delete-database.cjs +1 -1
  34. package/dist/actions/delete-database.cjs.map +1 -1
  35. package/dist/actions/delete-database.d.cts +9 -3
  36. package/dist/actions/delete-database.d.cts.map +1 -1
  37. package/dist/actions/delete-database.d.mts +9 -3
  38. package/dist/actions/delete-database.d.mts.map +1 -1
  39. package/dist/actions/delete-database.mjs +1 -1
  40. package/dist/actions/delete-database.mjs.map +1 -1
  41. package/dist/actions/delete-project.cjs.map +1 -1
  42. package/dist/actions/delete-project.d.cts +7 -3
  43. package/dist/actions/delete-project.d.cts.map +1 -1
  44. package/dist/actions/delete-project.d.mts +7 -3
  45. package/dist/actions/delete-project.d.mts.map +1 -1
  46. package/dist/actions/delete-project.mjs.map +1 -1
  47. package/dist/actions/execute-sql-command.cjs +3 -3
  48. package/dist/actions/execute-sql-command.cjs.map +1 -1
  49. package/dist/actions/execute-sql-command.d.cts +17 -3
  50. package/dist/actions/execute-sql-command.d.cts.map +1 -1
  51. package/dist/actions/execute-sql-command.d.mts +17 -3
  52. package/dist/actions/execute-sql-command.d.mts.map +1 -1
  53. package/dist/actions/execute-sql-command.mjs +3 -3
  54. package/dist/actions/execute-sql-command.mjs.map +1 -1
  55. package/dist/actions/execute-sql-query.cjs +2 -2
  56. package/dist/actions/execute-sql-query.cjs.map +1 -1
  57. package/dist/actions/execute-sql-query.d.cts +21 -3
  58. package/dist/actions/execute-sql-query.d.cts.map +1 -1
  59. package/dist/actions/execute-sql-query.d.mts +21 -3
  60. package/dist/actions/execute-sql-query.d.mts.map +1 -1
  61. package/dist/actions/execute-sql-query.mjs +2 -2
  62. package/dist/actions/execute-sql-query.mjs.map +1 -1
  63. package/dist/actions/get-database-usage.cjs +5 -5
  64. package/dist/actions/get-database-usage.cjs.map +1 -1
  65. package/dist/actions/get-database-usage.d.cts +27 -3
  66. package/dist/actions/get-database-usage.d.cts.map +1 -1
  67. package/dist/actions/get-database-usage.d.mts +27 -3
  68. package/dist/actions/get-database-usage.d.mts.map +1 -1
  69. package/dist/actions/get-database-usage.mjs +5 -5
  70. package/dist/actions/get-database-usage.mjs.map +1 -1
  71. package/dist/actions/get-database.cjs +10 -10
  72. package/dist/actions/get-database.cjs.map +1 -1
  73. package/dist/actions/get-database.d.cts +24 -3
  74. package/dist/actions/get-database.d.cts.map +1 -1
  75. package/dist/actions/get-database.d.mts +24 -3
  76. package/dist/actions/get-database.d.mts.map +1 -1
  77. package/dist/actions/get-database.mjs +10 -10
  78. package/dist/actions/get-database.mjs.map +1 -1
  79. package/dist/actions/get-project.cjs +6 -6
  80. package/dist/actions/get-project.cjs.map +1 -1
  81. package/dist/actions/get-project.d.cts +18 -3
  82. package/dist/actions/get-project.d.cts.map +1 -1
  83. package/dist/actions/get-project.d.mts +18 -3
  84. package/dist/actions/get-project.d.mts.map +1 -1
  85. package/dist/actions/get-project.mjs +6 -6
  86. package/dist/actions/get-project.mjs.map +1 -1
  87. package/dist/actions/inspect-database-schema.cjs +8 -8
  88. package/dist/actions/inspect-database-schema.cjs.map +1 -1
  89. package/dist/actions/inspect-database-schema.d.cts +36 -3
  90. package/dist/actions/inspect-database-schema.d.cts.map +1 -1
  91. package/dist/actions/inspect-database-schema.d.mts +36 -3
  92. package/dist/actions/inspect-database-schema.d.mts.map +1 -1
  93. package/dist/actions/inspect-database-schema.mjs +8 -8
  94. package/dist/actions/inspect-database-schema.mjs.map +1 -1
  95. package/dist/actions/list-accelerate-regions.cjs +3 -3
  96. package/dist/actions/list-accelerate-regions.cjs.map +1 -1
  97. package/dist/actions/list-accelerate-regions.d.cts +9 -3
  98. package/dist/actions/list-accelerate-regions.d.cts.map +1 -1
  99. package/dist/actions/list-accelerate-regions.d.mts +9 -3
  100. package/dist/actions/list-accelerate-regions.d.mts.map +1 -1
  101. package/dist/actions/list-accelerate-regions.mjs +3 -3
  102. package/dist/actions/list-accelerate-regions.mjs.map +1 -1
  103. package/dist/actions/list-backups.cjs +9 -9
  104. package/dist/actions/list-backups.cjs.map +1 -1
  105. package/dist/actions/list-backups.d.cts +25 -3
  106. package/dist/actions/list-backups.d.cts.map +1 -1
  107. package/dist/actions/list-backups.d.mts +25 -3
  108. package/dist/actions/list-backups.d.mts.map +1 -1
  109. package/dist/actions/list-backups.mjs +9 -9
  110. package/dist/actions/list-backups.mjs.map +1 -1
  111. package/dist/actions/list-connections.cjs +7 -7
  112. package/dist/actions/list-connections.cjs.map +1 -1
  113. package/dist/actions/list-connections.d.cts +26 -3
  114. package/dist/actions/list-connections.d.cts.map +1 -1
  115. package/dist/actions/list-connections.d.mts +26 -3
  116. package/dist/actions/list-connections.d.mts.map +1 -1
  117. package/dist/actions/list-connections.mjs +7 -7
  118. package/dist/actions/list-connections.mjs.map +1 -1
  119. package/dist/actions/list-databases.cjs +11 -11
  120. package/dist/actions/list-databases.cjs.map +1 -1
  121. package/dist/actions/list-databases.d.cts +32 -3
  122. package/dist/actions/list-databases.d.cts.map +1 -1
  123. package/dist/actions/list-databases.d.mts +32 -3
  124. package/dist/actions/list-databases.d.mts.map +1 -1
  125. package/dist/actions/list-databases.mjs +11 -11
  126. package/dist/actions/list-databases.mjs.map +1 -1
  127. package/dist/actions/list-postgres-regions.cjs +4 -4
  128. package/dist/actions/list-postgres-regions.cjs.map +1 -1
  129. package/dist/actions/list-postgres-regions.d.cts +10 -3
  130. package/dist/actions/list-postgres-regions.d.cts.map +1 -1
  131. package/dist/actions/list-postgres-regions.d.mts +10 -3
  132. package/dist/actions/list-postgres-regions.d.mts.map +1 -1
  133. package/dist/actions/list-postgres-regions.mjs +4 -4
  134. package/dist/actions/list-postgres-regions.mjs.map +1 -1
  135. package/dist/actions/list-projects.cjs +7 -7
  136. package/dist/actions/list-projects.cjs.map +1 -1
  137. package/dist/actions/list-projects.d.cts +24 -3
  138. package/dist/actions/list-projects.d.cts.map +1 -1
  139. package/dist/actions/list-projects.d.mts +24 -3
  140. package/dist/actions/list-projects.d.mts.map +1 -1
  141. package/dist/actions/list-projects.mjs +7 -7
  142. package/dist/actions/list-projects.mjs.map +1 -1
  143. package/dist/actions/list-workspace-integrations.cjs +8 -8
  144. package/dist/actions/list-workspace-integrations.cjs.map +1 -1
  145. package/dist/actions/list-workspace-integrations.d.cts +30 -3
  146. package/dist/actions/list-workspace-integrations.d.cts.map +1 -1
  147. package/dist/actions/list-workspace-integrations.d.mts +30 -3
  148. package/dist/actions/list-workspace-integrations.d.mts.map +1 -1
  149. package/dist/actions/list-workspace-integrations.mjs +8 -8
  150. package/dist/actions/list-workspace-integrations.mjs.map +1 -1
  151. package/dist/actions/list-workspaces.cjs +5 -5
  152. package/dist/actions/list-workspaces.cjs.map +1 -1
  153. package/dist/actions/list-workspaces.d.cts +20 -3
  154. package/dist/actions/list-workspaces.d.cts.map +1 -1
  155. package/dist/actions/list-workspaces.d.mts +20 -3
  156. package/dist/actions/list-workspaces.d.mts.map +1 -1
  157. package/dist/actions/list-workspaces.mjs +5 -5
  158. package/dist/actions/list-workspaces.mjs.map +1 -1
  159. package/dist/actions/restore-backup.cjs +10 -10
  160. package/dist/actions/restore-backup.cjs.map +1 -1
  161. package/dist/actions/restore-backup.d.cts +28 -3
  162. package/dist/actions/restore-backup.d.cts.map +1 -1
  163. package/dist/actions/restore-backup.d.mts +28 -3
  164. package/dist/actions/restore-backup.d.mts.map +1 -1
  165. package/dist/actions/restore-backup.mjs +10 -10
  166. package/dist/actions/restore-backup.mjs.map +1 -1
  167. package/dist/actions/transfer-project.cjs +2 -2
  168. package/dist/actions/transfer-project.cjs.map +1 -1
  169. package/dist/actions/transfer-project.d.cts +12 -3
  170. package/dist/actions/transfer-project.d.cts.map +1 -1
  171. package/dist/actions/transfer-project.d.mts +12 -3
  172. package/dist/actions/transfer-project.d.mts.map +1 -1
  173. package/dist/actions/transfer-project.mjs +2 -2
  174. package/dist/actions/transfer-project.mjs.map +1 -1
  175. package/package.json +2 -2
@@ -7,25 +7,25 @@ const PrismaListDatabasesInput = z.object({
7
7
  projectId: z.string().describe("Unique project identifier to list databases for (format: 'prj_xxxxx'). Must be a project the authenticated user has access to. All databases belonging to this project will be returned.")
8
8
  }).describe("Request parameters for listing databases in a project.");
9
9
  const PrismaListDatabases_RegionInfoSchema = z.object({
10
- id: z.string().describe("Region identifier (e.g., 'us-east-1')."),
11
- name: z.string().describe("Human-readable region name (e.g., 'US East (N. Virginia)').")
10
+ id: z.string().describe("Region identifier (e.g., 'us-east-1').").nullable(),
11
+ name: z.string().describe("Human-readable region name (e.g., 'US East (N. Virginia)').").nullable()
12
12
  }).describe("Database region information.");
13
13
  const PrismaListDatabases_ProjectInfoSchema = z.object({
14
- id: z.string().describe("Unique project ID containing this database."),
15
- name: z.string().describe("Human-readable project name.")
14
+ id: z.string().describe("Unique project ID containing this database.").nullable(),
15
+ name: z.string().describe("Human-readable project name.").nullable()
16
16
  }).describe("Project information embedded in database objects.");
17
17
  const PrismaListDatabases_DatabaseSchema = z.object({
18
- id: z.string().describe("Unique database identifier (format: 'db_xxxxx'). Use this ID for database-specific operations like getting details, managing connections, or deletion."),
19
- name: z.string().describe("Human-readable database name set during creation. Used for identification and display in UIs. Often matches project name for default databases."),
20
- type: z.string().describe("Object type, always 'database'. Provides consistency across API responses."),
18
+ id: z.string().describe("Unique database identifier (format: 'db_xxxxx'). Use this ID for database-specific operations like getting details, managing connections, or deletion.").nullable(),
19
+ name: z.string().describe("Human-readable database name set during creation. Used for identification and display in UIs. Often matches project name for default databases.").nullable(),
20
+ type: z.string().describe("Object type, always 'database'. Provides consistency across API responses.").nullable(),
21
21
  region: PrismaListDatabases_RegionInfoSchema.nullable(),
22
- status: z.string().describe("Current database status indicating operational state. Common values: 'ready' (operational), 'provisioning' (being created), 'failure' (error state), 'maintenance' (temporary unavailable)."),
22
+ status: z.string().describe("Current database status indicating operational state. Common values: 'ready' (operational), 'provisioning' (being created), 'failure' (error state), 'maintenance' (temporary unavailable).").nullable(),
23
23
  project: PrismaListDatabases_ProjectInfoSchema.nullable(),
24
- createdAt: z.string().describe("ISO 8601 creation timestamp in UTC (e.g., '2025-07-20T11:08:16.761Z')."),
25
- isDefault: z.boolean().describe("True if this is the default database for the project. Default databases are created automatically with projects and typically cannot be deleted.")
24
+ createdAt: z.string().describe("ISO 8601 creation timestamp in UTC (e.g., '2025-07-20T11:08:16.761Z').").nullable(),
25
+ isDefault: z.boolean().describe("True if this is the default database for the project. Default databases are created automatically with projects and typically cannot be deleted.").nullable()
26
26
  }).describe("Prisma postgres database in a project.");
27
27
  const PrismaListDatabases_PaginationSchema = z.object({
28
- hasMore: z.boolean().describe("True if more pages available. Check before making next request."),
28
+ hasMore: z.boolean().describe("True if more pages available. Check before making next request.").nullable(),
29
29
  nextCursor: z.string().describe("Opaque cursor for next page. Pass to subsequent requests. Null when no more pages.").nullable().optional()
30
30
  }).describe("Pagination metadata for cursor-based navigation through database results.");
31
31
  const prismaListDatabases = action("PRISMA_LIST_DATABASES", {
@@ -1 +1 @@
1
- {"version":3,"file":"list-databases.mjs","names":[],"sources":["../../src/actions/list-databases.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaListDatabasesInput: z.ZodTypeAny = z.object({\n limit: z.number().int().default(100).describe(\"Maximum number of databases to return in a single request. Defaults to 100 if not specified. Valid range is typically 1-500. Use smaller values (10-50) for faster responses when you only need a few databases, or larger values (100-500) when bulk processing.\").optional(),\n cursor: z.string().describe(\"Pagination cursor for retrieving the next page of results. Use the 'nextCursor' value from a previous response to get subsequent pages. Leave as None/null for the first page. Enables efficient pagination through large numbers of databases without missing or duplicating entries.\").optional(),\n projectId: z.string().describe(\"Unique project identifier to list databases for (format: 'prj_xxxxx'). Must be a project the authenticated user has access to. All databases belonging to this project will be returned.\"),\n}).describe(\"Request parameters for listing databases in a project.\");\nconst PrismaListDatabases_RegionInfoSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Region identifier (e.g., 'us-east-1').\"),\n name: z.string().describe(\"Human-readable region name (e.g., 'US East (N. Virginia)').\"),\n}).describe(\"Database region information.\");\nconst PrismaListDatabases_ProjectInfoSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique project ID containing this database.\"),\n name: z.string().describe(\"Human-readable project name.\"),\n}).describe(\"Project information embedded in database objects.\");\nconst PrismaListDatabases_DatabaseSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique database identifier (format: 'db_xxxxx'). Use this ID for database-specific operations like getting details, managing connections, or deletion.\"),\n name: z.string().describe(\"Human-readable database name set during creation. Used for identification and display in UIs. Often matches project name for default databases.\"),\n type: z.string().describe(\"Object type, always 'database'. Provides consistency across API responses.\"),\n region: PrismaListDatabases_RegionInfoSchema.nullable(),\n status: z.string().describe(\"Current database status indicating operational state. Common values: 'ready' (operational), 'provisioning' (being created), 'failure' (error state), 'maintenance' (temporary unavailable).\"),\n project: PrismaListDatabases_ProjectInfoSchema.nullable(),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp in UTC (e.g., '2025-07-20T11:08:16.761Z').\"),\n isDefault: z.boolean().describe(\"True if this is the default database for the project. Default databases are created automatically with projects and typically cannot be deleted.\"),\n}).describe(\"Prisma postgres database in a project.\");\nconst PrismaListDatabases_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 database results.\");\nexport const PrismaListDatabasesOutput: z.ZodTypeAny = z.object({\n data: z.array(PrismaListDatabases_DatabaseSchema).describe(\"Array of database objects within the specified project. Databases are ordered by creation date with most recent first. Includes both default and additional databases created for the project.\"),\n pagination: PrismaListDatabases_PaginationSchema.nullable(),\n}).describe(\"API response containing database list and pagination metadata.\");\n\nexport const prismaListDatabases = action(\"PRISMA_LIST_DATABASES\", {\n slug: \"prisma-list-databases\",\n name: \"List Project Databases\",\n description: \"Retrieve paginated list of databases for a specific Prisma project. Returns database details including status, region, and project context. Use for database discovery, monitoring, and project administration.\",\n input: PrismaListDatabasesInput,\n output: PrismaListDatabasesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyC,EAAE,OAAO;CAC7D,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,mQAAmQ,CAAC,CAAC,SAAS;CAC5T,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wRAAwR,CAAC,CAAC,SAAS;CAC/T,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0LAA0L;AAC3N,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,uCAAqD,EAAE,OAAO;CAClE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;AACzF,CAAC,CAAC,CAAC,SAAS,8BAA8B;AAC1C,MAAM,wCAAsD,EAAE,OAAO;CACnE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;AAC1D,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,qCAAmD,EAAE,OAAO;CAChE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wJAAwJ;CAChL,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iJAAiJ;CAC3K,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E;CACtG,QAAQ,qCAAqC,SAAS;CACtD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6LAA6L;CACzN,SAAS,sCAAsC,SAAS;CACxD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE;CACvG,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,kJAAkJ;AACpL,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAM,uCAAqD,EAAE,OAAO;CAClE,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,2EAA2E;AAMvF,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVqD,EAAE,OAAO;EAC9D,MAAM,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,gMAAgM;EAC3P,YAAY,qCAAqC,SAAS;CAC5D,CAAC,CAAC,CAAC,SAAS,gEAOF;AACV,CAAC"}
1
+ {"version":3,"file":"list-databases.mjs","names":[],"sources":["../../src/actions/list-databases.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaListDatabasesInput = z.object({\n limit: z.number().int().default(100).describe(\"Maximum number of databases to return in a single request. Defaults to 100 if not specified. Valid range is typically 1-500. Use smaller values (10-50) for faster responses when you only need a few databases, or larger values (100-500) when bulk processing.\").optional(),\n cursor: z.string().describe(\"Pagination cursor for retrieving the next page of results. Use the 'nextCursor' value from a previous response to get subsequent pages. Leave as None/null for the first page. Enables efficient pagination through large numbers of databases without missing or duplicating entries.\").optional(),\n projectId: z.string().describe(\"Unique project identifier to list databases for (format: 'prj_xxxxx'). Must be a project the authenticated user has access to. All databases belonging to this project will be returned.\"),\n}).describe(\"Request parameters for listing databases in a project.\");\nconst PrismaListDatabases_RegionInfoSchema = z.object({\n id: z.string().describe(\"Region identifier (e.g., 'us-east-1').\").nullable(),\n name: z.string().describe(\"Human-readable region name (e.g., 'US East (N. Virginia)').\").nullable(),\n}).describe(\"Database region information.\");\nconst PrismaListDatabases_ProjectInfoSchema = z.object({\n id: z.string().describe(\"Unique project ID containing this database.\").nullable(),\n name: z.string().describe(\"Human-readable project name.\").nullable(),\n}).describe(\"Project information embedded in database objects.\");\nconst PrismaListDatabases_DatabaseSchema = z.object({\n id: z.string().describe(\"Unique database identifier (format: 'db_xxxxx'). Use this ID for database-specific operations like getting details, managing connections, or deletion.\").nullable(),\n name: z.string().describe(\"Human-readable database name set during creation. Used for identification and display in UIs. Often matches project name for default databases.\").nullable(),\n type: z.string().describe(\"Object type, always 'database'. Provides consistency across API responses.\").nullable(),\n region: PrismaListDatabases_RegionInfoSchema.nullable(),\n status: z.string().describe(\"Current database status indicating operational state. Common values: 'ready' (operational), 'provisioning' (being created), 'failure' (error state), 'maintenance' (temporary unavailable).\").nullable(),\n project: PrismaListDatabases_ProjectInfoSchema.nullable(),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp in UTC (e.g., '2025-07-20T11:08:16.761Z').\").nullable(),\n isDefault: z.boolean().describe(\"True if this is the default database for the project. Default databases are created automatically with projects and typically cannot be deleted.\").nullable(),\n}).describe(\"Prisma postgres database in a project.\");\nconst PrismaListDatabases_PaginationSchema = z.object({\n hasMore: z.boolean().describe(\"True if more pages available. Check before making next request.\").nullable(),\n nextCursor: z.string().describe(\"Opaque cursor for next page. Pass to subsequent requests. Null when no more pages.\").nullable().optional(),\n}).describe(\"Pagination metadata for cursor-based navigation through database results.\");\nexport const PrismaListDatabasesOutput = z.object({\n data: z.array(PrismaListDatabases_DatabaseSchema).describe(\"Array of database objects within the specified project. Databases are ordered by creation date with most recent first. Includes both default and additional databases created for the project.\"),\n pagination: PrismaListDatabases_PaginationSchema.nullable(),\n}).describe(\"API response containing database list and pagination metadata.\");\n\nexport const prismaListDatabases = action(\"PRISMA_LIST_DATABASES\", {\n slug: \"prisma-list-databases\",\n name: \"List Project Databases\",\n description: \"Retrieve paginated list of databases for a specific Prisma project. Returns database details including status, region, and project context. Use for database discovery, monitoring, and project administration.\",\n input: PrismaListDatabasesInput,\n output: PrismaListDatabasesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,mQAAmQ,CAAC,CAAC,SAAS;CAC5T,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wRAAwR,CAAC,CAAC,SAAS;CAC/T,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0LAA0L;AAC3N,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,uCAAuC,EAAE,OAAO;CACpD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC3E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,SAAS,8BAA8B;AAC1C,MAAM,wCAAwC,EAAE,OAAO;CACrD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAChF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;AACrE,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,qCAAqC,EAAE,OAAO;CAClD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wJAAwJ,CAAC,CAAC,SAAS;CAC3L,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iJAAiJ,CAAC,CAAC,SAAS;CACtL,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CACjH,QAAQ,qCAAqC,SAAS;CACtD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6LAA6L,CAAC,CAAC,SAAS;CACpO,SAAS,sCAAsC,SAAS;CACxD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CAClH,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,kJAAkJ,CAAC,CAAC,SAAS;AAC/L,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAM,uCAAuC,EAAE,OAAO;CACpD,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC1G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5I,CAAC,CAAC,CAAC,SAAS,2EAA2E;AAMvF,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVuC,EAAE,OAAO;EAChD,MAAM,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,gMAAgM;EAC3P,YAAY,qCAAqC,SAAS;CAC5D,CAAC,CAAC,CAAC,SAAS,gEAOF;AACV,CAAC"}
@@ -3,10 +3,10 @@ let zod = require("zod");
3
3
  //#region src/actions/list-postgres-regions.ts
4
4
  const PrismaListPostgresRegionsInput = zod.z.object({}).describe("Request parameters for listing Prisma Postgres regions.");
5
5
  const PrismaListPostgresRegions_PostgresRegionSchema = zod.z.object({
6
- id: zod.z.string().describe("Unique region identifier (e.g., 'us-east-1', 'eu-west-1'). Use this ID when creating databases to specify the desired region."),
7
- name: zod.z.string().describe("Human-readable region name (e.g., 'US East (N. Virginia)', 'Europe (Ireland)'). Displays geographical location for user-friendly region selection."),
8
- type: zod.z.string().describe("Object type, always 'region'. Provides consistency across API responses."),
9
- status: zod.z.string().describe("Current region availability status for Prisma Postgres. Values: 'available' (ready for database creation), 'unavailable' (temporarily disabled), 'maintenance' (scheduled maintenance). Only use 'available' regions for new databases.")
6
+ id: zod.z.string().describe("Unique region identifier (e.g., 'us-east-1', 'eu-west-1'). Use this ID when creating databases to specify the desired region.").nullable(),
7
+ name: zod.z.string().describe("Human-readable region name (e.g., 'US East (N. Virginia)', 'Europe (Ireland)'). Displays geographical location for user-friendly region selection.").nullable(),
8
+ type: zod.z.string().describe("Object type, always 'region'. Provides consistency across API responses.").nullable(),
9
+ status: zod.z.string().describe("Current region availability status for Prisma Postgres. Values: 'available' (ready for database creation), 'unavailable' (temporarily disabled), 'maintenance' (scheduled maintenance). Only use 'available' regions for new databases.").nullable()
10
10
  }).describe("Prisma Postgres region object with availability status.");
11
11
  const PrismaListPostgresRegionsOutput = zod.z.object({ data: zod.z.array(PrismaListPostgresRegions_PostgresRegionSchema).describe("Array of Prisma Postgres regions with availability status. Filter for 'available' status when creating new databases. Regions are ordered by geographical priority.") }).describe("API response containing available Prisma Postgres regions.");
12
12
  const prismaListPostgresRegions = require_action.action("PRISMA_LIST_POSTGRES_REGIONS", {
@@ -1 +1 @@
1
- {"version":3,"file":"list-postgres-regions.cjs","names":["z","action"],"sources":["../../src/actions/list-postgres-regions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaListPostgresRegionsInput: z.ZodTypeAny = z.object({}).describe(\"Request parameters for listing Prisma Postgres regions.\");\nconst PrismaListPostgresRegions_PostgresRegionSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique region identifier (e.g., 'us-east-1', 'eu-west-1'). Use this ID when creating databases to specify the desired region.\"),\n name: z.string().describe(\"Human-readable region name (e.g., 'US East (N. Virginia)', 'Europe (Ireland)'). Displays geographical location for user-friendly region selection.\"),\n type: z.string().describe(\"Object type, always 'region'. Provides consistency across API responses.\"),\n status: z.string().describe(\"Current region availability status for Prisma Postgres. Values: 'available' (ready for database creation), 'unavailable' (temporarily disabled), 'maintenance' (scheduled maintenance). Only use 'available' regions for new databases.\"),\n}).describe(\"Prisma Postgres region object with availability status.\");\nexport const PrismaListPostgresRegionsOutput: z.ZodTypeAny = z.object({\n data: z.array(PrismaListPostgresRegions_PostgresRegionSchema).describe(\"Array of Prisma Postgres regions with availability status. Filter for 'available' status when creating new databases. Regions are ordered by geographical priority.\"),\n}).describe(\"API response containing available Prisma Postgres regions.\");\n\nexport const prismaListPostgresRegions = action(\"PRISMA_LIST_POSTGRES_REGIONS\", {\n slug: \"prisma-list-postgres-regions\",\n name: \"List Prisma Postgres Regions\",\n description: \"Retrieve all available regions for Prisma Postgres. Returns regions where Prisma Postgres databases can be deployed with current availability status. Use for region selection during database creation and capacity planning.\",\n input: PrismaListPostgresRegionsInput,\n output: PrismaListPostgresRegionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAA+CA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yDAAyD;AAC3I,MAAM,iDAA+DA,IAAAA,EAAE,OAAO;CAC5E,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H;CACvJ,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oJAAoJ;CAC9K,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E;CACpG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yOAAyO;AACvQ,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAa,kCAAgDA,IAAAA,EAAE,OAAO,EACpE,MAAMA,IAAAA,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,qKAAqK,EAC9O,CAAC,CAAC,CAAC,SAAS,4DAA4D;AAExE,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-postgres-regions.cjs","names":["z","action"],"sources":["../../src/actions/list-postgres-regions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaListPostgresRegionsInput = z.object({}).describe(\"Request parameters for listing Prisma Postgres regions.\");\nconst PrismaListPostgresRegions_PostgresRegionSchema = z.object({\n id: z.string().describe(\"Unique region identifier (e.g., 'us-east-1', 'eu-west-1'). Use this ID when creating databases to specify the desired region.\").nullable(),\n name: z.string().describe(\"Human-readable region name (e.g., 'US East (N. Virginia)', 'Europe (Ireland)'). Displays geographical location for user-friendly region selection.\").nullable(),\n type: z.string().describe(\"Object type, always 'region'. Provides consistency across API responses.\").nullable(),\n status: z.string().describe(\"Current region availability status for Prisma Postgres. Values: 'available' (ready for database creation), 'unavailable' (temporarily disabled), 'maintenance' (scheduled maintenance). Only use 'available' regions for new databases.\").nullable(),\n}).describe(\"Prisma Postgres region object with availability status.\");\nexport const PrismaListPostgresRegionsOutput = z.object({\n data: z.array(PrismaListPostgresRegions_PostgresRegionSchema).describe(\"Array of Prisma Postgres regions with availability status. Filter for 'available' status when creating new databases. Regions are ordered by geographical priority.\"),\n}).describe(\"API response containing available Prisma Postgres regions.\");\n\nexport const prismaListPostgresRegions = action(\"PRISMA_LIST_POSTGRES_REGIONS\", {\n slug: \"prisma-list-postgres-regions\",\n name: \"List Prisma Postgres Regions\",\n description: \"Retrieve all available regions for Prisma Postgres. Returns regions where Prisma Postgres databases can be deployed with current availability status. Use for region selection during database creation and capacity planning.\",\n input: PrismaListPostgresRegionsInput,\n output: PrismaListPostgresRegionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yDAAyD;AAC7H,MAAM,iDAAiDA,IAAAA,EAAE,OAAO;CAC9D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H,CAAC,CAAC,SAAS;CAClK,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oJAAoJ,CAAC,CAAC,SAAS;CACzL,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CAC/G,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yOAAyO,CAAC,CAAC,SAAS;AAClR,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAa,kCAAkCA,IAAAA,EAAE,OAAO,EACtD,MAAMA,IAAAA,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,qKAAqK,EAC9O,CAAC,CAAC,CAAC,SAAS,4DAA4D;AAExE,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,16 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-postgres-regions.d.ts
4
- declare const PrismaListPostgresRegionsInput: z.ZodTypeAny;
5
- declare const PrismaListPostgresRegionsOutput: z.ZodTypeAny;
6
- declare const prismaListPostgresRegions: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PrismaListPostgresRegionsInput: z.ZodObject<{}, z.core.$strip>;
5
+ declare const PrismaListPostgresRegionsOutput: z.ZodObject<{
6
+ data: z.ZodArray<z.ZodObject<{
7
+ id: z.ZodNullable<z.ZodString>;
8
+ name: z.ZodNullable<z.ZodString>;
9
+ type: z.ZodNullable<z.ZodString>;
10
+ status: z.ZodNullable<z.ZodString>;
11
+ }, z.core.$strip>>;
12
+ }, z.core.$strip>;
13
+ declare const prismaListPostgresRegions: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
14
  //#endregion
8
15
  export { prismaListPostgresRegions };
9
16
  //# sourceMappingURL=list-postgres-regions.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-postgres-regions.d.cts","names":[],"sources":["../../src/actions/list-postgres-regions.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAA6F;AAAA,cAO/H,+BAAA,EAAiC,CAAA,CAAE,UAEyB;AAAA,cAE5D,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-postgres-regions.d.cts","names":[],"sources":["../../src/actions/list-postgres-regions.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAO9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;cAI/B,yBAAA,gCAAyB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -1,9 +1,16 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-postgres-regions.d.ts
4
- declare const PrismaListPostgresRegionsInput: z.ZodTypeAny;
5
- declare const PrismaListPostgresRegionsOutput: z.ZodTypeAny;
6
- declare const prismaListPostgresRegions: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PrismaListPostgresRegionsInput: z.ZodObject<{}, z.core.$strip>;
5
+ declare const PrismaListPostgresRegionsOutput: z.ZodObject<{
6
+ data: z.ZodArray<z.ZodObject<{
7
+ id: z.ZodNullable<z.ZodString>;
8
+ name: z.ZodNullable<z.ZodString>;
9
+ type: z.ZodNullable<z.ZodString>;
10
+ status: z.ZodNullable<z.ZodString>;
11
+ }, z.core.$strip>>;
12
+ }, z.core.$strip>;
13
+ declare const prismaListPostgresRegions: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
14
  //#endregion
8
15
  export { prismaListPostgresRegions };
9
16
  //# sourceMappingURL=list-postgres-regions.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-postgres-regions.d.mts","names":[],"sources":["../../src/actions/list-postgres-regions.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAA6F;AAAA,cAO/H,+BAAA,EAAiC,CAAA,CAAE,UAEyB;AAAA,cAE5D,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-postgres-regions.d.mts","names":[],"sources":["../../src/actions/list-postgres-regions.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAO9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;cAI/B,yBAAA,gCAAyB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -3,10 +3,10 @@ import { z } from "zod";
3
3
  //#region src/actions/list-postgres-regions.ts
4
4
  const PrismaListPostgresRegionsInput = z.object({}).describe("Request parameters for listing Prisma Postgres regions.");
5
5
  const PrismaListPostgresRegions_PostgresRegionSchema = z.object({
6
- id: z.string().describe("Unique region identifier (e.g., 'us-east-1', 'eu-west-1'). Use this ID when creating databases to specify the desired region."),
7
- name: z.string().describe("Human-readable region name (e.g., 'US East (N. Virginia)', 'Europe (Ireland)'). Displays geographical location for user-friendly region selection."),
8
- type: z.string().describe("Object type, always 'region'. Provides consistency across API responses."),
9
- status: z.string().describe("Current region availability status for Prisma Postgres. Values: 'available' (ready for database creation), 'unavailable' (temporarily disabled), 'maintenance' (scheduled maintenance). Only use 'available' regions for new databases.")
6
+ id: z.string().describe("Unique region identifier (e.g., 'us-east-1', 'eu-west-1'). Use this ID when creating databases to specify the desired region.").nullable(),
7
+ name: z.string().describe("Human-readable region name (e.g., 'US East (N. Virginia)', 'Europe (Ireland)'). Displays geographical location for user-friendly region selection.").nullable(),
8
+ type: z.string().describe("Object type, always 'region'. Provides consistency across API responses.").nullable(),
9
+ status: z.string().describe("Current region availability status for Prisma Postgres. Values: 'available' (ready for database creation), 'unavailable' (temporarily disabled), 'maintenance' (scheduled maintenance). Only use 'available' regions for new databases.").nullable()
10
10
  }).describe("Prisma Postgres region object with availability status.");
11
11
  const prismaListPostgresRegions = action("PRISMA_LIST_POSTGRES_REGIONS", {
12
12
  slug: "prisma-list-postgres-regions",
@@ -1 +1 @@
1
- {"version":3,"file":"list-postgres-regions.mjs","names":[],"sources":["../../src/actions/list-postgres-regions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaListPostgresRegionsInput: z.ZodTypeAny = z.object({}).describe(\"Request parameters for listing Prisma Postgres regions.\");\nconst PrismaListPostgresRegions_PostgresRegionSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique region identifier (e.g., 'us-east-1', 'eu-west-1'). Use this ID when creating databases to specify the desired region.\"),\n name: z.string().describe(\"Human-readable region name (e.g., 'US East (N. Virginia)', 'Europe (Ireland)'). Displays geographical location for user-friendly region selection.\"),\n type: z.string().describe(\"Object type, always 'region'. Provides consistency across API responses.\"),\n status: z.string().describe(\"Current region availability status for Prisma Postgres. Values: 'available' (ready for database creation), 'unavailable' (temporarily disabled), 'maintenance' (scheduled maintenance). Only use 'available' regions for new databases.\"),\n}).describe(\"Prisma Postgres region object with availability status.\");\nexport const PrismaListPostgresRegionsOutput: z.ZodTypeAny = z.object({\n data: z.array(PrismaListPostgresRegions_PostgresRegionSchema).describe(\"Array of Prisma Postgres regions with availability status. Filter for 'available' status when creating new databases. Regions are ordered by geographical priority.\"),\n}).describe(\"API response containing available Prisma Postgres regions.\");\n\nexport const prismaListPostgresRegions = action(\"PRISMA_LIST_POSTGRES_REGIONS\", {\n slug: \"prisma-list-postgres-regions\",\n name: \"List Prisma Postgres Regions\",\n description: \"Retrieve all available regions for Prisma Postgres. Returns regions where Prisma Postgres databases can be deployed with current availability status. Use for region selection during database creation and capacity planning.\",\n input: PrismaListPostgresRegionsInput,\n output: PrismaListPostgresRegionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAA+C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yDAAyD;AAC3I,MAAM,iDAA+D,EAAE,OAAO;CAC5E,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H;CACvJ,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oJAAoJ;CAC9K,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E;CACpG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,yOAAyO;AACvQ,CAAC,CAAC,CAAC,SAAS,yDAAyD;AAKrE,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT2D,EAAE,OAAO,EACpE,MAAM,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,qKAAqK,EAC9O,CAAC,CAAC,CAAC,SAAS,4DAOF;AACV,CAAC"}
1
+ {"version":3,"file":"list-postgres-regions.mjs","names":[],"sources":["../../src/actions/list-postgres-regions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaListPostgresRegionsInput = z.object({}).describe(\"Request parameters for listing Prisma Postgres regions.\");\nconst PrismaListPostgresRegions_PostgresRegionSchema = z.object({\n id: z.string().describe(\"Unique region identifier (e.g., 'us-east-1', 'eu-west-1'). Use this ID when creating databases to specify the desired region.\").nullable(),\n name: z.string().describe(\"Human-readable region name (e.g., 'US East (N. Virginia)', 'Europe (Ireland)'). Displays geographical location for user-friendly region selection.\").nullable(),\n type: z.string().describe(\"Object type, always 'region'. Provides consistency across API responses.\").nullable(),\n status: z.string().describe(\"Current region availability status for Prisma Postgres. Values: 'available' (ready for database creation), 'unavailable' (temporarily disabled), 'maintenance' (scheduled maintenance). Only use 'available' regions for new databases.\").nullable(),\n}).describe(\"Prisma Postgres region object with availability status.\");\nexport const PrismaListPostgresRegionsOutput = z.object({\n data: z.array(PrismaListPostgresRegions_PostgresRegionSchema).describe(\"Array of Prisma Postgres regions with availability status. Filter for 'available' status when creating new databases. Regions are ordered by geographical priority.\"),\n}).describe(\"API response containing available Prisma Postgres regions.\");\n\nexport const prismaListPostgresRegions = action(\"PRISMA_LIST_POSTGRES_REGIONS\", {\n slug: \"prisma-list-postgres-regions\",\n name: \"List Prisma Postgres Regions\",\n description: \"Retrieve all available regions for Prisma Postgres. Returns regions where Prisma Postgres databases can be deployed with current availability status. Use for region selection during database creation and capacity planning.\",\n input: PrismaListPostgresRegionsInput,\n output: PrismaListPostgresRegionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yDAAyD;AAC7H,MAAM,iDAAiD,EAAE,OAAO;CAC9D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H,CAAC,CAAC,SAAS;CAClK,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oJAAoJ,CAAC,CAAC,SAAS;CACzL,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CAC/G,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,yOAAyO,CAAC,CAAC,SAAS;AAClR,CAAC,CAAC,CAAC,SAAS,yDAAyD;AAKrE,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT6C,EAAE,OAAO,EACtD,MAAM,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,qKAAqK,EAC9O,CAAC,CAAC,CAAC,SAAS,4DAOF;AACV,CAAC"}
@@ -6,18 +6,18 @@ const PrismaListProjectsInput = zod.z.object({
6
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 projects without missing or duplicating entries.").optional()
7
7
  }).describe("Request parameters for listing Prisma projects with pagination support.");
8
8
  const PrismaListProjects_WorkspaceInfoSchema = zod.z.object({
9
- id: zod.z.string().describe("Unique workspace ID that contains this project (format: 'wksp_xxxxx')."),
10
- name: zod.z.string().describe("Human-readable workspace name for display purposes.")
9
+ id: zod.z.string().describe("Unique workspace ID that contains this project (format: 'wksp_xxxxx').").nullable(),
10
+ name: zod.z.string().describe("Human-readable workspace name for display purposes.").nullable()
11
11
  }).describe("Workspace information embedded in project objects.");
12
12
  const PrismaListProjects_ProjectSchema = zod.z.object({
13
- id: zod.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: zod.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: zod.z.string().describe("Object type, always 'project'. Provides consistency across API responses."),
16
- createdAt: zod.z.string().describe("ISO 8601 creation timestamp in UTC (e.g., '2025-07-20T10:54:59.040Z')."),
13
+ id: zod.z.string().describe("Unique project identifier (format: 'prj_xxxxx'). Use this ID for all project-specific operations like getting details, creating databases, or managing environments.").nullable(),
14
+ name: zod.z.string().describe("Human-readable project name set during creation. Used for display in UIs and identification. Can be modified by project admins.").nullable(),
15
+ type: zod.z.string().describe("Object type, always 'project'. Provides consistency across API responses.").nullable(),
16
+ createdAt: zod.z.string().describe("ISO 8601 creation timestamp in UTC (e.g., '2025-07-20T10:54:59.040Z').").nullable(),
17
17
  workspace: PrismaListProjects_WorkspaceInfoSchema.nullable()
18
18
  }).describe("Prisma project containing databases and environments.");
19
19
  const PrismaListProjects_PaginationSchema = zod.z.object({
20
- hasMore: zod.z.boolean().describe("True if more pages available. Check before making next request."),
20
+ hasMore: zod.z.boolean().describe("True if more pages available. Check before making next request.").nullable(),
21
21
  nextCursor: zod.z.string().describe("Opaque cursor for next page. Pass to subsequent requests. Null when no more pages.").nullable().optional()
22
22
  }).describe("Pagination metadata for cursor-based navigation through project results.");
23
23
  const PrismaListProjectsOutput = zod.z.object({
@@ -1 +1 @@
1
- {"version":3,"file":"list-projects.cjs","names":["z","action"],"sources":["../../src/actions/list-projects.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaListProjectsInput: z.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,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,0UAA0U,CAAC,CAAC,SAAS;CACnY,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4RAA4R,CAAC,CAAC,SAAS;AACrU,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAM,yCAAuDA,IAAAA,EAAE,OAAO;CACpE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE;CAChG,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;AACjF,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAM,mCAAiDA,IAAAA,EAAE,OAAO;CAC9D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sKAAsK;CAC9L,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI;CAC3J,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E;CACrG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE;CACvG,WAAW,uCAAuC,SAAS;AAC7D,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAM,sCAAoDA,IAAAA,EAAE,OAAO;CACjE,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,0EAA0E;AACtF,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,MAAMA,IAAAA,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,6LAA6L;CACtP,YAAY,oCAAoC,SAAS;AAC3D,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAE3E,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-projects.cjs","names":["z","action"],"sources":["../../src/actions/list-projects.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaListProjectsInput = z.object({\n limit: z.number().int().default(100).describe(\"Maximum number of projects to return in a single request. Defaults to 100 if not specified. Valid range is typically 1-500. Use smaller values (10-50) for faster responses when you only need a few projects, or larger values (100-500) when bulk processing. The API may return fewer results than requested if fewer projects exist.\").optional(),\n cursor: z.string().describe(\"Pagination cursor for retrieving the next page of results. Use the 'nextCursor' value from a previous response to get subsequent pages. Leave as None/null for the first page. This enables efficient pagination through large numbers of projects without missing or duplicating entries.\").optional(),\n}).describe(\"Request parameters for listing Prisma projects with pagination support.\");\nconst PrismaListProjects_WorkspaceInfoSchema = z.object({\n id: z.string().describe(\"Unique workspace ID that contains this project (format: 'wksp_xxxxx').\").nullable(),\n name: z.string().describe(\"Human-readable workspace name for display purposes.\").nullable(),\n}).describe(\"Workspace information embedded in project objects.\");\nconst PrismaListProjects_ProjectSchema = z.object({\n id: z.string().describe(\"Unique project identifier (format: 'prj_xxxxx'). Use this ID for all project-specific operations like getting details, creating databases, or managing environments.\").nullable(),\n name: z.string().describe(\"Human-readable project name set during creation. Used for display in UIs and identification. Can be modified by project admins.\").nullable(),\n type: z.string().describe(\"Object type, always 'project'. Provides consistency across API responses.\").nullable(),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp in UTC (e.g., '2025-07-20T10:54:59.040Z').\").nullable(),\n workspace: PrismaListProjects_WorkspaceInfoSchema.nullable(),\n}).describe(\"Prisma project containing databases and environments.\");\nconst PrismaListProjects_PaginationSchema = z.object({\n hasMore: z.boolean().describe(\"True if more pages available. Check before making next request.\").nullable(),\n nextCursor: z.string().describe(\"Opaque cursor for next page. Pass to subsequent requests. Null when no more pages.\").nullable().optional(),\n}).describe(\"Pagination metadata for cursor-based navigation through project results.\");\nexport const PrismaListProjectsOutput = z.object({\n data: z.array(PrismaListProjects_ProjectSchema).describe(\"Array of project objects accessible to the authenticated user. Projects are ordered by creation date with most recent first. Each project includes workspace context and creation metadata.\"),\n pagination: PrismaListProjects_PaginationSchema.nullable(),\n}).describe(\"API response containing project list and pagination metadata.\");\n\nexport const prismaListProjects = action(\"PRISMA_LIST_PROJECTS\", {\n slug: \"prisma-list-projects\",\n name: \"List Prisma Projects\",\n description: \"Retrieve paginated list of Prisma projects accessible to authenticated user. Returns project IDs, names, workspace info, and timestamps with cursor-based pagination. Use for project discovery, UI selection flows, and administrative operations.\",\n input: PrismaListProjectsInput,\n output: PrismaListProjectsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,0UAA0U,CAAC,CAAC,SAAS;CACnY,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4RAA4R,CAAC,CAAC,SAAS;AACrU,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAM,yCAAyCA,IAAAA,EAAE,OAAO;CACtD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CAC3G,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAM,mCAAmCA,IAAAA,EAAE,OAAO;CAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sKAAsK,CAAC,CAAC,SAAS;CACzM,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI,CAAC,CAAC,SAAS;CACtK,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CAChH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CAClH,WAAW,uCAAuC,SAAS;AAC7D,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAM,sCAAsCA,IAAAA,EAAE,OAAO;CACnD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC1G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5I,CAAC,CAAC,CAAC,SAAS,0EAA0E;AACtF,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,6LAA6L;CACtP,YAAY,oCAAoC,SAAS;AAC3D,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAE3E,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,30 @@
1
1
  import { z } from "zod";
2
2
 
3
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]>;
4
+ declare const PrismaListProjectsInput: z.ZodObject<{
5
+ limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
6
+ cursor: z.ZodOptional<z.ZodString>;
7
+ }, z.core.$strip>;
8
+ declare const PrismaListProjectsOutput: z.ZodObject<{
9
+ data: z.ZodArray<z.ZodObject<{
10
+ id: z.ZodNullable<z.ZodString>;
11
+ name: z.ZodNullable<z.ZodString>;
12
+ type: z.ZodNullable<z.ZodString>;
13
+ createdAt: z.ZodNullable<z.ZodString>;
14
+ workspace: z.ZodNullable<z.ZodObject<{
15
+ id: z.ZodNullable<z.ZodString>;
16
+ name: z.ZodNullable<z.ZodString>;
17
+ }, z.core.$strip>>;
18
+ }, z.core.$strip>>;
19
+ pagination: z.ZodNullable<z.ZodObject<{
20
+ hasMore: z.ZodNullable<z.ZodBoolean>;
21
+ nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ }, z.core.$strip>>;
23
+ }, z.core.$strip>;
24
+ declare const prismaListProjects: import("@keystrokehq/action").WorkflowActionDefinition<{
25
+ limit?: number | undefined;
26
+ cursor?: string | undefined;
27
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
28
  //#endregion
8
29
  export { prismaListProjects };
9
30
  //# sourceMappingURL=list-projects.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-projects.d.cts","names":[],"sources":["../../src/actions/list-projects.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAG8C;AAAA,cAgBzE,wBAAA,EAA0B,CAAA,CAAE,UAGmC;AAAA,cAE/D,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-projects.d.cts","names":[],"sources":["../../src/actions/list-projects.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;cAmBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAKxB,kBAAA,gCAAkB,wBAAA"}
@@ -1,9 +1,30 @@
1
1
  import { z } from "zod";
2
2
 
3
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]>;
4
+ declare const PrismaListProjectsInput: z.ZodObject<{
5
+ limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
6
+ cursor: z.ZodOptional<z.ZodString>;
7
+ }, z.core.$strip>;
8
+ declare const PrismaListProjectsOutput: z.ZodObject<{
9
+ data: z.ZodArray<z.ZodObject<{
10
+ id: z.ZodNullable<z.ZodString>;
11
+ name: z.ZodNullable<z.ZodString>;
12
+ type: z.ZodNullable<z.ZodString>;
13
+ createdAt: z.ZodNullable<z.ZodString>;
14
+ workspace: z.ZodNullable<z.ZodObject<{
15
+ id: z.ZodNullable<z.ZodString>;
16
+ name: z.ZodNullable<z.ZodString>;
17
+ }, z.core.$strip>>;
18
+ }, z.core.$strip>>;
19
+ pagination: z.ZodNullable<z.ZodObject<{
20
+ hasMore: z.ZodNullable<z.ZodBoolean>;
21
+ nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ }, z.core.$strip>>;
23
+ }, z.core.$strip>;
24
+ declare const prismaListProjects: import("@keystrokehq/action").WorkflowActionDefinition<{
25
+ limit?: number | undefined;
26
+ cursor?: string | undefined;
27
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
28
  //#endregion
8
29
  export { prismaListProjects };
9
30
  //# sourceMappingURL=list-projects.d.mts.map
@@ -1 +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"}
1
+ {"version":3,"file":"list-projects.d.mts","names":[],"sources":["../../src/actions/list-projects.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;cAmBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAKxB,kBAAA,gCAAkB,wBAAA"}
@@ -6,18 +6,18 @@ const PrismaListProjectsInput = z.object({
6
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
7
  }).describe("Request parameters for listing Prisma projects with pagination support.");
8
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.")
9
+ id: z.string().describe("Unique workspace ID that contains this project (format: 'wksp_xxxxx').").nullable(),
10
+ name: z.string().describe("Human-readable workspace name for display purposes.").nullable()
11
11
  }).describe("Workspace information embedded in project objects.");
12
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')."),
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.").nullable(),
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.").nullable(),
15
+ type: z.string().describe("Object type, always 'project'. Provides consistency across API responses.").nullable(),
16
+ createdAt: z.string().describe("ISO 8601 creation timestamp in UTC (e.g., '2025-07-20T10:54:59.040Z').").nullable(),
17
17
  workspace: PrismaListProjects_WorkspaceInfoSchema.nullable()
18
18
  }).describe("Prisma project containing databases and environments.");
19
19
  const PrismaListProjects_PaginationSchema = z.object({
20
- hasMore: z.boolean().describe("True if more pages available. Check before making next request."),
20
+ hasMore: z.boolean().describe("True if more pages available. Check before making next request.").nullable(),
21
21
  nextCursor: z.string().describe("Opaque cursor for next page. Pass to subsequent requests. Null when no more pages.").nullable().optional()
22
22
  }).describe("Pagination metadata for cursor-based navigation through project results.");
23
23
  const prismaListProjects = action("PRISMA_LIST_PROJECTS", {
@@ -1 +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"}
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.object({\n limit: z.number().int().default(100).describe(\"Maximum number of projects to return in a single request. Defaults to 100 if not specified. Valid range is typically 1-500. Use smaller values (10-50) for faster responses when you only need a few projects, or larger values (100-500) when bulk processing. The API may return fewer results than requested if fewer projects exist.\").optional(),\n cursor: z.string().describe(\"Pagination cursor for retrieving the next page of results. Use the 'nextCursor' value from a previous response to get subsequent pages. Leave as None/null for the first page. This enables efficient pagination through large numbers of projects without missing or duplicating entries.\").optional(),\n}).describe(\"Request parameters for listing Prisma projects with pagination support.\");\nconst PrismaListProjects_WorkspaceInfoSchema = z.object({\n id: z.string().describe(\"Unique workspace ID that contains this project (format: 'wksp_xxxxx').\").nullable(),\n name: z.string().describe(\"Human-readable workspace name for display purposes.\").nullable(),\n}).describe(\"Workspace information embedded in project objects.\");\nconst PrismaListProjects_ProjectSchema = z.object({\n id: z.string().describe(\"Unique project identifier (format: 'prj_xxxxx'). Use this ID for all project-specific operations like getting details, creating databases, or managing environments.\").nullable(),\n name: z.string().describe(\"Human-readable project name set during creation. Used for display in UIs and identification. Can be modified by project admins.\").nullable(),\n type: z.string().describe(\"Object type, always 'project'. Provides consistency across API responses.\").nullable(),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp in UTC (e.g., '2025-07-20T10:54:59.040Z').\").nullable(),\n workspace: PrismaListProjects_WorkspaceInfoSchema.nullable(),\n}).describe(\"Prisma project containing databases and environments.\");\nconst PrismaListProjects_PaginationSchema = z.object({\n hasMore: z.boolean().describe(\"True if more pages available. Check before making next request.\").nullable(),\n nextCursor: z.string().describe(\"Opaque cursor for next page. Pass to subsequent requests. Null when no more pages.\").nullable().optional(),\n}).describe(\"Pagination metadata for cursor-based navigation through project results.\");\nexport const PrismaListProjectsOutput = z.object({\n data: z.array(PrismaListProjects_ProjectSchema).describe(\"Array of project objects accessible to the authenticated user. Projects are ordered by creation date with most recent first. Each project includes workspace context and creation metadata.\"),\n pagination: PrismaListProjects_PaginationSchema.nullable(),\n}).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,0BAA0B,EAAE,OAAO;CAC9C,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,yCAAyC,EAAE,OAAO;CACtD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CAC3G,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAM,mCAAmC,EAAE,OAAO;CAChD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,sKAAsK,CAAC,CAAC,SAAS;CACzM,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI,CAAC,CAAC,SAAS;CACtK,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CAChH,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CAClH,WAAW,uCAAuC,SAAS;AAC7D,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAM,sCAAsC,EAAE,OAAO;CACnD,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC1G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5I,CAAC,CAAC,CAAC,SAAS,0EAA0E;AAMtF,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVsC,EAAE,OAAO;EAC/C,MAAM,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,6LAA6L;EACtP,YAAY,oCAAoC,SAAS;CAC3D,CAAC,CAAC,CAAC,SAAS,+DAOF;AACV,CAAC"}
@@ -7,23 +7,23 @@ const PrismaListWorkspaceIntegrationsInput = zod.z.object({
7
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
8
  }).describe("Request parameters for listing integrations in a workspace.");
9
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.")
10
+ id: zod.z.string().describe("Unique client identifier for the OAuth application.").nullable(),
11
+ name: zod.z.string().describe("Human-readable name of the OAuth client application.").nullable(),
12
+ redirectUri: zod.z.string().describe("OAuth redirect URI where authorization responses are sent after user consent.").nullable()
13
13
  }).describe("OAuth client information for an integration.");
14
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.")
15
+ id: zod.z.string().describe("Unique user identifier who created the integration.").nullable(),
16
+ email: zod.z.string().describe("Email address of the user who created the integration. Used for auditing and contact purposes.").nullable()
17
17
  }).describe("User information for the creator of an integration.");
18
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."),
19
+ id: zod.z.string().describe("Unique integration identifier (format: 'int_xxxxx'). Use this ID for integration-specific operations like revocation or management.").nullable(),
20
20
  client: PrismaListWorkspaceIntegrations_ClientInfoSchema.nullable(),
21
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')."),
22
+ createdAt: zod.z.string().describe("ISO 8601 creation timestamp in UTC (e.g., '2025-07-20T11:08:16.761Z').").nullable(),
23
23
  createdByUser: PrismaListWorkspaceIntegrations_UserInfoSchema.nullable()
24
24
  }).describe("Workspace integration with OAuth client and scope details.");
25
25
  const PrismaListWorkspaceIntegrations_PaginationSchema = zod.z.object({
26
- hasMore: zod.z.boolean().describe("True if more pages available. Check before making next request."),
26
+ hasMore: zod.z.boolean().describe("True if more pages available. Check before making next request.").nullable(),
27
27
  nextCursor: zod.z.string().describe("Opaque cursor for next page. Pass to subsequent requests. Null when no more pages.").nullable().optional()
28
28
  }).describe("Pagination metadata for cursor-based navigation through integration results.");
29
29
  const PrismaListWorkspaceIntegrationsOutput = zod.z.object({
@@ -1 +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"}
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.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.object({\n id: z.string().describe(\"Unique client identifier for the OAuth application.\").nullable(),\n name: z.string().describe(\"Human-readable name of the OAuth client application.\").nullable(),\n redirectUri: z.string().describe(\"OAuth redirect URI where authorization responses are sent after user consent.\").nullable(),\n}).describe(\"OAuth client information for an integration.\");\nconst PrismaListWorkspaceIntegrations_UserInfoSchema = z.object({\n id: z.string().describe(\"Unique user identifier who created the integration.\").nullable(),\n email: z.string().describe(\"Email address of the user who created the integration. Used for auditing and contact purposes.\").nullable(),\n}).describe(\"User information for the creator of an integration.\");\nconst PrismaListWorkspaceIntegrations_IntegrationSchema = z.object({\n id: z.string().describe(\"Unique integration identifier (format: 'int_xxxxx'). Use this ID for integration-specific operations like revocation or management.\").nullable(),\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').\").nullable(),\n createdByUser: PrismaListWorkspaceIntegrations_UserInfoSchema.nullable(),\n}).describe(\"Workspace integration with OAuth client and scope details.\");\nconst PrismaListWorkspaceIntegrations_PaginationSchema = z.object({\n hasMore: z.boolean().describe(\"True if more pages available. Check before making next request.\").nullable(),\n nextCursor: z.string().describe(\"Opaque cursor for next page. Pass to subsequent requests. Null when no more pages.\").nullable().optional(),\n}).describe(\"Pagination metadata for cursor-based navigation through integration results.\");\nexport const PrismaListWorkspaceIntegrationsOutput = 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,uCAAuCA,IAAAA,EAAE,OAAO;CAC3D,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,mDAAmDA,IAAAA,EAAE,OAAO;CAChE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACxF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC3F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;AAC7H,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,iDAAiDA,IAAAA,EAAE,OAAO;CAC9D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACxF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;AACxI,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,oDAAoDA,IAAAA,EAAE,OAAO;CACjE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qIAAqI,CAAC,CAAC,SAAS;CACxK,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,CAAC,CAAC,SAAS;CAClH,eAAe,+CAA+C,SAAS;AACzE,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,mDAAmDA,IAAAA,EAAE,OAAO;CAChE,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC1G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5I,CAAC,CAAC,CAAC,SAAS,8EAA8E;AAC1F,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,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"}
@@ -1,9 +1,36 @@
1
1
  import { z } from "zod";
2
2
 
3
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]>;
4
+ declare const PrismaListWorkspaceIntegrationsInput: z.ZodObject<{
5
+ limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
6
+ cursor: z.ZodOptional<z.ZodString>;
7
+ workspaceId: z.ZodString;
8
+ }, z.core.$strip>;
9
+ declare const PrismaListWorkspaceIntegrationsOutput: z.ZodObject<{
10
+ data: z.ZodArray<z.ZodObject<{
11
+ id: z.ZodNullable<z.ZodString>;
12
+ client: z.ZodNullable<z.ZodObject<{
13
+ id: z.ZodNullable<z.ZodString>;
14
+ name: z.ZodNullable<z.ZodString>;
15
+ redirectUri: z.ZodNullable<z.ZodString>;
16
+ }, z.core.$strip>>;
17
+ scopes: z.ZodArray<z.ZodString>;
18
+ createdAt: z.ZodNullable<z.ZodString>;
19
+ createdByUser: z.ZodNullable<z.ZodObject<{
20
+ id: z.ZodNullable<z.ZodString>;
21
+ email: z.ZodNullable<z.ZodString>;
22
+ }, z.core.$strip>>;
23
+ }, z.core.$strip>>;
24
+ pagination: z.ZodNullable<z.ZodObject<{
25
+ hasMore: z.ZodNullable<z.ZodBoolean>;
26
+ nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ }, z.core.$strip>>;
28
+ }, z.core.$strip>;
29
+ declare const prismaListWorkspaceIntegrations: import("@keystrokehq/action").WorkflowActionDefinition<{
30
+ workspaceId: string;
31
+ limit?: number | undefined;
32
+ cursor?: string | undefined;
33
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
34
  //#endregion
8
35
  export { prismaListWorkspaceIntegrations };
9
36
  //# sourceMappingURL=list-workspace-integrations.d.cts.map
@@ -1 +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"}
1
+ {"version":3,"file":"list-workspace-integrations.d.cts","names":[],"sources":["../../src/actions/list-workspace-integrations.ts"],"mappings":";;;cAIa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;cAyBpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAKrC,+BAAA,gCAA+B,wBAAA"}
@@ -1,9 +1,36 @@
1
1
  import { z } from "zod";
2
2
 
3
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]>;
4
+ declare const PrismaListWorkspaceIntegrationsInput: z.ZodObject<{
5
+ limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
6
+ cursor: z.ZodOptional<z.ZodString>;
7
+ workspaceId: z.ZodString;
8
+ }, z.core.$strip>;
9
+ declare const PrismaListWorkspaceIntegrationsOutput: z.ZodObject<{
10
+ data: z.ZodArray<z.ZodObject<{
11
+ id: z.ZodNullable<z.ZodString>;
12
+ client: z.ZodNullable<z.ZodObject<{
13
+ id: z.ZodNullable<z.ZodString>;
14
+ name: z.ZodNullable<z.ZodString>;
15
+ redirectUri: z.ZodNullable<z.ZodString>;
16
+ }, z.core.$strip>>;
17
+ scopes: z.ZodArray<z.ZodString>;
18
+ createdAt: z.ZodNullable<z.ZodString>;
19
+ createdByUser: z.ZodNullable<z.ZodObject<{
20
+ id: z.ZodNullable<z.ZodString>;
21
+ email: z.ZodNullable<z.ZodString>;
22
+ }, z.core.$strip>>;
23
+ }, z.core.$strip>>;
24
+ pagination: z.ZodNullable<z.ZodObject<{
25
+ hasMore: z.ZodNullable<z.ZodBoolean>;
26
+ nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ }, z.core.$strip>>;
28
+ }, z.core.$strip>;
29
+ declare const prismaListWorkspaceIntegrations: import("@keystrokehq/action").WorkflowActionDefinition<{
30
+ workspaceId: string;
31
+ limit?: number | undefined;
32
+ cursor?: string | undefined;
33
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
34
  //#endregion
8
35
  export { prismaListWorkspaceIntegrations };
9
36
  //# sourceMappingURL=list-workspace-integrations.d.mts.map
@@ -1 +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"}
1
+ {"version":3,"file":"list-workspace-integrations.d.mts","names":[],"sources":["../../src/actions/list-workspace-integrations.ts"],"mappings":";;;cAIa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;cAyBpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAKrC,+BAAA,gCAA+B,wBAAA"}
@@ -7,23 +7,23 @@ const PrismaListWorkspaceIntegrationsInput = z.object({
7
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
8
  }).describe("Request parameters for listing integrations in a workspace.");
9
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.")
10
+ id: z.string().describe("Unique client identifier for the OAuth application.").nullable(),
11
+ name: z.string().describe("Human-readable name of the OAuth client application.").nullable(),
12
+ redirectUri: z.string().describe("OAuth redirect URI where authorization responses are sent after user consent.").nullable()
13
13
  }).describe("OAuth client information for an integration.");
14
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.")
15
+ id: z.string().describe("Unique user identifier who created the integration.").nullable(),
16
+ email: z.string().describe("Email address of the user who created the integration. Used for auditing and contact purposes.").nullable()
17
17
  }).describe("User information for the creator of an integration.");
18
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."),
19
+ id: z.string().describe("Unique integration identifier (format: 'int_xxxxx'). Use this ID for integration-specific operations like revocation or management.").nullable(),
20
20
  client: PrismaListWorkspaceIntegrations_ClientInfoSchema.nullable(),
21
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')."),
22
+ createdAt: z.string().describe("ISO 8601 creation timestamp in UTC (e.g., '2025-07-20T11:08:16.761Z').").nullable(),
23
23
  createdByUser: PrismaListWorkspaceIntegrations_UserInfoSchema.nullable()
24
24
  }).describe("Workspace integration with OAuth client and scope details.");
25
25
  const PrismaListWorkspaceIntegrations_PaginationSchema = z.object({
26
- hasMore: z.boolean().describe("True if more pages available. Check before making next request."),
26
+ hasMore: z.boolean().describe("True if more pages available. Check before making next request.").nullable(),
27
27
  nextCursor: z.string().describe("Opaque cursor for next page. Pass to subsequent requests. Null when no more pages.").nullable().optional()
28
28
  }).describe("Pagination metadata for cursor-based navigation through integration results.");
29
29
  const prismaListWorkspaceIntegrations = action("PRISMA_LIST_WORKSPACE_INTEGRATIONS", {