@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.
Files changed (74) hide show
  1. package/README.md +5 -1
  2. package/dist/client.d.ts +111 -22
  3. package/dist/client.d.ts.map +1 -1
  4. package/dist/client.js +161 -77
  5. package/dist/client.js.map +1 -1
  6. package/dist/index.js +3 -2
  7. package/dist/index.js.map +1 -1
  8. package/dist/prompts/secure-a-service.d.ts +16 -4
  9. package/dist/prompts/secure-a-service.d.ts.map +1 -1
  10. package/dist/prompts/secure-a-service.js +7 -15
  11. package/dist/prompts/secure-a-service.js.map +1 -1
  12. package/dist/server.d.ts +7 -3
  13. package/dist/server.d.ts.map +1 -1
  14. package/dist/server.js +8 -0
  15. package/dist/server.js.map +1 -1
  16. package/dist/tools/_shared.d.ts +4 -2
  17. package/dist/tools/_shared.d.ts.map +1 -1
  18. package/dist/tools/_shared.js +15 -3
  19. package/dist/tools/_shared.js.map +1 -1
  20. package/dist/tools/batch-create.d.ts +31 -339
  21. package/dist/tools/batch-create.d.ts.map +1 -1
  22. package/dist/tools/batch-create.js +1 -0
  23. package/dist/tools/batch-create.js.map +1 -1
  24. package/dist/tools/create-qurl.d.ts +37 -234
  25. package/dist/tools/create-qurl.d.ts.map +1 -1
  26. package/dist/tools/create-qurl.js +25 -28
  27. package/dist/tools/create-qurl.js.map +1 -1
  28. package/dist/tools/delete-qurl.d.ts +3 -21
  29. package/dist/tools/delete-qurl.d.ts.map +1 -1
  30. package/dist/tools/delete-qurl.js +18 -5
  31. package/dist/tools/delete-qurl.js.map +1 -1
  32. package/dist/tools/extend-qurl.d.ts +34 -188
  33. package/dist/tools/extend-qurl.d.ts.map +1 -1
  34. package/dist/tools/get-qurl.d.ts +34 -184
  35. package/dist/tools/get-qurl.d.ts.map +1 -1
  36. package/dist/tools/get-qurl.js +3 -2
  37. package/dist/tools/get-qurl.js.map +1 -1
  38. package/dist/tools/list-qurl-sessions.d.ts +44 -0
  39. package/dist/tools/list-qurl-sessions.d.ts.map +1 -0
  40. package/dist/tools/list-qurl-sessions.js +33 -0
  41. package/dist/tools/list-qurl-sessions.js.map +1 -0
  42. package/dist/tools/list-qurls.d.ts +36 -318
  43. package/dist/tools/list-qurls.d.ts.map +1 -1
  44. package/dist/tools/list-qurls.js +41 -18
  45. package/dist/tools/list-qurls.js.map +1 -1
  46. package/dist/tools/mint-link.d.ts +34 -301
  47. package/dist/tools/mint-link.d.ts.map +1 -1
  48. package/dist/tools/mint-link.js +12 -9
  49. package/dist/tools/mint-link.js.map +1 -1
  50. package/dist/tools/output-schemas.d.ts +266 -1109
  51. package/dist/tools/output-schemas.d.ts.map +1 -1
  52. package/dist/tools/output-schemas.js +96 -20
  53. package/dist/tools/output-schemas.js.map +1 -1
  54. package/dist/tools/resolve-qurl.d.ts +4 -36
  55. package/dist/tools/resolve-qurl.d.ts.map +1 -1
  56. package/dist/tools/resolve-qurl.js +2 -2
  57. package/dist/tools/resolve-qurl.js.map +1 -1
  58. package/dist/tools/revoke-qurl-token.d.ts +40 -0
  59. package/dist/tools/revoke-qurl-token.d.ts.map +1 -0
  60. package/dist/tools/revoke-qurl-token.js +40 -0
  61. package/dist/tools/revoke-qurl-token.js.map +1 -0
  62. package/dist/tools/terminate-qurl-sessions.d.ts +40 -0
  63. package/dist/tools/terminate-qurl-sessions.d.ts.map +1 -0
  64. package/dist/tools/terminate-qurl-sessions.js +64 -0
  65. package/dist/tools/terminate-qurl-sessions.js.map +1 -0
  66. package/dist/tools/update-qurl-token.d.ts +141 -0
  67. package/dist/tools/update-qurl-token.d.ts.map +1 -0
  68. package/dist/tools/update-qurl-token.js +75 -0
  69. package/dist/tools/update-qurl-token.js.map +1 -0
  70. package/dist/tools/update-qurl.d.ts +41 -263
  71. package/dist/tools/update-qurl.d.ts.map +1 -1
  72. package/dist/tools/update-qurl.js +56 -7
  73. package/dist/tools/update-qurl.js.map +1 -1
  74. package/package.json +4 -3
@@ -1,796 +1,247 @@
1
1
  import { z } from "zod";
2
+ export declare const accessTokenOutputSchema: z.ZodObject<{
3
+ qurl_id: z.ZodString;
4
+ label: z.ZodOptional<z.ZodString>;
5
+ status: z.ZodCatch<z.ZodEnum<{
6
+ active: "active";
7
+ consumed: "consumed";
8
+ expired: "expired";
9
+ revoked: "revoked";
10
+ unknown: "unknown";
11
+ }>>;
12
+ one_time_use: z.ZodOptional<z.ZodBoolean>;
13
+ max_sessions: z.ZodOptional<z.ZodNumber>;
14
+ session_duration: z.ZodOptional<z.ZodNumber>;
15
+ use_count: z.ZodOptional<z.ZodNumber>;
16
+ qurl_site: z.ZodOptional<z.ZodString>;
17
+ access_policy: z.ZodOptional<z.ZodObject<{
18
+ ip_allowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
19
+ ip_denylist: z.ZodOptional<z.ZodArray<z.ZodString>>;
20
+ geo_allowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
21
+ geo_denylist: z.ZodOptional<z.ZodArray<z.ZodString>>;
22
+ user_agent_allow_regex: z.ZodOptional<z.ZodString>;
23
+ user_agent_deny_regex: z.ZodOptional<z.ZodString>;
24
+ ai_agent_policy: z.ZodOptional<z.ZodObject<{
25
+ block_all: z.ZodOptional<z.ZodBoolean>;
26
+ deny_categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
27
+ allow_categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
28
+ }, z.core.$strip>>;
29
+ }, z.core.$strip>>;
30
+ created_at: z.ZodOptional<z.ZodString>;
31
+ expires_at: z.ZodOptional<z.ZodString>;
32
+ }, z.core.$strip>;
2
33
  /** Stable QURL resource shape returned by get/list/update/extend. */
3
34
  export declare const qurlSchema: z.ZodObject<{
4
35
  resource_id: z.ZodString;
5
36
  qurl_site: z.ZodOptional<z.ZodString>;
6
- target_url: z.ZodString;
37
+ target_url: z.ZodOptional<z.ZodString>;
7
38
  description: z.ZodOptional<z.ZodString>;
8
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
39
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
9
40
  expires_at: z.ZodString;
10
41
  created_at: z.ZodString;
11
- status: z.ZodEnum<["active", "revoked"]>;
42
+ status: z.ZodCatch<z.ZodEnum<{
43
+ active: "active";
44
+ expired: "expired";
45
+ revoked: "revoked";
46
+ unknown: "unknown";
47
+ }>>;
12
48
  custom_domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
49
+ slug: z.ZodOptional<z.ZodString>;
13
50
  preserve_host: z.ZodOptional<z.ZodBoolean>;
14
51
  qurl_count: z.ZodOptional<z.ZodNumber>;
15
52
  qurls: z.ZodOptional<z.ZodArray<z.ZodObject<{
16
53
  qurl_id: z.ZodString;
17
54
  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;
55
+ status: z.ZodCatch<z.ZodEnum<{
56
+ active: "active";
57
+ consumed: "consumed";
58
+ expired: "expired";
59
+ revoked: "revoked";
60
+ unknown: "unknown";
61
+ }>>;
62
+ one_time_use: z.ZodOptional<z.ZodBoolean>;
63
+ max_sessions: z.ZodOptional<z.ZodNumber>;
64
+ session_duration: z.ZodOptional<z.ZodNumber>;
65
+ use_count: z.ZodOptional<z.ZodNumber>;
23
66
  qurl_site: z.ZodOptional<z.ZodString>;
24
67
  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">>;
68
+ ip_allowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
69
+ ip_denylist: z.ZodOptional<z.ZodArray<z.ZodString>>;
70
+ geo_allowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
71
+ geo_denylist: z.ZodOptional<z.ZodArray<z.ZodString>>;
29
72
  user_agent_allow_regex: z.ZodOptional<z.ZodString>;
30
73
  user_agent_deny_regex: z.ZodOptional<z.ZodString>;
31
74
  ai_agent_policy: z.ZodOptional<z.ZodObject<{
32
75
  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
- }>;
76
+ deny_categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
77
+ allow_categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
78
+ }, z.core.$strip>>;
79
+ }, z.core.$strip>>;
80
+ created_at: z.ZodOptional<z.ZodString>;
81
+ expires_at: z.ZodOptional<z.ZodString>;
82
+ }, z.core.$strip>>>;
83
+ }, z.core.$strip>;
195
84
  /** Ephemeral create-time payload — note `qurl_link` is one-shot. */
196
85
  export declare const createQurlOutputSchema: z.ZodObject<{
197
86
  qurl_id: z.ZodString;
198
87
  resource_id: z.ZodString;
199
88
  qurl_link: z.ZodString;
89
+ branded_domain: z.ZodOptional<z.ZodString>;
200
90
  qurl_site: z.ZodString;
201
91
  expires_at: z.ZodString;
202
92
  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
- }>;
93
+ type: z.ZodOptional<z.ZodString>;
94
+ }, z.core.$strip>;
218
95
  export declare const getQurlOutputSchema: z.ZodObject<{
219
96
  resource_id: z.ZodString;
220
97
  qurl_site: z.ZodOptional<z.ZodString>;
221
- target_url: z.ZodString;
98
+ target_url: z.ZodOptional<z.ZodString>;
222
99
  description: z.ZodOptional<z.ZodString>;
223
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
100
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
224
101
  expires_at: z.ZodString;
225
102
  created_at: z.ZodString;
226
- status: z.ZodEnum<["active", "revoked"]>;
103
+ status: z.ZodCatch<z.ZodEnum<{
104
+ active: "active";
105
+ expired: "expired";
106
+ revoked: "revoked";
107
+ unknown: "unknown";
108
+ }>>;
227
109
  custom_domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
110
+ slug: z.ZodOptional<z.ZodString>;
228
111
  preserve_host: z.ZodOptional<z.ZodBoolean>;
229
112
  qurl_count: z.ZodOptional<z.ZodNumber>;
230
113
  qurls: z.ZodOptional<z.ZodArray<z.ZodObject<{
231
114
  qurl_id: z.ZodString;
232
115
  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;
116
+ status: z.ZodCatch<z.ZodEnum<{
117
+ active: "active";
118
+ consumed: "consumed";
119
+ expired: "expired";
120
+ revoked: "revoked";
121
+ unknown: "unknown";
122
+ }>>;
123
+ one_time_use: z.ZodOptional<z.ZodBoolean>;
124
+ max_sessions: z.ZodOptional<z.ZodNumber>;
125
+ session_duration: z.ZodOptional<z.ZodNumber>;
126
+ use_count: z.ZodOptional<z.ZodNumber>;
238
127
  qurl_site: z.ZodOptional<z.ZodString>;
239
128
  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">>;
129
+ ip_allowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
130
+ ip_denylist: z.ZodOptional<z.ZodArray<z.ZodString>>;
131
+ geo_allowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
132
+ geo_denylist: z.ZodOptional<z.ZodArray<z.ZodString>>;
244
133
  user_agent_allow_regex: z.ZodOptional<z.ZodString>;
245
134
  user_agent_deny_regex: z.ZodOptional<z.ZodString>;
246
135
  ai_agent_policy: z.ZodOptional<z.ZodObject<{
247
136
  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
- }>;
137
+ deny_categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
138
+ allow_categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
139
+ }, z.core.$strip>>;
140
+ }, z.core.$strip>>;
141
+ created_at: z.ZodOptional<z.ZodString>;
142
+ expires_at: z.ZodOptional<z.ZodString>;
143
+ }, z.core.$strip>>>;
144
+ }, z.core.$strip>;
410
145
  export declare const updateQurlOutputSchema: z.ZodObject<{
411
146
  resource_id: z.ZodString;
412
147
  qurl_site: z.ZodOptional<z.ZodString>;
413
- target_url: z.ZodString;
148
+ target_url: z.ZodOptional<z.ZodString>;
414
149
  description: z.ZodOptional<z.ZodString>;
415
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
150
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
416
151
  expires_at: z.ZodString;
417
152
  created_at: z.ZodString;
418
- status: z.ZodEnum<["active", "revoked"]>;
153
+ status: z.ZodCatch<z.ZodEnum<{
154
+ active: "active";
155
+ expired: "expired";
156
+ revoked: "revoked";
157
+ unknown: "unknown";
158
+ }>>;
419
159
  custom_domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
160
+ slug: z.ZodOptional<z.ZodString>;
420
161
  preserve_host: z.ZodOptional<z.ZodBoolean>;
421
162
  qurl_count: z.ZodOptional<z.ZodNumber>;
422
163
  qurls: z.ZodOptional<z.ZodArray<z.ZodObject<{
423
164
  qurl_id: z.ZodString;
424
165
  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;
166
+ status: z.ZodCatch<z.ZodEnum<{
167
+ active: "active";
168
+ consumed: "consumed";
169
+ expired: "expired";
170
+ revoked: "revoked";
171
+ unknown: "unknown";
172
+ }>>;
173
+ one_time_use: z.ZodOptional<z.ZodBoolean>;
174
+ max_sessions: z.ZodOptional<z.ZodNumber>;
175
+ session_duration: z.ZodOptional<z.ZodNumber>;
176
+ use_count: z.ZodOptional<z.ZodNumber>;
430
177
  qurl_site: z.ZodOptional<z.ZodString>;
431
178
  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">>;
179
+ ip_allowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
180
+ ip_denylist: z.ZodOptional<z.ZodArray<z.ZodString>>;
181
+ geo_allowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
182
+ geo_denylist: z.ZodOptional<z.ZodArray<z.ZodString>>;
436
183
  user_agent_allow_regex: z.ZodOptional<z.ZodString>;
437
184
  user_agent_deny_regex: z.ZodOptional<z.ZodString>;
438
185
  ai_agent_policy: z.ZodOptional<z.ZodObject<{
439
186
  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
- }>;
187
+ deny_categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
188
+ allow_categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
189
+ }, z.core.$strip>>;
190
+ }, z.core.$strip>>;
191
+ created_at: z.ZodOptional<z.ZodString>;
192
+ expires_at: z.ZodOptional<z.ZodString>;
193
+ }, z.core.$strip>>>;
194
+ }, z.core.$strip>;
602
195
  export declare const extendQurlOutputSchema: z.ZodObject<{
603
196
  resource_id: z.ZodString;
604
197
  qurl_site: z.ZodOptional<z.ZodString>;
605
- target_url: z.ZodString;
198
+ target_url: z.ZodOptional<z.ZodString>;
606
199
  description: z.ZodOptional<z.ZodString>;
607
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
200
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
608
201
  expires_at: z.ZodString;
609
202
  created_at: z.ZodString;
610
- status: z.ZodEnum<["active", "revoked"]>;
203
+ status: z.ZodCatch<z.ZodEnum<{
204
+ active: "active";
205
+ expired: "expired";
206
+ revoked: "revoked";
207
+ unknown: "unknown";
208
+ }>>;
611
209
  custom_domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
210
+ slug: z.ZodOptional<z.ZodString>;
612
211
  preserve_host: z.ZodOptional<z.ZodBoolean>;
613
212
  qurl_count: z.ZodOptional<z.ZodNumber>;
614
213
  qurls: z.ZodOptional<z.ZodArray<z.ZodObject<{
615
214
  qurl_id: z.ZodString;
616
215
  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;
216
+ status: z.ZodCatch<z.ZodEnum<{
217
+ active: "active";
218
+ consumed: "consumed";
219
+ expired: "expired";
220
+ revoked: "revoked";
221
+ unknown: "unknown";
222
+ }>>;
223
+ one_time_use: z.ZodOptional<z.ZodBoolean>;
224
+ max_sessions: z.ZodOptional<z.ZodNumber>;
225
+ session_duration: z.ZodOptional<z.ZodNumber>;
226
+ use_count: z.ZodOptional<z.ZodNumber>;
622
227
  qurl_site: z.ZodOptional<z.ZodString>;
623
228
  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">>;
229
+ ip_allowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
230
+ ip_denylist: z.ZodOptional<z.ZodArray<z.ZodString>>;
231
+ geo_allowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
232
+ geo_denylist: z.ZodOptional<z.ZodArray<z.ZodString>>;
628
233
  user_agent_allow_regex: z.ZodOptional<z.ZodString>;
629
234
  user_agent_deny_regex: z.ZodOptional<z.ZodString>;
630
235
  ai_agent_policy: z.ZodOptional<z.ZodObject<{
631
236
  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
- }>;
237
+ deny_categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
238
+ allow_categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
239
+ }, z.core.$strip>>;
240
+ }, z.core.$strip>>;
241
+ created_at: z.ZodOptional<z.ZodString>;
242
+ expires_at: z.ZodOptional<z.ZodString>;
243
+ }, z.core.$strip>>>;
244
+ }, z.core.$strip>;
794
245
  /**
795
246
  * Paginated list response. When `meta.has_more` is true, pass
796
247
  * `meta.next_cursor` as the `cursor` argument on the next call.
@@ -799,303 +250,61 @@ export declare const listQurlsOutputSchema: z.ZodObject<{
799
250
  data: z.ZodArray<z.ZodObject<{
800
251
  resource_id: z.ZodString;
801
252
  qurl_site: z.ZodOptional<z.ZodString>;
802
- target_url: z.ZodString;
253
+ target_url: z.ZodOptional<z.ZodString>;
803
254
  description: z.ZodOptional<z.ZodString>;
804
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
255
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
805
256
  expires_at: z.ZodString;
806
257
  created_at: z.ZodString;
807
- status: z.ZodEnum<["active", "revoked"]>;
258
+ status: z.ZodCatch<z.ZodEnum<{
259
+ active: "active";
260
+ expired: "expired";
261
+ revoked: "revoked";
262
+ unknown: "unknown";
263
+ }>>;
808
264
  custom_domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
265
+ slug: z.ZodOptional<z.ZodString>;
809
266
  preserve_host: z.ZodOptional<z.ZodBoolean>;
810
267
  qurl_count: z.ZodOptional<z.ZodNumber>;
811
268
  qurls: z.ZodOptional<z.ZodArray<z.ZodObject<{
812
269
  qurl_id: z.ZodString;
813
270
  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;
271
+ status: z.ZodCatch<z.ZodEnum<{
272
+ active: "active";
273
+ consumed: "consumed";
274
+ expired: "expired";
275
+ revoked: "revoked";
276
+ unknown: "unknown";
277
+ }>>;
278
+ one_time_use: z.ZodOptional<z.ZodBoolean>;
279
+ max_sessions: z.ZodOptional<z.ZodNumber>;
280
+ session_duration: z.ZodOptional<z.ZodNumber>;
281
+ use_count: z.ZodOptional<z.ZodNumber>;
819
282
  qurl_site: z.ZodOptional<z.ZodString>;
820
283
  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">>;
284
+ ip_allowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
285
+ ip_denylist: z.ZodOptional<z.ZodArray<z.ZodString>>;
286
+ geo_allowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
287
+ geo_denylist: z.ZodOptional<z.ZodArray<z.ZodString>>;
825
288
  user_agent_allow_regex: z.ZodOptional<z.ZodString>;
826
289
  user_agent_deny_regex: z.ZodOptional<z.ZodString>;
827
290
  ai_agent_policy: z.ZodOptional<z.ZodObject<{
828
291
  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">;
292
+ deny_categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
293
+ allow_categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
294
+ }, z.core.$strip>>;
295
+ }, z.core.$strip>>;
296
+ created_at: z.ZodOptional<z.ZodString>;
297
+ expires_at: z.ZodOptional<z.ZodString>;
298
+ }, z.core.$strip>>>;
299
+ }, z.core.$strip>>;
991
300
  meta: z.ZodObject<{
992
301
  next_cursor: z.ZodOptional<z.ZodString>;
993
302
  has_more: z.ZodBoolean;
994
303
  page_size: z.ZodOptional<z.ZodNumber>;
995
304
  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. */
305
+ }, z.core.$strip>;
306
+ }, z.core.$strip>;
307
+ /** Resolve response: target_url + the access_grant that grants network access. */
1099
308
  export declare const resolveQurlOutputSchema: z.ZodObject<{
1100
309
  target_url: z.ZodString;
1101
310
  resource_id: z.ZodString;
@@ -1103,43 +312,72 @@ export declare const resolveQurlOutputSchema: z.ZodObject<{
1103
312
  expires_in: z.ZodNumber;
1104
313
  granted_at: z.ZodString;
1105
314
  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
- }>;
315
+ }, z.core.$strip>;
316
+ }, z.core.$strip>;
1132
317
  /** Mint response: a fresh `qurl_link` for an existing resource. One-shot, like create_qurl. */
1133
318
  export declare const mintLinkOutputSchema: z.ZodObject<{
319
+ qurl_id: z.ZodString;
1134
320
  qurl_link: z.ZodString;
321
+ branded_domain: z.ZodOptional<z.ZodString>;
1135
322
  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
- }>;
323
+ type: z.ZodOptional<z.ZodString>;
324
+ }, z.core.$strip>;
325
+ export declare const updateQurlTokenOutputSchema: z.ZodObject<{
326
+ qurl_id: z.ZodString;
327
+ label: z.ZodOptional<z.ZodString>;
328
+ status: z.ZodCatch<z.ZodEnum<{
329
+ active: "active";
330
+ consumed: "consumed";
331
+ expired: "expired";
332
+ revoked: "revoked";
333
+ unknown: "unknown";
334
+ }>>;
335
+ one_time_use: z.ZodOptional<z.ZodBoolean>;
336
+ max_sessions: z.ZodOptional<z.ZodNumber>;
337
+ session_duration: z.ZodOptional<z.ZodNumber>;
338
+ use_count: z.ZodOptional<z.ZodNumber>;
339
+ qurl_site: z.ZodOptional<z.ZodString>;
340
+ access_policy: z.ZodOptional<z.ZodObject<{
341
+ ip_allowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
342
+ ip_denylist: z.ZodOptional<z.ZodArray<z.ZodString>>;
343
+ geo_allowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
344
+ geo_denylist: z.ZodOptional<z.ZodArray<z.ZodString>>;
345
+ user_agent_allow_regex: z.ZodOptional<z.ZodString>;
346
+ user_agent_deny_regex: z.ZodOptional<z.ZodString>;
347
+ ai_agent_policy: z.ZodOptional<z.ZodObject<{
348
+ block_all: z.ZodOptional<z.ZodBoolean>;
349
+ deny_categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
350
+ allow_categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
351
+ }, z.core.$strip>>;
352
+ }, z.core.$strip>>;
353
+ created_at: z.ZodOptional<z.ZodString>;
354
+ expires_at: z.ZodOptional<z.ZodString>;
355
+ }, z.core.$strip>;
356
+ export declare const revokeQurlTokenOutputSchema: z.ZodObject<{
357
+ resource_id: z.ZodString;
358
+ qurl_id: z.ZodString;
359
+ revoked: z.ZodLiteral<true>;
360
+ message: z.ZodString;
361
+ }, z.core.$strip>;
362
+ export declare const listQurlSessionsOutputSchema: z.ZodObject<{
363
+ data: z.ZodArray<z.ZodObject<{
364
+ session_id: z.ZodString;
365
+ qurl_id: z.ZodOptional<z.ZodString>;
366
+ src_ip: z.ZodOptional<z.ZodString>;
367
+ user_agent: z.ZodOptional<z.ZodString>;
368
+ created_at: z.ZodOptional<z.ZodString>;
369
+ last_seen_at: z.ZodOptional<z.ZodString>;
370
+ }, z.core.$strip>>;
371
+ meta: z.ZodOptional<z.ZodObject<{
372
+ request_id: z.ZodOptional<z.ZodString>;
373
+ }, z.core.$strip>>;
374
+ }, z.core.$strip>;
375
+ export declare const terminateQurlSessionsOutputSchema: z.ZodObject<{
376
+ resource_id: z.ZodString;
377
+ session_id: z.ZodOptional<z.ZodString>;
378
+ terminated: z.ZodNumber;
379
+ message: z.ZodString;
380
+ }, z.core.$strip>;
1143
381
  /**
1144
382
  * Batch creation response. The handler sets `isError: true` when `failed > 0`
1145
383
  * so agents can branch on partial failure without parsing JSON. `request_id`
@@ -1152,110 +390,29 @@ export declare const mintLinkOutputSchema: z.ZodObject<{
1152
390
  export declare const batchCreateOutputSchema: z.ZodObject<{
1153
391
  succeeded: z.ZodNumber;
1154
392
  failed: z.ZodNumber;
1155
- results: z.ZodArray<z.ZodDiscriminatedUnion<"success", [z.ZodObject<{
393
+ results: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1156
394
  index: z.ZodNumber;
1157
395
  success: z.ZodLiteral<true>;
1158
396
  resource_id: z.ZodString;
1159
397
  qurl_link: z.ZodString;
398
+ branded_domain: z.ZodOptional<z.ZodString>;
1160
399
  qurl_site: z.ZodString;
1161
400
  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<{
401
+ }, z.core.$strip>, z.ZodObject<{
1177
402
  index: z.ZodNumber;
1178
403
  success: z.ZodLiteral<false>;
1179
404
  error: z.ZodObject<{
1180
405
  code: z.ZodString;
1181
406
  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">;
407
+ }, z.core.$strip>;
408
+ }, z.core.$strip>], "success">>;
1204
409
  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
- }>;
410
+ }, z.core.$strip>;
1244
411
  /** Delete confirmation. The qURL is in a revoked state after this call. */
1245
412
  export declare const deleteQurlOutputSchema: z.ZodObject<{
1246
413
  resource_id: z.ZodString;
1247
414
  revoked: z.ZodLiteral<true>;
1248
415
  was_already_revoked: z.ZodBoolean;
1249
416
  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
- }>;
417
+ }, z.core.$strip>;
1261
418
  //# sourceMappingURL=output-schemas.d.ts.map