@secrecy/lib 1.86.3 → 1.86.4-fix-md5.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.
@@ -68,6 +68,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
68
68
  hasDatabase: boolean;
69
69
  devsCount: bigint;
70
70
  usersCount: bigint;
71
+ } & {
71
72
  totalDataCount: bigint;
72
73
  totalDataSize: bigint;
73
74
  downloadBandwidth: bigint;
@@ -142,11 +143,12 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
142
143
  paidByApp?: boolean | undefined;
143
144
  userIds?: string[] | undefined;
144
145
  };
145
- output: {
146
+ output: ({
146
147
  lastReset: Date;
147
148
  hasDatabase: boolean;
148
149
  devsCount: bigint;
149
150
  usersCount: bigint;
151
+ } & {
150
152
  totalDataCount: bigint;
151
153
  totalDataSize: bigint;
152
154
  downloadBandwidth: bigint;
@@ -156,12 +158,11 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
156
158
  sentMailCount: bigint;
157
159
  sentMailDataCount: bigint;
158
160
  sentMailDataSize: bigint;
159
- type: "application";
160
- } | {
161
- type: "details";
161
+ }) | {
162
162
  lastReset: Date;
163
- details: {
163
+ details: ({
164
164
  userId: string;
165
+ } & {
165
166
  totalDataCount: bigint;
166
167
  totalDataSize: bigint;
167
168
  downloadBandwidth: bigint;
@@ -171,7 +172,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
171
172
  sentMailCount: bigint;
172
173
  sentMailDataCount: bigint;
173
174
  sentMailDataSize: bigint;
174
- }[];
175
+ })[];
175
176
  };
176
177
  meta: any;
177
178
  }>;
@@ -398,7 +399,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
398
399
  };
399
400
  output: ({
400
401
  id: string;
401
- md5: string;
402
+ md5: string | null;
402
403
  dataPart: number;
403
404
  dataKey: string;
404
405
  createdAt: Date;
@@ -1084,7 +1085,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1084
1085
  size: bigint;
1085
1086
  prefix: string;
1086
1087
  sizeEncrypted: bigint | null;
1087
- md5: string;
1088
+ md5: string | null;
1088
1089
  md5Encrypted: string | null;
1089
1090
  mime: string | null;
1090
1091
  ext: string | null;
@@ -1106,7 +1107,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1106
1107
  size: bigint;
1107
1108
  prefix: string;
1108
1109
  sizeEncrypted: bigint | null;
1109
- md5: string;
1110
+ md5: string | null;
1110
1111
  md5Encrypted: string | null;
1111
1112
  mime: string | null;
1112
1113
  ext: string | null;
@@ -1156,7 +1157,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1156
1157
  size: bigint;
1157
1158
  prefix: string;
1158
1159
  sizeEncrypted: bigint | null;
1159
- md5: string;
1160
+ md5: string | null;
1160
1161
  md5Encrypted: string | null;
1161
1162
  mime: string | null;
1162
1163
  ext: string | null;
@@ -1182,7 +1183,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1182
1183
  };
1183
1184
  output: {
1184
1185
  id: string;
1185
- md5: string;
1186
+ md5: string | null;
1186
1187
  size: bigint;
1187
1188
  sizeEncrypted: bigint | null;
1188
1189
  md5Encrypted: string | null;
@@ -1201,7 +1202,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1201
1202
  maybeContent: Uint8Array<ArrayBufferLike> | null;
1202
1203
  } | {
1203
1204
  id: string;
1204
- md5: string;
1205
+ md5: string | null;
1205
1206
  size: bigint;
1206
1207
  sizeEncrypted: bigint | null;
1207
1208
  md5Encrypted: string | null;
@@ -1219,7 +1220,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1219
1220
  maybeContent: Uint8Array<ArrayBufferLike> | null;
1220
1221
  } | {
1221
1222
  id: string;
1222
- md5: string;
1223
+ md5: string | null;
1223
1224
  size: bigint;
1224
1225
  sizeEncrypted: bigint | null;
1225
1226
  md5Encrypted: string | null;
@@ -1237,7 +1238,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1237
1238
  }[];
1238
1239
  } | {
1239
1240
  id: string;
1240
- md5: string;
1241
+ md5: string | null;
1241
1242
  size: bigint;
1242
1243
  sizeEncrypted: bigint | null;
1243
1244
  md5Encrypted: string | null;
@@ -1260,7 +1261,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1260
1261
  };
1261
1262
  output: ({
1262
1263
  id: string;
1263
- md5: string;
1264
+ md5: string | null;
1264
1265
  size: bigint;
1265
1266
  sizeEncrypted: bigint | null;
1266
1267
  md5Encrypted: string | null;
@@ -1279,7 +1280,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1279
1280
  maybeContent: Uint8Array<ArrayBufferLike> | null;
1280
1281
  } | {
1281
1282
  id: string;
1282
- md5: string;
1283
+ md5: string | null;
1283
1284
  size: bigint;
1284
1285
  sizeEncrypted: bigint | null;
1285
1286
  md5Encrypted: string | null;
@@ -1297,7 +1298,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1297
1298
  maybeContent: Uint8Array<ArrayBufferLike> | null;
1298
1299
  } | {
1299
1300
  id: string;
1300
- md5: string;
1301
+ md5: string | null;
1301
1302
  size: bigint;
1302
1303
  sizeEncrypted: bigint | null;
1303
1304
  md5Encrypted: string | null;
@@ -1315,7 +1316,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1315
1316
  }[];
1316
1317
  } | {
1317
1318
  id: string;
1318
- md5: string;
1319
+ md5: string | null;
1319
1320
  size: bigint;
1320
1321
  sizeEncrypted: bigint | null;
1321
1322
  md5Encrypted: string | null;
@@ -1525,7 +1526,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1525
1526
  size: bigint;
1526
1527
  prefix: string;
1527
1528
  sizeEncrypted: bigint | null;
1528
- md5: string;
1529
+ md5: string | null;
1529
1530
  md5Encrypted: string | null;
1530
1531
  mime: string | null;
1531
1532
  ext: string | null;
@@ -1547,7 +1548,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1547
1548
  size: bigint;
1548
1549
  prefix: string;
1549
1550
  sizeEncrypted: bigint | null;
1550
- md5: string;
1551
+ md5: string | null;
1551
1552
  md5Encrypted: string | null;
1552
1553
  mime: string | null;
1553
1554
  ext: string | null;
@@ -1682,7 +1683,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1682
1683
  uploadData: import("@trpc/server").TRPCMutationProcedure<{
1683
1684
  input: {
1684
1685
  size: bigint;
1685
- md5: string;
1686
1686
  sizeEncrypted: bigint;
1687
1687
  md5Encrypted: string;
1688
1688
  type: "encrypted";
@@ -1729,7 +1729,6 @@ 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;
1733
1732
  sizeEncrypted: bigint;
1734
1733
  md5Encrypted: string;
1735
1734
  type: "encrypted";
@@ -1774,7 +1773,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1774
1773
  uploadLiteData: import("@trpc/server").TRPCMutationProcedure<{
1775
1774
  input: {
1776
1775
  size: bigint;
1777
- md5: string;
1778
1776
  sizeEncrypted: bigint;
1779
1777
  md5Encrypted: string;
1780
1778
  type: "encrypted";
@@ -2140,7 +2138,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
2140
2138
  size: bigint;
2141
2139
  prefix: string;
2142
2140
  sizeEncrypted: bigint | null;
2143
- md5: string;
2141
+ md5: string | null;
2144
2142
  md5Encrypted: string | null;
2145
2143
  mime: string | null;
2146
2144
  ext: string | null;
@@ -2162,7 +2160,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
2162
2160
  size: bigint;
2163
2161
  prefix: string;
2164
2162
  sizeEncrypted: bigint | null;
2165
- md5: string;
2163
+ md5: string | null;
2166
2164
  md5Encrypted: string | null;
2167
2165
  mime: string | null;
2168
2166
  ext: string | null;
@@ -2611,7 +2609,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
2611
2609
  size: bigint;
2612
2610
  prefix: string;
2613
2611
  sizeEncrypted: bigint | null;
2614
- md5: string;
2612
+ md5: string | null;
2615
2613
  md5Encrypted: string | null;
2616
2614
  mime: string | null;
2617
2615
  ext: string | null;
@@ -2633,7 +2631,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
2633
2631
  size: bigint;
2634
2632
  prefix: string;
2635
2633
  sizeEncrypted: bigint | null;
2636
- md5: string;
2634
+ md5: string | null;
2637
2635
  md5Encrypted: string | null;
2638
2636
  mime: string | null;
2639
2637
  ext: string | null;
@@ -2830,7 +2828,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
2830
2828
  size: bigint;
2831
2829
  prefix: string;
2832
2830
  sizeEncrypted: bigint | null;
2833
- md5: string;
2831
+ md5: string | null;
2834
2832
  md5Encrypted: string | null;
2835
2833
  mime: string | null;
2836
2834
  ext: string | null;
@@ -2852,7 +2850,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
2852
2850
  size: bigint;
2853
2851
  prefix: string;
2854
2852
  sizeEncrypted: bigint | null;
2855
- md5: string;
2853
+ md5: string | null;
2856
2854
  md5Encrypted: string | null;
2857
2855
  mime: string | null;
2858
2856
  ext: string | null;
@@ -3390,7 +3388,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
3390
3388
  size: bigint;
3391
3389
  prefix: string;
3392
3390
  sizeEncrypted: bigint | null;
3393
- md5: string;
3391
+ md5: string | null;
3394
3392
  md5Encrypted: string | null;
3395
3393
  mime: string | null;
3396
3394
  ext: string | null;
@@ -3412,7 +3410,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
3412
3410
  size: bigint;
3413
3411
  prefix: string;
3414
3412
  sizeEncrypted: bigint | null;
3415
- md5: string;
3413
+ md5: string | null;
3416
3414
  md5Encrypted: string | null;
3417
3415
  mime: string | null;
3418
3416
  ext: string | null;
@@ -5309,6 +5307,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
5309
5307
  metrics: {
5310
5308
  lastReset: Date;
5311
5309
  membersCount: bigint;
5310
+ } & {
5312
5311
  totalDataCount: bigint;
5313
5312
  totalDataSize: bigint;
5314
5313
  downloadBandwidth: bigint;
@@ -5346,9 +5345,10 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
5346
5345
  paidByApp?: boolean | undefined;
5347
5346
  userIds?: string[] | undefined;
5348
5347
  };
5349
- output: {
5348
+ output: ({
5350
5349
  lastReset: Date;
5351
5350
  membersCount: bigint;
5351
+ } & {
5352
5352
  totalDataCount: bigint;
5353
5353
  totalDataSize: bigint;
5354
5354
  downloadBandwidth: bigint;
@@ -5358,9 +5358,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
5358
5358
  sentMailCount: bigint;
5359
5359
  sentMailDataCount: bigint;
5360
5360
  sentMailDataSize: bigint;
5361
- type: "organization";
5362
- } | {
5363
- type: "details";
5361
+ }) | {
5364
5362
  lastReset: Date;
5365
5363
  details: {
5366
5364
  totalDataCount: bigint;
@@ -5372,8 +5370,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
5372
5370
  sentMailCount: bigint;
5373
5371
  sentMailDataCount: bigint;
5374
5372
  sentMailDataSize: bigint;
5375
- userId?: string | undefined;
5376
- appId?: string | undefined;
5377
5373
  }[];
5378
5374
  };
5379
5375
  meta: any;
@@ -6779,6 +6775,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
6779
6775
  hasDatabase: boolean;
6780
6776
  devsCount: bigint;
6781
6777
  usersCount: bigint;
6778
+ } & {
6782
6779
  totalDataCount: bigint;
6783
6780
  totalDataSize: bigint;
6784
6781
  downloadBandwidth: bigint;
@@ -6853,11 +6850,12 @@ export declare const getTrpcGuestClient: ({ url }?: {
6853
6850
  paidByApp?: boolean | undefined;
6854
6851
  userIds?: string[] | undefined;
6855
6852
  };
6856
- output: {
6853
+ output: ({
6857
6854
  lastReset: Date;
6858
6855
  hasDatabase: boolean;
6859
6856
  devsCount: bigint;
6860
6857
  usersCount: bigint;
6858
+ } & {
6861
6859
  totalDataCount: bigint;
6862
6860
  totalDataSize: bigint;
6863
6861
  downloadBandwidth: bigint;
@@ -6867,12 +6865,11 @@ export declare const getTrpcGuestClient: ({ url }?: {
6867
6865
  sentMailCount: bigint;
6868
6866
  sentMailDataCount: bigint;
6869
6867
  sentMailDataSize: bigint;
6870
- type: "application";
6871
- } | {
6872
- type: "details";
6868
+ }) | {
6873
6869
  lastReset: Date;
6874
- details: {
6870
+ details: ({
6875
6871
  userId: string;
6872
+ } & {
6876
6873
  totalDataCount: bigint;
6877
6874
  totalDataSize: bigint;
6878
6875
  downloadBandwidth: bigint;
@@ -6882,7 +6879,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
6882
6879
  sentMailCount: bigint;
6883
6880
  sentMailDataCount: bigint;
6884
6881
  sentMailDataSize: bigint;
6885
- }[];
6882
+ })[];
6886
6883
  };
6887
6884
  meta: any;
6888
6885
  }>;
@@ -7109,7 +7106,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
7109
7106
  };
7110
7107
  output: ({
7111
7108
  id: string;
7112
- md5: string;
7109
+ md5: string | null;
7113
7110
  dataPart: number;
7114
7111
  dataKey: string;
7115
7112
  createdAt: Date;
@@ -7795,7 +7792,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
7795
7792
  size: bigint;
7796
7793
  prefix: string;
7797
7794
  sizeEncrypted: bigint | null;
7798
- md5: string;
7795
+ md5: string | null;
7799
7796
  md5Encrypted: string | null;
7800
7797
  mime: string | null;
7801
7798
  ext: string | null;
@@ -7817,7 +7814,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
7817
7814
  size: bigint;
7818
7815
  prefix: string;
7819
7816
  sizeEncrypted: bigint | null;
7820
- md5: string;
7817
+ md5: string | null;
7821
7818
  md5Encrypted: string | null;
7822
7819
  mime: string | null;
7823
7820
  ext: string | null;
@@ -7867,7 +7864,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
7867
7864
  size: bigint;
7868
7865
  prefix: string;
7869
7866
  sizeEncrypted: bigint | null;
7870
- md5: string;
7867
+ md5: string | null;
7871
7868
  md5Encrypted: string | null;
7872
7869
  mime: string | null;
7873
7870
  ext: string | null;
@@ -7893,7 +7890,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
7893
7890
  };
7894
7891
  output: {
7895
7892
  id: string;
7896
- md5: string;
7893
+ md5: string | null;
7897
7894
  size: bigint;
7898
7895
  sizeEncrypted: bigint | null;
7899
7896
  md5Encrypted: string | null;
@@ -7912,7 +7909,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
7912
7909
  maybeContent: Uint8Array<ArrayBufferLike> | null;
7913
7910
  } | {
7914
7911
  id: string;
7915
- md5: string;
7912
+ md5: string | null;
7916
7913
  size: bigint;
7917
7914
  sizeEncrypted: bigint | null;
7918
7915
  md5Encrypted: string | null;
@@ -7930,7 +7927,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
7930
7927
  maybeContent: Uint8Array<ArrayBufferLike> | null;
7931
7928
  } | {
7932
7929
  id: string;
7933
- md5: string;
7930
+ md5: string | null;
7934
7931
  size: bigint;
7935
7932
  sizeEncrypted: bigint | null;
7936
7933
  md5Encrypted: string | null;
@@ -7948,7 +7945,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
7948
7945
  }[];
7949
7946
  } | {
7950
7947
  id: string;
7951
- md5: string;
7948
+ md5: string | null;
7952
7949
  size: bigint;
7953
7950
  sizeEncrypted: bigint | null;
7954
7951
  md5Encrypted: string | null;
@@ -7971,7 +7968,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
7971
7968
  };
7972
7969
  output: ({
7973
7970
  id: string;
7974
- md5: string;
7971
+ md5: string | null;
7975
7972
  size: bigint;
7976
7973
  sizeEncrypted: bigint | null;
7977
7974
  md5Encrypted: string | null;
@@ -7990,7 +7987,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
7990
7987
  maybeContent: Uint8Array<ArrayBufferLike> | null;
7991
7988
  } | {
7992
7989
  id: string;
7993
- md5: string;
7990
+ md5: string | null;
7994
7991
  size: bigint;
7995
7992
  sizeEncrypted: bigint | null;
7996
7993
  md5Encrypted: string | null;
@@ -8008,7 +8005,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
8008
8005
  maybeContent: Uint8Array<ArrayBufferLike> | null;
8009
8006
  } | {
8010
8007
  id: string;
8011
- md5: string;
8008
+ md5: string | null;
8012
8009
  size: bigint;
8013
8010
  sizeEncrypted: bigint | null;
8014
8011
  md5Encrypted: string | null;
@@ -8026,7 +8023,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
8026
8023
  }[];
8027
8024
  } | {
8028
8025
  id: string;
8029
- md5: string;
8026
+ md5: string | null;
8030
8027
  size: bigint;
8031
8028
  sizeEncrypted: bigint | null;
8032
8029
  md5Encrypted: string | null;
@@ -8236,7 +8233,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
8236
8233
  size: bigint;
8237
8234
  prefix: string;
8238
8235
  sizeEncrypted: bigint | null;
8239
- md5: string;
8236
+ md5: string | null;
8240
8237
  md5Encrypted: string | null;
8241
8238
  mime: string | null;
8242
8239
  ext: string | null;
@@ -8258,7 +8255,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
8258
8255
  size: bigint;
8259
8256
  prefix: string;
8260
8257
  sizeEncrypted: bigint | null;
8261
- md5: string;
8258
+ md5: string | null;
8262
8259
  md5Encrypted: string | null;
8263
8260
  mime: string | null;
8264
8261
  ext: string | null;
@@ -8393,7 +8390,6 @@ export declare const getTrpcGuestClient: ({ url }?: {
8393
8390
  uploadData: import("@trpc/server").TRPCMutationProcedure<{
8394
8391
  input: {
8395
8392
  size: bigint;
8396
- md5: string;
8397
8393
  sizeEncrypted: bigint;
8398
8394
  md5Encrypted: string;
8399
8395
  type: "encrypted";
@@ -8440,7 +8436,6 @@ export declare const getTrpcGuestClient: ({ url }?: {
8440
8436
  fromIdentityPubKey?: string | null | undefined;
8441
8437
  appId?: string | null | undefined;
8442
8438
  size: bigint;
8443
- md5: string;
8444
8439
  sizeEncrypted: bigint;
8445
8440
  md5Encrypted: string;
8446
8441
  type: "encrypted";
@@ -8485,7 +8480,6 @@ export declare const getTrpcGuestClient: ({ url }?: {
8485
8480
  uploadLiteData: import("@trpc/server").TRPCMutationProcedure<{
8486
8481
  input: {
8487
8482
  size: bigint;
8488
- md5: string;
8489
8483
  sizeEncrypted: bigint;
8490
8484
  md5Encrypted: string;
8491
8485
  type: "encrypted";
@@ -8851,7 +8845,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
8851
8845
  size: bigint;
8852
8846
  prefix: string;
8853
8847
  sizeEncrypted: bigint | null;
8854
- md5: string;
8848
+ md5: string | null;
8855
8849
  md5Encrypted: string | null;
8856
8850
  mime: string | null;
8857
8851
  ext: string | null;
@@ -8873,7 +8867,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
8873
8867
  size: bigint;
8874
8868
  prefix: string;
8875
8869
  sizeEncrypted: bigint | null;
8876
- md5: string;
8870
+ md5: string | null;
8877
8871
  md5Encrypted: string | null;
8878
8872
  mime: string | null;
8879
8873
  ext: string | null;
@@ -9322,7 +9316,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
9322
9316
  size: bigint;
9323
9317
  prefix: string;
9324
9318
  sizeEncrypted: bigint | null;
9325
- md5: string;
9319
+ md5: string | null;
9326
9320
  md5Encrypted: string | null;
9327
9321
  mime: string | null;
9328
9322
  ext: string | null;
@@ -9344,7 +9338,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
9344
9338
  size: bigint;
9345
9339
  prefix: string;
9346
9340
  sizeEncrypted: bigint | null;
9347
- md5: string;
9341
+ md5: string | null;
9348
9342
  md5Encrypted: string | null;
9349
9343
  mime: string | null;
9350
9344
  ext: string | null;
@@ -9541,7 +9535,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
9541
9535
  size: bigint;
9542
9536
  prefix: string;
9543
9537
  sizeEncrypted: bigint | null;
9544
- md5: string;
9538
+ md5: string | null;
9545
9539
  md5Encrypted: string | null;
9546
9540
  mime: string | null;
9547
9541
  ext: string | null;
@@ -9563,7 +9557,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
9563
9557
  size: bigint;
9564
9558
  prefix: string;
9565
9559
  sizeEncrypted: bigint | null;
9566
- md5: string;
9560
+ md5: string | null;
9567
9561
  md5Encrypted: string | null;
9568
9562
  mime: string | null;
9569
9563
  ext: string | null;
@@ -10101,7 +10095,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
10101
10095
  size: bigint;
10102
10096
  prefix: string;
10103
10097
  sizeEncrypted: bigint | null;
10104
- md5: string;
10098
+ md5: string | null;
10105
10099
  md5Encrypted: string | null;
10106
10100
  mime: string | null;
10107
10101
  ext: string | null;
@@ -10123,7 +10117,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
10123
10117
  size: bigint;
10124
10118
  prefix: string;
10125
10119
  sizeEncrypted: bigint | null;
10126
- md5: string;
10120
+ md5: string | null;
10127
10121
  md5Encrypted: string | null;
10128
10122
  mime: string | null;
10129
10123
  ext: string | null;
@@ -12020,6 +12014,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
12020
12014
  metrics: {
12021
12015
  lastReset: Date;
12022
12016
  membersCount: bigint;
12017
+ } & {
12023
12018
  totalDataCount: bigint;
12024
12019
  totalDataSize: bigint;
12025
12020
  downloadBandwidth: bigint;
@@ -12057,9 +12052,10 @@ export declare const getTrpcGuestClient: ({ url }?: {
12057
12052
  paidByApp?: boolean | undefined;
12058
12053
  userIds?: string[] | undefined;
12059
12054
  };
12060
- output: {
12055
+ output: ({
12061
12056
  lastReset: Date;
12062
12057
  membersCount: bigint;
12058
+ } & {
12063
12059
  totalDataCount: bigint;
12064
12060
  totalDataSize: bigint;
12065
12061
  downloadBandwidth: bigint;
@@ -12069,9 +12065,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
12069
12065
  sentMailCount: bigint;
12070
12066
  sentMailDataCount: bigint;
12071
12067
  sentMailDataSize: bigint;
12072
- type: "organization";
12073
- } | {
12074
- type: "details";
12068
+ }) | {
12075
12069
  lastReset: Date;
12076
12070
  details: {
12077
12071
  totalDataCount: bigint;
@@ -12083,8 +12077,6 @@ export declare const getTrpcGuestClient: ({ url }?: {
12083
12077
  sentMailCount: bigint;
12084
12078
  sentMailDataCount: bigint;
12085
12079
  sentMailDataSize: bigint;
12086
- userId?: string | undefined;
12087
- appId?: string | undefined;
12088
12080
  }[];
12089
12081
  };
12090
12082
  meta: any;
@@ -1,6 +1,6 @@
1
1
  export interface EncryptedFile {
2
2
  data: Uint8Array<ArrayBuffer>;
3
- md5: string;
3
+ /** md5 of the ciphertext. No digest of the plaintext is ever computed. */
4
4
  md5Encrypted: string;
5
5
  }
6
6
  export declare function secretStreamKeygen(): Uint8Array;
@@ -10,5 +10,15 @@ export interface SecretStreamProgress {
10
10
  total: number;
11
11
  current: number;
12
12
  }
13
+ /**
14
+ * Encrypt `data` as a secretstream: the header followed by one authenticated
15
+ * chunk per CHUNK_SIZE bytes of plaintext. The last chunk (an empty one for
16
+ * empty data) is always tagged `TAG_FINAL` so that truncation is detected.
17
+ */
13
18
  export declare function encryptSecretStream(key: Uint8Array, data: Uint8Array<ArrayBuffer>, progress?: (progress: SecretStreamProgress) => Promise<void>, signal?: AbortSignal): Promise<EncryptedFile>;
19
+ /**
20
+ * Decrypt a secretstream produced by `encryptSecretStream`. Throws if any
21
+ * chunk fails authentication, if data follows the `TAG_FINAL` chunk, or if the
22
+ * stream ends without it (truncation).
23
+ */
14
24
  export declare function decryptSecretStream(key: Uint8Array, data: Uint8Array<ArrayBuffer>, progress?: (progress: SecretStreamProgress) => Promise<void>, signal?: AbortSignal): Promise<Uint8Array<ArrayBuffer>>;
@@ -19,7 +19,6 @@ export declare function encryptDataAndKey({ data, currentIdentity, keyPairs, pro
19
19
  encryptedDataKey?: Uint8Array<ArrayBufferLike>;
20
20
  encryptedData: Uint8Array<ArrayBuffer>;
21
21
  dataKey: Uint8Array<ArrayBufferLike>;
22
- md5Data: string;
23
22
  md5Encrypted: string;
24
23
  }>;
25
24
  export declare function buildBytesFromApiData({ dataContent, totalBytes, progressParts, onDownloadProgress, signal, }: {
@@ -1,5 +1,12 @@
1
1
  export declare function generatePassword(): string;
2
2
  export declare function derivePassword(password: string, salt: Uint8Array<ArrayBufferLike>): string;
3
+ /**
4
+ * Wrap a data key under a password, with a random salt:
5
+ * `version (1 byte) || salt || nonce || secretbox(key)`.
6
+ */
7
+ export declare function encryptKeyWithPassword(key: Uint8Array, password: string): Uint8Array;
8
+ /** Unwrap a data key produced by `encryptKeyWithPassword`. */
9
+ export declare function decryptKeyWithPassword(wrapped: Uint8Array, password: string): Uint8Array;
3
10
  export declare function encryptName(name: string, nameKey: string): Promise<string>;
4
11
  export declare function generateAndEncryptNameAndKey(args: {
5
12
  name: string;
@@ -1,9 +1,9 @@
1
- import { sodium } from '../sodium.js';
1
+ import { type StringKeyPair } from '../sodium.js';
2
2
  export declare function encryptCryptoBox(data: Uint8Array, publicKeyBob: string, privateKeyAlice: string): Uint8Array;
3
- export declare function generateCryptoBoxKeyPair(): sodium.StringKeyPair;
3
+ export declare function generateCryptoBoxKeyPair(): StringKeyPair;
4
4
  export declare function decryptCryptoBox(data: Uint8Array, publicKeyAlice: string, privateKeyBob: string): Uint8Array;
5
5
  export declare function generateSecretBoxKey(): string;
6
6
  export declare function encryptSecretBox(data: Uint8Array, key: string): Uint8Array;
7
7
  export declare function decryptSecretBox(data: Uint8Array, key: string): Uint8Array;
8
8
  export declare function encryptAnonymous(data: Uint8Array, receiverPublicKey: string): Uint8Array;
9
- export declare function decryptAnonymous(data: Uint8Array, { privateKey, publicKey }: Omit<sodium.StringKeyPair, 'keyType'>): Uint8Array;
9
+ export declare function decryptAnonymous(data: Uint8Array, { privateKey, publicKey }: Omit<StringKeyPair, 'keyType'>): Uint8Array;
@@ -1,3 +1,8 @@
1
1
  import sodium from 'libsodium-wrappers-sumo';
2
2
  export declare function setup(): Promise<void>;
3
3
  export { sodium };
4
+ export type StringKeyPair = {
5
+ publicKey: string;
6
+ privateKey: string;
7
+ keyType: string;
8
+ };
@@ -45,6 +45,10 @@ export declare function popup(url: string, name: string, options: Partial<Option
45
45
  export declare function popupWithPost(url: string, postData: Record<string, string>, name: string, options: Partial<Options>, callback: Callback): Window | null;
46
46
  /**
47
47
  * Return html that when executed, will trigger the popup to callback with a response
48
+ *
49
+ * @param {Object}
50
+ * @param {String} targetOrigin origin of the opener allowed to receive `data`
51
+ * @return {String}
48
52
  */
49
53
  export declare function popupResponse<T>(id: string, data: T, targetOrigin: string): string;
50
54
  export {};