@neopress/mcp 1.6.0 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -1
- package/dist/bin.cjs +483 -27
- package/dist/http-bin.cjs +483 -27
- package/dist/index.d.ts +163 -4
- package/dist/index.js +483 -27
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -198,11 +198,13 @@ interface SiteLayout {
|
|
|
198
198
|
draftTsx: string | null;
|
|
199
199
|
draftGlobalCss: string | null;
|
|
200
200
|
draftNotFoundTsx: string | null;
|
|
201
|
+
draftI18n: unknown;
|
|
201
202
|
prodTsx: string | null;
|
|
202
203
|
prodJs: string | null;
|
|
203
204
|
prodGlobalCss: string | null;
|
|
204
205
|
prodNotFoundTsx: string | null;
|
|
205
206
|
prodNotFoundJs: string | null;
|
|
207
|
+
prodI18n: unknown;
|
|
206
208
|
}
|
|
207
209
|
interface Headshot {
|
|
208
210
|
id: number;
|
|
@@ -289,7 +291,9 @@ interface SearchConsoleQueryResult {
|
|
|
289
291
|
};
|
|
290
292
|
error?: string;
|
|
291
293
|
}
|
|
292
|
-
type AnalyticsEventType = "custom" | "page" | "click" | "form" | "scroll" | "visibility" | "dwell";
|
|
294
|
+
type AnalyticsEventType = "custom" | "page" | "click" | "form" | "scroll" | "visibility" | "dwell" | "outbound";
|
|
295
|
+
/** `visibility` remains readable for historical definitions but cannot be created. */
|
|
296
|
+
type AnalyticsEventCreateType = Exclude<AnalyticsEventType, "visibility">;
|
|
293
297
|
type FunnelFilterField = "event.path" | "event.url" | "event.referrer" | "event.referrer_source" | "event.property" | "session.referrer" | "session.referrer_source" | "session.traffic_category" | "session.utm_source" | "session.utm_medium" | "session.utm_campaign" | "session.utm_content" | "session.utm_term";
|
|
294
298
|
type FunnelFilterOperator = "eq" | "neq" | "contains" | "not_contains" | "starts_with" | "ends_with" | "exists" | "not_exists" | "gt" | "gte" | "lt" | "lte";
|
|
295
299
|
type AnalyticsFunnelFilterCondition = {
|
|
@@ -315,6 +319,7 @@ interface AnalyticsEventDefinition {
|
|
|
315
319
|
name: string;
|
|
316
320
|
chart_visible: boolean;
|
|
317
321
|
is_pinned: boolean;
|
|
322
|
+
sort_order?: number | null;
|
|
318
323
|
event_type: AnalyticsEventType;
|
|
319
324
|
event_name: string;
|
|
320
325
|
path: string;
|
|
@@ -330,7 +335,7 @@ interface AnalyticsEventDefinitionInput {
|
|
|
330
335
|
/** Optional client UUID; reuse it with the same payload after an uncertain create response. */
|
|
331
336
|
id?: string;
|
|
332
337
|
name: string;
|
|
333
|
-
eventType:
|
|
338
|
+
eventType: AnalyticsEventCreateType;
|
|
334
339
|
eventName?: string;
|
|
335
340
|
path?: string;
|
|
336
341
|
selector?: string;
|
|
@@ -562,6 +567,11 @@ declare class FormsEndpoint {
|
|
|
562
567
|
limit?: number;
|
|
563
568
|
}): Promise<PaginatedResponse<FormResponse>>;
|
|
564
569
|
deleteResponse(formId: number, responseId: number): Promise<void>;
|
|
570
|
+
getResponse(formId: number, responseId: number): Promise<FormResponse>;
|
|
571
|
+
markResponseRead(formId: number, responseId: number): Promise<{
|
|
572
|
+
id: number;
|
|
573
|
+
readAt: string;
|
|
574
|
+
}>;
|
|
565
575
|
}
|
|
566
576
|
//#endregion
|
|
567
577
|
//#region ../sdk/src/endpoints/assets.d.ts
|
|
@@ -647,6 +657,8 @@ declare class SiteEndpoint {
|
|
|
647
657
|
draftTsx?: string;
|
|
648
658
|
draftNotFoundTsx?: string;
|
|
649
659
|
draftGlobalCss?: string;
|
|
660
|
+
/** Replaces draft translations; null clears them, omission preserves them. */
|
|
661
|
+
draftI18n?: unknown;
|
|
650
662
|
}): Promise<SiteLayout>;
|
|
651
663
|
delete(): Promise<{
|
|
652
664
|
siteId: number;
|
|
@@ -683,11 +695,19 @@ declare class RedirectsEndpoint {
|
|
|
683
695
|
}
|
|
684
696
|
//#endregion
|
|
685
697
|
//#region ../sdk/src/endpoints/publish.d.ts
|
|
698
|
+
interface PublishSelection {
|
|
699
|
+
pageIds?: number[];
|
|
700
|
+
collectionIds?: number[];
|
|
701
|
+
formIds?: number[];
|
|
702
|
+
includeLayout?: boolean;
|
|
703
|
+
}
|
|
686
704
|
declare class PublishEndpoint {
|
|
687
705
|
private readonly client;
|
|
688
706
|
constructor(client: NeopressClient);
|
|
689
707
|
preview(): Promise<unknown>;
|
|
690
|
-
site(): Promise<unknown>;
|
|
708
|
+
site(selection?: PublishSelection): Promise<unknown>;
|
|
709
|
+
unpublishPages(pageIds: number[]): Promise<unknown>;
|
|
710
|
+
undeploy(): Promise<unknown>;
|
|
691
711
|
}
|
|
692
712
|
//#endregion
|
|
693
713
|
//#region ../sdk/src/endpoints/entry-references.d.ts
|
|
@@ -750,6 +770,7 @@ declare class AnalyticsFunnelsEndpoint {
|
|
|
750
770
|
create(data: AnalyticsFunnelDefinitionInput): Promise<AnalyticsFunnelDefinition>;
|
|
751
771
|
update(funnelId: string, data: AnalyticsFunnelDefinitionInput): Promise<AnalyticsFunnelDefinition>;
|
|
752
772
|
delete(funnelId: string): Promise<void>;
|
|
773
|
+
results(funnelId: string, params?: Pick<AnalyticsDateRangeParams, "dateFrom" | "dateTo" | "timezone">): Promise<AnalyticsQueryResult>;
|
|
753
774
|
}
|
|
754
775
|
//#endregion
|
|
755
776
|
//#region ../sdk/src/endpoints/templates.d.ts
|
|
@@ -934,6 +955,139 @@ declare class LogosEndpoint {
|
|
|
934
955
|
delete(id: number): Promise<LogoDeleteResult>;
|
|
935
956
|
}
|
|
936
957
|
//#endregion
|
|
958
|
+
//#region ../sdk/src/endpoints/domains.d.ts
|
|
959
|
+
interface DomainStatus {
|
|
960
|
+
domain: string | null;
|
|
961
|
+
domainType: string | null;
|
|
962
|
+
verified: boolean | null;
|
|
963
|
+
}
|
|
964
|
+
declare class DomainsEndpoint {
|
|
965
|
+
private readonly client;
|
|
966
|
+
constructor(client: NeopressClient);
|
|
967
|
+
private get basePath();
|
|
968
|
+
status(): Promise<DomainStatus>;
|
|
969
|
+
connect(domain: string): Promise<DomainStatus>;
|
|
970
|
+
refresh(): Promise<DomainStatus & Record<string, unknown>>;
|
|
971
|
+
remove(domain: string): Promise<{
|
|
972
|
+
removedDomain: string;
|
|
973
|
+
removedFromProvider: boolean;
|
|
974
|
+
providerError: string | null;
|
|
975
|
+
}>;
|
|
976
|
+
}
|
|
977
|
+
//#endregion
|
|
978
|
+
//#region ../sdk/src/endpoints/search-console.d.ts
|
|
979
|
+
interface SearchConsoleConnectionStatus {
|
|
980
|
+
authorized: boolean;
|
|
981
|
+
connected: boolean;
|
|
982
|
+
propertyUrl: string | null;
|
|
983
|
+
status: string | null;
|
|
984
|
+
disconnectReason: string | null;
|
|
985
|
+
provisioning: unknown;
|
|
986
|
+
}
|
|
987
|
+
declare class SearchConsoleConnectionEndpoint {
|
|
988
|
+
private readonly client;
|
|
989
|
+
constructor(client: NeopressClient);
|
|
990
|
+
private get basePath();
|
|
991
|
+
status(): Promise<SearchConsoleConnectionStatus>;
|
|
992
|
+
authorize(locale?: string): Promise<{
|
|
993
|
+
authorizationUrl: string;
|
|
994
|
+
requiresUserAction: true;
|
|
995
|
+
}>;
|
|
996
|
+
disconnect(): Promise<{
|
|
997
|
+
disconnected: true;
|
|
998
|
+
}>;
|
|
999
|
+
}
|
|
1000
|
+
//#endregion
|
|
1001
|
+
//#region ../sdk/src/endpoints/billing.d.ts
|
|
1002
|
+
interface BillingStatus {
|
|
1003
|
+
planKey: string | null;
|
|
1004
|
+
customTrialEndsAt: string | null;
|
|
1005
|
+
prepaidGrowthEndsAt: string | null;
|
|
1006
|
+
subscription: {
|
|
1007
|
+
status: string | null;
|
|
1008
|
+
cancelAtPeriodEnd: boolean | null;
|
|
1009
|
+
currentPeriodStart: string | null;
|
|
1010
|
+
currentPeriodEnd: string | null;
|
|
1011
|
+
} | null;
|
|
1012
|
+
}
|
|
1013
|
+
declare class BillingEndpoint {
|
|
1014
|
+
private readonly client;
|
|
1015
|
+
constructor(client: NeopressClient);
|
|
1016
|
+
private get basePath();
|
|
1017
|
+
status(): Promise<BillingStatus>;
|
|
1018
|
+
checkout(plan: "launch" | "growth"): Promise<{
|
|
1019
|
+
checkoutUrl: string;
|
|
1020
|
+
requiresUserAction: true;
|
|
1021
|
+
}>;
|
|
1022
|
+
portal(): Promise<{
|
|
1023
|
+
portalUrl: string;
|
|
1024
|
+
requiresUserAction: true;
|
|
1025
|
+
}>;
|
|
1026
|
+
cancel(): Promise<{
|
|
1027
|
+
cancelAtPeriodEnd: boolean;
|
|
1028
|
+
effectiveAt: string | null;
|
|
1029
|
+
}>;
|
|
1030
|
+
resume(): Promise<{
|
|
1031
|
+
cancelAtPeriodEnd: boolean;
|
|
1032
|
+
effectiveAt: string | null;
|
|
1033
|
+
}>;
|
|
1034
|
+
}
|
|
1035
|
+
//#endregion
|
|
1036
|
+
//#region ../sdk/src/endpoints/team.d.ts
|
|
1037
|
+
type TeamRole = "admin" | "editor" | "viewer";
|
|
1038
|
+
interface TeamListResult {
|
|
1039
|
+
members: unknown[];
|
|
1040
|
+
invitations: unknown[];
|
|
1041
|
+
}
|
|
1042
|
+
declare class TeamEndpoint {
|
|
1043
|
+
private readonly client;
|
|
1044
|
+
constructor(client: NeopressClient);
|
|
1045
|
+
private get basePath();
|
|
1046
|
+
list(): Promise<TeamListResult>;
|
|
1047
|
+
invite(input: {
|
|
1048
|
+
email: string;
|
|
1049
|
+
role: TeamRole;
|
|
1050
|
+
locale?: string;
|
|
1051
|
+
}): Promise<unknown>;
|
|
1052
|
+
updateRole(profileId: string, role: TeamRole): Promise<{
|
|
1053
|
+
updated: true;
|
|
1054
|
+
}>;
|
|
1055
|
+
remove(profileId: string): Promise<{
|
|
1056
|
+
removed: true;
|
|
1057
|
+
}>;
|
|
1058
|
+
transferOwnership(profileId: string): Promise<{
|
|
1059
|
+
transferred: true;
|
|
1060
|
+
alreadyTransferred?: true;
|
|
1061
|
+
}>;
|
|
1062
|
+
}
|
|
1063
|
+
//#endregion
|
|
1064
|
+
//#region ../sdk/src/endpoints/history.d.ts
|
|
1065
|
+
interface EntitySnapshotSummary {
|
|
1066
|
+
id: number;
|
|
1067
|
+
entityType: "page" | "site_layout" | "collection" | "form";
|
|
1068
|
+
entityId: number;
|
|
1069
|
+
createdAt: string;
|
|
1070
|
+
}
|
|
1071
|
+
interface EntitySnapshot extends EntitySnapshotSummary {
|
|
1072
|
+
data: unknown;
|
|
1073
|
+
}
|
|
1074
|
+
declare class HistoryEndpoint {
|
|
1075
|
+
private readonly client;
|
|
1076
|
+
constructor(client: NeopressClient);
|
|
1077
|
+
private get basePath();
|
|
1078
|
+
list(limit?: number): Promise<{
|
|
1079
|
+
snapshots: EntitySnapshotSummary[];
|
|
1080
|
+
hasMore: boolean;
|
|
1081
|
+
}>;
|
|
1082
|
+
get(snapshotId: number): Promise<EntitySnapshot>;
|
|
1083
|
+
restore(snapshotId: number): Promise<{
|
|
1084
|
+
restored: true;
|
|
1085
|
+
snapshotId: number;
|
|
1086
|
+
entityType: string;
|
|
1087
|
+
entityId: number;
|
|
1088
|
+
}>;
|
|
1089
|
+
}
|
|
1090
|
+
//#endregion
|
|
937
1091
|
//#region ../sdk/src/client.d.ts
|
|
938
1092
|
/**
|
|
939
1093
|
* ⚠️ No `supabaseUrl` / `supabaseAnonKey`. This client speaks HTTP to
|
|
@@ -971,6 +1125,11 @@ declare class NeopressClient {
|
|
|
971
1125
|
readonly templates: TemplatesEndpoint;
|
|
972
1126
|
readonly headshots: HeadshotsEndpoint;
|
|
973
1127
|
readonly logos: LogosEndpoint;
|
|
1128
|
+
readonly domains: DomainsEndpoint;
|
|
1129
|
+
readonly searchConsole: SearchConsoleConnectionEndpoint;
|
|
1130
|
+
readonly billing: BillingEndpoint;
|
|
1131
|
+
readonly team: TeamEndpoint;
|
|
1132
|
+
readonly history: HistoryEndpoint;
|
|
974
1133
|
constructor(options: NeopressClientOptions);
|
|
975
1134
|
get siteBasePath(): string;
|
|
976
1135
|
request<T>(method: string, path: string, body?: unknown): Promise<T>;
|
|
@@ -978,7 +1137,7 @@ declare class NeopressClient {
|
|
|
978
1137
|
getList<T>(path: string): Promise<PaginatedResponse<T>>;
|
|
979
1138
|
post<T>(path: string, body?: unknown): Promise<ApiResponse<T>>;
|
|
980
1139
|
patch<T>(path: string, body: unknown): Promise<ApiResponse<T>>;
|
|
981
|
-
delete<T>(path: string): Promise<ApiResponse<T>>;
|
|
1140
|
+
delete<T>(path: string, body?: unknown): Promise<ApiResponse<T>>;
|
|
982
1141
|
}
|
|
983
1142
|
//#endregion
|
|
984
1143
|
//#region src/config.d.ts
|