@read-frog/api-contract 0.17.0 → 0.17.1
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 +404 -404
- package/dist/index.d.ts.map +1 -1
- package/package.json +7 -7
package/dist/index.d.ts
CHANGED
|
@@ -20,28 +20,28 @@ type AgentRoute = Route & {
|
|
|
20
20
|
* keeps generic, so the prose is mirrored there and stays a required `string`
|
|
21
21
|
* for tool definitions. OpenAPI keeps reading `route`.
|
|
22
22
|
*/
|
|
23
|
-
declare function defineAgentProcedure(route: AgentRoute): import("@orpc/contract").ContractProcedureBuilder<import("@orpc/contract").Schema<unknown, unknown>, import("@orpc/contract").Schema<unknown, unknown>, Record<never, never>, {
|
|
23
|
+
export declare function defineAgentProcedure(route: AgentRoute): import("@orpc/contract").ContractProcedureBuilder<import("@orpc/contract").Schema<unknown, unknown>, import("@orpc/contract").Schema<unknown, unknown>, Record<never, never>, {
|
|
24
24
|
summary: string;
|
|
25
25
|
description: string;
|
|
26
26
|
} & Record<never, never>>;
|
|
27
27
|
//#endregion
|
|
28
28
|
//#region src/public-errors.d.ts
|
|
29
|
-
declare const CellValidationFailureReasonSchema: z.ZodEnum<{
|
|
29
|
+
export declare const CellValidationFailureReasonSchema: z.ZodEnum<{
|
|
30
30
|
invalid_date_format: "invalid_date_format";
|
|
31
31
|
invalid_select_option: "invalid_select_option";
|
|
32
32
|
type_mismatch: "type_mismatch";
|
|
33
33
|
unknown_notebase_column: "unknown_notebase_column";
|
|
34
34
|
}>;
|
|
35
|
-
type CellValidationFailureReason = z.infer<typeof CellValidationFailureReasonSchema>;
|
|
36
|
-
declare const CellValidationFailureDetailsSchema: z.ZodObject<{
|
|
35
|
+
export type CellValidationFailureReason = z.infer<typeof CellValidationFailureReasonSchema>;
|
|
36
|
+
export declare const CellValidationFailureDetailsSchema: z.ZodObject<{
|
|
37
37
|
expectedFormat: z.ZodOptional<z.ZodString>;
|
|
38
38
|
expectedType: z.ZodOptional<z.ZodString>;
|
|
39
39
|
receivedType: z.ZodOptional<z.ZodString>;
|
|
40
40
|
receivedValue: z.ZodOptional<z.ZodUnknown>;
|
|
41
41
|
validOptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
42
42
|
}, z.core.$strict>;
|
|
43
|
-
type CellValidationFailureDetails = z.infer<typeof CellValidationFailureDetailsSchema>;
|
|
44
|
-
declare const CellValidationFailedDataSchema: z.ZodObject<{
|
|
43
|
+
export type CellValidationFailureDetails = z.infer<typeof CellValidationFailureDetailsSchema>;
|
|
44
|
+
export declare const CellValidationFailedDataSchema: z.ZodObject<{
|
|
45
45
|
notebaseColumnId: z.ZodString;
|
|
46
46
|
details: z.ZodObject<{
|
|
47
47
|
expectedFormat: z.ZodOptional<z.ZodString>;
|
|
@@ -58,18 +58,18 @@ declare const CellValidationFailedDataSchema: z.ZodObject<{
|
|
|
58
58
|
}>;
|
|
59
59
|
rowIndex: z.ZodOptional<z.ZodNumber>;
|
|
60
60
|
}, z.core.$strict>;
|
|
61
|
-
type CellValidationFailedData = z.infer<typeof CellValidationFailedDataSchema>;
|
|
62
|
-
declare const CardTemplateInvalidColumnsDataSchema: z.ZodObject<{
|
|
61
|
+
export type CellValidationFailedData = z.infer<typeof CellValidationFailedDataSchema>;
|
|
62
|
+
export declare const CardTemplateInvalidColumnsDataSchema: z.ZodObject<{
|
|
63
63
|
notebaseColumnIds: z.ZodArray<z.ZodString>;
|
|
64
64
|
}, z.core.$strict>;
|
|
65
|
-
type CardTemplateInvalidColumnsData = z.infer<typeof CardTemplateInvalidColumnsDataSchema>;
|
|
66
|
-
declare const HostedAiTierRestrictedDataSchema: z.ZodObject<{
|
|
65
|
+
export type CardTemplateInvalidColumnsData = z.infer<typeof CardTemplateInvalidColumnsDataSchema>;
|
|
66
|
+
export declare const HostedAiTierRestrictedDataSchema: z.ZodObject<{
|
|
67
67
|
modelTier: z.ZodEnum<{
|
|
68
68
|
advance: "advance";
|
|
69
69
|
normal: "normal";
|
|
70
70
|
}>;
|
|
71
71
|
}, z.core.$strict>;
|
|
72
|
-
declare const HostedAiQuotaExhaustedDataSchema: z.ZodObject<{
|
|
72
|
+
export declare const HostedAiQuotaExhaustedDataSchema: z.ZodObject<{
|
|
73
73
|
modelTier: z.ZodEnum<{
|
|
74
74
|
advance: "advance";
|
|
75
75
|
normal: "normal";
|
|
@@ -83,7 +83,7 @@ declare const HostedAiQuotaExhaustedDataSchema: z.ZodObject<{
|
|
|
83
83
|
usedPercent: z.ZodNumber;
|
|
84
84
|
resetAt: z.ZodNullable<z.ZodISODateTime>;
|
|
85
85
|
}, z.core.$strict>;
|
|
86
|
-
declare const PUBLIC_APP_ERROR_DEFS: {
|
|
86
|
+
export declare const PUBLIC_APP_ERROR_DEFS: {
|
|
87
87
|
readonly RESOURCE_UPDATE_CONFLICT: {
|
|
88
88
|
readonly message: "The resource changed. Read it again before updating.";
|
|
89
89
|
readonly status: 409;
|
|
@@ -293,12 +293,12 @@ declare const PUBLIC_APP_ERROR_DEFS: {
|
|
|
293
293
|
readonly status: 409;
|
|
294
294
|
};
|
|
295
295
|
};
|
|
296
|
-
type PublicAppErrorCode = keyof typeof PUBLIC_APP_ERROR_DEFS;
|
|
297
|
-
type PublicAppErrorData<TCode extends PublicAppErrorCode> = (typeof PUBLIC_APP_ERROR_DEFS)[TCode] extends {
|
|
296
|
+
export type PublicAppErrorCode = keyof typeof PUBLIC_APP_ERROR_DEFS;
|
|
297
|
+
export type PublicAppErrorData<TCode extends PublicAppErrorCode> = (typeof PUBLIC_APP_ERROR_DEFS)[TCode] extends {
|
|
298
298
|
data: infer TSchema extends z.ZodTypeAny;
|
|
299
299
|
} ? z.output<TSchema> : undefined;
|
|
300
|
-
declare function isPublicAppErrorCode(code: string | undefined): code is PublicAppErrorCode;
|
|
301
|
-
declare function getPublicErrorDefinition<TCode extends PublicAppErrorCode>(code: TCode): {
|
|
300
|
+
export declare function isPublicAppErrorCode(code: string | undefined): code is PublicAppErrorCode;
|
|
301
|
+
export declare function getPublicErrorDefinition<TCode extends PublicAppErrorCode>(code: TCode): {
|
|
302
302
|
readonly RESOURCE_UPDATE_CONFLICT: {
|
|
303
303
|
readonly message: "The resource changed. Read it again before updating.";
|
|
304
304
|
readonly status: 409;
|
|
@@ -508,24 +508,24 @@ declare function getPublicErrorDefinition<TCode extends PublicAppErrorCode>(code
|
|
|
508
508
|
readonly status: 409;
|
|
509
509
|
};
|
|
510
510
|
}[TCode];
|
|
511
|
-
declare function pickPublicErrorMap<const TCodes extends readonly PublicAppErrorCode[]>(...codes: TCodes): Pick<ErrorMap, TCodes[number]>;
|
|
511
|
+
export declare function pickPublicErrorMap<const TCodes extends readonly PublicAppErrorCode[]>(...codes: TCodes): Pick<ErrorMap, TCodes[number]>;
|
|
512
512
|
//#endregion
|
|
513
513
|
//#region src/schemas/beta-access.d.ts
|
|
514
|
-
declare const BetaFeatureKeySchema: z.ZodEnum<{
|
|
514
|
+
export declare const BetaFeatureKeySchema: z.ZodEnum<{
|
|
515
515
|
ebook: "ebook";
|
|
516
516
|
notebase: "notebase";
|
|
517
517
|
videoTranscription: "videoTranscription";
|
|
518
518
|
}>;
|
|
519
|
-
type BetaFeatureKey = z.infer<typeof BetaFeatureKeySchema>;
|
|
520
|
-
declare const BetaAccessStatusInputSchema: z.ZodObject<{
|
|
519
|
+
export type BetaFeatureKey = z.infer<typeof BetaFeatureKeySchema>;
|
|
520
|
+
export declare const BetaAccessStatusInputSchema: z.ZodObject<{
|
|
521
521
|
featureKey: z.ZodEnum<{
|
|
522
522
|
ebook: "ebook";
|
|
523
523
|
notebase: "notebase";
|
|
524
524
|
videoTranscription: "videoTranscription";
|
|
525
525
|
}>;
|
|
526
526
|
}, z.core.$strict>;
|
|
527
|
-
type BetaAccessStatusInput = z.infer<typeof BetaAccessStatusInputSchema>;
|
|
528
|
-
declare const BetaAccessStatusOutputSchema: z.ZodObject<{
|
|
527
|
+
export type BetaAccessStatusInput = z.infer<typeof BetaAccessStatusInputSchema>;
|
|
528
|
+
export declare const BetaAccessStatusOutputSchema: z.ZodObject<{
|
|
529
529
|
featureKey: z.ZodEnum<{
|
|
530
530
|
ebook: "ebook";
|
|
531
531
|
notebase: "notebase";
|
|
@@ -533,15 +533,15 @@ declare const BetaAccessStatusOutputSchema: z.ZodObject<{
|
|
|
533
533
|
}>;
|
|
534
534
|
allowed: z.ZodBoolean;
|
|
535
535
|
}, z.core.$strip>;
|
|
536
|
-
type BetaAccessStatusOutput = z.infer<typeof BetaAccessStatusOutputSchema>;
|
|
536
|
+
export type BetaAccessStatusOutput = z.infer<typeof BetaAccessStatusOutputSchema>;
|
|
537
537
|
//#endregion
|
|
538
538
|
//#region src/schemas/billing.d.ts
|
|
539
|
-
declare const billingIntervalSchema: z.ZodEnum<{
|
|
539
|
+
export declare const billingIntervalSchema: z.ZodEnum<{
|
|
540
540
|
month: "month";
|
|
541
541
|
year: "year";
|
|
542
542
|
}>;
|
|
543
|
-
type BillingInterval = z.infer<typeof billingIntervalSchema>;
|
|
544
|
-
declare const billingSubscriptionStatusSchema: z.ZodEnum<{
|
|
543
|
+
export type BillingInterval = z.infer<typeof billingIntervalSchema>;
|
|
544
|
+
export declare const billingSubscriptionStatusSchema: z.ZodEnum<{
|
|
545
545
|
active: "active";
|
|
546
546
|
canceled: "canceled";
|
|
547
547
|
incomplete: "incomplete";
|
|
@@ -551,13 +551,13 @@ declare const billingSubscriptionStatusSchema: z.ZodEnum<{
|
|
|
551
551
|
trialing: "trialing";
|
|
552
552
|
unpaid: "unpaid";
|
|
553
553
|
}>;
|
|
554
|
-
type BillingSubscriptionStatus = z.infer<typeof billingSubscriptionStatusSchema>;
|
|
555
|
-
declare const billingPlanSchema: z.ZodEnum<{
|
|
554
|
+
export type BillingSubscriptionStatus = z.infer<typeof billingSubscriptionStatusSchema>;
|
|
555
|
+
export declare const billingPlanSchema: z.ZodEnum<{
|
|
556
556
|
free: "free";
|
|
557
557
|
pro: "pro";
|
|
558
558
|
ultra: "ultra";
|
|
559
559
|
}>;
|
|
560
|
-
type BillingPlan = z.infer<typeof billingPlanSchema>;
|
|
560
|
+
export type BillingPlan = z.infer<typeof billingPlanSchema>;
|
|
561
561
|
/**
|
|
562
562
|
* Whether a plan may use a feature, given the plans that feature allows.
|
|
563
563
|
*
|
|
@@ -566,7 +566,7 @@ type BillingPlan = z.infer<typeof billingPlanSchema>;
|
|
|
566
566
|
* down. The cost is that nothing derives from it automatically -- a feature's
|
|
567
567
|
* pricing-card placement is a companion edit, noted at each `*_ALLOWED_PLANS`.
|
|
568
568
|
*/
|
|
569
|
-
declare function isPlanAllowed(plan: BillingPlan, allowed: readonly BillingPlan[]): boolean;
|
|
569
|
+
export declare function isPlanAllowed(plan: BillingPlan, allowed: readonly BillingPlan[]): boolean;
|
|
570
570
|
/**
|
|
571
571
|
* Plans that may use the remote MCP server.
|
|
572
572
|
*
|
|
@@ -579,19 +579,19 @@ declare function isPlanAllowed(plan: BillingPlan, allowed: readonly BillingPlan[
|
|
|
579
579
|
* `apps/www/src/routes/pricing.tsx` lives on the lowest allowed plan's card
|
|
580
580
|
* (higher cards inherit it through their "everything in <lower plan>" line).
|
|
581
581
|
*/
|
|
582
|
-
declare const MCP_ALLOWED_PLANS: readonly ["ultra"];
|
|
583
|
-
declare const billingCheckoutPlanSchema: z.ZodEnum<{
|
|
582
|
+
export declare const MCP_ALLOWED_PLANS: readonly ["ultra"];
|
|
583
|
+
export declare const billingCheckoutPlanSchema: z.ZodEnum<{
|
|
584
584
|
pro: "pro";
|
|
585
585
|
ultra: "ultra";
|
|
586
586
|
}>;
|
|
587
|
-
type BillingCheckoutPlan = z.infer<typeof billingCheckoutPlanSchema>;
|
|
588
|
-
declare const billingCurrencySchema: z.ZodEnum<{
|
|
587
|
+
export type BillingCheckoutPlan = z.infer<typeof billingCheckoutPlanSchema>;
|
|
588
|
+
export declare const billingCurrencySchema: z.ZodEnum<{
|
|
589
589
|
cad: "cad";
|
|
590
590
|
cny: "cny";
|
|
591
591
|
usd: "usd";
|
|
592
592
|
}>;
|
|
593
|
-
type BillingCurrency = z.infer<typeof billingCurrencySchema>;
|
|
594
|
-
declare const billingLocaleSchema: z.ZodEnum<{
|
|
593
|
+
export type BillingCurrency = z.infer<typeof billingCurrencySchema>;
|
|
594
|
+
export declare const billingLocaleSchema: z.ZodEnum<{
|
|
595
595
|
en: "en";
|
|
596
596
|
es: "es";
|
|
597
597
|
ja: "ja";
|
|
@@ -602,13 +602,13 @@ declare const billingLocaleSchema: z.ZodEnum<{
|
|
|
602
602
|
zh: "zh";
|
|
603
603
|
"zh-TW": "zh-TW";
|
|
604
604
|
}>;
|
|
605
|
-
type BillingLocale = z.infer<typeof billingLocaleSchema>;
|
|
606
|
-
declare const billingAccessSourceSchema: z.ZodEnum<{
|
|
605
|
+
export type BillingLocale = z.infer<typeof billingLocaleSchema>;
|
|
606
|
+
export declare const billingAccessSourceSchema: z.ZodEnum<{
|
|
607
607
|
pass: "pass";
|
|
608
608
|
subscription: "subscription";
|
|
609
609
|
}>;
|
|
610
|
-
type BillingAccessSource = z.infer<typeof billingAccessSourceSchema>;
|
|
611
|
-
declare const billingScheduledChangeSchema: z.ZodObject<{
|
|
610
|
+
export type BillingAccessSource = z.infer<typeof billingAccessSourceSchema>;
|
|
611
|
+
export declare const billingScheduledChangeSchema: z.ZodObject<{
|
|
612
612
|
plan: z.ZodEnum<{
|
|
613
613
|
pro: "pro";
|
|
614
614
|
ultra: "ultra";
|
|
@@ -619,8 +619,8 @@ declare const billingScheduledChangeSchema: z.ZodObject<{
|
|
|
619
619
|
}>;
|
|
620
620
|
effectiveAt: z.ZodCoercedDate<unknown>;
|
|
621
621
|
}, z.core.$strict>;
|
|
622
|
-
type BillingScheduledChange = z.infer<typeof billingScheduledChangeSchema>;
|
|
623
|
-
declare const billingStatusSchema: z.ZodObject<{
|
|
622
|
+
export type BillingScheduledChange = z.infer<typeof billingScheduledChangeSchema>;
|
|
623
|
+
export declare const billingStatusSchema: z.ZodObject<{
|
|
624
624
|
plan: z.ZodEnum<{
|
|
625
625
|
free: "free";
|
|
626
626
|
pro: "pro";
|
|
@@ -661,8 +661,8 @@ declare const billingStatusSchema: z.ZodObject<{
|
|
|
661
661
|
notebaseNoteLimit: z.ZodNumber;
|
|
662
662
|
notebaseNoteCount: z.ZodNumber;
|
|
663
663
|
}, z.core.$strict>;
|
|
664
|
-
type BillingStatus = z.infer<typeof billingStatusSchema>;
|
|
665
|
-
declare const billingCreateCheckoutSessionInputSchema: z.ZodObject<{
|
|
664
|
+
export type BillingStatus = z.infer<typeof billingStatusSchema>;
|
|
665
|
+
export declare const billingCreateCheckoutSessionInputSchema: z.ZodObject<{
|
|
666
666
|
currency: z.ZodEnum<{
|
|
667
667
|
cad: "cad";
|
|
668
668
|
cny: "cny";
|
|
@@ -688,8 +688,8 @@ declare const billingCreateCheckoutSessionInputSchema: z.ZodObject<{
|
|
|
688
688
|
ultra: "ultra";
|
|
689
689
|
}>>;
|
|
690
690
|
}, z.core.$strict>;
|
|
691
|
-
type BillingCreateCheckoutSessionInput = z.infer<typeof billingCreateCheckoutSessionInputSchema>;
|
|
692
|
-
declare const billingCreateCustomerPortalSessionInputSchema: z.ZodObject<{
|
|
691
|
+
export type BillingCreateCheckoutSessionInput = z.infer<typeof billingCreateCheckoutSessionInputSchema>;
|
|
692
|
+
export declare const billingCreateCustomerPortalSessionInputSchema: z.ZodObject<{
|
|
693
693
|
locale: z.ZodEnum<{
|
|
694
694
|
en: "en";
|
|
695
695
|
es: "es";
|
|
@@ -702,18 +702,18 @@ declare const billingCreateCustomerPortalSessionInputSchema: z.ZodObject<{
|
|
|
702
702
|
"zh-TW": "zh-TW";
|
|
703
703
|
}>;
|
|
704
704
|
}, z.core.$strict>;
|
|
705
|
-
type BillingCreateCustomerPortalSessionInput = z.infer<typeof billingCreateCustomerPortalSessionInputSchema>;
|
|
706
|
-
declare const billingSessionUrlOutputSchema: z.ZodObject<{
|
|
705
|
+
export type BillingCreateCustomerPortalSessionInput = z.infer<typeof billingCreateCustomerPortalSessionInputSchema>;
|
|
706
|
+
export declare const billingSessionUrlOutputSchema: z.ZodObject<{
|
|
707
707
|
url: z.ZodURL;
|
|
708
708
|
}, z.core.$strict>;
|
|
709
|
-
type BillingSessionUrlOutput = z.infer<typeof billingSessionUrlOutputSchema>;
|
|
710
|
-
declare const billingCancelScheduledChangeOutputSchema: z.ZodObject<{
|
|
709
|
+
export type BillingSessionUrlOutput = z.infer<typeof billingSessionUrlOutputSchema>;
|
|
710
|
+
export declare const billingCancelScheduledChangeOutputSchema: z.ZodObject<{
|
|
711
711
|
success: z.ZodLiteral<true>;
|
|
712
712
|
}, z.core.$strict>;
|
|
713
|
-
type BillingCancelScheduledChangeOutput = z.infer<typeof billingCancelScheduledChangeOutputSchema>;
|
|
713
|
+
export type BillingCancelScheduledChangeOutput = z.infer<typeof billingCancelScheduledChangeOutputSchema>;
|
|
714
714
|
//#endregion
|
|
715
715
|
//#region src/schemas/card.d.ts
|
|
716
|
-
declare const cardTemplateSchema: z.ZodObject<{
|
|
716
|
+
export declare const cardTemplateSchema: z.ZodObject<{
|
|
717
717
|
id: z.ZodUUID;
|
|
718
718
|
notebaseId: z.ZodUUID;
|
|
719
719
|
name: z.ZodString;
|
|
@@ -725,14 +725,14 @@ declare const cardTemplateSchema: z.ZodObject<{
|
|
|
725
725
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
726
726
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
727
727
|
}, z.core.$strip>;
|
|
728
|
-
type CardTemplate = z.infer<typeof cardTemplateSchema>;
|
|
729
|
-
declare const CardTemplateListInputSchema: z.ZodObject<{
|
|
728
|
+
export type CardTemplate = z.infer<typeof cardTemplateSchema>;
|
|
729
|
+
export declare const CardTemplateListInputSchema: z.ZodObject<{
|
|
730
730
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
731
731
|
offset: z.ZodOptional<z.ZodNumber>;
|
|
732
732
|
notebaseId: z.ZodOptional<z.ZodUUID>;
|
|
733
733
|
}, z.core.$strip>;
|
|
734
|
-
type CardTemplateListInput = z.infer<typeof CardTemplateListInputSchema>;
|
|
735
|
-
declare const CardTemplateListOutputSchema: z.ZodObject<{
|
|
734
|
+
export type CardTemplateListInput = z.infer<typeof CardTemplateListInputSchema>;
|
|
735
|
+
export declare const CardTemplateListOutputSchema: z.ZodObject<{
|
|
736
736
|
items: z.ZodArray<z.ZodObject<{
|
|
737
737
|
id: z.ZodUUID;
|
|
738
738
|
notebaseId: z.ZodUUID;
|
|
@@ -747,12 +747,12 @@ declare const CardTemplateListOutputSchema: z.ZodObject<{
|
|
|
747
747
|
}, z.core.$strip>>;
|
|
748
748
|
hasMore: z.ZodBoolean;
|
|
749
749
|
}, z.core.$strip>;
|
|
750
|
-
type CardTemplateListOutput = z.infer<typeof CardTemplateListOutputSchema>;
|
|
751
|
-
declare const CardTemplateGetInputSchema: z.ZodObject<{
|
|
750
|
+
export type CardTemplateListOutput = z.infer<typeof CardTemplateListOutputSchema>;
|
|
751
|
+
export declare const CardTemplateGetInputSchema: z.ZodObject<{
|
|
752
752
|
id: z.ZodUUID;
|
|
753
753
|
}, z.core.$strip>;
|
|
754
|
-
type CardTemplateGetInput = z.infer<typeof CardTemplateGetInputSchema>;
|
|
755
|
-
declare const CardTemplateGetOutputSchema: z.ZodObject<{
|
|
754
|
+
export type CardTemplateGetInput = z.infer<typeof CardTemplateGetInputSchema>;
|
|
755
|
+
export declare const CardTemplateGetOutputSchema: z.ZodObject<{
|
|
756
756
|
id: z.ZodUUID;
|
|
757
757
|
notebaseId: z.ZodUUID;
|
|
758
758
|
name: z.ZodString;
|
|
@@ -764,8 +764,8 @@ declare const CardTemplateGetOutputSchema: z.ZodObject<{
|
|
|
764
764
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
765
765
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
766
766
|
}, z.core.$strip>;
|
|
767
|
-
type CardTemplateGetOutput = z.infer<typeof CardTemplateGetOutputSchema>;
|
|
768
|
-
declare const CardTemplateCreateInputSchema: z.ZodObject<{
|
|
767
|
+
export type CardTemplateGetOutput = z.infer<typeof CardTemplateGetOutputSchema>;
|
|
768
|
+
export declare const CardTemplateCreateInputSchema: z.ZodObject<{
|
|
769
769
|
id: z.ZodOptional<z.ZodUUID>;
|
|
770
770
|
notebaseId: z.ZodUUID;
|
|
771
771
|
name: z.ZodString;
|
|
@@ -775,8 +775,8 @@ declare const CardTemplateCreateInputSchema: z.ZodObject<{
|
|
|
775
775
|
backPattern: z.ZodString;
|
|
776
776
|
}, z.core.$strict>], "type">;
|
|
777
777
|
}, z.core.$strict>;
|
|
778
|
-
type CardTemplateCreateInput = z.infer<typeof CardTemplateCreateInputSchema>;
|
|
779
|
-
declare const CardTemplateCreateOutputSchema: z.ZodObject<{
|
|
778
|
+
export type CardTemplateCreateInput = z.infer<typeof CardTemplateCreateInputSchema>;
|
|
779
|
+
export declare const CardTemplateCreateOutputSchema: z.ZodObject<{
|
|
780
780
|
id: z.ZodUUID;
|
|
781
781
|
notebaseId: z.ZodUUID;
|
|
782
782
|
name: z.ZodString;
|
|
@@ -789,8 +789,8 @@ declare const CardTemplateCreateOutputSchema: z.ZodObject<{
|
|
|
789
789
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
790
790
|
txid: z.ZodNumber;
|
|
791
791
|
}, z.core.$strip>;
|
|
792
|
-
type CardTemplateCreateOutput = z.infer<typeof CardTemplateCreateOutputSchema>;
|
|
793
|
-
declare const CardTemplateUpdateInputSchema: z.ZodObject<{
|
|
792
|
+
export type CardTemplateCreateOutput = z.infer<typeof CardTemplateCreateOutputSchema>;
|
|
793
|
+
export declare const CardTemplateUpdateInputSchema: z.ZodObject<{
|
|
794
794
|
expectedUpdatedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
795
795
|
id: z.ZodUUID;
|
|
796
796
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -800,8 +800,8 @@ declare const CardTemplateUpdateInputSchema: z.ZodObject<{
|
|
|
800
800
|
backPattern: z.ZodString;
|
|
801
801
|
}, z.core.$strict>], "type">>;
|
|
802
802
|
}, z.core.$strict>;
|
|
803
|
-
type CardTemplateUpdateInput = z.infer<typeof CardTemplateUpdateInputSchema>;
|
|
804
|
-
declare const CardTemplateUpdateOutputSchema: z.ZodObject<{
|
|
803
|
+
export type CardTemplateUpdateInput = z.infer<typeof CardTemplateUpdateInputSchema>;
|
|
804
|
+
export declare const CardTemplateUpdateOutputSchema: z.ZodObject<{
|
|
805
805
|
id: z.ZodUUID;
|
|
806
806
|
notebaseId: z.ZodUUID;
|
|
807
807
|
name: z.ZodString;
|
|
@@ -814,17 +814,17 @@ declare const CardTemplateUpdateOutputSchema: z.ZodObject<{
|
|
|
814
814
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
815
815
|
txid: z.ZodNumber;
|
|
816
816
|
}, z.core.$strip>;
|
|
817
|
-
type CardTemplateUpdateOutput = z.infer<typeof CardTemplateUpdateOutputSchema>;
|
|
818
|
-
declare const CardTemplateDeleteInputSchema: z.ZodObject<{
|
|
817
|
+
export type CardTemplateUpdateOutput = z.infer<typeof CardTemplateUpdateOutputSchema>;
|
|
818
|
+
export declare const CardTemplateDeleteInputSchema: z.ZodObject<{
|
|
819
819
|
id: z.ZodUUID;
|
|
820
820
|
}, z.core.$strip>;
|
|
821
|
-
type CardTemplateDeleteInput = z.infer<typeof CardTemplateDeleteInputSchema>;
|
|
822
|
-
declare const CardTemplateDeleteOutputSchema: z.ZodObject<{
|
|
821
|
+
export type CardTemplateDeleteInput = z.infer<typeof CardTemplateDeleteInputSchema>;
|
|
822
|
+
export declare const CardTemplateDeleteOutputSchema: z.ZodObject<{
|
|
823
823
|
id: z.ZodUUID;
|
|
824
824
|
txid: z.ZodNumber;
|
|
825
825
|
}, z.core.$strip>;
|
|
826
|
-
type CardTemplateDeleteOutput = z.infer<typeof CardTemplateDeleteOutputSchema>;
|
|
827
|
-
declare const cardSchema: z.ZodObject<{
|
|
826
|
+
export type CardTemplateDeleteOutput = z.infer<typeof CardTemplateDeleteOutputSchema>;
|
|
827
|
+
export declare const cardSchema: z.ZodObject<{
|
|
828
828
|
notebaseId: z.ZodUUID;
|
|
829
829
|
notebaseRowId: z.ZodUUID;
|
|
830
830
|
templateId: z.ZodUUID;
|
|
@@ -854,8 +854,8 @@ declare const cardSchema: z.ZodObject<{
|
|
|
854
854
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
855
855
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
856
856
|
}, z.core.$strip>;
|
|
857
|
-
type Card = z.infer<typeof cardSchema>;
|
|
858
|
-
declare const renderedCardSchema: z.ZodObject<{
|
|
857
|
+
export type Card = z.infer<typeof cardSchema>;
|
|
858
|
+
export declare const renderedCardSchema: z.ZodObject<{
|
|
859
859
|
notebaseId: z.ZodUUID;
|
|
860
860
|
notebaseRowId: z.ZodUUID;
|
|
861
861
|
templateId: z.ZodUUID;
|
|
@@ -887,8 +887,8 @@ declare const renderedCardSchema: z.ZodObject<{
|
|
|
887
887
|
front: z.ZodString;
|
|
888
888
|
back: z.ZodString;
|
|
889
889
|
}, z.core.$strip>;
|
|
890
|
-
type RenderedCard = z.infer<typeof renderedCardSchema>;
|
|
891
|
-
declare const CardListInputSchema: z.ZodObject<{
|
|
890
|
+
export type RenderedCard = z.infer<typeof renderedCardSchema>;
|
|
891
|
+
export declare const CardListInputSchema: z.ZodObject<{
|
|
892
892
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
893
893
|
offset: z.ZodOptional<z.ZodNumber>;
|
|
894
894
|
notebaseId: z.ZodOptional<z.ZodUUID>;
|
|
@@ -901,8 +901,8 @@ declare const CardListInputSchema: z.ZodObject<{
|
|
|
901
901
|
suspended: "suspended";
|
|
902
902
|
}>>;
|
|
903
903
|
}, z.core.$strip>;
|
|
904
|
-
type CardListInput = z.infer<typeof CardListInputSchema>;
|
|
905
|
-
declare const CardListOutputSchema: z.ZodObject<{
|
|
904
|
+
export type CardListInput = z.infer<typeof CardListInputSchema>;
|
|
905
|
+
export declare const CardListOutputSchema: z.ZodObject<{
|
|
906
906
|
items: z.ZodArray<z.ZodObject<{
|
|
907
907
|
notebaseId: z.ZodUUID;
|
|
908
908
|
notebaseRowId: z.ZodUUID;
|
|
@@ -937,12 +937,12 @@ declare const CardListOutputSchema: z.ZodObject<{
|
|
|
937
937
|
}, z.core.$strip>>;
|
|
938
938
|
hasMore: z.ZodBoolean;
|
|
939
939
|
}, z.core.$strip>;
|
|
940
|
-
type CardListOutput = z.infer<typeof CardListOutputSchema>;
|
|
941
|
-
declare const CardGetInputSchema: z.ZodObject<{
|
|
940
|
+
export type CardListOutput = z.infer<typeof CardListOutputSchema>;
|
|
941
|
+
export declare const CardGetInputSchema: z.ZodObject<{
|
|
942
942
|
id: z.ZodUUID;
|
|
943
943
|
}, z.core.$strip>;
|
|
944
|
-
type CardGetInput = z.infer<typeof CardGetInputSchema>;
|
|
945
|
-
declare const CardGetOutputSchema: z.ZodObject<{
|
|
944
|
+
export type CardGetInput = z.infer<typeof CardGetInputSchema>;
|
|
945
|
+
export declare const CardGetOutputSchema: z.ZodObject<{
|
|
946
946
|
notebaseId: z.ZodUUID;
|
|
947
947
|
notebaseRowId: z.ZodUUID;
|
|
948
948
|
templateId: z.ZodUUID;
|
|
@@ -974,31 +974,31 @@ declare const CardGetOutputSchema: z.ZodObject<{
|
|
|
974
974
|
front: z.ZodString;
|
|
975
975
|
back: z.ZodString;
|
|
976
976
|
}, z.core.$strip>;
|
|
977
|
-
type CardGetOutput = z.infer<typeof CardGetOutputSchema>;
|
|
978
|
-
declare const CardGenerateInputSchema: z.ZodObject<{
|
|
977
|
+
export type CardGetOutput = z.infer<typeof CardGetOutputSchema>;
|
|
978
|
+
export declare const CardGenerateInputSchema: z.ZodObject<{
|
|
979
979
|
notebaseId: z.ZodUUID;
|
|
980
980
|
templateId: z.ZodOptional<z.ZodUUID>;
|
|
981
981
|
}, z.core.$strip>;
|
|
982
|
-
type CardGenerateInput = z.infer<typeof CardGenerateInputSchema>;
|
|
983
|
-
declare const CardGenerateOutputSchema: z.ZodObject<{
|
|
982
|
+
export type CardGenerateInput = z.infer<typeof CardGenerateInputSchema>;
|
|
983
|
+
export declare const CardGenerateOutputSchema: z.ZodObject<{
|
|
984
984
|
created: z.ZodNumber;
|
|
985
985
|
txid: z.ZodNumber;
|
|
986
986
|
}, z.core.$strip>;
|
|
987
|
-
type CardGenerateOutput = z.infer<typeof CardGenerateOutputSchema>;
|
|
987
|
+
export type CardGenerateOutput = z.infer<typeof CardGenerateOutputSchema>;
|
|
988
988
|
//#endregion
|
|
989
989
|
//#region src/schemas/ebook.d.ts
|
|
990
|
-
declare const ebookStatusSchema: z.ZodEnum<{
|
|
990
|
+
export declare const ebookStatusSchema: z.ZodEnum<{
|
|
991
991
|
pending: "pending";
|
|
992
992
|
ready: "ready";
|
|
993
993
|
}>;
|
|
994
|
-
type EbookStatus = z.infer<typeof ebookStatusSchema>;
|
|
995
|
-
declare const ebookCoverContentTypeSchema: z.ZodEnum<{
|
|
994
|
+
export type EbookStatus = z.infer<typeof ebookStatusSchema>;
|
|
995
|
+
export declare const ebookCoverContentTypeSchema: z.ZodEnum<{
|
|
996
996
|
"image/jpeg": "image/jpeg";
|
|
997
997
|
"image/png": "image/png";
|
|
998
998
|
"image/webp": "image/webp";
|
|
999
999
|
}>;
|
|
1000
|
-
type EbookCoverContentType = z.infer<typeof ebookCoverContentTypeSchema>;
|
|
1001
|
-
declare const ebookListItemSchema: z.ZodObject<{
|
|
1000
|
+
export type EbookCoverContentType = z.infer<typeof ebookCoverContentTypeSchema>;
|
|
1001
|
+
export declare const ebookListItemSchema: z.ZodObject<{
|
|
1002
1002
|
id: z.ZodUUID;
|
|
1003
1003
|
title: z.ZodString;
|
|
1004
1004
|
author: z.ZodNullable<z.ZodString>;
|
|
@@ -1014,8 +1014,8 @@ declare const ebookListItemSchema: z.ZodObject<{
|
|
|
1014
1014
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
1015
1015
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
1016
1016
|
}, z.core.$strict>;
|
|
1017
|
-
type EbookListItem = z.infer<typeof ebookListItemSchema>;
|
|
1018
|
-
declare const ebookDetailSchema: z.ZodObject<{
|
|
1017
|
+
export type EbookListItem = z.infer<typeof ebookListItemSchema>;
|
|
1018
|
+
export declare const ebookDetailSchema: z.ZodObject<{
|
|
1019
1019
|
id: z.ZodUUID;
|
|
1020
1020
|
title: z.ZodString;
|
|
1021
1021
|
author: z.ZodNullable<z.ZodString>;
|
|
@@ -1032,15 +1032,15 @@ declare const ebookDetailSchema: z.ZodObject<{
|
|
|
1032
1032
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
1033
1033
|
progressCfi: z.ZodNullable<z.ZodString>;
|
|
1034
1034
|
}, z.core.$strict>;
|
|
1035
|
-
type EbookDetail = z.infer<typeof ebookDetailSchema>;
|
|
1036
|
-
declare const ebookQuotaSchema: z.ZodObject<{
|
|
1035
|
+
export type EbookDetail = z.infer<typeof ebookDetailSchema>;
|
|
1036
|
+
export declare const ebookQuotaSchema: z.ZodObject<{
|
|
1037
1037
|
count: z.ZodNumber;
|
|
1038
1038
|
limit: z.ZodNumber;
|
|
1039
1039
|
}, z.core.$strict>;
|
|
1040
|
-
type EbookQuota = z.infer<typeof ebookQuotaSchema>;
|
|
1041
|
-
declare const ebookListInputSchema: z.ZodObject<{}, z.core.$strict>;
|
|
1042
|
-
type EbookListInput = z.infer<typeof ebookListInputSchema>;
|
|
1043
|
-
declare const ebookListOutputSchema: z.ZodObject<{
|
|
1040
|
+
export type EbookQuota = z.infer<typeof ebookQuotaSchema>;
|
|
1041
|
+
export declare const ebookListInputSchema: z.ZodObject<{}, z.core.$strict>;
|
|
1042
|
+
export type EbookListInput = z.infer<typeof ebookListInputSchema>;
|
|
1043
|
+
export declare const ebookListOutputSchema: z.ZodObject<{
|
|
1044
1044
|
items: z.ZodArray<z.ZodObject<{
|
|
1045
1045
|
id: z.ZodUUID;
|
|
1046
1046
|
title: z.ZodString;
|
|
@@ -1062,12 +1062,12 @@ declare const ebookListOutputSchema: z.ZodObject<{
|
|
|
1062
1062
|
limit: z.ZodNumber;
|
|
1063
1063
|
}, z.core.$strict>;
|
|
1064
1064
|
}, z.core.$strict>;
|
|
1065
|
-
type EbookListOutput = z.infer<typeof ebookListOutputSchema>;
|
|
1066
|
-
declare const ebookGetInputSchema: z.ZodObject<{
|
|
1065
|
+
export type EbookListOutput = z.infer<typeof ebookListOutputSchema>;
|
|
1066
|
+
export declare const ebookGetInputSchema: z.ZodObject<{
|
|
1067
1067
|
id: z.ZodUUID;
|
|
1068
1068
|
}, z.core.$strict>;
|
|
1069
|
-
type EbookGetInput = z.infer<typeof ebookGetInputSchema>;
|
|
1070
|
-
declare const ebookGetOutputSchema: z.ZodObject<{
|
|
1069
|
+
export type EbookGetInput = z.infer<typeof ebookGetInputSchema>;
|
|
1070
|
+
export declare const ebookGetOutputSchema: z.ZodObject<{
|
|
1071
1071
|
ebook: z.ZodObject<{
|
|
1072
1072
|
id: z.ZodUUID;
|
|
1073
1073
|
title: z.ZodString;
|
|
@@ -1086,8 +1086,8 @@ declare const ebookGetOutputSchema: z.ZodObject<{
|
|
|
1086
1086
|
progressCfi: z.ZodNullable<z.ZodString>;
|
|
1087
1087
|
}, z.core.$strict>;
|
|
1088
1088
|
}, z.core.$strict>;
|
|
1089
|
-
type EbookGetOutput = z.infer<typeof ebookGetOutputSchema>;
|
|
1090
|
-
declare const ebookRequestUploadInputSchema: z.ZodObject<{
|
|
1089
|
+
export type EbookGetOutput = z.infer<typeof ebookGetOutputSchema>;
|
|
1090
|
+
export declare const ebookRequestUploadInputSchema: z.ZodObject<{
|
|
1091
1091
|
title: z.ZodString;
|
|
1092
1092
|
author: z.ZodOptional<z.ZodString>;
|
|
1093
1093
|
language: z.ZodOptional<z.ZodString>;
|
|
@@ -1097,17 +1097,17 @@ declare const ebookRequestUploadInputSchema: z.ZodObject<{
|
|
|
1097
1097
|
"image/webp": "image/webp";
|
|
1098
1098
|
}>>;
|
|
1099
1099
|
}, z.core.$strict>;
|
|
1100
|
-
type EbookRequestUploadInput = z.infer<typeof ebookRequestUploadInputSchema>;
|
|
1100
|
+
export type EbookRequestUploadInput = z.infer<typeof ebookRequestUploadInputSchema>;
|
|
1101
1101
|
/**
|
|
1102
1102
|
* S3 POST form policy. `fields` must be appended to the form in iteration order
|
|
1103
1103
|
* with the file last; S3 ignores anything sent after the `file` part.
|
|
1104
1104
|
*/
|
|
1105
|
-
declare const ebookPresignedPostSchema: z.ZodObject<{
|
|
1105
|
+
export declare const ebookPresignedPostSchema: z.ZodObject<{
|
|
1106
1106
|
url: z.ZodURL;
|
|
1107
1107
|
fields: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1108
1108
|
}, z.core.$strict>;
|
|
1109
|
-
type EbookPresignedPost = z.infer<typeof ebookPresignedPostSchema>;
|
|
1110
|
-
declare const ebookRequestUploadOutputSchema: z.ZodObject<{
|
|
1109
|
+
export type EbookPresignedPost = z.infer<typeof ebookPresignedPostSchema>;
|
|
1110
|
+
export declare const ebookRequestUploadOutputSchema: z.ZodObject<{
|
|
1111
1111
|
ebookId: z.ZodUUID;
|
|
1112
1112
|
upload: z.ZodObject<{
|
|
1113
1113
|
url: z.ZodURL;
|
|
@@ -1119,12 +1119,12 @@ declare const ebookRequestUploadOutputSchema: z.ZodObject<{
|
|
|
1119
1119
|
}, z.core.$strict>>;
|
|
1120
1120
|
expiresAt: z.ZodCoercedDate<unknown>;
|
|
1121
1121
|
}, z.core.$strict>;
|
|
1122
|
-
type EbookRequestUploadOutput = z.infer<typeof ebookRequestUploadOutputSchema>;
|
|
1123
|
-
declare const ebookFinalizeUploadInputSchema: z.ZodObject<{
|
|
1122
|
+
export type EbookRequestUploadOutput = z.infer<typeof ebookRequestUploadOutputSchema>;
|
|
1123
|
+
export declare const ebookFinalizeUploadInputSchema: z.ZodObject<{
|
|
1124
1124
|
ebookId: z.ZodUUID;
|
|
1125
1125
|
}, z.core.$strict>;
|
|
1126
|
-
type EbookFinalizeUploadInput = z.infer<typeof ebookFinalizeUploadInputSchema>;
|
|
1127
|
-
declare const ebookFinalizeUploadOutputSchema: z.ZodObject<{
|
|
1126
|
+
export type EbookFinalizeUploadInput = z.infer<typeof ebookFinalizeUploadInputSchema>;
|
|
1127
|
+
export declare const ebookFinalizeUploadOutputSchema: z.ZodObject<{
|
|
1128
1128
|
ebook: z.ZodObject<{
|
|
1129
1129
|
id: z.ZodUUID;
|
|
1130
1130
|
title: z.ZodString;
|
|
@@ -1142,43 +1142,43 @@ declare const ebookFinalizeUploadOutputSchema: z.ZodObject<{
|
|
|
1142
1142
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
1143
1143
|
}, z.core.$strict>;
|
|
1144
1144
|
}, z.core.$strict>;
|
|
1145
|
-
type EbookFinalizeUploadOutput = z.infer<typeof ebookFinalizeUploadOutputSchema>;
|
|
1146
|
-
declare const ebookGetDownloadUrlInputSchema: z.ZodObject<{
|
|
1145
|
+
export type EbookFinalizeUploadOutput = z.infer<typeof ebookFinalizeUploadOutputSchema>;
|
|
1146
|
+
export declare const ebookGetDownloadUrlInputSchema: z.ZodObject<{
|
|
1147
1147
|
id: z.ZodUUID;
|
|
1148
1148
|
}, z.core.$strict>;
|
|
1149
|
-
type EbookGetDownloadUrlInput = z.infer<typeof ebookGetDownloadUrlInputSchema>;
|
|
1150
|
-
declare const ebookGetDownloadUrlOutputSchema: z.ZodObject<{
|
|
1149
|
+
export type EbookGetDownloadUrlInput = z.infer<typeof ebookGetDownloadUrlInputSchema>;
|
|
1150
|
+
export declare const ebookGetDownloadUrlOutputSchema: z.ZodObject<{
|
|
1151
1151
|
url: z.ZodURL;
|
|
1152
1152
|
expiresAt: z.ZodCoercedDate<unknown>;
|
|
1153
1153
|
}, z.core.$strict>;
|
|
1154
|
-
type EbookGetDownloadUrlOutput = z.infer<typeof ebookGetDownloadUrlOutputSchema>;
|
|
1155
|
-
declare const ebookUpdateProgressDataSchema: z.ZodObject<{
|
|
1154
|
+
export type EbookGetDownloadUrlOutput = z.infer<typeof ebookGetDownloadUrlOutputSchema>;
|
|
1155
|
+
export declare const ebookUpdateProgressDataSchema: z.ZodObject<{
|
|
1156
1156
|
cfi: z.ZodString;
|
|
1157
1157
|
fraction: z.ZodNumber;
|
|
1158
1158
|
}, z.core.$strict>;
|
|
1159
|
-
type EbookUpdateProgressData = z.infer<typeof ebookUpdateProgressDataSchema>;
|
|
1160
|
-
declare const ebookUpdateProgressInputSchema: z.ZodObject<{
|
|
1159
|
+
export type EbookUpdateProgressData = z.infer<typeof ebookUpdateProgressDataSchema>;
|
|
1160
|
+
export declare const ebookUpdateProgressInputSchema: z.ZodObject<{
|
|
1161
1161
|
cfi: z.ZodString;
|
|
1162
1162
|
fraction: z.ZodNumber;
|
|
1163
1163
|
id: z.ZodUUID;
|
|
1164
1164
|
}, z.core.$strict>;
|
|
1165
|
-
type EbookUpdateProgressInput = z.infer<typeof ebookUpdateProgressInputSchema>;
|
|
1166
|
-
declare const ebookUpdateProgressOutputSchema: z.ZodObject<{
|
|
1165
|
+
export type EbookUpdateProgressInput = z.infer<typeof ebookUpdateProgressInputSchema>;
|
|
1166
|
+
export declare const ebookUpdateProgressOutputSchema: z.ZodObject<{
|
|
1167
1167
|
lastReadAt: z.ZodCoercedDate<unknown>;
|
|
1168
1168
|
}, z.core.$strict>;
|
|
1169
|
-
type EbookUpdateProgressOutput = z.infer<typeof ebookUpdateProgressOutputSchema>;
|
|
1170
|
-
declare const ebookRenameDataSchema: z.ZodObject<{
|
|
1169
|
+
export type EbookUpdateProgressOutput = z.infer<typeof ebookUpdateProgressOutputSchema>;
|
|
1170
|
+
export declare const ebookRenameDataSchema: z.ZodObject<{
|
|
1171
1171
|
title: z.ZodString;
|
|
1172
1172
|
author: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1173
1173
|
}, z.core.$strict>;
|
|
1174
|
-
type EbookRenameData = z.infer<typeof ebookRenameDataSchema>;
|
|
1175
|
-
declare const ebookRenameInputSchema: z.ZodObject<{
|
|
1174
|
+
export type EbookRenameData = z.infer<typeof ebookRenameDataSchema>;
|
|
1175
|
+
export declare const ebookRenameInputSchema: z.ZodObject<{
|
|
1176
1176
|
title: z.ZodString;
|
|
1177
1177
|
author: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1178
1178
|
id: z.ZodUUID;
|
|
1179
1179
|
}, z.core.$strict>;
|
|
1180
|
-
type EbookRenameInput = z.infer<typeof ebookRenameInputSchema>;
|
|
1181
|
-
declare const ebookRenameOutputSchema: z.ZodObject<{
|
|
1180
|
+
export type EbookRenameInput = z.infer<typeof ebookRenameInputSchema>;
|
|
1181
|
+
export declare const ebookRenameOutputSchema: z.ZodObject<{
|
|
1182
1182
|
ebook: z.ZodObject<{
|
|
1183
1183
|
id: z.ZodUUID;
|
|
1184
1184
|
title: z.ZodString;
|
|
@@ -1196,22 +1196,22 @@ declare const ebookRenameOutputSchema: z.ZodObject<{
|
|
|
1196
1196
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
1197
1197
|
}, z.core.$strict>;
|
|
1198
1198
|
}, z.core.$strict>;
|
|
1199
|
-
type EbookRenameOutput = z.infer<typeof ebookRenameOutputSchema>;
|
|
1200
|
-
declare const ebookDeleteInputSchema: z.ZodObject<{
|
|
1199
|
+
export type EbookRenameOutput = z.infer<typeof ebookRenameOutputSchema>;
|
|
1200
|
+
export declare const ebookDeleteInputSchema: z.ZodObject<{
|
|
1201
1201
|
id: z.ZodUUID;
|
|
1202
1202
|
}, z.core.$strict>;
|
|
1203
|
-
type EbookDeleteInput = z.infer<typeof ebookDeleteInputSchema>;
|
|
1204
|
-
declare const ebookDeleteOutputSchema: z.ZodObject<{
|
|
1203
|
+
export type EbookDeleteInput = z.infer<typeof ebookDeleteInputSchema>;
|
|
1204
|
+
export declare const ebookDeleteOutputSchema: z.ZodObject<{
|
|
1205
1205
|
id: z.ZodUUID;
|
|
1206
1206
|
}, z.core.$strict>;
|
|
1207
|
-
type EbookDeleteOutput = z.infer<typeof ebookDeleteOutputSchema>;
|
|
1207
|
+
export type EbookDeleteOutput = z.infer<typeof ebookDeleteOutputSchema>;
|
|
1208
1208
|
//#endregion
|
|
1209
1209
|
//#region src/schemas/hosted-ai.d.ts
|
|
1210
|
-
declare const HostedAiOutputFieldTypeSchema: z.ZodEnum<{
|
|
1210
|
+
export declare const HostedAiOutputFieldTypeSchema: z.ZodEnum<{
|
|
1211
1211
|
number: "number";
|
|
1212
1212
|
string: "string";
|
|
1213
1213
|
}>;
|
|
1214
|
-
declare const HostedAiOutputFieldSchema: z.ZodObject<{
|
|
1214
|
+
export declare const HostedAiOutputFieldSchema: z.ZodObject<{
|
|
1215
1215
|
name: z.ZodString;
|
|
1216
1216
|
type: z.ZodEnum<{
|
|
1217
1217
|
number: "number";
|
|
@@ -1223,7 +1223,7 @@ declare const HostedAiOutputFieldSchema: z.ZodObject<{
|
|
|
1223
1223
|
* plan: which plans may reach which tier is policy (see `access-policy.ts`),
|
|
1224
1224
|
* not identity, so a future plan can be sold with any tier without a rename.
|
|
1225
1225
|
*/
|
|
1226
|
-
declare const HostedAiModelTierSchema: z.ZodEnum<{
|
|
1226
|
+
export declare const HostedAiModelTierSchema: z.ZodEnum<{
|
|
1227
1227
|
advance: "advance";
|
|
1228
1228
|
normal: "normal";
|
|
1229
1229
|
}>;
|
|
@@ -1235,7 +1235,7 @@ declare const HostedAiModelTierSchema: z.ZodEnum<{
|
|
|
1235
1235
|
* Appended last on purpose: the db pgEnum mirrors this order, and appending
|
|
1236
1236
|
* keeps drizzle from emitting the ADD VALUE ... BEFORE variant.
|
|
1237
1237
|
*/
|
|
1238
|
-
declare const HostedAiFeatureSchema: z.ZodEnum<{
|
|
1238
|
+
export declare const HostedAiFeatureSchema: z.ZodEnum<{
|
|
1239
1239
|
customAction: "customAction";
|
|
1240
1240
|
inputTranslation: "inputTranslation";
|
|
1241
1241
|
languageDetection: "languageDetection";
|
|
@@ -1244,8 +1244,8 @@ declare const HostedAiFeatureSchema: z.ZodEnum<{
|
|
|
1244
1244
|
selectionTranslation: "selectionTranslation";
|
|
1245
1245
|
videoSubtitles: "videoSubtitles";
|
|
1246
1246
|
}>;
|
|
1247
|
-
declare const HostedAiRequestIdSchema: z.ZodUUID;
|
|
1248
|
-
declare const HostedAiStreamTextInputSchema: z.ZodObject<{
|
|
1247
|
+
export declare const HostedAiRequestIdSchema: z.ZodUUID;
|
|
1248
|
+
export declare const HostedAiStreamTextInputSchema: z.ZodObject<{
|
|
1249
1249
|
modelTier: z.ZodDefault<z.ZodEnum<{
|
|
1250
1250
|
advance: "advance";
|
|
1251
1251
|
normal: "normal";
|
|
@@ -1255,7 +1255,7 @@ declare const HostedAiStreamTextInputSchema: z.ZodObject<{
|
|
|
1255
1255
|
prompt: z.ZodString;
|
|
1256
1256
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
1257
1257
|
}, z.core.$strict>;
|
|
1258
|
-
declare const HostedAiStreamStructuredObjectInputSchema: z.ZodObject<{
|
|
1258
|
+
export declare const HostedAiStreamStructuredObjectInputSchema: z.ZodObject<{
|
|
1259
1259
|
modelTier: z.ZodDefault<z.ZodEnum<{
|
|
1260
1260
|
advance: "advance";
|
|
1261
1261
|
normal: "normal";
|
|
@@ -1272,9 +1272,9 @@ declare const HostedAiStreamStructuredObjectInputSchema: z.ZodObject<{
|
|
|
1272
1272
|
}, z.core.$strict>>;
|
|
1273
1273
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
1274
1274
|
}, z.core.$strict>;
|
|
1275
|
-
declare const HOSTED_AI_NOTE_SUGGESTION_MAX_NOTES = 2;
|
|
1276
|
-
declare const HOSTED_AI_NOTE_SUGGESTION_MAX_NOTE_FIELDS = 16;
|
|
1277
|
-
declare const HostedAiNoteSuggestionStreamInputSchema: z.ZodObject<{
|
|
1275
|
+
export declare const HOSTED_AI_NOTE_SUGGESTION_MAX_NOTES = 2;
|
|
1276
|
+
export declare const HOSTED_AI_NOTE_SUGGESTION_MAX_NOTE_FIELDS = 16;
|
|
1277
|
+
export declare const HostedAiNoteSuggestionStreamInputSchema: z.ZodObject<{
|
|
1278
1278
|
modelTier: z.ZodDefault<z.ZodEnum<{
|
|
1279
1279
|
advance: "advance";
|
|
1280
1280
|
normal: "normal";
|
|
@@ -1292,7 +1292,7 @@ declare const HostedAiNoteSuggestionStreamInputSchema: z.ZodObject<{
|
|
|
1292
1292
|
* `.max()` calls from the model-facing copy only — clients still validate
|
|
1293
1293
|
* against this schema.
|
|
1294
1294
|
*/
|
|
1295
|
-
declare const HostedAiNoteSuggestionObjectSchema: z.ZodObject<{
|
|
1295
|
+
export declare const HostedAiNoteSuggestionObjectSchema: z.ZodObject<{
|
|
1296
1296
|
action: z.ZodObject<{
|
|
1297
1297
|
createNewDictionaryAction: z.ZodBoolean;
|
|
1298
1298
|
targetActionId: z.ZodNullable<z.ZodString>;
|
|
@@ -1305,7 +1305,7 @@ declare const HostedAiNoteSuggestionObjectSchema: z.ZodObject<{
|
|
|
1305
1305
|
}, z.core.$strict>>;
|
|
1306
1306
|
}, z.core.$strict>>;
|
|
1307
1307
|
}, z.core.$strict>;
|
|
1308
|
-
declare const HostedAiStreamPartSchema: z.ZodObject<{
|
|
1308
|
+
export declare const HostedAiStreamPartSchema: z.ZodObject<{
|
|
1309
1309
|
type: z.ZodString;
|
|
1310
1310
|
}, z.core.$loose>;
|
|
1311
1311
|
/**
|
|
@@ -1319,31 +1319,31 @@ declare const HostedAiStreamPartSchema: z.ZodObject<{
|
|
|
1319
1319
|
* breaks rendering. `error` is absent on purpose: it is converted into a thrown
|
|
1320
1320
|
* error before it can be yielded.
|
|
1321
1321
|
*/
|
|
1322
|
-
declare const HOSTED_AI_CLIENT_STREAM_PART_TYPES: readonly ["text-delta", "reasoning-start", "reasoning-delta", "reasoning-end", "reasoning-file", "finish"];
|
|
1322
|
+
export declare const HOSTED_AI_CLIENT_STREAM_PART_TYPES: readonly ["text-delta", "reasoning-start", "reasoning-delta", "reasoning-end", "reasoning-file", "finish"];
|
|
1323
1323
|
/**
|
|
1324
1324
|
* Status is per-identity, not per-feature: one call reports every feature and
|
|
1325
1325
|
* every pool, so a client caches a single response instead of one per feature.
|
|
1326
1326
|
* Non-strict so a client still sending the retired `feature` argument gets a
|
|
1327
1327
|
* useful response rather than a validation error.
|
|
1328
1328
|
*/
|
|
1329
|
-
declare const HostedAiStatusInputSchema: z.ZodObject<{}, z.core.$strip>;
|
|
1330
|
-
declare const HostedAiUnavailableReasonSchema: z.ZodEnum<{
|
|
1329
|
+
export declare const HostedAiStatusInputSchema: z.ZodObject<{}, z.core.$strip>;
|
|
1330
|
+
export declare const HostedAiUnavailableReasonSchema: z.ZodEnum<{
|
|
1331
1331
|
authentication_required: "authentication_required";
|
|
1332
1332
|
quota_exhausted: "quota_exhausted";
|
|
1333
1333
|
service_unavailable: "service_unavailable";
|
|
1334
1334
|
ultra_required: "ultra_required";
|
|
1335
1335
|
}>;
|
|
1336
|
-
declare const HostedAiCreditPolicyIdSchema: z.ZodEnum<{
|
|
1336
|
+
export declare const HostedAiCreditPolicyIdSchema: z.ZodEnum<{
|
|
1337
1337
|
"custom-action-guest-daily-v1": "custom-action-guest-daily-v1";
|
|
1338
1338
|
"custom-action-pro-daily-v1": "custom-action-pro-daily-v1";
|
|
1339
1339
|
"custom-action-user-daily-v1": "custom-action-user-daily-v1";
|
|
1340
1340
|
"ultra-weekly-v1": "ultra-weekly-v1";
|
|
1341
1341
|
}>;
|
|
1342
|
-
declare const HostedAiCreditPeriodKindSchema: z.ZodEnum<{
|
|
1342
|
+
export declare const HostedAiCreditPeriodKindSchema: z.ZodEnum<{
|
|
1343
1343
|
daily: "daily";
|
|
1344
1344
|
weekly: "weekly";
|
|
1345
1345
|
}>;
|
|
1346
|
-
declare const HostedAiQuotaScopeSchema: z.ZodEnum<{
|
|
1346
|
+
export declare const HostedAiQuotaScopeSchema: z.ZodEnum<{
|
|
1347
1347
|
guest: "guest";
|
|
1348
1348
|
user: "user";
|
|
1349
1349
|
}>;
|
|
@@ -1360,7 +1360,7 @@ declare const HostedAiQuotaScopeSchema: z.ZodEnum<{
|
|
|
1360
1360
|
* prompt). Unknown keys are stripped; the required fields keep drift
|
|
1361
1361
|
* protection.
|
|
1362
1362
|
*/
|
|
1363
|
-
declare const HostedAiRateLimitErrorDataSchema: z.ZodObject<{
|
|
1363
|
+
export declare const HostedAiRateLimitErrorDataSchema: z.ZodObject<{
|
|
1364
1364
|
retryAfterMs: z.ZodNumber;
|
|
1365
1365
|
quotaScope: z.ZodEnum<{
|
|
1366
1366
|
guest: "guest";
|
|
@@ -1374,7 +1374,7 @@ declare const HostedAiRateLimitErrorDataSchema: z.ZodObject<{
|
|
|
1374
1374
|
* counts settled spend only: including in-flight reservations would make the
|
|
1375
1375
|
* bar jump forward and then back as each stream settles.
|
|
1376
1376
|
*/
|
|
1377
|
-
declare const HostedAiCreditStatusSchema: z.ZodObject<{
|
|
1377
|
+
export declare const HostedAiCreditStatusSchema: z.ZodObject<{
|
|
1378
1378
|
periodKind: z.ZodEnum<{
|
|
1379
1379
|
daily: "daily";
|
|
1380
1380
|
weekly: "weekly";
|
|
@@ -1391,7 +1391,7 @@ declare const HostedAiCreditStatusSchema: z.ZodObject<{
|
|
|
1391
1391
|
videoSubtitles: "videoSubtitles";
|
|
1392
1392
|
}>>;
|
|
1393
1393
|
}, z.core.$strict>;
|
|
1394
|
-
declare const HostedAiTierStatusSchema: z.ZodObject<{
|
|
1394
|
+
export declare const HostedAiTierStatusSchema: z.ZodObject<{
|
|
1395
1395
|
accessAllowed: z.ZodBoolean;
|
|
1396
1396
|
available: z.ZodBoolean;
|
|
1397
1397
|
unavailableReason: z.ZodNullable<z.ZodEnum<{
|
|
@@ -1403,7 +1403,7 @@ declare const HostedAiTierStatusSchema: z.ZodObject<{
|
|
|
1403
1403
|
requiresUltra: z.ZodBoolean;
|
|
1404
1404
|
modelRevision: z.ZodString;
|
|
1405
1405
|
}, z.core.$strict>;
|
|
1406
|
-
declare const HostedAiFeatureStatusSchema: z.ZodObject<{
|
|
1406
|
+
export declare const HostedAiFeatureStatusSchema: z.ZodObject<{
|
|
1407
1407
|
normal: z.ZodObject<{
|
|
1408
1408
|
accessAllowed: z.ZodBoolean;
|
|
1409
1409
|
available: z.ZodBoolean;
|
|
@@ -1429,7 +1429,7 @@ declare const HostedAiFeatureStatusSchema: z.ZodObject<{
|
|
|
1429
1429
|
modelRevision: z.ZodString;
|
|
1430
1430
|
}, z.core.$strict>;
|
|
1431
1431
|
}, z.core.$strict>;
|
|
1432
|
-
declare const HostedAiStatusOutputSchema: z.ZodObject<{
|
|
1432
|
+
export declare const HostedAiStatusOutputSchema: z.ZodObject<{
|
|
1433
1433
|
credits: z.ZodArray<z.ZodObject<{
|
|
1434
1434
|
periodKind: z.ZodEnum<{
|
|
1435
1435
|
daily: "daily";
|
|
@@ -1632,28 +1632,28 @@ declare const HostedAiStatusOutputSchema: z.ZodObject<{
|
|
|
1632
1632
|
}, z.core.$strict>;
|
|
1633
1633
|
}, z.core.$strict>;
|
|
1634
1634
|
}, z.core.$strict>;
|
|
1635
|
-
type HostedAiOutputFieldType = z.infer<typeof HostedAiOutputFieldTypeSchema>;
|
|
1636
|
-
type HostedAiOutputField = z.infer<typeof HostedAiOutputFieldSchema>;
|
|
1637
|
-
type HostedAiModelTier = z.infer<typeof HostedAiModelTierSchema>;
|
|
1638
|
-
type HostedAiFeature = z.infer<typeof HostedAiFeatureSchema>;
|
|
1639
|
-
type HostedAiStreamTextInput = z.infer<typeof HostedAiStreamTextInputSchema>;
|
|
1640
|
-
type HostedAiStreamStructuredObjectInput = z.infer<typeof HostedAiStreamStructuredObjectInputSchema>;
|
|
1641
|
-
type HostedAiNoteSuggestionStreamInput = z.infer<typeof HostedAiNoteSuggestionStreamInputSchema>;
|
|
1642
|
-
type HostedAiNoteSuggestionObject = z.infer<typeof HostedAiNoteSuggestionObjectSchema>;
|
|
1643
|
-
type HostedAiStreamPart = z.infer<typeof HostedAiStreamPartSchema>;
|
|
1644
|
-
type HostedAiStatusInput = z.infer<typeof HostedAiStatusInputSchema>;
|
|
1645
|
-
type HostedAiUnavailableReason = z.infer<typeof HostedAiUnavailableReasonSchema>;
|
|
1646
|
-
type HostedAiCreditPolicyId = z.infer<typeof HostedAiCreditPolicyIdSchema>;
|
|
1647
|
-
type HostedAiCreditPeriodKind = z.infer<typeof HostedAiCreditPeriodKindSchema>;
|
|
1648
|
-
type HostedAiQuotaScope = z.infer<typeof HostedAiQuotaScopeSchema>;
|
|
1649
|
-
type HostedAiRateLimitErrorData = z.infer<typeof HostedAiRateLimitErrorDataSchema>;
|
|
1650
|
-
type HostedAiCreditStatus = z.infer<typeof HostedAiCreditStatusSchema>;
|
|
1651
|
-
type HostedAiTierStatus = z.infer<typeof HostedAiTierStatusSchema>;
|
|
1652
|
-
type HostedAiFeatureStatus = z.infer<typeof HostedAiFeatureStatusSchema>;
|
|
1653
|
-
type HostedAiStatusOutput = z.infer<typeof HostedAiStatusOutputSchema>;
|
|
1635
|
+
export type HostedAiOutputFieldType = z.infer<typeof HostedAiOutputFieldTypeSchema>;
|
|
1636
|
+
export type HostedAiOutputField = z.infer<typeof HostedAiOutputFieldSchema>;
|
|
1637
|
+
export type HostedAiModelTier = z.infer<typeof HostedAiModelTierSchema>;
|
|
1638
|
+
export type HostedAiFeature = z.infer<typeof HostedAiFeatureSchema>;
|
|
1639
|
+
export type HostedAiStreamTextInput = z.infer<typeof HostedAiStreamTextInputSchema>;
|
|
1640
|
+
export type HostedAiStreamStructuredObjectInput = z.infer<typeof HostedAiStreamStructuredObjectInputSchema>;
|
|
1641
|
+
export type HostedAiNoteSuggestionStreamInput = z.infer<typeof HostedAiNoteSuggestionStreamInputSchema>;
|
|
1642
|
+
export type HostedAiNoteSuggestionObject = z.infer<typeof HostedAiNoteSuggestionObjectSchema>;
|
|
1643
|
+
export type HostedAiStreamPart = z.infer<typeof HostedAiStreamPartSchema>;
|
|
1644
|
+
export type HostedAiStatusInput = z.infer<typeof HostedAiStatusInputSchema>;
|
|
1645
|
+
export type HostedAiUnavailableReason = z.infer<typeof HostedAiUnavailableReasonSchema>;
|
|
1646
|
+
export type HostedAiCreditPolicyId = z.infer<typeof HostedAiCreditPolicyIdSchema>;
|
|
1647
|
+
export type HostedAiCreditPeriodKind = z.infer<typeof HostedAiCreditPeriodKindSchema>;
|
|
1648
|
+
export type HostedAiQuotaScope = z.infer<typeof HostedAiQuotaScopeSchema>;
|
|
1649
|
+
export type HostedAiRateLimitErrorData = z.infer<typeof HostedAiRateLimitErrorDataSchema>;
|
|
1650
|
+
export type HostedAiCreditStatus = z.infer<typeof HostedAiCreditStatusSchema>;
|
|
1651
|
+
export type HostedAiTierStatus = z.infer<typeof HostedAiTierStatusSchema>;
|
|
1652
|
+
export type HostedAiFeatureStatus = z.infer<typeof HostedAiFeatureStatusSchema>;
|
|
1653
|
+
export type HostedAiStatusOutput = z.infer<typeof HostedAiStatusOutputSchema>;
|
|
1654
1654
|
//#endregion
|
|
1655
1655
|
//#region src/schemas/mcp-connection.d.ts
|
|
1656
|
-
declare const mcpConnectionSchema: z.ZodObject<{
|
|
1656
|
+
export declare const mcpConnectionSchema: z.ZodObject<{
|
|
1657
1657
|
clientId: z.ZodString;
|
|
1658
1658
|
clientName: z.ZodNullable<z.ZodString>;
|
|
1659
1659
|
scopes: z.ZodArray<z.ZodString>;
|
|
@@ -1662,8 +1662,8 @@ declare const mcpConnectionSchema: z.ZodObject<{
|
|
|
1662
1662
|
updatedAt: z.ZodNullable<z.ZodDate>;
|
|
1663
1663
|
lastAuthorizedAt: z.ZodNullable<z.ZodDate>;
|
|
1664
1664
|
}, z.core.$strict>;
|
|
1665
|
-
type McpConnection = z.infer<typeof mcpConnectionSchema>;
|
|
1666
|
-
declare const mcpConnectionListOutputSchema: z.ZodArray<z.ZodObject<{
|
|
1665
|
+
export type McpConnection = z.infer<typeof mcpConnectionSchema>;
|
|
1666
|
+
export declare const mcpConnectionListOutputSchema: z.ZodArray<z.ZodObject<{
|
|
1667
1667
|
clientId: z.ZodString;
|
|
1668
1668
|
clientName: z.ZodNullable<z.ZodString>;
|
|
1669
1669
|
scopes: z.ZodArray<z.ZodString>;
|
|
@@ -1672,33 +1672,33 @@ declare const mcpConnectionListOutputSchema: z.ZodArray<z.ZodObject<{
|
|
|
1672
1672
|
updatedAt: z.ZodNullable<z.ZodDate>;
|
|
1673
1673
|
lastAuthorizedAt: z.ZodNullable<z.ZodDate>;
|
|
1674
1674
|
}, z.core.$strict>>;
|
|
1675
|
-
declare const mcpConnectionRevokeInputSchema: z.ZodObject<{
|
|
1675
|
+
export declare const mcpConnectionRevokeInputSchema: z.ZodObject<{
|
|
1676
1676
|
clientId: z.ZodString;
|
|
1677
1677
|
}, z.core.$strict>;
|
|
1678
|
-
type McpConnectionRevokeInput = z.infer<typeof mcpConnectionRevokeInputSchema>;
|
|
1679
|
-
declare const mcpConnectionRevokeOutputSchema: z.ZodObject<{
|
|
1678
|
+
export type McpConnectionRevokeInput = z.infer<typeof mcpConnectionRevokeInputSchema>;
|
|
1679
|
+
export declare const mcpConnectionRevokeOutputSchema: z.ZodObject<{
|
|
1680
1680
|
clientId: z.ZodString;
|
|
1681
1681
|
}, z.core.$strict>;
|
|
1682
1682
|
//#endregion
|
|
1683
1683
|
//#region src/schemas/notebase.d.ts
|
|
1684
|
-
declare const NotebaseListInputSchema: z.ZodObject<{}, z.core.$strip>;
|
|
1685
|
-
type NotebaseListInput = z.infer<typeof NotebaseListInputSchema>;
|
|
1686
|
-
declare const notebaseSummarySchema: z.ZodObject<{
|
|
1684
|
+
export declare const NotebaseListInputSchema: z.ZodObject<{}, z.core.$strip>;
|
|
1685
|
+
export type NotebaseListInput = z.infer<typeof NotebaseListInputSchema>;
|
|
1686
|
+
export declare const notebaseSummarySchema: z.ZodObject<{
|
|
1687
1687
|
id: z.ZodString;
|
|
1688
1688
|
name: z.ZodString;
|
|
1689
1689
|
}, z.core.$strip>;
|
|
1690
|
-
type NotebaseSummary = z.infer<typeof notebaseSummarySchema>;
|
|
1691
|
-
declare const NotebaseListItemSchema: z.ZodObject<{
|
|
1690
|
+
export type NotebaseSummary = z.infer<typeof notebaseSummarySchema>;
|
|
1691
|
+
export declare const NotebaseListItemSchema: z.ZodObject<{
|
|
1692
1692
|
id: z.ZodString;
|
|
1693
1693
|
name: z.ZodString;
|
|
1694
1694
|
}, z.core.$strip>;
|
|
1695
|
-
type NotebaseListItem = z.infer<typeof NotebaseListItemSchema>;
|
|
1696
|
-
declare const NotebaseListOutputSchema: z.ZodArray<z.ZodObject<{
|
|
1695
|
+
export type NotebaseListItem = z.infer<typeof NotebaseListItemSchema>;
|
|
1696
|
+
export declare const NotebaseListOutputSchema: z.ZodArray<z.ZodObject<{
|
|
1697
1697
|
id: z.ZodString;
|
|
1698
1698
|
name: z.ZodString;
|
|
1699
1699
|
}, z.core.$strip>>;
|
|
1700
|
-
type NotebaseListOutput = z.infer<typeof NotebaseListOutputSchema>;
|
|
1701
|
-
declare const notebaseSchema: z.ZodObject<{
|
|
1700
|
+
export type NotebaseListOutput = z.infer<typeof NotebaseListOutputSchema>;
|
|
1701
|
+
export declare const notebaseSchema: z.ZodObject<{
|
|
1702
1702
|
id: z.ZodString;
|
|
1703
1703
|
userId: z.ZodString;
|
|
1704
1704
|
name: z.ZodString;
|
|
@@ -1715,8 +1715,8 @@ declare const notebaseSchema: z.ZodObject<{
|
|
|
1715
1715
|
createdAt: z.ZodDate;
|
|
1716
1716
|
updatedAt: z.ZodDate;
|
|
1717
1717
|
}, z.core.$strip>;
|
|
1718
|
-
type Notebase = z.infer<typeof notebaseSchema>;
|
|
1719
|
-
declare const notebaseCreateDataSchema: z.ZodObject<{
|
|
1718
|
+
export type Notebase = z.infer<typeof notebaseSchema>;
|
|
1719
|
+
export declare const notebaseCreateDataSchema: z.ZodObject<{
|
|
1720
1720
|
id: z.ZodOptional<z.ZodUUID>;
|
|
1721
1721
|
name: z.ZodString;
|
|
1722
1722
|
options: z.ZodOptional<z.ZodObject<{
|
|
@@ -1757,8 +1757,8 @@ declare const notebaseCreateDataSchema: z.ZodObject<{
|
|
|
1757
1757
|
}, z.core.$strict>>>;
|
|
1758
1758
|
}, z.core.$strict>>;
|
|
1759
1759
|
}, z.core.$strict>;
|
|
1760
|
-
type NotebaseCreateData = z.infer<typeof notebaseCreateDataSchema>;
|
|
1761
|
-
declare const NotebaseCreateInputSchema: z.ZodObject<{
|
|
1760
|
+
export type NotebaseCreateData = z.infer<typeof notebaseCreateDataSchema>;
|
|
1761
|
+
export declare const NotebaseCreateInputSchema: z.ZodObject<{
|
|
1762
1762
|
id: z.ZodOptional<z.ZodUUID>;
|
|
1763
1763
|
name: z.ZodString;
|
|
1764
1764
|
options: z.ZodOptional<z.ZodObject<{
|
|
@@ -1799,8 +1799,8 @@ declare const NotebaseCreateInputSchema: z.ZodObject<{
|
|
|
1799
1799
|
}, z.core.$strict>>>;
|
|
1800
1800
|
}, z.core.$strict>>;
|
|
1801
1801
|
}, z.core.$strict>;
|
|
1802
|
-
type NotebaseCreateInput = z.infer<typeof NotebaseCreateInputSchema>;
|
|
1803
|
-
declare const NotebaseCreateOutputSchema: z.ZodObject<{
|
|
1802
|
+
export type NotebaseCreateInput = z.infer<typeof NotebaseCreateInputSchema>;
|
|
1803
|
+
export declare const NotebaseCreateOutputSchema: z.ZodObject<{
|
|
1804
1804
|
notebase: z.ZodObject<{
|
|
1805
1805
|
id: z.ZodString;
|
|
1806
1806
|
userId: z.ZodString;
|
|
@@ -1820,23 +1820,23 @@ declare const NotebaseCreateOutputSchema: z.ZodObject<{
|
|
|
1820
1820
|
}, z.core.$strip>;
|
|
1821
1821
|
txid: z.ZodNumber;
|
|
1822
1822
|
}, z.core.$strip>;
|
|
1823
|
-
type NotebaseCreateOutput = z.infer<typeof NotebaseCreateOutputSchema>;
|
|
1824
|
-
declare const notebaseUpdateDataSchema: z.ZodObject<{
|
|
1823
|
+
export type NotebaseCreateOutput = z.infer<typeof NotebaseCreateOutputSchema>;
|
|
1824
|
+
export declare const notebaseUpdateDataSchema: z.ZodObject<{
|
|
1825
1825
|
name: z.ZodOptional<z.ZodString>;
|
|
1826
1826
|
srsNewPerDay: z.ZodOptional<z.ZodNumber>;
|
|
1827
1827
|
srsReviewsPerDay: z.ZodOptional<z.ZodNumber>;
|
|
1828
1828
|
srsDesiredRetention: z.ZodOptional<z.ZodNumber>;
|
|
1829
1829
|
}, z.core.$strict>;
|
|
1830
|
-
type NotebaseUpdateData = z.infer<typeof notebaseUpdateDataSchema>;
|
|
1831
|
-
declare const NotebaseUpdateInputSchema: z.ZodObject<{
|
|
1830
|
+
export type NotebaseUpdateData = z.infer<typeof notebaseUpdateDataSchema>;
|
|
1831
|
+
export declare const NotebaseUpdateInputSchema: z.ZodObject<{
|
|
1832
1832
|
name: z.ZodOptional<z.ZodString>;
|
|
1833
1833
|
srsNewPerDay: z.ZodOptional<z.ZodNumber>;
|
|
1834
1834
|
srsReviewsPerDay: z.ZodOptional<z.ZodNumber>;
|
|
1835
1835
|
srsDesiredRetention: z.ZodOptional<z.ZodNumber>;
|
|
1836
1836
|
id: z.ZodUUID;
|
|
1837
1837
|
}, z.core.$strict>;
|
|
1838
|
-
type NotebaseUpdateInput = z.infer<typeof NotebaseUpdateInputSchema>;
|
|
1839
|
-
declare const NotebaseUpdateOutputSchema: z.ZodObject<{
|
|
1838
|
+
export type NotebaseUpdateInput = z.infer<typeof NotebaseUpdateInputSchema>;
|
|
1839
|
+
export declare const NotebaseUpdateOutputSchema: z.ZodObject<{
|
|
1840
1840
|
notebase: z.ZodObject<{
|
|
1841
1841
|
id: z.ZodString;
|
|
1842
1842
|
userId: z.ZodString;
|
|
@@ -1856,37 +1856,37 @@ declare const NotebaseUpdateOutputSchema: z.ZodObject<{
|
|
|
1856
1856
|
}, z.core.$strip>;
|
|
1857
1857
|
txid: z.ZodNumber;
|
|
1858
1858
|
}, z.core.$strip>;
|
|
1859
|
-
type NotebaseUpdateOutput = z.infer<typeof NotebaseUpdateOutputSchema>;
|
|
1860
|
-
declare const NotebaseDeleteInputSchema: z.ZodObject<{
|
|
1859
|
+
export type NotebaseUpdateOutput = z.infer<typeof NotebaseUpdateOutputSchema>;
|
|
1860
|
+
export declare const NotebaseDeleteInputSchema: z.ZodObject<{
|
|
1861
1861
|
id: z.ZodUUID;
|
|
1862
1862
|
}, z.core.$strip>;
|
|
1863
|
-
type NotebaseDeleteInput = z.infer<typeof NotebaseDeleteInputSchema>;
|
|
1864
|
-
declare const NotebaseDeleteOutputSchema: z.ZodObject<{
|
|
1863
|
+
export type NotebaseDeleteInput = z.infer<typeof NotebaseDeleteInputSchema>;
|
|
1864
|
+
export declare const NotebaseDeleteOutputSchema: z.ZodObject<{
|
|
1865
1865
|
id: z.ZodUUID;
|
|
1866
1866
|
txid: z.ZodNumber;
|
|
1867
1867
|
}, z.core.$strip>;
|
|
1868
|
-
type NotebaseDeleteOutput = z.infer<typeof NotebaseDeleteOutputSchema>;
|
|
1869
|
-
declare const NotebaseGetInputSchema: z.ZodObject<{
|
|
1868
|
+
export type NotebaseDeleteOutput = z.infer<typeof NotebaseDeleteOutputSchema>;
|
|
1869
|
+
export declare const NotebaseGetInputSchema: z.ZodObject<{
|
|
1870
1870
|
id: z.ZodUUID;
|
|
1871
1871
|
}, z.core.$strip>;
|
|
1872
|
-
type NotebaseGetInput = z.infer<typeof NotebaseGetInputSchema>;
|
|
1873
|
-
declare const NotebaseGetSummaryInputSchema: z.ZodObject<{
|
|
1872
|
+
export type NotebaseGetInput = z.infer<typeof NotebaseGetInputSchema>;
|
|
1873
|
+
export declare const NotebaseGetSummaryInputSchema: z.ZodObject<{
|
|
1874
1874
|
id: z.ZodUUID;
|
|
1875
1875
|
}, z.core.$strip>;
|
|
1876
|
-
type NotebaseGetSummaryInput = z.infer<typeof NotebaseGetSummaryInputSchema>;
|
|
1877
|
-
declare const NotebaseGetSummaryOutputSchema: z.ZodObject<{
|
|
1876
|
+
export type NotebaseGetSummaryInput = z.infer<typeof NotebaseGetSummaryInputSchema>;
|
|
1877
|
+
export declare const NotebaseGetSummaryOutputSchema: z.ZodObject<{
|
|
1878
1878
|
id: z.ZodString;
|
|
1879
1879
|
name: z.ZodString;
|
|
1880
1880
|
srsNewPerDay: z.ZodNumber;
|
|
1881
1881
|
srsReviewsPerDay: z.ZodNumber;
|
|
1882
1882
|
srsDesiredRetention: z.ZodNumber;
|
|
1883
1883
|
}, z.core.$strip>;
|
|
1884
|
-
type NotebaseGetSummaryOutput = z.infer<typeof NotebaseGetSummaryOutputSchema>;
|
|
1885
|
-
declare const NotebaseGetSchemaInputSchema: z.ZodObject<{
|
|
1884
|
+
export type NotebaseGetSummaryOutput = z.infer<typeof NotebaseGetSummaryOutputSchema>;
|
|
1885
|
+
export declare const NotebaseGetSchemaInputSchema: z.ZodObject<{
|
|
1886
1886
|
id: z.ZodUUID;
|
|
1887
1887
|
}, z.core.$strip>;
|
|
1888
|
-
type NotebaseGetSchemaInput = z.infer<typeof NotebaseGetSchemaInputSchema>;
|
|
1889
|
-
declare const NotebaseGetOutputSchema: z.ZodObject<{
|
|
1888
|
+
export type NotebaseGetSchemaInput = z.infer<typeof NotebaseGetSchemaInputSchema>;
|
|
1889
|
+
export declare const NotebaseGetOutputSchema: z.ZodObject<{
|
|
1890
1890
|
id: z.ZodString;
|
|
1891
1891
|
userId: z.ZodString;
|
|
1892
1892
|
name: z.ZodString;
|
|
@@ -1965,8 +1965,8 @@ declare const NotebaseGetOutputSchema: z.ZodObject<{
|
|
|
1965
1965
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
1966
1966
|
}, z.core.$strip>>;
|
|
1967
1967
|
}, z.core.$strip>;
|
|
1968
|
-
type NotebaseGetOutput = z.infer<typeof NotebaseGetOutputSchema>;
|
|
1969
|
-
declare const NotebaseGetSchemaOutputSchema: z.ZodObject<{
|
|
1968
|
+
export type NotebaseGetOutput = z.infer<typeof NotebaseGetOutputSchema>;
|
|
1969
|
+
export declare const NotebaseGetSchemaOutputSchema: z.ZodObject<{
|
|
1970
1970
|
id: z.ZodString;
|
|
1971
1971
|
name: z.ZodString;
|
|
1972
1972
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
@@ -2005,11 +2005,11 @@ declare const NotebaseGetSchemaOutputSchema: z.ZodObject<{
|
|
|
2005
2005
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
2006
2006
|
}, z.core.$strip>>;
|
|
2007
2007
|
}, z.core.$strip>;
|
|
2008
|
-
type NotebaseGetSchemaOutput = z.infer<typeof NotebaseGetSchemaOutputSchema>;
|
|
2008
|
+
export type NotebaseGetSchemaOutput = z.infer<typeof NotebaseGetSchemaOutputSchema>;
|
|
2009
2009
|
//#endregion
|
|
2010
2010
|
//#region src/schemas/notebase-column.d.ts
|
|
2011
|
-
declare const notebaseColumnWidthSchema: z.ZodNumber;
|
|
2012
|
-
declare const notebaseColumnSchema: z.ZodObject<{
|
|
2011
|
+
export declare const notebaseColumnWidthSchema: z.ZodNumber;
|
|
2012
|
+
export declare const notebaseColumnSchema: z.ZodObject<{
|
|
2013
2013
|
id: z.ZodString;
|
|
2014
2014
|
notebaseId: z.ZodString;
|
|
2015
2015
|
name: z.ZodString;
|
|
@@ -2043,8 +2043,8 @@ declare const notebaseColumnSchema: z.ZodObject<{
|
|
|
2043
2043
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
2044
2044
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
2045
2045
|
}, z.core.$strip>;
|
|
2046
|
-
type NotebaseColumn = z.infer<typeof notebaseColumnSchema>;
|
|
2047
|
-
declare const notebaseColumnCreateDataSchema: z.ZodObject<{
|
|
2046
|
+
export type NotebaseColumn = z.infer<typeof notebaseColumnSchema>;
|
|
2047
|
+
export declare const notebaseColumnCreateDataSchema: z.ZodObject<{
|
|
2048
2048
|
id: z.ZodOptional<z.ZodUUID>;
|
|
2049
2049
|
name: z.ZodString;
|
|
2050
2050
|
config: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -2071,8 +2071,8 @@ declare const notebaseColumnCreateDataSchema: z.ZodObject<{
|
|
|
2071
2071
|
}, z.core.$strip>>>;
|
|
2072
2072
|
}, z.core.$strip>], "type">;
|
|
2073
2073
|
}, z.core.$strict>;
|
|
2074
|
-
type NotebaseColumnCreateData = z.infer<typeof notebaseColumnCreateDataSchema>;
|
|
2075
|
-
declare const notebaseColumnUpdateDataSchema: z.ZodObject<{
|
|
2074
|
+
export type NotebaseColumnCreateData = z.infer<typeof notebaseColumnCreateDataSchema>;
|
|
2075
|
+
export declare const notebaseColumnUpdateDataSchema: z.ZodObject<{
|
|
2076
2076
|
expectedUpdatedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
2077
2077
|
name: z.ZodOptional<z.ZodString>;
|
|
2078
2078
|
config: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -2101,8 +2101,8 @@ declare const notebaseColumnUpdateDataSchema: z.ZodObject<{
|
|
|
2101
2101
|
width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2102
2102
|
wrap: z.ZodOptional<z.ZodBoolean>;
|
|
2103
2103
|
}, z.core.$strict>;
|
|
2104
|
-
type NotebaseColumnUpdateData = z.infer<typeof notebaseColumnUpdateDataSchema>;
|
|
2105
|
-
declare const NotebaseColumnCreateInputSchema: z.ZodObject<{
|
|
2104
|
+
export type NotebaseColumnUpdateData = z.infer<typeof notebaseColumnUpdateDataSchema>;
|
|
2105
|
+
export declare const NotebaseColumnCreateInputSchema: z.ZodObject<{
|
|
2106
2106
|
notebaseId: z.ZodUUID;
|
|
2107
2107
|
data: z.ZodObject<{
|
|
2108
2108
|
id: z.ZodOptional<z.ZodUUID>;
|
|
@@ -2132,8 +2132,8 @@ declare const NotebaseColumnCreateInputSchema: z.ZodObject<{
|
|
|
2132
2132
|
}, z.core.$strip>], "type">;
|
|
2133
2133
|
}, z.core.$strict>;
|
|
2134
2134
|
}, z.core.$strip>;
|
|
2135
|
-
type NotebaseColumnCreateInput = z.infer<typeof NotebaseColumnCreateInputSchema>;
|
|
2136
|
-
declare const NotebaseColumnCreateOutputSchema: z.ZodObject<{
|
|
2135
|
+
export type NotebaseColumnCreateInput = z.infer<typeof NotebaseColumnCreateInputSchema>;
|
|
2136
|
+
export declare const NotebaseColumnCreateOutputSchema: z.ZodObject<{
|
|
2137
2137
|
field: z.ZodObject<{
|
|
2138
2138
|
id: z.ZodString;
|
|
2139
2139
|
notebaseId: z.ZodString;
|
|
@@ -2170,8 +2170,8 @@ declare const NotebaseColumnCreateOutputSchema: z.ZodObject<{
|
|
|
2170
2170
|
}, z.core.$strip>;
|
|
2171
2171
|
txid: z.ZodNumber;
|
|
2172
2172
|
}, z.core.$strip>;
|
|
2173
|
-
type NotebaseColumnCreateOutput = z.infer<typeof NotebaseColumnCreateOutputSchema>;
|
|
2174
|
-
declare const NotebaseColumnUpdateInputSchema: z.ZodObject<{
|
|
2173
|
+
export type NotebaseColumnCreateOutput = z.infer<typeof NotebaseColumnCreateOutputSchema>;
|
|
2174
|
+
export declare const NotebaseColumnUpdateInputSchema: z.ZodObject<{
|
|
2175
2175
|
notebaseColumnId: z.ZodUUID;
|
|
2176
2176
|
data: z.ZodObject<{
|
|
2177
2177
|
expectedUpdatedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
@@ -2203,8 +2203,8 @@ declare const NotebaseColumnUpdateInputSchema: z.ZodObject<{
|
|
|
2203
2203
|
wrap: z.ZodOptional<z.ZodBoolean>;
|
|
2204
2204
|
}, z.core.$strict>;
|
|
2205
2205
|
}, z.core.$strip>;
|
|
2206
|
-
type NotebaseColumnUpdateInput = z.infer<typeof NotebaseColumnUpdateInputSchema>;
|
|
2207
|
-
declare const NotebaseColumnUpdateOutputSchema: z.ZodObject<{
|
|
2206
|
+
export type NotebaseColumnUpdateInput = z.infer<typeof NotebaseColumnUpdateInputSchema>;
|
|
2207
|
+
export declare const NotebaseColumnUpdateOutputSchema: z.ZodObject<{
|
|
2208
2208
|
field: z.ZodObject<{
|
|
2209
2209
|
id: z.ZodString;
|
|
2210
2210
|
notebaseId: z.ZodString;
|
|
@@ -2241,29 +2241,29 @@ declare const NotebaseColumnUpdateOutputSchema: z.ZodObject<{
|
|
|
2241
2241
|
}, z.core.$strip>;
|
|
2242
2242
|
txid: z.ZodNumber;
|
|
2243
2243
|
}, z.core.$strip>;
|
|
2244
|
-
type NotebaseColumnUpdateOutput = z.infer<typeof NotebaseColumnUpdateOutputSchema>;
|
|
2245
|
-
declare const NotebaseColumnDeleteInputSchema: z.ZodObject<{
|
|
2244
|
+
export type NotebaseColumnUpdateOutput = z.infer<typeof NotebaseColumnUpdateOutputSchema>;
|
|
2245
|
+
export declare const NotebaseColumnDeleteInputSchema: z.ZodObject<{
|
|
2246
2246
|
notebaseColumnId: z.ZodUUID;
|
|
2247
2247
|
}, z.core.$strip>;
|
|
2248
|
-
type NotebaseColumnDeleteInput = z.infer<typeof NotebaseColumnDeleteInputSchema>;
|
|
2249
|
-
declare const NotebaseColumnDeleteOutputSchema: z.ZodObject<{
|
|
2248
|
+
export type NotebaseColumnDeleteInput = z.infer<typeof NotebaseColumnDeleteInputSchema>;
|
|
2249
|
+
export declare const NotebaseColumnDeleteOutputSchema: z.ZodObject<{
|
|
2250
2250
|
id: z.ZodUUID;
|
|
2251
2251
|
txid: z.ZodNumber;
|
|
2252
2252
|
}, z.core.$strip>;
|
|
2253
|
-
type NotebaseColumnDeleteOutput = z.infer<typeof NotebaseColumnDeleteOutputSchema>;
|
|
2254
|
-
declare const NotebaseColumnReorderInputSchema: z.ZodObject<{
|
|
2253
|
+
export type NotebaseColumnDeleteOutput = z.infer<typeof NotebaseColumnDeleteOutputSchema>;
|
|
2254
|
+
export declare const NotebaseColumnReorderInputSchema: z.ZodObject<{
|
|
2255
2255
|
notebaseId: z.ZodUUID;
|
|
2256
2256
|
ids: z.ZodArray<z.ZodUUID>;
|
|
2257
2257
|
}, z.core.$strip>;
|
|
2258
|
-
type NotebaseColumnReorderInput = z.infer<typeof NotebaseColumnReorderInputSchema>;
|
|
2259
|
-
declare const NotebaseColumnReorderOutputSchema: z.ZodObject<{
|
|
2258
|
+
export type NotebaseColumnReorderInput = z.infer<typeof NotebaseColumnReorderInputSchema>;
|
|
2259
|
+
export declare const NotebaseColumnReorderOutputSchema: z.ZodObject<{
|
|
2260
2260
|
txid: z.ZodNumber;
|
|
2261
2261
|
}, z.core.$strip>;
|
|
2262
|
-
type NotebaseColumnReorderOutput = z.infer<typeof NotebaseColumnReorderOutputSchema>;
|
|
2262
|
+
export type NotebaseColumnReorderOutput = z.infer<typeof NotebaseColumnReorderOutputSchema>;
|
|
2263
2263
|
//#endregion
|
|
2264
2264
|
//#region src/schemas/notebase-row.d.ts
|
|
2265
|
-
declare const notebaseRowCellsSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2266
|
-
declare const notebaseRowSchema: z.ZodObject<{
|
|
2265
|
+
export declare const notebaseRowCellsSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2266
|
+
export declare const notebaseRowSchema: z.ZodObject<{
|
|
2267
2267
|
id: z.ZodString;
|
|
2268
2268
|
notebaseId: z.ZodString;
|
|
2269
2269
|
cells: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -2271,26 +2271,26 @@ declare const notebaseRowSchema: z.ZodObject<{
|
|
|
2271
2271
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
2272
2272
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
2273
2273
|
}, z.core.$strip>;
|
|
2274
|
-
type NotebaseRow = z.infer<typeof notebaseRowSchema>;
|
|
2275
|
-
declare const notebaseRowCreateDataSchema: z.ZodObject<{
|
|
2274
|
+
export type NotebaseRow = z.infer<typeof notebaseRowSchema>;
|
|
2275
|
+
export declare const notebaseRowCreateDataSchema: z.ZodObject<{
|
|
2276
2276
|
id: z.ZodOptional<z.ZodUUID>;
|
|
2277
2277
|
cells: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2278
2278
|
}, z.core.$strict>;
|
|
2279
|
-
type NotebaseRowCreateData = z.infer<typeof notebaseRowCreateDataSchema>;
|
|
2280
|
-
declare const notebaseRowUpdateDataSchema: z.ZodObject<{
|
|
2279
|
+
export type NotebaseRowCreateData = z.infer<typeof notebaseRowCreateDataSchema>;
|
|
2280
|
+
export declare const notebaseRowUpdateDataSchema: z.ZodObject<{
|
|
2281
2281
|
cells: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2282
2282
|
expectedUpdatedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
2283
2283
|
}, z.core.$strict>;
|
|
2284
|
-
type NotebaseRowUpdateData = z.infer<typeof notebaseRowUpdateDataSchema>;
|
|
2285
|
-
declare const NotebaseRowCreateInputSchema: z.ZodObject<{
|
|
2284
|
+
export type NotebaseRowUpdateData = z.infer<typeof notebaseRowUpdateDataSchema>;
|
|
2285
|
+
export declare const NotebaseRowCreateInputSchema: z.ZodObject<{
|
|
2286
2286
|
notebaseId: z.ZodUUID;
|
|
2287
2287
|
data: z.ZodObject<{
|
|
2288
2288
|
id: z.ZodOptional<z.ZodUUID>;
|
|
2289
2289
|
cells: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2290
2290
|
}, z.core.$strict>;
|
|
2291
2291
|
}, z.core.$strip>;
|
|
2292
|
-
type NotebaseRowCreateInput = z.infer<typeof NotebaseRowCreateInputSchema>;
|
|
2293
|
-
declare const NotebaseRowCreateOutputSchema: z.ZodObject<{
|
|
2292
|
+
export type NotebaseRowCreateInput = z.infer<typeof NotebaseRowCreateInputSchema>;
|
|
2293
|
+
export declare const NotebaseRowCreateOutputSchema: z.ZodObject<{
|
|
2294
2294
|
note: z.ZodObject<{
|
|
2295
2295
|
id: z.ZodString;
|
|
2296
2296
|
notebaseId: z.ZodString;
|
|
@@ -2301,17 +2301,17 @@ declare const NotebaseRowCreateOutputSchema: z.ZodObject<{
|
|
|
2301
2301
|
}, z.core.$strip>;
|
|
2302
2302
|
txid: z.ZodNumber;
|
|
2303
2303
|
}, z.core.$strip>;
|
|
2304
|
-
type NotebaseRowCreateOutput = z.infer<typeof NotebaseRowCreateOutputSchema>;
|
|
2305
|
-
declare const NOTEBASE_ROW_CREATE_MANY_MAX_ROWS = 50;
|
|
2306
|
-
declare const NotebaseRowCreateManyInputSchema: z.ZodObject<{
|
|
2304
|
+
export type NotebaseRowCreateOutput = z.infer<typeof NotebaseRowCreateOutputSchema>;
|
|
2305
|
+
export declare const NOTEBASE_ROW_CREATE_MANY_MAX_ROWS = 50;
|
|
2306
|
+
export declare const NotebaseRowCreateManyInputSchema: z.ZodObject<{
|
|
2307
2307
|
notebaseId: z.ZodUUID;
|
|
2308
2308
|
rows: z.ZodArray<z.ZodObject<{
|
|
2309
2309
|
id: z.ZodOptional<z.ZodUUID>;
|
|
2310
2310
|
cells: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2311
2311
|
}, z.core.$strict>>;
|
|
2312
2312
|
}, z.core.$strip>;
|
|
2313
|
-
type NotebaseRowCreateManyInput = z.infer<typeof NotebaseRowCreateManyInputSchema>;
|
|
2314
|
-
declare const NotebaseRowCreateManyOutputSchema: z.ZodObject<{
|
|
2313
|
+
export type NotebaseRowCreateManyInput = z.infer<typeof NotebaseRowCreateManyInputSchema>;
|
|
2314
|
+
export declare const NotebaseRowCreateManyOutputSchema: z.ZodObject<{
|
|
2315
2315
|
items: z.ZodArray<z.ZodObject<{
|
|
2316
2316
|
id: z.ZodString;
|
|
2317
2317
|
notebaseId: z.ZodString;
|
|
@@ -2322,16 +2322,16 @@ declare const NotebaseRowCreateManyOutputSchema: z.ZodObject<{
|
|
|
2322
2322
|
}, z.core.$strip>>;
|
|
2323
2323
|
txid: z.ZodNumber;
|
|
2324
2324
|
}, z.core.$strip>;
|
|
2325
|
-
type NotebaseRowCreateManyOutput = z.infer<typeof NotebaseRowCreateManyOutputSchema>;
|
|
2326
|
-
declare const NotebaseRowUpdateInputSchema: z.ZodObject<{
|
|
2325
|
+
export type NotebaseRowCreateManyOutput = z.infer<typeof NotebaseRowCreateManyOutputSchema>;
|
|
2326
|
+
export declare const NotebaseRowUpdateInputSchema: z.ZodObject<{
|
|
2327
2327
|
notebaseRowId: z.ZodUUID;
|
|
2328
2328
|
data: z.ZodObject<{
|
|
2329
2329
|
cells: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2330
2330
|
expectedUpdatedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
2331
2331
|
}, z.core.$strict>;
|
|
2332
2332
|
}, z.core.$strip>;
|
|
2333
|
-
type NotebaseRowUpdateInput = z.infer<typeof NotebaseRowUpdateInputSchema>;
|
|
2334
|
-
declare const NotebaseRowUpdateOutputSchema: z.ZodObject<{
|
|
2333
|
+
export type NotebaseRowUpdateInput = z.infer<typeof NotebaseRowUpdateInputSchema>;
|
|
2334
|
+
export declare const NotebaseRowUpdateOutputSchema: z.ZodObject<{
|
|
2335
2335
|
id: z.ZodUUID;
|
|
2336
2336
|
notebaseId: z.ZodUUID;
|
|
2337
2337
|
cells: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -2340,9 +2340,9 @@ declare const NotebaseRowUpdateOutputSchema: z.ZodObject<{
|
|
|
2340
2340
|
updatedAt: z.ZodDate;
|
|
2341
2341
|
txid: z.ZodNumber;
|
|
2342
2342
|
}, z.core.$strip>;
|
|
2343
|
-
type NotebaseRowUpdateOutput = z.infer<typeof NotebaseRowUpdateOutputSchema>;
|
|
2344
|
-
declare const NOTEBASE_ROW_UPDATE_MANY_MAX_ROWS = 50;
|
|
2345
|
-
declare const NotebaseRowUpdateManyInputSchema: z.ZodObject<{
|
|
2343
|
+
export type NotebaseRowUpdateOutput = z.infer<typeof NotebaseRowUpdateOutputSchema>;
|
|
2344
|
+
export declare const NOTEBASE_ROW_UPDATE_MANY_MAX_ROWS = 50;
|
|
2345
|
+
export declare const NotebaseRowUpdateManyInputSchema: z.ZodObject<{
|
|
2346
2346
|
notebaseId: z.ZodUUID;
|
|
2347
2347
|
rows: z.ZodArray<z.ZodObject<{
|
|
2348
2348
|
id: z.ZodUUID;
|
|
@@ -2352,8 +2352,8 @@ declare const NotebaseRowUpdateManyInputSchema: z.ZodObject<{
|
|
|
2352
2352
|
}, z.core.$strict>;
|
|
2353
2353
|
}, z.core.$strip>>;
|
|
2354
2354
|
}, z.core.$strip>;
|
|
2355
|
-
type NotebaseRowUpdateManyInput = z.infer<typeof NotebaseRowUpdateManyInputSchema>;
|
|
2356
|
-
declare const NotebaseRowUpdateManyOutputSchema: z.ZodObject<{
|
|
2355
|
+
export type NotebaseRowUpdateManyInput = z.infer<typeof NotebaseRowUpdateManyInputSchema>;
|
|
2356
|
+
export declare const NotebaseRowUpdateManyOutputSchema: z.ZodObject<{
|
|
2357
2357
|
items: z.ZodArray<z.ZodObject<{
|
|
2358
2358
|
id: z.ZodString;
|
|
2359
2359
|
notebaseId: z.ZodString;
|
|
@@ -2364,42 +2364,42 @@ declare const NotebaseRowUpdateManyOutputSchema: z.ZodObject<{
|
|
|
2364
2364
|
}, z.core.$strip>>;
|
|
2365
2365
|
txid: z.ZodNumber;
|
|
2366
2366
|
}, z.core.$strip>;
|
|
2367
|
-
type NotebaseRowUpdateManyOutput = z.infer<typeof NotebaseRowUpdateManyOutputSchema>;
|
|
2368
|
-
declare const NotebaseRowDeleteInputSchema: z.ZodObject<{
|
|
2367
|
+
export type NotebaseRowUpdateManyOutput = z.infer<typeof NotebaseRowUpdateManyOutputSchema>;
|
|
2368
|
+
export declare const NotebaseRowDeleteInputSchema: z.ZodObject<{
|
|
2369
2369
|
notebaseRowId: z.ZodUUID;
|
|
2370
2370
|
}, z.core.$strip>;
|
|
2371
|
-
type NotebaseRowDeleteInput = z.infer<typeof NotebaseRowDeleteInputSchema>;
|
|
2372
|
-
declare const NotebaseRowDeleteOutputSchema: z.ZodObject<{
|
|
2371
|
+
export type NotebaseRowDeleteInput = z.infer<typeof NotebaseRowDeleteInputSchema>;
|
|
2372
|
+
export declare const NotebaseRowDeleteOutputSchema: z.ZodObject<{
|
|
2373
2373
|
id: z.ZodUUID;
|
|
2374
2374
|
txid: z.ZodNumber;
|
|
2375
2375
|
}, z.core.$strip>;
|
|
2376
|
-
type NotebaseRowDeleteOutput = z.infer<typeof NotebaseRowDeleteOutputSchema>;
|
|
2377
|
-
declare const NOTEBASE_ROW_DELETE_MANY_MAX_ROWS = 50;
|
|
2378
|
-
declare const NotebaseRowDeleteManyInputSchema: z.ZodObject<{
|
|
2376
|
+
export type NotebaseRowDeleteOutput = z.infer<typeof NotebaseRowDeleteOutputSchema>;
|
|
2377
|
+
export declare const NOTEBASE_ROW_DELETE_MANY_MAX_ROWS = 50;
|
|
2378
|
+
export declare const NotebaseRowDeleteManyInputSchema: z.ZodObject<{
|
|
2379
2379
|
ids: z.ZodArray<z.ZodUUID>;
|
|
2380
2380
|
}, z.core.$strip>;
|
|
2381
|
-
type NotebaseRowDeleteManyInput = z.infer<typeof NotebaseRowDeleteManyInputSchema>;
|
|
2382
|
-
declare const NotebaseRowDeleteManyOutputSchema: z.ZodObject<{
|
|
2381
|
+
export type NotebaseRowDeleteManyInput = z.infer<typeof NotebaseRowDeleteManyInputSchema>;
|
|
2382
|
+
export declare const NotebaseRowDeleteManyOutputSchema: z.ZodObject<{
|
|
2383
2383
|
ids: z.ZodArray<z.ZodUUID>;
|
|
2384
2384
|
}, z.core.$strip>;
|
|
2385
|
-
type NotebaseRowDeleteManyOutput = z.infer<typeof NotebaseRowDeleteManyOutputSchema>;
|
|
2386
|
-
declare const NotebaseRowReorderInputSchema: z.ZodObject<{
|
|
2385
|
+
export type NotebaseRowDeleteManyOutput = z.infer<typeof NotebaseRowDeleteManyOutputSchema>;
|
|
2386
|
+
export declare const NotebaseRowReorderInputSchema: z.ZodObject<{
|
|
2387
2387
|
notebaseId: z.ZodUUID;
|
|
2388
2388
|
ids: z.ZodArray<z.ZodUUID>;
|
|
2389
2389
|
}, z.core.$strip>;
|
|
2390
|
-
type NotebaseRowReorderInput = z.infer<typeof NotebaseRowReorderInputSchema>;
|
|
2391
|
-
declare const NotebaseRowReorderOutputSchema: z.ZodObject<{
|
|
2390
|
+
export type NotebaseRowReorderInput = z.infer<typeof NotebaseRowReorderInputSchema>;
|
|
2391
|
+
export declare const NotebaseRowReorderOutputSchema: z.ZodObject<{
|
|
2392
2392
|
txid: z.ZodNumber;
|
|
2393
2393
|
}, z.core.$strip>;
|
|
2394
|
-
type NotebaseRowReorderOutput = z.infer<typeof NotebaseRowReorderOutputSchema>;
|
|
2395
|
-
declare const NotebaseRowListInputSchema: z.ZodObject<{
|
|
2394
|
+
export type NotebaseRowReorderOutput = z.infer<typeof NotebaseRowReorderOutputSchema>;
|
|
2395
|
+
export declare const NotebaseRowListInputSchema: z.ZodObject<{
|
|
2396
2396
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
2397
2397
|
offset: z.ZodOptional<z.ZodNumber>;
|
|
2398
2398
|
notebaseId: z.ZodOptional<z.ZodUUID>;
|
|
2399
2399
|
query: z.ZodOptional<z.ZodString>;
|
|
2400
2400
|
}, z.core.$strip>;
|
|
2401
|
-
type NotebaseRowListInput = z.infer<typeof NotebaseRowListInputSchema>;
|
|
2402
|
-
declare const NotebaseRowListOutputSchema: z.ZodObject<{
|
|
2401
|
+
export type NotebaseRowListInput = z.infer<typeof NotebaseRowListInputSchema>;
|
|
2402
|
+
export declare const NotebaseRowListOutputSchema: z.ZodObject<{
|
|
2403
2403
|
items: z.ZodArray<z.ZodObject<{
|
|
2404
2404
|
id: z.ZodString;
|
|
2405
2405
|
notebaseId: z.ZodString;
|
|
@@ -2410,10 +2410,10 @@ declare const NotebaseRowListOutputSchema: z.ZodObject<{
|
|
|
2410
2410
|
}, z.core.$strip>>;
|
|
2411
2411
|
hasMore: z.ZodBoolean;
|
|
2412
2412
|
}, z.core.$strip>;
|
|
2413
|
-
declare const NotebaseRowGetInputSchema: z.ZodObject<{
|
|
2413
|
+
export declare const NotebaseRowGetInputSchema: z.ZodObject<{
|
|
2414
2414
|
id: z.ZodUUID;
|
|
2415
2415
|
}, z.core.$strip>;
|
|
2416
|
-
declare const NotebaseRowGetOutputSchema: z.ZodObject<{
|
|
2416
|
+
export declare const NotebaseRowGetOutputSchema: z.ZodObject<{
|
|
2417
2417
|
id: z.ZodString;
|
|
2418
2418
|
notebaseId: z.ZodString;
|
|
2419
2419
|
cells: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -2423,72 +2423,72 @@ declare const NotebaseRowGetOutputSchema: z.ZodObject<{
|
|
|
2423
2423
|
}, z.core.$strip>;
|
|
2424
2424
|
//#endregion
|
|
2425
2425
|
//#region src/schemas/notebase-stats.d.ts
|
|
2426
|
-
declare const notebaseActivityStatsItemSchema: z.ZodObject<{
|
|
2426
|
+
export declare const notebaseActivityStatsItemSchema: z.ZodObject<{
|
|
2427
2427
|
date: z.ZodISODate;
|
|
2428
2428
|
notes: z.ZodNumber;
|
|
2429
2429
|
}, z.core.$strict>;
|
|
2430
|
-
type NotebaseActivityStatsItem = z.infer<typeof notebaseActivityStatsItemSchema>;
|
|
2431
|
-
declare const notebaseActivityStatsOutputSchema: z.ZodObject<{
|
|
2430
|
+
export type NotebaseActivityStatsItem = z.infer<typeof notebaseActivityStatsItemSchema>;
|
|
2431
|
+
export declare const notebaseActivityStatsOutputSchema: z.ZodObject<{
|
|
2432
2432
|
daily: z.ZodArray<z.ZodObject<{
|
|
2433
2433
|
date: z.ZodISODate;
|
|
2434
2434
|
notes: z.ZodNumber;
|
|
2435
2435
|
}, z.core.$strict>>;
|
|
2436
2436
|
}, z.core.$strict>;
|
|
2437
|
-
type NotebaseActivityStatsOutput = z.infer<typeof notebaseActivityStatsOutputSchema>;
|
|
2438
|
-
declare const notebaseRowGrowthStatsItemSchema: z.ZodObject<{
|
|
2437
|
+
export type NotebaseActivityStatsOutput = z.infer<typeof notebaseActivityStatsOutputSchema>;
|
|
2438
|
+
export declare const notebaseRowGrowthStatsItemSchema: z.ZodObject<{
|
|
2439
2439
|
date: z.ZodISODate;
|
|
2440
2440
|
delta: z.ZodNumber;
|
|
2441
2441
|
}, z.core.$strict>;
|
|
2442
|
-
type NotebaseRowGrowthStatsItem = z.infer<typeof notebaseRowGrowthStatsItemSchema>;
|
|
2443
|
-
declare const notebaseRowGrowthStatsOutputSchema: z.ZodObject<{
|
|
2442
|
+
export type NotebaseRowGrowthStatsItem = z.infer<typeof notebaseRowGrowthStatsItemSchema>;
|
|
2443
|
+
export declare const notebaseRowGrowthStatsOutputSchema: z.ZodObject<{
|
|
2444
2444
|
baseTotal: z.ZodNumber;
|
|
2445
2445
|
daily: z.ZodArray<z.ZodObject<{
|
|
2446
2446
|
date: z.ZodISODate;
|
|
2447
2447
|
delta: z.ZodNumber;
|
|
2448
2448
|
}, z.core.$strict>>;
|
|
2449
2449
|
}, z.core.$strict>;
|
|
2450
|
-
type NotebaseRowGrowthStatsOutput = z.infer<typeof notebaseRowGrowthStatsOutputSchema>;
|
|
2450
|
+
export type NotebaseRowGrowthStatsOutput = z.infer<typeof notebaseRowGrowthStatsOutputSchema>;
|
|
2451
2451
|
//#endregion
|
|
2452
2452
|
//#region src/schemas/notebase-view.d.ts
|
|
2453
|
-
declare const notebaseViewTypeSchema: z.ZodEnum<{
|
|
2453
|
+
export declare const notebaseViewTypeSchema: z.ZodEnum<{
|
|
2454
2454
|
gallery: "gallery";
|
|
2455
2455
|
kanban: "kanban";
|
|
2456
2456
|
table: "table";
|
|
2457
2457
|
}>;
|
|
2458
|
-
type NotebaseViewType = z.infer<typeof notebaseViewTypeSchema>;
|
|
2459
|
-
declare const notebaseViewConfigSchema: z.ZodObject<{
|
|
2458
|
+
export type NotebaseViewType = z.infer<typeof notebaseViewTypeSchema>;
|
|
2459
|
+
export declare const notebaseViewConfigSchema: z.ZodObject<{
|
|
2460
2460
|
notebaseColumnWidths: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
2461
2461
|
hiddenNotebaseColumns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2462
2462
|
groupByNotebaseColumnId: z.ZodOptional<z.ZodString>;
|
|
2463
2463
|
}, z.core.$catchall<z.ZodUnknown>>;
|
|
2464
|
-
type NotebaseViewConfig = z.infer<typeof notebaseViewConfigSchema>;
|
|
2465
|
-
declare const notebaseViewFilterSchema: z.ZodObject<{
|
|
2464
|
+
export type NotebaseViewConfig = z.infer<typeof notebaseViewConfigSchema>;
|
|
2465
|
+
export declare const notebaseViewFilterSchema: z.ZodObject<{
|
|
2466
2466
|
notebaseColumnId: z.ZodString;
|
|
2467
2467
|
operator: z.ZodString;
|
|
2468
2468
|
value: z.ZodUnknown;
|
|
2469
2469
|
}, z.core.$strict>;
|
|
2470
|
-
type NotebaseViewFilter = z.infer<typeof notebaseViewFilterSchema>;
|
|
2471
|
-
declare const notebaseViewFiltersSchema: z.ZodArray<z.ZodObject<{
|
|
2470
|
+
export type NotebaseViewFilter = z.infer<typeof notebaseViewFilterSchema>;
|
|
2471
|
+
export declare const notebaseViewFiltersSchema: z.ZodArray<z.ZodObject<{
|
|
2472
2472
|
notebaseColumnId: z.ZodString;
|
|
2473
2473
|
operator: z.ZodString;
|
|
2474
2474
|
value: z.ZodUnknown;
|
|
2475
2475
|
}, z.core.$strict>>;
|
|
2476
|
-
declare const notebaseViewSortSchema: z.ZodObject<{
|
|
2476
|
+
export declare const notebaseViewSortSchema: z.ZodObject<{
|
|
2477
2477
|
notebaseColumnId: z.ZodString;
|
|
2478
2478
|
direction: z.ZodEnum<{
|
|
2479
2479
|
asc: "asc";
|
|
2480
2480
|
desc: "desc";
|
|
2481
2481
|
}>;
|
|
2482
2482
|
}, z.core.$strict>;
|
|
2483
|
-
type NotebaseViewSort = z.infer<typeof notebaseViewSortSchema>;
|
|
2484
|
-
declare const notebaseViewSortsSchema: z.ZodArray<z.ZodObject<{
|
|
2483
|
+
export type NotebaseViewSort = z.infer<typeof notebaseViewSortSchema>;
|
|
2484
|
+
export declare const notebaseViewSortsSchema: z.ZodArray<z.ZodObject<{
|
|
2485
2485
|
notebaseColumnId: z.ZodString;
|
|
2486
2486
|
direction: z.ZodEnum<{
|
|
2487
2487
|
asc: "asc";
|
|
2488
2488
|
desc: "desc";
|
|
2489
2489
|
}>;
|
|
2490
2490
|
}, z.core.$strict>>;
|
|
2491
|
-
declare const notebaseViewCreateDataSchema: z.ZodObject<{
|
|
2491
|
+
export declare const notebaseViewCreateDataSchema: z.ZodObject<{
|
|
2492
2492
|
id: z.ZodOptional<z.ZodUUID>;
|
|
2493
2493
|
name: z.ZodString;
|
|
2494
2494
|
type: z.ZodEnum<{
|
|
@@ -2514,8 +2514,8 @@ declare const notebaseViewCreateDataSchema: z.ZodObject<{
|
|
|
2514
2514
|
}>;
|
|
2515
2515
|
}, z.core.$strict>>>;
|
|
2516
2516
|
}, z.core.$strict>;
|
|
2517
|
-
type NotebaseViewCreateData = z.infer<typeof notebaseViewCreateDataSchema>;
|
|
2518
|
-
declare const notebaseViewUpdateDataSchema: z.ZodObject<{
|
|
2517
|
+
export type NotebaseViewCreateData = z.infer<typeof notebaseViewCreateDataSchema>;
|
|
2518
|
+
export declare const notebaseViewUpdateDataSchema: z.ZodObject<{
|
|
2519
2519
|
name: z.ZodOptional<z.ZodString>;
|
|
2520
2520
|
type: z.ZodOptional<z.ZodEnum<{
|
|
2521
2521
|
gallery: "gallery";
|
|
@@ -2540,8 +2540,8 @@ declare const notebaseViewUpdateDataSchema: z.ZodObject<{
|
|
|
2540
2540
|
}>;
|
|
2541
2541
|
}, z.core.$strict>>>;
|
|
2542
2542
|
}, z.core.$strict>;
|
|
2543
|
-
type NotebaseViewUpdateData = z.infer<typeof notebaseViewUpdateDataSchema>;
|
|
2544
|
-
declare const notebaseViewSchema: z.ZodObject<{
|
|
2543
|
+
export type NotebaseViewUpdateData = z.infer<typeof notebaseViewUpdateDataSchema>;
|
|
2544
|
+
export declare const notebaseViewSchema: z.ZodObject<{
|
|
2545
2545
|
id: z.ZodString;
|
|
2546
2546
|
notebaseId: z.ZodString;
|
|
2547
2547
|
name: z.ZodString;
|
|
@@ -2561,22 +2561,22 @@ declare const notebaseViewSchema: z.ZodObject<{
|
|
|
2561
2561
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
2562
2562
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
2563
2563
|
}, z.core.$strip>;
|
|
2564
|
-
type NotebaseView = z.infer<typeof notebaseViewSchema>;
|
|
2564
|
+
export type NotebaseView = z.infer<typeof notebaseViewSchema>;
|
|
2565
2565
|
//#endregion
|
|
2566
2566
|
//#region src/schemas/timezone.d.ts
|
|
2567
|
-
declare const timezoneSchema: z.ZodString;
|
|
2568
|
-
type Timezone = z.infer<typeof timezoneSchema>;
|
|
2567
|
+
export declare const timezoneSchema: z.ZodString;
|
|
2568
|
+
export type Timezone = z.infer<typeof timezoneSchema>;
|
|
2569
2569
|
//#endregion
|
|
2570
2570
|
//#region src/schemas/srs.d.ts
|
|
2571
|
-
declare const stepSchema: z.ZodTemplateLiteral<`${number}d` | `${number}h` | `${number}m`>;
|
|
2572
|
-
type Step = z.infer<typeof stepSchema>;
|
|
2573
|
-
declare const SRS_REVIEW_CLIENT_ID_NAMESPACE = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
|
|
2574
|
-
interface SrsReviewClientIdCard {
|
|
2571
|
+
export declare const stepSchema: z.ZodTemplateLiteral<`${number}d` | `${number}h` | `${number}m`>;
|
|
2572
|
+
export type Step = z.infer<typeof stepSchema>;
|
|
2573
|
+
export declare const SRS_REVIEW_CLIENT_ID_NAMESPACE = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
|
|
2574
|
+
export interface SrsReviewClientIdCard {
|
|
2575
2575
|
id: string;
|
|
2576
2576
|
lastReviewTime: Date | string | null;
|
|
2577
2577
|
}
|
|
2578
|
-
declare function createSrsReviewClientId(card: SrsReviewClientIdCard): Promise<string>;
|
|
2579
|
-
declare const srsReviewInputSchema: z.ZodObject<{
|
|
2578
|
+
export declare function createSrsReviewClientId(card: SrsReviewClientIdCard): Promise<string>;
|
|
2579
|
+
export declare const srsReviewInputSchema: z.ZodObject<{
|
|
2580
2580
|
cardId: z.ZodUUID;
|
|
2581
2581
|
id: z.ZodOptional<z.ZodUUID>;
|
|
2582
2582
|
rating: z.ZodEnum<{
|
|
@@ -2588,45 +2588,45 @@ declare const srsReviewInputSchema: z.ZodObject<{
|
|
|
2588
2588
|
durationMs: z.ZodNumber;
|
|
2589
2589
|
timezone: z.ZodString;
|
|
2590
2590
|
}, z.core.$strict>;
|
|
2591
|
-
type SrsReviewInput = z.infer<typeof srsReviewInputSchema>;
|
|
2592
|
-
declare const srsRollbackReviewInputSchema: z.ZodObject<{
|
|
2591
|
+
export type SrsReviewInput = z.infer<typeof srsReviewInputSchema>;
|
|
2592
|
+
export declare const srsRollbackReviewInputSchema: z.ZodObject<{
|
|
2593
2593
|
expectedReviewId: z.ZodOptional<z.ZodUUID>;
|
|
2594
2594
|
cardId: z.ZodUUID;
|
|
2595
2595
|
}, z.core.$strict>;
|
|
2596
|
-
type SrsRollbackReviewInput = z.infer<typeof srsRollbackReviewInputSchema>;
|
|
2597
|
-
declare const srsScheduleStatusStatsSchema: z.ZodRecord<z.ZodEnum<{
|
|
2596
|
+
export type SrsRollbackReviewInput = z.infer<typeof srsRollbackReviewInputSchema>;
|
|
2597
|
+
export declare const srsScheduleStatusStatsSchema: z.ZodRecord<z.ZodEnum<{
|
|
2598
2598
|
learning: "learning";
|
|
2599
2599
|
new: "new";
|
|
2600
2600
|
review: "review";
|
|
2601
2601
|
}>, z.ZodNumber>;
|
|
2602
|
-
type SrsScheduleStatusStats = z.infer<typeof srsScheduleStatusStatsSchema>;
|
|
2603
|
-
declare const srsScheduleStatusStatsInputSchema: z.ZodObject<{
|
|
2602
|
+
export type SrsScheduleStatusStats = z.infer<typeof srsScheduleStatusStatsSchema>;
|
|
2603
|
+
export declare const srsScheduleStatusStatsInputSchema: z.ZodObject<{
|
|
2604
2604
|
notebaseIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
|
|
2605
2605
|
timezone: z.ZodString;
|
|
2606
2606
|
}, z.core.$strict>;
|
|
2607
|
-
type SrsScheduleStatusStatsInput = z.infer<typeof srsScheduleStatusStatsInputSchema>;
|
|
2608
|
-
declare const srsScheduleStatusStatsOutputSchema: z.ZodRecord<z.ZodUUID, z.ZodRecord<z.ZodEnum<{
|
|
2607
|
+
export type SrsScheduleStatusStatsInput = z.infer<typeof srsScheduleStatusStatsInputSchema>;
|
|
2608
|
+
export declare const srsScheduleStatusStatsOutputSchema: z.ZodRecord<z.ZodUUID, z.ZodRecord<z.ZodEnum<{
|
|
2609
2609
|
learning: "learning";
|
|
2610
2610
|
new: "new";
|
|
2611
2611
|
review: "review";
|
|
2612
2612
|
}>, z.ZodNumber>>;
|
|
2613
|
-
type SrsScheduleStatusStatsOutput = z.infer<typeof srsScheduleStatusStatsOutputSchema>;
|
|
2614
|
-
declare const srsManualCardStatusInputSchema: z.ZodObject<{
|
|
2613
|
+
export type SrsScheduleStatusStatsOutput = z.infer<typeof srsScheduleStatusStatsOutputSchema>;
|
|
2614
|
+
export declare const srsManualCardStatusInputSchema: z.ZodObject<{
|
|
2615
2615
|
cardId: z.ZodUUID;
|
|
2616
2616
|
enabled: z.ZodBoolean;
|
|
2617
2617
|
}, z.core.$strict>;
|
|
2618
|
-
type SrsManualCardStatusInput = z.infer<typeof srsManualCardStatusInputSchema>;
|
|
2619
|
-
declare const srsSetCardBuriedInputSchema: z.ZodObject<{
|
|
2618
|
+
export type SrsManualCardStatusInput = z.infer<typeof srsManualCardStatusInputSchema>;
|
|
2619
|
+
export declare const srsSetCardBuriedInputSchema: z.ZodObject<{
|
|
2620
2620
|
cardId: z.ZodUUID;
|
|
2621
2621
|
enabled: z.ZodBoolean;
|
|
2622
2622
|
}, z.core.$strict>;
|
|
2623
|
-
type SrsSetCardBuriedInput = SrsManualCardStatusInput;
|
|
2624
|
-
declare const srsSetCardSuspendedInputSchema: z.ZodObject<{
|
|
2623
|
+
export type SrsSetCardBuriedInput = SrsManualCardStatusInput;
|
|
2624
|
+
export declare const srsSetCardSuspendedInputSchema: z.ZodObject<{
|
|
2625
2625
|
cardId: z.ZodUUID;
|
|
2626
2626
|
enabled: z.ZodBoolean;
|
|
2627
2627
|
}, z.core.$strict>;
|
|
2628
|
-
type SrsSetCardSuspendedInput = SrsManualCardStatusInput;
|
|
2629
|
-
declare const srsRevlogSchema: z.ZodObject<{
|
|
2628
|
+
export type SrsSetCardSuspendedInput = SrsManualCardStatusInput;
|
|
2629
|
+
export declare const srsRevlogSchema: z.ZodObject<{
|
|
2630
2630
|
id: z.ZodUUID;
|
|
2631
2631
|
notebaseId: z.ZodUUID;
|
|
2632
2632
|
cardId: z.ZodUUID;
|
|
@@ -2693,8 +2693,8 @@ declare const srsRevlogSchema: z.ZodObject<{
|
|
|
2693
2693
|
}>>;
|
|
2694
2694
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
2695
2695
|
}, z.core.$strip>;
|
|
2696
|
-
type SrsRevlog = z.infer<typeof srsRevlogSchema>;
|
|
2697
|
-
declare const srsRevlogWithoutSnapshotSchema: z.ZodObject<{
|
|
2696
|
+
export type SrsRevlog = z.infer<typeof srsRevlogSchema>;
|
|
2697
|
+
export declare const srsRevlogWithoutSnapshotSchema: z.ZodObject<{
|
|
2698
2698
|
id: z.ZodUUID;
|
|
2699
2699
|
notebaseId: z.ZodUUID;
|
|
2700
2700
|
cardId: z.ZodUUID;
|
|
@@ -2723,15 +2723,15 @@ declare const srsRevlogWithoutSnapshotSchema: z.ZodObject<{
|
|
|
2723
2723
|
durationMs: z.ZodNumber;
|
|
2724
2724
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
2725
2725
|
}, z.core.$strip>;
|
|
2726
|
-
type SrsRevlogWithoutSnapshot = z.infer<typeof srsRevlogWithoutSnapshotSchema>;
|
|
2727
|
-
declare const srsListCardRevlogsInputSchema: z.ZodObject<{
|
|
2726
|
+
export type SrsRevlogWithoutSnapshot = z.infer<typeof srsRevlogWithoutSnapshotSchema>;
|
|
2727
|
+
export declare const srsListCardRevlogsInputSchema: z.ZodObject<{
|
|
2728
2728
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
2729
2729
|
offset: z.ZodOptional<z.ZodNumber>;
|
|
2730
2730
|
notebaseId: z.ZodOptional<z.ZodUUID>;
|
|
2731
2731
|
cardId: z.ZodOptional<z.ZodUUID>;
|
|
2732
2732
|
}, z.core.$strict>;
|
|
2733
|
-
type SrsListCardRevlogsInput = z.infer<typeof srsListCardRevlogsInputSchema>;
|
|
2734
|
-
declare const srsListCardRevlogsOutputSchema: z.ZodObject<{
|
|
2733
|
+
export type SrsListCardRevlogsInput = z.infer<typeof srsListCardRevlogsInputSchema>;
|
|
2734
|
+
export declare const srsListCardRevlogsOutputSchema: z.ZodObject<{
|
|
2735
2735
|
items: z.ZodArray<z.ZodObject<{
|
|
2736
2736
|
id: z.ZodUUID;
|
|
2737
2737
|
notebaseId: z.ZodUUID;
|
|
@@ -2763,8 +2763,8 @@ declare const srsListCardRevlogsOutputSchema: z.ZodObject<{
|
|
|
2763
2763
|
}, z.core.$strip>>;
|
|
2764
2764
|
hasMore: z.ZodBoolean;
|
|
2765
2765
|
}, z.core.$strict>;
|
|
2766
|
-
type SrsListCardRevlogsOutput = z.infer<typeof srsListCardRevlogsOutputSchema>;
|
|
2767
|
-
declare const srsReviewOutputSchema: z.ZodObject<{
|
|
2766
|
+
export type SrsListCardRevlogsOutput = z.infer<typeof srsListCardRevlogsOutputSchema>;
|
|
2767
|
+
export declare const srsReviewOutputSchema: z.ZodObject<{
|
|
2768
2768
|
card: z.ZodObject<{
|
|
2769
2769
|
notebaseId: z.ZodUUID;
|
|
2770
2770
|
notebaseRowId: z.ZodUUID;
|
|
@@ -2865,8 +2865,8 @@ declare const srsReviewOutputSchema: z.ZodObject<{
|
|
|
2865
2865
|
txid: z.ZodNumber;
|
|
2866
2866
|
created: z.ZodBoolean;
|
|
2867
2867
|
}, z.core.$strip>;
|
|
2868
|
-
type SrsReviewOutput = z.infer<typeof srsReviewOutputSchema>;
|
|
2869
|
-
declare const srsRollbackReviewOutputSchema: z.ZodObject<{
|
|
2868
|
+
export type SrsReviewOutput = z.infer<typeof srsReviewOutputSchema>;
|
|
2869
|
+
export declare const srsRollbackReviewOutputSchema: z.ZodObject<{
|
|
2870
2870
|
card: z.ZodObject<{
|
|
2871
2871
|
notebaseId: z.ZodUUID;
|
|
2872
2872
|
notebaseRowId: z.ZodUUID;
|
|
@@ -2900,51 +2900,51 @@ declare const srsRollbackReviewOutputSchema: z.ZodObject<{
|
|
|
2900
2900
|
rolledBackRevlogId: z.ZodUUID;
|
|
2901
2901
|
txid: z.ZodNumber;
|
|
2902
2902
|
}, z.core.$strip>;
|
|
2903
|
-
type SrsRollbackReviewOutput = z.infer<typeof srsRollbackReviewOutputSchema>;
|
|
2904
|
-
declare const srsTxidOutputSchema: z.ZodObject<{
|
|
2903
|
+
export type SrsRollbackReviewOutput = z.infer<typeof srsRollbackReviewOutputSchema>;
|
|
2904
|
+
export declare const srsTxidOutputSchema: z.ZodObject<{
|
|
2905
2905
|
txid: z.ZodNumber;
|
|
2906
2906
|
}, z.core.$strip>;
|
|
2907
|
-
type SrsTxidOutput = z.infer<typeof srsTxidOutputSchema>;
|
|
2908
|
-
declare const srsSetCardBuriedOutputSchema: z.ZodObject<{
|
|
2907
|
+
export type SrsTxidOutput = z.infer<typeof srsTxidOutputSchema>;
|
|
2908
|
+
export declare const srsSetCardBuriedOutputSchema: z.ZodObject<{
|
|
2909
2909
|
txid: z.ZodNumber;
|
|
2910
2910
|
}, z.core.$strip>;
|
|
2911
|
-
type SrsSetCardBuriedOutput = SrsTxidOutput;
|
|
2912
|
-
declare const srsSetCardSuspendedOutputSchema: z.ZodObject<{
|
|
2911
|
+
export type SrsSetCardBuriedOutput = SrsTxidOutput;
|
|
2912
|
+
export declare const srsSetCardSuspendedOutputSchema: z.ZodObject<{
|
|
2913
2913
|
txid: z.ZodNumber;
|
|
2914
2914
|
}, z.core.$strip>;
|
|
2915
|
-
type SrsSetCardSuspendedOutput = SrsTxidOutput;
|
|
2916
|
-
declare const srsListUnreadOptimizerResultsInputSchema: z.ZodObject<{}, z.core.$strict>;
|
|
2917
|
-
declare const srsOptimizerUnreadResultSchema: z.ZodObject<{
|
|
2915
|
+
export type SrsSetCardSuspendedOutput = SrsTxidOutput;
|
|
2916
|
+
export declare const srsListUnreadOptimizerResultsInputSchema: z.ZodObject<{}, z.core.$strict>;
|
|
2917
|
+
export declare const srsOptimizerUnreadResultSchema: z.ZodObject<{
|
|
2918
2918
|
runId: z.ZodUUID;
|
|
2919
2919
|
notebaseName: z.ZodString;
|
|
2920
2920
|
revlogCount: z.ZodNumber;
|
|
2921
2921
|
improvement: z.ZodNullable<z.ZodNumber>;
|
|
2922
2922
|
}, z.core.$strict>;
|
|
2923
|
-
type SrsOptimizerUnreadResult = z.infer<typeof srsOptimizerUnreadResultSchema>;
|
|
2924
|
-
declare const srsListUnreadOptimizerResultsOutputSchema: z.ZodArray<z.ZodObject<{
|
|
2923
|
+
export type SrsOptimizerUnreadResult = z.infer<typeof srsOptimizerUnreadResultSchema>;
|
|
2924
|
+
export declare const srsListUnreadOptimizerResultsOutputSchema: z.ZodArray<z.ZodObject<{
|
|
2925
2925
|
runId: z.ZodUUID;
|
|
2926
2926
|
notebaseName: z.ZodString;
|
|
2927
2927
|
revlogCount: z.ZodNumber;
|
|
2928
2928
|
improvement: z.ZodNullable<z.ZodNumber>;
|
|
2929
2929
|
}, z.core.$strict>>;
|
|
2930
|
-
type SrsListUnreadOptimizerResultsOutput = z.infer<typeof srsListUnreadOptimizerResultsOutputSchema>;
|
|
2931
|
-
declare const srsAcknowledgeOptimizerResultsInputSchema: z.ZodObject<{
|
|
2930
|
+
export type SrsListUnreadOptimizerResultsOutput = z.infer<typeof srsListUnreadOptimizerResultsOutputSchema>;
|
|
2931
|
+
export declare const srsAcknowledgeOptimizerResultsInputSchema: z.ZodObject<{
|
|
2932
2932
|
runIds: z.ZodArray<z.ZodUUID>;
|
|
2933
2933
|
}, z.core.$strict>;
|
|
2934
|
-
type SrsAcknowledgeOptimizerResultsInput = z.infer<typeof srsAcknowledgeOptimizerResultsInputSchema>;
|
|
2935
|
-
declare const srsAcknowledgeOptimizerResultsOutputSchema: z.ZodObject<{
|
|
2934
|
+
export type SrsAcknowledgeOptimizerResultsInput = z.infer<typeof srsAcknowledgeOptimizerResultsInputSchema>;
|
|
2935
|
+
export declare const srsAcknowledgeOptimizerResultsOutputSchema: z.ZodObject<{
|
|
2936
2936
|
acknowledgedCount: z.ZodNumber;
|
|
2937
2937
|
}, z.core.$strict>;
|
|
2938
|
-
type SrsAcknowledgeOptimizerResultsOutput = z.infer<typeof srsAcknowledgeOptimizerResultsOutputSchema>;
|
|
2938
|
+
export type SrsAcknowledgeOptimizerResultsOutput = z.infer<typeof srsAcknowledgeOptimizerResultsOutputSchema>;
|
|
2939
2939
|
//#endregion
|
|
2940
2940
|
//#region src/schemas/srs-stats.d.ts
|
|
2941
|
-
declare const srsActivityStatsItemSchema: z.ZodObject<{
|
|
2941
|
+
export declare const srsActivityStatsItemSchema: z.ZodObject<{
|
|
2942
2942
|
date: z.ZodISODate;
|
|
2943
2943
|
answers: z.ZodNumber;
|
|
2944
2944
|
durationMs: z.ZodNumber;
|
|
2945
2945
|
}, z.core.$strict>;
|
|
2946
|
-
type SrsActivityStatsItem = z.infer<typeof srsActivityStatsItemSchema>;
|
|
2947
|
-
declare const srsActivityStatsOutputSchema: z.ZodObject<{
|
|
2946
|
+
export type SrsActivityStatsItem = z.infer<typeof srsActivityStatsItemSchema>;
|
|
2947
|
+
export declare const srsActivityStatsOutputSchema: z.ZodObject<{
|
|
2948
2948
|
learnedCards: z.ZodNumber;
|
|
2949
2949
|
daily: z.ZodArray<z.ZodObject<{
|
|
2950
2950
|
date: z.ZodISODate;
|
|
@@ -2952,30 +2952,30 @@ declare const srsActivityStatsOutputSchema: z.ZodObject<{
|
|
|
2952
2952
|
durationMs: z.ZodNumber;
|
|
2953
2953
|
}, z.core.$strict>>;
|
|
2954
2954
|
}, z.core.$strict>;
|
|
2955
|
-
type SrsActivityStatsOutput = z.infer<typeof srsActivityStatsOutputSchema>;
|
|
2956
|
-
declare const srsMemoryGrowthStatsItemSchema: z.ZodObject<{
|
|
2955
|
+
export type SrsActivityStatsOutput = z.infer<typeof srsActivityStatsOutputSchema>;
|
|
2956
|
+
export declare const srsMemoryGrowthStatsItemSchema: z.ZodObject<{
|
|
2957
2957
|
date: z.ZodISODate;
|
|
2958
2958
|
delta: z.ZodNumber;
|
|
2959
2959
|
}, z.core.$strict>;
|
|
2960
|
-
type SrsMemoryGrowthStatsItem = z.infer<typeof srsMemoryGrowthStatsItemSchema>;
|
|
2961
|
-
declare const srsMemoryGrowthStatsOutputSchema: z.ZodObject<{
|
|
2960
|
+
export type SrsMemoryGrowthStatsItem = z.infer<typeof srsMemoryGrowthStatsItemSchema>;
|
|
2961
|
+
export declare const srsMemoryGrowthStatsOutputSchema: z.ZodObject<{
|
|
2962
2962
|
baseTotal: z.ZodNumber;
|
|
2963
2963
|
daily: z.ZodArray<z.ZodObject<{
|
|
2964
2964
|
date: z.ZodISODate;
|
|
2965
2965
|
delta: z.ZodNumber;
|
|
2966
2966
|
}, z.core.$strict>>;
|
|
2967
2967
|
}, z.core.$strict>;
|
|
2968
|
-
type SrsMemoryGrowthStatsOutput = z.infer<typeof srsMemoryGrowthStatsOutputSchema>;
|
|
2968
|
+
export type SrsMemoryGrowthStatsOutput = z.infer<typeof srsMemoryGrowthStatsOutputSchema>;
|
|
2969
2969
|
//#endregion
|
|
2970
2970
|
//#region src/schemas/stats.d.ts
|
|
2971
|
-
declare const statsInputSchema: z.ZodObject<{
|
|
2971
|
+
export declare const statsInputSchema: z.ZodObject<{
|
|
2972
2972
|
notebaseIds: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodUUID>, z.ZodTransform<string[], string[]>>>;
|
|
2973
2973
|
from: z.ZodOptional<z.ZodISODate>;
|
|
2974
2974
|
to: z.ZodISODate;
|
|
2975
2975
|
timezone: z.ZodString;
|
|
2976
2976
|
}, z.core.$strict>;
|
|
2977
|
-
type StatsInput = z.infer<typeof statsInputSchema>;
|
|
2978
|
-
declare const activityStatsOutputSchema: z.ZodObject<{
|
|
2977
|
+
export type StatsInput = z.infer<typeof statsInputSchema>;
|
|
2978
|
+
export declare const activityStatsOutputSchema: z.ZodObject<{
|
|
2979
2979
|
srs: z.ZodObject<{
|
|
2980
2980
|
learnedCards: z.ZodNumber;
|
|
2981
2981
|
daily: z.ZodArray<z.ZodObject<{
|
|
@@ -2991,36 +2991,36 @@ declare const activityStatsOutputSchema: z.ZodObject<{
|
|
|
2991
2991
|
}, z.core.$strict>>;
|
|
2992
2992
|
}, z.core.$strict>;
|
|
2993
2993
|
}, z.core.$strict>;
|
|
2994
|
-
type ActivityStatsOutput = z.infer<typeof activityStatsOutputSchema>;
|
|
2994
|
+
export type ActivityStatsOutput = z.infer<typeof activityStatsOutputSchema>;
|
|
2995
2995
|
//#endregion
|
|
2996
2996
|
//#region src/schemas/user.d.ts
|
|
2997
|
-
declare const userEnsureTimezoneInputSchema: z.ZodObject<{
|
|
2997
|
+
export declare const userEnsureTimezoneInputSchema: z.ZodObject<{
|
|
2998
2998
|
timezone: z.ZodString;
|
|
2999
2999
|
}, z.core.$strict>;
|
|
3000
|
-
type UserEnsureTimezoneInput = z.infer<typeof userEnsureTimezoneInputSchema>;
|
|
3001
|
-
declare const userEnsureTimezoneOutputSchema: z.ZodObject<{
|
|
3000
|
+
export type UserEnsureTimezoneInput = z.infer<typeof userEnsureTimezoneInputSchema>;
|
|
3001
|
+
export declare const userEnsureTimezoneOutputSchema: z.ZodObject<{
|
|
3002
3002
|
timezone: z.ZodString;
|
|
3003
3003
|
updated: z.ZodBoolean;
|
|
3004
3004
|
}, z.core.$strict>;
|
|
3005
|
-
type UserEnsureTimezoneOutput = z.infer<typeof userEnsureTimezoneOutputSchema>;
|
|
3006
|
-
declare const userUpdateTimezoneInputSchema: z.ZodObject<{
|
|
3005
|
+
export type UserEnsureTimezoneOutput = z.infer<typeof userEnsureTimezoneOutputSchema>;
|
|
3006
|
+
export declare const userUpdateTimezoneInputSchema: z.ZodObject<{
|
|
3007
3007
|
timezone: z.ZodString;
|
|
3008
3008
|
}, z.core.$strict>;
|
|
3009
|
-
type UserUpdateTimezoneInput = z.infer<typeof userUpdateTimezoneInputSchema>;
|
|
3010
|
-
declare const userUpdateTimezoneOutputSchema: z.ZodObject<{
|
|
3009
|
+
export type UserUpdateTimezoneInput = z.infer<typeof userUpdateTimezoneInputSchema>;
|
|
3010
|
+
export declare const userUpdateTimezoneOutputSchema: z.ZodObject<{
|
|
3011
3011
|
timezone: z.ZodString;
|
|
3012
3012
|
}, z.core.$strict>;
|
|
3013
|
-
type UserUpdateTimezoneOutput = z.infer<typeof userUpdateTimezoneOutputSchema>;
|
|
3013
|
+
export type UserUpdateTimezoneOutput = z.infer<typeof userUpdateTimezoneOutputSchema>;
|
|
3014
3014
|
//#endregion
|
|
3015
3015
|
//#region src/schemas/video-transcript.d.ts
|
|
3016
|
-
declare const videoTranscriptStatusSchema: z.ZodEnum<{
|
|
3016
|
+
export declare const videoTranscriptStatusSchema: z.ZodEnum<{
|
|
3017
3017
|
completed: "completed";
|
|
3018
3018
|
failed: "failed";
|
|
3019
3019
|
pending: "pending";
|
|
3020
3020
|
processing: "processing";
|
|
3021
3021
|
}>;
|
|
3022
|
-
type VideoTranscriptStatus = z.infer<typeof videoTranscriptStatusSchema>;
|
|
3023
|
-
declare const videoTranscriptResourceSchema: z.ZodObject<{
|
|
3022
|
+
export type VideoTranscriptStatus = z.infer<typeof videoTranscriptStatusSchema>;
|
|
3023
|
+
export declare const videoTranscriptResourceSchema: z.ZodObject<{
|
|
3024
3024
|
id: z.ZodString;
|
|
3025
3025
|
platform: z.ZodString;
|
|
3026
3026
|
videoId: z.ZodString;
|
|
@@ -3038,8 +3038,8 @@ declare const videoTranscriptResourceSchema: z.ZodObject<{
|
|
|
3038
3038
|
createdAt: z.ZodDate;
|
|
3039
3039
|
updatedAt: z.ZodDate;
|
|
3040
3040
|
}, z.core.$strip>;
|
|
3041
|
-
type VideoTranscriptResource = z.infer<typeof videoTranscriptResourceSchema>;
|
|
3042
|
-
declare const videoTranscriptSubtitlesSchema: z.ZodObject<{
|
|
3041
|
+
export type VideoTranscriptResource = z.infer<typeof videoTranscriptResourceSchema>;
|
|
3042
|
+
export declare const videoTranscriptSubtitlesSchema: z.ZodObject<{
|
|
3043
3043
|
id: z.ZodString;
|
|
3044
3044
|
detectedLanguage: z.ZodNullable<z.ZodString>;
|
|
3045
3045
|
segments: z.ZodArray<z.ZodObject<{
|
|
@@ -3048,17 +3048,17 @@ declare const videoTranscriptSubtitlesSchema: z.ZodObject<{
|
|
|
3048
3048
|
text: z.ZodString;
|
|
3049
3049
|
}, z.core.$strip>>;
|
|
3050
3050
|
}, z.core.$strip>;
|
|
3051
|
-
type VideoTranscriptSubtitles = z.infer<typeof videoTranscriptSubtitlesSchema>;
|
|
3052
|
-
declare const videoTranscriptCreateInputSchema: z.ZodObject<{
|
|
3051
|
+
export type VideoTranscriptSubtitles = z.infer<typeof videoTranscriptSubtitlesSchema>;
|
|
3052
|
+
export declare const videoTranscriptCreateInputSchema: z.ZodObject<{
|
|
3053
3053
|
url: z.ZodURL;
|
|
3054
3054
|
durationSec: z.ZodNumber;
|
|
3055
3055
|
}, z.core.$strict>;
|
|
3056
|
-
type VideoTranscriptCreateInput = z.infer<typeof videoTranscriptCreateInputSchema>;
|
|
3057
|
-
declare const videoTranscriptGetInputSchema: z.ZodObject<{
|
|
3056
|
+
export type VideoTranscriptCreateInput = z.infer<typeof videoTranscriptCreateInputSchema>;
|
|
3057
|
+
export declare const videoTranscriptGetInputSchema: z.ZodObject<{
|
|
3058
3058
|
id: z.ZodUUID;
|
|
3059
3059
|
}, z.core.$strict>;
|
|
3060
|
-
type VideoTranscriptGetInput = z.infer<typeof videoTranscriptGetInputSchema>;
|
|
3061
|
-
declare const videoTranscriptUsagePoolSchema: z.ZodObject<{
|
|
3060
|
+
export type VideoTranscriptGetInput = z.infer<typeof videoTranscriptGetInputSchema>;
|
|
3061
|
+
export declare const videoTranscriptUsagePoolSchema: z.ZodObject<{
|
|
3062
3062
|
id: z.ZodString;
|
|
3063
3063
|
usedMinutes: z.ZodNumber;
|
|
3064
3064
|
limitMinutes: z.ZodNumber;
|
|
@@ -3066,8 +3066,8 @@ declare const videoTranscriptUsagePoolSchema: z.ZodObject<{
|
|
|
3066
3066
|
resetAt: z.ZodNullable<z.ZodISODateTime>;
|
|
3067
3067
|
expiresAt: z.ZodNullable<z.ZodISODateTime>;
|
|
3068
3068
|
}, z.core.$strip>;
|
|
3069
|
-
type VideoTranscriptUsagePool = z.infer<typeof videoTranscriptUsagePoolSchema>;
|
|
3070
|
-
declare const videoTranscriptUsageSchema: z.ZodObject<{
|
|
3069
|
+
export type VideoTranscriptUsagePool = z.infer<typeof videoTranscriptUsagePoolSchema>;
|
|
3070
|
+
export declare const videoTranscriptUsageSchema: z.ZodObject<{
|
|
3071
3071
|
usedMinutes: z.ZodNumber;
|
|
3072
3072
|
limitMinutes: z.ZodNumber;
|
|
3073
3073
|
remainingMinutes: z.ZodNumber;
|
|
@@ -3085,27 +3085,27 @@ declare const videoTranscriptUsageSchema: z.ZodObject<{
|
|
|
3085
3085
|
expiresAt: z.ZodNullable<z.ZodISODateTime>;
|
|
3086
3086
|
}, z.core.$strip>>;
|
|
3087
3087
|
}, z.core.$strip>;
|
|
3088
|
-
type VideoTranscriptUsage = z.infer<typeof videoTranscriptUsageSchema>;
|
|
3088
|
+
export type VideoTranscriptUsage = z.infer<typeof videoTranscriptUsageSchema>;
|
|
3089
3089
|
//#endregion
|
|
3090
3090
|
//#region src/schemas/pagination.d.ts
|
|
3091
|
-
declare const paginationShape: {
|
|
3091
|
+
export declare const paginationShape: {
|
|
3092
3092
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
3093
3093
|
offset: z.ZodOptional<z.ZodNumber>;
|
|
3094
3094
|
};
|
|
3095
|
-
declare function pageSchema<T extends z.ZodType>(itemSchema: T): z.ZodObject<{
|
|
3095
|
+
export declare function pageSchema<T extends z.ZodType>(itemSchema: T): z.ZodObject<{
|
|
3096
3096
|
items: z.ZodArray<T>;
|
|
3097
3097
|
hasMore: z.ZodBoolean;
|
|
3098
3098
|
}, z.core.$strip>;
|
|
3099
3099
|
//#endregion
|
|
3100
3100
|
//#region src/schemas/resource-mutation.d.ts
|
|
3101
|
-
declare const expectedUpdatedAtSchema: z.ZodISODateTime;
|
|
3102
|
-
declare const deletionResultSchema: z.ZodObject<{
|
|
3101
|
+
export declare const expectedUpdatedAtSchema: z.ZodISODateTime;
|
|
3102
|
+
export declare const deletionResultSchema: z.ZodObject<{
|
|
3103
3103
|
id: z.ZodUUID;
|
|
3104
3104
|
txid: z.ZodNumber;
|
|
3105
3105
|
}, z.core.$strip>;
|
|
3106
3106
|
//#endregion
|
|
3107
3107
|
//#region src/index.d.ts
|
|
3108
|
-
declare const contract: {
|
|
3108
|
+
export declare const contract: {
|
|
3109
3109
|
betaAccess: {
|
|
3110
3110
|
status: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
3111
3111
|
featureKey: import("zod").ZodEnum<{
|
|
@@ -4815,7 +4815,7 @@ declare const contract: {
|
|
|
4815
4815
|
}, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "VIDEO_TRANSCRIPTION_SUBSCRIPTION_REQUIRED" | "VIDEO_TRANSCRIPT_NOT_FOUND" | "VIDEO_TRANSCRIPT_NOT_READY">>, Record<never, never>>;
|
|
4816
4816
|
};
|
|
4817
4817
|
};
|
|
4818
|
-
type ORPCRouterClient = ContractRouterClient<typeof contract>;
|
|
4818
|
+
export type ORPCRouterClient = ContractRouterClient<typeof contract>;
|
|
4819
4819
|
//#endregion
|
|
4820
|
-
export { ActivityStatsOutput, type AgentRoute, BetaAccessStatusInput, BetaAccessStatusInputSchema, BetaAccessStatusOutput, BetaAccessStatusOutputSchema, BetaFeatureKey, BetaFeatureKeySchema, BillingAccessSource, BillingCancelScheduledChangeOutput, BillingCheckoutPlan, BillingCreateCheckoutSessionInput, BillingCreateCustomerPortalSessionInput, BillingCurrency, BillingInterval, BillingLocale, BillingPlan, BillingScheduledChange, BillingSessionUrlOutput, BillingStatus, BillingSubscriptionStatus, Card, CardGenerateInput, CardGenerateInputSchema, CardGenerateOutput, CardGenerateOutputSchema, CardGetInput, CardGetInputSchema, CardGetOutput, CardGetOutputSchema, CardListInput, CardListInputSchema, CardListOutput, CardListOutputSchema, type CardState, CardTemplate, CardTemplateCreateInput, CardTemplateCreateInputSchema, CardTemplateCreateOutput, CardTemplateCreateOutputSchema, CardTemplateDeleteInput, CardTemplateDeleteInputSchema, CardTemplateDeleteOutput, CardTemplateDeleteOutputSchema, CardTemplateGetInput, CardTemplateGetInputSchema, CardTemplateGetOutput, CardTemplateGetOutputSchema, CardTemplateInvalidColumnsData, CardTemplateInvalidColumnsDataSchema, CardTemplateListInput, CardTemplateListInputSchema, CardTemplateListOutput, CardTemplateListOutputSchema, CardTemplateUpdateInput, CardTemplateUpdateInputSchema, CardTemplateUpdateOutput, CardTemplateUpdateOutputSchema, CellValidationFailedData, CellValidationFailedDataSchema, CellValidationFailureDetails, CellValidationFailureDetailsSchema, CellValidationFailureReason, CellValidationFailureReasonSchema, EbookCoverContentType, EbookDeleteInput, EbookDeleteOutput, EbookDetail, EbookFinalizeUploadInput, EbookFinalizeUploadOutput, EbookGetDownloadUrlInput, EbookGetDownloadUrlOutput, EbookGetInput, EbookGetOutput, EbookListInput, EbookListItem, EbookListOutput, EbookPresignedPost, EbookQuota, EbookRenameData, EbookRenameInput, EbookRenameOutput, EbookRequestUploadInput, EbookRequestUploadOutput, EbookStatus, EbookUpdateProgressData, EbookUpdateProgressInput, EbookUpdateProgressOutput, HOSTED_AI_CLIENT_STREAM_PART_TYPES, HOSTED_AI_NOTE_SUGGESTION_MAX_NOTES, HOSTED_AI_NOTE_SUGGESTION_MAX_NOTE_FIELDS, HostedAiCreditPeriodKind, HostedAiCreditPeriodKindSchema, HostedAiCreditPolicyId, HostedAiCreditPolicyIdSchema, HostedAiCreditStatus, HostedAiCreditStatusSchema, HostedAiFeature, HostedAiFeatureSchema, HostedAiFeatureStatus, HostedAiFeatureStatusSchema, HostedAiModelTier, HostedAiModelTierSchema, HostedAiNoteSuggestionObject, HostedAiNoteSuggestionObjectSchema, HostedAiNoteSuggestionStreamInput, HostedAiNoteSuggestionStreamInputSchema, HostedAiOutputField, HostedAiOutputFieldSchema, HostedAiOutputFieldType, HostedAiOutputFieldTypeSchema, HostedAiQuotaExhaustedDataSchema, HostedAiQuotaScope, HostedAiQuotaScopeSchema, HostedAiRateLimitErrorData, HostedAiRateLimitErrorDataSchema, HostedAiRequestIdSchema, HostedAiStatusInput, HostedAiStatusInputSchema, HostedAiStatusOutput, HostedAiStatusOutputSchema, HostedAiStreamPart, HostedAiStreamPartSchema, HostedAiStreamStructuredObjectInput, HostedAiStreamStructuredObjectInputSchema, HostedAiStreamTextInput, HostedAiStreamTextInputSchema, HostedAiTierRestrictedDataSchema, HostedAiTierStatus, HostedAiTierStatusSchema, HostedAiUnavailableReason, HostedAiUnavailableReasonSchema, MCP_ALLOWED_PLANS, McpConnection, McpConnectionRevokeInput, NOTEBASE_ROW_CREATE_MANY_MAX_ROWS, NOTEBASE_ROW_DELETE_MANY_MAX_ROWS, NOTEBASE_ROW_UPDATE_MANY_MAX_ROWS, Notebase, NotebaseActivityStatsItem, NotebaseActivityStatsOutput, NotebaseColumn, NotebaseColumnCreateData, NotebaseColumnCreateInput, NotebaseColumnCreateInputSchema, NotebaseColumnCreateOutput, NotebaseColumnCreateOutputSchema, NotebaseColumnDeleteInput, NotebaseColumnDeleteInputSchema, NotebaseColumnDeleteOutput, NotebaseColumnDeleteOutputSchema, NotebaseColumnReorderInput, NotebaseColumnReorderInputSchema, NotebaseColumnReorderOutput, NotebaseColumnReorderOutputSchema, NotebaseColumnUpdateData, NotebaseColumnUpdateInput, NotebaseColumnUpdateInputSchema, NotebaseColumnUpdateOutput, NotebaseColumnUpdateOutputSchema, NotebaseCreateData, NotebaseCreateInput, NotebaseCreateInputSchema, NotebaseCreateOutput, NotebaseCreateOutputSchema, NotebaseDeleteInput, NotebaseDeleteInputSchema, NotebaseDeleteOutput, NotebaseDeleteOutputSchema, NotebaseGetInput, NotebaseGetInputSchema, NotebaseGetOutput, NotebaseGetOutputSchema, NotebaseGetSchemaInput, NotebaseGetSchemaInputSchema, NotebaseGetSchemaOutput, NotebaseGetSchemaOutputSchema, NotebaseGetSummaryInput, NotebaseGetSummaryInputSchema, NotebaseGetSummaryOutput, NotebaseGetSummaryOutputSchema, NotebaseListInput, NotebaseListInputSchema, NotebaseListItem, NotebaseListItemSchema, NotebaseListOutput, NotebaseListOutputSchema, NotebaseRow, NotebaseRowCreateData, NotebaseRowCreateInput, NotebaseRowCreateInputSchema, NotebaseRowCreateManyInput, NotebaseRowCreateManyInputSchema, NotebaseRowCreateManyOutput, NotebaseRowCreateManyOutputSchema, NotebaseRowCreateOutput, NotebaseRowCreateOutputSchema, NotebaseRowDeleteInput, NotebaseRowDeleteInputSchema, NotebaseRowDeleteManyInput, NotebaseRowDeleteManyInputSchema, NotebaseRowDeleteManyOutput, NotebaseRowDeleteManyOutputSchema, NotebaseRowDeleteOutput, NotebaseRowDeleteOutputSchema, NotebaseRowGetInputSchema, NotebaseRowGetOutputSchema, NotebaseRowGrowthStatsItem, NotebaseRowGrowthStatsOutput, NotebaseRowListInput, NotebaseRowListInputSchema, NotebaseRowListOutputSchema, NotebaseRowReorderInput, NotebaseRowReorderInputSchema, NotebaseRowReorderOutput, NotebaseRowReorderOutputSchema, NotebaseRowUpdateData, NotebaseRowUpdateInput, NotebaseRowUpdateInputSchema, NotebaseRowUpdateManyInput, NotebaseRowUpdateManyInputSchema, NotebaseRowUpdateManyOutput, NotebaseRowUpdateManyOutputSchema, NotebaseRowUpdateOutput, NotebaseRowUpdateOutputSchema, NotebaseSummary, NotebaseUpdateData, NotebaseUpdateInput, NotebaseUpdateInputSchema, NotebaseUpdateOutput, NotebaseUpdateOutputSchema, NotebaseView, NotebaseViewConfig, NotebaseViewCreateData, NotebaseViewFilter, NotebaseViewSort, NotebaseViewType, NotebaseViewUpdateData, ORPCRouterClient, PUBLIC_APP_ERROR_DEFS, PublicAppErrorCode, PublicAppErrorData, RenderedCard, type ReviewRating, SRS_REVIEW_CLIENT_ID_NAMESPACE, SRS_REVIEW_DURATION_MS_MAX, type ScheduleStatus, type SchedulingParams, SrsAcknowledgeOptimizerResultsInput, SrsAcknowledgeOptimizerResultsOutput, SrsActivityStatsItem, SrsActivityStatsOutput, SrsListCardRevlogsInput, SrsListCardRevlogsOutput, SrsListUnreadOptimizerResultsOutput, SrsManualCardStatusInput, SrsMemoryGrowthStatsItem, SrsMemoryGrowthStatsOutput, SrsOptimizerUnreadResult, SrsReviewClientIdCard, SrsReviewInput, SrsReviewOutput, SrsRevlog, SrsRevlogWithoutSnapshot, SrsRollbackReviewInput, SrsRollbackReviewOutput, SrsScheduleStatusStats, SrsScheduleStatusStatsInput, SrsScheduleStatusStatsOutput, SrsSetCardBuriedInput, SrsSetCardBuriedOutput, SrsSetCardSuspendedInput, SrsSetCardSuspendedOutput, SrsTxidOutput, StatsInput, Step, Timezone, UserEnsureTimezoneInput, UserEnsureTimezoneOutput, UserUpdateTimezoneInput, UserUpdateTimezoneOutput, VideoTranscriptCreateInput, VideoTranscriptGetInput, VideoTranscriptResource, VideoTranscriptStatus, VideoTranscriptSubtitles, VideoTranscriptUsage, VideoTranscriptUsagePool, activityStatsOutputSchema, billingAccessSourceSchema, billingCancelScheduledChangeOutputSchema, billingCheckoutPlanSchema, billingCreateCheckoutSessionInputSchema, billingCreateCustomerPortalSessionInputSchema, billingCurrencySchema, billingIntervalSchema, billingLocaleSchema, billingPlanSchema, billingScheduledChangeSchema, billingSessionUrlOutputSchema, billingStatusSchema, billingSubscriptionStatusSchema, cardSchema, cardStateSchema, cardTemplateSchema, contract, createSrsReviewClientId, defineAgentProcedure, deletionResultSchema, ebookCoverContentTypeSchema, ebookDeleteInputSchema, ebookDeleteOutputSchema, ebookDetailSchema, ebookFinalizeUploadInputSchema, ebookFinalizeUploadOutputSchema, ebookGetDownloadUrlInputSchema, ebookGetDownloadUrlOutputSchema, ebookGetInputSchema, ebookGetOutputSchema, ebookListInputSchema, ebookListItemSchema, ebookListOutputSchema, ebookPresignedPostSchema, ebookQuotaSchema, ebookRenameDataSchema, ebookRenameInputSchema, ebookRenameOutputSchema, ebookRequestUploadInputSchema, ebookRequestUploadOutputSchema, ebookStatusSchema, ebookUpdateProgressDataSchema, ebookUpdateProgressInputSchema, ebookUpdateProgressOutputSchema, expectedUpdatedAtSchema, getPublicErrorDefinition, isPlanAllowed, isPublicAppErrorCode, mcpConnectionListOutputSchema, mcpConnectionRevokeInputSchema, mcpConnectionRevokeOutputSchema, mcpConnectionSchema, notebaseActivityStatsItemSchema, notebaseActivityStatsOutputSchema, notebaseColumnCreateDataSchema, notebaseColumnSchema, notebaseColumnUpdateDataSchema, notebaseColumnWidthSchema, notebaseCreateDataSchema, notebaseRowCellsSchema, notebaseRowCreateDataSchema, notebaseRowGrowthStatsItemSchema, notebaseRowGrowthStatsOutputSchema, notebaseRowSchema, notebaseRowUpdateDataSchema, notebaseSchema, notebaseSummarySchema, notebaseUpdateDataSchema, notebaseViewConfigSchema, notebaseViewCreateDataSchema, notebaseViewFilterSchema, notebaseViewFiltersSchema, notebaseViewSchema, notebaseViewSortSchema, notebaseViewSortsSchema, notebaseViewTypeSchema, notebaseViewUpdateDataSchema, pageSchema, paginationShape, pickPublicErrorMap, renderedCardSchema, reviewRatingSchema, scheduleStatusSchema, schedulingParamsSchema, srsAcknowledgeOptimizerResultsInputSchema, srsAcknowledgeOptimizerResultsOutputSchema, srsActivityStatsItemSchema, srsActivityStatsOutputSchema, srsListCardRevlogsInputSchema, srsListCardRevlogsOutputSchema, srsListUnreadOptimizerResultsInputSchema, srsListUnreadOptimizerResultsOutputSchema, srsManualCardStatusInputSchema, srsMemoryGrowthStatsItemSchema, srsMemoryGrowthStatsOutputSchema, srsOptimizerUnreadResultSchema, srsReviewInputSchema, srsReviewOutputSchema, srsRevlogSchema, srsRevlogWithoutSnapshotSchema, srsRollbackReviewInputSchema, srsRollbackReviewOutputSchema, srsScheduleStatusStatsInputSchema, srsScheduleStatusStatsOutputSchema, srsScheduleStatusStatsSchema, srsSetCardBuriedInputSchema, srsSetCardBuriedOutputSchema, srsSetCardSuspendedInputSchema, srsSetCardSuspendedOutputSchema, srsTxidOutputSchema, statsInputSchema, stepSchema, timezoneSchema, userEnsureTimezoneInputSchema, userEnsureTimezoneOutputSchema, userUpdateTimezoneInputSchema, userUpdateTimezoneOutputSchema, videoTranscriptCreateInputSchema, videoTranscriptGetInputSchema, videoTranscriptResourceSchema, videoTranscriptStatusSchema, videoTranscriptSubtitlesSchema, videoTranscriptUsagePoolSchema, videoTranscriptUsageSchema };
|
|
4820
|
+
export { type AgentRoute, type CardState, type ReviewRating, SRS_REVIEW_DURATION_MS_MAX, type ScheduleStatus, type SchedulingParams, cardStateSchema, reviewRatingSchema, scheduleStatusSchema, schedulingParamsSchema };
|
|
4821
4821
|
//# sourceMappingURL=index.d.ts.map
|