@awiki/dsh-plugin 0.3.10 → 0.3.11-rc.2

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 (126) hide show
  1. package/README.md +14 -5
  2. package/README.zh.md +11 -4
  3. package/lib/client.js +2067 -272
  4. package/lib/client.js.map +1 -1
  5. package/lib/index.js +536 -167
  6. package/lib/model-proxy-contract.js +8 -8
  7. package/lib/provider.js +32 -2
  8. package/lib/{sdk-adapter-CYcJH7sM.mjs → sdk-adapter-DpqT2en9.mjs} +17 -7
  9. package/lib/typert.host.js +181 -117
  10. package/lib/typert.remote-client.d.ts +3 -1
  11. package/lib/typert.remote-client.d.ts.map +1 -1
  12. package/lib/typert.remote-client.js +181 -117
  13. package/lib/types/base64.d.ts +4 -0
  14. package/lib/types/base64.d.ts.map +1 -0
  15. package/lib/types/base64.js +28 -0
  16. package/lib/types/base64.js.map +1 -0
  17. package/lib/types/client/AwikiIdentityAccess.d.ts +6 -4
  18. package/lib/types/client/AwikiIdentityAccess.d.ts.map +1 -1
  19. package/lib/types/client/AwikiIdentityAccess.js +147 -58
  20. package/lib/types/client/AwikiIdentityAccess.js.map +1 -1
  21. package/lib/types/client/AwikiMail.d.ts +1 -1
  22. package/lib/types/client/AwikiMail.d.ts.map +1 -1
  23. package/lib/types/client/AwikiMail.js +139 -6
  24. package/lib/types/client/AwikiMail.js.map +1 -1
  25. package/lib/types/client/AwikiOverlay.js +2 -2
  26. package/lib/types/client/AwikiOverlay.js.map +1 -1
  27. package/lib/types/client/AwikiRecoveryForm.d.ts +1 -0
  28. package/lib/types/client/AwikiRecoveryForm.d.ts.map +1 -1
  29. package/lib/types/client/AwikiRecoveryForm.js +3 -2
  30. package/lib/types/client/AwikiRecoveryForm.js.map +1 -1
  31. package/lib/types/client/AwikiSettingsSection.d.ts +1 -1
  32. package/lib/types/client/AwikiSettingsSection.d.ts.map +1 -1
  33. package/lib/types/client/awiki-client-bridge.d.ts +1 -1
  34. package/lib/types/client/awiki-client-bridge.d.ts.map +1 -1
  35. package/lib/types/client/awiki-client-bridge.js +1 -1
  36. package/lib/types/client/awiki-client-bridge.js.map +1 -1
  37. package/lib/types/client/controller.d.ts +15 -1
  38. package/lib/types/client/controller.d.ts.map +1 -1
  39. package/lib/types/client/controller.js +303 -54
  40. package/lib/types/client/controller.js.map +1 -1
  41. package/lib/types/client/index.d.ts +1 -1
  42. package/lib/types/client/index.d.ts.map +1 -1
  43. package/lib/types/client/index.js +4 -1
  44. package/lib/types/client/index.js.map +1 -1
  45. package/lib/types/client/mail-attachment.d.ts +40 -0
  46. package/lib/types/client/mail-attachment.d.ts.map +1 -0
  47. package/lib/types/client/mail-attachment.js +187 -0
  48. package/lib/types/client/mail-attachment.js.map +1 -0
  49. package/lib/types/client/otp-cooldown.d.ts +1 -0
  50. package/lib/types/client/otp-cooldown.d.ts.map +1 -1
  51. package/lib/types/client/otp-cooldown.js +12 -1
  52. package/lib/types/client/otp-cooldown.js.map +1 -1
  53. package/lib/types/client/settings-controller.d.ts +4 -2
  54. package/lib/types/client/settings-controller.d.ts.map +1 -1
  55. package/lib/types/client/settings-controller.js +24 -8
  56. package/lib/types/client/settings-controller.js.map +1 -1
  57. package/lib/types/client/slots.d.ts +6 -1
  58. package/lib/types/client/slots.d.ts.map +1 -1
  59. package/lib/types/client/store.d.ts +1 -1
  60. package/lib/types/client/store.d.ts.map +1 -1
  61. package/lib/types/client/store.js +1 -1
  62. package/lib/types/client/store.js.map +1 -1
  63. package/lib/types/external-http-auth.d.ts +3 -1
  64. package/lib/types/external-http-auth.d.ts.map +1 -1
  65. package/lib/types/external-http-auth.js +2 -2
  66. package/lib/types/external-http-auth.js.map +1 -1
  67. package/lib/types/identity-handle.d.ts +5 -0
  68. package/lib/types/identity-handle.d.ts.map +1 -0
  69. package/lib/types/identity-handle.js +33 -0
  70. package/lib/types/identity-handle.js.map +1 -0
  71. package/lib/types/index.d.ts +11 -2
  72. package/lib/types/index.d.ts.map +1 -1
  73. package/lib/types/index.js +101 -20
  74. package/lib/types/index.js.map +1 -1
  75. package/lib/types/listener.d.ts.map +1 -1
  76. package/lib/types/listener.js +2 -1
  77. package/lib/types/listener.js.map +1 -1
  78. package/lib/types/mail-attachment-client.d.ts +14 -0
  79. package/lib/types/mail-attachment-client.d.ts.map +1 -0
  80. package/lib/types/mail-attachment-client.js +173 -0
  81. package/lib/types/mail-attachment-client.js.map +1 -0
  82. package/lib/types/mail.d.ts +28 -2
  83. package/lib/types/mail.d.ts.map +1 -1
  84. package/lib/types/mail.js +79 -2
  85. package/lib/types/mail.js.map +1 -1
  86. package/lib/types/model-proxy-contract.d.ts +8 -8
  87. package/lib/types/model-proxy-contract.d.ts.map +1 -1
  88. package/lib/types/model-proxy-contract.js +8 -8
  89. package/lib/types/model-proxy-contract.js.map +1 -1
  90. package/lib/types/package-version.generated.d.ts +2 -2
  91. package/lib/types/package-version.generated.d.ts.map +1 -1
  92. package/lib/types/package-version.generated.js +2 -2
  93. package/lib/types/package-version.generated.js.map +1 -1
  94. package/lib/types/provider.d.ts +1 -1
  95. package/lib/types/provider.d.ts.map +1 -1
  96. package/lib/types/provider.js +12 -1
  97. package/lib/types/provider.js.map +1 -1
  98. package/lib/types/registration-policy.d.ts +5 -0
  99. package/lib/types/registration-policy.d.ts.map +1 -0
  100. package/lib/types/registration-policy.js +13 -0
  101. package/lib/types/registration-policy.js.map +1 -0
  102. package/lib/types/sdk-adapter.d.ts +2 -1
  103. package/lib/types/sdk-adapter.d.ts.map +1 -1
  104. package/lib/types/sdk-adapter.js +13 -4
  105. package/lib/types/sdk-adapter.js.map +1 -1
  106. package/lib/types/settings-rpc-contract.d.ts +14 -14
  107. package/lib/types/settings-rpc-contract.d.ts.map +1 -1
  108. package/lib/types/settings-rpc-contract.js +14 -14
  109. package/lib/types/settings-rpc-contract.js.map +1 -1
  110. package/lib/types/settings-rpc.d.ts.map +1 -1
  111. package/lib/types/settings-rpc.js +2 -2
  112. package/lib/types/settings-rpc.js.map +1 -1
  113. package/lib/types/settings-transport.d.ts +7 -0
  114. package/lib/types/settings-transport.d.ts.map +1 -0
  115. package/lib/types/settings-transport.js +52 -0
  116. package/lib/types/settings-transport.js.map +1 -0
  117. package/lib/types/tools.d.ts +1 -1
  118. package/lib/types/tools.d.ts.map +1 -1
  119. package/lib/types/tools.js +20 -4
  120. package/lib/types/tools.js.map +1 -1
  121. package/lib/types/types.d.ts +39 -2
  122. package/lib/types/types.d.ts.map +1 -1
  123. package/lib/types/types.js.map +1 -1
  124. package/lib/types/update-policy.d.ts +2 -2
  125. package/lib/types/update-policy.d.ts.map +1 -1
  126. package/package.json +84 -75
@@ -3,7 +3,7 @@ import type {
3
3
  RemoteResult,
4
4
  TypertRemoteContribution,
5
5
  } from '@deepseek-ai/dsh-typert-protocol'
6
- import type { AwikiAddGroupMemberRequest, AwikiAdminJoinProgress, AwikiApproveDeviceJoinRequest, AwikiClearLocalDataRequest, AwikiClearLocalDataResult, AwikiCompletion, AwikiConfirmRootTransferRequest, AwikiConversation, AwikiConversationPreferenceMutation, AwikiConversationPreferences, AwikiConversationSummary, AwikiCreateGroupRequest, AwikiCreateGroupResult, AwikiCreateIntegrationRequest, AwikiDeviceJoinProgress, AwikiDeviceManagementSnapshot, AwikiDid, AwikiDisplayProfile, AwikiDownloadAttachmentRequest, AwikiDownloadedAttachment, AwikiGroupMember, AwikiGroupMemberPage, AwikiGroupMembersRequest, AwikiGroupRequest, AwikiGroupSnapshot, AwikiHistoryRequest, AwikiIdentity, AwikiIdentityAccessInspection, AwikiIdentityAccessInspectionRequest, AwikiIdentityAccessResult, AwikiIdentityAccessState, AwikiIntegrationResult, AwikiIntegrationRevisionRequest, AwikiIntegrationView, AwikiLogoutRequest, AwikiMailAccount, AwikiMailInboxPage, AwikiMailInboxRequest, AwikiMailMarkReadRequest, AwikiMailMarkReadResult, AwikiMailMessage, AwikiMailReadRequest, AwikiMailSendRequest, AwikiMailSendResult, AwikiMarkConversationReadRequest, AwikiMessage, AwikiPage, AwikiPageRequest, AwikiPrepareRootTransferRequest, AwikiProfile, AwikiRecoveryOperationRequest, AwikiRecoveryOtpRequest, AwikiRecoveryOtpResult, AwikiRecoveryPrepareRequest, AwikiRecoveryProgress, AwikiRegistrationOtpRequest, AwikiRegistrationOtpResult, AwikiRegistrationRequest, AwikiRejectDeviceJoinRequest, AwikiRemoveGroupMemberRequest, AwikiReopenIntegrationRequest, AwikiRequestRefInput, AwikiResolvedPeer, AwikiResolvePeerRequest, AwikiResult, AwikiRevokeDeviceRequest, AwikiRootTransferPreparation, AwikiRootTransferReceipt, AwikiRuntimeConfig, AwikiSendAttachmentRequest, AwikiSendTextRequest, AwikiSession, AwikiSummarizeConversationRequest, AwikiUpdateDisplayNameRequest, AwikiUpdateIntegrationRequest, AwikiUpdateProfileRequest } from '@awiki/dsh-plugin/types'
6
+ import type { AwikiAddGroupMemberRequest, AwikiAdminJoinProgress, AwikiApproveDeviceJoinRequest, AwikiClearLocalDataRequest, AwikiClearLocalDataResult, AwikiCompletion, AwikiConfirmRootTransferRequest, AwikiConversation, AwikiConversationPreferenceMutation, AwikiConversationPreferences, AwikiConversationSummary, AwikiCreateGroupRequest, AwikiCreateGroupResult, AwikiCreateIntegrationRequest, AwikiDeviceJoinProgress, AwikiDeviceManagementSnapshot, AwikiDid, AwikiDisplayProfile, AwikiDownloadAttachmentRequest, AwikiDownloadedAttachment, AwikiDownloadedMailAttachment, AwikiGroupMember, AwikiGroupMemberPage, AwikiGroupMembersRequest, AwikiGroupRequest, AwikiGroupSnapshot, AwikiHistoryRequest, AwikiIdentity, AwikiIdentityAccessInspection, AwikiIdentityAccessInspectionRequest, AwikiIdentityAccessResult, AwikiIdentityAccessState, AwikiIntegrationResult, AwikiIntegrationRevisionRequest, AwikiIntegrationView, AwikiLogoutRequest, AwikiMailAccount, AwikiMailAttachmentDownloadRequest, AwikiMailInboxPage, AwikiMailInboxRequest, AwikiMailMarkReadRequest, AwikiMailMarkReadResult, AwikiMailMessage, AwikiMailReadRequest, AwikiMailSendRequest, AwikiMailSendResult, AwikiMarkConversationReadRequest, AwikiMessage, AwikiPage, AwikiPageRequest, AwikiPrepareRootTransferRequest, AwikiProfile, AwikiRecoveryOperationRequest, AwikiRecoveryOtpRequest, AwikiRecoveryOtpResult, AwikiRecoveryPrepareRequest, AwikiRecoveryProgress, AwikiRegistrationOtpRequest, AwikiRegistrationOtpResult, AwikiRegistrationRequest, AwikiRejectDeviceJoinRequest, AwikiRemoveGroupMemberRequest, AwikiReopenIntegrationRequest, AwikiRequestRefInput, AwikiResolvedPeer, AwikiResolvePeerRequest, AwikiResult, AwikiRevokeDeviceRequest, AwikiRootTransferPreparation, AwikiRootTransferReceipt, AwikiRuntimeConfig, AwikiSendAttachmentRequest, AwikiSendTextRequest, AwikiSession, AwikiSummarizeConversationRequest, AwikiUpdateDisplayNameRequest, AwikiUpdateIntegrationRequest, AwikiUpdateProfileRequest } from '@awiki/dsh-plugin/types'
7
7
 
8
8
  declare module '@deepseek-ai/dsh-typert-protocol' {
9
9
  interface TypertRemoteNamespace$6177696b69 {
@@ -19,6 +19,7 @@ declare module '@deepseek-ai/dsh-typert-protocol' {
19
19
  createIntegration: (request: AwikiCreateIntegrationRequest) => Promise<RemoteResult<AwikiIntegrationResult<AwikiIntegrationView>>>
20
20
  discardRecovery: (request: AwikiRecoveryOperationRequest) => Promise<RemoteResult<AwikiResult<AwikiCompletion>>>
21
21
  downloadAttachment: (request: AwikiDownloadAttachmentRequest) => Promise<RemoteResult<AwikiResult<AwikiDownloadedAttachment>>>
22
+ downloadMailAttachment: (request: AwikiMailAttachmentDownloadRequest) => Promise<RemoteResult<AwikiResult<AwikiDownloadedMailAttachment>>>
22
23
  enterRecoveredSession: (request: AwikiRecoveryOperationRequest) => Promise<RemoteResult<AwikiResult<AwikiRecoveryProgress>>>
23
24
  getConfig: () => Promise<RemoteResult<AwikiResult<AwikiRuntimeConfig>>>
24
25
  getConversationPreferences: () => Promise<RemoteResult<AwikiResult<AwikiConversationPreferences>>>
@@ -82,6 +83,7 @@ declare module '@deepseek-ai/dsh-typert-protocol' {
82
83
  'awiki/createIntegration': (request: AwikiCreateIntegrationRequest) => Promise<RemoteResult<AwikiIntegrationResult<AwikiIntegrationView>>>
83
84
  'awiki/discardRecovery': (request: AwikiRecoveryOperationRequest) => Promise<RemoteResult<AwikiResult<AwikiCompletion>>>
84
85
  'awiki/downloadAttachment': (request: AwikiDownloadAttachmentRequest) => Promise<RemoteResult<AwikiResult<AwikiDownloadedAttachment>>>
86
+ 'awiki/downloadMailAttachment': (request: AwikiMailAttachmentDownloadRequest) => Promise<RemoteResult<AwikiResult<AwikiDownloadedMailAttachment>>>
85
87
  'awiki/enterRecoveredSession': (request: AwikiRecoveryOperationRequest) => Promise<RemoteResult<AwikiResult<AwikiRecoveryProgress>>>
86
88
  'awiki/getConfig': () => Promise<RemoteResult<AwikiResult<AwikiRuntimeConfig>>>
87
89
  'awiki/getConversationPreferences': () => Promise<RemoteResult<AwikiResult<AwikiConversationPreferences>>>
@@ -1 +1 @@
1
- {"version":3,"file":"typert.remote-client.d.ts","names":["activateRecovery","addGroupMember","approveDeviceJoin","beginDeviceJoin","cancelDeviceJoin","clearLocalData","closeIntegration","confirmRootTransfer","createGroup","createIntegration","discardRecovery","downloadAttachment","enterRecoveredSession","getConfig","getConversationPreferences","getDeviceJoinStatus","getDisplayProfiles","getGroup","getHistory","getIdentity","getIdentityAccessState","getIntegration","getLocalHistory","getMailAccount","getProfile","getRecoveryStatus","getSession","inspectIdentityAccess","joinGroup","leaveGroup","listConversations","listGroupMembers","listMailInbox","login","logout","markConversationRead","markMailRead","prepareRecovery","prepareRootTransfer","readMail","refreshDeviceManagement","registerIdentity","rejectDeviceJoin","removeGroupMember","reopenIntegration","resolvePeer","resumeRecovery","retireDeviceIdentityForRejoin","revokeDevice","rotateIntegrationId","sendAttachment","sendMail","sendRecoveryOtp","sendRegistrationOtp","sendText","startDeviceJoinVerification","summarizeConversation","updateConversationPreference","updateDisplayName","update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A+BAC,wB;IA0ENC,yB;IAhIAC,yB;IAwGAC,mB;IATMC,sB;IArENC,qC;IAiCMC,oB;IAjENC,2B;IAqKMC,sB;IAkBAC,gB;IA9FNC,uB;IA/DMC,2B;IAwINC,gB;IAhHMC,mC;IAwGAC,6B;IAdNC,oC;IA5DMC,yB;IAnFNC,yB;IAyFAC,qB","ignoreList":[]}
1
+ {"version":3,"file":"typert.remote-client.d.ts","names":["activateRecovery","addGroupMember","approveDeviceJoin","beginDeviceJoin","cancelDeviceJoin","clearLocalData","closeIntegration","confirmRootTransfer","createGroup","createIntegration","discardRecovery","downloadAttachment","downloadMailAttachment","enterRecoveredSession","getConfig","getConversationPreferences","getDeviceJoinStatus","getDisplayProfiles","getGroup","getHistory","getIdentity","getIdentityAccessState","getIntegration","getLocalHistory","getMailAccount","getProfile","getRecoveryStatus","getSession","inspectIdentityAccess","joinGroup","leaveGroup","listConversations","listGroupMembers","listMailInbox","login","logout","markConversationRead","markMailRead","prepareRecovery","prepareRootTransfer","readMail","refreshDeviceManagement","registerIdentity","rejectDeviceJoin","removeGroupMember","reopenIntegration","resolvePeer","resumeRecovery","retireDeviceIdentityForRejoin","revokeDevice","rotateIntegrationId","sendAttachment","sendMail","sendRecoveryOtp","sendRegistrationOtp","sendText","startDeviceJoinVerification","summarizeConversation","updateConversationPreference","updateDisplayName","updateIntegration","updateProfile"],"sources":["../src/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;IA6MQA,gB;IAoCNC,c;IA5EMC,iB;IApBAC,e;IASAC,gB;IAmJNC,c;IA5LAC,gB;IAwEMC,mB;IAsCAC,W;IAvHNC,iB;IAiHMC,e;IA6DAC,kB;IAkBAC,sB;IAlFAC,qB;IApHAC,S;IAqJNC,0B;IAhGMC,mB;IAoFNC,kB;IATAC,Q;IAgCAC,U;IA3IMC,W;IA6BNC,sB;IA/CAC,c;IAgKAC,e;IAoBAC,c;IAxFAC,U;IAeMC,iB;IAtFAC,U;IASAC,qB;IAkGNC,S;IAG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