@keystrokehq/prisma 0.1.3 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/create-connection.cjs +1 -0
- package/dist/actions/create-connection.cjs.map +1 -1
- package/dist/actions/create-connection.d.cts +3 -4
- package/dist/actions/create-connection.d.cts.map +1 -1
- package/dist/actions/create-connection.d.mts +3 -4
- package/dist/actions/create-connection.d.mts.map +1 -1
- package/dist/actions/create-connection.mjs +1 -0
- package/dist/actions/create-connection.mjs.map +1 -1
- package/dist/actions/create-database.cjs +1 -0
- package/dist/actions/create-database.cjs.map +1 -1
- package/dist/actions/create-database.d.cts +3 -6
- package/dist/actions/create-database.d.cts.map +1 -1
- package/dist/actions/create-database.d.mts +3 -6
- package/dist/actions/create-database.d.mts.map +1 -1
- package/dist/actions/create-database.mjs +1 -0
- package/dist/actions/create-database.mjs.map +1 -1
- package/dist/actions/create-project.cjs +1 -0
- package/dist/actions/create-project.cjs.map +1 -1
- package/dist/actions/create-project.d.cts +3 -4
- package/dist/actions/create-project.d.cts.map +1 -1
- package/dist/actions/create-project.d.mts +3 -4
- package/dist/actions/create-project.d.mts.map +1 -1
- package/dist/actions/create-project.mjs +1 -0
- package/dist/actions/create-project.mjs.map +1 -1
- package/dist/actions/delete-connection.cjs +1 -0
- package/dist/actions/delete-connection.cjs.map +1 -1
- package/dist/actions/delete-connection.d.cts +3 -3
- package/dist/actions/delete-connection.d.cts.map +1 -1
- package/dist/actions/delete-connection.d.mts +3 -3
- package/dist/actions/delete-connection.d.mts.map +1 -1
- package/dist/actions/delete-connection.mjs +1 -0
- package/dist/actions/delete-connection.mjs.map +1 -1
- package/dist/actions/delete-database.cjs +1 -0
- package/dist/actions/delete-database.cjs.map +1 -1
- package/dist/actions/delete-database.d.cts +3 -3
- package/dist/actions/delete-database.d.cts.map +1 -1
- package/dist/actions/delete-database.d.mts +3 -3
- package/dist/actions/delete-database.d.mts.map +1 -1
- package/dist/actions/delete-database.mjs +1 -0
- package/dist/actions/delete-database.mjs.map +1 -1
- package/dist/actions/delete-project.cjs +1 -0
- package/dist/actions/delete-project.cjs.map +1 -1
- package/dist/actions/delete-project.d.cts +3 -3
- package/dist/actions/delete-project.d.cts.map +1 -1
- package/dist/actions/delete-project.d.mts +3 -3
- package/dist/actions/delete-project.d.mts.map +1 -1
- package/dist/actions/delete-project.mjs +1 -0
- package/dist/actions/delete-project.mjs.map +1 -1
- package/dist/actions/execute-sql-command.cjs +1 -0
- package/dist/actions/execute-sql-command.cjs.map +1 -1
- package/dist/actions/execute-sql-command.d.cts +3 -5
- package/dist/actions/execute-sql-command.d.cts.map +1 -1
- package/dist/actions/execute-sql-command.d.mts +3 -5
- package/dist/actions/execute-sql-command.d.mts.map +1 -1
- package/dist/actions/execute-sql-command.mjs +1 -0
- package/dist/actions/execute-sql-command.mjs.map +1 -1
- package/dist/actions/execute-sql-query.cjs +1 -0
- package/dist/actions/execute-sql-query.cjs.map +1 -1
- package/dist/actions/execute-sql-query.d.cts +3 -7
- package/dist/actions/execute-sql-query.d.cts.map +1 -1
- package/dist/actions/execute-sql-query.d.mts +3 -7
- package/dist/actions/execute-sql-query.d.mts.map +1 -1
- package/dist/actions/execute-sql-query.mjs +1 -0
- package/dist/actions/execute-sql-query.mjs.map +1 -1
- package/dist/actions/get-database-usage.cjs +1 -0
- package/dist/actions/get-database-usage.cjs.map +1 -1
- package/dist/actions/get-database-usage.d.cts +3 -5
- package/dist/actions/get-database-usage.d.cts.map +1 -1
- package/dist/actions/get-database-usage.d.mts +3 -5
- package/dist/actions/get-database-usage.d.mts.map +1 -1
- package/dist/actions/get-database-usage.mjs +1 -0
- package/dist/actions/get-database-usage.mjs.map +1 -1
- package/dist/actions/get-database.cjs +1 -0
- package/dist/actions/get-database.cjs.map +1 -1
- package/dist/actions/get-database.d.cts +3 -3
- package/dist/actions/get-database.d.cts.map +1 -1
- package/dist/actions/get-database.d.mts +3 -3
- package/dist/actions/get-database.d.mts.map +1 -1
- package/dist/actions/get-database.mjs +1 -0
- package/dist/actions/get-database.mjs.map +1 -1
- package/dist/actions/get-project.cjs +1 -0
- package/dist/actions/get-project.cjs.map +1 -1
- package/dist/actions/get-project.d.cts +3 -3
- package/dist/actions/get-project.d.cts.map +1 -1
- package/dist/actions/get-project.d.mts +3 -3
- package/dist/actions/get-project.d.mts.map +1 -1
- package/dist/actions/get-project.mjs +1 -0
- package/dist/actions/get-project.mjs.map +1 -1
- package/dist/actions/inspect-database-schema.cjs +1 -0
- package/dist/actions/inspect-database-schema.cjs.map +1 -1
- package/dist/actions/inspect-database-schema.d.cts +3 -7
- package/dist/actions/inspect-database-schema.d.cts.map +1 -1
- package/dist/actions/inspect-database-schema.d.mts +3 -7
- package/dist/actions/inspect-database-schema.d.mts.map +1 -1
- package/dist/actions/inspect-database-schema.mjs +1 -0
- package/dist/actions/inspect-database-schema.mjs.map +1 -1
- package/dist/actions/list-accelerate-regions.cjs +1 -0
- package/dist/actions/list-accelerate-regions.cjs.map +1 -1
- package/dist/actions/list-accelerate-regions.d.cts +3 -1
- package/dist/actions/list-accelerate-regions.d.cts.map +1 -1
- package/dist/actions/list-accelerate-regions.d.mts +3 -1
- package/dist/actions/list-accelerate-regions.d.mts.map +1 -1
- package/dist/actions/list-accelerate-regions.mjs +1 -0
- package/dist/actions/list-accelerate-regions.mjs.map +1 -1
- package/dist/actions/list-backups.cjs +1 -0
- package/dist/actions/list-backups.cjs.map +1 -1
- package/dist/actions/list-backups.d.cts +3 -4
- package/dist/actions/list-backups.d.cts.map +1 -1
- package/dist/actions/list-backups.d.mts +3 -4
- package/dist/actions/list-backups.d.mts.map +1 -1
- package/dist/actions/list-backups.mjs +1 -0
- package/dist/actions/list-backups.mjs.map +1 -1
- package/dist/actions/list-connections.cjs +1 -0
- package/dist/actions/list-connections.cjs.map +1 -1
- package/dist/actions/list-connections.d.cts +3 -5
- package/dist/actions/list-connections.d.cts.map +1 -1
- package/dist/actions/list-connections.d.mts +3 -5
- package/dist/actions/list-connections.d.mts.map +1 -1
- package/dist/actions/list-connections.mjs +1 -0
- package/dist/actions/list-connections.mjs.map +1 -1
- package/dist/actions/list-databases.cjs +1 -0
- package/dist/actions/list-databases.cjs.map +1 -1
- package/dist/actions/list-databases.d.cts +3 -5
- package/dist/actions/list-databases.d.cts.map +1 -1
- package/dist/actions/list-databases.d.mts +3 -5
- package/dist/actions/list-databases.d.mts.map +1 -1
- package/dist/actions/list-databases.mjs +1 -0
- package/dist/actions/list-databases.mjs.map +1 -1
- package/dist/actions/list-postgres-regions.cjs +1 -0
- package/dist/actions/list-postgres-regions.cjs.map +1 -1
- package/dist/actions/list-postgres-regions.d.cts +3 -1
- package/dist/actions/list-postgres-regions.d.cts.map +1 -1
- package/dist/actions/list-postgres-regions.d.mts +3 -1
- package/dist/actions/list-postgres-regions.d.mts.map +1 -1
- package/dist/actions/list-postgres-regions.mjs +1 -0
- package/dist/actions/list-postgres-regions.mjs.map +1 -1
- package/dist/actions/list-projects.cjs +1 -0
- package/dist/actions/list-projects.cjs.map +1 -1
- package/dist/actions/list-projects.d.cts +3 -4
- package/dist/actions/list-projects.d.cts.map +1 -1
- package/dist/actions/list-projects.d.mts +3 -4
- package/dist/actions/list-projects.d.mts.map +1 -1
- package/dist/actions/list-projects.mjs +1 -0
- package/dist/actions/list-projects.mjs.map +1 -1
- package/dist/actions/list-workspace-integrations.cjs +1 -0
- package/dist/actions/list-workspace-integrations.cjs.map +1 -1
- package/dist/actions/list-workspace-integrations.d.cts +3 -5
- package/dist/actions/list-workspace-integrations.d.cts.map +1 -1
- package/dist/actions/list-workspace-integrations.d.mts +3 -5
- package/dist/actions/list-workspace-integrations.d.mts.map +1 -1
- package/dist/actions/list-workspace-integrations.mjs +1 -0
- package/dist/actions/list-workspace-integrations.mjs.map +1 -1
- package/dist/actions/list-workspaces.cjs +1 -0
- package/dist/actions/list-workspaces.cjs.map +1 -1
- package/dist/actions/list-workspaces.d.cts +3 -4
- package/dist/actions/list-workspaces.d.cts.map +1 -1
- package/dist/actions/list-workspaces.d.mts +3 -4
- package/dist/actions/list-workspaces.d.mts.map +1 -1
- package/dist/actions/list-workspaces.mjs +1 -0
- package/dist/actions/list-workspaces.mjs.map +1 -1
- package/dist/actions/restore-backup.cjs +1 -0
- package/dist/actions/restore-backup.cjs.map +1 -1
- package/dist/actions/restore-backup.d.cts +3 -5
- package/dist/actions/restore-backup.d.cts.map +1 -1
- package/dist/actions/restore-backup.d.mts +3 -5
- package/dist/actions/restore-backup.d.mts.map +1 -1
- package/dist/actions/restore-backup.mjs +1 -0
- package/dist/actions/restore-backup.mjs.map +1 -1
- package/dist/actions/transfer-project.cjs +1 -0
- package/dist/actions/transfer-project.cjs.map +1 -1
- package/dist/actions/transfer-project.d.cts +3 -4
- package/dist/actions/transfer-project.d.cts.map +1 -1
- package/dist/actions/transfer-project.d.mts +3 -4
- package/dist/actions/transfer-project.d.mts.map +1 -1
- package/dist/actions/transfer-project.mjs +1 -0
- package/dist/actions/transfer-project.mjs.map +1 -1
- package/dist/app.cjs +5 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +7 -1
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +7 -1
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +3 -2
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { prisma } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-databases.d.ts
|
|
@@ -28,11 +30,7 @@ declare const PrismaListDatabasesOutput: z.ZodObject<{
|
|
|
28
30
|
nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
31
|
}, z.core.$loose>>;
|
|
30
32
|
}, z.core.$loose>;
|
|
31
|
-
declare const prismaListDatabases:
|
|
32
|
-
projectId: string;
|
|
33
|
-
limit?: number | undefined;
|
|
34
|
-
cursor?: string | undefined;
|
|
35
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
33
|
+
declare const prismaListDatabases: AppAction<typeof PrismaListDatabasesInput, typeof PrismaListDatabasesOutput, typeof prisma.credential>;
|
|
36
34
|
//#endregion
|
|
37
35
|
export { prismaListDatabases };
|
|
38
36
|
//# sourceMappingURL=list-databases.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-databases.d.mts","names":[],"sources":["../../src/actions/list-databases.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-databases.d.mts","names":[],"sources":["../../src/actions/list-databases.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;cA2BxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAKzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-databases.mjs","names":[],"sources":["../../src/actions/list-databases.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaListDatabasesInput = z.object({\n limit: z.number().int().default(100).describe(\"Maximum number of databases to return in a single request. Defaults to 100 if not specified. Valid range is typically 1-500. Use smaller values (10-50) for faster responses when you only need a few databases, or larger values (100-500) when bulk processing.\").optional(),\n cursor: z.string().describe(\"Pagination cursor for retrieving the next page of results. Use the 'nextCursor' value from a previous response to get subsequent pages. Leave as None/null for the first page. Enables efficient pagination through large numbers of databases without missing or duplicating entries.\").optional(),\n projectId: z.string().describe(\"Unique project identifier to list databases for (format: 'prj_xxxxx'). Must be a project the authenticated user has access to. All databases belonging to this project will be returned.\"),\n}).describe(\"Request parameters for listing databases in a project.\");\nconst PrismaListDatabases_RegionInfoSchema = z.object({\n id: z.string().describe(\"Region identifier (e.g., 'us-east-1').\").nullable(),\n name: z.string().describe(\"Human-readable region name (e.g., 'US East (N. Virginia)').\").nullable(),\n}).passthrough().describe(\"Database region information.\");\nconst PrismaListDatabases_ProjectInfoSchema = z.object({\n id: z.string().describe(\"Unique project ID containing this database.\").nullable(),\n name: z.string().describe(\"Human-readable project name.\").nullable(),\n}).passthrough().describe(\"Project information embedded in database objects.\");\nconst PrismaListDatabases_DatabaseSchema = z.object({\n id: z.string().describe(\"Unique database identifier (format: 'db_xxxxx'). Use this ID for database-specific operations like getting details, managing connections, or deletion.\").nullable(),\n name: z.string().describe(\"Human-readable database name set during creation. Used for identification and display in UIs. Often matches project name for default databases.\").nullable(),\n type: z.string().describe(\"Object type, always 'database'. Provides consistency across API responses.\").nullable(),\n region: PrismaListDatabases_RegionInfoSchema.nullable(),\n status: z.string().describe(\"Current database status indicating operational state. Common values: 'ready' (operational), 'provisioning' (being created), 'failure' (error state), 'maintenance' (temporary unavailable).\").nullable(),\n project: PrismaListDatabases_ProjectInfoSchema.nullable(),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp in UTC (e.g., '2025-07-20T11:08:16.761Z').\").nullable(),\n isDefault: z.boolean().describe(\"True if this is the default database for the project. Default databases are created automatically with projects and typically cannot be deleted.\").nullable(),\n}).passthrough().describe(\"Prisma postgres database in a project.\");\nconst PrismaListDatabases_PaginationSchema = z.object({\n hasMore: z.boolean().describe(\"True if more pages available. Check before making next request.\").nullable(),\n nextCursor: z.string().describe(\"Opaque cursor for next page. Pass to subsequent requests. Null when no more pages.\").nullable().optional(),\n}).passthrough().describe(\"Pagination metadata for cursor-based navigation through database results.\");\nexport const PrismaListDatabasesOutput = z.object({\n data: z.array(PrismaListDatabases_DatabaseSchema).describe(\"Array of database objects within the specified project. Databases are ordered by creation date with most recent first. Includes both default and additional databases created for the project.\"),\n pagination: PrismaListDatabases_PaginationSchema.nullable(),\n}).passthrough().describe(\"API response containing database list and pagination metadata.\");\n\nexport const prismaListDatabases = action(\"PRISMA_LIST_DATABASES\", {\n slug: \"prisma-list-databases\",\n name: \"List Project Databases\",\n description: \"Retrieve paginated list of databases for a specific Prisma project. Returns database details including status, region, and project context. Use for database discovery, monitoring, and project administration.\",\n input: PrismaListDatabasesInput,\n output: PrismaListDatabasesOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-databases.mjs","names":[],"sources":["../../src/actions/list-databases.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { prisma } from \"../app\";\n\nexport const PrismaListDatabasesInput = z.object({\n limit: z.number().int().default(100).describe(\"Maximum number of databases to return in a single request. Defaults to 100 if not specified. Valid range is typically 1-500. Use smaller values (10-50) for faster responses when you only need a few databases, or larger values (100-500) when bulk processing.\").optional(),\n cursor: z.string().describe(\"Pagination cursor for retrieving the next page of results. Use the 'nextCursor' value from a previous response to get subsequent pages. Leave as None/null for the first page. Enables efficient pagination through large numbers of databases without missing or duplicating entries.\").optional(),\n projectId: z.string().describe(\"Unique project identifier to list databases for (format: 'prj_xxxxx'). Must be a project the authenticated user has access to. All databases belonging to this project will be returned.\"),\n}).describe(\"Request parameters for listing databases in a project.\");\nconst PrismaListDatabases_RegionInfoSchema = z.object({\n id: z.string().describe(\"Region identifier (e.g., 'us-east-1').\").nullable(),\n name: z.string().describe(\"Human-readable region name (e.g., 'US East (N. Virginia)').\").nullable(),\n}).passthrough().describe(\"Database region information.\");\nconst PrismaListDatabases_ProjectInfoSchema = z.object({\n id: z.string().describe(\"Unique project ID containing this database.\").nullable(),\n name: z.string().describe(\"Human-readable project name.\").nullable(),\n}).passthrough().describe(\"Project information embedded in database objects.\");\nconst PrismaListDatabases_DatabaseSchema = z.object({\n id: z.string().describe(\"Unique database identifier (format: 'db_xxxxx'). Use this ID for database-specific operations like getting details, managing connections, or deletion.\").nullable(),\n name: z.string().describe(\"Human-readable database name set during creation. Used for identification and display in UIs. Often matches project name for default databases.\").nullable(),\n type: z.string().describe(\"Object type, always 'database'. Provides consistency across API responses.\").nullable(),\n region: PrismaListDatabases_RegionInfoSchema.nullable(),\n status: z.string().describe(\"Current database status indicating operational state. Common values: 'ready' (operational), 'provisioning' (being created), 'failure' (error state), 'maintenance' (temporary unavailable).\").nullable(),\n project: PrismaListDatabases_ProjectInfoSchema.nullable(),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp in UTC (e.g., '2025-07-20T11:08:16.761Z').\").nullable(),\n isDefault: z.boolean().describe(\"True if this is the default database for the project. Default databases are created automatically with projects and typically cannot be deleted.\").nullable(),\n}).passthrough().describe(\"Prisma postgres database in a project.\");\nconst PrismaListDatabases_PaginationSchema = z.object({\n hasMore: z.boolean().describe(\"True if more pages available. Check before making next request.\").nullable(),\n nextCursor: z.string().describe(\"Opaque cursor for next page. Pass to subsequent requests. Null when no more pages.\").nullable().optional(),\n}).passthrough().describe(\"Pagination metadata for cursor-based navigation through database results.\");\nexport const PrismaListDatabasesOutput = z.object({\n data: z.array(PrismaListDatabases_DatabaseSchema).describe(\"Array of database objects within the specified project. Databases are ordered by creation date with most recent first. Includes both default and additional databases created for the project.\"),\n pagination: PrismaListDatabases_PaginationSchema.nullable(),\n}).passthrough().describe(\"API response containing database list and pagination metadata.\");\n\nexport const prismaListDatabases: AppAction<\n typeof PrismaListDatabasesInput,\n typeof PrismaListDatabasesOutput,\n typeof prisma.credential\n> = action(\"PRISMA_LIST_DATABASES\", {\n slug: \"prisma-list-databases\",\n name: \"List Project Databases\",\n description: \"Retrieve paginated list of databases for a specific Prisma project. Returns database details including status, region, and project context. Use for database discovery, monitoring, and project administration.\",\n input: PrismaListDatabasesInput,\n output: PrismaListDatabasesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,mQAAmQ,CAAC,CAAC,SAAS;CAC5T,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wRAAwR,CAAC,CAAC,SAAS;CAC/T,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0LAA0L;AAC3N,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,uCAAuC,EAAE,OAAO;CACpD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC3E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8BAA8B;AACxD,MAAM,wCAAwC,EAAE,OAAO;CACrD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAChF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;AACrE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAC7E,MAAM,qCAAqC,EAAE,OAAO;CAClD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wJAAwJ,CAAC,CAAC,SAAS;CAC3L,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iJAAiJ,CAAC,CAAC,SAAS;CACtL,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CACjH,QAAQ,qCAAqC,SAAS;CACtD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6LAA6L,CAAC,CAAC,SAAS;CACpO,SAAS,sCAAsC,SAAS;CACxD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CAClH,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,kJAAkJ,CAAC,CAAC,SAAS;AAC/L,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAClE,MAAM,uCAAuC,EAAE,OAAO;CACpD,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC1G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2EAA2E;AAMrG,MAAa,sBAIT,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAduC,EAAE,OAAO;EAChD,MAAM,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,gMAAgM;EAC3P,YAAY,qCAAqC,SAAS;CAC5D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gEAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-postgres-regions.cjs","names":["z","action"],"sources":["../../src/actions/list-postgres-regions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaListPostgresRegionsInput = z.object({}).describe(\"Request parameters for listing Prisma Postgres regions.\");\nconst PrismaListPostgresRegions_PostgresRegionSchema = z.object({\n id: z.string().describe(\"Unique region identifier (e.g., 'us-east-1', 'eu-west-1'). Use this ID when creating databases to specify the desired region.\").nullable(),\n name: z.string().describe(\"Human-readable region name (e.g., 'US East (N. Virginia)', 'Europe (Ireland)'). Displays geographical location for user-friendly region selection.\").nullable(),\n type: z.string().describe(\"Object type, always 'region'. Provides consistency across API responses.\").nullable(),\n status: z.string().describe(\"Current region availability status for Prisma Postgres. Values: 'available' (ready for database creation), 'unavailable' (temporarily disabled), 'maintenance' (scheduled maintenance). Only use 'available' regions for new databases.\").nullable(),\n}).passthrough().describe(\"Prisma Postgres region object with availability status.\");\nexport const PrismaListPostgresRegionsOutput = z.object({\n data: z.array(PrismaListPostgresRegions_PostgresRegionSchema).describe(\"Array of Prisma Postgres regions with availability status. Filter for 'available' status when creating new databases. Regions are ordered by geographical priority.\"),\n}).passthrough().describe(\"API response containing available Prisma Postgres regions.\");\n\nexport const prismaListPostgresRegions = action(\"PRISMA_LIST_POSTGRES_REGIONS\", {\n slug: \"prisma-list-postgres-regions\",\n name: \"List Prisma Postgres Regions\",\n description: \"Retrieve all available regions for Prisma Postgres. Returns regions where Prisma Postgres databases can be deployed with current availability status. Use for region selection during database creation and capacity planning.\",\n input: PrismaListPostgresRegionsInput,\n output: PrismaListPostgresRegionsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-postgres-regions.cjs","names":["z","action"],"sources":["../../src/actions/list-postgres-regions.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { prisma } from \"../app\";\n\nexport const PrismaListPostgresRegionsInput = z.object({}).describe(\"Request parameters for listing Prisma Postgres regions.\");\nconst PrismaListPostgresRegions_PostgresRegionSchema = z.object({\n id: z.string().describe(\"Unique region identifier (e.g., 'us-east-1', 'eu-west-1'). Use this ID when creating databases to specify the desired region.\").nullable(),\n name: z.string().describe(\"Human-readable region name (e.g., 'US East (N. Virginia)', 'Europe (Ireland)'). Displays geographical location for user-friendly region selection.\").nullable(),\n type: z.string().describe(\"Object type, always 'region'. Provides consistency across API responses.\").nullable(),\n status: z.string().describe(\"Current region availability status for Prisma Postgres. Values: 'available' (ready for database creation), 'unavailable' (temporarily disabled), 'maintenance' (scheduled maintenance). Only use 'available' regions for new databases.\").nullable(),\n}).passthrough().describe(\"Prisma Postgres region object with availability status.\");\nexport const PrismaListPostgresRegionsOutput = z.object({\n data: z.array(PrismaListPostgresRegions_PostgresRegionSchema).describe(\"Array of Prisma Postgres regions with availability status. Filter for 'available' status when creating new databases. Regions are ordered by geographical priority.\"),\n}).passthrough().describe(\"API response containing available Prisma Postgres regions.\");\n\nexport const prismaListPostgresRegions: AppAction<\n typeof PrismaListPostgresRegionsInput,\n typeof PrismaListPostgresRegionsOutput,\n typeof prisma.credential\n> = action(\"PRISMA_LIST_POSTGRES_REGIONS\", {\n slug: \"prisma-list-postgres-regions\",\n name: \"List Prisma Postgres Regions\",\n description: \"Retrieve all available regions for Prisma Postgres. Returns regions where Prisma Postgres databases can be deployed with current availability status. Use for region selection during database creation and capacity planning.\",\n input: PrismaListPostgresRegionsInput,\n output: PrismaListPostgresRegionsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yDAAyD;AAC7H,MAAM,iDAAiDA,IAAAA,EAAE,OAAO;CAC9D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H,CAAC,CAAC,SAAS;CAClK,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oJAAoJ,CAAC,CAAC,SAAS;CACzL,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CAC/G,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yOAAyO,CAAC,CAAC,SAAS;AAClR,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAAyD;AACnF,MAAa,kCAAkCA,IAAAA,EAAE,OAAO,EACtD,MAAMA,IAAAA,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,qKAAqK,EAC9O,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4DAA4D;AAEtF,MAAa,4BAITC,eAAAA,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { prisma } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-postgres-regions.d.ts
|
|
@@ -10,7 +12,7 @@ declare const PrismaListPostgresRegionsOutput: z.ZodObject<{
|
|
|
10
12
|
status: z.ZodNullable<z.ZodString>;
|
|
11
13
|
}, z.core.$loose>>;
|
|
12
14
|
}, z.core.$loose>;
|
|
13
|
-
declare const prismaListPostgresRegions:
|
|
15
|
+
declare const prismaListPostgresRegions: AppAction<typeof PrismaListPostgresRegionsInput, typeof PrismaListPostgresRegionsOutput, typeof prisma.credential>;
|
|
14
16
|
//#endregion
|
|
15
17
|
export { prismaListPostgresRegions };
|
|
16
18
|
//# sourceMappingURL=list-postgres-regions.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-postgres-regions.d.cts","names":[],"sources":["../../src/actions/list-postgres-regions.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-postgres-regions.d.cts","names":[],"sources":["../../src/actions/list-postgres-regions.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAO9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;cAI/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { prisma } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-postgres-regions.d.ts
|
|
@@ -10,7 +12,7 @@ declare const PrismaListPostgresRegionsOutput: z.ZodObject<{
|
|
|
10
12
|
status: z.ZodNullable<z.ZodString>;
|
|
11
13
|
}, z.core.$loose>>;
|
|
12
14
|
}, z.core.$loose>;
|
|
13
|
-
declare const prismaListPostgresRegions:
|
|
15
|
+
declare const prismaListPostgresRegions: AppAction<typeof PrismaListPostgresRegionsInput, typeof PrismaListPostgresRegionsOutput, typeof prisma.credential>;
|
|
14
16
|
//#endregion
|
|
15
17
|
export { prismaListPostgresRegions };
|
|
16
18
|
//# sourceMappingURL=list-postgres-regions.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-postgres-regions.d.mts","names":[],"sources":["../../src/actions/list-postgres-regions.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-postgres-regions.d.mts","names":[],"sources":["../../src/actions/list-postgres-regions.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAO9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;cAI/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-postgres-regions.mjs","names":[],"sources":["../../src/actions/list-postgres-regions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaListPostgresRegionsInput = z.object({}).describe(\"Request parameters for listing Prisma Postgres regions.\");\nconst PrismaListPostgresRegions_PostgresRegionSchema = z.object({\n id: z.string().describe(\"Unique region identifier (e.g., 'us-east-1', 'eu-west-1'). Use this ID when creating databases to specify the desired region.\").nullable(),\n name: z.string().describe(\"Human-readable region name (e.g., 'US East (N. Virginia)', 'Europe (Ireland)'). Displays geographical location for user-friendly region selection.\").nullable(),\n type: z.string().describe(\"Object type, always 'region'. Provides consistency across API responses.\").nullable(),\n status: z.string().describe(\"Current region availability status for Prisma Postgres. Values: 'available' (ready for database creation), 'unavailable' (temporarily disabled), 'maintenance' (scheduled maintenance). Only use 'available' regions for new databases.\").nullable(),\n}).passthrough().describe(\"Prisma Postgres region object with availability status.\");\nexport const PrismaListPostgresRegionsOutput = z.object({\n data: z.array(PrismaListPostgresRegions_PostgresRegionSchema).describe(\"Array of Prisma Postgres regions with availability status. Filter for 'available' status when creating new databases. Regions are ordered by geographical priority.\"),\n}).passthrough().describe(\"API response containing available Prisma Postgres regions.\");\n\nexport const prismaListPostgresRegions = action(\"PRISMA_LIST_POSTGRES_REGIONS\", {\n slug: \"prisma-list-postgres-regions\",\n name: \"List Prisma Postgres Regions\",\n description: \"Retrieve all available regions for Prisma Postgres. Returns regions where Prisma Postgres databases can be deployed with current availability status. Use for region selection during database creation and capacity planning.\",\n input: PrismaListPostgresRegionsInput,\n output: PrismaListPostgresRegionsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-postgres-regions.mjs","names":[],"sources":["../../src/actions/list-postgres-regions.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { prisma } from \"../app\";\n\nexport const PrismaListPostgresRegionsInput = z.object({}).describe(\"Request parameters for listing Prisma Postgres regions.\");\nconst PrismaListPostgresRegions_PostgresRegionSchema = z.object({\n id: z.string().describe(\"Unique region identifier (e.g., 'us-east-1', 'eu-west-1'). Use this ID when creating databases to specify the desired region.\").nullable(),\n name: z.string().describe(\"Human-readable region name (e.g., 'US East (N. Virginia)', 'Europe (Ireland)'). Displays geographical location for user-friendly region selection.\").nullable(),\n type: z.string().describe(\"Object type, always 'region'. Provides consistency across API responses.\").nullable(),\n status: z.string().describe(\"Current region availability status for Prisma Postgres. Values: 'available' (ready for database creation), 'unavailable' (temporarily disabled), 'maintenance' (scheduled maintenance). Only use 'available' regions for new databases.\").nullable(),\n}).passthrough().describe(\"Prisma Postgres region object with availability status.\");\nexport const PrismaListPostgresRegionsOutput = z.object({\n data: z.array(PrismaListPostgresRegions_PostgresRegionSchema).describe(\"Array of Prisma Postgres regions with availability status. Filter for 'available' status when creating new databases. Regions are ordered by geographical priority.\"),\n}).passthrough().describe(\"API response containing available Prisma Postgres regions.\");\n\nexport const prismaListPostgresRegions: AppAction<\n typeof PrismaListPostgresRegionsInput,\n typeof PrismaListPostgresRegionsOutput,\n typeof prisma.credential\n> = action(\"PRISMA_LIST_POSTGRES_REGIONS\", {\n slug: \"prisma-list-postgres-regions\",\n name: \"List Prisma Postgres Regions\",\n description: \"Retrieve all available regions for Prisma Postgres. Returns regions where Prisma Postgres databases can be deployed with current availability status. Use for region selection during database creation and capacity planning.\",\n input: PrismaListPostgresRegionsInput,\n output: PrismaListPostgresRegionsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,iCAAiC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yDAAyD;AAC7H,MAAM,iDAAiD,EAAE,OAAO;CAC9D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H,CAAC,CAAC,SAAS;CAClK,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oJAAoJ,CAAC,CAAC,SAAS;CACzL,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CAC/G,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,yOAAyO,CAAC,CAAC,SAAS;AAClR,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAAyD;AAKnF,MAAa,4BAIT,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAb6C,EAAE,OAAO,EACtD,MAAM,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,qKAAqK,EAC9O,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4DAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-projects.cjs","names":["z","action"],"sources":["../../src/actions/list-projects.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaListProjectsInput = z.object({\n limit: z.number().int().default(100).describe(\"Maximum number of projects to return in a single request. Defaults to 100 if not specified. Valid range is typically 1-500. Use smaller values (10-50) for faster responses when you only need a few projects, or larger values (100-500) when bulk processing. The API may return fewer results than requested if fewer projects exist.\").optional(),\n cursor: z.string().describe(\"Pagination cursor for retrieving the next page of results. Use the 'nextCursor' value from a previous response to get subsequent pages. Leave as None/null for the first page. This enables efficient pagination through large numbers of projects without missing or duplicating entries.\").optional(),\n}).describe(\"Request parameters for listing Prisma projects with pagination support.\");\nconst PrismaListProjects_WorkspaceInfoSchema = z.object({\n id: z.string().describe(\"Unique workspace ID that contains this project (format: 'wksp_xxxxx').\").nullable(),\n name: z.string().describe(\"Human-readable workspace name for display purposes.\").nullable(),\n}).passthrough().describe(\"Workspace information embedded in project objects.\");\nconst PrismaListProjects_ProjectSchema = z.object({\n id: z.string().describe(\"Unique project identifier (format: 'prj_xxxxx'). Use this ID for all project-specific operations like getting details, creating databases, or managing environments.\").nullable(),\n name: z.string().describe(\"Human-readable project name set during creation. Used for display in UIs and identification. Can be modified by project admins.\").nullable(),\n type: z.string().describe(\"Object type, always 'project'. Provides consistency across API responses.\").nullable(),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp in UTC (e.g., '2025-07-20T10:54:59.040Z').\").nullable(),\n workspace: PrismaListProjects_WorkspaceInfoSchema.nullable(),\n}).passthrough().describe(\"Prisma project containing databases and environments.\");\nconst PrismaListProjects_PaginationSchema = z.object({\n hasMore: z.boolean().describe(\"True if more pages available. Check before making next request.\").nullable(),\n nextCursor: z.string().describe(\"Opaque cursor for next page. Pass to subsequent requests. Null when no more pages.\").nullable().optional(),\n}).passthrough().describe(\"Pagination metadata for cursor-based navigation through project results.\");\nexport const PrismaListProjectsOutput = z.object({\n data: z.array(PrismaListProjects_ProjectSchema).describe(\"Array of project objects accessible to the authenticated user. Projects are ordered by creation date with most recent first. Each project includes workspace context and creation metadata.\"),\n pagination: PrismaListProjects_PaginationSchema.nullable(),\n}).passthrough().describe(\"API response containing project list and pagination metadata.\");\n\nexport const prismaListProjects = action(\"PRISMA_LIST_PROJECTS\", {\n slug: \"prisma-list-projects\",\n name: \"List Prisma Projects\",\n description: \"Retrieve paginated list of Prisma projects accessible to authenticated user. Returns project IDs, names, workspace info, and timestamps with cursor-based pagination. Use for project discovery, UI selection flows, and administrative operations.\",\n input: PrismaListProjectsInput,\n output: PrismaListProjectsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-projects.cjs","names":["z","action"],"sources":["../../src/actions/list-projects.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { prisma } from \"../app\";\n\nexport const PrismaListProjectsInput = z.object({\n limit: z.number().int().default(100).describe(\"Maximum number of projects to return in a single request. Defaults to 100 if not specified. Valid range is typically 1-500. Use smaller values (10-50) for faster responses when you only need a few projects, or larger values (100-500) when bulk processing. The API may return fewer results than requested if fewer projects exist.\").optional(),\n cursor: z.string().describe(\"Pagination cursor for retrieving the next page of results. Use the 'nextCursor' value from a previous response to get subsequent pages. Leave as None/null for the first page. This enables efficient pagination through large numbers of projects without missing or duplicating entries.\").optional(),\n}).describe(\"Request parameters for listing Prisma projects with pagination support.\");\nconst PrismaListProjects_WorkspaceInfoSchema = z.object({\n id: z.string().describe(\"Unique workspace ID that contains this project (format: 'wksp_xxxxx').\").nullable(),\n name: z.string().describe(\"Human-readable workspace name for display purposes.\").nullable(),\n}).passthrough().describe(\"Workspace information embedded in project objects.\");\nconst PrismaListProjects_ProjectSchema = z.object({\n id: z.string().describe(\"Unique project identifier (format: 'prj_xxxxx'). Use this ID for all project-specific operations like getting details, creating databases, or managing environments.\").nullable(),\n name: z.string().describe(\"Human-readable project name set during creation. Used for display in UIs and identification. Can be modified by project admins.\").nullable(),\n type: z.string().describe(\"Object type, always 'project'. Provides consistency across API responses.\").nullable(),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp in UTC (e.g., '2025-07-20T10:54:59.040Z').\").nullable(),\n workspace: PrismaListProjects_WorkspaceInfoSchema.nullable(),\n}).passthrough().describe(\"Prisma project containing databases and environments.\");\nconst PrismaListProjects_PaginationSchema = z.object({\n hasMore: z.boolean().describe(\"True if more pages available. Check before making next request.\").nullable(),\n nextCursor: z.string().describe(\"Opaque cursor for next page. Pass to subsequent requests. Null when no more pages.\").nullable().optional(),\n}).passthrough().describe(\"Pagination metadata for cursor-based navigation through project results.\");\nexport const PrismaListProjectsOutput = z.object({\n data: z.array(PrismaListProjects_ProjectSchema).describe(\"Array of project objects accessible to the authenticated user. Projects are ordered by creation date with most recent first. Each project includes workspace context and creation metadata.\"),\n pagination: PrismaListProjects_PaginationSchema.nullable(),\n}).passthrough().describe(\"API response containing project list and pagination metadata.\");\n\nexport const prismaListProjects: AppAction<\n typeof PrismaListProjectsInput,\n typeof PrismaListProjectsOutput,\n typeof prisma.credential\n> = action(\"PRISMA_LIST_PROJECTS\", {\n slug: \"prisma-list-projects\",\n name: \"List Prisma Projects\",\n description: \"Retrieve paginated list of Prisma projects accessible to authenticated user. Returns project IDs, names, workspace info, and timestamps with cursor-based pagination. Use for project discovery, UI selection flows, and administrative operations.\",\n input: PrismaListProjectsInput,\n output: PrismaListProjectsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,0UAA0U,CAAC,CAAC,SAAS;CACnY,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4RAA4R,CAAC,CAAC,SAAS;AACrU,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAM,yCAAyCA,IAAAA,EAAE,OAAO;CACtD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CAC3G,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAC9E,MAAM,mCAAmCA,IAAAA,EAAE,OAAO;CAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sKAAsK,CAAC,CAAC,SAAS;CACzM,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI,CAAC,CAAC,SAAS;CACtK,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CAChH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CAClH,WAAW,uCAAuC,SAAS;AAC7D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AACjF,MAAM,sCAAsCA,IAAAA,EAAE,OAAO;CACnD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC1G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0EAA0E;AACpG,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,6LAA6L;CACtP,YAAY,oCAAoC,SAAS;AAC3D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+DAA+D;AAEzF,MAAa,qBAITC,eAAAA,OAAO,wBAAwB;CACjC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { prisma } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-projects.d.ts
|
|
@@ -21,10 +23,7 @@ declare const PrismaListProjectsOutput: z.ZodObject<{
|
|
|
21
23
|
nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
24
|
}, z.core.$loose>>;
|
|
23
25
|
}, z.core.$loose>;
|
|
24
|
-
declare const prismaListProjects:
|
|
25
|
-
limit?: number | undefined;
|
|
26
|
-
cursor?: string | undefined;
|
|
27
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
26
|
+
declare const prismaListProjects: AppAction<typeof PrismaListProjectsInput, typeof PrismaListProjectsOutput, typeof prisma.credential>;
|
|
28
27
|
//#endregion
|
|
29
28
|
export { prismaListProjects };
|
|
30
29
|
//# sourceMappingURL=list-projects.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-projects.d.cts","names":[],"sources":["../../src/actions/list-projects.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-projects.d.cts","names":[],"sources":["../../src/actions/list-projects.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;cAmBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAKxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { prisma } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-projects.d.ts
|
|
@@ -21,10 +23,7 @@ declare const PrismaListProjectsOutput: z.ZodObject<{
|
|
|
21
23
|
nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
24
|
}, z.core.$loose>>;
|
|
23
25
|
}, z.core.$loose>;
|
|
24
|
-
declare const prismaListProjects:
|
|
25
|
-
limit?: number | undefined;
|
|
26
|
-
cursor?: string | undefined;
|
|
27
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
26
|
+
declare const prismaListProjects: AppAction<typeof PrismaListProjectsInput, typeof PrismaListProjectsOutput, typeof prisma.credential>;
|
|
28
27
|
//#endregion
|
|
29
28
|
export { prismaListProjects };
|
|
30
29
|
//# sourceMappingURL=list-projects.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-projects.d.mts","names":[],"sources":["../../src/actions/list-projects.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-projects.d.mts","names":[],"sources":["../../src/actions/list-projects.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;cAmBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAKxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-projects.mjs","names":[],"sources":["../../src/actions/list-projects.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaListProjectsInput = z.object({\n limit: z.number().int().default(100).describe(\"Maximum number of projects to return in a single request. Defaults to 100 if not specified. Valid range is typically 1-500. Use smaller values (10-50) for faster responses when you only need a few projects, or larger values (100-500) when bulk processing. The API may return fewer results than requested if fewer projects exist.\").optional(),\n cursor: z.string().describe(\"Pagination cursor for retrieving the next page of results. Use the 'nextCursor' value from a previous response to get subsequent pages. Leave as None/null for the first page. This enables efficient pagination through large numbers of projects without missing or duplicating entries.\").optional(),\n}).describe(\"Request parameters for listing Prisma projects with pagination support.\");\nconst PrismaListProjects_WorkspaceInfoSchema = z.object({\n id: z.string().describe(\"Unique workspace ID that contains this project (format: 'wksp_xxxxx').\").nullable(),\n name: z.string().describe(\"Human-readable workspace name for display purposes.\").nullable(),\n}).passthrough().describe(\"Workspace information embedded in project objects.\");\nconst PrismaListProjects_ProjectSchema = z.object({\n id: z.string().describe(\"Unique project identifier (format: 'prj_xxxxx'). Use this ID for all project-specific operations like getting details, creating databases, or managing environments.\").nullable(),\n name: z.string().describe(\"Human-readable project name set during creation. Used for display in UIs and identification. Can be modified by project admins.\").nullable(),\n type: z.string().describe(\"Object type, always 'project'. Provides consistency across API responses.\").nullable(),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp in UTC (e.g., '2025-07-20T10:54:59.040Z').\").nullable(),\n workspace: PrismaListProjects_WorkspaceInfoSchema.nullable(),\n}).passthrough().describe(\"Prisma project containing databases and environments.\");\nconst PrismaListProjects_PaginationSchema = z.object({\n hasMore: z.boolean().describe(\"True if more pages available. Check before making next request.\").nullable(),\n nextCursor: z.string().describe(\"Opaque cursor for next page. Pass to subsequent requests. Null when no more pages.\").nullable().optional(),\n}).passthrough().describe(\"Pagination metadata for cursor-based navigation through project results.\");\nexport const PrismaListProjectsOutput = z.object({\n data: z.array(PrismaListProjects_ProjectSchema).describe(\"Array of project objects accessible to the authenticated user. Projects are ordered by creation date with most recent first. Each project includes workspace context and creation metadata.\"),\n pagination: PrismaListProjects_PaginationSchema.nullable(),\n}).passthrough().describe(\"API response containing project list and pagination metadata.\");\n\nexport const prismaListProjects = action(\"PRISMA_LIST_PROJECTS\", {\n slug: \"prisma-list-projects\",\n name: \"List Prisma Projects\",\n description: \"Retrieve paginated list of Prisma projects accessible to authenticated user. Returns project IDs, names, workspace info, and timestamps with cursor-based pagination. Use for project discovery, UI selection flows, and administrative operations.\",\n input: PrismaListProjectsInput,\n output: PrismaListProjectsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-projects.mjs","names":[],"sources":["../../src/actions/list-projects.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { prisma } from \"../app\";\n\nexport const PrismaListProjectsInput = z.object({\n limit: z.number().int().default(100).describe(\"Maximum number of projects to return in a single request. Defaults to 100 if not specified. Valid range is typically 1-500. Use smaller values (10-50) for faster responses when you only need a few projects, or larger values (100-500) when bulk processing. The API may return fewer results than requested if fewer projects exist.\").optional(),\n cursor: z.string().describe(\"Pagination cursor for retrieving the next page of results. Use the 'nextCursor' value from a previous response to get subsequent pages. Leave as None/null for the first page. This enables efficient pagination through large numbers of projects without missing or duplicating entries.\").optional(),\n}).describe(\"Request parameters for listing Prisma projects with pagination support.\");\nconst PrismaListProjects_WorkspaceInfoSchema = z.object({\n id: z.string().describe(\"Unique workspace ID that contains this project (format: 'wksp_xxxxx').\").nullable(),\n name: z.string().describe(\"Human-readable workspace name for display purposes.\").nullable(),\n}).passthrough().describe(\"Workspace information embedded in project objects.\");\nconst PrismaListProjects_ProjectSchema = z.object({\n id: z.string().describe(\"Unique project identifier (format: 'prj_xxxxx'). Use this ID for all project-specific operations like getting details, creating databases, or managing environments.\").nullable(),\n name: z.string().describe(\"Human-readable project name set during creation. Used for display in UIs and identification. Can be modified by project admins.\").nullable(),\n type: z.string().describe(\"Object type, always 'project'. Provides consistency across API responses.\").nullable(),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp in UTC (e.g., '2025-07-20T10:54:59.040Z').\").nullable(),\n workspace: PrismaListProjects_WorkspaceInfoSchema.nullable(),\n}).passthrough().describe(\"Prisma project containing databases and environments.\");\nconst PrismaListProjects_PaginationSchema = z.object({\n hasMore: z.boolean().describe(\"True if more pages available. Check before making next request.\").nullable(),\n nextCursor: z.string().describe(\"Opaque cursor for next page. Pass to subsequent requests. Null when no more pages.\").nullable().optional(),\n}).passthrough().describe(\"Pagination metadata for cursor-based navigation through project results.\");\nexport const PrismaListProjectsOutput = z.object({\n data: z.array(PrismaListProjects_ProjectSchema).describe(\"Array of project objects accessible to the authenticated user. Projects are ordered by creation date with most recent first. Each project includes workspace context and creation metadata.\"),\n pagination: PrismaListProjects_PaginationSchema.nullable(),\n}).passthrough().describe(\"API response containing project list and pagination metadata.\");\n\nexport const prismaListProjects: AppAction<\n typeof PrismaListProjectsInput,\n typeof PrismaListProjectsOutput,\n typeof prisma.credential\n> = action(\"PRISMA_LIST_PROJECTS\", {\n slug: \"prisma-list-projects\",\n name: \"List Prisma Projects\",\n description: \"Retrieve paginated list of Prisma projects accessible to authenticated user. Returns project IDs, names, workspace info, and timestamps with cursor-based pagination. Use for project discovery, UI selection flows, and administrative operations.\",\n input: PrismaListProjectsInput,\n output: PrismaListProjectsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,0UAA0U,CAAC,CAAC,SAAS;CACnY,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4RAA4R,CAAC,CAAC,SAAS;AACrU,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAM,yCAAyC,EAAE,OAAO;CACtD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CAC3G,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAC9E,MAAM,mCAAmC,EAAE,OAAO;CAChD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,sKAAsK,CAAC,CAAC,SAAS;CACzM,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI,CAAC,CAAC,SAAS;CACtK,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CAChH,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CAClH,WAAW,uCAAuC,SAAS;AAC7D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AACjF,MAAM,sCAAsC,EAAE,OAAO;CACnD,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC1G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0EAA0E;AAMpG,MAAa,qBAIT,OAAO,wBAAwB;CACjC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdsC,EAAE,OAAO;EAC/C,MAAM,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,6LAA6L;EACtP,YAAY,oCAAoC,SAAS;CAC3D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+DAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-workspace-integrations.cjs","names":["z","action"],"sources":["../../src/actions/list-workspace-integrations.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaListWorkspaceIntegrationsInput = z.object({\n limit: z.number().int().default(100).describe(\"Maximum number of integrations to return in a single request. Defaults to 100 if not specified. Valid range is typically 1-500. Use smaller values (10-50) for faster responses when you only need a few integrations, or larger values (100-500) when bulk processing.\").optional(),\n cursor: z.string().describe(\"Pagination cursor for retrieving the next page of results. Use the 'nextCursor' value from a previous response to get subsequent pages. Leave as None/null for the first page. Enables efficient pagination through large numbers of integrations without missing or duplicating entries.\").optional(),\n workspaceId: z.string().describe(\"Unique workspace identifier to list integrations for (format: 'wksp_xxxxx'). Must be a workspace the authenticated user has access to. All integrations belonging to this workspace will be returned.\"),\n}).describe(\"Request parameters for listing integrations in a workspace.\");\nconst PrismaListWorkspaceIntegrations_ClientInfoSchema = z.object({\n id: z.string().describe(\"Unique client identifier for the OAuth application.\").nullable(),\n name: z.string().describe(\"Human-readable name of the OAuth client application.\").nullable(),\n redirectUri: z.string().describe(\"OAuth redirect URI where authorization responses are sent after user consent.\").nullable(),\n}).passthrough().describe(\"OAuth client information for an integration.\");\nconst PrismaListWorkspaceIntegrations_UserInfoSchema = z.object({\n id: z.string().describe(\"Unique user identifier who created the integration.\").nullable(),\n email: z.string().describe(\"Email address of the user who created the integration. Used for auditing and contact purposes.\").nullable(),\n}).passthrough().describe(\"User information for the creator of an integration.\");\nconst PrismaListWorkspaceIntegrations_IntegrationSchema = z.object({\n id: z.string().describe(\"Unique integration identifier (format: 'int_xxxxx'). Use this ID for integration-specific operations like revocation or management.\").nullable(),\n client: PrismaListWorkspaceIntegrations_ClientInfoSchema.nullable(),\n scopes: z.array(z.string()).describe(\"List of OAuth scopes granted to this integration (e.g., ['workspace:read', 'workspace:admin', 'offline_access']). Scopes determine the level of access this integration has to workspace resources. Common scopes include workspace:read, workspace:admin, database:read, database:write, and offline_access.\"),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp in UTC (e.g., '2025-07-20T11:08:16.761Z').\").nullable(),\n createdByUser: PrismaListWorkspaceIntegrations_UserInfoSchema.nullable(),\n}).passthrough().describe(\"Workspace integration with OAuth client and scope details.\");\nconst PrismaListWorkspaceIntegrations_PaginationSchema = z.object({\n hasMore: z.boolean().describe(\"True if more pages available. Check before making next request.\").nullable(),\n nextCursor: z.string().describe(\"Opaque cursor for next page. Pass to subsequent requests. Null when no more pages.\").nullable().optional(),\n}).passthrough().describe(\"Pagination metadata for cursor-based navigation through integration results.\");\nexport const PrismaListWorkspaceIntegrationsOutput = z.object({\n data: z.array(PrismaListWorkspaceIntegrations_IntegrationSchema).describe(\"Array of integration objects within the specified workspace. Integrations represent OAuth applications with authorized access to workspace resources. Includes client details, granted scopes, and creator information for each integration.\"),\n pagination: PrismaListWorkspaceIntegrations_PaginationSchema.nullable(),\n}).passthrough().describe(\"API response containing integration list and pagination metadata.\");\n\nexport const prismaListWorkspaceIntegrations = action(\"PRISMA_LIST_WORKSPACE_INTEGRATIONS\", {\n slug: \"prisma-list-workspace-integrations\",\n name: \"List Workspace Integrations\",\n description: \"Retrieve paginated list of integrations for a specific Prisma workspace. Returns integration details including OAuth client info, granted scopes, and creator. Use for security audits, integration management, and workspace administration.\",\n input: PrismaListWorkspaceIntegrationsInput,\n output: PrismaListWorkspaceIntegrationsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-workspace-integrations.cjs","names":["z","action"],"sources":["../../src/actions/list-workspace-integrations.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { prisma } from \"../app\";\n\nexport const PrismaListWorkspaceIntegrationsInput = z.object({\n limit: z.number().int().default(100).describe(\"Maximum number of integrations to return in a single request. Defaults to 100 if not specified. Valid range is typically 1-500. Use smaller values (10-50) for faster responses when you only need a few integrations, or larger values (100-500) when bulk processing.\").optional(),\n cursor: z.string().describe(\"Pagination cursor for retrieving the next page of results. Use the 'nextCursor' value from a previous response to get subsequent pages. Leave as None/null for the first page. Enables efficient pagination through large numbers of integrations without missing or duplicating entries.\").optional(),\n workspaceId: z.string().describe(\"Unique workspace identifier to list integrations for (format: 'wksp_xxxxx'). Must be a workspace the authenticated user has access to. All integrations belonging to this workspace will be returned.\"),\n}).describe(\"Request parameters for listing integrations in a workspace.\");\nconst PrismaListWorkspaceIntegrations_ClientInfoSchema = z.object({\n id: z.string().describe(\"Unique client identifier for the OAuth application.\").nullable(),\n name: z.string().describe(\"Human-readable name of the OAuth client application.\").nullable(),\n redirectUri: z.string().describe(\"OAuth redirect URI where authorization responses are sent after user consent.\").nullable(),\n}).passthrough().describe(\"OAuth client information for an integration.\");\nconst PrismaListWorkspaceIntegrations_UserInfoSchema = z.object({\n id: z.string().describe(\"Unique user identifier who created the integration.\").nullable(),\n email: z.string().describe(\"Email address of the user who created the integration. Used for auditing and contact purposes.\").nullable(),\n}).passthrough().describe(\"User information for the creator of an integration.\");\nconst PrismaListWorkspaceIntegrations_IntegrationSchema = z.object({\n id: z.string().describe(\"Unique integration identifier (format: 'int_xxxxx'). Use this ID for integration-specific operations like revocation or management.\").nullable(),\n client: PrismaListWorkspaceIntegrations_ClientInfoSchema.nullable(),\n scopes: z.array(z.string()).describe(\"List of OAuth scopes granted to this integration (e.g., ['workspace:read', 'workspace:admin', 'offline_access']). Scopes determine the level of access this integration has to workspace resources. Common scopes include workspace:read, workspace:admin, database:read, database:write, and offline_access.\"),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp in UTC (e.g., '2025-07-20T11:08:16.761Z').\").nullable(),\n createdByUser: PrismaListWorkspaceIntegrations_UserInfoSchema.nullable(),\n}).passthrough().describe(\"Workspace integration with OAuth client and scope details.\");\nconst PrismaListWorkspaceIntegrations_PaginationSchema = z.object({\n hasMore: z.boolean().describe(\"True if more pages available. Check before making next request.\").nullable(),\n nextCursor: z.string().describe(\"Opaque cursor for next page. Pass to subsequent requests. Null when no more pages.\").nullable().optional(),\n}).passthrough().describe(\"Pagination metadata for cursor-based navigation through integration results.\");\nexport const PrismaListWorkspaceIntegrationsOutput = z.object({\n data: z.array(PrismaListWorkspaceIntegrations_IntegrationSchema).describe(\"Array of integration objects within the specified workspace. Integrations represent OAuth applications with authorized access to workspace resources. Includes client details, granted scopes, and creator information for each integration.\"),\n pagination: PrismaListWorkspaceIntegrations_PaginationSchema.nullable(),\n}).passthrough().describe(\"API response containing integration list and pagination metadata.\");\n\nexport const prismaListWorkspaceIntegrations: AppAction<\n typeof PrismaListWorkspaceIntegrationsInput,\n typeof PrismaListWorkspaceIntegrationsOutput,\n typeof prisma.credential\n> = action(\"PRISMA_LIST_WORKSPACE_INTEGRATIONS\", {\n slug: \"prisma-list-workspace-integrations\",\n name: \"List Workspace Integrations\",\n description: \"Retrieve paginated list of integrations for a specific Prisma workspace. Returns integration details including OAuth client info, granted scopes, and creator. Use for security audits, integration management, and workspace administration.\",\n input: PrismaListWorkspaceIntegrationsInput,\n output: PrismaListWorkspaceIntegrationsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,uCAAuCA,IAAAA,EAAE,OAAO;CAC3D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,yQAAyQ,CAAC,CAAC,SAAS;CAClU,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2RAA2R,CAAC,CAAC,SAAS;CAClU,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uMAAuM;AAC1O,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,mDAAmDA,IAAAA,EAAE,OAAO;CAChE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACxF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC3F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;AAC7H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AACxE,MAAM,iDAAiDA,IAAAA,EAAE,OAAO;CAC9D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACxF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;AACxI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAC/E,MAAM,oDAAoDA,IAAAA,EAAE,OAAO;CACjE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qIAAqI,CAAC,CAAC,SAAS;CACxK,QAAQ,iDAAiD,SAAS;CAClE,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+SAA+S;CACpV,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CAClH,eAAe,+CAA+C,SAAS;AACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4DAA4D;AACtF,MAAM,mDAAmDA,IAAAA,EAAE,OAAO;CAChE,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC1G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8EAA8E;AACxG,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,MAAMA,IAAAA,EAAE,MAAM,iDAAiD,CAAC,CAAC,SAAS,8OAA8O;CACxT,YAAY,iDAAiD,SAAS;AACxE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mEAAmE;AAE7F,MAAa,kCAITC,eAAAA,OAAO,sCAAsC;CAC/C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { prisma } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-workspace-integrations.d.ts
|
|
@@ -26,11 +28,7 @@ declare const PrismaListWorkspaceIntegrationsOutput: z.ZodObject<{
|
|
|
26
28
|
nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
29
|
}, z.core.$loose>>;
|
|
28
30
|
}, z.core.$loose>;
|
|
29
|
-
declare const prismaListWorkspaceIntegrations:
|
|
30
|
-
workspaceId: string;
|
|
31
|
-
limit?: number | undefined;
|
|
32
|
-
cursor?: string | undefined;
|
|
33
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
31
|
+
declare const prismaListWorkspaceIntegrations: AppAction<typeof PrismaListWorkspaceIntegrationsInput, typeof PrismaListWorkspaceIntegrationsOutput, typeof prisma.credential>;
|
|
34
32
|
//#endregion
|
|
35
33
|
export { prismaListWorkspaceIntegrations };
|
|
36
34
|
//# sourceMappingURL=list-workspace-integrations.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-workspace-integrations.d.cts","names":[],"sources":["../../src/actions/list-workspace-integrations.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-workspace-integrations.d.cts","names":[],"sources":["../../src/actions/list-workspace-integrations.ts"],"mappings":";;;;;cAMa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;cAyBpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAKrC,+BAAA,EAAiC,SAAA,QACrC,oCAAA,SACA,qCAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { prisma } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-workspace-integrations.d.ts
|
|
@@ -26,11 +28,7 @@ declare const PrismaListWorkspaceIntegrationsOutput: z.ZodObject<{
|
|
|
26
28
|
nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
29
|
}, z.core.$loose>>;
|
|
28
30
|
}, z.core.$loose>;
|
|
29
|
-
declare const prismaListWorkspaceIntegrations:
|
|
30
|
-
workspaceId: string;
|
|
31
|
-
limit?: number | undefined;
|
|
32
|
-
cursor?: string | undefined;
|
|
33
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
31
|
+
declare const prismaListWorkspaceIntegrations: AppAction<typeof PrismaListWorkspaceIntegrationsInput, typeof PrismaListWorkspaceIntegrationsOutput, typeof prisma.credential>;
|
|
34
32
|
//#endregion
|
|
35
33
|
export { prismaListWorkspaceIntegrations };
|
|
36
34
|
//# sourceMappingURL=list-workspace-integrations.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-workspace-integrations.d.mts","names":[],"sources":["../../src/actions/list-workspace-integrations.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-workspace-integrations.d.mts","names":[],"sources":["../../src/actions/list-workspace-integrations.ts"],"mappings":";;;;;cAMa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;cAyBpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAKrC,+BAAA,EAAiC,SAAA,QACrC,oCAAA,SACA,qCAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-workspace-integrations.mjs","names":[],"sources":["../../src/actions/list-workspace-integrations.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaListWorkspaceIntegrationsInput = z.object({\n limit: z.number().int().default(100).describe(\"Maximum number of integrations to return in a single request. Defaults to 100 if not specified. Valid range is typically 1-500. Use smaller values (10-50) for faster responses when you only need a few integrations, or larger values (100-500) when bulk processing.\").optional(),\n cursor: z.string().describe(\"Pagination cursor for retrieving the next page of results. Use the 'nextCursor' value from a previous response to get subsequent pages. Leave as None/null for the first page. Enables efficient pagination through large numbers of integrations without missing or duplicating entries.\").optional(),\n workspaceId: z.string().describe(\"Unique workspace identifier to list integrations for (format: 'wksp_xxxxx'). Must be a workspace the authenticated user has access to. All integrations belonging to this workspace will be returned.\"),\n}).describe(\"Request parameters for listing integrations in a workspace.\");\nconst PrismaListWorkspaceIntegrations_ClientInfoSchema = z.object({\n id: z.string().describe(\"Unique client identifier for the OAuth application.\").nullable(),\n name: z.string().describe(\"Human-readable name of the OAuth client application.\").nullable(),\n redirectUri: z.string().describe(\"OAuth redirect URI where authorization responses are sent after user consent.\").nullable(),\n}).passthrough().describe(\"OAuth client information for an integration.\");\nconst PrismaListWorkspaceIntegrations_UserInfoSchema = z.object({\n id: z.string().describe(\"Unique user identifier who created the integration.\").nullable(),\n email: z.string().describe(\"Email address of the user who created the integration. Used for auditing and contact purposes.\").nullable(),\n}).passthrough().describe(\"User information for the creator of an integration.\");\nconst PrismaListWorkspaceIntegrations_IntegrationSchema = z.object({\n id: z.string().describe(\"Unique integration identifier (format: 'int_xxxxx'). Use this ID for integration-specific operations like revocation or management.\").nullable(),\n client: PrismaListWorkspaceIntegrations_ClientInfoSchema.nullable(),\n scopes: z.array(z.string()).describe(\"List of OAuth scopes granted to this integration (e.g., ['workspace:read', 'workspace:admin', 'offline_access']). Scopes determine the level of access this integration has to workspace resources. Common scopes include workspace:read, workspace:admin, database:read, database:write, and offline_access.\"),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp in UTC (e.g., '2025-07-20T11:08:16.761Z').\").nullable(),\n createdByUser: PrismaListWorkspaceIntegrations_UserInfoSchema.nullable(),\n}).passthrough().describe(\"Workspace integration with OAuth client and scope details.\");\nconst PrismaListWorkspaceIntegrations_PaginationSchema = z.object({\n hasMore: z.boolean().describe(\"True if more pages available. Check before making next request.\").nullable(),\n nextCursor: z.string().describe(\"Opaque cursor for next page. Pass to subsequent requests. Null when no more pages.\").nullable().optional(),\n}).passthrough().describe(\"Pagination metadata for cursor-based navigation through integration results.\");\nexport const PrismaListWorkspaceIntegrationsOutput = z.object({\n data: z.array(PrismaListWorkspaceIntegrations_IntegrationSchema).describe(\"Array of integration objects within the specified workspace. Integrations represent OAuth applications with authorized access to workspace resources. Includes client details, granted scopes, and creator information for each integration.\"),\n pagination: PrismaListWorkspaceIntegrations_PaginationSchema.nullable(),\n}).passthrough().describe(\"API response containing integration list and pagination metadata.\");\n\nexport const prismaListWorkspaceIntegrations = action(\"PRISMA_LIST_WORKSPACE_INTEGRATIONS\", {\n slug: \"prisma-list-workspace-integrations\",\n name: \"List Workspace Integrations\",\n description: \"Retrieve paginated list of integrations for a specific Prisma workspace. Returns integration details including OAuth client info, granted scopes, and creator. Use for security audits, integration management, and workspace administration.\",\n input: PrismaListWorkspaceIntegrationsInput,\n output: PrismaListWorkspaceIntegrationsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-workspace-integrations.mjs","names":[],"sources":["../../src/actions/list-workspace-integrations.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { prisma } from \"../app\";\n\nexport const PrismaListWorkspaceIntegrationsInput = z.object({\n limit: z.number().int().default(100).describe(\"Maximum number of integrations to return in a single request. Defaults to 100 if not specified. Valid range is typically 1-500. Use smaller values (10-50) for faster responses when you only need a few integrations, or larger values (100-500) when bulk processing.\").optional(),\n cursor: z.string().describe(\"Pagination cursor for retrieving the next page of results. Use the 'nextCursor' value from a previous response to get subsequent pages. Leave as None/null for the first page. Enables efficient pagination through large numbers of integrations without missing or duplicating entries.\").optional(),\n workspaceId: z.string().describe(\"Unique workspace identifier to list integrations for (format: 'wksp_xxxxx'). Must be a workspace the authenticated user has access to. All integrations belonging to this workspace will be returned.\"),\n}).describe(\"Request parameters for listing integrations in a workspace.\");\nconst PrismaListWorkspaceIntegrations_ClientInfoSchema = z.object({\n id: z.string().describe(\"Unique client identifier for the OAuth application.\").nullable(),\n name: z.string().describe(\"Human-readable name of the OAuth client application.\").nullable(),\n redirectUri: z.string().describe(\"OAuth redirect URI where authorization responses are sent after user consent.\").nullable(),\n}).passthrough().describe(\"OAuth client information for an integration.\");\nconst PrismaListWorkspaceIntegrations_UserInfoSchema = z.object({\n id: z.string().describe(\"Unique user identifier who created the integration.\").nullable(),\n email: z.string().describe(\"Email address of the user who created the integration. Used for auditing and contact purposes.\").nullable(),\n}).passthrough().describe(\"User information for the creator of an integration.\");\nconst PrismaListWorkspaceIntegrations_IntegrationSchema = z.object({\n id: z.string().describe(\"Unique integration identifier (format: 'int_xxxxx'). Use this ID for integration-specific operations like revocation or management.\").nullable(),\n client: PrismaListWorkspaceIntegrations_ClientInfoSchema.nullable(),\n scopes: z.array(z.string()).describe(\"List of OAuth scopes granted to this integration (e.g., ['workspace:read', 'workspace:admin', 'offline_access']). Scopes determine the level of access this integration has to workspace resources. Common scopes include workspace:read, workspace:admin, database:read, database:write, and offline_access.\"),\n createdAt: z.string().describe(\"ISO 8601 creation timestamp in UTC (e.g., '2025-07-20T11:08:16.761Z').\").nullable(),\n createdByUser: PrismaListWorkspaceIntegrations_UserInfoSchema.nullable(),\n}).passthrough().describe(\"Workspace integration with OAuth client and scope details.\");\nconst PrismaListWorkspaceIntegrations_PaginationSchema = z.object({\n hasMore: z.boolean().describe(\"True if more pages available. Check before making next request.\").nullable(),\n nextCursor: z.string().describe(\"Opaque cursor for next page. Pass to subsequent requests. Null when no more pages.\").nullable().optional(),\n}).passthrough().describe(\"Pagination metadata for cursor-based navigation through integration results.\");\nexport const PrismaListWorkspaceIntegrationsOutput = z.object({\n data: z.array(PrismaListWorkspaceIntegrations_IntegrationSchema).describe(\"Array of integration objects within the specified workspace. Integrations represent OAuth applications with authorized access to workspace resources. Includes client details, granted scopes, and creator information for each integration.\"),\n pagination: PrismaListWorkspaceIntegrations_PaginationSchema.nullable(),\n}).passthrough().describe(\"API response containing integration list and pagination metadata.\");\n\nexport const prismaListWorkspaceIntegrations: AppAction<\n typeof PrismaListWorkspaceIntegrationsInput,\n typeof PrismaListWorkspaceIntegrationsOutput,\n typeof prisma.credential\n> = action(\"PRISMA_LIST_WORKSPACE_INTEGRATIONS\", {\n slug: \"prisma-list-workspace-integrations\",\n name: \"List Workspace Integrations\",\n description: \"Retrieve paginated list of integrations for a specific Prisma workspace. Returns integration details including OAuth client info, granted scopes, and creator. Use for security audits, integration management, and workspace administration.\",\n input: PrismaListWorkspaceIntegrationsInput,\n output: PrismaListWorkspaceIntegrationsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,uCAAuC,EAAE,OAAO;CAC3D,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,yQAAyQ,CAAC,CAAC,SAAS;CAClU,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2RAA2R,CAAC,CAAC,SAAS;CAClU,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uMAAuM;AAC1O,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,mDAAmD,EAAE,OAAO;CAChE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACxF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC3F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;AAC7H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AACxE,MAAM,iDAAiD,EAAE,OAAO;CAC9D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACxF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;AACxI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAC/E,MAAM,oDAAoD,EAAE,OAAO;CACjE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qIAAqI,CAAC,CAAC,SAAS;CACxK,QAAQ,iDAAiD,SAAS;CAClE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+SAA+S;CACpV,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CAClH,eAAe,+CAA+C,SAAS;AACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4DAA4D;AACtF,MAAM,mDAAmD,EAAE,OAAO;CAChE,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC1G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8EAA8E;AAMxG,MAAa,kCAIT,OAAO,sCAAsC;CAC/C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdmD,EAAE,OAAO;EAC5D,MAAM,EAAE,MAAM,iDAAiD,CAAC,CAAC,SAAS,8OAA8O;EACxT,YAAY,iDAAiD,SAAS;CACxE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mEAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-workspaces.cjs","names":["z","action"],"sources":["../../src/actions/list-workspaces.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaListWorkspacesInput = z.object({\n limit: z.number().int().default(100).describe(\"Maximum number of workspaces to return in a single request. Defaults to 100 if not specified. Valid range is typically 1-500. Use smaller values (10-50) for faster responses when you only need a few workspaces, or larger values (100-500) when bulk processing. The API may return fewer results than requested if fewer workspaces exist.\").optional(),\n cursor: z.string().describe(\"Pagination cursor for retrieving the next page of results. Use the 'nextCursor' value from a previous response to get subsequent pages. Leave as None/null for the first page. This enables efficient pagination through large numbers of workspaces without missing or duplicating entries.\").optional(),\n}).describe(\"Request parameters for listing Prisma workspaces with pagination support.\");\nconst PrismaListWorkspaces_WorkspaceSchema = z.object({\n id: z.string().describe(\"Unique immutable identifier for the workspace (e.g., 'wksp_cmd5tdzvx07si3o0wmiq7plxu'). This ID is used in all subsequent API calls to reference this specific workspace. It follows the format 'wksp_' followed by a random alphanumeric string. Store this ID to perform workspace-specific operations like listing projects, managing environments, or configuring workspace settings.\").nullable(),\n name: z.string().describe(\"Human-readable display name of the workspace (e.g., 'Personal workspace', 'Company Production'). This name is set by workspace administrators and can be modified. Use this for displaying workspace information to users in interfaces. Names are not unique identifiers - always use the 'id' field for programmatic references. Common patterns include team names, project names, or environment designations.\").nullable(),\n type: z.string().describe(\"Object type identifier, always set to 'workspace' for workspace objects. This field provides type safety and consistency across the Prisma API. It helps distinguish workspace objects from other entity types like projects, environments, or databases in mixed API responses or when processing collections of different object types.\").nullable(),\n createdAt: z.string().describe(\"ISO 8601 formatted timestamp indicating when the workspace was created (e.g., '2025-07-16T10:24:33.261Z'). This timestamp is in UTC timezone. Useful for auditing, sorting workspaces by age, or implementing retention policies. The timestamp includes millisecond precision and follows the format: YYYY-MM-DDTHH:mm:ss.sssZ where Z indicates UTC timezone.\").nullable(),\n}).passthrough().describe(\"Prisma workspace containing projects, environments, and team members.\");\nconst PrismaListWorkspaces_PaginationSchema = z.object({\n hasMore: z.boolean().describe(\"Boolean indicator of whether additional workspace pages are available. When true, more workspaces exist beyond the current page and you should make another request using the 'nextCursor' value to retrieve them. When false, the current page contains the last available workspaces. Always check this field before attempting pagination to avoid unnecessary API calls.\").nullable(),\n nextCursor: z.string().describe(\"Opaque cursor token for retrieving the next page of workspace results. This value should be passed as the 'cursor' parameter in subsequent requests to get the next set of workspaces. Will be null/None when there are no more pages available (i.e., when 'hasMore' is false). The cursor is a base64-encoded string that encodes the position in the result set - never attempt to parse or modify this value, always use it as-is.\").nullable().optional(),\n}).passthrough().describe(\"Pagination metadata for cursor-based navigation through workspace results.\");\nexport const PrismaListWorkspacesOutput = z.object({\n data: z.array(PrismaListWorkspaces_WorkspaceSchema).describe(\"Array of workspace objects accessible to the authenticated user. Each workspace represents a separate organizational unit with its own projects, environments, and team members. The list is ordered by most recently modified workspaces first. May be empty if the user has no workspace access or if all workspaces are beyond the pagination cursor. Each workspace object contains complete metadata including ID, name, creation timestamp, and object type for full programmatic access.\"),\n pagination: PrismaListWorkspaces_PaginationSchema.nullable(),\n}).passthrough().describe(\"API response containing workspace list and pagination metadata.\");\n\nexport const prismaListWorkspaces = action(\"PRISMA_LIST_WORKSPACES\", {\n slug: \"prisma-list-workspaces\",\n name: \"List Prisma Workspaces\",\n description: \"Retrieve paginated list of Prisma workspaces accessible to authenticated user. Returns workspace IDs, names, creation timestamps with cursor-based pagination. Use for workspace discovery, UI selection flows, and administrative operations.\",\n input: PrismaListWorkspacesInput,\n output: PrismaListWorkspacesOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-workspaces.cjs","names":["z","action"],"sources":["../../src/actions/list-workspaces.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { prisma } from \"../app\";\n\nexport const PrismaListWorkspacesInput = z.object({\n limit: z.number().int().default(100).describe(\"Maximum number of workspaces to return in a single request. Defaults to 100 if not specified. Valid range is typically 1-500. Use smaller values (10-50) for faster responses when you only need a few workspaces, or larger values (100-500) when bulk processing. The API may return fewer results than requested if fewer workspaces exist.\").optional(),\n cursor: z.string().describe(\"Pagination cursor for retrieving the next page of results. Use the 'nextCursor' value from a previous response to get subsequent pages. Leave as None/null for the first page. This enables efficient pagination through large numbers of workspaces without missing or duplicating entries.\").optional(),\n}).describe(\"Request parameters for listing Prisma workspaces with pagination support.\");\nconst PrismaListWorkspaces_WorkspaceSchema = z.object({\n id: z.string().describe(\"Unique immutable identifier for the workspace (e.g., 'wksp_cmd5tdzvx07si3o0wmiq7plxu'). This ID is used in all subsequent API calls to reference this specific workspace. It follows the format 'wksp_' followed by a random alphanumeric string. Store this ID to perform workspace-specific operations like listing projects, managing environments, or configuring workspace settings.\").nullable(),\n name: z.string().describe(\"Human-readable display name of the workspace (e.g., 'Personal workspace', 'Company Production'). This name is set by workspace administrators and can be modified. Use this for displaying workspace information to users in interfaces. Names are not unique identifiers - always use the 'id' field for programmatic references. Common patterns include team names, project names, or environment designations.\").nullable(),\n type: z.string().describe(\"Object type identifier, always set to 'workspace' for workspace objects. This field provides type safety and consistency across the Prisma API. It helps distinguish workspace objects from other entity types like projects, environments, or databases in mixed API responses or when processing collections of different object types.\").nullable(),\n createdAt: z.string().describe(\"ISO 8601 formatted timestamp indicating when the workspace was created (e.g., '2025-07-16T10:24:33.261Z'). This timestamp is in UTC timezone. Useful for auditing, sorting workspaces by age, or implementing retention policies. The timestamp includes millisecond precision and follows the format: YYYY-MM-DDTHH:mm:ss.sssZ where Z indicates UTC timezone.\").nullable(),\n}).passthrough().describe(\"Prisma workspace containing projects, environments, and team members.\");\nconst PrismaListWorkspaces_PaginationSchema = z.object({\n hasMore: z.boolean().describe(\"Boolean indicator of whether additional workspace pages are available. When true, more workspaces exist beyond the current page and you should make another request using the 'nextCursor' value to retrieve them. When false, the current page contains the last available workspaces. Always check this field before attempting pagination to avoid unnecessary API calls.\").nullable(),\n nextCursor: z.string().describe(\"Opaque cursor token for retrieving the next page of workspace results. This value should be passed as the 'cursor' parameter in subsequent requests to get the next set of workspaces. Will be null/None when there are no more pages available (i.e., when 'hasMore' is false). The cursor is a base64-encoded string that encodes the position in the result set - never attempt to parse or modify this value, always use it as-is.\").nullable().optional(),\n}).passthrough().describe(\"Pagination metadata for cursor-based navigation through workspace results.\");\nexport const PrismaListWorkspacesOutput = z.object({\n data: z.array(PrismaListWorkspaces_WorkspaceSchema).describe(\"Array of workspace objects accessible to the authenticated user. Each workspace represents a separate organizational unit with its own projects, environments, and team members. The list is ordered by most recently modified workspaces first. May be empty if the user has no workspace access or if all workspaces are beyond the pagination cursor. Each workspace object contains complete metadata including ID, name, creation timestamp, and object type for full programmatic access.\"),\n pagination: PrismaListWorkspaces_PaginationSchema.nullable(),\n}).passthrough().describe(\"API response containing workspace list and pagination metadata.\");\n\nexport const prismaListWorkspaces: AppAction<\n typeof PrismaListWorkspacesInput,\n typeof PrismaListWorkspacesOutput,\n typeof prisma.credential\n> = action(\"PRISMA_LIST_WORKSPACES\", {\n slug: \"prisma-list-workspaces\",\n name: \"List Prisma Workspaces\",\n description: \"Retrieve paginated list of Prisma workspaces accessible to authenticated user. Returns workspace IDs, names, creation timestamps with cursor-based pagination. Use for workspace discovery, UI selection flows, and administrative operations.\",\n input: PrismaListWorkspacesInput,\n output: PrismaListWorkspacesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,gVAAgV,CAAC,CAAC,SAAS;CACzY,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8RAA8R,CAAC,CAAC,SAAS;AACvU,CAAC,CAAC,CAAC,SAAS,2EAA2E;AACvF,MAAM,uCAAuCA,IAAAA,EAAE,OAAO;CACpD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2XAA2X,CAAC,CAAC,SAAS;CAC9Z,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oZAAoZ,CAAC,CAAC,SAAS;CACzb,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2UAA2U,CAAC,CAAC,SAAS;CAChX,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iWAAiW,CAAC,CAAC,SAAS;AAC7Y,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uEAAuE;AACjG,MAAM,wCAAwCA,IAAAA,EAAE,OAAO;CACrD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,8WAA8W,CAAC,CAAC,SAAS;CACvZ,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,waAAwa,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChe,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4EAA4E;AACtG,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,ieAAie;CAC9hB,YAAY,sCAAsC,SAAS;AAC7D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iEAAiE;AAE3F,MAAa,uBAITC,eAAAA,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { prisma } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-workspaces.d.ts
|
|
@@ -17,10 +19,7 @@ declare const PrismaListWorkspacesOutput: z.ZodObject<{
|
|
|
17
19
|
nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
20
|
}, z.core.$loose>>;
|
|
19
21
|
}, z.core.$loose>;
|
|
20
|
-
declare const prismaListWorkspaces:
|
|
21
|
-
limit?: number | undefined;
|
|
22
|
-
cursor?: string | undefined;
|
|
23
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
22
|
+
declare const prismaListWorkspaces: AppAction<typeof PrismaListWorkspacesInput, typeof PrismaListWorkspacesOutput, typeof prisma.credential>;
|
|
24
23
|
//#endregion
|
|
25
24
|
export { prismaListWorkspaces };
|
|
26
25
|
//# sourceMappingURL=list-workspaces.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-workspaces.d.cts","names":[],"sources":["../../src/actions/list-workspaces.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-workspaces.d.cts","names":[],"sources":["../../src/actions/list-workspaces.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAczB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAK1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { prisma } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-workspaces.d.ts
|
|
@@ -17,10 +19,7 @@ declare const PrismaListWorkspacesOutput: z.ZodObject<{
|
|
|
17
19
|
nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
20
|
}, z.core.$loose>>;
|
|
19
21
|
}, z.core.$loose>;
|
|
20
|
-
declare const prismaListWorkspaces:
|
|
21
|
-
limit?: number | undefined;
|
|
22
|
-
cursor?: string | undefined;
|
|
23
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
22
|
+
declare const prismaListWorkspaces: AppAction<typeof PrismaListWorkspacesInput, typeof PrismaListWorkspacesOutput, typeof prisma.credential>;
|
|
24
23
|
//#endregion
|
|
25
24
|
export { prismaListWorkspaces };
|
|
26
25
|
//# sourceMappingURL=list-workspaces.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-workspaces.d.mts","names":[],"sources":["../../src/actions/list-workspaces.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-workspaces.d.mts","names":[],"sources":["../../src/actions/list-workspaces.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAczB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAK1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-workspaces.mjs","names":[],"sources":["../../src/actions/list-workspaces.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaListWorkspacesInput = z.object({\n limit: z.number().int().default(100).describe(\"Maximum number of workspaces to return in a single request. Defaults to 100 if not specified. Valid range is typically 1-500. Use smaller values (10-50) for faster responses when you only need a few workspaces, or larger values (100-500) when bulk processing. The API may return fewer results than requested if fewer workspaces exist.\").optional(),\n cursor: z.string().describe(\"Pagination cursor for retrieving the next page of results. Use the 'nextCursor' value from a previous response to get subsequent pages. Leave as None/null for the first page. This enables efficient pagination through large numbers of workspaces without missing or duplicating entries.\").optional(),\n}).describe(\"Request parameters for listing Prisma workspaces with pagination support.\");\nconst PrismaListWorkspaces_WorkspaceSchema = z.object({\n id: z.string().describe(\"Unique immutable identifier for the workspace (e.g., 'wksp_cmd5tdzvx07si3o0wmiq7plxu'). This ID is used in all subsequent API calls to reference this specific workspace. It follows the format 'wksp_' followed by a random alphanumeric string. Store this ID to perform workspace-specific operations like listing projects, managing environments, or configuring workspace settings.\").nullable(),\n name: z.string().describe(\"Human-readable display name of the workspace (e.g., 'Personal workspace', 'Company Production'). This name is set by workspace administrators and can be modified. Use this for displaying workspace information to users in interfaces. Names are not unique identifiers - always use the 'id' field for programmatic references. Common patterns include team names, project names, or environment designations.\").nullable(),\n type: z.string().describe(\"Object type identifier, always set to 'workspace' for workspace objects. This field provides type safety and consistency across the Prisma API. It helps distinguish workspace objects from other entity types like projects, environments, or databases in mixed API responses or when processing collections of different object types.\").nullable(),\n createdAt: z.string().describe(\"ISO 8601 formatted timestamp indicating when the workspace was created (e.g., '2025-07-16T10:24:33.261Z'). This timestamp is in UTC timezone. Useful for auditing, sorting workspaces by age, or implementing retention policies. The timestamp includes millisecond precision and follows the format: YYYY-MM-DDTHH:mm:ss.sssZ where Z indicates UTC timezone.\").nullable(),\n}).passthrough().describe(\"Prisma workspace containing projects, environments, and team members.\");\nconst PrismaListWorkspaces_PaginationSchema = z.object({\n hasMore: z.boolean().describe(\"Boolean indicator of whether additional workspace pages are available. When true, more workspaces exist beyond the current page and you should make another request using the 'nextCursor' value to retrieve them. When false, the current page contains the last available workspaces. Always check this field before attempting pagination to avoid unnecessary API calls.\").nullable(),\n nextCursor: z.string().describe(\"Opaque cursor token for retrieving the next page of workspace results. This value should be passed as the 'cursor' parameter in subsequent requests to get the next set of workspaces. Will be null/None when there are no more pages available (i.e., when 'hasMore' is false). The cursor is a base64-encoded string that encodes the position in the result set - never attempt to parse or modify this value, always use it as-is.\").nullable().optional(),\n}).passthrough().describe(\"Pagination metadata for cursor-based navigation through workspace results.\");\nexport const PrismaListWorkspacesOutput = z.object({\n data: z.array(PrismaListWorkspaces_WorkspaceSchema).describe(\"Array of workspace objects accessible to the authenticated user. Each workspace represents a separate organizational unit with its own projects, environments, and team members. The list is ordered by most recently modified workspaces first. May be empty if the user has no workspace access or if all workspaces are beyond the pagination cursor. Each workspace object contains complete metadata including ID, name, creation timestamp, and object type for full programmatic access.\"),\n pagination: PrismaListWorkspaces_PaginationSchema.nullable(),\n}).passthrough().describe(\"API response containing workspace list and pagination metadata.\");\n\nexport const prismaListWorkspaces = action(\"PRISMA_LIST_WORKSPACES\", {\n slug: \"prisma-list-workspaces\",\n name: \"List Prisma Workspaces\",\n description: \"Retrieve paginated list of Prisma workspaces accessible to authenticated user. Returns workspace IDs, names, creation timestamps with cursor-based pagination. Use for workspace discovery, UI selection flows, and administrative operations.\",\n input: PrismaListWorkspacesInput,\n output: PrismaListWorkspacesOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-workspaces.mjs","names":[],"sources":["../../src/actions/list-workspaces.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { prisma } from \"../app\";\n\nexport const PrismaListWorkspacesInput = z.object({\n limit: z.number().int().default(100).describe(\"Maximum number of workspaces to return in a single request. Defaults to 100 if not specified. Valid range is typically 1-500. Use smaller values (10-50) for faster responses when you only need a few workspaces, or larger values (100-500) when bulk processing. The API may return fewer results than requested if fewer workspaces exist.\").optional(),\n cursor: z.string().describe(\"Pagination cursor for retrieving the next page of results. Use the 'nextCursor' value from a previous response to get subsequent pages. Leave as None/null for the first page. This enables efficient pagination through large numbers of workspaces without missing or duplicating entries.\").optional(),\n}).describe(\"Request parameters for listing Prisma workspaces with pagination support.\");\nconst PrismaListWorkspaces_WorkspaceSchema = z.object({\n id: z.string().describe(\"Unique immutable identifier for the workspace (e.g., 'wksp_cmd5tdzvx07si3o0wmiq7plxu'). This ID is used in all subsequent API calls to reference this specific workspace. It follows the format 'wksp_' followed by a random alphanumeric string. Store this ID to perform workspace-specific operations like listing projects, managing environments, or configuring workspace settings.\").nullable(),\n name: z.string().describe(\"Human-readable display name of the workspace (e.g., 'Personal workspace', 'Company Production'). This name is set by workspace administrators and can be modified. Use this for displaying workspace information to users in interfaces. Names are not unique identifiers - always use the 'id' field for programmatic references. Common patterns include team names, project names, or environment designations.\").nullable(),\n type: z.string().describe(\"Object type identifier, always set to 'workspace' for workspace objects. This field provides type safety and consistency across the Prisma API. It helps distinguish workspace objects from other entity types like projects, environments, or databases in mixed API responses or when processing collections of different object types.\").nullable(),\n createdAt: z.string().describe(\"ISO 8601 formatted timestamp indicating when the workspace was created (e.g., '2025-07-16T10:24:33.261Z'). This timestamp is in UTC timezone. Useful for auditing, sorting workspaces by age, or implementing retention policies. The timestamp includes millisecond precision and follows the format: YYYY-MM-DDTHH:mm:ss.sssZ where Z indicates UTC timezone.\").nullable(),\n}).passthrough().describe(\"Prisma workspace containing projects, environments, and team members.\");\nconst PrismaListWorkspaces_PaginationSchema = z.object({\n hasMore: z.boolean().describe(\"Boolean indicator of whether additional workspace pages are available. When true, more workspaces exist beyond the current page and you should make another request using the 'nextCursor' value to retrieve them. When false, the current page contains the last available workspaces. Always check this field before attempting pagination to avoid unnecessary API calls.\").nullable(),\n nextCursor: z.string().describe(\"Opaque cursor token for retrieving the next page of workspace results. This value should be passed as the 'cursor' parameter in subsequent requests to get the next set of workspaces. Will be null/None when there are no more pages available (i.e., when 'hasMore' is false). The cursor is a base64-encoded string that encodes the position in the result set - never attempt to parse or modify this value, always use it as-is.\").nullable().optional(),\n}).passthrough().describe(\"Pagination metadata for cursor-based navigation through workspace results.\");\nexport const PrismaListWorkspacesOutput = z.object({\n data: z.array(PrismaListWorkspaces_WorkspaceSchema).describe(\"Array of workspace objects accessible to the authenticated user. Each workspace represents a separate organizational unit with its own projects, environments, and team members. The list is ordered by most recently modified workspaces first. May be empty if the user has no workspace access or if all workspaces are beyond the pagination cursor. Each workspace object contains complete metadata including ID, name, creation timestamp, and object type for full programmatic access.\"),\n pagination: PrismaListWorkspaces_PaginationSchema.nullable(),\n}).passthrough().describe(\"API response containing workspace list and pagination metadata.\");\n\nexport const prismaListWorkspaces: AppAction<\n typeof PrismaListWorkspacesInput,\n typeof PrismaListWorkspacesOutput,\n typeof prisma.credential\n> = action(\"PRISMA_LIST_WORKSPACES\", {\n slug: \"prisma-list-workspaces\",\n name: \"List Prisma Workspaces\",\n description: \"Retrieve paginated list of Prisma workspaces accessible to authenticated user. Returns workspace IDs, names, creation timestamps with cursor-based pagination. Use for workspace discovery, UI selection flows, and administrative operations.\",\n input: PrismaListWorkspacesInput,\n output: PrismaListWorkspacesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,4BAA4B,EAAE,OAAO;CAChD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,gVAAgV,CAAC,CAAC,SAAS;CACzY,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8RAA8R,CAAC,CAAC,SAAS;AACvU,CAAC,CAAC,CAAC,SAAS,2EAA2E;AACvF,MAAM,uCAAuC,EAAE,OAAO;CACpD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,2XAA2X,CAAC,CAAC,SAAS;CAC9Z,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oZAAoZ,CAAC,CAAC,SAAS;CACzb,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2UAA2U,CAAC,CAAC,SAAS;CAChX,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iWAAiW,CAAC,CAAC,SAAS;AAC7Y,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uEAAuE;AACjG,MAAM,wCAAwC,EAAE,OAAO;CACrD,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,8WAA8W,CAAC,CAAC,SAAS;CACvZ,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,waAAwa,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChe,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4EAA4E;AAMtG,MAAa,uBAIT,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdwC,EAAE,OAAO;EACjD,MAAM,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,ieAAie;EAC9hB,YAAY,sCAAsC,SAAS;CAC7D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iEAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"restore-backup.cjs","names":["z","action"],"sources":["../../src/actions/restore-backup.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaRestoreBackupInput = z.object({\n backupId: z.string().describe(\"Unique backup identifier to restore. Must be a completed backup from the specified database. Use list_backups action to find available backup IDs.\"),\n databaseId: z.string().describe(\"Unique source database identifier containing the backup (format: 'db_xxxxx'). Must be a database the authenticated user has access to. The backup will be restored from this database's backup collection.\"),\n targetDatabaseName: z.string().describe(\"Name for the new database created from backup restoration. This will be displayed in UIs and used for identification. Choose descriptive names like 'Restored DB 2025-01-20', 'Production Rollback', etc.\"),\n}).describe(\"Request parameters for restoring a database backup.\");\nconst PrismaRestoreBackup_RegionInfoSchema = z.object({\n id: z.string().describe(\"Region identifier (e.g., 'us-east-1').\").nullable(),\n name: z.string().describe(\"Human-readable region name.\").nullable(),\n}).passthrough().describe(\"Database region information.\");\nconst PrismaRestoreBackup_ProjectInfoSchema = z.object({\n id: z.string().describe(\"Unique project ID containing the restored database.\").nullable(),\n name: z.string().describe(\"Human-readable project name.\").nullable(),\n}).passthrough().describe(\"Project information in database response.\");\nconst PrismaRestoreBackup_RestoredDatabaseSchema = z.object({\n id: z.string().describe(\"Unique identifier for the newly restored database.\").nullable(),\n name: z.string().describe(\"Database name as specified in targetDatabaseName.\").nullable(),\n type: z.string().describe(\"Object type, always 'database'.\").nullable(),\n region: PrismaRestoreBackup_RegionInfoSchema.nullable(),\n status: z.string().describe(\"Current database status during restoration process. Values: 'provisioning' (restoration in progress), 'ready' (restoration complete), 'failure' (restoration failed). Monitor this status for completion.\").nullable(),\n project: PrismaRestoreBackup_ProjectInfoSchema.nullable(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when restoration was initiated.\").nullable(),\n isDefault: z.boolean().describe(\"False for restored databases as they are not default. Restored databases are additional databases in the project.\").nullable(),\n}).passthrough().describe(\"Database object created from backup restoration.\");\nexport const PrismaRestoreBackupOutput = z.object({\n data: PrismaRestoreBackup_RestoredDatabaseSchema.nullable(),\n}).passthrough().describe(\"API response containing restored database details.\");\n\nexport const prismaRestoreBackup = action(\"PRISMA_RESTORE_BACKUP\", {\n slug: \"prisma-restore-backup\",\n name: \"Restore Database Backup\",\n description: \"Restore database backup to new database instance. Creates new database from existing backup with specified name. Operation is asynchronous - monitor the returned database status for completion. Restoration may take several minutes.\",\n input: PrismaRestoreBackupInput,\n output: PrismaRestoreBackupOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"restore-backup.cjs","names":["z","action"],"sources":["../../src/actions/restore-backup.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { prisma } from \"../app\";\n\nexport const PrismaRestoreBackupInput = z.object({\n backupId: z.string().describe(\"Unique backup identifier to restore. Must be a completed backup from the specified database. Use list_backups action to find available backup IDs.\"),\n databaseId: z.string().describe(\"Unique source database identifier containing the backup (format: 'db_xxxxx'). Must be a database the authenticated user has access to. The backup will be restored from this database's backup collection.\"),\n targetDatabaseName: z.string().describe(\"Name for the new database created from backup restoration. This will be displayed in UIs and used for identification. Choose descriptive names like 'Restored DB 2025-01-20', 'Production Rollback', etc.\"),\n}).describe(\"Request parameters for restoring a database backup.\");\nconst PrismaRestoreBackup_RegionInfoSchema = z.object({\n id: z.string().describe(\"Region identifier (e.g., 'us-east-1').\").nullable(),\n name: z.string().describe(\"Human-readable region name.\").nullable(),\n}).passthrough().describe(\"Database region information.\");\nconst PrismaRestoreBackup_ProjectInfoSchema = z.object({\n id: z.string().describe(\"Unique project ID containing the restored database.\").nullable(),\n name: z.string().describe(\"Human-readable project name.\").nullable(),\n}).passthrough().describe(\"Project information in database response.\");\nconst PrismaRestoreBackup_RestoredDatabaseSchema = z.object({\n id: z.string().describe(\"Unique identifier for the newly restored database.\").nullable(),\n name: z.string().describe(\"Database name as specified in targetDatabaseName.\").nullable(),\n type: z.string().describe(\"Object type, always 'database'.\").nullable(),\n region: PrismaRestoreBackup_RegionInfoSchema.nullable(),\n status: z.string().describe(\"Current database status during restoration process. Values: 'provisioning' (restoration in progress), 'ready' (restoration complete), 'failure' (restoration failed). Monitor this status for completion.\").nullable(),\n project: PrismaRestoreBackup_ProjectInfoSchema.nullable(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when restoration was initiated.\").nullable(),\n isDefault: z.boolean().describe(\"False for restored databases as they are not default. Restored databases are additional databases in the project.\").nullable(),\n}).passthrough().describe(\"Database object created from backup restoration.\");\nexport const PrismaRestoreBackupOutput = z.object({\n data: PrismaRestoreBackup_RestoredDatabaseSchema.nullable(),\n}).passthrough().describe(\"API response containing restored database details.\");\n\nexport const prismaRestoreBackup: AppAction<\n typeof PrismaRestoreBackupInput,\n typeof PrismaRestoreBackupOutput,\n typeof prisma.credential\n> = action(\"PRISMA_RESTORE_BACKUP\", {\n slug: \"prisma-restore-backup\",\n name: \"Restore Database Backup\",\n description: \"Restore database backup to new database instance. Creates new database from existing backup with specified name. Operation is asynchronous - monitor the returned database status for completion. Restoration may take several minutes.\",\n input: PrismaRestoreBackupInput,\n output: PrismaRestoreBackupOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oJAAoJ;CAClL,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4MAA4M;CAC5O,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2MAA2M;AACrP,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,uCAAuCA,IAAAA,EAAE,OAAO;CACpD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC3E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;AACpE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8BAA8B;AACxD,MAAM,wCAAwCA,IAAAA,EAAE,OAAO;CACrD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACxF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;AACrE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AACrE,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACvF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACxF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACtE,QAAQ,qCAAqC,SAAS;CACtD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2MAA2M,CAAC,CAAC,SAAS;CAClP,SAAS,sCAAsC,SAAS;CACxD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC9F,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mHAAmH,CAAC,CAAC,SAAS;AAChK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAC5E,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,MAAM,2CAA2C,SAAS,EAC5D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAE9E,MAAa,sBAITC,eAAAA,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { prisma } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/restore-backup.d.ts
|
|
@@ -24,11 +26,7 @@ declare const PrismaRestoreBackupOutput: z.ZodObject<{
|
|
|
24
26
|
isDefault: z.ZodNullable<z.ZodBoolean>;
|
|
25
27
|
}, z.core.$loose>>;
|
|
26
28
|
}, z.core.$loose>;
|
|
27
|
-
declare const prismaRestoreBackup:
|
|
28
|
-
backupId: string;
|
|
29
|
-
databaseId: string;
|
|
30
|
-
targetDatabaseName: string;
|
|
31
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
29
|
+
declare const prismaRestoreBackup: AppAction<typeof PrismaRestoreBackupInput, typeof PrismaRestoreBackupOutput, typeof prisma.credential>;
|
|
32
30
|
//#endregion
|
|
33
31
|
export { prismaRestoreBackup };
|
|
34
32
|
//# sourceMappingURL=restore-backup.d.cts.map
|