@read-frog/api-contract 0.25.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 +655 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +45 -8
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/contracts/card.ts +16 -0
- package/src/contracts/notebase-row.ts +2 -2
- package/src/public-errors.ts +24 -0
- package/src/schemas/card.ts +10 -0
- package/src/schemas/notebase-row.ts +30 -0
- package/src/schemas/notebase.ts +6 -1
- package/src/schemas/web-sync.ts +1 -0
package/dist/index.d.ts
CHANGED
|
@@ -24,9 +24,15 @@ export declare function defineAgentProcedure(route: AgentRoute): import("@orpc/c
|
|
|
24
24
|
description: string;
|
|
25
25
|
} & Record<never, never>>;
|
|
26
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";
|
|
27
31
|
invalid_date_format: "invalid_date_format";
|
|
28
32
|
invalid_select_option: "invalid_select_option";
|
|
33
|
+
too_many_cloze_groups: "too_many_cloze_groups";
|
|
29
34
|
type_mismatch: "type_mismatch";
|
|
35
|
+
unclosed_cloze: "unclosed_cloze";
|
|
30
36
|
unknown_notebase_column: "unknown_notebase_column";
|
|
31
37
|
}>;
|
|
32
38
|
export type CellValidationFailureReason = z.infer<typeof CellValidationFailureReasonSchema>;
|
|
@@ -48,12 +54,19 @@ export declare const CellValidationFailedDataSchema: z.ZodObject<{
|
|
|
48
54
|
validOptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
49
55
|
}, z.core.$strict>;
|
|
50
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";
|
|
51
61
|
invalid_date_format: "invalid_date_format";
|
|
52
62
|
invalid_select_option: "invalid_select_option";
|
|
63
|
+
too_many_cloze_groups: "too_many_cloze_groups";
|
|
53
64
|
type_mismatch: "type_mismatch";
|
|
65
|
+
unclosed_cloze: "unclosed_cloze";
|
|
54
66
|
unknown_notebase_column: "unknown_notebase_column";
|
|
55
67
|
}>;
|
|
56
68
|
rowIndex: z.ZodOptional<z.ZodNumber>;
|
|
69
|
+
notebaseRowId: z.ZodOptional<z.ZodString>;
|
|
57
70
|
}, z.core.$strict>;
|
|
58
71
|
export type CellValidationFailedData = z.infer<typeof CellValidationFailedDataSchema>;
|
|
59
72
|
export declare const CardTemplateInvalidColumnsDataSchema: z.ZodObject<{
|
|
@@ -110,6 +123,10 @@ export declare const SpeechDailyLimitReachedDataSchema: z.ZodObject<{
|
|
|
110
123
|
resetAt: z.ZodISODateTime;
|
|
111
124
|
}, z.core.$strict>;
|
|
112
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
|
+
};
|
|
113
130
|
readonly RESOURCE_UPDATE_CONFLICT: {
|
|
114
131
|
readonly message: "The resource changed. Read it again before updating.";
|
|
115
132
|
readonly status: 409;
|
|
@@ -331,12 +348,19 @@ export declare const PUBLIC_APP_ERROR_DEFS: {
|
|
|
331
348
|
validOptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
332
349
|
}, z.core.$strict>;
|
|
333
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";
|
|
334
355
|
invalid_date_format: "invalid_date_format";
|
|
335
356
|
invalid_select_option: "invalid_select_option";
|
|
357
|
+
too_many_cloze_groups: "too_many_cloze_groups";
|
|
336
358
|
type_mismatch: "type_mismatch";
|
|
359
|
+
unclosed_cloze: "unclosed_cloze";
|
|
337
360
|
unknown_notebase_column: "unknown_notebase_column";
|
|
338
361
|
}>;
|
|
339
362
|
rowIndex: z.ZodOptional<z.ZodNumber>;
|
|
363
|
+
notebaseRowId: z.ZodOptional<z.ZodString>;
|
|
340
364
|
}, z.core.$strict>;
|
|
341
365
|
readonly message: "Cell validation failed";
|
|
342
366
|
readonly status: 422;
|
|
@@ -489,6 +513,10 @@ export type PublicAppErrorData<TCode extends PublicAppErrorCode> = (typeof PUBLI
|
|
|
489
513
|
} ? z.output<TSchema> : undefined;
|
|
490
514
|
export declare function isPublicAppErrorCode(code: string | undefined): code is PublicAppErrorCode;
|
|
491
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
|
+
};
|
|
492
520
|
readonly RESOURCE_UPDATE_CONFLICT: {
|
|
493
521
|
readonly message: "The resource changed. Read it again before updating.";
|
|
494
522
|
readonly status: 409;
|
|
@@ -710,12 +738,19 @@ export declare function getPublicErrorDefinition<TCode extends PublicAppErrorCod
|
|
|
710
738
|
validOptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
711
739
|
}, z.core.$strict>;
|
|
712
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";
|
|
713
745
|
invalid_date_format: "invalid_date_format";
|
|
714
746
|
invalid_select_option: "invalid_select_option";
|
|
747
|
+
too_many_cloze_groups: "too_many_cloze_groups";
|
|
715
748
|
type_mismatch: "type_mismatch";
|
|
749
|
+
unclosed_cloze: "unclosed_cloze";
|
|
716
750
|
unknown_notebase_column: "unknown_notebase_column";
|
|
717
751
|
}>;
|
|
718
752
|
rowIndex: z.ZodOptional<z.ZodNumber>;
|
|
753
|
+
notebaseRowId: z.ZodOptional<z.ZodString>;
|
|
719
754
|
}, z.core.$strict>;
|
|
720
755
|
readonly message: "Cell validation failed";
|
|
721
756
|
readonly status: 422;
|
|
@@ -1606,6 +1641,16 @@ export declare const CardGetOutputSchema: z.ZodObject<{
|
|
|
1606
1641
|
back: z.ZodString;
|
|
1607
1642
|
}, z.core.$strip>;
|
|
1608
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>;
|
|
1609
1654
|
export declare const CardGenerateInputSchema: z.ZodObject<{
|
|
1610
1655
|
notebaseId: z.ZodUUID;
|
|
1611
1656
|
templateId: z.ZodOptional<z.ZodUUID>;
|
|
@@ -2941,15 +2986,45 @@ export declare const notebaseCreateDataSchema: z.ZodObject<{
|
|
|
2941
2986
|
value: z.ZodString;
|
|
2942
2987
|
color: z.ZodString;
|
|
2943
2988
|
}, z.core.$strip>>>;
|
|
2989
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2990
|
+
type: z.ZodLiteral<"cloze">;
|
|
2944
2991
|
}, z.core.$strip>], "type">;
|
|
2945
2992
|
}, z.core.$strict>>;
|
|
2946
2993
|
initialRow: z.ZodOptional<z.ZodObject<{
|
|
2947
2994
|
id: z.ZodOptional<z.ZodUUID>;
|
|
2948
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">>>;
|
|
2949
3010
|
}, z.core.$strict>>;
|
|
2950
3011
|
initialRows: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2951
3012
|
id: z.ZodOptional<z.ZodUUID>;
|
|
2952
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">>>;
|
|
2953
3028
|
}, z.core.$strict>>>;
|
|
2954
3029
|
}, z.core.$strict>>;
|
|
2955
3030
|
}, z.core.$strict>;
|
|
@@ -2983,15 +3058,45 @@ export declare const NotebaseCreateInputSchema: z.ZodObject<{
|
|
|
2983
3058
|
value: z.ZodString;
|
|
2984
3059
|
color: z.ZodString;
|
|
2985
3060
|
}, z.core.$strip>>>;
|
|
3061
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3062
|
+
type: z.ZodLiteral<"cloze">;
|
|
2986
3063
|
}, z.core.$strip>], "type">;
|
|
2987
3064
|
}, z.core.$strict>>;
|
|
2988
3065
|
initialRow: z.ZodOptional<z.ZodObject<{
|
|
2989
3066
|
id: z.ZodOptional<z.ZodUUID>;
|
|
2990
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">>>;
|
|
2991
3082
|
}, z.core.$strict>>;
|
|
2992
3083
|
initialRows: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2993
3084
|
id: z.ZodOptional<z.ZodUUID>;
|
|
2994
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">>>;
|
|
2995
3100
|
}, z.core.$strict>>>;
|
|
2996
3101
|
}, z.core.$strict>>;
|
|
2997
3102
|
}, z.core.$strict>;
|
|
@@ -3164,6 +3269,8 @@ export declare const NotebaseGetOutputSchema: z.ZodObject<{
|
|
|
3164
3269
|
value: z.ZodString;
|
|
3165
3270
|
color: z.ZodString;
|
|
3166
3271
|
}, z.core.$strip>>>;
|
|
3272
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3273
|
+
type: z.ZodLiteral<"cloze">;
|
|
3167
3274
|
}, z.core.$strip>], "type">;
|
|
3168
3275
|
position: z.ZodNumber;
|
|
3169
3276
|
isPrimary: z.ZodBoolean;
|
|
@@ -3177,6 +3284,32 @@ export declare const NotebaseGetOutputSchema: z.ZodObject<{
|
|
|
3177
3284
|
notebaseId: z.ZodString;
|
|
3178
3285
|
cells: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3179
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>>>;
|
|
3180
3313
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
3181
3314
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
3182
3315
|
}, z.core.$strip>>;
|
|
@@ -3232,6 +3365,8 @@ export declare const NotebaseGetSchemaOutputSchema: z.ZodObject<{
|
|
|
3232
3365
|
value: z.ZodString;
|
|
3233
3366
|
color: z.ZodString;
|
|
3234
3367
|
}, z.core.$strip>>>;
|
|
3368
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3369
|
+
type: z.ZodLiteral<"cloze">;
|
|
3235
3370
|
}, z.core.$strip>], "type">;
|
|
3236
3371
|
position: z.ZodNumber;
|
|
3237
3372
|
isPrimary: z.ZodBoolean;
|
|
@@ -3269,6 +3404,8 @@ export declare const notebaseColumnSchema: z.ZodObject<{
|
|
|
3269
3404
|
value: z.ZodString;
|
|
3270
3405
|
color: z.ZodString;
|
|
3271
3406
|
}, z.core.$strip>>>;
|
|
3407
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3408
|
+
type: z.ZodLiteral<"cloze">;
|
|
3272
3409
|
}, z.core.$strip>], "type">;
|
|
3273
3410
|
position: z.ZodNumber;
|
|
3274
3411
|
isPrimary: z.ZodBoolean;
|
|
@@ -3303,6 +3440,8 @@ export declare const notebaseColumnCreateDataSchema: z.ZodObject<{
|
|
|
3303
3440
|
value: z.ZodString;
|
|
3304
3441
|
color: z.ZodString;
|
|
3305
3442
|
}, z.core.$strip>>>;
|
|
3443
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3444
|
+
type: z.ZodLiteral<"cloze">;
|
|
3306
3445
|
}, z.core.$strip>], "type">;
|
|
3307
3446
|
}, z.core.$strict>;
|
|
3308
3447
|
export type NotebaseColumnCreateData = z.infer<typeof notebaseColumnCreateDataSchema>;
|
|
@@ -3331,6 +3470,8 @@ export declare const notebaseColumnUpdateDataSchema: z.ZodObject<{
|
|
|
3331
3470
|
value: z.ZodString;
|
|
3332
3471
|
color: z.ZodString;
|
|
3333
3472
|
}, z.core.$strip>>>;
|
|
3473
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3474
|
+
type: z.ZodLiteral<"cloze">;
|
|
3334
3475
|
}, z.core.$strip>], "type">>;
|
|
3335
3476
|
width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3336
3477
|
wrap: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3363,6 +3504,8 @@ export declare const NotebaseColumnCreateInputSchema: z.ZodObject<{
|
|
|
3363
3504
|
value: z.ZodString;
|
|
3364
3505
|
color: z.ZodString;
|
|
3365
3506
|
}, z.core.$strip>>>;
|
|
3507
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3508
|
+
type: z.ZodLiteral<"cloze">;
|
|
3366
3509
|
}, z.core.$strip>], "type">;
|
|
3367
3510
|
}, z.core.$strict>;
|
|
3368
3511
|
}, z.core.$strip>;
|
|
@@ -3394,6 +3537,8 @@ export declare const NotebaseColumnCreateOutputSchema: z.ZodObject<{
|
|
|
3394
3537
|
value: z.ZodString;
|
|
3395
3538
|
color: z.ZodString;
|
|
3396
3539
|
}, z.core.$strip>>>;
|
|
3540
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3541
|
+
type: z.ZodLiteral<"cloze">;
|
|
3397
3542
|
}, z.core.$strip>], "type">;
|
|
3398
3543
|
position: z.ZodNumber;
|
|
3399
3544
|
isPrimary: z.ZodBoolean;
|
|
@@ -3432,6 +3577,8 @@ export declare const NotebaseColumnUpdateInputSchema: z.ZodObject<{
|
|
|
3432
3577
|
value: z.ZodString;
|
|
3433
3578
|
color: z.ZodString;
|
|
3434
3579
|
}, z.core.$strip>>>;
|
|
3580
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3581
|
+
type: z.ZodLiteral<"cloze">;
|
|
3435
3582
|
}, z.core.$strip>], "type">>;
|
|
3436
3583
|
width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3437
3584
|
wrap: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3465,6 +3612,8 @@ export declare const NotebaseColumnUpdateOutputSchema: z.ZodObject<{
|
|
|
3465
3612
|
value: z.ZodString;
|
|
3466
3613
|
color: z.ZodString;
|
|
3467
3614
|
}, z.core.$strip>>>;
|
|
3615
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3616
|
+
type: z.ZodLiteral<"cloze">;
|
|
3468
3617
|
}, z.core.$strip>], "type">;
|
|
3469
3618
|
position: z.ZodNumber;
|
|
3470
3619
|
isPrimary: z.ZodBoolean;
|
|
@@ -3500,13 +3649,72 @@ export declare const notebaseRowSchema: z.ZodObject<{
|
|
|
3500
3649
|
notebaseId: z.ZodString;
|
|
3501
3650
|
cells: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3502
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>>>;
|
|
3503
3678
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
3504
3679
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
3505
3680
|
}, z.core.$strip>;
|
|
3506
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">>>;
|
|
3507
3701
|
export declare const notebaseRowCreateDataSchema: z.ZodObject<{
|
|
3508
3702
|
id: z.ZodOptional<z.ZodUUID>;
|
|
3509
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">>>;
|
|
3510
3718
|
}, z.core.$strict>;
|
|
3511
3719
|
export type NotebaseRowCreateData = z.infer<typeof notebaseRowCreateDataSchema>;
|
|
3512
3720
|
export declare const notebaseRowUpdateDataSchema: z.ZodObject<{
|
|
@@ -3519,6 +3727,20 @@ export declare const NotebaseRowCreateInputSchema: z.ZodObject<{
|
|
|
3519
3727
|
data: z.ZodObject<{
|
|
3520
3728
|
id: z.ZodOptional<z.ZodUUID>;
|
|
3521
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">>>;
|
|
3522
3744
|
}, z.core.$strict>;
|
|
3523
3745
|
}, z.core.$strip>;
|
|
3524
3746
|
export type NotebaseRowCreateInput = z.infer<typeof NotebaseRowCreateInputSchema>;
|
|
@@ -3528,6 +3750,32 @@ export declare const NotebaseRowCreateOutputSchema: z.ZodObject<{
|
|
|
3528
3750
|
notebaseId: z.ZodString;
|
|
3529
3751
|
cells: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3530
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>>>;
|
|
3531
3779
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
3532
3780
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
3533
3781
|
}, z.core.$strip>;
|
|
@@ -3540,6 +3788,20 @@ export declare const NotebaseRowCreateManyInputSchema: z.ZodObject<{
|
|
|
3540
3788
|
rows: z.ZodArray<z.ZodObject<{
|
|
3541
3789
|
id: z.ZodOptional<z.ZodUUID>;
|
|
3542
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">>>;
|
|
3543
3805
|
}, z.core.$strict>>;
|
|
3544
3806
|
}, z.core.$strip>;
|
|
3545
3807
|
export type NotebaseRowCreateManyInput = z.infer<typeof NotebaseRowCreateManyInputSchema>;
|
|
@@ -3549,6 +3811,32 @@ export declare const NotebaseRowCreateManyOutputSchema: z.ZodObject<{
|
|
|
3549
3811
|
notebaseId: z.ZodString;
|
|
3550
3812
|
cells: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3551
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>>>;
|
|
3552
3840
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
3553
3841
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
3554
3842
|
}, z.core.$strip>>;
|
|
@@ -3568,6 +3856,32 @@ export declare const NotebaseRowUpdateOutputSchema: z.ZodObject<{
|
|
|
3568
3856
|
notebaseId: z.ZodUUID;
|
|
3569
3857
|
cells: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3570
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>>>;
|
|
3571
3885
|
createdAt: z.ZodDate;
|
|
3572
3886
|
updatedAt: z.ZodDate;
|
|
3573
3887
|
txid: z.ZodNumber;
|
|
@@ -3591,6 +3905,32 @@ export declare const NotebaseRowUpdateManyOutputSchema: z.ZodObject<{
|
|
|
3591
3905
|
notebaseId: z.ZodString;
|
|
3592
3906
|
cells: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3593
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>>>;
|
|
3594
3934
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
3595
3935
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
3596
3936
|
}, z.core.$strip>>;
|
|
@@ -3637,6 +3977,32 @@ export declare const NotebaseRowListOutputSchema: z.ZodObject<{
|
|
|
3637
3977
|
notebaseId: z.ZodString;
|
|
3638
3978
|
cells: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3639
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>>>;
|
|
3640
4006
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
3641
4007
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
3642
4008
|
}, z.core.$strip>>;
|
|
@@ -3650,6 +4016,32 @@ export declare const NotebaseRowGetOutputSchema: z.ZodObject<{
|
|
|
3650
4016
|
notebaseId: z.ZodString;
|
|
3651
4017
|
cells: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3652
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>>>;
|
|
3653
4045
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
3654
4046
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
3655
4047
|
}, z.core.$strip>;
|
|
@@ -6174,6 +6566,7 @@ export declare const webSyncOperationSchema: z.ZodEnum<{
|
|
|
6174
6566
|
cardStatus: "cardStatus";
|
|
6175
6567
|
createTemplate: "createTemplate";
|
|
6176
6568
|
delete: "delete";
|
|
6569
|
+
deleteCard: "deleteCard";
|
|
6177
6570
|
deleteNote: "deleteNote";
|
|
6178
6571
|
insert: "insert";
|
|
6179
6572
|
review: "review";
|
|
@@ -6235,6 +6628,7 @@ export declare const webSyncEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
6235
6628
|
cardStatus: "cardStatus";
|
|
6236
6629
|
createTemplate: "createTemplate";
|
|
6237
6630
|
delete: "delete";
|
|
6631
|
+
deleteCard: "deleteCard";
|
|
6238
6632
|
deleteNote: "deleteNote";
|
|
6239
6633
|
insert: "insert";
|
|
6240
6634
|
review: "review";
|
|
@@ -6300,6 +6694,7 @@ export declare const reportWebSyncInputSchema: z.ZodObject<{
|
|
|
6300
6694
|
cardStatus: "cardStatus";
|
|
6301
6695
|
createTemplate: "createTemplate";
|
|
6302
6696
|
delete: "delete";
|
|
6697
|
+
deleteCard: "deleteCard";
|
|
6303
6698
|
deleteNote: "deleteNote";
|
|
6304
6699
|
insert: "insert";
|
|
6305
6700
|
review: "review";
|
|
@@ -6539,6 +6934,13 @@ export declare const contract: {
|
|
|
6539
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>>;
|
|
6540
6935
|
};
|
|
6541
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>>;
|
|
6542
6944
|
list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
6543
6945
|
limit: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
6544
6946
|
offset: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
@@ -7840,6 +8242,8 @@ export declare const contract: {
|
|
|
7840
8242
|
value: import("zod").ZodString;
|
|
7841
8243
|
color: import("zod").ZodString;
|
|
7842
8244
|
}, import("zod/v4/core").$strip>>>;
|
|
8245
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
8246
|
+
type: import("zod").ZodLiteral<"cloze">;
|
|
7843
8247
|
}, import("zod/v4/core").$strip>], "type">;
|
|
7844
8248
|
position: import("zod").ZodNumber;
|
|
7845
8249
|
isPrimary: import("zod").ZodBoolean;
|
|
@@ -7853,6 +8257,32 @@ export declare const contract: {
|
|
|
7853
8257
|
notebaseId: import("zod").ZodString;
|
|
7854
8258
|
cells: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
|
|
7855
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>>>;
|
|
7856
8286
|
createdAt: import("zod").ZodCoercedDate<unknown>;
|
|
7857
8287
|
updatedAt: import("zod").ZodCoercedDate<unknown>;
|
|
7858
8288
|
}, import("zod/v4/core").$strip>>;
|
|
@@ -7909,6 +8339,8 @@ export declare const contract: {
|
|
|
7909
8339
|
value: import("zod").ZodString;
|
|
7910
8340
|
color: import("zod").ZodString;
|
|
7911
8341
|
}, import("zod/v4/core").$strip>>>;
|
|
8342
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
8343
|
+
type: import("zod").ZodLiteral<"cloze">;
|
|
7912
8344
|
}, import("zod/v4/core").$strip>], "type">;
|
|
7913
8345
|
position: import("zod").ZodNumber;
|
|
7914
8346
|
isPrimary: import("zod").ZodBoolean;
|
|
@@ -7950,15 +8382,45 @@ export declare const contract: {
|
|
|
7950
8382
|
value: import("zod").ZodString;
|
|
7951
8383
|
color: import("zod").ZodString;
|
|
7952
8384
|
}, import("zod/v4/core").$strip>>>;
|
|
8385
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
8386
|
+
type: import("zod").ZodLiteral<"cloze">;
|
|
7953
8387
|
}, import("zod/v4/core").$strip>], "type">;
|
|
7954
8388
|
}, import("zod/v4/core").$strict>>;
|
|
7955
8389
|
initialRow: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
7956
8390
|
id: import("zod").ZodOptional<import("zod").ZodUUID>;
|
|
7957
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">>>;
|
|
7958
8406
|
}, import("zod/v4/core").$strict>>;
|
|
7959
8407
|
initialRows: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
7960
8408
|
id: import("zod").ZodOptional<import("zod").ZodUUID>;
|
|
7961
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">>>;
|
|
7962
8424
|
}, import("zod/v4/core").$strict>>>;
|
|
7963
8425
|
}, import("zod/v4/core").$strict>>;
|
|
7964
8426
|
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
@@ -8080,6 +8542,8 @@ export declare const contract: {
|
|
|
8080
8542
|
value: import("zod").ZodString;
|
|
8081
8543
|
color: import("zod").ZodString;
|
|
8082
8544
|
}, import("zod/v4/core").$strip>>>;
|
|
8545
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
8546
|
+
type: import("zod").ZodLiteral<"cloze">;
|
|
8083
8547
|
}, import("zod/v4/core").$strip>], "type">;
|
|
8084
8548
|
}, import("zod/v4/core").$strict>;
|
|
8085
8549
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
@@ -8109,6 +8573,8 @@ export declare const contract: {
|
|
|
8109
8573
|
value: import("zod").ZodString;
|
|
8110
8574
|
color: import("zod").ZodString;
|
|
8111
8575
|
}, import("zod/v4/core").$strip>>>;
|
|
8576
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
8577
|
+
type: import("zod").ZodLiteral<"cloze">;
|
|
8112
8578
|
}, import("zod/v4/core").$strip>], "type">;
|
|
8113
8579
|
position: import("zod").ZodNumber;
|
|
8114
8580
|
isPrimary: import("zod").ZodBoolean;
|
|
@@ -8149,6 +8615,8 @@ export declare const contract: {
|
|
|
8149
8615
|
value: import("zod").ZodString;
|
|
8150
8616
|
color: import("zod").ZodString;
|
|
8151
8617
|
}, import("zod/v4/core").$strip>>>;
|
|
8618
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
8619
|
+
type: import("zod").ZodLiteral<"cloze">;
|
|
8152
8620
|
}, import("zod/v4/core").$strip>], "type">>;
|
|
8153
8621
|
width: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
8154
8622
|
wrap: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
@@ -8180,6 +8648,8 @@ export declare const contract: {
|
|
|
8180
8648
|
value: import("zod").ZodString;
|
|
8181
8649
|
color: import("zod").ZodString;
|
|
8182
8650
|
}, import("zod/v4/core").$strip>>>;
|
|
8651
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
8652
|
+
type: import("zod").ZodLiteral<"cloze">;
|
|
8183
8653
|
}, import("zod/v4/core").$strip>], "type">;
|
|
8184
8654
|
position: import("zod").ZodNumber;
|
|
8185
8655
|
isPrimary: import("zod").ZodBoolean;
|
|
@@ -8221,6 +8691,32 @@ export declare const contract: {
|
|
|
8221
8691
|
notebaseId: import("zod").ZodString;
|
|
8222
8692
|
cells: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
|
|
8223
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>>>;
|
|
8224
8720
|
createdAt: import("zod").ZodCoercedDate<unknown>;
|
|
8225
8721
|
updatedAt: import("zod").ZodCoercedDate<unknown>;
|
|
8226
8722
|
}, import("zod/v4/core").$strip>>;
|
|
@@ -8236,6 +8732,32 @@ export declare const contract: {
|
|
|
8236
8732
|
notebaseId: import("zod").ZodString;
|
|
8237
8733
|
cells: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
|
|
8238
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>>>;
|
|
8239
8761
|
createdAt: import("zod").ZodCoercedDate<unknown>;
|
|
8240
8762
|
updatedAt: import("zod").ZodCoercedDate<unknown>;
|
|
8241
8763
|
}, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_ROW_NOT_FOUND">>, {
|
|
@@ -8247,6 +8769,20 @@ export declare const contract: {
|
|
|
8247
8769
|
data: import("zod").ZodObject<{
|
|
8248
8770
|
id: import("zod").ZodOptional<import("zod").ZodUUID>;
|
|
8249
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">>>;
|
|
8250
8786
|
}, import("zod/v4/core").$strict>;
|
|
8251
8787
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
8252
8788
|
note: import("zod").ZodObject<{
|
|
@@ -8254,6 +8790,32 @@ export declare const contract: {
|
|
|
8254
8790
|
notebaseId: import("zod").ZodString;
|
|
8255
8791
|
cells: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
|
|
8256
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>>>;
|
|
8257
8819
|
createdAt: import("zod").ZodCoercedDate<unknown>;
|
|
8258
8820
|
updatedAt: import("zod").ZodCoercedDate<unknown>;
|
|
8259
8821
|
}, import("zod/v4/core").$strip>;
|
|
@@ -8267,6 +8829,20 @@ export declare const contract: {
|
|
|
8267
8829
|
rows: import("zod").ZodArray<import("zod").ZodObject<{
|
|
8268
8830
|
id: import("zod").ZodOptional<import("zod").ZodUUID>;
|
|
8269
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">>>;
|
|
8270
8846
|
}, import("zod/v4/core").$strict>>;
|
|
8271
8847
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
8272
8848
|
items: import("zod").ZodArray<import("zod").ZodObject<{
|
|
@@ -8274,6 +8850,32 @@ export declare const contract: {
|
|
|
8274
8850
|
notebaseId: import("zod").ZodString;
|
|
8275
8851
|
cells: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
|
|
8276
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>>>;
|
|
8277
8879
|
createdAt: import("zod").ZodCoercedDate<unknown>;
|
|
8278
8880
|
updatedAt: import("zod").ZodCoercedDate<unknown>;
|
|
8279
8881
|
}, import("zod/v4/core").$strip>>;
|
|
@@ -8293,6 +8895,32 @@ export declare const contract: {
|
|
|
8293
8895
|
notebaseId: import("zod").ZodUUID;
|
|
8294
8896
|
cells: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
|
|
8295
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>>>;
|
|
8296
8924
|
createdAt: import("zod").ZodDate;
|
|
8297
8925
|
updatedAt: import("zod").ZodDate;
|
|
8298
8926
|
txid: import("zod").ZodNumber;
|
|
@@ -8315,6 +8943,32 @@ export declare const contract: {
|
|
|
8315
8943
|
notebaseId: import("zod").ZodString;
|
|
8316
8944
|
cells: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
|
|
8317
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>>>;
|
|
8318
8972
|
createdAt: import("zod").ZodCoercedDate<unknown>;
|
|
8319
8973
|
updatedAt: import("zod").ZodCoercedDate<unknown>;
|
|
8320
8974
|
}, import("zod/v4/core").$strip>>;
|
|
@@ -10170,6 +10824,7 @@ export declare const contract: {
|
|
|
10170
10824
|
cardStatus: "cardStatus";
|
|
10171
10825
|
createTemplate: "createTemplate";
|
|
10172
10826
|
delete: "delete";
|
|
10827
|
+
deleteCard: "deleteCard";
|
|
10173
10828
|
deleteNote: "deleteNote";
|
|
10174
10829
|
insert: "insert";
|
|
10175
10830
|
review: "review";
|