@skravets/eapi 0.0.39 → 0.0.41

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.
@@ -192,7 +192,7 @@ interface components {
192
192
  channel_id: number;
193
193
  /**
194
194
  * Format: date-time
195
- * @example 2025-12-17T09:26:32.913Z
195
+ * @example 2025-12-26T17:08:54.549Z
196
196
  */
197
197
  message_created_at: string;
198
198
  /** @example 123 */
@@ -349,6 +349,8 @@ interface components {
349
349
  * @default 0
350
350
  */
351
351
  offset: number;
352
+ /** @description Opaque cursor from previous page (base64 encoded). Use this for deep pagination. */
353
+ cursor?: string;
352
354
  /** @description Search filters */
353
355
  filters?: components["schemas"]["CatalogSearchFilters"];
354
356
  /**
@@ -394,6 +396,8 @@ interface components {
394
396
  participantsCount?: number;
395
397
  /** @description Language */
396
398
  language?: string;
399
+ /** @description AI-detected language */
400
+ aiLanguage?: string;
397
401
  /** @description Keywords */
398
402
  keywords?: string[];
399
403
  /** @description Summary */
@@ -403,6 +407,14 @@ interface components {
403
407
  /** @description Search metadata */
404
408
  meta: components["schemas"]["CatalogSearchMeta"];
405
409
  };
410
+ CatalogSearchResponse: {
411
+ /** @description Search results */
412
+ results: components["schemas"]["CatalogSearchResult"][];
413
+ /** @description Cursor for next page (null if no more results) */
414
+ nextCursor?: string;
415
+ /** @description Whether there are more results */
416
+ hasMore: boolean;
417
+ };
406
418
  RelatedLinkDto: {
407
419
  /** @enum {string} */
408
420
  type: "invite" | "username";
@@ -583,6 +595,11 @@ interface components {
583
595
  * @example https://example.com/webhook
584
596
  */
585
597
  webhookUrl: string;
598
+ /**
599
+ * @description Optional subscription key to allow multiple subscriptions per consumer
600
+ * @example primary
601
+ */
602
+ key?: string;
586
603
  query: components["schemas"]["SubscriptionQuery"];
587
604
  };
588
605
  };
@@ -926,7 +943,7 @@ interface operations {
926
943
  [name: string]: unknown;
927
944
  };
928
945
  content: {
929
- "application/json": components["schemas"]["CatalogSearchResult"][];
946
+ "application/json": components["schemas"]["CatalogSearchResponse"];
930
947
  };
931
948
  };
932
949
  /** @description Unauthorized */
@@ -192,7 +192,7 @@ interface components {
192
192
  channel_id: number;
193
193
  /**
194
194
  * Format: date-time
195
- * @example 2025-12-17T09:26:32.913Z
195
+ * @example 2025-12-26T17:08:54.549Z
196
196
  */
197
197
  message_created_at: string;
198
198
  /** @example 123 */
@@ -349,6 +349,8 @@ interface components {
349
349
  * @default 0
350
350
  */
351
351
  offset: number;
352
+ /** @description Opaque cursor from previous page (base64 encoded). Use this for deep pagination. */
353
+ cursor?: string;
352
354
  /** @description Search filters */
353
355
  filters?: components["schemas"]["CatalogSearchFilters"];
354
356
  /**
@@ -394,6 +396,8 @@ interface components {
394
396
  participantsCount?: number;
395
397
  /** @description Language */
396
398
  language?: string;
399
+ /** @description AI-detected language */
400
+ aiLanguage?: string;
397
401
  /** @description Keywords */
398
402
  keywords?: string[];
399
403
  /** @description Summary */
@@ -403,6 +407,14 @@ interface components {
403
407
  /** @description Search metadata */
404
408
  meta: components["schemas"]["CatalogSearchMeta"];
405
409
  };
410
+ CatalogSearchResponse: {
411
+ /** @description Search results */
412
+ results: components["schemas"]["CatalogSearchResult"][];
413
+ /** @description Cursor for next page (null if no more results) */
414
+ nextCursor?: string;
415
+ /** @description Whether there are more results */
416
+ hasMore: boolean;
417
+ };
406
418
  RelatedLinkDto: {
407
419
  /** @enum {string} */
408
420
  type: "invite" | "username";
@@ -583,6 +595,11 @@ interface components {
583
595
  * @example https://example.com/webhook
584
596
  */
585
597
  webhookUrl: string;
598
+ /**
599
+ * @description Optional subscription key to allow multiple subscriptions per consumer
600
+ * @example primary
601
+ */
602
+ key?: string;
586
603
  query: components["schemas"]["SubscriptionQuery"];
587
604
  };
588
605
  };
@@ -926,7 +943,7 @@ interface operations {
926
943
  [name: string]: unknown;
927
944
  };
928
945
  content: {
929
- "application/json": components["schemas"]["CatalogSearchResult"][];
946
+ "application/json": components["schemas"]["CatalogSearchResponse"];
930
947
  };
931
948
  };
932
949
  /** @description Unauthorized */
package/dist/index.d.cts CHANGED
@@ -29,6 +29,7 @@ interface SubscriptionMatchedByKeywords {
29
29
  type SubscriptionMatchedBy = SubscriptionMatchedByKeywords;
30
30
  interface SubscriptionContext {
31
31
  id: number;
32
+ key: string | null;
32
33
  matchedBy: SubscriptionMatchedBy[];
33
34
  }
34
35
  type Metadata<T = Record<string, unknown>> = {
@@ -83,9 +84,21 @@ interface ChatParsedTyped extends PublishersStatusQueueInputChatParsed {
83
84
  interface PublishersStatusQueueInputMessagesParsed {
84
85
  chat: {
85
86
  id: number;
87
+ type?: "group" | "channel" | undefined;
86
88
  username: string;
87
- title: string | undefined;
88
- about: string | undefined;
89
+ title?: string;
90
+ about?: string;
91
+ participantsCount?: number;
92
+ avatarId?: string | null;
93
+ linkedChatId?: number | null;
94
+ isPrivate?: boolean;
95
+ hasForumTabs?: boolean;
96
+ canViewParticipants?: boolean;
97
+ hasJoinRequests?: boolean;
98
+ hasJoinToSend?: boolean;
99
+ hasNativeAntispam?: boolean;
100
+ boostsForUnrestrict?: number | null;
101
+ paidMessagePrice?: number | null;
89
102
  };
90
103
  offset: {
91
104
  start: number;
package/dist/index.d.ts CHANGED
@@ -29,6 +29,7 @@ interface SubscriptionMatchedByKeywords {
29
29
  type SubscriptionMatchedBy = SubscriptionMatchedByKeywords;
30
30
  interface SubscriptionContext {
31
31
  id: number;
32
+ key: string | null;
32
33
  matchedBy: SubscriptionMatchedBy[];
33
34
  }
34
35
  type Metadata<T = Record<string, unknown>> = {
@@ -83,9 +84,21 @@ interface ChatParsedTyped extends PublishersStatusQueueInputChatParsed {
83
84
  interface PublishersStatusQueueInputMessagesParsed {
84
85
  chat: {
85
86
  id: number;
87
+ type?: "group" | "channel" | undefined;
86
88
  username: string;
87
- title: string | undefined;
88
- about: string | undefined;
89
+ title?: string;
90
+ about?: string;
91
+ participantsCount?: number;
92
+ avatarId?: string | null;
93
+ linkedChatId?: number | null;
94
+ isPrivate?: boolean;
95
+ hasForumTabs?: boolean;
96
+ canViewParticipants?: boolean;
97
+ hasJoinRequests?: boolean;
98
+ hasJoinToSend?: boolean;
99
+ hasNativeAntispam?: boolean;
100
+ boostsForUnrestrict?: number | null;
101
+ paidMessagePrice?: number | null;
89
102
  };
90
103
  offset: {
91
104
  start: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skravets/eapi",
3
- "version": "0.0.39",
3
+ "version": "0.0.41",
4
4
  "module": "./dist/index.js",
5
5
  "main": "./dist/index.cjs",
6
6
  "types": "./dist/index.d.ts",