@papermark/mcp-server 0.7.0 → 0.9.0
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/{chunk-YMSDUZ2I.js → chunk-STGR2RDC.js} +325 -3
- package/dist/chunk-STGR2RDC.js.map +1 -0
- package/dist/index.js +254 -1
- package/dist/index.js.map +1 -1
- package/dist/tools-contract.d.ts +523 -19
- package/dist/tools-contract.js +47 -1
- package/package.json +1 -1
- package/dist/chunk-YMSDUZ2I.js.map +0 -1
|
@@ -88,6 +88,12 @@ var linkObjectOutputSchema = z.object({
|
|
|
88
88
|
target_type: z.enum(["document", "dataroom"]).describe(
|
|
89
89
|
"The kind of resource this link points at. The matching `document_id` / `dataroom_id` field is populated; the other is null."
|
|
90
90
|
),
|
|
91
|
+
audience_type: z.enum(["general", "group", "team"]).describe(
|
|
92
|
+
"Who the link is for. `general` links are open to anyone passing the access controls; `group` links admit only members of the dataroom group in `group_id`."
|
|
93
|
+
),
|
|
94
|
+
group_id: nullableStringOutputSchema(
|
|
95
|
+
"Dataroom group this link is scoped to. Only set when `audience_type` is `group`."
|
|
96
|
+
),
|
|
91
97
|
document_id: nullableStringOutputSchema(
|
|
92
98
|
"Target document id when this is a document link, otherwise null."
|
|
93
99
|
),
|
|
@@ -374,6 +380,92 @@ var foldersListOutputSchema = z.object({
|
|
|
374
380
|
var versionsListOutputSchema = z.object({
|
|
375
381
|
versions: z.array(documentVersionObjectOutputSchema).describe("Document versions.")
|
|
376
382
|
});
|
|
383
|
+
var dataroomGroupObjectOutputSchema = z.object({
|
|
384
|
+
id: z.string().describe("Unique dataroom group id."),
|
|
385
|
+
object: z.literal("dataroom_group").describe(
|
|
386
|
+
"String representing the object's type. Always `dataroom_group`."
|
|
387
|
+
),
|
|
388
|
+
name: z.string().describe("Group name."),
|
|
389
|
+
allow_all: z.boolean().describe(
|
|
390
|
+
"When true, anyone passing the link's other access gates is treated as a member \u2014 the email/domain membership check is skipped."
|
|
391
|
+
),
|
|
392
|
+
domains: z.array(z.string()).describe(
|
|
393
|
+
"Email domains whose addresses are automatically treated as members (e.g. `acme.com`)."
|
|
394
|
+
),
|
|
395
|
+
member_count: integerOutputSchema("Number of explicit email members."),
|
|
396
|
+
link_count: integerOutputSchema("Number of links scoped to this group."),
|
|
397
|
+
dataroom_id: z.string().describe("Dataroom the group belongs to."),
|
|
398
|
+
created: dateTimeOutputSchema("When the group was created."),
|
|
399
|
+
updated_at: dateTimeOutputSchema("When the group was last updated.")
|
|
400
|
+
}).passthrough().describe("Papermark dataroom viewer group object.");
|
|
401
|
+
var dataroomGroupMemberObjectOutputSchema = z.object({
|
|
402
|
+
id: z.string().describe("Membership id \u2014 use it to remove the member."),
|
|
403
|
+
object: z.literal("dataroom_group_member").describe(
|
|
404
|
+
"String representing the object's type. Always `dataroom_group_member`."
|
|
405
|
+
),
|
|
406
|
+
email: z.string().describe("Member's email address."),
|
|
407
|
+
viewer_id: z.string().describe("Id of the team-level viewer this membership points at."),
|
|
408
|
+
created: dateTimeOutputSchema("When the member was added.")
|
|
409
|
+
}).passthrough().describe("Dataroom group membership object.");
|
|
410
|
+
var permissionItemTypeEnum = z.enum(["dataroom_document", "dataroom_folder"]).describe(
|
|
411
|
+
"Kind of dataroom item. `dataroom_document` targets a dataroom-document attachment id (from `list_dataroom_documents`); `dataroom_folder` targets a dataroom folder id (from `list_dataroom_folders`)."
|
|
412
|
+
);
|
|
413
|
+
var dataroomGroupPermissionObjectOutputSchema = z.object({
|
|
414
|
+
object: z.literal("dataroom_group_permission").describe(
|
|
415
|
+
"String representing the object's type. Always `dataroom_group_permission`."
|
|
416
|
+
),
|
|
417
|
+
item_id: z.string().describe("Dataroom-document or dataroom-folder id."),
|
|
418
|
+
item_type: permissionItemTypeEnum,
|
|
419
|
+
can_view: z.boolean().describe("Whether the group can view the item."),
|
|
420
|
+
can_download: z.boolean().describe("Whether the group can download the item."),
|
|
421
|
+
updated_at: dateTimeOutputSchema("When the permission was last changed.")
|
|
422
|
+
}).passthrough().describe("Per-item access control for a dataroom group.");
|
|
423
|
+
var linkPermissionObjectOutputSchema = z.object({
|
|
424
|
+
object: z.literal("link_permission").describe(
|
|
425
|
+
"String representing the object's type. Always `link_permission`."
|
|
426
|
+
),
|
|
427
|
+
item_id: z.string().describe("Dataroom-document or dataroom-folder id."),
|
|
428
|
+
item_type: permissionItemTypeEnum,
|
|
429
|
+
can_view: z.boolean().describe("Whether viewers can view the item."),
|
|
430
|
+
can_download: z.boolean().describe("Whether viewers can download the item."),
|
|
431
|
+
can_download_original: z.boolean().describe(
|
|
432
|
+
"Whether the original (non-watermarked) file can be downloaded. Always false for permissions written via the API."
|
|
433
|
+
),
|
|
434
|
+
updated_at: dateTimeOutputSchema("When the permission was last changed.")
|
|
435
|
+
}).passthrough().describe("Per-item file permission override on a dataroom link.");
|
|
436
|
+
var permissionEntryInputSchema = z.object({
|
|
437
|
+
item_id: z.string().min(1).describe(
|
|
438
|
+
"Dataroom-document attachment id (from `list_dataroom_documents`) or dataroom folder id (from `list_dataroom_folders`) \u2014 NOT the team-library document id."
|
|
439
|
+
),
|
|
440
|
+
item_type: permissionItemTypeEnum,
|
|
441
|
+
can_view: z.boolean().describe("Allow viewing the item."),
|
|
442
|
+
can_download: z.boolean().describe("Allow downloading the item.")
|
|
443
|
+
}).describe("One per-item permission entry.");
|
|
444
|
+
var dataroomGroupOutputSchema = z.object({
|
|
445
|
+
group: dataroomGroupObjectOutputSchema.describe(
|
|
446
|
+
"Dataroom group returned by the tool."
|
|
447
|
+
)
|
|
448
|
+
});
|
|
449
|
+
var dataroomGroupsListOutputSchema = z.object({
|
|
450
|
+
groups: z.array(dataroomGroupObjectOutputSchema).describe("Dataroom groups in the current page."),
|
|
451
|
+
next_cursor: cursorOutputSchema
|
|
452
|
+
});
|
|
453
|
+
var dataroomGroupMembersListOutputSchema = z.object({
|
|
454
|
+
members: z.array(dataroomGroupMemberObjectOutputSchema).describe("Group members in the current page."),
|
|
455
|
+
next_cursor: cursorOutputSchema
|
|
456
|
+
});
|
|
457
|
+
var dataroomGroupPermissionsListOutputSchema = z.object({
|
|
458
|
+
permissions: z.array(dataroomGroupPermissionObjectOutputSchema).describe("Per-item access controls."),
|
|
459
|
+
next_cursor: cursorOutputSchema
|
|
460
|
+
});
|
|
461
|
+
var dataroomGroupPermissionsSetOutputSchema = z.object({
|
|
462
|
+
permissions: z.array(dataroomGroupPermissionObjectOutputSchema).describe(
|
|
463
|
+
"Effective rows for every touched item \u2014 the entries sent plus auto-shown ancestor folders."
|
|
464
|
+
)
|
|
465
|
+
});
|
|
466
|
+
var linkPermissionsListOutputSchema = z.object({
|
|
467
|
+
permissions: z.array(linkPermissionObjectOutputSchema).describe("Per-item permission overrides on the link.")
|
|
468
|
+
});
|
|
377
469
|
var deletedObjectOutputSchema = z.object({
|
|
378
470
|
id: z.string().describe("ID of the deleted object."),
|
|
379
471
|
object: z.enum([
|
|
@@ -382,7 +474,9 @@ var deletedObjectOutputSchema = z.object({
|
|
|
382
474
|
"link",
|
|
383
475
|
"dataroom",
|
|
384
476
|
"dataroom_folder",
|
|
385
|
-
"dataroom_document"
|
|
477
|
+
"dataroom_document",
|
|
478
|
+
"dataroom_group",
|
|
479
|
+
"dataroom_group_member"
|
|
386
480
|
]).describe("The type of object that was deleted."),
|
|
387
481
|
deleted: z.literal(true).describe("Always `true`. Confirms the object was deleted.")
|
|
388
482
|
});
|
|
@@ -433,11 +527,26 @@ Never share a link to a document the user didn't explicitly name. Requires scope
|
|
|
433
527
|
inputSchema: {
|
|
434
528
|
document_id: z.string().optional().describe("Document id \u2014 required unless `dataroom_id` is set"),
|
|
435
529
|
dataroom_id: z.string().optional().describe("Dataroom id \u2014 alternative to document_id"),
|
|
530
|
+
audience_type: z.enum(["general", "group"]).optional().describe(
|
|
531
|
+
"Set to `group` (dataroom links only, together with `group_id`) to scope the link to a dataroom group. Group links are always email-protected; only group members (by email or domain) can open them."
|
|
532
|
+
),
|
|
533
|
+
group_id: z.string().optional().describe(
|
|
534
|
+
"Dataroom group id from `list_dataroom_groups` \u2014 required when `audience_type` is `group`; must belong to the same dataroom"
|
|
535
|
+
),
|
|
436
536
|
name: z.string().optional().describe("Human-readable label for the link"),
|
|
437
537
|
expires_at: z.string().datetime().optional().describe("ISO 8601 timestamp after which the link stops working"),
|
|
438
538
|
password: z.string().optional().describe("Require viewers to enter this password"),
|
|
439
539
|
email_protected: z.boolean().optional().describe("Require viewers enter an email address before viewing"),
|
|
540
|
+
email_authenticated: z.boolean().optional().describe(
|
|
541
|
+
"Require viewers to verify their email via a one-time code before viewing (stronger than `email_protected`)"
|
|
542
|
+
),
|
|
440
543
|
allow_download: z.boolean().optional().describe("Let viewers download the underlying file"),
|
|
544
|
+
allow_list: z.array(z.string()).optional().describe(
|
|
545
|
+
"Restrict access to these emails or domains (e.g. ['@acme.com', 'bob@x.com']). Empty array allows everyone."
|
|
546
|
+
),
|
|
547
|
+
deny_list: z.array(z.string()).optional().describe(
|
|
548
|
+
"Block these emails or domains from viewing (e.g. ['@rival.com'])."
|
|
549
|
+
),
|
|
441
550
|
enable_confidential_view: z.boolean().optional().describe(
|
|
442
551
|
"Enable confidential view: viewer renders only a narrow band of each page at a time (rest is blurred) to prevent capturing the whole document in a single screenshot."
|
|
443
552
|
),
|
|
@@ -446,6 +555,21 @@ Never share a link to a document the user didn't explicitly name. Requires scope
|
|
|
446
555
|
),
|
|
447
556
|
watermark_config: watermarkConfigInputSchema.optional().describe(
|
|
448
557
|
"Watermark settings. Only applied when `enable_watermark` is true. Optional even when watermark is enabled \u2014 omit to use viewer defaults."
|
|
558
|
+
),
|
|
559
|
+
enable_screenshot_protection: z.boolean().optional().describe(
|
|
560
|
+
"Block common screenshot/screen-recording shortcuts while the document is open."
|
|
561
|
+
),
|
|
562
|
+
enable_agreement: z.boolean().optional().describe(
|
|
563
|
+
"Require viewers to accept an agreement (NDA) before viewing. Must be paired with `agreement_id`."
|
|
564
|
+
),
|
|
565
|
+
agreement_id: z.string().optional().describe(
|
|
566
|
+
"Id of the agreement (NDA) viewers must accept. Required when `enable_agreement` is true."
|
|
567
|
+
),
|
|
568
|
+
domain: z.string().optional().describe(
|
|
569
|
+
"Verified custom domain to host the link on (e.g. `docs.acme.com`). Must be passed together with `slug`, and requires a plan that supports custom domains."
|
|
570
|
+
),
|
|
571
|
+
slug: z.string().optional().describe(
|
|
572
|
+
"Path segment on the custom domain (e.g. `q3-deck` \u2192 `docs.acme.com/q3-deck`). Must be passed together with `domain`."
|
|
449
573
|
)
|
|
450
574
|
}
|
|
451
575
|
};
|
|
@@ -456,6 +580,7 @@ var listLinksContract = {
|
|
|
456
580
|
inputSchema: {
|
|
457
581
|
document_id: z.string().optional().describe("Filter links for a specific document"),
|
|
458
582
|
dataroom_id: z.string().optional().describe("Filter links for a specific dataroom"),
|
|
583
|
+
group_id: z.string().optional().describe("Filter to group links scoped to a specific dataroom group"),
|
|
459
584
|
limit: z.number().int().min(1).max(100).optional().describe("Page size"),
|
|
460
585
|
cursor: z.string().optional().describe("Pagination cursor")
|
|
461
586
|
}
|
|
@@ -821,6 +946,12 @@ Requires scope \`links.write\`.`,
|
|
|
821
946
|
name: z.string().optional(),
|
|
822
947
|
expires_at: z.string().datetime().nullable().optional().describe("ISO 8601 timestamp, or null to clear the expiry"),
|
|
823
948
|
password: z.string().min(1).nullable().optional().describe("New password, or null to remove password protection"),
|
|
949
|
+
audience_type: z.enum(["general", "group"]).optional().describe(
|
|
950
|
+
"Switch the link's audience. `group` (dataroom links only) needs a `group_id` here or already on the link and forces email protection; `general` clears the group scope."
|
|
951
|
+
),
|
|
952
|
+
group_id: z.string().nullable().optional().describe(
|
|
953
|
+
'Dataroom group id from `list_dataroom_groups`. Set with `audience_type: "group"`, or alone to swap the group of an existing group link.'
|
|
954
|
+
),
|
|
824
955
|
email_protected: z.boolean().optional(),
|
|
825
956
|
email_authenticated: z.boolean().optional(),
|
|
826
957
|
allow_download: z.boolean().optional(),
|
|
@@ -831,7 +962,19 @@ Requires scope \`links.write\`.`,
|
|
|
831
962
|
"Watermark settings. Pass an object to replace the existing config, or `null` to clear it. Omit to leave unchanged."
|
|
832
963
|
),
|
|
833
964
|
enable_screenshot_protection: z.boolean().optional(),
|
|
834
|
-
enable_confidential_view: z.boolean().optional()
|
|
965
|
+
enable_confidential_view: z.boolean().optional(),
|
|
966
|
+
enable_agreement: z.boolean().optional().describe(
|
|
967
|
+
"Require viewers to accept an agreement (NDA) before viewing. Pair with `agreement_id`."
|
|
968
|
+
),
|
|
969
|
+
agreement_id: z.string().nullable().optional().describe(
|
|
970
|
+
"Id of the agreement (NDA) viewers must accept, or null to clear it. Required when turning `enable_agreement` on."
|
|
971
|
+
),
|
|
972
|
+
domain: z.string().optional().describe(
|
|
973
|
+
'Verified custom domain to host the link on (e.g. `docs.acme.com`). Pass together with `slug`. Pass `domain: "papermark.com"` to move the link back to the default domain.'
|
|
974
|
+
),
|
|
975
|
+
slug: z.string().optional().describe(
|
|
976
|
+
"Path segment on the custom domain. Must be passed together with `domain`."
|
|
977
|
+
)
|
|
835
978
|
}
|
|
836
979
|
};
|
|
837
980
|
var deleteLinkContract = {
|
|
@@ -981,6 +1124,150 @@ var moveDataroomFolderContract = {
|
|
|
981
1124
|
parent_id: z.string().nullable()
|
|
982
1125
|
}
|
|
983
1126
|
};
|
|
1127
|
+
var listDataroomGroupsContract = {
|
|
1128
|
+
name: "list_dataroom_groups",
|
|
1129
|
+
title: "List dataroom groups",
|
|
1130
|
+
description: 'List viewer groups in a dataroom. Groups define an audience (members by email or domain) plus per-item view/download permissions, and are shared via group links (`create_link` with `audience_type: "group"`). Requires scope `datarooms.read`.',
|
|
1131
|
+
inputSchema: {
|
|
1132
|
+
dataroom_id: z.string().min(1),
|
|
1133
|
+
limit: z.number().int().min(1).max(100).optional(),
|
|
1134
|
+
cursor: z.string().optional()
|
|
1135
|
+
}
|
|
1136
|
+
};
|
|
1137
|
+
var getDataroomGroupContract = {
|
|
1138
|
+
name: "get_dataroom_group",
|
|
1139
|
+
title: "Get a dataroom group",
|
|
1140
|
+
description: "Fetch a single dataroom group with its domain rules, allow-all flag, and member/link counts. Requires scope `datarooms.read`.",
|
|
1141
|
+
inputSchema: {
|
|
1142
|
+
dataroom_id: z.string().min(1),
|
|
1143
|
+
group_id: z.string().min(1)
|
|
1144
|
+
}
|
|
1145
|
+
};
|
|
1146
|
+
var createDataroomGroupContract = {
|
|
1147
|
+
name: "create_dataroom_group",
|
|
1148
|
+
title: "Create a dataroom group",
|
|
1149
|
+
description: `Create a viewer group in a dataroom.
|
|
1150
|
+
|
|
1151
|
+
WORKFLOW:
|
|
1152
|
+
(1) Create the group (optionally with \`domains\` or \`allow_all\`).
|
|
1153
|
+
(2) Add explicit members via \`add_dataroom_group_members\`.
|
|
1154
|
+
(3) Grant document/folder access via \`set_dataroom_group_permissions\` \u2014 a new group sees NOTHING until permissions are set.
|
|
1155
|
+
(4) Share it by creating a link with \`audience_type: "group"\`.
|
|
1156
|
+
|
|
1157
|
+
Requires scope \`datarooms.write\`.`,
|
|
1158
|
+
inputSchema: {
|
|
1159
|
+
dataroom_id: z.string().min(1),
|
|
1160
|
+
name: z.string().min(1).max(255).describe("Group name"),
|
|
1161
|
+
allow_all: z.boolean().optional().describe(
|
|
1162
|
+
"Treat anyone passing the link's access gates as a member (skips the email/domain membership check)"
|
|
1163
|
+
),
|
|
1164
|
+
domains: z.array(z.string().min(1)).max(100).optional().describe(
|
|
1165
|
+
"Email domains treated as members, e.g. ['acme.com'] admits jane@acme.com"
|
|
1166
|
+
)
|
|
1167
|
+
}
|
|
1168
|
+
};
|
|
1169
|
+
var updateDataroomGroupContract = {
|
|
1170
|
+
name: "update_dataroom_group",
|
|
1171
|
+
title: "Update a dataroom group",
|
|
1172
|
+
description: "Rename a dataroom group or change its `domains` / `allow_all` audience rules. PATCH semantics \u2014 omitted fields stay as they are; a passed `domains` array REPLACES the current one. Requires scope `datarooms.write`.",
|
|
1173
|
+
inputSchema: {
|
|
1174
|
+
dataroom_id: z.string().min(1),
|
|
1175
|
+
group_id: z.string().min(1),
|
|
1176
|
+
name: z.string().min(1).max(255).optional(),
|
|
1177
|
+
allow_all: z.boolean().optional(),
|
|
1178
|
+
domains: z.array(z.string().min(1)).max(100).optional()
|
|
1179
|
+
}
|
|
1180
|
+
};
|
|
1181
|
+
var deleteDataroomGroupContract = {
|
|
1182
|
+
name: "delete_dataroom_group",
|
|
1183
|
+
title: "Delete a dataroom group",
|
|
1184
|
+
description: `Delete a dataroom group, its memberships, its permissions, AND every share link pointing at it \u2014 active group links stop resolving immediately.
|
|
1185
|
+
|
|
1186
|
+
ALWAYS confirm with the user before calling (echo the group name and its link count via \`get_dataroom_group\`). This is irreversible. Requires scope \`datarooms.write\`.`,
|
|
1187
|
+
inputSchema: {
|
|
1188
|
+
dataroom_id: z.string().min(1),
|
|
1189
|
+
group_id: z.string().min(1)
|
|
1190
|
+
}
|
|
1191
|
+
};
|
|
1192
|
+
var listDataroomGroupMembersContract = {
|
|
1193
|
+
name: "list_dataroom_group_members",
|
|
1194
|
+
title: "List dataroom group members",
|
|
1195
|
+
description: "List a group's explicit email members with their membership ids (needed for `remove_dataroom_group_member`). Viewers admitted via the group's `domains` or `allow_all` are not listed. Requires scope `datarooms.read`.",
|
|
1196
|
+
inputSchema: {
|
|
1197
|
+
dataroom_id: z.string().min(1),
|
|
1198
|
+
group_id: z.string().min(1),
|
|
1199
|
+
limit: z.number().int().min(1).max(100).optional(),
|
|
1200
|
+
cursor: z.string().optional()
|
|
1201
|
+
}
|
|
1202
|
+
};
|
|
1203
|
+
var addDataroomGroupMembersContract = {
|
|
1204
|
+
name: "add_dataroom_group_members",
|
|
1205
|
+
title: "Add dataroom group members",
|
|
1206
|
+
description: "Add members to a dataroom group by email (up to 500 per call). Idempotent \u2014 already-present members are skipped. NO invitation emails are sent; members gain access the next time they open a group link. Requires scope `datarooms.write`.",
|
|
1207
|
+
inputSchema: {
|
|
1208
|
+
dataroom_id: z.string().min(1),
|
|
1209
|
+
group_id: z.string().min(1),
|
|
1210
|
+
emails: z.array(z.string().email()).min(1).max(500).describe("Email addresses to add as members")
|
|
1211
|
+
}
|
|
1212
|
+
};
|
|
1213
|
+
var removeDataroomGroupMemberContract = {
|
|
1214
|
+
name: "remove_dataroom_group_member",
|
|
1215
|
+
title: "Remove a dataroom group member",
|
|
1216
|
+
description: "Remove a member from a dataroom group by membership id (from `list_dataroom_group_members` \u2014 NOT the email or viewer id). The viewer itself is kept; only this group membership is removed. Requires scope `datarooms.write`.",
|
|
1217
|
+
inputSchema: {
|
|
1218
|
+
dataroom_id: z.string().min(1),
|
|
1219
|
+
group_id: z.string().min(1),
|
|
1220
|
+
member_id: z.string().min(1).describe("Membership id from `list_dataroom_group_members`")
|
|
1221
|
+
}
|
|
1222
|
+
};
|
|
1223
|
+
var getDataroomGroupPermissionsContract = {
|
|
1224
|
+
name: "get_dataroom_group_permissions",
|
|
1225
|
+
title: "Get dataroom group permissions",
|
|
1226
|
+
description: "List a group's per-item access controls. Items WITHOUT an entry are invisible to the group's viewers. Requires scope `datarooms.read`.",
|
|
1227
|
+
inputSchema: {
|
|
1228
|
+
dataroom_id: z.string().min(1),
|
|
1229
|
+
group_id: z.string().min(1),
|
|
1230
|
+
limit: z.number().int().min(1).max(100).optional(),
|
|
1231
|
+
cursor: z.string().optional()
|
|
1232
|
+
}
|
|
1233
|
+
};
|
|
1234
|
+
var setDataroomGroupPermissionsContract = {
|
|
1235
|
+
name: "set_dataroom_group_permissions",
|
|
1236
|
+
title: "Set dataroom group permissions",
|
|
1237
|
+
description: `Upsert per-item view/download permissions for a dataroom group. DELTA semantics: entries you send are upserted, entries you omit keep their current state. Ancestor folders of any item made visible are automatically set to \`can_view: true\`.
|
|
1238
|
+
|
|
1239
|
+
WORKFLOW:
|
|
1240
|
+
(1) Get item ids from \`list_dataroom_documents\` (attachment ids) / \`list_dataroom_folders\` (folder ids) \u2014 NOT team-library document ids.
|
|
1241
|
+
(2) Send one entry per item to change. To hide an item, send it with \`can_view: false, can_download: false\`.
|
|
1242
|
+
|
|
1243
|
+
Requires scope \`datarooms.write\`.`,
|
|
1244
|
+
inputSchema: {
|
|
1245
|
+
dataroom_id: z.string().min(1),
|
|
1246
|
+
group_id: z.string().min(1),
|
|
1247
|
+
permissions: z.array(permissionEntryInputSchema).min(1).max(1e3).describe("Permission entries to upsert")
|
|
1248
|
+
}
|
|
1249
|
+
};
|
|
1250
|
+
var getLinkPermissionsContract = {
|
|
1251
|
+
name: "get_link_permissions",
|
|
1252
|
+
title: "Get link permissions",
|
|
1253
|
+
description: "List a dataroom link's per-item file permission overrides. Empty when the link has no overrides \u2014 viewers then see items per the link's group (group links) or the full dataroom. On group-audience links the group's permissions win and these overrides are ignored. Requires scope `links.read`.",
|
|
1254
|
+
inputSchema: {
|
|
1255
|
+
link_id: z.string().min(1)
|
|
1256
|
+
}
|
|
1257
|
+
};
|
|
1258
|
+
var setLinkPermissionsContract = {
|
|
1259
|
+
name: "set_link_permissions",
|
|
1260
|
+
title: "Set link permissions",
|
|
1261
|
+
description: `Replace a dataroom link's per-item file permissions. FULL-REPLACE semantics: the payload is the complete desired state \u2014 items not listed lose their override, and an empty array clears everything (hiding every item on this link). Ancestor folders of visible items stay visible automatically.
|
|
1262
|
+
|
|
1263
|
+
Item ids come from \`list_dataroom_documents\` / \`list_dataroom_folders\`. Has no effect on links with \`audience_type: "group"\` \u2014 their group's permissions take precedence. Requires scope \`links.write\`.`,
|
|
1264
|
+
inputSchema: {
|
|
1265
|
+
link_id: z.string().min(1),
|
|
1266
|
+
permissions: z.array(permissionEntryInputSchema).max(1e3).describe(
|
|
1267
|
+
"Complete desired permission state. Empty array clears all overrides."
|
|
1268
|
+
)
|
|
1269
|
+
}
|
|
1270
|
+
};
|
|
984
1271
|
var getVisitorContract = {
|
|
985
1272
|
name: "get_visitor",
|
|
986
1273
|
title: "Get a visitor",
|
|
@@ -1033,6 +1320,18 @@ var SHARED_TOOL_OUTPUT_SCHEMAS = {
|
|
|
1033
1320
|
[updateDataroomFolderContract.name]: folderOutputSchema,
|
|
1034
1321
|
[deleteDataroomFolderContract.name]: deletedObjectOutputSchema,
|
|
1035
1322
|
[moveDataroomFolderContract.name]: folderOutputSchema,
|
|
1323
|
+
[listDataroomGroupsContract.name]: dataroomGroupsListOutputSchema,
|
|
1324
|
+
[getDataroomGroupContract.name]: dataroomGroupObjectOutputSchema,
|
|
1325
|
+
[createDataroomGroupContract.name]: dataroomGroupOutputSchema,
|
|
1326
|
+
[updateDataroomGroupContract.name]: dataroomGroupOutputSchema,
|
|
1327
|
+
[deleteDataroomGroupContract.name]: deletedObjectOutputSchema,
|
|
1328
|
+
[listDataroomGroupMembersContract.name]: dataroomGroupMembersListOutputSchema,
|
|
1329
|
+
[addDataroomGroupMembersContract.name]: dataroomGroupMembersListOutputSchema,
|
|
1330
|
+
[removeDataroomGroupMemberContract.name]: deletedObjectOutputSchema,
|
|
1331
|
+
[getDataroomGroupPermissionsContract.name]: dataroomGroupPermissionsListOutputSchema,
|
|
1332
|
+
[setDataroomGroupPermissionsContract.name]: dataroomGroupPermissionsSetOutputSchema,
|
|
1333
|
+
[getLinkPermissionsContract.name]: linkPermissionsListOutputSchema,
|
|
1334
|
+
[setLinkPermissionsContract.name]: linkPermissionsListOutputSchema,
|
|
1036
1335
|
[getVisitorContract.name]: visitorObjectOutputSchema
|
|
1037
1336
|
};
|
|
1038
1337
|
|
|
@@ -1067,6 +1366,17 @@ export {
|
|
|
1067
1366
|
visitorViewsListOutputSchema,
|
|
1068
1367
|
foldersListOutputSchema,
|
|
1069
1368
|
versionsListOutputSchema,
|
|
1369
|
+
dataroomGroupObjectOutputSchema,
|
|
1370
|
+
dataroomGroupMemberObjectOutputSchema,
|
|
1371
|
+
dataroomGroupPermissionObjectOutputSchema,
|
|
1372
|
+
linkPermissionObjectOutputSchema,
|
|
1373
|
+
permissionEntryInputSchema,
|
|
1374
|
+
dataroomGroupOutputSchema,
|
|
1375
|
+
dataroomGroupsListOutputSchema,
|
|
1376
|
+
dataroomGroupMembersListOutputSchema,
|
|
1377
|
+
dataroomGroupPermissionsListOutputSchema,
|
|
1378
|
+
dataroomGroupPermissionsSetOutputSchema,
|
|
1379
|
+
linkPermissionsListOutputSchema,
|
|
1070
1380
|
deletedObjectOutputSchema,
|
|
1071
1381
|
listDocumentsContract,
|
|
1072
1382
|
getDocumentContract,
|
|
@@ -1111,7 +1421,19 @@ export {
|
|
|
1111
1421
|
updateDataroomFolderContract,
|
|
1112
1422
|
deleteDataroomFolderContract,
|
|
1113
1423
|
moveDataroomFolderContract,
|
|
1424
|
+
listDataroomGroupsContract,
|
|
1425
|
+
getDataroomGroupContract,
|
|
1426
|
+
createDataroomGroupContract,
|
|
1427
|
+
updateDataroomGroupContract,
|
|
1428
|
+
deleteDataroomGroupContract,
|
|
1429
|
+
listDataroomGroupMembersContract,
|
|
1430
|
+
addDataroomGroupMembersContract,
|
|
1431
|
+
removeDataroomGroupMemberContract,
|
|
1432
|
+
getDataroomGroupPermissionsContract,
|
|
1433
|
+
setDataroomGroupPermissionsContract,
|
|
1434
|
+
getLinkPermissionsContract,
|
|
1435
|
+
setLinkPermissionsContract,
|
|
1114
1436
|
getVisitorContract,
|
|
1115
1437
|
SHARED_TOOL_OUTPUT_SCHEMAS
|
|
1116
1438
|
};
|
|
1117
|
-
//# sourceMappingURL=chunk-
|
|
1439
|
+
//# sourceMappingURL=chunk-STGR2RDC.js.map
|