@layervai/qurl-mcp 0.4.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.
Files changed (83) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +98 -0
  3. package/dist/client.d.ts +278 -0
  4. package/dist/client.d.ts.map +1 -0
  5. package/dist/client.js +156 -0
  6. package/dist/client.js.map +1 -0
  7. package/dist/index.d.ts +3 -0
  8. package/dist/index.d.ts.map +1 -0
  9. package/dist/index.js +34 -0
  10. package/dist/index.js.map +1 -0
  11. package/dist/prompts/audit-links.d.ts +7 -0
  12. package/dist/prompts/audit-links.d.ts.map +1 -0
  13. package/dist/prompts/audit-links.js +31 -0
  14. package/dist/prompts/audit-links.js.map +1 -0
  15. package/dist/prompts/rotate-access.d.ts +18 -0
  16. package/dist/prompts/rotate-access.d.ts.map +1 -0
  17. package/dist/prompts/rotate-access.js +41 -0
  18. package/dist/prompts/rotate-access.js.map +1 -0
  19. package/dist/prompts/secure-a-service.d.ts +38 -0
  20. package/dist/prompts/secure-a-service.d.ts.map +1 -0
  21. package/dist/prompts/secure-a-service.js +141 -0
  22. package/dist/prompts/secure-a-service.js.map +1 -0
  23. package/dist/resources/_shared.d.ts +31 -0
  24. package/dist/resources/_shared.d.ts.map +1 -0
  25. package/dist/resources/_shared.js +42 -0
  26. package/dist/resources/_shared.js.map +1 -0
  27. package/dist/resources/links.d.ts +15 -0
  28. package/dist/resources/links.d.ts.map +1 -0
  29. package/dist/resources/links.js +22 -0
  30. package/dist/resources/links.js.map +1 -0
  31. package/dist/resources/usage.d.ts +15 -0
  32. package/dist/resources/usage.d.ts.map +1 -0
  33. package/dist/resources/usage.js +18 -0
  34. package/dist/resources/usage.js.map +1 -0
  35. package/dist/server.d.ts +37 -0
  36. package/dist/server.d.ts.map +1 -0
  37. package/dist/server.js +58 -0
  38. package/dist/server.js.map +1 -0
  39. package/dist/tools/_shared.d.ts +78 -0
  40. package/dist/tools/_shared.d.ts.map +1 -0
  41. package/dist/tools/_shared.js +80 -0
  42. package/dist/tools/_shared.js.map +1 -0
  43. package/dist/tools/batch-create.d.ts +426 -0
  44. package/dist/tools/batch-create.d.ts.map +1 -0
  45. package/dist/tools/batch-create.js +81 -0
  46. package/dist/tools/batch-create.js.map +1 -0
  47. package/dist/tools/create-qurl.d.ts +316 -0
  48. package/dist/tools/create-qurl.d.ts.map +1 -0
  49. package/dist/tools/create-qurl.js +106 -0
  50. package/dist/tools/create-qurl.js.map +1 -0
  51. package/dist/tools/delete-qurl.d.ts +55 -0
  52. package/dist/tools/delete-qurl.d.ts.map +1 -0
  53. package/dist/tools/delete-qurl.js +76 -0
  54. package/dist/tools/delete-qurl.js.map +1 -0
  55. package/dist/tools/extend-qurl.d.ts +238 -0
  56. package/dist/tools/extend-qurl.d.ts.map +1 -0
  57. package/dist/tools/extend-qurl.js +45 -0
  58. package/dist/tools/extend-qurl.js.map +1 -0
  59. package/dist/tools/get-qurl.d.ts +231 -0
  60. package/dist/tools/get-qurl.d.ts.map +1 -0
  61. package/dist/tools/get-qurl.js +39 -0
  62. package/dist/tools/get-qurl.js.map +1 -0
  63. package/dist/tools/list-qurls.d.ts +395 -0
  64. package/dist/tools/list-qurls.d.ts.map +1 -0
  65. package/dist/tools/list-qurls.js +72 -0
  66. package/dist/tools/list-qurls.js.map +1 -0
  67. package/dist/tools/mint-link.d.ts +384 -0
  68. package/dist/tools/mint-link.d.ts.map +1 -0
  69. package/dist/tools/mint-link.js +75 -0
  70. package/dist/tools/mint-link.js.map +1 -0
  71. package/dist/tools/output-schemas.d.ts +1261 -0
  72. package/dist/tools/output-schemas.d.ts.map +1 -0
  73. package/dist/tools/output-schemas.js +173 -0
  74. package/dist/tools/output-schemas.js.map +1 -0
  75. package/dist/tools/resolve-qurl.d.ts +72 -0
  76. package/dist/tools/resolve-qurl.d.ts.map +1 -0
  77. package/dist/tools/resolve-qurl.js +42 -0
  78. package/dist/tools/resolve-qurl.js.map +1 -0
  79. package/dist/tools/update-qurl.d.ts +330 -0
  80. package/dist/tools/update-qurl.d.ts.map +1 -0
  81. package/dist/tools/update-qurl.js +96 -0
  82. package/dist/tools/update-qurl.js.map +1 -0
  83. package/package.json +58 -0
@@ -0,0 +1,1261 @@
1
+ import { z } from "zod";
2
+ /** Stable QURL resource shape returned by get/list/update/extend. */
3
+ export declare const qurlSchema: z.ZodObject<{
4
+ resource_id: z.ZodString;
5
+ qurl_site: z.ZodOptional<z.ZodString>;
6
+ target_url: z.ZodString;
7
+ description: z.ZodOptional<z.ZodString>;
8
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
9
+ expires_at: z.ZodString;
10
+ created_at: z.ZodString;
11
+ status: z.ZodEnum<["active", "revoked"]>;
12
+ custom_domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ preserve_host: z.ZodOptional<z.ZodBoolean>;
14
+ qurl_count: z.ZodOptional<z.ZodNumber>;
15
+ qurls: z.ZodOptional<z.ZodArray<z.ZodObject<{
16
+ qurl_id: z.ZodString;
17
+ label: z.ZodOptional<z.ZodString>;
18
+ status: z.ZodEnum<["active", "consumed", "expired", "revoked"]>;
19
+ one_time_use: z.ZodBoolean;
20
+ max_sessions: z.ZodNumber;
21
+ session_duration: z.ZodNumber;
22
+ use_count: z.ZodNumber;
23
+ qurl_site: z.ZodOptional<z.ZodString>;
24
+ access_policy: z.ZodOptional<z.ZodObject<{
25
+ ip_allowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
26
+ ip_denylist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
27
+ geo_allowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
28
+ geo_denylist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
29
+ user_agent_allow_regex: z.ZodOptional<z.ZodString>;
30
+ user_agent_deny_regex: z.ZodOptional<z.ZodString>;
31
+ ai_agent_policy: z.ZodOptional<z.ZodObject<{
32
+ block_all: z.ZodOptional<z.ZodBoolean>;
33
+ deny_categories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
34
+ allow_categories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
35
+ }, "strip", z.ZodTypeAny, {
36
+ block_all?: boolean | undefined;
37
+ deny_categories?: string[] | undefined;
38
+ allow_categories?: string[] | undefined;
39
+ }, {
40
+ block_all?: boolean | undefined;
41
+ deny_categories?: string[] | undefined;
42
+ allow_categories?: string[] | undefined;
43
+ }>>;
44
+ }, "strip", z.ZodTypeAny, {
45
+ ip_allowlist?: string[] | undefined;
46
+ ip_denylist?: string[] | undefined;
47
+ geo_allowlist?: string[] | undefined;
48
+ geo_denylist?: string[] | undefined;
49
+ user_agent_allow_regex?: string | undefined;
50
+ user_agent_deny_regex?: string | undefined;
51
+ ai_agent_policy?: {
52
+ block_all?: boolean | undefined;
53
+ deny_categories?: string[] | undefined;
54
+ allow_categories?: string[] | undefined;
55
+ } | undefined;
56
+ }, {
57
+ ip_allowlist?: string[] | undefined;
58
+ ip_denylist?: string[] | undefined;
59
+ geo_allowlist?: string[] | undefined;
60
+ geo_denylist?: string[] | undefined;
61
+ user_agent_allow_regex?: string | undefined;
62
+ user_agent_deny_regex?: string | undefined;
63
+ ai_agent_policy?: {
64
+ block_all?: boolean | undefined;
65
+ deny_categories?: string[] | undefined;
66
+ allow_categories?: string[] | undefined;
67
+ } | undefined;
68
+ }>>;
69
+ created_at: z.ZodString;
70
+ expires_at: z.ZodString;
71
+ }, "strip", z.ZodTypeAny, {
72
+ status: "active" | "consumed" | "expired" | "revoked";
73
+ qurl_id: string;
74
+ one_time_use: boolean;
75
+ max_sessions: number;
76
+ session_duration: number;
77
+ use_count: number;
78
+ created_at: string;
79
+ expires_at: string;
80
+ label?: string | undefined;
81
+ qurl_site?: string | undefined;
82
+ access_policy?: {
83
+ ip_allowlist?: string[] | undefined;
84
+ ip_denylist?: string[] | undefined;
85
+ geo_allowlist?: string[] | undefined;
86
+ geo_denylist?: string[] | undefined;
87
+ user_agent_allow_regex?: string | undefined;
88
+ user_agent_deny_regex?: string | undefined;
89
+ ai_agent_policy?: {
90
+ block_all?: boolean | undefined;
91
+ deny_categories?: string[] | undefined;
92
+ allow_categories?: string[] | undefined;
93
+ } | undefined;
94
+ } | undefined;
95
+ }, {
96
+ status: "active" | "consumed" | "expired" | "revoked";
97
+ qurl_id: string;
98
+ one_time_use: boolean;
99
+ max_sessions: number;
100
+ session_duration: number;
101
+ use_count: number;
102
+ created_at: string;
103
+ expires_at: string;
104
+ label?: string | undefined;
105
+ qurl_site?: string | undefined;
106
+ access_policy?: {
107
+ ip_allowlist?: string[] | undefined;
108
+ ip_denylist?: string[] | undefined;
109
+ geo_allowlist?: string[] | undefined;
110
+ geo_denylist?: string[] | undefined;
111
+ user_agent_allow_regex?: string | undefined;
112
+ user_agent_deny_regex?: string | undefined;
113
+ ai_agent_policy?: {
114
+ block_all?: boolean | undefined;
115
+ deny_categories?: string[] | undefined;
116
+ allow_categories?: string[] | undefined;
117
+ } | undefined;
118
+ } | undefined;
119
+ }>, "many">>;
120
+ }, "strip", z.ZodTypeAny, {
121
+ status: "active" | "revoked";
122
+ created_at: string;
123
+ expires_at: string;
124
+ resource_id: string;
125
+ target_url: string;
126
+ qurl_site?: string | undefined;
127
+ description?: string | undefined;
128
+ tags?: string[] | undefined;
129
+ custom_domain?: string | null | undefined;
130
+ preserve_host?: boolean | undefined;
131
+ qurl_count?: number | undefined;
132
+ qurls?: {
133
+ status: "active" | "consumed" | "expired" | "revoked";
134
+ qurl_id: string;
135
+ one_time_use: boolean;
136
+ max_sessions: number;
137
+ session_duration: number;
138
+ use_count: number;
139
+ created_at: string;
140
+ expires_at: string;
141
+ label?: string | undefined;
142
+ qurl_site?: string | undefined;
143
+ access_policy?: {
144
+ ip_allowlist?: string[] | undefined;
145
+ ip_denylist?: string[] | undefined;
146
+ geo_allowlist?: string[] | undefined;
147
+ geo_denylist?: string[] | undefined;
148
+ user_agent_allow_regex?: string | undefined;
149
+ user_agent_deny_regex?: string | undefined;
150
+ ai_agent_policy?: {
151
+ block_all?: boolean | undefined;
152
+ deny_categories?: string[] | undefined;
153
+ allow_categories?: string[] | undefined;
154
+ } | undefined;
155
+ } | undefined;
156
+ }[] | undefined;
157
+ }, {
158
+ status: "active" | "revoked";
159
+ created_at: string;
160
+ expires_at: string;
161
+ resource_id: string;
162
+ target_url: string;
163
+ qurl_site?: string | undefined;
164
+ description?: string | undefined;
165
+ tags?: string[] | undefined;
166
+ custom_domain?: string | null | undefined;
167
+ preserve_host?: boolean | undefined;
168
+ qurl_count?: number | undefined;
169
+ qurls?: {
170
+ status: "active" | "consumed" | "expired" | "revoked";
171
+ qurl_id: string;
172
+ one_time_use: boolean;
173
+ max_sessions: number;
174
+ session_duration: number;
175
+ use_count: number;
176
+ created_at: string;
177
+ expires_at: string;
178
+ label?: string | undefined;
179
+ qurl_site?: string | undefined;
180
+ access_policy?: {
181
+ ip_allowlist?: string[] | undefined;
182
+ ip_denylist?: string[] | undefined;
183
+ geo_allowlist?: string[] | undefined;
184
+ geo_denylist?: string[] | undefined;
185
+ user_agent_allow_regex?: string | undefined;
186
+ user_agent_deny_regex?: string | undefined;
187
+ ai_agent_policy?: {
188
+ block_all?: boolean | undefined;
189
+ deny_categories?: string[] | undefined;
190
+ allow_categories?: string[] | undefined;
191
+ } | undefined;
192
+ } | undefined;
193
+ }[] | undefined;
194
+ }>;
195
+ /** Ephemeral create-time payload — note `qurl_link` is one-shot. */
196
+ export declare const createQurlOutputSchema: z.ZodObject<{
197
+ qurl_id: z.ZodString;
198
+ resource_id: z.ZodString;
199
+ qurl_link: z.ZodString;
200
+ qurl_site: z.ZodString;
201
+ expires_at: z.ZodString;
202
+ label: z.ZodOptional<z.ZodString>;
203
+ }, "strip", z.ZodTypeAny, {
204
+ qurl_id: string;
205
+ qurl_site: string;
206
+ expires_at: string;
207
+ resource_id: string;
208
+ qurl_link: string;
209
+ label?: string | undefined;
210
+ }, {
211
+ qurl_id: string;
212
+ qurl_site: string;
213
+ expires_at: string;
214
+ resource_id: string;
215
+ qurl_link: string;
216
+ label?: string | undefined;
217
+ }>;
218
+ export declare const getQurlOutputSchema: z.ZodObject<{
219
+ resource_id: z.ZodString;
220
+ qurl_site: z.ZodOptional<z.ZodString>;
221
+ target_url: z.ZodString;
222
+ description: z.ZodOptional<z.ZodString>;
223
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
224
+ expires_at: z.ZodString;
225
+ created_at: z.ZodString;
226
+ status: z.ZodEnum<["active", "revoked"]>;
227
+ custom_domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
228
+ preserve_host: z.ZodOptional<z.ZodBoolean>;
229
+ qurl_count: z.ZodOptional<z.ZodNumber>;
230
+ qurls: z.ZodOptional<z.ZodArray<z.ZodObject<{
231
+ qurl_id: z.ZodString;
232
+ label: z.ZodOptional<z.ZodString>;
233
+ status: z.ZodEnum<["active", "consumed", "expired", "revoked"]>;
234
+ one_time_use: z.ZodBoolean;
235
+ max_sessions: z.ZodNumber;
236
+ session_duration: z.ZodNumber;
237
+ use_count: z.ZodNumber;
238
+ qurl_site: z.ZodOptional<z.ZodString>;
239
+ access_policy: z.ZodOptional<z.ZodObject<{
240
+ ip_allowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
241
+ ip_denylist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
242
+ geo_allowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
243
+ geo_denylist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
244
+ user_agent_allow_regex: z.ZodOptional<z.ZodString>;
245
+ user_agent_deny_regex: z.ZodOptional<z.ZodString>;
246
+ ai_agent_policy: z.ZodOptional<z.ZodObject<{
247
+ block_all: z.ZodOptional<z.ZodBoolean>;
248
+ deny_categories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
249
+ allow_categories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
250
+ }, "strip", z.ZodTypeAny, {
251
+ block_all?: boolean | undefined;
252
+ deny_categories?: string[] | undefined;
253
+ allow_categories?: string[] | undefined;
254
+ }, {
255
+ block_all?: boolean | undefined;
256
+ deny_categories?: string[] | undefined;
257
+ allow_categories?: string[] | undefined;
258
+ }>>;
259
+ }, "strip", z.ZodTypeAny, {
260
+ ip_allowlist?: string[] | undefined;
261
+ ip_denylist?: string[] | undefined;
262
+ geo_allowlist?: string[] | undefined;
263
+ geo_denylist?: string[] | undefined;
264
+ user_agent_allow_regex?: string | undefined;
265
+ user_agent_deny_regex?: string | undefined;
266
+ ai_agent_policy?: {
267
+ block_all?: boolean | undefined;
268
+ deny_categories?: string[] | undefined;
269
+ allow_categories?: string[] | undefined;
270
+ } | undefined;
271
+ }, {
272
+ ip_allowlist?: string[] | undefined;
273
+ ip_denylist?: string[] | undefined;
274
+ geo_allowlist?: string[] | undefined;
275
+ geo_denylist?: string[] | undefined;
276
+ user_agent_allow_regex?: string | undefined;
277
+ user_agent_deny_regex?: string | undefined;
278
+ ai_agent_policy?: {
279
+ block_all?: boolean | undefined;
280
+ deny_categories?: string[] | undefined;
281
+ allow_categories?: string[] | undefined;
282
+ } | undefined;
283
+ }>>;
284
+ created_at: z.ZodString;
285
+ expires_at: z.ZodString;
286
+ }, "strip", z.ZodTypeAny, {
287
+ status: "active" | "consumed" | "expired" | "revoked";
288
+ qurl_id: string;
289
+ one_time_use: boolean;
290
+ max_sessions: number;
291
+ session_duration: number;
292
+ use_count: number;
293
+ created_at: string;
294
+ expires_at: string;
295
+ label?: string | undefined;
296
+ qurl_site?: string | undefined;
297
+ access_policy?: {
298
+ ip_allowlist?: string[] | undefined;
299
+ ip_denylist?: string[] | undefined;
300
+ geo_allowlist?: string[] | undefined;
301
+ geo_denylist?: string[] | undefined;
302
+ user_agent_allow_regex?: string | undefined;
303
+ user_agent_deny_regex?: string | undefined;
304
+ ai_agent_policy?: {
305
+ block_all?: boolean | undefined;
306
+ deny_categories?: string[] | undefined;
307
+ allow_categories?: string[] | undefined;
308
+ } | undefined;
309
+ } | undefined;
310
+ }, {
311
+ status: "active" | "consumed" | "expired" | "revoked";
312
+ qurl_id: string;
313
+ one_time_use: boolean;
314
+ max_sessions: number;
315
+ session_duration: number;
316
+ use_count: number;
317
+ created_at: string;
318
+ expires_at: string;
319
+ label?: string | undefined;
320
+ qurl_site?: 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
+ }>, "many">>;
335
+ }, "strip", z.ZodTypeAny, {
336
+ status: "active" | "revoked";
337
+ created_at: string;
338
+ expires_at: string;
339
+ resource_id: string;
340
+ target_url: string;
341
+ qurl_site?: string | undefined;
342
+ description?: string | undefined;
343
+ tags?: string[] | undefined;
344
+ custom_domain?: string | null | undefined;
345
+ preserve_host?: boolean | undefined;
346
+ qurl_count?: number | undefined;
347
+ qurls?: {
348
+ status: "active" | "consumed" | "expired" | "revoked";
349
+ qurl_id: string;
350
+ one_time_use: boolean;
351
+ max_sessions: number;
352
+ session_duration: number;
353
+ use_count: number;
354
+ created_at: string;
355
+ expires_at: string;
356
+ label?: string | undefined;
357
+ qurl_site?: string | undefined;
358
+ access_policy?: {
359
+ ip_allowlist?: string[] | undefined;
360
+ ip_denylist?: string[] | undefined;
361
+ geo_allowlist?: string[] | undefined;
362
+ geo_denylist?: string[] | undefined;
363
+ user_agent_allow_regex?: string | undefined;
364
+ user_agent_deny_regex?: string | undefined;
365
+ ai_agent_policy?: {
366
+ block_all?: boolean | undefined;
367
+ deny_categories?: string[] | undefined;
368
+ allow_categories?: string[] | undefined;
369
+ } | undefined;
370
+ } | undefined;
371
+ }[] | undefined;
372
+ }, {
373
+ status: "active" | "revoked";
374
+ created_at: string;
375
+ expires_at: string;
376
+ resource_id: string;
377
+ target_url: string;
378
+ qurl_site?: string | undefined;
379
+ description?: string | undefined;
380
+ tags?: string[] | undefined;
381
+ custom_domain?: string | null | undefined;
382
+ preserve_host?: boolean | undefined;
383
+ qurl_count?: number | undefined;
384
+ qurls?: {
385
+ status: "active" | "consumed" | "expired" | "revoked";
386
+ qurl_id: string;
387
+ one_time_use: boolean;
388
+ max_sessions: number;
389
+ session_duration: number;
390
+ use_count: number;
391
+ created_at: string;
392
+ expires_at: string;
393
+ label?: string | undefined;
394
+ qurl_site?: string | undefined;
395
+ access_policy?: {
396
+ ip_allowlist?: string[] | undefined;
397
+ ip_denylist?: string[] | undefined;
398
+ geo_allowlist?: string[] | undefined;
399
+ geo_denylist?: string[] | undefined;
400
+ user_agent_allow_regex?: string | undefined;
401
+ user_agent_deny_regex?: string | undefined;
402
+ ai_agent_policy?: {
403
+ block_all?: boolean | undefined;
404
+ deny_categories?: string[] | undefined;
405
+ allow_categories?: string[] | undefined;
406
+ } | undefined;
407
+ } | undefined;
408
+ }[] | undefined;
409
+ }>;
410
+ export declare const updateQurlOutputSchema: z.ZodObject<{
411
+ resource_id: z.ZodString;
412
+ qurl_site: z.ZodOptional<z.ZodString>;
413
+ target_url: z.ZodString;
414
+ description: z.ZodOptional<z.ZodString>;
415
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
416
+ expires_at: z.ZodString;
417
+ created_at: z.ZodString;
418
+ status: z.ZodEnum<["active", "revoked"]>;
419
+ custom_domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
420
+ preserve_host: z.ZodOptional<z.ZodBoolean>;
421
+ qurl_count: z.ZodOptional<z.ZodNumber>;
422
+ qurls: z.ZodOptional<z.ZodArray<z.ZodObject<{
423
+ qurl_id: z.ZodString;
424
+ label: z.ZodOptional<z.ZodString>;
425
+ status: z.ZodEnum<["active", "consumed", "expired", "revoked"]>;
426
+ one_time_use: z.ZodBoolean;
427
+ max_sessions: z.ZodNumber;
428
+ session_duration: z.ZodNumber;
429
+ use_count: z.ZodNumber;
430
+ qurl_site: z.ZodOptional<z.ZodString>;
431
+ access_policy: z.ZodOptional<z.ZodObject<{
432
+ ip_allowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
433
+ ip_denylist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
434
+ geo_allowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
435
+ geo_denylist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
436
+ user_agent_allow_regex: z.ZodOptional<z.ZodString>;
437
+ user_agent_deny_regex: z.ZodOptional<z.ZodString>;
438
+ ai_agent_policy: z.ZodOptional<z.ZodObject<{
439
+ block_all: z.ZodOptional<z.ZodBoolean>;
440
+ deny_categories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
441
+ allow_categories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
442
+ }, "strip", z.ZodTypeAny, {
443
+ block_all?: boolean | undefined;
444
+ deny_categories?: string[] | undefined;
445
+ allow_categories?: string[] | undefined;
446
+ }, {
447
+ block_all?: boolean | undefined;
448
+ deny_categories?: string[] | undefined;
449
+ allow_categories?: string[] | undefined;
450
+ }>>;
451
+ }, "strip", z.ZodTypeAny, {
452
+ ip_allowlist?: string[] | undefined;
453
+ ip_denylist?: string[] | undefined;
454
+ geo_allowlist?: string[] | undefined;
455
+ geo_denylist?: string[] | undefined;
456
+ user_agent_allow_regex?: string | undefined;
457
+ user_agent_deny_regex?: string | undefined;
458
+ ai_agent_policy?: {
459
+ block_all?: boolean | undefined;
460
+ deny_categories?: string[] | undefined;
461
+ allow_categories?: string[] | undefined;
462
+ } | undefined;
463
+ }, {
464
+ ip_allowlist?: string[] | undefined;
465
+ ip_denylist?: string[] | undefined;
466
+ geo_allowlist?: string[] | undefined;
467
+ geo_denylist?: string[] | undefined;
468
+ user_agent_allow_regex?: string | undefined;
469
+ user_agent_deny_regex?: string | undefined;
470
+ ai_agent_policy?: {
471
+ block_all?: boolean | undefined;
472
+ deny_categories?: string[] | undefined;
473
+ allow_categories?: string[] | undefined;
474
+ } | undefined;
475
+ }>>;
476
+ created_at: z.ZodString;
477
+ expires_at: z.ZodString;
478
+ }, "strip", z.ZodTypeAny, {
479
+ status: "active" | "consumed" | "expired" | "revoked";
480
+ qurl_id: string;
481
+ one_time_use: boolean;
482
+ max_sessions: number;
483
+ session_duration: number;
484
+ use_count: number;
485
+ created_at: string;
486
+ expires_at: string;
487
+ label?: string | undefined;
488
+ qurl_site?: string | undefined;
489
+ access_policy?: {
490
+ ip_allowlist?: string[] | undefined;
491
+ ip_denylist?: string[] | undefined;
492
+ geo_allowlist?: string[] | undefined;
493
+ geo_denylist?: string[] | undefined;
494
+ user_agent_allow_regex?: string | undefined;
495
+ user_agent_deny_regex?: string | undefined;
496
+ ai_agent_policy?: {
497
+ block_all?: boolean | undefined;
498
+ deny_categories?: string[] | undefined;
499
+ allow_categories?: string[] | undefined;
500
+ } | undefined;
501
+ } | undefined;
502
+ }, {
503
+ status: "active" | "consumed" | "expired" | "revoked";
504
+ qurl_id: string;
505
+ one_time_use: boolean;
506
+ max_sessions: number;
507
+ session_duration: number;
508
+ use_count: number;
509
+ created_at: string;
510
+ expires_at: string;
511
+ label?: string | undefined;
512
+ qurl_site?: string | undefined;
513
+ access_policy?: {
514
+ ip_allowlist?: string[] | undefined;
515
+ ip_denylist?: string[] | undefined;
516
+ geo_allowlist?: string[] | undefined;
517
+ geo_denylist?: string[] | undefined;
518
+ user_agent_allow_regex?: string | undefined;
519
+ user_agent_deny_regex?: string | undefined;
520
+ ai_agent_policy?: {
521
+ block_all?: boolean | undefined;
522
+ deny_categories?: string[] | undefined;
523
+ allow_categories?: string[] | undefined;
524
+ } | undefined;
525
+ } | undefined;
526
+ }>, "many">>;
527
+ }, "strip", z.ZodTypeAny, {
528
+ status: "active" | "revoked";
529
+ created_at: string;
530
+ expires_at: string;
531
+ resource_id: string;
532
+ target_url: string;
533
+ qurl_site?: string | undefined;
534
+ description?: string | undefined;
535
+ tags?: string[] | undefined;
536
+ custom_domain?: string | null | undefined;
537
+ preserve_host?: boolean | undefined;
538
+ qurl_count?: number | undefined;
539
+ qurls?: {
540
+ status: "active" | "consumed" | "expired" | "revoked";
541
+ qurl_id: string;
542
+ one_time_use: boolean;
543
+ max_sessions: number;
544
+ session_duration: number;
545
+ use_count: number;
546
+ created_at: string;
547
+ expires_at: string;
548
+ label?: string | undefined;
549
+ qurl_site?: string | undefined;
550
+ access_policy?: {
551
+ ip_allowlist?: string[] | undefined;
552
+ ip_denylist?: string[] | undefined;
553
+ geo_allowlist?: string[] | undefined;
554
+ geo_denylist?: string[] | undefined;
555
+ user_agent_allow_regex?: string | undefined;
556
+ user_agent_deny_regex?: string | undefined;
557
+ ai_agent_policy?: {
558
+ block_all?: boolean | undefined;
559
+ deny_categories?: string[] | undefined;
560
+ allow_categories?: string[] | undefined;
561
+ } | undefined;
562
+ } | undefined;
563
+ }[] | undefined;
564
+ }, {
565
+ status: "active" | "revoked";
566
+ created_at: string;
567
+ expires_at: string;
568
+ resource_id: string;
569
+ target_url: string;
570
+ qurl_site?: string | undefined;
571
+ description?: string | undefined;
572
+ tags?: string[] | undefined;
573
+ custom_domain?: string | null | undefined;
574
+ preserve_host?: boolean | undefined;
575
+ qurl_count?: number | undefined;
576
+ qurls?: {
577
+ status: "active" | "consumed" | "expired" | "revoked";
578
+ qurl_id: string;
579
+ one_time_use: boolean;
580
+ max_sessions: number;
581
+ session_duration: number;
582
+ use_count: number;
583
+ created_at: string;
584
+ expires_at: string;
585
+ label?: string | undefined;
586
+ qurl_site?: string | undefined;
587
+ access_policy?: {
588
+ ip_allowlist?: string[] | undefined;
589
+ ip_denylist?: string[] | undefined;
590
+ geo_allowlist?: string[] | undefined;
591
+ geo_denylist?: string[] | undefined;
592
+ user_agent_allow_regex?: string | undefined;
593
+ user_agent_deny_regex?: string | undefined;
594
+ ai_agent_policy?: {
595
+ block_all?: boolean | undefined;
596
+ deny_categories?: string[] | undefined;
597
+ allow_categories?: string[] | undefined;
598
+ } | undefined;
599
+ } | undefined;
600
+ }[] | undefined;
601
+ }>;
602
+ export declare const extendQurlOutputSchema: z.ZodObject<{
603
+ resource_id: z.ZodString;
604
+ qurl_site: z.ZodOptional<z.ZodString>;
605
+ target_url: z.ZodString;
606
+ description: z.ZodOptional<z.ZodString>;
607
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
608
+ expires_at: z.ZodString;
609
+ created_at: z.ZodString;
610
+ status: z.ZodEnum<["active", "revoked"]>;
611
+ custom_domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
612
+ preserve_host: z.ZodOptional<z.ZodBoolean>;
613
+ qurl_count: z.ZodOptional<z.ZodNumber>;
614
+ qurls: z.ZodOptional<z.ZodArray<z.ZodObject<{
615
+ qurl_id: z.ZodString;
616
+ label: z.ZodOptional<z.ZodString>;
617
+ status: z.ZodEnum<["active", "consumed", "expired", "revoked"]>;
618
+ one_time_use: z.ZodBoolean;
619
+ max_sessions: z.ZodNumber;
620
+ session_duration: z.ZodNumber;
621
+ use_count: z.ZodNumber;
622
+ qurl_site: z.ZodOptional<z.ZodString>;
623
+ access_policy: z.ZodOptional<z.ZodObject<{
624
+ ip_allowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
625
+ ip_denylist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
626
+ geo_allowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
627
+ geo_denylist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
628
+ user_agent_allow_regex: z.ZodOptional<z.ZodString>;
629
+ user_agent_deny_regex: z.ZodOptional<z.ZodString>;
630
+ ai_agent_policy: z.ZodOptional<z.ZodObject<{
631
+ block_all: z.ZodOptional<z.ZodBoolean>;
632
+ deny_categories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
633
+ allow_categories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
634
+ }, "strip", z.ZodTypeAny, {
635
+ block_all?: boolean | undefined;
636
+ deny_categories?: string[] | undefined;
637
+ allow_categories?: string[] | undefined;
638
+ }, {
639
+ block_all?: boolean | undefined;
640
+ deny_categories?: string[] | undefined;
641
+ allow_categories?: string[] | undefined;
642
+ }>>;
643
+ }, "strip", z.ZodTypeAny, {
644
+ ip_allowlist?: string[] | undefined;
645
+ ip_denylist?: string[] | undefined;
646
+ geo_allowlist?: string[] | undefined;
647
+ geo_denylist?: string[] | undefined;
648
+ user_agent_allow_regex?: string | undefined;
649
+ user_agent_deny_regex?: string | undefined;
650
+ ai_agent_policy?: {
651
+ block_all?: boolean | undefined;
652
+ deny_categories?: string[] | undefined;
653
+ allow_categories?: string[] | undefined;
654
+ } | undefined;
655
+ }, {
656
+ ip_allowlist?: string[] | undefined;
657
+ ip_denylist?: string[] | undefined;
658
+ geo_allowlist?: string[] | undefined;
659
+ geo_denylist?: string[] | undefined;
660
+ user_agent_allow_regex?: string | undefined;
661
+ user_agent_deny_regex?: string | undefined;
662
+ ai_agent_policy?: {
663
+ block_all?: boolean | undefined;
664
+ deny_categories?: string[] | undefined;
665
+ allow_categories?: string[] | undefined;
666
+ } | undefined;
667
+ }>>;
668
+ created_at: z.ZodString;
669
+ expires_at: z.ZodString;
670
+ }, "strip", z.ZodTypeAny, {
671
+ status: "active" | "consumed" | "expired" | "revoked";
672
+ qurl_id: string;
673
+ one_time_use: boolean;
674
+ max_sessions: number;
675
+ session_duration: number;
676
+ use_count: number;
677
+ created_at: string;
678
+ expires_at: string;
679
+ label?: string | undefined;
680
+ qurl_site?: string | undefined;
681
+ access_policy?: {
682
+ ip_allowlist?: string[] | undefined;
683
+ ip_denylist?: string[] | undefined;
684
+ geo_allowlist?: string[] | undefined;
685
+ geo_denylist?: string[] | undefined;
686
+ user_agent_allow_regex?: string | undefined;
687
+ user_agent_deny_regex?: string | undefined;
688
+ ai_agent_policy?: {
689
+ block_all?: boolean | undefined;
690
+ deny_categories?: string[] | undefined;
691
+ allow_categories?: string[] | undefined;
692
+ } | undefined;
693
+ } | undefined;
694
+ }, {
695
+ status: "active" | "consumed" | "expired" | "revoked";
696
+ qurl_id: string;
697
+ one_time_use: boolean;
698
+ max_sessions: number;
699
+ session_duration: number;
700
+ use_count: number;
701
+ created_at: string;
702
+ expires_at: string;
703
+ label?: string | undefined;
704
+ qurl_site?: string | undefined;
705
+ access_policy?: {
706
+ ip_allowlist?: string[] | undefined;
707
+ ip_denylist?: string[] | undefined;
708
+ geo_allowlist?: string[] | undefined;
709
+ geo_denylist?: string[] | undefined;
710
+ user_agent_allow_regex?: string | undefined;
711
+ user_agent_deny_regex?: string | undefined;
712
+ ai_agent_policy?: {
713
+ block_all?: boolean | undefined;
714
+ deny_categories?: string[] | undefined;
715
+ allow_categories?: string[] | undefined;
716
+ } | undefined;
717
+ } | undefined;
718
+ }>, "many">>;
719
+ }, "strip", z.ZodTypeAny, {
720
+ status: "active" | "revoked";
721
+ created_at: string;
722
+ expires_at: string;
723
+ resource_id: string;
724
+ target_url: string;
725
+ qurl_site?: string | undefined;
726
+ description?: string | undefined;
727
+ tags?: string[] | undefined;
728
+ custom_domain?: string | null | undefined;
729
+ preserve_host?: boolean | undefined;
730
+ qurl_count?: number | undefined;
731
+ qurls?: {
732
+ status: "active" | "consumed" | "expired" | "revoked";
733
+ qurl_id: string;
734
+ one_time_use: boolean;
735
+ max_sessions: number;
736
+ session_duration: number;
737
+ use_count: number;
738
+ created_at: string;
739
+ expires_at: string;
740
+ label?: string | undefined;
741
+ qurl_site?: string | undefined;
742
+ access_policy?: {
743
+ ip_allowlist?: string[] | undefined;
744
+ ip_denylist?: string[] | undefined;
745
+ geo_allowlist?: string[] | undefined;
746
+ geo_denylist?: string[] | undefined;
747
+ user_agent_allow_regex?: string | undefined;
748
+ user_agent_deny_regex?: string | undefined;
749
+ ai_agent_policy?: {
750
+ block_all?: boolean | undefined;
751
+ deny_categories?: string[] | undefined;
752
+ allow_categories?: string[] | undefined;
753
+ } | undefined;
754
+ } | undefined;
755
+ }[] | undefined;
756
+ }, {
757
+ status: "active" | "revoked";
758
+ created_at: string;
759
+ expires_at: string;
760
+ resource_id: string;
761
+ target_url: string;
762
+ qurl_site?: string | undefined;
763
+ description?: string | undefined;
764
+ tags?: string[] | undefined;
765
+ custom_domain?: string | null | undefined;
766
+ preserve_host?: boolean | undefined;
767
+ qurl_count?: number | undefined;
768
+ qurls?: {
769
+ status: "active" | "consumed" | "expired" | "revoked";
770
+ qurl_id: string;
771
+ one_time_use: boolean;
772
+ max_sessions: number;
773
+ session_duration: number;
774
+ use_count: number;
775
+ created_at: string;
776
+ expires_at: string;
777
+ label?: string | undefined;
778
+ qurl_site?: string | undefined;
779
+ access_policy?: {
780
+ ip_allowlist?: string[] | undefined;
781
+ ip_denylist?: string[] | undefined;
782
+ geo_allowlist?: string[] | undefined;
783
+ geo_denylist?: string[] | undefined;
784
+ user_agent_allow_regex?: string | undefined;
785
+ user_agent_deny_regex?: string | undefined;
786
+ ai_agent_policy?: {
787
+ block_all?: boolean | undefined;
788
+ deny_categories?: string[] | undefined;
789
+ allow_categories?: string[] | undefined;
790
+ } | undefined;
791
+ } | undefined;
792
+ }[] | undefined;
793
+ }>;
794
+ /**
795
+ * Paginated list response. When `meta.has_more` is true, pass
796
+ * `meta.next_cursor` as the `cursor` argument on the next call.
797
+ */
798
+ export declare const listQurlsOutputSchema: z.ZodObject<{
799
+ data: z.ZodArray<z.ZodObject<{
800
+ resource_id: z.ZodString;
801
+ qurl_site: z.ZodOptional<z.ZodString>;
802
+ target_url: z.ZodString;
803
+ description: z.ZodOptional<z.ZodString>;
804
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
805
+ expires_at: z.ZodString;
806
+ created_at: z.ZodString;
807
+ status: z.ZodEnum<["active", "revoked"]>;
808
+ custom_domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
809
+ preserve_host: z.ZodOptional<z.ZodBoolean>;
810
+ qurl_count: z.ZodOptional<z.ZodNumber>;
811
+ qurls: z.ZodOptional<z.ZodArray<z.ZodObject<{
812
+ qurl_id: z.ZodString;
813
+ label: z.ZodOptional<z.ZodString>;
814
+ status: z.ZodEnum<["active", "consumed", "expired", "revoked"]>;
815
+ one_time_use: z.ZodBoolean;
816
+ max_sessions: z.ZodNumber;
817
+ session_duration: z.ZodNumber;
818
+ use_count: z.ZodNumber;
819
+ qurl_site: z.ZodOptional<z.ZodString>;
820
+ access_policy: z.ZodOptional<z.ZodObject<{
821
+ ip_allowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
822
+ ip_denylist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
823
+ geo_allowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
824
+ geo_denylist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
825
+ user_agent_allow_regex: z.ZodOptional<z.ZodString>;
826
+ user_agent_deny_regex: z.ZodOptional<z.ZodString>;
827
+ ai_agent_policy: z.ZodOptional<z.ZodObject<{
828
+ block_all: z.ZodOptional<z.ZodBoolean>;
829
+ deny_categories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
830
+ allow_categories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
831
+ }, "strip", z.ZodTypeAny, {
832
+ block_all?: boolean | undefined;
833
+ deny_categories?: string[] | undefined;
834
+ allow_categories?: string[] | undefined;
835
+ }, {
836
+ block_all?: boolean | undefined;
837
+ deny_categories?: string[] | undefined;
838
+ allow_categories?: string[] | undefined;
839
+ }>>;
840
+ }, "strip", z.ZodTypeAny, {
841
+ ip_allowlist?: string[] | undefined;
842
+ ip_denylist?: string[] | undefined;
843
+ geo_allowlist?: string[] | undefined;
844
+ geo_denylist?: string[] | undefined;
845
+ user_agent_allow_regex?: string | undefined;
846
+ user_agent_deny_regex?: string | undefined;
847
+ ai_agent_policy?: {
848
+ block_all?: boolean | undefined;
849
+ deny_categories?: string[] | undefined;
850
+ allow_categories?: string[] | undefined;
851
+ } | undefined;
852
+ }, {
853
+ ip_allowlist?: string[] | undefined;
854
+ ip_denylist?: string[] | undefined;
855
+ geo_allowlist?: string[] | undefined;
856
+ geo_denylist?: string[] | undefined;
857
+ user_agent_allow_regex?: string | undefined;
858
+ user_agent_deny_regex?: string | undefined;
859
+ ai_agent_policy?: {
860
+ block_all?: boolean | undefined;
861
+ deny_categories?: string[] | undefined;
862
+ allow_categories?: string[] | undefined;
863
+ } | undefined;
864
+ }>>;
865
+ created_at: z.ZodString;
866
+ expires_at: z.ZodString;
867
+ }, "strip", z.ZodTypeAny, {
868
+ status: "active" | "consumed" | "expired" | "revoked";
869
+ qurl_id: string;
870
+ one_time_use: boolean;
871
+ max_sessions: number;
872
+ session_duration: number;
873
+ use_count: number;
874
+ created_at: string;
875
+ expires_at: string;
876
+ label?: string | undefined;
877
+ qurl_site?: string | undefined;
878
+ access_policy?: {
879
+ ip_allowlist?: string[] | undefined;
880
+ ip_denylist?: string[] | undefined;
881
+ geo_allowlist?: string[] | undefined;
882
+ geo_denylist?: string[] | undefined;
883
+ user_agent_allow_regex?: string | undefined;
884
+ user_agent_deny_regex?: string | undefined;
885
+ ai_agent_policy?: {
886
+ block_all?: boolean | undefined;
887
+ deny_categories?: string[] | undefined;
888
+ allow_categories?: string[] | undefined;
889
+ } | undefined;
890
+ } | undefined;
891
+ }, {
892
+ status: "active" | "consumed" | "expired" | "revoked";
893
+ qurl_id: string;
894
+ one_time_use: boolean;
895
+ max_sessions: number;
896
+ session_duration: number;
897
+ use_count: number;
898
+ created_at: string;
899
+ expires_at: string;
900
+ label?: string | undefined;
901
+ qurl_site?: string | undefined;
902
+ access_policy?: {
903
+ ip_allowlist?: string[] | undefined;
904
+ ip_denylist?: string[] | undefined;
905
+ geo_allowlist?: string[] | undefined;
906
+ geo_denylist?: string[] | undefined;
907
+ user_agent_allow_regex?: string | undefined;
908
+ user_agent_deny_regex?: string | undefined;
909
+ ai_agent_policy?: {
910
+ block_all?: boolean | undefined;
911
+ deny_categories?: string[] | undefined;
912
+ allow_categories?: string[] | undefined;
913
+ } | undefined;
914
+ } | undefined;
915
+ }>, "many">>;
916
+ }, "strip", z.ZodTypeAny, {
917
+ status: "active" | "revoked";
918
+ created_at: string;
919
+ expires_at: string;
920
+ resource_id: string;
921
+ target_url: string;
922
+ qurl_site?: string | undefined;
923
+ description?: string | undefined;
924
+ tags?: string[] | undefined;
925
+ custom_domain?: string | null | undefined;
926
+ preserve_host?: boolean | undefined;
927
+ qurl_count?: number | undefined;
928
+ qurls?: {
929
+ status: "active" | "consumed" | "expired" | "revoked";
930
+ qurl_id: string;
931
+ one_time_use: boolean;
932
+ max_sessions: number;
933
+ session_duration: number;
934
+ use_count: number;
935
+ created_at: string;
936
+ expires_at: string;
937
+ label?: string | undefined;
938
+ qurl_site?: string | undefined;
939
+ access_policy?: {
940
+ ip_allowlist?: string[] | undefined;
941
+ ip_denylist?: string[] | undefined;
942
+ geo_allowlist?: string[] | undefined;
943
+ geo_denylist?: string[] | undefined;
944
+ user_agent_allow_regex?: string | undefined;
945
+ user_agent_deny_regex?: string | undefined;
946
+ ai_agent_policy?: {
947
+ block_all?: boolean | undefined;
948
+ deny_categories?: string[] | undefined;
949
+ allow_categories?: string[] | undefined;
950
+ } | undefined;
951
+ } | undefined;
952
+ }[] | undefined;
953
+ }, {
954
+ status: "active" | "revoked";
955
+ created_at: string;
956
+ expires_at: string;
957
+ resource_id: string;
958
+ target_url: string;
959
+ qurl_site?: string | undefined;
960
+ description?: string | undefined;
961
+ tags?: string[] | undefined;
962
+ custom_domain?: string | null | undefined;
963
+ preserve_host?: boolean | undefined;
964
+ qurl_count?: number | undefined;
965
+ qurls?: {
966
+ status: "active" | "consumed" | "expired" | "revoked";
967
+ qurl_id: string;
968
+ one_time_use: boolean;
969
+ max_sessions: number;
970
+ session_duration: number;
971
+ use_count: number;
972
+ created_at: string;
973
+ expires_at: string;
974
+ label?: string | undefined;
975
+ qurl_site?: string | undefined;
976
+ access_policy?: {
977
+ ip_allowlist?: string[] | undefined;
978
+ ip_denylist?: string[] | undefined;
979
+ geo_allowlist?: string[] | undefined;
980
+ geo_denylist?: string[] | undefined;
981
+ user_agent_allow_regex?: string | undefined;
982
+ user_agent_deny_regex?: string | undefined;
983
+ ai_agent_policy?: {
984
+ block_all?: boolean | undefined;
985
+ deny_categories?: string[] | undefined;
986
+ allow_categories?: string[] | undefined;
987
+ } | undefined;
988
+ } | undefined;
989
+ }[] | undefined;
990
+ }>, "many">;
991
+ meta: z.ZodObject<{
992
+ next_cursor: z.ZodOptional<z.ZodString>;
993
+ has_more: z.ZodBoolean;
994
+ page_size: z.ZodOptional<z.ZodNumber>;
995
+ request_id: z.ZodOptional<z.ZodString>;
996
+ }, "strip", z.ZodTypeAny, {
997
+ has_more: boolean;
998
+ next_cursor?: string | undefined;
999
+ page_size?: number | undefined;
1000
+ request_id?: string | undefined;
1001
+ }, {
1002
+ has_more: boolean;
1003
+ next_cursor?: string | undefined;
1004
+ page_size?: number | undefined;
1005
+ request_id?: string | undefined;
1006
+ }>;
1007
+ }, "strip", z.ZodTypeAny, {
1008
+ meta: {
1009
+ has_more: boolean;
1010
+ next_cursor?: string | undefined;
1011
+ page_size?: number | undefined;
1012
+ request_id?: string | undefined;
1013
+ };
1014
+ data: {
1015
+ status: "active" | "revoked";
1016
+ created_at: string;
1017
+ expires_at: string;
1018
+ resource_id: string;
1019
+ target_url: string;
1020
+ qurl_site?: string | undefined;
1021
+ description?: string | undefined;
1022
+ tags?: string[] | undefined;
1023
+ custom_domain?: string | null | undefined;
1024
+ preserve_host?: boolean | undefined;
1025
+ qurl_count?: number | undefined;
1026
+ qurls?: {
1027
+ status: "active" | "consumed" | "expired" | "revoked";
1028
+ qurl_id: string;
1029
+ one_time_use: boolean;
1030
+ max_sessions: number;
1031
+ session_duration: number;
1032
+ use_count: number;
1033
+ created_at: string;
1034
+ expires_at: string;
1035
+ label?: string | undefined;
1036
+ qurl_site?: string | undefined;
1037
+ access_policy?: {
1038
+ ip_allowlist?: string[] | undefined;
1039
+ ip_denylist?: string[] | undefined;
1040
+ geo_allowlist?: string[] | undefined;
1041
+ geo_denylist?: string[] | undefined;
1042
+ user_agent_allow_regex?: string | undefined;
1043
+ user_agent_deny_regex?: string | undefined;
1044
+ ai_agent_policy?: {
1045
+ block_all?: boolean | undefined;
1046
+ deny_categories?: string[] | undefined;
1047
+ allow_categories?: string[] | undefined;
1048
+ } | undefined;
1049
+ } | undefined;
1050
+ }[] | undefined;
1051
+ }[];
1052
+ }, {
1053
+ meta: {
1054
+ has_more: boolean;
1055
+ next_cursor?: string | undefined;
1056
+ page_size?: number | undefined;
1057
+ request_id?: string | undefined;
1058
+ };
1059
+ data: {
1060
+ status: "active" | "revoked";
1061
+ created_at: string;
1062
+ expires_at: string;
1063
+ resource_id: string;
1064
+ target_url: string;
1065
+ qurl_site?: string | undefined;
1066
+ description?: string | undefined;
1067
+ tags?: string[] | undefined;
1068
+ custom_domain?: string | null | undefined;
1069
+ preserve_host?: boolean | undefined;
1070
+ qurl_count?: number | undefined;
1071
+ qurls?: {
1072
+ status: "active" | "consumed" | "expired" | "revoked";
1073
+ qurl_id: string;
1074
+ one_time_use: boolean;
1075
+ max_sessions: number;
1076
+ session_duration: number;
1077
+ use_count: number;
1078
+ created_at: string;
1079
+ expires_at: string;
1080
+ label?: string | undefined;
1081
+ qurl_site?: string | undefined;
1082
+ access_policy?: {
1083
+ ip_allowlist?: string[] | undefined;
1084
+ ip_denylist?: string[] | undefined;
1085
+ geo_allowlist?: string[] | undefined;
1086
+ geo_denylist?: string[] | undefined;
1087
+ user_agent_allow_regex?: string | undefined;
1088
+ user_agent_deny_regex?: string | undefined;
1089
+ ai_agent_policy?: {
1090
+ block_all?: boolean | undefined;
1091
+ deny_categories?: string[] | undefined;
1092
+ allow_categories?: string[] | undefined;
1093
+ } | undefined;
1094
+ } | undefined;
1095
+ }[] | undefined;
1096
+ }[];
1097
+ }>;
1098
+ /** Resolve response: target_url + the access_grant that opens the firewall. */
1099
+ export declare const resolveQurlOutputSchema: z.ZodObject<{
1100
+ target_url: z.ZodString;
1101
+ resource_id: z.ZodString;
1102
+ access_grant: z.ZodObject<{
1103
+ expires_in: z.ZodNumber;
1104
+ granted_at: z.ZodString;
1105
+ src_ip: z.ZodString;
1106
+ }, "strip", z.ZodTypeAny, {
1107
+ expires_in: number;
1108
+ granted_at: string;
1109
+ src_ip: string;
1110
+ }, {
1111
+ expires_in: number;
1112
+ granted_at: string;
1113
+ src_ip: string;
1114
+ }>;
1115
+ }, "strip", z.ZodTypeAny, {
1116
+ resource_id: string;
1117
+ target_url: string;
1118
+ access_grant: {
1119
+ expires_in: number;
1120
+ granted_at: string;
1121
+ src_ip: string;
1122
+ };
1123
+ }, {
1124
+ resource_id: string;
1125
+ target_url: string;
1126
+ access_grant: {
1127
+ expires_in: number;
1128
+ granted_at: string;
1129
+ src_ip: string;
1130
+ };
1131
+ }>;
1132
+ /** Mint response: a fresh `qurl_link` for an existing resource. One-shot, like create_qurl. */
1133
+ export declare const mintLinkOutputSchema: z.ZodObject<{
1134
+ qurl_link: z.ZodString;
1135
+ expires_at: z.ZodString;
1136
+ }, "strip", z.ZodTypeAny, {
1137
+ expires_at: string;
1138
+ qurl_link: string;
1139
+ }, {
1140
+ expires_at: string;
1141
+ qurl_link: string;
1142
+ }>;
1143
+ /**
1144
+ * Batch creation response. The handler sets `isError: true` when `failed > 0`
1145
+ * so agents can branch on partial failure without parsing JSON. `request_id`
1146
+ * is hoisted from response metadata for support correlation.
1147
+ *
1148
+ * Schema flattens the `{ data, meta }` envelope on `BatchCreateOutput` —
1149
+ * `output-schemas.types.test.ts` asserts the flattened shape against the
1150
+ * client interface so drift on either side fails compilation.
1151
+ */
1152
+ export declare const batchCreateOutputSchema: z.ZodObject<{
1153
+ succeeded: z.ZodNumber;
1154
+ failed: z.ZodNumber;
1155
+ results: z.ZodArray<z.ZodDiscriminatedUnion<"success", [z.ZodObject<{
1156
+ index: z.ZodNumber;
1157
+ success: z.ZodLiteral<true>;
1158
+ resource_id: z.ZodString;
1159
+ qurl_link: z.ZodString;
1160
+ qurl_site: z.ZodString;
1161
+ expires_at: z.ZodString;
1162
+ }, "strip", z.ZodTypeAny, {
1163
+ qurl_site: string;
1164
+ expires_at: string;
1165
+ resource_id: string;
1166
+ qurl_link: string;
1167
+ index: number;
1168
+ success: true;
1169
+ }, {
1170
+ qurl_site: string;
1171
+ expires_at: string;
1172
+ resource_id: string;
1173
+ qurl_link: string;
1174
+ index: number;
1175
+ success: true;
1176
+ }>, z.ZodObject<{
1177
+ index: z.ZodNumber;
1178
+ success: z.ZodLiteral<false>;
1179
+ error: z.ZodObject<{
1180
+ code: z.ZodString;
1181
+ message: z.ZodString;
1182
+ }, "strip", z.ZodTypeAny, {
1183
+ code: string;
1184
+ message: string;
1185
+ }, {
1186
+ code: string;
1187
+ message: string;
1188
+ }>;
1189
+ }, "strip", z.ZodTypeAny, {
1190
+ error: {
1191
+ code: string;
1192
+ message: string;
1193
+ };
1194
+ index: number;
1195
+ success: false;
1196
+ }, {
1197
+ error: {
1198
+ code: string;
1199
+ message: string;
1200
+ };
1201
+ index: number;
1202
+ success: false;
1203
+ }>]>, "many">;
1204
+ request_id: z.ZodOptional<z.ZodString>;
1205
+ }, "strip", z.ZodTypeAny, {
1206
+ succeeded: number;
1207
+ failed: number;
1208
+ results: ({
1209
+ qurl_site: string;
1210
+ expires_at: string;
1211
+ resource_id: string;
1212
+ qurl_link: string;
1213
+ index: number;
1214
+ success: true;
1215
+ } | {
1216
+ error: {
1217
+ code: string;
1218
+ message: string;
1219
+ };
1220
+ index: number;
1221
+ success: false;
1222
+ })[];
1223
+ request_id?: string | undefined;
1224
+ }, {
1225
+ succeeded: number;
1226
+ failed: number;
1227
+ results: ({
1228
+ qurl_site: string;
1229
+ expires_at: string;
1230
+ resource_id: string;
1231
+ qurl_link: string;
1232
+ index: number;
1233
+ success: true;
1234
+ } | {
1235
+ error: {
1236
+ code: string;
1237
+ message: string;
1238
+ };
1239
+ index: number;
1240
+ success: false;
1241
+ })[];
1242
+ request_id?: string | undefined;
1243
+ }>;
1244
+ /** Delete confirmation. The qURL is in a revoked state after this call. */
1245
+ export declare const deleteQurlOutputSchema: z.ZodObject<{
1246
+ resource_id: z.ZodString;
1247
+ revoked: z.ZodLiteral<true>;
1248
+ was_already_revoked: z.ZodBoolean;
1249
+ message: z.ZodString;
1250
+ }, "strip", z.ZodTypeAny, {
1251
+ revoked: true;
1252
+ message: string;
1253
+ resource_id: string;
1254
+ was_already_revoked: boolean;
1255
+ }, {
1256
+ revoked: true;
1257
+ message: string;
1258
+ resource_id: string;
1259
+ was_already_revoked: boolean;
1260
+ }>;
1261
+ //# sourceMappingURL=output-schemas.d.ts.map