@btst/stack 4.2.0 → 4.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.
Files changed (56) hide show
  1. package/README.md +2 -2
  2. package/dist/packages/stack/src/plugins/ai-chat/client/components/chat-layout.cjs +173 -72
  3. package/dist/packages/stack/src/plugins/ai-chat/client/components/chat-layout.mjs +176 -75
  4. package/dist/plugins/ai-chat/client/components/index.d.cts +1 -1
  5. package/dist/plugins/ai-chat/client/components/index.d.mts +1 -1
  6. package/dist/plugins/ai-chat/client/components/index.d.ts +1 -1
  7. package/dist/plugins/ai-chat/client/index.d.cts +2 -2
  8. package/dist/plugins/ai-chat/client/index.d.mts +2 -2
  9. package/dist/plugins/ai-chat/client/index.d.ts +2 -2
  10. package/dist/plugins/blog/api/index.d.cts +2 -2
  11. package/dist/plugins/blog/api/index.d.mts +2 -2
  12. package/dist/plugins/blog/api/index.d.ts +2 -2
  13. package/dist/plugins/blog/client/hooks/index.d.cts +2 -2
  14. package/dist/plugins/blog/client/hooks/index.d.mts +2 -2
  15. package/dist/plugins/blog/client/hooks/index.d.ts +2 -2
  16. package/dist/plugins/blog/client/index.d.cts +2 -2
  17. package/dist/plugins/blog/client/index.d.mts +2 -2
  18. package/dist/plugins/blog/client/index.d.ts +2 -2
  19. package/dist/plugins/blog/query-keys.d.cts +2 -2
  20. package/dist/plugins/blog/query-keys.d.mts +2 -2
  21. package/dist/plugins/blog/query-keys.d.ts +2 -2
  22. package/dist/plugins/cms/api/index.d.cts +1 -1
  23. package/dist/plugins/cms/api/index.d.mts +1 -1
  24. package/dist/plugins/cms/api/index.d.ts +1 -1
  25. package/dist/plugins/cms/query-keys.d.cts +1 -1
  26. package/dist/plugins/cms/query-keys.d.mts +1 -1
  27. package/dist/plugins/cms/query-keys.d.ts +1 -1
  28. package/dist/plugins/ui-builder/client/hooks/index.d.cts +1 -1
  29. package/dist/plugins/ui-builder/client/hooks/index.d.mts +1 -1
  30. package/dist/plugins/ui-builder/client/hooks/index.d.ts +1 -1
  31. package/dist/plugins/ui-builder/client/index.d.cts +1 -1
  32. package/dist/plugins/ui-builder/client/index.d.mts +1 -1
  33. package/dist/plugins/ui-builder/client/index.d.ts +1 -1
  34. package/dist/plugins/ui-builder/query-keys.d.cts +1 -1
  35. package/dist/plugins/ui-builder/query-keys.d.mts +1 -1
  36. package/dist/plugins/ui-builder/query-keys.d.ts +1 -1
  37. package/dist/shared/{stack.C5FZr-jJ.d.mts → stack.CHrtGKLz.d.mts} +9 -3
  38. package/dist/shared/{stack.CTneIW0u.d.mts → stack.CZ1h_T4k.d.mts} +88 -88
  39. package/dist/shared/{stack.DfrRYOIl.d.ts → stack.CnDMBj4z.d.ts} +5 -5
  40. package/dist/shared/{stack.94kN3pEK.d.mts → stack.D2y4gl03.d.mts} +5 -5
  41. package/dist/shared/{stack.D5b9l24t.d.ts → stack.DQpyA3Cq.d.ts} +88 -88
  42. package/dist/shared/{stack.Ce6V7eDj.d.cts → stack.DiYg7Jw1.d.cts} +88 -88
  43. package/dist/shared/{stack.xAiy2VtO.d.cts → stack.DzJgoNqJ.d.cts} +9 -3
  44. package/dist/shared/{stack.C-eQN_Jt.d.ts → stack.qMp2VzNw.d.ts} +9 -3
  45. package/dist/shared/{stack.BTStHVTy.d.cts → stack.rmWRtSjs.d.cts} +5 -5
  46. package/package.json +2 -2
  47. package/src/plugins/ai-chat/__tests__/classnames-overrides.test.tsx +22 -2
  48. package/src/plugins/ai-chat/__tests__/page-widget.test.tsx +103 -1
  49. package/src/plugins/ai-chat/client/components/chat-layout.tsx +197 -72
  50. package/src/plugins/ai-chat/client/localization/index.ts +4 -0
  51. package/dist/shared/{stack.CyalJ0j6.d.ts → stack.BMlTZnZp.d.ts} +16 -16
  52. package/dist/shared/{stack.D6Pg-ufX.d.cts → stack.BV0uNV4f.d.cts} +16 -16
  53. package/dist/shared/{stack.CKc_Bais.d.cts → stack.DtZgEX84.d.cts} +6 -6
  54. package/dist/shared/{stack.CKc_Bais.d.mts → stack.DtZgEX84.d.mts} +6 -6
  55. package/dist/shared/{stack.CKc_Bais.d.ts → stack.DtZgEX84.d.ts} +6 -6
  56. package/dist/shared/{stack.B8PG21zX.d.mts → stack.lsbdKRj7.d.mts} +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.CKc_Bais.mjs';
5
+ import { c as createPostSchema, u as updatePostSchema } from './stack.DtZgEX84.mjs';
6
6
  import { P as Post, T as Tag, S as SerializedPost, a as SerializedTag } from './stack.Dsatjh0B.mjs';
7
7
  import * as _btst_stack_plugins_api from '@btst/stack/plugins/api';
8
8
  import { DeepReadonly, OperationContext, OperationErrorContext } from '@btst/stack/plugins/api';
@@ -90,11 +90,8 @@ declare const NextPreviousPostsQuerySchema: z.ZodObject<{
90
90
  }, z.core.$strip>;
91
91
  declare const CreatePostOperationInputSchema: z.ZodObject<{
92
92
  slug: z.ZodOptional<z.ZodString>;
93
- title: z.ZodString;
94
- content: z.ZodString;
95
- excerpt: z.ZodString;
96
- image: z.ZodOptional<z.ZodString>;
97
93
  published: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
94
+ title: z.ZodString;
98
95
  tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
99
96
  name: z.ZodString;
100
97
  }, z.core.$strip>, z.ZodObject<{
@@ -102,6 +99,9 @@ declare const CreatePostOperationInputSchema: z.ZodObject<{
102
99
  name: z.ZodString;
103
100
  slug: z.ZodString;
104
101
  }, z.core.$strip>]>>>>;
102
+ content: z.ZodString;
103
+ excerpt: z.ZodString;
104
+ image: z.ZodOptional<z.ZodString>;
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>>>;
@@ -110,11 +110,8 @@ declare const UpdatePostOperationInputSchema: z.ZodObject<{
110
110
  id: z.ZodString;
111
111
  data: z.ZodObject<{
112
112
  slug: z.ZodString;
113
- title: z.ZodString;
114
- content: z.ZodString;
115
- excerpt: z.ZodString;
116
- image: z.ZodOptional<z.ZodString>;
117
113
  published: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
114
+ title: z.ZodString;
118
115
  tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
119
116
  name: z.ZodString;
120
117
  }, z.core.$strip>, z.ZodObject<{
@@ -122,6 +119,9 @@ declare const UpdatePostOperationInputSchema: z.ZodObject<{
122
119
  name: z.ZodString;
123
120
  slug: z.ZodString;
124
121
  }, z.core.$strip>]>>>>;
122
+ content: z.ZodString;
123
+ excerpt: z.ZodString;
124
+ image: z.ZodOptional<z.ZodString>;
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;
247
248
  id: string;
248
249
  name: string;
249
- slug: string;
250
250
  }[];
251
251
  publishedAt?: string;
252
252
  createdAt: string;
253
253
  updatedAt: string;
254
- id: string;
255
254
  slug: string;
255
+ published: boolean;
256
+ id: string;
256
257
  title: string;
258
+ authorId?: string | undefined;
259
+ defaultLocale?: string | undefined;
257
260
  content: string;
258
261
  excerpt: string;
259
262
  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;
272
273
  id: string;
273
274
  name: string;
274
- slug: string;
275
275
  }[];
276
276
  publishedAt?: string;
277
277
  createdAt: string;
278
278
  updatedAt: string;
279
- id: string;
280
279
  slug: string;
280
+ published: boolean;
281
+ id: string;
281
282
  title: string;
283
+ authorId?: string | undefined;
284
+ defaultLocale?: string | undefined;
282
285
  content: string;
283
286
  excerpt: string;
284
287
  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;
294
295
  id: string;
295
296
  name: string;
296
- slug: string;
297
297
  }[];
298
298
  publishedAt?: string;
299
299
  createdAt: string;
300
300
  updatedAt: string;
301
- id: string;
302
301
  slug: string;
302
+ published: boolean;
303
+ id: string;
303
304
  title: string;
305
+ authorId?: string | undefined;
306
+ defaultLocale?: string | undefined;
304
307
  content: string;
305
308
  excerpt: string;
306
309
  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;
361
362
  readonly id: string;
362
363
  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 id: string;
369
368
  readonly slug: string;
369
+ readonly published: boolean;
370
+ readonly id: string;
370
371
  readonly title: string;
372
+ readonly authorId?: string | undefined;
373
+ readonly defaultLocale?: string | undefined;
371
374
  readonly content: string;
372
375
  readonly excerpt: string;
373
376
  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;
@@ -387,7 +387,6 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
387
387
  content: string;
388
388
  excerpt: string;
389
389
  slug?: string | undefined;
390
- image?: string | undefined;
391
390
  published?: boolean | undefined;
392
391
  tags?: ({
393
392
  name: string;
@@ -396,6 +395,7 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
396
395
  name: string;
397
396
  slug: string;
398
397
  })[] | undefined;
398
+ image?: string | undefined;
399
399
  publishedAt?: unknown;
400
400
  createdAt?: unknown;
401
401
  updatedAt?: unknown;
@@ -404,7 +404,6 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
404
404
  content: string;
405
405
  excerpt: string;
406
406
  slug?: string | undefined;
407
- image?: string | undefined;
408
407
  published?: boolean | undefined;
409
408
  tags?: ({
410
409
  name: string;
@@ -413,6 +412,7 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
413
412
  name: string;
414
413
  slug: string;
415
414
  })[] | undefined;
415
+ image?: string | 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;
424
425
  readonly id: string;
425
426
  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 id: string;
432
431
  readonly slug: string;
432
+ readonly published: boolean;
433
+ readonly id: string;
433
434
  readonly title: string;
435
+ readonly authorId?: string | undefined;
436
+ readonly defaultLocale?: string | undefined;
434
437
  readonly content: string;
435
438
  readonly excerpt: string;
436
439
  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
- image?: string | undefined;
452
451
  published?: boolean | undefined;
453
452
  tags?: ({
454
453
  name: string;
@@ -457,6 +456,7 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
457
456
  name: string;
458
457
  slug: string;
459
458
  })[] | undefined;
459
+ image?: string | 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
- image?: string | undefined;
469
468
  published?: boolean | undefined;
470
469
  tags?: ({
471
470
  name: string;
@@ -474,6 +473,7 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
474
473
  name: string;
475
474
  slug: string;
476
475
  })[] | undefined;
476
+ image?: string | 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;
485
486
  readonly id: string;
486
487
  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 id: string;
493
492
  readonly slug: string;
493
+ readonly published: boolean;
494
+ readonly id: string;
494
495
  readonly title: string;
496
+ readonly authorId?: string | undefined;
497
+ readonly defaultLocale?: string | undefined;
495
498
  readonly content: string;
496
499
  readonly excerpt: string;
497
500
  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;
526
527
  readonly id: string;
527
528
  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 id: string;
534
533
  readonly slug: string;
534
+ readonly published: boolean;
535
+ readonly id: string;
535
536
  readonly title: string;
537
+ readonly authorId?: string | undefined;
538
+ readonly defaultLocale?: string | undefined;
536
539
  readonly content: string;
537
540
  readonly excerpt: string;
538
541
  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;
548
549
  readonly id: string;
549
550
  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 id: string;
556
555
  readonly slug: string;
556
+ readonly published: boolean;
557
+ readonly id: string;
557
558
  readonly title: string;
559
+ readonly authorId?: string | undefined;
560
+ readonly defaultLocale?: string | undefined;
558
561
  readonly content: string;
559
562
  readonly excerpt: string;
560
563
  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;
574
575
  readonly id: string;
575
576
  readonly name: string;
576
- readonly slug: string;
577
577
  }[]>;
578
578
  }, {
579
579
  prefetchForRoute: BlogPrefetchForRoute;
@@ -606,33 +606,30 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
606
606
  tags: {
607
607
  createdAt: string;
608
608
  updatedAt: string;
609
+ slug: string;
609
610
  id: string;
610
611
  name: string;
611
- slug: string;
612
612
  }[];
613
613
  publishedAt?: string;
614
614
  createdAt: string;
615
615
  updatedAt: string;
616
- id: string;
617
616
  slug: string;
617
+ published: boolean;
618
+ id: string;
618
619
  title: string;
620
+ authorId?: string | undefined;
621
+ defaultLocale?: string | undefined;
619
622
  content: string;
620
623
  excerpt: string;
621
624
  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
630
  slug: zod.ZodOptional<zod.ZodString>;
631
- title: zod.ZodString;
632
- content: zod.ZodString;
633
- excerpt: zod.ZodString;
634
- image: zod.ZodOptional<zod.ZodString>;
635
631
  published: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
632
+ title: zod.ZodString;
636
633
  tags: zod.ZodDefault<zod.ZodOptional<zod.ZodArray<zod.ZodUnion<readonly [zod.ZodObject<{
637
634
  name: zod.ZodString;
638
635
  }, zod_v4_core.$strip>, zod.ZodObject<{
@@ -640,6 +637,9 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
640
637
  name: zod.ZodString;
641
638
  slug: zod.ZodString;
642
639
  }, zod_v4_core.$strip>]>>>>;
640
+ content: zod.ZodString;
641
+ excerpt: zod.ZodString;
642
+ image: zod.ZodOptional<zod.ZodString>;
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,33 +652,30 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
652
652
  tags: {
653
653
  createdAt: string;
654
654
  updatedAt: string;
655
+ slug: string;
655
656
  id: string;
656
657
  name: string;
657
- slug: string;
658
658
  }[];
659
659
  publishedAt?: string;
660
660
  createdAt: string;
661
661
  updatedAt: string;
662
- id: string;
663
662
  slug: string;
663
+ published: boolean;
664
+ id: string;
664
665
  title: string;
666
+ authorId?: string | undefined;
667
+ defaultLocale?: string | undefined;
665
668
  content: string;
666
669
  excerpt: string;
667
670
  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
676
  slug: zod.ZodString;
677
- title: zod.ZodString;
678
- content: zod.ZodString;
679
- excerpt: zod.ZodString;
680
- image: zod.ZodOptional<zod.ZodString>;
681
677
  published: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
678
+ title: zod.ZodString;
682
679
  tags: zod.ZodDefault<zod.ZodOptional<zod.ZodArray<zod.ZodUnion<readonly [zod.ZodObject<{
683
680
  name: zod.ZodString;
684
681
  }, zod_v4_core.$strip>, zod.ZodObject<{
@@ -686,6 +683,9 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
686
683
  name: zod.ZodString;
687
684
  slug: zod.ZodString;
688
685
  }, zod_v4_core.$strip>]>>>>;
686
+ content: zod.ZodString;
687
+ excerpt: zod.ZodString;
688
+ image: zod.ZodOptional<zod.ZodString>;
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;
705
706
  id: string;
706
707
  name: string;
707
- slug: string;
708
708
  }[];
709
709
  publishedAt?: string;
710
710
  createdAt: string;
711
711
  updatedAt: string;
712
- id: string;
713
712
  slug: string;
713
+ published: boolean;
714
+ id: string;
714
715
  title: string;
716
+ authorId?: string | undefined;
717
+ defaultLocale?: string | undefined;
715
718
  content: string;
716
719
  excerpt: string;
717
720
  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;
749
750
  id: string;
750
751
  name: string;
751
- slug: string;
752
752
  }[];
753
753
  publishedAt?: string;
754
754
  createdAt: string;
755
755
  updatedAt: string;
756
- id: string;
757
756
  slug: string;
757
+ published: boolean;
758
+ id: string;
758
759
  title: string;
760
+ authorId?: string | undefined;
761
+ defaultLocale?: string | undefined;
759
762
  content: string;
760
763
  excerpt: string;
761
764
  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;
771
772
  id: string;
772
773
  name: string;
773
- slug: string;
774
774
  }[];
775
775
  publishedAt?: string;
776
776
  createdAt: string;
777
777
  updatedAt: string;
778
- id: string;
779
778
  slug: string;
779
+ published: boolean;
780
+ id: string;
780
781
  title: string;
782
+ authorId?: string | undefined;
783
+ defaultLocale?: string | undefined;
781
784
  content: string;
782
785
  excerpt: string;
783
786
  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;
793
794
  id: string;
794
795
  name: string;
795
- slug: string;
796
796
  }[], false>;
797
797
  }, "blog">;
798
798
  type BlogApiRouter = ReturnType<ReturnType<typeof blogBackendPlugin>["routes"]>;
@@ -2,7 +2,7 @@ import * as _tanstack_react_query from '@tanstack/react-query';
2
2
  import { z } from 'zod';
3
3
  import { ResourceFormConfig, ResourceFormResult } from '@btst/stack/plugins/client/hooks';
4
4
  import { S as SerializedPost, a as SerializedTag } from './stack.Dsatjh0B.js';
5
- import { c as createPostSchema, u as updatePostSchema } from './stack.CKc_Bais.js';
5
+ import { c as createPostSchema, u as updatePostSchema } from './stack.DtZgEX84.js';
6
6
 
7
7
  /**
8
8
  * Options for the usePosts hook
@@ -136,10 +136,8 @@ declare function useSuspenseTags(): {
136
136
  declare function usePostForm<TValues>(config: ResourceFormConfig<TValues, SerializedPost | null, SerializedPost | null>): ResourceFormResult<TValues, SerializedPost | null, SerializedPost | null>;
137
137
  /** Create a new post */
138
138
  declare function useCreatePost(): _tanstack_react_query.UseMutationResult<SerializedPost | null, Error, {
139
- title: string;
140
- content: string;
141
- excerpt: string;
142
139
  published: boolean;
140
+ title: string;
143
141
  tags: ({
144
142
  name: string;
145
143
  } | {
@@ -147,10 +145,12 @@ declare function useCreatePost(): _tanstack_react_query.UseMutationResult<Serial
147
145
  name: string;
148
146
  slug: string;
149
147
  })[];
148
+ content: string;
149
+ excerpt: string;
150
150
  slug?: string | undefined;
151
- publishedAt?: Date | undefined;
152
151
  createdAt?: Date | undefined;
153
152
  updatedAt?: Date | undefined;
153
+ publishedAt?: Date | undefined;
154
154
  image?: string | undefined;
155
155
  }>;
156
156
  /** Update an existing post by id */
@@ -2,7 +2,7 @@ import * as _tanstack_react_query from '@tanstack/react-query';
2
2
  import { z } from 'zod';
3
3
  import { ResourceFormConfig, ResourceFormResult } from '@btst/stack/plugins/client/hooks';
4
4
  import { S as SerializedPost, a as SerializedTag } from './stack.Dsatjh0B.mjs';
5
- import { c as createPostSchema, u as updatePostSchema } from './stack.CKc_Bais.mjs';
5
+ import { c as createPostSchema, u as updatePostSchema } from './stack.DtZgEX84.mjs';
6
6
 
7
7
  /**
8
8
  * Options for the usePosts hook
@@ -136,10 +136,8 @@ declare function useSuspenseTags(): {
136
136
  declare function usePostForm<TValues>(config: ResourceFormConfig<TValues, SerializedPost | null, SerializedPost | null>): ResourceFormResult<TValues, SerializedPost | null, SerializedPost | null>;
137
137
  /** Create a new post */
138
138
  declare function useCreatePost(): _tanstack_react_query.UseMutationResult<SerializedPost | null, Error, {
139
- title: string;
140
- content: string;
141
- excerpt: string;
142
139
  published: boolean;
140
+ title: string;
143
141
  tags: ({
144
142
  name: string;
145
143
  } | {
@@ -147,10 +145,12 @@ declare function useCreatePost(): _tanstack_react_query.UseMutationResult<Serial
147
145
  name: string;
148
146
  slug: string;
149
147
  })[];
148
+ content: string;
149
+ excerpt: string;
150
150
  slug?: string | undefined;
151
- publishedAt?: Date | undefined;
152
151
  createdAt?: Date | undefined;
153
152
  updatedAt?: Date | undefined;
153
+ publishedAt?: Date | undefined;
154
154
  image?: string | undefined;
155
155
  }>;
156
156
  /** Update an existing post by id */