@mx-space/api-client 3.1.0 → 3.5.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/{adapter-D1g1obyM.d.mts → adapter-BICozHDF.d.mts} +1 -0
- package/dist/{adapter-DLzJOGbI.d.cts → adapter-DB4Vji9d.d.cts} +1 -0
- package/dist/adaptors/axios.cjs +12 -16
- package/dist/adaptors/axios.d.cts +1 -1
- package/dist/adaptors/axios.d.mts +1 -1
- package/dist/adaptors/axios.mjs +1 -3
- package/dist/adaptors/fetch.cjs +2 -4
- package/dist/adaptors/fetch.d.cts +1 -1
- package/dist/adaptors/fetch.d.mts +1 -1
- package/dist/adaptors/fetch.mjs +1 -2
- package/dist/adaptors/umi-request.cjs +7 -7
- package/dist/adaptors/umi-request.d.cts +1 -1
- package/dist/adaptors/umi-request.d.mts +1 -1
- package/dist/adaptors/umi-request.mjs +1 -3
- package/dist/index.cjs +76 -56
- package/dist/index.d.cts +122 -4
- package/dist/index.d.mts +122 -4
- package/dist/index.mjs +72 -54
- package/package.json +7 -7
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as IRequestAdapter, r as RequestOptions, t as IAdaptorRequestResponseType } from "./adapter-
|
|
1
|
+
import { n as IRequestAdapter, r as RequestOptions, t as IAdaptorRequestResponseType } from "./adapter-DB4Vji9d.cjs";
|
|
2
2
|
|
|
3
3
|
//#region interfaces/controller.d.ts
|
|
4
4
|
interface IController {
|
|
@@ -295,6 +295,10 @@ interface RecentComment {
|
|
|
295
295
|
type: string;
|
|
296
296
|
avatar: string;
|
|
297
297
|
nid?: string;
|
|
298
|
+
category?: {
|
|
299
|
+
slug: string;
|
|
300
|
+
name: string;
|
|
301
|
+
};
|
|
298
302
|
}
|
|
299
303
|
interface RecentLike {
|
|
300
304
|
created: string;
|
|
@@ -317,6 +321,10 @@ interface RecentPost {
|
|
|
317
321
|
title: string;
|
|
318
322
|
modified: string;
|
|
319
323
|
slug: string;
|
|
324
|
+
category?: {
|
|
325
|
+
slug: string;
|
|
326
|
+
name: string;
|
|
327
|
+
};
|
|
320
328
|
}
|
|
321
329
|
interface RecentRecent {
|
|
322
330
|
id: string;
|
|
@@ -700,6 +708,32 @@ type AITranslationStreamEvent = {
|
|
|
700
708
|
type: 'error';
|
|
701
709
|
data: string;
|
|
702
710
|
};
|
|
711
|
+
interface AIInsightsModel {
|
|
712
|
+
id: string;
|
|
713
|
+
created: string;
|
|
714
|
+
updated?: string;
|
|
715
|
+
hash: string;
|
|
716
|
+
refId: string;
|
|
717
|
+
lang: string;
|
|
718
|
+
content: string;
|
|
719
|
+
isTranslation: boolean;
|
|
720
|
+
sourceInsightsId?: string;
|
|
721
|
+
sourceLang?: string;
|
|
722
|
+
modelInfo?: {
|
|
723
|
+
provider: string;
|
|
724
|
+
model: string;
|
|
725
|
+
};
|
|
726
|
+
}
|
|
727
|
+
type AIInsightsStreamEvent = {
|
|
728
|
+
type: 'token';
|
|
729
|
+
data: string;
|
|
730
|
+
} | {
|
|
731
|
+
type: 'done';
|
|
732
|
+
data: undefined;
|
|
733
|
+
} | {
|
|
734
|
+
type: 'error';
|
|
735
|
+
data: string;
|
|
736
|
+
};
|
|
703
737
|
//#endregion
|
|
704
738
|
//#region models/auth.d.ts
|
|
705
739
|
interface AuthUser {
|
|
@@ -1269,7 +1303,7 @@ declare class AIController<ResponseWrapper> implements IController {
|
|
|
1269
1303
|
$serialized: AISummaryModel;
|
|
1270
1304
|
}>;
|
|
1271
1305
|
/**
|
|
1272
|
-
*
|
|
1306
|
+
* @deprecated Feature removed from core; see ai-insights equivalent.
|
|
1273
1307
|
* @param articleId
|
|
1274
1308
|
*/
|
|
1275
1309
|
getDeepReading(articleId: string): Promise<AIDeepReadingModel & {
|
|
@@ -1516,6 +1550,87 @@ declare class AIController<ResponseWrapper> implements IController {
|
|
|
1516
1550
|
articleId: string;
|
|
1517
1551
|
lang: string;
|
|
1518
1552
|
}, fetchOptions?: RequestInit): Promise<Response>;
|
|
1553
|
+
/**
|
|
1554
|
+
* Get cached AI insights for an article
|
|
1555
|
+
* @support core >= 11.3.0
|
|
1556
|
+
*/
|
|
1557
|
+
getInsights({
|
|
1558
|
+
articleId,
|
|
1559
|
+
lang,
|
|
1560
|
+
onlyDb
|
|
1561
|
+
}: {
|
|
1562
|
+
articleId: string;
|
|
1563
|
+
lang?: string;
|
|
1564
|
+
onlyDb?: boolean;
|
|
1565
|
+
}): Promise<AIInsightsModel & {
|
|
1566
|
+
$raw: ResponseWrapper extends {
|
|
1567
|
+
data: infer T;
|
|
1568
|
+
} ? ResponseWrapper : ResponseWrapper extends unknown ? {
|
|
1569
|
+
[i: string]: any;
|
|
1570
|
+
data: (ResponseWrapper extends unknown ? {
|
|
1571
|
+
[key: string]: any;
|
|
1572
|
+
data: AIInsightsModel | null;
|
|
1573
|
+
} : ResponseWrapper extends {
|
|
1574
|
+
data: AIInsightsModel | null;
|
|
1575
|
+
} ? ResponseWrapper : Omit<ResponseWrapper, "data"> & {
|
|
1576
|
+
data: AIInsightsModel | null;
|
|
1577
|
+
}) extends infer T_1 ? T_1 extends (ResponseWrapper extends unknown ? {
|
|
1578
|
+
[key: string]: any;
|
|
1579
|
+
data: AIInsightsModel | null;
|
|
1580
|
+
} : ResponseWrapper extends {
|
|
1581
|
+
data: AIInsightsModel | null;
|
|
1582
|
+
} ? ResponseWrapper : Omit<ResponseWrapper, "data"> & {
|
|
1583
|
+
data: AIInsightsModel | null;
|
|
1584
|
+
}) ? T_1 extends unknown ? {
|
|
1585
|
+
id: string;
|
|
1586
|
+
created: string;
|
|
1587
|
+
updated?: string | undefined;
|
|
1588
|
+
hash: string;
|
|
1589
|
+
ref_id: string;
|
|
1590
|
+
lang: string;
|
|
1591
|
+
content: string;
|
|
1592
|
+
is_translation: boolean;
|
|
1593
|
+
source_insights_id?: string | undefined;
|
|
1594
|
+
source_lang?: string | undefined;
|
|
1595
|
+
model_info?: {
|
|
1596
|
+
provider: string;
|
|
1597
|
+
model: string;
|
|
1598
|
+
} | undefined;
|
|
1599
|
+
} : T_1 : never : never;
|
|
1600
|
+
} : ResponseWrapper;
|
|
1601
|
+
$request: {
|
|
1602
|
+
path: string;
|
|
1603
|
+
method: string;
|
|
1604
|
+
[k: string]: string;
|
|
1605
|
+
};
|
|
1606
|
+
$serialized: AIInsightsModel;
|
|
1607
|
+
}>;
|
|
1608
|
+
/**
|
|
1609
|
+
* Get URL for streaming insights generation (SSE)
|
|
1610
|
+
*
|
|
1611
|
+
* @see AIInsightsStreamEvent for event types
|
|
1612
|
+
* @support core >= 11.3.0
|
|
1613
|
+
*/
|
|
1614
|
+
getInsightsGenerateUrl({
|
|
1615
|
+
articleId,
|
|
1616
|
+
lang
|
|
1617
|
+
}: {
|
|
1618
|
+
articleId: string;
|
|
1619
|
+
lang?: string;
|
|
1620
|
+
}): string;
|
|
1621
|
+
/**
|
|
1622
|
+
* Stream insights generation using fetch
|
|
1623
|
+
*
|
|
1624
|
+
* @see AIInsightsStreamEvent for event types
|
|
1625
|
+
* @support core >= 11.3.0
|
|
1626
|
+
*/
|
|
1627
|
+
streamInsightsGenerate({
|
|
1628
|
+
articleId,
|
|
1629
|
+
lang
|
|
1630
|
+
}: {
|
|
1631
|
+
articleId: string;
|
|
1632
|
+
lang?: string;
|
|
1633
|
+
}, fetchOptions?: RequestInit): Promise<Response>;
|
|
1519
1634
|
}
|
|
1520
1635
|
//#endregion
|
|
1521
1636
|
//#region controllers/category.d.ts
|
|
@@ -1689,7 +1804,10 @@ declare class CommentController<ResponseWrapper> implements IController {
|
|
|
1689
1804
|
* 获取文章的评论列表
|
|
1690
1805
|
* @param refId 文章 Id
|
|
1691
1806
|
*/
|
|
1692
|
-
getByRefId(refId: string,
|
|
1807
|
+
getByRefId(refId: string, params?: PaginationParams & {
|
|
1808
|
+
sort?: 'pinned' | 'newest' | 'oldest';
|
|
1809
|
+
around?: string;
|
|
1810
|
+
}): RequestProxyResult<PaginateResult<CommentThreadItem & {
|
|
1693
1811
|
ref: string;
|
|
1694
1812
|
}> & {
|
|
1695
1813
|
readers: Record<string, ReaderModel>;
|
|
@@ -2628,4 +2746,4 @@ declare const allControllerNames: readonly ["ai", "ack", "activity", "aggregate"
|
|
|
2628
2746
|
*/
|
|
2629
2747
|
declare const camelcaseKeys: <T = any>(obj: any) => T;
|
|
2630
2748
|
//#endregion
|
|
2631
|
-
export { AIController, AIDeepReadingModel, 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 };
|
|
2749
|
+
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 };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as IRequestAdapter, r as RequestOptions, t as IAdaptorRequestResponseType } from "./adapter-
|
|
1
|
+
import { n as IRequestAdapter, r as RequestOptions, t as IAdaptorRequestResponseType } from "./adapter-DB4Vji9d.cjs";
|
|
2
2
|
|
|
3
3
|
//#region interfaces/controller.d.ts
|
|
4
4
|
interface IController {
|
|
@@ -295,6 +295,10 @@ interface RecentComment {
|
|
|
295
295
|
type: string;
|
|
296
296
|
avatar: string;
|
|
297
297
|
nid?: string;
|
|
298
|
+
category?: {
|
|
299
|
+
slug: string;
|
|
300
|
+
name: string;
|
|
301
|
+
};
|
|
298
302
|
}
|
|
299
303
|
interface RecentLike {
|
|
300
304
|
created: string;
|
|
@@ -317,6 +321,10 @@ interface RecentPost {
|
|
|
317
321
|
title: string;
|
|
318
322
|
modified: string;
|
|
319
323
|
slug: string;
|
|
324
|
+
category?: {
|
|
325
|
+
slug: string;
|
|
326
|
+
name: string;
|
|
327
|
+
};
|
|
320
328
|
}
|
|
321
329
|
interface RecentRecent {
|
|
322
330
|
id: string;
|
|
@@ -700,6 +708,32 @@ type AITranslationStreamEvent = {
|
|
|
700
708
|
type: 'error';
|
|
701
709
|
data: string;
|
|
702
710
|
};
|
|
711
|
+
interface AIInsightsModel {
|
|
712
|
+
id: string;
|
|
713
|
+
created: string;
|
|
714
|
+
updated?: string;
|
|
715
|
+
hash: string;
|
|
716
|
+
refId: string;
|
|
717
|
+
lang: string;
|
|
718
|
+
content: string;
|
|
719
|
+
isTranslation: boolean;
|
|
720
|
+
sourceInsightsId?: string;
|
|
721
|
+
sourceLang?: string;
|
|
722
|
+
modelInfo?: {
|
|
723
|
+
provider: string;
|
|
724
|
+
model: string;
|
|
725
|
+
};
|
|
726
|
+
}
|
|
727
|
+
type AIInsightsStreamEvent = {
|
|
728
|
+
type: 'token';
|
|
729
|
+
data: string;
|
|
730
|
+
} | {
|
|
731
|
+
type: 'done';
|
|
732
|
+
data: undefined;
|
|
733
|
+
} | {
|
|
734
|
+
type: 'error';
|
|
735
|
+
data: string;
|
|
736
|
+
};
|
|
703
737
|
//#endregion
|
|
704
738
|
//#region models/auth.d.ts
|
|
705
739
|
interface AuthUser {
|
|
@@ -1269,7 +1303,7 @@ declare class AIController<ResponseWrapper> implements IController {
|
|
|
1269
1303
|
$serialized: AISummaryModel;
|
|
1270
1304
|
}>;
|
|
1271
1305
|
/**
|
|
1272
|
-
*
|
|
1306
|
+
* @deprecated Feature removed from core; see ai-insights equivalent.
|
|
1273
1307
|
* @param articleId
|
|
1274
1308
|
*/
|
|
1275
1309
|
getDeepReading(articleId: string): Promise<AIDeepReadingModel & {
|
|
@@ -1516,6 +1550,87 @@ declare class AIController<ResponseWrapper> implements IController {
|
|
|
1516
1550
|
articleId: string;
|
|
1517
1551
|
lang: string;
|
|
1518
1552
|
}, fetchOptions?: RequestInit): Promise<Response>;
|
|
1553
|
+
/**
|
|
1554
|
+
* Get cached AI insights for an article
|
|
1555
|
+
* @support core >= 11.3.0
|
|
1556
|
+
*/
|
|
1557
|
+
getInsights({
|
|
1558
|
+
articleId,
|
|
1559
|
+
lang,
|
|
1560
|
+
onlyDb
|
|
1561
|
+
}: {
|
|
1562
|
+
articleId: string;
|
|
1563
|
+
lang?: string;
|
|
1564
|
+
onlyDb?: boolean;
|
|
1565
|
+
}): Promise<AIInsightsModel & {
|
|
1566
|
+
$raw: ResponseWrapper extends {
|
|
1567
|
+
data: infer T;
|
|
1568
|
+
} ? ResponseWrapper : ResponseWrapper extends unknown ? {
|
|
1569
|
+
[i: string]: any;
|
|
1570
|
+
data: (ResponseWrapper extends unknown ? {
|
|
1571
|
+
[key: string]: any;
|
|
1572
|
+
data: AIInsightsModel | null;
|
|
1573
|
+
} : ResponseWrapper extends {
|
|
1574
|
+
data: AIInsightsModel | null;
|
|
1575
|
+
} ? ResponseWrapper : Omit<ResponseWrapper, "data"> & {
|
|
1576
|
+
data: AIInsightsModel | null;
|
|
1577
|
+
}) extends infer T_1 ? T_1 extends (ResponseWrapper extends unknown ? {
|
|
1578
|
+
[key: string]: any;
|
|
1579
|
+
data: AIInsightsModel | null;
|
|
1580
|
+
} : ResponseWrapper extends {
|
|
1581
|
+
data: AIInsightsModel | null;
|
|
1582
|
+
} ? ResponseWrapper : Omit<ResponseWrapper, "data"> & {
|
|
1583
|
+
data: AIInsightsModel | null;
|
|
1584
|
+
}) ? T_1 extends unknown ? {
|
|
1585
|
+
id: string;
|
|
1586
|
+
created: string;
|
|
1587
|
+
updated?: string | undefined;
|
|
1588
|
+
hash: string;
|
|
1589
|
+
ref_id: string;
|
|
1590
|
+
lang: string;
|
|
1591
|
+
content: string;
|
|
1592
|
+
is_translation: boolean;
|
|
1593
|
+
source_insights_id?: string | undefined;
|
|
1594
|
+
source_lang?: string | undefined;
|
|
1595
|
+
model_info?: {
|
|
1596
|
+
provider: string;
|
|
1597
|
+
model: string;
|
|
1598
|
+
} | undefined;
|
|
1599
|
+
} : T_1 : never : never;
|
|
1600
|
+
} : ResponseWrapper;
|
|
1601
|
+
$request: {
|
|
1602
|
+
path: string;
|
|
1603
|
+
method: string;
|
|
1604
|
+
[k: string]: string;
|
|
1605
|
+
};
|
|
1606
|
+
$serialized: AIInsightsModel;
|
|
1607
|
+
}>;
|
|
1608
|
+
/**
|
|
1609
|
+
* Get URL for streaming insights generation (SSE)
|
|
1610
|
+
*
|
|
1611
|
+
* @see AIInsightsStreamEvent for event types
|
|
1612
|
+
* @support core >= 11.3.0
|
|
1613
|
+
*/
|
|
1614
|
+
getInsightsGenerateUrl({
|
|
1615
|
+
articleId,
|
|
1616
|
+
lang
|
|
1617
|
+
}: {
|
|
1618
|
+
articleId: string;
|
|
1619
|
+
lang?: string;
|
|
1620
|
+
}): string;
|
|
1621
|
+
/**
|
|
1622
|
+
* Stream insights generation using fetch
|
|
1623
|
+
*
|
|
1624
|
+
* @see AIInsightsStreamEvent for event types
|
|
1625
|
+
* @support core >= 11.3.0
|
|
1626
|
+
*/
|
|
1627
|
+
streamInsightsGenerate({
|
|
1628
|
+
articleId,
|
|
1629
|
+
lang
|
|
1630
|
+
}: {
|
|
1631
|
+
articleId: string;
|
|
1632
|
+
lang?: string;
|
|
1633
|
+
}, fetchOptions?: RequestInit): Promise<Response>;
|
|
1519
1634
|
}
|
|
1520
1635
|
//#endregion
|
|
1521
1636
|
//#region controllers/category.d.ts
|
|
@@ -1689,7 +1804,10 @@ declare class CommentController<ResponseWrapper> implements IController {
|
|
|
1689
1804
|
* 获取文章的评论列表
|
|
1690
1805
|
* @param refId 文章 Id
|
|
1691
1806
|
*/
|
|
1692
|
-
getByRefId(refId: string,
|
|
1807
|
+
getByRefId(refId: string, params?: PaginationParams & {
|
|
1808
|
+
sort?: 'pinned' | 'newest' | 'oldest';
|
|
1809
|
+
around?: string;
|
|
1810
|
+
}): RequestProxyResult<PaginateResult<CommentThreadItem & {
|
|
1693
1811
|
ref: string;
|
|
1694
1812
|
}> & {
|
|
1695
1813
|
readers: Record<string, ReaderModel>;
|
|
@@ -2628,4 +2746,4 @@ declare const allControllerNames: readonly ["ai", "ack", "activity", "aggregate"
|
|
|
2628
2746
|
*/
|
|
2629
2747
|
declare const camelcaseKeys: <T = any>(obj: any) => T;
|
|
2630
2748
|
//#endregion
|
|
2631
|
-
export { AIController, AIDeepReadingModel, 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 };
|
|
2749
|
+
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 };
|