@papermark/mcp-server 0.2.0 → 0.3.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-S3ALJ4YG.js → chunk-QTHIJVM3.js} +404 -3
- package/dist/chunk-QTHIJVM3.js.map +1 -0
- package/dist/index.js +123 -53
- package/dist/index.js.map +1 -1
- package/dist/tools-contract.d.ts +1138 -1
- package/dist/tools-contract.js +65 -3
- package/package.json +1 -1
- package/dist/chunk-S3ALJ4YG.js.map +0 -1
|
@@ -2,6 +2,330 @@
|
|
|
2
2
|
|
|
3
3
|
// src/tools-contract.ts
|
|
4
4
|
import { z } from "zod";
|
|
5
|
+
var anyObjectOutputSchema = z.object({}).passthrough();
|
|
6
|
+
var dateTimeOutputSchema = (description) => z.string().datetime().describe(description);
|
|
7
|
+
var nullableDateTimeOutputSchema = (description) => z.string().datetime().nullable().describe(description);
|
|
8
|
+
var nullableStringOutputSchema = (description) => z.string().nullable().describe(description);
|
|
9
|
+
var integerOutputSchema = (description) => z.number().int().describe(description);
|
|
10
|
+
var nullableIntegerOutputSchema = (description) => z.number().int().nullable().describe(description);
|
|
11
|
+
var cursorOutputSchema = z.string().nullable().describe(
|
|
12
|
+
"Opaque cursor for the next page, or null when there is no next page."
|
|
13
|
+
);
|
|
14
|
+
var documentObjectOutputSchema = z.object({
|
|
15
|
+
id: z.string().describe("Unique Papermark document id."),
|
|
16
|
+
object: z.literal("document").describe("String representing the object's type. Always `document`."),
|
|
17
|
+
name: z.string().describe("Document file name."),
|
|
18
|
+
type: nullableStringOutputSchema(
|
|
19
|
+
"Document type, such as `pdf`, or null when unknown."
|
|
20
|
+
),
|
|
21
|
+
content_type: nullableStringOutputSchema(
|
|
22
|
+
"Document MIME type, such as `application/pdf`, or null when unknown."
|
|
23
|
+
),
|
|
24
|
+
num_pages: nullableIntegerOutputSchema(
|
|
25
|
+
"Number of pages, or null when unknown."
|
|
26
|
+
),
|
|
27
|
+
folder_id: nullableStringOutputSchema(
|
|
28
|
+
"ID of the team-library folder containing this document, or null for the library root."
|
|
29
|
+
),
|
|
30
|
+
created: dateTimeOutputSchema("When the document was created."),
|
|
31
|
+
updated_at: dateTimeOutputSchema("When the document was last updated.")
|
|
32
|
+
}).passthrough().describe("Papermark document object.");
|
|
33
|
+
var linkObjectOutputSchema = z.object({
|
|
34
|
+
id: z.string().describe("Unique Papermark share link id."),
|
|
35
|
+
object: z.literal("link").describe("String representing the object's type. Always `link`."),
|
|
36
|
+
name: nullableStringOutputSchema(
|
|
37
|
+
"Human-readable internal label for the link, or null when unset."
|
|
38
|
+
),
|
|
39
|
+
target_type: z.enum(["document", "dataroom"]).describe(
|
|
40
|
+
"The kind of resource this link points at. The matching `document_id` / `dataroom_id` field is populated; the other is null."
|
|
41
|
+
),
|
|
42
|
+
document_id: nullableStringOutputSchema(
|
|
43
|
+
"Target document id when this is a document link, otherwise null."
|
|
44
|
+
),
|
|
45
|
+
dataroom_id: nullableStringOutputSchema(
|
|
46
|
+
"Target dataroom id when this is a dataroom link, otherwise null."
|
|
47
|
+
),
|
|
48
|
+
url: z.string().describe("The public view URL for this link."),
|
|
49
|
+
domain: nullableStringOutputSchema(
|
|
50
|
+
"Custom domain the link is hosted on. The same value accepted as `domain` on create/update. Null when the link uses the default papermark.com URL."
|
|
51
|
+
),
|
|
52
|
+
slug: nullableStringOutputSchema(
|
|
53
|
+
"Path segment for the custom-domain URL, or null when unset."
|
|
54
|
+
),
|
|
55
|
+
expires_at: nullableDateTimeOutputSchema(
|
|
56
|
+
"Expiration timestamp, or null when the link does not expire."
|
|
57
|
+
),
|
|
58
|
+
is_password_protected: z.boolean().describe(
|
|
59
|
+
"True if a password is set. The password itself is never returned."
|
|
60
|
+
),
|
|
61
|
+
email_protected: z.boolean().describe("Whether viewers must provide an email address."),
|
|
62
|
+
email_authenticated: z.boolean().describe("Whether email authentication is required for viewers."),
|
|
63
|
+
allow_download: z.boolean().describe("Whether viewers can download the linked content."),
|
|
64
|
+
allow_list: z.array(z.string()).describe(
|
|
65
|
+
"Email or domain allow list (e.g., ['@acme.com', 'bob@example.com'])."
|
|
66
|
+
),
|
|
67
|
+
deny_list: z.array(z.string()).describe("Blocked viewer emails or domains."),
|
|
68
|
+
enable_watermark: z.boolean().describe("Whether watermarking is enabled."),
|
|
69
|
+
enable_feedback: z.boolean().describe("Whether viewer feedback is enabled."),
|
|
70
|
+
enable_screenshot_protection: z.boolean().describe("Whether screenshot protection is enabled."),
|
|
71
|
+
created: dateTimeOutputSchema("When the link was created."),
|
|
72
|
+
updated_at: dateTimeOutputSchema("When the link was last updated.")
|
|
73
|
+
}).passthrough().describe("Papermark share link object.");
|
|
74
|
+
var dataroomObjectOutputSchema = z.object({
|
|
75
|
+
id: z.string().describe("Unique Papermark dataroom id."),
|
|
76
|
+
object: z.literal("dataroom").describe("String representing the object's type. Always `dataroom`."),
|
|
77
|
+
pid: z.string().describe(
|
|
78
|
+
"Stripe-style public ID, suitable for URLs and user references"
|
|
79
|
+
),
|
|
80
|
+
name: z.string().describe("Human-visible dataroom name."),
|
|
81
|
+
internal_name: nullableStringOutputSchema(
|
|
82
|
+
"Private alias visible only to the team"
|
|
83
|
+
),
|
|
84
|
+
description: nullableStringOutputSchema(
|
|
85
|
+
"Dataroom description, or null when unset."
|
|
86
|
+
),
|
|
87
|
+
document_count: integerOutputSchema("Number of documents in the dataroom."),
|
|
88
|
+
folder_count: integerOutputSchema("Number of folders in the dataroom."),
|
|
89
|
+
conversations_enabled: z.boolean().describe("Whether conversations are enabled."),
|
|
90
|
+
agents_enabled: z.boolean().describe("Whether AI agents are enabled."),
|
|
91
|
+
allow_bulk_download: z.boolean().describe("Whether viewers can bulk download dataroom contents."),
|
|
92
|
+
is_frozen: z.boolean().describe("Whether the dataroom is frozen."),
|
|
93
|
+
created: dateTimeOutputSchema("When the dataroom was created."),
|
|
94
|
+
updated_at: dateTimeOutputSchema("When the dataroom was last updated.")
|
|
95
|
+
}).passthrough().describe("Papermark dataroom object.");
|
|
96
|
+
var folderObjectOutputSchema = z.object({
|
|
97
|
+
id: z.string().describe("Unique Papermark folder id."),
|
|
98
|
+
object: z.enum(["folder", "dataroom_folder"]).describe(
|
|
99
|
+
"String representing the object's type. Either `folder` for a team-library folder or `dataroom_folder` for a dataroom folder."
|
|
100
|
+
),
|
|
101
|
+
name: z.string().describe("Folder name."),
|
|
102
|
+
parent_id: nullableStringOutputSchema(
|
|
103
|
+
"Parent folder id, or null when the folder is at the root."
|
|
104
|
+
),
|
|
105
|
+
path: z.string().describe(
|
|
106
|
+
"Server-derived path of slugified folder names. Read-only \u2014 never accepted from clients."
|
|
107
|
+
),
|
|
108
|
+
icon: nullableStringOutputSchema("Folder icon token, when configured."),
|
|
109
|
+
color: nullableStringOutputSchema("Folder color token, when configured."),
|
|
110
|
+
document_count: integerOutputSchema("Number of direct child documents."),
|
|
111
|
+
child_folder_count: integerOutputSchema("Number of direct child folders."),
|
|
112
|
+
order_index: nullableIntegerOutputSchema(
|
|
113
|
+
"Ordering index for dataroom folders, when available."
|
|
114
|
+
).optional(),
|
|
115
|
+
created: dateTimeOutputSchema("When the folder was created."),
|
|
116
|
+
updated_at: dateTimeOutputSchema("When the folder was last updated.")
|
|
117
|
+
}).passthrough().describe("Papermark folder object.");
|
|
118
|
+
var documentVersionObjectOutputSchema = z.object({
|
|
119
|
+
id: z.string().describe("Unique Papermark document version id."),
|
|
120
|
+
object: z.literal("document_version").describe(
|
|
121
|
+
"String representing the object's type. Always `document_version`."
|
|
122
|
+
),
|
|
123
|
+
version_number: integerOutputSchema("Sequential version number."),
|
|
124
|
+
is_primary: z.boolean().describe("Whether this is the primary active version."),
|
|
125
|
+
type: nullableStringOutputSchema("Document type or extension, when known."),
|
|
126
|
+
content_type: nullableStringOutputSchema("Detected MIME type, when known."),
|
|
127
|
+
num_pages: nullableIntegerOutputSchema("Number of pages, when known."),
|
|
128
|
+
file_size: nullableIntegerOutputSchema("File size in bytes, when known."),
|
|
129
|
+
created: dateTimeOutputSchema("When the version was created."),
|
|
130
|
+
updated_at: dateTimeOutputSchema("When the version was last updated.")
|
|
131
|
+
}).passthrough().describe("Papermark document version object.");
|
|
132
|
+
var dataroomItemObjectOutputSchema = z.object({
|
|
133
|
+
id: z.string().describe(
|
|
134
|
+
"DataroomDocument id (the link between a document and the dataroom)"
|
|
135
|
+
),
|
|
136
|
+
object: z.literal("dataroom_document").describe(
|
|
137
|
+
"String representing the object's type. Always `dataroom_document`."
|
|
138
|
+
),
|
|
139
|
+
document_id: z.string().describe("Underlying document id."),
|
|
140
|
+
document_name: z.string().describe("Underlying document name."),
|
|
141
|
+
content_type: nullableStringOutputSchema("Detected MIME type, when known."),
|
|
142
|
+
num_pages: nullableIntegerOutputSchema("Number of pages, when known."),
|
|
143
|
+
folder_id: nullableStringOutputSchema(
|
|
144
|
+
"Dataroom folder id containing the item, or null for the root."
|
|
145
|
+
),
|
|
146
|
+
folder_path: nullableStringOutputSchema(
|
|
147
|
+
"Dataroom folder path, when present."
|
|
148
|
+
),
|
|
149
|
+
order_index: nullableIntegerOutputSchema(
|
|
150
|
+
"Ordering index within the folder."
|
|
151
|
+
),
|
|
152
|
+
created: dateTimeOutputSchema("When the document was attached.")
|
|
153
|
+
}).passthrough().describe("Papermark dataroom document attachment object.");
|
|
154
|
+
var viewObjectOutputSchema = z.object({
|
|
155
|
+
id: z.string().describe("Unique Papermark view event id."),
|
|
156
|
+
object: z.literal("view").describe("String representing the object's type. Always `view`."),
|
|
157
|
+
link_id: nullableStringOutputSchema("Share link id for the view event."),
|
|
158
|
+
document_id: nullableStringOutputSchema(
|
|
159
|
+
"Document id viewed, when present."
|
|
160
|
+
),
|
|
161
|
+
dataroom_id: nullableStringOutputSchema(
|
|
162
|
+
"Dataroom id viewed, when present."
|
|
163
|
+
),
|
|
164
|
+
viewer_email: nullableStringOutputSchema("Viewer email, when captured."),
|
|
165
|
+
view_type: nullableStringOutputSchema("View event type."),
|
|
166
|
+
viewed_at: dateTimeOutputSchema("When the view occurred."),
|
|
167
|
+
downloaded_at: nullableDateTimeOutputSchema(
|
|
168
|
+
"When the viewer downloaded content, or null when not downloaded."
|
|
169
|
+
),
|
|
170
|
+
download_type: nullableStringOutputSchema("Download type, when available.")
|
|
171
|
+
}).passthrough().describe("Papermark view event object.");
|
|
172
|
+
var visitorObjectOutputSchema = z.object({
|
|
173
|
+
id: z.string().describe("Unique Papermark visitor id."),
|
|
174
|
+
object: z.literal("visitor").describe("String representing the object's type. Always `visitor`."),
|
|
175
|
+
email: z.string().describe("Visitor email address."),
|
|
176
|
+
verified: z.boolean().describe("Whether the visitor is verified."),
|
|
177
|
+
dataroom_id: nullableStringOutputSchema(
|
|
178
|
+
"If the visitor is tied to a specific dataroom (invitation or group member), this is its id"
|
|
179
|
+
),
|
|
180
|
+
invited_at: nullableDateTimeOutputSchema(
|
|
181
|
+
"When the visitor was invited, or null when not invited."
|
|
182
|
+
),
|
|
183
|
+
total_views: integerOutputSchema("Total number of views by this visitor."),
|
|
184
|
+
last_viewed_at: nullableDateTimeOutputSchema(
|
|
185
|
+
"Most recent view timestamp, or null when there are no views."
|
|
186
|
+
),
|
|
187
|
+
created: dateTimeOutputSchema("When the visitor was created."),
|
|
188
|
+
updated_at: dateTimeOutputSchema("When the visitor was last updated.")
|
|
189
|
+
}).passthrough().describe("Papermark visitor object.");
|
|
190
|
+
var visitorViewObjectOutputSchema = z.object({
|
|
191
|
+
id: z.string().describe("Unique Papermark visitor view event id."),
|
|
192
|
+
object: z.literal("visitor_view").describe(
|
|
193
|
+
"String representing the object's type. Always `visitor_view`."
|
|
194
|
+
),
|
|
195
|
+
link_id: z.string().describe("Share link id for the view."),
|
|
196
|
+
document_id: nullableStringOutputSchema(
|
|
197
|
+
"Document id viewed, when present."
|
|
198
|
+
),
|
|
199
|
+
dataroom_id: nullableStringOutputSchema(
|
|
200
|
+
"Dataroom id viewed, when present."
|
|
201
|
+
),
|
|
202
|
+
view_type: z.string().describe("View event type."),
|
|
203
|
+
viewed_at: dateTimeOutputSchema("When the view occurred."),
|
|
204
|
+
downloaded_at: nullableDateTimeOutputSchema(
|
|
205
|
+
"When the visitor downloaded content, or null when not downloaded."
|
|
206
|
+
),
|
|
207
|
+
is_archived: z.boolean().describe("Whether this view is archived.")
|
|
208
|
+
}).passthrough().describe("Papermark visitor view event object.");
|
|
209
|
+
var documentAnalyticsOutputSchema = z.object({
|
|
210
|
+
document_id: z.string().describe("Document id these analytics describe."),
|
|
211
|
+
total_views: integerOutputSchema("Total views in the time window."),
|
|
212
|
+
unique_viewers: integerOutputSchema("Unique viewers in the time window."),
|
|
213
|
+
total_duration_seconds: z.number().describe("Total read duration in seconds."),
|
|
214
|
+
avg_page_duration_seconds: z.array(
|
|
215
|
+
z.object({
|
|
216
|
+
page_number: integerOutputSchema("One-indexed page number."),
|
|
217
|
+
avg_duration_seconds: z.number().describe("Average duration on this page in seconds.")
|
|
218
|
+
})
|
|
219
|
+
).describe("Average duration per page."),
|
|
220
|
+
since: dateTimeOutputSchema("Start of the analytics window."),
|
|
221
|
+
until: dateTimeOutputSchema("End of the analytics window.")
|
|
222
|
+
}).passthrough().describe("Document analytics summary.");
|
|
223
|
+
var linkAnalyticsOutputSchema = z.object({
|
|
224
|
+
link_id: z.string().describe("Share link id these analytics describe."),
|
|
225
|
+
total_views: integerOutputSchema("Total views in the time window."),
|
|
226
|
+
total_duration_seconds: z.number().describe("Total read duration in seconds."),
|
|
227
|
+
unique_viewers: integerOutputSchema("Unique viewers in the time window."),
|
|
228
|
+
since: dateTimeOutputSchema("Start of the analytics window."),
|
|
229
|
+
until: dateTimeOutputSchema("End of the analytics window.")
|
|
230
|
+
}).passthrough().describe("Link analytics summary.");
|
|
231
|
+
var dataroomAnalyticsOutputSchema = z.object({
|
|
232
|
+
dataroom_id: z.string().describe("Dataroom id these analytics describe."),
|
|
233
|
+
total_views: integerOutputSchema("Total views in the time window."),
|
|
234
|
+
unique_viewers: integerOutputSchema("Unique viewers in the time window."),
|
|
235
|
+
total_duration_seconds: z.number().describe("Total read duration in seconds."),
|
|
236
|
+
since: dateTimeOutputSchema("Start of the analytics window."),
|
|
237
|
+
until: dateTimeOutputSchema("End of the analytics window.")
|
|
238
|
+
}).passthrough().describe("Dataroom analytics summary.");
|
|
239
|
+
var viewAnalyticsOutputSchema = z.object({
|
|
240
|
+
view_id: z.string().describe("View id these analytics describe."),
|
|
241
|
+
document_id: nullableStringOutputSchema(
|
|
242
|
+
"Document id viewed, when present."
|
|
243
|
+
),
|
|
244
|
+
viewer_email: nullableStringOutputSchema("Viewer email, when captured."),
|
|
245
|
+
viewed_at: dateTimeOutputSchema("When the view occurred."),
|
|
246
|
+
page_durations: z.array(
|
|
247
|
+
z.object({
|
|
248
|
+
page_number: integerOutputSchema("One-indexed page number."),
|
|
249
|
+
duration_seconds: z.number().describe("Duration on this page in seconds.")
|
|
250
|
+
})
|
|
251
|
+
).describe("Per-page duration details."),
|
|
252
|
+
total_duration_seconds: z.number().describe("Total read duration in seconds."),
|
|
253
|
+
location: z.object({
|
|
254
|
+
country: nullableStringOutputSchema("Viewer country, when known."),
|
|
255
|
+
city: nullableStringOutputSchema("Viewer city, when known.")
|
|
256
|
+
}).nullable().describe("Approximate viewer location, or null when unknown."),
|
|
257
|
+
client: z.object({
|
|
258
|
+
browser: nullableStringOutputSchema("Viewer browser, when known."),
|
|
259
|
+
os: nullableStringOutputSchema("Viewer operating system, when known."),
|
|
260
|
+
device: nullableStringOutputSchema("Viewer device type, when known.")
|
|
261
|
+
}).nullable().describe("Viewer client details, or null when unknown.")
|
|
262
|
+
}).passthrough().describe("View analytics details.");
|
|
263
|
+
var documentOutputSchema = z.object({
|
|
264
|
+
document: documentObjectOutputSchema.describe(
|
|
265
|
+
"Document returned by the tool."
|
|
266
|
+
)
|
|
267
|
+
});
|
|
268
|
+
var linkOutputSchema = z.object({
|
|
269
|
+
link: linkObjectOutputSchema.describe("Share link returned by the tool.")
|
|
270
|
+
});
|
|
271
|
+
var dataroomOutputSchema = z.object({
|
|
272
|
+
dataroom: dataroomObjectOutputSchema.describe(
|
|
273
|
+
"Dataroom returned by the tool."
|
|
274
|
+
)
|
|
275
|
+
});
|
|
276
|
+
var folderOutputSchema = z.object({
|
|
277
|
+
folder: folderObjectOutputSchema.describe("Folder returned by the tool.")
|
|
278
|
+
});
|
|
279
|
+
var versionOutputSchema = z.object({
|
|
280
|
+
version: documentVersionObjectOutputSchema.describe(
|
|
281
|
+
"Document version returned by the tool."
|
|
282
|
+
)
|
|
283
|
+
});
|
|
284
|
+
var dataroomItemOutputSchema = z.object({
|
|
285
|
+
item: dataroomItemObjectOutputSchema.describe(
|
|
286
|
+
"Dataroom document attachment returned by the tool."
|
|
287
|
+
)
|
|
288
|
+
});
|
|
289
|
+
var documentsListOutputSchema = z.object({
|
|
290
|
+
documents: z.array(documentObjectOutputSchema).describe("Documents in the current page."),
|
|
291
|
+
next_cursor: cursorOutputSchema
|
|
292
|
+
});
|
|
293
|
+
var dataroomDocumentsListOutputSchema = z.object({
|
|
294
|
+
documents: z.array(dataroomItemObjectOutputSchema).describe("Dataroom document attachments in the current page."),
|
|
295
|
+
next_cursor: cursorOutputSchema
|
|
296
|
+
});
|
|
297
|
+
var linksListOutputSchema = z.object({
|
|
298
|
+
links: z.array(linkObjectOutputSchema).describe("Links in the current page."),
|
|
299
|
+
next_cursor: cursorOutputSchema
|
|
300
|
+
});
|
|
301
|
+
var viewsListOutputSchema = z.object({
|
|
302
|
+
views: z.array(viewObjectOutputSchema).describe("Views in the current page."),
|
|
303
|
+
next_cursor: cursorOutputSchema
|
|
304
|
+
});
|
|
305
|
+
var dataroomsListOutputSchema = z.object({
|
|
306
|
+
datarooms: z.array(dataroomObjectOutputSchema).describe("Datarooms in the current page."),
|
|
307
|
+
next_cursor: cursorOutputSchema
|
|
308
|
+
});
|
|
309
|
+
var visitorsListOutputSchema = z.object({
|
|
310
|
+
visitors: z.array(visitorObjectOutputSchema).describe("Visitors in the current page."),
|
|
311
|
+
next_cursor: cursorOutputSchema
|
|
312
|
+
});
|
|
313
|
+
var visitorViewsListOutputSchema = z.object({
|
|
314
|
+
views: z.array(visitorViewObjectOutputSchema).describe("Visitor views in the current page."),
|
|
315
|
+
next_cursor: cursorOutputSchema
|
|
316
|
+
});
|
|
317
|
+
var foldersListOutputSchema = z.object({
|
|
318
|
+
folders: z.array(folderObjectOutputSchema).describe("Folders in the current page."),
|
|
319
|
+
next_cursor: cursorOutputSchema
|
|
320
|
+
});
|
|
321
|
+
var versionsListOutputSchema = z.object({
|
|
322
|
+
versions: z.array(documentVersionObjectOutputSchema).describe("Document versions.")
|
|
323
|
+
});
|
|
324
|
+
var deletedObjectOutputSchema = z.object({
|
|
325
|
+
id: z.string().describe("ID of the deleted object."),
|
|
326
|
+
object: z.enum(["document", "folder", "link", "dataroom", "dataroom_folder"]).describe("The type of object that was deleted."),
|
|
327
|
+
deleted: z.literal(true).describe("Always `true`. Confirms the object was deleted.")
|
|
328
|
+
});
|
|
5
329
|
var listDocumentsContract = {
|
|
6
330
|
name: "list_documents",
|
|
7
331
|
title: "List documents",
|
|
@@ -355,7 +679,9 @@ WORKFLOW:
|
|
|
355
679
|
Requires scope \`documents.write\`.`,
|
|
356
680
|
inputSchema: {
|
|
357
681
|
name: z.string().min(1).max(256),
|
|
358
|
-
parent_id: z.string().nullable().optional().describe(
|
|
682
|
+
parent_id: z.string().nullable().optional().describe(
|
|
683
|
+
"Parent folder id; omit or pass null for the team-library root"
|
|
684
|
+
),
|
|
359
685
|
icon: FolderIconEnum.optional(),
|
|
360
686
|
color: FolderColorEnum.optional()
|
|
361
687
|
}
|
|
@@ -558,8 +884,82 @@ var getVisitorContract = {
|
|
|
558
884
|
visitor_id: z.string().min(1)
|
|
559
885
|
}
|
|
560
886
|
};
|
|
887
|
+
var SHARED_TOOL_OUTPUT_SCHEMAS = {
|
|
888
|
+
[listDocumentsContract.name]: documentsListOutputSchema,
|
|
889
|
+
[getDocumentContract.name]: documentObjectOutputSchema,
|
|
890
|
+
[searchDocumentsContract.name]: documentsListOutputSchema,
|
|
891
|
+
[createLinkContract.name]: linkOutputSchema,
|
|
892
|
+
[listLinksContract.name]: linksListOutputSchema,
|
|
893
|
+
[listLinkViewsContract.name]: viewsListOutputSchema,
|
|
894
|
+
[listDataroomsContract.name]: dataroomsListOutputSchema,
|
|
895
|
+
[searchDataroomsContract.name]: dataroomsListOutputSchema,
|
|
896
|
+
[getDataroomContract.name]: dataroomObjectOutputSchema,
|
|
897
|
+
[createDataroomContract.name]: dataroomOutputSchema,
|
|
898
|
+
[listDataroomDocumentsContract.name]: dataroomDocumentsListOutputSchema,
|
|
899
|
+
[listVisitorsContract.name]: visitorsListOutputSchema,
|
|
900
|
+
[listVisitorViewsContract.name]: visitorViewsListOutputSchema,
|
|
901
|
+
[getDocumentAnalyticsContract.name]: documentAnalyticsOutputSchema,
|
|
902
|
+
[getLinkAnalyticsContract.name]: linkAnalyticsOutputSchema,
|
|
903
|
+
[getDataroomAnalyticsContract.name]: dataroomAnalyticsOutputSchema,
|
|
904
|
+
[getViewAnalyticsContract.name]: viewAnalyticsOutputSchema,
|
|
905
|
+
[updateDocumentContract.name]: documentOutputSchema,
|
|
906
|
+
[deleteDocumentContract.name]: deletedObjectOutputSchema,
|
|
907
|
+
[listDocumentVersionsContract.name]: versionsListOutputSchema,
|
|
908
|
+
[getDocumentVersionContract.name]: documentVersionObjectOutputSchema,
|
|
909
|
+
[addDocumentVersionContract.name]: versionOutputSchema,
|
|
910
|
+
[promoteDocumentVersionContract.name]: versionOutputSchema,
|
|
911
|
+
[listFoldersContract.name]: foldersListOutputSchema,
|
|
912
|
+
[getFolderContract.name]: folderObjectOutputSchema,
|
|
913
|
+
[createFolderContract.name]: folderOutputSchema,
|
|
914
|
+
[updateFolderContract.name]: folderOutputSchema,
|
|
915
|
+
[deleteFolderContract.name]: deletedObjectOutputSchema,
|
|
916
|
+
[moveFolderContract.name]: folderOutputSchema,
|
|
917
|
+
[getLinkContract.name]: linkOutputSchema,
|
|
918
|
+
[updateLinkContract.name]: linkOutputSchema,
|
|
919
|
+
[deleteLinkContract.name]: deletedObjectOutputSchema,
|
|
920
|
+
[updateDataroomContract.name]: dataroomOutputSchema,
|
|
921
|
+
[deleteDataroomContract.name]: deletedObjectOutputSchema,
|
|
922
|
+
[attachDataroomDocumentContract.name]: dataroomItemOutputSchema,
|
|
923
|
+
[listDataroomFoldersContract.name]: foldersListOutputSchema,
|
|
924
|
+
[getDataroomFolderContract.name]: folderObjectOutputSchema,
|
|
925
|
+
[createDataroomFolderContract.name]: folderOutputSchema,
|
|
926
|
+
[updateDataroomFolderContract.name]: folderOutputSchema,
|
|
927
|
+
[deleteDataroomFolderContract.name]: deletedObjectOutputSchema,
|
|
928
|
+
[moveDataroomFolderContract.name]: folderOutputSchema,
|
|
929
|
+
[getVisitorContract.name]: visitorObjectOutputSchema
|
|
930
|
+
};
|
|
561
931
|
|
|
562
932
|
export {
|
|
933
|
+
anyObjectOutputSchema,
|
|
934
|
+
documentObjectOutputSchema,
|
|
935
|
+
linkObjectOutputSchema,
|
|
936
|
+
dataroomObjectOutputSchema,
|
|
937
|
+
folderObjectOutputSchema,
|
|
938
|
+
documentVersionObjectOutputSchema,
|
|
939
|
+
dataroomItemObjectOutputSchema,
|
|
940
|
+
viewObjectOutputSchema,
|
|
941
|
+
visitorObjectOutputSchema,
|
|
942
|
+
visitorViewObjectOutputSchema,
|
|
943
|
+
documentAnalyticsOutputSchema,
|
|
944
|
+
linkAnalyticsOutputSchema,
|
|
945
|
+
dataroomAnalyticsOutputSchema,
|
|
946
|
+
viewAnalyticsOutputSchema,
|
|
947
|
+
documentOutputSchema,
|
|
948
|
+
linkOutputSchema,
|
|
949
|
+
dataroomOutputSchema,
|
|
950
|
+
folderOutputSchema,
|
|
951
|
+
versionOutputSchema,
|
|
952
|
+
dataroomItemOutputSchema,
|
|
953
|
+
documentsListOutputSchema,
|
|
954
|
+
dataroomDocumentsListOutputSchema,
|
|
955
|
+
linksListOutputSchema,
|
|
956
|
+
viewsListOutputSchema,
|
|
957
|
+
dataroomsListOutputSchema,
|
|
958
|
+
visitorsListOutputSchema,
|
|
959
|
+
visitorViewsListOutputSchema,
|
|
960
|
+
foldersListOutputSchema,
|
|
961
|
+
versionsListOutputSchema,
|
|
962
|
+
deletedObjectOutputSchema,
|
|
563
963
|
listDocumentsContract,
|
|
564
964
|
getDocumentContract,
|
|
565
965
|
searchDocumentsContract,
|
|
@@ -601,6 +1001,7 @@ export {
|
|
|
601
1001
|
updateDataroomFolderContract,
|
|
602
1002
|
deleteDataroomFolderContract,
|
|
603
1003
|
moveDataroomFolderContract,
|
|
604
|
-
getVisitorContract
|
|
1004
|
+
getVisitorContract,
|
|
1005
|
+
SHARED_TOOL_OUTPUT_SCHEMAS
|
|
605
1006
|
};
|
|
606
|
-
//# sourceMappingURL=chunk-
|
|
1007
|
+
//# sourceMappingURL=chunk-QTHIJVM3.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/tools-contract.ts"],"sourcesContent":["import { z } from \"zod\";\n\n/**\n * Single source of truth for the LLM-facing contract of each Papermark MCP\n * tool — name, title, description, and zod input schema. Both the stdio\n * transport (this repo) and the remote HTTP adapter (in the papermark app)\n * import from here so descriptions and schemas can't drift.\n *\n * Tool *bodies* (how each transport actually fulfills the request) stay in\n * the transport, because the environments differ — stdio can read local\n * files and hit the public v1 API over fetch; the in-app HTTP adapter\n * reaches the v1 routes via loopback with the caller's bearer token.\n *\n * `upload_document` is intentionally omitted: the stdio variant accepts a\n * local `file_path`, which the HTTP variant can't honor. Each side defines\n * its own upload_document contract.\n */\n\nexport interface ToolContract<TShape extends z.ZodRawShape> {\n name: string;\n title: string;\n description: string;\n inputSchema: TShape;\n}\n\nexport const anyObjectOutputSchema = z.object({}).passthrough();\n\nconst dateTimeOutputSchema = (description: string) =>\n z.string().datetime().describe(description);\nconst nullableDateTimeOutputSchema = (description: string) =>\n z.string().datetime().nullable().describe(description);\nconst nullableStringOutputSchema = (description: string) =>\n z.string().nullable().describe(description);\nconst integerOutputSchema = (description: string) =>\n z.number().int().describe(description);\nconst nullableIntegerOutputSchema = (description: string) =>\n z.number().int().nullable().describe(description);\nconst cursorOutputSchema = z\n .string()\n .nullable()\n .describe(\n \"Opaque cursor for the next page, or null when there is no next page.\",\n );\n\nexport const documentObjectOutputSchema = z\n .object({\n id: z.string().describe(\"Unique Papermark document id.\"),\n object: z\n .literal(\"document\")\n .describe(\"String representing the object's type. Always `document`.\"),\n name: z.string().describe(\"Document file name.\"),\n type: nullableStringOutputSchema(\n \"Document type, such as `pdf`, or null when unknown.\",\n ),\n content_type: nullableStringOutputSchema(\n \"Document MIME type, such as `application/pdf`, or null when unknown.\",\n ),\n num_pages: nullableIntegerOutputSchema(\n \"Number of pages, or null when unknown.\",\n ),\n folder_id: nullableStringOutputSchema(\n \"ID of the team-library folder containing this document, or null for the library root.\",\n ),\n created: dateTimeOutputSchema(\"When the document was created.\"),\n updated_at: dateTimeOutputSchema(\"When the document was last updated.\"),\n })\n .passthrough()\n .describe(\"Papermark document object.\");\n\nexport const linkObjectOutputSchema = z\n .object({\n id: z.string().describe(\"Unique Papermark share link id.\"),\n object: z\n .literal(\"link\")\n .describe(\"String representing the object's type. Always `link`.\"),\n name: nullableStringOutputSchema(\n \"Human-readable internal label for the link, or null when unset.\",\n ),\n target_type: z\n .enum([\"document\", \"dataroom\"])\n .describe(\n \"The kind of resource this link points at. The matching `document_id` / `dataroom_id` field is populated; the other is null.\",\n ),\n document_id: nullableStringOutputSchema(\n \"Target document id when this is a document link, otherwise null.\",\n ),\n dataroom_id: nullableStringOutputSchema(\n \"Target dataroom id when this is a dataroom link, otherwise null.\",\n ),\n url: z.string().describe(\"The public view URL for this link.\"),\n domain: nullableStringOutputSchema(\n \"Custom domain the link is hosted on. The same value accepted as `domain` on create/update. Null when the link uses the default papermark.com URL.\",\n ),\n slug: nullableStringOutputSchema(\n \"Path segment for the custom-domain URL, or null when unset.\",\n ),\n expires_at: nullableDateTimeOutputSchema(\n \"Expiration timestamp, or null when the link does not expire.\",\n ),\n is_password_protected: z\n .boolean()\n .describe(\n \"True if a password is set. The password itself is never returned.\",\n ),\n email_protected: z\n .boolean()\n .describe(\"Whether viewers must provide an email address.\"),\n email_authenticated: z\n .boolean()\n .describe(\"Whether email authentication is required for viewers.\"),\n allow_download: z\n .boolean()\n .describe(\"Whether viewers can download the linked content.\"),\n allow_list: z\n .array(z.string())\n .describe(\n \"Email or domain allow list (e.g., ['@acme.com', 'bob@example.com']).\",\n ),\n deny_list: z\n .array(z.string())\n .describe(\"Blocked viewer emails or domains.\"),\n enable_watermark: z.boolean().describe(\"Whether watermarking is enabled.\"),\n enable_feedback: z\n .boolean()\n .describe(\"Whether viewer feedback is enabled.\"),\n enable_screenshot_protection: z\n .boolean()\n .describe(\"Whether screenshot protection is enabled.\"),\n created: dateTimeOutputSchema(\"When the link was created.\"),\n updated_at: dateTimeOutputSchema(\"When the link was last updated.\"),\n })\n .passthrough()\n .describe(\"Papermark share link object.\");\n\nexport const dataroomObjectOutputSchema = z\n .object({\n id: z.string().describe(\"Unique Papermark dataroom id.\"),\n object: z\n .literal(\"dataroom\")\n .describe(\"String representing the object's type. Always `dataroom`.\"),\n pid: z\n .string()\n .describe(\n \"Stripe-style public ID, suitable for URLs and user references\",\n ),\n name: z.string().describe(\"Human-visible dataroom name.\"),\n internal_name: nullableStringOutputSchema(\n \"Private alias visible only to the team\",\n ),\n description: nullableStringOutputSchema(\n \"Dataroom description, or null when unset.\",\n ),\n document_count: integerOutputSchema(\"Number of documents in the dataroom.\"),\n folder_count: integerOutputSchema(\"Number of folders in the dataroom.\"),\n conversations_enabled: z\n .boolean()\n .describe(\"Whether conversations are enabled.\"),\n agents_enabled: z.boolean().describe(\"Whether AI agents are enabled.\"),\n allow_bulk_download: z\n .boolean()\n .describe(\"Whether viewers can bulk download dataroom contents.\"),\n is_frozen: z.boolean().describe(\"Whether the dataroom is frozen.\"),\n created: dateTimeOutputSchema(\"When the dataroom was created.\"),\n updated_at: dateTimeOutputSchema(\"When the dataroom was last updated.\"),\n })\n .passthrough()\n .describe(\"Papermark dataroom object.\");\n\nexport const folderObjectOutputSchema = z\n .object({\n id: z.string().describe(\"Unique Papermark folder id.\"),\n object: z\n .enum([\"folder\", \"dataroom_folder\"])\n .describe(\n \"String representing the object's type. Either `folder` for a team-library folder or `dataroom_folder` for a dataroom folder.\",\n ),\n name: z.string().describe(\"Folder name.\"),\n parent_id: nullableStringOutputSchema(\n \"Parent folder id, or null when the folder is at the root.\",\n ),\n path: z\n .string()\n .describe(\n \"Server-derived path of slugified folder names. Read-only — never accepted from clients.\",\n ),\n icon: nullableStringOutputSchema(\"Folder icon token, when configured.\"),\n color: nullableStringOutputSchema(\"Folder color token, when configured.\"),\n document_count: integerOutputSchema(\"Number of direct child documents.\"),\n child_folder_count: integerOutputSchema(\"Number of direct child folders.\"),\n order_index: nullableIntegerOutputSchema(\n \"Ordering index for dataroom folders, when available.\",\n ).optional(),\n created: dateTimeOutputSchema(\"When the folder was created.\"),\n updated_at: dateTimeOutputSchema(\"When the folder was last updated.\"),\n })\n .passthrough()\n .describe(\"Papermark folder object.\");\n\nexport const documentVersionObjectOutputSchema = z\n .object({\n id: z.string().describe(\"Unique Papermark document version id.\"),\n object: z\n .literal(\"document_version\")\n .describe(\n \"String representing the object's type. Always `document_version`.\",\n ),\n version_number: integerOutputSchema(\"Sequential version number.\"),\n is_primary: z\n .boolean()\n .describe(\"Whether this is the primary active version.\"),\n type: nullableStringOutputSchema(\"Document type or extension, when known.\"),\n content_type: nullableStringOutputSchema(\"Detected MIME type, when known.\"),\n num_pages: nullableIntegerOutputSchema(\"Number of pages, when known.\"),\n file_size: nullableIntegerOutputSchema(\"File size in bytes, when known.\"),\n created: dateTimeOutputSchema(\"When the version was created.\"),\n updated_at: dateTimeOutputSchema(\"When the version was last updated.\"),\n })\n .passthrough()\n .describe(\"Papermark document version object.\");\n\nexport const dataroomItemObjectOutputSchema = z\n .object({\n id: z\n .string()\n .describe(\n \"DataroomDocument id (the link between a document and the dataroom)\",\n ),\n object: z\n .literal(\"dataroom_document\")\n .describe(\n \"String representing the object's type. Always `dataroom_document`.\",\n ),\n document_id: z.string().describe(\"Underlying document id.\"),\n document_name: z.string().describe(\"Underlying document name.\"),\n content_type: nullableStringOutputSchema(\"Detected MIME type, when known.\"),\n num_pages: nullableIntegerOutputSchema(\"Number of pages, when known.\"),\n folder_id: nullableStringOutputSchema(\n \"Dataroom folder id containing the item, or null for the root.\",\n ),\n folder_path: nullableStringOutputSchema(\n \"Dataroom folder path, when present.\",\n ),\n order_index: nullableIntegerOutputSchema(\n \"Ordering index within the folder.\",\n ),\n created: dateTimeOutputSchema(\"When the document was attached.\"),\n })\n .passthrough()\n .describe(\"Papermark dataroom document attachment object.\");\n\nexport const viewObjectOutputSchema = z\n .object({\n id: z.string().describe(\"Unique Papermark view event id.\"),\n object: z\n .literal(\"view\")\n .describe(\"String representing the object's type. Always `view`.\"),\n link_id: nullableStringOutputSchema(\"Share link id for the view event.\"),\n document_id: nullableStringOutputSchema(\n \"Document id viewed, when present.\",\n ),\n dataroom_id: nullableStringOutputSchema(\n \"Dataroom id viewed, when present.\",\n ),\n viewer_email: nullableStringOutputSchema(\"Viewer email, when captured.\"),\n view_type: nullableStringOutputSchema(\"View event type.\"),\n viewed_at: dateTimeOutputSchema(\"When the view occurred.\"),\n downloaded_at: nullableDateTimeOutputSchema(\n \"When the viewer downloaded content, or null when not downloaded.\",\n ),\n download_type: nullableStringOutputSchema(\"Download type, when available.\"),\n })\n .passthrough()\n .describe(\"Papermark view event object.\");\n\nexport const visitorObjectOutputSchema = z\n .object({\n id: z.string().describe(\"Unique Papermark visitor id.\"),\n object: z\n .literal(\"visitor\")\n .describe(\"String representing the object's type. Always `visitor`.\"),\n email: z.string().describe(\"Visitor email address.\"),\n verified: z.boolean().describe(\"Whether the visitor is verified.\"),\n dataroom_id: nullableStringOutputSchema(\n \"If the visitor is tied to a specific dataroom (invitation or group member), this is its id\",\n ),\n invited_at: nullableDateTimeOutputSchema(\n \"When the visitor was invited, or null when not invited.\",\n ),\n total_views: integerOutputSchema(\"Total number of views by this visitor.\"),\n last_viewed_at: nullableDateTimeOutputSchema(\n \"Most recent view timestamp, or null when there are no views.\",\n ),\n created: dateTimeOutputSchema(\"When the visitor was created.\"),\n updated_at: dateTimeOutputSchema(\"When the visitor was last updated.\"),\n })\n .passthrough()\n .describe(\"Papermark visitor object.\");\n\nexport const visitorViewObjectOutputSchema = z\n .object({\n id: z.string().describe(\"Unique Papermark visitor view event id.\"),\n object: z\n .literal(\"visitor_view\")\n .describe(\n \"String representing the object's type. Always `visitor_view`.\",\n ),\n link_id: z.string().describe(\"Share link id for the view.\"),\n document_id: nullableStringOutputSchema(\n \"Document id viewed, when present.\",\n ),\n dataroom_id: nullableStringOutputSchema(\n \"Dataroom id viewed, when present.\",\n ),\n view_type: z.string().describe(\"View event type.\"),\n viewed_at: dateTimeOutputSchema(\"When the view occurred.\"),\n downloaded_at: nullableDateTimeOutputSchema(\n \"When the visitor downloaded content, or null when not downloaded.\",\n ),\n is_archived: z.boolean().describe(\"Whether this view is archived.\"),\n })\n .passthrough()\n .describe(\"Papermark visitor view event object.\");\n\nexport const documentAnalyticsOutputSchema = z\n .object({\n document_id: z.string().describe(\"Document id these analytics describe.\"),\n total_views: integerOutputSchema(\"Total views in the time window.\"),\n unique_viewers: integerOutputSchema(\"Unique viewers in the time window.\"),\n total_duration_seconds: z\n .number()\n .describe(\"Total read duration in seconds.\"),\n avg_page_duration_seconds: z\n .array(\n z.object({\n page_number: integerOutputSchema(\"One-indexed page number.\"),\n avg_duration_seconds: z\n .number()\n .describe(\"Average duration on this page in seconds.\"),\n }),\n )\n .describe(\"Average duration per page.\"),\n since: dateTimeOutputSchema(\"Start of the analytics window.\"),\n until: dateTimeOutputSchema(\"End of the analytics window.\"),\n })\n .passthrough()\n .describe(\"Document analytics summary.\");\n\nexport const linkAnalyticsOutputSchema = z\n .object({\n link_id: z.string().describe(\"Share link id these analytics describe.\"),\n total_views: integerOutputSchema(\"Total views in the time window.\"),\n total_duration_seconds: z\n .number()\n .describe(\"Total read duration in seconds.\"),\n unique_viewers: integerOutputSchema(\"Unique viewers in the time window.\"),\n since: dateTimeOutputSchema(\"Start of the analytics window.\"),\n until: dateTimeOutputSchema(\"End of the analytics window.\"),\n })\n .passthrough()\n .describe(\"Link analytics summary.\");\n\nexport const dataroomAnalyticsOutputSchema = z\n .object({\n dataroom_id: z.string().describe(\"Dataroom id these analytics describe.\"),\n total_views: integerOutputSchema(\"Total views in the time window.\"),\n unique_viewers: integerOutputSchema(\"Unique viewers in the time window.\"),\n total_duration_seconds: z\n .number()\n .describe(\"Total read duration in seconds.\"),\n since: dateTimeOutputSchema(\"Start of the analytics window.\"),\n until: dateTimeOutputSchema(\"End of the analytics window.\"),\n })\n .passthrough()\n .describe(\"Dataroom analytics summary.\");\n\nexport const viewAnalyticsOutputSchema = z\n .object({\n view_id: z.string().describe(\"View id these analytics describe.\"),\n document_id: nullableStringOutputSchema(\n \"Document id viewed, when present.\",\n ),\n viewer_email: nullableStringOutputSchema(\"Viewer email, when captured.\"),\n viewed_at: dateTimeOutputSchema(\"When the view occurred.\"),\n page_durations: z\n .array(\n z.object({\n page_number: integerOutputSchema(\"One-indexed page number.\"),\n duration_seconds: z\n .number()\n .describe(\"Duration on this page in seconds.\"),\n }),\n )\n .describe(\"Per-page duration details.\"),\n total_duration_seconds: z\n .number()\n .describe(\"Total read duration in seconds.\"),\n location: z\n .object({\n country: nullableStringOutputSchema(\"Viewer country, when known.\"),\n city: nullableStringOutputSchema(\"Viewer city, when known.\"),\n })\n .nullable()\n .describe(\"Approximate viewer location, or null when unknown.\"),\n client: z\n .object({\n browser: nullableStringOutputSchema(\"Viewer browser, when known.\"),\n os: nullableStringOutputSchema(\"Viewer operating system, when known.\"),\n device: nullableStringOutputSchema(\"Viewer device type, when known.\"),\n })\n .nullable()\n .describe(\"Viewer client details, or null when unknown.\"),\n })\n .passthrough()\n .describe(\"View analytics details.\");\n\nexport const documentOutputSchema = z.object({\n document: documentObjectOutputSchema.describe(\n \"Document returned by the tool.\",\n ),\n});\nexport const linkOutputSchema = z.object({\n link: linkObjectOutputSchema.describe(\"Share link returned by the tool.\"),\n});\nexport const dataroomOutputSchema = z.object({\n dataroom: dataroomObjectOutputSchema.describe(\n \"Dataroom returned by the tool.\",\n ),\n});\nexport const folderOutputSchema = z.object({\n folder: folderObjectOutputSchema.describe(\"Folder returned by the tool.\"),\n});\nexport const versionOutputSchema = z.object({\n version: documentVersionObjectOutputSchema.describe(\n \"Document version returned by the tool.\",\n ),\n});\nexport const dataroomItemOutputSchema = z.object({\n item: dataroomItemObjectOutputSchema.describe(\n \"Dataroom document attachment returned by the tool.\",\n ),\n});\n\nexport const documentsListOutputSchema = z.object({\n documents: z\n .array(documentObjectOutputSchema)\n .describe(\"Documents in the current page.\"),\n next_cursor: cursorOutputSchema,\n});\n\nexport const dataroomDocumentsListOutputSchema = z.object({\n documents: z\n .array(dataroomItemObjectOutputSchema)\n .describe(\"Dataroom document attachments in the current page.\"),\n next_cursor: cursorOutputSchema,\n});\n\nexport const linksListOutputSchema = z.object({\n links: z.array(linkObjectOutputSchema).describe(\"Links in the current page.\"),\n next_cursor: cursorOutputSchema,\n});\n\nexport const viewsListOutputSchema = z.object({\n views: z.array(viewObjectOutputSchema).describe(\"Views in the current page.\"),\n next_cursor: cursorOutputSchema,\n});\n\nexport const dataroomsListOutputSchema = z.object({\n datarooms: z\n .array(dataroomObjectOutputSchema)\n .describe(\"Datarooms in the current page.\"),\n next_cursor: cursorOutputSchema,\n});\n\nexport const visitorsListOutputSchema = z.object({\n visitors: z\n .array(visitorObjectOutputSchema)\n .describe(\"Visitors in the current page.\"),\n next_cursor: cursorOutputSchema,\n});\n\nexport const visitorViewsListOutputSchema = z.object({\n views: z\n .array(visitorViewObjectOutputSchema)\n .describe(\"Visitor views in the current page.\"),\n next_cursor: cursorOutputSchema,\n});\n\nexport const foldersListOutputSchema = z.object({\n folders: z\n .array(folderObjectOutputSchema)\n .describe(\"Folders in the current page.\"),\n next_cursor: cursorOutputSchema,\n});\n\nexport const versionsListOutputSchema = z.object({\n versions: z\n .array(documentVersionObjectOutputSchema)\n .describe(\"Document versions.\"),\n});\n\nexport const deletedObjectOutputSchema = z.object({\n id: z.string().describe(\"ID of the deleted object.\"),\n object: z\n .enum([\"document\", \"folder\", \"link\", \"dataroom\", \"dataroom_folder\"])\n .describe(\"The type of object that was deleted.\"),\n deleted: z\n .literal(true)\n .describe(\"Always `true`. Confirms the object was deleted.\"),\n});\n\nexport const listDocumentsContract = {\n name: \"list_documents\",\n title: \"List documents\",\n description:\n \"List documents in the authenticated Papermark team. Returns up to `limit` results (default 25, max 100) and a `next_cursor` for pagination. Use this before any tool that takes a `document_id` — never fabricate ids. Requires scope `documents.read`.\",\n inputSchema: {\n limit: z\n .number()\n .int()\n .min(1)\n .max(100)\n .optional()\n .describe(\"Page size (1-100, default 25)\"),\n cursor: z\n .string()\n .optional()\n .describe(\"Opaque cursor from the previous page's `next_cursor`\"),\n query: z\n .string()\n .optional()\n .describe(\n \"Optional substring filter on document name — for richer search use `search_documents`\",\n ),\n },\n} as const satisfies ToolContract<z.ZodRawShape>;\n\nexport const getDocumentContract = {\n name: \"get_document\",\n title: \"Get document\",\n description:\n \"Fetch a single document by id. `document_id` must come from `list_documents` or `search_documents` — never invent one. If the user referred to a document by name, call `search_documents` first. Requires scope `documents.read`.\",\n inputSchema: {\n document_id: z.string().min(1).describe(\"Document id (e.g. `doc_abc123`)\"),\n },\n} as const satisfies ToolContract<z.ZodRawShape>;\n\nexport const searchDocumentsContract = {\n name: \"search_documents\",\n title: \"Search documents\",\n description:\n \"Substring-search document names in the authenticated team. Use this when the user refers to a document by name or topic rather than id. Requires scope `documents.read`.\",\n inputSchema: {\n query: z\n .string()\n .min(1)\n .describe(\"Search string (matched against document name)\"),\n limit: z\n .number()\n .int()\n .min(1)\n .max(50)\n .optional()\n .describe(\"Max results (default 10)\"),\n },\n} as const satisfies ToolContract<z.ZodRawShape>;\n\nexport const createLinkContract = {\n name: \"create_link\",\n title: \"Create share link\",\n description: `Create a share link for a document (or dataroom). The returned \\`url\\` is what users share.\n\nWORKFLOW:\n(1) Resolve the target: the user may say \"the Q3 deck\" or \"the Acme dataroom\" — call \\`search_documents\\` (for a document) or \\`search_datarooms\\` (for a dataroom) first to get a real id. Set exactly one of \\`document_id\\` or \\`dataroom_id\\` on the created link.\n(2) Clarify ANY of these that the user didn't state explicitly — do NOT invent values:\n • expiry (\\`expires_at\\`, ISO 8601) — confirm with the user, default is no expiry\n • password — if the user wants password protection, either ASK them for a password OR generate a random one AND tell the user the exact value you set\n • email gating (\\`email_protected\\`) — ask if unclear\n • downloads (\\`allow_download\\`) — default off for external sharing\n(3) Create the link, then surface both the URL and the security settings so the user can verify.\n\nNever share a link to a document the user didn't explicitly name. Requires scope \\`links.write\\`.`,\n inputSchema: {\n document_id: z\n .string()\n .optional()\n .describe(\"Document id — required unless `dataroom_id` is set\"),\n dataroom_id: z\n .string()\n .optional()\n .describe(\"Dataroom id — alternative to document_id\"),\n name: z.string().optional().describe(\"Human-readable label for the link\"),\n expires_at: z\n .string()\n .datetime()\n .optional()\n .describe(\"ISO 8601 timestamp after which the link stops working\"),\n password: z\n .string()\n .optional()\n .describe(\"Require viewers to enter this password\"),\n email_protected: z\n .boolean()\n .optional()\n .describe(\"Require viewers enter an email address before viewing\"),\n allow_download: z\n .boolean()\n .optional()\n .describe(\"Let viewers download the underlying file\"),\n },\n} as const satisfies ToolContract<z.ZodRawShape>;\n\nexport const listLinksContract = {\n name: \"list_links\",\n title: \"List share links\",\n description:\n \"List share links in the authenticated team. Optionally filter by `document_id` or `dataroom_id`. Requires scope `links.read`.\",\n inputSchema: {\n document_id: z\n .string()\n .optional()\n .describe(\"Filter links for a specific document\"),\n dataroom_id: z\n .string()\n .optional()\n .describe(\"Filter links for a specific dataroom\"),\n limit: z.number().int().min(1).max(100).optional().describe(\"Page size\"),\n cursor: z.string().optional().describe(\"Pagination cursor\"),\n },\n} as const satisfies ToolContract<z.ZodRawShape>;\n\n// Raw view events for a link — renamed from get_link_analytics so the\n// aggregate analytics tool can claim that name.\nexport const listLinkViewsContract = {\n name: \"list_link_views\",\n title: \"List a link's view events\",\n description:\n \"Return the raw view events for a share link, newest first. Each view includes viewer email (if captured), view timestamp, and download status. For aggregate metrics (total views, total read time), use `get_link_analytics` instead. Requires scope `analytics.read`.\",\n inputSchema: {\n link_id: z.string().min(1).describe(\"Link id (e.g. `lnk_abc123`)\"),\n limit: z\n .number()\n .int()\n .min(1)\n .max(100)\n .optional()\n .describe(\"Page size (default 25)\"),\n cursor: z.string().optional().describe(\"Pagination cursor\"),\n },\n} as const satisfies ToolContract<z.ZodRawShape>;\n\n// ─── Datarooms ───────────────────────────────────────────────────────────\n\nexport const listDataroomsContract = {\n name: \"list_datarooms\",\n title: \"List datarooms\",\n description:\n \"List datarooms in the authenticated team. Returns up to `limit` results with a cursor. Requires scope `datarooms.read`.\",\n inputSchema: {\n limit: z.number().int().min(1).max(100).optional(),\n cursor: z.string().optional(),\n query: z\n .string()\n .optional()\n .describe(\"Optional substring filter on dataroom name\"),\n },\n} as const satisfies ToolContract<z.ZodRawShape>;\n\nexport const searchDataroomsContract = {\n name: \"search_datarooms\",\n title: \"Search datarooms\",\n description:\n \"Substring-search dataroom names in the authenticated team. Use when the user refers to a dataroom by name (e.g. 'the Acme room') rather than id — before calling `create_link`, `get_dataroom_analytics`, or any other tool that takes a `dataroom_id`. Requires scope `datarooms.read`.\",\n inputSchema: {\n query: z\n .string()\n .min(1)\n .describe(\"Search string (matched against dataroom name)\"),\n limit: z\n .number()\n .int()\n .min(1)\n .max(50)\n .optional()\n .describe(\"Max results (default 10)\"),\n },\n} as const satisfies ToolContract<z.ZodRawShape>;\n\nexport const getDataroomContract = {\n name: \"get_dataroom\",\n title: \"Get a dataroom\",\n description:\n \"Fetch a single dataroom by its id (accepts either the internal cuid or the `dr_...` public id). Requires scope `datarooms.read`.\",\n inputSchema: {\n dataroom_id: z\n .string()\n .min(1)\n .describe(\"Dataroom id or `dr_...` public id\"),\n },\n} as const satisfies ToolContract<z.ZodRawShape>;\n\nexport const createDataroomContract = {\n name: \"create_dataroom\",\n title: \"Create a dataroom\",\n description: `Create a new (empty) dataroom. Documents can be added using the \\`attach_dataroom_document\\` tool after creating the dataroom.\n\nWORKFLOW:\n(1) Confirm with the user: exact dataroom name, optional internal_name, optional description. Do NOT invent these.\n(2) Check \\`list_datarooms\\` first if the user said \"my Acme room\" — they may already have one and not want a duplicate.\n(3) Create the dataroom; return the new dataroom id so the caller can add documents with \\`attach_dataroom_document\\`.\n\nRequires scope \\`datarooms.write\\`.`,\n inputSchema: {\n name: z.string().min(1).describe(\"Human-visible dataroom name\"),\n internal_name: z\n .string()\n .optional()\n .describe(\"Private alias visible only to the team\"),\n description: z.string().optional(),\n },\n} as const satisfies ToolContract<z.ZodRawShape>;\n\nexport const listDataroomDocumentsContract = {\n name: \"list_dataroom_documents\",\n title: \"List documents in a dataroom\",\n description:\n \"Return the documents contained in a dataroom, ordered by folder and custom order. Requires scope `datarooms.read`.\",\n inputSchema: {\n dataroom_id: z.string().min(1),\n folder_id: z\n .string()\n .optional()\n .describe(\"Filter to documents inside a specific folder\"),\n limit: z.number().int().min(1).max(100).optional(),\n cursor: z.string().optional(),\n },\n} as const satisfies ToolContract<z.ZodRawShape>;\n\n// ─── Visitors ────────────────────────────────────────────────────────────\n\nexport const listVisitorsContract = {\n name: \"list_visitors\",\n title: \"List visitors\",\n description:\n \"Persistent visitors (Viewer rows) for the team. Use `email` to find a specific person; use `dataroom_id` to scope to visitors of a particular dataroom. For anonymous views that never tied to a Viewer row, use `list_link_views` against the relevant link. Requires scope `visitors.read`.\",\n inputSchema: {\n email: z\n .string()\n .optional()\n .describe(\"Exact email match, case-insensitive\"),\n dataroom_id: z.string().optional(),\n limit: z.number().int().min(1).max(100).optional(),\n cursor: z.string().optional(),\n },\n} as const satisfies ToolContract<z.ZodRawShape>;\n\nexport const listVisitorViewsContract = {\n name: \"list_visitor_views\",\n title: \"List a visitor's views\",\n description:\n \"All view events tied to a single visitor, newest first. Useful for answering questions like 'what has jane@acme.com looked at?'. Use `list_visitors` with an email filter to find the visitor id. Requires scope `visitors.read`.\",\n inputSchema: {\n visitor_id: z.string().min(1),\n limit: z.number().int().min(1).max(100).optional(),\n cursor: z.string().optional(),\n },\n} as const satisfies ToolContract<z.ZodRawShape>;\n\n// ─── Analytics (Tinybird-backed, tighter rate limit) ────────────────────\n\nexport const getDocumentAnalyticsContract = {\n name: \"get_document_analytics\",\n title: \"Get document analytics\",\n description:\n \"Aggregate analytics for a document over a time window: total views, unique viewers, total read time (seconds), and per-page average duration. Defaults to the last 30 days. Requires scope `analytics.read`. NOTE: Subject to a tighter rate limit — cache results when possible.\",\n inputSchema: {\n document_id: z.string().min(1),\n since: z\n .number()\n .int()\n .optional()\n .describe(\"Unix milliseconds — start of window (default: 30 days ago)\"),\n until: z\n .number()\n .int()\n .optional()\n .describe(\"Unix milliseconds — end of window (default: now)\"),\n },\n} as const satisfies ToolContract<z.ZodRawShape>;\n\nexport const getLinkAnalyticsContract = {\n name: \"get_link_analytics\",\n title: \"Get link analytics\",\n description:\n \"Aggregate analytics for a single share link: total views, unique viewers, total read time over the selected window. For the raw event list (one row per view), use `list_link_views`. Requires scope `analytics.read`.\",\n inputSchema: {\n link_id: z.string().min(1),\n since: z.number().int().optional(),\n until: z.number().int().optional(),\n },\n} as const satisfies ToolContract<z.ZodRawShape>;\n\nexport const getDataroomAnalyticsContract = {\n name: \"get_dataroom_analytics\",\n title: \"Get dataroom analytics\",\n description:\n \"Aggregate analytics across all documents in a dataroom: total views, unique viewers, total read time. Defaults to the last 30 days. Requires scope `analytics.read`.\",\n inputSchema: {\n dataroom_id: z.string().min(1),\n since: z.number().int().optional(),\n until: z.number().int().optional(),\n },\n} as const satisfies ToolContract<z.ZodRawShape>;\n\nexport const getViewAnalyticsContract = {\n name: \"get_view_analytics\",\n title: \"Get per-view breakdown\",\n description:\n \"For a single view event: page-by-page time spent, total duration, and the viewer's country/city/browser/os/device. Use `list_link_views` or `list_visitor_views` to discover view ids. Requires scope `analytics.read`.\",\n inputSchema: {\n view_id: z.string().min(1),\n },\n} as const satisfies ToolContract<z.ZodRawShape>;\n\n// ─── Folder enums (shared between team and dataroom folder contracts) ───\nconst FolderIconEnum = z.enum([\n \"folder\",\n \"folder-open\",\n \"briefcase\",\n \"archive\",\n \"box\",\n \"file\",\n \"book\",\n \"bookmark\",\n \"star\",\n \"heart\",\n \"lock\",\n \"shield\",\n \"users\",\n \"settings\",\n \"tag\",\n \"layers\",\n \"globe\",\n \"home\",\n \"mail\",\n \"image\",\n \"video\",\n \"music\",\n \"palette\",\n \"pen-tool\",\n \"lightbulb\",\n \"zap\",\n \"wrench\",\n \"sparkles\",\n \"cloud\",\n \"flag\",\n \"award\",\n \"flame\",\n \"bell\",\n \"sun\",\n \"hash\",\n]);\n\nconst FolderColorEnum = z.enum([\n \"gray\",\n \"red\",\n \"orange\",\n \"yellow\",\n \"green\",\n \"blue\",\n \"black\",\n]);\n\n// ─── Document mutations ─────────────────────────────────────────────────\n\nexport const updateDocumentContract = {\n name: \"update_document\",\n title: \"Update a document\",\n description: `Rename a document or move it to a different team-library folder. Replacing the file content is a separate operation — use \\`add_document_version\\`.\n\nWORKFLOW:\n(1) Resolve the document via \\`search_documents\\` or \\`list_documents\\` — never invent ids.\n(2) Confirm with the user what they want to change. Pass \\`folder_id: null\\` to move the document back to the library root. Pass a real folder id (resolved via \\`list_folders\\`) to relocate it.\n\nRequires scope \\`documents.write\\`.`,\n inputSchema: {\n document_id: z.string().min(1),\n name: z.string().min(1).max(512).optional(),\n folder_id: z\n .string()\n .nullable()\n .optional()\n .describe(\n \"Target folder id, or null to move to the library root. Omit to leave the folder unchanged.\",\n ),\n },\n} as const satisfies ToolContract<z.ZodRawShape>;\n\nexport const deleteDocumentContract = {\n name: \"delete_document\",\n title: \"Delete a document\",\n description: `Permanently delete a document. This is irreversible: every share link, version, and view history attached to the document goes with it.\n\nWORKFLOW:\n(1) Resolve the document via \\`search_documents\\` — never delete based on a guessed id.\n(2) Confirm with the user (echo the document name) before calling. Treat this like \\`rm -rf\\`: don't infer intent from passing references.\n\nRequires scope \\`documents.write\\`.`,\n inputSchema: {\n document_id: z.string().min(1),\n },\n} as const satisfies ToolContract<z.ZodRawShape>;\n\n// ─── Document versions ──────────────────────────────────────────────────\n\nexport const listDocumentVersionsContract = {\n name: \"list_document_versions\",\n title: \"List document versions\",\n description:\n \"List every version of a document, primary first. Use this to find a version id before promoting an older one with `promote_document_version`. Requires scope `documents.read`.\",\n inputSchema: {\n document_id: z.string().min(1),\n },\n} as const satisfies ToolContract<z.ZodRawShape>;\n\nexport const getDocumentVersionContract = {\n name: \"get_document_version\",\n title: \"Get a document version\",\n description:\n \"Fetch a single version of a document by its id. Requires scope `documents.read`.\",\n inputSchema: {\n document_id: z.string().min(1),\n version_id: z.string().min(1),\n },\n} as const satisfies ToolContract<z.ZodRawShape>;\n\nexport const addDocumentVersionContract = {\n name: \"add_document_version\",\n title: \"Add a new document version\",\n description: `Upload a new version of an existing document, fetched from a public HTTPS URL. The new version becomes primary by default; live links automatically serve the new file.\n\nWORKFLOW:\n(1) Resolve the target document via \\`search_documents\\` or \\`list_documents\\`.\n(2) The user must give you a public HTTPS URL the API can fetch. Don't fabricate URLs.\n(3) After creation, mention the version_number so the user can promote/rollback later.\n\nNOTE: Adding a version from a local file path is not supported by this MCP tool — for that, use the \\`upload_document\\` tool to create a new document, or have the user upload via the Papermark UI.\n\nRequires scope \\`documents.write\\`.`,\n inputSchema: {\n document_id: z.string().min(1),\n source_url: z\n .string()\n .url()\n .refine((s) => s.startsWith(\"https://\"), {\n message: \"source_url must use https://\",\n })\n .describe(\"Public HTTPS URL the server should fetch as the new version\"),\n },\n} as const satisfies ToolContract<z.ZodRawShape>;\n\nexport const promoteDocumentVersionContract = {\n name: \"promote_document_version\",\n title: \"Promote a version to primary\",\n description: `Roll back (or roll forward) by making a non-primary version the active one. The previous primary is demoted in the same transaction; share links immediately serve the new primary.\n\nWORKFLOW:\n(1) Call \\`list_document_versions\\` to find the right version id.\n(2) Confirm with the user before promoting — this changes what every existing link serves.\n\nRequires scope \\`documents.write\\`.`,\n inputSchema: {\n document_id: z.string().min(1),\n version_id: z.string().min(1),\n },\n} as const satisfies ToolContract<z.ZodRawShape>;\n\n// ─── Folders (team library) ─────────────────────────────────────────────\n\nexport const listFoldersContract = {\n name: \"list_folders\",\n title: \"List folders\",\n description: `List folders in the team library. Pass \\`parent_id: \"root\"\\` to list top-level folders, a folder id to list direct children, or omit \\`parent_id\\` to list every folder.\n\nUSE THIS when the user wants to know which folders exist, or you need a \\`folder_id\\` to pass to \\`update_document\\` / \\`upload_document\\` / \\`create_folder\\`. Requires scope \\`documents.read\\`.`,\n inputSchema: {\n parent_id: z\n .string()\n .optional()\n .describe(\n \"Restrict to direct children of this folder. Use 'root' for top-level folders. Omit for all folders.\",\n ),\n limit: z.number().int().min(1).max(100).optional(),\n cursor: z.string().optional(),\n },\n} as const satisfies ToolContract<z.ZodRawShape>;\n\nexport const getFolderContract = {\n name: \"get_folder\",\n title: \"Get a folder\",\n description:\n \"Fetch a single team-library folder by id. Requires scope `documents.read`.\",\n inputSchema: {\n folder_id: z.string().min(1),\n },\n} as const satisfies ToolContract<z.ZodRawShape>;\n\nexport const createFolderContract = {\n name: \"create_folder\",\n title: \"Create a folder\",\n description: `Create a folder in the team library. Pass an existing folder id as \\`parent_id\\` to nest, or omit it for the root.\n\nWORKFLOW:\n(1) Confirm name and parent with the user. Don't invent folder names.\n(2) If they referred to \"the Pitches folder\" but didn't give an id, call \\`list_folders\\` first.\n\nRequires scope \\`documents.write\\`.`,\n inputSchema: {\n name: z.string().min(1).max(256),\n parent_id: z\n .string()\n .nullable()\n .optional()\n .describe(\n \"Parent folder id; omit or pass null for the team-library root\",\n ),\n icon: FolderIconEnum.optional(),\n color: FolderColorEnum.optional(),\n },\n} as const satisfies ToolContract<z.ZodRawShape>;\n\nexport const updateFolderContract = {\n name: \"update_folder\",\n title: \"Update a folder\",\n description:\n \"Rename a folder, change its icon or color. Pass null to clear icon/color. Use `move_folder` to change its parent. Requires scope `documents.write`.\",\n inputSchema: {\n folder_id: z.string().min(1),\n name: z.string().min(1).max(256).optional(),\n icon: FolderIconEnum.nullable().optional(),\n color: FolderColorEnum.nullable().optional(),\n },\n} as const satisfies ToolContract<z.ZodRawShape>;\n\nexport const deleteFolderContract = {\n name: \"delete_folder\",\n title: \"Delete a folder\",\n description: `Delete a folder. By default this only succeeds if the folder is empty. Pass \\`cascade: true\\` to also delete every nested folder and document — this is destructive and irreversible.\n\nAlways confirm with the user before passing cascade. Requires scope \\`documents.write\\`.`,\n inputSchema: {\n folder_id: z.string().min(1),\n cascade: z\n .boolean()\n .optional()\n .describe(\n \"When true, deletes the folder and every nested folder + document. Defaults to false.\",\n ),\n },\n} as const satisfies ToolContract<z.ZodRawShape>;\n\nexport const moveFolderContract = {\n name: \"move_folder\",\n title: \"Move a folder\",\n description:\n \"Move a folder under a different parent. Pass `parent_id: null` to move it to the library root. Requires scope `documents.write`.\",\n inputSchema: {\n folder_id: z.string().min(1),\n parent_id: z\n .string()\n .nullable()\n .describe(\"Target parent folder id, or null for the library root\"),\n },\n} as const satisfies ToolContract<z.ZodRawShape>;\n\n// ─── Link mutations ─────────────────────────────────────────────────────\n\nexport const getLinkContract = {\n name: \"get_link\",\n title: \"Get a share link\",\n description:\n \"Fetch a single share link by id. Use this to confirm current settings before calling `update_link` so you don't accidentally clobber other fields. Requires scope `links.read`.\",\n inputSchema: {\n link_id: z.string().min(1),\n },\n} as const satisfies ToolContract<z.ZodRawShape>;\n\nexport const updateLinkContract = {\n name: \"update_link\",\n title: \"Update a share link\",\n description: `Change the security settings of an existing share link. The URL stays the same — viewers don't need to be re-notified.\n\nWORKFLOW:\n(1) Get the current settings via \\`get_link\\` first if you're not certain. PATCH semantics: omitted fields are unchanged, but a passed value REPLACES the current one.\n(2) Pass \\`expires_at: null\\` or \\`password: null\\` to clear those fields. \\`allow_list: []\\` empties the list.\n(3) Confirm any change to password / expiry / email gating with the user.\n\nRequires scope \\`links.write\\`.`,\n inputSchema: {\n link_id: z.string().min(1),\n name: z.string().optional(),\n expires_at: z\n .string()\n .datetime()\n .nullable()\n .optional()\n .describe(\"ISO 8601 timestamp, or null to clear the expiry\"),\n password: z\n .string()\n .min(1)\n .nullable()\n .optional()\n .describe(\"New password, or null to remove password protection\"),\n email_protected: z.boolean().optional(),\n email_authenticated: z.boolean().optional(),\n allow_download: z.boolean().optional(),\n allow_list: z\n .array(z.string())\n .optional()\n .describe(\"Email or domain allow list (e.g. ['@acme.com', 'bob@x.com'])\"),\n deny_list: z.array(z.string()).optional(),\n enable_watermark: z.boolean().optional(),\n enable_screenshot_protection: z.boolean().optional(),\n },\n} as const satisfies ToolContract<z.ZodRawShape>;\n\nexport const deleteLinkContract = {\n name: \"delete_link\",\n title: \"Revoke a share link\",\n description: `Revoke a share link (soft delete). Anyone who tries to open the URL will see a \"link unavailable\" page. The view history is preserved for analytics.\n\nConfirm with the user before revoking — they may have already shared the URL. Requires scope \\`links.write\\`.`,\n inputSchema: {\n link_id: z.string().min(1),\n },\n} as const satisfies ToolContract<z.ZodRawShape>;\n\n// ─── Dataroom mutations ─────────────────────────────────────────────────\n\nexport const updateDataroomContract = {\n name: \"update_dataroom\",\n title: \"Update a dataroom\",\n description: `Change a dataroom's name, internal alias, description, or whether viewers can bulk-download. PATCH semantics — omitted fields stay as they are.\n\nWORKFLOW:\n(1) Resolve the dataroom via \\`search_datarooms\\` or \\`list_datarooms\\`.\n(2) Confirm any toggle of \\`allow_bulk_download\\` with the user — it affects every link tied to this dataroom.\n\nRequires scope \\`datarooms.write\\`.`,\n inputSchema: {\n dataroom_id: z.string().min(1),\n name: z.string().min(1).optional(),\n internal_name: z.string().nullable().optional(),\n description: z.string().nullable().optional(),\n allow_bulk_download: z.boolean().optional(),\n },\n} as const satisfies ToolContract<z.ZodRawShape>;\n\nexport const deleteDataroomContract = {\n name: \"delete_dataroom\",\n title: \"Delete a dataroom\",\n description: `Permanently delete a dataroom. Every link and folder attached to it goes with it. Documents themselves stay in the team library — only their attachments to this dataroom are removed.\n\nALWAYS confirm with the user (echo the dataroom name and how many documents it contains, via \\`get_dataroom\\`) before calling. This is irreversible. Requires scope \\`datarooms.write\\`.`,\n inputSchema: {\n dataroom_id: z.string().min(1),\n },\n} as const satisfies ToolContract<z.ZodRawShape>;\n\nexport const attachDataroomDocumentContract = {\n name: \"attach_dataroom_document\",\n title: \"Attach a document to a dataroom\",\n description: `Add an existing team-library document to a dataroom. The document stays in the library; this only creates the attachment.\n\nWORKFLOW:\n(1) Resolve both ids — the dataroom via \\`search_datarooms\\`, the document via \\`search_documents\\`.\n(2) Optionally pass a dataroom \\`folder_id\\` (created via \\`create_dataroom_folder\\`) to nest the attachment under a folder.\n\nRequires scope \\`datarooms.write\\`.`,\n inputSchema: {\n dataroom_id: z.string().min(1),\n document_id: z.string().min(1),\n folder_id: z\n .string()\n .optional()\n .describe(\n \"Optional dataroom-folder id to place the attachment under. Folder must belong to this dataroom.\",\n ),\n },\n} as const satisfies ToolContract<z.ZodRawShape>;\n\n// ─── Dataroom folders ───────────────────────────────────────────────────\n\nexport const listDataroomFoldersContract = {\n name: \"list_dataroom_folders\",\n title: \"List folders in a dataroom\",\n description: `List folders inside a dataroom. Pass \\`parent_id: \"root\"\\` for top-level, a folder id for direct children, or omit for every folder in the dataroom.\n\nUSE THIS when you need a dataroom \\`folder_id\\` for \\`attach_dataroom_document\\` or \\`create_dataroom_folder\\`. Requires scope \\`datarooms.read\\`.`,\n inputSchema: {\n dataroom_id: z.string().min(1),\n parent_id: z.string().optional(),\n limit: z.number().int().min(1).max(100).optional(),\n cursor: z.string().optional(),\n },\n} as const satisfies ToolContract<z.ZodRawShape>;\n\nexport const getDataroomFolderContract = {\n name: \"get_dataroom_folder\",\n title: \"Get a dataroom folder\",\n description:\n \"Fetch a single dataroom folder. Requires scope `datarooms.read`.\",\n inputSchema: {\n dataroom_id: z.string().min(1),\n folder_id: z.string().min(1),\n },\n} as const satisfies ToolContract<z.ZodRawShape>;\n\nexport const createDataroomFolderContract = {\n name: \"create_dataroom_folder\",\n title: \"Create a folder in a dataroom\",\n description:\n \"Create a folder inside a dataroom. Pass an existing dataroom-folder id as `parent_id` to nest, omit for the dataroom root. Folders here are scoped to a single dataroom and are separate from team-library folders. Requires scope `datarooms.write`.\",\n inputSchema: {\n dataroom_id: z.string().min(1),\n name: z.string().min(1).max(256),\n parent_id: z.string().nullable().optional(),\n icon: FolderIconEnum.optional(),\n color: FolderColorEnum.optional(),\n },\n} as const satisfies ToolContract<z.ZodRawShape>;\n\nexport const updateDataroomFolderContract = {\n name: \"update_dataroom_folder\",\n title: \"Update a dataroom folder\",\n description:\n \"Rename a dataroom folder, change its icon/color. Pass null to clear icon/color. Use `move_dataroom_folder` to change its parent. Requires scope `datarooms.write`.\",\n inputSchema: {\n dataroom_id: z.string().min(1),\n folder_id: z.string().min(1),\n name: z.string().min(1).max(256).optional(),\n icon: FolderIconEnum.nullable().optional(),\n color: FolderColorEnum.nullable().optional(),\n },\n} as const satisfies ToolContract<z.ZodRawShape>;\n\nexport const deleteDataroomFolderContract = {\n name: \"delete_dataroom_folder\",\n title: \"Delete a dataroom folder\",\n description: `Delete a dataroom folder. By default this only succeeds if the folder is empty. Pass \\`cascade: true\\` to also delete every nested folder + dataroom-document attachment beneath it. The underlying documents in the team library are NOT deleted — only their attachments to this dataroom.\n\nConfirm with the user before passing cascade. Requires scope \\`datarooms.write\\`.`,\n inputSchema: {\n dataroom_id: z.string().min(1),\n folder_id: z.string().min(1),\n cascade: z.boolean().optional(),\n },\n} as const satisfies ToolContract<z.ZodRawShape>;\n\nexport const moveDataroomFolderContract = {\n name: \"move_dataroom_folder\",\n title: \"Move a dataroom folder\",\n description:\n \"Move a folder under a different parent within the same dataroom. Pass `parent_id: null` to move to the dataroom root. Requires scope `datarooms.write`.\",\n inputSchema: {\n dataroom_id: z.string().min(1),\n folder_id: z.string().min(1),\n parent_id: z.string().nullable(),\n },\n} as const satisfies ToolContract<z.ZodRawShape>;\n\n// ─── Visitors ───────────────────────────────────────────────────────────\n\nexport const getVisitorContract = {\n name: \"get_visitor\",\n title: \"Get a visitor\",\n description:\n \"Fetch a single visitor (Viewer row) by id, including total view count and last-seen timestamp. Use `list_visitors` with an email filter to find the id. Requires scope `visitors.read`.\",\n inputSchema: {\n visitor_id: z.string().min(1),\n },\n} as const satisfies ToolContract<z.ZodRawShape>;\n\nexport const SHARED_TOOL_OUTPUT_SCHEMAS = {\n [listDocumentsContract.name]: documentsListOutputSchema,\n [getDocumentContract.name]: documentObjectOutputSchema,\n [searchDocumentsContract.name]: documentsListOutputSchema,\n [createLinkContract.name]: linkOutputSchema,\n [listLinksContract.name]: linksListOutputSchema,\n [listLinkViewsContract.name]: viewsListOutputSchema,\n [listDataroomsContract.name]: dataroomsListOutputSchema,\n [searchDataroomsContract.name]: dataroomsListOutputSchema,\n [getDataroomContract.name]: dataroomObjectOutputSchema,\n [createDataroomContract.name]: dataroomOutputSchema,\n [listDataroomDocumentsContract.name]: dataroomDocumentsListOutputSchema,\n [listVisitorsContract.name]: visitorsListOutputSchema,\n [listVisitorViewsContract.name]: visitorViewsListOutputSchema,\n [getDocumentAnalyticsContract.name]: documentAnalyticsOutputSchema,\n [getLinkAnalyticsContract.name]: linkAnalyticsOutputSchema,\n [getDataroomAnalyticsContract.name]: dataroomAnalyticsOutputSchema,\n [getViewAnalyticsContract.name]: viewAnalyticsOutputSchema,\n [updateDocumentContract.name]: documentOutputSchema,\n [deleteDocumentContract.name]: deletedObjectOutputSchema,\n [listDocumentVersionsContract.name]: versionsListOutputSchema,\n [getDocumentVersionContract.name]: documentVersionObjectOutputSchema,\n [addDocumentVersionContract.name]: versionOutputSchema,\n [promoteDocumentVersionContract.name]: versionOutputSchema,\n [listFoldersContract.name]: foldersListOutputSchema,\n [getFolderContract.name]: folderObjectOutputSchema,\n [createFolderContract.name]: folderOutputSchema,\n [updateFolderContract.name]: folderOutputSchema,\n [deleteFolderContract.name]: deletedObjectOutputSchema,\n [moveFolderContract.name]: folderOutputSchema,\n [getLinkContract.name]: linkOutputSchema,\n [updateLinkContract.name]: linkOutputSchema,\n [deleteLinkContract.name]: deletedObjectOutputSchema,\n [updateDataroomContract.name]: dataroomOutputSchema,\n [deleteDataroomContract.name]: deletedObjectOutputSchema,\n [attachDataroomDocumentContract.name]: dataroomItemOutputSchema,\n [listDataroomFoldersContract.name]: foldersListOutputSchema,\n [getDataroomFolderContract.name]: folderObjectOutputSchema,\n [createDataroomFolderContract.name]: folderOutputSchema,\n [updateDataroomFolderContract.name]: folderOutputSchema,\n [deleteDataroomFolderContract.name]: deletedObjectOutputSchema,\n [moveDataroomFolderContract.name]: folderOutputSchema,\n [getVisitorContract.name]: visitorObjectOutputSchema,\n} as const satisfies Record<string, unknown>;\n"],"mappings":";;;AAAA,SAAS,SAAS;AAyBX,IAAM,wBAAwB,EAAE,OAAO,CAAC,CAAC,EAAE,YAAY;AAE9D,IAAM,uBAAuB,CAAC,gBAC5B,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,WAAW;AAC5C,IAAM,+BAA+B,CAAC,gBACpC,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,WAAW;AACvD,IAAM,6BAA6B,CAAC,gBAClC,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,WAAW;AAC5C,IAAM,sBAAsB,CAAC,gBAC3B,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,WAAW;AACvC,IAAM,8BAA8B,CAAC,gBACnC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,WAAW;AAClD,IAAM,qBAAqB,EACxB,OAAO,EACP,SAAS,EACT;AAAA,EACC;AACF;AAEK,IAAM,6BAA6B,EACvC,OAAO;AAAA,EACN,IAAI,EAAE,OAAO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