@secrecy/trpc-api-types 1.41.0-fix-reset-billing.26 → 1.41.0-fix-reset-billing.28
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/index.d.ts +147 -67
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -104,7 +104,9 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
104
104
|
}, _trpc_server.TRPCDecorateCreateRouterOptions<{
|
|
105
105
|
limits: _trpc_server.TRPCQueryProcedure<{
|
|
106
106
|
input: {
|
|
107
|
+
appId?: string | null | undefined;
|
|
107
108
|
paidByApp?: boolean | undefined;
|
|
109
|
+
userIds?: string[] | undefined;
|
|
108
110
|
};
|
|
109
111
|
output: {
|
|
110
112
|
metrics: {
|
|
@@ -112,27 +114,70 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
112
114
|
hasDatabase: boolean;
|
|
113
115
|
devsCount: bigint;
|
|
114
116
|
usersCount: bigint;
|
|
115
|
-
|
|
116
|
-
|
|
117
|
+
} & {
|
|
118
|
+
totalDataCount: bigint;
|
|
119
|
+
totalDataSize: bigint;
|
|
117
120
|
downloadBandwidth: bigint;
|
|
118
|
-
uploadBandwidth: bigint;
|
|
119
121
|
downloadCount: bigint;
|
|
122
|
+
uploadBandwidth: bigint;
|
|
120
123
|
uploadCount: bigint;
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
+
sentMailCount: bigint;
|
|
125
|
+
sentMailDataCount: bigint;
|
|
126
|
+
sentMailDataSize: bigint;
|
|
124
127
|
};
|
|
125
128
|
quotas: {
|
|
126
129
|
devsCount: bigint | null;
|
|
127
130
|
usersCount: bigint | null;
|
|
128
131
|
bandwidth: bigint | null;
|
|
129
|
-
|
|
130
|
-
|
|
132
|
+
totalDataSize: bigint | null;
|
|
133
|
+
totalDataCount: bigint | null;
|
|
131
134
|
perDataSize: bigint | null;
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
+
uploadCount: bigint | null;
|
|
136
|
+
downloadCount: bigint | null;
|
|
137
|
+
sentMails: {
|
|
138
|
+
count: bigint | null;
|
|
139
|
+
perDataSize: bigint | null;
|
|
140
|
+
totalStorageSize: bigint | null;
|
|
141
|
+
totalDataCount: bigint | null;
|
|
142
|
+
dataCount: bigint | null;
|
|
143
|
+
dataSize: bigint | null;
|
|
144
|
+
totalCount: bigint | null;
|
|
145
|
+
};
|
|
135
146
|
};
|
|
147
|
+
} | {
|
|
148
|
+
lastReset: Date;
|
|
149
|
+
details: {
|
|
150
|
+
userId: string;
|
|
151
|
+
metrics: {
|
|
152
|
+
totalDataCount: bigint;
|
|
153
|
+
totalDataSize: bigint;
|
|
154
|
+
downloadBandwidth: bigint;
|
|
155
|
+
downloadCount: bigint;
|
|
156
|
+
uploadBandwidth: bigint;
|
|
157
|
+
uploadCount: bigint;
|
|
158
|
+
sentMailCount: bigint;
|
|
159
|
+
sentMailDataCount: bigint;
|
|
160
|
+
sentMailDataSize: bigint;
|
|
161
|
+
};
|
|
162
|
+
quotas: {
|
|
163
|
+
totalDataSize: bigint | null;
|
|
164
|
+
totalDataCount: bigint | null;
|
|
165
|
+
uploadBandwidth: bigint | null;
|
|
166
|
+
downloadBandwidth: bigint | null;
|
|
167
|
+
perDataSize: bigint | null;
|
|
168
|
+
uploadCount: bigint | null;
|
|
169
|
+
downloadCount: bigint | null;
|
|
170
|
+
sentMails: {
|
|
171
|
+
count: bigint | null;
|
|
172
|
+
perDataSize: bigint | null;
|
|
173
|
+
totalStorageSize: bigint | null;
|
|
174
|
+
totalDataCount: bigint | null;
|
|
175
|
+
dataCount: bigint | null;
|
|
176
|
+
dataSize: bigint | null;
|
|
177
|
+
totalCount: bigint | null;
|
|
178
|
+
} | null;
|
|
179
|
+
} | null;
|
|
180
|
+
}[];
|
|
136
181
|
};
|
|
137
182
|
meta: any;
|
|
138
183
|
}>;
|
|
@@ -140,21 +185,38 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
140
185
|
input: {
|
|
141
186
|
appId?: string | undefined;
|
|
142
187
|
paidByApp?: boolean | undefined;
|
|
188
|
+
userIds?: string[] | undefined;
|
|
143
189
|
};
|
|
144
|
-
output: {
|
|
190
|
+
output: ({
|
|
145
191
|
lastReset: Date;
|
|
146
192
|
hasDatabase: boolean;
|
|
147
193
|
devsCount: bigint;
|
|
148
194
|
usersCount: bigint;
|
|
149
|
-
|
|
150
|
-
|
|
195
|
+
} & {
|
|
196
|
+
totalDataCount: bigint;
|
|
197
|
+
totalDataSize: bigint;
|
|
151
198
|
downloadBandwidth: bigint;
|
|
152
|
-
uploadBandwidth: bigint;
|
|
153
199
|
downloadCount: bigint;
|
|
200
|
+
uploadBandwidth: bigint;
|
|
154
201
|
uploadCount: bigint;
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
202
|
+
sentMailCount: bigint;
|
|
203
|
+
sentMailDataCount: bigint;
|
|
204
|
+
sentMailDataSize: bigint;
|
|
205
|
+
}) | {
|
|
206
|
+
lastReset: Date;
|
|
207
|
+
details: ({
|
|
208
|
+
userId: string;
|
|
209
|
+
} & {
|
|
210
|
+
totalDataCount: bigint;
|
|
211
|
+
totalDataSize: bigint;
|
|
212
|
+
downloadBandwidth: bigint;
|
|
213
|
+
downloadCount: bigint;
|
|
214
|
+
uploadBandwidth: bigint;
|
|
215
|
+
uploadCount: bigint;
|
|
216
|
+
sentMailCount: bigint;
|
|
217
|
+
sentMailDataCount: bigint;
|
|
218
|
+
sentMailDataSize: bigint;
|
|
219
|
+
})[];
|
|
158
220
|
};
|
|
159
221
|
meta: any;
|
|
160
222
|
}>;
|
|
@@ -223,8 +285,6 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
223
285
|
} & {
|
|
224
286
|
quotas: {
|
|
225
287
|
users: bigint | null;
|
|
226
|
-
bandwidth: bigint | null;
|
|
227
|
-
perDataSize: bigint | null;
|
|
228
288
|
devs: bigint | null;
|
|
229
289
|
devsBase: bigint | null;
|
|
230
290
|
devsUnit: bigint | null;
|
|
@@ -232,9 +292,11 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
232
292
|
usersBase: bigint | null;
|
|
233
293
|
usersUnit: bigint | null;
|
|
234
294
|
usersPrice: number | null;
|
|
295
|
+
perDataSize: bigint | null;
|
|
235
296
|
perDataSizeBase: bigint | null;
|
|
236
297
|
perDataSizeUnit: bigint | null;
|
|
237
298
|
perDataSizePrice: number | null;
|
|
299
|
+
bandwidth: bigint | null;
|
|
238
300
|
bandwidthBase: bigint | null;
|
|
239
301
|
bandwidthUnit: bigint | null;
|
|
240
302
|
bandwidthPrice: number | null;
|
|
@@ -245,13 +307,13 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
245
307
|
baseQuotasId: string;
|
|
246
308
|
} & {
|
|
247
309
|
baseQuotas: {
|
|
248
|
-
downloadBandwidth: bigint | null;
|
|
249
|
-
uploadBandwidth: bigint | null;
|
|
250
|
-
downloadCount: bigint | null;
|
|
251
|
-
uploadCount: bigint | null;
|
|
252
310
|
perDataSize: bigint | null;
|
|
253
311
|
totalStorageSize: bigint | null;
|
|
254
312
|
totalDataCount: bigint | null;
|
|
313
|
+
downloadBandwidth: bigint | null;
|
|
314
|
+
downloadCount: bigint | null;
|
|
315
|
+
uploadBandwidth: bigint | null;
|
|
316
|
+
uploadCount: bigint | null;
|
|
255
317
|
sentMailsId: string;
|
|
256
318
|
};
|
|
257
319
|
};
|
|
@@ -5464,10 +5526,15 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
5464
5526
|
input: {
|
|
5465
5527
|
orgId: string;
|
|
5466
5528
|
paidByApp?: boolean | undefined;
|
|
5529
|
+
userIds?: string[] | undefined;
|
|
5467
5530
|
};
|
|
5468
5531
|
output: {
|
|
5469
5532
|
metrics: {
|
|
5533
|
+
lastReset: Date;
|
|
5470
5534
|
membersCount: bigint;
|
|
5535
|
+
} & {
|
|
5536
|
+
totalDataCount: bigint;
|
|
5537
|
+
totalDataSize: bigint;
|
|
5471
5538
|
downloadBandwidth: bigint;
|
|
5472
5539
|
downloadCount: bigint;
|
|
5473
5540
|
uploadBandwidth: bigint;
|
|
@@ -5475,8 +5542,6 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
5475
5542
|
sentMailCount: bigint;
|
|
5476
5543
|
sentMailDataCount: bigint;
|
|
5477
5544
|
sentMailDataSize: bigint;
|
|
5478
|
-
totalDataSize: bigint;
|
|
5479
|
-
totalDataCount: bigint;
|
|
5480
5545
|
};
|
|
5481
5546
|
quotas: {
|
|
5482
5547
|
downloadBandwidth: bigint | null;
|
|
@@ -5484,16 +5549,16 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
5484
5549
|
uploadBandwidth: bigint | null;
|
|
5485
5550
|
uploadCount: bigint | null;
|
|
5486
5551
|
totalDataCount: bigint | null;
|
|
5487
|
-
|
|
5552
|
+
totalDataSize: bigint | null;
|
|
5488
5553
|
perDataSize: bigint | null;
|
|
5489
5554
|
sentMails: {
|
|
5490
5555
|
count: bigint | null;
|
|
5491
|
-
totalCount: bigint | null;
|
|
5492
5556
|
perDataSize: bigint | null;
|
|
5557
|
+
totalStorageSize: bigint | null;
|
|
5558
|
+
totalDataCount: bigint | null;
|
|
5493
5559
|
dataCount: bigint | null;
|
|
5494
5560
|
dataSize: bigint | null;
|
|
5495
|
-
|
|
5496
|
-
totalStorageSize: bigint | null;
|
|
5561
|
+
totalCount: bigint | null;
|
|
5497
5562
|
};
|
|
5498
5563
|
};
|
|
5499
5564
|
};
|
|
@@ -5503,9 +5568,14 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
5503
5568
|
input: {
|
|
5504
5569
|
orgId: string;
|
|
5505
5570
|
paidByApp?: boolean | undefined;
|
|
5571
|
+
userIds?: string[] | undefined;
|
|
5506
5572
|
};
|
|
5507
|
-
output: {
|
|
5573
|
+
output: ({
|
|
5574
|
+
lastReset: Date;
|
|
5508
5575
|
membersCount: bigint;
|
|
5576
|
+
} & {
|
|
5577
|
+
totalDataCount: bigint;
|
|
5578
|
+
totalDataSize: bigint;
|
|
5509
5579
|
downloadBandwidth: bigint;
|
|
5510
5580
|
downloadCount: bigint;
|
|
5511
5581
|
uploadBandwidth: bigint;
|
|
@@ -5513,8 +5583,19 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
5513
5583
|
sentMailCount: bigint;
|
|
5514
5584
|
sentMailDataCount: bigint;
|
|
5515
5585
|
sentMailDataSize: bigint;
|
|
5516
|
-
|
|
5517
|
-
|
|
5586
|
+
}) | {
|
|
5587
|
+
lastReset: Date;
|
|
5588
|
+
details: {
|
|
5589
|
+
totalDataCount: bigint;
|
|
5590
|
+
totalDataSize: bigint;
|
|
5591
|
+
downloadBandwidth: bigint;
|
|
5592
|
+
downloadCount: bigint;
|
|
5593
|
+
uploadBandwidth: bigint;
|
|
5594
|
+
uploadCount: bigint;
|
|
5595
|
+
sentMailCount: bigint;
|
|
5596
|
+
sentMailDataCount: bigint;
|
|
5597
|
+
sentMailDataSize: bigint;
|
|
5598
|
+
}[];
|
|
5518
5599
|
};
|
|
5519
5600
|
meta: any;
|
|
5520
5601
|
}>;
|
|
@@ -5527,21 +5608,21 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
5527
5608
|
quotasId: string;
|
|
5528
5609
|
stripePricesId: string | null;
|
|
5529
5610
|
quotas: {
|
|
5530
|
-
downloadBandwidth: bigint | null;
|
|
5531
|
-
uploadBandwidth: bigint | null;
|
|
5532
|
-
downloadCount: bigint | null;
|
|
5533
|
-
uploadCount: bigint | null;
|
|
5534
5611
|
perDataSize: bigint | null;
|
|
5535
5612
|
totalStorageSize: bigint | null;
|
|
5536
5613
|
totalDataCount: bigint | null;
|
|
5614
|
+
downloadBandwidth: bigint | null;
|
|
5615
|
+
downloadCount: bigint | null;
|
|
5616
|
+
uploadBandwidth: bigint | null;
|
|
5617
|
+
uploadCount: bigint | null;
|
|
5537
5618
|
sentMails: {
|
|
5538
5619
|
count: bigint | null;
|
|
5539
5620
|
perDataSize: bigint | null;
|
|
5540
5621
|
totalStorageSize: bigint | null;
|
|
5541
5622
|
totalDataCount: bigint | null;
|
|
5542
|
-
totalCount: bigint | null;
|
|
5543
5623
|
dataCount: bigint | null;
|
|
5544
5624
|
dataSize: bigint | null;
|
|
5625
|
+
totalCount: bigint | null;
|
|
5545
5626
|
};
|
|
5546
5627
|
};
|
|
5547
5628
|
price: number;
|
|
@@ -6146,8 +6227,6 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
6146
6227
|
} & {
|
|
6147
6228
|
quotas: {
|
|
6148
6229
|
users: bigint | null;
|
|
6149
|
-
bandwidth: bigint | null;
|
|
6150
|
-
perDataSize: bigint | null;
|
|
6151
6230
|
devs: bigint | null;
|
|
6152
6231
|
devsBase: bigint | null;
|
|
6153
6232
|
devsUnit: bigint | null;
|
|
@@ -6155,9 +6234,11 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
6155
6234
|
usersBase: bigint | null;
|
|
6156
6235
|
usersUnit: bigint | null;
|
|
6157
6236
|
usersPrice: number | null;
|
|
6237
|
+
perDataSize: bigint | null;
|
|
6158
6238
|
perDataSizeBase: bigint | null;
|
|
6159
6239
|
perDataSizeUnit: bigint | null;
|
|
6160
6240
|
perDataSizePrice: number | null;
|
|
6241
|
+
bandwidth: bigint | null;
|
|
6161
6242
|
bandwidthBase: bigint | null;
|
|
6162
6243
|
bandwidthUnit: bigint | null;
|
|
6163
6244
|
bandwidthPrice: number | null;
|
|
@@ -6168,13 +6249,13 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
6168
6249
|
baseQuotasId: string;
|
|
6169
6250
|
} & {
|
|
6170
6251
|
baseQuotas: {
|
|
6171
|
-
downloadBandwidth: bigint | null;
|
|
6172
|
-
uploadBandwidth: bigint | null;
|
|
6173
|
-
downloadCount: bigint | null;
|
|
6174
|
-
uploadCount: bigint | null;
|
|
6175
6252
|
perDataSize: bigint | null;
|
|
6176
6253
|
totalStorageSize: bigint | null;
|
|
6177
6254
|
totalDataCount: bigint | null;
|
|
6255
|
+
downloadBandwidth: bigint | null;
|
|
6256
|
+
downloadCount: bigint | null;
|
|
6257
|
+
uploadBandwidth: bigint | null;
|
|
6258
|
+
uploadCount: bigint | null;
|
|
6178
6259
|
sentMailsId: string;
|
|
6179
6260
|
};
|
|
6180
6261
|
};
|
|
@@ -6224,8 +6305,6 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
6224
6305
|
} & {
|
|
6225
6306
|
quotas: {
|
|
6226
6307
|
users: bigint | null;
|
|
6227
|
-
bandwidth: bigint | null;
|
|
6228
|
-
perDataSize: bigint | null;
|
|
6229
6308
|
devs: bigint | null;
|
|
6230
6309
|
devsBase: bigint | null;
|
|
6231
6310
|
devsUnit: bigint | null;
|
|
@@ -6233,9 +6312,11 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
6233
6312
|
usersBase: bigint | null;
|
|
6234
6313
|
usersUnit: bigint | null;
|
|
6235
6314
|
usersPrice: number | null;
|
|
6315
|
+
perDataSize: bigint | null;
|
|
6236
6316
|
perDataSizeBase: bigint | null;
|
|
6237
6317
|
perDataSizeUnit: bigint | null;
|
|
6238
6318
|
perDataSizePrice: number | null;
|
|
6319
|
+
bandwidth: bigint | null;
|
|
6239
6320
|
bandwidthBase: bigint | null;
|
|
6240
6321
|
bandwidthUnit: bigint | null;
|
|
6241
6322
|
bandwidthPrice: number | null;
|
|
@@ -6246,13 +6327,13 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
6246
6327
|
baseQuotasId: string;
|
|
6247
6328
|
} & {
|
|
6248
6329
|
baseQuotas: {
|
|
6249
|
-
downloadBandwidth: bigint | null;
|
|
6250
|
-
uploadBandwidth: bigint | null;
|
|
6251
|
-
downloadCount: bigint | null;
|
|
6252
|
-
uploadCount: bigint | null;
|
|
6253
6330
|
perDataSize: bigint | null;
|
|
6254
6331
|
totalStorageSize: bigint | null;
|
|
6255
6332
|
totalDataCount: bigint | null;
|
|
6333
|
+
downloadBandwidth: bigint | null;
|
|
6334
|
+
downloadCount: bigint | null;
|
|
6335
|
+
uploadBandwidth: bigint | null;
|
|
6336
|
+
uploadCount: bigint | null;
|
|
6256
6337
|
sentMailsId: string;
|
|
6257
6338
|
};
|
|
6258
6339
|
};
|
|
@@ -6648,20 +6729,25 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
6648
6729
|
perDataSizeLimit: bigint | null;
|
|
6649
6730
|
totalStorageSizeLimit: bigint | null;
|
|
6650
6731
|
};
|
|
6651
|
-
quotas:
|
|
6652
|
-
bandwith: bigint | null;
|
|
6653
|
-
uploadCount: bigint | null;
|
|
6654
|
-
downloadCount: bigint | null;
|
|
6655
|
-
totalDataCount: bigint | null;
|
|
6656
|
-
perDataSize: bigint | null;
|
|
6657
|
-
totalStorageSize: bigint | null;
|
|
6658
|
-
};
|
|
6732
|
+
quotas: null;
|
|
6659
6733
|
metrics: {
|
|
6660
6734
|
uploadCount: bigint;
|
|
6661
6735
|
uploadBandwidth: bigint;
|
|
6662
6736
|
downloadBandwidth: bigint;
|
|
6663
6737
|
downloadCount: bigint;
|
|
6738
|
+
sentMailCount: bigint;
|
|
6739
|
+
sentMailDataCount: bigint;
|
|
6740
|
+
sentMailDataSize: bigint;
|
|
6664
6741
|
};
|
|
6742
|
+
userLimitedQuotas: {
|
|
6743
|
+
uploadBandwidth: bigint | null;
|
|
6744
|
+
uploadCount: bigint | null;
|
|
6745
|
+
perDataSize: bigint | null;
|
|
6746
|
+
totalStorageSize: bigint | null;
|
|
6747
|
+
totalDataCount: bigint | null;
|
|
6748
|
+
downloadBandwidth: bigint | null;
|
|
6749
|
+
downloadCount: bigint | null;
|
|
6750
|
+
} | null;
|
|
6665
6751
|
} | {
|
|
6666
6752
|
type: "org";
|
|
6667
6753
|
appId: string;
|
|
@@ -6681,20 +6767,14 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
6681
6767
|
downloadBandwidth: bigint | null;
|
|
6682
6768
|
downloadCount: bigint | null;
|
|
6683
6769
|
};
|
|
6684
|
-
userLimitedQuotas: {
|
|
6685
|
-
uploadBandwidth: bigint | null;
|
|
6686
|
-
uploadCount: bigint | null;
|
|
6687
|
-
perDataSize: bigint | null;
|
|
6688
|
-
totalStorageSize: bigint | null;
|
|
6689
|
-
totalDataCount: bigint | null;
|
|
6690
|
-
downloadBandwidth: bigint | null;
|
|
6691
|
-
downloadCount: bigint | null;
|
|
6692
|
-
} | null;
|
|
6693
6770
|
metrics: {
|
|
6694
6771
|
uploadCount: bigint;
|
|
6695
6772
|
uploadBandwidth: bigint;
|
|
6696
6773
|
downloadBandwidth: bigint;
|
|
6697
6774
|
downloadCount: bigint;
|
|
6775
|
+
sentMailCount: bigint;
|
|
6776
|
+
sentMailDataCount: bigint;
|
|
6777
|
+
sentMailDataSize: bigint;
|
|
6698
6778
|
};
|
|
6699
6779
|
};
|
|
6700
6780
|
meta: any;
|