@secrecy/trpc-api-types 1.33.0-feat-share-node-enhanced.24 → 1.33.0-feat-orgs.2

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.cts +1146 -461
  2. package/package.json +1 -1
package/dist/index.d.cts CHANGED
@@ -222,14 +222,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
222
222
  maxCount: bigint | null;
223
223
  maxDataCount: bigint | null;
224
224
  };
225
- received: {
226
- count: bigint;
227
- dataCount: bigint;
228
- dataSize: bigint;
229
- maxDataSize: bigint | null;
230
- maxCount: bigint | null;
231
- maxDataCount: bigint | null;
232
- };
233
225
  };
234
226
  cloud: {
235
227
  count: bigint;
@@ -256,14 +248,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
256
248
  maxCount: bigint | null;
257
249
  maxDataCount: bigint | null;
258
250
  };
259
- received: {
260
- count: bigint;
261
- dataCount: bigint;
262
- dataSize: bigint;
263
- maxDataSize: bigint | null;
264
- maxCount: bigint | null;
265
- maxDataCount: bigint | null;
266
- };
267
251
  };
268
252
  cloud: {
269
253
  count: bigint;
@@ -325,7 +309,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
325
309
  accountRole: _prisma_client.AccountRole;
326
310
  userId: string;
327
311
  userRole: _prisma_client.UserRole;
328
- userPlan: _prisma_client.PlanKind;
312
+ org: {
313
+ id: string;
314
+ plan: _prisma_client.OrganizationPlanKind;
315
+ role: _prisma_client.OrganizationRole;
316
+ };
329
317
  };
330
318
  req: {
331
319
  headers: Headers;
@@ -403,7 +391,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
403
391
  accountRole: _prisma_client.AccountRole;
404
392
  userId: string;
405
393
  userRole: _prisma_client.UserRole;
406
- userPlan: _prisma_client.PlanKind;
394
+ org: {
395
+ id: string;
396
+ plan: _prisma_client.OrganizationPlanKind;
397
+ role: _prisma_client.OrganizationRole;
398
+ };
407
399
  };
408
400
  req: {
409
401
  headers: Headers;
@@ -422,8 +414,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
422
414
  } | undefined;
423
415
  _output_in: {
424
416
  id: string;
425
- totalStorageSize: bigint | null;
426
- perDataSize: bigint | null;
427
417
  devs: bigint | null;
428
418
  devsBase: bigint | null;
429
419
  devsUnit: bigint | null;
@@ -432,6 +422,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
432
422
  usersBase: bigint | null;
433
423
  usersUnit: bigint | null;
434
424
  usersPrice: number | null;
425
+ perDataSize: bigint | null;
435
426
  perDataSizeBase: bigint | null;
436
427
  perDataSizeUnit: bigint | null;
437
428
  perDataSizePrice: number | null;
@@ -439,6 +430,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
439
430
  bandwidthBase: bigint | null;
440
431
  bandwidthUnit: bigint | null;
441
432
  bandwidthPrice: number | null;
433
+ totalStorageSize: bigint | null;
442
434
  totalStorageSizeBase: bigint | null;
443
435
  totalStorageSizeUnit: bigint | null;
444
436
  totalStorageSizePrice: number | null;
@@ -446,8 +438,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
446
438
  };
447
439
  _output_out: {
448
440
  id: string;
449
- totalStorageSize: bigint | null;
450
- perDataSize: bigint | null;
451
441
  devs: bigint | null;
452
442
  devsBase: bigint | null;
453
443
  devsUnit: bigint | null;
@@ -456,6 +446,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
456
446
  usersBase: bigint | null;
457
447
  usersUnit: bigint | null;
458
448
  usersPrice: number | null;
449
+ perDataSize: bigint | null;
459
450
  perDataSizeBase: bigint | null;
460
451
  perDataSizeUnit: bigint | null;
461
452
  perDataSizePrice: number | null;
@@ -463,6 +454,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
463
454
  bandwidthBase: bigint | null;
464
455
  bandwidthUnit: bigint | null;
465
456
  bandwidthPrice: number | null;
457
+ totalStorageSize: bigint | null;
466
458
  totalStorageSizeBase: bigint | null;
467
459
  totalStorageSizeUnit: bigint | null;
468
460
  totalStorageSizePrice: number | null;
@@ -595,7 +587,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
595
587
  accountRole: _prisma_client.AccountRole;
596
588
  userId: string;
597
589
  userRole: _prisma_client.UserRole;
598
- userPlan: _prisma_client.PlanKind;
590
+ org: {
591
+ id: string;
592
+ plan: _prisma_client.OrganizationPlanKind;
593
+ role: _prisma_client.OrganizationRole;
594
+ };
599
595
  };
600
596
  req: {
601
597
  headers: Headers;
@@ -619,8 +615,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
619
615
  canHaveDatabase?: boolean | undefined;
620
616
  } & {
621
617
  quotas: {
622
- totalStorageSize: bigint | null;
623
- perDataSize: bigint | null;
624
618
  devs: bigint | null;
625
619
  devsBase: bigint | null;
626
620
  devsUnit: bigint | null;
@@ -629,6 +623,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
629
623
  usersBase: bigint | null;
630
624
  usersUnit: bigint | null;
631
625
  usersPrice: number | null;
626
+ perDataSize: bigint | null;
632
627
  perDataSizeBase: bigint | null;
633
628
  perDataSizeUnit: bigint | null;
634
629
  perDataSizePrice: number | null;
@@ -636,20 +631,20 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
636
631
  bandwidthBase: bigint | null;
637
632
  bandwidthUnit: bigint | null;
638
633
  bandwidthPrice: number | null;
634
+ totalStorageSize: bigint | null;
639
635
  totalStorageSizeBase: bigint | null;
640
636
  totalStorageSizeUnit: bigint | null;
641
637
  totalStorageSizePrice: number | null;
642
638
  baseQuotasId: string;
643
639
  } & {
644
640
  baseQuotas: {
641
+ perDataSize: bigint | null;
642
+ totalStorageSize: bigint | null;
645
643
  downloadBandwidth: bigint | null;
646
644
  downloadCount: bigint | null;
647
645
  uploadBandwidth: bigint | null;
648
646
  uploadCount: bigint | null;
649
647
  totalDataCount: bigint | null;
650
- totalStorageSize: bigint | null;
651
- perDataSize: bigint | null;
652
- receivedMailsId: string;
653
648
  sentMailsId: string;
654
649
  };
655
650
  };
@@ -665,8 +660,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
665
660
  canHaveDatabase: boolean;
666
661
  } & {
667
662
  quotas: {
668
- totalStorageSize: bigint | null;
669
- perDataSize: bigint | null;
670
663
  devs: bigint | null;
671
664
  devsBase: bigint | null;
672
665
  devsUnit: bigint | null;
@@ -675,6 +668,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
675
668
  usersBase: bigint | null;
676
669
  usersUnit: bigint | null;
677
670
  usersPrice: number | null;
671
+ perDataSize: bigint | null;
678
672
  perDataSizeBase: bigint | null;
679
673
  perDataSizeUnit: bigint | null;
680
674
  perDataSizePrice: number | null;
@@ -682,20 +676,20 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
682
676
  bandwidthBase: bigint | null;
683
677
  bandwidthUnit: bigint | null;
684
678
  bandwidthPrice: number | null;
679
+ totalStorageSize: bigint | null;
685
680
  totalStorageSizeBase: bigint | null;
686
681
  totalStorageSizeUnit: bigint | null;
687
682
  totalStorageSizePrice: number | null;
688
683
  baseQuotasId: string;
689
684
  } & {
690
685
  baseQuotas: {
686
+ perDataSize: bigint | null;
687
+ totalStorageSize: bigint | null;
691
688
  downloadBandwidth: bigint | null;
692
689
  downloadCount: bigint | null;
693
690
  uploadBandwidth: bigint | null;
694
691
  uploadCount: bigint | null;
695
692
  totalDataCount: bigint | null;
696
- totalStorageSize: bigint | null;
697
- perDataSize: bigint | null;
698
- receivedMailsId: string;
699
693
  sentMailsId: string;
700
694
  };
701
695
  };
@@ -935,7 +929,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
935
929
  accountRole: _prisma_client.AccountRole;
936
930
  userId: string;
937
931
  userRole: _prisma_client.UserRole;
938
- userPlan: _prisma_client.PlanKind;
932
+ org: {
933
+ id: string;
934
+ plan: _prisma_client.OrganizationPlanKind;
935
+ role: _prisma_client.OrganizationRole;
936
+ };
939
937
  };
940
938
  req: {
941
939
  headers: Headers;
@@ -1333,34 +1331,26 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
1333
1331
  kind: "free" | "basic" | "advanced" | "pro";
1334
1332
  };
1335
1333
  _output_in: {
1334
+ name: string;
1336
1335
  id: string;
1337
- lastname: string;
1338
- firstname: string;
1339
- avatar: string | null;
1340
- isSearchable: boolean;
1341
- } & {
1336
+ ownerId: string;
1342
1337
  createdAt: Date;
1343
- deletedAt: Date | null;
1344
- lastLogin: Date | null;
1345
- } & {
1346
- plan: {
1347
- kind: "free" | "basic" | "advanced" | "pro";
1348
- };
1338
+ planId: string;
1339
+ stripeSubId: string | null;
1340
+ stripeSubPaidUntil: Date | null;
1341
+ quotasId: string;
1342
+ billingProfileStripeCustomerId: string | null;
1349
1343
  };
1350
1344
  _output_out: {
1345
+ name: string;
1351
1346
  id: string;
1352
- lastname: string;
1353
- firstname: string;
1354
- avatar: string | null;
1355
- isSearchable: boolean;
1356
- } & {
1347
+ ownerId: string;
1357
1348
  createdAt: Date;
1358
- deletedAt: Date | null;
1359
- lastLogin: Date | null;
1360
- } & {
1361
- plan: {
1362
- kind: "free" | "basic" | "advanced" | "pro";
1363
- };
1349
+ planId: string;
1350
+ stripeSubId: string | null;
1351
+ stripeSubPaidUntil: Date | null;
1352
+ quotasId: string;
1353
+ billingProfileStripeCustomerId: string | null;
1364
1354
  };
1365
1355
  }, unknown>;
1366
1356
  }>;
@@ -2094,11 +2084,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2094
2084
  _output_in: ({
2095
2085
  id: string;
2096
2086
  lang: "fr" | "en";
2097
- body: string;
2098
2087
  title: string;
2099
2088
  status: "draft" | "published";
2100
2089
  summary: string;
2101
2090
  date: Date;
2091
+ body: string;
2102
2092
  tags: string[];
2103
2093
  author: string;
2104
2094
  image: string;
@@ -2113,11 +2103,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2113
2103
  _output_out: ({
2114
2104
  id: string;
2115
2105
  lang: "fr" | "en";
2116
- body: string;
2117
2106
  title: string;
2118
2107
  status: "draft" | "published";
2119
2108
  summary: string;
2120
2109
  date: Date;
2110
+ body: string;
2121
2111
  tags: string[];
2122
2112
  author: string;
2123
2113
  image: string;
@@ -2162,11 +2152,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2162
2152
  _output_in: {
2163
2153
  id: string;
2164
2154
  lang: "fr" | "en";
2165
- body: string;
2166
2155
  title: string;
2167
2156
  status: "draft" | "published";
2168
2157
  summary: string;
2169
2158
  date: Date;
2159
+ body: string;
2170
2160
  tags: string[];
2171
2161
  author: string;
2172
2162
  image: string;
@@ -2181,11 +2171,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2181
2171
  _output_out: {
2182
2172
  id: string;
2183
2173
  lang: "fr" | "en";
2184
- body: string;
2185
2174
  title: string;
2186
2175
  status: "draft" | "published";
2187
2176
  summary: string;
2188
2177
  date: Date;
2178
+ body: string;
2189
2179
  tags: string[];
2190
2180
  author: string;
2191
2181
  image: string;
@@ -2292,9 +2282,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2292
2282
  createdAt: Date;
2293
2283
  storageType: "s3" | "cold" | "lite";
2294
2284
  size: bigint;
2285
+ createdByUserId: string;
2286
+ createdByAppId: string;
2287
+ createdByOrgId: string;
2295
2288
  md5: string;
2296
- userAppUserId: string;
2297
- userAppAppId: string;
2298
2289
  sizeEncrypted: bigint | null;
2299
2290
  md5Encrypted: string | null;
2300
2291
  mime: string | null;
@@ -2311,9 +2302,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2311
2302
  createdAt: Date;
2312
2303
  storageType: "s3" | "cold" | "lite";
2313
2304
  size: bigint;
2305
+ createdByUserId: string;
2306
+ createdByAppId: string;
2307
+ createdByOrgId: string;
2314
2308
  md5: string;
2315
- userAppUserId: string;
2316
- userAppAppId: string;
2317
2309
  sizeEncrypted: bigint | null;
2318
2310
  md5Encrypted: string | null;
2319
2311
  mime: string | null;
@@ -2443,9 +2435,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2443
2435
  createdAt: Date;
2444
2436
  storageType: "s3" | "cold" | "lite";
2445
2437
  size: bigint;
2438
+ createdByUserId: string;
2439
+ createdByAppId: string;
2440
+ createdByOrgId: string;
2446
2441
  md5: string;
2447
- userAppUserId: string;
2448
- userAppAppId: string;
2449
2442
  sizeEncrypted: bigint | null;
2450
2443
  md5Encrypted: string | null;
2451
2444
  mime: string | null;
@@ -2462,9 +2455,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2462
2455
  createdAt: Date;
2463
2456
  storageType: "s3" | "cold" | "lite";
2464
2457
  size: bigint;
2458
+ createdByUserId: string;
2459
+ createdByAppId: string;
2460
+ createdByOrgId: string;
2465
2461
  md5: string;
2466
- userAppUserId: string;
2467
- userAppAppId: string;
2468
2462
  sizeEncrypted: bigint | null;
2469
2463
  md5Encrypted: string | null;
2470
2464
  mime: string | null;
@@ -2629,9 +2623,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2629
2623
  createdAt: Date;
2630
2624
  storageType: "s3" | "cold" | "lite";
2631
2625
  size: bigint;
2626
+ createdByUserId: string;
2627
+ createdByAppId: string;
2628
+ createdByOrgId: string;
2632
2629
  md5: string;
2633
- userAppUserId: string;
2634
- userAppAppId: string;
2635
2630
  sizeEncrypted: bigint | null;
2636
2631
  md5Encrypted: string | null;
2637
2632
  mime: string | null;
@@ -2648,9 +2643,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2648
2643
  createdAt: Date;
2649
2644
  storageType: "s3" | "cold" | "lite";
2650
2645
  size: bigint;
2646
+ createdByUserId: string;
2647
+ createdByAppId: string;
2648
+ createdByOrgId: string;
2651
2649
  md5: string;
2652
- userAppUserId: string;
2653
- userAppAppId: string;
2654
2650
  sizeEncrypted: bigint | null;
2655
2651
  md5Encrypted: string | null;
2656
2652
  mime: string | null;
@@ -2694,8 +2690,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2694
2690
  };
2695
2691
  _output_in: {
2696
2692
  id: string;
2697
- type: "received_mail";
2698
2693
  key: string | null;
2694
+ type: "received_mail";
2699
2695
  storageType: "s3" | "cold" | "lite";
2700
2696
  size: bigint;
2701
2697
  md5: string;
@@ -2712,8 +2708,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2712
2708
  maybeContent: Buffer | null;
2713
2709
  } | {
2714
2710
  id: string;
2715
- type: "sent_mail";
2716
2711
  key: string | null;
2712
+ type: "sent_mail";
2717
2713
  storageType: "s3" | "cold" | "lite";
2718
2714
  size: bigint;
2719
2715
  md5: string;
@@ -2729,8 +2725,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2729
2725
  maybeContent: Buffer | null;
2730
2726
  } | {
2731
2727
  id: string;
2732
- type: "cloud";
2733
2728
  key: string | null;
2729
+ type: "cloud";
2734
2730
  storageType: "s3" | "cold";
2735
2731
  size: bigint;
2736
2732
  md5: string;
@@ -2746,8 +2742,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2746
2742
  publicKey: string;
2747
2743
  } | {
2748
2744
  id: string;
2749
- type: "lite";
2750
2745
  key: string | null;
2746
+ type: "lite";
2751
2747
  storageType: "lite";
2752
2748
  size: bigint;
2753
2749
  md5: string;
@@ -2760,8 +2756,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2760
2756
  };
2761
2757
  _output_out: {
2762
2758
  id: string;
2763
- type: "received_mail";
2764
2759
  key: string | null;
2760
+ type: "received_mail";
2765
2761
  storageType: "s3" | "cold" | "lite";
2766
2762
  size: bigint;
2767
2763
  md5: string;
@@ -2778,8 +2774,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2778
2774
  maybeContent: Buffer | null;
2779
2775
  } | {
2780
2776
  id: string;
2781
- type: "sent_mail";
2782
2777
  key: string | null;
2778
+ type: "sent_mail";
2783
2779
  storageType: "s3" | "cold" | "lite";
2784
2780
  size: bigint;
2785
2781
  md5: string;
@@ -2795,8 +2791,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2795
2791
  maybeContent: Buffer | null;
2796
2792
  } | {
2797
2793
  id: string;
2798
- type: "cloud";
2799
2794
  key: string | null;
2795
+ type: "cloud";
2800
2796
  storageType: "s3" | "cold";
2801
2797
  size: bigint;
2802
2798
  md5: string;
@@ -2812,8 +2808,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2812
2808
  publicKey: string;
2813
2809
  } | {
2814
2810
  id: string;
2815
- type: "lite";
2816
2811
  key: string | null;
2812
+ type: "lite";
2817
2813
  storageType: "lite";
2818
2814
  size: bigint;
2819
2815
  md5: string;
@@ -2856,8 +2852,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2856
2852
  };
2857
2853
  _output_in: ({
2858
2854
  id: string;
2859
- type: "received_mail";
2860
2855
  key: string | null;
2856
+ type: "received_mail";
2861
2857
  storageType: "s3" | "cold" | "lite";
2862
2858
  size: bigint;
2863
2859
  md5: string;
@@ -2874,8 +2870,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2874
2870
  maybeContent: Buffer | null;
2875
2871
  } | {
2876
2872
  id: string;
2877
- type: "sent_mail";
2878
2873
  key: string | null;
2874
+ type: "sent_mail";
2879
2875
  storageType: "s3" | "cold" | "lite";
2880
2876
  size: bigint;
2881
2877
  md5: string;
@@ -2891,8 +2887,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2891
2887
  maybeContent: Buffer | null;
2892
2888
  } | {
2893
2889
  id: string;
2894
- type: "cloud";
2895
2890
  key: string | null;
2891
+ type: "cloud";
2896
2892
  storageType: "s3" | "cold";
2897
2893
  size: bigint;
2898
2894
  md5: string;
@@ -2908,8 +2904,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2908
2904
  publicKey: string;
2909
2905
  } | {
2910
2906
  id: string;
2911
- type: "lite";
2912
2907
  key: string | null;
2908
+ type: "lite";
2913
2909
  storageType: "lite";
2914
2910
  size: bigint;
2915
2911
  md5: string;
@@ -2922,8 +2918,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2922
2918
  })[];
2923
2919
  _output_out: ({
2924
2920
  id: string;
2925
- type: "received_mail";
2926
2921
  key: string | null;
2922
+ type: "received_mail";
2927
2923
  storageType: "s3" | "cold" | "lite";
2928
2924
  size: bigint;
2929
2925
  md5: string;
@@ -2940,8 +2936,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2940
2936
  maybeContent: Buffer | null;
2941
2937
  } | {
2942
2938
  id: string;
2943
- type: "sent_mail";
2944
2939
  key: string | null;
2940
+ type: "sent_mail";
2945
2941
  storageType: "s3" | "cold" | "lite";
2946
2942
  size: bigint;
2947
2943
  md5: string;
@@ -2957,8 +2953,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2957
2953
  maybeContent: Buffer | null;
2958
2954
  } | {
2959
2955
  id: string;
2960
- type: "cloud";
2961
2956
  key: string | null;
2957
+ type: "cloud";
2962
2958
  storageType: "s3" | "cold";
2963
2959
  size: bigint;
2964
2960
  md5: string;
@@ -2974,8 +2970,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
2974
2970
  publicKey: string;
2975
2971
  } | {
2976
2972
  id: string;
2977
- type: "lite";
2978
2973
  key: string | null;
2974
+ type: "lite";
2979
2975
  storageType: "lite";
2980
2976
  size: bigint;
2981
2977
  md5: string;
@@ -3140,9 +3136,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3140
3136
  createdAt: Date;
3141
3137
  storageType: "s3" | "cold" | "lite";
3142
3138
  size: bigint;
3139
+ createdByUserId: string;
3140
+ createdByAppId: string;
3141
+ createdByOrgId: string;
3143
3142
  md5: string;
3144
- userAppUserId: string;
3145
- userAppAppId: string;
3146
3143
  sizeEncrypted: bigint | null;
3147
3144
  md5Encrypted: string | null;
3148
3145
  mime: string | null;
@@ -3159,9 +3156,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3159
3156
  createdAt: Date;
3160
3157
  storageType: "s3" | "cold" | "lite";
3161
3158
  size: bigint;
3159
+ createdByUserId: string;
3160
+ createdByAppId: string;
3161
+ createdByOrgId: string;
3162
3162
  md5: string;
3163
- userAppUserId: string;
3164
- userAppAppId: string;
3165
3163
  sizeEncrypted: bigint | null;
3166
3164
  md5Encrypted: string | null;
3167
3165
  mime: string | null;
@@ -3291,9 +3289,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3291
3289
  createdAt: Date;
3292
3290
  storageType: "s3" | "cold" | "lite";
3293
3291
  size: bigint;
3292
+ createdByUserId: string;
3293
+ createdByAppId: string;
3294
+ createdByOrgId: string;
3294
3295
  md5: string;
3295
- userAppUserId: string;
3296
- userAppAppId: string;
3297
3296
  sizeEncrypted: bigint | null;
3298
3297
  md5Encrypted: string | null;
3299
3298
  mime: string | null;
@@ -3310,9 +3309,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3310
3309
  createdAt: Date;
3311
3310
  storageType: "s3" | "cold" | "lite";
3312
3311
  size: bigint;
3312
+ createdByUserId: string;
3313
+ createdByAppId: string;
3314
+ createdByOrgId: string;
3313
3315
  md5: string;
3314
- userAppUserId: string;
3315
- userAppAppId: string;
3316
3316
  sizeEncrypted: bigint | null;
3317
3317
  md5Encrypted: string | null;
3318
3318
  mime: string | null;
@@ -3673,8 +3673,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3673
3673
  _meta: object;
3674
3674
  _ctx_out: {};
3675
3675
  _input_in: {
3676
- type: "encrypted";
3677
3676
  key: string;
3677
+ type: "encrypted";
3678
3678
  size: bigint;
3679
3679
  md5: string;
3680
3680
  sizeEncrypted: bigint;
@@ -3689,8 +3689,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3689
3689
  ext?: string | undefined;
3690
3690
  };
3691
3691
  _input_out: {
3692
- type: "encrypted";
3693
3692
  key: string;
3693
+ type: "encrypted";
3694
3694
  size: bigint;
3695
3695
  md5: string;
3696
3696
  sizeEncrypted: bigint;
@@ -3757,8 +3757,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3757
3757
  _meta: object;
3758
3758
  _ctx_out: {};
3759
3759
  _input_in: {
3760
- type: "encrypted";
3761
3760
  key: string;
3761
+ type: "encrypted";
3762
3762
  size: bigint;
3763
3763
  md5: string;
3764
3764
  sizeEncrypted: bigint;
@@ -3773,8 +3773,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3773
3773
  ext?: string | undefined;
3774
3774
  };
3775
3775
  _input_out: {
3776
- type: "encrypted";
3777
3776
  key: string;
3777
+ type: "encrypted";
3778
3778
  size: bigint;
3779
3779
  md5: string;
3780
3780
  sizeEncrypted: bigint;
@@ -3841,8 +3841,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3841
3841
  _meta: object;
3842
3842
  _ctx_out: {};
3843
3843
  _input_in: {
3844
- type: "encrypted";
3845
3844
  key: string;
3845
+ type: "encrypted";
3846
3846
  size: bigint;
3847
3847
  md5: string;
3848
3848
  sizeEncrypted: bigint;
@@ -3859,8 +3859,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
3859
3859
  ext?: string | undefined;
3860
3860
  };
3861
3861
  _input_out: {
3862
- type: "encrypted";
3863
3862
  key: string;
3863
+ type: "encrypted";
3864
3864
  size: bigint;
3865
3865
  md5: string;
3866
3866
  sizeEncrypted: bigint;
@@ -4336,9 +4336,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4336
4336
  createdAt: Date;
4337
4337
  storageType: "s3" | "cold" | "lite";
4338
4338
  size: bigint;
4339
+ createdByUserId: string;
4340
+ createdByAppId: string;
4341
+ createdByOrgId: string;
4339
4342
  md5: string;
4340
- userAppUserId: string;
4341
- userAppAppId: string;
4342
4343
  sizeEncrypted: bigint | null;
4343
4344
  md5Encrypted: string | null;
4344
4345
  mime: string | null;
@@ -4355,9 +4356,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4355
4356
  createdAt: Date;
4356
4357
  storageType: "s3" | "cold" | "lite";
4357
4358
  size: bigint;
4359
+ createdByUserId: string;
4360
+ createdByAppId: string;
4361
+ createdByOrgId: string;
4358
4362
  md5: string;
4359
- userAppUserId: string;
4360
- userAppAppId: string;
4361
4363
  sizeEncrypted: bigint | null;
4362
4364
  md5Encrypted: string | null;
4363
4365
  mime: string | null;
@@ -4487,9 +4489,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4487
4489
  createdAt: Date;
4488
4490
  storageType: "s3" | "cold" | "lite";
4489
4491
  size: bigint;
4492
+ createdByUserId: string;
4493
+ createdByAppId: string;
4494
+ createdByOrgId: string;
4490
4495
  md5: string;
4491
- userAppUserId: string;
4492
- userAppAppId: string;
4493
4496
  sizeEncrypted: bigint | null;
4494
4497
  md5Encrypted: string | null;
4495
4498
  mime: string | null;
@@ -4506,9 +4509,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4506
4509
  createdAt: Date;
4507
4510
  storageType: "s3" | "cold" | "lite";
4508
4511
  size: bigint;
4512
+ createdByUserId: string;
4513
+ createdByAppId: string;
4514
+ createdByOrgId: string;
4509
4515
  md5: string;
4510
- userAppUserId: string;
4511
- userAppAppId: string;
4512
4516
  sizeEncrypted: bigint | null;
4513
4517
  md5Encrypted: string | null;
4514
4518
  mime: string | null;
@@ -4893,6 +4897,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4893
4897
  id: string;
4894
4898
  };
4895
4899
  _output_in: {
4900
+ createdAt: Date;
4896
4901
  rights: "admin" | "write" | "read";
4897
4902
  nameKey: string | null;
4898
4903
  isRoot: boolean;
@@ -4903,6 +4908,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
4903
4908
  userAppAppId: string;
4904
4909
  };
4905
4910
  _output_out: {
4911
+ createdAt: Date;
4906
4912
  rights: "admin" | "write" | "read";
4907
4913
  nameKey: string | null;
4908
4914
  isRoot: boolean;
@@ -5134,9 +5140,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
5134
5140
  createdAt: Date;
5135
5141
  storageType: "s3" | "cold" | "lite";
5136
5142
  size: bigint;
5143
+ createdByUserId: string;
5144
+ createdByAppId: string;
5145
+ createdByOrgId: string;
5137
5146
  md5: string;
5138
- userAppUserId: string;
5139
- userAppAppId: string;
5140
5147
  sizeEncrypted: bigint | null;
5141
5148
  md5Encrypted: string | null;
5142
5149
  mime: string | null;
@@ -5153,9 +5160,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
5153
5160
  createdAt: Date;
5154
5161
  storageType: "s3" | "cold" | "lite";
5155
5162
  size: bigint;
5163
+ createdByUserId: string;
5164
+ createdByAppId: string;
5165
+ createdByOrgId: string;
5156
5166
  md5: string;
5157
- userAppUserId: string;
5158
- userAppAppId: string;
5159
5167
  sizeEncrypted: bigint | null;
5160
5168
  md5Encrypted: string | null;
5161
5169
  mime: string | null;
@@ -5285,9 +5293,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
5285
5293
  createdAt: Date;
5286
5294
  storageType: "s3" | "cold" | "lite";
5287
5295
  size: bigint;
5296
+ createdByUserId: string;
5297
+ createdByAppId: string;
5298
+ createdByOrgId: string;
5288
5299
  md5: string;
5289
- userAppUserId: string;
5290
- userAppAppId: string;
5291
5300
  sizeEncrypted: bigint | null;
5292
5301
  md5Encrypted: string | null;
5293
5302
  mime: string | null;
@@ -5304,9 +5313,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
5304
5313
  createdAt: Date;
5305
5314
  storageType: "s3" | "cold" | "lite";
5306
5315
  size: bigint;
5316
+ createdByUserId: string;
5317
+ createdByAppId: string;
5318
+ createdByOrgId: string;
5307
5319
  md5: string;
5308
- userAppUserId: string;
5309
- userAppAppId: string;
5310
5320
  sizeEncrypted: bigint | null;
5311
5321
  md5Encrypted: string | null;
5312
5322
  mime: string | null;
@@ -6040,9 +6050,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
6040
6050
  createdAt: Date;
6041
6051
  storageType: "s3" | "cold" | "lite";
6042
6052
  size: bigint;
6053
+ createdByUserId: string;
6054
+ createdByAppId: string;
6055
+ createdByOrgId: string;
6043
6056
  md5: string;
6044
- userAppUserId: string;
6045
- userAppAppId: string;
6046
6057
  sizeEncrypted: bigint | null;
6047
6058
  md5Encrypted: string | null;
6048
6059
  mime: string | null;
@@ -6059,9 +6070,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
6059
6070
  createdAt: Date;
6060
6071
  storageType: "s3" | "cold" | "lite";
6061
6072
  size: bigint;
6073
+ createdByUserId: string;
6074
+ createdByAppId: string;
6075
+ createdByOrgId: string;
6062
6076
  md5: string;
6063
- userAppUserId: string;
6064
- userAppAppId: string;
6065
6077
  sizeEncrypted: bigint | null;
6066
6078
  md5Encrypted: string | null;
6067
6079
  mime: string | null;
@@ -6191,9 +6203,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
6191
6203
  createdAt: Date;
6192
6204
  storageType: "s3" | "cold" | "lite";
6193
6205
  size: bigint;
6206
+ createdByUserId: string;
6207
+ createdByAppId: string;
6208
+ createdByOrgId: string;
6194
6209
  md5: string;
6195
- userAppUserId: string;
6196
- userAppAppId: string;
6197
6210
  sizeEncrypted: bigint | null;
6198
6211
  md5Encrypted: string | null;
6199
6212
  mime: string | null;
@@ -6210,9 +6223,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
6210
6223
  createdAt: Date;
6211
6224
  storageType: "s3" | "cold" | "lite";
6212
6225
  size: bigint;
6226
+ createdByUserId: string;
6227
+ createdByAppId: string;
6228
+ createdByOrgId: string;
6213
6229
  md5: string;
6214
- userAppUserId: string;
6215
- userAppAppId: string;
6216
6230
  sizeEncrypted: bigint | null;
6217
6231
  md5Encrypted: string | null;
6218
6232
  mime: string | null;
@@ -6992,7 +7006,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
6992
7006
  accountRole: _prisma_client.AccountRole;
6993
7007
  userId: string;
6994
7008
  userRole: _prisma_client.UserRole;
6995
- userPlan: _prisma_client.PlanKind;
7009
+ org: {
7010
+ id: string;
7011
+ plan: _prisma_client.OrganizationPlanKind;
7012
+ role: _prisma_client.OrganizationRole;
7013
+ };
6996
7014
  };
6997
7015
  req: {
6998
7016
  headers: Headers;
@@ -7072,7 +7090,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
7072
7090
  accountRole: _prisma_client.AccountRole;
7073
7091
  userId: string;
7074
7092
  userRole: _prisma_client.UserRole;
7075
- userPlan: _prisma_client.PlanKind;
7093
+ org: {
7094
+ id: string;
7095
+ plan: _prisma_client.OrganizationPlanKind;
7096
+ role: _prisma_client.OrganizationRole;
7097
+ };
7076
7098
  };
7077
7099
  req: {
7078
7100
  headers: Headers;
@@ -7146,7 +7168,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
7146
7168
  accountRole: _prisma_client.AccountRole;
7147
7169
  userId: string;
7148
7170
  userRole: _prisma_client.UserRole;
7149
- userPlan: _prisma_client.PlanKind;
7171
+ org: {
7172
+ id: string;
7173
+ plan: _prisma_client.OrganizationPlanKind;
7174
+ role: _prisma_client.OrganizationRole;
7175
+ };
7150
7176
  };
7151
7177
  req: {
7152
7178
  headers: Headers;
@@ -7226,7 +7252,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
7226
7252
  accountRole: _prisma_client.AccountRole;
7227
7253
  userId: string;
7228
7254
  userRole: _prisma_client.UserRole;
7229
- userPlan: _prisma_client.PlanKind;
7255
+ org: {
7256
+ id: string;
7257
+ plan: _prisma_client.OrganizationPlanKind;
7258
+ role: _prisma_client.OrganizationRole;
7259
+ };
7230
7260
  };
7231
7261
  req: {
7232
7262
  headers: Headers;
@@ -7304,7 +7334,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
7304
7334
  accountRole: _prisma_client.AccountRole;
7305
7335
  userId: string;
7306
7336
  userRole: _prisma_client.UserRole;
7307
- userPlan: _prisma_client.PlanKind;
7337
+ org: {
7338
+ id: string;
7339
+ plan: _prisma_client.OrganizationPlanKind;
7340
+ role: _prisma_client.OrganizationRole;
7341
+ };
7308
7342
  };
7309
7343
  req: {
7310
7344
  headers: Headers;
@@ -7399,7 +7433,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
7399
7433
  accountRole: _prisma_client.AccountRole;
7400
7434
  userId: string;
7401
7435
  userRole: _prisma_client.UserRole;
7402
- userPlan: _prisma_client.PlanKind;
7436
+ org: {
7437
+ id: string;
7438
+ plan: _prisma_client.OrganizationPlanKind;
7439
+ role: _prisma_client.OrganizationRole;
7440
+ };
7403
7441
  };
7404
7442
  req: {
7405
7443
  headers: Headers;
@@ -7473,7 +7511,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
7473
7511
  accountRole: _prisma_client.AccountRole;
7474
7512
  userId: string;
7475
7513
  userRole: _prisma_client.UserRole;
7476
- userPlan: _prisma_client.PlanKind;
7514
+ org: {
7515
+ id: string;
7516
+ plan: _prisma_client.OrganizationPlanKind;
7517
+ role: _prisma_client.OrganizationRole;
7518
+ };
7477
7519
  };
7478
7520
  req: {
7479
7521
  headers: Headers;
@@ -7541,7 +7583,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
7541
7583
  accountRole: _prisma_client.AccountRole;
7542
7584
  userId: string;
7543
7585
  userRole: _prisma_client.UserRole;
7544
- userPlan: _prisma_client.PlanKind;
7586
+ org: {
7587
+ id: string;
7588
+ plan: _prisma_client.OrganizationPlanKind;
7589
+ role: _prisma_client.OrganizationRole;
7590
+ };
7545
7591
  };
7546
7592
  req: {
7547
7593
  headers: Headers;
@@ -7609,7 +7655,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
7609
7655
  accountRole: _prisma_client.AccountRole;
7610
7656
  userId: string;
7611
7657
  userRole: _prisma_client.UserRole;
7612
- userPlan: _prisma_client.PlanKind;
7658
+ org: {
7659
+ id: string;
7660
+ plan: _prisma_client.OrganizationPlanKind;
7661
+ role: _prisma_client.OrganizationRole;
7662
+ };
7613
7663
  };
7614
7664
  req: {
7615
7665
  headers: Headers;
@@ -7701,7 +7751,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
7701
7751
  accountRole: _prisma_client.AccountRole;
7702
7752
  userId: string;
7703
7753
  userRole: _prisma_client.UserRole;
7704
- userPlan: _prisma_client.PlanKind;
7754
+ org: {
7755
+ id: string;
7756
+ plan: _prisma_client.OrganizationPlanKind;
7757
+ role: _prisma_client.OrganizationRole;
7758
+ };
7705
7759
  };
7706
7760
  req: {
7707
7761
  headers: Headers;
@@ -7805,7 +7859,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
7805
7859
  accountRole: _prisma_client.AccountRole;
7806
7860
  userId: string;
7807
7861
  userRole: _prisma_client.UserRole;
7808
- userPlan: _prisma_client.PlanKind;
7862
+ org: {
7863
+ id: string;
7864
+ plan: _prisma_client.OrganizationPlanKind;
7865
+ role: _prisma_client.OrganizationRole;
7866
+ };
7809
7867
  };
7810
7868
  req: {
7811
7869
  headers: Headers;
@@ -7885,7 +7943,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
7885
7943
  accountRole: _prisma_client.AccountRole;
7886
7944
  userId: string;
7887
7945
  userRole: _prisma_client.UserRole;
7888
- userPlan: _prisma_client.PlanKind;
7946
+ org: {
7947
+ id: string;
7948
+ plan: _prisma_client.OrganizationPlanKind;
7949
+ role: _prisma_client.OrganizationRole;
7950
+ };
7889
7951
  };
7890
7952
  req: {
7891
7953
  headers: Headers;
@@ -8055,7 +8117,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
8055
8117
  accountRole: _prisma_client.AccountRole;
8056
8118
  userId: string;
8057
8119
  userRole: _prisma_client.UserRole;
8058
- userPlan: _prisma_client.PlanKind;
8120
+ org: {
8121
+ id: string;
8122
+ plan: _prisma_client.OrganizationPlanKind;
8123
+ role: _prisma_client.OrganizationRole;
8124
+ };
8059
8125
  };
8060
8126
  req: {
8061
8127
  headers: Headers;
@@ -8131,7 +8197,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
8131
8197
  accountRole: _prisma_client.AccountRole;
8132
8198
  userId: string;
8133
8199
  userRole: _prisma_client.UserRole;
8134
- userPlan: _prisma_client.PlanKind;
8200
+ org: {
8201
+ id: string;
8202
+ plan: _prisma_client.OrganizationPlanKind;
8203
+ role: _prisma_client.OrganizationRole;
8204
+ };
8135
8205
  };
8136
8206
  req: {
8137
8207
  headers: Headers;
@@ -8368,7 +8438,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
8368
8438
  accountRole: _prisma_client.AccountRole;
8369
8439
  userId: string;
8370
8440
  userRole: _prisma_client.UserRole;
8371
- userPlan: _prisma_client.PlanKind;
8441
+ org: {
8442
+ id: string;
8443
+ plan: _prisma_client.OrganizationPlanKind;
8444
+ role: _prisma_client.OrganizationRole;
8445
+ };
8372
8446
  };
8373
8447
  req: {
8374
8448
  headers: Headers;
@@ -8450,7 +8524,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
8450
8524
  accountRole: _prisma_client.AccountRole;
8451
8525
  userId: string;
8452
8526
  userRole: _prisma_client.UserRole;
8453
- userPlan: _prisma_client.PlanKind;
8527
+ org: {
8528
+ id: string;
8529
+ plan: _prisma_client.OrganizationPlanKind;
8530
+ role: _prisma_client.OrganizationRole;
8531
+ };
8454
8532
  };
8455
8533
  req: {
8456
8534
  headers: Headers;
@@ -8522,7 +8600,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
8522
8600
  accountRole: _prisma_client.AccountRole;
8523
8601
  userId: string;
8524
8602
  userRole: _prisma_client.UserRole;
8525
- userPlan: _prisma_client.PlanKind;
8603
+ org: {
8604
+ id: string;
8605
+ plan: _prisma_client.OrganizationPlanKind;
8606
+ role: _prisma_client.OrganizationRole;
8607
+ };
8526
8608
  };
8527
8609
  req: {
8528
8610
  headers: Headers;
@@ -8602,7 +8684,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
8602
8684
  accountRole: _prisma_client.AccountRole;
8603
8685
  userId: string;
8604
8686
  userRole: _prisma_client.UserRole;
8605
- userPlan: _prisma_client.PlanKind;
8687
+ org: {
8688
+ id: string;
8689
+ plan: _prisma_client.OrganizationPlanKind;
8690
+ role: _prisma_client.OrganizationRole;
8691
+ };
8606
8692
  };
8607
8693
  req: {
8608
8694
  headers: Headers;
@@ -8690,7 +8776,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
8690
8776
  accountRole: _prisma_client.AccountRole;
8691
8777
  userId: string;
8692
8778
  userRole: _prisma_client.UserRole;
8693
- userPlan: _prisma_client.PlanKind;
8779
+ org: {
8780
+ id: string;
8781
+ plan: _prisma_client.OrganizationPlanKind;
8782
+ role: _prisma_client.OrganizationRole;
8783
+ };
8694
8784
  };
8695
8785
  req: {
8696
8786
  headers: Headers;
@@ -8774,7 +8864,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
8774
8864
  accountRole: _prisma_client.AccountRole;
8775
8865
  userId: string;
8776
8866
  userRole: _prisma_client.UserRole;
8777
- userPlan: _prisma_client.PlanKind;
8867
+ org: {
8868
+ id: string;
8869
+ plan: _prisma_client.OrganizationPlanKind;
8870
+ role: _prisma_client.OrganizationRole;
8871
+ };
8778
8872
  };
8779
8873
  req: {
8780
8874
  headers: Headers;
@@ -8850,7 +8944,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
8850
8944
  accountRole: _prisma_client.AccountRole;
8851
8945
  userId: string;
8852
8946
  userRole: _prisma_client.UserRole;
8853
- userPlan: _prisma_client.PlanKind;
8947
+ org: {
8948
+ id: string;
8949
+ plan: _prisma_client.OrganizationPlanKind;
8950
+ role: _prisma_client.OrganizationRole;
8951
+ };
8854
8952
  };
8855
8953
  req: {
8856
8954
  headers: Headers;
@@ -8930,7 +9028,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
8930
9028
  accountRole: _prisma_client.AccountRole;
8931
9029
  userId: string;
8932
9030
  userRole: _prisma_client.UserRole;
8933
- userPlan: _prisma_client.PlanKind;
9031
+ org: {
9032
+ id: string;
9033
+ plan: _prisma_client.OrganizationPlanKind;
9034
+ role: _prisma_client.OrganizationRole;
9035
+ };
8934
9036
  };
8935
9037
  req: {
8936
9038
  headers: Headers;
@@ -9012,7 +9114,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
9012
9114
  accountRole: _prisma_client.AccountRole;
9013
9115
  userId: string;
9014
9116
  userRole: _prisma_client.UserRole;
9015
- userPlan: _prisma_client.PlanKind;
9117
+ org: {
9118
+ id: string;
9119
+ plan: _prisma_client.OrganizationPlanKind;
9120
+ role: _prisma_client.OrganizationRole;
9121
+ };
9016
9122
  };
9017
9123
  req: {
9018
9124
  headers: Headers;
@@ -9113,7 +9219,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
9113
9219
  accountRole: _prisma_client.AccountRole;
9114
9220
  userId: string;
9115
9221
  userRole: _prisma_client.UserRole;
9116
- userPlan: _prisma_client.PlanKind;
9222
+ org: {
9223
+ id: string;
9224
+ plan: _prisma_client.OrganizationPlanKind;
9225
+ role: _prisma_client.OrganizationRole;
9226
+ };
9117
9227
  };
9118
9228
  req: {
9119
9229
  headers: Headers;
@@ -9193,7 +9303,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
9193
9303
  accountRole: _prisma_client.AccountRole;
9194
9304
  userId: string;
9195
9305
  userRole: _prisma_client.UserRole;
9196
- userPlan: _prisma_client.PlanKind;
9306
+ org: {
9307
+ id: string;
9308
+ plan: _prisma_client.OrganizationPlanKind;
9309
+ role: _prisma_client.OrganizationRole;
9310
+ };
9197
9311
  };
9198
9312
  req: {
9199
9313
  headers: Headers;
@@ -9267,7 +9381,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
9267
9381
  accountRole: _prisma_client.AccountRole;
9268
9382
  userId: string;
9269
9383
  userRole: _prisma_client.UserRole;
9270
- userPlan: _prisma_client.PlanKind;
9384
+ org: {
9385
+ id: string;
9386
+ plan: _prisma_client.OrganizationPlanKind;
9387
+ role: _prisma_client.OrganizationRole;
9388
+ };
9271
9389
  };
9272
9390
  req: {
9273
9391
  headers: Headers;
@@ -9347,7 +9465,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
9347
9465
  accountRole: _prisma_client.AccountRole;
9348
9466
  userId: string;
9349
9467
  userRole: _prisma_client.UserRole;
9350
- userPlan: _prisma_client.PlanKind;
9468
+ org: {
9469
+ id: string;
9470
+ plan: _prisma_client.OrganizationPlanKind;
9471
+ role: _prisma_client.OrganizationRole;
9472
+ };
9351
9473
  };
9352
9474
  req: {
9353
9475
  headers: Headers;
@@ -9425,7 +9547,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
9425
9547
  accountRole: _prisma_client.AccountRole;
9426
9548
  userId: string;
9427
9549
  userRole: _prisma_client.UserRole;
9428
- userPlan: _prisma_client.PlanKind;
9550
+ org: {
9551
+ id: string;
9552
+ plan: _prisma_client.OrganizationPlanKind;
9553
+ role: _prisma_client.OrganizationRole;
9554
+ };
9429
9555
  };
9430
9556
  req: {
9431
9557
  headers: Headers;
@@ -9530,7 +9656,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
9530
9656
  accountRole: _prisma_client.AccountRole;
9531
9657
  userId: string;
9532
9658
  userRole: _prisma_client.UserRole;
9533
- userPlan: _prisma_client.PlanKind;
9659
+ org: {
9660
+ id: string;
9661
+ plan: _prisma_client.OrganizationPlanKind;
9662
+ role: _prisma_client.OrganizationRole;
9663
+ };
9534
9664
  };
9535
9665
  req: {
9536
9666
  headers: Headers;
@@ -9646,7 +9776,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
9646
9776
  accountRole: _prisma_client.AccountRole;
9647
9777
  userId: string;
9648
9778
  userRole: _prisma_client.UserRole;
9649
- userPlan: _prisma_client.PlanKind;
9779
+ org: {
9780
+ id: string;
9781
+ plan: _prisma_client.OrganizationPlanKind;
9782
+ role: _prisma_client.OrganizationRole;
9783
+ };
9650
9784
  };
9651
9785
  req: {
9652
9786
  headers: Headers;
@@ -9718,7 +9852,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
9718
9852
  accountRole: _prisma_client.AccountRole;
9719
9853
  userId: string;
9720
9854
  userRole: _prisma_client.UserRole;
9721
- userPlan: _prisma_client.PlanKind;
9855
+ org: {
9856
+ id: string;
9857
+ plan: _prisma_client.OrganizationPlanKind;
9858
+ role: _prisma_client.OrganizationRole;
9859
+ };
9722
9860
  };
9723
9861
  req: {
9724
9862
  headers: Headers;
@@ -9828,7 +9966,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
9828
9966
  accountRole: _prisma_client.AccountRole;
9829
9967
  userId: string;
9830
9968
  userRole: _prisma_client.UserRole;
9831
- userPlan: _prisma_client.PlanKind;
9969
+ org: {
9970
+ id: string;
9971
+ plan: _prisma_client.OrganizationPlanKind;
9972
+ role: _prisma_client.OrganizationRole;
9973
+ };
9832
9974
  };
9833
9975
  req: {
9834
9976
  headers: Headers;
@@ -9938,7 +10080,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
9938
10080
  accountRole: _prisma_client.AccountRole;
9939
10081
  userId: string;
9940
10082
  userRole: _prisma_client.UserRole;
9941
- userPlan: _prisma_client.PlanKind;
10083
+ org: {
10084
+ id: string;
10085
+ plan: _prisma_client.OrganizationPlanKind;
10086
+ role: _prisma_client.OrganizationRole;
10087
+ };
9942
10088
  };
9943
10089
  req: {
9944
10090
  headers: Headers;
@@ -10044,7 +10190,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10044
10190
  accountRole: _prisma_client.AccountRole;
10045
10191
  userId: string;
10046
10192
  userRole: _prisma_client.UserRole;
10047
- userPlan: _prisma_client.PlanKind;
10193
+ org: {
10194
+ id: string;
10195
+ plan: _prisma_client.OrganizationPlanKind;
10196
+ role: _prisma_client.OrganizationRole;
10197
+ };
10048
10198
  };
10049
10199
  req: {
10050
10200
  headers: Headers;
@@ -10154,7 +10304,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10154
10304
  accountRole: _prisma_client.AccountRole;
10155
10305
  userId: string;
10156
10306
  userRole: _prisma_client.UserRole;
10157
- userPlan: _prisma_client.PlanKind;
10307
+ org: {
10308
+ id: string;
10309
+ plan: _prisma_client.OrganizationPlanKind;
10310
+ role: _prisma_client.OrganizationRole;
10311
+ };
10158
10312
  };
10159
10313
  req: {
10160
10314
  headers: Headers;
@@ -10264,7 +10418,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10264
10418
  accountRole: _prisma_client.AccountRole;
10265
10419
  userId: string;
10266
10420
  userRole: _prisma_client.UserRole;
10267
- userPlan: _prisma_client.PlanKind;
10421
+ org: {
10422
+ id: string;
10423
+ plan: _prisma_client.OrganizationPlanKind;
10424
+ role: _prisma_client.OrganizationRole;
10425
+ };
10268
10426
  };
10269
10427
  req: {
10270
10428
  headers: Headers;
@@ -10374,7 +10532,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10374
10532
  accountRole: _prisma_client.AccountRole;
10375
10533
  userId: string;
10376
10534
  userRole: _prisma_client.UserRole;
10377
- userPlan: _prisma_client.PlanKind;
10535
+ org: {
10536
+ id: string;
10537
+ plan: _prisma_client.OrganizationPlanKind;
10538
+ role: _prisma_client.OrganizationRole;
10539
+ };
10378
10540
  };
10379
10541
  req: {
10380
10542
  headers: Headers;
@@ -10568,10 +10730,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10568
10730
  id: string;
10569
10731
  createdAt: Date;
10570
10732
  deletedAt: Date | null;
10733
+ type: "received" | "sent";
10571
10734
  subject: string;
10572
10735
  body: string;
10573
10736
  openedAt: Date | null;
10574
- type: "sent" | "received";
10575
10737
  } & {
10576
10738
  mailIntegrity: {
10577
10739
  id: string;
@@ -10626,10 +10788,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10626
10788
  id: string;
10627
10789
  createdAt: Date;
10628
10790
  deletedAt: Date | null;
10791
+ type: "received" | "sent";
10629
10792
  subject: string;
10630
10793
  body: string;
10631
10794
  openedAt: Date | null;
10632
- type: "sent" | "received";
10633
10795
  } & {
10634
10796
  mailIntegrity: {
10635
10797
  id: string;
@@ -10736,10 +10898,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10736
10898
  id: string;
10737
10899
  createdAt: Date;
10738
10900
  deletedAt: Date | null;
10901
+ type: "received" | "sent";
10739
10902
  subject: string;
10740
10903
  body: string;
10741
10904
  openedAt: Date | null;
10742
- type: "sent" | "received";
10743
10905
  } & {
10744
10906
  mailIntegrity: {
10745
10907
  id: string;
@@ -10794,10 +10956,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10794
10956
  id: string;
10795
10957
  createdAt: Date;
10796
10958
  deletedAt: Date | null;
10959
+ type: "received" | "sent";
10797
10960
  subject: string;
10798
10961
  body: string;
10799
10962
  openedAt: Date | null;
10800
- type: "sent" | "received";
10801
10963
  } & {
10802
10964
  mailIntegrity: {
10803
10965
  id: string;
@@ -10981,19 +11143,19 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
10981
11143
  _meta: object;
10982
11144
  _ctx_out: {};
10983
11145
  _input_in: {
10984
- type: "sent" | "received";
11146
+ type: "received" | "sent";
10985
11147
  };
10986
11148
  _input_out: {
10987
- type: "sent" | "received";
11149
+ type: "received" | "sent";
10988
11150
  };
10989
11151
  _output_in: ({
10990
11152
  id: string;
10991
11153
  createdAt: Date;
10992
11154
  deletedAt: Date | null;
11155
+ type: "received" | "sent";
10993
11156
  subject: string;
10994
11157
  body: string;
10995
11158
  openedAt: Date | null;
10996
- type: "sent" | "received";
10997
11159
  } & {
10998
11160
  mailIntegrity: {
10999
11161
  id: string;
@@ -11048,10 +11210,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11048
11210
  id: string;
11049
11211
  createdAt: Date;
11050
11212
  deletedAt: Date | null;
11213
+ type: "received" | "sent";
11051
11214
  subject: string;
11052
11215
  body: string;
11053
11216
  openedAt: Date | null;
11054
- type: "sent" | "received";
11055
11217
  } & {
11056
11218
  mailIntegrity: {
11057
11219
  id: string;
@@ -11138,10 +11300,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11138
11300
  id: string;
11139
11301
  createdAt: Date;
11140
11302
  deletedAt: Date | null;
11303
+ type: "received" | "sent";
11141
11304
  subject: string;
11142
11305
  body: string;
11143
11306
  openedAt: Date | null;
11144
- type: "sent" | "received";
11145
11307
  } & {
11146
11308
  mailIntegrity: {
11147
11309
  id: string;
@@ -11196,10 +11358,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11196
11358
  id: string;
11197
11359
  createdAt: Date;
11198
11360
  deletedAt: Date | null;
11361
+ type: "received" | "sent";
11199
11362
  subject: string;
11200
11363
  body: string;
11201
11364
  openedAt: Date | null;
11202
- type: "sent" | "received";
11203
11365
  } & {
11204
11366
  mailIntegrity: {
11205
11367
  id: string;
@@ -11354,10 +11516,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11354
11516
  id: string;
11355
11517
  createdAt: Date;
11356
11518
  deletedAt: Date | null;
11519
+ type: "received" | "sent";
11357
11520
  subject: string;
11358
11521
  body: string;
11359
11522
  openedAt: Date | null;
11360
- type: "sent" | "received";
11361
11523
  } & {
11362
11524
  mailIntegrity: {
11363
11525
  id: string;
@@ -11412,10 +11574,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11412
11574
  id: string;
11413
11575
  createdAt: Date;
11414
11576
  deletedAt: Date | null;
11577
+ type: "received" | "sent";
11415
11578
  subject: string;
11416
11579
  body: string;
11417
11580
  openedAt: Date | null;
11418
- type: "sent" | "received";
11419
11581
  } & {
11420
11582
  mailIntegrity: {
11421
11583
  id: string;
@@ -11547,7 +11709,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11547
11709
  accountRole: _prisma_client.AccountRole;
11548
11710
  userId: string;
11549
11711
  userRole: _prisma_client.UserRole;
11550
- userPlan: _prisma_client.PlanKind;
11712
+ org: {
11713
+ id: string;
11714
+ plan: _prisma_client.OrganizationPlanKind;
11715
+ role: _prisma_client.OrganizationRole;
11716
+ };
11551
11717
  };
11552
11718
  req: {
11553
11719
  headers: Headers;
@@ -11730,10 +11896,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11730
11896
  id: string;
11731
11897
  createdAt: Date;
11732
11898
  deletedAt: Date | null;
11899
+ type: "received" | "sent";
11733
11900
  subject: string;
11734
11901
  body: string;
11735
11902
  openedAt: Date | null;
11736
- type: "sent" | "received";
11737
11903
  } & {
11738
11904
  mailIntegrity: {
11739
11905
  id: string;
@@ -11788,10 +11954,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11788
11954
  id: string;
11789
11955
  createdAt: Date;
11790
11956
  deletedAt: Date | null;
11957
+ type: "received" | "sent";
11791
11958
  subject: string;
11792
11959
  body: string;
11793
11960
  openedAt: Date | null;
11794
- type: "sent" | "received";
11795
11961
  } & {
11796
11962
  mailIntegrity: {
11797
11963
  id: string;
@@ -11933,11 +12099,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11933
12099
  _input_in: {
11934
12100
  id: string;
11935
12101
  } & {
11936
- subject: string | null;
11937
- body: string | null;
11938
12102
  hashKey: string | null;
11939
12103
  hash: string | null;
11940
12104
  replyToId: string | null;
12105
+ subject: string | null;
12106
+ body: string | null;
11941
12107
  recipients: string[] | null;
11942
12108
  senderFiles: {
11943
12109
  name: string;
@@ -11947,11 +12113,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11947
12113
  _input_out: {
11948
12114
  id: string;
11949
12115
  } & {
11950
- subject: string | null;
11951
- body: string | null;
11952
12116
  hashKey: string | null;
11953
12117
  hash: string | null;
11954
12118
  replyToId: string | null;
12119
+ subject: string | null;
12120
+ body: string | null;
11955
12121
  recipients: string[] | null;
11956
12122
  senderFiles: {
11957
12123
  name: string;
@@ -11962,10 +12128,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
11962
12128
  id: string;
11963
12129
  createdAt: Date;
11964
12130
  deletedAt: Date | null;
12131
+ type: "received" | "sent";
11965
12132
  subject: string;
11966
12133
  body: string;
11967
12134
  openedAt: Date | null;
11968
- type: "sent" | "received";
11969
12135
  } & {
11970
12136
  mailIntegrity: {
11971
12137
  id: string;
@@ -12020,10 +12186,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
12020
12186
  id: string;
12021
12187
  createdAt: Date;
12022
12188
  deletedAt: Date | null;
12189
+ type: "received" | "sent";
12023
12190
  subject: string;
12024
12191
  body: string;
12025
12192
  openedAt: Date | null;
12026
- type: "sent" | "received";
12027
12193
  } & {
12028
12194
  mailIntegrity: {
12029
12195
  id: string;
@@ -12236,8 +12402,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
12236
12402
  _meta: object;
12237
12403
  _ctx_out: {};
12238
12404
  _input_in: {
12239
- subject: string;
12240
12405
  message: string;
12406
+ subject: string;
12241
12407
  email?: string | null | undefined;
12242
12408
  screenshot?: string | null | undefined;
12243
12409
  logs?: any[][] | null | undefined;
@@ -12245,8 +12411,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
12245
12411
  logsError?: any[][] | null | undefined;
12246
12412
  };
12247
12413
  _input_out: {
12248
- subject: string;
12249
12414
  message: string;
12415
+ subject: string;
12250
12416
  email?: string | null | undefined;
12251
12417
  screenshot?: string | null | undefined;
12252
12418
  logs?: any[][] | null | undefined;
@@ -12375,7 +12541,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
12375
12541
  };
12376
12542
  }, unknown>;
12377
12543
  }>;
12378
- plan: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<{
12544
+ org: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<{
12379
12545
  ctx: {};
12380
12546
  meta: object;
12381
12547
  errorShape: {
@@ -12395,7 +12561,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
12395
12561
  };
12396
12562
  transformer: typeof superjson.default;
12397
12563
  }>, {
12398
- all: _trpc_server.BuildProcedure<"query", {
12564
+ byId: _trpc_server.BuildProcedure<"query", {
12399
12565
  _config: _trpc_server.RootConfig<{
12400
12566
  ctx: {};
12401
12567
  meta: object;
@@ -12418,40 +12584,652 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
12418
12584
  }>;
12419
12585
  _meta: object;
12420
12586
  _ctx_out: {};
12421
- _input_in: {};
12422
- _input_out: {};
12423
- _output_in: ({
12424
- codes: string[];
12587
+ _input_in: {
12588
+ id: string;
12589
+ };
12590
+ _input_out: {
12591
+ id: string;
12592
+ };
12593
+ _output_in: {
12594
+ name: string;
12425
12595
  id: string;
12596
+ ownerId: string;
12597
+ createdAt: Date;
12598
+ planId: string;
12599
+ stripeSubId: string | null;
12600
+ stripeSubPaidUntil: Date | null;
12426
12601
  quotasId: string;
12427
- kind: "free" | "basic" | "advanced" | "pro";
12428
- } & {
12429
- quotas: {
12430
- downloadBandwidth: bigint | null;
12431
- downloadCount: bigint | null;
12432
- uploadBandwidth: bigint | null;
12433
- uploadCount: bigint | null;
12434
- totalDataCount: bigint | null;
12435
- totalStorageSize: bigint | null;
12436
- perDataSize: bigint | null;
12437
- } & {
12438
- sentMails: {
12439
- count: bigint | null;
12440
- totalDataCount: bigint | null;
12441
- totalStorageSize: bigint | null;
12442
- perDataSize: bigint | null;
12443
- totalCount: bigint | null;
12444
- dataCount: bigint | null;
12445
- dataSize: bigint | null;
12446
- };
12447
- receivedMails: {
12448
- count: bigint | null;
12449
- totalDataCount: bigint | null;
12450
- totalStorageSize: bigint | null;
12451
- perDataSize: bigint | null;
12452
- totalCount: bigint | null;
12453
- dataCount: bigint | null;
12454
- dataSize: bigint | null;
12602
+ billingProfileStripeCustomerId: string | null;
12603
+ };
12604
+ _output_out: {
12605
+ name: string;
12606
+ id: string;
12607
+ ownerId: string;
12608
+ createdAt: Date;
12609
+ planId: string;
12610
+ stripeSubId: string | null;
12611
+ stripeSubPaidUntil: Date | null;
12612
+ quotasId: string;
12613
+ billingProfileStripeCustomerId: string | null;
12614
+ };
12615
+ }, unknown>;
12616
+ cancelSubscription: _trpc_server.BuildProcedure<"mutation", {
12617
+ _config: _trpc_server.RootConfig<{
12618
+ ctx: {};
12619
+ meta: object;
12620
+ errorShape: {
12621
+ message: string;
12622
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
12623
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
12624
+ } | {
12625
+ data: {
12626
+ zodError: zod.typeToFlattenedError<any, string> | null;
12627
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
12628
+ httpStatus: number;
12629
+ path?: string;
12630
+ stack?: string;
12631
+ };
12632
+ message: string;
12633
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
12634
+ };
12635
+ transformer: typeof superjson.default;
12636
+ }>;
12637
+ _meta: object;
12638
+ _ctx_out: {};
12639
+ _input_in: {
12640
+ prorate: boolean;
12641
+ };
12642
+ _input_out: {
12643
+ prorate: boolean;
12644
+ };
12645
+ _output_in: {
12646
+ isCancelled: boolean;
12647
+ };
12648
+ _output_out: {
12649
+ isCancelled: boolean;
12650
+ };
12651
+ }, unknown>;
12652
+ createSubscription: _trpc_server.BuildProcedure<"mutation", {
12653
+ _config: _trpc_server.RootConfig<{
12654
+ ctx: {};
12655
+ meta: object;
12656
+ errorShape: {
12657
+ message: string;
12658
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
12659
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
12660
+ } | {
12661
+ data: {
12662
+ zodError: zod.typeToFlattenedError<any, string> | null;
12663
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
12664
+ httpStatus: number;
12665
+ path?: string;
12666
+ stack?: string;
12667
+ };
12668
+ message: string;
12669
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
12670
+ };
12671
+ transformer: typeof superjson.default;
12672
+ }>;
12673
+ _meta: object;
12674
+ _ctx_out: {};
12675
+ _input_in: {
12676
+ planCode: "user_basic_month" | "user_basic_year" | "user_advanced_month" | "user_advanced_year" | "user_pro_month" | "user_pro_year";
12677
+ };
12678
+ _input_out: {
12679
+ planCode: "user_basic_month" | "user_basic_year" | "user_advanced_month" | "user_advanced_year" | "user_pro_month" | "user_pro_year";
12680
+ };
12681
+ _output_in: {
12682
+ url: string | null;
12683
+ };
12684
+ _output_out: {
12685
+ url: string | null;
12686
+ };
12687
+ }, unknown>;
12688
+ delete: _trpc_server.BuildProcedure<"mutation", {
12689
+ _config: _trpc_server.RootConfig<{
12690
+ ctx: {};
12691
+ meta: object;
12692
+ errorShape: {
12693
+ message: string;
12694
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
12695
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
12696
+ } | {
12697
+ data: {
12698
+ zodError: zod.typeToFlattenedError<any, string> | null;
12699
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
12700
+ httpStatus: number;
12701
+ path?: string;
12702
+ stack?: string;
12703
+ };
12704
+ message: string;
12705
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
12706
+ };
12707
+ transformer: typeof superjson.default;
12708
+ }>;
12709
+ _meta: object;
12710
+ _ctx_out: {};
12711
+ _input_in: {
12712
+ id: string;
12713
+ };
12714
+ _input_out: {
12715
+ id: string;
12716
+ };
12717
+ _output_in: {
12718
+ name: string;
12719
+ id: string;
12720
+ ownerId: string;
12721
+ createdAt: Date;
12722
+ planId: string;
12723
+ stripeSubId: string | null;
12724
+ stripeSubPaidUntil: Date | null;
12725
+ quotasId: string;
12726
+ billingProfileStripeCustomerId: string | null;
12727
+ };
12728
+ _output_out: {
12729
+ name: string;
12730
+ id: string;
12731
+ ownerId: string;
12732
+ createdAt: Date;
12733
+ planId: string;
12734
+ stripeSubId: string | null;
12735
+ stripeSubPaidUntil: Date | null;
12736
+ quotasId: string;
12737
+ billingProfileStripeCustomerId: string | null;
12738
+ };
12739
+ }, unknown>;
12740
+ getSubscription: _trpc_server.BuildProcedure<"query", {
12741
+ _config: _trpc_server.RootConfig<{
12742
+ ctx: {};
12743
+ meta: object;
12744
+ errorShape: {
12745
+ message: string;
12746
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
12747
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
12748
+ } | {
12749
+ data: {
12750
+ zodError: zod.typeToFlattenedError<any, string> | null;
12751
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
12752
+ httpStatus: number;
12753
+ path?: string;
12754
+ stack?: string;
12755
+ };
12756
+ message: string;
12757
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
12758
+ };
12759
+ transformer: typeof superjson.default;
12760
+ }>;
12761
+ _meta: object;
12762
+ _ctx_out: {};
12763
+ _input_in: {} | undefined;
12764
+ _input_out: {} | undefined;
12765
+ _output_in: {
12766
+ subscription: {
12767
+ id: string;
12768
+ currency: string;
12769
+ description: string | null;
12770
+ status: "canceled" | "past_due" | "active" | "incomplete" | "incomplete_expired" | "paused" | "trialing" | "unpaid";
12771
+ billingCycleAnchor: number;
12772
+ cancelAt: number | null;
12773
+ cancelAtPeriodEnd: boolean;
12774
+ canceledAt: number | null;
12775
+ created: number;
12776
+ currentPeriodEnd: number;
12777
+ currentPeriodStart: number;
12778
+ daysUntilDue: number | null;
12779
+ startDate: number;
12780
+ endedAt: number | null;
12781
+ trialEnd: number | null;
12782
+ trialStart: number | null;
12783
+ } | null;
12784
+ };
12785
+ _output_out: {
12786
+ subscription: {
12787
+ id: string;
12788
+ currency: string;
12789
+ description: string | null;
12790
+ status: "canceled" | "past_due" | "active" | "incomplete" | "incomplete_expired" | "paused" | "trialing" | "unpaid";
12791
+ billingCycleAnchor: number;
12792
+ cancelAt: number | null;
12793
+ cancelAtPeriodEnd: boolean;
12794
+ canceledAt: number | null;
12795
+ created: number;
12796
+ currentPeriodEnd: number;
12797
+ currentPeriodStart: number;
12798
+ daysUntilDue: number | null;
12799
+ startDate: number;
12800
+ endedAt: number | null;
12801
+ trialEnd: number | null;
12802
+ trialStart: number | null;
12803
+ } | null;
12804
+ };
12805
+ }, unknown>;
12806
+ limits: _trpc_server.BuildProcedure<"query", {
12807
+ _config: _trpc_server.RootConfig<{
12808
+ ctx: {};
12809
+ meta: object;
12810
+ errorShape: {
12811
+ message: string;
12812
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
12813
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
12814
+ } | {
12815
+ data: {
12816
+ zodError: zod.typeToFlattenedError<any, string> | null;
12817
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
12818
+ httpStatus: number;
12819
+ path?: string;
12820
+ stack?: string;
12821
+ };
12822
+ message: string;
12823
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
12824
+ };
12825
+ transformer: typeof superjson.default;
12826
+ }>;
12827
+ _meta: object;
12828
+ _ctx_out: {};
12829
+ _input_in: {
12830
+ id: string;
12831
+ appId: string;
12832
+ };
12833
+ _input_out: {
12834
+ id: string;
12835
+ appId: string;
12836
+ };
12837
+ _output_in: {
12838
+ quotas: {
12839
+ perDataSize: bigint | null;
12840
+ totalStorageSize: bigint | null;
12841
+ downloadCount: bigint | null;
12842
+ uploadCount: bigint | null;
12843
+ totalDataCount: bigint | null;
12844
+ bandwith: bigint | null;
12845
+ };
12846
+ appId: string;
12847
+ orgId: string;
12848
+ settings: {
12849
+ perDataSizeLimit: bigint | null;
12850
+ bandwidthLimit: bigint | null;
12851
+ totalStorageSizeLimit: bigint | null;
12852
+ payForUsers: boolean;
12853
+ };
12854
+ metrics: {
12855
+ downloadBandwidth: bigint;
12856
+ downloadCount: bigint;
12857
+ uploadBandwidth: bigint;
12858
+ uploadCount: bigint;
12859
+ };
12860
+ type: "app";
12861
+ } | {
12862
+ quotas: {};
12863
+ appId: string;
12864
+ orgId: string;
12865
+ settings: {
12866
+ perDataSizeLimit: bigint | null;
12867
+ bandwidthLimit: bigint | null;
12868
+ totalStorageSizeLimit: bigint | null;
12869
+ payForUsers: boolean;
12870
+ };
12871
+ metrics: {
12872
+ downloadBandwidth: bigint;
12873
+ downloadCount: bigint;
12874
+ uploadBandwidth: bigint;
12875
+ uploadCount: bigint;
12876
+ };
12877
+ type: "org";
12878
+ userLimitedQuotas: {} | null;
12879
+ };
12880
+ _output_out: {
12881
+ quotas: {
12882
+ perDataSize: bigint | null;
12883
+ totalStorageSize: bigint | null;
12884
+ downloadCount: bigint | null;
12885
+ uploadCount: bigint | null;
12886
+ totalDataCount: bigint | null;
12887
+ bandwith: bigint | null;
12888
+ };
12889
+ appId: string;
12890
+ orgId: string;
12891
+ settings: {
12892
+ perDataSizeLimit: bigint | null;
12893
+ bandwidthLimit: bigint | null;
12894
+ totalStorageSizeLimit: bigint | null;
12895
+ payForUsers: boolean;
12896
+ };
12897
+ metrics: {
12898
+ downloadBandwidth: bigint;
12899
+ downloadCount: bigint;
12900
+ uploadBandwidth: bigint;
12901
+ uploadCount: bigint;
12902
+ };
12903
+ type: "app";
12904
+ } | {
12905
+ quotas: {};
12906
+ appId: string;
12907
+ orgId: string;
12908
+ settings: {
12909
+ perDataSizeLimit: bigint | null;
12910
+ bandwidthLimit: bigint | null;
12911
+ totalStorageSizeLimit: bigint | null;
12912
+ payForUsers: boolean;
12913
+ };
12914
+ metrics: {
12915
+ downloadBandwidth: bigint;
12916
+ downloadCount: bigint;
12917
+ uploadBandwidth: bigint;
12918
+ uploadCount: bigint;
12919
+ };
12920
+ type: "org";
12921
+ userLimitedQuotas: {} | null;
12922
+ };
12923
+ }, unknown>;
12924
+ mine: _trpc_server.BuildProcedure<"query", {
12925
+ _config: _trpc_server.RootConfig<{
12926
+ ctx: {};
12927
+ meta: object;
12928
+ errorShape: {
12929
+ message: string;
12930
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
12931
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
12932
+ } | {
12933
+ data: {
12934
+ zodError: zod.typeToFlattenedError<any, string> | null;
12935
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
12936
+ httpStatus: number;
12937
+ path?: string;
12938
+ stack?: string;
12939
+ };
12940
+ message: string;
12941
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
12942
+ };
12943
+ transformer: typeof superjson.default;
12944
+ }>;
12945
+ _meta: object;
12946
+ _ctx_out: {};
12947
+ _input_in: {};
12948
+ _input_out: {};
12949
+ _output_in: {
12950
+ name: string;
12951
+ id: string;
12952
+ ownerId: string;
12953
+ createdAt: Date;
12954
+ planId: string;
12955
+ stripeSubId: string | null;
12956
+ stripeSubPaidUntil: Date | null;
12957
+ quotasId: string;
12958
+ billingProfileStripeCustomerId: string | null;
12959
+ }[];
12960
+ _output_out: {
12961
+ name: string;
12962
+ id: string;
12963
+ ownerId: string;
12964
+ createdAt: Date;
12965
+ planId: string;
12966
+ stripeSubId: string | null;
12967
+ stripeSubPaidUntil: Date | null;
12968
+ quotasId: string;
12969
+ billingProfileStripeCustomerId: string | null;
12970
+ }[];
12971
+ }, unknown>;
12972
+ removeUser: _trpc_server.BuildProcedure<"mutation", {
12973
+ _config: _trpc_server.RootConfig<{
12974
+ ctx: {};
12975
+ meta: object;
12976
+ errorShape: {
12977
+ message: string;
12978
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
12979
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
12980
+ } | {
12981
+ data: {
12982
+ zodError: zod.typeToFlattenedError<any, string> | null;
12983
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
12984
+ httpStatus: number;
12985
+ path?: string;
12986
+ stack?: string;
12987
+ };
12988
+ message: string;
12989
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
12990
+ };
12991
+ transformer: typeof superjson.default;
12992
+ }>;
12993
+ _meta: object;
12994
+ _ctx_out: {};
12995
+ _input_in: {
12996
+ id: string;
12997
+ userId: string;
12998
+ };
12999
+ _input_out: {
13000
+ id: string;
13001
+ userId: string;
13002
+ };
13003
+ _output_in: {
13004
+ isRemoved: boolean;
13005
+ };
13006
+ _output_out: {
13007
+ isRemoved: boolean;
13008
+ };
13009
+ }, unknown>;
13010
+ transferOwnership: _trpc_server.BuildProcedure<"mutation", {
13011
+ _config: _trpc_server.RootConfig<{
13012
+ ctx: {};
13013
+ meta: object;
13014
+ errorShape: {
13015
+ message: string;
13016
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
13017
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
13018
+ } | {
13019
+ data: {
13020
+ zodError: zod.typeToFlattenedError<any, string> | null;
13021
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
13022
+ httpStatus: number;
13023
+ path?: string;
13024
+ stack?: string;
13025
+ };
13026
+ message: string;
13027
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
13028
+ };
13029
+ transformer: typeof superjson.default;
13030
+ }>;
13031
+ _meta: object;
13032
+ _ctx_out: {};
13033
+ _input_in: {
13034
+ id: string;
13035
+ userId: string;
13036
+ };
13037
+ _input_out: {
13038
+ id: string;
13039
+ userId: string;
13040
+ };
13041
+ _output_in: {
13042
+ name: string;
13043
+ id: string;
13044
+ ownerId: string;
13045
+ createdAt: Date;
13046
+ planId: string;
13047
+ stripeSubId: string | null;
13048
+ stripeSubPaidUntil: Date | null;
13049
+ quotasId: string;
13050
+ billingProfileStripeCustomerId: string | null;
13051
+ };
13052
+ _output_out: {
13053
+ name: string;
13054
+ id: string;
13055
+ ownerId: string;
13056
+ createdAt: Date;
13057
+ planId: string;
13058
+ stripeSubId: string | null;
13059
+ stripeSubPaidUntil: Date | null;
13060
+ quotasId: string;
13061
+ billingProfileStripeCustomerId: string | null;
13062
+ };
13063
+ }, unknown>;
13064
+ updateRole: _trpc_server.BuildProcedure<"mutation", {
13065
+ _config: _trpc_server.RootConfig<{
13066
+ ctx: {};
13067
+ meta: object;
13068
+ errorShape: {
13069
+ message: string;
13070
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
13071
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
13072
+ } | {
13073
+ data: {
13074
+ zodError: zod.typeToFlattenedError<any, string> | null;
13075
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
13076
+ httpStatus: number;
13077
+ path?: string;
13078
+ stack?: string;
13079
+ };
13080
+ message: string;
13081
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
13082
+ };
13083
+ transformer: typeof superjson.default;
13084
+ }>;
13085
+ _meta: object;
13086
+ _ctx_out: {};
13087
+ _input_in: {
13088
+ id: string;
13089
+ role: "user" | "admin";
13090
+ userId: string;
13091
+ };
13092
+ _input_out: {
13093
+ id: string;
13094
+ role: "user" | "admin";
13095
+ userId: string;
13096
+ };
13097
+ _output_in: {
13098
+ createdAt: Date;
13099
+ role: "user" | "admin";
13100
+ userId: string;
13101
+ orgId: string;
13102
+ };
13103
+ _output_out: {
13104
+ createdAt: Date;
13105
+ role: "user" | "admin";
13106
+ userId: string;
13107
+ orgId: string;
13108
+ };
13109
+ }, unknown>;
13110
+ update: _trpc_server.BuildProcedure<"mutation", {
13111
+ _config: _trpc_server.RootConfig<{
13112
+ ctx: {};
13113
+ meta: object;
13114
+ errorShape: {
13115
+ message: string;
13116
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
13117
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
13118
+ } | {
13119
+ data: {
13120
+ zodError: zod.typeToFlattenedError<any, string> | null;
13121
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
13122
+ httpStatus: number;
13123
+ path?: string;
13124
+ stack?: string;
13125
+ };
13126
+ message: string;
13127
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
13128
+ };
13129
+ transformer: typeof superjson.default;
13130
+ }>;
13131
+ _meta: object;
13132
+ _ctx_out: {};
13133
+ _input_in: {
13134
+ name: string;
13135
+ id: string;
13136
+ };
13137
+ _input_out: {
13138
+ name: string;
13139
+ id: string;
13140
+ };
13141
+ _output_in: {
13142
+ name: string;
13143
+ id: string;
13144
+ ownerId: string;
13145
+ createdAt: Date;
13146
+ planId: string;
13147
+ stripeSubId: string | null;
13148
+ stripeSubPaidUntil: Date | null;
13149
+ quotasId: string;
13150
+ billingProfileStripeCustomerId: string | null;
13151
+ };
13152
+ _output_out: {
13153
+ name: string;
13154
+ id: string;
13155
+ ownerId: string;
13156
+ createdAt: Date;
13157
+ planId: string;
13158
+ stripeSubId: string | null;
13159
+ stripeSubPaidUntil: Date | null;
13160
+ quotasId: string;
13161
+ billingProfileStripeCustomerId: string | null;
13162
+ };
13163
+ }, unknown>;
13164
+ }>;
13165
+ plan: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<{
13166
+ ctx: {};
13167
+ meta: object;
13168
+ errorShape: {
13169
+ message: string;
13170
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
13171
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
13172
+ } | {
13173
+ data: {
13174
+ zodError: zod.typeToFlattenedError<any, string> | null;
13175
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
13176
+ httpStatus: number;
13177
+ path?: string;
13178
+ stack?: string;
13179
+ };
13180
+ message: string;
13181
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
13182
+ };
13183
+ transformer: typeof superjson.default;
13184
+ }>, {
13185
+ all: _trpc_server.BuildProcedure<"query", {
13186
+ _config: _trpc_server.RootConfig<{
13187
+ ctx: {};
13188
+ meta: object;
13189
+ errorShape: {
13190
+ message: string;
13191
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
13192
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
13193
+ } | {
13194
+ data: {
13195
+ zodError: zod.typeToFlattenedError<any, string> | null;
13196
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
13197
+ httpStatus: number;
13198
+ path?: string;
13199
+ stack?: string;
13200
+ };
13201
+ message: string;
13202
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
13203
+ };
13204
+ transformer: typeof superjson.default;
13205
+ }>;
13206
+ _meta: object;
13207
+ _ctx_out: {};
13208
+ _input_in: {};
13209
+ _input_out: {};
13210
+ _output_in: ({
13211
+ codes: string[];
13212
+ id: string;
13213
+ quotasId: string;
13214
+ kind: "free" | "basic" | "advanced" | "pro";
13215
+ } & {
13216
+ quotas: {
13217
+ perDataSize: bigint | null;
13218
+ totalStorageSize: bigint | null;
13219
+ downloadBandwidth: bigint | null;
13220
+ downloadCount: bigint | null;
13221
+ uploadBandwidth: bigint | null;
13222
+ uploadCount: bigint | null;
13223
+ totalDataCount: bigint | null;
13224
+ } & {
13225
+ sentMails: {
13226
+ count: bigint | null;
13227
+ perDataSize: bigint | null;
13228
+ totalStorageSize: bigint | null;
13229
+ totalDataCount: bigint | null;
13230
+ totalCount: bigint | null;
13231
+ dataCount: bigint | null;
13232
+ dataSize: bigint | null;
12455
13233
  };
12456
13234
  };
12457
13235
  } & {
@@ -12467,28 +13245,19 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
12467
13245
  kind: "free" | "basic" | "advanced" | "pro";
12468
13246
  } & {
12469
13247
  quotas: {
13248
+ perDataSize: bigint | null;
13249
+ totalStorageSize: bigint | null;
12470
13250
  downloadBandwidth: bigint | null;
12471
13251
  downloadCount: bigint | null;
12472
13252
  uploadBandwidth: bigint | null;
12473
13253
  uploadCount: bigint | null;
12474
13254
  totalDataCount: bigint | null;
12475
- totalStorageSize: bigint | null;
12476
- perDataSize: bigint | null;
12477
13255
  } & {
12478
13256
  sentMails: {
12479
13257
  count: bigint | null;
12480
- totalDataCount: bigint | null;
12481
- totalStorageSize: bigint | null;
12482
13258
  perDataSize: bigint | null;
12483
- totalCount: bigint | null;
12484
- dataCount: bigint | null;
12485
- dataSize: bigint | null;
12486
- };
12487
- receivedMails: {
12488
- count: bigint | null;
12489
- totalDataCount: bigint | null;
12490
13259
  totalStorageSize: bigint | null;
12491
- perDataSize: bigint | null;
13260
+ totalDataCount: bigint | null;
12492
13261
  totalCount: bigint | null;
12493
13262
  dataCount: bigint | null;
12494
13263
  dataSize: bigint | null;
@@ -12790,6 +13559,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
12790
13559
  _input_in: {
12791
13560
  appUrl: string;
12792
13561
  appId?: string | undefined;
13562
+ orgId?: string | undefined;
12793
13563
  scopes?: {
12794
13564
  email: boolean;
12795
13565
  } | undefined;
@@ -12797,6 +13567,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
12797
13567
  _input_out: {
12798
13568
  appUrl: string;
12799
13569
  appId?: string | undefined;
13570
+ orgId?: string | undefined;
12800
13571
  scopes?: {
12801
13572
  email: boolean;
12802
13573
  } | undefined;
@@ -13507,7 +14278,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
13507
14278
  accountRole: _prisma_client.AccountRole;
13508
14279
  userId: string;
13509
14280
  userRole: _prisma_client.UserRole;
13510
- userPlan: _prisma_client.PlanKind;
14281
+ org: {
14282
+ id: string;
14283
+ plan: _prisma_client.OrganizationPlanKind;
14284
+ role: _prisma_client.OrganizationRole;
14285
+ };
13511
14286
  };
13512
14287
  req: {
13513
14288
  headers: Headers;
@@ -13531,10 +14306,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
13531
14306
  currency: string;
13532
14307
  total: number;
13533
14308
  paid: boolean;
14309
+ created: number;
13534
14310
  amountDue: number;
13535
14311
  amountPaid: number;
13536
14312
  amountRemaining: number;
13537
- created: number;
13538
14313
  accountCountry: string | null;
13539
14314
  accountName: string | null;
13540
14315
  applicationFeeAmount: number | null;
@@ -13552,10 +14327,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
13552
14327
  currency: string;
13553
14328
  total: number;
13554
14329
  paid: boolean;
14330
+ created: number;
13555
14331
  amountDue: number;
13556
14332
  amountPaid: number;
13557
14333
  amountRemaining: number;
13558
- created: number;
13559
14334
  accountCountry: string | null;
13560
14335
  accountName: string | null;
13561
14336
  applicationFeeAmount: number | null;
@@ -13613,7 +14388,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
13613
14388
  accountRole: _prisma_client.AccountRole;
13614
14389
  userId: string;
13615
14390
  userRole: _prisma_client.UserRole;
13616
- userPlan: _prisma_client.PlanKind;
14391
+ org: {
14392
+ id: string;
14393
+ plan: _prisma_client.OrganizationPlanKind;
14394
+ role: _prisma_client.OrganizationRole;
14395
+ };
13617
14396
  };
13618
14397
  req: {
13619
14398
  headers: Headers;
@@ -13635,10 +14414,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
13635
14414
  currency: string;
13636
14415
  total: number;
13637
14416
  paid: boolean;
14417
+ created: number;
13638
14418
  amountDue: number;
13639
14419
  amountPaid: number;
13640
14420
  amountRemaining: number;
13641
- created: number;
13642
14421
  accountCountry: string | null;
13643
14422
  accountName: string | null;
13644
14423
  applicationFeeAmount: number | null;
@@ -13656,10 +14435,10 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
13656
14435
  currency: string;
13657
14436
  total: number;
13658
14437
  paid: boolean;
14438
+ created: number;
13659
14439
  amountDue: number;
13660
14440
  amountPaid: number;
13661
14441
  amountRemaining: number;
13662
- created: number;
13663
14442
  accountCountry: string | null;
13664
14443
  accountName: string | null;
13665
14444
  applicationFeeAmount: number | null;
@@ -14238,7 +15017,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
14238
15017
  accountRole: _prisma_client.AccountRole;
14239
15018
  userId: string;
14240
15019
  userRole: _prisma_client.UserRole;
14241
- userPlan: _prisma_client.PlanKind;
15020
+ org: {
15021
+ id: string;
15022
+ plan: _prisma_client.OrganizationPlanKind;
15023
+ role: _prisma_client.OrganizationRole;
15024
+ };
14242
15025
  };
14243
15026
  req: {
14244
15027
  headers: Headers;
@@ -14310,7 +15093,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
14310
15093
  accountRole: _prisma_client.AccountRole;
14311
15094
  userId: string;
14312
15095
  userRole: _prisma_client.UserRole;
14313
- userPlan: _prisma_client.PlanKind;
15096
+ org: {
15097
+ id: string;
15098
+ plan: _prisma_client.OrganizationPlanKind;
15099
+ role: _prisma_client.OrganizationRole;
15100
+ };
14314
15101
  };
14315
15102
  req: {
14316
15103
  headers: Headers;
@@ -14328,6 +15115,18 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
14328
15115
  appId: string;
14329
15116
  };
14330
15117
  _output_in: {
15118
+ name: string;
15119
+ id: string;
15120
+ ownerId: string;
15121
+ blocked: boolean;
15122
+ color: string | null;
15123
+ logo: string | null;
15124
+ createdAt: Date;
15125
+ updatedAt: Date;
15126
+ origin: string[];
15127
+ planId: string | null;
15128
+ lastMetricsReset: Date;
15129
+ quotasId: string;
14331
15130
  plan: {
14332
15131
  name: string;
14333
15132
  id: string;
@@ -14335,8 +15134,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
14335
15134
  canHaveDatabase?: boolean | undefined;
14336
15135
  } & {
14337
15136
  quotas: {
14338
- totalStorageSize: bigint | null;
14339
- perDataSize: bigint | null;
14340
15137
  devs: bigint | null;
14341
15138
  devsBase: bigint | null;
14342
15139
  devsUnit: bigint | null;
@@ -14345,6 +15142,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
14345
15142
  usersBase: bigint | null;
14346
15143
  usersUnit: bigint | null;
14347
15144
  usersPrice: number | null;
15145
+ perDataSize: bigint | null;
14348
15146
  perDataSizeBase: bigint | null;
14349
15147
  perDataSizeUnit: bigint | null;
14350
15148
  perDataSizePrice: number | null;
@@ -14352,36 +15150,24 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
14352
15150
  bandwidthBase: bigint | null;
14353
15151
  bandwidthUnit: bigint | null;
14354
15152
  bandwidthPrice: number | null;
15153
+ totalStorageSize: bigint | null;
14355
15154
  totalStorageSizeBase: bigint | null;
14356
15155
  totalStorageSizeUnit: bigint | null;
14357
15156
  totalStorageSizePrice: number | null;
14358
15157
  baseQuotasId: string;
14359
15158
  } & {
14360
15159
  baseQuotas: {
15160
+ perDataSize: bigint | null;
15161
+ totalStorageSize: bigint | null;
14361
15162
  downloadBandwidth: bigint | null;
14362
15163
  downloadCount: bigint | null;
14363
15164
  uploadBandwidth: bigint | null;
14364
15165
  uploadCount: bigint | null;
14365
15166
  totalDataCount: bigint | null;
14366
- totalStorageSize: bigint | null;
14367
- perDataSize: bigint | null;
14368
- receivedMailsId: string;
14369
15167
  sentMailsId: string;
14370
15168
  };
14371
15169
  };
14372
15170
  };
14373
- name: string;
14374
- id: string;
14375
- ownerId: string;
14376
- blocked: boolean;
14377
- color: string | null;
14378
- logo: string | null;
14379
- createdAt: Date;
14380
- updatedAt: Date;
14381
- origin: string[];
14382
- planId: string | null;
14383
- lastMetricsReset: Date;
14384
- quotasId: string;
14385
15171
  owner: {
14386
15172
  user: {
14387
15173
  id: string;
@@ -14399,6 +15185,18 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
14399
15185
  usersCount: number;
14400
15186
  };
14401
15187
  _output_out: {
15188
+ name: string;
15189
+ id: string;
15190
+ ownerId: string;
15191
+ blocked: boolean;
15192
+ color: string | null;
15193
+ logo: string | null;
15194
+ createdAt: Date;
15195
+ updatedAt: Date;
15196
+ origin: string[];
15197
+ planId: string | null;
15198
+ lastMetricsReset: Date;
15199
+ quotasId: string;
14402
15200
  plan: {
14403
15201
  name: string;
14404
15202
  id: string;
@@ -14406,8 +15204,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
14406
15204
  canHaveDatabase: boolean;
14407
15205
  } & {
14408
15206
  quotas: {
14409
- totalStorageSize: bigint | null;
14410
- perDataSize: bigint | null;
14411
15207
  devs: bigint | null;
14412
15208
  devsBase: bigint | null;
14413
15209
  devsUnit: bigint | null;
@@ -14416,6 +15212,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
14416
15212
  usersBase: bigint | null;
14417
15213
  usersUnit: bigint | null;
14418
15214
  usersPrice: number | null;
15215
+ perDataSize: bigint | null;
14419
15216
  perDataSizeBase: bigint | null;
14420
15217
  perDataSizeUnit: bigint | null;
14421
15218
  perDataSizePrice: number | null;
@@ -14423,36 +15220,24 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
14423
15220
  bandwidthBase: bigint | null;
14424
15221
  bandwidthUnit: bigint | null;
14425
15222
  bandwidthPrice: number | null;
15223
+ totalStorageSize: bigint | null;
14426
15224
  totalStorageSizeBase: bigint | null;
14427
15225
  totalStorageSizeUnit: bigint | null;
14428
15226
  totalStorageSizePrice: number | null;
14429
15227
  baseQuotasId: string;
14430
15228
  } & {
14431
15229
  baseQuotas: {
15230
+ perDataSize: bigint | null;
15231
+ totalStorageSize: bigint | null;
14432
15232
  downloadBandwidth: bigint | null;
14433
15233
  downloadCount: bigint | null;
14434
15234
  uploadBandwidth: bigint | null;
14435
15235
  uploadCount: bigint | null;
14436
15236
  totalDataCount: bigint | null;
14437
- totalStorageSize: bigint | null;
14438
- perDataSize: bigint | null;
14439
- receivedMailsId: string;
14440
15237
  sentMailsId: string;
14441
15238
  };
14442
15239
  };
14443
15240
  };
14444
- name: string;
14445
- id: string;
14446
- ownerId: string;
14447
- blocked: boolean;
14448
- color: string | null;
14449
- logo: string | null;
14450
- createdAt: Date;
14451
- updatedAt: Date;
14452
- origin: string[];
14453
- planId: string | null;
14454
- lastMetricsReset: Date;
14455
- quotasId: string;
14456
15241
  owner: {
14457
15242
  user: {
14458
15243
  id: string;
@@ -14500,6 +15285,18 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
14500
15285
  sortBy: "updatedAt" | "users" | "updatedAt_desc" | "updatedAt_asc" | "users_desc" | "users_asc";
14501
15286
  };
14502
15287
  _output_in: {
15288
+ name: string;
15289
+ id: string;
15290
+ ownerId: string;
15291
+ blocked: boolean;
15292
+ color: string | null;
15293
+ logo: string | null;
15294
+ createdAt: Date;
15295
+ updatedAt: Date;
15296
+ origin: string[];
15297
+ planId: string | null;
15298
+ lastMetricsReset: Date;
15299
+ quotasId: string;
14503
15300
  plan: {
14504
15301
  name: string;
14505
15302
  id: string;
@@ -14507,8 +15304,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
14507
15304
  canHaveDatabase?: boolean | undefined;
14508
15305
  } & {
14509
15306
  quotas: {
14510
- totalStorageSize: bigint | null;
14511
- perDataSize: bigint | null;
14512
15307
  devs: bigint | null;
14513
15308
  devsBase: bigint | null;
14514
15309
  devsUnit: bigint | null;
@@ -14517,6 +15312,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
14517
15312
  usersBase: bigint | null;
14518
15313
  usersUnit: bigint | null;
14519
15314
  usersPrice: number | null;
15315
+ perDataSize: bigint | null;
14520
15316
  perDataSizeBase: bigint | null;
14521
15317
  perDataSizeUnit: bigint | null;
14522
15318
  perDataSizePrice: number | null;
@@ -14524,36 +15320,24 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
14524
15320
  bandwidthBase: bigint | null;
14525
15321
  bandwidthUnit: bigint | null;
14526
15322
  bandwidthPrice: number | null;
15323
+ totalStorageSize: bigint | null;
14527
15324
  totalStorageSizeBase: bigint | null;
14528
15325
  totalStorageSizeUnit: bigint | null;
14529
15326
  totalStorageSizePrice: number | null;
14530
15327
  baseQuotasId: string;
14531
15328
  } & {
14532
15329
  baseQuotas: {
15330
+ perDataSize: bigint | null;
15331
+ totalStorageSize: bigint | null;
14533
15332
  downloadBandwidth: bigint | null;
14534
15333
  downloadCount: bigint | null;
14535
15334
  uploadBandwidth: bigint | null;
14536
15335
  uploadCount: bigint | null;
14537
15336
  totalDataCount: bigint | null;
14538
- totalStorageSize: bigint | null;
14539
- perDataSize: bigint | null;
14540
- receivedMailsId: string;
14541
15337
  sentMailsId: string;
14542
15338
  };
14543
15339
  };
14544
15340
  };
14545
- name: string;
14546
- id: string;
14547
- ownerId: string;
14548
- blocked: boolean;
14549
- color: string | null;
14550
- logo: string | null;
14551
- createdAt: Date;
14552
- updatedAt: Date;
14553
- origin: string[];
14554
- planId: string | null;
14555
- lastMetricsReset: Date;
14556
- quotasId: string;
14557
15341
  owner: {
14558
15342
  user: {
14559
15343
  id: string;
@@ -14571,6 +15355,18 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
14571
15355
  usersCount: number;
14572
15356
  }[];
14573
15357
  _output_out: {
15358
+ name: string;
15359
+ id: string;
15360
+ ownerId: string;
15361
+ blocked: boolean;
15362
+ color: string | null;
15363
+ logo: string | null;
15364
+ createdAt: Date;
15365
+ updatedAt: Date;
15366
+ origin: string[];
15367
+ planId: string | null;
15368
+ lastMetricsReset: Date;
15369
+ quotasId: string;
14574
15370
  plan: {
14575
15371
  name: string;
14576
15372
  id: string;
@@ -14578,8 +15374,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
14578
15374
  canHaveDatabase: boolean;
14579
15375
  } & {
14580
15376
  quotas: {
14581
- totalStorageSize: bigint | null;
14582
- perDataSize: bigint | null;
14583
15377
  devs: bigint | null;
14584
15378
  devsBase: bigint | null;
14585
15379
  devsUnit: bigint | null;
@@ -14588,6 +15382,7 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
14588
15382
  usersBase: bigint | null;
14589
15383
  usersUnit: bigint | null;
14590
15384
  usersPrice: number | null;
15385
+ perDataSize: bigint | null;
14591
15386
  perDataSizeBase: bigint | null;
14592
15387
  perDataSizeUnit: bigint | null;
14593
15388
  perDataSizePrice: number | null;
@@ -14595,36 +15390,24 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
14595
15390
  bandwidthBase: bigint | null;
14596
15391
  bandwidthUnit: bigint | null;
14597
15392
  bandwidthPrice: number | null;
15393
+ totalStorageSize: bigint | null;
14598
15394
  totalStorageSizeBase: bigint | null;
14599
15395
  totalStorageSizeUnit: bigint | null;
14600
15396
  totalStorageSizePrice: number | null;
14601
15397
  baseQuotasId: string;
14602
15398
  } & {
14603
15399
  baseQuotas: {
15400
+ perDataSize: bigint | null;
15401
+ totalStorageSize: bigint | null;
14604
15402
  downloadBandwidth: bigint | null;
14605
15403
  downloadCount: bigint | null;
14606
15404
  uploadBandwidth: bigint | null;
14607
15405
  uploadCount: bigint | null;
14608
15406
  totalDataCount: bigint | null;
14609
- totalStorageSize: bigint | null;
14610
- perDataSize: bigint | null;
14611
- receivedMailsId: string;
14612
15407
  sentMailsId: string;
14613
15408
  };
14614
15409
  };
14615
15410
  };
14616
- name: string;
14617
- id: string;
14618
- ownerId: string;
14619
- blocked: boolean;
14620
- color: string | null;
14621
- logo: string | null;
14622
- createdAt: Date;
14623
- updatedAt: Date;
14624
- origin: string[];
14625
- planId: string | null;
14626
- lastMetricsReset: Date;
14627
- quotasId: string;
14628
15411
  owner: {
14629
15412
  user: {
14630
15413
  id: string;
@@ -14736,7 +15519,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
14736
15519
  accountRole: _prisma_client.AccountRole;
14737
15520
  userId: string;
14738
15521
  userRole: _prisma_client.UserRole;
14739
- userPlan: _prisma_client.PlanKind;
15522
+ org: {
15523
+ id: string;
15524
+ plan: _prisma_client.OrganizationPlanKind;
15525
+ role: _prisma_client.OrganizationRole;
15526
+ };
14740
15527
  };
14741
15528
  req: {
14742
15529
  headers: Headers;
@@ -14804,7 +15591,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
14804
15591
  accountRole: _prisma_client.AccountRole;
14805
15592
  userId: string;
14806
15593
  userRole: _prisma_client.UserRole;
14807
- userPlan: _prisma_client.PlanKind;
15594
+ org: {
15595
+ id: string;
15596
+ plan: _prisma_client.OrganizationPlanKind;
15597
+ role: _prisma_client.OrganizationRole;
15598
+ };
14808
15599
  };
14809
15600
  req: {
14810
15601
  headers: Headers;
@@ -14874,7 +15665,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
14874
15665
  accountRole: _prisma_client.AccountRole;
14875
15666
  userId: string;
14876
15667
  userRole: _prisma_client.UserRole;
14877
- userPlan: _prisma_client.PlanKind;
15668
+ org: {
15669
+ id: string;
15670
+ plan: _prisma_client.OrganizationPlanKind;
15671
+ role: _prisma_client.OrganizationRole;
15672
+ };
14878
15673
  };
14879
15674
  req: {
14880
15675
  headers: Headers;
@@ -14986,7 +15781,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
14986
15781
  accountRole: _prisma_client.AccountRole;
14987
15782
  userId: string;
14988
15783
  userRole: _prisma_client.UserRole;
14989
- userPlan: _prisma_client.PlanKind;
15784
+ org: {
15785
+ id: string;
15786
+ plan: _prisma_client.OrganizationPlanKind;
15787
+ role: _prisma_client.OrganizationRole;
15788
+ };
14990
15789
  };
14991
15790
  req: {
14992
15791
  headers: Headers;
@@ -15138,7 +15937,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
15138
15937
  accountRole: _prisma_client.AccountRole;
15139
15938
  userId: string;
15140
15939
  userRole: _prisma_client.UserRole;
15141
- userPlan: _prisma_client.PlanKind;
15940
+ org: {
15941
+ id: string;
15942
+ plan: _prisma_client.OrganizationPlanKind;
15943
+ role: _prisma_client.OrganizationRole;
15944
+ };
15142
15945
  };
15143
15946
  req: {
15144
15947
  headers: Headers;
@@ -15208,7 +16011,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
15208
16011
  accountRole: _prisma_client.AccountRole;
15209
16012
  userId: string;
15210
16013
  userRole: _prisma_client.UserRole;
15211
- userPlan: _prisma_client.PlanKind;
16014
+ org: {
16015
+ id: string;
16016
+ plan: _prisma_client.OrganizationPlanKind;
16017
+ role: _prisma_client.OrganizationRole;
16018
+ };
15212
16019
  };
15213
16020
  req: {
15214
16021
  headers: Headers;
@@ -15282,7 +16089,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
15282
16089
  accountRole: _prisma_client.AccountRole;
15283
16090
  userId: string;
15284
16091
  userRole: _prisma_client.UserRole;
15285
- userPlan: _prisma_client.PlanKind;
16092
+ org: {
16093
+ id: string;
16094
+ plan: _prisma_client.OrganizationPlanKind;
16095
+ role: _prisma_client.OrganizationRole;
16096
+ };
15286
16097
  };
15287
16098
  req: {
15288
16099
  headers: Headers;
@@ -15347,7 +16158,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
15347
16158
  accountRole: _prisma_client.AccountRole;
15348
16159
  userId: string;
15349
16160
  userRole: _prisma_client.UserRole;
15350
- userPlan: _prisma_client.PlanKind;
16161
+ org: {
16162
+ id: string;
16163
+ plan: _prisma_client.OrganizationPlanKind;
16164
+ role: _prisma_client.OrganizationRole;
16165
+ };
15351
16166
  };
15352
16167
  req: {
15353
16168
  headers: Headers;
@@ -15417,7 +16232,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
15417
16232
  accountRole: _prisma_client.AccountRole;
15418
16233
  userId: string;
15419
16234
  userRole: _prisma_client.UserRole;
15420
- userPlan: _prisma_client.PlanKind;
16235
+ org: {
16236
+ id: string;
16237
+ plan: _prisma_client.OrganizationPlanKind;
16238
+ role: _prisma_client.OrganizationRole;
16239
+ };
15421
16240
  };
15422
16241
  req: {
15423
16242
  headers: Headers;
@@ -15736,8 +16555,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
15736
16555
  _output_in: {
15737
16556
  id: string;
15738
16557
  createdAt: Date;
15739
- accountId: string;
15740
16558
  userId: string;
16559
+ orgId: string;
16560
+ accountId: string;
15741
16561
  lastActivity: Date | null;
15742
16562
  userAgent: string | null;
15743
16563
  ip: string | null;
@@ -15746,8 +16566,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
15746
16566
  appSessions: ({
15747
16567
  id: string;
15748
16568
  createdAt: Date;
15749
- appId: string;
15750
- userId: string;
16569
+ userAppOrgUserId: string;
16570
+ userAppOrgAppId: string;
16571
+ userAppOrgOrgId: string;
15751
16572
  userSessionId: string;
15752
16573
  lastActivity: Date | null;
15753
16574
  userAgent: string | null;
@@ -15763,8 +16584,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
15763
16584
  _output_out: {
15764
16585
  id: string;
15765
16586
  createdAt: Date;
15766
- accountId: string;
15767
16587
  userId: string;
16588
+ orgId: string;
16589
+ accountId: string;
15768
16590
  lastActivity: Date | null;
15769
16591
  userAgent: string | null;
15770
16592
  ip: string | null;
@@ -15773,8 +16595,9 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
15773
16595
  appSessions: ({
15774
16596
  id: string;
15775
16597
  createdAt: Date;
15776
- appId: string;
15777
- userId: string;
16598
+ userAppOrgUserId: string;
16599
+ userAppOrgAppId: string;
16600
+ userAppOrgOrgId: string;
15778
16601
  userSessionId: string;
15779
16602
  lastActivity: Date | null;
15780
16603
  userAgent: string | null;
@@ -15824,144 +16647,6 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
15824
16647
  isUpdated: boolean;
15825
16648
  };
15826
16649
  }, unknown>;
15827
- createSubscription: _trpc_server.BuildProcedure<"mutation", {
15828
- _config: _trpc_server.RootConfig<{
15829
- ctx: {};
15830
- meta: object;
15831
- errorShape: {
15832
- message: string;
15833
- code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
15834
- data: _trpc_server_dist_error_formatter.DefaultErrorData;
15835
- } | {
15836
- data: {
15837
- zodError: zod.typeToFlattenedError<any, string> | null;
15838
- code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
15839
- httpStatus: number;
15840
- path?: string;
15841
- stack?: string;
15842
- };
15843
- message: string;
15844
- code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
15845
- };
15846
- transformer: typeof superjson.default;
15847
- }>;
15848
- _meta: object;
15849
- _ctx_out: {};
15850
- _input_in: {
15851
- planCode: "user_basic_month" | "user_basic_year" | "user_advanced_month" | "user_advanced_year" | "user_pro_month" | "user_pro_year";
15852
- };
15853
- _input_out: {
15854
- planCode: "user_basic_month" | "user_basic_year" | "user_advanced_month" | "user_advanced_year" | "user_pro_month" | "user_pro_year";
15855
- };
15856
- _output_in: {
15857
- url: string | null;
15858
- };
15859
- _output_out: {
15860
- url: string | null;
15861
- };
15862
- }, unknown>;
15863
- cancelSubscription: _trpc_server.BuildProcedure<"mutation", {
15864
- _config: _trpc_server.RootConfig<{
15865
- ctx: {};
15866
- meta: object;
15867
- errorShape: {
15868
- message: string;
15869
- code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
15870
- data: _trpc_server_dist_error_formatter.DefaultErrorData;
15871
- } | {
15872
- data: {
15873
- zodError: zod.typeToFlattenedError<any, string> | null;
15874
- code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
15875
- httpStatus: number;
15876
- path?: string;
15877
- stack?: string;
15878
- };
15879
- message: string;
15880
- code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
15881
- };
15882
- transformer: typeof superjson.default;
15883
- }>;
15884
- _meta: object;
15885
- _ctx_out: {};
15886
- _input_in: {
15887
- prorate: boolean;
15888
- };
15889
- _input_out: {
15890
- prorate: boolean;
15891
- };
15892
- _output_in: {
15893
- isCancelled: boolean;
15894
- };
15895
- _output_out: {
15896
- isCancelled: boolean;
15897
- };
15898
- }, unknown>;
15899
- getSubscription: _trpc_server.BuildProcedure<"query", {
15900
- _config: _trpc_server.RootConfig<{
15901
- ctx: {};
15902
- meta: object;
15903
- errorShape: {
15904
- message: string;
15905
- code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
15906
- data: _trpc_server_dist_error_formatter.DefaultErrorData;
15907
- } | {
15908
- data: {
15909
- zodError: zod.typeToFlattenedError<any, string> | null;
15910
- code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
15911
- httpStatus: number;
15912
- path?: string;
15913
- stack?: string;
15914
- };
15915
- message: string;
15916
- code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
15917
- };
15918
- transformer: typeof superjson.default;
15919
- }>;
15920
- _meta: object;
15921
- _ctx_out: {};
15922
- _input_in: {} | undefined;
15923
- _input_out: {} | undefined;
15924
- _output_in: {
15925
- subscription: {
15926
- id: string;
15927
- currency: string;
15928
- description: string | null;
15929
- status: "canceled" | "past_due" | "active" | "incomplete" | "incomplete_expired" | "paused" | "trialing" | "unpaid";
15930
- created: number;
15931
- billingCycleAnchor: number;
15932
- cancelAt: number | null;
15933
- cancelAtPeriodEnd: boolean;
15934
- canceledAt: number | null;
15935
- currentPeriodEnd: number;
15936
- currentPeriodStart: number;
15937
- daysUntilDue: number | null;
15938
- startDate: number;
15939
- endedAt: number | null;
15940
- trialEnd: number | null;
15941
- trialStart: number | null;
15942
- } | null;
15943
- };
15944
- _output_out: {
15945
- subscription: {
15946
- id: string;
15947
- currency: string;
15948
- description: string | null;
15949
- status: "canceled" | "past_due" | "active" | "incomplete" | "incomplete_expired" | "paused" | "trialing" | "unpaid";
15950
- created: number;
15951
- billingCycleAnchor: number;
15952
- cancelAt: number | null;
15953
- cancelAtPeriodEnd: boolean;
15954
- canceledAt: number | null;
15955
- currentPeriodEnd: number;
15956
- currentPeriodStart: number;
15957
- daysUntilDue: number | null;
15958
- startDate: number;
15959
- endedAt: number | null;
15960
- trialEnd: number | null;
15961
- trialStart: number | null;
15962
- } | null;
15963
- };
15964
- }, unknown>;
15965
16650
  updateProfile: _trpc_server.BuildProcedure<"mutation", {
15966
16651
  _config: _trpc_server.RootConfig<{
15967
16652
  ctx: {};