@awiki/dsh-plugin 0.2.4 → 0.3.0-rc.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.
- package/README.md +131 -22
- package/README.zh.md +110 -20
- package/THIRD_PARTY_NOTICES.md +8 -1
- package/cordis.patch.yml +5 -0
- package/lib/client.js +12534 -2647
- package/lib/client.js.map +1 -1
- package/lib/index.js +2431 -92
- package/lib/model-proxy-contract.js +96 -0
- package/lib/provider.js +4 -1
- package/lib/sdk-adapter-DLhLrLI6.mjs +886 -0
- package/lib/typert.host.js +1269 -534
- package/lib/typert.remote-client.d.ts +47 -1
- package/lib/typert.remote-client.d.ts.map +1 -1
- package/lib/typert.remote-client.js +1254 -141
- package/lib/types/attachment-cache.d.ts +28 -0
- package/lib/types/attachment-cache.d.ts.map +1 -0
- package/lib/types/attachment-cache.js +194 -0
- package/lib/types/attachment-cache.js.map +1 -0
- package/lib/types/client/AwikiGroupDetails.d.ts +16 -0
- package/lib/types/client/AwikiGroupDetails.d.ts.map +1 -0
- package/lib/types/client/AwikiGroupDetails.js +108 -0
- package/lib/types/client/AwikiGroupDetails.js.map +1 -0
- package/lib/types/client/AwikiIdentityAccess.d.ts +21 -0
- package/lib/types/client/AwikiIdentityAccess.d.ts.map +1 -0
- package/lib/types/client/AwikiIdentityAccess.js +148 -0
- package/lib/types/client/AwikiIdentityAccess.js.map +1 -0
- package/lib/types/client/AwikiIdentityPage.d.ts +11 -0
- package/lib/types/client/AwikiIdentityPage.d.ts.map +1 -0
- package/lib/types/client/AwikiIdentityPage.js +8 -0
- package/lib/types/client/AwikiIdentityPage.js.map +1 -0
- package/lib/types/client/AwikiMail.d.ts +15 -0
- package/lib/types/client/AwikiMail.d.ts.map +1 -0
- package/lib/types/client/AwikiMail.js +380 -0
- package/lib/types/client/AwikiMail.js.map +1 -0
- package/lib/types/client/AwikiOnboarding.d.ts +22 -0
- package/lib/types/client/AwikiOnboarding.d.ts.map +1 -0
- package/lib/types/client/AwikiOnboarding.js +104 -0
- package/lib/types/client/AwikiOnboarding.js.map +1 -0
- package/lib/types/client/AwikiOverlay.d.ts +10 -0
- package/lib/types/client/AwikiOverlay.d.ts.map +1 -1
- package/lib/types/client/AwikiOverlay.js +370 -127
- package/lib/types/client/AwikiOverlay.js.map +1 -1
- package/lib/types/client/AwikiProfileCard.d.ts +9 -0
- package/lib/types/client/AwikiProfileCard.d.ts.map +1 -0
- package/lib/types/client/AwikiProfileCard.js +90 -0
- package/lib/types/client/AwikiProfileCard.js.map +1 -0
- package/lib/types/client/AwikiRecoveryForm.d.ts +24 -0
- package/lib/types/client/AwikiRecoveryForm.d.ts.map +1 -0
- package/lib/types/client/AwikiRecoveryForm.js +148 -0
- package/lib/types/client/AwikiRecoveryForm.js.map +1 -0
- package/lib/types/client/AwikiSettingsSection.d.ts +18 -4
- package/lib/types/client/AwikiSettingsSection.d.ts.map +1 -1
- package/lib/types/client/AwikiSettingsSection.js +277 -23
- package/lib/types/client/AwikiSettingsSection.js.map +1 -1
- package/lib/types/client/MentionText.d.ts +7 -0
- package/lib/types/client/MentionText.d.ts.map +1 -0
- package/lib/types/client/MentionText.js +10 -0
- package/lib/types/client/MentionText.js.map +1 -0
- package/lib/types/client/RechargeComingSoonDialog.d.ts +11 -0
- package/lib/types/client/RechargeComingSoonDialog.d.ts.map +1 -0
- package/lib/types/client/RechargeComingSoonDialog.js +8 -0
- package/lib/types/client/RechargeComingSoonDialog.js.map +1 -0
- package/lib/types/client/controller.d.ts +174 -4
- package/lib/types/client/controller.d.ts.map +1 -1
- package/lib/types/client/controller.js +975 -79
- package/lib/types/client/controller.js.map +1 -1
- package/lib/types/client/image-cache.d.ts +20 -0
- package/lib/types/client/image-cache.d.ts.map +1 -0
- package/lib/types/client/image-cache.js +177 -0
- package/lib/types/client/image-cache.js.map +1 -0
- package/lib/types/client/index.d.ts +2 -0
- package/lib/types/client/index.d.ts.map +1 -1
- package/lib/types/client/index.js +102 -42
- package/lib/types/client/index.js.map +1 -1
- package/lib/types/client/mail-list-cache.d.ts +15 -0
- package/lib/types/client/mail-list-cache.d.ts.map +1 -0
- package/lib/types/client/mail-list-cache.js +212 -0
- package/lib/types/client/mail-list-cache.js.map +1 -0
- package/lib/types/client/mentions.d.ts +51 -0
- package/lib/types/client/mentions.d.ts.map +1 -0
- package/lib/types/client/mentions.js +165 -0
- package/lib/types/client/mentions.js.map +1 -0
- package/lib/types/client/model-availability-controller.d.ts +27 -0
- package/lib/types/client/model-availability-controller.d.ts.map +1 -0
- package/lib/types/client/model-availability-controller.js +111 -0
- package/lib/types/client/model-availability-controller.js.map +1 -0
- package/lib/types/client/model-proxy-controller.d.ts +45 -0
- package/lib/types/client/model-proxy-controller.d.ts.map +1 -0
- package/lib/types/client/model-proxy-controller.js +306 -0
- package/lib/types/client/model-proxy-controller.js.map +1 -0
- package/lib/types/client/recharge-availability.d.ts +6 -0
- package/lib/types/client/recharge-availability.d.ts.map +1 -0
- package/lib/types/client/recharge-availability.js +6 -0
- package/lib/types/client/recharge-availability.js.map +1 -0
- package/lib/types/client/settings-locales.d.ts +1 -1
- package/lib/types/client/settings-locales.d.ts.map +1 -1
- package/lib/types/client/settings-locales.js +186 -8
- package/lib/types/client/settings-locales.js.map +1 -1
- package/lib/types/client/slots.d.ts +34 -2
- package/lib/types/client/slots.d.ts.map +1 -1
- package/lib/types/index.d.ts +95 -7
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/index.js +968 -37
- package/lib/types/index.js.map +1 -1
- package/lib/types/listener-state.d.ts +23 -0
- package/lib/types/listener-state.d.ts.map +1 -0
- package/lib/types/listener-state.js +124 -0
- package/lib/types/listener-state.js.map +1 -0
- package/lib/types/listener.d.ts +96 -0
- package/lib/types/listener.d.ts.map +1 -0
- package/lib/types/listener.js +575 -0
- package/lib/types/listener.js.map +1 -0
- package/lib/types/mail.d.ts +8 -0
- package/lib/types/mail.d.ts.map +1 -0
- package/lib/types/mail.js +75 -0
- package/lib/types/mail.js.map +1 -0
- package/lib/types/model-proxy-contract.d.ts +67 -0
- package/lib/types/model-proxy-contract.d.ts.map +1 -0
- package/lib/types/model-proxy-contract.js +135 -0
- package/lib/types/model-proxy-contract.js.map +1 -0
- package/lib/types/provider-api.d.ts +106 -2
- package/lib/types/provider-api.d.ts.map +1 -1
- package/lib/types/provider.d.ts.map +1 -1
- package/lib/types/provider.js +3 -0
- package/lib/types/provider.js.map +1 -1
- package/lib/types/sdk-adapter.d.ts +43 -2
- package/lib/types/sdk-adapter.d.ts.map +1 -1
- package/lib/types/sdk-adapter.js +622 -24
- package/lib/types/sdk-adapter.js.map +1 -1
- package/lib/types/sent-mail-store.d.ts +22 -0
- package/lib/types/sent-mail-store.d.ts.map +1 -0
- package/lib/types/sent-mail-store.js +246 -0
- package/lib/types/sent-mail-store.js.map +1 -0
- package/lib/types/tools.d.ts +10 -0
- package/lib/types/tools.d.ts.map +1 -1
- package/lib/types/tools.js +98 -0
- package/lib/types/tools.js.map +1 -1
- package/lib/types/types.d.ts +254 -2
- package/lib/types/types.d.ts.map +1 -1
- package/lib/types/types.js.map +1 -1
- package/package.json +31 -17
- package/lib/sdk-adapter-DK6RqV-c.mjs +0 -355
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** Composed props and injected browser operations for the AWiki overlay. */
|
|
2
2
|
import type { HostObservable, InjectFace, PropsRuntime, PropsStore } from '@deepseek-ai/dsh-client-ui-slots';
|
|
3
|
-
import type { AwikiAttachmentId, AwikiConversationId, AwikiDownloadedAttachment, AwikiIdentity, AwikiMessageId, AwikiRegistrationOtpRequest, AwikiRegistrationOtpResult, AwikiRegistrationRequest, AwikiConversationSummary, AwikiSession } from '@awiki/dsh-plugin/types';
|
|
3
|
+
import type { AwikiAttachmentId, AwikiConversationId, AwikiCreateGroupResult, AwikiDownloadedAttachment, AwikiIdentityAccessInspection, AwikiIdentityAccessInspectionRequest, AwikiIdentity, AwikiGroupMember, AwikiGroupMemberRecord, AwikiGroupRebindRecoverySummary, AwikiGroupSnapshot, AwikiMessageId, AwikiMailAccount, AwikiMailInboxPage, AwikiMailInboxRequest, AwikiMailMarkReadRequest, AwikiMailMarkReadResult, AwikiMailMessage, AwikiMailReadRequest, AwikiMailSendRequest, AwikiMailSendResult, AwikiRegistrationOtpRequest, AwikiRegistrationOtpResult, AwikiRegistrationRequest, AwikiProfile, AwikiRecoveryOtpRequest, AwikiRecoveryOtpResult, AwikiRecoveryPrepareRequest, AwikiRecoveryProgress, AwikiConversationSummary, AwikiSession, AwikiUpdateProfileRequest, AwikiMention } from '@awiki/dsh-plugin/types';
|
|
4
4
|
import type { AwikiActionResult, AwikiView } from './controller.ts';
|
|
5
5
|
import type { createAwikiOverlayStore } from './store.ts';
|
|
6
6
|
/** Injected browser actions; components never receive Cordis ctx or Remote. */
|
|
@@ -13,6 +13,8 @@ export interface AwikiInjected {
|
|
|
13
13
|
open: () => Promise<AwikiActionResult>;
|
|
14
14
|
/** Stop polling and invalidate work when the overlay is unmounted. */
|
|
15
15
|
close: () => void;
|
|
16
|
+
/** Determine whether one Handle should use registration or Recovery V4. */
|
|
17
|
+
inspectIdentityAccess: (request: AwikiIdentityAccessInspectionRequest) => Promise<AwikiActionResult<AwikiIdentityAccessInspection>>;
|
|
16
18
|
/**
|
|
17
19
|
* Request a registration verification code.
|
|
18
20
|
* @param request - desired Handle and verification phone number.
|
|
@@ -25,13 +27,30 @@ export interface AwikiInjected {
|
|
|
25
27
|
registerIdentity: (request: AwikiRegistrationRequest) => Promise<AwikiActionResult<AwikiIdentity>>;
|
|
26
28
|
/** Update the deployment identity's public WNS display name. */
|
|
27
29
|
updateDisplayName: (displayName: string) => Promise<AwikiActionResult<AwikiIdentity>>;
|
|
30
|
+
updateProfile: (request: AwikiUpdateProfileRequest) => Promise<AwikiActionResult<AwikiProfile>>;
|
|
31
|
+
sendRecoveryOtp: (request: AwikiRecoveryOtpRequest) => Promise<AwikiActionResult<AwikiRecoveryOtpResult>>;
|
|
32
|
+
prepareRecovery: (request: Omit<AwikiRecoveryPrepareRequest, 'operationId'>) => Promise<AwikiActionResult<AwikiRecoveryProgress>>;
|
|
33
|
+
activateRecovery: () => Promise<AwikiActionResult<AwikiRecoveryProgress>>;
|
|
34
|
+
refreshRecoveryStatus: () => Promise<AwikiActionResult<AwikiRecoveryProgress>>;
|
|
35
|
+
resumeRecovery: () => Promise<AwikiActionResult<AwikiRecoveryProgress>>;
|
|
36
|
+
discardRecovery: () => Promise<AwikiActionResult>;
|
|
28
37
|
/** Load the next conversation page with the Host-owned cursor. */
|
|
29
38
|
loadMoreConversations: () => Promise<AwikiActionResult>;
|
|
39
|
+
/** Retry Core-owned migration for old groups restored after Handle recovery. */
|
|
40
|
+
retryGroupRebindRecovery: () => Promise<AwikiActionResult<AwikiGroupRebindRecoverySummary>>;
|
|
30
41
|
/**
|
|
31
42
|
* Open an existing direct conversation or a local draft for one Handle.
|
|
32
43
|
* @param handle - peer Handle or DID typed by the user.
|
|
33
44
|
*/
|
|
34
45
|
startDirectChat: (handle: string) => Promise<AwikiActionResult>;
|
|
46
|
+
/** Create a group with initial members and open its canonical conversation. */
|
|
47
|
+
createGroup: (name: string, members: readonly string[]) => Promise<AwikiActionResult<AwikiCreateGroupResult>>;
|
|
48
|
+
joinGroup: (groupDid: string) => Promise<AwikiActionResult<AwikiGroupSnapshot>>;
|
|
49
|
+
refreshSelectedGroup: () => Promise<AwikiActionResult>;
|
|
50
|
+
loadMoreGroupMembers: () => Promise<AwikiActionResult>;
|
|
51
|
+
addSelectedGroupMember: (member: string) => Promise<AwikiActionResult<AwikiGroupMember>>;
|
|
52
|
+
removeSelectedGroupMember: (member: AwikiGroupMemberRecord) => Promise<AwikiActionResult<AwikiGroupMember>>;
|
|
53
|
+
leaveSelectedGroup: () => Promise<AwikiActionResult>;
|
|
35
54
|
/**
|
|
36
55
|
* Select one conversation or return to the roster.
|
|
37
56
|
* @param conversationId - conversation identifier, or `null` for the roster.
|
|
@@ -49,7 +68,7 @@ export interface AwikiInjected {
|
|
|
49
68
|
* Send text to the selected conversation.
|
|
50
69
|
* @param text - non-empty composer text.
|
|
51
70
|
*/
|
|
52
|
-
sendText: (text: string) => Promise<AwikiActionResult>;
|
|
71
|
+
sendText: (text: string, clientMessageId?: AwikiMessageId, mentions?: readonly AwikiMention[]) => Promise<AwikiActionResult>;
|
|
53
72
|
/**
|
|
54
73
|
* Send one JSON-safe file payload to the selected conversation.
|
|
55
74
|
* @param file - file metadata, base64 bytes, and an optional caption.
|
|
@@ -59,6 +78,7 @@ export interface AwikiInjected {
|
|
|
59
78
|
readonly mimeType: string;
|
|
60
79
|
readonly bytesBase64: string;
|
|
61
80
|
readonly caption?: string;
|
|
81
|
+
readonly clientMessageId?: AwikiMessageId;
|
|
62
82
|
}) => Promise<AwikiActionResult>;
|
|
63
83
|
/**
|
|
64
84
|
* Download one attachment through its containing message.
|
|
@@ -70,6 +90,18 @@ export interface AwikiInjected {
|
|
|
70
90
|
logout: () => Promise<AwikiActionResult<AwikiSession>>;
|
|
71
91
|
/** Resume the same locally preserved identity. */
|
|
72
92
|
login: () => Promise<AwikiActionResult<AwikiSession>>;
|
|
93
|
+
/** Clear the preserved local identity only after the component's destructive confirmation. */
|
|
94
|
+
clearLocalIdentity: () => Promise<AwikiActionResult>;
|
|
95
|
+
/** Read the current deployment mailbox account on demand. */
|
|
96
|
+
getMailAccount: () => Promise<AwikiActionResult<AwikiMailAccount>>;
|
|
97
|
+
/** List one bounded mailbox page on demand. */
|
|
98
|
+
listMailInbox: (request?: AwikiMailInboxRequest) => Promise<AwikiActionResult<AwikiMailInboxPage>>;
|
|
99
|
+
/** Read one selected plain-text mail message. */
|
|
100
|
+
readMail: (request: AwikiMailReadRequest) => Promise<AwikiActionResult<AwikiMailMessage>>;
|
|
101
|
+
/** Mark explicitly selected mail messages read. */
|
|
102
|
+
markMailRead: (request: AwikiMailMarkReadRequest) => Promise<AwikiActionResult<AwikiMailMarkReadResult>>;
|
|
103
|
+
/** Send one confirmed plain-text mail once. */
|
|
104
|
+
sendMail: (request: AwikiMailSendRequest) => Promise<AwikiActionResult<AwikiMailSendResult>>;
|
|
73
105
|
}
|
|
74
106
|
/** Full four-share props of the floating launcher and anchored `shell.overlay` panel. */
|
|
75
107
|
export type AwikiOverlayProps = PropsRuntime<'shell.overlay'> & PropsStore<ReturnType<typeof createAwikiOverlayStore>> & InjectFace<AwikiInjected>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slots.d.ts","sourceRoot":"","sources":["../../../src/client/slots.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAE5E,OAAO,KAAK,EACV,cAAc,EAAE,UAAU,EAAE,YAAY,EAAE,UAAU,EACrD,MAAM,kCAAkC,CAAA;AAEzC,OAAO,KAAK,EACV,iBAAiB,EACjB,mBAAmB,EACnB,yBAAyB,EACzB,aAAa,EACb,cAAc,EACd,2BAA2B,EAC3B,0BAA0B,EAC1B,wBAAwB,EACxB,wBAAwB,EACxB,YAAY,EACb,MAAM,yBAAyB,CAAA;AAChC,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AACnE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAA;AAEzD,+EAA+E;AAC/E,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE;QACL,gEAAgE;QAChE,KAAK,EAAE,cAAc,CAAC,SAAS,CAAC,CAAA;KACjC,CAAA;IACD,yGAAyG;IACzG,IAAI,EAAE,MAAM,OAAO,CAAC,iBAAiB,CAAC,CAAA;IACtC,sEAAsE;IACtE,KAAK,EAAE,MAAM,IAAI,CAAA;IACjB;;;OAGG;IACH,mBAAmB,EAAE,CAAC,OAAO,EAAE,2BAA2B,KAAK,OAAO,CAAC,iBAAiB,CAAC,0BAA0B,CAAC,CAAC,CAAA;IACrH;;;OAGG;IACH,gBAAgB,EAAE,CAAC,OAAO,EAAE,wBAAwB,KAAK,OAAO,CAAC,iBAAiB,CAAC,aAAa,CAAC,CAAC,CAAA;IACl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iBAAiB,CAAC,yBAAyB,CAAC,CAAC,CAAA;IAC1D,0EAA0E;IAC1E,MAAM,EAAE,MAAM,OAAO,CAAC,iBAAiB,CAAC,YAAY,CAAC,CAAC,CAAA;IACtD,kDAAkD;IAClD,KAAK,EAAE,MAAM,OAAO,CAAC,iBAAiB,CAAC,YAAY,CAAC,CAAC,CAAA;IACrD,8FAA8F;IAC9F,kBAAkB,EAAE,MAAM,OAAO,CAAC,iBAAiB,CAAC,CAAA;IACpD,6DAA6D;IAC7D,cAAc,EAAE,MAAM,OAAO,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAAC,CAAA;IAClE,+CAA+C;IAC/C,aAAa,EAAE,CAAC,OAAO,CAAC,EAAE,qBAAqB,KAAK,OAAO,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,CAAC,CAAA;IAClG,iDAAiD;IACjD,QAAQ,EAAE,CAAC,OAAO,EAAE,oBAAoB,KAAK,OAAO,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAAC,CAAA;IACzF,mDAAmD;IACnD,YAAY,EAAE,CAAC,OAAO,EAAE,wBAAwB,KAAK,OAAO,CAAC,iBAAiB,CAAC,uBAAuB,CAAC,CAAC,CAAA;IACxG,+CAA+C;IAC/C,QAAQ,EAAE,CAAC,OAAO,EAAE,oBAAoB,KAAK,OAAO,CAAC,iBAAiB,CAAC,mBAAmB,CAAC,CAAC,CAAA;CAC7F;AAED,yFAAyF;AACzF,MAAM,MAAM,iBAAiB,GAC3B,YAAY,CAAC,eAAe,CAAC,GAC3B,UAAU,CAAC,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAC,GACtD,UAAU,CAAC,aAAa,CAAC,CAAA"}
|
package/lib/types/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { Context } from '@deepseek-ai/cordis';
|
|
3
3
|
import z from '@deepseek-ai/schemastery';
|
|
4
4
|
import { TypertRemoteService } from '@deepseek-ai/dsh-typert-protocol';
|
|
5
|
-
import type { AwikiClearLocalDataRequest, AwikiClearLocalDataResult, AwikiConversation, AwikiConversationSummary, AwikiDownloadAttachmentRequest, AwikiDownloadedAttachment, AwikiHistoryRequest, AwikiHostClient, AwikiIdentity, AwikiLogoutRequest, AwikiMessage, AwikiMarkConversationReadRequest, AwikiPage, AwikiPageRequest, AwikiRegistrationOtpRequest, AwikiRegistrationOtpResult, AwikiRegistrationRequest, AwikiResolvePeerRequest, AwikiResolvedPeer, AwikiResult, AwikiRuntimeConfig, AwikiSession, AwikiSendAttachmentRequest, AwikiSendTextRequest, AwikiSummarizeConversationRequest, AwikiUpdateDisplayNameRequest } from './types.ts';
|
|
5
|
+
import type { AwikiClearLocalDataRequest, AwikiClearLocalDataResult, AwikiCompletion, AwikiConversation, AwikiConversationSummary, AwikiCreateGroupRequest, AwikiCreateGroupResult, AwikiDownloadAttachmentRequest, AwikiDownloadedAttachment, AwikiGroupMember, AwikiGroupMemberPage, AwikiGroupRebindRecoverySummary, AwikiGroupMembersRequest, AwikiGroupRequest, AwikiGroupSnapshot, AwikiAddGroupMemberRequest, AwikiRemoveGroupMemberRequest, AwikiHistoryRequest, AwikiHostClient, AwikiIdentityAccessInspection, AwikiIdentityAccessInspectionRequest, AwikiIdentity, AwikiLogoutRequest, AwikiMessage, AwikiMailAccount, AwikiMailInboxPage, AwikiMailInboxRequest, AwikiMailMarkReadRequest, AwikiMailMarkReadResult, AwikiMailMessage, AwikiMailReadRequest, AwikiMailSendRequest, AwikiMailSendResult, AwikiMarkConversationReadRequest, AwikiPage, AwikiPageRequest, AwikiProfile, AwikiRecoveryOperationRequest, AwikiRecoveryOtpRequest, AwikiRecoveryOtpResult, AwikiRecoveryPrepareRequest, AwikiRecoveryProgress, AwikiRegistrationOtpRequest, AwikiRegistrationOtpResult, AwikiRegistrationRequest, AwikiResolvePeerRequest, AwikiResolvedPeer, AwikiResult, AwikiRuntimeConfig, AwikiSession, AwikiSendAttachmentRequest, AwikiSendTextRequest, AwikiSummarizeConversationRequest, AwikiUpdateDisplayNameRequest, AwikiUpdateProfileRequest } from './types.ts';
|
|
6
6
|
import type { AwikiClientFactory } from './provider-api.ts';
|
|
7
7
|
import type { AwikiSummaryProvider } from './summary-provider-api.ts';
|
|
8
8
|
import type { AwikiExternalHttpAuth } from './external-http-auth.ts';
|
|
@@ -13,14 +13,24 @@ export { AWIKI_EXTERNAL_HTTP_MAX_BODY_BYTES, AwikiExternalHttpAuthError, } from
|
|
|
13
13
|
export type { AwikiExternalHttpAuth, AwikiExternalHttpAuthErrorCode, AwikiHttpTransport, } from './external-http-auth.ts';
|
|
14
14
|
export type { AwikiSummaryProvider, AwikiSummaryProviderRequest, AwikiSummaryProviderResult, AwikiSummarySourceMessage, } from './summary-provider-api.ts';
|
|
15
15
|
export { AWIKI_DOMAIN_FIELD, AWIKI_SETTINGS_NAMESPACE, AwikiSettingsSchema, DEFAULT_AWIKI_DOMAIN, normalizeAwikiDomain, validateAwikiSettings, type AwikiSettings, } from './settings.ts';
|
|
16
|
-
export { AWIKI_HISTORY_TOOL, AWIKI_IDENTITY_STATUS_TOOL, AWIKI_LIST_CONVERSATIONS_TOOL, AWIKI_SEND_ATTACHMENT_TOOL, AWIKI_SEND_MESSAGE_TOOL, } from './tools.ts';
|
|
16
|
+
export { AWIKI_HISTORY_TOOL, AWIKI_IDENTITY_STATUS_TOOL, AWIKI_LIST_CONVERSATIONS_TOOL, AWIKI_MAIL_ACCOUNT_TOOL, AWIKI_MAIL_INBOX_TOOL, AWIKI_MAIL_MARK_READ_TOOL, AWIKI_MAIL_READ_TOOL, AWIKI_MAIL_SEND_TOOL, AWIKI_SEND_ATTACHMENT_TOOL, AWIKI_SEND_MESSAGE_TOOL, } from './tools.ts';
|
|
17
17
|
declare module '@deepseek-ai/cordis' {
|
|
18
18
|
interface Context {
|
|
19
19
|
awiki: AwikiService;
|
|
20
20
|
}
|
|
21
|
+
interface Events {
|
|
22
|
+
/**
|
|
23
|
+
* Committed change to this installation's AWiki sign-in state.
|
|
24
|
+
* @param session - the new public session state after persistence succeeds.
|
|
25
|
+
* @mode emit
|
|
26
|
+
*/
|
|
27
|
+
'awiki/session'(session: AwikiSession): void;
|
|
28
|
+
}
|
|
21
29
|
}
|
|
22
30
|
/** Default maximum attachment size: 10 MiB. */
|
|
23
31
|
export declare const DEFAULT_ATTACHMENT_MAX_BYTES: number;
|
|
32
|
+
/** Default private on-disk budget for verified image previews: 64 MiB. */
|
|
33
|
+
export declare const DEFAULT_IMAGE_ATTACHMENT_CACHE_MAX_BYTES: number;
|
|
24
34
|
/** Default browser polling interval while the AWiki drawer is open. */
|
|
25
35
|
export declare const DEFAULT_POLL_INTERVAL_MS = 3000;
|
|
26
36
|
/** Default AWiki production service origin. */
|
|
@@ -39,6 +49,8 @@ export interface Config {
|
|
|
39
49
|
readonly userServiceDomain?: string;
|
|
40
50
|
/** AWiki message-service base URL. Production deployments require HTTPS. */
|
|
41
51
|
readonly messageServiceUrl?: string;
|
|
52
|
+
/** AWiki mail-service base URL. Defaults to the resolved AWiki user-service URL. */
|
|
53
|
+
readonly mailServiceUrl?: string;
|
|
42
54
|
/** Public message-service base URL published in the identity DID document. */
|
|
43
55
|
readonly messageServicePublicUrl?: string;
|
|
44
56
|
/** Authoritative DID of the configured message service. */
|
|
@@ -51,8 +63,16 @@ export interface Config {
|
|
|
51
63
|
readonly stateRoot?: string;
|
|
52
64
|
/** Complete decoded attachment byte limit. Defaults to 10 MiB. */
|
|
53
65
|
readonly attachmentMaxBytes?: number;
|
|
66
|
+
/** Private on-disk image-preview cache budget. Defaults to 64 MiB. */
|
|
67
|
+
readonly imageAttachmentCacheMaxBytes?: number;
|
|
54
68
|
/** Browser history polling interval while its drawer is open. Defaults to 3000 ms. */
|
|
55
69
|
readonly pollIntervalMs?: number;
|
|
70
|
+
/** Enable authorized AWiki direct messages as a DSH Agent entry point. Defaults to false. */
|
|
71
|
+
readonly listenerEnabled?: boolean;
|
|
72
|
+
/** Exact AWiki Handles or DIDs permitted to drive the listener. Required when enabled. */
|
|
73
|
+
readonly listenerAllowedPeers?: string[];
|
|
74
|
+
/** Absolute Workspace used by every AWiki-originated Session. Defaults below DSH_HOME. */
|
|
75
|
+
readonly listenerWorkspacePath?: string;
|
|
56
76
|
/** Maximum UTF-8 bytes of minimized message JSON sent to a summary provider. */
|
|
57
77
|
readonly summaryMaxInputBytes?: number;
|
|
58
78
|
}
|
|
@@ -64,16 +84,21 @@ export declare class AwikiService extends TypertRemoteService implements AwikiHo
|
|
|
64
84
|
static Config: z<Config>;
|
|
65
85
|
private readonly resolved;
|
|
66
86
|
private readonly sessionStore;
|
|
87
|
+
private readonly imageAttachmentCache;
|
|
88
|
+
private readonly sentMailStore;
|
|
67
89
|
private startupUserServiceDomain;
|
|
68
90
|
private settingsProvider;
|
|
69
91
|
private provider;
|
|
70
92
|
private signedOut;
|
|
71
93
|
private sessionMutation;
|
|
72
94
|
private sessionRevision;
|
|
95
|
+
private activeIdentityDid;
|
|
73
96
|
private readonly activeSummaryRequests;
|
|
74
97
|
private summaryProvider;
|
|
98
|
+
private readonly hostContext;
|
|
75
99
|
/** Trusted same-process external HTTP authentication dispatcher. Never Remote. */
|
|
76
100
|
readonly externalHttpAuth: AwikiExternalHttpAuth;
|
|
101
|
+
private workspaceContext;
|
|
77
102
|
/**
|
|
78
103
|
* @param ctx - owning Host context.
|
|
79
104
|
* @param config - service endpoints, SDK state path, and public limits.
|
|
@@ -105,11 +130,8 @@ export declare class AwikiService extends TypertRemoteService implements AwikiHo
|
|
|
105
130
|
logout(request: AwikiLogoutRequest): Promise<AwikiResult<AwikiSession>>;
|
|
106
131
|
/** Resume the same locally preserved identity without registration. */
|
|
107
132
|
login(): Promise<AwikiResult<AwikiSession>>;
|
|
108
|
-
/**
|
|
109
|
-
|
|
110
|
-
* @param request - Handle and phone used for the registration challenge.
|
|
111
|
-
* @returns Public retry timing or a closed failure.
|
|
112
|
-
*/
|
|
133
|
+
/** Classify one configured-domain Handle before selecting the registration or recovery OTP purpose. */
|
|
134
|
+
inspectIdentityAccess(request: AwikiIdentityAccessInspectionRequest): Promise<AwikiResult<AwikiIdentityAccessInspection>>;
|
|
113
135
|
sendRegistrationOtp(request: AwikiRegistrationOtpRequest): Promise<AwikiResult<AwikiRegistrationOtpResult>>;
|
|
114
136
|
/**
|
|
115
137
|
* Register and persist the deployment's only AWiki identity.
|
|
@@ -123,12 +145,48 @@ export declare class AwikiService extends TypertRemoteService implements AwikiHo
|
|
|
123
145
|
* @returns The updated public identity or a closed failure.
|
|
124
146
|
*/
|
|
125
147
|
updateDisplayName(request: AwikiUpdateDisplayNameRequest): Promise<AwikiResult<AwikiIdentity>>;
|
|
148
|
+
/** Return the public editable profile for the active identity. */
|
|
149
|
+
getProfile(): Promise<AwikiResult<AwikiProfile>>;
|
|
150
|
+
/** Update Display Name, bio, and tags after applying product limits in the Host. */
|
|
151
|
+
updateProfile(request: AwikiUpdateProfileRequest): Promise<AwikiResult<AwikiProfile>>;
|
|
152
|
+
/** Start durable phone recovery for one existing full Handle. */
|
|
153
|
+
sendRecoveryOtp(request: AwikiRecoveryOtpRequest): Promise<AwikiResult<AwikiRecoveryOtpResult>>;
|
|
154
|
+
/** Verify a recovery OTP and freeze its exact intent before the remote commit. */
|
|
155
|
+
prepareRecovery(request: AwikiRecoveryPrepareRequest): Promise<AwikiResult<AwikiRecoveryProgress>>;
|
|
156
|
+
/** Attempt one prepared recovery commit; uncertain outcomes remain durable in Core. */
|
|
157
|
+
activateRecovery(request: AwikiRecoveryOperationRequest): Promise<AwikiResult<AwikiRecoveryProgress>>;
|
|
158
|
+
/** Read durable recovery state before deciding whether a retry is valid. */
|
|
159
|
+
getRecoveryStatus(request: AwikiRecoveryOperationRequest): Promise<AwikiResult<AwikiRecoveryProgress>>;
|
|
160
|
+
/** Resume only the exact Core-owned operation selected by the browser. */
|
|
161
|
+
resumeRecovery(request: AwikiRecoveryOperationRequest): Promise<AwikiResult<AwikiRecoveryProgress>>;
|
|
162
|
+
/** Discard only a pre-attempt operation; Core rejects post-attempt deletion. */
|
|
163
|
+
discardRecovery(request: AwikiRecoveryOperationRequest): Promise<AwikiResult<AwikiCompletion>>;
|
|
126
164
|
/**
|
|
127
165
|
* Resolve one Handle or DID before the browser opens a direct chat.
|
|
128
166
|
* @param request - typed Handle or DID.
|
|
129
167
|
* @returns The public peer and conversation id, or a closed failure.
|
|
130
168
|
*/
|
|
131
169
|
resolvePeer(request: AwikiResolvePeerRequest): Promise<AwikiResult<AwikiResolvedPeer>>;
|
|
170
|
+
/**
|
|
171
|
+
* Create one group, then settle every initial-member invitation without hiding a created group.
|
|
172
|
+
* @param request - bounded group name and initial Handle/DID values.
|
|
173
|
+
* @returns The created conversation and per-member outcomes.
|
|
174
|
+
*/
|
|
175
|
+
createGroup(request: AwikiCreateGroupRequest): Promise<AwikiResult<AwikiCreateGroupResult>>;
|
|
176
|
+
/** Return one authoritative group snapshot for permission-aware UI. */
|
|
177
|
+
getGroup(request: AwikiGroupRequest): Promise<AwikiResult<AwikiGroupSnapshot>>;
|
|
178
|
+
/** Join one open group and return its authoritative membership state. */
|
|
179
|
+
joinGroup(request: AwikiGroupRequest): Promise<AwikiResult<AwikiGroupSnapshot>>;
|
|
180
|
+
/** Leave one group. Core rejects owner leave and unsupported security profiles. */
|
|
181
|
+
leaveGroup(request: AwikiGroupRequest): Promise<AwikiResult<AwikiCompletion>>;
|
|
182
|
+
/** Read one authoritative versioned member page. */
|
|
183
|
+
listGroupMembers(request: AwikiGroupMembersRequest): Promise<AwikiResult<AwikiGroupMemberPage>>;
|
|
184
|
+
/** Invite one ordinary member after group creation. */
|
|
185
|
+
addGroupMember(request: AwikiAddGroupMemberRequest): Promise<AwikiResult<AwikiGroupMember>>;
|
|
186
|
+
/** Remove one member. The authoritative Core role check remains decisive. */
|
|
187
|
+
removeGroupMember(request: AwikiRemoveGroupMemberRequest): Promise<AwikiResult<AwikiGroupMember>>;
|
|
188
|
+
/** Resume durable group membership convergence after account sync restores old groups. */
|
|
189
|
+
resumeGroupRebindRecovery(): Promise<AwikiResult<AwikiGroupRebindRecoverySummary>>;
|
|
132
190
|
/**
|
|
133
191
|
* List direct and existing group conversations.
|
|
134
192
|
* @param request - Optional opaque cursor and page limit.
|
|
@@ -141,6 +199,8 @@ export declare class AwikiService extends TypertRemoteService implements AwikiHo
|
|
|
141
199
|
* @returns One chronological history page.
|
|
142
200
|
*/
|
|
143
201
|
getHistory(request: AwikiHistoryRequest): Promise<AwikiResult<AwikiPage<AwikiMessage>>>;
|
|
202
|
+
/** Read one committed local conversation page without sync, history, or Directory RPC. */
|
|
203
|
+
getLocalHistory(request: AwikiHistoryRequest): Promise<AwikiResult<AwikiPage<AwikiMessage>>>;
|
|
144
204
|
/**
|
|
145
205
|
* Read real AWiki history, enforce range and byte caps, then invoke the configured model once.
|
|
146
206
|
* @param request - selected conversation and its unread snapshot at open time.
|
|
@@ -171,6 +231,18 @@ export declare class AwikiService extends TypertRemoteService implements AwikiHo
|
|
|
171
231
|
* @returns Verified public metadata and canonical Base64 bytes, or a closed failure.
|
|
172
232
|
*/
|
|
173
233
|
downloadAttachment(request: AwikiDownloadAttachmentRequest): Promise<AwikiResult<AwikiDownloadedAttachment>>;
|
|
234
|
+
/** Revalidate cached/provider bytes before crossing the browser Remote boundary. */
|
|
235
|
+
private publicDownloadedAttachment;
|
|
236
|
+
/** Return the deployment identity's public mailbox state. */
|
|
237
|
+
getMailAccount(): Promise<AwikiResult<AwikiMailAccount>>;
|
|
238
|
+
/** List one bounded mailbox page on explicit browser/tool demand. */
|
|
239
|
+
listMailInbox(request?: AwikiMailInboxRequest): Promise<AwikiResult<AwikiMailInboxPage>>;
|
|
240
|
+
/** Read one bounded plain-text mail message. */
|
|
241
|
+
readMail(request: AwikiMailReadRequest): Promise<AwikiResult<AwikiMailMessage>>;
|
|
242
|
+
/** Mark explicitly selected mail messages read. Browser callers require an explicit click. */
|
|
243
|
+
markMailRead(request: AwikiMailMarkReadRequest): Promise<AwikiResult<AwikiMailMarkReadResult>>;
|
|
244
|
+
/** Send one plain-text mail once. Browser callers require an explicit confirmation. */
|
|
245
|
+
sendMail(request: AwikiMailSendRequest): Promise<AwikiResult<AwikiMailSendResult>>;
|
|
174
246
|
/**
|
|
175
247
|
* Permanently remove the exact SDK-owned local state after an explicit browser acknowledgement.
|
|
176
248
|
* The remote AWiki account and Handle are not deleted.
|
|
@@ -178,16 +250,32 @@ export declare class AwikiService extends TypertRemoteService implements AwikiHo
|
|
|
178
250
|
* @returns Whether a persisted state file existed when the reset completed.
|
|
179
251
|
*/
|
|
180
252
|
clearLocalData(request: AwikiClearLocalDataRequest): Promise<AwikiResult<AwikiClearLocalDataResult>>;
|
|
253
|
+
/** Re-enter only after Core confirms that the exact recovered identity is applied locally. */
|
|
254
|
+
private applyRecoveredSession;
|
|
255
|
+
/** Publish one newly registered identity and start its listener through the existing session path. */
|
|
256
|
+
private activateRegisteredIdentity;
|
|
181
257
|
/** Invalidate cached session work and cancel every model request still owned by the old session. */
|
|
182
258
|
private invalidateSummaries;
|
|
259
|
+
/** Publish a committed session transition to same-process Host consumers. */
|
|
260
|
+
private publishSession;
|
|
261
|
+
/** Resolve and cache the owner binding required by private Host-side projections. */
|
|
262
|
+
private ownerDid;
|
|
183
263
|
/** Invoke the current client and normalize every rejection to a public result. */
|
|
184
264
|
private run;
|
|
265
|
+
/** Validate mail input before entering the provider and preserve fixed public failures. */
|
|
266
|
+
private runValidatedMail;
|
|
185
267
|
/** Read and cache the private Host-owned session marker. */
|
|
186
268
|
private isSignedOut;
|
|
187
269
|
/** Bind one external-auth dispatch to the current provider and session revision. */
|
|
188
270
|
private acquireExternalHttpAuthSession;
|
|
189
271
|
/** Serialize sign-in, sign-out, and destructive clear transitions. */
|
|
190
272
|
private mutateSession;
|
|
273
|
+
/** Start one exact identity-bound listener, atomically releasing a failed startup. */
|
|
274
|
+
private startListener;
|
|
275
|
+
private stopListener;
|
|
276
|
+
private listenerFenceMatches;
|
|
277
|
+
private releaseFailedListener;
|
|
278
|
+
private scheduleListenerRestart;
|
|
191
279
|
/** Clear one exact provider slot before joining its one shared disposal. */
|
|
192
280
|
private disposeProvider;
|
|
193
281
|
}
|
package/lib/types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,qFAAqF;AAErF,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAG7C,OAAO,CAAC,MAAM,0BAA0B,CAAA;AACxC,OAAO,EAAU,mBAAmB,EAAE,MAAM,kCAAkC,CAAA;AAE9E,OAAO,KAAK,EACV,0BAA0B,EAC1B,yBAAyB,EACzB,iBAAiB,EACjB,wBAAwB,EACxB,8BAA8B,EAC9B,yBAAyB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,qFAAqF;AAErF,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAG7C,OAAO,CAAC,MAAM,0BAA0B,CAAA;AACxC,OAAO,EAAU,mBAAmB,EAAE,MAAM,kCAAkC,CAAA;AAE9E,OAAO,KAAK,EACV,0BAA0B,EAC1B,yBAAyB,EACzB,eAAe,EACf,iBAAiB,EACjB,wBAAwB,EACxB,uBAAuB,EACvB,sBAAsB,EACtB,8BAA8B,EAC9B,yBAAyB,EAIzB,gBAAgB,EAChB,oBAAoB,EACpB,+BAA+B,EAC/B,wBAAwB,EACxB,iBAAiB,EACjB,kBAAkB,EAClB,0BAA0B,EAC1B,6BAA6B,EAE7B,mBAAmB,EACnB,eAAe,EACf,6BAA6B,EAC7B,oCAAoC,EACpC,aAAa,EACb,kBAAkB,EAClB,YAAY,EACZ,gBAAgB,EAChB,kBAAkB,EAClB,qBAAqB,EACrB,wBAAwB,EACxB,uBAAuB,EACvB,gBAAgB,EAChB,oBAAoB,EACpB,oBAAoB,EACpB,mBAAmB,EACnB,gCAAgC,EAChC,SAAS,EACT,gBAAgB,EA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