@nikthegeek/dreamsforlittles-shared 0.18.2 → 0.18.3

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.
@@ -4381,21 +4381,130 @@ export declare const familyQuestionnaireAnswersPatchRequestSchema: z.ZodObject<{
4381
4381
  submit?: boolean | undefined;
4382
4382
  }>;
4383
4383
  export type FamilyQuestionnaireAnswersPatchRequest = z.infer<typeof familyQuestionnaireAnswersPatchRequestSchema>;
4384
+ export declare const sleepPlanTextFormatSchema: z.ZodObject<{
4385
+ heading: z.ZodOptional<z.ZodBoolean>;
4386
+ ordered: z.ZodOptional<z.ZodBoolean>;
4387
+ spans: z.ZodDefault<z.ZodArray<z.ZodObject<{
4388
+ start: z.ZodNumber;
4389
+ end: z.ZodNumber;
4390
+ bold: z.ZodOptional<z.ZodBoolean>;
4391
+ italic: z.ZodOptional<z.ZodBoolean>;
4392
+ href: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
4393
+ }, "strict", z.ZodTypeAny, {
4394
+ start: number;
4395
+ end: number;
4396
+ bold?: boolean | undefined;
4397
+ italic?: boolean | undefined;
4398
+ href?: string | undefined;
4399
+ }, {
4400
+ start: number;
4401
+ end: number;
4402
+ bold?: boolean | undefined;
4403
+ italic?: boolean | undefined;
4404
+ href?: string | undefined;
4405
+ }>, "many">>;
4406
+ }, "strict", z.ZodTypeAny, {
4407
+ spans: {
4408
+ start: number;
4409
+ end: number;
4410
+ bold?: boolean | undefined;
4411
+ italic?: boolean | undefined;
4412
+ href?: string | undefined;
4413
+ }[];
4414
+ ordered?: boolean | undefined;
4415
+ heading?: boolean | undefined;
4416
+ }, {
4417
+ ordered?: boolean | undefined;
4418
+ heading?: boolean | undefined;
4419
+ spans?: {
4420
+ start: number;
4421
+ end: number;
4422
+ bold?: boolean | undefined;
4423
+ italic?: boolean | undefined;
4424
+ href?: string | undefined;
4425
+ }[] | undefined;
4426
+ }>;
4427
+ export type SleepPlanTextFormat = z.infer<typeof sleepPlanTextFormatSchema>;
4384
4428
  export declare const textBlockSchema: z.ZodObject<{
4385
4429
  id: z.ZodString;
4386
4430
  type: z.ZodEnum<["paragraph", "bullet"]>;
4387
4431
  text: z.ZodString;
4432
+ format: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4433
+ heading: z.ZodOptional<z.ZodBoolean>;
4434
+ ordered: z.ZodOptional<z.ZodBoolean>;
4435
+ spans: z.ZodDefault<z.ZodArray<z.ZodObject<{
4436
+ start: z.ZodNumber;
4437
+ end: z.ZodNumber;
4438
+ bold: z.ZodOptional<z.ZodBoolean>;
4439
+ italic: z.ZodOptional<z.ZodBoolean>;
4440
+ href: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
4441
+ }, "strict", z.ZodTypeAny, {
4442
+ start: number;
4443
+ end: number;
4444
+ bold?: boolean | undefined;
4445
+ italic?: boolean | undefined;
4446
+ href?: string | undefined;
4447
+ }, {
4448
+ start: number;
4449
+ end: number;
4450
+ bold?: boolean | undefined;
4451
+ italic?: boolean | undefined;
4452
+ href?: string | undefined;
4453
+ }>, "many">>;
4454
+ }, "strict", z.ZodTypeAny, {
4455
+ spans: {
4456
+ start: number;
4457
+ end: number;
4458
+ bold?: boolean | undefined;
4459
+ italic?: boolean | undefined;
4460
+ href?: string | undefined;
4461
+ }[];
4462
+ ordered?: boolean | undefined;
4463
+ heading?: boolean | undefined;
4464
+ }, {
4465
+ ordered?: boolean | undefined;
4466
+ heading?: boolean | undefined;
4467
+ spans?: {
4468
+ start: number;
4469
+ end: number;
4470
+ bold?: boolean | undefined;
4471
+ italic?: boolean | undefined;
4472
+ href?: string | undefined;
4473
+ }[] | undefined;
4474
+ }>>>;
4388
4475
  presentation: z.ZodOptional<z.ZodNullable<z.ZodLiteral<"tip">>>;
4389
4476
  }, "strip", z.ZodTypeAny, {
4390
4477
  type: "paragraph" | "bullet";
4391
4478
  id: string;
4392
4479
  text: string;
4393
4480
  presentation?: "tip" | null | undefined;
4481
+ format?: {
4482
+ spans: {
4483
+ start: number;
4484
+ end: number;
4485
+ bold?: boolean | undefined;
4486
+ italic?: boolean | undefined;
4487
+ href?: string | undefined;
4488
+ }[];
4489
+ ordered?: boolean | undefined;
4490
+ heading?: boolean | undefined;
4491
+ } | null | undefined;
4394
4492
  }, {
4395
4493
  type: "paragraph" | "bullet";
4396
4494
  id: string;
4397
4495
  text: string;
4398
4496
  presentation?: "tip" | null | undefined;
4497
+ format?: {
4498
+ ordered?: boolean | undefined;
4499
+ heading?: boolean | undefined;
4500
+ spans?: {
4501
+ start: number;
4502
+ end: number;
4503
+ bold?: boolean | undefined;
4504
+ italic?: boolean | undefined;
4505
+ href?: string | undefined;
4506
+ }[] | undefined;
4507
+ } | null | undefined;
4399
4508
  }>;
4400
4509
  export type TextBlock = z.infer<typeof textBlockSchema>;
4401
4510
  export declare const imageBlockSchema: z.ZodObject<{
@@ -4431,17 +4540,82 @@ export declare const richTextBlockSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
4431
4540
  id: z.ZodString;
4432
4541
  type: z.ZodEnum<["paragraph", "bullet"]>;
4433
4542
  text: z.ZodString;
4543
+ format: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4544
+ heading: z.ZodOptional<z.ZodBoolean>;
4545
+ ordered: z.ZodOptional<z.ZodBoolean>;
4546
+ spans: z.ZodDefault<z.ZodArray<z.ZodObject<{
4547
+ start: z.ZodNumber;
4548
+ end: z.ZodNumber;
4549
+ bold: z.ZodOptional<z.ZodBoolean>;
4550
+ italic: z.ZodOptional<z.ZodBoolean>;
4551
+ href: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
4552
+ }, "strict", z.ZodTypeAny, {
4553
+ start: number;
4554
+ end: number;
4555
+ bold?: boolean | undefined;
4556
+ italic?: boolean | undefined;
4557
+ href?: string | undefined;
4558
+ }, {
4559
+ start: number;
4560
+ end: number;
4561
+ bold?: boolean | undefined;
4562
+ italic?: boolean | undefined;
4563
+ href?: string | undefined;
4564
+ }>, "many">>;
4565
+ }, "strict", z.ZodTypeAny, {
4566
+ spans: {
4567
+ start: number;
4568
+ end: number;
4569
+ bold?: boolean | undefined;
4570
+ italic?: boolean | undefined;
4571
+ href?: string | undefined;
4572
+ }[];
4573
+ ordered?: boolean | undefined;
4574
+ heading?: boolean | undefined;
4575
+ }, {
4576
+ ordered?: boolean | undefined;
4577
+ heading?: boolean | undefined;
4578
+ spans?: {
4579
+ start: number;
4580
+ end: number;
4581
+ bold?: boolean | undefined;
4582
+ italic?: boolean | undefined;
4583
+ href?: string | undefined;
4584
+ }[] | undefined;
4585
+ }>>>;
4434
4586
  presentation: z.ZodOptional<z.ZodNullable<z.ZodLiteral<"tip">>>;
4435
4587
  }, "strip", z.ZodTypeAny, {
4436
4588
  type: "paragraph" | "bullet";
4437
4589
  id: string;
4438
4590
  text: string;
4439
4591
  presentation?: "tip" | null | undefined;
4592
+ format?: {
4593
+ spans: {
4594
+ start: number;
4595
+ end: number;
4596
+ bold?: boolean | undefined;
4597
+ italic?: boolean | undefined;
4598
+ href?: string | undefined;
4599
+ }[];
4600
+ ordered?: boolean | undefined;
4601
+ heading?: boolean | undefined;
4602
+ } | null | undefined;
4440
4603
  }, {
4441
4604
  type: "paragraph" | "bullet";
4442
4605
  id: string;
4443
4606
  text: string;
4444
4607
  presentation?: "tip" | null | undefined;
4608
+ format?: {
4609
+ ordered?: boolean | undefined;
4610
+ heading?: boolean | undefined;
4611
+ spans?: {
4612
+ start: number;
4613
+ end: number;
4614
+ bold?: boolean | undefined;
4615
+ italic?: boolean | undefined;
4616
+ href?: string | undefined;
4617
+ }[] | undefined;
4618
+ } | null | undefined;
4445
4619
  }>, z.ZodObject<{
4446
4620
  id: z.ZodString;
4447
4621
  type: z.ZodLiteral<"image">;
@@ -4474,6 +4648,17 @@ export declare const richTextBlockSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
4474
4648
  id: string;
4475
4649
  text: string;
4476
4650
  presentation?: "tip" | null | undefined;
4651
+ format?: {
4652
+ spans: {
4653
+ start: number;
4654
+ end: number;
4655
+ bold?: boolean | undefined;
4656
+ italic?: boolean | undefined;
4657
+ href?: string | undefined;
4658
+ }[];
4659
+ ordered?: boolean | undefined;
4660
+ heading?: boolean | undefined;
4661
+ } | null | undefined;
4477
4662
  } | {
4478
4663
  type: "image";
4479
4664
  id: string;
@@ -4488,6 +4673,17 @@ export declare const richTextBlockSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
4488
4673
  id: string;
4489
4674
  text: string;
4490
4675
  presentation?: "tip" | null | undefined;
4676
+ format?: {
4677
+ ordered?: boolean | undefined;
4678
+ heading?: boolean | undefined;
4679
+ spans?: {
4680
+ start: number;
4681
+ end: number;
4682
+ bold?: boolean | undefined;
4683
+ italic?: boolean | undefined;
4684
+ href?: string | undefined;
4685
+ }[] | undefined;
4686
+ } | null | undefined;
4491
4687
  } | {
4492
4688
  type: "image";
4493
4689
  id: string;
@@ -4507,17 +4703,82 @@ export declare const sleepPlanSectionSchema: z.ZodObject<{
4507
4703
  id: z.ZodString;
4508
4704
  type: z.ZodEnum<["paragraph", "bullet"]>;
4509
4705
  text: z.ZodString;
4706
+ format: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4707
+ heading: z.ZodOptional<z.ZodBoolean>;
4708
+ ordered: z.ZodOptional<z.ZodBoolean>;
4709
+ spans: z.ZodDefault<z.ZodArray<z.ZodObject<{
4710
+ start: z.ZodNumber;
4711
+ end: z.ZodNumber;
4712
+ bold: z.ZodOptional<z.ZodBoolean>;
4713
+ italic: z.ZodOptional<z.ZodBoolean>;
4714
+ href: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
4715
+ }, "strict", z.ZodTypeAny, {
4716
+ start: number;
4717
+ end: number;
4718
+ bold?: boolean | undefined;
4719
+ italic?: boolean | undefined;
4720
+ href?: string | undefined;
4721
+ }, {
4722
+ start: number;
4723
+ end: number;
4724
+ bold?: boolean | undefined;
4725
+ italic?: boolean | undefined;
4726
+ href?: string | undefined;
4727
+ }>, "many">>;
4728
+ }, "strict", z.ZodTypeAny, {
4729
+ spans: {
4730
+ start: number;
4731
+ end: number;
4732
+ bold?: boolean | undefined;
4733
+ italic?: boolean | undefined;
4734
+ href?: string | undefined;
4735
+ }[];
4736
+ ordered?: boolean | undefined;
4737
+ heading?: boolean | undefined;
4738
+ }, {
4739
+ ordered?: boolean | undefined;
4740
+ heading?: boolean | undefined;
4741
+ spans?: {
4742
+ start: number;
4743
+ end: number;
4744
+ bold?: boolean | undefined;
4745
+ italic?: boolean | undefined;
4746
+ href?: string | undefined;
4747
+ }[] | undefined;
4748
+ }>>>;
4510
4749
  presentation: z.ZodOptional<z.ZodNullable<z.ZodLiteral<"tip">>>;
4511
4750
  }, "strip", z.ZodTypeAny, {
4512
4751
  type: "paragraph" | "bullet";
4513
4752
  id: string;
4514
4753
  text: string;
4515
4754
  presentation?: "tip" | null | undefined;
4755
+ format?: {
4756
+ spans: {
4757
+ start: number;
4758
+ end: number;
4759
+ bold?: boolean | undefined;
4760
+ italic?: boolean | undefined;
4761
+ href?: string | undefined;
4762
+ }[];
4763
+ ordered?: boolean | undefined;
4764
+ heading?: boolean | undefined;
4765
+ } | null | undefined;
4516
4766
  }, {
4517
4767
  type: "paragraph" | "bullet";
4518
4768
  id: string;
4519
4769
  text: string;
4520
4770
  presentation?: "tip" | null | undefined;
4771
+ format?: {
4772
+ ordered?: boolean | undefined;
4773
+ heading?: boolean | undefined;
4774
+ spans?: {
4775
+ start: number;
4776
+ end: number;
4777
+ bold?: boolean | undefined;
4778
+ italic?: boolean | undefined;
4779
+ href?: string | undefined;
4780
+ }[] | undefined;
4781
+ } | null | undefined;
4521
4782
  }>, z.ZodObject<{
4522
4783
  id: z.ZodString;
4523
4784
  type: z.ZodLiteral<"image">;
@@ -4550,6 +4811,17 @@ export declare const sleepPlanSectionSchema: z.ZodObject<{
4550
4811
  id: string;
4551
4812
  text: string;
4552
4813
  presentation?: "tip" | null | undefined;
4814
+ format?: {
4815
+ spans: {
4816
+ start: number;
4817
+ end: number;
4818
+ bold?: boolean | undefined;
4819
+ italic?: boolean | undefined;
4820
+ href?: string | undefined;
4821
+ }[];
4822
+ ordered?: boolean | undefined;
4823
+ heading?: boolean | undefined;
4824
+ } | null | undefined;
4553
4825
  } | {
4554
4826
  type: "image";
4555
4827
  id: string;
@@ -4564,6 +4836,17 @@ export declare const sleepPlanSectionSchema: z.ZodObject<{
4564
4836
  id: string;
4565
4837
  text: string;
4566
4838
  presentation?: "tip" | null | undefined;
4839
+ format?: {
4840
+ ordered?: boolean | undefined;
4841
+ heading?: boolean | undefined;
4842
+ spans?: {
4843
+ start: number;
4844
+ end: number;
4845
+ bold?: boolean | undefined;
4846
+ italic?: boolean | undefined;
4847
+ href?: string | undefined;
4848
+ }[] | undefined;
4849
+ } | null | undefined;
4567
4850
  } | {
4568
4851
  type: "image";
4569
4852
  id: string;
@@ -4582,6 +4865,17 @@ export declare const sleepPlanSectionSchema: z.ZodObject<{
4582
4865
  id: string;
4583
4866
  text: string;
4584
4867
  presentation?: "tip" | null | undefined;
4868
+ format?: {
4869
+ spans: {
4870
+ start: number;
4871
+ end: number;
4872
+ bold?: boolean | undefined;
4873
+ italic?: boolean | undefined;
4874
+ href?: string | undefined;
4875
+ }[];
4876
+ ordered?: boolean | undefined;
4877
+ heading?: boolean | undefined;
4878
+ } | null | undefined;
4585
4879
  } | {
4586
4880
  type: "image";
4587
4881
  id: string;
@@ -4602,6 +4896,17 @@ export declare const sleepPlanSectionSchema: z.ZodObject<{
4602
4896
  id: string;
4603
4897
  text: string;
4604
4898
  presentation?: "tip" | null | undefined;
4899
+ format?: {
4900
+ ordered?: boolean | undefined;
4901
+ heading?: boolean | undefined;
4902
+ spans?: {
4903
+ start: number;
4904
+ end: number;
4905
+ bold?: boolean | undefined;
4906
+ italic?: boolean | undefined;
4907
+ href?: string | undefined;
4908
+ }[] | undefined;
4909
+ } | null | undefined;
4605
4910
  } | {
4606
4911
  type: "image";
4607
4912
  id: string;
@@ -4801,17 +5106,82 @@ export declare const familySleepPlanSchema: z.ZodObject<{
4801
5106
  id: z.ZodString;
4802
5107
  type: z.ZodEnum<["paragraph", "bullet"]>;
4803
5108
  text: z.ZodString;
5109
+ format: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5110
+ heading: z.ZodOptional<z.ZodBoolean>;
5111
+ ordered: z.ZodOptional<z.ZodBoolean>;
5112
+ spans: z.ZodDefault<z.ZodArray<z.ZodObject<{
5113
+ start: z.ZodNumber;
5114
+ end: z.ZodNumber;
5115
+ bold: z.ZodOptional<z.ZodBoolean>;
5116
+ italic: z.ZodOptional<z.ZodBoolean>;
5117
+ href: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
5118
+ }, "strict", z.ZodTypeAny, {
5119
+ start: number;
5120
+ end: number;
5121
+ bold?: boolean | undefined;
5122
+ italic?: boolean | undefined;
5123
+ href?: string | undefined;
5124
+ }, {
5125
+ start: number;
5126
+ end: number;
5127
+ bold?: boolean | undefined;
5128
+ italic?: boolean | undefined;
5129
+ href?: string | undefined;
5130
+ }>, "many">>;
5131
+ }, "strict", z.ZodTypeAny, {
5132
+ spans: {
5133
+ start: number;
5134
+ end: number;
5135
+ bold?: boolean | undefined;
5136
+ italic?: boolean | undefined;
5137
+ href?: string | undefined;
5138
+ }[];
5139
+ ordered?: boolean | undefined;
5140
+ heading?: boolean | undefined;
5141
+ }, {
5142
+ ordered?: boolean | undefined;
5143
+ heading?: boolean | undefined;
5144
+ spans?: {
5145
+ start: number;
5146
+ end: number;
5147
+ bold?: boolean | undefined;
5148
+ italic?: boolean | undefined;
5149
+ href?: string | undefined;
5150
+ }[] | undefined;
5151
+ }>>>;
4804
5152
  presentation: z.ZodOptional<z.ZodNullable<z.ZodLiteral<"tip">>>;
4805
5153
  }, "strip", z.ZodTypeAny, {
4806
5154
  type: "paragraph" | "bullet";
4807
5155
  id: string;
4808
5156
  text: string;
4809
5157
  presentation?: "tip" | null | undefined;
5158
+ format?: {
5159
+ spans: {
5160
+ start: number;
5161
+ end: number;
5162
+ bold?: boolean | undefined;
5163
+ italic?: boolean | undefined;
5164
+ href?: string | undefined;
5165
+ }[];
5166
+ ordered?: boolean | undefined;
5167
+ heading?: boolean | undefined;
5168
+ } | null | undefined;
4810
5169
  }, {
4811
5170
  type: "paragraph" | "bullet";
4812
5171
  id: string;
4813
5172
  text: string;
4814
5173
  presentation?: "tip" | null | undefined;
5174
+ format?: {
5175
+ ordered?: boolean | undefined;
5176
+ heading?: boolean | undefined;
5177
+ spans?: {
5178
+ start: number;
5179
+ end: number;
5180
+ bold?: boolean | undefined;
5181
+ italic?: boolean | undefined;
5182
+ href?: string | undefined;
5183
+ }[] | undefined;
5184
+ } | null | undefined;
4815
5185
  }>, z.ZodObject<{
4816
5186
  id: z.ZodString;
4817
5187
  type: z.ZodLiteral<"image">;
@@ -4844,6 +5214,17 @@ export declare const familySleepPlanSchema: z.ZodObject<{
4844
5214
  id: string;
4845
5215
  text: string;
4846
5216
  presentation?: "tip" | null | undefined;
5217
+ format?: {
5218
+ spans: {
5219
+ start: number;
5220
+ end: number;
5221
+ bold?: boolean | undefined;
5222
+ italic?: boolean | undefined;
5223
+ href?: string | undefined;
5224
+ }[];
5225
+ ordered?: boolean | undefined;
5226
+ heading?: boolean | undefined;
5227
+ } | null | undefined;
4847
5228
  } | {
4848
5229
  type: "image";
4849
5230
  id: string;
@@ -4858,6 +5239,17 @@ export declare const familySleepPlanSchema: z.ZodObject<{
4858
5239
  id: string;
4859
5240
  text: string;
4860
5241
  presentation?: "tip" | null | undefined;
5242
+ format?: {
5243
+ ordered?: boolean | undefined;
5244
+ heading?: boolean | undefined;
5245
+ spans?: {
5246
+ start: number;
5247
+ end: number;
5248
+ bold?: boolean | undefined;
5249
+ italic?: boolean | undefined;
5250
+ href?: string | undefined;
5251
+ }[] | undefined;
5252
+ } | null | undefined;
4861
5253
  } | {
4862
5254
  type: "image";
4863
5255
  id: string;
@@ -4876,6 +5268,17 @@ export declare const familySleepPlanSchema: z.ZodObject<{
4876
5268
  id: string;
4877
5269
  text: string;
4878
5270
  presentation?: "tip" | null | undefined;
5271
+ format?: {
5272
+ spans: {
5273
+ start: number;
5274
+ end: number;
5275
+ bold?: boolean | undefined;
5276
+ italic?: boolean | undefined;
5277
+ href?: string | undefined;
5278
+ }[];
5279
+ ordered?: boolean | undefined;
5280
+ heading?: boolean | undefined;
5281
+ } | null | undefined;
4879
5282
  } | {
4880
5283
  type: "image";
4881
5284
  id: string;
@@ -4896,6 +5299,17 @@ export declare const familySleepPlanSchema: z.ZodObject<{
4896
5299
  id: string;
4897
5300
  text: string;
4898
5301
  presentation?: "tip" | null | undefined;
5302
+ format?: {
5303
+ ordered?: boolean | undefined;
5304
+ heading?: boolean | undefined;
5305
+ spans?: {
5306
+ start: number;
5307
+ end: number;
5308
+ bold?: boolean | undefined;
5309
+ italic?: boolean | undefined;
5310
+ href?: string | undefined;
5311
+ }[] | undefined;
5312
+ } | null | undefined;
4899
5313
  } | {
4900
5314
  type: "image";
4901
5315
  id: string;
@@ -4917,6 +5331,7 @@ export declare const familySleepPlanSchema: z.ZodObject<{
4917
5331
  archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4918
5332
  createdAt: z.ZodString;
4919
5333
  updatedAt: z.ZodString;
5334
+ persisted: z.ZodOptional<z.ZodBoolean>;
4920
5335
  }, "strip", z.ZodTypeAny, {
4921
5336
  status: "archived" | "draft" | "published";
4922
5337
  id: string;
@@ -4935,6 +5350,17 @@ export declare const familySleepPlanSchema: z.ZodObject<{
4935
5350
  id: string;
4936
5351
  text: string;
4937
5352
  presentation?: "tip" | null | undefined;
5353
+ format?: {
5354
+ spans: {
5355
+ start: number;
5356
+ end: number;
5357
+ bold?: boolean | undefined;
5358
+ italic?: boolean | undefined;
5359
+ href?: string | undefined;
5360
+ }[];
5361
+ ordered?: boolean | undefined;
5362
+ heading?: boolean | undefined;
5363
+ } | null | undefined;
4938
5364
  } | {
4939
5365
  type: "image";
4940
5366
  id: string;
@@ -4992,6 +5418,7 @@ export declare const familySleepPlanSchema: z.ZodObject<{
4992
5418
  pdfContentType?: string | null | undefined;
4993
5419
  pdfUploadedAt?: string | null | undefined;
4994
5420
  publishedAt?: string | null | undefined;
5421
+ persisted?: boolean | undefined;
4995
5422
  }, {
4996
5423
  status: "archived" | "draft" | "published";
4997
5424
  id: string;
@@ -5010,6 +5437,17 @@ export declare const familySleepPlanSchema: z.ZodObject<{
5010
5437
  id: string;
5011
5438
  text: string;
5012
5439
  presentation?: "tip" | null | undefined;
5440
+ format?: {
5441
+ ordered?: boolean | undefined;
5442
+ heading?: boolean | undefined;
5443
+ spans?: {
5444
+ start: number;
5445
+ end: number;
5446
+ bold?: boolean | undefined;
5447
+ italic?: boolean | undefined;
5448
+ href?: string | undefined;
5449
+ }[] | undefined;
5450
+ } | null | undefined;
5013
5451
  } | {
5014
5452
  type: "image";
5015
5453
  id: string;
@@ -5067,6 +5505,7 @@ export declare const familySleepPlanSchema: z.ZodObject<{
5067
5505
  pdfContentType?: string | null | undefined;
5068
5506
  pdfUploadedAt?: string | null | undefined;
5069
5507
  publishedAt?: string | null | undefined;
5508
+ persisted?: boolean | undefined;
5070
5509
  }>;
5071
5510
  export type FamilySleepPlan = z.infer<typeof familySleepPlanSchema>;
5072
5511
  export declare const familySleepPlanWriteRequestSchema: z.ZodObject<{
@@ -5081,17 +5520,82 @@ export declare const familySleepPlanWriteRequestSchema: z.ZodObject<{
5081
5520
  id: z.ZodString;
5082
5521
  type: z.ZodEnum<["paragraph", "bullet"]>;
5083
5522
  text: z.ZodString;
5523
+ format: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5524
+ heading: z.ZodOptional<z.ZodBoolean>;
5525
+ ordered: z.ZodOptional<z.ZodBoolean>;
5526
+ spans: z.ZodDefault<z.ZodArray<z.ZodObject<{
5527
+ start: z.ZodNumber;
5528
+ end: z.ZodNumber;
5529
+ bold: z.ZodOptional<z.ZodBoolean>;
5530
+ italic: z.ZodOptional<z.ZodBoolean>;
5531
+ href: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
5532
+ }, "strict", z.ZodTypeAny, {
5533
+ start: number;
5534
+ end: number;
5535
+ bold?: boolean | undefined;
5536
+ italic?: boolean | undefined;
5537
+ href?: string | undefined;
5538
+ }, {
5539
+ start: number;
5540
+ end: number;
5541
+ bold?: boolean | undefined;
5542
+ italic?: boolean | undefined;
5543
+ href?: string | undefined;
5544
+ }>, "many">>;
5545
+ }, "strict", z.ZodTypeAny, {
5546
+ spans: {
5547
+ start: number;
5548
+ end: number;
5549
+ bold?: boolean | undefined;
5550
+ italic?: boolean | undefined;
5551
+ href?: string | undefined;
5552
+ }[];
5553
+ ordered?: boolean | undefined;
5554
+ heading?: boolean | undefined;
5555
+ }, {
5556
+ ordered?: boolean | undefined;
5557
+ heading?: boolean | undefined;
5558
+ spans?: {
5559
+ start: number;
5560
+ end: number;
5561
+ bold?: boolean | undefined;
5562
+ italic?: boolean | undefined;
5563
+ href?: string | undefined;
5564
+ }[] | undefined;
5565
+ }>>>;
5084
5566
  presentation: z.ZodOptional<z.ZodNullable<z.ZodLiteral<"tip">>>;
5085
5567
  }, "strip", z.ZodTypeAny, {
5086
5568
  type: "paragraph" | "bullet";
5087
5569
  id: string;
5088
5570
  text: string;
5089
5571
  presentation?: "tip" | null | undefined;
5572
+ format?: {
5573
+ spans: {
5574
+ start: number;
5575
+ end: number;
5576
+ bold?: boolean | undefined;
5577
+ italic?: boolean | undefined;
5578
+ href?: string | undefined;
5579
+ }[];
5580
+ ordered?: boolean | undefined;
5581
+ heading?: boolean | undefined;
5582
+ } | null | undefined;
5090
5583
  }, {
5091
5584
  type: "paragraph" | "bullet";
5092
5585
  id: string;
5093
5586
  text: string;
5094
5587
  presentation?: "tip" | null | undefined;
5588
+ format?: {
5589
+ ordered?: boolean | undefined;
5590
+ heading?: boolean | undefined;
5591
+ spans?: {
5592
+ start: number;
5593
+ end: number;
5594
+ bold?: boolean | undefined;
5595
+ italic?: boolean | undefined;
5596
+ href?: string | undefined;
5597
+ }[] | undefined;
5598
+ } | null | undefined;
5095
5599
  }>, z.ZodObject<{
5096
5600
  id: z.ZodString;
5097
5601
  type: z.ZodLiteral<"image">;
@@ -5124,6 +5628,17 @@ export declare const familySleepPlanWriteRequestSchema: z.ZodObject<{
5124
5628
  id: string;
5125
5629
  text: string;
5126
5630
  presentation?: "tip" | null | undefined;
5631
+ format?: {
5632
+ spans: {
5633
+ start: number;
5634
+ end: number;
5635
+ bold?: boolean | undefined;
5636
+ italic?: boolean | undefined;
5637
+ href?: string | undefined;
5638
+ }[];
5639
+ ordered?: boolean | undefined;
5640
+ heading?: boolean | undefined;
5641
+ } | null | undefined;
5127
5642
  } | {
5128
5643
  type: "image";
5129
5644
  id: string;
@@ -5138,6 +5653,17 @@ export declare const familySleepPlanWriteRequestSchema: z.ZodObject<{
5138
5653
  id: string;
5139
5654
  text: string;
5140
5655
  presentation?: "tip" | null | undefined;
5656
+ format?: {
5657
+ ordered?: boolean | undefined;
5658
+ heading?: boolean | undefined;
5659
+ spans?: {
5660
+ start: number;
5661
+ end: number;
5662
+ bold?: boolean | undefined;
5663
+ italic?: boolean | undefined;
5664
+ href?: string | undefined;
5665
+ }[] | undefined;
5666
+ } | null | undefined;
5141
5667
  } | {
5142
5668
  type: "image";
5143
5669
  id: string;
@@ -5156,6 +5682,17 @@ export declare const familySleepPlanWriteRequestSchema: z.ZodObject<{
5156
5682
  id: string;
5157
5683
  text: string;
5158
5684
  presentation?: "tip" | null | undefined;
5685
+ format?: {
5686
+ spans: {
5687
+ start: number;
5688
+ end: number;
5689
+ bold?: boolean | undefined;
5690
+ italic?: boolean | undefined;
5691
+ href?: string | undefined;
5692
+ }[];
5693
+ ordered?: boolean | undefined;
5694
+ heading?: boolean | undefined;
5695
+ } | null | undefined;
5159
5696
  } | {
5160
5697
  type: "image";
5161
5698
  id: string;
@@ -5176,6 +5713,17 @@ export declare const familySleepPlanWriteRequestSchema: z.ZodObject<{
5176
5713
  id: string;
5177
5714
  text: string;
5178
5715
  presentation?: "tip" | null | undefined;
5716
+ format?: {
5717
+ ordered?: boolean | undefined;
5718
+ heading?: boolean | undefined;
5719
+ spans?: {
5720
+ start: number;
5721
+ end: number;
5722
+ bold?: boolean | undefined;
5723
+ italic?: boolean | undefined;
5724
+ href?: string | undefined;
5725
+ }[] | undefined;
5726
+ } | null | undefined;
5179
5727
  } | {
5180
5728
  type: "image";
5181
5729
  id: string;
@@ -5191,6 +5739,8 @@ export declare const familySleepPlanWriteRequestSchema: z.ZodObject<{
5191
5739
  pdfFileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5192
5740
  pdfContentType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5193
5741
  pdfUploadedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5742
+ retainPublishedVersion: z.ZodOptional<z.ZodBoolean>;
5743
+ expectedUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5194
5744
  status: z.ZodDefault<z.ZodEnum<["draft", "published"]>>;
5195
5745
  }, "strip", z.ZodTypeAny, {
5196
5746
  status: "draft" | "published";
@@ -5203,6 +5753,17 @@ export declare const familySleepPlanWriteRequestSchema: z.ZodObject<{
5203
5753
  id: string;
5204
5754
  text: string;
5205
5755
  presentation?: "tip" | null | undefined;
5756
+ format?: {
5757
+ spans: {
5758
+ start: number;
5759
+ end: number;
5760
+ bold?: boolean | undefined;
5761
+ italic?: boolean | undefined;
5762
+ href?: string | undefined;
5763
+ }[];
5764
+ ordered?: boolean | undefined;
5765
+ heading?: boolean | undefined;
5766
+ } | null | undefined;
5206
5767
  } | {
5207
5768
  type: "image";
5208
5769
  id: string;
@@ -5217,10 +5778,12 @@ export declare const familySleepPlanWriteRequestSchema: z.ZodObject<{
5217
5778
  }[];
5218
5779
  babyId?: string | null | undefined;
5219
5780
  babyName?: string | null | undefined;
5781
+ expectedUpdatedAt?: string | null | undefined;
5220
5782
  pdfAssetId?: string | null | undefined;
5221
5783
  pdfFileName?: string | null | undefined;
5222
5784
  pdfContentType?: string | null | undefined;
5223
5785
  pdfUploadedAt?: string | null | undefined;
5786
+ retainPublishedVersion?: boolean | undefined;
5224
5787
  }, {
5225
5788
  title: string;
5226
5789
  sections: {
@@ -5232,6 +5795,17 @@ export declare const familySleepPlanWriteRequestSchema: z.ZodObject<{
5232
5795
  id: string;
5233
5796
  text: string;
5234
5797
  presentation?: "tip" | null | undefined;
5798
+ format?: {
5799
+ ordered?: boolean | undefined;
5800
+ heading?: boolean | undefined;
5801
+ spans?: {
5802
+ start: number;
5803
+ end: number;
5804
+ bold?: boolean | undefined;
5805
+ italic?: boolean | undefined;
5806
+ href?: string | undefined;
5807
+ }[] | undefined;
5808
+ } | null | undefined;
5235
5809
  } | {
5236
5810
  type: "image";
5237
5811
  id: string;
@@ -5246,18 +5820,30 @@ export declare const familySleepPlanWriteRequestSchema: z.ZodObject<{
5246
5820
  status?: "draft" | "published" | undefined;
5247
5821
  babyId?: string | null | undefined;
5248
5822
  babyName?: string | null | undefined;
5823
+ expectedUpdatedAt?: string | null | undefined;
5249
5824
  pdfAssetId?: string | null | undefined;
5250
5825
  pdfFileName?: string | null | undefined;
5251
5826
  pdfContentType?: string | null | undefined;
5252
5827
  pdfUploadedAt?: string | null | undefined;
5828
+ retainPublishedVersion?: boolean | undefined;
5253
5829
  }>;
5254
5830
  export type FamilySleepPlanWriteRequest = z.infer<typeof familySleepPlanWriteRequestSchema>;
5255
5831
  export declare const coachFamilySleepPlanQuerySchema: z.ZodObject<{
5256
5832
  babyId: z.ZodOptional<z.ZodString>;
5833
+ createDraft: z.ZodOptional<z.ZodEnum<["true", "false"]>>;
5257
5834
  }, "strip", z.ZodTypeAny, {
5258
5835
  babyId?: string | undefined;
5836
+ createDraft?: "true" | "false" | undefined;
5259
5837
  }, {
5260
5838
  babyId?: string | undefined;
5839
+ createDraft?: "true" | "false" | undefined;
5840
+ }>;
5841
+ export declare const coachFamilySleepPlansQuerySchema: z.ZodObject<{
5842
+ includeDrafts: z.ZodOptional<z.ZodEnum<["true", "false"]>>;
5843
+ }, "strip", z.ZodTypeAny, {
5844
+ includeDrafts?: "true" | "false" | undefined;
5845
+ }, {
5846
+ includeDrafts?: "true" | "false" | undefined;
5261
5847
  }>;
5262
5848
  export declare const familySleepPlanResponseSchema: z.ZodObject<{
5263
5849
  sleepPlan: z.ZodObject<{
@@ -5443,17 +6029,82 @@ export declare const familySleepPlanResponseSchema: z.ZodObject<{
5443
6029
  id: z.ZodString;
5444
6030
  type: z.ZodEnum<["paragraph", "bullet"]>;
5445
6031
  text: z.ZodString;
6032
+ format: z.ZodOptional<z.ZodNullable<z.ZodObject<{
6033
+ heading: z.ZodOptional<z.ZodBoolean>;
6034
+ ordered: z.ZodOptional<z.ZodBoolean>;
6035
+ spans: z.ZodDefault<z.ZodArray<z.ZodObject<{
6036
+ start: z.ZodNumber;
6037
+ end: z.ZodNumber;
6038
+ bold: z.ZodOptional<z.ZodBoolean>;
6039
+ italic: z.ZodOptional<z.ZodBoolean>;
6040
+ href: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
6041
+ }, "strict", z.ZodTypeAny, {
6042
+ start: number;
6043
+ end: number;
6044
+ bold?: boolean | undefined;
6045
+ italic?: boolean | undefined;
6046
+ href?: string | undefined;
6047
+ }, {
6048
+ start: number;
6049
+ end: number;
6050
+ bold?: boolean | undefined;
6051
+ italic?: boolean | undefined;
6052
+ href?: string | undefined;
6053
+ }>, "many">>;
6054
+ }, "strict", z.ZodTypeAny, {
6055
+ spans: {
6056
+ start: number;
6057
+ end: number;
6058
+ bold?: boolean | undefined;
6059
+ italic?: boolean | undefined;
6060
+ href?: string | undefined;
6061
+ }[];
6062
+ ordered?: boolean | undefined;
6063
+ heading?: boolean | undefined;
6064
+ }, {
6065
+ ordered?: boolean | undefined;
6066
+ heading?: boolean | undefined;
6067
+ spans?: {
6068
+ start: number;
6069
+ end: number;
6070
+ bold?: boolean | undefined;
6071
+ italic?: boolean | undefined;
6072
+ href?: string | undefined;
6073
+ }[] | undefined;
6074
+ }>>>;
5446
6075
  presentation: z.ZodOptional<z.ZodNullable<z.ZodLiteral<"tip">>>;
5447
6076
  }, "strip", z.ZodTypeAny, {
5448
6077
  type: "paragraph" | "bullet";
5449
6078
  id: string;
5450
6079
  text: string;
5451
6080
  presentation?: "tip" | null | undefined;
6081
+ format?: {
6082
+ spans: {
6083
+ start: number;
6084
+ end: number;
6085
+ bold?: boolean | undefined;
6086
+ italic?: boolean | undefined;
6087
+ href?: string | undefined;
6088
+ }[];
6089
+ ordered?: boolean | undefined;
6090
+ heading?: boolean | undefined;
6091
+ } | null | undefined;
5452
6092
  }, {
5453
6093
  type: "paragraph" | "bullet";
5454
6094
  id: string;
5455
6095
  text: string;
5456
6096
  presentation?: "tip" | null | undefined;
6097
+ format?: {
6098
+ ordered?: boolean | undefined;
6099
+ heading?: boolean | undefined;
6100
+ spans?: {
6101
+ start: number;
6102
+ end: number;
6103
+ bold?: boolean | undefined;
6104
+ italic?: boolean | undefined;
6105
+ href?: string | undefined;
6106
+ }[] | undefined;
6107
+ } | null | undefined;
5457
6108
  }>, z.ZodObject<{
5458
6109
  id: z.ZodString;
5459
6110
  type: z.ZodLiteral<"image">;
@@ -5486,6 +6137,17 @@ export declare const familySleepPlanResponseSchema: z.ZodObject<{
5486
6137
  id: string;
5487
6138
  text: string;
5488
6139
  presentation?: "tip" | null | undefined;
6140
+ format?: {
6141
+ spans: {
6142
+ start: number;
6143
+ end: number;
6144
+ bold?: boolean | undefined;
6145
+ italic?: boolean | undefined;
6146
+ href?: string | undefined;
6147
+ }[];
6148
+ ordered?: boolean | undefined;
6149
+ heading?: boolean | undefined;
6150
+ } | null | undefined;
5489
6151
  } | {
5490
6152
  type: "image";
5491
6153
  id: string;
@@ -5500,6 +6162,17 @@ export declare const familySleepPlanResponseSchema: z.ZodObject<{
5500
6162
  id: string;
5501
6163
  text: string;
5502
6164
  presentation?: "tip" | null | undefined;
6165
+ format?: {
6166
+ ordered?: boolean | undefined;
6167
+ heading?: boolean | undefined;
6168
+ spans?: {
6169
+ start: number;
6170
+ end: number;
6171
+ bold?: boolean | undefined;
6172
+ italic?: boolean | undefined;
6173
+ href?: string | undefined;
6174
+ }[] | undefined;
6175
+ } | null | undefined;
5503
6176
  } | {
5504
6177
  type: "image";
5505
6178
  id: string;
@@ -5518,6 +6191,17 @@ export declare const familySleepPlanResponseSchema: z.ZodObject<{
5518
6191
  id: string;
5519
6192
  text: string;
5520
6193
  presentation?: "tip" | null | undefined;
6194
+ format?: {
6195
+ spans: {
6196
+ start: number;
6197
+ end: number;
6198
+ bold?: boolean | undefined;
6199
+ italic?: boolean | undefined;
6200
+ href?: string | undefined;
6201
+ }[];
6202
+ ordered?: boolean | undefined;
6203
+ heading?: boolean | undefined;
6204
+ } | null | undefined;
5521
6205
  } | {
5522
6206
  type: "image";
5523
6207
  id: string;
@@ -5538,6 +6222,17 @@ export declare const familySleepPlanResponseSchema: z.ZodObject<{
5538
6222
  id: string;
5539
6223
  text: string;
5540
6224
  presentation?: "tip" | null | undefined;
6225
+ format?: {
6226
+ ordered?: boolean | undefined;
6227
+ heading?: boolean | undefined;
6228
+ spans?: {
6229
+ start: number;
6230
+ end: number;
6231
+ bold?: boolean | undefined;
6232
+ italic?: boolean | undefined;
6233
+ href?: string | undefined;
6234
+ }[] | undefined;
6235
+ } | null | undefined;
5541
6236
  } | {
5542
6237
  type: "image";
5543
6238
  id: string;
@@ -5559,6 +6254,7 @@ export declare const familySleepPlanResponseSchema: z.ZodObject<{
5559
6254
  archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5560
6255
  createdAt: z.ZodString;
5561
6256
  updatedAt: z.ZodString;
6257
+ persisted: z.ZodOptional<z.ZodBoolean>;
5562
6258
  }, "strip", z.ZodTypeAny, {
5563
6259
  status: "archived" | "draft" | "published";
5564
6260
  id: string;
@@ -5577,6 +6273,17 @@ export declare const familySleepPlanResponseSchema: z.ZodObject<{
5577
6273
  id: string;
5578
6274
  text: string;
5579
6275
  presentation?: "tip" | null | undefined;
6276
+ format?: {
6277
+ spans: {
6278
+ start: number;
6279
+ end: number;
6280
+ bold?: boolean | undefined;
6281
+ italic?: boolean | undefined;
6282
+ href?: string | undefined;
6283
+ }[];
6284
+ ordered?: boolean | undefined;
6285
+ heading?: boolean | undefined;
6286
+ } | null | undefined;
5580
6287
  } | {
5581
6288
  type: "image";
5582
6289
  id: string;
@@ -5634,6 +6341,7 @@ export declare const familySleepPlanResponseSchema: z.ZodObject<{
5634
6341
  pdfContentType?: string | null | undefined;
5635
6342
  pdfUploadedAt?: string | null | undefined;
5636
6343
  publishedAt?: string | null | undefined;
6344
+ persisted?: boolean | undefined;
5637
6345
  }, {
5638
6346
  status: "archived" | "draft" | "published";
5639
6347
  id: string;
@@ -5652,6 +6360,17 @@ export declare const familySleepPlanResponseSchema: z.ZodObject<{
5652
6360
  id: string;
5653
6361
  text: string;
5654
6362
  presentation?: "tip" | null | undefined;
6363
+ format?: {
6364
+ ordered?: boolean | undefined;
6365
+ heading?: boolean | undefined;
6366
+ spans?: {
6367
+ start: number;
6368
+ end: number;
6369
+ bold?: boolean | undefined;
6370
+ italic?: boolean | undefined;
6371
+ href?: string | undefined;
6372
+ }[] | undefined;
6373
+ } | null | undefined;
5655
6374
  } | {
5656
6375
  type: "image";
5657
6376
  id: string;
@@ -5709,6 +6428,7 @@ export declare const familySleepPlanResponseSchema: z.ZodObject<{
5709
6428
  pdfContentType?: string | null | undefined;
5710
6429
  pdfUploadedAt?: string | null | undefined;
5711
6430
  publishedAt?: string | null | undefined;
6431
+ persisted?: boolean | undefined;
5712
6432
  }>;
5713
6433
  archivedSleepPlans: z.ZodDefault<z.ZodArray<z.ZodObject<{
5714
6434
  id: z.ZodString;
@@ -5893,17 +6613,82 @@ export declare const familySleepPlanResponseSchema: z.ZodObject<{
5893
6613
  id: z.ZodString;
5894
6614
  type: z.ZodEnum<["paragraph", "bullet"]>;
5895
6615
  text: z.ZodString;
6616
+ format: z.ZodOptional<z.ZodNullable<z.ZodObject<{
6617
+ heading: z.ZodOptional<z.ZodBoolean>;
6618
+ ordered: z.ZodOptional<z.ZodBoolean>;
6619
+ spans: z.ZodDefault<z.ZodArray<z.ZodObject<{
6620
+ start: z.ZodNumber;
6621
+ end: z.ZodNumber;
6622
+ bold: z.ZodOptional<z.ZodBoolean>;
6623
+ italic: z.ZodOptional<z.ZodBoolean>;
6624
+ href: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
6625
+ }, "strict", z.ZodTypeAny, {
6626
+ start: number;
6627
+ end: number;
6628
+ bold?: boolean | undefined;
6629
+ italic?: boolean | undefined;
6630
+ href?: string | undefined;
6631
+ }, {
6632
+ start: number;
6633
+ end: number;
6634
+ bold?: boolean | undefined;
6635
+ italic?: boolean | undefined;
6636
+ href?: string | undefined;
6637
+ }>, "many">>;
6638
+ }, "strict", z.ZodTypeAny, {
6639
+ spans: {
6640
+ start: number;
6641
+ end: number;
6642
+ bold?: boolean | undefined;
6643
+ italic?: boolean | undefined;
6644
+ href?: string | undefined;
6645
+ }[];
6646
+ ordered?: boolean | undefined;
6647
+ heading?: boolean | undefined;
6648
+ }, {
6649
+ ordered?: boolean | undefined;
6650
+ heading?: boolean | undefined;
6651
+ spans?: {
6652
+ start: number;
6653
+ end: number;
6654
+ bold?: boolean | undefined;
6655
+ italic?: boolean | undefined;
6656
+ href?: string | undefined;
6657
+ }[] | undefined;
6658
+ }>>>;
5896
6659
  presentation: z.ZodOptional<z.ZodNullable<z.ZodLiteral<"tip">>>;
5897
6660
  }, "strip", z.ZodTypeAny, {
5898
6661
  type: "paragraph" | "bullet";
5899
6662
  id: string;
5900
6663
  text: string;
5901
6664
  presentation?: "tip" | null | undefined;
6665
+ format?: {
6666
+ spans: {
6667
+ start: number;
6668
+ end: number;
6669
+ bold?: boolean | undefined;
6670
+ italic?: boolean | undefined;
6671
+ href?: string | undefined;
6672
+ }[];
6673
+ ordered?: boolean | undefined;
6674
+ heading?: boolean | undefined;
6675
+ } | null | undefined;
5902
6676
  }, {
5903
6677
  type: "paragraph" | "bullet";
5904
6678
  id: string;
5905
6679
  text: string;
5906
6680
  presentation?: "tip" | null | undefined;
6681
+ format?: {
6682
+ ordered?: boolean | undefined;
6683
+ heading?: boolean | undefined;
6684
+ spans?: {
6685
+ start: number;
6686
+ end: number;
6687
+ bold?: boolean | undefined;
6688
+ italic?: boolean | undefined;
6689
+ href?: string | undefined;
6690
+ }[] | undefined;
6691
+ } | null | undefined;
5907
6692
  }>, z.ZodObject<{
5908
6693
  id: z.ZodString;
5909
6694
  type: z.ZodLiteral<"image">;
@@ -5936,6 +6721,17 @@ export declare const familySleepPlanResponseSchema: z.ZodObject<{
5936
6721
  id: string;
5937
6722
  text: string;
5938
6723
  presentation?: "tip" | null | undefined;
6724
+ format?: {
6725
+ spans: {
6726
+ start: number;
6727
+ end: number;
6728
+ bold?: boolean | undefined;
6729
+ italic?: boolean | undefined;
6730
+ href?: string | undefined;
6731
+ }[];
6732
+ ordered?: boolean | undefined;
6733
+ heading?: boolean | undefined;
6734
+ } | null | undefined;
5939
6735
  } | {
5940
6736
  type: "image";
5941
6737
  id: string;
@@ -5950,6 +6746,17 @@ export declare const familySleepPlanResponseSchema: z.ZodObject<{
5950
6746
  id: string;
5951
6747
  text: string;
5952
6748
  presentation?: "tip" | null | undefined;
6749
+ format?: {
6750
+ ordered?: boolean | undefined;
6751
+ heading?: boolean | undefined;
6752
+ spans?: {
6753
+ start: number;
6754
+ end: number;
6755
+ bold?: boolean | undefined;
6756
+ italic?: boolean | undefined;
6757
+ href?: string | undefined;
6758
+ }[] | undefined;
6759
+ } | null | undefined;
5953
6760
  } | {
5954
6761
  type: "image";
5955
6762
  id: string;
@@ -5968,6 +6775,17 @@ export declare const familySleepPlanResponseSchema: z.ZodObject<{
5968
6775
  id: string;
5969
6776
  text: string;
5970
6777
  presentation?: "tip" | null | undefined;
6778
+ format?: {
6779
+ spans: {
6780
+ start: number;
6781
+ end: number;
6782
+ bold?: boolean | undefined;
6783
+ italic?: boolean | undefined;
6784
+ href?: string | undefined;
6785
+ }[];
6786
+ ordered?: boolean | undefined;
6787
+ heading?: boolean | undefined;
6788
+ } | null | undefined;
5971
6789
  } | {
5972
6790
  type: "image";
5973
6791
  id: string;
@@ -5988,6 +6806,17 @@ export declare const familySleepPlanResponseSchema: z.ZodObject<{
5988
6806
  id: string;
5989
6807
  text: string;
5990
6808
  presentation?: "tip" | null | undefined;
6809
+ format?: {
6810
+ ordered?: boolean | undefined;
6811
+ heading?: boolean | undefined;
6812
+ spans?: {
6813
+ start: number;
6814
+ end: number;
6815
+ bold?: boolean | undefined;
6816
+ italic?: boolean | undefined;
6817
+ href?: string | undefined;
6818
+ }[] | undefined;
6819
+ } | null | undefined;
5991
6820
  } | {
5992
6821
  type: "image";
5993
6822
  id: string;
@@ -6009,6 +6838,7 @@ export declare const familySleepPlanResponseSchema: z.ZodObject<{
6009
6838
  archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6010
6839
  createdAt: z.ZodString;
6011
6840
  updatedAt: z.ZodString;
6841
+ persisted: z.ZodOptional<z.ZodBoolean>;
6012
6842
  }, "strip", z.ZodTypeAny, {
6013
6843
  status: "archived" | "draft" | "published";
6014
6844
  id: string;
@@ -6027,6 +6857,17 @@ export declare const familySleepPlanResponseSchema: z.ZodObject<{
6027
6857
  id: string;
6028
6858
  text: string;
6029
6859
  presentation?: "tip" | null | undefined;
6860
+ format?: {
6861
+ spans: {
6862
+ start: number;
6863
+ end: number;
6864
+ bold?: boolean | undefined;
6865
+ italic?: boolean | undefined;
6866
+ href?: string | undefined;
6867
+ }[];
6868
+ ordered?: boolean | undefined;
6869
+ heading?: boolean | undefined;
6870
+ } | null | undefined;
6030
6871
  } | {
6031
6872
  type: "image";
6032
6873
  id: string;
@@ -6084,6 +6925,7 @@ export declare const familySleepPlanResponseSchema: z.ZodObject<{
6084
6925
  pdfContentType?: string | null | undefined;
6085
6926
  pdfUploadedAt?: string | null | undefined;
6086
6927
  publishedAt?: string | null | undefined;
6928
+ persisted?: boolean | undefined;
6087
6929
  }, {
6088
6930
  status: "archived" | "draft" | "published";
6089
6931
  id: string;
@@ -6102,6 +6944,17 @@ export declare const familySleepPlanResponseSchema: z.ZodObject<{
6102
6944
  id: string;
6103
6945
  text: string;
6104
6946
  presentation?: "tip" | null | undefined;
6947
+ format?: {
6948
+ ordered?: boolean | undefined;
6949
+ heading?: boolean | undefined;
6950
+ spans?: {
6951
+ start: number;
6952
+ end: number;
6953
+ bold?: boolean | undefined;
6954
+ italic?: boolean | undefined;
6955
+ href?: string | undefined;
6956
+ }[] | undefined;
6957
+ } | null | undefined;
6105
6958
  } | {
6106
6959
  type: "image";
6107
6960
  id: string;
@@ -6159,6 +7012,7 @@ export declare const familySleepPlanResponseSchema: z.ZodObject<{
6159
7012
  pdfContentType?: string | null | undefined;
6160
7013
  pdfUploadedAt?: string | null | undefined;
6161
7014
  publishedAt?: string | null | undefined;
7015
+ persisted?: boolean | undefined;
6162
7016
  }>, "many">>;
6163
7017
  }, "strip", z.ZodTypeAny, {
6164
7018
  sleepPlan: {
@@ -6179,6 +7033,17 @@ export declare const familySleepPlanResponseSchema: z.ZodObject<{
6179
7033
  id: string;
6180
7034
  text: string;
6181
7035
  presentation?: "tip" | null | undefined;
7036
+ format?: {
7037
+ spans: {
7038
+ start: number;
7039
+ end: number;
7040
+ bold?: boolean | undefined;
7041
+ italic?: boolean | undefined;
7042
+ href?: string | undefined;
7043
+ }[];
7044
+ ordered?: boolean | undefined;
7045
+ heading?: boolean | undefined;
7046
+ } | null | undefined;
6182
7047
  } | {
6183
7048
  type: "image";
6184
7049
  id: string;
@@ -6236,6 +7101,7 @@ export declare const familySleepPlanResponseSchema: z.ZodObject<{
6236
7101
  pdfContentType?: string | null | undefined;
6237
7102
  pdfUploadedAt?: string | null | undefined;
6238
7103
  publishedAt?: string | null | undefined;
7104
+ persisted?: boolean | undefined;
6239
7105
  };
6240
7106
  archivedSleepPlans: {
6241
7107
  status: "archived" | "draft" | "published";
@@ -6255,6 +7121,17 @@ export declare const familySleepPlanResponseSchema: z.ZodObject<{
6255
7121
  id: string;
6256
7122
  text: string;
6257
7123
  presentation?: "tip" | null | undefined;
7124
+ format?: {
7125
+ spans: {
7126
+ start: number;
7127
+ end: number;
7128
+ bold?: boolean | undefined;
7129
+ italic?: boolean | undefined;
7130
+ href?: string | undefined;
7131
+ }[];
7132
+ ordered?: boolean | undefined;
7133
+ heading?: boolean | undefined;
7134
+ } | null | undefined;
6258
7135
  } | {
6259
7136
  type: "image";
6260
7137
  id: string;
@@ -6312,6 +7189,7 @@ export declare const familySleepPlanResponseSchema: z.ZodObject<{
6312
7189
  pdfContentType?: string | null | undefined;
6313
7190
  pdfUploadedAt?: string | null | undefined;
6314
7191
  publishedAt?: string | null | undefined;
7192
+ persisted?: boolean | undefined;
6315
7193
  }[];
6316
7194
  }, {
6317
7195
  sleepPlan: {
@@ -6332,6 +7210,17 @@ export declare const familySleepPlanResponseSchema: z.ZodObject<{
6332
7210
  id: string;
6333
7211
  text: string;
6334
7212
  presentation?: "tip" | null | undefined;
7213
+ format?: {
7214
+ ordered?: boolean | undefined;
7215
+ heading?: boolean | undefined;
7216
+ spans?: {
7217
+ start: number;
7218
+ end: number;
7219
+ bold?: boolean | undefined;
7220
+ italic?: boolean | undefined;
7221
+ href?: string | undefined;
7222
+ }[] | undefined;
7223
+ } | null | undefined;
6335
7224
  } | {
6336
7225
  type: "image";
6337
7226
  id: string;
@@ -6389,6 +7278,7 @@ export declare const familySleepPlanResponseSchema: z.ZodObject<{
6389
7278
  pdfContentType?: string | null | undefined;
6390
7279
  pdfUploadedAt?: string | null | undefined;
6391
7280
  publishedAt?: string | null | undefined;
7281
+ persisted?: boolean | undefined;
6392
7282
  };
6393
7283
  archivedSleepPlans?: {
6394
7284
  status: "archived" | "draft" | "published";
@@ -6408,6 +7298,17 @@ export declare const familySleepPlanResponseSchema: z.ZodObject<{
6408
7298
  id: string;
6409
7299
  text: string;
6410
7300
  presentation?: "tip" | null | undefined;
7301
+ format?: {
7302
+ ordered?: boolean | undefined;
7303
+ heading?: boolean | undefined;
7304
+ spans?: {
7305
+ start: number;
7306
+ end: number;
7307
+ bold?: boolean | undefined;
7308
+ italic?: boolean | undefined;
7309
+ href?: string | undefined;
7310
+ }[] | undefined;
7311
+ } | null | undefined;
6411
7312
  } | {
6412
7313
  type: "image";
6413
7314
  id: string;
@@ -6465,6 +7366,7 @@ export declare const familySleepPlanResponseSchema: z.ZodObject<{
6465
7366
  pdfContentType?: string | null | undefined;
6466
7367
  pdfUploadedAt?: string | null | undefined;
6467
7368
  publishedAt?: string | null | undefined;
7369
+ persisted?: boolean | undefined;
6468
7370
  }[] | undefined;
6469
7371
  }>;
6470
7372
  export type FamilySleepPlanResponse = z.infer<typeof familySleepPlanResponseSchema>;
@@ -6652,17 +7554,82 @@ export declare const familySleepPlansResponseSchema: z.ZodObject<{
6652
7554
  id: z.ZodString;
6653
7555
  type: z.ZodEnum<["paragraph", "bullet"]>;
6654
7556
  text: z.ZodString;
7557
+ format: z.ZodOptional<z.ZodNullable<z.ZodObject<{
7558
+ heading: z.ZodOptional<z.ZodBoolean>;
7559
+ ordered: z.ZodOptional<z.ZodBoolean>;
7560
+ spans: z.ZodDefault<z.ZodArray<z.ZodObject<{
7561
+ start: z.ZodNumber;
7562
+ end: z.ZodNumber;
7563
+ bold: z.ZodOptional<z.ZodBoolean>;
7564
+ italic: z.ZodOptional<z.ZodBoolean>;
7565
+ href: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
7566
+ }, "strict", z.ZodTypeAny, {
7567
+ start: number;
7568
+ end: number;
7569
+ bold?: boolean | undefined;
7570
+ italic?: boolean | undefined;
7571
+ href?: string | undefined;
7572
+ }, {
7573
+ start: number;
7574
+ end: number;
7575
+ bold?: boolean | undefined;
7576
+ italic?: boolean | undefined;
7577
+ href?: string | undefined;
7578
+ }>, "many">>;
7579
+ }, "strict", z.ZodTypeAny, {
7580
+ spans: {
7581
+ start: number;
7582
+ end: number;
7583
+ bold?: boolean | undefined;
7584
+ italic?: boolean | undefined;
7585
+ href?: string | undefined;
7586
+ }[];
7587
+ ordered?: boolean | undefined;
7588
+ heading?: boolean | undefined;
7589
+ }, {
7590
+ ordered?: boolean | undefined;
7591
+ heading?: boolean | undefined;
7592
+ spans?: {
7593
+ start: number;
7594
+ end: number;
7595
+ bold?: boolean | undefined;
7596
+ italic?: boolean | undefined;
7597
+ href?: string | undefined;
7598
+ }[] | undefined;
7599
+ }>>>;
6655
7600
  presentation: z.ZodOptional<z.ZodNullable<z.ZodLiteral<"tip">>>;
6656
7601
  }, "strip", z.ZodTypeAny, {
6657
7602
  type: "paragraph" | "bullet";
6658
7603
  id: string;
6659
7604
  text: string;
6660
7605
  presentation?: "tip" | null | undefined;
7606
+ format?: {
7607
+ spans: {
7608
+ start: number;
7609
+ end: number;
7610
+ bold?: boolean | undefined;
7611
+ italic?: boolean | undefined;
7612
+ href?: string | undefined;
7613
+ }[];
7614
+ ordered?: boolean | undefined;
7615
+ heading?: boolean | undefined;
7616
+ } | null | undefined;
6661
7617
  }, {
6662
7618
  type: "paragraph" | "bullet";
6663
7619
  id: string;
6664
7620
  text: string;
6665
7621
  presentation?: "tip" | null | undefined;
7622
+ format?: {
7623
+ ordered?: boolean | undefined;
7624
+ heading?: boolean | undefined;
7625
+ spans?: {
7626
+ start: number;
7627
+ end: number;
7628
+ bold?: boolean | undefined;
7629
+ italic?: boolean | undefined;
7630
+ href?: string | undefined;
7631
+ }[] | undefined;
7632
+ } | null | undefined;
6666
7633
  }>, z.ZodObject<{
6667
7634
  id: z.ZodString;
6668
7635
  type: z.ZodLiteral<"image">;
@@ -6695,6 +7662,17 @@ export declare const familySleepPlansResponseSchema: z.ZodObject<{
6695
7662
  id: string;
6696
7663
  text: string;
6697
7664
  presentation?: "tip" | null | undefined;
7665
+ format?: {
7666
+ spans: {
7667
+ start: number;
7668
+ end: number;
7669
+ bold?: boolean | undefined;
7670
+ italic?: boolean | undefined;
7671
+ href?: string | undefined;
7672
+ }[];
7673
+ ordered?: boolean | undefined;
7674
+ heading?: boolean | undefined;
7675
+ } | null | undefined;
6698
7676
  } | {
6699
7677
  type: "image";
6700
7678
  id: string;
@@ -6709,6 +7687,17 @@ export declare const familySleepPlansResponseSchema: z.ZodObject<{
6709
7687
  id: string;
6710
7688
  text: string;
6711
7689
  presentation?: "tip" | null | undefined;
7690
+ format?: {
7691
+ ordered?: boolean | undefined;
7692
+ heading?: boolean | undefined;
7693
+ spans?: {
7694
+ start: number;
7695
+ end: number;
7696
+ bold?: boolean | undefined;
7697
+ italic?: boolean | undefined;
7698
+ href?: string | undefined;
7699
+ }[] | undefined;
7700
+ } | null | undefined;
6712
7701
  } | {
6713
7702
  type: "image";
6714
7703
  id: string;
@@ -6727,6 +7716,17 @@ export declare const familySleepPlansResponseSchema: z.ZodObject<{
6727
7716
  id: string;
6728
7717
  text: string;
6729
7718
  presentation?: "tip" | null | undefined;
7719
+ format?: {
7720
+ spans: {
7721
+ start: number;
7722
+ end: number;
7723
+ bold?: boolean | undefined;
7724
+ italic?: boolean | undefined;
7725
+ href?: string | undefined;
7726
+ }[];
7727
+ ordered?: boolean | undefined;
7728
+ heading?: boolean | undefined;
7729
+ } | null | undefined;
6730
7730
  } | {
6731
7731
  type: "image";
6732
7732
  id: string;
@@ -6747,6 +7747,17 @@ export declare const familySleepPlansResponseSchema: z.ZodObject<{
6747
7747
  id: string;
6748
7748
  text: string;
6749
7749
  presentation?: "tip" | null | undefined;
7750
+ format?: {
7751
+ ordered?: boolean | undefined;
7752
+ heading?: boolean | undefined;
7753
+ spans?: {
7754
+ start: number;
7755
+ end: number;
7756
+ bold?: boolean | undefined;
7757
+ italic?: boolean | undefined;
7758
+ href?: string | undefined;
7759
+ }[] | undefined;
7760
+ } | null | undefined;
6750
7761
  } | {
6751
7762
  type: "image";
6752
7763
  id: string;
@@ -6768,6 +7779,7 @@ export declare const familySleepPlansResponseSchema: z.ZodObject<{
6768
7779
  archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6769
7780
  createdAt: z.ZodString;
6770
7781
  updatedAt: z.ZodString;
7782
+ persisted: z.ZodOptional<z.ZodBoolean>;
6771
7783
  }, "strip", z.ZodTypeAny, {
6772
7784
  status: "archived" | "draft" | "published";
6773
7785
  id: string;
@@ -6786,6 +7798,17 @@ export declare const familySleepPlansResponseSchema: z.ZodObject<{
6786
7798
  id: string;
6787
7799
  text: string;
6788
7800
  presentation?: "tip" | null | undefined;
7801
+ format?: {
7802
+ spans: {
7803
+ start: number;
7804
+ end: number;
7805
+ bold?: boolean | undefined;
7806
+ italic?: boolean | undefined;
7807
+ href?: string | undefined;
7808
+ }[];
7809
+ ordered?: boolean | undefined;
7810
+ heading?: boolean | undefined;
7811
+ } | null | undefined;
6789
7812
  } | {
6790
7813
  type: "image";
6791
7814
  id: string;
@@ -6843,6 +7866,7 @@ export declare const familySleepPlansResponseSchema: z.ZodObject<{
6843
7866
  pdfContentType?: string | null | undefined;
6844
7867
  pdfUploadedAt?: string | null | undefined;
6845
7868
  publishedAt?: string | null | undefined;
7869
+ persisted?: boolean | undefined;
6846
7870
  }, {
6847
7871
  status: "archived" | "draft" | "published";
6848
7872
  id: string;
@@ -6861,6 +7885,17 @@ export declare const familySleepPlansResponseSchema: z.ZodObject<{
6861
7885
  id: string;
6862
7886
  text: string;
6863
7887
  presentation?: "tip" | null | undefined;
7888
+ format?: {
7889
+ ordered?: boolean | undefined;
7890
+ heading?: boolean | undefined;
7891
+ spans?: {
7892
+ start: number;
7893
+ end: number;
7894
+ bold?: boolean | undefined;
7895
+ italic?: boolean | undefined;
7896
+ href?: string | undefined;
7897
+ }[] | undefined;
7898
+ } | null | undefined;
6864
7899
  } | {
6865
7900
  type: "image";
6866
7901
  id: string;
@@ -6918,6 +7953,7 @@ export declare const familySleepPlansResponseSchema: z.ZodObject<{
6918
7953
  pdfContentType?: string | null | undefined;
6919
7954
  pdfUploadedAt?: string | null | undefined;
6920
7955
  publishedAt?: string | null | undefined;
7956
+ persisted?: boolean | undefined;
6921
7957
  }>, "many">;
6922
7958
  }, "strip", z.ZodTypeAny, {
6923
7959
  sleepPlans: {
@@ -6938,6 +7974,17 @@ export declare const familySleepPlansResponseSchema: z.ZodObject<{
6938
7974
  id: string;
6939
7975
  text: string;
6940
7976
  presentation?: "tip" | null | undefined;
7977
+ format?: {
7978
+ spans: {
7979
+ start: number;
7980
+ end: number;
7981
+ bold?: boolean | undefined;
7982
+ italic?: boolean | undefined;
7983
+ href?: string | undefined;
7984
+ }[];
7985
+ ordered?: boolean | undefined;
7986
+ heading?: boolean | undefined;
7987
+ } | null | undefined;
6941
7988
  } | {
6942
7989
  type: "image";
6943
7990
  id: string;
@@ -6995,6 +8042,7 @@ export declare const familySleepPlansResponseSchema: z.ZodObject<{
6995
8042
  pdfContentType?: string | null | undefined;
6996
8043
  pdfUploadedAt?: string | null | undefined;
6997
8044
  publishedAt?: string | null | undefined;
8045
+ persisted?: boolean | undefined;
6998
8046
  }[];
6999
8047
  }, {
7000
8048
  sleepPlans: {
@@ -7015,6 +8063,17 @@ export declare const familySleepPlansResponseSchema: z.ZodObject<{
7015
8063
  id: string;
7016
8064
  text: string;
7017
8065
  presentation?: "tip" | null | undefined;
8066
+ format?: {
8067
+ ordered?: boolean | undefined;
8068
+ heading?: boolean | undefined;
8069
+ spans?: {
8070
+ start: number;
8071
+ end: number;
8072
+ bold?: boolean | undefined;
8073
+ italic?: boolean | undefined;
8074
+ href?: string | undefined;
8075
+ }[] | undefined;
8076
+ } | null | undefined;
7018
8077
  } | {
7019
8078
  type: "image";
7020
8079
  id: string;
@@ -7072,6 +8131,7 @@ export declare const familySleepPlansResponseSchema: z.ZodObject<{
7072
8131
  pdfContentType?: string | null | undefined;
7073
8132
  pdfUploadedAt?: string | null | undefined;
7074
8133
  publishedAt?: string | null | undefined;
8134
+ persisted?: boolean | undefined;
7075
8135
  }[];
7076
8136
  }>;
7077
8137
  export type FamilySleepPlansResponse = z.infer<typeof familySleepPlansResponseSchema>;