@mx-space/api-client 3.5.1 → 3.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.cjs +7 -0
- package/dist/index.d.cts +47 -13
- package/dist/index.d.mts +47 -13
- package/dist/index.mjs +7 -0
- package/package.json +14 -14
- package/LICENSE +0 -33
package/dist/index.cjs
CHANGED
|
@@ -633,6 +633,13 @@ var NoteController = class {
|
|
|
633
633
|
...sortOptions
|
|
634
634
|
} });
|
|
635
635
|
}
|
|
636
|
+
/**
|
|
637
|
+
* 获取专栏的最近更新时间(取该专栏下所有可见日记 max(modified, created))
|
|
638
|
+
* @param topicId 专栏 ID
|
|
639
|
+
*/
|
|
640
|
+
getTopicRecentUpdate(topicId) {
|
|
641
|
+
return this.proxy.topics(topicId)["recent-update"].get();
|
|
642
|
+
}
|
|
636
643
|
};
|
|
637
644
|
//#endregion
|
|
638
645
|
//#region controllers/owner.ts
|
package/dist/index.d.cts
CHANGED
|
@@ -231,8 +231,13 @@ interface CategoryModel$1 extends BaseModel {
|
|
|
231
231
|
slug: string;
|
|
232
232
|
name: string;
|
|
233
233
|
}
|
|
234
|
+
type CategoryChildPost = Pick<PostModel, 'id' | 'title' | 'slug' | 'modified' | 'created' | 'summary' | 'tags' | 'pin' | 'count' | 'images'>;
|
|
234
235
|
type CategoryWithChildrenModel = CategoryModel$1 & {
|
|
235
|
-
children:
|
|
236
|
+
children: CategoryChildPost[]; /** Aggregated tag-name → post-count for posts under this category. */
|
|
237
|
+
tagsSum?: Array<{
|
|
238
|
+
name: string;
|
|
239
|
+
count: number;
|
|
240
|
+
}>;
|
|
236
241
|
};
|
|
237
242
|
type CategoryEntries = {
|
|
238
243
|
entries: Record<string, CategoryWithChildrenModel>;
|
|
@@ -241,6 +246,7 @@ interface TagModel {
|
|
|
241
246
|
count: number;
|
|
242
247
|
name: string;
|
|
243
248
|
}
|
|
249
|
+
type TagDetailPost = Pick<PostModel, 'id' | 'title' | 'slug' | 'category' | 'created' | 'modified' | 'summary' | 'tags' | 'pin' | 'count'>;
|
|
244
250
|
//#endregion
|
|
245
251
|
//#region models/activity.d.ts
|
|
246
252
|
interface ActivityPresence {
|
|
@@ -1661,7 +1667,11 @@ declare class CategoryController<ResponseWrapper> implements IController {
|
|
|
1661
1667
|
getCategoryDetail(id: string): Promise<ResponseProxyExtraRaw<CategoryWithChildrenModel>>;
|
|
1662
1668
|
getCategoryDetail(ids: string[]): Promise<ResponseProxyExtraRaw<Map<string, CategoryWithChildrenModel>>>;
|
|
1663
1669
|
getCategoryByIdOrSlug(idOrSlug: string): Promise<CategoryModel$1 & {
|
|
1664
|
-
children:
|
|
1670
|
+
children: CategoryChildPost[];
|
|
1671
|
+
tagsSum?: Array<{
|
|
1672
|
+
name: string;
|
|
1673
|
+
count: number;
|
|
1674
|
+
}>;
|
|
1665
1675
|
} & {
|
|
1666
1676
|
$raw: ResponseWrapper extends {
|
|
1667
1677
|
data: infer T;
|
|
@@ -1688,7 +1698,11 @@ declare class CategoryController<ResponseWrapper> implements IController {
|
|
|
1688
1698
|
name: string;
|
|
1689
1699
|
created: string;
|
|
1690
1700
|
id: string;
|
|
1691
|
-
children:
|
|
1701
|
+
children: CategoryChildPost[];
|
|
1702
|
+
tags_sum?: {
|
|
1703
|
+
name: string;
|
|
1704
|
+
count: number;
|
|
1705
|
+
}[] | undefined;
|
|
1692
1706
|
} : T_1 : never : never;
|
|
1693
1707
|
} : ResponseWrapper;
|
|
1694
1708
|
$request: {
|
|
@@ -1700,7 +1714,7 @@ declare class CategoryController<ResponseWrapper> implements IController {
|
|
|
1700
1714
|
}>;
|
|
1701
1715
|
getTagByName(name: string): Promise<{
|
|
1702
1716
|
tag: string;
|
|
1703
|
-
data:
|
|
1717
|
+
data: TagDetailPost[];
|
|
1704
1718
|
} & {
|
|
1705
1719
|
$raw: ResponseWrapper extends {
|
|
1706
1720
|
data: infer T;
|
|
@@ -1710,37 +1724,37 @@ declare class CategoryController<ResponseWrapper> implements IController {
|
|
|
1710
1724
|
[key: string]: any;
|
|
1711
1725
|
data: {
|
|
1712
1726
|
tag: string;
|
|
1713
|
-
data:
|
|
1727
|
+
data: TagDetailPost[];
|
|
1714
1728
|
};
|
|
1715
1729
|
} : ResponseWrapper extends {
|
|
1716
1730
|
data: {
|
|
1717
1731
|
tag: string;
|
|
1718
|
-
data:
|
|
1732
|
+
data: TagDetailPost[];
|
|
1719
1733
|
};
|
|
1720
1734
|
} ? ResponseWrapper : Omit<ResponseWrapper, "data"> & {
|
|
1721
1735
|
data: {
|
|
1722
1736
|
tag: string;
|
|
1723
|
-
data:
|
|
1737
|
+
data: TagDetailPost[];
|
|
1724
1738
|
};
|
|
1725
1739
|
}) extends infer T_1 ? T_1 extends (ResponseWrapper extends unknown ? {
|
|
1726
1740
|
[key: string]: any;
|
|
1727
1741
|
data: {
|
|
1728
1742
|
tag: string;
|
|
1729
|
-
data:
|
|
1743
|
+
data: TagDetailPost[];
|
|
1730
1744
|
};
|
|
1731
1745
|
} : ResponseWrapper extends {
|
|
1732
1746
|
data: {
|
|
1733
1747
|
tag: string;
|
|
1734
|
-
data:
|
|
1748
|
+
data: TagDetailPost[];
|
|
1735
1749
|
};
|
|
1736
1750
|
} ? ResponseWrapper : Omit<ResponseWrapper, "data"> & {
|
|
1737
1751
|
data: {
|
|
1738
1752
|
tag: string;
|
|
1739
|
-
data:
|
|
1753
|
+
data: TagDetailPost[];
|
|
1740
1754
|
};
|
|
1741
1755
|
}) ? T_1 extends unknown ? {
|
|
1742
1756
|
tag: string;
|
|
1743
|
-
data:
|
|
1757
|
+
data: TagDetailPost[];
|
|
1744
1758
|
} : T_1 : never : never;
|
|
1745
1759
|
} : ResponseWrapper;
|
|
1746
1760
|
$request: {
|
|
@@ -1750,7 +1764,7 @@ declare class CategoryController<ResponseWrapper> implements IController {
|
|
|
1750
1764
|
};
|
|
1751
1765
|
$serialized: {
|
|
1752
1766
|
tag: string;
|
|
1753
|
-
data:
|
|
1767
|
+
data: TagDetailPost[];
|
|
1754
1768
|
};
|
|
1755
1769
|
}>;
|
|
1756
1770
|
}
|
|
@@ -2069,6 +2083,26 @@ declare class NoteController<ResponseWrapper> implements IController {
|
|
|
2069
2083
|
} ? ResponseWrapper : Omit<ResponseWrapper, "data"> & {
|
|
2070
2084
|
data: PaginateResult<NoteTopicListItem>;
|
|
2071
2085
|
}>;
|
|
2086
|
+
/**
|
|
2087
|
+
* 获取专栏的最近更新时间(取该专栏下所有可见日记 max(modified, created))
|
|
2088
|
+
* @param topicId 专栏 ID
|
|
2089
|
+
*/
|
|
2090
|
+
getTopicRecentUpdate(topicId: string): RequestProxyResult<{
|
|
2091
|
+
ts: string | null;
|
|
2092
|
+
}, ResponseWrapper, ResponseWrapper extends unknown ? {
|
|
2093
|
+
[key: string]: any;
|
|
2094
|
+
data: {
|
|
2095
|
+
ts: string | null;
|
|
2096
|
+
};
|
|
2097
|
+
} : ResponseWrapper extends {
|
|
2098
|
+
data: {
|
|
2099
|
+
ts: string | null;
|
|
2100
|
+
};
|
|
2101
|
+
} ? ResponseWrapper : Omit<ResponseWrapper, "data"> & {
|
|
2102
|
+
data: {
|
|
2103
|
+
ts: string | null;
|
|
2104
|
+
};
|
|
2105
|
+
}>;
|
|
2072
2106
|
}
|
|
2073
2107
|
//#endregion
|
|
2074
2108
|
//#region controllers/owner.d.ts
|
|
@@ -2753,4 +2787,4 @@ declare const allControllerNames: readonly ["ai", "ack", "activity", "aggregate"
|
|
|
2753
2787
|
*/
|
|
2754
2788
|
declare const camelcaseKeys: <T = any>(obj: any) => T;
|
|
2755
2789
|
//#endregion
|
|
2756
|
-
export { AIController, AIDeepReadingModel, AIInsightsModel, AIInsightsStreamEvent, AISummaryModel, AISummaryStreamEvent, AITranslationModel, AITranslationStreamEvent, AcademicMetadata, AckController, ActivityController, ActivityPresence, AdminExtraModel, AggregateAIConfig, AggregateController, AggregateRoot, AggregateRootWithTheme, AggregateSiteInfo, AggregateStat, AggregateTop, AggregateTopNote, AggregateTopPost, AnonymousCommentDto, AuthUser, BackupOptionsModel, BaiduSearchOptionsModel, BaseCommentIndexModel, BaseModel, BetterAuthSession, BetterAuthSessionResult, BetterAuthSignInResult, BetterAuthUser, BetterAuthUserRole, BingSearchOptionsModel, BookMetadata, CategoryController, CategoryEntries, CategoryModel$1 as CategoryModel, CategoryType, CategoryWithChildrenModel, CheckLoggedResult, CodeMetadata, CollectionRefTypes, CommentController, CommentDto, CommentModel, CommentOptionsModel, CommentRef, CommentReplyWindow, CommentState, CommentThreadItem, CommentThreadReplies, Coordinate, Count, EnumPageType, GithubMetadata, type HTTPClient, IConfig, IConfigKeys, type IRequestAdapter, Image, LastYearPublication, LatestCombinedItem, LatestData, LatestNoteItem, LatestPostItem, LinkController, LinkMetadata, LinkModel, LinkState, LinkType, MailOptionsModel, MediaMetadata, ModelWithLiked, ModelWithTranslation, MusicMetadata, NoteController, type NoteMiddleListOptions, NoteModel, type NoteTimelineItem, type NoteTopicListItem, type NoteTopicListOptions, NoteWrappedPayload, NoteWrappedWithLikedAndTranslationPayload, NoteWrappedWithLikedPayload, OwnerAllowLoginResult, OwnerSessionResult, PageController, PageModel, Pager, PaginateResult, PostController, type PostListItem, type PostListOptions, PostModel, ProjectController, ProjectModel, ReaderCommentDto, ReaderModel, RecentActivities, RecentComment, RecentLike, RecentNote, RecentPost, RecentRecent, RecentlyAttitudeEnum, RecentlyAttitudeResultEnum, RecentlyController, RecentlyMetadata, RecentlyModel, RecentlyRefType, RecentlyRefTypes, RecentlyTypeEnum, RequestError, RoomOmittedNote, RoomOmittedPage, RoomOmittedPost, RoomsData, SayController, SayModel, SearchController, SeoOptionModel, ServerlessController, SnippetController, SnippetModel, SnippetType, SubscribeAllBit, SubscribeController, SubscribeNoteCreateBit, SubscribePostCreateBit, SubscribeRecentCreateBit, SubscribeSayCreateBit, SubscribeType, SubscribeTypeToBitMap, TLogin, TagModel, TextBaseModel, TextBaseModelLexical, TextBaseModelMarkdown, ThirdPartyServiceIntegrationModel, TimelineData, TimelineType, TopicController, TopicModel, TranslationMeta, Url, UrlOptionModel, UserController, UserModel, allControllerNames, allControllers, createClient, createClient as default, camelcaseKeys as simpleCamelcaseKeys };
|
|
2790
|
+
export { AIController, AIDeepReadingModel, AIInsightsModel, AIInsightsStreamEvent, AISummaryModel, AISummaryStreamEvent, AITranslationModel, AITranslationStreamEvent, AcademicMetadata, AckController, ActivityController, ActivityPresence, AdminExtraModel, AggregateAIConfig, AggregateController, AggregateRoot, AggregateRootWithTheme, AggregateSiteInfo, AggregateStat, AggregateTop, AggregateTopNote, AggregateTopPost, AnonymousCommentDto, AuthUser, BackupOptionsModel, BaiduSearchOptionsModel, BaseCommentIndexModel, BaseModel, BetterAuthSession, BetterAuthSessionResult, BetterAuthSignInResult, BetterAuthUser, BetterAuthUserRole, BingSearchOptionsModel, BookMetadata, CategoryChildPost, CategoryController, CategoryEntries, CategoryModel$1 as CategoryModel, CategoryType, CategoryWithChildrenModel, CheckLoggedResult, CodeMetadata, CollectionRefTypes, CommentController, CommentDto, CommentModel, CommentOptionsModel, CommentRef, CommentReplyWindow, CommentState, CommentThreadItem, CommentThreadReplies, Coordinate, Count, EnumPageType, GithubMetadata, type HTTPClient, IConfig, IConfigKeys, type IRequestAdapter, Image, LastYearPublication, LatestCombinedItem, LatestData, LatestNoteItem, LatestPostItem, LinkController, LinkMetadata, LinkModel, LinkState, LinkType, MailOptionsModel, MediaMetadata, ModelWithLiked, ModelWithTranslation, MusicMetadata, NoteController, type NoteMiddleListOptions, NoteModel, type NoteTimelineItem, type NoteTopicListItem, type NoteTopicListOptions, NoteWrappedPayload, NoteWrappedWithLikedAndTranslationPayload, NoteWrappedWithLikedPayload, OwnerAllowLoginResult, OwnerSessionResult, PageController, PageModel, Pager, PaginateResult, PostController, type PostListItem, type PostListOptions, PostModel, ProjectController, ProjectModel, ReaderCommentDto, ReaderModel, RecentActivities, RecentComment, RecentLike, RecentNote, RecentPost, RecentRecent, RecentlyAttitudeEnum, RecentlyAttitudeResultEnum, RecentlyController, RecentlyMetadata, RecentlyModel, RecentlyRefType, RecentlyRefTypes, RecentlyTypeEnum, RequestError, RoomOmittedNote, RoomOmittedPage, RoomOmittedPost, RoomsData, SayController, SayModel, SearchController, SeoOptionModel, ServerlessController, SnippetController, SnippetModel, SnippetType, SubscribeAllBit, SubscribeController, SubscribeNoteCreateBit, SubscribePostCreateBit, SubscribeRecentCreateBit, SubscribeSayCreateBit, SubscribeType, SubscribeTypeToBitMap, TLogin, TagDetailPost, TagModel, TextBaseModel, TextBaseModelLexical, TextBaseModelMarkdown, ThirdPartyServiceIntegrationModel, TimelineData, TimelineType, TopicController, TopicModel, TranslationMeta, Url, UrlOptionModel, UserController, UserModel, allControllerNames, allControllers, createClient, createClient as default, camelcaseKeys as simpleCamelcaseKeys };
|
package/dist/index.d.mts
CHANGED
|
@@ -231,8 +231,13 @@ interface CategoryModel$1 extends BaseModel {
|
|
|
231
231
|
slug: string;
|
|
232
232
|
name: string;
|
|
233
233
|
}
|
|
234
|
+
type CategoryChildPost = Pick<PostModel, 'id' | 'title' | 'slug' | 'modified' | 'created' | 'summary' | 'tags' | 'pin' | 'count' | 'images'>;
|
|
234
235
|
type CategoryWithChildrenModel = CategoryModel$1 & {
|
|
235
|
-
children:
|
|
236
|
+
children: CategoryChildPost[]; /** Aggregated tag-name → post-count for posts under this category. */
|
|
237
|
+
tagsSum?: Array<{
|
|
238
|
+
name: string;
|
|
239
|
+
count: number;
|
|
240
|
+
}>;
|
|
236
241
|
};
|
|
237
242
|
type CategoryEntries = {
|
|
238
243
|
entries: Record<string, CategoryWithChildrenModel>;
|
|
@@ -241,6 +246,7 @@ interface TagModel {
|
|
|
241
246
|
count: number;
|
|
242
247
|
name: string;
|
|
243
248
|
}
|
|
249
|
+
type TagDetailPost = Pick<PostModel, 'id' | 'title' | 'slug' | 'category' | 'created' | 'modified' | 'summary' | 'tags' | 'pin' | 'count'>;
|
|
244
250
|
//#endregion
|
|
245
251
|
//#region models/activity.d.ts
|
|
246
252
|
interface ActivityPresence {
|
|
@@ -1661,7 +1667,11 @@ declare class CategoryController<ResponseWrapper> implements IController {
|
|
|
1661
1667
|
getCategoryDetail(id: string): Promise<ResponseProxyExtraRaw<CategoryWithChildrenModel>>;
|
|
1662
1668
|
getCategoryDetail(ids: string[]): Promise<ResponseProxyExtraRaw<Map<string, CategoryWithChildrenModel>>>;
|
|
1663
1669
|
getCategoryByIdOrSlug(idOrSlug: string): Promise<CategoryModel$1 & {
|
|
1664
|
-
children:
|
|
1670
|
+
children: CategoryChildPost[];
|
|
1671
|
+
tagsSum?: Array<{
|
|
1672
|
+
name: string;
|
|
1673
|
+
count: number;
|
|
1674
|
+
}>;
|
|
1665
1675
|
} & {
|
|
1666
1676
|
$raw: ResponseWrapper extends {
|
|
1667
1677
|
data: infer T;
|
|
@@ -1688,7 +1698,11 @@ declare class CategoryController<ResponseWrapper> implements IController {
|
|
|
1688
1698
|
name: string;
|
|
1689
1699
|
created: string;
|
|
1690
1700
|
id: string;
|
|
1691
|
-
children:
|
|
1701
|
+
children: CategoryChildPost[];
|
|
1702
|
+
tags_sum?: {
|
|
1703
|
+
name: string;
|
|
1704
|
+
count: number;
|
|
1705
|
+
}[] | undefined;
|
|
1692
1706
|
} : T_1 : never : never;
|
|
1693
1707
|
} : ResponseWrapper;
|
|
1694
1708
|
$request: {
|
|
@@ -1700,7 +1714,7 @@ declare class CategoryController<ResponseWrapper> implements IController {
|
|
|
1700
1714
|
}>;
|
|
1701
1715
|
getTagByName(name: string): Promise<{
|
|
1702
1716
|
tag: string;
|
|
1703
|
-
data:
|
|
1717
|
+
data: TagDetailPost[];
|
|
1704
1718
|
} & {
|
|
1705
1719
|
$raw: ResponseWrapper extends {
|
|
1706
1720
|
data: infer T;
|
|
@@ -1710,37 +1724,37 @@ declare class CategoryController<ResponseWrapper> implements IController {
|
|
|
1710
1724
|
[key: string]: any;
|
|
1711
1725
|
data: {
|
|
1712
1726
|
tag: string;
|
|
1713
|
-
data:
|
|
1727
|
+
data: TagDetailPost[];
|
|
1714
1728
|
};
|
|
1715
1729
|
} : ResponseWrapper extends {
|
|
1716
1730
|
data: {
|
|
1717
1731
|
tag: string;
|
|
1718
|
-
data:
|
|
1732
|
+
data: TagDetailPost[];
|
|
1719
1733
|
};
|
|
1720
1734
|
} ? ResponseWrapper : Omit<ResponseWrapper, "data"> & {
|
|
1721
1735
|
data: {
|
|
1722
1736
|
tag: string;
|
|
1723
|
-
data:
|
|
1737
|
+
data: TagDetailPost[];
|
|
1724
1738
|
};
|
|
1725
1739
|
}) extends infer T_1 ? T_1 extends (ResponseWrapper extends unknown ? {
|
|
1726
1740
|
[key: string]: any;
|
|
1727
1741
|
data: {
|
|
1728
1742
|
tag: string;
|
|
1729
|
-
data:
|
|
1743
|
+
data: TagDetailPost[];
|
|
1730
1744
|
};
|
|
1731
1745
|
} : ResponseWrapper extends {
|
|
1732
1746
|
data: {
|
|
1733
1747
|
tag: string;
|
|
1734
|
-
data:
|
|
1748
|
+
data: TagDetailPost[];
|
|
1735
1749
|
};
|
|
1736
1750
|
} ? ResponseWrapper : Omit<ResponseWrapper, "data"> & {
|
|
1737
1751
|
data: {
|
|
1738
1752
|
tag: string;
|
|
1739
|
-
data:
|
|
1753
|
+
data: TagDetailPost[];
|
|
1740
1754
|
};
|
|
1741
1755
|
}) ? T_1 extends unknown ? {
|
|
1742
1756
|
tag: string;
|
|
1743
|
-
data:
|
|
1757
|
+
data: TagDetailPost[];
|
|
1744
1758
|
} : T_1 : never : never;
|
|
1745
1759
|
} : ResponseWrapper;
|
|
1746
1760
|
$request: {
|
|
@@ -1750,7 +1764,7 @@ declare class CategoryController<ResponseWrapper> implements IController {
|
|
|
1750
1764
|
};
|
|
1751
1765
|
$serialized: {
|
|
1752
1766
|
tag: string;
|
|
1753
|
-
data:
|
|
1767
|
+
data: TagDetailPost[];
|
|
1754
1768
|
};
|
|
1755
1769
|
}>;
|
|
1756
1770
|
}
|
|
@@ -2069,6 +2083,26 @@ declare class NoteController<ResponseWrapper> implements IController {
|
|
|
2069
2083
|
} ? ResponseWrapper : Omit<ResponseWrapper, "data"> & {
|
|
2070
2084
|
data: PaginateResult<NoteTopicListItem>;
|
|
2071
2085
|
}>;
|
|
2086
|
+
/**
|
|
2087
|
+
* 获取专栏的最近更新时间(取该专栏下所有可见日记 max(modified, created))
|
|
2088
|
+
* @param topicId 专栏 ID
|
|
2089
|
+
*/
|
|
2090
|
+
getTopicRecentUpdate(topicId: string): RequestProxyResult<{
|
|
2091
|
+
ts: string | null;
|
|
2092
|
+
}, ResponseWrapper, ResponseWrapper extends unknown ? {
|
|
2093
|
+
[key: string]: any;
|
|
2094
|
+
data: {
|
|
2095
|
+
ts: string | null;
|
|
2096
|
+
};
|
|
2097
|
+
} : ResponseWrapper extends {
|
|
2098
|
+
data: {
|
|
2099
|
+
ts: string | null;
|
|
2100
|
+
};
|
|
2101
|
+
} ? ResponseWrapper : Omit<ResponseWrapper, "data"> & {
|
|
2102
|
+
data: {
|
|
2103
|
+
ts: string | null;
|
|
2104
|
+
};
|
|
2105
|
+
}>;
|
|
2072
2106
|
}
|
|
2073
2107
|
//#endregion
|
|
2074
2108
|
//#region controllers/owner.d.ts
|
|
@@ -2753,4 +2787,4 @@ declare const allControllerNames: readonly ["ai", "ack", "activity", "aggregate"
|
|
|
2753
2787
|
*/
|
|
2754
2788
|
declare const camelcaseKeys: <T = any>(obj: any) => T;
|
|
2755
2789
|
//#endregion
|
|
2756
|
-
export { AIController, AIDeepReadingModel, AIInsightsModel, AIInsightsStreamEvent, AISummaryModel, AISummaryStreamEvent, AITranslationModel, AITranslationStreamEvent, AcademicMetadata, AckController, ActivityController, ActivityPresence, AdminExtraModel, AggregateAIConfig, AggregateController, AggregateRoot, AggregateRootWithTheme, AggregateSiteInfo, AggregateStat, AggregateTop, AggregateTopNote, AggregateTopPost, AnonymousCommentDto, AuthUser, BackupOptionsModel, BaiduSearchOptionsModel, BaseCommentIndexModel, BaseModel, BetterAuthSession, BetterAuthSessionResult, BetterAuthSignInResult, BetterAuthUser, BetterAuthUserRole, BingSearchOptionsModel, BookMetadata, CategoryController, CategoryEntries, CategoryModel$1 as CategoryModel, CategoryType, CategoryWithChildrenModel, CheckLoggedResult, CodeMetadata, CollectionRefTypes, CommentController, CommentDto, CommentModel, CommentOptionsModel, CommentRef, CommentReplyWindow, CommentState, CommentThreadItem, CommentThreadReplies, Coordinate, Count, EnumPageType, GithubMetadata, type HTTPClient, IConfig, IConfigKeys, type IRequestAdapter, Image, LastYearPublication, LatestCombinedItem, LatestData, LatestNoteItem, LatestPostItem, LinkController, LinkMetadata, LinkModel, LinkState, LinkType, MailOptionsModel, MediaMetadata, ModelWithLiked, ModelWithTranslation, MusicMetadata, NoteController, type NoteMiddleListOptions, NoteModel, type NoteTimelineItem, type NoteTopicListItem, type NoteTopicListOptions, NoteWrappedPayload, NoteWrappedWithLikedAndTranslationPayload, NoteWrappedWithLikedPayload, OwnerAllowLoginResult, OwnerSessionResult, PageController, PageModel, Pager, PaginateResult, PostController, type PostListItem, type PostListOptions, PostModel, ProjectController, ProjectModel, ReaderCommentDto, ReaderModel, RecentActivities, RecentComment, RecentLike, RecentNote, RecentPost, RecentRecent, RecentlyAttitudeEnum, RecentlyAttitudeResultEnum, RecentlyController, RecentlyMetadata, RecentlyModel, RecentlyRefType, RecentlyRefTypes, RecentlyTypeEnum, RequestError, RoomOmittedNote, RoomOmittedPage, RoomOmittedPost, RoomsData, SayController, SayModel, SearchController, SeoOptionModel, ServerlessController, SnippetController, SnippetModel, SnippetType, SubscribeAllBit, SubscribeController, SubscribeNoteCreateBit, SubscribePostCreateBit, SubscribeRecentCreateBit, SubscribeSayCreateBit, SubscribeType, SubscribeTypeToBitMap, TLogin, TagModel, TextBaseModel, TextBaseModelLexical, TextBaseModelMarkdown, ThirdPartyServiceIntegrationModel, TimelineData, TimelineType, TopicController, TopicModel, TranslationMeta, Url, UrlOptionModel, UserController, UserModel, allControllerNames, allControllers, createClient, createClient as default, camelcaseKeys as simpleCamelcaseKeys };
|
|
2790
|
+
export { AIController, AIDeepReadingModel, AIInsightsModel, AIInsightsStreamEvent, AISummaryModel, AISummaryStreamEvent, AITranslationModel, AITranslationStreamEvent, AcademicMetadata, AckController, ActivityController, ActivityPresence, AdminExtraModel, AggregateAIConfig, AggregateController, AggregateRoot, AggregateRootWithTheme, AggregateSiteInfo, AggregateStat, AggregateTop, AggregateTopNote, AggregateTopPost, AnonymousCommentDto, AuthUser, BackupOptionsModel, BaiduSearchOptionsModel, BaseCommentIndexModel, BaseModel, BetterAuthSession, BetterAuthSessionResult, BetterAuthSignInResult, BetterAuthUser, BetterAuthUserRole, BingSearchOptionsModel, BookMetadata, CategoryChildPost, CategoryController, CategoryEntries, CategoryModel$1 as CategoryModel, CategoryType, CategoryWithChildrenModel, CheckLoggedResult, CodeMetadata, CollectionRefTypes, CommentController, CommentDto, CommentModel, CommentOptionsModel, CommentRef, CommentReplyWindow, CommentState, CommentThreadItem, CommentThreadReplies, Coordinate, Count, EnumPageType, GithubMetadata, type HTTPClient, IConfig, IConfigKeys, type IRequestAdapter, Image, LastYearPublication, LatestCombinedItem, LatestData, LatestNoteItem, LatestPostItem, LinkController, LinkMetadata, LinkModel, LinkState, LinkType, MailOptionsModel, MediaMetadata, ModelWithLiked, ModelWithTranslation, MusicMetadata, NoteController, type NoteMiddleListOptions, NoteModel, type NoteTimelineItem, type NoteTopicListItem, type NoteTopicListOptions, NoteWrappedPayload, NoteWrappedWithLikedAndTranslationPayload, NoteWrappedWithLikedPayload, OwnerAllowLoginResult, OwnerSessionResult, PageController, PageModel, Pager, PaginateResult, PostController, type PostListItem, type PostListOptions, PostModel, ProjectController, ProjectModel, ReaderCommentDto, ReaderModel, RecentActivities, RecentComment, RecentLike, RecentNote, RecentPost, RecentRecent, RecentlyAttitudeEnum, RecentlyAttitudeResultEnum, RecentlyController, RecentlyMetadata, RecentlyModel, RecentlyRefType, RecentlyRefTypes, RecentlyTypeEnum, RequestError, RoomOmittedNote, RoomOmittedPage, RoomOmittedPost, RoomsData, SayController, SayModel, SearchController, SeoOptionModel, ServerlessController, SnippetController, SnippetModel, SnippetType, SubscribeAllBit, SubscribeController, SubscribeNoteCreateBit, SubscribePostCreateBit, SubscribeRecentCreateBit, SubscribeSayCreateBit, SubscribeType, SubscribeTypeToBitMap, TLogin, TagDetailPost, TagModel, TextBaseModel, TextBaseModelLexical, TextBaseModelMarkdown, ThirdPartyServiceIntegrationModel, TimelineData, TimelineType, TopicController, TopicModel, TranslationMeta, Url, UrlOptionModel, UserController, UserModel, allControllerNames, allControllers, createClient, createClient as default, camelcaseKeys as simpleCamelcaseKeys };
|
package/dist/index.mjs
CHANGED
|
@@ -629,6 +629,13 @@ var NoteController = class {
|
|
|
629
629
|
...sortOptions
|
|
630
630
|
} });
|
|
631
631
|
}
|
|
632
|
+
/**
|
|
633
|
+
* 获取专栏的最近更新时间(取该专栏下所有可见日记 max(modified, created))
|
|
634
|
+
* @param topicId 专栏 ID
|
|
635
|
+
*/
|
|
636
|
+
getTopicRecentUpdate(topicId) {
|
|
637
|
+
return this.proxy.topics(topicId)["recent-update"].get();
|
|
638
|
+
}
|
|
632
639
|
};
|
|
633
640
|
//#endregion
|
|
634
641
|
//#region controllers/owner.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mx-space/api-client",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.7.0",
|
|
4
4
|
"description": "A api client for mx-space server@next",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -42,26 +42,26 @@
|
|
|
42
42
|
"tag": false,
|
|
43
43
|
"commit_message": "chore(release): bump @mx-space/api-client to v${NEW_VERSION}"
|
|
44
44
|
},
|
|
45
|
+
"scripts": {
|
|
46
|
+
"package": "rm -rf dist && tsdown",
|
|
47
|
+
"build": "npm run package",
|
|
48
|
+
"prepackage": "rm -rf dist",
|
|
49
|
+
"test": "vitest",
|
|
50
|
+
"dev": "vitest"
|
|
51
|
+
},
|
|
45
52
|
"devDependencies": {
|
|
46
53
|
"@types/cors": "2.8.19",
|
|
47
54
|
"@types/express": "5.0.6",
|
|
48
55
|
"abort-controller": "3.0.0",
|
|
49
|
-
"axios": "^1.15.
|
|
56
|
+
"axios": "^1.15.2",
|
|
50
57
|
"camelcase-keys": "^10.0.2",
|
|
51
58
|
"cors": "2.8.6",
|
|
52
|
-
"es-toolkit": "1.
|
|
59
|
+
"es-toolkit": "1.46.0",
|
|
53
60
|
"express": "5.2.1",
|
|
54
61
|
"form-data": "4.0.5",
|
|
55
|
-
"tsdown": "0.21.
|
|
62
|
+
"tsdown": "0.21.10",
|
|
56
63
|
"umi-request": "1.4.0",
|
|
57
|
-
"vite": "^8.0.
|
|
58
|
-
"vitest": "4.1.
|
|
59
|
-
},
|
|
60
|
-
"scripts": {
|
|
61
|
-
"package": "rm -rf dist && tsdown",
|
|
62
|
-
"build": "npm run package",
|
|
63
|
-
"prepackage": "rm -rf dist",
|
|
64
|
-
"test": "vitest",
|
|
65
|
-
"dev": "vitest"
|
|
64
|
+
"vite": "^8.0.10",
|
|
65
|
+
"vitest": "4.1.5"
|
|
66
66
|
}
|
|
67
|
-
}
|
|
67
|
+
}
|
package/LICENSE
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
** Mix Space Open Source License**
|
|
2
|
-
|
|
3
|
-
This project is dual-licensed under different terms for different parts of the project. It is important for users and contributors to understand the licensing terms applicable to each part of the project.
|
|
4
|
-
|
|
5
|
-
### For the `apps/` Directory
|
|
6
|
-
|
|
7
|
-
**License:** GNU Affero General Public License v3.0 (AGPLv3) with Additional Terms (ADDITIONAL_TERMS).
|
|
8
|
-
|
|
9
|
-
**Scope:** This license applies exclusively to all files within the `apps/` directory of this project.
|
|
10
|
-
|
|
11
|
-
**Summary:**
|
|
12
|
-
- The AGPLv3 is a free, copyleft license suitable for software that will be distributed over a network. It allows users to use, modify, and distribute the software and any modifications under the same terms.
|
|
13
|
-
- The "Additional Terms" (ADDITIONAL_TERMS) are specific conditions that are added to the AGPLv3 license. These terms must be reviewed in the accompanying LICENSE file or documentation to understand any additional restrictions or permissions that apply to the software.
|
|
14
|
-
|
|
15
|
-
### For Other Parts of the Project
|
|
16
|
-
|
|
17
|
-
**License:** MIT License.
|
|
18
|
-
|
|
19
|
-
**Scope:** This license applies to all parts of the project that are not included within the `apps/` directory.
|
|
20
|
-
|
|
21
|
-
**Summary:**
|
|
22
|
-
- The MIT License is a permissive open-source license that allows users considerable freedom. It permits use, copying, modification, merging, publishing, distribution, sublicensing, and/or selling copies of the software.
|
|
23
|
-
- It also protects the authors by including a limitation of liability and a disclaimer of warranty.
|
|
24
|
-
|
|
25
|
-
**General Conditions:**
|
|
26
|
-
- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the above license notices and this permission notice appear in all copies of the software.
|
|
27
|
-
- The software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose, and noninfringement.
|
|
28
|
-
|
|
29
|
-
**Contribution:**
|
|
30
|
-
- Contributions to this project are accepted under the terms of the same license as the part of the project to which the contribution is made.
|
|
31
|
-
|
|
32
|
-
**Notice:**
|
|
33
|
-
- This summary is not the license itself and is not a substitute for reading the licenses in their entirety. All users and contributors are encouraged to read the full text of the licenses for a comprehensive understanding.
|