@read-frog/api-contract 0.24.0 → 0.26.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.
- package/dist/index.d.ts +1230 -77
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +324 -111
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
- package/src/contracts/card.ts +16 -0
- package/src/contracts/ebook.ts +7 -15
- package/src/contracts/mcp-connection.ts +11 -0
- package/src/contracts/media.ts +60 -0
- package/src/contracts/notebase-row.ts +2 -2
- package/src/contracts/telemetry.ts +17 -0
- package/src/index.ts +6 -0
- package/src/public-errors.ts +44 -4
- package/src/schemas/billing.ts +16 -0
- package/src/schemas/card.ts +10 -0
- package/src/schemas/ebook.ts +7 -0
- package/src/schemas/mcp-connection.ts +17 -0
- package/src/schemas/media.ts +77 -0
- package/src/schemas/notebase-row.ts +30 -0
- package/src/schemas/notebase.ts +6 -1
- package/src/schemas/srs.ts +3 -1
- package/src/schemas/web-sync.ts +122 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ContractRouterClient, ErrorMap, Route } from "@orpc/contract";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { CardState, ReviewRating, SRS_REVIEW_DURATION_MS_MAX, ScheduleStatus, SchedulingParams, cardStateSchema, reviewRatingSchema, scheduleStatusSchema, schedulingParamsSchema } from "@read-frog/definitions";
|
|
4
|
-
//#region src/contracts/shared.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* A documented business route shared by OpenAPI and agent-facing adapters.
|
|
7
6
|
* Both prose fields are required so adapters can reuse them without a second
|
|
@@ -24,12 +23,16 @@ export declare function defineAgentProcedure(route: AgentRoute): import("@orpc/c
|
|
|
24
23
|
summary: string;
|
|
25
24
|
description: string;
|
|
26
25
|
} & Record<never, never>>;
|
|
27
|
-
//#endregion
|
|
28
|
-
//#region src/public-errors.d.ts
|
|
29
26
|
export declare const CellValidationFailureReasonSchema: z.ZodEnum<{
|
|
27
|
+
cloze_crosses_math: "cloze_crosses_math";
|
|
28
|
+
cloze_splits_math_pair: "cloze_splits_math_pair";
|
|
29
|
+
empty_cloze_answer: "empty_cloze_answer";
|
|
30
|
+
invalid_cloze_ordinal: "invalid_cloze_ordinal";
|
|
30
31
|
invalid_date_format: "invalid_date_format";
|
|
31
32
|
invalid_select_option: "invalid_select_option";
|
|
33
|
+
too_many_cloze_groups: "too_many_cloze_groups";
|
|
32
34
|
type_mismatch: "type_mismatch";
|
|
35
|
+
unclosed_cloze: "unclosed_cloze";
|
|
33
36
|
unknown_notebase_column: "unknown_notebase_column";
|
|
34
37
|
}>;
|
|
35
38
|
export type CellValidationFailureReason = z.infer<typeof CellValidationFailureReasonSchema>;
|
|
@@ -51,12 +54,19 @@ export declare const CellValidationFailedDataSchema: z.ZodObject<{
|
|
|
51
54
|
validOptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
52
55
|
}, z.core.$strict>;
|
|
53
56
|
reason: z.ZodEnum<{
|
|
57
|
+
cloze_crosses_math: "cloze_crosses_math";
|
|
58
|
+
cloze_splits_math_pair: "cloze_splits_math_pair";
|
|
59
|
+
empty_cloze_answer: "empty_cloze_answer";
|
|
60
|
+
invalid_cloze_ordinal: "invalid_cloze_ordinal";
|
|
54
61
|
invalid_date_format: "invalid_date_format";
|
|
55
62
|
invalid_select_option: "invalid_select_option";
|
|
63
|
+
too_many_cloze_groups: "too_many_cloze_groups";
|
|
56
64
|
type_mismatch: "type_mismatch";
|
|
65
|
+
unclosed_cloze: "unclosed_cloze";
|
|
57
66
|
unknown_notebase_column: "unknown_notebase_column";
|
|
58
67
|
}>;
|
|
59
68
|
rowIndex: z.ZodOptional<z.ZodNumber>;
|
|
69
|
+
notebaseRowId: z.ZodOptional<z.ZodString>;
|
|
60
70
|
}, z.core.$strict>;
|
|
61
71
|
export type CellValidationFailedData = z.infer<typeof CellValidationFailedDataSchema>;
|
|
62
72
|
export declare const CardTemplateInvalidColumnsDataSchema: z.ZodObject<{
|
|
@@ -113,6 +123,10 @@ export declare const SpeechDailyLimitReachedDataSchema: z.ZodObject<{
|
|
|
113
123
|
resetAt: z.ZodISODateTime;
|
|
114
124
|
}, z.core.$strict>;
|
|
115
125
|
export declare const PUBLIC_APP_ERROR_DEFS: {
|
|
126
|
+
readonly CARD_DELETE_UNSUPPORTED: {
|
|
127
|
+
readonly message: "This card cannot be deleted independently of its note.";
|
|
128
|
+
readonly status: 400;
|
|
129
|
+
};
|
|
116
130
|
readonly RESOURCE_UPDATE_CONFLICT: {
|
|
117
131
|
readonly message: "The resource changed. Read it again before updating.";
|
|
118
132
|
readonly status: 409;
|
|
@@ -334,12 +348,19 @@ export declare const PUBLIC_APP_ERROR_DEFS: {
|
|
|
334
348
|
validOptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
335
349
|
}, z.core.$strict>;
|
|
336
350
|
reason: z.ZodEnum<{
|
|
351
|
+
cloze_crosses_math: "cloze_crosses_math";
|
|
352
|
+
cloze_splits_math_pair: "cloze_splits_math_pair";
|
|
353
|
+
empty_cloze_answer: "empty_cloze_answer";
|
|
354
|
+
invalid_cloze_ordinal: "invalid_cloze_ordinal";
|
|
337
355
|
invalid_date_format: "invalid_date_format";
|
|
338
356
|
invalid_select_option: "invalid_select_option";
|
|
357
|
+
too_many_cloze_groups: "too_many_cloze_groups";
|
|
339
358
|
type_mismatch: "type_mismatch";
|
|
359
|
+
unclosed_cloze: "unclosed_cloze";
|
|
340
360
|
unknown_notebase_column: "unknown_notebase_column";
|
|
341
361
|
}>;
|
|
342
362
|
rowIndex: z.ZodOptional<z.ZodNumber>;
|
|
363
|
+
notebaseRowId: z.ZodOptional<z.ZodString>;
|
|
343
364
|
}, z.core.$strict>;
|
|
344
365
|
readonly message: "Cell validation failed";
|
|
345
366
|
readonly status: 422;
|
|
@@ -352,10 +373,6 @@ export declare const PUBLIC_APP_ERROR_DEFS: {
|
|
|
352
373
|
readonly message: "Concurrent position conflict, please retry";
|
|
353
374
|
readonly status: 409;
|
|
354
375
|
};
|
|
355
|
-
readonly EBOOK_BETA_RESTRICTED: {
|
|
356
|
-
readonly message: "Ebooks are currently in beta for selected accounts";
|
|
357
|
-
readonly status: 403;
|
|
358
|
-
};
|
|
359
376
|
readonly EBOOK_NOT_FOUND: {
|
|
360
377
|
readonly message: "Ebook not found";
|
|
361
378
|
readonly status: 404;
|
|
@@ -372,6 +389,26 @@ export declare const PUBLIC_APP_ERROR_DEFS: {
|
|
|
372
389
|
readonly message: "Ebook upload has not been completed";
|
|
373
390
|
readonly status: 409;
|
|
374
391
|
};
|
|
392
|
+
readonly MEDIA_BETA_RESTRICTED: {
|
|
393
|
+
readonly message: "Media uploads are currently in beta for selected accounts";
|
|
394
|
+
readonly status: 403;
|
|
395
|
+
};
|
|
396
|
+
readonly MEDIA_NOT_FOUND: {
|
|
397
|
+
readonly message: "Media file not found";
|
|
398
|
+
readonly status: 404;
|
|
399
|
+
};
|
|
400
|
+
readonly MEDIA_FILE_TOO_LARGE: {
|
|
401
|
+
readonly message: "Media file exceeds the maximum allowed size";
|
|
402
|
+
readonly status: 413;
|
|
403
|
+
};
|
|
404
|
+
readonly MEDIA_QUOTA_EXCEEDED: {
|
|
405
|
+
readonly message: "Not enough media storage space left on your plan";
|
|
406
|
+
readonly status: 403;
|
|
407
|
+
};
|
|
408
|
+
readonly MEDIA_UPLOAD_NOT_COMPLETED: {
|
|
409
|
+
readonly message: "Media upload has not been completed";
|
|
410
|
+
readonly status: 409;
|
|
411
|
+
};
|
|
375
412
|
readonly EMAIL_LINK_INVALID: {
|
|
376
413
|
readonly message: "This email link is not valid";
|
|
377
414
|
readonly status: 400;
|
|
@@ -476,6 +513,10 @@ export type PublicAppErrorData<TCode extends PublicAppErrorCode> = (typeof PUBLI
|
|
|
476
513
|
} ? z.output<TSchema> : undefined;
|
|
477
514
|
export declare function isPublicAppErrorCode(code: string | undefined): code is PublicAppErrorCode;
|
|
478
515
|
export declare function getPublicErrorDefinition<TCode extends PublicAppErrorCode>(code: TCode): {
|
|
516
|
+
readonly CARD_DELETE_UNSUPPORTED: {
|
|
517
|
+
readonly message: "This card cannot be deleted independently of its note.";
|
|
518
|
+
readonly status: 400;
|
|
519
|
+
};
|
|
479
520
|
readonly RESOURCE_UPDATE_CONFLICT: {
|
|
480
521
|
readonly message: "The resource changed. Read it again before updating.";
|
|
481
522
|
readonly status: 409;
|
|
@@ -697,12 +738,19 @@ export declare function getPublicErrorDefinition<TCode extends PublicAppErrorCod
|
|
|
697
738
|
validOptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
698
739
|
}, z.core.$strict>;
|
|
699
740
|
reason: z.ZodEnum<{
|
|
741
|
+
cloze_crosses_math: "cloze_crosses_math";
|
|
742
|
+
cloze_splits_math_pair: "cloze_splits_math_pair";
|
|
743
|
+
empty_cloze_answer: "empty_cloze_answer";
|
|
744
|
+
invalid_cloze_ordinal: "invalid_cloze_ordinal";
|
|
700
745
|
invalid_date_format: "invalid_date_format";
|
|
701
746
|
invalid_select_option: "invalid_select_option";
|
|
747
|
+
too_many_cloze_groups: "too_many_cloze_groups";
|
|
702
748
|
type_mismatch: "type_mismatch";
|
|
749
|
+
unclosed_cloze: "unclosed_cloze";
|
|
703
750
|
unknown_notebase_column: "unknown_notebase_column";
|
|
704
751
|
}>;
|
|
705
752
|
rowIndex: z.ZodOptional<z.ZodNumber>;
|
|
753
|
+
notebaseRowId: z.ZodOptional<z.ZodString>;
|
|
706
754
|
}, z.core.$strict>;
|
|
707
755
|
readonly message: "Cell validation failed";
|
|
708
756
|
readonly status: 422;
|
|
@@ -715,10 +763,6 @@ export declare function getPublicErrorDefinition<TCode extends PublicAppErrorCod
|
|
|
715
763
|
readonly message: "Concurrent position conflict, please retry";
|
|
716
764
|
readonly status: 409;
|
|
717
765
|
};
|
|
718
|
-
readonly EBOOK_BETA_RESTRICTED: {
|
|
719
|
-
readonly message: "Ebooks are currently in beta for selected accounts";
|
|
720
|
-
readonly status: 403;
|
|
721
|
-
};
|
|
722
766
|
readonly EBOOK_NOT_FOUND: {
|
|
723
767
|
readonly message: "Ebook not found";
|
|
724
768
|
readonly status: 404;
|
|
@@ -735,6 +779,26 @@ export declare function getPublicErrorDefinition<TCode extends PublicAppErrorCod
|
|
|
735
779
|
readonly message: "Ebook upload has not been completed";
|
|
736
780
|
readonly status: 409;
|
|
737
781
|
};
|
|
782
|
+
readonly MEDIA_BETA_RESTRICTED: {
|
|
783
|
+
readonly message: "Media uploads are currently in beta for selected accounts";
|
|
784
|
+
readonly status: 403;
|
|
785
|
+
};
|
|
786
|
+
readonly MEDIA_NOT_FOUND: {
|
|
787
|
+
readonly message: "Media file not found";
|
|
788
|
+
readonly status: 404;
|
|
789
|
+
};
|
|
790
|
+
readonly MEDIA_FILE_TOO_LARGE: {
|
|
791
|
+
readonly message: "Media file exceeds the maximum allowed size";
|
|
792
|
+
readonly status: 413;
|
|
793
|
+
};
|
|
794
|
+
readonly MEDIA_QUOTA_EXCEEDED: {
|
|
795
|
+
readonly message: "Not enough media storage space left on your plan";
|
|
796
|
+
readonly status: 403;
|
|
797
|
+
};
|
|
798
|
+
readonly MEDIA_UPLOAD_NOT_COMPLETED: {
|
|
799
|
+
readonly message: "Media upload has not been completed";
|
|
800
|
+
readonly status: 409;
|
|
801
|
+
};
|
|
738
802
|
readonly EMAIL_LINK_INVALID: {
|
|
739
803
|
readonly message: "This email link is not valid";
|
|
740
804
|
readonly status: 400;
|
|
@@ -834,8 +898,6 @@ export declare function getPublicErrorDefinition<TCode extends PublicAppErrorCod
|
|
|
834
898
|
};
|
|
835
899
|
}[TCode];
|
|
836
900
|
export declare function pickPublicErrorMap<const TCodes extends readonly PublicAppErrorCode[]>(...codes: TCodes): Pick<ErrorMap, TCodes[number]>;
|
|
837
|
-
//#endregion
|
|
838
|
-
//#region src/schemas/app-locale.d.ts
|
|
839
901
|
/**
|
|
840
902
|
* The languages the website is in (`project.inlang/settings.json`; a test in
|
|
841
903
|
* apps/www keeps the two in step). Used wherever the server writes for a
|
|
@@ -853,8 +915,6 @@ export declare const appLocaleSchema: z.ZodEnum<{
|
|
|
853
915
|
"zh-TW": "zh-TW";
|
|
854
916
|
}>;
|
|
855
917
|
export type AppLocale = z.infer<typeof appLocaleSchema>;
|
|
856
|
-
//#endregion
|
|
857
|
-
//#region src/schemas/billing.d.ts
|
|
858
918
|
export declare const billingIntervalSchema: z.ZodEnum<{
|
|
859
919
|
month: "month";
|
|
860
920
|
year: "year";
|
|
@@ -892,6 +952,21 @@ export declare const MCP_DAILY_CALL_LIMITS: {
|
|
|
892
952
|
readonly pro: 50;
|
|
893
953
|
readonly ultra: null;
|
|
894
954
|
};
|
|
955
|
+
/**
|
|
956
|
+
* How many ebooks each plan may keep at once. Free keeps one, so it reads one
|
|
957
|
+
* book at a time; deleting a book frees its place for the next.
|
|
958
|
+
*
|
|
959
|
+
* Read by the API's upload gate AND by the website's copy (the pricing page),
|
|
960
|
+
* so the pages cannot promise books the server refuses.
|
|
961
|
+
*
|
|
962
|
+
* Companion edit when this changes: `account-and-plans` under
|
|
963
|
+
* `apps/www/content/docs/`, which states the numbers.
|
|
964
|
+
*/
|
|
965
|
+
export declare const EBOOK_LIMIT_BY_PLAN: {
|
|
966
|
+
readonly free: 1;
|
|
967
|
+
readonly pro: 10;
|
|
968
|
+
readonly ultra: 80;
|
|
969
|
+
};
|
|
895
970
|
export declare const billingCheckoutPlanSchema: z.ZodEnum<{
|
|
896
971
|
pro: "pro";
|
|
897
972
|
ultra: "ultra";
|
|
@@ -1122,8 +1197,6 @@ export declare const billingCancelScheduledChangeOutputSchema: z.ZodObject<{
|
|
|
1122
1197
|
success: z.ZodLiteral<true>;
|
|
1123
1198
|
}, z.core.$strict>;
|
|
1124
1199
|
export type BillingCancelScheduledChangeOutput = z.infer<typeof billingCancelScheduledChangeOutputSchema>;
|
|
1125
|
-
//#endregion
|
|
1126
|
-
//#region src/schemas/card.d.ts
|
|
1127
1200
|
export declare const cardTemplateSchema: z.ZodObject<{
|
|
1128
1201
|
id: z.ZodUUID;
|
|
1129
1202
|
notebaseId: z.ZodUUID;
|
|
@@ -1568,6 +1641,16 @@ export declare const CardGetOutputSchema: z.ZodObject<{
|
|
|
1568
1641
|
back: z.ZodString;
|
|
1569
1642
|
}, z.core.$strip>;
|
|
1570
1643
|
export type CardGetOutput = z.infer<typeof CardGetOutputSchema>;
|
|
1644
|
+
export declare const CardDeleteInputSchema: z.ZodObject<{
|
|
1645
|
+
id: z.ZodUUID;
|
|
1646
|
+
expectedVariantKey: z.ZodString;
|
|
1647
|
+
expectedRowUpdatedAt: z.ZodISODateTime;
|
|
1648
|
+
}, z.core.$strict>;
|
|
1649
|
+
export type CardDeleteInput = z.infer<typeof CardDeleteInputSchema>;
|
|
1650
|
+
export declare const CardDeleteOutputSchema: z.ZodObject<{
|
|
1651
|
+
txid: z.ZodNumber;
|
|
1652
|
+
}, z.core.$strip>;
|
|
1653
|
+
export type CardDeleteOutput = z.infer<typeof CardDeleteOutputSchema>;
|
|
1571
1654
|
export declare const CardGenerateInputSchema: z.ZodObject<{
|
|
1572
1655
|
notebaseId: z.ZodUUID;
|
|
1573
1656
|
templateId: z.ZodOptional<z.ZodUUID>;
|
|
@@ -1578,8 +1661,6 @@ export declare const CardGenerateOutputSchema: z.ZodObject<{
|
|
|
1578
1661
|
txid: z.ZodNumber;
|
|
1579
1662
|
}, z.core.$strip>;
|
|
1580
1663
|
export type CardGenerateOutput = z.infer<typeof CardGenerateOutputSchema>;
|
|
1581
|
-
//#endregion
|
|
1582
|
-
//#region src/schemas/ebook.d.ts
|
|
1583
1664
|
export declare const ebookStatusSchema: z.ZodEnum<{
|
|
1584
1665
|
pending: "pending";
|
|
1585
1666
|
ready: "ready";
|
|
@@ -1693,6 +1774,7 @@ export declare const ebookRequestUploadInputSchema: z.ZodObject<{
|
|
|
1693
1774
|
}>;
|
|
1694
1775
|
byteSize: z.ZodNumber;
|
|
1695
1776
|
}, z.core.$strict>>;
|
|
1777
|
+
uploadKey: z.ZodOptional<z.ZodUUID>;
|
|
1696
1778
|
}, z.core.$strict>;
|
|
1697
1779
|
export type EbookRequestUploadInput = z.infer<typeof ebookRequestUploadInputSchema>;
|
|
1698
1780
|
/**
|
|
@@ -1802,8 +1884,6 @@ export declare const ebookDeleteOutputSchema: z.ZodObject<{
|
|
|
1802
1884
|
id: z.ZodUUID;
|
|
1803
1885
|
}, z.core.$strict>;
|
|
1804
1886
|
export type EbookDeleteOutput = z.infer<typeof ebookDeleteOutputSchema>;
|
|
1805
|
-
//#endregion
|
|
1806
|
-
//#region src/schemas/email-preferences.d.ts
|
|
1807
1887
|
/** A category's key, such as `promotions`. */
|
|
1808
1888
|
export declare const emailCategoryKeySchema: z.ZodString;
|
|
1809
1889
|
export type EmailCategoryKey = z.infer<typeof emailCategoryKeySchema>;
|
|
@@ -1942,27 +2022,23 @@ export declare const emailPreferencesUpdateByTokenInputSchema: z.ZodObject<{
|
|
|
1942
2022
|
}>;
|
|
1943
2023
|
}, z.core.$strict>;
|
|
1944
2024
|
export type EmailPreferencesUpdateByTokenInput = z.infer<typeof emailPreferencesUpdateByTokenInputSchema>;
|
|
1945
|
-
//#endregion
|
|
1946
|
-
//#region src/schemas/feature-access.d.ts
|
|
1947
2025
|
export declare const GatedFeatureKeySchema: z.ZodEnum<{
|
|
1948
|
-
|
|
2026
|
+
media: "media";
|
|
1949
2027
|
}>;
|
|
1950
2028
|
export type GatedFeatureKey = z.infer<typeof GatedFeatureKeySchema>;
|
|
1951
2029
|
export declare const FeatureAccessStatusInputSchema: z.ZodObject<{
|
|
1952
2030
|
featureKey: z.ZodEnum<{
|
|
1953
|
-
|
|
2031
|
+
media: "media";
|
|
1954
2032
|
}>;
|
|
1955
2033
|
}, z.core.$strict>;
|
|
1956
2034
|
export type FeatureAccessStatusInput = z.infer<typeof FeatureAccessStatusInputSchema>;
|
|
1957
2035
|
export declare const FeatureAccessStatusOutputSchema: z.ZodObject<{
|
|
1958
2036
|
featureKey: z.ZodEnum<{
|
|
1959
|
-
|
|
2037
|
+
media: "media";
|
|
1960
2038
|
}>;
|
|
1961
2039
|
allowed: z.ZodBoolean;
|
|
1962
2040
|
}, z.core.$strip>;
|
|
1963
2041
|
export type FeatureAccessStatusOutput = z.infer<typeof FeatureAccessStatusOutputSchema>;
|
|
1964
|
-
//#endregion
|
|
1965
|
-
//#region src/schemas/hosted-ai.d.ts
|
|
1966
2042
|
export declare const HostedAiOutputFieldTypeSchema: z.ZodEnum<{
|
|
1967
2043
|
number: "number";
|
|
1968
2044
|
string: "string";
|
|
@@ -2655,8 +2731,136 @@ export type HostedAiCreditPoolStatus = z.infer<typeof HostedAiCreditPoolStatusSc
|
|
|
2655
2731
|
export type HostedAiTierStatus = z.infer<typeof HostedAiTierStatusSchema>;
|
|
2656
2732
|
export type HostedAiFeatureStatus = z.infer<typeof HostedAiFeatureStatusSchema>;
|
|
2657
2733
|
export type HostedAiStatusOutput = z.infer<typeof HostedAiStatusOutputSchema>;
|
|
2658
|
-
|
|
2659
|
-
|
|
2734
|
+
export declare const mediaContentTypeSchema: z.ZodEnum<{
|
|
2735
|
+
"audio/mp4": "audio/mp4";
|
|
2736
|
+
"audio/mpeg": "audio/mpeg";
|
|
2737
|
+
"audio/wav": "audio/wav";
|
|
2738
|
+
"image/jpeg": "image/jpeg";
|
|
2739
|
+
"image/png": "image/png";
|
|
2740
|
+
"image/webp": "image/webp";
|
|
2741
|
+
}>;
|
|
2742
|
+
export type MediaContentType = z.infer<typeof mediaContentTypeSchema>;
|
|
2743
|
+
export declare const mediaAssetStatusSchema: z.ZodEnum<{
|
|
2744
|
+
failed: "failed";
|
|
2745
|
+
pending: "pending";
|
|
2746
|
+
processing: "processing";
|
|
2747
|
+
ready: "ready";
|
|
2748
|
+
}>;
|
|
2749
|
+
export type MediaAssetStatus = z.infer<typeof mediaAssetStatusSchema>;
|
|
2750
|
+
/** Why the worker rejected an upload. */
|
|
2751
|
+
export declare const mediaFailureCodeSchema: z.ZodEnum<{
|
|
2752
|
+
audio_too_long: "audio_too_long";
|
|
2753
|
+
file_too_large: "file_too_large";
|
|
2754
|
+
image_too_large: "image_too_large";
|
|
2755
|
+
invalid_file: "invalid_file";
|
|
2756
|
+
processing_failed: "processing_failed";
|
|
2757
|
+
quota_exceeded: "quota_exceeded";
|
|
2758
|
+
unsupported_format: "unsupported_format";
|
|
2759
|
+
}>;
|
|
2760
|
+
export type MediaFailureCode = z.infer<typeof mediaFailureCodeSchema>;
|
|
2761
|
+
export declare const mediaAssetMetadataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2762
|
+
kind: z.ZodLiteral<"image">;
|
|
2763
|
+
width: z.ZodNumber;
|
|
2764
|
+
height: z.ZodNumber;
|
|
2765
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2766
|
+
kind: z.ZodLiteral<"audio">;
|
|
2767
|
+
durationMs: z.ZodNumber;
|
|
2768
|
+
}, z.core.$strict>], "kind">;
|
|
2769
|
+
export declare const mediaAssetSchema: z.ZodObject<{
|
|
2770
|
+
id: z.ZodUUID;
|
|
2771
|
+
uri: z.ZodNullable<z.ZodString>;
|
|
2772
|
+
status: z.ZodEnum<{
|
|
2773
|
+
failed: "failed";
|
|
2774
|
+
pending: "pending";
|
|
2775
|
+
processing: "processing";
|
|
2776
|
+
ready: "ready";
|
|
2777
|
+
}>;
|
|
2778
|
+
contentType: z.ZodNullable<z.ZodString>;
|
|
2779
|
+
fileByteSize: z.ZodNumber;
|
|
2780
|
+
metadata: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2781
|
+
kind: z.ZodLiteral<"image">;
|
|
2782
|
+
width: z.ZodNumber;
|
|
2783
|
+
height: z.ZodNumber;
|
|
2784
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2785
|
+
kind: z.ZodLiteral<"audio">;
|
|
2786
|
+
durationMs: z.ZodNumber;
|
|
2787
|
+
}, z.core.$strict>], "kind">>;
|
|
2788
|
+
failureCode: z.ZodNullable<z.ZodEnum<{
|
|
2789
|
+
audio_too_long: "audio_too_long";
|
|
2790
|
+
file_too_large: "file_too_large";
|
|
2791
|
+
image_too_large: "image_too_large";
|
|
2792
|
+
invalid_file: "invalid_file";
|
|
2793
|
+
processing_failed: "processing_failed";
|
|
2794
|
+
quota_exceeded: "quota_exceeded";
|
|
2795
|
+
unsupported_format: "unsupported_format";
|
|
2796
|
+
}>>;
|
|
2797
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
2798
|
+
}, z.core.$strict>;
|
|
2799
|
+
export type MediaAsset = z.infer<typeof mediaAssetSchema>;
|
|
2800
|
+
export declare const mediaRequestUploadInputSchema: z.ZodObject<{
|
|
2801
|
+
contentType: z.ZodEnum<{
|
|
2802
|
+
"audio/mp4": "audio/mp4";
|
|
2803
|
+
"audio/mpeg": "audio/mpeg";
|
|
2804
|
+
"audio/wav": "audio/wav";
|
|
2805
|
+
"image/jpeg": "image/jpeg";
|
|
2806
|
+
"image/png": "image/png";
|
|
2807
|
+
"image/webp": "image/webp";
|
|
2808
|
+
}>;
|
|
2809
|
+
byteSize: z.ZodNumber;
|
|
2810
|
+
}, z.core.$strict>;
|
|
2811
|
+
export type MediaRequestUploadInput = z.infer<typeof mediaRequestUploadInputSchema>;
|
|
2812
|
+
export declare const mediaRequestUploadOutputSchema: z.ZodObject<{
|
|
2813
|
+
assetId: z.ZodUUID;
|
|
2814
|
+
upload: z.ZodObject<{
|
|
2815
|
+
url: z.ZodURL;
|
|
2816
|
+
headers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
2817
|
+
}, z.core.$strict>;
|
|
2818
|
+
expiresAt: z.ZodCoercedDate<unknown>;
|
|
2819
|
+
}, z.core.$strict>;
|
|
2820
|
+
export type MediaRequestUploadOutput = z.infer<typeof mediaRequestUploadOutputSchema>;
|
|
2821
|
+
export declare const mediaAssetIdInputSchema: z.ZodObject<{
|
|
2822
|
+
id: z.ZodUUID;
|
|
2823
|
+
}, z.core.$strict>;
|
|
2824
|
+
export type MediaAssetIdInput = z.infer<typeof mediaAssetIdInputSchema>;
|
|
2825
|
+
export declare const mediaAssetOutputSchema: z.ZodObject<{
|
|
2826
|
+
asset: z.ZodObject<{
|
|
2827
|
+
id: z.ZodUUID;
|
|
2828
|
+
uri: z.ZodNullable<z.ZodString>;
|
|
2829
|
+
status: z.ZodEnum<{
|
|
2830
|
+
failed: "failed";
|
|
2831
|
+
pending: "pending";
|
|
2832
|
+
processing: "processing";
|
|
2833
|
+
ready: "ready";
|
|
2834
|
+
}>;
|
|
2835
|
+
contentType: z.ZodNullable<z.ZodString>;
|
|
2836
|
+
fileByteSize: z.ZodNumber;
|
|
2837
|
+
metadata: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2838
|
+
kind: z.ZodLiteral<"image">;
|
|
2839
|
+
width: z.ZodNumber;
|
|
2840
|
+
height: z.ZodNumber;
|
|
2841
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2842
|
+
kind: z.ZodLiteral<"audio">;
|
|
2843
|
+
durationMs: z.ZodNumber;
|
|
2844
|
+
}, z.core.$strict>], "kind">>;
|
|
2845
|
+
failureCode: z.ZodNullable<z.ZodEnum<{
|
|
2846
|
+
audio_too_long: "audio_too_long";
|
|
2847
|
+
file_too_large: "file_too_large";
|
|
2848
|
+
image_too_large: "image_too_large";
|
|
2849
|
+
invalid_file: "invalid_file";
|
|
2850
|
+
processing_failed: "processing_failed";
|
|
2851
|
+
quota_exceeded: "quota_exceeded";
|
|
2852
|
+
unsupported_format: "unsupported_format";
|
|
2853
|
+
}>>;
|
|
2854
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
2855
|
+
}, z.core.$strict>;
|
|
2856
|
+
}, z.core.$strict>;
|
|
2857
|
+
export type MediaAssetOutput = z.infer<typeof mediaAssetOutputSchema>;
|
|
2858
|
+
export declare const mediaUsageOutputSchema: z.ZodObject<{
|
|
2859
|
+
usedBytes: z.ZodNumber;
|
|
2860
|
+
reservedBytes: z.ZodNumber;
|
|
2861
|
+
limitBytes: z.ZodNumber;
|
|
2862
|
+
}, z.core.$strict>;
|
|
2863
|
+
export type MediaUsageOutput = z.infer<typeof mediaUsageOutputSchema>;
|
|
2660
2864
|
export declare const MASTERY_GOAL_TARGET_MAX = 1000000;
|
|
2661
2865
|
/** How many mastered cards to aim for: the cards `stats.srsMemoryGrowth` counts. */
|
|
2662
2866
|
export declare const masteryGoalTargetSchema: z.ZodNumber;
|
|
@@ -2671,8 +2875,6 @@ export declare const masteryGoalOutputSchema: z.ZodObject<{
|
|
|
2671
2875
|
target: z.ZodNullable<z.ZodNumber>;
|
|
2672
2876
|
}, z.core.$strict>;
|
|
2673
2877
|
export type MasteryGoalOutput = z.infer<typeof masteryGoalOutputSchema>;
|
|
2674
|
-
//#endregion
|
|
2675
|
-
//#region src/schemas/mcp-connection.d.ts
|
|
2676
2878
|
export declare const mcpConnectionSchema: z.ZodObject<{
|
|
2677
2879
|
clientId: z.ZodString;
|
|
2678
2880
|
clientName: z.ZodNullable<z.ZodString>;
|
|
@@ -2699,8 +2901,17 @@ export type McpConnectionRevokeInput = z.infer<typeof mcpConnectionRevokeInputSc
|
|
|
2699
2901
|
export declare const mcpConnectionRevokeOutputSchema: z.ZodObject<{
|
|
2700
2902
|
clientId: z.ZodString;
|
|
2701
2903
|
}, z.core.$strict>;
|
|
2702
|
-
|
|
2703
|
-
|
|
2904
|
+
/**
|
|
2905
|
+
* How many MCP tool calls the caller has used of their plan's
|
|
2906
|
+
* `MCP_DAILY_CALL_LIMITS`, read without counting one. The window is 24 hours
|
|
2907
|
+
* from the first call in it, not a calendar day.
|
|
2908
|
+
*/
|
|
2909
|
+
export declare const mcpCallUsageSchema: z.ZodObject<{
|
|
2910
|
+
usedCalls: z.ZodNumber;
|
|
2911
|
+
limit: z.ZodNullable<z.ZodNumber>;
|
|
2912
|
+
resetAt: z.ZodNullable<z.ZodISODateTime>;
|
|
2913
|
+
}, z.core.$strict>;
|
|
2914
|
+
export type McpCallUsage = z.infer<typeof mcpCallUsageSchema>;
|
|
2704
2915
|
export declare const NotebaseListInputSchema: z.ZodObject<{}, z.core.$strip>;
|
|
2705
2916
|
export type NotebaseListInput = z.infer<typeof NotebaseListInputSchema>;
|
|
2706
2917
|
export declare const notebaseSummarySchema: z.ZodObject<{
|
|
@@ -2775,15 +2986,45 @@ export declare const notebaseCreateDataSchema: z.ZodObject<{
|
|
|
2775
2986
|
value: z.ZodString;
|
|
2776
2987
|
color: z.ZodString;
|
|
2777
2988
|
}, z.core.$strip>>>;
|
|
2989
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2990
|
+
type: z.ZodLiteral<"cloze">;
|
|
2778
2991
|
}, z.core.$strip>], "type">;
|
|
2779
2992
|
}, z.core.$strict>>;
|
|
2780
2993
|
initialRow: z.ZodOptional<z.ZodObject<{
|
|
2781
2994
|
id: z.ZodOptional<z.ZodUUID>;
|
|
2782
2995
|
cells: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2996
|
+
origin: z.ZodCatch<z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2997
|
+
kind: z.ZodLiteral<"webpage">;
|
|
2998
|
+
url: z.ZodString;
|
|
2999
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3000
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3001
|
+
kind: z.ZodLiteral<"ebook">;
|
|
3002
|
+
ebookId: z.ZodUUID;
|
|
3003
|
+
cfi: z.ZodOptional<z.ZodString>;
|
|
3004
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3005
|
+
kind: z.ZodLiteral<"video">;
|
|
3006
|
+
url: z.ZodString;
|
|
3007
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3008
|
+
seconds: z.ZodOptional<z.ZodNumber>;
|
|
3009
|
+
}, z.core.$strip>], "kind">>>;
|
|
2783
3010
|
}, z.core.$strict>>;
|
|
2784
3011
|
initialRows: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2785
3012
|
id: z.ZodOptional<z.ZodUUID>;
|
|
2786
3013
|
cells: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3014
|
+
origin: z.ZodCatch<z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3015
|
+
kind: z.ZodLiteral<"webpage">;
|
|
3016
|
+
url: z.ZodString;
|
|
3017
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3018
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3019
|
+
kind: z.ZodLiteral<"ebook">;
|
|
3020
|
+
ebookId: z.ZodUUID;
|
|
3021
|
+
cfi: z.ZodOptional<z.ZodString>;
|
|
3022
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3023
|
+
kind: z.ZodLiteral<"video">;
|
|
3024
|
+
url: z.ZodString;
|
|
3025
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3026
|
+
seconds: z.ZodOptional<z.ZodNumber>;
|
|
3027
|
+
}, z.core.$strip>], "kind">>>;
|
|
2787
3028
|
}, z.core.$strict>>>;
|
|
2788
3029
|
}, z.core.$strict>>;
|
|
2789
3030
|
}, z.core.$strict>;
|
|
@@ -2817,15 +3058,45 @@ export declare const NotebaseCreateInputSchema: z.ZodObject<{
|
|
|
2817
3058
|
value: z.ZodString;
|
|
2818
3059
|
color: z.ZodString;
|
|
2819
3060
|
}, z.core.$strip>>>;
|
|
3061
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3062
|
+
type: z.ZodLiteral<"cloze">;
|
|
2820
3063
|
}, z.core.$strip>], "type">;
|
|
2821
3064
|
}, z.core.$strict>>;
|
|
2822
3065
|
initialRow: z.ZodOptional<z.ZodObject<{
|
|
2823
3066
|
id: z.ZodOptional<z.ZodUUID>;
|
|
2824
3067
|
cells: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3068
|
+
origin: z.ZodCatch<z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3069
|
+
kind: z.ZodLiteral<"webpage">;
|
|
3070
|
+
url: z.ZodString;
|
|
3071
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3072
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3073
|
+
kind: z.ZodLiteral<"ebook">;
|
|
3074
|
+
ebookId: z.ZodUUID;
|
|
3075
|
+
cfi: z.ZodOptional<z.ZodString>;
|
|
3076
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3077
|
+
kind: z.ZodLiteral<"video">;
|
|
3078
|
+
url: z.ZodString;
|
|
3079
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3080
|
+
seconds: z.ZodOptional<z.ZodNumber>;
|
|
3081
|
+
}, z.core.$strip>], "kind">>>;
|
|
2825
3082
|
}, z.core.$strict>>;
|
|
2826
3083
|
initialRows: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2827
3084
|
id: z.ZodOptional<z.ZodUUID>;
|
|
2828
3085
|
cells: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3086
|
+
origin: z.ZodCatch<z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3087
|
+
kind: z.ZodLiteral<"webpage">;
|
|
3088
|
+
url: z.ZodString;
|
|
3089
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3090
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3091
|
+
kind: z.ZodLiteral<"ebook">;
|
|
3092
|
+
ebookId: z.ZodUUID;
|
|
3093
|
+
cfi: z.ZodOptional<z.ZodString>;
|
|
3094
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3095
|
+
kind: z.ZodLiteral<"video">;
|
|
3096
|
+
url: z.ZodString;
|
|
3097
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3098
|
+
seconds: z.ZodOptional<z.ZodNumber>;
|
|
3099
|
+
}, z.core.$strip>], "kind">>>;
|
|
2829
3100
|
}, z.core.$strict>>>;
|
|
2830
3101
|
}, z.core.$strict>>;
|
|
2831
3102
|
}, z.core.$strict>;
|
|
@@ -2998,6 +3269,8 @@ export declare const NotebaseGetOutputSchema: z.ZodObject<{
|
|
|
2998
3269
|
value: z.ZodString;
|
|
2999
3270
|
color: z.ZodString;
|
|
3000
3271
|
}, z.core.$strip>>>;
|
|
3272
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3273
|
+
type: z.ZodLiteral<"cloze">;
|
|
3001
3274
|
}, z.core.$strip>], "type">;
|
|
3002
3275
|
position: z.ZodNumber;
|
|
3003
3276
|
isPrimary: z.ZodBoolean;
|
|
@@ -3011,6 +3284,32 @@ export declare const NotebaseGetOutputSchema: z.ZodObject<{
|
|
|
3011
3284
|
notebaseId: z.ZodString;
|
|
3012
3285
|
cells: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3013
3286
|
position: z.ZodNumber;
|
|
3287
|
+
origin: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3288
|
+
kind: z.ZodLiteral<"webpage">;
|
|
3289
|
+
url: z.ZodString;
|
|
3290
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3291
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3292
|
+
kind: z.ZodLiteral<"ebook">;
|
|
3293
|
+
ebookId: z.ZodOptional<z.ZodString>;
|
|
3294
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3295
|
+
cfi: z.ZodOptional<z.ZodString>;
|
|
3296
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3297
|
+
kind: z.ZodLiteral<"video">;
|
|
3298
|
+
url: z.ZodString;
|
|
3299
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3300
|
+
seconds: z.ZodOptional<z.ZodNumber>;
|
|
3301
|
+
}, z.core.$strip>], "kind">>>;
|
|
3302
|
+
createdVia: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3303
|
+
client: z.ZodEnum<{
|
|
3304
|
+
extension: "extension";
|
|
3305
|
+
mcp: "mcp";
|
|
3306
|
+
mobile: "mobile";
|
|
3307
|
+
unknown: "unknown";
|
|
3308
|
+
web: "web";
|
|
3309
|
+
}>;
|
|
3310
|
+
mcpClientId: z.ZodOptional<z.ZodString>;
|
|
3311
|
+
mcpClientName: z.ZodOptional<z.ZodString>;
|
|
3312
|
+
}, z.core.$strip>>>;
|
|
3014
3313
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
3015
3314
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
3016
3315
|
}, z.core.$strip>>;
|
|
@@ -3066,6 +3365,8 @@ export declare const NotebaseGetSchemaOutputSchema: z.ZodObject<{
|
|
|
3066
3365
|
value: z.ZodString;
|
|
3067
3366
|
color: z.ZodString;
|
|
3068
3367
|
}, z.core.$strip>>>;
|
|
3368
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3369
|
+
type: z.ZodLiteral<"cloze">;
|
|
3069
3370
|
}, z.core.$strip>], "type">;
|
|
3070
3371
|
position: z.ZodNumber;
|
|
3071
3372
|
isPrimary: z.ZodBoolean;
|
|
@@ -3076,8 +3377,6 @@ export declare const NotebaseGetSchemaOutputSchema: z.ZodObject<{
|
|
|
3076
3377
|
}, z.core.$strip>>;
|
|
3077
3378
|
}, z.core.$strip>;
|
|
3078
3379
|
export type NotebaseGetSchemaOutput = z.infer<typeof NotebaseGetSchemaOutputSchema>;
|
|
3079
|
-
//#endregion
|
|
3080
|
-
//#region src/schemas/notebase-column.d.ts
|
|
3081
3380
|
export declare const notebaseColumnWidthSchema: z.ZodNumber;
|
|
3082
3381
|
export declare const notebaseColumnSchema: z.ZodObject<{
|
|
3083
3382
|
id: z.ZodString;
|
|
@@ -3105,6 +3404,8 @@ export declare const notebaseColumnSchema: z.ZodObject<{
|
|
|
3105
3404
|
value: z.ZodString;
|
|
3106
3405
|
color: z.ZodString;
|
|
3107
3406
|
}, z.core.$strip>>>;
|
|
3407
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3408
|
+
type: z.ZodLiteral<"cloze">;
|
|
3108
3409
|
}, z.core.$strip>], "type">;
|
|
3109
3410
|
position: z.ZodNumber;
|
|
3110
3411
|
isPrimary: z.ZodBoolean;
|
|
@@ -3139,6 +3440,8 @@ export declare const notebaseColumnCreateDataSchema: z.ZodObject<{
|
|
|
3139
3440
|
value: z.ZodString;
|
|
3140
3441
|
color: z.ZodString;
|
|
3141
3442
|
}, z.core.$strip>>>;
|
|
3443
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3444
|
+
type: z.ZodLiteral<"cloze">;
|
|
3142
3445
|
}, z.core.$strip>], "type">;
|
|
3143
3446
|
}, z.core.$strict>;
|
|
3144
3447
|
export type NotebaseColumnCreateData = z.infer<typeof notebaseColumnCreateDataSchema>;
|
|
@@ -3167,6 +3470,8 @@ export declare const notebaseColumnUpdateDataSchema: z.ZodObject<{
|
|
|
3167
3470
|
value: z.ZodString;
|
|
3168
3471
|
color: z.ZodString;
|
|
3169
3472
|
}, z.core.$strip>>>;
|
|
3473
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3474
|
+
type: z.ZodLiteral<"cloze">;
|
|
3170
3475
|
}, z.core.$strip>], "type">>;
|
|
3171
3476
|
width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3172
3477
|
wrap: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3199,6 +3504,8 @@ export declare const NotebaseColumnCreateInputSchema: z.ZodObject<{
|
|
|
3199
3504
|
value: z.ZodString;
|
|
3200
3505
|
color: z.ZodString;
|
|
3201
3506
|
}, z.core.$strip>>>;
|
|
3507
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3508
|
+
type: z.ZodLiteral<"cloze">;
|
|
3202
3509
|
}, z.core.$strip>], "type">;
|
|
3203
3510
|
}, z.core.$strict>;
|
|
3204
3511
|
}, z.core.$strip>;
|
|
@@ -3230,6 +3537,8 @@ export declare const NotebaseColumnCreateOutputSchema: z.ZodObject<{
|
|
|
3230
3537
|
value: z.ZodString;
|
|
3231
3538
|
color: z.ZodString;
|
|
3232
3539
|
}, z.core.$strip>>>;
|
|
3540
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3541
|
+
type: z.ZodLiteral<"cloze">;
|
|
3233
3542
|
}, z.core.$strip>], "type">;
|
|
3234
3543
|
position: z.ZodNumber;
|
|
3235
3544
|
isPrimary: z.ZodBoolean;
|
|
@@ -3268,6 +3577,8 @@ export declare const NotebaseColumnUpdateInputSchema: z.ZodObject<{
|
|
|
3268
3577
|
value: z.ZodString;
|
|
3269
3578
|
color: z.ZodString;
|
|
3270
3579
|
}, z.core.$strip>>>;
|
|
3580
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3581
|
+
type: z.ZodLiteral<"cloze">;
|
|
3271
3582
|
}, z.core.$strip>], "type">>;
|
|
3272
3583
|
width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3273
3584
|
wrap: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3301,6 +3612,8 @@ export declare const NotebaseColumnUpdateOutputSchema: z.ZodObject<{
|
|
|
3301
3612
|
value: z.ZodString;
|
|
3302
3613
|
color: z.ZodString;
|
|
3303
3614
|
}, z.core.$strip>>>;
|
|
3615
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3616
|
+
type: z.ZodLiteral<"cloze">;
|
|
3304
3617
|
}, z.core.$strip>], "type">;
|
|
3305
3618
|
position: z.ZodNumber;
|
|
3306
3619
|
isPrimary: z.ZodBoolean;
|
|
@@ -3330,21 +3643,78 @@ export declare const NotebaseColumnReorderOutputSchema: z.ZodObject<{
|
|
|
3330
3643
|
txid: z.ZodNumber;
|
|
3331
3644
|
}, z.core.$strip>;
|
|
3332
3645
|
export type NotebaseColumnReorderOutput = z.infer<typeof NotebaseColumnReorderOutputSchema>;
|
|
3333
|
-
//#endregion
|
|
3334
|
-
//#region src/schemas/notebase-row.d.ts
|
|
3335
3646
|
export declare const notebaseRowCellsSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3336
3647
|
export declare const notebaseRowSchema: z.ZodObject<{
|
|
3337
3648
|
id: z.ZodString;
|
|
3338
3649
|
notebaseId: z.ZodString;
|
|
3339
3650
|
cells: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3340
3651
|
position: z.ZodNumber;
|
|
3652
|
+
origin: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3653
|
+
kind: z.ZodLiteral<"webpage">;
|
|
3654
|
+
url: z.ZodString;
|
|
3655
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3656
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3657
|
+
kind: z.ZodLiteral<"ebook">;
|
|
3658
|
+
ebookId: z.ZodOptional<z.ZodString>;
|
|
3659
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3660
|
+
cfi: z.ZodOptional<z.ZodString>;
|
|
3661
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3662
|
+
kind: z.ZodLiteral<"video">;
|
|
3663
|
+
url: z.ZodString;
|
|
3664
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3665
|
+
seconds: z.ZodOptional<z.ZodNumber>;
|
|
3666
|
+
}, z.core.$strip>], "kind">>>;
|
|
3667
|
+
createdVia: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3668
|
+
client: z.ZodEnum<{
|
|
3669
|
+
extension: "extension";
|
|
3670
|
+
mcp: "mcp";
|
|
3671
|
+
mobile: "mobile";
|
|
3672
|
+
unknown: "unknown";
|
|
3673
|
+
web: "web";
|
|
3674
|
+
}>;
|
|
3675
|
+
mcpClientId: z.ZodOptional<z.ZodString>;
|
|
3676
|
+
mcpClientName: z.ZodOptional<z.ZodString>;
|
|
3677
|
+
}, z.core.$strip>>>;
|
|
3341
3678
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
3342
3679
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
3343
3680
|
}, z.core.$strip>;
|
|
3344
3681
|
export type NotebaseRow = z.infer<typeof notebaseRowSchema>;
|
|
3682
|
+
/**
|
|
3683
|
+
* Where a new note's content came from; see `noteOriginInputSchema`. Optional
|
|
3684
|
+
* metadata never costs the note: an origin that does not parse is dropped and
|
|
3685
|
+
* the note is saved without one.
|
|
3686
|
+
*/
|
|
3687
|
+
export declare const notebaseRowOriginInputSchema: z.ZodCatch<z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3688
|
+
kind: z.ZodLiteral<"webpage">;
|
|
3689
|
+
url: z.ZodString;
|
|
3690
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3691
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3692
|
+
kind: z.ZodLiteral<"ebook">;
|
|
3693
|
+
ebookId: z.ZodUUID;
|
|
3694
|
+
cfi: z.ZodOptional<z.ZodString>;
|
|
3695
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3696
|
+
kind: z.ZodLiteral<"video">;
|
|
3697
|
+
url: z.ZodString;
|
|
3698
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3699
|
+
seconds: z.ZodOptional<z.ZodNumber>;
|
|
3700
|
+
}, z.core.$strip>], "kind">>>;
|
|
3345
3701
|
export declare const notebaseRowCreateDataSchema: z.ZodObject<{
|
|
3346
3702
|
id: z.ZodOptional<z.ZodUUID>;
|
|
3347
3703
|
cells: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3704
|
+
origin: z.ZodCatch<z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3705
|
+
kind: z.ZodLiteral<"webpage">;
|
|
3706
|
+
url: z.ZodString;
|
|
3707
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3708
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3709
|
+
kind: z.ZodLiteral<"ebook">;
|
|
3710
|
+
ebookId: z.ZodUUID;
|
|
3711
|
+
cfi: z.ZodOptional<z.ZodString>;
|
|
3712
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3713
|
+
kind: z.ZodLiteral<"video">;
|
|
3714
|
+
url: z.ZodString;
|
|
3715
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3716
|
+
seconds: z.ZodOptional<z.ZodNumber>;
|
|
3717
|
+
}, z.core.$strip>], "kind">>>;
|
|
3348
3718
|
}, z.core.$strict>;
|
|
3349
3719
|
export type NotebaseRowCreateData = z.infer<typeof notebaseRowCreateDataSchema>;
|
|
3350
3720
|
export declare const notebaseRowUpdateDataSchema: z.ZodObject<{
|
|
@@ -3357,6 +3727,20 @@ export declare const NotebaseRowCreateInputSchema: z.ZodObject<{
|
|
|
3357
3727
|
data: z.ZodObject<{
|
|
3358
3728
|
id: z.ZodOptional<z.ZodUUID>;
|
|
3359
3729
|
cells: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3730
|
+
origin: z.ZodCatch<z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3731
|
+
kind: z.ZodLiteral<"webpage">;
|
|
3732
|
+
url: z.ZodString;
|
|
3733
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3734
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3735
|
+
kind: z.ZodLiteral<"ebook">;
|
|
3736
|
+
ebookId: z.ZodUUID;
|
|
3737
|
+
cfi: z.ZodOptional<z.ZodString>;
|
|
3738
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3739
|
+
kind: z.ZodLiteral<"video">;
|
|
3740
|
+
url: z.ZodString;
|
|
3741
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3742
|
+
seconds: z.ZodOptional<z.ZodNumber>;
|
|
3743
|
+
}, z.core.$strip>], "kind">>>;
|
|
3360
3744
|
}, z.core.$strict>;
|
|
3361
3745
|
}, z.core.$strip>;
|
|
3362
3746
|
export type NotebaseRowCreateInput = z.infer<typeof NotebaseRowCreateInputSchema>;
|
|
@@ -3366,6 +3750,32 @@ export declare const NotebaseRowCreateOutputSchema: z.ZodObject<{
|
|
|
3366
3750
|
notebaseId: z.ZodString;
|
|
3367
3751
|
cells: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3368
3752
|
position: z.ZodNumber;
|
|
3753
|
+
origin: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3754
|
+
kind: z.ZodLiteral<"webpage">;
|
|
3755
|
+
url: z.ZodString;
|
|
3756
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3757
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3758
|
+
kind: z.ZodLiteral<"ebook">;
|
|
3759
|
+
ebookId: z.ZodOptional<z.ZodString>;
|
|
3760
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3761
|
+
cfi: z.ZodOptional<z.ZodString>;
|
|
3762
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3763
|
+
kind: z.ZodLiteral<"video">;
|
|
3764
|
+
url: z.ZodString;
|
|
3765
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3766
|
+
seconds: z.ZodOptional<z.ZodNumber>;
|
|
3767
|
+
}, z.core.$strip>], "kind">>>;
|
|
3768
|
+
createdVia: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3769
|
+
client: z.ZodEnum<{
|
|
3770
|
+
extension: "extension";
|
|
3771
|
+
mcp: "mcp";
|
|
3772
|
+
mobile: "mobile";
|
|
3773
|
+
unknown: "unknown";
|
|
3774
|
+
web: "web";
|
|
3775
|
+
}>;
|
|
3776
|
+
mcpClientId: z.ZodOptional<z.ZodString>;
|
|
3777
|
+
mcpClientName: z.ZodOptional<z.ZodString>;
|
|
3778
|
+
}, z.core.$strip>>>;
|
|
3369
3779
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
3370
3780
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
3371
3781
|
}, z.core.$strip>;
|
|
@@ -3378,6 +3788,20 @@ export declare const NotebaseRowCreateManyInputSchema: z.ZodObject<{
|
|
|
3378
3788
|
rows: z.ZodArray<z.ZodObject<{
|
|
3379
3789
|
id: z.ZodOptional<z.ZodUUID>;
|
|
3380
3790
|
cells: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3791
|
+
origin: z.ZodCatch<z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3792
|
+
kind: z.ZodLiteral<"webpage">;
|
|
3793
|
+
url: z.ZodString;
|
|
3794
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3795
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3796
|
+
kind: z.ZodLiteral<"ebook">;
|
|
3797
|
+
ebookId: z.ZodUUID;
|
|
3798
|
+
cfi: z.ZodOptional<z.ZodString>;
|
|
3799
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3800
|
+
kind: z.ZodLiteral<"video">;
|
|
3801
|
+
url: z.ZodString;
|
|
3802
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3803
|
+
seconds: z.ZodOptional<z.ZodNumber>;
|
|
3804
|
+
}, z.core.$strip>], "kind">>>;
|
|
3381
3805
|
}, z.core.$strict>>;
|
|
3382
3806
|
}, z.core.$strip>;
|
|
3383
3807
|
export type NotebaseRowCreateManyInput = z.infer<typeof NotebaseRowCreateManyInputSchema>;
|
|
@@ -3387,6 +3811,32 @@ export declare const NotebaseRowCreateManyOutputSchema: z.ZodObject<{
|
|
|
3387
3811
|
notebaseId: z.ZodString;
|
|
3388
3812
|
cells: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3389
3813
|
position: z.ZodNumber;
|
|
3814
|
+
origin: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3815
|
+
kind: z.ZodLiteral<"webpage">;
|
|
3816
|
+
url: z.ZodString;
|
|
3817
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3818
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3819
|
+
kind: z.ZodLiteral<"ebook">;
|
|
3820
|
+
ebookId: z.ZodOptional<z.ZodString>;
|
|
3821
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3822
|
+
cfi: z.ZodOptional<z.ZodString>;
|
|
3823
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3824
|
+
kind: z.ZodLiteral<"video">;
|
|
3825
|
+
url: z.ZodString;
|
|
3826
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3827
|
+
seconds: z.ZodOptional<z.ZodNumber>;
|
|
3828
|
+
}, z.core.$strip>], "kind">>>;
|
|
3829
|
+
createdVia: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3830
|
+
client: z.ZodEnum<{
|
|
3831
|
+
extension: "extension";
|
|
3832
|
+
mcp: "mcp";
|
|
3833
|
+
mobile: "mobile";
|
|
3834
|
+
unknown: "unknown";
|
|
3835
|
+
web: "web";
|
|
3836
|
+
}>;
|
|
3837
|
+
mcpClientId: z.ZodOptional<z.ZodString>;
|
|
3838
|
+
mcpClientName: z.ZodOptional<z.ZodString>;
|
|
3839
|
+
}, z.core.$strip>>>;
|
|
3390
3840
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
3391
3841
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
3392
3842
|
}, z.core.$strip>>;
|
|
@@ -3406,6 +3856,32 @@ export declare const NotebaseRowUpdateOutputSchema: z.ZodObject<{
|
|
|
3406
3856
|
notebaseId: z.ZodUUID;
|
|
3407
3857
|
cells: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3408
3858
|
position: z.ZodNumber;
|
|
3859
|
+
origin: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3860
|
+
kind: z.ZodLiteral<"webpage">;
|
|
3861
|
+
url: z.ZodString;
|
|
3862
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3863
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3864
|
+
kind: z.ZodLiteral<"ebook">;
|
|
3865
|
+
ebookId: z.ZodOptional<z.ZodString>;
|
|
3866
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3867
|
+
cfi: z.ZodOptional<z.ZodString>;
|
|
3868
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3869
|
+
kind: z.ZodLiteral<"video">;
|
|
3870
|
+
url: z.ZodString;
|
|
3871
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3872
|
+
seconds: z.ZodOptional<z.ZodNumber>;
|
|
3873
|
+
}, z.core.$strip>], "kind">>>;
|
|
3874
|
+
createdVia: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3875
|
+
client: z.ZodEnum<{
|
|
3876
|
+
extension: "extension";
|
|
3877
|
+
mcp: "mcp";
|
|
3878
|
+
mobile: "mobile";
|
|
3879
|
+
unknown: "unknown";
|
|
3880
|
+
web: "web";
|
|
3881
|
+
}>;
|
|
3882
|
+
mcpClientId: z.ZodOptional<z.ZodString>;
|
|
3883
|
+
mcpClientName: z.ZodOptional<z.ZodString>;
|
|
3884
|
+
}, z.core.$strip>>>;
|
|
3409
3885
|
createdAt: z.ZodDate;
|
|
3410
3886
|
updatedAt: z.ZodDate;
|
|
3411
3887
|
txid: z.ZodNumber;
|
|
@@ -3429,6 +3905,32 @@ export declare const NotebaseRowUpdateManyOutputSchema: z.ZodObject<{
|
|
|
3429
3905
|
notebaseId: z.ZodString;
|
|
3430
3906
|
cells: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3431
3907
|
position: z.ZodNumber;
|
|
3908
|
+
origin: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3909
|
+
kind: z.ZodLiteral<"webpage">;
|
|
3910
|
+
url: z.ZodString;
|
|
3911
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3912
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3913
|
+
kind: z.ZodLiteral<"ebook">;
|
|
3914
|
+
ebookId: z.ZodOptional<z.ZodString>;
|
|
3915
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3916
|
+
cfi: z.ZodOptional<z.ZodString>;
|
|
3917
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3918
|
+
kind: z.ZodLiteral<"video">;
|
|
3919
|
+
url: z.ZodString;
|
|
3920
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3921
|
+
seconds: z.ZodOptional<z.ZodNumber>;
|
|
3922
|
+
}, z.core.$strip>], "kind">>>;
|
|
3923
|
+
createdVia: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3924
|
+
client: z.ZodEnum<{
|
|
3925
|
+
extension: "extension";
|
|
3926
|
+
mcp: "mcp";
|
|
3927
|
+
mobile: "mobile";
|
|
3928
|
+
unknown: "unknown";
|
|
3929
|
+
web: "web";
|
|
3930
|
+
}>;
|
|
3931
|
+
mcpClientId: z.ZodOptional<z.ZodString>;
|
|
3932
|
+
mcpClientName: z.ZodOptional<z.ZodString>;
|
|
3933
|
+
}, z.core.$strip>>>;
|
|
3432
3934
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
3433
3935
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
3434
3936
|
}, z.core.$strip>>;
|
|
@@ -3475,6 +3977,32 @@ export declare const NotebaseRowListOutputSchema: z.ZodObject<{
|
|
|
3475
3977
|
notebaseId: z.ZodString;
|
|
3476
3978
|
cells: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3477
3979
|
position: z.ZodNumber;
|
|
3980
|
+
origin: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3981
|
+
kind: z.ZodLiteral<"webpage">;
|
|
3982
|
+
url: z.ZodString;
|
|
3983
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3984
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3985
|
+
kind: z.ZodLiteral<"ebook">;
|
|
3986
|
+
ebookId: z.ZodOptional<z.ZodString>;
|
|
3987
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3988
|
+
cfi: z.ZodOptional<z.ZodString>;
|
|
3989
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3990
|
+
kind: z.ZodLiteral<"video">;
|
|
3991
|
+
url: z.ZodString;
|
|
3992
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3993
|
+
seconds: z.ZodOptional<z.ZodNumber>;
|
|
3994
|
+
}, z.core.$strip>], "kind">>>;
|
|
3995
|
+
createdVia: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3996
|
+
client: z.ZodEnum<{
|
|
3997
|
+
extension: "extension";
|
|
3998
|
+
mcp: "mcp";
|
|
3999
|
+
mobile: "mobile";
|
|
4000
|
+
unknown: "unknown";
|
|
4001
|
+
web: "web";
|
|
4002
|
+
}>;
|
|
4003
|
+
mcpClientId: z.ZodOptional<z.ZodString>;
|
|
4004
|
+
mcpClientName: z.ZodOptional<z.ZodString>;
|
|
4005
|
+
}, z.core.$strip>>>;
|
|
3478
4006
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
3479
4007
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
3480
4008
|
}, z.core.$strip>>;
|
|
@@ -3488,11 +4016,35 @@ export declare const NotebaseRowGetOutputSchema: z.ZodObject<{
|
|
|
3488
4016
|
notebaseId: z.ZodString;
|
|
3489
4017
|
cells: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3490
4018
|
position: z.ZodNumber;
|
|
4019
|
+
origin: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4020
|
+
kind: z.ZodLiteral<"webpage">;
|
|
4021
|
+
url: z.ZodString;
|
|
4022
|
+
title: z.ZodOptional<z.ZodString>;
|
|
4023
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4024
|
+
kind: z.ZodLiteral<"ebook">;
|
|
4025
|
+
ebookId: z.ZodOptional<z.ZodString>;
|
|
4026
|
+
title: z.ZodOptional<z.ZodString>;
|
|
4027
|
+
cfi: z.ZodOptional<z.ZodString>;
|
|
4028
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4029
|
+
kind: z.ZodLiteral<"video">;
|
|
4030
|
+
url: z.ZodString;
|
|
4031
|
+
title: z.ZodOptional<z.ZodString>;
|
|
4032
|
+
seconds: z.ZodOptional<z.ZodNumber>;
|
|
4033
|
+
}, z.core.$strip>], "kind">>>;
|
|
4034
|
+
createdVia: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4035
|
+
client: z.ZodEnum<{
|
|
4036
|
+
extension: "extension";
|
|
4037
|
+
mcp: "mcp";
|
|
4038
|
+
mobile: "mobile";
|
|
4039
|
+
unknown: "unknown";
|
|
4040
|
+
web: "web";
|
|
4041
|
+
}>;
|
|
4042
|
+
mcpClientId: z.ZodOptional<z.ZodString>;
|
|
4043
|
+
mcpClientName: z.ZodOptional<z.ZodString>;
|
|
4044
|
+
}, z.core.$strip>>>;
|
|
3491
4045
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
3492
4046
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
3493
4047
|
}, z.core.$strip>;
|
|
3494
|
-
//#endregion
|
|
3495
|
-
//#region src/schemas/notebase-stats.d.ts
|
|
3496
4048
|
export declare const notebaseActivityStatsItemSchema: z.ZodObject<{
|
|
3497
4049
|
date: z.ZodISODate;
|
|
3498
4050
|
notes: z.ZodNumber;
|
|
@@ -3518,8 +4070,6 @@ export declare const notebaseRowGrowthStatsOutputSchema: z.ZodObject<{
|
|
|
3518
4070
|
}, z.core.$strict>>;
|
|
3519
4071
|
}, z.core.$strict>;
|
|
3520
4072
|
export type NotebaseRowGrowthStatsOutput = z.infer<typeof notebaseRowGrowthStatsOutputSchema>;
|
|
3521
|
-
//#endregion
|
|
3522
|
-
//#region src/schemas/notebase-view.d.ts
|
|
3523
4073
|
export declare const notebaseViewTypeSchema: z.ZodEnum<{
|
|
3524
4074
|
gallery: "gallery";
|
|
3525
4075
|
kanban: "kanban";
|
|
@@ -3632,8 +4182,6 @@ export declare const notebaseViewSchema: z.ZodObject<{
|
|
|
3632
4182
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
3633
4183
|
}, z.core.$strip>;
|
|
3634
4184
|
export type NotebaseView = z.infer<typeof notebaseViewSchema>;
|
|
3635
|
-
//#endregion
|
|
3636
|
-
//#region src/schemas/pdf-translation.d.ts
|
|
3637
4185
|
export declare const pdfTranslationJobStatusSchema: z.ZodEnum<{
|
|
3638
4186
|
cancel_requested: "cancel_requested";
|
|
3639
4187
|
cancelled: "cancelled";
|
|
@@ -3941,8 +4489,6 @@ export declare const PdfTranslationUploadErrorDataSchema: z.ZodObject<{
|
|
|
3941
4489
|
jobId: z.ZodOptional<z.ZodUUID>;
|
|
3942
4490
|
}, z.core.$strict>;
|
|
3943
4491
|
export type PdfTranslationUploadErrorData = z.infer<typeof PdfTranslationUploadErrorDataSchema>;
|
|
3944
|
-
//#endregion
|
|
3945
|
-
//#region src/schemas/speech.d.ts
|
|
3946
4492
|
/** The longest text one request reads aloud. */
|
|
3947
4493
|
export declare const SPEECH_TEXT_MAX_LENGTH = 500;
|
|
3948
4494
|
/**
|
|
@@ -5115,8 +5661,6 @@ export declare const speechSynthesizeOutputSchema: z.ZodObject<{
|
|
|
5115
5661
|
expiresAt: z.ZodCoercedDate<unknown>;
|
|
5116
5662
|
}, z.core.$strict>;
|
|
5117
5663
|
export type SpeechSynthesizeOutput = z.infer<typeof speechSynthesizeOutputSchema>;
|
|
5118
|
-
//#endregion
|
|
5119
|
-
//#region src/schemas/timezone.d.ts
|
|
5120
5664
|
export declare const timezoneSchema: z.ZodString;
|
|
5121
5665
|
export type Timezone = z.infer<typeof timezoneSchema>;
|
|
5122
5666
|
/**
|
|
@@ -5127,8 +5671,6 @@ export type Timezone = z.infer<typeof timezoneSchema>;
|
|
|
5127
5671
|
* opposite sign and would put the call's days on the wrong side of UTC.
|
|
5128
5672
|
*/
|
|
5129
5673
|
export declare const canonicalTimezoneSchema: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
5130
|
-
//#endregion
|
|
5131
|
-
//#region src/schemas/srs.d.ts
|
|
5132
5674
|
export declare const stepSchema: z.ZodTemplateLiteral<`${number}d` | `${number}h` | `${number}m`>;
|
|
5133
5675
|
export type Step = z.infer<typeof stepSchema>;
|
|
5134
5676
|
export declare const SRS_REVIEW_CLIENT_ID_NAMESPACE = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
|
|
@@ -5424,7 +5966,7 @@ export declare const srsReviewOutputSchema: z.ZodObject<{
|
|
|
5424
5966
|
}, z.core.$strict>;
|
|
5425
5967
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
5426
5968
|
}, z.core.$strip>;
|
|
5427
|
-
txid: z.ZodNumber
|
|
5969
|
+
txid: z.ZodNullable<z.ZodNumber>;
|
|
5428
5970
|
created: z.ZodBoolean;
|
|
5429
5971
|
}, z.core.$strip>;
|
|
5430
5972
|
export type SrsReviewOutput = z.infer<typeof srsReviewOutputSchema>;
|
|
@@ -5808,8 +6350,6 @@ export declare const srsApplyPostponeOutputSchema: z.ZodObject<{
|
|
|
5808
6350
|
reviewsPerDay: z.ZodNumber;
|
|
5809
6351
|
}, z.core.$strip>;
|
|
5810
6352
|
export type SrsApplyPostponeOutput = z.infer<typeof srsApplyPostponeOutputSchema>;
|
|
5811
|
-
//#endregion
|
|
5812
|
-
//#region src/schemas/srs-stats.d.ts
|
|
5813
6353
|
export declare const srsActivityStatsItemSchema: z.ZodObject<{
|
|
5814
6354
|
date: z.ZodISODate;
|
|
5815
6355
|
answers: z.ZodNumber;
|
|
@@ -5838,8 +6378,6 @@ export declare const srsMemoryGrowthStatsOutputSchema: z.ZodObject<{
|
|
|
5838
6378
|
}, z.core.$strict>>;
|
|
5839
6379
|
}, z.core.$strict>;
|
|
5840
6380
|
export type SrsMemoryGrowthStatsOutput = z.infer<typeof srsMemoryGrowthStatsOutputSchema>;
|
|
5841
|
-
//#endregion
|
|
5842
|
-
//#region src/schemas/stats.d.ts
|
|
5843
6381
|
export declare const statsInputSchema: z.ZodObject<{
|
|
5844
6382
|
notebaseIds: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodUUID>, z.ZodTransform<string[], string[]>>>;
|
|
5845
6383
|
from: z.ZodOptional<z.ZodISODate>;
|
|
@@ -5864,8 +6402,6 @@ export declare const activityStatsOutputSchema: z.ZodObject<{
|
|
|
5864
6402
|
}, z.core.$strict>;
|
|
5865
6403
|
}, z.core.$strict>;
|
|
5866
6404
|
export type ActivityStatsOutput = z.infer<typeof activityStatsOutputSchema>;
|
|
5867
|
-
//#endregion
|
|
5868
|
-
//#region src/schemas/user.d.ts
|
|
5869
6405
|
export declare const userEnsureTimezoneInputSchema: z.ZodObject<{
|
|
5870
6406
|
timezone: z.ZodString;
|
|
5871
6407
|
}, z.core.$strict>;
|
|
@@ -5940,8 +6476,6 @@ export declare const userUpdateLocaleOutputSchema: z.ZodObject<{
|
|
|
5940
6476
|
}>;
|
|
5941
6477
|
}, z.core.$strict>;
|
|
5942
6478
|
export type UserUpdateLocaleOutput = z.infer<typeof userUpdateLocaleOutputSchema>;
|
|
5943
|
-
//#endregion
|
|
5944
|
-
//#region src/schemas/video-transcript.d.ts
|
|
5945
6479
|
export declare const videoTranscriptStatusSchema: z.ZodEnum<{
|
|
5946
6480
|
completed: "completed";
|
|
5947
6481
|
failed: "failed";
|
|
@@ -6015,8 +6549,208 @@ export declare const videoTranscriptUsageSchema: z.ZodObject<{
|
|
|
6015
6549
|
}, z.core.$strip>>;
|
|
6016
6550
|
}, z.core.$strip>;
|
|
6017
6551
|
export type VideoTranscriptUsage = z.infer<typeof videoTranscriptUsageSchema>;
|
|
6018
|
-
|
|
6019
|
-
|
|
6552
|
+
/** The shapes the web app syncs, by their names in `@repo/electric-contract`. */
|
|
6553
|
+
export declare const webSyncShapeSchema: z.ZodEnum<{
|
|
6554
|
+
cardTemplates: "cardTemplates";
|
|
6555
|
+
cards: "cards";
|
|
6556
|
+
mediaAssets: "mediaAssets";
|
|
6557
|
+
notebaseColumns: "notebaseColumns";
|
|
6558
|
+
notebaseRows: "notebaseRows";
|
|
6559
|
+
notebases: "notebases";
|
|
6560
|
+
revlogs: "revlogs";
|
|
6561
|
+
}>;
|
|
6562
|
+
export type WebSyncShape = z.infer<typeof webSyncShapeSchema>;
|
|
6563
|
+
/** The write whose change the page waited to see come back over Electric. */
|
|
6564
|
+
export declare const webSyncOperationSchema: z.ZodEnum<{
|
|
6565
|
+
bury: "bury";
|
|
6566
|
+
cardStatus: "cardStatus";
|
|
6567
|
+
createTemplate: "createTemplate";
|
|
6568
|
+
delete: "delete";
|
|
6569
|
+
deleteCard: "deleteCard";
|
|
6570
|
+
deleteNote: "deleteNote";
|
|
6571
|
+
insert: "insert";
|
|
6572
|
+
review: "review";
|
|
6573
|
+
reviewReplay: "reviewReplay";
|
|
6574
|
+
setSleep: "setSleep";
|
|
6575
|
+
srsSettings: "srsSettings";
|
|
6576
|
+
suspend: "suspend";
|
|
6577
|
+
undo: "undo";
|
|
6578
|
+
update: "update";
|
|
6579
|
+
updateTemplate: "updateTemplate";
|
|
6580
|
+
}>;
|
|
6581
|
+
export type WebSyncOperation = z.infer<typeof webSyncOperationSchema>;
|
|
6582
|
+
/** How the shape that lagged was receiving live changes. */
|
|
6583
|
+
export declare const webSyncTransportSchema: z.ZodEnum<{
|
|
6584
|
+
longPoll: "longPoll";
|
|
6585
|
+
sse: "sse";
|
|
6586
|
+
}>;
|
|
6587
|
+
export type WebSyncTransport = z.infer<typeof webSyncTransportSchema>;
|
|
6588
|
+
/**
|
|
6589
|
+
* A write wait is only reported once its first wait ran out: `recovered` when
|
|
6590
|
+
* reconnecting the lagging shapes brought the change, `failed` when the page
|
|
6591
|
+
* gave up on it.
|
|
6592
|
+
*/
|
|
6593
|
+
export declare const webSyncWriteOutcomeSchema: z.ZodEnum<{
|
|
6594
|
+
failed: "failed";
|
|
6595
|
+
recovered: "recovered";
|
|
6596
|
+
}>;
|
|
6597
|
+
export type WebSyncWriteOutcome = z.infer<typeof webSyncWriteOutcomeSchema>;
|
|
6598
|
+
export declare const webSyncStreamErrorTypeSchema: z.ZodEnum<{
|
|
6599
|
+
badRequest: "badRequest";
|
|
6600
|
+
clientError: "clientError";
|
|
6601
|
+
forbidden: "forbidden";
|
|
6602
|
+
missingHeaders: "missingHeaders";
|
|
6603
|
+
unauthorized: "unauthorized";
|
|
6604
|
+
unexpected: "unexpected";
|
|
6605
|
+
}>;
|
|
6606
|
+
export type WebSyncStreamErrorType = z.infer<typeof webSyncStreamErrorTypeSchema>;
|
|
6607
|
+
/** `initial` before the shape first loaded, when the page shows the error at once. */
|
|
6608
|
+
export declare const webSyncStreamPhaseSchema: z.ZodEnum<{
|
|
6609
|
+
initial: "initial";
|
|
6610
|
+
live: "live";
|
|
6611
|
+
}>;
|
|
6612
|
+
export type WebSyncStreamPhase = z.infer<typeof webSyncStreamPhaseSchema>;
|
|
6613
|
+
export declare const webSyncPageSchema: z.ZodEnum<{
|
|
6614
|
+
reviewCombined: "reviewCombined";
|
|
6615
|
+
reviewNotebase: "reviewNotebase";
|
|
6616
|
+
}>;
|
|
6617
|
+
export type WebSyncPage = z.infer<typeof webSyncPageSchema>;
|
|
6618
|
+
export declare const webSyncUnavailableReasonSchema: z.ZodEnum<{
|
|
6619
|
+
notebaseGone: "notebaseGone";
|
|
6620
|
+
streamFailed: "streamFailed";
|
|
6621
|
+
syncTimeout: "syncTimeout";
|
|
6622
|
+
}>;
|
|
6623
|
+
export type WebSyncUnavailableReason = z.infer<typeof webSyncUnavailableReasonSchema>;
|
|
6624
|
+
export declare const webSyncEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
6625
|
+
type: z.ZodLiteral<"writeWait">;
|
|
6626
|
+
operation: z.ZodEnum<{
|
|
6627
|
+
bury: "bury";
|
|
6628
|
+
cardStatus: "cardStatus";
|
|
6629
|
+
createTemplate: "createTemplate";
|
|
6630
|
+
delete: "delete";
|
|
6631
|
+
deleteCard: "deleteCard";
|
|
6632
|
+
deleteNote: "deleteNote";
|
|
6633
|
+
insert: "insert";
|
|
6634
|
+
review: "review";
|
|
6635
|
+
reviewReplay: "reviewReplay";
|
|
6636
|
+
setSleep: "setSleep";
|
|
6637
|
+
srsSettings: "srsSettings";
|
|
6638
|
+
suspend: "suspend";
|
|
6639
|
+
undo: "undo";
|
|
6640
|
+
update: "update";
|
|
6641
|
+
updateTemplate: "updateTemplate";
|
|
6642
|
+
}>;
|
|
6643
|
+
outcome: z.ZodEnum<{
|
|
6644
|
+
failed: "failed";
|
|
6645
|
+
recovered: "recovered";
|
|
6646
|
+
}>;
|
|
6647
|
+
transport: z.ZodEnum<{
|
|
6648
|
+
longPoll: "longPoll";
|
|
6649
|
+
sse: "sse";
|
|
6650
|
+
}>;
|
|
6651
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
6652
|
+
type: z.ZodLiteral<"streamError">;
|
|
6653
|
+
shape: z.ZodEnum<{
|
|
6654
|
+
cardTemplates: "cardTemplates";
|
|
6655
|
+
cards: "cards";
|
|
6656
|
+
mediaAssets: "mediaAssets";
|
|
6657
|
+
notebaseColumns: "notebaseColumns";
|
|
6658
|
+
notebaseRows: "notebaseRows";
|
|
6659
|
+
notebases: "notebases";
|
|
6660
|
+
revlogs: "revlogs";
|
|
6661
|
+
}>;
|
|
6662
|
+
errorType: z.ZodEnum<{
|
|
6663
|
+
badRequest: "badRequest";
|
|
6664
|
+
clientError: "clientError";
|
|
6665
|
+
forbidden: "forbidden";
|
|
6666
|
+
missingHeaders: "missingHeaders";
|
|
6667
|
+
unauthorized: "unauthorized";
|
|
6668
|
+
unexpected: "unexpected";
|
|
6669
|
+
}>;
|
|
6670
|
+
phase: z.ZodEnum<{
|
|
6671
|
+
initial: "initial";
|
|
6672
|
+
live: "live";
|
|
6673
|
+
}>;
|
|
6674
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
6675
|
+
type: z.ZodLiteral<"unavailable">;
|
|
6676
|
+
page: z.ZodEnum<{
|
|
6677
|
+
reviewCombined: "reviewCombined";
|
|
6678
|
+
reviewNotebase: "reviewNotebase";
|
|
6679
|
+
}>;
|
|
6680
|
+
reason: z.ZodEnum<{
|
|
6681
|
+
notebaseGone: "notebaseGone";
|
|
6682
|
+
streamFailed: "streamFailed";
|
|
6683
|
+
syncTimeout: "syncTimeout";
|
|
6684
|
+
}>;
|
|
6685
|
+
}, z.core.$strict>], "type">;
|
|
6686
|
+
export type WebSyncEvent = z.infer<typeof webSyncEventSchema>;
|
|
6687
|
+
/** A page sends what happened within a second or so as one batch. */
|
|
6688
|
+
export declare const WEB_SYNC_REPORT_MAX_EVENTS = 20;
|
|
6689
|
+
export declare const reportWebSyncInputSchema: z.ZodObject<{
|
|
6690
|
+
events: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
6691
|
+
type: z.ZodLiteral<"writeWait">;
|
|
6692
|
+
operation: z.ZodEnum<{
|
|
6693
|
+
bury: "bury";
|
|
6694
|
+
cardStatus: "cardStatus";
|
|
6695
|
+
createTemplate: "createTemplate";
|
|
6696
|
+
delete: "delete";
|
|
6697
|
+
deleteCard: "deleteCard";
|
|
6698
|
+
deleteNote: "deleteNote";
|
|
6699
|
+
insert: "insert";
|
|
6700
|
+
review: "review";
|
|
6701
|
+
reviewReplay: "reviewReplay";
|
|
6702
|
+
setSleep: "setSleep";
|
|
6703
|
+
srsSettings: "srsSettings";
|
|
6704
|
+
suspend: "suspend";
|
|
6705
|
+
undo: "undo";
|
|
6706
|
+
update: "update";
|
|
6707
|
+
updateTemplate: "updateTemplate";
|
|
6708
|
+
}>;
|
|
6709
|
+
outcome: z.ZodEnum<{
|
|
6710
|
+
failed: "failed";
|
|
6711
|
+
recovered: "recovered";
|
|
6712
|
+
}>;
|
|
6713
|
+
transport: z.ZodEnum<{
|
|
6714
|
+
longPoll: "longPoll";
|
|
6715
|
+
sse: "sse";
|
|
6716
|
+
}>;
|
|
6717
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
6718
|
+
type: z.ZodLiteral<"streamError">;
|
|
6719
|
+
shape: z.ZodEnum<{
|
|
6720
|
+
cardTemplates: "cardTemplates";
|
|
6721
|
+
cards: "cards";
|
|
6722
|
+
mediaAssets: "mediaAssets";
|
|
6723
|
+
notebaseColumns: "notebaseColumns";
|
|
6724
|
+
notebaseRows: "notebaseRows";
|
|
6725
|
+
notebases: "notebases";
|
|
6726
|
+
revlogs: "revlogs";
|
|
6727
|
+
}>;
|
|
6728
|
+
errorType: z.ZodEnum<{
|
|
6729
|
+
badRequest: "badRequest";
|
|
6730
|
+
clientError: "clientError";
|
|
6731
|
+
forbidden: "forbidden";
|
|
6732
|
+
missingHeaders: "missingHeaders";
|
|
6733
|
+
unauthorized: "unauthorized";
|
|
6734
|
+
unexpected: "unexpected";
|
|
6735
|
+
}>;
|
|
6736
|
+
phase: z.ZodEnum<{
|
|
6737
|
+
initial: "initial";
|
|
6738
|
+
live: "live";
|
|
6739
|
+
}>;
|
|
6740
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
6741
|
+
type: z.ZodLiteral<"unavailable">;
|
|
6742
|
+
page: z.ZodEnum<{
|
|
6743
|
+
reviewCombined: "reviewCombined";
|
|
6744
|
+
reviewNotebase: "reviewNotebase";
|
|
6745
|
+
}>;
|
|
6746
|
+
reason: z.ZodEnum<{
|
|
6747
|
+
notebaseGone: "notebaseGone";
|
|
6748
|
+
streamFailed: "streamFailed";
|
|
6749
|
+
syncTimeout: "syncTimeout";
|
|
6750
|
+
}>;
|
|
6751
|
+
}, z.core.$strict>], "type">>;
|
|
6752
|
+
}, z.core.$strict>;
|
|
6753
|
+
export type ReportWebSyncInput = z.infer<typeof reportWebSyncInputSchema>;
|
|
6020
6754
|
export declare const paginationShape: {
|
|
6021
6755
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
6022
6756
|
offset: z.ZodOptional<z.ZodNumber>;
|
|
@@ -6025,15 +6759,11 @@ export declare function pageSchema<T extends z.ZodType>(itemSchema: T): z.ZodObj
|
|
|
6025
6759
|
items: z.ZodArray<T>;
|
|
6026
6760
|
hasMore: z.ZodBoolean;
|
|
6027
6761
|
}, z.core.$strip>;
|
|
6028
|
-
//#endregion
|
|
6029
|
-
//#region src/schemas/resource-mutation.d.ts
|
|
6030
6762
|
export declare const expectedUpdatedAtSchema: z.ZodISODateTime;
|
|
6031
6763
|
export declare const deletionResultSchema: z.ZodObject<{
|
|
6032
6764
|
id: z.ZodUUID;
|
|
6033
6765
|
txid: z.ZodNumber;
|
|
6034
6766
|
}, z.core.$strip>;
|
|
6035
|
-
//#endregion
|
|
6036
|
-
//#region src/index.d.ts
|
|
6037
6767
|
export declare const contract: {
|
|
6038
6768
|
billing: {
|
|
6039
6769
|
status: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodObject<{
|
|
@@ -6204,6 +6934,13 @@ export declare const contract: {
|
|
|
6204
6934
|
}, import("zod/v4/core").$strict>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "BILLING_CHANGE_SCHEDULED" | "BILLING_CHECKOUT_CONFLICT" | "BILLING_CUSTOMER_NOT_FOUND" | "BILLING_NOT_CONFIGURED" | "BILLING_PASS_ACTIVE">>, Record<never, never>>;
|
|
6205
6935
|
};
|
|
6206
6936
|
card: {
|
|
6937
|
+
delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
6938
|
+
id: import("zod").ZodUUID;
|
|
6939
|
+
expectedVariantKey: import("zod").ZodString;
|
|
6940
|
+
expectedRowUpdatedAt: import("zod").ZodISODateTime;
|
|
6941
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
6942
|
+
txid: import("zod").ZodNumber;
|
|
6943
|
+
}, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "CARD_DELETE_UNSUPPORTED" | "CARD_NOT_FOUND" | "CELL_VALIDATION_FAILED" | "NOTEBASE_NOT_FOUND" | "RESOURCE_UPDATE_CONFLICT">>, Record<never, never>>;
|
|
6207
6944
|
list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
6208
6945
|
limit: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
6209
6946
|
offset: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
@@ -6573,7 +7310,7 @@ export declare const contract: {
|
|
|
6573
7310
|
count: import("zod").ZodNumber;
|
|
6574
7311
|
limit: import("zod").ZodNumber;
|
|
6575
7312
|
}, import("zod/v4/core").$strict>;
|
|
6576
|
-
}, import("zod/v4/core").$strict>,
|
|
7313
|
+
}, import("zod/v4/core").$strict>, Record<never, never>, Record<never, never>>;
|
|
6577
7314
|
get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
6578
7315
|
id: import("zod").ZodUUID;
|
|
6579
7316
|
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
@@ -6594,7 +7331,7 @@ export declare const contract: {
|
|
|
6594
7331
|
updatedAt: import("zod").ZodCoercedDate<unknown>;
|
|
6595
7332
|
progressCfi: import("zod").ZodNullable<import("zod").ZodString>;
|
|
6596
7333
|
}, import("zod/v4/core").$strict>;
|
|
6597
|
-
}, import("zod/v4/core").$strict>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "
|
|
7334
|
+
}, import("zod/v4/core").$strict>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "EBOOK_NOT_FOUND">>, Record<never, never>>;
|
|
6598
7335
|
requestUpload: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
6599
7336
|
title: import("zod").ZodString;
|
|
6600
7337
|
author: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -6608,6 +7345,7 @@ export declare const contract: {
|
|
|
6608
7345
|
}>;
|
|
6609
7346
|
byteSize: import("zod").ZodNumber;
|
|
6610
7347
|
}, import("zod/v4/core").$strict>>;
|
|
7348
|
+
uploadKey: import("zod").ZodOptional<import("zod").ZodUUID>;
|
|
6611
7349
|
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
6612
7350
|
ebookId: import("zod").ZodUUID;
|
|
6613
7351
|
upload: import("zod").ZodObject<{
|
|
@@ -6619,7 +7357,7 @@ export declare const contract: {
|
|
|
6619
7357
|
headers: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
|
|
6620
7358
|
}, import("zod/v4/core").$strict>>;
|
|
6621
7359
|
expiresAt: import("zod").ZodCoercedDate<unknown>;
|
|
6622
|
-
}, import("zod/v4/core").$strict>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "
|
|
7360
|
+
}, import("zod/v4/core").$strict>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "EBOOK_FILE_TOO_LARGE" | "EBOOK_LIMIT_EXCEEDED">>, Record<never, never>>;
|
|
6623
7361
|
finalizeUpload: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
6624
7362
|
ebookId: import("zod").ZodUUID;
|
|
6625
7363
|
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
@@ -6639,20 +7377,20 @@ export declare const contract: {
|
|
|
6639
7377
|
createdAt: import("zod").ZodCoercedDate<unknown>;
|
|
6640
7378
|
updatedAt: import("zod").ZodCoercedDate<unknown>;
|
|
6641
7379
|
}, import("zod/v4/core").$strict>;
|
|
6642
|
-
}, import("zod/v4/core").$strict>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "
|
|
7380
|
+
}, import("zod/v4/core").$strict>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "EBOOK_FILE_TOO_LARGE" | "EBOOK_NOT_FOUND" | "EBOOK_UPLOAD_NOT_COMPLETED">>, Record<never, never>>;
|
|
6643
7381
|
getDownloadUrl: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
6644
7382
|
id: import("zod").ZodUUID;
|
|
6645
7383
|
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
6646
7384
|
url: import("zod").ZodURL;
|
|
6647
7385
|
expiresAt: import("zod").ZodCoercedDate<unknown>;
|
|
6648
|
-
}, import("zod/v4/core").$strict>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "
|
|
7386
|
+
}, import("zod/v4/core").$strict>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "EBOOK_NOT_FOUND">>, Record<never, never>>;
|
|
6649
7387
|
updateProgress: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
6650
7388
|
cfi: import("zod").ZodString;
|
|
6651
7389
|
fraction: import("zod").ZodNumber;
|
|
6652
7390
|
id: import("zod").ZodUUID;
|
|
6653
7391
|
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
6654
7392
|
lastReadAt: import("zod").ZodCoercedDate<unknown>;
|
|
6655
|
-
}, import("zod/v4/core").$strict>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "
|
|
7393
|
+
}, import("zod/v4/core").$strict>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "EBOOK_NOT_FOUND">>, Record<never, never>>;
|
|
6656
7394
|
rename: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
6657
7395
|
title: import("zod").ZodString;
|
|
6658
7396
|
author: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
@@ -6674,12 +7412,12 @@ export declare const contract: {
|
|
|
6674
7412
|
createdAt: import("zod").ZodCoercedDate<unknown>;
|
|
6675
7413
|
updatedAt: import("zod").ZodCoercedDate<unknown>;
|
|
6676
7414
|
}, import("zod/v4/core").$strict>;
|
|
6677
|
-
}, import("zod/v4/core").$strict>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "
|
|
7415
|
+
}, import("zod/v4/core").$strict>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "EBOOK_NOT_FOUND">>, Record<never, never>>;
|
|
6678
7416
|
delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
6679
7417
|
id: import("zod").ZodUUID;
|
|
6680
7418
|
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
6681
7419
|
id: import("zod").ZodUUID;
|
|
6682
|
-
}, import("zod/v4/core").$strict>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "
|
|
7420
|
+
}, import("zod/v4/core").$strict>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "EBOOK_NOT_FOUND">>, Record<never, never>>;
|
|
6683
7421
|
};
|
|
6684
7422
|
emailPreferences: {
|
|
6685
7423
|
get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
@@ -6794,11 +7532,11 @@ export declare const contract: {
|
|
|
6794
7532
|
featureAccess: {
|
|
6795
7533
|
status: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
6796
7534
|
featureKey: import("zod").ZodEnum<{
|
|
6797
|
-
|
|
7535
|
+
media: "media";
|
|
6798
7536
|
}>;
|
|
6799
7537
|
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
6800
7538
|
featureKey: import("zod").ZodEnum<{
|
|
6801
|
-
|
|
7539
|
+
media: "media";
|
|
6802
7540
|
}>;
|
|
6803
7541
|
allowed: import("zod").ZodBoolean;
|
|
6804
7542
|
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
@@ -7330,6 +8068,104 @@ export declare const contract: {
|
|
|
7330
8068
|
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
7331
8069
|
clientId: import("zod").ZodString;
|
|
7332
8070
|
}, import("zod/v4/core").$strict>, Record<never, never>, Record<never, never>>;
|
|
8071
|
+
usage: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
8072
|
+
usedCalls: import("zod").ZodNumber;
|
|
8073
|
+
limit: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
8074
|
+
resetAt: import("zod").ZodNullable<import("zod").ZodISODateTime>;
|
|
8075
|
+
}, import("zod/v4/core").$strict>, Record<never, never>, Record<never, never>>;
|
|
8076
|
+
};
|
|
8077
|
+
media: {
|
|
8078
|
+
requestUpload: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
8079
|
+
contentType: import("zod").ZodEnum<{
|
|
8080
|
+
"audio/mp4": "audio/mp4";
|
|
8081
|
+
"audio/mpeg": "audio/mpeg";
|
|
8082
|
+
"audio/wav": "audio/wav";
|
|
8083
|
+
"image/jpeg": "image/jpeg";
|
|
8084
|
+
"image/png": "image/png";
|
|
8085
|
+
"image/webp": "image/webp";
|
|
8086
|
+
}>;
|
|
8087
|
+
byteSize: import("zod").ZodNumber;
|
|
8088
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
8089
|
+
assetId: import("zod").ZodUUID;
|
|
8090
|
+
upload: import("zod").ZodObject<{
|
|
8091
|
+
url: import("zod").ZodURL;
|
|
8092
|
+
headers: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
|
|
8093
|
+
}, import("zod/v4/core").$strict>;
|
|
8094
|
+
expiresAt: import("zod").ZodCoercedDate<unknown>;
|
|
8095
|
+
}, import("zod/v4/core").$strict>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "MEDIA_BETA_RESTRICTED" | "MEDIA_FILE_TOO_LARGE" | "MEDIA_QUOTA_EXCEEDED">>, Record<never, never>>;
|
|
8096
|
+
completeUpload: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
8097
|
+
id: import("zod").ZodUUID;
|
|
8098
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
8099
|
+
asset: import("zod").ZodObject<{
|
|
8100
|
+
id: import("zod").ZodUUID;
|
|
8101
|
+
uri: import("zod").ZodNullable<import("zod").ZodString>;
|
|
8102
|
+
status: import("zod").ZodEnum<{
|
|
8103
|
+
failed: "failed";
|
|
8104
|
+
pending: "pending";
|
|
8105
|
+
processing: "processing";
|
|
8106
|
+
ready: "ready";
|
|
8107
|
+
}>;
|
|
8108
|
+
contentType: import("zod").ZodNullable<import("zod").ZodString>;
|
|
8109
|
+
fileByteSize: import("zod").ZodNumber;
|
|
8110
|
+
metadata: import("zod").ZodNullable<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
8111
|
+
kind: import("zod").ZodLiteral<"image">;
|
|
8112
|
+
width: import("zod").ZodNumber;
|
|
8113
|
+
height: import("zod").ZodNumber;
|
|
8114
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
8115
|
+
kind: import("zod").ZodLiteral<"audio">;
|
|
8116
|
+
durationMs: import("zod").ZodNumber;
|
|
8117
|
+
}, import("zod/v4/core").$strict>], "kind">>;
|
|
8118
|
+
failureCode: import("zod").ZodNullable<import("zod").ZodEnum<{
|
|
8119
|
+
audio_too_long: "audio_too_long";
|
|
8120
|
+
file_too_large: "file_too_large";
|
|
8121
|
+
image_too_large: "image_too_large";
|
|
8122
|
+
invalid_file: "invalid_file";
|
|
8123
|
+
processing_failed: "processing_failed";
|
|
8124
|
+
quota_exceeded: "quota_exceeded";
|
|
8125
|
+
unsupported_format: "unsupported_format";
|
|
8126
|
+
}>>;
|
|
8127
|
+
createdAt: import("zod").ZodCoercedDate<unknown>;
|
|
8128
|
+
}, import("zod/v4/core").$strict>;
|
|
8129
|
+
}, import("zod/v4/core").$strict>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "MEDIA_BETA_RESTRICTED" | "MEDIA_NOT_FOUND" | "MEDIA_UPLOAD_NOT_COMPLETED">>, Record<never, never>>;
|
|
8130
|
+
get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
8131
|
+
id: import("zod").ZodUUID;
|
|
8132
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
8133
|
+
asset: import("zod").ZodObject<{
|
|
8134
|
+
id: import("zod").ZodUUID;
|
|
8135
|
+
uri: import("zod").ZodNullable<import("zod").ZodString>;
|
|
8136
|
+
status: import("zod").ZodEnum<{
|
|
8137
|
+
failed: "failed";
|
|
8138
|
+
pending: "pending";
|
|
8139
|
+
processing: "processing";
|
|
8140
|
+
ready: "ready";
|
|
8141
|
+
}>;
|
|
8142
|
+
contentType: import("zod").ZodNullable<import("zod").ZodString>;
|
|
8143
|
+
fileByteSize: import("zod").ZodNumber;
|
|
8144
|
+
metadata: import("zod").ZodNullable<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
8145
|
+
kind: import("zod").ZodLiteral<"image">;
|
|
8146
|
+
width: import("zod").ZodNumber;
|
|
8147
|
+
height: import("zod").ZodNumber;
|
|
8148
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
8149
|
+
kind: import("zod").ZodLiteral<"audio">;
|
|
8150
|
+
durationMs: import("zod").ZodNumber;
|
|
8151
|
+
}, import("zod/v4/core").$strict>], "kind">>;
|
|
8152
|
+
failureCode: import("zod").ZodNullable<import("zod").ZodEnum<{
|
|
8153
|
+
audio_too_long: "audio_too_long";
|
|
8154
|
+
file_too_large: "file_too_large";
|
|
8155
|
+
image_too_large: "image_too_large";
|
|
8156
|
+
invalid_file: "invalid_file";
|
|
8157
|
+
processing_failed: "processing_failed";
|
|
8158
|
+
quota_exceeded: "quota_exceeded";
|
|
8159
|
+
unsupported_format: "unsupported_format";
|
|
8160
|
+
}>>;
|
|
8161
|
+
createdAt: import("zod").ZodCoercedDate<unknown>;
|
|
8162
|
+
}, import("zod/v4/core").$strict>;
|
|
8163
|
+
}, import("zod/v4/core").$strict>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "MEDIA_BETA_RESTRICTED" | "MEDIA_NOT_FOUND">>, Record<never, never>>;
|
|
8164
|
+
usage: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
8165
|
+
usedBytes: import("zod").ZodNumber;
|
|
8166
|
+
reservedBytes: import("zod").ZodNumber;
|
|
8167
|
+
limitBytes: import("zod").ZodNumber;
|
|
8168
|
+
}, import("zod/v4/core").$strict>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "MEDIA_BETA_RESTRICTED">>, Record<never, never>>;
|
|
7333
8169
|
};
|
|
7334
8170
|
notebase: {
|
|
7335
8171
|
list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{}, import("zod/v4/core").$strip>, import("zod").ZodArray<import("zod").ZodObject<{
|
|
@@ -7406,6 +8242,8 @@ export declare const contract: {
|
|
|
7406
8242
|
value: import("zod").ZodString;
|
|
7407
8243
|
color: import("zod").ZodString;
|
|
7408
8244
|
}, import("zod/v4/core").$strip>>>;
|
|
8245
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
8246
|
+
type: import("zod").ZodLiteral<"cloze">;
|
|
7409
8247
|
}, import("zod/v4/core").$strip>], "type">;
|
|
7410
8248
|
position: import("zod").ZodNumber;
|
|
7411
8249
|
isPrimary: import("zod").ZodBoolean;
|
|
@@ -7419,6 +8257,32 @@ export declare const contract: {
|
|
|
7419
8257
|
notebaseId: import("zod").ZodString;
|
|
7420
8258
|
cells: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
|
|
7421
8259
|
position: import("zod").ZodNumber;
|
|
8260
|
+
origin: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
8261
|
+
kind: import("zod").ZodLiteral<"webpage">;
|
|
8262
|
+
url: import("zod").ZodString;
|
|
8263
|
+
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8264
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
8265
|
+
kind: import("zod").ZodLiteral<"ebook">;
|
|
8266
|
+
ebookId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8267
|
+
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8268
|
+
cfi: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8269
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
8270
|
+
kind: import("zod").ZodLiteral<"video">;
|
|
8271
|
+
url: import("zod").ZodString;
|
|
8272
|
+
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8273
|
+
seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
8274
|
+
}, import("zod/v4/core").$strip>], "kind">>>;
|
|
8275
|
+
createdVia: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodObject<{
|
|
8276
|
+
client: import("zod").ZodEnum<{
|
|
8277
|
+
extension: "extension";
|
|
8278
|
+
mcp: "mcp";
|
|
8279
|
+
mobile: "mobile";
|
|
8280
|
+
unknown: "unknown";
|
|
8281
|
+
web: "web";
|
|
8282
|
+
}>;
|
|
8283
|
+
mcpClientId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8284
|
+
mcpClientName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8285
|
+
}, import("zod/v4/core").$strip>>>;
|
|
7422
8286
|
createdAt: import("zod").ZodCoercedDate<unknown>;
|
|
7423
8287
|
updatedAt: import("zod").ZodCoercedDate<unknown>;
|
|
7424
8288
|
}, import("zod/v4/core").$strip>>;
|
|
@@ -7475,6 +8339,8 @@ export declare const contract: {
|
|
|
7475
8339
|
value: import("zod").ZodString;
|
|
7476
8340
|
color: import("zod").ZodString;
|
|
7477
8341
|
}, import("zod/v4/core").$strip>>>;
|
|
8342
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
8343
|
+
type: import("zod").ZodLiteral<"cloze">;
|
|
7478
8344
|
}, import("zod/v4/core").$strip>], "type">;
|
|
7479
8345
|
position: import("zod").ZodNumber;
|
|
7480
8346
|
isPrimary: import("zod").ZodBoolean;
|
|
@@ -7516,15 +8382,45 @@ export declare const contract: {
|
|
|
7516
8382
|
value: import("zod").ZodString;
|
|
7517
8383
|
color: import("zod").ZodString;
|
|
7518
8384
|
}, import("zod/v4/core").$strip>>>;
|
|
8385
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
8386
|
+
type: import("zod").ZodLiteral<"cloze">;
|
|
7519
8387
|
}, import("zod/v4/core").$strip>], "type">;
|
|
7520
8388
|
}, import("zod/v4/core").$strict>>;
|
|
7521
8389
|
initialRow: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
7522
8390
|
id: import("zod").ZodOptional<import("zod").ZodUUID>;
|
|
7523
8391
|
cells: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
|
|
8392
|
+
origin: import("zod").ZodCatch<import("zod").ZodOptional<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
8393
|
+
kind: import("zod").ZodLiteral<"webpage">;
|
|
8394
|
+
url: import("zod").ZodString;
|
|
8395
|
+
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8396
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
8397
|
+
kind: import("zod").ZodLiteral<"ebook">;
|
|
8398
|
+
ebookId: import("zod").ZodUUID;
|
|
8399
|
+
cfi: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8400
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
8401
|
+
kind: import("zod").ZodLiteral<"video">;
|
|
8402
|
+
url: import("zod").ZodString;
|
|
8403
|
+
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8404
|
+
seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
8405
|
+
}, import("zod/v4/core").$strip>], "kind">>>;
|
|
7524
8406
|
}, import("zod/v4/core").$strict>>;
|
|
7525
8407
|
initialRows: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
7526
8408
|
id: import("zod").ZodOptional<import("zod").ZodUUID>;
|
|
7527
8409
|
cells: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
|
|
8410
|
+
origin: import("zod").ZodCatch<import("zod").ZodOptional<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
8411
|
+
kind: import("zod").ZodLiteral<"webpage">;
|
|
8412
|
+
url: import("zod").ZodString;
|
|
8413
|
+
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8414
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
8415
|
+
kind: import("zod").ZodLiteral<"ebook">;
|
|
8416
|
+
ebookId: import("zod").ZodUUID;
|
|
8417
|
+
cfi: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8418
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
8419
|
+
kind: import("zod").ZodLiteral<"video">;
|
|
8420
|
+
url: import("zod").ZodString;
|
|
8421
|
+
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8422
|
+
seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
8423
|
+
}, import("zod/v4/core").$strip>], "kind">>>;
|
|
7528
8424
|
}, import("zod/v4/core").$strict>>>;
|
|
7529
8425
|
}, import("zod/v4/core").$strict>>;
|
|
7530
8426
|
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
@@ -7646,6 +8542,8 @@ export declare const contract: {
|
|
|
7646
8542
|
value: import("zod").ZodString;
|
|
7647
8543
|
color: import("zod").ZodString;
|
|
7648
8544
|
}, import("zod/v4/core").$strip>>>;
|
|
8545
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
8546
|
+
type: import("zod").ZodLiteral<"cloze">;
|
|
7649
8547
|
}, import("zod/v4/core").$strip>], "type">;
|
|
7650
8548
|
}, import("zod/v4/core").$strict>;
|
|
7651
8549
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
@@ -7675,6 +8573,8 @@ export declare const contract: {
|
|
|
7675
8573
|
value: import("zod").ZodString;
|
|
7676
8574
|
color: import("zod").ZodString;
|
|
7677
8575
|
}, import("zod/v4/core").$strip>>>;
|
|
8576
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
8577
|
+
type: import("zod").ZodLiteral<"cloze">;
|
|
7678
8578
|
}, import("zod/v4/core").$strip>], "type">;
|
|
7679
8579
|
position: import("zod").ZodNumber;
|
|
7680
8580
|
isPrimary: import("zod").ZodBoolean;
|
|
@@ -7715,6 +8615,8 @@ export declare const contract: {
|
|
|
7715
8615
|
value: import("zod").ZodString;
|
|
7716
8616
|
color: import("zod").ZodString;
|
|
7717
8617
|
}, import("zod/v4/core").$strip>>>;
|
|
8618
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
8619
|
+
type: import("zod").ZodLiteral<"cloze">;
|
|
7718
8620
|
}, import("zod/v4/core").$strip>], "type">>;
|
|
7719
8621
|
width: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
7720
8622
|
wrap: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
@@ -7746,6 +8648,8 @@ export declare const contract: {
|
|
|
7746
8648
|
value: import("zod").ZodString;
|
|
7747
8649
|
color: import("zod").ZodString;
|
|
7748
8650
|
}, import("zod/v4/core").$strip>>>;
|
|
8651
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
8652
|
+
type: import("zod").ZodLiteral<"cloze">;
|
|
7749
8653
|
}, import("zod/v4/core").$strip>], "type">;
|
|
7750
8654
|
position: import("zod").ZodNumber;
|
|
7751
8655
|
isPrimary: import("zod").ZodBoolean;
|
|
@@ -7787,6 +8691,32 @@ export declare const contract: {
|
|
|
7787
8691
|
notebaseId: import("zod").ZodString;
|
|
7788
8692
|
cells: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
|
|
7789
8693
|
position: import("zod").ZodNumber;
|
|
8694
|
+
origin: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
8695
|
+
kind: import("zod").ZodLiteral<"webpage">;
|
|
8696
|
+
url: import("zod").ZodString;
|
|
8697
|
+
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8698
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
8699
|
+
kind: import("zod").ZodLiteral<"ebook">;
|
|
8700
|
+
ebookId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8701
|
+
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8702
|
+
cfi: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8703
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
8704
|
+
kind: import("zod").ZodLiteral<"video">;
|
|
8705
|
+
url: import("zod").ZodString;
|
|
8706
|
+
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8707
|
+
seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
8708
|
+
}, import("zod/v4/core").$strip>], "kind">>>;
|
|
8709
|
+
createdVia: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodObject<{
|
|
8710
|
+
client: import("zod").ZodEnum<{
|
|
8711
|
+
extension: "extension";
|
|
8712
|
+
mcp: "mcp";
|
|
8713
|
+
mobile: "mobile";
|
|
8714
|
+
unknown: "unknown";
|
|
8715
|
+
web: "web";
|
|
8716
|
+
}>;
|
|
8717
|
+
mcpClientId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8718
|
+
mcpClientName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8719
|
+
}, import("zod/v4/core").$strip>>>;
|
|
7790
8720
|
createdAt: import("zod").ZodCoercedDate<unknown>;
|
|
7791
8721
|
updatedAt: import("zod").ZodCoercedDate<unknown>;
|
|
7792
8722
|
}, import("zod/v4/core").$strip>>;
|
|
@@ -7802,6 +8732,32 @@ export declare const contract: {
|
|
|
7802
8732
|
notebaseId: import("zod").ZodString;
|
|
7803
8733
|
cells: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
|
|
7804
8734
|
position: import("zod").ZodNumber;
|
|
8735
|
+
origin: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
8736
|
+
kind: import("zod").ZodLiteral<"webpage">;
|
|
8737
|
+
url: import("zod").ZodString;
|
|
8738
|
+
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8739
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
8740
|
+
kind: import("zod").ZodLiteral<"ebook">;
|
|
8741
|
+
ebookId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8742
|
+
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8743
|
+
cfi: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8744
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
8745
|
+
kind: import("zod").ZodLiteral<"video">;
|
|
8746
|
+
url: import("zod").ZodString;
|
|
8747
|
+
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8748
|
+
seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
8749
|
+
}, import("zod/v4/core").$strip>], "kind">>>;
|
|
8750
|
+
createdVia: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodObject<{
|
|
8751
|
+
client: import("zod").ZodEnum<{
|
|
8752
|
+
extension: "extension";
|
|
8753
|
+
mcp: "mcp";
|
|
8754
|
+
mobile: "mobile";
|
|
8755
|
+
unknown: "unknown";
|
|
8756
|
+
web: "web";
|
|
8757
|
+
}>;
|
|
8758
|
+
mcpClientId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8759
|
+
mcpClientName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8760
|
+
}, import("zod/v4/core").$strip>>>;
|
|
7805
8761
|
createdAt: import("zod").ZodCoercedDate<unknown>;
|
|
7806
8762
|
updatedAt: import("zod").ZodCoercedDate<unknown>;
|
|
7807
8763
|
}, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_ROW_NOT_FOUND">>, {
|
|
@@ -7813,6 +8769,20 @@ export declare const contract: {
|
|
|
7813
8769
|
data: import("zod").ZodObject<{
|
|
7814
8770
|
id: import("zod").ZodOptional<import("zod").ZodUUID>;
|
|
7815
8771
|
cells: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
8772
|
+
origin: import("zod").ZodCatch<import("zod").ZodOptional<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
8773
|
+
kind: import("zod").ZodLiteral<"webpage">;
|
|
8774
|
+
url: import("zod").ZodString;
|
|
8775
|
+
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8776
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
8777
|
+
kind: import("zod").ZodLiteral<"ebook">;
|
|
8778
|
+
ebookId: import("zod").ZodUUID;
|
|
8779
|
+
cfi: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8780
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
8781
|
+
kind: import("zod").ZodLiteral<"video">;
|
|
8782
|
+
url: import("zod").ZodString;
|
|
8783
|
+
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8784
|
+
seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
8785
|
+
}, import("zod/v4/core").$strip>], "kind">>>;
|
|
7816
8786
|
}, import("zod/v4/core").$strict>;
|
|
7817
8787
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
7818
8788
|
note: import("zod").ZodObject<{
|
|
@@ -7820,6 +8790,32 @@ export declare const contract: {
|
|
|
7820
8790
|
notebaseId: import("zod").ZodString;
|
|
7821
8791
|
cells: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
|
|
7822
8792
|
position: import("zod").ZodNumber;
|
|
8793
|
+
origin: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
8794
|
+
kind: import("zod").ZodLiteral<"webpage">;
|
|
8795
|
+
url: import("zod").ZodString;
|
|
8796
|
+
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8797
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
8798
|
+
kind: import("zod").ZodLiteral<"ebook">;
|
|
8799
|
+
ebookId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8800
|
+
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8801
|
+
cfi: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8802
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
8803
|
+
kind: import("zod").ZodLiteral<"video">;
|
|
8804
|
+
url: import("zod").ZodString;
|
|
8805
|
+
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8806
|
+
seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
8807
|
+
}, import("zod/v4/core").$strip>], "kind">>>;
|
|
8808
|
+
createdVia: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodObject<{
|
|
8809
|
+
client: import("zod").ZodEnum<{
|
|
8810
|
+
extension: "extension";
|
|
8811
|
+
mcp: "mcp";
|
|
8812
|
+
mobile: "mobile";
|
|
8813
|
+
unknown: "unknown";
|
|
8814
|
+
web: "web";
|
|
8815
|
+
}>;
|
|
8816
|
+
mcpClientId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8817
|
+
mcpClientName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8818
|
+
}, import("zod/v4/core").$strip>>>;
|
|
7823
8819
|
createdAt: import("zod").ZodCoercedDate<unknown>;
|
|
7824
8820
|
updatedAt: import("zod").ZodCoercedDate<unknown>;
|
|
7825
8821
|
}, import("zod/v4/core").$strip>;
|
|
@@ -7833,6 +8829,20 @@ export declare const contract: {
|
|
|
7833
8829
|
rows: import("zod").ZodArray<import("zod").ZodObject<{
|
|
7834
8830
|
id: import("zod").ZodOptional<import("zod").ZodUUID>;
|
|
7835
8831
|
cells: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
8832
|
+
origin: import("zod").ZodCatch<import("zod").ZodOptional<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
8833
|
+
kind: import("zod").ZodLiteral<"webpage">;
|
|
8834
|
+
url: import("zod").ZodString;
|
|
8835
|
+
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8836
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
8837
|
+
kind: import("zod").ZodLiteral<"ebook">;
|
|
8838
|
+
ebookId: import("zod").ZodUUID;
|
|
8839
|
+
cfi: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8840
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
8841
|
+
kind: import("zod").ZodLiteral<"video">;
|
|
8842
|
+
url: import("zod").ZodString;
|
|
8843
|
+
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8844
|
+
seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
8845
|
+
}, import("zod/v4/core").$strip>], "kind">>>;
|
|
7836
8846
|
}, import("zod/v4/core").$strict>>;
|
|
7837
8847
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
7838
8848
|
items: import("zod").ZodArray<import("zod").ZodObject<{
|
|
@@ -7840,6 +8850,32 @@ export declare const contract: {
|
|
|
7840
8850
|
notebaseId: import("zod").ZodString;
|
|
7841
8851
|
cells: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
|
|
7842
8852
|
position: import("zod").ZodNumber;
|
|
8853
|
+
origin: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
8854
|
+
kind: import("zod").ZodLiteral<"webpage">;
|
|
8855
|
+
url: import("zod").ZodString;
|
|
8856
|
+
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8857
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
8858
|
+
kind: import("zod").ZodLiteral<"ebook">;
|
|
8859
|
+
ebookId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8860
|
+
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8861
|
+
cfi: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8862
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
8863
|
+
kind: import("zod").ZodLiteral<"video">;
|
|
8864
|
+
url: import("zod").ZodString;
|
|
8865
|
+
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8866
|
+
seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
8867
|
+
}, import("zod/v4/core").$strip>], "kind">>>;
|
|
8868
|
+
createdVia: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodObject<{
|
|
8869
|
+
client: import("zod").ZodEnum<{
|
|
8870
|
+
extension: "extension";
|
|
8871
|
+
mcp: "mcp";
|
|
8872
|
+
mobile: "mobile";
|
|
8873
|
+
unknown: "unknown";
|
|
8874
|
+
web: "web";
|
|
8875
|
+
}>;
|
|
8876
|
+
mcpClientId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8877
|
+
mcpClientName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8878
|
+
}, import("zod/v4/core").$strip>>>;
|
|
7843
8879
|
createdAt: import("zod").ZodCoercedDate<unknown>;
|
|
7844
8880
|
updatedAt: import("zod").ZodCoercedDate<unknown>;
|
|
7845
8881
|
}, import("zod/v4/core").$strip>>;
|
|
@@ -7859,6 +8895,32 @@ export declare const contract: {
|
|
|
7859
8895
|
notebaseId: import("zod").ZodUUID;
|
|
7860
8896
|
cells: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
|
|
7861
8897
|
position: import("zod").ZodNumber;
|
|
8898
|
+
origin: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
8899
|
+
kind: import("zod").ZodLiteral<"webpage">;
|
|
8900
|
+
url: import("zod").ZodString;
|
|
8901
|
+
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8902
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
8903
|
+
kind: import("zod").ZodLiteral<"ebook">;
|
|
8904
|
+
ebookId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8905
|
+
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8906
|
+
cfi: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8907
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
8908
|
+
kind: import("zod").ZodLiteral<"video">;
|
|
8909
|
+
url: import("zod").ZodString;
|
|
8910
|
+
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8911
|
+
seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
8912
|
+
}, import("zod/v4/core").$strip>], "kind">>>;
|
|
8913
|
+
createdVia: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodObject<{
|
|
8914
|
+
client: import("zod").ZodEnum<{
|
|
8915
|
+
extension: "extension";
|
|
8916
|
+
mcp: "mcp";
|
|
8917
|
+
mobile: "mobile";
|
|
8918
|
+
unknown: "unknown";
|
|
8919
|
+
web: "web";
|
|
8920
|
+
}>;
|
|
8921
|
+
mcpClientId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8922
|
+
mcpClientName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8923
|
+
}, import("zod/v4/core").$strip>>>;
|
|
7862
8924
|
createdAt: import("zod").ZodDate;
|
|
7863
8925
|
updatedAt: import("zod").ZodDate;
|
|
7864
8926
|
txid: import("zod").ZodNumber;
|
|
@@ -7881,6 +8943,32 @@ export declare const contract: {
|
|
|
7881
8943
|
notebaseId: import("zod").ZodString;
|
|
7882
8944
|
cells: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
|
|
7883
8945
|
position: import("zod").ZodNumber;
|
|
8946
|
+
origin: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
8947
|
+
kind: import("zod").ZodLiteral<"webpage">;
|
|
8948
|
+
url: import("zod").ZodString;
|
|
8949
|
+
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8950
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
8951
|
+
kind: import("zod").ZodLiteral<"ebook">;
|
|
8952
|
+
ebookId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8953
|
+
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8954
|
+
cfi: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8955
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
8956
|
+
kind: import("zod").ZodLiteral<"video">;
|
|
8957
|
+
url: import("zod").ZodString;
|
|
8958
|
+
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8959
|
+
seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
8960
|
+
}, import("zod/v4/core").$strip>], "kind">>>;
|
|
8961
|
+
createdVia: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodObject<{
|
|
8962
|
+
client: import("zod").ZodEnum<{
|
|
8963
|
+
extension: "extension";
|
|
8964
|
+
mcp: "mcp";
|
|
8965
|
+
mobile: "mobile";
|
|
8966
|
+
unknown: "unknown";
|
|
8967
|
+
web: "web";
|
|
8968
|
+
}>;
|
|
8969
|
+
mcpClientId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8970
|
+
mcpClientName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8971
|
+
}, import("zod/v4/core").$strip>>>;
|
|
7884
8972
|
createdAt: import("zod").ZodCoercedDate<unknown>;
|
|
7885
8973
|
updatedAt: import("zod").ZodCoercedDate<unknown>;
|
|
7886
8974
|
}, import("zod/v4/core").$strip>>;
|
|
@@ -9473,7 +10561,7 @@ export declare const contract: {
|
|
|
9473
10561
|
}, import("zod/v4/core").$strict>;
|
|
9474
10562
|
createdAt: import("zod").ZodCoercedDate<unknown>;
|
|
9475
10563
|
}, import("zod/v4/core").$strip>;
|
|
9476
|
-
txid: import("zod").ZodNumber
|
|
10564
|
+
txid: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
9477
10565
|
created: import("zod").ZodBoolean;
|
|
9478
10566
|
}, 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">>, {
|
|
9479
10567
|
summary: string;
|
|
@@ -9727,6 +10815,72 @@ export declare const contract: {
|
|
|
9727
10815
|
description: string;
|
|
9728
10816
|
} & Record<never, never>>;
|
|
9729
10817
|
};
|
|
10818
|
+
telemetry: {
|
|
10819
|
+
reportWebSync: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
10820
|
+
events: import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
10821
|
+
type: import("zod").ZodLiteral<"writeWait">;
|
|
10822
|
+
operation: import("zod").ZodEnum<{
|
|
10823
|
+
bury: "bury";
|
|
10824
|
+
cardStatus: "cardStatus";
|
|
10825
|
+
createTemplate: "createTemplate";
|
|
10826
|
+
delete: "delete";
|
|
10827
|
+
deleteCard: "deleteCard";
|
|
10828
|
+
deleteNote: "deleteNote";
|
|
10829
|
+
insert: "insert";
|
|
10830
|
+
review: "review";
|
|
10831
|
+
reviewReplay: "reviewReplay";
|
|
10832
|
+
setSleep: "setSleep";
|
|
10833
|
+
srsSettings: "srsSettings";
|
|
10834
|
+
suspend: "suspend";
|
|
10835
|
+
undo: "undo";
|
|
10836
|
+
update: "update";
|
|
10837
|
+
updateTemplate: "updateTemplate";
|
|
10838
|
+
}>;
|
|
10839
|
+
outcome: import("zod").ZodEnum<{
|
|
10840
|
+
failed: "failed";
|
|
10841
|
+
recovered: "recovered";
|
|
10842
|
+
}>;
|
|
10843
|
+
transport: import("zod").ZodEnum<{
|
|
10844
|
+
longPoll: "longPoll";
|
|
10845
|
+
sse: "sse";
|
|
10846
|
+
}>;
|
|
10847
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
10848
|
+
type: import("zod").ZodLiteral<"streamError">;
|
|
10849
|
+
shape: import("zod").ZodEnum<{
|
|
10850
|
+
cardTemplates: "cardTemplates";
|
|
10851
|
+
cards: "cards";
|
|
10852
|
+
mediaAssets: "mediaAssets";
|
|
10853
|
+
notebaseColumns: "notebaseColumns";
|
|
10854
|
+
notebaseRows: "notebaseRows";
|
|
10855
|
+
notebases: "notebases";
|
|
10856
|
+
revlogs: "revlogs";
|
|
10857
|
+
}>;
|
|
10858
|
+
errorType: import("zod").ZodEnum<{
|
|
10859
|
+
badRequest: "badRequest";
|
|
10860
|
+
clientError: "clientError";
|
|
10861
|
+
forbidden: "forbidden";
|
|
10862
|
+
missingHeaders: "missingHeaders";
|
|
10863
|
+
unauthorized: "unauthorized";
|
|
10864
|
+
unexpected: "unexpected";
|
|
10865
|
+
}>;
|
|
10866
|
+
phase: import("zod").ZodEnum<{
|
|
10867
|
+
initial: "initial";
|
|
10868
|
+
live: "live";
|
|
10869
|
+
}>;
|
|
10870
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
10871
|
+
type: import("zod").ZodLiteral<"unavailable">;
|
|
10872
|
+
page: import("zod").ZodEnum<{
|
|
10873
|
+
reviewCombined: "reviewCombined";
|
|
10874
|
+
reviewNotebase: "reviewNotebase";
|
|
10875
|
+
}>;
|
|
10876
|
+
reason: import("zod").ZodEnum<{
|
|
10877
|
+
notebaseGone: "notebaseGone";
|
|
10878
|
+
streamFailed: "streamFailed";
|
|
10879
|
+
syncTimeout: "syncTimeout";
|
|
10880
|
+
}>;
|
|
10881
|
+
}, import("zod/v4/core").$strict>], "type">>;
|
|
10882
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
10883
|
+
};
|
|
9730
10884
|
user: {
|
|
9731
10885
|
ensureTimezone: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
9732
10886
|
timezone: import("zod").ZodString;
|
|
@@ -9865,6 +11019,5 @@ export declare const contract: {
|
|
|
9865
11019
|
};
|
|
9866
11020
|
};
|
|
9867
11021
|
export type ORPCRouterClient = ContractRouterClient<typeof contract>;
|
|
9868
|
-
//#endregion
|
|
9869
11022
|
export { type AgentRoute, type CardState, type ReviewRating, SRS_REVIEW_DURATION_MS_MAX, type ScheduleStatus, type SchedulingParams, cardStateSchema, reviewRatingSchema, scheduleStatusSchema, schedulingParamsSchema };
|
|
9870
11023
|
//# sourceMappingURL=index.d.ts.map
|