@secrecy/lib 1.86.4-fix-md5.1 → 1.86.4-fix-crypto.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -55,7 +55,7 @@ export const encrypt = process.env.NODE_ENV !== 'test'
55
55
  return encryptSecretStream(key, dataToEncrypt, progress, signal);
56
56
  };
57
57
  export const decrypt = process.env.NODE_ENV !== 'test'
58
- ? async (key, dataToDecrypt, progress, signal) => {
58
+ ? async (key, dataToDecrypt, progress, signal, options) => {
59
59
  const worker = await createSodiumWorker();
60
60
  return await new Promise((resolve, reject) => {
61
61
  void progress?.({
@@ -72,6 +72,7 @@ export const decrypt = process.env.NODE_ENV !== 'test'
72
72
  event: 'decrypt',
73
73
  key,
74
74
  data: dataToDecrypt,
75
+ options,
75
76
  };
76
77
  worker.postMessage(postData, {
77
78
  transfer: [postData.data.buffer],
@@ -101,6 +102,6 @@ export const decrypt = process.env.NODE_ENV !== 'test'
101
102
  });
102
103
  });
103
104
  }
104
- : async (key, dataToDecrypt, progress, signal) => {
105
- return decryptSecretStream(key, dataToDecrypt, progress, signal);
105
+ : async (key, dataToDecrypt, progress, signal, options) => {
106
+ return decryptSecretStream(key, dataToDecrypt, progress, signal, options);
106
107
  };
@@ -3,7 +3,7 @@ import { type ProgressCallback } from '.';
3
3
  import { type Progress } from 'ky';
4
4
  export declare const downloadDataLinkSchema: z.ZodUnion<readonly [z.ZodObject<{
5
5
  name: z.ZodString;
6
- md5: z.ZodNullable<z.ZodString>;
6
+ md5: z.ZodString;
7
7
  md5Encrypted: z.ZodNullable<z.ZodString>;
8
8
  size: z.ZodCoercedBigInt<unknown>;
9
9
  parts: z.ZodArray<z.ZodObject<{
@@ -15,7 +15,7 @@ export declare const downloadDataLinkSchema: z.ZodUnion<readonly [z.ZodObject<{
15
15
  isEncrypted: z.ZodBoolean;
16
16
  }, z.core.$strip>, z.ZodObject<{
17
17
  name: z.ZodString;
18
- md5: z.ZodNullable<z.ZodString>;
18
+ md5: z.ZodString;
19
19
  md5Encrypted: z.ZodNullable<z.ZodString>;
20
20
  size: z.ZodCoercedBigInt<unknown>;
21
21
  bytes: z.ZodString;
@@ -34,7 +34,7 @@ export type DownloadDataFromLinkOptions = {
34
34
  };
35
35
  export declare function fetchDataLinkMetadata(dataLinkSlug: string, dataUrl?: string): Promise<{
36
36
  name: string;
37
- md5: string | null;
37
+ md5: string;
38
38
  md5Encrypted: string | null;
39
39
  size: bigint;
40
40
  parts: {
@@ -46,7 +46,7 @@ export declare function fetchDataLinkMetadata(dataLinkSlug: string, dataUrl?: st
46
46
  isEncrypted: boolean;
47
47
  } | {
48
48
  name: string;
49
- md5: string | null;
49
+ md5: string;
50
50
  md5Encrypted: string | null;
51
51
  size: bigint;
52
52
  bytes: string;
@@ -1,6 +1,7 @@
1
1
  import { SecrecyClient } from './index.js';
2
2
  import { type SecrecyUserApp } from './types/index.js';
3
3
  import type { SecrecyUrls } from '../base-client.js';
4
+ export declare function assertBrowser(fn: string): void;
4
5
  export declare function parseInfos(): SecrecyUserApp | null;
5
6
  export interface HashInfos {
6
7
  appId?: string;
@@ -7,8 +7,7 @@ export type LocalData = {
7
7
  storageType: DataStorageType;
8
8
  size: bigint;
9
9
  sizeEncrypted: bigint | null;
10
- /** md5 of the content: only for unencrypted and legacy encrypted data. */
11
- md5: string | null;
10
+ md5: string;
12
11
  data: Uint8Array<ArrayBuffer>;
13
12
  mime?: string;
14
13
  ext?: string;
@@ -68,7 +68,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
68
68
  hasDatabase: boolean;
69
69
  devsCount: bigint;
70
70
  usersCount: bigint;
71
- } & {
72
71
  totalDataCount: bigint;
73
72
  totalDataSize: bigint;
74
73
  downloadBandwidth: bigint;
@@ -143,12 +142,11 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
143
142
  paidByApp?: boolean | undefined;
144
143
  userIds?: string[] | undefined;
145
144
  };
146
- output: ({
145
+ output: {
147
146
  lastReset: Date;
148
147
  hasDatabase: boolean;
149
148
  devsCount: bigint;
150
149
  usersCount: bigint;
151
- } & {
152
150
  totalDataCount: bigint;
153
151
  totalDataSize: bigint;
154
152
  downloadBandwidth: bigint;
@@ -158,11 +156,12 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
158
156
  sentMailCount: bigint;
159
157
  sentMailDataCount: bigint;
160
158
  sentMailDataSize: bigint;
161
- }) | {
159
+ type: "application";
160
+ } | {
161
+ type: "details";
162
162
  lastReset: Date;
163
- details: ({
163
+ details: {
164
164
  userId: string;
165
- } & {
166
165
  totalDataCount: bigint;
167
166
  totalDataSize: bigint;
168
167
  downloadBandwidth: bigint;
@@ -172,7 +171,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
172
171
  sentMailCount: bigint;
173
172
  sentMailDataCount: bigint;
174
173
  sentMailDataSize: bigint;
175
- })[];
174
+ }[];
176
175
  };
177
176
  meta: any;
178
177
  }>;
@@ -399,7 +398,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
399
398
  };
400
399
  output: ({
401
400
  id: string;
402
- md5: string | null;
401
+ md5: string;
403
402
  dataPart: number;
404
403
  dataKey: string;
405
404
  createdAt: Date;
@@ -1085,7 +1084,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1085
1084
  size: bigint;
1086
1085
  prefix: string;
1087
1086
  sizeEncrypted: bigint | null;
1088
- md5: string | null;
1087
+ md5: string;
1089
1088
  md5Encrypted: string | null;
1090
1089
  mime: string | null;
1091
1090
  ext: string | null;
@@ -1107,7 +1106,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1107
1106
  size: bigint;
1108
1107
  prefix: string;
1109
1108
  sizeEncrypted: bigint | null;
1110
- md5: string | null;
1109
+ md5: string;
1111
1110
  md5Encrypted: string | null;
1112
1111
  mime: string | null;
1113
1112
  ext: string | null;
@@ -1157,7 +1156,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1157
1156
  size: bigint;
1158
1157
  prefix: string;
1159
1158
  sizeEncrypted: bigint | null;
1160
- md5: string | null;
1159
+ md5: string;
1161
1160
  md5Encrypted: string | null;
1162
1161
  mime: string | null;
1163
1162
  ext: string | null;
@@ -1183,7 +1182,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1183
1182
  };
1184
1183
  output: {
1185
1184
  id: string;
1186
- md5: string | null;
1185
+ md5: string;
1187
1186
  size: bigint;
1188
1187
  sizeEncrypted: bigint | null;
1189
1188
  md5Encrypted: string | null;
@@ -1202,7 +1201,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1202
1201
  maybeContent: Uint8Array<ArrayBufferLike> | null;
1203
1202
  } | {
1204
1203
  id: string;
1205
- md5: string | null;
1204
+ md5: string;
1206
1205
  size: bigint;
1207
1206
  sizeEncrypted: bigint | null;
1208
1207
  md5Encrypted: string | null;
@@ -1220,7 +1219,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1220
1219
  maybeContent: Uint8Array<ArrayBufferLike> | null;
1221
1220
  } | {
1222
1221
  id: string;
1223
- md5: string | null;
1222
+ md5: string;
1224
1223
  size: bigint;
1225
1224
  sizeEncrypted: bigint | null;
1226
1225
  md5Encrypted: string | null;
@@ -1238,7 +1237,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1238
1237
  }[];
1239
1238
  } | {
1240
1239
  id: string;
1241
- md5: string | null;
1240
+ md5: string;
1242
1241
  size: bigint;
1243
1242
  sizeEncrypted: bigint | null;
1244
1243
  md5Encrypted: string | null;
@@ -1261,7 +1260,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1261
1260
  };
1262
1261
  output: ({
1263
1262
  id: string;
1264
- md5: string | null;
1263
+ md5: string;
1265
1264
  size: bigint;
1266
1265
  sizeEncrypted: bigint | null;
1267
1266
  md5Encrypted: string | null;
@@ -1280,7 +1279,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1280
1279
  maybeContent: Uint8Array<ArrayBufferLike> | null;
1281
1280
  } | {
1282
1281
  id: string;
1283
- md5: string | null;
1282
+ md5: string;
1284
1283
  size: bigint;
1285
1284
  sizeEncrypted: bigint | null;
1286
1285
  md5Encrypted: string | null;
@@ -1298,7 +1297,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1298
1297
  maybeContent: Uint8Array<ArrayBufferLike> | null;
1299
1298
  } | {
1300
1299
  id: string;
1301
- md5: string | null;
1300
+ md5: string;
1302
1301
  size: bigint;
1303
1302
  sizeEncrypted: bigint | null;
1304
1303
  md5Encrypted: string | null;
@@ -1316,7 +1315,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1316
1315
  }[];
1317
1316
  } | {
1318
1317
  id: string;
1319
- md5: string | null;
1318
+ md5: string;
1320
1319
  size: bigint;
1321
1320
  sizeEncrypted: bigint | null;
1322
1321
  md5Encrypted: string | null;
@@ -1526,7 +1525,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1526
1525
  size: bigint;
1527
1526
  prefix: string;
1528
1527
  sizeEncrypted: bigint | null;
1529
- md5: string | null;
1528
+ md5: string;
1530
1529
  md5Encrypted: string | null;
1531
1530
  mime: string | null;
1532
1531
  ext: string | null;
@@ -1548,7 +1547,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1548
1547
  size: bigint;
1549
1548
  prefix: string;
1550
1549
  sizeEncrypted: bigint | null;
1551
- md5: string | null;
1550
+ md5: string;
1552
1551
  md5Encrypted: string | null;
1553
1552
  mime: string | null;
1554
1553
  ext: string | null;
@@ -1683,6 +1682,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1683
1682
  uploadData: import("@trpc/server").TRPCMutationProcedure<{
1684
1683
  input: {
1685
1684
  size: bigint;
1685
+ md5: string;
1686
1686
  sizeEncrypted: bigint;
1687
1687
  md5Encrypted: string;
1688
1688
  type: "encrypted";
@@ -1729,6 +1729,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1729
1729
  fromIdentityPubKey?: string | null | undefined;
1730
1730
  appId?: string | null | undefined;
1731
1731
  size: bigint;
1732
+ md5: string;
1732
1733
  sizeEncrypted: bigint;
1733
1734
  md5Encrypted: string;
1734
1735
  type: "encrypted";
@@ -1773,6 +1774,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1773
1774
  uploadLiteData: import("@trpc/server").TRPCMutationProcedure<{
1774
1775
  input: {
1775
1776
  size: bigint;
1777
+ md5: string;
1776
1778
  sizeEncrypted: bigint;
1777
1779
  md5Encrypted: string;
1778
1780
  type: "encrypted";
@@ -2138,7 +2140,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
2138
2140
  size: bigint;
2139
2141
  prefix: string;
2140
2142
  sizeEncrypted: bigint | null;
2141
- md5: string | null;
2143
+ md5: string;
2142
2144
  md5Encrypted: string | null;
2143
2145
  mime: string | null;
2144
2146
  ext: string | null;
@@ -2160,7 +2162,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
2160
2162
  size: bigint;
2161
2163
  prefix: string;
2162
2164
  sizeEncrypted: bigint | null;
2163
- md5: string | null;
2165
+ md5: string;
2164
2166
  md5Encrypted: string | null;
2165
2167
  mime: string | null;
2166
2168
  ext: string | null;
@@ -2609,7 +2611,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
2609
2611
  size: bigint;
2610
2612
  prefix: string;
2611
2613
  sizeEncrypted: bigint | null;
2612
- md5: string | null;
2614
+ md5: string;
2613
2615
  md5Encrypted: string | null;
2614
2616
  mime: string | null;
2615
2617
  ext: string | null;
@@ -2631,7 +2633,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
2631
2633
  size: bigint;
2632
2634
  prefix: string;
2633
2635
  sizeEncrypted: bigint | null;
2634
- md5: string | null;
2636
+ md5: string;
2635
2637
  md5Encrypted: string | null;
2636
2638
  mime: string | null;
2637
2639
  ext: string | null;
@@ -2828,7 +2830,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
2828
2830
  size: bigint;
2829
2831
  prefix: string;
2830
2832
  sizeEncrypted: bigint | null;
2831
- md5: string | null;
2833
+ md5: string;
2832
2834
  md5Encrypted: string | null;
2833
2835
  mime: string | null;
2834
2836
  ext: string | null;
@@ -2850,7 +2852,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
2850
2852
  size: bigint;
2851
2853
  prefix: string;
2852
2854
  sizeEncrypted: bigint | null;
2853
- md5: string | null;
2855
+ md5: string;
2854
2856
  md5Encrypted: string | null;
2855
2857
  mime: string | null;
2856
2858
  ext: string | null;
@@ -3388,7 +3390,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
3388
3390
  size: bigint;
3389
3391
  prefix: string;
3390
3392
  sizeEncrypted: bigint | null;
3391
- md5: string | null;
3393
+ md5: string;
3392
3394
  md5Encrypted: string | null;
3393
3395
  mime: string | null;
3394
3396
  ext: string | null;
@@ -3410,7 +3412,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
3410
3412
  size: bigint;
3411
3413
  prefix: string;
3412
3414
  sizeEncrypted: bigint | null;
3413
- md5: string | null;
3415
+ md5: string;
3414
3416
  md5Encrypted: string | null;
3415
3417
  mime: string | null;
3416
3418
  ext: string | null;
@@ -5307,7 +5309,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
5307
5309
  metrics: {
5308
5310
  lastReset: Date;
5309
5311
  membersCount: bigint;
5310
- } & {
5311
5312
  totalDataCount: bigint;
5312
5313
  totalDataSize: bigint;
5313
5314
  downloadBandwidth: bigint;
@@ -5345,10 +5346,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
5345
5346
  paidByApp?: boolean | undefined;
5346
5347
  userIds?: string[] | undefined;
5347
5348
  };
5348
- output: ({
5349
+ output: {
5349
5350
  lastReset: Date;
5350
5351
  membersCount: bigint;
5351
- } & {
5352
5352
  totalDataCount: bigint;
5353
5353
  totalDataSize: bigint;
5354
5354
  downloadBandwidth: bigint;
@@ -5358,7 +5358,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
5358
5358
  sentMailCount: bigint;
5359
5359
  sentMailDataCount: bigint;
5360
5360
  sentMailDataSize: bigint;
5361
- }) | {
5361
+ type: "organization";
5362
+ } | {
5363
+ type: "details";
5362
5364
  lastReset: Date;
5363
5365
  details: {
5364
5366
  totalDataCount: bigint;
@@ -5370,6 +5372,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
5370
5372
  sentMailCount: bigint;
5371
5373
  sentMailDataCount: bigint;
5372
5374
  sentMailDataSize: bigint;
5375
+ userId?: string | undefined;
5376
+ appId?: string | undefined;
5373
5377
  }[];
5374
5378
  };
5375
5379
  meta: any;
@@ -6775,7 +6779,6 @@ export declare const getTrpcGuestClient: ({ url }?: {
6775
6779
  hasDatabase: boolean;
6776
6780
  devsCount: bigint;
6777
6781
  usersCount: bigint;
6778
- } & {
6779
6782
  totalDataCount: bigint;
6780
6783
  totalDataSize: bigint;
6781
6784
  downloadBandwidth: bigint;
@@ -6850,12 +6853,11 @@ export declare const getTrpcGuestClient: ({ url }?: {
6850
6853
  paidByApp?: boolean | undefined;
6851
6854
  userIds?: string[] | undefined;
6852
6855
  };
6853
- output: ({
6856
+ output: {
6854
6857
  lastReset: Date;
6855
6858
  hasDatabase: boolean;
6856
6859
  devsCount: bigint;
6857
6860
  usersCount: bigint;
6858
- } & {
6859
6861
  totalDataCount: bigint;
6860
6862
  totalDataSize: bigint;
6861
6863
  downloadBandwidth: bigint;
@@ -6865,11 +6867,12 @@ export declare const getTrpcGuestClient: ({ url }?: {
6865
6867
  sentMailCount: bigint;
6866
6868
  sentMailDataCount: bigint;
6867
6869
  sentMailDataSize: bigint;
6868
- }) | {
6870
+ type: "application";
6871
+ } | {
6872
+ type: "details";
6869
6873
  lastReset: Date;
6870
- details: ({
6874
+ details: {
6871
6875
  userId: string;
6872
- } & {
6873
6876
  totalDataCount: bigint;
6874
6877
  totalDataSize: bigint;
6875
6878
  downloadBandwidth: bigint;
@@ -6879,7 +6882,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
6879
6882
  sentMailCount: bigint;
6880
6883
  sentMailDataCount: bigint;
6881
6884
  sentMailDataSize: bigint;
6882
- })[];
6885
+ }[];
6883
6886
  };
6884
6887
  meta: any;
6885
6888
  }>;
@@ -7106,7 +7109,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
7106
7109
  };
7107
7110
  output: ({
7108
7111
  id: string;
7109
- md5: string | null;
7112
+ md5: string;
7110
7113
  dataPart: number;
7111
7114
  dataKey: string;
7112
7115
  createdAt: Date;
@@ -7792,7 +7795,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
7792
7795
  size: bigint;
7793
7796
  prefix: string;
7794
7797
  sizeEncrypted: bigint | null;
7795
- md5: string | null;
7798
+ md5: string;
7796
7799
  md5Encrypted: string | null;
7797
7800
  mime: string | null;
7798
7801
  ext: string | null;
@@ -7814,7 +7817,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
7814
7817
  size: bigint;
7815
7818
  prefix: string;
7816
7819
  sizeEncrypted: bigint | null;
7817
- md5: string | null;
7820
+ md5: string;
7818
7821
  md5Encrypted: string | null;
7819
7822
  mime: string | null;
7820
7823
  ext: string | null;
@@ -7864,7 +7867,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
7864
7867
  size: bigint;
7865
7868
  prefix: string;
7866
7869
  sizeEncrypted: bigint | null;
7867
- md5: string | null;
7870
+ md5: string;
7868
7871
  md5Encrypted: string | null;
7869
7872
  mime: string | null;
7870
7873
  ext: string | null;
@@ -7890,7 +7893,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
7890
7893
  };
7891
7894
  output: {
7892
7895
  id: string;
7893
- md5: string | null;
7896
+ md5: string;
7894
7897
  size: bigint;
7895
7898
  sizeEncrypted: bigint | null;
7896
7899
  md5Encrypted: string | null;
@@ -7909,7 +7912,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
7909
7912
  maybeContent: Uint8Array<ArrayBufferLike> | null;
7910
7913
  } | {
7911
7914
  id: string;
7912
- md5: string | null;
7915
+ md5: string;
7913
7916
  size: bigint;
7914
7917
  sizeEncrypted: bigint | null;
7915
7918
  md5Encrypted: string | null;
@@ -7927,7 +7930,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
7927
7930
  maybeContent: Uint8Array<ArrayBufferLike> | null;
7928
7931
  } | {
7929
7932
  id: string;
7930
- md5: string | null;
7933
+ md5: string;
7931
7934
  size: bigint;
7932
7935
  sizeEncrypted: bigint | null;
7933
7936
  md5Encrypted: string | null;
@@ -7945,7 +7948,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
7945
7948
  }[];
7946
7949
  } | {
7947
7950
  id: string;
7948
- md5: string | null;
7951
+ md5: string;
7949
7952
  size: bigint;
7950
7953
  sizeEncrypted: bigint | null;
7951
7954
  md5Encrypted: string | null;
@@ -7968,7 +7971,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
7968
7971
  };
7969
7972
  output: ({
7970
7973
  id: string;
7971
- md5: string | null;
7974
+ md5: string;
7972
7975
  size: bigint;
7973
7976
  sizeEncrypted: bigint | null;
7974
7977
  md5Encrypted: string | null;
@@ -7987,7 +7990,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
7987
7990
  maybeContent: Uint8Array<ArrayBufferLike> | null;
7988
7991
  } | {
7989
7992
  id: string;
7990
- md5: string | null;
7993
+ md5: string;
7991
7994
  size: bigint;
7992
7995
  sizeEncrypted: bigint | null;
7993
7996
  md5Encrypted: string | null;
@@ -8005,7 +8008,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
8005
8008
  maybeContent: Uint8Array<ArrayBufferLike> | null;
8006
8009
  } | {
8007
8010
  id: string;
8008
- md5: string | null;
8011
+ md5: string;
8009
8012
  size: bigint;
8010
8013
  sizeEncrypted: bigint | null;
8011
8014
  md5Encrypted: string | null;
@@ -8023,7 +8026,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
8023
8026
  }[];
8024
8027
  } | {
8025
8028
  id: string;
8026
- md5: string | null;
8029
+ md5: string;
8027
8030
  size: bigint;
8028
8031
  sizeEncrypted: bigint | null;
8029
8032
  md5Encrypted: string | null;
@@ -8233,7 +8236,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
8233
8236
  size: bigint;
8234
8237
  prefix: string;
8235
8238
  sizeEncrypted: bigint | null;
8236
- md5: string | null;
8239
+ md5: string;
8237
8240
  md5Encrypted: string | null;
8238
8241
  mime: string | null;
8239
8242
  ext: string | null;
@@ -8255,7 +8258,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
8255
8258
  size: bigint;
8256
8259
  prefix: string;
8257
8260
  sizeEncrypted: bigint | null;
8258
- md5: string | null;
8261
+ md5: string;
8259
8262
  md5Encrypted: string | null;
8260
8263
  mime: string | null;
8261
8264
  ext: string | null;
@@ -8390,6 +8393,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
8390
8393
  uploadData: import("@trpc/server").TRPCMutationProcedure<{
8391
8394
  input: {
8392
8395
  size: bigint;
8396
+ md5: string;
8393
8397
  sizeEncrypted: bigint;
8394
8398
  md5Encrypted: string;
8395
8399
  type: "encrypted";
@@ -8436,6 +8440,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
8436
8440
  fromIdentityPubKey?: string | null | undefined;
8437
8441
  appId?: string | null | undefined;
8438
8442
  size: bigint;
8443
+ md5: string;
8439
8444
  sizeEncrypted: bigint;
8440
8445
  md5Encrypted: string;
8441
8446
  type: "encrypted";
@@ -8480,6 +8485,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
8480
8485
  uploadLiteData: import("@trpc/server").TRPCMutationProcedure<{
8481
8486
  input: {
8482
8487
  size: bigint;
8488
+ md5: string;
8483
8489
  sizeEncrypted: bigint;
8484
8490
  md5Encrypted: string;
8485
8491
  type: "encrypted";
@@ -8845,7 +8851,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
8845
8851
  size: bigint;
8846
8852
  prefix: string;
8847
8853
  sizeEncrypted: bigint | null;
8848
- md5: string | null;
8854
+ md5: string;
8849
8855
  md5Encrypted: string | null;
8850
8856
  mime: string | null;
8851
8857
  ext: string | null;
@@ -8867,7 +8873,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
8867
8873
  size: bigint;
8868
8874
  prefix: string;
8869
8875
  sizeEncrypted: bigint | null;
8870
- md5: string | null;
8876
+ md5: string;
8871
8877
  md5Encrypted: string | null;
8872
8878
  mime: string | null;
8873
8879
  ext: string | null;
@@ -9316,7 +9322,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
9316
9322
  size: bigint;
9317
9323
  prefix: string;
9318
9324
  sizeEncrypted: bigint | null;
9319
- md5: string | null;
9325
+ md5: string;
9320
9326
  md5Encrypted: string | null;
9321
9327
  mime: string | null;
9322
9328
  ext: string | null;
@@ -9338,7 +9344,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
9338
9344
  size: bigint;
9339
9345
  prefix: string;
9340
9346
  sizeEncrypted: bigint | null;
9341
- md5: string | null;
9347
+ md5: string;
9342
9348
  md5Encrypted: string | null;
9343
9349
  mime: string | null;
9344
9350
  ext: string | null;
@@ -9535,7 +9541,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
9535
9541
  size: bigint;
9536
9542
  prefix: string;
9537
9543
  sizeEncrypted: bigint | null;
9538
- md5: string | null;
9544
+ md5: string;
9539
9545
  md5Encrypted: string | null;
9540
9546
  mime: string | null;
9541
9547
  ext: string | null;
@@ -9557,7 +9563,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
9557
9563
  size: bigint;
9558
9564
  prefix: string;
9559
9565
  sizeEncrypted: bigint | null;
9560
- md5: string | null;
9566
+ md5: string;
9561
9567
  md5Encrypted: string | null;
9562
9568
  mime: string | null;
9563
9569
  ext: string | null;
@@ -10095,7 +10101,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
10095
10101
  size: bigint;
10096
10102
  prefix: string;
10097
10103
  sizeEncrypted: bigint | null;
10098
- md5: string | null;
10104
+ md5: string;
10099
10105
  md5Encrypted: string | null;
10100
10106
  mime: string | null;
10101
10107
  ext: string | null;
@@ -10117,7 +10123,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
10117
10123
  size: bigint;
10118
10124
  prefix: string;
10119
10125
  sizeEncrypted: bigint | null;
10120
- md5: string | null;
10126
+ md5: string;
10121
10127
  md5Encrypted: string | null;
10122
10128
  mime: string | null;
10123
10129
  ext: string | null;
@@ -12014,7 +12020,6 @@ export declare const getTrpcGuestClient: ({ url }?: {
12014
12020
  metrics: {
12015
12021
  lastReset: Date;
12016
12022
  membersCount: bigint;
12017
- } & {
12018
12023
  totalDataCount: bigint;
12019
12024
  totalDataSize: bigint;
12020
12025
  downloadBandwidth: bigint;
@@ -12052,10 +12057,9 @@ export declare const getTrpcGuestClient: ({ url }?: {
12052
12057
  paidByApp?: boolean | undefined;
12053
12058
  userIds?: string[] | undefined;
12054
12059
  };
12055
- output: ({
12060
+ output: {
12056
12061
  lastReset: Date;
12057
12062
  membersCount: bigint;
12058
- } & {
12059
12063
  totalDataCount: bigint;
12060
12064
  totalDataSize: bigint;
12061
12065
  downloadBandwidth: bigint;
@@ -12065,7 +12069,9 @@ export declare const getTrpcGuestClient: ({ url }?: {
12065
12069
  sentMailCount: bigint;
12066
12070
  sentMailDataCount: bigint;
12067
12071
  sentMailDataSize: bigint;
12068
- }) | {
12072
+ type: "organization";
12073
+ } | {
12074
+ type: "details";
12069
12075
  lastReset: Date;
12070
12076
  details: {
12071
12077
  totalDataCount: bigint;
@@ -12077,6 +12083,8 @@ export declare const getTrpcGuestClient: ({ url }?: {
12077
12083
  sentMailCount: bigint;
12078
12084
  sentMailDataCount: bigint;
12079
12085
  sentMailDataSize: bigint;
12086
+ userId?: string | undefined;
12087
+ appId?: string | undefined;
12080
12088
  }[];
12081
12089
  };
12082
12090
  meta: any;