@secrecy/lib 1.85.1-fix-billing.3 → 1.85.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types/client.d.ts +496 -270
- package/package.json +2 -2
package/dist/types/client.d.ts
CHANGED
|
@@ -56,46 +56,120 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
56
56
|
}>;
|
|
57
57
|
application: import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
58
58
|
limits: import("@trpc/server").TRPCQueryProcedure<{
|
|
59
|
-
input:
|
|
59
|
+
input: {
|
|
60
|
+
appId?: string | null | undefined;
|
|
61
|
+
paidByApp?: boolean | undefined;
|
|
62
|
+
userIds?: string[] | undefined;
|
|
63
|
+
};
|
|
60
64
|
output: {
|
|
61
65
|
metrics: {
|
|
66
|
+
lastReset: Date;
|
|
67
|
+
hasDatabase: boolean;
|
|
62
68
|
devsCount: bigint;
|
|
63
69
|
usersCount: bigint;
|
|
64
|
-
|
|
65
|
-
|
|
70
|
+
} & {
|
|
71
|
+
totalDataCount: bigint;
|
|
72
|
+
totalDataSize: bigint;
|
|
66
73
|
downloadBandwidth: bigint;
|
|
67
|
-
uploadBandwidth: bigint;
|
|
68
74
|
downloadCount: bigint;
|
|
75
|
+
uploadBandwidth: bigint;
|
|
69
76
|
uploadCount: bigint;
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
77
|
+
sentMailCount: bigint;
|
|
78
|
+
sentMailDataCount: bigint;
|
|
79
|
+
sentMailDataSize: bigint;
|
|
73
80
|
};
|
|
74
81
|
quotas: {
|
|
75
82
|
devsCount: bigint | null;
|
|
76
83
|
usersCount: bigint | null;
|
|
77
84
|
bandwidth: bigint | null;
|
|
78
|
-
|
|
79
|
-
|
|
85
|
+
totalDataSize: bigint | null;
|
|
86
|
+
totalDataCount: bigint | null;
|
|
80
87
|
perDataSize: bigint | null;
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
88
|
+
uploadCount: bigint | null;
|
|
89
|
+
downloadCount: bigint | null;
|
|
90
|
+
sentMails: {
|
|
91
|
+
count: bigint | null;
|
|
92
|
+
perDataSize: bigint | null;
|
|
93
|
+
totalStorageSize: bigint | null;
|
|
94
|
+
totalDataCount: bigint | null;
|
|
95
|
+
dataCount: bigint | null;
|
|
96
|
+
dataSize: bigint | null;
|
|
97
|
+
totalCount: bigint | null;
|
|
98
|
+
};
|
|
84
99
|
};
|
|
100
|
+
} | {
|
|
101
|
+
lastReset: Date;
|
|
102
|
+
details: {
|
|
103
|
+
userId: string;
|
|
104
|
+
metrics: {
|
|
105
|
+
totalDataCount: bigint;
|
|
106
|
+
totalDataSize: bigint;
|
|
107
|
+
downloadBandwidth: bigint;
|
|
108
|
+
downloadCount: bigint;
|
|
109
|
+
uploadBandwidth: bigint;
|
|
110
|
+
uploadCount: bigint;
|
|
111
|
+
sentMailCount: bigint;
|
|
112
|
+
sentMailDataCount: bigint;
|
|
113
|
+
sentMailDataSize: bigint;
|
|
114
|
+
};
|
|
115
|
+
quotas: {
|
|
116
|
+
totalDataSize: bigint | null;
|
|
117
|
+
totalDataCount: bigint | null;
|
|
118
|
+
uploadBandwidth: bigint | null;
|
|
119
|
+
downloadBandwidth: bigint | null;
|
|
120
|
+
perDataSize: bigint | null;
|
|
121
|
+
uploadCount: bigint | null;
|
|
122
|
+
downloadCount: bigint | null;
|
|
123
|
+
sentMails: {
|
|
124
|
+
count: bigint | null;
|
|
125
|
+
perDataSize: bigint | null;
|
|
126
|
+
totalStorageSize: bigint | null;
|
|
127
|
+
totalDataCount: bigint | null;
|
|
128
|
+
dataCount: bigint | null;
|
|
129
|
+
dataSize: bigint | null;
|
|
130
|
+
totalCount: bigint | null;
|
|
131
|
+
} | null;
|
|
132
|
+
} | null;
|
|
133
|
+
}[];
|
|
85
134
|
};
|
|
86
135
|
meta: any;
|
|
87
136
|
}>;
|
|
88
137
|
metrics: import("@trpc/server").TRPCQueryProcedure<{
|
|
89
138
|
input: {
|
|
90
139
|
appId?: string | undefined;
|
|
140
|
+
paidByApp?: boolean | undefined;
|
|
141
|
+
userIds?: string[] | undefined;
|
|
91
142
|
};
|
|
92
|
-
output: {
|
|
143
|
+
output: ({
|
|
144
|
+
lastReset: Date;
|
|
93
145
|
hasDatabase: boolean;
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
146
|
+
devsCount: bigint;
|
|
147
|
+
usersCount: bigint;
|
|
148
|
+
} & {
|
|
149
|
+
totalDataCount: bigint;
|
|
150
|
+
totalDataSize: bigint;
|
|
151
|
+
downloadBandwidth: bigint;
|
|
152
|
+
downloadCount: bigint;
|
|
153
|
+
uploadBandwidth: bigint;
|
|
154
|
+
uploadCount: bigint;
|
|
155
|
+
sentMailCount: bigint;
|
|
156
|
+
sentMailDataCount: bigint;
|
|
157
|
+
sentMailDataSize: bigint;
|
|
158
|
+
}) | {
|
|
159
|
+
lastReset: Date;
|
|
160
|
+
details: ({
|
|
161
|
+
userId: string;
|
|
162
|
+
} & {
|
|
163
|
+
totalDataCount: bigint;
|
|
164
|
+
totalDataSize: bigint;
|
|
165
|
+
downloadBandwidth: bigint;
|
|
166
|
+
downloadCount: bigint;
|
|
167
|
+
uploadBandwidth: bigint;
|
|
168
|
+
uploadCount: bigint;
|
|
169
|
+
sentMailCount: bigint;
|
|
170
|
+
sentMailDataCount: bigint;
|
|
171
|
+
sentMailDataSize: bigint;
|
|
172
|
+
})[];
|
|
99
173
|
};
|
|
100
174
|
meta: any;
|
|
101
175
|
}>;
|
|
@@ -164,8 +238,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
164
238
|
} & {
|
|
165
239
|
quotas: {
|
|
166
240
|
users: bigint | null;
|
|
167
|
-
bandwidth: bigint | null;
|
|
168
|
-
perDataSize: bigint | null;
|
|
169
241
|
devs: bigint | null;
|
|
170
242
|
devsBase: bigint | null;
|
|
171
243
|
devsUnit: bigint | null;
|
|
@@ -173,9 +245,11 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
173
245
|
usersBase: bigint | null;
|
|
174
246
|
usersUnit: bigint | null;
|
|
175
247
|
usersPrice: number | null;
|
|
248
|
+
perDataSize: bigint | null;
|
|
176
249
|
perDataSizeBase: bigint | null;
|
|
177
250
|
perDataSizeUnit: bigint | null;
|
|
178
251
|
perDataSizePrice: number | null;
|
|
252
|
+
bandwidth: bigint | null;
|
|
179
253
|
bandwidthBase: bigint | null;
|
|
180
254
|
bandwidthUnit: bigint | null;
|
|
181
255
|
bandwidthPrice: number | null;
|
|
@@ -186,13 +260,13 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
186
260
|
baseQuotasId: string;
|
|
187
261
|
} & {
|
|
188
262
|
baseQuotas: {
|
|
189
|
-
downloadBandwidth: bigint | null;
|
|
190
|
-
uploadBandwidth: bigint | null;
|
|
191
|
-
downloadCount: bigint | null;
|
|
192
|
-
uploadCount: bigint | null;
|
|
193
263
|
perDataSize: bigint | null;
|
|
194
264
|
totalStorageSize: bigint | null;
|
|
195
265
|
totalDataCount: bigint | null;
|
|
266
|
+
downloadBandwidth: bigint | null;
|
|
267
|
+
downloadCount: bigint | null;
|
|
268
|
+
uploadBandwidth: bigint | null;
|
|
269
|
+
uploadCount: bigint | null;
|
|
196
270
|
sentMailsId: string;
|
|
197
271
|
};
|
|
198
272
|
};
|
|
@@ -5040,12 +5114,19 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
5040
5114
|
}[];
|
|
5041
5115
|
meta: any;
|
|
5042
5116
|
}>;
|
|
5043
|
-
|
|
5117
|
+
limits: import("@trpc/server").TRPCQueryProcedure<{
|
|
5044
5118
|
input: {
|
|
5045
5119
|
orgId: string;
|
|
5120
|
+
paidByApp?: boolean | undefined;
|
|
5121
|
+
userIds?: string[] | undefined;
|
|
5046
5122
|
};
|
|
5047
5123
|
output: {
|
|
5048
5124
|
metrics: {
|
|
5125
|
+
lastReset: Date;
|
|
5126
|
+
membersCount: bigint;
|
|
5127
|
+
} & {
|
|
5128
|
+
totalDataCount: bigint;
|
|
5129
|
+
totalDataSize: bigint;
|
|
5049
5130
|
downloadBandwidth: bigint;
|
|
5050
5131
|
downloadCount: bigint;
|
|
5051
5132
|
uploadBandwidth: bigint;
|
|
@@ -5053,8 +5134,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
5053
5134
|
sentMailCount: bigint;
|
|
5054
5135
|
sentMailDataCount: bigint;
|
|
5055
5136
|
sentMailDataSize: bigint;
|
|
5056
|
-
totalDataSize: bigint;
|
|
5057
|
-
totalDataCount: bigint;
|
|
5058
5137
|
};
|
|
5059
5138
|
quotas: {
|
|
5060
5139
|
downloadBandwidth: bigint | null;
|
|
@@ -5062,21 +5141,56 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
5062
5141
|
uploadBandwidth: bigint | null;
|
|
5063
5142
|
uploadCount: bigint | null;
|
|
5064
5143
|
totalDataCount: bigint | null;
|
|
5065
|
-
|
|
5144
|
+
totalDataSize: bigint | null;
|
|
5066
5145
|
perDataSize: bigint | null;
|
|
5067
5146
|
sentMails: {
|
|
5068
5147
|
count: bigint | null;
|
|
5069
|
-
totalCount: bigint | null;
|
|
5070
5148
|
perDataSize: bigint | null;
|
|
5149
|
+
totalStorageSize: bigint | null;
|
|
5150
|
+
totalDataCount: bigint | null;
|
|
5071
5151
|
dataCount: bigint | null;
|
|
5072
5152
|
dataSize: bigint | null;
|
|
5073
|
-
|
|
5074
|
-
totalStorageSize: bigint | null;
|
|
5153
|
+
totalCount: bigint | null;
|
|
5075
5154
|
};
|
|
5076
5155
|
};
|
|
5077
5156
|
};
|
|
5078
5157
|
meta: any;
|
|
5079
5158
|
}>;
|
|
5159
|
+
metrics: import("@trpc/server").TRPCQueryProcedure<{
|
|
5160
|
+
input: {
|
|
5161
|
+
orgId: string;
|
|
5162
|
+
paidByApp?: boolean | undefined;
|
|
5163
|
+
userIds?: string[] | undefined;
|
|
5164
|
+
};
|
|
5165
|
+
output: ({
|
|
5166
|
+
lastReset: Date;
|
|
5167
|
+
membersCount: bigint;
|
|
5168
|
+
} & {
|
|
5169
|
+
totalDataCount: bigint;
|
|
5170
|
+
totalDataSize: bigint;
|
|
5171
|
+
downloadBandwidth: bigint;
|
|
5172
|
+
downloadCount: bigint;
|
|
5173
|
+
uploadBandwidth: bigint;
|
|
5174
|
+
uploadCount: bigint;
|
|
5175
|
+
sentMailCount: bigint;
|
|
5176
|
+
sentMailDataCount: bigint;
|
|
5177
|
+
sentMailDataSize: bigint;
|
|
5178
|
+
}) | {
|
|
5179
|
+
lastReset: Date;
|
|
5180
|
+
details: {
|
|
5181
|
+
totalDataCount: bigint;
|
|
5182
|
+
totalDataSize: bigint;
|
|
5183
|
+
downloadBandwidth: bigint;
|
|
5184
|
+
downloadCount: bigint;
|
|
5185
|
+
uploadBandwidth: bigint;
|
|
5186
|
+
uploadCount: bigint;
|
|
5187
|
+
sentMailCount: bigint;
|
|
5188
|
+
sentMailDataCount: bigint;
|
|
5189
|
+
sentMailDataSize: bigint;
|
|
5190
|
+
}[];
|
|
5191
|
+
};
|
|
5192
|
+
meta: any;
|
|
5193
|
+
}>;
|
|
5080
5194
|
plans: import("@trpc/server").TRPCQueryProcedure<{
|
|
5081
5195
|
input: Record<string, never>;
|
|
5082
5196
|
output: {
|
|
@@ -5086,21 +5200,21 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
5086
5200
|
quotasId: string;
|
|
5087
5201
|
stripePricesId: string | null;
|
|
5088
5202
|
quotas: {
|
|
5089
|
-
downloadBandwidth: bigint | null;
|
|
5090
|
-
uploadBandwidth: bigint | null;
|
|
5091
|
-
downloadCount: bigint | null;
|
|
5092
|
-
uploadCount: bigint | null;
|
|
5093
5203
|
perDataSize: bigint | null;
|
|
5094
5204
|
totalStorageSize: bigint | null;
|
|
5095
5205
|
totalDataCount: bigint | null;
|
|
5206
|
+
downloadBandwidth: bigint | null;
|
|
5207
|
+
downloadCount: bigint | null;
|
|
5208
|
+
uploadBandwidth: bigint | null;
|
|
5209
|
+
uploadCount: bigint | null;
|
|
5096
5210
|
sentMails: {
|
|
5097
5211
|
count: bigint | null;
|
|
5098
5212
|
perDataSize: bigint | null;
|
|
5099
5213
|
totalStorageSize: bigint | null;
|
|
5100
5214
|
totalDataCount: bigint | null;
|
|
5101
|
-
totalCount: bigint | null;
|
|
5102
5215
|
dataCount: bigint | null;
|
|
5103
5216
|
dataSize: bigint | null;
|
|
5217
|
+
totalCount: bigint | null;
|
|
5104
5218
|
};
|
|
5105
5219
|
};
|
|
5106
5220
|
price: number;
|
|
@@ -5183,72 +5297,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
5183
5297
|
};
|
|
5184
5298
|
meta: any;
|
|
5185
5299
|
}>;
|
|
5186
|
-
userContextLimits: import("@trpc/server").TRPCQueryProcedure<{
|
|
5187
|
-
input: {
|
|
5188
|
-
orgId: string;
|
|
5189
|
-
appId: string;
|
|
5190
|
-
};
|
|
5191
|
-
output: {
|
|
5192
|
-
type: "app";
|
|
5193
|
-
appId: string;
|
|
5194
|
-
orgId: string;
|
|
5195
|
-
settings: {
|
|
5196
|
-
paidByApp: boolean;
|
|
5197
|
-
bandwidthLimit: bigint | null;
|
|
5198
|
-
perDataSizeLimit: bigint | null;
|
|
5199
|
-
totalStorageSizeLimit: bigint | null;
|
|
5200
|
-
};
|
|
5201
|
-
quotas: {
|
|
5202
|
-
bandwith: bigint | null;
|
|
5203
|
-
uploadCount: bigint | null;
|
|
5204
|
-
downloadCount: bigint | null;
|
|
5205
|
-
totalDataCount: bigint | null;
|
|
5206
|
-
perDataSize: bigint | null;
|
|
5207
|
-
totalStorageSize: bigint | null;
|
|
5208
|
-
};
|
|
5209
|
-
metrics: {
|
|
5210
|
-
uploadCount: bigint;
|
|
5211
|
-
uploadBandwidth: bigint;
|
|
5212
|
-
downloadBandwidth: bigint;
|
|
5213
|
-
downloadCount: bigint;
|
|
5214
|
-
};
|
|
5215
|
-
} | {
|
|
5216
|
-
type: "org";
|
|
5217
|
-
appId: string;
|
|
5218
|
-
orgId: string;
|
|
5219
|
-
settings: {
|
|
5220
|
-
paidByApp: boolean;
|
|
5221
|
-
bandwidthLimit: bigint | null;
|
|
5222
|
-
perDataSizeLimit: bigint | null;
|
|
5223
|
-
totalStorageSizeLimit: bigint | null;
|
|
5224
|
-
};
|
|
5225
|
-
quotas: {
|
|
5226
|
-
uploadBandwidth: bigint | null;
|
|
5227
|
-
uploadCount: bigint | null;
|
|
5228
|
-
perDataSize: bigint | null;
|
|
5229
|
-
totalStorageSize: bigint | null;
|
|
5230
|
-
totalDataCount: bigint | null;
|
|
5231
|
-
downloadBandwidth: bigint | null;
|
|
5232
|
-
downloadCount: bigint | null;
|
|
5233
|
-
};
|
|
5234
|
-
userLimitedQuotas: {
|
|
5235
|
-
uploadBandwidth: bigint | null;
|
|
5236
|
-
uploadCount: bigint | null;
|
|
5237
|
-
perDataSize: bigint | null;
|
|
5238
|
-
totalStorageSize: bigint | null;
|
|
5239
|
-
totalDataCount: bigint | null;
|
|
5240
|
-
downloadBandwidth: bigint | null;
|
|
5241
|
-
downloadCount: bigint | null;
|
|
5242
|
-
} | null;
|
|
5243
|
-
metrics: {
|
|
5244
|
-
uploadCount: bigint;
|
|
5245
|
-
uploadBandwidth: bigint;
|
|
5246
|
-
downloadBandwidth: bigint;
|
|
5247
|
-
downloadCount: bigint;
|
|
5248
|
-
};
|
|
5249
|
-
};
|
|
5250
|
-
meta: any;
|
|
5251
|
-
}>;
|
|
5252
5300
|
addMember: import("@trpc/server").TRPCMutationProcedure<{
|
|
5253
5301
|
input: {
|
|
5254
5302
|
orgId: string;
|
|
@@ -5676,8 +5724,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
5676
5724
|
} & {
|
|
5677
5725
|
quotas: {
|
|
5678
5726
|
users: bigint | null;
|
|
5679
|
-
bandwidth: bigint | null;
|
|
5680
|
-
perDataSize: bigint | null;
|
|
5681
5727
|
devs: bigint | null;
|
|
5682
5728
|
devsBase: bigint | null;
|
|
5683
5729
|
devsUnit: bigint | null;
|
|
@@ -5685,9 +5731,11 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
5685
5731
|
usersBase: bigint | null;
|
|
5686
5732
|
usersUnit: bigint | null;
|
|
5687
5733
|
usersPrice: number | null;
|
|
5734
|
+
perDataSize: bigint | null;
|
|
5688
5735
|
perDataSizeBase: bigint | null;
|
|
5689
5736
|
perDataSizeUnit: bigint | null;
|
|
5690
5737
|
perDataSizePrice: number | null;
|
|
5738
|
+
bandwidth: bigint | null;
|
|
5691
5739
|
bandwidthBase: bigint | null;
|
|
5692
5740
|
bandwidthUnit: bigint | null;
|
|
5693
5741
|
bandwidthPrice: number | null;
|
|
@@ -5698,13 +5746,13 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
5698
5746
|
baseQuotasId: string;
|
|
5699
5747
|
} & {
|
|
5700
5748
|
baseQuotas: {
|
|
5701
|
-
downloadBandwidth: bigint | null;
|
|
5702
|
-
uploadBandwidth: bigint | null;
|
|
5703
|
-
downloadCount: bigint | null;
|
|
5704
|
-
uploadCount: bigint | null;
|
|
5705
5749
|
perDataSize: bigint | null;
|
|
5706
5750
|
totalStorageSize: bigint | null;
|
|
5707
5751
|
totalDataCount: bigint | null;
|
|
5752
|
+
downloadBandwidth: bigint | null;
|
|
5753
|
+
downloadCount: bigint | null;
|
|
5754
|
+
uploadBandwidth: bigint | null;
|
|
5755
|
+
uploadCount: bigint | null;
|
|
5708
5756
|
sentMailsId: string;
|
|
5709
5757
|
};
|
|
5710
5758
|
};
|
|
@@ -5754,8 +5802,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
5754
5802
|
} & {
|
|
5755
5803
|
quotas: {
|
|
5756
5804
|
users: bigint | null;
|
|
5757
|
-
bandwidth: bigint | null;
|
|
5758
|
-
perDataSize: bigint | null;
|
|
5759
5805
|
devs: bigint | null;
|
|
5760
5806
|
devsBase: bigint | null;
|
|
5761
5807
|
devsUnit: bigint | null;
|
|
@@ -5763,9 +5809,11 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
5763
5809
|
usersBase: bigint | null;
|
|
5764
5810
|
usersUnit: bigint | null;
|
|
5765
5811
|
usersPrice: number | null;
|
|
5812
|
+
perDataSize: bigint | null;
|
|
5766
5813
|
perDataSizeBase: bigint | null;
|
|
5767
5814
|
perDataSizeUnit: bigint | null;
|
|
5768
5815
|
perDataSizePrice: number | null;
|
|
5816
|
+
bandwidth: bigint | null;
|
|
5769
5817
|
bandwidthBase: bigint | null;
|
|
5770
5818
|
bandwidthUnit: bigint | null;
|
|
5771
5819
|
bandwidthPrice: number | null;
|
|
@@ -5776,13 +5824,13 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
5776
5824
|
baseQuotasId: string;
|
|
5777
5825
|
} & {
|
|
5778
5826
|
baseQuotas: {
|
|
5779
|
-
downloadBandwidth: bigint | null;
|
|
5780
|
-
uploadBandwidth: bigint | null;
|
|
5781
|
-
downloadCount: bigint | null;
|
|
5782
|
-
uploadCount: bigint | null;
|
|
5783
5827
|
perDataSize: bigint | null;
|
|
5784
5828
|
totalStorageSize: bigint | null;
|
|
5785
5829
|
totalDataCount: bigint | null;
|
|
5830
|
+
downloadBandwidth: bigint | null;
|
|
5831
|
+
downloadCount: bigint | null;
|
|
5832
|
+
uploadBandwidth: bigint | null;
|
|
5833
|
+
uploadCount: bigint | null;
|
|
5786
5834
|
sentMailsId: string;
|
|
5787
5835
|
};
|
|
5788
5836
|
};
|
|
@@ -6144,52 +6192,117 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
6144
6192
|
};
|
|
6145
6193
|
meta: any;
|
|
6146
6194
|
}>;
|
|
6147
|
-
|
|
6148
|
-
identity: import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
6149
|
-
get: import("@trpc/server").TRPCQueryProcedure<{
|
|
6195
|
+
limits: import("@trpc/server").TRPCQueryProcedure<{
|
|
6150
6196
|
input: {
|
|
6151
|
-
|
|
6197
|
+
orgId: string;
|
|
6198
|
+
appId: string;
|
|
6152
6199
|
};
|
|
6153
6200
|
output: {
|
|
6154
|
-
|
|
6155
|
-
|
|
6156
|
-
|
|
6157
|
-
|
|
6158
|
-
|
|
6159
|
-
|
|
6160
|
-
|
|
6161
|
-
|
|
6162
|
-
groupId: string;
|
|
6163
|
-
groupOwnerPubKey: string;
|
|
6201
|
+
type: "app";
|
|
6202
|
+
appId: string;
|
|
6203
|
+
orgId: string;
|
|
6204
|
+
settings: {
|
|
6205
|
+
paidByApp: boolean;
|
|
6206
|
+
bandwidthLimit: bigint | null;
|
|
6207
|
+
perDataSizeLimit: bigint | null;
|
|
6208
|
+
totalStorageSizeLimit: bigint | null;
|
|
6164
6209
|
};
|
|
6165
|
-
|
|
6166
|
-
|
|
6167
|
-
|
|
6168
|
-
|
|
6169
|
-
|
|
6170
|
-
|
|
6171
|
-
|
|
6172
|
-
|
|
6173
|
-
|
|
6174
|
-
|
|
6175
|
-
|
|
6176
|
-
|
|
6177
|
-
|
|
6178
|
-
|
|
6179
|
-
|
|
6180
|
-
|
|
6181
|
-
|
|
6182
|
-
|
|
6183
|
-
}
|
|
6184
|
-
}
|
|
6185
|
-
|
|
6186
|
-
|
|
6187
|
-
|
|
6188
|
-
|
|
6189
|
-
|
|
6190
|
-
|
|
6191
|
-
|
|
6192
|
-
|
|
6210
|
+
quotas: null;
|
|
6211
|
+
metrics: {
|
|
6212
|
+
uploadCount: bigint;
|
|
6213
|
+
uploadBandwidth: bigint;
|
|
6214
|
+
downloadBandwidth: bigint;
|
|
6215
|
+
downloadCount: bigint;
|
|
6216
|
+
sentMailCount: bigint;
|
|
6217
|
+
sentMailDataCount: bigint;
|
|
6218
|
+
sentMailDataSize: bigint;
|
|
6219
|
+
};
|
|
6220
|
+
userLimitedQuotas: {
|
|
6221
|
+
uploadBandwidth: bigint | null;
|
|
6222
|
+
uploadCount: bigint | null;
|
|
6223
|
+
perDataSize: bigint | null;
|
|
6224
|
+
totalStorageSize: bigint | null;
|
|
6225
|
+
totalDataCount: bigint | null;
|
|
6226
|
+
downloadBandwidth: bigint | null;
|
|
6227
|
+
downloadCount: bigint | null;
|
|
6228
|
+
} | null;
|
|
6229
|
+
} | {
|
|
6230
|
+
type: "org";
|
|
6231
|
+
appId: string;
|
|
6232
|
+
orgId: string;
|
|
6233
|
+
settings: {
|
|
6234
|
+
paidByApp: boolean;
|
|
6235
|
+
bandwidthLimit: bigint | null;
|
|
6236
|
+
perDataSizeLimit: bigint | null;
|
|
6237
|
+
totalStorageSizeLimit: bigint | null;
|
|
6238
|
+
};
|
|
6239
|
+
quotas: {
|
|
6240
|
+
uploadBandwidth: bigint | null;
|
|
6241
|
+
uploadCount: bigint | null;
|
|
6242
|
+
perDataSize: bigint | null;
|
|
6243
|
+
totalStorageSize: bigint | null;
|
|
6244
|
+
totalDataCount: bigint | null;
|
|
6245
|
+
downloadBandwidth: bigint | null;
|
|
6246
|
+
downloadCount: bigint | null;
|
|
6247
|
+
};
|
|
6248
|
+
metrics: {
|
|
6249
|
+
uploadCount: bigint;
|
|
6250
|
+
uploadBandwidth: bigint;
|
|
6251
|
+
downloadBandwidth: bigint;
|
|
6252
|
+
downloadCount: bigint;
|
|
6253
|
+
sentMailCount: bigint;
|
|
6254
|
+
sentMailDataCount: bigint;
|
|
6255
|
+
sentMailDataSize: bigint;
|
|
6256
|
+
};
|
|
6257
|
+
};
|
|
6258
|
+
meta: any;
|
|
6259
|
+
}>;
|
|
6260
|
+
}>;
|
|
6261
|
+
identity: import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
6262
|
+
get: import("@trpc/server").TRPCQueryProcedure<{
|
|
6263
|
+
input: {
|
|
6264
|
+
pubKey: string;
|
|
6265
|
+
};
|
|
6266
|
+
output: {
|
|
6267
|
+
identity: {
|
|
6268
|
+
kind: "USER_APP";
|
|
6269
|
+
identityPubKey: string;
|
|
6270
|
+
userId: string;
|
|
6271
|
+
appId: string;
|
|
6272
|
+
} | {
|
|
6273
|
+
kind: "GROUP";
|
|
6274
|
+
identityPubKey: string;
|
|
6275
|
+
groupId: string;
|
|
6276
|
+
groupOwnerPubKey: string;
|
|
6277
|
+
};
|
|
6278
|
+
};
|
|
6279
|
+
meta: any;
|
|
6280
|
+
}>;
|
|
6281
|
+
getMany: import("@trpc/server").TRPCQueryProcedure<{
|
|
6282
|
+
input: {
|
|
6283
|
+
pubKeys: string[];
|
|
6284
|
+
};
|
|
6285
|
+
output: {
|
|
6286
|
+
identities: ({
|
|
6287
|
+
kind: "USER_APP";
|
|
6288
|
+
identityPubKey: string;
|
|
6289
|
+
userId: string;
|
|
6290
|
+
appId: string;
|
|
6291
|
+
} | {
|
|
6292
|
+
kind: "GROUP";
|
|
6293
|
+
identityPubKey: string;
|
|
6294
|
+
groupId: string;
|
|
6295
|
+
groupOwnerPubKey: string;
|
|
6296
|
+
})[];
|
|
6297
|
+
};
|
|
6298
|
+
meta: any;
|
|
6299
|
+
}>;
|
|
6300
|
+
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
6301
|
+
input: void;
|
|
6302
|
+
output: {
|
|
6303
|
+
identities: ({
|
|
6304
|
+
kind: "USER_APP";
|
|
6305
|
+
identityPubKey: string;
|
|
6193
6306
|
userId: string;
|
|
6194
6307
|
appId: string;
|
|
6195
6308
|
encPriv: string;
|
|
@@ -6458,46 +6571,120 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
6458
6571
|
}>;
|
|
6459
6572
|
application: import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
6460
6573
|
limits: import("@trpc/server").TRPCQueryProcedure<{
|
|
6461
|
-
input:
|
|
6574
|
+
input: {
|
|
6575
|
+
appId?: string | null | undefined;
|
|
6576
|
+
paidByApp?: boolean | undefined;
|
|
6577
|
+
userIds?: string[] | undefined;
|
|
6578
|
+
};
|
|
6462
6579
|
output: {
|
|
6463
6580
|
metrics: {
|
|
6581
|
+
lastReset: Date;
|
|
6582
|
+
hasDatabase: boolean;
|
|
6464
6583
|
devsCount: bigint;
|
|
6465
6584
|
usersCount: bigint;
|
|
6466
|
-
|
|
6467
|
-
|
|
6585
|
+
} & {
|
|
6586
|
+
totalDataCount: bigint;
|
|
6587
|
+
totalDataSize: bigint;
|
|
6468
6588
|
downloadBandwidth: bigint;
|
|
6469
|
-
uploadBandwidth: bigint;
|
|
6470
6589
|
downloadCount: bigint;
|
|
6590
|
+
uploadBandwidth: bigint;
|
|
6471
6591
|
uploadCount: bigint;
|
|
6472
|
-
|
|
6473
|
-
|
|
6474
|
-
|
|
6592
|
+
sentMailCount: bigint;
|
|
6593
|
+
sentMailDataCount: bigint;
|
|
6594
|
+
sentMailDataSize: bigint;
|
|
6475
6595
|
};
|
|
6476
6596
|
quotas: {
|
|
6477
6597
|
devsCount: bigint | null;
|
|
6478
6598
|
usersCount: bigint | null;
|
|
6479
6599
|
bandwidth: bigint | null;
|
|
6480
|
-
|
|
6481
|
-
|
|
6600
|
+
totalDataSize: bigint | null;
|
|
6601
|
+
totalDataCount: bigint | null;
|
|
6482
6602
|
perDataSize: bigint | null;
|
|
6483
|
-
|
|
6484
|
-
|
|
6485
|
-
|
|
6603
|
+
uploadCount: bigint | null;
|
|
6604
|
+
downloadCount: bigint | null;
|
|
6605
|
+
sentMails: {
|
|
6606
|
+
count: bigint | null;
|
|
6607
|
+
perDataSize: bigint | null;
|
|
6608
|
+
totalStorageSize: bigint | null;
|
|
6609
|
+
totalDataCount: bigint | null;
|
|
6610
|
+
dataCount: bigint | null;
|
|
6611
|
+
dataSize: bigint | null;
|
|
6612
|
+
totalCount: bigint | null;
|
|
6613
|
+
};
|
|
6486
6614
|
};
|
|
6615
|
+
} | {
|
|
6616
|
+
lastReset: Date;
|
|
6617
|
+
details: {
|
|
6618
|
+
userId: string;
|
|
6619
|
+
metrics: {
|
|
6620
|
+
totalDataCount: bigint;
|
|
6621
|
+
totalDataSize: bigint;
|
|
6622
|
+
downloadBandwidth: bigint;
|
|
6623
|
+
downloadCount: bigint;
|
|
6624
|
+
uploadBandwidth: bigint;
|
|
6625
|
+
uploadCount: bigint;
|
|
6626
|
+
sentMailCount: bigint;
|
|
6627
|
+
sentMailDataCount: bigint;
|
|
6628
|
+
sentMailDataSize: bigint;
|
|
6629
|
+
};
|
|
6630
|
+
quotas: {
|
|
6631
|
+
totalDataSize: bigint | null;
|
|
6632
|
+
totalDataCount: bigint | null;
|
|
6633
|
+
uploadBandwidth: bigint | null;
|
|
6634
|
+
downloadBandwidth: bigint | null;
|
|
6635
|
+
perDataSize: bigint | null;
|
|
6636
|
+
uploadCount: bigint | null;
|
|
6637
|
+
downloadCount: bigint | null;
|
|
6638
|
+
sentMails: {
|
|
6639
|
+
count: bigint | null;
|
|
6640
|
+
perDataSize: bigint | null;
|
|
6641
|
+
totalStorageSize: bigint | null;
|
|
6642
|
+
totalDataCount: bigint | null;
|
|
6643
|
+
dataCount: bigint | null;
|
|
6644
|
+
dataSize: bigint | null;
|
|
6645
|
+
totalCount: bigint | null;
|
|
6646
|
+
} | null;
|
|
6647
|
+
} | null;
|
|
6648
|
+
}[];
|
|
6487
6649
|
};
|
|
6488
6650
|
meta: any;
|
|
6489
6651
|
}>;
|
|
6490
6652
|
metrics: import("@trpc/server").TRPCQueryProcedure<{
|
|
6491
6653
|
input: {
|
|
6492
6654
|
appId?: string | undefined;
|
|
6655
|
+
paidByApp?: boolean | undefined;
|
|
6656
|
+
userIds?: string[] | undefined;
|
|
6493
6657
|
};
|
|
6494
|
-
output: {
|
|
6658
|
+
output: ({
|
|
6659
|
+
lastReset: Date;
|
|
6495
6660
|
hasDatabase: boolean;
|
|
6496
|
-
|
|
6497
|
-
|
|
6498
|
-
|
|
6499
|
-
|
|
6500
|
-
|
|
6661
|
+
devsCount: bigint;
|
|
6662
|
+
usersCount: bigint;
|
|
6663
|
+
} & {
|
|
6664
|
+
totalDataCount: bigint;
|
|
6665
|
+
totalDataSize: bigint;
|
|
6666
|
+
downloadBandwidth: bigint;
|
|
6667
|
+
downloadCount: bigint;
|
|
6668
|
+
uploadBandwidth: bigint;
|
|
6669
|
+
uploadCount: bigint;
|
|
6670
|
+
sentMailCount: bigint;
|
|
6671
|
+
sentMailDataCount: bigint;
|
|
6672
|
+
sentMailDataSize: bigint;
|
|
6673
|
+
}) | {
|
|
6674
|
+
lastReset: Date;
|
|
6675
|
+
details: ({
|
|
6676
|
+
userId: string;
|
|
6677
|
+
} & {
|
|
6678
|
+
totalDataCount: bigint;
|
|
6679
|
+
totalDataSize: bigint;
|
|
6680
|
+
downloadBandwidth: bigint;
|
|
6681
|
+
downloadCount: bigint;
|
|
6682
|
+
uploadBandwidth: bigint;
|
|
6683
|
+
uploadCount: bigint;
|
|
6684
|
+
sentMailCount: bigint;
|
|
6685
|
+
sentMailDataCount: bigint;
|
|
6686
|
+
sentMailDataSize: bigint;
|
|
6687
|
+
})[];
|
|
6501
6688
|
};
|
|
6502
6689
|
meta: any;
|
|
6503
6690
|
}>;
|
|
@@ -6566,8 +6753,6 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
6566
6753
|
} & {
|
|
6567
6754
|
quotas: {
|
|
6568
6755
|
users: bigint | null;
|
|
6569
|
-
bandwidth: bigint | null;
|
|
6570
|
-
perDataSize: bigint | null;
|
|
6571
6756
|
devs: bigint | null;
|
|
6572
6757
|
devsBase: bigint | null;
|
|
6573
6758
|
devsUnit: bigint | null;
|
|
@@ -6575,9 +6760,11 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
6575
6760
|
usersBase: bigint | null;
|
|
6576
6761
|
usersUnit: bigint | null;
|
|
6577
6762
|
usersPrice: number | null;
|
|
6763
|
+
perDataSize: bigint | null;
|
|
6578
6764
|
perDataSizeBase: bigint | null;
|
|
6579
6765
|
perDataSizeUnit: bigint | null;
|
|
6580
6766
|
perDataSizePrice: number | null;
|
|
6767
|
+
bandwidth: bigint | null;
|
|
6581
6768
|
bandwidthBase: bigint | null;
|
|
6582
6769
|
bandwidthUnit: bigint | null;
|
|
6583
6770
|
bandwidthPrice: number | null;
|
|
@@ -6588,13 +6775,13 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
6588
6775
|
baseQuotasId: string;
|
|
6589
6776
|
} & {
|
|
6590
6777
|
baseQuotas: {
|
|
6591
|
-
downloadBandwidth: bigint | null;
|
|
6592
|
-
uploadBandwidth: bigint | null;
|
|
6593
|
-
downloadCount: bigint | null;
|
|
6594
|
-
uploadCount: bigint | null;
|
|
6595
6778
|
perDataSize: bigint | null;
|
|
6596
6779
|
totalStorageSize: bigint | null;
|
|
6597
6780
|
totalDataCount: bigint | null;
|
|
6781
|
+
downloadBandwidth: bigint | null;
|
|
6782
|
+
downloadCount: bigint | null;
|
|
6783
|
+
uploadBandwidth: bigint | null;
|
|
6784
|
+
uploadCount: bigint | null;
|
|
6598
6785
|
sentMailsId: string;
|
|
6599
6786
|
};
|
|
6600
6787
|
};
|
|
@@ -11442,12 +11629,19 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
11442
11629
|
}[];
|
|
11443
11630
|
meta: any;
|
|
11444
11631
|
}>;
|
|
11445
|
-
|
|
11632
|
+
limits: import("@trpc/server").TRPCQueryProcedure<{
|
|
11446
11633
|
input: {
|
|
11447
11634
|
orgId: string;
|
|
11635
|
+
paidByApp?: boolean | undefined;
|
|
11636
|
+
userIds?: string[] | undefined;
|
|
11448
11637
|
};
|
|
11449
11638
|
output: {
|
|
11450
11639
|
metrics: {
|
|
11640
|
+
lastReset: Date;
|
|
11641
|
+
membersCount: bigint;
|
|
11642
|
+
} & {
|
|
11643
|
+
totalDataCount: bigint;
|
|
11644
|
+
totalDataSize: bigint;
|
|
11451
11645
|
downloadBandwidth: bigint;
|
|
11452
11646
|
downloadCount: bigint;
|
|
11453
11647
|
uploadBandwidth: bigint;
|
|
@@ -11455,8 +11649,6 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
11455
11649
|
sentMailCount: bigint;
|
|
11456
11650
|
sentMailDataCount: bigint;
|
|
11457
11651
|
sentMailDataSize: bigint;
|
|
11458
|
-
totalDataSize: bigint;
|
|
11459
|
-
totalDataCount: bigint;
|
|
11460
11652
|
};
|
|
11461
11653
|
quotas: {
|
|
11462
11654
|
downloadBandwidth: bigint | null;
|
|
@@ -11464,21 +11656,56 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
11464
11656
|
uploadBandwidth: bigint | null;
|
|
11465
11657
|
uploadCount: bigint | null;
|
|
11466
11658
|
totalDataCount: bigint | null;
|
|
11467
|
-
|
|
11659
|
+
totalDataSize: bigint | null;
|
|
11468
11660
|
perDataSize: bigint | null;
|
|
11469
11661
|
sentMails: {
|
|
11470
11662
|
count: bigint | null;
|
|
11471
|
-
totalCount: bigint | null;
|
|
11472
11663
|
perDataSize: bigint | null;
|
|
11664
|
+
totalStorageSize: bigint | null;
|
|
11665
|
+
totalDataCount: bigint | null;
|
|
11473
11666
|
dataCount: bigint | null;
|
|
11474
11667
|
dataSize: bigint | null;
|
|
11475
|
-
|
|
11476
|
-
totalStorageSize: bigint | null;
|
|
11668
|
+
totalCount: bigint | null;
|
|
11477
11669
|
};
|
|
11478
11670
|
};
|
|
11479
11671
|
};
|
|
11480
11672
|
meta: any;
|
|
11481
11673
|
}>;
|
|
11674
|
+
metrics: import("@trpc/server").TRPCQueryProcedure<{
|
|
11675
|
+
input: {
|
|
11676
|
+
orgId: string;
|
|
11677
|
+
paidByApp?: boolean | undefined;
|
|
11678
|
+
userIds?: string[] | undefined;
|
|
11679
|
+
};
|
|
11680
|
+
output: ({
|
|
11681
|
+
lastReset: Date;
|
|
11682
|
+
membersCount: bigint;
|
|
11683
|
+
} & {
|
|
11684
|
+
totalDataCount: bigint;
|
|
11685
|
+
totalDataSize: bigint;
|
|
11686
|
+
downloadBandwidth: bigint;
|
|
11687
|
+
downloadCount: bigint;
|
|
11688
|
+
uploadBandwidth: bigint;
|
|
11689
|
+
uploadCount: bigint;
|
|
11690
|
+
sentMailCount: bigint;
|
|
11691
|
+
sentMailDataCount: bigint;
|
|
11692
|
+
sentMailDataSize: bigint;
|
|
11693
|
+
}) | {
|
|
11694
|
+
lastReset: Date;
|
|
11695
|
+
details: {
|
|
11696
|
+
totalDataCount: bigint;
|
|
11697
|
+
totalDataSize: bigint;
|
|
11698
|
+
downloadBandwidth: bigint;
|
|
11699
|
+
downloadCount: bigint;
|
|
11700
|
+
uploadBandwidth: bigint;
|
|
11701
|
+
uploadCount: bigint;
|
|
11702
|
+
sentMailCount: bigint;
|
|
11703
|
+
sentMailDataCount: bigint;
|
|
11704
|
+
sentMailDataSize: bigint;
|
|
11705
|
+
}[];
|
|
11706
|
+
};
|
|
11707
|
+
meta: any;
|
|
11708
|
+
}>;
|
|
11482
11709
|
plans: import("@trpc/server").TRPCQueryProcedure<{
|
|
11483
11710
|
input: Record<string, never>;
|
|
11484
11711
|
output: {
|
|
@@ -11488,21 +11715,21 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
11488
11715
|
quotasId: string;
|
|
11489
11716
|
stripePricesId: string | null;
|
|
11490
11717
|
quotas: {
|
|
11491
|
-
downloadBandwidth: bigint | null;
|
|
11492
|
-
uploadBandwidth: bigint | null;
|
|
11493
|
-
downloadCount: bigint | null;
|
|
11494
|
-
uploadCount: bigint | null;
|
|
11495
11718
|
perDataSize: bigint | null;
|
|
11496
11719
|
totalStorageSize: bigint | null;
|
|
11497
11720
|
totalDataCount: bigint | null;
|
|
11721
|
+
downloadBandwidth: bigint | null;
|
|
11722
|
+
downloadCount: bigint | null;
|
|
11723
|
+
uploadBandwidth: bigint | null;
|
|
11724
|
+
uploadCount: bigint | null;
|
|
11498
11725
|
sentMails: {
|
|
11499
11726
|
count: bigint | null;
|
|
11500
11727
|
perDataSize: bigint | null;
|
|
11501
11728
|
totalStorageSize: bigint | null;
|
|
11502
11729
|
totalDataCount: bigint | null;
|
|
11503
|
-
totalCount: bigint | null;
|
|
11504
11730
|
dataCount: bigint | null;
|
|
11505
11731
|
dataSize: bigint | null;
|
|
11732
|
+
totalCount: bigint | null;
|
|
11506
11733
|
};
|
|
11507
11734
|
};
|
|
11508
11735
|
price: number;
|
|
@@ -11585,72 +11812,6 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
11585
11812
|
};
|
|
11586
11813
|
meta: any;
|
|
11587
11814
|
}>;
|
|
11588
|
-
userContextLimits: import("@trpc/server").TRPCQueryProcedure<{
|
|
11589
|
-
input: {
|
|
11590
|
-
orgId: string;
|
|
11591
|
-
appId: string;
|
|
11592
|
-
};
|
|
11593
|
-
output: {
|
|
11594
|
-
type: "app";
|
|
11595
|
-
appId: string;
|
|
11596
|
-
orgId: string;
|
|
11597
|
-
settings: {
|
|
11598
|
-
paidByApp: boolean;
|
|
11599
|
-
bandwidthLimit: bigint | null;
|
|
11600
|
-
perDataSizeLimit: bigint | null;
|
|
11601
|
-
totalStorageSizeLimit: bigint | null;
|
|
11602
|
-
};
|
|
11603
|
-
quotas: {
|
|
11604
|
-
bandwith: bigint | null;
|
|
11605
|
-
uploadCount: bigint | null;
|
|
11606
|
-
downloadCount: bigint | null;
|
|
11607
|
-
totalDataCount: bigint | null;
|
|
11608
|
-
perDataSize: bigint | null;
|
|
11609
|
-
totalStorageSize: bigint | null;
|
|
11610
|
-
};
|
|
11611
|
-
metrics: {
|
|
11612
|
-
uploadCount: bigint;
|
|
11613
|
-
uploadBandwidth: bigint;
|
|
11614
|
-
downloadBandwidth: bigint;
|
|
11615
|
-
downloadCount: bigint;
|
|
11616
|
-
};
|
|
11617
|
-
} | {
|
|
11618
|
-
type: "org";
|
|
11619
|
-
appId: string;
|
|
11620
|
-
orgId: string;
|
|
11621
|
-
settings: {
|
|
11622
|
-
paidByApp: boolean;
|
|
11623
|
-
bandwidthLimit: bigint | null;
|
|
11624
|
-
perDataSizeLimit: bigint | null;
|
|
11625
|
-
totalStorageSizeLimit: bigint | null;
|
|
11626
|
-
};
|
|
11627
|
-
quotas: {
|
|
11628
|
-
uploadBandwidth: bigint | null;
|
|
11629
|
-
uploadCount: bigint | null;
|
|
11630
|
-
perDataSize: bigint | null;
|
|
11631
|
-
totalStorageSize: bigint | null;
|
|
11632
|
-
totalDataCount: bigint | null;
|
|
11633
|
-
downloadBandwidth: bigint | null;
|
|
11634
|
-
downloadCount: bigint | null;
|
|
11635
|
-
};
|
|
11636
|
-
userLimitedQuotas: {
|
|
11637
|
-
uploadBandwidth: bigint | null;
|
|
11638
|
-
uploadCount: bigint | null;
|
|
11639
|
-
perDataSize: bigint | null;
|
|
11640
|
-
totalStorageSize: bigint | null;
|
|
11641
|
-
totalDataCount: bigint | null;
|
|
11642
|
-
downloadBandwidth: bigint | null;
|
|
11643
|
-
downloadCount: bigint | null;
|
|
11644
|
-
} | null;
|
|
11645
|
-
metrics: {
|
|
11646
|
-
uploadCount: bigint;
|
|
11647
|
-
uploadBandwidth: bigint;
|
|
11648
|
-
downloadBandwidth: bigint;
|
|
11649
|
-
downloadCount: bigint;
|
|
11650
|
-
};
|
|
11651
|
-
};
|
|
11652
|
-
meta: any;
|
|
11653
|
-
}>;
|
|
11654
11815
|
addMember: import("@trpc/server").TRPCMutationProcedure<{
|
|
11655
11816
|
input: {
|
|
11656
11817
|
orgId: string;
|
|
@@ -12078,8 +12239,6 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
12078
12239
|
} & {
|
|
12079
12240
|
quotas: {
|
|
12080
12241
|
users: bigint | null;
|
|
12081
|
-
bandwidth: bigint | null;
|
|
12082
|
-
perDataSize: bigint | null;
|
|
12083
12242
|
devs: bigint | null;
|
|
12084
12243
|
devsBase: bigint | null;
|
|
12085
12244
|
devsUnit: bigint | null;
|
|
@@ -12087,9 +12246,11 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
12087
12246
|
usersBase: bigint | null;
|
|
12088
12247
|
usersUnit: bigint | null;
|
|
12089
12248
|
usersPrice: number | null;
|
|
12249
|
+
perDataSize: bigint | null;
|
|
12090
12250
|
perDataSizeBase: bigint | null;
|
|
12091
12251
|
perDataSizeUnit: bigint | null;
|
|
12092
12252
|
perDataSizePrice: number | null;
|
|
12253
|
+
bandwidth: bigint | null;
|
|
12093
12254
|
bandwidthBase: bigint | null;
|
|
12094
12255
|
bandwidthUnit: bigint | null;
|
|
12095
12256
|
bandwidthPrice: number | null;
|
|
@@ -12100,13 +12261,13 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
12100
12261
|
baseQuotasId: string;
|
|
12101
12262
|
} & {
|
|
12102
12263
|
baseQuotas: {
|
|
12103
|
-
downloadBandwidth: bigint | null;
|
|
12104
|
-
uploadBandwidth: bigint | null;
|
|
12105
|
-
downloadCount: bigint | null;
|
|
12106
|
-
uploadCount: bigint | null;
|
|
12107
12264
|
perDataSize: bigint | null;
|
|
12108
12265
|
totalStorageSize: bigint | null;
|
|
12109
12266
|
totalDataCount: bigint | null;
|
|
12267
|
+
downloadBandwidth: bigint | null;
|
|
12268
|
+
downloadCount: bigint | null;
|
|
12269
|
+
uploadBandwidth: bigint | null;
|
|
12270
|
+
uploadCount: bigint | null;
|
|
12110
12271
|
sentMailsId: string;
|
|
12111
12272
|
};
|
|
12112
12273
|
};
|
|
@@ -12156,8 +12317,6 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
12156
12317
|
} & {
|
|
12157
12318
|
quotas: {
|
|
12158
12319
|
users: bigint | null;
|
|
12159
|
-
bandwidth: bigint | null;
|
|
12160
|
-
perDataSize: bigint | null;
|
|
12161
12320
|
devs: bigint | null;
|
|
12162
12321
|
devsBase: bigint | null;
|
|
12163
12322
|
devsUnit: bigint | null;
|
|
@@ -12165,9 +12324,11 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
12165
12324
|
usersBase: bigint | null;
|
|
12166
12325
|
usersUnit: bigint | null;
|
|
12167
12326
|
usersPrice: number | null;
|
|
12327
|
+
perDataSize: bigint | null;
|
|
12168
12328
|
perDataSizeBase: bigint | null;
|
|
12169
12329
|
perDataSizeUnit: bigint | null;
|
|
12170
12330
|
perDataSizePrice: number | null;
|
|
12331
|
+
bandwidth: bigint | null;
|
|
12171
12332
|
bandwidthBase: bigint | null;
|
|
12172
12333
|
bandwidthUnit: bigint | null;
|
|
12173
12334
|
bandwidthPrice: number | null;
|
|
@@ -12178,13 +12339,13 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
12178
12339
|
baseQuotasId: string;
|
|
12179
12340
|
} & {
|
|
12180
12341
|
baseQuotas: {
|
|
12181
|
-
downloadBandwidth: bigint | null;
|
|
12182
|
-
uploadBandwidth: bigint | null;
|
|
12183
|
-
downloadCount: bigint | null;
|
|
12184
|
-
uploadCount: bigint | null;
|
|
12185
12342
|
perDataSize: bigint | null;
|
|
12186
12343
|
totalStorageSize: bigint | null;
|
|
12187
12344
|
totalDataCount: bigint | null;
|
|
12345
|
+
downloadBandwidth: bigint | null;
|
|
12346
|
+
downloadCount: bigint | null;
|
|
12347
|
+
uploadBandwidth: bigint | null;
|
|
12348
|
+
uploadCount: bigint | null;
|
|
12188
12349
|
sentMailsId: string;
|
|
12189
12350
|
};
|
|
12190
12351
|
};
|
|
@@ -12546,6 +12707,71 @@ export declare const getTrpcGuestClient: ({ url }?: {
|
|
|
12546
12707
|
};
|
|
12547
12708
|
meta: any;
|
|
12548
12709
|
}>;
|
|
12710
|
+
limits: import("@trpc/server").TRPCQueryProcedure<{
|
|
12711
|
+
input: {
|
|
12712
|
+
orgId: string;
|
|
12713
|
+
appId: string;
|
|
12714
|
+
};
|
|
12715
|
+
output: {
|
|
12716
|
+
type: "app";
|
|
12717
|
+
appId: string;
|
|
12718
|
+
orgId: string;
|
|
12719
|
+
settings: {
|
|
12720
|
+
paidByApp: boolean;
|
|
12721
|
+
bandwidthLimit: bigint | null;
|
|
12722
|
+
perDataSizeLimit: bigint | null;
|
|
12723
|
+
totalStorageSizeLimit: bigint | null;
|
|
12724
|
+
};
|
|
12725
|
+
quotas: null;
|
|
12726
|
+
metrics: {
|
|
12727
|
+
uploadCount: bigint;
|
|
12728
|
+
uploadBandwidth: bigint;
|
|
12729
|
+
downloadBandwidth: bigint;
|
|
12730
|
+
downloadCount: bigint;
|
|
12731
|
+
sentMailCount: bigint;
|
|
12732
|
+
sentMailDataCount: bigint;
|
|
12733
|
+
sentMailDataSize: bigint;
|
|
12734
|
+
};
|
|
12735
|
+
userLimitedQuotas: {
|
|
12736
|
+
uploadBandwidth: bigint | null;
|
|
12737
|
+
uploadCount: bigint | null;
|
|
12738
|
+
perDataSize: bigint | null;
|
|
12739
|
+
totalStorageSize: bigint | null;
|
|
12740
|
+
totalDataCount: bigint | null;
|
|
12741
|
+
downloadBandwidth: bigint | null;
|
|
12742
|
+
downloadCount: bigint | null;
|
|
12743
|
+
} | null;
|
|
12744
|
+
} | {
|
|
12745
|
+
type: "org";
|
|
12746
|
+
appId: string;
|
|
12747
|
+
orgId: string;
|
|
12748
|
+
settings: {
|
|
12749
|
+
paidByApp: boolean;
|
|
12750
|
+
bandwidthLimit: bigint | null;
|
|
12751
|
+
perDataSizeLimit: bigint | null;
|
|
12752
|
+
totalStorageSizeLimit: bigint | null;
|
|
12753
|
+
};
|
|
12754
|
+
quotas: {
|
|
12755
|
+
uploadBandwidth: bigint | null;
|
|
12756
|
+
uploadCount: bigint | null;
|
|
12757
|
+
perDataSize: bigint | null;
|
|
12758
|
+
totalStorageSize: bigint | null;
|
|
12759
|
+
totalDataCount: bigint | null;
|
|
12760
|
+
downloadBandwidth: bigint | null;
|
|
12761
|
+
downloadCount: bigint | null;
|
|
12762
|
+
};
|
|
12763
|
+
metrics: {
|
|
12764
|
+
uploadCount: bigint;
|
|
12765
|
+
uploadBandwidth: bigint;
|
|
12766
|
+
downloadBandwidth: bigint;
|
|
12767
|
+
downloadCount: bigint;
|
|
12768
|
+
sentMailCount: bigint;
|
|
12769
|
+
sentMailDataCount: bigint;
|
|
12770
|
+
sentMailDataSize: bigint;
|
|
12771
|
+
};
|
|
12772
|
+
};
|
|
12773
|
+
meta: any;
|
|
12774
|
+
}>;
|
|
12549
12775
|
}>;
|
|
12550
12776
|
identity: import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
12551
12777
|
get: import("@trpc/server").TRPCQueryProcedure<{
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@secrecy/lib",
|
|
3
3
|
"author": "Anonymize <anonymize@gmail.com>",
|
|
4
4
|
"description": "Anonymize Secrecy Library",
|
|
5
|
-
"version": "1.85.1
|
|
5
|
+
"version": "1.85.1",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "https://github.com/anonymize-org/lib.git"
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
},
|
|
77
77
|
"dependencies": {
|
|
78
78
|
"@js-temporal/polyfill": "^0.5.1",
|
|
79
|
-
"@secrecy/trpc-api-types": "1.41.0-fix-reset-billing.
|
|
79
|
+
"@secrecy/trpc-api-types": "1.41.0-fix-reset-billing.28",
|
|
80
80
|
"@trpc/client": "11.6.0",
|
|
81
81
|
"@trpc/server": "^11.6.0",
|
|
82
82
|
"@types/libsodium-wrappers-sumo": "^0.7.8",
|