@awiki/dsh-plugin 0.3.6 → 0.3.7-dsh-test.20260831.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 (95) hide show
  1. package/README.md +58 -60
  2. package/README.zh.md +45 -51
  3. package/THIRD_PARTY_NOTICES.md +1 -1
  4. package/cordis.patch.yml +7 -8
  5. package/lib/client.js +1389 -1152
  6. package/lib/client.js.map +1 -1
  7. package/lib/index.js +1084 -792
  8. package/lib/provider.js +70 -17
  9. package/lib/{sdk-adapter--trNlr-T.mjs → sdk-adapter-FGaOi8It.mjs} +168 -84
  10. package/lib/typert.host.js +406 -178
  11. package/lib/typert.remote-client.d.ts +19 -7
  12. package/lib/typert.remote-client.d.ts.map +1 -1
  13. package/lib/typert.remote-client.js +406 -178
  14. package/lib/types/client/AwikiDevices.d.ts +28 -0
  15. package/lib/types/client/AwikiDevices.d.ts.map +1 -0
  16. package/lib/types/client/AwikiDevices.js +85 -0
  17. package/lib/types/client/AwikiDevices.js.map +1 -0
  18. package/lib/types/client/AwikiIdentityAccess.d.ts +6 -5
  19. package/lib/types/client/AwikiIdentityAccess.d.ts.map +1 -1
  20. package/lib/types/client/AwikiIdentityAccess.js +88 -27
  21. package/lib/types/client/AwikiIdentityAccess.js.map +1 -1
  22. package/lib/types/client/AwikiMail.d.ts +1 -1
  23. package/lib/types/client/AwikiMail.d.ts.map +1 -1
  24. package/lib/types/client/AwikiMail.js +6 -130
  25. package/lib/types/client/AwikiMail.js.map +1 -1
  26. package/lib/types/client/AwikiOverlay.d.ts.map +1 -1
  27. package/lib/types/client/AwikiOverlay.js +5 -12
  28. package/lib/types/client/AwikiOverlay.js.map +1 -1
  29. package/lib/types/client/AwikiRecoveryForm.d.ts.map +1 -1
  30. package/lib/types/client/AwikiRecoveryForm.js +1 -1
  31. package/lib/types/client/AwikiRecoveryForm.js.map +1 -1
  32. package/lib/types/client/controller.d.ts +20 -34
  33. package/lib/types/client/controller.d.ts.map +1 -1
  34. package/lib/types/client/controller.js +56 -203
  35. package/lib/types/client/controller.js.map +1 -1
  36. package/lib/types/client/index.d.ts.map +1 -1
  37. package/lib/types/client/index.js +8 -4
  38. package/lib/types/client/index.js.map +1 -1
  39. package/lib/types/client/settings-locales.js +8 -8
  40. package/lib/types/client/settings-locales.js.map +1 -1
  41. package/lib/types/client/slots.d.ts +10 -10
  42. package/lib/types/client/slots.d.ts.map +1 -1
  43. package/lib/types/conversation-preferences.d.ts.map +1 -1
  44. package/lib/types/conversation-preferences.js +0 -17
  45. package/lib/types/conversation-preferences.js.map +1 -1
  46. package/lib/types/index.d.ts +59 -30
  47. package/lib/types/index.d.ts.map +1 -1
  48. package/lib/types/index.js +804 -462
  49. package/lib/types/index.js.map +1 -1
  50. package/lib/types/listener-state.d.ts +5 -3
  51. package/lib/types/listener-state.d.ts.map +1 -1
  52. package/lib/types/listener-state.js +28 -13
  53. package/lib/types/listener-state.js.map +1 -1
  54. package/lib/types/listener.d.ts +9 -32
  55. package/lib/types/listener.d.ts.map +1 -1
  56. package/lib/types/listener.js +11 -127
  57. package/lib/types/listener.js.map +1 -1
  58. package/lib/types/mail.d.ts +2 -28
  59. package/lib/types/mail.d.ts.map +1 -1
  60. package/lib/types/mail.js +2 -78
  61. package/lib/types/mail.js.map +1 -1
  62. package/lib/types/provider-api.d.ts +102 -38
  63. package/lib/types/provider-api.d.ts.map +1 -1
  64. package/lib/types/provider.d.ts +8 -2
  65. package/lib/types/provider.d.ts.map +1 -1
  66. package/lib/types/provider.js +73 -16
  67. package/lib/types/provider.js.map +1 -1
  68. package/lib/types/realtime-supervisor.d.ts +54 -0
  69. package/lib/types/realtime-supervisor.d.ts.map +1 -0
  70. package/lib/types/realtime-supervisor.js +242 -0
  71. package/lib/types/realtime-supervisor.js.map +1 -0
  72. package/lib/types/sdk-adapter.d.ts +32 -7
  73. package/lib/types/sdk-adapter.d.ts.map +1 -1
  74. package/lib/types/sdk-adapter.js +163 -104
  75. package/lib/types/sdk-adapter.js.map +1 -1
  76. package/lib/types/sent-mail-store.d.ts +2 -7
  77. package/lib/types/sent-mail-store.d.ts.map +1 -1
  78. package/lib/types/sent-mail-store.js +23 -125
  79. package/lib/types/sent-mail-store.js.map +1 -1
  80. package/lib/types/tools.d.ts +1 -1
  81. package/lib/types/tools.d.ts.map +1 -1
  82. package/lib/types/tools.js +4 -20
  83. package/lib/types/tools.js.map +1 -1
  84. package/lib/types/types.d.ts +77 -66
  85. package/lib/types/types.d.ts.map +1 -1
  86. package/lib/types/types.js.map +1 -1
  87. package/package.json +20 -15
  88. package/lib/types/client/mail-attachment.d.ts +0 -40
  89. package/lib/types/client/mail-attachment.d.ts.map +0 -1
  90. package/lib/types/client/mail-attachment.js +0 -186
  91. package/lib/types/client/mail-attachment.js.map +0 -1
  92. package/lib/types/profile-state.d.ts +0 -17
  93. package/lib/types/profile-state.d.ts.map +0 -1
  94. package/lib/types/profile-state.js +0 -58
  95. package/lib/types/profile-state.js.map +0 -1
@@ -7,7 +7,7 @@ const _awiki_dsh_plugin_awiki_activateRecovery_parameter_0$schema = z.object({
7
7
  const _awiki_dsh_plugin_awiki_activateRecovery_result$schema = z.union([z.object({
8
8
  'ok': z.literal(false).readonly(),
9
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("identity-recovery-required"), z.literal("conflict"), z.literal("state-in-use"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
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("identity-recovery-required"), z.literal("conflict"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
11
11
  'message': z.string().readonly(),
12
12
  }).readonly(),
13
13
  }), z.object({
@@ -22,19 +22,17 @@ const _awiki_dsh_plugin_awiki_activateRecovery_result$schema = z.union([z.object
22
22
  'retryable': z.boolean().readonly(),
23
23
  'localOrdinaryDataWillMigrate': z.boolean().readonly(),
24
24
  'otherDevicesMustRejoin': z.boolean().readonly(),
25
- 'unsupportedE2eeGroupCount': z.number().readonly(),
26
- 'unsupportedDidOnlyGroupCount': z.number().readonly(),
27
25
  }).readonly(),
28
26
  })])
29
27
  const _awiki_dsh_plugin_awiki_addGroupMember_parameter_0$schema = z.object({
30
28
  'member': z.string().readonly(),
31
- 'role': z.union([z.literal("admin"), z.literal("member")]).readonly().optional(),
29
+ 'role': z.union([z.literal("member"), z.literal("admin")]).readonly().optional(),
32
30
  'groupDid': z.intersection(z.string(), z.unknown()).readonly(),
33
31
  })
34
32
  const _awiki_dsh_plugin_awiki_addGroupMember_result$schema = z.union([z.object({
35
33
  'ok': z.literal(false).readonly(),
36
34
  'error': z.object({
37
- '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("identity-recovery-required"), z.literal("conflict"), z.literal("state-in-use"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
35
+ '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("identity-recovery-required"), z.literal("conflict"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
38
36
  'message': z.string().readonly(),
39
37
  }).readonly(),
40
38
  }), z.object({
@@ -44,13 +42,60 @@ const _awiki_dsh_plugin_awiki_addGroupMember_result$schema = z.union([z.object({
44
42
  'handle': z.intersection(z.string(), z.unknown()).readonly().optional(),
45
43
  }).readonly(),
46
44
  })])
45
+ const _awiki_dsh_plugin_awiki_approveDeviceJoin_parameter_0$schema = z.object({
46
+ 'enteredSas': z.string().readonly(),
47
+ 'confirmation': z.string().readonly(),
48
+ 'requestRef': z.string().readonly(),
49
+ })
50
+ const _awiki_dsh_plugin_awiki_approveDeviceJoin_result$schema = z.union([z.object({
51
+ 'ok': z.literal(false).readonly(),
52
+ 'error': z.object({
53
+ '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("identity-recovery-required"), z.literal("conflict"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
54
+ 'message': z.string().readonly(),
55
+ }).readonly(),
56
+ }), z.object({
57
+ 'ok': z.literal(true).readonly(),
58
+ 'value': z.object({
59
+ 'requestRef': z.string().readonly(),
60
+ 'phase': z.union([z.literal("pending"), z.literal("verifying"), z.literal("sas-ready"), z.literal("authorized"), z.literal("cancelled"), z.literal("rejected"), z.literal("expired")]).readonly(),
61
+ 'expiresAt': z.string().readonly(),
62
+ 'sas': z.string().readonly().optional(),
63
+ }).readonly(),
64
+ })])
65
+ const _awiki_dsh_plugin_awiki_beginDeviceJoin_result$schema = z.union([z.object({
66
+ 'ok': z.literal(false).readonly(),
67
+ 'error': z.object({
68
+ '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("identity-recovery-required"), z.literal("conflict"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
69
+ 'message': z.string().readonly(),
70
+ }).readonly(),
71
+ }), z.object({
72
+ 'ok': z.literal(true).readonly(),
73
+ 'value': z.object({
74
+ 'phase': z.union([z.literal("pending"), z.literal("verifying"), z.literal("sas-ready"), z.literal("authorized"), z.literal("cancelled"), z.literal("rejected"), z.literal("expired")]).readonly(),
75
+ 'expiresAt': z.string().readonly(),
76
+ 'sas': z.string().readonly().optional(),
77
+ 'completed': z.boolean().readonly(),
78
+ }).readonly(),
79
+ })])
80
+ const _awiki_dsh_plugin_awiki_cancelDeviceJoin_result$schema = z.union([z.object({
81
+ 'ok': z.literal(false).readonly(),
82
+ 'error': z.object({
83
+ '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("identity-recovery-required"), z.literal("conflict"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
84
+ 'message': z.string().readonly(),
85
+ }).readonly(),
86
+ }), z.object({
87
+ 'ok': z.literal(true).readonly(),
88
+ 'value': z.object({
89
+ 'completed': z.literal(true).readonly(),
90
+ }).readonly(),
91
+ })])
47
92
  const _awiki_dsh_plugin_awiki_clearLocalData_parameter_0$schema = z.object({
48
93
  'confirmation': z.string().readonly(),
49
94
  })
50
95
  const _awiki_dsh_plugin_awiki_clearLocalData_result$schema = z.union([z.object({
51
96
  'ok': z.literal(false).readonly(),
52
97
  'error': z.object({
53
- '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("identity-recovery-required"), z.literal("conflict"), z.literal("state-in-use"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
98
+ '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("identity-recovery-required"), z.literal("conflict"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
54
99
  'message': z.string().readonly(),
55
100
  }).readonly(),
56
101
  }), z.object({
@@ -66,7 +111,7 @@ const _awiki_dsh_plugin_awiki_createGroup_parameter_0$schema = z.object({
66
111
  const _awiki_dsh_plugin_awiki_createGroup_result$schema = z.union([z.object({
67
112
  'ok': z.literal(false).readonly(),
68
113
  'error': z.object({
69
- '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("identity-recovery-required"), z.literal("conflict"), z.literal("state-in-use"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
114
+ '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("identity-recovery-required"), z.literal("conflict"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
70
115
  'message': z.string().readonly(),
71
116
  }).readonly(),
72
117
  }), z.object({
@@ -88,7 +133,7 @@ const _awiki_dsh_plugin_awiki_createGroup_result$schema = z.union([z.object({
88
133
  'failedMembers': z.array(z.object({
89
134
  'member': z.string().readonly(),
90
135
  'error': z.object({
91
- '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("identity-recovery-required"), z.literal("conflict"), z.literal("state-in-use"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
136
+ '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("identity-recovery-required"), z.literal("conflict"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
92
137
  'message': z.string().readonly(),
93
138
  }).readonly(),
94
139
  })).readonly(),
@@ -100,7 +145,7 @@ const _awiki_dsh_plugin_awiki_discardRecovery_parameter_0$schema = z.object({
100
145
  const _awiki_dsh_plugin_awiki_discardRecovery_result$schema = z.union([z.object({
101
146
  'ok': z.literal(false).readonly(),
102
147
  'error': z.object({
103
- '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("identity-recovery-required"), z.literal("conflict"), z.literal("state-in-use"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
148
+ '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("identity-recovery-required"), z.literal("conflict"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
104
149
  'message': z.string().readonly(),
105
150
  }).readonly(),
106
151
  }), z.object({
@@ -116,7 +161,7 @@ const _awiki_dsh_plugin_awiki_downloadAttachment_parameter_0$schema = z.object({
116
161
  const _awiki_dsh_plugin_awiki_downloadAttachment_result$schema = z.union([z.object({
117
162
  'ok': z.literal(false).readonly(),
118
163
  'error': z.object({
119
- '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("identity-recovery-required"), z.literal("conflict"), z.literal("state-in-use"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
164
+ '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("identity-recovery-required"), z.literal("conflict"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
120
165
  'message': z.string().readonly(),
121
166
  }).readonly(),
122
167
  }), z.object({
@@ -132,49 +177,24 @@ const _awiki_dsh_plugin_awiki_downloadAttachment_result$schema = z.union([z.obje
132
177
  'bytesBase64': z.string().readonly(),
133
178
  }).readonly(),
134
179
  })])
135
- const _awiki_dsh_plugin_awiki_downloadMailAttachment_parameter_0$schema = z.object({
136
- 'localMessageId': z.intersection(z.string(), z.unknown()).readonly(),
137
- 'attachmentIndex': z.number().readonly(),
138
- })
139
- const _awiki_dsh_plugin_awiki_downloadMailAttachment_result$schema = z.union([z.object({
140
- 'ok': z.literal(false).readonly(),
141
- 'error': z.object({
142
- '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("identity-recovery-required"), z.literal("conflict"), z.literal("state-in-use"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
143
- 'message': z.string().readonly(),
144
- }).readonly(),
145
- }), z.object({
146
- 'ok': z.literal(true).readonly(),
147
- 'value': z.object({
148
- 'fileName': z.string().readonly(),
149
- 'contentType': z.string().readonly(),
150
- 'sizeBytes': z.number().readonly(),
151
- 'sha256': z.string().readonly(),
152
- 'bytesBase64': z.string().readonly(),
153
- }).readonly(),
154
- })])
155
180
  const _awiki_dsh_plugin_awiki_getConfig_result$schema = z.union([z.object({
156
181
  'ok': z.literal(false).readonly(),
157
182
  'error': z.object({
158
- '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("identity-recovery-required"), z.literal("conflict"), z.literal("state-in-use"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
183
+ '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("identity-recovery-required"), z.literal("conflict"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
159
184
  'message': z.string().readonly(),
160
185
  }).readonly(),
161
186
  }), z.object({
162
187
  'ok': z.literal(true).readonly(),
163
188
  'value': z.object({
164
- 'tenantDomain': z.string().readonly(),
165
189
  'pollIntervalMs': z.number().readonly(),
166
190
  'attachmentMaxBytes': z.number().readonly(),
167
- 'mailAttachmentMaxCount': z.number().readonly(),
168
- 'mailAttachmentMaxBytes': z.number().readonly(),
169
- 'mailAttachmentTotalMaxBytes': z.number().readonly(),
170
- 'profileName': z.string().readonly().optional(),
171
- 'legacySharedStateDetected': z.boolean().readonly().optional(),
191
+ 'handleRecoveryPhoneEnabled': z.boolean().readonly(),
172
192
  }).readonly(),
173
193
  })])
174
194
  const _awiki_dsh_plugin_awiki_getConversationPreferences_result$schema = z.union([z.object({
175
195
  'ok': z.literal(false).readonly(),
176
196
  'error': z.object({
177
- '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("identity-recovery-required"), z.literal("conflict"), z.literal("state-in-use"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
197
+ '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("identity-recovery-required"), z.literal("conflict"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
178
198
  'message': z.string().readonly(),
179
199
  }).readonly(),
180
200
  }), z.object({
@@ -202,16 +222,30 @@ const _awiki_dsh_plugin_awiki_getConversationPreferences_result$schema = z.union
202
222
  })]).readonly(),
203
223
  'hiddenAt': z.number().readonly(),
204
224
  })).readonly(),
205
- 'dismissedGroupRecoverySignature': z.string().readonly().optional(),
206
225
  }).readonly(),
207
226
  })])
227
+ const _awiki_dsh_plugin_awiki_getDeviceJoinStatus_result$schema = z.union([z.object({
228
+ 'ok': z.literal(false).readonly(),
229
+ 'error': z.object({
230
+ '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("identity-recovery-required"), z.literal("conflict"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
231
+ 'message': z.string().readonly(),
232
+ }).readonly(),
233
+ }), z.object({
234
+ 'ok': z.literal(true).readonly(),
235
+ 'value': z.union([z.literal(null), z.object({
236
+ 'phase': z.union([z.literal("pending"), z.literal("verifying"), z.literal("sas-ready"), z.literal("authorized"), z.literal("cancelled"), z.literal("rejected"), z.literal("expired")]).readonly(),
237
+ 'expiresAt': z.string().readonly(),
238
+ 'sas': z.string().readonly().optional(),
239
+ 'completed': z.boolean().readonly(),
240
+ })]).readonly(),
241
+ })])
208
242
  const _awiki_dsh_plugin_awiki_getGroup_parameter_0$schema = z.object({
209
243
  'groupDid': z.intersection(z.string(), z.unknown()).readonly(),
210
244
  })
211
245
  const _awiki_dsh_plugin_awiki_getGroup_result$schema = z.union([z.object({
212
246
  'ok': z.literal(false).readonly(),
213
247
  'error': z.object({
214
- '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("identity-recovery-required"), z.literal("conflict"), z.literal("state-in-use"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
248
+ '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("identity-recovery-required"), z.literal("conflict"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
215
249
  'message': z.string().readonly(),
216
250
  }).readonly(),
217
251
  }), z.object({
@@ -234,7 +268,7 @@ const _awiki_dsh_plugin_awiki_getHistory_parameter_0$schema = z.object({
234
268
  const _awiki_dsh_plugin_awiki_getHistory_result$schema = z.union([z.object({
235
269
  'ok': z.literal(false).readonly(),
236
270
  'error': z.object({
237
- '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("identity-recovery-required"), z.literal("conflict"), z.literal("state-in-use"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
271
+ '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("identity-recovery-required"), z.literal("conflict"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
238
272
  'message': z.string().readonly(),
239
273
  }).readonly(),
240
274
  }), z.object({
@@ -278,7 +312,7 @@ const _awiki_dsh_plugin_awiki_getHistory_result$schema = z.union([z.object({
278
312
  const _awiki_dsh_plugin_awiki_getIdentity_result$schema = z.union([z.object({
279
313
  'ok': z.literal(false).readonly(),
280
314
  'error': z.object({
281
- '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("identity-recovery-required"), z.literal("conflict"), z.literal("state-in-use"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
315
+ '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("identity-recovery-required"), z.literal("conflict"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
282
316
  'message': z.string().readonly(),
283
317
  }).readonly(),
284
318
  }), z.object({
@@ -298,7 +332,7 @@ const _awiki_dsh_plugin_awiki_getLocalHistory_parameter_0$schema = z.object({
298
332
  const _awiki_dsh_plugin_awiki_getLocalHistory_result$schema = z.union([z.object({
299
333
  'ok': z.literal(false).readonly(),
300
334
  'error': z.object({
301
- '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("identity-recovery-required"), z.literal("conflict"), z.literal("state-in-use"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
335
+ '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("identity-recovery-required"), z.literal("conflict"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
302
336
  'message': z.string().readonly(),
303
337
  }).readonly(),
304
338
  }), z.object({
@@ -342,7 +376,7 @@ const _awiki_dsh_plugin_awiki_getLocalHistory_result$schema = z.union([z.object(
342
376
  const _awiki_dsh_plugin_awiki_getMailAccount_result$schema = z.union([z.object({
343
377
  'ok': z.literal(false).readonly(),
344
378
  'error': z.object({
345
- '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("identity-recovery-required"), z.literal("conflict"), z.literal("state-in-use"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
379
+ '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("identity-recovery-required"), z.literal("conflict"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
346
380
  'message': z.string().readonly(),
347
381
  }).readonly(),
348
382
  }), z.object({
@@ -356,7 +390,7 @@ const _awiki_dsh_plugin_awiki_getMailAccount_result$schema = z.union([z.object({
356
390
  const _awiki_dsh_plugin_awiki_getProfile_result$schema = z.union([z.object({
357
391
  'ok': z.literal(false).readonly(),
358
392
  'error': z.object({
359
- '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("identity-recovery-required"), z.literal("conflict"), z.literal("state-in-use"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
393
+ '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("identity-recovery-required"), z.literal("conflict"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
360
394
  'message': z.string().readonly(),
361
395
  }).readonly(),
362
396
  }), z.object({
@@ -376,7 +410,7 @@ const _awiki_dsh_plugin_awiki_getRecoveryStatus_parameter_0$schema = z.object({
376
410
  const _awiki_dsh_plugin_awiki_getRecoveryStatus_result$schema = z.union([z.object({
377
411
  'ok': z.literal(false).readonly(),
378
412
  'error': z.object({
379
- '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("identity-recovery-required"), z.literal("conflict"), z.literal("state-in-use"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
413
+ '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("identity-recovery-required"), z.literal("conflict"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
380
414
  'message': z.string().readonly(),
381
415
  }).readonly(),
382
416
  }), z.object({
@@ -391,14 +425,12 @@ const _awiki_dsh_plugin_awiki_getRecoveryStatus_result$schema = z.union([z.objec
391
425
  'retryable': z.boolean().readonly(),
392
426
  'localOrdinaryDataWillMigrate': z.boolean().readonly(),
393
427
  'otherDevicesMustRejoin': z.boolean().readonly(),
394
- 'unsupportedE2eeGroupCount': z.number().readonly(),
395
- 'unsupportedDidOnlyGroupCount': z.number().readonly(),
396
428
  }).readonly(),
397
429
  })])
398
430
  const _awiki_dsh_plugin_awiki_getSession_result$schema = z.union([z.object({
399
431
  'ok': z.literal(false).readonly(),
400
432
  'error': z.object({
401
- '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("identity-recovery-required"), z.literal("conflict"), z.literal("state-in-use"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
433
+ '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("identity-recovery-required"), z.literal("conflict"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
402
434
  'message': z.string().readonly(),
403
435
  }).readonly(),
404
436
  }), z.object({
@@ -423,7 +455,7 @@ const _awiki_dsh_plugin_awiki_inspectIdentityAccess_parameter_0$schema = z.objec
423
455
  const _awiki_dsh_plugin_awiki_inspectIdentityAccess_result$schema = z.union([z.object({
424
456
  'ok': z.literal(false).readonly(),
425
457
  'error': z.object({
426
- '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("identity-recovery-required"), z.literal("conflict"), z.literal("state-in-use"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
458
+ '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("identity-recovery-required"), z.literal("conflict"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
427
459
  'message': z.string().readonly(),
428
460
  }).readonly(),
429
461
  }), z.object({
@@ -439,7 +471,7 @@ const _awiki_dsh_plugin_awiki_joinGroup_parameter_0$schema = z.object({
439
471
  const _awiki_dsh_plugin_awiki_joinGroup_result$schema = z.union([z.object({
440
472
  'ok': z.literal(false).readonly(),
441
473
  'error': z.object({
442
- '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("identity-recovery-required"), z.literal("conflict"), z.literal("state-in-use"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
474
+ '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("identity-recovery-required"), z.literal("conflict"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
443
475
  'message': z.string().readonly(),
444
476
  }).readonly(),
445
477
  }), z.object({
@@ -460,7 +492,7 @@ const _awiki_dsh_plugin_awiki_leaveGroup_parameter_0$schema = z.object({
460
492
  const _awiki_dsh_plugin_awiki_leaveGroup_result$schema = z.union([z.object({
461
493
  'ok': z.literal(false).readonly(),
462
494
  'error': z.object({
463
- '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("identity-recovery-required"), z.literal("conflict"), z.literal("state-in-use"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
495
+ '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("identity-recovery-required"), z.literal("conflict"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
464
496
  'message': z.string().readonly(),
465
497
  }).readonly(),
466
498
  }), z.object({
@@ -476,7 +508,7 @@ const _awiki_dsh_plugin_awiki_listConversations_parameter_0$schema = z.union([z.
476
508
  const _awiki_dsh_plugin_awiki_listConversations_result$schema = z.union([z.object({
477
509
  'ok': z.literal(false).readonly(),
478
510
  'error': z.object({
479
- '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("identity-recovery-required"), z.literal("conflict"), z.literal("state-in-use"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
511
+ '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("identity-recovery-required"), z.literal("conflict"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
480
512
  'message': z.string().readonly(),
481
513
  }).readonly(),
482
514
  }), z.object({
@@ -513,7 +545,7 @@ const _awiki_dsh_plugin_awiki_listGroupMembers_parameter_0$schema = z.object({
513
545
  const _awiki_dsh_plugin_awiki_listGroupMembers_result$schema = z.union([z.object({
514
546
  'ok': z.literal(false).readonly(),
515
547
  'error': z.object({
516
- '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("identity-recovery-required"), z.literal("conflict"), z.literal("state-in-use"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
548
+ '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("identity-recovery-required"), z.literal("conflict"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
517
549
  'message': z.string().readonly(),
518
550
  }).readonly(),
519
551
  }), z.object({
@@ -548,7 +580,7 @@ const _awiki_dsh_plugin_awiki_listMailInbox_parameter_0$schema = z.union([z.unde
548
580
  const _awiki_dsh_plugin_awiki_listMailInbox_result$schema = z.union([z.object({
549
581
  'ok': z.literal(false).readonly(),
550
582
  'error': z.object({
551
- '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("identity-recovery-required"), z.literal("conflict"), z.literal("state-in-use"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
583
+ '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("identity-recovery-required"), z.literal("conflict"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
552
584
  'message': z.string().readonly(),
553
585
  }).readonly(),
554
586
  }), z.object({
@@ -577,7 +609,7 @@ const _awiki_dsh_plugin_awiki_listMailInbox_result$schema = z.union([z.object({
577
609
  const _awiki_dsh_plugin_awiki_login_result$schema = z.union([z.object({
578
610
  'ok': z.literal(false).readonly(),
579
611
  'error': z.object({
580
- '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("identity-recovery-required"), z.literal("conflict"), z.literal("state-in-use"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
612
+ '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("identity-recovery-required"), z.literal("conflict"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
581
613
  'message': z.string().readonly(),
582
614
  }).readonly(),
583
615
  }), z.object({
@@ -602,7 +634,7 @@ const _awiki_dsh_plugin_awiki_logout_parameter_0$schema = z.object({
602
634
  const _awiki_dsh_plugin_awiki_logout_result$schema = z.union([z.object({
603
635
  'ok': z.literal(false).readonly(),
604
636
  'error': z.object({
605
- '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("identity-recovery-required"), z.literal("conflict"), z.literal("state-in-use"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
637
+ '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("identity-recovery-required"), z.literal("conflict"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
606
638
  'message': z.string().readonly(),
607
639
  }).readonly(),
608
640
  }), z.object({
@@ -627,7 +659,7 @@ const _awiki_dsh_plugin_awiki_markConversationRead_parameter_0$schema = z.object
627
659
  const _awiki_dsh_plugin_awiki_markConversationRead_result$schema = z.union([z.object({
628
660
  'ok': z.literal(false).readonly(),
629
661
  'error': z.object({
630
- '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("identity-recovery-required"), z.literal("conflict"), z.literal("state-in-use"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
662
+ '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("identity-recovery-required"), z.literal("conflict"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
631
663
  'message': z.string().readonly(),
632
664
  }).readonly(),
633
665
  }), z.object({
@@ -640,7 +672,7 @@ const _awiki_dsh_plugin_awiki_markMailRead_parameter_0$schema = z.object({
640
672
  const _awiki_dsh_plugin_awiki_markMailRead_result$schema = z.union([z.object({
641
673
  'ok': z.literal(false).readonly(),
642
674
  'error': z.object({
643
- '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("identity-recovery-required"), z.literal("conflict"), z.literal("state-in-use"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
675
+ '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("identity-recovery-required"), z.literal("conflict"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
644
676
  'message': z.string().readonly(),
645
677
  }).readonly(),
646
678
  }), z.object({
@@ -657,7 +689,7 @@ const _awiki_dsh_plugin_awiki_prepareRecovery_parameter_0$schema = z.object({
657
689
  const _awiki_dsh_plugin_awiki_prepareRecovery_result$schema = z.union([z.object({
658
690
  'ok': z.literal(false).readonly(),
659
691
  'error': z.object({
660
- '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("identity-recovery-required"), z.literal("conflict"), z.literal("state-in-use"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
692
+ '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("identity-recovery-required"), z.literal("conflict"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
661
693
  'message': z.string().readonly(),
662
694
  }).readonly(),
663
695
  }), z.object({
@@ -672,8 +704,6 @@ const _awiki_dsh_plugin_awiki_prepareRecovery_result$schema = z.union([z.object(
672
704
  'retryable': z.boolean().readonly(),
673
705
  'localOrdinaryDataWillMigrate': z.boolean().readonly(),
674
706
  'otherDevicesMustRejoin': z.boolean().readonly(),
675
- 'unsupportedE2eeGroupCount': z.number().readonly(),
676
- 'unsupportedDidOnlyGroupCount': z.number().readonly(),
677
707
  }).readonly(),
678
708
  })])
679
709
  const _awiki_dsh_plugin_awiki_readMail_parameter_0$schema = z.object({
@@ -682,7 +712,7 @@ const _awiki_dsh_plugin_awiki_readMail_parameter_0$schema = z.object({
682
712
  const _awiki_dsh_plugin_awiki_readMail_result$schema = z.union([z.object({
683
713
  'ok': z.literal(false).readonly(),
684
714
  'error': z.object({
685
- '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("identity-recovery-required"), z.literal("conflict"), z.literal("state-in-use"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
715
+ '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("identity-recovery-required"), z.literal("conflict"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
686
716
  'message': z.string().readonly(),
687
717
  }).readonly(),
688
718
  }), z.object({
@@ -715,6 +745,36 @@ const _awiki_dsh_plugin_awiki_readMail_result$schema = z.union([z.object({
715
745
  })).readonly(),
716
746
  }).readonly(),
717
747
  })])
748
+ const _awiki_dsh_plugin_awiki_refreshDeviceManagement_result$schema = z.union([z.object({
749
+ 'ok': z.literal(false).readonly(),
750
+ 'error': z.object({
751
+ '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("identity-recovery-required"), z.literal("conflict"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
752
+ 'message': z.string().readonly(),
753
+ }).readonly(),
754
+ }), z.object({
755
+ 'ok': z.literal(true).readonly(),
756
+ 'value': z.object({
757
+ 'canManage': z.boolean().readonly(),
758
+ 'role': z.union([z.literal("member"), z.literal("admin")]).readonly().optional(),
759
+ 'readiness': z.union([z.literal("legacy"), z.literal("member_ready"), z.literal("admin_awaiting_root"), z.literal("admin_ready"), z.literal("blocked")]).readonly(),
760
+ 'devices': z.array(z.object({
761
+ 'deviceRef': z.string().readonly(),
762
+ 'status': z.union([z.literal("active"), z.literal("revoked")]).readonly(),
763
+ 'role': z.union([z.literal("member"), z.literal("admin")]).readonly(),
764
+ 'managementReady': z.boolean().readonly(),
765
+ 'isCurrent': z.boolean().readonly(),
766
+ })).readonly(),
767
+ 'requests': z.array(z.object({
768
+ 'requestRef': z.string().readonly(),
769
+ 'candidateKeyFingerprint': z.string().readonly(),
770
+ 'issuedAt': z.string().readonly(),
771
+ 'expiresAt': z.string().readonly(),
772
+ 'state': z.union([z.literal("pending"), z.literal("verifying"), z.literal("sas-ready"), z.literal("authorized"), z.literal("cancelled"), z.literal("rejected"), z.literal("expired")]).readonly(),
773
+ 'claimedByCurrentDevice': z.boolean().readonly(),
774
+ 'canStartVerification': z.boolean().readonly(),
775
+ })).readonly(),
776
+ }).readonly(),
777
+ })])
718
778
  const _awiki_dsh_plugin_awiki_registerIdentity_parameter_0$schema = z.object({
719
779
  'handle': z.string().readonly(),
720
780
  'phone': z.string().readonly(),
@@ -723,17 +783,44 @@ const _awiki_dsh_plugin_awiki_registerIdentity_parameter_0$schema = z.object({
723
783
  const _awiki_dsh_plugin_awiki_registerIdentity_result$schema = z.union([z.object({
724
784
  'ok': z.literal(false).readonly(),
725
785
  'error': z.object({
726
- '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("identity-recovery-required"), z.literal("conflict"), z.literal("state-in-use"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
786
+ '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("identity-recovery-required"), z.literal("conflict"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
727
787
  'message': z.string().readonly(),
728
788
  }).readonly(),
729
789
  }), z.object({
730
790
  'ok': z.literal(true).readonly(),
731
- 'value': z.object({
791
+ 'value': z.union([z.object({
792
+ 'status': z.literal("registered").readonly(),
793
+ 'identity': z.object({
732
794
  'handle': z.intersection(z.string(), z.unknown()).readonly(),
733
795
  'did': z.intersection(z.string(), z.unknown()).readonly(),
734
796
  'displayName': z.string().readonly().optional(),
735
797
  'registeredAt': z.number().readonly(),
736
798
  }).readonly(),
799
+ }), z.object({
800
+ 'status': z.literal("join-required").readonly(),
801
+ 'fullHandle': z.intersection(z.string(), z.unknown()).readonly(),
802
+ 'mode': z.union([z.literal("ordinary"), z.literal("handle-recovery-rebind")]).readonly(),
803
+ 'requiresUserPresence': z.boolean().readonly(),
804
+ })]).readonly(),
805
+ })])
806
+ const _awiki_dsh_plugin_awiki_rejectDeviceJoin_parameter_0$schema = z.object({
807
+ 'reason': z.union([z.literal("user_rejected"), z.literal("sas_mismatch")]).readonly(),
808
+ 'requestRef': z.string().readonly(),
809
+ })
810
+ const _awiki_dsh_plugin_awiki_rejectDeviceJoin_result$schema = z.union([z.object({
811
+ 'ok': z.literal(false).readonly(),
812
+ 'error': z.object({
813
+ '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("identity-recovery-required"), z.literal("conflict"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
814
+ 'message': z.string().readonly(),
815
+ }).readonly(),
816
+ }), z.object({
817
+ 'ok': z.literal(true).readonly(),
818
+ 'value': z.object({
819
+ 'requestRef': z.string().readonly(),
820
+ 'phase': z.union([z.literal("pending"), z.literal("verifying"), z.literal("sas-ready"), z.literal("authorized"), z.literal("cancelled"), z.literal("rejected"), z.literal("expired")]).readonly(),
821
+ 'expiresAt': z.string().readonly(),
822
+ 'sas': z.string().readonly().optional(),
823
+ }).readonly(),
737
824
  })])
738
825
  const _awiki_dsh_plugin_awiki_removeGroupMember_parameter_0$schema = z.object({
739
826
  'member': z.string().readonly(),
@@ -742,7 +829,7 @@ const _awiki_dsh_plugin_awiki_removeGroupMember_parameter_0$schema = z.object({
742
829
  const _awiki_dsh_plugin_awiki_removeGroupMember_result$schema = z.union([z.object({
743
830
  'ok': z.literal(false).readonly(),
744
831
  'error': z.object({
745
- '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("identity-recovery-required"), z.literal("conflict"), z.literal("state-in-use"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
832
+ '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("identity-recovery-required"), z.literal("conflict"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
746
833
  'message': z.string().readonly(),
747
834
  }).readonly(),
748
835
  }), z.object({
@@ -758,7 +845,7 @@ const _awiki_dsh_plugin_awiki_resolvePeer_parameter_0$schema = z.object({
758
845
  const _awiki_dsh_plugin_awiki_resolvePeer_result$schema = z.union([z.object({
759
846
  'ok': z.literal(false).readonly(),
760
847
  'error': z.object({
761
- '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("identity-recovery-required"), z.literal("conflict"), z.literal("state-in-use"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
848
+ '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("identity-recovery-required"), z.literal("conflict"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
762
849
  'message': z.string().readonly(),
763
850
  }).readonly(),
764
851
  }), z.object({
@@ -770,32 +857,13 @@ const _awiki_dsh_plugin_awiki_resolvePeer_result$schema = z.union([z.object({
770
857
  'conversationId': z.intersection(z.string(), z.unknown()).readonly(),
771
858
  }).readonly(),
772
859
  })])
773
- const _awiki_dsh_plugin_awiki_resumeGroupRebindRecovery_result$schema = z.union([z.object({
774
- 'ok': z.literal(false).readonly(),
775
- 'error': z.object({
776
- '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("identity-recovery-required"), z.literal("conflict"), z.literal("state-in-use"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
777
- 'message': z.string().readonly(),
778
- }).readonly(),
779
- }), z.object({
780
- 'ok': z.literal(true).readonly(),
781
- 'value': z.object({
782
- 'processed': z.number().readonly(),
783
- 'completed': z.number().readonly(),
784
- 'pending': z.number().readonly(),
785
- 'blocked': z.number().readonly(),
786
- 'items': z.array(z.object({
787
- 'groupDid': z.intersection(z.string(), z.unknown()).readonly(),
788
- 'status': z.union([z.literal("pending"), z.literal("blocked")]).readonly(),
789
- })).readonly(),
790
- }).readonly(),
791
- })])
792
860
  const _awiki_dsh_plugin_awiki_resumeRecovery_parameter_0$schema = z.object({
793
861
  'operationId': z.string().readonly(),
794
862
  })
795
863
  const _awiki_dsh_plugin_awiki_resumeRecovery_result$schema = z.union([z.object({
796
864
  'ok': z.literal(false).readonly(),
797
865
  'error': z.object({
798
- '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("identity-recovery-required"), z.literal("conflict"), z.literal("state-in-use"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
866
+ '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("identity-recovery-required"), z.literal("conflict"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
799
867
  'message': z.string().readonly(),
800
868
  }).readonly(),
801
869
  }), z.object({
@@ -810,8 +878,40 @@ const _awiki_dsh_plugin_awiki_resumeRecovery_result$schema = z.union([z.object({
810
878
  'retryable': z.boolean().readonly(),
811
879
  'localOrdinaryDataWillMigrate': z.boolean().readonly(),
812
880
  'otherDevicesMustRejoin': z.boolean().readonly(),
813
- 'unsupportedE2eeGroupCount': z.number().readonly(),
814
- 'unsupportedDidOnlyGroupCount': z.number().readonly(),
881
+ }).readonly(),
882
+ })])
883
+ const _awiki_dsh_plugin_awiki_revokeDevice_parameter_0$schema = z.object({
884
+ 'deviceRef': z.string().readonly(),
885
+ 'confirmation': z.string().readonly(),
886
+ })
887
+ const _awiki_dsh_plugin_awiki_revokeDevice_result$schema = z.union([z.object({
888
+ 'ok': z.literal(false).readonly(),
889
+ 'error': z.object({
890
+ '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("identity-recovery-required"), z.literal("conflict"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
891
+ 'message': z.string().readonly(),
892
+ }).readonly(),
893
+ }), z.object({
894
+ 'ok': z.literal(true).readonly(),
895
+ 'value': z.object({
896
+ 'canManage': z.boolean().readonly(),
897
+ 'role': z.union([z.literal("member"), z.literal("admin")]).readonly().optional(),
898
+ 'readiness': z.union([z.literal("legacy"), z.literal("member_ready"), z.literal("admin_awaiting_root"), z.literal("admin_ready"), z.literal("blocked")]).readonly(),
899
+ 'devices': z.array(z.object({
900
+ 'deviceRef': z.string().readonly(),
901
+ 'status': z.union([z.literal("active"), z.literal("revoked")]).readonly(),
902
+ 'role': z.union([z.literal("member"), z.literal("admin")]).readonly(),
903
+ 'managementReady': z.boolean().readonly(),
904
+ 'isCurrent': z.boolean().readonly(),
905
+ })).readonly(),
906
+ 'requests': z.array(z.object({
907
+ 'requestRef': z.string().readonly(),
908
+ 'candidateKeyFingerprint': z.string().readonly(),
909
+ 'issuedAt': z.string().readonly(),
910
+ 'expiresAt': z.string().readonly(),
911
+ 'state': z.union([z.literal("pending"), z.literal("verifying"), z.literal("sas-ready"), z.literal("authorized"), z.literal("cancelled"), z.literal("rejected"), z.literal("expired")]).readonly(),
912
+ 'claimedByCurrentDevice': z.boolean().readonly(),
913
+ 'canStartVerification': z.boolean().readonly(),
914
+ })).readonly(),
815
915
  }).readonly(),
816
916
  })])
817
917
  const _awiki_dsh_plugin_awiki_sendAttachment_parameter_0$schema = z.object({
@@ -831,7 +931,7 @@ const _awiki_dsh_plugin_awiki_sendAttachment_parameter_0$schema = z.object({
831
931
  const _awiki_dsh_plugin_awiki_sendAttachment_result$schema = z.union([z.object({
832
932
  'ok': z.literal(false).readonly(),
833
933
  'error': z.object({
834
- '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("identity-recovery-required"), z.literal("conflict"), z.literal("state-in-use"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
934
+ '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("identity-recovery-required"), z.literal("conflict"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
835
935
  'message': z.string().readonly(),
836
936
  }).readonly(),
837
937
  }), z.object({
@@ -873,17 +973,11 @@ const _awiki_dsh_plugin_awiki_sendMail_parameter_0$schema = z.object({
873
973
  'cc': z.array(z.string()).readonly().optional(),
874
974
  'subject': z.string().readonly(),
875
975
  'bodyText': z.string().readonly(),
876
- 'attachments': z.array(z.object({
877
- 'fileName': z.string().readonly(),
878
- 'contentType': z.string().readonly(),
879
- 'sizeBytes': z.number().readonly(),
880
- 'bytesBase64': z.string().readonly(),
881
- })).readonly().optional(),
882
976
  })
883
977
  const _awiki_dsh_plugin_awiki_sendMail_result$schema = z.union([z.object({
884
978
  'ok': z.literal(false).readonly(),
885
979
  'error': z.object({
886
- '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("identity-recovery-required"), z.literal("conflict"), z.literal("state-in-use"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
980
+ '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("identity-recovery-required"), z.literal("conflict"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
887
981
  'message': z.string().readonly(),
888
982
  }).readonly(),
889
983
  }), z.object({
@@ -901,7 +995,7 @@ const _awiki_dsh_plugin_awiki_sendRecoveryOtp_parameter_0$schema = z.object({
901
995
  const _awiki_dsh_plugin_awiki_sendRecoveryOtp_result$schema = z.union([z.object({
902
996
  'ok': z.literal(false).readonly(),
903
997
  'error': z.object({
904
- '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("identity-recovery-required"), z.literal("conflict"), z.literal("state-in-use"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
998
+ '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("identity-recovery-required"), z.literal("conflict"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
905
999
  'message': z.string().readonly(),
906
1000
  }).readonly(),
907
1001
  }), z.object({
@@ -920,7 +1014,7 @@ const _awiki_dsh_plugin_awiki_sendRegistrationOtp_parameter_0$schema = z.object(
920
1014
  const _awiki_dsh_plugin_awiki_sendRegistrationOtp_result$schema = z.union([z.object({
921
1015
  'ok': z.literal(false).readonly(),
922
1016
  'error': z.object({
923
- '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("identity-recovery-required"), z.literal("conflict"), z.literal("state-in-use"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
1017
+ '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("identity-recovery-required"), z.literal("conflict"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
924
1018
  'message': z.string().readonly(),
925
1019
  }).readonly(),
926
1020
  }), z.object({
@@ -951,7 +1045,7 @@ const _awiki_dsh_plugin_awiki_sendText_parameter_0$schema = z.object({
951
1045
  const _awiki_dsh_plugin_awiki_sendText_result$schema = z.union([z.object({
952
1046
  'ok': z.literal(false).readonly(),
953
1047
  'error': z.object({
954
- '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("identity-recovery-required"), z.literal("conflict"), z.literal("state-in-use"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
1048
+ '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("identity-recovery-required"), z.literal("conflict"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
955
1049
  'message': z.string().readonly(),
956
1050
  }).readonly(),
957
1051
  }), z.object({
@@ -988,6 +1082,24 @@ const _awiki_dsh_plugin_awiki_sendText_result$schema = z.union([z.object({
988
1082
  })]).readonly(),
989
1083
  }).readonly(),
990
1084
  })])
1085
+ const _awiki_dsh_plugin_awiki_startDeviceJoinVerification_parameter_0$schema = z.object({
1086
+ 'requestRef': z.string().readonly(),
1087
+ })
1088
+ const _awiki_dsh_plugin_awiki_startDeviceJoinVerification_result$schema = z.union([z.object({
1089
+ 'ok': z.literal(false).readonly(),
1090
+ 'error': z.object({
1091
+ '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("identity-recovery-required"), z.literal("conflict"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
1092
+ 'message': z.string().readonly(),
1093
+ }).readonly(),
1094
+ }), z.object({
1095
+ 'ok': z.literal(true).readonly(),
1096
+ 'value': z.object({
1097
+ 'requestRef': z.string().readonly(),
1098
+ 'phase': z.union([z.literal("pending"), z.literal("verifying"), z.literal("sas-ready"), z.literal("authorized"), z.literal("cancelled"), z.literal("rejected"), z.literal("expired")]).readonly(),
1099
+ 'expiresAt': z.string().readonly(),
1100
+ 'sas': z.string().readonly().optional(),
1101
+ }).readonly(),
1102
+ })])
991
1103
  const _awiki_dsh_plugin_awiki_summarizeConversation_parameter_0$schema = z.object({
992
1104
  'conversationId': z.intersection(z.string(), z.unknown()).readonly(),
993
1105
  'unreadCountAtOpen': z.number().readonly().optional(),
@@ -995,7 +1107,7 @@ const _awiki_dsh_plugin_awiki_summarizeConversation_parameter_0$schema = z.objec
995
1107
  const _awiki_dsh_plugin_awiki_summarizeConversation_result$schema = z.union([z.object({
996
1108
  'ok': z.literal(false).readonly(),
997
1109
  'error': z.object({
998
- '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("identity-recovery-required"), z.literal("conflict"), z.literal("state-in-use"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
1110
+ '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("identity-recovery-required"), z.literal("conflict"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
999
1111
  'message': z.string().readonly(),
1000
1112
  }).readonly(),
1001
1113
  }), z.object({
@@ -1042,14 +1154,11 @@ const _awiki_dsh_plugin_awiki_updateConversationPreference_parameter_0$schema =
1042
1154
  }), z.object({
1043
1155
  'action': z.literal("restore").readonly(),
1044
1156
  'conversationId': z.intersection(z.string(), z.unknown()).readonly(),
1045
- }), z.object({
1046
- 'action': z.literal("dismiss-group-recovery").readonly(),
1047
- 'signature': z.string().readonly(),
1048
1157
  })])
1049
1158
  const _awiki_dsh_plugin_awiki_updateConversationPreference_result$schema = z.union([z.object({
1050
1159
  'ok': z.literal(false).readonly(),
1051
1160
  'error': z.object({
1052
- '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("identity-recovery-required"), z.literal("conflict"), z.literal("state-in-use"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
1161
+ '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("identity-recovery-required"), z.literal("conflict"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
1053
1162
  'message': z.string().readonly(),
1054
1163
  }).readonly(),
1055
1164
  }), z.object({
@@ -1077,7 +1186,6 @@ const _awiki_dsh_plugin_awiki_updateConversationPreference_result$schema = z.uni
1077
1186
  })]).readonly(),
1078
1187
  'hiddenAt': z.number().readonly(),
1079
1188
  })).readonly(),
1080
- 'dismissedGroupRecoverySignature': z.string().readonly().optional(),
1081
1189
  }).readonly(),
1082
1190
  })])
1083
1191
  const _awiki_dsh_plugin_awiki_updateDisplayName_parameter_0$schema = z.object({
@@ -1086,7 +1194,7 @@ const _awiki_dsh_plugin_awiki_updateDisplayName_parameter_0$schema = z.object({
1086
1194
  const _awiki_dsh_plugin_awiki_updateDisplayName_result$schema = z.union([z.object({
1087
1195
  'ok': z.literal(false).readonly(),
1088
1196
  'error': z.object({
1089
- '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("identity-recovery-required"), z.literal("conflict"), z.literal("state-in-use"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
1197
+ '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("identity-recovery-required"), z.literal("conflict"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
1090
1198
  'message': z.string().readonly(),
1091
1199
  }).readonly(),
1092
1200
  }), z.object({
@@ -1106,7 +1214,7 @@ const _awiki_dsh_plugin_awiki_updateProfile_parameter_0$schema = z.object({
1106
1214
  const _awiki_dsh_plugin_awiki_updateProfile_result$schema = z.union([z.object({
1107
1215
  'ok': z.literal(false).readonly(),
1108
1216
  'error': z.object({
1109
- '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("identity-recovery-required"), z.literal("conflict"), z.literal("state-in-use"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
1217
+ '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("identity-recovery-required"), z.literal("conflict"), z.literal("rate-limited"), z.literal("group-membership-required"), z.literal("group-identity-stale"), 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("delivery-unknown"), z.literal("network"), z.literal("remote")]).readonly(),
1110
1218
  'message': z.string().readonly(),
1111
1219
  }).readonly(),
1112
1220
  }), z.object({
@@ -1150,7 +1258,7 @@ export const TYPERT = {
1150
1258
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1151
1259
  schema: _awiki_dsh_plugin_awiki_activateRecovery_result$schema,
1152
1260
  },
1153
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":119,"column":9},
1261
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":158,"column":9},
1154
1262
  },
1155
1263
  {
1156
1264
  id: '@awiki/dsh-plugin#awiki/addGroupMember',
@@ -1175,7 +1283,62 @@ export const TYPERT = {
1175
1283
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1176
1284
  schema: _awiki_dsh_plugin_awiki_addGroupMember_result$schema,
1177
1285
  },
1178
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":149,"column":3},
1286
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":188,"column":3},
1287
+ },
1288
+ {
1289
+ id: '@awiki/dsh-plugin#awiki/approveDeviceJoin',
1290
+ service: 'awiki',
1291
+ namespace: 'awiki',
1292
+ method: 'approveDeviceJoin',
1293
+ invocation: { kind: 'direct' },
1294
+ parameters: [
1295
+ {
1296
+ name: 'request',
1297
+ wire: 'request',
1298
+ source: 'json',
1299
+ codec: {
1300
+ mode: 'strict',
1301
+ typeSymbol: '@awiki/dsh-plugin/types#AwikiApproveDeviceJoinRequest',
1302
+ schema: _awiki_dsh_plugin_awiki_approveDeviceJoin_parameter_0$schema,
1303
+ },
1304
+ },
1305
+ ],
1306
+ result: {
1307
+ mode: 'strict',
1308
+ typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1309
+ schema: _awiki_dsh_plugin_awiki_approveDeviceJoin_result$schema,
1310
+ },
1311
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":128,"column":9},
1312
+ },
1313
+ {
1314
+ id: '@awiki/dsh-plugin#awiki/beginDeviceJoin',
1315
+ service: 'awiki',
1316
+ namespace: 'awiki',
1317
+ method: 'beginDeviceJoin',
1318
+ invocation: { kind: 'direct' },
1319
+ parameters: [
1320
+ ],
1321
+ result: {
1322
+ mode: 'strict',
1323
+ typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1324
+ schema: _awiki_dsh_plugin_awiki_beginDeviceJoin_result$schema,
1325
+ },
1326
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":111,"column":9},
1327
+ },
1328
+ {
1329
+ id: '@awiki/dsh-plugin#awiki/cancelDeviceJoin',
1330
+ service: 'awiki',
1331
+ namespace: 'awiki',
1332
+ method: 'cancelDeviceJoin',
1333
+ invocation: { kind: 'direct' },
1334
+ parameters: [
1335
+ ],
1336
+ result: {
1337
+ mode: 'strict',
1338
+ typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1339
+ schema: _awiki_dsh_plugin_awiki_cancelDeviceJoin_result$schema,
1340
+ },
1341
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":117,"column":9},
1179
1342
  },
1180
1343
  {
1181
1344
  id: '@awiki/dsh-plugin#awiki/clearLocalData',
@@ -1200,7 +1363,7 @@ export const TYPERT = {
1200
1363
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1201
1364
  schema: _awiki_dsh_plugin_awiki_clearLocalData_result$schema,
1202
1365
  },
1203
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":212,"column":3},
1366
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":243,"column":3},
1204
1367
  },
1205
1368
  {
1206
1369
  id: '@awiki/dsh-plugin#awiki/createGroup',
@@ -1225,7 +1388,7 @@ export const TYPERT = {
1225
1388
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1226
1389
  schema: _awiki_dsh_plugin_awiki_createGroup_result$schema,
1227
1390
  },
1228
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":134,"column":9},
1391
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":173,"column":9},
1229
1392
  },
1230
1393
  {
1231
1394
  id: '@awiki/dsh-plugin#awiki/discardRecovery',
@@ -1250,7 +1413,7 @@ export const TYPERT = {
1250
1413
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1251
1414
  schema: _awiki_dsh_plugin_awiki_discardRecovery_result$schema,
1252
1415
  },
1253
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":128,"column":9},
1416
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":167,"column":9},
1254
1417
  },
1255
1418
  {
1256
1419
  id: '@awiki/dsh-plugin#awiki/downloadAttachment',
@@ -1275,62 +1438,52 @@ export const TYPERT = {
1275
1438
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1276
1439
  schema: _awiki_dsh_plugin_awiki_downloadAttachment_result$schema,
1277
1440
  },
1278
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":189,"column":9},
1441
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":225,"column":9},
1279
1442
  },
1280
1443
  {
1281
- id: '@awiki/dsh-plugin#awiki/downloadMailAttachment',
1444
+ id: '@awiki/dsh-plugin#awiki/getConfig',
1282
1445
  service: 'awiki',
1283
1446
  namespace: 'awiki',
1284
- method: 'downloadMailAttachment',
1447
+ method: 'getConfig',
1285
1448
  invocation: { kind: 'direct' },
1286
1449
  parameters: [
1287
- {
1288
- name: 'request',
1289
- wire: 'request',
1290
- source: 'json',
1291
- codec: {
1292
- mode: 'strict',
1293
- typeSymbol: '@awiki/dsh-plugin/types#AwikiMailAttachmentDownloadRequest',
1294
- schema: _awiki_dsh_plugin_awiki_downloadMailAttachment_parameter_0$schema,
1295
- },
1296
- },
1297
1450
  ],
1298
1451
  result: {
1299
1452
  mode: 'strict',
1300
1453
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1301
- schema: _awiki_dsh_plugin_awiki_downloadMailAttachment_result$schema,
1454
+ schema: _awiki_dsh_plugin_awiki_getConfig_result$schema,
1302
1455
  },
1303
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":207,"column":9},
1456
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":85,"column":9},
1304
1457
  },
1305
1458
  {
1306
- id: '@awiki/dsh-plugin#awiki/getConfig',
1459
+ id: '@awiki/dsh-plugin#awiki/getConversationPreferences',
1307
1460
  service: 'awiki',
1308
1461
  namespace: 'awiki',
1309
- method: 'getConfig',
1462
+ method: 'getConversationPreferences',
1310
1463
  invocation: { kind: 'direct' },
1311
1464
  parameters: [
1312
1465
  ],
1313
1466
  result: {
1314
1467
  mode: 'strict',
1315
1468
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1316
- schema: _awiki_dsh_plugin_awiki_getConfig_result$schema,
1469
+ schema: _awiki_dsh_plugin_awiki_getConversationPreferences_result$schema,
1317
1470
  },
1318
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":78,"column":3},
1471
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":194,"column":3},
1319
1472
  },
1320
1473
  {
1321
- id: '@awiki/dsh-plugin#awiki/getConversationPreferences',
1474
+ id: '@awiki/dsh-plugin#awiki/getDeviceJoinStatus',
1322
1475
  service: 'awiki',
1323
1476
  namespace: 'awiki',
1324
- method: 'getConversationPreferences',
1477
+ method: 'getDeviceJoinStatus',
1325
1478
  invocation: { kind: 'direct' },
1326
1479
  parameters: [
1327
1480
  ],
1328
1481
  result: {
1329
1482
  mode: 'strict',
1330
1483
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1331
- schema: _awiki_dsh_plugin_awiki_getConversationPreferences_result$schema,
1484
+ schema: _awiki_dsh_plugin_awiki_getDeviceJoinStatus_result$schema,
1332
1485
  },
1333
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":158,"column":3},
1486
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":114,"column":9},
1334
1487
  },
1335
1488
  {
1336
1489
  id: '@awiki/dsh-plugin#awiki/getGroup',
@@ -1355,7 +1508,7 @@ export const TYPERT = {
1355
1508
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1356
1509
  schema: _awiki_dsh_plugin_awiki_getGroup_result$schema,
1357
1510
  },
1358
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":137,"column":3},
1511
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":176,"column":3},
1359
1512
  },
1360
1513
  {
1361
1514
  id: '@awiki/dsh-plugin#awiki/getHistory',
@@ -1380,7 +1533,7 @@ export const TYPERT = {
1380
1533
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1381
1534
  schema: _awiki_dsh_plugin_awiki_getHistory_result$schema,
1382
1535
  },
1383
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":169,"column":3},
1536
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":205,"column":3},
1384
1537
  },
1385
1538
  {
1386
1539
  id: '@awiki/dsh-plugin#awiki/getIdentity',
@@ -1395,7 +1548,7 @@ export const TYPERT = {
1395
1548
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1396
1549
  schema: _awiki_dsh_plugin_awiki_getIdentity_result$schema,
1397
1550
  },
1398
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":81,"column":9},
1551
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":88,"column":9},
1399
1552
  },
1400
1553
  {
1401
1554
  id: '@awiki/dsh-plugin#awiki/getLocalHistory',
@@ -1420,7 +1573,7 @@ export const TYPERT = {
1420
1573
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1421
1574
  schema: _awiki_dsh_plugin_awiki_getLocalHistory_result$schema,
1422
1575
  },
1423
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":172,"column":3},
1576
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":208,"column":3},
1424
1577
  },
1425
1578
  {
1426
1579
  id: '@awiki/dsh-plugin#awiki/getMailAccount',
@@ -1435,7 +1588,7 @@ export const TYPERT = {
1435
1588
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1436
1589
  schema: _awiki_dsh_plugin_awiki_getMailAccount_result$schema,
1437
1590
  },
1438
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":192,"column":3},
1591
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":228,"column":3},
1439
1592
  },
1440
1593
  {
1441
1594
  id: '@awiki/dsh-plugin#awiki/getProfile',
@@ -1450,7 +1603,7 @@ export const TYPERT = {
1450
1603
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1451
1604
  schema: _awiki_dsh_plugin_awiki_getProfile_result$schema,
1452
1605
  },
1453
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":107,"column":3},
1606
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":146,"column":3},
1454
1607
  },
1455
1608
  {
1456
1609
  id: '@awiki/dsh-plugin#awiki/getRecoveryStatus',
@@ -1475,7 +1628,7 @@ export const TYPERT = {
1475
1628
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1476
1629
  schema: _awiki_dsh_plugin_awiki_getRecoveryStatus_result$schema,
1477
1630
  },
1478
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":122,"column":9},
1631
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":161,"column":9},
1479
1632
  },
1480
1633
  {
1481
1634
  id: '@awiki/dsh-plugin#awiki/getSession',
@@ -1490,7 +1643,7 @@ export const TYPERT = {
1490
1643
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1491
1644
  schema: _awiki_dsh_plugin_awiki_getSession_result$schema,
1492
1645
  },
1493
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":84,"column":9},
1646
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":91,"column":9},
1494
1647
  },
1495
1648
  {
1496
1649
  id: '@awiki/dsh-plugin#awiki/inspectIdentityAccess',
@@ -1515,7 +1668,7 @@ export const TYPERT = {
1515
1668
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1516
1669
  schema: _awiki_dsh_plugin_awiki_inspectIdentityAccess_result$schema,
1517
1670
  },
1518
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":93,"column":9},
1671
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":100,"column":9},
1519
1672
  },
1520
1673
  {
1521
1674
  id: '@awiki/dsh-plugin#awiki/joinGroup',
@@ -1540,7 +1693,7 @@ export const TYPERT = {
1540
1693
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1541
1694
  schema: _awiki_dsh_plugin_awiki_joinGroup_result$schema,
1542
1695
  },
1543
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":140,"column":3},
1696
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":179,"column":3},
1544
1697
  },
1545
1698
  {
1546
1699
  id: '@awiki/dsh-plugin#awiki/leaveGroup',
@@ -1565,7 +1718,7 @@ export const TYPERT = {
1565
1718
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1566
1719
  schema: _awiki_dsh_plugin_awiki_leaveGroup_result$schema,
1567
1720
  },
1568
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":143,"column":9},
1721
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":182,"column":9},
1569
1722
  },
1570
1723
  {
1571
1724
  id: '@awiki/dsh-plugin#awiki/listConversations',
@@ -1591,7 +1744,7 @@ export const TYPERT = {
1591
1744
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1592
1745
  schema: _awiki_dsh_plugin_awiki_listConversations_result$schema,
1593
1746
  },
1594
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":166,"column":3},
1747
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":202,"column":3},
1595
1748
  },
1596
1749
  {
1597
1750
  id: '@awiki/dsh-plugin#awiki/listGroupMembers',
@@ -1616,7 +1769,7 @@ export const TYPERT = {
1616
1769
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1617
1770
  schema: _awiki_dsh_plugin_awiki_listGroupMembers_result$schema,
1618
1771
  },
1619
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":146,"column":3},
1772
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":185,"column":3},
1620
1773
  },
1621
1774
  {
1622
1775
  id: '@awiki/dsh-plugin#awiki/listMailInbox',
@@ -1642,7 +1795,7 @@ export const TYPERT = {
1642
1795
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1643
1796
  schema: _awiki_dsh_plugin_awiki_listMailInbox_result$schema,
1644
1797
  },
1645
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":195,"column":9},
1798
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":231,"column":9},
1646
1799
  },
1647
1800
  {
1648
1801
  id: '@awiki/dsh-plugin#awiki/login',
@@ -1657,7 +1810,7 @@ export const TYPERT = {
1657
1810
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1658
1811
  schema: _awiki_dsh_plugin_awiki_login_result$schema,
1659
1812
  },
1660
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":90,"column":3},
1813
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":97,"column":3},
1661
1814
  },
1662
1815
  {
1663
1816
  id: '@awiki/dsh-plugin#awiki/logout',
@@ -1682,7 +1835,7 @@ export const TYPERT = {
1682
1835
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1683
1836
  schema: _awiki_dsh_plugin_awiki_logout_result$schema,
1684
1837
  },
1685
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":87,"column":3},
1838
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":94,"column":3},
1686
1839
  },
1687
1840
  {
1688
1841
  id: '@awiki/dsh-plugin#awiki/markConversationRead',
@@ -1707,7 +1860,7 @@ export const TYPERT = {
1707
1860
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1708
1861
  schema: _awiki_dsh_plugin_awiki_markConversationRead_result$schema,
1709
1862
  },
1710
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":180,"column":3},
1863
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":216,"column":3},
1711
1864
  },
1712
1865
  {
1713
1866
  id: '@awiki/dsh-plugin#awiki/markMailRead',
@@ -1732,7 +1885,7 @@ export const TYPERT = {
1732
1885
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1733
1886
  schema: _awiki_dsh_plugin_awiki_markMailRead_result$schema,
1734
1887
  },
1735
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":201,"column":3},
1888
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":237,"column":3},
1736
1889
  },
1737
1890
  {
1738
1891
  id: '@awiki/dsh-plugin#awiki/prepareRecovery',
@@ -1757,7 +1910,7 @@ export const TYPERT = {
1757
1910
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1758
1911
  schema: _awiki_dsh_plugin_awiki_prepareRecovery_result$schema,
1759
1912
  },
1760
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":116,"column":3},
1913
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":155,"column":3},
1761
1914
  },
1762
1915
  {
1763
1916
  id: '@awiki/dsh-plugin#awiki/readMail',
@@ -1782,7 +1935,22 @@ export const TYPERT = {
1782
1935
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1783
1936
  schema: _awiki_dsh_plugin_awiki_readMail_result$schema,
1784
1937
  },
1785
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":198,"column":9},
1938
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":234,"column":9},
1939
+ },
1940
+ {
1941
+ id: '@awiki/dsh-plugin#awiki/refreshDeviceManagement',
1942
+ service: 'awiki',
1943
+ namespace: 'awiki',
1944
+ method: 'refreshDeviceManagement',
1945
+ invocation: { kind: 'direct' },
1946
+ parameters: [
1947
+ ],
1948
+ result: {
1949
+ mode: 'strict',
1950
+ typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1951
+ schema: _awiki_dsh_plugin_awiki_refreshDeviceManagement_result$schema,
1952
+ },
1953
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":120,"column":3},
1786
1954
  },
1787
1955
  {
1788
1956
  id: '@awiki/dsh-plugin#awiki/registerIdentity',
@@ -1807,7 +1975,32 @@ export const TYPERT = {
1807
1975
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1808
1976
  schema: _awiki_dsh_plugin_awiki_registerIdentity_result$schema,
1809
1977
  },
1810
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":101,"column":9},
1978
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":108,"column":9},
1979
+ },
1980
+ {
1981
+ id: '@awiki/dsh-plugin#awiki/rejectDeviceJoin',
1982
+ service: 'awiki',
1983
+ namespace: 'awiki',
1984
+ method: 'rejectDeviceJoin',
1985
+ invocation: { kind: 'direct' },
1986
+ parameters: [
1987
+ {
1988
+ name: 'request',
1989
+ wire: 'request',
1990
+ source: 'json',
1991
+ codec: {
1992
+ mode: 'strict',
1993
+ typeSymbol: '@awiki/dsh-plugin/types#AwikiRejectDeviceJoinRequest',
1994
+ schema: _awiki_dsh_plugin_awiki_rejectDeviceJoin_parameter_0$schema,
1995
+ },
1996
+ },
1997
+ ],
1998
+ result: {
1999
+ mode: 'strict',
2000
+ typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
2001
+ schema: _awiki_dsh_plugin_awiki_rejectDeviceJoin_result$schema,
2002
+ },
2003
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":133,"column":9},
1811
2004
  },
1812
2005
  {
1813
2006
  id: '@awiki/dsh-plugin#awiki/removeGroupMember',
@@ -1832,7 +2025,7 @@ export const TYPERT = {
1832
2025
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1833
2026
  schema: _awiki_dsh_plugin_awiki_removeGroupMember_result$schema,
1834
2027
  },
1835
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":152,"column":3},
2028
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":191,"column":3},
1836
2029
  },
1837
2030
  {
1838
2031
  id: '@awiki/dsh-plugin#awiki/resolvePeer',
@@ -1857,28 +2050,38 @@ export const TYPERT = {
1857
2050
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1858
2051
  schema: _awiki_dsh_plugin_awiki_resolvePeer_result$schema,
1859
2052
  },
1860
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":131,"column":3},
2053
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":170,"column":3},
1861
2054
  },
1862
2055
  {
1863
- id: '@awiki/dsh-plugin#awiki/resumeGroupRebindRecovery',
2056
+ id: '@awiki/dsh-plugin#awiki/resumeRecovery',
1864
2057
  service: 'awiki',
1865
2058
  namespace: 'awiki',
1866
- method: 'resumeGroupRebindRecovery',
2059
+ method: 'resumeRecovery',
1867
2060
  invocation: { kind: 'direct' },
1868
2061
  parameters: [
2062
+ {
2063
+ name: 'request',
2064
+ wire: 'request',
2065
+ source: 'json',
2066
+ codec: {
2067
+ mode: 'strict',
2068
+ typeSymbol: '@awiki/dsh-plugin/types#AwikiRecoveryOperationRequest',
2069
+ schema: _awiki_dsh_plugin_awiki_resumeRecovery_parameter_0$schema,
2070
+ },
2071
+ },
1869
2072
  ],
1870
2073
  result: {
1871
2074
  mode: 'strict',
1872
2075
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1873
- schema: _awiki_dsh_plugin_awiki_resumeGroupRebindRecovery_result$schema,
2076
+ schema: _awiki_dsh_plugin_awiki_resumeRecovery_result$schema,
1874
2077
  },
1875
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":155,"column":9},
2078
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":164,"column":9},
1876
2079
  },
1877
2080
  {
1878
- id: '@awiki/dsh-plugin#awiki/resumeRecovery',
2081
+ id: '@awiki/dsh-plugin#awiki/revokeDevice',
1879
2082
  service: 'awiki',
1880
2083
  namespace: 'awiki',
1881
- method: 'resumeRecovery',
2084
+ method: 'revokeDevice',
1882
2085
  invocation: { kind: 'direct' },
1883
2086
  parameters: [
1884
2087
  {
@@ -1887,17 +2090,17 @@ export const TYPERT = {
1887
2090
  source: 'json',
1888
2091
  codec: {
1889
2092
  mode: 'strict',
1890
- typeSymbol: '@awiki/dsh-plugin/types#AwikiRecoveryOperationRequest',
1891
- schema: _awiki_dsh_plugin_awiki_resumeRecovery_parameter_0$schema,
2093
+ typeSymbol: '@awiki/dsh-plugin/types#AwikiRevokeDeviceRequest',
2094
+ schema: _awiki_dsh_plugin_awiki_revokeDevice_parameter_0$schema,
1892
2095
  },
1893
2096
  },
1894
2097
  ],
1895
2098
  result: {
1896
2099
  mode: 'strict',
1897
2100
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1898
- schema: _awiki_dsh_plugin_awiki_resumeRecovery_result$schema,
2101
+ schema: _awiki_dsh_plugin_awiki_revokeDevice_result$schema,
1899
2102
  },
1900
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":125,"column":9},
2103
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":138,"column":9},
1901
2104
  },
1902
2105
  {
1903
2106
  id: '@awiki/dsh-plugin#awiki/sendAttachment',
@@ -1922,7 +2125,7 @@ export const TYPERT = {
1922
2125
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1923
2126
  schema: _awiki_dsh_plugin_awiki_sendAttachment_result$schema,
1924
2127
  },
1925
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":186,"column":9},
2128
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":222,"column":9},
1926
2129
  },
1927
2130
  {
1928
2131
  id: '@awiki/dsh-plugin#awiki/sendMail',
@@ -1947,7 +2150,7 @@ export const TYPERT = {
1947
2150
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1948
2151
  schema: _awiki_dsh_plugin_awiki_sendMail_result$schema,
1949
2152
  },
1950
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":204,"column":9},
2153
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":240,"column":9},
1951
2154
  },
1952
2155
  {
1953
2156
  id: '@awiki/dsh-plugin#awiki/sendRecoveryOtp',
@@ -1972,7 +2175,7 @@ export const TYPERT = {
1972
2175
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1973
2176
  schema: _awiki_dsh_plugin_awiki_sendRecoveryOtp_result$schema,
1974
2177
  },
1975
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":113,"column":3},
2178
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":152,"column":3},
1976
2179
  },
1977
2180
  {
1978
2181
  id: '@awiki/dsh-plugin#awiki/sendRegistrationOtp',
@@ -1997,7 +2200,7 @@ export const TYPERT = {
1997
2200
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1998
2201
  schema: _awiki_dsh_plugin_awiki_sendRegistrationOtp_result$schema,
1999
2202
  },
2000
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":98,"column":3},
2203
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":105,"column":9},
2001
2204
  },
2002
2205
  {
2003
2206
  id: '@awiki/dsh-plugin#awiki/sendText',
@@ -2022,7 +2225,32 @@ export const TYPERT = {
2022
2225
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
2023
2226
  schema: _awiki_dsh_plugin_awiki_sendText_result$schema,
2024
2227
  },
2025
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":183,"column":3},
2228
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":219,"column":3},
2229
+ },
2230
+ {
2231
+ id: '@awiki/dsh-plugin#awiki/startDeviceJoinVerification',
2232
+ service: 'awiki',
2233
+ namespace: 'awiki',
2234
+ method: 'startDeviceJoinVerification',
2235
+ invocation: { kind: 'direct' },
2236
+ parameters: [
2237
+ {
2238
+ name: 'request',
2239
+ wire: 'request',
2240
+ source: 'json',
2241
+ codec: {
2242
+ mode: 'strict',
2243
+ typeSymbol: '@awiki/dsh-plugin/types#AwikiRequestRefInput',
2244
+ schema: _awiki_dsh_plugin_awiki_startDeviceJoinVerification_parameter_0$schema,
2245
+ },
2246
+ },
2247
+ ],
2248
+ result: {
2249
+ mode: 'strict',
2250
+ typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
2251
+ schema: _awiki_dsh_plugin_awiki_startDeviceJoinVerification_result$schema,
2252
+ },
2253
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":123,"column":9},
2026
2254
  },
2027
2255
  {
2028
2256
  id: '@awiki/dsh-plugin#awiki/summarizeConversation',
@@ -2047,7 +2275,7 @@ export const TYPERT = {
2047
2275
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
2048
2276
  schema: _awiki_dsh_plugin_awiki_summarizeConversation_result$schema,
2049
2277
  },
2050
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":175,"column":9},
2278
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":211,"column":9},
2051
2279
  },
2052
2280
  {
2053
2281
  id: '@awiki/dsh-plugin#awiki/updateConversationPreference',
@@ -2072,7 +2300,7 @@ export const TYPERT = {
2072
2300
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
2073
2301
  schema: _awiki_dsh_plugin_awiki_updateConversationPreference_result$schema,
2074
2302
  },
2075
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":161,"column":3},
2303
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":197,"column":3},
2076
2304
  },
2077
2305
  {
2078
2306
  id: '@awiki/dsh-plugin#awiki/updateDisplayName',
@@ -2097,7 +2325,7 @@ export const TYPERT = {
2097
2325
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
2098
2326
  schema: _awiki_dsh_plugin_awiki_updateDisplayName_result$schema,
2099
2327
  },
2100
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":104,"column":9},
2328
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":143,"column":9},
2101
2329
  },
2102
2330
  {
2103
2331
  id: '@awiki/dsh-plugin#awiki/updateProfile',
@@ -2122,7 +2350,7 @@ export const TYPERT = {
2122
2350
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
2123
2351
  schema: _awiki_dsh_plugin_awiki_updateProfile_result$schema,
2124
2352
  },
2125
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":110,"column":3},
2353
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":149,"column":3},
2126
2354
  },
2127
2355
  ],
2128
2356
  model: {