@interncom/diplomatic 0.23.0 → 0.25.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.
Files changed (48) hide show
  1. package/dist/cli/index.mjs +2 -2
  2. package/dist/cli/shared/auth.d.ts +2 -2
  3. package/dist/cli/shared/bag.d.ts +7 -5
  4. package/dist/cli/shared/client.d.ts +10 -7
  5. package/dist/cli/shared/codec.d.ts +4 -0
  6. package/dist/cli/shared/codecs/kdm.d.ts +1 -0
  7. package/dist/cli/shared/crypto/bagman.d.ts +19 -0
  8. package/dist/cli/shared/crypto/binary.d.ts +1 -0
  9. package/dist/cli/shared/crypto/derivation.d.ts +1 -0
  10. package/dist/cli/shared/crypto/enclave.d.ts +25 -59
  11. package/dist/cli/shared/endpoint.d.ts +3 -4
  12. package/dist/cli/shared/sync.d.ts +2 -4
  13. package/dist/cli/shared/types.d.ts +0 -5
  14. package/dist/cli/src/index.d.ts +1 -1
  15. package/dist/web/client.d.ts +8 -2
  16. package/dist/web/entdb/idb.d.ts +1 -3
  17. package/dist/web/index.d.ts +5 -3
  18. package/dist/web/index.mjs +1 -1
  19. package/dist/web/objEq.d.ts +1 -0
  20. package/dist/web/shared/auth.d.ts +2 -2
  21. package/dist/web/shared/bag.d.ts +7 -5
  22. package/dist/web/shared/blobs.d.ts +25 -0
  23. package/dist/web/shared/client.d.ts +10 -7
  24. package/dist/web/shared/codec.d.ts +4 -0
  25. package/dist/web/shared/codecs/ent.d.ts +5 -0
  26. package/dist/web/shared/codecs/file.d.ts +2 -3
  27. package/dist/web/shared/codecs/fileHead.d.ts +6 -4
  28. package/dist/web/shared/codecs/fileIndexItem.d.ts +0 -1
  29. package/dist/web/shared/codecs/fileRealm.d.ts +9 -0
  30. package/dist/web/shared/codecs/kdm.d.ts +1 -0
  31. package/dist/web/shared/crypto/bagman.d.ts +19 -0
  32. package/dist/web/shared/crypto/binary.d.ts +1 -0
  33. package/dist/web/shared/crypto/derivation.d.ts +1 -0
  34. package/dist/web/shared/crypto/enclave.d.ts +25 -59
  35. package/dist/web/shared/crypto/exim.d.ts +22 -0
  36. package/dist/web/shared/crypto/export.d.ts +5 -0
  37. package/dist/web/shared/crypto/tty.d.ts +1 -1
  38. package/dist/web/shared/endpoint.d.ts +3 -4
  39. package/dist/web/shared/sync.d.ts +2 -4
  40. package/dist/web/shared/types.d.ts +0 -5
  41. package/dist/web/state.d.ts +1 -2
  42. package/dist/web/sync.d.ts +7 -8
  43. package/dist/web/types.d.ts +7 -2
  44. package/dist/web/worker/client.d.ts +6 -2
  45. package/dist/web/worker.mjs +1 -1
  46. package/package.json +1 -2
  47. package/dist/cli/bun/src/codec.d.ts +0 -3
  48. package/dist/web/shared/exim.d.ts +0 -24
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@interncom/diplomatic",
3
- "version": "0.23.0",
3
+ "version": "0.25.0",
4
4
  "type": "module",
5
5
  "description": "Secure sync layer and CLI utilities for DIPLOMATIC",
6
6
  "files": [
@@ -53,7 +53,6 @@
53
53
  "react": "^19.0.0"
54
54
  },
55
55
  "dependencies": {
56
- "@msgpack/msgpack": "3.1.3",
57
56
  "@noble/ciphers": "1.2.0",
58
57
  "@noble/hashes": "1.8.0"
59
58
  }
@@ -1,3 +0,0 @@
1
- import type { IMsgpackCodec } from "../../shared/types.ts";
2
- declare const bunMsgpack: IMsgpackCodec;
3
- export default bunMsgpack;
@@ -1,24 +0,0 @@
1
- import { Enclave } from "./crypto/enclave.ts";
2
- import { ICrypto, IMessageHead } from "./types.ts";
3
- import { ValStat } from "./valstat.ts";
4
- export declare namespace Exim {
5
- const defaultFileExtension = "dpl";
6
- function encodeFile(keyLbl: string, keyIdx: number, msgs: Iterable<{
7
- head: IMessageHead;
8
- body?: Uint8Array;
9
- }>, crypto: ICrypto, enclave: Enclave): Promise<ValStat<Uint8Array>>;
10
- function decodeFile(file: Uint8Array, crypto: ICrypto, enclave: Enclave): Promise<ValStat<{
11
- head: IMessageHead;
12
- body?: Uint8Array;
13
- }[]>>;
14
- function migrateFile(file: Uint8Array, crypto: ICrypto, enclaveIn: Enclave, enclaveOut: Enclave, transform: (msgs: Iterable<{
15
- head: IMessageHead;
16
- body?: Uint8Array;
17
- }>) => Iterable<{
18
- head: IMessageHead;
19
- body?: Uint8Array;
20
- }> | Promise<Iterable<{
21
- head: IMessageHead;
22
- body?: Uint8Array;
23
- }>>): Promise<ValStat<Uint8Array>>;
24
- }