paxton-front/api/Api.ts
2025-07-23 20:58:21 +03:00

12506 lines
325 KiB
TypeScript

/* eslint-disable */
/* tslint:disable */
// @ts-nocheck
/*
* ---------------------------------------------------------------
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
* ## ##
* ## AUTHOR: acacode ##
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
* ---------------------------------------------------------------
*/
/** @default "view" */
export enum IV2PostsListParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
export enum IV2PostsListParamsSearchSemanticsEnum {
Exact = "exact",
}
/** @default "desc" */
export enum IV2PostsListParamsOrderEnum {
Asc = "asc",
Desc = "desc",
}
/** @default "date" */
export enum IV2PostsListParamsOrderbyEnum {
Author = "author",
Date = "date",
Id = "id",
Include = "include",
Modified = "modified",
Parent = "parent",
Relevance = "relevance",
Slug = "slug",
IncludeSlugs = "include_slugs",
Title = "title",
}
export enum IV2PostsListParamsTaxRelationEnum {
AND = "AND",
OR = "OR",
}
export enum IStatusEnum {
Publish = "publish",
Future = "future",
Draft = "draft",
Pending = "pending",
Private = "private",
WcPending = "wc-pending",
WcProcessing = "wc-processing",
WcOnHold = "wc-on-hold",
WcCompleted = "wc-completed",
WcCancelled = "wc-cancelled",
WcRefunded = "wc-refunded",
WcFailed = "wc-failed",
WcCheckoutDraft = "wc-checkout-draft",
}
export enum ICommentStatusEnum {
Open = "open",
Closed = "closed",
}
export enum IPingStatusEnum {
Open = "open",
Closed = "closed",
}
export enum IFormatEnum {
Standard = "standard",
Aside = "aside",
Chat = "chat",
Gallery = "gallery",
Link = "link",
Image = "image",
Quote = "quote",
Status = "status",
Video = "video",
Audio = "audio",
}
/** @default "view" */
export enum IV2PostsDetailParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
export enum IStatusEnum1 {
Publish = "publish",
Future = "future",
Draft = "draft",
Pending = "pending",
Private = "private",
WcPending = "wc-pending",
WcProcessing = "wc-processing",
WcOnHold = "wc-on-hold",
WcCompleted = "wc-completed",
WcCancelled = "wc-cancelled",
WcRefunded = "wc-refunded",
WcFailed = "wc-failed",
WcCheckoutDraft = "wc-checkout-draft",
}
export enum ICommentStatusEnum1 {
Open = "open",
Closed = "closed",
}
export enum IPingStatusEnum1 {
Open = "open",
Closed = "closed",
}
export enum IFormatEnum1 {
Standard = "standard",
Aside = "aside",
Chat = "chat",
Gallery = "gallery",
Link = "link",
Image = "image",
Quote = "quote",
Status = "status",
Video = "video",
Audio = "audio",
}
export enum IV2PostsUpdateParamsStatusEnum {
Publish = "publish",
Future = "future",
Draft = "draft",
Pending = "pending",
Private = "private",
WcPending = "wc-pending",
WcProcessing = "wc-processing",
WcOnHold = "wc-on-hold",
WcCompleted = "wc-completed",
WcCancelled = "wc-cancelled",
WcRefunded = "wc-refunded",
WcFailed = "wc-failed",
WcCheckoutDraft = "wc-checkout-draft",
}
export enum IV2PostsUpdateParamsCommentStatusEnum {
Open = "open",
Closed = "closed",
}
export enum IV2PostsUpdateParamsPingStatusEnum {
Open = "open",
Closed = "closed",
}
export enum IV2PostsUpdateParamsFormatEnum {
Standard = "standard",
Aside = "aside",
Chat = "chat",
Gallery = "gallery",
Link = "link",
Image = "image",
Quote = "quote",
Status = "status",
Video = "video",
Audio = "audio",
}
export enum IV2PostsPartialUpdateParamsStatusEnum {
Publish = "publish",
Future = "future",
Draft = "draft",
Pending = "pending",
Private = "private",
WcPending = "wc-pending",
WcProcessing = "wc-processing",
WcOnHold = "wc-on-hold",
WcCompleted = "wc-completed",
WcCancelled = "wc-cancelled",
WcRefunded = "wc-refunded",
WcFailed = "wc-failed",
WcCheckoutDraft = "wc-checkout-draft",
}
export enum IV2PostsPartialUpdateParamsCommentStatusEnum {
Open = "open",
Closed = "closed",
}
export enum IV2PostsPartialUpdateParamsPingStatusEnum {
Open = "open",
Closed = "closed",
}
export enum IV2PostsPartialUpdateParamsFormatEnum {
Standard = "standard",
Aside = "aside",
Chat = "chat",
Gallery = "gallery",
Link = "link",
Image = "image",
Quote = "quote",
Status = "status",
Video = "video",
Audio = "audio",
}
/** @default "view" */
export enum IV2PostsRevisionsListParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
/** @default "desc" */
export enum IV2PostsRevisionsListParamsOrderEnum {
Asc = "asc",
Desc = "desc",
}
/** @default "date" */
export enum IV2PostsRevisionsListParamsOrderbyEnum {
Date = "date",
Id = "id",
Include = "include",
Relevance = "relevance",
Slug = "slug",
IncludeSlugs = "include_slugs",
Title = "title",
}
/** @default "view" */
export enum IV2PostsDetail2ParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
/** @default "view" */
export enum IV2PostsAutosavesListParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
export enum IStatusEnum2 {
Publish = "publish",
Future = "future",
Draft = "draft",
Pending = "pending",
Private = "private",
WcPending = "wc-pending",
WcProcessing = "wc-processing",
WcOnHold = "wc-on-hold",
WcCompleted = "wc-completed",
WcCancelled = "wc-cancelled",
WcRefunded = "wc-refunded",
WcFailed = "wc-failed",
WcCheckoutDraft = "wc-checkout-draft",
}
export enum ICommentStatusEnum2 {
Open = "open",
Closed = "closed",
}
export enum IPingStatusEnum2 {
Open = "open",
Closed = "closed",
}
export enum IFormatEnum2 {
Standard = "standard",
Aside = "aside",
Chat = "chat",
Gallery = "gallery",
Link = "link",
Image = "image",
Quote = "quote",
Status = "status",
Video = "video",
Audio = "audio",
}
/** @default "view" */
export enum IV2PagesListParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
export enum IV2PagesListParamsSearchSemanticsEnum {
Exact = "exact",
}
/** @default "desc" */
export enum IV2PagesListParamsOrderEnum {
Asc = "asc",
Desc = "desc",
}
/** @default "date" */
export enum IV2PagesListParamsOrderbyEnum {
Author = "author",
Date = "date",
Id = "id",
Include = "include",
Modified = "modified",
Parent = "parent",
Relevance = "relevance",
Slug = "slug",
IncludeSlugs = "include_slugs",
Title = "title",
MenuOrder = "menu_order",
}
export enum IStatusEnum3 {
Publish = "publish",
Future = "future",
Draft = "draft",
Pending = "pending",
Private = "private",
WcPending = "wc-pending",
WcProcessing = "wc-processing",
WcOnHold = "wc-on-hold",
WcCompleted = "wc-completed",
WcCancelled = "wc-cancelled",
WcRefunded = "wc-refunded",
WcFailed = "wc-failed",
WcCheckoutDraft = "wc-checkout-draft",
}
export enum ICommentStatusEnum3 {
Open = "open",
Closed = "closed",
}
export enum IPingStatusEnum3 {
Open = "open",
Closed = "closed",
}
/** @default "view" */
export enum IV2PagesDetailParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
export enum IStatusEnum4 {
Publish = "publish",
Future = "future",
Draft = "draft",
Pending = "pending",
Private = "private",
WcPending = "wc-pending",
WcProcessing = "wc-processing",
WcOnHold = "wc-on-hold",
WcCompleted = "wc-completed",
WcCancelled = "wc-cancelled",
WcRefunded = "wc-refunded",
WcFailed = "wc-failed",
WcCheckoutDraft = "wc-checkout-draft",
}
export enum ICommentStatusEnum4 {
Open = "open",
Closed = "closed",
}
export enum IPingStatusEnum4 {
Open = "open",
Closed = "closed",
}
export enum IV2PagesUpdateParamsStatusEnum {
Publish = "publish",
Future = "future",
Draft = "draft",
Pending = "pending",
Private = "private",
WcPending = "wc-pending",
WcProcessing = "wc-processing",
WcOnHold = "wc-on-hold",
WcCompleted = "wc-completed",
WcCancelled = "wc-cancelled",
WcRefunded = "wc-refunded",
WcFailed = "wc-failed",
WcCheckoutDraft = "wc-checkout-draft",
}
export enum IV2PagesUpdateParamsCommentStatusEnum {
Open = "open",
Closed = "closed",
}
export enum IV2PagesUpdateParamsPingStatusEnum {
Open = "open",
Closed = "closed",
}
export enum IV2PagesPartialUpdateParamsStatusEnum {
Publish = "publish",
Future = "future",
Draft = "draft",
Pending = "pending",
Private = "private",
WcPending = "wc-pending",
WcProcessing = "wc-processing",
WcOnHold = "wc-on-hold",
WcCompleted = "wc-completed",
WcCancelled = "wc-cancelled",
WcRefunded = "wc-refunded",
WcFailed = "wc-failed",
WcCheckoutDraft = "wc-checkout-draft",
}
export enum IV2PagesPartialUpdateParamsCommentStatusEnum {
Open = "open",
Closed = "closed",
}
export enum IV2PagesPartialUpdateParamsPingStatusEnum {
Open = "open",
Closed = "closed",
}
/** @default "view" */
export enum IV2PagesRevisionsListParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
/** @default "desc" */
export enum IV2PagesRevisionsListParamsOrderEnum {
Asc = "asc",
Desc = "desc",
}
/** @default "date" */
export enum IV2PagesRevisionsListParamsOrderbyEnum {
Date = "date",
Id = "id",
Include = "include",
Relevance = "relevance",
Slug = "slug",
IncludeSlugs = "include_slugs",
Title = "title",
}
/** @default "view" */
export enum IV2PagesDetail2ParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
/** @default "view" */
export enum IV2PagesAutosavesListParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
export enum IStatusEnum5 {
Publish = "publish",
Future = "future",
Draft = "draft",
Pending = "pending",
Private = "private",
WcPending = "wc-pending",
WcProcessing = "wc-processing",
WcOnHold = "wc-on-hold",
WcCompleted = "wc-completed",
WcCancelled = "wc-cancelled",
WcRefunded = "wc-refunded",
WcFailed = "wc-failed",
WcCheckoutDraft = "wc-checkout-draft",
}
export enum ICommentStatusEnum5 {
Open = "open",
Closed = "closed",
}
export enum IPingStatusEnum5 {
Open = "open",
Closed = "closed",
}
/** @default "view" */
export enum IV2MediaListParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
export enum IV2MediaListParamsSearchSemanticsEnum {
Exact = "exact",
}
/** @default "desc" */
export enum IV2MediaListParamsOrderEnum {
Asc = "asc",
Desc = "desc",
}
/** @default "date" */
export enum IV2MediaListParamsOrderbyEnum {
Author = "author",
Date = "date",
Id = "id",
Include = "include",
Modified = "modified",
Parent = "parent",
Relevance = "relevance",
Slug = "slug",
IncludeSlugs = "include_slugs",
Title = "title",
}
export enum IV2MediaListParamsMediaTypeEnum {
Image = "image",
Video = "video",
Text = "text",
Application = "application",
Audio = "audio",
}
export enum IStatusEnum6 {
Publish = "publish",
Future = "future",
Draft = "draft",
Pending = "pending",
Private = "private",
WcPending = "wc-pending",
WcProcessing = "wc-processing",
WcOnHold = "wc-on-hold",
WcCompleted = "wc-completed",
WcCancelled = "wc-cancelled",
WcRefunded = "wc-refunded",
WcFailed = "wc-failed",
WcCheckoutDraft = "wc-checkout-draft",
}
export enum ICommentStatusEnum6 {
Open = "open",
Closed = "closed",
}
export enum IPingStatusEnum6 {
Open = "open",
Closed = "closed",
}
/** @default "view" */
export enum IV2MediaDetailParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
export enum IStatusEnum7 {
Publish = "publish",
Future = "future",
Draft = "draft",
Pending = "pending",
Private = "private",
WcPending = "wc-pending",
WcProcessing = "wc-processing",
WcOnHold = "wc-on-hold",
WcCompleted = "wc-completed",
WcCancelled = "wc-cancelled",
WcRefunded = "wc-refunded",
WcFailed = "wc-failed",
WcCheckoutDraft = "wc-checkout-draft",
}
export enum ICommentStatusEnum7 {
Open = "open",
Closed = "closed",
}
export enum IPingStatusEnum7 {
Open = "open",
Closed = "closed",
}
export enum IV2MediaUpdateParamsStatusEnum {
Publish = "publish",
Future = "future",
Draft = "draft",
Pending = "pending",
Private = "private",
WcPending = "wc-pending",
WcProcessing = "wc-processing",
WcOnHold = "wc-on-hold",
WcCompleted = "wc-completed",
WcCancelled = "wc-cancelled",
WcRefunded = "wc-refunded",
WcFailed = "wc-failed",
WcCheckoutDraft = "wc-checkout-draft",
}
export enum IV2MediaUpdateParamsCommentStatusEnum {
Open = "open",
Closed = "closed",
}
export enum IV2MediaUpdateParamsPingStatusEnum {
Open = "open",
Closed = "closed",
}
export enum IV2MediaPartialUpdateParamsStatusEnum {
Publish = "publish",
Future = "future",
Draft = "draft",
Pending = "pending",
Private = "private",
WcPending = "wc-pending",
WcProcessing = "wc-processing",
WcOnHold = "wc-on-hold",
WcCompleted = "wc-completed",
WcCancelled = "wc-cancelled",
WcRefunded = "wc-refunded",
WcFailed = "wc-failed",
WcCheckoutDraft = "wc-checkout-draft",
}
export enum IV2MediaPartialUpdateParamsCommentStatusEnum {
Open = "open",
Closed = "closed",
}
export enum IV2MediaPartialUpdateParamsPingStatusEnum {
Open = "open",
Closed = "closed",
}
export enum IActionEnum {
CreateImageSubsizes = "create-image-subsizes",
}
/** @default "view" */
export enum IV2MenuItemsListParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
export enum IV2MenuItemsListParamsSearchSemanticsEnum {
Exact = "exact",
}
/** @default "asc" */
export enum IV2MenuItemsListParamsOrderEnum {
Asc = "asc",
Desc = "desc",
}
/** @default "menu_order" */
export enum IV2MenuItemsListParamsOrderbyEnum {
Author = "author",
Date = "date",
Id = "id",
Include = "include",
Modified = "modified",
Parent = "parent",
Relevance = "relevance",
Slug = "slug",
IncludeSlugs = "include_slugs",
Title = "title",
MenuOrder = "menu_order",
}
export enum IV2MenuItemsListParamsTaxRelationEnum {
AND = "AND",
OR = "OR",
}
/** @default "custom" */
export enum ITypeEnum {
Taxonomy = "taxonomy",
PostType = "post_type",
PostTypeArchive = "post_type_archive",
Custom = "custom",
}
/** @default "publish" */
export enum IStatusEnum8 {
Publish = "publish",
Future = "future",
Draft = "draft",
Pending = "pending",
Private = "private",
WcPending = "wc-pending",
WcProcessing = "wc-processing",
WcOnHold = "wc-on-hold",
WcCompleted = "wc-completed",
WcCancelled = "wc-cancelled",
WcRefunded = "wc-refunded",
WcFailed = "wc-failed",
WcCheckoutDraft = "wc-checkout-draft",
}
export enum ITargetEnum {
Blank = "_blank",
Value = "",
}
/** @default "view" */
export enum IV2MenuItemsDetailParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
export enum ITypeEnum1 {
Taxonomy = "taxonomy",
PostType = "post_type",
PostTypeArchive = "post_type_archive",
Custom = "custom",
}
export enum IStatusEnum9 {
Publish = "publish",
Future = "future",
Draft = "draft",
Pending = "pending",
Private = "private",
WcPending = "wc-pending",
WcProcessing = "wc-processing",
WcOnHold = "wc-on-hold",
WcCompleted = "wc-completed",
WcCancelled = "wc-cancelled",
WcRefunded = "wc-refunded",
WcFailed = "wc-failed",
WcCheckoutDraft = "wc-checkout-draft",
}
export enum ITargetEnum1 {
Blank = "_blank",
Value = "",
}
export enum IV2MenuItemsUpdateParamsTypeEnum {
Taxonomy = "taxonomy",
PostType = "post_type",
PostTypeArchive = "post_type_archive",
Custom = "custom",
}
export enum IV2MenuItemsUpdateParamsStatusEnum {
Publish = "publish",
Future = "future",
Draft = "draft",
Pending = "pending",
Private = "private",
WcPending = "wc-pending",
WcProcessing = "wc-processing",
WcOnHold = "wc-on-hold",
WcCompleted = "wc-completed",
WcCancelled = "wc-cancelled",
WcRefunded = "wc-refunded",
WcFailed = "wc-failed",
WcCheckoutDraft = "wc-checkout-draft",
}
export enum IV2MenuItemsUpdateParamsTargetEnum {
Blank = "_blank",
Value = "",
}
export enum IV2MenuItemsPartialUpdateParamsTypeEnum {
Taxonomy = "taxonomy",
PostType = "post_type",
PostTypeArchive = "post_type_archive",
Custom = "custom",
}
export enum IV2MenuItemsPartialUpdateParamsStatusEnum {
Publish = "publish",
Future = "future",
Draft = "draft",
Pending = "pending",
Private = "private",
WcPending = "wc-pending",
WcProcessing = "wc-processing",
WcOnHold = "wc-on-hold",
WcCompleted = "wc-completed",
WcCancelled = "wc-cancelled",
WcRefunded = "wc-refunded",
WcFailed = "wc-failed",
WcCheckoutDraft = "wc-checkout-draft",
}
export enum IV2MenuItemsPartialUpdateParamsTargetEnum {
Blank = "_blank",
Value = "",
}
/** @default "view" */
export enum IV2MenuItemsAutosavesListParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
export enum ITypeEnum2 {
Taxonomy = "taxonomy",
PostType = "post_type",
PostTypeArchive = "post_type_archive",
Custom = "custom",
}
export enum IStatusEnum10 {
Publish = "publish",
Future = "future",
Draft = "draft",
Pending = "pending",
Private = "private",
WcPending = "wc-pending",
WcProcessing = "wc-processing",
WcOnHold = "wc-on-hold",
WcCompleted = "wc-completed",
WcCancelled = "wc-cancelled",
WcRefunded = "wc-refunded",
WcFailed = "wc-failed",
WcCheckoutDraft = "wc-checkout-draft",
}
export enum ITargetEnum2 {
Blank = "_blank",
Value = "",
}
/** @default "view" */
export enum IV2MenuItemsDetail2ParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
/** @default "view" */
export enum IV2BlocksListParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
export enum IV2BlocksListParamsSearchSemanticsEnum {
Exact = "exact",
}
/** @default "desc" */
export enum IV2BlocksListParamsOrderEnum {
Asc = "asc",
Desc = "desc",
}
/** @default "date" */
export enum IV2BlocksListParamsOrderbyEnum {
Author = "author",
Date = "date",
Id = "id",
Include = "include",
Modified = "modified",
Parent = "parent",
Relevance = "relevance",
Slug = "slug",
IncludeSlugs = "include_slugs",
Title = "title",
}
export enum IV2BlocksListParamsTaxRelationEnum {
AND = "AND",
OR = "OR",
}
export enum IStatusEnum11 {
Publish = "publish",
Future = "future",
Draft = "draft",
Pending = "pending",
Private = "private",
WcPending = "wc-pending",
WcProcessing = "wc-processing",
WcOnHold = "wc-on-hold",
WcCompleted = "wc-completed",
WcCancelled = "wc-cancelled",
WcRefunded = "wc-refunded",
WcFailed = "wc-failed",
WcCheckoutDraft = "wc-checkout-draft",
}
/** @default "view" */
export enum IV2BlocksDetailParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
export enum IStatusEnum12 {
Publish = "publish",
Future = "future",
Draft = "draft",
Pending = "pending",
Private = "private",
WcPending = "wc-pending",
WcProcessing = "wc-processing",
WcOnHold = "wc-on-hold",
WcCompleted = "wc-completed",
WcCancelled = "wc-cancelled",
WcRefunded = "wc-refunded",
WcFailed = "wc-failed",
WcCheckoutDraft = "wc-checkout-draft",
}
export enum IV2BlocksUpdateParamsStatusEnum {
Publish = "publish",
Future = "future",
Draft = "draft",
Pending = "pending",
Private = "private",
WcPending = "wc-pending",
WcProcessing = "wc-processing",
WcOnHold = "wc-on-hold",
WcCompleted = "wc-completed",
WcCancelled = "wc-cancelled",
WcRefunded = "wc-refunded",
WcFailed = "wc-failed",
WcCheckoutDraft = "wc-checkout-draft",
}
export enum IV2BlocksPartialUpdateParamsStatusEnum {
Publish = "publish",
Future = "future",
Draft = "draft",
Pending = "pending",
Private = "private",
WcPending = "wc-pending",
WcProcessing = "wc-processing",
WcOnHold = "wc-on-hold",
WcCompleted = "wc-completed",
WcCancelled = "wc-cancelled",
WcRefunded = "wc-refunded",
WcFailed = "wc-failed",
WcCheckoutDraft = "wc-checkout-draft",
}
/** @default "view" */
export enum IV2BlocksRevisionsListParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
/** @default "desc" */
export enum IV2BlocksRevisionsListParamsOrderEnum {
Asc = "asc",
Desc = "desc",
}
/** @default "date" */
export enum IV2BlocksRevisionsListParamsOrderbyEnum {
Date = "date",
Id = "id",
Include = "include",
Relevance = "relevance",
Slug = "slug",
IncludeSlugs = "include_slugs",
Title = "title",
}
/** @default "view" */
export enum IV2BlocksDetail2ParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
/** @default "view" */
export enum IV2BlocksAutosavesListParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
export enum IStatusEnum13 {
Publish = "publish",
Future = "future",
Draft = "draft",
Pending = "pending",
Private = "private",
WcPending = "wc-pending",
WcProcessing = "wc-processing",
WcOnHold = "wc-on-hold",
WcCompleted = "wc-completed",
WcCancelled = "wc-cancelled",
WcRefunded = "wc-refunded",
WcFailed = "wc-failed",
WcCheckoutDraft = "wc-checkout-draft",
}
/** @default "view" */
export enum IV2TemplatesRevisionsListParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
/** @default "desc" */
export enum IV2TemplatesRevisionsListParamsOrderEnum {
Asc = "asc",
Desc = "desc",
}
/** @default "date" */
export enum IV2TemplatesRevisionsListParamsOrderbyEnum {
Date = "date",
Id = "id",
Include = "include",
Relevance = "relevance",
Slug = "slug",
IncludeSlugs = "include_slugs",
Title = "title",
}
/** @default "view" */
export enum IV2TemplatesDetailParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
/** @default "view" */
export enum IV2TemplatesAutosavesListParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
export enum IStatusEnum14 {
Publish = "publish",
Future = "future",
Draft = "draft",
Pending = "pending",
Private = "private",
WcPending = "wc-pending",
WcProcessing = "wc-processing",
WcOnHold = "wc-on-hold",
WcCompleted = "wc-completed",
WcCancelled = "wc-cancelled",
WcRefunded = "wc-refunded",
WcFailed = "wc-failed",
WcCheckoutDraft = "wc-checkout-draft",
}
/** @default "view" */
export enum IV2TemplatesListParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
/** @default "publish" */
export enum IStatusEnum15 {
Publish = "publish",
Future = "future",
Draft = "draft",
Pending = "pending",
Private = "private",
WcPending = "wc-pending",
WcProcessing = "wc-processing",
WcOnHold = "wc-on-hold",
WcCompleted = "wc-completed",
WcCancelled = "wc-cancelled",
WcRefunded = "wc-refunded",
WcFailed = "wc-failed",
WcCheckoutDraft = "wc-checkout-draft",
}
/** @default "view" */
export enum IV2TemplatesDetail2ParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
export enum IStatusEnum16 {
Publish = "publish",
Future = "future",
Draft = "draft",
Pending = "pending",
Private = "private",
WcPending = "wc-pending",
WcProcessing = "wc-processing",
WcOnHold = "wc-on-hold",
WcCompleted = "wc-completed",
WcCancelled = "wc-cancelled",
WcRefunded = "wc-refunded",
WcFailed = "wc-failed",
WcCheckoutDraft = "wc-checkout-draft",
}
export enum IV2TemplatesUpdateParamsStatusEnum {
Publish = "publish",
Future = "future",
Draft = "draft",
Pending = "pending",
Private = "private",
WcPending = "wc-pending",
WcProcessing = "wc-processing",
WcOnHold = "wc-on-hold",
WcCompleted = "wc-completed",
WcCancelled = "wc-cancelled",
WcRefunded = "wc-refunded",
WcFailed = "wc-failed",
WcCheckoutDraft = "wc-checkout-draft",
}
export enum IV2TemplatesPartialUpdateParamsStatusEnum {
Publish = "publish",
Future = "future",
Draft = "draft",
Pending = "pending",
Private = "private",
WcPending = "wc-pending",
WcProcessing = "wc-processing",
WcOnHold = "wc-on-hold",
WcCompleted = "wc-completed",
WcCancelled = "wc-cancelled",
WcRefunded = "wc-refunded",
WcFailed = "wc-failed",
WcCheckoutDraft = "wc-checkout-draft",
}
/** @default "view" */
export enum IV2TemplatePartsRevisionsListParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
/** @default "desc" */
export enum IV2TemplatePartsRevisionsListParamsOrderEnum {
Asc = "asc",
Desc = "desc",
}
/** @default "date" */
export enum IV2TemplatePartsRevisionsListParamsOrderbyEnum {
Date = "date",
Id = "id",
Include = "include",
Relevance = "relevance",
Slug = "slug",
IncludeSlugs = "include_slugs",
Title = "title",
}
/** @default "view" */
export enum IV2TemplatePartsDetailParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
/** @default "view" */
export enum IV2TemplatePartsAutosavesListParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
export enum IStatusEnum17 {
Publish = "publish",
Future = "future",
Draft = "draft",
Pending = "pending",
Private = "private",
WcPending = "wc-pending",
WcProcessing = "wc-processing",
WcOnHold = "wc-on-hold",
WcCompleted = "wc-completed",
WcCancelled = "wc-cancelled",
WcRefunded = "wc-refunded",
WcFailed = "wc-failed",
WcCheckoutDraft = "wc-checkout-draft",
}
/** @default "view" */
export enum IV2TemplatePartsListParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
/** @default "publish" */
export enum IStatusEnum18 {
Publish = "publish",
Future = "future",
Draft = "draft",
Pending = "pending",
Private = "private",
WcPending = "wc-pending",
WcProcessing = "wc-processing",
WcOnHold = "wc-on-hold",
WcCompleted = "wc-completed",
WcCancelled = "wc-cancelled",
WcRefunded = "wc-refunded",
WcFailed = "wc-failed",
WcCheckoutDraft = "wc-checkout-draft",
}
/** @default "view" */
export enum IV2TemplatePartsDetail2ParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
export enum IStatusEnum19 {
Publish = "publish",
Future = "future",
Draft = "draft",
Pending = "pending",
Private = "private",
WcPending = "wc-pending",
WcProcessing = "wc-processing",
WcOnHold = "wc-on-hold",
WcCompleted = "wc-completed",
WcCancelled = "wc-cancelled",
WcRefunded = "wc-refunded",
WcFailed = "wc-failed",
WcCheckoutDraft = "wc-checkout-draft",
}
export enum IV2TemplatePartsUpdateParamsStatusEnum {
Publish = "publish",
Future = "future",
Draft = "draft",
Pending = "pending",
Private = "private",
WcPending = "wc-pending",
WcProcessing = "wc-processing",
WcOnHold = "wc-on-hold",
WcCompleted = "wc-completed",
WcCancelled = "wc-cancelled",
WcRefunded = "wc-refunded",
WcFailed = "wc-failed",
WcCheckoutDraft = "wc-checkout-draft",
}
export enum IV2TemplatePartsPartialUpdateParamsStatusEnum {
Publish = "publish",
Future = "future",
Draft = "draft",
Pending = "pending",
Private = "private",
WcPending = "wc-pending",
WcProcessing = "wc-processing",
WcOnHold = "wc-on-hold",
WcCompleted = "wc-completed",
WcCancelled = "wc-cancelled",
WcRefunded = "wc-refunded",
WcFailed = "wc-failed",
WcCheckoutDraft = "wc-checkout-draft",
}
/** @default "view" */
export enum IV2GlobalStylesRevisionsListParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
/** @default "view" */
export enum IV2GlobalStylesDetailParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
/** @default "view" */
export enum IV2NavigationListParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
export enum IV2NavigationListParamsSearchSemanticsEnum {
Exact = "exact",
}
/** @default "desc" */
export enum IV2NavigationListParamsOrderEnum {
Asc = "asc",
Desc = "desc",
}
/** @default "date" */
export enum IV2NavigationListParamsOrderbyEnum {
Author = "author",
Date = "date",
Id = "id",
Include = "include",
Modified = "modified",
Parent = "parent",
Relevance = "relevance",
Slug = "slug",
IncludeSlugs = "include_slugs",
Title = "title",
}
export enum IStatusEnum20 {
Publish = "publish",
Future = "future",
Draft = "draft",
Pending = "pending",
Private = "private",
WcPending = "wc-pending",
WcProcessing = "wc-processing",
WcOnHold = "wc-on-hold",
WcCompleted = "wc-completed",
WcCancelled = "wc-cancelled",
WcRefunded = "wc-refunded",
WcFailed = "wc-failed",
WcCheckoutDraft = "wc-checkout-draft",
}
/** @default "view" */
export enum IV2NavigationDetailParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
export enum IStatusEnum21 {
Publish = "publish",
Future = "future",
Draft = "draft",
Pending = "pending",
Private = "private",
WcPending = "wc-pending",
WcProcessing = "wc-processing",
WcOnHold = "wc-on-hold",
WcCompleted = "wc-completed",
WcCancelled = "wc-cancelled",
WcRefunded = "wc-refunded",
WcFailed = "wc-failed",
WcCheckoutDraft = "wc-checkout-draft",
}
export enum IV2NavigationUpdateParamsStatusEnum {
Publish = "publish",
Future = "future",
Draft = "draft",
Pending = "pending",
Private = "private",
WcPending = "wc-pending",
WcProcessing = "wc-processing",
WcOnHold = "wc-on-hold",
WcCompleted = "wc-completed",
WcCancelled = "wc-cancelled",
WcRefunded = "wc-refunded",
WcFailed = "wc-failed",
WcCheckoutDraft = "wc-checkout-draft",
}
export enum IV2NavigationPartialUpdateParamsStatusEnum {
Publish = "publish",
Future = "future",
Draft = "draft",
Pending = "pending",
Private = "private",
WcPending = "wc-pending",
WcProcessing = "wc-processing",
WcOnHold = "wc-on-hold",
WcCompleted = "wc-completed",
WcCancelled = "wc-cancelled",
WcRefunded = "wc-refunded",
WcFailed = "wc-failed",
WcCheckoutDraft = "wc-checkout-draft",
}
/** @default "view" */
export enum IV2NavigationRevisionsListParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
/** @default "desc" */
export enum IV2NavigationRevisionsListParamsOrderEnum {
Asc = "asc",
Desc = "desc",
}
/** @default "date" */
export enum IV2NavigationRevisionsListParamsOrderbyEnum {
Date = "date",
Id = "id",
Include = "include",
Relevance = "relevance",
Slug = "slug",
IncludeSlugs = "include_slugs",
Title = "title",
}
/** @default "view" */
export enum IV2NavigationDetail2ParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
/** @default "view" */
export enum IV2NavigationAutosavesListParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
export enum IStatusEnum22 {
Publish = "publish",
Future = "future",
Draft = "draft",
Pending = "pending",
Private = "private",
WcPending = "wc-pending",
WcProcessing = "wc-processing",
WcOnHold = "wc-on-hold",
WcCompleted = "wc-completed",
WcCancelled = "wc-cancelled",
WcRefunded = "wc-refunded",
WcFailed = "wc-failed",
WcCheckoutDraft = "wc-checkout-draft",
}
/** @default "view" */
export enum IV2FontFamiliesListParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
export enum IV2FontFamiliesListParamsSearchSemanticsEnum {
Exact = "exact",
}
/** @default "desc" */
export enum IV2FontFamiliesListParamsOrderEnum {
Asc = "asc",
Desc = "desc",
}
/** @default "id" */
export enum IV2FontFamiliesListParamsOrderbyEnum {
Id = "id",
Include = "include",
}
/** @default "view" */
export enum IV2FontFamiliesDetailParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
/** @default "view" */
export enum IV2FontFamiliesFontFacesListParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
export enum IV2FontFamiliesFontFacesListParamsSearchSemanticsEnum {
Exact = "exact",
}
/** @default "desc" */
export enum IV2FontFamiliesFontFacesListParamsOrderEnum {
Asc = "asc",
Desc = "desc",
}
/** @default "id" */
export enum IV2FontFamiliesFontFacesListParamsOrderbyEnum {
Id = "id",
Include = "include",
}
/** @default "view" */
export enum IV2FontFamiliesDetail2ParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
/** @default "view" */
export enum IV2ProductListParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
export enum IV2ProductListParamsSearchSemanticsEnum {
Exact = "exact",
}
/** @default "desc" */
export enum IV2ProductListParamsOrderEnum {
Asc = "asc",
Desc = "desc",
}
/** @default "date" */
export enum IV2ProductListParamsOrderbyEnum {
Author = "author",
Date = "date",
Id = "id",
Include = "include",
Modified = "modified",
Parent = "parent",
Relevance = "relevance",
Slug = "slug",
IncludeSlugs = "include_slugs",
Title = "title",
Popularity = "popularity",
Rating = "rating",
PostIn = "post__in",
Price = "price",
Sales = "sales",
MenuOrder = "menu_order",
Random = "random",
Popularity1 = "popularity",
Rating2 = "rating",
}
export enum IV2ProductListParamsTaxRelationEnum {
AND = "AND",
OR = "OR",
}
export enum IStatusEnum23 {
Publish = "publish",
Future = "future",
Draft = "draft",
Pending = "pending",
Private = "private",
WcPending = "wc-pending",
WcProcessing = "wc-processing",
WcOnHold = "wc-on-hold",
WcCompleted = "wc-completed",
WcCancelled = "wc-cancelled",
WcRefunded = "wc-refunded",
WcFailed = "wc-failed",
WcCheckoutDraft = "wc-checkout-draft",
}
export enum ICommentStatusEnum8 {
Open = "open",
Closed = "closed",
}
export enum IPingStatusEnum8 {
Open = "open",
Closed = "closed",
}
/** @default "view" */
export enum IV2ProductDetailParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
export enum IStatusEnum24 {
Publish = "publish",
Future = "future",
Draft = "draft",
Pending = "pending",
Private = "private",
WcPending = "wc-pending",
WcProcessing = "wc-processing",
WcOnHold = "wc-on-hold",
WcCompleted = "wc-completed",
WcCancelled = "wc-cancelled",
WcRefunded = "wc-refunded",
WcFailed = "wc-failed",
WcCheckoutDraft = "wc-checkout-draft",
}
export enum ICommentStatusEnum9 {
Open = "open",
Closed = "closed",
}
export enum IPingStatusEnum9 {
Open = "open",
Closed = "closed",
}
export enum IV2ProductUpdateParamsStatusEnum {
Publish = "publish",
Future = "future",
Draft = "draft",
Pending = "pending",
Private = "private",
WcPending = "wc-pending",
WcProcessing = "wc-processing",
WcOnHold = "wc-on-hold",
WcCompleted = "wc-completed",
WcCancelled = "wc-cancelled",
WcRefunded = "wc-refunded",
WcFailed = "wc-failed",
WcCheckoutDraft = "wc-checkout-draft",
}
export enum IV2ProductUpdateParamsCommentStatusEnum {
Open = "open",
Closed = "closed",
}
export enum IV2ProductUpdateParamsPingStatusEnum {
Open = "open",
Closed = "closed",
}
export enum IV2ProductPartialUpdateParamsStatusEnum {
Publish = "publish",
Future = "future",
Draft = "draft",
Pending = "pending",
Private = "private",
WcPending = "wc-pending",
WcProcessing = "wc-processing",
WcOnHold = "wc-on-hold",
WcCompleted = "wc-completed",
WcCancelled = "wc-cancelled",
WcRefunded = "wc-refunded",
WcFailed = "wc-failed",
WcCheckoutDraft = "wc-checkout-draft",
}
export enum IV2ProductPartialUpdateParamsCommentStatusEnum {
Open = "open",
Closed = "closed",
}
export enum IV2ProductPartialUpdateParamsPingStatusEnum {
Open = "open",
Closed = "closed",
}
/** @default "view" */
export enum IV2ProductAutosavesListParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
export enum IStatusEnum25 {
Publish = "publish",
Future = "future",
Draft = "draft",
Pending = "pending",
Private = "private",
WcPending = "wc-pending",
WcProcessing = "wc-processing",
WcOnHold = "wc-on-hold",
WcCompleted = "wc-completed",
WcCancelled = "wc-cancelled",
WcRefunded = "wc-refunded",
WcFailed = "wc-failed",
WcCheckoutDraft = "wc-checkout-draft",
}
export enum ICommentStatusEnum10 {
Open = "open",
Closed = "closed",
}
export enum IPingStatusEnum10 {
Open = "open",
Closed = "closed",
}
/** @default "view" */
export enum IV2ProductDetail2ParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
/** @default "view" */
export enum IV2TypesListParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
/** @default "view" */
export enum IV2TypesDetailParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
/** @default "view" */
export enum IV2StatusesListParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
/** @default "view" */
export enum IV2StatusesDetailParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
/** @default "view" */
export enum IV2TaxonomiesListParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
/** @default "view" */
export enum IV2TaxonomiesDetailParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
/** @default "view" */
export enum IV2CategoriesListParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
/** @default "asc" */
export enum IV2CategoriesListParamsOrderEnum {
Asc = "asc",
Desc = "desc",
}
/** @default "name" */
export enum IV2CategoriesListParamsOrderbyEnum {
Id = "id",
Include = "include",
Name = "name",
Slug = "slug",
IncludeSlugs = "include_slugs",
TermGroup = "term_group",
Description = "description",
Count = "count",
}
/** @default "view" */
export enum IV2CategoriesDetailParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
/** @default "view" */
export enum IV2TagsListParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
/** @default "asc" */
export enum IV2TagsListParamsOrderEnum {
Asc = "asc",
Desc = "desc",
}
/** @default "name" */
export enum IV2TagsListParamsOrderbyEnum {
Id = "id",
Include = "include",
Name = "name",
Slug = "slug",
IncludeSlugs = "include_slugs",
TermGroup = "term_group",
Description = "description",
Count = "count",
}
/** @default "view" */
export enum IV2TagsDetailParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
/** @default "view" */
export enum IV2MenusListParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
/** @default "asc" */
export enum IV2MenusListParamsOrderEnum {
Asc = "asc",
Desc = "desc",
}
/** @default "name" */
export enum IV2MenusListParamsOrderbyEnum {
Id = "id",
Include = "include",
Name = "name",
Slug = "slug",
IncludeSlugs = "include_slugs",
TermGroup = "term_group",
Description = "description",
Count = "count",
}
/** @default "view" */
export enum IV2MenusDetailParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
/** @default "view" */
export enum IV2WpPatternCategoryListParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
/** @default "asc" */
export enum IV2WpPatternCategoryListParamsOrderEnum {
Asc = "asc",
Desc = "desc",
}
/** @default "name" */
export enum IV2WpPatternCategoryListParamsOrderbyEnum {
Id = "id",
Include = "include",
Name = "name",
Slug = "slug",
IncludeSlugs = "include_slugs",
TermGroup = "term_group",
Description = "description",
Count = "count",
}
/** @default "view" */
export enum IV2WpPatternCategoryDetailParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
/** @default "view" */
export enum IV2ProductBrandListParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
/** @default "asc" */
export enum IV2ProductBrandListParamsOrderEnum {
Asc = "asc",
Desc = "desc",
}
/** @default "name" */
export enum IV2ProductBrandListParamsOrderbyEnum {
Id = "id",
Include = "include",
Name = "name",
Slug = "slug",
IncludeSlugs = "include_slugs",
TermGroup = "term_group",
Description = "description",
Count = "count",
}
/** @default "view" */
export enum IV2ProductBrandDetailParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
/** @default "view" */
export enum IV2ProductCatListParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
/** @default "asc" */
export enum IV2ProductCatListParamsOrderEnum {
Asc = "asc",
Desc = "desc",
}
/** @default "name" */
export enum IV2ProductCatListParamsOrderbyEnum {
Id = "id",
Include = "include",
Name = "name",
Slug = "slug",
IncludeSlugs = "include_slugs",
TermGroup = "term_group",
Description = "description",
Count = "count",
}
/** @default "view" */
export enum IV2ProductCatDetailParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
/** @default "view" */
export enum IV2ProductTagListParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
/** @default "asc" */
export enum IV2ProductTagListParamsOrderEnum {
Asc = "asc",
Desc = "desc",
}
/** @default "name" */
export enum IV2ProductTagListParamsOrderbyEnum {
Id = "id",
Include = "include",
Name = "name",
Slug = "slug",
IncludeSlugs = "include_slugs",
TermGroup = "term_group",
Description = "description",
Count = "count",
}
/** @default "view" */
export enum IV2ProductTagDetailParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
/** @default "view" */
export enum IV2UsersListParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
/** @default "asc" */
export enum IV2UsersListParamsOrderEnum {
Asc = "asc",
Desc = "desc",
}
/** @default "name" */
export enum IV2UsersListParamsOrderbyEnum {
Id = "id",
Include = "include",
Name = "name",
RegisteredDate = "registered_date",
Slug = "slug",
IncludeSlugs = "include_slugs",
Email = "email",
Url = "url",
}
export enum IV2UsersListParamsWhoEnum {
Authors = "authors",
}
export enum ILocaleEnum {
Value = "",
EnUS = "en_US",
EnGB = "en_GB",
}
/** @default "view" */
export enum IV2UsersDetailParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
export enum ILocaleEnum1 {
Value = "",
EnUS = "en_US",
EnGB = "en_GB",
}
export enum IV2UsersUpdateParamsLocaleEnum {
Value = "",
EnUS = "en_US",
EnGB = "en_GB",
}
export enum IV2UsersPartialUpdateParamsLocaleEnum {
Value = "",
EnUS = "en_US",
EnGB = "en_GB",
}
/** @default "view" */
export enum IV2UsersMeListParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
export enum ILocaleEnum2 {
Value = "",
EnUS = "en_US",
EnGB = "en_GB",
}
export enum IV2UsersMeUpdateParamsLocaleEnum {
Value = "",
EnUS = "en_US",
EnGB = "en_GB",
}
export enum IV2UsersMePartialUpdateParamsLocaleEnum {
Value = "",
EnUS = "en_US",
EnGB = "en_GB",
}
/** @default "view" */
export enum IV2UsersApplicationPasswordsListParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
/** @default "view" */
export enum IV2UsersApplicationPasswordsIntrospectListParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
/** @default "view" */
export enum IV2UsersDetail2ParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
/** @default "view" */
export enum IV2CommentsListParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
/** @default "desc" */
export enum IV2CommentsListParamsOrderEnum {
Asc = "asc",
Desc = "desc",
}
/** @default "date_gmt" */
export enum IV2CommentsListParamsOrderbyEnum {
Date = "date",
DateGmt = "date_gmt",
Id = "id",
Include = "include",
Post = "post",
Parent = "parent",
Type = "type",
}
/** @default "view" */
export enum IV2CommentsDetailParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
/** @default "view" */
export enum IV2SearchListParamsContextEnum {
View = "view",
Embed = "embed",
}
/** @default "post" */
export enum IV2SearchListParamsTypeEnum {
Post = "post",
Term = "term",
PostFormat = "post-format",
}
/** @default "view" */
export enum IV2BlockRendererDetailParamsContextEnum {
Edit = "edit",
}
/** @default "view" */
export enum IContextEnum {
Edit = "edit",
}
/** @default "view" */
export enum IV2BlockTypesListParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
/** @default "view" */
export enum IV2BlockTypesDetailParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
export enum IDefaultPingStatusEnum {
Open = "open",
Closed = "closed",
}
export enum IDefaultCommentStatusEnum {
Open = "open",
Closed = "closed",
}
export enum IWoocommerceDefaultCatalogOrderbyEnum {
MenuOrder = "menu_order",
Popularity = "popularity",
Rating = "rating",
Date = "date",
Price = "price",
PriceDesc = "price-desc",
}
export enum IWoocommerceCheckoutPhoneFieldEnum {
Optional = "optional",
Required = "required",
Hidden = "hidden",
}
export enum IWoocommerceCheckoutCompanyFieldEnum {
Optional = "optional",
Required = "required",
Hidden = "hidden",
}
export enum IWoocommerceCheckoutAddress2FieldEnum {
Optional = "optional",
Required = "required",
Hidden = "hidden",
}
export enum IV2SettingsUpdateParamsDefaultPingStatusEnum {
Open = "open",
Closed = "closed",
}
export enum IV2SettingsUpdateParamsDefaultCommentStatusEnum {
Open = "open",
Closed = "closed",
}
export enum IV2SettingsUpdateParamsWoocommerceDefaultCatalogOrderbyEnum {
MenuOrder = "menu_order",
Popularity = "popularity",
Rating = "rating",
Date = "date",
Price = "price",
PriceDesc = "price-desc",
}
export enum IV2SettingsUpdateParamsWoocommerceCheckoutPhoneFieldEnum {
Optional = "optional",
Required = "required",
Hidden = "hidden",
}
export enum IV2SettingsUpdateParamsWoocommerceCheckoutCompanyFieldEnum {
Optional = "optional",
Required = "required",
Hidden = "hidden",
}
export enum IV2SettingsUpdateParamsWoocommerceCheckoutAddress2FieldEnum {
Optional = "optional",
Required = "required",
Hidden = "hidden",
}
export enum IV2SettingsPartialUpdateParamsDefaultPingStatusEnum {
Open = "open",
Closed = "closed",
}
export enum IV2SettingsPartialUpdateParamsDefaultCommentStatusEnum {
Open = "open",
Closed = "closed",
}
export enum IV2SettingsPartialUpdateParamsWoocommerceDefaultCatalogOrderbyEnum {
MenuOrder = "menu_order",
Popularity = "popularity",
Rating = "rating",
Date = "date",
Price = "price",
PriceDesc = "price-desc",
}
export enum IV2SettingsPartialUpdateParamsWoocommerceCheckoutPhoneFieldEnum {
Optional = "optional",
Required = "required",
Hidden = "hidden",
}
export enum IV2SettingsPartialUpdateParamsWoocommerceCheckoutCompanyFieldEnum {
Optional = "optional",
Required = "required",
Hidden = "hidden",
}
export enum IV2SettingsPartialUpdateParamsWoocommerceCheckoutAddress2FieldEnum {
Optional = "optional",
Required = "required",
Hidden = "hidden",
}
/** @default "view" */
export enum IV2PluginsListParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
/** @default "inactive" */
export enum IStatusEnum26 {
Inactive = "inactive",
Active = "active",
}
/** @default "view" */
export enum IV2PluginsDetailParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
/** @default "view" */
export enum IContextEnum1 {
View = "view",
Embed = "embed",
Edit = "edit",
}
export enum IStatusEnum27 {
Inactive = "inactive",
Active = "active",
}
/** @default "view" */
export enum IV2PluginsUpdateParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
export enum IV2PluginsUpdateParamsStatusEnum {
Inactive = "inactive",
Active = "active",
}
/** @default "view" */
export enum IV2PluginsPartialUpdateParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
export enum IV2PluginsPartialUpdateParamsStatusEnum {
Inactive = "inactive",
Active = "active",
}
/** @default "view" */
export enum IV2PluginsDeleteParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
/** @default "view" */
export enum IV2SidebarsListParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
/** @default "view" */
export enum IV2SidebarsDetailParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
/** @default "view" */
export enum IV2WidgetTypesListParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
/** @default "view" */
export enum IV2WidgetTypesDetailParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
/** @default "view" */
export enum IV2WidgetsListParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
/** @default "view" */
export enum IV2WidgetsDetailParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
/** @default "view" */
export enum IV2BlockDirectorySearchListParamsContextEnum {
View = "view",
}
/** @default "view" */
export enum IV2PatternDirectoryPatternsListParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
/** @default "desc" */
export enum IV2PatternDirectoryPatternsListParamsOrderEnum {
Asc = "asc",
Desc = "desc",
}
/** @default "date" */
export enum IV2PatternDirectoryPatternsListParamsOrderbyEnum {
Author = "author",
Date = "date",
Id = "id",
Include = "include",
Modified = "modified",
Parent = "parent",
Relevance = "relevance",
Slug = "slug",
IncludeSlugs = "include_slugs",
Title = "title",
FavoriteCount = "favorite_count",
}
/** @default "view" */
export enum IV2MenuLocationsListParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
/** @default "view" */
export enum IV2MenuLocationsDetailParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
/** @default "view" */
export enum IV2FontCollectionsListParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
/** @default "view" */
export enum IV2FontCollectionsDetailParamsContextEnum {
View = "view",
Embed = "embed",
Edit = "edit",
}
export type QueryParamsType = Record<string | number, any>;
export type ResponseFormat = keyof Omit<Body, "body" | "bodyUsed">;
export interface FullRequestParams extends Omit<RequestInit, "body"> {
/** set parameter to `true` for call `securityWorker` for this request */
secure?: boolean;
/** request path */
path: string;
/** content type of request body */
type?: ContentType;
/** query params */
query?: QueryParamsType;
/** format of response (i.e. response.json() -> format: "json") */
format?: ResponseFormat;
/** request body */
body?: unknown;
/** base url */
baseUrl?: string;
/** request cancellation token */
cancelToken?: CancelToken;
}
export type RequestParams = Omit<
FullRequestParams,
"body" | "method" | "query" | "path"
>;
export interface ApiConfig<SecurityDataType = unknown> {
baseUrl?: string;
baseApiParams?: Omit<RequestParams, "baseUrl" | "cancelToken" | "signal">;
securityWorker?: (
securityData: SecurityDataType | null,
) => Promise<RequestParams | void> | RequestParams | void;
customFetch?: typeof fetch;
}
export interface HttpResponse<D extends unknown, E extends unknown = unknown>
extends Response {
data: D;
error: E;
}
type CancelToken = Symbol | string | number;
export enum ContentType {
Json = "application/json",
JsonApi = "application/vnd.api+json",
FormData = "multipart/form-data",
UrlEncoded = "application/x-www-form-urlencoded",
Text = "text/plain",
}
export class HttpClient<SecurityDataType = unknown> {
public baseUrl: string = "https://wp.koptilnya.xyz/wp-json";
private securityData: SecurityDataType | null = null;
private securityWorker?: ApiConfig<SecurityDataType>["securityWorker"];
private abortControllers = new Map<CancelToken, AbortController>();
private customFetch = (...fetchParams: Parameters<typeof fetch>) =>
fetch(...fetchParams);
private baseApiParams: RequestParams = {
credentials: "same-origin",
headers: {},
redirect: "follow",
referrerPolicy: "no-referrer",
};
constructor(apiConfig: ApiConfig<SecurityDataType> = {}) {
Object.assign(this, apiConfig);
}
public setSecurityData = (data: SecurityDataType | null) => {
this.securityData = data;
};
protected encodeQueryParam(key: string, value: any) {
const encodedKey = encodeURIComponent(key);
return `${encodedKey}=${encodeURIComponent(typeof value === "number" ? value : `${value}`)}`;
}
protected addQueryParam(query: QueryParamsType, key: string) {
return this.encodeQueryParam(key, query[key]);
}
protected addArrayQueryParam(query: QueryParamsType, key: string) {
const value = query[key];
return value.map((v: any) => this.encodeQueryParam(key, v)).join("&");
}
protected toQueryString(rawQuery?: QueryParamsType): string {
const query = rawQuery || {};
const keys = Object.keys(query).filter(
(key) => "undefined" !== typeof query[key],
);
return keys
.map((key) =>
Array.isArray(query[key])
? this.addArrayQueryParam(query, key)
: this.addQueryParam(query, key),
)
.join("&");
}
protected addQueryParams(rawQuery?: QueryParamsType): string {
const queryString = this.toQueryString(rawQuery);
return queryString ? `?${queryString}` : "";
}
private contentFormatters: Record<ContentType, (input: any) => any> = {
[ContentType.Json]: (input: any) =>
input !== null && (typeof input === "object" || typeof input === "string")
? JSON.stringify(input)
: input,
[ContentType.JsonApi]: (input: any) =>
input !== null && (typeof input === "object" || typeof input === "string")
? JSON.stringify(input)
: input,
[ContentType.Text]: (input: any) =>
input !== null && typeof input !== "string"
? JSON.stringify(input)
: input,
[ContentType.FormData]: (input: any) =>
Object.keys(input || {}).reduce((formData, key) => {
const property = input[key];
formData.append(
key,
property instanceof Blob
? property
: typeof property === "object" && property !== null
? JSON.stringify(property)
: `${property}`,
);
return formData;
}, new FormData()),
[ContentType.UrlEncoded]: (input: any) => this.toQueryString(input),
};
protected mergeRequestParams(
params1: RequestParams,
params2?: RequestParams,
): RequestParams {
return {
...this.baseApiParams,
...params1,
...(params2 || {}),
headers: {
...(this.baseApiParams.headers || {}),
...(params1.headers || {}),
...((params2 && params2.headers) || {}),
},
};
}
protected createAbortSignal = (
cancelToken: CancelToken,
): AbortSignal | undefined => {
if (this.abortControllers.has(cancelToken)) {
const abortController = this.abortControllers.get(cancelToken);
if (abortController) {
return abortController.signal;
}
return void 0;
}
const abortController = new AbortController();
this.abortControllers.set(cancelToken, abortController);
return abortController.signal;
};
public abortRequest = (cancelToken: CancelToken) => {
const abortController = this.abortControllers.get(cancelToken);
if (abortController) {
abortController.abort();
this.abortControllers.delete(cancelToken);
}
};
public request = async <T = any, E = any>({
body,
secure,
path,
type,
query,
format,
baseUrl,
cancelToken,
...params
}: FullRequestParams): Promise<HttpResponse<T, E>> => {
const secureParams =
((typeof secure === "boolean" ? secure : this.baseApiParams.secure) &&
this.securityWorker &&
(await this.securityWorker(this.securityData))) ||
{};
const requestParams = this.mergeRequestParams(params, secureParams);
const queryString = query && this.toQueryString(query);
const payloadFormatter = this.contentFormatters[type || ContentType.Json];
const responseFormat = format || requestParams.format;
return this.customFetch(
`${baseUrl || this.baseUrl || ""}${path}${queryString ? `?${queryString}` : ""}`,
{
...requestParams,
headers: {
...(requestParams.headers || {}),
...(type && type !== ContentType.FormData
? { "Content-Type": type }
: {}),
},
signal:
(cancelToken
? this.createAbortSignal(cancelToken)
: requestParams.signal) || null,
body:
typeof body === "undefined" || body === null
? null
: payloadFormatter(body),
},
).then(async (response) => {
const r = response.clone() as HttpResponse<T, E>;
r.data = null as unknown as T;
r.error = null as unknown as E;
const data = !responseFormat
? r
: await response[responseFormat]()
.then((data) => {
if (r.ok) {
r.data = data;
} else {
r.error = data;
}
return r;
})
.catch((e) => {
r.error = e;
return r;
});
if (cancelToken) {
this.abortControllers.delete(cancelToken);
}
if (!response.ok) throw data;
return data;
});
};
}
/**
* @title Paxton API
* @version 6.8.2
* @baseUrl https://wp.koptilnya.xyz/wp-json
* @contact <wraker6@gmail.com>
*/
export class Api<
SecurityDataType extends unknown,
> extends HttpClient<SecurityDataType> {
wp = {
/**
* No description
*
* @tags posts
* @name V2PostsList
* @request GET:/wp/v2/posts
* @secure
*/
v2PostsList: (
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2PostsListParamsContextEnum[];
/**
* Current page of the collection.
* @format int64
* @min 1
*/
page?: number;
/**
* Maximum number of items to be returned in result set.
* @format int64
* @min 1
* @max 100
*/
per_page?: number;
/** Limit results to those matching a string. */
search?: string;
/**
* Limit response to posts published after a given ISO8601 compliant date.
* @format date-time
*/
after?: string;
/**
* Limit response to posts modified after a given ISO8601 compliant date.
* @format date-time
*/
modified_after?: string;
/** Limit result set to posts assigned to specific authors. */
author?: number[];
/** Ensure result set excludes posts assigned to specific authors. */
author_exclude?: number[];
/**
* Limit response to posts published before a given ISO8601 compliant date.
* @format date-time
*/
before?: string;
/**
* Limit response to posts modified before a given ISO8601 compliant date.
* @format date-time
*/
modified_before?: string;
/** Ensure result set excludes specific IDs. */
exclude?: number[];
/** Limit result set to specific IDs. */
include?: number[];
/** How to interpret the search input. */
search_semantics?: IV2PostsListParamsSearchSemanticsEnum[];
/**
* Offset the result set by a specific number of items.
* @format int64
*/
offset?: number;
/** Order sort attribute ascending or descending. */
order?: IV2PostsListParamsOrderEnum[];
/** Sort collection by post attribute. */
orderby?: IV2PostsListParamsOrderbyEnum[];
/** Array of column names to be searched. */
search_columns?: string[];
/** Limit result set to posts with one or more specific slugs. */
slug?: string[];
/** Limit result set to posts assigned one or more statuses. */
status?: string[];
/** Limit result set based on relationship between multiple taxonomies. */
tax_relation?: IV2PostsListParamsTaxRelationEnum[];
/** Limit result set to items with specific terms assigned in the categories taxonomy. */
categories?: string;
/** Limit result set to items except those with specific terms assigned in the categories taxonomy. */
categories_exclude?: string;
/** Limit result set to items with specific terms assigned in the tags taxonomy. */
tags?: string;
/** Limit result set to items except those with specific terms assigned in the tags taxonomy. */
tags_exclude?: string;
/** Limit result set to items that are sticky. */
sticky?: boolean;
/** Whether to ignore sticky posts or not. */
ignore_sticky?: boolean;
/** Limit result set to items assigned one or more given formats. */
format?: string[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/posts`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags posts
* @name V2PostsCreate
* @request POST:/wp/v2/posts
* @secure
*/
v2PostsCreate: (
data: {
/**
* The date the post was published, in the site's timezone.
* @format date-time
*/
date?: string;
/**
* The date the post was published, as GMT.
* @format date-time
*/
date_gmt?: string;
/** An alphanumeric identifier for the post unique to its type. */
slug?: string;
/** A named status for the post. */
status?: IStatusEnum[];
/** A password to protect access to the content and excerpt. */
password?: string;
/** The title for the post. */
title?: string;
/** The content for the post. */
content?: string;
/**
* The ID for the author of the post.
* @format int64
*/
author?: number;
/** The excerpt for the post. */
excerpt?: string;
/**
* The ID of the featured media for the post.
* @format int64
*/
featured_media?: number;
/** Whether or not comments are open on the post. */
comment_status?: ICommentStatusEnum[];
/** Whether or not the post can be pinged. */
ping_status?: IPingStatusEnum[];
/** The format for the post. */
format?: IFormatEnum[];
/** Meta fields. */
meta?: string;
/** Whether or not the post should be treated as sticky. */
sticky?: boolean;
/** The theme file to use to display the post. */
template?: string;
/** The terms assigned to the post in the category taxonomy. */
categories?: number[];
/** The terms assigned to the post in the post_tag taxonomy. */
tags?: number[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/posts`,
method: "POST",
body: data,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags posts
* @name V2PostsDetail
* @request GET:/wp/v2/posts/{id}
* @secure
*/
v2PostsDetail: (
id: number,
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2PostsDetailParamsContextEnum[];
/**
* Override the default excerpt length.
* @format int64
*/
excerpt_length?: number;
/** The password for the post if it is password protected. */
password?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/posts/${id}`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags posts
* @name V2PostsCreate2
* @request POST:/wp/v2/posts/{id}
* @originalName v2PostsCreate
* @duplicate
* @secure
*/
v2PostsCreate2: (
id: number,
data: {
/**
* The date the post was published, in the site's timezone.
* @format date-time
*/
date?: string;
/**
* The date the post was published, as GMT.
* @format date-time
*/
date_gmt?: string;
/** An alphanumeric identifier for the post unique to its type. */
slug?: string;
/** A named status for the post. */
status?: IStatusEnum1[];
/** A password to protect access to the content and excerpt. */
password?: string;
/** The title for the post. */
title?: string;
/** The content for the post. */
content?: string;
/**
* The ID for the author of the post.
* @format int64
*/
author?: number;
/** The excerpt for the post. */
excerpt?: string;
/**
* The ID of the featured media for the post.
* @format int64
*/
featured_media?: number;
/** Whether or not comments are open on the post. */
comment_status?: ICommentStatusEnum1[];
/** Whether or not the post can be pinged. */
ping_status?: IPingStatusEnum1[];
/** The format for the post. */
format?: IFormatEnum1[];
/** Meta fields. */
meta?: string;
/** Whether or not the post should be treated as sticky. */
sticky?: boolean;
/** The theme file to use to display the post. */
template?: string;
/** The terms assigned to the post in the category taxonomy. */
categories?: number[];
/** The terms assigned to the post in the post_tag taxonomy. */
tags?: number[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/posts/${id}`,
method: "POST",
body: data,
secure: true,
type: ContentType.FormData,
...params,
}),
/**
* No description
*
* @tags posts
* @name V2PostsUpdate
* @request PUT:/wp/v2/posts/{id}
* @secure
*/
v2PostsUpdate: (
id: number,
query?: {
/**
* The date the post was published, in the site's timezone.
* @format date-time
*/
date?: string;
/**
* The date the post was published, as GMT.
* @format date-time
*/
date_gmt?: string;
/** An alphanumeric identifier for the post unique to its type. */
slug?: string;
/** A named status for the post. */
status?: IV2PostsUpdateParamsStatusEnum[];
/** A password to protect access to the content and excerpt. */
password?: string;
/** The title for the post. */
title?: string;
/** The content for the post. */
content?: string;
/**
* The ID for the author of the post.
* @format int64
*/
author?: number;
/** The excerpt for the post. */
excerpt?: string;
/**
* The ID of the featured media for the post.
* @format int64
*/
featured_media?: number;
/** Whether or not comments are open on the post. */
comment_status?: IV2PostsUpdateParamsCommentStatusEnum[];
/** Whether or not the post can be pinged. */
ping_status?: IV2PostsUpdateParamsPingStatusEnum[];
/** The format for the post. */
format?: IV2PostsUpdateParamsFormatEnum[];
/** Meta fields. */
meta?: string;
/** Whether or not the post should be treated as sticky. */
sticky?: boolean;
/** The theme file to use to display the post. */
template?: string;
/** The terms assigned to the post in the category taxonomy. */
categories?: number[];
/** The terms assigned to the post in the post_tag taxonomy. */
tags?: number[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/posts/${id}`,
method: "PUT",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags posts
* @name V2PostsPartialUpdate
* @request PATCH:/wp/v2/posts/{id}
* @secure
*/
v2PostsPartialUpdate: (
id: number,
query?: {
/**
* The date the post was published, in the site's timezone.
* @format date-time
*/
date?: string;
/**
* The date the post was published, as GMT.
* @format date-time
*/
date_gmt?: string;
/** An alphanumeric identifier for the post unique to its type. */
slug?: string;
/** A named status for the post. */
status?: IV2PostsPartialUpdateParamsStatusEnum[];
/** A password to protect access to the content and excerpt. */
password?: string;
/** The title for the post. */
title?: string;
/** The content for the post. */
content?: string;
/**
* The ID for the author of the post.
* @format int64
*/
author?: number;
/** The excerpt for the post. */
excerpt?: string;
/**
* The ID of the featured media for the post.
* @format int64
*/
featured_media?: number;
/** Whether or not comments are open on the post. */
comment_status?: IV2PostsPartialUpdateParamsCommentStatusEnum[];
/** Whether or not the post can be pinged. */
ping_status?: IV2PostsPartialUpdateParamsPingStatusEnum[];
/** The format for the post. */
format?: IV2PostsPartialUpdateParamsFormatEnum[];
/** Meta fields. */
meta?: string;
/** Whether or not the post should be treated as sticky. */
sticky?: boolean;
/** The theme file to use to display the post. */
template?: string;
/** The terms assigned to the post in the category taxonomy. */
categories?: number[];
/** The terms assigned to the post in the post_tag taxonomy. */
tags?: number[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/posts/${id}`,
method: "PATCH",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags posts
* @name V2PostsDelete
* @request DELETE:/wp/v2/posts/{id}
* @secure
*/
v2PostsDelete: (
id: number,
query?: {
/** Whether to bypass Trash and force deletion. */
force?: boolean;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/posts/${id}`,
method: "DELETE",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags posts
* @name V2PostsRevisionsList
* @request GET:/wp/v2/posts/{parent}/revisions
* @secure
*/
v2PostsRevisionsList: (
parent: number,
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2PostsRevisionsListParamsContextEnum[];
/**
* Current page of the collection.
* @format int64
* @min 1
*/
page?: number;
/**
* Maximum number of items to be returned in result set.
* @format int64
* @min 1
* @max 100
*/
per_page?: number;
/** Limit results to those matching a string. */
search?: string;
/** Ensure result set excludes specific IDs. */
exclude?: number[];
/** Limit result set to specific IDs. */
include?: number[];
/**
* Offset the result set by a specific number of items.
* @format int64
*/
offset?: number;
/** Order sort attribute ascending or descending. */
order?: IV2PostsRevisionsListParamsOrderEnum[];
/** Sort collection by object attribute. */
orderby?: IV2PostsRevisionsListParamsOrderbyEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/posts/${parent}/revisions`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags posts
* @name V2PostsDetail2
* @request GET:/wp/v2/posts/{parent}
* @originalName v2PostsDetail
* @duplicate
* @secure
*/
v2PostsDetail2: (
parent: number,
query?: {
/**
* The ID for the autosave.
* @format int64
*/
id?: number;
/** Scope under which the request is made; determines fields present in response. */
context?: IV2PostsDetail2ParamsContextEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/posts/${parent}`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags posts
* @name V2PostsAutosavesList
* @request GET:/wp/v2/posts/{id}/autosaves
* @secure
*/
v2PostsAutosavesList: (
id: number,
query?: {
/**
* The ID for the parent of the autosave.
* @format int64
*/
parent?: number;
/** Scope under which the request is made; determines fields present in response. */
context?: IV2PostsAutosavesListParamsContextEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/posts/${id}/autosaves`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags posts
* @name V2PostsAutosavesCreate
* @request POST:/wp/v2/posts/{id}/autosaves
* @secure
*/
v2PostsAutosavesCreate: (
id: number,
data: {
/**
* The ID for the parent of the autosave.
* @format int64
*/
parent?: number;
/**
* The date the post was published, in the site's timezone.
* @format date-time
*/
date?: string;
/**
* The date the post was published, as GMT.
* @format date-time
*/
date_gmt?: string;
/** An alphanumeric identifier for the post unique to its type. */
slug?: string;
/** A named status for the post. */
status?: IStatusEnum2[];
/** A password to protect access to the content and excerpt. */
password?: string;
/** The title for the post. */
title?: string;
/** The content for the post. */
content?: string;
/**
* The ID for the author of the post.
* @format int64
*/
author?: number;
/** The excerpt for the post. */
excerpt?: string;
/**
* The ID of the featured media for the post.
* @format int64
*/
featured_media?: number;
/** Whether or not comments are open on the post. */
comment_status?: ICommentStatusEnum2[];
/** Whether or not the post can be pinged. */
ping_status?: IPingStatusEnum2[];
/** The format for the post. */
format?: IFormatEnum2[];
/** Meta fields. */
meta?: string;
/** Whether or not the post should be treated as sticky. */
sticky?: boolean;
/** The theme file to use to display the post. */
template?: string;
/** The terms assigned to the post in the category taxonomy. */
categories?: number[];
/** The terms assigned to the post in the post_tag taxonomy. */
tags?: number[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/posts/${id}/autosaves`,
method: "POST",
body: data,
secure: true,
type: ContentType.FormData,
...params,
}),
/**
* No description
*
* @tags pages
* @name V2PagesList
* @request GET:/wp/v2/pages
* @secure
*/
v2PagesList: (
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2PagesListParamsContextEnum[];
/**
* Current page of the collection.
* @format int64
* @min 1
*/
page?: number;
/**
* Maximum number of items to be returned in result set.
* @format int64
* @min 1
* @max 100
*/
per_page?: number;
/** Limit results to those matching a string. */
search?: string;
/**
* Limit response to posts published after a given ISO8601 compliant date.
* @format date-time
*/
after?: string;
/**
* Limit response to posts modified after a given ISO8601 compliant date.
* @format date-time
*/
modified_after?: string;
/** Limit result set to posts assigned to specific authors. */
author?: number[];
/** Ensure result set excludes posts assigned to specific authors. */
author_exclude?: number[];
/**
* Limit response to posts published before a given ISO8601 compliant date.
* @format date-time
*/
before?: string;
/**
* Limit response to posts modified before a given ISO8601 compliant date.
* @format date-time
*/
modified_before?: string;
/** Ensure result set excludes specific IDs. */
exclude?: number[];
/** Limit result set to specific IDs. */
include?: number[];
/**
* Limit result set to posts with a specific menu_order value.
* @format int64
*/
menu_order?: number;
/** How to interpret the search input. */
search_semantics?: IV2PagesListParamsSearchSemanticsEnum[];
/**
* Offset the result set by a specific number of items.
* @format int64
*/
offset?: number;
/** Order sort attribute ascending or descending. */
order?: IV2PagesListParamsOrderEnum[];
/** Sort collection by post attribute. */
orderby?: IV2PagesListParamsOrderbyEnum[];
/** Limit result set to items with particular parent IDs. */
parent?: number[];
/** Limit result set to all items except those of a particular parent ID. */
parent_exclude?: number[];
/** Array of column names to be searched. */
search_columns?: string[];
/** Limit result set to posts with one or more specific slugs. */
slug?: string[];
/** Limit result set to posts assigned one or more statuses. */
status?: string[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/pages`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags pages
* @name V2PagesCreate
* @request POST:/wp/v2/pages
* @secure
*/
v2PagesCreate: (
data: {
/**
* The date the post was published, in the site's timezone.
* @format date-time
*/
date?: string;
/**
* The date the post was published, as GMT.
* @format date-time
*/
date_gmt?: string;
/** An alphanumeric identifier for the post unique to its type. */
slug?: string;
/** A named status for the post. */
status?: IStatusEnum3[];
/** A password to protect access to the content and excerpt. */
password?: string;
/**
* The ID for the parent of the post.
* @format int64
*/
parent?: number;
/** The title for the post. */
title?: string;
/** The content for the post. */
content?: string;
/**
* The ID for the author of the post.
* @format int64
*/
author?: number;
/** The excerpt for the post. */
excerpt?: string;
/**
* The ID of the featured media for the post.
* @format int64
*/
featured_media?: number;
/** Whether or not comments are open on the post. */
comment_status?: ICommentStatusEnum3[];
/** Whether or not the post can be pinged. */
ping_status?: IPingStatusEnum3[];
/**
* The order of the post in relation to other posts.
* @format int64
*/
menu_order?: number;
/** Meta fields. */
meta?: string;
/** The theme file to use to display the post. */
template?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/pages`,
method: "POST",
body: data,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags pages
* @name V2PagesDetail
* @request GET:/wp/v2/pages/{id}
* @secure
*/
v2PagesDetail: (
id: number,
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2PagesDetailParamsContextEnum[];
/**
* Override the default excerpt length.
* @format int64
*/
excerpt_length?: number;
/** The password for the post if it is password protected. */
password?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/pages/${id}`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags pages
* @name V2PagesCreate2
* @request POST:/wp/v2/pages/{id}
* @originalName v2PagesCreate
* @duplicate
* @secure
*/
v2PagesCreate2: (
id: number,
data: {
/**
* The date the post was published, in the site's timezone.
* @format date-time
*/
date?: string;
/**
* The date the post was published, as GMT.
* @format date-time
*/
date_gmt?: string;
/** An alphanumeric identifier for the post unique to its type. */
slug?: string;
/** A named status for the post. */
status?: IStatusEnum4[];
/** A password to protect access to the content and excerpt. */
password?: string;
/**
* The ID for the parent of the post.
* @format int64
*/
parent?: number;
/** The title for the post. */
title?: string;
/** The content for the post. */
content?: string;
/**
* The ID for the author of the post.
* @format int64
*/
author?: number;
/** The excerpt for the post. */
excerpt?: string;
/**
* The ID of the featured media for the post.
* @format int64
*/
featured_media?: number;
/** Whether or not comments are open on the post. */
comment_status?: ICommentStatusEnum4[];
/** Whether or not the post can be pinged. */
ping_status?: IPingStatusEnum4[];
/**
* The order of the post in relation to other posts.
* @format int64
*/
menu_order?: number;
/** Meta fields. */
meta?: string;
/** The theme file to use to display the post. */
template?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/pages/${id}`,
method: "POST",
body: data,
secure: true,
type: ContentType.FormData,
...params,
}),
/**
* No description
*
* @tags pages
* @name V2PagesUpdate
* @request PUT:/wp/v2/pages/{id}
* @secure
*/
v2PagesUpdate: (
id: number,
query?: {
/**
* The date the post was published, in the site's timezone.
* @format date-time
*/
date?: string;
/**
* The date the post was published, as GMT.
* @format date-time
*/
date_gmt?: string;
/** An alphanumeric identifier for the post unique to its type. */
slug?: string;
/** A named status for the post. */
status?: IV2PagesUpdateParamsStatusEnum[];
/** A password to protect access to the content and excerpt. */
password?: string;
/**
* The ID for the parent of the post.
* @format int64
*/
parent?: number;
/** The title for the post. */
title?: string;
/** The content for the post. */
content?: string;
/**
* The ID for the author of the post.
* @format int64
*/
author?: number;
/** The excerpt for the post. */
excerpt?: string;
/**
* The ID of the featured media for the post.
* @format int64
*/
featured_media?: number;
/** Whether or not comments are open on the post. */
comment_status?: IV2PagesUpdateParamsCommentStatusEnum[];
/** Whether or not the post can be pinged. */
ping_status?: IV2PagesUpdateParamsPingStatusEnum[];
/**
* The order of the post in relation to other posts.
* @format int64
*/
menu_order?: number;
/** Meta fields. */
meta?: string;
/** The theme file to use to display the post. */
template?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/pages/${id}`,
method: "PUT",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags pages
* @name V2PagesPartialUpdate
* @request PATCH:/wp/v2/pages/{id}
* @secure
*/
v2PagesPartialUpdate: (
id: number,
query?: {
/**
* The date the post was published, in the site's timezone.
* @format date-time
*/
date?: string;
/**
* The date the post was published, as GMT.
* @format date-time
*/
date_gmt?: string;
/** An alphanumeric identifier for the post unique to its type. */
slug?: string;
/** A named status for the post. */
status?: IV2PagesPartialUpdateParamsStatusEnum[];
/** A password to protect access to the content and excerpt. */
password?: string;
/**
* The ID for the parent of the post.
* @format int64
*/
parent?: number;
/** The title for the post. */
title?: string;
/** The content for the post. */
content?: string;
/**
* The ID for the author of the post.
* @format int64
*/
author?: number;
/** The excerpt for the post. */
excerpt?: string;
/**
* The ID of the featured media for the post.
* @format int64
*/
featured_media?: number;
/** Whether or not comments are open on the post. */
comment_status?: IV2PagesPartialUpdateParamsCommentStatusEnum[];
/** Whether or not the post can be pinged. */
ping_status?: IV2PagesPartialUpdateParamsPingStatusEnum[];
/**
* The order of the post in relation to other posts.
* @format int64
*/
menu_order?: number;
/** Meta fields. */
meta?: string;
/** The theme file to use to display the post. */
template?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/pages/${id}`,
method: "PATCH",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags pages
* @name V2PagesDelete
* @request DELETE:/wp/v2/pages/{id}
* @secure
*/
v2PagesDelete: (
id: number,
query?: {
/** Whether to bypass Trash and force deletion. */
force?: boolean;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/pages/${id}`,
method: "DELETE",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags pages
* @name V2PagesRevisionsList
* @request GET:/wp/v2/pages/{parent}/revisions
* @secure
*/
v2PagesRevisionsList: (
parent: number,
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2PagesRevisionsListParamsContextEnum[];
/**
* Current page of the collection.
* @format int64
* @min 1
*/
page?: number;
/**
* Maximum number of items to be returned in result set.
* @format int64
* @min 1
* @max 100
*/
per_page?: number;
/** Limit results to those matching a string. */
search?: string;
/** Ensure result set excludes specific IDs. */
exclude?: number[];
/** Limit result set to specific IDs. */
include?: number[];
/**
* Offset the result set by a specific number of items.
* @format int64
*/
offset?: number;
/** Order sort attribute ascending or descending. */
order?: IV2PagesRevisionsListParamsOrderEnum[];
/** Sort collection by object attribute. */
orderby?: IV2PagesRevisionsListParamsOrderbyEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/pages/${parent}/revisions`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags pages
* @name V2PagesDetail2
* @request GET:/wp/v2/pages/{parent}
* @originalName v2PagesDetail
* @duplicate
* @secure
*/
v2PagesDetail2: (
parent: number,
query?: {
/**
* The ID for the autosave.
* @format int64
*/
id?: number;
/** Scope under which the request is made; determines fields present in response. */
context?: IV2PagesDetail2ParamsContextEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/pages/${parent}`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags pages
* @name V2PagesAutosavesList
* @request GET:/wp/v2/pages/{id}/autosaves
* @secure
*/
v2PagesAutosavesList: (
id: number,
query?: {
/**
* The ID for the parent of the autosave.
* @format int64
*/
parent?: number;
/** Scope under which the request is made; determines fields present in response. */
context?: IV2PagesAutosavesListParamsContextEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/pages/${id}/autosaves`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags pages
* @name V2PagesAutosavesCreate
* @request POST:/wp/v2/pages/{id}/autosaves
* @secure
*/
v2PagesAutosavesCreate: (
id: number,
data: {
/**
* The ID for the parent of the post.
* @format int64
*/
parent?: number;
/**
* The date the post was published, in the site's timezone.
* @format date-time
*/
date?: string;
/**
* The date the post was published, as GMT.
* @format date-time
*/
date_gmt?: string;
/** An alphanumeric identifier for the post unique to its type. */
slug?: string;
/** A named status for the post. */
status?: IStatusEnum5[];
/** A password to protect access to the content and excerpt. */
password?: string;
/** The title for the post. */
title?: string;
/** The content for the post. */
content?: string;
/**
* The ID for the author of the post.
* @format int64
*/
author?: number;
/** The excerpt for the post. */
excerpt?: string;
/**
* The ID of the featured media for the post.
* @format int64
*/
featured_media?: number;
/** Whether or not comments are open on the post. */
comment_status?: ICommentStatusEnum5[];
/** Whether or not the post can be pinged. */
ping_status?: IPingStatusEnum5[];
/**
* The order of the post in relation to other posts.
* @format int64
*/
menu_order?: number;
/** Meta fields. */
meta?: string;
/** The theme file to use to display the post. */
template?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/pages/${id}/autosaves`,
method: "POST",
body: data,
secure: true,
type: ContentType.FormData,
...params,
}),
/**
* No description
*
* @tags media
* @name V2MediaList
* @request GET:/wp/v2/media
* @secure
*/
v2MediaList: (
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2MediaListParamsContextEnum[];
/**
* Current page of the collection.
* @format int64
* @min 1
*/
page?: number;
/**
* Maximum number of items to be returned in result set.
* @format int64
* @min 1
* @max 100
*/
per_page?: number;
/** Limit results to those matching a string. */
search?: string;
/**
* Limit response to posts published after a given ISO8601 compliant date.
* @format date-time
*/
after?: string;
/**
* Limit response to posts modified after a given ISO8601 compliant date.
* @format date-time
*/
modified_after?: string;
/** Limit result set to posts assigned to specific authors. */
author?: number[];
/** Ensure result set excludes posts assigned to specific authors. */
author_exclude?: number[];
/**
* Limit response to posts published before a given ISO8601 compliant date.
* @format date-time
*/
before?: string;
/**
* Limit response to posts modified before a given ISO8601 compliant date.
* @format date-time
*/
modified_before?: string;
/** Ensure result set excludes specific IDs. */
exclude?: number[];
/** Limit result set to specific IDs. */
include?: number[];
/** How to interpret the search input. */
search_semantics?: IV2MediaListParamsSearchSemanticsEnum[];
/**
* Offset the result set by a specific number of items.
* @format int64
*/
offset?: number;
/** Order sort attribute ascending or descending. */
order?: IV2MediaListParamsOrderEnum[];
/** Sort collection by post attribute. */
orderby?: IV2MediaListParamsOrderbyEnum[];
/** Limit result set to items with particular parent IDs. */
parent?: number[];
/** Limit result set to all items except those of a particular parent ID. */
parent_exclude?: number[];
/** Array of column names to be searched. */
search_columns?: string[];
/** Limit result set to posts with one or more specific slugs. */
slug?: string[];
/** Limit result set to posts assigned one or more statuses. */
status?: string[];
/** Limit result set to attachments of a particular media type. */
media_type?: IV2MediaListParamsMediaTypeEnum[];
/** Limit result set to attachments of a particular MIME type. */
mime_type?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/media`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags media
* @name V2MediaCreate
* @request POST:/wp/v2/media
* @secure
*/
v2MediaCreate: (
data: {
/**
* The date the post was published, in the site's timezone.
* @format date-time
*/
date?: string;
/**
* The date the post was published, as GMT.
* @format date-time
*/
date_gmt?: string;
/** An alphanumeric identifier for the post unique to its type. */
slug?: string;
/** A named status for the post. */
status?: IStatusEnum6[];
/** The title for the post. */
title?: string;
/**
* The ID for the author of the post.
* @format int64
*/
author?: number;
/**
* The ID of the featured media for the post.
* @format int64
*/
featured_media?: number;
/** Whether or not comments are open on the post. */
comment_status?: ICommentStatusEnum6[];
/** Whether or not the post can be pinged. */
ping_status?: IPingStatusEnum6[];
/** Meta fields. */
meta?: string;
/** The theme file to use to display the post. */
template?: string;
/** Alternative text to display when attachment is not displayed. */
alt_text?: string;
/** The attachment caption. */
caption?: string;
/** The attachment description. */
description?: string;
/**
* The ID for the associated post of the attachment.
* @format int64
*/
post?: number;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/media`,
method: "POST",
body: data,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags media
* @name V2MediaDetail
* @request GET:/wp/v2/media/{id}
* @secure
*/
v2MediaDetail: (
id: number,
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2MediaDetailParamsContextEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/media/${id}`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags media
* @name V2MediaCreate2
* @request POST:/wp/v2/media/{id}
* @originalName v2MediaCreate
* @duplicate
* @secure
*/
v2MediaCreate2: (
id: number,
data: {
/**
* The date the post was published, in the site's timezone.
* @format date-time
*/
date?: string;
/**
* The date the post was published, as GMT.
* @format date-time
*/
date_gmt?: string;
/** An alphanumeric identifier for the post unique to its type. */
slug?: string;
/** A named status for the post. */
status?: IStatusEnum7[];
/** The title for the post. */
title?: string;
/**
* The ID for the author of the post.
* @format int64
*/
author?: number;
/**
* The ID of the featured media for the post.
* @format int64
*/
featured_media?: number;
/** Whether or not comments are open on the post. */
comment_status?: ICommentStatusEnum7[];
/** Whether or not the post can be pinged. */
ping_status?: IPingStatusEnum7[];
/** Meta fields. */
meta?: string;
/** The theme file to use to display the post. */
template?: string;
/** Alternative text to display when attachment is not displayed. */
alt_text?: string;
/** The attachment caption. */
caption?: string;
/** The attachment description. */
description?: string;
/**
* The ID for the associated post of the attachment.
* @format int64
*/
post?: number;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/media/${id}`,
method: "POST",
body: data,
secure: true,
type: ContentType.FormData,
...params,
}),
/**
* No description
*
* @tags media
* @name V2MediaUpdate
* @request PUT:/wp/v2/media/{id}
* @secure
*/
v2MediaUpdate: (
id: number,
query?: {
/**
* The date the post was published, in the site's timezone.
* @format date-time
*/
date?: string;
/**
* The date the post was published, as GMT.
* @format date-time
*/
date_gmt?: string;
/** An alphanumeric identifier for the post unique to its type. */
slug?: string;
/** A named status for the post. */
status?: IV2MediaUpdateParamsStatusEnum[];
/** The title for the post. */
title?: string;
/**
* The ID for the author of the post.
* @format int64
*/
author?: number;
/**
* The ID of the featured media for the post.
* @format int64
*/
featured_media?: number;
/** Whether or not comments are open on the post. */
comment_status?: IV2MediaUpdateParamsCommentStatusEnum[];
/** Whether or not the post can be pinged. */
ping_status?: IV2MediaUpdateParamsPingStatusEnum[];
/** Meta fields. */
meta?: string;
/** The theme file to use to display the post. */
template?: string;
/** Alternative text to display when attachment is not displayed. */
alt_text?: string;
/** The attachment caption. */
caption?: string;
/** The attachment description. */
description?: string;
/**
* The ID for the associated post of the attachment.
* @format int64
*/
post?: number;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/media/${id}`,
method: "PUT",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags media
* @name V2MediaPartialUpdate
* @request PATCH:/wp/v2/media/{id}
* @secure
*/
v2MediaPartialUpdate: (
id: number,
query?: {
/**
* The date the post was published, in the site's timezone.
* @format date-time
*/
date?: string;
/**
* The date the post was published, as GMT.
* @format date-time
*/
date_gmt?: string;
/** An alphanumeric identifier for the post unique to its type. */
slug?: string;
/** A named status for the post. */
status?: IV2MediaPartialUpdateParamsStatusEnum[];
/** The title for the post. */
title?: string;
/**
* The ID for the author of the post.
* @format int64
*/
author?: number;
/**
* The ID of the featured media for the post.
* @format int64
*/
featured_media?: number;
/** Whether or not comments are open on the post. */
comment_status?: IV2MediaPartialUpdateParamsCommentStatusEnum[];
/** Whether or not the post can be pinged. */
ping_status?: IV2MediaPartialUpdateParamsPingStatusEnum[];
/** Meta fields. */
meta?: string;
/** The theme file to use to display the post. */
template?: string;
/** Alternative text to display when attachment is not displayed. */
alt_text?: string;
/** The attachment caption. */
caption?: string;
/** The attachment description. */
description?: string;
/**
* The ID for the associated post of the attachment.
* @format int64
*/
post?: number;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/media/${id}`,
method: "PATCH",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags media
* @name V2MediaDelete
* @request DELETE:/wp/v2/media/{id}
* @secure
*/
v2MediaDelete: (
id: number,
query?: {
/** Whether to bypass Trash and force deletion. */
force?: boolean;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/media/${id}`,
method: "DELETE",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags media
* @name V2MediaPostProcessCreate
* @request POST:/wp/v2/media/{id}/post-process
* @secure
*/
v2MediaPostProcessCreate: (
id: number,
data: {
action: IActionEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/media/${id}/post-process`,
method: "POST",
body: data,
secure: true,
type: ContentType.FormData,
...params,
}),
/**
* No description
*
* @tags media
* @name V2MediaEditCreate
* @request POST:/wp/v2/media/{id}/edit
* @secure
*/
v2MediaEditCreate: (
id: number,
data: {
/**
* URL to the edited image file.
* @format uri
*/
src: string;
/** Array of image edits. */
modifiers?: object[];
/**
* The amount to rotate the image clockwise in degrees. DEPRECATED: Use `modifiers` instead.
* @format int64
* @min 0
* @max 360
*/
rotation?: number;
/**
* As a percentage of the image, the x position to start the crop from. DEPRECATED: Use `modifiers` instead.
* @min 0
* @max 100
*/
x?: number;
/**
* As a percentage of the image, the y position to start the crop from. DEPRECATED: Use `modifiers` instead.
* @min 0
* @max 100
*/
y?: number;
/**
* As a percentage of the image, the width to crop the image to. DEPRECATED: Use `modifiers` instead.
* @min 0
* @max 100
*/
width?: number;
/**
* As a percentage of the image, the height to crop the image to. DEPRECATED: Use `modifiers` instead.
* @min 0
* @max 100
*/
height?: number;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/media/${id}/edit`,
method: "POST",
body: data,
secure: true,
type: ContentType.FormData,
...params,
}),
/**
* No description
*
* @tags menu-items
* @name V2MenuItemsList
* @request GET:/wp/v2/menu-items
* @secure
*/
v2MenuItemsList: (
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2MenuItemsListParamsContextEnum[];
/**
* Current page of the collection.
* @format int64
* @min 1
*/
page?: number;
/**
* Maximum number of items to be returned in result set.
* @format int64
* @min 1
* @max 100
*/
per_page?: number;
/** Limit results to those matching a string. */
search?: string;
/**
* Limit response to posts published after a given ISO8601 compliant date.
* @format date-time
*/
after?: string;
/**
* Limit response to posts modified after a given ISO8601 compliant date.
* @format date-time
*/
modified_after?: string;
/**
* Limit response to posts published before a given ISO8601 compliant date.
* @format date-time
*/
before?: string;
/**
* Limit response to posts modified before a given ISO8601 compliant date.
* @format date-time
*/
modified_before?: string;
/** Ensure result set excludes specific IDs. */
exclude?: number[];
/** Limit result set to specific IDs. */
include?: number[];
/** How to interpret the search input. */
search_semantics?: IV2MenuItemsListParamsSearchSemanticsEnum[];
/**
* Offset the result set by a specific number of items.
* @format int64
*/
offset?: number;
/** Order sort attribute ascending or descending. */
order?: IV2MenuItemsListParamsOrderEnum[];
/** Sort collection by object attribute. */
orderby?: IV2MenuItemsListParamsOrderbyEnum[];
/** Array of column names to be searched. */
search_columns?: string[];
/** Limit result set to posts with one or more specific slugs. */
slug?: string[];
/** Limit result set to posts assigned one or more statuses. */
status?: string[];
/** Limit result set based on relationship between multiple taxonomies. */
tax_relation?: IV2MenuItemsListParamsTaxRelationEnum[];
/** Limit result set to items with specific terms assigned in the menus taxonomy. */
menus?: string;
/** Limit result set to items except those with specific terms assigned in the menus taxonomy. */
menus_exclude?: string;
/**
* Limit result set to posts with a specific menu_order value.
* @format int64
*/
menu_order?: number;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/menu-items`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags menu-items
* @name V2MenuItemsCreate
* @request POST:/wp/v2/menu-items
* @secure
*/
v2MenuItemsCreate: (
data: {
/** The title for the object. */
title?: string;
/** The family of objects originally represented, such as "post_type" or "taxonomy". */
type?: ITypeEnum[];
/** A named status for the object. */
status?: IStatusEnum8[];
/**
* The ID for the parent of the object.
* @format int64
* @min 0
*/
parent?: number;
/** Text for the title attribute of the link element for this menu item. */
attr_title?: string;
/** Class names for the link element of this menu item. */
classes?: string[];
/** The description of this menu item. */
description?: string;
/**
* The DB ID of the nav_menu_item that is this item's menu parent, if any, otherwise 0.
* @format int64
* @min 1
*/
menu_order?: number;
/** The type of object originally represented, such as "category", "post", or "attachment". */
object?: string;
/**
* The database ID of the original object this menu item represents, for example the ID for posts or the term_id for categories.
* @format int64
* @min 0
*/
object_id?: number;
/** The target attribute of the link element for this menu item. */
target?: ITargetEnum[];
/**
* The URL to which this menu item points.
* @format uri
*/
url?: string;
/** The XFN relationship expressed in the link of this menu item. */
xfn?: string[];
/**
* The terms assigned to the object in the nav_menu taxonomy.
* @format int64
*/
menus?: number;
/** Meta fields. */
meta?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/menu-items`,
method: "POST",
body: data,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags menu-items
* @name V2MenuItemsDetail
* @request GET:/wp/v2/menu-items/{id}
* @secure
*/
v2MenuItemsDetail: (
id: number,
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2MenuItemsDetailParamsContextEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/menu-items/${id}`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags menu-items
* @name V2MenuItemsCreate2
* @request POST:/wp/v2/menu-items/{id}
* @originalName v2MenuItemsCreate
* @duplicate
* @secure
*/
v2MenuItemsCreate2: (
id: number,
data: {
/** The title for the object. */
title?: string;
/** The family of objects originally represented, such as "post_type" or "taxonomy". */
type?: ITypeEnum1[];
/** A named status for the object. */
status?: IStatusEnum9[];
/**
* The ID for the parent of the object.
* @format int64
* @min 0
*/
parent?: number;
/** Text for the title attribute of the link element for this menu item. */
attr_title?: string;
/** Class names for the link element of this menu item. */
classes?: string[];
/** The description of this menu item. */
description?: string;
/**
* The DB ID of the nav_menu_item that is this item's menu parent, if any, otherwise 0.
* @format int64
* @min 1
*/
menu_order?: number;
/** The type of object originally represented, such as "category", "post", or "attachment". */
object?: string;
/**
* The database ID of the original object this menu item represents, for example the ID for posts or the term_id for categories.
* @format int64
* @min 0
*/
object_id?: number;
/** The target attribute of the link element for this menu item. */
target?: ITargetEnum1[];
/**
* The URL to which this menu item points.
* @format uri
*/
url?: string;
/** The XFN relationship expressed in the link of this menu item. */
xfn?: string[];
/**
* The terms assigned to the object in the nav_menu taxonomy.
* @format int64
*/
menus?: number;
/** Meta fields. */
meta?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/menu-items/${id}`,
method: "POST",
body: data,
secure: true,
type: ContentType.FormData,
...params,
}),
/**
* No description
*
* @tags menu-items
* @name V2MenuItemsUpdate
* @request PUT:/wp/v2/menu-items/{id}
* @secure
*/
v2MenuItemsUpdate: (
id: number,
query?: {
/** The title for the object. */
title?: string;
/** The family of objects originally represented, such as "post_type" or "taxonomy". */
type?: IV2MenuItemsUpdateParamsTypeEnum[];
/** A named status for the object. */
status?: IV2MenuItemsUpdateParamsStatusEnum[];
/**
* The ID for the parent of the object.
* @format int64
* @min 0
*/
parent?: number;
/** Text for the title attribute of the link element for this menu item. */
attr_title?: string;
/** Class names for the link element of this menu item. */
classes?: string[];
/** The description of this menu item. */
description?: string;
/**
* The DB ID of the nav_menu_item that is this item's menu parent, if any, otherwise 0.
* @format int64
* @min 1
*/
menu_order?: number;
/** The type of object originally represented, such as "category", "post", or "attachment". */
object?: string;
/**
* The database ID of the original object this menu item represents, for example the ID for posts or the term_id for categories.
* @format int64
* @min 0
*/
object_id?: number;
/** The target attribute of the link element for this menu item. */
target?: IV2MenuItemsUpdateParamsTargetEnum[];
/**
* The URL to which this menu item points.
* @format uri
*/
url?: string;
/** The XFN relationship expressed in the link of this menu item. */
xfn?: string[];
/**
* The terms assigned to the object in the nav_menu taxonomy.
* @format int64
*/
menus?: number;
/** Meta fields. */
meta?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/menu-items/${id}`,
method: "PUT",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags menu-items
* @name V2MenuItemsPartialUpdate
* @request PATCH:/wp/v2/menu-items/{id}
* @secure
*/
v2MenuItemsPartialUpdate: (
id: number,
query?: {
/** The title for the object. */
title?: string;
/** The family of objects originally represented, such as "post_type" or "taxonomy". */
type?: IV2MenuItemsPartialUpdateParamsTypeEnum[];
/** A named status for the object. */
status?: IV2MenuItemsPartialUpdateParamsStatusEnum[];
/**
* The ID for the parent of the object.
* @format int64
* @min 0
*/
parent?: number;
/** Text for the title attribute of the link element for this menu item. */
attr_title?: string;
/** Class names for the link element of this menu item. */
classes?: string[];
/** The description of this menu item. */
description?: string;
/**
* The DB ID of the nav_menu_item that is this item's menu parent, if any, otherwise 0.
* @format int64
* @min 1
*/
menu_order?: number;
/** The type of object originally represented, such as "category", "post", or "attachment". */
object?: string;
/**
* The database ID of the original object this menu item represents, for example the ID for posts or the term_id for categories.
* @format int64
* @min 0
*/
object_id?: number;
/** The target attribute of the link element for this menu item. */
target?: IV2MenuItemsPartialUpdateParamsTargetEnum[];
/**
* The URL to which this menu item points.
* @format uri
*/
url?: string;
/** The XFN relationship expressed in the link of this menu item. */
xfn?: string[];
/**
* The terms assigned to the object in the nav_menu taxonomy.
* @format int64
*/
menus?: number;
/** Meta fields. */
meta?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/menu-items/${id}`,
method: "PATCH",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags menu-items
* @name V2MenuItemsDelete
* @request DELETE:/wp/v2/menu-items/{id}
* @secure
*/
v2MenuItemsDelete: (
id: number,
query?: {
/** Whether to bypass Trash and force deletion. */
force?: boolean;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/menu-items/${id}`,
method: "DELETE",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags menu-items
* @name V2MenuItemsAutosavesList
* @request GET:/wp/v2/menu-items/{id}/autosaves
* @secure
*/
v2MenuItemsAutosavesList: (
id: number,
query?: {
/**
* The ID for the parent of the autosave.
* @format int64
*/
parent?: number;
/** Scope under which the request is made; determines fields present in response. */
context?: IV2MenuItemsAutosavesListParamsContextEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/menu-items/${id}/autosaves`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags menu-items
* @name V2MenuItemsAutosavesCreate
* @request POST:/wp/v2/menu-items/{id}/autosaves
* @secure
*/
v2MenuItemsAutosavesCreate: (
id: number,
data: {
/**
* The ID for the parent of the object.
* @format int64
* @min 0
*/
parent?: number;
/** The title for the object. */
title?: string;
/** The family of objects originally represented, such as "post_type" or "taxonomy". */
type?: ITypeEnum2[];
/** A named status for the object. */
status?: IStatusEnum10[];
/** Text for the title attribute of the link element for this menu item. */
attr_title?: string;
/** Class names for the link element of this menu item. */
classes?: string[];
/** The description of this menu item. */
description?: string;
/**
* The DB ID of the nav_menu_item that is this item's menu parent, if any, otherwise 0.
* @format int64
* @min 1
*/
menu_order?: number;
/** The type of object originally represented, such as "category", "post", or "attachment". */
object?: string;
/**
* The database ID of the original object this menu item represents, for example the ID for posts or the term_id for categories.
* @format int64
* @min 0
*/
object_id?: number;
/** The target attribute of the link element for this menu item. */
target?: ITargetEnum2[];
/**
* The URL to which this menu item points.
* @format uri
*/
url?: string;
/** The XFN relationship expressed in the link of this menu item. */
xfn?: string[];
/**
* The terms assigned to the object in the nav_menu taxonomy.
* @format int64
*/
menus?: number;
/** Meta fields. */
meta?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/menu-items/${id}/autosaves`,
method: "POST",
body: data,
secure: true,
type: ContentType.FormData,
...params,
}),
/**
* No description
*
* @tags menu-items
* @name V2MenuItemsDetail2
* @request GET:/wp/v2/menu-items/{parent}
* @originalName v2MenuItemsDetail
* @duplicate
* @secure
*/
v2MenuItemsDetail2: (
parent: number,
query?: {
/**
* The ID for the autosave.
* @format int64
*/
id?: number;
/** Scope under which the request is made; determines fields present in response. */
context?: IV2MenuItemsDetail2ParamsContextEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/menu-items/${parent}`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags blocks
* @name V2BlocksList
* @request GET:/wp/v2/blocks
* @secure
*/
v2BlocksList: (
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2BlocksListParamsContextEnum[];
/**
* Current page of the collection.
* @format int64
* @min 1
*/
page?: number;
/**
* Maximum number of items to be returned in result set.
* @format int64
* @min 1
* @max 100
*/
per_page?: number;
/** Limit results to those matching a string. */
search?: string;
/**
* Limit response to posts published after a given ISO8601 compliant date.
* @format date-time
*/
after?: string;
/**
* Limit response to posts modified after a given ISO8601 compliant date.
* @format date-time
*/
modified_after?: string;
/**
* Limit response to posts published before a given ISO8601 compliant date.
* @format date-time
*/
before?: string;
/**
* Limit response to posts modified before a given ISO8601 compliant date.
* @format date-time
*/
modified_before?: string;
/** Ensure result set excludes specific IDs. */
exclude?: number[];
/** Limit result set to specific IDs. */
include?: number[];
/** How to interpret the search input. */
search_semantics?: IV2BlocksListParamsSearchSemanticsEnum[];
/**
* Offset the result set by a specific number of items.
* @format int64
*/
offset?: number;
/** Order sort attribute ascending or descending. */
order?: IV2BlocksListParamsOrderEnum[];
/** Sort collection by post attribute. */
orderby?: IV2BlocksListParamsOrderbyEnum[];
/** Array of column names to be searched. */
search_columns?: string[];
/** Limit result set to posts with one or more specific slugs. */
slug?: string[];
/** Limit result set to posts assigned one or more statuses. */
status?: string[];
/** Limit result set based on relationship between multiple taxonomies. */
tax_relation?: IV2BlocksListParamsTaxRelationEnum[];
/** Limit result set to items with specific terms assigned in the wp_pattern_category taxonomy. */
wp_pattern_category?: string;
/** Limit result set to items except those with specific terms assigned in the wp_pattern_category taxonomy. */
wp_pattern_category_exclude?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/blocks`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags blocks
* @name V2BlocksCreate
* @request POST:/wp/v2/blocks
* @secure
*/
v2BlocksCreate: (
data: {
/**
* The date the post was published, in the site's timezone.
* @format date-time
*/
date?: string;
/**
* The date the post was published, as GMT.
* @format date-time
*/
date_gmt?: string;
/** An alphanumeric identifier for the post unique to its type. */
slug?: string;
/** A named status for the post. */
status?: IStatusEnum11[];
/** A password to protect access to the content and excerpt. */
password?: string;
/** The title for the post. */
title?: string;
/** The content for the post. */
content?: string;
/** The excerpt for the post. */
excerpt?: string;
/** Meta fields. */
meta?: string;
/** The theme file to use to display the post. */
template?: string;
/** The terms assigned to the post in the wp_pattern_category taxonomy. */
wp_pattern_category?: number[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/blocks`,
method: "POST",
body: data,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags blocks
* @name V2BlocksDetail
* @request GET:/wp/v2/blocks/{id}
* @secure
*/
v2BlocksDetail: (
id: number,
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2BlocksDetailParamsContextEnum[];
/**
* Override the default excerpt length.
* @format int64
*/
excerpt_length?: number;
/** The password for the post if it is password protected. */
password?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/blocks/${id}`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags blocks
* @name V2BlocksCreate2
* @request POST:/wp/v2/blocks/{id}
* @originalName v2BlocksCreate
* @duplicate
* @secure
*/
v2BlocksCreate2: (
id: number,
data: {
/**
* The date the post was published, in the site's timezone.
* @format date-time
*/
date?: string;
/**
* The date the post was published, as GMT.
* @format date-time
*/
date_gmt?: string;
/** An alphanumeric identifier for the post unique to its type. */
slug?: string;
/** A named status for the post. */
status?: IStatusEnum12[];
/** A password to protect access to the content and excerpt. */
password?: string;
/** The title for the post. */
title?: string;
/** The content for the post. */
content?: string;
/** The excerpt for the post. */
excerpt?: string;
/** Meta fields. */
meta?: string;
/** The theme file to use to display the post. */
template?: string;
/** The terms assigned to the post in the wp_pattern_category taxonomy. */
wp_pattern_category?: number[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/blocks/${id}`,
method: "POST",
body: data,
secure: true,
type: ContentType.FormData,
...params,
}),
/**
* No description
*
* @tags blocks
* @name V2BlocksUpdate
* @request PUT:/wp/v2/blocks/{id}
* @secure
*/
v2BlocksUpdate: (
id: number,
query?: {
/**
* The date the post was published, in the site's timezone.
* @format date-time
*/
date?: string;
/**
* The date the post was published, as GMT.
* @format date-time
*/
date_gmt?: string;
/** An alphanumeric identifier for the post unique to its type. */
slug?: string;
/** A named status for the post. */
status?: IV2BlocksUpdateParamsStatusEnum[];
/** A password to protect access to the content and excerpt. */
password?: string;
/** The title for the post. */
title?: string;
/** The content for the post. */
content?: string;
/** The excerpt for the post. */
excerpt?: string;
/** Meta fields. */
meta?: string;
/** The theme file to use to display the post. */
template?: string;
/** The terms assigned to the post in the wp_pattern_category taxonomy. */
wp_pattern_category?: number[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/blocks/${id}`,
method: "PUT",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags blocks
* @name V2BlocksPartialUpdate
* @request PATCH:/wp/v2/blocks/{id}
* @secure
*/
v2BlocksPartialUpdate: (
id: number,
query?: {
/**
* The date the post was published, in the site's timezone.
* @format date-time
*/
date?: string;
/**
* The date the post was published, as GMT.
* @format date-time
*/
date_gmt?: string;
/** An alphanumeric identifier for the post unique to its type. */
slug?: string;
/** A named status for the post. */
status?: IV2BlocksPartialUpdateParamsStatusEnum[];
/** A password to protect access to the content and excerpt. */
password?: string;
/** The title for the post. */
title?: string;
/** The content for the post. */
content?: string;
/** The excerpt for the post. */
excerpt?: string;
/** Meta fields. */
meta?: string;
/** The theme file to use to display the post. */
template?: string;
/** The terms assigned to the post in the wp_pattern_category taxonomy. */
wp_pattern_category?: number[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/blocks/${id}`,
method: "PATCH",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags blocks
* @name V2BlocksDelete
* @request DELETE:/wp/v2/blocks/{id}
* @secure
*/
v2BlocksDelete: (
id: number,
query?: {
/** Whether to bypass Trash and force deletion. */
force?: boolean;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/blocks/${id}`,
method: "DELETE",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags blocks
* @name V2BlocksRevisionsList
* @request GET:/wp/v2/blocks/{parent}/revisions
* @secure
*/
v2BlocksRevisionsList: (
parent: number,
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2BlocksRevisionsListParamsContextEnum[];
/**
* Current page of the collection.
* @format int64
* @min 1
*/
page?: number;
/**
* Maximum number of items to be returned in result set.
* @format int64
* @min 1
* @max 100
*/
per_page?: number;
/** Limit results to those matching a string. */
search?: string;
/** Ensure result set excludes specific IDs. */
exclude?: number[];
/** Limit result set to specific IDs. */
include?: number[];
/**
* Offset the result set by a specific number of items.
* @format int64
*/
offset?: number;
/** Order sort attribute ascending or descending. */
order?: IV2BlocksRevisionsListParamsOrderEnum[];
/** Sort collection by object attribute. */
orderby?: IV2BlocksRevisionsListParamsOrderbyEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/blocks/${parent}/revisions`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags blocks
* @name V2BlocksDetail2
* @request GET:/wp/v2/blocks/{parent}
* @originalName v2BlocksDetail
* @duplicate
* @secure
*/
v2BlocksDetail2: (
parent: number,
query?: {
/**
* The ID for the autosave.
* @format int64
*/
id?: number;
/** Scope under which the request is made; determines fields present in response. */
context?: IV2BlocksDetail2ParamsContextEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/blocks/${parent}`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags blocks
* @name V2BlocksAutosavesList
* @request GET:/wp/v2/blocks/{id}/autosaves
* @secure
*/
v2BlocksAutosavesList: (
id: number,
query?: {
/**
* The ID for the parent of the autosave.
* @format int64
*/
parent?: number;
/** Scope under which the request is made; determines fields present in response. */
context?: IV2BlocksAutosavesListParamsContextEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/blocks/${id}/autosaves`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags blocks
* @name V2BlocksAutosavesCreate
* @request POST:/wp/v2/blocks/{id}/autosaves
* @secure
*/
v2BlocksAutosavesCreate: (
id: number,
data: {
/**
* The ID for the parent of the autosave.
* @format int64
*/
parent?: number;
/**
* The date the post was published, in the site's timezone.
* @format date-time
*/
date?: string;
/**
* The date the post was published, as GMT.
* @format date-time
*/
date_gmt?: string;
/** An alphanumeric identifier for the post unique to its type. */
slug?: string;
/** A named status for the post. */
status?: IStatusEnum13[];
/** A password to protect access to the content and excerpt. */
password?: string;
/** The title for the post. */
title?: string;
/** The content for the post. */
content?: string;
/** The excerpt for the post. */
excerpt?: string;
/** Meta fields. */
meta?: string;
/** The theme file to use to display the post. */
template?: string;
/** The terms assigned to the post in the wp_pattern_category taxonomy. */
wp_pattern_category?: number[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/blocks/${id}/autosaves`,
method: "POST",
body: data,
secure: true,
type: ContentType.FormData,
...params,
}),
/**
* No description
*
* @tags templates
* @name V2TemplatesRevisionsList
* @request GET:/wp/v2/templates/{parent}/revisions
* @secure
*/
v2TemplatesRevisionsList: (
parent: string,
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2TemplatesRevisionsListParamsContextEnum[];
/**
* Current page of the collection.
* @format int64
* @min 1
*/
page?: number;
/**
* Maximum number of items to be returned in result set.
* @format int64
* @min 1
* @max 100
*/
per_page?: number;
/** Limit results to those matching a string. */
search?: string;
/** Ensure result set excludes specific IDs. */
exclude?: number[];
/** Limit result set to specific IDs. */
include?: number[];
/**
* Offset the result set by a specific number of items.
* @format int64
*/
offset?: number;
/** Order sort attribute ascending or descending. */
order?: IV2TemplatesRevisionsListParamsOrderEnum[];
/** Sort collection by object attribute. */
orderby?: IV2TemplatesRevisionsListParamsOrderbyEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/templates/${parent}/revisions`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags templates
* @name V2TemplatesDetail
* @request GET:/wp/v2/templates/{parent}
* @secure
*/
v2TemplatesDetail: (
parent: string,
query?: {
/**
* The ID for the autosave.
* @format int64
*/
id?: number;
/** Scope under which the request is made; determines fields present in response. */
context?: IV2TemplatesDetailParamsContextEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/templates/${parent}`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags templates
* @name V2TemplatesAutosavesList
* @request GET:/wp/v2/templates/{id}/autosaves
* @secure
*/
v2TemplatesAutosavesList: (
id: string,
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2TemplatesAutosavesListParamsContextEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/templates/${id}/autosaves`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags templates
* @name V2TemplatesAutosavesCreate
* @request POST:/wp/v2/templates/{id}/autosaves
* @secure
*/
v2TemplatesAutosavesCreate: (
id: string,
data: {
/** Unique slug identifying the template. */
slug?: string;
/** Theme identifier for the template. */
theme?: string;
/** Type of template. */
type?: string;
/** Content of template. */
content?: string;
/** Title of template. */
title?: string;
/** Description of template. */
description?: string;
/** Status of template. */
status?: IStatusEnum14[];
/**
* The ID for the author of the template.
* @format int64
*/
author?: number;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/templates/${id}/autosaves`,
method: "POST",
body: data,
secure: true,
type: ContentType.FormData,
...params,
}),
/**
* No description
*
* @tags templates
* @name V2TemplatesList
* @request GET:/wp/v2/templates
* @secure
*/
v2TemplatesList: (
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2TemplatesListParamsContextEnum[];
/**
* Limit to the specified post id.
* @format int64
*/
wp_id?: number;
/** Limit to the specified template part area. */
area?: string;
/** Post type to get the templates for. */
post_type?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/templates`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags templates
* @name V2TemplatesCreate
* @request POST:/wp/v2/templates
* @secure
*/
v2TemplatesCreate: (
data: {
/** Unique slug identifying the template. */
slug: string;
/** Theme identifier for the template. */
theme?: string;
/** Type of template. */
type?: string;
/** Content of template. */
content?: string;
/** Title of template. */
title?: string;
/** Description of template. */
description?: string;
/** Status of template. */
status?: IStatusEnum15[];
/**
* The ID for the author of the template.
* @format int64
*/
author?: number;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/templates`,
method: "POST",
body: data,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags templates
* @name V2TemplatesLookupList
* @request GET:/wp/v2/templates/lookup
* @secure
*/
v2TemplatesLookupList: (
query: {
/** The slug of the template to get the fallback for */
slug: string;
/** Indicates if a template is custom or part of the template hierarchy */
is_custom?: boolean;
/** The template prefix for the created template. This is used to extract the main template type, e.g. in `taxonomy-books` extracts the `taxonomy` */
template_prefix?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/templates/lookup`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags templates
* @name V2TemplatesDetail2
* @request GET:/wp/v2/templates/{id}
* @originalName v2TemplatesDetail
* @duplicate
* @secure
*/
v2TemplatesDetail2: (
id: string,
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2TemplatesDetail2ParamsContextEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/templates/${id}`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags templates
* @name V2TemplatesCreate2
* @request POST:/wp/v2/templates/{id}
* @originalName v2TemplatesCreate
* @duplicate
* @secure
*/
v2TemplatesCreate2: (
id: string,
data: {
/** Unique slug identifying the template. */
slug?: string;
/** Theme identifier for the template. */
theme?: string;
/** Type of template. */
type?: string;
/** Content of template. */
content?: string;
/** Title of template. */
title?: string;
/** Description of template. */
description?: string;
/** Status of template. */
status?: IStatusEnum16[];
/**
* The ID for the author of the template.
* @format int64
*/
author?: number;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/templates/${id}`,
method: "POST",
body: data,
secure: true,
type: ContentType.FormData,
...params,
}),
/**
* No description
*
* @tags templates
* @name V2TemplatesUpdate
* @request PUT:/wp/v2/templates/{id}
* @secure
*/
v2TemplatesUpdate: (
id: string,
query?: {
/** Unique slug identifying the template. */
slug?: string;
/** Theme identifier for the template. */
theme?: string;
/** Type of template. */
type?: string;
/** Content of template. */
content?: string;
/** Title of template. */
title?: string;
/** Description of template. */
description?: string;
/** Status of template. */
status?: IV2TemplatesUpdateParamsStatusEnum[];
/**
* The ID for the author of the template.
* @format int64
*/
author?: number;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/templates/${id}`,
method: "PUT",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags templates
* @name V2TemplatesPartialUpdate
* @request PATCH:/wp/v2/templates/{id}
* @secure
*/
v2TemplatesPartialUpdate: (
id: string,
query?: {
/** Unique slug identifying the template. */
slug?: string;
/** Theme identifier for the template. */
theme?: string;
/** Type of template. */
type?: string;
/** Content of template. */
content?: string;
/** Title of template. */
title?: string;
/** Description of template. */
description?: string;
/** Status of template. */
status?: IV2TemplatesPartialUpdateParamsStatusEnum[];
/**
* The ID for the author of the template.
* @format int64
*/
author?: number;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/templates/${id}`,
method: "PATCH",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags templates
* @name V2TemplatesDelete
* @request DELETE:/wp/v2/templates/{id}
* @secure
*/
v2TemplatesDelete: (
id: string,
query?: {
/** Whether to bypass Trash and force deletion. */
force?: boolean;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/templates/${id}`,
method: "DELETE",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags template-parts
* @name V2TemplatePartsRevisionsList
* @request GET:/wp/v2/template-parts/{parent}/revisions
* @secure
*/
v2TemplatePartsRevisionsList: (
parent: string,
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2TemplatePartsRevisionsListParamsContextEnum[];
/**
* Current page of the collection.
* @format int64
* @min 1
*/
page?: number;
/**
* Maximum number of items to be returned in result set.
* @format int64
* @min 1
* @max 100
*/
per_page?: number;
/** Limit results to those matching a string. */
search?: string;
/** Ensure result set excludes specific IDs. */
exclude?: number[];
/** Limit result set to specific IDs. */
include?: number[];
/**
* Offset the result set by a specific number of items.
* @format int64
*/
offset?: number;
/** Order sort attribute ascending or descending. */
order?: IV2TemplatePartsRevisionsListParamsOrderEnum[];
/** Sort collection by object attribute. */
orderby?: IV2TemplatePartsRevisionsListParamsOrderbyEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/template-parts/${parent}/revisions`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags template-parts
* @name V2TemplatePartsDetail
* @request GET:/wp/v2/template-parts/{parent}
* @secure
*/
v2TemplatePartsDetail: (
parent: string,
query?: {
/**
* The ID for the autosave.
* @format int64
*/
id?: number;
/** Scope under which the request is made; determines fields present in response. */
context?: IV2TemplatePartsDetailParamsContextEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/template-parts/${parent}`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags template-parts
* @name V2TemplatePartsAutosavesList
* @request GET:/wp/v2/template-parts/{id}/autosaves
* @secure
*/
v2TemplatePartsAutosavesList: (
id: string,
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2TemplatePartsAutosavesListParamsContextEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/template-parts/${id}/autosaves`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags template-parts
* @name V2TemplatePartsAutosavesCreate
* @request POST:/wp/v2/template-parts/{id}/autosaves
* @secure
*/
v2TemplatePartsAutosavesCreate: (
id: string,
data: {
/** Unique slug identifying the template. */
slug?: string;
/** Theme identifier for the template. */
theme?: string;
/** Type of template. */
type?: string;
/** Content of template. */
content?: string;
/** Title of template. */
title?: string;
/** Description of template. */
description?: string;
/** Status of template. */
status?: IStatusEnum17[];
/**
* The ID for the author of the template.
* @format int64
*/
author?: number;
/** Where the template part is intended for use (header, footer, etc.) */
area?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/template-parts/${id}/autosaves`,
method: "POST",
body: data,
secure: true,
type: ContentType.FormData,
...params,
}),
/**
* No description
*
* @tags template-parts
* @name V2TemplatePartsList
* @request GET:/wp/v2/template-parts
* @secure
*/
v2TemplatePartsList: (
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2TemplatePartsListParamsContextEnum[];
/**
* Limit to the specified post id.
* @format int64
*/
wp_id?: number;
/** Limit to the specified template part area. */
area?: string;
/** Post type to get the templates for. */
post_type?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/template-parts`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags template-parts
* @name V2TemplatePartsCreate
* @request POST:/wp/v2/template-parts
* @secure
*/
v2TemplatePartsCreate: (
data: {
/** Unique slug identifying the template. */
slug: string;
/** Theme identifier for the template. */
theme?: string;
/** Type of template. */
type?: string;
/** Content of template. */
content?: string;
/** Title of template. */
title?: string;
/** Description of template. */
description?: string;
/** Status of template. */
status?: IStatusEnum18[];
/**
* The ID for the author of the template.
* @format int64
*/
author?: number;
/** Where the template part is intended for use (header, footer, etc.) */
area?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/template-parts`,
method: "POST",
body: data,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags template-parts
* @name V2TemplatePartsLookupList
* @request GET:/wp/v2/template-parts/lookup
* @secure
*/
v2TemplatePartsLookupList: (
query: {
/** The slug of the template to get the fallback for */
slug: string;
/** Indicates if a template is custom or part of the template hierarchy */
is_custom?: boolean;
/** The template prefix for the created template. This is used to extract the main template type, e.g. in `taxonomy-books` extracts the `taxonomy` */
template_prefix?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/template-parts/lookup`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags template-parts
* @name V2TemplatePartsDetail2
* @request GET:/wp/v2/template-parts/{id}
* @originalName v2TemplatePartsDetail
* @duplicate
* @secure
*/
v2TemplatePartsDetail2: (
id: string,
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2TemplatePartsDetail2ParamsContextEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/template-parts/${id}`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags template-parts
* @name V2TemplatePartsCreate2
* @request POST:/wp/v2/template-parts/{id}
* @originalName v2TemplatePartsCreate
* @duplicate
* @secure
*/
v2TemplatePartsCreate2: (
id: string,
data: {
/** Unique slug identifying the template. */
slug?: string;
/** Theme identifier for the template. */
theme?: string;
/** Type of template. */
type?: string;
/** Content of template. */
content?: string;
/** Title of template. */
title?: string;
/** Description of template. */
description?: string;
/** Status of template. */
status?: IStatusEnum19[];
/**
* The ID for the author of the template.
* @format int64
*/
author?: number;
/** Where the template part is intended for use (header, footer, etc.) */
area?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/template-parts/${id}`,
method: "POST",
body: data,
secure: true,
type: ContentType.FormData,
...params,
}),
/**
* No description
*
* @tags template-parts
* @name V2TemplatePartsUpdate
* @request PUT:/wp/v2/template-parts/{id}
* @secure
*/
v2TemplatePartsUpdate: (
id: string,
query?: {
/** Unique slug identifying the template. */
slug?: string;
/** Theme identifier for the template. */
theme?: string;
/** Type of template. */
type?: string;
/** Content of template. */
content?: string;
/** Title of template. */
title?: string;
/** Description of template. */
description?: string;
/** Status of template. */
status?: IV2TemplatePartsUpdateParamsStatusEnum[];
/**
* The ID for the author of the template.
* @format int64
*/
author?: number;
/** Where the template part is intended for use (header, footer, etc.) */
area?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/template-parts/${id}`,
method: "PUT",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags template-parts
* @name V2TemplatePartsPartialUpdate
* @request PATCH:/wp/v2/template-parts/{id}
* @secure
*/
v2TemplatePartsPartialUpdate: (
id: string,
query?: {
/** Unique slug identifying the template. */
slug?: string;
/** Theme identifier for the template. */
theme?: string;
/** Type of template. */
type?: string;
/** Content of template. */
content?: string;
/** Title of template. */
title?: string;
/** Description of template. */
description?: string;
/** Status of template. */
status?: IV2TemplatePartsPartialUpdateParamsStatusEnum[];
/**
* The ID for the author of the template.
* @format int64
*/
author?: number;
/** Where the template part is intended for use (header, footer, etc.) */
area?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/template-parts/${id}`,
method: "PATCH",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags template-parts
* @name V2TemplatePartsDelete
* @request DELETE:/wp/v2/template-parts/{id}
* @secure
*/
v2TemplatePartsDelete: (
id: string,
query?: {
/** Whether to bypass Trash and force deletion. */
force?: boolean;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/template-parts/${id}`,
method: "DELETE",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags global-styles
* @name V2GlobalStylesRevisionsList
* @request GET:/wp/v2/global-styles/{parent}/revisions
* @secure
*/
v2GlobalStylesRevisionsList: (
parent: number,
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2GlobalStylesRevisionsListParamsContextEnum[];
/**
* Current page of the collection.
* @format int64
* @min 1
*/
page?: number;
/**
* Maximum number of items to be returned in result set.
* @format int64
* @min 1
* @max 100
*/
per_page?: number;
/**
* Offset the result set by a specific number of items.
* @format int64
*/
offset?: number;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/global-styles/${parent}/revisions`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags global-styles
* @name V2GlobalStylesDetail
* @request GET:/wp/v2/global-styles/{parent}
* @secure
*/
v2GlobalStylesDetail: (
parent: number,
query?: {
/**
* Unique identifier for the global styles revision.
* @format int64
*/
id?: number;
/** Scope under which the request is made; determines fields present in response. */
context?: IV2GlobalStylesDetailParamsContextEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/global-styles/${parent}`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags global-styles
* @name V2GlobalStylesThemesVariationsList
* @request GET:/wp/v2/global-styles/themes/{stylesheet}/variations
* @secure
*/
v2GlobalStylesThemesVariationsList: (
stylesheet: string,
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/global-styles/themes/${stylesheet}/variations`,
method: "GET",
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags global-styles
* @name V2GlobalStylesThemesDetail
* @request GET:/wp/v2/global-styles/themes/{stylesheet}
* @secure
*/
v2GlobalStylesThemesDetail: (
stylesheet: string,
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/global-styles/themes/${stylesheet}`,
method: "GET",
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags global-styles
* @name V2GlobalStylesDetail2
* @request GET:/wp/v2/global-styles/{id}
* @originalName v2GlobalStylesDetail
* @duplicate
* @secure
*/
v2GlobalStylesDetail2: (id: string, params: RequestParams = {}) =>
this.request<void, void>({
path: `/wp/v2/global-styles/${id}`,
method: "GET",
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags global-styles
* @name V2GlobalStylesCreate
* @request POST:/wp/v2/global-styles/{id}
* @secure
*/
v2GlobalStylesCreate: (
id: string,
data: {
/** Global styles. */
styles?: string;
/** Global settings. */
settings?: string;
/** Title of the global styles variation. */
title?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/global-styles/${id}`,
method: "POST",
body: data,
secure: true,
type: ContentType.FormData,
...params,
}),
/**
* No description
*
* @tags global-styles
* @name V2GlobalStylesUpdate
* @request PUT:/wp/v2/global-styles/{id}
* @secure
*/
v2GlobalStylesUpdate: (
id: string,
query?: {
/** Global styles. */
styles?: string;
/** Global settings. */
settings?: string;
/** Title of the global styles variation. */
title?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/global-styles/${id}`,
method: "PUT",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags global-styles
* @name V2GlobalStylesPartialUpdate
* @request PATCH:/wp/v2/global-styles/{id}
* @secure
*/
v2GlobalStylesPartialUpdate: (
id: string,
query?: {
/** Global styles. */
styles?: string;
/** Global settings. */
settings?: string;
/** Title of the global styles variation. */
title?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/global-styles/${id}`,
method: "PATCH",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags navigation
* @name V2NavigationList
* @request GET:/wp/v2/navigation
* @secure
*/
v2NavigationList: (
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2NavigationListParamsContextEnum[];
/**
* Current page of the collection.
* @format int64
* @min 1
*/
page?: number;
/**
* Maximum number of items to be returned in result set.
* @format int64
* @min 1
* @max 100
*/
per_page?: number;
/** Limit results to those matching a string. */
search?: string;
/**
* Limit response to posts published after a given ISO8601 compliant date.
* @format date-time
*/
after?: string;
/**
* Limit response to posts modified after a given ISO8601 compliant date.
* @format date-time
*/
modified_after?: string;
/**
* Limit response to posts published before a given ISO8601 compliant date.
* @format date-time
*/
before?: string;
/**
* Limit response to posts modified before a given ISO8601 compliant date.
* @format date-time
*/
modified_before?: string;
/** Ensure result set excludes specific IDs. */
exclude?: number[];
/** Limit result set to specific IDs. */
include?: number[];
/** How to interpret the search input. */
search_semantics?: IV2NavigationListParamsSearchSemanticsEnum[];
/**
* Offset the result set by a specific number of items.
* @format int64
*/
offset?: number;
/** Order sort attribute ascending or descending. */
order?: IV2NavigationListParamsOrderEnum[];
/** Sort collection by post attribute. */
orderby?: IV2NavigationListParamsOrderbyEnum[];
/** Array of column names to be searched. */
search_columns?: string[];
/** Limit result set to posts with one or more specific slugs. */
slug?: string[];
/** Limit result set to posts assigned one or more statuses. */
status?: string[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/navigation`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags navigation
* @name V2NavigationCreate
* @request POST:/wp/v2/navigation
* @secure
*/
v2NavigationCreate: (
data: {
/**
* The date the post was published, in the site's timezone.
* @format date-time
*/
date?: string;
/**
* The date the post was published, as GMT.
* @format date-time
*/
date_gmt?: string;
/** An alphanumeric identifier for the post unique to its type. */
slug?: string;
/** A named status for the post. */
status?: IStatusEnum20[];
/** A password to protect access to the content and excerpt. */
password?: string;
/** The title for the post. */
title?: string;
/** The content for the post. */
content?: string;
/** The theme file to use to display the post. */
template?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/navigation`,
method: "POST",
body: data,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags navigation
* @name V2NavigationDetail
* @request GET:/wp/v2/navigation/{id}
* @secure
*/
v2NavigationDetail: (
id: number,
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2NavigationDetailParamsContextEnum[];
/** The password for the post if it is password protected. */
password?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/navigation/${id}`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags navigation
* @name V2NavigationCreate2
* @request POST:/wp/v2/navigation/{id}
* @originalName v2NavigationCreate
* @duplicate
* @secure
*/
v2NavigationCreate2: (
id: number,
data: {
/**
* The date the post was published, in the site's timezone.
* @format date-time
*/
date?: string;
/**
* The date the post was published, as GMT.
* @format date-time
*/
date_gmt?: string;
/** An alphanumeric identifier for the post unique to its type. */
slug?: string;
/** A named status for the post. */
status?: IStatusEnum21[];
/** A password to protect access to the content and excerpt. */
password?: string;
/** The title for the post. */
title?: string;
/** The content for the post. */
content?: string;
/** The theme file to use to display the post. */
template?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/navigation/${id}`,
method: "POST",
body: data,
secure: true,
type: ContentType.FormData,
...params,
}),
/**
* No description
*
* @tags navigation
* @name V2NavigationUpdate
* @request PUT:/wp/v2/navigation/{id}
* @secure
*/
v2NavigationUpdate: (
id: number,
query?: {
/**
* The date the post was published, in the site's timezone.
* @format date-time
*/
date?: string;
/**
* The date the post was published, as GMT.
* @format date-time
*/
date_gmt?: string;
/** An alphanumeric identifier for the post unique to its type. */
slug?: string;
/** A named status for the post. */
status?: IV2NavigationUpdateParamsStatusEnum[];
/** A password to protect access to the content and excerpt. */
password?: string;
/** The title for the post. */
title?: string;
/** The content for the post. */
content?: string;
/** The theme file to use to display the post. */
template?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/navigation/${id}`,
method: "PUT",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags navigation
* @name V2NavigationPartialUpdate
* @request PATCH:/wp/v2/navigation/{id}
* @secure
*/
v2NavigationPartialUpdate: (
id: number,
query?: {
/**
* The date the post was published, in the site's timezone.
* @format date-time
*/
date?: string;
/**
* The date the post was published, as GMT.
* @format date-time
*/
date_gmt?: string;
/** An alphanumeric identifier for the post unique to its type. */
slug?: string;
/** A named status for the post. */
status?: IV2NavigationPartialUpdateParamsStatusEnum[];
/** A password to protect access to the content and excerpt. */
password?: string;
/** The title for the post. */
title?: string;
/** The content for the post. */
content?: string;
/** The theme file to use to display the post. */
template?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/navigation/${id}`,
method: "PATCH",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags navigation
* @name V2NavigationDelete
* @request DELETE:/wp/v2/navigation/{id}
* @secure
*/
v2NavigationDelete: (
id: number,
query?: {
/** Whether to bypass Trash and force deletion. */
force?: boolean;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/navigation/${id}`,
method: "DELETE",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags navigation
* @name V2NavigationRevisionsList
* @request GET:/wp/v2/navigation/{parent}/revisions
* @secure
*/
v2NavigationRevisionsList: (
parent: number,
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2NavigationRevisionsListParamsContextEnum[];
/**
* Current page of the collection.
* @format int64
* @min 1
*/
page?: number;
/**
* Maximum number of items to be returned in result set.
* @format int64
* @min 1
* @max 100
*/
per_page?: number;
/** Limit results to those matching a string. */
search?: string;
/** Ensure result set excludes specific IDs. */
exclude?: number[];
/** Limit result set to specific IDs. */
include?: number[];
/**
* Offset the result set by a specific number of items.
* @format int64
*/
offset?: number;
/** Order sort attribute ascending or descending. */
order?: IV2NavigationRevisionsListParamsOrderEnum[];
/** Sort collection by object attribute. */
orderby?: IV2NavigationRevisionsListParamsOrderbyEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/navigation/${parent}/revisions`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags navigation
* @name V2NavigationDetail2
* @request GET:/wp/v2/navigation/{parent}
* @originalName v2NavigationDetail
* @duplicate
* @secure
*/
v2NavigationDetail2: (
parent: number,
query?: {
/**
* The ID for the autosave.
* @format int64
*/
id?: number;
/** Scope under which the request is made; determines fields present in response. */
context?: IV2NavigationDetail2ParamsContextEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/navigation/${parent}`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags navigation
* @name V2NavigationAutosavesList
* @request GET:/wp/v2/navigation/{id}/autosaves
* @secure
*/
v2NavigationAutosavesList: (
id: number,
query?: {
/**
* The ID for the parent of the autosave.
* @format int64
*/
parent?: number;
/** Scope under which the request is made; determines fields present in response. */
context?: IV2NavigationAutosavesListParamsContextEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/navigation/${id}/autosaves`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags navigation
* @name V2NavigationAutosavesCreate
* @request POST:/wp/v2/navigation/{id}/autosaves
* @secure
*/
v2NavigationAutosavesCreate: (
id: number,
data: {
/**
* The ID for the parent of the autosave.
* @format int64
*/
parent?: number;
/**
* The date the post was published, in the site's timezone.
* @format date-time
*/
date?: string;
/**
* The date the post was published, as GMT.
* @format date-time
*/
date_gmt?: string;
/** An alphanumeric identifier for the post unique to its type. */
slug?: string;
/** A named status for the post. */
status?: IStatusEnum22[];
/** A password to protect access to the content and excerpt. */
password?: string;
/** The title for the post. */
title?: string;
/** The content for the post. */
content?: string;
/** The theme file to use to display the post. */
template?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/navigation/${id}/autosaves`,
method: "POST",
body: data,
secure: true,
type: ContentType.FormData,
...params,
}),
/**
* No description
*
* @tags font-families
* @name V2FontFamiliesList
* @request GET:/wp/v2/font-families
* @secure
*/
v2FontFamiliesList: (
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2FontFamiliesListParamsContextEnum[];
/**
* Current page of the collection.
* @format int64
* @min 1
*/
page?: number;
/**
* Maximum number of items to be returned in result set.
* @format int64
* @min 1
* @max 100
*/
per_page?: number;
/** Ensure result set excludes specific IDs. */
exclude?: number[];
/** Limit result set to specific IDs. */
include?: number[];
/** How to interpret the search input. */
search_semantics?: IV2FontFamiliesListParamsSearchSemanticsEnum[];
/**
* Offset the result set by a specific number of items.
* @format int64
*/
offset?: number;
/** Order sort attribute ascending or descending. */
order?: IV2FontFamiliesListParamsOrderEnum[];
/** Sort collection by post attribute. */
orderby?: IV2FontFamiliesListParamsOrderbyEnum[];
/** Limit result set to posts with one or more specific slugs. */
slug?: string[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/font-families`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags font-families
* @name V2FontFamiliesCreate
* @request POST:/wp/v2/font-families
* @secure
*/
v2FontFamiliesCreate: (
data: {
/**
* Version of the theme.json schema used for the typography settings.
* @format int64
* @min 2
* @max 3
*/
theme_json_version?: number;
/** font-family declaration in theme.json format, encoded as a string. */
font_family_settings: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/font-families`,
method: "POST",
body: data,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags font-families
* @name V2FontFamiliesDetail
* @request GET:/wp/v2/font-families/{id}
* @secure
*/
v2FontFamiliesDetail: (
id: number,
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2FontFamiliesDetailParamsContextEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/font-families/${id}`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags font-families
* @name V2FontFamiliesCreate2
* @request POST:/wp/v2/font-families/{id}
* @originalName v2FontFamiliesCreate
* @duplicate
* @secure
*/
v2FontFamiliesCreate2: (
id: number,
data: {
/**
* Version of the theme.json schema used for the typography settings.
* @format int64
* @min 2
* @max 3
*/
theme_json_version?: number;
/** font-family declaration in theme.json format, encoded as a string. */
font_family_settings: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/font-families/${id}`,
method: "POST",
body: data,
secure: true,
type: ContentType.FormData,
...params,
}),
/**
* No description
*
* @tags font-families
* @name V2FontFamiliesUpdate
* @request PUT:/wp/v2/font-families/{id}
* @secure
*/
v2FontFamiliesUpdate: (
id: number,
query: {
/**
* Version of the theme.json schema used for the typography settings.
* @format int64
* @min 2
* @max 3
*/
theme_json_version?: number;
/** font-family declaration in theme.json format, encoded as a string. */
font_family_settings: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/font-families/${id}`,
method: "PUT",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags font-families
* @name V2FontFamiliesPartialUpdate
* @request PATCH:/wp/v2/font-families/{id}
* @secure
*/
v2FontFamiliesPartialUpdate: (
id: number,
query: {
/**
* Version of the theme.json schema used for the typography settings.
* @format int64
* @min 2
* @max 3
*/
theme_json_version?: number;
/** font-family declaration in theme.json format, encoded as a string. */
font_family_settings: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/font-families/${id}`,
method: "PATCH",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags font-families
* @name V2FontFamiliesDelete
* @request DELETE:/wp/v2/font-families/{id}
* @secure
*/
v2FontFamiliesDelete: (
id: number,
query?: {
/** Whether to bypass Trash and force deletion. */
force?: boolean;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/font-families/${id}`,
method: "DELETE",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags font-families
* @name V2FontFamiliesFontFacesList
* @request GET:/wp/v2/font-families/{font_family_id}/font-faces
* @secure
*/
v2FontFamiliesFontFacesList: (
fontFamilyId: number,
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2FontFamiliesFontFacesListParamsContextEnum[];
/**
* Current page of the collection.
* @format int64
* @min 1
*/
page?: number;
/**
* Maximum number of items to be returned in result set.
* @format int64
* @min 1
* @max 100
*/
per_page?: number;
/** Ensure result set excludes specific IDs. */
exclude?: number[];
/** Limit result set to specific IDs. */
include?: number[];
/** How to interpret the search input. */
search_semantics?: IV2FontFamiliesFontFacesListParamsSearchSemanticsEnum[];
/**
* Offset the result set by a specific number of items.
* @format int64
*/
offset?: number;
/** Order sort attribute ascending or descending. */
order?: IV2FontFamiliesFontFacesListParamsOrderEnum[];
/** Sort collection by post attribute. */
orderby?: IV2FontFamiliesFontFacesListParamsOrderbyEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/font-families/${fontFamilyId}/font-faces`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags font-families
* @name V2FontFamiliesFontFacesCreate
* @request POST:/wp/v2/font-families/{font_family_id}/font-faces
* @secure
*/
v2FontFamiliesFontFacesCreate: (
fontFamilyId: number,
data: {
/**
* Version of the theme.json schema used for the typography settings.
* @format int64
* @min 2
* @max 3
*/
theme_json_version?: number;
/** font-face declaration in theme.json format, encoded as a string. */
font_face_settings: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/font-families/${fontFamilyId}/font-faces`,
method: "POST",
body: data,
secure: true,
type: ContentType.FormData,
...params,
}),
/**
* No description
*
* @tags font-families
* @name V2FontFamiliesDetail2
* @request GET:/wp/v2/font-families/{font_family_id}
* @originalName v2FontFamiliesDetail
* @duplicate
* @secure
*/
v2FontFamiliesDetail2: (
fontFamilyId: number,
query: {
/**
* Unique identifier for the font face.
* @format int64
*/
id: number;
/** Scope under which the request is made; determines fields present in response. */
context?: IV2FontFamiliesDetail2ParamsContextEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/font-families/${fontFamilyId}`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags font-families
* @name V2FontFamiliesDelete2
* @request DELETE:/wp/v2/font-families/{font_family_id}
* @originalName v2FontFamiliesDelete
* @duplicate
* @secure
*/
v2FontFamiliesDelete2: (
fontFamilyId: number,
query: {
/**
* Unique identifier for the font face.
* @format int64
*/
id: number;
/** Whether to bypass Trash and force deletion. */
force?: boolean;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/font-families/${fontFamilyId}`,
method: "DELETE",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags product
* @name V2ProductList
* @request GET:/wp/v2/product
* @secure
*/
v2ProductList: (
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2ProductListParamsContextEnum[];
/**
* Current page of the collection.
* @format int64
* @min 1
*/
page?: number;
/**
* Maximum number of items to be returned in result set.
* @format int64
* @min 1
* @max 100
*/
per_page?: number;
/** Limit results to those matching a string. */
search?: string;
/**
* Limit response to posts published after a given ISO8601 compliant date.
* @format date-time
*/
after?: string;
/**
* Limit response to posts modified after a given ISO8601 compliant date.
* @format date-time
*/
modified_after?: string;
/**
* Limit response to posts published before a given ISO8601 compliant date.
* @format date-time
*/
before?: string;
/**
* Limit response to posts modified before a given ISO8601 compliant date.
* @format date-time
*/
modified_before?: string;
/** Ensure result set excludes specific IDs. */
exclude?: number[];
/** Limit result set to specific IDs. */
include?: number[];
/** How to interpret the search input. */
search_semantics?: IV2ProductListParamsSearchSemanticsEnum[];
/**
* Offset the result set by a specific number of items.
* @format int64
*/
offset?: number;
/** Order sort attribute ascending or descending. */
order?: IV2ProductListParamsOrderEnum[];
/** Sort collection by post attribute. */
orderby?: IV2ProductListParamsOrderbyEnum[];
/** Array of column names to be searched. */
search_columns?: string[];
/** Limit result set to posts with one or more specific slugs. */
slug?: string[];
/** Limit result set to posts assigned one or more statuses. */
status?: string[];
/** Limit result set based on relationship between multiple taxonomies. */
tax_relation?: IV2ProductListParamsTaxRelationEnum[];
/** Limit result set to items with specific terms assigned in the product_brand taxonomy. */
product_brand?: string;
/** Limit result set to items except those with specific terms assigned in the product_brand taxonomy. */
product_brand_exclude?: string;
/** Limit result set to items with specific terms assigned in the product_cat taxonomy. */
product_cat?: string;
/** Limit result set to items except those with specific terms assigned in the product_cat taxonomy. */
product_cat_exclude?: string;
/** Limit result set to items with specific terms assigned in the product_tag taxonomy. */
product_tag?: string;
/** Limit result set to items except those with specific terms assigned in the product_tag taxonomy. */
product_tag_exclude?: string;
/** Limit result set to products assigned a specific brand ID. */
brand?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/product`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags product
* @name V2ProductCreate
* @request POST:/wp/v2/product
* @secure
*/
v2ProductCreate: (
data: {
/**
* The date the post was published, in the site's timezone.
* @format date-time
*/
date?: string;
/**
* The date the post was published, as GMT.
* @format date-time
*/
date_gmt?: string;
/** An alphanumeric identifier for the post unique to its type. */
slug?: string;
/** A named status for the post. */
status?: IStatusEnum23[];
/** A password to protect access to the content and excerpt. */
password?: string;
/** The title for the post. */
title?: string;
/** The content for the post. */
content?: string;
/** The excerpt for the post. */
excerpt?: string;
/**
* The ID of the featured media for the post.
* @format int64
*/
featured_media?: number;
/** Whether or not comments are open on the post. */
comment_status?: ICommentStatusEnum8[];
/** Whether or not the post can be pinged. */
ping_status?: IPingStatusEnum8[];
/** Meta fields. */
meta?: string;
/** The theme file to use to display the post. */
template?: string;
/** The terms assigned to the post in the product_brand taxonomy. */
product_brand?: number[];
/** The terms assigned to the post in the product_cat taxonomy. */
product_cat?: number[];
/** The terms assigned to the post in the product_tag taxonomy. */
product_tag?: number[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/product`,
method: "POST",
body: data,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags product
* @name V2ProductDetail
* @request GET:/wp/v2/product/{id}
* @secure
*/
v2ProductDetail: (
id: number,
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2ProductDetailParamsContextEnum[];
/**
* Override the default excerpt length.
* @format int64
*/
excerpt_length?: number;
/** The password for the post if it is password protected. */
password?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/product/${id}`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags product
* @name V2ProductCreate2
* @request POST:/wp/v2/product/{id}
* @originalName v2ProductCreate
* @duplicate
* @secure
*/
v2ProductCreate2: (
id: number,
data: {
/**
* The date the post was published, in the site's timezone.
* @format date-time
*/
date?: string;
/**
* The date the post was published, as GMT.
* @format date-time
*/
date_gmt?: string;
/** An alphanumeric identifier for the post unique to its type. */
slug?: string;
/** A named status for the post. */
status?: IStatusEnum24[];
/** A password to protect access to the content and excerpt. */
password?: string;
/** The title for the post. */
title?: string;
/** The content for the post. */
content?: string;
/** The excerpt for the post. */
excerpt?: string;
/**
* The ID of the featured media for the post.
* @format int64
*/
featured_media?: number;
/** Whether or not comments are open on the post. */
comment_status?: ICommentStatusEnum9[];
/** Whether or not the post can be pinged. */
ping_status?: IPingStatusEnum9[];
/** Meta fields. */
meta?: string;
/** The theme file to use to display the post. */
template?: string;
/** The terms assigned to the post in the product_brand taxonomy. */
product_brand?: number[];
/** The terms assigned to the post in the product_cat taxonomy. */
product_cat?: number[];
/** The terms assigned to the post in the product_tag taxonomy. */
product_tag?: number[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/product/${id}`,
method: "POST",
body: data,
secure: true,
type: ContentType.FormData,
...params,
}),
/**
* No description
*
* @tags product
* @name V2ProductUpdate
* @request PUT:/wp/v2/product/{id}
* @secure
*/
v2ProductUpdate: (
id: number,
query?: {
/**
* The date the post was published, in the site's timezone.
* @format date-time
*/
date?: string;
/**
* The date the post was published, as GMT.
* @format date-time
*/
date_gmt?: string;
/** An alphanumeric identifier for the post unique to its type. */
slug?: string;
/** A named status for the post. */
status?: IV2ProductUpdateParamsStatusEnum[];
/** A password to protect access to the content and excerpt. */
password?: string;
/** The title for the post. */
title?: string;
/** The content for the post. */
content?: string;
/** The excerpt for the post. */
excerpt?: string;
/**
* The ID of the featured media for the post.
* @format int64
*/
featured_media?: number;
/** Whether or not comments are open on the post. */
comment_status?: IV2ProductUpdateParamsCommentStatusEnum[];
/** Whether or not the post can be pinged. */
ping_status?: IV2ProductUpdateParamsPingStatusEnum[];
/** Meta fields. */
meta?: string;
/** The theme file to use to display the post. */
template?: string;
/** The terms assigned to the post in the product_brand taxonomy. */
product_brand?: number[];
/** The terms assigned to the post in the product_cat taxonomy. */
product_cat?: number[];
/** The terms assigned to the post in the product_tag taxonomy. */
product_tag?: number[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/product/${id}`,
method: "PUT",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags product
* @name V2ProductPartialUpdate
* @request PATCH:/wp/v2/product/{id}
* @secure
*/
v2ProductPartialUpdate: (
id: number,
query?: {
/**
* The date the post was published, in the site's timezone.
* @format date-time
*/
date?: string;
/**
* The date the post was published, as GMT.
* @format date-time
*/
date_gmt?: string;
/** An alphanumeric identifier for the post unique to its type. */
slug?: string;
/** A named status for the post. */
status?: IV2ProductPartialUpdateParamsStatusEnum[];
/** A password to protect access to the content and excerpt. */
password?: string;
/** The title for the post. */
title?: string;
/** The content for the post. */
content?: string;
/** The excerpt for the post. */
excerpt?: string;
/**
* The ID of the featured media for the post.
* @format int64
*/
featured_media?: number;
/** Whether or not comments are open on the post. */
comment_status?: IV2ProductPartialUpdateParamsCommentStatusEnum[];
/** Whether or not the post can be pinged. */
ping_status?: IV2ProductPartialUpdateParamsPingStatusEnum[];
/** Meta fields. */
meta?: string;
/** The theme file to use to display the post. */
template?: string;
/** The terms assigned to the post in the product_brand taxonomy. */
product_brand?: number[];
/** The terms assigned to the post in the product_cat taxonomy. */
product_cat?: number[];
/** The terms assigned to the post in the product_tag taxonomy. */
product_tag?: number[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/product/${id}`,
method: "PATCH",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags product
* @name V2ProductDelete
* @request DELETE:/wp/v2/product/{id}
* @secure
*/
v2ProductDelete: (
id: number,
query?: {
/** Whether to bypass Trash and force deletion. */
force?: boolean;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/product/${id}`,
method: "DELETE",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags product
* @name V2ProductAutosavesList
* @request GET:/wp/v2/product/{id}/autosaves
* @secure
*/
v2ProductAutosavesList: (
id: number,
query?: {
/**
* The ID for the parent of the autosave.
* @format int64
*/
parent?: number;
/** Scope under which the request is made; determines fields present in response. */
context?: IV2ProductAutosavesListParamsContextEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/product/${id}/autosaves`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags product
* @name V2ProductAutosavesCreate
* @request POST:/wp/v2/product/{id}/autosaves
* @secure
*/
v2ProductAutosavesCreate: (
id: number,
data: {
/**
* The ID for the parent of the autosave.
* @format int64
*/
parent?: number;
/**
* The date the post was published, in the site's timezone.
* @format date-time
*/
date?: string;
/**
* The date the post was published, as GMT.
* @format date-time
*/
date_gmt?: string;
/** An alphanumeric identifier for the post unique to its type. */
slug?: string;
/** A named status for the post. */
status?: IStatusEnum25[];
/** A password to protect access to the content and excerpt. */
password?: string;
/** The title for the post. */
title?: string;
/** The content for the post. */
content?: string;
/** The excerpt for the post. */
excerpt?: string;
/**
* The ID of the featured media for the post.
* @format int64
*/
featured_media?: number;
/** Whether or not comments are open on the post. */
comment_status?: ICommentStatusEnum10[];
/** Whether or not the post can be pinged. */
ping_status?: IPingStatusEnum10[];
/** Meta fields. */
meta?: string;
/** The theme file to use to display the post. */
template?: string;
/** The terms assigned to the post in the product_brand taxonomy. */
product_brand?: number[];
/** The terms assigned to the post in the product_cat taxonomy. */
product_cat?: number[];
/** The terms assigned to the post in the product_tag taxonomy. */
product_tag?: number[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/product/${id}/autosaves`,
method: "POST",
body: data,
secure: true,
type: ContentType.FormData,
...params,
}),
/**
* No description
*
* @tags product
* @name V2ProductDetail2
* @request GET:/wp/v2/product/{parent}
* @originalName v2ProductDetail
* @duplicate
* @secure
*/
v2ProductDetail2: (
parent: number,
query?: {
/**
* The ID for the autosave.
* @format int64
*/
id?: number;
/** Scope under which the request is made; determines fields present in response. */
context?: IV2ProductDetail2ParamsContextEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/product/${parent}`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags types
* @name V2TypesList
* @request GET:/wp/v2/types
* @secure
*/
v2TypesList: (
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2TypesListParamsContextEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/types`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags types
* @name V2TypesDetail
* @request GET:/wp/v2/types/{type}
* @secure
*/
v2TypesDetail: (
type: string,
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2TypesDetailParamsContextEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/types/${type}`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags statuses
* @name V2StatusesList
* @request GET:/wp/v2/statuses
* @secure
*/
v2StatusesList: (
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2StatusesListParamsContextEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/statuses`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags statuses
* @name V2StatusesDetail
* @request GET:/wp/v2/statuses/{status}
* @secure
*/
v2StatusesDetail: (
status: string,
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2StatusesDetailParamsContextEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/statuses/${status}`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags taxonomies
* @name V2TaxonomiesList
* @request GET:/wp/v2/taxonomies
* @secure
*/
v2TaxonomiesList: (
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2TaxonomiesListParamsContextEnum[];
/** Limit results to taxonomies associated with a specific post type. */
type?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/taxonomies`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags taxonomies
* @name V2TaxonomiesDetail
* @request GET:/wp/v2/taxonomies/{taxonomy}
* @secure
*/
v2TaxonomiesDetail: (
taxonomy: string,
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2TaxonomiesDetailParamsContextEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/taxonomies/${taxonomy}`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags categories
* @name V2CategoriesList
* @request GET:/wp/v2/categories
* @secure
*/
v2CategoriesList: (
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2CategoriesListParamsContextEnum[];
/**
* Current page of the collection.
* @format int64
* @min 1
*/
page?: number;
/**
* Maximum number of items to be returned in result set.
* @format int64
* @min 1
* @max 100
*/
per_page?: number;
/** Limit results to those matching a string. */
search?: string;
/** Ensure result set excludes specific IDs. */
exclude?: number[];
/** Limit result set to specific IDs. */
include?: number[];
/** Order sort attribute ascending or descending. */
order?: IV2CategoriesListParamsOrderEnum[];
/** Sort collection by term attribute. */
orderby?: IV2CategoriesListParamsOrderbyEnum[];
/** Whether to hide terms not assigned to any posts. */
hide_empty?: boolean;
/**
* Limit result set to terms assigned to a specific parent.
* @format int64
*/
parent?: number;
/**
* Limit result set to terms assigned to a specific post.
* @format int64
*/
post?: number;
/** Limit result set to terms with one or more specific slugs. */
slug?: string[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/categories`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags categories
* @name V2CategoriesCreate
* @request POST:/wp/v2/categories
* @secure
*/
v2CategoriesCreate: (
data: {
/** HTML description of the term. */
description?: string;
/** HTML title for the term. */
name: string;
/** An alphanumeric identifier for the term unique to its type. */
slug?: string;
/**
* The parent term ID.
* @format int64
*/
parent?: number;
/** Meta fields. */
meta?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/categories`,
method: "POST",
body: data,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags categories
* @name V2CategoriesDetail
* @request GET:/wp/v2/categories/{id}
* @secure
*/
v2CategoriesDetail: (
id: number,
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2CategoriesDetailParamsContextEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/categories/${id}`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags categories
* @name V2CategoriesCreate2
* @request POST:/wp/v2/categories/{id}
* @originalName v2CategoriesCreate
* @duplicate
* @secure
*/
v2CategoriesCreate2: (
id: number,
data: {
/** HTML description of the term. */
description?: string;
/** HTML title for the term. */
name?: string;
/** An alphanumeric identifier for the term unique to its type. */
slug?: string;
/**
* The parent term ID.
* @format int64
*/
parent?: number;
/** Meta fields. */
meta?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/categories/${id}`,
method: "POST",
body: data,
secure: true,
type: ContentType.FormData,
...params,
}),
/**
* No description
*
* @tags categories
* @name V2CategoriesUpdate
* @request PUT:/wp/v2/categories/{id}
* @secure
*/
v2CategoriesUpdate: (
id: number,
query?: {
/** HTML description of the term. */
description?: string;
/** HTML title for the term. */
name?: string;
/** An alphanumeric identifier for the term unique to its type. */
slug?: string;
/**
* The parent term ID.
* @format int64
*/
parent?: number;
/** Meta fields. */
meta?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/categories/${id}`,
method: "PUT",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags categories
* @name V2CategoriesPartialUpdate
* @request PATCH:/wp/v2/categories/{id}
* @secure
*/
v2CategoriesPartialUpdate: (
id: number,
query?: {
/** HTML description of the term. */
description?: string;
/** HTML title for the term. */
name?: string;
/** An alphanumeric identifier for the term unique to its type. */
slug?: string;
/**
* The parent term ID.
* @format int64
*/
parent?: number;
/** Meta fields. */
meta?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/categories/${id}`,
method: "PATCH",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags categories
* @name V2CategoriesDelete
* @request DELETE:/wp/v2/categories/{id}
* @secure
*/
v2CategoriesDelete: (
id: number,
query?: {
/** Required to be true, as terms do not support trashing. */
force?: boolean;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/categories/${id}`,
method: "DELETE",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags tags
* @name V2TagsList
* @request GET:/wp/v2/tags
* @secure
*/
v2TagsList: (
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2TagsListParamsContextEnum[];
/**
* Current page of the collection.
* @format int64
* @min 1
*/
page?: number;
/**
* Maximum number of items to be returned in result set.
* @format int64
* @min 1
* @max 100
*/
per_page?: number;
/** Limit results to those matching a string. */
search?: string;
/** Ensure result set excludes specific IDs. */
exclude?: number[];
/** Limit result set to specific IDs. */
include?: number[];
/**
* Offset the result set by a specific number of items.
* @format int64
*/
offset?: number;
/** Order sort attribute ascending or descending. */
order?: IV2TagsListParamsOrderEnum[];
/** Sort collection by term attribute. */
orderby?: IV2TagsListParamsOrderbyEnum[];
/** Whether to hide terms not assigned to any posts. */
hide_empty?: boolean;
/**
* Limit result set to terms assigned to a specific post.
* @format int64
*/
post?: number;
/** Limit result set to terms with one or more specific slugs. */
slug?: string[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/tags`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags tags
* @name V2TagsCreate
* @request POST:/wp/v2/tags
* @secure
*/
v2TagsCreate: (
data: {
/** HTML description of the term. */
description?: string;
/** HTML title for the term. */
name: string;
/** An alphanumeric identifier for the term unique to its type. */
slug?: string;
/** Meta fields. */
meta?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/tags`,
method: "POST",
body: data,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags tags
* @name V2TagsDetail
* @request GET:/wp/v2/tags/{id}
* @secure
*/
v2TagsDetail: (
id: number,
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2TagsDetailParamsContextEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/tags/${id}`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags tags
* @name V2TagsCreate2
* @request POST:/wp/v2/tags/{id}
* @originalName v2TagsCreate
* @duplicate
* @secure
*/
v2TagsCreate2: (
id: number,
data: {
/** HTML description of the term. */
description?: string;
/** HTML title for the term. */
name?: string;
/** An alphanumeric identifier for the term unique to its type. */
slug?: string;
/** Meta fields. */
meta?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/tags/${id}`,
method: "POST",
body: data,
secure: true,
type: ContentType.FormData,
...params,
}),
/**
* No description
*
* @tags tags
* @name V2TagsUpdate
* @request PUT:/wp/v2/tags/{id}
* @secure
*/
v2TagsUpdate: (
id: number,
query?: {
/** HTML description of the term. */
description?: string;
/** HTML title for the term. */
name?: string;
/** An alphanumeric identifier for the term unique to its type. */
slug?: string;
/** Meta fields. */
meta?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/tags/${id}`,
method: "PUT",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags tags
* @name V2TagsPartialUpdate
* @request PATCH:/wp/v2/tags/{id}
* @secure
*/
v2TagsPartialUpdate: (
id: number,
query?: {
/** HTML description of the term. */
description?: string;
/** HTML title for the term. */
name?: string;
/** An alphanumeric identifier for the term unique to its type. */
slug?: string;
/** Meta fields. */
meta?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/tags/${id}`,
method: "PATCH",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags tags
* @name V2TagsDelete
* @request DELETE:/wp/v2/tags/{id}
* @secure
*/
v2TagsDelete: (
id: number,
query?: {
/** Required to be true, as terms do not support trashing. */
force?: boolean;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/tags/${id}`,
method: "DELETE",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags menus
* @name V2MenusList
* @request GET:/wp/v2/menus
* @secure
*/
v2MenusList: (
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2MenusListParamsContextEnum[];
/**
* Current page of the collection.
* @format int64
* @min 1
*/
page?: number;
/**
* Maximum number of items to be returned in result set.
* @format int64
* @min 1
* @max 100
*/
per_page?: number;
/** Limit results to those matching a string. */
search?: string;
/** Ensure result set excludes specific IDs. */
exclude?: number[];
/** Limit result set to specific IDs. */
include?: number[];
/**
* Offset the result set by a specific number of items.
* @format int64
*/
offset?: number;
/** Order sort attribute ascending or descending. */
order?: IV2MenusListParamsOrderEnum[];
/** Sort collection by term attribute. */
orderby?: IV2MenusListParamsOrderbyEnum[];
/** Whether to hide terms not assigned to any posts. */
hide_empty?: boolean;
/**
* Limit result set to terms assigned to a specific post.
* @format int64
*/
post?: number;
/** Limit result set to terms with one or more specific slugs. */
slug?: string[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/menus`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags menus
* @name V2MenusCreate
* @request POST:/wp/v2/menus
* @secure
*/
v2MenusCreate: (
data: {
/** HTML description of the term. */
description?: string;
/** HTML title for the term. */
name: string;
/** An alphanumeric identifier for the term unique to its type. */
slug?: string;
/** Meta fields. */
meta?: string;
/** The locations assigned to the menu. */
locations?: string[];
/** Whether to automatically add top level pages to this menu. */
auto_add?: boolean;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/menus`,
method: "POST",
body: data,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags menus
* @name V2MenusDetail
* @request GET:/wp/v2/menus/{id}
* @secure
*/
v2MenusDetail: (
id: number,
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2MenusDetailParamsContextEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/menus/${id}`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags menus
* @name V2MenusCreate2
* @request POST:/wp/v2/menus/{id}
* @originalName v2MenusCreate
* @duplicate
* @secure
*/
v2MenusCreate2: (
id: number,
data: {
/** HTML description of the term. */
description?: string;
/** HTML title for the term. */
name?: string;
/** An alphanumeric identifier for the term unique to its type. */
slug?: string;
/** Meta fields. */
meta?: string;
/** The locations assigned to the menu. */
locations?: string[];
/** Whether to automatically add top level pages to this menu. */
auto_add?: boolean;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/menus/${id}`,
method: "POST",
body: data,
secure: true,
type: ContentType.FormData,
...params,
}),
/**
* No description
*
* @tags menus
* @name V2MenusUpdate
* @request PUT:/wp/v2/menus/{id}
* @secure
*/
v2MenusUpdate: (
id: number,
query?: {
/** HTML description of the term. */
description?: string;
/** HTML title for the term. */
name?: string;
/** An alphanumeric identifier for the term unique to its type. */
slug?: string;
/** Meta fields. */
meta?: string;
/** The locations assigned to the menu. */
locations?: string[];
/** Whether to automatically add top level pages to this menu. */
auto_add?: boolean;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/menus/${id}`,
method: "PUT",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags menus
* @name V2MenusPartialUpdate
* @request PATCH:/wp/v2/menus/{id}
* @secure
*/
v2MenusPartialUpdate: (
id: number,
query?: {
/** HTML description of the term. */
description?: string;
/** HTML title for the term. */
name?: string;
/** An alphanumeric identifier for the term unique to its type. */
slug?: string;
/** Meta fields. */
meta?: string;
/** The locations assigned to the menu. */
locations?: string[];
/** Whether to automatically add top level pages to this menu. */
auto_add?: boolean;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/menus/${id}`,
method: "PATCH",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags menus
* @name V2MenusDelete
* @request DELETE:/wp/v2/menus/{id}
* @secure
*/
v2MenusDelete: (
id: number,
query?: {
/** Required to be true, as terms do not support trashing. */
force?: boolean;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/menus/${id}`,
method: "DELETE",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags wp_pattern_category
* @name V2WpPatternCategoryList
* @request GET:/wp/v2/wp_pattern_category
* @secure
*/
v2WpPatternCategoryList: (
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2WpPatternCategoryListParamsContextEnum[];
/**
* Current page of the collection.
* @format int64
* @min 1
*/
page?: number;
/**
* Maximum number of items to be returned in result set.
* @format int64
* @min 1
* @max 100
*/
per_page?: number;
/** Limit results to those matching a string. */
search?: string;
/** Ensure result set excludes specific IDs. */
exclude?: number[];
/** Limit result set to specific IDs. */
include?: number[];
/**
* Offset the result set by a specific number of items.
* @format int64
*/
offset?: number;
/** Order sort attribute ascending or descending. */
order?: IV2WpPatternCategoryListParamsOrderEnum[];
/** Sort collection by term attribute. */
orderby?: IV2WpPatternCategoryListParamsOrderbyEnum[];
/** Whether to hide terms not assigned to any posts. */
hide_empty?: boolean;
/**
* Limit result set to terms assigned to a specific post.
* @format int64
*/
post?: number;
/** Limit result set to terms with one or more specific slugs. */
slug?: string[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/wp_pattern_category`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags wp_pattern_category
* @name V2WpPatternCategoryCreate
* @request POST:/wp/v2/wp_pattern_category
* @secure
*/
v2WpPatternCategoryCreate: (
data: {
/** HTML description of the term. */
description?: string;
/** HTML title for the term. */
name: string;
/** An alphanumeric identifier for the term unique to its type. */
slug?: string;
/** Meta fields. */
meta?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/wp_pattern_category`,
method: "POST",
body: data,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags wp_pattern_category
* @name V2WpPatternCategoryDetail
* @request GET:/wp/v2/wp_pattern_category/{id}
* @secure
*/
v2WpPatternCategoryDetail: (
id: number,
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2WpPatternCategoryDetailParamsContextEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/wp_pattern_category/${id}`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags wp_pattern_category
* @name V2WpPatternCategoryCreate2
* @request POST:/wp/v2/wp_pattern_category/{id}
* @originalName v2WpPatternCategoryCreate
* @duplicate
* @secure
*/
v2WpPatternCategoryCreate2: (
id: number,
data: {
/** HTML description of the term. */
description?: string;
/** HTML title for the term. */
name?: string;
/** An alphanumeric identifier for the term unique to its type. */
slug?: string;
/** Meta fields. */
meta?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/wp_pattern_category/${id}`,
method: "POST",
body: data,
secure: true,
type: ContentType.FormData,
...params,
}),
/**
* No description
*
* @tags wp_pattern_category
* @name V2WpPatternCategoryUpdate
* @request PUT:/wp/v2/wp_pattern_category/{id}
* @secure
*/
v2WpPatternCategoryUpdate: (
id: number,
query?: {
/** HTML description of the term. */
description?: string;
/** HTML title for the term. */
name?: string;
/** An alphanumeric identifier for the term unique to its type. */
slug?: string;
/** Meta fields. */
meta?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/wp_pattern_category/${id}`,
method: "PUT",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags wp_pattern_category
* @name V2WpPatternCategoryPartialUpdate
* @request PATCH:/wp/v2/wp_pattern_category/{id}
* @secure
*/
v2WpPatternCategoryPartialUpdate: (
id: number,
query?: {
/** HTML description of the term. */
description?: string;
/** HTML title for the term. */
name?: string;
/** An alphanumeric identifier for the term unique to its type. */
slug?: string;
/** Meta fields. */
meta?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/wp_pattern_category/${id}`,
method: "PATCH",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags wp_pattern_category
* @name V2WpPatternCategoryDelete
* @request DELETE:/wp/v2/wp_pattern_category/{id}
* @secure
*/
v2WpPatternCategoryDelete: (
id: number,
query?: {
/** Required to be true, as terms do not support trashing. */
force?: boolean;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/wp_pattern_category/${id}`,
method: "DELETE",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags product_brand
* @name V2ProductBrandList
* @request GET:/wp/v2/product_brand
* @secure
*/
v2ProductBrandList: (
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2ProductBrandListParamsContextEnum[];
/**
* Current page of the collection.
* @format int64
* @min 1
*/
page?: number;
/**
* Maximum number of items to be returned in result set.
* @format int64
* @min 1
* @max 100
*/
per_page?: number;
/** Limit results to those matching a string. */
search?: string;
/** Ensure result set excludes specific IDs. */
exclude?: number[];
/** Limit result set to specific IDs. */
include?: number[];
/** Order sort attribute ascending or descending. */
order?: IV2ProductBrandListParamsOrderEnum[];
/** Sort collection by term attribute. */
orderby?: IV2ProductBrandListParamsOrderbyEnum[];
/** Whether to hide terms not assigned to any posts. */
hide_empty?: boolean;
/**
* Limit result set to terms assigned to a specific parent.
* @format int64
*/
parent?: number;
/**
* Limit result set to terms assigned to a specific post.
* @format int64
*/
post?: number;
/** Limit result set to terms with one or more specific slugs. */
slug?: string[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/product_brand`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags product_brand
* @name V2ProductBrandCreate
* @request POST:/wp/v2/product_brand
* @secure
*/
v2ProductBrandCreate: (
data: {
/** HTML description of the term. */
description?: string;
/** HTML title for the term. */
name: string;
/** An alphanumeric identifier for the term unique to its type. */
slug?: string;
/**
* The parent term ID.
* @format int64
*/
parent?: number;
/** Meta fields. */
meta?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/product_brand`,
method: "POST",
body: data,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags product_brand
* @name V2ProductBrandDetail
* @request GET:/wp/v2/product_brand/{id}
* @secure
*/
v2ProductBrandDetail: (
id: number,
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2ProductBrandDetailParamsContextEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/product_brand/${id}`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags product_brand
* @name V2ProductBrandCreate2
* @request POST:/wp/v2/product_brand/{id}
* @originalName v2ProductBrandCreate
* @duplicate
* @secure
*/
v2ProductBrandCreate2: (
id: number,
data: {
/** HTML description of the term. */
description?: string;
/** HTML title for the term. */
name?: string;
/** An alphanumeric identifier for the term unique to its type. */
slug?: string;
/**
* The parent term ID.
* @format int64
*/
parent?: number;
/** Meta fields. */
meta?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/product_brand/${id}`,
method: "POST",
body: data,
secure: true,
type: ContentType.FormData,
...params,
}),
/**
* No description
*
* @tags product_brand
* @name V2ProductBrandUpdate
* @request PUT:/wp/v2/product_brand/{id}
* @secure
*/
v2ProductBrandUpdate: (
id: number,
query?: {
/** HTML description of the term. */
description?: string;
/** HTML title for the term. */
name?: string;
/** An alphanumeric identifier for the term unique to its type. */
slug?: string;
/**
* The parent term ID.
* @format int64
*/
parent?: number;
/** Meta fields. */
meta?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/product_brand/${id}`,
method: "PUT",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags product_brand
* @name V2ProductBrandPartialUpdate
* @request PATCH:/wp/v2/product_brand/{id}
* @secure
*/
v2ProductBrandPartialUpdate: (
id: number,
query?: {
/** HTML description of the term. */
description?: string;
/** HTML title for the term. */
name?: string;
/** An alphanumeric identifier for the term unique to its type. */
slug?: string;
/**
* The parent term ID.
* @format int64
*/
parent?: number;
/** Meta fields. */
meta?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/product_brand/${id}`,
method: "PATCH",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags product_brand
* @name V2ProductBrandDelete
* @request DELETE:/wp/v2/product_brand/{id}
* @secure
*/
v2ProductBrandDelete: (
id: number,
query?: {
/** Required to be true, as terms do not support trashing. */
force?: boolean;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/product_brand/${id}`,
method: "DELETE",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags product_cat
* @name V2ProductCatList
* @request GET:/wp/v2/product_cat
* @secure
*/
v2ProductCatList: (
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2ProductCatListParamsContextEnum[];
/**
* Current page of the collection.
* @format int64
* @min 1
*/
page?: number;
/**
* Maximum number of items to be returned in result set.
* @format int64
* @min 1
* @max 100
*/
per_page?: number;
/** Limit results to those matching a string. */
search?: string;
/** Ensure result set excludes specific IDs. */
exclude?: number[];
/** Limit result set to specific IDs. */
include?: number[];
/** Order sort attribute ascending or descending. */
order?: IV2ProductCatListParamsOrderEnum[];
/** Sort collection by term attribute. */
orderby?: IV2ProductCatListParamsOrderbyEnum[];
/** Whether to hide terms not assigned to any posts. */
hide_empty?: boolean;
/**
* Limit result set to terms assigned to a specific parent.
* @format int64
*/
parent?: number;
/**
* Limit result set to terms assigned to a specific post.
* @format int64
*/
post?: number;
/** Limit result set to terms with one or more specific slugs. */
slug?: string[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/product_cat`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags product_cat
* @name V2ProductCatCreate
* @request POST:/wp/v2/product_cat
* @secure
*/
v2ProductCatCreate: (
data: {
/** HTML description of the term. */
description?: string;
/** HTML title for the term. */
name: string;
/** An alphanumeric identifier for the term unique to its type. */
slug?: string;
/**
* The parent term ID.
* @format int64
*/
parent?: number;
/** Meta fields. */
meta?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/product_cat`,
method: "POST",
body: data,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags product_cat
* @name V2ProductCatDetail
* @request GET:/wp/v2/product_cat/{id}
* @secure
*/
v2ProductCatDetail: (
id: number,
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2ProductCatDetailParamsContextEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/product_cat/${id}`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags product_cat
* @name V2ProductCatCreate2
* @request POST:/wp/v2/product_cat/{id}
* @originalName v2ProductCatCreate
* @duplicate
* @secure
*/
v2ProductCatCreate2: (
id: number,
data: {
/** HTML description of the term. */
description?: string;
/** HTML title for the term. */
name?: string;
/** An alphanumeric identifier for the term unique to its type. */
slug?: string;
/**
* The parent term ID.
* @format int64
*/
parent?: number;
/** Meta fields. */
meta?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/product_cat/${id}`,
method: "POST",
body: data,
secure: true,
type: ContentType.FormData,
...params,
}),
/**
* No description
*
* @tags product_cat
* @name V2ProductCatUpdate
* @request PUT:/wp/v2/product_cat/{id}
* @secure
*/
v2ProductCatUpdate: (
id: number,
query?: {
/** HTML description of the term. */
description?: string;
/** HTML title for the term. */
name?: string;
/** An alphanumeric identifier for the term unique to its type. */
slug?: string;
/**
* The parent term ID.
* @format int64
*/
parent?: number;
/** Meta fields. */
meta?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/product_cat/${id}`,
method: "PUT",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags product_cat
* @name V2ProductCatPartialUpdate
* @request PATCH:/wp/v2/product_cat/{id}
* @secure
*/
v2ProductCatPartialUpdate: (
id: number,
query?: {
/** HTML description of the term. */
description?: string;
/** HTML title for the term. */
name?: string;
/** An alphanumeric identifier for the term unique to its type. */
slug?: string;
/**
* The parent term ID.
* @format int64
*/
parent?: number;
/** Meta fields. */
meta?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/product_cat/${id}`,
method: "PATCH",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags product_cat
* @name V2ProductCatDelete
* @request DELETE:/wp/v2/product_cat/{id}
* @secure
*/
v2ProductCatDelete: (
id: number,
query?: {
/** Required to be true, as terms do not support trashing. */
force?: boolean;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/product_cat/${id}`,
method: "DELETE",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags product_tag
* @name V2ProductTagList
* @request GET:/wp/v2/product_tag
* @secure
*/
v2ProductTagList: (
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2ProductTagListParamsContextEnum[];
/**
* Current page of the collection.
* @format int64
* @min 1
*/
page?: number;
/**
* Maximum number of items to be returned in result set.
* @format int64
* @min 1
* @max 100
*/
per_page?: number;
/** Limit results to those matching a string. */
search?: string;
/** Ensure result set excludes specific IDs. */
exclude?: number[];
/** Limit result set to specific IDs. */
include?: number[];
/**
* Offset the result set by a specific number of items.
* @format int64
*/
offset?: number;
/** Order sort attribute ascending or descending. */
order?: IV2ProductTagListParamsOrderEnum[];
/** Sort collection by term attribute. */
orderby?: IV2ProductTagListParamsOrderbyEnum[];
/** Whether to hide terms not assigned to any posts. */
hide_empty?: boolean;
/**
* Limit result set to terms assigned to a specific post.
* @format int64
*/
post?: number;
/** Limit result set to terms with one or more specific slugs. */
slug?: string[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/product_tag`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags product_tag
* @name V2ProductTagCreate
* @request POST:/wp/v2/product_tag
* @secure
*/
v2ProductTagCreate: (
data: {
/** HTML description of the term. */
description?: string;
/** HTML title for the term. */
name: string;
/** An alphanumeric identifier for the term unique to its type. */
slug?: string;
/** Meta fields. */
meta?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/product_tag`,
method: "POST",
body: data,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags product_tag
* @name V2ProductTagDetail
* @request GET:/wp/v2/product_tag/{id}
* @secure
*/
v2ProductTagDetail: (
id: number,
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2ProductTagDetailParamsContextEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/product_tag/${id}`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags product_tag
* @name V2ProductTagCreate2
* @request POST:/wp/v2/product_tag/{id}
* @originalName v2ProductTagCreate
* @duplicate
* @secure
*/
v2ProductTagCreate2: (
id: number,
data: {
/** HTML description of the term. */
description?: string;
/** HTML title for the term. */
name?: string;
/** An alphanumeric identifier for the term unique to its type. */
slug?: string;
/** Meta fields. */
meta?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/product_tag/${id}`,
method: "POST",
body: data,
secure: true,
type: ContentType.FormData,
...params,
}),
/**
* No description
*
* @tags product_tag
* @name V2ProductTagUpdate
* @request PUT:/wp/v2/product_tag/{id}
* @secure
*/
v2ProductTagUpdate: (
id: number,
query?: {
/** HTML description of the term. */
description?: string;
/** HTML title for the term. */
name?: string;
/** An alphanumeric identifier for the term unique to its type. */
slug?: string;
/** Meta fields. */
meta?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/product_tag/${id}`,
method: "PUT",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags product_tag
* @name V2ProductTagPartialUpdate
* @request PATCH:/wp/v2/product_tag/{id}
* @secure
*/
v2ProductTagPartialUpdate: (
id: number,
query?: {
/** HTML description of the term. */
description?: string;
/** HTML title for the term. */
name?: string;
/** An alphanumeric identifier for the term unique to its type. */
slug?: string;
/** Meta fields. */
meta?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/product_tag/${id}`,
method: "PATCH",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags product_tag
* @name V2ProductTagDelete
* @request DELETE:/wp/v2/product_tag/{id}
* @secure
*/
v2ProductTagDelete: (
id: number,
query?: {
/** Required to be true, as terms do not support trashing. */
force?: boolean;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/product_tag/${id}`,
method: "DELETE",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags users
* @name V2UsersList
* @request GET:/wp/v2/users
* @secure
*/
v2UsersList: (
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2UsersListParamsContextEnum[];
/**
* Current page of the collection.
* @format int64
* @min 1
*/
page?: number;
/**
* Maximum number of items to be returned in result set.
* @format int64
* @min 1
* @max 100
*/
per_page?: number;
/** Limit results to those matching a string. */
search?: string;
/** Ensure result set excludes specific IDs. */
exclude?: number[];
/** Limit result set to specific IDs. */
include?: number[];
/**
* Offset the result set by a specific number of items.
* @format int64
*/
offset?: number;
/** Order sort attribute ascending or descending. */
order?: IV2UsersListParamsOrderEnum[];
/** Sort collection by user attribute. */
orderby?: IV2UsersListParamsOrderbyEnum[];
/** Limit result set to users with one or more specific slugs. */
slug?: string[];
/** Limit result set to users matching at least one specific role provided. Accepts csv list or single role. */
roles?: string[];
/** Limit result set to users matching at least one specific capability provided. Accepts csv list or single capability. */
capabilities?: string[];
/** Limit result set to users who are considered authors. */
who?: IV2UsersListParamsWhoEnum[];
/** Limit result set to users who have published posts. */
has_published_posts?: boolean;
/** Array of column names to be searched. */
search_columns?: string[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/users`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags users
* @name V2UsersCreate
* @request POST:/wp/v2/users
* @secure
*/
v2UsersCreate: (
data: {
/** Login name for the user. */
username: string;
/** Display name for the user. */
name?: string;
/** First name for the user. */
first_name?: string;
/** Last name for the user. */
last_name?: string;
/**
* The email address for the user.
* @format email
*/
email: string;
/**
* URL of the user.
* @format uri
*/
url?: string;
/** Description of the user. */
description?: string;
/** Locale for the user. */
locale?: ILocaleEnum[];
/** The nickname for the user. */
nickname?: string;
/** An alphanumeric identifier for the user. */
slug?: string;
/** Roles assigned to the user. */
roles?: string[];
/** Password for the user (never included). */
password: string;
/** Meta fields. */
meta?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/users`,
method: "POST",
body: data,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags users
* @name V2UsersDetail
* @request GET:/wp/v2/users/{id}
* @secure
*/
v2UsersDetail: (
id: number,
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2UsersDetailParamsContextEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/users/${id}`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags users
* @name V2UsersCreate2
* @request POST:/wp/v2/users/{id}
* @originalName v2UsersCreate
* @duplicate
* @secure
*/
v2UsersCreate2: (
id: number,
data: {
/** Login name for the user. */
username?: string;
/** Display name for the user. */
name?: string;
/** First name for the user. */
first_name?: string;
/** Last name for the user. */
last_name?: string;
/**
* The email address for the user.
* @format email
*/
email?: string;
/**
* URL of the user.
* @format uri
*/
url?: string;
/** Description of the user. */
description?: string;
/** Locale for the user. */
locale?: ILocaleEnum1[];
/** The nickname for the user. */
nickname?: string;
/** An alphanumeric identifier for the user. */
slug?: string;
/** Roles assigned to the user. */
roles?: string[];
/** Password for the user (never included). */
password?: string;
/** Meta fields. */
meta?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/users/${id}`,
method: "POST",
body: data,
secure: true,
type: ContentType.FormData,
...params,
}),
/**
* No description
*
* @tags users
* @name V2UsersUpdate
* @request PUT:/wp/v2/users/{id}
* @secure
*/
v2UsersUpdate: (
id: number,
query?: {
/** Login name for the user. */
username?: string;
/** Display name for the user. */
name?: string;
/** First name for the user. */
first_name?: string;
/** Last name for the user. */
last_name?: string;
/**
* The email address for the user.
* @format email
*/
email?: string;
/**
* URL of the user.
* @format uri
*/
url?: string;
/** Description of the user. */
description?: string;
/** Locale for the user. */
locale?: IV2UsersUpdateParamsLocaleEnum[];
/** The nickname for the user. */
nickname?: string;
/** An alphanumeric identifier for the user. */
slug?: string;
/** Roles assigned to the user. */
roles?: string[];
/** Password for the user (never included). */
password?: string;
/** Meta fields. */
meta?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/users/${id}`,
method: "PUT",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags users
* @name V2UsersPartialUpdate
* @request PATCH:/wp/v2/users/{id}
* @secure
*/
v2UsersPartialUpdate: (
id: number,
query?: {
/** Login name for the user. */
username?: string;
/** Display name for the user. */
name?: string;
/** First name for the user. */
first_name?: string;
/** Last name for the user. */
last_name?: string;
/**
* The email address for the user.
* @format email
*/
email?: string;
/**
* URL of the user.
* @format uri
*/
url?: string;
/** Description of the user. */
description?: string;
/** Locale for the user. */
locale?: IV2UsersPartialUpdateParamsLocaleEnum[];
/** The nickname for the user. */
nickname?: string;
/** An alphanumeric identifier for the user. */
slug?: string;
/** Roles assigned to the user. */
roles?: string[];
/** Password for the user (never included). */
password?: string;
/** Meta fields. */
meta?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/users/${id}`,
method: "PATCH",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags users
* @name V2UsersDelete
* @request DELETE:/wp/v2/users/{id}
* @secure
*/
v2UsersDelete: (
id: number,
query: {
/** Required to be true, as users do not support trashing. */
force?: boolean;
/**
* Reassign the deleted user's posts and links to this user ID.
* @format int64
*/
reassign: number;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/users/${id}`,
method: "DELETE",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags users
* @name V2UsersMeList
* @request GET:/wp/v2/users/me
* @secure
*/
v2UsersMeList: (
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2UsersMeListParamsContextEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/users/me`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags users
* @name V2UsersMeCreate
* @request POST:/wp/v2/users/me
* @secure
*/
v2UsersMeCreate: (
data: {
/** Login name for the user. */
username?: string;
/** Display name for the user. */
name?: string;
/** First name for the user. */
first_name?: string;
/** Last name for the user. */
last_name?: string;
/**
* The email address for the user.
* @format email
*/
email?: string;
/**
* URL of the user.
* @format uri
*/
url?: string;
/** Description of the user. */
description?: string;
/** Locale for the user. */
locale?: ILocaleEnum2[];
/** The nickname for the user. */
nickname?: string;
/** An alphanumeric identifier for the user. */
slug?: string;
/** Roles assigned to the user. */
roles?: string[];
/** Password for the user (never included). */
password?: string;
/** Meta fields. */
meta?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/users/me`,
method: "POST",
body: data,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags users
* @name V2UsersMeUpdate
* @request PUT:/wp/v2/users/me
* @secure
*/
v2UsersMeUpdate: (
query?: {
/** Login name for the user. */
username?: string;
/** Display name for the user. */
name?: string;
/** First name for the user. */
first_name?: string;
/** Last name for the user. */
last_name?: string;
/**
* The email address for the user.
* @format email
*/
email?: string;
/**
* URL of the user.
* @format uri
*/
url?: string;
/** Description of the user. */
description?: string;
/** Locale for the user. */
locale?: IV2UsersMeUpdateParamsLocaleEnum[];
/** The nickname for the user. */
nickname?: string;
/** An alphanumeric identifier for the user. */
slug?: string;
/** Roles assigned to the user. */
roles?: string[];
/** Password for the user (never included). */
password?: string;
/** Meta fields. */
meta?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/users/me`,
method: "PUT",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags users
* @name V2UsersMePartialUpdate
* @request PATCH:/wp/v2/users/me
* @secure
*/
v2UsersMePartialUpdate: (
query?: {
/** Login name for the user. */
username?: string;
/** Display name for the user. */
name?: string;
/** First name for the user. */
first_name?: string;
/** Last name for the user. */
last_name?: string;
/**
* The email address for the user.
* @format email
*/
email?: string;
/**
* URL of the user.
* @format uri
*/
url?: string;
/** Description of the user. */
description?: string;
/** Locale for the user. */
locale?: IV2UsersMePartialUpdateParamsLocaleEnum[];
/** The nickname for the user. */
nickname?: string;
/** An alphanumeric identifier for the user. */
slug?: string;
/** Roles assigned to the user. */
roles?: string[];
/** Password for the user (never included). */
password?: string;
/** Meta fields. */
meta?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/users/me`,
method: "PATCH",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags users
* @name V2UsersMeDelete
* @request DELETE:/wp/v2/users/me
* @secure
*/
v2UsersMeDelete: (
query: {
/** Required to be true, as users do not support trashing. */
force?: boolean;
/**
* Reassign the deleted user's posts and links to this user ID.
* @format int64
*/
reassign: number;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/users/me`,
method: "DELETE",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags users
* @name V2UsersApplicationPasswordsList
* @request GET:/wp/v2/users/{user_id}/application-passwords
* @secure
*/
v2UsersApplicationPasswordsList: (
userId: number,
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2UsersApplicationPasswordsListParamsContextEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/users/${userId}/application-passwords`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags users
* @name V2UsersApplicationPasswordsCreate
* @request POST:/wp/v2/users/{user_id}/application-passwords
* @secure
*/
v2UsersApplicationPasswordsCreate: (
userId: number,
data: {
/**
* A UUID provided by the application to uniquely identify it. It is recommended to use an UUID v5 with the URL or DNS namespace.
* @format uuid
*/
app_id?: string;
/** The name of the application password. */
name: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/users/${userId}/application-passwords`,
method: "POST",
body: data,
secure: true,
type: ContentType.FormData,
...params,
}),
/**
* No description
*
* @tags users
* @name V2UsersApplicationPasswordsDelete
* @request DELETE:/wp/v2/users/{user_id}/application-passwords
* @secure
*/
v2UsersApplicationPasswordsDelete: (
userId: number,
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/users/${userId}/application-passwords`,
method: "DELETE",
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags users
* @name V2UsersApplicationPasswordsIntrospectList
* @request GET:/wp/v2/users/{user_id}/application-passwords/introspect
* @secure
*/
v2UsersApplicationPasswordsIntrospectList: (
userId: number,
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2UsersApplicationPasswordsIntrospectListParamsContextEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/users/${userId}/application-passwords/introspect`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags users
* @name V2UsersDetail2
* @request GET:/wp/v2/users/{user_id}
* @originalName v2UsersDetail
* @duplicate
* @secure
*/
v2UsersDetail2: (
userId: number,
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2UsersDetail2ParamsContextEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/users/${userId}`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags users
* @name V2UsersCreate3
* @request POST:/wp/v2/users/{user_id}
* @originalName v2UsersCreate
* @duplicate
* @secure
*/
v2UsersCreate3: (
userId: number,
data: {
/**
* A UUID provided by the application to uniquely identify it. It is recommended to use an UUID v5 with the URL or DNS namespace.
* @format uuid
*/
app_id?: string;
/** The name of the application password. */
name?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/users/${userId}`,
method: "POST",
body: data,
secure: true,
type: ContentType.FormData,
...params,
}),
/**
* No description
*
* @tags users
* @name V2UsersUpdate2
* @request PUT:/wp/v2/users/{user_id}
* @originalName v2UsersUpdate
* @duplicate
* @secure
*/
v2UsersUpdate2: (
userId: number,
query?: {
/**
* A UUID provided by the application to uniquely identify it. It is recommended to use an UUID v5 with the URL or DNS namespace.
* @format uuid
*/
app_id?: string;
/** The name of the application password. */
name?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/users/${userId}`,
method: "PUT",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags users
* @name V2UsersPartialUpdate2
* @request PATCH:/wp/v2/users/{user_id}
* @originalName v2UsersPartialUpdate
* @duplicate
* @secure
*/
v2UsersPartialUpdate2: (
userId: number,
query?: {
/**
* A UUID provided by the application to uniquely identify it. It is recommended to use an UUID v5 with the URL or DNS namespace.
* @format uuid
*/
app_id?: string;
/** The name of the application password. */
name?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/users/${userId}`,
method: "PATCH",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags users
* @name V2UsersDelete2
* @request DELETE:/wp/v2/users/{user_id}
* @originalName v2UsersDelete
* @duplicate
* @secure
*/
v2UsersDelete2: (userId: number, params: RequestParams = {}) =>
this.request<void, void>({
path: `/wp/v2/users/${userId}`,
method: "DELETE",
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags comments
* @name V2CommentsList
* @request GET:/wp/v2/comments
* @secure
*/
v2CommentsList: (
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2CommentsListParamsContextEnum[];
/**
* Current page of the collection.
* @format int64
* @min 1
*/
page?: number;
/**
* Maximum number of items to be returned in result set.
* @format int64
* @min 1
* @max 100
*/
per_page?: number;
/** Limit results to those matching a string. */
search?: string;
/**
* Limit response to comments published after a given ISO8601 compliant date.
* @format date-time
*/
after?: string;
/** Limit result set to comments assigned to specific user IDs. Requires authorization. */
author?: number[];
/** Ensure result set excludes comments assigned to specific user IDs. Requires authorization. */
author_exclude?: number[];
/**
* Limit result set to that from a specific author email. Requires authorization.
* @format email
*/
author_email?: string;
/**
* Limit response to comments published before a given ISO8601 compliant date.
* @format date-time
*/
before?: string;
/** Ensure result set excludes specific IDs. */
exclude?: number[];
/** Limit result set to specific IDs. */
include?: number[];
/**
* Offset the result set by a specific number of items.
* @format int64
*/
offset?: number;
/** Order sort attribute ascending or descending. */
order?: IV2CommentsListParamsOrderEnum[];
/** Sort collection by comment attribute. */
orderby?: IV2CommentsListParamsOrderbyEnum[];
/** Limit result set to comments of specific parent IDs. */
parent?: number[];
/** Ensure result set excludes specific parent IDs. */
parent_exclude?: number[];
/** Limit result set to comments assigned to specific post IDs. */
post?: number[];
/** Limit result set to comments assigned a specific status. Requires authorization. */
status?: string;
/** Limit result set to comments assigned a specific type. Requires authorization. */
type?: string;
/** The password for the post if it is password protected. */
password?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/comments`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags comments
* @name V2CommentsCreate
* @request POST:/wp/v2/comments
* @secure
*/
v2CommentsCreate: (
data: {
/**
* The ID of the user object, if author was a user.
* @format int64
*/
author?: number;
/**
* Email address for the comment author.
* @format email
*/
author_email?: string;
/**
* IP address for the comment author.
* @format ip
*/
author_ip?: string;
/** Display name for the comment author. */
author_name?: string;
/**
* URL for the comment author.
* @format uri
*/
author_url?: string;
/** User agent for the comment author. */
author_user_agent?: string;
/** The content for the comment. */
content?: string;
/**
* The date the comment was published, in the site's timezone.
* @format date-time
*/
date?: string;
/**
* The date the comment was published, as GMT.
* @format date-time
*/
date_gmt?: string;
/**
* The ID for the parent of the comment.
* @format int64
*/
parent?: number;
/**
* The ID of the associated post object.
* @format int64
*/
post?: number;
/** State of the comment. */
status?: string;
/** Meta fields. */
meta?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/comments`,
method: "POST",
body: data,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags comments
* @name V2CommentsDetail
* @request GET:/wp/v2/comments/{id}
* @secure
*/
v2CommentsDetail: (
id: number,
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2CommentsDetailParamsContextEnum[];
/** The password for the parent post of the comment (if the post is password protected). */
password?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/comments/${id}`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags comments
* @name V2CommentsCreate2
* @request POST:/wp/v2/comments/{id}
* @originalName v2CommentsCreate
* @duplicate
* @secure
*/
v2CommentsCreate2: (
id: number,
data: {
/**
* The ID of the user object, if author was a user.
* @format int64
*/
author?: number;
/**
* Email address for the comment author.
* @format email
*/
author_email?: string;
/**
* IP address for the comment author.
* @format ip
*/
author_ip?: string;
/** Display name for the comment author. */
author_name?: string;
/**
* URL for the comment author.
* @format uri
*/
author_url?: string;
/** User agent for the comment author. */
author_user_agent?: string;
/** The content for the comment. */
content?: string;
/**
* The date the comment was published, in the site's timezone.
* @format date-time
*/
date?: string;
/**
* The date the comment was published, as GMT.
* @format date-time
*/
date_gmt?: string;
/**
* The ID for the parent of the comment.
* @format int64
*/
parent?: number;
/**
* The ID of the associated post object.
* @format int64
*/
post?: number;
/** State of the comment. */
status?: string;
/** Meta fields. */
meta?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/comments/${id}`,
method: "POST",
body: data,
secure: true,
type: ContentType.FormData,
...params,
}),
/**
* No description
*
* @tags comments
* @name V2CommentsUpdate
* @request PUT:/wp/v2/comments/{id}
* @secure
*/
v2CommentsUpdate: (
id: number,
query?: {
/**
* The ID of the user object, if author was a user.
* @format int64
*/
author?: number;
/**
* Email address for the comment author.
* @format email
*/
author_email?: string;
/**
* IP address for the comment author.
* @format ip
*/
author_ip?: string;
/** Display name for the comment author. */
author_name?: string;
/**
* URL for the comment author.
* @format uri
*/
author_url?: string;
/** User agent for the comment author. */
author_user_agent?: string;
/** The content for the comment. */
content?: string;
/**
* The date the comment was published, in the site's timezone.
* @format date-time
*/
date?: string;
/**
* The date the comment was published, as GMT.
* @format date-time
*/
date_gmt?: string;
/**
* The ID for the parent of the comment.
* @format int64
*/
parent?: number;
/**
* The ID of the associated post object.
* @format int64
*/
post?: number;
/** State of the comment. */
status?: string;
/** Meta fields. */
meta?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/comments/${id}`,
method: "PUT",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags comments
* @name V2CommentsPartialUpdate
* @request PATCH:/wp/v2/comments/{id}
* @secure
*/
v2CommentsPartialUpdate: (
id: number,
query?: {
/**
* The ID of the user object, if author was a user.
* @format int64
*/
author?: number;
/**
* Email address for the comment author.
* @format email
*/
author_email?: string;
/**
* IP address for the comment author.
* @format ip
*/
author_ip?: string;
/** Display name for the comment author. */
author_name?: string;
/**
* URL for the comment author.
* @format uri
*/
author_url?: string;
/** User agent for the comment author. */
author_user_agent?: string;
/** The content for the comment. */
content?: string;
/**
* The date the comment was published, in the site's timezone.
* @format date-time
*/
date?: string;
/**
* The date the comment was published, as GMT.
* @format date-time
*/
date_gmt?: string;
/**
* The ID for the parent of the comment.
* @format int64
*/
parent?: number;
/**
* The ID of the associated post object.
* @format int64
*/
post?: number;
/** State of the comment. */
status?: string;
/** Meta fields. */
meta?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/comments/${id}`,
method: "PATCH",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags comments
* @name V2CommentsDelete
* @request DELETE:/wp/v2/comments/{id}
* @secure
*/
v2CommentsDelete: (
id: number,
query?: {
/** Whether to bypass Trash and force deletion. */
force?: boolean;
/** The password for the parent post of the comment (if the post is password protected). */
password?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/comments/${id}`,
method: "DELETE",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags search
* @name V2SearchList
* @request GET:/wp/v2/search
* @secure
*/
v2SearchList: (
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2SearchListParamsContextEnum[];
/**
* Current page of the collection.
* @format int64
* @min 1
*/
page?: number;
/**
* Maximum number of items to be returned in result set.
* @format int64
* @min 1
* @max 100
*/
per_page?: number;
/** Limit results to those matching a string. */
search?: string;
/** Limit results to items of an object type. */
type?: IV2SearchListParamsTypeEnum[];
/** Limit results to items of one or more object subtypes. */
subtype?: string[];
/** Ensure result set excludes specific IDs. */
exclude?: number[];
/** Limit result set to specific IDs. */
include?: number[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/search`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags block-renderer
* @name V2BlockRendererDetail
* @request GET:/wp/v2/block-renderer/{name}
* @secure
*/
v2BlockRendererDetail: (
name: string,
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2BlockRendererDetailParamsContextEnum[];
/** Attributes for the block. */
attributes?: string;
/**
* ID of the post context.
* @format int64
*/
post_id?: number;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/block-renderer/${name}`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags block-renderer
* @name V2BlockRendererCreate
* @request POST:/wp/v2/block-renderer/{name}
* @secure
*/
v2BlockRendererCreate: (
name: string,
data: {
/** Scope under which the request is made; determines fields present in response. */
context?: IContextEnum[];
/** Attributes for the block. */
attributes?: string;
/**
* ID of the post context.
* @format int64
*/
post_id?: number;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/block-renderer/${name}`,
method: "POST",
body: data,
secure: true,
type: ContentType.FormData,
...params,
}),
/**
* No description
*
* @tags block-types
* @name V2BlockTypesList
* @request GET:/wp/v2/block-types
* @secure
*/
v2BlockTypesList: (
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2BlockTypesListParamsContextEnum[];
/** Block namespace. */
namespace?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/block-types`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags block-types
* @name V2BlockTypesDetail
* @request GET:/wp/v2/block-types/{namespace}
* @secure
*/
v2BlockTypesDetail: (
namespace: string,
query?: {
/** Block name. */
name?: string;
/** Scope under which the request is made; determines fields present in response. */
context?: IV2BlockTypesDetailParamsContextEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/block-types/${namespace}`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags settings
* @name V2SettingsList
* @request GET:/wp/v2/settings
* @secure
*/
v2SettingsList: (params: RequestParams = {}) =>
this.request<void, void>({
path: `/wp/v2/settings`,
method: "GET",
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags settings
* @name V2SettingsCreate
* @request POST:/wp/v2/settings
* @secure
*/
v2SettingsCreate: (
data: {
/** Site title. */
title?: string;
/** Site tagline. */
description?: string;
/**
* Site URL.
* @format uri
*/
url?: string;
/**
* This address is used for admin purposes, like new user notification.
* @format email
*/
email?: string;
/** A city in the same timezone as you. */
timezone?: string;
/** A date format for all date strings. */
date_format?: string;
/** A time format for all time strings. */
time_format?: string;
/**
* A day number of the week that the week should start on.
* @format int64
*/
start_of_week?: number;
/** WordPress locale code. */
language?: string;
/** Convert emoticons like :-) and :-P to graphics on display. */
use_smilies?: boolean;
/**
* Default post category.
* @format int64
*/
default_category?: number;
/** Default post format. */
default_post_format?: string;
/**
* Blog pages show at most.
* @format int64
*/
posts_per_page?: number;
/** What to show on the front page */
show_on_front?: string;
/**
* The ID of the page that should be displayed on the front page
* @format int64
*/
page_on_front?: number;
/**
* The ID of the page that should display the latest posts
* @format int64
*/
page_for_posts?: number;
/** Allow link notifications from other blogs (pingbacks and trackbacks) on new articles. */
default_ping_status?: IDefaultPingStatusEnum[];
/** Allow people to submit comments on new posts. */
default_comment_status?: IDefaultCommentStatusEnum[];
/**
* Site logo.
* @format int64
*/
site_logo?: number;
/**
* Site icon.
* @format int64
*/
site_icon?: number;
/** WooCommerce Local Pickup Method Settings */
pickup_location_settings?: string;
/** WooCommerce Local Pickup Locations */
pickup_locations?: object[];
/** How should products be sorted in the catalog by default? */
woocommerce_default_catalog_orderby?: IWoocommerceDefaultCatalogOrderbyEnum[];
/** Controls the display of the phone field in checkout. */
woocommerce_checkout_phone_field?: IWoocommerceCheckoutPhoneFieldEnum[];
/** Controls the display of the company field in checkout. */
woocommerce_checkout_company_field?: IWoocommerceCheckoutCompanyFieldEnum[];
/** Controls the display of the apartment (address_2) field in checkout. */
woocommerce_checkout_address_2_field?: IWoocommerceCheckoutAddress2FieldEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/settings`,
method: "POST",
body: data,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags settings
* @name V2SettingsUpdate
* @request PUT:/wp/v2/settings
* @secure
*/
v2SettingsUpdate: (
query?: {
/** Site title. */
title?: string;
/** Site tagline. */
description?: string;
/**
* Site URL.
* @format uri
*/
url?: string;
/**
* This address is used for admin purposes, like new user notification.
* @format email
*/
email?: string;
/** A city in the same timezone as you. */
timezone?: string;
/** A date format for all date strings. */
date_format?: string;
/** A time format for all time strings. */
time_format?: string;
/**
* A day number of the week that the week should start on.
* @format int64
*/
start_of_week?: number;
/** WordPress locale code. */
language?: string;
/** Convert emoticons like :-) and :-P to graphics on display. */
use_smilies?: boolean;
/**
* Default post category.
* @format int64
*/
default_category?: number;
/** Default post format. */
default_post_format?: string;
/**
* Blog pages show at most.
* @format int64
*/
posts_per_page?: number;
/** What to show on the front page */
show_on_front?: string;
/**
* The ID of the page that should be displayed on the front page
* @format int64
*/
page_on_front?: number;
/**
* The ID of the page that should display the latest posts
* @format int64
*/
page_for_posts?: number;
/** Allow link notifications from other blogs (pingbacks and trackbacks) on new articles. */
default_ping_status?: IV2SettingsUpdateParamsDefaultPingStatusEnum[];
/** Allow people to submit comments on new posts. */
default_comment_status?: IV2SettingsUpdateParamsDefaultCommentStatusEnum[];
/**
* Site logo.
* @format int64
*/
site_logo?: number;
/**
* Site icon.
* @format int64
*/
site_icon?: number;
/** WooCommerce Local Pickup Method Settings */
pickup_location_settings?: string;
/** WooCommerce Local Pickup Locations */
pickup_locations?: object[];
/** How should products be sorted in the catalog by default? */
woocommerce_default_catalog_orderby?: IV2SettingsUpdateParamsWoocommerceDefaultCatalogOrderbyEnum[];
/** Controls the display of the phone field in checkout. */
woocommerce_checkout_phone_field?: IV2SettingsUpdateParamsWoocommerceCheckoutPhoneFieldEnum[];
/** Controls the display of the company field in checkout. */
woocommerce_checkout_company_field?: IV2SettingsUpdateParamsWoocommerceCheckoutCompanyFieldEnum[];
/** Controls the display of the apartment (address_2) field in checkout. */
woocommerce_checkout_address_2_field?: IV2SettingsUpdateParamsWoocommerceCheckoutAddress2FieldEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/settings`,
method: "PUT",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags settings
* @name V2SettingsPartialUpdate
* @request PATCH:/wp/v2/settings
* @secure
*/
v2SettingsPartialUpdate: (
query?: {
/** Site title. */
title?: string;
/** Site tagline. */
description?: string;
/**
* Site URL.
* @format uri
*/
url?: string;
/**
* This address is used for admin purposes, like new user notification.
* @format email
*/
email?: string;
/** A city in the same timezone as you. */
timezone?: string;
/** A date format for all date strings. */
date_format?: string;
/** A time format for all time strings. */
time_format?: string;
/**
* A day number of the week that the week should start on.
* @format int64
*/
start_of_week?: number;
/** WordPress locale code. */
language?: string;
/** Convert emoticons like :-) and :-P to graphics on display. */
use_smilies?: boolean;
/**
* Default post category.
* @format int64
*/
default_category?: number;
/** Default post format. */
default_post_format?: string;
/**
* Blog pages show at most.
* @format int64
*/
posts_per_page?: number;
/** What to show on the front page */
show_on_front?: string;
/**
* The ID of the page that should be displayed on the front page
* @format int64
*/
page_on_front?: number;
/**
* The ID of the page that should display the latest posts
* @format int64
*/
page_for_posts?: number;
/** Allow link notifications from other blogs (pingbacks and trackbacks) on new articles. */
default_ping_status?: IV2SettingsPartialUpdateParamsDefaultPingStatusEnum[];
/** Allow people to submit comments on new posts. */
default_comment_status?: IV2SettingsPartialUpdateParamsDefaultCommentStatusEnum[];
/**
* Site logo.
* @format int64
*/
site_logo?: number;
/**
* Site icon.
* @format int64
*/
site_icon?: number;
/** WooCommerce Local Pickup Method Settings */
pickup_location_settings?: string;
/** WooCommerce Local Pickup Locations */
pickup_locations?: object[];
/** How should products be sorted in the catalog by default? */
woocommerce_default_catalog_orderby?: IV2SettingsPartialUpdateParamsWoocommerceDefaultCatalogOrderbyEnum[];
/** Controls the display of the phone field in checkout. */
woocommerce_checkout_phone_field?: IV2SettingsPartialUpdateParamsWoocommerceCheckoutPhoneFieldEnum[];
/** Controls the display of the company field in checkout. */
woocommerce_checkout_company_field?: IV2SettingsPartialUpdateParamsWoocommerceCheckoutCompanyFieldEnum[];
/** Controls the display of the apartment (address_2) field in checkout. */
woocommerce_checkout_address_2_field?: IV2SettingsPartialUpdateParamsWoocommerceCheckoutAddress2FieldEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/settings`,
method: "PATCH",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags themes
* @name V2ThemesList
* @request GET:/wp/v2/themes
* @secure
*/
v2ThemesList: (
query?: {
/** Limit result set to themes assigned one or more statuses. */
status?: string[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/themes`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags themes
* @name V2ThemesDetail
* @request GET:/wp/v2/themes/{stylesheet}
* @secure
*/
v2ThemesDetail: (stylesheet: string, params: RequestParams = {}) =>
this.request<void, void>({
path: `/wp/v2/themes/${stylesheet}`,
method: "GET",
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags plugins
* @name V2PluginsList
* @request GET:/wp/v2/plugins
* @secure
*/
v2PluginsList: (
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2PluginsListParamsContextEnum[];
/** Limit results to those matching a string. */
search?: string;
/** Limits results to plugins with the given status. */
status?: string[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/plugins`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags plugins
* @name V2PluginsCreate
* @request POST:/wp/v2/plugins
* @secure
*/
v2PluginsCreate: (
data: {
/** WordPress.org plugin directory slug. */
slug: string;
/** The plugin activation status. */
status?: IStatusEnum26[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/plugins`,
method: "POST",
body: data,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags plugins
* @name V2PluginsDetail
* @request GET:/wp/v2/plugins/{plugin}
* @secure
*/
v2PluginsDetail: (
plugin: string,
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2PluginsDetailParamsContextEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/plugins/${plugin}`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags plugins
* @name V2PluginsCreate2
* @request POST:/wp/v2/plugins/{plugin}
* @originalName v2PluginsCreate
* @duplicate
* @secure
*/
v2PluginsCreate2: (
plugin: string,
data: {
/** Scope under which the request is made; determines fields present in response. */
context?: IContextEnum1[];
/** The plugin activation status. */
status?: IStatusEnum27[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/plugins/${plugin}`,
method: "POST",
body: data,
secure: true,
type: ContentType.FormData,
...params,
}),
/**
* No description
*
* @tags plugins
* @name V2PluginsUpdate
* @request PUT:/wp/v2/plugins/{plugin}
* @secure
*/
v2PluginsUpdate: (
plugin: string,
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2PluginsUpdateParamsContextEnum[];
/** The plugin activation status. */
status?: IV2PluginsUpdateParamsStatusEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/plugins/${plugin}`,
method: "PUT",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags plugins
* @name V2PluginsPartialUpdate
* @request PATCH:/wp/v2/plugins/{plugin}
* @secure
*/
v2PluginsPartialUpdate: (
plugin: string,
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2PluginsPartialUpdateParamsContextEnum[];
/** The plugin activation status. */
status?: IV2PluginsPartialUpdateParamsStatusEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/plugins/${plugin}`,
method: "PATCH",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags plugins
* @name V2PluginsDelete
* @request DELETE:/wp/v2/plugins/{plugin}
* @secure
*/
v2PluginsDelete: (
plugin: string,
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2PluginsDeleteParamsContextEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/plugins/${plugin}`,
method: "DELETE",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags sidebars
* @name V2SidebarsList
* @request GET:/wp/v2/sidebars
* @secure
*/
v2SidebarsList: (
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2SidebarsListParamsContextEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/sidebars`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags sidebars
* @name V2SidebarsDetail
* @request GET:/wp/v2/sidebars/{id}
* @secure
*/
v2SidebarsDetail: (
id: string,
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2SidebarsDetailParamsContextEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/sidebars/${id}`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags sidebars
* @name V2SidebarsCreate
* @request POST:/wp/v2/sidebars/{id}
* @secure
*/
v2SidebarsCreate: (
id: string,
data: {
/** Nested widgets. */
widgets?: (object | string)[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/sidebars/${id}`,
method: "POST",
body: data,
secure: true,
type: ContentType.FormData,
...params,
}),
/**
* No description
*
* @tags sidebars
* @name V2SidebarsUpdate
* @request PUT:/wp/v2/sidebars/{id}
* @secure
*/
v2SidebarsUpdate: (
id: string,
query?: {
/** Nested widgets. */
widgets?: (object | string)[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/sidebars/${id}`,
method: "PUT",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags sidebars
* @name V2SidebarsPartialUpdate
* @request PATCH:/wp/v2/sidebars/{id}
* @secure
*/
v2SidebarsPartialUpdate: (
id: string,
query?: {
/** Nested widgets. */
widgets?: (object | string)[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/sidebars/${id}`,
method: "PATCH",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags widget-types
* @name V2WidgetTypesList
* @request GET:/wp/v2/widget-types
* @secure
*/
v2WidgetTypesList: (
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2WidgetTypesListParamsContextEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/widget-types`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags widget-types
* @name V2WidgetTypesDetail
* @request GET:/wp/v2/widget-types/{id}
* @secure
*/
v2WidgetTypesDetail: (
id: string,
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2WidgetTypesDetailParamsContextEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/widget-types/${id}`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags widget-types
* @name V2WidgetTypesEncodeCreate
* @request POST:/wp/v2/widget-types/{id}/encode
* @secure
*/
v2WidgetTypesEncodeCreate: (
id: string,
data: {
/** Current instance settings of the widget. */
instance?: string;
/** Serialized widget form data to encode into instance settings. */
form_data?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/widget-types/${id}/encode`,
method: "POST",
body: data,
secure: true,
type: ContentType.FormData,
...params,
}),
/**
* No description
*
* @tags widget-types
* @name V2WidgetTypesRenderCreate
* @request POST:/wp/v2/widget-types/{id}/render
* @secure
*/
v2WidgetTypesRenderCreate: (
id: string,
data: {
/** Current instance settings of the widget. */
instance?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/widget-types/${id}/render`,
method: "POST",
body: data,
secure: true,
type: ContentType.FormData,
...params,
}),
/**
* No description
*
* @tags widgets
* @name V2WidgetsList
* @request GET:/wp/v2/widgets
* @secure
*/
v2WidgetsList: (
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2WidgetsListParamsContextEnum[];
/** The sidebar to return widgets for. */
sidebar?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/widgets`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags widgets
* @name V2WidgetsCreate
* @request POST:/wp/v2/widgets
* @secure
*/
v2WidgetsCreate: (
data: {
/** Unique identifier for the widget. */
id?: string;
/** The type of the widget. Corresponds to ID in widget-types endpoint. */
id_base?: string;
/** The sidebar the widget belongs to. */
sidebar: string;
/** Instance settings of the widget, if supported. */
instance?: string;
/** URL-encoded form data from the widget admin form. Used to update a widget that does not support instance. Write only. */
form_data?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/widgets`,
method: "POST",
body: data,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags widgets
* @name V2WidgetsDetail
* @request GET:/wp/v2/widgets/{id}
* @secure
*/
v2WidgetsDetail: (
id: string,
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2WidgetsDetailParamsContextEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/widgets/${id}`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags widgets
* @name V2WidgetsCreate2
* @request POST:/wp/v2/widgets/{id}
* @originalName v2WidgetsCreate
* @duplicate
* @secure
*/
v2WidgetsCreate2: (
id: string,
data: {
/** The type of the widget. Corresponds to ID in widget-types endpoint. */
id_base?: string;
/** The sidebar the widget belongs to. */
sidebar?: string;
/** Instance settings of the widget, if supported. */
instance?: string;
/** URL-encoded form data from the widget admin form. Used to update a widget that does not support instance. Write only. */
form_data?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/widgets/${id}`,
method: "POST",
body: data,
secure: true,
type: ContentType.FormData,
...params,
}),
/**
* No description
*
* @tags widgets
* @name V2WidgetsUpdate
* @request PUT:/wp/v2/widgets/{id}
* @secure
*/
v2WidgetsUpdate: (
id: string,
query?: {
/** The type of the widget. Corresponds to ID in widget-types endpoint. */
id_base?: string;
/** The sidebar the widget belongs to. */
sidebar?: string;
/** Instance settings of the widget, if supported. */
instance?: string;
/** URL-encoded form data from the widget admin form. Used to update a widget that does not support instance. Write only. */
form_data?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/widgets/${id}`,
method: "PUT",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags widgets
* @name V2WidgetsPartialUpdate
* @request PATCH:/wp/v2/widgets/{id}
* @secure
*/
v2WidgetsPartialUpdate: (
id: string,
query?: {
/** The type of the widget. Corresponds to ID in widget-types endpoint. */
id_base?: string;
/** The sidebar the widget belongs to. */
sidebar?: string;
/** Instance settings of the widget, if supported. */
instance?: string;
/** URL-encoded form data from the widget admin form. Used to update a widget that does not support instance. Write only. */
form_data?: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/widgets/${id}`,
method: "PATCH",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags widgets
* @name V2WidgetsDelete
* @request DELETE:/wp/v2/widgets/{id}
* @secure
*/
v2WidgetsDelete: (
id: string,
query?: {
/** Whether to force removal of the widget, or move it to the inactive sidebar. */
force?: boolean;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/widgets/${id}`,
method: "DELETE",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags block-directory
* @name V2BlockDirectorySearchList
* @request GET:/wp/v2/block-directory/search
* @secure
*/
v2BlockDirectorySearchList: (
query: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2BlockDirectorySearchListParamsContextEnum[];
/**
* Current page of the collection.
* @format int64
* @min 1
*/
page?: number;
/**
* Maximum number of items to be returned in result set.
* @format int64
* @min 1
* @max 100
*/
per_page?: number;
/** Limit result set to blocks matching the search term. */
term: string;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/block-directory/search`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags pattern-directory
* @name V2PatternDirectoryPatternsList
* @request GET:/wp/v2/pattern-directory/patterns
* @secure
*/
v2PatternDirectoryPatternsList: (
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2PatternDirectoryPatternsListParamsContextEnum[];
/**
* Current page of the collection.
* @format int64
* @min 1
*/
page?: number;
/**
* Maximum number of items to be returned in result set.
* @format int64
* @min 1
* @max 100
*/
per_page?: number;
/** Limit results to those matching a string. */
search?: string;
/**
* Limit results to those matching a category ID.
* @format int64
* @min 1
*/
category?: number;
/**
* Limit results to those matching a keyword ID.
* @format int64
* @min 1
*/
keyword?: number;
/** Limit results to those matching a pattern (slug). */
slug?: any[];
/**
* Offset the result set by a specific number of items.
* @format int64
*/
offset?: number;
/** Order sort attribute ascending or descending. */
order?: IV2PatternDirectoryPatternsListParamsOrderEnum[];
/** Sort collection by post attribute. */
orderby?: IV2PatternDirectoryPatternsListParamsOrderbyEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/pattern-directory/patterns`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags block-patterns
* @name V2BlockPatternsPatternsList
* @request GET:/wp/v2/block-patterns/patterns
* @secure
*/
v2BlockPatternsPatternsList: (params: RequestParams = {}) =>
this.request<void, void>({
path: `/wp/v2/block-patterns/patterns`,
method: "GET",
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags block-patterns
* @name V2BlockPatternsCategoriesList
* @request GET:/wp/v2/block-patterns/categories
* @secure
*/
v2BlockPatternsCategoriesList: (params: RequestParams = {}) =>
this.request<void, void>({
path: `/wp/v2/block-patterns/categories`,
method: "GET",
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags menu-locations
* @name V2MenuLocationsList
* @request GET:/wp/v2/menu-locations
* @secure
*/
v2MenuLocationsList: (
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2MenuLocationsListParamsContextEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/menu-locations`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags menu-locations
* @name V2MenuLocationsDetail
* @request GET:/wp/v2/menu-locations/{location}
* @secure
*/
v2MenuLocationsDetail: (
location: string,
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2MenuLocationsDetailParamsContextEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/menu-locations/${location}`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags font-collections
* @name V2FontCollectionsList
* @request GET:/wp/v2/font-collections
* @secure
*/
v2FontCollectionsList: (
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2FontCollectionsListParamsContextEnum[];
/**
* Current page of the collection.
* @format int64
* @min 1
*/
page?: number;
/**
* Maximum number of items to be returned in result set.
* @format int64
* @min 1
* @max 100
*/
per_page?: number;
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/font-collections`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
/**
* No description
*
* @tags font-collections
* @name V2FontCollectionsDetail
* @request GET:/wp/v2/font-collections/{slug}
* @secure
*/
v2FontCollectionsDetail: (
slug: string,
query?: {
/** Scope under which the request is made; determines fields present in response. */
context?: IV2FontCollectionsDetailParamsContextEnum[];
},
params: RequestParams = {},
) =>
this.request<void, void>({
path: `/wp/v2/font-collections/${slug}`,
method: "GET",
query: query,
secure: true,
type: ContentType.UrlEncoded,
...params,
}),
};
}