@libretexts/cxone-expert-node 1.1.1 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/README.md +29 -18
  2. package/dist/index.cjs +6 -0
  3. package/dist/index.d.ts +40 -32
  4. package/dist/index.d.ts.map +1 -0
  5. package/dist/index.mjs +3079 -0
  6. package/dist/modules/archive.d.ts +19 -18
  7. package/dist/modules/archive.d.ts.map +1 -0
  8. package/dist/modules/auth.d.ts +9 -8
  9. package/dist/modules/auth.d.ts.map +1 -0
  10. package/dist/modules/contextMaps.d.ts +11 -10
  11. package/dist/modules/contextMaps.d.ts.map +1 -0
  12. package/dist/modules/events.d.ts +16 -15
  13. package/dist/modules/events.d.ts.map +1 -0
  14. package/dist/modules/files.d.ts +24 -23
  15. package/dist/modules/files.d.ts.map +1 -0
  16. package/dist/modules/groups.d.ts +12 -11
  17. package/dist/modules/groups.d.ts.map +1 -0
  18. package/dist/modules/pages.d.ts +68 -68
  19. package/dist/modules/pages.d.ts.map +1 -0
  20. package/dist/modules/requests.d.ts +15 -14
  21. package/dist/modules/requests.d.ts.map +1 -0
  22. package/dist/modules/site.d.ts +23 -22
  23. package/dist/modules/site.d.ts.map +1 -0
  24. package/dist/modules/users.d.ts +17 -16
  25. package/dist/modules/users.d.ts.map +1 -0
  26. package/dist/types/archive.d.ts +79 -78
  27. package/dist/types/archive.d.ts.map +1 -0
  28. package/dist/types/auth.d.ts +12 -11
  29. package/dist/types/auth.d.ts.map +1 -0
  30. package/dist/types/contextMaps.d.ts +35 -34
  31. package/dist/types/contextMaps.d.ts.map +1 -0
  32. package/dist/types/events.d.ts +69 -68
  33. package/dist/types/events.d.ts.map +1 -0
  34. package/dist/types/files.d.ts +62 -61
  35. package/dist/types/files.d.ts.map +1 -0
  36. package/dist/types/groups.d.ts +58 -57
  37. package/dist/types/groups.d.ts.map +1 -0
  38. package/dist/types/index.d.ts +28 -19
  39. package/dist/types/index.d.ts.map +1 -0
  40. package/dist/types/pages.d.ts +738 -737
  41. package/dist/types/pages.d.ts.map +1 -0
  42. package/dist/types/requests.d.ts +10 -9
  43. package/dist/types/requests.d.ts.map +1 -0
  44. package/dist/types/security.d.ts +58 -57
  45. package/dist/types/security.d.ts.map +1 -0
  46. package/dist/types/site.d.ts +255 -254
  47. package/dist/types/site.d.ts.map +1 -0
  48. package/dist/types/users.d.ts +82 -81
  49. package/dist/types/users.d.ts.map +1 -0
  50. package/dist/utils.d.ts +4 -2
  51. package/dist/utils.d.ts.map +1 -0
  52. package/package.json +20 -10
  53. package/dist/cxone-expert-node.cjs.development.js +0 -1511
  54. package/dist/cxone-expert-node.cjs.development.js.map +0 -1
  55. package/dist/cxone-expert-node.cjs.production.min.js +0 -2
  56. package/dist/cxone-expert-node.cjs.production.min.js.map +0 -1
  57. package/dist/cxone-expert-node.esm.js +0 -1505
  58. package/dist/cxone-expert-node.esm.js.map +0 -1
  59. package/dist/index.js +0 -8
  60. package/src/index.ts +0 -105
  61. package/src/modules/archive.ts +0 -186
  62. package/src/modules/auth.ts +0 -35
  63. package/src/modules/contextMaps.ts +0 -56
  64. package/src/modules/events.ts +0 -140
  65. package/src/modules/files.ts +0 -291
  66. package/src/modules/groups.ts +0 -79
  67. package/src/modules/pages.ts +0 -1236
  68. package/src/modules/requests.ts +0 -68
  69. package/src/modules/site.ts +0 -266
  70. package/src/modules/users.ts +0 -161
  71. package/src/types/archive.ts +0 -101
  72. package/src/types/auth.ts +0 -14
  73. package/src/types/contextMaps.ts +0 -46
  74. package/src/types/events.ts +0 -91
  75. package/src/types/files.ts +0 -87
  76. package/src/types/groups.ts +0 -74
  77. package/src/types/index.ts +0 -22
  78. package/src/types/pages.ts +0 -859
  79. package/src/types/requests.ts +0 -11
  80. package/src/types/security.ts +0 -61
  81. package/src/types/site.ts +0 -304
  82. package/src/types/users.ts +0 -101
  83. package/src/utils.ts +0 -8
@@ -1,737 +1,738 @@
1
- import { BaseQueryParams, PaginationQueryParams, RequestModeQueryParam } from "./requests";
2
- import { ExpertUser, PageSecurity } from "./security";
3
- export declare type GetPagesParams = {
4
- startpage?: boolean;
5
- format?: "html" | "xml" | "google";
6
- authenticate?: boolean;
7
- };
8
- export declare type GetPagesResponse = {
9
- "@id"?: string;
10
- "@guid"?: string;
11
- "@draft.state"?: string;
12
- "@href"?: string;
13
- "@deleted"?: string;
14
- "date.created"?: string;
15
- language?: string;
16
- namespace?: string;
17
- path?: Partial<PagePath> | "";
18
- subpages?: Partial<Subpages> | "";
19
- title?: string;
20
- "uri.ui"?: string;
21
- };
22
- export declare type GetPageParams = {
23
- format?: "html" | "xhtml";
24
- revision?: string;
25
- include?: "contents" | "prevnext";
26
- includeDeleted?: boolean;
27
- mode?: RequestModeQueryParam;
28
- exclude?: string;
29
- } & BaseQueryParams;
30
- export declare type GetPageResponse = Partial<PageBase> & Partial<PageExtended>;
31
- export declare type GetPageContentsParams = {
32
- overview?: boolean;
33
- include?: boolean;
34
- reltopath?: string;
35
- relto?: number;
36
- pageid?: number;
37
- includes?: "overview" | "tags" | "overview,tags";
38
- format?: "html" | "xhtml" | "text" | "dekicode";
39
- highlight?: string;
40
- revision?: string;
41
- mode: RequestModeQueryParam;
42
- section?: string;
43
- } & BaseQueryParams;
44
- export declare type GetPageContentsResponse = {
45
- "@revision"?: string;
46
- "@type"?: string;
47
- "@title"?: string;
48
- body?: string[] | "";
49
- head?: string;
50
- tail?: string;
51
- };
52
- export declare type GetPageContentsExplainParams = {
53
- overview?: boolean;
54
- include?: string;
55
- reltopath?: string;
56
- relto?: number;
57
- pageid?: number;
58
- includes?: "overview" | "tags" | "overview,tags";
59
- format?: "html" | "xhtml" | "text" | "dekicode";
60
- highlight?: string;
61
- revision?: string;
62
- mode: RequestModeQueryParam;
63
- section?: string;
64
- } & BaseQueryParams;
65
- export declare type GetPageContentsExplainResponse = {
66
- "@elapsed"?: string;
67
- "@id"?: string;
68
- "@Path"?: string;
69
- "@version"?: string;
70
- calls?: {
71
- "@elapsed"?: string;
72
- "@count-total"?: string;
73
- "@count-unique"?: string;
74
- expr?: exprCall | exprCall[] | "";
75
- import?: importCall | importCall[] | "";
76
- page?: pageCall | pageCall[] | "";
77
- property?: propertyCall | propertyCall[] | "";
78
- template?: templateCall | templateCall[] | "";
79
- };
80
- "data-stats"?: {
81
- entry?: Entry | Entry[] | "";
82
- };
83
- "db-summary"?: {
84
- "@elapsed"?: string;
85
- "@count"?: string;
86
- query?: Query | Query[] | "";
87
- };
88
- "hs-summary"?: {
89
- "@elapsed"?: string;
90
- "@count"?: string;
91
- query?: Query | Query[] | "";
92
- };
93
- "redis-summary"?: {
94
- "@elapsed"?: string;
95
- "@count"?: string;
96
- query?: Query | Query[] | "";
97
- };
98
- };
99
- export declare type GetPageDiffParams = {
100
- diff?: "combined" | "all";
101
- previous?: string;
102
- format?: "html" | "xhtml";
103
- mode?: RequestModeQueryParam;
104
- revision?: string;
105
- } & BaseQueryParams;
106
- export declare type GetPageDiffResponse = {
107
- "@type"?: string;
108
- "#text"?: string;
109
- };
110
- export declare type GetPageExplainParams = GetPageParams;
111
- export declare type GetPageExplainResponse = GetPageResponse;
112
- export declare type GetPageExportTokenParams = {
113
- recursive?: boolean;
114
- token?: string;
115
- pageid?: number;
116
- reltopath?: string;
117
- relto?: number;
118
- dryrun?: boolean;
119
- };
120
- export declare type GetPageExportTokenFilenameParams = GetPageExportTokenParams;
121
- export declare type GetPageFilesSubPagesParams = BaseQueryParams;
122
- export declare type GetPageFilesSubPagesResponse = {
123
- "@id"?: string;
124
- "@guid"?: string;
125
- "@draft.state"?: string;
126
- "@href"?: string;
127
- "@deleted"?: string;
128
- "date.created"?: string;
129
- files?: {
130
- "@count?": string;
131
- "@href?": string;
132
- file?: Partial<PageFile> | Partial<PageFile>[] | "";
133
- } | "";
134
- language?: string;
135
- namespace?: string;
136
- path?: Partial<PagePath> | "";
137
- subpages?: Partial<page_subpage> | "";
138
- title?: string;
139
- "uri.ui"?: string;
140
- };
141
- export declare type GetPageFilesParams = BaseQueryParams & PaginationQueryParams;
142
- export declare type GetPageFilesResponse = {
143
- "@count": string;
144
- "@offset": string;
145
- "@totalcount": string;
146
- "@href": string;
147
- file?: Partial<PageFile> | Partial<PageFile>[] | "";
148
- };
149
- export declare type GetPageFileParams = {
150
- includeDeleted?: boolean;
151
- revision?: string;
152
- size?: "original" | "thumb" | "webview" | "bestfit" | "custom";
153
- format?: "jpg" | "png" | "bmp" | "gif";
154
- ratio?: "fixed" | "var";
155
- width?: number;
156
- height?: number;
157
- } & BaseQueryParams;
158
- export declare type GetPageFileDescriptionParams = {
159
- revision?: string;
160
- } & BaseQueryParams;
161
- export declare type GetPageFileInfoParams = {
162
- includeDeleted?: boolean;
163
- revision?: string;
164
- } & BaseQueryParams;
165
- export declare type GetPageFileInfoResponse = Partial<PageFile>;
166
- export declare type GetPageFileRevisionsParams = {
167
- changefilter?: "CONTENT" | "NAME" | "LANGUAGE" | "META" | "DELETEFLAG" | "PARENT";
168
- } & BaseQueryParams;
169
- export declare type GetPageFileRevisionsResponse = {
170
- "@count"?: string;
171
- "@totalcount"?: string;
172
- "@href"?: string;
173
- file?: Partial<PageFile> | Partial<PageFile>[] | "";
174
- };
175
- export declare type GetPageFindParams = {
176
- tags?: string;
177
- missingclarifications?: string;
178
- since?: string;
179
- upto?: string;
180
- include?: string;
181
- };
182
- export declare type GetPageFindResponse = {
183
- "@count"?: string;
184
- "@totalcount"?: string;
185
- page?: "" | (Partial<PageBase> & Partial<Tags>) | (Partial<PageBase> & Partial<Tags>)[];
186
- };
187
- export declare type GetPageInfoParams = {
188
- exclude?: string;
189
- } & BaseQueryParams;
190
- export declare type GetPageInfoResponse = Partial<PageBase>;
191
- export declare type GetPageLinksParams = {
192
- dir: "from" | "to";
193
- } & BaseQueryParams;
194
- export declare type GetPageLinksResponse = {
195
- "@count"?: string;
196
- page?: Partial<PageBase> | Partial<PageBase>[] | "";
197
- };
198
- export declare type GetPagePdfParams = {
199
- showtoc?: boolean;
200
- format?: "pdf" | "html";
201
- authenticate?: boolean;
202
- stylesheet?: string;
203
- };
204
- export declare type GetPagePdfFilenameParams = GetPagePdfParams;
205
- export declare type GetPagePropertiesParams = {
206
- depth?: number;
207
- name?: string;
208
- contentcutoff?: number;
209
- } & BaseQueryParams;
210
- export declare type GetPagePropertiesResponse = {
211
- "@count"?: string;
212
- "@href"?: string;
213
- property?: Partial<PageProperty> | Partial<PageProperty>[] | "";
214
- };
215
- export declare type GetPagePropertiesKeyParams = BaseQueryParams;
216
- export declare type GetPagePropertiesKeyInfoParams = {
217
- contentcutoff?: number;
218
- } & BaseQueryParams;
219
- export declare type GetPagePropertiesKeyInfoResponse = Partial<PageProperty> | Partial<PageProperty>[] | "";
220
- export declare type GetPageRatingsParams = BaseQueryParams;
221
- export declare type GetPageRatingsResponse = PageRating;
222
- export declare type GetPageRevisionsParams = {
223
- revision?: string;
224
- deleted?: boolean;
225
- } & BaseQueryParams & PaginationQueryParams;
226
- export declare type GetPageRevisionsResponse = {
227
- page?: (Partial<PageBase> & Partial<PageExtended>) | (Partial<PageBase> & Partial<PageExtended>)[] | "";
228
- };
229
- export declare type GetPageSecurityParams = BaseQueryParams & {
230
- export?: boolean;
231
- };
232
- export declare type GetPageSecurityResponse = Partial<PageSecurity>;
233
- export declare type GetPageSubPagesParams = BaseQueryParams & PaginationQueryParams;
234
- export declare type GetPageSubPagesResponse = Partial<page_subpage>;
235
- export declare type GetPageTagsParams = {
236
- exports?: boolean;
237
- } & BaseQueryParams;
238
- export declare type GetPageTagsResponse = Partial<Tags>;
239
- export declare type GetPageTreeParams = {
240
- startpage?: boolean;
241
- format?: "html" | "xml" | "google";
242
- include?: string;
243
- authenticate?: boolean;
244
- };
245
- export declare type GetPageTreeResponse = {
246
- page: Partial<GetPagesResponse>;
247
- };
248
- export declare type GetPageBookParams = {
249
- format?: "html" | "pdf";
250
- title?: string;
251
- showtoc?: boolean;
252
- authenticate?: boolean;
253
- stylesheet?: string;
254
- pageids: number;
255
- filename?: string;
256
- };
257
- export declare type GetPageBookFilenameParams = GetPageBookParams;
258
- export declare type GetPagesCsvParams = {
259
- filename?: string;
260
- pageids: string;
261
- };
262
- export declare type GetPagesPopularParams = BaseQueryParams & PaginationQueryParams;
263
- export declare type GetPagesPopularResponse = {
264
- "@count"?: string;
265
- "@href"?: string;
266
- page?: (Partial<PageBase> & Partial<PageExtended>) | (Partial<PageBase> & Partial<PageExtended>)[] | "";
267
- };
268
- export declare type PostPageContentsParams = {
269
- ordered?: boolean;
270
- restriction?: string;
271
- importtime?: string;
272
- overwrite?: boolean;
273
- reltopath?: string;
274
- relto?: number;
275
- abort?: "never" | "modified" | "exists";
276
- xpath?: string;
277
- section?: number;
278
- title?: string;
279
- comment?: string;
280
- edittime: string;
281
- authenticate?: boolean;
282
- redirects?: number;
283
- tidy?: "remove" | "convert";
284
- };
285
- export declare type PostPageContentsResponse = {
286
- edit: {
287
- "@status": "success" | "conflict";
288
- page: {
289
- "@id": number;
290
- "@href": string;
291
- title: string;
292
- path: string;
293
- };
294
- "page.base": {
295
- "@id": number;
296
- "@revision": number;
297
- "@href": string;
298
- title: string;
299
- path: string;
300
- "date.edited": string;
301
- "user.author": {
302
- "@id": number;
303
- "@href": string;
304
- nick: string;
305
- username: string;
306
- email: string;
307
- };
308
- description: string;
309
- contents: {
310
- "@type": string;
311
- "@href": string;
312
- };
313
- };
314
- "page.overwritten"?: {
315
- "@id": number;
316
- "@revision": number;
317
- "@href": string;
318
- title: string;
319
- path: string;
320
- "date.edited": string;
321
- "user.author": {
322
- "@id": number;
323
- "@href": string;
324
- nick: string;
325
- username: string;
326
- email: string;
327
- };
328
- description: string;
329
- contents: {
330
- "@type": string;
331
- "@href": string;
332
- };
333
- };
334
- };
335
- };
336
- export declare type DeletePageParams = {
337
- recursive?: boolean;
338
- } & BaseQueryParams;
339
- export declare type DeletePageResponse = {
340
- deletedPages?: {
341
- "@count"?: number;
342
- page?: Partial<DeletedPage> | Partial<DeletedPage>[] | "";
343
- };
344
- };
345
- export declare type PostPageAllowedParams = {
346
- permissions?: string;
347
- };
348
- export declare type PostPageAllowedResponse = {
349
- users?: {
350
- user: Partial<Allowed> | Partial<Allowed>[] | "";
351
- };
352
- };
353
- export declare type PostCopyPageParams = {
354
- to: string;
355
- title?: string;
356
- abort?: 'never' | 'exists';
357
- recursive?: boolean;
358
- tags?: boolean;
359
- attachments?: boolean;
360
- } & BaseQueryParams;
361
- export declare type PostCopyPageResponse = {
362
- 'pages.copied?': {
363
- "@count"?: string;
364
- page?: Partial<PageBase> | Partial<PageBase>[] | "";
365
- } | "";
366
- };
367
- export declare type DeletePageFileNameParams = BaseQueryParams;
368
- export declare type HeadPageFileNameParams = {
369
- includeDeleted?: boolean;
370
- revision?: string;
371
- size?: "original" | "thumb" | "webview" | "bestfit" | "custom";
372
- format?: "jpg" | "png" | "bmp" | "gif";
373
- ratio?: "fixed" | "var";
374
- width?: number;
375
- height?: number;
376
- } & BaseQueryParams;
377
- export declare type PutPageFileNameParams = {
378
- description?: string;
379
- } & BaseQueryParams;
380
- export declare type PutPageFileNameResponse = Partial<PageFile>;
381
- export declare type DeletePageFileNameDescriptionParams = BaseQueryParams;
382
- export declare type DeletePageFileNameDescriptionResponse = Partial<PageFile> & {
383
- properties?: {
384
- "@count"?: string;
385
- "@href"?: string;
386
- property?: Partial<PageProperty> | Partial<PageProperty>[] | "";
387
- };
388
- };
389
- export declare type PutPageFileNameDescriptionParams = BaseQueryParams;
390
- export declare type PutPageFileNameDescriptionResponse = Partial<PageFile> & {
391
- properties?: {
392
- "@count"?: string;
393
- "@href"?: string;
394
- property?: Partial<PageProperty> | Partial<PageProperty>[] | "";
395
- };
396
- };
397
- export declare type PutPageFileNamePropertiesKeyParams = {
398
- description?: string;
399
- etag?: string;
400
- abort?: "never" | "modified" | "exists";
401
- } & BaseQueryParams;
402
- export declare type PutPageFileNamePropertiesKeyResponse = PageProperty;
403
- export declare type PutPageImportParams = {
404
- behavior?: "sync" | "async";
405
- filename?: string;
406
- pageid?: number;
407
- };
408
- export declare type PutPageMoveParams = {
409
- parentid?: number;
410
- name?: string;
411
- title?: string;
412
- to?: string;
413
- } & BaseQueryParams;
414
- export declare type PutPageMoveResponse = {
415
- "page.moved?": {
416
- "@count"?: string;
417
- page?: Partial<PageBase> | Partial<PageBase>[] | "";
418
- } | "";
419
- };
420
- export declare type PutPageOrderParams = {
421
- afterid?: number;
422
- };
423
- export declare type PostPagePropertiesParams = {
424
- abort?: "never" | "modified" | "exists";
425
- description?: string;
426
- } & BaseQueryParams;
427
- export declare type PostPagePropertiesResponse = PageProperty;
428
- export declare type PutPagePropertiesParams = BaseQueryParams;
429
- export declare type PutPagePropertiesResponse = {
430
- properties?: {
431
- "@count"?: string;
432
- "@href"?: string;
433
- property?: Partial<PageProperty> | Partial<PageProperty>[] | "";
434
- };
435
- };
436
- export declare type DeletePagePropertiesKeyParams = BaseQueryParams;
437
- export declare type PutPagePropertiesKeyParams = {
438
- abort?: "never" | "modified" | "exists";
439
- description?: string;
440
- etag?: string;
441
- } & BaseQueryParams;
442
- export declare type PutPagePropertiesKeyResponse = PageProperty;
443
- export declare type PostPageRatingsParams = {
444
- score: number;
445
- } & BaseQueryParams;
446
- export declare type PostPageRevertParams = {
447
- verbose?: boolean;
448
- abort?: "never" | "conflict";
449
- fromrevision?: string;
450
- } & BaseQueryParams;
451
- export declare type DeletePageSecurityParams = BaseQueryParams;
452
- export declare type PostPageSecurityParams = {
453
- cascade?: "none" | "delta";
454
- } & BaseQueryParams;
455
- export declare type PostPageSecurityResponse = Partial<PageSecurity>;
456
- export declare type PutPageSecurityParams = {
457
- cascade?: "none" | "delta" | "absolute";
458
- } & BaseQueryParams;
459
- export declare type PutPageSecurityResponse = Partial<PageSecurity>;
460
- export declare type PutPageTagsParams = BaseQueryParams;
461
- export declare type PutPageTagsResponse = Partial<Tags>;
462
- export declare type PagePath = {
463
- "@seo": string;
464
- "@type": string;
465
- "#text": string;
466
- };
467
- export declare type Subpages = {
468
- page: Partial<Subpage>[] | Partial<Subpage>;
469
- };
470
- export declare type Subpage = {
471
- "@id": string;
472
- "@guid": string;
473
- "@draft.state": string;
474
- "@href": string;
475
- "@deleted": string;
476
- "date.created": string;
477
- language: string;
478
- namespace: string;
479
- path: Partial<PagePath> | "";
480
- subpages: Subpages | "";
481
- title: string;
482
- "uri.ui": string;
483
- };
484
- export declare type PageBase = {
485
- "@id": string;
486
- "@guid": string;
487
- "@draft.state": string;
488
- "@href": string;
489
- "@deleted": string;
490
- "@revision": string;
491
- "@terminal": string;
492
- "@subpages": string;
493
- "@files": string;
494
- article: string;
495
- "date.created": string;
496
- "date.modified": string;
497
- language: string;
498
- namespace: string;
499
- path: Partial<PagePath> | "";
500
- restriction: string;
501
- security: Partial<PageSecurity> | "";
502
- title: string;
503
- "uri.ui": string;
504
- };
505
- export declare type PageExtended = {
506
- "@unpublish": string;
507
- aliases: {
508
- [key: string]: string;
509
- } | "";
510
- comments: {
511
- "@count"?: string;
512
- "@href"?: string;
513
- } | "";
514
- contents: Partial<Contents> | "";
515
- "contents.alt": {
516
- "@type": string;
517
- "@href": string;
518
- } | "";
519
- "date.edited": string;
520
- description: string;
521
- files: {
522
- "@count?": string;
523
- "@href?": string;
524
- file?: Partial<PageFile> | Partial<PageFile>[] | "";
525
- } | "";
526
- inbound: {
527
- "@count"?: string;
528
- page?: Partial<PageBase> | Partial<PageBase>[] | "";
529
- } | "";
530
- "language.effective": string;
531
- metrics: {
532
- "metric.charcount"?: string;
533
- "metric.views"?: string;
534
- } | "";
535
- outbound: {
536
- "@count"?: string;
537
- page?: Partial<PageBase> | Partial<PageBase>[] | "";
538
- } | "";
539
- "page.parent": Partial<PageBase> | "";
540
- "page.redirectedfrom": string;
541
- properties: {
542
- "@count"?: string;
543
- "@href"?: string;
544
- property?: PageProperty[];
545
- } | "";
546
- rating: Partial<PageRating> | "";
547
- revisions: Partial<PageRevision> | "";
548
- "revisions.archive": Partial<PageRevision> | "";
549
- subpages: {
550
- "@href"?: string;
551
- } | "";
552
- summary: string;
553
- tags: Partial<Tags> | "";
554
- timeuuid: string;
555
- "user.author": Partial<ExpertUser> | "";
556
- "user.createdby": Partial<ExpertUser> | "";
557
- };
558
- export declare type PageRating = {
559
- "@score": string;
560
- "@count": string;
561
- "@seated.score": string;
562
- "@seated.count": string;
563
- "@unseated.score": string;
564
- "@unseated.count": string;
565
- "@anonymous.score": string;
566
- "@anonymous.count": string;
567
- };
568
- export declare type PageRevision = {
569
- "@count": string;
570
- "@deprecated": string;
571
- "@totalcount": string;
572
- "@href": string;
573
- };
574
- export declare type PageFile = {
575
- "@id": string;
576
- "@revision": string;
577
- "@res-id": string;
578
- "@href": string;
579
- "@res-is-head": string;
580
- "@res-is-deleted": string;
581
- "@res-rev-is-deleted": string;
582
- "@res-contents-id": string;
583
- "alt-text": string;
584
- contents: Partial<Contents> | "";
585
- "contents.preview": Partial<ContentsPreview> | Partial<ContentsPreview>[] | "";
586
- "date.created": string;
587
- "date.last-modified": string;
588
- description: string;
589
- filename: string;
590
- "page.parent": Partial<PageBase> | "";
591
- revisions: Partial<PageRevision> | "";
592
- "user-action": {
593
- "@type"?: string;
594
- } | "";
595
- "user.createdBy": Partial<ExpertUser> | "";
596
- };
597
- export declare type PageTag = {
598
- "@value": string;
599
- "@id": string;
600
- "@href": string;
601
- title: string;
602
- type: string;
603
- uri: string;
604
- related: {
605
- "@count"?: string;
606
- page?: Partial<PageBase> | Partial<PageBase>[] | "";
607
- } | "";
608
- };
609
- export declare type Contents = {
610
- "@type": string;
611
- "@size": string;
612
- "@width": string;
613
- "@height": string;
614
- "@href": string;
615
- "#text": string;
616
- properties: {
617
- property: Partial<PageProperty> | Partial<PageProperty>[] | "";
618
- } | "";
619
- };
620
- export declare type ContentsPreview = {
621
- "@rel": string;
622
- "@type": string;
623
- "@maxwidth": string;
624
- "@maxheight": string;
625
- "@href": string;
626
- "@etag": string;
627
- };
628
- export declare type Tags = {
629
- "@count"?: string;
630
- "@href"?: string;
631
- tag?: Partial<PageTag> | Partial<PageTag>[] | "";
632
- };
633
- export declare type PageProperty = {
634
- "@etag": string;
635
- "@href": string;
636
- "@name": string;
637
- "@resid": string;
638
- "@resource-is-deleted": string;
639
- "@resource-rev-is-deleted": string;
640
- "@revision": string;
641
- "change-description": string;
642
- contents: Pick<Contents, '@href' | '@size' | '#text' | '@type'>;
643
- "date.modified": string;
644
- "user.modified": ExpertUser;
645
- };
646
- export declare type page_subpage = {
647
- "@totalcount": string;
648
- "@count": string;
649
- "@href": string;
650
- "page.subpage": Partial<PageBase> | Partial<PageBase>[] | "";
651
- };
652
- export declare type exprCall = {
653
- "@name": string;
654
- "@elapsed": string;
655
- "@avg": string;
656
- "@max": string;
657
- "@percent": string;
658
- "@count": string;
659
- "@mode": string;
660
- function: functionCall | functionCall[] | "";
661
- };
662
- export declare type functionCall = {
663
- "@name": string;
664
- "@elapsed": string;
665
- "@avg": string;
666
- "@max": string;
667
- "@percent": string;
668
- "@count": string;
669
- "@mode": string;
670
- "@location": string;
671
- expr: exprCall | exprCall[] | "";
672
- };
673
- export declare type importCall = {
674
- "@name": string;
675
- "@elapsed": string;
676
- "@avg": string;
677
- "@max": string;
678
- "@percent": string;
679
- "@count": string;
680
- "@mode": string;
681
- "@recursive": string;
682
- "@location": string;
683
- import: importCall | importCall[] | "";
684
- };
685
- export declare type pageCall = {
686
- "@name": string;
687
- "@elapsed": string;
688
- "@avg": string;
689
- "@max": string;
690
- "@percent": string;
691
- "@count": string;
692
- "@mode": string;
693
- import: importCall | importCall[] | "";
694
- template: templateCall | templateCall[] | "";
695
- };
696
- export declare type propertyCall = {
697
- "@name": string;
698
- "@elapsed": string;
699
- "@avg": string;
700
- "@max": string;
701
- "@percent": string;
702
- "@count": string;
703
- "@mode": string;
704
- };
705
- export declare type templateCall = {
706
- "@name": string;
707
- "@elapsed": string;
708
- "@avg": string;
709
- "@max": string;
710
- "@percent": string;
711
- "@count": string;
712
- "@mode": string;
713
- "@location": string;
714
- function: functionCall | functionCall[] | "";
715
- property: propertyCall | propertyCall[] | "";
716
- template: templateCall | templateCall[] | "";
717
- };
718
- export declare type Entry = {
719
- "@name": string;
720
- "@value": string;
721
- };
722
- export declare type Query = {
723
- "@name": string;
724
- "@elapsed": string;
725
- "@average": string;
726
- "@max": string;
727
- "@count": string;
728
- };
729
- export declare type DeletedPage = {
730
- "@id": number;
731
- "@href": string;
732
- title: string;
733
- path: string;
734
- };
735
- export declare type Allowed = {
736
- "@id": string;
737
- };
1
+ import { BaseQueryParams, PaginationQueryParams, RequestModeQueryParam } from './requests';
2
+ import { ExpertUser, PageSecurity } from './security';
3
+ export type GetPagesParams = {
4
+ startpage?: boolean;
5
+ format?: "html" | "xml" | "google";
6
+ authenticate?: boolean;
7
+ };
8
+ export type GetPagesResponse = {
9
+ "@id"?: string;
10
+ "@guid"?: string;
11
+ "@draft.state"?: string;
12
+ "@href"?: string;
13
+ "@deleted"?: string;
14
+ "date.created"?: string;
15
+ language?: string;
16
+ namespace?: string;
17
+ path?: Partial<PagePath> | "";
18
+ subpages?: Partial<Subpages> | "";
19
+ title?: string;
20
+ "uri.ui"?: string;
21
+ };
22
+ export type GetPageParams = {
23
+ format?: "html" | "xhtml";
24
+ revision?: string;
25
+ include?: "contents" | "prevnext";
26
+ includeDeleted?: boolean;
27
+ mode?: RequestModeQueryParam;
28
+ exclude?: string;
29
+ } & BaseQueryParams;
30
+ export type GetPageResponse = Partial<PageBase> & Partial<PageExtended>;
31
+ export type GetPageContentsParams = {
32
+ overview?: boolean;
33
+ include?: boolean;
34
+ reltopath?: string;
35
+ relto?: number;
36
+ pageid?: number;
37
+ includes?: "overview" | "tags" | "overview,tags";
38
+ format?: "html" | "xhtml" | "text" | "dekicode";
39
+ highlight?: string;
40
+ revision?: string;
41
+ mode: RequestModeQueryParam;
42
+ section?: string;
43
+ } & BaseQueryParams;
44
+ export type GetPageContentsResponse = {
45
+ "@revision"?: string;
46
+ "@type"?: string;
47
+ "@title"?: string;
48
+ body?: string[] | "";
49
+ head?: string;
50
+ tail?: string;
51
+ };
52
+ export type GetPageContentsExplainParams = {
53
+ overview?: boolean;
54
+ include?: string;
55
+ reltopath?: string;
56
+ relto?: number;
57
+ pageid?: number;
58
+ includes?: "overview" | "tags" | "overview,tags";
59
+ format?: "html" | "xhtml" | "text" | "dekicode";
60
+ highlight?: string;
61
+ revision?: string;
62
+ mode: RequestModeQueryParam;
63
+ section?: string;
64
+ } & BaseQueryParams;
65
+ export type GetPageContentsExplainResponse = {
66
+ "@elapsed"?: string;
67
+ "@id"?: string;
68
+ "@Path"?: string;
69
+ "@version"?: string;
70
+ calls?: {
71
+ "@elapsed"?: string;
72
+ "@count-total"?: string;
73
+ "@count-unique"?: string;
74
+ expr?: exprCall | exprCall[] | "";
75
+ import?: importCall | importCall[] | "";
76
+ page?: pageCall | pageCall[] | "";
77
+ property?: propertyCall | propertyCall[] | "";
78
+ template?: templateCall | templateCall[] | "";
79
+ };
80
+ "data-stats"?: {
81
+ entry?: Entry | Entry[] | "";
82
+ };
83
+ "db-summary"?: {
84
+ "@elapsed"?: string;
85
+ "@count"?: string;
86
+ query?: Query | Query[] | "";
87
+ };
88
+ "hs-summary"?: {
89
+ "@elapsed"?: string;
90
+ "@count"?: string;
91
+ query?: Query | Query[] | "";
92
+ };
93
+ "redis-summary"?: {
94
+ "@elapsed"?: string;
95
+ "@count"?: string;
96
+ query?: Query | Query[] | "";
97
+ };
98
+ };
99
+ export type GetPageDiffParams = {
100
+ diff?: "combined" | "all";
101
+ previous?: string;
102
+ format?: "html" | "xhtml";
103
+ mode?: RequestModeQueryParam;
104
+ revision?: string;
105
+ } & BaseQueryParams;
106
+ export type GetPageDiffResponse = {
107
+ "@type"?: string;
108
+ "#text"?: string;
109
+ };
110
+ export type GetPageExplainParams = GetPageParams;
111
+ export type GetPageExplainResponse = GetPageResponse;
112
+ export type GetPageExportTokenParams = {
113
+ recursive?: boolean;
114
+ token?: string;
115
+ pageid?: number;
116
+ reltopath?: string;
117
+ relto?: number;
118
+ dryrun?: boolean;
119
+ };
120
+ export type GetPageExportTokenFilenameParams = GetPageExportTokenParams;
121
+ export type GetPageFilesSubPagesParams = BaseQueryParams;
122
+ export type GetPageFilesSubPagesResponse = {
123
+ "@id"?: string;
124
+ "@guid"?: string;
125
+ "@draft.state"?: string;
126
+ "@href"?: string;
127
+ "@deleted"?: string;
128
+ "date.created"?: string;
129
+ files?: {
130
+ "@count?": string;
131
+ "@href?": string;
132
+ file?: Partial<PageFile> | Partial<PageFile>[] | "";
133
+ } | "";
134
+ language?: string;
135
+ namespace?: string;
136
+ path?: Partial<PagePath> | "";
137
+ subpages?: Partial<page_subpage> | "";
138
+ title?: string;
139
+ "uri.ui"?: string;
140
+ };
141
+ export type GetPageFilesParams = BaseQueryParams & PaginationQueryParams;
142
+ export type GetPageFilesResponse = {
143
+ "@count": string;
144
+ "@offset": string;
145
+ "@totalcount": string;
146
+ "@href": string;
147
+ file?: Partial<PageFile> | Partial<PageFile>[] | "";
148
+ };
149
+ export type GetPageFileParams = {
150
+ includeDeleted?: boolean;
151
+ revision?: string;
152
+ size?: "original" | "thumb" | "webview" | "bestfit" | "custom";
153
+ format?: "jpg" | "png" | "bmp" | "gif";
154
+ ratio?: "fixed" | "var";
155
+ width?: number;
156
+ height?: number;
157
+ } & BaseQueryParams;
158
+ export type GetPageFileDescriptionParams = {
159
+ revision?: string;
160
+ } & BaseQueryParams;
161
+ export type GetPageFileInfoParams = {
162
+ includeDeleted?: boolean;
163
+ revision?: string;
164
+ } & BaseQueryParams;
165
+ export type GetPageFileInfoResponse = Partial<PageFile>;
166
+ export type GetPageFileRevisionsParams = {
167
+ changefilter?: "CONTENT" | "NAME" | "LANGUAGE" | "META" | "DELETEFLAG" | "PARENT";
168
+ } & BaseQueryParams;
169
+ export type GetPageFileRevisionsResponse = {
170
+ "@count"?: string;
171
+ "@totalcount"?: string;
172
+ "@href"?: string;
173
+ file?: Partial<PageFile> | Partial<PageFile>[] | "";
174
+ };
175
+ export type GetPageFindParams = {
176
+ tags?: string;
177
+ missingclarifications?: string;
178
+ since?: string;
179
+ upto?: string;
180
+ include?: string;
181
+ };
182
+ export type GetPageFindResponse = {
183
+ "@count"?: string;
184
+ "@totalcount"?: string;
185
+ page?: "" | (Partial<PageBase> & Partial<Tags>) | (Partial<PageBase> & Partial<Tags>)[];
186
+ };
187
+ export type GetPageInfoParams = {
188
+ exclude?: string;
189
+ } & BaseQueryParams;
190
+ export type GetPageInfoResponse = Partial<PageBase>;
191
+ export type GetPageLinksParams = {
192
+ dir: "from" | "to";
193
+ } & BaseQueryParams;
194
+ export type GetPageLinksResponse = {
195
+ "@count"?: string;
196
+ page?: Partial<PageBase> | Partial<PageBase>[] | "";
197
+ };
198
+ export type GetPagePdfParams = {
199
+ showtoc?: boolean;
200
+ format?: "pdf" | "html";
201
+ authenticate?: boolean;
202
+ stylesheet?: string;
203
+ };
204
+ export type GetPagePdfFilenameParams = GetPagePdfParams;
205
+ export type GetPagePropertiesParams = {
206
+ depth?: number;
207
+ name?: string;
208
+ contentcutoff?: number;
209
+ } & BaseQueryParams;
210
+ export type GetPagePropertiesResponse = {
211
+ "@count"?: string;
212
+ "@href"?: string;
213
+ property?: Partial<PageProperty> | Partial<PageProperty>[] | "";
214
+ };
215
+ export type GetPagePropertiesKeyParams = BaseQueryParams;
216
+ export type GetPagePropertiesKeyInfoParams = {
217
+ contentcutoff?: number;
218
+ } & BaseQueryParams;
219
+ export type GetPagePropertiesKeyInfoResponse = Partial<PageProperty> | Partial<PageProperty>[] | "";
220
+ export type GetPageRatingsParams = BaseQueryParams;
221
+ export type GetPageRatingsResponse = PageRating;
222
+ export type GetPageRevisionsParams = {
223
+ revision?: string;
224
+ deleted?: boolean;
225
+ } & BaseQueryParams & PaginationQueryParams;
226
+ export type GetPageRevisionsResponse = {
227
+ page?: (Partial<PageBase> & Partial<PageExtended>) | (Partial<PageBase> & Partial<PageExtended>)[] | "";
228
+ };
229
+ export type GetPageSecurityParams = BaseQueryParams & {
230
+ export?: boolean;
231
+ };
232
+ export type GetPageSecurityResponse = Partial<PageSecurity>;
233
+ export type GetPageSubPagesParams = BaseQueryParams & PaginationQueryParams;
234
+ export type GetPageSubPagesResponse = Partial<page_subpage>;
235
+ export type GetPageTagsParams = {
236
+ exports?: boolean;
237
+ } & BaseQueryParams;
238
+ export type GetPageTagsResponse = Partial<Tags>;
239
+ export type GetPageTreeParams = {
240
+ startpage?: boolean;
241
+ format?: "html" | "xml" | "google";
242
+ include?: string;
243
+ authenticate?: boolean;
244
+ };
245
+ export type GetPageTreeResponse = {
246
+ page: Partial<GetPagesResponse>;
247
+ };
248
+ export type GetPageBookParams = {
249
+ format?: "html" | "pdf";
250
+ title?: string;
251
+ showtoc?: boolean;
252
+ authenticate?: boolean;
253
+ stylesheet?: string;
254
+ pageids: number;
255
+ filename?: string;
256
+ };
257
+ export type GetPageBookFilenameParams = GetPageBookParams;
258
+ export type GetPagesCsvParams = {
259
+ filename?: string;
260
+ pageids: string;
261
+ };
262
+ export type GetPagesPopularParams = BaseQueryParams & PaginationQueryParams;
263
+ export type GetPagesPopularResponse = {
264
+ "@count"?: string;
265
+ "@href"?: string;
266
+ page?: (Partial<PageBase> & Partial<PageExtended>) | (Partial<PageBase> & Partial<PageExtended>)[] | "";
267
+ };
268
+ export type PostPageContentsParams = {
269
+ ordered?: boolean;
270
+ restriction?: string;
271
+ importtime?: string;
272
+ overwrite?: boolean;
273
+ reltopath?: string;
274
+ relto?: number;
275
+ abort?: "never" | "modified" | "exists";
276
+ xpath?: string;
277
+ section?: number;
278
+ title?: string;
279
+ comment?: string;
280
+ edittime: string;
281
+ authenticate?: boolean;
282
+ redirects?: number;
283
+ tidy?: "remove" | "convert";
284
+ };
285
+ export type PostPageContentsResponse = {
286
+ edit: {
287
+ "@status": "success" | "conflict";
288
+ page: {
289
+ "@id": number;
290
+ "@href": string;
291
+ title: string;
292
+ path: string;
293
+ };
294
+ "page.base": {
295
+ "@id": number;
296
+ "@revision": number;
297
+ "@href": string;
298
+ title: string;
299
+ path: string;
300
+ "date.edited": string;
301
+ "user.author": {
302
+ "@id": number;
303
+ "@href": string;
304
+ nick: string;
305
+ username: string;
306
+ email: string;
307
+ };
308
+ description: string;
309
+ contents: {
310
+ "@type": string;
311
+ "@href": string;
312
+ };
313
+ };
314
+ "page.overwritten"?: {
315
+ "@id": number;
316
+ "@revision": number;
317
+ "@href": string;
318
+ title: string;
319
+ path: string;
320
+ "date.edited": string;
321
+ "user.author": {
322
+ "@id": number;
323
+ "@href": string;
324
+ nick: string;
325
+ username: string;
326
+ email: string;
327
+ };
328
+ description: string;
329
+ contents: {
330
+ "@type": string;
331
+ "@href": string;
332
+ };
333
+ };
334
+ };
335
+ };
336
+ export type DeletePageParams = {
337
+ recursive?: boolean;
338
+ } & BaseQueryParams;
339
+ export type DeletePageResponse = {
340
+ deletedPages?: {
341
+ "@count"?: number;
342
+ page?: Partial<DeletedPage> | Partial<DeletedPage>[] | "";
343
+ };
344
+ };
345
+ export type PostPageAllowedParams = {
346
+ permissions?: string;
347
+ };
348
+ export type PostPageAllowedResponse = {
349
+ users?: {
350
+ user: Partial<Allowed> | Partial<Allowed>[] | "";
351
+ };
352
+ };
353
+ export type PostCopyPageParams = {
354
+ to: string;
355
+ title?: string;
356
+ abort?: 'never' | 'exists';
357
+ recursive?: boolean;
358
+ tags?: boolean;
359
+ attachments?: boolean;
360
+ } & BaseQueryParams;
361
+ export type PostCopyPageResponse = {
362
+ 'pages.copied?': {
363
+ "@count"?: string;
364
+ page?: Partial<PageBase> | Partial<PageBase>[] | "";
365
+ } | "";
366
+ };
367
+ export type DeletePageFileNameParams = BaseQueryParams;
368
+ export type HeadPageFileNameParams = {
369
+ includeDeleted?: boolean;
370
+ revision?: string;
371
+ size?: "original" | "thumb" | "webview" | "bestfit" | "custom";
372
+ format?: "jpg" | "png" | "bmp" | "gif";
373
+ ratio?: "fixed" | "var";
374
+ width?: number;
375
+ height?: number;
376
+ } & BaseQueryParams;
377
+ export type PutPageFileNameParams = {
378
+ description?: string;
379
+ } & BaseQueryParams;
380
+ export type PutPageFileNameResponse = Partial<PageFile>;
381
+ export type DeletePageFileNameDescriptionParams = BaseQueryParams;
382
+ export type DeletePageFileNameDescriptionResponse = Partial<PageFile> & {
383
+ properties?: {
384
+ "@count"?: string;
385
+ "@href"?: string;
386
+ property?: Partial<PageProperty> | Partial<PageProperty>[] | "";
387
+ };
388
+ };
389
+ export type PutPageFileNameDescriptionParams = BaseQueryParams;
390
+ export type PutPageFileNameDescriptionResponse = Partial<PageFile> & {
391
+ properties?: {
392
+ "@count"?: string;
393
+ "@href"?: string;
394
+ property?: Partial<PageProperty> | Partial<PageProperty>[] | "";
395
+ };
396
+ };
397
+ export type PutPageFileNamePropertiesKeyParams = {
398
+ description?: string;
399
+ etag?: string;
400
+ abort?: "never" | "modified" | "exists";
401
+ } & BaseQueryParams;
402
+ export type PutPageFileNamePropertiesKeyResponse = PageProperty;
403
+ export type PutPageImportParams = {
404
+ behavior?: "sync" | "async";
405
+ filename?: string;
406
+ pageid?: number;
407
+ };
408
+ export type PutPageMoveParams = {
409
+ parentid?: number;
410
+ name?: string;
411
+ title?: string;
412
+ to?: string;
413
+ } & BaseQueryParams;
414
+ export type PutPageMoveResponse = {
415
+ "page.moved?": {
416
+ "@count"?: string;
417
+ page?: Partial<PageBase> | Partial<PageBase>[] | "";
418
+ } | "";
419
+ };
420
+ export type PutPageOrderParams = {
421
+ afterid?: number;
422
+ };
423
+ export type PostPagePropertiesParams = {
424
+ abort?: "never" | "modified" | "exists";
425
+ description?: string;
426
+ } & BaseQueryParams;
427
+ export type PostPagePropertiesResponse = PageProperty;
428
+ export type PutPagePropertiesParams = BaseQueryParams;
429
+ export type PutPagePropertiesResponse = {
430
+ properties?: {
431
+ "@count"?: string;
432
+ "@href"?: string;
433
+ property?: Partial<PageProperty> | Partial<PageProperty>[] | "";
434
+ };
435
+ };
436
+ export type DeletePagePropertiesKeyParams = BaseQueryParams;
437
+ export type PutPagePropertiesKeyParams = {
438
+ abort?: "never" | "modified" | "exists";
439
+ description?: string;
440
+ etag?: string;
441
+ } & BaseQueryParams;
442
+ export type PutPagePropertiesKeyResponse = PageProperty;
443
+ export type PostPageRatingsParams = {
444
+ score: number;
445
+ } & BaseQueryParams;
446
+ export type PostPageRevertParams = {
447
+ verbose?: boolean;
448
+ abort?: "never" | "conflict";
449
+ fromrevision?: string;
450
+ } & BaseQueryParams;
451
+ export type DeletePageSecurityParams = BaseQueryParams;
452
+ export type PostPageSecurityParams = {
453
+ cascade?: "none" | "delta";
454
+ } & BaseQueryParams;
455
+ export type PostPageSecurityResponse = Partial<PageSecurity>;
456
+ export type PutPageSecurityParams = {
457
+ cascade?: "none" | "delta" | "absolute";
458
+ } & BaseQueryParams;
459
+ export type PutPageSecurityResponse = Partial<PageSecurity>;
460
+ export type PutPageTagsParams = BaseQueryParams;
461
+ export type PutPageTagsResponse = Partial<Tags>;
462
+ export type PagePath = {
463
+ "@seo": string;
464
+ "@type": string;
465
+ "#text": string;
466
+ };
467
+ export type Subpages = {
468
+ page: Partial<Subpage>[] | Partial<Subpage>;
469
+ };
470
+ export type Subpage = {
471
+ "@id": string;
472
+ "@guid": string;
473
+ "@draft.state": string;
474
+ "@href": string;
475
+ "@deleted": string;
476
+ "date.created": string;
477
+ language: string;
478
+ namespace: string;
479
+ path: Partial<PagePath> | "";
480
+ subpages: Subpages | "";
481
+ title: string;
482
+ "uri.ui": string;
483
+ };
484
+ export type PageBase = {
485
+ "@id": string;
486
+ "@guid": string;
487
+ "@draft.state": string;
488
+ "@href": string;
489
+ "@deleted": string;
490
+ "@revision": string;
491
+ "@terminal": string;
492
+ "@subpages": string;
493
+ "@files": string;
494
+ article: string;
495
+ "date.created": string;
496
+ "date.modified": string;
497
+ language: string;
498
+ namespace: string;
499
+ path: Partial<PagePath> | "";
500
+ restriction: string;
501
+ security: Partial<PageSecurity> | "";
502
+ title: string;
503
+ "uri.ui": string;
504
+ };
505
+ export type PageExtended = {
506
+ "@unpublish": string;
507
+ aliases: {
508
+ [key: string]: string;
509
+ } | "";
510
+ comments: {
511
+ "@count"?: string;
512
+ "@href"?: string;
513
+ } | "";
514
+ contents: Partial<Contents> | "";
515
+ "contents.alt": {
516
+ "@type": string;
517
+ "@href": string;
518
+ } | "";
519
+ "date.edited": string;
520
+ description: string;
521
+ files: {
522
+ "@count?": string;
523
+ "@href?": string;
524
+ file?: Partial<PageFile> | Partial<PageFile>[] | "";
525
+ } | "";
526
+ inbound: {
527
+ "@count"?: string;
528
+ page?: Partial<PageBase> | Partial<PageBase>[] | "";
529
+ } | "";
530
+ "language.effective": string;
531
+ metrics: {
532
+ "metric.charcount"?: string;
533
+ "metric.views"?: string;
534
+ } | "";
535
+ outbound: {
536
+ "@count"?: string;
537
+ page?: Partial<PageBase> | Partial<PageBase>[] | "";
538
+ } | "";
539
+ "page.parent": Partial<PageBase> | "";
540
+ "page.redirectedfrom": string;
541
+ properties: {
542
+ "@count"?: string;
543
+ "@href"?: string;
544
+ property?: PageProperty[];
545
+ } | "";
546
+ rating: Partial<PageRating> | "";
547
+ revisions: Partial<PageRevision> | "";
548
+ "revisions.archive": Partial<PageRevision> | "";
549
+ subpages: {
550
+ "@href"?: string;
551
+ } | "";
552
+ summary: string;
553
+ tags: Partial<Tags> | "";
554
+ timeuuid: string;
555
+ "user.author": Partial<ExpertUser> | "";
556
+ "user.createdby": Partial<ExpertUser> | "";
557
+ };
558
+ export type PageRating = {
559
+ "@score": string;
560
+ "@count": string;
561
+ "@seated.score": string;
562
+ "@seated.count": string;
563
+ "@unseated.score": string;
564
+ "@unseated.count": string;
565
+ "@anonymous.score": string;
566
+ "@anonymous.count": string;
567
+ };
568
+ export type PageRevision = {
569
+ "@count": string;
570
+ "@deprecated": string;
571
+ "@totalcount": string;
572
+ "@href": string;
573
+ };
574
+ export type PageFile = {
575
+ "@id": string;
576
+ "@revision": string;
577
+ "@res-id": string;
578
+ "@href": string;
579
+ "@res-is-head": string;
580
+ "@res-is-deleted": string;
581
+ "@res-rev-is-deleted": string;
582
+ "@res-contents-id": string;
583
+ "alt-text": string;
584
+ contents: Partial<Contents> | "";
585
+ "contents.preview": Partial<ContentsPreview> | Partial<ContentsPreview>[] | "";
586
+ "date.created": string;
587
+ "date.last-modified": string;
588
+ description: string;
589
+ filename: string;
590
+ "page.parent": Partial<PageBase> | "";
591
+ revisions: Partial<PageRevision> | "";
592
+ "user-action": {
593
+ "@type"?: string;
594
+ } | "";
595
+ "user.createdBy": Partial<ExpertUser> | "";
596
+ };
597
+ export type PageTag = {
598
+ "@value": string;
599
+ "@id": string;
600
+ "@href": string;
601
+ title: string;
602
+ type: string;
603
+ uri: string;
604
+ related: {
605
+ "@count"?: string;
606
+ page?: Partial<PageBase> | Partial<PageBase>[] | "";
607
+ } | "";
608
+ };
609
+ export type Contents = {
610
+ "@type": string;
611
+ "@size": string;
612
+ "@width": string;
613
+ "@height": string;
614
+ "@href": string;
615
+ "#text": string;
616
+ properties: {
617
+ property: Partial<PageProperty> | Partial<PageProperty>[] | "";
618
+ } | "";
619
+ };
620
+ export type ContentsPreview = {
621
+ "@rel": string;
622
+ "@type": string;
623
+ "@maxwidth": string;
624
+ "@maxheight": string;
625
+ "@href": string;
626
+ "@etag": string;
627
+ };
628
+ export type Tags = {
629
+ "@count"?: string;
630
+ "@href"?: string;
631
+ tag?: Partial<PageTag> | Partial<PageTag>[] | "";
632
+ };
633
+ export type PageProperty = {
634
+ "@etag": string;
635
+ "@href": string;
636
+ "@name": string;
637
+ "@resid": string;
638
+ "@resource-is-deleted": string;
639
+ "@resource-rev-is-deleted": string;
640
+ "@revision": string;
641
+ "change-description": string;
642
+ contents: Pick<Contents, '@href' | '@size' | '#text' | '@type'>;
643
+ "date.modified": string;
644
+ "user.modified": ExpertUser;
645
+ };
646
+ export type page_subpage = {
647
+ "@totalcount": string;
648
+ "@count": string;
649
+ "@href": string;
650
+ "page.subpage": Partial<PageBase> | Partial<PageBase>[] | "";
651
+ };
652
+ export type exprCall = {
653
+ "@name": string;
654
+ "@elapsed": string;
655
+ "@avg": string;
656
+ "@max": string;
657
+ "@percent": string;
658
+ "@count": string;
659
+ "@mode": string;
660
+ function: functionCall | functionCall[] | "";
661
+ };
662
+ export type functionCall = {
663
+ "@name": string;
664
+ "@elapsed": string;
665
+ "@avg": string;
666
+ "@max": string;
667
+ "@percent": string;
668
+ "@count": string;
669
+ "@mode": string;
670
+ "@location": string;
671
+ expr: exprCall | exprCall[] | "";
672
+ };
673
+ export type importCall = {
674
+ "@name": string;
675
+ "@elapsed": string;
676
+ "@avg": string;
677
+ "@max": string;
678
+ "@percent": string;
679
+ "@count": string;
680
+ "@mode": string;
681
+ "@recursive": string;
682
+ "@location": string;
683
+ import: importCall | importCall[] | "";
684
+ };
685
+ export type pageCall = {
686
+ "@name": string;
687
+ "@elapsed": string;
688
+ "@avg": string;
689
+ "@max": string;
690
+ "@percent": string;
691
+ "@count": string;
692
+ "@mode": string;
693
+ import: importCall | importCall[] | "";
694
+ template: templateCall | templateCall[] | "";
695
+ };
696
+ export type propertyCall = {
697
+ "@name": string;
698
+ "@elapsed": string;
699
+ "@avg": string;
700
+ "@max": string;
701
+ "@percent": string;
702
+ "@count": string;
703
+ "@mode": string;
704
+ };
705
+ export type templateCall = {
706
+ "@name": string;
707
+ "@elapsed": string;
708
+ "@avg": string;
709
+ "@max": string;
710
+ "@percent": string;
711
+ "@count": string;
712
+ "@mode": string;
713
+ "@location": string;
714
+ function: functionCall | functionCall[] | "";
715
+ property: propertyCall | propertyCall[] | "";
716
+ template: templateCall | templateCall[] | "";
717
+ };
718
+ export type Entry = {
719
+ "@name": string;
720
+ "@value": string;
721
+ };
722
+ export type Query = {
723
+ "@name": string;
724
+ "@elapsed": string;
725
+ "@average": string;
726
+ "@max": string;
727
+ "@count": string;
728
+ };
729
+ export type DeletedPage = {
730
+ "@id": number;
731
+ "@href": string;
732
+ title: string;
733
+ path: string;
734
+ };
735
+ export type Allowed = {
736
+ "@id": string;
737
+ };
738
+ //# sourceMappingURL=pages.d.ts.map