@cobaltcore-dev/aurora 0.17.1 → 0.18.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.
Files changed (48) hide show
  1. package/dist/client/AuthProvider-Cj_Btfnc.mjs +56 -0
  2. package/dist/client/AuthProvider-Cj_Btfnc.mjs.map +1 -0
  3. package/dist/client/{FloatingIpActionModals-BUc6yaQ8.mjs → FloatingIpActionModals-sJlSFIsK.mjs} +2 -2
  4. package/dist/client/{FloatingIpActionModals-BUc6yaQ8.mjs.map → FloatingIpActionModals-sJlSFIsK.mjs.map} +1 -1
  5. package/dist/client/{ImageToastNotifications-Dz-VsSwl.mjs → ImageToastNotifications-CISH3c_d.mjs} +2 -2
  6. package/dist/client/{ImageToastNotifications-Dz-VsSwl.mjs.map → ImageToastNotifications-CISH3c_d.mjs.map} +1 -1
  7. package/dist/client/{_auth-6uste_10.mjs → _auth-BtRCgHQe.mjs} +2 -2
  8. package/dist/client/{_auth-6uste_10.mjs.map → _auth-BtRCgHQe.mjs.map} +1 -1
  9. package/dist/client/{_floatingIpId-B0l4YNQc.mjs → _floatingIpId-C4Sa8tMa.mjs} +2 -2
  10. package/dist/client/{_floatingIpId-B0l4YNQc.mjs.map → _floatingIpId-C4Sa8tMa.mjs.map} +1 -1
  11. package/dist/client/{_floatingIpId-cpueAc2F2.mjs → _floatingIpId-CAUBZ5WD2.mjs} +4 -4
  12. package/dist/client/{_floatingIpId-cpueAc2F2.mjs.map → _floatingIpId-CAUBZ5WD2.mjs.map} +1 -1
  13. package/dist/client/{_imageId-Bv711w1n.mjs → _imageId-DpXNAIbD.mjs} +2 -2
  14. package/dist/client/{_imageId-Bv711w1n.mjs.map → _imageId-DpXNAIbD.mjs.map} +1 -1
  15. package/dist/client/{_pcaId-CPLb5J6d.mjs → _pcaId-DY9GPV7t.mjs} +4 -4
  16. package/dist/client/{_pcaId-CPLb5J6d.mjs.map → _pcaId-DY9GPV7t.mjs.map} +1 -1
  17. package/dist/client/{_pcaId-Hx_72pnp.mjs → _pcaId-ldtkXsbp.mjs} +2 -2
  18. package/dist/client/{_pcaId-Hx_72pnp.mjs.map → _pcaId-ldtkXsbp.mjs.map} +1 -1
  19. package/dist/client/{_securityGroupId-B-RYPDDc.mjs → _securityGroupId-B6_lD8ry.mjs} +2 -2
  20. package/dist/client/{_securityGroupId-B-RYPDDc.mjs.map → _securityGroupId-B6_lD8ry.mjs.map} +1 -1
  21. package/dist/client/{_securityGroupId-BC3KC6h5.mjs → _securityGroupId-D9FHSkNU.mjs} +3 -3
  22. package/dist/client/{_securityGroupId-BC3KC6h5.mjs.map → _securityGroupId-D9FHSkNU.mjs.map} +1 -1
  23. package/dist/client/{aurora-AAy9BJE7.mjs → aurora-Owys0YMN.mjs} +2 -2
  24. package/dist/client/{aurora-AAy9BJE7.mjs.map → aurora-Owys0YMN.mjs.map} +1 -1
  25. package/dist/client/{constants-BAqOfvr0.mjs → constants-COPE2ktv.mjs} +2 -2
  26. package/dist/client/{constants-BAqOfvr0.mjs.map → constants-COPE2ktv.mjs.map} +1 -1
  27. package/dist/client/{floatingips-Bkk5-I_p.mjs → floatingips-DOGKGGkC.mjs} +3 -3
  28. package/dist/client/{floatingips-Bkk5-I_p.mjs.map → floatingips-DOGKGGkC.mjs.map} +1 -1
  29. package/dist/client/{hooks-CnX5q5wN.mjs → hooks-DvdvErNv.mjs} +1 -1
  30. package/dist/client/{images-FE3vJ6pP.mjs → images-B1wqMKYw.mjs} +2 -2
  31. package/dist/client/{images-FE3vJ6pP.mjs.map → images-B1wqMKYw.mjs.map} +1 -1
  32. package/dist/client/{images-DBLfzuJA.mjs → images-D5UsQi8i.mjs} +4 -4
  33. package/dist/client/{images-DBLfzuJA.mjs.map → images-D5UsQi8i.mjs.map} +1 -1
  34. package/dist/client/index.d.ts +1 -1
  35. package/dist/client/index.js +262 -299
  36. package/dist/client/index.js.map +1 -1
  37. package/dist/client/{pca-P0ud1PA9.mjs → pca-B7WldCGw.mjs} +4 -4
  38. package/dist/client/{pca-P0ud1PA9.mjs.map → pca-B7WldCGw.mjs.map} +1 -1
  39. package/dist/client/{pca-BkAJ5jvX.mjs → pca-DztTIs18.mjs} +2 -2
  40. package/dist/client/{pca-BkAJ5jvX.mjs.map → pca-DztTIs18.mjs.map} +1 -1
  41. package/dist/client/{securitygroups-D14Jv1GQ.mjs → securitygroups-BRtHaTLm.mjs} +2 -2
  42. package/dist/client/{securitygroups-D14Jv1GQ.mjs.map → securitygroups-BRtHaTLm.mjs.map} +1 -1
  43. package/dist/client/trpcClient-Dy_MP_Pv.mjs.map +1 -1
  44. package/dist/client/trpcClient.d.ts +3007 -0
  45. package/dist/server/index.d.ts +3056 -1
  46. package/package.json +1 -1
  47. package/dist/client/AuthProvider-BQSJk5R4.mjs +0 -63
  48. package/dist/client/AuthProvider-BQSJk5R4.mjs.map +0 -1
@@ -7,7 +7,9 @@ import { SignalOpenstackSessionType } from '@cobaltcore-dev/signal-openstack';
7
7
  import { ProxyConfig } from './shared-types';
8
8
  import * as fastify_types_type_provider from 'fastify/types/type-provider';
9
9
  import * as http from 'http';
10
+ import * as zod from 'zod';
10
11
  import { z } from 'zod';
12
+ import * as _trpc_server_http from '@trpc/server/http';
11
13
 
12
14
  declare module "fastify" {
13
15
  interface FastifyRequest {
@@ -622,4 +624,3057 @@ declare const domainScopedProcedure: _trpc_server.TRPCProcedureBuilder<AuroraPor
622
624
  domain_id: string;
623
625
  }, _trpc_server.TRPCUnsetMarker, _trpc_server.TRPCUnsetMarker, false>;
624
626
 
625
- export { type AuroraServerConfig, auroraRouter, createServer, domainScopedInputSchema, domainScopedProcedure, projectScopedInputSchema, projectScopedProcedure, protectedProcedure, publicProcedure };
627
+ interface FlavorAccess {
628
+ flavor_id: string;
629
+ tenant_id: string;
630
+ }
631
+
632
+ /**
633
+ * Object version schema - represents a single version of an object
634
+ *
635
+ * Each version has:
636
+ * - Unique versionId
637
+ * - isLatest flag indicating if it's the current version
638
+ * - isDeleteMarker flag indicating if it's a soft delete marker
639
+ *
640
+ * Delete markers are special versions created when an object is deleted in a
641
+ * versioned bucket. They can be removed to "undelete" the object.
642
+ */
643
+ declare const objectVersionSchema: z.ZodObject<{
644
+ key: z.ZodString;
645
+ versionId: z.ZodString;
646
+ isLatest: z.ZodBoolean;
647
+ lastModified: z.ZodString;
648
+ size: z.ZodNumber;
649
+ storageClass: z.ZodOptional<z.ZodString>;
650
+ owner: z.ZodOptional<z.ZodObject<{
651
+ displayName: z.ZodOptional<z.ZodString>;
652
+ id: z.ZodOptional<z.ZodString>;
653
+ }, z.core.$strip>>;
654
+ etag: z.ZodOptional<z.ZodString>;
655
+ isDeleteMarker: z.ZodDefault<z.ZodBoolean>;
656
+ }, z.core.$strip>;
657
+ type ObjectVersion = z.infer<typeof objectVersionSchema>;
658
+
659
+ /**
660
+ * Output from listing versions
661
+ */
662
+ interface ListVersionsOutput {
663
+ versions: ObjectVersion[];
664
+ deleteMarkers: ObjectVersion[];
665
+ isTruncated: boolean;
666
+ nextKeyMarker?: string;
667
+ nextVersionIdMarker?: string;
668
+ prefix?: string;
669
+ maxKeys?: number;
670
+ }
671
+
672
+ declare const buildBaseRouter: (policyDir: string) => _trpc_server.TRPCBuiltRouter<{
673
+ ctx: AuroraPortalContext;
674
+ meta: object;
675
+ errorShape: _trpc_server.TRPCDefaultErrorShape;
676
+ transformer: false;
677
+ }, _trpc_server.TRPCDecorateCreateRouterOptions<{
678
+ services: _trpc_server.TRPCBuiltRouter<{
679
+ ctx: AuroraPortalContext;
680
+ meta: object;
681
+ errorShape: _trpc_server.TRPCDefaultErrorShape;
682
+ transformer: false;
683
+ }, _trpc_server.TRPCDecorateCreateRouterOptions<{
684
+ pca: {
685
+ list: _trpc_server.TRPCQueryProcedure<{
686
+ input: {
687
+ project_id: string;
688
+ limit?: number | undefined;
689
+ next_page_marker?: string | undefined;
690
+ };
691
+ output: {
692
+ certificate_authorities: {
693
+ id: string;
694
+ project_id: string;
695
+ state: "CREATING" | "AWAITING_CERTIFICATE" | "READY" | "FAILED" | "UNEXPECTED";
696
+ certificate?: {
697
+ pem: string;
698
+ validity: {
699
+ not_after: number;
700
+ not_before?: number | undefined;
701
+ };
702
+ } | undefined;
703
+ certificate_chain?: {
704
+ certificates: {
705
+ pem: string;
706
+ }[];
707
+ pem: string;
708
+ } | undefined;
709
+ configuration?: {
710
+ subject: {
711
+ common_name: string;
712
+ additional_attribute?: {
713
+ key: number[];
714
+ value: string;
715
+ }[] | undefined;
716
+ country?: string[] | undefined;
717
+ locality?: string[] | undefined;
718
+ organization?: string[] | undefined;
719
+ organizational_unit?: string[] | undefined;
720
+ postal_code?: string[] | undefined;
721
+ province?: string[] | undefined;
722
+ serial_number?: string | undefined;
723
+ street_address?: string[] | undefined;
724
+ };
725
+ } | undefined;
726
+ csr?: string | undefined;
727
+ imported_certificate_chain?: string | undefined;
728
+ }[];
729
+ links: {
730
+ href: string;
731
+ rel: string;
732
+ }[];
733
+ next_page_marker?: string | undefined;
734
+ };
735
+ meta: object;
736
+ }>;
737
+ create: _trpc_server.TRPCMutationProcedure<{
738
+ input: {
739
+ project_id: string;
740
+ configuration: {
741
+ subject: {
742
+ common_name: string;
743
+ additional_attribute?: {
744
+ key: number[];
745
+ value: string;
746
+ }[] | undefined;
747
+ country?: string[] | undefined;
748
+ locality?: string[] | undefined;
749
+ organization?: string[] | undefined;
750
+ organizational_unit?: string[] | undefined;
751
+ postal_code?: string[] | undefined;
752
+ province?: string[] | undefined;
753
+ serial_number?: string | undefined;
754
+ street_address?: string[] | undefined;
755
+ };
756
+ };
757
+ };
758
+ output: {
759
+ id: string;
760
+ project_id: string;
761
+ state: "CREATING" | "AWAITING_CERTIFICATE" | "READY" | "FAILED" | "UNEXPECTED";
762
+ certificate?: {
763
+ pem: string;
764
+ validity: {
765
+ not_after: number;
766
+ not_before?: number | undefined;
767
+ };
768
+ } | undefined;
769
+ certificate_chain?: {
770
+ certificates: {
771
+ pem: string;
772
+ }[];
773
+ pem: string;
774
+ } | undefined;
775
+ configuration?: {
776
+ subject: {
777
+ common_name: string;
778
+ additional_attribute?: {
779
+ key: number[];
780
+ value: string;
781
+ }[] | undefined;
782
+ country?: string[] | undefined;
783
+ locality?: string[] | undefined;
784
+ organization?: string[] | undefined;
785
+ organizational_unit?: string[] | undefined;
786
+ postal_code?: string[] | undefined;
787
+ province?: string[] | undefined;
788
+ serial_number?: string | undefined;
789
+ street_address?: string[] | undefined;
790
+ };
791
+ } | undefined;
792
+ csr?: string | undefined;
793
+ imported_certificate_chain?: string | undefined;
794
+ };
795
+ meta: object;
796
+ }>;
797
+ getById: _trpc_server.TRPCQueryProcedure<{
798
+ input: {
799
+ project_id: string;
800
+ certificate_authority_id: string;
801
+ };
802
+ output: {
803
+ id: string;
804
+ project_id: string;
805
+ state: "CREATING" | "AWAITING_CERTIFICATE" | "READY" | "FAILED" | "UNEXPECTED";
806
+ certificate?: {
807
+ pem: string;
808
+ validity: {
809
+ not_after: number;
810
+ not_before?: number | undefined;
811
+ };
812
+ } | undefined;
813
+ certificate_chain?: {
814
+ certificates: {
815
+ pem: string;
816
+ }[];
817
+ pem: string;
818
+ } | undefined;
819
+ configuration?: {
820
+ subject: {
821
+ common_name: string;
822
+ additional_attribute?: {
823
+ key: number[];
824
+ value: string;
825
+ }[] | undefined;
826
+ country?: string[] | undefined;
827
+ locality?: string[] | undefined;
828
+ organization?: string[] | undefined;
829
+ organizational_unit?: string[] | undefined;
830
+ postal_code?: string[] | undefined;
831
+ province?: string[] | undefined;
832
+ serial_number?: string | undefined;
833
+ street_address?: string[] | undefined;
834
+ };
835
+ } | undefined;
836
+ csr?: string | undefined;
837
+ imported_certificate_chain?: string | undefined;
838
+ };
839
+ meta: object;
840
+ }>;
841
+ delete: _trpc_server.TRPCMutationProcedure<{
842
+ input: {
843
+ project_id: string;
844
+ certificate_authority_id: string;
845
+ };
846
+ output: void;
847
+ meta: object;
848
+ }>;
849
+ import: _trpc_server.TRPCMutationProcedure<{
850
+ input: {
851
+ project_id: string;
852
+ certificate_authority_id: string;
853
+ imported_certificate_chain: string;
854
+ };
855
+ output: {
856
+ id: string;
857
+ project_id: string;
858
+ state: "CREATING" | "AWAITING_CERTIFICATE" | "READY" | "FAILED" | "UNEXPECTED";
859
+ certificate?: {
860
+ pem: string;
861
+ validity: {
862
+ not_after: number;
863
+ not_before?: number | undefined;
864
+ };
865
+ } | undefined;
866
+ certificate_chain?: {
867
+ certificates: {
868
+ pem: string;
869
+ }[];
870
+ pem: string;
871
+ } | undefined;
872
+ configuration?: {
873
+ subject: {
874
+ common_name: string;
875
+ additional_attribute?: {
876
+ key: number[];
877
+ value: string;
878
+ }[] | undefined;
879
+ country?: string[] | undefined;
880
+ locality?: string[] | undefined;
881
+ organization?: string[] | undefined;
882
+ organizational_unit?: string[] | undefined;
883
+ postal_code?: string[] | undefined;
884
+ province?: string[] | undefined;
885
+ serial_number?: string | undefined;
886
+ street_address?: string[] | undefined;
887
+ };
888
+ } | undefined;
889
+ csr?: string | undefined;
890
+ imported_certificate_chain?: string | undefined;
891
+ };
892
+ meta: object;
893
+ }>;
894
+ listCertificates: _trpc_server.TRPCQueryProcedure<{
895
+ input: {
896
+ project_id: string;
897
+ certificate_authority_id: string;
898
+ limit?: number | undefined;
899
+ next_page_marker?: string | undefined;
900
+ };
901
+ output: {
902
+ certificates: {
903
+ certificate_authority_id: string;
904
+ id: string;
905
+ project_id: string;
906
+ certificate?: {
907
+ pem: string;
908
+ validity: {
909
+ not_after: number;
910
+ not_before?: number | undefined;
911
+ };
912
+ } | undefined;
913
+ certificate_chain?: {
914
+ certificates: {
915
+ pem: string;
916
+ }[];
917
+ pem: string;
918
+ } | undefined;
919
+ configuration?: {
920
+ validity: {
921
+ not_after: number;
922
+ not_before?: number | undefined;
923
+ };
924
+ } | undefined;
925
+ csr?: string | undefined;
926
+ }[];
927
+ links: {
928
+ href: string;
929
+ rel: string;
930
+ }[];
931
+ next_page_marker?: string | undefined;
932
+ };
933
+ meta: object;
934
+ }>;
935
+ createCertificate: _trpc_server.TRPCMutationProcedure<{
936
+ input: {
937
+ project_id: string;
938
+ certificate_authority_id: string;
939
+ csr: string;
940
+ configuration: {
941
+ validity: {
942
+ not_after: number;
943
+ not_before?: number | undefined;
944
+ };
945
+ };
946
+ };
947
+ output: {
948
+ certificate_authority_id: string;
949
+ id: string;
950
+ project_id: string;
951
+ certificate?: {
952
+ pem: string;
953
+ validity: {
954
+ not_after: number;
955
+ not_before?: number | undefined;
956
+ };
957
+ } | undefined;
958
+ certificate_chain?: {
959
+ certificates: {
960
+ pem: string;
961
+ }[];
962
+ pem: string;
963
+ } | undefined;
964
+ configuration?: {
965
+ validity: {
966
+ not_after: number;
967
+ not_before?: number | undefined;
968
+ };
969
+ } | undefined;
970
+ csr?: string | undefined;
971
+ };
972
+ meta: object;
973
+ }>;
974
+ getByIdCertificate: _trpc_server.TRPCQueryProcedure<{
975
+ input: {
976
+ project_id: string;
977
+ certificate_authority_id: string;
978
+ certificate_id: string;
979
+ };
980
+ output: {
981
+ certificate_authority_id: string;
982
+ id: string;
983
+ project_id: string;
984
+ certificate?: {
985
+ pem: string;
986
+ validity: {
987
+ not_after: number;
988
+ not_before?: number | undefined;
989
+ };
990
+ } | undefined;
991
+ certificate_chain?: {
992
+ certificates: {
993
+ pem: string;
994
+ }[];
995
+ pem: string;
996
+ } | undefined;
997
+ configuration?: {
998
+ validity: {
999
+ not_after: number;
1000
+ not_before?: number | undefined;
1001
+ };
1002
+ } | undefined;
1003
+ csr?: string | undefined;
1004
+ };
1005
+ meta: object;
1006
+ }>;
1007
+ };
1008
+ }>>;
1009
+ }> & _trpc_server.TRPCDecorateCreateRouterOptions<{
1010
+ network: _trpc_server.TRPCBuiltRouter<{
1011
+ ctx: AuroraPortalContext;
1012
+ meta: object;
1013
+ errorShape: _trpc_server.TRPCDefaultErrorShape;
1014
+ transformer: false;
1015
+ }, _trpc_server.TRPCDecorateCreateRouterOptions<{
1016
+ canUser: _trpc_server.TRPCQueryProcedure<{
1017
+ input: {
1018
+ project_id: string;
1019
+ permission: string | string[];
1020
+ };
1021
+ output: boolean[];
1022
+ meta: object;
1023
+ }>;
1024
+ floatingIp: {
1025
+ list: _trpc_server.TRPCQueryProcedure<{
1026
+ input: {
1027
+ project_id: string;
1028
+ id?: string | undefined;
1029
+ router_id?: string | null | undefined;
1030
+ status?: "DOWN" | "ACTIVE" | "ERROR" | undefined;
1031
+ tenant_id?: string | undefined;
1032
+ revision_number?: number | undefined;
1033
+ description?: string | null | undefined;
1034
+ floating_network_id?: string | undefined;
1035
+ fixed_ip_address?: string | undefined;
1036
+ floating_ip_address?: string | undefined;
1037
+ port_id?: string | null | undefined;
1038
+ sort_dir?: "asc" | "desc" | undefined;
1039
+ sort_key?: "id" | "project_id" | "status" | "tenant_id" | "router_id" | "floating_network_id" | "fixed_ip_address" | "floating_ip_address" | undefined;
1040
+ tags?: string[] | undefined;
1041
+ "tags-any"?: string | undefined;
1042
+ "not-tags"?: string | undefined;
1043
+ "not-tags-any"?: string | undefined;
1044
+ fields?: string | string[] | undefined;
1045
+ limit?: number | undefined;
1046
+ marker?: string | undefined;
1047
+ page_reverse?: boolean | undefined;
1048
+ searchTerm?: string | undefined;
1049
+ };
1050
+ output: {
1051
+ router_id: string | null;
1052
+ revision_number: number;
1053
+ project_id: string;
1054
+ tenant_id: string;
1055
+ floating_network_id: string;
1056
+ fixed_ip_address: string | null;
1057
+ floating_ip_address: string;
1058
+ port_id: string | null;
1059
+ id: string;
1060
+ status: "DOWN" | "ACTIVE" | "ERROR";
1061
+ description?: string | null | undefined;
1062
+ distributed?: boolean | undefined;
1063
+ dns_domain?: string | undefined;
1064
+ dns_name?: string | undefined;
1065
+ created_at?: (string & zod.$brand<"ISO8601Timestamp">) | undefined;
1066
+ updated_at?: (string & zod.$brand<"ISO8601Timestamp">) | undefined;
1067
+ port_details?: {
1068
+ status: "DOWN" | "ACTIVE" | "ERROR";
1069
+ name: string;
1070
+ admin_state_up: boolean;
1071
+ network_id: string;
1072
+ device_owner: string;
1073
+ mac_address: string;
1074
+ device_id: string;
1075
+ } | null | undefined;
1076
+ tags?: string[] | undefined;
1077
+ port_forwardings?: {
1078
+ protocol: "tcp" | "udp";
1079
+ internal_ip_address: string;
1080
+ id: string;
1081
+ internal_port?: number | undefined;
1082
+ internal_port_range?: string | undefined;
1083
+ internal_port_id?: string | undefined;
1084
+ external_port?: number | undefined;
1085
+ external_port_range?: string | undefined;
1086
+ description?: string | null | undefined;
1087
+ }[] | null | undefined;
1088
+ qos_network_policy_id?: string | undefined;
1089
+ qos_policy_id?: string | undefined;
1090
+ }[];
1091
+ meta: object;
1092
+ }>;
1093
+ create: _trpc_server.TRPCMutationProcedure<{
1094
+ input: {
1095
+ project_id: string;
1096
+ tenant_id: string;
1097
+ floating_network_id: string;
1098
+ fixed_ip_address?: string | undefined;
1099
+ floating_ip_address?: string | undefined;
1100
+ port_id?: string | undefined;
1101
+ subnet_id?: string | undefined;
1102
+ distributed?: boolean | undefined;
1103
+ description?: string | undefined;
1104
+ dns_domain?: string | undefined;
1105
+ dns_name?: string | undefined;
1106
+ qos_policy_id?: string | undefined;
1107
+ };
1108
+ output: {
1109
+ router_id: string | null;
1110
+ revision_number: number;
1111
+ project_id: string;
1112
+ tenant_id: string;
1113
+ floating_network_id: string;
1114
+ fixed_ip_address: string | null;
1115
+ floating_ip_address: string;
1116
+ port_id: string | null;
1117
+ id: string;
1118
+ status: "DOWN" | "ACTIVE" | "ERROR";
1119
+ description?: string | null | undefined;
1120
+ distributed?: boolean | undefined;
1121
+ dns_domain?: string | undefined;
1122
+ dns_name?: string | undefined;
1123
+ created_at?: (string & zod.$brand<"ISO8601Timestamp">) | undefined;
1124
+ updated_at?: (string & zod.$brand<"ISO8601Timestamp">) | undefined;
1125
+ port_details?: {
1126
+ status: "DOWN" | "ACTIVE" | "ERROR";
1127
+ name: string;
1128
+ admin_state_up: boolean;
1129
+ network_id: string;
1130
+ device_owner: string;
1131
+ mac_address: string;
1132
+ device_id: string;
1133
+ } | null | undefined;
1134
+ tags?: string[] | undefined;
1135
+ port_forwardings?: {
1136
+ protocol: "tcp" | "udp";
1137
+ internal_ip_address: string;
1138
+ id: string;
1139
+ internal_port?: number | undefined;
1140
+ internal_port_range?: string | undefined;
1141
+ internal_port_id?: string | undefined;
1142
+ external_port?: number | undefined;
1143
+ external_port_range?: string | undefined;
1144
+ description?: string | null | undefined;
1145
+ }[] | null | undefined;
1146
+ qos_network_policy_id?: string | undefined;
1147
+ qos_policy_id?: string | undefined;
1148
+ };
1149
+ meta: object;
1150
+ }>;
1151
+ getById: _trpc_server.TRPCQueryProcedure<{
1152
+ input: {
1153
+ project_id: string;
1154
+ floatingip_id: string;
1155
+ };
1156
+ output: {
1157
+ router_id: string | null;
1158
+ revision_number: number;
1159
+ project_id: string;
1160
+ tenant_id: string;
1161
+ floating_network_id: string;
1162
+ fixed_ip_address: string | null;
1163
+ floating_ip_address: string;
1164
+ port_id: string | null;
1165
+ id: string;
1166
+ status: "DOWN" | "ACTIVE" | "ERROR";
1167
+ description?: string | null | undefined;
1168
+ distributed?: boolean | undefined;
1169
+ dns_domain?: string | undefined;
1170
+ dns_name?: string | undefined;
1171
+ created_at?: (string & zod.$brand<"ISO8601Timestamp">) | undefined;
1172
+ updated_at?: (string & zod.$brand<"ISO8601Timestamp">) | undefined;
1173
+ port_details?: {
1174
+ status: "DOWN" | "ACTIVE" | "ERROR";
1175
+ name: string;
1176
+ admin_state_up: boolean;
1177
+ network_id: string;
1178
+ device_owner: string;
1179
+ mac_address: string;
1180
+ device_id: string;
1181
+ } | null | undefined;
1182
+ tags?: string[] | undefined;
1183
+ port_forwardings?: {
1184
+ protocol: "tcp" | "udp";
1185
+ internal_ip_address: string;
1186
+ id: string;
1187
+ internal_port?: number | undefined;
1188
+ internal_port_range?: string | undefined;
1189
+ internal_port_id?: string | undefined;
1190
+ external_port?: number | undefined;
1191
+ external_port_range?: string | undefined;
1192
+ description?: string | null | undefined;
1193
+ }[] | null | undefined;
1194
+ qos_network_policy_id?: string | undefined;
1195
+ qos_policy_id?: string | undefined;
1196
+ };
1197
+ meta: object;
1198
+ }>;
1199
+ update: _trpc_server.TRPCMutationProcedure<{
1200
+ input: {
1201
+ project_id: string;
1202
+ floatingip_id: string;
1203
+ port_id: string | null;
1204
+ fixed_ip_address?: string | undefined;
1205
+ description?: string | undefined;
1206
+ distributed?: boolean | undefined;
1207
+ };
1208
+ output: {
1209
+ router_id: string | null;
1210
+ revision_number: number;
1211
+ project_id: string;
1212
+ tenant_id: string;
1213
+ floating_network_id: string;
1214
+ fixed_ip_address: string | null;
1215
+ floating_ip_address: string;
1216
+ port_id: string | null;
1217
+ id: string;
1218
+ status: "DOWN" | "ACTIVE" | "ERROR";
1219
+ description?: string | null | undefined;
1220
+ distributed?: boolean | undefined;
1221
+ dns_domain?: string | undefined;
1222
+ dns_name?: string | undefined;
1223
+ created_at?: (string & zod.$brand<"ISO8601Timestamp">) | undefined;
1224
+ updated_at?: (string & zod.$brand<"ISO8601Timestamp">) | undefined;
1225
+ port_details?: {
1226
+ status: "DOWN" | "ACTIVE" | "ERROR";
1227
+ name: string;
1228
+ admin_state_up: boolean;
1229
+ network_id: string;
1230
+ device_owner: string;
1231
+ mac_address: string;
1232
+ device_id: string;
1233
+ } | null | undefined;
1234
+ tags?: string[] | undefined;
1235
+ port_forwardings?: {
1236
+ protocol: "tcp" | "udp";
1237
+ internal_ip_address: string;
1238
+ id: string;
1239
+ internal_port?: number | undefined;
1240
+ internal_port_range?: string | undefined;
1241
+ internal_port_id?: string | undefined;
1242
+ external_port?: number | undefined;
1243
+ external_port_range?: string | undefined;
1244
+ description?: string | null | undefined;
1245
+ }[] | null | undefined;
1246
+ qos_network_policy_id?: string | undefined;
1247
+ qos_policy_id?: string | undefined;
1248
+ };
1249
+ meta: object;
1250
+ }>;
1251
+ delete: _trpc_server.TRPCMutationProcedure<{
1252
+ input: {
1253
+ project_id: string;
1254
+ floatingip_id: string;
1255
+ };
1256
+ output: boolean;
1257
+ meta: object;
1258
+ }>;
1259
+ listExternalNetworks: _trpc_server.TRPCQueryProcedure<{
1260
+ input: {
1261
+ project_id: string;
1262
+ "router:external"?: true | undefined;
1263
+ };
1264
+ output: {
1265
+ id: string;
1266
+ name: string;
1267
+ project_id: string;
1268
+ shared: boolean;
1269
+ status: "DOWN" | "ACTIVE" | "BUILD" | "ERROR";
1270
+ "router:external"?: boolean | undefined;
1271
+ updated_at?: (string & zod.$brand<"ISO8601Timestamp">) | undefined;
1272
+ is_default?: boolean | undefined;
1273
+ }[];
1274
+ meta: object;
1275
+ }>;
1276
+ listDnsDomains: _trpc_server.TRPCQueryProcedure<{
1277
+ input: {
1278
+ project_id: string;
1279
+ };
1280
+ output: {
1281
+ id: string;
1282
+ name: string;
1283
+ }[];
1284
+ meta: object;
1285
+ }>;
1286
+ listAvailablePorts: _trpc_server.TRPCQueryProcedure<{
1287
+ input: {
1288
+ project_id: string;
1289
+ status?: "ACTIVE" | undefined;
1290
+ admin_state_up?: true | undefined;
1291
+ };
1292
+ output: {
1293
+ id: string;
1294
+ name?: string | null | undefined;
1295
+ fixed_ips?: {
1296
+ ip_address: string;
1297
+ subnet_id?: string | undefined;
1298
+ }[] | undefined;
1299
+ }[];
1300
+ meta: object;
1301
+ }>;
1302
+ };
1303
+ securityGroup: {
1304
+ list: _trpc_server.TRPCQueryProcedure<{
1305
+ input: {
1306
+ project_id: string;
1307
+ sort_key?: string | undefined;
1308
+ sort_dir?: "asc" | "desc" | undefined;
1309
+ name?: string | undefined;
1310
+ description?: string | undefined;
1311
+ tenant_id?: string | undefined;
1312
+ shared?: boolean | undefined;
1313
+ tags?: string | undefined;
1314
+ tags_any?: string | undefined;
1315
+ not_tags?: string | undefined;
1316
+ not_tags_any?: string | undefined;
1317
+ searchTerm?: string | undefined;
1318
+ };
1319
+ output: {
1320
+ id: string;
1321
+ name?: string | null | undefined;
1322
+ description?: string | null | undefined;
1323
+ tenant_id?: string | null | undefined;
1324
+ project_id?: string | null | undefined;
1325
+ stateful?: boolean | undefined;
1326
+ shared?: boolean | undefined;
1327
+ tags?: string[] | undefined;
1328
+ security_group_rules?: {
1329
+ id: string;
1330
+ direction?: "ingress" | "egress" | undefined;
1331
+ ethertype?: "IPv4" | "IPv6" | undefined;
1332
+ description?: string | null | undefined;
1333
+ security_group_id?: string | undefined;
1334
+ protocol?: string | null | undefined;
1335
+ port_range_min?: number | null | undefined;
1336
+ port_range_max?: number | null | undefined;
1337
+ remote_ip_prefix?: string | null | undefined;
1338
+ remote_group_id?: string | null | undefined;
1339
+ remote_address_group_id?: string | null | undefined;
1340
+ tenant_id?: string | null | undefined;
1341
+ project_id?: string | null | undefined;
1342
+ revision_number?: number | undefined;
1343
+ tags?: string[] | undefined;
1344
+ created_at?: string | undefined;
1345
+ updated_at?: string | null | undefined;
1346
+ }[] | undefined;
1347
+ revision_number?: number | undefined;
1348
+ created_at?: string | undefined;
1349
+ updated_at?: string | null | undefined;
1350
+ }[];
1351
+ meta: object;
1352
+ }>;
1353
+ getById: _trpc_server.TRPCQueryProcedure<{
1354
+ input: {
1355
+ project_id: string;
1356
+ securityGroupId: string;
1357
+ };
1358
+ output: {
1359
+ id: string;
1360
+ name?: string | null | undefined;
1361
+ description?: string | null | undefined;
1362
+ tenant_id?: string | null | undefined;
1363
+ project_id?: string | null | undefined;
1364
+ stateful?: boolean | undefined;
1365
+ shared?: boolean | undefined;
1366
+ tags?: string[] | undefined;
1367
+ security_group_rules?: {
1368
+ id: string;
1369
+ direction?: "ingress" | "egress" | undefined;
1370
+ ethertype?: "IPv4" | "IPv6" | undefined;
1371
+ description?: string | null | undefined;
1372
+ security_group_id?: string | undefined;
1373
+ protocol?: string | null | undefined;
1374
+ port_range_min?: number | null | undefined;
1375
+ port_range_max?: number | null | undefined;
1376
+ remote_ip_prefix?: string | null | undefined;
1377
+ remote_group_id?: string | null | undefined;
1378
+ remote_address_group_id?: string | null | undefined;
1379
+ tenant_id?: string | null | undefined;
1380
+ project_id?: string | null | undefined;
1381
+ revision_number?: number | undefined;
1382
+ tags?: string[] | undefined;
1383
+ created_at?: string | undefined;
1384
+ updated_at?: string | null | undefined;
1385
+ }[] | undefined;
1386
+ revision_number?: number | undefined;
1387
+ created_at?: string | undefined;
1388
+ updated_at?: string | null | undefined;
1389
+ };
1390
+ meta: object;
1391
+ }>;
1392
+ create: _trpc_server.TRPCMutationProcedure<{
1393
+ input: {
1394
+ project_id: string;
1395
+ name: string;
1396
+ description?: string | undefined;
1397
+ stateful?: boolean | undefined;
1398
+ };
1399
+ output: {
1400
+ id: string;
1401
+ name?: string | null | undefined;
1402
+ description?: string | null | undefined;
1403
+ tenant_id?: string | null | undefined;
1404
+ project_id?: string | null | undefined;
1405
+ stateful?: boolean | undefined;
1406
+ shared?: boolean | undefined;
1407
+ tags?: string[] | undefined;
1408
+ security_group_rules?: {
1409
+ id: string;
1410
+ direction?: "ingress" | "egress" | undefined;
1411
+ ethertype?: "IPv4" | "IPv6" | undefined;
1412
+ description?: string | null | undefined;
1413
+ security_group_id?: string | undefined;
1414
+ protocol?: string | null | undefined;
1415
+ port_range_min?: number | null | undefined;
1416
+ port_range_max?: number | null | undefined;
1417
+ remote_ip_prefix?: string | null | undefined;
1418
+ remote_group_id?: string | null | undefined;
1419
+ remote_address_group_id?: string | null | undefined;
1420
+ tenant_id?: string | null | undefined;
1421
+ project_id?: string | null | undefined;
1422
+ revision_number?: number | undefined;
1423
+ tags?: string[] | undefined;
1424
+ created_at?: string | undefined;
1425
+ updated_at?: string | null | undefined;
1426
+ }[] | undefined;
1427
+ revision_number?: number | undefined;
1428
+ created_at?: string | undefined;
1429
+ updated_at?: string | null | undefined;
1430
+ };
1431
+ meta: object;
1432
+ }>;
1433
+ deleteById: _trpc_server.TRPCMutationProcedure<{
1434
+ input: {
1435
+ project_id: string;
1436
+ securityGroupId: string;
1437
+ };
1438
+ output: void;
1439
+ meta: object;
1440
+ }>;
1441
+ update: _trpc_server.TRPCMutationProcedure<{
1442
+ input: {
1443
+ project_id: string;
1444
+ securityGroupId: string;
1445
+ name?: string | undefined;
1446
+ description?: string | undefined;
1447
+ stateful?: boolean | undefined;
1448
+ };
1449
+ output: {
1450
+ id: string;
1451
+ name?: string | null | undefined;
1452
+ description?: string | null | undefined;
1453
+ tenant_id?: string | null | undefined;
1454
+ project_id?: string | null | undefined;
1455
+ stateful?: boolean | undefined;
1456
+ shared?: boolean | undefined;
1457
+ tags?: string[] | undefined;
1458
+ security_group_rules?: {
1459
+ id: string;
1460
+ direction?: "ingress" | "egress" | undefined;
1461
+ ethertype?: "IPv4" | "IPv6" | undefined;
1462
+ description?: string | null | undefined;
1463
+ security_group_id?: string | undefined;
1464
+ protocol?: string | null | undefined;
1465
+ port_range_min?: number | null | undefined;
1466
+ port_range_max?: number | null | undefined;
1467
+ remote_ip_prefix?: string | null | undefined;
1468
+ remote_group_id?: string | null | undefined;
1469
+ remote_address_group_id?: string | null | undefined;
1470
+ tenant_id?: string | null | undefined;
1471
+ project_id?: string | null | undefined;
1472
+ revision_number?: number | undefined;
1473
+ tags?: string[] | undefined;
1474
+ created_at?: string | undefined;
1475
+ updated_at?: string | null | undefined;
1476
+ }[] | undefined;
1477
+ revision_number?: number | undefined;
1478
+ created_at?: string | undefined;
1479
+ updated_at?: string | null | undefined;
1480
+ };
1481
+ meta: object;
1482
+ }>;
1483
+ };
1484
+ securityGroupRule: {
1485
+ delete: _trpc_server.TRPCMutationProcedure<{
1486
+ input: {
1487
+ project_id: string;
1488
+ ruleId: string;
1489
+ };
1490
+ output: void;
1491
+ meta: object;
1492
+ }>;
1493
+ create: _trpc_server.TRPCMutationProcedure<{
1494
+ input: {
1495
+ project_id: string;
1496
+ security_group_id: string;
1497
+ direction: "ingress" | "egress";
1498
+ ethertype?: "IPv4" | "IPv6" | undefined;
1499
+ description?: string | undefined;
1500
+ protocol?: string | null | undefined;
1501
+ port_range_min?: number | null | undefined;
1502
+ port_range_max?: number | null | undefined;
1503
+ remote_ip_prefix?: string | null | undefined;
1504
+ remote_group_id?: string | null | undefined;
1505
+ remote_address_group_id?: string | null | undefined;
1506
+ };
1507
+ output: {
1508
+ id: string;
1509
+ direction?: "ingress" | "egress" | undefined;
1510
+ ethertype?: "IPv4" | "IPv6" | undefined;
1511
+ description?: string | null | undefined;
1512
+ security_group_id?: string | undefined;
1513
+ protocol?: string | null | undefined;
1514
+ port_range_min?: number | null | undefined;
1515
+ port_range_max?: number | null | undefined;
1516
+ remote_ip_prefix?: string | null | undefined;
1517
+ remote_group_id?: string | null | undefined;
1518
+ remote_address_group_id?: string | null | undefined;
1519
+ tenant_id?: string | null | undefined;
1520
+ project_id?: string | null | undefined;
1521
+ revision_number?: number | undefined;
1522
+ tags?: string[] | undefined;
1523
+ created_at?: string | undefined;
1524
+ updated_at?: string | null | undefined;
1525
+ };
1526
+ meta: object;
1527
+ }>;
1528
+ };
1529
+ rbacPolicy: {
1530
+ list: _trpc_server.TRPCQueryProcedure<{
1531
+ input: {
1532
+ project_id: string;
1533
+ securityGroupId: string;
1534
+ };
1535
+ output: {
1536
+ id: string;
1537
+ object_type: "network" | "security_group" | "qos_policy";
1538
+ object_id: string;
1539
+ action: "access_as_shared" | "access_as_external";
1540
+ target_tenant: string;
1541
+ tenant_id?: string | null | undefined;
1542
+ project_id?: string | null | undefined;
1543
+ }[];
1544
+ meta: object;
1545
+ }>;
1546
+ create: _trpc_server.TRPCMutationProcedure<{
1547
+ input: {
1548
+ project_id: string;
1549
+ securityGroupId: string;
1550
+ targetTenant: string;
1551
+ };
1552
+ output: {
1553
+ id: string;
1554
+ object_type: "network" | "security_group" | "qos_policy";
1555
+ object_id: string;
1556
+ action: "access_as_shared" | "access_as_external";
1557
+ target_tenant: string;
1558
+ tenant_id?: string | null | undefined;
1559
+ project_id?: string | null | undefined;
1560
+ };
1561
+ meta: object;
1562
+ }>;
1563
+ update: _trpc_server.TRPCMutationProcedure<{
1564
+ input: {
1565
+ project_id: string;
1566
+ policyId: string;
1567
+ targetTenant: string;
1568
+ };
1569
+ output: {
1570
+ id: string;
1571
+ object_type: "network" | "security_group" | "qos_policy";
1572
+ object_id: string;
1573
+ action: "access_as_shared" | "access_as_external";
1574
+ target_tenant: string;
1575
+ tenant_id?: string | null | undefined;
1576
+ project_id?: string | null | undefined;
1577
+ };
1578
+ meta: object;
1579
+ }>;
1580
+ delete: _trpc_server.TRPCMutationProcedure<{
1581
+ input: {
1582
+ project_id: string;
1583
+ policyId: string;
1584
+ };
1585
+ output: void;
1586
+ meta: object;
1587
+ }>;
1588
+ };
1589
+ }>>;
1590
+ }> & _trpc_server.TRPCDecorateCreateRouterOptions<{
1591
+ project: _trpc_server.TRPCBuiltRouter<{
1592
+ ctx: AuroraPortalContext;
1593
+ meta: object;
1594
+ errorShape: _trpc_server.TRPCDefaultErrorShape;
1595
+ transformer: false;
1596
+ }, _trpc_server.TRPCDecorateCreateRouterOptions<{
1597
+ getAuthProjects: _trpc_server.TRPCQueryProcedure<{
1598
+ input: void;
1599
+ output: {
1600
+ id: string;
1601
+ name: string;
1602
+ enabled: boolean;
1603
+ domain_id?: string | null | undefined;
1604
+ parent_id?: string | null | undefined;
1605
+ is_domain?: boolean | null | undefined;
1606
+ tags?: string[] | null | undefined;
1607
+ options?: Record<string, string | boolean> | null | undefined;
1608
+ description?: string | null | undefined;
1609
+ links?: {
1610
+ self?: string | null | undefined;
1611
+ } | undefined;
1612
+ domain_name?: string | undefined;
1613
+ parents?: {
1614
+ project: {
1615
+ id: string;
1616
+ name: string;
1617
+ enabled: boolean;
1618
+ domain_id?: string | null | undefined;
1619
+ parent_id?: string | null | undefined;
1620
+ is_domain?: boolean | null | undefined;
1621
+ tags?: string[] | null | undefined;
1622
+ options?: Record<string, string | boolean> | null | undefined;
1623
+ description?: string | null | undefined;
1624
+ links?: {
1625
+ self?: string | null | undefined;
1626
+ } | undefined;
1627
+ };
1628
+ }[] | undefined;
1629
+ }[] | undefined;
1630
+ meta: object;
1631
+ }>;
1632
+ searchProjects: _trpc_server.TRPCQueryProcedure<{
1633
+ input: {
1634
+ search?: string | undefined;
1635
+ } | undefined;
1636
+ output: {
1637
+ id: string;
1638
+ name: string;
1639
+ enabled: boolean;
1640
+ domain_id?: string | null | undefined;
1641
+ parent_id?: string | null | undefined;
1642
+ is_domain?: boolean | null | undefined;
1643
+ tags?: string[] | null | undefined;
1644
+ options?: Record<string, string | boolean> | null | undefined;
1645
+ description?: string | null | undefined;
1646
+ links?: {
1647
+ self?: string | null | undefined;
1648
+ } | undefined;
1649
+ domain_name?: string | undefined;
1650
+ parents?: {
1651
+ project: {
1652
+ id: string;
1653
+ name: string;
1654
+ enabled: boolean;
1655
+ domain_id?: string | null | undefined;
1656
+ parent_id?: string | null | undefined;
1657
+ is_domain?: boolean | null | undefined;
1658
+ tags?: string[] | null | undefined;
1659
+ options?: Record<string, string | boolean> | null | undefined;
1660
+ description?: string | null | undefined;
1661
+ links?: {
1662
+ self?: string | null | undefined;
1663
+ } | undefined;
1664
+ };
1665
+ }[] | undefined;
1666
+ }[] | undefined;
1667
+ meta: object;
1668
+ }>;
1669
+ }>>;
1670
+ }> & _trpc_server.TRPCDecorateCreateRouterOptions<{
1671
+ storage: {
1672
+ canUser: _trpc_server.TRPCQueryProcedure<{
1673
+ input: {
1674
+ project_id: string;
1675
+ permission: string | string[];
1676
+ };
1677
+ output: boolean[];
1678
+ meta: object;
1679
+ }>;
1680
+ swift: _trpc_server.TRPCBuiltRouter<{
1681
+ ctx: AuroraPortalContext;
1682
+ meta: object;
1683
+ errorShape: _trpc_server.TRPCDefaultErrorShape;
1684
+ transformer: false;
1685
+ }, _trpc_server.TRPCDecorateCreateRouterOptions<{
1686
+ getServiceInfo: _trpc_server.TRPCQueryProcedure<{
1687
+ input: void;
1688
+ output: {
1689
+ swift: {
1690
+ version?: string | undefined;
1691
+ allow_account_management?: boolean | undefined;
1692
+ account_autocreate?: boolean | undefined;
1693
+ policies?: {
1694
+ name: string;
1695
+ default?: boolean | undefined;
1696
+ }[] | undefined;
1697
+ bulk_delete?: {
1698
+ max_deletes_per_request: number;
1699
+ max_failed_deletes: number;
1700
+ } | undefined;
1701
+ bulk_upload?: {
1702
+ max_containers_per_extraction: number;
1703
+ max_failed_extractions: number;
1704
+ } | undefined;
1705
+ container_quotas?: unknown;
1706
+ account_quotas?: unknown;
1707
+ slo?: {
1708
+ max_manifest_segments: number;
1709
+ max_manifest_size: number;
1710
+ min_segment_size: number;
1711
+ } | undefined;
1712
+ tempurl?: {
1713
+ methods: string[];
1714
+ } | undefined;
1715
+ container_listing_limit?: number | undefined;
1716
+ account_listing_limit?: number | undefined;
1717
+ max_container_name_length?: number | undefined;
1718
+ max_object_name_length?: number | undefined;
1719
+ max_file_size?: number | undefined;
1720
+ max_meta_name_length?: number | undefined;
1721
+ max_meta_value_length?: number | undefined;
1722
+ max_meta_count?: number | undefined;
1723
+ max_meta_overall_size?: number | undefined;
1724
+ max_header_size?: number | undefined;
1725
+ container_sync?: unknown;
1726
+ symlink?: unknown;
1727
+ versioned_writes?: unknown;
1728
+ };
1729
+ };
1730
+ meta: object;
1731
+ }>;
1732
+ listContainers: _trpc_server.TRPCQueryProcedure<{
1733
+ input: {
1734
+ project_id: string;
1735
+ account?: string | undefined;
1736
+ limit?: number | undefined;
1737
+ marker?: string | undefined;
1738
+ end_marker?: string | undefined;
1739
+ prefix?: string | undefined;
1740
+ delimiter?: string | undefined;
1741
+ reverse?: boolean | undefined;
1742
+ format?: "json" | "xml" | "plain" | undefined;
1743
+ xNewest?: boolean | undefined;
1744
+ };
1745
+ output: {
1746
+ name: string;
1747
+ count: number;
1748
+ bytes: number;
1749
+ last_modified?: string | undefined;
1750
+ }[];
1751
+ meta: object;
1752
+ }>;
1753
+ getAccountMetadata: _trpc_server.TRPCQueryProcedure<{
1754
+ input: {
1755
+ project_id: string;
1756
+ account?: string | undefined;
1757
+ xNewest?: boolean | undefined;
1758
+ };
1759
+ output: {
1760
+ objectCount: number;
1761
+ containerCount: number;
1762
+ bytesUsed: number;
1763
+ metadata?: Record<string, string> | undefined;
1764
+ quotaBytes?: number | undefined;
1765
+ tempUrlKey?: string | undefined;
1766
+ tempUrlKey2?: string | undefined;
1767
+ };
1768
+ meta: object;
1769
+ }>;
1770
+ updateAccountMetadata: _trpc_server.TRPCMutationProcedure<{
1771
+ input: {
1772
+ project_id: string;
1773
+ metadata: Record<string, string>;
1774
+ account?: string | undefined;
1775
+ removeMetadata?: string[] | undefined;
1776
+ tempUrlKey?: string | undefined;
1777
+ tempUrlKey2?: string | undefined;
1778
+ };
1779
+ output: boolean;
1780
+ meta: object;
1781
+ }>;
1782
+ deleteAccount: _trpc_server.TRPCMutationProcedure<{
1783
+ input: {
1784
+ project_id: string;
1785
+ account?: string | undefined;
1786
+ };
1787
+ output: boolean;
1788
+ meta: object;
1789
+ }>;
1790
+ listObjects: _trpc_server.TRPCQueryProcedure<{
1791
+ input: {
1792
+ project_id: string;
1793
+ container: string;
1794
+ account?: string | undefined;
1795
+ limit?: number | undefined;
1796
+ marker?: string | undefined;
1797
+ end_marker?: string | undefined;
1798
+ prefix?: string | undefined;
1799
+ delimiter?: string | undefined;
1800
+ path?: string | undefined;
1801
+ reverse?: boolean | undefined;
1802
+ format?: "json" | "xml" | "plain" | undefined;
1803
+ xNewest?: boolean | undefined;
1804
+ };
1805
+ output: {
1806
+ name: string;
1807
+ hash: string;
1808
+ bytes: number;
1809
+ content_type: string;
1810
+ last_modified: string;
1811
+ symlink_path?: string | undefined;
1812
+ }[];
1813
+ meta: object;
1814
+ }>;
1815
+ createContainer: _trpc_server.TRPCMutationProcedure<{
1816
+ input: {
1817
+ project_id: string;
1818
+ container: string;
1819
+ account?: string | undefined;
1820
+ metadata?: Record<string, string> | undefined;
1821
+ read?: string | undefined;
1822
+ write?: string | undefined;
1823
+ storagePolicy?: string | undefined;
1824
+ versionsLocation?: string | undefined;
1825
+ historyLocation?: string | undefined;
1826
+ quotaBytes?: number | undefined;
1827
+ quotaCount?: number | undefined;
1828
+ tempUrlKey?: string | undefined;
1829
+ tempUrlKey2?: string | undefined;
1830
+ };
1831
+ output: boolean;
1832
+ meta: object;
1833
+ }>;
1834
+ getContainerMetadata: _trpc_server.TRPCQueryProcedure<{
1835
+ input: {
1836
+ project_id: string;
1837
+ container: string;
1838
+ account?: string | undefined;
1839
+ xNewest?: boolean | undefined;
1840
+ };
1841
+ output: {
1842
+ objectCount: number;
1843
+ bytesUsed: number;
1844
+ metadata?: Record<string, string> | undefined;
1845
+ quotaBytes?: number | undefined;
1846
+ quotaCount?: number | undefined;
1847
+ storagePolicy?: string | undefined;
1848
+ versionsLocation?: string | undefined;
1849
+ historyLocation?: string | undefined;
1850
+ versionsEnabled?: boolean | undefined;
1851
+ read?: string | undefined;
1852
+ write?: string | undefined;
1853
+ syncTo?: string | undefined;
1854
+ syncKey?: string | undefined;
1855
+ tempUrlKey?: string | undefined;
1856
+ tempUrlKey2?: string | undefined;
1857
+ };
1858
+ meta: object;
1859
+ }>;
1860
+ updateContainerMetadata: _trpc_server.TRPCMutationProcedure<{
1861
+ input: {
1862
+ project_id: string;
1863
+ container: string;
1864
+ account?: string | undefined;
1865
+ metadata?: Record<string, string> | undefined;
1866
+ removeMetadata?: string[] | undefined;
1867
+ read?: string | undefined;
1868
+ write?: string | undefined;
1869
+ versionsLocation?: string | undefined;
1870
+ historyLocation?: string | undefined;
1871
+ removeVersionsLocation?: boolean | undefined;
1872
+ removeHistoryLocation?: boolean | undefined;
1873
+ quotaBytes?: number | undefined;
1874
+ quotaCount?: number | undefined;
1875
+ tempUrlKey?: string | undefined;
1876
+ tempUrlKey2?: string | undefined;
1877
+ };
1878
+ output: boolean;
1879
+ meta: object;
1880
+ }>;
1881
+ getContainerPublicUrl: _trpc_server.TRPCQueryProcedure<{
1882
+ input: {
1883
+ project_id: string;
1884
+ container: string;
1885
+ account?: string | undefined;
1886
+ xNewest?: boolean | undefined;
1887
+ };
1888
+ output: string | null;
1889
+ meta: object;
1890
+ }>;
1891
+ deleteContainer: _trpc_server.TRPCMutationProcedure<{
1892
+ input: {
1893
+ project_id: string;
1894
+ container: string;
1895
+ account?: string | undefined;
1896
+ };
1897
+ output: boolean;
1898
+ meta: object;
1899
+ }>;
1900
+ emptyContainer: _trpc_server.TRPCMutationProcedure<{
1901
+ input: {
1902
+ project_id: string;
1903
+ container: string;
1904
+ account?: string | undefined;
1905
+ };
1906
+ output: number;
1907
+ meta: object;
1908
+ }>;
1909
+ getObjectMetadata: _trpc_server.TRPCQueryProcedure<{
1910
+ input: {
1911
+ project_id: string;
1912
+ container: string;
1913
+ object: string;
1914
+ account?: string | undefined;
1915
+ multipartManifest?: "get" | undefined;
1916
+ symlink?: "get" | undefined;
1917
+ xNewest?: boolean | undefined;
1918
+ ifMatch?: string | undefined;
1919
+ ifNoneMatch?: string | undefined;
1920
+ ifModifiedSince?: string | undefined;
1921
+ ifUnmodifiedSince?: string | undefined;
1922
+ };
1923
+ output: {
1924
+ contentType?: string | undefined;
1925
+ contentLength?: number | undefined;
1926
+ contentEncoding?: string | undefined;
1927
+ contentDisposition?: string | undefined;
1928
+ etag?: string | undefined;
1929
+ lastModified?: string | undefined;
1930
+ deleteAt?: number | undefined;
1931
+ customMetadata?: Record<string, string> | undefined;
1932
+ objectManifest?: string | undefined;
1933
+ staticLargeObject?: boolean | undefined;
1934
+ symlinkTarget?: string | undefined;
1935
+ symlinkTargetAccount?: string | undefined;
1936
+ };
1937
+ meta: object;
1938
+ }>;
1939
+ updateObjectMetadata: _trpc_server.TRPCMutationProcedure<{
1940
+ input: {
1941
+ project_id: string;
1942
+ container: string;
1943
+ object: string;
1944
+ account?: string | undefined;
1945
+ metadata?: Record<string, string> | undefined;
1946
+ contentType?: string | undefined;
1947
+ contentEncoding?: string | undefined;
1948
+ contentDisposition?: string | undefined;
1949
+ deleteAt?: number | undefined;
1950
+ deleteAfter?: number | undefined;
1951
+ };
1952
+ output: boolean;
1953
+ meta: object;
1954
+ }>;
1955
+ copyObject: _trpc_server.TRPCMutationProcedure<{
1956
+ input: {
1957
+ project_id: string;
1958
+ container: string;
1959
+ object: string;
1960
+ destination: string;
1961
+ account?: string | undefined;
1962
+ destinationAccount?: string | undefined;
1963
+ metadata?: Record<string, string> | undefined;
1964
+ contentType?: string | undefined;
1965
+ contentEncoding?: string | undefined;
1966
+ contentDisposition?: string | undefined;
1967
+ freshMetadata?: boolean | undefined;
1968
+ multipartManifest?: "get" | undefined;
1969
+ symlink?: "get" | undefined;
1970
+ };
1971
+ output: boolean;
1972
+ meta: object;
1973
+ }>;
1974
+ deleteObject: _trpc_server.TRPCMutationProcedure<{
1975
+ input: {
1976
+ project_id: string;
1977
+ container: string;
1978
+ object: string;
1979
+ account?: string | undefined;
1980
+ multipartManifest?: "delete" | undefined;
1981
+ };
1982
+ output: boolean;
1983
+ meta: object;
1984
+ }>;
1985
+ bulkDelete: _trpc_server.TRPCMutationProcedure<{
1986
+ input: {
1987
+ project_id: string;
1988
+ objects: string[];
1989
+ account?: string | undefined;
1990
+ };
1991
+ output: {
1992
+ numberDeleted: number;
1993
+ numberNotFound: number;
1994
+ errors: {
1995
+ path: string;
1996
+ status: string;
1997
+ error: string;
1998
+ }[];
1999
+ };
2000
+ meta: object;
2001
+ }>;
2002
+ createFolder: _trpc_server.TRPCMutationProcedure<{
2003
+ input: {
2004
+ project_id: string;
2005
+ container: string;
2006
+ folderPath: string;
2007
+ account?: string | undefined;
2008
+ metadata?: Record<string, string> | undefined;
2009
+ };
2010
+ output: boolean;
2011
+ meta: object;
2012
+ }>;
2013
+ listFolderContents: _trpc_server.TRPCQueryProcedure<{
2014
+ input: {
2015
+ project_id: string;
2016
+ container: string;
2017
+ account?: string | undefined;
2018
+ folderPath?: string | undefined;
2019
+ limit?: number | undefined;
2020
+ marker?: string | undefined;
2021
+ };
2022
+ output: {
2023
+ folders: {
2024
+ name: string;
2025
+ path: string;
2026
+ }[];
2027
+ objects: {
2028
+ name: string;
2029
+ hash: string;
2030
+ bytes: number;
2031
+ content_type: string;
2032
+ last_modified: string;
2033
+ symlink_path?: string | undefined;
2034
+ }[];
2035
+ };
2036
+ meta: object;
2037
+ }>;
2038
+ moveFolder: _trpc_server.TRPCMutationProcedure<{
2039
+ input: {
2040
+ project_id: string;
2041
+ container: string;
2042
+ sourcePath: string;
2043
+ destinationPath: string;
2044
+ account?: string | undefined;
2045
+ destinationContainer?: string | undefined;
2046
+ };
2047
+ output: number;
2048
+ meta: object;
2049
+ }>;
2050
+ deleteFolder: _trpc_server.TRPCMutationProcedure<{
2051
+ input: {
2052
+ project_id: string;
2053
+ container: string;
2054
+ folderPath: string;
2055
+ account?: string | undefined;
2056
+ recursive?: boolean | undefined;
2057
+ };
2058
+ output: number;
2059
+ meta: object;
2060
+ }>;
2061
+ generateTempUrl: _trpc_server.TRPCMutationProcedure<{
2062
+ input: {
2063
+ project_id: string;
2064
+ container: string;
2065
+ object: string;
2066
+ method: "DELETE" | "GET" | "POST" | "PUT";
2067
+ expiresIn: number;
2068
+ account?: string | undefined;
2069
+ filename?: string | undefined;
2070
+ };
2071
+ output: {
2072
+ url: string;
2073
+ expiresAt: number;
2074
+ };
2075
+ meta: object;
2076
+ }>;
2077
+ uploadObject: _trpc_server.TRPCMutationProcedure<{
2078
+ input: _trpc_server_http.OctetInput;
2079
+ output: {
2080
+ success: boolean;
2081
+ };
2082
+ meta: object;
2083
+ }>;
2084
+ watchUploadProgress: _trpc_server.TRPCSubscriptionProcedure<{
2085
+ input: {
2086
+ uploadId: string;
2087
+ };
2088
+ output: AsyncIterable<{
2089
+ uploaded: number;
2090
+ total: number;
2091
+ percent: number;
2092
+ }, void, any>;
2093
+ meta: object;
2094
+ }>;
2095
+ downloadObject: _trpc_server.TRPCMutationProcedure<{
2096
+ input: {
2097
+ project_id: string;
2098
+ container: string;
2099
+ object: string;
2100
+ downloadId: string;
2101
+ account?: string | undefined;
2102
+ filename?: string | undefined;
2103
+ };
2104
+ output: AsyncGenerator<{
2105
+ chunk: string;
2106
+ downloaded: number;
2107
+ total: number;
2108
+ contentType?: string;
2109
+ filename?: string;
2110
+ }, any, any>;
2111
+ meta: object;
2112
+ }>;
2113
+ watchDownloadProgress: _trpc_server.TRPCSubscriptionProcedure<{
2114
+ input: {
2115
+ downloadId: string;
2116
+ };
2117
+ output: AsyncIterable<{
2118
+ downloaded: number;
2119
+ total: number;
2120
+ percent: number;
2121
+ }, void, any>;
2122
+ meta: object;
2123
+ }>;
2124
+ }>>;
2125
+ ceph: _trpc_server.TRPCBuiltRouter<{
2126
+ ctx: AuroraPortalContext;
2127
+ meta: object;
2128
+ errorShape: _trpc_server.TRPCDefaultErrorShape;
2129
+ transformer: false;
2130
+ }, _trpc_server.TRPCDecorateCreateRouterOptions<{
2131
+ ec2Credentials: _trpc_server.TRPCBuiltRouter<{
2132
+ ctx: AuroraPortalContext;
2133
+ meta: object;
2134
+ errorShape: _trpc_server.TRPCDefaultErrorShape;
2135
+ transformer: false;
2136
+ }, _trpc_server.TRPCDecorateCreateRouterOptions<{
2137
+ list: _trpc_server.TRPCQueryProcedure<{
2138
+ input: {
2139
+ project_id: string;
2140
+ };
2141
+ output: {
2142
+ id: string;
2143
+ access: string;
2144
+ user_id: string;
2145
+ project_id: string;
2146
+ }[];
2147
+ meta: object;
2148
+ }>;
2149
+ create: _trpc_server.TRPCMutationProcedure<{
2150
+ input: {
2151
+ project_id: string;
2152
+ };
2153
+ output: {
2154
+ id: string;
2155
+ access: string;
2156
+ user_id: string;
2157
+ project_id: string;
2158
+ secret: string;
2159
+ };
2160
+ meta: object;
2161
+ }>;
2162
+ delete: _trpc_server.TRPCMutationProcedure<{
2163
+ input: {
2164
+ project_id: string;
2165
+ credentialId: string;
2166
+ };
2167
+ output: {
2168
+ success: true;
2169
+ };
2170
+ meta: object;
2171
+ }>;
2172
+ }>>;
2173
+ containers: _trpc_server.TRPCBuiltRouter<{
2174
+ ctx: AuroraPortalContext;
2175
+ meta: object;
2176
+ errorShape: _trpc_server.TRPCDefaultErrorShape;
2177
+ transformer: false;
2178
+ }, _trpc_server.TRPCDecorateCreateRouterOptions<{
2179
+ status: _trpc_server.TRPCQueryProcedure<{
2180
+ input: {
2181
+ project_id: string;
2182
+ };
2183
+ output: {
2184
+ hasCredentials: boolean;
2185
+ };
2186
+ meta: object;
2187
+ }>;
2188
+ list: _trpc_server.TRPCQueryProcedure<{
2189
+ input: {
2190
+ project_id: string;
2191
+ includeMetadata?: boolean | undefined;
2192
+ };
2193
+ output: {
2194
+ name: string;
2195
+ count: number;
2196
+ bytes: number;
2197
+ last_modified?: string | undefined;
2198
+ creationDate?: string | undefined;
2199
+ }[];
2200
+ meta: object;
2201
+ }>;
2202
+ create: _trpc_server.TRPCMutationProcedure<{
2203
+ input: {
2204
+ project_id: string;
2205
+ bucketName: string;
2206
+ enableVersioning?: boolean | undefined;
2207
+ };
2208
+ output: {
2209
+ success: boolean;
2210
+ versioningError?: string | undefined;
2211
+ };
2212
+ meta: object;
2213
+ }>;
2214
+ delete: _trpc_server.TRPCMutationProcedure<{
2215
+ input: {
2216
+ project_id: string;
2217
+ bucketName: string;
2218
+ };
2219
+ output: boolean;
2220
+ meta: object;
2221
+ }>;
2222
+ }>>;
2223
+ objects: _trpc_server.TRPCBuiltRouter<{
2224
+ ctx: AuroraPortalContext;
2225
+ meta: object;
2226
+ errorShape: _trpc_server.TRPCDefaultErrorShape;
2227
+ transformer: false;
2228
+ }, _trpc_server.TRPCDecorateCreateRouterOptions<{
2229
+ list: _trpc_server.TRPCQueryProcedure<{
2230
+ input: {
2231
+ project_id: string;
2232
+ containerName: string;
2233
+ prefix?: string | undefined;
2234
+ delimiter?: string | undefined;
2235
+ maxKeys?: number | undefined;
2236
+ continuationToken?: string | undefined;
2237
+ keyMarker?: string | undefined;
2238
+ versionIdMarker?: string | undefined;
2239
+ showVersions?: boolean | undefined;
2240
+ };
2241
+ output: {
2242
+ objects: {
2243
+ key: string;
2244
+ size: number;
2245
+ lastModified?: string | undefined;
2246
+ etag?: string | undefined;
2247
+ storageClass?: string | undefined;
2248
+ }[];
2249
+ folders: {
2250
+ prefix: string;
2251
+ }[];
2252
+ isTruncated: boolean;
2253
+ nextContinuationToken?: string | undefined;
2254
+ versions?: {
2255
+ key: string;
2256
+ versionId: string;
2257
+ isLatest: boolean;
2258
+ size: number;
2259
+ isDeleteMarker: boolean;
2260
+ lastModified?: string | undefined;
2261
+ etag?: string | undefined;
2262
+ storageClass?: string | undefined;
2263
+ }[] | undefined;
2264
+ nextKeyMarker?: string | undefined;
2265
+ nextVersionIdMarker?: string | undefined;
2266
+ };
2267
+ meta: object;
2268
+ }>;
2269
+ getDetails: _trpc_server.TRPCQueryProcedure<{
2270
+ input: {
2271
+ project_id: string;
2272
+ containerName: string;
2273
+ objectKey: string;
2274
+ };
2275
+ output: {
2276
+ key: string;
2277
+ size: number;
2278
+ lastModified?: string | undefined;
2279
+ etag?: string | undefined;
2280
+ storageClass?: string | undefined;
2281
+ contentType?: string | undefined;
2282
+ metadata?: Record<string, string> | undefined;
2283
+ };
2284
+ meta: object;
2285
+ }>;
2286
+ deleteAll: _trpc_server.TRPCMutationProcedure<{
2287
+ input: {
2288
+ project_id: string;
2289
+ containerName: string;
2290
+ includeVersionsAndDeleteMarkers?: boolean | undefined;
2291
+ };
2292
+ output: number;
2293
+ meta: object;
2294
+ }>;
2295
+ delete: _trpc_server.TRPCMutationProcedure<{
2296
+ input: {
2297
+ project_id: string;
2298
+ containerName: string;
2299
+ objectKey: string;
2300
+ };
2301
+ output: boolean;
2302
+ meta: object;
2303
+ }>;
2304
+ createFolder: _trpc_server.TRPCMutationProcedure<{
2305
+ input: {
2306
+ project_id: string;
2307
+ containerName: string;
2308
+ folderPath: string;
2309
+ };
2310
+ output: boolean;
2311
+ meta: object;
2312
+ }>;
2313
+ copy: _trpc_server.TRPCMutationProcedure<{
2314
+ input: {
2315
+ project_id: string;
2316
+ sourceBucket: string;
2317
+ sourceKey: string;
2318
+ destinationBucket: string;
2319
+ destinationKey: string;
2320
+ copyMetadata?: boolean | undefined;
2321
+ };
2322
+ output: {
2323
+ key: string;
2324
+ etag?: string | undefined;
2325
+ lastModified?: string | undefined;
2326
+ };
2327
+ meta: object;
2328
+ }>;
2329
+ move: _trpc_server.TRPCMutationProcedure<{
2330
+ input: {
2331
+ project_id: string;
2332
+ sourceBucket: string;
2333
+ sourceKey: string;
2334
+ destinationBucket: string;
2335
+ destinationKey: string;
2336
+ };
2337
+ output: boolean;
2338
+ meta: object;
2339
+ }>;
2340
+ updateMetadata: _trpc_server.TRPCMutationProcedure<{
2341
+ input: {
2342
+ project_id: string;
2343
+ containerName: string;
2344
+ objectKey: string;
2345
+ metadata: Record<string, string>;
2346
+ };
2347
+ output: {
2348
+ key: string;
2349
+ size: number;
2350
+ lastModified?: string | undefined;
2351
+ etag?: string | undefined;
2352
+ storageClass?: string | undefined;
2353
+ contentType?: string | undefined;
2354
+ metadata?: Record<string, string> | undefined;
2355
+ };
2356
+ meta: object;
2357
+ }>;
2358
+ downloadObject: _trpc_server.TRPCMutationProcedure<{
2359
+ input: {
2360
+ project_id: string;
2361
+ containerName: string;
2362
+ objectKey: string;
2363
+ filename: string;
2364
+ downloadId: string;
2365
+ };
2366
+ output: AsyncGenerator<{
2367
+ chunk: string;
2368
+ downloaded: number;
2369
+ total: number;
2370
+ contentType?: string;
2371
+ filename?: string;
2372
+ }, any, any>;
2373
+ meta: object;
2374
+ }>;
2375
+ watchDownloadProgress: _trpc_server.TRPCSubscriptionProcedure<{
2376
+ input: {
2377
+ project_id: string;
2378
+ downloadId: string;
2379
+ };
2380
+ output: AsyncIterable<{
2381
+ downloaded: number;
2382
+ total: number;
2383
+ percent: number;
2384
+ }, void, any>;
2385
+ meta: object;
2386
+ }>;
2387
+ }>>;
2388
+ versioning: _trpc_server.TRPCBuiltRouter<{
2389
+ ctx: AuroraPortalContext;
2390
+ meta: object;
2391
+ errorShape: _trpc_server.TRPCDefaultErrorShape;
2392
+ transformer: false;
2393
+ }, _trpc_server.TRPCDecorateCreateRouterOptions<{
2394
+ getStatus: _trpc_server.TRPCQueryProcedure<{
2395
+ input: {
2396
+ project_id: string;
2397
+ bucket: string;
2398
+ };
2399
+ output: {
2400
+ status: "Enabled" | "Suspended" | "Unversioned";
2401
+ mfaDelete?: "Enabled" | "Disabled" | undefined;
2402
+ };
2403
+ meta: object;
2404
+ }>;
2405
+ setStatus: _trpc_server.TRPCMutationProcedure<{
2406
+ input: {
2407
+ project_id: string;
2408
+ bucket: string;
2409
+ status: "Enabled" | "Suspended";
2410
+ };
2411
+ output: {
2412
+ success: boolean;
2413
+ };
2414
+ meta: object;
2415
+ }>;
2416
+ listVersions: _trpc_server.TRPCQueryProcedure<{
2417
+ input: {
2418
+ project_id: string;
2419
+ bucket: string;
2420
+ prefix?: string | undefined;
2421
+ keyMarker?: string | undefined;
2422
+ versionIdMarker?: string | undefined;
2423
+ maxKeys?: number | undefined;
2424
+ };
2425
+ output: ListVersionsOutput;
2426
+ meta: object;
2427
+ }>;
2428
+ listObjectVersions: _trpc_server.TRPCQueryProcedure<{
2429
+ input: {
2430
+ project_id: string;
2431
+ bucket: string;
2432
+ key: string;
2433
+ };
2434
+ output: {
2435
+ key: string;
2436
+ versionId: string;
2437
+ isLatest: boolean;
2438
+ lastModified: string;
2439
+ size: number;
2440
+ isDeleteMarker: boolean;
2441
+ storageClass?: string | undefined;
2442
+ owner?: {
2443
+ displayName?: string | undefined;
2444
+ id?: string | undefined;
2445
+ } | undefined;
2446
+ etag?: string | undefined;
2447
+ }[];
2448
+ meta: object;
2449
+ }>;
2450
+ deleteVersion: _trpc_server.TRPCMutationProcedure<{
2451
+ input: {
2452
+ project_id: string;
2453
+ bucket: string;
2454
+ key: string;
2455
+ versionId: string;
2456
+ };
2457
+ output: {
2458
+ success: boolean;
2459
+ };
2460
+ meta: object;
2461
+ }>;
2462
+ restoreVersion: _trpc_server.TRPCMutationProcedure<{
2463
+ input: {
2464
+ project_id: string;
2465
+ bucket: string;
2466
+ key: string;
2467
+ versionId: string;
2468
+ };
2469
+ output: {
2470
+ success: boolean;
2471
+ versionId: string;
2472
+ };
2473
+ meta: object;
2474
+ }>;
2475
+ checkDeletedContent: _trpc_server.TRPCQueryProcedure<{
2476
+ input: {
2477
+ project_id: string;
2478
+ bucket: string;
2479
+ folders: string[];
2480
+ };
2481
+ output: {
2482
+ prefix: string;
2483
+ hasDeletedContent: boolean;
2484
+ isFolderDeleted: boolean;
2485
+ }[];
2486
+ meta: object;
2487
+ }>;
2488
+ }>>;
2489
+ bucketPolicy: _trpc_server.TRPCBuiltRouter<{
2490
+ ctx: AuroraPortalContext;
2491
+ meta: object;
2492
+ errorShape: _trpc_server.TRPCDefaultErrorShape;
2493
+ transformer: false;
2494
+ }, _trpc_server.TRPCDecorateCreateRouterOptions<{
2495
+ get: _trpc_server.TRPCQueryProcedure<{
2496
+ input: {
2497
+ project_id: string;
2498
+ bucketName: string;
2499
+ };
2500
+ output: {
2501
+ policy: {
2502
+ Version: string;
2503
+ Statement: {
2504
+ Effect: "Allow" | "Deny";
2505
+ Sid?: string | undefined;
2506
+ Principal?: string | {
2507
+ AWS?: string | string[] | undefined;
2508
+ Service?: string | string[] | undefined;
2509
+ Federated?: string | string[] | undefined;
2510
+ } | undefined;
2511
+ NotPrincipal?: string | {
2512
+ AWS?: string | string[] | undefined;
2513
+ Service?: string | string[] | undefined;
2514
+ Federated?: string | string[] | undefined;
2515
+ } | undefined;
2516
+ Action?: string | string[] | undefined;
2517
+ NotAction?: string | string[] | undefined;
2518
+ Resource?: string | string[] | undefined;
2519
+ NotResource?: string | string[] | undefined;
2520
+ Condition?: Record<string, Record<string, string | number | boolean | string[]>> | undefined;
2521
+ }[];
2522
+ Id?: string | undefined;
2523
+ } | null;
2524
+ policyText: string | null;
2525
+ };
2526
+ meta: object;
2527
+ }>;
2528
+ set: _trpc_server.TRPCMutationProcedure<{
2529
+ input: {
2530
+ project_id: string;
2531
+ bucketName: string;
2532
+ policy: string;
2533
+ };
2534
+ output: boolean;
2535
+ meta: object;
2536
+ }>;
2537
+ delete: _trpc_server.TRPCMutationProcedure<{
2538
+ input: {
2539
+ project_id: string;
2540
+ bucketName: string;
2541
+ };
2542
+ output: boolean;
2543
+ meta: object;
2544
+ }>;
2545
+ }>>;
2546
+ }>>;
2547
+ };
2548
+ }> & _trpc_server.TRPCDecorateCreateRouterOptions<{
2549
+ compute: _trpc_server.TRPCBuiltRouter<{
2550
+ ctx: AuroraPortalContext;
2551
+ meta: object;
2552
+ errorShape: _trpc_server.TRPCDefaultErrorShape;
2553
+ transformer: false;
2554
+ }, _trpc_server.TRPCDecorateCreateRouterOptions<{
2555
+ canUser: _trpc_server.TRPCQueryProcedure<{
2556
+ input: {
2557
+ project_id: string;
2558
+ permission: string | string[];
2559
+ };
2560
+ output: boolean[];
2561
+ meta: object;
2562
+ }>;
2563
+ getServerGroupsByProjectId: _trpc_server.TRPCQueryProcedure<{
2564
+ input: {
2565
+ project_id: string;
2566
+ };
2567
+ output: {
2568
+ id: string;
2569
+ name: string;
2570
+ policies?: string[] | undefined;
2571
+ policy?: string | undefined;
2572
+ members?: string[] | undefined;
2573
+ metadata?: Record<string, unknown> | undefined;
2574
+ project_id?: string | undefined;
2575
+ user_id?: string | undefined;
2576
+ created_at?: string | undefined;
2577
+ updated_at?: string | null | undefined;
2578
+ policy_details?: Record<string, unknown> | undefined;
2579
+ rules?: Record<string, unknown> | undefined;
2580
+ }[] | undefined;
2581
+ meta: object;
2582
+ }>;
2583
+ getKeypairsByProjectId: _trpc_server.TRPCQueryProcedure<{
2584
+ input: {
2585
+ project_id: string;
2586
+ };
2587
+ output: {
2588
+ name: string;
2589
+ public_key?: string | undefined;
2590
+ fingerprint?: string | undefined;
2591
+ type?: string | undefined;
2592
+ user_id?: string | null | undefined;
2593
+ created_at?: string | undefined;
2594
+ deleted?: boolean | undefined;
2595
+ deleted_at?: string | null | undefined;
2596
+ updated_at?: string | null | undefined;
2597
+ id?: number | undefined;
2598
+ private_key?: string | null | undefined;
2599
+ }[] | undefined;
2600
+ meta: object;
2601
+ }>;
2602
+ listImagesWithSearch: _trpc_server.TRPCQueryProcedure<{
2603
+ input: {
2604
+ project_id: string;
2605
+ sort_key?: "id" | "name" | "status" | "visibility" | "protected" | "container_format" | "disk_format" | "min_ram" | "min_disk" | "size" | "created_at" | "updated_at" | "owner" | undefined;
2606
+ sort_dir?: "asc" | "desc" | undefined;
2607
+ sort?: string | undefined;
2608
+ limit?: number | undefined;
2609
+ marker?: string | undefined;
2610
+ name?: string | undefined;
2611
+ status?: string | undefined;
2612
+ visibility?: "all" | "public" | "private" | "shared" | "community" | undefined;
2613
+ owner?: string | undefined;
2614
+ protected?: string | undefined;
2615
+ container_format?: string | undefined;
2616
+ disk_format?: string | undefined;
2617
+ size_min?: number | undefined;
2618
+ size_max?: number | undefined;
2619
+ min_ram?: number | undefined;
2620
+ min_disk?: number | undefined;
2621
+ tag?: string | undefined;
2622
+ os_type?: "linux" | "windows" | undefined;
2623
+ os_hidden?: boolean | undefined;
2624
+ member_status?: "all" | "pending" | "accepted" | "rejected" | undefined;
2625
+ created_at?: string | undefined;
2626
+ updated_at?: string | undefined;
2627
+ first?: string | undefined;
2628
+ next?: string | undefined;
2629
+ };
2630
+ output: {
2631
+ images: {
2632
+ [x: string]: unknown;
2633
+ id: string;
2634
+ name?: string | null | undefined;
2635
+ status?: string | undefined;
2636
+ visibility?: string | undefined;
2637
+ protected?: boolean | undefined;
2638
+ checksum?: string | null | undefined;
2639
+ container_format?: string | null | undefined;
2640
+ disk_format?: string | null | undefined;
2641
+ min_ram?: number | undefined;
2642
+ min_disk?: number | undefined;
2643
+ size?: number | null | undefined;
2644
+ virtual_size?: number | null | undefined;
2645
+ created_at?: string | undefined;
2646
+ updated_at?: string | undefined;
2647
+ deleted_at?: string | null | undefined;
2648
+ owner?: string | null | undefined;
2649
+ os_hidden?: boolean | undefined;
2650
+ os_hash_algo?: string | null | undefined;
2651
+ os_hash_value?: string | null | undefined;
2652
+ schema?: string | undefined;
2653
+ metadata?: Record<string, string> | undefined;
2654
+ file?: string | undefined;
2655
+ self?: string | undefined;
2656
+ tags?: string[] | undefined;
2657
+ direct_url?: string | null | undefined;
2658
+ hw_disk_bus?: string | null | undefined;
2659
+ hw_scsi_model?: string | null | undefined;
2660
+ hw_serial?: string | null | undefined;
2661
+ hw_qemu_guest_agent?: boolean | undefined;
2662
+ hw_vif_model?: string | null | undefined;
2663
+ hw_rng_model?: string | null | undefined;
2664
+ hw_machine_type?: string | null | undefined;
2665
+ os_type?: string | null | undefined;
2666
+ os_distro?: string | null | undefined;
2667
+ os_version?: string | null | undefined;
2668
+ os_require_quiesce?: boolean | undefined;
2669
+ links?: {
2670
+ href?: string | null | undefined;
2671
+ rel?: string | null | undefined;
2672
+ }[] | undefined;
2673
+ members?: string[] | undefined;
2674
+ locations?: {
2675
+ url: string;
2676
+ metadata?: Record<string, any> | undefined;
2677
+ }[] | undefined;
2678
+ }[];
2679
+ first?: string | undefined;
2680
+ next?: string | undefined;
2681
+ schema?: string | undefined;
2682
+ };
2683
+ meta: object;
2684
+ }>;
2685
+ listImagesWithPagination: _trpc_server.TRPCQueryProcedure<{
2686
+ input: {
2687
+ project_id: string;
2688
+ sort_key?: "id" | "name" | "status" | "visibility" | "protected" | "container_format" | "disk_format" | "min_ram" | "min_disk" | "size" | "created_at" | "updated_at" | "owner" | undefined;
2689
+ sort_dir?: "asc" | "desc" | undefined;
2690
+ sort?: string | undefined;
2691
+ limit?: number | undefined;
2692
+ marker?: string | undefined;
2693
+ name?: string | undefined;
2694
+ status?: string | undefined;
2695
+ visibility?: "all" | "public" | "private" | "shared" | "community" | undefined;
2696
+ owner?: string | undefined;
2697
+ protected?: string | undefined;
2698
+ container_format?: string | undefined;
2699
+ disk_format?: string | undefined;
2700
+ size_min?: number | undefined;
2701
+ size_max?: number | undefined;
2702
+ min_ram?: number | undefined;
2703
+ min_disk?: number | undefined;
2704
+ tag?: string | undefined;
2705
+ os_type?: "linux" | "windows" | undefined;
2706
+ os_hidden?: boolean | undefined;
2707
+ member_status?: "all" | "pending" | "accepted" | "rejected" | undefined;
2708
+ created_at?: string | undefined;
2709
+ updated_at?: string | undefined;
2710
+ first?: string | undefined;
2711
+ next?: string | undefined;
2712
+ };
2713
+ output: {
2714
+ images: {
2715
+ [x: string]: unknown;
2716
+ id: string;
2717
+ name?: string | null | undefined;
2718
+ status?: string | undefined;
2719
+ visibility?: string | undefined;
2720
+ protected?: boolean | undefined;
2721
+ checksum?: string | null | undefined;
2722
+ container_format?: string | null | undefined;
2723
+ disk_format?: string | null | undefined;
2724
+ min_ram?: number | undefined;
2725
+ min_disk?: number | undefined;
2726
+ size?: number | null | undefined;
2727
+ virtual_size?: number | null | undefined;
2728
+ created_at?: string | undefined;
2729
+ updated_at?: string | undefined;
2730
+ deleted_at?: string | null | undefined;
2731
+ owner?: string | null | undefined;
2732
+ os_hidden?: boolean | undefined;
2733
+ os_hash_algo?: string | null | undefined;
2734
+ os_hash_value?: string | null | undefined;
2735
+ schema?: string | undefined;
2736
+ metadata?: Record<string, string> | undefined;
2737
+ file?: string | undefined;
2738
+ self?: string | undefined;
2739
+ tags?: string[] | undefined;
2740
+ direct_url?: string | null | undefined;
2741
+ hw_disk_bus?: string | null | undefined;
2742
+ hw_scsi_model?: string | null | undefined;
2743
+ hw_serial?: string | null | undefined;
2744
+ hw_qemu_guest_agent?: boolean | undefined;
2745
+ hw_vif_model?: string | null | undefined;
2746
+ hw_rng_model?: string | null | undefined;
2747
+ hw_machine_type?: string | null | undefined;
2748
+ os_type?: string | null | undefined;
2749
+ os_distro?: string | null | undefined;
2750
+ os_version?: string | null | undefined;
2751
+ os_require_quiesce?: boolean | undefined;
2752
+ links?: {
2753
+ href?: string | null | undefined;
2754
+ rel?: string | null | undefined;
2755
+ }[] | undefined;
2756
+ members?: string[] | undefined;
2757
+ locations?: {
2758
+ url: string;
2759
+ metadata?: Record<string, any> | undefined;
2760
+ }[] | undefined;
2761
+ }[];
2762
+ first?: string | undefined;
2763
+ next?: string | undefined;
2764
+ schema?: string | undefined;
2765
+ };
2766
+ meta: object;
2767
+ }>;
2768
+ getImageById: _trpc_server.TRPCQueryProcedure<{
2769
+ input: {
2770
+ project_id: string;
2771
+ imageId: string;
2772
+ };
2773
+ output: {
2774
+ [x: string]: unknown;
2775
+ id: string;
2776
+ name?: string | null | undefined;
2777
+ status?: string | undefined;
2778
+ visibility?: string | undefined;
2779
+ protected?: boolean | undefined;
2780
+ checksum?: string | null | undefined;
2781
+ container_format?: string | null | undefined;
2782
+ disk_format?: string | null | undefined;
2783
+ min_ram?: number | undefined;
2784
+ min_disk?: number | undefined;
2785
+ size?: number | null | undefined;
2786
+ virtual_size?: number | null | undefined;
2787
+ created_at?: string | undefined;
2788
+ updated_at?: string | undefined;
2789
+ deleted_at?: string | null | undefined;
2790
+ owner?: string | null | undefined;
2791
+ os_hidden?: boolean | undefined;
2792
+ os_hash_algo?: string | null | undefined;
2793
+ os_hash_value?: string | null | undefined;
2794
+ schema?: string | undefined;
2795
+ metadata?: Record<string, string> | undefined;
2796
+ file?: string | undefined;
2797
+ self?: string | undefined;
2798
+ tags?: string[] | undefined;
2799
+ direct_url?: string | null | undefined;
2800
+ hw_disk_bus?: string | null | undefined;
2801
+ hw_scsi_model?: string | null | undefined;
2802
+ hw_serial?: string | null | undefined;
2803
+ hw_qemu_guest_agent?: boolean | undefined;
2804
+ hw_vif_model?: string | null | undefined;
2805
+ hw_rng_model?: string | null | undefined;
2806
+ hw_machine_type?: string | null | undefined;
2807
+ os_type?: string | null | undefined;
2808
+ os_distro?: string | null | undefined;
2809
+ os_version?: string | null | undefined;
2810
+ os_require_quiesce?: boolean | undefined;
2811
+ links?: {
2812
+ href?: string | null | undefined;
2813
+ rel?: string | null | undefined;
2814
+ }[] | undefined;
2815
+ members?: string[] | undefined;
2816
+ locations?: {
2817
+ url: string;
2818
+ metadata?: Record<string, any> | undefined;
2819
+ }[] | undefined;
2820
+ };
2821
+ meta: object;
2822
+ }>;
2823
+ createImage: _trpc_server.TRPCMutationProcedure<{
2824
+ input: {
2825
+ [x: string]: string;
2826
+ project_id: string;
2827
+ name?: string | undefined;
2828
+ id?: string | undefined;
2829
+ container_format?: string | undefined;
2830
+ disk_format?: string | undefined;
2831
+ visibility?: "public" | "private" | "shared" | "community" | undefined;
2832
+ protected?: boolean | undefined;
2833
+ min_ram?: number | undefined;
2834
+ min_disk?: number | undefined;
2835
+ tags?: string[] | undefined;
2836
+ os_type?: "linux" | "windows" | undefined;
2837
+ os_distro?: string | undefined;
2838
+ os_version?: string | undefined;
2839
+ architecture?: string | undefined;
2840
+ os_hidden?: boolean | undefined;
2841
+ hw_disk_bus?: string | undefined;
2842
+ hw_scsi_model?: string | undefined;
2843
+ hw_serial?: string | undefined;
2844
+ hw_qemu_guest_agent?: boolean | undefined;
2845
+ hw_vif_model?: string | undefined;
2846
+ hw_rng_model?: string | undefined;
2847
+ hw_machine_type?: string | undefined;
2848
+ };
2849
+ output: {
2850
+ [x: string]: unknown;
2851
+ id: string;
2852
+ name?: string | null | undefined;
2853
+ status?: string | undefined;
2854
+ visibility?: string | undefined;
2855
+ protected?: boolean | undefined;
2856
+ checksum?: string | null | undefined;
2857
+ container_format?: string | null | undefined;
2858
+ disk_format?: string | null | undefined;
2859
+ min_ram?: number | undefined;
2860
+ min_disk?: number | undefined;
2861
+ size?: number | null | undefined;
2862
+ virtual_size?: number | null | undefined;
2863
+ created_at?: string | undefined;
2864
+ updated_at?: string | undefined;
2865
+ deleted_at?: string | null | undefined;
2866
+ owner?: string | null | undefined;
2867
+ os_hidden?: boolean | undefined;
2868
+ os_hash_algo?: string | null | undefined;
2869
+ os_hash_value?: string | null | undefined;
2870
+ schema?: string | undefined;
2871
+ metadata?: Record<string, string> | undefined;
2872
+ file?: string | undefined;
2873
+ self?: string | undefined;
2874
+ tags?: string[] | undefined;
2875
+ direct_url?: string | null | undefined;
2876
+ hw_disk_bus?: string | null | undefined;
2877
+ hw_scsi_model?: string | null | undefined;
2878
+ hw_serial?: string | null | undefined;
2879
+ hw_qemu_guest_agent?: boolean | undefined;
2880
+ hw_vif_model?: string | null | undefined;
2881
+ hw_rng_model?: string | null | undefined;
2882
+ hw_machine_type?: string | null | undefined;
2883
+ os_type?: string | null | undefined;
2884
+ os_distro?: string | null | undefined;
2885
+ os_version?: string | null | undefined;
2886
+ os_require_quiesce?: boolean | undefined;
2887
+ links?: {
2888
+ href?: string | null | undefined;
2889
+ rel?: string | null | undefined;
2890
+ }[] | undefined;
2891
+ members?: string[] | undefined;
2892
+ locations?: {
2893
+ url: string;
2894
+ metadata?: Record<string, any> | undefined;
2895
+ }[] | undefined;
2896
+ };
2897
+ meta: object;
2898
+ }>;
2899
+ uploadImage: _trpc_server.TRPCMutationProcedure<{
2900
+ input: _trpc_server_http.OctetInput;
2901
+ output: {
2902
+ success: boolean;
2903
+ imageId: string;
2904
+ };
2905
+ meta: object;
2906
+ }>;
2907
+ watchUploadProgress: _trpc_server.TRPCSubscriptionProcedure<{
2908
+ input: {
2909
+ project_id: string;
2910
+ uploadId: string;
2911
+ };
2912
+ output: AsyncIterable<{
2913
+ percent: number;
2914
+ uploaded: number;
2915
+ total: number;
2916
+ }, void, any>;
2917
+ meta: object;
2918
+ }>;
2919
+ updateImage: _trpc_server.TRPCMutationProcedure<{
2920
+ input: {
2921
+ project_id: string;
2922
+ imageId: string;
2923
+ operations: {
2924
+ op: "replace" | "copy" | "move" | "add" | "remove" | "test";
2925
+ path: string;
2926
+ value?: any;
2927
+ from?: string | undefined;
2928
+ }[];
2929
+ };
2930
+ output: {
2931
+ [x: string]: unknown;
2932
+ id: string;
2933
+ name?: string | null | undefined;
2934
+ status?: string | undefined;
2935
+ visibility?: string | undefined;
2936
+ protected?: boolean | undefined;
2937
+ checksum?: string | null | undefined;
2938
+ container_format?: string | null | undefined;
2939
+ disk_format?: string | null | undefined;
2940
+ min_ram?: number | undefined;
2941
+ min_disk?: number | undefined;
2942
+ size?: number | null | undefined;
2943
+ virtual_size?: number | null | undefined;
2944
+ created_at?: string | undefined;
2945
+ updated_at?: string | undefined;
2946
+ deleted_at?: string | null | undefined;
2947
+ owner?: string | null | undefined;
2948
+ os_hidden?: boolean | undefined;
2949
+ os_hash_algo?: string | null | undefined;
2950
+ os_hash_value?: string | null | undefined;
2951
+ schema?: string | undefined;
2952
+ metadata?: Record<string, string> | undefined;
2953
+ file?: string | undefined;
2954
+ self?: string | undefined;
2955
+ tags?: string[] | undefined;
2956
+ direct_url?: string | null | undefined;
2957
+ hw_disk_bus?: string | null | undefined;
2958
+ hw_scsi_model?: string | null | undefined;
2959
+ hw_serial?: string | null | undefined;
2960
+ hw_qemu_guest_agent?: boolean | undefined;
2961
+ hw_vif_model?: string | null | undefined;
2962
+ hw_rng_model?: string | null | undefined;
2963
+ hw_machine_type?: string | null | undefined;
2964
+ os_type?: string | null | undefined;
2965
+ os_distro?: string | null | undefined;
2966
+ os_version?: string | null | undefined;
2967
+ os_require_quiesce?: boolean | undefined;
2968
+ links?: {
2969
+ href?: string | null | undefined;
2970
+ rel?: string | null | undefined;
2971
+ }[] | undefined;
2972
+ members?: string[] | undefined;
2973
+ locations?: {
2974
+ url: string;
2975
+ metadata?: Record<string, any> | undefined;
2976
+ }[] | undefined;
2977
+ };
2978
+ meta: object;
2979
+ }>;
2980
+ updateImageVisibility: _trpc_server.TRPCMutationProcedure<{
2981
+ input: {
2982
+ project_id: string;
2983
+ imageId: string;
2984
+ visibility: "public" | "private" | "shared" | "community";
2985
+ };
2986
+ output: {
2987
+ [x: string]: unknown;
2988
+ id: string;
2989
+ name?: string | null | undefined;
2990
+ status?: string | undefined;
2991
+ visibility?: string | undefined;
2992
+ protected?: boolean | undefined;
2993
+ checksum?: string | null | undefined;
2994
+ container_format?: string | null | undefined;
2995
+ disk_format?: string | null | undefined;
2996
+ min_ram?: number | undefined;
2997
+ min_disk?: number | undefined;
2998
+ size?: number | null | undefined;
2999
+ virtual_size?: number | null | undefined;
3000
+ created_at?: string | undefined;
3001
+ updated_at?: string | undefined;
3002
+ deleted_at?: string | null | undefined;
3003
+ owner?: string | null | undefined;
3004
+ os_hidden?: boolean | undefined;
3005
+ os_hash_algo?: string | null | undefined;
3006
+ os_hash_value?: string | null | undefined;
3007
+ schema?: string | undefined;
3008
+ metadata?: Record<string, string> | undefined;
3009
+ file?: string | undefined;
3010
+ self?: string | undefined;
3011
+ tags?: string[] | undefined;
3012
+ direct_url?: string | null | undefined;
3013
+ hw_disk_bus?: string | null | undefined;
3014
+ hw_scsi_model?: string | null | undefined;
3015
+ hw_serial?: string | null | undefined;
3016
+ hw_qemu_guest_agent?: boolean | undefined;
3017
+ hw_vif_model?: string | null | undefined;
3018
+ hw_rng_model?: string | null | undefined;
3019
+ hw_machine_type?: string | null | undefined;
3020
+ os_type?: string | null | undefined;
3021
+ os_distro?: string | null | undefined;
3022
+ os_version?: string | null | undefined;
3023
+ os_require_quiesce?: boolean | undefined;
3024
+ links?: {
3025
+ href?: string | null | undefined;
3026
+ rel?: string | null | undefined;
3027
+ }[] | undefined;
3028
+ members?: string[] | undefined;
3029
+ locations?: {
3030
+ url: string;
3031
+ metadata?: Record<string, any> | undefined;
3032
+ }[] | undefined;
3033
+ };
3034
+ meta: object;
3035
+ }>;
3036
+ deleteImage: _trpc_server.TRPCMutationProcedure<{
3037
+ input: {
3038
+ project_id: string;
3039
+ imageId: string;
3040
+ };
3041
+ output: boolean;
3042
+ meta: object;
3043
+ }>;
3044
+ deactivateImage: _trpc_server.TRPCMutationProcedure<{
3045
+ input: {
3046
+ project_id: string;
3047
+ imageId: string;
3048
+ };
3049
+ output: boolean;
3050
+ meta: object;
3051
+ }>;
3052
+ reactivateImage: _trpc_server.TRPCMutationProcedure<{
3053
+ input: {
3054
+ project_id: string;
3055
+ imageId: string;
3056
+ };
3057
+ output: boolean;
3058
+ meta: object;
3059
+ }>;
3060
+ listImageMembers: _trpc_server.TRPCQueryProcedure<{
3061
+ input: {
3062
+ project_id: string;
3063
+ imageId: string;
3064
+ };
3065
+ output: {
3066
+ member_id: string;
3067
+ image_id: string;
3068
+ status: "pending" | "accepted" | "rejected";
3069
+ created_at: string;
3070
+ updated_at: string;
3071
+ schema?: string | undefined;
3072
+ }[];
3073
+ meta: object;
3074
+ }>;
3075
+ getImageMember: _trpc_server.TRPCQueryProcedure<{
3076
+ input: {
3077
+ project_id: string;
3078
+ imageId: string;
3079
+ memberId: string;
3080
+ };
3081
+ output: {
3082
+ member_id: string;
3083
+ image_id: string;
3084
+ status: "pending" | "accepted" | "rejected";
3085
+ created_at: string;
3086
+ updated_at: string;
3087
+ schema?: string | undefined;
3088
+ };
3089
+ meta: object;
3090
+ }>;
3091
+ createImageMember: _trpc_server.TRPCMutationProcedure<{
3092
+ input: {
3093
+ project_id: string;
3094
+ imageId: string;
3095
+ member: string;
3096
+ };
3097
+ output: {
3098
+ member_id: string;
3099
+ image_id: string;
3100
+ status: "pending" | "accepted" | "rejected";
3101
+ created_at: string;
3102
+ updated_at: string;
3103
+ schema?: string | undefined;
3104
+ };
3105
+ meta: object;
3106
+ }>;
3107
+ updateImageMember: _trpc_server.TRPCMutationProcedure<{
3108
+ input: {
3109
+ project_id: string;
3110
+ imageId: string;
3111
+ memberId: string;
3112
+ status: "pending" | "accepted" | "rejected";
3113
+ };
3114
+ output: {
3115
+ member_id: string;
3116
+ image_id: string;
3117
+ status: "pending" | "accepted" | "rejected";
3118
+ created_at: string;
3119
+ updated_at: string;
3120
+ schema?: string | undefined;
3121
+ };
3122
+ meta: object;
3123
+ }>;
3124
+ deleteImageMember: _trpc_server.TRPCMutationProcedure<{
3125
+ input: {
3126
+ project_id: string;
3127
+ imageId: string;
3128
+ memberId: string;
3129
+ };
3130
+ output: boolean;
3131
+ meta: object;
3132
+ }>;
3133
+ deleteImages: _trpc_server.TRPCMutationProcedure<{
3134
+ input: {
3135
+ project_id: string;
3136
+ imageIds: string[];
3137
+ };
3138
+ output: {
3139
+ successful: string[];
3140
+ failed: {
3141
+ imageId: string;
3142
+ error: string;
3143
+ }[];
3144
+ };
3145
+ meta: object;
3146
+ }>;
3147
+ activateImages: _trpc_server.TRPCMutationProcedure<{
3148
+ input: {
3149
+ project_id: string;
3150
+ imageIds: string[];
3151
+ };
3152
+ output: {
3153
+ successful: string[];
3154
+ failed: {
3155
+ imageId: string;
3156
+ error: string;
3157
+ }[];
3158
+ };
3159
+ meta: object;
3160
+ }>;
3161
+ deactivateImages: _trpc_server.TRPCMutationProcedure<{
3162
+ input: {
3163
+ project_id: string;
3164
+ imageIds: string[];
3165
+ };
3166
+ output: {
3167
+ successful: string[];
3168
+ failed: {
3169
+ imageId: string;
3170
+ error: string;
3171
+ }[];
3172
+ };
3173
+ meta: object;
3174
+ }>;
3175
+ listSharedImagesByMemberStatus: _trpc_server.TRPCQueryProcedure<{
3176
+ input: {
3177
+ project_id: string;
3178
+ memberStatus: "pending" | "accepted" | "rejected";
3179
+ name?: string | undefined;
3180
+ status?: string | undefined;
3181
+ disk_format?: string | undefined;
3182
+ container_format?: string | undefined;
3183
+ protected?: string | undefined;
3184
+ sort?: string | undefined;
3185
+ };
3186
+ output: {
3187
+ [x: string]: unknown;
3188
+ id: string;
3189
+ name?: string | null | undefined;
3190
+ status?: string | undefined;
3191
+ visibility?: string | undefined;
3192
+ protected?: boolean | undefined;
3193
+ checksum?: string | null | undefined;
3194
+ container_format?: string | null | undefined;
3195
+ disk_format?: string | null | undefined;
3196
+ min_ram?: number | undefined;
3197
+ min_disk?: number | undefined;
3198
+ size?: number | null | undefined;
3199
+ virtual_size?: number | null | undefined;
3200
+ created_at?: string | undefined;
3201
+ updated_at?: string | undefined;
3202
+ deleted_at?: string | null | undefined;
3203
+ owner?: string | null | undefined;
3204
+ os_hidden?: boolean | undefined;
3205
+ os_hash_algo?: string | null | undefined;
3206
+ os_hash_value?: string | null | undefined;
3207
+ schema?: string | undefined;
3208
+ metadata?: Record<string, string> | undefined;
3209
+ file?: string | undefined;
3210
+ self?: string | undefined;
3211
+ tags?: string[] | undefined;
3212
+ direct_url?: string | null | undefined;
3213
+ hw_disk_bus?: string | null | undefined;
3214
+ hw_scsi_model?: string | null | undefined;
3215
+ hw_serial?: string | null | undefined;
3216
+ hw_qemu_guest_agent?: boolean | undefined;
3217
+ hw_vif_model?: string | null | undefined;
3218
+ hw_rng_model?: string | null | undefined;
3219
+ hw_machine_type?: string | null | undefined;
3220
+ os_type?: string | null | undefined;
3221
+ os_distro?: string | null | undefined;
3222
+ os_version?: string | null | undefined;
3223
+ os_require_quiesce?: boolean | undefined;
3224
+ links?: {
3225
+ href?: string | null | undefined;
3226
+ rel?: string | null | undefined;
3227
+ }[] | undefined;
3228
+ members?: string[] | undefined;
3229
+ locations?: {
3230
+ url: string;
3231
+ metadata?: Record<string, any> | undefined;
3232
+ }[] | undefined;
3233
+ }[];
3234
+ meta: object;
3235
+ }>;
3236
+ getImageMetadataExcludedProperties: _trpc_server.TRPCQueryProcedure<{
3237
+ input: {
3238
+ project_id: string;
3239
+ };
3240
+ output: string[];
3241
+ meta: object;
3242
+ }>;
3243
+ getFlavorById: _trpc_server.TRPCQueryProcedure<{
3244
+ input: {
3245
+ project_id: string;
3246
+ flavorId: string;
3247
+ };
3248
+ output: {
3249
+ id: string;
3250
+ name: string;
3251
+ vcpus: number;
3252
+ ram: number;
3253
+ disk: number;
3254
+ "OS-FLV-DISABLED:disabled"?: boolean | undefined;
3255
+ "OS-FLV-EXT-DATA:ephemeral"?: number | undefined;
3256
+ "os-flavor-access:is_public"?: boolean | undefined;
3257
+ swap?: string | number | undefined;
3258
+ rxtx_factor?: number | undefined;
3259
+ description?: string | null | undefined;
3260
+ links?: {
3261
+ href?: string | null | undefined;
3262
+ rel?: string | null | undefined;
3263
+ }[] | undefined;
3264
+ extra_specs?: Record<string, string> | undefined;
3265
+ };
3266
+ meta: object;
3267
+ }>;
3268
+ getFlavorsByProjectId: _trpc_server.TRPCQueryProcedure<{
3269
+ input: {
3270
+ project_id: string;
3271
+ sortBy?: string | undefined;
3272
+ sortDirection?: string | undefined;
3273
+ searchTerm?: string | undefined;
3274
+ };
3275
+ output: {
3276
+ flavors: {
3277
+ id: string;
3278
+ name: string;
3279
+ vcpus: number;
3280
+ ram: number;
3281
+ disk: number;
3282
+ "OS-FLV-DISABLED:disabled"?: boolean | undefined;
3283
+ "OS-FLV-EXT-DATA:ephemeral"?: number | undefined;
3284
+ "os-flavor-access:is_public"?: boolean | undefined;
3285
+ swap?: string | number | undefined;
3286
+ rxtx_factor?: number | undefined;
3287
+ description?: string | null | undefined;
3288
+ links?: {
3289
+ href?: string | null | undefined;
3290
+ rel?: string | null | undefined;
3291
+ }[] | undefined;
3292
+ extra_specs?: Record<string, string> | undefined;
3293
+ }[];
3294
+ privateFlavorError: string | undefined;
3295
+ };
3296
+ meta: object;
3297
+ }>;
3298
+ createFlavor: _trpc_server.TRPCMutationProcedure<{
3299
+ input: {
3300
+ project_id: string;
3301
+ flavor: {
3302
+ name: string;
3303
+ vcpus: number;
3304
+ ram: number;
3305
+ disk: number;
3306
+ id?: string | undefined;
3307
+ swap?: number | undefined;
3308
+ rxtx_factor?: number | undefined;
3309
+ "OS-FLV-EXT-DATA:ephemeral"?: number | undefined;
3310
+ "os-flavor-access:is_public"?: boolean | undefined;
3311
+ };
3312
+ };
3313
+ output: {
3314
+ id: string;
3315
+ name: string;
3316
+ vcpus: number;
3317
+ ram: number;
3318
+ disk: number;
3319
+ "OS-FLV-DISABLED:disabled"?: boolean | undefined;
3320
+ "OS-FLV-EXT-DATA:ephemeral"?: number | undefined;
3321
+ "os-flavor-access:is_public"?: boolean | undefined;
3322
+ swap?: string | number | undefined;
3323
+ rxtx_factor?: number | undefined;
3324
+ description?: string | null | undefined;
3325
+ links?: {
3326
+ href?: string | null | undefined;
3327
+ rel?: string | null | undefined;
3328
+ }[] | undefined;
3329
+ extra_specs?: Record<string, string> | undefined;
3330
+ };
3331
+ meta: object;
3332
+ }>;
3333
+ deleteFlavor: _trpc_server.TRPCMutationProcedure<{
3334
+ input: {
3335
+ project_id: string;
3336
+ flavorId: string;
3337
+ };
3338
+ output: {
3339
+ success: boolean;
3340
+ message: string;
3341
+ };
3342
+ meta: object;
3343
+ }>;
3344
+ createExtraSpecs: _trpc_server.TRPCMutationProcedure<{
3345
+ input: {
3346
+ project_id: string;
3347
+ flavorId: string;
3348
+ extra_specs: Record<string, string>;
3349
+ };
3350
+ output: Record<string, string>;
3351
+ meta: object;
3352
+ }>;
3353
+ getExtraSpecs: _trpc_server.TRPCQueryProcedure<{
3354
+ input: {
3355
+ project_id: string;
3356
+ flavorId: string;
3357
+ };
3358
+ output: Record<string, string>;
3359
+ meta: object;
3360
+ }>;
3361
+ deleteExtraSpec: _trpc_server.TRPCMutationProcedure<{
3362
+ input: {
3363
+ project_id: string;
3364
+ flavorId: string;
3365
+ key: string;
3366
+ };
3367
+ output: {
3368
+ success: boolean;
3369
+ message: string;
3370
+ };
3371
+ meta: object;
3372
+ }>;
3373
+ getFlavorAccess: _trpc_server.TRPCQueryProcedure<{
3374
+ input: {
3375
+ project_id: string;
3376
+ flavorId: string;
3377
+ };
3378
+ output: FlavorAccess[];
3379
+ meta: object;
3380
+ }>;
3381
+ addTenantAccess: _trpc_server.TRPCMutationProcedure<{
3382
+ input: {
3383
+ project_id: string;
3384
+ flavorId: string;
3385
+ targetProjectId: string;
3386
+ };
3387
+ output: FlavorAccess[];
3388
+ meta: object;
3389
+ }>;
3390
+ removeTenantAccess: _trpc_server.TRPCMutationProcedure<{
3391
+ input: {
3392
+ project_id: string;
3393
+ flavorId: string;
3394
+ targetProjectId: string;
3395
+ };
3396
+ output: FlavorAccess[];
3397
+ meta: object;
3398
+ }>;
3399
+ getServersByProjectId: _trpc_server.TRPCQueryProcedure<{
3400
+ input: {
3401
+ project_id: string;
3402
+ };
3403
+ output: {
3404
+ [x: string]: unknown;
3405
+ id: string;
3406
+ accessIPv4?: string | null | undefined;
3407
+ accessIPv6?: string | null | undefined;
3408
+ addresses?: Record<string, {
3409
+ addr?: string | undefined;
3410
+ mac_addr?: string | undefined;
3411
+ type?: string | undefined;
3412
+ version?: number | undefined;
3413
+ }[]> | undefined;
3414
+ created?: string | null | undefined;
3415
+ description?: string | null | undefined;
3416
+ flavor?: {
3417
+ disk?: number | undefined;
3418
+ ephemeral?: number | undefined;
3419
+ extra_specs?: Record<string, any> | undefined;
3420
+ original_name?: string | undefined;
3421
+ ram?: number | undefined;
3422
+ swap?: number | undefined;
3423
+ vcpus?: number | undefined;
3424
+ } | undefined;
3425
+ hostId?: string | undefined;
3426
+ host_status?: "" | "UP" | "DOWN" | "UNKNOWN" | "MAINTENANCE" | undefined;
3427
+ image?: string | {
3428
+ id?: string | null | undefined;
3429
+ links?: {
3430
+ href?: string | null | undefined;
3431
+ rel?: string | null | undefined;
3432
+ }[] | undefined;
3433
+ } | null | undefined;
3434
+ key_name?: string | null | undefined;
3435
+ links?: {
3436
+ href?: string | null | undefined;
3437
+ rel?: string | null | undefined;
3438
+ }[] | undefined;
3439
+ locked?: boolean | undefined;
3440
+ locked_reason?: string | null | undefined;
3441
+ metadata?: Record<string, string> | undefined;
3442
+ name?: string | null | undefined;
3443
+ "OS-DCF:diskConfig"?: "AUTO" | "MANUAL" | undefined;
3444
+ "OS-EXT-AZ:availability_zone"?: string | null | undefined;
3445
+ "OS-EXT-SRV-ATTR:host"?: string | null | undefined;
3446
+ "OS-EXT-SRV-ATTR:hostname"?: string | null | undefined;
3447
+ "OS-EXT-SRV-ATTR:hypervisor_hostname"?: string | null | undefined;
3448
+ "OS-EXT-SRV-ATTR:instance_name"?: string | null | undefined;
3449
+ "OS-EXT-SRV-ATTR:kernel_id"?: string | null | undefined;
3450
+ "OS-EXT-SRV-ATTR:launch_index"?: number | undefined;
3451
+ "OS-EXT-SRV-ATTR:ramdisk_id"?: string | null | undefined;
3452
+ "OS-EXT-SRV-ATTR:reservation_id"?: string | null | undefined;
3453
+ "OS-EXT-SRV-ATTR:root_device_name"?: string | null | undefined;
3454
+ "OS-EXT-SRV-ATTR:user_data"?: string | null | undefined;
3455
+ "OS-EXT-STS:power_state"?: number | undefined;
3456
+ "OS-EXT-STS:task_state"?: string | null | undefined;
3457
+ "OS-EXT-STS:vm_state"?: string | null | undefined;
3458
+ OS_EXT_SRV_ATTR_host?: string | undefined;
3459
+ OS_EXT_STS_task_state?: string | undefined;
3460
+ OS_EXT_STS_vm_state?: string | undefined;
3461
+ progress?: number | undefined;
3462
+ status?: string | undefined;
3463
+ tags?: string[] | undefined;
3464
+ tenant_id?: string | null | undefined;
3465
+ updated?: string | null | undefined;
3466
+ }[] | undefined;
3467
+ meta: object;
3468
+ }>;
3469
+ }>>;
3470
+ }> & _trpc_server.TRPCDecorateCreateRouterOptions<{
3471
+ auth: _trpc_server.TRPCBuiltRouter<{
3472
+ ctx: AuroraPortalContext;
3473
+ meta: object;
3474
+ errorShape: _trpc_server.TRPCDefaultErrorShape;
3475
+ transformer: false;
3476
+ }, _trpc_server.TRPCDecorateCreateRouterOptions<{
3477
+ getCurrentUserSession: _trpc_server.TRPCQueryProcedure<{
3478
+ input: void;
3479
+ output: {
3480
+ application_credential?: {
3481
+ id: string;
3482
+ name: string;
3483
+ restricted: boolean;
3484
+ };
3485
+ audit_ids?: string[];
3486
+ catalog?: {
3487
+ endpoints: {
3488
+ id: string;
3489
+ interface: string;
3490
+ region: string;
3491
+ region_id: string;
3492
+ url: string;
3493
+ }[];
3494
+ type: string;
3495
+ id: string;
3496
+ name: string;
3497
+ }[];
3498
+ expires_at: string;
3499
+ issued_at: string;
3500
+ methods: string[];
3501
+ roles: {
3502
+ id: string;
3503
+ name: string;
3504
+ }[];
3505
+ system: {
3506
+ all: boolean;
3507
+ };
3508
+ project?: {
3509
+ domain?: {
3510
+ id?: string;
3511
+ name?: string;
3512
+ };
3513
+ id?: string;
3514
+ name?: string;
3515
+ };
3516
+ domain?: {
3517
+ id?: string;
3518
+ name?: string;
3519
+ };
3520
+ user: {
3521
+ domain: {
3522
+ id: string;
3523
+ name: string;
3524
+ };
3525
+ id: string;
3526
+ name: string;
3527
+ password_expires_at: string;
3528
+ };
3529
+ } | null;
3530
+ meta: object;
3531
+ }>;
3532
+ getAuthToken: _trpc_server.TRPCQueryProcedure<{
3533
+ input: void;
3534
+ output: string | null;
3535
+ meta: object;
3536
+ }>;
3537
+ getCurrentScope: _trpc_server.TRPCQueryProcedure<{
3538
+ input: void;
3539
+ output: {
3540
+ project: {
3541
+ domain?: {
3542
+ id?: string;
3543
+ name?: string;
3544
+ };
3545
+ id?: string;
3546
+ name?: string;
3547
+ } | undefined;
3548
+ domain: {
3549
+ id?: string;
3550
+ name?: string;
3551
+ } | undefined;
3552
+ } | null;
3553
+ meta: object;
3554
+ }>;
3555
+ setCurrentScope: _trpc_server.TRPCMutationProcedure<{
3556
+ input: {
3557
+ type: "domain";
3558
+ domainId: string;
3559
+ } | {
3560
+ type: "project";
3561
+ projectId: string;
3562
+ } | {
3563
+ type: "unscoped";
3564
+ value: string;
3565
+ };
3566
+ output: {
3567
+ project: null;
3568
+ domain: {
3569
+ id?: string;
3570
+ name?: string;
3571
+ } | undefined;
3572
+ } | {
3573
+ project: {
3574
+ domain?: {
3575
+ id?: string;
3576
+ name?: string;
3577
+ };
3578
+ id?: string;
3579
+ name?: string;
3580
+ } | undefined;
3581
+ domain: {
3582
+ id?: string;
3583
+ name?: string;
3584
+ } | undefined;
3585
+ } | {
3586
+ project: null;
3587
+ domain: null;
3588
+ };
3589
+ meta: object;
3590
+ }>;
3591
+ createUserSession: _trpc_server.TRPCMutationProcedure<{
3592
+ input: {
3593
+ user: string;
3594
+ password: string;
3595
+ domainName: string;
3596
+ };
3597
+ output: {
3598
+ application_credential?: {
3599
+ id: string;
3600
+ name: string;
3601
+ restricted: boolean;
3602
+ };
3603
+ audit_ids?: string[];
3604
+ catalog?: {
3605
+ endpoints: {
3606
+ id: string;
3607
+ interface: string;
3608
+ region: string;
3609
+ region_id: string;
3610
+ url: string;
3611
+ }[];
3612
+ type: string;
3613
+ id: string;
3614
+ name: string;
3615
+ }[];
3616
+ expires_at: string;
3617
+ issued_at: string;
3618
+ methods: string[];
3619
+ roles: {
3620
+ id: string;
3621
+ name: string;
3622
+ }[];
3623
+ system: {
3624
+ all: boolean;
3625
+ };
3626
+ project?: {
3627
+ domain?: {
3628
+ id?: string;
3629
+ name?: string;
3630
+ };
3631
+ id?: string;
3632
+ name?: string;
3633
+ };
3634
+ domain?: {
3635
+ id?: string;
3636
+ name?: string;
3637
+ };
3638
+ user: {
3639
+ domain: {
3640
+ id: string;
3641
+ name: string;
3642
+ };
3643
+ id: string;
3644
+ name: string;
3645
+ password_expires_at: string;
3646
+ };
3647
+ };
3648
+ meta: object;
3649
+ }>;
3650
+ terminateUserSession: _trpc_server.TRPCMutationProcedure<{
3651
+ input: void;
3652
+ output: void;
3653
+ meta: object;
3654
+ }>;
3655
+ getAvailableServices: _trpc_server.TRPCQueryProcedure<{
3656
+ input: void;
3657
+ output: {
3658
+ name: string;
3659
+ type: string;
3660
+ }[];
3661
+ meta: object;
3662
+ }>;
3663
+ }>>;
3664
+ }>>;
3665
+ type AuroraRouter = ReturnType<typeof buildBaseRouter>;
3666
+ /**
3667
+ * Helper type to merge custom routers with the base Aurora router.
3668
+ * Use this in consuming apps to create a properly typed router that includes custom routers.
3669
+ *
3670
+ * @example
3671
+ * ```ts
3672
+ * import type { AuroraRouterWithCustom } from "@cobaltcore-dev/aurora/server"
3673
+ * import { customRouters } from "./server/customRouters"
3674
+ *
3675
+ * export type AppRouter = AuroraRouterWithCustom<typeof customRouters>
3676
+ * ```
3677
+ */
3678
+ type AuroraRouterWithCustom<TCustomRouters extends AnyRouter> = AuroraRouter & TCustomRouters;
3679
+
3680
+ export { type AuroraRouter, type AuroraRouterWithCustom, type AuroraServerConfig, auroraRouter, createServer, domainScopedInputSchema, domainScopedProcedure, projectScopedInputSchema, projectScopedProcedure, protectedProcedure, publicProcedure };