Skip to content

WordPressConfigSchema

katanakit-js / WordPressConfigSchema

const WordPressConfigSchema: ZodObject<{
apiNamespace: ZodOptional<ZodString>;
auth: ZodOptional<ZodDiscriminatedUnion<[ZodObject<{
password: ZodString;
type: ZodLiteral<"application-passwords">;
username: ZodString;
}, $strip>, ZodObject<{
token: ZodString;
type: ZodLiteral<"jwt">;
}, $strip>, ZodObject<{
password: ZodString;
type: ZodLiteral<"basic">;
username: ZodString;
}, $strip>, ZodObject<{
cookie: ZodString;
nonce: ZodString;
type: ZodLiteral<"nonce">;
}, $strip>], "type">>;
baseUrl: ZodString;
}, $strip>;

Defined in: schemas/wordpress.schema.ts:29

Configuration for the WordPress REST API integration.