@secrecy/trpc-api-types 1.40.1 → 1.41.0-fix-reset-billing.9

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 (2) hide show
  1. package/dist/index.d.ts +88 -63
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -105,29 +105,29 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
105
105
  limits: _trpc_server.TRPCQueryProcedure<{
106
106
  input: Record<string, never> | undefined;
107
107
  output: {
108
- cloud: {
109
- count: bigint;
110
- maxCount: bigint | null;
111
- size: bigint;
112
- maxSize: bigint | null;
108
+ metrics: {
109
+ devsCount: bigint;
110
+ usersCount: bigint;
111
+ storageCount: bigint;
112
+ storageSize: bigint;
113
113
  downloadBandwidth: bigint;
114
- maxDownloadBandwidth: bigint | null;
115
114
  uploadBandwidth: bigint;
116
- maxUploadBandwidth: bigint | null;
117
115
  downloadCount: bigint;
118
- maxDownloadCount: bigint | null;
119
116
  uploadCount: bigint;
120
- maxUploadCount: bigint | null;
121
- };
122
- mail: {
123
- sent: {
124
- count: bigint;
125
- maxCount: bigint | null;
126
- dataCount: bigint;
127
- maxDataCount: bigint | null;
128
- dataSize: bigint;
129
- maxDataSize: bigint | null;
130
- };
117
+ sentMailCount: bigint;
118
+ sentMailDataCount: bigint;
119
+ sentMailDataSize: bigint;
120
+ };
121
+ quotas: {
122
+ bandwidth: bigint | null;
123
+ devsCount: bigint | null;
124
+ usersCount: bigint | null;
125
+ perDataSize: bigint | null;
126
+ totalStorageSize: bigint | null;
127
+ totalDataCount: bigint | null;
128
+ sentMailsCount: bigint | null;
129
+ sentMailsDataSize: bigint | null;
130
+ sentMailsDataCount: bigint | null;
131
131
  };
132
132
  };
133
133
  meta: any;
@@ -138,11 +138,11 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
138
138
  };
139
139
  output: {
140
140
  hasDatabase: boolean;
141
- developers: number;
142
- users: number;
143
- storageUsage: number;
144
- downloadBandwidthUsage: number;
145
- uploadBandwidthUsage: number;
141
+ developers: bigint;
142
+ users: bigint;
143
+ storageUsage: bigint;
144
+ downloadBandwidthUsage: bigint;
145
+ uploadBandwidthUsage: bigint;
146
146
  };
147
147
  meta: any;
148
148
  }>;
@@ -211,8 +211,9 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
211
211
  } & {
212
212
  quotas: {
213
213
  users: bigint | null;
214
- totalStorageSize: bigint | null;
214
+ bandwidth: bigint | null;
215
215
  perDataSize: bigint | null;
216
+ totalStorageSize: bigint | null;
216
217
  devs: bigint | null;
217
218
  devsBase: bigint | null;
218
219
  devsUnit: bigint | null;
@@ -223,7 +224,6 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
223
224
  perDataSizeBase: bigint | null;
224
225
  perDataSizeUnit: bigint | null;
225
226
  perDataSizePrice: number | null;
226
- bandwidth: bigint | null;
227
227
  bandwidthBase: bigint | null;
228
228
  bandwidthUnit: bigint | null;
229
229
  bandwidthPrice: number | null;
@@ -237,9 +237,9 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
237
237
  uploadBandwidth: bigint | null;
238
238
  downloadCount: bigint | null;
239
239
  uploadCount: bigint | null;
240
- totalDataCount: bigint | null;
241
- totalStorageSize: bigint | null;
242
240
  perDataSize: bigint | null;
241
+ totalStorageSize: bigint | null;
242
+ totalDataCount: bigint | null;
243
243
  sentMailsId: string;
244
244
  };
245
245
  };
@@ -263,8 +263,8 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
263
263
  updateNotification: _trpc_server.TRPCMutationProcedure<{
264
264
  input: {
265
265
  mail?: boolean | undefined;
266
- cloud?: boolean | undefined;
267
266
  enableAll?: boolean | undefined;
267
+ cloud?: boolean | undefined;
268
268
  disableAllUntil?: Date | null | undefined;
269
269
  };
270
270
  output: {
@@ -565,14 +565,17 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
565
565
  id: string;
566
566
  name: string;
567
567
  createdAt: Date;
568
+ deletedAt: Date | null;
568
569
  ownerId: string;
569
570
  planId: string;
570
571
  quotasId: string;
571
572
  stripeSubId: string | null;
572
573
  stripeSubPaidUntil: Date | null;
574
+ stripeLastMetricReport: Date;
573
575
  billingProfileStripeCustomerId: string | null;
574
- status: "active" | "inactive" | "pending_for_payment";
576
+ status: "active" | "inactive" | "deleted" | "pending_for_payment";
575
577
  minMembersToReport: number;
578
+ lastMetricsReset: Date;
576
579
  };
577
580
  meta: any;
578
581
  }>;
@@ -1233,8 +1236,8 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
1233
1236
  };
1234
1237
  output: {
1235
1238
  id: string;
1236
- size: bigint;
1237
1239
  md5: string;
1240
+ size: bigint;
1238
1241
  sizeEncrypted: bigint | null;
1239
1242
  md5Encrypted: string | null;
1240
1243
  mime: string | null;
@@ -1252,8 +1255,8 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
1252
1255
  maybeContent: Uint8Array<ArrayBufferLike> | null;
1253
1256
  } | {
1254
1257
  id: string;
1255
- size: bigint;
1256
1258
  md5: string;
1259
+ size: bigint;
1257
1260
  sizeEncrypted: bigint | null;
1258
1261
  md5Encrypted: string | null;
1259
1262
  mime: string | null;
@@ -1270,8 +1273,8 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
1270
1273
  maybeContent: Uint8Array<ArrayBufferLike> | null;
1271
1274
  } | {
1272
1275
  id: string;
1273
- size: bigint;
1274
1276
  md5: string;
1277
+ size: bigint;
1275
1278
  sizeEncrypted: bigint | null;
1276
1279
  md5Encrypted: string | null;
1277
1280
  mime: string | null;
@@ -1288,8 +1291,8 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
1288
1291
  }[];
1289
1292
  } | {
1290
1293
  id: string;
1291
- size: bigint;
1292
1294
  md5: string;
1295
+ size: bigint;
1293
1296
  sizeEncrypted: bigint | null;
1294
1297
  md5Encrypted: string | null;
1295
1298
  mime: string | null;
@@ -1311,8 +1314,8 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
1311
1314
  };
1312
1315
  output: ({
1313
1316
  id: string;
1314
- size: bigint;
1315
1317
  md5: string;
1318
+ size: bigint;
1316
1319
  sizeEncrypted: bigint | null;
1317
1320
  md5Encrypted: string | null;
1318
1321
  mime: string | null;
@@ -1330,8 +1333,8 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
1330
1333
  maybeContent: Uint8Array<ArrayBufferLike> | null;
1331
1334
  } | {
1332
1335
  id: string;
1333
- size: bigint;
1334
1336
  md5: string;
1337
+ size: bigint;
1335
1338
  sizeEncrypted: bigint | null;
1336
1339
  md5Encrypted: string | null;
1337
1340
  mime: string | null;
@@ -1348,8 +1351,8 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
1348
1351
  maybeContent: Uint8Array<ArrayBufferLike> | null;
1349
1352
  } | {
1350
1353
  id: string;
1351
- size: bigint;
1352
1354
  md5: string;
1355
+ size: bigint;
1353
1356
  sizeEncrypted: bigint | null;
1354
1357
  md5Encrypted: string | null;
1355
1358
  mime: string | null;
@@ -1366,8 +1369,8 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
1366
1369
  }[];
1367
1370
  } | {
1368
1371
  id: string;
1369
- size: bigint;
1370
1372
  md5: string;
1373
+ size: bigint;
1371
1374
  sizeEncrypted: bigint | null;
1372
1375
  md5Encrypted: string | null;
1373
1376
  mime: string | null;
@@ -1809,7 +1812,7 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
1809
1812
  sizeEncrypted: bigint;
1810
1813
  md5Encrypted: string;
1811
1814
  type: "encrypted";
1812
- content: Uint8Array<ArrayBuffer>;
1815
+ content: Buffer<ArrayBufferLike>;
1813
1816
  mime?: string | undefined;
1814
1817
  ext?: string | undefined;
1815
1818
  fromIdentityPubKey?: string | null | undefined;
@@ -1818,7 +1821,7 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
1818
1821
  size: bigint;
1819
1822
  md5: string;
1820
1823
  type: "unencrypted";
1821
- content: Uint8Array<ArrayBuffer>;
1824
+ content: Buffer<ArrayBufferLike>;
1822
1825
  mime?: string | undefined;
1823
1826
  ext?: string | undefined;
1824
1827
  fromIdentityPubKey?: string | null | undefined;
@@ -5268,14 +5271,17 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
5268
5271
  id: string;
5269
5272
  name: string;
5270
5273
  createdAt: Date;
5274
+ deletedAt: Date | null;
5271
5275
  ownerId: string;
5272
5276
  planId: string;
5273
5277
  quotasId: string;
5274
5278
  stripeSubId: string | null;
5275
5279
  stripeSubPaidUntil: Date | null;
5280
+ stripeLastMetricReport: Date;
5276
5281
  billingProfileStripeCustomerId: string | null;
5277
- status: "active" | "inactive" | "pending_for_payment";
5282
+ status: "active" | "inactive" | "deleted" | "pending_for_payment";
5278
5283
  minMembersToReport: number;
5284
+ lastMetricsReset: Date;
5279
5285
  } & {
5280
5286
  plan: {
5281
5287
  id: string;
@@ -5338,14 +5344,17 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
5338
5344
  id: string;
5339
5345
  name: string;
5340
5346
  createdAt: Date;
5347
+ deletedAt: Date | null;
5341
5348
  ownerId: string;
5342
5349
  planId: string;
5343
5350
  quotasId: string;
5344
5351
  stripeSubId: string | null;
5345
5352
  stripeSubPaidUntil: Date | null;
5353
+ stripeLastMetricReport: Date;
5346
5354
  billingProfileStripeCustomerId: string | null;
5347
- status: "active" | "inactive" | "pending_for_payment";
5355
+ status: "active" | "inactive" | "deleted" | "pending_for_payment";
5348
5356
  minMembersToReport: number;
5357
+ lastMetricsReset: Date;
5349
5358
  };
5350
5359
  } | {
5351
5360
  type: "checkout";
@@ -5354,14 +5363,17 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
5354
5363
  id: string;
5355
5364
  name: string;
5356
5365
  createdAt: Date;
5366
+ deletedAt: Date | null;
5357
5367
  ownerId: string;
5358
5368
  planId: string;
5359
5369
  quotasId: string;
5360
5370
  stripeSubId: string | null;
5361
5371
  stripeSubPaidUntil: Date | null;
5372
+ stripeLastMetricReport: Date;
5362
5373
  billingProfileStripeCustomerId: string | null;
5363
- status: "active" | "inactive" | "pending_for_payment";
5374
+ status: "active" | "inactive" | "deleted" | "pending_for_payment";
5364
5375
  minMembersToReport: number;
5376
+ lastMetricsReset: Date;
5365
5377
  };
5366
5378
  };
5367
5379
  meta: any;
@@ -5374,14 +5386,17 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
5374
5386
  id: string;
5375
5387
  name: string;
5376
5388
  createdAt: Date;
5389
+ deletedAt: Date | null;
5377
5390
  ownerId: string;
5378
5391
  planId: string;
5379
5392
  quotasId: string;
5380
5393
  stripeSubId: string | null;
5381
5394
  stripeSubPaidUntil: Date | null;
5395
+ stripeLastMetricReport: Date;
5382
5396
  billingProfileStripeCustomerId: string | null;
5383
- status: "active" | "inactive" | "pending_for_payment";
5397
+ status: "active" | "inactive" | "deleted" | "pending_for_payment";
5384
5398
  minMembersToReport: number;
5399
+ lastMetricsReset: Date;
5385
5400
  };
5386
5401
  meta: any;
5387
5402
  }>;
@@ -5419,14 +5434,17 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
5419
5434
  id: string;
5420
5435
  name: string;
5421
5436
  createdAt: Date;
5437
+ deletedAt: Date | null;
5422
5438
  ownerId: string;
5423
5439
  planId: string;
5424
5440
  quotasId: string;
5425
5441
  stripeSubId: string | null;
5426
5442
  stripeSubPaidUntil: Date | null;
5443
+ stripeLastMetricReport: Date;
5427
5444
  billingProfileStripeCustomerId: string | null;
5428
- status: "active" | "inactive" | "pending_for_payment";
5445
+ status: "active" | "inactive" | "deleted" | "pending_for_payment";
5429
5446
  minMembersToReport: number;
5447
+ lastMetricsReset: Date;
5430
5448
  }[];
5431
5449
  meta: any;
5432
5450
  }>;
@@ -5480,17 +5498,17 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
5480
5498
  uploadBandwidth: bigint | null;
5481
5499
  downloadCount: bigint | null;
5482
5500
  uploadCount: bigint | null;
5483
- totalDataCount: bigint | null;
5484
- totalStorageSize: bigint | null;
5485
5501
  perDataSize: bigint | null;
5502
+ totalStorageSize: bigint | null;
5503
+ totalDataCount: bigint | null;
5486
5504
  sentMails: {
5487
5505
  count: bigint | null;
5488
- dataCount: bigint | null;
5489
- dataSize: bigint | null;
5490
- totalDataCount: bigint | null;
5491
- totalStorageSize: bigint | null;
5492
5506
  perDataSize: bigint | null;
5507
+ totalStorageSize: bigint | null;
5508
+ totalDataCount: bigint | null;
5493
5509
  totalCount: bigint | null;
5510
+ dataCount: bigint | null;
5511
+ dataSize: bigint | null;
5494
5512
  };
5495
5513
  };
5496
5514
  price: number;
@@ -5521,14 +5539,17 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
5521
5539
  id: string;
5522
5540
  name: string;
5523
5541
  createdAt: Date;
5542
+ deletedAt: Date | null;
5524
5543
  ownerId: string;
5525
5544
  planId: string;
5526
5545
  quotasId: string;
5527
5546
  stripeSubId: string | null;
5528
5547
  stripeSubPaidUntil: Date | null;
5548
+ stripeLastMetricReport: Date;
5529
5549
  billingProfileStripeCustomerId: string | null;
5530
- status: "active" | "inactive" | "pending_for_payment";
5550
+ status: "active" | "inactive" | "deleted" | "pending_for_payment";
5531
5551
  minMembersToReport: number;
5552
+ lastMetricsReset: Date;
5532
5553
  };
5533
5554
  meta: any;
5534
5555
  }>;
@@ -5556,14 +5577,17 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
5556
5577
  id: string;
5557
5578
  name: string;
5558
5579
  createdAt: Date;
5580
+ deletedAt: Date | null;
5559
5581
  ownerId: string;
5560
5582
  planId: string;
5561
5583
  quotasId: string;
5562
5584
  stripeSubId: string | null;
5563
5585
  stripeSubPaidUntil: Date | null;
5586
+ stripeLastMetricReport: Date;
5564
5587
  billingProfileStripeCustomerId: string | null;
5565
- status: "active" | "inactive" | "pending_for_payment";
5588
+ status: "active" | "inactive" | "deleted" | "pending_for_payment";
5566
5589
  minMembersToReport: number;
5590
+ lastMetricsReset: Date;
5567
5591
  };
5568
5592
  meta: any;
5569
5593
  }>;
@@ -5577,7 +5601,7 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
5577
5601
  appId: string;
5578
5602
  orgId: string;
5579
5603
  settings: {
5580
- payForUsers: boolean;
5604
+ paidByApp: boolean;
5581
5605
  bandwidthLimit: bigint | null;
5582
5606
  perDataSizeLimit: bigint | null;
5583
5607
  totalStorageSizeLimit: bigint | null;
@@ -5601,7 +5625,7 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
5601
5625
  appId: string;
5602
5626
  orgId: string;
5603
5627
  settings: {
5604
- payForUsers: boolean;
5628
+ paidByApp: boolean;
5605
5629
  bandwidthLimit: bigint | null;
5606
5630
  perDataSizeLimit: bigint | null;
5607
5631
  totalStorageSizeLimit: bigint | null;
@@ -6155,8 +6179,9 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
6155
6179
  } & {
6156
6180
  quotas: {
6157
6181
  users: bigint | null;
6158
- totalStorageSize: bigint | null;
6182
+ bandwidth: bigint | null;
6159
6183
  perDataSize: bigint | null;
6184
+ totalStorageSize: bigint | null;
6160
6185
  devs: bigint | null;
6161
6186
  devsBase: bigint | null;
6162
6187
  devsUnit: bigint | null;
@@ -6167,7 +6192,6 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
6167
6192
  perDataSizeBase: bigint | null;
6168
6193
  perDataSizeUnit: bigint | null;
6169
6194
  perDataSizePrice: number | null;
6170
- bandwidth: bigint | null;
6171
6195
  bandwidthBase: bigint | null;
6172
6196
  bandwidthUnit: bigint | null;
6173
6197
  bandwidthPrice: number | null;
@@ -6181,9 +6205,9 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
6181
6205
  uploadBandwidth: bigint | null;
6182
6206
  downloadCount: bigint | null;
6183
6207
  uploadCount: bigint | null;
6184
- totalDataCount: bigint | null;
6185
- totalStorageSize: bigint | null;
6186
6208
  perDataSize: bigint | null;
6209
+ totalStorageSize: bigint | null;
6210
+ totalDataCount: bigint | null;
6187
6211
  sentMailsId: string;
6188
6212
  };
6189
6213
  };
@@ -6233,8 +6257,9 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
6233
6257
  } & {
6234
6258
  quotas: {
6235
6259
  users: bigint | null;
6236
- totalStorageSize: bigint | null;
6260
+ bandwidth: bigint | null;
6237
6261
  perDataSize: bigint | null;
6262
+ totalStorageSize: bigint | null;
6238
6263
  devs: bigint | null;
6239
6264
  devsBase: bigint | null;
6240
6265
  devsUnit: bigint | null;
@@ -6245,7 +6270,6 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
6245
6270
  perDataSizeBase: bigint | null;
6246
6271
  perDataSizeUnit: bigint | null;
6247
6272
  perDataSizePrice: number | null;
6248
- bandwidth: bigint | null;
6249
6273
  bandwidthBase: bigint | null;
6250
6274
  bandwidthUnit: bigint | null;
6251
6275
  bandwidthPrice: number | null;
@@ -6259,9 +6283,9 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
6259
6283
  uploadBandwidth: bigint | null;
6260
6284
  downloadCount: bigint | null;
6261
6285
  uploadCount: bigint | null;
6262
- totalDataCount: bigint | null;
6263
- totalStorageSize: bigint | null;
6264
6286
  perDataSize: bigint | null;
6287
+ totalStorageSize: bigint | null;
6288
+ totalDataCount: bigint | null;
6265
6289
  sentMailsId: string;
6266
6290
  };
6267
6291
  };
@@ -6290,6 +6314,7 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
6290
6314
  updatedAt: Date;
6291
6315
  deletedAt: Date | null;
6292
6316
  lastMetricsReset: Date;
6317
+ status: "active" | "inactive" | "deleted" | "pending_for_payment";
6293
6318
  origin: string[];
6294
6319
  isCare: boolean;
6295
6320
  stripeInvoices: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@secrecy/trpc-api-types",
3
- "version": "1.40.1",
3
+ "version": "1.41.0-fix-reset-billing.9",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public"