@btst/stack 4.3.0 → 4.4.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.
Files changed (85) hide show
  1. package/README.md +2 -2
  2. package/dist/packages/stack/src/plugins/ai-chat/api/compaction.cjs +249 -0
  3. package/dist/packages/stack/src/plugins/ai-chat/api/compaction.mjs +241 -0
  4. package/dist/packages/stack/src/plugins/ai-chat/api/operations.cjs +20 -0
  5. package/dist/packages/stack/src/plugins/ai-chat/api/operations.mjs +20 -0
  6. package/dist/packages/stack/src/plugins/ai-chat/api/plugin.cjs +5 -0
  7. package/dist/packages/stack/src/plugins/ai-chat/api/plugin.mjs +5 -0
  8. package/dist/packages/stack/src/plugins/ai-chat/client/components/chat-interface.cjs +38 -3
  9. package/dist/packages/stack/src/plugins/ai-chat/client/components/chat-interface.mjs +38 -3
  10. package/dist/packages/stack/src/plugins/ai-chat/client/context-checkpoint.cjs +30 -0
  11. package/dist/packages/stack/src/plugins/ai-chat/client/context-checkpoint.mjs +27 -0
  12. package/dist/packages/stack/src/plugins/ai-chat/schemas.cjs +2 -0
  13. package/dist/packages/stack/src/plugins/ai-chat/schemas.mjs +2 -0
  14. package/dist/packages/ui/src/components/markdown-content.cjs +9 -9
  15. package/dist/packages/ui/src/components/markdown-content.mjs +9 -9
  16. package/dist/plugins/ai-chat/api/index.d.cts +2 -2
  17. package/dist/plugins/ai-chat/api/index.d.mts +2 -2
  18. package/dist/plugins/ai-chat/api/index.d.ts +2 -2
  19. package/dist/plugins/ai-chat/client/components/index.d.cts +1 -1
  20. package/dist/plugins/ai-chat/client/components/index.d.mts +1 -1
  21. package/dist/plugins/ai-chat/client/components/index.d.ts +1 -1
  22. package/dist/plugins/ai-chat/client/hooks/index.d.cts +2 -2
  23. package/dist/plugins/ai-chat/client/hooks/index.d.mts +2 -2
  24. package/dist/plugins/ai-chat/client/hooks/index.d.ts +2 -2
  25. package/dist/plugins/ai-chat/client/index.d.cts +3 -3
  26. package/dist/plugins/ai-chat/client/index.d.mts +3 -3
  27. package/dist/plugins/ai-chat/client/index.d.ts +3 -3
  28. package/dist/plugins/ai-chat/query-keys.d.cts +1 -1
  29. package/dist/plugins/ai-chat/query-keys.d.mts +1 -1
  30. package/dist/plugins/ai-chat/query-keys.d.ts +1 -1
  31. package/dist/plugins/blog/api/index.d.cts +2 -2
  32. package/dist/plugins/blog/api/index.d.mts +2 -2
  33. package/dist/plugins/blog/api/index.d.ts +2 -2
  34. package/dist/plugins/blog/client/hooks/index.d.cts +2 -2
  35. package/dist/plugins/blog/client/hooks/index.d.mts +2 -2
  36. package/dist/plugins/blog/client/hooks/index.d.ts +2 -2
  37. package/dist/plugins/blog/client/index.d.cts +2 -2
  38. package/dist/plugins/blog/client/index.d.mts +2 -2
  39. package/dist/plugins/blog/client/index.d.ts +2 -2
  40. package/dist/plugins/blog/query-keys.d.cts +2 -2
  41. package/dist/plugins/blog/query-keys.d.mts +2 -2
  42. package/dist/plugins/blog/query-keys.d.ts +2 -2
  43. package/dist/plugins/cms/api/index.d.cts +1 -1
  44. package/dist/plugins/cms/api/index.d.mts +1 -1
  45. package/dist/plugins/cms/api/index.d.ts +1 -1
  46. package/dist/plugins/cms/query-keys.d.cts +1 -1
  47. package/dist/plugins/cms/query-keys.d.mts +1 -1
  48. package/dist/plugins/cms/query-keys.d.ts +1 -1
  49. package/dist/plugins/ui-builder/client/hooks/index.d.cts +1 -1
  50. package/dist/plugins/ui-builder/client/hooks/index.d.mts +1 -1
  51. package/dist/plugins/ui-builder/client/hooks/index.d.ts +1 -1
  52. package/dist/plugins/ui-builder/client/index.d.cts +1 -1
  53. package/dist/plugins/ui-builder/client/index.d.mts +1 -1
  54. package/dist/plugins/ui-builder/client/index.d.ts +1 -1
  55. package/dist/plugins/ui-builder/query-keys.d.cts +1 -1
  56. package/dist/plugins/ui-builder/query-keys.d.mts +1 -1
  57. package/dist/plugins/ui-builder/query-keys.d.ts +1 -1
  58. package/dist/shared/{stack.rmWRtSjs.d.cts → stack.BGzgFx3R.d.cts} +4 -4
  59. package/dist/shared/{stack.DBH1Bjko.d.ts → stack.C4zspX0T.d.ts} +13 -2
  60. package/dist/shared/{stack.D2y4gl03.d.mts → stack.CjCSDfWy.d.mts} +4 -4
  61. package/dist/shared/{stack.DQpyA3Cq.d.ts → stack.Clil75lW.d.ts} +86 -86
  62. package/dist/shared/{stack.DzJgoNqJ.d.cts → stack.DDQlE2Pm.d.cts} +1 -0
  63. package/dist/shared/{stack.DiYg7Jw1.d.cts → stack.DNw6Hv5o.d.cts} +86 -86
  64. package/dist/shared/{stack.CZ1h_T4k.d.mts → stack.DhZtP2JZ.d.mts} +86 -86
  65. package/dist/shared/{stack.qMp2VzNw.d.ts → stack.DlehgNZZ.d.ts} +1 -0
  66. package/dist/shared/{stack.CnDMBj4z.d.ts → stack.Dpg_JjIo.d.ts} +4 -4
  67. package/dist/shared/{stack.B7Mj74BQ.d.mts → stack.Ps3MDhTC.d.mts} +13 -2
  68. package/dist/shared/{stack.CHrtGKLz.d.mts → stack.tAUeRAtd.d.mts} +1 -0
  69. package/dist/shared/{stack.Dgt3MCtW.d.cts → stack.ymWsP4HZ.d.cts} +13 -2
  70. package/package.json +1 -1
  71. package/src/__tests__/markdown-link-navigation.test.tsx +29 -0
  72. package/src/plugins/ai-chat/__tests__/compaction.test.ts +272 -0
  73. package/src/plugins/ai-chat/api/compaction.ts +310 -0
  74. package/src/plugins/ai-chat/api/operations.ts +25 -0
  75. package/src/plugins/ai-chat/api/plugin.ts +14 -0
  76. package/src/plugins/ai-chat/client/components/chat-interface.tsx +58 -3
  77. package/src/plugins/ai-chat/client/context-checkpoint.ts +47 -0
  78. package/src/plugins/ai-chat/client/localization/index.ts +1 -0
  79. package/src/plugins/ai-chat/schemas.ts +2 -0
  80. package/dist/shared/{stack.lsbdKRj7.d.mts → stack.B8PG21zX.d.mts} +16 -16
  81. package/dist/shared/{stack.DtZgEX84.d.cts → stack.Csi-4Mgz.d.cts} +6 -6
  82. package/dist/shared/{stack.DtZgEX84.d.mts → stack.Csi-4Mgz.d.mts} +6 -6
  83. package/dist/shared/{stack.DtZgEX84.d.ts → stack.Csi-4Mgz.d.ts} +6 -6
  84. package/dist/shared/{stack.BMlTZnZp.d.ts → stack.CyalJ0j6.d.ts} +16 -16
  85. package/dist/shared/{stack.BV0uNV4f.d.cts → stack.D6Pg-ufX.d.cts} +16 -16
@@ -2,7 +2,7 @@ import * as _btst_stack_plugins_client from '@btst/stack/plugins/client';
2
2
  import { createApiClient } from '@btst/stack/plugins/client';
3
3
  import * as zod from 'zod';
4
4
  import { z } from 'zod';
5
- import { c as createPostSchema, u as updatePostSchema } from './stack.DtZgEX84.cjs';
5
+ import { c as createPostSchema, u as updatePostSchema } from './stack.Csi-4Mgz.cjs';
6
6
  import { P as Post, T as Tag, S as SerializedPost, a as SerializedTag } from './stack.Dsatjh0B.cjs';
7
7
  import * as _btst_stack_plugins_api from '@btst/stack/plugins/api';
8
8
  import { DeepReadonly, OperationContext, OperationErrorContext } from '@btst/stack/plugins/api';
@@ -89,9 +89,6 @@ declare const NextPreviousPostsQuerySchema: z.ZodObject<{
89
89
  date: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
90
90
  }, z.core.$strip>;
91
91
  declare const CreatePostOperationInputSchema: z.ZodObject<{
92
- slug: z.ZodOptional<z.ZodString>;
93
- published: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
94
- title: z.ZodString;
95
92
  tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
96
93
  name: z.ZodString;
97
94
  }, z.core.$strip>, z.ZodObject<{
@@ -99,9 +96,12 @@ declare const CreatePostOperationInputSchema: z.ZodObject<{
99
96
  name: z.ZodString;
100
97
  slug: z.ZodString;
101
98
  }, z.core.$strip>]>>>>;
99
+ slug: z.ZodOptional<z.ZodString>;
100
+ title: z.ZodString;
102
101
  content: z.ZodString;
103
102
  excerpt: z.ZodString;
104
103
  image: z.ZodOptional<z.ZodString>;
104
+ published: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
105
105
  publishedAt: z.ZodOptional<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>;
106
106
  createdAt: z.ZodOptional<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>;
107
107
  updatedAt: z.ZodOptional<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>;
@@ -109,9 +109,6 @@ declare const CreatePostOperationInputSchema: z.ZodObject<{
109
109
  declare const UpdatePostOperationInputSchema: z.ZodObject<{
110
110
  id: z.ZodString;
111
111
  data: z.ZodObject<{
112
- slug: z.ZodString;
113
- published: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
114
- title: z.ZodString;
115
112
  tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
116
113
  name: z.ZodString;
117
114
  }, z.core.$strip>, z.ZodObject<{
@@ -119,9 +116,12 @@ declare const UpdatePostOperationInputSchema: z.ZodObject<{
119
116
  name: z.ZodString;
120
117
  slug: z.ZodString;
121
118
  }, z.core.$strip>]>>>>;
119
+ slug: z.ZodString;
120
+ title: z.ZodString;
122
121
  content: z.ZodString;
123
122
  excerpt: z.ZodString;
124
123
  image: z.ZodOptional<z.ZodString>;
124
+ published: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
125
125
  publishedAt: z.ZodOptional<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>;
126
126
  createdAt: z.ZodOptional<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>;
127
127
  updatedAt: z.ZodOptional<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>;
@@ -244,22 +244,22 @@ declare function serializeListResult(result: Awaited<ReturnType<typeof getAllPos
244
244
  tags: {
245
245
  createdAt: string;
246
246
  updatedAt: string;
247
- slug: string;
248
247
  id: string;
249
248
  name: string;
249
+ slug: string;
250
250
  }[];
251
251
  publishedAt?: string;
252
252
  createdAt: string;
253
253
  updatedAt: string;
254
- slug: string;
255
- published: boolean;
256
254
  id: string;
255
+ slug: string;
257
256
  title: string;
258
- authorId?: string | undefined;
259
- defaultLocale?: string | undefined;
260
257
  content: string;
261
258
  excerpt: string;
262
259
  image?: string | undefined;
260
+ published: boolean;
261
+ authorId?: string | undefined;
262
+ defaultLocale?: string | undefined;
263
263
  status?: "DRAFT" | "PUBLISHED" | undefined;
264
264
  }[];
265
265
  total: number;
@@ -269,44 +269,44 @@ declare function findNextPreviousPosts(adapter: DBAdapter, date: Date): Promise<
269
269
  tags: {
270
270
  createdAt: string;
271
271
  updatedAt: string;
272
- slug: string;
273
272
  id: string;
274
273
  name: string;
274
+ slug: string;
275
275
  }[];
276
276
  publishedAt?: string;
277
277
  createdAt: string;
278
278
  updatedAt: string;
279
- slug: string;
280
- published: boolean;
281
279
  id: string;
280
+ slug: string;
282
281
  title: string;
283
- authorId?: string | undefined;
284
- defaultLocale?: string | undefined;
285
282
  content: string;
286
283
  excerpt: string;
287
284
  image?: string | undefined;
285
+ published: boolean;
286
+ authorId?: string | undefined;
287
+ defaultLocale?: string | undefined;
288
288
  status?: "DRAFT" | "PUBLISHED" | undefined;
289
289
  } | null;
290
290
  next: {
291
291
  tags: {
292
292
  createdAt: string;
293
293
  updatedAt: string;
294
- slug: string;
295
294
  id: string;
296
295
  name: string;
296
+ slug: string;
297
297
  }[];
298
298
  publishedAt?: string;
299
299
  createdAt: string;
300
300
  updatedAt: string;
301
- slug: string;
302
- published: boolean;
303
301
  id: string;
302
+ slug: string;
304
303
  title: string;
305
- authorId?: string | undefined;
306
- defaultLocale?: string | undefined;
307
304
  content: string;
308
305
  excerpt: string;
309
306
  image?: string | undefined;
307
+ published: boolean;
308
+ authorId?: string | undefined;
309
+ defaultLocale?: string | undefined;
310
310
  status?: "DRAFT" | "PUBLISHED" | undefined;
311
311
  } | null;
312
312
  }>;
@@ -358,22 +358,22 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
358
358
  readonly tags: readonly {
359
359
  readonly createdAt: string;
360
360
  readonly updatedAt: string;
361
- readonly slug: string;
362
361
  readonly id: string;
363
362
  readonly name: string;
363
+ readonly slug: string;
364
364
  }[];
365
365
  readonly publishedAt?: string | undefined;
366
366
  readonly createdAt: string;
367
367
  readonly updatedAt: string;
368
- readonly slug: string;
369
- readonly published: boolean;
370
368
  readonly id: string;
369
+ readonly slug: string;
371
370
  readonly title: string;
372
- readonly authorId?: string | undefined;
373
- readonly defaultLocale?: string | undefined;
374
371
  readonly content: string;
375
372
  readonly excerpt: string;
376
373
  readonly image?: string | undefined;
374
+ readonly published: boolean;
375
+ readonly authorId?: string | undefined;
376
+ readonly defaultLocale?: string | undefined;
377
377
  readonly status?: "DRAFT" | "PUBLISHED" | undefined;
378
378
  }[];
379
379
  readonly total: number;
@@ -386,8 +386,6 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
386
386
  title: string;
387
387
  content: string;
388
388
  excerpt: string;
389
- slug?: string | undefined;
390
- published?: boolean | undefined;
391
389
  tags?: ({
392
390
  name: string;
393
391
  } | {
@@ -395,7 +393,9 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
395
393
  name: string;
396
394
  slug: string;
397
395
  })[] | undefined;
396
+ slug?: string | undefined;
398
397
  image?: string | undefined;
398
+ published?: boolean | undefined;
399
399
  publishedAt?: unknown;
400
400
  createdAt?: unknown;
401
401
  updatedAt?: unknown;
@@ -403,8 +403,6 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
403
403
  title: string;
404
404
  content: string;
405
405
  excerpt: string;
406
- slug?: string | undefined;
407
- published?: boolean | undefined;
408
406
  tags?: ({
409
407
  name: string;
410
408
  } | {
@@ -412,7 +410,9 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
412
410
  name: string;
413
411
  slug: string;
414
412
  })[] | undefined;
413
+ slug?: string | undefined;
415
414
  image?: string | undefined;
415
+ published?: boolean | undefined;
416
416
  publishedAt?: unknown;
417
417
  createdAt?: unknown;
418
418
  updatedAt?: unknown;
@@ -421,22 +421,22 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
421
421
  readonly tags: readonly {
422
422
  readonly createdAt: string;
423
423
  readonly updatedAt: string;
424
- readonly slug: string;
425
424
  readonly id: string;
426
425
  readonly name: string;
426
+ readonly slug: string;
427
427
  }[];
428
428
  readonly publishedAt?: string | undefined;
429
429
  readonly createdAt: string;
430
430
  readonly updatedAt: string;
431
- readonly slug: string;
432
- readonly published: boolean;
433
431
  readonly id: string;
432
+ readonly slug: string;
434
433
  readonly title: string;
435
- readonly authorId?: string | undefined;
436
- readonly defaultLocale?: string | undefined;
437
434
  readonly content: string;
438
435
  readonly excerpt: string;
439
436
  readonly image?: string | undefined;
437
+ readonly published: boolean;
438
+ readonly authorId?: string | undefined;
439
+ readonly defaultLocale?: string | undefined;
440
440
  readonly status?: "DRAFT" | "PUBLISHED" | undefined;
441
441
  }>;
442
442
  readonly updatePost: better_call.StrictEndpoint<"/posts/:id", {
@@ -448,7 +448,6 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
448
448
  title: string;
449
449
  content: string;
450
450
  excerpt: string;
451
- published?: boolean | undefined;
452
451
  tags?: ({
453
452
  name: string;
454
453
  } | {
@@ -457,6 +456,7 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
457
456
  slug: string;
458
457
  })[] | undefined;
459
458
  image?: string | undefined;
459
+ published?: boolean | undefined;
460
460
  publishedAt?: unknown;
461
461
  createdAt?: unknown;
462
462
  updatedAt?: unknown;
@@ -465,7 +465,6 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
465
465
  title: string;
466
466
  content: string;
467
467
  excerpt: string;
468
- published?: boolean | undefined;
469
468
  tags?: ({
470
469
  name: string;
471
470
  } | {
@@ -474,6 +473,7 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
474
473
  slug: string;
475
474
  })[] | undefined;
476
475
  image?: string | undefined;
476
+ published?: boolean | undefined;
477
477
  publishedAt?: unknown;
478
478
  createdAt?: unknown;
479
479
  updatedAt?: unknown;
@@ -482,22 +482,22 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
482
482
  readonly tags: readonly {
483
483
  readonly createdAt: string;
484
484
  readonly updatedAt: string;
485
- readonly slug: string;
486
485
  readonly id: string;
487
486
  readonly name: string;
487
+ readonly slug: string;
488
488
  }[];
489
489
  readonly publishedAt?: string | undefined;
490
490
  readonly createdAt: string;
491
491
  readonly updatedAt: string;
492
- readonly slug: string;
493
- readonly published: boolean;
494
492
  readonly id: string;
493
+ readonly slug: string;
495
494
  readonly title: string;
496
- readonly authorId?: string | undefined;
497
- readonly defaultLocale?: string | undefined;
498
495
  readonly content: string;
499
496
  readonly excerpt: string;
500
497
  readonly image?: string | undefined;
498
+ readonly published: boolean;
499
+ readonly authorId?: string | undefined;
500
+ readonly defaultLocale?: string | undefined;
501
501
  readonly status?: "DRAFT" | "PUBLISHED" | undefined;
502
502
  }>;
503
503
  readonly deletePost: better_call.StrictEndpoint<"/posts/:id", {
@@ -523,44 +523,44 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
523
523
  readonly tags: readonly {
524
524
  readonly createdAt: string;
525
525
  readonly updatedAt: string;
526
- readonly slug: string;
527
526
  readonly id: string;
528
527
  readonly name: string;
528
+ readonly slug: string;
529
529
  }[];
530
530
  readonly publishedAt?: string | undefined;
531
531
  readonly createdAt: string;
532
532
  readonly updatedAt: string;
533
- readonly slug: string;
534
- readonly published: boolean;
535
533
  readonly id: string;
534
+ readonly slug: string;
536
535
  readonly title: string;
537
- readonly authorId?: string | undefined;
538
- readonly defaultLocale?: string | undefined;
539
536
  readonly content: string;
540
537
  readonly excerpt: string;
541
538
  readonly image?: string | undefined;
539
+ readonly published: boolean;
540
+ readonly authorId?: string | undefined;
541
+ readonly defaultLocale?: string | undefined;
542
542
  readonly status?: "DRAFT" | "PUBLISHED" | undefined;
543
543
  } | null;
544
544
  readonly next: {
545
545
  readonly tags: readonly {
546
546
  readonly createdAt: string;
547
547
  readonly updatedAt: string;
548
- readonly slug: string;
549
548
  readonly id: string;
550
549
  readonly name: string;
550
+ readonly slug: string;
551
551
  }[];
552
552
  readonly publishedAt?: string | undefined;
553
553
  readonly createdAt: string;
554
554
  readonly updatedAt: string;
555
- readonly slug: string;
556
- readonly published: boolean;
557
555
  readonly id: string;
556
+ readonly slug: string;
558
557
  readonly title: string;
559
- readonly authorId?: string | undefined;
560
- readonly defaultLocale?: string | undefined;
561
558
  readonly content: string;
562
559
  readonly excerpt: string;
563
560
  readonly image?: string | undefined;
561
+ readonly published: boolean;
562
+ readonly authorId?: string | undefined;
563
+ readonly defaultLocale?: string | undefined;
564
564
  readonly status?: "DRAFT" | "PUBLISHED" | undefined;
565
565
  } | null;
566
566
  }>;
@@ -571,9 +571,9 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
571
571
  }, readonly {
572
572
  readonly createdAt: string;
573
573
  readonly updatedAt: string;
574
- readonly slug: string;
575
574
  readonly id: string;
576
575
  readonly name: string;
576
+ readonly slug: string;
577
577
  }[]>;
578
578
  }, {
579
579
  prefetchForRoute: BlogPrefetchForRoute;
@@ -606,30 +606,27 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
606
606
  tags: {
607
607
  createdAt: string;
608
608
  updatedAt: string;
609
- slug: string;
610
609
  id: string;
611
610
  name: string;
611
+ slug: string;
612
612
  }[];
613
613
  publishedAt?: string;
614
614
  createdAt: string;
615
615
  updatedAt: string;
616
- slug: string;
617
- published: boolean;
618
616
  id: string;
617
+ slug: string;
619
618
  title: string;
620
- authorId?: string | undefined;
621
- defaultLocale?: string | undefined;
622
619
  content: string;
623
620
  excerpt: string;
624
621
  image?: string | undefined;
622
+ published: boolean;
623
+ authorId?: string | undefined;
624
+ defaultLocale?: string | undefined;
625
625
  status?: "DRAFT" | "PUBLISHED" | undefined;
626
626
  }[];
627
627
  total: number;
628
628
  }, false>;
629
629
  readonly createPost: _btst_stack_plugins_api.Operation<zod.ZodObject<{
630
- slug: zod.ZodOptional<zod.ZodString>;
631
- published: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
632
- title: zod.ZodString;
633
630
  tags: zod.ZodDefault<zod.ZodOptional<zod.ZodArray<zod.ZodUnion<readonly [zod.ZodObject<{
634
631
  name: zod.ZodString;
635
632
  }, zod_v4_core.$strip>, zod.ZodObject<{
@@ -637,9 +634,12 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
637
634
  name: zod.ZodString;
638
635
  slug: zod.ZodString;
639
636
  }, zod_v4_core.$strip>]>>>>;
637
+ slug: zod.ZodOptional<zod.ZodString>;
638
+ title: zod.ZodString;
640
639
  content: zod.ZodString;
641
640
  excerpt: zod.ZodString;
642
641
  image: zod.ZodOptional<zod.ZodString>;
642
+ published: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
643
643
  publishedAt: zod.ZodOptional<zod.ZodPipe<zod.ZodCoercedDate<unknown>, zod.ZodTransform<string, Date>>>;
644
644
  createdAt: zod.ZodOptional<zod.ZodPipe<zod.ZodCoercedDate<unknown>, zod.ZodTransform<string, Date>>>;
645
645
  updatedAt: zod.ZodOptional<zod.ZodPipe<zod.ZodCoercedDate<unknown>, zod.ZodTransform<string, Date>>>;
@@ -652,30 +652,27 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
652
652
  tags: {
653
653
  createdAt: string;
654
654
  updatedAt: string;
655
- slug: string;
656
655
  id: string;
657
656
  name: string;
657
+ slug: string;
658
658
  }[];
659
659
  publishedAt?: string;
660
660
  createdAt: string;
661
661
  updatedAt: string;
662
- slug: string;
663
- published: boolean;
664
662
  id: string;
663
+ slug: string;
665
664
  title: string;
666
- authorId?: string | undefined;
667
- defaultLocale?: string | undefined;
668
665
  content: string;
669
666
  excerpt: string;
670
667
  image?: string | undefined;
668
+ published: boolean;
669
+ authorId?: string | undefined;
670
+ defaultLocale?: string | undefined;
671
671
  status?: "DRAFT" | "PUBLISHED" | undefined;
672
672
  }, false>;
673
673
  readonly updatePost: _btst_stack_plugins_api.Operation<zod.ZodObject<{
674
674
  id: zod.ZodString;
675
675
  data: zod.ZodObject<{
676
- slug: zod.ZodString;
677
- published: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
678
- title: zod.ZodString;
679
676
  tags: zod.ZodDefault<zod.ZodOptional<zod.ZodArray<zod.ZodUnion<readonly [zod.ZodObject<{
680
677
  name: zod.ZodString;
681
678
  }, zod_v4_core.$strip>, zod.ZodObject<{
@@ -683,9 +680,12 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
683
680
  name: zod.ZodString;
684
681
  slug: zod.ZodString;
685
682
  }, zod_v4_core.$strip>]>>>>;
683
+ slug: zod.ZodString;
684
+ title: zod.ZodString;
686
685
  content: zod.ZodString;
687
686
  excerpt: zod.ZodString;
688
687
  image: zod.ZodOptional<zod.ZodString>;
688
+ published: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
689
689
  publishedAt: zod.ZodOptional<zod.ZodPipe<zod.ZodCoercedDate<unknown>, zod.ZodTransform<string, Date>>>;
690
690
  createdAt: zod.ZodOptional<zod.ZodPipe<zod.ZodCoercedDate<unknown>, zod.ZodTransform<string, Date>>>;
691
691
  updatedAt: zod.ZodOptional<zod.ZodPipe<zod.ZodCoercedDate<unknown>, zod.ZodTransform<string, Date>>>;
@@ -702,22 +702,22 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
702
702
  tags: {
703
703
  createdAt: string;
704
704
  updatedAt: string;
705
- slug: string;
706
705
  id: string;
707
706
  name: string;
707
+ slug: string;
708
708
  }[];
709
709
  publishedAt?: string;
710
710
  createdAt: string;
711
711
  updatedAt: string;
712
- slug: string;
713
- published: boolean;
714
712
  id: string;
713
+ slug: string;
715
714
  title: string;
716
- authorId?: string | undefined;
717
- defaultLocale?: string | undefined;
718
715
  content: string;
719
716
  excerpt: string;
720
717
  image?: string | undefined;
718
+ published: boolean;
719
+ authorId?: string | undefined;
720
+ defaultLocale?: string | undefined;
721
721
  status?: "DRAFT" | "PUBLISHED" | undefined;
722
722
  }, false>;
723
723
  readonly deletePost: _btst_stack_plugins_api.Operation<zod.ZodObject<{
@@ -746,53 +746,53 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
746
746
  tags: {
747
747
  createdAt: string;
748
748
  updatedAt: string;
749
- slug: string;
750
749
  id: string;
751
750
  name: string;
751
+ slug: string;
752
752
  }[];
753
753
  publishedAt?: string;
754
754
  createdAt: string;
755
755
  updatedAt: string;
756
- slug: string;
757
- published: boolean;
758
756
  id: string;
757
+ slug: string;
759
758
  title: string;
760
- authorId?: string | undefined;
761
- defaultLocale?: string | undefined;
762
759
  content: string;
763
760
  excerpt: string;
764
761
  image?: string | undefined;
762
+ published: boolean;
763
+ authorId?: string | undefined;
764
+ defaultLocale?: string | undefined;
765
765
  status?: "DRAFT" | "PUBLISHED" | undefined;
766
766
  } | null;
767
767
  next: {
768
768
  tags: {
769
769
  createdAt: string;
770
770
  updatedAt: string;
771
- slug: string;
772
771
  id: string;
773
772
  name: string;
773
+ slug: string;
774
774
  }[];
775
775
  publishedAt?: string;
776
776
  createdAt: string;
777
777
  updatedAt: string;
778
- slug: string;
779
- published: boolean;
780
778
  id: string;
779
+ slug: string;
781
780
  title: string;
782
- authorId?: string | undefined;
783
- defaultLocale?: string | undefined;
784
781
  content: string;
785
782
  excerpt: string;
786
783
  image?: string | undefined;
784
+ published: boolean;
785
+ authorId?: string | undefined;
786
+ defaultLocale?: string | undefined;
787
787
  status?: "DRAFT" | "PUBLISHED" | undefined;
788
788
  } | null;
789
789
  }, false>;
790
790
  readonly listTags: _btst_stack_plugins_api.Operation<zod.ZodObject<{}, zod_v4_core.$strip>, PermissionDescriptor<"blog:tag.read", undefined>, {
791
791
  createdAt: string;
792
792
  updatedAt: string;
793
- slug: string;
794
793
  id: string;
795
794
  name: string;
795
+ slug: string;
796
796
  }[], false>;
797
797
  }, "blog">;
798
798
  type BlogApiRouter = ReturnType<ReturnType<typeof blogBackendPlugin>["routes"]>;