@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
|
@@ -2,63 +2,24 @@ import { z } from "zod";
|
|
|
2
2
|
import type { IQURLClient } from "../client.js";
|
|
3
3
|
export declare const aiAgentPolicySchema: z.ZodObject<{
|
|
4
4
|
block_all: z.ZodOptional<z.ZodBoolean>;
|
|
5
|
-
deny_categories: z.ZodOptional<z.ZodArray<z.ZodString
|
|
6
|
-
allow_categories: z.ZodOptional<z.ZodArray<z.ZodString
|
|
7
|
-
},
|
|
8
|
-
block_all?: boolean | undefined;
|
|
9
|
-
deny_categories?: string[] | undefined;
|
|
10
|
-
allow_categories?: string[] | undefined;
|
|
11
|
-
}, {
|
|
12
|
-
block_all?: boolean | undefined;
|
|
13
|
-
deny_categories?: string[] | undefined;
|
|
14
|
-
allow_categories?: string[] | undefined;
|
|
15
|
-
}>;
|
|
5
|
+
deny_categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6
|
+
allow_categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7
|
+
}, z.core.$strip>;
|
|
16
8
|
export declare const accessPolicySchema: z.ZodObject<{
|
|
17
|
-
ip_allowlist: z.ZodOptional<z.ZodArray<z.ZodString
|
|
18
|
-
ip_denylist: z.ZodOptional<z.ZodArray<z.ZodString
|
|
19
|
-
geo_allowlist: z.ZodOptional<z.ZodArray<z.ZodString
|
|
20
|
-
geo_denylist: z.ZodOptional<z.ZodArray<z.ZodString
|
|
9
|
+
ip_allowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
10
|
+
ip_denylist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
11
|
+
geo_allowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
12
|
+
geo_denylist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
21
13
|
user_agent_allow_regex: z.ZodOptional<z.ZodString>;
|
|
22
14
|
user_agent_deny_regex: z.ZodOptional<z.ZodString>;
|
|
23
15
|
ai_agent_policy: z.ZodOptional<z.ZodObject<{
|
|
24
16
|
block_all: z.ZodOptional<z.ZodBoolean>;
|
|
25
|
-
deny_categories: z.ZodOptional<z.ZodArray<z.ZodString
|
|
26
|
-
allow_categories: z.ZodOptional<z.ZodArray<z.ZodString
|
|
27
|
-
},
|
|
28
|
-
|
|
29
|
-
deny_categories?: string[] | undefined;
|
|
30
|
-
allow_categories?: string[] | undefined;
|
|
31
|
-
}, {
|
|
32
|
-
block_all?: boolean | undefined;
|
|
33
|
-
deny_categories?: string[] | undefined;
|
|
34
|
-
allow_categories?: string[] | undefined;
|
|
35
|
-
}>>;
|
|
36
|
-
}, "strip", z.ZodTypeAny, {
|
|
37
|
-
ip_allowlist?: string[] | undefined;
|
|
38
|
-
ip_denylist?: string[] | undefined;
|
|
39
|
-
geo_allowlist?: string[] | undefined;
|
|
40
|
-
geo_denylist?: string[] | undefined;
|
|
41
|
-
user_agent_allow_regex?: string | undefined;
|
|
42
|
-
user_agent_deny_regex?: string | undefined;
|
|
43
|
-
ai_agent_policy?: {
|
|
44
|
-
block_all?: boolean | undefined;
|
|
45
|
-
deny_categories?: string[] | undefined;
|
|
46
|
-
allow_categories?: string[] | undefined;
|
|
47
|
-
} | undefined;
|
|
48
|
-
}, {
|
|
49
|
-
ip_allowlist?: string[] | undefined;
|
|
50
|
-
ip_denylist?: string[] | undefined;
|
|
51
|
-
geo_allowlist?: string[] | undefined;
|
|
52
|
-
geo_denylist?: string[] | undefined;
|
|
53
|
-
user_agent_allow_regex?: string | undefined;
|
|
54
|
-
user_agent_deny_regex?: string | undefined;
|
|
55
|
-
ai_agent_policy?: {
|
|
56
|
-
block_all?: boolean | undefined;
|
|
57
|
-
deny_categories?: string[] | undefined;
|
|
58
|
-
allow_categories?: string[] | undefined;
|
|
59
|
-
} | undefined;
|
|
60
|
-
}>;
|
|
17
|
+
deny_categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
18
|
+
allow_categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
19
|
+
}, z.core.$strip>>;
|
|
20
|
+
}, z.core.$strip>;
|
|
61
21
|
export declare const createQurlSchema: z.ZodObject<{
|
|
22
|
+
type: z.ZodOptional<z.ZodString>;
|
|
62
23
|
target_url: z.ZodString;
|
|
63
24
|
label: z.ZodOptional<z.ZodString>;
|
|
64
25
|
expires_in: z.ZodOptional<z.ZodString>;
|
|
@@ -67,98 +28,25 @@ export declare const createQurlSchema: z.ZodObject<{
|
|
|
67
28
|
session_duration: z.ZodOptional<z.ZodString>;
|
|
68
29
|
custom_domain: z.ZodOptional<z.ZodString>;
|
|
69
30
|
access_policy: z.ZodOptional<z.ZodObject<{
|
|
70
|
-
ip_allowlist: z.ZodOptional<z.ZodArray<z.ZodString
|
|
71
|
-
ip_denylist: z.ZodOptional<z.ZodArray<z.ZodString
|
|
72
|
-
geo_allowlist: z.ZodOptional<z.ZodArray<z.ZodString
|
|
73
|
-
geo_denylist: z.ZodOptional<z.ZodArray<z.ZodString
|
|
31
|
+
ip_allowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
32
|
+
ip_denylist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
33
|
+
geo_allowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
34
|
+
geo_denylist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
74
35
|
user_agent_allow_regex: z.ZodOptional<z.ZodString>;
|
|
75
36
|
user_agent_deny_regex: z.ZodOptional<z.ZodString>;
|
|
76
37
|
ai_agent_policy: z.ZodOptional<z.ZodObject<{
|
|
77
38
|
block_all: z.ZodOptional<z.ZodBoolean>;
|
|
78
|
-
deny_categories: z.ZodOptional<z.ZodArray<z.ZodString
|
|
79
|
-
allow_categories: z.ZodOptional<z.ZodArray<z.ZodString
|
|
80
|
-
},
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
allow_categories?: string[] | undefined;
|
|
84
|
-
}, {
|
|
85
|
-
block_all?: boolean | undefined;
|
|
86
|
-
deny_categories?: string[] | undefined;
|
|
87
|
-
allow_categories?: string[] | undefined;
|
|
88
|
-
}>>;
|
|
89
|
-
}, "strip", z.ZodTypeAny, {
|
|
90
|
-
ip_allowlist?: string[] | undefined;
|
|
91
|
-
ip_denylist?: string[] | undefined;
|
|
92
|
-
geo_allowlist?: string[] | undefined;
|
|
93
|
-
geo_denylist?: string[] | undefined;
|
|
94
|
-
user_agent_allow_regex?: string | undefined;
|
|
95
|
-
user_agent_deny_regex?: string | undefined;
|
|
96
|
-
ai_agent_policy?: {
|
|
97
|
-
block_all?: boolean | undefined;
|
|
98
|
-
deny_categories?: string[] | undefined;
|
|
99
|
-
allow_categories?: string[] | undefined;
|
|
100
|
-
} | undefined;
|
|
101
|
-
}, {
|
|
102
|
-
ip_allowlist?: string[] | undefined;
|
|
103
|
-
ip_denylist?: string[] | undefined;
|
|
104
|
-
geo_allowlist?: string[] | undefined;
|
|
105
|
-
geo_denylist?: string[] | undefined;
|
|
106
|
-
user_agent_allow_regex?: string | undefined;
|
|
107
|
-
user_agent_deny_regex?: string | undefined;
|
|
108
|
-
ai_agent_policy?: {
|
|
109
|
-
block_all?: boolean | undefined;
|
|
110
|
-
deny_categories?: string[] | undefined;
|
|
111
|
-
allow_categories?: string[] | undefined;
|
|
112
|
-
} | undefined;
|
|
113
|
-
}>>;
|
|
114
|
-
}, "strip", z.ZodTypeAny, {
|
|
115
|
-
target_url: string;
|
|
116
|
-
label?: string | undefined;
|
|
117
|
-
one_time_use?: boolean | undefined;
|
|
118
|
-
max_sessions?: number | undefined;
|
|
119
|
-
session_duration?: string | undefined;
|
|
120
|
-
access_policy?: {
|
|
121
|
-
ip_allowlist?: string[] | undefined;
|
|
122
|
-
ip_denylist?: string[] | undefined;
|
|
123
|
-
geo_allowlist?: string[] | undefined;
|
|
124
|
-
geo_denylist?: string[] | undefined;
|
|
125
|
-
user_agent_allow_regex?: string | undefined;
|
|
126
|
-
user_agent_deny_regex?: string | undefined;
|
|
127
|
-
ai_agent_policy?: {
|
|
128
|
-
block_all?: boolean | undefined;
|
|
129
|
-
deny_categories?: string[] | undefined;
|
|
130
|
-
allow_categories?: string[] | undefined;
|
|
131
|
-
} | undefined;
|
|
132
|
-
} | undefined;
|
|
133
|
-
custom_domain?: string | undefined;
|
|
134
|
-
expires_in?: string | undefined;
|
|
135
|
-
}, {
|
|
136
|
-
target_url: string;
|
|
137
|
-
label?: string | undefined;
|
|
138
|
-
one_time_use?: boolean | undefined;
|
|
139
|
-
max_sessions?: number | undefined;
|
|
140
|
-
session_duration?: string | undefined;
|
|
141
|
-
access_policy?: {
|
|
142
|
-
ip_allowlist?: string[] | undefined;
|
|
143
|
-
ip_denylist?: string[] | undefined;
|
|
144
|
-
geo_allowlist?: string[] | undefined;
|
|
145
|
-
geo_denylist?: string[] | undefined;
|
|
146
|
-
user_agent_allow_regex?: string | undefined;
|
|
147
|
-
user_agent_deny_regex?: string | undefined;
|
|
148
|
-
ai_agent_policy?: {
|
|
149
|
-
block_all?: boolean | undefined;
|
|
150
|
-
deny_categories?: string[] | undefined;
|
|
151
|
-
allow_categories?: string[] | undefined;
|
|
152
|
-
} | undefined;
|
|
153
|
-
} | undefined;
|
|
154
|
-
custom_domain?: string | undefined;
|
|
155
|
-
expires_in?: string | undefined;
|
|
156
|
-
}>;
|
|
39
|
+
deny_categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
40
|
+
allow_categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
41
|
+
}, z.core.$strip>>;
|
|
42
|
+
}, z.core.$strip>>;
|
|
43
|
+
}, z.core.$strip>;
|
|
157
44
|
export declare function createQurlTool(client: IQURLClient): {
|
|
158
45
|
name: string;
|
|
159
46
|
title: string;
|
|
160
47
|
description: string;
|
|
161
48
|
inputSchema: z.ZodObject<{
|
|
49
|
+
type: z.ZodOptional<z.ZodString>;
|
|
162
50
|
target_url: z.ZodString;
|
|
163
51
|
label: z.ZodOptional<z.ZodString>;
|
|
164
52
|
expires_in: z.ZodOptional<z.ZodString>;
|
|
@@ -167,115 +55,29 @@ export declare function createQurlTool(client: IQURLClient): {
|
|
|
167
55
|
session_duration: z.ZodOptional<z.ZodString>;
|
|
168
56
|
custom_domain: z.ZodOptional<z.ZodString>;
|
|
169
57
|
access_policy: z.ZodOptional<z.ZodObject<{
|
|
170
|
-
ip_allowlist: z.ZodOptional<z.ZodArray<z.ZodString
|
|
171
|
-
ip_denylist: z.ZodOptional<z.ZodArray<z.ZodString
|
|
172
|
-
geo_allowlist: z.ZodOptional<z.ZodArray<z.ZodString
|
|
173
|
-
geo_denylist: z.ZodOptional<z.ZodArray<z.ZodString
|
|
58
|
+
ip_allowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
59
|
+
ip_denylist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
60
|
+
geo_allowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
61
|
+
geo_denylist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
174
62
|
user_agent_allow_regex: z.ZodOptional<z.ZodString>;
|
|
175
63
|
user_agent_deny_regex: z.ZodOptional<z.ZodString>;
|
|
176
64
|
ai_agent_policy: z.ZodOptional<z.ZodObject<{
|
|
177
65
|
block_all: z.ZodOptional<z.ZodBoolean>;
|
|
178
|
-
deny_categories: z.ZodOptional<z.ZodArray<z.ZodString
|
|
179
|
-
allow_categories: z.ZodOptional<z.ZodArray<z.ZodString
|
|
180
|
-
},
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
allow_categories?: string[] | undefined;
|
|
184
|
-
}, {
|
|
185
|
-
block_all?: boolean | undefined;
|
|
186
|
-
deny_categories?: string[] | undefined;
|
|
187
|
-
allow_categories?: string[] | undefined;
|
|
188
|
-
}>>;
|
|
189
|
-
}, "strip", z.ZodTypeAny, {
|
|
190
|
-
ip_allowlist?: string[] | undefined;
|
|
191
|
-
ip_denylist?: string[] | undefined;
|
|
192
|
-
geo_allowlist?: string[] | undefined;
|
|
193
|
-
geo_denylist?: string[] | undefined;
|
|
194
|
-
user_agent_allow_regex?: string | undefined;
|
|
195
|
-
user_agent_deny_regex?: string | undefined;
|
|
196
|
-
ai_agent_policy?: {
|
|
197
|
-
block_all?: boolean | undefined;
|
|
198
|
-
deny_categories?: string[] | undefined;
|
|
199
|
-
allow_categories?: string[] | undefined;
|
|
200
|
-
} | undefined;
|
|
201
|
-
}, {
|
|
202
|
-
ip_allowlist?: string[] | undefined;
|
|
203
|
-
ip_denylist?: string[] | undefined;
|
|
204
|
-
geo_allowlist?: string[] | undefined;
|
|
205
|
-
geo_denylist?: string[] | undefined;
|
|
206
|
-
user_agent_allow_regex?: string | undefined;
|
|
207
|
-
user_agent_deny_regex?: string | undefined;
|
|
208
|
-
ai_agent_policy?: {
|
|
209
|
-
block_all?: boolean | undefined;
|
|
210
|
-
deny_categories?: string[] | undefined;
|
|
211
|
-
allow_categories?: string[] | undefined;
|
|
212
|
-
} | undefined;
|
|
213
|
-
}>>;
|
|
214
|
-
}, "strip", z.ZodTypeAny, {
|
|
215
|
-
target_url: string;
|
|
216
|
-
label?: string | undefined;
|
|
217
|
-
one_time_use?: boolean | undefined;
|
|
218
|
-
max_sessions?: number | undefined;
|
|
219
|
-
session_duration?: string | undefined;
|
|
220
|
-
access_policy?: {
|
|
221
|
-
ip_allowlist?: string[] | undefined;
|
|
222
|
-
ip_denylist?: string[] | undefined;
|
|
223
|
-
geo_allowlist?: string[] | undefined;
|
|
224
|
-
geo_denylist?: string[] | undefined;
|
|
225
|
-
user_agent_allow_regex?: string | undefined;
|
|
226
|
-
user_agent_deny_regex?: string | undefined;
|
|
227
|
-
ai_agent_policy?: {
|
|
228
|
-
block_all?: boolean | undefined;
|
|
229
|
-
deny_categories?: string[] | undefined;
|
|
230
|
-
allow_categories?: string[] | undefined;
|
|
231
|
-
} | undefined;
|
|
232
|
-
} | undefined;
|
|
233
|
-
custom_domain?: string | undefined;
|
|
234
|
-
expires_in?: string | undefined;
|
|
235
|
-
}, {
|
|
236
|
-
target_url: string;
|
|
237
|
-
label?: string | undefined;
|
|
238
|
-
one_time_use?: boolean | undefined;
|
|
239
|
-
max_sessions?: number | undefined;
|
|
240
|
-
session_duration?: string | undefined;
|
|
241
|
-
access_policy?: {
|
|
242
|
-
ip_allowlist?: string[] | undefined;
|
|
243
|
-
ip_denylist?: string[] | undefined;
|
|
244
|
-
geo_allowlist?: string[] | undefined;
|
|
245
|
-
geo_denylist?: string[] | undefined;
|
|
246
|
-
user_agent_allow_regex?: string | undefined;
|
|
247
|
-
user_agent_deny_regex?: string | undefined;
|
|
248
|
-
ai_agent_policy?: {
|
|
249
|
-
block_all?: boolean | undefined;
|
|
250
|
-
deny_categories?: string[] | undefined;
|
|
251
|
-
allow_categories?: string[] | undefined;
|
|
252
|
-
} | undefined;
|
|
253
|
-
} | undefined;
|
|
254
|
-
custom_domain?: string | undefined;
|
|
255
|
-
expires_in?: string | undefined;
|
|
256
|
-
}>;
|
|
66
|
+
deny_categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
67
|
+
allow_categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
68
|
+
}, z.core.$strip>>;
|
|
69
|
+
}, z.core.$strip>>;
|
|
70
|
+
}, z.core.$strip>;
|
|
257
71
|
outputSchema: z.ZodObject<{
|
|
258
72
|
qurl_id: z.ZodString;
|
|
259
73
|
resource_id: z.ZodString;
|
|
260
74
|
qurl_link: z.ZodString;
|
|
75
|
+
branded_domain: z.ZodOptional<z.ZodString>;
|
|
261
76
|
qurl_site: z.ZodString;
|
|
262
77
|
expires_at: z.ZodString;
|
|
263
78
|
label: z.ZodOptional<z.ZodString>;
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
qurl_site: string;
|
|
267
|
-
expires_at: string;
|
|
268
|
-
resource_id: string;
|
|
269
|
-
qurl_link: string;
|
|
270
|
-
label?: string | undefined;
|
|
271
|
-
}, {
|
|
272
|
-
qurl_id: string;
|
|
273
|
-
qurl_site: string;
|
|
274
|
-
expires_at: string;
|
|
275
|
-
resource_id: string;
|
|
276
|
-
qurl_link: string;
|
|
277
|
-
label?: string | undefined;
|
|
278
|
-
}>;
|
|
79
|
+
type: z.ZodOptional<z.ZodString>;
|
|
80
|
+
}, z.core.$strip>;
|
|
279
81
|
annotations: {
|
|
280
82
|
title: string;
|
|
281
83
|
readOnlyHint: boolean;
|
|
@@ -285,10 +87,13 @@ export declare function createQurlTool(client: IQURLClient): {
|
|
|
285
87
|
};
|
|
286
88
|
handler: (input: {
|
|
287
89
|
target_url: string;
|
|
90
|
+
type?: string | undefined;
|
|
288
91
|
label?: string | undefined;
|
|
92
|
+
expires_in?: string | undefined;
|
|
289
93
|
one_time_use?: boolean | undefined;
|
|
290
94
|
max_sessions?: number | undefined;
|
|
291
95
|
session_duration?: string | undefined;
|
|
96
|
+
custom_domain?: string | undefined;
|
|
292
97
|
access_policy?: {
|
|
293
98
|
ip_allowlist?: string[] | undefined;
|
|
294
99
|
ip_denylist?: string[] | undefined;
|
|
@@ -302,8 +107,6 @@ export declare function createQurlTool(client: IQURLClient): {
|
|
|
302
107
|
allow_categories?: string[] | undefined;
|
|
303
108
|
} | undefined;
|
|
304
109
|
} | undefined;
|
|
305
|
-
custom_domain?: string | undefined;
|
|
306
|
-
expires_in?: string | undefined;
|
|
307
110
|
}) => Promise<{
|
|
308
111
|
content: Array<{
|
|
309
112
|
type: "text";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-qurl.d.ts","sourceRoot":"","sources":["../../src/tools/create-qurl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAIhD,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"create-qurl.d.ts","sourceRoot":"","sources":["../../src/tools/create-qurl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAIhD,eAAO,MAAM,mBAAmB;;;;iBAU9B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;iBAc7B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;iBAsC3B,CAAC;AAEH,wBAAgB,cAAc,CAAC,MAAM,EAAE,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwCjD"}
|
|
@@ -13,14 +13,8 @@ export const aiAgentPolicySchema = z.object({
|
|
|
13
13
|
.describe("AI agent categories to permit (all others blocked)"),
|
|
14
14
|
});
|
|
15
15
|
export const accessPolicySchema = z.object({
|
|
16
|
-
ip_allowlist: z
|
|
17
|
-
|
|
18
|
-
.optional()
|
|
19
|
-
.describe("Allowed IP addresses or CIDR ranges"),
|
|
20
|
-
ip_denylist: z
|
|
21
|
-
.array(z.string())
|
|
22
|
-
.optional()
|
|
23
|
-
.describe("Denied IP addresses or CIDR ranges"),
|
|
16
|
+
ip_allowlist: z.array(z.string()).optional().describe("Allowed IP addresses or CIDR ranges"),
|
|
17
|
+
ip_denylist: z.array(z.string()).optional().describe("Denied IP addresses or CIDR ranges"),
|
|
24
18
|
geo_allowlist: z
|
|
25
19
|
.array(z.string())
|
|
26
20
|
.optional()
|
|
@@ -29,28 +23,22 @@ export const accessPolicySchema = z.object({
|
|
|
29
23
|
.array(z.string())
|
|
30
24
|
.optional()
|
|
31
25
|
.describe("Denied country codes (ISO 3166-1 alpha-2)"),
|
|
32
|
-
user_agent_allow_regex: z
|
|
33
|
-
|
|
34
|
-
.optional()
|
|
35
|
-
.describe("Regex to allow matching user agents"),
|
|
36
|
-
user_agent_deny_regex: z
|
|
37
|
-
.string()
|
|
38
|
-
.optional()
|
|
39
|
-
.describe("Regex to deny matching user agents"),
|
|
26
|
+
user_agent_allow_regex: z.string().optional().describe("Regex to allow matching user agents"),
|
|
27
|
+
user_agent_deny_regex: z.string().optional().describe("Regex to deny matching user agents"),
|
|
40
28
|
ai_agent_policy: aiAgentPolicySchema.optional().describe("Structured AI agent access control"),
|
|
41
29
|
});
|
|
42
30
|
export const createQurlSchema = z.object({
|
|
31
|
+
type: z
|
|
32
|
+
.string()
|
|
33
|
+
.optional()
|
|
34
|
+
.describe("Resource type for integrations allowed to mint non-url qURLs. Defaults to url."),
|
|
43
35
|
target_url: z.string().url().describe("The URL to protect with qURL"),
|
|
44
36
|
label: z
|
|
45
37
|
.string()
|
|
46
38
|
.max(500)
|
|
47
39
|
.optional()
|
|
48
40
|
.describe("Human-readable label identifying who this qURL is for (max 500 chars)"),
|
|
49
|
-
expires_in: z
|
|
50
|
-
.string()
|
|
51
|
-
.min(1)
|
|
52
|
-
.optional()
|
|
53
|
-
.describe('Duration string (e.g., "1h", "24h", "7d")'),
|
|
41
|
+
expires_in: z.string().min(1).optional().describe('Duration string (e.g., "1h", "24h", "7d")'),
|
|
54
42
|
one_time_use: z.boolean().optional().describe("Whether the link can only be used once"),
|
|
55
43
|
max_sessions: z
|
|
56
44
|
.number()
|
|
@@ -58,12 +46,13 @@ export const createQurlSchema = z.object({
|
|
|
58
46
|
.min(0)
|
|
59
47
|
.max(1000)
|
|
60
48
|
.optional()
|
|
61
|
-
.describe("Maximum concurrent sessions (0 = unlimited
|
|
49
|
+
.describe("Maximum concurrent sessions for this qURL token (0 = unlimited when one_time_use is explicitly false; max 1000)"),
|
|
62
50
|
session_duration: z
|
|
63
51
|
.string()
|
|
64
52
|
.min(1)
|
|
65
53
|
.optional()
|
|
66
|
-
.describe('How long access lasts after
|
|
54
|
+
.describe('How long access lasts after the recipient reaches the content (e.g., "1h"). ' +
|
|
55
|
+
"This anchors the resource-level session-duration cap when a new resource is created."),
|
|
67
56
|
custom_domain: z
|
|
68
57
|
.string()
|
|
69
58
|
.max(253)
|
|
@@ -75,11 +64,19 @@ export function createQurlTool(client) {
|
|
|
75
64
|
return {
|
|
76
65
|
name: "create_qurl",
|
|
77
66
|
title: "Create qURL",
|
|
78
|
-
description: "Create a
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"Use `batch_create_qurls` to create many in one
|
|
82
|
-
"
|
|
67
|
+
description: "Create a qURL — a policy-bound, expiring access link that gates a target URL with optional IP/geo/UA/AI-agent filters and time or session limits. " +
|
|
68
|
+
"**When to use:** minting a fresh protected access link for share-once or time-limited access (e.g. send a customer a 24-hour download link, gate a doc behind an IP allowlist, distribute a one-time-use credential to a contractor). " +
|
|
69
|
+
"**When NOT to use:** use `mint_link` when you already have a resource (`r_…`) and just need an additional access token under it — `create_qurl` identifies the resource by target URL and may return an existing same-type resource grouping. " +
|
|
70
|
+
"Use `batch_create_qurls` to create many in one round-trip. " +
|
|
71
|
+
"Use `update_qurl` to retag or extend an existing resource without minting a new one. " +
|
|
72
|
+
"**Behavior:** not idempotent — calling twice produces two distinct qURL tokens, though both may share the same `resource_id` when the target URL groups to an existing same-type resource (this tool doesn't surface the underlying API's `Idempotency-Key` header). " +
|
|
73
|
+
"The returned `qurl_link` is shown ONCE in this response and is never recoverable through `get_qurl` or `list_qurls`; persist or share it immediately. " +
|
|
74
|
+
"A returned resource is in `active` status with the policy and per-token limits applied. " +
|
|
75
|
+
"If `expires_in` is omitted the API defaults to **24h** — do not assume the link is permanent. " +
|
|
76
|
+
"`max_sessions` is per minted qURL, not resource-wide; set `one_time_use: false` explicitly when you need `max_sessions: 0` to mean unlimited visitors. " +
|
|
77
|
+
"**Returns:** `{ qurl_id: string (q_…), resource_id: string (r_…), qurl_link: string (shown once), branded_domain?: string, qurl_site: string, expires_at: string (RFC 3339), label?: string, type?: string }`. " +
|
|
78
|
+
"`qurl_id` is the only `q_…` display ID an agent gets in this response — keep it if you plan a follow-up against `get_qurl`/`update_qurl`/`mint_link` (which accept either prefix). " +
|
|
79
|
+
"Example: `create_qurl({ target_url: 'https://example.com/private', expires_in: '24h', one_time_use: true, access_policy: { geo_allowlist: ['US'] } })`.",
|
|
83
80
|
inputSchema: createQurlSchema,
|
|
84
81
|
outputSchema: createQurlOutputSchema,
|
|
85
82
|
annotations: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-qurl.js","sourceRoot":"","sources":["../../src/tools/create-qurl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CA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AAY,EAAE,KAAK;YACnB,eAAe,EAAE,KAAK;YACtB,cAAc,EAAE,KAAK;YACrB,aAAa,EAAE,IAAI;SACpB;QACD,OAAO,EAAE,wBAAwB,CAAC,KAAK,EAAE,KAAuC,EAAE,EAAE;YAClF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;YAC9C,OAAO;gBACL,OAAO,EAAE;oBACP;wBACE,IAAI,EAAE,MAAe;wBACrB,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC;qBAClC;iBACF;gBACD,iBAAiB,EAAE,mBAAmB,CAAC,MAAM,CAAC,IAAI,CAAC;aACpD,CAAC;QACJ,CAAC,CAAC;KACH,CAAC;AACJ,CAAC"}
|
|
@@ -2,38 +2,20 @@ import { z } from "zod";
|
|
|
2
2
|
import { type IQURLClient } from "../client.js";
|
|
3
3
|
export declare const deleteQurlSchema: z.ZodObject<{
|
|
4
4
|
resource_id: z.ZodString;
|
|
5
|
-
},
|
|
6
|
-
resource_id: string;
|
|
7
|
-
}, {
|
|
8
|
-
resource_id: string;
|
|
9
|
-
}>;
|
|
5
|
+
}, z.core.$strip>;
|
|
10
6
|
export declare function deleteQurlTool(client: IQURLClient): {
|
|
11
7
|
name: string;
|
|
12
8
|
title: string;
|
|
13
9
|
description: string;
|
|
14
10
|
inputSchema: z.ZodObject<{
|
|
15
11
|
resource_id: z.ZodString;
|
|
16
|
-
},
|
|
17
|
-
resource_id: string;
|
|
18
|
-
}, {
|
|
19
|
-
resource_id: string;
|
|
20
|
-
}>;
|
|
12
|
+
}, z.core.$strip>;
|
|
21
13
|
outputSchema: z.ZodObject<{
|
|
22
14
|
resource_id: z.ZodString;
|
|
23
15
|
revoked: z.ZodLiteral<true>;
|
|
24
16
|
was_already_revoked: z.ZodBoolean;
|
|
25
17
|
message: z.ZodString;
|
|
26
|
-
},
|
|
27
|
-
revoked: true;
|
|
28
|
-
message: string;
|
|
29
|
-
resource_id: string;
|
|
30
|
-
was_already_revoked: boolean;
|
|
31
|
-
}, {
|
|
32
|
-
revoked: true;
|
|
33
|
-
message: string;
|
|
34
|
-
resource_id: string;
|
|
35
|
-
was_already_revoked: boolean;
|
|
36
|
-
}>;
|
|
18
|
+
}, z.core.$strip>;
|
|
37
19
|
annotations: {
|
|
38
20
|
title: string;
|
|
39
21
|
readOnlyHint: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-qurl.d.ts","sourceRoot":"","sources":["../../src/tools/delete-qurl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,WAAW,EAAgB,MAAM,cAAc,CAAC;AAI9D,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"delete-qurl.d.ts","sourceRoot":"","sources":["../../src/tools/delete-qurl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,WAAW,EAAgB,MAAM,cAAc,CAAC;AAI9D,eAAO,MAAM,gBAAgB;;iBAY3B,CAAC;AAEH,wBAAgB,cAAc,CAAC,MAAM,EAAE,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwEjD"}
|
|
@@ -9,9 +9,8 @@ export const deleteQurlSchema = z.object({
|
|
|
9
9
|
// instead of a confusing API-side rejection.
|
|
10
10
|
resource_id: z
|
|
11
11
|
.string()
|
|
12
|
-
.
|
|
13
|
-
.
|
|
14
|
-
.describe("The resource ID (must start with r_). delete_qurl does not accept q_ (qURL display) IDs."),
|
|
12
|
+
.regex(/^r_[a-z0-9_-]{11}$/, "delete_qurl only accepts resource IDs (r_ prefix). Use update_qurl or mint_link for q_ IDs.")
|
|
13
|
+
.describe("The resource ID (r_ prefix). delete_qurl does not accept q_ (qURL display) IDs."),
|
|
15
14
|
});
|
|
16
15
|
export function deleteQurlTool(client) {
|
|
17
16
|
return {
|
|
@@ -21,8 +20,10 @@ export function deleteQurlTool(client) {
|
|
|
21
20
|
"**This action is irreversible.** Use this when you want to cut off access entirely (compromised link, departed user, end-of-engagement). " +
|
|
22
21
|
"Use `update_qurl` instead when you only need to shorten/extend the expiration, retag, or rename — those preserve the existing access tokens. " +
|
|
23
22
|
"Use `extend_qurl` when you only need to push the expiration out. " +
|
|
24
|
-
"**Idempotent:**
|
|
25
|
-
"
|
|
23
|
+
"**Idempotent:** the API returns 404 for re-deletes, never-existed IDs, and resources owned by another API key (ownership-mismatch is collapsed into 404 server-side to avoid existence disclosure); this tool swallows all three. " +
|
|
24
|
+
"Branch on `was_already_revoked` to distinguish the no-op case from a successful revoke on this call. " +
|
|
25
|
+
"When the ID came from user input and ownership matters, call `get_qurl` first — a 200 confirms ownership; a thrown 404 is equally ambiguous on that endpoint too. " +
|
|
26
|
+
'Returns a confirmation payload. By default the resource is excluded from `list_qurls`; pass `status: "revoked"` to see it.',
|
|
26
27
|
inputSchema: deleteQurlSchema,
|
|
27
28
|
outputSchema: deleteQurlOutputSchema,
|
|
28
29
|
annotations: {
|
|
@@ -45,6 +46,18 @@ export function deleteQurlTool(client) {
|
|
|
45
46
|
// `was_already_revoked: true` in the payload so defensive
|
|
46
47
|
// agents can branch when they care.
|
|
47
48
|
//
|
|
49
|
+
// Verified against qurl-service: the service-layer
|
|
50
|
+
// `QurlService.RevokeQurl` and `QurlService.GetQurl` both
|
|
51
|
+
// collapse ownership-mismatch into `ErrResourceNotFound` — so
|
|
52
|
+
// 404 covers "you don't own this resource" on both endpoints.
|
|
53
|
+
// The collapse is server-side policy to avoid existence
|
|
54
|
+
// disclosure. The tool description tells callers that
|
|
55
|
+
// `get_qurl` only confirms ownership in the *positive* case
|
|
56
|
+
// (200), since `get_qurl`'s 404 is just as ambiguous as
|
|
57
|
+
// `delete_qurl`'s. (Function names only — line numbers in a
|
|
58
|
+
// separate repo rot on the next refactor; grep
|
|
59
|
+
// `func.*RevokeQurl\b` / `func.*GetQurl\b` in qurl-service.)
|
|
60
|
+
//
|
|
48
61
|
// Intentionally checks status only, not `code`. A 404 with a
|
|
49
62
|
// non-JSON body (e.g. an HTML error page from a proxy in front
|
|
50
63
|
// of the API) lands here as `code: "parse_error"` — the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-qurl.js","sourceRoot":"","sources":["../../src/tools/delete-qurl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAoB,YAAY,EAAE,MAAM,cAAc,CAAC;AAC9D,OAAO,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AACxD,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,kEAAkE;IAClE,oEAAoE;IACpE,gEAAgE;IAChE,6CAA6C;IAC7C,WAAW,EAAE,CAAC;SACX,MAAM,EAAE;SACR,
|
|
1
|
+
{"version":3,"file":"delete-qurl.js","sourceRoot":"","sources":["../../src/tools/delete-qurl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAoB,YAAY,EAAE,MAAM,cAAc,CAAC;AAC9D,OAAO,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AACxD,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,kEAAkE;IAClE,oEAAoE;IACpE,gEAAgE;IAChE,6CAA6C;IAC7C,WAAW,EAAE,CAAC;SACX,MAAM,EAAE;SACR,KAAK,CACJ,oBAAoB,EACpB,6FAA6F,CAC9F;SACA,QAAQ,CAAC,iFAAiF,CAAC;CAC/F,CAAC,CAAC;AAEH,MAAM,UAAU,cAAc,CAAC,MAAmB;I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