@awiki/dsh-plugin 0.2.0-rc.4

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 (118) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +138 -0
  3. package/README.zh.md +114 -0
  4. package/THIRD_PARTY_NOTICES.md +21 -0
  5. package/cordis.patch.yml +26 -0
  6. package/lib/client.js +8398 -0
  7. package/lib/client.js.map +1 -0
  8. package/lib/index.js +1497 -0
  9. package/lib/invariant.js +16 -0
  10. package/lib/provider.js +22 -0
  11. package/lib/sdk-adapter-DPPZhs6p.mjs +316 -0
  12. package/lib/summary-provider.js +192 -0
  13. package/lib/typert.host.d.ts +3 -0
  14. package/lib/typert.host.js +1201 -0
  15. package/lib/typert.remote-client.d.ts +54 -0
  16. package/lib/typert.remote-client.d.ts.map +1 -0
  17. package/lib/typert.remote-client.js +817 -0
  18. package/lib/types/client/AwikiOverlay.d.ts +22 -0
  19. package/lib/types/client/AwikiOverlay.d.ts.map +1 -0
  20. package/lib/types/client/AwikiOverlay.js +689 -0
  21. package/lib/types/client/AwikiOverlay.js.map +1 -0
  22. package/lib/types/client/AwikiSettingsSection.d.ts +25 -0
  23. package/lib/types/client/AwikiSettingsSection.d.ts.map +1 -0
  24. package/lib/types/client/AwikiSettingsSection.js +119 -0
  25. package/lib/types/client/AwikiSettingsSection.js.map +1 -0
  26. package/lib/types/client/assets.d.ts +3 -0
  27. package/lib/types/client/assets.d.ts.map +1 -0
  28. package/lib/types/client/assets.js +70 -0
  29. package/lib/types/client/assets.js.map +1 -0
  30. package/lib/types/client/controller.d.ts +194 -0
  31. package/lib/types/client/controller.d.ts.map +1 -0
  32. package/lib/types/client/controller.js +701 -0
  33. package/lib/types/client/controller.js.map +1 -0
  34. package/lib/types/client/file.d.ts +20 -0
  35. package/lib/types/client/file.d.ts.map +1 -0
  36. package/lib/types/client/file.js +41 -0
  37. package/lib/types/client/file.js.map +1 -0
  38. package/lib/types/client/index.d.ts +16 -0
  39. package/lib/types/client/index.d.ts.map +1 -0
  40. package/lib/types/client/index.js +129 -0
  41. package/lib/types/client/index.js.map +1 -0
  42. package/lib/types/client/settings-controller.d.ts +28 -0
  43. package/lib/types/client/settings-controller.d.ts.map +1 -0
  44. package/lib/types/client/settings-controller.js +139 -0
  45. package/lib/types/client/settings-controller.js.map +1 -0
  46. package/lib/types/client/settings-locales.d.ts +13 -0
  47. package/lib/types/client/settings-locales.d.ts.map +1 -0
  48. package/lib/types/client/settings-locales.js +68 -0
  49. package/lib/types/client/settings-locales.js.map +1 -0
  50. package/lib/types/client/slots.d.ts +74 -0
  51. package/lib/types/client/slots.d.ts.map +1 -0
  52. package/lib/types/client/slots.js +3 -0
  53. package/lib/types/client/slots.js.map +1 -0
  54. package/lib/types/client/store.d.ts +18 -0
  55. package/lib/types/client/store.d.ts.map +1 -0
  56. package/lib/types/client/store.js +17 -0
  57. package/lib/types/client/store.js.map +1 -0
  58. package/lib/types/client.d.ts +3 -0
  59. package/lib/types/client.d.ts.map +1 -0
  60. package/lib/types/client.js +3 -0
  61. package/lib/types/client.js.map +1 -0
  62. package/lib/types/domain.d.ts +10 -0
  63. package/lib/types/domain.d.ts.map +1 -0
  64. package/lib/types/domain.js +18 -0
  65. package/lib/types/domain.js.map +1 -0
  66. package/lib/types/index.d.ts +188 -0
  67. package/lib/types/index.d.ts.map +1 -0
  68. package/lib/types/index.js +861 -0
  69. package/lib/types/index.js.map +1 -0
  70. package/lib/types/invariant.d.ts +9 -0
  71. package/lib/types/invariant.d.ts.map +1 -0
  72. package/lib/types/invariant.js +14 -0
  73. package/lib/types/invariant.js.map +1 -0
  74. package/lib/types/provider-api.d.ts +70 -0
  75. package/lib/types/provider-api.d.ts.map +1 -0
  76. package/lib/types/provider-api.js +3 -0
  77. package/lib/types/provider-api.js.map +1 -0
  78. package/lib/types/provider.d.ts +9 -0
  79. package/lib/types/provider.d.ts.map +1 -0
  80. package/lib/types/provider.js +20 -0
  81. package/lib/types/provider.js.map +1 -0
  82. package/lib/types/sdk-adapter.d.ts +46 -0
  83. package/lib/types/sdk-adapter.d.ts.map +1 -0
  84. package/lib/types/sdk-adapter.js +327 -0
  85. package/lib/types/sdk-adapter.js.map +1 -0
  86. package/lib/types/session.d.ts +14 -0
  87. package/lib/types/session.d.ts.map +1 -0
  88. package/lib/types/session.js +76 -0
  89. package/lib/types/session.js.map +1 -0
  90. package/lib/types/settings-rpc-contract.d.ts +34 -0
  91. package/lib/types/settings-rpc-contract.d.ts.map +1 -0
  92. package/lib/types/settings-rpc-contract.js +62 -0
  93. package/lib/types/settings-rpc-contract.js.map +1 -0
  94. package/lib/types/settings-rpc.d.ts +6 -0
  95. package/lib/types/settings-rpc.d.ts.map +1 -0
  96. package/lib/types/settings-rpc.js +147 -0
  97. package/lib/types/settings-rpc.js.map +1 -0
  98. package/lib/types/settings.d.ts +13 -0
  99. package/lib/types/settings.d.ts.map +1 -0
  100. package/lib/types/settings.js +15 -0
  101. package/lib/types/settings.js.map +1 -0
  102. package/lib/types/summary-provider-api.d.ts +45 -0
  103. package/lib/types/summary-provider-api.d.ts.map +1 -0
  104. package/lib/types/summary-provider-api.js +3 -0
  105. package/lib/types/summary-provider-api.js.map +1 -0
  106. package/lib/types/summary-provider.d.ts +48 -0
  107. package/lib/types/summary-provider.d.ts.map +1 -0
  108. package/lib/types/summary-provider.js +208 -0
  109. package/lib/types/summary-provider.js.map +1 -0
  110. package/lib/types/tools.d.ts +20 -0
  111. package/lib/types/tools.d.ts.map +1 -0
  112. package/lib/types/tools.js +139 -0
  113. package/lib/types/tools.js.map +1 -0
  114. package/lib/types/types.d.ts +292 -0
  115. package/lib/types/types.d.ts.map +1 -0
  116. package/lib/types/types.js +6 -0
  117. package/lib/types/types.js.map +1 -0
  118. package/package.json +179 -0
@@ -0,0 +1,1201 @@
1
+ /* Generated by @deepseek-ai/dsh-typert-generator from FaceModel — do not edit. */
2
+ import { z } from 'zod'
3
+
4
+ const dsh_awiki_awiki_clearLocalData_parameter_0$schema = z.object({
5
+ 'confirmation': z.string().readonly(),
6
+ })
7
+ const dsh_awiki_awiki_clearLocalData_result$schema = z.union([z.object({
8
+ 'ok': z.literal(false).readonly(),
9
+ 'error': z.object({
10
+ 'code': z.union([z.literal("not-registered"), z.literal("signed-out"), z.literal("already-registered"), z.literal("invalid-request"), z.literal("invalid-otp"), z.literal("challenge-expired"), z.literal("handle-unavailable"), z.literal("not-found"), z.literal("forbidden"), z.literal("conflict"), z.literal("rate-limited"), z.literal("attachment-too-large"), z.literal("summary-unavailable"), z.literal("summary-timeout"), z.literal("summary-cancelled"), z.literal("summary-invalid-output"), z.literal("summary-failed"), z.literal("network"), z.literal("remote")]).readonly(),
11
+ 'message': z.string().readonly(),
12
+ }).readonly(),
13
+ }), z.object({
14
+ 'ok': z.literal(true).readonly(),
15
+ 'value': z.object({
16
+ 'cleared': z.boolean().readonly(),
17
+ }).readonly(),
18
+ })])
19
+ const dsh_awiki_awiki_downloadAttachment_parameter_0$schema = z.object({
20
+ 'attachmentId': z.intersection(z.string(), z.unknown()).readonly(),
21
+ 'messageId': z.intersection(z.string(), z.unknown()).readonly(),
22
+ })
23
+ const dsh_awiki_awiki_downloadAttachment_result$schema = z.union([z.object({
24
+ 'ok': z.literal(false).readonly(),
25
+ 'error': z.object({
26
+ 'code': z.union([z.literal("not-registered"), z.literal("signed-out"), z.literal("already-registered"), z.literal("invalid-request"), z.literal("invalid-otp"), z.literal("challenge-expired"), z.literal("handle-unavailable"), z.literal("not-found"), z.literal("forbidden"), z.literal("conflict"), z.literal("rate-limited"), z.literal("attachment-too-large"), z.literal("summary-unavailable"), z.literal("summary-timeout"), z.literal("summary-cancelled"), z.literal("summary-invalid-output"), z.literal("summary-failed"), z.literal("network"), z.literal("remote")]).readonly(),
27
+ 'message': z.string().readonly(),
28
+ }).readonly(),
29
+ }), z.object({
30
+ 'ok': z.literal(true).readonly(),
31
+ 'value': z.object({
32
+ 'attachment': z.object({
33
+ 'id': z.intersection(z.string(), z.unknown()).readonly(),
34
+ 'fileName': z.string().readonly(),
35
+ 'mimeType': z.string().readonly(),
36
+ 'size': z.number().readonly(),
37
+ 'sha256': z.string().readonly(),
38
+ }).readonly(),
39
+ 'bytesBase64': z.string().readonly(),
40
+ }).readonly(),
41
+ })])
42
+ const dsh_awiki_awiki_getConfig_result$schema = z.union([z.object({
43
+ 'ok': z.literal(false).readonly(),
44
+ 'error': z.object({
45
+ 'code': z.union([z.literal("not-registered"), z.literal("signed-out"), z.literal("already-registered"), z.literal("invalid-request"), z.literal("invalid-otp"), z.literal("challenge-expired"), z.literal("handle-unavailable"), z.literal("not-found"), z.literal("forbidden"), z.literal("conflict"), z.literal("rate-limited"), z.literal("attachment-too-large"), z.literal("summary-unavailable"), z.literal("summary-timeout"), z.literal("summary-cancelled"), z.literal("summary-invalid-output"), z.literal("summary-failed"), z.literal("network"), z.literal("remote")]).readonly(),
46
+ 'message': z.string().readonly(),
47
+ }).readonly(),
48
+ }), z.object({
49
+ 'ok': z.literal(true).readonly(),
50
+ 'value': z.object({
51
+ 'pollIntervalMs': z.number().readonly(),
52
+ 'attachmentMaxBytes': z.number().readonly(),
53
+ }).readonly(),
54
+ })])
55
+ const dsh_awiki_awiki_getHistory_parameter_0$schema = z.object({
56
+ 'conversationId': z.intersection(z.string(), z.unknown()).readonly(),
57
+ 'cursor': z.intersection(z.string(), z.unknown()).readonly().optional(),
58
+ 'limit': z.number().readonly().optional(),
59
+ })
60
+ const dsh_awiki_awiki_getHistory_result$schema = z.union([z.object({
61
+ 'ok': z.literal(false).readonly(),
62
+ 'error': z.object({
63
+ 'code': z.union([z.literal("not-registered"), z.literal("signed-out"), z.literal("already-registered"), z.literal("invalid-request"), z.literal("invalid-otp"), z.literal("challenge-expired"), z.literal("handle-unavailable"), z.literal("not-found"), z.literal("forbidden"), z.literal("conflict"), z.literal("rate-limited"), z.literal("attachment-too-large"), z.literal("summary-unavailable"), z.literal("summary-timeout"), z.literal("summary-cancelled"), z.literal("summary-invalid-output"), z.literal("summary-failed"), z.literal("network"), z.literal("remote")]).readonly(),
64
+ 'message': z.string().readonly(),
65
+ }).readonly(),
66
+ }), z.object({
67
+ 'ok': z.literal(true).readonly(),
68
+ 'value': z.object({
69
+ 'items': z.array(z.object({
70
+ 'id': z.intersection(z.string(), z.unknown()).readonly(),
71
+ 'conversationId': z.intersection(z.string(), z.unknown()).readonly(),
72
+ 'conversationKind': z.union([z.literal("direct"), z.literal("group")]).readonly(),
73
+ 'senderDid': z.intersection(z.string(), z.unknown()).readonly(),
74
+ 'senderHandle': z.intersection(z.string(), z.unknown()).readonly().optional(),
75
+ 'senderDisplayName': z.string().readonly().optional(),
76
+ 'sentAt': z.number().readonly(),
77
+ 'outgoing': z.boolean().readonly(),
78
+ 'content': z.union([z.object({
79
+ 'kind': z.literal("text").readonly(),
80
+ 'text': z.string().readonly(),
81
+ }), z.object({
82
+ 'kind': z.literal("attachment").readonly(),
83
+ 'attachment': z.object({
84
+ 'id': z.intersection(z.string(), z.unknown()).readonly(),
85
+ 'fileName': z.string().readonly(),
86
+ 'mimeType': z.string().readonly(),
87
+ 'size': z.number().readonly(),
88
+ 'sha256': z.string().readonly(),
89
+ }).readonly(),
90
+ 'caption': z.string().readonly().optional(),
91
+ })]).readonly(),
92
+ })).readonly(),
93
+ 'nextCursor': z.intersection(z.string(), z.unknown()).readonly().optional(),
94
+ 'hasMore': z.boolean().readonly(),
95
+ }).readonly(),
96
+ })])
97
+ const dsh_awiki_awiki_getIdentity_result$schema = z.union([z.object({
98
+ 'ok': z.literal(false).readonly(),
99
+ 'error': z.object({
100
+ 'code': z.union([z.literal("not-registered"), z.literal("signed-out"), z.literal("already-registered"), z.literal("invalid-request"), z.literal("invalid-otp"), z.literal("challenge-expired"), z.literal("handle-unavailable"), z.literal("not-found"), z.literal("forbidden"), z.literal("conflict"), z.literal("rate-limited"), z.literal("attachment-too-large"), z.literal("summary-unavailable"), z.literal("summary-timeout"), z.literal("summary-cancelled"), z.literal("summary-invalid-output"), z.literal("summary-failed"), z.literal("network"), z.literal("remote")]).readonly(),
101
+ 'message': z.string().readonly(),
102
+ }).readonly(),
103
+ }), z.object({
104
+ 'ok': z.literal(true).readonly(),
105
+ 'value': z.union([z.literal(null), z.object({
106
+ 'handle': z.intersection(z.string(), z.unknown()).readonly(),
107
+ 'did': z.intersection(z.string(), z.unknown()).readonly(),
108
+ 'displayName': z.string().readonly().optional(),
109
+ 'registeredAt': z.number().readonly(),
110
+ })]).readonly(),
111
+ })])
112
+ const dsh_awiki_awiki_getSession_result$schema = z.union([z.object({
113
+ 'ok': z.literal(false).readonly(),
114
+ 'error': z.object({
115
+ 'code': z.union([z.literal("not-registered"), z.literal("signed-out"), z.literal("already-registered"), z.literal("invalid-request"), z.literal("invalid-otp"), z.literal("challenge-expired"), z.literal("handle-unavailable"), z.literal("not-found"), z.literal("forbidden"), z.literal("conflict"), z.literal("rate-limited"), z.literal("attachment-too-large"), z.literal("summary-unavailable"), z.literal("summary-timeout"), z.literal("summary-cancelled"), z.literal("summary-invalid-output"), z.literal("summary-failed"), z.literal("network"), z.literal("remote")]).readonly(),
116
+ 'message': z.string().readonly(),
117
+ }).readonly(),
118
+ }), z.object({
119
+ 'ok': z.literal(true).readonly(),
120
+ 'value': z.union([z.object({
121
+ 'status': z.literal("unregistered").readonly(),
122
+ }), z.object({
123
+ 'status': z.literal("signed-out").readonly(),
124
+ }), z.object({
125
+ 'status': z.literal("active").readonly(),
126
+ 'identity': z.object({
127
+ 'handle': z.intersection(z.string(), z.unknown()).readonly(),
128
+ 'did': z.intersection(z.string(), z.unknown()).readonly(),
129
+ 'displayName': z.string().readonly().optional(),
130
+ 'registeredAt': z.number().readonly(),
131
+ }).readonly(),
132
+ })]).readonly(),
133
+ })])
134
+ const dsh_awiki_awiki_listConversations_parameter_0$schema = z.union([z.undefined(), z.object({
135
+ 'cursor': z.intersection(z.string(), z.unknown()).readonly().optional(),
136
+ 'limit': z.number().readonly().optional(),
137
+ })])
138
+ const dsh_awiki_awiki_listConversations_result$schema = z.union([z.object({
139
+ 'ok': z.literal(false).readonly(),
140
+ 'error': z.object({
141
+ 'code': z.union([z.literal("not-registered"), z.literal("signed-out"), z.literal("already-registered"), z.literal("invalid-request"), z.literal("invalid-otp"), z.literal("challenge-expired"), z.literal("handle-unavailable"), z.literal("not-found"), z.literal("forbidden"), z.literal("conflict"), z.literal("rate-limited"), z.literal("attachment-too-large"), z.literal("summary-unavailable"), z.literal("summary-timeout"), z.literal("summary-cancelled"), z.literal("summary-invalid-output"), z.literal("summary-failed"), z.literal("network"), z.literal("remote")]).readonly(),
142
+ 'message': z.string().readonly(),
143
+ }).readonly(),
144
+ }), z.object({
145
+ 'ok': z.literal(true).readonly(),
146
+ 'value': z.object({
147
+ 'items': z.array(z.union([z.object({
148
+ 'kind': z.literal("direct").readonly(),
149
+ 'id': z.intersection(z.string(), z.unknown()).readonly(),
150
+ 'peerDid': z.intersection(z.string(), z.unknown()).readonly(),
151
+ 'peerHandle': z.intersection(z.string(), z.unknown()).readonly().optional(),
152
+ 'displayName': z.string().readonly().optional(),
153
+ 'title': z.string().readonly(),
154
+ 'unreadCount': z.number().readonly().optional(),
155
+ 'lastMessageAt': z.number().readonly().optional(),
156
+ 'lastMessagePreview': z.string().readonly().optional(),
157
+ }), z.object({
158
+ 'kind': z.literal("group").readonly(),
159
+ 'id': z.intersection(z.string(), z.unknown()).readonly(),
160
+ 'groupDid': z.intersection(z.string(), z.unknown()).readonly(),
161
+ 'title': z.string().readonly(),
162
+ 'unreadCount': z.number().readonly().optional(),
163
+ 'lastMessageAt': z.number().readonly().optional(),
164
+ 'lastMessagePreview': z.string().readonly().optional(),
165
+ })])).readonly(),
166
+ 'nextCursor': z.intersection(z.string(), z.unknown()).readonly().optional(),
167
+ 'hasMore': z.boolean().readonly(),
168
+ }).readonly(),
169
+ })])
170
+ const dsh_awiki_awiki_login_result$schema = z.union([z.object({
171
+ 'ok': z.literal(false).readonly(),
172
+ 'error': z.object({
173
+ 'code': z.union([z.literal("not-registered"), z.literal("signed-out"), z.literal("already-registered"), z.literal("invalid-request"), z.literal("invalid-otp"), z.literal("challenge-expired"), z.literal("handle-unavailable"), z.literal("not-found"), z.literal("forbidden"), z.literal("conflict"), z.literal("rate-limited"), z.literal("attachment-too-large"), z.literal("summary-unavailable"), z.literal("summary-timeout"), z.literal("summary-cancelled"), z.literal("summary-invalid-output"), z.literal("summary-failed"), z.literal("network"), z.literal("remote")]).readonly(),
174
+ 'message': z.string().readonly(),
175
+ }).readonly(),
176
+ }), z.object({
177
+ 'ok': z.literal(true).readonly(),
178
+ 'value': z.union([z.object({
179
+ 'status': z.literal("unregistered").readonly(),
180
+ }), z.object({
181
+ 'status': z.literal("signed-out").readonly(),
182
+ }), z.object({
183
+ 'status': z.literal("active").readonly(),
184
+ 'identity': z.object({
185
+ 'handle': z.intersection(z.string(), z.unknown()).readonly(),
186
+ 'did': z.intersection(z.string(), z.unknown()).readonly(),
187
+ 'displayName': z.string().readonly().optional(),
188
+ 'registeredAt': z.number().readonly(),
189
+ }).readonly(),
190
+ })]).readonly(),
191
+ })])
192
+ const dsh_awiki_awiki_logout_parameter_0$schema = z.object({
193
+ 'confirmation': z.string().readonly(),
194
+ })
195
+ const dsh_awiki_awiki_logout_result$schema = z.union([z.object({
196
+ 'ok': z.literal(false).readonly(),
197
+ 'error': z.object({
198
+ 'code': z.union([z.literal("not-registered"), z.literal("signed-out"), z.literal("already-registered"), z.literal("invalid-request"), z.literal("invalid-otp"), z.literal("challenge-expired"), z.literal("handle-unavailable"), z.literal("not-found"), z.literal("forbidden"), z.literal("conflict"), z.literal("rate-limited"), z.literal("attachment-too-large"), z.literal("summary-unavailable"), z.literal("summary-timeout"), z.literal("summary-cancelled"), z.literal("summary-invalid-output"), z.literal("summary-failed"), z.literal("network"), z.literal("remote")]).readonly(),
199
+ 'message': z.string().readonly(),
200
+ }).readonly(),
201
+ }), z.object({
202
+ 'ok': z.literal(true).readonly(),
203
+ 'value': z.union([z.object({
204
+ 'status': z.literal("unregistered").readonly(),
205
+ }), z.object({
206
+ 'status': z.literal("signed-out").readonly(),
207
+ }), z.object({
208
+ 'status': z.literal("active").readonly(),
209
+ 'identity': z.object({
210
+ 'handle': z.intersection(z.string(), z.unknown()).readonly(),
211
+ 'did': z.intersection(z.string(), z.unknown()).readonly(),
212
+ 'displayName': z.string().readonly().optional(),
213
+ 'registeredAt': z.number().readonly(),
214
+ }).readonly(),
215
+ })]).readonly(),
216
+ })])
217
+ const dsh_awiki_awiki_markConversationRead_parameter_0$schema = z.object({
218
+ 'conversationId': z.intersection(z.string(), z.unknown()).readonly(),
219
+ })
220
+ const dsh_awiki_awiki_markConversationRead_result$schema = z.union([z.object({
221
+ 'ok': z.literal(false).readonly(),
222
+ 'error': z.object({
223
+ 'code': z.union([z.literal("not-registered"), z.literal("signed-out"), z.literal("already-registered"), z.literal("invalid-request"), z.literal("invalid-otp"), z.literal("challenge-expired"), z.literal("handle-unavailable"), z.literal("not-found"), z.literal("forbidden"), z.literal("conflict"), z.literal("rate-limited"), z.literal("attachment-too-large"), z.literal("summary-unavailable"), z.literal("summary-timeout"), z.literal("summary-cancelled"), z.literal("summary-invalid-output"), z.literal("summary-failed"), z.literal("network"), z.literal("remote")]).readonly(),
224
+ 'message': z.string().readonly(),
225
+ }).readonly(),
226
+ }), z.object({
227
+ 'ok': z.literal(true).readonly(),
228
+ 'value': z.number().readonly(),
229
+ })])
230
+ const dsh_awiki_awiki_registerIdentity_parameter_0$schema = z.object({
231
+ 'handle': z.string().readonly(),
232
+ 'phone': z.string().readonly(),
233
+ 'otp': z.string().readonly(),
234
+ })
235
+ const dsh_awiki_awiki_registerIdentity_result$schema = z.union([z.object({
236
+ 'ok': z.literal(false).readonly(),
237
+ 'error': z.object({
238
+ 'code': z.union([z.literal("not-registered"), z.literal("signed-out"), z.literal("already-registered"), z.literal("invalid-request"), z.literal("invalid-otp"), z.literal("challenge-expired"), z.literal("handle-unavailable"), z.literal("not-found"), z.literal("forbidden"), z.literal("conflict"), z.literal("rate-limited"), z.literal("attachment-too-large"), z.literal("summary-unavailable"), z.literal("summary-timeout"), z.literal("summary-cancelled"), z.literal("summary-invalid-output"), z.literal("summary-failed"), z.literal("network"), z.literal("remote")]).readonly(),
239
+ 'message': z.string().readonly(),
240
+ }).readonly(),
241
+ }), z.object({
242
+ 'ok': z.literal(true).readonly(),
243
+ 'value': z.object({
244
+ 'handle': z.intersection(z.string(), z.unknown()).readonly(),
245
+ 'did': z.intersection(z.string(), z.unknown()).readonly(),
246
+ 'displayName': z.string().readonly().optional(),
247
+ 'registeredAt': z.number().readonly(),
248
+ }).readonly(),
249
+ })])
250
+ const dsh_awiki_awiki_resolvePeer_parameter_0$schema = z.object({
251
+ 'peer': z.string().readonly(),
252
+ })
253
+ const dsh_awiki_awiki_resolvePeer_result$schema = z.union([z.object({
254
+ 'ok': z.literal(false).readonly(),
255
+ 'error': z.object({
256
+ 'code': z.union([z.literal("not-registered"), z.literal("signed-out"), z.literal("already-registered"), z.literal("invalid-request"), z.literal("invalid-otp"), z.literal("challenge-expired"), z.literal("handle-unavailable"), z.literal("not-found"), z.literal("forbidden"), z.literal("conflict"), z.literal("rate-limited"), z.literal("attachment-too-large"), z.literal("summary-unavailable"), z.literal("summary-timeout"), z.literal("summary-cancelled"), z.literal("summary-invalid-output"), z.literal("summary-failed"), z.literal("network"), z.literal("remote")]).readonly(),
257
+ 'message': z.string().readonly(),
258
+ }).readonly(),
259
+ }), z.object({
260
+ 'ok': z.literal(true).readonly(),
261
+ 'value': z.object({
262
+ 'did': z.intersection(z.string(), z.unknown()).readonly(),
263
+ 'handle': z.intersection(z.string(), z.unknown()).readonly().optional(),
264
+ 'displayName': z.string().readonly().optional(),
265
+ 'conversationId': z.intersection(z.string(), z.unknown()).readonly(),
266
+ }).readonly(),
267
+ })])
268
+ const dsh_awiki_awiki_sendAttachment_parameter_0$schema = z.object({
269
+ 'target': z.union([z.object({
270
+ 'kind': z.literal("direct").readonly(),
271
+ 'peer': z.string().readonly(),
272
+ }), z.object({
273
+ 'kind': z.literal("group").readonly(),
274
+ 'group': z.string().readonly(),
275
+ })]).readonly(),
276
+ 'fileName': z.string().readonly(),
277
+ 'mimeType': z.string().readonly(),
278
+ 'bytesBase64': z.string().readonly(),
279
+ 'caption': z.string().readonly().optional(),
280
+ 'idempotencyKey': z.string().readonly(),
281
+ })
282
+ const dsh_awiki_awiki_sendAttachment_result$schema = z.union([z.object({
283
+ 'ok': z.literal(false).readonly(),
284
+ 'error': z.object({
285
+ 'code': z.union([z.literal("not-registered"), z.literal("signed-out"), z.literal("already-registered"), z.literal("invalid-request"), z.literal("invalid-otp"), z.literal("challenge-expired"), z.literal("handle-unavailable"), z.literal("not-found"), z.literal("forbidden"), z.literal("conflict"), z.literal("rate-limited"), z.literal("attachment-too-large"), z.literal("summary-unavailable"), z.literal("summary-timeout"), z.literal("summary-cancelled"), z.literal("summary-invalid-output"), z.literal("summary-failed"), z.literal("network"), z.literal("remote")]).readonly(),
286
+ 'message': z.string().readonly(),
287
+ }).readonly(),
288
+ }), z.object({
289
+ 'ok': z.literal(true).readonly(),
290
+ 'value': z.object({
291
+ 'id': z.intersection(z.string(), z.unknown()).readonly(),
292
+ 'conversationId': z.intersection(z.string(), z.unknown()).readonly(),
293
+ 'conversationKind': z.union([z.literal("direct"), z.literal("group")]).readonly(),
294
+ 'senderDid': z.intersection(z.string(), z.unknown()).readonly(),
295
+ 'senderHandle': z.intersection(z.string(), z.unknown()).readonly().optional(),
296
+ 'senderDisplayName': z.string().readonly().optional(),
297
+ 'sentAt': z.number().readonly(),
298
+ 'outgoing': z.boolean().readonly(),
299
+ 'content': z.union([z.object({
300
+ 'kind': z.literal("text").readonly(),
301
+ 'text': z.string().readonly(),
302
+ }), z.object({
303
+ 'kind': z.literal("attachment").readonly(),
304
+ 'attachment': z.object({
305
+ 'id': z.intersection(z.string(), z.unknown()).readonly(),
306
+ 'fileName': z.string().readonly(),
307
+ 'mimeType': z.string().readonly(),
308
+ 'size': z.number().readonly(),
309
+ 'sha256': z.string().readonly(),
310
+ }).readonly(),
311
+ 'caption': z.string().readonly().optional(),
312
+ })]).readonly(),
313
+ }).readonly(),
314
+ })])
315
+ const dsh_awiki_awiki_sendRegistrationOtp_parameter_0$schema = z.object({
316
+ 'handle': z.string().readonly(),
317
+ 'phone': z.string().readonly(),
318
+ })
319
+ const dsh_awiki_awiki_sendRegistrationOtp_result$schema = z.union([z.object({
320
+ 'ok': z.literal(false).readonly(),
321
+ 'error': z.object({
322
+ 'code': z.union([z.literal("not-registered"), z.literal("signed-out"), z.literal("already-registered"), z.literal("invalid-request"), z.literal("invalid-otp"), z.literal("challenge-expired"), z.literal("handle-unavailable"), z.literal("not-found"), z.literal("forbidden"), z.literal("conflict"), z.literal("rate-limited"), z.literal("attachment-too-large"), z.literal("summary-unavailable"), z.literal("summary-timeout"), z.literal("summary-cancelled"), z.literal("summary-invalid-output"), z.literal("summary-failed"), z.literal("network"), z.literal("remote")]).readonly(),
323
+ 'message': z.string().readonly(),
324
+ }).readonly(),
325
+ }), z.object({
326
+ 'ok': z.literal(true).readonly(),
327
+ 'value': z.object({
328
+ 'retryAfterSeconds': z.number().readonly(),
329
+ 'retryAt': z.string().readonly(),
330
+ }).readonly(),
331
+ })])
332
+ const dsh_awiki_awiki_sendText_parameter_0$schema = z.object({
333
+ 'target': z.union([z.object({
334
+ 'kind': z.literal("direct").readonly(),
335
+ 'peer': z.string().readonly(),
336
+ }), z.object({
337
+ 'kind': z.literal("group").readonly(),
338
+ 'group': z.string().readonly(),
339
+ })]).readonly(),
340
+ 'text': z.string().readonly(),
341
+ 'idempotencyKey': z.string().readonly(),
342
+ })
343
+ const dsh_awiki_awiki_sendText_result$schema = z.union([z.object({
344
+ 'ok': z.literal(false).readonly(),
345
+ 'error': z.object({
346
+ 'code': z.union([z.literal("not-registered"), z.literal("signed-out"), z.literal("already-registered"), z.literal("invalid-request"), z.literal("invalid-otp"), z.literal("challenge-expired"), z.literal("handle-unavailable"), z.literal("not-found"), z.literal("forbidden"), z.literal("conflict"), z.literal("rate-limited"), z.literal("attachment-too-large"), z.literal("summary-unavailable"), z.literal("summary-timeout"), z.literal("summary-cancelled"), z.literal("summary-invalid-output"), z.literal("summary-failed"), z.literal("network"), z.literal("remote")]).readonly(),
347
+ 'message': z.string().readonly(),
348
+ }).readonly(),
349
+ }), z.object({
350
+ 'ok': z.literal(true).readonly(),
351
+ 'value': z.object({
352
+ 'id': z.intersection(z.string(), z.unknown()).readonly(),
353
+ 'conversationId': z.intersection(z.string(), z.unknown()).readonly(),
354
+ 'conversationKind': z.union([z.literal("direct"), z.literal("group")]).readonly(),
355
+ 'senderDid': z.intersection(z.string(), z.unknown()).readonly(),
356
+ 'senderHandle': z.intersection(z.string(), z.unknown()).readonly().optional(),
357
+ 'senderDisplayName': z.string().readonly().optional(),
358
+ 'sentAt': z.number().readonly(),
359
+ 'outgoing': z.boolean().readonly(),
360
+ 'content': z.union([z.object({
361
+ 'kind': z.literal("text").readonly(),
362
+ 'text': z.string().readonly(),
363
+ }), z.object({
364
+ 'kind': z.literal("attachment").readonly(),
365
+ 'attachment': z.object({
366
+ 'id': z.intersection(z.string(), z.unknown()).readonly(),
367
+ 'fileName': z.string().readonly(),
368
+ 'mimeType': z.string().readonly(),
369
+ 'size': z.number().readonly(),
370
+ 'sha256': z.string().readonly(),
371
+ }).readonly(),
372
+ 'caption': z.string().readonly().optional(),
373
+ })]).readonly(),
374
+ }).readonly(),
375
+ })])
376
+ const dsh_awiki_awiki_summarizeConversation_parameter_0$schema = z.object({
377
+ 'conversationId': z.intersection(z.string(), z.unknown()).readonly(),
378
+ 'unreadCountAtOpen': z.number().readonly().optional(),
379
+ })
380
+ const dsh_awiki_awiki_summarizeConversation_result$schema = z.union([z.object({
381
+ 'ok': z.literal(false).readonly(),
382
+ 'error': z.object({
383
+ 'code': z.union([z.literal("not-registered"), z.literal("signed-out"), z.literal("already-registered"), z.literal("invalid-request"), z.literal("invalid-otp"), z.literal("challenge-expired"), z.literal("handle-unavailable"), z.literal("not-found"), z.literal("forbidden"), z.literal("conflict"), z.literal("rate-limited"), z.literal("attachment-too-large"), z.literal("summary-unavailable"), z.literal("summary-timeout"), z.literal("summary-cancelled"), z.literal("summary-invalid-output"), z.literal("summary-failed"), z.literal("network"), z.literal("remote")]).readonly(),
384
+ 'message': z.string().readonly(),
385
+ }).readonly(),
386
+ }), z.object({
387
+ 'ok': z.literal(true).readonly(),
388
+ 'value': z.object({
389
+ 'range': z.object({
390
+ 'kind': z.union([z.literal("unread"), z.literal("recent")]).readonly(),
391
+ 'messageCount': z.number().readonly(),
392
+ 'firstMessageId': z.intersection(z.string(), z.unknown()).readonly(),
393
+ 'lastMessageId': z.intersection(z.string(), z.unknown()).readonly(),
394
+ 'startedAt': z.number().readonly(),
395
+ 'endedAt': z.number().readonly(),
396
+ 'truncated': z.boolean().readonly(),
397
+ }).readonly(),
398
+ 'highlights': z.array(z.string()).readonly(),
399
+ 'conclusions': z.array(z.string()).readonly(),
400
+ 'todos': z.array(z.object({
401
+ 'text': z.string().readonly(),
402
+ 'owner': z.string().readonly().optional(),
403
+ })).readonly(),
404
+ }).readonly(),
405
+ })])
406
+ const dsh_awiki_awiki_updateDisplayName_parameter_0$schema = z.object({
407
+ 'displayName': z.string().readonly(),
408
+ })
409
+ const dsh_awiki_awiki_updateDisplayName_result$schema = z.union([z.object({
410
+ 'ok': z.literal(false).readonly(),
411
+ 'error': z.object({
412
+ 'code': z.union([z.literal("not-registered"), z.literal("signed-out"), z.literal("already-registered"), z.literal("invalid-request"), z.literal("invalid-otp"), z.literal("challenge-expired"), z.literal("handle-unavailable"), z.literal("not-found"), z.literal("forbidden"), z.literal("conflict"), z.literal("rate-limited"), z.literal("attachment-too-large"), z.literal("summary-unavailable"), z.literal("summary-timeout"), z.literal("summary-cancelled"), z.literal("summary-invalid-output"), z.literal("summary-failed"), z.literal("network"), z.literal("remote")]).readonly(),
413
+ 'message': z.string().readonly(),
414
+ }).readonly(),
415
+ }), z.object({
416
+ 'ok': z.literal(true).readonly(),
417
+ 'value': z.object({
418
+ 'handle': z.intersection(z.string(), z.unknown()).readonly(),
419
+ 'did': z.intersection(z.string(), z.unknown()).readonly(),
420
+ 'displayName': z.string().readonly().optional(),
421
+ 'registeredAt': z.number().readonly(),
422
+ }).readonly(),
423
+ })])
424
+
425
+ export const TYPERT = {
426
+ package: '@awiki/dsh-plugin',
427
+ face: 'host',
428
+ schemas: [
429
+ ],
430
+ invocations: [
431
+ {
432
+ id: '@awiki/dsh-plugin#awiki/clearLocalData',
433
+ service: 'awiki',
434
+ namespace: 'awiki',
435
+ method: 'clearLocalData',
436
+ invocation: { kind: 'direct' },
437
+ parameters: [
438
+ {
439
+ name: 'request',
440
+ wire: 'request',
441
+ source: 'json',
442
+ codec: {
443
+ mode: 'strict',
444
+ typeSymbol: '@awiki/dsh-plugin/types#AwikiClearLocalDataRequest',
445
+ schema: dsh_awiki_awiki_clearLocalData_parameter_0$schema,
446
+ },
447
+ },
448
+ ],
449
+ result: {
450
+ mode: 'strict',
451
+ typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
452
+ schema: dsh_awiki_awiki_clearLocalData_result$schema,
453
+ },
454
+ sourceLocation: {"file":"packages/awiki/awiki/src/index.ts","line":803,"column":3},
455
+ },
456
+ {
457
+ id: '@awiki/dsh-plugin#awiki/downloadAttachment',
458
+ service: 'awiki',
459
+ namespace: 'awiki',
460
+ method: 'downloadAttachment',
461
+ invocation: { kind: 'direct' },
462
+ parameters: [
463
+ {
464
+ name: 'request',
465
+ wire: 'request',
466
+ source: 'json',
467
+ codec: {
468
+ mode: 'strict',
469
+ typeSymbol: '@awiki/dsh-plugin/types#AwikiDownloadAttachmentRequest',
470
+ schema: dsh_awiki_awiki_downloadAttachment_parameter_0$schema,
471
+ },
472
+ },
473
+ ],
474
+ result: {
475
+ mode: 'strict',
476
+ typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
477
+ schema: dsh_awiki_awiki_downloadAttachment_result$schema,
478
+ },
479
+ sourceLocation: {"file":"packages/awiki/awiki/src/index.ts","line":784,"column":9},
480
+ },
481
+ {
482
+ id: '@awiki/dsh-plugin#awiki/getConfig',
483
+ service: 'awiki',
484
+ namespace: 'awiki',
485
+ method: 'getConfig',
486
+ invocation: { kind: 'direct' },
487
+ parameters: [
488
+ ],
489
+ result: {
490
+ mode: 'strict',
491
+ typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
492
+ schema: dsh_awiki_awiki_getConfig_result$schema,
493
+ },
494
+ sourceLocation: {"file":"packages/awiki/awiki/src/index.ts","line":528,"column":3},
495
+ },
496
+ {
497
+ id: '@awiki/dsh-plugin#awiki/getHistory',
498
+ service: 'awiki',
499
+ namespace: 'awiki',
500
+ method: 'getHistory',
501
+ invocation: { kind: 'direct' },
502
+ parameters: [
503
+ {
504
+ name: 'request',
505
+ wire: 'request',
506
+ source: 'json',
507
+ codec: {
508
+ mode: 'strict',
509
+ typeSymbol: '@awiki/dsh-plugin/types#AwikiHistoryRequest',
510
+ schema: dsh_awiki_awiki_getHistory_parameter_0$schema,
511
+ },
512
+ },
513
+ ],
514
+ result: {
515
+ mode: 'strict',
516
+ typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
517
+ schema: dsh_awiki_awiki_getHistory_result$schema,
518
+ },
519
+ sourceLocation: {"file":"packages/awiki/awiki/src/index.ts","line":654,"column":3},
520
+ },
521
+ {
522
+ id: '@awiki/dsh-plugin#awiki/getIdentity',
523
+ service: 'awiki',
524
+ namespace: 'awiki',
525
+ method: 'getIdentity',
526
+ invocation: { kind: 'direct' },
527
+ parameters: [
528
+ ],
529
+ result: {
530
+ mode: 'strict',
531
+ typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
532
+ schema: dsh_awiki_awiki_getIdentity_result$schema,
533
+ },
534
+ sourceLocation: {"file":"packages/awiki/awiki/src/index.ts","line":543,"column":3},
535
+ },
536
+ {
537
+ id: '@awiki/dsh-plugin#awiki/getSession',
538
+ service: 'awiki',
539
+ namespace: 'awiki',
540
+ method: 'getSession',
541
+ invocation: { kind: 'direct' },
542
+ parameters: [
543
+ ],
544
+ result: {
545
+ mode: 'strict',
546
+ typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
547
+ schema: dsh_awiki_awiki_getSession_result$schema,
548
+ },
549
+ sourceLocation: {"file":"packages/awiki/awiki/src/index.ts","line":549,"column":9},
550
+ },
551
+ {
552
+ id: '@awiki/dsh-plugin#awiki/listConversations',
553
+ service: 'awiki',
554
+ namespace: 'awiki',
555
+ method: 'listConversations',
556
+ invocation: { kind: 'direct' },
557
+ parameters: [
558
+ {
559
+ name: 'request',
560
+ wire: 'request',
561
+ source: 'json',
562
+ acceptsUndefined: true,
563
+ codec: {
564
+ mode: 'strict',
565
+ typeSymbol: '@awiki/dsh-plugin/types#AwikiPageRequest',
566
+ schema: dsh_awiki_awiki_listConversations_parameter_0$schema,
567
+ },
568
+ },
569
+ ],
570
+ result: {
571
+ mode: 'strict',
572
+ typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
573
+ schema: dsh_awiki_awiki_listConversations_result$schema,
574
+ },
575
+ sourceLocation: {"file":"packages/awiki/awiki/src/index.ts","line":644,"column":3},
576
+ },
577
+ {
578
+ id: '@awiki/dsh-plugin#awiki/login',
579
+ service: 'awiki',
580
+ namespace: 'awiki',
581
+ method: 'login',
582
+ invocation: { kind: 'direct' },
583
+ parameters: [
584
+ ],
585
+ result: {
586
+ mode: 'strict',
587
+ typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
588
+ schema: dsh_awiki_awiki_login_result$schema,
589
+ },
590
+ sourceLocation: {"file":"packages/awiki/awiki/src/index.ts","line":582,"column":3},
591
+ },
592
+ {
593
+ id: '@awiki/dsh-plugin#awiki/logout',
594
+ service: 'awiki',
595
+ namespace: 'awiki',
596
+ method: 'logout',
597
+ invocation: { kind: 'direct' },
598
+ parameters: [
599
+ {
600
+ name: 'request',
601
+ wire: 'request',
602
+ source: 'json',
603
+ codec: {
604
+ mode: 'strict',
605
+ typeSymbol: '@awiki/dsh-plugin/types#AwikiLogoutRequest',
606
+ schema: dsh_awiki_awiki_logout_parameter_0$schema,
607
+ },
608
+ },
609
+ ],
610
+ result: {
611
+ mode: 'strict',
612
+ typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
613
+ schema: dsh_awiki_awiki_logout_result$schema,
614
+ },
615
+ sourceLocation: {"file":"packages/awiki/awiki/src/index.ts","line":560,"column":3},
616
+ },
617
+ {
618
+ id: '@awiki/dsh-plugin#awiki/markConversationRead',
619
+ service: 'awiki',
620
+ namespace: 'awiki',
621
+ method: 'markConversationRead',
622
+ invocation: { kind: 'direct' },
623
+ parameters: [
624
+ {
625
+ name: 'request',
626
+ wire: 'request',
627
+ source: 'json',
628
+ codec: {
629
+ mode: 'strict',
630
+ typeSymbol: '@awiki/dsh-plugin/types#AwikiMarkConversationReadRequest',
631
+ schema: dsh_awiki_awiki_markConversationRead_parameter_0$schema,
632
+ },
633
+ },
634
+ ],
635
+ result: {
636
+ mode: 'strict',
637
+ typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
638
+ schema: dsh_awiki_awiki_markConversationRead_result$schema,
639
+ },
640
+ sourceLocation: {"file":"packages/awiki/awiki/src/index.ts","line":743,"column":3},
641
+ },
642
+ {
643
+ id: '@awiki/dsh-plugin#awiki/registerIdentity',
644
+ service: 'awiki',
645
+ namespace: 'awiki',
646
+ method: 'registerIdentity',
647
+ invocation: { kind: 'direct' },
648
+ parameters: [
649
+ {
650
+ name: 'request',
651
+ wire: 'request',
652
+ source: 'json',
653
+ codec: {
654
+ mode: 'strict',
655
+ typeSymbol: '@awiki/dsh-plugin/types#AwikiRegistrationRequest',
656
+ schema: dsh_awiki_awiki_registerIdentity_parameter_0$schema,
657
+ },
658
+ },
659
+ ],
660
+ result: {
661
+ mode: 'strict',
662
+ typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
663
+ schema: dsh_awiki_awiki_registerIdentity_result$schema,
664
+ },
665
+ sourceLocation: {"file":"packages/awiki/awiki/src/index.ts","line":614,"column":3},
666
+ },
667
+ {
668
+ id: '@awiki/dsh-plugin#awiki/resolvePeer',
669
+ service: 'awiki',
670
+ namespace: 'awiki',
671
+ method: 'resolvePeer',
672
+ invocation: { kind: 'direct' },
673
+ parameters: [
674
+ {
675
+ name: 'request',
676
+ wire: 'request',
677
+ source: 'json',
678
+ codec: {
679
+ mode: 'strict',
680
+ typeSymbol: '@awiki/dsh-plugin/types#AwikiResolvePeerRequest',
681
+ schema: dsh_awiki_awiki_resolvePeer_parameter_0$schema,
682
+ },
683
+ },
684
+ ],
685
+ result: {
686
+ mode: 'strict',
687
+ typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
688
+ schema: dsh_awiki_awiki_resolvePeer_result$schema,
689
+ },
690
+ sourceLocation: {"file":"packages/awiki/awiki/src/index.ts","line":634,"column":3},
691
+ },
692
+ {
693
+ id: '@awiki/dsh-plugin#awiki/sendAttachment',
694
+ service: 'awiki',
695
+ namespace: 'awiki',
696
+ method: 'sendAttachment',
697
+ invocation: { kind: 'direct' },
698
+ parameters: [
699
+ {
700
+ name: 'request',
701
+ wire: 'request',
702
+ source: 'json',
703
+ codec: {
704
+ mode: 'strict',
705
+ typeSymbol: '@awiki/dsh-plugin/types#AwikiSendAttachmentRequest',
706
+ schema: dsh_awiki_awiki_sendAttachment_parameter_0$schema,
707
+ },
708
+ },
709
+ ],
710
+ result: {
711
+ mode: 'strict',
712
+ typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
713
+ schema: dsh_awiki_awiki_sendAttachment_result$schema,
714
+ },
715
+ sourceLocation: {"file":"packages/awiki/awiki/src/index.ts","line":763,"column":9},
716
+ },
717
+ {
718
+ id: '@awiki/dsh-plugin#awiki/sendRegistrationOtp',
719
+ service: 'awiki',
720
+ namespace: 'awiki',
721
+ method: 'sendRegistrationOtp',
722
+ invocation: { kind: 'direct' },
723
+ parameters: [
724
+ {
725
+ name: 'request',
726
+ wire: 'request',
727
+ source: 'json',
728
+ codec: {
729
+ mode: 'strict',
730
+ typeSymbol: '@awiki/dsh-plugin/types#AwikiRegistrationOtpRequest',
731
+ schema: dsh_awiki_awiki_sendRegistrationOtp_parameter_0$schema,
732
+ },
733
+ },
734
+ ],
735
+ result: {
736
+ mode: 'strict',
737
+ typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
738
+ schema: dsh_awiki_awiki_sendRegistrationOtp_result$schema,
739
+ },
740
+ sourceLocation: {"file":"packages/awiki/awiki/src/index.ts","line":604,"column":3},
741
+ },
742
+ {
743
+ id: '@awiki/dsh-plugin#awiki/sendText',
744
+ service: 'awiki',
745
+ namespace: 'awiki',
746
+ method: 'sendText',
747
+ invocation: { kind: 'direct' },
748
+ parameters: [
749
+ {
750
+ name: 'request',
751
+ wire: 'request',
752
+ source: 'json',
753
+ codec: {
754
+ mode: 'strict',
755
+ typeSymbol: '@awiki/dsh-plugin/types#AwikiSendTextRequest',
756
+ schema: dsh_awiki_awiki_sendText_parameter_0$schema,
757
+ },
758
+ },
759
+ ],
760
+ result: {
761
+ mode: 'strict',
762
+ typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
763
+ schema: dsh_awiki_awiki_sendText_result$schema,
764
+ },
765
+ sourceLocation: {"file":"packages/awiki/awiki/src/index.ts","line":753,"column":3},
766
+ },
767
+ {
768
+ id: '@awiki/dsh-plugin#awiki/summarizeConversation',
769
+ service: 'awiki',
770
+ namespace: 'awiki',
771
+ method: 'summarizeConversation',
772
+ invocation: { kind: 'direct' },
773
+ parameters: [
774
+ {
775
+ name: 'request',
776
+ wire: 'request',
777
+ source: 'json',
778
+ codec: {
779
+ mode: 'strict',
780
+ typeSymbol: '@awiki/dsh-plugin/types#AwikiSummarizeConversationRequest',
781
+ schema: dsh_awiki_awiki_summarizeConversation_parameter_0$schema,
782
+ },
783
+ },
784
+ ],
785
+ result: {
786
+ mode: 'strict',
787
+ typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
788
+ schema: dsh_awiki_awiki_summarizeConversation_result$schema,
789
+ },
790
+ sourceLocation: {"file":"packages/awiki/awiki/src/index.ts","line":664,"column":9},
791
+ },
792
+ {
793
+ id: '@awiki/dsh-plugin#awiki/updateDisplayName',
794
+ service: 'awiki',
795
+ namespace: 'awiki',
796
+ method: 'updateDisplayName',
797
+ invocation: { kind: 'direct' },
798
+ parameters: [
799
+ {
800
+ name: 'request',
801
+ wire: 'request',
802
+ source: 'json',
803
+ codec: {
804
+ mode: 'strict',
805
+ typeSymbol: '@awiki/dsh-plugin/types#AwikiUpdateDisplayNameRequest',
806
+ schema: dsh_awiki_awiki_updateDisplayName_parameter_0$schema,
807
+ },
808
+ },
809
+ ],
810
+ result: {
811
+ mode: 'strict',
812
+ typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
813
+ schema: dsh_awiki_awiki_updateDisplayName_result$schema,
814
+ },
815
+ sourceLocation: {"file":"packages/awiki/awiki/src/index.ts","line":624,"column":3},
816
+ },
817
+ ],
818
+ model: {
819
+ "services": [
820
+ {
821
+ "description": "Deployment-wide AWiki service over one replaceable high-level client provider.",
822
+ "summary": "Deployment-wide AWiki service over one replaceable high-level client provider.",
823
+ "tags": [],
824
+ "jsDoc": "/** Deployment-wide AWiki service over one replaceable high-level client provider. */",
825
+ "key": "awiki",
826
+ "exportName": "AwikiService",
827
+ "members": [
828
+ {
829
+ "kind": "method",
830
+ "name": "registerClientFactory",
831
+ "signature": "registerClientFactory(factory: AwikiClientFactory): () => Promise<void>",
832
+ "summary": "Register the deployment's sole client factory.",
833
+ "jsDoc": "/**\n * Register the deployment's sole client factory. The caller must return the\n * resulting disposer from its own `ctx.effect`; disposal clears the slot\n * before awaiting the client's quiescence and is idempotent.\n * @param factory - synchronous factory for one owned high-level client.\n * @returns asynchronous disposer for the exact registered client.\n */"
834
+ },
835
+ {
836
+ "kind": "method",
837
+ "name": "registerSummaryProvider",
838
+ "signature": "registerSummaryProvider(provider: AwikiSummaryProvider): () => void",
839
+ "summary": "Register one replaceable conversation-summary provider for this deployment.",
840
+ "jsDoc": "/** Register one replaceable conversation-summary provider for this deployment. */"
841
+ },
842
+ {
843
+ "kind": "method",
844
+ "name": "getConfig",
845
+ "signature": "@Remote getConfig(): Promise<AwikiResult<AwikiRuntimeConfig>>",
846
+ "summary": "Read settings needed by the browser presentation.",
847
+ "jsDoc": "/**\n * Read settings needed by the browser presentation.\n * @returns Browser-safe polling configuration without SDK endpoints or state paths.\n */"
848
+ },
849
+ {
850
+ "kind": "method",
851
+ "name": "getIdentity",
852
+ "signature": "@Remote getIdentity(): Promise<AwikiResult<AwikiIdentity | null>>",
853
+ "summary": "Read the deployment's identity status.",
854
+ "jsDoc": "/**\n * Read the deployment's identity status.\n * @returns The public deployment identity or `null`.\n */"
855
+ },
856
+ {
857
+ "kind": "method",
858
+ "name": "getSession",
859
+ "signature": "@Remote async getSession(): Promise<AwikiResult<AwikiSession>>",
860
+ "summary": "Return the local registration and sign-in state without exposing secrets.",
861
+ "jsDoc": "/** Return the local registration and sign-in state without exposing secrets. */"
862
+ },
863
+ {
864
+ "kind": "method",
865
+ "name": "logout",
866
+ "signature": "@Remote logout(request: AwikiLogoutRequest): Promise<AwikiResult<AwikiSession>>",
867
+ "summary": "Lock this installation while preserving the encrypted identity and local database.",
868
+ "jsDoc": "/** Lock this installation while preserving the encrypted identity and local database. */"
869
+ },
870
+ {
871
+ "kind": "method",
872
+ "name": "login",
873
+ "signature": "@Remote login(): Promise<AwikiResult<AwikiSession>>",
874
+ "summary": "Resume the same locally preserved identity without registration.",
875
+ "jsDoc": "/** Resume the same locally preserved identity without registration. */"
876
+ },
877
+ {
878
+ "kind": "method",
879
+ "name": "sendRegistrationOtp",
880
+ "signature": "@Remote sendRegistrationOtp(request: AwikiRegistrationOtpRequest): Promise<AwikiResult<AwikiRegistrationOtpResult>>",
881
+ "summary": "Send one Legacy registration verification code.",
882
+ "jsDoc": "/**\n * Send one Legacy registration verification code.\n * @param request - Handle and phone used for the registration challenge.\n * @returns Public retry timing or a closed failure.\n */"
883
+ },
884
+ {
885
+ "kind": "method",
886
+ "name": "registerIdentity",
887
+ "signature": "@Remote registerIdentity(request: AwikiRegistrationRequest): Promise<AwikiResult<AwikiIdentity>>",
888
+ "summary": "Register and persist the deployment's only AWiki identity.",
889
+ "jsDoc": "/**\n * Register and persist the deployment's only AWiki identity.\n * @param request - Handle, phone, and verification code for registration.\n * @returns The new public identity or a closed failure.\n */"
890
+ },
891
+ {
892
+ "kind": "method",
893
+ "name": "updateDisplayName",
894
+ "signature": "@Remote updateDisplayName(request: AwikiUpdateDisplayNameRequest): Promise<AwikiResult<AwikiIdentity>>",
895
+ "summary": "Update the deployment identity's public WNS display name.",
896
+ "jsDoc": "/**\n * Update the deployment identity's public WNS display name.\n * @param request - replacement display name selected by the user.\n * @returns The updated public identity or a closed failure.\n */"
897
+ },
898
+ {
899
+ "kind": "method",
900
+ "name": "resolvePeer",
901
+ "signature": "@Remote resolvePeer(request: AwikiResolvePeerRequest): Promise<AwikiResult<AwikiResolvedPeer>>",
902
+ "summary": "Resolve one Handle or DID before the browser opens a direct chat.",
903
+ "jsDoc": "/**\n * Resolve one Handle or DID before the browser opens a direct chat.\n * @param request - typed Handle or DID.\n * @returns The public peer and conversation id, or a closed failure.\n */"
904
+ },
905
+ {
906
+ "kind": "method",
907
+ "name": "listConversations",
908
+ "signature": "@Remote listConversations(request?: AwikiPageRequest): Promise<AwikiResult<AwikiPage<AwikiConversation>>>",
909
+ "summary": "List direct and existing group conversations.",
910
+ "jsDoc": "/**\n * List direct and existing group conversations.\n * @param request - Optional opaque cursor and page limit.\n * @returns One page of direct and existing group conversations.\n */"
911
+ },
912
+ {
913
+ "kind": "method",
914
+ "name": "getHistory",
915
+ "signature": "@Remote getHistory(request: AwikiHistoryRequest): Promise<AwikiResult<AwikiPage<AwikiMessage>>>",
916
+ "summary": "Read one direct or group conversation history page.",
917
+ "jsDoc": "/**\n * Read one direct or group conversation history page.\n * @param request - Conversation id, optional cursor, and page limit.\n * @returns One chronological history page.\n */"
918
+ },
919
+ {
920
+ "kind": "method",
921
+ "name": "summarizeConversation",
922
+ "signature": "@Remote async summarizeConversation( request: AwikiSummarizeConversationRequest, ): Promise<AwikiResult<AwikiConversationSummary>>",
923
+ "summary": "Read real AWiki history, enforce range and byte caps, then invoke the configured model once.",
924
+ "jsDoc": "/**\n * Read real AWiki history, enforce range and byte caps, then invoke the configured model once.\n * @param request - selected conversation and its unread snapshot at open time.\n * @returns a structured summary plus the exact summarized source range.\n */"
925
+ },
926
+ {
927
+ "kind": "method",
928
+ "name": "markConversationRead",
929
+ "signature": "@Remote markConversationRead(request: AwikiMarkConversationReadRequest): Promise<AwikiResult<number>>",
930
+ "summary": "Mark every currently unread inbox message in one conversation as read.",
931
+ "jsDoc": "/**\n * Mark every currently unread inbox message in one conversation as read.\n * @param request - conversation whose current inbox entries should be acknowledged.\n * @returns Number of inbox entries acknowledged by the Message Service.\n */"
932
+ },
933
+ {
934
+ "kind": "method",
935
+ "name": "sendText",
936
+ "signature": "@Remote sendText(request: AwikiSendTextRequest): Promise<AwikiResult<AwikiMessage>>",
937
+ "summary": "Send one text message through the deployment identity.",
938
+ "jsDoc": "/**\n * Send one text message through the deployment identity.\n * @param request - Target, text, and idempotency key.\n * @returns The accepted public message or a closed failure.\n */"
939
+ },
940
+ {
941
+ "kind": "method",
942
+ "name": "sendAttachment",
943
+ "signature": "@Remote async sendAttachment(request: AwikiSendAttachmentRequest): Promise<AwikiResult<AwikiMessage>>",
944
+ "summary": "Upload and send one attachment after Host validation.",
945
+ "jsDoc": "/**\n * Upload and send one attachment after Host validation.\n * @param request - Target, attachment metadata and Base64 bytes, caption, and idempotency key.\n * @returns The accepted attachment message or a closed failure.\n */"
946
+ },
947
+ {
948
+ "kind": "method",
949
+ "name": "downloadAttachment",
950
+ "signature": "@Remote async downloadAttachment(request: AwikiDownloadAttachmentRequest): Promise<AwikiResult<AwikiDownloadedAttachment>>",
951
+ "summary": "Download and encode one provider-verified attachment.",
952
+ "jsDoc": "/**\n * Download and encode one provider-verified attachment.\n * @param request - Containing message id and attachment id.\n * @returns Verified public metadata and canonical Base64 bytes, or a closed failure.\n */"
953
+ },
954
+ {
955
+ "kind": "method",
956
+ "name": "clearLocalData",
957
+ "signature": "@Remote clearLocalData(request: AwikiClearLocalDataRequest): Promise<AwikiResult<AwikiClearLocalDataResult>>",
958
+ "summary": "Permanently remove the exact SDK-owned local state after an explicit browser acknowledgement.",
959
+ "jsDoc": "/**\n * Permanently remove the exact SDK-owned local state after an explicit browser acknowledgement.\n * The remote AWiki account and Handle are not deleted.\n * @param request - exact destructive-action marker emitted only after the UI's second confirmation.\n * @returns Whether a persisted state file existed when the reset completed.\n */"
960
+ }
961
+ ],
962
+ "types": [
963
+ {
964
+ "name": "AwikiAttachment",
965
+ "declaration": "export interface AwikiAttachment {\n readonly id: AwikiAttachmentId;\n readonly fileName: string;\n readonly mimeType: string;\n readonly size: number;\n readonly sha256: string;\n}"
966
+ },
967
+ {
968
+ "name": "AwikiAttachmentContent",
969
+ "declaration": "export interface AwikiAttachmentContent {\n readonly kind: 'attachment';\n readonly attachment: AwikiAttachment;\n readonly caption?: string;\n}"
970
+ },
971
+ {
972
+ "name": "AwikiAttachmentId",
973
+ "declaration": "export type AwikiAttachmentId = Branded<'AwikiAttachmentId'>;"
974
+ },
975
+ {
976
+ "name": "AwikiClearLocalDataRequest",
977
+ "declaration": "export interface AwikiClearLocalDataRequest {\n readonly confirmation: string;\n}"
978
+ },
979
+ {
980
+ "name": "AwikiClearLocalDataResult",
981
+ "declaration": "export interface AwikiClearLocalDataResult {\n readonly cleared: boolean;\n}"
982
+ },
983
+ {
984
+ "name": "AwikiClientFactory",
985
+ "declaration": "export type AwikiClientFactory = (options: AwikiClientOptions) => AwikiSdkClient;"
986
+ },
987
+ {
988
+ "name": "AwikiClientOptions",
989
+ "declaration": "export interface AwikiClientOptions {\n readonly userServiceUrl: string;\n readonly userServiceDomain: string;\n readonly messageServiceUrl: string;\n readonly messageServicePublicUrl: string;\n readonly messageServiceDid: string;\n readonly allowedAttachmentOrigins: readonly string[];\n readonly attachmentMaxBytes: number;\n readonly allowInsecureLoopbackForTesting: boolean;\n readonly stateRoot: string;\n}"
990
+ },
991
+ {
992
+ "name": "AwikiConversation",
993
+ "declaration": "export type AwikiConversation = AwikiDirectConversation | AwikiGroupConversation;"
994
+ },
995
+ {
996
+ "name": "AwikiConversationId",
997
+ "declaration": "export type AwikiConversationId = Branded<'AwikiConversationId'>;"
998
+ },
999
+ {
1000
+ "name": "AwikiConversationSummary",
1001
+ "declaration": "export interface AwikiConversationSummary {\n readonly range: AwikiSummaryRange;\n readonly highlights: readonly string[];\n readonly conclusions: readonly string[];\n readonly todos: readonly AwikiSummaryTodo[];\n}"
1002
+ },
1003
+ {
1004
+ "name": "AwikiCursor",
1005
+ "declaration": "export type AwikiCursor = Branded<'AwikiCursor'>;"
1006
+ },
1007
+ {
1008
+ "name": "AwikiDid",
1009
+ "declaration": "export type AwikiDid = Branded<'AwikiDid'>;"
1010
+ },
1011
+ {
1012
+ "name": "AwikiDirectConversation",
1013
+ "declaration": "export interface AwikiDirectConversation {\n readonly kind: 'direct';\n readonly id: AwikiConversationId;\n readonly peerDid: AwikiDid;\n readonly peerHandle?: AwikiHandle;\n readonly displayName?: string;\n readonly title: string;\n readonly unreadCount?: number;\n readonly lastMessageAt?: number;\n readonly lastMessagePreview?: string;\n}"
1014
+ },
1015
+ {
1016
+ "name": "AwikiDirectTarget",
1017
+ "declaration": "export interface AwikiDirectTarget {\n readonly kind: 'direct';\n readonly peer: string;\n}"
1018
+ },
1019
+ {
1020
+ "name": "AwikiDownloadAttachmentRequest",
1021
+ "declaration": "export interface AwikiDownloadAttachmentRequest {\n readonly attachmentId: AwikiAttachmentId;\n readonly messageId: AwikiMessageId;\n}"
1022
+ },
1023
+ {
1024
+ "name": "AwikiDownloadedAttachment",
1025
+ "declaration": "export interface AwikiDownloadedAttachment {\n readonly attachment: AwikiAttachment;\n readonly bytesBase64: string;\n}"
1026
+ },
1027
+ {
1028
+ "name": "AwikiFailure",
1029
+ "declaration": "export interface AwikiFailure {\n readonly code: AwikiFailureCode;\n readonly message: string;\n}"
1030
+ },
1031
+ {
1032
+ "name": "AwikiFailureCode",
1033
+ "declaration": "export type AwikiFailureCode = 'not-registered' | 'signed-out' | 'already-registered' | 'invalid-request' | 'invalid-otp' | 'challenge-expired' | 'handle-unavailable' | 'not-found' | 'forbidden' | 'conflict' | 'rate-limited' | 'attachment-too-large' | 'summary-unavailable' | 'summary-timeout' | 'summary-cancelled' | 'summary-invalid-output' | 'summary-failed' | 'network' | 'remote';"
1034
+ },
1035
+ {
1036
+ "name": "AwikiGroupConversation",
1037
+ "declaration": "export interface AwikiGroupConversation {\n readonly kind: 'group';\n readonly id: AwikiConversationId;\n readonly groupDid: AwikiDid;\n readonly title: string;\n readonly unreadCount?: number;\n readonly lastMessageAt?: number;\n readonly lastMessagePreview?: string;\n}"
1038
+ },
1039
+ {
1040
+ "name": "AwikiGroupTarget",
1041
+ "declaration": "export interface AwikiGroupTarget {\n readonly kind: 'group';\n readonly group: string;\n}"
1042
+ },
1043
+ {
1044
+ "name": "AwikiHandle",
1045
+ "declaration": "export type AwikiHandle = Branded<'AwikiHandle'>;"
1046
+ },
1047
+ {
1048
+ "name": "AwikiHistoryRequest",
1049
+ "declaration": "export interface AwikiHistoryRequest extends AwikiPageRequest {\n readonly conversationId: AwikiConversationId;\n}"
1050
+ },
1051
+ {
1052
+ "name": "AwikiIdentity",
1053
+ "declaration": "export interface AwikiIdentity {\n readonly handle: AwikiHandle;\n readonly did: AwikiDid;\n readonly displayName?: string;\n readonly registeredAt: number;\n}"
1054
+ },
1055
+ {
1056
+ "name": "AwikiLogoutRequest",
1057
+ "declaration": "export interface AwikiLogoutRequest {\n readonly confirmation: string;\n}"
1058
+ },
1059
+ {
1060
+ "name": "AwikiMarkConversationReadRequest",
1061
+ "declaration": "export interface AwikiMarkConversationReadRequest {\n readonly conversationId: AwikiConversationId;\n}"
1062
+ },
1063
+ {
1064
+ "name": "AwikiMessage",
1065
+ "declaration": "export interface AwikiMessage {\n readonly id: AwikiMessageId;\n readonly conversationId: AwikiConversationId;\n readonly conversationKind: AwikiConversation['kind'];\n readonly senderDid: AwikiDid;\n readonly senderHandle?: AwikiHandle;\n readonly senderDisplayName?: string;\n readonly sentAt: number;\n readonly outgoing: boolean;\n readonly content: AwikiMessageContent;\n}"
1066
+ },
1067
+ {
1068
+ "name": "AwikiMessageContent",
1069
+ "declaration": "export type AwikiMessageContent = AwikiTextContent | AwikiAttachmentContent;"
1070
+ },
1071
+ {
1072
+ "name": "AwikiMessageId",
1073
+ "declaration": "export type AwikiMessageId = Branded<'AwikiMessageId'>;"
1074
+ },
1075
+ {
1076
+ "name": "AwikiMessageTarget",
1077
+ "declaration": "export type AwikiMessageTarget = AwikiDirectTarget | AwikiGroupTarget;"
1078
+ },
1079
+ {
1080
+ "name": "AwikiPage",
1081
+ "declaration": "export interface AwikiPage<Item> {\n readonly items: readonly Item[];\n readonly nextCursor?: AwikiCursor;\n readonly hasMore: boolean;\n}"
1082
+ },
1083
+ {
1084
+ "name": "AwikiPageRequest",
1085
+ "declaration": "export interface AwikiPageRequest {\n readonly cursor?: AwikiCursor;\n readonly limit?: number;\n}"
1086
+ },
1087
+ {
1088
+ "name": "AwikiRegistrationOtpRequest",
1089
+ "declaration": "export interface AwikiRegistrationOtpRequest {\n readonly handle: string;\n readonly phone: string;\n}"
1090
+ },
1091
+ {
1092
+ "name": "AwikiRegistrationOtpResult",
1093
+ "declaration": "export interface AwikiRegistrationOtpResult {\n readonly retryAfterSeconds: number;\n readonly retryAt: string;\n}"
1094
+ },
1095
+ {
1096
+ "name": "AwikiRegistrationRequest",
1097
+ "declaration": "export interface AwikiRegistrationRequest {\n readonly handle: string;\n readonly phone: string;\n readonly otp: string;\n}"
1098
+ },
1099
+ {
1100
+ "name": "AwikiRejected",
1101
+ "declaration": "export interface AwikiRejected {\n readonly ok: false;\n readonly error: AwikiFailure;\n}"
1102
+ },
1103
+ {
1104
+ "name": "AwikiResolvedPeer",
1105
+ "declaration": "export interface AwikiResolvedPeer {\n readonly did: AwikiDid;\n readonly handle?: AwikiHandle;\n readonly displayName?: string;\n readonly conversationId: AwikiConversationId;\n}"
1106
+ },
1107
+ {
1108
+ "name": "AwikiResolvePeerRequest",
1109
+ "declaration": "export interface AwikiResolvePeerRequest {\n readonly peer: string;\n}"
1110
+ },
1111
+ {
1112
+ "name": "AwikiResult",
1113
+ "declaration": "export type AwikiResult<Value> = AwikiSuccess<Value> | AwikiRejected;"
1114
+ },
1115
+ {
1116
+ "name": "AwikiRuntimeConfig",
1117
+ "declaration": "export interface AwikiRuntimeConfig {\n readonly pollIntervalMs: number;\n readonly attachmentMaxBytes: number;\n}"
1118
+ },
1119
+ {
1120
+ "name": "AwikiSdkAttachmentUpload",
1121
+ "declaration": "export interface AwikiSdkAttachmentUpload {\n readonly fileName: string;\n readonly mimeType: string;\n readonly bytes: Uint8Array;\n}"
1122
+ },
1123
+ {
1124
+ "name": "AwikiSdkClient",
1125
+ "declaration": "export interface AwikiSdkClient {\n getIdentity(): Promise<AwikiIdentity | null>;\n sendRegistrationOtp(request: AwikiRegistrationOtpRequest): Promise<AwikiRegistrationOtpResult>;\n registerIdentity(request: AwikiRegistrationRequest): Promise<AwikiIdentity>;\n updateDisplayName(request: AwikiUpdateDisplayNameRequest): Promise<AwikiIdentity>;\n resolvePeer(peer: string): Promise<AwikiResolvedPeer>;\n listConversations(request?: AwikiPageRequest): Promise<AwikiPage<AwikiConversation>>;\n getHistory(request: AwikiHistoryRequest): Promise<AwikiPage<AwikiMessage>>;\n markConversationRead(conversationId: AwikiConversationId): Promise<number>;\n sendText(request: AwikiSendTextRequest): Promise<AwikiMessage>;\n sendAttachment(request: AwikiSdkSendAttachmentRequest): Promise<AwikiMessage>;\n downloadAttachment(request: { readonly attachmentId: AwikiAttachmentId; readonly messageId: AwikiMessageId; }): Promise<AwikiSdkDownloadedAttachment>;\n clearLocalData(): Promise<{ readonly cleared: boolean; }>;\n dispose(): Promise<void>;\n}"
1126
+ },
1127
+ {
1128
+ "name": "AwikiSdkDownloadedAttachment",
1129
+ "declaration": "export interface AwikiSdkDownloadedAttachment {\n readonly attachment: AwikiAttachment;\n readonly bytes: Uint8Array;\n}"
1130
+ },
1131
+ {
1132
+ "name": "AwikiSdkSendAttachmentRequest",
1133
+ "declaration": "export interface AwikiSdkSendAttachmentRequest {\n readonly target: AwikiMessageTarget;\n readonly attachment: AwikiSdkAttachmentUpload;\n readonly caption?: string;\n readonly idempotencyKey: string;\n}"
1134
+ },
1135
+ {
1136
+ "name": "AwikiSendAttachmentRequest",
1137
+ "declaration": "export interface AwikiSendAttachmentRequest {\n readonly target: AwikiMessageTarget;\n readonly fileName: string;\n readonly mimeType: string;\n readonly bytesBase64: string;\n readonly caption?: string;\n readonly idempotencyKey: string;\n}"
1138
+ },
1139
+ {
1140
+ "name": "AwikiSendTextRequest",
1141
+ "declaration": "export interface AwikiSendTextRequest {\n readonly target: AwikiMessageTarget;\n readonly text: string;\n readonly idempotencyKey: string;\n}"
1142
+ },
1143
+ {
1144
+ "name": "AwikiSession",
1145
+ "declaration": "export type AwikiSession = { readonly status: 'unregistered'; } | { readonly status: 'signed-out'; } | { readonly status: 'active'; readonly identity: AwikiIdentity; };"
1146
+ },
1147
+ {
1148
+ "name": "AwikiSuccess",
1149
+ "declaration": "export interface AwikiSuccess<Value> {\n readonly ok: true;\n readonly value: Value;\n}"
1150
+ },
1151
+ {
1152
+ "name": "AwikiSummarizeConversationRequest",
1153
+ "declaration": "export interface AwikiSummarizeConversationRequest {\n readonly conversationId: AwikiConversationId;\n readonly unreadCountAtOpen?: number;\n}"
1154
+ },
1155
+ {
1156
+ "name": "AwikiSummaryAttachmentMessage",
1157
+ "declaration": "export interface AwikiSummaryAttachmentMessage {\n readonly id: AwikiMessageId;\n readonly sender: string;\n readonly outgoing: boolean;\n readonly sentAt: string;\n readonly content: { readonly kind: 'attachment'; readonly fileName: string; readonly mimeType: string; readonly size: number; readonly caption?: string; };\n}"
1158
+ },
1159
+ {
1160
+ "name": "AwikiSummaryProvider",
1161
+ "declaration": "export interface AwikiSummaryProvider {\n summarize(request: AwikiSummaryProviderRequest): Promise<AwikiSummaryProviderResult>;\n}"
1162
+ },
1163
+ {
1164
+ "name": "AwikiSummaryProviderRequest",
1165
+ "declaration": "export interface AwikiSummaryProviderRequest {\n readonly messages: readonly AwikiSummarySourceMessage[];\n readonly signal?: AbortSignal;\n}"
1166
+ },
1167
+ {
1168
+ "name": "AwikiSummaryProviderResult",
1169
+ "declaration": "export interface AwikiSummaryProviderResult {\n readonly highlights: readonly string[];\n readonly conclusions: readonly string[];\n readonly todos: readonly AwikiSummaryTodo[];\n}"
1170
+ },
1171
+ {
1172
+ "name": "AwikiSummaryRange",
1173
+ "declaration": "export interface AwikiSummaryRange {\n readonly kind: 'unread' | 'recent';\n readonly messageCount: number;\n readonly firstMessageId: AwikiMessageId;\n readonly lastMessageId: AwikiMessageId;\n readonly startedAt: number;\n readonly endedAt: number;\n readonly truncated: boolean;\n}"
1174
+ },
1175
+ {
1176
+ "name": "AwikiSummarySourceMessage",
1177
+ "declaration": "export type AwikiSummarySourceMessage = AwikiSummaryTextMessage | AwikiSummaryAttachmentMessage;"
1178
+ },
1179
+ {
1180
+ "name": "AwikiSummaryTextMessage",
1181
+ "declaration": "export interface AwikiSummaryTextMessage {\n readonly id: AwikiMessageId;\n readonly sender: string;\n readonly outgoing: boolean;\n readonly sentAt: string;\n readonly content: { readonly kind: 'text'; readonly text: string; };\n}"
1182
+ },
1183
+ {
1184
+ "name": "AwikiSummaryTodo",
1185
+ "declaration": "export interface AwikiSummaryTodo {\n readonly text: string;\n readonly owner?: string;\n}"
1186
+ },
1187
+ {
1188
+ "name": "AwikiTextContent",
1189
+ "declaration": "export interface AwikiTextContent {\n readonly kind: 'text';\n readonly text: string;\n}"
1190
+ },
1191
+ {
1192
+ "name": "AwikiUpdateDisplayNameRequest",
1193
+ "declaration": "export interface AwikiUpdateDisplayNameRequest {\n readonly displayName: string;\n}"
1194
+ }
1195
+ ]
1196
+ }
1197
+ ],
1198
+ "events": [],
1199
+ "objects": []
1200
+ },
1201
+ }