@kernhq/module-quire 0.10.2 → 0.10.4
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/server/_impl.d.ts
CHANGED
|
@@ -13,7 +13,23 @@ export declare function implement_(kernel: Kernel): {
|
|
|
13
13
|
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, {
|
|
14
14
|
workspaceId: string;
|
|
15
15
|
kernel: Kernel;
|
|
16
|
-
principal:
|
|
16
|
+
principal: {
|
|
17
|
+
kind: "service" | "user" | "api_key" | "anonymous";
|
|
18
|
+
userId: (string & import("zod").$brand<"UserId">) | null;
|
|
19
|
+
email: string | null;
|
|
20
|
+
name: string | null;
|
|
21
|
+
locale: "en" | "fa" | "ar" | "de";
|
|
22
|
+
instanceAdmin: boolean;
|
|
23
|
+
service: string | null;
|
|
24
|
+
memberships: {
|
|
25
|
+
workspaceId: string & import("zod").$brand<"WorkspaceId">;
|
|
26
|
+
role: "owner" | "admin" | "member" | "guest";
|
|
27
|
+
roleIds: string[];
|
|
28
|
+
groupIds: string[];
|
|
29
|
+
status: "active" | "invited" | "suspended";
|
|
30
|
+
}[];
|
|
31
|
+
permissionVersion: number;
|
|
32
|
+
};
|
|
17
33
|
requestId: string;
|
|
18
34
|
ip: string;
|
|
19
35
|
headers: Record<string, string | string[] | undefined>;
|
|
@@ -63,7 +79,23 @@ export declare function implement_(kernel: Kernel): {
|
|
|
63
79
|
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, {
|
|
64
80
|
workspaceId: string;
|
|
65
81
|
kernel: Kernel;
|
|
66
|
-
principal:
|
|
82
|
+
principal: {
|
|
83
|
+
kind: "service" | "user" | "api_key" | "anonymous";
|
|
84
|
+
userId: (string & import("zod").$brand<"UserId">) | null;
|
|
85
|
+
email: string | null;
|
|
86
|
+
name: string | null;
|
|
87
|
+
locale: "en" | "fa" | "ar" | "de";
|
|
88
|
+
instanceAdmin: boolean;
|
|
89
|
+
service: string | null;
|
|
90
|
+
memberships: {
|
|
91
|
+
workspaceId: string & import("zod").$brand<"WorkspaceId">;
|
|
92
|
+
role: "owner" | "admin" | "member" | "guest";
|
|
93
|
+
roleIds: string[];
|
|
94
|
+
groupIds: string[];
|
|
95
|
+
status: "active" | "invited" | "suspended";
|
|
96
|
+
}[];
|
|
97
|
+
permissionVersion: number;
|
|
98
|
+
};
|
|
67
99
|
requestId: string;
|
|
68
100
|
ip: string;
|
|
69
101
|
headers: Record<string, string | string[] | undefined>;
|
|
@@ -113,7 +145,23 @@ export declare function implement_(kernel: Kernel): {
|
|
|
113
145
|
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, {
|
|
114
146
|
workspaceId: string;
|
|
115
147
|
kernel: Kernel;
|
|
116
|
-
principal:
|
|
148
|
+
principal: {
|
|
149
|
+
kind: "service" | "user" | "api_key" | "anonymous";
|
|
150
|
+
userId: (string & import("zod").$brand<"UserId">) | null;
|
|
151
|
+
email: string | null;
|
|
152
|
+
name: string | null;
|
|
153
|
+
locale: "en" | "fa" | "ar" | "de";
|
|
154
|
+
instanceAdmin: boolean;
|
|
155
|
+
service: string | null;
|
|
156
|
+
memberships: {
|
|
157
|
+
workspaceId: string & import("zod").$brand<"WorkspaceId">;
|
|
158
|
+
role: "owner" | "admin" | "member" | "guest";
|
|
159
|
+
roleIds: string[];
|
|
160
|
+
groupIds: string[];
|
|
161
|
+
status: "active" | "invited" | "suspended";
|
|
162
|
+
}[];
|
|
163
|
+
permissionVersion: number;
|
|
164
|
+
};
|
|
117
165
|
requestId: string;
|
|
118
166
|
ip: string;
|
|
119
167
|
headers: Record<string, string | string[] | undefined>;
|
|
@@ -171,7 +219,23 @@ export declare function implement_(kernel: Kernel): {
|
|
|
171
219
|
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, {
|
|
172
220
|
workspaceId: string;
|
|
173
221
|
kernel: Kernel;
|
|
174
|
-
principal:
|
|
222
|
+
principal: {
|
|
223
|
+
kind: "service" | "user" | "api_key" | "anonymous";
|
|
224
|
+
userId: (string & import("zod").$brand<"UserId">) | null;
|
|
225
|
+
email: string | null;
|
|
226
|
+
name: string | null;
|
|
227
|
+
locale: "en" | "fa" | "ar" | "de";
|
|
228
|
+
instanceAdmin: boolean;
|
|
229
|
+
service: string | null;
|
|
230
|
+
memberships: {
|
|
231
|
+
workspaceId: string & import("zod").$brand<"WorkspaceId">;
|
|
232
|
+
role: "owner" | "admin" | "member" | "guest";
|
|
233
|
+
roleIds: string[];
|
|
234
|
+
groupIds: string[];
|
|
235
|
+
status: "active" | "invited" | "suspended";
|
|
236
|
+
}[];
|
|
237
|
+
permissionVersion: number;
|
|
238
|
+
};
|
|
175
239
|
requestId: string;
|
|
176
240
|
ip: string;
|
|
177
241
|
headers: Record<string, string | string[] | undefined>;
|
|
@@ -230,7 +294,23 @@ export declare function implement_(kernel: Kernel): {
|
|
|
230
294
|
archive: 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, {
|
|
231
295
|
workspaceId: string;
|
|
232
296
|
kernel: Kernel;
|
|
233
|
-
principal:
|
|
297
|
+
principal: {
|
|
298
|
+
kind: "service" | "user" | "api_key" | "anonymous";
|
|
299
|
+
userId: (string & import("zod").$brand<"UserId">) | null;
|
|
300
|
+
email: string | null;
|
|
301
|
+
name: string | null;
|
|
302
|
+
locale: "en" | "fa" | "ar" | "de";
|
|
303
|
+
instanceAdmin: boolean;
|
|
304
|
+
service: string | null;
|
|
305
|
+
memberships: {
|
|
306
|
+
workspaceId: string & import("zod").$brand<"WorkspaceId">;
|
|
307
|
+
role: "owner" | "admin" | "member" | "guest";
|
|
308
|
+
roleIds: string[];
|
|
309
|
+
groupIds: string[];
|
|
310
|
+
status: "active" | "invited" | "suspended";
|
|
311
|
+
}[];
|
|
312
|
+
permissionVersion: number;
|
|
313
|
+
};
|
|
234
314
|
requestId: string;
|
|
235
315
|
ip: string;
|
|
236
316
|
headers: Record<string, string | string[] | undefined>;
|
|
@@ -283,7 +363,23 @@ export declare function implement_(kernel: Kernel): {
|
|
|
283
363
|
tree: 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, {
|
|
284
364
|
workspaceId: string;
|
|
285
365
|
kernel: Kernel;
|
|
286
|
-
principal:
|
|
366
|
+
principal: {
|
|
367
|
+
kind: "service" | "user" | "api_key" | "anonymous";
|
|
368
|
+
userId: (string & import("zod").$brand<"UserId">) | null;
|
|
369
|
+
email: string | null;
|
|
370
|
+
name: string | null;
|
|
371
|
+
locale: "en" | "fa" | "ar" | "de";
|
|
372
|
+
instanceAdmin: boolean;
|
|
373
|
+
service: string | null;
|
|
374
|
+
memberships: {
|
|
375
|
+
workspaceId: string & import("zod").$brand<"WorkspaceId">;
|
|
376
|
+
role: "owner" | "admin" | "member" | "guest";
|
|
377
|
+
roleIds: string[];
|
|
378
|
+
groupIds: string[];
|
|
379
|
+
status: "active" | "invited" | "suspended";
|
|
380
|
+
}[];
|
|
381
|
+
permissionVersion: number;
|
|
382
|
+
};
|
|
287
383
|
requestId: string;
|
|
288
384
|
ip: string;
|
|
289
385
|
headers: Record<string, string | string[] | undefined>;
|
|
@@ -330,7 +426,23 @@ export declare function implement_(kernel: Kernel): {
|
|
|
330
426
|
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, {
|
|
331
427
|
workspaceId: string;
|
|
332
428
|
kernel: Kernel;
|
|
333
|
-
principal:
|
|
429
|
+
principal: {
|
|
430
|
+
kind: "service" | "user" | "api_key" | "anonymous";
|
|
431
|
+
userId: (string & import("zod").$brand<"UserId">) | null;
|
|
432
|
+
email: string | null;
|
|
433
|
+
name: string | null;
|
|
434
|
+
locale: "en" | "fa" | "ar" | "de";
|
|
435
|
+
instanceAdmin: boolean;
|
|
436
|
+
service: string | null;
|
|
437
|
+
memberships: {
|
|
438
|
+
workspaceId: string & import("zod").$brand<"WorkspaceId">;
|
|
439
|
+
role: "owner" | "admin" | "member" | "guest";
|
|
440
|
+
roleIds: string[];
|
|
441
|
+
groupIds: string[];
|
|
442
|
+
status: "active" | "invited" | "suspended";
|
|
443
|
+
}[];
|
|
444
|
+
permissionVersion: number;
|
|
445
|
+
};
|
|
334
446
|
requestId: string;
|
|
335
447
|
ip: string;
|
|
336
448
|
headers: Record<string, string | string[] | undefined>;
|
|
@@ -385,7 +497,23 @@ export declare function implement_(kernel: Kernel): {
|
|
|
385
497
|
trash: 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, {
|
|
386
498
|
workspaceId: string;
|
|
387
499
|
kernel: Kernel;
|
|
388
|
-
principal:
|
|
500
|
+
principal: {
|
|
501
|
+
kind: "service" | "user" | "api_key" | "anonymous";
|
|
502
|
+
userId: (string & import("zod").$brand<"UserId">) | null;
|
|
503
|
+
email: string | null;
|
|
504
|
+
name: string | null;
|
|
505
|
+
locale: "en" | "fa" | "ar" | "de";
|
|
506
|
+
instanceAdmin: boolean;
|
|
507
|
+
service: string | null;
|
|
508
|
+
memberships: {
|
|
509
|
+
workspaceId: string & import("zod").$brand<"WorkspaceId">;
|
|
510
|
+
role: "owner" | "admin" | "member" | "guest";
|
|
511
|
+
roleIds: string[];
|
|
512
|
+
groupIds: string[];
|
|
513
|
+
status: "active" | "invited" | "suspended";
|
|
514
|
+
}[];
|
|
515
|
+
permissionVersion: number;
|
|
516
|
+
};
|
|
389
517
|
requestId: string;
|
|
390
518
|
ip: string;
|
|
391
519
|
headers: Record<string, string | string[] | undefined>;
|
|
@@ -446,7 +574,23 @@ export declare function implement_(kernel: Kernel): {
|
|
|
446
574
|
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, {
|
|
447
575
|
workspaceId: string;
|
|
448
576
|
kernel: Kernel;
|
|
449
|
-
principal:
|
|
577
|
+
principal: {
|
|
578
|
+
kind: "service" | "user" | "api_key" | "anonymous";
|
|
579
|
+
userId: (string & import("zod").$brand<"UserId">) | null;
|
|
580
|
+
email: string | null;
|
|
581
|
+
name: string | null;
|
|
582
|
+
locale: "en" | "fa" | "ar" | "de";
|
|
583
|
+
instanceAdmin: boolean;
|
|
584
|
+
service: string | null;
|
|
585
|
+
memberships: {
|
|
586
|
+
workspaceId: string & import("zod").$brand<"WorkspaceId">;
|
|
587
|
+
role: "owner" | "admin" | "member" | "guest";
|
|
588
|
+
roleIds: string[];
|
|
589
|
+
groupIds: string[];
|
|
590
|
+
status: "active" | "invited" | "suspended";
|
|
591
|
+
}[];
|
|
592
|
+
permissionVersion: number;
|
|
593
|
+
};
|
|
450
594
|
requestId: string;
|
|
451
595
|
ip: string;
|
|
452
596
|
headers: Record<string, string | string[] | undefined>;
|
|
@@ -510,7 +654,23 @@ export declare function implement_(kernel: Kernel): {
|
|
|
510
654
|
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, {
|
|
511
655
|
workspaceId: string;
|
|
512
656
|
kernel: Kernel;
|
|
513
|
-
principal:
|
|
657
|
+
principal: {
|
|
658
|
+
kind: "service" | "user" | "api_key" | "anonymous";
|
|
659
|
+
userId: (string & import("zod").$brand<"UserId">) | null;
|
|
660
|
+
email: string | null;
|
|
661
|
+
name: string | null;
|
|
662
|
+
locale: "en" | "fa" | "ar" | "de";
|
|
663
|
+
instanceAdmin: boolean;
|
|
664
|
+
service: string | null;
|
|
665
|
+
memberships: {
|
|
666
|
+
workspaceId: string & import("zod").$brand<"WorkspaceId">;
|
|
667
|
+
role: "owner" | "admin" | "member" | "guest";
|
|
668
|
+
roleIds: string[];
|
|
669
|
+
groupIds: string[];
|
|
670
|
+
status: "active" | "invited" | "suspended";
|
|
671
|
+
}[];
|
|
672
|
+
permissionVersion: number;
|
|
673
|
+
};
|
|
514
674
|
requestId: string;
|
|
515
675
|
ip: string;
|
|
516
676
|
headers: Record<string, string | string[] | undefined>;
|
|
@@ -573,7 +733,23 @@ export declare function implement_(kernel: Kernel): {
|
|
|
573
733
|
move: 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, {
|
|
574
734
|
workspaceId: string;
|
|
575
735
|
kernel: Kernel;
|
|
576
|
-
principal:
|
|
736
|
+
principal: {
|
|
737
|
+
kind: "service" | "user" | "api_key" | "anonymous";
|
|
738
|
+
userId: (string & import("zod").$brand<"UserId">) | null;
|
|
739
|
+
email: string | null;
|
|
740
|
+
name: string | null;
|
|
741
|
+
locale: "en" | "fa" | "ar" | "de";
|
|
742
|
+
instanceAdmin: boolean;
|
|
743
|
+
service: string | null;
|
|
744
|
+
memberships: {
|
|
745
|
+
workspaceId: string & import("zod").$brand<"WorkspaceId">;
|
|
746
|
+
role: "owner" | "admin" | "member" | "guest";
|
|
747
|
+
roleIds: string[];
|
|
748
|
+
groupIds: string[];
|
|
749
|
+
status: "active" | "invited" | "suspended";
|
|
750
|
+
}[];
|
|
751
|
+
permissionVersion: number;
|
|
752
|
+
};
|
|
577
753
|
requestId: string;
|
|
578
754
|
ip: string;
|
|
579
755
|
headers: Record<string, string | string[] | undefined>;
|
|
@@ -630,7 +806,23 @@ export declare function implement_(kernel: Kernel): {
|
|
|
630
806
|
archive: 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, {
|
|
631
807
|
workspaceId: string;
|
|
632
808
|
kernel: Kernel;
|
|
633
|
-
principal:
|
|
809
|
+
principal: {
|
|
810
|
+
kind: "service" | "user" | "api_key" | "anonymous";
|
|
811
|
+
userId: (string & import("zod").$brand<"UserId">) | null;
|
|
812
|
+
email: string | null;
|
|
813
|
+
name: string | null;
|
|
814
|
+
locale: "en" | "fa" | "ar" | "de";
|
|
815
|
+
instanceAdmin: boolean;
|
|
816
|
+
service: string | null;
|
|
817
|
+
memberships: {
|
|
818
|
+
workspaceId: string & import("zod").$brand<"WorkspaceId">;
|
|
819
|
+
role: "owner" | "admin" | "member" | "guest";
|
|
820
|
+
roleIds: string[];
|
|
821
|
+
groupIds: string[];
|
|
822
|
+
status: "active" | "invited" | "suspended";
|
|
823
|
+
}[];
|
|
824
|
+
permissionVersion: number;
|
|
825
|
+
};
|
|
634
826
|
requestId: string;
|
|
635
827
|
ip: string;
|
|
636
828
|
headers: Record<string, string | string[] | undefined>;
|
|
@@ -686,7 +878,23 @@ export declare function implement_(kernel: Kernel): {
|
|
|
686
878
|
trashPage: 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, {
|
|
687
879
|
workspaceId: string;
|
|
688
880
|
kernel: Kernel;
|
|
689
|
-
principal:
|
|
881
|
+
principal: {
|
|
882
|
+
kind: "service" | "user" | "api_key" | "anonymous";
|
|
883
|
+
userId: (string & import("zod").$brand<"UserId">) | null;
|
|
884
|
+
email: string | null;
|
|
885
|
+
name: string | null;
|
|
886
|
+
locale: "en" | "fa" | "ar" | "de";
|
|
887
|
+
instanceAdmin: boolean;
|
|
888
|
+
service: string | null;
|
|
889
|
+
memberships: {
|
|
890
|
+
workspaceId: string & import("zod").$brand<"WorkspaceId">;
|
|
891
|
+
role: "owner" | "admin" | "member" | "guest";
|
|
892
|
+
roleIds: string[];
|
|
893
|
+
groupIds: string[];
|
|
894
|
+
status: "active" | "invited" | "suspended";
|
|
895
|
+
}[];
|
|
896
|
+
permissionVersion: number;
|
|
897
|
+
};
|
|
690
898
|
requestId: string;
|
|
691
899
|
ip: string;
|
|
692
900
|
headers: Record<string, string | string[] | undefined>;
|
|
@@ -722,7 +930,23 @@ export declare function implement_(kernel: Kernel): {
|
|
|
722
930
|
restore: 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, {
|
|
723
931
|
workspaceId: string;
|
|
724
932
|
kernel: Kernel;
|
|
725
|
-
principal:
|
|
933
|
+
principal: {
|
|
934
|
+
kind: "service" | "user" | "api_key" | "anonymous";
|
|
935
|
+
userId: (string & import("zod").$brand<"UserId">) | null;
|
|
936
|
+
email: string | null;
|
|
937
|
+
name: string | null;
|
|
938
|
+
locale: "en" | "fa" | "ar" | "de";
|
|
939
|
+
instanceAdmin: boolean;
|
|
940
|
+
service: string | null;
|
|
941
|
+
memberships: {
|
|
942
|
+
workspaceId: string & import("zod").$brand<"WorkspaceId">;
|
|
943
|
+
role: "owner" | "admin" | "member" | "guest";
|
|
944
|
+
roleIds: string[];
|
|
945
|
+
groupIds: string[];
|
|
946
|
+
status: "active" | "invited" | "suspended";
|
|
947
|
+
}[];
|
|
948
|
+
permissionVersion: number;
|
|
949
|
+
};
|
|
726
950
|
requestId: string;
|
|
727
951
|
ip: string;
|
|
728
952
|
headers: Record<string, string | string[] | undefined>;
|
|
@@ -777,7 +1001,23 @@ export declare function implement_(kernel: Kernel): {
|
|
|
777
1001
|
purge: 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, {
|
|
778
1002
|
workspaceId: string;
|
|
779
1003
|
kernel: Kernel;
|
|
780
|
-
principal:
|
|
1004
|
+
principal: {
|
|
1005
|
+
kind: "service" | "user" | "api_key" | "anonymous";
|
|
1006
|
+
userId: (string & import("zod").$brand<"UserId">) | null;
|
|
1007
|
+
email: string | null;
|
|
1008
|
+
name: string | null;
|
|
1009
|
+
locale: "en" | "fa" | "ar" | "de";
|
|
1010
|
+
instanceAdmin: boolean;
|
|
1011
|
+
service: string | null;
|
|
1012
|
+
memberships: {
|
|
1013
|
+
workspaceId: string & import("zod").$brand<"WorkspaceId">;
|
|
1014
|
+
role: "owner" | "admin" | "member" | "guest";
|
|
1015
|
+
roleIds: string[];
|
|
1016
|
+
groupIds: string[];
|
|
1017
|
+
status: "active" | "invited" | "suspended";
|
|
1018
|
+
}[];
|
|
1019
|
+
permissionVersion: number;
|
|
1020
|
+
};
|
|
781
1021
|
requestId: string;
|
|
782
1022
|
ip: string;
|
|
783
1023
|
headers: Record<string, string | string[] | undefined>;
|
|
@@ -815,7 +1055,23 @@ export declare function implement_(kernel: Kernel): {
|
|
|
815
1055
|
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, {
|
|
816
1056
|
workspaceId: string;
|
|
817
1057
|
kernel: Kernel;
|
|
818
|
-
principal:
|
|
1058
|
+
principal: {
|
|
1059
|
+
kind: "service" | "user" | "api_key" | "anonymous";
|
|
1060
|
+
userId: (string & import("zod").$brand<"UserId">) | null;
|
|
1061
|
+
email: string | null;
|
|
1062
|
+
name: string | null;
|
|
1063
|
+
locale: "en" | "fa" | "ar" | "de";
|
|
1064
|
+
instanceAdmin: boolean;
|
|
1065
|
+
service: string | null;
|
|
1066
|
+
memberships: {
|
|
1067
|
+
workspaceId: string & import("zod").$brand<"WorkspaceId">;
|
|
1068
|
+
role: "owner" | "admin" | "member" | "guest";
|
|
1069
|
+
roleIds: string[];
|
|
1070
|
+
groupIds: string[];
|
|
1071
|
+
status: "active" | "invited" | "suspended";
|
|
1072
|
+
}[];
|
|
1073
|
+
permissionVersion: number;
|
|
1074
|
+
};
|
|
819
1075
|
requestId: string;
|
|
820
1076
|
ip: string;
|
|
821
1077
|
headers: Record<string, string | string[] | undefined>;
|
|
@@ -870,7 +1126,23 @@ export declare function implement_(kernel: Kernel): {
|
|
|
870
1126
|
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, {
|
|
871
1127
|
workspaceId: string;
|
|
872
1128
|
kernel: Kernel;
|
|
873
|
-
principal:
|
|
1129
|
+
principal: {
|
|
1130
|
+
kind: "service" | "user" | "api_key" | "anonymous";
|
|
1131
|
+
userId: (string & import("zod").$brand<"UserId">) | null;
|
|
1132
|
+
email: string | null;
|
|
1133
|
+
name: string | null;
|
|
1134
|
+
locale: "en" | "fa" | "ar" | "de";
|
|
1135
|
+
instanceAdmin: boolean;
|
|
1136
|
+
service: string | null;
|
|
1137
|
+
memberships: {
|
|
1138
|
+
workspaceId: string & import("zod").$brand<"WorkspaceId">;
|
|
1139
|
+
role: "owner" | "admin" | "member" | "guest";
|
|
1140
|
+
roleIds: string[];
|
|
1141
|
+
groupIds: string[];
|
|
1142
|
+
status: "active" | "invited" | "suspended";
|
|
1143
|
+
}[];
|
|
1144
|
+
permissionVersion: number;
|
|
1145
|
+
};
|
|
874
1146
|
requestId: string;
|
|
875
1147
|
ip: string;
|
|
876
1148
|
headers: Record<string, string | string[] | undefined>;
|
|
@@ -921,7 +1193,23 @@ export declare function implement_(kernel: Kernel): {
|
|
|
921
1193
|
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, {
|
|
922
1194
|
workspaceId: string;
|
|
923
1195
|
kernel: Kernel;
|
|
924
|
-
principal:
|
|
1196
|
+
principal: {
|
|
1197
|
+
kind: "service" | "user" | "api_key" | "anonymous";
|
|
1198
|
+
userId: (string & import("zod").$brand<"UserId">) | null;
|
|
1199
|
+
email: string | null;
|
|
1200
|
+
name: string | null;
|
|
1201
|
+
locale: "en" | "fa" | "ar" | "de";
|
|
1202
|
+
instanceAdmin: boolean;
|
|
1203
|
+
service: string | null;
|
|
1204
|
+
memberships: {
|
|
1205
|
+
workspaceId: string & import("zod").$brand<"WorkspaceId">;
|
|
1206
|
+
role: "owner" | "admin" | "member" | "guest";
|
|
1207
|
+
roleIds: string[];
|
|
1208
|
+
groupIds: string[];
|
|
1209
|
+
status: "active" | "invited" | "suspended";
|
|
1210
|
+
}[];
|
|
1211
|
+
permissionVersion: number;
|
|
1212
|
+
};
|
|
925
1213
|
requestId: string;
|
|
926
1214
|
ip: string;
|
|
927
1215
|
headers: Record<string, string | string[] | undefined>;
|
|
@@ -971,7 +1259,23 @@ export declare function implement_(kernel: Kernel): {
|
|
|
971
1259
|
restore: 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, {
|
|
972
1260
|
workspaceId: string;
|
|
973
1261
|
kernel: Kernel;
|
|
974
|
-
principal:
|
|
1262
|
+
principal: {
|
|
1263
|
+
kind: "service" | "user" | "api_key" | "anonymous";
|
|
1264
|
+
userId: (string & import("zod").$brand<"UserId">) | null;
|
|
1265
|
+
email: string | null;
|
|
1266
|
+
name: string | null;
|
|
1267
|
+
locale: "en" | "fa" | "ar" | "de";
|
|
1268
|
+
instanceAdmin: boolean;
|
|
1269
|
+
service: string | null;
|
|
1270
|
+
memberships: {
|
|
1271
|
+
workspaceId: string & import("zod").$brand<"WorkspaceId">;
|
|
1272
|
+
role: "owner" | "admin" | "member" | "guest";
|
|
1273
|
+
roleIds: string[];
|
|
1274
|
+
groupIds: string[];
|
|
1275
|
+
status: "active" | "invited" | "suspended";
|
|
1276
|
+
}[];
|
|
1277
|
+
permissionVersion: number;
|
|
1278
|
+
};
|
|
975
1279
|
requestId: string;
|
|
976
1280
|
ip: string;
|
|
977
1281
|
headers: Record<string, string | string[] | undefined>;
|
|
@@ -1022,7 +1326,23 @@ export declare function implement_(kernel: Kernel): {
|
|
|
1022
1326
|
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, {
|
|
1023
1327
|
workspaceId: string;
|
|
1024
1328
|
kernel: Kernel;
|
|
1025
|
-
principal:
|
|
1329
|
+
principal: {
|
|
1330
|
+
kind: "service" | "user" | "api_key" | "anonymous";
|
|
1331
|
+
userId: (string & import("zod").$brand<"UserId">) | null;
|
|
1332
|
+
email: string | null;
|
|
1333
|
+
name: string | null;
|
|
1334
|
+
locale: "en" | "fa" | "ar" | "de";
|
|
1335
|
+
instanceAdmin: boolean;
|
|
1336
|
+
service: string | null;
|
|
1337
|
+
memberships: {
|
|
1338
|
+
workspaceId: string & import("zod").$brand<"WorkspaceId">;
|
|
1339
|
+
role: "owner" | "admin" | "member" | "guest";
|
|
1340
|
+
roleIds: string[];
|
|
1341
|
+
groupIds: string[];
|
|
1342
|
+
status: "active" | "invited" | "suspended";
|
|
1343
|
+
}[];
|
|
1344
|
+
permissionVersion: number;
|
|
1345
|
+
};
|
|
1026
1346
|
requestId: string;
|
|
1027
1347
|
ip: string;
|
|
1028
1348
|
headers: Record<string, string | string[] | undefined>;
|
|
@@ -1099,7 +1419,23 @@ export declare function implement_(kernel: Kernel): {
|
|
|
1099
1419
|
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, {
|
|
1100
1420
|
workspaceId: string;
|
|
1101
1421
|
kernel: Kernel;
|
|
1102
|
-
principal:
|
|
1422
|
+
principal: {
|
|
1423
|
+
kind: "service" | "user" | "api_key" | "anonymous";
|
|
1424
|
+
userId: (string & import("zod").$brand<"UserId">) | null;
|
|
1425
|
+
email: string | null;
|
|
1426
|
+
name: string | null;
|
|
1427
|
+
locale: "en" | "fa" | "ar" | "de";
|
|
1428
|
+
instanceAdmin: boolean;
|
|
1429
|
+
service: string | null;
|
|
1430
|
+
memberships: {
|
|
1431
|
+
workspaceId: string & import("zod").$brand<"WorkspaceId">;
|
|
1432
|
+
role: "owner" | "admin" | "member" | "guest";
|
|
1433
|
+
roleIds: string[];
|
|
1434
|
+
groupIds: string[];
|
|
1435
|
+
status: "active" | "invited" | "suspended";
|
|
1436
|
+
}[];
|
|
1437
|
+
permissionVersion: number;
|
|
1438
|
+
};
|
|
1103
1439
|
requestId: string;
|
|
1104
1440
|
ip: string;
|
|
1105
1441
|
headers: Record<string, string | string[] | undefined>;
|
|
@@ -1158,7 +1494,23 @@ export declare function implement_(kernel: Kernel): {
|
|
|
1158
1494
|
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, {
|
|
1159
1495
|
workspaceId: string;
|
|
1160
1496
|
kernel: Kernel;
|
|
1161
|
-
principal:
|
|
1497
|
+
principal: {
|
|
1498
|
+
kind: "service" | "user" | "api_key" | "anonymous";
|
|
1499
|
+
userId: (string & import("zod").$brand<"UserId">) | null;
|
|
1500
|
+
email: string | null;
|
|
1501
|
+
name: string | null;
|
|
1502
|
+
locale: "en" | "fa" | "ar" | "de";
|
|
1503
|
+
instanceAdmin: boolean;
|
|
1504
|
+
service: string | null;
|
|
1505
|
+
memberships: {
|
|
1506
|
+
workspaceId: string & import("zod").$brand<"WorkspaceId">;
|
|
1507
|
+
role: "owner" | "admin" | "member" | "guest";
|
|
1508
|
+
roleIds: string[];
|
|
1509
|
+
groupIds: string[];
|
|
1510
|
+
status: "active" | "invited" | "suspended";
|
|
1511
|
+
}[];
|
|
1512
|
+
permissionVersion: number;
|
|
1513
|
+
};
|
|
1162
1514
|
requestId: string;
|
|
1163
1515
|
ip: string;
|
|
1164
1516
|
headers: Record<string, string | string[] | undefined>;
|
|
@@ -1211,7 +1563,23 @@ export declare function implement_(kernel: Kernel): {
|
|
|
1211
1563
|
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, {
|
|
1212
1564
|
workspaceId: string;
|
|
1213
1565
|
kernel: Kernel;
|
|
1214
|
-
principal:
|
|
1566
|
+
principal: {
|
|
1567
|
+
kind: "service" | "user" | "api_key" | "anonymous";
|
|
1568
|
+
userId: (string & import("zod").$brand<"UserId">) | null;
|
|
1569
|
+
email: string | null;
|
|
1570
|
+
name: string | null;
|
|
1571
|
+
locale: "en" | "fa" | "ar" | "de";
|
|
1572
|
+
instanceAdmin: boolean;
|
|
1573
|
+
service: string | null;
|
|
1574
|
+
memberships: {
|
|
1575
|
+
workspaceId: string & import("zod").$brand<"WorkspaceId">;
|
|
1576
|
+
role: "owner" | "admin" | "member" | "guest";
|
|
1577
|
+
roleIds: string[];
|
|
1578
|
+
groupIds: string[];
|
|
1579
|
+
status: "active" | "invited" | "suspended";
|
|
1580
|
+
}[];
|
|
1581
|
+
permissionVersion: number;
|
|
1582
|
+
};
|
|
1215
1583
|
requestId: string;
|
|
1216
1584
|
ip: string;
|
|
1217
1585
|
headers: Record<string, string | string[] | undefined>;
|
|
@@ -1246,7 +1614,23 @@ export declare function implement_(kernel: Kernel): {
|
|
|
1246
1614
|
resolve: 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, {
|
|
1247
1615
|
workspaceId: string;
|
|
1248
1616
|
kernel: Kernel;
|
|
1249
|
-
principal:
|
|
1617
|
+
principal: {
|
|
1618
|
+
kind: "service" | "user" | "api_key" | "anonymous";
|
|
1619
|
+
userId: (string & import("zod").$brand<"UserId">) | null;
|
|
1620
|
+
email: string | null;
|
|
1621
|
+
name: string | null;
|
|
1622
|
+
locale: "en" | "fa" | "ar" | "de";
|
|
1623
|
+
instanceAdmin: boolean;
|
|
1624
|
+
service: string | null;
|
|
1625
|
+
memberships: {
|
|
1626
|
+
workspaceId: string & import("zod").$brand<"WorkspaceId">;
|
|
1627
|
+
role: "owner" | "admin" | "member" | "guest";
|
|
1628
|
+
roleIds: string[];
|
|
1629
|
+
groupIds: string[];
|
|
1630
|
+
status: "active" | "invited" | "suspended";
|
|
1631
|
+
}[];
|
|
1632
|
+
permissionVersion: number;
|
|
1633
|
+
};
|
|
1250
1634
|
requestId: string;
|
|
1251
1635
|
ip: string;
|
|
1252
1636
|
headers: Record<string, string | string[] | undefined>;
|
|
@@ -1325,7 +1709,23 @@ export declare function implement_(kernel: Kernel): {
|
|
|
1325
1709
|
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, {
|
|
1326
1710
|
workspaceId: string;
|
|
1327
1711
|
kernel: Kernel;
|
|
1328
|
-
principal:
|
|
1712
|
+
principal: {
|
|
1713
|
+
kind: "service" | "user" | "api_key" | "anonymous";
|
|
1714
|
+
userId: (string & import("zod").$brand<"UserId">) | null;
|
|
1715
|
+
email: string | null;
|
|
1716
|
+
name: string | null;
|
|
1717
|
+
locale: "en" | "fa" | "ar" | "de";
|
|
1718
|
+
instanceAdmin: boolean;
|
|
1719
|
+
service: string | null;
|
|
1720
|
+
memberships: {
|
|
1721
|
+
workspaceId: string & import("zod").$brand<"WorkspaceId">;
|
|
1722
|
+
role: "owner" | "admin" | "member" | "guest";
|
|
1723
|
+
roleIds: string[];
|
|
1724
|
+
groupIds: string[];
|
|
1725
|
+
status: "active" | "invited" | "suspended";
|
|
1726
|
+
}[];
|
|
1727
|
+
permissionVersion: number;
|
|
1728
|
+
};
|
|
1329
1729
|
requestId: string;
|
|
1330
1730
|
ip: string;
|
|
1331
1731
|
headers: Record<string, string | string[] | undefined>;
|
|
@@ -1491,7 +1891,23 @@ export declare function implement_(kernel: Kernel): {
|
|
|
1491
1891
|
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, {
|
|
1492
1892
|
workspaceId: string;
|
|
1493
1893
|
kernel: Kernel;
|
|
1494
|
-
principal:
|
|
1894
|
+
principal: {
|
|
1895
|
+
kind: "service" | "user" | "api_key" | "anonymous";
|
|
1896
|
+
userId: (string & import("zod").$brand<"UserId">) | null;
|
|
1897
|
+
email: string | null;
|
|
1898
|
+
name: string | null;
|
|
1899
|
+
locale: "en" | "fa" | "ar" | "de";
|
|
1900
|
+
instanceAdmin: boolean;
|
|
1901
|
+
service: string | null;
|
|
1902
|
+
memberships: {
|
|
1903
|
+
workspaceId: string & import("zod").$brand<"WorkspaceId">;
|
|
1904
|
+
role: "owner" | "admin" | "member" | "guest";
|
|
1905
|
+
roleIds: string[];
|
|
1906
|
+
groupIds: string[];
|
|
1907
|
+
status: "active" | "invited" | "suspended";
|
|
1908
|
+
}[];
|
|
1909
|
+
permissionVersion: number;
|
|
1910
|
+
};
|
|
1495
1911
|
requestId: string;
|
|
1496
1912
|
ip: string;
|
|
1497
1913
|
headers: Record<string, string | string[] | undefined>;
|
|
@@ -1528,7 +1944,23 @@ export declare function implement_(kernel: Kernel): {
|
|
|
1528
1944
|
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, {
|
|
1529
1945
|
workspaceId: string;
|
|
1530
1946
|
kernel: Kernel;
|
|
1531
|
-
principal:
|
|
1947
|
+
principal: {
|
|
1948
|
+
kind: "service" | "user" | "api_key" | "anonymous";
|
|
1949
|
+
userId: (string & import("zod").$brand<"UserId">) | null;
|
|
1950
|
+
email: string | null;
|
|
1951
|
+
name: string | null;
|
|
1952
|
+
locale: "en" | "fa" | "ar" | "de";
|
|
1953
|
+
instanceAdmin: boolean;
|
|
1954
|
+
service: string | null;
|
|
1955
|
+
memberships: {
|
|
1956
|
+
workspaceId: string & import("zod").$brand<"WorkspaceId">;
|
|
1957
|
+
role: "owner" | "admin" | "member" | "guest";
|
|
1958
|
+
roleIds: string[];
|
|
1959
|
+
groupIds: string[];
|
|
1960
|
+
status: "active" | "invited" | "suspended";
|
|
1961
|
+
}[];
|
|
1962
|
+
permissionVersion: number;
|
|
1963
|
+
};
|
|
1532
1964
|
requestId: string;
|
|
1533
1965
|
ip: string;
|
|
1534
1966
|
headers: Record<string, string | string[] | undefined>;
|
|
@@ -1694,7 +2126,23 @@ export declare function implement_(kernel: Kernel): {
|
|
|
1694
2126
|
lookup: 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, {
|
|
1695
2127
|
workspaceId: string;
|
|
1696
2128
|
kernel: Kernel;
|
|
1697
|
-
principal:
|
|
2129
|
+
principal: {
|
|
2130
|
+
kind: "service" | "user" | "api_key" | "anonymous";
|
|
2131
|
+
userId: (string & import("zod").$brand<"UserId">) | null;
|
|
2132
|
+
email: string | null;
|
|
2133
|
+
name: string | null;
|
|
2134
|
+
locale: "en" | "fa" | "ar" | "de";
|
|
2135
|
+
instanceAdmin: boolean;
|
|
2136
|
+
service: string | null;
|
|
2137
|
+
memberships: {
|
|
2138
|
+
workspaceId: string & import("zod").$brand<"WorkspaceId">;
|
|
2139
|
+
role: "owner" | "admin" | "member" | "guest";
|
|
2140
|
+
roleIds: string[];
|
|
2141
|
+
groupIds: string[];
|
|
2142
|
+
status: "active" | "invited" | "suspended";
|
|
2143
|
+
}[];
|
|
2144
|
+
permissionVersion: number;
|
|
2145
|
+
};
|
|
1698
2146
|
requestId: string;
|
|
1699
2147
|
ip: string;
|
|
1700
2148
|
headers: Record<string, string | string[] | undefined>;
|
|
@@ -1734,7 +2182,23 @@ export declare function implement_(kernel: Kernel): {
|
|
|
1734
2182
|
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, {
|
|
1735
2183
|
workspaceId: string;
|
|
1736
2184
|
kernel: Kernel;
|
|
1737
|
-
principal:
|
|
2185
|
+
principal: {
|
|
2186
|
+
kind: "service" | "user" | "api_key" | "anonymous";
|
|
2187
|
+
userId: (string & import("zod").$brand<"UserId">) | null;
|
|
2188
|
+
email: string | null;
|
|
2189
|
+
name: string | null;
|
|
2190
|
+
locale: "en" | "fa" | "ar" | "de";
|
|
2191
|
+
instanceAdmin: boolean;
|
|
2192
|
+
service: string | null;
|
|
2193
|
+
memberships: {
|
|
2194
|
+
workspaceId: string & import("zod").$brand<"WorkspaceId">;
|
|
2195
|
+
role: "owner" | "admin" | "member" | "guest";
|
|
2196
|
+
roleIds: string[];
|
|
2197
|
+
groupIds: string[];
|
|
2198
|
+
status: "active" | "invited" | "suspended";
|
|
2199
|
+
}[];
|
|
2200
|
+
permissionVersion: number;
|
|
2201
|
+
};
|
|
1738
2202
|
requestId: string;
|
|
1739
2203
|
ip: string;
|
|
1740
2204
|
headers: Record<string, string | string[] | undefined>;
|
|
@@ -1903,7 +2367,23 @@ export declare function implement_(kernel: Kernel): {
|
|
|
1903
2367
|
rows: 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, {
|
|
1904
2368
|
workspaceId: string;
|
|
1905
2369
|
kernel: Kernel;
|
|
1906
|
-
principal:
|
|
2370
|
+
principal: {
|
|
2371
|
+
kind: "service" | "user" | "api_key" | "anonymous";
|
|
2372
|
+
userId: (string & import("zod").$brand<"UserId">) | null;
|
|
2373
|
+
email: string | null;
|
|
2374
|
+
name: string | null;
|
|
2375
|
+
locale: "en" | "fa" | "ar" | "de";
|
|
2376
|
+
instanceAdmin: boolean;
|
|
2377
|
+
service: string | null;
|
|
2378
|
+
memberships: {
|
|
2379
|
+
workspaceId: string & import("zod").$brand<"WorkspaceId">;
|
|
2380
|
+
role: "owner" | "admin" | "member" | "guest";
|
|
2381
|
+
roleIds: string[];
|
|
2382
|
+
groupIds: string[];
|
|
2383
|
+
status: "active" | "invited" | "suspended";
|
|
2384
|
+
}[];
|
|
2385
|
+
permissionVersion: number;
|
|
2386
|
+
};
|
|
1907
2387
|
requestId: string;
|
|
1908
2388
|
ip: string;
|
|
1909
2389
|
headers: Record<string, string | string[] | undefined>;
|
|
@@ -1954,7 +2434,23 @@ export declare function implement_(kernel: Kernel): {
|
|
|
1954
2434
|
addRow: 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, {
|
|
1955
2435
|
workspaceId: string;
|
|
1956
2436
|
kernel: Kernel;
|
|
1957
|
-
principal:
|
|
2437
|
+
principal: {
|
|
2438
|
+
kind: "service" | "user" | "api_key" | "anonymous";
|
|
2439
|
+
userId: (string & import("zod").$brand<"UserId">) | null;
|
|
2440
|
+
email: string | null;
|
|
2441
|
+
name: string | null;
|
|
2442
|
+
locale: "en" | "fa" | "ar" | "de";
|
|
2443
|
+
instanceAdmin: boolean;
|
|
2444
|
+
service: string | null;
|
|
2445
|
+
memberships: {
|
|
2446
|
+
workspaceId: string & import("zod").$brand<"WorkspaceId">;
|
|
2447
|
+
role: "owner" | "admin" | "member" | "guest";
|
|
2448
|
+
roleIds: string[];
|
|
2449
|
+
groupIds: string[];
|
|
2450
|
+
status: "active" | "invited" | "suspended";
|
|
2451
|
+
}[];
|
|
2452
|
+
permissionVersion: number;
|
|
2453
|
+
};
|
|
1958
2454
|
requestId: string;
|
|
1959
2455
|
ip: string;
|
|
1960
2456
|
headers: Record<string, string | string[] | undefined>;
|
|
@@ -2000,7 +2496,23 @@ export declare function implement_(kernel: Kernel): {
|
|
|
2000
2496
|
updateRow: 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, {
|
|
2001
2497
|
workspaceId: string;
|
|
2002
2498
|
kernel: Kernel;
|
|
2003
|
-
principal:
|
|
2499
|
+
principal: {
|
|
2500
|
+
kind: "service" | "user" | "api_key" | "anonymous";
|
|
2501
|
+
userId: (string & import("zod").$brand<"UserId">) | null;
|
|
2502
|
+
email: string | null;
|
|
2503
|
+
name: string | null;
|
|
2504
|
+
locale: "en" | "fa" | "ar" | "de";
|
|
2505
|
+
instanceAdmin: boolean;
|
|
2506
|
+
service: string | null;
|
|
2507
|
+
memberships: {
|
|
2508
|
+
workspaceId: string & import("zod").$brand<"WorkspaceId">;
|
|
2509
|
+
role: "owner" | "admin" | "member" | "guest";
|
|
2510
|
+
roleIds: string[];
|
|
2511
|
+
groupIds: string[];
|
|
2512
|
+
status: "active" | "invited" | "suspended";
|
|
2513
|
+
}[];
|
|
2514
|
+
permissionVersion: number;
|
|
2515
|
+
};
|
|
2004
2516
|
requestId: string;
|
|
2005
2517
|
ip: string;
|
|
2006
2518
|
headers: Record<string, string | string[] | undefined>;
|
|
@@ -2046,7 +2558,23 @@ export declare function implement_(kernel: Kernel): {
|
|
|
2046
2558
|
addProperty: 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, {
|
|
2047
2559
|
workspaceId: string;
|
|
2048
2560
|
kernel: Kernel;
|
|
2049
|
-
principal:
|
|
2561
|
+
principal: {
|
|
2562
|
+
kind: "service" | "user" | "api_key" | "anonymous";
|
|
2563
|
+
userId: (string & import("zod").$brand<"UserId">) | null;
|
|
2564
|
+
email: string | null;
|
|
2565
|
+
name: string | null;
|
|
2566
|
+
locale: "en" | "fa" | "ar" | "de";
|
|
2567
|
+
instanceAdmin: boolean;
|
|
2568
|
+
service: string | null;
|
|
2569
|
+
memberships: {
|
|
2570
|
+
workspaceId: string & import("zod").$brand<"WorkspaceId">;
|
|
2571
|
+
role: "owner" | "admin" | "member" | "guest";
|
|
2572
|
+
roleIds: string[];
|
|
2573
|
+
groupIds: string[];
|
|
2574
|
+
status: "active" | "invited" | "suspended";
|
|
2575
|
+
}[];
|
|
2576
|
+
permissionVersion: number;
|
|
2577
|
+
};
|
|
2050
2578
|
requestId: string;
|
|
2051
2579
|
ip: string;
|
|
2052
2580
|
headers: Record<string, string | string[] | undefined>;
|
|
@@ -2201,7 +2729,23 @@ export declare function implement_(kernel: Kernel): {
|
|
|
2201
2729
|
updateProperty: 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, {
|
|
2202
2730
|
workspaceId: string;
|
|
2203
2731
|
kernel: Kernel;
|
|
2204
|
-
principal:
|
|
2732
|
+
principal: {
|
|
2733
|
+
kind: "service" | "user" | "api_key" | "anonymous";
|
|
2734
|
+
userId: (string & import("zod").$brand<"UserId">) | null;
|
|
2735
|
+
email: string | null;
|
|
2736
|
+
name: string | null;
|
|
2737
|
+
locale: "en" | "fa" | "ar" | "de";
|
|
2738
|
+
instanceAdmin: boolean;
|
|
2739
|
+
service: string | null;
|
|
2740
|
+
memberships: {
|
|
2741
|
+
workspaceId: string & import("zod").$brand<"WorkspaceId">;
|
|
2742
|
+
role: "owner" | "admin" | "member" | "guest";
|
|
2743
|
+
roleIds: string[];
|
|
2744
|
+
groupIds: string[];
|
|
2745
|
+
status: "active" | "invited" | "suspended";
|
|
2746
|
+
}[];
|
|
2747
|
+
permissionVersion: number;
|
|
2748
|
+
};
|
|
2205
2749
|
requestId: string;
|
|
2206
2750
|
ip: string;
|
|
2207
2751
|
headers: Record<string, string | string[] | undefined>;
|
|
@@ -2357,7 +2901,23 @@ export declare function implement_(kernel: Kernel): {
|
|
|
2357
2901
|
moveProperty: 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, {
|
|
2358
2902
|
workspaceId: string;
|
|
2359
2903
|
kernel: Kernel;
|
|
2360
|
-
principal:
|
|
2904
|
+
principal: {
|
|
2905
|
+
kind: "service" | "user" | "api_key" | "anonymous";
|
|
2906
|
+
userId: (string & import("zod").$brand<"UserId">) | null;
|
|
2907
|
+
email: string | null;
|
|
2908
|
+
name: string | null;
|
|
2909
|
+
locale: "en" | "fa" | "ar" | "de";
|
|
2910
|
+
instanceAdmin: boolean;
|
|
2911
|
+
service: string | null;
|
|
2912
|
+
memberships: {
|
|
2913
|
+
workspaceId: string & import("zod").$brand<"WorkspaceId">;
|
|
2914
|
+
role: "owner" | "admin" | "member" | "guest";
|
|
2915
|
+
roleIds: string[];
|
|
2916
|
+
groupIds: string[];
|
|
2917
|
+
status: "active" | "invited" | "suspended";
|
|
2918
|
+
}[];
|
|
2919
|
+
permissionVersion: number;
|
|
2920
|
+
};
|
|
2361
2921
|
requestId: string;
|
|
2362
2922
|
ip: string;
|
|
2363
2923
|
headers: Record<string, string | string[] | undefined>;
|
|
@@ -2455,7 +3015,23 @@ export declare function implement_(kernel: Kernel): {
|
|
|
2455
3015
|
removeProperty: 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, {
|
|
2456
3016
|
workspaceId: string;
|
|
2457
3017
|
kernel: Kernel;
|
|
2458
|
-
principal:
|
|
3018
|
+
principal: {
|
|
3019
|
+
kind: "service" | "user" | "api_key" | "anonymous";
|
|
3020
|
+
userId: (string & import("zod").$brand<"UserId">) | null;
|
|
3021
|
+
email: string | null;
|
|
3022
|
+
name: string | null;
|
|
3023
|
+
locale: "en" | "fa" | "ar" | "de";
|
|
3024
|
+
instanceAdmin: boolean;
|
|
3025
|
+
service: string | null;
|
|
3026
|
+
memberships: {
|
|
3027
|
+
workspaceId: string & import("zod").$brand<"WorkspaceId">;
|
|
3028
|
+
role: "owner" | "admin" | "member" | "guest";
|
|
3029
|
+
roleIds: string[];
|
|
3030
|
+
groupIds: string[];
|
|
3031
|
+
status: "active" | "invited" | "suspended";
|
|
3032
|
+
}[];
|
|
3033
|
+
permissionVersion: number;
|
|
3034
|
+
};
|
|
2459
3035
|
requestId: string;
|
|
2460
3036
|
ip: string;
|
|
2461
3037
|
headers: Record<string, string | string[] | undefined>;
|
|
@@ -2490,7 +3066,23 @@ export declare function implement_(kernel: Kernel): {
|
|
|
2490
3066
|
addView: 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, {
|
|
2491
3067
|
workspaceId: string;
|
|
2492
3068
|
kernel: Kernel;
|
|
2493
|
-
principal:
|
|
3069
|
+
principal: {
|
|
3070
|
+
kind: "service" | "user" | "api_key" | "anonymous";
|
|
3071
|
+
userId: (string & import("zod").$brand<"UserId">) | null;
|
|
3072
|
+
email: string | null;
|
|
3073
|
+
name: string | null;
|
|
3074
|
+
locale: "en" | "fa" | "ar" | "de";
|
|
3075
|
+
instanceAdmin: boolean;
|
|
3076
|
+
service: string | null;
|
|
3077
|
+
memberships: {
|
|
3078
|
+
workspaceId: string & import("zod").$brand<"WorkspaceId">;
|
|
3079
|
+
role: "owner" | "admin" | "member" | "guest";
|
|
3080
|
+
roleIds: string[];
|
|
3081
|
+
groupIds: string[];
|
|
3082
|
+
status: "active" | "invited" | "suspended";
|
|
3083
|
+
}[];
|
|
3084
|
+
permissionVersion: number;
|
|
3085
|
+
};
|
|
2494
3086
|
requestId: string;
|
|
2495
3087
|
ip: string;
|
|
2496
3088
|
headers: Record<string, string | string[] | undefined>;
|
|
@@ -2632,7 +3224,23 @@ export declare function implement_(kernel: Kernel): {
|
|
|
2632
3224
|
updateView: 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, {
|
|
2633
3225
|
workspaceId: string;
|
|
2634
3226
|
kernel: Kernel;
|
|
2635
|
-
principal:
|
|
3227
|
+
principal: {
|
|
3228
|
+
kind: "service" | "user" | "api_key" | "anonymous";
|
|
3229
|
+
userId: (string & import("zod").$brand<"UserId">) | null;
|
|
3230
|
+
email: string | null;
|
|
3231
|
+
name: string | null;
|
|
3232
|
+
locale: "en" | "fa" | "ar" | "de";
|
|
3233
|
+
instanceAdmin: boolean;
|
|
3234
|
+
service: string | null;
|
|
3235
|
+
memberships: {
|
|
3236
|
+
workspaceId: string & import("zod").$brand<"WorkspaceId">;
|
|
3237
|
+
role: "owner" | "admin" | "member" | "guest";
|
|
3238
|
+
roleIds: string[];
|
|
3239
|
+
groupIds: string[];
|
|
3240
|
+
status: "active" | "invited" | "suspended";
|
|
3241
|
+
}[];
|
|
3242
|
+
permissionVersion: number;
|
|
3243
|
+
};
|
|
2636
3244
|
requestId: string;
|
|
2637
3245
|
ip: string;
|
|
2638
3246
|
headers: Record<string, string | string[] | undefined>;
|
|
@@ -2774,7 +3382,23 @@ export declare function implement_(kernel: Kernel): {
|
|
|
2774
3382
|
removeView: 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, {
|
|
2775
3383
|
workspaceId: string;
|
|
2776
3384
|
kernel: Kernel;
|
|
2777
|
-
principal:
|
|
3385
|
+
principal: {
|
|
3386
|
+
kind: "service" | "user" | "api_key" | "anonymous";
|
|
3387
|
+
userId: (string & import("zod").$brand<"UserId">) | null;
|
|
3388
|
+
email: string | null;
|
|
3389
|
+
name: string | null;
|
|
3390
|
+
locale: "en" | "fa" | "ar" | "de";
|
|
3391
|
+
instanceAdmin: boolean;
|
|
3392
|
+
service: string | null;
|
|
3393
|
+
memberships: {
|
|
3394
|
+
workspaceId: string & import("zod").$brand<"WorkspaceId">;
|
|
3395
|
+
role: "owner" | "admin" | "member" | "guest";
|
|
3396
|
+
roleIds: string[];
|
|
3397
|
+
groupIds: string[];
|
|
3398
|
+
status: "active" | "invited" | "suspended";
|
|
3399
|
+
}[];
|
|
3400
|
+
permissionVersion: number;
|
|
3401
|
+
};
|
|
2778
3402
|
requestId: string;
|
|
2779
3403
|
ip: string;
|
|
2780
3404
|
headers: Record<string, string | string[] | undefined>;
|
|
@@ -2809,7 +3433,23 @@ export declare function implement_(kernel: Kernel): {
|
|
|
2809
3433
|
setRelation: 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, {
|
|
2810
3434
|
workspaceId: string;
|
|
2811
3435
|
kernel: Kernel;
|
|
2812
|
-
principal:
|
|
3436
|
+
principal: {
|
|
3437
|
+
kind: "service" | "user" | "api_key" | "anonymous";
|
|
3438
|
+
userId: (string & import("zod").$brand<"UserId">) | null;
|
|
3439
|
+
email: string | null;
|
|
3440
|
+
name: string | null;
|
|
3441
|
+
locale: "en" | "fa" | "ar" | "de";
|
|
3442
|
+
instanceAdmin: boolean;
|
|
3443
|
+
service: string | null;
|
|
3444
|
+
memberships: {
|
|
3445
|
+
workspaceId: string & import("zod").$brand<"WorkspaceId">;
|
|
3446
|
+
role: "owner" | "admin" | "member" | "guest";
|
|
3447
|
+
roleIds: string[];
|
|
3448
|
+
groupIds: string[];
|
|
3449
|
+
status: "active" | "invited" | "suspended";
|
|
3450
|
+
}[];
|
|
3451
|
+
permissionVersion: number;
|
|
3452
|
+
};
|
|
2813
3453
|
requestId: string;
|
|
2814
3454
|
ip: string;
|
|
2815
3455
|
headers: Record<string, string | string[] | undefined>;
|
|
@@ -2848,7 +3488,23 @@ export declare function implement_(kernel: Kernel): {
|
|
|
2848
3488
|
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, {
|
|
2849
3489
|
workspaceId: string;
|
|
2850
3490
|
kernel: Kernel;
|
|
2851
|
-
principal:
|
|
3491
|
+
principal: {
|
|
3492
|
+
kind: "service" | "user" | "api_key" | "anonymous";
|
|
3493
|
+
userId: (string & import("zod").$brand<"UserId">) | null;
|
|
3494
|
+
email: string | null;
|
|
3495
|
+
name: string | null;
|
|
3496
|
+
locale: "en" | "fa" | "ar" | "de";
|
|
3497
|
+
instanceAdmin: boolean;
|
|
3498
|
+
service: string | null;
|
|
3499
|
+
memberships: {
|
|
3500
|
+
workspaceId: string & import("zod").$brand<"WorkspaceId">;
|
|
3501
|
+
role: "owner" | "admin" | "member" | "guest";
|
|
3502
|
+
roleIds: string[];
|
|
3503
|
+
groupIds: string[];
|
|
3504
|
+
status: "active" | "invited" | "suspended";
|
|
3505
|
+
}[];
|
|
3506
|
+
permissionVersion: number;
|
|
3507
|
+
};
|
|
2852
3508
|
requestId: string;
|
|
2853
3509
|
ip: string;
|
|
2854
3510
|
headers: Record<string, string | string[] | undefined>;
|
|
@@ -2904,7 +3560,23 @@ export declare function implement_(kernel: Kernel): {
|
|
|
2904
3560
|
revert: 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, {
|
|
2905
3561
|
workspaceId: string;
|
|
2906
3562
|
kernel: Kernel;
|
|
2907
|
-
principal:
|
|
3563
|
+
principal: {
|
|
3564
|
+
kind: "service" | "user" | "api_key" | "anonymous";
|
|
3565
|
+
userId: (string & import("zod").$brand<"UserId">) | null;
|
|
3566
|
+
email: string | null;
|
|
3567
|
+
name: string | null;
|
|
3568
|
+
locale: "en" | "fa" | "ar" | "de";
|
|
3569
|
+
instanceAdmin: boolean;
|
|
3570
|
+
service: string | null;
|
|
3571
|
+
memberships: {
|
|
3572
|
+
workspaceId: string & import("zod").$brand<"WorkspaceId">;
|
|
3573
|
+
role: "owner" | "admin" | "member" | "guest";
|
|
3574
|
+
roleIds: string[];
|
|
3575
|
+
groupIds: string[];
|
|
3576
|
+
status: "active" | "invited" | "suspended";
|
|
3577
|
+
}[];
|
|
3578
|
+
permissionVersion: number;
|
|
3579
|
+
};
|
|
2908
3580
|
requestId: string;
|
|
2909
3581
|
ip: string;
|
|
2910
3582
|
headers: Record<string, string | string[] | undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_impl.d.ts","sourceRoot":"","sources":["../../src/server/_impl.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,kBAAkB,EAElB,KAAK,MAAM,EACX,cAAc,EACd,KAAK,cAAc,EAIpB,MAAM,gBAAgB,CAAA;AASvB;;;;;;;GAOG;AACH,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,cAAc,EAAE,CAAA;AAI3D,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"_impl.d.ts","sourceRoot":"","sources":["../../src/server/_impl.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,kBAAkB,EAElB,KAAK,MAAM,EACX,cAAc,EACd,KAAK,cAAc,EAIpB,MAAM,gBAAgB,CAAA;AASvB;;;;;;;GAOG;AACH,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,cAAc,EAAE,CAAA;AAI3D,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4uBxC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kernhq/module-quire",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.4",
|
|
4
4
|
"description": "Kern Quire: collaborative documents, spaces and page trees",
|
|
5
5
|
"homepage": "https://github.com/KernAIO/module-quire#readme",
|
|
6
6
|
"license": "AGPL-3.0-only",
|
|
@@ -52,9 +52,9 @@
|
|
|
52
52
|
"zod": "^4.1.0"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
|
-
"@kernhq/contracts": "^0.
|
|
55
|
+
"@kernhq/contracts": "^0.7.0",
|
|
56
56
|
"@kernhq/kernel": "^0.7.2",
|
|
57
|
-
"@kernhq/ui": "^0.
|
|
57
|
+
"@kernhq/ui": "^0.12.0",
|
|
58
58
|
"@tanstack/svelte-query": "^6.1.0",
|
|
59
59
|
"svelte": "^5.46.0"
|
|
60
60
|
},
|
|
@@ -72,10 +72,10 @@
|
|
|
72
72
|
"devDependencies": {
|
|
73
73
|
"@biomejs/biome": "^2.0.0",
|
|
74
74
|
"@changesets/cli": "^2.27.0",
|
|
75
|
-
"@kernhq/contracts": "^0.
|
|
75
|
+
"@kernhq/contracts": "^0.7.0",
|
|
76
76
|
"@kernhq/kernel": "^0.7.2",
|
|
77
77
|
"@kernhq/tsconfig": "^0.1.0",
|
|
78
|
-
"@kernhq/ui": "^0.
|
|
78
|
+
"@kernhq/ui": "^0.12.0",
|
|
79
79
|
"@tanstack/svelte-query": "^6.1.0",
|
|
80
80
|
"@types/node": "^24.0.0",
|
|
81
81
|
"@types/pg": "^8.15.0",
|
|
@@ -73,12 +73,19 @@ const user = $derived({
|
|
|
73
73
|
the narrow schema with issue descriptions, and only a page has a reader (`renderPageDoc`) able
|
|
74
74
|
to draw all of this outside the browser.
|
|
75
75
|
-->
|
|
76
|
+
<!--
|
|
77
|
+
`label` is not decoration: the surface carries `role="textbox"`, and a textbox with no
|
|
78
|
+
accessible name is announced as nothing at all. This is the wiki's main writing surface, so
|
|
79
|
+
it was the one control in the product that most needed a name and did not have one. The page
|
|
80
|
+
title is the honest name for it; `page_body` covers an untitled page.
|
|
81
|
+
-->
|
|
76
82
|
<CollaborativeEditor
|
|
77
83
|
{url}
|
|
78
84
|
{name}
|
|
79
85
|
{user}
|
|
80
86
|
page
|
|
81
87
|
placeholder={t('editor_placeholder')}
|
|
88
|
+
label={doc.title || t('page_body')}
|
|
82
89
|
{onpeers}
|
|
83
90
|
{onstatus}
|
|
84
91
|
{commentRanges}
|
package/src/client/i18n.ts
CHANGED
|
@@ -30,7 +30,9 @@ export const en: Record<string, Message> = {
|
|
|
30
30
|
'quire.comments_empty': 'No comments yet',
|
|
31
31
|
'quire.comments_empty_desc': 'Select some text to ask about it.',
|
|
32
32
|
'quire.edited_ago': 'Edited {when}',
|
|
33
|
+
'quire.edited_ago_by': 'Edited {when} by {who}',
|
|
33
34
|
'quire.editor_mock': 'Not connected to the collaboration service',
|
|
35
|
+
'quire.page_body': 'Page body',
|
|
34
36
|
'quire.editor_mock_desc':
|
|
35
37
|
'This is the demo interface, which has no server behind it. Writing here would not be saved.',
|
|
36
38
|
'quire.editor_no_session': 'You are not signed in',
|
|
@@ -366,7 +368,9 @@ const ar: Record<string, Message> = {
|
|
|
366
368
|
'quire.comments_empty': 'لا توجد تعليقات بعد',
|
|
367
369
|
'quire.comments_empty_desc': 'حدّد نصًا لتسأل عنه.',
|
|
368
370
|
'quire.edited_ago': 'عُدّلت {when}',
|
|
371
|
+
'quire.edited_ago_by': 'عُدّلت {when} بواسطة {who}',
|
|
369
372
|
'quire.editor_mock': 'غير متصل بخدمة التعاون',
|
|
373
|
+
'quire.page_body': 'متن الصفحة',
|
|
370
374
|
'quire.editor_mock_desc': 'هذه واجهة العرض التجريبي، ولا يوجد خادم خلفها. لن يُحفظ ما تكتبه هنا.',
|
|
371
375
|
'quire.editor_no_session': 'لم تسجّل الدخول',
|
|
372
376
|
'quire.editor_no_session_desc': 'سجّل الدخول مرة أخرى للكتابة في هذه الصفحة.',
|
|
@@ -713,7 +717,9 @@ const de: Record<string, Message> = {
|
|
|
713
717
|
'quire.comments_empty': 'Noch keine Kommentare',
|
|
714
718
|
'quire.comments_empty_desc': 'Markiere Text, um dazu etwas zu fragen.',
|
|
715
719
|
'quire.edited_ago': 'Bearbeitet {when}',
|
|
720
|
+
'quire.edited_ago_by': 'Bearbeitet {when} von {who}',
|
|
716
721
|
'quire.editor_mock': 'Nicht mit dem Kollaborationsdienst verbunden',
|
|
722
|
+
'quire.page_body': 'Seiteninhalt',
|
|
717
723
|
'quire.editor_mock_desc':
|
|
718
724
|
'Dies ist die Demo-Oberfläche, hinter der kein Server steht. Was du hier schreibst, wird nicht gespeichert.',
|
|
719
725
|
'quire.editor_no_session': 'Du bist nicht angemeldet',
|
|
@@ -1052,7 +1058,9 @@ const fa: Record<string, Message> = {
|
|
|
1052
1058
|
'quire.comments_empty': 'هنوز دیدگاهی نیست',
|
|
1053
1059
|
'quire.comments_empty_desc': 'متنی را انتخاب کنید تا دربارهٔ آن بپرسید.',
|
|
1054
1060
|
'quire.edited_ago': 'ویرایش {when}',
|
|
1061
|
+
'quire.edited_ago_by': 'ویرایش {when} توسط {who}',
|
|
1055
1062
|
'quire.editor_mock': 'به سرویس همکاری وصل نیست',
|
|
1063
|
+
'quire.page_body': 'متن صفحه',
|
|
1056
1064
|
'quire.editor_mock_desc': 'این نسخهٔ نمایشی است و سروری پشت آن نیست. آنچه اینجا بنویسید ذخیره نمیشود.',
|
|
1057
1065
|
'quire.editor_no_session': 'وارد نشدهاید',
|
|
1058
1066
|
'quire.editor_no_session_desc': 'برای نوشتن در این صفحه دوباره وارد شوید.',
|
|
@@ -1381,7 +1389,9 @@ const tr: Record<string, Message> = {
|
|
|
1381
1389
|
'quire.comments_empty': 'Henüz yorum yok',
|
|
1382
1390
|
'quire.comments_empty_desc': 'Hakkında soru sormak için bir metin seçin.',
|
|
1383
1391
|
'quire.edited_ago': '{when} düzenlendi',
|
|
1392
|
+
'quire.edited_ago_by': '{who} tarafından {when} düzenlendi',
|
|
1384
1393
|
'quire.editor_mock': 'İş birliği hizmetine bağlı değil',
|
|
1394
|
+
'quire.page_body': 'Sayfa gövdesi',
|
|
1385
1395
|
'quire.editor_mock_desc': 'Bu, arkasında sunucu olmayan tanıtım arayüzü. Burada yazdıklarınız kaydedilmez.',
|
|
1386
1396
|
'quire.editor_no_session': 'Oturum açmadınız',
|
|
1387
1397
|
'quire.editor_no_session_desc': 'Bu sayfada yazmak için yeniden oturum açın.',
|
|
@@ -3,10 +3,12 @@ import {
|
|
|
3
3
|
Avatar,
|
|
4
4
|
Button,
|
|
5
5
|
type CollabPeer,
|
|
6
|
+
coreApi,
|
|
6
7
|
DropdownMenu,
|
|
7
8
|
EmptyState,
|
|
8
9
|
Icon,
|
|
9
10
|
IconButton,
|
|
11
|
+
keys,
|
|
10
12
|
navigation,
|
|
11
13
|
Page,
|
|
12
14
|
relativeTime,
|
|
@@ -18,6 +20,7 @@ import { getQuireApi } from '../api-instance.js'
|
|
|
18
20
|
import CommentsPanel from '../components/CommentsPanel.svelte'
|
|
19
21
|
import PageEditor from '../components/PageEditor.svelte'
|
|
20
22
|
import VersionHistory from '../components/VersionHistory.svelte'
|
|
23
|
+
import { type CoreApi, toPerson } from '../core-api.js'
|
|
21
24
|
import DatabaseView from '../database/DatabaseView.svelte'
|
|
22
25
|
import { t } from '../i18n.js'
|
|
23
26
|
import { canQuire } from '../permissions.js'
|
|
@@ -51,12 +54,32 @@ const workspaceSlug = $derived(navigation.workspaceSlug)
|
|
|
51
54
|
const workspace = $derived(session.workspaces.find((w) => w.slug === workspaceSlug))
|
|
52
55
|
const workspaceId = $derived(workspace?.id ?? '')
|
|
53
56
|
|
|
57
|
+
const core = coreApi<CoreApi>()
|
|
58
|
+
/*
|
|
59
|
+
* Who last edited this, by name.
|
|
60
|
+
*
|
|
61
|
+
* The byline drew `<Avatar id={doc.updatedBy} />` with no name — a "?" square with an empty
|
|
62
|
+
* accessible name — over the words "Edited 1h ago", so the one line on the page whose job is to say
|
|
63
|
+
* who touched it said everything except that. The same member list the margin and the person cells
|
|
64
|
+
* read.
|
|
65
|
+
*/
|
|
66
|
+
const membersQuery = createQuery(() => ({
|
|
67
|
+
queryKey: keys.members(workspaceId),
|
|
68
|
+
enabled: Boolean(workspaceId),
|
|
69
|
+
queryFn: () => core.workspaces.members.list({ workspaceId, limit: 200 }),
|
|
70
|
+
}))
|
|
71
|
+
|
|
54
72
|
const query = createQuery(() => ({
|
|
55
73
|
queryKey: quireKeys.page(workspaceId, pageId),
|
|
56
74
|
enabled: Boolean(workspaceId && pageId),
|
|
57
75
|
queryFn: () => api.pages.get({ workspaceId, pageId }),
|
|
58
76
|
}))
|
|
59
77
|
const doc = $derived(query.data ?? null)
|
|
78
|
+
const editor = $derived.by(() => {
|
|
79
|
+
const id = doc?.updatedBy ?? null
|
|
80
|
+
if (!id) return null
|
|
81
|
+
return (membersQuery.data?.items ?? []).map(toPerson).find((p) => p.id === id) ?? null
|
|
82
|
+
})
|
|
60
83
|
|
|
61
84
|
const editable = $derived(canQuire('pageEdit'))
|
|
62
85
|
/** A database page draws a view where the prose would be, and a table needs the whole width. */
|
|
@@ -278,8 +301,12 @@ async function trash() {
|
|
|
278
301
|
</div>
|
|
279
302
|
|
|
280
303
|
<div class="byline">
|
|
281
|
-
<Avatar id={doc.updatedBy} size={24} />
|
|
282
|
-
<span>
|
|
304
|
+
<Avatar id={doc.updatedBy} name={editor?.name} src={editor?.avatarUrl ?? undefined} size={24} />
|
|
305
|
+
<span>
|
|
306
|
+
{editor
|
|
307
|
+
? t('edited_ago_by', { when: relativeTime(doc.updatedAt), who: editor.name })
|
|
308
|
+
: t('edited_ago', { when: relativeTime(doc.updatedAt) })}
|
|
309
|
+
</span>
|
|
283
310
|
{#if doc.kind === 'live'}
|
|
284
311
|
<span class="chip"><Icon name="square-pen" size={12} /> {t('kind_live')}</span>
|
|
285
312
|
{/if}
|
|
@@ -35,6 +35,27 @@ const spacesQuery = createQuery(() => ({
|
|
|
35
35
|
}))
|
|
36
36
|
const space = $derived((spacesQuery.data ?? []).find((s) => s.key === spaceKey) ?? null)
|
|
37
37
|
|
|
38
|
+
/*
|
|
39
|
+
* A space without a home page is not an empty space.
|
|
40
|
+
*
|
|
41
|
+
* This screen used to branch on `homepageId` alone and tell anyone whose space had no home page
|
|
42
|
+
* that it had no pages at all — while the sidebar beside it listed them. Opening a space means
|
|
43
|
+
* "show me this space", so with no home page chosen it opens the first top-level page, and the
|
|
44
|
+
* empty state is kept for the one case that is actually empty.
|
|
45
|
+
*/
|
|
46
|
+
const treeQuery = createQuery(() => ({
|
|
47
|
+
queryKey: quireKeys.tree(workspaceId, space?.id ?? ''),
|
|
48
|
+
enabled: Boolean(workspaceId && space && !space.homepageId),
|
|
49
|
+
queryFn: () => api.pages.tree({ workspaceId, spaceId: space?.id ?? '', includeArchived: false }),
|
|
50
|
+
}))
|
|
51
|
+
|
|
52
|
+
/** The first top-level page by position — the same order the sidebar draws. */
|
|
53
|
+
const firstPageId = $derived(
|
|
54
|
+
(treeQuery.data ?? [])
|
|
55
|
+
.filter((p) => p.parentId === null && !p.archivedAt)
|
|
56
|
+
.sort((a, b) => (a.position < b.position ? -1 : a.position > b.position ? 1 : 0))[0]?.id ?? null,
|
|
57
|
+
)
|
|
58
|
+
|
|
38
59
|
let creating = $state(false)
|
|
39
60
|
async function createFirst() {
|
|
40
61
|
if (!space || creating) return
|
|
@@ -66,6 +87,10 @@ async function createFirst() {
|
|
|
66
87
|
</div>
|
|
67
88
|
{:else if space.homepageId}
|
|
68
89
|
<PageView {spaceKey} pageId={space.homepageId} />
|
|
90
|
+
{:else if treeQuery.isLoading}
|
|
91
|
+
<div class="pad"><Skeleton height="36px" /></div>
|
|
92
|
+
{:else if firstPageId}
|
|
93
|
+
<PageView {spaceKey} pageId={firstPageId} />
|
|
69
94
|
{:else}
|
|
70
95
|
<div class="pad">
|
|
71
96
|
<EmptyState icon="file-text" title={t('space_empty')} description={t('space_empty_desc')}>
|