@layervai/qurl-mcp 0.4.0 → 0.4.1
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/README.md +5 -1
- package/dist/client.d.ts +111 -22
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +161 -77
- package/dist/client.js.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/prompts/secure-a-service.d.ts +16 -4
- package/dist/prompts/secure-a-service.d.ts.map +1 -1
- package/dist/prompts/secure-a-service.js +7 -15
- package/dist/prompts/secure-a-service.js.map +1 -1
- package/dist/server.d.ts +7 -3
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +8 -0
- package/dist/server.js.map +1 -1
- package/dist/tools/_shared.d.ts +4 -2
- package/dist/tools/_shared.d.ts.map +1 -1
- package/dist/tools/_shared.js +15 -3
- package/dist/tools/_shared.js.map +1 -1
- package/dist/tools/batch-create.d.ts +31 -339
- package/dist/tools/batch-create.d.ts.map +1 -1
- package/dist/tools/batch-create.js +1 -0
- package/dist/tools/batch-create.js.map +1 -1
- package/dist/tools/create-qurl.d.ts +37 -234
- package/dist/tools/create-qurl.d.ts.map +1 -1
- package/dist/tools/create-qurl.js +25 -28
- package/dist/tools/create-qurl.js.map +1 -1
- package/dist/tools/delete-qurl.d.ts +3 -21
- package/dist/tools/delete-qurl.d.ts.map +1 -1
- package/dist/tools/delete-qurl.js +18 -5
- package/dist/tools/delete-qurl.js.map +1 -1
- package/dist/tools/extend-qurl.d.ts +34 -188
- package/dist/tools/extend-qurl.d.ts.map +1 -1
- package/dist/tools/get-qurl.d.ts +34 -184
- package/dist/tools/get-qurl.d.ts.map +1 -1
- package/dist/tools/get-qurl.js +3 -2
- package/dist/tools/get-qurl.js.map +1 -1
- package/dist/tools/list-qurl-sessions.d.ts +44 -0
- package/dist/tools/list-qurl-sessions.d.ts.map +1 -0
- package/dist/tools/list-qurl-sessions.js +33 -0
- package/dist/tools/list-qurl-sessions.js.map +1 -0
- package/dist/tools/list-qurls.d.ts +36 -318
- package/dist/tools/list-qurls.d.ts.map +1 -1
- package/dist/tools/list-qurls.js +41 -18
- package/dist/tools/list-qurls.js.map +1 -1
- package/dist/tools/mint-link.d.ts +34 -301
- package/dist/tools/mint-link.d.ts.map +1 -1
- package/dist/tools/mint-link.js +12 -9
- package/dist/tools/mint-link.js.map +1 -1
- package/dist/tools/output-schemas.d.ts +266 -1109
- package/dist/tools/output-schemas.d.ts.map +1 -1
- package/dist/tools/output-schemas.js +96 -20
- package/dist/tools/output-schemas.js.map +1 -1
- package/dist/tools/resolve-qurl.d.ts +4 -36
- package/dist/tools/resolve-qurl.d.ts.map +1 -1
- package/dist/tools/resolve-qurl.js +2 -2
- package/dist/tools/resolve-qurl.js.map +1 -1
- package/dist/tools/revoke-qurl-token.d.ts +40 -0
- package/dist/tools/revoke-qurl-token.d.ts.map +1 -0
- package/dist/tools/revoke-qurl-token.js +40 -0
- package/dist/tools/revoke-qurl-token.js.map +1 -0
- package/dist/tools/terminate-qurl-sessions.d.ts +40 -0
- package/dist/tools/terminate-qurl-sessions.d.ts.map +1 -0
- package/dist/tools/terminate-qurl-sessions.js +64 -0
- package/dist/tools/terminate-qurl-sessions.js.map +1 -0
- package/dist/tools/update-qurl-token.d.ts +141 -0
- package/dist/tools/update-qurl-token.d.ts.map +1 -0
- package/dist/tools/update-qurl-token.js +75 -0
- package/dist/tools/update-qurl-token.js.map +1 -0
- package/dist/tools/update-qurl.d.ts +41 -263
- package/dist/tools/update-qurl.d.ts.map +1 -1
- package/dist/tools/update-qurl.js +56 -7
- package/dist/tools/update-qurl.js.map +1 -1
- package/package.json +4 -3
|
@@ -9,94 +9,20 @@ export declare const mintLinkBaseSchema: z.ZodObject<{
|
|
|
9
9
|
max_sessions: z.ZodOptional<z.ZodNumber>;
|
|
10
10
|
session_duration: z.ZodOptional<z.ZodString>;
|
|
11
11
|
access_policy: z.ZodOptional<z.ZodObject<{
|
|
12
|
-
ip_allowlist: z.ZodOptional<z.ZodArray<z.ZodString
|
|
13
|
-
ip_denylist: z.ZodOptional<z.ZodArray<z.ZodString
|
|
14
|
-
geo_allowlist: z.ZodOptional<z.ZodArray<z.ZodString
|
|
15
|
-
geo_denylist: z.ZodOptional<z.ZodArray<z.ZodString
|
|
12
|
+
ip_allowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
13
|
+
ip_denylist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
14
|
+
geo_allowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
15
|
+
geo_denylist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
16
16
|
user_agent_allow_regex: z.ZodOptional<z.ZodString>;
|
|
17
17
|
user_agent_deny_regex: z.ZodOptional<z.ZodString>;
|
|
18
18
|
ai_agent_policy: z.ZodOptional<z.ZodObject<{
|
|
19
19
|
block_all: z.ZodOptional<z.ZodBoolean>;
|
|
20
|
-
deny_categories: z.ZodOptional<z.ZodArray<z.ZodString
|
|
21
|
-
allow_categories: z.ZodOptional<z.ZodArray<z.ZodString
|
|
22
|
-
},
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}, {
|
|
27
|
-
block_all?: boolean | undefined;
|
|
28
|
-
deny_categories?: string[] | undefined;
|
|
29
|
-
allow_categories?: string[] | undefined;
|
|
30
|
-
}>>;
|
|
31
|
-
}, "strip", z.ZodTypeAny, {
|
|
32
|
-
ip_allowlist?: string[] | undefined;
|
|
33
|
-
ip_denylist?: string[] | undefined;
|
|
34
|
-
geo_allowlist?: string[] | undefined;
|
|
35
|
-
geo_denylist?: string[] | undefined;
|
|
36
|
-
user_agent_allow_regex?: string | undefined;
|
|
37
|
-
user_agent_deny_regex?: string | undefined;
|
|
38
|
-
ai_agent_policy?: {
|
|
39
|
-
block_all?: boolean | undefined;
|
|
40
|
-
deny_categories?: string[] | undefined;
|
|
41
|
-
allow_categories?: string[] | undefined;
|
|
42
|
-
} | undefined;
|
|
43
|
-
}, {
|
|
44
|
-
ip_allowlist?: string[] | undefined;
|
|
45
|
-
ip_denylist?: string[] | undefined;
|
|
46
|
-
geo_allowlist?: string[] | undefined;
|
|
47
|
-
geo_denylist?: string[] | undefined;
|
|
48
|
-
user_agent_allow_regex?: string | undefined;
|
|
49
|
-
user_agent_deny_regex?: string | undefined;
|
|
50
|
-
ai_agent_policy?: {
|
|
51
|
-
block_all?: boolean | undefined;
|
|
52
|
-
deny_categories?: string[] | undefined;
|
|
53
|
-
allow_categories?: string[] | undefined;
|
|
54
|
-
} | undefined;
|
|
55
|
-
}>>;
|
|
56
|
-
}, "strip", z.ZodTypeAny, {
|
|
57
|
-
resource_id: string;
|
|
58
|
-
label?: string | undefined;
|
|
59
|
-
one_time_use?: boolean | undefined;
|
|
60
|
-
max_sessions?: number | undefined;
|
|
61
|
-
session_duration?: string | undefined;
|
|
62
|
-
access_policy?: {
|
|
63
|
-
ip_allowlist?: string[] | undefined;
|
|
64
|
-
ip_denylist?: string[] | undefined;
|
|
65
|
-
geo_allowlist?: string[] | undefined;
|
|
66
|
-
geo_denylist?: string[] | undefined;
|
|
67
|
-
user_agent_allow_regex?: string | undefined;
|
|
68
|
-
user_agent_deny_regex?: string | undefined;
|
|
69
|
-
ai_agent_policy?: {
|
|
70
|
-
block_all?: boolean | undefined;
|
|
71
|
-
deny_categories?: string[] | undefined;
|
|
72
|
-
allow_categories?: string[] | undefined;
|
|
73
|
-
} | undefined;
|
|
74
|
-
} | undefined;
|
|
75
|
-
expires_at?: string | undefined;
|
|
76
|
-
expires_in?: string | undefined;
|
|
77
|
-
}, {
|
|
78
|
-
resource_id: string;
|
|
79
|
-
label?: string | undefined;
|
|
80
|
-
one_time_use?: boolean | undefined;
|
|
81
|
-
max_sessions?: number | undefined;
|
|
82
|
-
session_duration?: string | undefined;
|
|
83
|
-
access_policy?: {
|
|
84
|
-
ip_allowlist?: string[] | undefined;
|
|
85
|
-
ip_denylist?: string[] | undefined;
|
|
86
|
-
geo_allowlist?: string[] | undefined;
|
|
87
|
-
geo_denylist?: string[] | undefined;
|
|
88
|
-
user_agent_allow_regex?: string | undefined;
|
|
89
|
-
user_agent_deny_regex?: string | undefined;
|
|
90
|
-
ai_agent_policy?: {
|
|
91
|
-
block_all?: boolean | undefined;
|
|
92
|
-
deny_categories?: string[] | undefined;
|
|
93
|
-
allow_categories?: string[] | undefined;
|
|
94
|
-
} | undefined;
|
|
95
|
-
} | undefined;
|
|
96
|
-
expires_at?: string | undefined;
|
|
97
|
-
expires_in?: string | undefined;
|
|
98
|
-
}>;
|
|
99
|
-
export declare const mintLinkSchema: z.ZodEffects<z.ZodObject<{
|
|
20
|
+
deny_categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
21
|
+
allow_categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
22
|
+
}, z.core.$strip>>;
|
|
23
|
+
}, z.core.$strip>>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
export declare const mintLinkSchema: z.ZodObject<{
|
|
100
26
|
resource_id: z.ZodString;
|
|
101
27
|
label: z.ZodOptional<z.ZodString>;
|
|
102
28
|
expires_in: z.ZodOptional<z.ZodString>;
|
|
@@ -105,135 +31,19 @@ export declare const mintLinkSchema: z.ZodEffects<z.ZodObject<{
|
|
|
105
31
|
max_sessions: z.ZodOptional<z.ZodNumber>;
|
|
106
32
|
session_duration: z.ZodOptional<z.ZodString>;
|
|
107
33
|
access_policy: z.ZodOptional<z.ZodObject<{
|
|
108
|
-
ip_allowlist: z.ZodOptional<z.ZodArray<z.ZodString
|
|
109
|
-
ip_denylist: z.ZodOptional<z.ZodArray<z.ZodString
|
|
110
|
-
geo_allowlist: z.ZodOptional<z.ZodArray<z.ZodString
|
|
111
|
-
geo_denylist: z.ZodOptional<z.ZodArray<z.ZodString
|
|
34
|
+
ip_allowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
35
|
+
ip_denylist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
36
|
+
geo_allowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
37
|
+
geo_denylist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
112
38
|
user_agent_allow_regex: z.ZodOptional<z.ZodString>;
|
|
113
39
|
user_agent_deny_regex: z.ZodOptional<z.ZodString>;
|
|
114
40
|
ai_agent_policy: z.ZodOptional<z.ZodObject<{
|
|
115
41
|
block_all: z.ZodOptional<z.ZodBoolean>;
|
|
116
|
-
deny_categories: z.ZodOptional<z.ZodArray<z.ZodString
|
|
117
|
-
allow_categories: z.ZodOptional<z.ZodArray<z.ZodString
|
|
118
|
-
},
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
allow_categories?: string[] | undefined;
|
|
122
|
-
}, {
|
|
123
|
-
block_all?: boolean | undefined;
|
|
124
|
-
deny_categories?: string[] | undefined;
|
|
125
|
-
allow_categories?: string[] | undefined;
|
|
126
|
-
}>>;
|
|
127
|
-
}, "strip", z.ZodTypeAny, {
|
|
128
|
-
ip_allowlist?: string[] | undefined;
|
|
129
|
-
ip_denylist?: string[] | undefined;
|
|
130
|
-
geo_allowlist?: string[] | undefined;
|
|
131
|
-
geo_denylist?: string[] | undefined;
|
|
132
|
-
user_agent_allow_regex?: string | undefined;
|
|
133
|
-
user_agent_deny_regex?: string | undefined;
|
|
134
|
-
ai_agent_policy?: {
|
|
135
|
-
block_all?: boolean | undefined;
|
|
136
|
-
deny_categories?: string[] | undefined;
|
|
137
|
-
allow_categories?: string[] | undefined;
|
|
138
|
-
} | undefined;
|
|
139
|
-
}, {
|
|
140
|
-
ip_allowlist?: string[] | undefined;
|
|
141
|
-
ip_denylist?: string[] | undefined;
|
|
142
|
-
geo_allowlist?: string[] | undefined;
|
|
143
|
-
geo_denylist?: string[] | undefined;
|
|
144
|
-
user_agent_allow_regex?: string | undefined;
|
|
145
|
-
user_agent_deny_regex?: string | undefined;
|
|
146
|
-
ai_agent_policy?: {
|
|
147
|
-
block_all?: boolean | undefined;
|
|
148
|
-
deny_categories?: string[] | undefined;
|
|
149
|
-
allow_categories?: string[] | undefined;
|
|
150
|
-
} | undefined;
|
|
151
|
-
}>>;
|
|
152
|
-
}, "strip", z.ZodTypeAny, {
|
|
153
|
-
resource_id: string;
|
|
154
|
-
label?: string | undefined;
|
|
155
|
-
one_time_use?: boolean | undefined;
|
|
156
|
-
max_sessions?: number | undefined;
|
|
157
|
-
session_duration?: string | undefined;
|
|
158
|
-
access_policy?: {
|
|
159
|
-
ip_allowlist?: string[] | undefined;
|
|
160
|
-
ip_denylist?: string[] | undefined;
|
|
161
|
-
geo_allowlist?: string[] | undefined;
|
|
162
|
-
geo_denylist?: string[] | undefined;
|
|
163
|
-
user_agent_allow_regex?: string | undefined;
|
|
164
|
-
user_agent_deny_regex?: string | undefined;
|
|
165
|
-
ai_agent_policy?: {
|
|
166
|
-
block_all?: boolean | undefined;
|
|
167
|
-
deny_categories?: string[] | undefined;
|
|
168
|
-
allow_categories?: string[] | undefined;
|
|
169
|
-
} | undefined;
|
|
170
|
-
} | undefined;
|
|
171
|
-
expires_at?: string | undefined;
|
|
172
|
-
expires_in?: string | undefined;
|
|
173
|
-
}, {
|
|
174
|
-
resource_id: string;
|
|
175
|
-
label?: string | undefined;
|
|
176
|
-
one_time_use?: boolean | undefined;
|
|
177
|
-
max_sessions?: number | undefined;
|
|
178
|
-
session_duration?: string | undefined;
|
|
179
|
-
access_policy?: {
|
|
180
|
-
ip_allowlist?: string[] | undefined;
|
|
181
|
-
ip_denylist?: string[] | undefined;
|
|
182
|
-
geo_allowlist?: string[] | undefined;
|
|
183
|
-
geo_denylist?: string[] | undefined;
|
|
184
|
-
user_agent_allow_regex?: string | undefined;
|
|
185
|
-
user_agent_deny_regex?: string | undefined;
|
|
186
|
-
ai_agent_policy?: {
|
|
187
|
-
block_all?: boolean | undefined;
|
|
188
|
-
deny_categories?: string[] | undefined;
|
|
189
|
-
allow_categories?: string[] | undefined;
|
|
190
|
-
} | undefined;
|
|
191
|
-
} | undefined;
|
|
192
|
-
expires_at?: string | undefined;
|
|
193
|
-
expires_in?: string | undefined;
|
|
194
|
-
}>, {
|
|
195
|
-
resource_id: string;
|
|
196
|
-
label?: string | undefined;
|
|
197
|
-
one_time_use?: boolean | undefined;
|
|
198
|
-
max_sessions?: number | undefined;
|
|
199
|
-
session_duration?: string | undefined;
|
|
200
|
-
access_policy?: {
|
|
201
|
-
ip_allowlist?: string[] | undefined;
|
|
202
|
-
ip_denylist?: string[] | undefined;
|
|
203
|
-
geo_allowlist?: string[] | undefined;
|
|
204
|
-
geo_denylist?: string[] | undefined;
|
|
205
|
-
user_agent_allow_regex?: string | undefined;
|
|
206
|
-
user_agent_deny_regex?: string | undefined;
|
|
207
|
-
ai_agent_policy?: {
|
|
208
|
-
block_all?: boolean | undefined;
|
|
209
|
-
deny_categories?: string[] | undefined;
|
|
210
|
-
allow_categories?: string[] | undefined;
|
|
211
|
-
} | undefined;
|
|
212
|
-
} | undefined;
|
|
213
|
-
expires_at?: string | undefined;
|
|
214
|
-
expires_in?: string | undefined;
|
|
215
|
-
}, {
|
|
216
|
-
resource_id: string;
|
|
217
|
-
label?: string | undefined;
|
|
218
|
-
one_time_use?: boolean | undefined;
|
|
219
|
-
max_sessions?: number | undefined;
|
|
220
|
-
session_duration?: string | undefined;
|
|
221
|
-
access_policy?: {
|
|
222
|
-
ip_allowlist?: string[] | undefined;
|
|
223
|
-
ip_denylist?: string[] | undefined;
|
|
224
|
-
geo_allowlist?: string[] | undefined;
|
|
225
|
-
geo_denylist?: string[] | undefined;
|
|
226
|
-
user_agent_allow_regex?: string | undefined;
|
|
227
|
-
user_agent_deny_regex?: string | undefined;
|
|
228
|
-
ai_agent_policy?: {
|
|
229
|
-
block_all?: boolean | undefined;
|
|
230
|
-
deny_categories?: string[] | undefined;
|
|
231
|
-
allow_categories?: string[] | undefined;
|
|
232
|
-
} | undefined;
|
|
233
|
-
} | undefined;
|
|
234
|
-
expires_at?: string | undefined;
|
|
235
|
-
expires_in?: string | undefined;
|
|
236
|
-
}>;
|
|
42
|
+
deny_categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
43
|
+
allow_categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
44
|
+
}, z.core.$strip>>;
|
|
45
|
+
}, z.core.$strip>>;
|
|
46
|
+
}, z.core.$strip>;
|
|
237
47
|
export declare function mintLinkTool(client: IQURLClient): {
|
|
238
48
|
name: string;
|
|
239
49
|
title: string;
|
|
@@ -247,103 +57,26 @@ export declare function mintLinkTool(client: IQURLClient): {
|
|
|
247
57
|
max_sessions: z.ZodOptional<z.ZodNumber>;
|
|
248
58
|
session_duration: z.ZodOptional<z.ZodString>;
|
|
249
59
|
access_policy: z.ZodOptional<z.ZodObject<{
|
|
250
|
-
ip_allowlist: z.ZodOptional<z.ZodArray<z.ZodString
|
|
251
|
-
ip_denylist: z.ZodOptional<z.ZodArray<z.ZodString
|
|
252
|
-
geo_allowlist: z.ZodOptional<z.ZodArray<z.ZodString
|
|
253
|
-
geo_denylist: z.ZodOptional<z.ZodArray<z.ZodString
|
|
60
|
+
ip_allowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
61
|
+
ip_denylist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
62
|
+
geo_allowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
63
|
+
geo_denylist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
254
64
|
user_agent_allow_regex: z.ZodOptional<z.ZodString>;
|
|
255
65
|
user_agent_deny_regex: z.ZodOptional<z.ZodString>;
|
|
256
66
|
ai_agent_policy: z.ZodOptional<z.ZodObject<{
|
|
257
67
|
block_all: z.ZodOptional<z.ZodBoolean>;
|
|
258
|
-
deny_categories: z.ZodOptional<z.ZodArray<z.ZodString
|
|
259
|
-
allow_categories: z.ZodOptional<z.ZodArray<z.ZodString
|
|
260
|
-
},
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
allow_categories?: string[] | undefined;
|
|
264
|
-
}, {
|
|
265
|
-
block_all?: boolean | undefined;
|
|
266
|
-
deny_categories?: string[] | undefined;
|
|
267
|
-
allow_categories?: string[] | undefined;
|
|
268
|
-
}>>;
|
|
269
|
-
}, "strip", z.ZodTypeAny, {
|
|
270
|
-
ip_allowlist?: string[] | undefined;
|
|
271
|
-
ip_denylist?: string[] | undefined;
|
|
272
|
-
geo_allowlist?: string[] | undefined;
|
|
273
|
-
geo_denylist?: string[] | undefined;
|
|
274
|
-
user_agent_allow_regex?: string | undefined;
|
|
275
|
-
user_agent_deny_regex?: string | undefined;
|
|
276
|
-
ai_agent_policy?: {
|
|
277
|
-
block_all?: boolean | undefined;
|
|
278
|
-
deny_categories?: string[] | undefined;
|
|
279
|
-
allow_categories?: string[] | undefined;
|
|
280
|
-
} | undefined;
|
|
281
|
-
}, {
|
|
282
|
-
ip_allowlist?: string[] | undefined;
|
|
283
|
-
ip_denylist?: string[] | undefined;
|
|
284
|
-
geo_allowlist?: string[] | undefined;
|
|
285
|
-
geo_denylist?: string[] | undefined;
|
|
286
|
-
user_agent_allow_regex?: string | undefined;
|
|
287
|
-
user_agent_deny_regex?: string | undefined;
|
|
288
|
-
ai_agent_policy?: {
|
|
289
|
-
block_all?: boolean | undefined;
|
|
290
|
-
deny_categories?: string[] | undefined;
|
|
291
|
-
allow_categories?: string[] | undefined;
|
|
292
|
-
} | undefined;
|
|
293
|
-
}>>;
|
|
294
|
-
}, "strip", z.ZodTypeAny, {
|
|
295
|
-
resource_id: string;
|
|
296
|
-
label?: string | undefined;
|
|
297
|
-
one_time_use?: boolean | undefined;
|
|
298
|
-
max_sessions?: number | undefined;
|
|
299
|
-
session_duration?: string | undefined;
|
|
300
|
-
access_policy?: {
|
|
301
|
-
ip_allowlist?: string[] | undefined;
|
|
302
|
-
ip_denylist?: string[] | undefined;
|
|
303
|
-
geo_allowlist?: string[] | undefined;
|
|
304
|
-
geo_denylist?: string[] | undefined;
|
|
305
|
-
user_agent_allow_regex?: string | undefined;
|
|
306
|
-
user_agent_deny_regex?: string | undefined;
|
|
307
|
-
ai_agent_policy?: {
|
|
308
|
-
block_all?: boolean | undefined;
|
|
309
|
-
deny_categories?: string[] | undefined;
|
|
310
|
-
allow_categories?: string[] | undefined;
|
|
311
|
-
} | undefined;
|
|
312
|
-
} | undefined;
|
|
313
|
-
expires_at?: string | undefined;
|
|
314
|
-
expires_in?: string | undefined;
|
|
315
|
-
}, {
|
|
316
|
-
resource_id: string;
|
|
317
|
-
label?: string | undefined;
|
|
318
|
-
one_time_use?: boolean | undefined;
|
|
319
|
-
max_sessions?: number | undefined;
|
|
320
|
-
session_duration?: string | undefined;
|
|
321
|
-
access_policy?: {
|
|
322
|
-
ip_allowlist?: string[] | undefined;
|
|
323
|
-
ip_denylist?: string[] | undefined;
|
|
324
|
-
geo_allowlist?: string[] | undefined;
|
|
325
|
-
geo_denylist?: string[] | undefined;
|
|
326
|
-
user_agent_allow_regex?: string | undefined;
|
|
327
|
-
user_agent_deny_regex?: string | undefined;
|
|
328
|
-
ai_agent_policy?: {
|
|
329
|
-
block_all?: boolean | undefined;
|
|
330
|
-
deny_categories?: string[] | undefined;
|
|
331
|
-
allow_categories?: string[] | undefined;
|
|
332
|
-
} | undefined;
|
|
333
|
-
} | undefined;
|
|
334
|
-
expires_at?: string | undefined;
|
|
335
|
-
expires_in?: string | undefined;
|
|
336
|
-
}>;
|
|
68
|
+
deny_categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
69
|
+
allow_categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
70
|
+
}, z.core.$strip>>;
|
|
71
|
+
}, z.core.$strip>>;
|
|
72
|
+
}, z.core.$strip>;
|
|
337
73
|
outputSchema: z.ZodObject<{
|
|
74
|
+
qurl_id: z.ZodString;
|
|
338
75
|
qurl_link: z.ZodString;
|
|
76
|
+
branded_domain: z.ZodOptional<z.ZodString>;
|
|
339
77
|
expires_at: z.ZodString;
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
qurl_link: string;
|
|
343
|
-
}, {
|
|
344
|
-
expires_at: string;
|
|
345
|
-
qurl_link: string;
|
|
346
|
-
}>;
|
|
78
|
+
type: z.ZodOptional<z.ZodString>;
|
|
79
|
+
}, z.core.$strip>;
|
|
347
80
|
annotations: {
|
|
348
81
|
title: string;
|
|
349
82
|
readOnlyHint: boolean;
|
|
@@ -354,6 +87,8 @@ export declare function mintLinkTool(client: IQURLClient): {
|
|
|
354
87
|
handler: (input: {
|
|
355
88
|
resource_id: string;
|
|
356
89
|
label?: string | undefined;
|
|
90
|
+
expires_in?: string | undefined;
|
|
91
|
+
expires_at?: string | undefined;
|
|
357
92
|
one_time_use?: boolean | undefined;
|
|
358
93
|
max_sessions?: number | undefined;
|
|
359
94
|
session_duration?: string | undefined;
|
|
@@ -370,8 +105,6 @@ export declare function mintLinkTool(client: IQURLClient): {
|
|
|
370
105
|
allow_categories?: string[] | undefined;
|
|
371
106
|
} | undefined;
|
|
372
107
|
} | undefined;
|
|
373
|
-
expires_at?: string | undefined;
|
|
374
|
-
expires_in?: string | undefined;
|
|
375
108
|
}) => Promise<{
|
|
376
109
|
content: Array<{
|
|
377
110
|
type: "text";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mint-link.d.ts","sourceRoot":"","sources":["../../src/tools/mint-link.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAUhD,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"mint-link.d.ts","sourceRoot":"","sources":["../../src/tools/mint-link.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAUhD,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;iBAoC7B,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;iBAG1B,CAAC;AAEF,wBAAgB,YAAY,CAAC,MAAM,EAAE,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsC/C"}
|
package/dist/tools/mint-link.js
CHANGED
|
@@ -14,7 +14,11 @@ export const mintLinkBaseSchema = z.object({
|
|
|
14
14
|
.min(1)
|
|
15
15
|
.optional()
|
|
16
16
|
.describe('Relative duration until expiration (e.g., "5m", "24h", "7d"). Mutually exclusive with expires_at'),
|
|
17
|
-
expires_at: z
|
|
17
|
+
expires_at: z
|
|
18
|
+
.string()
|
|
19
|
+
.datetime()
|
|
20
|
+
.optional()
|
|
21
|
+
.describe("Absolute expiration timestamp (RFC 3339). Mutually exclusive with expires_in"),
|
|
18
22
|
one_time_use: z.boolean().optional().describe("Whether this link can only be used once"),
|
|
19
23
|
max_sessions: z
|
|
20
24
|
.number()
|
|
@@ -22,12 +26,13 @@ export const mintLinkBaseSchema = z.object({
|
|
|
22
26
|
.min(0)
|
|
23
27
|
.max(1000)
|
|
24
28
|
.optional()
|
|
25
|
-
.describe("Maximum concurrent sessions (0 = unlimited, max 1000)"),
|
|
29
|
+
.describe("Maximum concurrent sessions for this qURL token (0 = unlimited, max 1000)"),
|
|
26
30
|
session_duration: z
|
|
27
31
|
.string()
|
|
28
32
|
.min(1)
|
|
29
33
|
.optional()
|
|
30
|
-
.describe('How long access lasts after clicking (e.g., "1h")'
|
|
34
|
+
.describe('How long access lasts after clicking (e.g., "1h"). ' +
|
|
35
|
+
"Rejected if it exceeds the parent resource's session-duration cap."),
|
|
31
36
|
access_policy: accessPolicySchema.optional().describe("Access control policy for this link"),
|
|
32
37
|
});
|
|
33
38
|
export const mintLinkSchema = mintLinkBaseSchema.refine((data) => !(data.expires_in && data.expires_at), { message: "Provide either expires_in or expires_at, not both" });
|
|
@@ -35,13 +40,14 @@ export function mintLinkTool(client) {
|
|
|
35
40
|
return {
|
|
36
41
|
name: "mint_link",
|
|
37
42
|
title: "Mint Access Link",
|
|
38
|
-
description: "Mint a fresh
|
|
43
|
+
description: "Mint a fresh access link for an existing qURL resource — same one-shot display semantics as `create_qurl.qurl_link`. " +
|
|
39
44
|
"Use this to issue additional access links to a resource without creating a brand-new qURL (e.g. a second recipient, a replacement after the original was lost). " +
|
|
40
45
|
"Use `create_qurl` instead when you want a brand-new resource with its own target_url and policy. " +
|
|
41
46
|
"Use `update_qurl` when you only want to change expiration/tags/description on the existing resource. " +
|
|
42
47
|
"Accepts both `r_` and `q_` IDs. " +
|
|
43
48
|
"**Constraints:** `expires_in` and `expires_at` are mutually exclusive (handler returns an `isError: true` content block before any API call if both are set). " +
|
|
44
|
-
"
|
|
49
|
+
"If neither expiry field is specified, the API defaults to 24 hours from now. " +
|
|
50
|
+
"**Output:** the new `qurl_link` is shown ONCE — no subsequent call returns it. Capture `qurl_id` if you need to correlate future access events or update this specific token.",
|
|
45
51
|
inputSchema: mintLinkBaseSchema,
|
|
46
52
|
outputSchema: mintLinkOutputSchema,
|
|
47
53
|
annotations: {
|
|
@@ -56,10 +62,7 @@ export function mintLinkTool(client) {
|
|
|
56
62
|
if (!parsed.success)
|
|
57
63
|
return zodErrorToToolResult(parsed.error);
|
|
58
64
|
const { resource_id, ...body } = parsed.data;
|
|
59
|
-
|
|
60
|
-
// sends no body (and no Content-Type header) rather than an empty {}.
|
|
61
|
-
const hasBody = Object.keys(body).length > 0;
|
|
62
|
-
const result = await client.mintLink(resource_id, hasBody ? body : undefined);
|
|
65
|
+
const result = await client.mintLink(resource_id, body);
|
|
63
66
|
return {
|
|
64
67
|
content: [
|
|
65
68
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mint-link.js","sourceRoot":"","sources":["../../src/tools/mint-link.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAk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