@keystrokehq/prisma 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/create-connection.cjs +3 -3
- package/dist/actions/create-connection.cjs.map +1 -1
- package/dist/actions/create-connection.d.cts +3 -3
- package/dist/actions/create-connection.d.mts +3 -3
- package/dist/actions/create-connection.mjs +3 -3
- package/dist/actions/create-connection.mjs.map +1 -1
- package/dist/actions/create-database.cjs +6 -6
- package/dist/actions/create-database.cjs.map +1 -1
- package/dist/actions/create-database.d.cts +7 -7
- package/dist/actions/create-database.d.mts +7 -7
- package/dist/actions/create-database.mjs +6 -6
- package/dist/actions/create-database.mjs.map +1 -1
- package/dist/actions/create-project.cjs +7 -7
- package/dist/actions/create-project.cjs.map +1 -1
- package/dist/actions/create-project.d.cts +8 -8
- package/dist/actions/create-project.d.mts +8 -8
- package/dist/actions/create-project.mjs +7 -7
- package/dist/actions/create-project.mjs.map +1 -1
- package/dist/actions/delete-connection.cjs +1 -1
- package/dist/actions/delete-connection.cjs.map +1 -1
- package/dist/actions/delete-connection.d.cts +1 -1
- package/dist/actions/delete-connection.d.cts.map +1 -1
- package/dist/actions/delete-connection.d.mts +1 -1
- package/dist/actions/delete-connection.d.mts.map +1 -1
- package/dist/actions/delete-connection.mjs +1 -1
- package/dist/actions/delete-connection.mjs.map +1 -1
- package/dist/actions/delete-database.cjs +1 -1
- package/dist/actions/delete-database.cjs.map +1 -1
- package/dist/actions/delete-database.d.cts +1 -1
- package/dist/actions/delete-database.d.mts +1 -1
- package/dist/actions/delete-database.mjs +1 -1
- package/dist/actions/delete-database.mjs.map +1 -1
- package/dist/actions/delete-project.cjs +1 -1
- package/dist/actions/delete-project.cjs.map +1 -1
- package/dist/actions/delete-project.d.cts +1 -1
- package/dist/actions/delete-project.d.cts.map +1 -1
- package/dist/actions/delete-project.d.mts +1 -1
- package/dist/actions/delete-project.d.mts.map +1 -1
- package/dist/actions/delete-project.mjs +1 -1
- package/dist/actions/delete-project.mjs.map +1 -1
- package/dist/actions/execute-sql-command.cjs +2 -2
- package/dist/actions/execute-sql-command.cjs.map +1 -1
- package/dist/actions/execute-sql-command.d.cts +2 -2
- package/dist/actions/execute-sql-command.d.mts +2 -2
- package/dist/actions/execute-sql-command.mjs +2 -2
- package/dist/actions/execute-sql-command.mjs.map +1 -1
- package/dist/actions/execute-sql-query.cjs +2 -2
- package/dist/actions/execute-sql-query.cjs.map +1 -1
- package/dist/actions/execute-sql-query.d.cts +2 -2
- package/dist/actions/execute-sql-query.d.mts +2 -2
- package/dist/actions/execute-sql-query.mjs +2 -2
- package/dist/actions/execute-sql-query.mjs.map +1 -1
- package/dist/actions/get-database-usage.cjs +4 -4
- package/dist/actions/get-database-usage.cjs.map +1 -1
- package/dist/actions/get-database-usage.d.cts +5 -5
- package/dist/actions/get-database-usage.d.mts +5 -5
- package/dist/actions/get-database-usage.mjs +4 -4
- package/dist/actions/get-database-usage.mjs.map +1 -1
- package/dist/actions/get-database.cjs +4 -4
- package/dist/actions/get-database.cjs.map +1 -1
- package/dist/actions/get-database.d.cts +4 -4
- package/dist/actions/get-database.d.mts +4 -4
- package/dist/actions/get-database.mjs +4 -4
- package/dist/actions/get-database.mjs.map +1 -1
- package/dist/actions/get-project.cjs +3 -3
- package/dist/actions/get-project.cjs.map +1 -1
- package/dist/actions/get-project.d.cts +3 -3
- package/dist/actions/get-project.d.mts +3 -3
- package/dist/actions/get-project.mjs +3 -3
- package/dist/actions/get-project.mjs.map +1 -1
- package/dist/actions/inspect-database-schema.cjs +4 -4
- package/dist/actions/inspect-database-schema.cjs.map +1 -1
- package/dist/actions/inspect-database-schema.d.cts +4 -4
- package/dist/actions/inspect-database-schema.d.mts +4 -4
- package/dist/actions/inspect-database-schema.mjs +4 -4
- package/dist/actions/inspect-database-schema.mjs.map +1 -1
- package/dist/actions/list-accelerate-regions.cjs +2 -2
- package/dist/actions/list-accelerate-regions.cjs.map +1 -1
- package/dist/actions/list-accelerate-regions.d.cts +2 -2
- package/dist/actions/list-accelerate-regions.d.mts +2 -2
- package/dist/actions/list-accelerate-regions.mjs +2 -2
- package/dist/actions/list-accelerate-regions.mjs.map +1 -1
- package/dist/actions/list-backups.cjs +4 -4
- package/dist/actions/list-backups.cjs.map +1 -1
- package/dist/actions/list-backups.d.cts +4 -4
- package/dist/actions/list-backups.d.mts +4 -4
- package/dist/actions/list-backups.mjs +4 -4
- package/dist/actions/list-backups.mjs.map +1 -1
- package/dist/actions/list-connections.cjs +4 -4
- package/dist/actions/list-connections.cjs.map +1 -1
- package/dist/actions/list-connections.d.cts +4 -4
- package/dist/actions/list-connections.d.mts +4 -4
- package/dist/actions/list-connections.mjs +4 -4
- package/dist/actions/list-connections.mjs.map +1 -1
- package/dist/actions/list-databases.cjs +5 -5
- package/dist/actions/list-databases.cjs.map +1 -1
- package/dist/actions/list-databases.d.cts +5 -5
- package/dist/actions/list-databases.d.mts +5 -5
- package/dist/actions/list-databases.mjs +5 -5
- package/dist/actions/list-databases.mjs.map +1 -1
- package/dist/actions/list-postgres-regions.cjs +2 -2
- package/dist/actions/list-postgres-regions.cjs.map +1 -1
- package/dist/actions/list-postgres-regions.d.cts +2 -2
- package/dist/actions/list-postgres-regions.d.mts +2 -2
- package/dist/actions/list-postgres-regions.mjs +2 -2
- package/dist/actions/list-postgres-regions.mjs.map +1 -1
- package/dist/actions/list-projects.cjs +4 -4
- package/dist/actions/list-projects.cjs.map +1 -1
- package/dist/actions/list-projects.d.cts +4 -4
- package/dist/actions/list-projects.d.mts +4 -4
- package/dist/actions/list-projects.mjs +4 -4
- package/dist/actions/list-projects.mjs.map +1 -1
- package/dist/actions/list-workspace-integrations.cjs +5 -5
- package/dist/actions/list-workspace-integrations.cjs.map +1 -1
- package/dist/actions/list-workspace-integrations.d.cts +5 -5
- package/dist/actions/list-workspace-integrations.d.mts +5 -5
- package/dist/actions/list-workspace-integrations.mjs +5 -5
- package/dist/actions/list-workspace-integrations.mjs.map +1 -1
- package/dist/actions/list-workspaces.cjs +3 -3
- package/dist/actions/list-workspaces.cjs.map +1 -1
- package/dist/actions/list-workspaces.d.cts +3 -3
- package/dist/actions/list-workspaces.d.mts +3 -3
- package/dist/actions/list-workspaces.mjs +3 -3
- package/dist/actions/list-workspaces.mjs.map +1 -1
- package/dist/actions/restore-backup.cjs +4 -4
- package/dist/actions/restore-backup.cjs.map +1 -1
- package/dist/actions/restore-backup.d.cts +4 -4
- package/dist/actions/restore-backup.d.mts +4 -4
- package/dist/actions/restore-backup.mjs +4 -4
- package/dist/actions/restore-backup.mjs.map +1 -1
- package/dist/actions/transfer-project.cjs +1 -1
- package/dist/actions/transfer-project.cjs.map +1 -1
- package/dist/actions/transfer-project.d.cts +1 -1
- package/dist/actions/transfer-project.d.mts +1 -1
- package/dist/actions/transfer-project.mjs +1 -1
- package/dist/actions/transfer-project.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -9,11 +9,11 @@ const PrismaRestoreBackupInput = z.object({
|
|
|
9
9
|
const PrismaRestoreBackup_RegionInfoSchema = z.object({
|
|
10
10
|
id: z.string().describe("Region identifier (e.g., 'us-east-1').").nullable(),
|
|
11
11
|
name: z.string().describe("Human-readable region name.").nullable()
|
|
12
|
-
}).describe("Database region information.");
|
|
12
|
+
}).passthrough().describe("Database region information.");
|
|
13
13
|
const PrismaRestoreBackup_ProjectInfoSchema = z.object({
|
|
14
14
|
id: z.string().describe("Unique project ID containing the restored database.").nullable(),
|
|
15
15
|
name: z.string().describe("Human-readable project name.").nullable()
|
|
16
|
-
}).describe("Project information in database response.");
|
|
16
|
+
}).passthrough().describe("Project information in database response.");
|
|
17
17
|
const PrismaRestoreBackup_RestoredDatabaseSchema = z.object({
|
|
18
18
|
id: z.string().describe("Unique identifier for the newly restored database.").nullable(),
|
|
19
19
|
name: z.string().describe("Database name as specified in targetDatabaseName.").nullable(),
|
|
@@ -23,13 +23,13 @@ const PrismaRestoreBackup_RestoredDatabaseSchema = z.object({
|
|
|
23
23
|
project: PrismaRestoreBackup_ProjectInfoSchema.nullable(),
|
|
24
24
|
createdAt: z.string().describe("ISO 8601 timestamp when restoration was initiated.").nullable(),
|
|
25
25
|
isDefault: z.boolean().describe("False for restored databases as they are not default. Restored databases are additional databases in the project.").nullable()
|
|
26
|
-
}).describe("Database object created from backup restoration.");
|
|
26
|
+
}).passthrough().describe("Database object created from backup restoration.");
|
|
27
27
|
const prismaRestoreBackup = action("PRISMA_RESTORE_BACKUP", {
|
|
28
28
|
slug: "prisma-restore-backup",
|
|
29
29
|
name: "Restore Database Backup",
|
|
30
30
|
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.",
|
|
31
31
|
input: PrismaRestoreBackupInput,
|
|
32
|
-
output: z.object({ data: PrismaRestoreBackup_RestoredDatabaseSchema.nullable() }).describe("API response containing restored database details.")
|
|
32
|
+
output: z.object({ data: PrismaRestoreBackup_RestoredDatabaseSchema.nullable() }).passthrough().describe("API response containing restored database details.")
|
|
33
33
|
});
|
|
34
34
|
//#endregion
|
|
35
35
|
export { prismaRestoreBackup };
|
|
@@ -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}).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}).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}).describe(\"Database object created from backup restoration.\");\nexport const PrismaRestoreBackupOutput = z.object({\n data: PrismaRestoreBackup_RestoredDatabaseSchema.nullable(),\n}).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":";;;AAIA,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,SAAS,8BAA8B;
|
|
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":";;;AAIA,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,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATuC,EAAE,OAAO,EAChD,MAAM,2CAA2C,SAAS,EAC5D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAOhB;AACV,CAAC"}
|
|
@@ -8,7 +8,7 @@ const PrismaTransferProjectInput = zod.z.object({
|
|
|
8
8
|
const PrismaTransferProjectOutput = zod.z.object({
|
|
9
9
|
message: zod.z.string().describe("Human-readable message describing the transfer result.").nullable(),
|
|
10
10
|
success: zod.z.boolean().describe("True if the project was successfully transferred to the recipient.").nullable()
|
|
11
|
-
}).describe("Response for project transfer operation.");
|
|
11
|
+
}).passthrough().describe("Response for project transfer operation.");
|
|
12
12
|
const prismaTransferProject = require_action.action("PRISMA_TRANSFER_PROJECT", {
|
|
13
13
|
slug: "prisma-transfer-project",
|
|
14
14
|
name: "Transfer Prisma Project",
|
|
@@ -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}).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":";;;AAIA,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,SAAS,0CAA0C;
|
|
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":";;;AAIA,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,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -8,7 +8,7 @@ declare const PrismaTransferProjectInput: z.ZodObject<{
|
|
|
8
8
|
declare const PrismaTransferProjectOutput: z.ZodObject<{
|
|
9
9
|
message: z.ZodNullable<z.ZodString>;
|
|
10
10
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
11
|
-
}, z.core.$
|
|
11
|
+
}, z.core.$loose>;
|
|
12
12
|
declare const prismaTransferProject: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
13
13
|
id: string;
|
|
14
14
|
recipientAccessToken: string;
|
|
@@ -8,7 +8,7 @@ declare const PrismaTransferProjectInput: z.ZodObject<{
|
|
|
8
8
|
declare const PrismaTransferProjectOutput: z.ZodObject<{
|
|
9
9
|
message: z.ZodNullable<z.ZodString>;
|
|
10
10
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
11
|
-
}, z.core.$
|
|
11
|
+
}, z.core.$loose>;
|
|
12
12
|
declare const prismaTransferProject: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
13
13
|
id: string;
|
|
14
14
|
recipientAccessToken: string;
|
|
@@ -11,7 +11,7 @@ const prismaTransferProject = action("PRISMA_TRANSFER_PROJECT", {
|
|
|
11
11
|
output: z.object({
|
|
12
12
|
message: z.string().describe("Human-readable message describing the transfer result.").nullable(),
|
|
13
13
|
success: z.boolean().describe("True if the project was successfully transferred to the recipient.").nullable()
|
|
14
|
-
}).describe("Response for project transfer operation.")
|
|
14
|
+
}).passthrough().describe("Response for project transfer operation.")
|
|
15
15
|
});
|
|
16
16
|
//#endregion
|
|
17
17
|
export { prismaTransferProject };
|
|
@@ -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}).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":";;AAaA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbwC,EAAE,OAAO;EACjD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,4RAA4R;EACpT,sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,kUAAkU;CAC9W,CAAC,CAAC,CAAC,SAAS,wDAUH;CACP,QAVyC,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,SAAS,
|
|
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":";;AAaA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbwC,EAAE,OAAO;EACjD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,4RAA4R;EACpT,sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,kUAAkU;CAC9W,CAAC,CAAC,CAAC,SAAS,wDAUH;CACP,QAVyC,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,0CAOhB;AACV,CAAC"}
|