@kookee/sdk 0.0.38 → 0.0.39

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/README.md CHANGED
@@ -4,7 +4,7 @@ Official TypeScript SDK for [Kookee](https://kookee.dev) - the headless CMS for
4
4
 
5
5
  ## Features
6
6
 
7
- - **Lightweight** - Only ~6.41 KB KB minified (ESM), no bloat
7
+ - **Lightweight** - Small minified footprint (ESM), no bloat
8
8
  - **Zero dependencies** - Uses native `fetch`, nothing else
9
9
  - **TypeScript-first** - Full type definitions out of the box
10
10
  - **Tree-shakeable** - Import only what you need
@@ -559,6 +559,7 @@ import type {
559
559
  ReactResponse,
560
560
 
561
561
  // Common
562
+ ApiError,
562
563
  PublicConfig,
563
564
  PaginatedResponse,
564
565
  PaginationParams,
@@ -566,6 +567,38 @@ import type {
566
567
  OrderDirection,
567
568
  KookeeConfig,
568
569
  HealthCheckResponse,
570
+
571
+ // Module request parameter shapes
572
+ EntriesListParams,
573
+ EntriesGetByIdParams,
574
+ EntriesGetBySlugParams,
575
+ EntriesGetCommentsParams,
576
+ EntriesGetCategoriesParams,
577
+ BlogListParams,
578
+ BlogGetBySlugParams,
579
+ BlogGetByIdParams,
580
+ BlogGetCommentsParams,
581
+ HelpCategoriesParams,
582
+ HelpListParams,
583
+ HelpSearchParams,
584
+ HelpGetBySlugParams,
585
+ HelpGetByIdParams,
586
+ HelpGetCommentsParams,
587
+ ChangelogListParams,
588
+ ChangelogGetBySlugParams,
589
+ ChangelogGetByIdParams,
590
+ ChangelogGetCommentsParams,
591
+ PagesListParams,
592
+ PagesGetBySlugParams,
593
+ PagesGetByIdParams,
594
+ PagesGetCommentsParams,
595
+ AnnouncementListParams,
596
+ AnnouncementGetByIdParams,
597
+ AnnouncementGetCommentsParams,
598
+ ConfigListParams,
599
+ FeedbackListParams,
600
+ FeedbackVoteParams,
601
+ FeedbackTopContributorsParams,
569
602
  } from '@kookee/sdk';
570
603
  ```
571
604
 
package/dist/index.d.cts CHANGED
@@ -28,7 +28,6 @@ interface PublicConfig {
28
28
  }
29
29
  interface HealthCheckResponse {
30
30
  status: 'ok';
31
- projectId: string;
32
31
  timestamp: string;
33
32
  }
34
33
  type ReactionType = 'fire' | 'heart' | 'rocket' | 'eyes' | 'mindblown';
@@ -63,7 +62,7 @@ interface HelpChatSource {
63
62
  slug: string | null;
64
63
  title: string;
65
64
  visibility: string | null;
66
- metadata: Record<string, NonNullable<unknown>> | null;
65
+ metadata: Record<string, unknown> | null;
67
66
  category: HelpChatSourceCategory | null;
68
67
  }
69
68
  type HelpChatStreamChunk = {
@@ -205,12 +204,15 @@ type AnnouncementType = 'info' | 'warning' | 'critical' | 'promotion' | 'mainten
205
204
  /**
206
205
  * Author shape returned on public entry responses.
207
206
  *
208
- * NOTE: `name` and `image` can be `null` on the server side.
207
+ * NOTE: `name` and `image` can be `null` on the server side. `isTeamMember`
208
+ * is only populated on comment responses (where the server can tell whether
209
+ * the commenter is a project member) — it is not set on entry author fields.
209
210
  */
210
211
  interface EntryAuthor {
211
212
  id: string;
212
213
  name: string | null;
213
214
  image: string | null;
215
+ isTeamMember?: boolean;
214
216
  }
215
217
  interface EntryTag {
216
218
  id: string;
@@ -268,7 +270,7 @@ interface BaseEntry {
268
270
  views: number;
269
271
  metaTitle: string | null;
270
272
  metaDescription: string | null;
271
- metadata: Record<string, NonNullable<unknown>> | null;
273
+ metadata: Record<string, unknown> | null;
272
274
  reactions: Record<string, number>;
273
275
  createdAt: string;
274
276
  updatedAt: string;
package/dist/index.d.ts CHANGED
@@ -28,7 +28,6 @@ interface PublicConfig {
28
28
  }
29
29
  interface HealthCheckResponse {
30
30
  status: 'ok';
31
- projectId: string;
32
31
  timestamp: string;
33
32
  }
34
33
  type ReactionType = 'fire' | 'heart' | 'rocket' | 'eyes' | 'mindblown';
@@ -63,7 +62,7 @@ interface HelpChatSource {
63
62
  slug: string | null;
64
63
  title: string;
65
64
  visibility: string | null;
66
- metadata: Record<string, NonNullable<unknown>> | null;
65
+ metadata: Record<string, unknown> | null;
67
66
  category: HelpChatSourceCategory | null;
68
67
  }
69
68
  type HelpChatStreamChunk = {
@@ -205,12 +204,15 @@ type AnnouncementType = 'info' | 'warning' | 'critical' | 'promotion' | 'mainten
205
204
  /**
206
205
  * Author shape returned on public entry responses.
207
206
  *
208
- * NOTE: `name` and `image` can be `null` on the server side.
207
+ * NOTE: `name` and `image` can be `null` on the server side. `isTeamMember`
208
+ * is only populated on comment responses (where the server can tell whether
209
+ * the commenter is a project member) — it is not set on entry author fields.
209
210
  */
210
211
  interface EntryAuthor {
211
212
  id: string;
212
213
  name: string | null;
213
214
  image: string | null;
215
+ isTeamMember?: boolean;
214
216
  }
215
217
  interface EntryTag {
216
218
  id: string;
@@ -268,7 +270,7 @@ interface BaseEntry {
268
270
  views: number;
269
271
  metaTitle: string | null;
270
272
  metaDescription: string | null;
271
- metadata: Record<string, NonNullable<unknown>> | null;
273
+ metadata: Record<string, unknown> | null;
272
274
  reactions: Record<string, number>;
273
275
  createdAt: string;
274
276
  updatedAt: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kookee/sdk",
3
- "version": "0.0.38",
3
+ "version": "0.0.39",
4
4
  "description": "Official Kookee SDK - Access your blog, changelog, help center, and more",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",