@keystrokehq/prisma 0.1.0 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (179) 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 +13 -13
  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 +13 -13
  10. package/dist/actions/create-connection.mjs.map +1 -1
  11. package/dist/actions/create-database.cjs +25 -25
  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 +25 -25
  18. package/dist/actions/create-database.mjs.map +1 -1
  19. package/dist/actions/create-project.cjs +30 -30
  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 +30 -30
  26. package/dist/actions/create-project.mjs.map +1 -1
  27. package/dist/actions/delete-connection.cjs +1 -1
  28. package/dist/actions/delete-connection.cjs.map +1 -1
  29. package/dist/actions/delete-connection.d.cts +7 -3
  30. package/dist/actions/delete-connection.d.cts.map +1 -1
  31. package/dist/actions/delete-connection.d.mts +7 -3
  32. package/dist/actions/delete-connection.d.mts.map +1 -1
  33. package/dist/actions/delete-connection.mjs +1 -1
  34. package/dist/actions/delete-connection.mjs.map +1 -1
  35. package/dist/actions/delete-database.cjs +1 -1
  36. package/dist/actions/delete-database.cjs.map +1 -1
  37. package/dist/actions/delete-database.d.cts +9 -3
  38. package/dist/actions/delete-database.d.cts.map +1 -1
  39. package/dist/actions/delete-database.d.mts +9 -3
  40. package/dist/actions/delete-database.d.mts.map +1 -1
  41. package/dist/actions/delete-database.mjs +1 -1
  42. package/dist/actions/delete-database.mjs.map +1 -1
  43. package/dist/actions/delete-project.cjs +1 -1
  44. package/dist/actions/delete-project.cjs.map +1 -1
  45. package/dist/actions/delete-project.d.cts +7 -3
  46. package/dist/actions/delete-project.d.cts.map +1 -1
  47. package/dist/actions/delete-project.d.mts +7 -3
  48. package/dist/actions/delete-project.d.mts.map +1 -1
  49. package/dist/actions/delete-project.mjs +1 -1
  50. package/dist/actions/delete-project.mjs.map +1 -1
  51. package/dist/actions/execute-sql-command.cjs +5 -5
  52. package/dist/actions/execute-sql-command.cjs.map +1 -1
  53. package/dist/actions/execute-sql-command.d.cts +17 -3
  54. package/dist/actions/execute-sql-command.d.cts.map +1 -1
  55. package/dist/actions/execute-sql-command.d.mts +17 -3
  56. package/dist/actions/execute-sql-command.d.mts.map +1 -1
  57. package/dist/actions/execute-sql-command.mjs +5 -5
  58. package/dist/actions/execute-sql-command.mjs.map +1 -1
  59. package/dist/actions/execute-sql-query.cjs +4 -4
  60. package/dist/actions/execute-sql-query.cjs.map +1 -1
  61. package/dist/actions/execute-sql-query.d.cts +21 -3
  62. package/dist/actions/execute-sql-query.d.cts.map +1 -1
  63. package/dist/actions/execute-sql-query.d.mts +21 -3
  64. package/dist/actions/execute-sql-query.d.mts.map +1 -1
  65. package/dist/actions/execute-sql-query.mjs +4 -4
  66. package/dist/actions/execute-sql-query.mjs.map +1 -1
  67. package/dist/actions/get-database-usage.cjs +9 -9
  68. package/dist/actions/get-database-usage.cjs.map +1 -1
  69. package/dist/actions/get-database-usage.d.cts +27 -3
  70. package/dist/actions/get-database-usage.d.cts.map +1 -1
  71. package/dist/actions/get-database-usage.d.mts +27 -3
  72. package/dist/actions/get-database-usage.d.mts.map +1 -1
  73. package/dist/actions/get-database-usage.mjs +9 -9
  74. package/dist/actions/get-database-usage.mjs.map +1 -1
  75. package/dist/actions/get-database.cjs +14 -14
  76. package/dist/actions/get-database.cjs.map +1 -1
  77. package/dist/actions/get-database.d.cts +24 -3
  78. package/dist/actions/get-database.d.cts.map +1 -1
  79. package/dist/actions/get-database.d.mts +24 -3
  80. package/dist/actions/get-database.d.mts.map +1 -1
  81. package/dist/actions/get-database.mjs +14 -14
  82. package/dist/actions/get-database.mjs.map +1 -1
  83. package/dist/actions/get-project.cjs +9 -9
  84. package/dist/actions/get-project.cjs.map +1 -1
  85. package/dist/actions/get-project.d.cts +18 -3
  86. package/dist/actions/get-project.d.cts.map +1 -1
  87. package/dist/actions/get-project.d.mts +18 -3
  88. package/dist/actions/get-project.d.mts.map +1 -1
  89. package/dist/actions/get-project.mjs +9 -9
  90. package/dist/actions/get-project.mjs.map +1 -1
  91. package/dist/actions/inspect-database-schema.cjs +12 -12
  92. package/dist/actions/inspect-database-schema.cjs.map +1 -1
  93. package/dist/actions/inspect-database-schema.d.cts +36 -3
  94. package/dist/actions/inspect-database-schema.d.cts.map +1 -1
  95. package/dist/actions/inspect-database-schema.d.mts +36 -3
  96. package/dist/actions/inspect-database-schema.d.mts.map +1 -1
  97. package/dist/actions/inspect-database-schema.mjs +12 -12
  98. package/dist/actions/inspect-database-schema.mjs.map +1 -1
  99. package/dist/actions/list-accelerate-regions.cjs +5 -5
  100. package/dist/actions/list-accelerate-regions.cjs.map +1 -1
  101. package/dist/actions/list-accelerate-regions.d.cts +9 -3
  102. package/dist/actions/list-accelerate-regions.d.cts.map +1 -1
  103. package/dist/actions/list-accelerate-regions.d.mts +9 -3
  104. package/dist/actions/list-accelerate-regions.d.mts.map +1 -1
  105. package/dist/actions/list-accelerate-regions.mjs +5 -5
  106. package/dist/actions/list-accelerate-regions.mjs.map +1 -1
  107. package/dist/actions/list-backups.cjs +12 -12
  108. package/dist/actions/list-backups.cjs.map +1 -1
  109. package/dist/actions/list-backups.d.cts +25 -3
  110. package/dist/actions/list-backups.d.cts.map +1 -1
  111. package/dist/actions/list-backups.d.mts +25 -3
  112. package/dist/actions/list-backups.d.mts.map +1 -1
  113. package/dist/actions/list-backups.mjs +12 -12
  114. package/dist/actions/list-backups.mjs.map +1 -1
  115. package/dist/actions/list-connections.cjs +11 -11
  116. package/dist/actions/list-connections.cjs.map +1 -1
  117. package/dist/actions/list-connections.d.cts +26 -3
  118. package/dist/actions/list-connections.d.cts.map +1 -1
  119. package/dist/actions/list-connections.d.mts +26 -3
  120. package/dist/actions/list-connections.d.mts.map +1 -1
  121. package/dist/actions/list-connections.mjs +11 -11
  122. package/dist/actions/list-connections.mjs.map +1 -1
  123. package/dist/actions/list-databases.cjs +16 -16
  124. package/dist/actions/list-databases.cjs.map +1 -1
  125. package/dist/actions/list-databases.d.cts +32 -3
  126. package/dist/actions/list-databases.d.cts.map +1 -1
  127. package/dist/actions/list-databases.d.mts +32 -3
  128. package/dist/actions/list-databases.d.mts.map +1 -1
  129. package/dist/actions/list-databases.mjs +16 -16
  130. package/dist/actions/list-databases.mjs.map +1 -1
  131. package/dist/actions/list-postgres-regions.cjs +6 -6
  132. package/dist/actions/list-postgres-regions.cjs.map +1 -1
  133. package/dist/actions/list-postgres-regions.d.cts +10 -3
  134. package/dist/actions/list-postgres-regions.d.cts.map +1 -1
  135. package/dist/actions/list-postgres-regions.d.mts +10 -3
  136. package/dist/actions/list-postgres-regions.d.mts.map +1 -1
  137. package/dist/actions/list-postgres-regions.mjs +6 -6
  138. package/dist/actions/list-postgres-regions.mjs.map +1 -1
  139. package/dist/actions/list-projects.cjs +11 -11
  140. package/dist/actions/list-projects.cjs.map +1 -1
  141. package/dist/actions/list-projects.d.cts +24 -3
  142. package/dist/actions/list-projects.d.cts.map +1 -1
  143. package/dist/actions/list-projects.d.mts +24 -3
  144. package/dist/actions/list-projects.d.mts.map +1 -1
  145. package/dist/actions/list-projects.mjs +11 -11
  146. package/dist/actions/list-projects.mjs.map +1 -1
  147. package/dist/actions/list-workspace-integrations.cjs +13 -13
  148. package/dist/actions/list-workspace-integrations.cjs.map +1 -1
  149. package/dist/actions/list-workspace-integrations.d.cts +30 -3
  150. package/dist/actions/list-workspace-integrations.d.cts.map +1 -1
  151. package/dist/actions/list-workspace-integrations.d.mts +30 -3
  152. package/dist/actions/list-workspace-integrations.d.mts.map +1 -1
  153. package/dist/actions/list-workspace-integrations.mjs +13 -13
  154. package/dist/actions/list-workspace-integrations.mjs.map +1 -1
  155. package/dist/actions/list-workspaces.cjs +8 -8
  156. package/dist/actions/list-workspaces.cjs.map +1 -1
  157. package/dist/actions/list-workspaces.d.cts +20 -3
  158. package/dist/actions/list-workspaces.d.cts.map +1 -1
  159. package/dist/actions/list-workspaces.d.mts +20 -3
  160. package/dist/actions/list-workspaces.d.mts.map +1 -1
  161. package/dist/actions/list-workspaces.mjs +8 -8
  162. package/dist/actions/list-workspaces.mjs.map +1 -1
  163. package/dist/actions/restore-backup.cjs +14 -14
  164. package/dist/actions/restore-backup.cjs.map +1 -1
  165. package/dist/actions/restore-backup.d.cts +28 -3
  166. package/dist/actions/restore-backup.d.cts.map +1 -1
  167. package/dist/actions/restore-backup.d.mts +28 -3
  168. package/dist/actions/restore-backup.d.mts.map +1 -1
  169. package/dist/actions/restore-backup.mjs +14 -14
  170. package/dist/actions/restore-backup.mjs.map +1 -1
  171. package/dist/actions/transfer-project.cjs +3 -3
  172. package/dist/actions/transfer-project.cjs.map +1 -1
  173. package/dist/actions/transfer-project.d.cts +12 -3
  174. package/dist/actions/transfer-project.d.cts.map +1 -1
  175. package/dist/actions/transfer-project.d.mts +12 -3
  176. package/dist/actions/transfer-project.d.mts.map +1 -1
  177. package/dist/actions/transfer-project.mjs +3 -3
  178. package/dist/actions/transfer-project.mjs.map +1 -1
  179. package/package.json +2 -2
@@ -9,33 +9,33 @@ const PrismaInspectDatabaseSchemaInput = z.object({
9
9
  includeIndexes: z.boolean().default(false).describe("Whether to include index information in the schema results. When true, shows primary keys, foreign keys, and other indexes. Useful for understanding table relationships and query optimization.").optional()
10
10
  }).describe("Request parameters for inspecting database schema structure.");
11
11
  const PrismaInspectDatabaseSchema_ColumnInfoSchema = z.object({
12
- dataType: z.string().describe("PostgreSQL data type (e.g., 'integer', 'text', 'timestamp with time zone')."),
13
- columnName: z.string().describe("Name of the database column."),
14
- isNullable: z.boolean().describe("Whether the column allows NULL values."),
12
+ dataType: z.string().describe("PostgreSQL data type (e.g., 'integer', 'text', 'timestamp with time zone').").nullable(),
13
+ columnName: z.string().describe("Name of the database column.").nullable(),
14
+ isNullable: z.boolean().describe("Whether the column allows NULL values.").nullable(),
15
15
  defaultValue: z.string().describe("Default value for the column, if any.").nullable().optional(),
16
16
  isForeignKey: z.boolean().default(false).describe("Whether this column is a foreign key.").nullable().optional(),
17
17
  isPrimaryKey: z.boolean().default(false).describe("Whether this column is part of the primary key.").nullable().optional(),
18
18
  referencedTable: z.string().describe("Referenced table name if this is a foreign key.").nullable().optional(),
19
19
  referencedColumn: z.string().describe("Referenced column name if this is a foreign key.").nullable().optional()
20
- }).describe("Database column information with type and constraints.");
20
+ }).passthrough().describe("Database column information with type and constraints.");
21
21
  const PrismaInspectDatabaseSchema_TableInfoSchema = z.object({
22
22
  columns: z.array(PrismaInspectDatabaseSchema_ColumnInfoSchema).describe("Array of column information for the table including types, constraints, and relationships."),
23
23
  rowCount: z.number().int().describe("Approximate number of rows in the table.").nullable().optional(),
24
- tableName: z.string().describe("Name of the database table."),
25
- tableType: z.string().describe("Type of table (e.g., 'BASE TABLE', 'VIEW').")
26
- }).describe("Database table information with columns and metadata.");
24
+ tableName: z.string().describe("Name of the database table.").nullable(),
25
+ tableType: z.string().describe("Type of table (e.g., 'BASE TABLE', 'VIEW').").nullable()
26
+ }).passthrough().describe("Database table information with columns and metadata.");
27
27
  const PrismaInspectDatabaseSchema_DatabaseSchemaInfoSchema = z.object({
28
28
  tables: z.array(PrismaInspectDatabaseSchema_TableInfoSchema).describe("Array of table information including columns and metadata."),
29
- schemaName: z.string().describe("Schema name (typically 'public' for PostgreSQL)."),
30
- totalTables: z.number().int().describe("Total number of tables in the database."),
31
- databaseName: z.string().describe("Name of the database.")
32
- }).describe("Complete database schema information.");
29
+ schemaName: z.string().describe("Schema name (typically 'public' for PostgreSQL).").nullable(),
30
+ totalTables: z.number().int().describe("Total number of tables in the database.").nullable(),
31
+ databaseName: z.string().describe("Name of the database.").nullable()
32
+ }).passthrough().describe("Complete database schema information.");
33
33
  const prismaInspectDatabaseSchema = action("PRISMA_INSPECT_DATABASE_SCHEMA", {
34
34
  slug: "prisma-inspect-database-schema",
35
35
  name: "Inspect Database Schema",
36
36
  description: "Inspect database schema structure and table information. Returns comprehensive schema details including tables, columns, data types, constraints, and relationships. Essential for understanding database structure before executing queries.",
37
37
  input: PrismaInspectDatabaseSchemaInput,
38
- output: z.object({ database_schema: PrismaInspectDatabaseSchema_DatabaseSchemaInfoSchema.nullable() }).describe("API response containing database schema information.")
38
+ output: z.object({ database_schema: PrismaInspectDatabaseSchema_DatabaseSchemaInfoSchema.nullable() }).passthrough().describe("API response containing database schema information.")
39
39
  });
40
40
  //#endregion
41
41
  export { prismaInspectDatabaseSchema };
@@ -1 +1 @@
1
- {"version":3,"file":"inspect-database-schema.mjs","names":[],"sources":["../../src/actions/inspect-database-schema.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaInspectDatabaseSchemaInput: z.ZodTypeAny = z.object({\n host: z.string().describe(\"Database host with port (format: 'db.prisma.io:5432'). Obtain this from create_connection action response field 'host'. This is the direct PostgreSQL endpoint for your Prisma Postgres database.\"),\n user: z.string().describe(\"Database username (tenant ID from Prisma). Obtain this from create_connection action response field 'user'. This is a unique identifier for your database tenant.\"),\n password: z.string().describe(\"Database password (secret key from Prisma). Obtain this from create_connection action response field 'pass'. Format is typically 'sk_xxxxx'. Keep this secure.\"),\n tableName: z.string().describe(\"Optional specific table name to inspect. If provided, returns detailed column information for that table only. If omitted, returns overview of all tables in the database. Use for focused schema analysis of specific tables.\").optional(),\n includeIndexes: z.boolean().default(false).describe(\"Whether to include index information in the schema results. When true, shows primary keys, foreign keys, and other indexes. Useful for understanding table relationships and query optimization.\").optional(),\n}).describe(\"Request parameters for inspecting database schema structure.\");\nconst PrismaInspectDatabaseSchema_ColumnInfoSchema: z.ZodTypeAny = z.object({\n dataType: z.string().describe(\"PostgreSQL data type (e.g., 'integer', 'text', 'timestamp with time zone').\"),\n columnName: z.string().describe(\"Name of the database column.\"),\n isNullable: z.boolean().describe(\"Whether the column allows NULL values.\"),\n defaultValue: z.string().describe(\"Default value for the column, if any.\").nullable().optional(),\n isForeignKey: z.boolean().default(false).describe(\"Whether this column is a foreign key.\").nullable().optional(),\n isPrimaryKey: z.boolean().default(false).describe(\"Whether this column is part of the primary key.\").nullable().optional(),\n referencedTable: z.string().describe(\"Referenced table name if this is a foreign key.\").nullable().optional(),\n referencedColumn: z.string().describe(\"Referenced column name if this is a foreign key.\").nullable().optional(),\n}).describe(\"Database column information with type and constraints.\");\nconst PrismaInspectDatabaseSchema_TableInfoSchema: z.ZodTypeAny = z.object({\n columns: z.array(PrismaInspectDatabaseSchema_ColumnInfoSchema).describe(\"Array of column information for the table including types, constraints, and relationships.\"),\n rowCount: z.number().int().describe(\"Approximate number of rows in the table.\").nullable().optional(),\n tableName: z.string().describe(\"Name of the database table.\"),\n tableType: z.string().describe(\"Type of table (e.g., 'BASE TABLE', 'VIEW').\"),\n}).describe(\"Database table information with columns and metadata.\");\nconst PrismaInspectDatabaseSchema_DatabaseSchemaInfoSchema: z.ZodTypeAny = z.object({\n tables: z.array(PrismaInspectDatabaseSchema_TableInfoSchema).describe(\"Array of table information including columns and metadata.\"),\n schemaName: z.string().describe(\"Schema name (typically 'public' for PostgreSQL).\"),\n totalTables: z.number().int().describe(\"Total number of tables in the database.\"),\n databaseName: z.string().describe(\"Name of the database.\"),\n}).describe(\"Complete database schema information.\");\nexport const PrismaInspectDatabaseSchemaOutput: z.ZodTypeAny = z.object({\n database_schema: PrismaInspectDatabaseSchema_DatabaseSchemaInfoSchema.nullable(),\n}).describe(\"API response containing database schema information.\");\n\nexport const prismaInspectDatabaseSchema = action(\"PRISMA_INSPECT_DATABASE_SCHEMA\", {\n slug: \"prisma-inspect-database-schema\",\n name: \"Inspect Database Schema\",\n description: \"Inspect database schema structure and table information. Returns comprehensive schema details including tables, columns, data types, constraints, and relationships. Essential for understanding database structure before executing queries.\",\n input: PrismaInspectDatabaseSchemaInput,\n output: PrismaInspectDatabaseSchemaOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAiD,EAAE,OAAO;CACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mMAAmM;CAC7N,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mKAAmK;CAC7L,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gKAAgK;CAC9L,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gOAAgO,CAAC,CAAC,SAAS;CAC1Q,gBAAgB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,kMAAkM,CAAC,CAAC,SAAS;AACnQ,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,+CAA6D,EAAE,OAAO;CAC1E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E;CAC3G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CAC9D,YAAY,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC;CACzE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,cAAc,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,cAAc,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzH,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,8CAA4D,EAAE,OAAO;CACzE,SAAS,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,4FAA4F;CACpK,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CAC5D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;AAC9E,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAM,uDAAqE,EAAE,OAAO;CAClF,QAAQ,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,4DAA4D;CAClI,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;CAClF,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC;CAChF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;AAC3D,CAAC,CAAC,CAAC,SAAS,uCAAuC;AAKnD,MAAa,8BAA8B,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT6D,EAAE,OAAO,EACtE,iBAAiB,qDAAqD,SAAS,EACjF,CAAC,CAAC,CAAC,SAAS,sDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"inspect-database-schema.mjs","names":[],"sources":["../../src/actions/inspect-database-schema.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaInspectDatabaseSchemaInput = z.object({\n host: z.string().describe(\"Database host with port (format: 'db.prisma.io:5432'). Obtain this from create_connection action response field 'host'. This is the direct PostgreSQL endpoint for your Prisma Postgres database.\"),\n user: z.string().describe(\"Database username (tenant ID from Prisma). Obtain this from create_connection action response field 'user'. This is a unique identifier for your database tenant.\"),\n password: z.string().describe(\"Database password (secret key from Prisma). Obtain this from create_connection action response field 'pass'. Format is typically 'sk_xxxxx'. Keep this secure.\"),\n tableName: z.string().describe(\"Optional specific table name to inspect. If provided, returns detailed column information for that table only. If omitted, returns overview of all tables in the database. Use for focused schema analysis of specific tables.\").optional(),\n includeIndexes: z.boolean().default(false).describe(\"Whether to include index information in the schema results. When true, shows primary keys, foreign keys, and other indexes. Useful for understanding table relationships and query optimization.\").optional(),\n}).describe(\"Request parameters for inspecting database schema structure.\");\nconst PrismaInspectDatabaseSchema_ColumnInfoSchema = z.object({\n dataType: z.string().describe(\"PostgreSQL data type (e.g., 'integer', 'text', 'timestamp with time zone').\").nullable(),\n columnName: z.string().describe(\"Name of the database column.\").nullable(),\n isNullable: z.boolean().describe(\"Whether the column allows NULL values.\").nullable(),\n defaultValue: z.string().describe(\"Default value for the column, if any.\").nullable().optional(),\n isForeignKey: z.boolean().default(false).describe(\"Whether this column is a foreign key.\").nullable().optional(),\n isPrimaryKey: z.boolean().default(false).describe(\"Whether this column is part of the primary key.\").nullable().optional(),\n referencedTable: z.string().describe(\"Referenced table name if this is a foreign key.\").nullable().optional(),\n referencedColumn: z.string().describe(\"Referenced column name if this is a foreign key.\").nullable().optional(),\n}).passthrough().describe(\"Database column information with type and constraints.\");\nconst PrismaInspectDatabaseSchema_TableInfoSchema = z.object({\n columns: z.array(PrismaInspectDatabaseSchema_ColumnInfoSchema).describe(\"Array of column information for the table including types, constraints, and relationships.\"),\n rowCount: z.number().int().describe(\"Approximate number of rows in the table.\").nullable().optional(),\n tableName: z.string().describe(\"Name of the database table.\").nullable(),\n tableType: z.string().describe(\"Type of table (e.g., 'BASE TABLE', 'VIEW').\").nullable(),\n}).passthrough().describe(\"Database table information with columns and metadata.\");\nconst PrismaInspectDatabaseSchema_DatabaseSchemaInfoSchema = z.object({\n tables: z.array(PrismaInspectDatabaseSchema_TableInfoSchema).describe(\"Array of table information including columns and metadata.\"),\n schemaName: z.string().describe(\"Schema name (typically 'public' for PostgreSQL).\").nullable(),\n totalTables: z.number().int().describe(\"Total number of tables in the database.\").nullable(),\n databaseName: z.string().describe(\"Name of the database.\").nullable(),\n}).passthrough().describe(\"Complete database schema information.\");\nexport const PrismaInspectDatabaseSchemaOutput = z.object({\n database_schema: PrismaInspectDatabaseSchema_DatabaseSchemaInfoSchema.nullable(),\n}).passthrough().describe(\"API response containing database schema information.\");\n\nexport const prismaInspectDatabaseSchema = action(\"PRISMA_INSPECT_DATABASE_SCHEMA\", {\n slug: \"prisma-inspect-database-schema\",\n name: \"Inspect Database Schema\",\n description: \"Inspect database schema structure and table information. Returns comprehensive schema details including tables, columns, data types, constraints, and relationships. Essential for understanding database structure before executing queries.\",\n input: PrismaInspectDatabaseSchemaInput,\n output: PrismaInspectDatabaseSchemaOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmC,EAAE,OAAO;CACvD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mMAAmM;CAC7N,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mKAAmK;CAC7L,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gKAAgK;CAC9L,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gOAAgO,CAAC,CAAC,SAAS;CAC1Q,gBAAgB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,kMAAkM,CAAC,CAAC,SAAS;AACnQ,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,+CAA+C,EAAE,OAAO;CAC5D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACtH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACzE,YAAY,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACpF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,cAAc,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,cAAc,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzH,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAAwD;AAClF,MAAM,8CAA8C,EAAE,OAAO;CAC3D,SAAS,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,4FAA4F;CACpK,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACvE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AACjF,MAAM,uDAAuD,EAAE,OAAO;CACpE,QAAQ,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,4DAA4D;CAClI,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC7F,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC3F,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;AACtE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAKjE,MAAa,8BAA8B,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT+C,EAAE,OAAO,EACxD,iBAAiB,qDAAqD,SAAS,EACjF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAOhB;AACV,CAAC"}
@@ -3,11 +3,11 @@ let zod = require("zod");
3
3
  //#region src/actions/list-accelerate-regions.ts
4
4
  const PrismaListAccelerateRegionsInput = zod.z.object({}).describe("Request parameters for listing Prisma Accelerate regions.");
5
5
  const PrismaListAccelerateRegions_AccelerateRegionSchema = zod.z.object({
6
- id: zod.z.string().describe("Unique region identifier (e.g., 'us-east-1', 'eu-west-1'). Use this ID when configuring Accelerate caching in 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 optimal cache placement near your users."),
8
- type: zod.z.string().describe("Object type, always 'region'. Provides consistency across API responses.")
9
- }).describe("Prisma Accelerate region object for caching service.");
10
- const PrismaListAccelerateRegionsOutput = zod.z.object({ data: zod.z.array(PrismaListAccelerateRegions_AccelerateRegionSchema).describe("Array of Prisma Accelerate regions for global database caching. Choose regions closest to your users for optimal performance. All listed regions are available for cache deployment.") }).describe("API response containing available Prisma Accelerate regions.");
6
+ id: zod.z.string().describe("Unique region identifier (e.g., 'us-east-1', 'eu-west-1'). Use this ID when configuring Accelerate caching in 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 optimal cache placement near your users.").nullable(),
8
+ type: zod.z.string().describe("Object type, always 'region'. Provides consistency across API responses.").nullable()
9
+ }).passthrough().describe("Prisma Accelerate region object for caching service.");
10
+ const PrismaListAccelerateRegionsOutput = zod.z.object({ data: zod.z.array(PrismaListAccelerateRegions_AccelerateRegionSchema).describe("Array of Prisma Accelerate regions for global database caching. Choose regions closest to your users for optimal performance. All listed regions are available for cache deployment.") }).passthrough().describe("API response containing available Prisma Accelerate regions.");
11
11
  const prismaListAccelerateRegions = require_action.action("PRISMA_LIST_ACCELERATE_REGIONS", {
12
12
  slug: "prisma-list-accelerate-regions",
13
13
  name: "List Prisma Accelerate Regions",
@@ -1 +1 @@
1
- {"version":3,"file":"list-accelerate-regions.cjs","names":["z","action"],"sources":["../../src/actions/list-accelerate-regions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaListAccelerateRegionsInput: z.ZodTypeAny = z.object({}).describe(\"Request parameters for listing Prisma Accelerate regions.\");\nconst PrismaListAccelerateRegions_AccelerateRegionSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique region identifier (e.g., 'us-east-1', 'eu-west-1'). Use this ID when configuring Accelerate caching in the desired region.\"),\n name: z.string().describe(\"Human-readable region name (e.g., 'US East (N. Virginia)', 'Europe (Ireland)'). Displays geographical location for optimal cache placement near your users.\"),\n type: z.string().describe(\"Object type, always 'region'. Provides consistency across API responses.\"),\n}).describe(\"Prisma Accelerate region object for caching service.\");\nexport const PrismaListAccelerateRegionsOutput: z.ZodTypeAny = z.object({\n data: z.array(PrismaListAccelerateRegions_AccelerateRegionSchema).describe(\"Array of Prisma Accelerate regions for global database caching. Choose regions closest to your users for optimal performance. All listed regions are available for cache deployment.\"),\n}).describe(\"API response containing available Prisma Accelerate regions.\");\n\nexport const prismaListAccelerateRegions = action(\"PRISMA_LIST_ACCELERATE_REGIONS\", {\n slug: \"prisma-list-accelerate-regions\",\n name: \"List Prisma Accelerate Regions\",\n description: \"Retrieve all available regions for Prisma Accelerate. Returns regions where Accelerate global database cache can be deployed. Use for cache region selection to minimize latency for your users.\",\n input: PrismaListAccelerateRegionsInput,\n output: PrismaListAccelerateRegionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAiDA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2DAA2D;AAC/I,MAAM,qDAAmEA,IAAAA,EAAE,OAAO;CAChF,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mIAAmI;CAC3J,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6JAA6J;CACvL,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E;AACtG,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAa,oCAAkDA,IAAAA,EAAE,OAAO,EACtE,MAAMA,IAAAA,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,sLAAsL,EACnQ,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAE1E,MAAa,8BAA8BC,eAAAA,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-accelerate-regions.cjs","names":["z","action"],"sources":["../../src/actions/list-accelerate-regions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaListAccelerateRegionsInput = z.object({}).describe(\"Request parameters for listing Prisma Accelerate regions.\");\nconst PrismaListAccelerateRegions_AccelerateRegionSchema = z.object({\n id: z.string().describe(\"Unique region identifier (e.g., 'us-east-1', 'eu-west-1'). Use this ID when configuring Accelerate caching in 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 optimal cache placement near your users.\").nullable(),\n type: z.string().describe(\"Object type, always 'region'. Provides consistency across API responses.\").nullable(),\n}).passthrough().describe(\"Prisma Accelerate region object for caching service.\");\nexport const PrismaListAccelerateRegionsOutput = z.object({\n data: z.array(PrismaListAccelerateRegions_AccelerateRegionSchema).describe(\"Array of Prisma Accelerate regions for global database caching. Choose regions closest to your users for optimal performance. All listed regions are available for cache deployment.\"),\n}).passthrough().describe(\"API response containing available Prisma Accelerate regions.\");\n\nexport const prismaListAccelerateRegions = action(\"PRISMA_LIST_ACCELERATE_REGIONS\", {\n slug: \"prisma-list-accelerate-regions\",\n name: \"List Prisma Accelerate Regions\",\n description: \"Retrieve all available regions for Prisma Accelerate. Returns regions where Accelerate global database cache can be deployed. Use for cache region selection to minimize latency for your users.\",\n input: PrismaListAccelerateRegionsInput,\n output: PrismaListAccelerateRegionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACjI,MAAM,qDAAqDA,IAAAA,EAAE,OAAO;CAClE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mIAAmI,CAAC,CAAC,SAAS;CACtK,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6JAA6J,CAAC,CAAC,SAAS;CAClM,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAAsD;AAChF,MAAa,oCAAoCA,IAAAA,EAAE,OAAO,EACxD,MAAMA,IAAAA,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,sLAAsL,EACnQ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8DAA8D;AAExF,MAAa,8BAA8BC,eAAAA,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,15 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-accelerate-regions.d.ts
4
- declare const PrismaListAccelerateRegionsInput: z.ZodTypeAny;
5
- declare const PrismaListAccelerateRegionsOutput: z.ZodTypeAny;
6
- declare const prismaListAccelerateRegions: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PrismaListAccelerateRegionsInput: z.ZodObject<{}, z.core.$strip>;
5
+ declare const PrismaListAccelerateRegionsOutput: 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
+ }, z.core.$loose>>;
11
+ }, z.core.$loose>;
12
+ declare const prismaListAccelerateRegions: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
13
  //#endregion
8
14
  export { prismaListAccelerateRegions };
9
15
  //# sourceMappingURL=list-accelerate-regions.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-accelerate-regions.d.cts","names":[],"sources":["../../src/actions/list-accelerate-regions.ts"],"mappings":";;;cAIa,gCAAA,EAAkC,CAAA,CAAE,UAA+F;AAAA,cAMnI,iCAAA,EAAmC,CAAA,CAAE,UAEyB;AAAA,cAE9D,2BAAA,gCAA2B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-accelerate-regions.d.cts","names":[],"sources":["../../src/actions/list-accelerate-regions.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAMhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;cAIjC,2BAAA,gCAA2B,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -1,9 +1,15 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-accelerate-regions.d.ts
4
- declare const PrismaListAccelerateRegionsInput: z.ZodTypeAny;
5
- declare const PrismaListAccelerateRegionsOutput: z.ZodTypeAny;
6
- declare const prismaListAccelerateRegions: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PrismaListAccelerateRegionsInput: z.ZodObject<{}, z.core.$strip>;
5
+ declare const PrismaListAccelerateRegionsOutput: 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
+ }, z.core.$loose>>;
11
+ }, z.core.$loose>;
12
+ declare const prismaListAccelerateRegions: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
13
  //#endregion
8
14
  export { prismaListAccelerateRegions };
9
15
  //# sourceMappingURL=list-accelerate-regions.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-accelerate-regions.d.mts","names":[],"sources":["../../src/actions/list-accelerate-regions.ts"],"mappings":";;;cAIa,gCAAA,EAAkC,CAAA,CAAE,UAA+F;AAAA,cAMnI,iCAAA,EAAmC,CAAA,CAAE,UAEyB;AAAA,cAE9D,2BAAA,gCAA2B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-accelerate-regions.d.mts","names":[],"sources":["../../src/actions/list-accelerate-regions.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAMhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;cAIjC,2BAAA,gCAA2B,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -3,16 +3,16 @@ import { z } from "zod";
3
3
  //#region src/actions/list-accelerate-regions.ts
4
4
  const PrismaListAccelerateRegionsInput = z.object({}).describe("Request parameters for listing Prisma Accelerate regions.");
5
5
  const PrismaListAccelerateRegions_AccelerateRegionSchema = z.object({
6
- id: z.string().describe("Unique region identifier (e.g., 'us-east-1', 'eu-west-1'). Use this ID when configuring Accelerate caching in the desired region."),
7
- name: z.string().describe("Human-readable region name (e.g., 'US East (N. Virginia)', 'Europe (Ireland)'). Displays geographical location for optimal cache placement near your users."),
8
- type: z.string().describe("Object type, always 'region'. Provides consistency across API responses.")
9
- }).describe("Prisma Accelerate region object for caching service.");
6
+ id: z.string().describe("Unique region identifier (e.g., 'us-east-1', 'eu-west-1'). Use this ID when configuring Accelerate caching in 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 optimal cache placement near your users.").nullable(),
8
+ type: z.string().describe("Object type, always 'region'. Provides consistency across API responses.").nullable()
9
+ }).passthrough().describe("Prisma Accelerate region object for caching service.");
10
10
  const prismaListAccelerateRegions = action("PRISMA_LIST_ACCELERATE_REGIONS", {
11
11
  slug: "prisma-list-accelerate-regions",
12
12
  name: "List Prisma Accelerate Regions",
13
13
  description: "Retrieve all available regions for Prisma Accelerate. Returns regions where Accelerate global database cache can be deployed. Use for cache region selection to minimize latency for your users.",
14
14
  input: PrismaListAccelerateRegionsInput,
15
- output: z.object({ data: z.array(PrismaListAccelerateRegions_AccelerateRegionSchema).describe("Array of Prisma Accelerate regions for global database caching. Choose regions closest to your users for optimal performance. All listed regions are available for cache deployment.") }).describe("API response containing available Prisma Accelerate regions.")
15
+ output: z.object({ data: z.array(PrismaListAccelerateRegions_AccelerateRegionSchema).describe("Array of Prisma Accelerate regions for global database caching. Choose regions closest to your users for optimal performance. All listed regions are available for cache deployment.") }).passthrough().describe("API response containing available Prisma Accelerate regions.")
16
16
  });
17
17
  //#endregion
18
18
  export { prismaListAccelerateRegions };
@@ -1 +1 @@
1
- {"version":3,"file":"list-accelerate-regions.mjs","names":[],"sources":["../../src/actions/list-accelerate-regions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaListAccelerateRegionsInput: z.ZodTypeAny = z.object({}).describe(\"Request parameters for listing Prisma Accelerate regions.\");\nconst PrismaListAccelerateRegions_AccelerateRegionSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique region identifier (e.g., 'us-east-1', 'eu-west-1'). Use this ID when configuring Accelerate caching in the desired region.\"),\n name: z.string().describe(\"Human-readable region name (e.g., 'US East (N. Virginia)', 'Europe (Ireland)'). Displays geographical location for optimal cache placement near your users.\"),\n type: z.string().describe(\"Object type, always 'region'. Provides consistency across API responses.\"),\n}).describe(\"Prisma Accelerate region object for caching service.\");\nexport const PrismaListAccelerateRegionsOutput: z.ZodTypeAny = z.object({\n data: z.array(PrismaListAccelerateRegions_AccelerateRegionSchema).describe(\"Array of Prisma Accelerate regions for global database caching. Choose regions closest to your users for optimal performance. All listed regions are available for cache deployment.\"),\n}).describe(\"API response containing available Prisma Accelerate regions.\");\n\nexport const prismaListAccelerateRegions = action(\"PRISMA_LIST_ACCELERATE_REGIONS\", {\n slug: \"prisma-list-accelerate-regions\",\n name: \"List Prisma Accelerate Regions\",\n description: \"Retrieve all available regions for Prisma Accelerate. Returns regions where Accelerate global database cache can be deployed. Use for cache region selection to minimize latency for your users.\",\n input: PrismaListAccelerateRegionsInput,\n output: PrismaListAccelerateRegionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAiD,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2DAA2D;AAC/I,MAAM,qDAAmE,EAAE,OAAO;CAChF,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,mIAAmI;CAC3J,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6JAA6J;CACvL,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E;AACtG,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAKlE,MAAa,8BAA8B,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT6D,EAAE,OAAO,EACtE,MAAM,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,sLAAsL,EACnQ,CAAC,CAAC,CAAC,SAAS,8DAOF;AACV,CAAC"}
1
+ {"version":3,"file":"list-accelerate-regions.mjs","names":[],"sources":["../../src/actions/list-accelerate-regions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaListAccelerateRegionsInput = z.object({}).describe(\"Request parameters for listing Prisma Accelerate regions.\");\nconst PrismaListAccelerateRegions_AccelerateRegionSchema = z.object({\n id: z.string().describe(\"Unique region identifier (e.g., 'us-east-1', 'eu-west-1'). Use this ID when configuring Accelerate caching in 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 optimal cache placement near your users.\").nullable(),\n type: z.string().describe(\"Object type, always 'region'. Provides consistency across API responses.\").nullable(),\n}).passthrough().describe(\"Prisma Accelerate region object for caching service.\");\nexport const PrismaListAccelerateRegionsOutput = z.object({\n data: z.array(PrismaListAccelerateRegions_AccelerateRegionSchema).describe(\"Array of Prisma Accelerate regions for global database caching. Choose regions closest to your users for optimal performance. All listed regions are available for cache deployment.\"),\n}).passthrough().describe(\"API response containing available Prisma Accelerate regions.\");\n\nexport const prismaListAccelerateRegions = action(\"PRISMA_LIST_ACCELERATE_REGIONS\", {\n slug: \"prisma-list-accelerate-regions\",\n name: \"List Prisma Accelerate Regions\",\n description: \"Retrieve all available regions for Prisma Accelerate. Returns regions where Accelerate global database cache can be deployed. Use for cache region selection to minimize latency for your users.\",\n input: PrismaListAccelerateRegionsInput,\n output: PrismaListAccelerateRegionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACjI,MAAM,qDAAqD,EAAE,OAAO;CAClE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,mIAAmI,CAAC,CAAC,SAAS;CACtK,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6JAA6J,CAAC,CAAC,SAAS;CAClM,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAAsD;AAKhF,MAAa,8BAA8B,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT+C,EAAE,OAAO,EACxD,MAAM,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,sLAAsL,EACnQ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8DAOhB;AACV,CAAC"}
@@ -6,23 +6,23 @@ const PrismaListBackupsInput = zod.z.object({
6
6
  databaseId: zod.z.string().describe("Unique database identifier to list backups for (format: 'db_xxxxx'). Must be a database the authenticated user has access to. All available backups for this database will be returned.")
7
7
  }).describe("Request parameters for listing backups for a database.");
8
8
  const PrismaListBackups_BackupSchema = zod.z.object({
9
- id: zod.z.string().describe("Unique backup identifier used for restoration operations. Use this ID with restore backup action to recover data to a new database."),
10
- size: zod.z.number().int().describe("Backup size in bytes. Use for storage monitoring and restoration planning. Larger backups may take longer to restore."),
11
- type: zod.z.string().describe("Object type, always 'backup'. Provides consistency across API responses."),
12
- status: zod.z.string().describe("Current backup status indicating availability for restoration. Values: 'completed' (ready for restore), 'running' (backup in progress), 'failed' (backup error), 'expired' (past retention period)."),
13
- createdAt: zod.z.string().describe("ISO 8601 timestamp when backup was created (e.g., '2025-07-20T11:09:30.705Z')."),
14
- backupType: zod.z.string().describe("Type of backup performed. Common values: 'full' (complete database), 'incremental' (changes only), 'scheduled' (automatic backup).")
15
- }).describe("Database backup object with restoration details.");
16
- const PrismaListBackups_BackupMetaSchema = zod.z.object({ backupRetentionDays: zod.z.number().int().describe("Number of days backups are retained before automatic deletion. Backups older than this period are automatically purged. Use for planning backup strategies and compliance requirements.") }).describe("Backup metadata and retention policy information.");
9
+ id: zod.z.string().describe("Unique backup identifier used for restoration operations. Use this ID with restore backup action to recover data to a new database.").nullable(),
10
+ size: zod.z.number().int().describe("Backup size in bytes. Use for storage monitoring and restoration planning. Larger backups may take longer to restore.").nullable(),
11
+ type: zod.z.string().describe("Object type, always 'backup'. Provides consistency across API responses.").nullable(),
12
+ status: zod.z.string().describe("Current backup status indicating availability for restoration. Values: 'completed' (ready for restore), 'running' (backup in progress), 'failed' (backup error), 'expired' (past retention period).").nullable(),
13
+ createdAt: zod.z.string().describe("ISO 8601 timestamp when backup was created (e.g., '2025-07-20T11:09:30.705Z').").nullable(),
14
+ backupType: zod.z.string().describe("Type of backup performed. Common values: 'full' (complete database), 'incremental' (changes only), 'scheduled' (automatic backup).").nullable()
15
+ }).passthrough().describe("Database backup object with restoration details.");
16
+ const PrismaListBackups_BackupMetaSchema = zod.z.object({ backupRetentionDays: zod.z.number().int().describe("Number of days backups are retained before automatic deletion. Backups older than this period are automatically purged. Use for planning backup strategies and compliance requirements.").nullable() }).passthrough().describe("Backup metadata and retention policy information.");
17
17
  const PrismaListBackups_BackupPaginationSchema = zod.z.object({
18
- limit: zod.z.number().int().describe("Current limit applied to the backup listing request."),
19
- hasMore: zod.z.boolean().describe("True if more backups are available beyond the current limit.")
20
- }).describe("Pagination metadata for backup listing.");
18
+ limit: zod.z.number().int().describe("Current limit applied to the backup listing request.").nullable(),
19
+ hasMore: zod.z.boolean().describe("True if more backups are available beyond the current limit.").nullable()
20
+ }).passthrough().describe("Pagination metadata for backup listing.");
21
21
  const PrismaListBackupsOutput = zod.z.object({
22
22
  data: zod.z.array(PrismaListBackups_BackupSchema).describe("Array of backup objects for the specified database. Backups are ordered by creation date with most recent first. Only includes backups available for restoration within retention period."),
23
23
  meta: PrismaListBackups_BackupMetaSchema.nullable(),
24
24
  pagination: PrismaListBackups_BackupPaginationSchema.nullable()
25
- }).describe("API response containing backup list, metadata, and pagination.");
25
+ }).passthrough().describe("API response containing backup list, metadata, and pagination.");
26
26
  const prismaListBackups = require_action.action("PRISMA_LIST_BACKUPS", {
27
27
  slug: "prisma-list-backups",
28
28
  name: "List Database Backups",
@@ -1 +1 @@
1
- {"version":3,"file":"list-backups.cjs","names":["z","action"],"sources":["../../src/actions/list-backups.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaListBackupsInput: z.ZodTypeAny = z.object({\n limit: z.number().int().default(25).describe(\"Maximum number of backups to return in a single request. Defaults to 25 if not specified. Typical range is 1-100. Use smaller values (10-25) for UI pagination, larger values (50-100) for processing.\").optional(),\n databaseId: z.string().describe(\"Unique database identifier to list backups for (format: 'db_xxxxx'). Must be a database the authenticated user has access to. All available backups for this database will be returned.\"),\n}).describe(\"Request parameters for listing backups for a database.\");\nconst PrismaListBackups_BackupSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique backup identifier used for restoration operations. Use this ID with restore backup action to recover data to a new database.\"),\n size: z.number().int().describe(\"Backup size in bytes. Use for storage monitoring and restoration planning. Larger backups may take longer to restore.\"),\n type: z.string().describe(\"Object type, always 'backup'. Provides consistency across API responses.\"),\n status: z.string().describe(\"Current backup status indicating availability for restoration. Values: 'completed' (ready for restore), 'running' (backup in progress), 'failed' (backup error), 'expired' (past retention period).\"),\n createdAt: z.string().describe(\"ISO 8601 timestamp when backup was created (e.g., '2025-07-20T11:09:30.705Z').\"),\n backupType: z.string().describe(\"Type of backup performed. Common values: 'full' (complete database), 'incremental' (changes only), 'scheduled' (automatic backup).\"),\n}).describe(\"Database backup object with restoration details.\");\nconst PrismaListBackups_BackupMetaSchema: z.ZodTypeAny = z.object({\n backupRetentionDays: z.number().int().describe(\"Number of days backups are retained before automatic deletion. Backups older than this period are automatically purged. Use for planning backup strategies and compliance requirements.\"),\n}).describe(\"Backup metadata and retention policy information.\");\nconst PrismaListBackups_BackupPaginationSchema: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Current limit applied to the backup listing request.\"),\n hasMore: z.boolean().describe(\"True if more backups are available beyond the current limit.\"),\n}).describe(\"Pagination metadata for backup listing.\");\nexport const PrismaListBackupsOutput: z.ZodTypeAny = z.object({\n data: z.array(PrismaListBackups_BackupSchema).describe(\"Array of backup objects for the specified database. Backups are ordered by creation date with most recent first. Only includes backups available for restoration within retention period.\"),\n meta: PrismaListBackups_BackupMetaSchema.nullable(),\n pagination: PrismaListBackups_BackupPaginationSchema.nullable(),\n}).describe(\"API response containing backup list, metadata, and pagination.\");\n\nexport const prismaListBackups = action(\"PRISMA_LIST_BACKUPS\", {\n slug: \"prisma-list-backups\",\n name: \"List Database Backups\",\n description: \"Retrieve list of available backups for a specific database. Returns backup details including status, size, type, and restoration readiness. Use for backup monitoring, restoration planning, and compliance auditing.\",\n input: PrismaListBackupsInput,\n output: PrismaListBackupsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAuCA,IAAAA,EAAE,OAAO;CAC3D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,wMAAwM,CAAC,CAAC,SAAS;CAChQ,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yLAAyL;AAC3N,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,iCAA+CA,IAAAA,EAAE,OAAO;CAC5D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qIAAqI;CAC7J,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uHAAuH;CACvJ,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E;CACpG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qMAAqM;CACjO,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF;CAC/G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI;AACtK,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,qCAAmDA,IAAAA,EAAE,OAAO,EAChE,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yLAAyL,EAC1O,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,2CAAyDA,IAAAA,EAAE,OAAO;CACtE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD;CACvF,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,8DAA8D;AAC9F,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAa,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,MAAMA,IAAAA,EAAE,MAAM,8BAA8B,CAAC,CAAC,SAAS,2LAA2L;CAClP,MAAM,mCAAmC,SAAS;CAClD,YAAY,yCAAyC,SAAS;AAChE,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAE5E,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-backups.cjs","names":["z","action"],"sources":["../../src/actions/list-backups.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaListBackupsInput = z.object({\n limit: z.number().int().default(25).describe(\"Maximum number of backups to return in a single request. Defaults to 25 if not specified. Typical range is 1-100. Use smaller values (10-25) for UI pagination, larger values (50-100) for processing.\").optional(),\n databaseId: z.string().describe(\"Unique database identifier to list backups for (format: 'db_xxxxx'). Must be a database the authenticated user has access to. All available backups for this database will be returned.\"),\n}).describe(\"Request parameters for listing backups for a database.\");\nconst PrismaListBackups_BackupSchema = z.object({\n id: z.string().describe(\"Unique backup identifier used for restoration operations. Use this ID with restore backup action to recover data to a new database.\").nullable(),\n size: z.number().int().describe(\"Backup size in bytes. Use for storage monitoring and restoration planning. Larger backups may take longer to restore.\").nullable(),\n type: z.string().describe(\"Object type, always 'backup'. Provides consistency across API responses.\").nullable(),\n status: z.string().describe(\"Current backup status indicating availability for restoration. Values: 'completed' (ready for restore), 'running' (backup in progress), 'failed' (backup error), 'expired' (past retention period).\").nullable(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when backup was created (e.g., '2025-07-20T11:09:30.705Z').\").nullable(),\n backupType: z.string().describe(\"Type of backup performed. Common values: 'full' (complete database), 'incremental' (changes only), 'scheduled' (automatic backup).\").nullable(),\n}).passthrough().describe(\"Database backup object with restoration details.\");\nconst PrismaListBackups_BackupMetaSchema = z.object({\n backupRetentionDays: z.number().int().describe(\"Number of days backups are retained before automatic deletion. Backups older than this period are automatically purged. Use for planning backup strategies and compliance requirements.\").nullable(),\n}).passthrough().describe(\"Backup metadata and retention policy information.\");\nconst PrismaListBackups_BackupPaginationSchema = z.object({\n limit: z.number().int().describe(\"Current limit applied to the backup listing request.\").nullable(),\n hasMore: z.boolean().describe(\"True if more backups are available beyond the current limit.\").nullable(),\n}).passthrough().describe(\"Pagination metadata for backup listing.\");\nexport const PrismaListBackupsOutput = z.object({\n data: z.array(PrismaListBackups_BackupSchema).describe(\"Array of backup objects for the specified database. Backups are ordered by creation date with most recent first. Only includes backups available for restoration within retention period.\"),\n meta: PrismaListBackups_BackupMetaSchema.nullable(),\n pagination: PrismaListBackups_BackupPaginationSchema.nullable(),\n}).passthrough().describe(\"API response containing backup list, metadata, and pagination.\");\n\nexport const prismaListBackups = action(\"PRISMA_LIST_BACKUPS\", {\n slug: \"prisma-list-backups\",\n name: \"List Database Backups\",\n description: \"Retrieve list of available backups for a specific database. Returns backup details including status, size, type, and restoration readiness. Use for backup monitoring, restoration planning, and compliance auditing.\",\n input: PrismaListBackupsInput,\n output: PrismaListBackupsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,wMAAwM,CAAC,CAAC,SAAS;CAChQ,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yLAAyL;AAC3N,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,iCAAiCA,IAAAA,EAAE,OAAO;CAC9C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qIAAqI,CAAC,CAAC,SAAS;CACxK,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uHAAuH,CAAC,CAAC,SAAS;CAClK,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CAC/G,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qMAAqM,CAAC,CAAC,SAAS;CAC5O,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CAC1H,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS;AACjL,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAC5E,MAAM,qCAAqCA,IAAAA,EAAE,OAAO,EAClD,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yLAAyL,CAAC,CAAC,SAAS,EACrP,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAC7E,MAAM,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAClG,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AACnE,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,MAAM,8BAA8B,CAAC,CAAC,SAAS,2LAA2L;CAClP,MAAM,mCAAmC,SAAS;CAClD,YAAY,yCAAyC,SAAS;AAChE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gEAAgE;AAE1F,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,31 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-backups.d.ts
4
- declare const PrismaListBackupsInput: z.ZodTypeAny;
5
- declare const PrismaListBackupsOutput: z.ZodTypeAny;
6
- declare const prismaListBackups: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PrismaListBackupsInput: z.ZodObject<{
5
+ limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
6
+ databaseId: z.ZodString;
7
+ }, z.core.$strip>;
8
+ declare const PrismaListBackupsOutput: z.ZodObject<{
9
+ data: z.ZodArray<z.ZodObject<{
10
+ id: z.ZodNullable<z.ZodString>;
11
+ size: z.ZodNullable<z.ZodNumber>;
12
+ type: z.ZodNullable<z.ZodString>;
13
+ status: z.ZodNullable<z.ZodString>;
14
+ createdAt: z.ZodNullable<z.ZodString>;
15
+ backupType: z.ZodNullable<z.ZodString>;
16
+ }, z.core.$loose>>;
17
+ meta: z.ZodNullable<z.ZodObject<{
18
+ backupRetentionDays: z.ZodNullable<z.ZodNumber>;
19
+ }, z.core.$loose>>;
20
+ pagination: z.ZodNullable<z.ZodObject<{
21
+ limit: z.ZodNullable<z.ZodNumber>;
22
+ hasMore: z.ZodNullable<z.ZodBoolean>;
23
+ }, z.core.$loose>>;
24
+ }, z.core.$loose>;
25
+ declare const prismaListBackups: import("@keystrokehq/action").WorkflowActionDefinition<{
26
+ databaseId: string;
27
+ limit?: number | undefined;
28
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
29
  //#endregion
8
30
  export { prismaListBackups };
9
31
  //# sourceMappingURL=list-backups.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-backups.d.cts","names":[],"sources":["../../src/actions/list-backups.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAG8B;AAAA,cAgBxD,uBAAA,EAAyB,CAAA,CAAE,UAIqC;AAAA,cAEhE,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-backups.d.cts","names":[],"sources":["../../src/actions/list-backups.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;cAmBtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAMvB,iBAAA,gCAAiB,wBAAA"}
@@ -1,9 +1,31 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-backups.d.ts
4
- declare const PrismaListBackupsInput: z.ZodTypeAny;
5
- declare const PrismaListBackupsOutput: z.ZodTypeAny;
6
- declare const prismaListBackups: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PrismaListBackupsInput: z.ZodObject<{
5
+ limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
6
+ databaseId: z.ZodString;
7
+ }, z.core.$strip>;
8
+ declare const PrismaListBackupsOutput: z.ZodObject<{
9
+ data: z.ZodArray<z.ZodObject<{
10
+ id: z.ZodNullable<z.ZodString>;
11
+ size: z.ZodNullable<z.ZodNumber>;
12
+ type: z.ZodNullable<z.ZodString>;
13
+ status: z.ZodNullable<z.ZodString>;
14
+ createdAt: z.ZodNullable<z.ZodString>;
15
+ backupType: z.ZodNullable<z.ZodString>;
16
+ }, z.core.$loose>>;
17
+ meta: z.ZodNullable<z.ZodObject<{
18
+ backupRetentionDays: z.ZodNullable<z.ZodNumber>;
19
+ }, z.core.$loose>>;
20
+ pagination: z.ZodNullable<z.ZodObject<{
21
+ limit: z.ZodNullable<z.ZodNumber>;
22
+ hasMore: z.ZodNullable<z.ZodBoolean>;
23
+ }, z.core.$loose>>;
24
+ }, z.core.$loose>;
25
+ declare const prismaListBackups: import("@keystrokehq/action").WorkflowActionDefinition<{
26
+ databaseId: string;
27
+ limit?: number | undefined;
28
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
29
  //#endregion
8
30
  export { prismaListBackups };
9
31
  //# sourceMappingURL=list-backups.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-backups.d.mts","names":[],"sources":["../../src/actions/list-backups.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAG8B;AAAA,cAgBxD,uBAAA,EAAyB,CAAA,CAAE,UAIqC;AAAA,cAEhE,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-backups.d.mts","names":[],"sources":["../../src/actions/list-backups.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;cAmBtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAMvB,iBAAA,gCAAiB,wBAAA"}
@@ -6,18 +6,18 @@ const PrismaListBackupsInput = z.object({
6
6
  databaseId: z.string().describe("Unique database identifier to list backups for (format: 'db_xxxxx'). Must be a database the authenticated user has access to. All available backups for this database will be returned.")
7
7
  }).describe("Request parameters for listing backups for a database.");
8
8
  const PrismaListBackups_BackupSchema = z.object({
9
- id: z.string().describe("Unique backup identifier used for restoration operations. Use this ID with restore backup action to recover data to a new database."),
10
- size: z.number().int().describe("Backup size in bytes. Use for storage monitoring and restoration planning. Larger backups may take longer to restore."),
11
- type: z.string().describe("Object type, always 'backup'. Provides consistency across API responses."),
12
- status: z.string().describe("Current backup status indicating availability for restoration. Values: 'completed' (ready for restore), 'running' (backup in progress), 'failed' (backup error), 'expired' (past retention period)."),
13
- createdAt: z.string().describe("ISO 8601 timestamp when backup was created (e.g., '2025-07-20T11:09:30.705Z')."),
14
- backupType: z.string().describe("Type of backup performed. Common values: 'full' (complete database), 'incremental' (changes only), 'scheduled' (automatic backup).")
15
- }).describe("Database backup object with restoration details.");
16
- const PrismaListBackups_BackupMetaSchema = z.object({ backupRetentionDays: z.number().int().describe("Number of days backups are retained before automatic deletion. Backups older than this period are automatically purged. Use for planning backup strategies and compliance requirements.") }).describe("Backup metadata and retention policy information.");
9
+ id: z.string().describe("Unique backup identifier used for restoration operations. Use this ID with restore backup action to recover data to a new database.").nullable(),
10
+ size: z.number().int().describe("Backup size in bytes. Use for storage monitoring and restoration planning. Larger backups may take longer to restore.").nullable(),
11
+ type: z.string().describe("Object type, always 'backup'. Provides consistency across API responses.").nullable(),
12
+ status: z.string().describe("Current backup status indicating availability for restoration. Values: 'completed' (ready for restore), 'running' (backup in progress), 'failed' (backup error), 'expired' (past retention period).").nullable(),
13
+ createdAt: z.string().describe("ISO 8601 timestamp when backup was created (e.g., '2025-07-20T11:09:30.705Z').").nullable(),
14
+ backupType: z.string().describe("Type of backup performed. Common values: 'full' (complete database), 'incremental' (changes only), 'scheduled' (automatic backup).").nullable()
15
+ }).passthrough().describe("Database backup object with restoration details.");
16
+ const PrismaListBackups_BackupMetaSchema = z.object({ backupRetentionDays: z.number().int().describe("Number of days backups are retained before automatic deletion. Backups older than this period are automatically purged. Use for planning backup strategies and compliance requirements.").nullable() }).passthrough().describe("Backup metadata and retention policy information.");
17
17
  const PrismaListBackups_BackupPaginationSchema = z.object({
18
- limit: z.number().int().describe("Current limit applied to the backup listing request."),
19
- hasMore: z.boolean().describe("True if more backups are available beyond the current limit.")
20
- }).describe("Pagination metadata for backup listing.");
18
+ limit: z.number().int().describe("Current limit applied to the backup listing request.").nullable(),
19
+ hasMore: z.boolean().describe("True if more backups are available beyond the current limit.").nullable()
20
+ }).passthrough().describe("Pagination metadata for backup listing.");
21
21
  const prismaListBackups = action("PRISMA_LIST_BACKUPS", {
22
22
  slug: "prisma-list-backups",
23
23
  name: "List Database Backups",
@@ -27,7 +27,7 @@ const prismaListBackups = action("PRISMA_LIST_BACKUPS", {
27
27
  data: z.array(PrismaListBackups_BackupSchema).describe("Array of backup objects for the specified database. Backups are ordered by creation date with most recent first. Only includes backups available for restoration within retention period."),
28
28
  meta: PrismaListBackups_BackupMetaSchema.nullable(),
29
29
  pagination: PrismaListBackups_BackupPaginationSchema.nullable()
30
- }).describe("API response containing backup list, metadata, and pagination.")
30
+ }).passthrough().describe("API response containing backup list, metadata, and pagination.")
31
31
  });
32
32
  //#endregion
33
33
  export { prismaListBackups };
@@ -1 +1 @@
1
- {"version":3,"file":"list-backups.mjs","names":[],"sources":["../../src/actions/list-backups.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaListBackupsInput: z.ZodTypeAny = z.object({\n limit: z.number().int().default(25).describe(\"Maximum number of backups to return in a single request. Defaults to 25 if not specified. Typical range is 1-100. Use smaller values (10-25) for UI pagination, larger values (50-100) for processing.\").optional(),\n databaseId: z.string().describe(\"Unique database identifier to list backups for (format: 'db_xxxxx'). Must be a database the authenticated user has access to. All available backups for this database will be returned.\"),\n}).describe(\"Request parameters for listing backups for a database.\");\nconst PrismaListBackups_BackupSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique backup identifier used for restoration operations. Use this ID with restore backup action to recover data to a new database.\"),\n size: z.number().int().describe(\"Backup size in bytes. Use for storage monitoring and restoration planning. Larger backups may take longer to restore.\"),\n type: z.string().describe(\"Object type, always 'backup'. Provides consistency across API responses.\"),\n status: z.string().describe(\"Current backup status indicating availability for restoration. Values: 'completed' (ready for restore), 'running' (backup in progress), 'failed' (backup error), 'expired' (past retention period).\"),\n createdAt: z.string().describe(\"ISO 8601 timestamp when backup was created (e.g., '2025-07-20T11:09:30.705Z').\"),\n backupType: z.string().describe(\"Type of backup performed. Common values: 'full' (complete database), 'incremental' (changes only), 'scheduled' (automatic backup).\"),\n}).describe(\"Database backup object with restoration details.\");\nconst PrismaListBackups_BackupMetaSchema: z.ZodTypeAny = z.object({\n backupRetentionDays: z.number().int().describe(\"Number of days backups are retained before automatic deletion. Backups older than this period are automatically purged. Use for planning backup strategies and compliance requirements.\"),\n}).describe(\"Backup metadata and retention policy information.\");\nconst PrismaListBackups_BackupPaginationSchema: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Current limit applied to the backup listing request.\"),\n hasMore: z.boolean().describe(\"True if more backups are available beyond the current limit.\"),\n}).describe(\"Pagination metadata for backup listing.\");\nexport const PrismaListBackupsOutput: z.ZodTypeAny = z.object({\n data: z.array(PrismaListBackups_BackupSchema).describe(\"Array of backup objects for the specified database. Backups are ordered by creation date with most recent first. Only includes backups available for restoration within retention period.\"),\n meta: PrismaListBackups_BackupMetaSchema.nullable(),\n pagination: PrismaListBackups_BackupPaginationSchema.nullable(),\n}).describe(\"API response containing backup list, metadata, and pagination.\");\n\nexport const prismaListBackups = action(\"PRISMA_LIST_BACKUPS\", {\n slug: \"prisma-list-backups\",\n name: \"List Database Backups\",\n description: \"Retrieve list of available backups for a specific database. Returns backup details including status, size, type, and restoration readiness. Use for backup monitoring, restoration planning, and compliance auditing.\",\n input: PrismaListBackupsInput,\n output: PrismaListBackupsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAuC,EAAE,OAAO;CAC3D,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,wMAAwM,CAAC,CAAC,SAAS;CAChQ,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,yLAAyL;AAC3N,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,iCAA+C,EAAE,OAAO;CAC5D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qIAAqI;CAC7J,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uHAAuH;CACvJ,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E;CACpG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qMAAqM;CACjO,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF;CAC/G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI;AACtK,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,qCAAmD,EAAE,OAAO,EAChE,qBAAqB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yLAAyL,EAC1O,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,2CAAyD,EAAE,OAAO;CACtE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD;CACvF,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,8DAA8D;AAC9F,CAAC,CAAC,CAAC,SAAS,yCAAyC;AAOrD,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXmD,EAAE,OAAO;EAC5D,MAAM,EAAE,MAAM,8BAA8B,CAAC,CAAC,SAAS,2LAA2L;EAClP,MAAM,mCAAmC,SAAS;EAClD,YAAY,yCAAyC,SAAS;CAChE,CAAC,CAAC,CAAC,SAAS,gEAOF;AACV,CAAC"}
1
+ {"version":3,"file":"list-backups.mjs","names":[],"sources":["../../src/actions/list-backups.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaListBackupsInput = z.object({\n limit: z.number().int().default(25).describe(\"Maximum number of backups to return in a single request. Defaults to 25 if not specified. Typical range is 1-100. Use smaller values (10-25) for UI pagination, larger values (50-100) for processing.\").optional(),\n databaseId: z.string().describe(\"Unique database identifier to list backups for (format: 'db_xxxxx'). Must be a database the authenticated user has access to. All available backups for this database will be returned.\"),\n}).describe(\"Request parameters for listing backups for a database.\");\nconst PrismaListBackups_BackupSchema = z.object({\n id: z.string().describe(\"Unique backup identifier used for restoration operations. Use this ID with restore backup action to recover data to a new database.\").nullable(),\n size: z.number().int().describe(\"Backup size in bytes. Use for storage monitoring and restoration planning. Larger backups may take longer to restore.\").nullable(),\n type: z.string().describe(\"Object type, always 'backup'. Provides consistency across API responses.\").nullable(),\n status: z.string().describe(\"Current backup status indicating availability for restoration. Values: 'completed' (ready for restore), 'running' (backup in progress), 'failed' (backup error), 'expired' (past retention period).\").nullable(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when backup was created (e.g., '2025-07-20T11:09:30.705Z').\").nullable(),\n backupType: z.string().describe(\"Type of backup performed. Common values: 'full' (complete database), 'incremental' (changes only), 'scheduled' (automatic backup).\").nullable(),\n}).passthrough().describe(\"Database backup object with restoration details.\");\nconst PrismaListBackups_BackupMetaSchema = z.object({\n backupRetentionDays: z.number().int().describe(\"Number of days backups are retained before automatic deletion. Backups older than this period are automatically purged. Use for planning backup strategies and compliance requirements.\").nullable(),\n}).passthrough().describe(\"Backup metadata and retention policy information.\");\nconst PrismaListBackups_BackupPaginationSchema = z.object({\n limit: z.number().int().describe(\"Current limit applied to the backup listing request.\").nullable(),\n hasMore: z.boolean().describe(\"True if more backups are available beyond the current limit.\").nullable(),\n}).passthrough().describe(\"Pagination metadata for backup listing.\");\nexport const PrismaListBackupsOutput = z.object({\n data: z.array(PrismaListBackups_BackupSchema).describe(\"Array of backup objects for the specified database. Backups are ordered by creation date with most recent first. Only includes backups available for restoration within retention period.\"),\n meta: PrismaListBackups_BackupMetaSchema.nullable(),\n pagination: PrismaListBackups_BackupPaginationSchema.nullable(),\n}).passthrough().describe(\"API response containing backup list, metadata, and pagination.\");\n\nexport const prismaListBackups = action(\"PRISMA_LIST_BACKUPS\", {\n slug: \"prisma-list-backups\",\n name: \"List Database Backups\",\n description: \"Retrieve list of available backups for a specific database. Returns backup details including status, size, type, and restoration readiness. Use for backup monitoring, restoration planning, and compliance auditing.\",\n input: PrismaListBackupsInput,\n output: PrismaListBackupsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyB,EAAE,OAAO;CAC7C,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,wMAAwM,CAAC,CAAC,SAAS;CAChQ,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,yLAAyL;AAC3N,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,iCAAiC,EAAE,OAAO;CAC9C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qIAAqI,CAAC,CAAC,SAAS;CACxK,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uHAAuH,CAAC,CAAC,SAAS;CAClK,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CAC/G,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qMAAqM,CAAC,CAAC,SAAS;CAC5O,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CAC1H,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS;AACjL,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAC5E,MAAM,qCAAqC,EAAE,OAAO,EAClD,qBAAqB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yLAAyL,CAAC,CAAC,SAAS,EACrP,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAC7E,MAAM,2CAA2C,EAAE,OAAO;CACxD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAClG,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAOnE,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXqC,EAAE,OAAO;EAC9C,MAAM,EAAE,MAAM,8BAA8B,CAAC,CAAC,SAAS,2LAA2L;EAClP,MAAM,mCAAmC,SAAS;EAClD,YAAY,yCAAyC,SAAS;CAChE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gEAOhB;AACV,CAAC"}
@@ -7,24 +7,24 @@ const PrismaListConnectionsInput = zod.z.object({
7
7
  databaseId: zod.z.string().describe("Unique database identifier to list connections for (format: 'db_xxxxx'). Must be a database the authenticated user has access to. All connection strings and API keys for this database will be returned.")
8
8
  }).describe("Request parameters for listing connections for a database.");
9
9
  const PrismaListConnections_DatabaseInfoSchema = zod.z.object({
10
- id: zod.z.string().describe("Unique database ID containing this connection."),
11
- name: zod.z.string().describe("Human-readable database name.")
12
- }).describe("Database information embedded in connection objects.");
10
+ id: zod.z.string().describe("Unique database ID containing this connection.").nullable(),
11
+ name: zod.z.string().describe("Human-readable database name.").nullable()
12
+ }).passthrough().describe("Database information embedded in connection objects.");
13
13
  const PrismaListConnections_ConnectionSchema = zod.z.object({
14
- id: zod.z.string().describe("Unique connection identifier (format: 'con_xxxxx'). Use this ID for connection-specific operations like deletion. Each connection represents a unique API key for database access."),
15
- name: zod.z.string().describe("Human-readable connection name set during creation. Used for identification and management in UIs. Common names include 'Production API Key', 'Dev Access', etc."),
16
- type: zod.z.string().describe("Object type, always 'connection'. Provides consistency across API responses."),
14
+ id: zod.z.string().describe("Unique connection identifier (format: 'con_xxxxx'). Use this ID for connection-specific operations like deletion. Each connection represents a unique API key for database access.").nullable(),
15
+ name: zod.z.string().describe("Human-readable connection name set during creation. Used for identification and management in UIs. Common names include 'Production API Key', 'Dev Access', etc.").nullable(),
16
+ type: zod.z.string().describe("Object type, always 'connection'. Provides consistency across API responses.").nullable(),
17
17
  database: PrismaListConnections_DatabaseInfoSchema.nullable(),
18
- createdAt: zod.z.string().describe("ISO 8601 creation timestamp in UTC (e.g., '2025-07-20T11:08:47.879Z').")
19
- }).describe("Database connection string / API key object.");
18
+ createdAt: zod.z.string().describe("ISO 8601 creation timestamp in UTC (e.g., '2025-07-20T11:08:47.879Z').").nullable()
19
+ }).passthrough().describe("Database connection string / API key object.");
20
20
  const PrismaListConnections_PaginationSchema = zod.z.object({
21
- hasMore: zod.z.boolean().describe("True if more pages available. Check before making next request."),
21
+ hasMore: zod.z.boolean().describe("True if more pages available. Check before making next request.").nullable(),
22
22
  nextCursor: zod.z.string().describe("Opaque cursor for next page. Pass to subsequent requests. Null when no more pages.").nullable().optional()
23
- }).describe("Pagination metadata for cursor-based navigation through connection results.");
23
+ }).passthrough().describe("Pagination metadata for cursor-based navigation through connection results.");
24
24
  const PrismaListConnectionsOutput = zod.z.object({
25
25
  data: zod.z.array(PrismaListConnections_ConnectionSchema).describe("Array of connection objects for the specified database. Connections are ordered by creation date with most recent first. Each connection represents an API key for database access with unique credentials."),
26
26
  pagination: PrismaListConnections_PaginationSchema.nullable()
27
- }).describe("API response containing connection list and pagination metadata.");
27
+ }).passthrough().describe("API response containing connection list and pagination metadata.");
28
28
  const prismaListConnections = require_action.action("PRISMA_LIST_CONNECTIONS", {
29
29
  slug: "prisma-list-connections",
30
30
  name: "List Database Connections",
@@ -1 +1 @@
1
- {"version":3,"file":"list-connections.cjs","names":["z","action"],"sources":["../../src/actions/list-connections.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaListConnectionsInput: z.ZodTypeAny = z.object({\n limit: z.number().int().default(100).describe(\"Maximum number of connections to return in a single request. Defaults to 100 if not specified. Valid range is typically 1-500. Use smaller values (10-50) for faster responses when you only need a few connections, or larger values (100-500) when bulk processing.\").optional(),\n cursor: z.string().describe(\"Pagination cursor for retrieving the next page of results. Use the 'nextCursor' value from a previous response to get subsequent pages. Leave as None/null for the first page. Enables efficient pagination through large numbers of connections without missing or duplicating entries.\").optional(),\n databaseId: z.string().describe(\"Unique database identifier to list connections for (format: 'db_xxxxx'). Must be a database the authenticated user has access to. All connection strings and API keys for this database will be returned.\"),\n}).describe(\"Request parameters for listing connections for a database.\");\nconst PrismaListConnections_DatabaseInfoSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique database ID containing this connection.\"),\n name: z.string().describe(\"Human-readable database name.\"),\n}).describe(\"Database information embedded in connection objects.\");\nconst PrismaListConnections_ConnectionSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique connection identifier (format: 'con_xxxxx'). Use this ID for connection-specific operations like deletion. Each connection represents a unique API key for database access.\"),\n name: z.string().describe(\"Human-readable connection name set during creation. Used for identification and management in UIs. Common names include 'Production API Key', 'Dev Access', etc.\"),\n type: z.string().describe(\"Object type, always 'connection'. Provides consistency across API responses.\"),\n database: PrismaListConnections_DatabaseInfoSchema.nullable(),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp in UTC (e.g., '2025-07-20T11:08:47.879Z').\"),\n}).describe(\"Database connection string / API key object.\");\nconst PrismaListConnections_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 connection results.\");\nexport const PrismaListConnectionsOutput: z.ZodTypeAny = z.object({\n data: z.array(PrismaListConnections_ConnectionSchema).describe(\"Array of connection objects for the specified database. Connections are ordered by creation date with most recent first. Each connection represents an API key for database access with unique credentials.\"),\n pagination: PrismaListConnections_PaginationSchema.nullable(),\n}).describe(\"API response containing connection list and pagination metadata.\");\n\nexport const prismaListConnections = action(\"PRISMA_LIST_CONNECTIONS\", {\n slug: \"prisma-list-connections\",\n name: \"List Database Connections\",\n description: \"Retrieve paginated list of connections for a specific database. Returns connection details including names, creation dates, and database context. Use for API key management, security audits, and access control.\",\n input: PrismaListConnectionsInput,\n output: PrismaListConnectionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,uQAAuQ,CAAC,CAAC,SAAS;CAChU,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0RAA0R,CAAC,CAAC,SAAS;CACjU,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2MAA2M;AAC7O,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,2CAAyDA,IAAAA,EAAE,OAAO;CACtE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CACxE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;AAC3D,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,yCAAuDA,IAAAA,EAAE,OAAO;CACpE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oLAAoL;CAC5M,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kKAAkK;CAC5L,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E;CACxG,UAAU,yCAAyC,SAAS;CAC5D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE;AACzG,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,yCAAuDA,IAAAA,EAAE,OAAO;CACpE,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,6EAA6E;AACzF,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,MAAMA,IAAAA,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,6MAA6M;CAC5Q,YAAY,uCAAuC,SAAS;AAC9D,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAE9E,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-connections.cjs","names":["z","action"],"sources":["../../src/actions/list-connections.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaListConnectionsInput = z.object({\n limit: z.number().int().default(100).describe(\"Maximum number of connections to return in a single request. Defaults to 100 if not specified. Valid range is typically 1-500. Use smaller values (10-50) for faster responses when you only need a few connections, or larger values (100-500) when bulk processing.\").optional(),\n cursor: z.string().describe(\"Pagination cursor for retrieving the next page of results. Use the 'nextCursor' value from a previous response to get subsequent pages. Leave as None/null for the first page. Enables efficient pagination through large numbers of connections without missing or duplicating entries.\").optional(),\n databaseId: z.string().describe(\"Unique database identifier to list connections for (format: 'db_xxxxx'). Must be a database the authenticated user has access to. All connection strings and API keys for this database will be returned.\"),\n}).describe(\"Request parameters for listing connections for a database.\");\nconst PrismaListConnections_DatabaseInfoSchema = z.object({\n id: z.string().describe(\"Unique database ID containing this connection.\").nullable(),\n name: z.string().describe(\"Human-readable database name.\").nullable(),\n}).passthrough().describe(\"Database information embedded in connection objects.\");\nconst PrismaListConnections_ConnectionSchema = z.object({\n id: z.string().describe(\"Unique connection identifier (format: 'con_xxxxx'). Use this ID for connection-specific operations like deletion. Each connection represents a unique API key for database access.\").nullable(),\n name: z.string().describe(\"Human-readable connection name set during creation. Used for identification and management in UIs. Common names include 'Production API Key', 'Dev Access', etc.\").nullable(),\n type: z.string().describe(\"Object type, always 'connection'. Provides consistency across API responses.\").nullable(),\n database: PrismaListConnections_DatabaseInfoSchema.nullable(),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp in UTC (e.g., '2025-07-20T11:08:47.879Z').\").nullable(),\n}).passthrough().describe(\"Database connection string / API key object.\");\nconst PrismaListConnections_PaginationSchema = z.object({\n hasMore: z.boolean().describe(\"True if more pages available. Check before making next request.\").nullable(),\n nextCursor: z.string().describe(\"Opaque cursor for next page. Pass to subsequent requests. Null when no more pages.\").nullable().optional(),\n}).passthrough().describe(\"Pagination metadata for cursor-based navigation through connection results.\");\nexport const PrismaListConnectionsOutput = z.object({\n data: z.array(PrismaListConnections_ConnectionSchema).describe(\"Array of connection objects for the specified database. Connections are ordered by creation date with most recent first. Each connection represents an API key for database access with unique credentials.\"),\n pagination: PrismaListConnections_PaginationSchema.nullable(),\n}).passthrough().describe(\"API response containing connection list and pagination metadata.\");\n\nexport const prismaListConnections = action(\"PRISMA_LIST_CONNECTIONS\", {\n slug: \"prisma-list-connections\",\n name: \"List Database Connections\",\n description: \"Retrieve paginated list of connections for a specific database. Returns connection details including names, creation dates, and database context. Use for API key management, security audits, and access control.\",\n input: PrismaListConnectionsInput,\n output: PrismaListConnectionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,uQAAuQ,CAAC,CAAC,SAAS;CAChU,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0RAA0R,CAAC,CAAC,SAAS;CACjU,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2MAA2M;AAC7O,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACnF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;AACtE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAAsD;AAChF,MAAM,yCAAyCA,IAAAA,EAAE,OAAO;CACtD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oLAAoL,CAAC,CAAC,SAAS;CACvN,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kKAAkK,CAAC,CAAC,SAAS;CACvM,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CACnH,UAAU,yCAAyC,SAAS;CAC5D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AACxE,MAAM,yCAAyCA,IAAAA,EAAE,OAAO;CACtD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC1G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6EAA6E;AACvG,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,6MAA6M;CAC5Q,YAAY,uCAAuC,SAAS;AAC9D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kEAAkE;AAE5F,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,32 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-connections.d.ts
4
- declare const PrismaListConnectionsInput: z.ZodTypeAny;
5
- declare const PrismaListConnectionsOutput: z.ZodTypeAny;
6
- declare const prismaListConnections: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PrismaListConnectionsInput: z.ZodObject<{
5
+ limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
6
+ cursor: z.ZodOptional<z.ZodString>;
7
+ databaseId: z.ZodString;
8
+ }, z.core.$strip>;
9
+ declare const PrismaListConnectionsOutput: z.ZodObject<{
10
+ data: z.ZodArray<z.ZodObject<{
11
+ id: z.ZodNullable<z.ZodString>;
12
+ name: z.ZodNullable<z.ZodString>;
13
+ type: z.ZodNullable<z.ZodString>;
14
+ database: z.ZodNullable<z.ZodObject<{
15
+ id: z.ZodNullable<z.ZodString>;
16
+ name: z.ZodNullable<z.ZodString>;
17
+ }, z.core.$loose>>;
18
+ createdAt: z.ZodNullable<z.ZodString>;
19
+ }, z.core.$loose>>;
20
+ pagination: z.ZodNullable<z.ZodObject<{
21
+ hasMore: z.ZodNullable<z.ZodBoolean>;
22
+ nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ }, z.core.$loose>>;
24
+ }, z.core.$loose>;
25
+ declare const prismaListConnections: import("@keystrokehq/action").WorkflowActionDefinition<{
26
+ databaseId: string;
27
+ limit?: number | undefined;
28
+ cursor?: string | undefined;
29
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
30
  //#endregion
8
31
  export { prismaListConnections };
9
32
  //# sourceMappingURL=list-connections.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-connections.d.cts","names":[],"sources":["../../src/actions/list-connections.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAI8B;AAAA,cAgB5D,2BAAA,EAA6B,CAAA,CAAE,UAGmC;AAAA,cAElE,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-connections.d.cts","names":[],"sources":["../../src/actions/list-connections.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAoB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAK3B,qBAAA,gCAAqB,wBAAA"}
@@ -1,9 +1,32 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-connections.d.ts
4
- declare const PrismaListConnectionsInput: z.ZodTypeAny;
5
- declare const PrismaListConnectionsOutput: z.ZodTypeAny;
6
- declare const prismaListConnections: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PrismaListConnectionsInput: z.ZodObject<{
5
+ limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
6
+ cursor: z.ZodOptional<z.ZodString>;
7
+ databaseId: z.ZodString;
8
+ }, z.core.$strip>;
9
+ declare const PrismaListConnectionsOutput: z.ZodObject<{
10
+ data: z.ZodArray<z.ZodObject<{
11
+ id: z.ZodNullable<z.ZodString>;
12
+ name: z.ZodNullable<z.ZodString>;
13
+ type: z.ZodNullable<z.ZodString>;
14
+ database: z.ZodNullable<z.ZodObject<{
15
+ id: z.ZodNullable<z.ZodString>;
16
+ name: z.ZodNullable<z.ZodString>;
17
+ }, z.core.$loose>>;
18
+ createdAt: z.ZodNullable<z.ZodString>;
19
+ }, z.core.$loose>>;
20
+ pagination: z.ZodNullable<z.ZodObject<{
21
+ hasMore: z.ZodNullable<z.ZodBoolean>;
22
+ nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ }, z.core.$loose>>;
24
+ }, z.core.$loose>;
25
+ declare const prismaListConnections: import("@keystrokehq/action").WorkflowActionDefinition<{
26
+ databaseId: string;
27
+ limit?: number | undefined;
28
+ cursor?: string | undefined;
29
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
30
  //#endregion
8
31
  export { prismaListConnections };
9
32
  //# sourceMappingURL=list-connections.d.mts.map