@btst/plugin-cms 1.0.0-beta.0 → 1.2.0-beta.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 (76) hide show
  1. package/dist/api/getters.cjs +37 -25
  2. package/dist/api/getters.mjs +37 -25
  3. package/dist/api/index.cjs +1 -0
  4. package/dist/api/index.d.cts +17 -8
  5. package/dist/api/index.d.mts +17 -8
  6. package/dist/api/index.d.ts +17 -8
  7. package/dist/api/index.mjs +1 -1
  8. package/dist/api/mutations.cjs +46 -19
  9. package/dist/api/mutations.mjs +46 -20
  10. package/dist/api/operations.cjs +586 -177
  11. package/dist/api/operations.mjs +585 -178
  12. package/dist/api/plugin.cjs +56 -7
  13. package/dist/api/plugin.mjs +57 -8
  14. package/dist/api/publication.cjs +8 -0
  15. package/dist/api/publication.mjs +6 -0
  16. package/dist/client/components/forms/content-form.cjs +107 -1
  17. package/dist/client/components/forms/content-form.mjs +108 -2
  18. package/dist/client/components/pages/content-editor-page.internal.cjs +23 -5
  19. package/dist/client/components/pages/content-editor-page.internal.mjs +23 -5
  20. package/dist/client/components/pages/content-list-page.internal.cjs +3 -0
  21. package/dist/client/components/pages/content-list-page.internal.mjs +3 -0
  22. package/dist/client/components/pages/dashboard-page.internal.cjs +10 -30
  23. package/dist/client/components/pages/dashboard-page.internal.mjs +10 -30
  24. package/dist/client/components/revision-history.cjs +161 -0
  25. package/dist/client/components/revision-history.mjs +159 -0
  26. package/dist/client/components/shared/content-type-card.cjs +56 -0
  27. package/dist/client/components/shared/content-type-card.mjs +54 -0
  28. package/dist/client/components/shared/empty-state.cjs +18 -1
  29. package/dist/client/components/shared/empty-state.mjs +19 -2
  30. package/dist/client/hooks/cms-hooks.cjs +18 -2
  31. package/dist/client/hooks/cms-hooks.mjs +17 -3
  32. package/dist/client/hooks/index.cjs +2 -0
  33. package/dist/client/hooks/index.d.cts +306 -2
  34. package/dist/client/hooks/index.d.mts +306 -2
  35. package/dist/client/hooks/index.d.ts +306 -2
  36. package/dist/client/hooks/index.mjs +1 -1
  37. package/dist/client/index.d.cts +55 -2
  38. package/dist/client/index.d.mts +55 -2
  39. package/dist/client/index.d.ts +55 -2
  40. package/dist/db.cjs +25 -0
  41. package/dist/db.mjs +25 -0
  42. package/dist/permissions.cjs +2 -0
  43. package/dist/permissions.d.cts +1 -0
  44. package/dist/permissions.d.mts +1 -0
  45. package/dist/permissions.d.ts +1 -0
  46. package/dist/permissions.mjs +2 -0
  47. package/dist/query-keys.cjs +31 -1
  48. package/dist/query-keys.d.cts +1 -1
  49. package/dist/query-keys.d.mts +1 -1
  50. package/dist/query-keys.d.ts +1 -1
  51. package/dist/query-keys.mjs +31 -1
  52. package/dist/shared/{plugin-cms.Csx7tNDO.d.mts → plugin-cms.DAAUZ41w.d.mts} +314 -81
  53. package/dist/shared/{plugin-cms.eNW9_FO5.d.ts → plugin-cms.DJ_293QU.d.cts} +314 -81
  54. package/dist/shared/{plugin-cms.Bptwe33B.d.cts → plugin-cms.DlUSv7wz.d.ts} +314 -81
  55. package/dist/types.d.cts +38 -2
  56. package/dist/types.d.mts +38 -2
  57. package/dist/types.d.ts +38 -2
  58. package/dist/ui/src/components/auto-form/config.cjs +2 -0
  59. package/dist/ui/src/components/auto-form/config.mjs +2 -0
  60. package/dist/ui/src/components/auto-form/fields/file.cjs +68 -0
  61. package/dist/ui/src/components/auto-form/fields/file.mjs +63 -0
  62. package/dist/ui/src/components/auto-form/fields/object.cjs +9 -2
  63. package/dist/ui/src/components/auto-form/fields/object.mjs +9 -2
  64. package/dist/ui/src/components/auto-form/helpers.cjs +9 -0
  65. package/dist/ui/src/components/auto-form/helpers.mjs +9 -0
  66. package/dist/ui/src/components/auto-form/index.cjs +29 -4
  67. package/dist/ui/src/components/auto-form/index.mjs +31 -6
  68. package/dist/ui/src/components/auto-form/stepped-auto-form.cjs +34 -29
  69. package/dist/ui/src/components/auto-form/stepped-auto-form.mjs +35 -30
  70. package/dist/ui/src/components/sheet.cjs +126 -0
  71. package/dist/ui/src/components/sheet.mjs +105 -0
  72. package/dist/ui/src/lib/form-visibility.cjs +20 -0
  73. package/dist/ui/src/lib/form-visibility.mjs +18 -0
  74. package/dist/ui/src/lib/schema-converter.cjs +101 -0
  75. package/dist/ui/src/lib/schema-converter.mjs +100 -1
  76. package/package.json +5 -4
@@ -1,5 +1,5 @@
1
1
  import { createApiClient, createResourceQueryKeys } from '@btst/stack/plugins/client';
2
- import { CMSBackendConfig, CMSReadOptions, CMSContentFields, CMSSelectedData, SerializedContentType, InverseRelation, CMSReadView, SerializedContentItemWithType, PaginatedContentItems, CMSContentItemResult } from '../types.cjs';
2
+ import { CMSBackendConfig, CMSReadOptions, CMSContentFields, CMSSelectedData, SerializedContentType, InverseRelation, CMSReadView, SerializedContentItemWithType, SerializedContentRevision, PaginatedContentItems, CMSContentItemResult } from '../types.js';
3
3
  import * as _btst_stack_authorization from '@btst/stack/authorization';
4
4
  import * as _btst_stack_plugins_api from '@btst/stack/plugins/api';
5
5
  import * as better_call from 'better-call';
@@ -31,8 +31,8 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
31
31
  readonly createdAt: string;
32
32
  readonly updatedAt: string;
33
33
  readonly id: string;
34
- readonly name: string;
35
34
  readonly slug: string;
35
+ readonly name: string;
36
36
  readonly description?: string | undefined;
37
37
  readonly jsonSchema: string;
38
38
  readonly fieldConfig?: string | undefined;
@@ -49,8 +49,8 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
49
49
  readonly createdAt: string;
50
50
  readonly updatedAt: string;
51
51
  readonly id: string;
52
- readonly name: string;
53
52
  readonly slug: string;
53
+ readonly name: string;
54
54
  readonly description?: string | undefined;
55
55
  readonly jsonSchema: string;
56
56
  readonly fieldConfig?: string | undefined;
@@ -87,8 +87,8 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
87
87
  createdAt: string;
88
88
  updatedAt: string;
89
89
  id: string;
90
- name: string;
91
90
  slug: string;
91
+ name: string;
92
92
  description?: string | undefined;
93
93
  jsonSchema: string;
94
94
  fieldConfig?: string | undefined;
@@ -97,18 +97,19 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
97
97
  parsedData: Record<string, _btst_stack_plugins_api.OperationData>;
98
98
  createdAt: string;
99
99
  updatedAt: string;
100
+ publishAt?: string | null;
100
101
  id: string;
101
102
  slug: string;
102
- contentTypeId: string;
103
103
  data: string;
104
104
  authorId?: string | undefined;
105
+ contentTypeId: string;
105
106
  } | (Omit<Pick<{
106
107
  contentType?: {
107
108
  createdAt: string;
108
109
  updatedAt: string;
109
110
  id: string;
110
- name: string;
111
111
  slug: string;
112
+ name: string;
112
113
  description?: string | undefined;
113
114
  jsonSchema: string;
114
115
  fieldConfig?: string | undefined;
@@ -117,11 +118,12 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
117
118
  parsedData: Record<string, _btst_stack_plugins_api.OperationData>;
118
119
  createdAt: string;
119
120
  updatedAt: string;
121
+ publishAt?: string | null;
120
122
  id: string;
121
123
  slug: string;
122
- contentTypeId: string;
123
124
  data: string;
124
125
  authorId?: string | undefined;
126
+ contentTypeId: string;
125
127
  }, "id" | "slug" | "createdAt" | "updatedAt" | "parsedData">, "parsedData"> & {
126
128
  parsedData: Record<string, _btst_stack_plugins_api.OperationData> | Partial<Record<string, _btst_stack_plugins_api.OperationData>>;
127
129
  }))[];
@@ -134,8 +136,8 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
134
136
  readonly createdAt: string;
135
137
  readonly updatedAt: string;
136
138
  readonly id: string;
137
- readonly name: string;
138
139
  readonly slug: string;
140
+ readonly name: string;
139
141
  readonly description?: string | undefined;
140
142
  readonly jsonSchema: string;
141
143
  readonly fieldConfig?: string | undefined;
@@ -146,11 +148,12 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
146
148
  };
147
149
  readonly createdAt: string;
148
150
  readonly updatedAt: string;
151
+ readonly publishAt?: string | null | undefined;
149
152
  readonly id: string;
150
153
  readonly slug: string;
151
- readonly contentTypeId: string;
152
154
  readonly data: string;
153
155
  readonly authorId?: string | undefined;
156
+ readonly contentTypeId: string;
154
157
  } | {
155
158
  readonly id: string;
156
159
  readonly slug: string;
@@ -185,8 +188,8 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
185
188
  createdAt: string;
186
189
  updatedAt: string;
187
190
  id: string;
188
- name: string;
189
191
  slug: string;
192
+ name: string;
190
193
  description?: string | undefined;
191
194
  jsonSchema: string;
192
195
  fieldConfig?: string | undefined;
@@ -195,11 +198,12 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
195
198
  parsedData: Record<string, _btst_stack_plugins_api.OperationData>;
196
199
  createdAt: string;
197
200
  updatedAt: string;
201
+ publishAt?: string | null;
198
202
  id: string;
199
203
  slug: string;
200
- contentTypeId: string;
201
204
  data: string;
202
205
  authorId?: string | undefined;
206
+ contentTypeId: string;
203
207
  }, "id" | "slug" | "createdAt" | "updatedAt" | "parsedData">, "parsedData"> & {
204
208
  parsedData: Partial<Record<string, _btst_stack_plugins_api.OperationData>>;
205
209
  }) | {
@@ -221,17 +225,19 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
221
225
  body: better_call.StandardSchemaV1<{
222
226
  slug: string;
223
227
  data: unknown;
228
+ publishAt?: string | null | undefined;
224
229
  }, {
225
230
  slug: string;
226
231
  data: unknown;
232
+ publishAt?: string | null | undefined;
227
233
  }>;
228
234
  }, {
229
235
  readonly contentType?: {
230
236
  readonly createdAt: string;
231
237
  readonly updatedAt: string;
232
238
  readonly id: string;
233
- readonly name: string;
234
239
  readonly slug: string;
240
+ readonly name: string;
235
241
  readonly description?: string | undefined;
236
242
  readonly jsonSchema: string;
237
243
  readonly fieldConfig?: string | undefined;
@@ -242,11 +248,12 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
242
248
  };
243
249
  readonly createdAt: string;
244
250
  readonly updatedAt: string;
251
+ readonly publishAt?: string | null | undefined;
245
252
  readonly id: string;
246
253
  readonly slug: string;
247
- readonly contentTypeId: string;
248
254
  readonly data: string;
249
255
  readonly authorId?: string | undefined;
256
+ readonly contentTypeId: string;
250
257
  }>;
251
258
  readonly updateContentItem: better_call.StrictEndpoint<"/content/:typeSlug/:id", {
252
259
  params: z.ZodObject<{
@@ -259,17 +266,19 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
259
266
  body: better_call.StandardSchemaV1<{
260
267
  slug?: string | undefined;
261
268
  data?: unknown;
269
+ publishAt?: string | null | undefined;
262
270
  }, {
263
271
  slug?: string | undefined;
264
272
  data?: unknown;
273
+ publishAt?: string | null | undefined;
265
274
  }>;
266
275
  }, {
267
276
  readonly contentType?: {
268
277
  readonly createdAt: string;
269
278
  readonly updatedAt: string;
270
279
  readonly id: string;
271
- readonly name: string;
272
280
  readonly slug: string;
281
+ readonly name: string;
273
282
  readonly description?: string | undefined;
274
283
  readonly jsonSchema: string;
275
284
  readonly fieldConfig?: string | undefined;
@@ -280,11 +289,74 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
280
289
  };
281
290
  readonly createdAt: string;
282
291
  readonly updatedAt: string;
292
+ readonly publishAt?: string | null | undefined;
283
293
  readonly id: string;
284
294
  readonly slug: string;
295
+ readonly data: string;
296
+ readonly authorId?: string | undefined;
285
297
  readonly contentTypeId: string;
298
+ }>;
299
+ readonly listContentRevisions: better_call.StrictEndpoint<"/content/:typeSlug/:id/revisions", {
300
+ params: z.ZodObject<{
301
+ typeSlug: z.ZodString;
302
+ id: z.ZodString;
303
+ }, z.core.$strip>;
304
+ requireRequest: true;
305
+ } & {
306
+ method: "GET";
307
+ } & {
308
+ query: better_call.StandardSchemaV1<{
309
+ offset?: unknown;
310
+ }, {
311
+ offset?: unknown;
312
+ }>;
313
+ }, {
314
+ readonly items: readonly {
315
+ readonly createdAt: string;
316
+ readonly publishAt: string | null;
317
+ readonly id: string;
318
+ readonly contentItemId: string;
319
+ readonly revisionKey: string;
320
+ readonly version: number;
321
+ readonly slug: string;
322
+ readonly data: string;
323
+ readonly authorId?: string | null | undefined;
324
+ }[];
325
+ readonly total: number;
326
+ }>;
327
+ readonly restoreContentRevision: better_call.StrictEndpoint<"/content/:typeSlug/:id/revisions/:revisionId/restore", {
328
+ params: z.ZodObject<{
329
+ typeSlug: z.ZodString;
330
+ id: z.ZodString;
331
+ revisionId: z.ZodString;
332
+ }, z.core.$strip>;
333
+ requireRequest: true;
334
+ } & {
335
+ method: "POST";
336
+ body: better_call.StandardSchemaV1<unknown, unknown>;
337
+ }, {
338
+ readonly contentType?: {
339
+ readonly createdAt: string;
340
+ readonly updatedAt: string;
341
+ readonly id: string;
342
+ readonly slug: string;
343
+ readonly name: string;
344
+ readonly description?: string | undefined;
345
+ readonly jsonSchema: string;
346
+ readonly fieldConfig?: string | undefined;
347
+ readonly autoFormVersion?: number | undefined;
348
+ } | undefined;
349
+ readonly parsedData: {
350
+ readonly [x: string]: any;
351
+ };
352
+ readonly createdAt: string;
353
+ readonly updatedAt: string;
354
+ readonly publishAt?: string | null | undefined;
355
+ readonly id: string;
356
+ readonly slug: string;
286
357
  readonly data: string;
287
358
  readonly authorId?: string | undefined;
359
+ readonly contentTypeId: string;
288
360
  }>;
289
361
  readonly deleteContentItem: better_call.StrictEndpoint<"/content/:typeSlug/:id", {
290
362
  params: z.ZodObject<{
@@ -313,8 +385,8 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
313
385
  readonly createdAt: string;
314
386
  readonly updatedAt: string;
315
387
  readonly id: string;
316
- readonly name: string;
317
388
  readonly slug: string;
389
+ readonly name: string;
318
390
  readonly description?: string | undefined;
319
391
  readonly jsonSchema: string;
320
392
  readonly fieldConfig?: string | undefined;
@@ -325,19 +397,20 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
325
397
  };
326
398
  readonly createdAt: string;
327
399
  readonly updatedAt: string;
400
+ readonly publishAt?: string | null | undefined;
328
401
  readonly id: string;
329
402
  readonly slug: string;
330
- readonly contentTypeId: string;
331
403
  readonly data: string;
332
404
  readonly authorId?: string | undefined;
405
+ readonly contentTypeId: string;
333
406
  }[];
334
407
  };
335
408
  readonly contentType?: {
336
409
  readonly createdAt: string;
337
410
  readonly updatedAt: string;
338
411
  readonly id: string;
339
- readonly name: string;
340
412
  readonly slug: string;
413
+ readonly name: string;
341
414
  readonly description?: string | undefined;
342
415
  readonly jsonSchema: string;
343
416
  readonly fieldConfig?: string | undefined;
@@ -348,11 +421,12 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
348
421
  };
349
422
  readonly createdAt: string;
350
423
  readonly updatedAt: string;
424
+ readonly publishAt?: string | null | undefined;
351
425
  readonly id: string;
352
426
  readonly slug: string;
353
- readonly contentTypeId: string;
354
427
  readonly data: string;
355
428
  readonly authorId?: string | undefined;
429
+ readonly contentTypeId: string;
356
430
  }>;
357
431
  readonly listContentByRelation: better_call.StrictEndpoint<"/content/:typeSlug/by-relation", {
358
432
  params: z.ZodObject<{
@@ -383,8 +457,8 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
383
457
  createdAt: string;
384
458
  updatedAt: string;
385
459
  id: string;
386
- name: string;
387
460
  slug: string;
461
+ name: string;
388
462
  description?: string | undefined;
389
463
  jsonSchema: string;
390
464
  fieldConfig?: string | undefined;
@@ -393,11 +467,12 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
393
467
  parsedData: Record<string, _btst_stack_plugins_api.OperationData>;
394
468
  createdAt: string;
395
469
  updatedAt: string;
470
+ publishAt?: string | null;
396
471
  id: string;
397
472
  slug: string;
398
- contentTypeId: string;
399
473
  data: string;
400
474
  authorId?: string | undefined;
475
+ contentTypeId: string;
401
476
  }, "id" | "slug" | "createdAt" | "updatedAt" | "parsedData">, "parsedData"> & {
402
477
  parsedData: Partial<Record<string, _btst_stack_plugins_api.OperationData>>;
403
478
  })[];
@@ -469,8 +544,8 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
469
544
  createdAt: string;
470
545
  updatedAt: string;
471
546
  id: string;
472
- name: string;
473
547
  slug: string;
548
+ name: string;
474
549
  description?: string | undefined;
475
550
  jsonSchema: string;
476
551
  fieldConfig?: string | undefined;
@@ -479,11 +554,12 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
479
554
  parsedData: Record<string, _btst_stack_plugins_api.OperationData>;
480
555
  createdAt: string;
481
556
  updatedAt: string;
557
+ publishAt?: string | null;
482
558
  id: string;
483
559
  slug: string;
484
- contentTypeId: string;
485
560
  data: string;
486
561
  authorId?: string | undefined;
562
+ contentTypeId: string;
487
563
  }, "id" | "slug" | "createdAt" | "updatedAt" | "parsedData">, "parsedData"> & {
488
564
  parsedData: Partial<Record<string, _btst_stack_plugins_api.OperationData>>;
489
565
  })[];
@@ -514,8 +590,8 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
514
590
  createdAt: string;
515
591
  updatedAt: string;
516
592
  id: string;
517
- name: string;
518
593
  slug: string;
594
+ name: string;
519
595
  description?: string | undefined;
520
596
  jsonSchema: string;
521
597
  fieldConfig?: string | undefined;
@@ -529,8 +605,8 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
529
605
  createdAt: string;
530
606
  updatedAt: string;
531
607
  id: string;
532
- name: string;
533
608
  slug: string;
609
+ name: string;
534
610
  description?: string | undefined;
535
611
  jsonSchema: string;
536
612
  fieldConfig?: string | undefined;
@@ -552,6 +628,7 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
552
628
  record: "record";
553
629
  collection: "collection";
554
630
  }>;
631
+ view: z.ZodOptional<z.ZodLiteral<"content">>;
555
632
  recordId: z.ZodOptional<z.ZodString>;
556
633
  authorId: z.ZodOptional<z.ZodString>;
557
634
  }, z.core.$strip>>, {
@@ -562,8 +639,8 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
562
639
  createdAt: string;
563
640
  updatedAt: string;
564
641
  id: string;
565
- name: string;
566
642
  slug: string;
643
+ name: string;
567
644
  description?: string | undefined;
568
645
  jsonSchema: string;
569
646
  fieldConfig?: string | undefined;
@@ -572,18 +649,19 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
572
649
  parsedData: Record<string, _btst_stack_plugins_api.OperationData>;
573
650
  createdAt: string;
574
651
  updatedAt: string;
652
+ publishAt?: string | null;
575
653
  id: string;
576
654
  slug: string;
577
- contentTypeId: string;
578
655
  data: string;
579
656
  authorId?: string | undefined;
657
+ contentTypeId: string;
580
658
  } | (Omit<Pick<{
581
659
  contentType?: {
582
660
  createdAt: string;
583
661
  updatedAt: string;
584
662
  id: string;
585
- name: string;
586
663
  slug: string;
664
+ name: string;
587
665
  description?: string | undefined;
588
666
  jsonSchema: string;
589
667
  fieldConfig?: string | undefined;
@@ -592,11 +670,12 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
592
670
  parsedData: Record<string, _btst_stack_plugins_api.OperationData>;
593
671
  createdAt: string;
594
672
  updatedAt: string;
673
+ publishAt?: string | null;
595
674
  id: string;
596
675
  slug: string;
597
- contentTypeId: string;
598
676
  data: string;
599
677
  authorId?: string | undefined;
678
+ contentTypeId: string;
600
679
  }, "id" | "slug" | "createdAt" | "updatedAt" | "parsedData">, "parsedData"> & {
601
680
  parsedData: Record<string, _btst_stack_plugins_api.OperationData> | Partial<Record<string, _btst_stack_plugins_api.OperationData>>;
602
681
  }))[];
@@ -619,8 +698,8 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
619
698
  createdAt: string;
620
699
  updatedAt: string;
621
700
  id: string;
622
- name: string;
623
701
  slug: string;
702
+ name: string;
624
703
  description?: string | undefined;
625
704
  jsonSchema: string;
626
705
  fieldConfig?: string | undefined;
@@ -629,11 +708,12 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
629
708
  parsedData: Record<string, _btst_stack_plugins_api.OperationData>;
630
709
  createdAt: string;
631
710
  updatedAt: string;
711
+ publishAt?: string | null;
632
712
  id: string;
633
713
  slug: string;
634
- contentTypeId: string;
635
714
  data: string;
636
715
  authorId?: string | undefined;
716
+ contentTypeId: string;
637
717
  }, "id" | "slug" | "createdAt" | "updatedAt" | "parsedData">, "parsedData"> & {
638
718
  parsedData: T extends infer T_1 ? T_1 extends T ? T_1 extends {
639
719
  fields?: infer TFields extends CMSContentFields;
@@ -645,8 +725,8 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
645
725
  createdAt: string;
646
726
  updatedAt: string;
647
727
  id: string;
648
- name: string;
649
728
  slug: string;
729
+ name: string;
650
730
  description?: string | undefined;
651
731
  jsonSchema: string;
652
732
  fieldConfig?: string | undefined;
@@ -655,18 +735,19 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
655
735
  parsedData: Record<string, _btst_stack_plugins_api.OperationData>;
656
736
  createdAt: string;
657
737
  updatedAt: string;
738
+ publishAt?: string | null;
658
739
  id: string;
659
740
  slug: string;
660
- contentTypeId: string;
661
741
  data: string;
662
742
  authorId?: string | undefined;
743
+ contentTypeId: string;
663
744
  } : "view" extends keyof T ? {
664
745
  contentType?: {
665
746
  createdAt: string;
666
747
  updatedAt: string;
667
748
  id: string;
668
- name: string;
669
749
  slug: string;
750
+ name: string;
670
751
  description?: string | undefined;
671
752
  jsonSchema: string;
672
753
  fieldConfig?: string | undefined;
@@ -675,18 +756,19 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
675
756
  parsedData: Record<string, _btst_stack_plugins_api.OperationData>;
676
757
  createdAt: string;
677
758
  updatedAt: string;
759
+ publishAt?: string | null;
678
760
  id: string;
679
761
  slug: string;
680
- contentTypeId: string;
681
762
  data: string;
682
763
  authorId?: string | undefined;
764
+ contentTypeId: string;
683
765
  } | (Omit<Pick<{
684
766
  contentType?: {
685
767
  createdAt: string;
686
768
  updatedAt: string;
687
769
  id: string;
688
- name: string;
689
770
  slug: string;
771
+ name: string;
690
772
  description?: string | undefined;
691
773
  jsonSchema: string;
692
774
  fieldConfig?: string | undefined;
@@ -695,11 +777,12 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
695
777
  parsedData: Record<string, _btst_stack_plugins_api.OperationData>;
696
778
  createdAt: string;
697
779
  updatedAt: string;
780
+ publishAt?: string | null;
698
781
  id: string;
699
782
  slug: string;
700
- contentTypeId: string;
701
783
  data: string;
702
784
  authorId?: string | undefined;
785
+ contentTypeId: string;
703
786
  }, "id" | "slug" | "createdAt" | "updatedAt" | "parsedData">, "parsedData"> & {
704
787
  parsedData: T extends {
705
788
  fields?: infer TFields extends CMSContentFields;
@@ -709,8 +792,8 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
709
792
  createdAt: string;
710
793
  updatedAt: string;
711
794
  id: string;
712
- name: string;
713
795
  slug: string;
796
+ name: string;
714
797
  description?: string | undefined;
715
798
  jsonSchema: string;
716
799
  fieldConfig?: string | undefined;
@@ -719,11 +802,12 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
719
802
  parsedData: Record<string, _btst_stack_plugins_api.OperationData>;
720
803
  createdAt: string;
721
804
  updatedAt: string;
805
+ publishAt?: string | null;
722
806
  id: string;
723
807
  slug: string;
724
- contentTypeId: string;
725
808
  data: string;
726
809
  authorId?: string | undefined;
810
+ contentTypeId: string;
727
811
  } : never : never)[];
728
812
  total: number;
729
813
  limit: number;
@@ -740,6 +824,7 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
740
824
  record: "record";
741
825
  collection: "collection";
742
826
  }>;
827
+ view: z.ZodOptional<z.ZodLiteral<"content">>;
743
828
  recordId: z.ZodOptional<z.ZodString>;
744
829
  authorId: z.ZodOptional<z.ZodString>;
745
830
  }, z.core.$strip>>, Omit<Pick<{
@@ -747,8 +832,8 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
747
832
  createdAt: string;
748
833
  updatedAt: string;
749
834
  id: string;
750
- name: string;
751
835
  slug: string;
836
+ name: string;
752
837
  description?: string | undefined;
753
838
  jsonSchema: string;
754
839
  fieldConfig?: string | undefined;
@@ -757,11 +842,12 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
757
842
  parsedData: Record<string, _btst_stack_plugins_api.OperationData>;
758
843
  createdAt: string;
759
844
  updatedAt: string;
845
+ publishAt?: string | null;
760
846
  id: string;
761
847
  slug: string;
762
- contentTypeId: string;
763
848
  data: string;
764
849
  authorId?: string | undefined;
850
+ contentTypeId: string;
765
851
  }, "id" | "slug" | "createdAt" | "updatedAt" | "parsedData">, "parsedData"> & {
766
852
  parsedData: Partial<Record<string, _btst_stack_plugins_api.OperationData>>;
767
853
  }, false> & _btst_stack_plugins_api.OperationCallSignature<(<const TInput extends _btst_stack_plugins_api.DeepReadonly<z.input<z.ZodObject<{
@@ -776,8 +862,8 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
776
862
  createdAt: string;
777
863
  updatedAt: string;
778
864
  id: string;
779
- name: string;
780
865
  slug: string;
866
+ name: string;
781
867
  description?: string | undefined;
782
868
  jsonSchema: string;
783
869
  fieldConfig?: string | undefined;
@@ -786,11 +872,12 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
786
872
  parsedData: Record<string, _btst_stack_plugins_api.OperationData>;
787
873
  createdAt: string;
788
874
  updatedAt: string;
875
+ publishAt?: string | null;
789
876
  id: string;
790
877
  slug: string;
791
- contentTypeId: string;
792
878
  data: string;
793
879
  authorId?: string | undefined;
880
+ contentTypeId: string;
794
881
  }, "id" | "slug" | "createdAt" | "updatedAt" | "parsedData">, "parsedData"> & {
795
882
  parsedData: TInput extends infer T ? T extends TInput ? T extends {
796
883
  fields?: infer TFields extends CMSContentFields;
@@ -802,8 +889,8 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
802
889
  createdAt: string;
803
890
  updatedAt: string;
804
891
  id: string;
805
- name: string;
806
892
  slug: string;
893
+ name: string;
807
894
  description?: string | undefined;
808
895
  jsonSchema: string;
809
896
  fieldConfig?: string | undefined;
@@ -812,18 +899,19 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
812
899
  parsedData: Record<string, _btst_stack_plugins_api.OperationData>;
813
900
  createdAt: string;
814
901
  updatedAt: string;
902
+ publishAt?: string | null;
815
903
  id: string;
816
904
  slug: string;
817
- contentTypeId: string;
818
905
  data: string;
819
906
  authorId?: string | undefined;
907
+ contentTypeId: string;
820
908
  } : "view" extends keyof TInput ? {
821
909
  contentType?: {
822
910
  createdAt: string;
823
911
  updatedAt: string;
824
912
  id: string;
825
- name: string;
826
913
  slug: string;
914
+ name: string;
827
915
  description?: string | undefined;
828
916
  jsonSchema: string;
829
917
  fieldConfig?: string | undefined;
@@ -832,18 +920,19 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
832
920
  parsedData: Record<string, _btst_stack_plugins_api.OperationData>;
833
921
  createdAt: string;
834
922
  updatedAt: string;
923
+ publishAt?: string | null;
835
924
  id: string;
836
925
  slug: string;
837
- contentTypeId: string;
838
926
  data: string;
839
927
  authorId?: string | undefined;
928
+ contentTypeId: string;
840
929
  } | (Omit<Pick<{
841
930
  contentType?: {
842
931
  createdAt: string;
843
932
  updatedAt: string;
844
933
  id: string;
845
- name: string;
846
934
  slug: string;
935
+ name: string;
847
936
  description?: string | undefined;
848
937
  jsonSchema: string;
849
938
  fieldConfig?: string | undefined;
@@ -852,11 +941,12 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
852
941
  parsedData: Record<string, _btst_stack_plugins_api.OperationData>;
853
942
  createdAt: string;
854
943
  updatedAt: string;
944
+ publishAt?: string | null;
855
945
  id: string;
856
946
  slug: string;
857
- contentTypeId: string;
858
947
  data: string;
859
948
  authorId?: string | undefined;
949
+ contentTypeId: string;
860
950
  }, "id" | "slug" | "createdAt" | "updatedAt" | "parsedData">, "parsedData"> & {
861
951
  parsedData: TInput extends {
862
952
  fields?: infer TFields extends CMSContentFields;
@@ -866,8 +956,8 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
866
956
  createdAt: string;
867
957
  updatedAt: string;
868
958
  id: string;
869
- name: string;
870
959
  slug: string;
960
+ name: string;
871
961
  description?: string | undefined;
872
962
  jsonSchema: string;
873
963
  fieldConfig?: string | undefined;
@@ -876,17 +966,19 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
876
966
  parsedData: Record<string, _btst_stack_plugins_api.OperationData>;
877
967
  createdAt: string;
878
968
  updatedAt: string;
969
+ publishAt?: string | null;
879
970
  id: string;
880
971
  slug: string;
881
- contentTypeId: string;
882
972
  data: string;
883
973
  authorId?: string | undefined;
974
+ contentTypeId: string;
884
975
  }>>)>;
885
976
  readonly createContentItem: _btst_stack_plugins_api.Operation<z.ZodObject<{
886
977
  typeSlug: z.ZodString;
887
978
  body: z.ZodObject<{
888
979
  slug: z.ZodString;
889
980
  data: z.ZodType<Record<string, any>, unknown, z.core.$ZodTypeInternals<Record<string, any>, unknown>>;
981
+ publishAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
890
982
  }, z.core.$strip>;
891
983
  }, z.core.$strip>, _btst_stack_authorization.PermissionDescriptor<"cms:record.create", z.ZodObject<{
892
984
  contentType: z.ZodString;
@@ -895,8 +987,8 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
895
987
  createdAt: string;
896
988
  updatedAt: string;
897
989
  id: string;
898
- name: string;
899
990
  slug: string;
991
+ name: string;
900
992
  description?: string | undefined;
901
993
  jsonSchema: string;
902
994
  fieldConfig?: string | undefined;
@@ -905,11 +997,12 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
905
997
  parsedData: Record<string, _btst_stack_plugins_api.OperationData>;
906
998
  createdAt: string;
907
999
  updatedAt: string;
1000
+ publishAt?: string | null;
908
1001
  id: string;
909
1002
  slug: string;
910
- contentTypeId: string;
911
1003
  data: string;
912
1004
  authorId?: string | undefined;
1005
+ contentTypeId: string;
913
1006
  }, false>;
914
1007
  readonly updateContentItem: _btst_stack_plugins_api.Operation<z.ZodObject<{
915
1008
  typeSlug: z.ZodString;
@@ -917,6 +1010,7 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
917
1010
  body: z.ZodObject<{
918
1011
  slug: z.ZodOptional<z.ZodString>;
919
1012
  data: z.ZodOptional<z.ZodType<Record<string, any>, unknown, z.core.$ZodTypeInternals<Record<string, any>, unknown>>>;
1013
+ publishAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
920
1014
  }, z.core.$strip>;
921
1015
  }, z.core.$strip>, _btst_stack_authorization.PermissionDescriptor<"cms:record.update", z.ZodObject<{
922
1016
  contentType: z.ZodString;
@@ -927,8 +1021,8 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
927
1021
  createdAt: string;
928
1022
  updatedAt: string;
929
1023
  id: string;
930
- name: string;
931
1024
  slug: string;
1025
+ name: string;
932
1026
  description?: string | undefined;
933
1027
  jsonSchema: string;
934
1028
  fieldConfig?: string | undefined;
@@ -937,11 +1031,85 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
937
1031
  parsedData: Record<string, _btst_stack_plugins_api.OperationData>;
938
1032
  createdAt: string;
939
1033
  updatedAt: string;
1034
+ publishAt?: string | null;
940
1035
  id: string;
941
1036
  slug: string;
1037
+ data: string;
1038
+ authorId?: string | undefined;
942
1039
  contentTypeId: string;
1040
+ }, false>;
1041
+ readonly dispatchDueContent: _btst_stack_plugins_api.Operation<z.ZodObject<{
1042
+ limit: z.ZodDefault<z.ZodNumber>;
1043
+ after: z.ZodOptional<z.ZodString>;
1044
+ }, z.core.$strip>, _btst_stack_authorization.PermissionDescriptor<"cms:contentType.read", z.ZodObject<{
1045
+ contentType: z.ZodOptional<z.ZodString>;
1046
+ }, z.core.$strip>>, {
1047
+ scanned: number;
1048
+ published: string[];
1049
+ skipped: string[];
1050
+ nextCursor: string | null;
1051
+ failures: {
1052
+ id: string;
1053
+ message: string;
1054
+ published: boolean;
1055
+ }[];
1056
+ }, false>;
1057
+ readonly listContentRevisions: _btst_stack_plugins_api.Operation<z.ZodObject<{
1058
+ typeSlug: z.ZodString;
1059
+ id: z.ZodString;
1060
+ offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1061
+ }, z.core.$strip>, _btst_stack_authorization.PermissionDescriptor<"cms:record.read", z.ZodObject<{
1062
+ contentType: z.ZodString;
1063
+ scope: z.ZodEnum<{
1064
+ record: "record";
1065
+ collection: "collection";
1066
+ }>;
1067
+ view: z.ZodOptional<z.ZodLiteral<"content">>;
1068
+ recordId: z.ZodOptional<z.ZodString>;
1069
+ authorId: z.ZodOptional<z.ZodString>;
1070
+ }, z.core.$strip>>, {
1071
+ items: {
1072
+ createdAt: string;
1073
+ publishAt: string | null;
1074
+ id: string;
1075
+ contentItemId: string;
1076
+ revisionKey: string;
1077
+ version: number;
1078
+ slug: string;
1079
+ data: string;
1080
+ authorId?: string | null;
1081
+ }[];
1082
+ total: number;
1083
+ }, false>;
1084
+ readonly restoreContentRevision: _btst_stack_plugins_api.Operation<z.ZodObject<{
1085
+ typeSlug: z.ZodString;
1086
+ id: z.ZodString;
1087
+ revisionId: z.ZodString;
1088
+ }, z.core.$strip>, _btst_stack_authorization.PermissionDescriptor<"cms:record.update", z.ZodObject<{
1089
+ contentType: z.ZodString;
1090
+ recordId: z.ZodString;
1091
+ authorId: z.ZodOptional<z.ZodString>;
1092
+ }, z.core.$strip>>, {
1093
+ contentType?: {
1094
+ createdAt: string;
1095
+ updatedAt: string;
1096
+ id: string;
1097
+ slug: string;
1098
+ name: string;
1099
+ description?: string | undefined;
1100
+ jsonSchema: string;
1101
+ fieldConfig?: string | undefined;
1102
+ autoFormVersion?: number | undefined;
1103
+ } | undefined;
1104
+ parsedData: Record<string, _btst_stack_plugins_api.OperationData>;
1105
+ createdAt: string;
1106
+ updatedAt: string;
1107
+ publishAt?: string | null;
1108
+ id: string;
1109
+ slug: string;
943
1110
  data: string;
944
1111
  authorId?: string | undefined;
1112
+ contentTypeId: string;
945
1113
  }, false>;
946
1114
  readonly deleteContentItem: _btst_stack_plugins_api.Operation<z.ZodObject<{
947
1115
  typeSlug: z.ZodString;
@@ -962,6 +1130,7 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
962
1130
  record: "record";
963
1131
  collection: "collection";
964
1132
  }>;
1133
+ view: z.ZodOptional<z.ZodLiteral<"content">>;
965
1134
  recordId: z.ZodOptional<z.ZodString>;
966
1135
  authorId: z.ZodOptional<z.ZodString>;
967
1136
  }, z.core.$strip>>, {
@@ -971,8 +1140,8 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
971
1140
  createdAt: string;
972
1141
  updatedAt: string;
973
1142
  id: string;
974
- name: string;
975
1143
  slug: string;
1144
+ name: string;
976
1145
  description?: string | undefined;
977
1146
  jsonSchema: string;
978
1147
  fieldConfig?: string | undefined;
@@ -981,19 +1150,20 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
981
1150
  parsedData: Record<string, _btst_stack_plugins_api.OperationData>;
982
1151
  createdAt: string;
983
1152
  updatedAt: string;
1153
+ publishAt?: string | null;
984
1154
  id: string;
985
1155
  slug: string;
986
- contentTypeId: string;
987
1156
  data: string;
988
1157
  authorId?: string | undefined;
1158
+ contentTypeId: string;
989
1159
  }[];
990
1160
  };
991
1161
  contentType?: {
992
1162
  createdAt: string;
993
1163
  updatedAt: string;
994
1164
  id: string;
995
- name: string;
996
1165
  slug: string;
1166
+ name: string;
997
1167
  description?: string | undefined;
998
1168
  jsonSchema: string;
999
1169
  fieldConfig?: string | undefined;
@@ -1002,11 +1172,12 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
1002
1172
  parsedData: Record<string, _btst_stack_plugins_api.OperationData>;
1003
1173
  createdAt: string;
1004
1174
  updatedAt: string;
1175
+ publishAt?: string | null;
1005
1176
  id: string;
1006
1177
  slug: string;
1007
- contentTypeId: string;
1008
1178
  data: string;
1009
1179
  authorId?: string | undefined;
1180
+ contentTypeId: string;
1010
1181
  }, false>;
1011
1182
  readonly listContentByRelation: _btst_stack_plugins_api.Operation<z.ZodObject<{
1012
1183
  typeSlug: z.ZodString;
@@ -1024,6 +1195,7 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
1024
1195
  record: "record";
1025
1196
  collection: "collection";
1026
1197
  }>;
1198
+ view: z.ZodOptional<z.ZodLiteral<"content">>;
1027
1199
  recordId: z.ZodOptional<z.ZodString>;
1028
1200
  authorId: z.ZodOptional<z.ZodString>;
1029
1201
  }, z.core.$strip>>, {
@@ -1032,8 +1204,8 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
1032
1204
  createdAt: string;
1033
1205
  updatedAt: string;
1034
1206
  id: string;
1035
- name: string;
1036
1207
  slug: string;
1208
+ name: string;
1037
1209
  description?: string | undefined;
1038
1210
  jsonSchema: string;
1039
1211
  fieldConfig?: string | undefined;
@@ -1042,11 +1214,12 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
1042
1214
  parsedData: Record<string, _btst_stack_plugins_api.OperationData>;
1043
1215
  createdAt: string;
1044
1216
  updatedAt: string;
1217
+ publishAt?: string | null;
1045
1218
  id: string;
1046
1219
  slug: string;
1047
- contentTypeId: string;
1048
1220
  data: string;
1049
1221
  authorId?: string | undefined;
1222
+ contentTypeId: string;
1050
1223
  }, "id" | "slug" | "createdAt" | "updatedAt" | "parsedData">, "parsedData"> & {
1051
1224
  parsedData: Partial<Record<string, _btst_stack_plugins_api.OperationData>>;
1052
1225
  })[];
@@ -1071,8 +1244,8 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
1071
1244
  createdAt: string;
1072
1245
  updatedAt: string;
1073
1246
  id: string;
1074
- name: string;
1075
1247
  slug: string;
1248
+ name: string;
1076
1249
  description?: string | undefined;
1077
1250
  jsonSchema: string;
1078
1251
  fieldConfig?: string | undefined;
@@ -1081,11 +1254,12 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
1081
1254
  parsedData: Record<string, _btst_stack_plugins_api.OperationData>;
1082
1255
  createdAt: string;
1083
1256
  updatedAt: string;
1257
+ publishAt?: string | null;
1084
1258
  id: string;
1085
1259
  slug: string;
1086
- contentTypeId: string;
1087
1260
  data: string;
1088
1261
  authorId?: string | undefined;
1262
+ contentTypeId: string;
1089
1263
  }, "id" | "slug" | "createdAt" | "updatedAt" | "parsedData">, "parsedData"> & {
1090
1264
  parsedData: T extends infer T_1 ? T_1 extends T ? T_1 extends {
1091
1265
  fields?: infer TFields extends CMSContentFields;
@@ -1097,8 +1271,8 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
1097
1271
  createdAt: string;
1098
1272
  updatedAt: string;
1099
1273
  id: string;
1100
- name: string;
1101
1274
  slug: string;
1275
+ name: string;
1102
1276
  description?: string | undefined;
1103
1277
  jsonSchema: string;
1104
1278
  fieldConfig?: string | undefined;
@@ -1107,18 +1281,19 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
1107
1281
  parsedData: Record<string, _btst_stack_plugins_api.OperationData>;
1108
1282
  createdAt: string;
1109
1283
  updatedAt: string;
1284
+ publishAt?: string | null;
1110
1285
  id: string;
1111
1286
  slug: string;
1112
- contentTypeId: string;
1113
1287
  data: string;
1114
1288
  authorId?: string | undefined;
1289
+ contentTypeId: string;
1115
1290
  } : "view" extends keyof T ? {
1116
1291
  contentType?: {
1117
1292
  createdAt: string;
1118
1293
  updatedAt: string;
1119
1294
  id: string;
1120
- name: string;
1121
1295
  slug: string;
1296
+ name: string;
1122
1297
  description?: string | undefined;
1123
1298
  jsonSchema: string;
1124
1299
  fieldConfig?: string | undefined;
@@ -1127,18 +1302,19 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
1127
1302
  parsedData: Record<string, _btst_stack_plugins_api.OperationData>;
1128
1303
  createdAt: string;
1129
1304
  updatedAt: string;
1305
+ publishAt?: string | null;
1130
1306
  id: string;
1131
1307
  slug: string;
1132
- contentTypeId: string;
1133
1308
  data: string;
1134
1309
  authorId?: string | undefined;
1310
+ contentTypeId: string;
1135
1311
  } | (Omit<Pick<{
1136
1312
  contentType?: {
1137
1313
  createdAt: string;
1138
1314
  updatedAt: string;
1139
1315
  id: string;
1140
- name: string;
1141
1316
  slug: string;
1317
+ name: string;
1142
1318
  description?: string | undefined;
1143
1319
  jsonSchema: string;
1144
1320
  fieldConfig?: string | undefined;
@@ -1147,11 +1323,12 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
1147
1323
  parsedData: Record<string, _btst_stack_plugins_api.OperationData>;
1148
1324
  createdAt: string;
1149
1325
  updatedAt: string;
1326
+ publishAt?: string | null;
1150
1327
  id: string;
1151
1328
  slug: string;
1152
- contentTypeId: string;
1153
1329
  data: string;
1154
1330
  authorId?: string | undefined;
1331
+ contentTypeId: string;
1155
1332
  }, "id" | "slug" | "createdAt" | "updatedAt" | "parsedData">, "parsedData"> & {
1156
1333
  parsedData: T extends {
1157
1334
  fields?: infer TFields extends CMSContentFields;
@@ -1161,8 +1338,8 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
1161
1338
  createdAt: string;
1162
1339
  updatedAt: string;
1163
1340
  id: string;
1164
- name: string;
1165
1341
  slug: string;
1342
+ name: string;
1166
1343
  description?: string | undefined;
1167
1344
  jsonSchema: string;
1168
1345
  fieldConfig?: string | undefined;
@@ -1171,11 +1348,12 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
1171
1348
  parsedData: Record<string, _btst_stack_plugins_api.OperationData>;
1172
1349
  createdAt: string;
1173
1350
  updatedAt: string;
1351
+ publishAt?: string | null;
1174
1352
  id: string;
1175
1353
  slug: string;
1176
- contentTypeId: string;
1177
1354
  data: string;
1178
1355
  authorId?: string | undefined;
1356
+ contentTypeId: string;
1179
1357
  } : never : never>[];
1180
1358
  readonly total: number;
1181
1359
  readonly limit: number;
@@ -1213,6 +1391,7 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
1213
1391
  record: "record";
1214
1392
  collection: "collection";
1215
1393
  }>;
1394
+ view: z.ZodOptional<z.ZodLiteral<"content">>;
1216
1395
  recordId: z.ZodOptional<z.ZodString>;
1217
1396
  authorId: z.ZodOptional<z.ZodString>;
1218
1397
  }, z.core.$strip>>, {
@@ -1221,8 +1400,8 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
1221
1400
  createdAt: string;
1222
1401
  updatedAt: string;
1223
1402
  id: string;
1224
- name: string;
1225
1403
  slug: string;
1404
+ name: string;
1226
1405
  description?: string | undefined;
1227
1406
  jsonSchema: string;
1228
1407
  fieldConfig?: string | undefined;
@@ -1231,11 +1410,12 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
1231
1410
  parsedData: Record<string, _btst_stack_plugins_api.OperationData>;
1232
1411
  createdAt: string;
1233
1412
  updatedAt: string;
1413
+ publishAt?: string | null;
1234
1414
  id: string;
1235
1415
  slug: string;
1236
- contentTypeId: string;
1237
1416
  data: string;
1238
1417
  authorId?: string | undefined;
1418
+ contentTypeId: string;
1239
1419
  }, "id" | "slug" | "createdAt" | "updatedAt" | "parsedData">, "parsedData"> & {
1240
1420
  parsedData: Partial<Record<string, _btst_stack_plugins_api.OperationData>>;
1241
1421
  })[];
@@ -1261,8 +1441,8 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
1261
1441
  createdAt: string;
1262
1442
  updatedAt: string;
1263
1443
  id: string;
1264
- name: string;
1265
1444
  slug: string;
1445
+ name: string;
1266
1446
  description?: string | undefined;
1267
1447
  jsonSchema: string;
1268
1448
  fieldConfig?: string | undefined;
@@ -1271,11 +1451,12 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
1271
1451
  parsedData: Record<string, _btst_stack_plugins_api.OperationData>;
1272
1452
  createdAt: string;
1273
1453
  updatedAt: string;
1454
+ publishAt?: string | null;
1274
1455
  id: string;
1275
1456
  slug: string;
1276
- contentTypeId: string;
1277
1457
  data: string;
1278
1458
  authorId?: string | undefined;
1459
+ contentTypeId: string;
1279
1460
  }, "id" | "slug" | "createdAt" | "updatedAt" | "parsedData">, "parsedData"> & {
1280
1461
  parsedData: T extends infer T_1 ? T_1 extends T ? T_1 extends {
1281
1462
  fields?: infer TFields extends CMSContentFields;
@@ -1287,8 +1468,8 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
1287
1468
  createdAt: string;
1288
1469
  updatedAt: string;
1289
1470
  id: string;
1290
- name: string;
1291
1471
  slug: string;
1472
+ name: string;
1292
1473
  description?: string | undefined;
1293
1474
  jsonSchema: string;
1294
1475
  fieldConfig?: string | undefined;
@@ -1297,18 +1478,19 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
1297
1478
  parsedData: Record<string, _btst_stack_plugins_api.OperationData>;
1298
1479
  createdAt: string;
1299
1480
  updatedAt: string;
1481
+ publishAt?: string | null;
1300
1482
  id: string;
1301
1483
  slug: string;
1302
- contentTypeId: string;
1303
1484
  data: string;
1304
1485
  authorId?: string | undefined;
1486
+ contentTypeId: string;
1305
1487
  } : "view" extends keyof T ? {
1306
1488
  contentType?: {
1307
1489
  createdAt: string;
1308
1490
  updatedAt: string;
1309
1491
  id: string;
1310
- name: string;
1311
1492
  slug: string;
1493
+ name: string;
1312
1494
  description?: string | undefined;
1313
1495
  jsonSchema: string;
1314
1496
  fieldConfig?: string | undefined;
@@ -1317,18 +1499,19 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
1317
1499
  parsedData: Record<string, _btst_stack_plugins_api.OperationData>;
1318
1500
  createdAt: string;
1319
1501
  updatedAt: string;
1502
+ publishAt?: string | null;
1320
1503
  id: string;
1321
1504
  slug: string;
1322
- contentTypeId: string;
1323
1505
  data: string;
1324
1506
  authorId?: string | undefined;
1507
+ contentTypeId: string;
1325
1508
  } | (Omit<Pick<{
1326
1509
  contentType?: {
1327
1510
  createdAt: string;
1328
1511
  updatedAt: string;
1329
1512
  id: string;
1330
- name: string;
1331
1513
  slug: string;
1514
+ name: string;
1332
1515
  description?: string | undefined;
1333
1516
  jsonSchema: string;
1334
1517
  fieldConfig?: string | undefined;
@@ -1337,11 +1520,12 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
1337
1520
  parsedData: Record<string, _btst_stack_plugins_api.OperationData>;
1338
1521
  createdAt: string;
1339
1522
  updatedAt: string;
1523
+ publishAt?: string | null;
1340
1524
  id: string;
1341
1525
  slug: string;
1342
- contentTypeId: string;
1343
1526
  data: string;
1344
1527
  authorId?: string | undefined;
1528
+ contentTypeId: string;
1345
1529
  }, "id" | "slug" | "createdAt" | "updatedAt" | "parsedData">, "parsedData"> & {
1346
1530
  parsedData: T extends {
1347
1531
  fields?: infer TFields extends CMSContentFields;
@@ -1351,8 +1535,8 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
1351
1535
  createdAt: string;
1352
1536
  updatedAt: string;
1353
1537
  id: string;
1354
- name: string;
1355
1538
  slug: string;
1539
+ name: string;
1356
1540
  description?: string | undefined;
1357
1541
  jsonSchema: string;
1358
1542
  fieldConfig?: string | undefined;
@@ -1361,11 +1545,12 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
1361
1545
  parsedData: Record<string, _btst_stack_plugins_api.OperationData>;
1362
1546
  createdAt: string;
1363
1547
  updatedAt: string;
1548
+ publishAt?: string | null;
1364
1549
  id: string;
1365
1550
  slug: string;
1366
- contentTypeId: string;
1367
1551
  data: string;
1368
1552
  authorId?: string | undefined;
1553
+ contentTypeId: string;
1369
1554
  } : never : never>[];
1370
1555
  readonly total: number;
1371
1556
  readonly limit: number;
@@ -1534,6 +1719,50 @@ declare const cmsResources: {
1534
1719
  };
1535
1720
  };
1536
1721
  };
1722
+ cmsRevisions: {
1723
+ queries: {
1724
+ list: {
1725
+ path: string;
1726
+ params: (typeSlug: string, id: string) => {
1727
+ typeSlug: string;
1728
+ id: string;
1729
+ };
1730
+ key: (typeSlug: string, id: string) => string[];
1731
+ select: (data: any) => {
1732
+ items: SerializedContentRevision[];
1733
+ total: number;
1734
+ };
1735
+ infinite: true;
1736
+ pageSize: () => number;
1737
+ nextPageParam: (lastPage: {
1738
+ items: SerializedContentRevision[];
1739
+ total: number;
1740
+ }, allPages: {
1741
+ items: SerializedContentRevision[];
1742
+ total: number;
1743
+ }[]) => number | undefined;
1744
+ };
1745
+ };
1746
+ mutations: {
1747
+ restore: {
1748
+ path: string;
1749
+ method: "POST";
1750
+ input: (vars: {
1751
+ typeSlug: string;
1752
+ id: string;
1753
+ revisionId: string;
1754
+ }) => {
1755
+ params: {
1756
+ typeSlug: string;
1757
+ id: string;
1758
+ revisionId: string;
1759
+ };
1760
+ };
1761
+ select: (data: any) => SerializedContentItemWithType;
1762
+ invalidates: string[];
1763
+ };
1764
+ };
1765
+ };
1537
1766
  cmsContent: {
1538
1767
  queries: {
1539
1768
  list: {
@@ -1647,6 +1876,7 @@ declare const cmsResources: {
1647
1876
  typeSlug: string;
1648
1877
  slug: string;
1649
1878
  data: Record<string, unknown>;
1879
+ publishAt?: string | null;
1650
1880
  }) => {
1651
1881
  params: {
1652
1882
  typeSlug: string;
@@ -1654,6 +1884,7 @@ declare const cmsResources: {
1654
1884
  body: {
1655
1885
  slug: string;
1656
1886
  data: Record<string, unknown>;
1887
+ publishAt: string | null | undefined;
1657
1888
  };
1658
1889
  };
1659
1890
  select: (data: any) => SerializedContentItemWithType | null;
@@ -1668,6 +1899,7 @@ declare const cmsResources: {
1668
1899
  data: {
1669
1900
  slug?: string;
1670
1901
  data?: Record<string, unknown>;
1902
+ publishAt?: string | null;
1671
1903
  };
1672
1904
  }) => {
1673
1905
  params: {
@@ -1677,6 +1909,7 @@ declare const cmsResources: {
1677
1909
  body: {
1678
1910
  slug?: string;
1679
1911
  data?: Record<string, unknown>;
1912
+ publishAt?: string | null;
1680
1913
  };
1681
1914
  };
1682
1915
  select: (data: any) => SerializedContentItemWithType | null;