@secrecy/lib 1.63.0-feat-orgs.6 → 1.63.0

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.
@@ -117,32 +117,24 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
117
117
  _input_in: {};
118
118
  _input_out: {};
119
119
  _output_in: {
120
- users: ({
120
+ users: {
121
121
  id: string;
122
122
  lastname: string;
123
123
  firstname: string;
124
124
  avatar: string | null;
125
125
  isSearchable: boolean;
126
- } & {
127
- orgs: {
128
- name: string;
129
- id: string;
130
- }[];
131
- })[];
126
+ }[];
127
+ currentUserId: string;
132
128
  };
133
129
  _output_out: {
134
- users: ({
130
+ users: {
135
131
  id: string;
136
132
  lastname: string;
137
133
  firstname: string;
138
134
  avatar: string | null;
139
135
  isSearchable: boolean;
140
- } & {
141
- orgs: {
142
- name: string;
143
- id: string;
144
- }[];
145
- })[];
136
+ }[];
137
+ currentUserId: string;
146
138
  };
147
139
  }, unknown>>;
148
140
  };
@@ -184,6 +176,14 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
184
176
  maxCount: bigint | null;
185
177
  maxDataCount: bigint | null;
186
178
  };
179
+ received: {
180
+ count: bigint;
181
+ dataCount: bigint;
182
+ dataSize: bigint;
183
+ maxDataSize: bigint | null;
184
+ maxCount: bigint | null;
185
+ maxDataCount: bigint | null;
186
+ };
187
187
  };
188
188
  cloud: {
189
189
  count: bigint;
@@ -210,6 +210,14 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
210
210
  maxCount: bigint | null;
211
211
  maxDataCount: bigint | null;
212
212
  };
213
+ received: {
214
+ count: bigint;
215
+ dataCount: bigint;
216
+ dataSize: bigint;
217
+ maxDataSize: bigint | null;
218
+ maxCount: bigint | null;
219
+ maxDataCount: bigint | null;
220
+ };
213
221
  };
214
222
  cloud: {
215
223
  count: bigint;
@@ -273,12 +281,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
273
281
  accountRole: _prisma_client.AccountRole;
274
282
  userId: string;
275
283
  userRole: _prisma_client.UserRole;
276
- org: {
277
- id: string;
278
- name: string;
279
- plan: _prisma_client.OrganizationPlanKind;
280
- role: _prisma_client.OrganizationRole;
281
- };
284
+ userPlan: _prisma_client.PlanKind;
282
285
  };
283
286
  req: {
284
287
  headers: Headers;
@@ -358,12 +361,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
358
361
  accountRole: _prisma_client.AccountRole;
359
362
  userId: string;
360
363
  userRole: _prisma_client.UserRole;
361
- org: {
362
- id: string;
363
- name: string;
364
- plan: _prisma_client.OrganizationPlanKind;
365
- role: _prisma_client.OrganizationRole;
366
- };
364
+ userPlan: _prisma_client.PlanKind;
367
365
  };
368
366
  req: {
369
367
  headers: Headers;
@@ -382,6 +380,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
382
380
  } | undefined;
383
381
  _output_in: {
384
382
  id: string;
383
+ totalStorageSize: bigint | null;
384
+ perDataSize: bigint | null;
385
385
  devs: bigint | null;
386
386
  devsBase: bigint | null;
387
387
  devsUnit: bigint | null;
@@ -390,7 +390,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
390
390
  usersBase: bigint | null;
391
391
  usersUnit: bigint | null;
392
392
  usersPrice: number | null;
393
- perDataSize: bigint | null;
394
393
  perDataSizeBase: bigint | null;
395
394
  perDataSizeUnit: bigint | null;
396
395
  perDataSizePrice: number | null;
@@ -398,7 +397,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
398
397
  bandwidthBase: bigint | null;
399
398
  bandwidthUnit: bigint | null;
400
399
  bandwidthPrice: number | null;
401
- totalStorageSize: bigint | null;
402
400
  totalStorageSizeBase: bigint | null;
403
401
  totalStorageSizeUnit: bigint | null;
404
402
  totalStorageSizePrice: number | null;
@@ -406,6 +404,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
406
404
  };
407
405
  _output_out: {
408
406
  id: string;
407
+ totalStorageSize: bigint | null;
408
+ perDataSize: bigint | null;
409
409
  devs: bigint | null;
410
410
  devsBase: bigint | null;
411
411
  devsUnit: bigint | null;
@@ -414,7 +414,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
414
414
  usersBase: bigint | null;
415
415
  usersUnit: bigint | null;
416
416
  usersPrice: number | null;
417
- perDataSize: bigint | null;
418
417
  perDataSizeBase: bigint | null;
419
418
  perDataSizeUnit: bigint | null;
420
419
  perDataSizePrice: number | null;
@@ -422,7 +421,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
422
421
  bandwidthBase: bigint | null;
423
422
  bandwidthUnit: bigint | null;
424
423
  bandwidthPrice: number | null;
425
- totalStorageSize: bigint | null;
426
424
  totalStorageSizeBase: bigint | null;
427
425
  totalStorageSizeUnit: bigint | null;
428
426
  totalStorageSizePrice: number | null;
@@ -561,12 +559,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
561
559
  accountRole: _prisma_client.AccountRole;
562
560
  userId: string;
563
561
  userRole: _prisma_client.UserRole;
564
- org: {
565
- id: string;
566
- name: string;
567
- plan: _prisma_client.OrganizationPlanKind;
568
- role: _prisma_client.OrganizationRole;
569
- };
562
+ userPlan: _prisma_client.PlanKind;
570
563
  };
571
564
  req: {
572
565
  headers: Headers;
@@ -590,6 +583,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
590
583
  canHaveDatabase?: boolean | undefined;
591
584
  } & {
592
585
  quotas: {
586
+ totalStorageSize: bigint | null;
587
+ perDataSize: bigint | null;
593
588
  devs: bigint | null;
594
589
  devsBase: bigint | null;
595
590
  devsUnit: bigint | null;
@@ -598,7 +593,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
598
593
  usersBase: bigint | null;
599
594
  usersUnit: bigint | null;
600
595
  usersPrice: number | null;
601
- perDataSize: bigint | null;
602
596
  perDataSizeBase: bigint | null;
603
597
  perDataSizeUnit: bigint | null;
604
598
  perDataSizePrice: number | null;
@@ -606,20 +600,20 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
606
600
  bandwidthBase: bigint | null;
607
601
  bandwidthUnit: bigint | null;
608
602
  bandwidthPrice: number | null;
609
- totalStorageSize: bigint | null;
610
603
  totalStorageSizeBase: bigint | null;
611
604
  totalStorageSizeUnit: bigint | null;
612
605
  totalStorageSizePrice: number | null;
613
606
  baseQuotasId: string;
614
607
  } & {
615
608
  baseQuotas: {
616
- perDataSize: bigint | null;
617
- totalStorageSize: bigint | null;
618
609
  downloadBandwidth: bigint | null;
619
610
  downloadCount: bigint | null;
620
611
  uploadBandwidth: bigint | null;
621
612
  uploadCount: bigint | null;
622
613
  totalDataCount: bigint | null;
614
+ totalStorageSize: bigint | null;
615
+ perDataSize: bigint | null;
616
+ receivedMailsId: string;
623
617
  sentMailsId: string;
624
618
  };
625
619
  };
@@ -635,6 +629,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
635
629
  canHaveDatabase: boolean;
636
630
  } & {
637
631
  quotas: {
632
+ totalStorageSize: bigint | null;
633
+ perDataSize: bigint | null;
638
634
  devs: bigint | null;
639
635
  devsBase: bigint | null;
640
636
  devsUnit: bigint | null;
@@ -643,7 +639,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
643
639
  usersBase: bigint | null;
644
640
  usersUnit: bigint | null;
645
641
  usersPrice: number | null;
646
- perDataSize: bigint | null;
647
642
  perDataSizeBase: bigint | null;
648
643
  perDataSizeUnit: bigint | null;
649
644
  perDataSizePrice: number | null;
@@ -651,20 +646,20 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
651
646
  bandwidthBase: bigint | null;
652
647
  bandwidthUnit: bigint | null;
653
648
  bandwidthPrice: number | null;
654
- totalStorageSize: bigint | null;
655
649
  totalStorageSizeBase: bigint | null;
656
650
  totalStorageSizeUnit: bigint | null;
657
651
  totalStorageSizePrice: number | null;
658
652
  baseQuotasId: string;
659
653
  } & {
660
654
  baseQuotas: {
661
- perDataSize: bigint | null;
662
- totalStorageSize: bigint | null;
663
655
  downloadBandwidth: bigint | null;
664
656
  downloadCount: bigint | null;
665
657
  uploadBandwidth: bigint | null;
666
658
  uploadCount: bigint | null;
667
659
  totalDataCount: bigint | null;
660
+ totalStorageSize: bigint | null;
661
+ perDataSize: bigint | null;
662
+ receivedMailsId: string;
668
663
  sentMailsId: string;
669
664
  };
670
665
  };
@@ -914,12 +909,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
914
909
  accountRole: _prisma_client.AccountRole;
915
910
  userId: string;
916
911
  userRole: _prisma_client.UserRole;
917
- org: {
918
- id: string;
919
- name: string;
920
- plan: _prisma_client.OrganizationPlanKind;
921
- role: _prisma_client.OrganizationRole;
922
- };
912
+ userPlan: _prisma_client.PlanKind;
923
913
  };
924
914
  req: {
925
915
  headers: Headers;
@@ -1272,26 +1262,34 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
1272
1262
  kind: "free" | "basic" | "advanced" | "pro";
1273
1263
  };
1274
1264
  _output_in: {
1275
- name: string;
1276
1265
  id: string;
1277
- ownerId: string;
1266
+ lastname: string;
1267
+ firstname: string;
1268
+ avatar: string | null;
1269
+ isSearchable: boolean;
1270
+ } & {
1278
1271
  createdAt: Date;
1279
- planId: string;
1280
- stripeSubId: string | null;
1281
- stripeSubPaidUntil: Date | null;
1282
- quotasId: string;
1283
- billingProfileStripeCustomerId: string | null;
1272
+ deletedAt: Date | null;
1273
+ lastLogin: Date | null;
1274
+ } & {
1275
+ plan: {
1276
+ kind: "free" | "basic" | "advanced" | "pro";
1277
+ };
1284
1278
  };
1285
1279
  _output_out: {
1286
- name: string;
1287
1280
  id: string;
1288
- ownerId: string;
1281
+ lastname: string;
1282
+ firstname: string;
1283
+ avatar: string | null;
1284
+ isSearchable: boolean;
1285
+ } & {
1289
1286
  createdAt: Date;
1290
- planId: string;
1291
- stripeSubId: string | null;
1292
- stripeSubPaidUntil: Date | null;
1293
- quotasId: string;
1294
- billingProfileStripeCustomerId: string | null;
1287
+ deletedAt: Date | null;
1288
+ lastLogin: Date | null;
1289
+ } & {
1290
+ plan: {
1291
+ kind: "free" | "basic" | "advanced" | "pro";
1292
+ };
1295
1293
  };
1296
1294
  }, unknown>>;
1297
1295
  };
@@ -1523,20 +1521,24 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
1523
1521
  to: string;
1524
1522
  };
1525
1523
  _output_in: {
1526
- session: string;
1527
- masterKeySalt: string;
1528
- context: {
1529
- userId: string;
1530
- orgId: string;
1531
- };
1524
+ users: {
1525
+ id: string;
1526
+ lastname: string;
1527
+ firstname: string;
1528
+ avatar: string | null;
1529
+ isSearchable: boolean;
1530
+ }[];
1531
+ loginToken: string;
1532
1532
  };
1533
1533
  _output_out: {
1534
- session: string;
1535
- masterKeySalt: string;
1536
- context: {
1537
- userId: string;
1538
- orgId: string;
1539
- };
1534
+ users: {
1535
+ id: string;
1536
+ lastname: string;
1537
+ firstname: string;
1538
+ avatar: string | null;
1539
+ isSearchable: boolean;
1540
+ }[];
1541
+ loginToken: string;
1540
1542
  };
1541
1543
  }, unknown>>;
1542
1544
  };
@@ -1745,20 +1747,14 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
1745
1747
  godFather?: string | undefined;
1746
1748
  };
1747
1749
  _output_in: {
1750
+ userId: string;
1748
1751
  sessionId: string;
1749
- context: {
1750
- userId: string;
1751
- orgId: string;
1752
- };
1753
1752
  } & {
1754
1753
  masterKeySalt: string;
1755
1754
  };
1756
1755
  _output_out: {
1756
+ userId: string;
1757
1757
  sessionId: string;
1758
- context: {
1759
- userId: string;
1760
- orgId: string;
1761
- };
1762
1758
  } & {
1763
1759
  masterKeySalt: string;
1764
1760
  };
@@ -1808,6 +1804,48 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
1808
1804
  };
1809
1805
  }, unknown>>;
1810
1806
  };
1807
+ loginUser: {
1808
+ mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
1809
+ _config: import("@trpc/server").RootConfig<{
1810
+ ctx: {};
1811
+ meta: object;
1812
+ errorShape: {
1813
+ message: string;
1814
+ code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
1815
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
1816
+ } | {
1817
+ data: {
1818
+ zodError: import("zod").typeToFlattenedError<any, string> | null;
1819
+ code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
1820
+ httpStatus: number;
1821
+ path?: string;
1822
+ stack?: string;
1823
+ };
1824
+ message: string;
1825
+ code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
1826
+ };
1827
+ transformer: typeof superjson;
1828
+ }>;
1829
+ _meta: object;
1830
+ _ctx_out: {};
1831
+ _input_in: {
1832
+ userId: string;
1833
+ loginToken: string;
1834
+ };
1835
+ _input_out: {
1836
+ userId: string;
1837
+ loginToken: string;
1838
+ };
1839
+ _output_in: {
1840
+ session: string;
1841
+ masterKeySalt: string;
1842
+ };
1843
+ _output_out: {
1844
+ session: string;
1845
+ masterKeySalt: string;
1846
+ };
1847
+ }, unknown>>;
1848
+ };
1811
1849
  signup: {
1812
1850
  mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
1813
1851
  _config: import("@trpc/server").RootConfig<{
@@ -1892,7 +1930,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
1892
1930
  _output_out: {};
1893
1931
  }, {}>>;
1894
1932
  };
1895
- changeContext: {
1933
+ changeUser: {
1896
1934
  mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
1897
1935
  _config: import("@trpc/server").RootConfig<{
1898
1936
  ctx: {};
@@ -1927,26 +1965,16 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
1927
1965
  ls: TranslationFunctions;
1928
1966
  };
1929
1967
  _input_in: {
1930
- userId?: string | undefined;
1931
- orgId?: string | undefined;
1968
+ userId: string;
1932
1969
  };
1933
1970
  _input_out: {
1934
- userId?: string | undefined;
1935
- orgId?: string | undefined;
1971
+ userId: string;
1936
1972
  };
1937
1973
  _output_in: {
1938
1974
  sessionId: string;
1939
- context: {
1940
- userId: string;
1941
- orgId: string;
1942
- };
1943
1975
  };
1944
1976
  _output_out: {
1945
1977
  sessionId: string;
1946
- context: {
1947
- userId: string;
1948
- orgId: string;
1949
- };
1950
1978
  };
1951
1979
  }, unknown>>;
1952
1980
  };
@@ -1991,11 +2019,11 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
1991
2019
  _output_in: ({
1992
2020
  id: string;
1993
2021
  lang: "fr" | "en";
2022
+ body: string;
1994
2023
  title: string;
1995
2024
  status: "draft" | "published";
1996
2025
  summary: string;
1997
2026
  date: Date;
1998
- body: string;
1999
2027
  tags: string[];
2000
2028
  author: string;
2001
2029
  image: string;
@@ -2010,11 +2038,11 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
2010
2038
  _output_out: ({
2011
2039
  id: string;
2012
2040
  lang: "fr" | "en";
2041
+ body: string;
2013
2042
  title: string;
2014
2043
  status: "draft" | "published";
2015
2044
  summary: string;
2016
2045
  date: Date;
2017
- body: string;
2018
2046
  tags: string[];
2019
2047
  author: string;
2020
2048
  image: string;
@@ -2061,11 +2089,11 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
2061
2089
  _output_in: {
2062
2090
  id: string;
2063
2091
  lang: "fr" | "en";
2092
+ body: string;
2064
2093
  title: string;
2065
2094
  status: "draft" | "published";
2066
2095
  summary: string;
2067
2096
  date: Date;
2068
- body: string;
2069
2097
  tags: string[];
2070
2098
  author: string;
2071
2099
  image: string;
@@ -2080,11 +2108,11 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
2080
2108
  _output_out: {
2081
2109
  id: string;
2082
2110
  lang: "fr" | "en";
2111
+ body: string;
2083
2112
  title: string;
2084
2113
  status: "draft" | "published";
2085
2114
  summary: string;
2086
2115
  date: Date;
2087
- body: string;
2088
2116
  tags: string[];
2089
2117
  author: string;
2090
2118
  image: string;
@@ -2174,10 +2202,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
2174
2202
  createdAt: Date;
2175
2203
  storageType: "s3" | "cold" | "lite";
2176
2204
  size: bigint;
2177
- createdByUserId: string;
2178
- createdByAppId: string;
2179
- createdByOrgId: string;
2180
2205
  md5: string;
2206
+ userAppUserId: string;
2207
+ userAppAppId: string;
2181
2208
  sizeEncrypted: bigint | null;
2182
2209
  md5Encrypted: string | null;
2183
2210
  mime: string | null;
@@ -2194,10 +2221,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
2194
2221
  createdAt: Date;
2195
2222
  storageType: "s3" | "cold" | "lite";
2196
2223
  size: bigint;
2197
- createdByUserId: string;
2198
- createdByAppId: string;
2199
- createdByOrgId: string;
2200
2224
  md5: string;
2225
+ userAppUserId: string;
2226
+ userAppAppId: string;
2201
2227
  sizeEncrypted: bigint | null;
2202
2228
  md5Encrypted: string | null;
2203
2229
  mime: string | null;
@@ -2327,10 +2353,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
2327
2353
  createdAt: Date;
2328
2354
  storageType: "s3" | "cold" | "lite";
2329
2355
  size: bigint;
2330
- createdByUserId: string;
2331
- createdByAppId: string;
2332
- createdByOrgId: string;
2333
2356
  md5: string;
2357
+ userAppUserId: string;
2358
+ userAppAppId: string;
2334
2359
  sizeEncrypted: bigint | null;
2335
2360
  md5Encrypted: string | null;
2336
2361
  mime: string | null;
@@ -2347,10 +2372,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
2347
2372
  createdAt: Date;
2348
2373
  storageType: "s3" | "cold" | "lite";
2349
2374
  size: bigint;
2350
- createdByUserId: string;
2351
- createdByAppId: string;
2352
- createdByOrgId: string;
2353
2375
  md5: string;
2376
+ userAppUserId: string;
2377
+ userAppAppId: string;
2354
2378
  sizeEncrypted: bigint | null;
2355
2379
  md5Encrypted: string | null;
2356
2380
  mime: string | null;
@@ -2519,10 +2543,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
2519
2543
  createdAt: Date;
2520
2544
  storageType: "s3" | "cold" | "lite";
2521
2545
  size: bigint;
2522
- createdByUserId: string;
2523
- createdByAppId: string;
2524
- createdByOrgId: string;
2525
2546
  md5: string;
2547
+ userAppUserId: string;
2548
+ userAppAppId: string;
2526
2549
  sizeEncrypted: bigint | null;
2527
2550
  md5Encrypted: string | null;
2528
2551
  mime: string | null;
@@ -2539,10 +2562,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
2539
2562
  createdAt: Date;
2540
2563
  storageType: "s3" | "cold" | "lite";
2541
2564
  size: bigint;
2542
- createdByUserId: string;
2543
- createdByAppId: string;
2544
- createdByOrgId: string;
2545
2565
  md5: string;
2566
+ userAppUserId: string;
2567
+ userAppAppId: string;
2546
2568
  sizeEncrypted: bigint | null;
2547
2569
  md5Encrypted: string | null;
2548
2570
  mime: string | null;
@@ -2588,8 +2610,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
2588
2610
  };
2589
2611
  _output_in: {
2590
2612
  id: string;
2591
- key: string | null;
2592
2613
  type: "received_mail";
2614
+ key: string | null;
2593
2615
  storageType: "s3" | "cold" | "lite";
2594
2616
  size: bigint;
2595
2617
  md5: string;
@@ -2606,8 +2628,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
2606
2628
  maybeContent: Buffer | null;
2607
2629
  } | {
2608
2630
  id: string;
2609
- key: string | null;
2610
2631
  type: "sent_mail";
2632
+ key: string | null;
2611
2633
  storageType: "s3" | "cold" | "lite";
2612
2634
  size: bigint;
2613
2635
  md5: string;
@@ -2623,8 +2645,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
2623
2645
  maybeContent: Buffer | null;
2624
2646
  } | {
2625
2647
  id: string;
2626
- key: string | null;
2627
2648
  type: "cloud";
2649
+ key: string | null;
2628
2650
  storageType: "s3" | "cold";
2629
2651
  size: bigint;
2630
2652
  md5: string;
@@ -2640,8 +2662,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
2640
2662
  publicKey: string;
2641
2663
  } | {
2642
2664
  id: string;
2643
- key: string | null;
2644
2665
  type: "lite";
2666
+ key: string | null;
2645
2667
  storageType: "lite";
2646
2668
  size: bigint;
2647
2669
  md5: string;
@@ -2654,8 +2676,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
2654
2676
  };
2655
2677
  _output_out: {
2656
2678
  id: string;
2657
- key: string | null;
2658
2679
  type: "received_mail";
2680
+ key: string | null;
2659
2681
  storageType: "s3" | "cold" | "lite";
2660
2682
  size: bigint;
2661
2683
  md5: string;
@@ -2672,8 +2694,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
2672
2694
  maybeContent: Buffer | null;
2673
2695
  } | {
2674
2696
  id: string;
2675
- key: string | null;
2676
2697
  type: "sent_mail";
2698
+ key: string | null;
2677
2699
  storageType: "s3" | "cold" | "lite";
2678
2700
  size: bigint;
2679
2701
  md5: string;
@@ -2689,8 +2711,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
2689
2711
  maybeContent: Buffer | null;
2690
2712
  } | {
2691
2713
  id: string;
2692
- key: string | null;
2693
2714
  type: "cloud";
2715
+ key: string | null;
2694
2716
  storageType: "s3" | "cold";
2695
2717
  size: bigint;
2696
2718
  md5: string;
@@ -2706,8 +2728,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
2706
2728
  publicKey: string;
2707
2729
  } | {
2708
2730
  id: string;
2709
- key: string | null;
2710
2731
  type: "lite";
2732
+ key: string | null;
2711
2733
  storageType: "lite";
2712
2734
  size: bigint;
2713
2735
  md5: string;
@@ -2752,8 +2774,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
2752
2774
  };
2753
2775
  _output_in: ({
2754
2776
  id: string;
2755
- key: string | null;
2756
2777
  type: "received_mail";
2778
+ key: string | null;
2757
2779
  storageType: "s3" | "cold" | "lite";
2758
2780
  size: bigint;
2759
2781
  md5: string;
@@ -2770,8 +2792,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
2770
2792
  maybeContent: Buffer | null;
2771
2793
  } | {
2772
2794
  id: string;
2773
- key: string | null;
2774
2795
  type: "sent_mail";
2796
+ key: string | null;
2775
2797
  storageType: "s3" | "cold" | "lite";
2776
2798
  size: bigint;
2777
2799
  md5: string;
@@ -2787,8 +2809,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
2787
2809
  maybeContent: Buffer | null;
2788
2810
  } | {
2789
2811
  id: string;
2790
- key: string | null;
2791
2812
  type: "cloud";
2813
+ key: string | null;
2792
2814
  storageType: "s3" | "cold";
2793
2815
  size: bigint;
2794
2816
  md5: string;
@@ -2804,8 +2826,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
2804
2826
  publicKey: string;
2805
2827
  } | {
2806
2828
  id: string;
2807
- key: string | null;
2808
2829
  type: "lite";
2830
+ key: string | null;
2809
2831
  storageType: "lite";
2810
2832
  size: bigint;
2811
2833
  md5: string;
@@ -2818,8 +2840,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
2818
2840
  })[];
2819
2841
  _output_out: ({
2820
2842
  id: string;
2821
- key: string | null;
2822
2843
  type: "received_mail";
2844
+ key: string | null;
2823
2845
  storageType: "s3" | "cold" | "lite";
2824
2846
  size: bigint;
2825
2847
  md5: string;
@@ -2836,8 +2858,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
2836
2858
  maybeContent: Buffer | null;
2837
2859
  } | {
2838
2860
  id: string;
2839
- key: string | null;
2840
2861
  type: "sent_mail";
2862
+ key: string | null;
2841
2863
  storageType: "s3" | "cold" | "lite";
2842
2864
  size: bigint;
2843
2865
  md5: string;
@@ -2853,8 +2875,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
2853
2875
  maybeContent: Buffer | null;
2854
2876
  } | {
2855
2877
  id: string;
2856
- key: string | null;
2857
2878
  type: "cloud";
2879
+ key: string | null;
2858
2880
  storageType: "s3" | "cold";
2859
2881
  size: bigint;
2860
2882
  md5: string;
@@ -2870,8 +2892,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
2870
2892
  publicKey: string;
2871
2893
  } | {
2872
2894
  id: string;
2873
- key: string | null;
2874
2895
  type: "lite";
2896
+ key: string | null;
2875
2897
  storageType: "lite";
2876
2898
  size: bigint;
2877
2899
  md5: string;
@@ -3042,10 +3064,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
3042
3064
  createdAt: Date;
3043
3065
  storageType: "s3" | "cold" | "lite";
3044
3066
  size: bigint;
3045
- createdByUserId: string;
3046
- createdByAppId: string;
3047
- createdByOrgId: string;
3048
3067
  md5: string;
3068
+ userAppUserId: string;
3069
+ userAppAppId: string;
3049
3070
  sizeEncrypted: bigint | null;
3050
3071
  md5Encrypted: string | null;
3051
3072
  mime: string | null;
@@ -3062,10 +3083,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
3062
3083
  createdAt: Date;
3063
3084
  storageType: "s3" | "cold" | "lite";
3064
3085
  size: bigint;
3065
- createdByUserId: string;
3066
- createdByAppId: string;
3067
- createdByOrgId: string;
3068
3086
  md5: string;
3087
+ userAppUserId: string;
3088
+ userAppAppId: string;
3069
3089
  sizeEncrypted: bigint | null;
3070
3090
  md5Encrypted: string | null;
3071
3091
  mime: string | null;
@@ -3195,10 +3215,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
3195
3215
  createdAt: Date;
3196
3216
  storageType: "s3" | "cold" | "lite";
3197
3217
  size: bigint;
3198
- createdByUserId: string;
3199
- createdByAppId: string;
3200
- createdByOrgId: string;
3201
3218
  md5: string;
3219
+ userAppUserId: string;
3220
+ userAppAppId: string;
3202
3221
  sizeEncrypted: bigint | null;
3203
3222
  md5Encrypted: string | null;
3204
3223
  mime: string | null;
@@ -3215,10 +3234,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
3215
3234
  createdAt: Date;
3216
3235
  storageType: "s3" | "cold" | "lite";
3217
3236
  size: bigint;
3218
- createdByUserId: string;
3219
- createdByAppId: string;
3220
- createdByOrgId: string;
3221
3237
  md5: string;
3238
+ userAppUserId: string;
3239
+ userAppAppId: string;
3222
3240
  sizeEncrypted: bigint | null;
3223
3241
  md5Encrypted: string | null;
3224
3242
  mime: string | null;
@@ -3587,8 +3605,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
3587
3605
  _meta: object;
3588
3606
  _ctx_out: {};
3589
3607
  _input_in: {
3590
- key: string;
3591
3608
  type: "encrypted";
3609
+ key: string;
3592
3610
  size: bigint;
3593
3611
  md5: string;
3594
3612
  sizeEncrypted: bigint;
@@ -3603,8 +3621,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
3603
3621
  ext?: string | undefined;
3604
3622
  };
3605
3623
  _input_out: {
3606
- key: string;
3607
3624
  type: "encrypted";
3625
+ key: string;
3608
3626
  size: bigint;
3609
3627
  md5: string;
3610
3628
  sizeEncrypted: bigint;
@@ -3673,8 +3691,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
3673
3691
  _meta: object;
3674
3692
  _ctx_out: {};
3675
3693
  _input_in: {
3676
- key: string;
3677
3694
  type: "encrypted";
3695
+ key: string;
3678
3696
  size: bigint;
3679
3697
  md5: string;
3680
3698
  sizeEncrypted: bigint;
@@ -3689,8 +3707,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
3689
3707
  ext?: string | undefined;
3690
3708
  };
3691
3709
  _input_out: {
3692
- key: string;
3693
3710
  type: "encrypted";
3711
+ key: string;
3694
3712
  size: bigint;
3695
3713
  md5: string;
3696
3714
  sizeEncrypted: bigint;
@@ -3759,8 +3777,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
3759
3777
  _meta: object;
3760
3778
  _ctx_out: {};
3761
3779
  _input_in: {
3762
- key: string;
3763
3780
  type: "encrypted";
3781
+ key: string;
3764
3782
  size: bigint;
3765
3783
  md5: string;
3766
3784
  sizeEncrypted: bigint;
@@ -3777,8 +3795,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
3777
3795
  ext?: string | undefined;
3778
3796
  };
3779
3797
  _input_out: {
3780
- key: string;
3781
3798
  type: "encrypted";
3799
+ key: string;
3782
3800
  size: bigint;
3783
3801
  md5: string;
3784
3802
  sizeEncrypted: bigint;
@@ -4270,10 +4288,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
4270
4288
  createdAt: Date;
4271
4289
  storageType: "s3" | "cold" | "lite";
4272
4290
  size: bigint;
4273
- createdByUserId: string;
4274
- createdByAppId: string;
4275
- createdByOrgId: string;
4276
4291
  md5: string;
4292
+ userAppUserId: string;
4293
+ userAppAppId: string;
4277
4294
  sizeEncrypted: bigint | null;
4278
4295
  md5Encrypted: string | null;
4279
4296
  mime: string | null;
@@ -4290,10 +4307,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
4290
4307
  createdAt: Date;
4291
4308
  storageType: "s3" | "cold" | "lite";
4292
4309
  size: bigint;
4293
- createdByUserId: string;
4294
- createdByAppId: string;
4295
- createdByOrgId: string;
4296
4310
  md5: string;
4311
+ userAppUserId: string;
4312
+ userAppAppId: string;
4297
4313
  sizeEncrypted: bigint | null;
4298
4314
  md5Encrypted: string | null;
4299
4315
  mime: string | null;
@@ -4423,10 +4439,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
4423
4439
  createdAt: Date;
4424
4440
  storageType: "s3" | "cold" | "lite";
4425
4441
  size: bigint;
4426
- createdByUserId: string;
4427
- createdByAppId: string;
4428
- createdByOrgId: string;
4429
4442
  md5: string;
4443
+ userAppUserId: string;
4444
+ userAppAppId: string;
4430
4445
  sizeEncrypted: bigint | null;
4431
4446
  md5Encrypted: string | null;
4432
4447
  mime: string | null;
@@ -4443,10 +4458,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
4443
4458
  createdAt: Date;
4444
4459
  storageType: "s3" | "cold" | "lite";
4445
4460
  size: bigint;
4446
- createdByUserId: string;
4447
- createdByAppId: string;
4448
- createdByOrgId: string;
4449
4461
  md5: string;
4462
+ userAppUserId: string;
4463
+ userAppAppId: string;
4450
4464
  sizeEncrypted: bigint | null;
4451
4465
  md5Encrypted: string | null;
4452
4466
  mime: string | null;
@@ -4847,7 +4861,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
4847
4861
  id: string;
4848
4862
  };
4849
4863
  _output_in: {
4850
- createdAt: Date;
4851
4864
  rights: "admin" | "write" | "read";
4852
4865
  nameKey: string | null;
4853
4866
  isRoot: boolean;
@@ -4858,7 +4871,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
4858
4871
  userAppAppId: string;
4859
4872
  };
4860
4873
  _output_out: {
4861
- createdAt: Date;
4862
4874
  rights: "admin" | "write" | "read";
4863
4875
  nameKey: string | null;
4864
4876
  isRoot: boolean;
@@ -5096,10 +5108,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
5096
5108
  createdAt: Date;
5097
5109
  storageType: "s3" | "cold" | "lite";
5098
5110
  size: bigint;
5099
- createdByUserId: string;
5100
- createdByAppId: string;
5101
- createdByOrgId: string;
5102
5111
  md5: string;
5112
+ userAppUserId: string;
5113
+ userAppAppId: string;
5103
5114
  sizeEncrypted: bigint | null;
5104
5115
  md5Encrypted: string | null;
5105
5116
  mime: string | null;
@@ -5116,10 +5127,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
5116
5127
  createdAt: Date;
5117
5128
  storageType: "s3" | "cold" | "lite";
5118
5129
  size: bigint;
5119
- createdByUserId: string;
5120
- createdByAppId: string;
5121
- createdByOrgId: string;
5122
5130
  md5: string;
5131
+ userAppUserId: string;
5132
+ userAppAppId: string;
5123
5133
  sizeEncrypted: bigint | null;
5124
5134
  md5Encrypted: string | null;
5125
5135
  mime: string | null;
@@ -5249,10 +5259,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
5249
5259
  createdAt: Date;
5250
5260
  storageType: "s3" | "cold" | "lite";
5251
5261
  size: bigint;
5252
- createdByUserId: string;
5253
- createdByAppId: string;
5254
- createdByOrgId: string;
5255
5262
  md5: string;
5263
+ userAppUserId: string;
5264
+ userAppAppId: string;
5256
5265
  sizeEncrypted: bigint | null;
5257
5266
  md5Encrypted: string | null;
5258
5267
  mime: string | null;
@@ -5269,10 +5278,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
5269
5278
  createdAt: Date;
5270
5279
  storageType: "s3" | "cold" | "lite";
5271
5280
  size: bigint;
5272
- createdByUserId: string;
5273
- createdByAppId: string;
5274
- createdByOrgId: string;
5275
5281
  md5: string;
5282
+ userAppUserId: string;
5283
+ userAppAppId: string;
5276
5284
  sizeEncrypted: bigint | null;
5277
5285
  md5Encrypted: string | null;
5278
5286
  mime: string | null;
@@ -6024,10 +6032,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
6024
6032
  createdAt: Date;
6025
6033
  storageType: "s3" | "cold" | "lite";
6026
6034
  size: bigint;
6027
- createdByUserId: string;
6028
- createdByAppId: string;
6029
- createdByOrgId: string;
6030
6035
  md5: string;
6036
+ userAppUserId: string;
6037
+ userAppAppId: string;
6031
6038
  sizeEncrypted: bigint | null;
6032
6039
  md5Encrypted: string | null;
6033
6040
  mime: string | null;
@@ -6044,10 +6051,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
6044
6051
  createdAt: Date;
6045
6052
  storageType: "s3" | "cold" | "lite";
6046
6053
  size: bigint;
6047
- createdByUserId: string;
6048
- createdByAppId: string;
6049
- createdByOrgId: string;
6050
6054
  md5: string;
6055
+ userAppUserId: string;
6056
+ userAppAppId: string;
6051
6057
  sizeEncrypted: bigint | null;
6052
6058
  md5Encrypted: string | null;
6053
6059
  mime: string | null;
@@ -6177,10 +6183,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
6177
6183
  createdAt: Date;
6178
6184
  storageType: "s3" | "cold" | "lite";
6179
6185
  size: bigint;
6180
- createdByUserId: string;
6181
- createdByAppId: string;
6182
- createdByOrgId: string;
6183
6186
  md5: string;
6187
+ userAppUserId: string;
6188
+ userAppAppId: string;
6184
6189
  sizeEncrypted: bigint | null;
6185
6190
  md5Encrypted: string | null;
6186
6191
  mime: string | null;
@@ -6197,10 +6202,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
6197
6202
  createdAt: Date;
6198
6203
  storageType: "s3" | "cold" | "lite";
6199
6204
  size: bigint;
6200
- createdByUserId: string;
6201
- createdByAppId: string;
6202
- createdByOrgId: string;
6203
6205
  md5: string;
6206
+ userAppUserId: string;
6207
+ userAppAppId: string;
6204
6208
  sizeEncrypted: bigint | null;
6205
6209
  md5Encrypted: string | null;
6206
6210
  mime: string | null;
@@ -6934,12 +6938,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
6934
6938
  accountRole: _prisma_client.AccountRole;
6935
6939
  userId: string;
6936
6940
  userRole: _prisma_client.UserRole;
6937
- org: {
6938
- id: string;
6939
- name: string;
6940
- plan: _prisma_client.OrganizationPlanKind;
6941
- role: _prisma_client.OrganizationRole;
6942
- };
6941
+ userPlan: _prisma_client.PlanKind;
6943
6942
  };
6944
6943
  req: {
6945
6944
  headers: Headers;
@@ -7021,12 +7020,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
7021
7020
  accountRole: _prisma_client.AccountRole;
7022
7021
  userId: string;
7023
7022
  userRole: _prisma_client.UserRole;
7024
- org: {
7025
- id: string;
7026
- name: string;
7027
- plan: _prisma_client.OrganizationPlanKind;
7028
- role: _prisma_client.OrganizationRole;
7029
- };
7023
+ userPlan: _prisma_client.PlanKind;
7030
7024
  };
7031
7025
  req: {
7032
7026
  headers: Headers;
@@ -7102,12 +7096,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
7102
7096
  accountRole: _prisma_client.AccountRole;
7103
7097
  userId: string;
7104
7098
  userRole: _prisma_client.UserRole;
7105
- org: {
7106
- id: string;
7107
- name: string;
7108
- plan: _prisma_client.OrganizationPlanKind;
7109
- role: _prisma_client.OrganizationRole;
7110
- };
7099
+ userPlan: _prisma_client.PlanKind;
7111
7100
  };
7112
7101
  req: {
7113
7102
  headers: Headers;
@@ -7189,12 +7178,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
7189
7178
  accountRole: _prisma_client.AccountRole;
7190
7179
  userId: string;
7191
7180
  userRole: _prisma_client.UserRole;
7192
- org: {
7193
- id: string;
7194
- name: string;
7195
- plan: _prisma_client.OrganizationPlanKind;
7196
- role: _prisma_client.OrganizationRole;
7197
- };
7181
+ userPlan: _prisma_client.PlanKind;
7198
7182
  };
7199
7183
  req: {
7200
7184
  headers: Headers;
@@ -7274,12 +7258,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
7274
7258
  accountRole: _prisma_client.AccountRole;
7275
7259
  userId: string;
7276
7260
  userRole: _prisma_client.UserRole;
7277
- org: {
7278
- id: string;
7279
- name: string;
7280
- plan: _prisma_client.OrganizationPlanKind;
7281
- role: _prisma_client.OrganizationRole;
7282
- };
7261
+ userPlan: _prisma_client.PlanKind;
7283
7262
  };
7284
7263
  req: {
7285
7264
  headers: Headers;
@@ -7357,12 +7336,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
7357
7336
  accountRole: _prisma_client.AccountRole;
7358
7337
  userId: string;
7359
7338
  userRole: _prisma_client.UserRole;
7360
- org: {
7361
- id: string;
7362
- name: string;
7363
- plan: _prisma_client.OrganizationPlanKind;
7364
- role: _prisma_client.OrganizationRole;
7365
- };
7339
+ userPlan: _prisma_client.PlanKind;
7366
7340
  };
7367
7341
  req: {
7368
7342
  headers: Headers;
@@ -7438,12 +7412,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
7438
7412
  accountRole: _prisma_client.AccountRole;
7439
7413
  userId: string;
7440
7414
  userRole: _prisma_client.UserRole;
7441
- org: {
7442
- id: string;
7443
- name: string;
7444
- plan: _prisma_client.OrganizationPlanKind;
7445
- role: _prisma_client.OrganizationRole;
7446
- };
7415
+ userPlan: _prisma_client.PlanKind;
7447
7416
  };
7448
7417
  req: {
7449
7418
  headers: Headers;
@@ -7513,12 +7482,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
7513
7482
  accountRole: _prisma_client.AccountRole;
7514
7483
  userId: string;
7515
7484
  userRole: _prisma_client.UserRole;
7516
- org: {
7517
- id: string;
7518
- name: string;
7519
- plan: _prisma_client.OrganizationPlanKind;
7520
- role: _prisma_client.OrganizationRole;
7521
- };
7485
+ userPlan: _prisma_client.PlanKind;
7522
7486
  };
7523
7487
  req: {
7524
7488
  headers: Headers;
@@ -7588,12 +7552,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
7588
7552
  accountRole: _prisma_client.AccountRole;
7589
7553
  userId: string;
7590
7554
  userRole: _prisma_client.UserRole;
7591
- org: {
7592
- id: string;
7593
- name: string;
7594
- plan: _prisma_client.OrganizationPlanKind;
7595
- role: _prisma_client.OrganizationRole;
7596
- };
7555
+ userPlan: _prisma_client.PlanKind;
7597
7556
  };
7598
7557
  req: {
7599
7558
  headers: Headers;
@@ -7687,12 +7646,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
7687
7646
  accountRole: _prisma_client.AccountRole;
7688
7647
  userId: string;
7689
7648
  userRole: _prisma_client.UserRole;
7690
- org: {
7691
- id: string;
7692
- name: string;
7693
- plan: _prisma_client.OrganizationPlanKind;
7694
- role: _prisma_client.OrganizationRole;
7695
- };
7649
+ userPlan: _prisma_client.PlanKind;
7696
7650
  };
7697
7651
  req: {
7698
7652
  headers: Headers;
@@ -7798,12 +7752,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
7798
7752
  accountRole: _prisma_client.AccountRole;
7799
7753
  userId: string;
7800
7754
  userRole: _prisma_client.UserRole;
7801
- org: {
7802
- id: string;
7803
- name: string;
7804
- plan: _prisma_client.OrganizationPlanKind;
7805
- role: _prisma_client.OrganizationRole;
7806
- };
7755
+ userPlan: _prisma_client.PlanKind;
7807
7756
  };
7808
7757
  req: {
7809
7758
  headers: Headers;
@@ -7885,12 +7834,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
7885
7834
  accountRole: _prisma_client.AccountRole;
7886
7835
  userId: string;
7887
7836
  userRole: _prisma_client.UserRole;
7888
- org: {
7889
- id: string;
7890
- name: string;
7891
- plan: _prisma_client.OrganizationPlanKind;
7892
- role: _prisma_client.OrganizationRole;
7893
- };
7837
+ userPlan: _prisma_client.PlanKind;
7894
7838
  };
7895
7839
  req: {
7896
7840
  headers: Headers;
@@ -8062,12 +8006,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
8062
8006
  accountRole: _prisma_client.AccountRole;
8063
8007
  userId: string;
8064
8008
  userRole: _prisma_client.UserRole;
8065
- org: {
8066
- id: string;
8067
- name: string;
8068
- plan: _prisma_client.OrganizationPlanKind;
8069
- role: _prisma_client.OrganizationRole;
8070
- };
8009
+ userPlan: _prisma_client.PlanKind;
8071
8010
  };
8072
8011
  req: {
8073
8012
  headers: Headers;
@@ -8145,12 +8084,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
8145
8084
  accountRole: _prisma_client.AccountRole;
8146
8085
  userId: string;
8147
8086
  userRole: _prisma_client.UserRole;
8148
- org: {
8149
- id: string;
8150
- name: string;
8151
- plan: _prisma_client.OrganizationPlanKind;
8152
- role: _prisma_client.OrganizationRole;
8153
- };
8087
+ userPlan: _prisma_client.PlanKind;
8154
8088
  };
8155
8089
  req: {
8156
8090
  headers: Headers;
@@ -8370,12 +8304,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
8370
8304
  accountRole: _prisma_client.AccountRole;
8371
8305
  userId: string;
8372
8306
  userRole: _prisma_client.UserRole;
8373
- org: {
8374
- id: string;
8375
- name: string;
8376
- plan: _prisma_client.OrganizationPlanKind;
8377
- role: _prisma_client.OrganizationRole;
8378
- };
8307
+ userPlan: _prisma_client.PlanKind;
8379
8308
  };
8380
8309
  req: {
8381
8310
  headers: Headers;
@@ -8459,12 +8388,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
8459
8388
  accountRole: _prisma_client.AccountRole;
8460
8389
  userId: string;
8461
8390
  userRole: _prisma_client.UserRole;
8462
- org: {
8463
- id: string;
8464
- name: string;
8465
- plan: _prisma_client.OrganizationPlanKind;
8466
- role: _prisma_client.OrganizationRole;
8467
- };
8391
+ userPlan: _prisma_client.PlanKind;
8468
8392
  };
8469
8393
  req: {
8470
8394
  headers: Headers;
@@ -8538,12 +8462,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
8538
8462
  accountRole: _prisma_client.AccountRole;
8539
8463
  userId: string;
8540
8464
  userRole: _prisma_client.UserRole;
8541
- org: {
8542
- id: string;
8543
- name: string;
8544
- plan: _prisma_client.OrganizationPlanKind;
8545
- role: _prisma_client.OrganizationRole;
8546
- };
8465
+ userPlan: _prisma_client.PlanKind;
8547
8466
  };
8548
8467
  req: {
8549
8468
  headers: Headers;
@@ -8625,12 +8544,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
8625
8544
  accountRole: _prisma_client.AccountRole;
8626
8545
  userId: string;
8627
8546
  userRole: _prisma_client.UserRole;
8628
- org: {
8629
- id: string;
8630
- name: string;
8631
- plan: _prisma_client.OrganizationPlanKind;
8632
- role: _prisma_client.OrganizationRole;
8633
- };
8547
+ userPlan: _prisma_client.PlanKind;
8634
8548
  };
8635
8549
  req: {
8636
8550
  headers: Headers;
@@ -8720,12 +8634,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
8720
8634
  accountRole: _prisma_client.AccountRole;
8721
8635
  userId: string;
8722
8636
  userRole: _prisma_client.UserRole;
8723
- org: {
8724
- id: string;
8725
- name: string;
8726
- plan: _prisma_client.OrganizationPlanKind;
8727
- role: _prisma_client.OrganizationRole;
8728
- };
8637
+ userPlan: _prisma_client.PlanKind;
8729
8638
  };
8730
8639
  req: {
8731
8640
  headers: Headers;
@@ -8811,12 +8720,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
8811
8720
  accountRole: _prisma_client.AccountRole;
8812
8721
  userId: string;
8813
8722
  userRole: _prisma_client.UserRole;
8814
- org: {
8815
- id: string;
8816
- name: string;
8817
- plan: _prisma_client.OrganizationPlanKind;
8818
- role: _prisma_client.OrganizationRole;
8819
- };
8723
+ userPlan: _prisma_client.PlanKind;
8820
8724
  };
8821
8725
  req: {
8822
8726
  headers: Headers;
@@ -8894,12 +8798,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
8894
8798
  accountRole: _prisma_client.AccountRole;
8895
8799
  userId: string;
8896
8800
  userRole: _prisma_client.UserRole;
8897
- org: {
8898
- id: string;
8899
- name: string;
8900
- plan: _prisma_client.OrganizationPlanKind;
8901
- role: _prisma_client.OrganizationRole;
8902
- };
8801
+ userPlan: _prisma_client.PlanKind;
8903
8802
  };
8904
8803
  req: {
8905
8804
  headers: Headers;
@@ -8981,12 +8880,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
8981
8880
  accountRole: _prisma_client.AccountRole;
8982
8881
  userId: string;
8983
8882
  userRole: _prisma_client.UserRole;
8984
- org: {
8985
- id: string;
8986
- name: string;
8987
- plan: _prisma_client.OrganizationPlanKind;
8988
- role: _prisma_client.OrganizationRole;
8989
- };
8883
+ userPlan: _prisma_client.PlanKind;
8990
8884
  };
8991
8885
  req: {
8992
8886
  headers: Headers;
@@ -9070,12 +8964,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
9070
8964
  accountRole: _prisma_client.AccountRole;
9071
8965
  userId: string;
9072
8966
  userRole: _prisma_client.UserRole;
9073
- org: {
9074
- id: string;
9075
- name: string;
9076
- plan: _prisma_client.OrganizationPlanKind;
9077
- role: _prisma_client.OrganizationRole;
9078
- };
8967
+ userPlan: _prisma_client.PlanKind;
9079
8968
  };
9080
8969
  req: {
9081
8970
  headers: Headers;
@@ -9159,12 +9048,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
9159
9048
  accountRole: _prisma_client.AccountRole;
9160
9049
  userId: string;
9161
9050
  userRole: _prisma_client.UserRole;
9162
- org: {
9163
- id: string;
9164
- name: string;
9165
- plan: _prisma_client.OrganizationPlanKind;
9166
- role: _prisma_client.OrganizationRole;
9167
- };
9051
+ userPlan: _prisma_client.PlanKind;
9168
9052
  };
9169
9053
  req: {
9170
9054
  headers: Headers;
@@ -9246,12 +9130,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
9246
9130
  accountRole: _prisma_client.AccountRole;
9247
9131
  userId: string;
9248
9132
  userRole: _prisma_client.UserRole;
9249
- org: {
9250
- id: string;
9251
- name: string;
9252
- plan: _prisma_client.OrganizationPlanKind;
9253
- role: _prisma_client.OrganizationRole;
9254
- };
9133
+ userPlan: _prisma_client.PlanKind;
9255
9134
  };
9256
9135
  req: {
9257
9136
  headers: Headers;
@@ -9327,12 +9206,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
9327
9206
  accountRole: _prisma_client.AccountRole;
9328
9207
  userId: string;
9329
9208
  userRole: _prisma_client.UserRole;
9330
- org: {
9331
- id: string;
9332
- name: string;
9333
- plan: _prisma_client.OrganizationPlanKind;
9334
- role: _prisma_client.OrganizationRole;
9335
- };
9209
+ userPlan: _prisma_client.PlanKind;
9336
9210
  };
9337
9211
  req: {
9338
9212
  headers: Headers;
@@ -9414,12 +9288,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
9414
9288
  accountRole: _prisma_client.AccountRole;
9415
9289
  userId: string;
9416
9290
  userRole: _prisma_client.UserRole;
9417
- org: {
9418
- id: string;
9419
- name: string;
9420
- plan: _prisma_client.OrganizationPlanKind;
9421
- role: _prisma_client.OrganizationRole;
9422
- };
9291
+ userPlan: _prisma_client.PlanKind;
9423
9292
  };
9424
9293
  req: {
9425
9294
  headers: Headers;
@@ -9499,12 +9368,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
9499
9368
  accountRole: _prisma_client.AccountRole;
9500
9369
  userId: string;
9501
9370
  userRole: _prisma_client.UserRole;
9502
- org: {
9503
- id: string;
9504
- name: string;
9505
- plan: _prisma_client.OrganizationPlanKind;
9506
- role: _prisma_client.OrganizationRole;
9507
- };
9371
+ userPlan: _prisma_client.PlanKind;
9508
9372
  };
9509
9373
  req: {
9510
9374
  headers: Headers;
@@ -9592,12 +9456,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
9592
9456
  accountRole: _prisma_client.AccountRole;
9593
9457
  userId: string;
9594
9458
  userRole: _prisma_client.UserRole;
9595
- org: {
9596
- id: string;
9597
- name: string;
9598
- plan: _prisma_client.OrganizationPlanKind;
9599
- role: _prisma_client.OrganizationRole;
9600
- };
9459
+ userPlan: _prisma_client.PlanKind;
9601
9460
  };
9602
9461
  req: {
9603
9462
  headers: Headers;
@@ -9715,12 +9574,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
9715
9574
  accountRole: _prisma_client.AccountRole;
9716
9575
  userId: string;
9717
9576
  userRole: _prisma_client.UserRole;
9718
- org: {
9719
- id: string;
9720
- name: string;
9721
- plan: _prisma_client.OrganizationPlanKind;
9722
- role: _prisma_client.OrganizationRole;
9723
- };
9577
+ userPlan: _prisma_client.PlanKind;
9724
9578
  };
9725
9579
  req: {
9726
9580
  headers: Headers;
@@ -9794,12 +9648,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
9794
9648
  accountRole: _prisma_client.AccountRole;
9795
9649
  userId: string;
9796
9650
  userRole: _prisma_client.UserRole;
9797
- org: {
9798
- id: string;
9799
- name: string;
9800
- plan: _prisma_client.OrganizationPlanKind;
9801
- role: _prisma_client.OrganizationRole;
9802
- };
9651
+ userPlan: _prisma_client.PlanKind;
9803
9652
  };
9804
9653
  req: {
9805
9654
  headers: Headers;
@@ -9911,12 +9760,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
9911
9760
  accountRole: _prisma_client.AccountRole;
9912
9761
  userId: string;
9913
9762
  userRole: _prisma_client.UserRole;
9914
- org: {
9915
- id: string;
9916
- name: string;
9917
- plan: _prisma_client.OrganizationPlanKind;
9918
- role: _prisma_client.OrganizationRole;
9919
- };
9763
+ userPlan: _prisma_client.PlanKind;
9920
9764
  };
9921
9765
  req: {
9922
9766
  headers: Headers;
@@ -10028,12 +9872,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
10028
9872
  accountRole: _prisma_client.AccountRole;
10029
9873
  userId: string;
10030
9874
  userRole: _prisma_client.UserRole;
10031
- org: {
10032
- id: string;
10033
- name: string;
10034
- plan: _prisma_client.OrganizationPlanKind;
10035
- role: _prisma_client.OrganizationRole;
10036
- };
9875
+ userPlan: _prisma_client.PlanKind;
10037
9876
  };
10038
9877
  req: {
10039
9878
  headers: Headers;
@@ -10141,12 +9980,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
10141
9980
  accountRole: _prisma_client.AccountRole;
10142
9981
  userId: string;
10143
9982
  userRole: _prisma_client.UserRole;
10144
- org: {
10145
- id: string;
10146
- name: string;
10147
- plan: _prisma_client.OrganizationPlanKind;
10148
- role: _prisma_client.OrganizationRole;
10149
- };
9983
+ userPlan: _prisma_client.PlanKind;
10150
9984
  };
10151
9985
  req: {
10152
9986
  headers: Headers;
@@ -10258,12 +10092,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
10258
10092
  accountRole: _prisma_client.AccountRole;
10259
10093
  userId: string;
10260
10094
  userRole: _prisma_client.UserRole;
10261
- org: {
10262
- id: string;
10263
- name: string;
10264
- plan: _prisma_client.OrganizationPlanKind;
10265
- role: _prisma_client.OrganizationRole;
10266
- };
10095
+ userPlan: _prisma_client.PlanKind;
10267
10096
  };
10268
10097
  req: {
10269
10098
  headers: Headers;
@@ -10375,12 +10204,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
10375
10204
  accountRole: _prisma_client.AccountRole;
10376
10205
  userId: string;
10377
10206
  userRole: _prisma_client.UserRole;
10378
- org: {
10379
- id: string;
10380
- name: string;
10381
- plan: _prisma_client.OrganizationPlanKind;
10382
- role: _prisma_client.OrganizationRole;
10383
- };
10207
+ userPlan: _prisma_client.PlanKind;
10384
10208
  };
10385
10209
  req: {
10386
10210
  headers: Headers;
@@ -10492,12 +10316,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
10492
10316
  accountRole: _prisma_client.AccountRole;
10493
10317
  userId: string;
10494
10318
  userRole: _prisma_client.UserRole;
10495
- org: {
10496
- id: string;
10497
- name: string;
10498
- plan: _prisma_client.OrganizationPlanKind;
10499
- role: _prisma_client.OrganizationRole;
10500
- };
10319
+ userPlan: _prisma_client.PlanKind;
10501
10320
  };
10502
10321
  req: {
10503
10322
  headers: Headers;
@@ -10657,10 +10476,10 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
10657
10476
  id: string;
10658
10477
  createdAt: Date;
10659
10478
  deletedAt: Date | null;
10660
- type: "received" | "sent";
10661
10479
  subject: string;
10662
10480
  body: string;
10663
10481
  openedAt: Date | null;
10482
+ type: "sent" | "received";
10664
10483
  } & {
10665
10484
  mailIntegrity: {
10666
10485
  id: string;
@@ -10715,10 +10534,10 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
10715
10534
  id: string;
10716
10535
  createdAt: Date;
10717
10536
  deletedAt: Date | null;
10718
- type: "received" | "sent";
10719
10537
  subject: string;
10720
10538
  body: string;
10721
10539
  openedAt: Date | null;
10540
+ type: "sent" | "received";
10722
10541
  } & {
10723
10542
  mailIntegrity: {
10724
10543
  id: string;
@@ -10827,10 +10646,10 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
10827
10646
  id: string;
10828
10647
  createdAt: Date;
10829
10648
  deletedAt: Date | null;
10830
- type: "received" | "sent";
10831
10649
  subject: string;
10832
10650
  body: string;
10833
10651
  openedAt: Date | null;
10652
+ type: "sent" | "received";
10834
10653
  } & {
10835
10654
  mailIntegrity: {
10836
10655
  id: string;
@@ -10885,10 +10704,10 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
10885
10704
  id: string;
10886
10705
  createdAt: Date;
10887
10706
  deletedAt: Date | null;
10888
- type: "received" | "sent";
10889
10707
  subject: string;
10890
10708
  body: string;
10891
10709
  openedAt: Date | null;
10710
+ type: "sent" | "received";
10892
10711
  } & {
10893
10712
  mailIntegrity: {
10894
10713
  id: string;
@@ -11080,19 +10899,19 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11080
10899
  _meta: object;
11081
10900
  _ctx_out: {};
11082
10901
  _input_in: {
11083
- type: "received" | "sent";
10902
+ type: "sent" | "received";
11084
10903
  };
11085
10904
  _input_out: {
11086
- type: "received" | "sent";
10905
+ type: "sent" | "received";
11087
10906
  };
11088
10907
  _output_in: ({
11089
10908
  id: string;
11090
10909
  createdAt: Date;
11091
10910
  deletedAt: Date | null;
11092
- type: "received" | "sent";
11093
10911
  subject: string;
11094
10912
  body: string;
11095
10913
  openedAt: Date | null;
10914
+ type: "sent" | "received";
11096
10915
  } & {
11097
10916
  mailIntegrity: {
11098
10917
  id: string;
@@ -11147,10 +10966,10 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11147
10966
  id: string;
11148
10967
  createdAt: Date;
11149
10968
  deletedAt: Date | null;
11150
- type: "received" | "sent";
11151
10969
  subject: string;
11152
10970
  body: string;
11153
10971
  openedAt: Date | null;
10972
+ type: "sent" | "received";
11154
10973
  } & {
11155
10974
  mailIntegrity: {
11156
10975
  id: string;
@@ -11239,10 +11058,10 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11239
11058
  id: string;
11240
11059
  createdAt: Date;
11241
11060
  deletedAt: Date | null;
11242
- type: "received" | "sent";
11243
11061
  subject: string;
11244
11062
  body: string;
11245
11063
  openedAt: Date | null;
11064
+ type: "sent" | "received";
11246
11065
  } & {
11247
11066
  mailIntegrity: {
11248
11067
  id: string;
@@ -11297,10 +11116,10 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11297
11116
  id: string;
11298
11117
  createdAt: Date;
11299
11118
  deletedAt: Date | null;
11300
- type: "received" | "sent";
11301
11119
  subject: string;
11302
11120
  body: string;
11303
11121
  openedAt: Date | null;
11122
+ type: "sent" | "received";
11304
11123
  } & {
11305
11124
  mailIntegrity: {
11306
11125
  id: string;
@@ -11461,10 +11280,10 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11461
11280
  id: string;
11462
11281
  createdAt: Date;
11463
11282
  deletedAt: Date | null;
11464
- type: "received" | "sent";
11465
11283
  subject: string;
11466
11284
  body: string;
11467
11285
  openedAt: Date | null;
11286
+ type: "sent" | "received";
11468
11287
  } & {
11469
11288
  mailIntegrity: {
11470
11289
  id: string;
@@ -11519,10 +11338,10 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11519
11338
  id: string;
11520
11339
  createdAt: Date;
11521
11340
  deletedAt: Date | null;
11522
- type: "received" | "sent";
11523
11341
  subject: string;
11524
11342
  body: string;
11525
11343
  openedAt: Date | null;
11344
+ type: "sent" | "received";
11526
11345
  } & {
11527
11346
  mailIntegrity: {
11528
11347
  id: string;
@@ -11658,12 +11477,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11658
11477
  accountRole: _prisma_client.AccountRole;
11659
11478
  userId: string;
11660
11479
  userRole: _prisma_client.UserRole;
11661
- org: {
11662
- id: string;
11663
- name: string;
11664
- plan: _prisma_client.OrganizationPlanKind;
11665
- role: _prisma_client.OrganizationRole;
11666
- };
11480
+ userPlan: _prisma_client.PlanKind;
11667
11481
  };
11668
11482
  req: {
11669
11483
  headers: Headers;
@@ -11852,10 +11666,10 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11852
11666
  id: string;
11853
11667
  createdAt: Date;
11854
11668
  deletedAt: Date | null;
11855
- type: "received" | "sent";
11856
11669
  subject: string;
11857
11670
  body: string;
11858
11671
  openedAt: Date | null;
11672
+ type: "sent" | "received";
11859
11673
  } & {
11860
11674
  mailIntegrity: {
11861
11675
  id: string;
@@ -11910,10 +11724,10 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
11910
11724
  id: string;
11911
11725
  createdAt: Date;
11912
11726
  deletedAt: Date | null;
11913
- type: "received" | "sent";
11914
11727
  subject: string;
11915
11728
  body: string;
11916
11729
  openedAt: Date | null;
11730
+ type: "sent" | "received";
11917
11731
  } & {
11918
11732
  mailIntegrity: {
11919
11733
  id: string;
@@ -12061,11 +11875,11 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
12061
11875
  _input_in: {
12062
11876
  id: string;
12063
11877
  } & {
11878
+ subject: string | null;
11879
+ body: string | null;
12064
11880
  hashKey: string | null;
12065
11881
  hash: string | null;
12066
11882
  replyToId: string | null;
12067
- subject: string | null;
12068
- body: string | null;
12069
11883
  recipients: string[] | null;
12070
11884
  senderFiles: {
12071
11885
  name: string;
@@ -12075,11 +11889,11 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
12075
11889
  _input_out: {
12076
11890
  id: string;
12077
11891
  } & {
11892
+ subject: string | null;
11893
+ body: string | null;
12078
11894
  hashKey: string | null;
12079
11895
  hash: string | null;
12080
11896
  replyToId: string | null;
12081
- subject: string | null;
12082
- body: string | null;
12083
11897
  recipients: string[] | null;
12084
11898
  senderFiles: {
12085
11899
  name: string;
@@ -12090,10 +11904,10 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
12090
11904
  id: string;
12091
11905
  createdAt: Date;
12092
11906
  deletedAt: Date | null;
12093
- type: "received" | "sent";
12094
11907
  subject: string;
12095
11908
  body: string;
12096
11909
  openedAt: Date | null;
11910
+ type: "sent" | "received";
12097
11911
  } & {
12098
11912
  mailIntegrity: {
12099
11913
  id: string;
@@ -12148,10 +11962,10 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
12148
11962
  id: string;
12149
11963
  createdAt: Date;
12150
11964
  deletedAt: Date | null;
12151
- type: "received" | "sent";
12152
11965
  subject: string;
12153
11966
  body: string;
12154
11967
  openedAt: Date | null;
11968
+ type: "sent" | "received";
12155
11969
  } & {
12156
11970
  mailIntegrity: {
12157
11971
  id: string;
@@ -12351,8 +12165,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
12351
12165
  _meta: object;
12352
12166
  _ctx_out: {};
12353
12167
  _input_in: {
12354
- message: string;
12355
12168
  subject: string;
12169
+ message: string;
12356
12170
  email?: string | null | undefined;
12357
12171
  screenshot?: string | null | undefined;
12358
12172
  logs?: any[][] | null | undefined;
@@ -12360,8 +12174,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
12360
12174
  logsError?: any[][] | null | undefined;
12361
12175
  };
12362
12176
  _input_out: {
12363
- message: string;
12364
12177
  subject: string;
12178
+ message: string;
12365
12179
  email?: string | null | undefined;
12366
12180
  screenshot?: string | null | undefined;
12367
12181
  logs?: any[][] | null | undefined;
@@ -12497,8 +12311,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
12497
12311
  }, unknown>>;
12498
12312
  };
12499
12313
  };
12500
- org: {
12501
- byId: {
12314
+ plan: {
12315
+ all: {
12502
12316
  query: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"query", {
12503
12317
  _config: import("@trpc/server").RootConfig<{
12504
12318
  ctx: {};
@@ -12522,38 +12336,94 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
12522
12336
  }>;
12523
12337
  _meta: object;
12524
12338
  _ctx_out: {};
12525
- _input_in: {
12526
- id: string;
12527
- };
12528
- _input_out: {
12529
- id: string;
12530
- };
12531
- _output_in: {
12532
- name: string;
12339
+ _input_in: {};
12340
+ _input_out: {};
12341
+ _output_in: ({
12342
+ codes: string[];
12533
12343
  id: string;
12534
- ownerId: string;
12535
- createdAt: Date;
12536
- planId: string;
12537
- stripeSubId: string | null;
12538
- stripeSubPaidUntil: Date | null;
12539
12344
  quotasId: string;
12540
- billingProfileStripeCustomerId: string | null;
12541
- };
12542
- _output_out: {
12543
- name: string;
12345
+ kind: "free" | "basic" | "advanced" | "pro";
12346
+ } & {
12347
+ quotas: {
12348
+ downloadBandwidth: bigint | null;
12349
+ downloadCount: bigint | null;
12350
+ uploadBandwidth: bigint | null;
12351
+ uploadCount: bigint | null;
12352
+ totalDataCount: bigint | null;
12353
+ totalStorageSize: bigint | null;
12354
+ perDataSize: bigint | null;
12355
+ } & {
12356
+ sentMails: {
12357
+ count: bigint | null;
12358
+ totalDataCount: bigint | null;
12359
+ totalStorageSize: bigint | null;
12360
+ perDataSize: bigint | null;
12361
+ totalCount: bigint | null;
12362
+ dataCount: bigint | null;
12363
+ dataSize: bigint | null;
12364
+ };
12365
+ receivedMails: {
12366
+ count: bigint | null;
12367
+ totalDataCount: bigint | null;
12368
+ totalStorageSize: bigint | null;
12369
+ perDataSize: bigint | null;
12370
+ totalCount: bigint | null;
12371
+ dataCount: bigint | null;
12372
+ dataSize: bigint | null;
12373
+ };
12374
+ };
12375
+ } & {
12376
+ price: {
12377
+ monthly: number;
12378
+ yearly: number;
12379
+ };
12380
+ })[];
12381
+ _output_out: ({
12382
+ codes: ("user_basic_month" | "user_basic_year" | "user_advanced_month" | "user_advanced_year" | "user_pro_month" | "user_pro_year")[];
12544
12383
  id: string;
12545
- ownerId: string;
12546
- createdAt: Date;
12547
- planId: string;
12548
- stripeSubId: string | null;
12549
- stripeSubPaidUntil: Date | null;
12550
12384
  quotasId: string;
12551
- billingProfileStripeCustomerId: string | null;
12552
- };
12385
+ kind: "free" | "basic" | "advanced" | "pro";
12386
+ } & {
12387
+ quotas: {
12388
+ downloadBandwidth: bigint | null;
12389
+ downloadCount: bigint | null;
12390
+ uploadBandwidth: bigint | null;
12391
+ uploadCount: bigint | null;
12392
+ totalDataCount: bigint | null;
12393
+ totalStorageSize: bigint | null;
12394
+ perDataSize: bigint | null;
12395
+ } & {
12396
+ sentMails: {
12397
+ count: bigint | null;
12398
+ totalDataCount: bigint | null;
12399
+ totalStorageSize: bigint | null;
12400
+ perDataSize: bigint | null;
12401
+ totalCount: bigint | null;
12402
+ dataCount: bigint | null;
12403
+ dataSize: bigint | null;
12404
+ };
12405
+ receivedMails: {
12406
+ count: bigint | null;
12407
+ totalDataCount: bigint | null;
12408
+ totalStorageSize: bigint | null;
12409
+ perDataSize: bigint | null;
12410
+ totalCount: bigint | null;
12411
+ dataCount: bigint | null;
12412
+ dataSize: bigint | null;
12413
+ };
12414
+ };
12415
+ } & {
12416
+ price: {
12417
+ monthly: number;
12418
+ yearly: number;
12419
+ };
12420
+ })[];
12553
12421
  }, unknown>>;
12554
12422
  };
12555
- cancelSubscription: {
12556
- mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
12423
+ };
12424
+ pseudonym: {
12425
+ askForUser: {
12426
+ query: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"query", {
12557
12427
  _config: import("@trpc/server").RootConfig<{
12558
12428
  ctx: {};
12559
12429
  meta: object;
@@ -12577,21 +12447,19 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
12577
12447
  _meta: object;
12578
12448
  _ctx_out: {};
12579
12449
  _input_in: {
12580
- waitUntilPeriodEnd: boolean;
12450
+ forUserId: string;
12451
+ validUntil?: Date | undefined;
12581
12452
  };
12582
12453
  _input_out: {
12583
- waitUntilPeriodEnd: boolean;
12584
- };
12585
- _output_in: {
12586
- isCancelled: boolean;
12587
- };
12588
- _output_out: {
12589
- isCancelled: boolean;
12454
+ forUserId: string;
12455
+ validUntil?: Date | undefined;
12590
12456
  };
12457
+ _output_in: string;
12458
+ _output_out: string;
12591
12459
  }, unknown>>;
12592
12460
  };
12593
- createSubscription: {
12594
- mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
12461
+ askForLabel: {
12462
+ query: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"query", {
12595
12463
  _config: import("@trpc/server").RootConfig<{
12596
12464
  ctx: {};
12597
12465
  meta: object;
@@ -12615,21 +12483,19 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
12615
12483
  _meta: object;
12616
12484
  _ctx_out: {};
12617
12485
  _input_in: {
12618
- planKind: "free" | "basic" | "advanced" | "pro";
12486
+ forLabel: string;
12487
+ validUntil?: Date | undefined;
12619
12488
  };
12620
12489
  _input_out: {
12621
- planKind: "free" | "basic" | "advanced" | "pro";
12622
- };
12623
- _output_in: {
12624
- url: string | null;
12625
- };
12626
- _output_out: {
12627
- url: string | null;
12490
+ forLabel: string;
12491
+ validUntil?: Date | undefined;
12628
12492
  };
12493
+ _output_in: string;
12494
+ _output_out: string;
12629
12495
  }, unknown>>;
12630
12496
  };
12631
- delete: {
12632
- mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
12497
+ cross: {
12498
+ query: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"query", {
12633
12499
  _config: import("@trpc/server").RootConfig<{
12634
12500
  ctx: {};
12635
12501
  meta: object;
@@ -12653,37 +12519,25 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
12653
12519
  _meta: object;
12654
12520
  _ctx_out: {};
12655
12521
  _input_in: {
12656
- id: string;
12522
+ lists: Record<string, string[]>;
12657
12523
  };
12658
12524
  _input_out: {
12659
- id: string;
12525
+ lists: Record<string, string[]>;
12660
12526
  };
12661
12527
  _output_in: {
12662
- name: string;
12663
- id: string;
12664
- ownerId: string;
12665
- createdAt: Date;
12666
- planId: string;
12667
- stripeSubId: string | null;
12668
- stripeSubPaidUntil: Date | null;
12669
- quotasId: string;
12670
- billingProfileStripeCustomerId: string | null;
12528
+ output: Record<string, Record<string, string[]>>;
12529
+ unknownIds: string[];
12671
12530
  };
12672
12531
  _output_out: {
12673
- name: string;
12674
- id: string;
12675
- ownerId: string;
12676
- createdAt: Date;
12677
- planId: string;
12678
- stripeSubId: string | null;
12679
- stripeSubPaidUntil: Date | null;
12680
- quotasId: string;
12681
- billingProfileStripeCustomerId: string | null;
12532
+ output: Record<string, Record<string, string[]>>;
12533
+ unknownIds: string[];
12682
12534
  };
12683
12535
  }, unknown>>;
12684
12536
  };
12685
- getSubscription: {
12686
- query: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"query", {
12537
+ };
12538
+ report: {
12539
+ create: {
12540
+ mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
12687
12541
  _config: import("@trpc/server").RootConfig<{
12688
12542
  ctx: {};
12689
12543
  meta: object;
@@ -12706,649 +12560,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
12706
12560
  }>;
12707
12561
  _meta: object;
12708
12562
  _ctx_out: {};
12709
- _input_in: {} | undefined;
12710
- _input_out: {} | undefined;
12711
- _output_in: {
12712
- subscription: {
12713
- id: string;
12714
- currency: string;
12715
- description: string | null;
12716
- status: "canceled" | "past_due" | "active" | "incomplete" | "incomplete_expired" | "paused" | "trialing" | "unpaid";
12717
- metadata: Record<string, string>;
12718
- created: number;
12719
- billingCycleAnchor: number;
12720
- cancelAt: number | null;
12721
- cancelAtPeriodEnd: boolean;
12722
- canceledAt: number | null;
12723
- daysUntilDue: number | null;
12724
- startDate: number;
12725
- endedAt: number | null;
12726
- trialEnd: number | null;
12727
- trialStart: number | null;
12728
- } | null;
12729
- };
12730
- _output_out: {
12731
- subscription: {
12732
- id: string;
12733
- currency: string;
12734
- description: string | null;
12735
- status: "canceled" | "past_due" | "active" | "incomplete" | "incomplete_expired" | "paused" | "trialing" | "unpaid";
12736
- metadata: Record<string, string>;
12737
- created: number;
12738
- billingCycleAnchor: number;
12739
- cancelAt: number | null;
12740
- cancelAtPeriodEnd: boolean;
12741
- canceledAt: number | null;
12742
- daysUntilDue: number | null;
12743
- startDate: number;
12744
- endedAt: number | null;
12745
- trialEnd: number | null;
12746
- trialStart: number | null;
12747
- } | null;
12748
- };
12749
- }, unknown>>;
12750
- };
12751
- limits: {
12752
- query: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"query", {
12753
- _config: import("@trpc/server").RootConfig<{
12754
- ctx: {};
12755
- meta: object;
12756
- errorShape: {
12757
- message: string;
12758
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
12759
- data: _trpc_server_dist_error_formatter.DefaultErrorData;
12760
- } | {
12761
- data: {
12762
- zodError: import("zod").typeToFlattenedError<any, string> | null;
12763
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
12764
- httpStatus: number;
12765
- path?: string;
12766
- stack?: string;
12767
- };
12768
- message: string;
12769
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
12770
- };
12771
- transformer: typeof superjson;
12772
- }>;
12773
- _meta: object;
12774
- _ctx_out: {};
12775
- _input_in: {
12776
- id: string;
12777
- appId: string;
12778
- };
12779
- _input_out: {
12780
- id: string;
12781
- appId: string;
12782
- };
12783
- _output_in: {
12784
- quotas: {
12785
- perDataSize: bigint | null;
12786
- totalStorageSize: bigint | null;
12787
- downloadCount: bigint | null;
12788
- uploadCount: bigint | null;
12789
- totalDataCount: bigint | null;
12790
- bandwith: bigint | null;
12791
- };
12792
- appId: string;
12793
- orgId: string;
12794
- settings: {
12795
- perDataSizeLimit: bigint | null;
12796
- bandwidthLimit: bigint | null;
12797
- totalStorageSizeLimit: bigint | null;
12798
- payForUsers: boolean;
12799
- };
12800
- metrics: {
12801
- downloadBandwidth: bigint;
12802
- downloadCount: bigint;
12803
- uploadBandwidth: bigint;
12804
- uploadCount: bigint;
12805
- };
12806
- type: "app";
12807
- } | {
12808
- quotas: {};
12809
- appId: string;
12810
- orgId: string;
12811
- settings: {
12812
- perDataSizeLimit: bigint | null;
12813
- bandwidthLimit: bigint | null;
12814
- totalStorageSizeLimit: bigint | null;
12815
- payForUsers: boolean;
12816
- };
12817
- metrics: {
12818
- downloadBandwidth: bigint;
12819
- downloadCount: bigint;
12820
- uploadBandwidth: bigint;
12821
- uploadCount: bigint;
12822
- };
12823
- type: "org";
12824
- userLimitedQuotas: {} | null;
12825
- };
12826
- _output_out: {
12827
- quotas: {
12828
- perDataSize: bigint | null;
12829
- totalStorageSize: bigint | null;
12830
- downloadCount: bigint | null;
12831
- uploadCount: bigint | null;
12832
- totalDataCount: bigint | null;
12833
- bandwith: bigint | null;
12834
- };
12835
- appId: string;
12836
- orgId: string;
12837
- settings: {
12838
- perDataSizeLimit: bigint | null;
12839
- bandwidthLimit: bigint | null;
12840
- totalStorageSizeLimit: bigint | null;
12841
- payForUsers: boolean;
12842
- };
12843
- metrics: {
12844
- downloadBandwidth: bigint;
12845
- downloadCount: bigint;
12846
- uploadBandwidth: bigint;
12847
- uploadCount: bigint;
12848
- };
12849
- type: "app";
12850
- } | {
12851
- quotas: {};
12852
- appId: string;
12853
- orgId: string;
12854
- settings: {
12855
- perDataSizeLimit: bigint | null;
12856
- bandwidthLimit: bigint | null;
12857
- totalStorageSizeLimit: bigint | null;
12858
- payForUsers: boolean;
12859
- };
12860
- metrics: {
12861
- downloadBandwidth: bigint;
12862
- downloadCount: bigint;
12863
- uploadBandwidth: bigint;
12864
- uploadCount: bigint;
12865
- };
12866
- type: "org";
12867
- userLimitedQuotas: {} | null;
12868
- };
12869
- }, unknown>>;
12870
- };
12871
- mine: {
12872
- query: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"query", {
12873
- _config: import("@trpc/server").RootConfig<{
12874
- ctx: {};
12875
- meta: object;
12876
- errorShape: {
12877
- message: string;
12878
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
12879
- data: _trpc_server_dist_error_formatter.DefaultErrorData;
12880
- } | {
12881
- data: {
12882
- zodError: import("zod").typeToFlattenedError<any, string> | null;
12883
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
12884
- httpStatus: number;
12885
- path?: string;
12886
- stack?: string;
12887
- };
12888
- message: string;
12889
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
12890
- };
12891
- transformer: typeof superjson;
12892
- }>;
12893
- _meta: object;
12894
- _ctx_out: {};
12895
- _input_in: {};
12896
- _input_out: {};
12897
- _output_in: {
12898
- name: string;
12899
- id: string;
12900
- ownerId: string;
12901
- createdAt: Date;
12902
- planId: string;
12903
- stripeSubId: string | null;
12904
- stripeSubPaidUntil: Date | null;
12905
- quotasId: string;
12906
- billingProfileStripeCustomerId: string | null;
12907
- }[];
12908
- _output_out: {
12909
- name: string;
12910
- id: string;
12911
- ownerId: string;
12912
- createdAt: Date;
12913
- planId: string;
12914
- stripeSubId: string | null;
12915
- stripeSubPaidUntil: Date | null;
12916
- quotasId: string;
12917
- billingProfileStripeCustomerId: string | null;
12918
- }[];
12919
- }, unknown>>;
12920
- };
12921
- removeMember: {
12922
- mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
12923
- _config: import("@trpc/server").RootConfig<{
12924
- ctx: {};
12925
- meta: object;
12926
- errorShape: {
12927
- message: string;
12928
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
12929
- data: _trpc_server_dist_error_formatter.DefaultErrorData;
12930
- } | {
12931
- data: {
12932
- zodError: import("zod").typeToFlattenedError<any, string> | null;
12933
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
12934
- httpStatus: number;
12935
- path?: string;
12936
- stack?: string;
12937
- };
12938
- message: string;
12939
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
12940
- };
12941
- transformer: typeof superjson;
12942
- }>;
12943
- _meta: object;
12944
- _ctx_out: {};
12945
- _input_in: {
12946
- id: string;
12947
- userId: string;
12948
- };
12949
- _input_out: {
12950
- id: string;
12951
- userId: string;
12952
- };
12953
- _output_in: {
12954
- isRemoved: boolean;
12955
- };
12956
- _output_out: {
12957
- isRemoved: boolean;
12958
- };
12959
- }, unknown>>;
12960
- };
12961
- transferOwnership: {
12962
- mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
12963
- _config: import("@trpc/server").RootConfig<{
12964
- ctx: {};
12965
- meta: object;
12966
- errorShape: {
12967
- message: string;
12968
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
12969
- data: _trpc_server_dist_error_formatter.DefaultErrorData;
12970
- } | {
12971
- data: {
12972
- zodError: import("zod").typeToFlattenedError<any, string> | null;
12973
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
12974
- httpStatus: number;
12975
- path?: string;
12976
- stack?: string;
12977
- };
12978
- message: string;
12979
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
12980
- };
12981
- transformer: typeof superjson;
12982
- }>;
12983
- _meta: object;
12984
- _ctx_out: {};
12985
- _input_in: {
12986
- id: string;
12987
- userId: string;
12988
- };
12989
- _input_out: {
12990
- id: string;
12991
- userId: string;
12992
- };
12993
- _output_in: {
12994
- name: string;
12995
- id: string;
12996
- ownerId: string;
12997
- createdAt: Date;
12998
- planId: string;
12999
- stripeSubId: string | null;
13000
- stripeSubPaidUntil: Date | null;
13001
- quotasId: string;
13002
- billingProfileStripeCustomerId: string | null;
13003
- };
13004
- _output_out: {
13005
- name: string;
13006
- id: string;
13007
- ownerId: string;
13008
- createdAt: Date;
13009
- planId: string;
13010
- stripeSubId: string | null;
13011
- stripeSubPaidUntil: Date | null;
13012
- quotasId: string;
13013
- billingProfileStripeCustomerId: string | null;
13014
- };
13015
- }, unknown>>;
13016
- };
13017
- updateRole: {
13018
- mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
13019
- _config: import("@trpc/server").RootConfig<{
13020
- ctx: {};
13021
- meta: object;
13022
- errorShape: {
13023
- message: string;
13024
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
13025
- data: _trpc_server_dist_error_formatter.DefaultErrorData;
13026
- } | {
13027
- data: {
13028
- zodError: import("zod").typeToFlattenedError<any, string> | null;
13029
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
13030
- httpStatus: number;
13031
- path?: string;
13032
- stack?: string;
13033
- };
13034
- message: string;
13035
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
13036
- };
13037
- transformer: typeof superjson;
13038
- }>;
13039
- _meta: object;
13040
- _ctx_out: {};
13041
- _input_in: {
13042
- id: string;
13043
- role: "user" | "admin";
13044
- userId: string;
13045
- };
13046
- _input_out: {
13047
- id: string;
13048
- role: "user" | "admin";
13049
- userId: string;
13050
- };
13051
- _output_in: {
13052
- createdAt: Date;
13053
- role: "user" | "admin";
13054
- userId: string;
13055
- orgId: string;
13056
- };
13057
- _output_out: {
13058
- createdAt: Date;
13059
- role: "user" | "admin";
13060
- userId: string;
13061
- orgId: string;
13062
- };
13063
- }, unknown>>;
13064
- };
13065
- update: {
13066
- mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
13067
- _config: import("@trpc/server").RootConfig<{
13068
- ctx: {};
13069
- meta: object;
13070
- errorShape: {
13071
- message: string;
13072
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
13073
- data: _trpc_server_dist_error_formatter.DefaultErrorData;
13074
- } | {
13075
- data: {
13076
- zodError: import("zod").typeToFlattenedError<any, string> | null;
13077
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
13078
- httpStatus: number;
13079
- path?: string;
13080
- stack?: string;
13081
- };
13082
- message: string;
13083
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
13084
- };
13085
- transformer: typeof superjson;
13086
- }>;
13087
- _meta: object;
13088
- _ctx_out: {};
13089
- _input_in: {
13090
- name: string;
13091
- id: string;
13092
- billingProfileStripeCustomerId: string | null;
13093
- };
13094
- _input_out: {
13095
- name: string;
13096
- id: string;
13097
- billingProfileStripeCustomerId: string | null;
13098
- };
13099
- _output_in: {
13100
- name: string;
13101
- id: string;
13102
- ownerId: string;
13103
- createdAt: Date;
13104
- planId: string;
13105
- stripeSubId: string | null;
13106
- stripeSubPaidUntil: Date | null;
13107
- quotasId: string;
13108
- billingProfileStripeCustomerId: string | null;
13109
- };
13110
- _output_out: {
13111
- name: string;
13112
- id: string;
13113
- ownerId: string;
13114
- createdAt: Date;
13115
- planId: string;
13116
- stripeSubId: string | null;
13117
- stripeSubPaidUntil: Date | null;
13118
- quotasId: string;
13119
- billingProfileStripeCustomerId: string | null;
13120
- };
13121
- }, unknown>>;
13122
- };
13123
- };
13124
- plan: {
13125
- all: {
13126
- query: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"query", {
13127
- _config: import("@trpc/server").RootConfig<{
13128
- ctx: {};
13129
- meta: object;
13130
- errorShape: {
13131
- message: string;
13132
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
13133
- data: _trpc_server_dist_error_formatter.DefaultErrorData;
13134
- } | {
13135
- data: {
13136
- zodError: import("zod").typeToFlattenedError<any, string> | null;
13137
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
13138
- httpStatus: number;
13139
- path?: string;
13140
- stack?: string;
13141
- };
13142
- message: string;
13143
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
13144
- };
13145
- transformer: typeof superjson;
13146
- }>;
13147
- _meta: object;
13148
- _ctx_out: {};
13149
- _input_in: {};
13150
- _input_out: {};
13151
- _output_in: ({
13152
- id: string;
13153
- quotasId: string;
13154
- stripePricesId: string | null;
13155
- kind: "free" | "basic" | "advanced" | "pro";
13156
- } & {
13157
- quotas: {
13158
- perDataSize: bigint | null;
13159
- totalStorageSize: bigint | null;
13160
- downloadBandwidth: bigint | null;
13161
- downloadCount: bigint | null;
13162
- uploadBandwidth: bigint | null;
13163
- uploadCount: bigint | null;
13164
- totalDataCount: bigint | null;
13165
- } & {
13166
- sentMails: {
13167
- count: bigint | null;
13168
- perDataSize: bigint | null;
13169
- totalStorageSize: bigint | null;
13170
- totalDataCount: bigint | null;
13171
- totalCount: bigint | null;
13172
- dataCount: bigint | null;
13173
- dataSize: bigint | null;
13174
- };
13175
- };
13176
- } & {
13177
- price: number;
13178
- })[];
13179
- _output_out: ({
13180
- id: string;
13181
- quotasId: string;
13182
- stripePricesId: string | null;
13183
- kind: "free" | "basic" | "advanced" | "pro";
13184
- } & {
13185
- quotas: {
13186
- perDataSize: bigint | null;
13187
- totalStorageSize: bigint | null;
13188
- downloadBandwidth: bigint | null;
13189
- downloadCount: bigint | null;
13190
- uploadBandwidth: bigint | null;
13191
- uploadCount: bigint | null;
13192
- totalDataCount: bigint | null;
13193
- } & {
13194
- sentMails: {
13195
- count: bigint | null;
13196
- perDataSize: bigint | null;
13197
- totalStorageSize: bigint | null;
13198
- totalDataCount: bigint | null;
13199
- totalCount: bigint | null;
13200
- dataCount: bigint | null;
13201
- dataSize: bigint | null;
13202
- };
13203
- };
13204
- } & {
13205
- price: number;
13206
- })[];
13207
- }, unknown>>;
13208
- };
13209
- };
13210
- pseudonym: {
13211
- askForUser: {
13212
- query: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"query", {
13213
- _config: import("@trpc/server").RootConfig<{
13214
- ctx: {};
13215
- meta: object;
13216
- errorShape: {
13217
- message: string;
13218
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
13219
- data: _trpc_server_dist_error_formatter.DefaultErrorData;
13220
- } | {
13221
- data: {
13222
- zodError: import("zod").typeToFlattenedError<any, string> | null;
13223
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
13224
- httpStatus: number;
13225
- path?: string;
13226
- stack?: string;
13227
- };
13228
- message: string;
13229
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
13230
- };
13231
- transformer: typeof superjson;
13232
- }>;
13233
- _meta: object;
13234
- _ctx_out: {};
13235
- _input_in: {
13236
- forUserId: string;
13237
- validUntil?: Date | undefined;
13238
- };
13239
- _input_out: {
13240
- forUserId: string;
13241
- validUntil?: Date | undefined;
13242
- };
13243
- _output_in: string;
13244
- _output_out: string;
13245
- }, unknown>>;
13246
- };
13247
- askForLabel: {
13248
- query: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"query", {
13249
- _config: import("@trpc/server").RootConfig<{
13250
- ctx: {};
13251
- meta: object;
13252
- errorShape: {
13253
- message: string;
13254
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
13255
- data: _trpc_server_dist_error_formatter.DefaultErrorData;
13256
- } | {
13257
- data: {
13258
- zodError: import("zod").typeToFlattenedError<any, string> | null;
13259
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
13260
- httpStatus: number;
13261
- path?: string;
13262
- stack?: string;
13263
- };
13264
- message: string;
13265
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
13266
- };
13267
- transformer: typeof superjson;
13268
- }>;
13269
- _meta: object;
13270
- _ctx_out: {};
13271
- _input_in: {
13272
- forLabel: string;
13273
- validUntil?: Date | undefined;
13274
- };
13275
- _input_out: {
13276
- forLabel: string;
13277
- validUntil?: Date | undefined;
13278
- };
13279
- _output_in: string;
13280
- _output_out: string;
13281
- }, unknown>>;
13282
- };
13283
- cross: {
13284
- query: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"query", {
13285
- _config: import("@trpc/server").RootConfig<{
13286
- ctx: {};
13287
- meta: object;
13288
- errorShape: {
13289
- message: string;
13290
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
13291
- data: _trpc_server_dist_error_formatter.DefaultErrorData;
13292
- } | {
13293
- data: {
13294
- zodError: import("zod").typeToFlattenedError<any, string> | null;
13295
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
13296
- httpStatus: number;
13297
- path?: string;
13298
- stack?: string;
13299
- };
13300
- message: string;
13301
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
13302
- };
13303
- transformer: typeof superjson;
13304
- }>;
13305
- _meta: object;
13306
- _ctx_out: {};
13307
- _input_in: {
13308
- lists: Record<string, string[]>;
13309
- };
13310
- _input_out: {
13311
- lists: Record<string, string[]>;
13312
- };
13313
- _output_in: {
13314
- output: Record<string, Record<string, string[]>>;
13315
- unknownIds: string[];
13316
- };
13317
- _output_out: {
13318
- output: Record<string, Record<string, string[]>>;
13319
- unknownIds: string[];
13320
- };
13321
- }, unknown>>;
13322
- };
13323
- };
13324
- report: {
13325
- create: {
13326
- mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
13327
- _config: import("@trpc/server").RootConfig<{
13328
- ctx: {};
13329
- meta: object;
13330
- errorShape: {
13331
- message: string;
13332
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
13333
- data: _trpc_server_dist_error_formatter.DefaultErrorData;
13334
- } | {
13335
- data: {
13336
- zodError: import("zod").typeToFlattenedError<any, string> | null;
13337
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
13338
- httpStatus: number;
13339
- path?: string;
13340
- stack?: string;
13341
- };
13342
- message: string;
13343
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
13344
- };
13345
- transformer: typeof superjson;
13346
- }>;
13347
- _meta: object;
13348
- _ctx_out: {};
13349
- _input_in: {
13350
- userId: string;
13351
- message?: string | undefined;
12563
+ _input_in: {
12564
+ userId: string;
12565
+ message?: string | undefined;
13352
12566
  };
13353
12567
  _input_out: {
13354
12568
  userId: string;
@@ -13449,7 +12663,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
13449
12663
  _input_in: {
13450
12664
  appUrl: string;
13451
12665
  appId?: string | undefined;
13452
- orgId?: string | undefined;
13453
12666
  scopes?: {
13454
12667
  email: boolean;
13455
12668
  } | undefined;
@@ -13457,7 +12670,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
13457
12670
  _input_out: {
13458
12671
  appUrl: string;
13459
12672
  appId?: string | undefined;
13460
- orgId?: string | undefined;
13461
12673
  scopes?: {
13462
12674
  email: boolean;
13463
12675
  } | undefined;
@@ -14080,12 +13292,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
14080
13292
  }>;
14081
13293
  _meta: object;
14082
13294
  _ctx_out: {};
14083
- _input_in: {
14084
- id: string;
14085
- };
14086
- _input_out: {
14087
- id: string;
14088
- };
13295
+ _input_in: {};
13296
+ _input_out: {};
14089
13297
  _output_in: {
14090
13298
  url: string | null;
14091
13299
  };
@@ -14183,12 +13391,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
14183
13391
  accountRole: _prisma_client.AccountRole;
14184
13392
  userId: string;
14185
13393
  userRole: _prisma_client.UserRole;
14186
- org: {
14187
- id: string;
14188
- name: string;
14189
- plan: _prisma_client.OrganizationPlanKind;
14190
- role: _prisma_client.OrganizationRole;
14191
- };
13394
+ userPlan: _prisma_client.PlanKind;
14192
13395
  };
14193
13396
  req: {
14194
13397
  headers: Headers;
@@ -14211,17 +13414,20 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
14211
13414
  id: string;
14212
13415
  currency: string;
14213
13416
  total: number;
14214
- created: number;
13417
+ paid: boolean;
14215
13418
  amountDue: number;
14216
13419
  amountPaid: number;
14217
13420
  amountRemaining: number;
13421
+ created: number;
14218
13422
  accountCountry: string | null;
14219
13423
  accountName: string | null;
13424
+ applicationFeeAmount: number | null;
14220
13425
  attemptCount: number;
14221
13426
  attempted: boolean;
14222
13427
  dueDate: number | null;
14223
13428
  endingBalance: number | null;
14224
13429
  receiptNumber: string | null;
13430
+ tax: number | null;
14225
13431
  hostedInvoiceUrl?: string | null | undefined;
14226
13432
  invoicePdf?: string | null | undefined;
14227
13433
  };
@@ -14229,17 +13435,20 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
14229
13435
  id: string;
14230
13436
  currency: string;
14231
13437
  total: number;
14232
- created: number;
13438
+ paid: boolean;
14233
13439
  amountDue: number;
14234
13440
  amountPaid: number;
14235
13441
  amountRemaining: number;
13442
+ created: number;
14236
13443
  accountCountry: string | null;
14237
13444
  accountName: string | null;
13445
+ applicationFeeAmount: number | null;
14238
13446
  attemptCount: number;
14239
13447
  attempted: boolean;
14240
13448
  dueDate: number | null;
14241
13449
  endingBalance: number | null;
14242
13450
  receiptNumber: string | null;
13451
+ tax: number | null;
14243
13452
  hostedInvoiceUrl?: string | null | undefined;
14244
13453
  invoicePdf?: string | null | undefined;
14245
13454
  };
@@ -14290,12 +13499,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
14290
13499
  accountRole: _prisma_client.AccountRole;
14291
13500
  userId: string;
14292
13501
  userRole: _prisma_client.UserRole;
14293
- org: {
14294
- id: string;
14295
- name: string;
14296
- plan: _prisma_client.OrganizationPlanKind;
14297
- role: _prisma_client.OrganizationRole;
14298
- };
13502
+ userPlan: _prisma_client.PlanKind;
14299
13503
  };
14300
13504
  req: {
14301
13505
  headers: Headers;
@@ -14316,17 +13520,20 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
14316
13520
  id: string;
14317
13521
  currency: string;
14318
13522
  total: number;
14319
- created: number;
13523
+ paid: boolean;
14320
13524
  amountDue: number;
14321
13525
  amountPaid: number;
14322
13526
  amountRemaining: number;
13527
+ created: number;
14323
13528
  accountCountry: string | null;
14324
13529
  accountName: string | null;
13530
+ applicationFeeAmount: number | null;
14325
13531
  attemptCount: number;
14326
13532
  attempted: boolean;
14327
13533
  dueDate: number | null;
14328
13534
  endingBalance: number | null;
14329
13535
  receiptNumber: string | null;
13536
+ tax: number | null;
14330
13537
  hostedInvoiceUrl?: string | null | undefined;
14331
13538
  invoicePdf?: string | null | undefined;
14332
13539
  }[];
@@ -14334,17 +13541,20 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
14334
13541
  id: string;
14335
13542
  currency: string;
14336
13543
  total: number;
14337
- created: number;
13544
+ paid: boolean;
14338
13545
  amountDue: number;
14339
13546
  amountPaid: number;
14340
13547
  amountRemaining: number;
13548
+ created: number;
14341
13549
  accountCountry: string | null;
14342
13550
  accountName: string | null;
13551
+ applicationFeeAmount: number | null;
14343
13552
  attemptCount: number;
14344
13553
  attempted: boolean;
14345
13554
  dueDate: number | null;
14346
13555
  endingBalance: number | null;
14347
13556
  receiptNumber: string | null;
13557
+ tax: number | null;
14348
13558
  hostedInvoiceUrl?: string | null | undefined;
14349
13559
  invoicePdf?: string | null | undefined;
14350
13560
  }[];
@@ -14921,12 +14131,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
14921
14131
  accountRole: _prisma_client.AccountRole;
14922
14132
  userId: string;
14923
14133
  userRole: _prisma_client.UserRole;
14924
- org: {
14925
- id: string;
14926
- name: string;
14927
- plan: _prisma_client.OrganizationPlanKind;
14928
- role: _prisma_client.OrganizationRole;
14929
- };
14134
+ userPlan: _prisma_client.PlanKind;
14930
14135
  };
14931
14136
  req: {
14932
14137
  headers: Headers;
@@ -15000,12 +14205,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
15000
14205
  accountRole: _prisma_client.AccountRole;
15001
14206
  userId: string;
15002
14207
  userRole: _prisma_client.UserRole;
15003
- org: {
15004
- id: string;
15005
- name: string;
15006
- plan: _prisma_client.OrganizationPlanKind;
15007
- role: _prisma_client.OrganizationRole;
15008
- };
14208
+ userPlan: _prisma_client.PlanKind;
15009
14209
  };
15010
14210
  req: {
15011
14211
  headers: Headers;
@@ -15023,18 +14223,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
15023
14223
  appId: string;
15024
14224
  };
15025
14225
  _output_in: {
15026
- name: string;
15027
- id: string;
15028
- ownerId: string;
15029
- blocked: boolean;
15030
- color: string | null;
15031
- logo: string | null;
15032
- createdAt: Date;
15033
- updatedAt: Date;
15034
- origin: string[];
15035
- planId: string | null;
15036
- lastMetricsReset: Date;
15037
- quotasId: string;
15038
14226
  plan: {
15039
14227
  name: string;
15040
14228
  id: string;
@@ -15042,6 +14230,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
15042
14230
  canHaveDatabase?: boolean | undefined;
15043
14231
  } & {
15044
14232
  quotas: {
14233
+ totalStorageSize: bigint | null;
14234
+ perDataSize: bigint | null;
15045
14235
  devs: bigint | null;
15046
14236
  devsBase: bigint | null;
15047
14237
  devsUnit: bigint | null;
@@ -15050,7 +14240,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
15050
14240
  usersBase: bigint | null;
15051
14241
  usersUnit: bigint | null;
15052
14242
  usersPrice: number | null;
15053
- perDataSize: bigint | null;
15054
14243
  perDataSizeBase: bigint | null;
15055
14244
  perDataSizeUnit: bigint | null;
15056
14245
  perDataSizePrice: number | null;
@@ -15058,24 +14247,36 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
15058
14247
  bandwidthBase: bigint | null;
15059
14248
  bandwidthUnit: bigint | null;
15060
14249
  bandwidthPrice: number | null;
15061
- totalStorageSize: bigint | null;
15062
14250
  totalStorageSizeBase: bigint | null;
15063
14251
  totalStorageSizeUnit: bigint | null;
15064
14252
  totalStorageSizePrice: number | null;
15065
14253
  baseQuotasId: string;
15066
14254
  } & {
15067
14255
  baseQuotas: {
15068
- perDataSize: bigint | null;
15069
- totalStorageSize: bigint | null;
15070
14256
  downloadBandwidth: bigint | null;
15071
14257
  downloadCount: bigint | null;
15072
14258
  uploadBandwidth: bigint | null;
15073
14259
  uploadCount: bigint | null;
15074
14260
  totalDataCount: bigint | null;
14261
+ totalStorageSize: bigint | null;
14262
+ perDataSize: bigint | null;
14263
+ receivedMailsId: string;
15075
14264
  sentMailsId: string;
15076
14265
  };
15077
14266
  };
15078
14267
  };
14268
+ name: string;
14269
+ id: string;
14270
+ ownerId: string;
14271
+ blocked: boolean;
14272
+ color: string | null;
14273
+ logo: string | null;
14274
+ createdAt: Date;
14275
+ updatedAt: Date;
14276
+ origin: string[];
14277
+ planId: string | null;
14278
+ lastMetricsReset: Date;
14279
+ quotasId: string;
15079
14280
  owner: {
15080
14281
  user: {
15081
14282
  id: string;
@@ -15093,18 +14294,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
15093
14294
  usersCount: number;
15094
14295
  };
15095
14296
  _output_out: {
15096
- name: string;
15097
- id: string;
15098
- ownerId: string;
15099
- blocked: boolean;
15100
- color: string | null;
15101
- logo: string | null;
15102
- createdAt: Date;
15103
- updatedAt: Date;
15104
- origin: string[];
15105
- planId: string | null;
15106
- lastMetricsReset: Date;
15107
- quotasId: string;
15108
14297
  plan: {
15109
14298
  name: string;
15110
14299
  id: string;
@@ -15112,6 +14301,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
15112
14301
  canHaveDatabase: boolean;
15113
14302
  } & {
15114
14303
  quotas: {
14304
+ totalStorageSize: bigint | null;
14305
+ perDataSize: bigint | null;
15115
14306
  devs: bigint | null;
15116
14307
  devsBase: bigint | null;
15117
14308
  devsUnit: bigint | null;
@@ -15120,7 +14311,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
15120
14311
  usersBase: bigint | null;
15121
14312
  usersUnit: bigint | null;
15122
14313
  usersPrice: number | null;
15123
- perDataSize: bigint | null;
15124
14314
  perDataSizeBase: bigint | null;
15125
14315
  perDataSizeUnit: bigint | null;
15126
14316
  perDataSizePrice: number | null;
@@ -15128,24 +14318,36 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
15128
14318
  bandwidthBase: bigint | null;
15129
14319
  bandwidthUnit: bigint | null;
15130
14320
  bandwidthPrice: number | null;
15131
- totalStorageSize: bigint | null;
15132
14321
  totalStorageSizeBase: bigint | null;
15133
14322
  totalStorageSizeUnit: bigint | null;
15134
14323
  totalStorageSizePrice: number | null;
15135
14324
  baseQuotasId: string;
15136
14325
  } & {
15137
14326
  baseQuotas: {
15138
- perDataSize: bigint | null;
15139
- totalStorageSize: bigint | null;
15140
14327
  downloadBandwidth: bigint | null;
15141
14328
  downloadCount: bigint | null;
15142
14329
  uploadBandwidth: bigint | null;
15143
14330
  uploadCount: bigint | null;
15144
14331
  totalDataCount: bigint | null;
14332
+ totalStorageSize: bigint | null;
14333
+ perDataSize: bigint | null;
14334
+ receivedMailsId: string;
15145
14335
  sentMailsId: string;
15146
14336
  };
15147
14337
  };
15148
14338
  };
14339
+ name: string;
14340
+ id: string;
14341
+ ownerId: string;
14342
+ blocked: boolean;
14343
+ color: string | null;
14344
+ logo: string | null;
14345
+ createdAt: Date;
14346
+ updatedAt: Date;
14347
+ origin: string[];
14348
+ planId: string | null;
14349
+ lastMetricsReset: Date;
14350
+ quotasId: string;
15149
14351
  owner: {
15150
14352
  user: {
15151
14353
  id: string;
@@ -15195,18 +14397,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
15195
14397
  sortBy: "updatedAt" | "users" | "updatedAt_desc" | "updatedAt_asc" | "users_desc" | "users_asc";
15196
14398
  };
15197
14399
  _output_in: {
15198
- name: string;
15199
- id: string;
15200
- ownerId: string;
15201
- blocked: boolean;
15202
- color: string | null;
15203
- logo: string | null;
15204
- createdAt: Date;
15205
- updatedAt: Date;
15206
- origin: string[];
15207
- planId: string | null;
15208
- lastMetricsReset: Date;
15209
- quotasId: string;
15210
14400
  plan: {
15211
14401
  name: string;
15212
14402
  id: string;
@@ -15214,6 +14404,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
15214
14404
  canHaveDatabase?: boolean | undefined;
15215
14405
  } & {
15216
14406
  quotas: {
14407
+ totalStorageSize: bigint | null;
14408
+ perDataSize: bigint | null;
15217
14409
  devs: bigint | null;
15218
14410
  devsBase: bigint | null;
15219
14411
  devsUnit: bigint | null;
@@ -15222,7 +14414,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
15222
14414
  usersBase: bigint | null;
15223
14415
  usersUnit: bigint | null;
15224
14416
  usersPrice: number | null;
15225
- perDataSize: bigint | null;
15226
14417
  perDataSizeBase: bigint | null;
15227
14418
  perDataSizeUnit: bigint | null;
15228
14419
  perDataSizePrice: number | null;
@@ -15230,24 +14421,36 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
15230
14421
  bandwidthBase: bigint | null;
15231
14422
  bandwidthUnit: bigint | null;
15232
14423
  bandwidthPrice: number | null;
15233
- totalStorageSize: bigint | null;
15234
14424
  totalStorageSizeBase: bigint | null;
15235
14425
  totalStorageSizeUnit: bigint | null;
15236
14426
  totalStorageSizePrice: number | null;
15237
14427
  baseQuotasId: string;
15238
14428
  } & {
15239
14429
  baseQuotas: {
15240
- perDataSize: bigint | null;
15241
- totalStorageSize: bigint | null;
15242
14430
  downloadBandwidth: bigint | null;
15243
14431
  downloadCount: bigint | null;
15244
14432
  uploadBandwidth: bigint | null;
15245
14433
  uploadCount: bigint | null;
15246
14434
  totalDataCount: bigint | null;
14435
+ totalStorageSize: bigint | null;
14436
+ perDataSize: bigint | null;
14437
+ receivedMailsId: string;
15247
14438
  sentMailsId: string;
15248
14439
  };
15249
14440
  };
15250
14441
  };
14442
+ name: string;
14443
+ id: string;
14444
+ ownerId: string;
14445
+ blocked: boolean;
14446
+ color: string | null;
14447
+ logo: string | null;
14448
+ createdAt: Date;
14449
+ updatedAt: Date;
14450
+ origin: string[];
14451
+ planId: string | null;
14452
+ lastMetricsReset: Date;
14453
+ quotasId: string;
15251
14454
  owner: {
15252
14455
  user: {
15253
14456
  id: string;
@@ -15265,18 +14468,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
15265
14468
  usersCount: number;
15266
14469
  }[];
15267
14470
  _output_out: {
15268
- name: string;
15269
- id: string;
15270
- ownerId: string;
15271
- blocked: boolean;
15272
- color: string | null;
15273
- logo: string | null;
15274
- createdAt: Date;
15275
- updatedAt: Date;
15276
- origin: string[];
15277
- planId: string | null;
15278
- lastMetricsReset: Date;
15279
- quotasId: string;
15280
14471
  plan: {
15281
14472
  name: string;
15282
14473
  id: string;
@@ -15284,6 +14475,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
15284
14475
  canHaveDatabase: boolean;
15285
14476
  } & {
15286
14477
  quotas: {
14478
+ totalStorageSize: bigint | null;
14479
+ perDataSize: bigint | null;
15287
14480
  devs: bigint | null;
15288
14481
  devsBase: bigint | null;
15289
14482
  devsUnit: bigint | null;
@@ -15292,7 +14485,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
15292
14485
  usersBase: bigint | null;
15293
14486
  usersUnit: bigint | null;
15294
14487
  usersPrice: number | null;
15295
- perDataSize: bigint | null;
15296
14488
  perDataSizeBase: bigint | null;
15297
14489
  perDataSizeUnit: bigint | null;
15298
14490
  perDataSizePrice: number | null;
@@ -15300,24 +14492,36 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
15300
14492
  bandwidthBase: bigint | null;
15301
14493
  bandwidthUnit: bigint | null;
15302
14494
  bandwidthPrice: number | null;
15303
- totalStorageSize: bigint | null;
15304
14495
  totalStorageSizeBase: bigint | null;
15305
14496
  totalStorageSizeUnit: bigint | null;
15306
14497
  totalStorageSizePrice: number | null;
15307
14498
  baseQuotasId: string;
15308
14499
  } & {
15309
14500
  baseQuotas: {
15310
- perDataSize: bigint | null;
15311
- totalStorageSize: bigint | null;
15312
14501
  downloadBandwidth: bigint | null;
15313
14502
  downloadCount: bigint | null;
15314
14503
  uploadBandwidth: bigint | null;
15315
14504
  uploadCount: bigint | null;
15316
14505
  totalDataCount: bigint | null;
14506
+ totalStorageSize: bigint | null;
14507
+ perDataSize: bigint | null;
14508
+ receivedMailsId: string;
15317
14509
  sentMailsId: string;
15318
14510
  };
15319
14511
  };
15320
14512
  };
14513
+ name: string;
14514
+ id: string;
14515
+ ownerId: string;
14516
+ blocked: boolean;
14517
+ color: string | null;
14518
+ logo: string | null;
14519
+ createdAt: Date;
14520
+ updatedAt: Date;
14521
+ origin: string[];
14522
+ planId: string | null;
14523
+ lastMetricsReset: Date;
14524
+ quotasId: string;
15321
14525
  owner: {
15322
14526
  user: {
15323
14527
  id: string;
@@ -15388,156 +14592,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
15388
14592
  };
15389
14593
  }, unknown>>;
15390
14594
  };
15391
- createSubscription: {
15392
- mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
15393
- _config: import("@trpc/server").RootConfig<{
15394
- ctx: {};
15395
- meta: object;
15396
- errorShape: {
15397
- message: string;
15398
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
15399
- data: _trpc_server_dist_error_formatter.DefaultErrorData;
15400
- } | {
15401
- data: {
15402
- zodError: import("zod").typeToFlattenedError<any, string> | null;
15403
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
15404
- httpStatus: number;
15405
- path?: string;
15406
- stack?: string;
15407
- };
15408
- message: string;
15409
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
15410
- };
15411
- transformer: typeof superjson;
15412
- }>;
15413
- _meta: object;
15414
- _ctx_out: {
15415
- session: {
15416
- app: {
15417
- id: string;
15418
- planId: string;
15419
- fakeUserId: string | undefined;
15420
- settings: {
15421
- id: string;
15422
- devsLimit: bigint | null;
15423
- usersLimit: bigint | null;
15424
- perDataSizeLimit: bigint | null;
15425
- bandwidthLimit: bigint | null;
15426
- totalStorageSizeLimit: bigint | null;
15427
- payForUsers: boolean;
15428
- };
15429
- };
15430
- sessionId: string;
15431
- accountId: string;
15432
- accountInfosId: string;
15433
- accountRole: _prisma_client.AccountRole;
15434
- userId: string;
15435
- userRole: _prisma_client.UserRole;
15436
- org: {
15437
- id: string;
15438
- name: string;
15439
- plan: _prisma_client.OrganizationPlanKind;
15440
- role: _prisma_client.OrganizationRole;
15441
- };
15442
- };
15443
- req: {
15444
- headers: Headers;
15445
- };
15446
- res: {
15447
- headers: Headers;
15448
- };
15449
- locale: Locales;
15450
- ls: TranslationFunctions;
15451
- };
15452
- _input_in: {
15453
- planName: string;
15454
- };
15455
- _input_out: {
15456
- planName: string;
15457
- };
15458
- _output_in: {
15459
- url: string | null;
15460
- };
15461
- _output_out: {
15462
- url: string | null;
15463
- };
15464
- }, unknown>>;
15465
- };
15466
- cancelSubscription: {
15467
- mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
15468
- _config: import("@trpc/server").RootConfig<{
15469
- ctx: {};
15470
- meta: object;
15471
- errorShape: {
15472
- message: string;
15473
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
15474
- data: _trpc_server_dist_error_formatter.DefaultErrorData;
15475
- } | {
15476
- data: {
15477
- zodError: import("zod").typeToFlattenedError<any, string> | null;
15478
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
15479
- httpStatus: number;
15480
- path?: string;
15481
- stack?: string;
15482
- };
15483
- message: string;
15484
- code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
15485
- };
15486
- transformer: typeof superjson;
15487
- }>;
15488
- _meta: object;
15489
- _ctx_out: {
15490
- session: {
15491
- app: {
15492
- id: string;
15493
- planId: string;
15494
- fakeUserId: string | undefined;
15495
- settings: {
15496
- id: string;
15497
- devsLimit: bigint | null;
15498
- usersLimit: bigint | null;
15499
- perDataSizeLimit: bigint | null;
15500
- bandwidthLimit: bigint | null;
15501
- totalStorageSizeLimit: bigint | null;
15502
- payForUsers: boolean;
15503
- };
15504
- };
15505
- sessionId: string;
15506
- accountId: string;
15507
- accountInfosId: string;
15508
- accountRole: _prisma_client.AccountRole;
15509
- userId: string;
15510
- userRole: _prisma_client.UserRole;
15511
- org: {
15512
- id: string;
15513
- name: string;
15514
- plan: _prisma_client.OrganizationPlanKind;
15515
- role: _prisma_client.OrganizationRole;
15516
- };
15517
- };
15518
- req: {
15519
- headers: Headers;
15520
- };
15521
- res: {
15522
- headers: Headers;
15523
- };
15524
- locale: Locales;
15525
- ls: TranslationFunctions;
15526
- };
15527
- _input_in: {
15528
- waitUntilPeriodEnd: boolean;
15529
- };
15530
- _input_out: {
15531
- waitUntilPeriodEnd: boolean;
15532
- };
15533
- _output_in: {
15534
- isCancelled: boolean;
15535
- };
15536
- _output_out: {
15537
- isCancelled: boolean;
15538
- };
15539
- }, unknown>>;
15540
- };
15541
14595
  deleteApplication: {
15542
14596
  mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
15543
14597
  _config: import("@trpc/server").RootConfig<{
@@ -15583,12 +14637,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
15583
14637
  accountRole: _prisma_client.AccountRole;
15584
14638
  userId: string;
15585
14639
  userRole: _prisma_client.UserRole;
15586
- org: {
15587
- id: string;
15588
- name: string;
15589
- plan: _prisma_client.OrganizationPlanKind;
15590
- role: _prisma_client.OrganizationRole;
15591
- };
14640
+ userPlan: _prisma_client.PlanKind;
15592
14641
  };
15593
14642
  req: {
15594
14643
  headers: Headers;
@@ -15658,12 +14707,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
15658
14707
  accountRole: _prisma_client.AccountRole;
15659
14708
  userId: string;
15660
14709
  userRole: _prisma_client.UserRole;
15661
- org: {
15662
- id: string;
15663
- name: string;
15664
- plan: _prisma_client.OrganizationPlanKind;
15665
- role: _prisma_client.OrganizationRole;
15666
- };
14710
+ userPlan: _prisma_client.PlanKind;
15667
14711
  };
15668
14712
  req: {
15669
14713
  headers: Headers;
@@ -15735,12 +14779,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
15735
14779
  accountRole: _prisma_client.AccountRole;
15736
14780
  userId: string;
15737
14781
  userRole: _prisma_client.UserRole;
15738
- org: {
15739
- id: string;
15740
- name: string;
15741
- plan: _prisma_client.OrganizationPlanKind;
15742
- role: _prisma_client.OrganizationRole;
15743
- };
14782
+ userPlan: _prisma_client.PlanKind;
15744
14783
  };
15745
14784
  req: {
15746
14785
  headers: Headers;
@@ -15854,12 +14893,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
15854
14893
  accountRole: _prisma_client.AccountRole;
15855
14894
  userId: string;
15856
14895
  userRole: _prisma_client.UserRole;
15857
- org: {
15858
- id: string;
15859
- name: string;
15860
- plan: _prisma_client.OrganizationPlanKind;
15861
- role: _prisma_client.OrganizationRole;
15862
- };
14896
+ userPlan: _prisma_client.PlanKind;
15863
14897
  };
15864
14898
  req: {
15865
14899
  headers: Headers;
@@ -16015,12 +15049,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
16015
15049
  accountRole: _prisma_client.AccountRole;
16016
15050
  userId: string;
16017
15051
  userRole: _prisma_client.UserRole;
16018
- org: {
16019
- id: string;
16020
- name: string;
16021
- plan: _prisma_client.OrganizationPlanKind;
16022
- role: _prisma_client.OrganizationRole;
16023
- };
15052
+ userPlan: _prisma_client.PlanKind;
16024
15053
  };
16025
15054
  req: {
16026
15055
  headers: Headers;
@@ -16092,12 +15121,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
16092
15121
  accountRole: _prisma_client.AccountRole;
16093
15122
  userId: string;
16094
15123
  userRole: _prisma_client.UserRole;
16095
- org: {
16096
- id: string;
16097
- name: string;
16098
- plan: _prisma_client.OrganizationPlanKind;
16099
- role: _prisma_client.OrganizationRole;
16100
- };
15124
+ userPlan: _prisma_client.PlanKind;
16101
15125
  };
16102
15126
  req: {
16103
15127
  headers: Headers;
@@ -16173,12 +15197,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
16173
15197
  accountRole: _prisma_client.AccountRole;
16174
15198
  userId: string;
16175
15199
  userRole: _prisma_client.UserRole;
16176
- org: {
16177
- id: string;
16178
- name: string;
16179
- plan: _prisma_client.OrganizationPlanKind;
16180
- role: _prisma_client.OrganizationRole;
16181
- };
15200
+ userPlan: _prisma_client.PlanKind;
16182
15201
  };
16183
15202
  req: {
16184
15203
  headers: Headers;
@@ -16245,12 +15264,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
16245
15264
  accountRole: _prisma_client.AccountRole;
16246
15265
  userId: string;
16247
15266
  userRole: _prisma_client.UserRole;
16248
- org: {
16249
- id: string;
16250
- name: string;
16251
- plan: _prisma_client.OrganizationPlanKind;
16252
- role: _prisma_client.OrganizationRole;
16253
- };
15267
+ userPlan: _prisma_client.PlanKind;
16254
15268
  };
16255
15269
  req: {
16256
15270
  headers: Headers;
@@ -16277,6 +15291,78 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
16277
15291
  };
16278
15292
  }, unknown>>;
16279
15293
  };
15294
+ switchPlan: {
15295
+ mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
15296
+ _config: import("@trpc/server").RootConfig<{
15297
+ ctx: {};
15298
+ meta: object;
15299
+ errorShape: {
15300
+ message: string;
15301
+ code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
15302
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
15303
+ } | {
15304
+ data: {
15305
+ zodError: import("zod").typeToFlattenedError<any, string> | null;
15306
+ code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
15307
+ httpStatus: number;
15308
+ path?: string;
15309
+ stack?: string;
15310
+ };
15311
+ message: string;
15312
+ code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
15313
+ };
15314
+ transformer: typeof superjson;
15315
+ }>;
15316
+ _meta: object;
15317
+ _ctx_out: {
15318
+ session: {
15319
+ app: {
15320
+ id: string;
15321
+ planId: string;
15322
+ fakeUserId: string | undefined;
15323
+ settings: {
15324
+ id: string;
15325
+ devsLimit: bigint | null;
15326
+ usersLimit: bigint | null;
15327
+ perDataSizeLimit: bigint | null;
15328
+ bandwidthLimit: bigint | null;
15329
+ totalStorageSizeLimit: bigint | null;
15330
+ payForUsers: boolean;
15331
+ };
15332
+ };
15333
+ sessionId: string;
15334
+ accountId: string;
15335
+ accountInfosId: string;
15336
+ accountRole: _prisma_client.AccountRole;
15337
+ userId: string;
15338
+ userRole: _prisma_client.UserRole;
15339
+ userPlan: _prisma_client.PlanKind;
15340
+ };
15341
+ req: {
15342
+ headers: Headers;
15343
+ };
15344
+ res: {
15345
+ headers: Headers;
15346
+ };
15347
+ locale: Locales;
15348
+ ls: TranslationFunctions;
15349
+ };
15350
+ _input_in: {
15351
+ appId: string;
15352
+ planName: string;
15353
+ };
15354
+ _input_out: {
15355
+ appId: string;
15356
+ planName: string;
15357
+ };
15358
+ _output_in: {
15359
+ url: string | null;
15360
+ };
15361
+ _output_out: {
15362
+ url: string | null;
15363
+ };
15364
+ }, unknown>>;
15365
+ };
16280
15366
  };
16281
15367
  user: {
16282
15368
  byId: {
@@ -16484,12 +15570,10 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
16484
15570
  deletedAt: Date | null;
16485
15571
  lastLogin: Date | null;
16486
15572
  } & {
16487
- organization: {
16488
- name: string;
16489
- id: string;
16490
- role: "user" | "admin";
16491
- plan: "free" | "basic" | "advanced" | "pro";
15573
+ plan: {
15574
+ kind: "free" | "basic" | "advanced" | "pro";
16492
15575
  };
15576
+ } & {
16493
15577
  account: {
16494
15578
  id: string;
16495
15579
  createdAt: Date;
@@ -16515,12 +15599,10 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
16515
15599
  deletedAt: Date | null;
16516
15600
  lastLogin: Date | null;
16517
15601
  } & {
16518
- organization: {
16519
- name: string;
16520
- id: string;
16521
- role: "user" | "admin";
16522
- plan: "free" | "basic" | "advanced" | "pro";
15602
+ plan: {
15603
+ kind: "free" | "basic" | "advanced" | "pro";
16523
15604
  };
15605
+ } & {
16524
15606
  account: {
16525
15607
  id: string;
16526
15608
  createdAt: Date;
@@ -16566,9 +15648,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
16566
15648
  _output_in: {
16567
15649
  id: string;
16568
15650
  createdAt: Date;
16569
- userId: string;
16570
- orgId: string;
16571
15651
  accountId: string;
15652
+ userId: string;
16572
15653
  lastActivity: Date | null;
16573
15654
  userAgent: string | null;
16574
15655
  ip: string | null;
@@ -16577,9 +15658,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
16577
15658
  appSessions: ({
16578
15659
  id: string;
16579
15660
  createdAt: Date;
16580
- userAppOrgUserId: string;
16581
- userAppOrgAppId: string;
16582
- userAppOrgOrgId: string;
15661
+ appId: string;
15662
+ userId: string;
16583
15663
  userSessionId: string;
16584
15664
  lastActivity: Date | null;
16585
15665
  userAgent: string | null;
@@ -16595,9 +15675,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
16595
15675
  _output_out: {
16596
15676
  id: string;
16597
15677
  createdAt: Date;
16598
- userId: string;
16599
- orgId: string;
16600
15678
  accountId: string;
15679
+ userId: string;
16601
15680
  lastActivity: Date | null;
16602
15681
  userAgent: string | null;
16603
15682
  ip: string | null;
@@ -16606,9 +15685,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
16606
15685
  appSessions: ({
16607
15686
  id: string;
16608
15687
  createdAt: Date;
16609
- userAppOrgUserId: string;
16610
- userAppOrgAppId: string;
16611
- userAppOrgOrgId: string;
15688
+ appId: string;
15689
+ userId: string;
16612
15690
  userSessionId: string;
16613
15691
  lastActivity: Date | null;
16614
15692
  userAgent: string | null;
@@ -16661,6 +15739,150 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
16661
15739
  };
16662
15740
  }, unknown>>;
16663
15741
  };
15742
+ createSubscription: {
15743
+ mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
15744
+ _config: import("@trpc/server").RootConfig<{
15745
+ ctx: {};
15746
+ meta: object;
15747
+ errorShape: {
15748
+ message: string;
15749
+ code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
15750
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
15751
+ } | {
15752
+ data: {
15753
+ zodError: import("zod").typeToFlattenedError<any, string> | null;
15754
+ code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
15755
+ httpStatus: number;
15756
+ path?: string;
15757
+ stack?: string;
15758
+ };
15759
+ message: string;
15760
+ code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
15761
+ };
15762
+ transformer: typeof superjson;
15763
+ }>;
15764
+ _meta: object;
15765
+ _ctx_out: {};
15766
+ _input_in: {
15767
+ planCode: "user_basic_month" | "user_basic_year" | "user_advanced_month" | "user_advanced_year" | "user_pro_month" | "user_pro_year";
15768
+ };
15769
+ _input_out: {
15770
+ planCode: "user_basic_month" | "user_basic_year" | "user_advanced_month" | "user_advanced_year" | "user_pro_month" | "user_pro_year";
15771
+ };
15772
+ _output_in: {
15773
+ url: string | null;
15774
+ };
15775
+ _output_out: {
15776
+ url: string | null;
15777
+ };
15778
+ }, unknown>>;
15779
+ };
15780
+ cancelSubscription: {
15781
+ mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
15782
+ _config: import("@trpc/server").RootConfig<{
15783
+ ctx: {};
15784
+ meta: object;
15785
+ errorShape: {
15786
+ message: string;
15787
+ code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
15788
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
15789
+ } | {
15790
+ data: {
15791
+ zodError: import("zod").typeToFlattenedError<any, string> | null;
15792
+ code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
15793
+ httpStatus: number;
15794
+ path?: string;
15795
+ stack?: string;
15796
+ };
15797
+ message: string;
15798
+ code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
15799
+ };
15800
+ transformer: typeof superjson;
15801
+ }>;
15802
+ _meta: object;
15803
+ _ctx_out: {};
15804
+ _input_in: {
15805
+ prorate: boolean;
15806
+ };
15807
+ _input_out: {
15808
+ prorate: boolean;
15809
+ };
15810
+ _output_in: {
15811
+ isCancelled: boolean;
15812
+ };
15813
+ _output_out: {
15814
+ isCancelled: boolean;
15815
+ };
15816
+ }, unknown>>;
15817
+ };
15818
+ getSubscription: {
15819
+ query: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"query", {
15820
+ _config: import("@trpc/server").RootConfig<{
15821
+ ctx: {};
15822
+ meta: object;
15823
+ errorShape: {
15824
+ message: string;
15825
+ code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
15826
+ data: _trpc_server_dist_error_formatter.DefaultErrorData;
15827
+ } | {
15828
+ data: {
15829
+ zodError: import("zod").typeToFlattenedError<any, string> | null;
15830
+ code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
15831
+ httpStatus: number;
15832
+ path?: string;
15833
+ stack?: string;
15834
+ };
15835
+ message: string;
15836
+ code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
15837
+ };
15838
+ transformer: typeof superjson;
15839
+ }>;
15840
+ _meta: object;
15841
+ _ctx_out: {};
15842
+ _input_in: {} | undefined;
15843
+ _input_out: {} | undefined;
15844
+ _output_in: {
15845
+ subscription: {
15846
+ id: string;
15847
+ currency: string;
15848
+ description: string | null;
15849
+ status: "canceled" | "past_due" | "active" | "incomplete" | "incomplete_expired" | "paused" | "trialing" | "unpaid";
15850
+ created: number;
15851
+ billingCycleAnchor: number;
15852
+ cancelAt: number | null;
15853
+ cancelAtPeriodEnd: boolean;
15854
+ canceledAt: number | null;
15855
+ currentPeriodEnd: number;
15856
+ currentPeriodStart: number;
15857
+ daysUntilDue: number | null;
15858
+ startDate: number;
15859
+ endedAt: number | null;
15860
+ trialEnd: number | null;
15861
+ trialStart: number | null;
15862
+ } | null;
15863
+ };
15864
+ _output_out: {
15865
+ subscription: {
15866
+ id: string;
15867
+ currency: string;
15868
+ description: string | null;
15869
+ status: "canceled" | "past_due" | "active" | "incomplete" | "incomplete_expired" | "paused" | "trialing" | "unpaid";
15870
+ created: number;
15871
+ billingCycleAnchor: number;
15872
+ cancelAt: number | null;
15873
+ cancelAtPeriodEnd: boolean;
15874
+ canceledAt: number | null;
15875
+ currentPeriodEnd: number;
15876
+ currentPeriodStart: number;
15877
+ daysUntilDue: number | null;
15878
+ startDate: number;
15879
+ endedAt: number | null;
15880
+ trialEnd: number | null;
15881
+ trialStart: number | null;
15882
+ } | null;
15883
+ };
15884
+ }, unknown>>;
15885
+ };
16664
15886
  updateProfile: {
16665
15887
  mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
16666
15888
  _config: import("@trpc/server").RootConfig<{
@@ -16709,6 +15931,10 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
16709
15931
  createdAt: Date;
16710
15932
  deletedAt: Date | null;
16711
15933
  lastLogin: Date | null;
15934
+ } & {
15935
+ plan: {
15936
+ kind: "free" | "basic" | "advanced" | "pro";
15937
+ };
16712
15938
  };
16713
15939
  _output_out: {
16714
15940
  id: string;
@@ -16720,6 +15946,10 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
16720
15946
  createdAt: Date;
16721
15947
  deletedAt: Date | null;
16722
15948
  lastLogin: Date | null;
15949
+ } & {
15950
+ plan: {
15951
+ kind: "free" | "basic" | "advanced" | "pro";
15952
+ };
16723
15953
  };
16724
15954
  }, unknown>>;
16725
15955
  };