@secrecy/lib 1.86.2-fix-crypto.1 → 1.86.2-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.
@@ -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, options) => {
58
+ ? async (key, dataToDecrypt, progress, signal) => {
59
59
  const worker = await createSodiumWorker();
60
60
  return await new Promise((resolve, reject) => {
61
61
  void progress?.({
@@ -72,7 +72,6 @@ export const decrypt = process.env.NODE_ENV !== 'test'
72
72
  event: 'decrypt',
73
73
  key,
74
74
  data: dataToDecrypt,
75
- options,
76
75
  };
77
76
  worker.postMessage(postData, {
78
77
  transfer: [postData.data.buffer],
@@ -102,6 +101,6 @@ export const decrypt = process.env.NODE_ENV !== 'test'
102
101
  });
103
102
  });
104
103
  }
105
- : async (key, dataToDecrypt, progress, signal, options) => {
106
- return decryptSecretStream(key, dataToDecrypt, progress, signal, options);
104
+ : async (key, dataToDecrypt, progress, signal) => {
105
+ return decryptSecretStream(key, dataToDecrypt, progress, signal);
107
106
  };
@@ -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.ZodString;
6
+ md5: z.ZodNullable<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.ZodString;
18
+ md5: z.ZodNullable<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;
37
+ md5: string | null;
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;
49
+ md5: string | null;
50
50
  md5Encrypted: string | null;
51
51
  size: bigint;
52
52
  bytes: string;
@@ -7,7 +7,8 @@ export type LocalData = {
7
7
  storageType: DataStorageType;
8
8
  size: bigint;
9
9
  sizeEncrypted: bigint | null;
10
- md5: string;
10
+ /** md5 of the content: only for unencrypted and legacy encrypted data. */
11
+ md5: string | null;
11
12
  data: Uint8Array<ArrayBuffer>;
12
13
  mime?: string;
13
14
  ext?: string;
@@ -398,7 +398,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
398
398
  };
399
399
  output: ({
400
400
  id: string;
401
- md5: string;
401
+ md5: string | null;
402
402
  dataPart: number;
403
403
  dataKey: string;
404
404
  createdAt: Date;
@@ -868,6 +868,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
868
868
  author: string;
869
869
  image: string;
870
870
  summary: string;
871
+ slug: string | null;
871
872
  status: "published" | "draft";
872
873
  tags: string[];
873
874
  lang: "en" | "fr";
@@ -893,6 +894,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
893
894
  author: string;
894
895
  image: string;
895
896
  summary: string;
897
+ slug: string | null;
896
898
  status: "published" | "draft";
897
899
  tags: string[];
898
900
  lang: "en" | "fr";
@@ -1082,7 +1084,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1082
1084
  size: bigint;
1083
1085
  prefix: string;
1084
1086
  sizeEncrypted: bigint | null;
1085
- md5: string;
1087
+ md5: string | null;
1086
1088
  md5Encrypted: string | null;
1087
1089
  mime: string | null;
1088
1090
  ext: string | null;
@@ -1104,7 +1106,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1104
1106
  size: bigint;
1105
1107
  prefix: string;
1106
1108
  sizeEncrypted: bigint | null;
1107
- md5: string;
1109
+ md5: string | null;
1108
1110
  md5Encrypted: string | null;
1109
1111
  mime: string | null;
1110
1112
  ext: string | null;
@@ -1154,7 +1156,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1154
1156
  size: bigint;
1155
1157
  prefix: string;
1156
1158
  sizeEncrypted: bigint | null;
1157
- md5: string;
1159
+ md5: string | null;
1158
1160
  md5Encrypted: string | null;
1159
1161
  mime: string | null;
1160
1162
  ext: string | null;
@@ -1180,7 +1182,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1180
1182
  };
1181
1183
  output: {
1182
1184
  id: string;
1183
- md5: string;
1185
+ md5: string | null;
1184
1186
  size: bigint;
1185
1187
  sizeEncrypted: bigint | null;
1186
1188
  md5Encrypted: string | null;
@@ -1199,7 +1201,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1199
1201
  maybeContent: Uint8Array<ArrayBufferLike> | null;
1200
1202
  } | {
1201
1203
  id: string;
1202
- md5: string;
1204
+ md5: string | null;
1203
1205
  size: bigint;
1204
1206
  sizeEncrypted: bigint | null;
1205
1207
  md5Encrypted: string | null;
@@ -1217,7 +1219,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1217
1219
  maybeContent: Uint8Array<ArrayBufferLike> | null;
1218
1220
  } | {
1219
1221
  id: string;
1220
- md5: string;
1222
+ md5: string | null;
1221
1223
  size: bigint;
1222
1224
  sizeEncrypted: bigint | null;
1223
1225
  md5Encrypted: string | null;
@@ -1235,7 +1237,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1235
1237
  }[];
1236
1238
  } | {
1237
1239
  id: string;
1238
- md5: string;
1240
+ md5: string | null;
1239
1241
  size: bigint;
1240
1242
  sizeEncrypted: bigint | null;
1241
1243
  md5Encrypted: string | null;
@@ -1258,7 +1260,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1258
1260
  };
1259
1261
  output: ({
1260
1262
  id: string;
1261
- md5: string;
1263
+ md5: string | null;
1262
1264
  size: bigint;
1263
1265
  sizeEncrypted: bigint | null;
1264
1266
  md5Encrypted: string | null;
@@ -1277,7 +1279,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1277
1279
  maybeContent: Uint8Array<ArrayBufferLike> | null;
1278
1280
  } | {
1279
1281
  id: string;
1280
- md5: string;
1282
+ md5: string | null;
1281
1283
  size: bigint;
1282
1284
  sizeEncrypted: bigint | null;
1283
1285
  md5Encrypted: string | null;
@@ -1295,7 +1297,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1295
1297
  maybeContent: Uint8Array<ArrayBufferLike> | null;
1296
1298
  } | {
1297
1299
  id: string;
1298
- md5: string;
1300
+ md5: string | null;
1299
1301
  size: bigint;
1300
1302
  sizeEncrypted: bigint | null;
1301
1303
  md5Encrypted: string | null;
@@ -1313,7 +1315,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1313
1315
  }[];
1314
1316
  } | {
1315
1317
  id: string;
1316
- md5: string;
1318
+ md5: string | null;
1317
1319
  size: bigint;
1318
1320
  sizeEncrypted: bigint | null;
1319
1321
  md5Encrypted: string | null;
@@ -1523,7 +1525,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1523
1525
  size: bigint;
1524
1526
  prefix: string;
1525
1527
  sizeEncrypted: bigint | null;
1526
- md5: string;
1528
+ md5: string | null;
1527
1529
  md5Encrypted: string | null;
1528
1530
  mime: string | null;
1529
1531
  ext: string | null;
@@ -1545,7 +1547,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1545
1547
  size: bigint;
1546
1548
  prefix: string;
1547
1549
  sizeEncrypted: bigint | null;
1548
- md5: string;
1550
+ md5: string | null;
1549
1551
  md5Encrypted: string | null;
1550
1552
  mime: string | null;
1551
1553
  ext: string | null;
@@ -1680,7 +1682,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1680
1682
  uploadData: import("@trpc/server").TRPCMutationProcedure<{
1681
1683
  input: {
1682
1684
  size: bigint;
1683
- md5: string;
1684
1685
  sizeEncrypted: bigint;
1685
1686
  md5Encrypted: string;
1686
1687
  type: "encrypted";
@@ -1727,7 +1728,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1727
1728
  fromIdentityPubKey?: string | null | undefined;
1728
1729
  appId?: string | null | undefined;
1729
1730
  size: bigint;
1730
- md5: string;
1731
1731
  sizeEncrypted: bigint;
1732
1732
  md5Encrypted: string;
1733
1733
  type: "encrypted";
@@ -1772,7 +1772,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
1772
1772
  uploadLiteData: import("@trpc/server").TRPCMutationProcedure<{
1773
1773
  input: {
1774
1774
  size: bigint;
1775
- md5: string;
1776
1775
  sizeEncrypted: bigint;
1777
1776
  md5Encrypted: string;
1778
1777
  type: "encrypted";
@@ -2138,7 +2137,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
2138
2137
  size: bigint;
2139
2138
  prefix: string;
2140
2139
  sizeEncrypted: bigint | null;
2141
- md5: string;
2140
+ md5: string | null;
2142
2141
  md5Encrypted: string | null;
2143
2142
  mime: string | null;
2144
2143
  ext: string | null;
@@ -2160,7 +2159,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
2160
2159
  size: bigint;
2161
2160
  prefix: string;
2162
2161
  sizeEncrypted: bigint | null;
2163
- md5: string;
2162
+ md5: string | null;
2164
2163
  md5Encrypted: string | null;
2165
2164
  mime: string | null;
2166
2165
  ext: string | null;
@@ -2609,7 +2608,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
2609
2608
  size: bigint;
2610
2609
  prefix: string;
2611
2610
  sizeEncrypted: bigint | null;
2612
- md5: string;
2611
+ md5: string | null;
2613
2612
  md5Encrypted: string | null;
2614
2613
  mime: string | null;
2615
2614
  ext: string | null;
@@ -2631,7 +2630,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
2631
2630
  size: bigint;
2632
2631
  prefix: string;
2633
2632
  sizeEncrypted: bigint | null;
2634
- md5: string;
2633
+ md5: string | null;
2635
2634
  md5Encrypted: string | null;
2636
2635
  mime: string | null;
2637
2636
  ext: string | null;
@@ -2828,7 +2827,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
2828
2827
  size: bigint;
2829
2828
  prefix: string;
2830
2829
  sizeEncrypted: bigint | null;
2831
- md5: string;
2830
+ md5: string | null;
2832
2831
  md5Encrypted: string | null;
2833
2832
  mime: string | null;
2834
2833
  ext: string | null;
@@ -2850,7 +2849,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
2850
2849
  size: bigint;
2851
2850
  prefix: string;
2852
2851
  sizeEncrypted: bigint | null;
2853
- md5: string;
2852
+ md5: string | null;
2854
2853
  md5Encrypted: string | null;
2855
2854
  mime: string | null;
2856
2855
  ext: string | null;
@@ -3388,7 +3387,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
3388
3387
  size: bigint;
3389
3388
  prefix: string;
3390
3389
  sizeEncrypted: bigint | null;
3391
- md5: string;
3390
+ md5: string | null;
3392
3391
  md5Encrypted: string | null;
3393
3392
  mime: string | null;
3394
3393
  ext: string | null;
@@ -3410,7 +3409,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
3410
3409
  size: bigint;
3411
3410
  prefix: string;
3412
3411
  sizeEncrypted: bigint | null;
3413
- md5: string;
3412
+ md5: string | null;
3414
3413
  md5Encrypted: string | null;
3415
3414
  mime: string | null;
3416
3415
  ext: string | null;
@@ -3918,7 +3917,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
3918
3917
  output: {
3919
3918
  id: string;
3920
3919
  name: string;
3921
- currentState: "init" | "ready";
3920
+ currentState: "init" | "resetting" | "ready" | "archived" | (string & Record<never, never>);
3922
3921
  isPrimary: boolean;
3923
3922
  parentId?: string | undefined;
3924
3923
  };
@@ -3942,7 +3941,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
3942
3941
  output: {
3943
3942
  id: string;
3944
3943
  name: string;
3945
- currentState: "init" | "ready";
3944
+ currentState: "init" | "resetting" | "ready" | "archived" | (string & Record<never, never>);
3946
3945
  isPrimary: boolean;
3947
3946
  parentId?: string | undefined;
3948
3947
  };
@@ -3960,7 +3959,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
3960
3959
  output: {
3961
3960
  id: string;
3962
3961
  name: string;
3963
- currentState: "init" | "ready";
3962
+ currentState: "init" | "resetting" | "ready" | "archived" | (string & Record<never, never>);
3964
3963
  isPrimary: boolean;
3965
3964
  parentId?: string | undefined;
3966
3965
  }[];
@@ -3976,7 +3975,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
3976
3975
  output: {
3977
3976
  id: string;
3978
3977
  name: string;
3979
- currentState: "init" | "ready";
3978
+ currentState: "init" | "resetting" | "ready" | "archived" | (string & Record<never, never>);
3980
3979
  isPrimary: boolean;
3981
3980
  parentId?: string | undefined;
3982
3981
  };
@@ -4002,7 +4001,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
4002
4001
  output: {
4003
4002
  id: string;
4004
4003
  name: string;
4005
- currentState: "init" | "ready";
4004
+ currentState: "init" | "resetting" | "ready" | "archived" | (string & Record<never, never>);
4006
4005
  isPrimary: boolean;
4007
4006
  parentId?: string | undefined;
4008
4007
  };
@@ -4017,7 +4016,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
4017
4016
  output: {
4018
4017
  id: string;
4019
4018
  name: string;
4020
- currentState: "init" | "ready";
4019
+ currentState: "init" | "resetting" | "ready" | "archived" | (string & Record<never, never>);
4021
4020
  isPrimary: boolean;
4022
4021
  parentId?: string | undefined;
4023
4022
  };
@@ -7106,7 +7105,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
7106
7105
  };
7107
7106
  output: ({
7108
7107
  id: string;
7109
- md5: string;
7108
+ md5: string | null;
7110
7109
  dataPart: number;
7111
7110
  dataKey: string;
7112
7111
  createdAt: Date;
@@ -7576,6 +7575,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
7576
7575
  author: string;
7577
7576
  image: string;
7578
7577
  summary: string;
7578
+ slug: string | null;
7579
7579
  status: "published" | "draft";
7580
7580
  tags: string[];
7581
7581
  lang: "en" | "fr";
@@ -7601,6 +7601,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
7601
7601
  author: string;
7602
7602
  image: string;
7603
7603
  summary: string;
7604
+ slug: string | null;
7604
7605
  status: "published" | "draft";
7605
7606
  tags: string[];
7606
7607
  lang: "en" | "fr";
@@ -7790,7 +7791,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
7790
7791
  size: bigint;
7791
7792
  prefix: string;
7792
7793
  sizeEncrypted: bigint | null;
7793
- md5: string;
7794
+ md5: string | null;
7794
7795
  md5Encrypted: string | null;
7795
7796
  mime: string | null;
7796
7797
  ext: string | null;
@@ -7812,7 +7813,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
7812
7813
  size: bigint;
7813
7814
  prefix: string;
7814
7815
  sizeEncrypted: bigint | null;
7815
- md5: string;
7816
+ md5: string | null;
7816
7817
  md5Encrypted: string | null;
7817
7818
  mime: string | null;
7818
7819
  ext: string | null;
@@ -7862,7 +7863,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
7862
7863
  size: bigint;
7863
7864
  prefix: string;
7864
7865
  sizeEncrypted: bigint | null;
7865
- md5: string;
7866
+ md5: string | null;
7866
7867
  md5Encrypted: string | null;
7867
7868
  mime: string | null;
7868
7869
  ext: string | null;
@@ -7888,7 +7889,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
7888
7889
  };
7889
7890
  output: {
7890
7891
  id: string;
7891
- md5: string;
7892
+ md5: string | null;
7892
7893
  size: bigint;
7893
7894
  sizeEncrypted: bigint | null;
7894
7895
  md5Encrypted: string | null;
@@ -7907,7 +7908,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
7907
7908
  maybeContent: Uint8Array<ArrayBufferLike> | null;
7908
7909
  } | {
7909
7910
  id: string;
7910
- md5: string;
7911
+ md5: string | null;
7911
7912
  size: bigint;
7912
7913
  sizeEncrypted: bigint | null;
7913
7914
  md5Encrypted: string | null;
@@ -7925,7 +7926,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
7925
7926
  maybeContent: Uint8Array<ArrayBufferLike> | null;
7926
7927
  } | {
7927
7928
  id: string;
7928
- md5: string;
7929
+ md5: string | null;
7929
7930
  size: bigint;
7930
7931
  sizeEncrypted: bigint | null;
7931
7932
  md5Encrypted: string | null;
@@ -7943,7 +7944,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
7943
7944
  }[];
7944
7945
  } | {
7945
7946
  id: string;
7946
- md5: string;
7947
+ md5: string | null;
7947
7948
  size: bigint;
7948
7949
  sizeEncrypted: bigint | null;
7949
7950
  md5Encrypted: string | null;
@@ -7966,7 +7967,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
7966
7967
  };
7967
7968
  output: ({
7968
7969
  id: string;
7969
- md5: string;
7970
+ md5: string | null;
7970
7971
  size: bigint;
7971
7972
  sizeEncrypted: bigint | null;
7972
7973
  md5Encrypted: string | null;
@@ -7985,7 +7986,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
7985
7986
  maybeContent: Uint8Array<ArrayBufferLike> | null;
7986
7987
  } | {
7987
7988
  id: string;
7988
- md5: string;
7989
+ md5: string | null;
7989
7990
  size: bigint;
7990
7991
  sizeEncrypted: bigint | null;
7991
7992
  md5Encrypted: string | null;
@@ -8003,7 +8004,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
8003
8004
  maybeContent: Uint8Array<ArrayBufferLike> | null;
8004
8005
  } | {
8005
8006
  id: string;
8006
- md5: string;
8007
+ md5: string | null;
8007
8008
  size: bigint;
8008
8009
  sizeEncrypted: bigint | null;
8009
8010
  md5Encrypted: string | null;
@@ -8021,7 +8022,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
8021
8022
  }[];
8022
8023
  } | {
8023
8024
  id: string;
8024
- md5: string;
8025
+ md5: string | null;
8025
8026
  size: bigint;
8026
8027
  sizeEncrypted: bigint | null;
8027
8028
  md5Encrypted: string | null;
@@ -8231,7 +8232,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
8231
8232
  size: bigint;
8232
8233
  prefix: string;
8233
8234
  sizeEncrypted: bigint | null;
8234
- md5: string;
8235
+ md5: string | null;
8235
8236
  md5Encrypted: string | null;
8236
8237
  mime: string | null;
8237
8238
  ext: string | null;
@@ -8253,7 +8254,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
8253
8254
  size: bigint;
8254
8255
  prefix: string;
8255
8256
  sizeEncrypted: bigint | null;
8256
- md5: string;
8257
+ md5: string | null;
8257
8258
  md5Encrypted: string | null;
8258
8259
  mime: string | null;
8259
8260
  ext: string | null;
@@ -8388,7 +8389,6 @@ export declare const getTrpcGuestClient: ({ url }?: {
8388
8389
  uploadData: import("@trpc/server").TRPCMutationProcedure<{
8389
8390
  input: {
8390
8391
  size: bigint;
8391
- md5: string;
8392
8392
  sizeEncrypted: bigint;
8393
8393
  md5Encrypted: string;
8394
8394
  type: "encrypted";
@@ -8435,7 +8435,6 @@ export declare const getTrpcGuestClient: ({ url }?: {
8435
8435
  fromIdentityPubKey?: string | null | undefined;
8436
8436
  appId?: string | null | undefined;
8437
8437
  size: bigint;
8438
- md5: string;
8439
8438
  sizeEncrypted: bigint;
8440
8439
  md5Encrypted: string;
8441
8440
  type: "encrypted";
@@ -8480,7 +8479,6 @@ export declare const getTrpcGuestClient: ({ url }?: {
8480
8479
  uploadLiteData: import("@trpc/server").TRPCMutationProcedure<{
8481
8480
  input: {
8482
8481
  size: bigint;
8483
- md5: string;
8484
8482
  sizeEncrypted: bigint;
8485
8483
  md5Encrypted: string;
8486
8484
  type: "encrypted";
@@ -8846,7 +8844,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
8846
8844
  size: bigint;
8847
8845
  prefix: string;
8848
8846
  sizeEncrypted: bigint | null;
8849
- md5: string;
8847
+ md5: string | null;
8850
8848
  md5Encrypted: string | null;
8851
8849
  mime: string | null;
8852
8850
  ext: string | null;
@@ -8868,7 +8866,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
8868
8866
  size: bigint;
8869
8867
  prefix: string;
8870
8868
  sizeEncrypted: bigint | null;
8871
- md5: string;
8869
+ md5: string | null;
8872
8870
  md5Encrypted: string | null;
8873
8871
  mime: string | null;
8874
8872
  ext: string | null;
@@ -9317,7 +9315,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
9317
9315
  size: bigint;
9318
9316
  prefix: string;
9319
9317
  sizeEncrypted: bigint | null;
9320
- md5: string;
9318
+ md5: string | null;
9321
9319
  md5Encrypted: string | null;
9322
9320
  mime: string | null;
9323
9321
  ext: string | null;
@@ -9339,7 +9337,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
9339
9337
  size: bigint;
9340
9338
  prefix: string;
9341
9339
  sizeEncrypted: bigint | null;
9342
- md5: string;
9340
+ md5: string | null;
9343
9341
  md5Encrypted: string | null;
9344
9342
  mime: string | null;
9345
9343
  ext: string | null;
@@ -9536,7 +9534,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
9536
9534
  size: bigint;
9537
9535
  prefix: string;
9538
9536
  sizeEncrypted: bigint | null;
9539
- md5: string;
9537
+ md5: string | null;
9540
9538
  md5Encrypted: string | null;
9541
9539
  mime: string | null;
9542
9540
  ext: string | null;
@@ -9558,7 +9556,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
9558
9556
  size: bigint;
9559
9557
  prefix: string;
9560
9558
  sizeEncrypted: bigint | null;
9561
- md5: string;
9559
+ md5: string | null;
9562
9560
  md5Encrypted: string | null;
9563
9561
  mime: string | null;
9564
9562
  ext: string | null;
@@ -10096,7 +10094,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
10096
10094
  size: bigint;
10097
10095
  prefix: string;
10098
10096
  sizeEncrypted: bigint | null;
10099
- md5: string;
10097
+ md5: string | null;
10100
10098
  md5Encrypted: string | null;
10101
10099
  mime: string | null;
10102
10100
  ext: string | null;
@@ -10118,7 +10116,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
10118
10116
  size: bigint;
10119
10117
  prefix: string;
10120
10118
  sizeEncrypted: bigint | null;
10121
- md5: string;
10119
+ md5: string | null;
10122
10120
  md5Encrypted: string | null;
10123
10121
  mime: string | null;
10124
10122
  ext: string | null;
@@ -10626,7 +10624,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
10626
10624
  output: {
10627
10625
  id: string;
10628
10626
  name: string;
10629
- currentState: "init" | "ready";
10627
+ currentState: "init" | "resetting" | "ready" | "archived" | (string & Record<never, never>);
10630
10628
  isPrimary: boolean;
10631
10629
  parentId?: string | undefined;
10632
10630
  };
@@ -10650,7 +10648,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
10650
10648
  output: {
10651
10649
  id: string;
10652
10650
  name: string;
10653
- currentState: "init" | "ready";
10651
+ currentState: "init" | "resetting" | "ready" | "archived" | (string & Record<never, never>);
10654
10652
  isPrimary: boolean;
10655
10653
  parentId?: string | undefined;
10656
10654
  };
@@ -10668,7 +10666,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
10668
10666
  output: {
10669
10667
  id: string;
10670
10668
  name: string;
10671
- currentState: "init" | "ready";
10669
+ currentState: "init" | "resetting" | "ready" | "archived" | (string & Record<never, never>);
10672
10670
  isPrimary: boolean;
10673
10671
  parentId?: string | undefined;
10674
10672
  }[];
@@ -10684,7 +10682,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
10684
10682
  output: {
10685
10683
  id: string;
10686
10684
  name: string;
10687
- currentState: "init" | "ready";
10685
+ currentState: "init" | "resetting" | "ready" | "archived" | (string & Record<never, never>);
10688
10686
  isPrimary: boolean;
10689
10687
  parentId?: string | undefined;
10690
10688
  };
@@ -10710,7 +10708,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
10710
10708
  output: {
10711
10709
  id: string;
10712
10710
  name: string;
10713
- currentState: "init" | "ready";
10711
+ currentState: "init" | "resetting" | "ready" | "archived" | (string & Record<never, never>);
10714
10712
  isPrimary: boolean;
10715
10713
  parentId?: string | undefined;
10716
10714
  };
@@ -10725,7 +10723,7 @@ export declare const getTrpcGuestClient: ({ url }?: {
10725
10723
  output: {
10726
10724
  id: string;
10727
10725
  name: string;
10728
- currentState: "init" | "ready";
10726
+ currentState: "init" | "resetting" | "ready" | "archived" | (string & Record<never, never>);
10729
10727
  isPrimary: boolean;
10730
10728
  parentId?: string | undefined;
10731
10729
  };
@@ -1,18 +1,8 @@
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
- export interface DecryptSecretStreamOptions {
7
- /**
8
- * Accept a stream whose last chunk is not tagged `TAG_FINAL`.
9
- * Streams produced before the final tag was always set (size multiple of
10
- * CHUNK_SIZE) lack it, so a truncation at a chunk boundary is undetectable
11
- * for them: only enable this when the caller verifies the decrypted content
12
- * independently (e.g. against a known digest).
13
- */
14
- allowMissingFinalTag?: boolean;
15
- }
16
6
  export declare function secretStreamKeygen(): Uint8Array;
17
7
  export declare const CHUNK_SIZE = 8192;
18
8
  export interface SecretStreamProgress {
@@ -29,6 +19,6 @@ export declare function encryptSecretStream(key: Uint8Array, data: Uint8Array<Ar
29
19
  /**
30
20
  * Decrypt a secretstream produced by `encryptSecretStream`. Throws if any
31
21
  * chunk fails authentication, if data follows the `TAG_FINAL` chunk, or if the
32
- * stream ends without it (truncation) unless `allowMissingFinalTag` is set.
22
+ * stream ends without it (truncation).
33
23
  */
34
- export declare function decryptSecretStream(key: Uint8Array, data: Uint8Array<ArrayBuffer>, progress?: (progress: SecretStreamProgress) => Promise<void>, signal?: AbortSignal, options?: DecryptSecretStreamOptions): Promise<Uint8Array<ArrayBuffer>>;
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, }: {