@read-frog/api-contract 0.14.0 → 0.15.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 (39) hide show
  1. package/dist/index.d.ts +1105 -475
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +264 -97
  4. package/dist/index.js.map +1 -1
  5. package/package.json +15 -14
  6. package/src/contracts/beta-access.ts +3 -6
  7. package/src/contracts/billing.ts +5 -5
  8. package/src/contracts/card-template.ts +45 -39
  9. package/src/contracts/card.ts +22 -19
  10. package/src/contracts/ebook.ts +13 -11
  11. package/src/contracts/hosted-ai.ts +5 -5
  12. package/src/contracts/notebase-column.ts +40 -32
  13. package/src/contracts/notebase-row.ts +85 -45
  14. package/src/contracts/notebase.ts +60 -40
  15. package/src/contracts/shared.ts +21 -2
  16. package/src/contracts/srs.ts +96 -63
  17. package/src/contracts/stats.ts +9 -11
  18. package/src/contracts/user.ts +3 -3
  19. package/src/contracts/video-transcript.ts +22 -12
  20. package/src/index.ts +37 -33
  21. package/src/public-errors.ts +74 -51
  22. package/src/schemas/beta-access.ts +12 -10
  23. package/src/schemas/billing.ts +77 -59
  24. package/src/schemas/card.ts +66 -63
  25. package/src/schemas/ebook.ts +165 -129
  26. package/src/schemas/hosted-ai.ts +84 -74
  27. package/src/schemas/notebase-column.ts +50 -36
  28. package/src/schemas/notebase-row.ts +88 -57
  29. package/src/schemas/notebase-stats.ts +28 -20
  30. package/src/schemas/notebase-view.ts +59 -49
  31. package/src/schemas/notebase.ts +136 -96
  32. package/src/schemas/pagination.ts +9 -0
  33. package/src/schemas/resource-mutation.ts +6 -0
  34. package/src/schemas/srs-stats.ts +30 -22
  35. package/src/schemas/srs.ts +152 -106
  36. package/src/schemas/stats.ts +27 -21
  37. package/src/schemas/timezone.ts +19 -16
  38. package/src/schemas/user.ts +27 -19
  39. package/src/schemas/video-transcript.ts +33 -32
package/dist/index.d.ts CHANGED
@@ -1,13 +1,36 @@
1
- import { ContractRouterClient, ErrorMap } from "@orpc/contract";
1
+ import { ContractRouterClient, ErrorMap, Route } from "@orpc/contract";
2
2
  import { CardState, ReviewRating, SRS_REVIEW_DURATION_MS_MAX, ScheduleStatus, SchedulingParams, cardStateSchema, reviewRatingSchema, scheduleStatusSchema, schedulingParamsSchema } from "@read-frog/definitions";
3
3
  import { z } from "zod";
4
-
4
+ //#region src/contracts/shared.d.ts
5
+ /**
6
+ * A documented business route shared by OpenAPI and agent-facing adapters.
7
+ * Both prose fields are required so adapters can reuse them without a second
8
+ * copy or an undefined fallback.
9
+ */
10
+ type AgentRoute = Route & {
11
+ summary: string;
12
+ description: string;
13
+ };
14
+ /**
15
+ * Declares a procedure that is exposed to agents as an MCP tool, not only to
16
+ * the REST/OpenAPI surface.
17
+ *
18
+ * oRPC types `~orpc.route` as the widened `Route`, so `route.summary` reads back
19
+ * as `string | undefined` whatever is passed in. `$meta` is the only channel it
20
+ * keeps generic, so the prose is mirrored there and stays a required `string`
21
+ * for tool definitions. OpenAPI keeps reading `route`.
22
+ */
23
+ declare function defineAgentProcedure(route: AgentRoute): import("@orpc/contract").ContractProcedureBuilder<import("@orpc/contract").Schema<unknown, unknown>, import("@orpc/contract").Schema<unknown, unknown>, Record<never, never>, {
24
+ summary: string;
25
+ description: string;
26
+ } & Record<never, never>>;
27
+ //#endregion
5
28
  //#region src/public-errors.d.ts
6
29
  declare const CellValidationFailureReasonSchema: z.ZodEnum<{
7
- unknown_notebase_column: "unknown_notebase_column";
8
- type_mismatch: "type_mismatch";
9
- invalid_select_option: "invalid_select_option";
10
30
  invalid_date_format: "invalid_date_format";
31
+ invalid_select_option: "invalid_select_option";
32
+ type_mismatch: "type_mismatch";
33
+ unknown_notebase_column: "unknown_notebase_column";
11
34
  }>;
12
35
  type CellValidationFailureReason = z.infer<typeof CellValidationFailureReasonSchema>;
13
36
  declare const CellValidationFailureDetailsSchema: z.ZodObject<{
@@ -28,10 +51,10 @@ declare const CellValidationFailedDataSchema: z.ZodObject<{
28
51
  validOptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
29
52
  }, z.core.$strict>;
30
53
  reason: z.ZodEnum<{
31
- unknown_notebase_column: "unknown_notebase_column";
32
- type_mismatch: "type_mismatch";
33
- invalid_select_option: "invalid_select_option";
34
54
  invalid_date_format: "invalid_date_format";
55
+ invalid_select_option: "invalid_select_option";
56
+ type_mismatch: "type_mismatch";
57
+ unknown_notebase_column: "unknown_notebase_column";
35
58
  }>;
36
59
  rowIndex: z.ZodOptional<z.ZodNumber>;
37
60
  }, z.core.$strict>;
@@ -42,30 +65,42 @@ declare const CardTemplateInvalidColumnsDataSchema: z.ZodObject<{
42
65
  type CardTemplateInvalidColumnsData = z.infer<typeof CardTemplateInvalidColumnsDataSchema>;
43
66
  declare const HostedAiTierRestrictedDataSchema: z.ZodObject<{
44
67
  modelTier: z.ZodEnum<{
45
- normal: "normal";
46
68
  advance: "advance";
69
+ normal: "normal";
47
70
  }>;
48
71
  }, z.core.$strict>;
49
72
  declare const HostedAiQuotaExhaustedDataSchema: z.ZodObject<{
50
73
  modelTier: z.ZodEnum<{
51
- normal: "normal";
52
74
  advance: "advance";
75
+ normal: "normal";
53
76
  }>;
54
77
  policyId: z.ZodEnum<{
55
78
  "custom-action-guest-daily-v1": "custom-action-guest-daily-v1";
56
- "custom-action-user-daily-v1": "custom-action-user-daily-v1";
57
79
  "custom-action-pro-daily-v1": "custom-action-pro-daily-v1";
80
+ "custom-action-user-daily-v1": "custom-action-user-daily-v1";
58
81
  "ultra-weekly-v1": "ultra-weekly-v1";
59
82
  }>;
60
83
  usedPercent: z.ZodNumber;
61
84
  resetAt: z.ZodNullable<z.ZodISODateTime>;
62
85
  }, z.core.$strict>;
63
86
  declare const PUBLIC_APP_ERROR_DEFS: {
87
+ readonly RESOURCE_UPDATE_CONFLICT: {
88
+ readonly message: "The resource changed. Read it again before updating.";
89
+ readonly status: 409;
90
+ };
91
+ readonly RESOURCE_ALREADY_EXISTS: {
92
+ readonly message: "A resource with this ID already exists.";
93
+ readonly status: 409;
94
+ };
95
+ readonly FIELD_TYPE_CHANGE_UNSUPPORTED: {
96
+ readonly message: "This operation cannot change the field type.";
97
+ readonly status: 400;
98
+ };
64
99
  readonly HOSTED_AI_TIER_RESTRICTED: {
65
100
  readonly data: z.ZodObject<{
66
101
  modelTier: z.ZodEnum<{
67
- normal: "normal";
68
102
  advance: "advance";
103
+ normal: "normal";
69
104
  }>;
70
105
  }, z.core.$strict>;
71
106
  readonly message: "This Built-in AI tier is not available for this account";
@@ -74,13 +109,13 @@ declare const PUBLIC_APP_ERROR_DEFS: {
74
109
  readonly HOSTED_AI_QUOTA_EXHAUSTED: {
75
110
  readonly data: z.ZodObject<{
76
111
  modelTier: z.ZodEnum<{
77
- normal: "normal";
78
112
  advance: "advance";
113
+ normal: "normal";
79
114
  }>;
80
115
  policyId: z.ZodEnum<{
81
116
  "custom-action-guest-daily-v1": "custom-action-guest-daily-v1";
82
- "custom-action-user-daily-v1": "custom-action-user-daily-v1";
83
117
  "custom-action-pro-daily-v1": "custom-action-pro-daily-v1";
118
+ "custom-action-user-daily-v1": "custom-action-user-daily-v1";
84
119
  "ultra-weekly-v1": "ultra-weekly-v1";
85
120
  }>;
86
121
  usedPercent: z.ZodNumber;
@@ -219,10 +254,10 @@ declare const PUBLIC_APP_ERROR_DEFS: {
219
254
  validOptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
220
255
  }, z.core.$strict>;
221
256
  reason: z.ZodEnum<{
222
- unknown_notebase_column: "unknown_notebase_column";
223
- type_mismatch: "type_mismatch";
224
- invalid_select_option: "invalid_select_option";
225
257
  invalid_date_format: "invalid_date_format";
258
+ invalid_select_option: "invalid_select_option";
259
+ type_mismatch: "type_mismatch";
260
+ unknown_notebase_column: "unknown_notebase_column";
226
261
  }>;
227
262
  rowIndex: z.ZodOptional<z.ZodNumber>;
228
263
  }, z.core.$strict>;
@@ -264,11 +299,23 @@ type PublicAppErrorData<TCode extends PublicAppErrorCode> = (typeof PUBLIC_APP_E
264
299
  } ? z.output<TSchema> : undefined;
265
300
  declare function isPublicAppErrorCode(code: string | undefined): code is PublicAppErrorCode;
266
301
  declare function getPublicErrorDefinition<TCode extends PublicAppErrorCode>(code: TCode): {
302
+ readonly RESOURCE_UPDATE_CONFLICT: {
303
+ readonly message: "The resource changed. Read it again before updating.";
304
+ readonly status: 409;
305
+ };
306
+ readonly RESOURCE_ALREADY_EXISTS: {
307
+ readonly message: "A resource with this ID already exists.";
308
+ readonly status: 409;
309
+ };
310
+ readonly FIELD_TYPE_CHANGE_UNSUPPORTED: {
311
+ readonly message: "This operation cannot change the field type.";
312
+ readonly status: 400;
313
+ };
267
314
  readonly HOSTED_AI_TIER_RESTRICTED: {
268
315
  readonly data: z.ZodObject<{
269
316
  modelTier: z.ZodEnum<{
270
- normal: "normal";
271
317
  advance: "advance";
318
+ normal: "normal";
272
319
  }>;
273
320
  }, z.core.$strict>;
274
321
  readonly message: "This Built-in AI tier is not available for this account";
@@ -277,13 +324,13 @@ declare function getPublicErrorDefinition<TCode extends PublicAppErrorCode>(code
277
324
  readonly HOSTED_AI_QUOTA_EXHAUSTED: {
278
325
  readonly data: z.ZodObject<{
279
326
  modelTier: z.ZodEnum<{
280
- normal: "normal";
281
327
  advance: "advance";
328
+ normal: "normal";
282
329
  }>;
283
330
  policyId: z.ZodEnum<{
284
331
  "custom-action-guest-daily-v1": "custom-action-guest-daily-v1";
285
- "custom-action-user-daily-v1": "custom-action-user-daily-v1";
286
332
  "custom-action-pro-daily-v1": "custom-action-pro-daily-v1";
333
+ "custom-action-user-daily-v1": "custom-action-user-daily-v1";
287
334
  "ultra-weekly-v1": "ultra-weekly-v1";
288
335
  }>;
289
336
  usedPercent: z.ZodNumber;
@@ -422,10 +469,10 @@ declare function getPublicErrorDefinition<TCode extends PublicAppErrorCode>(code
422
469
  validOptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
423
470
  }, z.core.$strict>;
424
471
  reason: z.ZodEnum<{
425
- unknown_notebase_column: "unknown_notebase_column";
426
- type_mismatch: "type_mismatch";
427
- invalid_select_option: "invalid_select_option";
428
472
  invalid_date_format: "invalid_date_format";
473
+ invalid_select_option: "invalid_select_option";
474
+ type_mismatch: "type_mismatch";
475
+ unknown_notebase_column: "unknown_notebase_column";
429
476
  }>;
430
477
  rowIndex: z.ZodOptional<z.ZodNumber>;
431
478
  }, z.core.$strict>;
@@ -465,24 +512,24 @@ declare function pickPublicErrorMap<const TCodes extends readonly PublicAppError
465
512
  //#endregion
466
513
  //#region src/schemas/beta-access.d.ts
467
514
  declare const BetaFeatureKeySchema: z.ZodEnum<{
515
+ ebook: "ebook";
468
516
  notebase: "notebase";
469
517
  videoTranscription: "videoTranscription";
470
- ebook: "ebook";
471
518
  }>;
472
519
  type BetaFeatureKey = z.infer<typeof BetaFeatureKeySchema>;
473
520
  declare const BetaAccessStatusInputSchema: z.ZodObject<{
474
521
  featureKey: z.ZodEnum<{
522
+ ebook: "ebook";
475
523
  notebase: "notebase";
476
524
  videoTranscription: "videoTranscription";
477
- ebook: "ebook";
478
525
  }>;
479
526
  }, z.core.$strict>;
480
527
  type BetaAccessStatusInput = z.infer<typeof BetaAccessStatusInputSchema>;
481
528
  declare const BetaAccessStatusOutputSchema: z.ZodObject<{
482
529
  featureKey: z.ZodEnum<{
530
+ ebook: "ebook";
483
531
  notebase: "notebase";
484
532
  videoTranscription: "videoTranscription";
485
- ebook: "ebook";
486
533
  }>;
487
534
  allowed: z.ZodBoolean;
488
535
  }, z.core.$strip>;
@@ -495,14 +542,14 @@ declare const billingIntervalSchema: z.ZodEnum<{
495
542
  }>;
496
543
  type BillingInterval = z.infer<typeof billingIntervalSchema>;
497
544
  declare const billingSubscriptionStatusSchema: z.ZodEnum<{
545
+ active: "active";
546
+ canceled: "canceled";
498
547
  incomplete: "incomplete";
499
548
  incomplete_expired: "incomplete_expired";
500
- trialing: "trialing";
501
- active: "active";
502
549
  past_due: "past_due";
503
- canceled: "canceled";
504
- unpaid: "unpaid";
505
550
  paused: "paused";
551
+ trialing: "trialing";
552
+ unpaid: "unpaid";
506
553
  }>;
507
554
  type BillingSubscriptionStatus = z.infer<typeof billingSubscriptionStatusSchema>;
508
555
  declare const billingPlanSchema: z.ZodEnum<{
@@ -517,9 +564,9 @@ declare const billingCheckoutPlanSchema: z.ZodEnum<{
517
564
  }>;
518
565
  type BillingCheckoutPlan = z.infer<typeof billingCheckoutPlanSchema>;
519
566
  declare const billingCurrencySchema: z.ZodEnum<{
520
- usd: "usd";
521
567
  cad: "cad";
522
568
  cny: "cny";
569
+ usd: "usd";
523
570
  }>;
524
571
  type BillingCurrency = z.infer<typeof billingCurrencySchema>;
525
572
  declare const billingLocaleSchema: z.ZodEnum<{
@@ -535,8 +582,8 @@ declare const billingLocaleSchema: z.ZodEnum<{
535
582
  }>;
536
583
  type BillingLocale = z.infer<typeof billingLocaleSchema>;
537
584
  declare const billingAccessSourceSchema: z.ZodEnum<{
538
- subscription: "subscription";
539
585
  pass: "pass";
586
+ subscription: "subscription";
540
587
  }>;
541
588
  type BillingAccessSource = z.infer<typeof billingAccessSourceSchema>;
542
589
  declare const billingScheduledChangeSchema: z.ZodObject<{
@@ -558,14 +605,14 @@ declare const billingStatusSchema: z.ZodObject<{
558
605
  ultra: "ultra";
559
606
  }>;
560
607
  status: z.ZodNullable<z.ZodEnum<{
608
+ active: "active";
609
+ canceled: "canceled";
561
610
  incomplete: "incomplete";
562
611
  incomplete_expired: "incomplete_expired";
563
- trialing: "trialing";
564
- active: "active";
565
612
  past_due: "past_due";
566
- canceled: "canceled";
567
- unpaid: "unpaid";
568
613
  paused: "paused";
614
+ trialing: "trialing";
615
+ unpaid: "unpaid";
569
616
  }>>;
570
617
  interval: z.ZodNullable<z.ZodEnum<{
571
618
  month: "month";
@@ -574,8 +621,8 @@ declare const billingStatusSchema: z.ZodObject<{
574
621
  currentPeriodEnd: z.ZodNullable<z.ZodCoercedDate<unknown>>;
575
622
  cancelAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
576
623
  accessSource: z.ZodNullable<z.ZodEnum<{
577
- subscription: "subscription";
578
624
  pass: "pass";
625
+ subscription: "subscription";
579
626
  }>>;
580
627
  scheduledChange: z.ZodNullable<z.ZodObject<{
581
628
  plan: z.ZodEnum<{
@@ -595,9 +642,9 @@ declare const billingStatusSchema: z.ZodObject<{
595
642
  type BillingStatus = z.infer<typeof billingStatusSchema>;
596
643
  declare const billingCreateCheckoutSessionInputSchema: z.ZodObject<{
597
644
  currency: z.ZodEnum<{
598
- usd: "usd";
599
645
  cad: "cad";
600
646
  cny: "cny";
647
+ usd: "usd";
601
648
  }>;
602
649
  interval: z.ZodEnum<{
603
650
  month: "month";
@@ -658,21 +705,26 @@ declare const cardTemplateSchema: z.ZodObject<{
658
705
  }, z.core.$strip>;
659
706
  type CardTemplate = z.infer<typeof cardTemplateSchema>;
660
707
  declare const CardTemplateListInputSchema: z.ZodObject<{
661
- notebaseId: z.ZodUUID;
708
+ limit: z.ZodOptional<z.ZodNumber>;
709
+ offset: z.ZodOptional<z.ZodNumber>;
710
+ notebaseId: z.ZodOptional<z.ZodUUID>;
662
711
  }, z.core.$strip>;
663
712
  type CardTemplateListInput = z.infer<typeof CardTemplateListInputSchema>;
664
- declare const CardTemplateListOutputSchema: z.ZodArray<z.ZodObject<{
665
- id: z.ZodUUID;
666
- notebaseId: z.ZodUUID;
667
- name: z.ZodString;
668
- config: z.ZodDiscriminatedUnion<[z.ZodObject<{
669
- type: z.ZodLiteral<"basic">;
670
- frontPattern: z.ZodString;
671
- backPattern: z.ZodString;
672
- }, z.core.$strict>], "type">;
673
- createdAt: z.ZodCoercedDate<unknown>;
674
- updatedAt: z.ZodCoercedDate<unknown>;
675
- }, z.core.$strip>>;
713
+ declare const CardTemplateListOutputSchema: z.ZodObject<{
714
+ items: z.ZodArray<z.ZodObject<{
715
+ id: z.ZodUUID;
716
+ notebaseId: z.ZodUUID;
717
+ name: z.ZodString;
718
+ config: z.ZodDiscriminatedUnion<[z.ZodObject<{
719
+ type: z.ZodLiteral<"basic">;
720
+ frontPattern: z.ZodString;
721
+ backPattern: z.ZodString;
722
+ }, z.core.$strict>], "type">;
723
+ createdAt: z.ZodCoercedDate<unknown>;
724
+ updatedAt: z.ZodCoercedDate<unknown>;
725
+ }, z.core.$strip>>;
726
+ hasMore: z.ZodBoolean;
727
+ }, z.core.$strip>;
676
728
  type CardTemplateListOutput = z.infer<typeof CardTemplateListOutputSchema>;
677
729
  declare const CardTemplateGetInputSchema: z.ZodObject<{
678
730
  id: z.ZodUUID;
@@ -717,6 +769,7 @@ declare const CardTemplateCreateOutputSchema: z.ZodObject<{
717
769
  }, z.core.$strip>;
718
770
  type CardTemplateCreateOutput = z.infer<typeof CardTemplateCreateOutputSchema>;
719
771
  declare const CardTemplateUpdateInputSchema: z.ZodObject<{
772
+ expectedUpdatedAt: z.ZodOptional<z.ZodISODateTime>;
720
773
  id: z.ZodUUID;
721
774
  name: z.ZodOptional<z.ZodString>;
722
775
  config: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -745,25 +798,28 @@ declare const CardTemplateDeleteInputSchema: z.ZodObject<{
745
798
  }, z.core.$strip>;
746
799
  type CardTemplateDeleteInput = z.infer<typeof CardTemplateDeleteInputSchema>;
747
800
  declare const CardTemplateDeleteOutputSchema: z.ZodObject<{
801
+ id: z.ZodUUID;
748
802
  txid: z.ZodNumber;
749
803
  }, z.core.$strip>;
750
804
  type CardTemplateDeleteOutput = z.infer<typeof CardTemplateDeleteOutputSchema>;
751
805
  declare const cardSchema: z.ZodObject<{
752
- createdAt: z.ZodCoercedDate<unknown>;
753
- updatedAt: z.ZodCoercedDate<unknown>;
754
- buriedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
806
+ notebaseId: z.ZodUUID;
807
+ notebaseRowId: z.ZodUUID;
808
+ templateId: z.ZodUUID;
809
+ variantKey: z.ZodString;
810
+ id: z.ZodUUID;
755
811
  state: z.ZodEnum<{
756
- new: "new";
757
812
  learning: "learning";
758
- review: "review";
813
+ new: "new";
759
814
  relearning: "relearning";
815
+ review: "review";
760
816
  }>;
761
817
  scheduleStatus: z.ZodEnum<{
762
- new: "new";
818
+ buried: "buried";
763
819
  learning: "learning";
820
+ new: "new";
764
821
  review: "review";
765
822
  suspended: "suspended";
766
- buried: "buried";
767
823
  }>;
768
824
  dueAt: z.ZodCoercedDate<unknown>;
769
825
  lastReviewTime: z.ZodNullable<z.ZodCoercedDate<unknown>>;
@@ -772,29 +828,29 @@ declare const cardSchema: z.ZodObject<{
772
828
  step: z.ZodNumber;
773
829
  lapses: z.ZodNumber;
774
830
  reps: z.ZodNumber;
775
- id: z.ZodUUID;
831
+ buriedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
832
+ createdAt: z.ZodCoercedDate<unknown>;
833
+ updatedAt: z.ZodCoercedDate<unknown>;
834
+ }, z.core.$strip>;
835
+ type Card = z.infer<typeof cardSchema>;
836
+ declare const renderedCardSchema: z.ZodObject<{
776
837
  notebaseId: z.ZodUUID;
777
838
  notebaseRowId: z.ZodUUID;
778
839
  templateId: z.ZodUUID;
779
840
  variantKey: z.ZodString;
780
- }, z.core.$strip>;
781
- type Card = z.infer<typeof cardSchema>;
782
- declare const renderedCardSchema: z.ZodObject<{
783
- createdAt: z.ZodCoercedDate<unknown>;
784
- updatedAt: z.ZodCoercedDate<unknown>;
785
- buriedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
841
+ id: z.ZodUUID;
786
842
  state: z.ZodEnum<{
787
- new: "new";
788
843
  learning: "learning";
789
- review: "review";
844
+ new: "new";
790
845
  relearning: "relearning";
846
+ review: "review";
791
847
  }>;
792
848
  scheduleStatus: z.ZodEnum<{
793
- new: "new";
849
+ buried: "buried";
794
850
  learning: "learning";
851
+ new: "new";
795
852
  review: "review";
796
853
  suspended: "suspended";
797
- buried: "buried";
798
854
  }>;
799
855
  dueAt: z.ZodCoercedDate<unknown>;
800
856
  lastReviewTime: z.ZodNullable<z.ZodCoercedDate<unknown>>;
@@ -803,75 +859,85 @@ declare const renderedCardSchema: z.ZodObject<{
803
859
  step: z.ZodNumber;
804
860
  lapses: z.ZodNumber;
805
861
  reps: z.ZodNumber;
806
- id: z.ZodUUID;
807
- notebaseId: z.ZodUUID;
808
- notebaseRowId: z.ZodUUID;
809
- templateId: z.ZodUUID;
810
- variantKey: z.ZodString;
862
+ buriedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
863
+ createdAt: z.ZodCoercedDate<unknown>;
864
+ updatedAt: z.ZodCoercedDate<unknown>;
811
865
  front: z.ZodString;
812
866
  back: z.ZodString;
813
867
  }, z.core.$strip>;
814
868
  type RenderedCard = z.infer<typeof renderedCardSchema>;
815
869
  declare const CardListInputSchema: z.ZodObject<{
816
- notebaseId: z.ZodUUID;
817
- templateId: z.ZodOptional<z.ZodUUID>;
818
870
  limit: z.ZodOptional<z.ZodNumber>;
819
871
  offset: z.ZodOptional<z.ZodNumber>;
820
- }, z.core.$strip>;
821
- type CardListInput = z.infer<typeof CardListInputSchema>;
822
- declare const CardListOutputSchema: z.ZodArray<z.ZodObject<{
823
- createdAt: z.ZodCoercedDate<unknown>;
824
- updatedAt: z.ZodCoercedDate<unknown>;
825
- buriedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
826
- state: z.ZodEnum<{
827
- new: "new";
872
+ notebaseId: z.ZodOptional<z.ZodUUID>;
873
+ templateId: z.ZodOptional<z.ZodUUID>;
874
+ scheduleStatus: z.ZodOptional<z.ZodEnum<{
875
+ buried: "buried";
828
876
  learning: "learning";
829
- review: "review";
830
- relearning: "relearning";
831
- }>;
832
- scheduleStatus: z.ZodEnum<{
833
877
  new: "new";
834
- learning: "learning";
835
878
  review: "review";
836
879
  suspended: "suspended";
837
- buried: "buried";
838
- }>;
839
- dueAt: z.ZodCoercedDate<unknown>;
840
- lastReviewTime: z.ZodNullable<z.ZodCoercedDate<unknown>>;
841
- stability: z.ZodNumber;
842
- difficulty: z.ZodNumber;
843
- step: z.ZodNumber;
844
- lapses: z.ZodNumber;
845
- reps: z.ZodNumber;
846
- id: z.ZodUUID;
847
- notebaseId: z.ZodUUID;
848
- notebaseRowId: z.ZodUUID;
849
- templateId: z.ZodUUID;
850
- variantKey: z.ZodString;
851
- front: z.ZodString;
852
- back: z.ZodString;
853
- }, z.core.$strip>>;
880
+ }>>;
881
+ }, z.core.$strip>;
882
+ type CardListInput = z.infer<typeof CardListInputSchema>;
883
+ declare const CardListOutputSchema: z.ZodObject<{
884
+ items: z.ZodArray<z.ZodObject<{
885
+ notebaseId: z.ZodUUID;
886
+ notebaseRowId: z.ZodUUID;
887
+ templateId: z.ZodUUID;
888
+ variantKey: z.ZodString;
889
+ id: z.ZodUUID;
890
+ state: z.ZodEnum<{
891
+ learning: "learning";
892
+ new: "new";
893
+ relearning: "relearning";
894
+ review: "review";
895
+ }>;
896
+ scheduleStatus: z.ZodEnum<{
897
+ buried: "buried";
898
+ learning: "learning";
899
+ new: "new";
900
+ review: "review";
901
+ suspended: "suspended";
902
+ }>;
903
+ dueAt: z.ZodCoercedDate<unknown>;
904
+ lastReviewTime: z.ZodNullable<z.ZodCoercedDate<unknown>>;
905
+ stability: z.ZodNumber;
906
+ difficulty: z.ZodNumber;
907
+ step: z.ZodNumber;
908
+ lapses: z.ZodNumber;
909
+ reps: z.ZodNumber;
910
+ buriedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
911
+ createdAt: z.ZodCoercedDate<unknown>;
912
+ updatedAt: z.ZodCoercedDate<unknown>;
913
+ front: z.ZodString;
914
+ back: z.ZodString;
915
+ }, z.core.$strip>>;
916
+ hasMore: z.ZodBoolean;
917
+ }, z.core.$strip>;
854
918
  type CardListOutput = z.infer<typeof CardListOutputSchema>;
855
919
  declare const CardGetInputSchema: z.ZodObject<{
856
920
  id: z.ZodUUID;
857
921
  }, z.core.$strip>;
858
922
  type CardGetInput = z.infer<typeof CardGetInputSchema>;
859
923
  declare const CardGetOutputSchema: z.ZodObject<{
860
- createdAt: z.ZodCoercedDate<unknown>;
861
- updatedAt: z.ZodCoercedDate<unknown>;
862
- buriedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
924
+ notebaseId: z.ZodUUID;
925
+ notebaseRowId: z.ZodUUID;
926
+ templateId: z.ZodUUID;
927
+ variantKey: z.ZodString;
928
+ id: z.ZodUUID;
863
929
  state: z.ZodEnum<{
864
- new: "new";
865
930
  learning: "learning";
866
- review: "review";
931
+ new: "new";
867
932
  relearning: "relearning";
933
+ review: "review";
868
934
  }>;
869
935
  scheduleStatus: z.ZodEnum<{
870
- new: "new";
936
+ buried: "buried";
871
937
  learning: "learning";
938
+ new: "new";
872
939
  review: "review";
873
940
  suspended: "suspended";
874
- buried: "buried";
875
941
  }>;
876
942
  dueAt: z.ZodCoercedDate<unknown>;
877
943
  lastReviewTime: z.ZodNullable<z.ZodCoercedDate<unknown>>;
@@ -880,11 +946,9 @@ declare const CardGetOutputSchema: z.ZodObject<{
880
946
  step: z.ZodNumber;
881
947
  lapses: z.ZodNumber;
882
948
  reps: z.ZodNumber;
883
- id: z.ZodUUID;
884
- notebaseId: z.ZodUUID;
885
- notebaseRowId: z.ZodUUID;
886
- templateId: z.ZodUUID;
887
- variantKey: z.ZodString;
949
+ buriedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
950
+ createdAt: z.ZodCoercedDate<unknown>;
951
+ updatedAt: z.ZodCoercedDate<unknown>;
888
952
  front: z.ZodString;
889
953
  back: z.ZodString;
890
954
  }, z.core.$strip>;
@@ -1122,14 +1186,14 @@ type EbookDeleteOutput = z.infer<typeof ebookDeleteOutputSchema>;
1122
1186
  //#endregion
1123
1187
  //#region src/schemas/hosted-ai.d.ts
1124
1188
  declare const HostedAiOutputFieldTypeSchema: z.ZodEnum<{
1125
- string: "string";
1126
1189
  number: "number";
1190
+ string: "string";
1127
1191
  }>;
1128
1192
  declare const HostedAiOutputFieldSchema: z.ZodObject<{
1129
1193
  name: z.ZodString;
1130
1194
  type: z.ZodEnum<{
1131
- string: "string";
1132
1195
  number: "number";
1196
+ string: "string";
1133
1197
  }>;
1134
1198
  }, z.core.$strict>;
1135
1199
  /**
@@ -1138,8 +1202,8 @@ declare const HostedAiOutputFieldSchema: z.ZodObject<{
1138
1202
  * not identity, so a future plan can be sold with any tier without a rename.
1139
1203
  */
1140
1204
  declare const HostedAiModelTierSchema: z.ZodEnum<{
1141
- normal: "normal";
1142
1205
  advance: "advance";
1206
+ normal: "normal";
1143
1207
  }>;
1144
1208
  /**
1145
1209
  * The billing/access subject of a hosted request, not a route id. Sub-calls
@@ -1150,53 +1214,53 @@ declare const HostedAiModelTierSchema: z.ZodEnum<{
1150
1214
  * keeps drizzle from emitting the ADD VALUE ... BEFORE variant.
1151
1215
  */
1152
1216
  declare const HostedAiFeatureSchema: z.ZodEnum<{
1153
- pageTranslation: "pageTranslation";
1154
1217
  customAction: "customAction";
1218
+ inputTranslation: "inputTranslation";
1219
+ languageDetection: "languageDetection";
1155
1220
  noteSuggestion: "noteSuggestion";
1221
+ pageTranslation: "pageTranslation";
1156
1222
  selectionTranslation: "selectionTranslation";
1157
1223
  videoSubtitles: "videoSubtitles";
1158
- inputTranslation: "inputTranslation";
1159
- languageDetection: "languageDetection";
1160
1224
  }>;
1161
1225
  declare const HostedAiRequestIdSchema: z.ZodUUID;
1162
1226
  declare const HostedAiStreamTextInputSchema: z.ZodObject<{
1227
+ modelTier: z.ZodDefault<z.ZodEnum<{
1228
+ advance: "advance";
1229
+ normal: "normal";
1230
+ }>>;
1231
+ requestId: z.ZodOptional<z.ZodUUID>;
1163
1232
  instructions: z.ZodString;
1164
1233
  prompt: z.ZodString;
1165
1234
  temperature: z.ZodOptional<z.ZodNumber>;
1235
+ }, z.core.$strict>;
1236
+ declare const HostedAiStreamStructuredObjectInputSchema: z.ZodObject<{
1166
1237
  modelTier: z.ZodDefault<z.ZodEnum<{
1167
- normal: "normal";
1168
1238
  advance: "advance";
1239
+ normal: "normal";
1169
1240
  }>>;
1170
1241
  requestId: z.ZodOptional<z.ZodUUID>;
1171
- }, z.core.$strict>;
1172
- declare const HostedAiStreamStructuredObjectInputSchema: z.ZodObject<{
1173
1242
  instructions: z.ZodString;
1174
1243
  prompt: z.ZodString;
1175
1244
  outputSchema: z.ZodArray<z.ZodObject<{
1176
1245
  name: z.ZodString;
1177
1246
  type: z.ZodEnum<{
1178
- string: "string";
1179
1247
  number: "number";
1248
+ string: "string";
1180
1249
  }>;
1181
1250
  }, z.core.$strict>>;
1182
1251
  temperature: z.ZodOptional<z.ZodNumber>;
1183
- modelTier: z.ZodDefault<z.ZodEnum<{
1184
- normal: "normal";
1185
- advance: "advance";
1186
- }>>;
1187
- requestId: z.ZodOptional<z.ZodUUID>;
1188
1252
  }, z.core.$strict>;
1189
1253
  declare const HOSTED_AI_NOTE_SUGGESTION_MAX_NOTES = 2;
1190
1254
  declare const HOSTED_AI_NOTE_SUGGESTION_MAX_NOTE_FIELDS = 16;
1191
1255
  declare const HostedAiNoteSuggestionStreamInputSchema: z.ZodObject<{
1192
- instructions: z.ZodString;
1193
- prompt: z.ZodString;
1194
- temperature: z.ZodOptional<z.ZodNumber>;
1195
1256
  modelTier: z.ZodDefault<z.ZodEnum<{
1196
- normal: "normal";
1197
1257
  advance: "advance";
1258
+ normal: "normal";
1198
1259
  }>>;
1199
1260
  requestId: z.ZodOptional<z.ZodUUID>;
1261
+ instructions: z.ZodString;
1262
+ prompt: z.ZodString;
1263
+ temperature: z.ZodOptional<z.ZodNumber>;
1200
1264
  }, z.core.$strict>;
1201
1265
  /**
1202
1266
  * Fixed structured-output schema for hosted note suggestions. Must stay
@@ -1243,14 +1307,14 @@ declare const HOSTED_AI_CLIENT_STREAM_PART_TYPES: readonly ["text-delta", "reaso
1243
1307
  declare const HostedAiStatusInputSchema: z.ZodObject<{}, z.core.$strip>;
1244
1308
  declare const HostedAiUnavailableReasonSchema: z.ZodEnum<{
1245
1309
  authentication_required: "authentication_required";
1246
- ultra_required: "ultra_required";
1247
1310
  quota_exhausted: "quota_exhausted";
1248
1311
  service_unavailable: "service_unavailable";
1312
+ ultra_required: "ultra_required";
1249
1313
  }>;
1250
1314
  declare const HostedAiCreditPolicyIdSchema: z.ZodEnum<{
1251
1315
  "custom-action-guest-daily-v1": "custom-action-guest-daily-v1";
1252
- "custom-action-user-daily-v1": "custom-action-user-daily-v1";
1253
1316
  "custom-action-pro-daily-v1": "custom-action-pro-daily-v1";
1317
+ "custom-action-user-daily-v1": "custom-action-user-daily-v1";
1254
1318
  "ultra-weekly-v1": "ultra-weekly-v1";
1255
1319
  }>;
1256
1320
  declare const HostedAiCreditPeriodKindSchema: z.ZodEnum<{
@@ -1296,13 +1360,13 @@ declare const HostedAiCreditStatusSchema: z.ZodObject<{
1296
1360
  usedPercent: z.ZodNumber;
1297
1361
  resetAt: z.ZodNullable<z.ZodISODateTime>;
1298
1362
  features: z.ZodArray<z.ZodEnum<{
1299
- pageTranslation: "pageTranslation";
1300
1363
  customAction: "customAction";
1364
+ inputTranslation: "inputTranslation";
1365
+ languageDetection: "languageDetection";
1301
1366
  noteSuggestion: "noteSuggestion";
1367
+ pageTranslation: "pageTranslation";
1302
1368
  selectionTranslation: "selectionTranslation";
1303
1369
  videoSubtitles: "videoSubtitles";
1304
- inputTranslation: "inputTranslation";
1305
- languageDetection: "languageDetection";
1306
1370
  }>>;
1307
1371
  }, z.core.$strict>;
1308
1372
  declare const HostedAiTierStatusSchema: z.ZodObject<{
@@ -1310,9 +1374,9 @@ declare const HostedAiTierStatusSchema: z.ZodObject<{
1310
1374
  available: z.ZodBoolean;
1311
1375
  unavailableReason: z.ZodNullable<z.ZodEnum<{
1312
1376
  authentication_required: "authentication_required";
1313
- ultra_required: "ultra_required";
1314
1377
  quota_exhausted: "quota_exhausted";
1315
1378
  service_unavailable: "service_unavailable";
1379
+ ultra_required: "ultra_required";
1316
1380
  }>>;
1317
1381
  requiresUltra: z.ZodBoolean;
1318
1382
  modelRevision: z.ZodString;
@@ -1323,9 +1387,9 @@ declare const HostedAiFeatureStatusSchema: z.ZodObject<{
1323
1387
  available: z.ZodBoolean;
1324
1388
  unavailableReason: z.ZodNullable<z.ZodEnum<{
1325
1389
  authentication_required: "authentication_required";
1326
- ultra_required: "ultra_required";
1327
1390
  quota_exhausted: "quota_exhausted";
1328
1391
  service_unavailable: "service_unavailable";
1392
+ ultra_required: "ultra_required";
1329
1393
  }>>;
1330
1394
  requiresUltra: z.ZodBoolean;
1331
1395
  modelRevision: z.ZodString;
@@ -1335,9 +1399,9 @@ declare const HostedAiFeatureStatusSchema: z.ZodObject<{
1335
1399
  available: z.ZodBoolean;
1336
1400
  unavailableReason: z.ZodNullable<z.ZodEnum<{
1337
1401
  authentication_required: "authentication_required";
1338
- ultra_required: "ultra_required";
1339
1402
  quota_exhausted: "quota_exhausted";
1340
1403
  service_unavailable: "service_unavailable";
1404
+ ultra_required: "ultra_required";
1341
1405
  }>>;
1342
1406
  requiresUltra: z.ZodBoolean;
1343
1407
  modelRevision: z.ZodString;
@@ -1352,13 +1416,13 @@ declare const HostedAiStatusOutputSchema: z.ZodObject<{
1352
1416
  usedPercent: z.ZodNumber;
1353
1417
  resetAt: z.ZodNullable<z.ZodISODateTime>;
1354
1418
  features: z.ZodArray<z.ZodEnum<{
1355
- pageTranslation: "pageTranslation";
1356
1419
  customAction: "customAction";
1420
+ inputTranslation: "inputTranslation";
1421
+ languageDetection: "languageDetection";
1357
1422
  noteSuggestion: "noteSuggestion";
1423
+ pageTranslation: "pageTranslation";
1358
1424
  selectionTranslation: "selectionTranslation";
1359
1425
  videoSubtitles: "videoSubtitles";
1360
- inputTranslation: "inputTranslation";
1361
- languageDetection: "languageDetection";
1362
1426
  }>>;
1363
1427
  }, z.core.$strict>>;
1364
1428
  features: z.ZodObject<{
@@ -1368,9 +1432,9 @@ declare const HostedAiStatusOutputSchema: z.ZodObject<{
1368
1432
  available: z.ZodBoolean;
1369
1433
  unavailableReason: z.ZodNullable<z.ZodEnum<{
1370
1434
  authentication_required: "authentication_required";
1371
- ultra_required: "ultra_required";
1372
1435
  quota_exhausted: "quota_exhausted";
1373
1436
  service_unavailable: "service_unavailable";
1437
+ ultra_required: "ultra_required";
1374
1438
  }>>;
1375
1439
  requiresUltra: z.ZodBoolean;
1376
1440
  modelRevision: z.ZodString;
@@ -1380,9 +1444,9 @@ declare const HostedAiStatusOutputSchema: z.ZodObject<{
1380
1444
  available: z.ZodBoolean;
1381
1445
  unavailableReason: z.ZodNullable<z.ZodEnum<{
1382
1446
  authentication_required: "authentication_required";
1383
- ultra_required: "ultra_required";
1384
1447
  quota_exhausted: "quota_exhausted";
1385
1448
  service_unavailable: "service_unavailable";
1449
+ ultra_required: "ultra_required";
1386
1450
  }>>;
1387
1451
  requiresUltra: z.ZodBoolean;
1388
1452
  modelRevision: z.ZodString;
@@ -1394,9 +1458,9 @@ declare const HostedAiStatusOutputSchema: z.ZodObject<{
1394
1458
  available: z.ZodBoolean;
1395
1459
  unavailableReason: z.ZodNullable<z.ZodEnum<{
1396
1460
  authentication_required: "authentication_required";
1397
- ultra_required: "ultra_required";
1398
1461
  quota_exhausted: "quota_exhausted";
1399
1462
  service_unavailable: "service_unavailable";
1463
+ ultra_required: "ultra_required";
1400
1464
  }>>;
1401
1465
  requiresUltra: z.ZodBoolean;
1402
1466
  modelRevision: z.ZodString;
@@ -1406,9 +1470,9 @@ declare const HostedAiStatusOutputSchema: z.ZodObject<{
1406
1470
  available: z.ZodBoolean;
1407
1471
  unavailableReason: z.ZodNullable<z.ZodEnum<{
1408
1472
  authentication_required: "authentication_required";
1409
- ultra_required: "ultra_required";
1410
1473
  quota_exhausted: "quota_exhausted";
1411
1474
  service_unavailable: "service_unavailable";
1475
+ ultra_required: "ultra_required";
1412
1476
  }>>;
1413
1477
  requiresUltra: z.ZodBoolean;
1414
1478
  modelRevision: z.ZodString;
@@ -1420,9 +1484,9 @@ declare const HostedAiStatusOutputSchema: z.ZodObject<{
1420
1484
  available: z.ZodBoolean;
1421
1485
  unavailableReason: z.ZodNullable<z.ZodEnum<{
1422
1486
  authentication_required: "authentication_required";
1423
- ultra_required: "ultra_required";
1424
1487
  quota_exhausted: "quota_exhausted";
1425
1488
  service_unavailable: "service_unavailable";
1489
+ ultra_required: "ultra_required";
1426
1490
  }>>;
1427
1491
  requiresUltra: z.ZodBoolean;
1428
1492
  modelRevision: z.ZodString;
@@ -1432,9 +1496,9 @@ declare const HostedAiStatusOutputSchema: z.ZodObject<{
1432
1496
  available: z.ZodBoolean;
1433
1497
  unavailableReason: z.ZodNullable<z.ZodEnum<{
1434
1498
  authentication_required: "authentication_required";
1435
- ultra_required: "ultra_required";
1436
1499
  quota_exhausted: "quota_exhausted";
1437
1500
  service_unavailable: "service_unavailable";
1501
+ ultra_required: "ultra_required";
1438
1502
  }>>;
1439
1503
  requiresUltra: z.ZodBoolean;
1440
1504
  modelRevision: z.ZodString;
@@ -1446,9 +1510,9 @@ declare const HostedAiStatusOutputSchema: z.ZodObject<{
1446
1510
  available: z.ZodBoolean;
1447
1511
  unavailableReason: z.ZodNullable<z.ZodEnum<{
1448
1512
  authentication_required: "authentication_required";
1449
- ultra_required: "ultra_required";
1450
1513
  quota_exhausted: "quota_exhausted";
1451
1514
  service_unavailable: "service_unavailable";
1515
+ ultra_required: "ultra_required";
1452
1516
  }>>;
1453
1517
  requiresUltra: z.ZodBoolean;
1454
1518
  modelRevision: z.ZodString;
@@ -1458,9 +1522,9 @@ declare const HostedAiStatusOutputSchema: z.ZodObject<{
1458
1522
  available: z.ZodBoolean;
1459
1523
  unavailableReason: z.ZodNullable<z.ZodEnum<{
1460
1524
  authentication_required: "authentication_required";
1461
- ultra_required: "ultra_required";
1462
1525
  quota_exhausted: "quota_exhausted";
1463
1526
  service_unavailable: "service_unavailable";
1527
+ ultra_required: "ultra_required";
1464
1528
  }>>;
1465
1529
  requiresUltra: z.ZodBoolean;
1466
1530
  modelRevision: z.ZodString;
@@ -1472,9 +1536,9 @@ declare const HostedAiStatusOutputSchema: z.ZodObject<{
1472
1536
  available: z.ZodBoolean;
1473
1537
  unavailableReason: z.ZodNullable<z.ZodEnum<{
1474
1538
  authentication_required: "authentication_required";
1475
- ultra_required: "ultra_required";
1476
1539
  quota_exhausted: "quota_exhausted";
1477
1540
  service_unavailable: "service_unavailable";
1541
+ ultra_required: "ultra_required";
1478
1542
  }>>;
1479
1543
  requiresUltra: z.ZodBoolean;
1480
1544
  modelRevision: z.ZodString;
@@ -1484,9 +1548,9 @@ declare const HostedAiStatusOutputSchema: z.ZodObject<{
1484
1548
  available: z.ZodBoolean;
1485
1549
  unavailableReason: z.ZodNullable<z.ZodEnum<{
1486
1550
  authentication_required: "authentication_required";
1487
- ultra_required: "ultra_required";
1488
1551
  quota_exhausted: "quota_exhausted";
1489
1552
  service_unavailable: "service_unavailable";
1553
+ ultra_required: "ultra_required";
1490
1554
  }>>;
1491
1555
  requiresUltra: z.ZodBoolean;
1492
1556
  modelRevision: z.ZodString;
@@ -1498,9 +1562,9 @@ declare const HostedAiStatusOutputSchema: z.ZodObject<{
1498
1562
  available: z.ZodBoolean;
1499
1563
  unavailableReason: z.ZodNullable<z.ZodEnum<{
1500
1564
  authentication_required: "authentication_required";
1501
- ultra_required: "ultra_required";
1502
1565
  quota_exhausted: "quota_exhausted";
1503
1566
  service_unavailable: "service_unavailable";
1567
+ ultra_required: "ultra_required";
1504
1568
  }>>;
1505
1569
  requiresUltra: z.ZodBoolean;
1506
1570
  modelRevision: z.ZodString;
@@ -1510,9 +1574,9 @@ declare const HostedAiStatusOutputSchema: z.ZodObject<{
1510
1574
  available: z.ZodBoolean;
1511
1575
  unavailableReason: z.ZodNullable<z.ZodEnum<{
1512
1576
  authentication_required: "authentication_required";
1513
- ultra_required: "ultra_required";
1514
1577
  quota_exhausted: "quota_exhausted";
1515
1578
  service_unavailable: "service_unavailable";
1579
+ ultra_required: "ultra_required";
1516
1580
  }>>;
1517
1581
  requiresUltra: z.ZodBoolean;
1518
1582
  modelRevision: z.ZodString;
@@ -1524,9 +1588,9 @@ declare const HostedAiStatusOutputSchema: z.ZodObject<{
1524
1588
  available: z.ZodBoolean;
1525
1589
  unavailableReason: z.ZodNullable<z.ZodEnum<{
1526
1590
  authentication_required: "authentication_required";
1527
- ultra_required: "ultra_required";
1528
1591
  quota_exhausted: "quota_exhausted";
1529
1592
  service_unavailable: "service_unavailable";
1593
+ ultra_required: "ultra_required";
1530
1594
  }>>;
1531
1595
  requiresUltra: z.ZodBoolean;
1532
1596
  modelRevision: z.ZodString;
@@ -1536,9 +1600,9 @@ declare const HostedAiStatusOutputSchema: z.ZodObject<{
1536
1600
  available: z.ZodBoolean;
1537
1601
  unavailableReason: z.ZodNullable<z.ZodEnum<{
1538
1602
  authentication_required: "authentication_required";
1539
- ultra_required: "ultra_required";
1540
1603
  quota_exhausted: "quota_exhausted";
1541
1604
  service_unavailable: "service_unavailable";
1605
+ ultra_required: "ultra_required";
1542
1606
  }>>;
1543
1607
  requiresUltra: z.ZodBoolean;
1544
1608
  modelRevision: z.ZodString;
@@ -1569,6 +1633,11 @@ type HostedAiStatusOutput = z.infer<typeof HostedAiStatusOutputSchema>;
1569
1633
  //#region src/schemas/notebase.d.ts
1570
1634
  declare const NotebaseListInputSchema: z.ZodObject<{}, z.core.$strip>;
1571
1635
  type NotebaseListInput = z.infer<typeof NotebaseListInputSchema>;
1636
+ declare const notebaseSummarySchema: z.ZodObject<{
1637
+ id: z.ZodString;
1638
+ name: z.ZodString;
1639
+ }, z.core.$strip>;
1640
+ type NotebaseSummary = z.infer<typeof notebaseSummarySchema>;
1572
1641
  declare const NotebaseListItemSchema: z.ZodObject<{
1573
1642
  id: z.ZodString;
1574
1643
  name: z.ZodString;
@@ -1588,8 +1657,8 @@ declare const notebaseSchema: z.ZodObject<{
1588
1657
  srsDesiredRetention: z.ZodNumber;
1589
1658
  srsEnableShortTerm: z.ZodBoolean;
1590
1659
  srsMaximumInterval: z.ZodNumber;
1591
- srsLearningSteps: z.ZodArray<z.ZodTemplateLiteral<`${number}m` | `${number}h` | `${number}d`>>;
1592
- srsRelearningSteps: z.ZodArray<z.ZodTemplateLiteral<`${number}m` | `${number}h` | `${number}d`>>;
1660
+ srsLearningSteps: z.ZodArray<z.ZodTemplateLiteral<`${number}d` | `${number}h` | `${number}m`>>;
1661
+ srsRelearningSteps: z.ZodArray<z.ZodTemplateLiteral<`${number}d` | `${number}h` | `${number}m`>>;
1593
1662
  srsLeechThreshold: z.ZodNumber;
1594
1663
  srsEnableFuzz: z.ZodBoolean;
1595
1664
  srsWeights: z.ZodNullable<z.ZodArray<z.ZodNumber>>;
@@ -1610,8 +1679,8 @@ declare const notebaseCreateDataSchema: z.ZodObject<{
1610
1679
  type: z.ZodLiteral<"number">;
1611
1680
  decimal: z.ZodDefault<z.ZodNumber>;
1612
1681
  format: z.ZodDefault<z.ZodEnum<{
1613
- number: "number";
1614
1682
  currency: "currency";
1683
+ number: "number";
1615
1684
  percent: "percent";
1616
1685
  }>>;
1617
1686
  }, z.core.$strip>, z.ZodObject<{
@@ -1652,8 +1721,8 @@ declare const NotebaseCreateInputSchema: z.ZodObject<{
1652
1721
  type: z.ZodLiteral<"number">;
1653
1722
  decimal: z.ZodDefault<z.ZodNumber>;
1654
1723
  format: z.ZodDefault<z.ZodEnum<{
1655
- number: "number";
1656
1724
  currency: "currency";
1725
+ number: "number";
1657
1726
  percent: "percent";
1658
1727
  }>>;
1659
1728
  }, z.core.$strip>, z.ZodObject<{
@@ -1682,6 +1751,23 @@ declare const NotebaseCreateInputSchema: z.ZodObject<{
1682
1751
  }, z.core.$strict>;
1683
1752
  type NotebaseCreateInput = z.infer<typeof NotebaseCreateInputSchema>;
1684
1753
  declare const NotebaseCreateOutputSchema: z.ZodObject<{
1754
+ notebase: z.ZodObject<{
1755
+ id: z.ZodString;
1756
+ userId: z.ZodString;
1757
+ name: z.ZodString;
1758
+ srsNewPerDay: z.ZodNumber;
1759
+ srsReviewsPerDay: z.ZodNumber;
1760
+ srsDesiredRetention: z.ZodNumber;
1761
+ srsEnableShortTerm: z.ZodBoolean;
1762
+ srsMaximumInterval: z.ZodNumber;
1763
+ srsLearningSteps: z.ZodArray<z.ZodTemplateLiteral<`${number}d` | `${number}h` | `${number}m`>>;
1764
+ srsRelearningSteps: z.ZodArray<z.ZodTemplateLiteral<`${number}d` | `${number}h` | `${number}m`>>;
1765
+ srsLeechThreshold: z.ZodNumber;
1766
+ srsEnableFuzz: z.ZodBoolean;
1767
+ srsWeights: z.ZodNullable<z.ZodArray<z.ZodNumber>>;
1768
+ createdAt: z.ZodDate;
1769
+ updatedAt: z.ZodDate;
1770
+ }, z.core.$strip>;
1685
1771
  txid: z.ZodNumber;
1686
1772
  }, z.core.$strip>;
1687
1773
  type NotebaseCreateOutput = z.infer<typeof NotebaseCreateOutputSchema>;
@@ -1701,6 +1787,23 @@ declare const NotebaseUpdateInputSchema: z.ZodObject<{
1701
1787
  }, z.core.$strict>;
1702
1788
  type NotebaseUpdateInput = z.infer<typeof NotebaseUpdateInputSchema>;
1703
1789
  declare const NotebaseUpdateOutputSchema: z.ZodObject<{
1790
+ notebase: z.ZodObject<{
1791
+ id: z.ZodString;
1792
+ userId: z.ZodString;
1793
+ name: z.ZodString;
1794
+ srsNewPerDay: z.ZodNumber;
1795
+ srsReviewsPerDay: z.ZodNumber;
1796
+ srsDesiredRetention: z.ZodNumber;
1797
+ srsEnableShortTerm: z.ZodBoolean;
1798
+ srsMaximumInterval: z.ZodNumber;
1799
+ srsLearningSteps: z.ZodArray<z.ZodTemplateLiteral<`${number}d` | `${number}h` | `${number}m`>>;
1800
+ srsRelearningSteps: z.ZodArray<z.ZodTemplateLiteral<`${number}d` | `${number}h` | `${number}m`>>;
1801
+ srsLeechThreshold: z.ZodNumber;
1802
+ srsEnableFuzz: z.ZodBoolean;
1803
+ srsWeights: z.ZodNullable<z.ZodArray<z.ZodNumber>>;
1804
+ createdAt: z.ZodDate;
1805
+ updatedAt: z.ZodDate;
1806
+ }, z.core.$strip>;
1704
1807
  txid: z.ZodNumber;
1705
1808
  }, z.core.$strip>;
1706
1809
  type NotebaseUpdateOutput = z.infer<typeof NotebaseUpdateOutputSchema>;
@@ -1709,6 +1812,7 @@ declare const NotebaseDeleteInputSchema: z.ZodObject<{
1709
1812
  }, z.core.$strip>;
1710
1813
  type NotebaseDeleteInput = z.infer<typeof NotebaseDeleteInputSchema>;
1711
1814
  declare const NotebaseDeleteOutputSchema: z.ZodObject<{
1815
+ id: z.ZodUUID;
1712
1816
  txid: z.ZodNumber;
1713
1817
  }, z.core.$strip>;
1714
1818
  type NotebaseDeleteOutput = z.infer<typeof NotebaseDeleteOutputSchema>;
@@ -1716,6 +1820,18 @@ declare const NotebaseGetInputSchema: z.ZodObject<{
1716
1820
  id: z.ZodUUID;
1717
1821
  }, z.core.$strip>;
1718
1822
  type NotebaseGetInput = z.infer<typeof NotebaseGetInputSchema>;
1823
+ declare const NotebaseGetSummaryInputSchema: z.ZodObject<{
1824
+ id: z.ZodUUID;
1825
+ }, z.core.$strip>;
1826
+ type NotebaseGetSummaryInput = z.infer<typeof NotebaseGetSummaryInputSchema>;
1827
+ declare const NotebaseGetSummaryOutputSchema: z.ZodObject<{
1828
+ id: z.ZodString;
1829
+ name: z.ZodString;
1830
+ srsNewPerDay: z.ZodNumber;
1831
+ srsReviewsPerDay: z.ZodNumber;
1832
+ srsDesiredRetention: z.ZodNumber;
1833
+ }, z.core.$strip>;
1834
+ type NotebaseGetSummaryOutput = z.infer<typeof NotebaseGetSummaryOutputSchema>;
1719
1835
  declare const NotebaseGetSchemaInputSchema: z.ZodObject<{
1720
1836
  id: z.ZodUUID;
1721
1837
  }, z.core.$strip>;
@@ -1729,8 +1845,8 @@ declare const NotebaseGetOutputSchema: z.ZodObject<{
1729
1845
  srsDesiredRetention: z.ZodNumber;
1730
1846
  srsEnableShortTerm: z.ZodBoolean;
1731
1847
  srsMaximumInterval: z.ZodNumber;
1732
- srsLearningSteps: z.ZodArray<z.ZodTemplateLiteral<`${number}m` | `${number}h` | `${number}d`>>;
1733
- srsRelearningSteps: z.ZodArray<z.ZodTemplateLiteral<`${number}m` | `${number}h` | `${number}d`>>;
1848
+ srsLearningSteps: z.ZodArray<z.ZodTemplateLiteral<`${number}d` | `${number}h` | `${number}m`>>;
1849
+ srsRelearningSteps: z.ZodArray<z.ZodTemplateLiteral<`${number}d` | `${number}h` | `${number}m`>>;
1734
1850
  srsLeechThreshold: z.ZodNumber;
1735
1851
  srsEnableFuzz: z.ZodBoolean;
1736
1852
  srsWeights: z.ZodNullable<z.ZodArray<z.ZodNumber>>;
@@ -1746,8 +1862,8 @@ declare const NotebaseGetOutputSchema: z.ZodObject<{
1746
1862
  type: z.ZodLiteral<"number">;
1747
1863
  decimal: z.ZodDefault<z.ZodNumber>;
1748
1864
  format: z.ZodDefault<z.ZodEnum<{
1749
- number: "number";
1750
1865
  currency: "currency";
1866
+ number: "number";
1751
1867
  percent: "percent";
1752
1868
  }>>;
1753
1869
  }, z.core.$strip>, z.ZodObject<{
@@ -1783,9 +1899,9 @@ declare const NotebaseGetOutputSchema: z.ZodObject<{
1783
1899
  notebaseId: z.ZodString;
1784
1900
  name: z.ZodString;
1785
1901
  type: z.ZodEnum<{
1786
- table: "table";
1787
- kanban: "kanban";
1788
1902
  gallery: "gallery";
1903
+ kanban: "kanban";
1904
+ table: "table";
1789
1905
  }>;
1790
1906
  config: z.ZodNullable<z.ZodObject<{
1791
1907
  notebaseColumnWidths: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
@@ -1814,8 +1930,8 @@ declare const NotebaseGetSchemaOutputSchema: z.ZodObject<{
1814
1930
  type: z.ZodLiteral<"number">;
1815
1931
  decimal: z.ZodDefault<z.ZodNumber>;
1816
1932
  format: z.ZodDefault<z.ZodEnum<{
1817
- number: "number";
1818
1933
  currency: "currency";
1934
+ number: "number";
1819
1935
  percent: "percent";
1820
1936
  }>>;
1821
1937
  }, z.core.$strip>, z.ZodObject<{
@@ -1853,8 +1969,8 @@ declare const notebaseColumnSchema: z.ZodObject<{
1853
1969
  type: z.ZodLiteral<"number">;
1854
1970
  decimal: z.ZodDefault<z.ZodNumber>;
1855
1971
  format: z.ZodDefault<z.ZodEnum<{
1856
- number: "number";
1857
1972
  currency: "currency";
1973
+ number: "number";
1858
1974
  percent: "percent";
1859
1975
  }>>;
1860
1976
  }, z.core.$strip>, z.ZodObject<{
@@ -1887,8 +2003,8 @@ declare const notebaseColumnCreateDataSchema: z.ZodObject<{
1887
2003
  type: z.ZodLiteral<"number">;
1888
2004
  decimal: z.ZodDefault<z.ZodNumber>;
1889
2005
  format: z.ZodDefault<z.ZodEnum<{
1890
- number: "number";
1891
2006
  currency: "currency";
2007
+ number: "number";
1892
2008
  percent: "percent";
1893
2009
  }>>;
1894
2010
  }, z.core.$strip>, z.ZodObject<{
@@ -1907,6 +2023,7 @@ declare const notebaseColumnCreateDataSchema: z.ZodObject<{
1907
2023
  }, z.core.$strict>;
1908
2024
  type NotebaseColumnCreateData = z.infer<typeof notebaseColumnCreateDataSchema>;
1909
2025
  declare const notebaseColumnUpdateDataSchema: z.ZodObject<{
2026
+ expectedUpdatedAt: z.ZodOptional<z.ZodISODateTime>;
1910
2027
  name: z.ZodOptional<z.ZodString>;
1911
2028
  config: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1912
2029
  type: z.ZodLiteral<"string">;
@@ -1914,8 +2031,8 @@ declare const notebaseColumnUpdateDataSchema: z.ZodObject<{
1914
2031
  type: z.ZodLiteral<"number">;
1915
2032
  decimal: z.ZodDefault<z.ZodNumber>;
1916
2033
  format: z.ZodDefault<z.ZodEnum<{
1917
- number: "number";
1918
2034
  currency: "currency";
2035
+ number: "number";
1919
2036
  percent: "percent";
1920
2037
  }>>;
1921
2038
  }, z.core.$strip>, z.ZodObject<{
@@ -1946,8 +2063,8 @@ declare const NotebaseColumnCreateInputSchema: z.ZodObject<{
1946
2063
  type: z.ZodLiteral<"number">;
1947
2064
  decimal: z.ZodDefault<z.ZodNumber>;
1948
2065
  format: z.ZodDefault<z.ZodEnum<{
1949
- number: "number";
1950
2066
  currency: "currency";
2067
+ number: "number";
1951
2068
  percent: "percent";
1952
2069
  }>>;
1953
2070
  }, z.core.$strip>, z.ZodObject<{
@@ -1967,12 +2084,47 @@ declare const NotebaseColumnCreateInputSchema: z.ZodObject<{
1967
2084
  }, z.core.$strip>;
1968
2085
  type NotebaseColumnCreateInput = z.infer<typeof NotebaseColumnCreateInputSchema>;
1969
2086
  declare const NotebaseColumnCreateOutputSchema: z.ZodObject<{
2087
+ field: z.ZodObject<{
2088
+ id: z.ZodString;
2089
+ notebaseId: z.ZodString;
2090
+ name: z.ZodString;
2091
+ config: z.ZodDiscriminatedUnion<[z.ZodObject<{
2092
+ type: z.ZodLiteral<"string">;
2093
+ }, z.core.$strip>, z.ZodObject<{
2094
+ type: z.ZodLiteral<"number">;
2095
+ decimal: z.ZodDefault<z.ZodNumber>;
2096
+ format: z.ZodDefault<z.ZodEnum<{
2097
+ currency: "currency";
2098
+ number: "number";
2099
+ percent: "percent";
2100
+ }>>;
2101
+ }, z.core.$strip>, z.ZodObject<{
2102
+ type: z.ZodLiteral<"boolean">;
2103
+ }, z.core.$strip>, z.ZodObject<{
2104
+ type: z.ZodLiteral<"date">;
2105
+ dateFormat: z.ZodOptional<z.ZodString>;
2106
+ }, z.core.$strip>, z.ZodObject<{
2107
+ type: z.ZodLiteral<"select">;
2108
+ options: z.ZodDefault<z.ZodArray<z.ZodObject<{
2109
+ id: z.ZodString;
2110
+ value: z.ZodString;
2111
+ color: z.ZodString;
2112
+ }, z.core.$strip>>>;
2113
+ }, z.core.$strip>], "type">;
2114
+ position: z.ZodNumber;
2115
+ isPrimary: z.ZodBoolean;
2116
+ width: z.ZodNullable<z.ZodNumber>;
2117
+ wrap: z.ZodBoolean;
2118
+ createdAt: z.ZodCoercedDate<unknown>;
2119
+ updatedAt: z.ZodCoercedDate<unknown>;
2120
+ }, z.core.$strip>;
1970
2121
  txid: z.ZodNumber;
1971
2122
  }, z.core.$strip>;
1972
2123
  type NotebaseColumnCreateOutput = z.infer<typeof NotebaseColumnCreateOutputSchema>;
1973
2124
  declare const NotebaseColumnUpdateInputSchema: z.ZodObject<{
1974
2125
  notebaseColumnId: z.ZodUUID;
1975
2126
  data: z.ZodObject<{
2127
+ expectedUpdatedAt: z.ZodOptional<z.ZodISODateTime>;
1976
2128
  name: z.ZodOptional<z.ZodString>;
1977
2129
  config: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1978
2130
  type: z.ZodLiteral<"string">;
@@ -1980,8 +2132,8 @@ declare const NotebaseColumnUpdateInputSchema: z.ZodObject<{
1980
2132
  type: z.ZodLiteral<"number">;
1981
2133
  decimal: z.ZodDefault<z.ZodNumber>;
1982
2134
  format: z.ZodDefault<z.ZodEnum<{
1983
- number: "number";
1984
2135
  currency: "currency";
2136
+ number: "number";
1985
2137
  percent: "percent";
1986
2138
  }>>;
1987
2139
  }, z.core.$strip>, z.ZodObject<{
@@ -2003,6 +2155,40 @@ declare const NotebaseColumnUpdateInputSchema: z.ZodObject<{
2003
2155
  }, z.core.$strip>;
2004
2156
  type NotebaseColumnUpdateInput = z.infer<typeof NotebaseColumnUpdateInputSchema>;
2005
2157
  declare const NotebaseColumnUpdateOutputSchema: z.ZodObject<{
2158
+ field: z.ZodObject<{
2159
+ id: z.ZodString;
2160
+ notebaseId: z.ZodString;
2161
+ name: z.ZodString;
2162
+ config: z.ZodDiscriminatedUnion<[z.ZodObject<{
2163
+ type: z.ZodLiteral<"string">;
2164
+ }, z.core.$strip>, z.ZodObject<{
2165
+ type: z.ZodLiteral<"number">;
2166
+ decimal: z.ZodDefault<z.ZodNumber>;
2167
+ format: z.ZodDefault<z.ZodEnum<{
2168
+ currency: "currency";
2169
+ number: "number";
2170
+ percent: "percent";
2171
+ }>>;
2172
+ }, z.core.$strip>, z.ZodObject<{
2173
+ type: z.ZodLiteral<"boolean">;
2174
+ }, z.core.$strip>, z.ZodObject<{
2175
+ type: z.ZodLiteral<"date">;
2176
+ dateFormat: z.ZodOptional<z.ZodString>;
2177
+ }, z.core.$strip>, z.ZodObject<{
2178
+ type: z.ZodLiteral<"select">;
2179
+ options: z.ZodDefault<z.ZodArray<z.ZodObject<{
2180
+ id: z.ZodString;
2181
+ value: z.ZodString;
2182
+ color: z.ZodString;
2183
+ }, z.core.$strip>>>;
2184
+ }, z.core.$strip>], "type">;
2185
+ position: z.ZodNumber;
2186
+ isPrimary: z.ZodBoolean;
2187
+ width: z.ZodNullable<z.ZodNumber>;
2188
+ wrap: z.ZodBoolean;
2189
+ createdAt: z.ZodCoercedDate<unknown>;
2190
+ updatedAt: z.ZodCoercedDate<unknown>;
2191
+ }, z.core.$strip>;
2006
2192
  txid: z.ZodNumber;
2007
2193
  }, z.core.$strip>;
2008
2194
  type NotebaseColumnUpdateOutput = z.infer<typeof NotebaseColumnUpdateOutputSchema>;
@@ -2011,6 +2197,7 @@ declare const NotebaseColumnDeleteInputSchema: z.ZodObject<{
2011
2197
  }, z.core.$strip>;
2012
2198
  type NotebaseColumnDeleteInput = z.infer<typeof NotebaseColumnDeleteInputSchema>;
2013
2199
  declare const NotebaseColumnDeleteOutputSchema: z.ZodObject<{
2200
+ id: z.ZodUUID;
2014
2201
  txid: z.ZodNumber;
2015
2202
  }, z.core.$strip>;
2016
2203
  type NotebaseColumnDeleteOutput = z.infer<typeof NotebaseColumnDeleteOutputSchema>;
@@ -2042,6 +2229,7 @@ declare const notebaseRowCreateDataSchema: z.ZodObject<{
2042
2229
  type NotebaseRowCreateData = z.infer<typeof notebaseRowCreateDataSchema>;
2043
2230
  declare const notebaseRowUpdateDataSchema: z.ZodObject<{
2044
2231
  cells: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2232
+ expectedUpdatedAt: z.ZodOptional<z.ZodISODateTime>;
2045
2233
  }, z.core.$strict>;
2046
2234
  type NotebaseRowUpdateData = z.infer<typeof notebaseRowUpdateDataSchema>;
2047
2235
  declare const NotebaseRowCreateInputSchema: z.ZodObject<{
@@ -2053,6 +2241,14 @@ declare const NotebaseRowCreateInputSchema: z.ZodObject<{
2053
2241
  }, z.core.$strip>;
2054
2242
  type NotebaseRowCreateInput = z.infer<typeof NotebaseRowCreateInputSchema>;
2055
2243
  declare const NotebaseRowCreateOutputSchema: z.ZodObject<{
2244
+ note: z.ZodObject<{
2245
+ id: z.ZodString;
2246
+ notebaseId: z.ZodString;
2247
+ cells: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2248
+ position: z.ZodNumber;
2249
+ createdAt: z.ZodCoercedDate<unknown>;
2250
+ updatedAt: z.ZodCoercedDate<unknown>;
2251
+ }, z.core.$strip>;
2056
2252
  txid: z.ZodNumber;
2057
2253
  }, z.core.$strip>;
2058
2254
  type NotebaseRowCreateOutput = z.infer<typeof NotebaseRowCreateOutputSchema>;
@@ -2066,6 +2262,14 @@ declare const NotebaseRowCreateManyInputSchema: z.ZodObject<{
2066
2262
  }, z.core.$strip>;
2067
2263
  type NotebaseRowCreateManyInput = z.infer<typeof NotebaseRowCreateManyInputSchema>;
2068
2264
  declare const NotebaseRowCreateManyOutputSchema: z.ZodObject<{
2265
+ items: z.ZodArray<z.ZodObject<{
2266
+ id: z.ZodString;
2267
+ notebaseId: z.ZodString;
2268
+ cells: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2269
+ position: z.ZodNumber;
2270
+ createdAt: z.ZodCoercedDate<unknown>;
2271
+ updatedAt: z.ZodCoercedDate<unknown>;
2272
+ }, z.core.$strip>>;
2069
2273
  txid: z.ZodNumber;
2070
2274
  }, z.core.$strip>;
2071
2275
  type NotebaseRowCreateManyOutput = z.infer<typeof NotebaseRowCreateManyOutputSchema>;
@@ -2073,6 +2277,7 @@ declare const NotebaseRowUpdateInputSchema: z.ZodObject<{
2073
2277
  notebaseRowId: z.ZodUUID;
2074
2278
  data: z.ZodObject<{
2075
2279
  cells: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2280
+ expectedUpdatedAt: z.ZodOptional<z.ZodISODateTime>;
2076
2281
  }, z.core.$strict>;
2077
2282
  }, z.core.$strip>;
2078
2283
  type NotebaseRowUpdateInput = z.infer<typeof NotebaseRowUpdateInputSchema>;
@@ -2091,6 +2296,7 @@ declare const NotebaseRowDeleteInputSchema: z.ZodObject<{
2091
2296
  }, z.core.$strip>;
2092
2297
  type NotebaseRowDeleteInput = z.infer<typeof NotebaseRowDeleteInputSchema>;
2093
2298
  declare const NotebaseRowDeleteOutputSchema: z.ZodObject<{
2299
+ id: z.ZodUUID;
2094
2300
  txid: z.ZodNumber;
2095
2301
  }, z.core.$strip>;
2096
2302
  type NotebaseRowDeleteOutput = z.infer<typeof NotebaseRowDeleteOutputSchema>;
@@ -2103,6 +2309,35 @@ declare const NotebaseRowReorderOutputSchema: z.ZodObject<{
2103
2309
  txid: z.ZodNumber;
2104
2310
  }, z.core.$strip>;
2105
2311
  type NotebaseRowReorderOutput = z.infer<typeof NotebaseRowReorderOutputSchema>;
2312
+ declare const NotebaseRowListInputSchema: z.ZodObject<{
2313
+ limit: z.ZodOptional<z.ZodNumber>;
2314
+ offset: z.ZodOptional<z.ZodNumber>;
2315
+ notebaseId: z.ZodOptional<z.ZodUUID>;
2316
+ query: z.ZodOptional<z.ZodString>;
2317
+ }, z.core.$strip>;
2318
+ type NotebaseRowListInput = z.infer<typeof NotebaseRowListInputSchema>;
2319
+ declare const NotebaseRowListOutputSchema: z.ZodObject<{
2320
+ items: z.ZodArray<z.ZodObject<{
2321
+ id: z.ZodString;
2322
+ notebaseId: z.ZodString;
2323
+ cells: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2324
+ position: z.ZodNumber;
2325
+ createdAt: z.ZodCoercedDate<unknown>;
2326
+ updatedAt: z.ZodCoercedDate<unknown>;
2327
+ }, z.core.$strip>>;
2328
+ hasMore: z.ZodBoolean;
2329
+ }, z.core.$strip>;
2330
+ declare const NotebaseRowGetInputSchema: z.ZodObject<{
2331
+ id: z.ZodUUID;
2332
+ }, z.core.$strip>;
2333
+ declare const NotebaseRowGetOutputSchema: z.ZodObject<{
2334
+ id: z.ZodString;
2335
+ notebaseId: z.ZodString;
2336
+ cells: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2337
+ position: z.ZodNumber;
2338
+ createdAt: z.ZodCoercedDate<unknown>;
2339
+ updatedAt: z.ZodCoercedDate<unknown>;
2340
+ }, z.core.$strip>;
2106
2341
  //#endregion
2107
2342
  //#region src/schemas/notebase-stats.d.ts
2108
2343
  declare const notebaseActivityStatsItemSchema: z.ZodObject<{
@@ -2133,9 +2368,9 @@ type NotebaseRowGrowthStatsOutput = z.infer<typeof notebaseRowGrowthStatsOutputS
2133
2368
  //#endregion
2134
2369
  //#region src/schemas/notebase-view.d.ts
2135
2370
  declare const notebaseViewTypeSchema: z.ZodEnum<{
2136
- table: "table";
2137
- kanban: "kanban";
2138
2371
  gallery: "gallery";
2372
+ kanban: "kanban";
2373
+ table: "table";
2139
2374
  }>;
2140
2375
  type NotebaseViewType = z.infer<typeof notebaseViewTypeSchema>;
2141
2376
  declare const notebaseViewConfigSchema: z.ZodObject<{
@@ -2174,9 +2409,9 @@ declare const notebaseViewCreateDataSchema: z.ZodObject<{
2174
2409
  id: z.ZodOptional<z.ZodUUID>;
2175
2410
  name: z.ZodString;
2176
2411
  type: z.ZodEnum<{
2177
- table: "table";
2178
- kanban: "kanban";
2179
2412
  gallery: "gallery";
2413
+ kanban: "kanban";
2414
+ table: "table";
2180
2415
  }>;
2181
2416
  config: z.ZodOptional<z.ZodObject<{
2182
2417
  notebaseColumnWidths: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
@@ -2200,9 +2435,9 @@ type NotebaseViewCreateData = z.infer<typeof notebaseViewCreateDataSchema>;
2200
2435
  declare const notebaseViewUpdateDataSchema: z.ZodObject<{
2201
2436
  name: z.ZodOptional<z.ZodString>;
2202
2437
  type: z.ZodOptional<z.ZodEnum<{
2203
- table: "table";
2204
- kanban: "kanban";
2205
2438
  gallery: "gallery";
2439
+ kanban: "kanban";
2440
+ table: "table";
2206
2441
  }>>;
2207
2442
  config: z.ZodOptional<z.ZodObject<{
2208
2443
  notebaseColumnWidths: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
@@ -2228,9 +2463,9 @@ declare const notebaseViewSchema: z.ZodObject<{
2228
2463
  notebaseId: z.ZodString;
2229
2464
  name: z.ZodString;
2230
2465
  type: z.ZodEnum<{
2231
- table: "table";
2232
- kanban: "kanban";
2233
2466
  gallery: "gallery";
2467
+ kanban: "kanban";
2468
+ table: "table";
2234
2469
  }>;
2235
2470
  config: z.ZodNullable<z.ZodObject<{
2236
2471
  notebaseColumnWidths: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
@@ -2250,7 +2485,7 @@ declare const timezoneSchema: z.ZodString;
2250
2485
  type Timezone = z.infer<typeof timezoneSchema>;
2251
2486
  //#endregion
2252
2487
  //#region src/schemas/srs.d.ts
2253
- declare const stepSchema: z.ZodTemplateLiteral<`${number}m` | `${number}h` | `${number}d`>;
2488
+ declare const stepSchema: z.ZodTemplateLiteral<`${number}d` | `${number}h` | `${number}m`>;
2254
2489
  type Step = z.infer<typeof stepSchema>;
2255
2490
  declare const SRS_REVIEW_CLIENT_ID_NAMESPACE = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
2256
2491
  interface SrsReviewClientIdCard {
@@ -2263,21 +2498,22 @@ declare const srsReviewInputSchema: z.ZodObject<{
2263
2498
  id: z.ZodOptional<z.ZodUUID>;
2264
2499
  rating: z.ZodEnum<{
2265
2500
  again: "again";
2266
- hard: "hard";
2267
- good: "good";
2268
2501
  easy: "easy";
2502
+ good: "good";
2503
+ hard: "hard";
2269
2504
  }>;
2270
2505
  durationMs: z.ZodNumber;
2271
2506
  timezone: z.ZodString;
2272
2507
  }, z.core.$strict>;
2273
2508
  type SrsReviewInput = z.infer<typeof srsReviewInputSchema>;
2274
2509
  declare const srsRollbackReviewInputSchema: z.ZodObject<{
2510
+ expectedReviewId: z.ZodOptional<z.ZodUUID>;
2275
2511
  cardId: z.ZodUUID;
2276
2512
  }, z.core.$strict>;
2277
2513
  type SrsRollbackReviewInput = z.infer<typeof srsRollbackReviewInputSchema>;
2278
2514
  declare const srsScheduleStatusStatsSchema: z.ZodRecord<z.ZodEnum<{
2279
- new: "new";
2280
2515
  learning: "learning";
2516
+ new: "new";
2281
2517
  review: "review";
2282
2518
  }>, z.ZodNumber>;
2283
2519
  type SrsScheduleStatusStats = z.infer<typeof srsScheduleStatusStatsSchema>;
@@ -2287,8 +2523,8 @@ declare const srsScheduleStatusStatsInputSchema: z.ZodObject<{
2287
2523
  }, z.core.$strict>;
2288
2524
  type SrsScheduleStatusStatsInput = z.infer<typeof srsScheduleStatusStatsInputSchema>;
2289
2525
  declare const srsScheduleStatusStatsOutputSchema: z.ZodRecord<z.ZodUUID, z.ZodRecord<z.ZodEnum<{
2290
- new: "new";
2291
2526
  learning: "learning";
2527
+ new: "new";
2292
2528
  review: "review";
2293
2529
  }>, z.ZodNumber>>;
2294
2530
  type SrsScheduleStatusStatsOutput = z.infer<typeof srsScheduleStatusStatsOutputSchema>;
@@ -2313,123 +2549,154 @@ declare const srsRevlogSchema: z.ZodObject<{
2313
2549
  cardId: z.ZodUUID;
2314
2550
  rating: z.ZodEnum<{
2315
2551
  again: "again";
2316
- hard: "hard";
2317
- good: "good";
2318
2552
  easy: "easy";
2553
+ good: "good";
2554
+ hard: "hard";
2319
2555
  }>;
2320
2556
  state: z.ZodEnum<{
2321
- new: "new";
2322
2557
  learning: "learning";
2323
- review: "review";
2558
+ new: "new";
2324
2559
  relearning: "relearning";
2560
+ review: "review";
2325
2561
  }>;
2326
2562
  stability: z.ZodNumber;
2327
2563
  afterScheduleStatus: z.ZodEnum<{
2328
- new: "new";
2564
+ buried: "buried";
2329
2565
  learning: "learning";
2566
+ new: "new";
2330
2567
  review: "review";
2331
2568
  suspended: "suspended";
2332
- buried: "buried";
2333
2569
  }>;
2334
2570
  afterStability: z.ZodNumber;
2335
2571
  reviewedAt: z.ZodCoercedDate<unknown>;
2336
2572
  durationMs: z.ZodNumber;
2337
- fsrsReviewLogSnapshot: z.ZodObject<{
2573
+ fsrsReviewLogSnapshot: z.ZodPipe<z.ZodObject<{
2338
2574
  rating: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>;
2339
2575
  state: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
2576
+ scheduleStatus: z.ZodEnum<{
2577
+ learning: "learning";
2578
+ new: "new";
2579
+ review: "review";
2580
+ suspended: "suspended";
2581
+ }>;
2340
2582
  dueAt: z.ZodString;
2341
2583
  stability: z.ZodNumber;
2342
2584
  difficulty: z.ZodNumber;
2343
- scheduledDays: z.ZodNumber;
2585
+ scheduledDays: z.ZodOptional<z.ZodNumber>;
2344
2586
  learningSteps: z.ZodNumber;
2345
2587
  review: z.ZodString;
2346
- }, z.core.$strict>;
2588
+ }, z.core.$strict>, z.ZodTransform<{
2589
+ rating: 1 | 2 | 3 | 4;
2590
+ state: 0 | 1 | 2 | 3;
2591
+ scheduleStatus: "learning" | "new" | "review" | "suspended";
2592
+ dueAt: string;
2593
+ stability: number;
2594
+ difficulty: number;
2595
+ learningSteps: number;
2596
+ review: string;
2597
+ }, {
2598
+ rating: 1 | 2 | 3 | 4;
2599
+ state: 0 | 1 | 2 | 3;
2600
+ scheduleStatus: "learning" | "new" | "review" | "suspended";
2601
+ dueAt: string;
2602
+ stability: number;
2603
+ difficulty: number;
2604
+ scheduledDays?: number | undefined;
2605
+ learningSteps: number;
2606
+ review: string;
2607
+ }>>;
2347
2608
  createdAt: z.ZodCoercedDate<unknown>;
2348
2609
  }, z.core.$strip>;
2349
2610
  type SrsRevlog = z.infer<typeof srsRevlogSchema>;
2350
2611
  declare const srsRevlogWithoutSnapshotSchema: z.ZodObject<{
2351
2612
  id: z.ZodUUID;
2352
2613
  notebaseId: z.ZodUUID;
2353
- state: z.ZodEnum<{
2354
- new: "new";
2355
- learning: "learning";
2356
- review: "review";
2357
- relearning: "relearning";
2358
- }>;
2359
- stability: z.ZodNumber;
2360
- createdAt: z.ZodCoercedDate<unknown>;
2361
2614
  cardId: z.ZodUUID;
2362
2615
  rating: z.ZodEnum<{
2363
2616
  again: "again";
2364
- hard: "hard";
2365
- good: "good";
2366
2617
  easy: "easy";
2618
+ good: "good";
2619
+ hard: "hard";
2367
2620
  }>;
2368
- afterScheduleStatus: z.ZodEnum<{
2621
+ state: z.ZodEnum<{
2622
+ learning: "learning";
2369
2623
  new: "new";
2624
+ relearning: "relearning";
2625
+ review: "review";
2626
+ }>;
2627
+ stability: z.ZodNumber;
2628
+ afterScheduleStatus: z.ZodEnum<{
2629
+ buried: "buried";
2370
2630
  learning: "learning";
2631
+ new: "new";
2371
2632
  review: "review";
2372
2633
  suspended: "suspended";
2373
- buried: "buried";
2374
2634
  }>;
2375
2635
  afterStability: z.ZodNumber;
2376
2636
  reviewedAt: z.ZodCoercedDate<unknown>;
2377
2637
  durationMs: z.ZodNumber;
2638
+ createdAt: z.ZodCoercedDate<unknown>;
2378
2639
  }, z.core.$strip>;
2379
2640
  type SrsRevlogWithoutSnapshot = z.infer<typeof srsRevlogWithoutSnapshotSchema>;
2380
2641
  declare const srsListCardRevlogsInputSchema: z.ZodObject<{
2381
- cardId: z.ZodUUID;
2642
+ limit: z.ZodOptional<z.ZodNumber>;
2643
+ offset: z.ZodOptional<z.ZodNumber>;
2644
+ notebaseId: z.ZodOptional<z.ZodUUID>;
2645
+ cardId: z.ZodOptional<z.ZodUUID>;
2382
2646
  }, z.core.$strict>;
2383
2647
  type SrsListCardRevlogsInput = z.infer<typeof srsListCardRevlogsInputSchema>;
2384
2648
  declare const srsListCardRevlogsOutputSchema: z.ZodObject<{
2385
2649
  items: z.ZodArray<z.ZodObject<{
2386
2650
  id: z.ZodUUID;
2387
2651
  notebaseId: z.ZodUUID;
2388
- state: z.ZodEnum<{
2389
- new: "new";
2390
- learning: "learning";
2391
- review: "review";
2392
- relearning: "relearning";
2393
- }>;
2394
- stability: z.ZodNumber;
2395
- createdAt: z.ZodCoercedDate<unknown>;
2396
2652
  cardId: z.ZodUUID;
2397
2653
  rating: z.ZodEnum<{
2398
2654
  again: "again";
2399
- hard: "hard";
2400
- good: "good";
2401
2655
  easy: "easy";
2656
+ good: "good";
2657
+ hard: "hard";
2402
2658
  }>;
2403
- afterScheduleStatus: z.ZodEnum<{
2659
+ state: z.ZodEnum<{
2660
+ learning: "learning";
2404
2661
  new: "new";
2662
+ relearning: "relearning";
2663
+ review: "review";
2664
+ }>;
2665
+ stability: z.ZodNumber;
2666
+ afterScheduleStatus: z.ZodEnum<{
2667
+ buried: "buried";
2405
2668
  learning: "learning";
2669
+ new: "new";
2406
2670
  review: "review";
2407
2671
  suspended: "suspended";
2408
- buried: "buried";
2409
2672
  }>;
2410
2673
  afterStability: z.ZodNumber;
2411
2674
  reviewedAt: z.ZodCoercedDate<unknown>;
2412
2675
  durationMs: z.ZodNumber;
2676
+ createdAt: z.ZodCoercedDate<unknown>;
2413
2677
  }, z.core.$strip>>;
2678
+ hasMore: z.ZodBoolean;
2414
2679
  }, z.core.$strict>;
2415
2680
  type SrsListCardRevlogsOutput = z.infer<typeof srsListCardRevlogsOutputSchema>;
2416
2681
  declare const srsReviewOutputSchema: z.ZodObject<{
2417
2682
  card: z.ZodObject<{
2418
- createdAt: z.ZodCoercedDate<unknown>;
2419
- updatedAt: z.ZodCoercedDate<unknown>;
2420
- buriedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
2683
+ notebaseId: z.ZodUUID;
2684
+ notebaseRowId: z.ZodUUID;
2685
+ templateId: z.ZodUUID;
2686
+ variantKey: z.ZodString;
2687
+ id: z.ZodUUID;
2421
2688
  state: z.ZodEnum<{
2422
- new: "new";
2423
2689
  learning: "learning";
2424
- review: "review";
2690
+ new: "new";
2425
2691
  relearning: "relearning";
2692
+ review: "review";
2426
2693
  }>;
2427
2694
  scheduleStatus: z.ZodEnum<{
2428
- new: "new";
2695
+ buried: "buried";
2429
2696
  learning: "learning";
2697
+ new: "new";
2430
2698
  review: "review";
2431
2699
  suspended: "suspended";
2432
- buried: "buried";
2433
2700
  }>;
2434
2701
  dueAt: z.ZodCoercedDate<unknown>;
2435
2702
  lastReviewTime: z.ZodNullable<z.ZodCoercedDate<unknown>>;
@@ -2438,11 +2705,9 @@ declare const srsReviewOutputSchema: z.ZodObject<{
2438
2705
  step: z.ZodNumber;
2439
2706
  lapses: z.ZodNumber;
2440
2707
  reps: z.ZodNumber;
2441
- id: z.ZodUUID;
2442
- notebaseId: z.ZodUUID;
2443
- notebaseRowId: z.ZodUUID;
2444
- templateId: z.ZodUUID;
2445
- variantKey: z.ZodString;
2708
+ buriedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
2709
+ createdAt: z.ZodCoercedDate<unknown>;
2710
+ updatedAt: z.ZodCoercedDate<unknown>;
2446
2711
  }, z.core.$strip>;
2447
2712
  revlog: z.ZodObject<{
2448
2713
  id: z.ZodUUID;
@@ -2450,37 +2715,62 @@ declare const srsReviewOutputSchema: z.ZodObject<{
2450
2715
  cardId: z.ZodUUID;
2451
2716
  rating: z.ZodEnum<{
2452
2717
  again: "again";
2453
- hard: "hard";
2454
- good: "good";
2455
2718
  easy: "easy";
2719
+ good: "good";
2720
+ hard: "hard";
2456
2721
  }>;
2457
2722
  state: z.ZodEnum<{
2458
- new: "new";
2459
2723
  learning: "learning";
2460
- review: "review";
2724
+ new: "new";
2461
2725
  relearning: "relearning";
2726
+ review: "review";
2462
2727
  }>;
2463
2728
  stability: z.ZodNumber;
2464
2729
  afterScheduleStatus: z.ZodEnum<{
2465
- new: "new";
2730
+ buried: "buried";
2466
2731
  learning: "learning";
2732
+ new: "new";
2467
2733
  review: "review";
2468
2734
  suspended: "suspended";
2469
- buried: "buried";
2470
2735
  }>;
2471
2736
  afterStability: z.ZodNumber;
2472
2737
  reviewedAt: z.ZodCoercedDate<unknown>;
2473
2738
  durationMs: z.ZodNumber;
2474
- fsrsReviewLogSnapshot: z.ZodObject<{
2739
+ fsrsReviewLogSnapshot: z.ZodPipe<z.ZodObject<{
2475
2740
  rating: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>;
2476
2741
  state: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
2742
+ scheduleStatus: z.ZodEnum<{
2743
+ learning: "learning";
2744
+ new: "new";
2745
+ review: "review";
2746
+ suspended: "suspended";
2747
+ }>;
2477
2748
  dueAt: z.ZodString;
2478
2749
  stability: z.ZodNumber;
2479
2750
  difficulty: z.ZodNumber;
2480
- scheduledDays: z.ZodNumber;
2751
+ scheduledDays: z.ZodOptional<z.ZodNumber>;
2481
2752
  learningSteps: z.ZodNumber;
2482
2753
  review: z.ZodString;
2483
- }, z.core.$strict>;
2754
+ }, z.core.$strict>, z.ZodTransform<{
2755
+ rating: 1 | 2 | 3 | 4;
2756
+ state: 0 | 1 | 2 | 3;
2757
+ scheduleStatus: "learning" | "new" | "review" | "suspended";
2758
+ dueAt: string;
2759
+ stability: number;
2760
+ difficulty: number;
2761
+ learningSteps: number;
2762
+ review: string;
2763
+ }, {
2764
+ rating: 1 | 2 | 3 | 4;
2765
+ state: 0 | 1 | 2 | 3;
2766
+ scheduleStatus: "learning" | "new" | "review" | "suspended";
2767
+ dueAt: string;
2768
+ stability: number;
2769
+ difficulty: number;
2770
+ scheduledDays?: number | undefined;
2771
+ learningSteps: number;
2772
+ review: string;
2773
+ }>>;
2484
2774
  createdAt: z.ZodCoercedDate<unknown>;
2485
2775
  }, z.core.$strip>;
2486
2776
  txid: z.ZodNumber;
@@ -2489,21 +2779,23 @@ declare const srsReviewOutputSchema: z.ZodObject<{
2489
2779
  type SrsReviewOutput = z.infer<typeof srsReviewOutputSchema>;
2490
2780
  declare const srsRollbackReviewOutputSchema: z.ZodObject<{
2491
2781
  card: z.ZodObject<{
2492
- createdAt: z.ZodCoercedDate<unknown>;
2493
- updatedAt: z.ZodCoercedDate<unknown>;
2494
- buriedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
2782
+ notebaseId: z.ZodUUID;
2783
+ notebaseRowId: z.ZodUUID;
2784
+ templateId: z.ZodUUID;
2785
+ variantKey: z.ZodString;
2786
+ id: z.ZodUUID;
2495
2787
  state: z.ZodEnum<{
2496
- new: "new";
2497
2788
  learning: "learning";
2498
- review: "review";
2789
+ new: "new";
2499
2790
  relearning: "relearning";
2791
+ review: "review";
2500
2792
  }>;
2501
2793
  scheduleStatus: z.ZodEnum<{
2502
- new: "new";
2794
+ buried: "buried";
2503
2795
  learning: "learning";
2796
+ new: "new";
2504
2797
  review: "review";
2505
2798
  suspended: "suspended";
2506
- buried: "buried";
2507
2799
  }>;
2508
2800
  dueAt: z.ZodCoercedDate<unknown>;
2509
2801
  lastReviewTime: z.ZodNullable<z.ZodCoercedDate<unknown>>;
@@ -2512,11 +2804,9 @@ declare const srsRollbackReviewOutputSchema: z.ZodObject<{
2512
2804
  step: z.ZodNumber;
2513
2805
  lapses: z.ZodNumber;
2514
2806
  reps: z.ZodNumber;
2515
- id: z.ZodUUID;
2516
- notebaseId: z.ZodUUID;
2517
- notebaseRowId: z.ZodUUID;
2518
- templateId: z.ZodUUID;
2519
- variantKey: z.ZodString;
2807
+ buriedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
2808
+ createdAt: z.ZodCoercedDate<unknown>;
2809
+ updatedAt: z.ZodCoercedDate<unknown>;
2520
2810
  }, z.core.$strip>;
2521
2811
  rolledBackRevlogId: z.ZodUUID;
2522
2812
  txid: z.ZodNumber;
@@ -2534,6 +2824,29 @@ declare const srsSetCardSuspendedOutputSchema: z.ZodObject<{
2534
2824
  txid: z.ZodNumber;
2535
2825
  }, z.core.$strip>;
2536
2826
  type SrsSetCardSuspendedOutput = SrsTxidOutput;
2827
+ declare const srsListUnreadOptimizerResultsInputSchema: z.ZodObject<{}, z.core.$strict>;
2828
+ declare const srsOptimizerUnreadResultSchema: z.ZodObject<{
2829
+ runId: z.ZodUUID;
2830
+ notebaseName: z.ZodString;
2831
+ revlogCount: z.ZodNumber;
2832
+ improvement: z.ZodNullable<z.ZodNumber>;
2833
+ }, z.core.$strict>;
2834
+ type SrsOptimizerUnreadResult = z.infer<typeof srsOptimizerUnreadResultSchema>;
2835
+ declare const srsListUnreadOptimizerResultsOutputSchema: z.ZodArray<z.ZodObject<{
2836
+ runId: z.ZodUUID;
2837
+ notebaseName: z.ZodString;
2838
+ revlogCount: z.ZodNumber;
2839
+ improvement: z.ZodNullable<z.ZodNumber>;
2840
+ }, z.core.$strict>>;
2841
+ type SrsListUnreadOptimizerResultsOutput = z.infer<typeof srsListUnreadOptimizerResultsOutputSchema>;
2842
+ declare const srsAcknowledgeOptimizerResultsInputSchema: z.ZodObject<{
2843
+ runIds: z.ZodArray<z.ZodUUID>;
2844
+ }, z.core.$strict>;
2845
+ type SrsAcknowledgeOptimizerResultsInput = z.infer<typeof srsAcknowledgeOptimizerResultsInputSchema>;
2846
+ declare const srsAcknowledgeOptimizerResultsOutputSchema: z.ZodObject<{
2847
+ acknowledgedCount: z.ZodNumber;
2848
+ }, z.core.$strict>;
2849
+ type SrsAcknowledgeOptimizerResultsOutput = z.infer<typeof srsAcknowledgeOptimizerResultsOutputSchema>;
2537
2850
  //#endregion
2538
2851
  //#region src/schemas/srs-stats.d.ts
2539
2852
  declare const srsActivityStatsItemSchema: z.ZodObject<{
@@ -2612,10 +2925,10 @@ type UserUpdateTimezoneOutput = z.infer<typeof userUpdateTimezoneOutputSchema>;
2612
2925
  //#endregion
2613
2926
  //#region src/schemas/video-transcript.d.ts
2614
2927
  declare const videoTranscriptStatusSchema: z.ZodEnum<{
2615
- pending: "pending";
2616
- processing: "processing";
2617
2928
  completed: "completed";
2618
2929
  failed: "failed";
2930
+ pending: "pending";
2931
+ processing: "processing";
2619
2932
  }>;
2620
2933
  type VideoTranscriptStatus = z.infer<typeof videoTranscriptStatusSchema>;
2621
2934
  declare const videoTranscriptResourceSchema: z.ZodObject<{
@@ -2624,10 +2937,10 @@ declare const videoTranscriptResourceSchema: z.ZodObject<{
2624
2937
  videoId: z.ZodString;
2625
2938
  url: z.ZodString;
2626
2939
  status: z.ZodEnum<{
2627
- pending: "pending";
2628
- processing: "processing";
2629
2940
  completed: "completed";
2630
2941
  failed: "failed";
2942
+ pending: "pending";
2943
+ processing: "processing";
2631
2944
  }>;
2632
2945
  title: z.ZodNullable<z.ZodString>;
2633
2946
  durationSec: z.ZodNullable<z.ZodNumber>;
@@ -2685,20 +2998,37 @@ declare const videoTranscriptUsageSchema: z.ZodObject<{
2685
2998
  }, z.core.$strip>;
2686
2999
  type VideoTranscriptUsage = z.infer<typeof videoTranscriptUsageSchema>;
2687
3000
  //#endregion
3001
+ //#region src/schemas/pagination.d.ts
3002
+ declare const paginationShape: {
3003
+ limit: z.ZodOptional<z.ZodNumber>;
3004
+ offset: z.ZodOptional<z.ZodNumber>;
3005
+ };
3006
+ declare function pageSchema<T extends z.ZodType>(itemSchema: T): z.ZodObject<{
3007
+ items: z.ZodArray<T>;
3008
+ hasMore: z.ZodBoolean;
3009
+ }, z.core.$strip>;
3010
+ //#endregion
3011
+ //#region src/schemas/resource-mutation.d.ts
3012
+ declare const expectedUpdatedAtSchema: z.ZodISODateTime;
3013
+ declare const deletionResultSchema: z.ZodObject<{
3014
+ id: z.ZodUUID;
3015
+ txid: z.ZodNumber;
3016
+ }, z.core.$strip>;
3017
+ //#endregion
2688
3018
  //#region src/index.d.ts
2689
3019
  declare const contract: {
2690
3020
  betaAccess: {
2691
3021
  status: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
2692
3022
  featureKey: import("zod").ZodEnum<{
3023
+ ebook: "ebook";
2693
3024
  notebase: "notebase";
2694
3025
  videoTranscription: "videoTranscription";
2695
- ebook: "ebook";
2696
3026
  }>;
2697
3027
  }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
2698
3028
  featureKey: import("zod").ZodEnum<{
3029
+ ebook: "ebook";
2699
3030
  notebase: "notebase";
2700
3031
  videoTranscription: "videoTranscription";
2701
- ebook: "ebook";
2702
3032
  }>;
2703
3033
  allowed: import("zod").ZodBoolean;
2704
3034
  }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
@@ -2711,14 +3041,14 @@ declare const contract: {
2711
3041
  ultra: "ultra";
2712
3042
  }>;
2713
3043
  status: import("zod").ZodNullable<import("zod").ZodEnum<{
3044
+ active: "active";
3045
+ canceled: "canceled";
2714
3046
  incomplete: "incomplete";
2715
3047
  incomplete_expired: "incomplete_expired";
2716
- trialing: "trialing";
2717
- active: "active";
2718
3048
  past_due: "past_due";
2719
- canceled: "canceled";
2720
- unpaid: "unpaid";
2721
3049
  paused: "paused";
3050
+ trialing: "trialing";
3051
+ unpaid: "unpaid";
2722
3052
  }>>;
2723
3053
  interval: import("zod").ZodNullable<import("zod").ZodEnum<{
2724
3054
  month: "month";
@@ -2727,8 +3057,8 @@ declare const contract: {
2727
3057
  currentPeriodEnd: import("zod").ZodNullable<import("zod").ZodCoercedDate<unknown>>;
2728
3058
  cancelAt: import("zod").ZodNullable<import("zod").ZodCoercedDate<unknown>>;
2729
3059
  accessSource: import("zod").ZodNullable<import("zod").ZodEnum<{
2730
- subscription: "subscription";
2731
3060
  pass: "pass";
3061
+ subscription: "subscription";
2732
3062
  }>>;
2733
3063
  scheduledChange: import("zod").ZodNullable<import("zod").ZodObject<{
2734
3064
  plan: import("zod").ZodEnum<{
@@ -2744,12 +3074,12 @@ declare const contract: {
2744
3074
  unlimitedNotebaseNotes: import("zod").ZodBoolean;
2745
3075
  notebaseNoteLimit: import("zod").ZodNumber;
2746
3076
  notebaseNoteCount: import("zod").ZodNumber;
2747
- }, import("zod/v4/core").$strict>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "BILLING_NOT_CONFIGURED" | "BILLING_CUSTOMER_NOT_FOUND" | "BILLING_PASS_ACTIVE" | "BILLING_CHANGE_SCHEDULED">>, Record<never, never>>;
3077
+ }, import("zod/v4/core").$strict>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "BILLING_CHANGE_SCHEDULED" | "BILLING_CUSTOMER_NOT_FOUND" | "BILLING_NOT_CONFIGURED" | "BILLING_PASS_ACTIVE">>, Record<never, never>>;
2748
3078
  createCheckoutSession: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
2749
3079
  currency: import("zod").ZodEnum<{
2750
- usd: "usd";
2751
3080
  cad: "cad";
2752
3081
  cny: "cny";
3082
+ usd: "usd";
2753
3083
  }>;
2754
3084
  interval: import("zod").ZodEnum<{
2755
3085
  month: "month";
@@ -2772,7 +3102,7 @@ declare const contract: {
2772
3102
  }>>;
2773
3103
  }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
2774
3104
  url: import("zod").ZodURL;
2775
- }, import("zod/v4/core").$strict>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "BILLING_NOT_CONFIGURED" | "BILLING_CUSTOMER_NOT_FOUND" | "BILLING_PASS_ACTIVE" | "BILLING_CHANGE_SCHEDULED">>, Record<never, never>>;
3105
+ }, import("zod/v4/core").$strict>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "BILLING_CHANGE_SCHEDULED" | "BILLING_CUSTOMER_NOT_FOUND" | "BILLING_NOT_CONFIGURED" | "BILLING_PASS_ACTIVE">>, Record<never, never>>;
2776
3106
  createCustomerPortalSession: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
2777
3107
  locale: import("zod").ZodEnum<{
2778
3108
  en: "en";
@@ -2787,67 +3117,82 @@ declare const contract: {
2787
3117
  }>;
2788
3118
  }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
2789
3119
  url: import("zod").ZodURL;
2790
- }, import("zod/v4/core").$strict>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "BILLING_NOT_CONFIGURED" | "BILLING_CUSTOMER_NOT_FOUND" | "BILLING_PASS_ACTIVE" | "BILLING_CHANGE_SCHEDULED">>, Record<never, never>>;
3120
+ }, import("zod/v4/core").$strict>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "BILLING_CHANGE_SCHEDULED" | "BILLING_CUSTOMER_NOT_FOUND" | "BILLING_NOT_CONFIGURED" | "BILLING_PASS_ACTIVE">>, Record<never, never>>;
2791
3121
  cancelScheduledChange: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodObject<{
2792
3122
  success: import("zod").ZodLiteral<true>;
2793
- }, import("zod/v4/core").$strict>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "BILLING_NOT_CONFIGURED" | "BILLING_CUSTOMER_NOT_FOUND" | "BILLING_PASS_ACTIVE" | "BILLING_CHANGE_SCHEDULED">>, Record<never, never>>;
3123
+ }, import("zod/v4/core").$strict>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "BILLING_CHANGE_SCHEDULED" | "BILLING_CUSTOMER_NOT_FOUND" | "BILLING_NOT_CONFIGURED" | "BILLING_PASS_ACTIVE">>, Record<never, never>>;
2794
3124
  };
2795
3125
  card: {
2796
3126
  list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
2797
- notebaseId: import("zod").ZodUUID;
2798
- templateId: import("zod").ZodOptional<import("zod").ZodUUID>;
2799
3127
  limit: import("zod").ZodOptional<import("zod").ZodNumber>;
2800
3128
  offset: import("zod").ZodOptional<import("zod").ZodNumber>;
2801
- }, import("zod/v4/core").$strip>, import("zod").ZodArray<import("zod").ZodObject<{
2802
- createdAt: import("zod").ZodCoercedDate<unknown>;
2803
- updatedAt: import("zod").ZodCoercedDate<unknown>;
2804
- buriedAt: import("zod").ZodNullable<import("zod").ZodCoercedDate<unknown>>;
2805
- state: import("zod").ZodEnum<{
2806
- new: "new";
3129
+ notebaseId: import("zod").ZodOptional<import("zod").ZodUUID>;
3130
+ templateId: import("zod").ZodOptional<import("zod").ZodUUID>;
3131
+ scheduleStatus: import("zod").ZodOptional<import("zod").ZodEnum<{
3132
+ buried: "buried";
2807
3133
  learning: "learning";
2808
- review: "review";
2809
- relearning: "relearning";
2810
- }>;
2811
- scheduleStatus: import("zod").ZodEnum<{
2812
3134
  new: "new";
2813
- learning: "learning";
2814
3135
  review: "review";
2815
3136
  suspended: "suspended";
2816
- buried: "buried";
2817
- }>;
2818
- dueAt: import("zod").ZodCoercedDate<unknown>;
2819
- lastReviewTime: import("zod").ZodNullable<import("zod").ZodCoercedDate<unknown>>;
2820
- stability: import("zod").ZodNumber;
2821
- difficulty: import("zod").ZodNumber;
2822
- step: import("zod").ZodNumber;
2823
- lapses: import("zod").ZodNumber;
2824
- reps: import("zod").ZodNumber;
3137
+ }>>;
3138
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
3139
+ items: import("zod").ZodArray<import("zod").ZodObject<{
3140
+ notebaseId: import("zod").ZodUUID;
3141
+ notebaseRowId: import("zod").ZodUUID;
3142
+ templateId: import("zod").ZodUUID;
3143
+ variantKey: import("zod").ZodString;
3144
+ id: import("zod").ZodUUID;
3145
+ state: import("zod").ZodEnum<{
3146
+ learning: "learning";
3147
+ new: "new";
3148
+ relearning: "relearning";
3149
+ review: "review";
3150
+ }>;
3151
+ scheduleStatus: import("zod").ZodEnum<{
3152
+ buried: "buried";
3153
+ learning: "learning";
3154
+ new: "new";
3155
+ review: "review";
3156
+ suspended: "suspended";
3157
+ }>;
3158
+ dueAt: import("zod").ZodCoercedDate<unknown>;
3159
+ lastReviewTime: import("zod").ZodNullable<import("zod").ZodCoercedDate<unknown>>;
3160
+ stability: import("zod").ZodNumber;
3161
+ difficulty: import("zod").ZodNumber;
3162
+ step: import("zod").ZodNumber;
3163
+ lapses: import("zod").ZodNumber;
3164
+ reps: import("zod").ZodNumber;
3165
+ buriedAt: import("zod").ZodNullable<import("zod").ZodCoercedDate<unknown>>;
3166
+ createdAt: import("zod").ZodCoercedDate<unknown>;
3167
+ updatedAt: import("zod").ZodCoercedDate<unknown>;
3168
+ front: import("zod").ZodString;
3169
+ back: import("zod").ZodString;
3170
+ }, import("zod/v4/core").$strip>>;
3171
+ hasMore: import("zod").ZodBoolean;
3172
+ }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_NOT_FOUND">>, {
3173
+ summary: string;
3174
+ description: string;
3175
+ } & Record<never, never>>;
3176
+ get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
2825
3177
  id: import("zod").ZodUUID;
3178
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
2826
3179
  notebaseId: import("zod").ZodUUID;
2827
3180
  notebaseRowId: import("zod").ZodUUID;
2828
3181
  templateId: import("zod").ZodUUID;
2829
3182
  variantKey: import("zod").ZodString;
2830
- front: import("zod").ZodString;
2831
- back: import("zod").ZodString;
2832
- }, import("zod/v4/core").$strip>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_NOT_FOUND">>, Record<never, never>>;
2833
- get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
2834
3183
  id: import("zod").ZodUUID;
2835
- }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
2836
- createdAt: import("zod").ZodCoercedDate<unknown>;
2837
- updatedAt: import("zod").ZodCoercedDate<unknown>;
2838
- buriedAt: import("zod").ZodNullable<import("zod").ZodCoercedDate<unknown>>;
2839
3184
  state: import("zod").ZodEnum<{
2840
- new: "new";
2841
3185
  learning: "learning";
2842
- review: "review";
3186
+ new: "new";
2843
3187
  relearning: "relearning";
3188
+ review: "review";
2844
3189
  }>;
2845
3190
  scheduleStatus: import("zod").ZodEnum<{
2846
- new: "new";
3191
+ buried: "buried";
2847
3192
  learning: "learning";
3193
+ new: "new";
2848
3194
  review: "review";
2849
3195
  suspended: "suspended";
2850
- buried: "buried";
2851
3196
  }>;
2852
3197
  dueAt: import("zod").ZodCoercedDate<unknown>;
2853
3198
  lastReviewTime: import("zod").ZodNullable<import("zod").ZodCoercedDate<unknown>>;
@@ -2856,37 +3201,46 @@ declare const contract: {
2856
3201
  step: import("zod").ZodNumber;
2857
3202
  lapses: import("zod").ZodNumber;
2858
3203
  reps: import("zod").ZodNumber;
2859
- id: import("zod").ZodUUID;
2860
- notebaseId: import("zod").ZodUUID;
2861
- notebaseRowId: import("zod").ZodUUID;
2862
- templateId: import("zod").ZodUUID;
2863
- variantKey: import("zod").ZodString;
3204
+ buriedAt: import("zod").ZodNullable<import("zod").ZodCoercedDate<unknown>>;
3205
+ createdAt: import("zod").ZodCoercedDate<unknown>;
3206
+ updatedAt: import("zod").ZodCoercedDate<unknown>;
2864
3207
  front: import("zod").ZodString;
2865
3208
  back: import("zod").ZodString;
2866
- }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "CARD_NOT_FOUND">>, Record<never, never>>;
3209
+ }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "CARD_NOT_FOUND">>, {
3210
+ summary: string;
3211
+ description: string;
3212
+ } & Record<never, never>>;
2867
3213
  generate: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
2868
3214
  notebaseId: import("zod").ZodUUID;
2869
3215
  templateId: import("zod").ZodOptional<import("zod").ZodUUID>;
2870
3216
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
2871
3217
  created: import("zod").ZodNumber;
2872
3218
  txid: import("zod").ZodNumber;
2873
- }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_NOT_FOUND" | "CARD_TEMPLATE_NOT_FOUND">>, Record<never, never>>;
3219
+ }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "CARD_TEMPLATE_NOT_FOUND" | "NOTEBASE_NOT_FOUND">>, Record<never, never>>;
2874
3220
  };
2875
3221
  cardTemplate: {
2876
3222
  list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
2877
- notebaseId: import("zod").ZodUUID;
2878
- }, import("zod/v4/core").$strip>, import("zod").ZodArray<import("zod").ZodObject<{
2879
- id: import("zod").ZodUUID;
2880
- notebaseId: import("zod").ZodUUID;
2881
- name: import("zod").ZodString;
2882
- config: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
2883
- type: import("zod").ZodLiteral<"basic">;
2884
- frontPattern: import("zod").ZodString;
2885
- backPattern: import("zod").ZodString;
2886
- }, import("zod/v4/core").$strict>], "type">;
2887
- createdAt: import("zod").ZodCoercedDate<unknown>;
2888
- updatedAt: import("zod").ZodCoercedDate<unknown>;
2889
- }, import("zod/v4/core").$strip>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_NOT_FOUND">>, Record<never, never>>;
3223
+ limit: import("zod").ZodOptional<import("zod").ZodNumber>;
3224
+ offset: import("zod").ZodOptional<import("zod").ZodNumber>;
3225
+ notebaseId: import("zod").ZodOptional<import("zod").ZodUUID>;
3226
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
3227
+ items: import("zod").ZodArray<import("zod").ZodObject<{
3228
+ id: import("zod").ZodUUID;
3229
+ notebaseId: import("zod").ZodUUID;
3230
+ name: import("zod").ZodString;
3231
+ config: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
3232
+ type: import("zod").ZodLiteral<"basic">;
3233
+ frontPattern: import("zod").ZodString;
3234
+ backPattern: import("zod").ZodString;
3235
+ }, import("zod/v4/core").$strict>], "type">;
3236
+ createdAt: import("zod").ZodCoercedDate<unknown>;
3237
+ updatedAt: import("zod").ZodCoercedDate<unknown>;
3238
+ }, import("zod/v4/core").$strip>>;
3239
+ hasMore: import("zod").ZodBoolean;
3240
+ }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_NOT_FOUND">>, {
3241
+ summary: string;
3242
+ description: string;
3243
+ } & Record<never, never>>;
2890
3244
  get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
2891
3245
  id: import("zod").ZodUUID;
2892
3246
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
@@ -2900,7 +3254,10 @@ declare const contract: {
2900
3254
  }, import("zod/v4/core").$strict>], "type">;
2901
3255
  createdAt: import("zod").ZodCoercedDate<unknown>;
2902
3256
  updatedAt: import("zod").ZodCoercedDate<unknown>;
2903
- }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "CARD_TEMPLATE_NOT_FOUND">>, Record<never, never>>;
3257
+ }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "CARD_TEMPLATE_NOT_FOUND">>, {
3258
+ summary: string;
3259
+ description: string;
3260
+ } & Record<never, never>>;
2904
3261
  create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
2905
3262
  id: import("zod").ZodOptional<import("zod").ZodUUID>;
2906
3263
  notebaseId: import("zod").ZodUUID;
@@ -2922,8 +3279,12 @@ declare const contract: {
2922
3279
  createdAt: import("zod").ZodCoercedDate<unknown>;
2923
3280
  updatedAt: import("zod").ZodCoercedDate<unknown>;
2924
3281
  txid: import("zod").ZodNumber;
2925
- }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_NOT_FOUND" | "CARD_TEMPLATE_INVALID_NOTEBASE_COLUMNS">>, Record<never, never>>;
3282
+ }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "CARD_TEMPLATE_INVALID_NOTEBASE_COLUMNS" | "NOTEBASE_NOT_FOUND">>, Pick<import("@orpc/contract").ErrorMap, "RESOURCE_ALREADY_EXISTS">>, {
3283
+ summary: string;
3284
+ description: string;
3285
+ } & Record<never, never>>;
2926
3286
  update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3287
+ expectedUpdatedAt: import("zod").ZodOptional<import("zod").ZodISODateTime>;
2927
3288
  id: import("zod").ZodUUID;
2928
3289
  name: import("zod").ZodOptional<import("zod").ZodString>;
2929
3290
  config: import("zod").ZodOptional<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
@@ -2943,12 +3304,19 @@ declare const contract: {
2943
3304
  createdAt: import("zod").ZodCoercedDate<unknown>;
2944
3305
  updatedAt: import("zod").ZodCoercedDate<unknown>;
2945
3306
  txid: import("zod").ZodNumber;
2946
- }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "CARD_TEMPLATE_NOT_FOUND" | "CARD_TEMPLATE_INVALID_NOTEBASE_COLUMNS">>, Record<never, never>>;
3307
+ }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "CARD_TEMPLATE_INVALID_NOTEBASE_COLUMNS" | "CARD_TEMPLATE_NOT_FOUND">>, Pick<import("@orpc/contract").ErrorMap, "RESOURCE_UPDATE_CONFLICT">>, {
3308
+ summary: string;
3309
+ description: string;
3310
+ } & Record<never, never>>;
2947
3311
  delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
2948
3312
  id: import("zod").ZodUUID;
2949
3313
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
3314
+ id: import("zod").ZodUUID;
2950
3315
  txid: import("zod").ZodNumber;
2951
- }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "CARD_TEMPLATE_NOT_FOUND">>, Record<never, never>>;
3316
+ }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "CARD_TEMPLATE_NOT_FOUND">>, {
3317
+ summary: string;
3318
+ description: string;
3319
+ } & Record<never, never>>;
2952
3320
  };
2953
3321
  ebook: {
2954
3322
  list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
@@ -3034,7 +3402,7 @@ declare const contract: {
3034
3402
  createdAt: import("zod").ZodCoercedDate<unknown>;
3035
3403
  updatedAt: import("zod").ZodCoercedDate<unknown>;
3036
3404
  }, import("zod/v4/core").$strict>;
3037
- }, import("zod/v4/core").$strict>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "EBOOK_BETA_RESTRICTED" | "EBOOK_NOT_FOUND" | "EBOOK_FILE_TOO_LARGE" | "EBOOK_UPLOAD_NOT_COMPLETED">>, Record<never, never>>;
3405
+ }, import("zod/v4/core").$strict>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "EBOOK_BETA_RESTRICTED" | "EBOOK_FILE_TOO_LARGE" | "EBOOK_NOT_FOUND" | "EBOOK_UPLOAD_NOT_COMPLETED">>, Record<never, never>>;
3038
3406
  getDownloadUrl: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3039
3407
  id: import("zod").ZodUUID;
3040
3408
  }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
@@ -3086,13 +3454,13 @@ declare const contract: {
3086
3454
  usedPercent: import("zod").ZodNumber;
3087
3455
  resetAt: import("zod").ZodNullable<import("zod").ZodISODateTime>;
3088
3456
  features: import("zod").ZodArray<import("zod").ZodEnum<{
3089
- pageTranslation: "pageTranslation";
3090
3457
  customAction: "customAction";
3458
+ inputTranslation: "inputTranslation";
3459
+ languageDetection: "languageDetection";
3091
3460
  noteSuggestion: "noteSuggestion";
3461
+ pageTranslation: "pageTranslation";
3092
3462
  selectionTranslation: "selectionTranslation";
3093
3463
  videoSubtitles: "videoSubtitles";
3094
- inputTranslation: "inputTranslation";
3095
- languageDetection: "languageDetection";
3096
3464
  }>>;
3097
3465
  }, import("zod/v4/core").$strict>>;
3098
3466
  features: import("zod").ZodObject<{
@@ -3102,9 +3470,9 @@ declare const contract: {
3102
3470
  available: import("zod").ZodBoolean;
3103
3471
  unavailableReason: import("zod").ZodNullable<import("zod").ZodEnum<{
3104
3472
  authentication_required: "authentication_required";
3105
- ultra_required: "ultra_required";
3106
3473
  quota_exhausted: "quota_exhausted";
3107
3474
  service_unavailable: "service_unavailable";
3475
+ ultra_required: "ultra_required";
3108
3476
  }>>;
3109
3477
  requiresUltra: import("zod").ZodBoolean;
3110
3478
  modelRevision: import("zod").ZodString;
@@ -3114,9 +3482,9 @@ declare const contract: {
3114
3482
  available: import("zod").ZodBoolean;
3115
3483
  unavailableReason: import("zod").ZodNullable<import("zod").ZodEnum<{
3116
3484
  authentication_required: "authentication_required";
3117
- ultra_required: "ultra_required";
3118
3485
  quota_exhausted: "quota_exhausted";
3119
3486
  service_unavailable: "service_unavailable";
3487
+ ultra_required: "ultra_required";
3120
3488
  }>>;
3121
3489
  requiresUltra: import("zod").ZodBoolean;
3122
3490
  modelRevision: import("zod").ZodString;
@@ -3128,9 +3496,9 @@ declare const contract: {
3128
3496
  available: import("zod").ZodBoolean;
3129
3497
  unavailableReason: import("zod").ZodNullable<import("zod").ZodEnum<{
3130
3498
  authentication_required: "authentication_required";
3131
- ultra_required: "ultra_required";
3132
3499
  quota_exhausted: "quota_exhausted";
3133
3500
  service_unavailable: "service_unavailable";
3501
+ ultra_required: "ultra_required";
3134
3502
  }>>;
3135
3503
  requiresUltra: import("zod").ZodBoolean;
3136
3504
  modelRevision: import("zod").ZodString;
@@ -3140,9 +3508,9 @@ declare const contract: {
3140
3508
  available: import("zod").ZodBoolean;
3141
3509
  unavailableReason: import("zod").ZodNullable<import("zod").ZodEnum<{
3142
3510
  authentication_required: "authentication_required";
3143
- ultra_required: "ultra_required";
3144
3511
  quota_exhausted: "quota_exhausted";
3145
3512
  service_unavailable: "service_unavailable";
3513
+ ultra_required: "ultra_required";
3146
3514
  }>>;
3147
3515
  requiresUltra: import("zod").ZodBoolean;
3148
3516
  modelRevision: import("zod").ZodString;
@@ -3154,9 +3522,9 @@ declare const contract: {
3154
3522
  available: import("zod").ZodBoolean;
3155
3523
  unavailableReason: import("zod").ZodNullable<import("zod").ZodEnum<{
3156
3524
  authentication_required: "authentication_required";
3157
- ultra_required: "ultra_required";
3158
3525
  quota_exhausted: "quota_exhausted";
3159
3526
  service_unavailable: "service_unavailable";
3527
+ ultra_required: "ultra_required";
3160
3528
  }>>;
3161
3529
  requiresUltra: import("zod").ZodBoolean;
3162
3530
  modelRevision: import("zod").ZodString;
@@ -3166,9 +3534,9 @@ declare const contract: {
3166
3534
  available: import("zod").ZodBoolean;
3167
3535
  unavailableReason: import("zod").ZodNullable<import("zod").ZodEnum<{
3168
3536
  authentication_required: "authentication_required";
3169
- ultra_required: "ultra_required";
3170
3537
  quota_exhausted: "quota_exhausted";
3171
3538
  service_unavailable: "service_unavailable";
3539
+ ultra_required: "ultra_required";
3172
3540
  }>>;
3173
3541
  requiresUltra: import("zod").ZodBoolean;
3174
3542
  modelRevision: import("zod").ZodString;
@@ -3180,9 +3548,9 @@ declare const contract: {
3180
3548
  available: import("zod").ZodBoolean;
3181
3549
  unavailableReason: import("zod").ZodNullable<import("zod").ZodEnum<{
3182
3550
  authentication_required: "authentication_required";
3183
- ultra_required: "ultra_required";
3184
3551
  quota_exhausted: "quota_exhausted";
3185
3552
  service_unavailable: "service_unavailable";
3553
+ ultra_required: "ultra_required";
3186
3554
  }>>;
3187
3555
  requiresUltra: import("zod").ZodBoolean;
3188
3556
  modelRevision: import("zod").ZodString;
@@ -3192,9 +3560,9 @@ declare const contract: {
3192
3560
  available: import("zod").ZodBoolean;
3193
3561
  unavailableReason: import("zod").ZodNullable<import("zod").ZodEnum<{
3194
3562
  authentication_required: "authentication_required";
3195
- ultra_required: "ultra_required";
3196
3563
  quota_exhausted: "quota_exhausted";
3197
3564
  service_unavailable: "service_unavailable";
3565
+ ultra_required: "ultra_required";
3198
3566
  }>>;
3199
3567
  requiresUltra: import("zod").ZodBoolean;
3200
3568
  modelRevision: import("zod").ZodString;
@@ -3206,9 +3574,9 @@ declare const contract: {
3206
3574
  available: import("zod").ZodBoolean;
3207
3575
  unavailableReason: import("zod").ZodNullable<import("zod").ZodEnum<{
3208
3576
  authentication_required: "authentication_required";
3209
- ultra_required: "ultra_required";
3210
3577
  quota_exhausted: "quota_exhausted";
3211
3578
  service_unavailable: "service_unavailable";
3579
+ ultra_required: "ultra_required";
3212
3580
  }>>;
3213
3581
  requiresUltra: import("zod").ZodBoolean;
3214
3582
  modelRevision: import("zod").ZodString;
@@ -3218,9 +3586,9 @@ declare const contract: {
3218
3586
  available: import("zod").ZodBoolean;
3219
3587
  unavailableReason: import("zod").ZodNullable<import("zod").ZodEnum<{
3220
3588
  authentication_required: "authentication_required";
3221
- ultra_required: "ultra_required";
3222
3589
  quota_exhausted: "quota_exhausted";
3223
3590
  service_unavailable: "service_unavailable";
3591
+ ultra_required: "ultra_required";
3224
3592
  }>>;
3225
3593
  requiresUltra: import("zod").ZodBoolean;
3226
3594
  modelRevision: import("zod").ZodString;
@@ -3232,9 +3600,9 @@ declare const contract: {
3232
3600
  available: import("zod").ZodBoolean;
3233
3601
  unavailableReason: import("zod").ZodNullable<import("zod").ZodEnum<{
3234
3602
  authentication_required: "authentication_required";
3235
- ultra_required: "ultra_required";
3236
3603
  quota_exhausted: "quota_exhausted";
3237
3604
  service_unavailable: "service_unavailable";
3605
+ ultra_required: "ultra_required";
3238
3606
  }>>;
3239
3607
  requiresUltra: import("zod").ZodBoolean;
3240
3608
  modelRevision: import("zod").ZodString;
@@ -3244,9 +3612,9 @@ declare const contract: {
3244
3612
  available: import("zod").ZodBoolean;
3245
3613
  unavailableReason: import("zod").ZodNullable<import("zod").ZodEnum<{
3246
3614
  authentication_required: "authentication_required";
3247
- ultra_required: "ultra_required";
3248
3615
  quota_exhausted: "quota_exhausted";
3249
3616
  service_unavailable: "service_unavailable";
3617
+ ultra_required: "ultra_required";
3250
3618
  }>>;
3251
3619
  requiresUltra: import("zod").ZodBoolean;
3252
3620
  modelRevision: import("zod").ZodString;
@@ -3258,9 +3626,9 @@ declare const contract: {
3258
3626
  available: import("zod").ZodBoolean;
3259
3627
  unavailableReason: import("zod").ZodNullable<import("zod").ZodEnum<{
3260
3628
  authentication_required: "authentication_required";
3261
- ultra_required: "ultra_required";
3262
3629
  quota_exhausted: "quota_exhausted";
3263
3630
  service_unavailable: "service_unavailable";
3631
+ ultra_required: "ultra_required";
3264
3632
  }>>;
3265
3633
  requiresUltra: import("zod").ZodBoolean;
3266
3634
  modelRevision: import("zod").ZodString;
@@ -3270,9 +3638,9 @@ declare const contract: {
3270
3638
  available: import("zod").ZodBoolean;
3271
3639
  unavailableReason: import("zod").ZodNullable<import("zod").ZodEnum<{
3272
3640
  authentication_required: "authentication_required";
3273
- ultra_required: "ultra_required";
3274
3641
  quota_exhausted: "quota_exhausted";
3275
3642
  service_unavailable: "service_unavailable";
3643
+ ultra_required: "ultra_required";
3276
3644
  }>>;
3277
3645
  requiresUltra: import("zod").ZodBoolean;
3278
3646
  modelRevision: import("zod").ZodString;
@@ -3282,159 +3650,174 @@ declare const contract: {
3282
3650
  }, import("zod/v4/core").$strict>, Record<never, never>, Record<never, never>>;
3283
3651
  translate: {
3284
3652
  streamText: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3285
- instructions: import("zod").ZodString;
3286
- prompt: import("zod").ZodString;
3287
- temperature: import("zod").ZodOptional<import("zod").ZodNumber>;
3288
3653
  modelTier: import("zod").ZodDefault<import("zod").ZodEnum<{
3289
- normal: "normal";
3290
3654
  advance: "advance";
3655
+ normal: "normal";
3291
3656
  }>>;
3292
3657
  requestId: import("zod").ZodOptional<import("zod").ZodUUID>;
3658
+ instructions: import("zod").ZodString;
3659
+ prompt: import("zod").ZodString;
3660
+ temperature: import("zod").ZodOptional<import("zod").ZodNumber>;
3293
3661
  }, import("zod/v4/core").$strict>, import("@orpc/contract").Schema<AsyncIteratorObject<{
3294
3662
  [x: string]: unknown;
3295
3663
  type: string;
3296
3664
  }, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{
3297
3665
  [x: string]: unknown;
3298
3666
  type: string;
3299
- }, unknown, void>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "HOSTED_AI_TIER_RESTRICTED" | "HOSTED_AI_QUOTA_EXHAUSTED">>, Record<never, never>>;
3667
+ }, unknown, void>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "HOSTED_AI_QUOTA_EXHAUSTED" | "HOSTED_AI_TIER_RESTRICTED">>, Record<never, never>>;
3300
3668
  };
3301
3669
  selectionTranslation: {
3302
3670
  streamText: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3303
- instructions: import("zod").ZodString;
3304
- prompt: import("zod").ZodString;
3305
- temperature: import("zod").ZodOptional<import("zod").ZodNumber>;
3306
3671
  modelTier: import("zod").ZodDefault<import("zod").ZodEnum<{
3307
- normal: "normal";
3308
3672
  advance: "advance";
3673
+ normal: "normal";
3309
3674
  }>>;
3310
3675
  requestId: import("zod").ZodOptional<import("zod").ZodUUID>;
3676
+ instructions: import("zod").ZodString;
3677
+ prompt: import("zod").ZodString;
3678
+ temperature: import("zod").ZodOptional<import("zod").ZodNumber>;
3311
3679
  }, import("zod/v4/core").$strict>, import("@orpc/contract").Schema<AsyncIteratorObject<{
3312
3680
  [x: string]: unknown;
3313
3681
  type: string;
3314
3682
  }, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{
3315
3683
  [x: string]: unknown;
3316
3684
  type: string;
3317
- }, unknown, void>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "HOSTED_AI_TIER_RESTRICTED" | "HOSTED_AI_QUOTA_EXHAUSTED">>, Record<never, never>>;
3685
+ }, unknown, void>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "HOSTED_AI_QUOTA_EXHAUSTED" | "HOSTED_AI_TIER_RESTRICTED">>, Record<never, never>>;
3318
3686
  };
3319
3687
  videoSubtitles: {
3320
3688
  streamText: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3321
- instructions: import("zod").ZodString;
3322
- prompt: import("zod").ZodString;
3323
- temperature: import("zod").ZodOptional<import("zod").ZodNumber>;
3324
3689
  modelTier: import("zod").ZodDefault<import("zod").ZodEnum<{
3325
- normal: "normal";
3326
3690
  advance: "advance";
3691
+ normal: "normal";
3327
3692
  }>>;
3328
3693
  requestId: import("zod").ZodOptional<import("zod").ZodUUID>;
3694
+ instructions: import("zod").ZodString;
3695
+ prompt: import("zod").ZodString;
3696
+ temperature: import("zod").ZodOptional<import("zod").ZodNumber>;
3329
3697
  }, import("zod/v4/core").$strict>, import("@orpc/contract").Schema<AsyncIteratorObject<{
3330
3698
  [x: string]: unknown;
3331
3699
  type: string;
3332
3700
  }, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{
3333
3701
  [x: string]: unknown;
3334
3702
  type: string;
3335
- }, unknown, void>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "HOSTED_AI_TIER_RESTRICTED" | "HOSTED_AI_QUOTA_EXHAUSTED">>, Record<never, never>>;
3703
+ }, unknown, void>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "HOSTED_AI_QUOTA_EXHAUSTED" | "HOSTED_AI_TIER_RESTRICTED">>, Record<never, never>>;
3336
3704
  streamSegmentation: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3337
- instructions: import("zod").ZodString;
3338
- prompt: import("zod").ZodString;
3339
- temperature: import("zod").ZodOptional<import("zod").ZodNumber>;
3340
3705
  modelTier: import("zod").ZodDefault<import("zod").ZodEnum<{
3341
- normal: "normal";
3342
3706
  advance: "advance";
3707
+ normal: "normal";
3343
3708
  }>>;
3344
3709
  requestId: import("zod").ZodOptional<import("zod").ZodUUID>;
3710
+ instructions: import("zod").ZodString;
3711
+ prompt: import("zod").ZodString;
3712
+ temperature: import("zod").ZodOptional<import("zod").ZodNumber>;
3345
3713
  }, import("zod/v4/core").$strict>, import("@orpc/contract").Schema<AsyncIteratorObject<{
3346
3714
  [x: string]: unknown;
3347
3715
  type: string;
3348
3716
  }, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{
3349
3717
  [x: string]: unknown;
3350
3718
  type: string;
3351
- }, unknown, void>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "HOSTED_AI_TIER_RESTRICTED" | "HOSTED_AI_QUOTA_EXHAUSTED">>, Record<never, never>>;
3719
+ }, unknown, void>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "HOSTED_AI_QUOTA_EXHAUSTED" | "HOSTED_AI_TIER_RESTRICTED">>, Record<never, never>>;
3352
3720
  };
3353
3721
  inputTranslation: {
3354
3722
  streamText: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3355
- instructions: import("zod").ZodString;
3356
- prompt: import("zod").ZodString;
3357
- temperature: import("zod").ZodOptional<import("zod").ZodNumber>;
3358
3723
  modelTier: import("zod").ZodDefault<import("zod").ZodEnum<{
3359
- normal: "normal";
3360
3724
  advance: "advance";
3725
+ normal: "normal";
3361
3726
  }>>;
3362
3727
  requestId: import("zod").ZodOptional<import("zod").ZodUUID>;
3728
+ instructions: import("zod").ZodString;
3729
+ prompt: import("zod").ZodString;
3730
+ temperature: import("zod").ZodOptional<import("zod").ZodNumber>;
3363
3731
  }, import("zod/v4/core").$strict>, import("@orpc/contract").Schema<AsyncIteratorObject<{
3364
3732
  [x: string]: unknown;
3365
3733
  type: string;
3366
3734
  }, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{
3367
3735
  [x: string]: unknown;
3368
3736
  type: string;
3369
- }, unknown, void>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "HOSTED_AI_TIER_RESTRICTED" | "HOSTED_AI_QUOTA_EXHAUSTED">>, Record<never, never>>;
3737
+ }, unknown, void>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "HOSTED_AI_QUOTA_EXHAUSTED" | "HOSTED_AI_TIER_RESTRICTED">>, Record<never, never>>;
3370
3738
  };
3371
3739
  languageDetection: {
3372
3740
  streamText: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3373
- instructions: import("zod").ZodString;
3374
- prompt: import("zod").ZodString;
3375
- temperature: import("zod").ZodOptional<import("zod").ZodNumber>;
3376
3741
  modelTier: import("zod").ZodDefault<import("zod").ZodEnum<{
3377
- normal: "normal";
3378
3742
  advance: "advance";
3743
+ normal: "normal";
3379
3744
  }>>;
3380
3745
  requestId: import("zod").ZodOptional<import("zod").ZodUUID>;
3746
+ instructions: import("zod").ZodString;
3747
+ prompt: import("zod").ZodString;
3748
+ temperature: import("zod").ZodOptional<import("zod").ZodNumber>;
3381
3749
  }, import("zod/v4/core").$strict>, import("@orpc/contract").Schema<AsyncIteratorObject<{
3382
3750
  [x: string]: unknown;
3383
3751
  type: string;
3384
3752
  }, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{
3385
3753
  [x: string]: unknown;
3386
3754
  type: string;
3387
- }, unknown, void>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "HOSTED_AI_TIER_RESTRICTED" | "HOSTED_AI_QUOTA_EXHAUSTED">>, Record<never, never>>;
3755
+ }, unknown, void>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "HOSTED_AI_QUOTA_EXHAUSTED" | "HOSTED_AI_TIER_RESTRICTED">>, Record<never, never>>;
3388
3756
  };
3389
3757
  customAction: {
3390
3758
  streamStructuredObject: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3759
+ modelTier: import("zod").ZodDefault<import("zod").ZodEnum<{
3760
+ advance: "advance";
3761
+ normal: "normal";
3762
+ }>>;
3763
+ requestId: import("zod").ZodOptional<import("zod").ZodUUID>;
3391
3764
  instructions: import("zod").ZodString;
3392
3765
  prompt: import("zod").ZodString;
3393
3766
  outputSchema: import("zod").ZodArray<import("zod").ZodObject<{
3394
3767
  name: import("zod").ZodString;
3395
3768
  type: import("zod").ZodEnum<{
3396
- string: "string";
3397
3769
  number: "number";
3770
+ string: "string";
3398
3771
  }>;
3399
3772
  }, import("zod/v4/core").$strict>>;
3400
3773
  temperature: import("zod").ZodOptional<import("zod").ZodNumber>;
3401
- modelTier: import("zod").ZodDefault<import("zod").ZodEnum<{
3402
- normal: "normal";
3403
- advance: "advance";
3404
- }>>;
3405
- requestId: import("zod").ZodOptional<import("zod").ZodUUID>;
3406
3774
  }, import("zod/v4/core").$strict>, import("@orpc/contract").Schema<AsyncIteratorObject<{
3407
3775
  [x: string]: unknown;
3408
3776
  type: string;
3409
3777
  }, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{
3410
3778
  [x: string]: unknown;
3411
3779
  type: string;
3412
- }, unknown, void>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "HOSTED_AI_TIER_RESTRICTED" | "HOSTED_AI_QUOTA_EXHAUSTED">>, Record<never, never>>;
3780
+ }, unknown, void>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "HOSTED_AI_QUOTA_EXHAUSTED" | "HOSTED_AI_TIER_RESTRICTED">>, Record<never, never>>;
3413
3781
  };
3414
3782
  noteSuggestion: {
3415
3783
  streamStructuredObject: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3416
- instructions: import("zod").ZodString;
3417
- prompt: import("zod").ZodString;
3418
- temperature: import("zod").ZodOptional<import("zod").ZodNumber>;
3419
3784
  modelTier: import("zod").ZodDefault<import("zod").ZodEnum<{
3420
- normal: "normal";
3421
3785
  advance: "advance";
3786
+ normal: "normal";
3422
3787
  }>>;
3423
3788
  requestId: import("zod").ZodOptional<import("zod").ZodUUID>;
3789
+ instructions: import("zod").ZodString;
3790
+ prompt: import("zod").ZodString;
3791
+ temperature: import("zod").ZodOptional<import("zod").ZodNumber>;
3424
3792
  }, import("zod/v4/core").$strict>, import("@orpc/contract").Schema<AsyncIteratorObject<{
3425
3793
  [x: string]: unknown;
3426
3794
  type: string;
3427
3795
  }, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{
3428
3796
  [x: string]: unknown;
3429
3797
  type: string;
3430
- }, unknown, void>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "HOSTED_AI_TIER_RESTRICTED" | "HOSTED_AI_QUOTA_EXHAUSTED">>, Record<never, never>>;
3798
+ }, unknown, void>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "HOSTED_AI_QUOTA_EXHAUSTED" | "HOSTED_AI_TIER_RESTRICTED">>, Record<never, never>>;
3431
3799
  };
3432
3800
  };
3433
3801
  notebase: {
3434
3802
  list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{}, import("zod/v4/core").$strip>, import("zod").ZodArray<import("zod").ZodObject<{
3435
3803
  id: import("zod").ZodString;
3436
3804
  name: import("zod").ZodString;
3437
- }, import("zod/v4/core").$strip>>, Record<never, never>, Record<never, never>>;
3805
+ }, import("zod/v4/core").$strip>>, Record<never, never>, {
3806
+ summary: string;
3807
+ description: string;
3808
+ } & Record<never, never>>;
3809
+ getSummary: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3810
+ id: import("zod").ZodUUID;
3811
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
3812
+ id: import("zod").ZodString;
3813
+ name: import("zod").ZodString;
3814
+ srsNewPerDay: import("zod").ZodNumber;
3815
+ srsReviewsPerDay: import("zod").ZodNumber;
3816
+ srsDesiredRetention: import("zod").ZodNumber;
3817
+ }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_NOT_FOUND">>, {
3818
+ summary: string;
3819
+ description: string;
3820
+ } & Record<never, never>>;
3438
3821
  get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3439
3822
  id: import("zod").ZodUUID;
3440
3823
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
@@ -3446,8 +3829,8 @@ declare const contract: {
3446
3829
  srsDesiredRetention: import("zod").ZodNumber;
3447
3830
  srsEnableShortTerm: import("zod").ZodBoolean;
3448
3831
  srsMaximumInterval: import("zod").ZodNumber;
3449
- srsLearningSteps: import("zod").ZodArray<import("zod").ZodTemplateLiteral<`${number}m` | `${number}h` | `${number}d`>>;
3450
- srsRelearningSteps: import("zod").ZodArray<import("zod").ZodTemplateLiteral<`${number}m` | `${number}h` | `${number}d`>>;
3832
+ srsLearningSteps: import("zod").ZodArray<import("zod").ZodTemplateLiteral<`${number}d` | `${number}h` | `${number}m`>>;
3833
+ srsRelearningSteps: import("zod").ZodArray<import("zod").ZodTemplateLiteral<`${number}d` | `${number}h` | `${number}m`>>;
3451
3834
  srsLeechThreshold: import("zod").ZodNumber;
3452
3835
  srsEnableFuzz: import("zod").ZodBoolean;
3453
3836
  srsWeights: import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodNumber>>;
@@ -3463,8 +3846,8 @@ declare const contract: {
3463
3846
  type: import("zod").ZodLiteral<"number">;
3464
3847
  decimal: import("zod").ZodDefault<import("zod").ZodNumber>;
3465
3848
  format: import("zod").ZodDefault<import("zod").ZodEnum<{
3466
- number: "number";
3467
3849
  currency: "currency";
3850
+ number: "number";
3468
3851
  percent: "percent";
3469
3852
  }>>;
3470
3853
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
@@ -3500,9 +3883,9 @@ declare const contract: {
3500
3883
  notebaseId: import("zod").ZodString;
3501
3884
  name: import("zod").ZodString;
3502
3885
  type: import("zod").ZodEnum<{
3503
- table: "table";
3504
- kanban: "kanban";
3505
3886
  gallery: "gallery";
3887
+ kanban: "kanban";
3888
+ table: "table";
3506
3889
  }>;
3507
3890
  config: import("zod").ZodNullable<import("zod").ZodObject<{
3508
3891
  notebaseColumnWidths: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodNumber>>;
@@ -3532,8 +3915,8 @@ declare const contract: {
3532
3915
  type: import("zod").ZodLiteral<"number">;
3533
3916
  decimal: import("zod").ZodDefault<import("zod").ZodNumber>;
3534
3917
  format: import("zod").ZodDefault<import("zod").ZodEnum<{
3535
- number: "number";
3536
3918
  currency: "currency";
3919
+ number: "number";
3537
3920
  percent: "percent";
3538
3921
  }>>;
3539
3922
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
@@ -3556,7 +3939,10 @@ declare const contract: {
3556
3939
  createdAt: import("zod").ZodCoercedDate<unknown>;
3557
3940
  updatedAt: import("zod").ZodCoercedDate<unknown>;
3558
3941
  }, import("zod/v4/core").$strip>>;
3559
- }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_NOT_FOUND">>, Record<never, never>>;
3942
+ }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_NOT_FOUND">>, {
3943
+ summary: string;
3944
+ description: string;
3945
+ } & Record<never, never>>;
3560
3946
  create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3561
3947
  id: import("zod").ZodOptional<import("zod").ZodUUID>;
3562
3948
  name: import("zod").ZodString;
@@ -3570,8 +3956,8 @@ declare const contract: {
3570
3956
  type: import("zod").ZodLiteral<"number">;
3571
3957
  decimal: import("zod").ZodDefault<import("zod").ZodNumber>;
3572
3958
  format: import("zod").ZodDefault<import("zod").ZodEnum<{
3573
- number: "number";
3574
3959
  currency: "currency";
3960
+ number: "number";
3575
3961
  percent: "percent";
3576
3962
  }>>;
3577
3963
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
@@ -3598,8 +3984,28 @@ declare const contract: {
3598
3984
  }, import("zod/v4/core").$strict>>>;
3599
3985
  }, import("zod/v4/core").$strict>>;
3600
3986
  }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
3987
+ notebase: import("zod").ZodObject<{
3988
+ id: import("zod").ZodString;
3989
+ userId: import("zod").ZodString;
3990
+ name: import("zod").ZodString;
3991
+ srsNewPerDay: import("zod").ZodNumber;
3992
+ srsReviewsPerDay: import("zod").ZodNumber;
3993
+ srsDesiredRetention: import("zod").ZodNumber;
3994
+ srsEnableShortTerm: import("zod").ZodBoolean;
3995
+ srsMaximumInterval: import("zod").ZodNumber;
3996
+ srsLearningSteps: import("zod").ZodArray<import("zod").ZodTemplateLiteral<`${number}d` | `${number}h` | `${number}m`>>;
3997
+ srsRelearningSteps: import("zod").ZodArray<import("zod").ZodTemplateLiteral<`${number}d` | `${number}h` | `${number}m`>>;
3998
+ srsLeechThreshold: import("zod").ZodNumber;
3999
+ srsEnableFuzz: import("zod").ZodBoolean;
4000
+ srsWeights: import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodNumber>>;
4001
+ createdAt: import("zod").ZodDate;
4002
+ updatedAt: import("zod").ZodDate;
4003
+ }, import("zod/v4/core").$strip>;
3601
4004
  txid: import("zod").ZodNumber;
3602
- }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "NOTE_LIMIT_EXCEEDED" | "CELL_VALIDATION_FAILED">>, Record<never, never>>;
4005
+ }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "CELL_VALIDATION_FAILED" | "NOTE_LIMIT_EXCEEDED">>, Pick<import("@orpc/contract").ErrorMap, "RESOURCE_ALREADY_EXISTS">>, {
4006
+ summary: string;
4007
+ description: string;
4008
+ } & Record<never, never>>;
3603
4009
  update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3604
4010
  name: import("zod").ZodOptional<import("zod").ZodString>;
3605
4011
  srsNewPerDay: import("zod").ZodOptional<import("zod").ZodNumber>;
@@ -3607,13 +4013,37 @@ declare const contract: {
3607
4013
  srsDesiredRetention: import("zod").ZodOptional<import("zod").ZodNumber>;
3608
4014
  id: import("zod").ZodUUID;
3609
4015
  }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
4016
+ notebase: import("zod").ZodObject<{
4017
+ id: import("zod").ZodString;
4018
+ userId: import("zod").ZodString;
4019
+ name: import("zod").ZodString;
4020
+ srsNewPerDay: import("zod").ZodNumber;
4021
+ srsReviewsPerDay: import("zod").ZodNumber;
4022
+ srsDesiredRetention: import("zod").ZodNumber;
4023
+ srsEnableShortTerm: import("zod").ZodBoolean;
4024
+ srsMaximumInterval: import("zod").ZodNumber;
4025
+ srsLearningSteps: import("zod").ZodArray<import("zod").ZodTemplateLiteral<`${number}d` | `${number}h` | `${number}m`>>;
4026
+ srsRelearningSteps: import("zod").ZodArray<import("zod").ZodTemplateLiteral<`${number}d` | `${number}h` | `${number}m`>>;
4027
+ srsLeechThreshold: import("zod").ZodNumber;
4028
+ srsEnableFuzz: import("zod").ZodBoolean;
4029
+ srsWeights: import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodNumber>>;
4030
+ createdAt: import("zod").ZodDate;
4031
+ updatedAt: import("zod").ZodDate;
4032
+ }, import("zod/v4/core").$strip>;
3610
4033
  txid: import("zod").ZodNumber;
3611
- }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_NOT_FOUND">>, Record<never, never>>;
4034
+ }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_NOT_FOUND">>, {
4035
+ summary: string;
4036
+ description: string;
4037
+ } & Record<never, never>>;
3612
4038
  delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3613
4039
  id: import("zod").ZodUUID;
3614
4040
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
4041
+ id: import("zod").ZodUUID;
3615
4042
  txid: import("zod").ZodNumber;
3616
- }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_NOT_FOUND">>, Record<never, never>>;
4043
+ }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_NOT_FOUND">>, {
4044
+ summary: string;
4045
+ description: string;
4046
+ } & Record<never, never>>;
3617
4047
  };
3618
4048
  notebaseColumn: {
3619
4049
  create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
@@ -3627,8 +4057,8 @@ declare const contract: {
3627
4057
  type: import("zod").ZodLiteral<"number">;
3628
4058
  decimal: import("zod").ZodDefault<import("zod").ZodNumber>;
3629
4059
  format: import("zod").ZodDefault<import("zod").ZodEnum<{
3630
- number: "number";
3631
4060
  currency: "currency";
4061
+ number: "number";
3632
4062
  percent: "percent";
3633
4063
  }>>;
3634
4064
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
@@ -3646,11 +4076,49 @@ declare const contract: {
3646
4076
  }, import("zod/v4/core").$strip>], "type">;
3647
4077
  }, import("zod/v4/core").$strict>;
3648
4078
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
4079
+ field: import("zod").ZodObject<{
4080
+ id: import("zod").ZodString;
4081
+ notebaseId: import("zod").ZodString;
4082
+ name: import("zod").ZodString;
4083
+ config: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
4084
+ type: import("zod").ZodLiteral<"string">;
4085
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
4086
+ type: import("zod").ZodLiteral<"number">;
4087
+ decimal: import("zod").ZodDefault<import("zod").ZodNumber>;
4088
+ format: import("zod").ZodDefault<import("zod").ZodEnum<{
4089
+ currency: "currency";
4090
+ number: "number";
4091
+ percent: "percent";
4092
+ }>>;
4093
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
4094
+ type: import("zod").ZodLiteral<"boolean">;
4095
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
4096
+ type: import("zod").ZodLiteral<"date">;
4097
+ dateFormat: import("zod").ZodOptional<import("zod").ZodString>;
4098
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
4099
+ type: import("zod").ZodLiteral<"select">;
4100
+ options: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodObject<{
4101
+ id: import("zod").ZodString;
4102
+ value: import("zod").ZodString;
4103
+ color: import("zod").ZodString;
4104
+ }, import("zod/v4/core").$strip>>>;
4105
+ }, import("zod/v4/core").$strip>], "type">;
4106
+ position: import("zod").ZodNumber;
4107
+ isPrimary: import("zod").ZodBoolean;
4108
+ width: import("zod").ZodNullable<import("zod").ZodNumber>;
4109
+ wrap: import("zod").ZodBoolean;
4110
+ createdAt: import("zod").ZodCoercedDate<unknown>;
4111
+ updatedAt: import("zod").ZodCoercedDate<unknown>;
4112
+ }, import("zod/v4/core").$strip>;
3649
4113
  txid: import("zod").ZodNumber;
3650
- }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_NOT_FOUND" | "CONCURRENT_POSITION_CONFLICT">>, Record<never, never>>;
4114
+ }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "CONCURRENT_POSITION_CONFLICT" | "NOTEBASE_NOT_FOUND">>, Pick<import("@orpc/contract").ErrorMap, "RESOURCE_ALREADY_EXISTS">>, {
4115
+ summary: string;
4116
+ description: string;
4117
+ } & Record<never, never>>;
3651
4118
  update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3652
4119
  notebaseColumnId: import("zod").ZodUUID;
3653
4120
  data: import("zod").ZodObject<{
4121
+ expectedUpdatedAt: import("zod").ZodOptional<import("zod").ZodISODateTime>;
3654
4122
  name: import("zod").ZodOptional<import("zod").ZodString>;
3655
4123
  config: import("zod").ZodOptional<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
3656
4124
  type: import("zod").ZodLiteral<"string">;
@@ -3658,8 +4126,8 @@ declare const contract: {
3658
4126
  type: import("zod").ZodLiteral<"number">;
3659
4127
  decimal: import("zod").ZodDefault<import("zod").ZodNumber>;
3660
4128
  format: import("zod").ZodDefault<import("zod").ZodEnum<{
3661
- number: "number";
3662
4129
  currency: "currency";
4130
+ number: "number";
3663
4131
  percent: "percent";
3664
4132
  }>>;
3665
4133
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
@@ -3679,21 +4147,94 @@ declare const contract: {
3679
4147
  wrap: import("zod").ZodOptional<import("zod").ZodBoolean>;
3680
4148
  }, import("zod/v4/core").$strict>;
3681
4149
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
4150
+ field: import("zod").ZodObject<{
4151
+ id: import("zod").ZodString;
4152
+ notebaseId: import("zod").ZodString;
4153
+ name: import("zod").ZodString;
4154
+ config: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
4155
+ type: import("zod").ZodLiteral<"string">;
4156
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
4157
+ type: import("zod").ZodLiteral<"number">;
4158
+ decimal: import("zod").ZodDefault<import("zod").ZodNumber>;
4159
+ format: import("zod").ZodDefault<import("zod").ZodEnum<{
4160
+ currency: "currency";
4161
+ number: "number";
4162
+ percent: "percent";
4163
+ }>>;
4164
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
4165
+ type: import("zod").ZodLiteral<"boolean">;
4166
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
4167
+ type: import("zod").ZodLiteral<"date">;
4168
+ dateFormat: import("zod").ZodOptional<import("zod").ZodString>;
4169
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
4170
+ type: import("zod").ZodLiteral<"select">;
4171
+ options: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodObject<{
4172
+ id: import("zod").ZodString;
4173
+ value: import("zod").ZodString;
4174
+ color: import("zod").ZodString;
4175
+ }, import("zod/v4/core").$strip>>>;
4176
+ }, import("zod/v4/core").$strip>], "type">;
4177
+ position: import("zod").ZodNumber;
4178
+ isPrimary: import("zod").ZodBoolean;
4179
+ width: import("zod").ZodNullable<import("zod").ZodNumber>;
4180
+ wrap: import("zod").ZodBoolean;
4181
+ createdAt: import("zod").ZodCoercedDate<unknown>;
4182
+ updatedAt: import("zod").ZodCoercedDate<unknown>;
4183
+ }, import("zod/v4/core").$strip>;
3682
4184
  txid: import("zod").ZodNumber;
3683
- }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_COLUMN_NOT_FOUND">>, Record<never, never>>;
4185
+ }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_COLUMN_NOT_FOUND">>, Pick<import("@orpc/contract").ErrorMap, "FIELD_TYPE_CHANGE_UNSUPPORTED" | "RESOURCE_UPDATE_CONFLICT">>, {
4186
+ summary: string;
4187
+ description: string;
4188
+ } & Record<never, never>>;
3684
4189
  delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3685
4190
  notebaseColumnId: import("zod").ZodUUID;
3686
4191
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
4192
+ id: import("zod").ZodUUID;
3687
4193
  txid: import("zod").ZodNumber;
3688
- }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_COLUMN_NOT_FOUND" | "CARD_TEMPLATE_NOTEBASE_COLUMN_IN_USE" | "PRIMARY_NOTEBASE_COLUMN_DELETE_NOT_ALLOWED" | "CONCURRENT_POSITION_CONFLICT">>, Record<never, never>>;
4194
+ }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "CARD_TEMPLATE_NOTEBASE_COLUMN_IN_USE" | "CONCURRENT_POSITION_CONFLICT" | "NOTEBASE_COLUMN_NOT_FOUND" | "PRIMARY_NOTEBASE_COLUMN_DELETE_NOT_ALLOWED">>, {
4195
+ summary: string;
4196
+ description: string;
4197
+ } & Record<never, never>>;
3689
4198
  reorder: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3690
4199
  notebaseId: import("zod").ZodUUID;
3691
4200
  ids: import("zod").ZodArray<import("zod").ZodUUID>;
3692
4201
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
3693
4202
  txid: import("zod").ZodNumber;
3694
- }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_NOT_FOUND" | "CONCURRENT_POSITION_CONFLICT">>, Record<never, never>>;
4203
+ }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "CONCURRENT_POSITION_CONFLICT" | "NOTEBASE_NOT_FOUND">>, Record<never, never>>;
3695
4204
  };
3696
4205
  notebaseRow: {
4206
+ list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
4207
+ limit: import("zod").ZodOptional<import("zod").ZodNumber>;
4208
+ offset: import("zod").ZodOptional<import("zod").ZodNumber>;
4209
+ notebaseId: import("zod").ZodOptional<import("zod").ZodUUID>;
4210
+ query: import("zod").ZodOptional<import("zod").ZodString>;
4211
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
4212
+ items: import("zod").ZodArray<import("zod").ZodObject<{
4213
+ id: import("zod").ZodString;
4214
+ notebaseId: import("zod").ZodString;
4215
+ cells: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
4216
+ position: import("zod").ZodNumber;
4217
+ createdAt: import("zod").ZodCoercedDate<unknown>;
4218
+ updatedAt: import("zod").ZodCoercedDate<unknown>;
4219
+ }, import("zod/v4/core").$strip>>;
4220
+ hasMore: import("zod").ZodBoolean;
4221
+ }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_NOT_FOUND">>, {
4222
+ summary: string;
4223
+ description: string;
4224
+ } & Record<never, never>>;
4225
+ get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
4226
+ id: import("zod").ZodUUID;
4227
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
4228
+ id: import("zod").ZodString;
4229
+ notebaseId: import("zod").ZodString;
4230
+ cells: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
4231
+ position: import("zod").ZodNumber;
4232
+ createdAt: import("zod").ZodCoercedDate<unknown>;
4233
+ updatedAt: import("zod").ZodCoercedDate<unknown>;
4234
+ }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_ROW_NOT_FOUND">>, {
4235
+ summary: string;
4236
+ description: string;
4237
+ } & Record<never, never>>;
3697
4238
  create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3698
4239
  notebaseId: import("zod").ZodUUID;
3699
4240
  data: import("zod").ZodObject<{
@@ -3701,8 +4242,19 @@ declare const contract: {
3701
4242
  cells: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
3702
4243
  }, import("zod/v4/core").$strict>;
3703
4244
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
4245
+ note: import("zod").ZodObject<{
4246
+ id: import("zod").ZodString;
4247
+ notebaseId: import("zod").ZodString;
4248
+ cells: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
4249
+ position: import("zod").ZodNumber;
4250
+ createdAt: import("zod").ZodCoercedDate<unknown>;
4251
+ updatedAt: import("zod").ZodCoercedDate<unknown>;
4252
+ }, import("zod/v4/core").$strip>;
3704
4253
  txid: import("zod").ZodNumber;
3705
- }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_NOT_FOUND" | "NOTE_LIMIT_EXCEEDED" | "CELL_VALIDATION_FAILED" | "CONCURRENT_POSITION_CONFLICT">>, Record<never, never>>;
4254
+ }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "CELL_VALIDATION_FAILED" | "CONCURRENT_POSITION_CONFLICT" | "NOTEBASE_NOT_FOUND" | "NOTE_LIMIT_EXCEEDED">>, Pick<import("@orpc/contract").ErrorMap, "RESOURCE_ALREADY_EXISTS">>, {
4255
+ summary: string;
4256
+ description: string;
4257
+ } & Record<never, never>>;
3706
4258
  createMany: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3707
4259
  notebaseId: import("zod").ZodUUID;
3708
4260
  rows: import("zod").ZodArray<import("zod").ZodObject<{
@@ -3710,12 +4262,24 @@ declare const contract: {
3710
4262
  cells: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
3711
4263
  }, import("zod/v4/core").$strict>>;
3712
4264
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
4265
+ items: import("zod").ZodArray<import("zod").ZodObject<{
4266
+ id: import("zod").ZodString;
4267
+ notebaseId: import("zod").ZodString;
4268
+ cells: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
4269
+ position: import("zod").ZodNumber;
4270
+ createdAt: import("zod").ZodCoercedDate<unknown>;
4271
+ updatedAt: import("zod").ZodCoercedDate<unknown>;
4272
+ }, import("zod/v4/core").$strip>>;
3713
4273
  txid: import("zod").ZodNumber;
3714
- }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_NOT_FOUND" | "NOTE_LIMIT_EXCEEDED" | "CELL_VALIDATION_FAILED" | "CONCURRENT_POSITION_CONFLICT">>, Record<never, never>>;
4274
+ }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "CELL_VALIDATION_FAILED" | "CONCURRENT_POSITION_CONFLICT" | "NOTEBASE_NOT_FOUND" | "NOTE_LIMIT_EXCEEDED">>, Pick<import("@orpc/contract").ErrorMap, "RESOURCE_ALREADY_EXISTS">>, {
4275
+ summary: string;
4276
+ description: string;
4277
+ } & Record<never, never>>;
3715
4278
  update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3716
4279
  notebaseRowId: import("zod").ZodUUID;
3717
4280
  data: import("zod").ZodObject<{
3718
4281
  cells: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
4282
+ expectedUpdatedAt: import("zod").ZodOptional<import("zod").ZodISODateTime>;
3719
4283
  }, import("zod/v4/core").$strict>;
3720
4284
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
3721
4285
  id: import("zod").ZodUUID;
@@ -3725,89 +4289,119 @@ declare const contract: {
3725
4289
  createdAt: import("zod").ZodDate;
3726
4290
  updatedAt: import("zod").ZodDate;
3727
4291
  txid: import("zod").ZodNumber;
3728
- }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_ROW_NOT_FOUND" | "CELL_VALIDATION_FAILED">>, Record<never, never>>;
4292
+ }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "CELL_VALIDATION_FAILED" | "NOTEBASE_ROW_NOT_FOUND">>, Pick<import("@orpc/contract").ErrorMap, "RESOURCE_UPDATE_CONFLICT">>, {
4293
+ summary: string;
4294
+ description: string;
4295
+ } & Record<never, never>>;
3729
4296
  delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3730
4297
  notebaseRowId: import("zod").ZodUUID;
3731
4298
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
4299
+ id: import("zod").ZodUUID;
3732
4300
  txid: import("zod").ZodNumber;
3733
- }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_ROW_NOT_FOUND" | "CONCURRENT_POSITION_CONFLICT">>, Record<never, never>>;
4301
+ }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "CONCURRENT_POSITION_CONFLICT" | "NOTEBASE_ROW_NOT_FOUND">>, {
4302
+ summary: string;
4303
+ description: string;
4304
+ } & Record<never, never>>;
3734
4305
  reorder: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3735
4306
  notebaseId: import("zod").ZodUUID;
3736
4307
  ids: import("zod").ZodArray<import("zod").ZodUUID>;
3737
4308
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
3738
4309
  txid: import("zod").ZodNumber;
3739
- }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_NOT_FOUND" | "CONCURRENT_POSITION_CONFLICT">>, Record<never, never>>;
4310
+ }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "CONCURRENT_POSITION_CONFLICT" | "NOTEBASE_NOT_FOUND">>, Record<never, never>>;
3740
4311
  };
3741
4312
  srs: {
3742
4313
  scheduleStatusStats: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3743
4314
  notebaseIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodUUID>>;
3744
4315
  timezone: import("zod").ZodString;
3745
4316
  }, import("zod/v4/core").$strict>, import("zod").ZodRecord<import("zod").ZodUUID, import("zod").ZodRecord<import("zod").ZodEnum<{
3746
- new: "new";
3747
4317
  learning: "learning";
4318
+ new: "new";
3748
4319
  review: "review";
3749
- }>, import("zod").ZodNumber>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_NOT_FOUND">>, Record<never, never>>;
4320
+ }>, import("zod").ZodNumber>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_NOT_FOUND">>, {
4321
+ summary: string;
4322
+ description: string;
4323
+ } & Record<never, never>>;
4324
+ listUnreadOptimizerResults: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{}, import("zod/v4/core").$strict>, import("zod").ZodArray<import("zod").ZodObject<{
4325
+ runId: import("zod").ZodUUID;
4326
+ notebaseName: import("zod").ZodString;
4327
+ revlogCount: import("zod").ZodNumber;
4328
+ improvement: import("zod").ZodNullable<import("zod").ZodNumber>;
4329
+ }, import("zod/v4/core").$strict>>, Record<never, never>, Record<never, never>>;
4330
+ acknowledgeOptimizerResults: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
4331
+ runIds: import("zod").ZodArray<import("zod").ZodUUID>;
4332
+ }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
4333
+ acknowledgedCount: import("zod").ZodNumber;
4334
+ }, import("zod/v4/core").$strict>, Record<never, never>, Record<never, never>>;
3750
4335
  listCardRevlogs: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3751
- cardId: import("zod").ZodUUID;
4336
+ limit: import("zod").ZodOptional<import("zod").ZodNumber>;
4337
+ offset: import("zod").ZodOptional<import("zod").ZodNumber>;
4338
+ notebaseId: import("zod").ZodOptional<import("zod").ZodUUID>;
4339
+ cardId: import("zod").ZodOptional<import("zod").ZodUUID>;
3752
4340
  }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
3753
4341
  items: import("zod").ZodArray<import("zod").ZodObject<{
3754
4342
  id: import("zod").ZodUUID;
3755
4343
  notebaseId: import("zod").ZodUUID;
3756
- state: import("zod").ZodEnum<{
3757
- new: "new";
3758
- learning: "learning";
3759
- review: "review";
3760
- relearning: "relearning";
3761
- }>;
3762
- stability: import("zod").ZodNumber;
3763
- createdAt: import("zod").ZodCoercedDate<unknown>;
3764
4344
  cardId: import("zod").ZodUUID;
3765
4345
  rating: import("zod").ZodEnum<{
3766
4346
  again: "again";
3767
- hard: "hard";
3768
- good: "good";
3769
4347
  easy: "easy";
4348
+ good: "good";
4349
+ hard: "hard";
3770
4350
  }>;
3771
- afterScheduleStatus: import("zod").ZodEnum<{
4351
+ state: import("zod").ZodEnum<{
4352
+ learning: "learning";
3772
4353
  new: "new";
4354
+ relearning: "relearning";
4355
+ review: "review";
4356
+ }>;
4357
+ stability: import("zod").ZodNumber;
4358
+ afterScheduleStatus: import("zod").ZodEnum<{
4359
+ buried: "buried";
3773
4360
  learning: "learning";
4361
+ new: "new";
3774
4362
  review: "review";
3775
4363
  suspended: "suspended";
3776
- buried: "buried";
3777
4364
  }>;
3778
4365
  afterStability: import("zod").ZodNumber;
3779
4366
  reviewedAt: import("zod").ZodCoercedDate<unknown>;
3780
4367
  durationMs: import("zod").ZodNumber;
4368
+ createdAt: import("zod").ZodCoercedDate<unknown>;
3781
4369
  }, import("zod/v4/core").$strip>>;
3782
- }, import("zod/v4/core").$strict>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "CARD_NOT_FOUND">>, Record<never, never>>;
4370
+ hasMore: import("zod").ZodBoolean;
4371
+ }, import("zod/v4/core").$strict>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "CARD_NOT_FOUND" | "NOTEBASE_NOT_FOUND">>, {
4372
+ summary: string;
4373
+ description: string;
4374
+ } & Record<never, never>>;
3783
4375
  review: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3784
4376
  cardId: import("zod").ZodUUID;
3785
4377
  id: import("zod").ZodOptional<import("zod").ZodUUID>;
3786
4378
  rating: import("zod").ZodEnum<{
3787
4379
  again: "again";
3788
- hard: "hard";
3789
- good: "good";
3790
4380
  easy: "easy";
4381
+ good: "good";
4382
+ hard: "hard";
3791
4383
  }>;
3792
4384
  durationMs: import("zod").ZodNumber;
3793
4385
  timezone: import("zod").ZodString;
3794
4386
  }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
3795
4387
  card: import("zod").ZodObject<{
3796
- createdAt: import("zod").ZodCoercedDate<unknown>;
3797
- updatedAt: import("zod").ZodCoercedDate<unknown>;
3798
- buriedAt: import("zod").ZodNullable<import("zod").ZodCoercedDate<unknown>>;
4388
+ notebaseId: import("zod").ZodUUID;
4389
+ notebaseRowId: import("zod").ZodUUID;
4390
+ templateId: import("zod").ZodUUID;
4391
+ variantKey: import("zod").ZodString;
4392
+ id: import("zod").ZodUUID;
3799
4393
  state: import("zod").ZodEnum<{
3800
- new: "new";
3801
4394
  learning: "learning";
3802
- review: "review";
4395
+ new: "new";
3803
4396
  relearning: "relearning";
4397
+ review: "review";
3804
4398
  }>;
3805
4399
  scheduleStatus: import("zod").ZodEnum<{
3806
- new: "new";
4400
+ buried: "buried";
3807
4401
  learning: "learning";
4402
+ new: "new";
3808
4403
  review: "review";
3809
4404
  suspended: "suspended";
3810
- buried: "buried";
3811
4405
  }>;
3812
4406
  dueAt: import("zod").ZodCoercedDate<unknown>;
3813
4407
  lastReviewTime: import("zod").ZodNullable<import("zod").ZodCoercedDate<unknown>>;
@@ -3816,11 +4410,9 @@ declare const contract: {
3816
4410
  step: import("zod").ZodNumber;
3817
4411
  lapses: import("zod").ZodNumber;
3818
4412
  reps: import("zod").ZodNumber;
3819
- id: import("zod").ZodUUID;
3820
- notebaseId: import("zod").ZodUUID;
3821
- notebaseRowId: import("zod").ZodUUID;
3822
- templateId: import("zod").ZodUUID;
3823
- variantKey: import("zod").ZodString;
4413
+ buriedAt: import("zod").ZodNullable<import("zod").ZodCoercedDate<unknown>>;
4414
+ createdAt: import("zod").ZodCoercedDate<unknown>;
4415
+ updatedAt: import("zod").ZodCoercedDate<unknown>;
3824
4416
  }, import("zod/v4/core").$strip>;
3825
4417
  revlog: import("zod").ZodObject<{
3826
4418
  id: import("zod").ZodUUID;
@@ -3828,61 +4420,92 @@ declare const contract: {
3828
4420
  cardId: import("zod").ZodUUID;
3829
4421
  rating: import("zod").ZodEnum<{
3830
4422
  again: "again";
3831
- hard: "hard";
3832
- good: "good";
3833
4423
  easy: "easy";
4424
+ good: "good";
4425
+ hard: "hard";
3834
4426
  }>;
3835
4427
  state: import("zod").ZodEnum<{
3836
- new: "new";
3837
4428
  learning: "learning";
3838
- review: "review";
4429
+ new: "new";
3839
4430
  relearning: "relearning";
4431
+ review: "review";
3840
4432
  }>;
3841
4433
  stability: import("zod").ZodNumber;
3842
4434
  afterScheduleStatus: import("zod").ZodEnum<{
3843
- new: "new";
4435
+ buried: "buried";
3844
4436
  learning: "learning";
4437
+ new: "new";
3845
4438
  review: "review";
3846
4439
  suspended: "suspended";
3847
- buried: "buried";
3848
4440
  }>;
3849
4441
  afterStability: import("zod").ZodNumber;
3850
4442
  reviewedAt: import("zod").ZodCoercedDate<unknown>;
3851
4443
  durationMs: import("zod").ZodNumber;
3852
- fsrsReviewLogSnapshot: import("zod").ZodObject<{
4444
+ fsrsReviewLogSnapshot: import("zod").ZodPipe<import("zod").ZodObject<{
3853
4445
  rating: import("zod").ZodUnion<readonly [import("zod").ZodLiteral<1>, import("zod").ZodLiteral<2>, import("zod").ZodLiteral<3>, import("zod").ZodLiteral<4>]>;
3854
4446
  state: import("zod").ZodUnion<readonly [import("zod").ZodLiteral<0>, import("zod").ZodLiteral<1>, import("zod").ZodLiteral<2>, import("zod").ZodLiteral<3>]>;
4447
+ scheduleStatus: import("zod").ZodEnum<{
4448
+ learning: "learning";
4449
+ new: "new";
4450
+ review: "review";
4451
+ suspended: "suspended";
4452
+ }>;
3855
4453
  dueAt: import("zod").ZodString;
3856
4454
  stability: import("zod").ZodNumber;
3857
4455
  difficulty: import("zod").ZodNumber;
3858
- scheduledDays: import("zod").ZodNumber;
4456
+ scheduledDays: import("zod").ZodOptional<import("zod").ZodNumber>;
3859
4457
  learningSteps: import("zod").ZodNumber;
3860
4458
  review: import("zod").ZodString;
3861
- }, import("zod/v4/core").$strict>;
4459
+ }, import("zod/v4/core").$strict>, import("zod").ZodTransform<{
4460
+ rating: 1 | 2 | 3 | 4;
4461
+ state: 0 | 1 | 2 | 3;
4462
+ scheduleStatus: "learning" | "new" | "review" | "suspended";
4463
+ dueAt: string;
4464
+ stability: number;
4465
+ difficulty: number;
4466
+ learningSteps: number;
4467
+ review: string;
4468
+ }, {
4469
+ rating: 1 | 2 | 3 | 4;
4470
+ state: 0 | 1 | 2 | 3;
4471
+ scheduleStatus: "learning" | "new" | "review" | "suspended";
4472
+ dueAt: string;
4473
+ stability: number;
4474
+ difficulty: number;
4475
+ scheduledDays?: number | undefined;
4476
+ learningSteps: number;
4477
+ review: string;
4478
+ }>>;
3862
4479
  createdAt: import("zod").ZodCoercedDate<unknown>;
3863
4480
  }, import("zod/v4/core").$strip>;
3864
4481
  txid: import("zod").ZodNumber;
3865
4482
  created: import("zod").ZodBoolean;
3866
- }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "CARD_NOT_FOUND" | "CARD_NOT_REVIEWABLE" | "CARD_REVIEW_STATE_STALE">>, Record<never, never>>;
4483
+ }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "CARD_NOT_FOUND" | "CARD_NOT_REVIEWABLE" | "CARD_REVIEW_STATE_STALE">>, {
4484
+ summary: string;
4485
+ description: string;
4486
+ } & Record<never, never>>;
3867
4487
  rollbackReview: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
4488
+ expectedReviewId: import("zod").ZodOptional<import("zod").ZodUUID>;
3868
4489
  cardId: import("zod").ZodUUID;
3869
4490
  }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
3870
4491
  card: import("zod").ZodObject<{
3871
- createdAt: import("zod").ZodCoercedDate<unknown>;
3872
- updatedAt: import("zod").ZodCoercedDate<unknown>;
3873
- buriedAt: import("zod").ZodNullable<import("zod").ZodCoercedDate<unknown>>;
4492
+ notebaseId: import("zod").ZodUUID;
4493
+ notebaseRowId: import("zod").ZodUUID;
4494
+ templateId: import("zod").ZodUUID;
4495
+ variantKey: import("zod").ZodString;
4496
+ id: import("zod").ZodUUID;
3874
4497
  state: import("zod").ZodEnum<{
3875
- new: "new";
3876
4498
  learning: "learning";
3877
- review: "review";
4499
+ new: "new";
3878
4500
  relearning: "relearning";
4501
+ review: "review";
3879
4502
  }>;
3880
4503
  scheduleStatus: import("zod").ZodEnum<{
3881
- new: "new";
4504
+ buried: "buried";
3882
4505
  learning: "learning";
4506
+ new: "new";
3883
4507
  review: "review";
3884
4508
  suspended: "suspended";
3885
- buried: "buried";
3886
4509
  }>;
3887
4510
  dueAt: import("zod").ZodCoercedDate<unknown>;
3888
4511
  lastReviewTime: import("zod").ZodNullable<import("zod").ZodCoercedDate<unknown>>;
@@ -3891,27 +4514,34 @@ declare const contract: {
3891
4514
  step: import("zod").ZodNumber;
3892
4515
  lapses: import("zod").ZodNumber;
3893
4516
  reps: import("zod").ZodNumber;
3894
- id: import("zod").ZodUUID;
3895
- notebaseId: import("zod").ZodUUID;
3896
- notebaseRowId: import("zod").ZodUUID;
3897
- templateId: import("zod").ZodUUID;
3898
- variantKey: import("zod").ZodString;
4517
+ buriedAt: import("zod").ZodNullable<import("zod").ZodCoercedDate<unknown>>;
4518
+ createdAt: import("zod").ZodCoercedDate<unknown>;
4519
+ updatedAt: import("zod").ZodCoercedDate<unknown>;
3899
4520
  }, import("zod/v4/core").$strip>;
3900
4521
  rolledBackRevlogId: import("zod").ZodUUID;
3901
4522
  txid: import("zod").ZodNumber;
3902
- }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "CARD_NOT_FOUND" | "CARD_REVIEW_ROLLBACK_UNAVAILABLE">>, Record<never, never>>;
4523
+ }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "CARD_NOT_FOUND" | "CARD_REVIEW_ROLLBACK_UNAVAILABLE" | "CARD_REVIEW_STATE_STALE">>, {
4524
+ summary: string;
4525
+ description: string;
4526
+ } & Record<never, never>>;
3903
4527
  setCardBuried: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3904
4528
  cardId: import("zod").ZodUUID;
3905
4529
  enabled: import("zod").ZodBoolean;
3906
4530
  }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
3907
4531
  txid: import("zod").ZodNumber;
3908
- }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "CARD_NOT_FOUND" | "CARD_ALREADY_BURIED" | "CARD_NOT_BURIED" | "CARD_STATUS_CHANGE_UNAVAILABLE">>, Record<never, never>>;
4532
+ }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "CARD_ALREADY_BURIED" | "CARD_NOT_BURIED" | "CARD_NOT_FOUND" | "CARD_STATUS_CHANGE_UNAVAILABLE">>, {
4533
+ summary: string;
4534
+ description: string;
4535
+ } & Record<never, never>>;
3909
4536
  setCardSuspended: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3910
4537
  cardId: import("zod").ZodUUID;
3911
4538
  enabled: import("zod").ZodBoolean;
3912
4539
  }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
3913
4540
  txid: import("zod").ZodNumber;
3914
- }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "CARD_NOT_FOUND" | "CARD_ALREADY_SUSPENDED" | "CARD_NOT_SUSPENDED" | "CARD_STATUS_CHANGE_UNAVAILABLE">>, Record<never, never>>;
4541
+ }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "CARD_ALREADY_SUSPENDED" | "CARD_NOT_FOUND" | "CARD_NOT_SUSPENDED" | "CARD_STATUS_CHANGE_UNAVAILABLE">>, {
4542
+ summary: string;
4543
+ description: string;
4544
+ } & Record<never, never>>;
3915
4545
  };
3916
4546
  stats: {
3917
4547
  activity: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
@@ -3983,10 +4613,10 @@ declare const contract: {
3983
4613
  videoId: import("zod").ZodString;
3984
4614
  url: import("zod").ZodString;
3985
4615
  status: import("zod").ZodEnum<{
3986
- pending: "pending";
3987
- processing: "processing";
3988
4616
  completed: "completed";
3989
4617
  failed: "failed";
4618
+ pending: "pending";
4619
+ processing: "processing";
3990
4620
  }>;
3991
4621
  title: import("zod").ZodNullable<import("zod").ZodString>;
3992
4622
  durationSec: import("zod").ZodNullable<import("zod").ZodNumber>;
@@ -3994,7 +4624,7 @@ declare const contract: {
3994
4624
  error: import("zod").ZodNullable<import("zod").ZodString>;
3995
4625
  createdAt: import("zod").ZodDate;
3996
4626
  updatedAt: import("zod").ZodDate;
3997
- }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "VIDEO_TRANSCRIPTION_SUBSCRIPTION_REQUIRED" | "VIDEO_TRANSCRIPTION_PAYMENT_REQUIRED" | "VIDEO_TRANSCRIPTION_QUOTA_EXCEEDED" | "VIDEO_TRANSCRIPTION_UNSUPPORTED_LENGTH">>, Record<never, never>>;
4627
+ }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "VIDEO_TRANSCRIPTION_PAYMENT_REQUIRED" | "VIDEO_TRANSCRIPTION_QUOTA_EXCEEDED" | "VIDEO_TRANSCRIPTION_SUBSCRIPTION_REQUIRED" | "VIDEO_TRANSCRIPTION_UNSUPPORTED_LENGTH">>, Record<never, never>>;
3998
4628
  getUsage: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodObject<{
3999
4629
  usedMinutes: import("zod").ZodNumber;
4000
4630
  limitMinutes: import("zod").ZodNumber;
@@ -4021,10 +4651,10 @@ declare const contract: {
4021
4651
  videoId: import("zod").ZodString;
4022
4652
  url: import("zod").ZodString;
4023
4653
  status: import("zod").ZodEnum<{
4024
- pending: "pending";
4025
- processing: "processing";
4026
4654
  completed: "completed";
4027
4655
  failed: "failed";
4656
+ pending: "pending";
4657
+ processing: "processing";
4028
4658
  }>;
4029
4659
  title: import("zod").ZodNullable<import("zod").ZodString>;
4030
4660
  durationSec: import("zod").ZodNullable<import("zod").ZodNumber>;
@@ -4048,5 +4678,5 @@ declare const contract: {
4048
4678
  };
4049
4679
  type ORPCRouterClient = ContractRouterClient<typeof contract>;
4050
4680
  //#endregion
4051
- export { ActivityStatsOutput, BetaAccessStatusInput, BetaAccessStatusInputSchema, BetaAccessStatusOutput, BetaAccessStatusOutputSchema, BetaFeatureKey, BetaFeatureKeySchema, BillingAccessSource, BillingCancelScheduledChangeOutput, BillingCheckoutPlan, BillingCreateCheckoutSessionInput, BillingCreateCustomerPortalSessionInput, BillingCurrency, BillingInterval, BillingLocale, BillingPlan, BillingScheduledChange, BillingSessionUrlOutput, BillingStatus, BillingSubscriptionStatus, Card, CardGenerateInput, CardGenerateInputSchema, CardGenerateOutput, CardGenerateOutputSchema, CardGetInput, CardGetInputSchema, CardGetOutput, CardGetOutputSchema, CardListInput, CardListInputSchema, CardListOutput, CardListOutputSchema, type CardState, CardTemplate, CardTemplateCreateInput, CardTemplateCreateInputSchema, CardTemplateCreateOutput, CardTemplateCreateOutputSchema, CardTemplateDeleteInput, CardTemplateDeleteInputSchema, CardTemplateDeleteOutput, CardTemplateDeleteOutputSchema, CardTemplateGetInput, CardTemplateGetInputSchema, CardTemplateGetOutput, CardTemplateGetOutputSchema, CardTemplateInvalidColumnsData, CardTemplateInvalidColumnsDataSchema, CardTemplateListInput, CardTemplateListInputSchema, CardTemplateListOutput, CardTemplateListOutputSchema, CardTemplateUpdateInput, CardTemplateUpdateInputSchema, CardTemplateUpdateOutput, CardTemplateUpdateOutputSchema, CellValidationFailedData, CellValidationFailedDataSchema, CellValidationFailureDetails, CellValidationFailureDetailsSchema, CellValidationFailureReason, CellValidationFailureReasonSchema, EbookCoverContentType, EbookDeleteInput, EbookDeleteOutput, EbookDetail, EbookFinalizeUploadInput, EbookFinalizeUploadOutput, EbookGetDownloadUrlInput, EbookGetDownloadUrlOutput, EbookGetInput, EbookGetOutput, EbookListInput, EbookListItem, EbookListOutput, EbookPresignedPost, EbookQuota, EbookRenameData, EbookRenameInput, EbookRenameOutput, EbookRequestUploadInput, EbookRequestUploadOutput, EbookStatus, EbookUpdateProgressData, EbookUpdateProgressInput, EbookUpdateProgressOutput, HOSTED_AI_CLIENT_STREAM_PART_TYPES, HOSTED_AI_NOTE_SUGGESTION_MAX_NOTES, HOSTED_AI_NOTE_SUGGESTION_MAX_NOTE_FIELDS, HostedAiCreditPeriodKind, HostedAiCreditPeriodKindSchema, HostedAiCreditPolicyId, HostedAiCreditPolicyIdSchema, HostedAiCreditStatus, HostedAiCreditStatusSchema, HostedAiFeature, HostedAiFeatureSchema, HostedAiFeatureStatus, HostedAiFeatureStatusSchema, HostedAiModelTier, HostedAiModelTierSchema, HostedAiNoteSuggestionObject, HostedAiNoteSuggestionObjectSchema, HostedAiNoteSuggestionStreamInput, HostedAiNoteSuggestionStreamInputSchema, HostedAiOutputField, HostedAiOutputFieldSchema, HostedAiOutputFieldType, HostedAiOutputFieldTypeSchema, HostedAiQuotaExhaustedDataSchema, HostedAiQuotaScope, HostedAiQuotaScopeSchema, HostedAiRateLimitErrorData, HostedAiRateLimitErrorDataSchema, HostedAiRequestIdSchema, HostedAiStatusInput, HostedAiStatusInputSchema, HostedAiStatusOutput, HostedAiStatusOutputSchema, HostedAiStreamPart, HostedAiStreamPartSchema, HostedAiStreamStructuredObjectInput, HostedAiStreamStructuredObjectInputSchema, HostedAiStreamTextInput, HostedAiStreamTextInputSchema, HostedAiTierRestrictedDataSchema, HostedAiTierStatus, HostedAiTierStatusSchema, HostedAiUnavailableReason, HostedAiUnavailableReasonSchema, NOTEBASE_ROW_CREATE_MANY_MAX_ROWS, Notebase, NotebaseActivityStatsItem, NotebaseActivityStatsOutput, NotebaseColumn, NotebaseColumnCreateData, NotebaseColumnCreateInput, NotebaseColumnCreateInputSchema, NotebaseColumnCreateOutput, NotebaseColumnCreateOutputSchema, NotebaseColumnDeleteInput, NotebaseColumnDeleteInputSchema, NotebaseColumnDeleteOutput, NotebaseColumnDeleteOutputSchema, NotebaseColumnReorderInput, NotebaseColumnReorderInputSchema, NotebaseColumnReorderOutput, NotebaseColumnReorderOutputSchema, NotebaseColumnUpdateData, NotebaseColumnUpdateInput, NotebaseColumnUpdateInputSchema, NotebaseColumnUpdateOutput, NotebaseColumnUpdateOutputSchema, NotebaseCreateData, NotebaseCreateInput, NotebaseCreateInputSchema, NotebaseCreateOutput, NotebaseCreateOutputSchema, NotebaseDeleteInput, NotebaseDeleteInputSchema, NotebaseDeleteOutput, NotebaseDeleteOutputSchema, NotebaseGetInput, NotebaseGetInputSchema, NotebaseGetOutput, NotebaseGetOutputSchema, NotebaseGetSchemaInput, NotebaseGetSchemaInputSchema, NotebaseGetSchemaOutput, NotebaseGetSchemaOutputSchema, NotebaseListInput, NotebaseListInputSchema, NotebaseListItem, NotebaseListItemSchema, NotebaseListOutput, NotebaseListOutputSchema, NotebaseRow, NotebaseRowCreateData, NotebaseRowCreateInput, NotebaseRowCreateInputSchema, NotebaseRowCreateManyInput, NotebaseRowCreateManyInputSchema, NotebaseRowCreateManyOutput, NotebaseRowCreateManyOutputSchema, NotebaseRowCreateOutput, NotebaseRowCreateOutputSchema, NotebaseRowDeleteInput, NotebaseRowDeleteInputSchema, NotebaseRowDeleteOutput, NotebaseRowDeleteOutputSchema, NotebaseRowGrowthStatsItem, NotebaseRowGrowthStatsOutput, NotebaseRowReorderInput, NotebaseRowReorderInputSchema, NotebaseRowReorderOutput, NotebaseRowReorderOutputSchema, NotebaseRowUpdateData, NotebaseRowUpdateInput, NotebaseRowUpdateInputSchema, NotebaseRowUpdateOutput, NotebaseRowUpdateOutputSchema, NotebaseUpdateData, NotebaseUpdateInput, NotebaseUpdateInputSchema, NotebaseUpdateOutput, NotebaseUpdateOutputSchema, NotebaseView, NotebaseViewConfig, NotebaseViewCreateData, NotebaseViewFilter, NotebaseViewSort, NotebaseViewType, NotebaseViewUpdateData, ORPCRouterClient, PUBLIC_APP_ERROR_DEFS, PublicAppErrorCode, PublicAppErrorData, RenderedCard, type ReviewRating, SRS_REVIEW_CLIENT_ID_NAMESPACE, SRS_REVIEW_DURATION_MS_MAX, type ScheduleStatus, type SchedulingParams, SrsActivityStatsItem, SrsActivityStatsOutput, SrsListCardRevlogsInput, SrsListCardRevlogsOutput, SrsManualCardStatusInput, SrsMemoryGrowthStatsItem, SrsMemoryGrowthStatsOutput, SrsReviewClientIdCard, SrsReviewInput, SrsReviewOutput, SrsRevlog, SrsRevlogWithoutSnapshot, SrsRollbackReviewInput, SrsRollbackReviewOutput, SrsScheduleStatusStats, SrsScheduleStatusStatsInput, SrsScheduleStatusStatsOutput, SrsSetCardBuriedInput, SrsSetCardBuriedOutput, SrsSetCardSuspendedInput, SrsSetCardSuspendedOutput, SrsTxidOutput, StatsInput, Step, Timezone, UserEnsureTimezoneInput, UserEnsureTimezoneOutput, UserUpdateTimezoneInput, UserUpdateTimezoneOutput, VideoTranscriptCreateInput, VideoTranscriptGetInput, VideoTranscriptResource, VideoTranscriptStatus, VideoTranscriptSubtitles, VideoTranscriptUsage, VideoTranscriptUsagePool, activityStatsOutputSchema, billingAccessSourceSchema, billingCancelScheduledChangeOutputSchema, billingCheckoutPlanSchema, billingCreateCheckoutSessionInputSchema, billingCreateCustomerPortalSessionInputSchema, billingCurrencySchema, billingIntervalSchema, billingLocaleSchema, billingPlanSchema, billingScheduledChangeSchema, billingSessionUrlOutputSchema, billingStatusSchema, billingSubscriptionStatusSchema, cardSchema, cardStateSchema, cardTemplateSchema, contract, createSrsReviewClientId, ebookCoverContentTypeSchema, ebookDeleteInputSchema, ebookDeleteOutputSchema, ebookDetailSchema, ebookFinalizeUploadInputSchema, ebookFinalizeUploadOutputSchema, ebookGetDownloadUrlInputSchema, ebookGetDownloadUrlOutputSchema, ebookGetInputSchema, ebookGetOutputSchema, ebookListInputSchema, ebookListItemSchema, ebookListOutputSchema, ebookPresignedPostSchema, ebookQuotaSchema, ebookRenameDataSchema, ebookRenameInputSchema, ebookRenameOutputSchema, ebookRequestUploadInputSchema, ebookRequestUploadOutputSchema, ebookStatusSchema, ebookUpdateProgressDataSchema, ebookUpdateProgressInputSchema, ebookUpdateProgressOutputSchema, getPublicErrorDefinition, isPublicAppErrorCode, notebaseActivityStatsItemSchema, notebaseActivityStatsOutputSchema, notebaseColumnCreateDataSchema, notebaseColumnSchema, notebaseColumnUpdateDataSchema, notebaseColumnWidthSchema, notebaseCreateDataSchema, notebaseRowCellsSchema, notebaseRowCreateDataSchema, notebaseRowGrowthStatsItemSchema, notebaseRowGrowthStatsOutputSchema, notebaseRowSchema, notebaseRowUpdateDataSchema, notebaseSchema, notebaseUpdateDataSchema, notebaseViewConfigSchema, notebaseViewCreateDataSchema, notebaseViewFilterSchema, notebaseViewFiltersSchema, notebaseViewSchema, notebaseViewSortSchema, notebaseViewSortsSchema, notebaseViewTypeSchema, notebaseViewUpdateDataSchema, pickPublicErrorMap, renderedCardSchema, reviewRatingSchema, scheduleStatusSchema, schedulingParamsSchema, srsActivityStatsItemSchema, srsActivityStatsOutputSchema, srsListCardRevlogsInputSchema, srsListCardRevlogsOutputSchema, srsManualCardStatusInputSchema, srsMemoryGrowthStatsItemSchema, srsMemoryGrowthStatsOutputSchema, srsReviewInputSchema, srsReviewOutputSchema, srsRevlogSchema, srsRevlogWithoutSnapshotSchema, srsRollbackReviewInputSchema, srsRollbackReviewOutputSchema, srsScheduleStatusStatsInputSchema, srsScheduleStatusStatsOutputSchema, srsScheduleStatusStatsSchema, srsSetCardBuriedInputSchema, srsSetCardBuriedOutputSchema, srsSetCardSuspendedInputSchema, srsSetCardSuspendedOutputSchema, srsTxidOutputSchema, statsInputSchema, stepSchema, timezoneSchema, userEnsureTimezoneInputSchema, userEnsureTimezoneOutputSchema, userUpdateTimezoneInputSchema, userUpdateTimezoneOutputSchema, videoTranscriptCreateInputSchema, videoTranscriptGetInputSchema, videoTranscriptResourceSchema, videoTranscriptStatusSchema, videoTranscriptSubtitlesSchema, videoTranscriptUsagePoolSchema, videoTranscriptUsageSchema };
4681
+ export { ActivityStatsOutput, type AgentRoute, BetaAccessStatusInput, BetaAccessStatusInputSchema, BetaAccessStatusOutput, BetaAccessStatusOutputSchema, BetaFeatureKey, BetaFeatureKeySchema, BillingAccessSource, BillingCancelScheduledChangeOutput, BillingCheckoutPlan, BillingCreateCheckoutSessionInput, BillingCreateCustomerPortalSessionInput, BillingCurrency, BillingInterval, BillingLocale, BillingPlan, BillingScheduledChange, BillingSessionUrlOutput, BillingStatus, BillingSubscriptionStatus, Card, CardGenerateInput, CardGenerateInputSchema, CardGenerateOutput, CardGenerateOutputSchema, CardGetInput, CardGetInputSchema, CardGetOutput, CardGetOutputSchema, CardListInput, CardListInputSchema, CardListOutput, CardListOutputSchema, type CardState, CardTemplate, CardTemplateCreateInput, CardTemplateCreateInputSchema, CardTemplateCreateOutput, CardTemplateCreateOutputSchema, CardTemplateDeleteInput, CardTemplateDeleteInputSchema, CardTemplateDeleteOutput, CardTemplateDeleteOutputSchema, CardTemplateGetInput, CardTemplateGetInputSchema, CardTemplateGetOutput, CardTemplateGetOutputSchema, CardTemplateInvalidColumnsData, CardTemplateInvalidColumnsDataSchema, CardTemplateListInput, CardTemplateListInputSchema, CardTemplateListOutput, CardTemplateListOutputSchema, CardTemplateUpdateInput, CardTemplateUpdateInputSchema, CardTemplateUpdateOutput, CardTemplateUpdateOutputSchema, CellValidationFailedData, CellValidationFailedDataSchema, CellValidationFailureDetails, CellValidationFailureDetailsSchema, CellValidationFailureReason, CellValidationFailureReasonSchema, EbookCoverContentType, EbookDeleteInput, EbookDeleteOutput, EbookDetail, EbookFinalizeUploadInput, EbookFinalizeUploadOutput, EbookGetDownloadUrlInput, EbookGetDownloadUrlOutput, EbookGetInput, EbookGetOutput, EbookListInput, EbookListItem, EbookListOutput, EbookPresignedPost, EbookQuota, EbookRenameData, EbookRenameInput, EbookRenameOutput, EbookRequestUploadInput, EbookRequestUploadOutput, EbookStatus, EbookUpdateProgressData, EbookUpdateProgressInput, EbookUpdateProgressOutput, HOSTED_AI_CLIENT_STREAM_PART_TYPES, HOSTED_AI_NOTE_SUGGESTION_MAX_NOTES, HOSTED_AI_NOTE_SUGGESTION_MAX_NOTE_FIELDS, HostedAiCreditPeriodKind, HostedAiCreditPeriodKindSchema, HostedAiCreditPolicyId, HostedAiCreditPolicyIdSchema, HostedAiCreditStatus, HostedAiCreditStatusSchema, HostedAiFeature, HostedAiFeatureSchema, HostedAiFeatureStatus, HostedAiFeatureStatusSchema, HostedAiModelTier, HostedAiModelTierSchema, HostedAiNoteSuggestionObject, HostedAiNoteSuggestionObjectSchema, HostedAiNoteSuggestionStreamInput, HostedAiNoteSuggestionStreamInputSchema, HostedAiOutputField, HostedAiOutputFieldSchema, HostedAiOutputFieldType, HostedAiOutputFieldTypeSchema, HostedAiQuotaExhaustedDataSchema, HostedAiQuotaScope, HostedAiQuotaScopeSchema, HostedAiRateLimitErrorData, HostedAiRateLimitErrorDataSchema, HostedAiRequestIdSchema, HostedAiStatusInput, HostedAiStatusInputSchema, HostedAiStatusOutput, HostedAiStatusOutputSchema, HostedAiStreamPart, HostedAiStreamPartSchema, HostedAiStreamStructuredObjectInput, HostedAiStreamStructuredObjectInputSchema, HostedAiStreamTextInput, HostedAiStreamTextInputSchema, HostedAiTierRestrictedDataSchema, HostedAiTierStatus, HostedAiTierStatusSchema, HostedAiUnavailableReason, HostedAiUnavailableReasonSchema, NOTEBASE_ROW_CREATE_MANY_MAX_ROWS, Notebase, NotebaseActivityStatsItem, NotebaseActivityStatsOutput, NotebaseColumn, NotebaseColumnCreateData, NotebaseColumnCreateInput, NotebaseColumnCreateInputSchema, NotebaseColumnCreateOutput, NotebaseColumnCreateOutputSchema, NotebaseColumnDeleteInput, NotebaseColumnDeleteInputSchema, NotebaseColumnDeleteOutput, NotebaseColumnDeleteOutputSchema, NotebaseColumnReorderInput, NotebaseColumnReorderInputSchema, NotebaseColumnReorderOutput, NotebaseColumnReorderOutputSchema, NotebaseColumnUpdateData, NotebaseColumnUpdateInput, NotebaseColumnUpdateInputSchema, NotebaseColumnUpdateOutput, NotebaseColumnUpdateOutputSchema, NotebaseCreateData, NotebaseCreateInput, NotebaseCreateInputSchema, NotebaseCreateOutput, NotebaseCreateOutputSchema, NotebaseDeleteInput, NotebaseDeleteInputSchema, NotebaseDeleteOutput, NotebaseDeleteOutputSchema, NotebaseGetInput, NotebaseGetInputSchema, NotebaseGetOutput, NotebaseGetOutputSchema, NotebaseGetSchemaInput, NotebaseGetSchemaInputSchema, NotebaseGetSchemaOutput, NotebaseGetSchemaOutputSchema, NotebaseGetSummaryInput, NotebaseGetSummaryInputSchema, NotebaseGetSummaryOutput, NotebaseGetSummaryOutputSchema, NotebaseListInput, NotebaseListInputSchema, NotebaseListItem, NotebaseListItemSchema, NotebaseListOutput, NotebaseListOutputSchema, NotebaseRow, NotebaseRowCreateData, NotebaseRowCreateInput, NotebaseRowCreateInputSchema, NotebaseRowCreateManyInput, NotebaseRowCreateManyInputSchema, NotebaseRowCreateManyOutput, NotebaseRowCreateManyOutputSchema, NotebaseRowCreateOutput, NotebaseRowCreateOutputSchema, NotebaseRowDeleteInput, NotebaseRowDeleteInputSchema, NotebaseRowDeleteOutput, NotebaseRowDeleteOutputSchema, NotebaseRowGetInputSchema, NotebaseRowGetOutputSchema, NotebaseRowGrowthStatsItem, NotebaseRowGrowthStatsOutput, NotebaseRowListInput, NotebaseRowListInputSchema, NotebaseRowListOutputSchema, NotebaseRowReorderInput, NotebaseRowReorderInputSchema, NotebaseRowReorderOutput, NotebaseRowReorderOutputSchema, NotebaseRowUpdateData, NotebaseRowUpdateInput, NotebaseRowUpdateInputSchema, NotebaseRowUpdateOutput, NotebaseRowUpdateOutputSchema, NotebaseSummary, NotebaseUpdateData, NotebaseUpdateInput, NotebaseUpdateInputSchema, NotebaseUpdateOutput, NotebaseUpdateOutputSchema, NotebaseView, NotebaseViewConfig, NotebaseViewCreateData, NotebaseViewFilter, NotebaseViewSort, NotebaseViewType, NotebaseViewUpdateData, ORPCRouterClient, PUBLIC_APP_ERROR_DEFS, PublicAppErrorCode, PublicAppErrorData, RenderedCard, type ReviewRating, SRS_REVIEW_CLIENT_ID_NAMESPACE, SRS_REVIEW_DURATION_MS_MAX, type ScheduleStatus, type SchedulingParams, SrsAcknowledgeOptimizerResultsInput, SrsAcknowledgeOptimizerResultsOutput, SrsActivityStatsItem, SrsActivityStatsOutput, SrsListCardRevlogsInput, SrsListCardRevlogsOutput, SrsListUnreadOptimizerResultsOutput, SrsManualCardStatusInput, SrsMemoryGrowthStatsItem, SrsMemoryGrowthStatsOutput, SrsOptimizerUnreadResult, SrsReviewClientIdCard, SrsReviewInput, SrsReviewOutput, SrsRevlog, SrsRevlogWithoutSnapshot, SrsRollbackReviewInput, SrsRollbackReviewOutput, SrsScheduleStatusStats, SrsScheduleStatusStatsInput, SrsScheduleStatusStatsOutput, SrsSetCardBuriedInput, SrsSetCardBuriedOutput, SrsSetCardSuspendedInput, SrsSetCardSuspendedOutput, SrsTxidOutput, StatsInput, Step, Timezone, UserEnsureTimezoneInput, UserEnsureTimezoneOutput, UserUpdateTimezoneInput, UserUpdateTimezoneOutput, VideoTranscriptCreateInput, VideoTranscriptGetInput, VideoTranscriptResource, VideoTranscriptStatus, VideoTranscriptSubtitles, VideoTranscriptUsage, VideoTranscriptUsagePool, activityStatsOutputSchema, billingAccessSourceSchema, billingCancelScheduledChangeOutputSchema, billingCheckoutPlanSchema, billingCreateCheckoutSessionInputSchema, billingCreateCustomerPortalSessionInputSchema, billingCurrencySchema, billingIntervalSchema, billingLocaleSchema, billingPlanSchema, billingScheduledChangeSchema, billingSessionUrlOutputSchema, billingStatusSchema, billingSubscriptionStatusSchema, cardSchema, cardStateSchema, cardTemplateSchema, contract, createSrsReviewClientId, defineAgentProcedure, deletionResultSchema, ebookCoverContentTypeSchema, ebookDeleteInputSchema, ebookDeleteOutputSchema, ebookDetailSchema, ebookFinalizeUploadInputSchema, ebookFinalizeUploadOutputSchema, ebookGetDownloadUrlInputSchema, ebookGetDownloadUrlOutputSchema, ebookGetInputSchema, ebookGetOutputSchema, ebookListInputSchema, ebookListItemSchema, ebookListOutputSchema, ebookPresignedPostSchema, ebookQuotaSchema, ebookRenameDataSchema, ebookRenameInputSchema, ebookRenameOutputSchema, ebookRequestUploadInputSchema, ebookRequestUploadOutputSchema, ebookStatusSchema, ebookUpdateProgressDataSchema, ebookUpdateProgressInputSchema, ebookUpdateProgressOutputSchema, expectedUpdatedAtSchema, getPublicErrorDefinition, isPublicAppErrorCode, notebaseActivityStatsItemSchema, notebaseActivityStatsOutputSchema, notebaseColumnCreateDataSchema, notebaseColumnSchema, notebaseColumnUpdateDataSchema, notebaseColumnWidthSchema, notebaseCreateDataSchema, notebaseRowCellsSchema, notebaseRowCreateDataSchema, notebaseRowGrowthStatsItemSchema, notebaseRowGrowthStatsOutputSchema, notebaseRowSchema, notebaseRowUpdateDataSchema, notebaseSchema, notebaseSummarySchema, notebaseUpdateDataSchema, notebaseViewConfigSchema, notebaseViewCreateDataSchema, notebaseViewFilterSchema, notebaseViewFiltersSchema, notebaseViewSchema, notebaseViewSortSchema, notebaseViewSortsSchema, notebaseViewTypeSchema, notebaseViewUpdateDataSchema, pageSchema, paginationShape, pickPublicErrorMap, renderedCardSchema, reviewRatingSchema, scheduleStatusSchema, schedulingParamsSchema, srsAcknowledgeOptimizerResultsInputSchema, srsAcknowledgeOptimizerResultsOutputSchema, srsActivityStatsItemSchema, srsActivityStatsOutputSchema, srsListCardRevlogsInputSchema, srsListCardRevlogsOutputSchema, srsListUnreadOptimizerResultsInputSchema, srsListUnreadOptimizerResultsOutputSchema, srsManualCardStatusInputSchema, srsMemoryGrowthStatsItemSchema, srsMemoryGrowthStatsOutputSchema, srsOptimizerUnreadResultSchema, srsReviewInputSchema, srsReviewOutputSchema, srsRevlogSchema, srsRevlogWithoutSnapshotSchema, srsRollbackReviewInputSchema, srsRollbackReviewOutputSchema, srsScheduleStatusStatsInputSchema, srsScheduleStatusStatsOutputSchema, srsScheduleStatusStatsSchema, srsSetCardBuriedInputSchema, srsSetCardBuriedOutputSchema, srsSetCardSuspendedInputSchema, srsSetCardSuspendedOutputSchema, srsTxidOutputSchema, statsInputSchema, stepSchema, timezoneSchema, userEnsureTimezoneInputSchema, userEnsureTimezoneOutputSchema, userUpdateTimezoneInputSchema, userUpdateTimezoneOutputSchema, videoTranscriptCreateInputSchema, videoTranscriptGetInputSchema, videoTranscriptResourceSchema, videoTranscriptStatusSchema, videoTranscriptSubtitlesSchema, videoTranscriptUsagePoolSchema, videoTranscriptUsageSchema };
4052
4682
  //# sourceMappingURL=index.d.ts.map