@fuzdev/fuz_app 0.165.0 → 0.166.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/actions/CLAUDE.md +2 -2
- package/dist/actions/action_event_data.d.ts +1 -1
- package/dist/actions/action_rpc.d.ts.map +1 -1
- package/dist/actions/action_rpc.js +24 -15
- package/dist/actions/action_spec.d.ts +2 -2
- package/dist/actions/perform_action.d.ts +2 -1
- package/dist/actions/perform_action.d.ts.map +1 -1
- package/dist/auth/account_action_specs.d.ts +8 -8
- package/dist/auth/account_route_schema.d.ts +197 -164
- package/dist/auth/account_route_schema.d.ts.map +1 -1
- package/dist/auth/account_route_schema.js +19 -17
- package/dist/auth/account_routes.d.ts.map +1 -1
- package/dist/auth/account_routes.js +285 -294
- package/dist/auth/admin_action_specs.d.ts +64 -64
- package/dist/auth/audit_log_route_schema.d.ts +16 -8
- package/dist/auth/audit_log_route_schema.d.ts.map +1 -1
- package/dist/auth/audit_log_route_schema.js +4 -3
- package/dist/auth/audit_log_routes.d.ts +1 -1
- package/dist/auth/audit_log_routes.d.ts.map +1 -1
- package/dist/auth/audit_log_routes.js +112 -111
- package/dist/auth/audit_log_schema.d.ts +22 -22
- package/dist/auth/bootstrap_route_schema.d.ts +46 -69
- package/dist/auth/bootstrap_route_schema.d.ts.map +1 -1
- package/dist/auth/bootstrap_route_schema.js +8 -7
- package/dist/auth/bootstrap_routes.d.ts.map +1 -1
- package/dist/auth/bootstrap_routes.js +100 -98
- package/dist/auth/role_grant_offer_action_specs.d.ts +4 -4
- package/dist/auth/signup_route_schema.d.ts +9 -4
- package/dist/auth/signup_route_schema.d.ts.map +1 -1
- package/dist/auth/signup_route_schema.js +5 -3
- package/dist/auth/signup_routes.d.ts.map +1 -1
- package/dist/auth/signup_routes.js +170 -170
- package/dist/http/CLAUDE.md +48 -3
- package/dist/http/common_routes.d.ts +1 -1
- package/dist/http/common_routes.d.ts.map +1 -1
- package/dist/http/common_routes.js +13 -11
- package/dist/http/db_routes.d.ts.map +1 -1
- package/dist/http/db_routes.js +25 -28
- package/dist/http/error_schemas.d.ts +5 -1
- package/dist/http/error_schemas.d.ts.map +1 -1
- package/dist/http/error_schemas.js +5 -1
- package/dist/http/route_result.d.ts +101 -0
- package/dist/http/route_result.d.ts.map +1 -0
- package/dist/http/route_result.js +56 -0
- package/dist/http/route_spec.d.ts +110 -6
- package/dist/http/route_spec.d.ts.map +1 -1
- package/dist/http/route_spec.js +82 -14
- package/dist/rate_limiter.d.ts +0 -9
- package/dist/rate_limiter.d.ts.map +1 -1
- package/dist/rate_limiter.js +0 -15
- package/dist/server/serve_fact_route.d.ts.map +1 -1
- package/dist/server/serve_fact_route.js +23 -21
- package/dist/server/surface_route.d.ts +1 -1
- package/dist/server/surface_route.d.ts.map +1 -1
- package/dist/server/surface_route.js +4 -2
- package/dist/testing/CLAUDE.md +5 -3
- package/dist/testing/adversarial_404.d.ts.map +1 -1
- package/dist/testing/adversarial_404.js +12 -7
- package/dist/testing/cross_backend/login_security.d.ts.map +1 -1
- package/dist/testing/cross_backend/login_security.js +3 -2
- package/dist/testing/cross_backend/rust_spine_consumer_surface.d.ts.map +1 -1
- package/dist/testing/cross_backend/rust_spine_consumer_surface.js +2 -6
- package/dist/testing/stubs.d.ts +14 -3
- package/dist/testing/stubs.d.ts.map +1 -1
- package/dist/testing/stubs.js +21 -6
- package/package.json +1 -1
|
@@ -562,11 +562,11 @@ export declare const AdminSessionRevokeAllInput: import("@fuzdev/fuz_schema/sche
|
|
|
562
562
|
export type AdminSessionRevokeAllInput = Infer<typeof AdminSessionRevokeAllInput>;
|
|
563
563
|
/** Output for `admin_session_revoke_all`, a `@fuzdev/fuz_schema` schema. */
|
|
564
564
|
export declare const AdminSessionRevokeAllOutput: import("@fuzdev/fuz_schema/schema.ts").Schema<{
|
|
565
|
-
count: number;
|
|
566
565
|
ok: true;
|
|
567
|
-
}, {
|
|
568
566
|
count: number;
|
|
567
|
+
}, {
|
|
569
568
|
ok: true;
|
|
569
|
+
count: number;
|
|
570
570
|
}, "object", {
|
|
571
571
|
ok: import("@fuzdev/fuz_schema/schema.ts").Schema<true, true, "literal", true>;
|
|
572
572
|
count: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<number, import("@fuzdev/fuz_schema/schema.ts").Schema<number, number, "number", undefined>>;
|
|
@@ -596,11 +596,11 @@ export declare const AdminTokenRevokeAllInput: import("@fuzdev/fuz_schema/schema
|
|
|
596
596
|
export type AdminTokenRevokeAllInput = Infer<typeof AdminTokenRevokeAllInput>;
|
|
597
597
|
/** Output for `admin_token_revoke_all`, a `@fuzdev/fuz_schema` schema. */
|
|
598
598
|
export declare const AdminTokenRevokeAllOutput: import("@fuzdev/fuz_schema/schema.ts").Schema<{
|
|
599
|
-
count: number;
|
|
600
599
|
ok: true;
|
|
601
|
-
}, {
|
|
602
600
|
count: number;
|
|
601
|
+
}, {
|
|
603
602
|
ok: true;
|
|
603
|
+
count: number;
|
|
604
604
|
}, "object", {
|
|
605
605
|
ok: import("@fuzdev/fuz_schema/schema.ts").Schema<true, true, "literal", true>;
|
|
606
606
|
count: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<number, import("@fuzdev/fuz_schema/schema.ts").Schema<number, number, "number", undefined>>;
|
|
@@ -616,32 +616,32 @@ export type AdminTokenRevokeAllOutput = Infer<typeof AdminTokenRevokeAllOutput>;
|
|
|
616
616
|
export declare const AuditLogListInput: import("@fuzdev/fuz_schema/schema.ts").Schema<{
|
|
617
617
|
account_id?: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null | undefined;
|
|
618
618
|
acting?: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | undefined;
|
|
619
|
-
outcome?: "success" | "failure" | null | undefined;
|
|
620
619
|
event_type?: string | null | undefined;
|
|
620
|
+
outcome?: "success" | "failure" | null | undefined;
|
|
621
621
|
limit?: number | null | undefined;
|
|
622
622
|
offset?: number | null | undefined;
|
|
623
623
|
since_seq?: number | null | undefined;
|
|
624
624
|
}, {
|
|
625
625
|
account_id?: string | null | undefined;
|
|
626
626
|
acting?: string | undefined;
|
|
627
|
-
outcome?: "success" | "failure" | null | undefined;
|
|
628
627
|
event_type?: string | null | undefined;
|
|
628
|
+
outcome?: "success" | "failure" | null | undefined;
|
|
629
629
|
limit?: number | null | undefined;
|
|
630
630
|
offset?: number | null | undefined;
|
|
631
631
|
since_seq?: number | null | undefined;
|
|
632
632
|
} | undefined, "with_default_fn", import("@fuzdev/fuz_schema/schema.ts").SchemaDefaultFnDef<import("@fuzdev/fuz_schema/schema.ts").Schema<{
|
|
633
633
|
account_id?: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null | undefined;
|
|
634
634
|
acting?: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | undefined;
|
|
635
|
-
outcome?: "success" | "failure" | null | undefined;
|
|
636
635
|
event_type?: string | null | undefined;
|
|
636
|
+
outcome?: "success" | "failure" | null | undefined;
|
|
637
637
|
limit?: number | null | undefined;
|
|
638
638
|
offset?: number | null | undefined;
|
|
639
639
|
since_seq?: number | null | undefined;
|
|
640
640
|
}, {
|
|
641
641
|
account_id?: string | null | undefined;
|
|
642
642
|
acting?: string | undefined;
|
|
643
|
-
outcome?: "success" | "failure" | null | undefined;
|
|
644
643
|
event_type?: string | null | undefined;
|
|
644
|
+
outcome?: "success" | "failure" | null | undefined;
|
|
645
645
|
limit?: number | null | undefined;
|
|
646
646
|
offset?: number | null | undefined;
|
|
647
647
|
since_seq?: number | null | undefined;
|
|
@@ -673,13 +673,13 @@ export declare const AuditLogListOutput: import("@fuzdev/fuz_schema/schema.ts").
|
|
|
673
673
|
account_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null;
|
|
674
674
|
created_at: string;
|
|
675
675
|
username: string | null;
|
|
676
|
-
|
|
676
|
+
ip: string | null;
|
|
677
677
|
seq: number;
|
|
678
678
|
event_type: string;
|
|
679
|
+
outcome: "success" | "failure";
|
|
679
680
|
actor_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null;
|
|
680
681
|
target_account_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null;
|
|
681
682
|
target_actor_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null;
|
|
682
|
-
ip: string | null;
|
|
683
683
|
target_username: string | null;
|
|
684
684
|
}[];
|
|
685
685
|
}, {
|
|
@@ -689,13 +689,13 @@ export declare const AuditLogListOutput: import("@fuzdev/fuz_schema/schema.ts").
|
|
|
689
689
|
account_id: string | null;
|
|
690
690
|
created_at: string;
|
|
691
691
|
username: string | null;
|
|
692
|
-
|
|
692
|
+
ip: string | null;
|
|
693
693
|
seq: number;
|
|
694
694
|
event_type: string;
|
|
695
|
+
outcome: "success" | "failure";
|
|
695
696
|
actor_id: string | null;
|
|
696
697
|
target_account_id: string | null;
|
|
697
698
|
target_actor_id: string | null;
|
|
698
|
-
ip: string | null;
|
|
699
699
|
target_username: string | null;
|
|
700
700
|
}[];
|
|
701
701
|
}, "object", {
|
|
@@ -705,13 +705,13 @@ export declare const AuditLogListOutput: import("@fuzdev/fuz_schema/schema.ts").
|
|
|
705
705
|
account_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null;
|
|
706
706
|
created_at: string;
|
|
707
707
|
username: string | null;
|
|
708
|
-
|
|
708
|
+
ip: string | null;
|
|
709
709
|
seq: number;
|
|
710
710
|
event_type: string;
|
|
711
|
+
outcome: "success" | "failure";
|
|
711
712
|
actor_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null;
|
|
712
713
|
target_account_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null;
|
|
713
714
|
target_actor_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null;
|
|
714
|
-
ip: string | null;
|
|
715
715
|
target_username: string | null;
|
|
716
716
|
}[], {
|
|
717
717
|
metadata: Record<string, unknown> | null;
|
|
@@ -719,13 +719,13 @@ export declare const AuditLogListOutput: import("@fuzdev/fuz_schema/schema.ts").
|
|
|
719
719
|
account_id: string | null;
|
|
720
720
|
created_at: string;
|
|
721
721
|
username: string | null;
|
|
722
|
-
|
|
722
|
+
ip: string | null;
|
|
723
723
|
seq: number;
|
|
724
724
|
event_type: string;
|
|
725
|
+
outcome: "success" | "failure";
|
|
725
726
|
actor_id: string | null;
|
|
726
727
|
target_account_id: string | null;
|
|
727
728
|
target_actor_id: string | null;
|
|
728
|
-
ip: string | null;
|
|
729
729
|
target_username: string | null;
|
|
730
730
|
}[], "array", import("@fuzdev/fuz_schema/schema.ts").Schema<{
|
|
731
731
|
metadata: Record<string, unknown> | null;
|
|
@@ -733,13 +733,13 @@ export declare const AuditLogListOutput: import("@fuzdev/fuz_schema/schema.ts").
|
|
|
733
733
|
account_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null;
|
|
734
734
|
created_at: string;
|
|
735
735
|
username: string | null;
|
|
736
|
-
|
|
736
|
+
ip: string | null;
|
|
737
737
|
seq: number;
|
|
738
738
|
event_type: string;
|
|
739
|
+
outcome: "success" | "failure";
|
|
739
740
|
actor_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null;
|
|
740
741
|
target_account_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null;
|
|
741
742
|
target_actor_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null;
|
|
742
|
-
ip: string | null;
|
|
743
743
|
target_username: string | null;
|
|
744
744
|
}, {
|
|
745
745
|
metadata: Record<string, unknown> | null;
|
|
@@ -747,13 +747,13 @@ export declare const AuditLogListOutput: import("@fuzdev/fuz_schema/schema.ts").
|
|
|
747
747
|
account_id: string | null;
|
|
748
748
|
created_at: string;
|
|
749
749
|
username: string | null;
|
|
750
|
-
|
|
750
|
+
ip: string | null;
|
|
751
751
|
seq: number;
|
|
752
752
|
event_type: string;
|
|
753
|
+
outcome: "success" | "failure";
|
|
753
754
|
actor_id: string | null;
|
|
754
755
|
target_account_id: string | null;
|
|
755
756
|
target_actor_id: string | null;
|
|
756
|
-
ip: string | null;
|
|
757
757
|
target_username: string | null;
|
|
758
758
|
}, "object", {
|
|
759
759
|
username: import("@fuzdev/fuz_schema/schema.ts").Schema<string | null, string | null, "nullable", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>>;
|
|
@@ -836,13 +836,13 @@ export declare const AuditLogRoleGrantHistoryOutput: import("@fuzdev/fuz_schema/
|
|
|
836
836
|
account_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null;
|
|
837
837
|
created_at: string;
|
|
838
838
|
username: string | null;
|
|
839
|
-
|
|
839
|
+
ip: string | null;
|
|
840
840
|
seq: number;
|
|
841
841
|
event_type: string;
|
|
842
|
+
outcome: "success" | "failure";
|
|
842
843
|
actor_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null;
|
|
843
844
|
target_account_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null;
|
|
844
845
|
target_actor_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null;
|
|
845
|
-
ip: string | null;
|
|
846
846
|
target_username: string | null;
|
|
847
847
|
}[];
|
|
848
848
|
}, {
|
|
@@ -852,13 +852,13 @@ export declare const AuditLogRoleGrantHistoryOutput: import("@fuzdev/fuz_schema/
|
|
|
852
852
|
account_id: string | null;
|
|
853
853
|
created_at: string;
|
|
854
854
|
username: string | null;
|
|
855
|
-
|
|
855
|
+
ip: string | null;
|
|
856
856
|
seq: number;
|
|
857
857
|
event_type: string;
|
|
858
|
+
outcome: "success" | "failure";
|
|
858
859
|
actor_id: string | null;
|
|
859
860
|
target_account_id: string | null;
|
|
860
861
|
target_actor_id: string | null;
|
|
861
|
-
ip: string | null;
|
|
862
862
|
target_username: string | null;
|
|
863
863
|
}[];
|
|
864
864
|
}, "object", {
|
|
@@ -868,13 +868,13 @@ export declare const AuditLogRoleGrantHistoryOutput: import("@fuzdev/fuz_schema/
|
|
|
868
868
|
account_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null;
|
|
869
869
|
created_at: string;
|
|
870
870
|
username: string | null;
|
|
871
|
-
|
|
871
|
+
ip: string | null;
|
|
872
872
|
seq: number;
|
|
873
873
|
event_type: string;
|
|
874
|
+
outcome: "success" | "failure";
|
|
874
875
|
actor_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null;
|
|
875
876
|
target_account_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null;
|
|
876
877
|
target_actor_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null;
|
|
877
|
-
ip: string | null;
|
|
878
878
|
target_username: string | null;
|
|
879
879
|
}[], {
|
|
880
880
|
metadata: Record<string, unknown> | null;
|
|
@@ -882,13 +882,13 @@ export declare const AuditLogRoleGrantHistoryOutput: import("@fuzdev/fuz_schema/
|
|
|
882
882
|
account_id: string | null;
|
|
883
883
|
created_at: string;
|
|
884
884
|
username: string | null;
|
|
885
|
-
|
|
885
|
+
ip: string | null;
|
|
886
886
|
seq: number;
|
|
887
887
|
event_type: string;
|
|
888
|
+
outcome: "success" | "failure";
|
|
888
889
|
actor_id: string | null;
|
|
889
890
|
target_account_id: string | null;
|
|
890
891
|
target_actor_id: string | null;
|
|
891
|
-
ip: string | null;
|
|
892
892
|
target_username: string | null;
|
|
893
893
|
}[], "array", import("@fuzdev/fuz_schema/schema.ts").Schema<{
|
|
894
894
|
metadata: Record<string, unknown> | null;
|
|
@@ -896,13 +896,13 @@ export declare const AuditLogRoleGrantHistoryOutput: import("@fuzdev/fuz_schema/
|
|
|
896
896
|
account_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null;
|
|
897
897
|
created_at: string;
|
|
898
898
|
username: string | null;
|
|
899
|
-
|
|
899
|
+
ip: string | null;
|
|
900
900
|
seq: number;
|
|
901
901
|
event_type: string;
|
|
902
|
+
outcome: "success" | "failure";
|
|
902
903
|
actor_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null;
|
|
903
904
|
target_account_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null;
|
|
904
905
|
target_actor_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null;
|
|
905
|
-
ip: string | null;
|
|
906
906
|
target_username: string | null;
|
|
907
907
|
}, {
|
|
908
908
|
metadata: Record<string, unknown> | null;
|
|
@@ -910,13 +910,13 @@ export declare const AuditLogRoleGrantHistoryOutput: import("@fuzdev/fuz_schema/
|
|
|
910
910
|
account_id: string | null;
|
|
911
911
|
created_at: string;
|
|
912
912
|
username: string | null;
|
|
913
|
-
|
|
913
|
+
ip: string | null;
|
|
914
914
|
seq: number;
|
|
915
915
|
event_type: string;
|
|
916
|
+
outcome: "success" | "failure";
|
|
916
917
|
actor_id: string | null;
|
|
917
918
|
target_account_id: string | null;
|
|
918
919
|
target_actor_id: string | null;
|
|
919
|
-
ip: string | null;
|
|
920
920
|
target_username: string | null;
|
|
921
921
|
}, "object", {
|
|
922
922
|
username: import("@fuzdev/fuz_schema/schema.ts").Schema<string | null, string | null, "nullable", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>>;
|
|
@@ -2045,11 +2045,11 @@ export declare const admin_session_revoke_all_action_spec: {
|
|
|
2045
2045
|
}>>;
|
|
2046
2046
|
}>;
|
|
2047
2047
|
output: import("@fuzdev/fuz_schema/schema.ts").Schema<{
|
|
2048
|
-
count: number;
|
|
2049
2048
|
ok: true;
|
|
2050
|
-
}, {
|
|
2051
2049
|
count: number;
|
|
2050
|
+
}, {
|
|
2052
2051
|
ok: true;
|
|
2052
|
+
count: number;
|
|
2053
2053
|
}, "object", {
|
|
2054
2054
|
ok: import("@fuzdev/fuz_schema/schema.ts").Schema<true, true, "literal", true>;
|
|
2055
2055
|
count: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<number, import("@fuzdev/fuz_schema/schema.ts").Schema<number, number, "number", undefined>>;
|
|
@@ -2089,11 +2089,11 @@ export declare const admin_token_revoke_all_action_spec: {
|
|
|
2089
2089
|
}>>;
|
|
2090
2090
|
}>;
|
|
2091
2091
|
output: import("@fuzdev/fuz_schema/schema.ts").Schema<{
|
|
2092
|
-
count: number;
|
|
2093
2092
|
ok: true;
|
|
2094
|
-
}, {
|
|
2095
2093
|
count: number;
|
|
2094
|
+
}, {
|
|
2096
2095
|
ok: true;
|
|
2096
|
+
count: number;
|
|
2097
2097
|
}, "object", {
|
|
2098
2098
|
ok: import("@fuzdev/fuz_schema/schema.ts").Schema<true, true, "literal", true>;
|
|
2099
2099
|
count: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<number, import("@fuzdev/fuz_schema/schema.ts").Schema<number, number, "number", undefined>>;
|
|
@@ -2123,32 +2123,32 @@ export declare const audit_log_list_action_spec: {
|
|
|
2123
2123
|
input: import("@fuzdev/fuz_schema/schema.ts").Schema<{
|
|
2124
2124
|
account_id?: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null | undefined;
|
|
2125
2125
|
acting?: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | undefined;
|
|
2126
|
-
outcome?: "success" | "failure" | null | undefined;
|
|
2127
2126
|
event_type?: string | null | undefined;
|
|
2127
|
+
outcome?: "success" | "failure" | null | undefined;
|
|
2128
2128
|
limit?: number | null | undefined;
|
|
2129
2129
|
offset?: number | null | undefined;
|
|
2130
2130
|
since_seq?: number | null | undefined;
|
|
2131
2131
|
}, {
|
|
2132
2132
|
account_id?: string | null | undefined;
|
|
2133
2133
|
acting?: string | undefined;
|
|
2134
|
-
outcome?: "success" | "failure" | null | undefined;
|
|
2135
2134
|
event_type?: string | null | undefined;
|
|
2135
|
+
outcome?: "success" | "failure" | null | undefined;
|
|
2136
2136
|
limit?: number | null | undefined;
|
|
2137
2137
|
offset?: number | null | undefined;
|
|
2138
2138
|
since_seq?: number | null | undefined;
|
|
2139
2139
|
} | undefined, "with_default_fn", import("@fuzdev/fuz_schema/schema.ts").SchemaDefaultFnDef<import("@fuzdev/fuz_schema/schema.ts").Schema<{
|
|
2140
2140
|
account_id?: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null | undefined;
|
|
2141
2141
|
acting?: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | undefined;
|
|
2142
|
-
outcome?: "success" | "failure" | null | undefined;
|
|
2143
2142
|
event_type?: string | null | undefined;
|
|
2143
|
+
outcome?: "success" | "failure" | null | undefined;
|
|
2144
2144
|
limit?: number | null | undefined;
|
|
2145
2145
|
offset?: number | null | undefined;
|
|
2146
2146
|
since_seq?: number | null | undefined;
|
|
2147
2147
|
}, {
|
|
2148
2148
|
account_id?: string | null | undefined;
|
|
2149
2149
|
acting?: string | undefined;
|
|
2150
|
-
outcome?: "success" | "failure" | null | undefined;
|
|
2151
2150
|
event_type?: string | null | undefined;
|
|
2151
|
+
outcome?: "success" | "failure" | null | undefined;
|
|
2152
2152
|
limit?: number | null | undefined;
|
|
2153
2153
|
offset?: number | null | undefined;
|
|
2154
2154
|
since_seq?: number | null | undefined;
|
|
@@ -2178,13 +2178,13 @@ export declare const audit_log_list_action_spec: {
|
|
|
2178
2178
|
account_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null;
|
|
2179
2179
|
created_at: string;
|
|
2180
2180
|
username: string | null;
|
|
2181
|
-
|
|
2181
|
+
ip: string | null;
|
|
2182
2182
|
seq: number;
|
|
2183
2183
|
event_type: string;
|
|
2184
|
+
outcome: "success" | "failure";
|
|
2184
2185
|
actor_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null;
|
|
2185
2186
|
target_account_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null;
|
|
2186
2187
|
target_actor_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null;
|
|
2187
|
-
ip: string | null;
|
|
2188
2188
|
target_username: string | null;
|
|
2189
2189
|
}[];
|
|
2190
2190
|
}, {
|
|
@@ -2194,13 +2194,13 @@ export declare const audit_log_list_action_spec: {
|
|
|
2194
2194
|
account_id: string | null;
|
|
2195
2195
|
created_at: string;
|
|
2196
2196
|
username: string | null;
|
|
2197
|
-
|
|
2197
|
+
ip: string | null;
|
|
2198
2198
|
seq: number;
|
|
2199
2199
|
event_type: string;
|
|
2200
|
+
outcome: "success" | "failure";
|
|
2200
2201
|
actor_id: string | null;
|
|
2201
2202
|
target_account_id: string | null;
|
|
2202
2203
|
target_actor_id: string | null;
|
|
2203
|
-
ip: string | null;
|
|
2204
2204
|
target_username: string | null;
|
|
2205
2205
|
}[];
|
|
2206
2206
|
}, "object", {
|
|
@@ -2210,13 +2210,13 @@ export declare const audit_log_list_action_spec: {
|
|
|
2210
2210
|
account_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null;
|
|
2211
2211
|
created_at: string;
|
|
2212
2212
|
username: string | null;
|
|
2213
|
-
|
|
2213
|
+
ip: string | null;
|
|
2214
2214
|
seq: number;
|
|
2215
2215
|
event_type: string;
|
|
2216
|
+
outcome: "success" | "failure";
|
|
2216
2217
|
actor_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null;
|
|
2217
2218
|
target_account_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null;
|
|
2218
2219
|
target_actor_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null;
|
|
2219
|
-
ip: string | null;
|
|
2220
2220
|
target_username: string | null;
|
|
2221
2221
|
}[], {
|
|
2222
2222
|
metadata: Record<string, unknown> | null;
|
|
@@ -2224,13 +2224,13 @@ export declare const audit_log_list_action_spec: {
|
|
|
2224
2224
|
account_id: string | null;
|
|
2225
2225
|
created_at: string;
|
|
2226
2226
|
username: string | null;
|
|
2227
|
-
|
|
2227
|
+
ip: string | null;
|
|
2228
2228
|
seq: number;
|
|
2229
2229
|
event_type: string;
|
|
2230
|
+
outcome: "success" | "failure";
|
|
2230
2231
|
actor_id: string | null;
|
|
2231
2232
|
target_account_id: string | null;
|
|
2232
2233
|
target_actor_id: string | null;
|
|
2233
|
-
ip: string | null;
|
|
2234
2234
|
target_username: string | null;
|
|
2235
2235
|
}[], "array", import("@fuzdev/fuz_schema/schema.ts").Schema<{
|
|
2236
2236
|
metadata: Record<string, unknown> | null;
|
|
@@ -2238,13 +2238,13 @@ export declare const audit_log_list_action_spec: {
|
|
|
2238
2238
|
account_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null;
|
|
2239
2239
|
created_at: string;
|
|
2240
2240
|
username: string | null;
|
|
2241
|
-
|
|
2241
|
+
ip: string | null;
|
|
2242
2242
|
seq: number;
|
|
2243
2243
|
event_type: string;
|
|
2244
|
+
outcome: "success" | "failure";
|
|
2244
2245
|
actor_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null;
|
|
2245
2246
|
target_account_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null;
|
|
2246
2247
|
target_actor_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null;
|
|
2247
|
-
ip: string | null;
|
|
2248
2248
|
target_username: string | null;
|
|
2249
2249
|
}, {
|
|
2250
2250
|
metadata: Record<string, unknown> | null;
|
|
@@ -2252,13 +2252,13 @@ export declare const audit_log_list_action_spec: {
|
|
|
2252
2252
|
account_id: string | null;
|
|
2253
2253
|
created_at: string;
|
|
2254
2254
|
username: string | null;
|
|
2255
|
-
|
|
2255
|
+
ip: string | null;
|
|
2256
2256
|
seq: number;
|
|
2257
2257
|
event_type: string;
|
|
2258
|
+
outcome: "success" | "failure";
|
|
2258
2259
|
actor_id: string | null;
|
|
2259
2260
|
target_account_id: string | null;
|
|
2260
2261
|
target_actor_id: string | null;
|
|
2261
|
-
ip: string | null;
|
|
2262
2262
|
target_username: string | null;
|
|
2263
2263
|
}, "object", {
|
|
2264
2264
|
username: import("@fuzdev/fuz_schema/schema.ts").Schema<string | null, string | null, "nullable", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>>;
|
|
@@ -2353,13 +2353,13 @@ export declare const audit_log_role_grant_history_action_spec: {
|
|
|
2353
2353
|
account_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null;
|
|
2354
2354
|
created_at: string;
|
|
2355
2355
|
username: string | null;
|
|
2356
|
-
|
|
2356
|
+
ip: string | null;
|
|
2357
2357
|
seq: number;
|
|
2358
2358
|
event_type: string;
|
|
2359
|
+
outcome: "success" | "failure";
|
|
2359
2360
|
actor_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null;
|
|
2360
2361
|
target_account_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null;
|
|
2361
2362
|
target_actor_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null;
|
|
2362
|
-
ip: string | null;
|
|
2363
2363
|
target_username: string | null;
|
|
2364
2364
|
}[];
|
|
2365
2365
|
}, {
|
|
@@ -2369,13 +2369,13 @@ export declare const audit_log_role_grant_history_action_spec: {
|
|
|
2369
2369
|
account_id: string | null;
|
|
2370
2370
|
created_at: string;
|
|
2371
2371
|
username: string | null;
|
|
2372
|
-
|
|
2372
|
+
ip: string | null;
|
|
2373
2373
|
seq: number;
|
|
2374
2374
|
event_type: string;
|
|
2375
|
+
outcome: "success" | "failure";
|
|
2375
2376
|
actor_id: string | null;
|
|
2376
2377
|
target_account_id: string | null;
|
|
2377
2378
|
target_actor_id: string | null;
|
|
2378
|
-
ip: string | null;
|
|
2379
2379
|
target_username: string | null;
|
|
2380
2380
|
}[];
|
|
2381
2381
|
}, "object", {
|
|
@@ -2385,13 +2385,13 @@ export declare const audit_log_role_grant_history_action_spec: {
|
|
|
2385
2385
|
account_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null;
|
|
2386
2386
|
created_at: string;
|
|
2387
2387
|
username: string | null;
|
|
2388
|
-
|
|
2388
|
+
ip: string | null;
|
|
2389
2389
|
seq: number;
|
|
2390
2390
|
event_type: string;
|
|
2391
|
+
outcome: "success" | "failure";
|
|
2391
2392
|
actor_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null;
|
|
2392
2393
|
target_account_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null;
|
|
2393
2394
|
target_actor_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null;
|
|
2394
|
-
ip: string | null;
|
|
2395
2395
|
target_username: string | null;
|
|
2396
2396
|
}[], {
|
|
2397
2397
|
metadata: Record<string, unknown> | null;
|
|
@@ -2399,13 +2399,13 @@ export declare const audit_log_role_grant_history_action_spec: {
|
|
|
2399
2399
|
account_id: string | null;
|
|
2400
2400
|
created_at: string;
|
|
2401
2401
|
username: string | null;
|
|
2402
|
-
|
|
2402
|
+
ip: string | null;
|
|
2403
2403
|
seq: number;
|
|
2404
2404
|
event_type: string;
|
|
2405
|
+
outcome: "success" | "failure";
|
|
2405
2406
|
actor_id: string | null;
|
|
2406
2407
|
target_account_id: string | null;
|
|
2407
2408
|
target_actor_id: string | null;
|
|
2408
|
-
ip: string | null;
|
|
2409
2409
|
target_username: string | null;
|
|
2410
2410
|
}[], "array", import("@fuzdev/fuz_schema/schema.ts").Schema<{
|
|
2411
2411
|
metadata: Record<string, unknown> | null;
|
|
@@ -2413,13 +2413,13 @@ export declare const audit_log_role_grant_history_action_spec: {
|
|
|
2413
2413
|
account_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null;
|
|
2414
2414
|
created_at: string;
|
|
2415
2415
|
username: string | null;
|
|
2416
|
-
|
|
2416
|
+
ip: string | null;
|
|
2417
2417
|
seq: number;
|
|
2418
2418
|
event_type: string;
|
|
2419
|
+
outcome: "success" | "failure";
|
|
2419
2420
|
actor_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null;
|
|
2420
2421
|
target_account_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null;
|
|
2421
2422
|
target_actor_id: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | null;
|
|
2422
|
-
ip: string | null;
|
|
2423
2423
|
target_username: string | null;
|
|
2424
2424
|
}, {
|
|
2425
2425
|
metadata: Record<string, unknown> | null;
|
|
@@ -2427,13 +2427,13 @@ export declare const audit_log_role_grant_history_action_spec: {
|
|
|
2427
2427
|
account_id: string | null;
|
|
2428
2428
|
created_at: string;
|
|
2429
2429
|
username: string | null;
|
|
2430
|
-
|
|
2430
|
+
ip: string | null;
|
|
2431
2431
|
seq: number;
|
|
2432
2432
|
event_type: string;
|
|
2433
|
+
outcome: "success" | "failure";
|
|
2433
2434
|
actor_id: string | null;
|
|
2434
2435
|
target_account_id: string | null;
|
|
2435
2436
|
target_actor_id: string | null;
|
|
2436
|
-
ip: string | null;
|
|
2437
2437
|
target_username: string | null;
|
|
2438
2438
|
}, "object", {
|
|
2439
2439
|
username: import("@fuzdev/fuz_schema/schema.ts").Schema<string | null, string | null, "nullable", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>>;
|
|
@@ -10,35 +10,43 @@
|
|
|
10
10
|
*
|
|
11
11
|
* @module
|
|
12
12
|
*/
|
|
13
|
-
import { type Infer } from '@fuzdev/fuz_schema/schema.ts';
|
|
14
|
-
import type
|
|
13
|
+
import { type Infer, type Schema } from '@fuzdev/fuz_schema/schema.ts';
|
|
14
|
+
import { type RouteShape } from '../http/route_spec.js';
|
|
15
15
|
/**
|
|
16
16
|
* Query schema for the audit-log SSE route, a `@fuzdev/fuz_schema` `object`
|
|
17
17
|
* that refuses unknown keys — multi-actor admins pass `?acting=<uuid>`.
|
|
18
18
|
*/
|
|
19
|
-
export declare const AuditStreamQuery:
|
|
19
|
+
export declare const AuditStreamQuery: Schema<{
|
|
20
20
|
acting?: import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | undefined;
|
|
21
21
|
}, {
|
|
22
22
|
acting?: string | undefined;
|
|
23
23
|
}, "object", {
|
|
24
|
-
acting:
|
|
24
|
+
acting: Schema<import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid"> | undefined, string | undefined, "optional", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<Schema<import("@fuzdev/fuz_schema/schema.ts").Branded<string, "Uuid">, string, "pipe", readonly (import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"string"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"number"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"bigint"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"boolean"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"object"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"check"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"uuid"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"unknown"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"record"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"array"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"union"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"literal"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"nullable"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"optional"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"transform"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"pipe"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"lazy"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"regex"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"one_of"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"with_default"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"with_default_fn"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"loose_object"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"strip_object"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"object_with_rest"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"variant"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"min_length"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"max_length"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"min_value"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"max_value"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"integer"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"safe_integer"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"iso_datetime"> | import("@fuzdev/fuz_schema/schema.ts").SchemaOfKind<"to_lower_case">)[]> & {
|
|
25
25
|
readonly '~types'?: {
|
|
26
26
|
readonly input: string;
|
|
27
|
-
readonly first:
|
|
27
|
+
readonly first: Schema<string, string, "string", undefined>;
|
|
28
28
|
} | undefined;
|
|
29
29
|
}>>;
|
|
30
30
|
}>;
|
|
31
31
|
export type AuditStreamQuery = Infer<typeof AuditStreamQuery>;
|
|
32
32
|
/** Default role required to access the audit-log SSE route. */
|
|
33
33
|
export declare const DEFAULT_AUDIT_STREAM_ROLE = "admin";
|
|
34
|
+
/** The audit stream's `auth`: the gates its handler may itself answer as. */
|
|
35
|
+
export interface AuditStreamAuth {
|
|
36
|
+
account: 'required';
|
|
37
|
+
actor: 'required';
|
|
38
|
+
roles: ReadonlyArray<string>;
|
|
39
|
+
credential_types: ReadonlyArray<string>;
|
|
40
|
+
required_scope: 'surface:audit_stream';
|
|
41
|
+
}
|
|
34
42
|
/**
|
|
35
43
|
* The `GET /audit/stream` SSE route shape minus its handler — pure hono-free
|
|
36
|
-
* data. `create_audit_log_route_specs`
|
|
37
|
-
*
|
|
44
|
+
* data. `create_audit_log_route_specs` attaches the live SSE handler to it
|
|
45
|
+
* (`attach_route_handler`); cross-process surface builders attach a stub. The
|
|
38
46
|
* output is `literal(null)` because SSE streams have no JSON response body.
|
|
39
47
|
*
|
|
40
48
|
* @param required_role - role gating the stream (default `DEFAULT_AUDIT_STREAM_ROLE`)
|
|
41
49
|
* @returns the SSE route shape minus its handler
|
|
42
50
|
*/
|
|
43
|
-
export declare const create_audit_log_route_shape: (required_role?: string) =>
|
|
51
|
+
export declare const create_audit_log_route_shape: (required_role?: string) => RouteShape<[], Schema<null, null, "literal", null>, AuditStreamAuth, undefined>;
|
|
44
52
|
//# sourceMappingURL=audit_log_route_schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audit_log_route_schema.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/auth/audit_log_route_schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAmB,KAAK,KAAK,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"audit_log_route_schema.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/auth/audit_log_route_schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAmB,KAAK,KAAK,EAAE,KAAK,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAExF,OAAO,EAAsB,KAAK,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAG5E;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;EAAkC,CAAC;AAChE,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE9D,+DAA+D;AAC/D,eAAO,MAAM,yBAAyB,UAAU,CAAC;AAEjD,6EAA6E;AAC7E,MAAM,WAAW,eAAe;IAC/B,OAAO,EAAE,UAAU,CAAC;IACpB,KAAK,EAAE,UAAU,CAAC;IAClB,KAAK,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAC7B,gBAAgB,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IACxC,cAAc,EAAE,sBAAsB,CAAC;CACvC;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,4BAA4B,GACxC,gBAAe,MAAkC,KAC/C,UAAU,CAAC,EAAE,EAAE,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,CAAC,EAAE,eAAe,EAAE,SAAS,CA+B9E,CAAC"}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* @module
|
|
12
12
|
*/
|
|
13
13
|
import { literal, object } from '@fuzdev/fuz_schema/schema.ts';
|
|
14
|
+
import { define_route_shape } from '../http/route_spec.js';
|
|
14
15
|
import { ActingActor } from '../primitive_schemas_fuz.js';
|
|
15
16
|
/**
|
|
16
17
|
* Query schema for the audit-log SSE route, a `@fuzdev/fuz_schema` `object`
|
|
@@ -21,14 +22,14 @@ export const AuditStreamQuery = object({ acting: ActingActor });
|
|
|
21
22
|
export const DEFAULT_AUDIT_STREAM_ROLE = 'admin';
|
|
22
23
|
/**
|
|
23
24
|
* The `GET /audit/stream` SSE route shape minus its handler — pure hono-free
|
|
24
|
-
* data. `create_audit_log_route_specs`
|
|
25
|
-
*
|
|
25
|
+
* data. `create_audit_log_route_specs` attaches the live SSE handler to it
|
|
26
|
+
* (`attach_route_handler`); cross-process surface builders attach a stub. The
|
|
26
27
|
* output is `literal(null)` because SSE streams have no JSON response body.
|
|
27
28
|
*
|
|
28
29
|
* @param required_role - role gating the stream (default `DEFAULT_AUDIT_STREAM_ROLE`)
|
|
29
30
|
* @returns the SSE route shape minus its handler
|
|
30
31
|
*/
|
|
31
|
-
export const create_audit_log_route_shape = (required_role = DEFAULT_AUDIT_STREAM_ROLE) => ({
|
|
32
|
+
export const create_audit_log_route_shape = (required_role = DEFAULT_AUDIT_STREAM_ROLE) => define_route_shape({
|
|
32
33
|
method: 'GET',
|
|
33
34
|
path: '/audit/stream',
|
|
34
35
|
auth: {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* @module
|
|
13
13
|
*/
|
|
14
14
|
import type { Logger } from '@fuzdev/fuz_util/log.ts';
|
|
15
|
-
import type
|
|
15
|
+
import { type RouteSpec } from '../http/route_spec.js';
|
|
16
16
|
import { type SseNotification } from '../realtime/sse.js';
|
|
17
17
|
import type { SseRegistry } from '../realtime/sse_registry.js';
|
|
18
18
|
/** Options for audit log route specs. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audit_log_routes.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/auth/audit_log_routes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAGtD,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"audit_log_routes.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/auth/audit_log_routes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAGtD,OAAO,EAAwB,KAAK,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAW7E,OAAO,EAAuB,KAAK,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAW/D,yCAAyC;AACzC,MAAM,WAAW,oBAAoB;IACpC,+DAA+D;IAC/D,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE;QACR,QAAQ,EAAE,WAAW,CAAC,eAAe,CAAC,CAAC;QACvC,GAAG,EAAE,MAAM,CAAC;QACZ;;;;;WAKG;QACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KAC9B,CAAC;CACF;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,eAAO,MAAM,4BAA4B,GAAI,UAAU,oBAAoB,KAAG,KAAK,CAAC,SAAS,CA4H5F,CAAC"}
|