@pmate/chat-sdk 0.12.0-next.9 → 0.12.0-next.90

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 (125) hide show
  1. package/README.md +216 -83
  2. package/lib/advanced.d.ts +10 -0
  3. package/lib/advanced.js +10 -0
  4. package/lib/chat.d.ts +5 -0
  5. package/lib/chat.js +11 -0
  6. package/lib/chatContract.d.ts +158 -0
  7. package/lib/chatContract.js +1 -0
  8. package/lib/chatError.d.ts +31 -0
  9. package/lib/chatError.js +18 -0
  10. package/lib/chatTypes.d.ts +128 -0
  11. package/lib/chatTypes.js +1 -0
  12. package/lib/commands.d.ts +20 -0
  13. package/lib/commands.js +12 -0
  14. package/lib/components/ChatInputDesktop.js +5 -4
  15. package/lib/components/ChatInputMobile.js +5 -4
  16. package/lib/components/CommandMenu.d.ts +15 -0
  17. package/lib/components/CommandMenu.js +10 -0
  18. package/lib/credentials.d.ts +26 -0
  19. package/lib/credentials.js +110 -0
  20. package/lib/fileMetadata.d.ts +9 -0
  21. package/lib/fileMetadata.js +18 -0
  22. package/lib/framework.d.ts +11 -0
  23. package/lib/framework.js +12 -0
  24. package/lib/history.d.ts +4 -0
  25. package/lib/history.js +8 -0
  26. package/lib/hooks/useChatSnapshot.d.ts +4 -0
  27. package/lib/hooks/useChatSnapshot.js +9 -0
  28. package/lib/hooks/useComposerSuggestions.d.ts +50 -0
  29. package/lib/hooks/useComposerSuggestions.js +70 -0
  30. package/lib/index.d.ts +6 -0
  31. package/lib/index.js +6 -0
  32. package/lib/internal/chatEngine.d.ts +131 -0
  33. package/lib/internal/chatEngine.js +306 -0
  34. package/lib/internal/chatRegistry.d.ts +4 -0
  35. package/lib/internal/chatRegistry.js +4 -0
  36. package/lib/internal/createPublicChat.d.ts +4 -0
  37. package/lib/internal/createPublicChat.js +62 -0
  38. package/lib/messageView.d.ts +6 -0
  39. package/lib/messageView.js +103 -0
  40. package/lib/runtime/batchedReadIndex.d.ts +16 -3
  41. package/lib/runtime/batchedReadIndex.js +50 -4
  42. package/lib/runtime/cachedMessage.d.ts +12 -0
  43. package/lib/runtime/cachedMessage.js +18 -0
  44. package/lib/runtime/chatClient.d.ts +8 -1
  45. package/lib/runtime/chatClient.js +18 -6
  46. package/lib/runtime/chatError.d.ts +5 -0
  47. package/lib/runtime/chatError.js +20 -0
  48. package/lib/runtime/chatSession.d.ts +141 -13
  49. package/lib/runtime/chatSession.js +797 -48
  50. package/lib/runtime/connectivity.d.ts +4 -0
  51. package/lib/runtime/connectivity.js +8 -0
  52. package/lib/runtime/conversationDirectory.d.ts +37 -0
  53. package/lib/runtime/conversationDirectory.js +116 -0
  54. package/lib/runtime/conversationRead.d.ts +14 -0
  55. package/lib/runtime/conversationRead.js +34 -0
  56. package/lib/runtime/conversationReading.d.ts +30 -0
  57. package/lib/runtime/conversationReading.js +47 -0
  58. package/lib/runtime/createChat.d.ts +14 -7
  59. package/lib/runtime/createChat.js +67 -24
  60. package/lib/runtime/durableSender.d.ts +97 -14
  61. package/lib/runtime/durableSender.js +787 -71
  62. package/lib/runtime/groupClient.d.ts +92 -0
  63. package/lib/runtime/groupClient.js +380 -0
  64. package/lib/runtime/groupDenial.d.ts +2 -0
  65. package/lib/runtime/groupDenial.js +4 -0
  66. package/lib/runtime/groupIdentity.d.ts +4 -0
  67. package/lib/runtime/groupIdentity.js +26 -0
  68. package/lib/runtime/inboxClient.d.ts +65 -0
  69. package/lib/runtime/inboxClient.js +268 -0
  70. package/lib/runtime/inboxGroup.d.ts +4 -0
  71. package/lib/runtime/inboxGroup.js +51 -0
  72. package/lib/runtime/inboxStore.d.ts +194 -0
  73. package/lib/runtime/inboxStore.js +321 -0
  74. package/lib/runtime/inboxTransport.d.ts +6 -0
  75. package/lib/runtime/inboxTransport.js +76 -0
  76. package/lib/runtime/index.d.ts +10 -0
  77. package/lib/runtime/index.js +8 -0
  78. package/lib/runtime/indexedDbRecovery.d.ts +6 -0
  79. package/lib/runtime/indexedDbRecovery.js +42 -0
  80. package/lib/runtime/messageClient.d.ts +37 -8
  81. package/lib/runtime/messageClient.js +366 -68
  82. package/lib/runtime/messageControls.d.ts +19 -0
  83. package/lib/runtime/messageControls.js +44 -0
  84. package/lib/runtime/messageDiscussionStore.d.ts +63 -0
  85. package/lib/runtime/messageDiscussionStore.js +147 -0
  86. package/lib/runtime/messageLaunch.d.ts +44 -0
  87. package/lib/runtime/messageLaunch.js +137 -0
  88. package/lib/runtime/messageQuotes.d.ts +3 -0
  89. package/lib/runtime/messageQuotes.js +17 -0
  90. package/lib/runtime/messageReaders.d.ts +5 -1
  91. package/lib/runtime/messageReaders.js +16 -5
  92. package/lib/runtime/messageStore.d.ts +51 -2
  93. package/lib/runtime/messageStore.js +264 -14
  94. package/lib/runtime/messageThread.d.ts +9 -0
  95. package/lib/runtime/messageThread.js +17 -0
  96. package/lib/runtime/messageTimeline.d.ts +51 -0
  97. package/lib/runtime/messageTimeline.js +121 -0
  98. package/lib/runtime/outboxSchema.d.ts +5 -0
  99. package/lib/runtime/outboxSchema.js +59 -0
  100. package/lib/runtime/outgoingContent.d.ts +95 -0
  101. package/lib/runtime/outgoingContent.js +121 -0
  102. package/lib/runtime/readBatchJournal.d.ts +35 -0
  103. package/lib/runtime/readBatchJournal.js +210 -0
  104. package/lib/runtime/readCounts.d.ts +7 -1
  105. package/lib/runtime/readCounts.js +108 -21
  106. package/lib/runtime/readIndex.d.ts +74 -7
  107. package/lib/runtime/readIndex.js +488 -33
  108. package/lib/runtime/readSchema.d.ts +2 -0
  109. package/lib/runtime/readSchema.js +58 -0
  110. package/lib/runtime/readSync.d.ts +8 -0
  111. package/lib/runtime/readSync.js +125 -17
  112. package/lib/runtime/readingClient.d.ts +22 -0
  113. package/lib/runtime/readingClient.js +141 -20
  114. package/lib/runtime/readingContent.d.ts +5 -0
  115. package/lib/runtime/readingContent.js +23 -0
  116. package/lib/runtime/responseCache.d.ts +41 -5
  117. package/lib/runtime/responseCache.js +182 -44
  118. package/lib/runtime/socialReadClient.d.ts +30 -4
  119. package/lib/runtime/socialReadClient.js +34 -8
  120. package/lib/runtime/voiceUpload.d.ts +2 -0
  121. package/lib/runtime/voiceUpload.js +27 -0
  122. package/lib/snapshot.d.ts +36 -0
  123. package/lib/snapshot.js +52 -0
  124. package/lib/types/chatInput.d.ts +3 -0
  125. package/package.json +32 -2
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pmate/chat-sdk",
3
- "version": "0.12.0-next.9",
4
- "description": "Cross-platform PMate chat input components, voice input primitives, and ASR helpers",
3
+ "version": "0.12.0-next.90",
4
+ "description": "Local-first chat SDK, message subscriptions, reading state, and shared chat UI primitives",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
7
7
  "types": "./lib/index.d.ts",
@@ -19,10 +19,40 @@
19
19
  "import": "./lib/index.js",
20
20
  "default": "./lib/index.js"
21
21
  },
22
+ "./bootstrap": {
23
+ "types": "./lib/runtime/messageLaunch.d.ts",
24
+ "import": "./lib/runtime/messageLaunch.js",
25
+ "default": "./lib/runtime/messageLaunch.js"
26
+ },
22
27
  "./runtime": {
23
28
  "types": "./lib/runtime/index.d.ts",
24
29
  "import": "./lib/runtime/index.js",
25
30
  "default": "./lib/runtime/index.js"
31
+ },
32
+ "./chat": {
33
+ "types": "./lib/chat.d.ts",
34
+ "import": "./lib/chat.js",
35
+ "default": "./lib/chat.js"
36
+ },
37
+ "./advanced": {
38
+ "types": "./lib/advanced.d.ts",
39
+ "import": "./lib/advanced.js",
40
+ "default": "./lib/advanced.js"
41
+ },
42
+ "./framework": {
43
+ "types": "./lib/framework.d.ts",
44
+ "import": "./lib/framework.js",
45
+ "default": "./lib/framework.js"
46
+ },
47
+ "./history": {
48
+ "types": "./lib/history.d.ts",
49
+ "import": "./lib/history.js",
50
+ "default": "./lib/history.js"
51
+ },
52
+ "./snapshot": {
53
+ "types": "./lib/snapshot.d.ts",
54
+ "import": "./lib/snapshot.js",
55
+ "default": "./lib/snapshot.js"
26
56
  }
27
57
  },
28
58
  "publishConfig": {