@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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"restore-backup.d.cts","names":[],"sources":["../../src/actions/restore-backup.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"restore-backup.d.cts","names":[],"sources":["../../src/actions/restore-backup.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;cAuBxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAIzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,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/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.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"restore-backup.d.mts","names":[],"sources":["../../src/actions/restore-backup.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"restore-backup.d.mts","names":[],"sources":["../../src/actions/restore-backup.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;cAuBxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAIzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"restore-backup.mjs","names":[],"sources":["../../src/actions/restore-backup.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaRestoreBackupInput = z.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.mjs","names":[],"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,2BAA2B,EAAE,OAAO;CAC/C,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,oJAAoJ;CAClL,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4MAA4M;CAC5O,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,2MAA2M;AACrP,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,uCAAuC,EAAE,OAAO;CACpD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC3E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;AACpE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8BAA8B;AACxD,MAAM,wCAAwC,EAAE,OAAO;CACrD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACxF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;AACrE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AACrE,MAAM,6CAA6C,EAAE,OAAO;CAC1D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACvF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACxF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACtE,QAAQ,qCAAqC,SAAS;CACtD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2MAA2M,CAAC,CAAC,SAAS;CAClP,SAAS,sCAAsC,SAAS;CACxD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC9F,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,mHAAmH,CAAC,CAAC,SAAS;AAChK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAK5E,MAAa,sBAIT,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbuC,EAAE,OAAO,EAChD,MAAM,2CAA2C,SAAS,EAC5D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transfer-project.cjs","names":["z","action"],"sources":["../../src/actions/transfer-project.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaTransferProjectInput = z.object({\n id: z.string().describe(\"Unique project identifier to transfer (format: 'proj_xxxxx'). Obtain from PRISMA_LIST_PROJECTS or PRISMA_CREATE_PROJECT response. Must be a project owned by the authenticated user's workspace. After transfer, the current user loses access unless explicitly granted by the new owner.\"),\n recipientAccessToken: z.string().describe(\"OAuth2 access token of the recipient user who will receive project ownership. This token must be obtained through Prisma's OAuth2 flow for the recipient user. The recipient workspace must have sufficient quota to receive the project. Typically used in partner integrations to transfer provisioned databases to end users.\"),\n}).describe(\"Request parameters for transferring project ownership.\");\nexport const PrismaTransferProjectOutput = z.object({\n message: z.string().describe(\"Human-readable message describing the transfer result.\").nullable(),\n success: z.boolean().describe(\"True if the project was successfully transferred to the recipient.\").nullable(),\n}).passthrough().describe(\"Response for project transfer operation.\");\n\nexport const prismaTransferProject = action(\"PRISMA_TRANSFER_PROJECT\", {\n slug: \"prisma-transfer-project\",\n name: \"Transfer Prisma Project\",\n description: \"Transfer Prisma project ownership to another user's workspace. Transfers project ownership from the current authenticated user to the recipient specified by their OAuth2 access token. This is typically used in partner integrations where databases are provisioned on the partner's workspace and later transferred to end users. The project and all its databases are moved to the recipient's workspace. The current owner loses access unless the new owner explicitly grants it. Requirements: - Valid project ID owned by the current user - Valid OAuth2 access token for the recipient user - Recipient workspace must have sufficient quota for the project\",\n input: PrismaTransferProjectInput,\n output: PrismaTransferProjectOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"transfer-project.cjs","names":["z","action"],"sources":["../../src/actions/transfer-project.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 PrismaTransferProjectInput = z.object({\n id: z.string().describe(\"Unique project identifier to transfer (format: 'proj_xxxxx'). Obtain from PRISMA_LIST_PROJECTS or PRISMA_CREATE_PROJECT response. Must be a project owned by the authenticated user's workspace. After transfer, the current user loses access unless explicitly granted by the new owner.\"),\n recipientAccessToken: z.string().describe(\"OAuth2 access token of the recipient user who will receive project ownership. This token must be obtained through Prisma's OAuth2 flow for the recipient user. The recipient workspace must have sufficient quota to receive the project. Typically used in partner integrations to transfer provisioned databases to end users.\"),\n}).describe(\"Request parameters for transferring project ownership.\");\nexport const PrismaTransferProjectOutput = z.object({\n message: z.string().describe(\"Human-readable message describing the transfer result.\").nullable(),\n success: z.boolean().describe(\"True if the project was successfully transferred to the recipient.\").nullable(),\n}).passthrough().describe(\"Response for project transfer operation.\");\n\nexport const prismaTransferProject: AppAction<\n typeof PrismaTransferProjectInput,\n typeof PrismaTransferProjectOutput,\n typeof prisma.credential\n> = action(\"PRISMA_TRANSFER_PROJECT\", {\n slug: \"prisma-transfer-project\",\n name: \"Transfer Prisma Project\",\n description: \"Transfer Prisma project ownership to another user's workspace. Transfers project ownership from the current authenticated user to the recipient specified by their OAuth2 access token. This is typically used in partner integrations where databases are provisioned on the partner's workspace and later transferred to end users. The project and all its databases are moved to the recipient's workspace. The current owner loses access unless the new owner explicitly grants it. Requirements: - Valid project ID owned by the current user - Valid OAuth2 access token for the recipient user - Recipient workspace must have sufficient quota for the project\",\n input: PrismaTransferProjectInput,\n output: PrismaTransferProjectOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4RAA4R;CACpT,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kUAAkU;AAC9W,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAChG,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;AAC/G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AAEpE,MAAa,wBAITC,eAAAA,OAAO,2BAA2B;CACpC,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/transfer-project.d.ts
|
|
@@ -9,10 +11,7 @@ declare const PrismaTransferProjectOutput: z.ZodObject<{
|
|
|
9
11
|
message: z.ZodNullable<z.ZodString>;
|
|
10
12
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
11
13
|
}, z.core.$loose>;
|
|
12
|
-
declare const prismaTransferProject:
|
|
13
|
-
id: string;
|
|
14
|
-
recipientAccessToken: string;
|
|
15
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
14
|
+
declare const prismaTransferProject: AppAction<typeof PrismaTransferProjectInput, typeof PrismaTransferProjectOutput, typeof prisma.credential>;
|
|
16
15
|
//#endregion
|
|
17
16
|
export { prismaTransferProject };
|
|
18
17
|
//# sourceMappingURL=transfer-project.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transfer-project.d.cts","names":[],"sources":["../../src/actions/transfer-project.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"transfer-project.d.cts","names":[],"sources":["../../src/actions/transfer-project.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAI1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;cAK3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,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/transfer-project.d.ts
|
|
@@ -9,10 +11,7 @@ declare const PrismaTransferProjectOutput: z.ZodObject<{
|
|
|
9
11
|
message: z.ZodNullable<z.ZodString>;
|
|
10
12
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
11
13
|
}, z.core.$loose>;
|
|
12
|
-
declare const prismaTransferProject:
|
|
13
|
-
id: string;
|
|
14
|
-
recipientAccessToken: string;
|
|
15
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
14
|
+
declare const prismaTransferProject: AppAction<typeof PrismaTransferProjectInput, typeof PrismaTransferProjectOutput, typeof prisma.credential>;
|
|
16
15
|
//#endregion
|
|
17
16
|
export { prismaTransferProject };
|
|
18
17
|
//# sourceMappingURL=transfer-project.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transfer-project.d.mts","names":[],"sources":["../../src/actions/transfer-project.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"transfer-project.d.mts","names":[],"sources":["../../src/actions/transfer-project.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAI1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;cAK3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transfer-project.mjs","names":[],"sources":["../../src/actions/transfer-project.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismaTransferProjectInput = z.object({\n id: z.string().describe(\"Unique project identifier to transfer (format: 'proj_xxxxx'). Obtain from PRISMA_LIST_PROJECTS or PRISMA_CREATE_PROJECT response. Must be a project owned by the authenticated user's workspace. After transfer, the current user loses access unless explicitly granted by the new owner.\"),\n recipientAccessToken: z.string().describe(\"OAuth2 access token of the recipient user who will receive project ownership. This token must be obtained through Prisma's OAuth2 flow for the recipient user. The recipient workspace must have sufficient quota to receive the project. Typically used in partner integrations to transfer provisioned databases to end users.\"),\n}).describe(\"Request parameters for transferring project ownership.\");\nexport const PrismaTransferProjectOutput = z.object({\n message: z.string().describe(\"Human-readable message describing the transfer result.\").nullable(),\n success: z.boolean().describe(\"True if the project was successfully transferred to the recipient.\").nullable(),\n}).passthrough().describe(\"Response for project transfer operation.\");\n\nexport const prismaTransferProject = action(\"PRISMA_TRANSFER_PROJECT\", {\n slug: \"prisma-transfer-project\",\n name: \"Transfer Prisma Project\",\n description: \"Transfer Prisma project ownership to another user's workspace. Transfers project ownership from the current authenticated user to the recipient specified by their OAuth2 access token. This is typically used in partner integrations where databases are provisioned on the partner's workspace and later transferred to end users. The project and all its databases are moved to the recipient's workspace. The current owner loses access unless the new owner explicitly grants it. Requirements: - Valid project ID owned by the current user - Valid OAuth2 access token for the recipient user - Recipient workspace must have sufficient quota for the project\",\n input: PrismaTransferProjectInput,\n output: PrismaTransferProjectOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"transfer-project.mjs","names":[],"sources":["../../src/actions/transfer-project.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 PrismaTransferProjectInput = z.object({\n id: z.string().describe(\"Unique project identifier to transfer (format: 'proj_xxxxx'). Obtain from PRISMA_LIST_PROJECTS or PRISMA_CREATE_PROJECT response. Must be a project owned by the authenticated user's workspace. After transfer, the current user loses access unless explicitly granted by the new owner.\"),\n recipientAccessToken: z.string().describe(\"OAuth2 access token of the recipient user who will receive project ownership. This token must be obtained through Prisma's OAuth2 flow for the recipient user. The recipient workspace must have sufficient quota to receive the project. Typically used in partner integrations to transfer provisioned databases to end users.\"),\n}).describe(\"Request parameters for transferring project ownership.\");\nexport const PrismaTransferProjectOutput = z.object({\n message: z.string().describe(\"Human-readable message describing the transfer result.\").nullable(),\n success: z.boolean().describe(\"True if the project was successfully transferred to the recipient.\").nullable(),\n}).passthrough().describe(\"Response for project transfer operation.\");\n\nexport const prismaTransferProject: AppAction<\n typeof PrismaTransferProjectInput,\n typeof PrismaTransferProjectOutput,\n typeof prisma.credential\n> = action(\"PRISMA_TRANSFER_PROJECT\", {\n slug: \"prisma-transfer-project\",\n name: \"Transfer Prisma Project\",\n description: \"Transfer Prisma project ownership to another user's workspace. Transfers project ownership from the current authenticated user to the recipient specified by their OAuth2 access token. This is typically used in partner integrations where databases are provisioned on the partner's workspace and later transferred to end users. The project and all its databases are moved to the recipient's workspace. The current owner loses access unless the new owner explicitly grants it. Requirements: - Valid project ID owned by the current user - Valid OAuth2 access token for the recipient user - Recipient workspace must have sufficient quota for the project\",\n input: PrismaTransferProjectInput,\n output: PrismaTransferProjectOutput,\n});\n"],"mappings":";;;AAeA,MAAa,wBAIT,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjBwC,EAAE,OAAO;EACjD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,4RAA4R;EACpT,sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,kUAAkU;CAC9W,CAAC,CAAC,CAAC,SAAS,wDAcH;CACP,QAdyC,EAAE,OAAO;EAClD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;EAChG,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CAC/G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAWhB;AACV,CAAC"}
|
package/dist/app.cjs
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
let _keystrokehq_keystroke_app = require("@keystrokehq/keystroke/app");
|
|
1
2
|
//#region src/app.ts
|
|
2
|
-
const
|
|
3
|
+
const credential = { accessToken: require("zod").z.string() };
|
|
4
|
+
const prisma = (0, _keystrokehq_keystroke_app.defineApp)({
|
|
3
5
|
slug: "prisma",
|
|
4
|
-
auth: "keystroke"
|
|
6
|
+
auth: "keystroke",
|
|
7
|
+
credential
|
|
5
8
|
});
|
|
6
9
|
//#endregion
|
|
7
10
|
exports.prisma = prisma;
|
package/dist/app.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.cjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const prisma = defineApp({\n slug: \"prisma\",\n auth: \"keystroke\",\n});\n"],"mappings":";AAEA,MAAa,UAAA,
|
|
1
|
+
{"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n accessToken: z.string(),\n};\n\nexport const prisma: KeystrokeApp<\"prisma\", typeof credential> = defineApp({\n slug: \"prisma\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAGA,MAAM,aAAa,EACjB,0BAAaA,CAAAA,CAAAA,EAAE,OAAO,EACxB;AAEA,MAAa,UAAA,GAAA,2BAAA,UAAA,CAA8D;CACzE,MAAM;CACN,MAAM;CACN;AACF,CAAC"}
|
package/dist/app.d.cts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
|
+
import { KeystrokeApp } from "@keystrokehq/keystroke/app";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
|
|
1
4
|
//#region src/app.d.ts
|
|
2
|
-
declare const
|
|
5
|
+
declare const credential: {
|
|
6
|
+
accessToken: z.ZodString;
|
|
7
|
+
};
|
|
8
|
+
declare const prisma: KeystrokeApp<"prisma", typeof credential>;
|
|
3
9
|
//#endregion
|
|
4
10
|
export { prisma };
|
|
5
11
|
//# sourceMappingURL=app.d.cts.map
|
package/dist/app.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;eAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,MAAA,EAAQ,YAAY,kBAAkB,UAAA"}
|
package/dist/app.d.mts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
|
+
import { KeystrokeApp } from "@keystrokehq/keystroke/app";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
|
|
1
4
|
//#region src/app.d.ts
|
|
2
|
-
declare const
|
|
5
|
+
declare const credential: {
|
|
6
|
+
accessToken: z.ZodString;
|
|
7
|
+
};
|
|
8
|
+
declare const prisma: KeystrokeApp<"prisma", typeof credential>;
|
|
3
9
|
//#endregion
|
|
4
10
|
export { prisma };
|
|
5
11
|
//# sourceMappingURL=app.d.mts.map
|
package/dist/app.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;eAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,MAAA,EAAQ,YAAY,kBAAkB,UAAA"}
|
package/dist/app.mjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { defineApp } from "@keystrokehq/keystroke/app";
|
|
2
|
-
|
|
2
|
+
import { z } from "zod";
|
|
3
3
|
const prisma = defineApp({
|
|
4
4
|
slug: "prisma",
|
|
5
|
-
auth: "keystroke"
|
|
5
|
+
auth: "keystroke",
|
|
6
|
+
credential: { accessToken: z.string() }
|
|
6
7
|
});
|
|
7
8
|
//#endregion
|
|
8
9
|
export { prisma };
|
package/dist/app.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const prisma = defineApp({\n slug: \"prisma\",\n auth: \"keystroke\",\n});\n"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n accessToken: z.string(),\n};\n\nexport const prisma: KeystrokeApp<\"prisma\", typeof credential> = defineApp({\n slug: \"prisma\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAOA,MAAa,SAAoD,UAAU;CACzE,MAAM;CACN,MAAM;CACN,cANA,aAAa,EAAE,OAAO,EAMtB;AACF,CAAC"}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { prisma } from "./app.cjs";
|
|
1
2
|
import { prismaCreateConnection } from "./actions/create-connection.cjs";
|
|
2
3
|
import { prismaCreateDatabase } from "./actions/create-database.cjs";
|
|
3
4
|
import { prismaCreateProject } from "./actions/create-project.cjs";
|
|
@@ -20,6 +21,5 @@ import { prismaListWorkspaceIntegrations } from "./actions/list-workspace-integr
|
|
|
20
21
|
import { prismaListWorkspaces } from "./actions/list-workspaces.cjs";
|
|
21
22
|
import { prismaRestoreBackup } from "./actions/restore-backup.cjs";
|
|
22
23
|
import { prismaTransferProject } from "./actions/transfer-project.cjs";
|
|
23
|
-
import { prisma } from "./app.cjs";
|
|
24
24
|
import { prismaCatalog } from "./catalog.cjs";
|
|
25
25
|
export { prisma, prismaCatalog, prismaCreateConnection, prismaCreateDatabase, prismaCreateProject, prismaDeleteConnection, prismaDeleteDatabase, prismaDeleteProject, prismaExecuteSqlCommand, prismaExecuteSqlQuery, prismaGetDatabase, prismaGetDatabaseUsage, prismaGetProject, prismaInspectDatabaseSchema, prismaListAccelerateRegions, prismaListBackups, prismaListConnections, prismaListDatabases, prismaListPostgresRegions, prismaListProjects, prismaListWorkspaceIntegrations, prismaListWorkspaces, prismaRestoreBackup, prismaTransferProject };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { prisma } from "./app.mjs";
|
|
1
2
|
import { prismaCreateConnection } from "./actions/create-connection.mjs";
|
|
2
3
|
import { prismaCreateDatabase } from "./actions/create-database.mjs";
|
|
3
4
|
import { prismaCreateProject } from "./actions/create-project.mjs";
|
|
@@ -20,6 +21,5 @@ import { prismaListWorkspaceIntegrations } from "./actions/list-workspace-integr
|
|
|
20
21
|
import { prismaListWorkspaces } from "./actions/list-workspaces.mjs";
|
|
21
22
|
import { prismaRestoreBackup } from "./actions/restore-backup.mjs";
|
|
22
23
|
import { prismaTransferProject } from "./actions/transfer-project.mjs";
|
|
23
|
-
import { prisma } from "./app.mjs";
|
|
24
24
|
import { prismaCatalog } from "./catalog.mjs";
|
|
25
25
|
export { prisma, prismaCatalog, prismaCreateConnection, prismaCreateDatabase, prismaCreateProject, prismaDeleteConnection, prismaDeleteDatabase, prismaDeleteProject, prismaExecuteSqlCommand, prismaExecuteSqlQuery, prismaGetDatabase, prismaGetDatabaseUsage, prismaGetProject, prismaInspectDatabaseSchema, prismaListAccelerateRegions, prismaListBackups, prismaListConnections, prismaListDatabases, prismaListPostgresRegions, prismaListProjects, prismaListWorkspaceIntegrations, prismaListWorkspaces, prismaRestoreBackup, prismaTransferProject };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keystrokehq/prisma",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@keystrokehq/keystroke": ">=0.1.
|
|
34
|
+
"@keystrokehq/keystroke": ">=0.1.104",
|
|
35
35
|
"zod": "^4.4.3"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|