@wix/auto_sdk_dynamic-page-router_pages 1.0.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 (52) hide show
  1. package/build/cjs/index.d.ts +57 -0
  2. package/build/cjs/index.js +517 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +487 -0
  5. package/build/cjs/index.typings.js +472 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +345 -0
  8. package/build/cjs/meta.js +387 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/schemas.d.ts +219 -0
  11. package/build/cjs/schemas.js +493 -0
  12. package/build/cjs/schemas.js.map +1 -0
  13. package/build/es/index.d.mts +57 -0
  14. package/build/es/index.mjs +489 -0
  15. package/build/es/index.mjs.map +1 -0
  16. package/build/es/index.typings.d.mts +487 -0
  17. package/build/es/index.typings.mjs +444 -0
  18. package/build/es/index.typings.mjs.map +1 -0
  19. package/build/es/meta.d.mts +345 -0
  20. package/build/es/meta.mjs +356 -0
  21. package/build/es/meta.mjs.map +1 -0
  22. package/build/es/package.json +3 -0
  23. package/build/es/schemas.d.mts +219 -0
  24. package/build/es/schemas.mjs +447 -0
  25. package/build/es/schemas.mjs.map +1 -0
  26. package/build/internal/cjs/index.d.ts +57 -0
  27. package/build/internal/cjs/index.js +517 -0
  28. package/build/internal/cjs/index.js.map +1 -0
  29. package/build/internal/cjs/index.typings.d.ts +487 -0
  30. package/build/internal/cjs/index.typings.js +472 -0
  31. package/build/internal/cjs/index.typings.js.map +1 -0
  32. package/build/internal/cjs/meta.d.ts +345 -0
  33. package/build/internal/cjs/meta.js +387 -0
  34. package/build/internal/cjs/meta.js.map +1 -0
  35. package/build/internal/cjs/schemas.d.ts +219 -0
  36. package/build/internal/cjs/schemas.js +493 -0
  37. package/build/internal/cjs/schemas.js.map +1 -0
  38. package/build/internal/es/index.d.mts +57 -0
  39. package/build/internal/es/index.mjs +489 -0
  40. package/build/internal/es/index.mjs.map +1 -0
  41. package/build/internal/es/index.typings.d.mts +487 -0
  42. package/build/internal/es/index.typings.mjs +444 -0
  43. package/build/internal/es/index.typings.mjs.map +1 -0
  44. package/build/internal/es/meta.d.mts +345 -0
  45. package/build/internal/es/meta.mjs +356 -0
  46. package/build/internal/es/meta.mjs.map +1 -0
  47. package/build/internal/es/schemas.d.mts +219 -0
  48. package/build/internal/es/schemas.mjs +447 -0
  49. package/build/internal/es/schemas.mjs.map +1 -0
  50. package/meta/package.json +3 -0
  51. package/package.json +61 -0
  52. package/schemas/package.json +3 -0
@@ -0,0 +1,447 @@
1
+ // src/dynamic-page-router-v1-page-pages.schemas.ts
2
+ import * as z from "zod";
3
+ var GetRouterSitemapCountRequest = z.object({
4
+ options: z.object({
5
+ routerPrefix: z.string().describe(
6
+ "Router prefix that identifies the page type or origin. For TPA (Third-Party Application) pages, this contains the TPA page ID."
7
+ ).max(2048).optional(),
8
+ config: z.object({
9
+ patterns: z.record(
10
+ z.string(),
11
+ z.object({
12
+ pageRole: z.string().describe(
13
+ "Page role identifier that links this pattern to a specific page template."
14
+ ).max(200).optional(),
15
+ title: z.string().describe(
16
+ 'Title pattern with field interpolation (e.g., "{title}, {author} - {category}").\nIncreased to 50000 to support complex title templates with many interpolated fields and long text content.'
17
+ ).max(5e4).optional(),
18
+ config: z.object({
19
+ collection: z.string().describe(
20
+ "Name of the Wix Data collection to query for dynamic content."
21
+ ).max(200).optional(),
22
+ filter: z.record(z.string(), z.any()).describe(
23
+ "Filter criteria to apply when querying the collection. Uses MongoDB-style query syntax to limit which items generate routes."
24
+ ).optional().nullable(),
25
+ lowercase: z.boolean().describe(
26
+ "Indicates if URLs in sitemap should be turned to lowercase. Defaults to true if not set."
27
+ ).optional().nullable(),
28
+ pageLinkId: z.string().describe(
29
+ "The field id that gets added to DataCollection and DataItems.\nIndicates that page links is a slug based and items should be retrieved by slug fields present in the pattern."
30
+ ).max(1e3).optional().nullable(),
31
+ sort: z.array(z.record(z.string(), z.any())).max(32).optional(),
32
+ pageSize: z.number().int().describe("Page size for pagination.").optional().nullable(),
33
+ seoV2: z.boolean().describe("SEO v2 flag.").optional().nullable(),
34
+ cursor: z.boolean().describe("Cursor-based pagination flag.").optional().nullable(),
35
+ includes: z.array(z.string()).max(100).optional()
36
+ }).describe(
37
+ "Configuration specifying which collection to query and any filters to apply."
38
+ ).optional(),
39
+ seoMetaTags: z.record(z.string(), z.string()).describe(
40
+ "SEO meta tags to be included in the page head. Keys are meta tag names, values are the content."
41
+ ).optional()
42
+ })
43
+ ).describe(
44
+ "Map of URL patterns to their configurations. The key is the URL pattern (e.g., `/{title}`) and the value contains the pattern configuration."
45
+ ).optional(),
46
+ rules: z.record(
47
+ z.string(),
48
+ z.object({
49
+ pageRole: z.string().describe(
50
+ "Variant page role ID to return when this rule matches."
51
+ ).max(200).optional(),
52
+ filter: z.record(z.string(), z.any()).describe(
53
+ "Wix Data filter evaluated against the fetched item."
54
+ ).optional().nullable(),
55
+ name: z.string().describe("Human-readable rule name (for debugging/logging).").max(200).optional().nullable()
56
+ })
57
+ ).describe("Maps rule ID \u2192 PageRule (filter + variant page role).").optional(),
58
+ roleVariations: z.record(z.string(), z.array(z.any())).describe(
59
+ "Maps original page role ID \u2192 ordered rule IDs. First matching rule wins."
60
+ ).optional()
61
+ }).describe("Config containing request patterns, e.g. '/{title}'").optional(),
62
+ pageRoles: z.record(
63
+ z.string(),
64
+ z.object({
65
+ _id: z.string().describe(
66
+ "Page role ID that uniquely identifies the page template."
67
+ ).max(200).optional(),
68
+ title: z.string().describe("Human-readable title for the page role.").max(200).optional()
69
+ })
70
+ ).describe("Map of page roles containing page ID and title of each role").optional(),
71
+ pageName: z.string().describe(
72
+ "Optional page name to filter patterns by matching page role title"
73
+ ).max(200).optional(),
74
+ viewMode: z.string().describe("Query param mapped to body, editor/site").max(200).optional(),
75
+ gridAppId: z.string().describe("Query param mapped to body, unique for Wix code app").regex(
76
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
77
+ "Must be a valid GUID"
78
+ ).optional().nullable()
79
+ }).optional()
80
+ });
81
+ var GetRouterSitemapCountResponse = z.object({
82
+ result: z.array(
83
+ z.object({
84
+ pageName: z.string().describe("Name of the dynamic page template.").max(200).optional(),
85
+ count: z.number().int().describe(
86
+ "Number of inner routes for the given page. Capped at 1,000 for performance."
87
+ ).optional()
88
+ })
89
+ ).optional()
90
+ });
91
+ var GetRouterSitemapRequest = z.object({
92
+ options: z.object({
93
+ fullUrl: z.string().describe("Full URL to the inner route").max(2048).optional(),
94
+ routerPrefix: z.string().describe("Router prefix (TPA page ID for TPA pages)").max(2048).optional(),
95
+ pageName: z.string().describe(
96
+ "Optional page name to filter patterns by matching page role title"
97
+ ).max(2048).optional(),
98
+ config: z.object({
99
+ patterns: z.record(
100
+ z.string(),
101
+ z.object({
102
+ pageRole: z.string().describe(
103
+ "Page role identifier that links this pattern to a specific page template."
104
+ ).max(200).optional(),
105
+ title: z.string().describe(
106
+ 'Title pattern with field interpolation (e.g., "{title}, {author} - {category}").\nIncreased to 50000 to support complex title templates with many interpolated fields and long text content.'
107
+ ).max(5e4).optional(),
108
+ config: z.object({
109
+ collection: z.string().describe(
110
+ "Name of the Wix Data collection to query for dynamic content."
111
+ ).max(200).optional(),
112
+ filter: z.record(z.string(), z.any()).describe(
113
+ "Filter criteria to apply when querying the collection. Uses MongoDB-style query syntax to limit which items generate routes."
114
+ ).optional().nullable(),
115
+ lowercase: z.boolean().describe(
116
+ "Indicates if URLs in sitemap should be turned to lowercase. Defaults to true if not set."
117
+ ).optional().nullable(),
118
+ pageLinkId: z.string().describe(
119
+ "The field id that gets added to DataCollection and DataItems.\nIndicates that page links is a slug based and items should be retrieved by slug fields present in the pattern."
120
+ ).max(1e3).optional().nullable(),
121
+ sort: z.array(z.record(z.string(), z.any())).max(32).optional(),
122
+ pageSize: z.number().int().describe("Page size for pagination.").optional().nullable(),
123
+ seoV2: z.boolean().describe("SEO v2 flag.").optional().nullable(),
124
+ cursor: z.boolean().describe("Cursor-based pagination flag.").optional().nullable(),
125
+ includes: z.array(z.string()).max(100).optional()
126
+ }).describe(
127
+ "Configuration specifying which collection to query and any filters to apply."
128
+ ).optional(),
129
+ seoMetaTags: z.record(z.string(), z.string()).describe(
130
+ "SEO meta tags to be included in the page head. Keys are meta tag names, values are the content."
131
+ ).optional()
132
+ })
133
+ ).describe(
134
+ "Map of URL patterns to their configurations. The key is the URL pattern (e.g., `/{title}`) and the value contains the pattern configuration."
135
+ ).optional(),
136
+ rules: z.record(
137
+ z.string(),
138
+ z.object({
139
+ pageRole: z.string().describe(
140
+ "Variant page role ID to return when this rule matches."
141
+ ).max(200).optional(),
142
+ filter: z.record(z.string(), z.any()).describe(
143
+ "Wix Data filter evaluated against the fetched item."
144
+ ).optional().nullable(),
145
+ name: z.string().describe("Human-readable rule name (for debugging/logging).").max(200).optional().nullable()
146
+ })
147
+ ).describe("Maps rule ID \u2192 PageRule (filter + variant page role).").optional(),
148
+ roleVariations: z.record(z.string(), z.array(z.any())).describe(
149
+ "Maps original page role ID \u2192 ordered rule IDs. First matching rule wins."
150
+ ).optional()
151
+ }).describe("Config containing request patterns, e.g. '/{title}'").optional(),
152
+ pageRoles: z.record(
153
+ z.string(),
154
+ z.object({
155
+ _id: z.string().describe(
156
+ "Page role ID that uniquely identifies the page template."
157
+ ).max(200).optional(),
158
+ title: z.string().describe("Human-readable title for the page role.").max(200).optional()
159
+ })
160
+ ).describe("Map of page roles containing page ID and title of each role").optional(),
161
+ viewMode: z.string().describe("Query param mapped to body, editor/site").max(200).optional(),
162
+ gridAppId: z.string().describe("Query param mapped to body, unique for Wix code app").regex(
163
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
164
+ "Must be a valid GUID"
165
+ ).optional().nullable()
166
+ }).optional()
167
+ });
168
+ var GetRouterSitemapResponse = z.object({
169
+ result: z.array(
170
+ z.object({
171
+ url: z.string().describe("URL to inner route relative to current domain").max(500).optional(),
172
+ pageName: z.string().describe("Dynamic page name").max(200).optional(),
173
+ title: z.string().describe(
174
+ "Title of the specific route, typically derived from collection data."
175
+ ).max(200).optional(),
176
+ changeFrequency: z.string().describe(
177
+ "Change frequency for sitemap SEO purposes (e.g., `daily`, `weekly`, `monthly`)."
178
+ ).max(100).optional(),
179
+ lastModified: z.string().describe("Last modified timestamp in ISO 8601 format.").max(100).optional().nullable(),
180
+ priority: z.number().describe("Priority for sitemap SEO purposes (0.0 to 1.0).").optional()
181
+ })
182
+ ).optional()
183
+ });
184
+ var GetRouterPagesRequest = z.object({
185
+ options: z.object({
186
+ fullUrl: z.string().describe(
187
+ "Complete URL to the inner route. Used for context-aware processing and as a base for relative URL resolution.\nIncreased to 8192 to accommodate URLs with extensive query parameters (tracking, analytics, UTM params, etc.)"
188
+ ).max(8192).optional(),
189
+ routerPrefix: z.string().describe("Router prefix (TPA page ID for TPA pages)").max(2048).optional(),
190
+ routerSuffix: z.string().describe(
191
+ "Inner route suffix containing the dynamic part of the URL pattern. For example, `/{title}` or `/category/{category}/post/{slug}`.\nIncreased to 8192 to match full_url capacity for complex dynamic routes"
192
+ ).max(8192).optional(),
193
+ requestInfo: z.object({
194
+ formFactor: z.string().describe(
195
+ "Device form factor, typically `desktop` or `mobile`. Used to serve device-appropriate page layouts."
196
+ ).max(200).optional()
197
+ }).describe(
198
+ "Additional request information including form factor (desktop/mobile) for device-appropriate routing."
199
+ ).optional(),
200
+ config: z.object({
201
+ patterns: z.record(
202
+ z.string(),
203
+ z.object({
204
+ pageRole: z.string().describe(
205
+ "Page role identifier that links this pattern to a specific page template."
206
+ ).max(200).optional(),
207
+ title: z.string().describe(
208
+ 'Title pattern with field interpolation (e.g., "{title}, {author} - {category}").\nIncreased to 50000 to support complex title templates with many interpolated fields and long text content.'
209
+ ).max(5e4).optional(),
210
+ config: z.object({
211
+ collection: z.string().describe(
212
+ "Name of the Wix Data collection to query for dynamic content."
213
+ ).max(200).optional(),
214
+ filter: z.record(z.string(), z.any()).describe(
215
+ "Filter criteria to apply when querying the collection. Uses MongoDB-style query syntax to limit which items generate routes."
216
+ ).optional().nullable(),
217
+ lowercase: z.boolean().describe(
218
+ "Indicates if URLs in sitemap should be turned to lowercase. Defaults to true if not set."
219
+ ).optional().nullable(),
220
+ pageLinkId: z.string().describe(
221
+ "The field id that gets added to DataCollection and DataItems.\nIndicates that page links is a slug based and items should be retrieved by slug fields present in the pattern."
222
+ ).max(1e3).optional().nullable(),
223
+ sort: z.array(z.record(z.string(), z.any())).max(32).optional(),
224
+ pageSize: z.number().int().describe("Page size for pagination.").optional().nullable(),
225
+ seoV2: z.boolean().describe("SEO v2 flag.").optional().nullable(),
226
+ cursor: z.boolean().describe("Cursor-based pagination flag.").optional().nullable(),
227
+ includes: z.array(z.string()).max(100).optional()
228
+ }).describe(
229
+ "Configuration specifying which collection to query and any filters to apply."
230
+ ).optional(),
231
+ seoMetaTags: z.record(z.string(), z.string()).describe(
232
+ "SEO meta tags to be included in the page head. Keys are meta tag names, values are the content."
233
+ ).optional()
234
+ })
235
+ ).describe(
236
+ "Map of URL patterns to their configurations. The key is the URL pattern (e.g., `/{title}`) and the value contains the pattern configuration."
237
+ ).optional(),
238
+ rules: z.record(
239
+ z.string(),
240
+ z.object({
241
+ pageRole: z.string().describe(
242
+ "Variant page role ID to return when this rule matches."
243
+ ).max(200).optional(),
244
+ filter: z.record(z.string(), z.any()).describe(
245
+ "Wix Data filter evaluated against the fetched item."
246
+ ).optional().nullable(),
247
+ name: z.string().describe("Human-readable rule name (for debugging/logging).").max(200).optional().nullable()
248
+ })
249
+ ).describe("Maps rule ID \u2192 PageRule (filter + variant page role).").optional(),
250
+ roleVariations: z.record(z.string(), z.array(z.any())).describe(
251
+ "Maps original page role ID \u2192 ordered rule IDs. First matching rule wins."
252
+ ).optional()
253
+ }).describe("Config containing request patterns, e.g. '/{title}'").optional(),
254
+ pageRoles: z.record(
255
+ z.string(),
256
+ z.object({
257
+ _id: z.string().describe(
258
+ "Page role ID that uniquely identifies the page template."
259
+ ).max(200).optional(),
260
+ title: z.string().describe("Human-readable title for the page role.").max(200).optional()
261
+ })
262
+ ).describe("Map of page roles containing page ID and title of each role").optional(),
263
+ viewMode: z.string().describe("Query param mapped to body, editor/site").max(200).optional(),
264
+ gridAppId: z.string().describe("Query param mapped to body, unique for Wix code app").regex(
265
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
266
+ "Must be a valid GUID"
267
+ ).optional().nullable()
268
+ }).optional()
269
+ });
270
+ var GetRouterPagesResponse = z.object({
271
+ result: z.object({
272
+ status: z.number().int().describe("HTTP status code of the page (200, 302, 404)").optional(),
273
+ page: z.string().describe(
274
+ "Name of the dynamic page template that should be used for rendering."
275
+ ).max(200).optional(),
276
+ data: z.record(z.string(), z.any()).describe(
277
+ "Application router data available only to internal Wix apps. Contains system-level and administrative information."
278
+ ).optional().nullable(),
279
+ head: z.object({
280
+ title: z.string().describe("Page title for SEO and browser display.").max(200).optional(),
281
+ metaTags: z.record(z.string(), z.string()).describe(
282
+ "Meta tags for SEO optimization. Keys are meta tag names, values are the content."
283
+ ).optional(),
284
+ description: z.string().describe(
285
+ "Page description for SEO. Extracted from seoMetaTags if present."
286
+ ).max(5e3).optional(),
287
+ keywords: z.string().describe(
288
+ "Keywords for SEO. Extracted from seoMetaTags if present."
289
+ ).max(5e3).optional(),
290
+ noIndex: z.string().describe(
291
+ "NoIndex directive for search engines. Extracted from seoMetaTags if present."
292
+ ).max(500).optional()
293
+ }).describe("SEO and metadata information for the page head section.").optional(),
294
+ message: z.string().describe("Error message when status indicates an error condition.").max(500).optional(),
295
+ redirectUrl: z.string().describe("Target URL for redirects when status is 302.").max(2048).optional()
296
+ }).describe("Page resolution result containing status, data, and metadata.").optional()
297
+ });
298
+ var GetRouterPagesCachedRequest = z.object({
299
+ options: z.object({
300
+ urlParams: z.object({
301
+ gridAppId: z.string().describe("Unique for Wix code app").regex(
302
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
303
+ "Must be a valid GUID"
304
+ ).optional().nullable(),
305
+ viewMode: z.string().describe("Editor/site").max(200).optional()
306
+ }).describe("URL parameters from the viewer's query string.").optional(),
307
+ body: z.object({
308
+ fullUrl: z.string().describe(
309
+ "Complete URL to the inner route. Used for context-aware processing and as a base for relative URL resolution.\nIncreased to 8192 to accommodate URLs with extensive query parameters (tracking, analytics, UTM params, etc.)"
310
+ ).max(8192).optional(),
311
+ routerPrefix: z.string().describe("Router prefix (TPA page ID for TPA pages)").max(2048).optional(),
312
+ routerSuffix: z.string().describe(
313
+ "Inner route suffix containing the dynamic part of the URL pattern. For example, `/{title}` or `/category/{category}/post/{slug}`.\nIncreased to 8192 to match full_url capacity for complex dynamic routes"
314
+ ).max(8192).optional(),
315
+ requestInfo: z.object({
316
+ formFactor: z.string().describe(
317
+ "Device form factor, typically `desktop` or `mobile`. Used to serve device-appropriate page layouts."
318
+ ).max(200).optional()
319
+ }).describe(
320
+ "Additional request information including form factor (desktop/mobile) for device-appropriate routing."
321
+ ).optional(),
322
+ config: z.object({
323
+ patterns: z.record(
324
+ z.string(),
325
+ z.object({
326
+ pageRole: z.string().describe(
327
+ "Page role identifier that links this pattern to a specific page template."
328
+ ).max(200).optional(),
329
+ title: z.string().describe(
330
+ 'Title pattern with field interpolation (e.g., "{title}, {author} - {category}").\nIncreased to 50000 to support complex title templates with many interpolated fields and long text content.'
331
+ ).max(5e4).optional(),
332
+ config: z.object({
333
+ collection: z.string().describe(
334
+ "Name of the Wix Data collection to query for dynamic content."
335
+ ).max(200).optional(),
336
+ filter: z.record(z.string(), z.any()).describe(
337
+ "Filter criteria to apply when querying the collection. Uses MongoDB-style query syntax to limit which items generate routes."
338
+ ).optional().nullable(),
339
+ lowercase: z.boolean().describe(
340
+ "Indicates if URLs in sitemap should be turned to lowercase. Defaults to true if not set."
341
+ ).optional().nullable(),
342
+ pageLinkId: z.string().describe(
343
+ "The field id that gets added to DataCollection and DataItems.\nIndicates that page links is a slug based and items should be retrieved by slug fields present in the pattern."
344
+ ).max(1e3).optional().nullable(),
345
+ sort: z.array(z.record(z.string(), z.any())).max(32).optional(),
346
+ pageSize: z.number().int().describe("Page size for pagination.").optional().nullable(),
347
+ seoV2: z.boolean().describe("SEO v2 flag.").optional().nullable(),
348
+ cursor: z.boolean().describe("Cursor-based pagination flag.").optional().nullable(),
349
+ includes: z.array(z.string()).max(100).optional()
350
+ }).describe(
351
+ "Configuration specifying which collection to query and any filters to apply."
352
+ ).optional(),
353
+ seoMetaTags: z.record(z.string(), z.string()).describe(
354
+ "SEO meta tags to be included in the page head. Keys are meta tag names, values are the content."
355
+ ).optional()
356
+ })
357
+ ).describe(
358
+ "Map of URL patterns to their configurations. The key is the URL pattern (e.g., `/{title}`) and the value contains the pattern configuration."
359
+ ).optional(),
360
+ rules: z.record(
361
+ z.string(),
362
+ z.object({
363
+ pageRole: z.string().describe(
364
+ "Variant page role ID to return when this rule matches."
365
+ ).max(200).optional(),
366
+ filter: z.record(z.string(), z.any()).describe(
367
+ "Wix Data filter evaluated against the fetched item."
368
+ ).optional().nullable(),
369
+ name: z.string().describe(
370
+ "Human-readable rule name (for debugging/logging)."
371
+ ).max(200).optional().nullable()
372
+ })
373
+ ).describe(
374
+ "Maps rule ID \u2192 PageRule (filter + variant page role)."
375
+ ).optional(),
376
+ roleVariations: z.record(z.string(), z.array(z.any())).describe(
377
+ "Maps original page role ID \u2192 ordered rule IDs. First matching rule wins."
378
+ ).optional()
379
+ }).describe("Config containing request patterns, e.g. '/{title}'").optional(),
380
+ pageRoles: z.record(
381
+ z.string(),
382
+ z.object({
383
+ _id: z.string().describe(
384
+ "Page role ID that uniquely identifies the page template."
385
+ ).max(200).optional(),
386
+ title: z.string().describe("Human-readable title for the page role.").max(200).optional()
387
+ })
388
+ ).describe(
389
+ "Map of page roles containing page ID and title of each role"
390
+ ).optional(),
391
+ viewMode: z.string().describe("Query param mapped to body, editor/site").max(200).optional(),
392
+ gridAppId: z.string().describe("Query param mapped to body, unique for Wix code app").regex(
393
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
394
+ "Must be a valid GUID"
395
+ ).optional().nullable()
396
+ }).describe("Request body from the viewer's envelope.").optional()
397
+ }).optional()
398
+ });
399
+ var GetRouterPagesCachedResponse = z.object({
400
+ result: z.object({
401
+ status: z.number().int().describe("HTTP status code of the page (200, 302, 404)").optional(),
402
+ page: z.string().describe(
403
+ "Name of the dynamic page template that should be used for rendering."
404
+ ).max(200).optional(),
405
+ data: z.record(z.string(), z.any()).describe(
406
+ "Application router data available only to internal Wix apps. Contains system-level and administrative information."
407
+ ).optional().nullable(),
408
+ head: z.object({
409
+ title: z.string().describe("Page title for SEO and browser display.").max(200).optional(),
410
+ metaTags: z.record(z.string(), z.string()).describe(
411
+ "Meta tags for SEO optimization. Keys are meta tag names, values are the content."
412
+ ).optional(),
413
+ description: z.string().describe(
414
+ "Page description for SEO. Extracted from seoMetaTags if present."
415
+ ).max(5e3).optional(),
416
+ keywords: z.string().describe(
417
+ "Keywords for SEO. Extracted from seoMetaTags if present."
418
+ ).max(5e3).optional(),
419
+ noIndex: z.string().describe(
420
+ "NoIndex directive for search engines. Extracted from seoMetaTags if present."
421
+ ).max(500).optional()
422
+ }).describe("SEO and metadata information for the page head section.").optional(),
423
+ message: z.string().describe("Error message when status indicates an error condition.").max(500).optional(),
424
+ redirectUrl: z.string().describe("Target URL for redirects when status is 302.").max(2048).optional()
425
+ }).describe("Page resolution result containing status, data, and metadata.").optional()
426
+ });
427
+ var GetDraftPreviewTokenRequest = z.object({
428
+ options: z.object({
429
+ collectionId: z.string().describe("Wix Data collection ID to get a draft preview key for.").max(256).optional()
430
+ }).optional()
431
+ });
432
+ var GetDraftPreviewTokenResponse = z.object({
433
+ token: z.string().describe("Draft preview token.").max(1e4).optional()
434
+ });
435
+ export {
436
+ GetDraftPreviewTokenRequest,
437
+ GetDraftPreviewTokenResponse,
438
+ GetRouterPagesCachedRequest,
439
+ GetRouterPagesCachedResponse,
440
+ GetRouterPagesRequest,
441
+ GetRouterPagesResponse,
442
+ GetRouterSitemapCountRequest,
443
+ GetRouterSitemapCountResponse,
444
+ GetRouterSitemapRequest,
445
+ GetRouterSitemapResponse
446
+ };
447
+ //# sourceMappingURL=schemas.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/dynamic-page-router-v1-page-pages.schemas.ts"],"sourcesContent":["import * as z from 'zod';\n\nexport const GetRouterSitemapCountRequest = z.object({\n options: z\n .object({\n routerPrefix: z\n .string()\n .describe(\n 'Router prefix that identifies the page type or origin. For TPA (Third-Party Application) pages, this contains the TPA page ID.'\n )\n .max(2048)\n .optional(),\n config: z\n .object({\n patterns: z\n .record(\n z.string(),\n z.object({\n pageRole: z\n .string()\n .describe(\n 'Page role identifier that links this pattern to a specific page template.'\n )\n .max(200)\n .optional(),\n title: z\n .string()\n .describe(\n 'Title pattern with field interpolation (e.g., \"{title}, {author} - {category}\").\\nIncreased to 50000 to support complex title templates with many interpolated fields and long text content.'\n )\n .max(50000)\n .optional(),\n config: z\n .object({\n collection: z\n .string()\n .describe(\n 'Name of the Wix Data collection to query for dynamic content.'\n )\n .max(200)\n .optional(),\n filter: z\n .record(z.string(), z.any())\n .describe(\n 'Filter criteria to apply when querying the collection. Uses MongoDB-style query syntax to limit which items generate routes.'\n )\n .optional()\n .nullable(),\n lowercase: z\n .boolean()\n .describe(\n 'Indicates if URLs in sitemap should be turned to lowercase. Defaults to true if not set.'\n )\n .optional()\n .nullable(),\n pageLinkId: z\n .string()\n .describe(\n 'The field id that gets added to DataCollection and DataItems.\\nIndicates that page links is a slug based and items should be retrieved by slug fields present in the pattern.'\n )\n .max(1000)\n .optional()\n .nullable(),\n sort: z\n .array(z.record(z.string(), z.any()))\n .max(32)\n .optional(),\n pageSize: z\n .number()\n .int()\n .describe('Page size for pagination.')\n .optional()\n .nullable(),\n seoV2: z\n .boolean()\n .describe('SEO v2 flag.')\n .optional()\n .nullable(),\n cursor: z\n .boolean()\n .describe('Cursor-based pagination flag.')\n .optional()\n .nullable(),\n includes: z.array(z.string()).max(100).optional(),\n })\n .describe(\n 'Configuration specifying which collection to query and any filters to apply.'\n )\n .optional(),\n seoMetaTags: z\n .record(z.string(), z.string())\n .describe(\n 'SEO meta tags to be included in the page head. Keys are meta tag names, values are the content.'\n )\n .optional(),\n })\n )\n .describe(\n 'Map of URL patterns to their configurations. The key is the URL pattern (e.g., `/{title}`) and the value contains the pattern configuration.'\n )\n .optional(),\n rules: z\n .record(\n z.string(),\n z.object({\n pageRole: z\n .string()\n .describe(\n 'Variant page role ID to return when this rule matches.'\n )\n .max(200)\n .optional(),\n filter: z\n .record(z.string(), z.any())\n .describe(\n 'Wix Data filter evaluated against the fetched item.'\n )\n .optional()\n .nullable(),\n name: z\n .string()\n .describe('Human-readable rule name (for debugging/logging).')\n .max(200)\n .optional()\n .nullable(),\n })\n )\n .describe('Maps rule ID → PageRule (filter + variant page role).')\n .optional(),\n roleVariations: z\n .record(z.string(), z.array(z.any()))\n .describe(\n 'Maps original page role ID → ordered rule IDs. First matching rule wins.'\n )\n .optional(),\n })\n .describe(\"Config containing request patterns, e.g. '/{title}'\")\n .optional(),\n pageRoles: z\n .record(\n z.string(),\n z.object({\n _id: z\n .string()\n .describe(\n 'Page role ID that uniquely identifies the page template.'\n )\n .max(200)\n .optional(),\n title: z\n .string()\n .describe('Human-readable title for the page role.')\n .max(200)\n .optional(),\n })\n )\n .describe('Map of page roles containing page ID and title of each role')\n .optional(),\n pageName: z\n .string()\n .describe(\n 'Optional page name to filter patterns by matching page role title'\n )\n .max(200)\n .optional(),\n viewMode: z\n .string()\n .describe('Query param mapped to body, editor/site')\n .max(200)\n .optional(),\n gridAppId: z\n .string()\n .describe('Query param mapped to body, unique for Wix code app')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n })\n .optional(),\n});\nexport const GetRouterSitemapCountResponse = z.object({\n result: z\n .array(\n z.object({\n pageName: z\n .string()\n .describe('Name of the dynamic page template.')\n .max(200)\n .optional(),\n count: z\n .number()\n .int()\n .describe(\n 'Number of inner routes for the given page. Capped at 1,000 for performance.'\n )\n .optional(),\n })\n )\n .optional(),\n});\nexport const GetRouterSitemapRequest = z.object({\n options: z\n .object({\n fullUrl: z\n .string()\n .describe('Full URL to the inner route')\n .max(2048)\n .optional(),\n routerPrefix: z\n .string()\n .describe('Router prefix (TPA page ID for TPA pages)')\n .max(2048)\n .optional(),\n pageName: z\n .string()\n .describe(\n 'Optional page name to filter patterns by matching page role title'\n )\n .max(2048)\n .optional(),\n config: z\n .object({\n patterns: z\n .record(\n z.string(),\n z.object({\n pageRole: z\n .string()\n .describe(\n 'Page role identifier that links this pattern to a specific page template.'\n )\n .max(200)\n .optional(),\n title: z\n .string()\n .describe(\n 'Title pattern with field interpolation (e.g., \"{title}, {author} - {category}\").\\nIncreased to 50000 to support complex title templates with many interpolated fields and long text content.'\n )\n .max(50000)\n .optional(),\n config: z\n .object({\n collection: z\n .string()\n .describe(\n 'Name of the Wix Data collection to query for dynamic content.'\n )\n .max(200)\n .optional(),\n filter: z\n .record(z.string(), z.any())\n .describe(\n 'Filter criteria to apply when querying the collection. Uses MongoDB-style query syntax to limit which items generate routes.'\n )\n .optional()\n .nullable(),\n lowercase: z\n .boolean()\n .describe(\n 'Indicates if URLs in sitemap should be turned to lowercase. Defaults to true if not set.'\n )\n .optional()\n .nullable(),\n pageLinkId: z\n .string()\n .describe(\n 'The field id that gets added to DataCollection and DataItems.\\nIndicates that page links is a slug based and items should be retrieved by slug fields present in the pattern.'\n )\n .max(1000)\n .optional()\n .nullable(),\n sort: z\n .array(z.record(z.string(), z.any()))\n .max(32)\n .optional(),\n pageSize: z\n .number()\n .int()\n .describe('Page size for pagination.')\n .optional()\n .nullable(),\n seoV2: z\n .boolean()\n .describe('SEO v2 flag.')\n .optional()\n .nullable(),\n cursor: z\n .boolean()\n .describe('Cursor-based pagination flag.')\n .optional()\n .nullable(),\n includes: z.array(z.string()).max(100).optional(),\n })\n .describe(\n 'Configuration specifying which collection to query and any filters to apply.'\n )\n .optional(),\n seoMetaTags: z\n .record(z.string(), z.string())\n .describe(\n 'SEO meta tags to be included in the page head. Keys are meta tag names, values are the content.'\n )\n .optional(),\n })\n )\n .describe(\n 'Map of URL patterns to their configurations. The key is the URL pattern (e.g., `/{title}`) and the value contains the pattern configuration.'\n )\n .optional(),\n rules: z\n .record(\n z.string(),\n z.object({\n pageRole: z\n .string()\n .describe(\n 'Variant page role ID to return when this rule matches.'\n )\n .max(200)\n .optional(),\n filter: z\n .record(z.string(), z.any())\n .describe(\n 'Wix Data filter evaluated against the fetched item.'\n )\n .optional()\n .nullable(),\n name: z\n .string()\n .describe('Human-readable rule name (for debugging/logging).')\n .max(200)\n .optional()\n .nullable(),\n })\n )\n .describe('Maps rule ID → PageRule (filter + variant page role).')\n .optional(),\n roleVariations: z\n .record(z.string(), z.array(z.any()))\n .describe(\n 'Maps original page role ID → ordered rule IDs. First matching rule wins.'\n )\n .optional(),\n })\n .describe(\"Config containing request patterns, e.g. '/{title}'\")\n .optional(),\n pageRoles: z\n .record(\n z.string(),\n z.object({\n _id: z\n .string()\n .describe(\n 'Page role ID that uniquely identifies the page template.'\n )\n .max(200)\n .optional(),\n title: z\n .string()\n .describe('Human-readable title for the page role.')\n .max(200)\n .optional(),\n })\n )\n .describe('Map of page roles containing page ID and title of each role')\n .optional(),\n viewMode: z\n .string()\n .describe('Query param mapped to body, editor/site')\n .max(200)\n .optional(),\n gridAppId: z\n .string()\n .describe('Query param mapped to body, unique for Wix code app')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n })\n .optional(),\n});\nexport const GetRouterSitemapResponse = z.object({\n result: z\n .array(\n z.object({\n url: z\n .string()\n .describe('URL to inner route relative to current domain')\n .max(500)\n .optional(),\n pageName: z.string().describe('Dynamic page name').max(200).optional(),\n title: z\n .string()\n .describe(\n 'Title of the specific route, typically derived from collection data.'\n )\n .max(200)\n .optional(),\n changeFrequency: z\n .string()\n .describe(\n 'Change frequency for sitemap SEO purposes (e.g., `daily`, `weekly`, `monthly`).'\n )\n .max(100)\n .optional(),\n lastModified: z\n .string()\n .describe('Last modified timestamp in ISO 8601 format.')\n .max(100)\n .optional()\n .nullable(),\n priority: z\n .number()\n .describe('Priority for sitemap SEO purposes (0.0 to 1.0).')\n .optional(),\n })\n )\n .optional(),\n});\nexport const GetRouterPagesRequest = z.object({\n options: z\n .object({\n fullUrl: z\n .string()\n .describe(\n 'Complete URL to the inner route. Used for context-aware processing and as a base for relative URL resolution.\\nIncreased to 8192 to accommodate URLs with extensive query parameters (tracking, analytics, UTM params, etc.)'\n )\n .max(8192)\n .optional(),\n routerPrefix: z\n .string()\n .describe('Router prefix (TPA page ID for TPA pages)')\n .max(2048)\n .optional(),\n routerSuffix: z\n .string()\n .describe(\n 'Inner route suffix containing the dynamic part of the URL pattern. For example, `/{title}` or `/category/{category}/post/{slug}`.\\nIncreased to 8192 to match full_url capacity for complex dynamic routes'\n )\n .max(8192)\n .optional(),\n requestInfo: z\n .object({\n formFactor: z\n .string()\n .describe(\n 'Device form factor, typically `desktop` or `mobile`. Used to serve device-appropriate page layouts.'\n )\n .max(200)\n .optional(),\n })\n .describe(\n 'Additional request information including form factor (desktop/mobile) for device-appropriate routing.'\n )\n .optional(),\n config: z\n .object({\n patterns: z\n .record(\n z.string(),\n z.object({\n pageRole: z\n .string()\n .describe(\n 'Page role identifier that links this pattern to a specific page template.'\n )\n .max(200)\n .optional(),\n title: z\n .string()\n .describe(\n 'Title pattern with field interpolation (e.g., \"{title}, {author} - {category}\").\\nIncreased to 50000 to support complex title templates with many interpolated fields and long text content.'\n )\n .max(50000)\n .optional(),\n config: z\n .object({\n collection: z\n .string()\n .describe(\n 'Name of the Wix Data collection to query for dynamic content.'\n )\n .max(200)\n .optional(),\n filter: z\n .record(z.string(), z.any())\n .describe(\n 'Filter criteria to apply when querying the collection. Uses MongoDB-style query syntax to limit which items generate routes.'\n )\n .optional()\n .nullable(),\n lowercase: z\n .boolean()\n .describe(\n 'Indicates if URLs in sitemap should be turned to lowercase. Defaults to true if not set.'\n )\n .optional()\n .nullable(),\n pageLinkId: z\n .string()\n .describe(\n 'The field id that gets added to DataCollection and DataItems.\\nIndicates that page links is a slug based and items should be retrieved by slug fields present in the pattern.'\n )\n .max(1000)\n .optional()\n .nullable(),\n sort: z\n .array(z.record(z.string(), z.any()))\n .max(32)\n .optional(),\n pageSize: z\n .number()\n .int()\n .describe('Page size for pagination.')\n .optional()\n .nullable(),\n seoV2: z\n .boolean()\n .describe('SEO v2 flag.')\n .optional()\n .nullable(),\n cursor: z\n .boolean()\n .describe('Cursor-based pagination flag.')\n .optional()\n .nullable(),\n includes: z.array(z.string()).max(100).optional(),\n })\n .describe(\n 'Configuration specifying which collection to query and any filters to apply.'\n )\n .optional(),\n seoMetaTags: z\n .record(z.string(), z.string())\n .describe(\n 'SEO meta tags to be included in the page head. Keys are meta tag names, values are the content.'\n )\n .optional(),\n })\n )\n .describe(\n 'Map of URL patterns to their configurations. The key is the URL pattern (e.g., `/{title}`) and the value contains the pattern configuration.'\n )\n .optional(),\n rules: z\n .record(\n z.string(),\n z.object({\n pageRole: z\n .string()\n .describe(\n 'Variant page role ID to return when this rule matches.'\n )\n .max(200)\n .optional(),\n filter: z\n .record(z.string(), z.any())\n .describe(\n 'Wix Data filter evaluated against the fetched item.'\n )\n .optional()\n .nullable(),\n name: z\n .string()\n .describe('Human-readable rule name (for debugging/logging).')\n .max(200)\n .optional()\n .nullable(),\n })\n )\n .describe('Maps rule ID → PageRule (filter + variant page role).')\n .optional(),\n roleVariations: z\n .record(z.string(), z.array(z.any()))\n .describe(\n 'Maps original page role ID → ordered rule IDs. First matching rule wins.'\n )\n .optional(),\n })\n .describe(\"Config containing request patterns, e.g. '/{title}'\")\n .optional(),\n pageRoles: z\n .record(\n z.string(),\n z.object({\n _id: z\n .string()\n .describe(\n 'Page role ID that uniquely identifies the page template.'\n )\n .max(200)\n .optional(),\n title: z\n .string()\n .describe('Human-readable title for the page role.')\n .max(200)\n .optional(),\n })\n )\n .describe('Map of page roles containing page ID and title of each role')\n .optional(),\n viewMode: z\n .string()\n .describe('Query param mapped to body, editor/site')\n .max(200)\n .optional(),\n gridAppId: z\n .string()\n .describe('Query param mapped to body, unique for Wix code app')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n })\n .optional(),\n});\nexport const GetRouterPagesResponse = z.object({\n result: z\n .object({\n status: z\n .number()\n .int()\n .describe('HTTP status code of the page (200, 302, 404)')\n .optional(),\n page: z\n .string()\n .describe(\n 'Name of the dynamic page template that should be used for rendering.'\n )\n .max(200)\n .optional(),\n data: z\n .record(z.string(), z.any())\n .describe(\n 'Application router data available only to internal Wix apps. Contains system-level and administrative information.'\n )\n .optional()\n .nullable(),\n head: z\n .object({\n title: z\n .string()\n .describe('Page title for SEO and browser display.')\n .max(200)\n .optional(),\n metaTags: z\n .record(z.string(), z.string())\n .describe(\n 'Meta tags for SEO optimization. Keys are meta tag names, values are the content.'\n )\n .optional(),\n description: z\n .string()\n .describe(\n 'Page description for SEO. Extracted from seoMetaTags if present.'\n )\n .max(5000)\n .optional(),\n keywords: z\n .string()\n .describe(\n 'Keywords for SEO. Extracted from seoMetaTags if present.'\n )\n .max(5000)\n .optional(),\n noIndex: z\n .string()\n .describe(\n 'NoIndex directive for search engines. Extracted from seoMetaTags if present.'\n )\n .max(500)\n .optional(),\n })\n .describe('SEO and metadata information for the page head section.')\n .optional(),\n message: z\n .string()\n .describe('Error message when status indicates an error condition.')\n .max(500)\n .optional(),\n redirectUrl: z\n .string()\n .describe('Target URL for redirects when status is 302.')\n .max(2048)\n .optional(),\n })\n .describe('Page resolution result containing status, data, and metadata.')\n .optional(),\n});\nexport const GetRouterPagesCachedRequest = z.object({\n options: z\n .object({\n urlParams: z\n .object({\n gridAppId: z\n .string()\n .describe('Unique for Wix code app')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n viewMode: z.string().describe('Editor/site').max(200).optional(),\n })\n .describe(\"URL parameters from the viewer's query string.\")\n .optional(),\n body: z\n .object({\n fullUrl: z\n .string()\n .describe(\n 'Complete URL to the inner route. Used for context-aware processing and as a base for relative URL resolution.\\nIncreased to 8192 to accommodate URLs with extensive query parameters (tracking, analytics, UTM params, etc.)'\n )\n .max(8192)\n .optional(),\n routerPrefix: z\n .string()\n .describe('Router prefix (TPA page ID for TPA pages)')\n .max(2048)\n .optional(),\n routerSuffix: z\n .string()\n .describe(\n 'Inner route suffix containing the dynamic part of the URL pattern. For example, `/{title}` or `/category/{category}/post/{slug}`.\\nIncreased to 8192 to match full_url capacity for complex dynamic routes'\n )\n .max(8192)\n .optional(),\n requestInfo: z\n .object({\n formFactor: z\n .string()\n .describe(\n 'Device form factor, typically `desktop` or `mobile`. Used to serve device-appropriate page layouts.'\n )\n .max(200)\n .optional(),\n })\n .describe(\n 'Additional request information including form factor (desktop/mobile) for device-appropriate routing.'\n )\n .optional(),\n config: z\n .object({\n patterns: z\n .record(\n z.string(),\n z.object({\n pageRole: z\n .string()\n .describe(\n 'Page role identifier that links this pattern to a specific page template.'\n )\n .max(200)\n .optional(),\n title: z\n .string()\n .describe(\n 'Title pattern with field interpolation (e.g., \"{title}, {author} - {category}\").\\nIncreased to 50000 to support complex title templates with many interpolated fields and long text content.'\n )\n .max(50000)\n .optional(),\n config: z\n .object({\n collection: z\n .string()\n .describe(\n 'Name of the Wix Data collection to query for dynamic content.'\n )\n .max(200)\n .optional(),\n filter: z\n .record(z.string(), z.any())\n .describe(\n 'Filter criteria to apply when querying the collection. Uses MongoDB-style query syntax to limit which items generate routes.'\n )\n .optional()\n .nullable(),\n lowercase: z\n .boolean()\n .describe(\n 'Indicates if URLs in sitemap should be turned to lowercase. Defaults to true if not set.'\n )\n .optional()\n .nullable(),\n pageLinkId: z\n .string()\n .describe(\n 'The field id that gets added to DataCollection and DataItems.\\nIndicates that page links is a slug based and items should be retrieved by slug fields present in the pattern.'\n )\n .max(1000)\n .optional()\n .nullable(),\n sort: z\n .array(z.record(z.string(), z.any()))\n .max(32)\n .optional(),\n pageSize: z\n .number()\n .int()\n .describe('Page size for pagination.')\n .optional()\n .nullable(),\n seoV2: z\n .boolean()\n .describe('SEO v2 flag.')\n .optional()\n .nullable(),\n cursor: z\n .boolean()\n .describe('Cursor-based pagination flag.')\n .optional()\n .nullable(),\n includes: z.array(z.string()).max(100).optional(),\n })\n .describe(\n 'Configuration specifying which collection to query and any filters to apply.'\n )\n .optional(),\n seoMetaTags: z\n .record(z.string(), z.string())\n .describe(\n 'SEO meta tags to be included in the page head. Keys are meta tag names, values are the content.'\n )\n .optional(),\n })\n )\n .describe(\n 'Map of URL patterns to their configurations. The key is the URL pattern (e.g., `/{title}`) and the value contains the pattern configuration.'\n )\n .optional(),\n rules: z\n .record(\n z.string(),\n z.object({\n pageRole: z\n .string()\n .describe(\n 'Variant page role ID to return when this rule matches.'\n )\n .max(200)\n .optional(),\n filter: z\n .record(z.string(), z.any())\n .describe(\n 'Wix Data filter evaluated against the fetched item.'\n )\n .optional()\n .nullable(),\n name: z\n .string()\n .describe(\n 'Human-readable rule name (for debugging/logging).'\n )\n .max(200)\n .optional()\n .nullable(),\n })\n )\n .describe(\n 'Maps rule ID → PageRule (filter + variant page role).'\n )\n .optional(),\n roleVariations: z\n .record(z.string(), z.array(z.any()))\n .describe(\n 'Maps original page role ID → ordered rule IDs. First matching rule wins.'\n )\n .optional(),\n })\n .describe(\"Config containing request patterns, e.g. '/{title}'\")\n .optional(),\n pageRoles: z\n .record(\n z.string(),\n z.object({\n _id: z\n .string()\n .describe(\n 'Page role ID that uniquely identifies the page template.'\n )\n .max(200)\n .optional(),\n title: z\n .string()\n .describe('Human-readable title for the page role.')\n .max(200)\n .optional(),\n })\n )\n .describe(\n 'Map of page roles containing page ID and title of each role'\n )\n .optional(),\n viewMode: z\n .string()\n .describe('Query param mapped to body, editor/site')\n .max(200)\n .optional(),\n gridAppId: z\n .string()\n .describe('Query param mapped to body, unique for Wix code app')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n })\n .describe(\"Request body from the viewer's envelope.\")\n .optional(),\n })\n .optional(),\n});\nexport const GetRouterPagesCachedResponse = z.object({\n result: z\n .object({\n status: z\n .number()\n .int()\n .describe('HTTP status code of the page (200, 302, 404)')\n .optional(),\n page: z\n .string()\n .describe(\n 'Name of the dynamic page template that should be used for rendering.'\n )\n .max(200)\n .optional(),\n data: z\n .record(z.string(), z.any())\n .describe(\n 'Application router data available only to internal Wix apps. Contains system-level and administrative information.'\n )\n .optional()\n .nullable(),\n head: z\n .object({\n title: z\n .string()\n .describe('Page title for SEO and browser display.')\n .max(200)\n .optional(),\n metaTags: z\n .record(z.string(), z.string())\n .describe(\n 'Meta tags for SEO optimization. Keys are meta tag names, values are the content.'\n )\n .optional(),\n description: z\n .string()\n .describe(\n 'Page description for SEO. Extracted from seoMetaTags if present.'\n )\n .max(5000)\n .optional(),\n keywords: z\n .string()\n .describe(\n 'Keywords for SEO. Extracted from seoMetaTags if present.'\n )\n .max(5000)\n .optional(),\n noIndex: z\n .string()\n .describe(\n 'NoIndex directive for search engines. Extracted from seoMetaTags if present.'\n )\n .max(500)\n .optional(),\n })\n .describe('SEO and metadata information for the page head section.')\n .optional(),\n message: z\n .string()\n .describe('Error message when status indicates an error condition.')\n .max(500)\n .optional(),\n redirectUrl: z\n .string()\n .describe('Target URL for redirects when status is 302.')\n .max(2048)\n .optional(),\n })\n .describe('Page resolution result containing status, data, and metadata.')\n .optional(),\n});\nexport const GetDraftPreviewTokenRequest = z.object({\n options: z\n .object({\n collectionId: z\n .string()\n .describe('Wix Data collection ID to get a draft preview key for.')\n .max(256)\n .optional(),\n })\n .optional(),\n});\nexport const GetDraftPreviewTokenResponse = z.object({\n token: z.string().describe('Draft preview token.').max(10000).optional(),\n});\n"],"mappings":";AAAA,YAAY,OAAO;AAEZ,IAAM,+BAAiC,SAAO;AAAA,EACnD,SACG,SAAO;AAAA,IACN,cACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC,IAAI,IAAI,EACR,SAAS;AAAA,IACZ,QACG,SAAO;AAAA,MACN,UACG;AAAA,QACG,SAAO;AAAA,QACP,SAAO;AAAA,UACP,UACG,SAAO,EACP;AAAA,YACC;AAAA,UACF,EACC,IAAI,GAAG,EACP,SAAS;AAAA,UACZ,OACG,SAAO,EACP;AAAA,YACC;AAAA,UACF,EACC,IAAI,GAAK,EACT,SAAS;AAAA,UACZ,QACG,SAAO;AAAA,YACN,YACG,SAAO,EACP;AAAA,cACC;AAAA,YACF,EACC,IAAI,GAAG,EACP,SAAS;AAAA,YACZ,QACG,SAAS,SAAO,GAAK,MAAI,CAAC,EAC1B;AAAA,cACC;AAAA,YACF,EACC,SAAS,EACT,SAAS;A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,EACxE,SAAS;AACd,CAAC;AACM,IAAM,8BAAgC,SAAO;AAAA,EAClD,SACG,SAAO;AAAA,IACN,cACG,SAAO,EACP,SAAS,wDAAwD,EACjE,IAAI,GAAG,EACP,SAAS;AAAA,EACd,CAAC,EACA,SAAS;AACd,CAAC;AACM,IAAM,+BAAiC,SAAO;AAAA,EACnD,OAAS,SAAO,EAAE,SAAS,sBAAsB,EAAE,IAAI,GAAK,EAAE,SAAS;AACzE,CAAC;","names":[]}
@@ -0,0 +1,57 @@
1
+ import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
2
+ import { GetRouterSitemapCountOptions, GetRouterSitemapCountResponse, GetRouterSitemapOptions, GetRouterSitemapResponse, GetRouterPagesOptions, GetRouterPagesResponse, GetRouterPagesCachedOptions, GetDraftPreviewTokenOptions, GetDraftPreviewTokenResponse } from './index.typings.js';
3
+ export { Config, GetDraftPreviewTokenRequest, GetRouterPagesCachedRequest, GetRouterPagesCachedUrlParams, GetRouterPagesRequest, GetRouterSitemapCountRequest, GetRouterSitemapRequest, Page, PageRole, PageRule, Pattern, PatternConfig, RequestInfo, RouterCountItem, RouterPageHead, RouterPagesResult, RouterRouteItem } from './index.typings.js';
4
+
5
+ declare function getRouterSitemapCount$1(httpClient: HttpClient): GetRouterSitemapCountSignature;
6
+ interface GetRouterSitemapCountSignature {
7
+ /**
8
+ * Returns the count of sitemap entries grouped by page name.
9
+ *
10
+ * Use this endpoint for analytics dashboards, capacity planning, and understanding
11
+ * the scale of dynamic content without retrieving actual URLs. Results are capped
12
+ * at 1,000 items per pattern for performance.
13
+ */
14
+ (options?: GetRouterSitemapCountOptions): Promise<NonNullablePaths<GetRouterSitemapCountResponse, `result` | `result.${number}.pageName` | `result.${number}.count`, 4>>;
15
+ }
16
+ declare function getRouterSitemap$1(httpClient: HttpClient): GetRouterSitemapSignature;
17
+ interface GetRouterSitemapSignature {
18
+ /**
19
+ * Returns sitemap entries containing URLs, page names, and page titles.
20
+ *
21
+ * Use this endpoint to generate XML sitemaps for search engines, build navigation
22
+ * menus, or provide URL listings to external systems. The `fullUrl` parameter
23
+ * provides context for scoping sitemap generation to specific domains or URL hierarchies.
24
+ */
25
+ (options?: GetRouterSitemapOptions): Promise<NonNullablePaths<GetRouterSitemapResponse, `result` | `result.${number}.url` | `result.${number}.pageName` | `result.${number}.title` | `result.${number}.changeFrequency` | `result.${number}.priority`, 4>>;
26
+ }
27
+ declare function getRouterPages$1(httpClient: HttpClient): GetRouterPagesSignature;
28
+ interface GetRouterPagesSignature {
29
+ /**
30
+ * Returns comprehensive page information for a specific route.
31
+ * Called by the editor via POST with flat body + query params.
32
+ */
33
+ (options?: GetRouterPagesOptions): Promise<NonNullablePaths<GetRouterPagesResponse, `result.status` | `result.page` | `result.head.title` | `result.head.description` | `result.head.keywords` | `result.head.noIndex` | `result.message` | `result.redirectUrl`, 4>>;
34
+ }
35
+ declare function getRouterPagesCached$1(httpClient: HttpClient): GetRouterPagesCachedSignature;
36
+ interface GetRouterPagesCachedSignature {
37
+ /**
38
+ * Returns comprehensive page information for a specific route (cacheable).
39
+ * Called by the viewer via GET with .r parameter containing {urlParams, body} envelope.
40
+ */
41
+ (options?: GetRouterPagesCachedOptions): Promise<NonNullablePaths<GetRouterPagesResponse, `result.status` | `result.page` | `result.head.title` | `result.head.description` | `result.head.keywords` | `result.head.noIndex` | `result.message` | `result.redirectUrl`, 4>>;
42
+ }
43
+ declare function getDraftPreviewToken$1(httpClient: HttpClient): GetDraftPreviewTokenSignature;
44
+ interface GetDraftPreviewTokenSignature {
45
+ /**
46
+ * Returns the preview token used for draft collection previews.
47
+ */
48
+ (options?: GetDraftPreviewTokenOptions): Promise<NonNullablePaths<GetDraftPreviewTokenResponse, `token`, 2>>;
49
+ }
50
+
51
+ declare const getRouterSitemapCount: MaybeContext<BuildRESTFunction<typeof getRouterSitemapCount$1> & typeof getRouterSitemapCount$1>;
52
+ declare const getRouterSitemap: MaybeContext<BuildRESTFunction<typeof getRouterSitemap$1> & typeof getRouterSitemap$1>;
53
+ declare const getRouterPages: MaybeContext<BuildRESTFunction<typeof getRouterPages$1> & typeof getRouterPages$1>;
54
+ declare const getRouterPagesCached: MaybeContext<BuildRESTFunction<typeof getRouterPagesCached$1> & typeof getRouterPagesCached$1>;
55
+ declare const getDraftPreviewToken: MaybeContext<BuildRESTFunction<typeof getDraftPreviewToken$1> & typeof getDraftPreviewToken$1>;
56
+
57
+ export { GetDraftPreviewTokenOptions, GetDraftPreviewTokenResponse, GetRouterPagesCachedOptions, GetRouterPagesOptions, GetRouterPagesResponse, GetRouterSitemapCountOptions, GetRouterSitemapCountResponse, GetRouterSitemapOptions, GetRouterSitemapResponse, getDraftPreviewToken, getRouterPages, getRouterPagesCached, getRouterSitemap, getRouterSitemapCount };