@btst/stack 4.5.0 → 4.5.1

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 (74) hide show
  1. package/README.md +2 -2
  2. package/dist/packages/stack/src/plugins/ai-chat/api/compaction.cjs +102 -15
  3. package/dist/packages/stack/src/plugins/ai-chat/api/compaction.mjs +102 -15
  4. package/dist/packages/stack/src/plugins/ai-chat/api/operations.cjs +8 -4
  5. package/dist/packages/stack/src/plugins/ai-chat/api/operations.mjs +8 -4
  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-input.cjs +3 -2
  9. package/dist/packages/stack/src/plugins/ai-chat/client/components/chat-input.mjs +3 -2
  10. package/dist/packages/stack/src/plugins/ai-chat/client/components/chat-interface.cjs +0 -1
  11. package/dist/packages/stack/src/plugins/ai-chat/client/components/chat-interface.mjs +0 -1
  12. package/dist/plugins/ai-chat/api/index.d.cts +2 -2
  13. package/dist/plugins/ai-chat/api/index.d.mts +2 -2
  14. package/dist/plugins/ai-chat/api/index.d.ts +2 -2
  15. package/dist/plugins/ai-chat/client/hooks/index.d.cts +2 -2
  16. package/dist/plugins/ai-chat/client/hooks/index.d.mts +2 -2
  17. package/dist/plugins/ai-chat/client/hooks/index.d.ts +2 -2
  18. package/dist/plugins/ai-chat/client/index.d.cts +1 -1
  19. package/dist/plugins/ai-chat/client/index.d.mts +1 -1
  20. package/dist/plugins/ai-chat/client/index.d.ts +1 -1
  21. package/dist/plugins/ai-chat/query-keys.d.cts +1 -1
  22. package/dist/plugins/ai-chat/query-keys.d.mts +1 -1
  23. package/dist/plugins/ai-chat/query-keys.d.ts +1 -1
  24. package/dist/plugins/blog/api/index.d.cts +2 -2
  25. package/dist/plugins/blog/api/index.d.mts +2 -2
  26. package/dist/plugins/blog/api/index.d.ts +2 -2
  27. package/dist/plugins/blog/client/hooks/index.d.cts +2 -2
  28. package/dist/plugins/blog/client/hooks/index.d.mts +2 -2
  29. package/dist/plugins/blog/client/hooks/index.d.ts +2 -2
  30. package/dist/plugins/blog/client/index.d.cts +2 -2
  31. package/dist/plugins/blog/client/index.d.mts +2 -2
  32. package/dist/plugins/blog/client/index.d.ts +2 -2
  33. package/dist/plugins/blog/query-keys.d.cts +2 -2
  34. package/dist/plugins/blog/query-keys.d.mts +2 -2
  35. package/dist/plugins/blog/query-keys.d.ts +2 -2
  36. package/dist/plugins/cms/api/index.d.cts +1 -1
  37. package/dist/plugins/cms/api/index.d.mts +1 -1
  38. package/dist/plugins/cms/api/index.d.ts +1 -1
  39. package/dist/plugins/cms/query-keys.d.cts +1 -1
  40. package/dist/plugins/cms/query-keys.d.mts +1 -1
  41. package/dist/plugins/cms/query-keys.d.ts +1 -1
  42. package/dist/plugins/ui-builder/client/hooks/index.d.cts +1 -1
  43. package/dist/plugins/ui-builder/client/hooks/index.d.mts +1 -1
  44. package/dist/plugins/ui-builder/client/hooks/index.d.ts +1 -1
  45. package/dist/plugins/ui-builder/client/index.d.cts +1 -1
  46. package/dist/plugins/ui-builder/client/index.d.mts +1 -1
  47. package/dist/plugins/ui-builder/client/index.d.ts +1 -1
  48. package/dist/plugins/ui-builder/query-keys.d.cts +1 -1
  49. package/dist/plugins/ui-builder/query-keys.d.mts +1 -1
  50. package/dist/plugins/ui-builder/query-keys.d.ts +1 -1
  51. package/dist/shared/{stack.BTStHVTy.d.cts → stack.BGzgFx3R.d.cts} +5 -5
  52. package/dist/shared/{stack.CtrnoQgH.d.cts → stack.BOZRaVpu.d.cts} +35 -35
  53. package/dist/shared/{stack.94kN3pEK.d.mts → stack.CjCSDfWy.d.mts} +5 -5
  54. package/dist/shared/{stack.B2EYZyh_.d.ts → stack.DDQTbADz.d.ts} +4 -2
  55. package/dist/shared/{stack.lPKwd_v0.d.ts → stack.DlBoNqYu.d.ts} +35 -35
  56. package/dist/shared/{stack.DfrRYOIl.d.ts → stack.Dpg_JjIo.d.ts} +5 -5
  57. package/dist/shared/{stack.BggTHKlo.d.mts → stack.Dvy7FmaA.d.mts} +35 -35
  58. package/dist/shared/{stack.fF273jws.d.cts → stack.IY-ngxuw.d.cts} +4 -2
  59. package/dist/shared/{stack.DivuAnNI.d.mts → stack.mU9iMF2j.d.mts} +4 -2
  60. package/package.json +1 -1
  61. package/src/plugins/ai-chat/__tests__/chat-input-authorization.test.tsx +42 -0
  62. package/src/plugins/ai-chat/__tests__/compaction.test.ts +79 -19
  63. package/src/plugins/ai-chat/__tests__/persisted-compaction.test.ts +129 -0
  64. package/src/plugins/ai-chat/api/compaction.ts +137 -13
  65. package/src/plugins/ai-chat/api/operations.ts +18 -4
  66. package/src/plugins/ai-chat/api/plugin.ts +10 -1
  67. package/src/plugins/ai-chat/client/components/chat-input.tsx +3 -3
  68. package/src/plugins/ai-chat/client/components/chat-interface.tsx +0 -1
  69. package/dist/shared/{stack.B8PG21zX.d.mts → stack.BLYaUcQa.d.mts} +88 -88
  70. package/dist/shared/{stack.D6Pg-ufX.d.cts → stack.Bf6BGZNk.d.cts} +88 -88
  71. package/dist/shared/{stack.CKc_Bais.d.cts → stack.Csi-4Mgz.d.cts} +7 -7
  72. package/dist/shared/{stack.CKc_Bais.d.mts → stack.Csi-4Mgz.d.mts} +7 -7
  73. package/dist/shared/{stack.CKc_Bais.d.ts → stack.Csi-4Mgz.d.ts} +7 -7
  74. package/dist/shared/{stack.CyalJ0j6.d.ts → stack.CyltNNZZ.d.ts} +88 -88
@@ -27,10 +27,10 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
27
27
  readonly itemCount: number;
28
28
  readonly createdAt: string;
29
29
  readonly updatedAt: string;
30
- readonly id: string;
31
- readonly name: string;
32
30
  readonly slug: string;
31
+ readonly id: string;
33
32
  readonly description?: string | undefined;
33
+ readonly name: string;
34
34
  readonly jsonSchema: string;
35
35
  readonly fieldConfig?: string | undefined;
36
36
  readonly autoFormVersion?: number | undefined;
@@ -45,10 +45,10 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
45
45
  }, {
46
46
  readonly createdAt: string;
47
47
  readonly updatedAt: string;
48
- readonly id: string;
49
- readonly name: string;
50
48
  readonly slug: string;
49
+ readonly id: string;
51
50
  readonly description?: string | undefined;
51
+ readonly name: string;
52
52
  readonly jsonSchema: string;
53
53
  readonly fieldConfig?: string | undefined;
54
54
  readonly autoFormVersion?: number | undefined;
@@ -79,10 +79,10 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
79
79
  readonly contentType?: {
80
80
  readonly createdAt: string;
81
81
  readonly updatedAt: string;
82
- readonly id: string;
83
- readonly name: string;
84
82
  readonly slug: string;
83
+ readonly id: string;
85
84
  readonly description?: string | undefined;
85
+ readonly name: string;
86
86
  readonly jsonSchema: string;
87
87
  readonly fieldConfig?: string | undefined;
88
88
  readonly autoFormVersion?: number | undefined;
@@ -92,11 +92,11 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
92
92
  };
93
93
  readonly createdAt: string;
94
94
  readonly updatedAt: string;
95
- readonly id: string;
96
95
  readonly slug: string;
97
- readonly contentTypeId: string;
98
- readonly authorId?: string | undefined;
96
+ readonly id: string;
99
97
  readonly data: string;
98
+ readonly authorId?: string | undefined;
99
+ readonly contentTypeId: string;
100
100
  }[];
101
101
  readonly total: number;
102
102
  }>;
@@ -112,10 +112,10 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
112
112
  readonly contentType?: {
113
113
  readonly createdAt: string;
114
114
  readonly updatedAt: string;
115
- readonly id: string;
116
- readonly name: string;
117
115
  readonly slug: string;
116
+ readonly id: string;
118
117
  readonly description?: string | undefined;
118
+ readonly name: string;
119
119
  readonly jsonSchema: string;
120
120
  readonly fieldConfig?: string | undefined;
121
121
  readonly autoFormVersion?: number | undefined;
@@ -125,11 +125,11 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
125
125
  };
126
126
  readonly createdAt: string;
127
127
  readonly updatedAt: string;
128
- readonly id: string;
129
128
  readonly slug: string;
130
- readonly contentTypeId: string;
131
- readonly authorId?: string | undefined;
129
+ readonly id: string;
132
130
  readonly data: string;
131
+ readonly authorId?: string | undefined;
132
+ readonly contentTypeId: string;
133
133
  }>;
134
134
  readonly createContentItem: better_call.StrictEndpoint<"/content/:typeSlug", {
135
135
  params: z.ZodObject<{
@@ -149,10 +149,10 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
149
149
  readonly contentType?: {
150
150
  readonly createdAt: string;
151
151
  readonly updatedAt: string;
152
- readonly id: string;
153
- readonly name: string;
154
152
  readonly slug: string;
153
+ readonly id: string;
155
154
  readonly description?: string | undefined;
155
+ readonly name: string;
156
156
  readonly jsonSchema: string;
157
157
  readonly fieldConfig?: string | undefined;
158
158
  readonly autoFormVersion?: number | undefined;
@@ -162,11 +162,11 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
162
162
  };
163
163
  readonly createdAt: string;
164
164
  readonly updatedAt: string;
165
- readonly id: string;
166
165
  readonly slug: string;
167
- readonly contentTypeId: string;
168
- readonly authorId?: string | undefined;
166
+ readonly id: string;
169
167
  readonly data: string;
168
+ readonly authorId?: string | undefined;
169
+ readonly contentTypeId: string;
170
170
  }>;
171
171
  readonly updateContentItem: better_call.StrictEndpoint<"/content/:typeSlug/:id", {
172
172
  params: z.ZodObject<{
@@ -187,10 +187,10 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
187
187
  readonly contentType?: {
188
188
  readonly createdAt: string;
189
189
  readonly updatedAt: string;
190
- readonly id: string;
191
- readonly name: string;
192
190
  readonly slug: string;
191
+ readonly id: string;
193
192
  readonly description?: string | undefined;
193
+ readonly name: string;
194
194
  readonly jsonSchema: string;
195
195
  readonly fieldConfig?: string | undefined;
196
196
  readonly autoFormVersion?: number | undefined;
@@ -200,11 +200,11 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
200
200
  };
201
201
  readonly createdAt: string;
202
202
  readonly updatedAt: string;
203
- readonly id: string;
204
203
  readonly slug: string;
205
- readonly contentTypeId: string;
206
- readonly authorId?: string | undefined;
204
+ readonly id: string;
207
205
  readonly data: string;
206
+ readonly authorId?: string | undefined;
207
+ readonly contentTypeId: string;
208
208
  }>;
209
209
  readonly deleteContentItem: better_call.StrictEndpoint<"/content/:typeSlug/:id", {
210
210
  params: z.ZodObject<{
@@ -232,10 +232,10 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
232
232
  readonly contentType?: {
233
233
  readonly createdAt: string;
234
234
  readonly updatedAt: string;
235
- readonly id: string;
236
- readonly name: string;
237
235
  readonly slug: string;
236
+ readonly id: string;
238
237
  readonly description?: string | undefined;
238
+ readonly name: string;
239
239
  readonly jsonSchema: string;
240
240
  readonly fieldConfig?: string | undefined;
241
241
  readonly autoFormVersion?: number | undefined;
@@ -245,20 +245,20 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
245
245
  };
246
246
  readonly createdAt: string;
247
247
  readonly updatedAt: string;
248
- readonly id: string;
249
248
  readonly slug: string;
250
- readonly contentTypeId: string;
251
- readonly authorId?: string | undefined;
249
+ readonly id: string;
252
250
  readonly data: string;
251
+ readonly authorId?: string | undefined;
252
+ readonly contentTypeId: string;
253
253
  }[];
254
254
  };
255
255
  readonly contentType?: {
256
256
  readonly createdAt: string;
257
257
  readonly updatedAt: string;
258
- readonly id: string;
259
- readonly name: string;
260
258
  readonly slug: string;
259
+ readonly id: string;
261
260
  readonly description?: string | undefined;
261
+ readonly name: string;
262
262
  readonly jsonSchema: string;
263
263
  readonly fieldConfig?: string | undefined;
264
264
  readonly autoFormVersion?: number | undefined;
@@ -268,11 +268,11 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
268
268
  };
269
269
  readonly createdAt: string;
270
270
  readonly updatedAt: string;
271
- readonly id: string;
272
271
  readonly slug: string;
273
- readonly contentTypeId: string;
274
- readonly authorId?: string | undefined;
272
+ readonly id: string;
275
273
  readonly data: string;
274
+ readonly authorId?: string | undefined;
275
+ readonly contentTypeId: string;
276
276
  }>;
277
277
  readonly listContentByRelation: better_call.StrictEndpoint<"/content/:typeSlug/by-relation", {
278
278
  params: z.ZodObject<{
@@ -298,10 +298,10 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
298
298
  readonly contentType?: {
299
299
  readonly createdAt: string;
300
300
  readonly updatedAt: string;
301
- readonly id: string;
302
- readonly name: string;
303
301
  readonly slug: string;
302
+ readonly id: string;
304
303
  readonly description?: string | undefined;
304
+ readonly name: string;
305
305
  readonly jsonSchema: string;
306
306
  readonly fieldConfig?: string | undefined;
307
307
  readonly autoFormVersion?: number | undefined;
@@ -311,11 +311,11 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
311
311
  };
312
312
  readonly createdAt: string;
313
313
  readonly updatedAt: string;
314
- readonly id: string;
315
314
  readonly slug: string;
316
- readonly contentTypeId: string;
317
- readonly authorId?: string | undefined;
315
+ readonly id: string;
318
316
  readonly data: string;
317
+ readonly authorId?: string | undefined;
318
+ readonly contentTypeId: string;
319
319
  }[];
320
320
  readonly total: number;
321
321
  readonly limit: number;
@@ -367,10 +367,10 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
367
367
  readonly contentType?: {
368
368
  readonly createdAt: string;
369
369
  readonly updatedAt: string;
370
- readonly id: string;
371
- readonly name: string;
372
370
  readonly slug: string;
371
+ readonly id: string;
373
372
  readonly description?: string | undefined;
373
+ readonly name: string;
374
374
  readonly jsonSchema: string;
375
375
  readonly fieldConfig?: string | undefined;
376
376
  readonly autoFormVersion?: number | undefined;
@@ -380,11 +380,11 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
380
380
  };
381
381
  readonly createdAt: string;
382
382
  readonly updatedAt: string;
383
- readonly id: string;
384
383
  readonly slug: string;
385
- readonly contentTypeId: string;
386
- readonly authorId?: string | undefined;
384
+ readonly id: string;
387
385
  readonly data: string;
386
+ readonly authorId?: string | undefined;
387
+ readonly contentTypeId: string;
388
388
  }[];
389
389
  readonly total: number;
390
390
  readonly limit: number;
@@ -399,10 +399,10 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
399
399
  itemCount: number;
400
400
  createdAt: string;
401
401
  updatedAt: string;
402
- id: string;
403
- name: string;
404
402
  slug: string;
403
+ id: string;
405
404
  description?: string | undefined;
405
+ name: string;
406
406
  jsonSchema: string;
407
407
  fieldConfig?: string | undefined;
408
408
  autoFormVersion?: number | undefined;
@@ -414,10 +414,10 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
414
414
  }, z.core.$strip>>, {
415
415
  createdAt: string;
416
416
  updatedAt: string;
417
- id: string;
418
- name: string;
419
417
  slug: string;
418
+ id: string;
420
419
  description?: string | undefined;
420
+ name: string;
421
421
  jsonSchema: string;
422
422
  fieldConfig?: string | undefined;
423
423
  autoFormVersion?: number | undefined;
@@ -445,10 +445,10 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
445
445
  contentType?: {
446
446
  createdAt: string;
447
447
  updatedAt: string;
448
- id: string;
449
- name: string;
450
448
  slug: string;
449
+ id: string;
451
450
  description?: string | undefined;
451
+ name: string;
452
452
  jsonSchema: string;
453
453
  fieldConfig?: string | undefined;
454
454
  autoFormVersion?: number | undefined;
@@ -456,11 +456,11 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
456
456
  parsedData: Record<string, _btst_stack_plugins_api.OperationData>;
457
457
  createdAt: string;
458
458
  updatedAt: string;
459
- id: string;
460
459
  slug: string;
461
- contentTypeId: string;
462
- authorId?: string | undefined;
460
+ id: string;
463
461
  data: string;
462
+ authorId?: string | undefined;
463
+ contentTypeId: string;
464
464
  }[];
465
465
  total: number;
466
466
  }, false>;
@@ -479,10 +479,10 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
479
479
  contentType?: {
480
480
  createdAt: string;
481
481
  updatedAt: string;
482
- id: string;
483
- name: string;
484
482
  slug: string;
483
+ id: string;
485
484
  description?: string | undefined;
485
+ name: string;
486
486
  jsonSchema: string;
487
487
  fieldConfig?: string | undefined;
488
488
  autoFormVersion?: number | undefined;
@@ -490,11 +490,11 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
490
490
  parsedData: Record<string, _btst_stack_plugins_api.OperationData>;
491
491
  createdAt: string;
492
492
  updatedAt: string;
493
- id: string;
494
493
  slug: string;
495
- contentTypeId: string;
496
- authorId?: string | undefined;
494
+ id: string;
497
495
  data: string;
496
+ authorId?: string | undefined;
497
+ contentTypeId: string;
498
498
  }, false>;
499
499
  readonly createContentItem: _btst_stack_plugins_api.Operation<z.ZodObject<{
500
500
  typeSlug: z.ZodString;
@@ -508,10 +508,10 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
508
508
  contentType?: {
509
509
  createdAt: string;
510
510
  updatedAt: string;
511
- id: string;
512
- name: string;
513
511
  slug: string;
512
+ id: string;
514
513
  description?: string | undefined;
514
+ name: string;
515
515
  jsonSchema: string;
516
516
  fieldConfig?: string | undefined;
517
517
  autoFormVersion?: number | undefined;
@@ -519,11 +519,11 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
519
519
  parsedData: Record<string, _btst_stack_plugins_api.OperationData>;
520
520
  createdAt: string;
521
521
  updatedAt: string;
522
- id: string;
523
522
  slug: string;
524
- contentTypeId: string;
525
- authorId?: string | undefined;
523
+ id: string;
526
524
  data: string;
525
+ authorId?: string | undefined;
526
+ contentTypeId: string;
527
527
  }, false>;
528
528
  readonly updateContentItem: _btst_stack_plugins_api.Operation<z.ZodObject<{
529
529
  typeSlug: z.ZodString;
@@ -540,10 +540,10 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
540
540
  contentType?: {
541
541
  createdAt: string;
542
542
  updatedAt: string;
543
- id: string;
544
- name: string;
545
543
  slug: string;
544
+ id: string;
546
545
  description?: string | undefined;
546
+ name: string;
547
547
  jsonSchema: string;
548
548
  fieldConfig?: string | undefined;
549
549
  autoFormVersion?: number | undefined;
@@ -551,11 +551,11 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
551
551
  parsedData: Record<string, _btst_stack_plugins_api.OperationData>;
552
552
  createdAt: string;
553
553
  updatedAt: string;
554
- id: string;
555
554
  slug: string;
556
- contentTypeId: string;
557
- authorId?: string | undefined;
555
+ id: string;
558
556
  data: string;
557
+ authorId?: string | undefined;
558
+ contentTypeId: string;
559
559
  }, false>;
560
560
  readonly deleteContentItem: _btst_stack_plugins_api.Operation<z.ZodObject<{
561
561
  typeSlug: z.ZodString;
@@ -584,10 +584,10 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
584
584
  contentType?: {
585
585
  createdAt: string;
586
586
  updatedAt: string;
587
- id: string;
588
- name: string;
589
587
  slug: string;
588
+ id: string;
590
589
  description?: string | undefined;
590
+ name: string;
591
591
  jsonSchema: string;
592
592
  fieldConfig?: string | undefined;
593
593
  autoFormVersion?: number | undefined;
@@ -595,20 +595,20 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
595
595
  parsedData: Record<string, _btst_stack_plugins_api.OperationData>;
596
596
  createdAt: string;
597
597
  updatedAt: string;
598
- id: string;
599
598
  slug: string;
600
- contentTypeId: string;
601
- authorId?: string | undefined;
599
+ id: string;
602
600
  data: string;
601
+ authorId?: string | undefined;
602
+ contentTypeId: string;
603
603
  }[];
604
604
  };
605
605
  contentType?: {
606
606
  createdAt: string;
607
607
  updatedAt: string;
608
- id: string;
609
- name: string;
610
608
  slug: string;
609
+ id: string;
611
610
  description?: string | undefined;
611
+ name: string;
612
612
  jsonSchema: string;
613
613
  fieldConfig?: string | undefined;
614
614
  autoFormVersion?: number | undefined;
@@ -616,11 +616,11 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
616
616
  parsedData: Record<string, _btst_stack_plugins_api.OperationData>;
617
617
  createdAt: string;
618
618
  updatedAt: string;
619
- id: string;
620
619
  slug: string;
621
- contentTypeId: string;
622
- authorId?: string | undefined;
620
+ id: string;
623
621
  data: string;
622
+ authorId?: string | undefined;
623
+ contentTypeId: string;
624
624
  }, false>;
625
625
  readonly listContentByRelation: _btst_stack_plugins_api.Operation<z.ZodObject<{
626
626
  typeSlug: z.ZodString;
@@ -643,10 +643,10 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
643
643
  contentType?: {
644
644
  createdAt: string;
645
645
  updatedAt: string;
646
- id: string;
647
- name: string;
648
646
  slug: string;
647
+ id: string;
649
648
  description?: string | undefined;
649
+ name: string;
650
650
  jsonSchema: string;
651
651
  fieldConfig?: string | undefined;
652
652
  autoFormVersion?: number | undefined;
@@ -654,11 +654,11 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
654
654
  parsedData: Record<string, _btst_stack_plugins_api.OperationData>;
655
655
  createdAt: string;
656
656
  updatedAt: string;
657
- id: string;
658
657
  slug: string;
659
- contentTypeId: string;
660
- authorId?: string | undefined;
658
+ id: string;
661
659
  data: string;
660
+ authorId?: string | undefined;
661
+ contentTypeId: string;
662
662
  }[];
663
663
  total: number;
664
664
  limit: number;
@@ -701,10 +701,10 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
701
701
  contentType?: {
702
702
  createdAt: string;
703
703
  updatedAt: string;
704
- id: string;
705
- name: string;
706
704
  slug: string;
705
+ id: string;
707
706
  description?: string | undefined;
707
+ name: string;
708
708
  jsonSchema: string;
709
709
  fieldConfig?: string | undefined;
710
710
  autoFormVersion?: number | undefined;
@@ -712,11 +712,11 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
712
712
  parsedData: Record<string, _btst_stack_plugins_api.OperationData>;
713
713
  createdAt: string;
714
714
  updatedAt: string;
715
- id: string;
716
715
  slug: string;
717
- contentTypeId: string;
718
- authorId?: string | undefined;
716
+ id: string;
719
717
  data: string;
718
+ authorId?: string | undefined;
719
+ contentTypeId: string;
720
720
  }[];
721
721
  total: number;
722
722
  limit: number;
@@ -1,6 +1,13 @@
1
1
  import { z } from 'zod';
2
2
 
3
3
  declare const createPostSchema: z.ZodObject<{
4
+ tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
5
+ name: z.ZodString;
6
+ }, z.core.$strip>, z.ZodObject<{
7
+ id: z.ZodString;
8
+ name: z.ZodString;
9
+ slug: z.ZodString;
10
+ }, z.core.$strip>]>>>>;
4
11
  slug: z.ZodOptional<z.ZodString>;
5
12
  publishedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
6
13
  createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -10,13 +17,6 @@ declare const createPostSchema: z.ZodObject<{
10
17
  excerpt: z.ZodString;
11
18
  image: z.ZodOptional<z.ZodString>;
12
19
  published: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
13
- tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
14
- name: z.ZodString;
15
- }, z.core.$strip>, z.ZodObject<{
16
- id: z.ZodString;
17
- name: z.ZodString;
18
- slug: z.ZodString;
19
- }, z.core.$strip>]>>>>;
20
20
  }, z.core.$strip>;
21
21
  declare const updatePostSchema: z.ZodObject<{
22
22
  publishedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -1,6 +1,13 @@
1
1
  import { z } from 'zod';
2
2
 
3
3
  declare const createPostSchema: z.ZodObject<{
4
+ tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
5
+ name: z.ZodString;
6
+ }, z.core.$strip>, z.ZodObject<{
7
+ id: z.ZodString;
8
+ name: z.ZodString;
9
+ slug: z.ZodString;
10
+ }, z.core.$strip>]>>>>;
4
11
  slug: z.ZodOptional<z.ZodString>;
5
12
  publishedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
6
13
  createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -10,13 +17,6 @@ declare const createPostSchema: z.ZodObject<{
10
17
  excerpt: z.ZodString;
11
18
  image: z.ZodOptional<z.ZodString>;
12
19
  published: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
13
- tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
14
- name: z.ZodString;
15
- }, z.core.$strip>, z.ZodObject<{
16
- id: z.ZodString;
17
- name: z.ZodString;
18
- slug: z.ZodString;
19
- }, z.core.$strip>]>>>>;
20
20
  }, z.core.$strip>;
21
21
  declare const updatePostSchema: z.ZodObject<{
22
22
  publishedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -1,6 +1,13 @@
1
1
  import { z } from 'zod';
2
2
 
3
3
  declare const createPostSchema: z.ZodObject<{
4
+ tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
5
+ name: z.ZodString;
6
+ }, z.core.$strip>, z.ZodObject<{
7
+ id: z.ZodString;
8
+ name: z.ZodString;
9
+ slug: z.ZodString;
10
+ }, z.core.$strip>]>>>>;
4
11
  slug: z.ZodOptional<z.ZodString>;
5
12
  publishedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
6
13
  createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -10,13 +17,6 @@ declare const createPostSchema: z.ZodObject<{
10
17
  excerpt: z.ZodString;
11
18
  image: z.ZodOptional<z.ZodString>;
12
19
  published: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
13
- tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
14
- name: z.ZodString;
15
- }, z.core.$strip>, z.ZodObject<{
16
- id: z.ZodString;
17
- name: z.ZodString;
18
- slug: z.ZodString;
19
- }, z.core.$strip>]>>>>;
20
20
  }, z.core.$strip>;
21
21
  declare const updatePostSchema: z.ZodObject<{
22
22
  publishedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;