@read-frog/api-contract 0.12.6 → 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 +1171 -480
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +301 -103
  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 -7
  20. package/src/index.ts +37 -33
  21. package/src/public-errors.ts +97 -51
  22. package/src/schemas/beta-access.ts +12 -10
  23. package/src/schemas/billing.ts +77 -53
  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 +53 -24
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;
@@ -101,6 +136,14 @@ declare const PUBLIC_APP_ERROR_DEFS: {
101
136
  readonly message: "Video transcription is currently in beta for selected accounts";
102
137
  readonly status: 403;
103
138
  };
139
+ readonly VIDEO_TRANSCRIPTION_SUBSCRIPTION_REQUIRED: {
140
+ readonly message: "AI subtitles require a Pro or Ultra subscription";
141
+ readonly status: 403;
142
+ };
143
+ readonly VIDEO_TRANSCRIPTION_PAYMENT_REQUIRED: {
144
+ readonly message: "Update your payment method to generate new AI subtitles";
145
+ readonly status: 402;
146
+ };
104
147
  readonly VIDEO_TRANSCRIPT_NOT_FOUND: {
105
148
  readonly message: "Video transcript not found";
106
149
  readonly status: 404;
@@ -113,6 +156,10 @@ declare const PUBLIC_APP_ERROR_DEFS: {
113
156
  readonly message: "Monthly transcription quota exceeded";
114
157
  readonly status: 429;
115
158
  };
159
+ readonly VIDEO_TRANSCRIPTION_UNSUPPORTED_LENGTH: {
160
+ readonly message: "This video is longer than AI subtitles support";
161
+ readonly status: 422;
162
+ };
116
163
  readonly NOTEBASE_COLUMN_NOT_FOUND: {
117
164
  readonly message: "Notebase column not found";
118
165
  readonly status: 404;
@@ -207,10 +254,10 @@ declare const PUBLIC_APP_ERROR_DEFS: {
207
254
  validOptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
208
255
  }, z.core.$strict>;
209
256
  reason: z.ZodEnum<{
210
- unknown_notebase_column: "unknown_notebase_column";
211
- type_mismatch: "type_mismatch";
212
- invalid_select_option: "invalid_select_option";
213
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";
214
261
  }>;
215
262
  rowIndex: z.ZodOptional<z.ZodNumber>;
216
263
  }, z.core.$strict>;
@@ -252,11 +299,23 @@ type PublicAppErrorData<TCode extends PublicAppErrorCode> = (typeof PUBLIC_APP_E
252
299
  } ? z.output<TSchema> : undefined;
253
300
  declare function isPublicAppErrorCode(code: string | undefined): code is PublicAppErrorCode;
254
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
+ };
255
314
  readonly HOSTED_AI_TIER_RESTRICTED: {
256
315
  readonly data: z.ZodObject<{
257
316
  modelTier: z.ZodEnum<{
258
- normal: "normal";
259
317
  advance: "advance";
318
+ normal: "normal";
260
319
  }>;
261
320
  }, z.core.$strict>;
262
321
  readonly message: "This Built-in AI tier is not available for this account";
@@ -265,13 +324,13 @@ declare function getPublicErrorDefinition<TCode extends PublicAppErrorCode>(code
265
324
  readonly HOSTED_AI_QUOTA_EXHAUSTED: {
266
325
  readonly data: z.ZodObject<{
267
326
  modelTier: z.ZodEnum<{
268
- normal: "normal";
269
327
  advance: "advance";
328
+ normal: "normal";
270
329
  }>;
271
330
  policyId: z.ZodEnum<{
272
331
  "custom-action-guest-daily-v1": "custom-action-guest-daily-v1";
273
- "custom-action-user-daily-v1": "custom-action-user-daily-v1";
274
332
  "custom-action-pro-daily-v1": "custom-action-pro-daily-v1";
333
+ "custom-action-user-daily-v1": "custom-action-user-daily-v1";
275
334
  "ultra-weekly-v1": "ultra-weekly-v1";
276
335
  }>;
277
336
  usedPercent: z.ZodNumber;
@@ -292,6 +351,14 @@ declare function getPublicErrorDefinition<TCode extends PublicAppErrorCode>(code
292
351
  readonly message: "Video transcription is currently in beta for selected accounts";
293
352
  readonly status: 403;
294
353
  };
354
+ readonly VIDEO_TRANSCRIPTION_SUBSCRIPTION_REQUIRED: {
355
+ readonly message: "AI subtitles require a Pro or Ultra subscription";
356
+ readonly status: 403;
357
+ };
358
+ readonly VIDEO_TRANSCRIPTION_PAYMENT_REQUIRED: {
359
+ readonly message: "Update your payment method to generate new AI subtitles";
360
+ readonly status: 402;
361
+ };
295
362
  readonly VIDEO_TRANSCRIPT_NOT_FOUND: {
296
363
  readonly message: "Video transcript not found";
297
364
  readonly status: 404;
@@ -304,6 +371,10 @@ declare function getPublicErrorDefinition<TCode extends PublicAppErrorCode>(code
304
371
  readonly message: "Monthly transcription quota exceeded";
305
372
  readonly status: 429;
306
373
  };
374
+ readonly VIDEO_TRANSCRIPTION_UNSUPPORTED_LENGTH: {
375
+ readonly message: "This video is longer than AI subtitles support";
376
+ readonly status: 422;
377
+ };
307
378
  readonly NOTEBASE_COLUMN_NOT_FOUND: {
308
379
  readonly message: "Notebase column not found";
309
380
  readonly status: 404;
@@ -398,10 +469,10 @@ declare function getPublicErrorDefinition<TCode extends PublicAppErrorCode>(code
398
469
  validOptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
399
470
  }, z.core.$strict>;
400
471
  reason: z.ZodEnum<{
401
- unknown_notebase_column: "unknown_notebase_column";
402
- type_mismatch: "type_mismatch";
403
- invalid_select_option: "invalid_select_option";
404
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";
405
476
  }>;
406
477
  rowIndex: z.ZodOptional<z.ZodNumber>;
407
478
  }, z.core.$strict>;
@@ -441,24 +512,24 @@ declare function pickPublicErrorMap<const TCodes extends readonly PublicAppError
441
512
  //#endregion
442
513
  //#region src/schemas/beta-access.d.ts
443
514
  declare const BetaFeatureKeySchema: z.ZodEnum<{
515
+ ebook: "ebook";
444
516
  notebase: "notebase";
445
517
  videoTranscription: "videoTranscription";
446
- ebook: "ebook";
447
518
  }>;
448
519
  type BetaFeatureKey = z.infer<typeof BetaFeatureKeySchema>;
449
520
  declare const BetaAccessStatusInputSchema: z.ZodObject<{
450
521
  featureKey: z.ZodEnum<{
522
+ ebook: "ebook";
451
523
  notebase: "notebase";
452
524
  videoTranscription: "videoTranscription";
453
- ebook: "ebook";
454
525
  }>;
455
526
  }, z.core.$strict>;
456
527
  type BetaAccessStatusInput = z.infer<typeof BetaAccessStatusInputSchema>;
457
528
  declare const BetaAccessStatusOutputSchema: z.ZodObject<{
458
529
  featureKey: z.ZodEnum<{
530
+ ebook: "ebook";
459
531
  notebase: "notebase";
460
532
  videoTranscription: "videoTranscription";
461
- ebook: "ebook";
462
533
  }>;
463
534
  allowed: z.ZodBoolean;
464
535
  }, z.core.$strip>;
@@ -471,14 +542,14 @@ declare const billingIntervalSchema: z.ZodEnum<{
471
542
  }>;
472
543
  type BillingInterval = z.infer<typeof billingIntervalSchema>;
473
544
  declare const billingSubscriptionStatusSchema: z.ZodEnum<{
545
+ active: "active";
546
+ canceled: "canceled";
474
547
  incomplete: "incomplete";
475
548
  incomplete_expired: "incomplete_expired";
476
- trialing: "trialing";
477
- active: "active";
478
549
  past_due: "past_due";
479
- canceled: "canceled";
480
- unpaid: "unpaid";
481
550
  paused: "paused";
551
+ trialing: "trialing";
552
+ unpaid: "unpaid";
482
553
  }>;
483
554
  type BillingSubscriptionStatus = z.infer<typeof billingSubscriptionStatusSchema>;
484
555
  declare const billingPlanSchema: z.ZodEnum<{
@@ -493,9 +564,9 @@ declare const billingCheckoutPlanSchema: z.ZodEnum<{
493
564
  }>;
494
565
  type BillingCheckoutPlan = z.infer<typeof billingCheckoutPlanSchema>;
495
566
  declare const billingCurrencySchema: z.ZodEnum<{
496
- usd: "usd";
497
567
  cad: "cad";
498
568
  cny: "cny";
569
+ usd: "usd";
499
570
  }>;
500
571
  type BillingCurrency = z.infer<typeof billingCurrencySchema>;
501
572
  declare const billingLocaleSchema: z.ZodEnum<{
@@ -511,8 +582,8 @@ declare const billingLocaleSchema: z.ZodEnum<{
511
582
  }>;
512
583
  type BillingLocale = z.infer<typeof billingLocaleSchema>;
513
584
  declare const billingAccessSourceSchema: z.ZodEnum<{
514
- subscription: "subscription";
515
585
  pass: "pass";
586
+ subscription: "subscription";
516
587
  }>;
517
588
  type BillingAccessSource = z.infer<typeof billingAccessSourceSchema>;
518
589
  declare const billingScheduledChangeSchema: z.ZodObject<{
@@ -534,24 +605,24 @@ declare const billingStatusSchema: z.ZodObject<{
534
605
  ultra: "ultra";
535
606
  }>;
536
607
  status: z.ZodNullable<z.ZodEnum<{
608
+ active: "active";
609
+ canceled: "canceled";
537
610
  incomplete: "incomplete";
538
611
  incomplete_expired: "incomplete_expired";
539
- trialing: "trialing";
540
- active: "active";
541
612
  past_due: "past_due";
542
- canceled: "canceled";
543
- unpaid: "unpaid";
544
613
  paused: "paused";
614
+ trialing: "trialing";
615
+ unpaid: "unpaid";
545
616
  }>>;
546
617
  interval: z.ZodNullable<z.ZodEnum<{
547
618
  month: "month";
548
619
  year: "year";
549
620
  }>>;
550
621
  currentPeriodEnd: z.ZodNullable<z.ZodCoercedDate<unknown>>;
551
- cancelAtPeriodEnd: z.ZodBoolean;
622
+ cancelAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
552
623
  accessSource: z.ZodNullable<z.ZodEnum<{
553
- subscription: "subscription";
554
624
  pass: "pass";
625
+ subscription: "subscription";
555
626
  }>>;
556
627
  scheduledChange: z.ZodNullable<z.ZodObject<{
557
628
  plan: z.ZodEnum<{
@@ -571,9 +642,9 @@ declare const billingStatusSchema: z.ZodObject<{
571
642
  type BillingStatus = z.infer<typeof billingStatusSchema>;
572
643
  declare const billingCreateCheckoutSessionInputSchema: z.ZodObject<{
573
644
  currency: z.ZodEnum<{
574
- usd: "usd";
575
645
  cad: "cad";
576
646
  cny: "cny";
647
+ usd: "usd";
577
648
  }>;
578
649
  interval: z.ZodEnum<{
579
650
  month: "month";
@@ -634,21 +705,26 @@ declare const cardTemplateSchema: z.ZodObject<{
634
705
  }, z.core.$strip>;
635
706
  type CardTemplate = z.infer<typeof cardTemplateSchema>;
636
707
  declare const CardTemplateListInputSchema: z.ZodObject<{
637
- notebaseId: z.ZodUUID;
708
+ limit: z.ZodOptional<z.ZodNumber>;
709
+ offset: z.ZodOptional<z.ZodNumber>;
710
+ notebaseId: z.ZodOptional<z.ZodUUID>;
638
711
  }, z.core.$strip>;
639
712
  type CardTemplateListInput = z.infer<typeof CardTemplateListInputSchema>;
640
- declare const CardTemplateListOutputSchema: z.ZodArray<z.ZodObject<{
641
- id: z.ZodUUID;
642
- notebaseId: z.ZodUUID;
643
- name: z.ZodString;
644
- config: z.ZodDiscriminatedUnion<[z.ZodObject<{
645
- type: z.ZodLiteral<"basic">;
646
- frontPattern: z.ZodString;
647
- backPattern: z.ZodString;
648
- }, z.core.$strict>], "type">;
649
- createdAt: z.ZodCoercedDate<unknown>;
650
- updatedAt: z.ZodCoercedDate<unknown>;
651
- }, 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>;
652
728
  type CardTemplateListOutput = z.infer<typeof CardTemplateListOutputSchema>;
653
729
  declare const CardTemplateGetInputSchema: z.ZodObject<{
654
730
  id: z.ZodUUID;
@@ -693,6 +769,7 @@ declare const CardTemplateCreateOutputSchema: z.ZodObject<{
693
769
  }, z.core.$strip>;
694
770
  type CardTemplateCreateOutput = z.infer<typeof CardTemplateCreateOutputSchema>;
695
771
  declare const CardTemplateUpdateInputSchema: z.ZodObject<{
772
+ expectedUpdatedAt: z.ZodOptional<z.ZodISODateTime>;
696
773
  id: z.ZodUUID;
697
774
  name: z.ZodOptional<z.ZodString>;
698
775
  config: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -721,25 +798,28 @@ declare const CardTemplateDeleteInputSchema: z.ZodObject<{
721
798
  }, z.core.$strip>;
722
799
  type CardTemplateDeleteInput = z.infer<typeof CardTemplateDeleteInputSchema>;
723
800
  declare const CardTemplateDeleteOutputSchema: z.ZodObject<{
801
+ id: z.ZodUUID;
724
802
  txid: z.ZodNumber;
725
803
  }, z.core.$strip>;
726
804
  type CardTemplateDeleteOutput = z.infer<typeof CardTemplateDeleteOutputSchema>;
727
805
  declare const cardSchema: z.ZodObject<{
728
- createdAt: z.ZodCoercedDate<unknown>;
729
- updatedAt: z.ZodCoercedDate<unknown>;
730
- 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;
731
811
  state: z.ZodEnum<{
732
- new: "new";
733
812
  learning: "learning";
734
- review: "review";
813
+ new: "new";
735
814
  relearning: "relearning";
815
+ review: "review";
736
816
  }>;
737
817
  scheduleStatus: z.ZodEnum<{
738
- new: "new";
818
+ buried: "buried";
739
819
  learning: "learning";
820
+ new: "new";
740
821
  review: "review";
741
822
  suspended: "suspended";
742
- buried: "buried";
743
823
  }>;
744
824
  dueAt: z.ZodCoercedDate<unknown>;
745
825
  lastReviewTime: z.ZodNullable<z.ZodCoercedDate<unknown>>;
@@ -748,29 +828,29 @@ declare const cardSchema: z.ZodObject<{
748
828
  step: z.ZodNumber;
749
829
  lapses: z.ZodNumber;
750
830
  reps: z.ZodNumber;
751
- 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<{
752
837
  notebaseId: z.ZodUUID;
753
838
  notebaseRowId: z.ZodUUID;
754
839
  templateId: z.ZodUUID;
755
840
  variantKey: z.ZodString;
756
- }, z.core.$strip>;
757
- type Card = z.infer<typeof cardSchema>;
758
- declare const renderedCardSchema: z.ZodObject<{
759
- createdAt: z.ZodCoercedDate<unknown>;
760
- updatedAt: z.ZodCoercedDate<unknown>;
761
- buriedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
841
+ id: z.ZodUUID;
762
842
  state: z.ZodEnum<{
763
- new: "new";
764
843
  learning: "learning";
765
- review: "review";
844
+ new: "new";
766
845
  relearning: "relearning";
846
+ review: "review";
767
847
  }>;
768
848
  scheduleStatus: z.ZodEnum<{
769
- new: "new";
849
+ buried: "buried";
770
850
  learning: "learning";
851
+ new: "new";
771
852
  review: "review";
772
853
  suspended: "suspended";
773
- buried: "buried";
774
854
  }>;
775
855
  dueAt: z.ZodCoercedDate<unknown>;
776
856
  lastReviewTime: z.ZodNullable<z.ZodCoercedDate<unknown>>;
@@ -779,75 +859,85 @@ declare const renderedCardSchema: z.ZodObject<{
779
859
  step: z.ZodNumber;
780
860
  lapses: z.ZodNumber;
781
861
  reps: z.ZodNumber;
782
- id: z.ZodUUID;
783
- notebaseId: z.ZodUUID;
784
- notebaseRowId: z.ZodUUID;
785
- templateId: z.ZodUUID;
786
- variantKey: z.ZodString;
862
+ buriedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
863
+ createdAt: z.ZodCoercedDate<unknown>;
864
+ updatedAt: z.ZodCoercedDate<unknown>;
787
865
  front: z.ZodString;
788
866
  back: z.ZodString;
789
867
  }, z.core.$strip>;
790
868
  type RenderedCard = z.infer<typeof renderedCardSchema>;
791
869
  declare const CardListInputSchema: z.ZodObject<{
792
- notebaseId: z.ZodUUID;
793
- templateId: z.ZodOptional<z.ZodUUID>;
794
870
  limit: z.ZodOptional<z.ZodNumber>;
795
871
  offset: z.ZodOptional<z.ZodNumber>;
796
- }, z.core.$strip>;
797
- type CardListInput = z.infer<typeof CardListInputSchema>;
798
- declare const CardListOutputSchema: z.ZodArray<z.ZodObject<{
799
- createdAt: z.ZodCoercedDate<unknown>;
800
- updatedAt: z.ZodCoercedDate<unknown>;
801
- buriedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
802
- state: z.ZodEnum<{
803
- new: "new";
872
+ notebaseId: z.ZodOptional<z.ZodUUID>;
873
+ templateId: z.ZodOptional<z.ZodUUID>;
874
+ scheduleStatus: z.ZodOptional<z.ZodEnum<{
875
+ buried: "buried";
804
876
  learning: "learning";
805
- review: "review";
806
- relearning: "relearning";
807
- }>;
808
- scheduleStatus: z.ZodEnum<{
809
877
  new: "new";
810
- learning: "learning";
811
878
  review: "review";
812
879
  suspended: "suspended";
813
- buried: "buried";
814
- }>;
815
- dueAt: z.ZodCoercedDate<unknown>;
816
- lastReviewTime: z.ZodNullable<z.ZodCoercedDate<unknown>>;
817
- stability: z.ZodNumber;
818
- difficulty: z.ZodNumber;
819
- step: z.ZodNumber;
820
- lapses: z.ZodNumber;
821
- reps: z.ZodNumber;
822
- id: z.ZodUUID;
823
- notebaseId: z.ZodUUID;
824
- notebaseRowId: z.ZodUUID;
825
- templateId: z.ZodUUID;
826
- variantKey: z.ZodString;
827
- front: z.ZodString;
828
- back: z.ZodString;
829
- }, 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>;
830
918
  type CardListOutput = z.infer<typeof CardListOutputSchema>;
831
919
  declare const CardGetInputSchema: z.ZodObject<{
832
920
  id: z.ZodUUID;
833
921
  }, z.core.$strip>;
834
922
  type CardGetInput = z.infer<typeof CardGetInputSchema>;
835
923
  declare const CardGetOutputSchema: z.ZodObject<{
836
- createdAt: z.ZodCoercedDate<unknown>;
837
- updatedAt: z.ZodCoercedDate<unknown>;
838
- 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;
839
929
  state: z.ZodEnum<{
840
- new: "new";
841
930
  learning: "learning";
842
- review: "review";
931
+ new: "new";
843
932
  relearning: "relearning";
933
+ review: "review";
844
934
  }>;
845
935
  scheduleStatus: z.ZodEnum<{
846
- new: "new";
936
+ buried: "buried";
847
937
  learning: "learning";
938
+ new: "new";
848
939
  review: "review";
849
940
  suspended: "suspended";
850
- buried: "buried";
851
941
  }>;
852
942
  dueAt: z.ZodCoercedDate<unknown>;
853
943
  lastReviewTime: z.ZodNullable<z.ZodCoercedDate<unknown>>;
@@ -856,11 +946,9 @@ declare const CardGetOutputSchema: z.ZodObject<{
856
946
  step: z.ZodNumber;
857
947
  lapses: z.ZodNumber;
858
948
  reps: z.ZodNumber;
859
- id: z.ZodUUID;
860
- notebaseId: z.ZodUUID;
861
- notebaseRowId: z.ZodUUID;
862
- templateId: z.ZodUUID;
863
- variantKey: z.ZodString;
949
+ buriedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
950
+ createdAt: z.ZodCoercedDate<unknown>;
951
+ updatedAt: z.ZodCoercedDate<unknown>;
864
952
  front: z.ZodString;
865
953
  back: z.ZodString;
866
954
  }, z.core.$strip>;
@@ -1098,14 +1186,14 @@ type EbookDeleteOutput = z.infer<typeof ebookDeleteOutputSchema>;
1098
1186
  //#endregion
1099
1187
  //#region src/schemas/hosted-ai.d.ts
1100
1188
  declare const HostedAiOutputFieldTypeSchema: z.ZodEnum<{
1101
- string: "string";
1102
1189
  number: "number";
1190
+ string: "string";
1103
1191
  }>;
1104
1192
  declare const HostedAiOutputFieldSchema: z.ZodObject<{
1105
1193
  name: z.ZodString;
1106
1194
  type: z.ZodEnum<{
1107
- string: "string";
1108
1195
  number: "number";
1196
+ string: "string";
1109
1197
  }>;
1110
1198
  }, z.core.$strict>;
1111
1199
  /**
@@ -1114,8 +1202,8 @@ declare const HostedAiOutputFieldSchema: z.ZodObject<{
1114
1202
  * not identity, so a future plan can be sold with any tier without a rename.
1115
1203
  */
1116
1204
  declare const HostedAiModelTierSchema: z.ZodEnum<{
1117
- normal: "normal";
1118
1205
  advance: "advance";
1206
+ normal: "normal";
1119
1207
  }>;
1120
1208
  /**
1121
1209
  * The billing/access subject of a hosted request, not a route id. Sub-calls
@@ -1126,53 +1214,53 @@ declare const HostedAiModelTierSchema: z.ZodEnum<{
1126
1214
  * keeps drizzle from emitting the ADD VALUE ... BEFORE variant.
1127
1215
  */
1128
1216
  declare const HostedAiFeatureSchema: z.ZodEnum<{
1129
- pageTranslation: "pageTranslation";
1130
1217
  customAction: "customAction";
1218
+ inputTranslation: "inputTranslation";
1219
+ languageDetection: "languageDetection";
1131
1220
  noteSuggestion: "noteSuggestion";
1221
+ pageTranslation: "pageTranslation";
1132
1222
  selectionTranslation: "selectionTranslation";
1133
1223
  videoSubtitles: "videoSubtitles";
1134
- inputTranslation: "inputTranslation";
1135
- languageDetection: "languageDetection";
1136
1224
  }>;
1137
1225
  declare const HostedAiRequestIdSchema: z.ZodUUID;
1138
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>;
1139
1232
  instructions: z.ZodString;
1140
1233
  prompt: z.ZodString;
1141
1234
  temperature: z.ZodOptional<z.ZodNumber>;
1235
+ }, z.core.$strict>;
1236
+ declare const HostedAiStreamStructuredObjectInputSchema: z.ZodObject<{
1142
1237
  modelTier: z.ZodDefault<z.ZodEnum<{
1143
- normal: "normal";
1144
1238
  advance: "advance";
1239
+ normal: "normal";
1145
1240
  }>>;
1146
1241
  requestId: z.ZodOptional<z.ZodUUID>;
1147
- }, z.core.$strict>;
1148
- declare const HostedAiStreamStructuredObjectInputSchema: z.ZodObject<{
1149
1242
  instructions: z.ZodString;
1150
1243
  prompt: z.ZodString;
1151
1244
  outputSchema: z.ZodArray<z.ZodObject<{
1152
1245
  name: z.ZodString;
1153
1246
  type: z.ZodEnum<{
1154
- string: "string";
1155
1247
  number: "number";
1248
+ string: "string";
1156
1249
  }>;
1157
1250
  }, z.core.$strict>>;
1158
1251
  temperature: z.ZodOptional<z.ZodNumber>;
1159
- modelTier: z.ZodDefault<z.ZodEnum<{
1160
- normal: "normal";
1161
- advance: "advance";
1162
- }>>;
1163
- requestId: z.ZodOptional<z.ZodUUID>;
1164
1252
  }, z.core.$strict>;
1165
1253
  declare const HOSTED_AI_NOTE_SUGGESTION_MAX_NOTES = 2;
1166
1254
  declare const HOSTED_AI_NOTE_SUGGESTION_MAX_NOTE_FIELDS = 16;
1167
1255
  declare const HostedAiNoteSuggestionStreamInputSchema: z.ZodObject<{
1168
- instructions: z.ZodString;
1169
- prompt: z.ZodString;
1170
- temperature: z.ZodOptional<z.ZodNumber>;
1171
1256
  modelTier: z.ZodDefault<z.ZodEnum<{
1172
- normal: "normal";
1173
1257
  advance: "advance";
1258
+ normal: "normal";
1174
1259
  }>>;
1175
1260
  requestId: z.ZodOptional<z.ZodUUID>;
1261
+ instructions: z.ZodString;
1262
+ prompt: z.ZodString;
1263
+ temperature: z.ZodOptional<z.ZodNumber>;
1176
1264
  }, z.core.$strict>;
1177
1265
  /**
1178
1266
  * Fixed structured-output schema for hosted note suggestions. Must stay
@@ -1219,14 +1307,14 @@ declare const HOSTED_AI_CLIENT_STREAM_PART_TYPES: readonly ["text-delta", "reaso
1219
1307
  declare const HostedAiStatusInputSchema: z.ZodObject<{}, z.core.$strip>;
1220
1308
  declare const HostedAiUnavailableReasonSchema: z.ZodEnum<{
1221
1309
  authentication_required: "authentication_required";
1222
- ultra_required: "ultra_required";
1223
1310
  quota_exhausted: "quota_exhausted";
1224
1311
  service_unavailable: "service_unavailable";
1312
+ ultra_required: "ultra_required";
1225
1313
  }>;
1226
1314
  declare const HostedAiCreditPolicyIdSchema: z.ZodEnum<{
1227
1315
  "custom-action-guest-daily-v1": "custom-action-guest-daily-v1";
1228
- "custom-action-user-daily-v1": "custom-action-user-daily-v1";
1229
1316
  "custom-action-pro-daily-v1": "custom-action-pro-daily-v1";
1317
+ "custom-action-user-daily-v1": "custom-action-user-daily-v1";
1230
1318
  "ultra-weekly-v1": "ultra-weekly-v1";
1231
1319
  }>;
1232
1320
  declare const HostedAiCreditPeriodKindSchema: z.ZodEnum<{
@@ -1272,13 +1360,13 @@ declare const HostedAiCreditStatusSchema: z.ZodObject<{
1272
1360
  usedPercent: z.ZodNumber;
1273
1361
  resetAt: z.ZodNullable<z.ZodISODateTime>;
1274
1362
  features: z.ZodArray<z.ZodEnum<{
1275
- pageTranslation: "pageTranslation";
1276
1363
  customAction: "customAction";
1364
+ inputTranslation: "inputTranslation";
1365
+ languageDetection: "languageDetection";
1277
1366
  noteSuggestion: "noteSuggestion";
1367
+ pageTranslation: "pageTranslation";
1278
1368
  selectionTranslation: "selectionTranslation";
1279
1369
  videoSubtitles: "videoSubtitles";
1280
- inputTranslation: "inputTranslation";
1281
- languageDetection: "languageDetection";
1282
1370
  }>>;
1283
1371
  }, z.core.$strict>;
1284
1372
  declare const HostedAiTierStatusSchema: z.ZodObject<{
@@ -1286,9 +1374,9 @@ declare const HostedAiTierStatusSchema: z.ZodObject<{
1286
1374
  available: z.ZodBoolean;
1287
1375
  unavailableReason: z.ZodNullable<z.ZodEnum<{
1288
1376
  authentication_required: "authentication_required";
1289
- ultra_required: "ultra_required";
1290
1377
  quota_exhausted: "quota_exhausted";
1291
1378
  service_unavailable: "service_unavailable";
1379
+ ultra_required: "ultra_required";
1292
1380
  }>>;
1293
1381
  requiresUltra: z.ZodBoolean;
1294
1382
  modelRevision: z.ZodString;
@@ -1299,9 +1387,9 @@ declare const HostedAiFeatureStatusSchema: z.ZodObject<{
1299
1387
  available: z.ZodBoolean;
1300
1388
  unavailableReason: z.ZodNullable<z.ZodEnum<{
1301
1389
  authentication_required: "authentication_required";
1302
- ultra_required: "ultra_required";
1303
1390
  quota_exhausted: "quota_exhausted";
1304
1391
  service_unavailable: "service_unavailable";
1392
+ ultra_required: "ultra_required";
1305
1393
  }>>;
1306
1394
  requiresUltra: z.ZodBoolean;
1307
1395
  modelRevision: z.ZodString;
@@ -1311,9 +1399,9 @@ declare const HostedAiFeatureStatusSchema: z.ZodObject<{
1311
1399
  available: z.ZodBoolean;
1312
1400
  unavailableReason: z.ZodNullable<z.ZodEnum<{
1313
1401
  authentication_required: "authentication_required";
1314
- ultra_required: "ultra_required";
1315
1402
  quota_exhausted: "quota_exhausted";
1316
1403
  service_unavailable: "service_unavailable";
1404
+ ultra_required: "ultra_required";
1317
1405
  }>>;
1318
1406
  requiresUltra: z.ZodBoolean;
1319
1407
  modelRevision: z.ZodString;
@@ -1328,13 +1416,13 @@ declare const HostedAiStatusOutputSchema: z.ZodObject<{
1328
1416
  usedPercent: z.ZodNumber;
1329
1417
  resetAt: z.ZodNullable<z.ZodISODateTime>;
1330
1418
  features: z.ZodArray<z.ZodEnum<{
1331
- pageTranslation: "pageTranslation";
1332
1419
  customAction: "customAction";
1420
+ inputTranslation: "inputTranslation";
1421
+ languageDetection: "languageDetection";
1333
1422
  noteSuggestion: "noteSuggestion";
1423
+ pageTranslation: "pageTranslation";
1334
1424
  selectionTranslation: "selectionTranslation";
1335
1425
  videoSubtitles: "videoSubtitles";
1336
- inputTranslation: "inputTranslation";
1337
- languageDetection: "languageDetection";
1338
1426
  }>>;
1339
1427
  }, z.core.$strict>>;
1340
1428
  features: z.ZodObject<{
@@ -1344,9 +1432,9 @@ declare const HostedAiStatusOutputSchema: z.ZodObject<{
1344
1432
  available: z.ZodBoolean;
1345
1433
  unavailableReason: z.ZodNullable<z.ZodEnum<{
1346
1434
  authentication_required: "authentication_required";
1347
- ultra_required: "ultra_required";
1348
1435
  quota_exhausted: "quota_exhausted";
1349
1436
  service_unavailable: "service_unavailable";
1437
+ ultra_required: "ultra_required";
1350
1438
  }>>;
1351
1439
  requiresUltra: z.ZodBoolean;
1352
1440
  modelRevision: z.ZodString;
@@ -1356,9 +1444,9 @@ declare const HostedAiStatusOutputSchema: z.ZodObject<{
1356
1444
  available: z.ZodBoolean;
1357
1445
  unavailableReason: z.ZodNullable<z.ZodEnum<{
1358
1446
  authentication_required: "authentication_required";
1359
- ultra_required: "ultra_required";
1360
1447
  quota_exhausted: "quota_exhausted";
1361
1448
  service_unavailable: "service_unavailable";
1449
+ ultra_required: "ultra_required";
1362
1450
  }>>;
1363
1451
  requiresUltra: z.ZodBoolean;
1364
1452
  modelRevision: z.ZodString;
@@ -1370,9 +1458,9 @@ declare const HostedAiStatusOutputSchema: z.ZodObject<{
1370
1458
  available: z.ZodBoolean;
1371
1459
  unavailableReason: z.ZodNullable<z.ZodEnum<{
1372
1460
  authentication_required: "authentication_required";
1373
- ultra_required: "ultra_required";
1374
1461
  quota_exhausted: "quota_exhausted";
1375
1462
  service_unavailable: "service_unavailable";
1463
+ ultra_required: "ultra_required";
1376
1464
  }>>;
1377
1465
  requiresUltra: z.ZodBoolean;
1378
1466
  modelRevision: z.ZodString;
@@ -1382,9 +1470,9 @@ declare const HostedAiStatusOutputSchema: z.ZodObject<{
1382
1470
  available: z.ZodBoolean;
1383
1471
  unavailableReason: z.ZodNullable<z.ZodEnum<{
1384
1472
  authentication_required: "authentication_required";
1385
- ultra_required: "ultra_required";
1386
1473
  quota_exhausted: "quota_exhausted";
1387
1474
  service_unavailable: "service_unavailable";
1475
+ ultra_required: "ultra_required";
1388
1476
  }>>;
1389
1477
  requiresUltra: z.ZodBoolean;
1390
1478
  modelRevision: z.ZodString;
@@ -1396,9 +1484,9 @@ declare const HostedAiStatusOutputSchema: z.ZodObject<{
1396
1484
  available: z.ZodBoolean;
1397
1485
  unavailableReason: z.ZodNullable<z.ZodEnum<{
1398
1486
  authentication_required: "authentication_required";
1399
- ultra_required: "ultra_required";
1400
1487
  quota_exhausted: "quota_exhausted";
1401
1488
  service_unavailable: "service_unavailable";
1489
+ ultra_required: "ultra_required";
1402
1490
  }>>;
1403
1491
  requiresUltra: z.ZodBoolean;
1404
1492
  modelRevision: z.ZodString;
@@ -1408,9 +1496,9 @@ declare const HostedAiStatusOutputSchema: z.ZodObject<{
1408
1496
  available: z.ZodBoolean;
1409
1497
  unavailableReason: z.ZodNullable<z.ZodEnum<{
1410
1498
  authentication_required: "authentication_required";
1411
- ultra_required: "ultra_required";
1412
1499
  quota_exhausted: "quota_exhausted";
1413
1500
  service_unavailable: "service_unavailable";
1501
+ ultra_required: "ultra_required";
1414
1502
  }>>;
1415
1503
  requiresUltra: z.ZodBoolean;
1416
1504
  modelRevision: z.ZodString;
@@ -1422,9 +1510,9 @@ declare const HostedAiStatusOutputSchema: z.ZodObject<{
1422
1510
  available: z.ZodBoolean;
1423
1511
  unavailableReason: z.ZodNullable<z.ZodEnum<{
1424
1512
  authentication_required: "authentication_required";
1425
- ultra_required: "ultra_required";
1426
1513
  quota_exhausted: "quota_exhausted";
1427
1514
  service_unavailable: "service_unavailable";
1515
+ ultra_required: "ultra_required";
1428
1516
  }>>;
1429
1517
  requiresUltra: z.ZodBoolean;
1430
1518
  modelRevision: z.ZodString;
@@ -1434,9 +1522,9 @@ declare const HostedAiStatusOutputSchema: z.ZodObject<{
1434
1522
  available: z.ZodBoolean;
1435
1523
  unavailableReason: z.ZodNullable<z.ZodEnum<{
1436
1524
  authentication_required: "authentication_required";
1437
- ultra_required: "ultra_required";
1438
1525
  quota_exhausted: "quota_exhausted";
1439
1526
  service_unavailable: "service_unavailable";
1527
+ ultra_required: "ultra_required";
1440
1528
  }>>;
1441
1529
  requiresUltra: z.ZodBoolean;
1442
1530
  modelRevision: z.ZodString;
@@ -1448,9 +1536,9 @@ declare const HostedAiStatusOutputSchema: z.ZodObject<{
1448
1536
  available: z.ZodBoolean;
1449
1537
  unavailableReason: z.ZodNullable<z.ZodEnum<{
1450
1538
  authentication_required: "authentication_required";
1451
- ultra_required: "ultra_required";
1452
1539
  quota_exhausted: "quota_exhausted";
1453
1540
  service_unavailable: "service_unavailable";
1541
+ ultra_required: "ultra_required";
1454
1542
  }>>;
1455
1543
  requiresUltra: z.ZodBoolean;
1456
1544
  modelRevision: z.ZodString;
@@ -1460,9 +1548,9 @@ declare const HostedAiStatusOutputSchema: z.ZodObject<{
1460
1548
  available: z.ZodBoolean;
1461
1549
  unavailableReason: z.ZodNullable<z.ZodEnum<{
1462
1550
  authentication_required: "authentication_required";
1463
- ultra_required: "ultra_required";
1464
1551
  quota_exhausted: "quota_exhausted";
1465
1552
  service_unavailable: "service_unavailable";
1553
+ ultra_required: "ultra_required";
1466
1554
  }>>;
1467
1555
  requiresUltra: z.ZodBoolean;
1468
1556
  modelRevision: z.ZodString;
@@ -1474,9 +1562,9 @@ declare const HostedAiStatusOutputSchema: z.ZodObject<{
1474
1562
  available: z.ZodBoolean;
1475
1563
  unavailableReason: z.ZodNullable<z.ZodEnum<{
1476
1564
  authentication_required: "authentication_required";
1477
- ultra_required: "ultra_required";
1478
1565
  quota_exhausted: "quota_exhausted";
1479
1566
  service_unavailable: "service_unavailable";
1567
+ ultra_required: "ultra_required";
1480
1568
  }>>;
1481
1569
  requiresUltra: z.ZodBoolean;
1482
1570
  modelRevision: z.ZodString;
@@ -1486,9 +1574,9 @@ declare const HostedAiStatusOutputSchema: z.ZodObject<{
1486
1574
  available: z.ZodBoolean;
1487
1575
  unavailableReason: z.ZodNullable<z.ZodEnum<{
1488
1576
  authentication_required: "authentication_required";
1489
- ultra_required: "ultra_required";
1490
1577
  quota_exhausted: "quota_exhausted";
1491
1578
  service_unavailable: "service_unavailable";
1579
+ ultra_required: "ultra_required";
1492
1580
  }>>;
1493
1581
  requiresUltra: z.ZodBoolean;
1494
1582
  modelRevision: z.ZodString;
@@ -1500,9 +1588,9 @@ declare const HostedAiStatusOutputSchema: z.ZodObject<{
1500
1588
  available: z.ZodBoolean;
1501
1589
  unavailableReason: z.ZodNullable<z.ZodEnum<{
1502
1590
  authentication_required: "authentication_required";
1503
- ultra_required: "ultra_required";
1504
1591
  quota_exhausted: "quota_exhausted";
1505
1592
  service_unavailable: "service_unavailable";
1593
+ ultra_required: "ultra_required";
1506
1594
  }>>;
1507
1595
  requiresUltra: z.ZodBoolean;
1508
1596
  modelRevision: z.ZodString;
@@ -1512,9 +1600,9 @@ declare const HostedAiStatusOutputSchema: z.ZodObject<{
1512
1600
  available: z.ZodBoolean;
1513
1601
  unavailableReason: z.ZodNullable<z.ZodEnum<{
1514
1602
  authentication_required: "authentication_required";
1515
- ultra_required: "ultra_required";
1516
1603
  quota_exhausted: "quota_exhausted";
1517
1604
  service_unavailable: "service_unavailable";
1605
+ ultra_required: "ultra_required";
1518
1606
  }>>;
1519
1607
  requiresUltra: z.ZodBoolean;
1520
1608
  modelRevision: z.ZodString;
@@ -1545,6 +1633,11 @@ type HostedAiStatusOutput = z.infer<typeof HostedAiStatusOutputSchema>;
1545
1633
  //#region src/schemas/notebase.d.ts
1546
1634
  declare const NotebaseListInputSchema: z.ZodObject<{}, z.core.$strip>;
1547
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>;
1548
1641
  declare const NotebaseListItemSchema: z.ZodObject<{
1549
1642
  id: z.ZodString;
1550
1643
  name: z.ZodString;
@@ -1564,8 +1657,8 @@ declare const notebaseSchema: z.ZodObject<{
1564
1657
  srsDesiredRetention: z.ZodNumber;
1565
1658
  srsEnableShortTerm: z.ZodBoolean;
1566
1659
  srsMaximumInterval: z.ZodNumber;
1567
- srsLearningSteps: z.ZodArray<z.ZodTemplateLiteral<`${number}m` | `${number}h` | `${number}d`>>;
1568
- 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`>>;
1569
1662
  srsLeechThreshold: z.ZodNumber;
1570
1663
  srsEnableFuzz: z.ZodBoolean;
1571
1664
  srsWeights: z.ZodNullable<z.ZodArray<z.ZodNumber>>;
@@ -1586,8 +1679,8 @@ declare const notebaseCreateDataSchema: z.ZodObject<{
1586
1679
  type: z.ZodLiteral<"number">;
1587
1680
  decimal: z.ZodDefault<z.ZodNumber>;
1588
1681
  format: z.ZodDefault<z.ZodEnum<{
1589
- number: "number";
1590
1682
  currency: "currency";
1683
+ number: "number";
1591
1684
  percent: "percent";
1592
1685
  }>>;
1593
1686
  }, z.core.$strip>, z.ZodObject<{
@@ -1628,8 +1721,8 @@ declare const NotebaseCreateInputSchema: z.ZodObject<{
1628
1721
  type: z.ZodLiteral<"number">;
1629
1722
  decimal: z.ZodDefault<z.ZodNumber>;
1630
1723
  format: z.ZodDefault<z.ZodEnum<{
1631
- number: "number";
1632
1724
  currency: "currency";
1725
+ number: "number";
1633
1726
  percent: "percent";
1634
1727
  }>>;
1635
1728
  }, z.core.$strip>, z.ZodObject<{
@@ -1658,6 +1751,23 @@ declare const NotebaseCreateInputSchema: z.ZodObject<{
1658
1751
  }, z.core.$strict>;
1659
1752
  type NotebaseCreateInput = z.infer<typeof NotebaseCreateInputSchema>;
1660
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>;
1661
1771
  txid: z.ZodNumber;
1662
1772
  }, z.core.$strip>;
1663
1773
  type NotebaseCreateOutput = z.infer<typeof NotebaseCreateOutputSchema>;
@@ -1677,6 +1787,23 @@ declare const NotebaseUpdateInputSchema: z.ZodObject<{
1677
1787
  }, z.core.$strict>;
1678
1788
  type NotebaseUpdateInput = z.infer<typeof NotebaseUpdateInputSchema>;
1679
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>;
1680
1807
  txid: z.ZodNumber;
1681
1808
  }, z.core.$strip>;
1682
1809
  type NotebaseUpdateOutput = z.infer<typeof NotebaseUpdateOutputSchema>;
@@ -1685,6 +1812,7 @@ declare const NotebaseDeleteInputSchema: z.ZodObject<{
1685
1812
  }, z.core.$strip>;
1686
1813
  type NotebaseDeleteInput = z.infer<typeof NotebaseDeleteInputSchema>;
1687
1814
  declare const NotebaseDeleteOutputSchema: z.ZodObject<{
1815
+ id: z.ZodUUID;
1688
1816
  txid: z.ZodNumber;
1689
1817
  }, z.core.$strip>;
1690
1818
  type NotebaseDeleteOutput = z.infer<typeof NotebaseDeleteOutputSchema>;
@@ -1692,6 +1820,18 @@ declare const NotebaseGetInputSchema: z.ZodObject<{
1692
1820
  id: z.ZodUUID;
1693
1821
  }, z.core.$strip>;
1694
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>;
1695
1835
  declare const NotebaseGetSchemaInputSchema: z.ZodObject<{
1696
1836
  id: z.ZodUUID;
1697
1837
  }, z.core.$strip>;
@@ -1705,8 +1845,8 @@ declare const NotebaseGetOutputSchema: z.ZodObject<{
1705
1845
  srsDesiredRetention: z.ZodNumber;
1706
1846
  srsEnableShortTerm: z.ZodBoolean;
1707
1847
  srsMaximumInterval: z.ZodNumber;
1708
- srsLearningSteps: z.ZodArray<z.ZodTemplateLiteral<`${number}m` | `${number}h` | `${number}d`>>;
1709
- 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`>>;
1710
1850
  srsLeechThreshold: z.ZodNumber;
1711
1851
  srsEnableFuzz: z.ZodBoolean;
1712
1852
  srsWeights: z.ZodNullable<z.ZodArray<z.ZodNumber>>;
@@ -1722,8 +1862,8 @@ declare const NotebaseGetOutputSchema: z.ZodObject<{
1722
1862
  type: z.ZodLiteral<"number">;
1723
1863
  decimal: z.ZodDefault<z.ZodNumber>;
1724
1864
  format: z.ZodDefault<z.ZodEnum<{
1725
- number: "number";
1726
1865
  currency: "currency";
1866
+ number: "number";
1727
1867
  percent: "percent";
1728
1868
  }>>;
1729
1869
  }, z.core.$strip>, z.ZodObject<{
@@ -1759,9 +1899,9 @@ declare const NotebaseGetOutputSchema: z.ZodObject<{
1759
1899
  notebaseId: z.ZodString;
1760
1900
  name: z.ZodString;
1761
1901
  type: z.ZodEnum<{
1762
- table: "table";
1763
- kanban: "kanban";
1764
1902
  gallery: "gallery";
1903
+ kanban: "kanban";
1904
+ table: "table";
1765
1905
  }>;
1766
1906
  config: z.ZodNullable<z.ZodObject<{
1767
1907
  notebaseColumnWidths: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
@@ -1790,8 +1930,8 @@ declare const NotebaseGetSchemaOutputSchema: z.ZodObject<{
1790
1930
  type: z.ZodLiteral<"number">;
1791
1931
  decimal: z.ZodDefault<z.ZodNumber>;
1792
1932
  format: z.ZodDefault<z.ZodEnum<{
1793
- number: "number";
1794
1933
  currency: "currency";
1934
+ number: "number";
1795
1935
  percent: "percent";
1796
1936
  }>>;
1797
1937
  }, z.core.$strip>, z.ZodObject<{
@@ -1829,8 +1969,8 @@ declare const notebaseColumnSchema: z.ZodObject<{
1829
1969
  type: z.ZodLiteral<"number">;
1830
1970
  decimal: z.ZodDefault<z.ZodNumber>;
1831
1971
  format: z.ZodDefault<z.ZodEnum<{
1832
- number: "number";
1833
1972
  currency: "currency";
1973
+ number: "number";
1834
1974
  percent: "percent";
1835
1975
  }>>;
1836
1976
  }, z.core.$strip>, z.ZodObject<{
@@ -1863,8 +2003,8 @@ declare const notebaseColumnCreateDataSchema: z.ZodObject<{
1863
2003
  type: z.ZodLiteral<"number">;
1864
2004
  decimal: z.ZodDefault<z.ZodNumber>;
1865
2005
  format: z.ZodDefault<z.ZodEnum<{
1866
- number: "number";
1867
2006
  currency: "currency";
2007
+ number: "number";
1868
2008
  percent: "percent";
1869
2009
  }>>;
1870
2010
  }, z.core.$strip>, z.ZodObject<{
@@ -1883,6 +2023,7 @@ declare const notebaseColumnCreateDataSchema: z.ZodObject<{
1883
2023
  }, z.core.$strict>;
1884
2024
  type NotebaseColumnCreateData = z.infer<typeof notebaseColumnCreateDataSchema>;
1885
2025
  declare const notebaseColumnUpdateDataSchema: z.ZodObject<{
2026
+ expectedUpdatedAt: z.ZodOptional<z.ZodISODateTime>;
1886
2027
  name: z.ZodOptional<z.ZodString>;
1887
2028
  config: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1888
2029
  type: z.ZodLiteral<"string">;
@@ -1890,8 +2031,8 @@ declare const notebaseColumnUpdateDataSchema: z.ZodObject<{
1890
2031
  type: z.ZodLiteral<"number">;
1891
2032
  decimal: z.ZodDefault<z.ZodNumber>;
1892
2033
  format: z.ZodDefault<z.ZodEnum<{
1893
- number: "number";
1894
2034
  currency: "currency";
2035
+ number: "number";
1895
2036
  percent: "percent";
1896
2037
  }>>;
1897
2038
  }, z.core.$strip>, z.ZodObject<{
@@ -1922,8 +2063,8 @@ declare const NotebaseColumnCreateInputSchema: z.ZodObject<{
1922
2063
  type: z.ZodLiteral<"number">;
1923
2064
  decimal: z.ZodDefault<z.ZodNumber>;
1924
2065
  format: z.ZodDefault<z.ZodEnum<{
1925
- number: "number";
1926
2066
  currency: "currency";
2067
+ number: "number";
1927
2068
  percent: "percent";
1928
2069
  }>>;
1929
2070
  }, z.core.$strip>, z.ZodObject<{
@@ -1943,12 +2084,47 @@ declare const NotebaseColumnCreateInputSchema: z.ZodObject<{
1943
2084
  }, z.core.$strip>;
1944
2085
  type NotebaseColumnCreateInput = z.infer<typeof NotebaseColumnCreateInputSchema>;
1945
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>;
1946
2121
  txid: z.ZodNumber;
1947
2122
  }, z.core.$strip>;
1948
2123
  type NotebaseColumnCreateOutput = z.infer<typeof NotebaseColumnCreateOutputSchema>;
1949
2124
  declare const NotebaseColumnUpdateInputSchema: z.ZodObject<{
1950
2125
  notebaseColumnId: z.ZodUUID;
1951
2126
  data: z.ZodObject<{
2127
+ expectedUpdatedAt: z.ZodOptional<z.ZodISODateTime>;
1952
2128
  name: z.ZodOptional<z.ZodString>;
1953
2129
  config: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1954
2130
  type: z.ZodLiteral<"string">;
@@ -1956,8 +2132,8 @@ declare const NotebaseColumnUpdateInputSchema: z.ZodObject<{
1956
2132
  type: z.ZodLiteral<"number">;
1957
2133
  decimal: z.ZodDefault<z.ZodNumber>;
1958
2134
  format: z.ZodDefault<z.ZodEnum<{
1959
- number: "number";
1960
2135
  currency: "currency";
2136
+ number: "number";
1961
2137
  percent: "percent";
1962
2138
  }>>;
1963
2139
  }, z.core.$strip>, z.ZodObject<{
@@ -1979,6 +2155,40 @@ declare const NotebaseColumnUpdateInputSchema: z.ZodObject<{
1979
2155
  }, z.core.$strip>;
1980
2156
  type NotebaseColumnUpdateInput = z.infer<typeof NotebaseColumnUpdateInputSchema>;
1981
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>;
1982
2192
  txid: z.ZodNumber;
1983
2193
  }, z.core.$strip>;
1984
2194
  type NotebaseColumnUpdateOutput = z.infer<typeof NotebaseColumnUpdateOutputSchema>;
@@ -1987,6 +2197,7 @@ declare const NotebaseColumnDeleteInputSchema: z.ZodObject<{
1987
2197
  }, z.core.$strip>;
1988
2198
  type NotebaseColumnDeleteInput = z.infer<typeof NotebaseColumnDeleteInputSchema>;
1989
2199
  declare const NotebaseColumnDeleteOutputSchema: z.ZodObject<{
2200
+ id: z.ZodUUID;
1990
2201
  txid: z.ZodNumber;
1991
2202
  }, z.core.$strip>;
1992
2203
  type NotebaseColumnDeleteOutput = z.infer<typeof NotebaseColumnDeleteOutputSchema>;
@@ -2018,6 +2229,7 @@ declare const notebaseRowCreateDataSchema: z.ZodObject<{
2018
2229
  type NotebaseRowCreateData = z.infer<typeof notebaseRowCreateDataSchema>;
2019
2230
  declare const notebaseRowUpdateDataSchema: z.ZodObject<{
2020
2231
  cells: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2232
+ expectedUpdatedAt: z.ZodOptional<z.ZodISODateTime>;
2021
2233
  }, z.core.$strict>;
2022
2234
  type NotebaseRowUpdateData = z.infer<typeof notebaseRowUpdateDataSchema>;
2023
2235
  declare const NotebaseRowCreateInputSchema: z.ZodObject<{
@@ -2029,6 +2241,14 @@ declare const NotebaseRowCreateInputSchema: z.ZodObject<{
2029
2241
  }, z.core.$strip>;
2030
2242
  type NotebaseRowCreateInput = z.infer<typeof NotebaseRowCreateInputSchema>;
2031
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>;
2032
2252
  txid: z.ZodNumber;
2033
2253
  }, z.core.$strip>;
2034
2254
  type NotebaseRowCreateOutput = z.infer<typeof NotebaseRowCreateOutputSchema>;
@@ -2042,6 +2262,14 @@ declare const NotebaseRowCreateManyInputSchema: z.ZodObject<{
2042
2262
  }, z.core.$strip>;
2043
2263
  type NotebaseRowCreateManyInput = z.infer<typeof NotebaseRowCreateManyInputSchema>;
2044
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>>;
2045
2273
  txid: z.ZodNumber;
2046
2274
  }, z.core.$strip>;
2047
2275
  type NotebaseRowCreateManyOutput = z.infer<typeof NotebaseRowCreateManyOutputSchema>;
@@ -2049,6 +2277,7 @@ declare const NotebaseRowUpdateInputSchema: z.ZodObject<{
2049
2277
  notebaseRowId: z.ZodUUID;
2050
2278
  data: z.ZodObject<{
2051
2279
  cells: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2280
+ expectedUpdatedAt: z.ZodOptional<z.ZodISODateTime>;
2052
2281
  }, z.core.$strict>;
2053
2282
  }, z.core.$strip>;
2054
2283
  type NotebaseRowUpdateInput = z.infer<typeof NotebaseRowUpdateInputSchema>;
@@ -2067,6 +2296,7 @@ declare const NotebaseRowDeleteInputSchema: z.ZodObject<{
2067
2296
  }, z.core.$strip>;
2068
2297
  type NotebaseRowDeleteInput = z.infer<typeof NotebaseRowDeleteInputSchema>;
2069
2298
  declare const NotebaseRowDeleteOutputSchema: z.ZodObject<{
2299
+ id: z.ZodUUID;
2070
2300
  txid: z.ZodNumber;
2071
2301
  }, z.core.$strip>;
2072
2302
  type NotebaseRowDeleteOutput = z.infer<typeof NotebaseRowDeleteOutputSchema>;
@@ -2079,6 +2309,35 @@ declare const NotebaseRowReorderOutputSchema: z.ZodObject<{
2079
2309
  txid: z.ZodNumber;
2080
2310
  }, z.core.$strip>;
2081
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>;
2082
2341
  //#endregion
2083
2342
  //#region src/schemas/notebase-stats.d.ts
2084
2343
  declare const notebaseActivityStatsItemSchema: z.ZodObject<{
@@ -2109,9 +2368,9 @@ type NotebaseRowGrowthStatsOutput = z.infer<typeof notebaseRowGrowthStatsOutputS
2109
2368
  //#endregion
2110
2369
  //#region src/schemas/notebase-view.d.ts
2111
2370
  declare const notebaseViewTypeSchema: z.ZodEnum<{
2112
- table: "table";
2113
- kanban: "kanban";
2114
2371
  gallery: "gallery";
2372
+ kanban: "kanban";
2373
+ table: "table";
2115
2374
  }>;
2116
2375
  type NotebaseViewType = z.infer<typeof notebaseViewTypeSchema>;
2117
2376
  declare const notebaseViewConfigSchema: z.ZodObject<{
@@ -2150,9 +2409,9 @@ declare const notebaseViewCreateDataSchema: z.ZodObject<{
2150
2409
  id: z.ZodOptional<z.ZodUUID>;
2151
2410
  name: z.ZodString;
2152
2411
  type: z.ZodEnum<{
2153
- table: "table";
2154
- kanban: "kanban";
2155
2412
  gallery: "gallery";
2413
+ kanban: "kanban";
2414
+ table: "table";
2156
2415
  }>;
2157
2416
  config: z.ZodOptional<z.ZodObject<{
2158
2417
  notebaseColumnWidths: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
@@ -2176,9 +2435,9 @@ type NotebaseViewCreateData = z.infer<typeof notebaseViewCreateDataSchema>;
2176
2435
  declare const notebaseViewUpdateDataSchema: z.ZodObject<{
2177
2436
  name: z.ZodOptional<z.ZodString>;
2178
2437
  type: z.ZodOptional<z.ZodEnum<{
2179
- table: "table";
2180
- kanban: "kanban";
2181
2438
  gallery: "gallery";
2439
+ kanban: "kanban";
2440
+ table: "table";
2182
2441
  }>>;
2183
2442
  config: z.ZodOptional<z.ZodObject<{
2184
2443
  notebaseColumnWidths: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
@@ -2204,9 +2463,9 @@ declare const notebaseViewSchema: z.ZodObject<{
2204
2463
  notebaseId: z.ZodString;
2205
2464
  name: z.ZodString;
2206
2465
  type: z.ZodEnum<{
2207
- table: "table";
2208
- kanban: "kanban";
2209
2466
  gallery: "gallery";
2467
+ kanban: "kanban";
2468
+ table: "table";
2210
2469
  }>;
2211
2470
  config: z.ZodNullable<z.ZodObject<{
2212
2471
  notebaseColumnWidths: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
@@ -2226,7 +2485,7 @@ declare const timezoneSchema: z.ZodString;
2226
2485
  type Timezone = z.infer<typeof timezoneSchema>;
2227
2486
  //#endregion
2228
2487
  //#region src/schemas/srs.d.ts
2229
- declare const stepSchema: z.ZodTemplateLiteral<`${number}m` | `${number}h` | `${number}d`>;
2488
+ declare const stepSchema: z.ZodTemplateLiteral<`${number}d` | `${number}h` | `${number}m`>;
2230
2489
  type Step = z.infer<typeof stepSchema>;
2231
2490
  declare const SRS_REVIEW_CLIENT_ID_NAMESPACE = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
2232
2491
  interface SrsReviewClientIdCard {
@@ -2239,21 +2498,22 @@ declare const srsReviewInputSchema: z.ZodObject<{
2239
2498
  id: z.ZodOptional<z.ZodUUID>;
2240
2499
  rating: z.ZodEnum<{
2241
2500
  again: "again";
2242
- hard: "hard";
2243
- good: "good";
2244
2501
  easy: "easy";
2502
+ good: "good";
2503
+ hard: "hard";
2245
2504
  }>;
2246
2505
  durationMs: z.ZodNumber;
2247
2506
  timezone: z.ZodString;
2248
2507
  }, z.core.$strict>;
2249
2508
  type SrsReviewInput = z.infer<typeof srsReviewInputSchema>;
2250
2509
  declare const srsRollbackReviewInputSchema: z.ZodObject<{
2510
+ expectedReviewId: z.ZodOptional<z.ZodUUID>;
2251
2511
  cardId: z.ZodUUID;
2252
2512
  }, z.core.$strict>;
2253
2513
  type SrsRollbackReviewInput = z.infer<typeof srsRollbackReviewInputSchema>;
2254
2514
  declare const srsScheduleStatusStatsSchema: z.ZodRecord<z.ZodEnum<{
2255
- new: "new";
2256
2515
  learning: "learning";
2516
+ new: "new";
2257
2517
  review: "review";
2258
2518
  }>, z.ZodNumber>;
2259
2519
  type SrsScheduleStatusStats = z.infer<typeof srsScheduleStatusStatsSchema>;
@@ -2263,8 +2523,8 @@ declare const srsScheduleStatusStatsInputSchema: z.ZodObject<{
2263
2523
  }, z.core.$strict>;
2264
2524
  type SrsScheduleStatusStatsInput = z.infer<typeof srsScheduleStatusStatsInputSchema>;
2265
2525
  declare const srsScheduleStatusStatsOutputSchema: z.ZodRecord<z.ZodUUID, z.ZodRecord<z.ZodEnum<{
2266
- new: "new";
2267
2526
  learning: "learning";
2527
+ new: "new";
2268
2528
  review: "review";
2269
2529
  }>, z.ZodNumber>>;
2270
2530
  type SrsScheduleStatusStatsOutput = z.infer<typeof srsScheduleStatusStatsOutputSchema>;
@@ -2289,123 +2549,154 @@ declare const srsRevlogSchema: z.ZodObject<{
2289
2549
  cardId: z.ZodUUID;
2290
2550
  rating: z.ZodEnum<{
2291
2551
  again: "again";
2292
- hard: "hard";
2293
- good: "good";
2294
2552
  easy: "easy";
2553
+ good: "good";
2554
+ hard: "hard";
2295
2555
  }>;
2296
2556
  state: z.ZodEnum<{
2297
- new: "new";
2298
2557
  learning: "learning";
2299
- review: "review";
2558
+ new: "new";
2300
2559
  relearning: "relearning";
2560
+ review: "review";
2301
2561
  }>;
2302
2562
  stability: z.ZodNumber;
2303
2563
  afterScheduleStatus: z.ZodEnum<{
2304
- new: "new";
2564
+ buried: "buried";
2305
2565
  learning: "learning";
2566
+ new: "new";
2306
2567
  review: "review";
2307
2568
  suspended: "suspended";
2308
- buried: "buried";
2309
2569
  }>;
2310
2570
  afterStability: z.ZodNumber;
2311
2571
  reviewedAt: z.ZodCoercedDate<unknown>;
2312
2572
  durationMs: z.ZodNumber;
2313
- fsrsReviewLogSnapshot: z.ZodObject<{
2573
+ fsrsReviewLogSnapshot: z.ZodPipe<z.ZodObject<{
2314
2574
  rating: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>;
2315
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
+ }>;
2316
2582
  dueAt: z.ZodString;
2317
2583
  stability: z.ZodNumber;
2318
2584
  difficulty: z.ZodNumber;
2319
- scheduledDays: z.ZodNumber;
2585
+ scheduledDays: z.ZodOptional<z.ZodNumber>;
2320
2586
  learningSteps: z.ZodNumber;
2321
2587
  review: z.ZodString;
2322
- }, 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
+ }>>;
2323
2608
  createdAt: z.ZodCoercedDate<unknown>;
2324
2609
  }, z.core.$strip>;
2325
2610
  type SrsRevlog = z.infer<typeof srsRevlogSchema>;
2326
2611
  declare const srsRevlogWithoutSnapshotSchema: z.ZodObject<{
2327
2612
  id: z.ZodUUID;
2328
2613
  notebaseId: z.ZodUUID;
2329
- state: z.ZodEnum<{
2330
- new: "new";
2331
- learning: "learning";
2332
- review: "review";
2333
- relearning: "relearning";
2334
- }>;
2335
- stability: z.ZodNumber;
2336
- createdAt: z.ZodCoercedDate<unknown>;
2337
2614
  cardId: z.ZodUUID;
2338
2615
  rating: z.ZodEnum<{
2339
2616
  again: "again";
2340
- hard: "hard";
2341
- good: "good";
2342
2617
  easy: "easy";
2618
+ good: "good";
2619
+ hard: "hard";
2343
2620
  }>;
2344
- afterScheduleStatus: z.ZodEnum<{
2621
+ state: z.ZodEnum<{
2622
+ learning: "learning";
2345
2623
  new: "new";
2624
+ relearning: "relearning";
2625
+ review: "review";
2626
+ }>;
2627
+ stability: z.ZodNumber;
2628
+ afterScheduleStatus: z.ZodEnum<{
2629
+ buried: "buried";
2346
2630
  learning: "learning";
2631
+ new: "new";
2347
2632
  review: "review";
2348
2633
  suspended: "suspended";
2349
- buried: "buried";
2350
2634
  }>;
2351
2635
  afterStability: z.ZodNumber;
2352
2636
  reviewedAt: z.ZodCoercedDate<unknown>;
2353
2637
  durationMs: z.ZodNumber;
2638
+ createdAt: z.ZodCoercedDate<unknown>;
2354
2639
  }, z.core.$strip>;
2355
2640
  type SrsRevlogWithoutSnapshot = z.infer<typeof srsRevlogWithoutSnapshotSchema>;
2356
2641
  declare const srsListCardRevlogsInputSchema: z.ZodObject<{
2357
- 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>;
2358
2646
  }, z.core.$strict>;
2359
2647
  type SrsListCardRevlogsInput = z.infer<typeof srsListCardRevlogsInputSchema>;
2360
2648
  declare const srsListCardRevlogsOutputSchema: z.ZodObject<{
2361
2649
  items: z.ZodArray<z.ZodObject<{
2362
2650
  id: z.ZodUUID;
2363
2651
  notebaseId: z.ZodUUID;
2364
- state: z.ZodEnum<{
2365
- new: "new";
2366
- learning: "learning";
2367
- review: "review";
2368
- relearning: "relearning";
2369
- }>;
2370
- stability: z.ZodNumber;
2371
- createdAt: z.ZodCoercedDate<unknown>;
2372
2652
  cardId: z.ZodUUID;
2373
2653
  rating: z.ZodEnum<{
2374
2654
  again: "again";
2375
- hard: "hard";
2376
- good: "good";
2377
2655
  easy: "easy";
2656
+ good: "good";
2657
+ hard: "hard";
2378
2658
  }>;
2379
- afterScheduleStatus: z.ZodEnum<{
2659
+ state: z.ZodEnum<{
2660
+ learning: "learning";
2380
2661
  new: "new";
2662
+ relearning: "relearning";
2663
+ review: "review";
2664
+ }>;
2665
+ stability: z.ZodNumber;
2666
+ afterScheduleStatus: z.ZodEnum<{
2667
+ buried: "buried";
2381
2668
  learning: "learning";
2669
+ new: "new";
2382
2670
  review: "review";
2383
2671
  suspended: "suspended";
2384
- buried: "buried";
2385
2672
  }>;
2386
2673
  afterStability: z.ZodNumber;
2387
2674
  reviewedAt: z.ZodCoercedDate<unknown>;
2388
2675
  durationMs: z.ZodNumber;
2676
+ createdAt: z.ZodCoercedDate<unknown>;
2389
2677
  }, z.core.$strip>>;
2678
+ hasMore: z.ZodBoolean;
2390
2679
  }, z.core.$strict>;
2391
2680
  type SrsListCardRevlogsOutput = z.infer<typeof srsListCardRevlogsOutputSchema>;
2392
2681
  declare const srsReviewOutputSchema: z.ZodObject<{
2393
2682
  card: z.ZodObject<{
2394
- createdAt: z.ZodCoercedDate<unknown>;
2395
- updatedAt: z.ZodCoercedDate<unknown>;
2396
- 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;
2397
2688
  state: z.ZodEnum<{
2398
- new: "new";
2399
2689
  learning: "learning";
2400
- review: "review";
2690
+ new: "new";
2401
2691
  relearning: "relearning";
2692
+ review: "review";
2402
2693
  }>;
2403
2694
  scheduleStatus: z.ZodEnum<{
2404
- new: "new";
2695
+ buried: "buried";
2405
2696
  learning: "learning";
2697
+ new: "new";
2406
2698
  review: "review";
2407
2699
  suspended: "suspended";
2408
- buried: "buried";
2409
2700
  }>;
2410
2701
  dueAt: z.ZodCoercedDate<unknown>;
2411
2702
  lastReviewTime: z.ZodNullable<z.ZodCoercedDate<unknown>>;
@@ -2414,11 +2705,9 @@ declare const srsReviewOutputSchema: z.ZodObject<{
2414
2705
  step: z.ZodNumber;
2415
2706
  lapses: z.ZodNumber;
2416
2707
  reps: z.ZodNumber;
2417
- id: z.ZodUUID;
2418
- notebaseId: z.ZodUUID;
2419
- notebaseRowId: z.ZodUUID;
2420
- templateId: z.ZodUUID;
2421
- variantKey: z.ZodString;
2708
+ buriedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
2709
+ createdAt: z.ZodCoercedDate<unknown>;
2710
+ updatedAt: z.ZodCoercedDate<unknown>;
2422
2711
  }, z.core.$strip>;
2423
2712
  revlog: z.ZodObject<{
2424
2713
  id: z.ZodUUID;
@@ -2426,37 +2715,62 @@ declare const srsReviewOutputSchema: z.ZodObject<{
2426
2715
  cardId: z.ZodUUID;
2427
2716
  rating: z.ZodEnum<{
2428
2717
  again: "again";
2429
- hard: "hard";
2430
- good: "good";
2431
2718
  easy: "easy";
2719
+ good: "good";
2720
+ hard: "hard";
2432
2721
  }>;
2433
2722
  state: z.ZodEnum<{
2434
- new: "new";
2435
2723
  learning: "learning";
2436
- review: "review";
2724
+ new: "new";
2437
2725
  relearning: "relearning";
2726
+ review: "review";
2438
2727
  }>;
2439
2728
  stability: z.ZodNumber;
2440
2729
  afterScheduleStatus: z.ZodEnum<{
2441
- new: "new";
2730
+ buried: "buried";
2442
2731
  learning: "learning";
2732
+ new: "new";
2443
2733
  review: "review";
2444
2734
  suspended: "suspended";
2445
- buried: "buried";
2446
2735
  }>;
2447
2736
  afterStability: z.ZodNumber;
2448
2737
  reviewedAt: z.ZodCoercedDate<unknown>;
2449
2738
  durationMs: z.ZodNumber;
2450
- fsrsReviewLogSnapshot: z.ZodObject<{
2739
+ fsrsReviewLogSnapshot: z.ZodPipe<z.ZodObject<{
2451
2740
  rating: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>;
2452
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
+ }>;
2453
2748
  dueAt: z.ZodString;
2454
2749
  stability: z.ZodNumber;
2455
2750
  difficulty: z.ZodNumber;
2456
- scheduledDays: z.ZodNumber;
2751
+ scheduledDays: z.ZodOptional<z.ZodNumber>;
2457
2752
  learningSteps: z.ZodNumber;
2458
2753
  review: z.ZodString;
2459
- }, 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
+ }>>;
2460
2774
  createdAt: z.ZodCoercedDate<unknown>;
2461
2775
  }, z.core.$strip>;
2462
2776
  txid: z.ZodNumber;
@@ -2465,21 +2779,23 @@ declare const srsReviewOutputSchema: z.ZodObject<{
2465
2779
  type SrsReviewOutput = z.infer<typeof srsReviewOutputSchema>;
2466
2780
  declare const srsRollbackReviewOutputSchema: z.ZodObject<{
2467
2781
  card: z.ZodObject<{
2468
- createdAt: z.ZodCoercedDate<unknown>;
2469
- updatedAt: z.ZodCoercedDate<unknown>;
2470
- 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;
2471
2787
  state: z.ZodEnum<{
2472
- new: "new";
2473
2788
  learning: "learning";
2474
- review: "review";
2789
+ new: "new";
2475
2790
  relearning: "relearning";
2791
+ review: "review";
2476
2792
  }>;
2477
2793
  scheduleStatus: z.ZodEnum<{
2478
- new: "new";
2794
+ buried: "buried";
2479
2795
  learning: "learning";
2796
+ new: "new";
2480
2797
  review: "review";
2481
2798
  suspended: "suspended";
2482
- buried: "buried";
2483
2799
  }>;
2484
2800
  dueAt: z.ZodCoercedDate<unknown>;
2485
2801
  lastReviewTime: z.ZodNullable<z.ZodCoercedDate<unknown>>;
@@ -2488,11 +2804,9 @@ declare const srsRollbackReviewOutputSchema: z.ZodObject<{
2488
2804
  step: z.ZodNumber;
2489
2805
  lapses: z.ZodNumber;
2490
2806
  reps: z.ZodNumber;
2491
- id: z.ZodUUID;
2492
- notebaseId: z.ZodUUID;
2493
- notebaseRowId: z.ZodUUID;
2494
- templateId: z.ZodUUID;
2495
- variantKey: z.ZodString;
2807
+ buriedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
2808
+ createdAt: z.ZodCoercedDate<unknown>;
2809
+ updatedAt: z.ZodCoercedDate<unknown>;
2496
2810
  }, z.core.$strip>;
2497
2811
  rolledBackRevlogId: z.ZodUUID;
2498
2812
  txid: z.ZodNumber;
@@ -2510,6 +2824,29 @@ declare const srsSetCardSuspendedOutputSchema: z.ZodObject<{
2510
2824
  txid: z.ZodNumber;
2511
2825
  }, z.core.$strip>;
2512
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>;
2513
2850
  //#endregion
2514
2851
  //#region src/schemas/srs-stats.d.ts
2515
2852
  declare const srsActivityStatsItemSchema: z.ZodObject<{
@@ -2588,10 +2925,10 @@ type UserUpdateTimezoneOutput = z.infer<typeof userUpdateTimezoneOutputSchema>;
2588
2925
  //#endregion
2589
2926
  //#region src/schemas/video-transcript.d.ts
2590
2927
  declare const videoTranscriptStatusSchema: z.ZodEnum<{
2591
- pending: "pending";
2592
- processing: "processing";
2593
2928
  completed: "completed";
2594
2929
  failed: "failed";
2930
+ pending: "pending";
2931
+ processing: "processing";
2595
2932
  }>;
2596
2933
  type VideoTranscriptStatus = z.infer<typeof videoTranscriptStatusSchema>;
2597
2934
  declare const videoTranscriptResourceSchema: z.ZodObject<{
@@ -2600,10 +2937,10 @@ declare const videoTranscriptResourceSchema: z.ZodObject<{
2600
2937
  videoId: z.ZodString;
2601
2938
  url: z.ZodString;
2602
2939
  status: z.ZodEnum<{
2603
- pending: "pending";
2604
- processing: "processing";
2605
2940
  completed: "completed";
2606
2941
  failed: "failed";
2942
+ pending: "pending";
2943
+ processing: "processing";
2607
2944
  }>;
2608
2945
  title: z.ZodNullable<z.ZodString>;
2609
2946
  durationSec: z.ZodNullable<z.ZodNumber>;
@@ -2625,33 +2962,73 @@ declare const videoTranscriptSubtitlesSchema: z.ZodObject<{
2625
2962
  type VideoTranscriptSubtitles = z.infer<typeof videoTranscriptSubtitlesSchema>;
2626
2963
  declare const videoTranscriptCreateInputSchema: z.ZodObject<{
2627
2964
  url: z.ZodURL;
2965
+ durationSec: z.ZodNumber;
2628
2966
  }, z.core.$strict>;
2629
2967
  type VideoTranscriptCreateInput = z.infer<typeof videoTranscriptCreateInputSchema>;
2630
2968
  declare const videoTranscriptGetInputSchema: z.ZodObject<{
2631
2969
  id: z.ZodUUID;
2632
2970
  }, z.core.$strict>;
2633
2971
  type VideoTranscriptGetInput = z.infer<typeof videoTranscriptGetInputSchema>;
2972
+ declare const videoTranscriptUsagePoolSchema: z.ZodObject<{
2973
+ id: z.ZodString;
2974
+ usedMinutes: z.ZodNumber;
2975
+ limitMinutes: z.ZodNumber;
2976
+ remainingMinutes: z.ZodNumber;
2977
+ resetAt: z.ZodNullable<z.ZodISODateTime>;
2978
+ expiresAt: z.ZodNullable<z.ZodISODateTime>;
2979
+ }, z.core.$strip>;
2980
+ type VideoTranscriptUsagePool = z.infer<typeof videoTranscriptUsagePoolSchema>;
2634
2981
  declare const videoTranscriptUsageSchema: z.ZodObject<{
2635
2982
  usedMinutes: z.ZodNumber;
2636
2983
  limitMinutes: z.ZodNumber;
2637
2984
  remainingMinutes: z.ZodNumber;
2985
+ plan: z.ZodEnum<{
2986
+ free: "free";
2987
+ pro: "pro";
2988
+ ultra: "ultra";
2989
+ }>;
2990
+ pools: z.ZodArray<z.ZodObject<{
2991
+ id: z.ZodString;
2992
+ usedMinutes: z.ZodNumber;
2993
+ limitMinutes: z.ZodNumber;
2994
+ remainingMinutes: z.ZodNumber;
2995
+ resetAt: z.ZodNullable<z.ZodISODateTime>;
2996
+ expiresAt: z.ZodNullable<z.ZodISODateTime>;
2997
+ }, z.core.$strip>>;
2638
2998
  }, z.core.$strip>;
2639
2999
  type VideoTranscriptUsage = z.infer<typeof videoTranscriptUsageSchema>;
2640
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
2641
3018
  //#region src/index.d.ts
2642
3019
  declare const contract: {
2643
3020
  betaAccess: {
2644
3021
  status: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
2645
3022
  featureKey: import("zod").ZodEnum<{
3023
+ ebook: "ebook";
2646
3024
  notebase: "notebase";
2647
3025
  videoTranscription: "videoTranscription";
2648
- ebook: "ebook";
2649
3026
  }>;
2650
3027
  }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
2651
3028
  featureKey: import("zod").ZodEnum<{
3029
+ ebook: "ebook";
2652
3030
  notebase: "notebase";
2653
3031
  videoTranscription: "videoTranscription";
2654
- ebook: "ebook";
2655
3032
  }>;
2656
3033
  allowed: import("zod").ZodBoolean;
2657
3034
  }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
@@ -2664,24 +3041,24 @@ declare const contract: {
2664
3041
  ultra: "ultra";
2665
3042
  }>;
2666
3043
  status: import("zod").ZodNullable<import("zod").ZodEnum<{
3044
+ active: "active";
3045
+ canceled: "canceled";
2667
3046
  incomplete: "incomplete";
2668
3047
  incomplete_expired: "incomplete_expired";
2669
- trialing: "trialing";
2670
- active: "active";
2671
3048
  past_due: "past_due";
2672
- canceled: "canceled";
2673
- unpaid: "unpaid";
2674
3049
  paused: "paused";
3050
+ trialing: "trialing";
3051
+ unpaid: "unpaid";
2675
3052
  }>>;
2676
3053
  interval: import("zod").ZodNullable<import("zod").ZodEnum<{
2677
3054
  month: "month";
2678
3055
  year: "year";
2679
3056
  }>>;
2680
3057
  currentPeriodEnd: import("zod").ZodNullable<import("zod").ZodCoercedDate<unknown>>;
2681
- cancelAtPeriodEnd: import("zod").ZodBoolean;
3058
+ cancelAt: import("zod").ZodNullable<import("zod").ZodCoercedDate<unknown>>;
2682
3059
  accessSource: import("zod").ZodNullable<import("zod").ZodEnum<{
2683
- subscription: "subscription";
2684
3060
  pass: "pass";
3061
+ subscription: "subscription";
2685
3062
  }>>;
2686
3063
  scheduledChange: import("zod").ZodNullable<import("zod").ZodObject<{
2687
3064
  plan: import("zod").ZodEnum<{
@@ -2697,12 +3074,12 @@ declare const contract: {
2697
3074
  unlimitedNotebaseNotes: import("zod").ZodBoolean;
2698
3075
  notebaseNoteLimit: import("zod").ZodNumber;
2699
3076
  notebaseNoteCount: import("zod").ZodNumber;
2700
- }, 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>>;
2701
3078
  createCheckoutSession: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
2702
3079
  currency: import("zod").ZodEnum<{
2703
- usd: "usd";
2704
3080
  cad: "cad";
2705
3081
  cny: "cny";
3082
+ usd: "usd";
2706
3083
  }>;
2707
3084
  interval: import("zod").ZodEnum<{
2708
3085
  month: "month";
@@ -2725,7 +3102,7 @@ declare const contract: {
2725
3102
  }>>;
2726
3103
  }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
2727
3104
  url: import("zod").ZodURL;
2728
- }, 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>>;
2729
3106
  createCustomerPortalSession: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
2730
3107
  locale: import("zod").ZodEnum<{
2731
3108
  en: "en";
@@ -2740,67 +3117,82 @@ declare const contract: {
2740
3117
  }>;
2741
3118
  }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
2742
3119
  url: import("zod").ZodURL;
2743
- }, 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>>;
2744
3121
  cancelScheduledChange: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodObject<{
2745
3122
  success: import("zod").ZodLiteral<true>;
2746
- }, 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>>;
2747
3124
  };
2748
3125
  card: {
2749
3126
  list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
2750
- notebaseId: import("zod").ZodUUID;
2751
- templateId: import("zod").ZodOptional<import("zod").ZodUUID>;
2752
3127
  limit: import("zod").ZodOptional<import("zod").ZodNumber>;
2753
3128
  offset: import("zod").ZodOptional<import("zod").ZodNumber>;
2754
- }, import("zod/v4/core").$strip>, import("zod").ZodArray<import("zod").ZodObject<{
2755
- createdAt: import("zod").ZodCoercedDate<unknown>;
2756
- updatedAt: import("zod").ZodCoercedDate<unknown>;
2757
- buriedAt: import("zod").ZodNullable<import("zod").ZodCoercedDate<unknown>>;
2758
- state: import("zod").ZodEnum<{
2759
- 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";
2760
3133
  learning: "learning";
2761
- review: "review";
2762
- relearning: "relearning";
2763
- }>;
2764
- scheduleStatus: import("zod").ZodEnum<{
2765
3134
  new: "new";
2766
- learning: "learning";
2767
3135
  review: "review";
2768
3136
  suspended: "suspended";
2769
- buried: "buried";
2770
- }>;
2771
- dueAt: import("zod").ZodCoercedDate<unknown>;
2772
- lastReviewTime: import("zod").ZodNullable<import("zod").ZodCoercedDate<unknown>>;
2773
- stability: import("zod").ZodNumber;
2774
- difficulty: import("zod").ZodNumber;
2775
- step: import("zod").ZodNumber;
2776
- lapses: import("zod").ZodNumber;
2777
- 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<{
2778
3177
  id: import("zod").ZodUUID;
3178
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
2779
3179
  notebaseId: import("zod").ZodUUID;
2780
3180
  notebaseRowId: import("zod").ZodUUID;
2781
3181
  templateId: import("zod").ZodUUID;
2782
3182
  variantKey: import("zod").ZodString;
2783
- front: import("zod").ZodString;
2784
- back: import("zod").ZodString;
2785
- }, import("zod/v4/core").$strip>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_NOT_FOUND">>, Record<never, never>>;
2786
- get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
2787
3183
  id: import("zod").ZodUUID;
2788
- }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
2789
- createdAt: import("zod").ZodCoercedDate<unknown>;
2790
- updatedAt: import("zod").ZodCoercedDate<unknown>;
2791
- buriedAt: import("zod").ZodNullable<import("zod").ZodCoercedDate<unknown>>;
2792
3184
  state: import("zod").ZodEnum<{
2793
- new: "new";
2794
3185
  learning: "learning";
2795
- review: "review";
3186
+ new: "new";
2796
3187
  relearning: "relearning";
3188
+ review: "review";
2797
3189
  }>;
2798
3190
  scheduleStatus: import("zod").ZodEnum<{
2799
- new: "new";
3191
+ buried: "buried";
2800
3192
  learning: "learning";
3193
+ new: "new";
2801
3194
  review: "review";
2802
3195
  suspended: "suspended";
2803
- buried: "buried";
2804
3196
  }>;
2805
3197
  dueAt: import("zod").ZodCoercedDate<unknown>;
2806
3198
  lastReviewTime: import("zod").ZodNullable<import("zod").ZodCoercedDate<unknown>>;
@@ -2809,37 +3201,46 @@ declare const contract: {
2809
3201
  step: import("zod").ZodNumber;
2810
3202
  lapses: import("zod").ZodNumber;
2811
3203
  reps: import("zod").ZodNumber;
2812
- id: import("zod").ZodUUID;
2813
- notebaseId: import("zod").ZodUUID;
2814
- notebaseRowId: import("zod").ZodUUID;
2815
- templateId: import("zod").ZodUUID;
2816
- 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>;
2817
3207
  front: import("zod").ZodString;
2818
3208
  back: import("zod").ZodString;
2819
- }, 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>>;
2820
3213
  generate: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
2821
3214
  notebaseId: import("zod").ZodUUID;
2822
3215
  templateId: import("zod").ZodOptional<import("zod").ZodUUID>;
2823
3216
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
2824
3217
  created: import("zod").ZodNumber;
2825
3218
  txid: import("zod").ZodNumber;
2826
- }, 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>>;
2827
3220
  };
2828
3221
  cardTemplate: {
2829
3222
  list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
2830
- notebaseId: import("zod").ZodUUID;
2831
- }, import("zod/v4/core").$strip>, import("zod").ZodArray<import("zod").ZodObject<{
2832
- id: import("zod").ZodUUID;
2833
- notebaseId: import("zod").ZodUUID;
2834
- name: import("zod").ZodString;
2835
- config: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
2836
- type: import("zod").ZodLiteral<"basic">;
2837
- frontPattern: import("zod").ZodString;
2838
- backPattern: import("zod").ZodString;
2839
- }, import("zod/v4/core").$strict>], "type">;
2840
- createdAt: import("zod").ZodCoercedDate<unknown>;
2841
- updatedAt: import("zod").ZodCoercedDate<unknown>;
2842
- }, 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>>;
2843
3244
  get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
2844
3245
  id: import("zod").ZodUUID;
2845
3246
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
@@ -2853,7 +3254,10 @@ declare const contract: {
2853
3254
  }, import("zod/v4/core").$strict>], "type">;
2854
3255
  createdAt: import("zod").ZodCoercedDate<unknown>;
2855
3256
  updatedAt: import("zod").ZodCoercedDate<unknown>;
2856
- }, 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>>;
2857
3261
  create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
2858
3262
  id: import("zod").ZodOptional<import("zod").ZodUUID>;
2859
3263
  notebaseId: import("zod").ZodUUID;
@@ -2875,8 +3279,12 @@ declare const contract: {
2875
3279
  createdAt: import("zod").ZodCoercedDate<unknown>;
2876
3280
  updatedAt: import("zod").ZodCoercedDate<unknown>;
2877
3281
  txid: import("zod").ZodNumber;
2878
- }, 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>>;
2879
3286
  update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3287
+ expectedUpdatedAt: import("zod").ZodOptional<import("zod").ZodISODateTime>;
2880
3288
  id: import("zod").ZodUUID;
2881
3289
  name: import("zod").ZodOptional<import("zod").ZodString>;
2882
3290
  config: import("zod").ZodOptional<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
@@ -2896,12 +3304,19 @@ declare const contract: {
2896
3304
  createdAt: import("zod").ZodCoercedDate<unknown>;
2897
3305
  updatedAt: import("zod").ZodCoercedDate<unknown>;
2898
3306
  txid: import("zod").ZodNumber;
2899
- }, 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>>;
2900
3311
  delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
2901
3312
  id: import("zod").ZodUUID;
2902
3313
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
3314
+ id: import("zod").ZodUUID;
2903
3315
  txid: import("zod").ZodNumber;
2904
- }, 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>>;
2905
3320
  };
2906
3321
  ebook: {
2907
3322
  list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
@@ -2987,7 +3402,7 @@ declare const contract: {
2987
3402
  createdAt: import("zod").ZodCoercedDate<unknown>;
2988
3403
  updatedAt: import("zod").ZodCoercedDate<unknown>;
2989
3404
  }, import("zod/v4/core").$strict>;
2990
- }, 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>>;
2991
3406
  getDownloadUrl: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
2992
3407
  id: import("zod").ZodUUID;
2993
3408
  }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
@@ -3039,13 +3454,13 @@ declare const contract: {
3039
3454
  usedPercent: import("zod").ZodNumber;
3040
3455
  resetAt: import("zod").ZodNullable<import("zod").ZodISODateTime>;
3041
3456
  features: import("zod").ZodArray<import("zod").ZodEnum<{
3042
- pageTranslation: "pageTranslation";
3043
3457
  customAction: "customAction";
3458
+ inputTranslation: "inputTranslation";
3459
+ languageDetection: "languageDetection";
3044
3460
  noteSuggestion: "noteSuggestion";
3461
+ pageTranslation: "pageTranslation";
3045
3462
  selectionTranslation: "selectionTranslation";
3046
3463
  videoSubtitles: "videoSubtitles";
3047
- inputTranslation: "inputTranslation";
3048
- languageDetection: "languageDetection";
3049
3464
  }>>;
3050
3465
  }, import("zod/v4/core").$strict>>;
3051
3466
  features: import("zod").ZodObject<{
@@ -3055,9 +3470,9 @@ declare const contract: {
3055
3470
  available: import("zod").ZodBoolean;
3056
3471
  unavailableReason: import("zod").ZodNullable<import("zod").ZodEnum<{
3057
3472
  authentication_required: "authentication_required";
3058
- ultra_required: "ultra_required";
3059
3473
  quota_exhausted: "quota_exhausted";
3060
3474
  service_unavailable: "service_unavailable";
3475
+ ultra_required: "ultra_required";
3061
3476
  }>>;
3062
3477
  requiresUltra: import("zod").ZodBoolean;
3063
3478
  modelRevision: import("zod").ZodString;
@@ -3067,9 +3482,9 @@ declare const contract: {
3067
3482
  available: import("zod").ZodBoolean;
3068
3483
  unavailableReason: import("zod").ZodNullable<import("zod").ZodEnum<{
3069
3484
  authentication_required: "authentication_required";
3070
- ultra_required: "ultra_required";
3071
3485
  quota_exhausted: "quota_exhausted";
3072
3486
  service_unavailable: "service_unavailable";
3487
+ ultra_required: "ultra_required";
3073
3488
  }>>;
3074
3489
  requiresUltra: import("zod").ZodBoolean;
3075
3490
  modelRevision: import("zod").ZodString;
@@ -3081,9 +3496,9 @@ declare const contract: {
3081
3496
  available: import("zod").ZodBoolean;
3082
3497
  unavailableReason: import("zod").ZodNullable<import("zod").ZodEnum<{
3083
3498
  authentication_required: "authentication_required";
3084
- ultra_required: "ultra_required";
3085
3499
  quota_exhausted: "quota_exhausted";
3086
3500
  service_unavailable: "service_unavailable";
3501
+ ultra_required: "ultra_required";
3087
3502
  }>>;
3088
3503
  requiresUltra: import("zod").ZodBoolean;
3089
3504
  modelRevision: import("zod").ZodString;
@@ -3093,9 +3508,9 @@ declare const contract: {
3093
3508
  available: import("zod").ZodBoolean;
3094
3509
  unavailableReason: import("zod").ZodNullable<import("zod").ZodEnum<{
3095
3510
  authentication_required: "authentication_required";
3096
- ultra_required: "ultra_required";
3097
3511
  quota_exhausted: "quota_exhausted";
3098
3512
  service_unavailable: "service_unavailable";
3513
+ ultra_required: "ultra_required";
3099
3514
  }>>;
3100
3515
  requiresUltra: import("zod").ZodBoolean;
3101
3516
  modelRevision: import("zod").ZodString;
@@ -3107,9 +3522,9 @@ declare const contract: {
3107
3522
  available: import("zod").ZodBoolean;
3108
3523
  unavailableReason: import("zod").ZodNullable<import("zod").ZodEnum<{
3109
3524
  authentication_required: "authentication_required";
3110
- ultra_required: "ultra_required";
3111
3525
  quota_exhausted: "quota_exhausted";
3112
3526
  service_unavailable: "service_unavailable";
3527
+ ultra_required: "ultra_required";
3113
3528
  }>>;
3114
3529
  requiresUltra: import("zod").ZodBoolean;
3115
3530
  modelRevision: import("zod").ZodString;
@@ -3119,9 +3534,9 @@ declare const contract: {
3119
3534
  available: import("zod").ZodBoolean;
3120
3535
  unavailableReason: import("zod").ZodNullable<import("zod").ZodEnum<{
3121
3536
  authentication_required: "authentication_required";
3122
- ultra_required: "ultra_required";
3123
3537
  quota_exhausted: "quota_exhausted";
3124
3538
  service_unavailable: "service_unavailable";
3539
+ ultra_required: "ultra_required";
3125
3540
  }>>;
3126
3541
  requiresUltra: import("zod").ZodBoolean;
3127
3542
  modelRevision: import("zod").ZodString;
@@ -3133,9 +3548,9 @@ declare const contract: {
3133
3548
  available: import("zod").ZodBoolean;
3134
3549
  unavailableReason: import("zod").ZodNullable<import("zod").ZodEnum<{
3135
3550
  authentication_required: "authentication_required";
3136
- ultra_required: "ultra_required";
3137
3551
  quota_exhausted: "quota_exhausted";
3138
3552
  service_unavailable: "service_unavailable";
3553
+ ultra_required: "ultra_required";
3139
3554
  }>>;
3140
3555
  requiresUltra: import("zod").ZodBoolean;
3141
3556
  modelRevision: import("zod").ZodString;
@@ -3145,9 +3560,9 @@ declare const contract: {
3145
3560
  available: import("zod").ZodBoolean;
3146
3561
  unavailableReason: import("zod").ZodNullable<import("zod").ZodEnum<{
3147
3562
  authentication_required: "authentication_required";
3148
- ultra_required: "ultra_required";
3149
3563
  quota_exhausted: "quota_exhausted";
3150
3564
  service_unavailable: "service_unavailable";
3565
+ ultra_required: "ultra_required";
3151
3566
  }>>;
3152
3567
  requiresUltra: import("zod").ZodBoolean;
3153
3568
  modelRevision: import("zod").ZodString;
@@ -3159,9 +3574,9 @@ declare const contract: {
3159
3574
  available: import("zod").ZodBoolean;
3160
3575
  unavailableReason: import("zod").ZodNullable<import("zod").ZodEnum<{
3161
3576
  authentication_required: "authentication_required";
3162
- ultra_required: "ultra_required";
3163
3577
  quota_exhausted: "quota_exhausted";
3164
3578
  service_unavailable: "service_unavailable";
3579
+ ultra_required: "ultra_required";
3165
3580
  }>>;
3166
3581
  requiresUltra: import("zod").ZodBoolean;
3167
3582
  modelRevision: import("zod").ZodString;
@@ -3171,9 +3586,9 @@ declare const contract: {
3171
3586
  available: import("zod").ZodBoolean;
3172
3587
  unavailableReason: import("zod").ZodNullable<import("zod").ZodEnum<{
3173
3588
  authentication_required: "authentication_required";
3174
- ultra_required: "ultra_required";
3175
3589
  quota_exhausted: "quota_exhausted";
3176
3590
  service_unavailable: "service_unavailable";
3591
+ ultra_required: "ultra_required";
3177
3592
  }>>;
3178
3593
  requiresUltra: import("zod").ZodBoolean;
3179
3594
  modelRevision: import("zod").ZodString;
@@ -3185,9 +3600,9 @@ declare const contract: {
3185
3600
  available: import("zod").ZodBoolean;
3186
3601
  unavailableReason: import("zod").ZodNullable<import("zod").ZodEnum<{
3187
3602
  authentication_required: "authentication_required";
3188
- ultra_required: "ultra_required";
3189
3603
  quota_exhausted: "quota_exhausted";
3190
3604
  service_unavailable: "service_unavailable";
3605
+ ultra_required: "ultra_required";
3191
3606
  }>>;
3192
3607
  requiresUltra: import("zod").ZodBoolean;
3193
3608
  modelRevision: import("zod").ZodString;
@@ -3197,9 +3612,9 @@ declare const contract: {
3197
3612
  available: import("zod").ZodBoolean;
3198
3613
  unavailableReason: import("zod").ZodNullable<import("zod").ZodEnum<{
3199
3614
  authentication_required: "authentication_required";
3200
- ultra_required: "ultra_required";
3201
3615
  quota_exhausted: "quota_exhausted";
3202
3616
  service_unavailable: "service_unavailable";
3617
+ ultra_required: "ultra_required";
3203
3618
  }>>;
3204
3619
  requiresUltra: import("zod").ZodBoolean;
3205
3620
  modelRevision: import("zod").ZodString;
@@ -3211,9 +3626,9 @@ declare const contract: {
3211
3626
  available: import("zod").ZodBoolean;
3212
3627
  unavailableReason: import("zod").ZodNullable<import("zod").ZodEnum<{
3213
3628
  authentication_required: "authentication_required";
3214
- ultra_required: "ultra_required";
3215
3629
  quota_exhausted: "quota_exhausted";
3216
3630
  service_unavailable: "service_unavailable";
3631
+ ultra_required: "ultra_required";
3217
3632
  }>>;
3218
3633
  requiresUltra: import("zod").ZodBoolean;
3219
3634
  modelRevision: import("zod").ZodString;
@@ -3223,9 +3638,9 @@ declare const contract: {
3223
3638
  available: import("zod").ZodBoolean;
3224
3639
  unavailableReason: import("zod").ZodNullable<import("zod").ZodEnum<{
3225
3640
  authentication_required: "authentication_required";
3226
- ultra_required: "ultra_required";
3227
3641
  quota_exhausted: "quota_exhausted";
3228
3642
  service_unavailable: "service_unavailable";
3643
+ ultra_required: "ultra_required";
3229
3644
  }>>;
3230
3645
  requiresUltra: import("zod").ZodBoolean;
3231
3646
  modelRevision: import("zod").ZodString;
@@ -3235,159 +3650,174 @@ declare const contract: {
3235
3650
  }, import("zod/v4/core").$strict>, Record<never, never>, Record<never, never>>;
3236
3651
  translate: {
3237
3652
  streamText: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3238
- instructions: import("zod").ZodString;
3239
- prompt: import("zod").ZodString;
3240
- temperature: import("zod").ZodOptional<import("zod").ZodNumber>;
3241
3653
  modelTier: import("zod").ZodDefault<import("zod").ZodEnum<{
3242
- normal: "normal";
3243
3654
  advance: "advance";
3655
+ normal: "normal";
3244
3656
  }>>;
3245
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>;
3246
3661
  }, import("zod/v4/core").$strict>, import("@orpc/contract").Schema<AsyncIteratorObject<{
3247
3662
  [x: string]: unknown;
3248
3663
  type: string;
3249
3664
  }, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{
3250
3665
  [x: string]: unknown;
3251
3666
  type: string;
3252
- }, 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>>;
3253
3668
  };
3254
3669
  selectionTranslation: {
3255
3670
  streamText: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3256
- instructions: import("zod").ZodString;
3257
- prompt: import("zod").ZodString;
3258
- temperature: import("zod").ZodOptional<import("zod").ZodNumber>;
3259
3671
  modelTier: import("zod").ZodDefault<import("zod").ZodEnum<{
3260
- normal: "normal";
3261
3672
  advance: "advance";
3673
+ normal: "normal";
3262
3674
  }>>;
3263
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>;
3264
3679
  }, import("zod/v4/core").$strict>, import("@orpc/contract").Schema<AsyncIteratorObject<{
3265
3680
  [x: string]: unknown;
3266
3681
  type: string;
3267
3682
  }, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{
3268
3683
  [x: string]: unknown;
3269
3684
  type: string;
3270
- }, 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>>;
3271
3686
  };
3272
3687
  videoSubtitles: {
3273
3688
  streamText: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3274
- instructions: import("zod").ZodString;
3275
- prompt: import("zod").ZodString;
3276
- temperature: import("zod").ZodOptional<import("zod").ZodNumber>;
3277
3689
  modelTier: import("zod").ZodDefault<import("zod").ZodEnum<{
3278
- normal: "normal";
3279
3690
  advance: "advance";
3691
+ normal: "normal";
3280
3692
  }>>;
3281
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>;
3282
3697
  }, import("zod/v4/core").$strict>, import("@orpc/contract").Schema<AsyncIteratorObject<{
3283
3698
  [x: string]: unknown;
3284
3699
  type: string;
3285
3700
  }, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{
3286
3701
  [x: string]: unknown;
3287
3702
  type: string;
3288
- }, 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>>;
3289
3704
  streamSegmentation: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3290
- instructions: import("zod").ZodString;
3291
- prompt: import("zod").ZodString;
3292
- temperature: import("zod").ZodOptional<import("zod").ZodNumber>;
3293
3705
  modelTier: import("zod").ZodDefault<import("zod").ZodEnum<{
3294
- normal: "normal";
3295
3706
  advance: "advance";
3707
+ normal: "normal";
3296
3708
  }>>;
3297
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>;
3298
3713
  }, import("zod/v4/core").$strict>, import("@orpc/contract").Schema<AsyncIteratorObject<{
3299
3714
  [x: string]: unknown;
3300
3715
  type: string;
3301
3716
  }, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{
3302
3717
  [x: string]: unknown;
3303
3718
  type: string;
3304
- }, 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>>;
3305
3720
  };
3306
3721
  inputTranslation: {
3307
3722
  streamText: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3308
- instructions: import("zod").ZodString;
3309
- prompt: import("zod").ZodString;
3310
- temperature: import("zod").ZodOptional<import("zod").ZodNumber>;
3311
3723
  modelTier: import("zod").ZodDefault<import("zod").ZodEnum<{
3312
- normal: "normal";
3313
3724
  advance: "advance";
3725
+ normal: "normal";
3314
3726
  }>>;
3315
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>;
3316
3731
  }, import("zod/v4/core").$strict>, import("@orpc/contract").Schema<AsyncIteratorObject<{
3317
3732
  [x: string]: unknown;
3318
3733
  type: string;
3319
3734
  }, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{
3320
3735
  [x: string]: unknown;
3321
3736
  type: string;
3322
- }, 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>>;
3323
3738
  };
3324
3739
  languageDetection: {
3325
3740
  streamText: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3326
- instructions: import("zod").ZodString;
3327
- prompt: import("zod").ZodString;
3328
- temperature: import("zod").ZodOptional<import("zod").ZodNumber>;
3329
3741
  modelTier: import("zod").ZodDefault<import("zod").ZodEnum<{
3330
- normal: "normal";
3331
3742
  advance: "advance";
3743
+ normal: "normal";
3332
3744
  }>>;
3333
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>;
3334
3749
  }, import("zod/v4/core").$strict>, import("@orpc/contract").Schema<AsyncIteratorObject<{
3335
3750
  [x: string]: unknown;
3336
3751
  type: string;
3337
3752
  }, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{
3338
3753
  [x: string]: unknown;
3339
3754
  type: string;
3340
- }, 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>>;
3341
3756
  };
3342
3757
  customAction: {
3343
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>;
3344
3764
  instructions: import("zod").ZodString;
3345
3765
  prompt: import("zod").ZodString;
3346
3766
  outputSchema: import("zod").ZodArray<import("zod").ZodObject<{
3347
3767
  name: import("zod").ZodString;
3348
3768
  type: import("zod").ZodEnum<{
3349
- string: "string";
3350
3769
  number: "number";
3770
+ string: "string";
3351
3771
  }>;
3352
3772
  }, import("zod/v4/core").$strict>>;
3353
3773
  temperature: import("zod").ZodOptional<import("zod").ZodNumber>;
3354
- modelTier: import("zod").ZodDefault<import("zod").ZodEnum<{
3355
- normal: "normal";
3356
- advance: "advance";
3357
- }>>;
3358
- requestId: import("zod").ZodOptional<import("zod").ZodUUID>;
3359
3774
  }, import("zod/v4/core").$strict>, import("@orpc/contract").Schema<AsyncIteratorObject<{
3360
3775
  [x: string]: unknown;
3361
3776
  type: string;
3362
3777
  }, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{
3363
3778
  [x: string]: unknown;
3364
3779
  type: string;
3365
- }, 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>>;
3366
3781
  };
3367
3782
  noteSuggestion: {
3368
- streamStructuredObject: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3369
- instructions: import("zod").ZodString;
3370
- prompt: import("zod").ZodString;
3371
- temperature: import("zod").ZodOptional<import("zod").ZodNumber>;
3783
+ streamStructuredObject: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3372
3784
  modelTier: import("zod").ZodDefault<import("zod").ZodEnum<{
3373
- normal: "normal";
3374
3785
  advance: "advance";
3786
+ normal: "normal";
3375
3787
  }>>;
3376
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>;
3377
3792
  }, import("zod/v4/core").$strict>, import("@orpc/contract").Schema<AsyncIteratorObject<{
3378
3793
  [x: string]: unknown;
3379
3794
  type: string;
3380
3795
  }, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{
3381
3796
  [x: string]: unknown;
3382
3797
  type: string;
3383
- }, 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>>;
3384
3799
  };
3385
3800
  };
3386
3801
  notebase: {
3387
3802
  list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{}, import("zod/v4/core").$strip>, import("zod").ZodArray<import("zod").ZodObject<{
3388
3803
  id: import("zod").ZodString;
3389
3804
  name: import("zod").ZodString;
3390
- }, 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>>;
3391
3821
  get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3392
3822
  id: import("zod").ZodUUID;
3393
3823
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
@@ -3399,8 +3829,8 @@ declare const contract: {
3399
3829
  srsDesiredRetention: import("zod").ZodNumber;
3400
3830
  srsEnableShortTerm: import("zod").ZodBoolean;
3401
3831
  srsMaximumInterval: import("zod").ZodNumber;
3402
- srsLearningSteps: import("zod").ZodArray<import("zod").ZodTemplateLiteral<`${number}m` | `${number}h` | `${number}d`>>;
3403
- 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`>>;
3404
3834
  srsLeechThreshold: import("zod").ZodNumber;
3405
3835
  srsEnableFuzz: import("zod").ZodBoolean;
3406
3836
  srsWeights: import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodNumber>>;
@@ -3416,8 +3846,8 @@ declare const contract: {
3416
3846
  type: import("zod").ZodLiteral<"number">;
3417
3847
  decimal: import("zod").ZodDefault<import("zod").ZodNumber>;
3418
3848
  format: import("zod").ZodDefault<import("zod").ZodEnum<{
3419
- number: "number";
3420
3849
  currency: "currency";
3850
+ number: "number";
3421
3851
  percent: "percent";
3422
3852
  }>>;
3423
3853
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
@@ -3453,9 +3883,9 @@ declare const contract: {
3453
3883
  notebaseId: import("zod").ZodString;
3454
3884
  name: import("zod").ZodString;
3455
3885
  type: import("zod").ZodEnum<{
3456
- table: "table";
3457
- kanban: "kanban";
3458
3886
  gallery: "gallery";
3887
+ kanban: "kanban";
3888
+ table: "table";
3459
3889
  }>;
3460
3890
  config: import("zod").ZodNullable<import("zod").ZodObject<{
3461
3891
  notebaseColumnWidths: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodNumber>>;
@@ -3485,8 +3915,8 @@ declare const contract: {
3485
3915
  type: import("zod").ZodLiteral<"number">;
3486
3916
  decimal: import("zod").ZodDefault<import("zod").ZodNumber>;
3487
3917
  format: import("zod").ZodDefault<import("zod").ZodEnum<{
3488
- number: "number";
3489
3918
  currency: "currency";
3919
+ number: "number";
3490
3920
  percent: "percent";
3491
3921
  }>>;
3492
3922
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
@@ -3509,7 +3939,10 @@ declare const contract: {
3509
3939
  createdAt: import("zod").ZodCoercedDate<unknown>;
3510
3940
  updatedAt: import("zod").ZodCoercedDate<unknown>;
3511
3941
  }, import("zod/v4/core").$strip>>;
3512
- }, 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>>;
3513
3946
  create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3514
3947
  id: import("zod").ZodOptional<import("zod").ZodUUID>;
3515
3948
  name: import("zod").ZodString;
@@ -3523,8 +3956,8 @@ declare const contract: {
3523
3956
  type: import("zod").ZodLiteral<"number">;
3524
3957
  decimal: import("zod").ZodDefault<import("zod").ZodNumber>;
3525
3958
  format: import("zod").ZodDefault<import("zod").ZodEnum<{
3526
- number: "number";
3527
3959
  currency: "currency";
3960
+ number: "number";
3528
3961
  percent: "percent";
3529
3962
  }>>;
3530
3963
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
@@ -3551,8 +3984,28 @@ declare const contract: {
3551
3984
  }, import("zod/v4/core").$strict>>>;
3552
3985
  }, import("zod/v4/core").$strict>>;
3553
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>;
3554
4004
  txid: import("zod").ZodNumber;
3555
- }, 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>>;
3556
4009
  update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3557
4010
  name: import("zod").ZodOptional<import("zod").ZodString>;
3558
4011
  srsNewPerDay: import("zod").ZodOptional<import("zod").ZodNumber>;
@@ -3560,13 +4013,37 @@ declare const contract: {
3560
4013
  srsDesiredRetention: import("zod").ZodOptional<import("zod").ZodNumber>;
3561
4014
  id: import("zod").ZodUUID;
3562
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>;
3563
4033
  txid: import("zod").ZodNumber;
3564
- }, 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>>;
3565
4038
  delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3566
4039
  id: import("zod").ZodUUID;
3567
4040
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
4041
+ id: import("zod").ZodUUID;
3568
4042
  txid: import("zod").ZodNumber;
3569
- }, 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>>;
3570
4047
  };
3571
4048
  notebaseColumn: {
3572
4049
  create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
@@ -3580,8 +4057,8 @@ declare const contract: {
3580
4057
  type: import("zod").ZodLiteral<"number">;
3581
4058
  decimal: import("zod").ZodDefault<import("zod").ZodNumber>;
3582
4059
  format: import("zod").ZodDefault<import("zod").ZodEnum<{
3583
- number: "number";
3584
4060
  currency: "currency";
4061
+ number: "number";
3585
4062
  percent: "percent";
3586
4063
  }>>;
3587
4064
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
@@ -3599,11 +4076,49 @@ declare const contract: {
3599
4076
  }, import("zod/v4/core").$strip>], "type">;
3600
4077
  }, import("zod/v4/core").$strict>;
3601
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>;
3602
4113
  txid: import("zod").ZodNumber;
3603
- }, 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>>;
3604
4118
  update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3605
4119
  notebaseColumnId: import("zod").ZodUUID;
3606
4120
  data: import("zod").ZodObject<{
4121
+ expectedUpdatedAt: import("zod").ZodOptional<import("zod").ZodISODateTime>;
3607
4122
  name: import("zod").ZodOptional<import("zod").ZodString>;
3608
4123
  config: import("zod").ZodOptional<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
3609
4124
  type: import("zod").ZodLiteral<"string">;
@@ -3611,8 +4126,8 @@ declare const contract: {
3611
4126
  type: import("zod").ZodLiteral<"number">;
3612
4127
  decimal: import("zod").ZodDefault<import("zod").ZodNumber>;
3613
4128
  format: import("zod").ZodDefault<import("zod").ZodEnum<{
3614
- number: "number";
3615
4129
  currency: "currency";
4130
+ number: "number";
3616
4131
  percent: "percent";
3617
4132
  }>>;
3618
4133
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
@@ -3632,21 +4147,94 @@ declare const contract: {
3632
4147
  wrap: import("zod").ZodOptional<import("zod").ZodBoolean>;
3633
4148
  }, import("zod/v4/core").$strict>;
3634
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>;
3635
4184
  txid: import("zod").ZodNumber;
3636
- }, 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>>;
3637
4189
  delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3638
4190
  notebaseColumnId: import("zod").ZodUUID;
3639
4191
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
4192
+ id: import("zod").ZodUUID;
3640
4193
  txid: import("zod").ZodNumber;
3641
- }, 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>>;
3642
4198
  reorder: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3643
4199
  notebaseId: import("zod").ZodUUID;
3644
4200
  ids: import("zod").ZodArray<import("zod").ZodUUID>;
3645
4201
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
3646
4202
  txid: import("zod").ZodNumber;
3647
- }, 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>>;
3648
4204
  };
3649
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>>;
3650
4238
  create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3651
4239
  notebaseId: import("zod").ZodUUID;
3652
4240
  data: import("zod").ZodObject<{
@@ -3654,8 +4242,19 @@ declare const contract: {
3654
4242
  cells: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
3655
4243
  }, import("zod/v4/core").$strict>;
3656
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>;
3657
4253
  txid: import("zod").ZodNumber;
3658
- }, 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>>;
3659
4258
  createMany: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3660
4259
  notebaseId: import("zod").ZodUUID;
3661
4260
  rows: import("zod").ZodArray<import("zod").ZodObject<{
@@ -3663,12 +4262,24 @@ declare const contract: {
3663
4262
  cells: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
3664
4263
  }, import("zod/v4/core").$strict>>;
3665
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>>;
3666
4273
  txid: import("zod").ZodNumber;
3667
- }, 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>>;
3668
4278
  update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3669
4279
  notebaseRowId: import("zod").ZodUUID;
3670
4280
  data: import("zod").ZodObject<{
3671
4281
  cells: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
4282
+ expectedUpdatedAt: import("zod").ZodOptional<import("zod").ZodISODateTime>;
3672
4283
  }, import("zod/v4/core").$strict>;
3673
4284
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
3674
4285
  id: import("zod").ZodUUID;
@@ -3678,89 +4289,119 @@ declare const contract: {
3678
4289
  createdAt: import("zod").ZodDate;
3679
4290
  updatedAt: import("zod").ZodDate;
3680
4291
  txid: import("zod").ZodNumber;
3681
- }, 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>>;
3682
4296
  delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3683
4297
  notebaseRowId: import("zod").ZodUUID;
3684
4298
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
4299
+ id: import("zod").ZodUUID;
3685
4300
  txid: import("zod").ZodNumber;
3686
- }, 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>>;
3687
4305
  reorder: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3688
4306
  notebaseId: import("zod").ZodUUID;
3689
4307
  ids: import("zod").ZodArray<import("zod").ZodUUID>;
3690
4308
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
3691
4309
  txid: import("zod").ZodNumber;
3692
- }, 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>>;
3693
4311
  };
3694
4312
  srs: {
3695
4313
  scheduleStatusStats: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3696
4314
  notebaseIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodUUID>>;
3697
4315
  timezone: import("zod").ZodString;
3698
4316
  }, import("zod/v4/core").$strict>, import("zod").ZodRecord<import("zod").ZodUUID, import("zod").ZodRecord<import("zod").ZodEnum<{
3699
- new: "new";
3700
4317
  learning: "learning";
4318
+ new: "new";
3701
4319
  review: "review";
3702
- }>, 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>>;
3703
4335
  listCardRevlogs: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3704
- 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>;
3705
4340
  }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
3706
4341
  items: import("zod").ZodArray<import("zod").ZodObject<{
3707
4342
  id: import("zod").ZodUUID;
3708
4343
  notebaseId: import("zod").ZodUUID;
3709
- state: import("zod").ZodEnum<{
3710
- new: "new";
3711
- learning: "learning";
3712
- review: "review";
3713
- relearning: "relearning";
3714
- }>;
3715
- stability: import("zod").ZodNumber;
3716
- createdAt: import("zod").ZodCoercedDate<unknown>;
3717
4344
  cardId: import("zod").ZodUUID;
3718
4345
  rating: import("zod").ZodEnum<{
3719
4346
  again: "again";
3720
- hard: "hard";
3721
- good: "good";
3722
4347
  easy: "easy";
4348
+ good: "good";
4349
+ hard: "hard";
3723
4350
  }>;
3724
- afterScheduleStatus: import("zod").ZodEnum<{
4351
+ state: import("zod").ZodEnum<{
4352
+ learning: "learning";
3725
4353
  new: "new";
4354
+ relearning: "relearning";
4355
+ review: "review";
4356
+ }>;
4357
+ stability: import("zod").ZodNumber;
4358
+ afterScheduleStatus: import("zod").ZodEnum<{
4359
+ buried: "buried";
3726
4360
  learning: "learning";
4361
+ new: "new";
3727
4362
  review: "review";
3728
4363
  suspended: "suspended";
3729
- buried: "buried";
3730
4364
  }>;
3731
4365
  afterStability: import("zod").ZodNumber;
3732
4366
  reviewedAt: import("zod").ZodCoercedDate<unknown>;
3733
4367
  durationMs: import("zod").ZodNumber;
4368
+ createdAt: import("zod").ZodCoercedDate<unknown>;
3734
4369
  }, import("zod/v4/core").$strip>>;
3735
- }, 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>>;
3736
4375
  review: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3737
4376
  cardId: import("zod").ZodUUID;
3738
4377
  id: import("zod").ZodOptional<import("zod").ZodUUID>;
3739
4378
  rating: import("zod").ZodEnum<{
3740
4379
  again: "again";
3741
- hard: "hard";
3742
- good: "good";
3743
4380
  easy: "easy";
4381
+ good: "good";
4382
+ hard: "hard";
3744
4383
  }>;
3745
4384
  durationMs: import("zod").ZodNumber;
3746
4385
  timezone: import("zod").ZodString;
3747
4386
  }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
3748
4387
  card: import("zod").ZodObject<{
3749
- createdAt: import("zod").ZodCoercedDate<unknown>;
3750
- updatedAt: import("zod").ZodCoercedDate<unknown>;
3751
- 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;
3752
4393
  state: import("zod").ZodEnum<{
3753
- new: "new";
3754
4394
  learning: "learning";
3755
- review: "review";
4395
+ new: "new";
3756
4396
  relearning: "relearning";
4397
+ review: "review";
3757
4398
  }>;
3758
4399
  scheduleStatus: import("zod").ZodEnum<{
3759
- new: "new";
4400
+ buried: "buried";
3760
4401
  learning: "learning";
4402
+ new: "new";
3761
4403
  review: "review";
3762
4404
  suspended: "suspended";
3763
- buried: "buried";
3764
4405
  }>;
3765
4406
  dueAt: import("zod").ZodCoercedDate<unknown>;
3766
4407
  lastReviewTime: import("zod").ZodNullable<import("zod").ZodCoercedDate<unknown>>;
@@ -3769,11 +4410,9 @@ declare const contract: {
3769
4410
  step: import("zod").ZodNumber;
3770
4411
  lapses: import("zod").ZodNumber;
3771
4412
  reps: import("zod").ZodNumber;
3772
- id: import("zod").ZodUUID;
3773
- notebaseId: import("zod").ZodUUID;
3774
- notebaseRowId: import("zod").ZodUUID;
3775
- templateId: import("zod").ZodUUID;
3776
- 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>;
3777
4416
  }, import("zod/v4/core").$strip>;
3778
4417
  revlog: import("zod").ZodObject<{
3779
4418
  id: import("zod").ZodUUID;
@@ -3781,61 +4420,92 @@ declare const contract: {
3781
4420
  cardId: import("zod").ZodUUID;
3782
4421
  rating: import("zod").ZodEnum<{
3783
4422
  again: "again";
3784
- hard: "hard";
3785
- good: "good";
3786
4423
  easy: "easy";
4424
+ good: "good";
4425
+ hard: "hard";
3787
4426
  }>;
3788
4427
  state: import("zod").ZodEnum<{
3789
- new: "new";
3790
4428
  learning: "learning";
3791
- review: "review";
4429
+ new: "new";
3792
4430
  relearning: "relearning";
4431
+ review: "review";
3793
4432
  }>;
3794
4433
  stability: import("zod").ZodNumber;
3795
4434
  afterScheduleStatus: import("zod").ZodEnum<{
3796
- new: "new";
4435
+ buried: "buried";
3797
4436
  learning: "learning";
4437
+ new: "new";
3798
4438
  review: "review";
3799
4439
  suspended: "suspended";
3800
- buried: "buried";
3801
4440
  }>;
3802
4441
  afterStability: import("zod").ZodNumber;
3803
4442
  reviewedAt: import("zod").ZodCoercedDate<unknown>;
3804
4443
  durationMs: import("zod").ZodNumber;
3805
- fsrsReviewLogSnapshot: import("zod").ZodObject<{
4444
+ fsrsReviewLogSnapshot: import("zod").ZodPipe<import("zod").ZodObject<{
3806
4445
  rating: import("zod").ZodUnion<readonly [import("zod").ZodLiteral<1>, import("zod").ZodLiteral<2>, import("zod").ZodLiteral<3>, import("zod").ZodLiteral<4>]>;
3807
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
+ }>;
3808
4453
  dueAt: import("zod").ZodString;
3809
4454
  stability: import("zod").ZodNumber;
3810
4455
  difficulty: import("zod").ZodNumber;
3811
- scheduledDays: import("zod").ZodNumber;
4456
+ scheduledDays: import("zod").ZodOptional<import("zod").ZodNumber>;
3812
4457
  learningSteps: import("zod").ZodNumber;
3813
4458
  review: import("zod").ZodString;
3814
- }, 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
+ }>>;
3815
4479
  createdAt: import("zod").ZodCoercedDate<unknown>;
3816
4480
  }, import("zod/v4/core").$strip>;
3817
4481
  txid: import("zod").ZodNumber;
3818
4482
  created: import("zod").ZodBoolean;
3819
- }, 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>>;
3820
4487
  rollbackReview: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
4488
+ expectedReviewId: import("zod").ZodOptional<import("zod").ZodUUID>;
3821
4489
  cardId: import("zod").ZodUUID;
3822
4490
  }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
3823
4491
  card: import("zod").ZodObject<{
3824
- createdAt: import("zod").ZodCoercedDate<unknown>;
3825
- updatedAt: import("zod").ZodCoercedDate<unknown>;
3826
- 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;
3827
4497
  state: import("zod").ZodEnum<{
3828
- new: "new";
3829
4498
  learning: "learning";
3830
- review: "review";
4499
+ new: "new";
3831
4500
  relearning: "relearning";
4501
+ review: "review";
3832
4502
  }>;
3833
4503
  scheduleStatus: import("zod").ZodEnum<{
3834
- new: "new";
4504
+ buried: "buried";
3835
4505
  learning: "learning";
4506
+ new: "new";
3836
4507
  review: "review";
3837
4508
  suspended: "suspended";
3838
- buried: "buried";
3839
4509
  }>;
3840
4510
  dueAt: import("zod").ZodCoercedDate<unknown>;
3841
4511
  lastReviewTime: import("zod").ZodNullable<import("zod").ZodCoercedDate<unknown>>;
@@ -3844,27 +4514,34 @@ declare const contract: {
3844
4514
  step: import("zod").ZodNumber;
3845
4515
  lapses: import("zod").ZodNumber;
3846
4516
  reps: import("zod").ZodNumber;
3847
- id: import("zod").ZodUUID;
3848
- notebaseId: import("zod").ZodUUID;
3849
- notebaseRowId: import("zod").ZodUUID;
3850
- templateId: import("zod").ZodUUID;
3851
- 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>;
3852
4520
  }, import("zod/v4/core").$strip>;
3853
4521
  rolledBackRevlogId: import("zod").ZodUUID;
3854
4522
  txid: import("zod").ZodNumber;
3855
- }, 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>>;
3856
4527
  setCardBuried: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3857
4528
  cardId: import("zod").ZodUUID;
3858
4529
  enabled: import("zod").ZodBoolean;
3859
4530
  }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
3860
4531
  txid: import("zod").ZodNumber;
3861
- }, 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>>;
3862
4536
  setCardSuspended: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3863
4537
  cardId: import("zod").ZodUUID;
3864
4538
  enabled: import("zod").ZodBoolean;
3865
4539
  }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
3866
4540
  txid: import("zod").ZodNumber;
3867
- }, 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>>;
3868
4545
  };
3869
4546
  stats: {
3870
4547
  activity: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
@@ -3929,16 +4606,17 @@ declare const contract: {
3929
4606
  videoTranscript: {
3930
4607
  create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3931
4608
  url: import("zod").ZodURL;
4609
+ durationSec: import("zod").ZodNumber;
3932
4610
  }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
3933
4611
  id: import("zod").ZodString;
3934
4612
  platform: import("zod").ZodString;
3935
4613
  videoId: import("zod").ZodString;
3936
4614
  url: import("zod").ZodString;
3937
4615
  status: import("zod").ZodEnum<{
3938
- pending: "pending";
3939
- processing: "processing";
3940
4616
  completed: "completed";
3941
4617
  failed: "failed";
4618
+ pending: "pending";
4619
+ processing: "processing";
3942
4620
  }>;
3943
4621
  title: import("zod").ZodNullable<import("zod").ZodString>;
3944
4622
  durationSec: import("zod").ZodNullable<import("zod").ZodNumber>;
@@ -3946,11 +4624,24 @@ declare const contract: {
3946
4624
  error: import("zod").ZodNullable<import("zod").ZodString>;
3947
4625
  createdAt: import("zod").ZodDate;
3948
4626
  updatedAt: import("zod").ZodDate;
3949
- }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "VIDEO_TRANSCRIPTION_QUOTA_EXCEEDED">>, 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>>;
3950
4628
  getUsage: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodObject<{
3951
4629
  usedMinutes: import("zod").ZodNumber;
3952
4630
  limitMinutes: import("zod").ZodNumber;
3953
4631
  remainingMinutes: import("zod").ZodNumber;
4632
+ plan: import("zod").ZodEnum<{
4633
+ free: "free";
4634
+ pro: "pro";
4635
+ ultra: "ultra";
4636
+ }>;
4637
+ pools: import("zod").ZodArray<import("zod").ZodObject<{
4638
+ id: import("zod").ZodString;
4639
+ usedMinutes: import("zod").ZodNumber;
4640
+ limitMinutes: import("zod").ZodNumber;
4641
+ remainingMinutes: import("zod").ZodNumber;
4642
+ resetAt: import("zod").ZodNullable<import("zod").ZodISODateTime>;
4643
+ expiresAt: import("zod").ZodNullable<import("zod").ZodISODateTime>;
4644
+ }, import("zod/v4/core").$strip>>;
3954
4645
  }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
3955
4646
  get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3956
4647
  id: import("zod").ZodUUID;
@@ -3960,10 +4651,10 @@ declare const contract: {
3960
4651
  videoId: import("zod").ZodString;
3961
4652
  url: import("zod").ZodString;
3962
4653
  status: import("zod").ZodEnum<{
3963
- pending: "pending";
3964
- processing: "processing";
3965
4654
  completed: "completed";
3966
4655
  failed: "failed";
4656
+ pending: "pending";
4657
+ processing: "processing";
3967
4658
  }>;
3968
4659
  title: import("zod").ZodNullable<import("zod").ZodString>;
3969
4660
  durationSec: import("zod").ZodNullable<import("zod").ZodNumber>;
@@ -3971,7 +4662,7 @@ declare const contract: {
3971
4662
  error: import("zod").ZodNullable<import("zod").ZodString>;
3972
4663
  createdAt: import("zod").ZodDate;
3973
4664
  updatedAt: import("zod").ZodDate;
3974
- }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "VIDEO_TRANSCRIPT_NOT_FOUND">>, Record<never, never>>;
4665
+ }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "VIDEO_TRANSCRIPTION_SUBSCRIPTION_REQUIRED" | "VIDEO_TRANSCRIPT_NOT_FOUND">>, Record<never, never>>;
3975
4666
  getSubtitles: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3976
4667
  id: import("zod").ZodUUID;
3977
4668
  }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
@@ -3982,10 +4673,10 @@ declare const contract: {
3982
4673
  end: import("zod").ZodNumber;
3983
4674
  text: import("zod").ZodString;
3984
4675
  }, import("zod/v4/core").$strip>>;
3985
- }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "VIDEO_TRANSCRIPT_NOT_FOUND" | "VIDEO_TRANSCRIPT_NOT_READY">>, Record<never, never>>;
4676
+ }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "VIDEO_TRANSCRIPTION_SUBSCRIPTION_REQUIRED" | "VIDEO_TRANSCRIPT_NOT_FOUND" | "VIDEO_TRANSCRIPT_NOT_READY">>, Record<never, never>>;
3986
4677
  };
3987
4678
  };
3988
4679
  type ORPCRouterClient = ContractRouterClient<typeof contract>;
3989
4680
  //#endregion
3990
- 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, 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, 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 };
3991
4682
  //# sourceMappingURL=index.d.ts.map