@wirecat/wordpress-cli 0.0.0-stage → 0.1.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 (256) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/LICENSE +204 -0
  3. package/README.md +248 -2
  4. package/contracts/wirecat.json +2535 -0
  5. package/dist/bin/wordpress.d.ts +3 -0
  6. package/dist/bin/wordpress.d.ts.map +1 -0
  7. package/dist/bin/wordpress.js +40 -0
  8. package/dist/bin/wordpress.js.map +1 -0
  9. package/dist/bundle/agent-LKBRYKNB.js +37 -0
  10. package/dist/bundle/all-profiles-OEV7VFQG.js +320 -0
  11. package/dist/bundle/anthropic-JKTZP2DW.js +91 -0
  12. package/dist/bundle/app-server-7LWLDDE2.js +249 -0
  13. package/dist/bundle/bun-2FLR4IV4.js +169 -0
  14. package/dist/bundle/bun-sqlite-GRSRX5P4.js +76 -0
  15. package/dist/bundle/chunk-2BI25SEE.js +259 -0
  16. package/dist/bundle/chunk-2UEGJ5AJ.js +52 -0
  17. package/dist/bundle/chunk-2XUV7HNE.js +58 -0
  18. package/dist/bundle/chunk-2Z7UOXFC.js +16 -0
  19. package/dist/bundle/chunk-3BM6KBWP.js +2788 -0
  20. package/dist/bundle/chunk-3BRAZVHR.js +1010 -0
  21. package/dist/bundle/chunk-3LMW7U7F.js +1233 -0
  22. package/dist/bundle/chunk-3LVTQFGB.js +2000 -0
  23. package/dist/bundle/chunk-3TKFFSFU.js +106 -0
  24. package/dist/bundle/chunk-3UX4VJWD.js +78 -0
  25. package/dist/bundle/chunk-4HEXAGKT.js +334 -0
  26. package/dist/bundle/chunk-4HP6KGBI.js +32 -0
  27. package/dist/bundle/chunk-4ZAQMDLD.js +1308 -0
  28. package/dist/bundle/chunk-4ZTB7LS3.js +87 -0
  29. package/dist/bundle/chunk-5XPHFV7H.js +2333 -0
  30. package/dist/bundle/chunk-5Z3P543G.js +80 -0
  31. package/dist/bundle/chunk-6UYDKCV6.js +794 -0
  32. package/dist/bundle/chunk-7GNB4LBX.js +50 -0
  33. package/dist/bundle/chunk-7HJFBOAT.js +161 -0
  34. package/dist/bundle/chunk-7JVKQ6NM.js +206 -0
  35. package/dist/bundle/chunk-7QH5BZUG.js +142 -0
  36. package/dist/bundle/chunk-A474OVIW.js +1392 -0
  37. package/dist/bundle/chunk-AENEMQL3.js +1068 -0
  38. package/dist/bundle/chunk-AL7I4DT4.js +65718 -0
  39. package/dist/bundle/chunk-ARGRGTPX.js +108 -0
  40. package/dist/bundle/chunk-AV2ZJ4WX.js +7 -0
  41. package/dist/bundle/chunk-BAXNAOOL.js +76 -0
  42. package/dist/bundle/chunk-BH63B66W.js +407 -0
  43. package/dist/bundle/chunk-CCOSG3F2.js +24616 -0
  44. package/dist/bundle/chunk-CFQQTDSA.js +46 -0
  45. package/dist/bundle/chunk-CGCUOT67.js +388 -0
  46. package/dist/bundle/chunk-CHPWBQUK.js +39 -0
  47. package/dist/bundle/chunk-D72URWJE.js +532 -0
  48. package/dist/bundle/chunk-DFDN6AUB.js +21 -0
  49. package/dist/bundle/chunk-DQSOYH6N.js +20 -0
  50. package/dist/bundle/chunk-ECYOTDJM.js +14 -0
  51. package/dist/bundle/chunk-EH6ZEJGT.js +932 -0
  52. package/dist/bundle/chunk-EHW45LLT.js +100 -0
  53. package/dist/bundle/chunk-F3AV5ZSL.js +338 -0
  54. package/dist/bundle/chunk-F4BX7TH2.js +15 -0
  55. package/dist/bundle/chunk-F5ZAN7OC.js +6848 -0
  56. package/dist/bundle/chunk-FMMYBVCH.js +38 -0
  57. package/dist/bundle/chunk-FNB4SWTY.js +66 -0
  58. package/dist/bundle/chunk-FQROWBKV.js +12660 -0
  59. package/dist/bundle/chunk-FV2HJOSC.js +771 -0
  60. package/dist/bundle/chunk-GCAJW4SR.js +53 -0
  61. package/dist/bundle/chunk-GPRJXJC7.js +102 -0
  62. package/dist/bundle/chunk-HCOZUOSN.js +54 -0
  63. package/dist/bundle/chunk-HM6AMYHR.js +72 -0
  64. package/dist/bundle/chunk-HVXOA4FO.js +23 -0
  65. package/dist/bundle/chunk-HWQ7572G.js +95 -0
  66. package/dist/bundle/chunk-IJVTN5L3.js +82 -0
  67. package/dist/bundle/chunk-IZDDBOHU.js +3610 -0
  68. package/dist/bundle/chunk-JAE5B4G7.js +388 -0
  69. package/dist/bundle/chunk-K2Y5K37O.js +218 -0
  70. package/dist/bundle/chunk-KCH224US.js +9581 -0
  71. package/dist/bundle/chunk-KZJQPJK5.js +230 -0
  72. package/dist/bundle/chunk-L7P3LUDQ.js +286 -0
  73. package/dist/bundle/chunk-LECMHK2F.js +18 -0
  74. package/dist/bundle/chunk-LWEMZJLG.js +1332 -0
  75. package/dist/bundle/chunk-LWTETL2O.js +185 -0
  76. package/dist/bundle/chunk-MEYYH47C.js +25 -0
  77. package/dist/bundle/chunk-MJ6LTG4L.js +170 -0
  78. package/dist/bundle/chunk-NMQRSEZM.js +37 -0
  79. package/dist/bundle/chunk-ODVGFCBE.js +557 -0
  80. package/dist/bundle/chunk-OEQNP56V.js +633 -0
  81. package/dist/bundle/chunk-OV6WQY3L.js +39 -0
  82. package/dist/bundle/chunk-PL5P7UKW.js +25216 -0
  83. package/dist/bundle/chunk-PPNTY7LD.js +733 -0
  84. package/dist/bundle/chunk-PRZYRA66.js +358 -0
  85. package/dist/bundle/chunk-PV5UYGRJ.js +41594 -0
  86. package/dist/bundle/chunk-QYTOLPNI.js +52 -0
  87. package/dist/bundle/chunk-R7Y3XU66.js +362 -0
  88. package/dist/bundle/chunk-S4UUN6LD.js +1410 -0
  89. package/dist/bundle/chunk-SD5CXGIG.js +188 -0
  90. package/dist/bundle/chunk-SXY5G62I.js +288 -0
  91. package/dist/bundle/chunk-T37TAXVL.js +29 -0
  92. package/dist/bundle/chunk-T5SOY3AE.js +1197 -0
  93. package/dist/bundle/chunk-TJ7OORSO.js +1876 -0
  94. package/dist/bundle/chunk-TRYYWV7J.js +291 -0
  95. package/dist/bundle/chunk-U6VLNYCO.js +73 -0
  96. package/dist/bundle/chunk-UC7JLE6J.js +58 -0
  97. package/dist/bundle/chunk-UUIOAZPH.js +156 -0
  98. package/dist/bundle/chunk-UXQ24OY6.js +4072 -0
  99. package/dist/bundle/chunk-VBRRMGON.js +1007 -0
  100. package/dist/bundle/chunk-VRIBES2C.js +319 -0
  101. package/dist/bundle/chunk-XFLCVHSQ.js +50 -0
  102. package/dist/bundle/chunk-XT5XYQEZ.js +3414 -0
  103. package/dist/bundle/chunk-XTAS5Z3G.js +2231 -0
  104. package/dist/bundle/chunk-XYQVVW4R.js +24 -0
  105. package/dist/bundle/chunk-Y5E2WNWB.js +35 -0
  106. package/dist/bundle/chunk-YHWFF6DN.js +39 -0
  107. package/dist/bundle/chunk-YUDVRFXN.js +63 -0
  108. package/dist/bundle/chunk-Z3I2MCUT.js +131 -0
  109. package/dist/bundle/chunk-ZDI3WC7V.js +353 -0
  110. package/dist/bundle/chunk-ZVQ7KFMT.js +274 -0
  111. package/dist/bundle/chunk-ZVVMGPBJ.js +50 -0
  112. package/dist/bundle/command-contract-P7YE4EKS.js +37 -0
  113. package/dist/bundle/command-server-entry-XIMCBWMV.js +166 -0
  114. package/dist/bundle/decode-6XK55WYV.js +297 -0
  115. package/dist/bundle/definitions-GIQCGYPR.js +7986 -0
  116. package/dist/bundle/dispatch-JQBAZWCL.js +411 -0
  117. package/dist/bundle/dist-2TV3NVE5.js +7577 -0
  118. package/dist/bundle/dist-PAKDDIBT.js +191 -0
  119. package/dist/bundle/echarts-YRRVLEX3.js +42501 -0
  120. package/dist/bundle/embed-L3EEQSGX.js +38 -0
  121. package/dist/bundle/embedder-BIKLBV3J.js +111 -0
  122. package/dist/bundle/failure-I6AAF5R5.js +25 -0
  123. package/dist/bundle/first-run-W6G6TYZ2.js +29 -0
  124. package/dist/bundle/first-screen-ITIAJIBU.js +37 -0
  125. package/dist/bundle/hast-util-from-html-ZHU6HGIE.js +10531 -0
  126. package/dist/bundle/hast-util-to-html-IIFHILP5.js +998 -0
  127. package/dist/bundle/hast-util-to-mdast-D62XX3NR.js +2272 -0
  128. package/dist/bundle/instructions-AG7SRWTR.js +11 -0
  129. package/dist/bundle/mcp-YGOAUNC3.js +167 -0
  130. package/dist/bundle/mdast-util-from-markdown-WVUJDSUO.js +1900 -0
  131. package/dist/bundle/mdast-util-gfm-KN2D32QS.js +1040 -0
  132. package/dist/bundle/mdast-util-to-hast-AYJV7KAE.js +879 -0
  133. package/dist/bundle/mdast-util-to-markdown-UCAJNHJO.js +18 -0
  134. package/dist/bundle/meeting-combined-CQJ3JHHU.js +24 -0
  135. package/dist/bundle/meeting-model-MZ7VVBNK.js +25 -0
  136. package/dist/bundle/meeting-semantic-DADWRRHP.js +22 -0
  137. package/dist/bundle/micromark-extension-gfm-EEJRRJ36.js +1771 -0
  138. package/dist/bundle/node-GJQYN4FT.js +176 -0
  139. package/dist/bundle/node-JJ3WDCNJ.js +2340 -0
  140. package/dist/bundle/node-TLZSIHIJ.js +21 -0
  141. package/dist/bundle/node-sqlite-TPR62DT2.js +74 -0
  142. package/dist/bundle/oauth-WGY7JQVW.js +20 -0
  143. package/dist/bundle/open-DE7QZNAN.js +23 -0
  144. package/dist/bundle/openai-NHEFT3HS.js +238 -0
  145. package/dist/bundle/process-MEKCZMX3.js +91 -0
  146. package/dist/bundle/program-EP2S5BTM.js +38857 -0
  147. package/dist/bundle/prompt-PWY53BYH.js +17 -0
  148. package/dist/bundle/recognize-74TXHKMQ.js +26 -0
  149. package/dist/bundle/remote-F5TJZ5ER.js +31 -0
  150. package/dist/bundle/rerank-HWUO52UF.js +52 -0
  151. package/dist/bundle/schemas-4K6WWS5N.js +2157 -0
  152. package/dist/bundle/serve-I2USUY4X.js +199 -0
  153. package/dist/bundle/server-GDYDNO6K.js +79 -0
  154. package/dist/bundle/server-KYUW2AHB.js +212 -0
  155. package/dist/bundle/sqlite-runtime-N6VFGBJK.js +20 -0
  156. package/dist/bundle/state-L6JSCN77.js +36 -0
  157. package/dist/bundle/store-EPG2YPN3.js +291 -0
  158. package/dist/bundle/store-SQWQJE32.js +181 -0
  159. package/dist/bundle/store-maintenance-command-FTGSICVA.js +66 -0
  160. package/dist/bundle/surface-SNMHY6GP.js +65 -0
  161. package/dist/bundle/wordpress.js +183 -0
  162. package/dist/commands/api.d.ts +22 -0
  163. package/dist/commands/api.d.ts.map +1 -0
  164. package/dist/commands/api.js +37 -0
  165. package/dist/commands/api.js.map +1 -0
  166. package/dist/commands/content.d.ts +4 -0
  167. package/dist/commands/content.d.ts.map +1 -0
  168. package/dist/commands/content.js +94 -0
  169. package/dist/commands/content.js.map +1 -0
  170. package/dist/commands/session.d.ts +8 -0
  171. package/dist/commands/session.d.ts.map +1 -0
  172. package/dist/commands/session.js +28 -0
  173. package/dist/commands/session.js.map +1 -0
  174. package/dist/config.d.ts +13 -0
  175. package/dist/config.d.ts.map +1 -0
  176. package/dist/config.js +69 -0
  177. package/dist/config.js.map +1 -0
  178. package/dist/context.d.ts +37 -0
  179. package/dist/context.d.ts.map +1 -0
  180. package/dist/context.js +31 -0
  181. package/dist/context.js.map +1 -0
  182. package/dist/generated/definitions.d.ts +3 -0
  183. package/dist/generated/definitions.d.ts.map +1 -0
  184. package/dist/generated/definitions.js +7982 -0
  185. package/dist/generated/definitions.js.map +1 -0
  186. package/dist/generated/manifest.d.ts +6 -0
  187. package/dist/generated/manifest.d.ts.map +1 -0
  188. package/dist/generated/manifest.js +8830 -0
  189. package/dist/generated/manifest.js.map +1 -0
  190. package/dist/generated/schemas.d.ts +229 -0
  191. package/dist/generated/schemas.d.ts.map +1 -0
  192. package/dist/generated/schemas.js +2019 -0
  193. package/dist/generated/schemas.js.map +1 -0
  194. package/dist/generated/types.d.ts +3365 -0
  195. package/dist/generated/types.d.ts.map +1 -0
  196. package/dist/generated/types.js +5 -0
  197. package/dist/generated/types.js.map +1 -0
  198. package/dist/generated/wirecat-config.d.ts +11 -0
  199. package/dist/generated/wirecat-config.d.ts.map +1 -0
  200. package/dist/generated/wirecat-config.js +337 -0
  201. package/dist/generated/wirecat-config.js.map +1 -0
  202. package/dist/identity.d.ts +28 -0
  203. package/dist/identity.d.ts.map +1 -0
  204. package/dist/identity.js +29 -0
  205. package/dist/identity.js.map +1 -0
  206. package/dist/index.d.ts +3 -0
  207. package/dist/index.d.ts.map +1 -0
  208. package/dist/index.js +3 -0
  209. package/dist/index.js.map +1 -0
  210. package/dist/program.d.ts +6 -0
  211. package/dist/program.d.ts.map +1 -0
  212. package/dist/program.js +53 -0
  213. package/dist/program.js.map +1 -0
  214. package/dist/version.d.ts +2 -0
  215. package/dist/version.d.ts.map +1 -0
  216. package/dist/version.js +2 -0
  217. package/dist/version.js.map +1 -0
  218. package/dist/wcat.d.ts +3 -0
  219. package/dist/wcat.d.ts.map +1 -0
  220. package/dist/wcat.js +4 -0
  221. package/dist/wcat.js.map +1 -0
  222. package/package.json +87 -4
  223. package/skills/wordpress-cli/SKILL.md +88 -0
  224. package/skills/wordpress-cli/references/api/api-block-directory.md +17 -0
  225. package/skills/wordpress-cli/references/api/api-block-patterns.md +13 -0
  226. package/skills/wordpress-cli/references/api/api-block-types.md +34 -0
  227. package/skills/wordpress-cli/references/api/api-blocks.md +159 -0
  228. package/skills/wordpress-cli/references/api/api-categories.md +69 -0
  229. package/skills/wordpress-cli/references/api/api-comments.md +79 -0
  230. package/skills/wordpress-cli/references/api/api-font-collections.md +16 -0
  231. package/skills/wordpress-cli/references/api/api-font-families.md +122 -0
  232. package/skills/wordpress-cli/references/api/api-global-styles.md +29 -0
  233. package/skills/wordpress-cli/references/api/api-media.md +106 -0
  234. package/skills/wordpress-cli/references/api/api-menu-items.md +115 -0
  235. package/skills/wordpress-cli/references/api/api-menu-locations.md +22 -0
  236. package/skills/wordpress-cli/references/api/api-menus.md +69 -0
  237. package/skills/wordpress-cli/references/api/api-navigation.md +155 -0
  238. package/skills/wordpress-cli/references/api/api-pages.md +161 -0
  239. package/skills/wordpress-cli/references/api/api-pattern-directory.md +23 -0
  240. package/skills/wordpress-cli/references/api/api-plugins.md +25 -0
  241. package/skills/wordpress-cli/references/api/api-posts.md +166 -0
  242. package/skills/wordpress-cli/references/api/api-search.md +21 -0
  243. package/skills/wordpress-cli/references/api/api-settings.md +19 -0
  244. package/skills/wordpress-cli/references/api/api-sidebars.md +34 -0
  245. package/skills/wordpress-cli/references/api/api-statuses.md +22 -0
  246. package/skills/wordpress-cli/references/api/api-tags.md +69 -0
  247. package/skills/wordpress-cli/references/api/api-taxonomies.md +23 -0
  248. package/skills/wordpress-cli/references/api/api-template-parts.md +38 -0
  249. package/skills/wordpress-cli/references/api/api-templates.md +38 -0
  250. package/skills/wordpress-cli/references/api/api-themes.md +12 -0
  251. package/skills/wordpress-cli/references/api/api-types.md +22 -0
  252. package/skills/wordpress-cli/references/api/api-users.md +149 -0
  253. package/skills/wordpress-cli/references/api/api-widget-types.md +46 -0
  254. package/skills/wordpress-cli/references/api/api-widgets.md +57 -0
  255. package/skills/wordpress-cli/references/api/api-wp-pattern-category.md +69 -0
  256. package/skills/wordpress-cli/references/api.md +44 -0
@@ -0,0 +1,3365 @@
1
+ export type BlockDirectoryItem = {
2
+ /** The number sites that have activated this block. */
3
+ active_installs?: number;
4
+ /** The WordPress.org username of the block author. */
5
+ author?: string;
6
+ /** The number of blocks published by the same author. */
7
+ author_block_count?: number;
8
+ /** The average rating of blocks published by the same author. */
9
+ author_block_rating?: number;
10
+ /** A short description of the block, in human readable format. */
11
+ description?: string;
12
+ /** The date when the block was last updated, in human readable format. */
13
+ humanized_updated?: string;
14
+ /** The block icon. */
15
+ icon?: string;
16
+ /** The block slug. */
17
+ id?: string;
18
+ /** The date when the block was last updated. */
19
+ last_updated?: string;
20
+ /** The block name, in namespace/block-name format. */
21
+ name?: string;
22
+ /** The star rating of the block. */
23
+ rating?: number;
24
+ /** The number of ratings. */
25
+ rating_count?: number;
26
+ /** The block title, in human readable format. */
27
+ title?: string;
28
+ };
29
+ export type BlockPatternCategory = {
30
+ /** The category description, in human readable format. */
31
+ description?: string;
32
+ /** The category label, in human readable format. */
33
+ label?: string;
34
+ /** The category name. */
35
+ name?: string;
36
+ };
37
+ export type BlockPattern = {
38
+ /** Block types that the pattern is intended to be used with. */
39
+ block_types?: Array<unknown>;
40
+ /** The pattern category slugs. */
41
+ categories?: Array<unknown>;
42
+ /** The pattern content. */
43
+ content?: string;
44
+ /** The pattern detailed description. */
45
+ description?: string;
46
+ /** Determines whether the pattern is visible in inserter. */
47
+ inserter?: boolean;
48
+ /** The pattern keywords. */
49
+ keywords?: Array<unknown>;
50
+ /** The pattern name. */
51
+ name?: string;
52
+ /** An array of post types that the pattern is restricted to be used with. */
53
+ post_types?: Array<unknown>;
54
+ /** Where the pattern comes from e.g. core */
55
+ source?: "core" | "plugin" | "theme" | "pattern-directory/core" | "pattern-directory/theme" | "pattern-directory/featured";
56
+ /** An array of template types where the pattern fits. */
57
+ template_types?: Array<unknown>;
58
+ /** The pattern title, in human readable format. */
59
+ title?: string;
60
+ /** The pattern viewport width for inserter preview. */
61
+ viewport_width?: number;
62
+ };
63
+ export type BlockType = {
64
+ /** Allowed child block types. */
65
+ allowed_blocks?: Array<string> | null;
66
+ /** Ancestor blocks. */
67
+ ancestor?: Array<string> | null;
68
+ /** Version of block API. */
69
+ api_version?: number;
70
+ /** Block attributes. */
71
+ attributes?: {
72
+ [key: string]: Record<string, unknown>;
73
+ } | null;
74
+ /** This block is automatically inserted near any occurrence of the block types used as keys of this map, into a relative position given by the corresponding value. */
75
+ block_hooks?: {
76
+ [key: string]: "before" | "after" | "first_child" | "last_child";
77
+ };
78
+ /** Block category. */
79
+ category?: string | null;
80
+ /** Description of block type. */
81
+ description?: string;
82
+ /** Editor script handle. DEPRECATED: Use `editor_script_handles` instead. */
83
+ editor_script?: string | null;
84
+ /** Editor script handles. */
85
+ editor_script_handles?: Array<string>;
86
+ /** Editor style handle. DEPRECATED: Use `editor_style_handles` instead. */
87
+ editor_style?: string | null;
88
+ /** Editor style handles. */
89
+ editor_style_handles?: Array<string>;
90
+ /** Block example. */
91
+ example?: {
92
+ /** The attributes used in the example. */
93
+ attributes?: Record<string, unknown>;
94
+ /** The list of inner blocks used in the example. */
95
+ innerBlocks?: Array<{
96
+ /** The attributes of the inner block. */
97
+ attributes?: Record<string, unknown>;
98
+ /** A list of the inner block's own inner blocks. This is a recursive definition following the parent innerBlocks schema. */
99
+ innerBlocks?: Array<unknown>;
100
+ /** The name of the inner block. */
101
+ name: string;
102
+ }>;
103
+ } | null;
104
+ /** Icon of block type. */
105
+ icon?: string | null;
106
+ /** Is the block dynamically rendered. */
107
+ is_dynamic?: boolean;
108
+ /** Block keywords. */
109
+ keywords?: Array<string>;
110
+ /** Unique name identifying the block type. */
111
+ name: string;
112
+ /** Parent blocks. */
113
+ parent?: Array<string> | null;
114
+ /** Context provided by blocks of this type. */
115
+ provides_context?: {
116
+ [key: string]: string;
117
+ };
118
+ /** Public facing and editor script handle. DEPRECATED: Use `script_handles` instead. */
119
+ script?: string | null;
120
+ /** Public facing and editor script handles. */
121
+ script_handles?: Array<string>;
122
+ /** Custom CSS selectors. */
123
+ selectors?: Record<string, unknown>;
124
+ /** Public facing and editor style handle. DEPRECATED: Use `style_handles` instead. */
125
+ style?: string | null;
126
+ /** Public facing and editor style handles. */
127
+ style_handles?: Array<string>;
128
+ /** Block style variations. */
129
+ styles?: Array<{
130
+ /** Inline CSS code that registers the CSS class required for the style. */
131
+ inline_style?: string;
132
+ /** The human-readable label for the style. */
133
+ label?: string;
134
+ /** Unique name identifying the style. */
135
+ name: string;
136
+ /** Contains the handle that defines the block style. */
137
+ style_handle?: string;
138
+ }>;
139
+ /** Block supports. */
140
+ supports?: Record<string, unknown>;
141
+ /** Public text domain. */
142
+ textdomain?: string | null;
143
+ /** Title of block type. */
144
+ title?: string;
145
+ /** Context values inherited by blocks of this type. */
146
+ uses_context?: Array<string>;
147
+ /** Block variations. */
148
+ variations?: Array<{
149
+ /** The initial values for attributes. */
150
+ attributes?: Record<string, unknown>;
151
+ /** Block category. */
152
+ category?: string | null;
153
+ /** A detailed variation description. */
154
+ description?: string;
155
+ /** Block example. */
156
+ example?: {
157
+ /** The attributes used in the example. */
158
+ attributes?: Record<string, unknown>;
159
+ /** The list of inner blocks used in the example. */
160
+ innerBlocks?: Array<{
161
+ /** The attributes of the inner block. */
162
+ attributes?: Record<string, unknown>;
163
+ /** A list of the inner block's own inner blocks. This is a recursive definition following the parent innerBlocks schema. */
164
+ innerBlocks?: Array<unknown>;
165
+ /** The name of the inner block. */
166
+ name: string;
167
+ }>;
168
+ } | null;
169
+ /** Icon of block type. */
170
+ icon?: string | null;
171
+ /** The list of inner blocks used in the example. */
172
+ innerBlocks?: Array<{
173
+ /** The attributes of the inner block. */
174
+ attributes?: Record<string, unknown>;
175
+ /** A list of the inner block's own inner blocks. This is a recursive definition following the parent innerBlocks schema. */
176
+ innerBlocks?: Array<unknown>;
177
+ /** The name of the inner block. */
178
+ name: string;
179
+ }>;
180
+ /** Indicates whether the current variation is the default one. */
181
+ isDefault?: boolean;
182
+ /** Block keywords. */
183
+ keywords?: Array<string>;
184
+ /** The unique and machine-readable name. */
185
+ name: string;
186
+ /** The list of scopes where the variation is applicable. When not provided, it assumes all available scopes. */
187
+ scope?: Array<"block" | "inserter" | "transform"> | null;
188
+ /** A human-readable variation title. */
189
+ title: string;
190
+ }>;
191
+ /** Public facing script handle. DEPRECATED: Use `view_script_handles` instead. */
192
+ view_script?: string | null;
193
+ /** Public facing script handles. */
194
+ view_script_handles?: Array<string>;
195
+ /** Public facing script module IDs. */
196
+ view_script_module_ids?: Array<string>;
197
+ /** Public facing style handles. */
198
+ view_style_handles?: Array<string>;
199
+ };
200
+ export type WpBlock = {
201
+ /** The content for the post. */
202
+ content?: {
203
+ /** Version of the content block format used by the post. */
204
+ block_version?: number;
205
+ /** Whether the content is protected with a password. */
206
+ protected?: boolean;
207
+ /** Content for the post, as it exists in the database. */
208
+ raw?: string;
209
+ };
210
+ /** The date the post was published, in the site's timezone. */
211
+ date?: string | null;
212
+ /** The date the post was published, as GMT. */
213
+ date_gmt?: string | null;
214
+ /** The excerpt for the post. */
215
+ excerpt?: {
216
+ /** Whether the excerpt is protected with a password. */
217
+ protected?: boolean;
218
+ /** Excerpt for the post, as it exists in the database. */
219
+ raw?: string;
220
+ /** HTML excerpt for the post, transformed for display. */
221
+ rendered?: string;
222
+ };
223
+ /** The globally unique identifier for the post. */
224
+ guid?: {
225
+ /** GUID for the post, as it exists in the database. */
226
+ raw?: string;
227
+ /** GUID for the post, transformed for display. */
228
+ rendered?: string;
229
+ };
230
+ /** Unique identifier for the post. */
231
+ id?: number;
232
+ /** URL to the post. */
233
+ link?: string;
234
+ /** Meta fields. */
235
+ meta?: {
236
+ footnotes?: string;
237
+ wp_pattern_sync_status?: "partial" | "unsynced";
238
+ };
239
+ /** The date the post was last modified, in the site's timezone. */
240
+ modified?: string;
241
+ /** The date the post was last modified, as GMT. */
242
+ modified_gmt?: string;
243
+ /** A password to protect access to the content and excerpt. */
244
+ password?: string;
245
+ /** An alphanumeric identifier for the post unique to its type. */
246
+ slug?: string;
247
+ /** A named status for the post. */
248
+ status?: "publish" | "future" | "draft" | "pending" | "private";
249
+ /** The theme file to use to display the post. */
250
+ template?: string;
251
+ /** The title for the post. */
252
+ title?: {
253
+ /** Title for the post, as it exists in the database. */
254
+ raw?: string;
255
+ };
256
+ /** Type of post. */
257
+ type?: string;
258
+ /** The terms assigned to the post in the wp_pattern_category taxonomy. */
259
+ wp_pattern_category?: Array<number>;
260
+ };
261
+ export type WpBlockRevision = {
262
+ /** The ID for the author of the revision. */
263
+ author?: number;
264
+ /** The content for the post. */
265
+ content?: {
266
+ /** Version of the content block format used by the post. */
267
+ block_version?: number;
268
+ /** Whether the content is protected with a password. */
269
+ protected?: boolean;
270
+ /** Content for the post, as it exists in the database. */
271
+ raw?: string;
272
+ };
273
+ /** The date the revision was published, in the site's timezone. */
274
+ date?: string;
275
+ /** The date the revision was published, as GMT. */
276
+ date_gmt?: string;
277
+ /** The excerpt for the post. */
278
+ excerpt?: {
279
+ /** Whether the excerpt is protected with a password. */
280
+ protected?: boolean;
281
+ /** Excerpt for the post, as it exists in the database. */
282
+ raw?: string;
283
+ /** HTML excerpt for the post, transformed for display. */
284
+ rendered?: string;
285
+ };
286
+ /** The globally unique identifier for the post. */
287
+ guid?: {
288
+ /** GUID for the post, as it exists in the database. */
289
+ raw?: string;
290
+ /** GUID for the post, transformed for display. */
291
+ rendered?: string;
292
+ };
293
+ /** Unique identifier for the revision. */
294
+ id?: number;
295
+ /** Meta fields. */
296
+ meta?: {
297
+ footnotes?: string;
298
+ wp_pattern_sync_status?: "partial" | "unsynced";
299
+ };
300
+ /** The date the revision was last modified, in the site's timezone. */
301
+ modified?: string;
302
+ /** The date the revision was last modified, as GMT. */
303
+ modified_gmt?: string;
304
+ /** The ID for the parent of the revision. */
305
+ parent?: number;
306
+ /** Preview link for the post. */
307
+ preview_link?: string;
308
+ /** An alphanumeric identifier for the revision unique to its type. */
309
+ slug?: string;
310
+ /** The title for the post. */
311
+ title?: {
312
+ /** Title for the post, as it exists in the database. */
313
+ raw?: string;
314
+ };
315
+ };
316
+ export type WpBlockRevision2 = {
317
+ /** The ID for the author of the revision. */
318
+ author?: number;
319
+ /** The content for the post. */
320
+ content?: {
321
+ /** Version of the content block format used by the post. */
322
+ block_version?: number;
323
+ /** Whether the content is protected with a password. */
324
+ protected?: boolean;
325
+ /** Content for the post, as it exists in the database. */
326
+ raw?: string;
327
+ };
328
+ /** The date the revision was published, in the site's timezone. */
329
+ date?: string;
330
+ /** The date the revision was published, as GMT. */
331
+ date_gmt?: string;
332
+ /** The excerpt for the post. */
333
+ excerpt?: {
334
+ /** Whether the excerpt is protected with a password. */
335
+ protected?: boolean;
336
+ /** Excerpt for the post, as it exists in the database. */
337
+ raw?: string;
338
+ /** HTML excerpt for the post, transformed for display. */
339
+ rendered?: string;
340
+ };
341
+ /** The globally unique identifier for the post. */
342
+ guid?: {
343
+ /** GUID for the post, as it exists in the database. */
344
+ raw?: string;
345
+ /** GUID for the post, transformed for display. */
346
+ rendered?: string;
347
+ };
348
+ /** Unique identifier for the revision. */
349
+ id?: number;
350
+ /** Meta fields. */
351
+ meta?: {
352
+ footnotes?: string;
353
+ wp_pattern_sync_status?: "partial" | "unsynced";
354
+ };
355
+ /** The date the revision was last modified, in the site's timezone. */
356
+ modified?: string;
357
+ /** The date the revision was last modified, as GMT. */
358
+ modified_gmt?: string;
359
+ /** The ID for the parent of the revision. */
360
+ parent?: number;
361
+ /** An alphanumeric identifier for the revision unique to its type. */
362
+ slug?: string;
363
+ /** The title for the post. */
364
+ title?: {
365
+ /** Title for the post, as it exists in the database. */
366
+ raw?: string;
367
+ };
368
+ };
369
+ export type Category = {
370
+ /** Number of published posts for the term. */
371
+ count?: number;
372
+ /** HTML description of the term. */
373
+ description?: string;
374
+ /** Unique identifier for the term. */
375
+ id?: number;
376
+ /** URL of the term. */
377
+ link?: string;
378
+ /** Meta fields. */
379
+ meta?: Record<string, unknown>;
380
+ /** HTML title for the term. */
381
+ name: string;
382
+ /** The parent term ID. */
383
+ parent?: number;
384
+ /** An alphanumeric identifier for the term unique to its type. */
385
+ slug?: string;
386
+ /** Type attribution for the term. */
387
+ taxonomy?: "category";
388
+ };
389
+ export type Comment = {
390
+ /** The ID of the user object, if author was a user. */
391
+ author?: number;
392
+ /** Avatar URLs for the comment author. */
393
+ author_avatar_urls?: {
394
+ /** Avatar URL with image size of 24 pixels. */
395
+ "24"?: string;
396
+ /** Avatar URL with image size of 48 pixels. */
397
+ "48"?: string;
398
+ /** Avatar URL with image size of 96 pixels. */
399
+ "96"?: string;
400
+ };
401
+ /** Email address for the comment author. */
402
+ author_email?: string;
403
+ /** IP address for the comment author. */
404
+ author_ip?: string;
405
+ /** Display name for the comment author. */
406
+ author_name?: string;
407
+ /** URL for the comment author. */
408
+ author_url?: string;
409
+ /** User agent for the comment author. */
410
+ author_user_agent?: string;
411
+ /** The content for the comment. */
412
+ content?: {
413
+ /** Content for the comment, as it exists in the database. */
414
+ raw?: string;
415
+ /** HTML content for the comment, transformed for display. */
416
+ rendered?: string;
417
+ };
418
+ /** The date the comment was published, in the site's timezone. */
419
+ date?: string;
420
+ /** The date the comment was published, as GMT. */
421
+ date_gmt?: string;
422
+ /** Unique identifier for the comment. */
423
+ id?: number;
424
+ /** URL to the comment. */
425
+ link?: string;
426
+ /** Meta fields. */
427
+ meta?: {
428
+ /** Note resolution status */
429
+ _wp_note_status?: "resolved" | "reopen";
430
+ };
431
+ /** The ID for the parent of the comment. */
432
+ parent?: number;
433
+ /** The ID of the associated post object. */
434
+ post?: number;
435
+ /** State of the comment. */
436
+ status?: string;
437
+ /** Type of the comment. */
438
+ type?: string;
439
+ };
440
+ export type FontCollection = {
441
+ /** The categories for the font collection. */
442
+ categories?: Array<unknown>;
443
+ /** The description for the font collection. */
444
+ description?: string;
445
+ /** The font families for the font collection. */
446
+ font_families?: Array<unknown>;
447
+ /** The name for the font collection. */
448
+ name?: string;
449
+ /** Unique identifier for the font collection. */
450
+ slug?: string;
451
+ };
452
+ export type WpFontFamily = {
453
+ /** The IDs of the child font faces in the font family. */
454
+ font_faces?: Array<number>;
455
+ /** font-face definition in theme.json format. */
456
+ font_family_settings?: {
457
+ /** CSS font-family value. */
458
+ fontFamily: string;
459
+ /** Name of the font family preset, translatable. */
460
+ name: string;
461
+ /** URL to a preview image of the font family. */
462
+ preview?: string;
463
+ /** Kebab-case unique identifier for the font family preset. */
464
+ slug: string;
465
+ };
466
+ /** Unique identifier for the post. */
467
+ id?: number;
468
+ /** Version of the theme.json schema used for the typography settings. */
469
+ theme_json_version?: number;
470
+ };
471
+ export type WpFontFace = {
472
+ /** font-face declaration in theme.json format. */
473
+ font_face_settings?: {
474
+ /** CSS ascent-override value. */
475
+ ascentOverride?: string;
476
+ /** CSS descent-override value. */
477
+ descentOverride?: string;
478
+ /** CSS font-display value. */
479
+ fontDisplay?: "auto" | "block" | "fallback" | "swap" | "optional";
480
+ /** CSS font-family value. */
481
+ fontFamily: string;
482
+ /** CSS font-feature-settings value. */
483
+ fontFeatureSettings?: string;
484
+ /** CSS font-stretch value. */
485
+ fontStretch?: string;
486
+ /** CSS font-style value. */
487
+ fontStyle?: string;
488
+ /** CSS font-variant value. */
489
+ fontVariant?: string;
490
+ /** CSS font-variation-settings value. */
491
+ fontVariationSettings?: string;
492
+ /** List of available font weights, separated by a space. */
493
+ fontWeight?: string | number;
494
+ /** CSS line-gap-override value. */
495
+ lineGapOverride?: string;
496
+ /** URL to a preview image of the font face. */
497
+ preview?: string;
498
+ /** CSS size-adjust value. */
499
+ sizeAdjust?: string;
500
+ /** Paths or URLs to the font files. */
501
+ src: string | Array<string>;
502
+ /** CSS unicode-range value. */
503
+ unicodeRange?: string;
504
+ };
505
+ /** Unique identifier for the post. */
506
+ id?: number;
507
+ /** The ID for the parent font family of the font face. */
508
+ parent?: number;
509
+ /** Version of the theme.json schema used for the typography settings. */
510
+ theme_json_version?: number;
511
+ };
512
+ export type WpGlobalStylesRevision = {
513
+ /** The ID for the author of the revision. */
514
+ author?: number;
515
+ /** The date the revision was published, in the site's timezone. */
516
+ date?: string;
517
+ /** The date the revision was published, as GMT. */
518
+ date_gmt?: string;
519
+ /** ID of global styles config. */
520
+ id?: number;
521
+ /** The date the revision was last modified, in the site's timezone. */
522
+ modified?: string;
523
+ /** The date the revision was last modified, as GMT. */
524
+ modified_gmt?: string;
525
+ /** The ID for the parent of the revision. */
526
+ parent?: number;
527
+ /** Global settings. */
528
+ settings?: Record<string, unknown>;
529
+ /** Global styles. */
530
+ styles?: Record<string, unknown>;
531
+ };
532
+ export type Attachment = {
533
+ /** Alternative text to display when attachment is not displayed. */
534
+ alt_text?: string;
535
+ /** The ID for the author of the post. */
536
+ author?: number;
537
+ /** The attachment caption. */
538
+ caption?: {
539
+ /** Caption for the attachment, as it exists in the database. */
540
+ raw?: string;
541
+ /** HTML caption for the attachment, transformed for display. */
542
+ rendered?: string;
543
+ };
544
+ /** An array of the class names for the post container element. */
545
+ class_list?: Array<string>;
546
+ /** Whether or not comments are open on the post. */
547
+ comment_status?: "open" | "closed";
548
+ /** The date the post was published, in the site's timezone. */
549
+ date?: string | null;
550
+ /** The date the post was published, as GMT. */
551
+ date_gmt?: string | null;
552
+ /** The attachment description. */
553
+ description?: {
554
+ /** Description for the attachment, as it exists in the database. */
555
+ raw?: string;
556
+ /** HTML description for the attachment, transformed for display. */
557
+ rendered?: string;
558
+ };
559
+ /** The ID of the featured media for the post. */
560
+ featured_media?: number;
561
+ /** Slug automatically generated from the post title. */
562
+ generated_slug?: string;
563
+ /** The globally unique identifier for the post. */
564
+ guid?: {
565
+ /** GUID for the post, as it exists in the database. */
566
+ raw?: string;
567
+ /** GUID for the post, transformed for display. */
568
+ rendered?: string;
569
+ };
570
+ /** Unique identifier for the post. */
571
+ id?: number;
572
+ /** URL to the post. */
573
+ link?: string;
574
+ /** Details about the media file, specific to its type. */
575
+ media_details?: Record<string, unknown>;
576
+ /** Attachment type. */
577
+ media_type?: "image" | "file";
578
+ /** Meta fields. */
579
+ meta?: Record<string, unknown>;
580
+ /** The attachment MIME type. */
581
+ mime_type?: string;
582
+ /** List of the missing image sizes of the attachment. */
583
+ missing_image_sizes?: Array<string>;
584
+ /** The date the post was last modified, in the site's timezone. */
585
+ modified?: string;
586
+ /** The date the post was last modified, as GMT. */
587
+ modified_gmt?: string;
588
+ /** Permalink template for the post. */
589
+ permalink_template?: string;
590
+ /** Whether or not the post can be pinged. */
591
+ ping_status?: "open" | "closed";
592
+ /** The ID for the associated post of the attachment. */
593
+ post?: number;
594
+ /** An alphanumeric identifier for the post unique to its type. */
595
+ slug?: string;
596
+ /** URL to the original attachment file. */
597
+ source_url?: string;
598
+ /** A named status for the post. */
599
+ status?: "publish" | "future" | "draft" | "pending" | "private";
600
+ /** The theme file to use to display the post. */
601
+ template?: string;
602
+ /** The title for the post. */
603
+ title?: {
604
+ /** Title for the post, as it exists in the database. */
605
+ raw?: string;
606
+ /** HTML title for the post, transformed for display. */
607
+ rendered?: string;
608
+ };
609
+ /** Type of post. */
610
+ type?: string;
611
+ };
612
+ export type NavMenuItem = {
613
+ /** Text for the title attribute of the link element for this menu item. */
614
+ attr_title?: string;
615
+ /** Class names for the link element of this menu item. */
616
+ classes?: Array<string>;
617
+ /** The description of this menu item. */
618
+ description?: string;
619
+ /** Unique identifier for the object. */
620
+ id?: number;
621
+ /** Whether the menu item represents an object that no longer exists. */
622
+ invalid?: boolean;
623
+ /** The DB ID of the nav_menu_item that is this item's menu parent, if any, otherwise 0. */
624
+ menu_order?: number;
625
+ /** The terms assigned to the object in the nav_menu taxonomy. */
626
+ menus?: number;
627
+ /** Meta fields. */
628
+ meta?: Record<string, unknown>;
629
+ /** The type of object originally represented, such as "category", "post", or "attachment". */
630
+ object?: string;
631
+ /** The database ID of the original object this menu item represents, for example the ID for posts or the term_id for categories. */
632
+ object_id?: number;
633
+ /** The ID for the parent of the object. */
634
+ parent?: number;
635
+ /** A named status for the object. */
636
+ status?: "publish" | "future" | "draft" | "pending" | "private";
637
+ /** The target attribute of the link element for this menu item. */
638
+ target?: "_blank" | "";
639
+ /** The title for the object. */
640
+ title?: string | {
641
+ /** Title for the object, as it exists in the database. */
642
+ raw?: string;
643
+ /** HTML title for the object, transformed for display. */
644
+ rendered?: string;
645
+ };
646
+ /** The family of objects originally represented, such as "post_type" or "taxonomy". */
647
+ type?: "taxonomy" | "post_type" | "post_type_archive" | "custom";
648
+ /** The singular label used to describe this type of menu item. */
649
+ type_label?: string;
650
+ /** The URL to which this menu item points. */
651
+ url?: string;
652
+ /** The XFN relationship expressed in the link of this menu item. */
653
+ xfn?: Array<string>;
654
+ };
655
+ export type NavMenuItemRevision = {
656
+ /** The ID for the author of the revision. */
657
+ author?: number;
658
+ /** The date the revision was published, in the site's timezone. */
659
+ date?: string;
660
+ /** The date the revision was published, as GMT. */
661
+ date_gmt?: string;
662
+ /** GUID for the revision, as it exists in the database. */
663
+ guid?: string;
664
+ /** Unique identifier for the revision. */
665
+ id?: number;
666
+ /** Meta fields. */
667
+ meta?: Record<string, unknown>;
668
+ /** The date the revision was last modified, in the site's timezone. */
669
+ modified?: string;
670
+ /** The date the revision was last modified, as GMT. */
671
+ modified_gmt?: string;
672
+ /** The ID for the parent of the revision. */
673
+ parent?: number;
674
+ /** Preview link for the post. */
675
+ preview_link?: string;
676
+ /** An alphanumeric identifier for the revision unique to its type. */
677
+ slug?: string;
678
+ /** The title for the object. */
679
+ title?: string | {
680
+ /** Title for the object, as it exists in the database. */
681
+ raw?: string;
682
+ /** HTML title for the object, transformed for display. */
683
+ rendered?: string;
684
+ };
685
+ };
686
+ export type MenuLocation = {
687
+ /** The description of the menu location. */
688
+ description?: string;
689
+ /** The ID of the assigned menu. */
690
+ menu?: number;
691
+ /** The name of the menu location. */
692
+ name?: string;
693
+ };
694
+ export type NavMenu = {
695
+ /** Whether to automatically add top level pages to this menu. */
696
+ auto_add?: boolean;
697
+ /** HTML description of the term. */
698
+ description?: string;
699
+ /** Unique identifier for the term. */
700
+ id?: number;
701
+ /** The locations assigned to the menu. */
702
+ locations?: Array<string>;
703
+ /** Meta fields. */
704
+ meta?: Record<string, unknown>;
705
+ /** HTML title for the term. */
706
+ name: string;
707
+ /** An alphanumeric identifier for the term unique to its type. */
708
+ slug?: string;
709
+ };
710
+ export type WpNavigation = {
711
+ /** The content for the post. */
712
+ content?: {
713
+ /** Version of the content block format used by the post. */
714
+ block_version?: number;
715
+ /** Whether the content is protected with a password. */
716
+ protected?: boolean;
717
+ /** Content for the post, as it exists in the database. */
718
+ raw?: string;
719
+ /** HTML content for the post, transformed for display. */
720
+ rendered?: string;
721
+ };
722
+ /** The date the post was published, in the site's timezone. */
723
+ date?: string | null;
724
+ /** The date the post was published, as GMT. */
725
+ date_gmt?: string | null;
726
+ /** The globally unique identifier for the post. */
727
+ guid?: {
728
+ /** GUID for the post, as it exists in the database. */
729
+ raw?: string;
730
+ /** GUID for the post, transformed for display. */
731
+ rendered?: string;
732
+ };
733
+ /** Unique identifier for the post. */
734
+ id?: number;
735
+ /** URL to the post. */
736
+ link?: string;
737
+ /** The date the post was last modified, in the site's timezone. */
738
+ modified?: string;
739
+ /** The date the post was last modified, as GMT. */
740
+ modified_gmt?: string;
741
+ /** A password to protect access to the content and excerpt. */
742
+ password?: string;
743
+ /** An alphanumeric identifier for the post unique to its type. */
744
+ slug?: string;
745
+ /** A named status for the post. */
746
+ status?: "publish" | "future" | "draft" | "pending" | "private";
747
+ /** The theme file to use to display the post. */
748
+ template?: string;
749
+ /** The title for the post. */
750
+ title?: {
751
+ /** Title for the post, as it exists in the database. */
752
+ raw?: string;
753
+ /** HTML title for the post, transformed for display. */
754
+ rendered?: string;
755
+ };
756
+ /** Type of post. */
757
+ type?: string;
758
+ };
759
+ export type WpNavigationRevision = {
760
+ /** The ID for the author of the revision. */
761
+ author?: number;
762
+ /** The content for the post. */
763
+ content?: {
764
+ /** Version of the content block format used by the post. */
765
+ block_version?: number;
766
+ /** Whether the content is protected with a password. */
767
+ protected?: boolean;
768
+ /** Content for the post, as it exists in the database. */
769
+ raw?: string;
770
+ /** HTML content for the post, transformed for display. */
771
+ rendered?: string;
772
+ };
773
+ /** The date the revision was published, in the site's timezone. */
774
+ date?: string;
775
+ /** The date the revision was published, as GMT. */
776
+ date_gmt?: string;
777
+ /** The globally unique identifier for the post. */
778
+ guid?: {
779
+ /** GUID for the post, as it exists in the database. */
780
+ raw?: string;
781
+ /** GUID for the post, transformed for display. */
782
+ rendered?: string;
783
+ };
784
+ /** Unique identifier for the revision. */
785
+ id?: number;
786
+ /** Meta fields. */
787
+ meta?: Record<string, unknown>;
788
+ /** The date the revision was last modified, in the site's timezone. */
789
+ modified?: string;
790
+ /** The date the revision was last modified, as GMT. */
791
+ modified_gmt?: string;
792
+ /** The ID for the parent of the revision. */
793
+ parent?: number;
794
+ /** Preview link for the post. */
795
+ preview_link?: string;
796
+ /** An alphanumeric identifier for the revision unique to its type. */
797
+ slug?: string;
798
+ /** The title for the post. */
799
+ title?: {
800
+ /** Title for the post, as it exists in the database. */
801
+ raw?: string;
802
+ /** HTML title for the post, transformed for display. */
803
+ rendered?: string;
804
+ };
805
+ };
806
+ export type WpNavigationRevision2 = {
807
+ /** The ID for the author of the revision. */
808
+ author?: number;
809
+ /** The content for the post. */
810
+ content?: {
811
+ /** Version of the content block format used by the post. */
812
+ block_version?: number;
813
+ /** Whether the content is protected with a password. */
814
+ protected?: boolean;
815
+ /** Content for the post, as it exists in the database. */
816
+ raw?: string;
817
+ /** HTML content for the post, transformed for display. */
818
+ rendered?: string;
819
+ };
820
+ /** The date the revision was published, in the site's timezone. */
821
+ date?: string;
822
+ /** The date the revision was published, as GMT. */
823
+ date_gmt?: string;
824
+ /** The globally unique identifier for the post. */
825
+ guid?: {
826
+ /** GUID for the post, as it exists in the database. */
827
+ raw?: string;
828
+ /** GUID for the post, transformed for display. */
829
+ rendered?: string;
830
+ };
831
+ /** Unique identifier for the revision. */
832
+ id?: number;
833
+ /** Meta fields. */
834
+ meta?: Record<string, unknown>;
835
+ /** The date the revision was last modified, in the site's timezone. */
836
+ modified?: string;
837
+ /** The date the revision was last modified, as GMT. */
838
+ modified_gmt?: string;
839
+ /** The ID for the parent of the revision. */
840
+ parent?: number;
841
+ /** An alphanumeric identifier for the revision unique to its type. */
842
+ slug?: string;
843
+ /** The title for the post. */
844
+ title?: {
845
+ /** Title for the post, as it exists in the database. */
846
+ raw?: string;
847
+ /** HTML title for the post, transformed for display. */
848
+ rendered?: string;
849
+ };
850
+ };
851
+ export type Page = {
852
+ /** The ID for the author of the post. */
853
+ author?: number;
854
+ /** An array of the class names for the post container element. */
855
+ class_list?: Array<string>;
856
+ /** Whether or not comments are open on the post. */
857
+ comment_status?: "open" | "closed";
858
+ /** The content for the post. */
859
+ content?: {
860
+ /** Version of the content block format used by the post. */
861
+ block_version?: number;
862
+ /** Whether the content is protected with a password. */
863
+ protected?: boolean;
864
+ /** Content for the post, as it exists in the database. */
865
+ raw?: string;
866
+ /** HTML content for the post, transformed for display. */
867
+ rendered?: string;
868
+ };
869
+ /** The date the post was published, in the site's timezone. */
870
+ date?: string | null;
871
+ /** The date the post was published, as GMT. */
872
+ date_gmt?: string | null;
873
+ /** The excerpt for the post. */
874
+ excerpt?: {
875
+ /** Whether the excerpt is protected with a password. */
876
+ protected?: boolean;
877
+ /** Excerpt for the post, as it exists in the database. */
878
+ raw?: string;
879
+ /** HTML excerpt for the post, transformed for display. */
880
+ rendered?: string;
881
+ };
882
+ /** The ID of the featured media for the post. */
883
+ featured_media?: number;
884
+ /** Slug automatically generated from the post title. */
885
+ generated_slug?: string;
886
+ /** The globally unique identifier for the post. */
887
+ guid?: {
888
+ /** GUID for the post, as it exists in the database. */
889
+ raw?: string;
890
+ /** GUID for the post, transformed for display. */
891
+ rendered?: string;
892
+ };
893
+ /** Unique identifier for the post. */
894
+ id?: number;
895
+ /** URL to the post. */
896
+ link?: string;
897
+ /** The order of the post in relation to other posts. */
898
+ menu_order?: number;
899
+ /** Meta fields. */
900
+ meta?: {
901
+ footnotes?: string;
902
+ };
903
+ /** The date the post was last modified, in the site's timezone. */
904
+ modified?: string;
905
+ /** The date the post was last modified, as GMT. */
906
+ modified_gmt?: string;
907
+ /** The ID for the parent of the post. */
908
+ parent?: number;
909
+ /** A password to protect access to the content and excerpt. */
910
+ password?: string;
911
+ /** Permalink template for the post. */
912
+ permalink_template?: string;
913
+ /** Whether or not the post can be pinged. */
914
+ ping_status?: "open" | "closed";
915
+ /** An alphanumeric identifier for the post unique to its type. */
916
+ slug?: string;
917
+ /** A named status for the post. */
918
+ status?: "publish" | "future" | "draft" | "pending" | "private";
919
+ /** The theme file to use to display the post. */
920
+ template?: string;
921
+ /** The title for the post. */
922
+ title?: {
923
+ /** Title for the post, as it exists in the database. */
924
+ raw?: string;
925
+ /** HTML title for the post, transformed for display. */
926
+ rendered?: string;
927
+ };
928
+ /** Type of post. */
929
+ type?: string;
930
+ };
931
+ export type PageRevision = {
932
+ /** The ID for the author of the revision. */
933
+ author?: number;
934
+ /** The content for the post. */
935
+ content?: {
936
+ /** Version of the content block format used by the post. */
937
+ block_version?: number;
938
+ /** Whether the content is protected with a password. */
939
+ protected?: boolean;
940
+ /** Content for the post, as it exists in the database. */
941
+ raw?: string;
942
+ /** HTML content for the post, transformed for display. */
943
+ rendered?: string;
944
+ };
945
+ /** The date the revision was published, in the site's timezone. */
946
+ date?: string;
947
+ /** The date the revision was published, as GMT. */
948
+ date_gmt?: string;
949
+ /** The excerpt for the post. */
950
+ excerpt?: {
951
+ /** Whether the excerpt is protected with a password. */
952
+ protected?: boolean;
953
+ /** Excerpt for the post, as it exists in the database. */
954
+ raw?: string;
955
+ /** HTML excerpt for the post, transformed for display. */
956
+ rendered?: string;
957
+ };
958
+ /** The globally unique identifier for the post. */
959
+ guid?: {
960
+ /** GUID for the post, as it exists in the database. */
961
+ raw?: string;
962
+ /** GUID for the post, transformed for display. */
963
+ rendered?: string;
964
+ };
965
+ /** Unique identifier for the revision. */
966
+ id?: number;
967
+ /** Meta fields. */
968
+ meta?: {
969
+ footnotes?: string;
970
+ };
971
+ /** The date the revision was last modified, in the site's timezone. */
972
+ modified?: string;
973
+ /** The date the revision was last modified, as GMT. */
974
+ modified_gmt?: string;
975
+ /** The ID for the parent of the revision. */
976
+ parent?: number;
977
+ /** Preview link for the post. */
978
+ preview_link?: string;
979
+ /** An alphanumeric identifier for the revision unique to its type. */
980
+ slug?: string;
981
+ /** The title for the post. */
982
+ title?: {
983
+ /** Title for the post, as it exists in the database. */
984
+ raw?: string;
985
+ /** HTML title for the post, transformed for display. */
986
+ rendered?: string;
987
+ };
988
+ };
989
+ export type PageRevision2 = {
990
+ /** The ID for the author of the revision. */
991
+ author?: number;
992
+ /** The content for the post. */
993
+ content?: {
994
+ /** Version of the content block format used by the post. */
995
+ block_version?: number;
996
+ /** Whether the content is protected with a password. */
997
+ protected?: boolean;
998
+ /** Content for the post, as it exists in the database. */
999
+ raw?: string;
1000
+ /** HTML content for the post, transformed for display. */
1001
+ rendered?: string;
1002
+ };
1003
+ /** The date the revision was published, in the site's timezone. */
1004
+ date?: string;
1005
+ /** The date the revision was published, as GMT. */
1006
+ date_gmt?: string;
1007
+ /** The excerpt for the post. */
1008
+ excerpt?: {
1009
+ /** Whether the excerpt is protected with a password. */
1010
+ protected?: boolean;
1011
+ /** Excerpt for the post, as it exists in the database. */
1012
+ raw?: string;
1013
+ /** HTML excerpt for the post, transformed for display. */
1014
+ rendered?: string;
1015
+ };
1016
+ /** The globally unique identifier for the post. */
1017
+ guid?: {
1018
+ /** GUID for the post, as it exists in the database. */
1019
+ raw?: string;
1020
+ /** GUID for the post, transformed for display. */
1021
+ rendered?: string;
1022
+ };
1023
+ /** Unique identifier for the revision. */
1024
+ id?: number;
1025
+ /** Meta fields. */
1026
+ meta?: {
1027
+ footnotes?: string;
1028
+ };
1029
+ /** The date the revision was last modified, in the site's timezone. */
1030
+ modified?: string;
1031
+ /** The date the revision was last modified, as GMT. */
1032
+ modified_gmt?: string;
1033
+ /** The ID for the parent of the revision. */
1034
+ parent?: number;
1035
+ /** An alphanumeric identifier for the revision unique to its type. */
1036
+ slug?: string;
1037
+ /** The title for the post. */
1038
+ title?: {
1039
+ /** Title for the post, as it exists in the database. */
1040
+ raw?: string;
1041
+ /** HTML title for the post, transformed for display. */
1042
+ rendered?: string;
1043
+ };
1044
+ };
1045
+ export type PatternDirectoryItem = {
1046
+ /** The block types which can use this pattern. */
1047
+ block_types?: Array<string>;
1048
+ /** The pattern's category slugs. */
1049
+ categories?: Array<string>;
1050
+ /** The pattern content. */
1051
+ content?: string;
1052
+ /** A description of the pattern. */
1053
+ description?: string;
1054
+ /** The pattern ID. */
1055
+ id?: number;
1056
+ /** The pattern's keywords. */
1057
+ keywords?: Array<string>;
1058
+ /** The pattern title, in human readable format. */
1059
+ title?: string;
1060
+ /** The preferred width of the viewport when previewing a pattern, in pixels. */
1061
+ viewport_width?: number;
1062
+ };
1063
+ export type Plugin = {
1064
+ /** The plugin author. */
1065
+ author?: string;
1066
+ /** Plugin author's website address. */
1067
+ author_uri?: string;
1068
+ /** The plugin description. */
1069
+ description?: {
1070
+ /** The raw plugin description. */
1071
+ raw?: string;
1072
+ /** The plugin description formatted for display. */
1073
+ rendered?: string;
1074
+ };
1075
+ /** The plugin name. */
1076
+ name?: string;
1077
+ /** Whether the plugin can only be activated network-wide. */
1078
+ network_only?: boolean;
1079
+ /** The plugin file. */
1080
+ plugin?: string;
1081
+ /** The plugin's website address. */
1082
+ plugin_uri?: string;
1083
+ /** Minimum required version of PHP. */
1084
+ requires_php?: string;
1085
+ /** Minimum required version of WordPress. */
1086
+ requires_wp?: string;
1087
+ /** The plugin activation status. */
1088
+ status?: "inactive" | "active";
1089
+ /** The plugin's text domain. */
1090
+ textdomain?: string;
1091
+ /** The plugin version number. */
1092
+ version?: string;
1093
+ };
1094
+ export type Post = {
1095
+ /** The ID for the author of the post. */
1096
+ author?: number;
1097
+ /** The terms assigned to the post in the category taxonomy. */
1098
+ categories?: Array<number>;
1099
+ /** An array of the class names for the post container element. */
1100
+ class_list?: Array<string>;
1101
+ /** Whether or not comments are open on the post. */
1102
+ comment_status?: "open" | "closed";
1103
+ /** The content for the post. */
1104
+ content?: {
1105
+ /** Version of the content block format used by the post. */
1106
+ block_version?: number;
1107
+ /** Whether the content is protected with a password. */
1108
+ protected?: boolean;
1109
+ /** Content for the post, as it exists in the database. */
1110
+ raw?: string;
1111
+ /** HTML content for the post, transformed for display. */
1112
+ rendered?: string;
1113
+ };
1114
+ /** The date the post was published, in the site's timezone. */
1115
+ date?: string | null;
1116
+ /** The date the post was published, as GMT. */
1117
+ date_gmt?: string | null;
1118
+ /** The excerpt for the post. */
1119
+ excerpt?: {
1120
+ /** Whether the excerpt is protected with a password. */
1121
+ protected?: boolean;
1122
+ /** Excerpt for the post, as it exists in the database. */
1123
+ raw?: string;
1124
+ /** HTML excerpt for the post, transformed for display. */
1125
+ rendered?: string;
1126
+ };
1127
+ /** The ID of the featured media for the post. */
1128
+ featured_media?: number;
1129
+ /** The format for the post. */
1130
+ format?: "standard" | "aside" | "chat" | "gallery" | "link" | "image" | "quote" | "status" | "video" | "audio";
1131
+ /** Slug automatically generated from the post title. */
1132
+ generated_slug?: string;
1133
+ /** The globally unique identifier for the post. */
1134
+ guid?: {
1135
+ /** GUID for the post, as it exists in the database. */
1136
+ raw?: string;
1137
+ /** GUID for the post, transformed for display. */
1138
+ rendered?: string;
1139
+ };
1140
+ /** Unique identifier for the post. */
1141
+ id?: number;
1142
+ /** URL to the post. */
1143
+ link?: string;
1144
+ /** Meta fields. */
1145
+ meta?: {
1146
+ footnotes?: string;
1147
+ };
1148
+ /** The date the post was last modified, in the site's timezone. */
1149
+ modified?: string;
1150
+ /** The date the post was last modified, as GMT. */
1151
+ modified_gmt?: string;
1152
+ /** A password to protect access to the content and excerpt. */
1153
+ password?: string;
1154
+ /** Permalink template for the post. */
1155
+ permalink_template?: string;
1156
+ /** Whether or not the post can be pinged. */
1157
+ ping_status?: "open" | "closed";
1158
+ /** An alphanumeric identifier for the post unique to its type. */
1159
+ slug?: string;
1160
+ /** A named status for the post. */
1161
+ status?: "publish" | "future" | "draft" | "pending" | "private";
1162
+ /** Whether or not the post should be treated as sticky. */
1163
+ sticky?: boolean;
1164
+ /** The terms assigned to the post in the post_tag taxonomy. */
1165
+ tags?: Array<number>;
1166
+ /** The theme file to use to display the post. */
1167
+ template?: string;
1168
+ /** The title for the post. */
1169
+ title?: {
1170
+ /** Title for the post, as it exists in the database. */
1171
+ raw?: string;
1172
+ /** HTML title for the post, transformed for display. */
1173
+ rendered?: string;
1174
+ };
1175
+ /** Type of post. */
1176
+ type?: string;
1177
+ };
1178
+ export type PostRevision = {
1179
+ /** The ID for the author of the revision. */
1180
+ author?: number;
1181
+ /** The content for the post. */
1182
+ content?: {
1183
+ /** Version of the content block format used by the post. */
1184
+ block_version?: number;
1185
+ /** Whether the content is protected with a password. */
1186
+ protected?: boolean;
1187
+ /** Content for the post, as it exists in the database. */
1188
+ raw?: string;
1189
+ /** HTML content for the post, transformed for display. */
1190
+ rendered?: string;
1191
+ };
1192
+ /** The date the revision was published, in the site's timezone. */
1193
+ date?: string;
1194
+ /** The date the revision was published, as GMT. */
1195
+ date_gmt?: string;
1196
+ /** The excerpt for the post. */
1197
+ excerpt?: {
1198
+ /** Whether the excerpt is protected with a password. */
1199
+ protected?: boolean;
1200
+ /** Excerpt for the post, as it exists in the database. */
1201
+ raw?: string;
1202
+ /** HTML excerpt for the post, transformed for display. */
1203
+ rendered?: string;
1204
+ };
1205
+ /** The globally unique identifier for the post. */
1206
+ guid?: {
1207
+ /** GUID for the post, as it exists in the database. */
1208
+ raw?: string;
1209
+ /** GUID for the post, transformed for display. */
1210
+ rendered?: string;
1211
+ };
1212
+ /** Unique identifier for the revision. */
1213
+ id?: number;
1214
+ /** Meta fields. */
1215
+ meta?: {
1216
+ footnotes?: string;
1217
+ };
1218
+ /** The date the revision was last modified, in the site's timezone. */
1219
+ modified?: string;
1220
+ /** The date the revision was last modified, as GMT. */
1221
+ modified_gmt?: string;
1222
+ /** The ID for the parent of the revision. */
1223
+ parent?: number;
1224
+ /** Preview link for the post. */
1225
+ preview_link?: string;
1226
+ /** An alphanumeric identifier for the revision unique to its type. */
1227
+ slug?: string;
1228
+ /** The title for the post. */
1229
+ title?: {
1230
+ /** Title for the post, as it exists in the database. */
1231
+ raw?: string;
1232
+ /** HTML title for the post, transformed for display. */
1233
+ rendered?: string;
1234
+ };
1235
+ };
1236
+ export type PostRevision2 = {
1237
+ /** The ID for the author of the revision. */
1238
+ author?: number;
1239
+ /** The content for the post. */
1240
+ content?: {
1241
+ /** Version of the content block format used by the post. */
1242
+ block_version?: number;
1243
+ /** Whether the content is protected with a password. */
1244
+ protected?: boolean;
1245
+ /** Content for the post, as it exists in the database. */
1246
+ raw?: string;
1247
+ /** HTML content for the post, transformed for display. */
1248
+ rendered?: string;
1249
+ };
1250
+ /** The date the revision was published, in the site's timezone. */
1251
+ date?: string;
1252
+ /** The date the revision was published, as GMT. */
1253
+ date_gmt?: string;
1254
+ /** The excerpt for the post. */
1255
+ excerpt?: {
1256
+ /** Whether the excerpt is protected with a password. */
1257
+ protected?: boolean;
1258
+ /** Excerpt for the post, as it exists in the database. */
1259
+ raw?: string;
1260
+ /** HTML excerpt for the post, transformed for display. */
1261
+ rendered?: string;
1262
+ };
1263
+ /** The globally unique identifier for the post. */
1264
+ guid?: {
1265
+ /** GUID for the post, as it exists in the database. */
1266
+ raw?: string;
1267
+ /** GUID for the post, transformed for display. */
1268
+ rendered?: string;
1269
+ };
1270
+ /** Unique identifier for the revision. */
1271
+ id?: number;
1272
+ /** Meta fields. */
1273
+ meta?: {
1274
+ footnotes?: string;
1275
+ };
1276
+ /** The date the revision was last modified, in the site's timezone. */
1277
+ modified?: string;
1278
+ /** The date the revision was last modified, as GMT. */
1279
+ modified_gmt?: string;
1280
+ /** The ID for the parent of the revision. */
1281
+ parent?: number;
1282
+ /** An alphanumeric identifier for the revision unique to its type. */
1283
+ slug?: string;
1284
+ /** The title for the post. */
1285
+ title?: {
1286
+ /** Title for the post, as it exists in the database. */
1287
+ raw?: string;
1288
+ /** HTML title for the post, transformed for display. */
1289
+ rendered?: string;
1290
+ };
1291
+ };
1292
+ export type SearchResult = {
1293
+ /** Unique identifier for the object. */
1294
+ id?: number | string;
1295
+ /** Object subtype. */
1296
+ subtype?: "post" | "page" | "category" | "post_tag";
1297
+ /** The title for the object. */
1298
+ title?: string;
1299
+ /** Object type. */
1300
+ type?: "post" | "term" | "post-format";
1301
+ /** URL to the object. */
1302
+ url?: string;
1303
+ };
1304
+ export type Settings = {
1305
+ /** A date format for all date strings. */
1306
+ date_format?: string;
1307
+ /** Default post category. */
1308
+ default_category?: number;
1309
+ /** Allow people to submit comments on new posts. */
1310
+ default_comment_status?: "open" | "closed";
1311
+ /** Allow link notifications from other blogs (pingbacks and trackbacks) on new articles. */
1312
+ default_ping_status?: "open" | "closed";
1313
+ /** Default post format. */
1314
+ default_post_format?: string;
1315
+ /** Site tagline. */
1316
+ description?: string;
1317
+ /** This address is used for admin purposes, like new user notification. */
1318
+ email?: string;
1319
+ /** WordPress locale code. */
1320
+ language?: string;
1321
+ /** The ID of the page that should display the latest posts */
1322
+ page_for_posts?: number;
1323
+ /** The ID of the page that should be displayed on the front page */
1324
+ page_on_front?: number;
1325
+ /** Blog pages show at most. */
1326
+ posts_per_page?: number;
1327
+ /** What to show on the front page */
1328
+ show_on_front?: string;
1329
+ /** Site icon. */
1330
+ site_icon?: number;
1331
+ /** Site logo. */
1332
+ site_logo?: number;
1333
+ /** A day number of the week that the week should start on. */
1334
+ start_of_week?: number;
1335
+ /** A time format for all time strings. */
1336
+ time_format?: string;
1337
+ /** A city in the same timezone as you. */
1338
+ timezone?: string;
1339
+ /** Site title. */
1340
+ title?: string;
1341
+ /** Site URL. */
1342
+ url?: string;
1343
+ /** Convert emoticons like :-) and :-P to graphics on display. */
1344
+ use_smilies?: boolean;
1345
+ };
1346
+ export type Sidebar = {
1347
+ /** HTML content to append to the sidebar title when displayed. Default is a closing h2 element. */
1348
+ after_title?: string;
1349
+ /** HTML content to append to each widget's HTML output when assigned to this sidebar. Default is a closing list item element. */
1350
+ after_widget?: string;
1351
+ /** HTML content to prepend to the sidebar title when displayed. Default is an opening h2 element. */
1352
+ before_title?: string;
1353
+ /** HTML content to prepend to each widget's HTML output when assigned to this sidebar. Default is an opening list item element. */
1354
+ before_widget?: string;
1355
+ /** Extra CSS class to assign to the sidebar in the Widgets interface. */
1356
+ class?: string;
1357
+ /** Description of sidebar. */
1358
+ description?: string;
1359
+ /** ID of sidebar. */
1360
+ id?: string;
1361
+ /** Unique name identifying the sidebar. */
1362
+ name?: string;
1363
+ /** Status of sidebar. */
1364
+ status?: "active" | "inactive";
1365
+ /** Nested widgets. */
1366
+ widgets?: Array<Record<string, unknown> | string>;
1367
+ };
1368
+ export type Status = {
1369
+ /** Whether posts of this status may have floating published dates. */
1370
+ date_floating?: boolean;
1371
+ /** The title for the status. */
1372
+ name?: string;
1373
+ /** Whether posts with this status should be private. */
1374
+ private?: boolean;
1375
+ /** Whether posts with this status should be protected. */
1376
+ protected?: boolean;
1377
+ /** Whether posts of this status should be shown in the front end of the site. */
1378
+ public?: boolean;
1379
+ /** Whether posts with this status should be publicly-queryable. */
1380
+ queryable?: boolean;
1381
+ /** Whether to include posts in the edit listing for their post type. */
1382
+ show_in_list?: boolean;
1383
+ /** An alphanumeric identifier for the status. */
1384
+ slug?: string;
1385
+ };
1386
+ export type Tag = {
1387
+ /** Number of published posts for the term. */
1388
+ count?: number;
1389
+ /** HTML description of the term. */
1390
+ description?: string;
1391
+ /** Unique identifier for the term. */
1392
+ id?: number;
1393
+ /** URL of the term. */
1394
+ link?: string;
1395
+ /** Meta fields. */
1396
+ meta?: Record<string, unknown>;
1397
+ /** HTML title for the term. */
1398
+ name: string;
1399
+ /** An alphanumeric identifier for the term unique to its type. */
1400
+ slug?: string;
1401
+ /** Type attribution for the term. */
1402
+ taxonomy?: "post_tag";
1403
+ };
1404
+ export type Taxonomy = {
1405
+ /** All capabilities used by the taxonomy. */
1406
+ capabilities?: Record<string, unknown>;
1407
+ /** A human-readable description of the taxonomy. */
1408
+ description?: string;
1409
+ /** Whether or not the taxonomy should have children. */
1410
+ hierarchical?: boolean;
1411
+ /** Human-readable labels for the taxonomy for various contexts. */
1412
+ labels?: Record<string, unknown>;
1413
+ /** The title for the taxonomy. */
1414
+ name?: string;
1415
+ /** REST base route for the taxonomy. */
1416
+ rest_base?: string;
1417
+ /** REST namespace route for the taxonomy. */
1418
+ rest_namespace?: string;
1419
+ /** Whether or not the term cloud should be displayed. */
1420
+ show_cloud?: boolean;
1421
+ /** An alphanumeric identifier for the taxonomy. */
1422
+ slug?: string;
1423
+ /** Types associated with the taxonomy. */
1424
+ types?: Array<string>;
1425
+ /** The visibility settings for the taxonomy. */
1426
+ visibility?: {
1427
+ /** Whether a taxonomy is intended for use publicly either via the admin interface or by front-end users. */
1428
+ public?: boolean;
1429
+ /** Whether the taxonomy is publicly queryable. */
1430
+ publicly_queryable?: boolean;
1431
+ /** Whether to allow automatic creation of taxonomy columns on associated post-types table. */
1432
+ show_admin_column?: boolean;
1433
+ /** Whether to make the taxonomy available for selection in navigation menus. */
1434
+ show_in_nav_menus?: boolean;
1435
+ /** Whether to show the taxonomy in the quick/bulk edit panel. */
1436
+ show_in_quick_edit?: boolean;
1437
+ /** Whether to generate a default UI for managing this taxonomy. */
1438
+ show_ui?: boolean;
1439
+ };
1440
+ };
1441
+ export type WpTemplatePart = {
1442
+ /** Where the template part is intended for use (header, footer, etc.) */
1443
+ area?: string;
1444
+ /** The ID for the author of the template. */
1445
+ author?: number;
1446
+ /** Human readable text for the author. */
1447
+ author_text?: string;
1448
+ /** Content of template. */
1449
+ content?: {
1450
+ /** Version of the content block format used by the template. */
1451
+ block_version?: number;
1452
+ /** Content for the template, as it exists in the database. */
1453
+ raw?: string;
1454
+ } | string;
1455
+ /** Description of template. */
1456
+ description?: string;
1457
+ /** Theme file exists. */
1458
+ has_theme_file?: boolean;
1459
+ /** ID of template. */
1460
+ id?: string;
1461
+ /** The date the template was last modified, in the site's timezone. */
1462
+ modified?: string;
1463
+ /** Source of a customized template */
1464
+ origin?: string;
1465
+ /** Where the template originally comes from e.g. 'theme' */
1466
+ original_source?: "theme" | "plugin" | "site" | "user";
1467
+ /** Unique slug identifying the template. */
1468
+ slug: string;
1469
+ /** Source of template */
1470
+ source?: string;
1471
+ /** Status of template. */
1472
+ status?: "publish" | "future" | "draft" | "pending" | "private";
1473
+ /** Theme identifier for the template. */
1474
+ theme?: string;
1475
+ /** Title of template. */
1476
+ title?: {
1477
+ /** Title for the template, as it exists in the database. */
1478
+ raw?: string;
1479
+ /** HTML title for the template, transformed for display. */
1480
+ rendered?: string;
1481
+ } | string;
1482
+ /** Type of template. */
1483
+ type?: string;
1484
+ /** Post ID. */
1485
+ wp_id?: number;
1486
+ };
1487
+ export type WpTemplate = {
1488
+ /** The ID for the author of the template. */
1489
+ author?: number;
1490
+ /** Human readable text for the author. */
1491
+ author_text?: string;
1492
+ /** Content of template. */
1493
+ content?: {
1494
+ /** Version of the content block format used by the template. */
1495
+ block_version?: number;
1496
+ /** Content for the template, as it exists in the database. */
1497
+ raw?: string;
1498
+ } | string;
1499
+ /** Description of template. */
1500
+ description?: string;
1501
+ /** Theme file exists. */
1502
+ has_theme_file?: boolean;
1503
+ /** ID of template. */
1504
+ id?: string;
1505
+ /** Whether a template is a custom template. */
1506
+ is_custom?: boolean;
1507
+ /** The date the template was last modified, in the site's timezone. */
1508
+ modified?: string;
1509
+ /** Source of a customized template */
1510
+ origin?: string;
1511
+ /** Where the template originally comes from e.g. 'theme' */
1512
+ original_source?: "theme" | "plugin" | "site" | "user";
1513
+ /** Plugin that registered the template. */
1514
+ plugin?: string;
1515
+ /** Unique slug identifying the template. */
1516
+ slug: string;
1517
+ /** Source of template */
1518
+ source?: string;
1519
+ /** Status of template. */
1520
+ status?: "publish" | "future" | "draft" | "pending" | "private";
1521
+ /** Theme identifier for the template. */
1522
+ theme?: string;
1523
+ /** Title of template. */
1524
+ title?: {
1525
+ /** Title for the template, as it exists in the database. */
1526
+ raw?: string;
1527
+ /** HTML title for the template, transformed for display. */
1528
+ rendered?: string;
1529
+ } | string;
1530
+ /** Type of template. */
1531
+ type?: string;
1532
+ /** Post ID. */
1533
+ wp_id?: number;
1534
+ };
1535
+ export type Theme = {
1536
+ /** The theme author. */
1537
+ author?: {
1538
+ /** The theme author's name, as found in the theme header. */
1539
+ raw?: string;
1540
+ /** HTML for the theme author, transformed for display. */
1541
+ rendered?: string;
1542
+ };
1543
+ /** The website of the theme author. */
1544
+ author_uri?: {
1545
+ /** The website of the theme author, as found in the theme header. */
1546
+ raw?: string;
1547
+ /** The website of the theme author, transformed for display. */
1548
+ rendered?: string;
1549
+ };
1550
+ /** A list of allowed area values for template parts. */
1551
+ default_template_part_areas?: Array<{
1552
+ area?: string;
1553
+ area_tag?: string;
1554
+ description?: string;
1555
+ icon?: string;
1556
+ label?: string;
1557
+ }>;
1558
+ /** A list of default template types. */
1559
+ default_template_types?: Array<{
1560
+ description?: string;
1561
+ slug?: string;
1562
+ title?: string;
1563
+ }>;
1564
+ /** A description of the theme. */
1565
+ description?: {
1566
+ /** The theme description, as found in the theme header. */
1567
+ raw?: string;
1568
+ /** The theme description, transformed for display. */
1569
+ rendered?: string;
1570
+ };
1571
+ /** Whether the theme is a block-based theme. */
1572
+ is_block_theme?: boolean;
1573
+ /** The name of the theme. */
1574
+ name?: {
1575
+ /** The theme name, as found in the theme header. */
1576
+ raw?: string;
1577
+ /** The theme name, transformed for display. */
1578
+ rendered?: string;
1579
+ };
1580
+ /** The minimum PHP version required for the theme to work. */
1581
+ requires_php?: string;
1582
+ /** The minimum WordPress version required for the theme to work. */
1583
+ requires_wp?: string;
1584
+ /** The theme's screenshot URL. */
1585
+ screenshot?: string;
1586
+ /** A named status for the theme. */
1587
+ status?: "inactive" | "active";
1588
+ /** The theme's stylesheet. This uniquely identifies the theme. */
1589
+ stylesheet?: string;
1590
+ /** The uri for the theme's stylesheet directory. */
1591
+ stylesheet_uri?: string;
1592
+ /** Tags indicating styles and features of the theme. */
1593
+ tags?: {
1594
+ /** The theme tags, as found in the theme header. */
1595
+ raw?: Array<string>;
1596
+ /** The theme tags, transformed for display. */
1597
+ rendered?: string;
1598
+ };
1599
+ /** The theme's template. If this is a child theme, this refers to the parent theme, otherwise this is the same as the theme's stylesheet. */
1600
+ template?: string;
1601
+ /** The uri for the theme's template directory. If this is a child theme, this refers to the parent theme, otherwise this is the same as the theme's stylesheet directory. */
1602
+ template_uri?: string;
1603
+ /** The theme's text domain. */
1604
+ textdomain?: string;
1605
+ /** Features supported by this theme. */
1606
+ theme_supports?: {
1607
+ /** Whether theme opts in to wide alignment CSS class. */
1608
+ "align-wide"?: boolean;
1609
+ /** Whether posts and comments RSS feed links are added to head. */
1610
+ "automatic-feed-links"?: boolean;
1611
+ /** Whether a theme uses block-based template parts. */
1612
+ "block-template-parts"?: boolean;
1613
+ /** Whether a theme uses block-based templates. */
1614
+ "block-templates"?: boolean;
1615
+ /** Custom background if defined by the theme. */
1616
+ "custom-background"?: boolean | {
1617
+ "default-attachment"?: "scroll" | "fixed";
1618
+ "default-color"?: string;
1619
+ "default-image"?: string;
1620
+ "default-position-x"?: "left" | "center" | "right";
1621
+ "default-position-y"?: "left" | "center" | "right";
1622
+ "default-preset"?: "default" | "fill" | "fit" | "repeat" | "custom";
1623
+ "default-repeat"?: "repeat-x" | "repeat-y" | "repeat" | "no-repeat";
1624
+ "default-size"?: "auto" | "contain" | "cover";
1625
+ };
1626
+ /** Custom header if defined by the theme. */
1627
+ "custom-header"?: boolean | {
1628
+ "default-image"?: string;
1629
+ "default-text-color"?: string;
1630
+ "flex-height"?: boolean;
1631
+ "flex-width"?: boolean;
1632
+ "header-text"?: boolean;
1633
+ height?: number;
1634
+ "random-default"?: boolean;
1635
+ uploads?: boolean;
1636
+ video?: boolean;
1637
+ width?: number;
1638
+ };
1639
+ /** Custom logo if defined by the theme. */
1640
+ "custom-logo"?: boolean | {
1641
+ "flex-height"?: boolean;
1642
+ "flex-width"?: boolean;
1643
+ "header-text"?: Array<string>;
1644
+ height?: number;
1645
+ "unlink-homepage-logo"?: boolean;
1646
+ width?: number;
1647
+ };
1648
+ /** Whether the theme enables Selective Refresh for Widgets being managed with the Customizer. */
1649
+ "customize-selective-refresh-widgets"?: boolean;
1650
+ /** Whether theme opts in to the dark editor style UI. */
1651
+ "dark-editor-style"?: boolean;
1652
+ /** Whether the theme disables custom colors. */
1653
+ "disable-custom-colors"?: boolean;
1654
+ /** Whether the theme disables custom font sizes. */
1655
+ "disable-custom-font-sizes"?: boolean;
1656
+ /** Whether the theme disables custom gradients. */
1657
+ "disable-custom-gradients"?: boolean;
1658
+ /** Whether the theme disables generated layout styles. */
1659
+ "disable-layout-styles"?: boolean;
1660
+ /** Custom color palette if defined by the theme. */
1661
+ "editor-color-palette"?: boolean | Array<{
1662
+ color?: string;
1663
+ name?: string;
1664
+ slug?: string;
1665
+ }>;
1666
+ /** Custom font sizes if defined by the theme. */
1667
+ "editor-font-sizes"?: boolean | Array<{
1668
+ name?: string;
1669
+ size?: number;
1670
+ slug?: string;
1671
+ }>;
1672
+ /** Custom gradient presets if defined by the theme. */
1673
+ "editor-gradient-presets"?: boolean | Array<{
1674
+ gradient?: string;
1675
+ name?: string;
1676
+ slug?: string;
1677
+ }>;
1678
+ /** Custom spacing sizes if defined by the theme. */
1679
+ "editor-spacing-sizes"?: boolean | Array<{
1680
+ name?: string;
1681
+ size?: string;
1682
+ slug?: string;
1683
+ }>;
1684
+ /** Whether theme opts in to the editor styles CSS wrapper. */
1685
+ "editor-styles"?: boolean;
1686
+ /** Post formats supported. */
1687
+ formats?: Array<string>;
1688
+ /** Allows use of HTML5 markup for search forms, comment forms, comment lists, gallery, and caption. */
1689
+ html5?: boolean | Array<"search-form" | "comment-form" | "comment-list" | "gallery" | "caption" | "script" | "style">;
1690
+ /** The post types that support thumbnails or true if all post types are supported. */
1691
+ "post-thumbnails"?: boolean | Array<string>;
1692
+ /** Whether the theme supports responsive embedded content. */
1693
+ "responsive-embeds"?: boolean;
1694
+ /** Whether the theme can manage the document title tag. */
1695
+ "title-tag"?: boolean;
1696
+ /** Whether theme opts in to default WordPress block styles for viewing. */
1697
+ "wp-block-styles"?: boolean;
1698
+ };
1699
+ /** The URI of the theme's webpage. */
1700
+ theme_uri?: {
1701
+ /** The URI of the theme's webpage, as found in the theme header. */
1702
+ raw?: string;
1703
+ /** The URI of the theme's webpage, transformed for display. */
1704
+ rendered?: string;
1705
+ };
1706
+ /** The theme's current version. */
1707
+ version?: string;
1708
+ };
1709
+ export type Type = {
1710
+ /** All capabilities used by the post type. */
1711
+ capabilities?: Record<string, unknown>;
1712
+ /** A human-readable description of the post type. */
1713
+ description?: string;
1714
+ /** If the value is a string, the value will be used as the archive slug. If the value is false the post type has no archive. */
1715
+ has_archive?: string | boolean;
1716
+ /** Whether or not the post type should have children. */
1717
+ hierarchical?: boolean;
1718
+ /** The icon for the post type. */
1719
+ icon?: string | null;
1720
+ /** Human-readable labels for the post type for various contexts. */
1721
+ labels?: Record<string, unknown>;
1722
+ /** The title for the post type. */
1723
+ name?: string;
1724
+ /** REST base route for the post type. */
1725
+ rest_base?: string;
1726
+ /** REST route's namespace for the post type. */
1727
+ rest_namespace?: string;
1728
+ /** An alphanumeric identifier for the post type. */
1729
+ slug?: string;
1730
+ /** All features, supported by the post type. */
1731
+ supports?: Record<string, unknown>;
1732
+ /** Taxonomies associated with post type. */
1733
+ taxonomies?: Array<string>;
1734
+ /** The block template associated with the post type. */
1735
+ template?: Array<unknown>;
1736
+ /** The template_lock associated with the post type, or false if none. */
1737
+ template_lock?: "all" | "insert" | "contentOnly" | false;
1738
+ /** Whether or not the post type can be viewed. */
1739
+ viewable?: boolean;
1740
+ /** The visibility settings for the post type. */
1741
+ visibility?: {
1742
+ /** Whether to make the post type available for selection in navigation menus. */
1743
+ show_in_nav_menus?: boolean;
1744
+ /** Whether to generate a default UI for managing this post type. */
1745
+ show_ui?: boolean;
1746
+ };
1747
+ };
1748
+ export type User = {
1749
+ /** Avatar URLs for the user. */
1750
+ avatar_urls?: {
1751
+ /** Avatar URL with image size of 24 pixels. */
1752
+ "24"?: string;
1753
+ /** Avatar URL with image size of 48 pixels. */
1754
+ "48"?: string;
1755
+ /** Avatar URL with image size of 96 pixels. */
1756
+ "96"?: string;
1757
+ };
1758
+ /** All capabilities assigned to the user. */
1759
+ capabilities?: Record<string, unknown>;
1760
+ /** Description of the user. */
1761
+ description?: string;
1762
+ /** The email address for the user. */
1763
+ email: string;
1764
+ /** Any extra capabilities assigned to the user. */
1765
+ extra_capabilities?: Record<string, unknown>;
1766
+ /** First name for the user. */
1767
+ first_name?: string;
1768
+ /** Unique identifier for the user. */
1769
+ id?: number;
1770
+ /** Last name for the user. */
1771
+ last_name?: string;
1772
+ /** Author URL of the user. */
1773
+ link?: string;
1774
+ /** Locale for the user. */
1775
+ locale?: "" | "en_US";
1776
+ /** Meta fields. */
1777
+ meta?: {
1778
+ persisted_preferences?: {
1779
+ /** The date and time the preferences were updated. */
1780
+ _modified?: string;
1781
+ } & {
1782
+ [key: string]: unknown;
1783
+ };
1784
+ };
1785
+ /** Display name for the user. */
1786
+ name?: string;
1787
+ /** The nickname for the user. */
1788
+ nickname?: string;
1789
+ /** Password for the user (never included). */
1790
+ password: string;
1791
+ /** Registration date for the user. */
1792
+ registered_date?: string;
1793
+ /** Roles assigned to the user. */
1794
+ roles?: Array<string>;
1795
+ /** An alphanumeric identifier for the user. */
1796
+ slug?: string;
1797
+ /** URL of the user. */
1798
+ url?: string;
1799
+ /** Login name for the user. */
1800
+ username: string;
1801
+ };
1802
+ export type ApplicationPassword = {
1803
+ /** A UUID provided by the application to uniquely identify it. It is recommended to use an UUID v5 with the URL or DNS namespace. */
1804
+ app_id?: string | "";
1805
+ /** The GMT date the application password was created. */
1806
+ created?: string;
1807
+ /** The IP address the application password was last used by. */
1808
+ last_ip?: string | null;
1809
+ /** The GMT date the application password was last used. */
1810
+ last_used?: string | null;
1811
+ /** The name of the application password. */
1812
+ name: string;
1813
+ /** The generated password. Only available after adding an application. */
1814
+ password?: string;
1815
+ /** The unique identifier for the application password. */
1816
+ uuid?: string;
1817
+ };
1818
+ export type WidgetType = {
1819
+ /** Class name */
1820
+ classname?: string;
1821
+ /** Description of the widget. */
1822
+ description?: string;
1823
+ /** Unique slug identifying the widget type. */
1824
+ id?: string;
1825
+ /** Whether the widget supports multiple instances */
1826
+ is_multi?: boolean;
1827
+ /** Human-readable name identifying the widget type. */
1828
+ name?: string;
1829
+ };
1830
+ export type Widget = {
1831
+ /** URL-encoded form data from the widget admin form. Used to update a widget that does not support instance. Write only. */
1832
+ form_data?: string;
1833
+ /** Unique identifier for the widget. */
1834
+ id?: string;
1835
+ /** The type of the widget. Corresponds to ID in widget-types endpoint. */
1836
+ id_base?: string;
1837
+ /** Instance settings of the widget, if supported. */
1838
+ instance?: {
1839
+ /** Base64 encoded representation of the instance settings. */
1840
+ encoded?: string;
1841
+ /** Cryptographic hash of the instance settings. */
1842
+ hash?: string;
1843
+ /** Unencoded instance settings, if supported. */
1844
+ raw?: Record<string, unknown>;
1845
+ };
1846
+ /** HTML representation of the widget. */
1847
+ rendered?: string;
1848
+ /** HTML representation of the widget admin form. */
1849
+ rendered_form?: string;
1850
+ /** The sidebar the widget belongs to. */
1851
+ sidebar: string;
1852
+ };
1853
+ export type WpPatternCategory = {
1854
+ /** Number of published posts for the term. */
1855
+ count?: number;
1856
+ /** HTML description of the term. */
1857
+ description?: string;
1858
+ /** Unique identifier for the term. */
1859
+ id?: number;
1860
+ /** URL of the term. */
1861
+ link?: string;
1862
+ /** Meta fields. */
1863
+ meta?: Record<string, unknown>;
1864
+ /** HTML title for the term. */
1865
+ name: string;
1866
+ /** An alphanumeric identifier for the term unique to its type. */
1867
+ slug?: string;
1868
+ /** Type attribution for the term. */
1869
+ taxonomy?: "wp_pattern_category";
1870
+ };
1871
+ export type GetWpV2BlockDirectorySearchResponse = Array<BlockDirectoryItem>;
1872
+ export type GetWpV2BlocksResponse = Array<WpBlock>;
1873
+ export type PostWpV2BlocksRequest = {
1874
+ /** The content for the post. */
1875
+ content?: {
1876
+ /** Version of the content block format used by the post. */
1877
+ block_version?: number;
1878
+ /** Whether the content is protected with a password. */
1879
+ protected?: boolean;
1880
+ /** Content for the post, as it exists in the database. */
1881
+ raw?: string;
1882
+ };
1883
+ /** The date the post was published, in the site's timezone. */
1884
+ date?: string | null;
1885
+ /** The date the post was published, as GMT. */
1886
+ date_gmt?: string | null;
1887
+ /** The excerpt for the post. */
1888
+ excerpt?: {
1889
+ /** Whether the excerpt is protected with a password. */
1890
+ protected?: boolean;
1891
+ /** Excerpt for the post, as it exists in the database. */
1892
+ raw?: string;
1893
+ /** HTML excerpt for the post, transformed for display. */
1894
+ rendered?: string;
1895
+ };
1896
+ /** Meta fields. */
1897
+ meta?: {
1898
+ footnotes?: string;
1899
+ wp_pattern_sync_status?: "partial" | "unsynced";
1900
+ };
1901
+ /** A password to protect access to the content and excerpt. */
1902
+ password?: string;
1903
+ /** An alphanumeric identifier for the post unique to its type. */
1904
+ slug?: string;
1905
+ /** A named status for the post. */
1906
+ status?: "publish" | "future" | "draft" | "pending" | "private";
1907
+ /** The theme file to use to display the post. */
1908
+ template?: string;
1909
+ /** The title for the post. */
1910
+ title?: {
1911
+ /** Title for the post, as it exists in the database. */
1912
+ raw?: string;
1913
+ };
1914
+ /** The terms assigned to the post in the wp_pattern_category taxonomy. */
1915
+ wp_pattern_category?: Array<number>;
1916
+ };
1917
+ export type PostWpV2BlocksByIdRequest = {
1918
+ /** The content for the post. */
1919
+ content?: {
1920
+ /** Version of the content block format used by the post. */
1921
+ block_version?: number;
1922
+ /** Whether the content is protected with a password. */
1923
+ protected?: boolean;
1924
+ /** Content for the post, as it exists in the database. */
1925
+ raw?: string;
1926
+ };
1927
+ /** The date the post was published, in the site's timezone. */
1928
+ date?: string | null;
1929
+ /** The date the post was published, as GMT. */
1930
+ date_gmt?: string | null;
1931
+ /** The excerpt for the post. */
1932
+ excerpt?: {
1933
+ /** Whether the excerpt is protected with a password. */
1934
+ protected?: boolean;
1935
+ /** Excerpt for the post, as it exists in the database. */
1936
+ raw?: string;
1937
+ /** HTML excerpt for the post, transformed for display. */
1938
+ rendered?: string;
1939
+ };
1940
+ /** Meta fields. */
1941
+ meta?: {
1942
+ footnotes?: string;
1943
+ wp_pattern_sync_status?: "partial" | "unsynced";
1944
+ };
1945
+ /** A password to protect access to the content and excerpt. */
1946
+ password?: string;
1947
+ /** An alphanumeric identifier for the post unique to its type. */
1948
+ slug?: string;
1949
+ /** A named status for the post. */
1950
+ status?: "publish" | "future" | "draft" | "pending" | "private";
1951
+ /** The theme file to use to display the post. */
1952
+ template?: string;
1953
+ /** The title for the post. */
1954
+ title?: {
1955
+ /** Title for the post, as it exists in the database. */
1956
+ raw?: string;
1957
+ };
1958
+ /** The terms assigned to the post in the wp_pattern_category taxonomy. */
1959
+ wp_pattern_category?: Array<number>;
1960
+ };
1961
+ export type PostWpV2BlocksByIdAutosavesRequest = {
1962
+ /** The content for the post. */
1963
+ content?: {
1964
+ /** Version of the content block format used by the post. */
1965
+ block_version?: number;
1966
+ /** Whether the content is protected with a password. */
1967
+ protected?: boolean;
1968
+ /** Content for the post, as it exists in the database. */
1969
+ raw?: string;
1970
+ };
1971
+ /** The date the post was published, in the site's timezone. */
1972
+ date?: string | null;
1973
+ /** The date the post was published, as GMT. */
1974
+ date_gmt?: string | null;
1975
+ /** The excerpt for the post. */
1976
+ excerpt?: {
1977
+ /** Whether the excerpt is protected with a password. */
1978
+ protected?: boolean;
1979
+ /** Excerpt for the post, as it exists in the database. */
1980
+ raw?: string;
1981
+ /** HTML excerpt for the post, transformed for display. */
1982
+ rendered?: string;
1983
+ };
1984
+ /** Meta fields. */
1985
+ meta?: {
1986
+ footnotes?: string;
1987
+ wp_pattern_sync_status?: "partial" | "unsynced";
1988
+ };
1989
+ /** The ID for the parent of the autosave. */
1990
+ parent?: number;
1991
+ /** A password to protect access to the content and excerpt. */
1992
+ password?: string;
1993
+ /** An alphanumeric identifier for the post unique to its type. */
1994
+ slug?: string;
1995
+ /** A named status for the post. */
1996
+ status?: "publish" | "future" | "draft" | "pending" | "private";
1997
+ /** The theme file to use to display the post. */
1998
+ template?: string;
1999
+ /** The title for the post. */
2000
+ title?: {
2001
+ /** Title for the post, as it exists in the database. */
2002
+ raw?: string;
2003
+ };
2004
+ /** The terms assigned to the post in the wp_pattern_category taxonomy. */
2005
+ wp_pattern_category?: Array<number>;
2006
+ };
2007
+ export type GetWpV2BlocksByParentRevisionsResponse = Array<WpBlockRevision2>;
2008
+ export type GetWpV2CategoriesResponse = Array<Category>;
2009
+ export type PostWpV2CategoriesRequest = {
2010
+ /** HTML description of the term. */
2011
+ description?: string;
2012
+ /** Meta fields. */
2013
+ meta?: Record<string, unknown>;
2014
+ /** HTML title for the term. */
2015
+ name: string;
2016
+ /** The parent term ID. */
2017
+ parent?: number;
2018
+ /** An alphanumeric identifier for the term unique to its type. */
2019
+ slug?: string;
2020
+ };
2021
+ export type PostWpV2CategoriesByIdRequest = {
2022
+ /** HTML description of the term. */
2023
+ description?: string;
2024
+ /** Meta fields. */
2025
+ meta?: Record<string, unknown>;
2026
+ /** HTML title for the term. */
2027
+ name?: string;
2028
+ /** The parent term ID. */
2029
+ parent?: number;
2030
+ /** An alphanumeric identifier for the term unique to its type. */
2031
+ slug?: string;
2032
+ };
2033
+ export type GetWpV2CommentsResponse = Array<Comment>;
2034
+ export type PostWpV2CommentsRequest = {
2035
+ /** The ID of the user object, if author was a user. */
2036
+ author?: number;
2037
+ /** Email address for the comment author. */
2038
+ author_email?: string;
2039
+ /** IP address for the comment author. */
2040
+ author_ip?: string;
2041
+ /** Display name for the comment author. */
2042
+ author_name?: string;
2043
+ /** URL for the comment author. */
2044
+ author_url?: string;
2045
+ /** User agent for the comment author. */
2046
+ author_user_agent?: string;
2047
+ /** The content for the comment. */
2048
+ content?: {
2049
+ /** Content for the comment, as it exists in the database. */
2050
+ raw?: string;
2051
+ /** HTML content for the comment, transformed for display. */
2052
+ rendered?: string;
2053
+ };
2054
+ /** The date the comment was published, in the site's timezone. */
2055
+ date?: string;
2056
+ /** The date the comment was published, as GMT. */
2057
+ date_gmt?: string;
2058
+ /** Meta fields. */
2059
+ meta?: {
2060
+ /** Note resolution status */
2061
+ _wp_note_status?: "resolved" | "reopen";
2062
+ };
2063
+ /** The ID for the parent of the comment. */
2064
+ parent?: number;
2065
+ /** The ID of the associated post object. */
2066
+ post?: number;
2067
+ /** State of the comment. */
2068
+ status?: string;
2069
+ };
2070
+ export type PostWpV2CommentsByIdRequest = {
2071
+ /** The ID of the user object, if author was a user. */
2072
+ author?: number;
2073
+ /** Email address for the comment author. */
2074
+ author_email?: string;
2075
+ /** IP address for the comment author. */
2076
+ author_ip?: string;
2077
+ /** Display name for the comment author. */
2078
+ author_name?: string;
2079
+ /** URL for the comment author. */
2080
+ author_url?: string;
2081
+ /** User agent for the comment author. */
2082
+ author_user_agent?: string;
2083
+ /** The content for the comment. */
2084
+ content?: {
2085
+ /** Content for the comment, as it exists in the database. */
2086
+ raw?: string;
2087
+ /** HTML content for the comment, transformed for display. */
2088
+ rendered?: string;
2089
+ };
2090
+ /** The date the comment was published, in the site's timezone. */
2091
+ date?: string;
2092
+ /** The date the comment was published, as GMT. */
2093
+ date_gmt?: string;
2094
+ /** Meta fields. */
2095
+ meta?: {
2096
+ /** Note resolution status */
2097
+ _wp_note_status?: "resolved" | "reopen";
2098
+ };
2099
+ /** The ID for the parent of the comment. */
2100
+ parent?: number;
2101
+ /** The ID of the associated post object. */
2102
+ post?: number;
2103
+ /** State of the comment. */
2104
+ status?: string;
2105
+ };
2106
+ export type GetWpV2FontCollectionsResponse = Array<FontCollection>;
2107
+ export type GetWpV2FontFamiliesResponse = Array<WpFontFamily>;
2108
+ export type PostWpV2FontFamiliesRequest = {
2109
+ /** font-family declaration in theme.json format, encoded as a string. */
2110
+ font_family_settings: string;
2111
+ /** Version of the theme.json schema used for the typography settings. */
2112
+ theme_json_version?: number;
2113
+ };
2114
+ export type GetWpV2FontFamiliesByFontFamilyIdFontFacesResponse = Array<WpFontFace>;
2115
+ export type PostWpV2FontFamiliesByFontFamilyIdFontFacesRequest = {
2116
+ /** font-face declaration in theme.json format, encoded as a string. */
2117
+ font_face_settings: string;
2118
+ /** Version of the theme.json schema used for the typography settings. */
2119
+ theme_json_version?: number;
2120
+ };
2121
+ export type PostWpV2FontFamiliesByIdRequest = {
2122
+ /** font-family declaration in theme.json format, encoded as a string. */
2123
+ font_family_settings: string;
2124
+ /** Version of the theme.json schema used for the typography settings. */
2125
+ theme_json_version?: number;
2126
+ };
2127
+ export type GetWpV2GlobalStylesByParentRevisionsResponse = Array<WpGlobalStylesRevision>;
2128
+ export type GetWpV2MediaResponse = Array<Attachment>;
2129
+ export type PostWpV2MediaRequest = {
2130
+ /** Alternative text to display when attachment is not displayed. */
2131
+ alt_text?: string;
2132
+ /** The ID for the author of the post. */
2133
+ author?: number;
2134
+ /** The attachment caption. */
2135
+ caption?: {
2136
+ /** Caption for the attachment, as it exists in the database. */
2137
+ raw?: string;
2138
+ /** HTML caption for the attachment, transformed for display. */
2139
+ rendered?: string;
2140
+ };
2141
+ /** Whether or not comments are open on the post. */
2142
+ comment_status?: "open" | "closed";
2143
+ /** The date the post was published, in the site's timezone. */
2144
+ date?: string | null;
2145
+ /** The date the post was published, as GMT. */
2146
+ date_gmt?: string | null;
2147
+ /** The attachment description. */
2148
+ description?: {
2149
+ /** Description for the attachment, as it exists in the database. */
2150
+ raw?: string;
2151
+ /** HTML description for the attachment, transformed for display. */
2152
+ rendered?: string;
2153
+ };
2154
+ /** The ID of the featured media for the post. */
2155
+ featured_media?: number;
2156
+ /** Meta fields. */
2157
+ meta?: Record<string, unknown>;
2158
+ /** Whether or not the post can be pinged. */
2159
+ ping_status?: "open" | "closed";
2160
+ /** The ID for the associated post of the attachment. */
2161
+ post?: number;
2162
+ /** An alphanumeric identifier for the post unique to its type. */
2163
+ slug?: string;
2164
+ /** A named status for the post. */
2165
+ status?: "publish" | "future" | "draft" | "pending" | "private";
2166
+ /** The theme file to use to display the post. */
2167
+ template?: string;
2168
+ /** The title for the post. */
2169
+ title?: {
2170
+ /** Title for the post, as it exists in the database. */
2171
+ raw?: string;
2172
+ /** HTML title for the post, transformed for display. */
2173
+ rendered?: string;
2174
+ };
2175
+ };
2176
+ export type PostWpV2MediaByIdRequest = {
2177
+ /** Alternative text to display when attachment is not displayed. */
2178
+ alt_text?: string;
2179
+ /** The ID for the author of the post. */
2180
+ author?: number;
2181
+ /** The attachment caption. */
2182
+ caption?: {
2183
+ /** Caption for the attachment, as it exists in the database. */
2184
+ raw?: string;
2185
+ /** HTML caption for the attachment, transformed for display. */
2186
+ rendered?: string;
2187
+ };
2188
+ /** Whether or not comments are open on the post. */
2189
+ comment_status?: "open" | "closed";
2190
+ /** The date the post was published, in the site's timezone. */
2191
+ date?: string | null;
2192
+ /** The date the post was published, as GMT. */
2193
+ date_gmt?: string | null;
2194
+ /** The attachment description. */
2195
+ description?: {
2196
+ /** Description for the attachment, as it exists in the database. */
2197
+ raw?: string;
2198
+ /** HTML description for the attachment, transformed for display. */
2199
+ rendered?: string;
2200
+ };
2201
+ /** The ID of the featured media for the post. */
2202
+ featured_media?: number;
2203
+ /** Meta fields. */
2204
+ meta?: Record<string, unknown>;
2205
+ /** Whether or not the post can be pinged. */
2206
+ ping_status?: "open" | "closed";
2207
+ /** The ID for the associated post of the attachment. */
2208
+ post?: number;
2209
+ /** An alphanumeric identifier for the post unique to its type. */
2210
+ slug?: string;
2211
+ /** A named status for the post. */
2212
+ status?: "publish" | "future" | "draft" | "pending" | "private";
2213
+ /** The theme file to use to display the post. */
2214
+ template?: string;
2215
+ /** The title for the post. */
2216
+ title?: {
2217
+ /** Title for the post, as it exists in the database. */
2218
+ raw?: string;
2219
+ /** HTML title for the post, transformed for display. */
2220
+ rendered?: string;
2221
+ };
2222
+ };
2223
+ export type PostWpV2MediaByIdEditRequest = {
2224
+ /** Alternative text to display when attachment is not displayed. */
2225
+ alt_text?: string;
2226
+ /** The attachment caption. */
2227
+ caption?: {
2228
+ /** Caption for the attachment, as it exists in the database. */
2229
+ raw?: string;
2230
+ /** HTML caption for the attachment, transformed for display. */
2231
+ rendered?: string;
2232
+ };
2233
+ /** The attachment description. */
2234
+ description?: {
2235
+ /** Description for the attachment, as it exists in the database. */
2236
+ raw?: string;
2237
+ /** HTML description for the attachment, transformed for display. */
2238
+ rendered?: string;
2239
+ };
2240
+ /** As a percentage of the image, the height to crop the image to. DEPRECATED: Use `modifiers` instead. */
2241
+ height?: number;
2242
+ /** Array of image edits. */
2243
+ modifiers?: Array<{
2244
+ /** Flip arguments. */
2245
+ args: {
2246
+ /** Flip direction. */
2247
+ flip: {
2248
+ /** Whether to flip in the horizontal direction. */
2249
+ horizontal: boolean;
2250
+ /** Whether to flip in the vertical direction. */
2251
+ vertical: boolean;
2252
+ };
2253
+ };
2254
+ /** Flip type. */
2255
+ type: "flip";
2256
+ } | {
2257
+ /** Rotation arguments. */
2258
+ args: {
2259
+ /** Angle to rotate clockwise in degrees. */
2260
+ angle: number;
2261
+ };
2262
+ /** Rotation type. */
2263
+ type: "rotate";
2264
+ } | {
2265
+ /** Crop arguments. */
2266
+ args: {
2267
+ /** Height of the crop as a percentage of the image height. */
2268
+ height: number;
2269
+ /** Horizontal position from the left to begin the crop as a percentage of the image width. */
2270
+ left: number;
2271
+ /** Vertical position from the top to begin the crop as a percentage of the image height. */
2272
+ top: number;
2273
+ /** Width of the crop as a percentage of the image width. */
2274
+ width: number;
2275
+ };
2276
+ /** Crop type. */
2277
+ type: "crop";
2278
+ }>;
2279
+ /** The ID for the associated post of the attachment. */
2280
+ post?: number;
2281
+ /** The amount to rotate the image clockwise in degrees. DEPRECATED: Use `modifiers` instead. */
2282
+ rotation?: number;
2283
+ /** URL to the edited image file. */
2284
+ src: string;
2285
+ /** The title for the post. */
2286
+ title?: {
2287
+ /** Title for the post, as it exists in the database. */
2288
+ raw?: string;
2289
+ /** HTML title for the post, transformed for display. */
2290
+ rendered?: string;
2291
+ };
2292
+ /** As a percentage of the image, the width to crop the image to. DEPRECATED: Use `modifiers` instead. */
2293
+ width?: number;
2294
+ /** As a percentage of the image, the x position to start the crop from. DEPRECATED: Use `modifiers` instead. */
2295
+ x?: number;
2296
+ /** As a percentage of the image, the y position to start the crop from. DEPRECATED: Use `modifiers` instead. */
2297
+ y?: number;
2298
+ };
2299
+ export type PostWpV2MediaByIdPostProcessRequest = {
2300
+ action: "create-image-subsizes";
2301
+ };
2302
+ export type GetWpV2MenuItemsResponse = Array<NavMenuItem>;
2303
+ export type PostWpV2MenuItemsRequest = {
2304
+ /** Text for the title attribute of the link element for this menu item. */
2305
+ attr_title?: string;
2306
+ /** Class names for the link element of this menu item. */
2307
+ classes?: Array<string>;
2308
+ /** The description of this menu item. */
2309
+ description?: string;
2310
+ /** The DB ID of the nav_menu_item that is this item's menu parent, if any, otherwise 0. */
2311
+ menu_order?: number;
2312
+ /** The terms assigned to the object in the nav_menu taxonomy. */
2313
+ menus?: number;
2314
+ /** Meta fields. */
2315
+ meta?: Record<string, unknown>;
2316
+ /** The type of object originally represented, such as "category", "post", or "attachment". */
2317
+ object?: string;
2318
+ /** The database ID of the original object this menu item represents, for example the ID for posts or the term_id for categories. */
2319
+ object_id?: number;
2320
+ /** The ID for the parent of the object. */
2321
+ parent?: number;
2322
+ /** A named status for the object. */
2323
+ status?: "publish" | "future" | "draft" | "pending" | "private";
2324
+ /** The target attribute of the link element for this menu item. */
2325
+ target?: "_blank" | "";
2326
+ /** The title for the object. */
2327
+ title?: string | {
2328
+ /** Title for the object, as it exists in the database. */
2329
+ raw?: string;
2330
+ /** HTML title for the object, transformed for display. */
2331
+ rendered?: string;
2332
+ };
2333
+ /** The family of objects originally represented, such as "post_type" or "taxonomy". */
2334
+ type?: "taxonomy" | "post_type" | "post_type_archive" | "custom";
2335
+ /** The URL to which this menu item points. */
2336
+ url?: string;
2337
+ /** The XFN relationship expressed in the link of this menu item. */
2338
+ xfn?: Array<string>;
2339
+ };
2340
+ export type PostWpV2MenuItemsByIdRequest = {
2341
+ /** Text for the title attribute of the link element for this menu item. */
2342
+ attr_title?: string;
2343
+ /** Class names for the link element of this menu item. */
2344
+ classes?: Array<string>;
2345
+ /** The description of this menu item. */
2346
+ description?: string;
2347
+ /** The DB ID of the nav_menu_item that is this item's menu parent, if any, otherwise 0. */
2348
+ menu_order?: number;
2349
+ /** The terms assigned to the object in the nav_menu taxonomy. */
2350
+ menus?: number;
2351
+ /** Meta fields. */
2352
+ meta?: Record<string, unknown>;
2353
+ /** The type of object originally represented, such as "category", "post", or "attachment". */
2354
+ object?: string;
2355
+ /** The database ID of the original object this menu item represents, for example the ID for posts or the term_id for categories. */
2356
+ object_id?: number;
2357
+ /** The ID for the parent of the object. */
2358
+ parent?: number;
2359
+ /** A named status for the object. */
2360
+ status?: "publish" | "future" | "draft" | "pending" | "private";
2361
+ /** The target attribute of the link element for this menu item. */
2362
+ target?: "_blank" | "";
2363
+ /** The title for the object. */
2364
+ title?: string | {
2365
+ /** Title for the object, as it exists in the database. */
2366
+ raw?: string;
2367
+ /** HTML title for the object, transformed for display. */
2368
+ rendered?: string;
2369
+ };
2370
+ /** The family of objects originally represented, such as "post_type" or "taxonomy". */
2371
+ type?: "taxonomy" | "post_type" | "post_type_archive" | "custom";
2372
+ /** The URL to which this menu item points. */
2373
+ url?: string;
2374
+ /** The XFN relationship expressed in the link of this menu item. */
2375
+ xfn?: Array<string>;
2376
+ };
2377
+ export type PostWpV2MenuItemsByIdAutosavesRequest = {
2378
+ /** Text for the title attribute of the link element for this menu item. */
2379
+ attr_title?: string;
2380
+ /** Class names for the link element of this menu item. */
2381
+ classes?: Array<string>;
2382
+ /** The description of this menu item. */
2383
+ description?: string;
2384
+ /** The DB ID of the nav_menu_item that is this item's menu parent, if any, otherwise 0. */
2385
+ menu_order?: number;
2386
+ /** The terms assigned to the object in the nav_menu taxonomy. */
2387
+ menus?: number;
2388
+ /** Meta fields. */
2389
+ meta?: Record<string, unknown>;
2390
+ /** The type of object originally represented, such as "category", "post", or "attachment". */
2391
+ object?: string;
2392
+ /** The database ID of the original object this menu item represents, for example the ID for posts or the term_id for categories. */
2393
+ object_id?: number;
2394
+ /** The ID for the parent of the object. */
2395
+ parent?: number;
2396
+ /** A named status for the object. */
2397
+ status?: "publish" | "future" | "draft" | "pending" | "private";
2398
+ /** The target attribute of the link element for this menu item. */
2399
+ target?: "_blank" | "";
2400
+ /** The title for the object. */
2401
+ title?: string | {
2402
+ /** Title for the object, as it exists in the database. */
2403
+ raw?: string;
2404
+ /** HTML title for the object, transformed for display. */
2405
+ rendered?: string;
2406
+ };
2407
+ /** The family of objects originally represented, such as "post_type" or "taxonomy". */
2408
+ type?: "taxonomy" | "post_type" | "post_type_archive" | "custom";
2409
+ /** The URL to which this menu item points. */
2410
+ url?: string;
2411
+ /** The XFN relationship expressed in the link of this menu item. */
2412
+ xfn?: Array<string>;
2413
+ };
2414
+ export type GetWpV2MenusResponse = Array<NavMenu>;
2415
+ export type PostWpV2MenusRequest = {
2416
+ /** Whether to automatically add top level pages to this menu. */
2417
+ auto_add?: boolean;
2418
+ /** HTML description of the term. */
2419
+ description?: string;
2420
+ /** The locations assigned to the menu. */
2421
+ locations?: Array<string>;
2422
+ /** Meta fields. */
2423
+ meta?: Record<string, unknown>;
2424
+ /** HTML title for the term. */
2425
+ name: string;
2426
+ /** An alphanumeric identifier for the term unique to its type. */
2427
+ slug?: string;
2428
+ };
2429
+ export type PostWpV2MenusByIdRequest = {
2430
+ /** Whether to automatically add top level pages to this menu. */
2431
+ auto_add?: boolean;
2432
+ /** HTML description of the term. */
2433
+ description?: string;
2434
+ /** The locations assigned to the menu. */
2435
+ locations?: Array<string>;
2436
+ /** Meta fields. */
2437
+ meta?: Record<string, unknown>;
2438
+ /** HTML title for the term. */
2439
+ name?: string;
2440
+ /** An alphanumeric identifier for the term unique to its type. */
2441
+ slug?: string;
2442
+ };
2443
+ export type GetWpV2NavigationResponse = Array<WpNavigation>;
2444
+ export type PostWpV2NavigationRequest = {
2445
+ /** The content for the post. */
2446
+ content?: {
2447
+ /** Version of the content block format used by the post. */
2448
+ block_version?: number;
2449
+ /** Whether the content is protected with a password. */
2450
+ protected?: boolean;
2451
+ /** Content for the post, as it exists in the database. */
2452
+ raw?: string;
2453
+ /** HTML content for the post, transformed for display. */
2454
+ rendered?: string;
2455
+ };
2456
+ /** The date the post was published, in the site's timezone. */
2457
+ date?: string | null;
2458
+ /** The date the post was published, as GMT. */
2459
+ date_gmt?: string | null;
2460
+ /** A password to protect access to the content and excerpt. */
2461
+ password?: string;
2462
+ /** An alphanumeric identifier for the post unique to its type. */
2463
+ slug?: string;
2464
+ /** A named status for the post. */
2465
+ status?: "publish" | "future" | "draft" | "pending" | "private";
2466
+ /** The theme file to use to display the post. */
2467
+ template?: string;
2468
+ /** The title for the post. */
2469
+ title?: {
2470
+ /** Title for the post, as it exists in the database. */
2471
+ raw?: string;
2472
+ /** HTML title for the post, transformed for display. */
2473
+ rendered?: string;
2474
+ };
2475
+ };
2476
+ export type PostWpV2NavigationByIdRequest = {
2477
+ /** The content for the post. */
2478
+ content?: {
2479
+ /** Version of the content block format used by the post. */
2480
+ block_version?: number;
2481
+ /** Whether the content is protected with a password. */
2482
+ protected?: boolean;
2483
+ /** Content for the post, as it exists in the database. */
2484
+ raw?: string;
2485
+ /** HTML content for the post, transformed for display. */
2486
+ rendered?: string;
2487
+ };
2488
+ /** The date the post was published, in the site's timezone. */
2489
+ date?: string | null;
2490
+ /** The date the post was published, as GMT. */
2491
+ date_gmt?: string | null;
2492
+ /** A password to protect access to the content and excerpt. */
2493
+ password?: string;
2494
+ /** An alphanumeric identifier for the post unique to its type. */
2495
+ slug?: string;
2496
+ /** A named status for the post. */
2497
+ status?: "publish" | "future" | "draft" | "pending" | "private";
2498
+ /** The theme file to use to display the post. */
2499
+ template?: string;
2500
+ /** The title for the post. */
2501
+ title?: {
2502
+ /** Title for the post, as it exists in the database. */
2503
+ raw?: string;
2504
+ /** HTML title for the post, transformed for display. */
2505
+ rendered?: string;
2506
+ };
2507
+ };
2508
+ export type PostWpV2NavigationByIdAutosavesRequest = {
2509
+ /** The content for the post. */
2510
+ content?: {
2511
+ /** Version of the content block format used by the post. */
2512
+ block_version?: number;
2513
+ /** Whether the content is protected with a password. */
2514
+ protected?: boolean;
2515
+ /** Content for the post, as it exists in the database. */
2516
+ raw?: string;
2517
+ /** HTML content for the post, transformed for display. */
2518
+ rendered?: string;
2519
+ };
2520
+ /** The date the post was published, in the site's timezone. */
2521
+ date?: string | null;
2522
+ /** The date the post was published, as GMT. */
2523
+ date_gmt?: string | null;
2524
+ /** The ID for the parent of the autosave. */
2525
+ parent?: number;
2526
+ /** A password to protect access to the content and excerpt. */
2527
+ password?: string;
2528
+ /** An alphanumeric identifier for the post unique to its type. */
2529
+ slug?: string;
2530
+ /** A named status for the post. */
2531
+ status?: "publish" | "future" | "draft" | "pending" | "private";
2532
+ /** The theme file to use to display the post. */
2533
+ template?: string;
2534
+ /** The title for the post. */
2535
+ title?: {
2536
+ /** Title for the post, as it exists in the database. */
2537
+ raw?: string;
2538
+ /** HTML title for the post, transformed for display. */
2539
+ rendered?: string;
2540
+ };
2541
+ };
2542
+ export type GetWpV2NavigationByParentRevisionsResponse = Array<WpNavigationRevision2>;
2543
+ export type GetWpV2PagesResponse = Array<Page>;
2544
+ export type PostWpV2PagesRequest = {
2545
+ /** The ID for the author of the post. */
2546
+ author?: number;
2547
+ /** Whether or not comments are open on the post. */
2548
+ comment_status?: "open" | "closed";
2549
+ /** The content for the post. */
2550
+ content?: {
2551
+ /** Version of the content block format used by the post. */
2552
+ block_version?: number;
2553
+ /** Whether the content is protected with a password. */
2554
+ protected?: boolean;
2555
+ /** Content for the post, as it exists in the database. */
2556
+ raw?: string;
2557
+ /** HTML content for the post, transformed for display. */
2558
+ rendered?: string;
2559
+ };
2560
+ /** The date the post was published, in the site's timezone. */
2561
+ date?: string | null;
2562
+ /** The date the post was published, as GMT. */
2563
+ date_gmt?: string | null;
2564
+ /** The excerpt for the post. */
2565
+ excerpt?: {
2566
+ /** Whether the excerpt is protected with a password. */
2567
+ protected?: boolean;
2568
+ /** Excerpt for the post, as it exists in the database. */
2569
+ raw?: string;
2570
+ /** HTML excerpt for the post, transformed for display. */
2571
+ rendered?: string;
2572
+ };
2573
+ /** The ID of the featured media for the post. */
2574
+ featured_media?: number;
2575
+ /** The order of the post in relation to other posts. */
2576
+ menu_order?: number;
2577
+ /** Meta fields. */
2578
+ meta?: {
2579
+ footnotes?: string;
2580
+ };
2581
+ /** The ID for the parent of the post. */
2582
+ parent?: number;
2583
+ /** A password to protect access to the content and excerpt. */
2584
+ password?: string;
2585
+ /** Whether or not the post can be pinged. */
2586
+ ping_status?: "open" | "closed";
2587
+ /** An alphanumeric identifier for the post unique to its type. */
2588
+ slug?: string;
2589
+ /** A named status for the post. */
2590
+ status?: "publish" | "future" | "draft" | "pending" | "private";
2591
+ /** The theme file to use to display the post. */
2592
+ template?: string;
2593
+ /** The title for the post. */
2594
+ title?: {
2595
+ /** Title for the post, as it exists in the database. */
2596
+ raw?: string;
2597
+ /** HTML title for the post, transformed for display. */
2598
+ rendered?: string;
2599
+ };
2600
+ };
2601
+ export type PostWpV2PagesByIdRequest = {
2602
+ /** The ID for the author of the post. */
2603
+ author?: number;
2604
+ /** Whether or not comments are open on the post. */
2605
+ comment_status?: "open" | "closed";
2606
+ /** The content for the post. */
2607
+ content?: {
2608
+ /** Version of the content block format used by the post. */
2609
+ block_version?: number;
2610
+ /** Whether the content is protected with a password. */
2611
+ protected?: boolean;
2612
+ /** Content for the post, as it exists in the database. */
2613
+ raw?: string;
2614
+ /** HTML content for the post, transformed for display. */
2615
+ rendered?: string;
2616
+ };
2617
+ /** The date the post was published, in the site's timezone. */
2618
+ date?: string | null;
2619
+ /** The date the post was published, as GMT. */
2620
+ date_gmt?: string | null;
2621
+ /** The excerpt for the post. */
2622
+ excerpt?: {
2623
+ /** Whether the excerpt is protected with a password. */
2624
+ protected?: boolean;
2625
+ /** Excerpt for the post, as it exists in the database. */
2626
+ raw?: string;
2627
+ /** HTML excerpt for the post, transformed for display. */
2628
+ rendered?: string;
2629
+ };
2630
+ /** The ID of the featured media for the post. */
2631
+ featured_media?: number;
2632
+ /** The order of the post in relation to other posts. */
2633
+ menu_order?: number;
2634
+ /** Meta fields. */
2635
+ meta?: {
2636
+ footnotes?: string;
2637
+ };
2638
+ /** The ID for the parent of the post. */
2639
+ parent?: number;
2640
+ /** A password to protect access to the content and excerpt. */
2641
+ password?: string;
2642
+ /** Whether or not the post can be pinged. */
2643
+ ping_status?: "open" | "closed";
2644
+ /** An alphanumeric identifier for the post unique to its type. */
2645
+ slug?: string;
2646
+ /** A named status for the post. */
2647
+ status?: "publish" | "future" | "draft" | "pending" | "private";
2648
+ /** The theme file to use to display the post. */
2649
+ template?: string;
2650
+ /** The title for the post. */
2651
+ title?: {
2652
+ /** Title for the post, as it exists in the database. */
2653
+ raw?: string;
2654
+ /** HTML title for the post, transformed for display. */
2655
+ rendered?: string;
2656
+ };
2657
+ };
2658
+ export type PostWpV2PagesByIdAutosavesRequest = {
2659
+ /** The ID for the author of the post. */
2660
+ author?: number;
2661
+ /** Whether or not comments are open on the post. */
2662
+ comment_status?: "open" | "closed";
2663
+ /** The content for the post. */
2664
+ content?: {
2665
+ /** Version of the content block format used by the post. */
2666
+ block_version?: number;
2667
+ /** Whether the content is protected with a password. */
2668
+ protected?: boolean;
2669
+ /** Content for the post, as it exists in the database. */
2670
+ raw?: string;
2671
+ /** HTML content for the post, transformed for display. */
2672
+ rendered?: string;
2673
+ };
2674
+ /** The date the post was published, in the site's timezone. */
2675
+ date?: string | null;
2676
+ /** The date the post was published, as GMT. */
2677
+ date_gmt?: string | null;
2678
+ /** The excerpt for the post. */
2679
+ excerpt?: {
2680
+ /** Whether the excerpt is protected with a password. */
2681
+ protected?: boolean;
2682
+ /** Excerpt for the post, as it exists in the database. */
2683
+ raw?: string;
2684
+ /** HTML excerpt for the post, transformed for display. */
2685
+ rendered?: string;
2686
+ };
2687
+ /** The ID of the featured media for the post. */
2688
+ featured_media?: number;
2689
+ /** The order of the post in relation to other posts. */
2690
+ menu_order?: number;
2691
+ /** Meta fields. */
2692
+ meta?: {
2693
+ footnotes?: string;
2694
+ };
2695
+ /** The ID for the parent of the post. */
2696
+ parent?: number;
2697
+ /** A password to protect access to the content and excerpt. */
2698
+ password?: string;
2699
+ /** Whether or not the post can be pinged. */
2700
+ ping_status?: "open" | "closed";
2701
+ /** An alphanumeric identifier for the post unique to its type. */
2702
+ slug?: string;
2703
+ /** A named status for the post. */
2704
+ status?: "publish" | "future" | "draft" | "pending" | "private";
2705
+ /** The theme file to use to display the post. */
2706
+ template?: string;
2707
+ /** The title for the post. */
2708
+ title?: {
2709
+ /** Title for the post, as it exists in the database. */
2710
+ raw?: string;
2711
+ /** HTML title for the post, transformed for display. */
2712
+ rendered?: string;
2713
+ };
2714
+ };
2715
+ export type GetWpV2PagesByParentRevisionsResponse = Array<PageRevision2>;
2716
+ export type GetWpV2PatternDirectoryPatternsResponse = Array<PatternDirectoryItem>;
2717
+ export type PostWpV2PluginsRequest = {
2718
+ /** WordPress.org plugin directory slug. */
2719
+ slug: string;
2720
+ /** The plugin activation status. */
2721
+ status?: "inactive" | "active";
2722
+ };
2723
+ export type GetWpV2PostsResponse = Array<Post>;
2724
+ export type PostWpV2PostsRequest = {
2725
+ /** The ID for the author of the post. */
2726
+ author?: number;
2727
+ /** The terms assigned to the post in the category taxonomy. */
2728
+ categories?: Array<number>;
2729
+ /** Whether or not comments are open on the post. */
2730
+ comment_status?: "open" | "closed";
2731
+ /** The content for the post. */
2732
+ content?: {
2733
+ /** Version of the content block format used by the post. */
2734
+ block_version?: number;
2735
+ /** Whether the content is protected with a password. */
2736
+ protected?: boolean;
2737
+ /** Content for the post, as it exists in the database. */
2738
+ raw?: string;
2739
+ /** HTML content for the post, transformed for display. */
2740
+ rendered?: string;
2741
+ };
2742
+ /** The date the post was published, in the site's timezone. */
2743
+ date?: string | null;
2744
+ /** The date the post was published, as GMT. */
2745
+ date_gmt?: string | null;
2746
+ /** The excerpt for the post. */
2747
+ excerpt?: {
2748
+ /** Whether the excerpt is protected with a password. */
2749
+ protected?: boolean;
2750
+ /** Excerpt for the post, as it exists in the database. */
2751
+ raw?: string;
2752
+ /** HTML excerpt for the post, transformed for display. */
2753
+ rendered?: string;
2754
+ };
2755
+ /** The ID of the featured media for the post. */
2756
+ featured_media?: number;
2757
+ /** The format for the post. */
2758
+ format?: "standard" | "aside" | "chat" | "gallery" | "link" | "image" | "quote" | "status" | "video" | "audio";
2759
+ /** Meta fields. */
2760
+ meta?: {
2761
+ footnotes?: string;
2762
+ };
2763
+ /** A password to protect access to the content and excerpt. */
2764
+ password?: string;
2765
+ /** Whether or not the post can be pinged. */
2766
+ ping_status?: "open" | "closed";
2767
+ /** An alphanumeric identifier for the post unique to its type. */
2768
+ slug?: string;
2769
+ /** A named status for the post. */
2770
+ status?: "publish" | "future" | "draft" | "pending" | "private";
2771
+ /** Whether or not the post should be treated as sticky. */
2772
+ sticky?: boolean;
2773
+ /** The terms assigned to the post in the post_tag taxonomy. */
2774
+ tags?: Array<number>;
2775
+ /** The theme file to use to display the post. */
2776
+ template?: string;
2777
+ /** The title for the post. */
2778
+ title?: {
2779
+ /** Title for the post, as it exists in the database. */
2780
+ raw?: string;
2781
+ /** HTML title for the post, transformed for display. */
2782
+ rendered?: string;
2783
+ };
2784
+ };
2785
+ export type PostWpV2PostsByIdRequest = {
2786
+ /** The ID for the author of the post. */
2787
+ author?: number;
2788
+ /** The terms assigned to the post in the category taxonomy. */
2789
+ categories?: Array<number>;
2790
+ /** Whether or not comments are open on the post. */
2791
+ comment_status?: "open" | "closed";
2792
+ /** The content for the post. */
2793
+ content?: {
2794
+ /** Version of the content block format used by the post. */
2795
+ block_version?: number;
2796
+ /** Whether the content is protected with a password. */
2797
+ protected?: boolean;
2798
+ /** Content for the post, as it exists in the database. */
2799
+ raw?: string;
2800
+ /** HTML content for the post, transformed for display. */
2801
+ rendered?: string;
2802
+ };
2803
+ /** The date the post was published, in the site's timezone. */
2804
+ date?: string | null;
2805
+ /** The date the post was published, as GMT. */
2806
+ date_gmt?: string | null;
2807
+ /** The excerpt for the post. */
2808
+ excerpt?: {
2809
+ /** Whether the excerpt is protected with a password. */
2810
+ protected?: boolean;
2811
+ /** Excerpt for the post, as it exists in the database. */
2812
+ raw?: string;
2813
+ /** HTML excerpt for the post, transformed for display. */
2814
+ rendered?: string;
2815
+ };
2816
+ /** The ID of the featured media for the post. */
2817
+ featured_media?: number;
2818
+ /** The format for the post. */
2819
+ format?: "standard" | "aside" | "chat" | "gallery" | "link" | "image" | "quote" | "status" | "video" | "audio";
2820
+ /** Meta fields. */
2821
+ meta?: {
2822
+ footnotes?: string;
2823
+ };
2824
+ /** A password to protect access to the content and excerpt. */
2825
+ password?: string;
2826
+ /** Whether or not the post can be pinged. */
2827
+ ping_status?: "open" | "closed";
2828
+ /** An alphanumeric identifier for the post unique to its type. */
2829
+ slug?: string;
2830
+ /** A named status for the post. */
2831
+ status?: "publish" | "future" | "draft" | "pending" | "private";
2832
+ /** Whether or not the post should be treated as sticky. */
2833
+ sticky?: boolean;
2834
+ /** The terms assigned to the post in the post_tag taxonomy. */
2835
+ tags?: Array<number>;
2836
+ /** The theme file to use to display the post. */
2837
+ template?: string;
2838
+ /** The title for the post. */
2839
+ title?: {
2840
+ /** Title for the post, as it exists in the database. */
2841
+ raw?: string;
2842
+ /** HTML title for the post, transformed for display. */
2843
+ rendered?: string;
2844
+ };
2845
+ };
2846
+ export type PostWpV2PostsByIdAutosavesRequest = {
2847
+ /** The ID for the author of the post. */
2848
+ author?: number;
2849
+ /** The terms assigned to the post in the category taxonomy. */
2850
+ categories?: Array<number>;
2851
+ /** Whether or not comments are open on the post. */
2852
+ comment_status?: "open" | "closed";
2853
+ /** The content for the post. */
2854
+ content?: {
2855
+ /** Version of the content block format used by the post. */
2856
+ block_version?: number;
2857
+ /** Whether the content is protected with a password. */
2858
+ protected?: boolean;
2859
+ /** Content for the post, as it exists in the database. */
2860
+ raw?: string;
2861
+ /** HTML content for the post, transformed for display. */
2862
+ rendered?: string;
2863
+ };
2864
+ /** The date the post was published, in the site's timezone. */
2865
+ date?: string | null;
2866
+ /** The date the post was published, as GMT. */
2867
+ date_gmt?: string | null;
2868
+ /** The excerpt for the post. */
2869
+ excerpt?: {
2870
+ /** Whether the excerpt is protected with a password. */
2871
+ protected?: boolean;
2872
+ /** Excerpt for the post, as it exists in the database. */
2873
+ raw?: string;
2874
+ /** HTML excerpt for the post, transformed for display. */
2875
+ rendered?: string;
2876
+ };
2877
+ /** The ID of the featured media for the post. */
2878
+ featured_media?: number;
2879
+ /** The format for the post. */
2880
+ format?: "standard" | "aside" | "chat" | "gallery" | "link" | "image" | "quote" | "status" | "video" | "audio";
2881
+ /** Meta fields. */
2882
+ meta?: {
2883
+ footnotes?: string;
2884
+ };
2885
+ /** The ID for the parent of the autosave. */
2886
+ parent?: number;
2887
+ /** A password to protect access to the content and excerpt. */
2888
+ password?: string;
2889
+ /** Whether or not the post can be pinged. */
2890
+ ping_status?: "open" | "closed";
2891
+ /** An alphanumeric identifier for the post unique to its type. */
2892
+ slug?: string;
2893
+ /** A named status for the post. */
2894
+ status?: "publish" | "future" | "draft" | "pending" | "private";
2895
+ /** Whether or not the post should be treated as sticky. */
2896
+ sticky?: boolean;
2897
+ /** The terms assigned to the post in the post_tag taxonomy. */
2898
+ tags?: Array<number>;
2899
+ /** The theme file to use to display the post. */
2900
+ template?: string;
2901
+ /** The title for the post. */
2902
+ title?: {
2903
+ /** Title for the post, as it exists in the database. */
2904
+ raw?: string;
2905
+ /** HTML title for the post, transformed for display. */
2906
+ rendered?: string;
2907
+ };
2908
+ };
2909
+ export type GetWpV2PostsByParentRevisionsResponse = Array<PostRevision2>;
2910
+ export type GetWpV2SearchResponse = Array<SearchResult>;
2911
+ export type PostWpV2SettingsRequest = {
2912
+ /** A date format for all date strings. */
2913
+ date_format?: string;
2914
+ /** Default post category. */
2915
+ default_category?: number;
2916
+ /** Allow people to submit comments on new posts. */
2917
+ default_comment_status?: "open" | "closed";
2918
+ /** Allow link notifications from other blogs (pingbacks and trackbacks) on new articles. */
2919
+ default_ping_status?: "open" | "closed";
2920
+ /** Default post format. */
2921
+ default_post_format?: string;
2922
+ /** Site tagline. */
2923
+ description?: string;
2924
+ /** This address is used for admin purposes, like new user notification. */
2925
+ email?: string;
2926
+ /** WordPress locale code. */
2927
+ language?: string;
2928
+ /** The ID of the page that should display the latest posts */
2929
+ page_for_posts?: number;
2930
+ /** The ID of the page that should be displayed on the front page */
2931
+ page_on_front?: number;
2932
+ /** Blog pages show at most. */
2933
+ posts_per_page?: number;
2934
+ /** What to show on the front page */
2935
+ show_on_front?: string;
2936
+ /** Site icon. */
2937
+ site_icon?: number;
2938
+ /** Site logo. */
2939
+ site_logo?: number;
2940
+ /** A day number of the week that the week should start on. */
2941
+ start_of_week?: number;
2942
+ /** A time format for all time strings. */
2943
+ time_format?: string;
2944
+ /** A city in the same timezone as you. */
2945
+ timezone?: string;
2946
+ /** Site title. */
2947
+ title?: string;
2948
+ /** Site URL. */
2949
+ url?: string;
2950
+ /** Convert emoticons like :-) and :-P to graphics on display. */
2951
+ use_smilies?: boolean;
2952
+ };
2953
+ export type PostWpV2SidebarsByIdRequest = {
2954
+ /** Nested widgets. */
2955
+ widgets?: Array<Record<string, unknown> | string>;
2956
+ };
2957
+ export type GetWpV2TagsResponse = Array<Tag>;
2958
+ export type PostWpV2TagsRequest = {
2959
+ /** HTML description of the term. */
2960
+ description?: string;
2961
+ /** Meta fields. */
2962
+ meta?: Record<string, unknown>;
2963
+ /** HTML title for the term. */
2964
+ name: string;
2965
+ /** An alphanumeric identifier for the term unique to its type. */
2966
+ slug?: string;
2967
+ };
2968
+ export type PostWpV2TagsByIdRequest = {
2969
+ /** HTML description of the term. */
2970
+ description?: string;
2971
+ /** Meta fields. */
2972
+ meta?: Record<string, unknown>;
2973
+ /** HTML title for the term. */
2974
+ name?: string;
2975
+ /** An alphanumeric identifier for the term unique to its type. */
2976
+ slug?: string;
2977
+ };
2978
+ export type PostWpV2TemplatePartsRequest = {
2979
+ /** Where the template part is intended for use (header, footer, etc.) */
2980
+ area?: string;
2981
+ /** The ID for the author of the template. */
2982
+ author?: number;
2983
+ /** Content of template. */
2984
+ content?: {
2985
+ /** Version of the content block format used by the template. */
2986
+ block_version?: number;
2987
+ /** Content for the template, as it exists in the database. */
2988
+ raw?: string;
2989
+ } | string;
2990
+ /** Description of template. */
2991
+ description?: string;
2992
+ /** Unique slug identifying the template. */
2993
+ slug: string;
2994
+ /** Status of template. */
2995
+ status?: "publish" | "future" | "draft" | "pending" | "private";
2996
+ /** Theme identifier for the template. */
2997
+ theme?: string;
2998
+ /** Title of template. */
2999
+ title?: {
3000
+ /** Title for the template, as it exists in the database. */
3001
+ raw?: string;
3002
+ /** HTML title for the template, transformed for display. */
3003
+ rendered?: string;
3004
+ } | string;
3005
+ /** Type of template. */
3006
+ type?: string;
3007
+ };
3008
+ export type PostWpV2TemplatesRequest = {
3009
+ /** The ID for the author of the template. */
3010
+ author?: number;
3011
+ /** Content of template. */
3012
+ content?: {
3013
+ /** Version of the content block format used by the template. */
3014
+ block_version?: number;
3015
+ /** Content for the template, as it exists in the database. */
3016
+ raw?: string;
3017
+ } | string;
3018
+ /** Description of template. */
3019
+ description?: string;
3020
+ /** Unique slug identifying the template. */
3021
+ slug: string;
3022
+ /** Status of template. */
3023
+ status?: "publish" | "future" | "draft" | "pending" | "private";
3024
+ /** Theme identifier for the template. */
3025
+ theme?: string;
3026
+ /** Title of template. */
3027
+ title?: {
3028
+ /** Title for the template, as it exists in the database. */
3029
+ raw?: string;
3030
+ /** HTML title for the template, transformed for display. */
3031
+ rendered?: string;
3032
+ } | string;
3033
+ /** Type of template. */
3034
+ type?: string;
3035
+ };
3036
+ export type GetWpV2UsersResponse = Array<User>;
3037
+ export type PostWpV2UsersRequest = {
3038
+ /** Description of the user. */
3039
+ description?: string;
3040
+ /** The email address for the user. */
3041
+ email: string;
3042
+ /** First name for the user. */
3043
+ first_name?: string;
3044
+ /** Last name for the user. */
3045
+ last_name?: string;
3046
+ /** Locale for the user. */
3047
+ locale?: "" | "en_US";
3048
+ /** Meta fields. */
3049
+ meta?: {
3050
+ persisted_preferences?: {
3051
+ /** The date and time the preferences were updated. */
3052
+ _modified?: string;
3053
+ } & {
3054
+ [key: string]: unknown;
3055
+ };
3056
+ };
3057
+ /** Display name for the user. */
3058
+ name?: string;
3059
+ /** The nickname for the user. */
3060
+ nickname?: string;
3061
+ /** Password for the user (never included). */
3062
+ password: string;
3063
+ /** Roles assigned to the user. */
3064
+ roles?: Array<string>;
3065
+ /** An alphanumeric identifier for the user. */
3066
+ slug?: string;
3067
+ /** URL of the user. */
3068
+ url?: string;
3069
+ /** Login name for the user. */
3070
+ username: string;
3071
+ };
3072
+ export type PostWpV2UsersByIdRequest = {
3073
+ /** Description of the user. */
3074
+ description?: string;
3075
+ /** The email address for the user. */
3076
+ email?: string;
3077
+ /** First name for the user. */
3078
+ first_name?: string;
3079
+ /** Last name for the user. */
3080
+ last_name?: string;
3081
+ /** Locale for the user. */
3082
+ locale?: "" | "en_US";
3083
+ /** Meta fields. */
3084
+ meta?: {
3085
+ persisted_preferences?: {
3086
+ /** The date and time the preferences were updated. */
3087
+ _modified?: string;
3088
+ } & {
3089
+ [key: string]: unknown;
3090
+ };
3091
+ };
3092
+ /** Display name for the user. */
3093
+ name?: string;
3094
+ /** The nickname for the user. */
3095
+ nickname?: string;
3096
+ /** Password for the user (never included). */
3097
+ password?: string;
3098
+ /** Roles assigned to the user. */
3099
+ roles?: Array<string>;
3100
+ /** An alphanumeric identifier for the user. */
3101
+ slug?: string;
3102
+ /** URL of the user. */
3103
+ url?: string;
3104
+ /** Login name for the user. */
3105
+ username?: string;
3106
+ };
3107
+ export type PostWpV2UsersByUserIdApplicationPasswordsByUuidRequest = {
3108
+ /** A UUID provided by the application to uniquely identify it. It is recommended to use an UUID v5 with the URL or DNS namespace. */
3109
+ app_id?: string | "";
3110
+ /** The name of the application password. */
3111
+ name?: string;
3112
+ };
3113
+ export type PostWpV2UsersMeRequest = {
3114
+ /** Description of the user. */
3115
+ description?: string;
3116
+ /** The email address for the user. */
3117
+ email?: string;
3118
+ /** First name for the user. */
3119
+ first_name?: string;
3120
+ /** Last name for the user. */
3121
+ last_name?: string;
3122
+ /** Locale for the user. */
3123
+ locale?: "" | "en_US";
3124
+ /** Meta fields. */
3125
+ meta?: {
3126
+ persisted_preferences?: {
3127
+ /** The date and time the preferences were updated. */
3128
+ _modified?: string;
3129
+ } & {
3130
+ [key: string]: unknown;
3131
+ };
3132
+ };
3133
+ /** Display name for the user. */
3134
+ name?: string;
3135
+ /** The nickname for the user. */
3136
+ nickname?: string;
3137
+ /** Password for the user (never included). */
3138
+ password?: string;
3139
+ /** Roles assigned to the user. */
3140
+ roles?: Array<string>;
3141
+ /** An alphanumeric identifier for the user. */
3142
+ slug?: string;
3143
+ /** URL of the user. */
3144
+ url?: string;
3145
+ /** Login name for the user. */
3146
+ username?: string;
3147
+ };
3148
+ export type PostWpV2WidgetTypesByIdEncodeRequest = {
3149
+ /** Serialized widget form data to encode into instance settings. */
3150
+ form_data?: string;
3151
+ /** Current instance settings of the widget. */
3152
+ instance?: Record<string, unknown>;
3153
+ };
3154
+ export type PostWpV2WidgetTypesByIdRenderRequest = {
3155
+ /** Current instance settings of the widget. */
3156
+ instance?: Record<string, unknown>;
3157
+ };
3158
+ export type PostWpV2WidgetsRequest = {
3159
+ /** URL-encoded form data from the widget admin form. Used to update a widget that does not support instance. Write only. */
3160
+ form_data?: string;
3161
+ /** Unique identifier for the widget. */
3162
+ id?: string;
3163
+ /** The type of the widget. Corresponds to ID in widget-types endpoint. */
3164
+ id_base?: string;
3165
+ /** Instance settings of the widget, if supported. */
3166
+ instance?: {
3167
+ /** Base64 encoded representation of the instance settings. */
3168
+ encoded?: string;
3169
+ /** Cryptographic hash of the instance settings. */
3170
+ hash?: string;
3171
+ /** Unencoded instance settings, if supported. */
3172
+ raw?: Record<string, unknown>;
3173
+ };
3174
+ /** The sidebar the widget belongs to. */
3175
+ sidebar: string;
3176
+ };
3177
+ export type PostWpV2WidgetsByIdRequest = {
3178
+ /** URL-encoded form data from the widget admin form. Used to update a widget that does not support instance. Write only. */
3179
+ form_data?: string;
3180
+ /** The type of the widget. Corresponds to ID in widget-types endpoint. */
3181
+ id_base?: string;
3182
+ /** Instance settings of the widget, if supported. */
3183
+ instance?: {
3184
+ /** Base64 encoded representation of the instance settings. */
3185
+ encoded?: string;
3186
+ /** Cryptographic hash of the instance settings. */
3187
+ hash?: string;
3188
+ /** Unencoded instance settings, if supported. */
3189
+ raw?: Record<string, unknown>;
3190
+ };
3191
+ /** The sidebar the widget belongs to. */
3192
+ sidebar?: string;
3193
+ };
3194
+ export type GetWpV2WpPatternCategoryResponse = Array<WpPatternCategory>;
3195
+ export type PostWpV2WpPatternCategoryRequest = {
3196
+ /** HTML description of the term. */
3197
+ description?: string;
3198
+ /** Meta fields. */
3199
+ meta?: Record<string, unknown>;
3200
+ /** HTML title for the term. */
3201
+ name: string;
3202
+ /** An alphanumeric identifier for the term unique to its type. */
3203
+ slug?: string;
3204
+ };
3205
+ export type PostWpV2WpPatternCategoryByIdRequest = {
3206
+ /** HTML description of the term. */
3207
+ description?: string;
3208
+ /** Meta fields. */
3209
+ meta?: Record<string, unknown>;
3210
+ /** HTML title for the term. */
3211
+ name?: string;
3212
+ /** An alphanumeric identifier for the term unique to its type. */
3213
+ slug?: string;
3214
+ };
3215
+ /** What each operation answers, by its id. */
3216
+ export interface Responses {
3217
+ getWpV2BlockDirectorySearch: GetWpV2BlockDirectorySearchResponse;
3218
+ getWpV2BlockPatternsCategories: BlockPatternCategory;
3219
+ getWpV2BlockPatternsPatterns: BlockPattern;
3220
+ getWpV2BlockTypes: BlockType;
3221
+ getWpV2BlockTypesByNamespace: BlockType;
3222
+ getWpV2BlockTypesByNamespaceByName: BlockType;
3223
+ getWpV2Blocks: GetWpV2BlocksResponse;
3224
+ postWpV2Blocks: WpBlock;
3225
+ getWpV2BlocksById: WpBlock;
3226
+ postWpV2BlocksById: WpBlock;
3227
+ deleteWpV2BlocksById: unknown;
3228
+ getWpV2BlocksByIdAutosaves: WpBlockRevision;
3229
+ postWpV2BlocksByIdAutosaves: WpBlockRevision;
3230
+ getWpV2BlocksByParentAutosavesById: WpBlockRevision;
3231
+ getWpV2BlocksByParentRevisions: GetWpV2BlocksByParentRevisionsResponse;
3232
+ getWpV2BlocksByParentRevisionsById: WpBlockRevision2;
3233
+ deleteWpV2BlocksByParentRevisionsById: unknown;
3234
+ getWpV2Categories: GetWpV2CategoriesResponse;
3235
+ postWpV2Categories: Category;
3236
+ getWpV2CategoriesById: Category;
3237
+ postWpV2CategoriesById: Category;
3238
+ deleteWpV2CategoriesById: unknown;
3239
+ getWpV2Comments: GetWpV2CommentsResponse;
3240
+ postWpV2Comments: Comment;
3241
+ getWpV2CommentsById: Comment;
3242
+ postWpV2CommentsById: Comment;
3243
+ deleteWpV2CommentsById: unknown;
3244
+ getWpV2FontCollections: GetWpV2FontCollectionsResponse;
3245
+ getWpV2FontFamilies: GetWpV2FontFamiliesResponse;
3246
+ postWpV2FontFamilies: WpFontFamily;
3247
+ getWpV2FontFamiliesByFontFamilyIdFontFaces: GetWpV2FontFamiliesByFontFamilyIdFontFacesResponse;
3248
+ postWpV2FontFamiliesByFontFamilyIdFontFaces: WpFontFace;
3249
+ getWpV2FontFamiliesByFontFamilyIdFontFacesById: WpFontFace;
3250
+ deleteWpV2FontFamiliesByFontFamilyIdFontFacesById: unknown;
3251
+ getWpV2FontFamiliesById: WpFontFamily;
3252
+ postWpV2FontFamiliesById: WpFontFamily;
3253
+ deleteWpV2FontFamiliesById: unknown;
3254
+ getWpV2GlobalStylesByParentRevisions: GetWpV2GlobalStylesByParentRevisionsResponse;
3255
+ getWpV2GlobalStylesByParentRevisionsById: WpGlobalStylesRevision;
3256
+ getWpV2Media: GetWpV2MediaResponse;
3257
+ postWpV2Media: Attachment;
3258
+ getWpV2MediaById: Attachment;
3259
+ postWpV2MediaById: Attachment;
3260
+ deleteWpV2MediaById: unknown;
3261
+ postWpV2MediaByIdEdit: unknown;
3262
+ postWpV2MediaByIdPostProcess: unknown;
3263
+ getWpV2MenuItems: GetWpV2MenuItemsResponse;
3264
+ postWpV2MenuItems: NavMenuItem;
3265
+ getWpV2MenuItemsById: NavMenuItem;
3266
+ postWpV2MenuItemsById: NavMenuItem;
3267
+ deleteWpV2MenuItemsById: unknown;
3268
+ getWpV2MenuItemsByIdAutosaves: NavMenuItemRevision;
3269
+ postWpV2MenuItemsByIdAutosaves: NavMenuItemRevision;
3270
+ getWpV2MenuItemsByParentAutosavesById: NavMenuItemRevision;
3271
+ getWpV2MenuLocations: MenuLocation;
3272
+ getWpV2MenuLocationsByLocation: MenuLocation;
3273
+ getWpV2Menus: GetWpV2MenusResponse;
3274
+ postWpV2Menus: NavMenu;
3275
+ getWpV2MenusById: NavMenu;
3276
+ postWpV2MenusById: NavMenu;
3277
+ deleteWpV2MenusById: unknown;
3278
+ getWpV2Navigation: GetWpV2NavigationResponse;
3279
+ postWpV2Navigation: WpNavigation;
3280
+ getWpV2NavigationById: WpNavigation;
3281
+ postWpV2NavigationById: WpNavigation;
3282
+ deleteWpV2NavigationById: unknown;
3283
+ getWpV2NavigationByIdAutosaves: WpNavigationRevision;
3284
+ postWpV2NavigationByIdAutosaves: WpNavigationRevision;
3285
+ getWpV2NavigationByParentAutosavesById: WpNavigationRevision;
3286
+ getWpV2NavigationByParentRevisions: GetWpV2NavigationByParentRevisionsResponse;
3287
+ getWpV2NavigationByParentRevisionsById: WpNavigationRevision2;
3288
+ deleteWpV2NavigationByParentRevisionsById: unknown;
3289
+ getWpV2Pages: GetWpV2PagesResponse;
3290
+ postWpV2Pages: Page;
3291
+ getWpV2PagesById: Page;
3292
+ postWpV2PagesById: Page;
3293
+ deleteWpV2PagesById: unknown;
3294
+ getWpV2PagesByIdAutosaves: PageRevision;
3295
+ postWpV2PagesByIdAutosaves: PageRevision;
3296
+ getWpV2PagesByParentAutosavesById: PageRevision;
3297
+ getWpV2PagesByParentRevisions: GetWpV2PagesByParentRevisionsResponse;
3298
+ getWpV2PagesByParentRevisionsById: PageRevision2;
3299
+ deleteWpV2PagesByParentRevisionsById: unknown;
3300
+ getWpV2PatternDirectoryPatterns: GetWpV2PatternDirectoryPatternsResponse;
3301
+ getWpV2Plugins: Plugin;
3302
+ postWpV2Plugins: Plugin;
3303
+ getWpV2Posts: GetWpV2PostsResponse;
3304
+ postWpV2Posts: Post;
3305
+ getWpV2PostsById: Post;
3306
+ postWpV2PostsById: Post;
3307
+ deleteWpV2PostsById: unknown;
3308
+ getWpV2PostsByIdAutosaves: PostRevision;
3309
+ postWpV2PostsByIdAutosaves: PostRevision;
3310
+ getWpV2PostsByParentAutosavesById: PostRevision;
3311
+ getWpV2PostsByParentRevisions: GetWpV2PostsByParentRevisionsResponse;
3312
+ getWpV2PostsByParentRevisionsById: PostRevision2;
3313
+ deleteWpV2PostsByParentRevisionsById: unknown;
3314
+ getWpV2Search: GetWpV2SearchResponse;
3315
+ getWpV2Settings: Settings;
3316
+ postWpV2Settings: Settings;
3317
+ getWpV2Sidebars: Sidebar;
3318
+ getWpV2SidebarsById: Sidebar;
3319
+ postWpV2SidebarsById: Sidebar;
3320
+ getWpV2Statuses: Status;
3321
+ getWpV2StatusesByStatus: Status;
3322
+ getWpV2Tags: GetWpV2TagsResponse;
3323
+ postWpV2Tags: Tag;
3324
+ getWpV2TagsById: Tag;
3325
+ postWpV2TagsById: Tag;
3326
+ deleteWpV2TagsById: unknown;
3327
+ getWpV2Taxonomies: Taxonomy;
3328
+ getWpV2TaxonomiesByTaxonomy: Taxonomy;
3329
+ getWpV2TemplateParts: WpTemplatePart;
3330
+ postWpV2TemplateParts: WpTemplatePart;
3331
+ getWpV2TemplatePartsLookup: unknown;
3332
+ getWpV2Templates: WpTemplate;
3333
+ postWpV2Templates: WpTemplate;
3334
+ getWpV2TemplatesLookup: unknown;
3335
+ getWpV2Themes: Theme;
3336
+ getWpV2Types: Type;
3337
+ getWpV2TypesByType: Type;
3338
+ getWpV2Users: GetWpV2UsersResponse;
3339
+ postWpV2Users: User;
3340
+ getWpV2UsersById: User;
3341
+ postWpV2UsersById: User;
3342
+ deleteWpV2UsersById: unknown;
3343
+ getWpV2UsersByUserIdApplicationPasswordsByUuid: ApplicationPassword;
3344
+ postWpV2UsersByUserIdApplicationPasswordsByUuid: ApplicationPassword;
3345
+ deleteWpV2UsersByUserIdApplicationPasswordsByUuid: unknown;
3346
+ getWpV2UsersByUserIdApplicationPasswordsIntrospect: ApplicationPassword;
3347
+ getWpV2UsersMe: User;
3348
+ postWpV2UsersMe: User;
3349
+ deleteWpV2UsersMe: unknown;
3350
+ getWpV2WidgetTypes: WidgetType;
3351
+ getWpV2WidgetTypesById: WidgetType;
3352
+ postWpV2WidgetTypesByIdEncode: unknown;
3353
+ postWpV2WidgetTypesByIdRender: unknown;
3354
+ getWpV2Widgets: Widget;
3355
+ postWpV2Widgets: Widget;
3356
+ getWpV2WidgetsById: Widget;
3357
+ postWpV2WidgetsById: Widget;
3358
+ deleteWpV2WidgetsById: unknown;
3359
+ getWpV2WpPatternCategory: GetWpV2WpPatternCategoryResponse;
3360
+ postWpV2WpPatternCategory: WpPatternCategory;
3361
+ getWpV2WpPatternCategoryById: WpPatternCategory;
3362
+ postWpV2WpPatternCategoryById: WpPatternCategory;
3363
+ deleteWpV2WpPatternCategoryById: unknown;
3364
+ }
3365
+ //# sourceMappingURL=types.d.ts.map