@ydtb/tk-scope-app 0.26.2 → 0.29.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/src/create-app.js +1 -1
- package/dist/src/create-app.js.map +1 -1
- package/dist/src/guards/UnifiedGuard.d.ts.map +1 -1
- package/dist/src/guards/UnifiedGuard.js +38 -9
- package/dist/src/guards/UnifiedGuard.js.map +1 -1
- package/dist/src/hooks/useCreateScope.d.ts +3 -2
- package/dist/src/hooks/useCreateScope.d.ts.map +1 -1
- package/dist/src/hooks/useInvitations.d.ts +4 -2
- package/dist/src/hooks/useInvitations.d.ts.map +1 -1
- package/dist/src/lib/config.d.ts +1 -0
- package/dist/src/lib/config.d.ts.map +1 -1
- package/dist/src/lib/config.js.map +1 -1
- package/dist/src/lib/onboarding-registry.d.ts +1 -0
- package/dist/src/lib/onboarding-registry.d.ts.map +1 -1
- package/dist/src/lib/onboarding-registry.js +7 -1
- package/dist/src/lib/onboarding-registry.js.map +1 -1
- package/dist/src/lib/platform-api.d.ts +587 -153
- package/dist/src/lib/platform-api.d.ts.map +1 -1
- package/dist/src/lib/types.d.ts +12 -1
- package/dist/src/lib/types.d.ts.map +1 -1
- package/dist/src/lib/types.js.map +1 -1
- package/dist/src/onboarding/CreateScopeWizardStep.d.ts.map +1 -1
- package/dist/src/onboarding/CreateScopeWizardStep.js +19 -1
- package/dist/src/onboarding/CreateScopeWizardStep.js.map +1 -1
- package/dist/src/onboarding/ReviewSetupStep.d.ts +8 -0
- package/dist/src/onboarding/ReviewSetupStep.d.ts.map +1 -0
- package/dist/src/onboarding/ReviewSetupStep.js +103 -0
- package/dist/src/onboarding/ReviewSetupStep.js.map +1 -0
- package/dist/src/onboarding/StepProps.d.ts +1 -9
- package/dist/src/onboarding/StepProps.d.ts.map +1 -1
- package/dist/src/onboarding/WizardShell.d.ts.map +1 -1
- package/dist/src/onboarding/WizardShell.js +93 -27
- package/dist/src/onboarding/WizardShell.js.map +1 -1
- package/dist/src/pages/AuthBrandMark.d.ts +23 -0
- package/dist/src/pages/AuthBrandMark.d.ts.map +1 -0
- package/dist/src/pages/AuthBrandMark.js +29 -0
- package/dist/src/pages/AuthBrandMark.js.map +1 -0
- package/dist/src/pages/DefaultCreateScopePage.d.ts.map +1 -1
- package/dist/src/pages/DefaultCreateScopePage.js +5 -5
- package/dist/src/pages/DefaultCreateScopePage.js.map +1 -1
- package/dist/src/pages/ForgotPasswordPage.d.ts.map +1 -1
- package/dist/src/pages/ForgotPasswordPage.js +4 -3
- package/dist/src/pages/ForgotPasswordPage.js.map +1 -1
- package/dist/src/pages/LoginPage.d.ts.map +1 -1
- package/dist/src/pages/LoginPage.js +2 -1
- package/dist/src/pages/LoginPage.js.map +1 -1
- package/dist/src/pages/ResetPasswordPage.d.ts.map +1 -1
- package/dist/src/pages/ResetPasswordPage.js +2 -1
- package/dist/src/pages/ResetPasswordPage.js.map +1 -1
- package/dist/src/pages/SignupPage.d.ts.map +1 -1
- package/dist/src/pages/SignupPage.js +3 -2
- package/dist/src/pages/SignupPage.js.map +1 -1
- package/package.json +13 -13
|
@@ -39,12 +39,12 @@ export declare const scopeApi: import("@ydtb/tk-scope-api-client").ToolClient<{
|
|
|
39
39
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
40
40
|
}, import("zod/v4/core").$strip>, import("@orpc/contract").Schema<{
|
|
41
41
|
scope: {
|
|
42
|
+
slug: string;
|
|
42
43
|
id: string;
|
|
43
44
|
name: string;
|
|
44
45
|
scope: string;
|
|
45
46
|
parentScope: string | null;
|
|
46
47
|
parentScopeId: string | null;
|
|
47
|
-
slug: string;
|
|
48
48
|
logo: string | null;
|
|
49
49
|
metadata: unknown;
|
|
50
50
|
createdAt: Date;
|
|
@@ -56,15 +56,16 @@ export declare const scopeApi: import("@ydtb/tk-scope-api-client").ToolClient<{
|
|
|
56
56
|
scopeId: string;
|
|
57
57
|
userId: string;
|
|
58
58
|
role: string;
|
|
59
|
-
};
|
|
59
|
+
} | null;
|
|
60
|
+
inheritedOwner: boolean;
|
|
60
61
|
}, {
|
|
61
62
|
scope: {
|
|
63
|
+
slug: string;
|
|
62
64
|
id: string;
|
|
63
65
|
name: string;
|
|
64
66
|
scope: string;
|
|
65
67
|
parentScope: string | null;
|
|
66
68
|
parentScopeId: string | null;
|
|
67
|
-
slug: string;
|
|
68
69
|
logo: string | null;
|
|
69
70
|
metadata: unknown;
|
|
70
71
|
createdAt: Date;
|
|
@@ -76,7 +77,8 @@ export declare const scopeApi: import("@ydtb/tk-scope-api-client").ToolClient<{
|
|
|
76
77
|
scopeId: string;
|
|
77
78
|
userId: string;
|
|
78
79
|
role: string;
|
|
79
|
-
};
|
|
80
|
+
} | null;
|
|
81
|
+
inheritedOwner: boolean;
|
|
80
82
|
}>, Record<never, never>, Record<never, never>>;
|
|
81
83
|
list: import("@orpc/server").DecoratedProcedure<import("@orpc/server").MergedInitialContext<{
|
|
82
84
|
headers: Headers;
|
|
@@ -204,7 +206,7 @@ export declare const scopeApi: import("@ydtb/tk-scope-api-client").ToolClient<{
|
|
|
204
206
|
scopeId: string;
|
|
205
207
|
scopeType: string;
|
|
206
208
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
207
|
-
permissions?: import("@ydtb/tk-scope-extension
|
|
209
|
+
permissions?: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
208
210
|
} & Record<never, never>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<{
|
|
209
211
|
headers: Headers;
|
|
210
212
|
}, {
|
|
@@ -226,7 +228,7 @@ export declare const scopeApi: import("@ydtb/tk-scope-api-client").ToolClient<{
|
|
|
226
228
|
scopeType: string;
|
|
227
229
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
228
230
|
}>, {
|
|
229
|
-
permissions: import("@ydtb/tk-scope-extension
|
|
231
|
+
permissions: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
230
232
|
}>, import("zod").ZodObject<{
|
|
231
233
|
scopeId: import("zod").ZodString;
|
|
232
234
|
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -288,7 +290,7 @@ export declare const scopeApi: import("@ydtb/tk-scope-api-client").ToolClient<{
|
|
|
288
290
|
scopeId: string;
|
|
289
291
|
scopeType: string;
|
|
290
292
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
291
|
-
permissions?: import("@ydtb/tk-scope-extension
|
|
293
|
+
permissions?: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
292
294
|
} & Record<never, never>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<{
|
|
293
295
|
headers: Headers;
|
|
294
296
|
}, {
|
|
@@ -310,7 +312,7 @@ export declare const scopeApi: import("@ydtb/tk-scope-api-client").ToolClient<{
|
|
|
310
312
|
scopeType: string;
|
|
311
313
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
312
314
|
}>, {
|
|
313
|
-
permissions: import("@ydtb/tk-scope-extension
|
|
315
|
+
permissions: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
314
316
|
}>, import("zod").ZodObject<{
|
|
315
317
|
scopeId: import("zod").ZodString;
|
|
316
318
|
}, import("zod/v4/core").$strip>, import("@orpc/contract").Schema<{
|
|
@@ -346,7 +348,7 @@ export declare const scopeApi: import("@ydtb/tk-scope-api-client").ToolClient<{
|
|
|
346
348
|
scopeId: string;
|
|
347
349
|
scopeType: string;
|
|
348
350
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
349
|
-
permissions?: import("@ydtb/tk-scope-extension
|
|
351
|
+
permissions?: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
350
352
|
} & Record<never, never>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<{
|
|
351
353
|
headers: Headers;
|
|
352
354
|
}, {
|
|
@@ -368,7 +370,7 @@ export declare const scopeApi: import("@ydtb/tk-scope-api-client").ToolClient<{
|
|
|
368
370
|
scopeType: string;
|
|
369
371
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
370
372
|
}>, {
|
|
371
|
-
permissions: import("@ydtb/tk-scope-extension
|
|
373
|
+
permissions: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
372
374
|
}>, import("zod").ZodObject<{
|
|
373
375
|
childScopeId: import("zod").ZodString;
|
|
374
376
|
parentScopeId: import("zod").ZodString;
|
|
@@ -405,7 +407,7 @@ export declare const scopeApi: import("@ydtb/tk-scope-api-client").ToolClient<{
|
|
|
405
407
|
scopeId: string;
|
|
406
408
|
scopeType: string;
|
|
407
409
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
408
|
-
permissions?: import("@ydtb/tk-scope-extension
|
|
410
|
+
permissions?: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
409
411
|
} & Record<never, never>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<{
|
|
410
412
|
headers: Headers;
|
|
411
413
|
}, {
|
|
@@ -427,7 +429,7 @@ export declare const scopeApi: import("@ydtb/tk-scope-api-client").ToolClient<{
|
|
|
427
429
|
scopeType: string;
|
|
428
430
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
429
431
|
}>, {
|
|
430
|
-
permissions: import("@ydtb/tk-scope-extension
|
|
432
|
+
permissions: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
431
433
|
}>, import("zod").ZodObject<{
|
|
432
434
|
childScopeId: import("zod").ZodString;
|
|
433
435
|
}, import("zod/v4/core").$strip>, import("@orpc/contract").Schema<{
|
|
@@ -465,7 +467,7 @@ export declare const membersApi: import("@ydtb/tk-scope-api-client").ToolClient<
|
|
|
465
467
|
scopeId: string;
|
|
466
468
|
scopeType: string;
|
|
467
469
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
468
|
-
permissions?: import("@ydtb/tk-scope-extension
|
|
470
|
+
permissions?: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
469
471
|
} & Record<never, never>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<{
|
|
470
472
|
headers: Headers;
|
|
471
473
|
}, {
|
|
@@ -487,14 +489,10 @@ export declare const membersApi: import("@ydtb/tk-scope-api-client").ToolClient<
|
|
|
487
489
|
scopeType: string;
|
|
488
490
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
489
491
|
}>, {
|
|
490
|
-
permissions: import("@ydtb/tk-scope-extension
|
|
492
|
+
permissions: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
491
493
|
}>, import("zod").ZodObject<{
|
|
492
494
|
search: import("zod").ZodOptional<import("zod").ZodString>;
|
|
493
495
|
tier: import("zod").ZodOptional<import("zod").ZodString>;
|
|
494
|
-
actorType: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
495
|
-
person: "person";
|
|
496
|
-
bot: "bot";
|
|
497
|
-
}>>;
|
|
498
496
|
page: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
499
497
|
pageSize: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
500
498
|
sorts: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
@@ -508,9 +506,15 @@ export declare const membersApi: import("@ydtb/tk-scope-api-client").ToolClient<
|
|
|
508
506
|
data: {
|
|
509
507
|
roles: {
|
|
510
508
|
id: string;
|
|
509
|
+
bindingId: string;
|
|
511
510
|
name: string;
|
|
512
511
|
slug: string;
|
|
513
512
|
color: string | null;
|
|
513
|
+
reach: {
|
|
514
|
+
mode: "current" | "all_descendants" | "selected_descendants" | "all_except";
|
|
515
|
+
includeScopeIds: string[];
|
|
516
|
+
excludeScopeIds: string[];
|
|
517
|
+
};
|
|
514
518
|
}[];
|
|
515
519
|
createdAt: string;
|
|
516
520
|
id: string;
|
|
@@ -519,8 +523,8 @@ export declare const membersApi: import("@ydtb/tk-scope-api-client").ToolClient<
|
|
|
519
523
|
email: string;
|
|
520
524
|
avatar: string | null;
|
|
521
525
|
tier: string;
|
|
522
|
-
actorType: "person"
|
|
523
|
-
botStatus:
|
|
526
|
+
actorType: "person";
|
|
527
|
+
botStatus: null;
|
|
524
528
|
}[];
|
|
525
529
|
total: number;
|
|
526
530
|
page: number;
|
|
@@ -529,9 +533,15 @@ export declare const membersApi: import("@ydtb/tk-scope-api-client").ToolClient<
|
|
|
529
533
|
data: {
|
|
530
534
|
roles: {
|
|
531
535
|
id: string;
|
|
536
|
+
bindingId: string;
|
|
532
537
|
name: string;
|
|
533
538
|
slug: string;
|
|
534
539
|
color: string | null;
|
|
540
|
+
reach: {
|
|
541
|
+
mode: "current" | "all_descendants" | "selected_descendants" | "all_except";
|
|
542
|
+
includeScopeIds: string[];
|
|
543
|
+
excludeScopeIds: string[];
|
|
544
|
+
};
|
|
535
545
|
}[];
|
|
536
546
|
createdAt: string;
|
|
537
547
|
id: string;
|
|
@@ -540,8 +550,8 @@ export declare const membersApi: import("@ydtb/tk-scope-api-client").ToolClient<
|
|
|
540
550
|
email: string;
|
|
541
551
|
avatar: string | null;
|
|
542
552
|
tier: string;
|
|
543
|
-
actorType: "person"
|
|
544
|
-
botStatus:
|
|
553
|
+
actorType: "person";
|
|
554
|
+
botStatus: null;
|
|
545
555
|
}[];
|
|
546
556
|
total: number;
|
|
547
557
|
page: number;
|
|
@@ -575,7 +585,7 @@ export declare const membersApi: import("@ydtb/tk-scope-api-client").ToolClient<
|
|
|
575
585
|
scopeId: string;
|
|
576
586
|
scopeType: string;
|
|
577
587
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
578
|
-
permissions?: import("@ydtb/tk-scope-extension
|
|
588
|
+
permissions?: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
579
589
|
} & Record<never, never>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<{
|
|
580
590
|
headers: Headers;
|
|
581
591
|
}, {
|
|
@@ -597,7 +607,7 @@ export declare const membersApi: import("@ydtb/tk-scope-api-client").ToolClient<
|
|
|
597
607
|
scopeType: string;
|
|
598
608
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
599
609
|
}>, {
|
|
600
|
-
permissions: import("@ydtb/tk-scope-extension
|
|
610
|
+
permissions: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
601
611
|
}>, import("zod").ZodObject<{
|
|
602
612
|
id: import("zod").ZodString;
|
|
603
613
|
}, import("zod/v4/core").$strip>, import("@orpc/contract").Schema<{
|
|
@@ -606,16 +616,26 @@ export declare const membersApi: import("@ydtb/tk-scope-api-client").ToolClient<
|
|
|
606
616
|
name: string;
|
|
607
617
|
email: string;
|
|
608
618
|
avatar: string | null;
|
|
609
|
-
actorType: "person"
|
|
610
|
-
botStatus:
|
|
619
|
+
actorType: "person";
|
|
620
|
+
botStatus: null;
|
|
611
621
|
tier: string;
|
|
612
622
|
roles: {
|
|
613
623
|
id: string;
|
|
624
|
+
bindingId: string;
|
|
614
625
|
name: string;
|
|
615
626
|
slug: string;
|
|
616
627
|
color: string | null;
|
|
628
|
+
reach: import("@ydtb/tk-scope-extension").NormalizedRoleBindingReach;
|
|
617
629
|
permissions: string[];
|
|
618
630
|
}[];
|
|
631
|
+
bindings: {
|
|
632
|
+
bindingId: string;
|
|
633
|
+
roleId: string;
|
|
634
|
+
roleName: string;
|
|
635
|
+
roleSlug: string;
|
|
636
|
+
roleColor: string | null;
|
|
637
|
+
reach: import("@ydtb/tk-scope-extension").NormalizedRoleBindingReach;
|
|
638
|
+
}[];
|
|
619
639
|
individualGrants: {
|
|
620
640
|
id: string;
|
|
621
641
|
permission: string;
|
|
@@ -638,16 +658,26 @@ export declare const membersApi: import("@ydtb/tk-scope-api-client").ToolClient<
|
|
|
638
658
|
name: string;
|
|
639
659
|
email: string;
|
|
640
660
|
avatar: string | null;
|
|
641
|
-
actorType: "person"
|
|
642
|
-
botStatus:
|
|
661
|
+
actorType: "person";
|
|
662
|
+
botStatus: null;
|
|
643
663
|
tier: string;
|
|
644
664
|
roles: {
|
|
645
665
|
id: string;
|
|
666
|
+
bindingId: string;
|
|
646
667
|
name: string;
|
|
647
668
|
slug: string;
|
|
648
669
|
color: string | null;
|
|
670
|
+
reach: import("@ydtb/tk-scope-extension").NormalizedRoleBindingReach;
|
|
649
671
|
permissions: string[];
|
|
650
672
|
}[];
|
|
673
|
+
bindings: {
|
|
674
|
+
bindingId: string;
|
|
675
|
+
roleId: string;
|
|
676
|
+
roleName: string;
|
|
677
|
+
roleSlug: string;
|
|
678
|
+
roleColor: string | null;
|
|
679
|
+
reach: import("@ydtb/tk-scope-extension").NormalizedRoleBindingReach;
|
|
680
|
+
}[];
|
|
651
681
|
individualGrants: {
|
|
652
682
|
id: string;
|
|
653
683
|
permission: string;
|
|
@@ -693,7 +723,7 @@ export declare const membersApi: import("@ydtb/tk-scope-api-client").ToolClient<
|
|
|
693
723
|
scopeId: string;
|
|
694
724
|
scopeType: string;
|
|
695
725
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
696
|
-
permissions?: import("@ydtb/tk-scope-extension
|
|
726
|
+
permissions?: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
697
727
|
} & Record<never, never>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<{
|
|
698
728
|
headers: Headers;
|
|
699
729
|
}, {
|
|
@@ -715,7 +745,7 @@ export declare const membersApi: import("@ydtb/tk-scope-api-client").ToolClient<
|
|
|
715
745
|
scopeType: string;
|
|
716
746
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
717
747
|
}>, {
|
|
718
|
-
permissions: import("@ydtb/tk-scope-extension
|
|
748
|
+
permissions: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
719
749
|
}>, import("zod").ZodObject<{
|
|
720
750
|
id: import("zod").ZodString;
|
|
721
751
|
}, import("zod/v4/core").$strip>, import("@orpc/contract").Schema<{
|
|
@@ -751,7 +781,7 @@ export declare const membersApi: import("@ydtb/tk-scope-api-client").ToolClient<
|
|
|
751
781
|
scopeId: string;
|
|
752
782
|
scopeType: string;
|
|
753
783
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
754
|
-
permissions?: import("@ydtb/tk-scope-extension
|
|
784
|
+
permissions?: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
755
785
|
} & Record<never, never>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<{
|
|
756
786
|
headers: Headers;
|
|
757
787
|
}, {
|
|
@@ -773,7 +803,7 @@ export declare const membersApi: import("@ydtb/tk-scope-api-client").ToolClient<
|
|
|
773
803
|
scopeType: string;
|
|
774
804
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
775
805
|
}>, {
|
|
776
|
-
permissions: import("@ydtb/tk-scope-extension
|
|
806
|
+
permissions: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
777
807
|
}>, import("zod").ZodObject<{
|
|
778
808
|
id: import("zod").ZodString;
|
|
779
809
|
}, import("zod/v4/core").$strip>, import("@orpc/contract").Schema<{
|
|
@@ -809,7 +839,7 @@ export declare const membersApi: import("@ydtb/tk-scope-api-client").ToolClient<
|
|
|
809
839
|
scopeId: string;
|
|
810
840
|
scopeType: string;
|
|
811
841
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
812
|
-
permissions?: import("@ydtb/tk-scope-extension
|
|
842
|
+
permissions?: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
813
843
|
} & Record<never, never>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<{
|
|
814
844
|
headers: Headers;
|
|
815
845
|
}, {
|
|
@@ -831,10 +861,23 @@ export declare const membersApi: import("@ydtb/tk-scope-api-client").ToolClient<
|
|
|
831
861
|
scopeType: string;
|
|
832
862
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
833
863
|
}>, {
|
|
834
|
-
permissions: import("@ydtb/tk-scope-extension
|
|
864
|
+
permissions: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
835
865
|
}>, import("zod").ZodObject<{
|
|
836
866
|
memberId: import("zod").ZodString;
|
|
837
|
-
roleIds: import("zod").ZodArray<import("zod").ZodString
|
|
867
|
+
roleIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
868
|
+
bindings: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
869
|
+
roleId: import("zod").ZodString;
|
|
870
|
+
reach: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
871
|
+
mode: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
872
|
+
current: "current";
|
|
873
|
+
all_descendants: "all_descendants";
|
|
874
|
+
selected_descendants: "selected_descendants";
|
|
875
|
+
all_except: "all_except";
|
|
876
|
+
}>>;
|
|
877
|
+
includeScopeIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
878
|
+
excludeScopeIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
879
|
+
}, import("zod/v4/core").$strip>>;
|
|
880
|
+
}, import("zod/v4/core").$strip>>>;
|
|
838
881
|
}, import("zod/v4/core").$strip>, import("@orpc/contract").Schema<{
|
|
839
882
|
success: boolean;
|
|
840
883
|
addedRoles: string[];
|
|
@@ -874,7 +917,7 @@ export declare const membersApi: import("@ydtb/tk-scope-api-client").ToolClient<
|
|
|
874
917
|
scopeId: string;
|
|
875
918
|
scopeType: string;
|
|
876
919
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
877
|
-
permissions?: import("@ydtb/tk-scope-extension
|
|
920
|
+
permissions?: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
878
921
|
} & Record<never, never>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<{
|
|
879
922
|
headers: Headers;
|
|
880
923
|
}, {
|
|
@@ -896,12 +939,12 @@ export declare const membersApi: import("@ydtb/tk-scope-api-client").ToolClient<
|
|
|
896
939
|
scopeType: string;
|
|
897
940
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
898
941
|
}>, {
|
|
899
|
-
permissions: import("@ydtb/tk-scope-extension
|
|
942
|
+
permissions: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
900
943
|
}>, import("zod").ZodObject<{
|
|
901
944
|
memberId: import("zod").ZodString;
|
|
902
945
|
tier: import("zod").ZodEnum<{
|
|
903
|
-
member: "member";
|
|
904
946
|
owner: "owner";
|
|
947
|
+
member: "member";
|
|
905
948
|
}>;
|
|
906
949
|
}, import("zod/v4/core").$strip>, import("@orpc/contract").Schema<{
|
|
907
950
|
success: boolean;
|
|
@@ -936,7 +979,7 @@ export declare const membersApi: import("@ydtb/tk-scope-api-client").ToolClient<
|
|
|
936
979
|
scopeId: string;
|
|
937
980
|
scopeType: string;
|
|
938
981
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
939
|
-
permissions?: import("@ydtb/tk-scope-extension
|
|
982
|
+
permissions?: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
940
983
|
} & Record<never, never>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<{
|
|
941
984
|
headers: Headers;
|
|
942
985
|
}, {
|
|
@@ -958,16 +1001,28 @@ export declare const membersApi: import("@ydtb/tk-scope-api-client").ToolClient<
|
|
|
958
1001
|
scopeType: string;
|
|
959
1002
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
960
1003
|
}>, {
|
|
961
|
-
permissions: import("@ydtb/tk-scope-extension
|
|
1004
|
+
permissions: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
962
1005
|
}>, import("zod").ZodObject<{
|
|
963
1006
|
memberId: import("zod").ZodString;
|
|
964
1007
|
roleId: import("zod").ZodString;
|
|
1008
|
+
reach: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1009
|
+
mode: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
1010
|
+
current: "current";
|
|
1011
|
+
all_descendants: "all_descendants";
|
|
1012
|
+
selected_descendants: "selected_descendants";
|
|
1013
|
+
all_except: "all_except";
|
|
1014
|
+
}>>;
|
|
1015
|
+
includeScopeIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
1016
|
+
excludeScopeIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
1017
|
+
}, import("zod/v4/core").$strip>>;
|
|
965
1018
|
}, import("zod/v4/core").$strip>, import("@orpc/contract").Schema<{
|
|
966
1019
|
success: boolean;
|
|
967
1020
|
alreadyAssigned: boolean;
|
|
1021
|
+
binding: import("@ydtb/tk-scope-extension").ScopedRoleBindingMutationResult;
|
|
968
1022
|
}, {
|
|
969
1023
|
success: boolean;
|
|
970
1024
|
alreadyAssigned: boolean;
|
|
1025
|
+
binding: import("@ydtb/tk-scope-extension").ScopedRoleBindingMutationResult;
|
|
971
1026
|
}>, Record<never, never>, Record<never, never>>;
|
|
972
1027
|
removeRole: import("@orpc/server").DecoratedProcedure<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<{
|
|
973
1028
|
headers: Headers;
|
|
@@ -997,7 +1052,7 @@ export declare const membersApi: import("@ydtb/tk-scope-api-client").ToolClient<
|
|
|
997
1052
|
scopeId: string;
|
|
998
1053
|
scopeType: string;
|
|
999
1054
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
1000
|
-
permissions?: import("@ydtb/tk-scope-extension
|
|
1055
|
+
permissions?: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
1001
1056
|
} & Record<never, never>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<{
|
|
1002
1057
|
headers: Headers;
|
|
1003
1058
|
}, {
|
|
@@ -1019,7 +1074,7 @@ export declare const membersApi: import("@ydtb/tk-scope-api-client").ToolClient<
|
|
|
1019
1074
|
scopeType: string;
|
|
1020
1075
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
1021
1076
|
}>, {
|
|
1022
|
-
permissions: import("@ydtb/tk-scope-extension
|
|
1077
|
+
permissions: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
1023
1078
|
}>, import("zod").ZodObject<{
|
|
1024
1079
|
memberId: import("zod").ZodString;
|
|
1025
1080
|
roleId: import("zod").ZodString;
|
|
@@ -1056,7 +1111,7 @@ export declare const membersApi: import("@ydtb/tk-scope-api-client").ToolClient<
|
|
|
1056
1111
|
scopeId: string;
|
|
1057
1112
|
scopeType: string;
|
|
1058
1113
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
1059
|
-
permissions?: import("@ydtb/tk-scope-extension
|
|
1114
|
+
permissions?: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
1060
1115
|
} & Record<never, never>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<{
|
|
1061
1116
|
headers: Headers;
|
|
1062
1117
|
}, {
|
|
@@ -1078,7 +1133,7 @@ export declare const membersApi: import("@ydtb/tk-scope-api-client").ToolClient<
|
|
|
1078
1133
|
scopeType: string;
|
|
1079
1134
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
1080
1135
|
}>, {
|
|
1081
|
-
permissions: import("@ydtb/tk-scope-extension
|
|
1136
|
+
permissions: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
1082
1137
|
}>, import("zod").ZodObject<{
|
|
1083
1138
|
memberIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
1084
1139
|
addRoleIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
@@ -1126,7 +1181,7 @@ export declare const membersApi: import("@ydtb/tk-scope-api-client").ToolClient<
|
|
|
1126
1181
|
scopeId: string;
|
|
1127
1182
|
scopeType: string;
|
|
1128
1183
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
1129
|
-
permissions?: import("@ydtb/tk-scope-extension
|
|
1184
|
+
permissions?: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
1130
1185
|
} & Record<never, never>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<{
|
|
1131
1186
|
headers: Headers;
|
|
1132
1187
|
}, {
|
|
@@ -1148,7 +1203,7 @@ export declare const membersApi: import("@ydtb/tk-scope-api-client").ToolClient<
|
|
|
1148
1203
|
scopeType: string;
|
|
1149
1204
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
1150
1205
|
}>, {
|
|
1151
|
-
permissions: import("@ydtb/tk-scope-extension
|
|
1206
|
+
permissions: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
1152
1207
|
}>, import("zod").ZodObject<{
|
|
1153
1208
|
memberIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
1154
1209
|
}, import("zod/v4/core").$strip>, import("@orpc/contract").Schema<{
|
|
@@ -1186,7 +1241,7 @@ export declare const membersApi: import("@ydtb/tk-scope-api-client").ToolClient<
|
|
|
1186
1241
|
scopeId: string;
|
|
1187
1242
|
scopeType: string;
|
|
1188
1243
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
1189
|
-
permissions?: import("@ydtb/tk-scope-extension
|
|
1244
|
+
permissions?: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
1190
1245
|
} & Record<never, never>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<{
|
|
1191
1246
|
headers: Headers;
|
|
1192
1247
|
}, {
|
|
@@ -1208,7 +1263,7 @@ export declare const membersApi: import("@ydtb/tk-scope-api-client").ToolClient<
|
|
|
1208
1263
|
scopeType: string;
|
|
1209
1264
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
1210
1265
|
}>, {
|
|
1211
|
-
permissions: import("@ydtb/tk-scope-extension
|
|
1266
|
+
permissions: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
1212
1267
|
}>, import("zod").ZodObject<{}, import("zod/v4/core").$strip>, import("@orpc/contract").Schema<{
|
|
1213
1268
|
members: {
|
|
1214
1269
|
roles: {
|
|
@@ -1216,8 +1271,42 @@ export declare const membersApi: import("@ydtb/tk-scope-api-client").ToolClient<
|
|
|
1216
1271
|
name: string;
|
|
1217
1272
|
slug: string;
|
|
1218
1273
|
color: string | null;
|
|
1274
|
+
isSystem: boolean;
|
|
1275
|
+
isGuest: boolean;
|
|
1276
|
+
permissions: string[];
|
|
1219
1277
|
}[];
|
|
1220
1278
|
isParentMember: boolean;
|
|
1279
|
+
individualGrants: {
|
|
1280
|
+
id: string;
|
|
1281
|
+
permission: string;
|
|
1282
|
+
effect: "grant";
|
|
1283
|
+
grantedBy: string | null;
|
|
1284
|
+
grantedAt: string;
|
|
1285
|
+
}[];
|
|
1286
|
+
individualDenials: {
|
|
1287
|
+
id: string;
|
|
1288
|
+
permission: string;
|
|
1289
|
+
effect: "deny";
|
|
1290
|
+
grantedBy: string | null;
|
|
1291
|
+
grantedAt: string;
|
|
1292
|
+
}[];
|
|
1293
|
+
effectivePermissions: string[];
|
|
1294
|
+
customizedHere: boolean;
|
|
1295
|
+
localCustomization: {
|
|
1296
|
+
id: string;
|
|
1297
|
+
status: import("@ydtb/tk-scope-extension/db").LocalCustomizationStatus;
|
|
1298
|
+
sourceMemberId: string;
|
|
1299
|
+
sourceBindingId: string | null;
|
|
1300
|
+
createdAt: string;
|
|
1301
|
+
updatedAt: string;
|
|
1302
|
+
} | null;
|
|
1303
|
+
createdAt: string;
|
|
1304
|
+
accessSource: {
|
|
1305
|
+
type: "parent";
|
|
1306
|
+
scopeId: string | null;
|
|
1307
|
+
scope: string | null;
|
|
1308
|
+
name: string;
|
|
1309
|
+
};
|
|
1221
1310
|
id: string;
|
|
1222
1311
|
userId: string;
|
|
1223
1312
|
name: string;
|
|
@@ -1232,8 +1321,42 @@ export declare const membersApi: import("@ydtb/tk-scope-api-client").ToolClient<
|
|
|
1232
1321
|
name: string;
|
|
1233
1322
|
slug: string;
|
|
1234
1323
|
color: string | null;
|
|
1324
|
+
isSystem: boolean;
|
|
1325
|
+
isGuest: boolean;
|
|
1326
|
+
permissions: string[];
|
|
1235
1327
|
}[];
|
|
1236
1328
|
isParentMember: boolean;
|
|
1329
|
+
individualGrants: {
|
|
1330
|
+
id: string;
|
|
1331
|
+
permission: string;
|
|
1332
|
+
effect: "grant";
|
|
1333
|
+
grantedBy: string | null;
|
|
1334
|
+
grantedAt: string;
|
|
1335
|
+
}[];
|
|
1336
|
+
individualDenials: {
|
|
1337
|
+
id: string;
|
|
1338
|
+
permission: string;
|
|
1339
|
+
effect: "deny";
|
|
1340
|
+
grantedBy: string | null;
|
|
1341
|
+
grantedAt: string;
|
|
1342
|
+
}[];
|
|
1343
|
+
effectivePermissions: string[];
|
|
1344
|
+
customizedHere: boolean;
|
|
1345
|
+
localCustomization: {
|
|
1346
|
+
id: string;
|
|
1347
|
+
status: import("@ydtb/tk-scope-extension/db").LocalCustomizationStatus;
|
|
1348
|
+
sourceMemberId: string;
|
|
1349
|
+
sourceBindingId: string | null;
|
|
1350
|
+
createdAt: string;
|
|
1351
|
+
updatedAt: string;
|
|
1352
|
+
} | null;
|
|
1353
|
+
createdAt: string;
|
|
1354
|
+
accessSource: {
|
|
1355
|
+
type: "parent";
|
|
1356
|
+
scopeId: string | null;
|
|
1357
|
+
scope: string | null;
|
|
1358
|
+
name: string;
|
|
1359
|
+
};
|
|
1237
1360
|
id: string;
|
|
1238
1361
|
userId: string;
|
|
1239
1362
|
name: string;
|
|
@@ -1242,6 +1365,223 @@ export declare const membersApi: import("@ydtb/tk-scope-api-client").ToolClient<
|
|
|
1242
1365
|
tier: string;
|
|
1243
1366
|
}[];
|
|
1244
1367
|
}>, Record<never, never>, Record<never, never>>;
|
|
1368
|
+
updateBindingReach: import("@orpc/server").DecoratedProcedure<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<{
|
|
1369
|
+
headers: Headers;
|
|
1370
|
+
} & Record<never, never>, {
|
|
1371
|
+
headers: Headers;
|
|
1372
|
+
} & Record<never, never>, {
|
|
1373
|
+
headers: Headers;
|
|
1374
|
+
}>, {
|
|
1375
|
+
headers: Headers;
|
|
1376
|
+
user: {
|
|
1377
|
+
id: string;
|
|
1378
|
+
};
|
|
1379
|
+
scopeChain?: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
1380
|
+
} & Record<never, never>, import("@orpc/server").MergedCurrentContext<{
|
|
1381
|
+
headers: Headers;
|
|
1382
|
+
}, {
|
|
1383
|
+
headers: Headers;
|
|
1384
|
+
user: import("@ydtb/core-layer-auth").AuthUser;
|
|
1385
|
+
session: import("@ydtb/core-layer-auth").AuthSession;
|
|
1386
|
+
}>>, {
|
|
1387
|
+
user: {
|
|
1388
|
+
id: string;
|
|
1389
|
+
};
|
|
1390
|
+
session: {
|
|
1391
|
+
sessionId?: string;
|
|
1392
|
+
} & Record<string, unknown>;
|
|
1393
|
+
scopeId: string;
|
|
1394
|
+
scopeType: string;
|
|
1395
|
+
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
1396
|
+
permissions?: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
1397
|
+
} & Record<never, never>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<{
|
|
1398
|
+
headers: Headers;
|
|
1399
|
+
}, {
|
|
1400
|
+
headers: Headers;
|
|
1401
|
+
user: import("@ydtb/core-layer-auth").AuthUser;
|
|
1402
|
+
session: import("@ydtb/core-layer-auth").AuthSession;
|
|
1403
|
+
}>, {
|
|
1404
|
+
scopeId: string;
|
|
1405
|
+
scopeType: string;
|
|
1406
|
+
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
1407
|
+
}>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<{
|
|
1408
|
+
headers: Headers;
|
|
1409
|
+
}, {
|
|
1410
|
+
headers: Headers;
|
|
1411
|
+
user: import("@ydtb/core-layer-auth").AuthUser;
|
|
1412
|
+
session: import("@ydtb/core-layer-auth").AuthSession;
|
|
1413
|
+
}>, {
|
|
1414
|
+
scopeId: string;
|
|
1415
|
+
scopeType: string;
|
|
1416
|
+
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
1417
|
+
}>, {
|
|
1418
|
+
permissions: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
1419
|
+
}>, import("zod").ZodObject<{
|
|
1420
|
+
bindingId: import("zod").ZodString;
|
|
1421
|
+
reach: import("zod").ZodObject<{
|
|
1422
|
+
mode: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
1423
|
+
current: "current";
|
|
1424
|
+
all_descendants: "all_descendants";
|
|
1425
|
+
selected_descendants: "selected_descendants";
|
|
1426
|
+
all_except: "all_except";
|
|
1427
|
+
}>>;
|
|
1428
|
+
includeScopeIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
1429
|
+
excludeScopeIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
1430
|
+
}, import("zod/v4/core").$strip>;
|
|
1431
|
+
}, import("zod/v4/core").$strip>, import("@orpc/contract").Schema<{
|
|
1432
|
+
success: boolean;
|
|
1433
|
+
binding: import("@ydtb/tk-scope-extension").ScopedRoleBindingMutationResult;
|
|
1434
|
+
}, {
|
|
1435
|
+
success: boolean;
|
|
1436
|
+
binding: import("@ydtb/tk-scope-extension").ScopedRoleBindingMutationResult;
|
|
1437
|
+
}>, Record<never, never>, Record<never, never>>;
|
|
1438
|
+
customizeInheritedMember: import("@orpc/server").DecoratedProcedure<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<{
|
|
1439
|
+
headers: Headers;
|
|
1440
|
+
} & Record<never, never>, {
|
|
1441
|
+
headers: Headers;
|
|
1442
|
+
} & Record<never, never>, {
|
|
1443
|
+
headers: Headers;
|
|
1444
|
+
}>, {
|
|
1445
|
+
headers: Headers;
|
|
1446
|
+
user: {
|
|
1447
|
+
id: string;
|
|
1448
|
+
};
|
|
1449
|
+
scopeChain?: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
1450
|
+
} & Record<never, never>, import("@orpc/server").MergedCurrentContext<{
|
|
1451
|
+
headers: Headers;
|
|
1452
|
+
}, {
|
|
1453
|
+
headers: Headers;
|
|
1454
|
+
user: import("@ydtb/core-layer-auth").AuthUser;
|
|
1455
|
+
session: import("@ydtb/core-layer-auth").AuthSession;
|
|
1456
|
+
}>>, {
|
|
1457
|
+
user: {
|
|
1458
|
+
id: string;
|
|
1459
|
+
};
|
|
1460
|
+
session: {
|
|
1461
|
+
sessionId?: string;
|
|
1462
|
+
} & Record<string, unknown>;
|
|
1463
|
+
scopeId: string;
|
|
1464
|
+
scopeType: string;
|
|
1465
|
+
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
1466
|
+
permissions?: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
1467
|
+
} & Record<never, never>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<{
|
|
1468
|
+
headers: Headers;
|
|
1469
|
+
}, {
|
|
1470
|
+
headers: Headers;
|
|
1471
|
+
user: import("@ydtb/core-layer-auth").AuthUser;
|
|
1472
|
+
session: import("@ydtb/core-layer-auth").AuthSession;
|
|
1473
|
+
}>, {
|
|
1474
|
+
scopeId: string;
|
|
1475
|
+
scopeType: string;
|
|
1476
|
+
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
1477
|
+
}>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<{
|
|
1478
|
+
headers: Headers;
|
|
1479
|
+
}, {
|
|
1480
|
+
headers: Headers;
|
|
1481
|
+
user: import("@ydtb/core-layer-auth").AuthUser;
|
|
1482
|
+
session: import("@ydtb/core-layer-auth").AuthSession;
|
|
1483
|
+
}>, {
|
|
1484
|
+
scopeId: string;
|
|
1485
|
+
scopeType: string;
|
|
1486
|
+
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
1487
|
+
}>, {
|
|
1488
|
+
permissions: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
1489
|
+
}>, import("zod").ZodObject<{
|
|
1490
|
+
userId: import("zod").ZodString;
|
|
1491
|
+
sourceMemberId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1492
|
+
}, import("zod/v4/core").$strip>, import("@orpc/contract").Schema<{
|
|
1493
|
+
customization: {
|
|
1494
|
+
id: string;
|
|
1495
|
+
userId: string;
|
|
1496
|
+
sourceMemberId: string;
|
|
1497
|
+
sourceScope: string;
|
|
1498
|
+
sourceScopeId: string;
|
|
1499
|
+
sourceBindingId: string | null;
|
|
1500
|
+
status: import("@ydtb/tk-scope-extension/db").LocalCustomizationStatus;
|
|
1501
|
+
createdById: string | null;
|
|
1502
|
+
createdAt: string;
|
|
1503
|
+
updatedAt: string;
|
|
1504
|
+
deletedAt: string | null;
|
|
1505
|
+
sourceLostAt: string | null;
|
|
1506
|
+
};
|
|
1507
|
+
created: boolean;
|
|
1508
|
+
}, {
|
|
1509
|
+
customization: {
|
|
1510
|
+
id: string;
|
|
1511
|
+
userId: string;
|
|
1512
|
+
sourceMemberId: string;
|
|
1513
|
+
sourceScope: string;
|
|
1514
|
+
sourceScopeId: string;
|
|
1515
|
+
sourceBindingId: string | null;
|
|
1516
|
+
status: import("@ydtb/tk-scope-extension/db").LocalCustomizationStatus;
|
|
1517
|
+
createdById: string | null;
|
|
1518
|
+
createdAt: string;
|
|
1519
|
+
updatedAt: string;
|
|
1520
|
+
deletedAt: string | null;
|
|
1521
|
+
sourceLostAt: string | null;
|
|
1522
|
+
};
|
|
1523
|
+
created: boolean;
|
|
1524
|
+
}>, Record<never, never>, Record<never, never>>;
|
|
1525
|
+
revertLocalCustomization: import("@orpc/server").DecoratedProcedure<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<{
|
|
1526
|
+
headers: Headers;
|
|
1527
|
+
} & Record<never, never>, {
|
|
1528
|
+
headers: Headers;
|
|
1529
|
+
} & Record<never, never>, {
|
|
1530
|
+
headers: Headers;
|
|
1531
|
+
}>, {
|
|
1532
|
+
headers: Headers;
|
|
1533
|
+
user: {
|
|
1534
|
+
id: string;
|
|
1535
|
+
};
|
|
1536
|
+
scopeChain?: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
1537
|
+
} & Record<never, never>, import("@orpc/server").MergedCurrentContext<{
|
|
1538
|
+
headers: Headers;
|
|
1539
|
+
}, {
|
|
1540
|
+
headers: Headers;
|
|
1541
|
+
user: import("@ydtb/core-layer-auth").AuthUser;
|
|
1542
|
+
session: import("@ydtb/core-layer-auth").AuthSession;
|
|
1543
|
+
}>>, {
|
|
1544
|
+
user: {
|
|
1545
|
+
id: string;
|
|
1546
|
+
};
|
|
1547
|
+
session: {
|
|
1548
|
+
sessionId?: string;
|
|
1549
|
+
} & Record<string, unknown>;
|
|
1550
|
+
scopeId: string;
|
|
1551
|
+
scopeType: string;
|
|
1552
|
+
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
1553
|
+
permissions?: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
1554
|
+
} & Record<never, never>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<{
|
|
1555
|
+
headers: Headers;
|
|
1556
|
+
}, {
|
|
1557
|
+
headers: Headers;
|
|
1558
|
+
user: import("@ydtb/core-layer-auth").AuthUser;
|
|
1559
|
+
session: import("@ydtb/core-layer-auth").AuthSession;
|
|
1560
|
+
}>, {
|
|
1561
|
+
scopeId: string;
|
|
1562
|
+
scopeType: string;
|
|
1563
|
+
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
1564
|
+
}>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<{
|
|
1565
|
+
headers: Headers;
|
|
1566
|
+
}, {
|
|
1567
|
+
headers: Headers;
|
|
1568
|
+
user: import("@ydtb/core-layer-auth").AuthUser;
|
|
1569
|
+
session: import("@ydtb/core-layer-auth").AuthSession;
|
|
1570
|
+
}>, {
|
|
1571
|
+
scopeId: string;
|
|
1572
|
+
scopeType: string;
|
|
1573
|
+
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
1574
|
+
}>, {
|
|
1575
|
+
permissions: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
1576
|
+
}>, import("zod").ZodObject<{
|
|
1577
|
+
customizationId: import("zod").ZodString;
|
|
1578
|
+
}, import("zod/v4/core").$strip>, import("@orpc/contract").Schema<{
|
|
1579
|
+
success: boolean;
|
|
1580
|
+
customizationId: string;
|
|
1581
|
+
}, {
|
|
1582
|
+
success: boolean;
|
|
1583
|
+
customizationId: string;
|
|
1584
|
+
}>, Record<never, never>, Record<never, never>>;
|
|
1245
1585
|
}>;
|
|
1246
1586
|
export declare const rolesApi: import("@ydtb/tk-scope-api-client").ToolClient<{
|
|
1247
1587
|
list: import("@orpc/server").DecoratedProcedure<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<{
|
|
@@ -1272,7 +1612,7 @@ export declare const rolesApi: import("@ydtb/tk-scope-api-client").ToolClient<{
|
|
|
1272
1612
|
scopeId: string;
|
|
1273
1613
|
scopeType: string;
|
|
1274
1614
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
1275
|
-
permissions?: import("@ydtb/tk-scope-extension
|
|
1615
|
+
permissions?: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
1276
1616
|
} & Record<never, never>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<{
|
|
1277
1617
|
headers: Headers;
|
|
1278
1618
|
}, {
|
|
@@ -1294,7 +1634,7 @@ export declare const rolesApi: import("@ydtb/tk-scope-api-client").ToolClient<{
|
|
|
1294
1634
|
scopeType: string;
|
|
1295
1635
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
1296
1636
|
}>, {
|
|
1297
|
-
permissions: import("@ydtb/tk-scope-extension
|
|
1637
|
+
permissions: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
1298
1638
|
}>, import("zod").ZodObject<{}, import("zod/v4/core").$strip>, import("@orpc/contract").Schema<{
|
|
1299
1639
|
data: {
|
|
1300
1640
|
memberCount: number;
|
|
@@ -1372,7 +1712,7 @@ export declare const rolesApi: import("@ydtb/tk-scope-api-client").ToolClient<{
|
|
|
1372
1712
|
scopeId: string;
|
|
1373
1713
|
scopeType: string;
|
|
1374
1714
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
1375
|
-
permissions?: import("@ydtb/tk-scope-extension
|
|
1715
|
+
permissions?: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
1376
1716
|
} & Record<never, never>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<{
|
|
1377
1717
|
headers: Headers;
|
|
1378
1718
|
}, {
|
|
@@ -1394,7 +1734,7 @@ export declare const rolesApi: import("@ydtb/tk-scope-api-client").ToolClient<{
|
|
|
1394
1734
|
scopeType: string;
|
|
1395
1735
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
1396
1736
|
}>, {
|
|
1397
|
-
permissions: import("@ydtb/tk-scope-extension
|
|
1737
|
+
permissions: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
1398
1738
|
}>, import("zod").ZodObject<{
|
|
1399
1739
|
id: import("zod").ZodString;
|
|
1400
1740
|
}, import("zod/v4/core").$strip>, import("@orpc/contract").Schema<{
|
|
@@ -1492,7 +1832,7 @@ export declare const rolesApi: import("@ydtb/tk-scope-api-client").ToolClient<{
|
|
|
1492
1832
|
scopeId: string;
|
|
1493
1833
|
scopeType: string;
|
|
1494
1834
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
1495
|
-
permissions?: import("@ydtb/tk-scope-extension
|
|
1835
|
+
permissions?: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
1496
1836
|
} & Record<never, never>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<{
|
|
1497
1837
|
headers: Headers;
|
|
1498
1838
|
}, {
|
|
@@ -1514,7 +1854,7 @@ export declare const rolesApi: import("@ydtb/tk-scope-api-client").ToolClient<{
|
|
|
1514
1854
|
scopeType: string;
|
|
1515
1855
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
1516
1856
|
}>, {
|
|
1517
|
-
permissions: import("@ydtb/tk-scope-extension
|
|
1857
|
+
permissions: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
1518
1858
|
}>, import("zod").ZodObject<{
|
|
1519
1859
|
name: import("zod").ZodString;
|
|
1520
1860
|
slug: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -1532,14 +1872,11 @@ export declare const rolesApi: import("@ydtb/tk-scope-api-client").ToolClient<{
|
|
|
1532
1872
|
displayOrder: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1533
1873
|
}, import("zod/v4/core").$strip>, import("@orpc/contract").Schema<{
|
|
1534
1874
|
role: {
|
|
1875
|
+
deletedAt: Date | null;
|
|
1876
|
+
scopeId: string;
|
|
1535
1877
|
id: string;
|
|
1536
1878
|
name: string;
|
|
1537
|
-
scope: string;
|
|
1538
1879
|
slug: string;
|
|
1539
|
-
createdAt: Date;
|
|
1540
|
-
updatedAt: Date;
|
|
1541
|
-
scopeId: string;
|
|
1542
|
-
createdById: string | null;
|
|
1543
1880
|
description: string | null;
|
|
1544
1881
|
permissions: import("@ydtb/tk-scope-extension/db").RolePermissionEntry[];
|
|
1545
1882
|
isSystem: boolean;
|
|
@@ -1549,18 +1886,18 @@ export declare const rolesApi: import("@ydtb/tk-scope-api-client").ToolClient<{
|
|
|
1549
1886
|
allChildScopes: boolean;
|
|
1550
1887
|
color: string | null;
|
|
1551
1888
|
displayOrder: number;
|
|
1552
|
-
|
|
1889
|
+
createdById: string | null;
|
|
1890
|
+
createdAt: Date;
|
|
1891
|
+
updatedAt: Date;
|
|
1892
|
+
scope: string;
|
|
1553
1893
|
};
|
|
1554
1894
|
}, {
|
|
1555
1895
|
role: {
|
|
1896
|
+
deletedAt: Date | null;
|
|
1897
|
+
scopeId: string;
|
|
1556
1898
|
id: string;
|
|
1557
1899
|
name: string;
|
|
1558
|
-
scope: string;
|
|
1559
1900
|
slug: string;
|
|
1560
|
-
createdAt: Date;
|
|
1561
|
-
updatedAt: Date;
|
|
1562
|
-
scopeId: string;
|
|
1563
|
-
createdById: string | null;
|
|
1564
1901
|
description: string | null;
|
|
1565
1902
|
permissions: import("@ydtb/tk-scope-extension/db").RolePermissionEntry[];
|
|
1566
1903
|
isSystem: boolean;
|
|
@@ -1570,7 +1907,10 @@ export declare const rolesApi: import("@ydtb/tk-scope-api-client").ToolClient<{
|
|
|
1570
1907
|
allChildScopes: boolean;
|
|
1571
1908
|
color: string | null;
|
|
1572
1909
|
displayOrder: number;
|
|
1573
|
-
|
|
1910
|
+
createdById: string | null;
|
|
1911
|
+
createdAt: Date;
|
|
1912
|
+
updatedAt: Date;
|
|
1913
|
+
scope: string;
|
|
1574
1914
|
};
|
|
1575
1915
|
}>, Record<never, never>, Record<never, never>>;
|
|
1576
1916
|
update: import("@orpc/server").DecoratedProcedure<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<{
|
|
@@ -1601,7 +1941,7 @@ export declare const rolesApi: import("@ydtb/tk-scope-api-client").ToolClient<{
|
|
|
1601
1941
|
scopeId: string;
|
|
1602
1942
|
scopeType: string;
|
|
1603
1943
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
1604
|
-
permissions?: import("@ydtb/tk-scope-extension
|
|
1944
|
+
permissions?: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
1605
1945
|
} & Record<never, never>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<{
|
|
1606
1946
|
headers: Headers;
|
|
1607
1947
|
}, {
|
|
@@ -1623,7 +1963,7 @@ export declare const rolesApi: import("@ydtb/tk-scope-api-client").ToolClient<{
|
|
|
1623
1963
|
scopeType: string;
|
|
1624
1964
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
1625
1965
|
}>, {
|
|
1626
|
-
permissions: import("@ydtb/tk-scope-extension
|
|
1966
|
+
permissions: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
1627
1967
|
}>, import("zod").ZodObject<{
|
|
1628
1968
|
id: import("zod").ZodString;
|
|
1629
1969
|
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -1711,7 +2051,7 @@ export declare const rolesApi: import("@ydtb/tk-scope-api-client").ToolClient<{
|
|
|
1711
2051
|
scopeId: string;
|
|
1712
2052
|
scopeType: string;
|
|
1713
2053
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
1714
|
-
permissions?: import("@ydtb/tk-scope-extension
|
|
2054
|
+
permissions?: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
1715
2055
|
} & Record<never, never>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<{
|
|
1716
2056
|
headers: Headers;
|
|
1717
2057
|
}, {
|
|
@@ -1733,7 +2073,7 @@ export declare const rolesApi: import("@ydtb/tk-scope-api-client").ToolClient<{
|
|
|
1733
2073
|
scopeType: string;
|
|
1734
2074
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
1735
2075
|
}>, {
|
|
1736
|
-
permissions: import("@ydtb/tk-scope-extension
|
|
2076
|
+
permissions: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
1737
2077
|
}>, import("zod").ZodObject<{
|
|
1738
2078
|
id: import("zod").ZodString;
|
|
1739
2079
|
}, import("zod/v4/core").$strip>, import("@orpc/contract").Schema<{
|
|
@@ -1769,7 +2109,7 @@ export declare const rolesApi: import("@ydtb/tk-scope-api-client").ToolClient<{
|
|
|
1769
2109
|
scopeId: string;
|
|
1770
2110
|
scopeType: string;
|
|
1771
2111
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
1772
|
-
permissions?: import("@ydtb/tk-scope-extension
|
|
2112
|
+
permissions?: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
1773
2113
|
} & Record<never, never>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<{
|
|
1774
2114
|
headers: Headers;
|
|
1775
2115
|
}, {
|
|
@@ -1791,20 +2131,17 @@ export declare const rolesApi: import("@ydtb/tk-scope-api-client").ToolClient<{
|
|
|
1791
2131
|
scopeType: string;
|
|
1792
2132
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
1793
2133
|
}>, {
|
|
1794
|
-
permissions: import("@ydtb/tk-scope-extension
|
|
2134
|
+
permissions: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
1795
2135
|
}>, import("zod").ZodObject<{
|
|
1796
2136
|
id: import("zod").ZodString;
|
|
1797
2137
|
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1798
2138
|
}, import("zod/v4/core").$strip>, import("@orpc/contract").Schema<{
|
|
1799
2139
|
role: {
|
|
2140
|
+
deletedAt: Date | null;
|
|
2141
|
+
scopeId: string;
|
|
1800
2142
|
id: string;
|
|
1801
2143
|
name: string;
|
|
1802
|
-
scope: string;
|
|
1803
2144
|
slug: string;
|
|
1804
|
-
createdAt: Date;
|
|
1805
|
-
updatedAt: Date;
|
|
1806
|
-
scopeId: string;
|
|
1807
|
-
createdById: string | null;
|
|
1808
2145
|
description: string | null;
|
|
1809
2146
|
permissions: import("@ydtb/tk-scope-extension/db").RolePermissionEntry[];
|
|
1810
2147
|
isSystem: boolean;
|
|
@@ -1814,18 +2151,18 @@ export declare const rolesApi: import("@ydtb/tk-scope-api-client").ToolClient<{
|
|
|
1814
2151
|
allChildScopes: boolean;
|
|
1815
2152
|
color: string | null;
|
|
1816
2153
|
displayOrder: number;
|
|
1817
|
-
|
|
2154
|
+
createdById: string | null;
|
|
2155
|
+
createdAt: Date;
|
|
2156
|
+
updatedAt: Date;
|
|
2157
|
+
scope: string;
|
|
1818
2158
|
};
|
|
1819
2159
|
}, {
|
|
1820
2160
|
role: {
|
|
2161
|
+
deletedAt: Date | null;
|
|
2162
|
+
scopeId: string;
|
|
1821
2163
|
id: string;
|
|
1822
2164
|
name: string;
|
|
1823
|
-
scope: string;
|
|
1824
2165
|
slug: string;
|
|
1825
|
-
createdAt: Date;
|
|
1826
|
-
updatedAt: Date;
|
|
1827
|
-
scopeId: string;
|
|
1828
|
-
createdById: string | null;
|
|
1829
2166
|
description: string | null;
|
|
1830
2167
|
permissions: import("@ydtb/tk-scope-extension/db").RolePermissionEntry[];
|
|
1831
2168
|
isSystem: boolean;
|
|
@@ -1835,7 +2172,10 @@ export declare const rolesApi: import("@ydtb/tk-scope-api-client").ToolClient<{
|
|
|
1835
2172
|
allChildScopes: boolean;
|
|
1836
2173
|
color: string | null;
|
|
1837
2174
|
displayOrder: number;
|
|
1838
|
-
|
|
2175
|
+
createdById: string | null;
|
|
2176
|
+
createdAt: Date;
|
|
2177
|
+
updatedAt: Date;
|
|
2178
|
+
scope: string;
|
|
1839
2179
|
};
|
|
1840
2180
|
}>, Record<never, never>, Record<never, never>>;
|
|
1841
2181
|
addMember: import("@orpc/server").DecoratedProcedure<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<{
|
|
@@ -1866,7 +2206,7 @@ export declare const rolesApi: import("@ydtb/tk-scope-api-client").ToolClient<{
|
|
|
1866
2206
|
scopeId: string;
|
|
1867
2207
|
scopeType: string;
|
|
1868
2208
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
1869
|
-
permissions?: import("@ydtb/tk-scope-extension
|
|
2209
|
+
permissions?: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
1870
2210
|
} & Record<never, never>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<{
|
|
1871
2211
|
headers: Headers;
|
|
1872
2212
|
}, {
|
|
@@ -1888,7 +2228,7 @@ export declare const rolesApi: import("@ydtb/tk-scope-api-client").ToolClient<{
|
|
|
1888
2228
|
scopeType: string;
|
|
1889
2229
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
1890
2230
|
}>, {
|
|
1891
|
-
permissions: import("@ydtb/tk-scope-extension
|
|
2231
|
+
permissions: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
1892
2232
|
}>, import("zod").ZodObject<{
|
|
1893
2233
|
roleId: import("zod").ZodString;
|
|
1894
2234
|
memberId: import("zod").ZodString;
|
|
@@ -1927,7 +2267,7 @@ export declare const rolesApi: import("@ydtb/tk-scope-api-client").ToolClient<{
|
|
|
1927
2267
|
scopeId: string;
|
|
1928
2268
|
scopeType: string;
|
|
1929
2269
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
1930
|
-
permissions?: import("@ydtb/tk-scope-extension
|
|
2270
|
+
permissions?: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
1931
2271
|
} & Record<never, never>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<{
|
|
1932
2272
|
headers: Headers;
|
|
1933
2273
|
}, {
|
|
@@ -1949,7 +2289,7 @@ export declare const rolesApi: import("@ydtb/tk-scope-api-client").ToolClient<{
|
|
|
1949
2289
|
scopeType: string;
|
|
1950
2290
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
1951
2291
|
}>, {
|
|
1952
|
-
permissions: import("@ydtb/tk-scope-extension
|
|
2292
|
+
permissions: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
1953
2293
|
}>, import("zod").ZodObject<{
|
|
1954
2294
|
roleId: import("zod").ZodString;
|
|
1955
2295
|
memberId: import("zod").ZodString;
|
|
@@ -1988,7 +2328,7 @@ export declare const invitationsApi: import("@ydtb/tk-scope-api-client").ToolCli
|
|
|
1988
2328
|
scopeId: string;
|
|
1989
2329
|
scopeType: string;
|
|
1990
2330
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
1991
|
-
permissions?: import("@ydtb/tk-scope-extension
|
|
2331
|
+
permissions?: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
1992
2332
|
} & Record<never, never>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<{
|
|
1993
2333
|
headers: Headers;
|
|
1994
2334
|
}, {
|
|
@@ -2010,36 +2350,120 @@ export declare const invitationsApi: import("@ydtb/tk-scope-api-client").ToolCli
|
|
|
2010
2350
|
scopeType: string;
|
|
2011
2351
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
2012
2352
|
}>, {
|
|
2013
|
-
permissions: import("@ydtb/tk-scope-extension
|
|
2353
|
+
permissions: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
2014
2354
|
}>, import("zod").ZodObject<{
|
|
2015
2355
|
scopeId: import("zod").ZodString;
|
|
2016
2356
|
email: import("zod").ZodString;
|
|
2017
2357
|
role: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2018
2358
|
roleId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2359
|
+
reach: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
2360
|
+
mode: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
2361
|
+
current: "current";
|
|
2362
|
+
all_descendants: "all_descendants";
|
|
2363
|
+
selected_descendants: "selected_descendants";
|
|
2364
|
+
all_except: "all_except";
|
|
2365
|
+
}>>;
|
|
2366
|
+
includeScopeIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
2367
|
+
excludeScopeIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
2368
|
+
}, import("zod/v4/core").$strip>>;
|
|
2019
2369
|
}, import("zod/v4/core").$strip>, import("@orpc/contract").Schema<{
|
|
2370
|
+
invitation: null;
|
|
2371
|
+
alreadyMember: boolean;
|
|
2372
|
+
member: {
|
|
2373
|
+
id: string;
|
|
2374
|
+
scopeId: string;
|
|
2375
|
+
userId: string;
|
|
2376
|
+
};
|
|
2377
|
+
bindingDraft: {
|
|
2378
|
+
roleId: string;
|
|
2379
|
+
reach: import("@ydtb/tk-scope-extension").NormalizedRoleBindingReach | null;
|
|
2380
|
+
} | null;
|
|
2381
|
+
alreadyHasAccess?: undefined;
|
|
2382
|
+
accessSource?: undefined;
|
|
2383
|
+
} | {
|
|
2384
|
+
invitation: null;
|
|
2385
|
+
alreadyMember: boolean;
|
|
2386
|
+
alreadyHasAccess: boolean;
|
|
2387
|
+
member: {
|
|
2388
|
+
id: string;
|
|
2389
|
+
scopeId: string;
|
|
2390
|
+
userId: string;
|
|
2391
|
+
role: string;
|
|
2392
|
+
};
|
|
2393
|
+
accessSource: {
|
|
2394
|
+
type: "parent";
|
|
2395
|
+
scopeId: string;
|
|
2396
|
+
scope: string | null;
|
|
2397
|
+
name: string;
|
|
2398
|
+
};
|
|
2399
|
+
bindingDraft: null;
|
|
2400
|
+
} | {
|
|
2020
2401
|
invitation: {
|
|
2021
|
-
|
|
2402
|
+
scopeId: string;
|
|
2022
2403
|
id: string;
|
|
2404
|
+
roleId: string | null;
|
|
2405
|
+
role: string;
|
|
2023
2406
|
createdAt: Date;
|
|
2024
|
-
scopeId: string;
|
|
2025
2407
|
email: string;
|
|
2026
|
-
|
|
2408
|
+
status: string;
|
|
2027
2409
|
inviterId: string | null;
|
|
2028
|
-
|
|
2410
|
+
bindingReach: import("@ydtb/tk-scope-extension/db").ScopeInvitationBindingReach | null;
|
|
2029
2411
|
expiresAt: Date | null;
|
|
2030
2412
|
};
|
|
2413
|
+
alreadyMember?: undefined;
|
|
2414
|
+
member?: undefined;
|
|
2415
|
+
bindingDraft?: undefined;
|
|
2416
|
+
alreadyHasAccess?: undefined;
|
|
2417
|
+
accessSource?: undefined;
|
|
2031
2418
|
}, {
|
|
2419
|
+
invitation: null;
|
|
2420
|
+
alreadyMember: boolean;
|
|
2421
|
+
member: {
|
|
2422
|
+
id: string;
|
|
2423
|
+
scopeId: string;
|
|
2424
|
+
userId: string;
|
|
2425
|
+
};
|
|
2426
|
+
bindingDraft: {
|
|
2427
|
+
roleId: string;
|
|
2428
|
+
reach: import("@ydtb/tk-scope-extension").NormalizedRoleBindingReach | null;
|
|
2429
|
+
} | null;
|
|
2430
|
+
alreadyHasAccess?: undefined;
|
|
2431
|
+
accessSource?: undefined;
|
|
2432
|
+
} | {
|
|
2433
|
+
invitation: null;
|
|
2434
|
+
alreadyMember: boolean;
|
|
2435
|
+
alreadyHasAccess: boolean;
|
|
2436
|
+
member: {
|
|
2437
|
+
id: string;
|
|
2438
|
+
scopeId: string;
|
|
2439
|
+
userId: string;
|
|
2440
|
+
role: string;
|
|
2441
|
+
};
|
|
2442
|
+
accessSource: {
|
|
2443
|
+
type: "parent";
|
|
2444
|
+
scopeId: string;
|
|
2445
|
+
scope: string | null;
|
|
2446
|
+
name: string;
|
|
2447
|
+
};
|
|
2448
|
+
bindingDraft: null;
|
|
2449
|
+
} | {
|
|
2032
2450
|
invitation: {
|
|
2033
|
-
|
|
2451
|
+
scopeId: string;
|
|
2034
2452
|
id: string;
|
|
2453
|
+
roleId: string | null;
|
|
2454
|
+
role: string;
|
|
2035
2455
|
createdAt: Date;
|
|
2036
|
-
scopeId: string;
|
|
2037
2456
|
email: string;
|
|
2038
|
-
|
|
2457
|
+
status: string;
|
|
2039
2458
|
inviterId: string | null;
|
|
2040
|
-
|
|
2459
|
+
bindingReach: import("@ydtb/tk-scope-extension/db").ScopeInvitationBindingReach | null;
|
|
2041
2460
|
expiresAt: Date | null;
|
|
2042
2461
|
};
|
|
2462
|
+
alreadyMember?: undefined;
|
|
2463
|
+
member?: undefined;
|
|
2464
|
+
bindingDraft?: undefined;
|
|
2465
|
+
alreadyHasAccess?: undefined;
|
|
2466
|
+
accessSource?: undefined;
|
|
2043
2467
|
}>, Record<never, never>, Record<never, never>>;
|
|
2044
2468
|
list: import("@orpc/server").DecoratedProcedure<import("@orpc/server").MergedInitialContext<{
|
|
2045
2469
|
headers: Headers;
|
|
@@ -2104,7 +2528,7 @@ export declare const invitationsApi: import("@ydtb/tk-scope-api-client").ToolCli
|
|
|
2104
2528
|
scopeId: string;
|
|
2105
2529
|
scopeType: string;
|
|
2106
2530
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
2107
|
-
permissions?: import("@ydtb/tk-scope-extension
|
|
2531
|
+
permissions?: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
2108
2532
|
} & Record<never, never>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<{
|
|
2109
2533
|
headers: Headers;
|
|
2110
2534
|
}, {
|
|
@@ -2126,7 +2550,7 @@ export declare const invitationsApi: import("@ydtb/tk-scope-api-client").ToolCli
|
|
|
2126
2550
|
scopeType: string;
|
|
2127
2551
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
2128
2552
|
}>, {
|
|
2129
|
-
permissions: import("@ydtb/tk-scope-extension
|
|
2553
|
+
permissions: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
2130
2554
|
}>, import("zod").ZodObject<{
|
|
2131
2555
|
scopeId: import("zod").ZodString;
|
|
2132
2556
|
}, import("zod/v4/core").$strip>, import("@orpc/contract").Schema<{
|
|
@@ -2140,6 +2564,7 @@ export declare const invitationsApi: import("@ydtb/tk-scope-api-client").ToolCli
|
|
|
2140
2564
|
slug: string;
|
|
2141
2565
|
color: string | null;
|
|
2142
2566
|
} | null;
|
|
2567
|
+
reach: import("@ydtb/tk-scope-extension/db").ScopeInvitationBindingReach | null;
|
|
2143
2568
|
status: "pending" | "expired";
|
|
2144
2569
|
invitedBy: {
|
|
2145
2570
|
id: string;
|
|
@@ -2159,6 +2584,7 @@ export declare const invitationsApi: import("@ydtb/tk-scope-api-client").ToolCli
|
|
|
2159
2584
|
slug: string;
|
|
2160
2585
|
color: string | null;
|
|
2161
2586
|
} | null;
|
|
2587
|
+
reach: import("@ydtb/tk-scope-extension/db").ScopeInvitationBindingReach | null;
|
|
2162
2588
|
status: "pending" | "expired";
|
|
2163
2589
|
invitedBy: {
|
|
2164
2590
|
id: string;
|
|
@@ -2190,6 +2616,8 @@ export declare const invitationsApi: import("@ydtb/tk-scope-api-client").ToolCli
|
|
|
2190
2616
|
inviterEmail: string;
|
|
2191
2617
|
email: string;
|
|
2192
2618
|
role: string;
|
|
2619
|
+
roleId: string | null;
|
|
2620
|
+
reach: import("@ydtb/tk-scope-extension/db").ScopeInvitationBindingReach | null;
|
|
2193
2621
|
status: string;
|
|
2194
2622
|
createdAt: Date;
|
|
2195
2623
|
}, {
|
|
@@ -2200,6 +2628,8 @@ export declare const invitationsApi: import("@ydtb/tk-scope-api-client").ToolCli
|
|
|
2200
2628
|
inviterEmail: string;
|
|
2201
2629
|
email: string;
|
|
2202
2630
|
role: string;
|
|
2631
|
+
roleId: string | null;
|
|
2632
|
+
reach: import("@ydtb/tk-scope-extension/db").ScopeInvitationBindingReach | null;
|
|
2203
2633
|
status: string;
|
|
2204
2634
|
createdAt: Date;
|
|
2205
2635
|
}>, Record<never, never>, Record<never, never>>;
|
|
@@ -2237,11 +2667,11 @@ export declare const invitationsApi: import("@ydtb/tk-scope-api-client").ToolCli
|
|
|
2237
2667
|
updatedAt: Date;
|
|
2238
2668
|
} | undefined;
|
|
2239
2669
|
member: {
|
|
2670
|
+
scopeId: string;
|
|
2240
2671
|
id: string;
|
|
2672
|
+
role: string;
|
|
2241
2673
|
createdAt: Date;
|
|
2242
|
-
scopeId: string;
|
|
2243
2674
|
userId: string;
|
|
2244
|
-
role: string;
|
|
2245
2675
|
};
|
|
2246
2676
|
alreadyMember: boolean;
|
|
2247
2677
|
}, {
|
|
@@ -2264,11 +2694,11 @@ export declare const invitationsApi: import("@ydtb/tk-scope-api-client").ToolCli
|
|
|
2264
2694
|
updatedAt: Date;
|
|
2265
2695
|
} | undefined;
|
|
2266
2696
|
member: {
|
|
2697
|
+
scopeId: string;
|
|
2267
2698
|
id: string;
|
|
2699
|
+
role: string;
|
|
2268
2700
|
createdAt: Date;
|
|
2269
|
-
scopeId: string;
|
|
2270
2701
|
userId: string;
|
|
2271
|
-
role: string;
|
|
2272
2702
|
};
|
|
2273
2703
|
alreadyMember: boolean;
|
|
2274
2704
|
}>, Record<never, never>, Record<never, never>>;
|
|
@@ -2319,7 +2749,7 @@ export declare const invitationsApi: import("@ydtb/tk-scope-api-client").ToolCli
|
|
|
2319
2749
|
scopeId: string;
|
|
2320
2750
|
scopeType: string;
|
|
2321
2751
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
2322
|
-
permissions?: import("@ydtb/tk-scope-extension
|
|
2752
|
+
permissions?: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
2323
2753
|
} & Record<never, never>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<{
|
|
2324
2754
|
headers: Headers;
|
|
2325
2755
|
}, {
|
|
@@ -2341,7 +2771,7 @@ export declare const invitationsApi: import("@ydtb/tk-scope-api-client").ToolCli
|
|
|
2341
2771
|
scopeType: string;
|
|
2342
2772
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
2343
2773
|
}>, {
|
|
2344
|
-
permissions: import("@ydtb/tk-scope-extension
|
|
2774
|
+
permissions: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
2345
2775
|
}>, import("zod").ZodObject<{
|
|
2346
2776
|
invitationId: import("zod").ZodString;
|
|
2347
2777
|
}, import("zod/v4/core").$strip>, import("@orpc/contract").Schema<{
|
|
@@ -2377,7 +2807,7 @@ export declare const invitationsApi: import("@ydtb/tk-scope-api-client").ToolCli
|
|
|
2377
2807
|
scopeId: string;
|
|
2378
2808
|
scopeType: string;
|
|
2379
2809
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
2380
|
-
permissions?: import("@ydtb/tk-scope-extension
|
|
2810
|
+
permissions?: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
2381
2811
|
} & Record<never, never>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<{
|
|
2382
2812
|
headers: Headers;
|
|
2383
2813
|
}, {
|
|
@@ -2399,7 +2829,7 @@ export declare const invitationsApi: import("@ydtb/tk-scope-api-client").ToolCli
|
|
|
2399
2829
|
scopeType: string;
|
|
2400
2830
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
2401
2831
|
}>, {
|
|
2402
|
-
permissions: import("@ydtb/tk-scope-extension
|
|
2832
|
+
permissions: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
2403
2833
|
}>, import("zod").ZodObject<{
|
|
2404
2834
|
invitationId: import("zod").ZodString;
|
|
2405
2835
|
expiresInHours: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
@@ -2440,7 +2870,7 @@ export declare const joinCodesApi: import("@ydtb/tk-scope-api-client").ToolClien
|
|
|
2440
2870
|
scopeId: string;
|
|
2441
2871
|
scopeType: string;
|
|
2442
2872
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
2443
|
-
permissions?: import("@ydtb/tk-scope-extension
|
|
2873
|
+
permissions?: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
2444
2874
|
} & Record<never, never>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<{
|
|
2445
2875
|
headers: Headers;
|
|
2446
2876
|
}, {
|
|
@@ -2462,34 +2892,34 @@ export declare const joinCodesApi: import("@ydtb/tk-scope-api-client").ToolClien
|
|
|
2462
2892
|
scopeType: string;
|
|
2463
2893
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
2464
2894
|
}>, {
|
|
2465
|
-
permissions: import("@ydtb/tk-scope-extension
|
|
2895
|
+
permissions: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
2466
2896
|
}>, import("zod").ZodObject<{
|
|
2467
2897
|
scopeId: import("zod").ZodString;
|
|
2468
2898
|
label: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2469
2899
|
expiresAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2470
2900
|
}, import("zod/v4/core").$strip>, import("@orpc/contract").Schema<{
|
|
2471
2901
|
joinCode: {
|
|
2472
|
-
|
|
2902
|
+
scopeId: string;
|
|
2473
2903
|
id: string;
|
|
2904
|
+
createdById: string | null;
|
|
2474
2905
|
createdAt: Date;
|
|
2475
|
-
|
|
2906
|
+
status: string;
|
|
2476
2907
|
expiresAt: Date | null;
|
|
2477
2908
|
code: string;
|
|
2478
2909
|
label: string | null;
|
|
2479
|
-
createdById: string | null;
|
|
2480
2910
|
usedBy: string | null;
|
|
2481
2911
|
usedAt: Date | null;
|
|
2482
2912
|
} | undefined;
|
|
2483
2913
|
}, {
|
|
2484
2914
|
joinCode: {
|
|
2485
|
-
|
|
2915
|
+
scopeId: string;
|
|
2486
2916
|
id: string;
|
|
2917
|
+
createdById: string | null;
|
|
2487
2918
|
createdAt: Date;
|
|
2488
|
-
|
|
2919
|
+
status: string;
|
|
2489
2920
|
expiresAt: Date | null;
|
|
2490
2921
|
code: string;
|
|
2491
2922
|
label: string | null;
|
|
2492
|
-
createdById: string | null;
|
|
2493
2923
|
usedBy: string | null;
|
|
2494
2924
|
usedAt: Date | null;
|
|
2495
2925
|
} | undefined;
|
|
@@ -2522,7 +2952,7 @@ export declare const joinCodesApi: import("@ydtb/tk-scope-api-client").ToolClien
|
|
|
2522
2952
|
scopeId: string;
|
|
2523
2953
|
scopeType: string;
|
|
2524
2954
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
2525
|
-
permissions?: import("@ydtb/tk-scope-extension
|
|
2955
|
+
permissions?: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
2526
2956
|
} & Record<never, never>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<{
|
|
2527
2957
|
headers: Headers;
|
|
2528
2958
|
}, {
|
|
@@ -2544,7 +2974,7 @@ export declare const joinCodesApi: import("@ydtb/tk-scope-api-client").ToolClien
|
|
|
2544
2974
|
scopeType: string;
|
|
2545
2975
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
2546
2976
|
}>, {
|
|
2547
|
-
permissions: import("@ydtb/tk-scope-extension
|
|
2977
|
+
permissions: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
2548
2978
|
}>, import("zod").ZodObject<{
|
|
2549
2979
|
scopeId: import("zod").ZodString;
|
|
2550
2980
|
}, import("zod/v4/core").$strip>, import("@orpc/contract").Schema<{
|
|
@@ -2659,7 +3089,7 @@ export declare const joinCodesApi: import("@ydtb/tk-scope-api-client").ToolClien
|
|
|
2659
3089
|
scopeId: string;
|
|
2660
3090
|
scopeType: string;
|
|
2661
3091
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
2662
|
-
permissions?: import("@ydtb/tk-scope-extension
|
|
3092
|
+
permissions?: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
2663
3093
|
} & Record<never, never>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<{
|
|
2664
3094
|
headers: Headers;
|
|
2665
3095
|
}, {
|
|
@@ -2681,7 +3111,7 @@ export declare const joinCodesApi: import("@ydtb/tk-scope-api-client").ToolClien
|
|
|
2681
3111
|
scopeType: string;
|
|
2682
3112
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
2683
3113
|
}>, {
|
|
2684
|
-
permissions: import("@ydtb/tk-scope-extension
|
|
3114
|
+
permissions: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
2685
3115
|
}>, import("zod").ZodObject<{
|
|
2686
3116
|
joinCodeId: import("zod").ZodString;
|
|
2687
3117
|
}, import("zod/v4/core").$strip>, import("@orpc/contract").Schema<{
|
|
@@ -2796,8 +3226,8 @@ export declare const permissionsApi: import("@ydtb/tk-scope-api-client").ToolCli
|
|
|
2796
3226
|
memberId: import("zod").ZodString;
|
|
2797
3227
|
parentScopeId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2798
3228
|
}, import("zod/v4/core").$strip>, import("@orpc/contract").Schema<{
|
|
2799
|
-
tier: import("@ydtb/tk-scope-extension
|
|
2800
|
-
roles: import("@ydtb/tk-scope-extension
|
|
3229
|
+
tier: import("@ydtb/tk-scope-extension").MemberTier;
|
|
3230
|
+
roles: import("@ydtb/tk-scope-extension").ResolvedRole[];
|
|
2801
3231
|
individualGrants: string[];
|
|
2802
3232
|
individualDenials: string[];
|
|
2803
3233
|
effectivePermissions: string[];
|
|
@@ -2805,8 +3235,8 @@ export declare const permissionsApi: import("@ydtb/tk-scope-api-client").ToolCli
|
|
|
2805
3235
|
denialSources: Record<string, string[]>;
|
|
2806
3236
|
roleColors: Record<string, string>;
|
|
2807
3237
|
}, {
|
|
2808
|
-
tier: import("@ydtb/tk-scope-extension
|
|
2809
|
-
roles: import("@ydtb/tk-scope-extension
|
|
3238
|
+
tier: import("@ydtb/tk-scope-extension").MemberTier;
|
|
3239
|
+
roles: import("@ydtb/tk-scope-extension").ResolvedRole[];
|
|
2810
3240
|
individualGrants: string[];
|
|
2811
3241
|
individualDenials: string[];
|
|
2812
3242
|
effectivePermissions: string[];
|
|
@@ -2842,7 +3272,7 @@ export declare const permissionsApi: import("@ydtb/tk-scope-api-client").ToolCli
|
|
|
2842
3272
|
scopeId: string;
|
|
2843
3273
|
scopeType: string;
|
|
2844
3274
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
2845
|
-
permissions?: import("@ydtb/tk-scope-extension
|
|
3275
|
+
permissions?: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
2846
3276
|
} & Record<never, never>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<{
|
|
2847
3277
|
headers: Headers;
|
|
2848
3278
|
}, {
|
|
@@ -2864,9 +3294,10 @@ export declare const permissionsApi: import("@ydtb/tk-scope-api-client").ToolCli
|
|
|
2864
3294
|
scopeType: string;
|
|
2865
3295
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
2866
3296
|
}>, {
|
|
2867
|
-
permissions: import("@ydtb/tk-scope-extension
|
|
3297
|
+
permissions: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
2868
3298
|
}>, import("zod").ZodObject<{
|
|
2869
|
-
memberId: import("zod").ZodString
|
|
3299
|
+
memberId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
3300
|
+
customizationId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2870
3301
|
permission: import("zod").ZodString;
|
|
2871
3302
|
effect: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
2872
3303
|
grant: "grant";
|
|
@@ -2905,7 +3336,7 @@ export declare const permissionsApi: import("@ydtb/tk-scope-api-client").ToolCli
|
|
|
2905
3336
|
scopeId: string;
|
|
2906
3337
|
scopeType: string;
|
|
2907
3338
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
2908
|
-
permissions?: import("@ydtb/tk-scope-extension
|
|
3339
|
+
permissions?: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
2909
3340
|
} & Record<never, never>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<{
|
|
2910
3341
|
headers: Headers;
|
|
2911
3342
|
}, {
|
|
@@ -2927,9 +3358,10 @@ export declare const permissionsApi: import("@ydtb/tk-scope-api-client").ToolCli
|
|
|
2927
3358
|
scopeType: string;
|
|
2928
3359
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
2929
3360
|
}>, {
|
|
2930
|
-
permissions: import("@ydtb/tk-scope-extension
|
|
3361
|
+
permissions: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
2931
3362
|
}>, import("zod").ZodObject<{
|
|
2932
|
-
memberId: import("zod").ZodString
|
|
3363
|
+
memberId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
3364
|
+
customizationId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2933
3365
|
permission: import("zod").ZodString;
|
|
2934
3366
|
}, import("zod/v4/core").$strip>, import("@orpc/contract").Schema<{
|
|
2935
3367
|
success: boolean;
|
|
@@ -2964,7 +3396,7 @@ export declare const permissionsApi: import("@ydtb/tk-scope-api-client").ToolCli
|
|
|
2964
3396
|
scopeId: string;
|
|
2965
3397
|
scopeType: string;
|
|
2966
3398
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
2967
|
-
permissions?: import("@ydtb/tk-scope-extension
|
|
3399
|
+
permissions?: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
2968
3400
|
} & Record<never, never>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<{
|
|
2969
3401
|
headers: Headers;
|
|
2970
3402
|
}, {
|
|
@@ -2986,7 +3418,7 @@ export declare const permissionsApi: import("@ydtb/tk-scope-api-client").ToolCli
|
|
|
2986
3418
|
scopeType: string;
|
|
2987
3419
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
2988
3420
|
}>, {
|
|
2989
|
-
permissions: import("@ydtb/tk-scope-extension
|
|
3421
|
+
permissions: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
2990
3422
|
}>, import("zod").ZodObject<{
|
|
2991
3423
|
memberIds: import("zod").ZodArray<import("zod").ZodString>;
|
|
2992
3424
|
permission: import("zod").ZodString;
|
|
@@ -3027,7 +3459,7 @@ export declare const scopeChildrenApi: import("@ydtb/tk-scope-api-client").ToolC
|
|
|
3027
3459
|
scopeId: string;
|
|
3028
3460
|
scopeType: string;
|
|
3029
3461
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
3030
|
-
permissions?: import("@ydtb/tk-scope-extension
|
|
3462
|
+
permissions?: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
3031
3463
|
} & Record<never, never>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<{
|
|
3032
3464
|
headers: Headers;
|
|
3033
3465
|
}, {
|
|
@@ -3049,7 +3481,7 @@ export declare const scopeChildrenApi: import("@ydtb/tk-scope-api-client").ToolC
|
|
|
3049
3481
|
scopeType: string;
|
|
3050
3482
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
3051
3483
|
}>, {
|
|
3052
|
-
permissions: import("@ydtb/tk-scope-extension
|
|
3484
|
+
permissions: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
3053
3485
|
}>, import("zod").ZodObject<{
|
|
3054
3486
|
search: import("zod").ZodOptional<import("zod").ZodString>;
|
|
3055
3487
|
childType: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -3104,7 +3536,7 @@ export declare const scopeChildrenApi: import("@ydtb/tk-scope-api-client").ToolC
|
|
|
3104
3536
|
scopeId: string;
|
|
3105
3537
|
scopeType: string;
|
|
3106
3538
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
3107
|
-
permissions?: import("@ydtb/tk-scope-extension
|
|
3539
|
+
permissions?: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
3108
3540
|
} & Record<never, never>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<{
|
|
3109
3541
|
headers: Headers;
|
|
3110
3542
|
}, {
|
|
@@ -3126,29 +3558,29 @@ export declare const scopeChildrenApi: import("@ydtb/tk-scope-api-client").ToolC
|
|
|
3126
3558
|
scopeType: string;
|
|
3127
3559
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
3128
3560
|
}>, {
|
|
3129
|
-
permissions: import("@ydtb/tk-scope-extension
|
|
3561
|
+
permissions: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
3130
3562
|
}>, import("zod").ZodObject<{
|
|
3131
3563
|
type: import("zod").ZodString;
|
|
3132
3564
|
name: import("zod").ZodString;
|
|
3133
3565
|
slug: import("zod").ZodOptional<import("zod").ZodString>;
|
|
3134
3566
|
}, import("zod/v4/core").$strip>, import("@orpc/contract").Schema<{
|
|
3567
|
+
name: string;
|
|
3568
|
+
slug: string;
|
|
3135
3569
|
id: string;
|
|
3136
3570
|
scope: string;
|
|
3137
3571
|
parentScope: string | null;
|
|
3138
3572
|
parentScopeId: string | null;
|
|
3139
|
-
name: string;
|
|
3140
|
-
slug: string;
|
|
3141
3573
|
logo: string | null;
|
|
3142
3574
|
metadata: unknown;
|
|
3143
3575
|
createdAt: Date;
|
|
3144
3576
|
updatedAt: Date;
|
|
3145
3577
|
}, {
|
|
3578
|
+
name: string;
|
|
3579
|
+
slug: string;
|
|
3146
3580
|
id: string;
|
|
3147
3581
|
scope: string;
|
|
3148
3582
|
parentScope: string | null;
|
|
3149
3583
|
parentScopeId: string | null;
|
|
3150
|
-
name: string;
|
|
3151
|
-
slug: string;
|
|
3152
3584
|
logo: string | null;
|
|
3153
3585
|
metadata: unknown;
|
|
3154
3586
|
createdAt: Date;
|
|
@@ -3182,7 +3614,7 @@ export declare const scopeChildrenApi: import("@ydtb/tk-scope-api-client").ToolC
|
|
|
3182
3614
|
scopeId: string;
|
|
3183
3615
|
scopeType: string;
|
|
3184
3616
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
3185
|
-
permissions?: import("@ydtb/tk-scope-extension
|
|
3617
|
+
permissions?: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
3186
3618
|
} & Record<never, never>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<{
|
|
3187
3619
|
headers: Headers;
|
|
3188
3620
|
}, {
|
|
@@ -3204,7 +3636,7 @@ export declare const scopeChildrenApi: import("@ydtb/tk-scope-api-client").ToolC
|
|
|
3204
3636
|
scopeType: string;
|
|
3205
3637
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
3206
3638
|
}>, {
|
|
3207
|
-
permissions: import("@ydtb/tk-scope-extension
|
|
3639
|
+
permissions: import("@ydtb/tk-scope-extension").ResolvedPermissions;
|
|
3208
3640
|
}>, import("zod").ZodObject<{
|
|
3209
3641
|
scopeId: import("zod").ZodString;
|
|
3210
3642
|
}, import("zod/v4/core").$strip>, import("@orpc/contract").Schema<{
|
|
@@ -3245,6 +3677,7 @@ export declare const onboardingApi: import("@ydtb/tk-scope-api-client").ToolClie
|
|
|
3245
3677
|
}>, import("zod").ZodObject<{
|
|
3246
3678
|
scope: import("zod").ZodString;
|
|
3247
3679
|
scopeId: import("zod").ZodString;
|
|
3680
|
+
stepIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
3248
3681
|
}, import("zod/v4/core").$strip>, import("@orpc/contract").Schema<{
|
|
3249
3682
|
totalSteps: number;
|
|
3250
3683
|
completedSteps: number;
|
|
@@ -3288,6 +3721,7 @@ export declare const onboardingApi: import("@ydtb/tk-scope-api-client").ToolClie
|
|
|
3288
3721
|
scope: import("zod").ZodString;
|
|
3289
3722
|
scopeId: import("zod").ZodString;
|
|
3290
3723
|
context: import("zod").ZodOptional<import("zod").ZodString>;
|
|
3724
|
+
stepIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
3291
3725
|
}, import("zod/v4/core").$strip>, import("@orpc/contract").Schema<{
|
|
3292
3726
|
steps: {
|
|
3293
3727
|
stepId: string;
|
|
@@ -3437,23 +3871,23 @@ export declare const preferencesApi: import("@ydtb/tk-scope-api-client").ToolCli
|
|
|
3437
3871
|
key: import("zod").ZodString;
|
|
3438
3872
|
value: import("zod").ZodString;
|
|
3439
3873
|
}, import("zod/v4/core").$strip>, import("@orpc/contract").Schema<{
|
|
3440
|
-
|
|
3441
|
-
|
|
3874
|
+
scopeId: string;
|
|
3875
|
+
value: string;
|
|
3442
3876
|
createdAt: Date;
|
|
3443
3877
|
updatedAt: Date;
|
|
3444
|
-
|
|
3445
|
-
|
|
3878
|
+
scope: string;
|
|
3879
|
+
id: string;
|
|
3446
3880
|
key: string;
|
|
3447
|
-
|
|
3881
|
+
userId: string;
|
|
3448
3882
|
} | undefined, {
|
|
3449
|
-
|
|
3450
|
-
|
|
3883
|
+
scopeId: string;
|
|
3884
|
+
value: string;
|
|
3451
3885
|
createdAt: Date;
|
|
3452
3886
|
updatedAt: Date;
|
|
3453
|
-
|
|
3454
|
-
|
|
3887
|
+
scope: string;
|
|
3888
|
+
id: string;
|
|
3455
3889
|
key: string;
|
|
3456
|
-
|
|
3890
|
+
userId: string;
|
|
3457
3891
|
} | undefined>, Record<never, never>, Record<never, never>>;
|
|
3458
3892
|
list: import("@orpc/server").DecoratedProcedure<import("@orpc/server").MergedInitialContext<{
|
|
3459
3893
|
headers: Headers;
|
|
@@ -3773,6 +4207,6 @@ export declare const tokensApi: import("@ydtb/tk-scope-api-client").ToolClient<{
|
|
|
3773
4207
|
scopeId: string;
|
|
3774
4208
|
scopeType: string;
|
|
3775
4209
|
scopeChain: import("@ydtb/tk-scope-extension/orpc").ScopeChainEntry[];
|
|
3776
|
-
}>, import("zod").ZodObject<{}, import("zod/v4/core").$strip>, import("@orpc/
|
|
4210
|
+
}>, import("zod").ZodObject<{}, import("zod/v4/core").$strip>, import("@orpc/contract").Schema<import("@ydtb/tk-scope-tokens/types").TokenListGroup[], import("@ydtb/tk-scope-tokens/types").TokenListGroup[]>, Record<never, never>, Record<never, never>>;
|
|
3777
4211
|
}>;
|
|
3778
4212
|
//# sourceMappingURL=platform-api.d.ts.map
|