@mx-space/api-client 3.0.0 → 3.3.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.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { n as IRequestAdapter, r as RequestOptions, t as IAdaptorRequestResponseType } from "./adapter-DLzJOGbI.cjs";
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;
@@ -466,12 +474,6 @@ declare class BingSearchOptionsModel {
466
474
  enable: boolean;
467
475
  token?: string;
468
476
  }
469
- declare class AlgoliaSearchOptionsModel {
470
- enable: boolean;
471
- apiKey?: string;
472
- appId?: string;
473
- indexName?: string;
474
- }
475
477
  declare class AdminExtraModel {
476
478
  background?: string;
477
479
  gaodemapKey?: string;
@@ -491,7 +493,6 @@ interface IConfig {
491
493
  commentOptions: CommentOptionsModel;
492
494
  backupOptions: BackupOptionsModel;
493
495
  baiduSearchOptions: BaiduSearchOptionsModel;
494
- algoliaSearchOptions: AlgoliaSearchOptionsModel;
495
496
  adminExtra: AdminExtraModel;
496
497
  thirdPartyServiceIntegration: ThirdPartyServiceIntegrationModel;
497
498
  }
@@ -1573,7 +1574,7 @@ declare class CategoryController<ResponseWrapper> implements IController {
1573
1574
  name: string;
1574
1575
  created: string;
1575
1576
  id: string;
1576
- children: Pick<PostModel, "id" | "title" | "modified" | "created" | "slug">[];
1577
+ children: Pick<PostModel, "id" | "title" | "slug" | "modified" | "created">[];
1577
1578
  } : T_1 : never : never;
1578
1579
  } : ResponseWrapper;
1579
1580
  $request: {
@@ -1625,7 +1626,7 @@ declare class CategoryController<ResponseWrapper> implements IController {
1625
1626
  };
1626
1627
  }) ? T_1 extends unknown ? {
1627
1628
  tag: string;
1628
- data: Pick<PostModel, "category" | "id" | "title" | "created" | "slug">[];
1629
+ data: Pick<PostModel, "category" | "id" | "title" | "slug" | "created">[];
1629
1630
  } : T_1 : never : never;
1630
1631
  } : ResponseWrapper;
1631
1632
  $request: {
@@ -1696,7 +1697,10 @@ declare class CommentController<ResponseWrapper> implements IController {
1696
1697
  * 获取文章的评论列表
1697
1698
  * @param refId 文章 Id
1698
1699
  */
1699
- getByRefId(refId: string, pagination?: PaginationParams): RequestProxyResult<PaginateResult<CommentThreadItem & {
1700
+ getByRefId(refId: string, params?: PaginationParams & {
1701
+ sort?: 'pinned' | 'newest' | 'oldest';
1702
+ around?: string;
1703
+ }): RequestProxyResult<PaginateResult<CommentThreadItem & {
1700
1704
  ref: string;
1701
1705
  }> & {
1702
1706
  readers: Record<string, ReaderModel>;
@@ -2446,7 +2450,13 @@ declare module '@mx-space/api-client' {
2446
2450
  type SearchOption = {
2447
2451
  orderBy?: string;
2448
2452
  order?: number;
2449
- rawAlgolia?: boolean;
2453
+ };
2454
+ type SearchHighlight = {
2455
+ keywords: string[];
2456
+ snippet: string | null;
2457
+ };
2458
+ type SearchResultHighlight = {
2459
+ highlight: SearchHighlight;
2450
2460
  };
2451
2461
  declare class SearchController<ResponseWrapper> implements IController {
2452
2462
  private readonly client;
@@ -2454,66 +2464,40 @@ declare class SearchController<ResponseWrapper> implements IController {
2454
2464
  name: string;
2455
2465
  constructor(client: HTTPClient);
2456
2466
  get proxy(): IRequestHandler<ResponseWrapper>;
2457
- search(type: 'note', keyword: string, options?: Omit<SearchOption, 'rawAlgolia'>): Promise<RequestProxyResult<PaginateResult<Pick<NoteModel, 'modified' | 'id' | 'title' | 'created' | 'nid'>>, ResponseWrapper>>;
2458
- search(type: 'post', keyword: string, options?: Omit<SearchOption, 'rawAlgolia'>): Promise<RequestProxyResult<PaginateResult<Pick<PostModel, 'modified' | 'id' | 'title' | 'created' | 'slug' | 'category'>>, ResponseWrapper>>;
2459
- /**
2460
- * algolya 搜索
2461
- * https://www.algolia.com/doc/api-reference/api-methods/search/
2462
- * @param keyword
2463
- * @param options
2464
- * @returns
2465
- */
2466
- searchByAlgolia(keyword: string, options?: SearchOption): RequestProxyResult<RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "title" | "modified" | "created" | "slug"> & {
2467
+ search(type: 'note', keyword: string, options?: SearchOption): Promise<RequestProxyResult<PaginateResult<Pick<NoteModel, 'modified' | 'id' | 'title' | 'created' | 'nid'> & SearchResultHighlight>, ResponseWrapper>>;
2468
+ search(type: 'post', keyword: string, options?: SearchOption): Promise<RequestProxyResult<PaginateResult<Pick<PostModel, 'modified' | 'id' | 'title' | 'created' | 'slug' | 'category'> & SearchResultHighlight>, ResponseWrapper>>;
2469
+ search(type: 'page', keyword: string, options?: SearchOption): Promise<RequestProxyResult<PaginateResult<Pick<PageModel, 'modified' | 'id' | 'title' | 'created' | 'slug'> & SearchResultHighlight>, ResponseWrapper>>;
2470
+ searchAll(keyword: string, options?: SearchOption): RequestProxyResult<RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "title" | "slug" | "modified" | "created"> & SearchResultHighlight & {
2467
2471
  type: "post";
2468
- }) | (Pick<NoteModel, "id" | "title" | "modified" | "created" | "nid"> & {
2472
+ }) | (Pick<NoteModel, "id" | "title" | "modified" | "created" | "nid"> & SearchResultHighlight & {
2469
2473
  type: "note";
2470
- }) | (Pick<PageModel, "id" | "title" | "modified" | "created" | "slug"> & {
2474
+ }) | (Pick<PageModel, "id" | "title" | "slug" | "modified" | "created"> & SearchResultHighlight & {
2471
2475
  type: "page";
2472
- })> & {
2473
- /**
2474
- * @see: algoliasearch <https://www.algolia.com/doc/api-reference/api-methods/search/>
2475
- */
2476
- raw?: any;
2477
- }, ResponseWrapper>, ResponseWrapper, ResponseWrapper extends unknown ? {
2476
+ })>, ResponseWrapper>, ResponseWrapper, ResponseWrapper extends unknown ? {
2478
2477
  [key: string]: any;
2479
- data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "title" | "modified" | "created" | "slug"> & {
2478
+ data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "title" | "slug" | "modified" | "created"> & SearchResultHighlight & {
2480
2479
  type: "post";
2481
- }) | (Pick<NoteModel, "id" | "title" | "modified" | "created" | "nid"> & {
2480
+ }) | (Pick<NoteModel, "id" | "title" | "modified" | "created" | "nid"> & SearchResultHighlight & {
2482
2481
  type: "note";
2483
- }) | (Pick<PageModel, "id" | "title" | "modified" | "created" | "slug"> & {
2482
+ }) | (Pick<PageModel, "id" | "title" | "slug" | "modified" | "created"> & SearchResultHighlight & {
2484
2483
  type: "page";
2485
- })> & {
2486
- /**
2487
- * @see: algoliasearch <https://www.algolia.com/doc/api-reference/api-methods/search/>
2488
- */
2489
- raw?: any;
2490
- }, ResponseWrapper>;
2484
+ })>, ResponseWrapper>;
2491
2485
  } : ResponseWrapper extends {
2492
- data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "title" | "modified" | "created" | "slug"> & {
2486
+ data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "title" | "slug" | "modified" | "created"> & SearchResultHighlight & {
2493
2487
  type: "post";
2494
- }) | (Pick<NoteModel, "id" | "title" | "modified" | "created" | "nid"> & {
2488
+ }) | (Pick<NoteModel, "id" | "title" | "modified" | "created" | "nid"> & SearchResultHighlight & {
2495
2489
  type: "note";
2496
- }) | (Pick<PageModel, "id" | "title" | "modified" | "created" | "slug"> & {
2490
+ }) | (Pick<PageModel, "id" | "title" | "slug" | "modified" | "created"> & SearchResultHighlight & {
2497
2491
  type: "page";
2498
- })> & {
2499
- /**
2500
- * @see: algoliasearch <https://www.algolia.com/doc/api-reference/api-methods/search/>
2501
- */
2502
- raw?: any;
2503
- }, ResponseWrapper>;
2492
+ })>, ResponseWrapper>;
2504
2493
  } ? ResponseWrapper : Omit<ResponseWrapper, "data"> & {
2505
- data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "title" | "modified" | "created" | "slug"> & {
2494
+ data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "title" | "slug" | "modified" | "created"> & SearchResultHighlight & {
2506
2495
  type: "post";
2507
- }) | (Pick<NoteModel, "id" | "title" | "modified" | "created" | "nid"> & {
2496
+ }) | (Pick<NoteModel, "id" | "title" | "modified" | "created" | "nid"> & SearchResultHighlight & {
2508
2497
  type: "note";
2509
- }) | (Pick<PageModel, "id" | "title" | "modified" | "created" | "slug"> & {
2498
+ }) | (Pick<PageModel, "id" | "title" | "slug" | "modified" | "created"> & SearchResultHighlight & {
2510
2499
  type: "page";
2511
- })> & {
2512
- /**
2513
- * @see: algoliasearch <https://www.algolia.com/doc/api-reference/api-methods/search/>
2514
- */
2515
- raw?: any;
2516
- }, ResponseWrapper>;
2500
+ })>, ResponseWrapper>;
2517
2501
  }>;
2518
2502
  }
2519
2503
  //#endregion
@@ -2655,4 +2639,4 @@ declare const allControllerNames: readonly ["ai", "ack", "activity", "aggregate"
2655
2639
  */
2656
2640
  declare const camelcaseKeys: <T = any>(obj: any) => T;
2657
2641
  //#endregion
2658
- export { AIController, AIDeepReadingModel, AISummaryModel, AISummaryStreamEvent, AITranslationModel, AITranslationStreamEvent, AcademicMetadata, AckController, ActivityController, ActivityPresence, AdminExtraModel, AggregateAIConfig, AggregateController, AggregateRoot, AggregateRootWithTheme, AggregateSiteInfo, AggregateStat, AggregateTop, AggregateTopNote, AggregateTopPost, AlgoliaSearchOptionsModel, 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 };
2642
+ 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 };
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { n as IRequestAdapter, r as RequestOptions, t as IAdaptorRequestResponseType } from "./adapter-DLzJOGbI.cjs";
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;
@@ -466,12 +474,6 @@ declare class BingSearchOptionsModel {
466
474
  enable: boolean;
467
475
  token?: string;
468
476
  }
469
- declare class AlgoliaSearchOptionsModel {
470
- enable: boolean;
471
- apiKey?: string;
472
- appId?: string;
473
- indexName?: string;
474
- }
475
477
  declare class AdminExtraModel {
476
478
  background?: string;
477
479
  gaodemapKey?: string;
@@ -491,7 +493,6 @@ interface IConfig {
491
493
  commentOptions: CommentOptionsModel;
492
494
  backupOptions: BackupOptionsModel;
493
495
  baiduSearchOptions: BaiduSearchOptionsModel;
494
- algoliaSearchOptions: AlgoliaSearchOptionsModel;
495
496
  adminExtra: AdminExtraModel;
496
497
  thirdPartyServiceIntegration: ThirdPartyServiceIntegrationModel;
497
498
  }
@@ -1573,7 +1574,7 @@ declare class CategoryController<ResponseWrapper> implements IController {
1573
1574
  name: string;
1574
1575
  created: string;
1575
1576
  id: string;
1576
- children: Pick<PostModel, "id" | "title" | "modified" | "created" | "slug">[];
1577
+ children: Pick<PostModel, "id" | "title" | "slug" | "modified" | "created">[];
1577
1578
  } : T_1 : never : never;
1578
1579
  } : ResponseWrapper;
1579
1580
  $request: {
@@ -1625,7 +1626,7 @@ declare class CategoryController<ResponseWrapper> implements IController {
1625
1626
  };
1626
1627
  }) ? T_1 extends unknown ? {
1627
1628
  tag: string;
1628
- data: Pick<PostModel, "category" | "id" | "title" | "created" | "slug">[];
1629
+ data: Pick<PostModel, "category" | "id" | "title" | "slug" | "created">[];
1629
1630
  } : T_1 : never : never;
1630
1631
  } : ResponseWrapper;
1631
1632
  $request: {
@@ -1696,7 +1697,10 @@ declare class CommentController<ResponseWrapper> implements IController {
1696
1697
  * 获取文章的评论列表
1697
1698
  * @param refId 文章 Id
1698
1699
  */
1699
- getByRefId(refId: string, pagination?: PaginationParams): RequestProxyResult<PaginateResult<CommentThreadItem & {
1700
+ getByRefId(refId: string, params?: PaginationParams & {
1701
+ sort?: 'pinned' | 'newest' | 'oldest';
1702
+ around?: string;
1703
+ }): RequestProxyResult<PaginateResult<CommentThreadItem & {
1700
1704
  ref: string;
1701
1705
  }> & {
1702
1706
  readers: Record<string, ReaderModel>;
@@ -2446,7 +2450,13 @@ declare module '@mx-space/api-client' {
2446
2450
  type SearchOption = {
2447
2451
  orderBy?: string;
2448
2452
  order?: number;
2449
- rawAlgolia?: boolean;
2453
+ };
2454
+ type SearchHighlight = {
2455
+ keywords: string[];
2456
+ snippet: string | null;
2457
+ };
2458
+ type SearchResultHighlight = {
2459
+ highlight: SearchHighlight;
2450
2460
  };
2451
2461
  declare class SearchController<ResponseWrapper> implements IController {
2452
2462
  private readonly client;
@@ -2454,66 +2464,40 @@ declare class SearchController<ResponseWrapper> implements IController {
2454
2464
  name: string;
2455
2465
  constructor(client: HTTPClient);
2456
2466
  get proxy(): IRequestHandler<ResponseWrapper>;
2457
- search(type: 'note', keyword: string, options?: Omit<SearchOption, 'rawAlgolia'>): Promise<RequestProxyResult<PaginateResult<Pick<NoteModel, 'modified' | 'id' | 'title' | 'created' | 'nid'>>, ResponseWrapper>>;
2458
- search(type: 'post', keyword: string, options?: Omit<SearchOption, 'rawAlgolia'>): Promise<RequestProxyResult<PaginateResult<Pick<PostModel, 'modified' | 'id' | 'title' | 'created' | 'slug' | 'category'>>, ResponseWrapper>>;
2459
- /**
2460
- * algolya 搜索
2461
- * https://www.algolia.com/doc/api-reference/api-methods/search/
2462
- * @param keyword
2463
- * @param options
2464
- * @returns
2465
- */
2466
- searchByAlgolia(keyword: string, options?: SearchOption): RequestProxyResult<RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "title" | "modified" | "created" | "slug"> & {
2467
+ search(type: 'note', keyword: string, options?: SearchOption): Promise<RequestProxyResult<PaginateResult<Pick<NoteModel, 'modified' | 'id' | 'title' | 'created' | 'nid'> & SearchResultHighlight>, ResponseWrapper>>;
2468
+ search(type: 'post', keyword: string, options?: SearchOption): Promise<RequestProxyResult<PaginateResult<Pick<PostModel, 'modified' | 'id' | 'title' | 'created' | 'slug' | 'category'> & SearchResultHighlight>, ResponseWrapper>>;
2469
+ search(type: 'page', keyword: string, options?: SearchOption): Promise<RequestProxyResult<PaginateResult<Pick<PageModel, 'modified' | 'id' | 'title' | 'created' | 'slug'> & SearchResultHighlight>, ResponseWrapper>>;
2470
+ searchAll(keyword: string, options?: SearchOption): RequestProxyResult<RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "title" | "slug" | "modified" | "created"> & SearchResultHighlight & {
2467
2471
  type: "post";
2468
- }) | (Pick<NoteModel, "id" | "title" | "modified" | "created" | "nid"> & {
2472
+ }) | (Pick<NoteModel, "id" | "title" | "modified" | "created" | "nid"> & SearchResultHighlight & {
2469
2473
  type: "note";
2470
- }) | (Pick<PageModel, "id" | "title" | "modified" | "created" | "slug"> & {
2474
+ }) | (Pick<PageModel, "id" | "title" | "slug" | "modified" | "created"> & SearchResultHighlight & {
2471
2475
  type: "page";
2472
- })> & {
2473
- /**
2474
- * @see: algoliasearch <https://www.algolia.com/doc/api-reference/api-methods/search/>
2475
- */
2476
- raw?: any;
2477
- }, ResponseWrapper>, ResponseWrapper, ResponseWrapper extends unknown ? {
2476
+ })>, ResponseWrapper>, ResponseWrapper, ResponseWrapper extends unknown ? {
2478
2477
  [key: string]: any;
2479
- data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "title" | "modified" | "created" | "slug"> & {
2478
+ data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "title" | "slug" | "modified" | "created"> & SearchResultHighlight & {
2480
2479
  type: "post";
2481
- }) | (Pick<NoteModel, "id" | "title" | "modified" | "created" | "nid"> & {
2480
+ }) | (Pick<NoteModel, "id" | "title" | "modified" | "created" | "nid"> & SearchResultHighlight & {
2482
2481
  type: "note";
2483
- }) | (Pick<PageModel, "id" | "title" | "modified" | "created" | "slug"> & {
2482
+ }) | (Pick<PageModel, "id" | "title" | "slug" | "modified" | "created"> & SearchResultHighlight & {
2484
2483
  type: "page";
2485
- })> & {
2486
- /**
2487
- * @see: algoliasearch <https://www.algolia.com/doc/api-reference/api-methods/search/>
2488
- */
2489
- raw?: any;
2490
- }, ResponseWrapper>;
2484
+ })>, ResponseWrapper>;
2491
2485
  } : ResponseWrapper extends {
2492
- data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "title" | "modified" | "created" | "slug"> & {
2486
+ data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "title" | "slug" | "modified" | "created"> & SearchResultHighlight & {
2493
2487
  type: "post";
2494
- }) | (Pick<NoteModel, "id" | "title" | "modified" | "created" | "nid"> & {
2488
+ }) | (Pick<NoteModel, "id" | "title" | "modified" | "created" | "nid"> & SearchResultHighlight & {
2495
2489
  type: "note";
2496
- }) | (Pick<PageModel, "id" | "title" | "modified" | "created" | "slug"> & {
2490
+ }) | (Pick<PageModel, "id" | "title" | "slug" | "modified" | "created"> & SearchResultHighlight & {
2497
2491
  type: "page";
2498
- })> & {
2499
- /**
2500
- * @see: algoliasearch <https://www.algolia.com/doc/api-reference/api-methods/search/>
2501
- */
2502
- raw?: any;
2503
- }, ResponseWrapper>;
2492
+ })>, ResponseWrapper>;
2504
2493
  } ? ResponseWrapper : Omit<ResponseWrapper, "data"> & {
2505
- data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "title" | "modified" | "created" | "slug"> & {
2494
+ data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "title" | "slug" | "modified" | "created"> & SearchResultHighlight & {
2506
2495
  type: "post";
2507
- }) | (Pick<NoteModel, "id" | "title" | "modified" | "created" | "nid"> & {
2496
+ }) | (Pick<NoteModel, "id" | "title" | "modified" | "created" | "nid"> & SearchResultHighlight & {
2508
2497
  type: "note";
2509
- }) | (Pick<PageModel, "id" | "title" | "modified" | "created" | "slug"> & {
2498
+ }) | (Pick<PageModel, "id" | "title" | "slug" | "modified" | "created"> & SearchResultHighlight & {
2510
2499
  type: "page";
2511
- })> & {
2512
- /**
2513
- * @see: algoliasearch <https://www.algolia.com/doc/api-reference/api-methods/search/>
2514
- */
2515
- raw?: any;
2516
- }, ResponseWrapper>;
2500
+ })>, ResponseWrapper>;
2517
2501
  }>;
2518
2502
  }
2519
2503
  //#endregion
@@ -2655,4 +2639,4 @@ declare const allControllerNames: readonly ["ai", "ack", "activity", "aggregate"
2655
2639
  */
2656
2640
  declare const camelcaseKeys: <T = any>(obj: any) => T;
2657
2641
  //#endregion
2658
- export { AIController, AIDeepReadingModel, AISummaryModel, AISummaryStreamEvent, AITranslationModel, AITranslationStreamEvent, AcademicMetadata, AckController, ActivityController, ActivityPresence, AdminExtraModel, AggregateAIConfig, AggregateController, AggregateRoot, AggregateRootWithTheme, AggregateSiteInfo, AggregateStat, AggregateTop, AggregateTopNote, AggregateTopPost, AlgoliaSearchOptionsModel, 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 };
2642
+ 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 };