@rnaga/wp-node 1.1.3 → 1.2.3

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 (80) hide show
  1. package/README.md +40 -16
  2. package/config.d.ts +32 -32
  3. package/core/comment.d.ts +18 -36
  4. package/core/comment.d.ts.map +1 -1
  5. package/core/post.d.ts +4 -4
  6. package/core/term.d.ts +11 -49
  7. package/core/term.d.ts.map +1 -1
  8. package/core/utils/comment.util.d.ts +1 -1
  9. package/core/utils/post.util.d.ts +3 -3
  10. package/core/utils/revision.util.d.ts +6 -30
  11. package/core/utils/revision.util.d.ts.map +1 -1
  12. package/core/vars.d.ts +1 -1
  13. package/core/vars.d.ts.map +1 -1
  14. package/crud/comment.crud.d.ts +6 -6
  15. package/crud/meta.crud.d.ts +6 -6
  16. package/crud/meta.crud.d.ts.map +1 -1
  17. package/crud/meta.crud.js +3 -1
  18. package/crud/post.crud.d.ts +30 -30
  19. package/crud/revision.crud.d.ts +6 -30
  20. package/crud/revision.crud.d.ts.map +1 -1
  21. package/crud/settings.crud.d.ts +9 -9
  22. package/crud/site.crud.d.ts +1 -1
  23. package/crud/sitemeta.crud.d.ts +25 -25
  24. package/crud/user.crud.d.ts +12 -12
  25. package/package.json +7 -8
  26. package/types/validating.d.ts +11 -5
  27. package/validators/config.d.ts +186 -836
  28. package/validators/config.d.ts.map +1 -1
  29. package/validators/config.js +1 -1
  30. package/validators/crud.d.ts +221 -502
  31. package/validators/crud.d.ts.map +1 -1
  32. package/validators/crud.js +2 -2
  33. package/validators/database.d.ts +96 -692
  34. package/validators/database.d.ts.map +1 -1
  35. package/validators/database.js +6 -6
  36. package/validators/date.d.ts +2 -2
  37. package/validators/date.d.ts.map +1 -1
  38. package/validators/helpers.d.ts +37 -12
  39. package/validators/helpers.d.ts.map +1 -1
  40. package/validators/helpers.js +40 -1
  41. package/validators/options.d.ts +10 -210
  42. package/validators/options.d.ts.map +1 -1
  43. package/validators/options.js +4 -4
  44. package/validators/post-status.d.ts +1 -27
  45. package/validators/post-status.d.ts.map +1 -1
  46. package/validators/query.d.ts +54 -387
  47. package/validators/query.d.ts.map +1 -1
  48. package/validators/roles.d.ts +4 -16
  49. package/validators/roles.d.ts.map +1 -1
  50. package/validators/roles.js +1 -1
  51. package/validators/sitemeta.d.ts +11 -76
  52. package/validators/sitemeta.d.ts.map +1 -1
  53. package/validators/sitemeta.js +3 -3
  54. package/validators/transactions/blog.d.ts +31 -179
  55. package/validators/transactions/blog.d.ts.map +1 -1
  56. package/validators/transactions/blog.js +5 -2
  57. package/validators/transactions/comment.d.ts +51 -126
  58. package/validators/transactions/comment.d.ts.map +1 -1
  59. package/validators/transactions/comment.js +1 -1
  60. package/validators/transactions/link.d.ts +13 -96
  61. package/validators/transactions/link.d.ts.map +1 -1
  62. package/validators/transactions/meta.d.ts +5 -17
  63. package/validators/transactions/meta.d.ts.map +1 -1
  64. package/validators/transactions/post.d.ts +33 -181
  65. package/validators/transactions/post.d.ts.map +1 -1
  66. package/validators/transactions/post.js +2 -2
  67. package/validators/transactions/roles.d.ts +4 -14
  68. package/validators/transactions/roles.d.ts.map +1 -1
  69. package/validators/transactions/signup.d.ts +5 -28
  70. package/validators/transactions/signup.d.ts.map +1 -1
  71. package/validators/transactions/site.d.ts +6 -29
  72. package/validators/transactions/site.d.ts.map +1 -1
  73. package/validators/transactions/site.js +1 -1
  74. package/validators/transactions/term.d.ts +12 -50
  75. package/validators/transactions/term.d.ts.map +1 -1
  76. package/validators/transactions/user.d.ts +84 -158
  77. package/validators/transactions/user.d.ts.map +1 -1
  78. package/validators/transactions/user.js +1 -1
  79. package/types/validating.d.ts.map +0 -1
  80. package/types/validating.js +0 -2
@@ -13,142 +13,66 @@ export declare const config: z.ZodObject<{
13
13
  EMPTY_TRASH_DAYS: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
14
14
  MEDIA_TRASH: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
15
15
  WP_POST_REVISIONS: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
16
- WP_LOG_LEVEL: z.ZodDefault<z.ZodOptional<z.ZodEnum<["debug", "info", "warn", "error"]>>>;
17
- }, "strip", z.ZodTypeAny, {
18
- ALLOW_UNFILTERED_UPLOADS: boolean;
19
- DISALLOW_UNFILTERED_HTML: boolean;
20
- DISALLOW_FILE_EDIT: boolean;
21
- LINK_USE_SSL: boolean;
22
- TRASHED_SUFFIX_TO_POST_NAME_FOR_POST: "__trashed";
23
- ALLOW_FILESYSTEM_OPERATIONS: boolean;
24
- WP_DEFAULT_THEME: string;
25
- WP_DB_VERSION: number;
26
- WPLANG: string;
27
- EMPTY_TRASH_DAYS: number;
28
- MEDIA_TRASH: boolean;
29
- WP_POST_REVISIONS: number;
30
- WP_LOG_LEVEL: "error" | "debug" | "info" | "warn";
31
- }, {
32
- TRASHED_SUFFIX_TO_POST_NAME_FOR_POST: "__trashed";
33
- ALLOW_UNFILTERED_UPLOADS?: boolean | undefined;
34
- DISALLOW_UNFILTERED_HTML?: boolean | undefined;
35
- DISALLOW_FILE_EDIT?: boolean | undefined;
36
- LINK_USE_SSL?: boolean | undefined;
37
- ALLOW_FILESYSTEM_OPERATIONS?: boolean | undefined;
38
- WP_DEFAULT_THEME?: string | undefined;
39
- WP_DB_VERSION?: number | undefined;
40
- WPLANG?: string | undefined;
41
- EMPTY_TRASH_DAYS?: number | undefined;
42
- MEDIA_TRASH?: boolean | undefined;
43
- WP_POST_REVISIONS?: number | undefined;
44
- WP_LOG_LEVEL?: "error" | "debug" | "info" | "warn" | undefined;
45
- }>;
16
+ WP_LOG_LEVEL: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
17
+ debug: "debug";
18
+ info: "info";
19
+ warn: "warn";
20
+ error: "error";
21
+ }>>>;
22
+ }, z.core.$strip>;
46
23
  extensions: z.ZodObject<{
47
- misc: z.ZodArray<z.ZodString, "many">;
48
- audio: z.ZodArray<z.ZodString, "many">;
49
- video: z.ZodArray<z.ZodString, "many">;
50
- }, "strip", z.ZodTypeAny, {
51
- audio: string[];
52
- video: string[];
53
- misc: string[];
54
- }, {
55
- audio: string[];
56
- video: string[];
57
- misc: string[];
58
- }>;
24
+ misc: z.ZodArray<z.ZodString>;
25
+ audio: z.ZodArray<z.ZodString>;
26
+ video: z.ZodArray<z.ZodString>;
27
+ }, z.core.$strip>;
59
28
  timezoneOffset: z.ZodDefault<z.ZodOptional<z.ZodString>>;
60
29
  staticAssetsPath: z.ZodDefault<z.ZodString>;
61
30
  options: z.ZodObject<{
62
- protected: z.ZodArray<z.ZodString, "many">;
63
- defaults: z.ZodArray<z.ZodString, "many">;
64
- }, "strip", z.ZodTypeAny, {
65
- protected: string[];
66
- defaults: string[];
67
- }, {
68
- protected: string[];
69
- defaults: string[];
70
- }>;
31
+ protected: z.ZodArray<z.ZodString>;
32
+ defaults: z.ZodArray<z.ZodString>;
33
+ }, z.core.$strip>;
71
34
  multisite: z.ZodObject<{
72
35
  enabled: z.ZodBoolean;
73
36
  defaultBlogId: z.ZodNumber;
74
37
  defaultSiteId: z.ZodNumber;
75
- defaultSitemetaKeys: z.ZodArray<z.ZodString, "many">;
38
+ defaultSitemetaKeys: z.ZodArray<z.ZodString>;
76
39
  subdomainInstall: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
77
- subdirectoryReservedNames: z.ZodArray<z.ZodString, "many">;
78
- vhost: z.ZodDefault<z.ZodOptional<z.ZodEnum<["no", "yes"]>>>;
40
+ subdirectoryReservedNames: z.ZodArray<z.ZodString>;
41
+ vhost: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
42
+ no: "no";
43
+ yes: "yes";
44
+ }>>>;
79
45
  uploadBlogsDir: z.ZodDefault<z.ZodOptional<z.ZodString>>;
80
- }, "strip", z.ZodTypeAny, {
81
- enabled: boolean;
82
- defaultBlogId: number;
83
- defaultSiteId: number;
84
- defaultSitemetaKeys: string[];
85
- subdomainInstall: boolean;
86
- subdirectoryReservedNames: string[];
87
- vhost: "no" | "yes";
88
- uploadBlogsDir: string;
89
- }, {
90
- enabled: boolean;
91
- defaultBlogId: number;
92
- defaultSiteId: number;
93
- defaultSitemetaKeys: string[];
94
- subdirectoryReservedNames: string[];
95
- subdomainInstall?: boolean | undefined;
96
- vhost?: "no" | "yes" | undefined;
97
- uploadBlogsDir?: string | undefined;
98
- }>;
46
+ }, z.core.$strip>;
99
47
  tableCharset: z.ZodDefault<z.ZodOptional<z.ZodString>>;
100
48
  tableCollate: z.ZodDefault<z.ZodOptional<z.ZodString>>;
101
49
  tablePrefix: z.ZodDefault<z.ZodString>;
102
50
  database: z.ZodObject<{
103
51
  client: z.ZodString;
104
52
  connection: z.ZodObject<{
105
- host: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, string | undefined>;
53
+ host: z.ZodOptional<z.ZodString>;
106
54
  port: z.ZodNumber;
107
55
  user: z.ZodOptional<z.ZodString>;
108
56
  charset: z.ZodString;
109
57
  password: z.ZodOptional<z.ZodString>;
110
- database: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, string | undefined>;
111
- }, "strip", z.ZodTypeAny, {
112
- port: number;
113
- charset: string;
114
- host?: string | undefined;
115
- user?: string | undefined;
116
- database?: string | undefined;
117
- password?: string | undefined;
118
- }, {
119
- port: number;
120
- charset: string;
121
- host?: string | undefined;
122
- user?: string | undefined;
123
- database?: string | undefined;
124
- password?: string | undefined;
125
- }>;
126
- }, "strip", z.ZodTypeAny, {
127
- client: string;
128
- connection: {
129
- port: number;
130
- charset: string;
131
- host?: string | undefined;
132
- user?: string | undefined;
133
- database?: string | undefined;
134
- password?: string | undefined;
135
- };
136
- }, {
137
- client: string;
138
- connection: {
139
- port: number;
140
- charset: string;
141
- host?: string | undefined;
142
- user?: string | undefined;
143
- database?: string | undefined;
144
- password?: string | undefined;
145
- };
146
- }>;
58
+ database: z.ZodOptional<z.ZodString>;
59
+ }, z.core.$strip>;
60
+ }, z.core.$strip>;
147
61
  posts: z.ZodObject<{
148
- typeNames: z.ZodUnion<[z.ZodEnum<["post", "page", "attachment", "revision"]>, z.ZodArray<z.ZodString, "many">]>;
149
- types: z.ZodRecord<z.ZodUnion<[z.ZodEnum<["post", "page", "attachment", "revision"]>, z.ZodString]>, z.ZodObject<{
150
- capabilityType: z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>;
151
- supports: z.ZodArray<z.ZodString, "many">;
62
+ typeNames: z.ZodUnion<readonly [z.ZodEnum<{
63
+ post: "post";
64
+ page: "page";
65
+ attachment: "attachment";
66
+ revision: "revision";
67
+ }>, z.ZodArray<z.ZodString>]>;
68
+ types: z.ZodRecord<z.ZodUnion<readonly [z.ZodEnum<{
69
+ post: "post";
70
+ page: "page";
71
+ attachment: "attachment";
72
+ revision: "revision";
73
+ }>, z.ZodString]>, z.ZodObject<{
74
+ capabilityType: z.ZodUnion<readonly [z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>;
75
+ supports: z.ZodArray<z.ZodString>;
152
76
  mapMetaCap: z.ZodBoolean;
153
77
  capabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
154
78
  hierarchical: z.ZodOptional<z.ZodBoolean>;
@@ -156,322 +80,73 @@ export declare const config: z.ZodObject<{
156
80
  publiclyQueryable: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
157
81
  public: z.ZodDefault<z.ZodBoolean>;
158
82
  _builtin: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
159
- }, "strip", z.ZodTypeAny, {
160
- public: boolean;
161
- supports: string[];
162
- _builtin: boolean;
163
- capabilityType: string | [string, string];
164
- mapMetaCap: boolean;
165
- deleteWithUser: boolean;
166
- publiclyQueryable: boolean;
167
- hierarchical?: boolean | undefined;
168
- capabilities?: Record<string, string> | undefined;
169
- }, {
170
- supports: string[];
171
- capabilityType: string | [string, string];
172
- mapMetaCap: boolean;
173
- public?: boolean | undefined;
174
- hierarchical?: boolean | undefined;
175
- _builtin?: boolean | undefined;
176
- capabilities?: Record<string, string> | undefined;
177
- deleteWithUser?: boolean | undefined;
178
- publiclyQueryable?: boolean | undefined;
179
- }>>;
180
- statusNames: z.ZodUnion<[z.ZodEnum<["publish", "future", "draft", "pending", "private", "trash", "inherit", "auto-draft", "request-pending", "request-confirmed", "request-failed", "request-completed"]>, z.ZodArray<z.ZodString, "many">]>;
181
- statuses: z.ZodRecord<z.ZodUnion<[z.ZodEnum<["publish", "future", "draft", "pending", "private", "trash", "inherit", "auto-draft", "request-pending", "request-confirmed", "request-failed", "request-completed"]>, z.ZodString]>, z.ZodObject<{
83
+ }, z.core.$strip>>;
84
+ statusNames: z.ZodUnion<readonly [z.ZodEnum<{
85
+ publish: "publish";
86
+ future: "future";
87
+ draft: "draft";
88
+ pending: "pending";
89
+ private: "private";
90
+ trash: "trash";
91
+ inherit: "inherit";
92
+ "auto-draft": "auto-draft";
93
+ "request-pending": "request-pending";
94
+ "request-confirmed": "request-confirmed";
95
+ "request-failed": "request-failed";
96
+ "request-completed": "request-completed";
97
+ }>, z.ZodArray<z.ZodString>]>;
98
+ statuses: z.ZodRecord<z.ZodUnion<readonly [z.ZodEnum<{
99
+ publish: "publish";
100
+ future: "future";
101
+ draft: "draft";
102
+ pending: "pending";
103
+ private: "private";
104
+ trash: "trash";
105
+ inherit: "inherit";
106
+ "auto-draft": "auto-draft";
107
+ "request-pending": "request-pending";
108
+ "request-confirmed": "request-confirmed";
109
+ "request-failed": "request-failed";
110
+ "request-completed": "request-completed";
111
+ }>, z.ZodString]>, z.ZodObject<{
182
112
  label: z.ZodString;
183
113
  public: z.ZodOptional<z.ZodBoolean>;
184
114
  protected: z.ZodOptional<z.ZodBoolean>;
185
115
  private: z.ZodOptional<z.ZodBoolean>;
186
116
  internal: z.ZodOptional<z.ZodBoolean>;
187
117
  _builtin: z.ZodOptional<z.ZodBoolean>;
188
- }, "strip", z.ZodTypeAny, {
189
- label: string;
190
- internal?: boolean | undefined;
191
- private?: boolean | undefined;
192
- public?: boolean | undefined;
193
- _builtin?: boolean | undefined;
194
- protected?: boolean | undefined;
195
- }, {
196
- label: string;
197
- internal?: boolean | undefined;
198
- private?: boolean | undefined;
199
- public?: boolean | undefined;
200
- _builtin?: boolean | undefined;
201
- protected?: boolean | undefined;
202
- }>>;
203
- }, "strip", z.ZodTypeAny, {
204
- types: Record<string, {
205
- public: boolean;
206
- supports: string[];
207
- _builtin: boolean;
208
- capabilityType: string | [string, string];
209
- mapMetaCap: boolean;
210
- deleteWithUser: boolean;
211
- publiclyQueryable: boolean;
212
- hierarchical?: boolean | undefined;
213
- capabilities?: Record<string, string> | undefined;
214
- }>;
215
- typeNames: string[] | "attachment" | "page" | "post" | "revision";
216
- statusNames: string[] | "inherit" | "private" | "pending" | "publish" | "future" | "draft" | "trash" | "auto-draft" | "request-pending" | "request-confirmed" | "request-failed" | "request-completed";
217
- statuses: Record<string, {
218
- label: string;
219
- internal?: boolean | undefined;
220
- private?: boolean | undefined;
221
- public?: boolean | undefined;
222
- _builtin?: boolean | undefined;
223
- protected?: boolean | undefined;
224
- }>;
225
- }, {
226
- types: Record<string, {
227
- supports: string[];
228
- capabilityType: string | [string, string];
229
- mapMetaCap: boolean;
230
- public?: boolean | undefined;
231
- hierarchical?: boolean | undefined;
232
- _builtin?: boolean | undefined;
233
- capabilities?: Record<string, string> | undefined;
234
- deleteWithUser?: boolean | undefined;
235
- publiclyQueryable?: boolean | undefined;
236
- }>;
237
- typeNames: string[] | "attachment" | "page" | "post" | "revision";
238
- statusNames: string[] | "inherit" | "private" | "pending" | "publish" | "future" | "draft" | "trash" | "auto-draft" | "request-pending" | "request-confirmed" | "request-failed" | "request-completed";
239
- statuses: Record<string, {
240
- label: string;
241
- internal?: boolean | undefined;
242
- private?: boolean | undefined;
243
- public?: boolean | undefined;
244
- _builtin?: boolean | undefined;
245
- protected?: boolean | undefined;
246
- }>;
247
- }>;
118
+ }, z.core.$strip>>;
119
+ }, z.core.$strip>;
248
120
  taxonomy: z.ZodObject<{
249
- names: z.ZodUnion<[z.ZodEnum<["category", "post_tag", "post_format", "link_category"]>, z.ZodArray<z.ZodString, "many">]>;
250
- settings: z.ZodRecord<z.ZodUnion<[z.ZodEnum<["category", "post_tag", "post_format", "link_category"]>, z.ZodString]>, z.ZodObject<{
121
+ names: z.ZodUnion<readonly [z.ZodEnum<{
122
+ category: "category";
123
+ post_tag: "post_tag";
124
+ post_format: "post_format";
125
+ link_category: "link_category";
126
+ }>, z.ZodArray<z.ZodString>]>;
127
+ settings: z.ZodRecord<z.ZodUnion<readonly [z.ZodEnum<{
128
+ category: "category";
129
+ post_tag: "post_tag";
130
+ post_format: "post_format";
131
+ link_category: "link_category";
132
+ }>, z.ZodString]>, z.ZodObject<{
251
133
  hierarchical: z.ZodBoolean;
252
134
  objectType: z.ZodString;
253
135
  _builtin: z.ZodBoolean;
254
- capabilities: z.ZodOptional<z.ZodRecord<z.ZodEnum<["manage_terms", "edit_terms", "delete_terms", "assign_terms"]>, z.ZodString>>;
136
+ capabilities: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
137
+ manage_terms: "manage_terms";
138
+ edit_terms: "edit_terms";
139
+ delete_terms: "delete_terms";
140
+ assign_terms: "assign_terms";
141
+ }>, z.ZodString>>;
255
142
  showUi: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
256
- }, "strip", z.ZodTypeAny, {
257
- objectType: string;
258
- hierarchical: boolean;
259
- _builtin: boolean;
260
- showUi: boolean;
261
- capabilities?: Partial<Record<"manage_terms" | "edit_terms" | "delete_terms" | "assign_terms", string>> | undefined;
262
- }, {
263
- objectType: string;
264
- hierarchical: boolean;
265
- _builtin: boolean;
266
- showUi?: boolean | undefined;
267
- capabilities?: Partial<Record<"manage_terms" | "edit_terms" | "delete_terms" | "assign_terms", string>> | undefined;
268
- }>>;
269
- }, "strip", z.ZodTypeAny, {
270
- names: string[] | "category" | "post_tag" | "post_format" | "link_category";
271
- settings: Record<string, {
272
- objectType: string;
273
- hierarchical: boolean;
274
- _builtin: boolean;
275
- showUi: boolean;
276
- capabilities?: Partial<Record<"manage_terms" | "edit_terms" | "delete_terms" | "assign_terms", string>> | undefined;
277
- }>;
278
- }, {
279
- names: string[] | "category" | "post_tag" | "post_format" | "link_category";
280
- settings: Record<string, {
281
- objectType: string;
282
- hierarchical: boolean;
283
- _builtin: boolean;
284
- showUi?: boolean | undefined;
285
- capabilities?: Partial<Record<"manage_terms" | "edit_terms" | "delete_terms" | "assign_terms", string>> | undefined;
286
- }>;
287
- }>;
143
+ }, z.core.$strip>>;
144
+ }, z.core.$strip>;
288
145
  roles: z.ZodRecord<z.ZodString, z.ZodObject<{
289
146
  name: z.ZodString;
290
- capabilities: z.ZodArray<z.ZodString, "many">;
291
- }, "strip", z.ZodTypeAny, {
292
- name: string;
293
- capabilities: string[];
294
- }, {
295
- name: string;
296
- capabilities: string[];
297
- }>>;
298
- }, "strip", z.ZodTypeAny, {
299
- options: {
300
- protected: string[];
301
- defaults: string[];
302
- };
303
- posts: {
304
- types: Record<string, {
305
- public: boolean;
306
- supports: string[];
307
- _builtin: boolean;
308
- capabilityType: string | [string, string];
309
- mapMetaCap: boolean;
310
- deleteWithUser: boolean;
311
- publiclyQueryable: boolean;
312
- hierarchical?: boolean | undefined;
313
- capabilities?: Record<string, string> | undefined;
314
- }>;
315
- typeNames: string[] | "attachment" | "page" | "post" | "revision";
316
- statusNames: string[] | "inherit" | "private" | "pending" | "publish" | "future" | "draft" | "trash" | "auto-draft" | "request-pending" | "request-confirmed" | "request-failed" | "request-completed";
317
- statuses: Record<string, {
318
- label: string;
319
- internal?: boolean | undefined;
320
- private?: boolean | undefined;
321
- public?: boolean | undefined;
322
- _builtin?: boolean | undefined;
323
- protected?: boolean | undefined;
324
- }>;
325
- };
326
- constants: {
327
- ALLOW_UNFILTERED_UPLOADS: boolean;
328
- DISALLOW_UNFILTERED_HTML: boolean;
329
- DISALLOW_FILE_EDIT: boolean;
330
- LINK_USE_SSL: boolean;
331
- TRASHED_SUFFIX_TO_POST_NAME_FOR_POST: "__trashed";
332
- ALLOW_FILESYSTEM_OPERATIONS: boolean;
333
- WP_DEFAULT_THEME: string;
334
- WP_DB_VERSION: number;
335
- WPLANG: string;
336
- EMPTY_TRASH_DAYS: number;
337
- MEDIA_TRASH: boolean;
338
- WP_POST_REVISIONS: number;
339
- WP_LOG_LEVEL: "error" | "debug" | "info" | "warn";
340
- };
341
- extensions: {
342
- audio: string[];
343
- video: string[];
344
- misc: string[];
345
- };
346
- timezoneOffset: string;
347
- staticAssetsPath: string;
348
- multisite: {
349
- enabled: boolean;
350
- defaultBlogId: number;
351
- defaultSiteId: number;
352
- defaultSitemetaKeys: string[];
353
- subdomainInstall: boolean;
354
- subdirectoryReservedNames: string[];
355
- vhost: "no" | "yes";
356
- uploadBlogsDir: string;
357
- };
358
- tableCharset: string;
359
- tableCollate: string;
360
- tablePrefix: string;
361
- database: {
362
- client: string;
363
- connection: {
364
- port: number;
365
- charset: string;
366
- host?: string | undefined;
367
- user?: string | undefined;
368
- database?: string | undefined;
369
- password?: string | undefined;
370
- };
371
- };
372
- taxonomy: {
373
- names: string[] | "category" | "post_tag" | "post_format" | "link_category";
374
- settings: Record<string, {
375
- objectType: string;
376
- hierarchical: boolean;
377
- _builtin: boolean;
378
- showUi: boolean;
379
- capabilities?: Partial<Record<"manage_terms" | "edit_terms" | "delete_terms" | "assign_terms", string>> | undefined;
380
- }>;
381
- };
382
- roles: Record<string, {
383
- name: string;
384
- capabilities: string[];
385
- }>;
386
- }, {
387
- options: {
388
- protected: string[];
389
- defaults: string[];
390
- };
391
- posts: {
392
- types: Record<string, {
393
- supports: string[];
394
- capabilityType: string | [string, string];
395
- mapMetaCap: boolean;
396
- public?: boolean | undefined;
397
- hierarchical?: boolean | undefined;
398
- _builtin?: boolean | undefined;
399
- capabilities?: Record<string, string> | undefined;
400
- deleteWithUser?: boolean | undefined;
401
- publiclyQueryable?: boolean | undefined;
402
- }>;
403
- typeNames: string[] | "attachment" | "page" | "post" | "revision";
404
- statusNames: string[] | "inherit" | "private" | "pending" | "publish" | "future" | "draft" | "trash" | "auto-draft" | "request-pending" | "request-confirmed" | "request-failed" | "request-completed";
405
- statuses: Record<string, {
406
- label: string;
407
- internal?: boolean | undefined;
408
- private?: boolean | undefined;
409
- public?: boolean | undefined;
410
- _builtin?: boolean | undefined;
411
- protected?: boolean | undefined;
412
- }>;
413
- };
414
- constants: {
415
- TRASHED_SUFFIX_TO_POST_NAME_FOR_POST: "__trashed";
416
- ALLOW_UNFILTERED_UPLOADS?: boolean | undefined;
417
- DISALLOW_UNFILTERED_HTML?: boolean | undefined;
418
- DISALLOW_FILE_EDIT?: boolean | undefined;
419
- LINK_USE_SSL?: boolean | undefined;
420
- ALLOW_FILESYSTEM_OPERATIONS?: boolean | undefined;
421
- WP_DEFAULT_THEME?: string | undefined;
422
- WP_DB_VERSION?: number | undefined;
423
- WPLANG?: string | undefined;
424
- EMPTY_TRASH_DAYS?: number | undefined;
425
- MEDIA_TRASH?: boolean | undefined;
426
- WP_POST_REVISIONS?: number | undefined;
427
- WP_LOG_LEVEL?: "error" | "debug" | "info" | "warn" | undefined;
428
- };
429
- extensions: {
430
- audio: string[];
431
- video: string[];
432
- misc: string[];
433
- };
434
- multisite: {
435
- enabled: boolean;
436
- defaultBlogId: number;
437
- defaultSiteId: number;
438
- defaultSitemetaKeys: string[];
439
- subdirectoryReservedNames: string[];
440
- subdomainInstall?: boolean | undefined;
441
- vhost?: "no" | "yes" | undefined;
442
- uploadBlogsDir?: string | undefined;
443
- };
444
- database: {
445
- client: string;
446
- connection: {
447
- port: number;
448
- charset: string;
449
- host?: string | undefined;
450
- user?: string | undefined;
451
- database?: string | undefined;
452
- password?: string | undefined;
453
- };
454
- };
455
- taxonomy: {
456
- names: string[] | "category" | "post_tag" | "post_format" | "link_category";
457
- settings: Record<string, {
458
- objectType: string;
459
- hierarchical: boolean;
460
- _builtin: boolean;
461
- showUi?: boolean | undefined;
462
- capabilities?: Partial<Record<"manage_terms" | "edit_terms" | "delete_terms" | "assign_terms", string>> | undefined;
463
- }>;
464
- };
465
- roles: Record<string, {
466
- name: string;
467
- capabilities: string[];
468
- }>;
469
- timezoneOffset?: string | undefined;
470
- staticAssetsPath?: string | undefined;
471
- tableCharset?: string | undefined;
472
- tableCollate?: string | undefined;
473
- tablePrefix?: string | undefined;
474
- }>;
147
+ capabilities: z.ZodArray<z.ZodString>;
148
+ }, z.core.$strip>>;
149
+ }, z.core.$strip>;
475
150
  export declare const configs: z.ZodRecord<z.ZodString, z.ZodObject<{
476
151
  constants: z.ZodObject<{
477
152
  ALLOW_UNFILTERED_UPLOADS: z.ZodDefault<z.ZodBoolean>;
@@ -486,142 +161,66 @@ export declare const configs: z.ZodRecord<z.ZodString, z.ZodObject<{
486
161
  EMPTY_TRASH_DAYS: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
487
162
  MEDIA_TRASH: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
488
163
  WP_POST_REVISIONS: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
489
- WP_LOG_LEVEL: z.ZodDefault<z.ZodOptional<z.ZodEnum<["debug", "info", "warn", "error"]>>>;
490
- }, "strip", z.ZodTypeAny, {
491
- ALLOW_UNFILTERED_UPLOADS: boolean;
492
- DISALLOW_UNFILTERED_HTML: boolean;
493
- DISALLOW_FILE_EDIT: boolean;
494
- LINK_USE_SSL: boolean;
495
- TRASHED_SUFFIX_TO_POST_NAME_FOR_POST: "__trashed";
496
- ALLOW_FILESYSTEM_OPERATIONS: boolean;
497
- WP_DEFAULT_THEME: string;
498
- WP_DB_VERSION: number;
499
- WPLANG: string;
500
- EMPTY_TRASH_DAYS: number;
501
- MEDIA_TRASH: boolean;
502
- WP_POST_REVISIONS: number;
503
- WP_LOG_LEVEL: "error" | "debug" | "info" | "warn";
504
- }, {
505
- TRASHED_SUFFIX_TO_POST_NAME_FOR_POST: "__trashed";
506
- ALLOW_UNFILTERED_UPLOADS?: boolean | undefined;
507
- DISALLOW_UNFILTERED_HTML?: boolean | undefined;
508
- DISALLOW_FILE_EDIT?: boolean | undefined;
509
- LINK_USE_SSL?: boolean | undefined;
510
- ALLOW_FILESYSTEM_OPERATIONS?: boolean | undefined;
511
- WP_DEFAULT_THEME?: string | undefined;
512
- WP_DB_VERSION?: number | undefined;
513
- WPLANG?: string | undefined;
514
- EMPTY_TRASH_DAYS?: number | undefined;
515
- MEDIA_TRASH?: boolean | undefined;
516
- WP_POST_REVISIONS?: number | undefined;
517
- WP_LOG_LEVEL?: "error" | "debug" | "info" | "warn" | undefined;
518
- }>;
164
+ WP_LOG_LEVEL: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
165
+ debug: "debug";
166
+ info: "info";
167
+ warn: "warn";
168
+ error: "error";
169
+ }>>>;
170
+ }, z.core.$strip>;
519
171
  extensions: z.ZodObject<{
520
- misc: z.ZodArray<z.ZodString, "many">;
521
- audio: z.ZodArray<z.ZodString, "many">;
522
- video: z.ZodArray<z.ZodString, "many">;
523
- }, "strip", z.ZodTypeAny, {
524
- audio: string[];
525
- video: string[];
526
- misc: string[];
527
- }, {
528
- audio: string[];
529
- video: string[];
530
- misc: string[];
531
- }>;
172
+ misc: z.ZodArray<z.ZodString>;
173
+ audio: z.ZodArray<z.ZodString>;
174
+ video: z.ZodArray<z.ZodString>;
175
+ }, z.core.$strip>;
532
176
  timezoneOffset: z.ZodDefault<z.ZodOptional<z.ZodString>>;
533
177
  staticAssetsPath: z.ZodDefault<z.ZodString>;
534
178
  options: z.ZodObject<{
535
- protected: z.ZodArray<z.ZodString, "many">;
536
- defaults: z.ZodArray<z.ZodString, "many">;
537
- }, "strip", z.ZodTypeAny, {
538
- protected: string[];
539
- defaults: string[];
540
- }, {
541
- protected: string[];
542
- defaults: string[];
543
- }>;
179
+ protected: z.ZodArray<z.ZodString>;
180
+ defaults: z.ZodArray<z.ZodString>;
181
+ }, z.core.$strip>;
544
182
  multisite: z.ZodObject<{
545
183
  enabled: z.ZodBoolean;
546
184
  defaultBlogId: z.ZodNumber;
547
185
  defaultSiteId: z.ZodNumber;
548
- defaultSitemetaKeys: z.ZodArray<z.ZodString, "many">;
186
+ defaultSitemetaKeys: z.ZodArray<z.ZodString>;
549
187
  subdomainInstall: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
550
- subdirectoryReservedNames: z.ZodArray<z.ZodString, "many">;
551
- vhost: z.ZodDefault<z.ZodOptional<z.ZodEnum<["no", "yes"]>>>;
188
+ subdirectoryReservedNames: z.ZodArray<z.ZodString>;
189
+ vhost: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
190
+ no: "no";
191
+ yes: "yes";
192
+ }>>>;
552
193
  uploadBlogsDir: z.ZodDefault<z.ZodOptional<z.ZodString>>;
553
- }, "strip", z.ZodTypeAny, {
554
- enabled: boolean;
555
- defaultBlogId: number;
556
- defaultSiteId: number;
557
- defaultSitemetaKeys: string[];
558
- subdomainInstall: boolean;
559
- subdirectoryReservedNames: string[];
560
- vhost: "no" | "yes";
561
- uploadBlogsDir: string;
562
- }, {
563
- enabled: boolean;
564
- defaultBlogId: number;
565
- defaultSiteId: number;
566
- defaultSitemetaKeys: string[];
567
- subdirectoryReservedNames: string[];
568
- subdomainInstall?: boolean | undefined;
569
- vhost?: "no" | "yes" | undefined;
570
- uploadBlogsDir?: string | undefined;
571
- }>;
194
+ }, z.core.$strip>;
572
195
  tableCharset: z.ZodDefault<z.ZodOptional<z.ZodString>>;
573
196
  tableCollate: z.ZodDefault<z.ZodOptional<z.ZodString>>;
574
197
  tablePrefix: z.ZodDefault<z.ZodString>;
575
198
  database: z.ZodObject<{
576
199
  client: z.ZodString;
577
200
  connection: z.ZodObject<{
578
- host: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, string | undefined>;
201
+ host: z.ZodOptional<z.ZodString>;
579
202
  port: z.ZodNumber;
580
203
  user: z.ZodOptional<z.ZodString>;
581
204
  charset: z.ZodString;
582
205
  password: z.ZodOptional<z.ZodString>;
583
- database: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, string | undefined>;
584
- }, "strip", z.ZodTypeAny, {
585
- port: number;
586
- charset: string;
587
- host?: string | undefined;
588
- user?: string | undefined;
589
- database?: string | undefined;
590
- password?: string | undefined;
591
- }, {
592
- port: number;
593
- charset: string;
594
- host?: string | undefined;
595
- user?: string | undefined;
596
- database?: string | undefined;
597
- password?: string | undefined;
598
- }>;
599
- }, "strip", z.ZodTypeAny, {
600
- client: string;
601
- connection: {
602
- port: number;
603
- charset: string;
604
- host?: string | undefined;
605
- user?: string | undefined;
606
- database?: string | undefined;
607
- password?: string | undefined;
608
- };
609
- }, {
610
- client: string;
611
- connection: {
612
- port: number;
613
- charset: string;
614
- host?: string | undefined;
615
- user?: string | undefined;
616
- database?: string | undefined;
617
- password?: string | undefined;
618
- };
619
- }>;
206
+ database: z.ZodOptional<z.ZodString>;
207
+ }, z.core.$strip>;
208
+ }, z.core.$strip>;
620
209
  posts: z.ZodObject<{
621
- typeNames: z.ZodUnion<[z.ZodEnum<["post", "page", "attachment", "revision"]>, z.ZodArray<z.ZodString, "many">]>;
622
- types: z.ZodRecord<z.ZodUnion<[z.ZodEnum<["post", "page", "attachment", "revision"]>, z.ZodString]>, z.ZodObject<{
623
- capabilityType: z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>;
624
- supports: z.ZodArray<z.ZodString, "many">;
210
+ typeNames: z.ZodUnion<readonly [z.ZodEnum<{
211
+ post: "post";
212
+ page: "page";
213
+ attachment: "attachment";
214
+ revision: "revision";
215
+ }>, z.ZodArray<z.ZodString>]>;
216
+ types: z.ZodRecord<z.ZodUnion<readonly [z.ZodEnum<{
217
+ post: "post";
218
+ page: "page";
219
+ attachment: "attachment";
220
+ revision: "revision";
221
+ }>, z.ZodString]>, z.ZodObject<{
222
+ capabilityType: z.ZodUnion<readonly [z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>;
223
+ supports: z.ZodArray<z.ZodString>;
625
224
  mapMetaCap: z.ZodBoolean;
626
225
  capabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
627
226
  hierarchical: z.ZodOptional<z.ZodBoolean>;
@@ -629,320 +228,71 @@ export declare const configs: z.ZodRecord<z.ZodString, z.ZodObject<{
629
228
  publiclyQueryable: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
630
229
  public: z.ZodDefault<z.ZodBoolean>;
631
230
  _builtin: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
632
- }, "strip", z.ZodTypeAny, {
633
- public: boolean;
634
- supports: string[];
635
- _builtin: boolean;
636
- capabilityType: string | [string, string];
637
- mapMetaCap: boolean;
638
- deleteWithUser: boolean;
639
- publiclyQueryable: boolean;
640
- hierarchical?: boolean | undefined;
641
- capabilities?: Record<string, string> | undefined;
642
- }, {
643
- supports: string[];
644
- capabilityType: string | [string, string];
645
- mapMetaCap: boolean;
646
- public?: boolean | undefined;
647
- hierarchical?: boolean | undefined;
648
- _builtin?: boolean | undefined;
649
- capabilities?: Record<string, string> | undefined;
650
- deleteWithUser?: boolean | undefined;
651
- publiclyQueryable?: boolean | undefined;
652
- }>>;
653
- statusNames: z.ZodUnion<[z.ZodEnum<["publish", "future", "draft", "pending", "private", "trash", "inherit", "auto-draft", "request-pending", "request-confirmed", "request-failed", "request-completed"]>, z.ZodArray<z.ZodString, "many">]>;
654
- statuses: z.ZodRecord<z.ZodUnion<[z.ZodEnum<["publish", "future", "draft", "pending", "private", "trash", "inherit", "auto-draft", "request-pending", "request-confirmed", "request-failed", "request-completed"]>, z.ZodString]>, z.ZodObject<{
231
+ }, z.core.$strip>>;
232
+ statusNames: z.ZodUnion<readonly [z.ZodEnum<{
233
+ publish: "publish";
234
+ future: "future";
235
+ draft: "draft";
236
+ pending: "pending";
237
+ private: "private";
238
+ trash: "trash";
239
+ inherit: "inherit";
240
+ "auto-draft": "auto-draft";
241
+ "request-pending": "request-pending";
242
+ "request-confirmed": "request-confirmed";
243
+ "request-failed": "request-failed";
244
+ "request-completed": "request-completed";
245
+ }>, z.ZodArray<z.ZodString>]>;
246
+ statuses: z.ZodRecord<z.ZodUnion<readonly [z.ZodEnum<{
247
+ publish: "publish";
248
+ future: "future";
249
+ draft: "draft";
250
+ pending: "pending";
251
+ private: "private";
252
+ trash: "trash";
253
+ inherit: "inherit";
254
+ "auto-draft": "auto-draft";
255
+ "request-pending": "request-pending";
256
+ "request-confirmed": "request-confirmed";
257
+ "request-failed": "request-failed";
258
+ "request-completed": "request-completed";
259
+ }>, z.ZodString]>, z.ZodObject<{
655
260
  label: z.ZodString;
656
261
  public: z.ZodOptional<z.ZodBoolean>;
657
262
  protected: z.ZodOptional<z.ZodBoolean>;
658
263
  private: z.ZodOptional<z.ZodBoolean>;
659
264
  internal: z.ZodOptional<z.ZodBoolean>;
660
265
  _builtin: z.ZodOptional<z.ZodBoolean>;
661
- }, "strip", z.ZodTypeAny, {
662
- label: string;
663
- internal?: boolean | undefined;
664
- private?: boolean | undefined;
665
- public?: boolean | undefined;
666
- _builtin?: boolean | undefined;
667
- protected?: boolean | undefined;
668
- }, {
669
- label: string;
670
- internal?: boolean | undefined;
671
- private?: boolean | undefined;
672
- public?: boolean | undefined;
673
- _builtin?: boolean | undefined;
674
- protected?: boolean | undefined;
675
- }>>;
676
- }, "strip", z.ZodTypeAny, {
677
- types: Record<string, {
678
- public: boolean;
679
- supports: string[];
680
- _builtin: boolean;
681
- capabilityType: string | [string, string];
682
- mapMetaCap: boolean;
683
- deleteWithUser: boolean;
684
- publiclyQueryable: boolean;
685
- hierarchical?: boolean | undefined;
686
- capabilities?: Record<string, string> | undefined;
687
- }>;
688
- typeNames: string[] | "attachment" | "page" | "post" | "revision";
689
- statusNames: string[] | "inherit" | "private" | "pending" | "publish" | "future" | "draft" | "trash" | "auto-draft" | "request-pending" | "request-confirmed" | "request-failed" | "request-completed";
690
- statuses: Record<string, {
691
- label: string;
692
- internal?: boolean | undefined;
693
- private?: boolean | undefined;
694
- public?: boolean | undefined;
695
- _builtin?: boolean | undefined;
696
- protected?: boolean | undefined;
697
- }>;
698
- }, {
699
- types: Record<string, {
700
- supports: string[];
701
- capabilityType: string | [string, string];
702
- mapMetaCap: boolean;
703
- public?: boolean | undefined;
704
- hierarchical?: boolean | undefined;
705
- _builtin?: boolean | undefined;
706
- capabilities?: Record<string, string> | undefined;
707
- deleteWithUser?: boolean | undefined;
708
- publiclyQueryable?: boolean | undefined;
709
- }>;
710
- typeNames: string[] | "attachment" | "page" | "post" | "revision";
711
- statusNames: string[] | "inherit" | "private" | "pending" | "publish" | "future" | "draft" | "trash" | "auto-draft" | "request-pending" | "request-confirmed" | "request-failed" | "request-completed";
712
- statuses: Record<string, {
713
- label: string;
714
- internal?: boolean | undefined;
715
- private?: boolean | undefined;
716
- public?: boolean | undefined;
717
- _builtin?: boolean | undefined;
718
- protected?: boolean | undefined;
719
- }>;
720
- }>;
266
+ }, z.core.$strip>>;
267
+ }, z.core.$strip>;
721
268
  taxonomy: z.ZodObject<{
722
- names: z.ZodUnion<[z.ZodEnum<["category", "post_tag", "post_format", "link_category"]>, z.ZodArray<z.ZodString, "many">]>;
723
- settings: z.ZodRecord<z.ZodUnion<[z.ZodEnum<["category", "post_tag", "post_format", "link_category"]>, z.ZodString]>, z.ZodObject<{
269
+ names: z.ZodUnion<readonly [z.ZodEnum<{
270
+ category: "category";
271
+ post_tag: "post_tag";
272
+ post_format: "post_format";
273
+ link_category: "link_category";
274
+ }>, z.ZodArray<z.ZodString>]>;
275
+ settings: z.ZodRecord<z.ZodUnion<readonly [z.ZodEnum<{
276
+ category: "category";
277
+ post_tag: "post_tag";
278
+ post_format: "post_format";
279
+ link_category: "link_category";
280
+ }>, z.ZodString]>, z.ZodObject<{
724
281
  hierarchical: z.ZodBoolean;
725
282
  objectType: z.ZodString;
726
283
  _builtin: z.ZodBoolean;
727
- capabilities: z.ZodOptional<z.ZodRecord<z.ZodEnum<["manage_terms", "edit_terms", "delete_terms", "assign_terms"]>, z.ZodString>>;
284
+ capabilities: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
285
+ manage_terms: "manage_terms";
286
+ edit_terms: "edit_terms";
287
+ delete_terms: "delete_terms";
288
+ assign_terms: "assign_terms";
289
+ }>, z.ZodString>>;
728
290
  showUi: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
729
- }, "strip", z.ZodTypeAny, {
730
- objectType: string;
731
- hierarchical: boolean;
732
- _builtin: boolean;
733
- showUi: boolean;
734
- capabilities?: Partial<Record<"manage_terms" | "edit_terms" | "delete_terms" | "assign_terms", string>> | undefined;
735
- }, {
736
- objectType: string;
737
- hierarchical: boolean;
738
- _builtin: boolean;
739
- showUi?: boolean | undefined;
740
- capabilities?: Partial<Record<"manage_terms" | "edit_terms" | "delete_terms" | "assign_terms", string>> | undefined;
741
- }>>;
742
- }, "strip", z.ZodTypeAny, {
743
- names: string[] | "category" | "post_tag" | "post_format" | "link_category";
744
- settings: Record<string, {
745
- objectType: string;
746
- hierarchical: boolean;
747
- _builtin: boolean;
748
- showUi: boolean;
749
- capabilities?: Partial<Record<"manage_terms" | "edit_terms" | "delete_terms" | "assign_terms", string>> | undefined;
750
- }>;
751
- }, {
752
- names: string[] | "category" | "post_tag" | "post_format" | "link_category";
753
- settings: Record<string, {
754
- objectType: string;
755
- hierarchical: boolean;
756
- _builtin: boolean;
757
- showUi?: boolean | undefined;
758
- capabilities?: Partial<Record<"manage_terms" | "edit_terms" | "delete_terms" | "assign_terms", string>> | undefined;
759
- }>;
760
- }>;
291
+ }, z.core.$strip>>;
292
+ }, z.core.$strip>;
761
293
  roles: z.ZodRecord<z.ZodString, z.ZodObject<{
762
294
  name: z.ZodString;
763
- capabilities: z.ZodArray<z.ZodString, "many">;
764
- }, "strip", z.ZodTypeAny, {
765
- name: string;
766
- capabilities: string[];
767
- }, {
768
- name: string;
769
- capabilities: string[];
770
- }>>;
771
- }, "strip", z.ZodTypeAny, {
772
- options: {
773
- protected: string[];
774
- defaults: string[];
775
- };
776
- posts: {
777
- types: Record<string, {
778
- public: boolean;
779
- supports: string[];
780
- _builtin: boolean;
781
- capabilityType: string | [string, string];
782
- mapMetaCap: boolean;
783
- deleteWithUser: boolean;
784
- publiclyQueryable: boolean;
785
- hierarchical?: boolean | undefined;
786
- capabilities?: Record<string, string> | undefined;
787
- }>;
788
- typeNames: string[] | "attachment" | "page" | "post" | "revision";
789
- statusNames: string[] | "inherit" | "private" | "pending" | "publish" | "future" | "draft" | "trash" | "auto-draft" | "request-pending" | "request-confirmed" | "request-failed" | "request-completed";
790
- statuses: Record<string, {
791
- label: string;
792
- internal?: boolean | undefined;
793
- private?: boolean | undefined;
794
- public?: boolean | undefined;
795
- _builtin?: boolean | undefined;
796
- protected?: boolean | undefined;
797
- }>;
798
- };
799
- constants: {
800
- ALLOW_UNFILTERED_UPLOADS: boolean;
801
- DISALLOW_UNFILTERED_HTML: boolean;
802
- DISALLOW_FILE_EDIT: boolean;
803
- LINK_USE_SSL: boolean;
804
- TRASHED_SUFFIX_TO_POST_NAME_FOR_POST: "__trashed";
805
- ALLOW_FILESYSTEM_OPERATIONS: boolean;
806
- WP_DEFAULT_THEME: string;
807
- WP_DB_VERSION: number;
808
- WPLANG: string;
809
- EMPTY_TRASH_DAYS: number;
810
- MEDIA_TRASH: boolean;
811
- WP_POST_REVISIONS: number;
812
- WP_LOG_LEVEL: "error" | "debug" | "info" | "warn";
813
- };
814
- extensions: {
815
- audio: string[];
816
- video: string[];
817
- misc: string[];
818
- };
819
- timezoneOffset: string;
820
- staticAssetsPath: string;
821
- multisite: {
822
- enabled: boolean;
823
- defaultBlogId: number;
824
- defaultSiteId: number;
825
- defaultSitemetaKeys: string[];
826
- subdomainInstall: boolean;
827
- subdirectoryReservedNames: string[];
828
- vhost: "no" | "yes";
829
- uploadBlogsDir: string;
830
- };
831
- tableCharset: string;
832
- tableCollate: string;
833
- tablePrefix: string;
834
- database: {
835
- client: string;
836
- connection: {
837
- port: number;
838
- charset: string;
839
- host?: string | undefined;
840
- user?: string | undefined;
841
- database?: string | undefined;
842
- password?: string | undefined;
843
- };
844
- };
845
- taxonomy: {
846
- names: string[] | "category" | "post_tag" | "post_format" | "link_category";
847
- settings: Record<string, {
848
- objectType: string;
849
- hierarchical: boolean;
850
- _builtin: boolean;
851
- showUi: boolean;
852
- capabilities?: Partial<Record<"manage_terms" | "edit_terms" | "delete_terms" | "assign_terms", string>> | undefined;
853
- }>;
854
- };
855
- roles: Record<string, {
856
- name: string;
857
- capabilities: string[];
858
- }>;
859
- }, {
860
- options: {
861
- protected: string[];
862
- defaults: string[];
863
- };
864
- posts: {
865
- types: Record<string, {
866
- supports: string[];
867
- capabilityType: string | [string, string];
868
- mapMetaCap: boolean;
869
- public?: boolean | undefined;
870
- hierarchical?: boolean | undefined;
871
- _builtin?: boolean | undefined;
872
- capabilities?: Record<string, string> | undefined;
873
- deleteWithUser?: boolean | undefined;
874
- publiclyQueryable?: boolean | undefined;
875
- }>;
876
- typeNames: string[] | "attachment" | "page" | "post" | "revision";
877
- statusNames: string[] | "inherit" | "private" | "pending" | "publish" | "future" | "draft" | "trash" | "auto-draft" | "request-pending" | "request-confirmed" | "request-failed" | "request-completed";
878
- statuses: Record<string, {
879
- label: string;
880
- internal?: boolean | undefined;
881
- private?: boolean | undefined;
882
- public?: boolean | undefined;
883
- _builtin?: boolean | undefined;
884
- protected?: boolean | undefined;
885
- }>;
886
- };
887
- constants: {
888
- TRASHED_SUFFIX_TO_POST_NAME_FOR_POST: "__trashed";
889
- ALLOW_UNFILTERED_UPLOADS?: boolean | undefined;
890
- DISALLOW_UNFILTERED_HTML?: boolean | undefined;
891
- DISALLOW_FILE_EDIT?: boolean | undefined;
892
- LINK_USE_SSL?: boolean | undefined;
893
- ALLOW_FILESYSTEM_OPERATIONS?: boolean | undefined;
894
- WP_DEFAULT_THEME?: string | undefined;
895
- WP_DB_VERSION?: number | undefined;
896
- WPLANG?: string | undefined;
897
- EMPTY_TRASH_DAYS?: number | undefined;
898
- MEDIA_TRASH?: boolean | undefined;
899
- WP_POST_REVISIONS?: number | undefined;
900
- WP_LOG_LEVEL?: "error" | "debug" | "info" | "warn" | undefined;
901
- };
902
- extensions: {
903
- audio: string[];
904
- video: string[];
905
- misc: string[];
906
- };
907
- multisite: {
908
- enabled: boolean;
909
- defaultBlogId: number;
910
- defaultSiteId: number;
911
- defaultSitemetaKeys: string[];
912
- subdirectoryReservedNames: string[];
913
- subdomainInstall?: boolean | undefined;
914
- vhost?: "no" | "yes" | undefined;
915
- uploadBlogsDir?: string | undefined;
916
- };
917
- database: {
918
- client: string;
919
- connection: {
920
- port: number;
921
- charset: string;
922
- host?: string | undefined;
923
- user?: string | undefined;
924
- database?: string | undefined;
925
- password?: string | undefined;
926
- };
927
- };
928
- taxonomy: {
929
- names: string[] | "category" | "post_tag" | "post_format" | "link_category";
930
- settings: Record<string, {
931
- objectType: string;
932
- hierarchical: boolean;
933
- _builtin: boolean;
934
- showUi?: boolean | undefined;
935
- capabilities?: Partial<Record<"manage_terms" | "edit_terms" | "delete_terms" | "assign_terms", string>> | undefined;
936
- }>;
937
- };
938
- roles: Record<string, {
939
- name: string;
940
- capabilities: string[];
941
- }>;
942
- timezoneOffset?: string | undefined;
943
- staticAssetsPath?: string | undefined;
944
- tableCharset?: string | undefined;
945
- tableCollate?: string | undefined;
946
- tablePrefix?: string | undefined;
947
- }>>;
295
+ capabilities: z.ZodArray<z.ZodString>;
296
+ }, z.core.$strip>>;
297
+ }, z.core.$strip>>;
948
298
  //# sourceMappingURL=config.d.ts.map