@kernhq/module-quire 0.10.8 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/contract/models.d.ts +87 -0
- package/dist/contract/models.d.ts.map +1 -1
- package/dist/contract/models.js +73 -0
- package/dist/contract/models.js.map +1 -1
- package/dist/contract/permissions.d.ts.map +1 -1
- package/dist/contract/permissions.js +32 -0
- package/dist/contract/permissions.js.map +1 -1
- package/dist/contract/router.d.ts +645 -0
- package/dist/contract/router.d.ts.map +1 -1
- package/dist/contract/router.js +137 -2
- package/dist/contract/router.js.map +1 -1
- package/dist/server/_impl.d.ts +877 -0
- package/dist/server/_impl.d.ts.map +1 -1
- package/dist/server/_impl.js +127 -1
- package/dist/server/_impl.js.map +1 -1
- package/dist/server/schema.d.ts +482 -1
- package/dist/server/schema.d.ts.map +1 -1
- package/dist/server/schema.js +115 -1
- package/dist/server/schema.js.map +1 -1
- package/dist/server/services/index.d.ts +3 -0
- package/dist/server/services/index.d.ts.map +1 -1
- package/dist/server/services/index.js +3 -0
- package/dist/server/services/index.js.map +1 -1
- package/dist/server/services/organisation.d.ts +117 -0
- package/dist/server/services/organisation.d.ts.map +1 -0
- package/dist/server/services/organisation.js +319 -0
- package/dist/server/services/organisation.js.map +1 -0
- package/dist/server/services/pages.d.ts +16 -1
- package/dist/server/services/pages.d.ts.map +1 -1
- package/dist/server/services/pages.js +62 -3
- package/dist/server/services/pages.js.map +1 -1
- package/migrations/0007_organisation.sql +114 -0
- package/migrations/meta/0007_snapshot.json +1588 -0
- package/migrations/meta/_journal.json +7 -0
- package/package.json +1 -1
- package/src/client/components/ConfirmDialog.svelte +123 -0
- package/src/client/components/FavoriteStar.svelte +81 -0
- package/src/client/components/LabelChip.svelte +46 -0
- package/src/client/components/LabelManager.svelte +336 -0
- package/src/client/components/PageLabels.svelte +158 -0
- package/src/client/components/SidebarFavorites.svelte +262 -0
- package/src/client/components/SidebarRecents.svelte +98 -0
- package/src/client/components/SidebarSpaces.svelte +266 -1
- package/src/client/i18n.ts +387 -0
- package/src/client/index.ts +8 -0
- package/src/client/mock.ts +306 -0
- package/src/client/module.ts +18 -0
- package/src/client/pages/PageView.svelte +235 -5
- package/src/client/pages/TrashPage.svelte +378 -0
- package/src/client/query.ts +24 -0
- package/src/contract/models.ts +83 -0
- package/src/contract/permissions.ts +36 -0
- package/src/contract/router.ts +153 -1
package/dist/server/_impl.d.ts
CHANGED
|
@@ -1050,6 +1050,72 @@ export declare function implement_(kernel: Kernel): {
|
|
|
1050
1050
|
}, import("zod/v4/core").$strip>;
|
|
1051
1051
|
};
|
|
1052
1052
|
}>>, Record<never, never>>;
|
|
1053
|
+
setLabels: import("@orpc/server").Procedure<import("@orpc/server").MergedInitialContext<RequestContext & Record<never, never>, RequestContext & Record<never, never> & Omit<RequestContext & Record<never, never>, keyof RequestContext> & Omit<RequestContext & Record<never, never>, "workspaceId" | "kernel" | "principal" | "requestId" | "ip" | "headers">, RequestContext>, Omit<import("@orpc/server").MergedCurrentContext<RequestContext, {
|
|
1054
|
+
workspaceId: string;
|
|
1055
|
+
kernel: Kernel;
|
|
1056
|
+
principal: {
|
|
1057
|
+
kind: "service" | "user" | "api_key" | "anonymous";
|
|
1058
|
+
userId: (string & import("zod").$brand<"UserId">) | null;
|
|
1059
|
+
email: string | null;
|
|
1060
|
+
name: string | null;
|
|
1061
|
+
locale: "en" | "fa" | "ar" | "de";
|
|
1062
|
+
instanceAdmin: boolean;
|
|
1063
|
+
service: string | null;
|
|
1064
|
+
memberships: {
|
|
1065
|
+
workspaceId: string & import("zod").$brand<"WorkspaceId">;
|
|
1066
|
+
role: "owner" | "admin" | "member" | "guest";
|
|
1067
|
+
roleIds: string[];
|
|
1068
|
+
groupIds: string[];
|
|
1069
|
+
status: "active" | "invited" | "suspended";
|
|
1070
|
+
}[];
|
|
1071
|
+
permissionVersion: number;
|
|
1072
|
+
};
|
|
1073
|
+
requestId: string;
|
|
1074
|
+
ip: string;
|
|
1075
|
+
headers: Record<string, string | string[] | undefined>;
|
|
1076
|
+
}>, never> & Record<never, never>, import("zod").ZodObject<{
|
|
1077
|
+
workspaceId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "WorkspaceId", "out">;
|
|
1078
|
+
pageId: import("zod").ZodUUID;
|
|
1079
|
+
labelIds: import("zod").ZodArray<import("zod").ZodUUID>;
|
|
1080
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodArray<import("zod").ZodObject<{
|
|
1081
|
+
id: import("zod").ZodUUID;
|
|
1082
|
+
workspaceId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "WorkspaceId", "out">;
|
|
1083
|
+
spaceId: import("zod").ZodUUID;
|
|
1084
|
+
name: import("zod").ZodString;
|
|
1085
|
+
colour: import("zod").ZodEnum<{
|
|
1086
|
+
success: "success";
|
|
1087
|
+
grey: "grey";
|
|
1088
|
+
slate: "slate";
|
|
1089
|
+
accent: "accent";
|
|
1090
|
+
warning: "warning";
|
|
1091
|
+
danger: "danger";
|
|
1092
|
+
info: "info";
|
|
1093
|
+
purple: "purple";
|
|
1094
|
+
}>;
|
|
1095
|
+
createdAt: import("zod").ZodISODateTime;
|
|
1096
|
+
}, import("zod/v4/core").$strip>>, import("@orpc/server").MergedErrorMap<Record<never, never>, import("@orpc/server").MergedErrorMap<Record<never, never>, {
|
|
1097
|
+
BAD_REQUEST: {
|
|
1098
|
+
data: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>;
|
|
1099
|
+
};
|
|
1100
|
+
UNAUTHORIZED: {};
|
|
1101
|
+
FORBIDDEN: {
|
|
1102
|
+
data: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1103
|
+
permission: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1104
|
+
}, import("zod/v4/core").$strip>>;
|
|
1105
|
+
};
|
|
1106
|
+
NOT_FOUND: {};
|
|
1107
|
+
CONFLICT: {
|
|
1108
|
+
data: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1109
|
+
reason: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1110
|
+
}, import("zod/v4/core").$strip>>;
|
|
1111
|
+
};
|
|
1112
|
+
RATE_LIMITED: {};
|
|
1113
|
+
MODULE_DISABLED: {
|
|
1114
|
+
data: import("zod").ZodObject<{
|
|
1115
|
+
module: import("zod").ZodString;
|
|
1116
|
+
}, import("zod/v4/core").$strip>;
|
|
1117
|
+
};
|
|
1118
|
+
}>>, Record<never, never>>;
|
|
1053
1119
|
};
|
|
1054
1120
|
versions: {
|
|
1055
1121
|
list: import("@orpc/server").Procedure<import("@orpc/server").MergedInitialContext<RequestContext & Record<never, never>, RequestContext & Record<never, never> & Omit<RequestContext & Record<never, never>, keyof RequestContext> & Omit<RequestContext & Record<never, never>, "workspaceId" | "kernel" | "principal" | "requestId" | "ip" | "headers">, RequestContext>, Omit<import("@orpc/server").MergedCurrentContext<RequestContext, {
|
|
@@ -3484,6 +3550,817 @@ export declare function implement_(kernel: Kernel): {
|
|
|
3484
3550
|
};
|
|
3485
3551
|
}>>, Record<never, never>>;
|
|
3486
3552
|
};
|
|
3553
|
+
labels: {
|
|
3554
|
+
list: import("@orpc/server").Procedure<import("@orpc/server").MergedInitialContext<RequestContext & Record<never, never>, RequestContext & Record<never, never> & Omit<RequestContext & Record<never, never>, keyof RequestContext> & Omit<RequestContext & Record<never, never>, "workspaceId" | "kernel" | "principal" | "requestId" | "ip" | "headers">, RequestContext>, Omit<import("@orpc/server").MergedCurrentContext<RequestContext, {
|
|
3555
|
+
workspaceId: string;
|
|
3556
|
+
kernel: Kernel;
|
|
3557
|
+
principal: {
|
|
3558
|
+
kind: "service" | "user" | "api_key" | "anonymous";
|
|
3559
|
+
userId: (string & import("zod").$brand<"UserId">) | null;
|
|
3560
|
+
email: string | null;
|
|
3561
|
+
name: string | null;
|
|
3562
|
+
locale: "en" | "fa" | "ar" | "de";
|
|
3563
|
+
instanceAdmin: boolean;
|
|
3564
|
+
service: string | null;
|
|
3565
|
+
memberships: {
|
|
3566
|
+
workspaceId: string & import("zod").$brand<"WorkspaceId">;
|
|
3567
|
+
role: "owner" | "admin" | "member" | "guest";
|
|
3568
|
+
roleIds: string[];
|
|
3569
|
+
groupIds: string[];
|
|
3570
|
+
status: "active" | "invited" | "suspended";
|
|
3571
|
+
}[];
|
|
3572
|
+
permissionVersion: number;
|
|
3573
|
+
};
|
|
3574
|
+
requestId: string;
|
|
3575
|
+
ip: string;
|
|
3576
|
+
headers: Record<string, string | string[] | undefined>;
|
|
3577
|
+
}>, never> & Record<never, never>, import("zod").ZodObject<{
|
|
3578
|
+
workspaceId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "WorkspaceId", "out">;
|
|
3579
|
+
spaceId: import("zod").ZodUUID;
|
|
3580
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodArray<import("zod").ZodObject<{
|
|
3581
|
+
id: import("zod").ZodUUID;
|
|
3582
|
+
workspaceId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "WorkspaceId", "out">;
|
|
3583
|
+
spaceId: import("zod").ZodUUID;
|
|
3584
|
+
name: import("zod").ZodString;
|
|
3585
|
+
colour: import("zod").ZodEnum<{
|
|
3586
|
+
success: "success";
|
|
3587
|
+
grey: "grey";
|
|
3588
|
+
slate: "slate";
|
|
3589
|
+
accent: "accent";
|
|
3590
|
+
warning: "warning";
|
|
3591
|
+
danger: "danger";
|
|
3592
|
+
info: "info";
|
|
3593
|
+
purple: "purple";
|
|
3594
|
+
}>;
|
|
3595
|
+
createdAt: import("zod").ZodISODateTime;
|
|
3596
|
+
}, import("zod/v4/core").$strip>>, import("@orpc/server").MergedErrorMap<Record<never, never>, import("@orpc/server").MergedErrorMap<Record<never, never>, {
|
|
3597
|
+
BAD_REQUEST: {
|
|
3598
|
+
data: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>;
|
|
3599
|
+
};
|
|
3600
|
+
UNAUTHORIZED: {};
|
|
3601
|
+
FORBIDDEN: {
|
|
3602
|
+
data: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
3603
|
+
permission: import("zod").ZodOptional<import("zod").ZodString>;
|
|
3604
|
+
}, import("zod/v4/core").$strip>>;
|
|
3605
|
+
};
|
|
3606
|
+
NOT_FOUND: {};
|
|
3607
|
+
CONFLICT: {
|
|
3608
|
+
data: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
3609
|
+
reason: import("zod").ZodOptional<import("zod").ZodString>;
|
|
3610
|
+
}, import("zod/v4/core").$strip>>;
|
|
3611
|
+
};
|
|
3612
|
+
RATE_LIMITED: {};
|
|
3613
|
+
MODULE_DISABLED: {
|
|
3614
|
+
data: import("zod").ZodObject<{
|
|
3615
|
+
module: import("zod").ZodString;
|
|
3616
|
+
}, import("zod/v4/core").$strip>;
|
|
3617
|
+
};
|
|
3618
|
+
}>>, Record<never, never>>;
|
|
3619
|
+
forPage: import("@orpc/server").Procedure<import("@orpc/server").MergedInitialContext<RequestContext & Record<never, never>, RequestContext & Record<never, never> & Omit<RequestContext & Record<never, never>, keyof RequestContext> & Omit<RequestContext & Record<never, never>, "workspaceId" | "kernel" | "principal" | "requestId" | "ip" | "headers">, RequestContext>, Omit<import("@orpc/server").MergedCurrentContext<RequestContext, {
|
|
3620
|
+
workspaceId: string;
|
|
3621
|
+
kernel: Kernel;
|
|
3622
|
+
principal: {
|
|
3623
|
+
kind: "service" | "user" | "api_key" | "anonymous";
|
|
3624
|
+
userId: (string & import("zod").$brand<"UserId">) | null;
|
|
3625
|
+
email: string | null;
|
|
3626
|
+
name: string | null;
|
|
3627
|
+
locale: "en" | "fa" | "ar" | "de";
|
|
3628
|
+
instanceAdmin: boolean;
|
|
3629
|
+
service: string | null;
|
|
3630
|
+
memberships: {
|
|
3631
|
+
workspaceId: string & import("zod").$brand<"WorkspaceId">;
|
|
3632
|
+
role: "owner" | "admin" | "member" | "guest";
|
|
3633
|
+
roleIds: string[];
|
|
3634
|
+
groupIds: string[];
|
|
3635
|
+
status: "active" | "invited" | "suspended";
|
|
3636
|
+
}[];
|
|
3637
|
+
permissionVersion: number;
|
|
3638
|
+
};
|
|
3639
|
+
requestId: string;
|
|
3640
|
+
ip: string;
|
|
3641
|
+
headers: Record<string, string | string[] | undefined>;
|
|
3642
|
+
}>, never> & Record<never, never>, import("zod").ZodObject<{
|
|
3643
|
+
workspaceId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "WorkspaceId", "out">;
|
|
3644
|
+
pageId: import("zod").ZodUUID;
|
|
3645
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodArray<import("zod").ZodObject<{
|
|
3646
|
+
id: import("zod").ZodUUID;
|
|
3647
|
+
workspaceId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "WorkspaceId", "out">;
|
|
3648
|
+
spaceId: import("zod").ZodUUID;
|
|
3649
|
+
name: import("zod").ZodString;
|
|
3650
|
+
colour: import("zod").ZodEnum<{
|
|
3651
|
+
success: "success";
|
|
3652
|
+
grey: "grey";
|
|
3653
|
+
slate: "slate";
|
|
3654
|
+
accent: "accent";
|
|
3655
|
+
warning: "warning";
|
|
3656
|
+
danger: "danger";
|
|
3657
|
+
info: "info";
|
|
3658
|
+
purple: "purple";
|
|
3659
|
+
}>;
|
|
3660
|
+
createdAt: import("zod").ZodISODateTime;
|
|
3661
|
+
}, import("zod/v4/core").$strip>>, import("@orpc/server").MergedErrorMap<Record<never, never>, import("@orpc/server").MergedErrorMap<Record<never, never>, {
|
|
3662
|
+
BAD_REQUEST: {
|
|
3663
|
+
data: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>;
|
|
3664
|
+
};
|
|
3665
|
+
UNAUTHORIZED: {};
|
|
3666
|
+
FORBIDDEN: {
|
|
3667
|
+
data: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
3668
|
+
permission: import("zod").ZodOptional<import("zod").ZodString>;
|
|
3669
|
+
}, import("zod/v4/core").$strip>>;
|
|
3670
|
+
};
|
|
3671
|
+
NOT_FOUND: {};
|
|
3672
|
+
CONFLICT: {
|
|
3673
|
+
data: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
3674
|
+
reason: import("zod").ZodOptional<import("zod").ZodString>;
|
|
3675
|
+
}, import("zod/v4/core").$strip>>;
|
|
3676
|
+
};
|
|
3677
|
+
RATE_LIMITED: {};
|
|
3678
|
+
MODULE_DISABLED: {
|
|
3679
|
+
data: import("zod").ZodObject<{
|
|
3680
|
+
module: import("zod").ZodString;
|
|
3681
|
+
}, import("zod/v4/core").$strip>;
|
|
3682
|
+
};
|
|
3683
|
+
}>>, Record<never, never>>;
|
|
3684
|
+
create: import("@orpc/server").Procedure<import("@orpc/server").MergedInitialContext<RequestContext & Record<never, never>, RequestContext & Record<never, never> & Omit<RequestContext & Record<never, never>, keyof RequestContext> & Omit<RequestContext & Record<never, never>, "workspaceId" | "kernel" | "principal" | "requestId" | "ip" | "headers">, RequestContext>, Omit<import("@orpc/server").MergedCurrentContext<RequestContext, {
|
|
3685
|
+
workspaceId: string;
|
|
3686
|
+
kernel: Kernel;
|
|
3687
|
+
principal: {
|
|
3688
|
+
kind: "service" | "user" | "api_key" | "anonymous";
|
|
3689
|
+
userId: (string & import("zod").$brand<"UserId">) | null;
|
|
3690
|
+
email: string | null;
|
|
3691
|
+
name: string | null;
|
|
3692
|
+
locale: "en" | "fa" | "ar" | "de";
|
|
3693
|
+
instanceAdmin: boolean;
|
|
3694
|
+
service: string | null;
|
|
3695
|
+
memberships: {
|
|
3696
|
+
workspaceId: string & import("zod").$brand<"WorkspaceId">;
|
|
3697
|
+
role: "owner" | "admin" | "member" | "guest";
|
|
3698
|
+
roleIds: string[];
|
|
3699
|
+
groupIds: string[];
|
|
3700
|
+
status: "active" | "invited" | "suspended";
|
|
3701
|
+
}[];
|
|
3702
|
+
permissionVersion: number;
|
|
3703
|
+
};
|
|
3704
|
+
requestId: string;
|
|
3705
|
+
ip: string;
|
|
3706
|
+
headers: Record<string, string | string[] | undefined>;
|
|
3707
|
+
}>, never> & Record<never, never>, import("zod").ZodObject<{
|
|
3708
|
+
workspaceId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "WorkspaceId", "out">;
|
|
3709
|
+
spaceId: import("zod").ZodUUID;
|
|
3710
|
+
name: import("zod").ZodString;
|
|
3711
|
+
colour: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
3712
|
+
success: "success";
|
|
3713
|
+
grey: "grey";
|
|
3714
|
+
slate: "slate";
|
|
3715
|
+
accent: "accent";
|
|
3716
|
+
warning: "warning";
|
|
3717
|
+
danger: "danger";
|
|
3718
|
+
info: "info";
|
|
3719
|
+
purple: "purple";
|
|
3720
|
+
}>>;
|
|
3721
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
3722
|
+
id: import("zod").ZodUUID;
|
|
3723
|
+
workspaceId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "WorkspaceId", "out">;
|
|
3724
|
+
spaceId: import("zod").ZodUUID;
|
|
3725
|
+
name: import("zod").ZodString;
|
|
3726
|
+
colour: import("zod").ZodEnum<{
|
|
3727
|
+
success: "success";
|
|
3728
|
+
grey: "grey";
|
|
3729
|
+
slate: "slate";
|
|
3730
|
+
accent: "accent";
|
|
3731
|
+
warning: "warning";
|
|
3732
|
+
danger: "danger";
|
|
3733
|
+
info: "info";
|
|
3734
|
+
purple: "purple";
|
|
3735
|
+
}>;
|
|
3736
|
+
createdAt: import("zod").ZodISODateTime;
|
|
3737
|
+
}, import("zod/v4/core").$strip>, import("@orpc/server").MergedErrorMap<Record<never, never>, import("@orpc/server").MergedErrorMap<Record<never, never>, {
|
|
3738
|
+
BAD_REQUEST: {
|
|
3739
|
+
data: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>;
|
|
3740
|
+
};
|
|
3741
|
+
UNAUTHORIZED: {};
|
|
3742
|
+
FORBIDDEN: {
|
|
3743
|
+
data: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
3744
|
+
permission: import("zod").ZodOptional<import("zod").ZodString>;
|
|
3745
|
+
}, import("zod/v4/core").$strip>>;
|
|
3746
|
+
};
|
|
3747
|
+
NOT_FOUND: {};
|
|
3748
|
+
CONFLICT: {
|
|
3749
|
+
data: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
3750
|
+
reason: import("zod").ZodOptional<import("zod").ZodString>;
|
|
3751
|
+
}, import("zod/v4/core").$strip>>;
|
|
3752
|
+
};
|
|
3753
|
+
RATE_LIMITED: {};
|
|
3754
|
+
MODULE_DISABLED: {
|
|
3755
|
+
data: import("zod").ZodObject<{
|
|
3756
|
+
module: import("zod").ZodString;
|
|
3757
|
+
}, import("zod/v4/core").$strip>;
|
|
3758
|
+
};
|
|
3759
|
+
}>>, Record<never, never>>;
|
|
3760
|
+
update: import("@orpc/server").Procedure<import("@orpc/server").MergedInitialContext<RequestContext & Record<never, never>, RequestContext & Record<never, never> & Omit<RequestContext & Record<never, never>, keyof RequestContext> & Omit<RequestContext & Record<never, never>, "workspaceId" | "kernel" | "principal" | "requestId" | "ip" | "headers">, RequestContext>, Omit<import("@orpc/server").MergedCurrentContext<RequestContext, {
|
|
3761
|
+
workspaceId: string;
|
|
3762
|
+
kernel: Kernel;
|
|
3763
|
+
principal: {
|
|
3764
|
+
kind: "service" | "user" | "api_key" | "anonymous";
|
|
3765
|
+
userId: (string & import("zod").$brand<"UserId">) | null;
|
|
3766
|
+
email: string | null;
|
|
3767
|
+
name: string | null;
|
|
3768
|
+
locale: "en" | "fa" | "ar" | "de";
|
|
3769
|
+
instanceAdmin: boolean;
|
|
3770
|
+
service: string | null;
|
|
3771
|
+
memberships: {
|
|
3772
|
+
workspaceId: string & import("zod").$brand<"WorkspaceId">;
|
|
3773
|
+
role: "owner" | "admin" | "member" | "guest";
|
|
3774
|
+
roleIds: string[];
|
|
3775
|
+
groupIds: string[];
|
|
3776
|
+
status: "active" | "invited" | "suspended";
|
|
3777
|
+
}[];
|
|
3778
|
+
permissionVersion: number;
|
|
3779
|
+
};
|
|
3780
|
+
requestId: string;
|
|
3781
|
+
ip: string;
|
|
3782
|
+
headers: Record<string, string | string[] | undefined>;
|
|
3783
|
+
}>, never> & Record<never, never>, import("zod").ZodObject<{
|
|
3784
|
+
workspaceId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "WorkspaceId", "out">;
|
|
3785
|
+
labelId: import("zod").ZodUUID;
|
|
3786
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
3787
|
+
colour: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
3788
|
+
success: "success";
|
|
3789
|
+
grey: "grey";
|
|
3790
|
+
slate: "slate";
|
|
3791
|
+
accent: "accent";
|
|
3792
|
+
warning: "warning";
|
|
3793
|
+
danger: "danger";
|
|
3794
|
+
info: "info";
|
|
3795
|
+
purple: "purple";
|
|
3796
|
+
}>>;
|
|
3797
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
3798
|
+
id: import("zod").ZodUUID;
|
|
3799
|
+
workspaceId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "WorkspaceId", "out">;
|
|
3800
|
+
spaceId: import("zod").ZodUUID;
|
|
3801
|
+
name: import("zod").ZodString;
|
|
3802
|
+
colour: import("zod").ZodEnum<{
|
|
3803
|
+
success: "success";
|
|
3804
|
+
grey: "grey";
|
|
3805
|
+
slate: "slate";
|
|
3806
|
+
accent: "accent";
|
|
3807
|
+
warning: "warning";
|
|
3808
|
+
danger: "danger";
|
|
3809
|
+
info: "info";
|
|
3810
|
+
purple: "purple";
|
|
3811
|
+
}>;
|
|
3812
|
+
createdAt: import("zod").ZodISODateTime;
|
|
3813
|
+
}, import("zod/v4/core").$strip>, import("@orpc/server").MergedErrorMap<Record<never, never>, import("@orpc/server").MergedErrorMap<Record<never, never>, {
|
|
3814
|
+
BAD_REQUEST: {
|
|
3815
|
+
data: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>;
|
|
3816
|
+
};
|
|
3817
|
+
UNAUTHORIZED: {};
|
|
3818
|
+
FORBIDDEN: {
|
|
3819
|
+
data: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
3820
|
+
permission: import("zod").ZodOptional<import("zod").ZodString>;
|
|
3821
|
+
}, import("zod/v4/core").$strip>>;
|
|
3822
|
+
};
|
|
3823
|
+
NOT_FOUND: {};
|
|
3824
|
+
CONFLICT: {
|
|
3825
|
+
data: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
3826
|
+
reason: import("zod").ZodOptional<import("zod").ZodString>;
|
|
3827
|
+
}, import("zod/v4/core").$strip>>;
|
|
3828
|
+
};
|
|
3829
|
+
RATE_LIMITED: {};
|
|
3830
|
+
MODULE_DISABLED: {
|
|
3831
|
+
data: import("zod").ZodObject<{
|
|
3832
|
+
module: import("zod").ZodString;
|
|
3833
|
+
}, import("zod/v4/core").$strip>;
|
|
3834
|
+
};
|
|
3835
|
+
}>>, Record<never, never>>;
|
|
3836
|
+
remove: import("@orpc/server").Procedure<import("@orpc/server").MergedInitialContext<RequestContext & Record<never, never>, RequestContext & Record<never, never> & Omit<RequestContext & Record<never, never>, keyof RequestContext> & Omit<RequestContext & Record<never, never>, "workspaceId" | "kernel" | "principal" | "requestId" | "ip" | "headers">, RequestContext>, Omit<import("@orpc/server").MergedCurrentContext<RequestContext, {
|
|
3837
|
+
workspaceId: string;
|
|
3838
|
+
kernel: Kernel;
|
|
3839
|
+
principal: {
|
|
3840
|
+
kind: "service" | "user" | "api_key" | "anonymous";
|
|
3841
|
+
userId: (string & import("zod").$brand<"UserId">) | null;
|
|
3842
|
+
email: string | null;
|
|
3843
|
+
name: string | null;
|
|
3844
|
+
locale: "en" | "fa" | "ar" | "de";
|
|
3845
|
+
instanceAdmin: boolean;
|
|
3846
|
+
service: string | null;
|
|
3847
|
+
memberships: {
|
|
3848
|
+
workspaceId: string & import("zod").$brand<"WorkspaceId">;
|
|
3849
|
+
role: "owner" | "admin" | "member" | "guest";
|
|
3850
|
+
roleIds: string[];
|
|
3851
|
+
groupIds: string[];
|
|
3852
|
+
status: "active" | "invited" | "suspended";
|
|
3853
|
+
}[];
|
|
3854
|
+
permissionVersion: number;
|
|
3855
|
+
};
|
|
3856
|
+
requestId: string;
|
|
3857
|
+
ip: string;
|
|
3858
|
+
headers: Record<string, string | string[] | undefined>;
|
|
3859
|
+
}>, never> & Record<never, never>, import("zod").ZodObject<{
|
|
3860
|
+
workspaceId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "WorkspaceId", "out">;
|
|
3861
|
+
labelId: import("zod").ZodUUID;
|
|
3862
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
3863
|
+
ok: import("zod").ZodLiteral<true>;
|
|
3864
|
+
}, import("zod/v4/core").$strip>, import("@orpc/server").MergedErrorMap<Record<never, never>, import("@orpc/server").MergedErrorMap<Record<never, never>, {
|
|
3865
|
+
BAD_REQUEST: {
|
|
3866
|
+
data: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>;
|
|
3867
|
+
};
|
|
3868
|
+
UNAUTHORIZED: {};
|
|
3869
|
+
FORBIDDEN: {
|
|
3870
|
+
data: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
3871
|
+
permission: import("zod").ZodOptional<import("zod").ZodString>;
|
|
3872
|
+
}, import("zod/v4/core").$strip>>;
|
|
3873
|
+
};
|
|
3874
|
+
NOT_FOUND: {};
|
|
3875
|
+
CONFLICT: {
|
|
3876
|
+
data: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
3877
|
+
reason: import("zod").ZodOptional<import("zod").ZodString>;
|
|
3878
|
+
}, import("zod/v4/core").$strip>>;
|
|
3879
|
+
};
|
|
3880
|
+
RATE_LIMITED: {};
|
|
3881
|
+
MODULE_DISABLED: {
|
|
3882
|
+
data: import("zod").ZodObject<{
|
|
3883
|
+
module: import("zod").ZodString;
|
|
3884
|
+
}, import("zod/v4/core").$strip>;
|
|
3885
|
+
};
|
|
3886
|
+
}>>, Record<never, never>>;
|
|
3887
|
+
};
|
|
3888
|
+
favorites: {
|
|
3889
|
+
list: import("@orpc/server").Procedure<import("@orpc/server").MergedInitialContext<RequestContext & Record<never, never>, RequestContext & Record<never, never> & Omit<RequestContext & Record<never, never>, keyof RequestContext> & Omit<RequestContext & Record<never, never>, "workspaceId" | "kernel" | "principal" | "requestId" | "ip" | "headers">, RequestContext>, Omit<import("@orpc/server").MergedCurrentContext<RequestContext, {
|
|
3890
|
+
workspaceId: string;
|
|
3891
|
+
kernel: Kernel;
|
|
3892
|
+
principal: {
|
|
3893
|
+
kind: "service" | "user" | "api_key" | "anonymous";
|
|
3894
|
+
userId: (string & import("zod").$brand<"UserId">) | null;
|
|
3895
|
+
email: string | null;
|
|
3896
|
+
name: string | null;
|
|
3897
|
+
locale: "en" | "fa" | "ar" | "de";
|
|
3898
|
+
instanceAdmin: boolean;
|
|
3899
|
+
service: string | null;
|
|
3900
|
+
memberships: {
|
|
3901
|
+
workspaceId: string & import("zod").$brand<"WorkspaceId">;
|
|
3902
|
+
role: "owner" | "admin" | "member" | "guest";
|
|
3903
|
+
roleIds: string[];
|
|
3904
|
+
groupIds: string[];
|
|
3905
|
+
status: "active" | "invited" | "suspended";
|
|
3906
|
+
}[];
|
|
3907
|
+
permissionVersion: number;
|
|
3908
|
+
};
|
|
3909
|
+
requestId: string;
|
|
3910
|
+
ip: string;
|
|
3911
|
+
headers: Record<string, string | string[] | undefined>;
|
|
3912
|
+
}>, never> & Record<never, never>, import("zod").ZodObject<{
|
|
3913
|
+
workspaceId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "WorkspaceId", "out">;
|
|
3914
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodArray<import("zod").ZodObject<{
|
|
3915
|
+
workspaceId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "WorkspaceId", "out">;
|
|
3916
|
+
userId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UserId", "out">;
|
|
3917
|
+
pageId: import("zod").ZodUUID;
|
|
3918
|
+
position: import("zod").ZodString;
|
|
3919
|
+
createdAt: import("zod").ZodISODateTime;
|
|
3920
|
+
spaceId: import("zod").ZodUUID;
|
|
3921
|
+
title: import("zod").ZodString;
|
|
3922
|
+
icon: import("zod").ZodNullable<import("zod").ZodString>;
|
|
3923
|
+
kind: import("zod").ZodEnum<{
|
|
3924
|
+
page: "page";
|
|
3925
|
+
live: "live";
|
|
3926
|
+
database: "database";
|
|
3927
|
+
}>;
|
|
3928
|
+
}, import("zod/v4/core").$strip>>, import("@orpc/server").MergedErrorMap<Record<never, never>, import("@orpc/server").MergedErrorMap<Record<never, never>, {
|
|
3929
|
+
BAD_REQUEST: {
|
|
3930
|
+
data: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>;
|
|
3931
|
+
};
|
|
3932
|
+
UNAUTHORIZED: {};
|
|
3933
|
+
FORBIDDEN: {
|
|
3934
|
+
data: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
3935
|
+
permission: import("zod").ZodOptional<import("zod").ZodString>;
|
|
3936
|
+
}, import("zod/v4/core").$strip>>;
|
|
3937
|
+
};
|
|
3938
|
+
NOT_FOUND: {};
|
|
3939
|
+
CONFLICT: {
|
|
3940
|
+
data: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
3941
|
+
reason: import("zod").ZodOptional<import("zod").ZodString>;
|
|
3942
|
+
}, import("zod/v4/core").$strip>>;
|
|
3943
|
+
};
|
|
3944
|
+
RATE_LIMITED: {};
|
|
3945
|
+
MODULE_DISABLED: {
|
|
3946
|
+
data: import("zod").ZodObject<{
|
|
3947
|
+
module: import("zod").ZodString;
|
|
3948
|
+
}, import("zod/v4/core").$strip>;
|
|
3949
|
+
};
|
|
3950
|
+
}>>, Record<never, never>>;
|
|
3951
|
+
add: import("@orpc/server").Procedure<import("@orpc/server").MergedInitialContext<RequestContext & Record<never, never>, RequestContext & Record<never, never> & Omit<RequestContext & Record<never, never>, keyof RequestContext> & Omit<RequestContext & Record<never, never>, "workspaceId" | "kernel" | "principal" | "requestId" | "ip" | "headers">, RequestContext>, Omit<import("@orpc/server").MergedCurrentContext<RequestContext, {
|
|
3952
|
+
workspaceId: string;
|
|
3953
|
+
kernel: Kernel;
|
|
3954
|
+
principal: {
|
|
3955
|
+
kind: "service" | "user" | "api_key" | "anonymous";
|
|
3956
|
+
userId: (string & import("zod").$brand<"UserId">) | null;
|
|
3957
|
+
email: string | null;
|
|
3958
|
+
name: string | null;
|
|
3959
|
+
locale: "en" | "fa" | "ar" | "de";
|
|
3960
|
+
instanceAdmin: boolean;
|
|
3961
|
+
service: string | null;
|
|
3962
|
+
memberships: {
|
|
3963
|
+
workspaceId: string & import("zod").$brand<"WorkspaceId">;
|
|
3964
|
+
role: "owner" | "admin" | "member" | "guest";
|
|
3965
|
+
roleIds: string[];
|
|
3966
|
+
groupIds: string[];
|
|
3967
|
+
status: "active" | "invited" | "suspended";
|
|
3968
|
+
}[];
|
|
3969
|
+
permissionVersion: number;
|
|
3970
|
+
};
|
|
3971
|
+
requestId: string;
|
|
3972
|
+
ip: string;
|
|
3973
|
+
headers: Record<string, string | string[] | undefined>;
|
|
3974
|
+
}>, never> & Record<never, never>, import("zod").ZodObject<{
|
|
3975
|
+
workspaceId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "WorkspaceId", "out">;
|
|
3976
|
+
pageId: import("zod").ZodUUID;
|
|
3977
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodArray<import("zod").ZodObject<{
|
|
3978
|
+
workspaceId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "WorkspaceId", "out">;
|
|
3979
|
+
userId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UserId", "out">;
|
|
3980
|
+
pageId: import("zod").ZodUUID;
|
|
3981
|
+
position: import("zod").ZodString;
|
|
3982
|
+
createdAt: import("zod").ZodISODateTime;
|
|
3983
|
+
spaceId: import("zod").ZodUUID;
|
|
3984
|
+
title: import("zod").ZodString;
|
|
3985
|
+
icon: import("zod").ZodNullable<import("zod").ZodString>;
|
|
3986
|
+
kind: import("zod").ZodEnum<{
|
|
3987
|
+
page: "page";
|
|
3988
|
+
live: "live";
|
|
3989
|
+
database: "database";
|
|
3990
|
+
}>;
|
|
3991
|
+
}, import("zod/v4/core").$strip>>, import("@orpc/server").MergedErrorMap<Record<never, never>, import("@orpc/server").MergedErrorMap<Record<never, never>, {
|
|
3992
|
+
BAD_REQUEST: {
|
|
3993
|
+
data: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>;
|
|
3994
|
+
};
|
|
3995
|
+
UNAUTHORIZED: {};
|
|
3996
|
+
FORBIDDEN: {
|
|
3997
|
+
data: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
3998
|
+
permission: import("zod").ZodOptional<import("zod").ZodString>;
|
|
3999
|
+
}, import("zod/v4/core").$strip>>;
|
|
4000
|
+
};
|
|
4001
|
+
NOT_FOUND: {};
|
|
4002
|
+
CONFLICT: {
|
|
4003
|
+
data: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
4004
|
+
reason: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4005
|
+
}, import("zod/v4/core").$strip>>;
|
|
4006
|
+
};
|
|
4007
|
+
RATE_LIMITED: {};
|
|
4008
|
+
MODULE_DISABLED: {
|
|
4009
|
+
data: import("zod").ZodObject<{
|
|
4010
|
+
module: import("zod").ZodString;
|
|
4011
|
+
}, import("zod/v4/core").$strip>;
|
|
4012
|
+
};
|
|
4013
|
+
}>>, Record<never, never>>;
|
|
4014
|
+
remove: import("@orpc/server").Procedure<import("@orpc/server").MergedInitialContext<RequestContext & Record<never, never>, RequestContext & Record<never, never> & Omit<RequestContext & Record<never, never>, keyof RequestContext> & Omit<RequestContext & Record<never, never>, "workspaceId" | "kernel" | "principal" | "requestId" | "ip" | "headers">, RequestContext>, Omit<import("@orpc/server").MergedCurrentContext<RequestContext, {
|
|
4015
|
+
workspaceId: string;
|
|
4016
|
+
kernel: Kernel;
|
|
4017
|
+
principal: {
|
|
4018
|
+
kind: "service" | "user" | "api_key" | "anonymous";
|
|
4019
|
+
userId: (string & import("zod").$brand<"UserId">) | null;
|
|
4020
|
+
email: string | null;
|
|
4021
|
+
name: string | null;
|
|
4022
|
+
locale: "en" | "fa" | "ar" | "de";
|
|
4023
|
+
instanceAdmin: boolean;
|
|
4024
|
+
service: string | null;
|
|
4025
|
+
memberships: {
|
|
4026
|
+
workspaceId: string & import("zod").$brand<"WorkspaceId">;
|
|
4027
|
+
role: "owner" | "admin" | "member" | "guest";
|
|
4028
|
+
roleIds: string[];
|
|
4029
|
+
groupIds: string[];
|
|
4030
|
+
status: "active" | "invited" | "suspended";
|
|
4031
|
+
}[];
|
|
4032
|
+
permissionVersion: number;
|
|
4033
|
+
};
|
|
4034
|
+
requestId: string;
|
|
4035
|
+
ip: string;
|
|
4036
|
+
headers: Record<string, string | string[] | undefined>;
|
|
4037
|
+
}>, never> & Record<never, never>, import("zod").ZodObject<{
|
|
4038
|
+
workspaceId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "WorkspaceId", "out">;
|
|
4039
|
+
pageId: import("zod").ZodUUID;
|
|
4040
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodArray<import("zod").ZodObject<{
|
|
4041
|
+
workspaceId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "WorkspaceId", "out">;
|
|
4042
|
+
userId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UserId", "out">;
|
|
4043
|
+
pageId: import("zod").ZodUUID;
|
|
4044
|
+
position: import("zod").ZodString;
|
|
4045
|
+
createdAt: import("zod").ZodISODateTime;
|
|
4046
|
+
spaceId: import("zod").ZodUUID;
|
|
4047
|
+
title: import("zod").ZodString;
|
|
4048
|
+
icon: import("zod").ZodNullable<import("zod").ZodString>;
|
|
4049
|
+
kind: import("zod").ZodEnum<{
|
|
4050
|
+
page: "page";
|
|
4051
|
+
live: "live";
|
|
4052
|
+
database: "database";
|
|
4053
|
+
}>;
|
|
4054
|
+
}, import("zod/v4/core").$strip>>, import("@orpc/server").MergedErrorMap<Record<never, never>, import("@orpc/server").MergedErrorMap<Record<never, never>, {
|
|
4055
|
+
BAD_REQUEST: {
|
|
4056
|
+
data: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>;
|
|
4057
|
+
};
|
|
4058
|
+
UNAUTHORIZED: {};
|
|
4059
|
+
FORBIDDEN: {
|
|
4060
|
+
data: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
4061
|
+
permission: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4062
|
+
}, import("zod/v4/core").$strip>>;
|
|
4063
|
+
};
|
|
4064
|
+
NOT_FOUND: {};
|
|
4065
|
+
CONFLICT: {
|
|
4066
|
+
data: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
4067
|
+
reason: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4068
|
+
}, import("zod/v4/core").$strip>>;
|
|
4069
|
+
};
|
|
4070
|
+
RATE_LIMITED: {};
|
|
4071
|
+
MODULE_DISABLED: {
|
|
4072
|
+
data: import("zod").ZodObject<{
|
|
4073
|
+
module: import("zod").ZodString;
|
|
4074
|
+
}, import("zod/v4/core").$strip>;
|
|
4075
|
+
};
|
|
4076
|
+
}>>, Record<never, never>>;
|
|
4077
|
+
reorder: import("@orpc/server").Procedure<import("@orpc/server").MergedInitialContext<RequestContext & Record<never, never>, RequestContext & Record<never, never> & Omit<RequestContext & Record<never, never>, keyof RequestContext> & Omit<RequestContext & Record<never, never>, "workspaceId" | "kernel" | "principal" | "requestId" | "ip" | "headers">, RequestContext>, Omit<import("@orpc/server").MergedCurrentContext<RequestContext, {
|
|
4078
|
+
workspaceId: string;
|
|
4079
|
+
kernel: Kernel;
|
|
4080
|
+
principal: {
|
|
4081
|
+
kind: "service" | "user" | "api_key" | "anonymous";
|
|
4082
|
+
userId: (string & import("zod").$brand<"UserId">) | null;
|
|
4083
|
+
email: string | null;
|
|
4084
|
+
name: string | null;
|
|
4085
|
+
locale: "en" | "fa" | "ar" | "de";
|
|
4086
|
+
instanceAdmin: boolean;
|
|
4087
|
+
service: string | null;
|
|
4088
|
+
memberships: {
|
|
4089
|
+
workspaceId: string & import("zod").$brand<"WorkspaceId">;
|
|
4090
|
+
role: "owner" | "admin" | "member" | "guest";
|
|
4091
|
+
roleIds: string[];
|
|
4092
|
+
groupIds: string[];
|
|
4093
|
+
status: "active" | "invited" | "suspended";
|
|
4094
|
+
}[];
|
|
4095
|
+
permissionVersion: number;
|
|
4096
|
+
};
|
|
4097
|
+
requestId: string;
|
|
4098
|
+
ip: string;
|
|
4099
|
+
headers: Record<string, string | string[] | undefined>;
|
|
4100
|
+
}>, never> & Record<never, never>, import("zod").ZodObject<{
|
|
4101
|
+
workspaceId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "WorkspaceId", "out">;
|
|
4102
|
+
pageId: import("zod").ZodUUID;
|
|
4103
|
+
afterId: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodUUID>>;
|
|
4104
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodArray<import("zod").ZodObject<{
|
|
4105
|
+
workspaceId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "WorkspaceId", "out">;
|
|
4106
|
+
userId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UserId", "out">;
|
|
4107
|
+
pageId: import("zod").ZodUUID;
|
|
4108
|
+
position: import("zod").ZodString;
|
|
4109
|
+
createdAt: import("zod").ZodISODateTime;
|
|
4110
|
+
spaceId: import("zod").ZodUUID;
|
|
4111
|
+
title: import("zod").ZodString;
|
|
4112
|
+
icon: import("zod").ZodNullable<import("zod").ZodString>;
|
|
4113
|
+
kind: import("zod").ZodEnum<{
|
|
4114
|
+
page: "page";
|
|
4115
|
+
live: "live";
|
|
4116
|
+
database: "database";
|
|
4117
|
+
}>;
|
|
4118
|
+
}, import("zod/v4/core").$strip>>, import("@orpc/server").MergedErrorMap<Record<never, never>, import("@orpc/server").MergedErrorMap<Record<never, never>, {
|
|
4119
|
+
BAD_REQUEST: {
|
|
4120
|
+
data: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>;
|
|
4121
|
+
};
|
|
4122
|
+
UNAUTHORIZED: {};
|
|
4123
|
+
FORBIDDEN: {
|
|
4124
|
+
data: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
4125
|
+
permission: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4126
|
+
}, import("zod/v4/core").$strip>>;
|
|
4127
|
+
};
|
|
4128
|
+
NOT_FOUND: {};
|
|
4129
|
+
CONFLICT: {
|
|
4130
|
+
data: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
4131
|
+
reason: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4132
|
+
}, import("zod/v4/core").$strip>>;
|
|
4133
|
+
};
|
|
4134
|
+
RATE_LIMITED: {};
|
|
4135
|
+
MODULE_DISABLED: {
|
|
4136
|
+
data: import("zod").ZodObject<{
|
|
4137
|
+
module: import("zod").ZodString;
|
|
4138
|
+
}, import("zod/v4/core").$strip>;
|
|
4139
|
+
};
|
|
4140
|
+
}>>, Record<never, never>>;
|
|
4141
|
+
};
|
|
4142
|
+
watchers: {
|
|
4143
|
+
get: import("@orpc/server").Procedure<import("@orpc/server").MergedInitialContext<RequestContext & Record<never, never>, RequestContext & Record<never, never> & Omit<RequestContext & Record<never, never>, keyof RequestContext> & Omit<RequestContext & Record<never, never>, "workspaceId" | "kernel" | "principal" | "requestId" | "ip" | "headers">, RequestContext>, Omit<import("@orpc/server").MergedCurrentContext<RequestContext, {
|
|
4144
|
+
workspaceId: string;
|
|
4145
|
+
kernel: Kernel;
|
|
4146
|
+
principal: {
|
|
4147
|
+
kind: "service" | "user" | "api_key" | "anonymous";
|
|
4148
|
+
userId: (string & import("zod").$brand<"UserId">) | null;
|
|
4149
|
+
email: string | null;
|
|
4150
|
+
name: string | null;
|
|
4151
|
+
locale: "en" | "fa" | "ar" | "de";
|
|
4152
|
+
instanceAdmin: boolean;
|
|
4153
|
+
service: string | null;
|
|
4154
|
+
memberships: {
|
|
4155
|
+
workspaceId: string & import("zod").$brand<"WorkspaceId">;
|
|
4156
|
+
role: "owner" | "admin" | "member" | "guest";
|
|
4157
|
+
roleIds: string[];
|
|
4158
|
+
groupIds: string[];
|
|
4159
|
+
status: "active" | "invited" | "suspended";
|
|
4160
|
+
}[];
|
|
4161
|
+
permissionVersion: number;
|
|
4162
|
+
};
|
|
4163
|
+
requestId: string;
|
|
4164
|
+
ip: string;
|
|
4165
|
+
headers: Record<string, string | string[] | undefined>;
|
|
4166
|
+
}>, never> & Record<never, never>, import("zod").ZodObject<{
|
|
4167
|
+
workspaceId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "WorkspaceId", "out">;
|
|
4168
|
+
pageId: import("zod").ZodUUID;
|
|
4169
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
4170
|
+
watching: import("zod").ZodBoolean;
|
|
4171
|
+
watchers: import("zod").ZodArray<import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UserId", "out">>;
|
|
4172
|
+
}, import("zod/v4/core").$strip>, import("@orpc/server").MergedErrorMap<Record<never, never>, import("@orpc/server").MergedErrorMap<Record<never, never>, {
|
|
4173
|
+
BAD_REQUEST: {
|
|
4174
|
+
data: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>;
|
|
4175
|
+
};
|
|
4176
|
+
UNAUTHORIZED: {};
|
|
4177
|
+
FORBIDDEN: {
|
|
4178
|
+
data: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
4179
|
+
permission: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4180
|
+
}, import("zod/v4/core").$strip>>;
|
|
4181
|
+
};
|
|
4182
|
+
NOT_FOUND: {};
|
|
4183
|
+
CONFLICT: {
|
|
4184
|
+
data: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
4185
|
+
reason: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4186
|
+
}, import("zod/v4/core").$strip>>;
|
|
4187
|
+
};
|
|
4188
|
+
RATE_LIMITED: {};
|
|
4189
|
+
MODULE_DISABLED: {
|
|
4190
|
+
data: import("zod").ZodObject<{
|
|
4191
|
+
module: import("zod").ZodString;
|
|
4192
|
+
}, import("zod/v4/core").$strip>;
|
|
4193
|
+
};
|
|
4194
|
+
}>>, Record<never, never>>;
|
|
4195
|
+
set: import("@orpc/server").Procedure<import("@orpc/server").MergedInitialContext<RequestContext & Record<never, never>, RequestContext & Record<never, never> & Omit<RequestContext & Record<never, never>, keyof RequestContext> & Omit<RequestContext & Record<never, never>, "workspaceId" | "kernel" | "principal" | "requestId" | "ip" | "headers">, RequestContext>, Omit<import("@orpc/server").MergedCurrentContext<RequestContext, {
|
|
4196
|
+
workspaceId: string;
|
|
4197
|
+
kernel: Kernel;
|
|
4198
|
+
principal: {
|
|
4199
|
+
kind: "service" | "user" | "api_key" | "anonymous";
|
|
4200
|
+
userId: (string & import("zod").$brand<"UserId">) | null;
|
|
4201
|
+
email: string | null;
|
|
4202
|
+
name: string | null;
|
|
4203
|
+
locale: "en" | "fa" | "ar" | "de";
|
|
4204
|
+
instanceAdmin: boolean;
|
|
4205
|
+
service: string | null;
|
|
4206
|
+
memberships: {
|
|
4207
|
+
workspaceId: string & import("zod").$brand<"WorkspaceId">;
|
|
4208
|
+
role: "owner" | "admin" | "member" | "guest";
|
|
4209
|
+
roleIds: string[];
|
|
4210
|
+
groupIds: string[];
|
|
4211
|
+
status: "active" | "invited" | "suspended";
|
|
4212
|
+
}[];
|
|
4213
|
+
permissionVersion: number;
|
|
4214
|
+
};
|
|
4215
|
+
requestId: string;
|
|
4216
|
+
ip: string;
|
|
4217
|
+
headers: Record<string, string | string[] | undefined>;
|
|
4218
|
+
}>, never> & Record<never, never>, import("zod").ZodObject<{
|
|
4219
|
+
workspaceId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "WorkspaceId", "out">;
|
|
4220
|
+
pageId: import("zod").ZodUUID;
|
|
4221
|
+
watching: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
4222
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
4223
|
+
watching: import("zod").ZodBoolean;
|
|
4224
|
+
watchers: import("zod").ZodArray<import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UserId", "out">>;
|
|
4225
|
+
}, import("zod/v4/core").$strip>, import("@orpc/server").MergedErrorMap<Record<never, never>, import("@orpc/server").MergedErrorMap<Record<never, never>, {
|
|
4226
|
+
BAD_REQUEST: {
|
|
4227
|
+
data: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>;
|
|
4228
|
+
};
|
|
4229
|
+
UNAUTHORIZED: {};
|
|
4230
|
+
FORBIDDEN: {
|
|
4231
|
+
data: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
4232
|
+
permission: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4233
|
+
}, import("zod/v4/core").$strip>>;
|
|
4234
|
+
};
|
|
4235
|
+
NOT_FOUND: {};
|
|
4236
|
+
CONFLICT: {
|
|
4237
|
+
data: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
4238
|
+
reason: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4239
|
+
}, import("zod/v4/core").$strip>>;
|
|
4240
|
+
};
|
|
4241
|
+
RATE_LIMITED: {};
|
|
4242
|
+
MODULE_DISABLED: {
|
|
4243
|
+
data: import("zod").ZodObject<{
|
|
4244
|
+
module: import("zod").ZodString;
|
|
4245
|
+
}, import("zod/v4/core").$strip>;
|
|
4246
|
+
};
|
|
4247
|
+
}>>, Record<never, never>>;
|
|
4248
|
+
};
|
|
4249
|
+
recents: {
|
|
4250
|
+
list: import("@orpc/server").Procedure<import("@orpc/server").MergedInitialContext<RequestContext & Record<never, never>, RequestContext & Record<never, never> & Omit<RequestContext & Record<never, never>, keyof RequestContext> & Omit<RequestContext & Record<never, never>, "workspaceId" | "kernel" | "principal" | "requestId" | "ip" | "headers">, RequestContext>, Omit<import("@orpc/server").MergedCurrentContext<RequestContext, {
|
|
4251
|
+
workspaceId: string;
|
|
4252
|
+
kernel: Kernel;
|
|
4253
|
+
principal: {
|
|
4254
|
+
kind: "service" | "user" | "api_key" | "anonymous";
|
|
4255
|
+
userId: (string & import("zod").$brand<"UserId">) | null;
|
|
4256
|
+
email: string | null;
|
|
4257
|
+
name: string | null;
|
|
4258
|
+
locale: "en" | "fa" | "ar" | "de";
|
|
4259
|
+
instanceAdmin: boolean;
|
|
4260
|
+
service: string | null;
|
|
4261
|
+
memberships: {
|
|
4262
|
+
workspaceId: string & import("zod").$brand<"WorkspaceId">;
|
|
4263
|
+
role: "owner" | "admin" | "member" | "guest";
|
|
4264
|
+
roleIds: string[];
|
|
4265
|
+
groupIds: string[];
|
|
4266
|
+
status: "active" | "invited" | "suspended";
|
|
4267
|
+
}[];
|
|
4268
|
+
permissionVersion: number;
|
|
4269
|
+
};
|
|
4270
|
+
requestId: string;
|
|
4271
|
+
ip: string;
|
|
4272
|
+
headers: Record<string, string | string[] | undefined>;
|
|
4273
|
+
}>, never> & Record<never, never>, import("zod").ZodObject<{
|
|
4274
|
+
workspaceId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "WorkspaceId", "out">;
|
|
4275
|
+
limit: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
4276
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodArray<import("zod").ZodObject<{
|
|
4277
|
+
workspaceId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "WorkspaceId", "out">;
|
|
4278
|
+
userId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UserId", "out">;
|
|
4279
|
+
pageId: import("zod").ZodUUID;
|
|
4280
|
+
viewedAt: import("zod").ZodISODateTime;
|
|
4281
|
+
spaceId: import("zod").ZodUUID;
|
|
4282
|
+
title: import("zod").ZodString;
|
|
4283
|
+
icon: import("zod").ZodNullable<import("zod").ZodString>;
|
|
4284
|
+
kind: import("zod").ZodEnum<{
|
|
4285
|
+
page: "page";
|
|
4286
|
+
live: "live";
|
|
4287
|
+
database: "database";
|
|
4288
|
+
}>;
|
|
4289
|
+
}, import("zod/v4/core").$strip>>, import("@orpc/server").MergedErrorMap<Record<never, never>, import("@orpc/server").MergedErrorMap<Record<never, never>, {
|
|
4290
|
+
BAD_REQUEST: {
|
|
4291
|
+
data: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>;
|
|
4292
|
+
};
|
|
4293
|
+
UNAUTHORIZED: {};
|
|
4294
|
+
FORBIDDEN: {
|
|
4295
|
+
data: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
4296
|
+
permission: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4297
|
+
}, import("zod/v4/core").$strip>>;
|
|
4298
|
+
};
|
|
4299
|
+
NOT_FOUND: {};
|
|
4300
|
+
CONFLICT: {
|
|
4301
|
+
data: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
4302
|
+
reason: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4303
|
+
}, import("zod/v4/core").$strip>>;
|
|
4304
|
+
};
|
|
4305
|
+
RATE_LIMITED: {};
|
|
4306
|
+
MODULE_DISABLED: {
|
|
4307
|
+
data: import("zod").ZodObject<{
|
|
4308
|
+
module: import("zod").ZodString;
|
|
4309
|
+
}, import("zod/v4/core").$strip>;
|
|
4310
|
+
};
|
|
4311
|
+
}>>, Record<never, never>>;
|
|
4312
|
+
record: import("@orpc/server").Procedure<import("@orpc/server").MergedInitialContext<RequestContext & Record<never, never>, RequestContext & Record<never, never> & Omit<RequestContext & Record<never, never>, keyof RequestContext> & Omit<RequestContext & Record<never, never>, "workspaceId" | "kernel" | "principal" | "requestId" | "ip" | "headers">, RequestContext>, Omit<import("@orpc/server").MergedCurrentContext<RequestContext, {
|
|
4313
|
+
workspaceId: string;
|
|
4314
|
+
kernel: Kernel;
|
|
4315
|
+
principal: {
|
|
4316
|
+
kind: "service" | "user" | "api_key" | "anonymous";
|
|
4317
|
+
userId: (string & import("zod").$brand<"UserId">) | null;
|
|
4318
|
+
email: string | null;
|
|
4319
|
+
name: string | null;
|
|
4320
|
+
locale: "en" | "fa" | "ar" | "de";
|
|
4321
|
+
instanceAdmin: boolean;
|
|
4322
|
+
service: string | null;
|
|
4323
|
+
memberships: {
|
|
4324
|
+
workspaceId: string & import("zod").$brand<"WorkspaceId">;
|
|
4325
|
+
role: "owner" | "admin" | "member" | "guest";
|
|
4326
|
+
roleIds: string[];
|
|
4327
|
+
groupIds: string[];
|
|
4328
|
+
status: "active" | "invited" | "suspended";
|
|
4329
|
+
}[];
|
|
4330
|
+
permissionVersion: number;
|
|
4331
|
+
};
|
|
4332
|
+
requestId: string;
|
|
4333
|
+
ip: string;
|
|
4334
|
+
headers: Record<string, string | string[] | undefined>;
|
|
4335
|
+
}>, never> & Record<never, never>, import("zod").ZodObject<{
|
|
4336
|
+
workspaceId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "WorkspaceId", "out">;
|
|
4337
|
+
pageId: import("zod").ZodUUID;
|
|
4338
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
4339
|
+
ok: import("zod").ZodLiteral<true>;
|
|
4340
|
+
}, import("zod/v4/core").$strip>, import("@orpc/server").MergedErrorMap<Record<never, never>, import("@orpc/server").MergedErrorMap<Record<never, never>, {
|
|
4341
|
+
BAD_REQUEST: {
|
|
4342
|
+
data: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>;
|
|
4343
|
+
};
|
|
4344
|
+
UNAUTHORIZED: {};
|
|
4345
|
+
FORBIDDEN: {
|
|
4346
|
+
data: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
4347
|
+
permission: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4348
|
+
}, import("zod/v4/core").$strip>>;
|
|
4349
|
+
};
|
|
4350
|
+
NOT_FOUND: {};
|
|
4351
|
+
CONFLICT: {
|
|
4352
|
+
data: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
4353
|
+
reason: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4354
|
+
}, import("zod/v4/core").$strip>>;
|
|
4355
|
+
};
|
|
4356
|
+
RATE_LIMITED: {};
|
|
4357
|
+
MODULE_DISABLED: {
|
|
4358
|
+
data: import("zod").ZodObject<{
|
|
4359
|
+
module: import("zod").ZodString;
|
|
4360
|
+
}, import("zod/v4/core").$strip>;
|
|
4361
|
+
};
|
|
4362
|
+
}>>, Record<never, never>>;
|
|
4363
|
+
};
|
|
3487
4364
|
publishing: {
|
|
3488
4365
|
publish: import("@orpc/server").Procedure<import("@orpc/server").MergedInitialContext<RequestContext & Record<never, never>, RequestContext & Record<never, never> & Omit<RequestContext & Record<never, never>, keyof RequestContext> & Omit<RequestContext & Record<never, never>, "workspaceId" | "kernel" | "principal" | "requestId" | "ip" | "headers">, RequestContext>, Omit<import("@orpc/server").MergedCurrentContext<RequestContext, {
|
|
3489
4366
|
workspaceId: string;
|