@keystrokehq/prisma 0.1.2 → 0.1.4

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 (153) hide show
  1. package/dist/actions/create-connection.cjs +3 -3
  2. package/dist/actions/create-connection.cjs.map +1 -1
  3. package/dist/actions/create-connection.d.cts +16 -4
  4. package/dist/actions/create-connection.d.mts +16 -4
  5. package/dist/actions/create-connection.mjs +3 -3
  6. package/dist/actions/create-connection.mjs.map +1 -1
  7. package/dist/actions/create-database.cjs +6 -6
  8. package/dist/actions/create-database.cjs.map +1 -1
  9. package/dist/actions/create-database.d.cts +20 -8
  10. package/dist/actions/create-database.d.mts +20 -8
  11. package/dist/actions/create-database.mjs +6 -6
  12. package/dist/actions/create-database.mjs.map +1 -1
  13. package/dist/actions/create-project.cjs +7 -7
  14. package/dist/actions/create-project.cjs.map +1 -1
  15. package/dist/actions/create-project.d.cts +21 -9
  16. package/dist/actions/create-project.d.mts +21 -9
  17. package/dist/actions/create-project.mjs +7 -7
  18. package/dist/actions/create-project.mjs.map +1 -1
  19. package/dist/actions/delete-connection.cjs +1 -1
  20. package/dist/actions/delete-connection.cjs.map +1 -1
  21. package/dist/actions/delete-connection.d.cts +14 -2
  22. package/dist/actions/delete-connection.d.cts.map +1 -1
  23. package/dist/actions/delete-connection.d.mts +14 -2
  24. package/dist/actions/delete-connection.d.mts.map +1 -1
  25. package/dist/actions/delete-connection.mjs +1 -1
  26. package/dist/actions/delete-connection.mjs.map +1 -1
  27. package/dist/actions/delete-database.cjs +1 -1
  28. package/dist/actions/delete-database.cjs.map +1 -1
  29. package/dist/actions/delete-database.d.cts +14 -2
  30. package/dist/actions/delete-database.d.mts +14 -2
  31. package/dist/actions/delete-database.mjs +1 -1
  32. package/dist/actions/delete-database.mjs.map +1 -1
  33. package/dist/actions/delete-project.cjs +1 -1
  34. package/dist/actions/delete-project.cjs.map +1 -1
  35. package/dist/actions/delete-project.d.cts +14 -2
  36. package/dist/actions/delete-project.d.cts.map +1 -1
  37. package/dist/actions/delete-project.d.mts +14 -2
  38. package/dist/actions/delete-project.d.mts.map +1 -1
  39. package/dist/actions/delete-project.mjs +1 -1
  40. package/dist/actions/delete-project.mjs.map +1 -1
  41. package/dist/actions/execute-sql-command.cjs +2 -2
  42. package/dist/actions/execute-sql-command.cjs.map +1 -1
  43. package/dist/actions/execute-sql-command.d.cts +15 -3
  44. package/dist/actions/execute-sql-command.d.cts.map +1 -1
  45. package/dist/actions/execute-sql-command.d.mts +15 -3
  46. package/dist/actions/execute-sql-command.d.mts.map +1 -1
  47. package/dist/actions/execute-sql-command.mjs +2 -2
  48. package/dist/actions/execute-sql-command.mjs.map +1 -1
  49. package/dist/actions/execute-sql-query.cjs +2 -2
  50. package/dist/actions/execute-sql-query.cjs.map +1 -1
  51. package/dist/actions/execute-sql-query.d.cts +15 -3
  52. package/dist/actions/execute-sql-query.d.cts.map +1 -1
  53. package/dist/actions/execute-sql-query.d.mts +15 -3
  54. package/dist/actions/execute-sql-query.d.mts.map +1 -1
  55. package/dist/actions/execute-sql-query.mjs +2 -2
  56. package/dist/actions/execute-sql-query.mjs.map +1 -1
  57. package/dist/actions/get-database-usage.cjs +4 -4
  58. package/dist/actions/get-database-usage.cjs.map +1 -1
  59. package/dist/actions/get-database-usage.d.cts +18 -6
  60. package/dist/actions/get-database-usage.d.mts +18 -6
  61. package/dist/actions/get-database-usage.mjs +4 -4
  62. package/dist/actions/get-database-usage.mjs.map +1 -1
  63. package/dist/actions/get-database.cjs +4 -4
  64. package/dist/actions/get-database.cjs.map +1 -1
  65. package/dist/actions/get-database.d.cts +17 -5
  66. package/dist/actions/get-database.d.mts +17 -5
  67. package/dist/actions/get-database.mjs +4 -4
  68. package/dist/actions/get-database.mjs.map +1 -1
  69. package/dist/actions/get-project.cjs +3 -3
  70. package/dist/actions/get-project.cjs.map +1 -1
  71. package/dist/actions/get-project.d.cts +16 -4
  72. package/dist/actions/get-project.d.mts +16 -4
  73. package/dist/actions/get-project.mjs +3 -3
  74. package/dist/actions/get-project.mjs.map +1 -1
  75. package/dist/actions/inspect-database-schema.cjs +4 -4
  76. package/dist/actions/inspect-database-schema.cjs.map +1 -1
  77. package/dist/actions/inspect-database-schema.d.cts +17 -5
  78. package/dist/actions/inspect-database-schema.d.mts +17 -5
  79. package/dist/actions/inspect-database-schema.mjs +4 -4
  80. package/dist/actions/inspect-database-schema.mjs.map +1 -1
  81. package/dist/actions/list-accelerate-regions.cjs +2 -2
  82. package/dist/actions/list-accelerate-regions.cjs.map +1 -1
  83. package/dist/actions/list-accelerate-regions.d.cts +15 -3
  84. package/dist/actions/list-accelerate-regions.d.cts.map +1 -1
  85. package/dist/actions/list-accelerate-regions.d.mts +15 -3
  86. package/dist/actions/list-accelerate-regions.d.mts.map +1 -1
  87. package/dist/actions/list-accelerate-regions.mjs +2 -2
  88. package/dist/actions/list-accelerate-regions.mjs.map +1 -1
  89. package/dist/actions/list-backups.cjs +4 -4
  90. package/dist/actions/list-backups.cjs.map +1 -1
  91. package/dist/actions/list-backups.d.cts +17 -5
  92. package/dist/actions/list-backups.d.mts +17 -5
  93. package/dist/actions/list-backups.mjs +4 -4
  94. package/dist/actions/list-backups.mjs.map +1 -1
  95. package/dist/actions/list-connections.cjs +4 -4
  96. package/dist/actions/list-connections.cjs.map +1 -1
  97. package/dist/actions/list-connections.d.cts +17 -5
  98. package/dist/actions/list-connections.d.mts +17 -5
  99. package/dist/actions/list-connections.mjs +4 -4
  100. package/dist/actions/list-connections.mjs.map +1 -1
  101. package/dist/actions/list-databases.cjs +5 -5
  102. package/dist/actions/list-databases.cjs.map +1 -1
  103. package/dist/actions/list-databases.d.cts +18 -6
  104. package/dist/actions/list-databases.d.mts +18 -6
  105. package/dist/actions/list-databases.mjs +5 -5
  106. package/dist/actions/list-databases.mjs.map +1 -1
  107. package/dist/actions/list-postgres-regions.cjs +2 -2
  108. package/dist/actions/list-postgres-regions.cjs.map +1 -1
  109. package/dist/actions/list-postgres-regions.d.cts +15 -3
  110. package/dist/actions/list-postgres-regions.d.cts.map +1 -1
  111. package/dist/actions/list-postgres-regions.d.mts +15 -3
  112. package/dist/actions/list-postgres-regions.d.mts.map +1 -1
  113. package/dist/actions/list-postgres-regions.mjs +2 -2
  114. package/dist/actions/list-postgres-regions.mjs.map +1 -1
  115. package/dist/actions/list-projects.cjs +4 -4
  116. package/dist/actions/list-projects.cjs.map +1 -1
  117. package/dist/actions/list-projects.d.cts +17 -5
  118. package/dist/actions/list-projects.d.mts +17 -5
  119. package/dist/actions/list-projects.mjs +4 -4
  120. package/dist/actions/list-projects.mjs.map +1 -1
  121. package/dist/actions/list-workspace-integrations.cjs +5 -5
  122. package/dist/actions/list-workspace-integrations.cjs.map +1 -1
  123. package/dist/actions/list-workspace-integrations.d.cts +18 -6
  124. package/dist/actions/list-workspace-integrations.d.mts +18 -6
  125. package/dist/actions/list-workspace-integrations.mjs +5 -5
  126. package/dist/actions/list-workspace-integrations.mjs.map +1 -1
  127. package/dist/actions/list-workspaces.cjs +3 -3
  128. package/dist/actions/list-workspaces.cjs.map +1 -1
  129. package/dist/actions/list-workspaces.d.cts +16 -4
  130. package/dist/actions/list-workspaces.d.mts +16 -4
  131. package/dist/actions/list-workspaces.mjs +3 -3
  132. package/dist/actions/list-workspaces.mjs.map +1 -1
  133. package/dist/actions/restore-backup.cjs +4 -4
  134. package/dist/actions/restore-backup.cjs.map +1 -1
  135. package/dist/actions/restore-backup.d.cts +17 -5
  136. package/dist/actions/restore-backup.d.mts +17 -5
  137. package/dist/actions/restore-backup.mjs +4 -4
  138. package/dist/actions/restore-backup.mjs.map +1 -1
  139. package/dist/actions/transfer-project.cjs +1 -1
  140. package/dist/actions/transfer-project.cjs.map +1 -1
  141. package/dist/actions/transfer-project.d.cts +14 -2
  142. package/dist/actions/transfer-project.d.mts +14 -2
  143. package/dist/actions/transfer-project.mjs +1 -1
  144. package/dist/actions/transfer-project.mjs.map +1 -1
  145. package/dist/app.cjs +5 -2
  146. package/dist/app.cjs.map +1 -1
  147. package/dist/app.d.cts +9 -1
  148. package/dist/app.d.cts.map +1 -1
  149. package/dist/app.d.mts +9 -1
  150. package/dist/app.d.mts.map +1 -1
  151. package/dist/app.mjs +3 -1
  152. package/dist/app.mjs.map +1 -1
  153. package/package.json +1 -1
@@ -13,12 +13,24 @@ declare const PrismaGetProjectOutput: z.ZodObject<{
13
13
  workspace: z.ZodNullable<z.ZodObject<{
14
14
  id: z.ZodNullable<z.ZodString>;
15
15
  name: z.ZodNullable<z.ZodString>;
16
- }, z.core.$strip>>;
17
- }, z.core.$strip>>;
18
- }, z.core.$strip>;
16
+ }, z.core.$loose>>;
17
+ }, z.core.$loose>>;
18
+ }, z.core.$loose>;
19
19
  declare const prismaGetProject: import("@keystrokehq/action").WorkflowActionDefinition<{
20
20
  id: string;
21
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
21
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"prisma", z.ZodObject<{
22
+ connectionId: z.ZodString;
23
+ entityId: z.ZodString;
24
+ instanceId: z.ZodString;
25
+ }, z.core.$strip>, z.ZodObject<{
26
+ accessToken: z.ZodString;
27
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"prisma", z.ZodObject<{
28
+ connectionId: z.ZodString;
29
+ entityId: z.ZodString;
30
+ instanceId: z.ZodString;
31
+ }, z.core.$strip>, z.ZodObject<{
32
+ accessToken: z.ZodString;
33
+ }, z.core.$strip>>]>;
22
34
  //#endregion
23
35
  export { prismaGetProject };
24
36
  //# sourceMappingURL=get-project.d.cts.map
@@ -13,12 +13,24 @@ declare const PrismaGetProjectOutput: z.ZodObject<{
13
13
  workspace: z.ZodNullable<z.ZodObject<{
14
14
  id: z.ZodNullable<z.ZodString>;
15
15
  name: z.ZodNullable<z.ZodString>;
16
- }, z.core.$strip>>;
17
- }, z.core.$strip>>;
18
- }, z.core.$strip>;
16
+ }, z.core.$loose>>;
17
+ }, z.core.$loose>>;
18
+ }, z.core.$loose>;
19
19
  declare const prismaGetProject: import("@keystrokehq/action").WorkflowActionDefinition<{
20
20
  id: string;
21
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
21
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"prisma", z.ZodObject<{
22
+ connectionId: z.ZodString;
23
+ entityId: z.ZodString;
24
+ instanceId: z.ZodString;
25
+ }, z.core.$strip>, z.ZodObject<{
26
+ accessToken: z.ZodString;
27
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"prisma", z.ZodObject<{
28
+ connectionId: z.ZodString;
29
+ entityId: z.ZodString;
30
+ instanceId: z.ZodString;
31
+ }, z.core.$strip>, z.ZodObject<{
32
+ accessToken: z.ZodString;
33
+ }, z.core.$strip>>]>;
22
34
  //#endregion
23
35
  export { prismaGetProject };
24
36
  //# sourceMappingURL=get-project.d.mts.map
@@ -5,20 +5,20 @@ const PrismaGetProjectInput = z.object({ id: z.string().describe("Unique project
5
5
  const PrismaGetProject_WorkspaceInfoSchema = z.object({
6
6
  id: z.string().describe("Unique workspace ID containing this project.").nullable(),
7
7
  name: z.string().describe("Human-readable workspace name.").nullable()
8
- }).describe("Workspace information embedded in project.");
8
+ }).passthrough().describe("Workspace information embedded in project.");
9
9
  const PrismaGetProject_ProjectDetailsSchema = z.object({
10
10
  id: z.string().describe("Unique project identifier.").nullable(),
11
11
  name: z.string().describe("Human-readable project name.").nullable(),
12
12
  type: z.string().describe("Object type, always 'project'.").nullable(),
13
13
  createdAt: z.string().describe("ISO 8601 creation timestamp in UTC.").nullable(),
14
14
  workspace: PrismaGetProject_WorkspaceInfoSchema.nullable()
15
- }).describe("Complete project information.");
15
+ }).passthrough().describe("Complete project information.");
16
16
  const prismaGetProject = action("PRISMA_GET_PROJECT", {
17
17
  slug: "prisma-get-project",
18
18
  name: "Get Prisma Project",
19
19
  description: "Retrieve specific Prisma project by ID. Returns project details including name, creation timestamp, and workspace information. Use for project detail views, validation, and administrative operations.",
20
20
  input: PrismaGetProjectInput,
21
- output: z.object({ data: PrismaGetProject_ProjectDetailsSchema.nullable() }).describe("API response containing project details.")
21
+ output: z.object({ data: PrismaGetProject_ProjectDetailsSchema.nullable() }).passthrough().describe("API response containing project details.")
22
22
  });
23
23
  //#endregion
24
24
  export { prismaGetProject };
@@ -1 +1 @@
1
- {"version":3,"file":"get-project.mjs","names":[],"sources":["../../src/actions/get-project.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaGetProjectInput = z.object({\n id: z.string().describe(\"Unique project identifier to retrieve (format: 'proj_xxxxx'). This ID is obtained from project listing or creation operations. Must be a project the authenticated user has access to.\"),\n}).describe(\"Request parameters for retrieving a specific project by ID.\");\nconst PrismaGetProject_WorkspaceInfoSchema = z.object({\n id: z.string().describe(\"Unique workspace ID containing this project.\").nullable(),\n name: z.string().describe(\"Human-readable workspace name.\").nullable(),\n}).describe(\"Workspace information embedded in project.\");\nconst PrismaGetProject_ProjectDetailsSchema = z.object({\n id: z.string().describe(\"Unique project identifier.\").nullable(),\n name: z.string().describe(\"Human-readable project name.\").nullable(),\n type: z.string().describe(\"Object type, always 'project'.\").nullable(),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp in UTC.\").nullable(),\n workspace: PrismaGetProject_WorkspaceInfoSchema.nullable(),\n}).describe(\"Complete project information.\");\nexport const PrismaGetProjectOutput = z.object({\n data: PrismaGetProject_ProjectDetailsSchema.nullable(),\n}).describe(\"API response containing project details.\");\n\nexport const prismaGetProject = action(\"PRISMA_GET_PROJECT\", {\n slug: \"prisma-get-project\",\n name: \"Get Prisma Project\",\n description: \"Retrieve specific Prisma project by ID. Returns project details including name, creation timestamp, and workspace information. Use for project detail views, validation, and administrative operations.\",\n input: PrismaGetProjectInput,\n output: PrismaGetProjectOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwB,EAAE,OAAO,EAC5C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wLAAwL,EAClN,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,uCAAuC,EAAE,OAAO;CACpD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACjF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;AACvE,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAM,wCAAwC,EAAE,OAAO;CACrD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACnE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACrE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC/E,WAAW,qCAAqC,SAAS;AAC3D,CAAC,CAAC,CAAC,SAAS,+BAA+B;AAK3C,MAAa,mBAAmB,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAToC,EAAE,OAAO,EAC7C,MAAM,sCAAsC,SAAS,EACvD,CAAC,CAAC,CAAC,SAAS,0CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-project.mjs","names":[],"sources":["../../src/actions/get-project.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaGetProjectInput = z.object({\n id: z.string().describe(\"Unique project identifier to retrieve (format: 'proj_xxxxx'). This ID is obtained from project listing or creation operations. Must be a project the authenticated user has access to.\"),\n}).describe(\"Request parameters for retrieving a specific project by ID.\");\nconst PrismaGetProject_WorkspaceInfoSchema = z.object({\n id: z.string().describe(\"Unique workspace ID containing this project.\").nullable(),\n name: z.string().describe(\"Human-readable workspace name.\").nullable(),\n}).passthrough().describe(\"Workspace information embedded in project.\");\nconst PrismaGetProject_ProjectDetailsSchema = z.object({\n id: z.string().describe(\"Unique project identifier.\").nullable(),\n name: z.string().describe(\"Human-readable project name.\").nullable(),\n type: z.string().describe(\"Object type, always 'project'.\").nullable(),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp in UTC.\").nullable(),\n workspace: PrismaGetProject_WorkspaceInfoSchema.nullable(),\n}).passthrough().describe(\"Complete project information.\");\nexport const PrismaGetProjectOutput = z.object({\n data: PrismaGetProject_ProjectDetailsSchema.nullable(),\n}).passthrough().describe(\"API response containing project details.\");\n\nexport const prismaGetProject = action(\"PRISMA_GET_PROJECT\", {\n slug: \"prisma-get-project\",\n name: \"Get Prisma Project\",\n description: \"Retrieve specific Prisma project by ID. Returns project details including name, creation timestamp, and workspace information. Use for project detail views, validation, and administrative operations.\",\n input: PrismaGetProjectInput,\n output: PrismaGetProjectOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwB,EAAE,OAAO,EAC5C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wLAAwL,EAClN,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,uCAAuC,EAAE,OAAO;CACpD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACjF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;AACvE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AACtE,MAAM,wCAAwC,EAAE,OAAO;CACrD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACnE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACrE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC/E,WAAW,qCAAqC,SAAS;AAC3D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+BAA+B;AAKzD,MAAa,mBAAmB,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAToC,EAAE,OAAO,EAC7C,MAAM,sCAAsC,SAAS,EACvD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAOhB;AACV,CAAC"}
@@ -17,20 +17,20 @@ const PrismaInspectDatabaseSchema_ColumnInfoSchema = zod.z.object({
17
17
  isPrimaryKey: zod.z.boolean().default(false).describe("Whether this column is part of the primary key.").nullable().optional(),
18
18
  referencedTable: zod.z.string().describe("Referenced table name if this is a foreign key.").nullable().optional(),
19
19
  referencedColumn: zod.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 = zod.z.object({
22
22
  columns: zod.z.array(PrismaInspectDatabaseSchema_ColumnInfoSchema).describe("Array of column information for the table including types, constraints, and relationships."),
23
23
  rowCount: zod.z.number().int().describe("Approximate number of rows in the table.").nullable().optional(),
24
24
  tableName: zod.z.string().describe("Name of the database table.").nullable(),
25
25
  tableType: zod.z.string().describe("Type of table (e.g., 'BASE TABLE', 'VIEW').").nullable()
26
- }).describe("Database table information with columns and metadata.");
26
+ }).passthrough().describe("Database table information with columns and metadata.");
27
27
  const PrismaInspectDatabaseSchema_DatabaseSchemaInfoSchema = zod.z.object({
28
28
  tables: zod.z.array(PrismaInspectDatabaseSchema_TableInfoSchema).describe("Array of table information including columns and metadata."),
29
29
  schemaName: zod.z.string().describe("Schema name (typically 'public' for PostgreSQL).").nullable(),
30
30
  totalTables: zod.z.number().int().describe("Total number of tables in the database.").nullable(),
31
31
  databaseName: zod.z.string().describe("Name of the database.").nullable()
32
- }).describe("Complete database schema information.");
33
- const PrismaInspectDatabaseSchemaOutput = zod.z.object({ database_schema: PrismaInspectDatabaseSchema_DatabaseSchemaInfoSchema.nullable() }).describe("API response containing database schema information.");
32
+ }).passthrough().describe("Complete database schema information.");
33
+ const PrismaInspectDatabaseSchemaOutput = zod.z.object({ database_schema: PrismaInspectDatabaseSchema_DatabaseSchemaInfoSchema.nullable() }).passthrough().describe("API response containing database schema information.");
34
34
  const prismaInspectDatabaseSchema = require_action.action("PRISMA_INSPECT_DATABASE_SCHEMA", {
35
35
  slug: "prisma-inspect-database-schema",
36
36
  name: "Inspect Database Schema",
@@ -1 +1 @@
1
- {"version":3,"file":"inspect-database-schema.cjs","names":["z","action"],"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}).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}).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}).describe(\"Complete database schema information.\");\nexport const PrismaInspectDatabaseSchemaOutput = 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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,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,SAASA,IAAAA,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,4FAA4F;CACpK,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACvE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAM,uDAAuDA,IAAAA,EAAE,OAAO;CACpE,QAAQA,IAAAA,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,4DAA4D;CAClI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC7F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC3F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;AACtE,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAa,oCAAoCA,IAAAA,EAAE,OAAO,EACxD,iBAAiB,qDAAqD,SAAS,EACjF,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAElE,MAAa,8BAA8BC,eAAAA,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"inspect-database-schema.cjs","names":["z","action"],"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,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mMAAmM;CAC7N,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mKAAmK;CAC7L,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gKAAgK;CAC9L,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gOAAgO,CAAC,CAAC,SAAS;CAC1Q,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,kMAAkM,CAAC,CAAC,SAAS;AACnQ,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,+CAA+CA,IAAAA,EAA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C,YAAY,CAAC,CAAC,SAAS,uDAAuD;AACjF,MAAM,uDAAuDA,IAAAA,EAAE,OAAO;CACpE,QAAQA,IAAAA,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,4DAA4D;CAClI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC7F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC3F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;AACtE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AACjE,MAAa,oCAAoCA,IAAAA,EAAE,OAAO,EACxD,iBAAiB,qDAAqD,SAAS,EACjF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAAsD;AAEhF,MAAa,8BAA8BC,eAAAA,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -20,23 +20,35 @@ declare const PrismaInspectDatabaseSchemaOutput: z.ZodObject<{
20
20
  isPrimaryKey: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
21
21
  referencedTable: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
22
  referencedColumn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
- }, z.core.$strip>>;
23
+ }, z.core.$loose>>;
24
24
  rowCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
25
25
  tableName: z.ZodNullable<z.ZodString>;
26
26
  tableType: z.ZodNullable<z.ZodString>;
27
- }, z.core.$strip>>;
27
+ }, z.core.$loose>>;
28
28
  schemaName: z.ZodNullable<z.ZodString>;
29
29
  totalTables: z.ZodNullable<z.ZodNumber>;
30
30
  databaseName: z.ZodNullable<z.ZodString>;
31
- }, z.core.$strip>>;
32
- }, z.core.$strip>;
31
+ }, z.core.$loose>>;
32
+ }, z.core.$loose>;
33
33
  declare const prismaInspectDatabaseSchema: import("@keystrokehq/action").WorkflowActionDefinition<{
34
34
  host: string;
35
35
  user: string;
36
36
  password: string;
37
37
  tableName?: string | undefined;
38
38
  includeIndexes?: boolean | undefined;
39
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
39
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"prisma", z.ZodObject<{
40
+ connectionId: z.ZodString;
41
+ entityId: z.ZodString;
42
+ instanceId: z.ZodString;
43
+ }, z.core.$strip>, z.ZodObject<{
44
+ accessToken: z.ZodString;
45
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"prisma", z.ZodObject<{
46
+ connectionId: z.ZodString;
47
+ entityId: z.ZodString;
48
+ instanceId: z.ZodString;
49
+ }, z.core.$strip>, z.ZodObject<{
50
+ accessToken: z.ZodString;
51
+ }, z.core.$strip>>]>;
40
52
  //#endregion
41
53
  export { prismaInspectDatabaseSchema };
42
54
  //# sourceMappingURL=inspect-database-schema.d.cts.map
@@ -20,23 +20,35 @@ declare const PrismaInspectDatabaseSchemaOutput: z.ZodObject<{
20
20
  isPrimaryKey: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
21
21
  referencedTable: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
22
  referencedColumn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
- }, z.core.$strip>>;
23
+ }, z.core.$loose>>;
24
24
  rowCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
25
25
  tableName: z.ZodNullable<z.ZodString>;
26
26
  tableType: z.ZodNullable<z.ZodString>;
27
- }, z.core.$strip>>;
27
+ }, z.core.$loose>>;
28
28
  schemaName: z.ZodNullable<z.ZodString>;
29
29
  totalTables: z.ZodNullable<z.ZodNumber>;
30
30
  databaseName: z.ZodNullable<z.ZodString>;
31
- }, z.core.$strip>>;
32
- }, z.core.$strip>;
31
+ }, z.core.$loose>>;
32
+ }, z.core.$loose>;
33
33
  declare const prismaInspectDatabaseSchema: import("@keystrokehq/action").WorkflowActionDefinition<{
34
34
  host: string;
35
35
  user: string;
36
36
  password: string;
37
37
  tableName?: string | undefined;
38
38
  includeIndexes?: boolean | undefined;
39
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
39
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"prisma", z.ZodObject<{
40
+ connectionId: z.ZodString;
41
+ entityId: z.ZodString;
42
+ instanceId: z.ZodString;
43
+ }, z.core.$strip>, z.ZodObject<{
44
+ accessToken: z.ZodString;
45
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"prisma", z.ZodObject<{
46
+ connectionId: z.ZodString;
47
+ entityId: z.ZodString;
48
+ instanceId: z.ZodString;
49
+ }, z.core.$strip>, z.ZodObject<{
50
+ accessToken: z.ZodString;
51
+ }, z.core.$strip>>]>;
40
52
  //#endregion
41
53
  export { prismaInspectDatabaseSchema };
42
54
  //# sourceMappingURL=inspect-database-schema.d.mts.map
@@ -17,25 +17,25 @@ const PrismaInspectDatabaseSchema_ColumnInfoSchema = z.object({
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
24
  tableName: z.string().describe("Name of the database table.").nullable(),
25
25
  tableType: z.string().describe("Type of table (e.g., 'BASE TABLE', 'VIEW').").nullable()
26
- }).describe("Database table information with columns and metadata.");
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
29
  schemaName: z.string().describe("Schema name (typically 'public' for PostgreSQL).").nullable(),
30
30
  totalTables: z.number().int().describe("Total number of tables in the database.").nullable(),
31
31
  databaseName: z.string().describe("Name of the database.").nullable()
32
- }).describe("Complete database schema information.");
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.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}).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}).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}).describe(\"Complete database schema information.\");\nexport const PrismaInspectDatabaseSchemaOutput = 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,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,CA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OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT+C,EAAE,OAAO,EACxD,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,gO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W,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"}
@@ -6,8 +6,8 @@ const PrismaListAccelerateRegions_AccelerateRegionSchema = zod.z.object({
6
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
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
8
  type: zod.z.string().describe("Object type, always 'region'. Provides consistency across API responses.").nullable()
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.");
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.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}).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}).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,SAAS,sDAAsD;AAClE,MAAa,oCAAoCA,IAAAA,EAAE,OAAO,EACxD,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"}
@@ -7,9 +7,21 @@ declare const PrismaListAccelerateRegionsOutput: z.ZodObject<{
7
7
  id: z.ZodNullable<z.ZodString>;
8
8
  name: z.ZodNullable<z.ZodString>;
9
9
  type: z.ZodNullable<z.ZodString>;
10
- }, z.core.$strip>>;
11
- }, z.core.$strip>;
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]>;
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<"prisma", z.ZodObject<{
13
+ connectionId: z.ZodString;
14
+ entityId: z.ZodString;
15
+ instanceId: z.ZodString;
16
+ }, z.core.$strip>, z.ZodObject<{
17
+ accessToken: z.ZodString;
18
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"prisma", z.ZodObject<{
19
+ connectionId: z.ZodString;
20
+ entityId: z.ZodString;
21
+ instanceId: z.ZodString;
22
+ }, z.core.$strip>, z.ZodObject<{
23
+ accessToken: z.ZodString;
24
+ }, z.core.$strip>>]>;
13
25
  //#endregion
14
26
  export { prismaListAccelerateRegions };
15
27
  //# 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,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
+ {"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,WAAA,CAAA,CAAA,SAAA"}
@@ -7,9 +7,21 @@ declare const PrismaListAccelerateRegionsOutput: z.ZodObject<{
7
7
  id: z.ZodNullable<z.ZodString>;
8
8
  name: z.ZodNullable<z.ZodString>;
9
9
  type: z.ZodNullable<z.ZodString>;
10
- }, z.core.$strip>>;
11
- }, z.core.$strip>;
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]>;
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<"prisma", z.ZodObject<{
13
+ connectionId: z.ZodString;
14
+ entityId: z.ZodString;
15
+ instanceId: z.ZodString;
16
+ }, z.core.$strip>, z.ZodObject<{
17
+ accessToken: z.ZodString;
18
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"prisma", z.ZodObject<{
19
+ connectionId: z.ZodString;
20
+ entityId: z.ZodString;
21
+ instanceId: z.ZodString;
22
+ }, z.core.$strip>, z.ZodObject<{
23
+ accessToken: z.ZodString;
24
+ }, z.core.$strip>>]>;
13
25
  //#endregion
14
26
  export { prismaListAccelerateRegions };
15
27
  //# 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,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
+ {"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,WAAA,CAAA,CAAA,SAAA"}
@@ -6,13 +6,13 @@ const PrismaListAccelerateRegions_AccelerateRegionSchema = z.object({
6
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
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
8
  type: z.string().describe("Object type, always 'region'. Provides consistency across API responses.").nullable()
9
- }).describe("Prisma Accelerate region object for caching service.");
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.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}).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}).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,SAAS,sDAAsD;AAKlE,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,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"}
@@ -12,17 +12,17 @@ const PrismaListBackups_BackupSchema = zod.z.object({
12
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
13
  createdAt: zod.z.string().describe("ISO 8601 timestamp when backup was created (e.g., '2025-07-20T11:09:30.705Z').").nullable(),
14
14
  backupType: zod.z.string().describe("Type of backup performed. Common values: 'full' (complete database), 'incremental' (changes only), 'scheduled' (automatic backup).").nullable()
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.").nullable() }).describe("Backup metadata and retention policy information.");
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
18
  limit: zod.z.number().int().describe("Current limit applied to the backup listing request.").nullable(),
19
19
  hasMore: zod.z.boolean().describe("True if more backups are available beyond the current limit.").nullable()
20
- }).describe("Pagination metadata for backup listing.");
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.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}).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}).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}).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}).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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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"}
@@ -13,19 +13,31 @@ declare const PrismaListBackupsOutput: z.ZodObject<{
13
13
  status: z.ZodNullable<z.ZodString>;
14
14
  createdAt: z.ZodNullable<z.ZodString>;
15
15
  backupType: z.ZodNullable<z.ZodString>;
16
- }, z.core.$strip>>;
16
+ }, z.core.$loose>>;
17
17
  meta: z.ZodNullable<z.ZodObject<{
18
18
  backupRetentionDays: z.ZodNullable<z.ZodNumber>;
19
- }, z.core.$strip>>;
19
+ }, z.core.$loose>>;
20
20
  pagination: z.ZodNullable<z.ZodObject<{
21
21
  limit: z.ZodNullable<z.ZodNumber>;
22
22
  hasMore: z.ZodNullable<z.ZodBoolean>;
23
- }, z.core.$strip>>;
24
- }, z.core.$strip>;
23
+ }, z.core.$loose>>;
24
+ }, z.core.$loose>;
25
25
  declare const prismaListBackups: import("@keystrokehq/action").WorkflowActionDefinition<{
26
26
  databaseId: string;
27
27
  limit?: number | undefined;
28
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
28
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"prisma", z.ZodObject<{
29
+ connectionId: z.ZodString;
30
+ entityId: z.ZodString;
31
+ instanceId: z.ZodString;
32
+ }, z.core.$strip>, z.ZodObject<{
33
+ accessToken: z.ZodString;
34
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"prisma", z.ZodObject<{
35
+ connectionId: z.ZodString;
36
+ entityId: z.ZodString;
37
+ instanceId: z.ZodString;
38
+ }, z.core.$strip>, z.ZodObject<{
39
+ accessToken: z.ZodString;
40
+ }, z.core.$strip>>]>;
29
41
  //#endregion
30
42
  export { prismaListBackups };
31
43
  //# sourceMappingURL=list-backups.d.cts.map
@@ -13,19 +13,31 @@ declare const PrismaListBackupsOutput: z.ZodObject<{
13
13
  status: z.ZodNullable<z.ZodString>;
14
14
  createdAt: z.ZodNullable<z.ZodString>;
15
15
  backupType: z.ZodNullable<z.ZodString>;
16
- }, z.core.$strip>>;
16
+ }, z.core.$loose>>;
17
17
  meta: z.ZodNullable<z.ZodObject<{
18
18
  backupRetentionDays: z.ZodNullable<z.ZodNumber>;
19
- }, z.core.$strip>>;
19
+ }, z.core.$loose>>;
20
20
  pagination: z.ZodNullable<z.ZodObject<{
21
21
  limit: z.ZodNullable<z.ZodNumber>;
22
22
  hasMore: z.ZodNullable<z.ZodBoolean>;
23
- }, z.core.$strip>>;
24
- }, z.core.$strip>;
23
+ }, z.core.$loose>>;
24
+ }, z.core.$loose>;
25
25
  declare const prismaListBackups: import("@keystrokehq/action").WorkflowActionDefinition<{
26
26
  databaseId: string;
27
27
  limit?: number | undefined;
28
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
28
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"prisma", z.ZodObject<{
29
+ connectionId: z.ZodString;
30
+ entityId: z.ZodString;
31
+ instanceId: z.ZodString;
32
+ }, z.core.$strip>, z.ZodObject<{
33
+ accessToken: z.ZodString;
34
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"prisma", z.ZodObject<{
35
+ connectionId: z.ZodString;
36
+ entityId: z.ZodString;
37
+ instanceId: z.ZodString;
38
+ }, z.core.$strip>, z.ZodObject<{
39
+ accessToken: z.ZodString;
40
+ }, z.core.$strip>>]>;
29
41
  //#endregion
30
42
  export { prismaListBackups };
31
43
  //# sourceMappingURL=list-backups.d.mts.map
@@ -12,12 +12,12 @@ const PrismaListBackups_BackupSchema = z.object({
12
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
13
  createdAt: z.string().describe("ISO 8601 timestamp when backup was created (e.g., '2025-07-20T11:09:30.705Z').").nullable(),
14
14
  backupType: z.string().describe("Type of backup performed. Common values: 'full' (complete database), 'incremental' (changes only), 'scheduled' (automatic backup).").nullable()
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.").nullable() }).describe("Backup metadata and retention policy information.");
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
18
  limit: z.number().int().describe("Current limit applied to the backup listing request.").nullable(),
19
19
  hasMore: z.boolean().describe("True if more backups are available beyond the current limit.").nullable()
20
- }).describe("Pagination metadata for backup listing.");
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 };