@secrecy/lib 1.47.2 → 1.47.3-feat-pay-for-user-billing.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/README.md CHANGED
@@ -1,3 +1,3 @@
1
- # Anonymize Secrecy Library 📚🔐
1
+ # Anonymize Secrecy Library 📚🔐🔐
2
2
 
3
3
  - [Docs](https://docs.secrecy.tech)
@@ -332,6 +332,7 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
332
332
  totalStorageSizeBase: bigint | null;
333
333
  totalStorageSizeUnit: bigint | null;
334
334
  totalStorageSizePrice: number | null;
335
+ baseQuotasId: string;
335
336
  };
336
337
  _output_out: {
337
338
  id: string;
@@ -355,6 +356,7 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
355
356
  totalStorageSizeBase: bigint | null;
356
357
  totalStorageSizeUnit: bigint | null;
357
358
  totalStorageSizePrice: number | null;
359
+ baseQuotasId: string;
358
360
  };
359
361
  }, unknown>>;
360
362
  };
@@ -428,16 +430,16 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
428
430
  _input_out: {} | undefined;
429
431
  _output_in: {
430
432
  id: string;
433
+ quotasId: string;
431
434
  name: string;
432
- descriptorId: string;
433
435
  stripePricesId: string | null;
434
436
  isCustomPlan?: boolean | undefined;
435
437
  canHaveDatabase?: boolean | undefined;
436
438
  };
437
439
  _output_out: {
438
440
  id: string;
441
+ quotasId: string;
439
442
  name: string;
440
- descriptorId: string;
441
443
  isCustomPlan: boolean;
442
444
  canHaveDatabase: boolean;
443
445
  stripePricesId: string | null;
@@ -480,27 +482,40 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
480
482
  isCustomPlan?: boolean | undefined;
481
483
  canHaveDatabase?: boolean | undefined;
482
484
  } & {
483
- descriptor: {
485
+ quotas: {
486
+ users: bigint | null;
487
+ totalStorageSize: bigint | null;
488
+ devs: bigint | null;
484
489
  devsBase: bigint | null;
485
490
  devsUnit: bigint | null;
486
491
  devsPrice: number | null;
487
492
  usersBase: bigint | null;
488
493
  usersUnit: bigint | null;
489
494
  usersPrice: number | null;
495
+ perDataSize: bigint | null;
490
496
  perDataSizeBase: bigint | null;
491
497
  perDataSizeUnit: bigint | null;
492
498
  perDataSizePrice: number | null;
499
+ bandwidth: bigint | null;
493
500
  bandwidthBase: bigint | null;
494
501
  bandwidthUnit: bigint | null;
495
502
  bandwidthPrice: number | null;
496
503
  totalStorageSizeBase: bigint | null;
497
504
  totalStorageSizeUnit: bigint | null;
498
505
  totalStorageSizePrice: number | null;
499
- devsMax: bigint | null;
500
- usersMax: bigint | null;
501
- perDataSizeMax: bigint | null;
502
- bandwidthMax: bigint | null;
503
- totalStorageSizeMax: bigint | null;
506
+ baseQuotasId: string;
507
+ } & {
508
+ baseQuotas: {
509
+ uploadCount: bigint | null;
510
+ downloadCount: bigint | null;
511
+ totalDataCount: bigint | null;
512
+ totalStorageSize: bigint | null;
513
+ perDataSize: bigint | null;
514
+ downloadBandwidth: bigint | null;
515
+ uploadBandwidth: bigint | null;
516
+ receivedMailsId: string;
517
+ sentMailsId: string;
518
+ };
504
519
  };
505
520
  } & {
506
521
  price: number;
@@ -513,27 +528,40 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
513
528
  isCustomPlan: boolean;
514
529
  canHaveDatabase: boolean;
515
530
  } & {
516
- descriptor: {
531
+ quotas: {
532
+ users: bigint | null;
533
+ totalStorageSize: bigint | null;
534
+ devs: bigint | null;
517
535
  devsBase: bigint | null;
518
536
  devsUnit: bigint | null;
519
537
  devsPrice: number | null;
520
538
  usersBase: bigint | null;
521
539
  usersUnit: bigint | null;
522
540
  usersPrice: number | null;
541
+ perDataSize: bigint | null;
523
542
  perDataSizeBase: bigint | null;
524
543
  perDataSizeUnit: bigint | null;
525
544
  perDataSizePrice: number | null;
545
+ bandwidth: bigint | null;
526
546
  bandwidthBase: bigint | null;
527
547
  bandwidthUnit: bigint | null;
528
548
  bandwidthPrice: number | null;
529
549
  totalStorageSizeBase: bigint | null;
530
550
  totalStorageSizeUnit: bigint | null;
531
551
  totalStorageSizePrice: number | null;
532
- devsMax: bigint | null;
533
- usersMax: bigint | null;
534
- perDataSizeMax: bigint | null;
535
- bandwidthMax: bigint | null;
536
- totalStorageSizeMax: bigint | null;
552
+ baseQuotasId: string;
553
+ } & {
554
+ baseQuotas: {
555
+ uploadCount: bigint | null;
556
+ downloadCount: bigint | null;
557
+ totalDataCount: bigint | null;
558
+ totalStorageSize: bigint | null;
559
+ perDataSize: bigint | null;
560
+ downloadBandwidth: bigint | null;
561
+ uploadBandwidth: bigint | null;
562
+ receivedMailsId: string;
563
+ sentMailsId: string;
564
+ };
537
565
  };
538
566
  } & {
539
567
  price: number;
@@ -11229,31 +11257,45 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
11229
11257
  isCustomPlan?: boolean | undefined;
11230
11258
  canHaveDatabase?: boolean | undefined;
11231
11259
  } & {
11232
- descriptor: {
11260
+ quotas: {
11261
+ users: bigint | null;
11262
+ totalStorageSize: bigint | null;
11263
+ devs: bigint | null;
11233
11264
  devsBase: bigint | null;
11234
11265
  devsUnit: bigint | null;
11235
11266
  devsPrice: number | null;
11236
11267
  usersBase: bigint | null;
11237
11268
  usersUnit: bigint | null;
11238
11269
  usersPrice: number | null;
11270
+ perDataSize: bigint | null;
11239
11271
  perDataSizeBase: bigint | null;
11240
11272
  perDataSizeUnit: bigint | null;
11241
11273
  perDataSizePrice: number | null;
11274
+ bandwidth: bigint | null;
11242
11275
  bandwidthBase: bigint | null;
11243
11276
  bandwidthUnit: bigint | null;
11244
11277
  bandwidthPrice: number | null;
11245
11278
  totalStorageSizeBase: bigint | null;
11246
11279
  totalStorageSizeUnit: bigint | null;
11247
11280
  totalStorageSizePrice: number | null;
11248
- devsMax: bigint | null;
11249
- usersMax: bigint | null;
11250
- perDataSizeMax: bigint | null;
11251
- bandwidthMax: bigint | null;
11252
- totalStorageSizeMax: bigint | null;
11281
+ baseQuotasId: string;
11282
+ } & {
11283
+ baseQuotas: {
11284
+ uploadCount: bigint | null;
11285
+ downloadCount: bigint | null;
11286
+ totalDataCount: bigint | null;
11287
+ totalStorageSize: bigint | null;
11288
+ perDataSize: bigint | null;
11289
+ downloadBandwidth: bigint | null;
11290
+ uploadBandwidth: bigint | null;
11291
+ receivedMailsId: string;
11292
+ sentMailsId: string;
11293
+ };
11253
11294
  };
11254
11295
  };
11255
11296
  id: string;
11256
11297
  createdAt: Date;
11298
+ quotasId: string;
11257
11299
  ownerId: string;
11258
11300
  blocked: boolean;
11259
11301
  name: string;
@@ -11263,7 +11305,6 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
11263
11305
  origin: string[];
11264
11306
  planId: string | null;
11265
11307
  lastMetricsReset: Date;
11266
- quotasId: string;
11267
11308
  owner: {
11268
11309
  user: {
11269
11310
  id: string;
@@ -11287,31 +11328,45 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
11287
11328
  isCustomPlan: boolean;
11288
11329
  canHaveDatabase: boolean;
11289
11330
  } & {
11290
- descriptor: {
11331
+ quotas: {
11332
+ users: bigint | null;
11333
+ totalStorageSize: bigint | null;
11334
+ devs: bigint | null;
11291
11335
  devsBase: bigint | null;
11292
11336
  devsUnit: bigint | null;
11293
11337
  devsPrice: number | null;
11294
11338
  usersBase: bigint | null;
11295
11339
  usersUnit: bigint | null;
11296
11340
  usersPrice: number | null;
11341
+ perDataSize: bigint | null;
11297
11342
  perDataSizeBase: bigint | null;
11298
11343
  perDataSizeUnit: bigint | null;
11299
11344
  perDataSizePrice: number | null;
11345
+ bandwidth: bigint | null;
11300
11346
  bandwidthBase: bigint | null;
11301
11347
  bandwidthUnit: bigint | null;
11302
11348
  bandwidthPrice: number | null;
11303
11349
  totalStorageSizeBase: bigint | null;
11304
11350
  totalStorageSizeUnit: bigint | null;
11305
11351
  totalStorageSizePrice: number | null;
11306
- devsMax: bigint | null;
11307
- usersMax: bigint | null;
11308
- perDataSizeMax: bigint | null;
11309
- bandwidthMax: bigint | null;
11310
- totalStorageSizeMax: bigint | null;
11352
+ baseQuotasId: string;
11353
+ } & {
11354
+ baseQuotas: {
11355
+ uploadCount: bigint | null;
11356
+ downloadCount: bigint | null;
11357
+ totalDataCount: bigint | null;
11358
+ totalStorageSize: bigint | null;
11359
+ perDataSize: bigint | null;
11360
+ downloadBandwidth: bigint | null;
11361
+ uploadBandwidth: bigint | null;
11362
+ receivedMailsId: string;
11363
+ sentMailsId: string;
11364
+ };
11311
11365
  };
11312
11366
  };
11313
11367
  id: string;
11314
11368
  createdAt: Date;
11369
+ quotasId: string;
11315
11370
  ownerId: string;
11316
11371
  blocked: boolean;
11317
11372
  name: string;
@@ -11321,7 +11376,6 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
11321
11376
  origin: string[];
11322
11377
  planId: string | null;
11323
11378
  lastMetricsReset: Date;
11324
- quotasId: string;
11325
11379
  owner: {
11326
11380
  user: {
11327
11381
  id: string;
@@ -11377,31 +11431,45 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
11377
11431
  isCustomPlan?: boolean | undefined;
11378
11432
  canHaveDatabase?: boolean | undefined;
11379
11433
  } & {
11380
- descriptor: {
11434
+ quotas: {
11435
+ users: bigint | null;
11436
+ totalStorageSize: bigint | null;
11437
+ devs: bigint | null;
11381
11438
  devsBase: bigint | null;
11382
11439
  devsUnit: bigint | null;
11383
11440
  devsPrice: number | null;
11384
11441
  usersBase: bigint | null;
11385
11442
  usersUnit: bigint | null;
11386
11443
  usersPrice: number | null;
11444
+ perDataSize: bigint | null;
11387
11445
  perDataSizeBase: bigint | null;
11388
11446
  perDataSizeUnit: bigint | null;
11389
11447
  perDataSizePrice: number | null;
11448
+ bandwidth: bigint | null;
11390
11449
  bandwidthBase: bigint | null;
11391
11450
  bandwidthUnit: bigint | null;
11392
11451
  bandwidthPrice: number | null;
11393
11452
  totalStorageSizeBase: bigint | null;
11394
11453
  totalStorageSizeUnit: bigint | null;
11395
11454
  totalStorageSizePrice: number | null;
11396
- devsMax: bigint | null;
11397
- usersMax: bigint | null;
11398
- perDataSizeMax: bigint | null;
11399
- bandwidthMax: bigint | null;
11400
- totalStorageSizeMax: bigint | null;
11455
+ baseQuotasId: string;
11456
+ } & {
11457
+ baseQuotas: {
11458
+ uploadCount: bigint | null;
11459
+ downloadCount: bigint | null;
11460
+ totalDataCount: bigint | null;
11461
+ totalStorageSize: bigint | null;
11462
+ perDataSize: bigint | null;
11463
+ downloadBandwidth: bigint | null;
11464
+ uploadBandwidth: bigint | null;
11465
+ receivedMailsId: string;
11466
+ sentMailsId: string;
11467
+ };
11401
11468
  };
11402
11469
  };
11403
11470
  id: string;
11404
11471
  createdAt: Date;
11472
+ quotasId: string;
11405
11473
  ownerId: string;
11406
11474
  blocked: boolean;
11407
11475
  name: string;
@@ -11411,7 +11479,6 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
11411
11479
  origin: string[];
11412
11480
  planId: string | null;
11413
11481
  lastMetricsReset: Date;
11414
- quotasId: string;
11415
11482
  owner: {
11416
11483
  user: {
11417
11484
  id: string;
@@ -11435,31 +11502,45 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
11435
11502
  isCustomPlan: boolean;
11436
11503
  canHaveDatabase: boolean;
11437
11504
  } & {
11438
- descriptor: {
11505
+ quotas: {
11506
+ users: bigint | null;
11507
+ totalStorageSize: bigint | null;
11508
+ devs: bigint | null;
11439
11509
  devsBase: bigint | null;
11440
11510
  devsUnit: bigint | null;
11441
11511
  devsPrice: number | null;
11442
11512
  usersBase: bigint | null;
11443
11513
  usersUnit: bigint | null;
11444
11514
  usersPrice: number | null;
11515
+ perDataSize: bigint | null;
11445
11516
  perDataSizeBase: bigint | null;
11446
11517
  perDataSizeUnit: bigint | null;
11447
11518
  perDataSizePrice: number | null;
11519
+ bandwidth: bigint | null;
11448
11520
  bandwidthBase: bigint | null;
11449
11521
  bandwidthUnit: bigint | null;
11450
11522
  bandwidthPrice: number | null;
11451
11523
  totalStorageSizeBase: bigint | null;
11452
11524
  totalStorageSizeUnit: bigint | null;
11453
11525
  totalStorageSizePrice: number | null;
11454
- devsMax: bigint | null;
11455
- usersMax: bigint | null;
11456
- perDataSizeMax: bigint | null;
11457
- bandwidthMax: bigint | null;
11458
- totalStorageSizeMax: bigint | null;
11526
+ baseQuotasId: string;
11527
+ } & {
11528
+ baseQuotas: {
11529
+ uploadCount: bigint | null;
11530
+ downloadCount: bigint | null;
11531
+ totalDataCount: bigint | null;
11532
+ totalStorageSize: bigint | null;
11533
+ perDataSize: bigint | null;
11534
+ downloadBandwidth: bigint | null;
11535
+ uploadBandwidth: bigint | null;
11536
+ receivedMailsId: string;
11537
+ sentMailsId: string;
11538
+ };
11459
11539
  };
11460
11540
  };
11461
11541
  id: string;
11462
11542
  createdAt: Date;
11543
+ quotasId: string;
11463
11544
  ownerId: string;
11464
11545
  blocked: boolean;
11465
11546
  name: string;
@@ -11469,7 +11550,6 @@ export declare const createTRPCClient: (session?: string | null | undefined, onA
11469
11550
  origin: string[];
11470
11551
  planId: string | null;
11471
11552
  lastMetricsReset: Date;
11472
- quotasId: string;
11473
11553
  owner: {
11474
11554
  user: {
11475
11555
  id: string;
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.47.2",
5
+ "version": "1.47.3-feat-pay-for-user-billing.1",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/anonymize-org/lib.git"
@@ -74,7 +74,7 @@
74
74
  "typescript": "^5.6.2"
75
75
  },
76
76
  "dependencies": {
77
- "@secrecy/trpc-api-types": "1.33.0-feat-unencrypted-data.5",
77
+ "@secrecy/trpc-api-types": "1.33.0-feat-billing-by-app-or-user.1",
78
78
  "@trpc/client": "10.45.2",
79
79
  "@trpc/server": "10.45.2",
80
80
  "@types/libsodium-wrappers-sumo": "^0.7.8",