@neopress/mcp 1.6.1 → 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/dist/index.d.ts CHANGED
@@ -567,6 +567,11 @@ declare class FormsEndpoint {
567
567
  limit?: number;
568
568
  }): Promise<PaginatedResponse<FormResponse>>;
569
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
+ }>;
570
575
  }
571
576
  //#endregion
572
577
  //#region ../sdk/src/endpoints/assets.d.ts
@@ -690,11 +695,19 @@ declare class RedirectsEndpoint {
690
695
  }
691
696
  //#endregion
692
697
  //#region ../sdk/src/endpoints/publish.d.ts
698
+ interface PublishSelection {
699
+ pageIds?: number[];
700
+ collectionIds?: number[];
701
+ formIds?: number[];
702
+ includeLayout?: boolean;
703
+ }
693
704
  declare class PublishEndpoint {
694
705
  private readonly client;
695
706
  constructor(client: NeopressClient);
696
707
  preview(): Promise<unknown>;
697
- site(): Promise<unknown>;
708
+ site(selection?: PublishSelection): Promise<unknown>;
709
+ unpublishPages(pageIds: number[]): Promise<unknown>;
710
+ undeploy(): Promise<unknown>;
698
711
  }
699
712
  //#endregion
700
713
  //#region ../sdk/src/endpoints/entry-references.d.ts
@@ -757,6 +770,7 @@ declare class AnalyticsFunnelsEndpoint {
757
770
  create(data: AnalyticsFunnelDefinitionInput): Promise<AnalyticsFunnelDefinition>;
758
771
  update(funnelId: string, data: AnalyticsFunnelDefinitionInput): Promise<AnalyticsFunnelDefinition>;
759
772
  delete(funnelId: string): Promise<void>;
773
+ results(funnelId: string, params?: Pick<AnalyticsDateRangeParams, "dateFrom" | "dateTo" | "timezone">): Promise<AnalyticsQueryResult>;
760
774
  }
761
775
  //#endregion
762
776
  //#region ../sdk/src/endpoints/templates.d.ts
@@ -941,6 +955,139 @@ declare class LogosEndpoint {
941
955
  delete(id: number): Promise<LogoDeleteResult>;
942
956
  }
943
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
944
1091
  //#region ../sdk/src/client.d.ts
945
1092
  /**
946
1093
  * ⚠️ No `supabaseUrl` / `supabaseAnonKey`. This client speaks HTTP to
@@ -978,6 +1125,11 @@ declare class NeopressClient {
978
1125
  readonly templates: TemplatesEndpoint;
979
1126
  readonly headshots: HeadshotsEndpoint;
980
1127
  readonly logos: LogosEndpoint;
1128
+ readonly domains: DomainsEndpoint;
1129
+ readonly searchConsole: SearchConsoleConnectionEndpoint;
1130
+ readonly billing: BillingEndpoint;
1131
+ readonly team: TeamEndpoint;
1132
+ readonly history: HistoryEndpoint;
981
1133
  constructor(options: NeopressClientOptions);
982
1134
  get siteBasePath(): string;
983
1135
  request<T>(method: string, path: string, body?: unknown): Promise<T>;
@@ -985,7 +1137,7 @@ declare class NeopressClient {
985
1137
  getList<T>(path: string): Promise<PaginatedResponse<T>>;
986
1138
  post<T>(path: string, body?: unknown): Promise<ApiResponse<T>>;
987
1139
  patch<T>(path: string, body: unknown): Promise<ApiResponse<T>>;
988
- delete<T>(path: string): Promise<ApiResponse<T>>;
1140
+ delete<T>(path: string, body?: unknown): Promise<ApiResponse<T>>;
989
1141
  }
990
1142
  //#endregion
991
1143
  //#region src/config.d.ts