@awiki/dsh-plugin 0.3.5 → 0.3.7-dsh-test.20260831.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/README.md +45 -32
  2. package/README.zh.md +33 -28
  3. package/THIRD_PARTY_NOTICES.md +1 -1
  4. package/cordis.patch.yml +3 -1
  5. package/lib/client.js +1348 -637
  6. package/lib/client.js.map +1 -1
  7. package/lib/index.js +989 -393
  8. package/lib/provider.js +57 -16
  9. package/lib/{sdk-adapter-CDLTgHJA.mjs → sdk-adapter-FGaOi8It.mjs} +167 -50
  10. package/lib/typert.host.js +411 -128
  11. package/lib/typert.remote-client.d.ts +19 -5
  12. package/lib/typert.remote-client.d.ts.map +1 -1
  13. package/lib/typert.remote-client.js +411 -128
  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/AwikiOverlay.d.ts.map +1 -1
  23. package/lib/types/client/AwikiOverlay.js +5 -12
  24. package/lib/types/client/AwikiOverlay.js.map +1 -1
  25. package/lib/types/client/AwikiRecoveryForm.d.ts.map +1 -1
  26. package/lib/types/client/AwikiRecoveryForm.js +1 -1
  27. package/lib/types/client/AwikiRecoveryForm.js.map +1 -1
  28. package/lib/types/client/controller.d.ts +20 -28
  29. package/lib/types/client/controller.d.ts.map +1 -1
  30. package/lib/types/client/controller.js +41 -162
  31. package/lib/types/client/controller.js.map +1 -1
  32. package/lib/types/client/index.d.ts.map +1 -1
  33. package/lib/types/client/index.js +8 -2
  34. package/lib/types/client/index.js.map +1 -1
  35. package/lib/types/client/slots.d.ts +10 -6
  36. package/lib/types/client/slots.d.ts.map +1 -1
  37. package/lib/types/conversation-preferences.d.ts.map +1 -1
  38. package/lib/types/conversation-preferences.js +0 -17
  39. package/lib/types/conversation-preferences.js.map +1 -1
  40. package/lib/types/index.d.ts +54 -13
  41. package/lib/types/index.d.ts.map +1 -1
  42. package/lib/types/index.js +739 -221
  43. package/lib/types/index.js.map +1 -1
  44. package/lib/types/listener-state.d.ts +5 -3
  45. package/lib/types/listener-state.d.ts.map +1 -1
  46. package/lib/types/listener-state.js +28 -13
  47. package/lib/types/listener-state.js.map +1 -1
  48. package/lib/types/listener.d.ts +9 -32
  49. package/lib/types/listener.d.ts.map +1 -1
  50. package/lib/types/listener.js +11 -127
  51. package/lib/types/listener.js.map +1 -1
  52. package/lib/types/provider-api.d.ts +99 -7
  53. package/lib/types/provider-api.d.ts.map +1 -1
  54. package/lib/types/provider.d.ts +7 -1
  55. package/lib/types/provider.d.ts.map +1 -1
  56. package/lib/types/provider.js +58 -15
  57. package/lib/types/provider.js.map +1 -1
  58. package/lib/types/realtime-supervisor.d.ts +54 -0
  59. package/lib/types/realtime-supervisor.d.ts.map +1 -0
  60. package/lib/types/realtime-supervisor.js +242 -0
  61. package/lib/types/realtime-supervisor.js.map +1 -0
  62. package/lib/types/sdk-adapter.d.ts +31 -5
  63. package/lib/types/sdk-adapter.d.ts.map +1 -1
  64. package/lib/types/sdk-adapter.js +162 -59
  65. package/lib/types/sdk-adapter.js.map +1 -1
  66. package/lib/types/types.d.ts +76 -27
  67. package/lib/types/types.d.ts.map +1 -1
  68. package/lib/types/types.js.map +1 -1
  69. package/package.json +5 -2
  70. package/lib/types/profile-state.d.ts +0 -11
  71. package/lib/types/profile-state.d.ts.map +0 -1
  72. package/lib/types/profile-state.js +0 -48
  73. 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({
@@ -135,7 +180,7 @@ const _awiki_dsh_plugin_awiki_downloadAttachment_result$schema = z.union([z.obje
135
180
  const _awiki_dsh_plugin_awiki_getConfig_result$schema = z.union([z.object({
136
181
  'ok': z.literal(false).readonly(),
137
182
  'error': z.object({
138
- '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(),
139
184
  'message': z.string().readonly(),
140
185
  }).readonly(),
141
186
  }), z.object({
@@ -143,14 +188,13 @@ const _awiki_dsh_plugin_awiki_getConfig_result$schema = z.union([z.object({
143
188
  'value': z.object({
144
189
  'pollIntervalMs': z.number().readonly(),
145
190
  'attachmentMaxBytes': z.number().readonly(),
146
- 'profileName': z.string().readonly().optional(),
147
- 'legacySharedStateDetected': z.boolean().readonly().optional(),
191
+ 'handleRecoveryPhoneEnabled': z.boolean().readonly(),
148
192
  }).readonly(),
149
193
  })])
150
194
  const _awiki_dsh_plugin_awiki_getConversationPreferences_result$schema = z.union([z.object({
151
195
  'ok': z.literal(false).readonly(),
152
196
  'error': z.object({
153
- '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(),
154
198
  'message': z.string().readonly(),
155
199
  }).readonly(),
156
200
  }), z.object({
@@ -178,16 +222,30 @@ const _awiki_dsh_plugin_awiki_getConversationPreferences_result$schema = z.union
178
222
  })]).readonly(),
179
223
  'hiddenAt': z.number().readonly(),
180
224
  })).readonly(),
181
- 'dismissedGroupRecoverySignature': z.string().readonly().optional(),
182
225
  }).readonly(),
183
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
+ })])
184
242
  const _awiki_dsh_plugin_awiki_getGroup_parameter_0$schema = z.object({
185
243
  'groupDid': z.intersection(z.string(), z.unknown()).readonly(),
186
244
  })
187
245
  const _awiki_dsh_plugin_awiki_getGroup_result$schema = z.union([z.object({
188
246
  'ok': z.literal(false).readonly(),
189
247
  'error': z.object({
190
- '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(),
191
249
  'message': z.string().readonly(),
192
250
  }).readonly(),
193
251
  }), z.object({
@@ -210,7 +268,7 @@ const _awiki_dsh_plugin_awiki_getHistory_parameter_0$schema = z.object({
210
268
  const _awiki_dsh_plugin_awiki_getHistory_result$schema = z.union([z.object({
211
269
  'ok': z.literal(false).readonly(),
212
270
  'error': z.object({
213
- '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(),
214
272
  'message': z.string().readonly(),
215
273
  }).readonly(),
216
274
  }), z.object({
@@ -254,7 +312,7 @@ const _awiki_dsh_plugin_awiki_getHistory_result$schema = z.union([z.object({
254
312
  const _awiki_dsh_plugin_awiki_getIdentity_result$schema = z.union([z.object({
255
313
  'ok': z.literal(false).readonly(),
256
314
  'error': z.object({
257
- '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(),
258
316
  'message': z.string().readonly(),
259
317
  }).readonly(),
260
318
  }), z.object({
@@ -274,7 +332,7 @@ const _awiki_dsh_plugin_awiki_getLocalHistory_parameter_0$schema = z.object({
274
332
  const _awiki_dsh_plugin_awiki_getLocalHistory_result$schema = z.union([z.object({
275
333
  'ok': z.literal(false).readonly(),
276
334
  'error': z.object({
277
- '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(),
278
336
  'message': z.string().readonly(),
279
337
  }).readonly(),
280
338
  }), z.object({
@@ -318,7 +376,7 @@ const _awiki_dsh_plugin_awiki_getLocalHistory_result$schema = z.union([z.object(
318
376
  const _awiki_dsh_plugin_awiki_getMailAccount_result$schema = z.union([z.object({
319
377
  'ok': z.literal(false).readonly(),
320
378
  'error': z.object({
321
- '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(),
322
380
  'message': z.string().readonly(),
323
381
  }).readonly(),
324
382
  }), z.object({
@@ -332,7 +390,7 @@ const _awiki_dsh_plugin_awiki_getMailAccount_result$schema = z.union([z.object({
332
390
  const _awiki_dsh_plugin_awiki_getProfile_result$schema = z.union([z.object({
333
391
  'ok': z.literal(false).readonly(),
334
392
  'error': z.object({
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("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(),
336
394
  'message': z.string().readonly(),
337
395
  }).readonly(),
338
396
  }), z.object({
@@ -352,7 +410,7 @@ const _awiki_dsh_plugin_awiki_getRecoveryStatus_parameter_0$schema = z.object({
352
410
  const _awiki_dsh_plugin_awiki_getRecoveryStatus_result$schema = z.union([z.object({
353
411
  'ok': z.literal(false).readonly(),
354
412
  'error': z.object({
355
- '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(),
356
414
  'message': z.string().readonly(),
357
415
  }).readonly(),
358
416
  }), z.object({
@@ -367,14 +425,12 @@ const _awiki_dsh_plugin_awiki_getRecoveryStatus_result$schema = z.union([z.objec
367
425
  'retryable': z.boolean().readonly(),
368
426
  'localOrdinaryDataWillMigrate': z.boolean().readonly(),
369
427
  'otherDevicesMustRejoin': z.boolean().readonly(),
370
- 'unsupportedE2eeGroupCount': z.number().readonly(),
371
- 'unsupportedDidOnlyGroupCount': z.number().readonly(),
372
428
  }).readonly(),
373
429
  })])
374
430
  const _awiki_dsh_plugin_awiki_getSession_result$schema = z.union([z.object({
375
431
  'ok': z.literal(false).readonly(),
376
432
  'error': z.object({
377
- '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(),
378
434
  'message': z.string().readonly(),
379
435
  }).readonly(),
380
436
  }), z.object({
@@ -399,7 +455,7 @@ const _awiki_dsh_plugin_awiki_inspectIdentityAccess_parameter_0$schema = z.objec
399
455
  const _awiki_dsh_plugin_awiki_inspectIdentityAccess_result$schema = z.union([z.object({
400
456
  'ok': z.literal(false).readonly(),
401
457
  'error': z.object({
402
- '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(),
403
459
  'message': z.string().readonly(),
404
460
  }).readonly(),
405
461
  }), z.object({
@@ -415,7 +471,7 @@ const _awiki_dsh_plugin_awiki_joinGroup_parameter_0$schema = z.object({
415
471
  const _awiki_dsh_plugin_awiki_joinGroup_result$schema = z.union([z.object({
416
472
  'ok': z.literal(false).readonly(),
417
473
  'error': z.object({
418
- '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(),
419
475
  'message': z.string().readonly(),
420
476
  }).readonly(),
421
477
  }), z.object({
@@ -436,7 +492,7 @@ const _awiki_dsh_plugin_awiki_leaveGroup_parameter_0$schema = z.object({
436
492
  const _awiki_dsh_plugin_awiki_leaveGroup_result$schema = z.union([z.object({
437
493
  'ok': z.literal(false).readonly(),
438
494
  'error': z.object({
439
- '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(),
440
496
  'message': z.string().readonly(),
441
497
  }).readonly(),
442
498
  }), z.object({
@@ -452,7 +508,7 @@ const _awiki_dsh_plugin_awiki_listConversations_parameter_0$schema = z.union([z.
452
508
  const _awiki_dsh_plugin_awiki_listConversations_result$schema = z.union([z.object({
453
509
  'ok': z.literal(false).readonly(),
454
510
  'error': z.object({
455
- '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(),
456
512
  'message': z.string().readonly(),
457
513
  }).readonly(),
458
514
  }), z.object({
@@ -489,7 +545,7 @@ const _awiki_dsh_plugin_awiki_listGroupMembers_parameter_0$schema = z.object({
489
545
  const _awiki_dsh_plugin_awiki_listGroupMembers_result$schema = z.union([z.object({
490
546
  'ok': z.literal(false).readonly(),
491
547
  'error': z.object({
492
- '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(),
493
549
  'message': z.string().readonly(),
494
550
  }).readonly(),
495
551
  }), z.object({
@@ -524,7 +580,7 @@ const _awiki_dsh_plugin_awiki_listMailInbox_parameter_0$schema = z.union([z.unde
524
580
  const _awiki_dsh_plugin_awiki_listMailInbox_result$schema = z.union([z.object({
525
581
  'ok': z.literal(false).readonly(),
526
582
  'error': z.object({
527
- '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(),
528
584
  'message': z.string().readonly(),
529
585
  }).readonly(),
530
586
  }), z.object({
@@ -553,7 +609,7 @@ const _awiki_dsh_plugin_awiki_listMailInbox_result$schema = z.union([z.object({
553
609
  const _awiki_dsh_plugin_awiki_login_result$schema = z.union([z.object({
554
610
  'ok': z.literal(false).readonly(),
555
611
  'error': z.object({
556
- '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(),
557
613
  'message': z.string().readonly(),
558
614
  }).readonly(),
559
615
  }), z.object({
@@ -578,7 +634,7 @@ const _awiki_dsh_plugin_awiki_logout_parameter_0$schema = z.object({
578
634
  const _awiki_dsh_plugin_awiki_logout_result$schema = z.union([z.object({
579
635
  'ok': z.literal(false).readonly(),
580
636
  'error': z.object({
581
- '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(),
582
638
  'message': z.string().readonly(),
583
639
  }).readonly(),
584
640
  }), z.object({
@@ -603,7 +659,7 @@ const _awiki_dsh_plugin_awiki_markConversationRead_parameter_0$schema = z.object
603
659
  const _awiki_dsh_plugin_awiki_markConversationRead_result$schema = z.union([z.object({
604
660
  'ok': z.literal(false).readonly(),
605
661
  'error': z.object({
606
- '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(),
607
663
  'message': z.string().readonly(),
608
664
  }).readonly(),
609
665
  }), z.object({
@@ -616,7 +672,7 @@ const _awiki_dsh_plugin_awiki_markMailRead_parameter_0$schema = z.object({
616
672
  const _awiki_dsh_plugin_awiki_markMailRead_result$schema = z.union([z.object({
617
673
  'ok': z.literal(false).readonly(),
618
674
  'error': z.object({
619
- '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(),
620
676
  'message': z.string().readonly(),
621
677
  }).readonly(),
622
678
  }), z.object({
@@ -633,7 +689,7 @@ const _awiki_dsh_plugin_awiki_prepareRecovery_parameter_0$schema = z.object({
633
689
  const _awiki_dsh_plugin_awiki_prepareRecovery_result$schema = z.union([z.object({
634
690
  'ok': z.literal(false).readonly(),
635
691
  'error': z.object({
636
- '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(),
637
693
  'message': z.string().readonly(),
638
694
  }).readonly(),
639
695
  }), z.object({
@@ -648,8 +704,6 @@ const _awiki_dsh_plugin_awiki_prepareRecovery_result$schema = z.union([z.object(
648
704
  'retryable': z.boolean().readonly(),
649
705
  'localOrdinaryDataWillMigrate': z.boolean().readonly(),
650
706
  'otherDevicesMustRejoin': z.boolean().readonly(),
651
- 'unsupportedE2eeGroupCount': z.number().readonly(),
652
- 'unsupportedDidOnlyGroupCount': z.number().readonly(),
653
707
  }).readonly(),
654
708
  })])
655
709
  const _awiki_dsh_plugin_awiki_readMail_parameter_0$schema = z.object({
@@ -658,7 +712,7 @@ const _awiki_dsh_plugin_awiki_readMail_parameter_0$schema = z.object({
658
712
  const _awiki_dsh_plugin_awiki_readMail_result$schema = z.union([z.object({
659
713
  'ok': z.literal(false).readonly(),
660
714
  'error': z.object({
661
- '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(),
662
716
  'message': z.string().readonly(),
663
717
  }).readonly(),
664
718
  }), z.object({
@@ -691,6 +745,36 @@ const _awiki_dsh_plugin_awiki_readMail_result$schema = z.union([z.object({
691
745
  })).readonly(),
692
746
  }).readonly(),
693
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
+ })])
694
778
  const _awiki_dsh_plugin_awiki_registerIdentity_parameter_0$schema = z.object({
695
779
  'handle': z.string().readonly(),
696
780
  'phone': z.string().readonly(),
@@ -699,17 +783,44 @@ const _awiki_dsh_plugin_awiki_registerIdentity_parameter_0$schema = z.object({
699
783
  const _awiki_dsh_plugin_awiki_registerIdentity_result$schema = z.union([z.object({
700
784
  'ok': z.literal(false).readonly(),
701
785
  'error': z.object({
702
- '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(),
703
787
  'message': z.string().readonly(),
704
788
  }).readonly(),
705
789
  }), z.object({
706
790
  'ok': z.literal(true).readonly(),
707
- 'value': z.object({
791
+ 'value': z.union([z.object({
792
+ 'status': z.literal("registered").readonly(),
793
+ 'identity': z.object({
708
794
  'handle': z.intersection(z.string(), z.unknown()).readonly(),
709
795
  'did': z.intersection(z.string(), z.unknown()).readonly(),
710
796
  'displayName': z.string().readonly().optional(),
711
797
  'registeredAt': z.number().readonly(),
712
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(),
713
824
  })])
714
825
  const _awiki_dsh_plugin_awiki_removeGroupMember_parameter_0$schema = z.object({
715
826
  'member': z.string().readonly(),
@@ -718,7 +829,7 @@ const _awiki_dsh_plugin_awiki_removeGroupMember_parameter_0$schema = z.object({
718
829
  const _awiki_dsh_plugin_awiki_removeGroupMember_result$schema = z.union([z.object({
719
830
  'ok': z.literal(false).readonly(),
720
831
  'error': z.object({
721
- '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(),
722
833
  'message': z.string().readonly(),
723
834
  }).readonly(),
724
835
  }), z.object({
@@ -734,7 +845,7 @@ const _awiki_dsh_plugin_awiki_resolvePeer_parameter_0$schema = z.object({
734
845
  const _awiki_dsh_plugin_awiki_resolvePeer_result$schema = z.union([z.object({
735
846
  'ok': z.literal(false).readonly(),
736
847
  'error': z.object({
737
- '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(),
738
849
  'message': z.string().readonly(),
739
850
  }).readonly(),
740
851
  }), z.object({
@@ -746,32 +857,13 @@ const _awiki_dsh_plugin_awiki_resolvePeer_result$schema = z.union([z.object({
746
857
  'conversationId': z.intersection(z.string(), z.unknown()).readonly(),
747
858
  }).readonly(),
748
859
  })])
749
- const _awiki_dsh_plugin_awiki_resumeGroupRebindRecovery_result$schema = z.union([z.object({
750
- 'ok': z.literal(false).readonly(),
751
- 'error': z.object({
752
- '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(),
753
- 'message': z.string().readonly(),
754
- }).readonly(),
755
- }), z.object({
756
- 'ok': z.literal(true).readonly(),
757
- 'value': z.object({
758
- 'processed': z.number().readonly(),
759
- 'completed': z.number().readonly(),
760
- 'pending': z.number().readonly(),
761
- 'blocked': z.number().readonly(),
762
- 'items': z.array(z.object({
763
- 'groupDid': z.intersection(z.string(), z.unknown()).readonly(),
764
- 'status': z.union([z.literal("pending"), z.literal("blocked")]).readonly(),
765
- })).readonly(),
766
- }).readonly(),
767
- })])
768
860
  const _awiki_dsh_plugin_awiki_resumeRecovery_parameter_0$schema = z.object({
769
861
  'operationId': z.string().readonly(),
770
862
  })
771
863
  const _awiki_dsh_plugin_awiki_resumeRecovery_result$schema = z.union([z.object({
772
864
  'ok': z.literal(false).readonly(),
773
865
  'error': z.object({
774
- '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(),
775
867
  'message': z.string().readonly(),
776
868
  }).readonly(),
777
869
  }), z.object({
@@ -786,8 +878,40 @@ const _awiki_dsh_plugin_awiki_resumeRecovery_result$schema = z.union([z.object({
786
878
  'retryable': z.boolean().readonly(),
787
879
  'localOrdinaryDataWillMigrate': z.boolean().readonly(),
788
880
  'otherDevicesMustRejoin': z.boolean().readonly(),
789
- 'unsupportedE2eeGroupCount': z.number().readonly(),
790
- '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(),
791
915
  }).readonly(),
792
916
  })])
793
917
  const _awiki_dsh_plugin_awiki_sendAttachment_parameter_0$schema = z.object({
@@ -807,7 +931,7 @@ const _awiki_dsh_plugin_awiki_sendAttachment_parameter_0$schema = z.object({
807
931
  const _awiki_dsh_plugin_awiki_sendAttachment_result$schema = z.union([z.object({
808
932
  'ok': z.literal(false).readonly(),
809
933
  'error': z.object({
810
- '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(),
811
935
  'message': z.string().readonly(),
812
936
  }).readonly(),
813
937
  }), z.object({
@@ -853,7 +977,7 @@ const _awiki_dsh_plugin_awiki_sendMail_parameter_0$schema = z.object({
853
977
  const _awiki_dsh_plugin_awiki_sendMail_result$schema = z.union([z.object({
854
978
  'ok': z.literal(false).readonly(),
855
979
  'error': z.object({
856
- '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(),
857
981
  'message': z.string().readonly(),
858
982
  }).readonly(),
859
983
  }), z.object({
@@ -871,7 +995,7 @@ const _awiki_dsh_plugin_awiki_sendRecoveryOtp_parameter_0$schema = z.object({
871
995
  const _awiki_dsh_plugin_awiki_sendRecoveryOtp_result$schema = z.union([z.object({
872
996
  'ok': z.literal(false).readonly(),
873
997
  'error': z.object({
874
- '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(),
875
999
  'message': z.string().readonly(),
876
1000
  }).readonly(),
877
1001
  }), z.object({
@@ -890,7 +1014,7 @@ const _awiki_dsh_plugin_awiki_sendRegistrationOtp_parameter_0$schema = z.object(
890
1014
  const _awiki_dsh_plugin_awiki_sendRegistrationOtp_result$schema = z.union([z.object({
891
1015
  'ok': z.literal(false).readonly(),
892
1016
  'error': z.object({
893
- '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(),
894
1018
  'message': z.string().readonly(),
895
1019
  }).readonly(),
896
1020
  }), z.object({
@@ -921,7 +1045,7 @@ const _awiki_dsh_plugin_awiki_sendText_parameter_0$schema = z.object({
921
1045
  const _awiki_dsh_plugin_awiki_sendText_result$schema = z.union([z.object({
922
1046
  'ok': z.literal(false).readonly(),
923
1047
  'error': z.object({
924
- '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(),
925
1049
  'message': z.string().readonly(),
926
1050
  }).readonly(),
927
1051
  }), z.object({
@@ -958,6 +1082,24 @@ const _awiki_dsh_plugin_awiki_sendText_result$schema = z.union([z.object({
958
1082
  })]).readonly(),
959
1083
  }).readonly(),
960
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
+ })])
961
1103
  const _awiki_dsh_plugin_awiki_summarizeConversation_parameter_0$schema = z.object({
962
1104
  'conversationId': z.intersection(z.string(), z.unknown()).readonly(),
963
1105
  'unreadCountAtOpen': z.number().readonly().optional(),
@@ -965,7 +1107,7 @@ const _awiki_dsh_plugin_awiki_summarizeConversation_parameter_0$schema = z.objec
965
1107
  const _awiki_dsh_plugin_awiki_summarizeConversation_result$schema = z.union([z.object({
966
1108
  'ok': z.literal(false).readonly(),
967
1109
  'error': z.object({
968
- '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(),
969
1111
  'message': z.string().readonly(),
970
1112
  }).readonly(),
971
1113
  }), z.object({
@@ -1012,14 +1154,11 @@ const _awiki_dsh_plugin_awiki_updateConversationPreference_parameter_0$schema =
1012
1154
  }), z.object({
1013
1155
  'action': z.literal("restore").readonly(),
1014
1156
  'conversationId': z.intersection(z.string(), z.unknown()).readonly(),
1015
- }), z.object({
1016
- 'action': z.literal("dismiss-group-recovery").readonly(),
1017
- 'signature': z.string().readonly(),
1018
1157
  })])
1019
1158
  const _awiki_dsh_plugin_awiki_updateConversationPreference_result$schema = z.union([z.object({
1020
1159
  'ok': z.literal(false).readonly(),
1021
1160
  'error': z.object({
1022
- '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(),
1023
1162
  'message': z.string().readonly(),
1024
1163
  }).readonly(),
1025
1164
  }), z.object({
@@ -1047,7 +1186,6 @@ const _awiki_dsh_plugin_awiki_updateConversationPreference_result$schema = z.uni
1047
1186
  })]).readonly(),
1048
1187
  'hiddenAt': z.number().readonly(),
1049
1188
  })).readonly(),
1050
- 'dismissedGroupRecoverySignature': z.string().readonly().optional(),
1051
1189
  }).readonly(),
1052
1190
  })])
1053
1191
  const _awiki_dsh_plugin_awiki_updateDisplayName_parameter_0$schema = z.object({
@@ -1056,7 +1194,7 @@ const _awiki_dsh_plugin_awiki_updateDisplayName_parameter_0$schema = z.object({
1056
1194
  const _awiki_dsh_plugin_awiki_updateDisplayName_result$schema = z.union([z.object({
1057
1195
  'ok': z.literal(false).readonly(),
1058
1196
  'error': z.object({
1059
- '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(),
1060
1198
  'message': z.string().readonly(),
1061
1199
  }).readonly(),
1062
1200
  }), z.object({
@@ -1076,7 +1214,7 @@ const _awiki_dsh_plugin_awiki_updateProfile_parameter_0$schema = z.object({
1076
1214
  const _awiki_dsh_plugin_awiki_updateProfile_result$schema = z.union([z.object({
1077
1215
  'ok': z.literal(false).readonly(),
1078
1216
  'error': z.object({
1079
- '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(),
1080
1218
  'message': z.string().readonly(),
1081
1219
  }).readonly(),
1082
1220
  }), z.object({
@@ -1120,7 +1258,7 @@ export const TYPERT = {
1120
1258
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1121
1259
  schema: _awiki_dsh_plugin_awiki_activateRecovery_result$schema,
1122
1260
  },
1123
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":117,"column":9},
1261
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":158,"column":9},
1124
1262
  },
1125
1263
  {
1126
1264
  id: '@awiki/dsh-plugin#awiki/addGroupMember',
@@ -1145,7 +1283,62 @@ export const TYPERT = {
1145
1283
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1146
1284
  schema: _awiki_dsh_plugin_awiki_addGroupMember_result$schema,
1147
1285
  },
1148
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":147,"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},
1149
1342
  },
1150
1343
  {
1151
1344
  id: '@awiki/dsh-plugin#awiki/clearLocalData',
@@ -1170,7 +1363,7 @@ export const TYPERT = {
1170
1363
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1171
1364
  schema: _awiki_dsh_plugin_awiki_clearLocalData_result$schema,
1172
1365
  },
1173
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":205,"column":3},
1366
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":243,"column":3},
1174
1367
  },
1175
1368
  {
1176
1369
  id: '@awiki/dsh-plugin#awiki/createGroup',
@@ -1195,7 +1388,7 @@ export const TYPERT = {
1195
1388
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1196
1389
  schema: _awiki_dsh_plugin_awiki_createGroup_result$schema,
1197
1390
  },
1198
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":132,"column":9},
1391
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":173,"column":9},
1199
1392
  },
1200
1393
  {
1201
1394
  id: '@awiki/dsh-plugin#awiki/discardRecovery',
@@ -1220,7 +1413,7 @@ export const TYPERT = {
1220
1413
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1221
1414
  schema: _awiki_dsh_plugin_awiki_discardRecovery_result$schema,
1222
1415
  },
1223
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":126,"column":9},
1416
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":167,"column":9},
1224
1417
  },
1225
1418
  {
1226
1419
  id: '@awiki/dsh-plugin#awiki/downloadAttachment',
@@ -1245,7 +1438,7 @@ export const TYPERT = {
1245
1438
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1246
1439
  schema: _awiki_dsh_plugin_awiki_downloadAttachment_result$schema,
1247
1440
  },
1248
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":187,"column":9},
1441
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":225,"column":9},
1249
1442
  },
1250
1443
  {
1251
1444
  id: '@awiki/dsh-plugin#awiki/getConfig',
@@ -1260,7 +1453,7 @@ export const TYPERT = {
1260
1453
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1261
1454
  schema: _awiki_dsh_plugin_awiki_getConfig_result$schema,
1262
1455
  },
1263
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":76,"column":3},
1456
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":85,"column":9},
1264
1457
  },
1265
1458
  {
1266
1459
  id: '@awiki/dsh-plugin#awiki/getConversationPreferences',
@@ -1275,7 +1468,22 @@ export const TYPERT = {
1275
1468
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1276
1469
  schema: _awiki_dsh_plugin_awiki_getConversationPreferences_result$schema,
1277
1470
  },
1278
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":156,"column":3},
1471
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":194,"column":3},
1472
+ },
1473
+ {
1474
+ id: '@awiki/dsh-plugin#awiki/getDeviceJoinStatus',
1475
+ service: 'awiki',
1476
+ namespace: 'awiki',
1477
+ method: 'getDeviceJoinStatus',
1478
+ invocation: { kind: 'direct' },
1479
+ parameters: [
1480
+ ],
1481
+ result: {
1482
+ mode: 'strict',
1483
+ typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1484
+ schema: _awiki_dsh_plugin_awiki_getDeviceJoinStatus_result$schema,
1485
+ },
1486
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":114,"column":9},
1279
1487
  },
1280
1488
  {
1281
1489
  id: '@awiki/dsh-plugin#awiki/getGroup',
@@ -1300,7 +1508,7 @@ export const TYPERT = {
1300
1508
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1301
1509
  schema: _awiki_dsh_plugin_awiki_getGroup_result$schema,
1302
1510
  },
1303
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":135,"column":3},
1511
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":176,"column":3},
1304
1512
  },
1305
1513
  {
1306
1514
  id: '@awiki/dsh-plugin#awiki/getHistory',
@@ -1325,7 +1533,7 @@ export const TYPERT = {
1325
1533
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1326
1534
  schema: _awiki_dsh_plugin_awiki_getHistory_result$schema,
1327
1535
  },
1328
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":167,"column":3},
1536
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":205,"column":3},
1329
1537
  },
1330
1538
  {
1331
1539
  id: '@awiki/dsh-plugin#awiki/getIdentity',
@@ -1340,7 +1548,7 @@ export const TYPERT = {
1340
1548
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1341
1549
  schema: _awiki_dsh_plugin_awiki_getIdentity_result$schema,
1342
1550
  },
1343
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":79,"column":9},
1551
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":88,"column":9},
1344
1552
  },
1345
1553
  {
1346
1554
  id: '@awiki/dsh-plugin#awiki/getLocalHistory',
@@ -1365,7 +1573,7 @@ export const TYPERT = {
1365
1573
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1366
1574
  schema: _awiki_dsh_plugin_awiki_getLocalHistory_result$schema,
1367
1575
  },
1368
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":170,"column":3},
1576
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":208,"column":3},
1369
1577
  },
1370
1578
  {
1371
1579
  id: '@awiki/dsh-plugin#awiki/getMailAccount',
@@ -1380,7 +1588,7 @@ export const TYPERT = {
1380
1588
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1381
1589
  schema: _awiki_dsh_plugin_awiki_getMailAccount_result$schema,
1382
1590
  },
1383
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":190,"column":3},
1591
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":228,"column":3},
1384
1592
  },
1385
1593
  {
1386
1594
  id: '@awiki/dsh-plugin#awiki/getProfile',
@@ -1395,7 +1603,7 @@ export const TYPERT = {
1395
1603
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1396
1604
  schema: _awiki_dsh_plugin_awiki_getProfile_result$schema,
1397
1605
  },
1398
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":105,"column":3},
1606
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":146,"column":3},
1399
1607
  },
1400
1608
  {
1401
1609
  id: '@awiki/dsh-plugin#awiki/getRecoveryStatus',
@@ -1420,7 +1628,7 @@ export const TYPERT = {
1420
1628
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1421
1629
  schema: _awiki_dsh_plugin_awiki_getRecoveryStatus_result$schema,
1422
1630
  },
1423
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":120,"column":9},
1631
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":161,"column":9},
1424
1632
  },
1425
1633
  {
1426
1634
  id: '@awiki/dsh-plugin#awiki/getSession',
@@ -1435,7 +1643,7 @@ export const TYPERT = {
1435
1643
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1436
1644
  schema: _awiki_dsh_plugin_awiki_getSession_result$schema,
1437
1645
  },
1438
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":82,"column":9},
1646
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":91,"column":9},
1439
1647
  },
1440
1648
  {
1441
1649
  id: '@awiki/dsh-plugin#awiki/inspectIdentityAccess',
@@ -1460,7 +1668,7 @@ export const TYPERT = {
1460
1668
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1461
1669
  schema: _awiki_dsh_plugin_awiki_inspectIdentityAccess_result$schema,
1462
1670
  },
1463
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":91,"column":9},
1671
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":100,"column":9},
1464
1672
  },
1465
1673
  {
1466
1674
  id: '@awiki/dsh-plugin#awiki/joinGroup',
@@ -1485,7 +1693,7 @@ export const TYPERT = {
1485
1693
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1486
1694
  schema: _awiki_dsh_plugin_awiki_joinGroup_result$schema,
1487
1695
  },
1488
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":138,"column":3},
1696
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":179,"column":3},
1489
1697
  },
1490
1698
  {
1491
1699
  id: '@awiki/dsh-plugin#awiki/leaveGroup',
@@ -1510,7 +1718,7 @@ export const TYPERT = {
1510
1718
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1511
1719
  schema: _awiki_dsh_plugin_awiki_leaveGroup_result$schema,
1512
1720
  },
1513
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":141,"column":9},
1721
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":182,"column":9},
1514
1722
  },
1515
1723
  {
1516
1724
  id: '@awiki/dsh-plugin#awiki/listConversations',
@@ -1536,7 +1744,7 @@ export const TYPERT = {
1536
1744
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1537
1745
  schema: _awiki_dsh_plugin_awiki_listConversations_result$schema,
1538
1746
  },
1539
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":164,"column":3},
1747
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":202,"column":3},
1540
1748
  },
1541
1749
  {
1542
1750
  id: '@awiki/dsh-plugin#awiki/listGroupMembers',
@@ -1561,7 +1769,7 @@ export const TYPERT = {
1561
1769
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1562
1770
  schema: _awiki_dsh_plugin_awiki_listGroupMembers_result$schema,
1563
1771
  },
1564
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":144,"column":3},
1772
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":185,"column":3},
1565
1773
  },
1566
1774
  {
1567
1775
  id: '@awiki/dsh-plugin#awiki/listMailInbox',
@@ -1587,7 +1795,7 @@ export const TYPERT = {
1587
1795
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1588
1796
  schema: _awiki_dsh_plugin_awiki_listMailInbox_result$schema,
1589
1797
  },
1590
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":193,"column":9},
1798
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":231,"column":9},
1591
1799
  },
1592
1800
  {
1593
1801
  id: '@awiki/dsh-plugin#awiki/login',
@@ -1602,7 +1810,7 @@ export const TYPERT = {
1602
1810
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1603
1811
  schema: _awiki_dsh_plugin_awiki_login_result$schema,
1604
1812
  },
1605
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":88,"column":3},
1813
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":97,"column":3},
1606
1814
  },
1607
1815
  {
1608
1816
  id: '@awiki/dsh-plugin#awiki/logout',
@@ -1627,7 +1835,7 @@ export const TYPERT = {
1627
1835
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1628
1836
  schema: _awiki_dsh_plugin_awiki_logout_result$schema,
1629
1837
  },
1630
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":85,"column":3},
1838
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":94,"column":3},
1631
1839
  },
1632
1840
  {
1633
1841
  id: '@awiki/dsh-plugin#awiki/markConversationRead',
@@ -1652,7 +1860,7 @@ export const TYPERT = {
1652
1860
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1653
1861
  schema: _awiki_dsh_plugin_awiki_markConversationRead_result$schema,
1654
1862
  },
1655
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":178,"column":3},
1863
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":216,"column":3},
1656
1864
  },
1657
1865
  {
1658
1866
  id: '@awiki/dsh-plugin#awiki/markMailRead',
@@ -1677,7 +1885,7 @@ export const TYPERT = {
1677
1885
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1678
1886
  schema: _awiki_dsh_plugin_awiki_markMailRead_result$schema,
1679
1887
  },
1680
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":199,"column":3},
1888
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":237,"column":3},
1681
1889
  },
1682
1890
  {
1683
1891
  id: '@awiki/dsh-plugin#awiki/prepareRecovery',
@@ -1702,7 +1910,7 @@ export const TYPERT = {
1702
1910
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1703
1911
  schema: _awiki_dsh_plugin_awiki_prepareRecovery_result$schema,
1704
1912
  },
1705
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":114,"column":3},
1913
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":155,"column":3},
1706
1914
  },
1707
1915
  {
1708
1916
  id: '@awiki/dsh-plugin#awiki/readMail',
@@ -1727,7 +1935,22 @@ export const TYPERT = {
1727
1935
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1728
1936
  schema: _awiki_dsh_plugin_awiki_readMail_result$schema,
1729
1937
  },
1730
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":196,"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},
1731
1954
  },
1732
1955
  {
1733
1956
  id: '@awiki/dsh-plugin#awiki/registerIdentity',
@@ -1752,7 +1975,32 @@ export const TYPERT = {
1752
1975
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1753
1976
  schema: _awiki_dsh_plugin_awiki_registerIdentity_result$schema,
1754
1977
  },
1755
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":99,"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},
1756
2004
  },
1757
2005
  {
1758
2006
  id: '@awiki/dsh-plugin#awiki/removeGroupMember',
@@ -1777,7 +2025,7 @@ export const TYPERT = {
1777
2025
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1778
2026
  schema: _awiki_dsh_plugin_awiki_removeGroupMember_result$schema,
1779
2027
  },
1780
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":150,"column":3},
2028
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":191,"column":3},
1781
2029
  },
1782
2030
  {
1783
2031
  id: '@awiki/dsh-plugin#awiki/resolvePeer',
@@ -1802,28 +2050,38 @@ export const TYPERT = {
1802
2050
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1803
2051
  schema: _awiki_dsh_plugin_awiki_resolvePeer_result$schema,
1804
2052
  },
1805
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":129,"column":3},
2053
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":170,"column":3},
1806
2054
  },
1807
2055
  {
1808
- id: '@awiki/dsh-plugin#awiki/resumeGroupRebindRecovery',
2056
+ id: '@awiki/dsh-plugin#awiki/resumeRecovery',
1809
2057
  service: 'awiki',
1810
2058
  namespace: 'awiki',
1811
- method: 'resumeGroupRebindRecovery',
2059
+ method: 'resumeRecovery',
1812
2060
  invocation: { kind: 'direct' },
1813
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
+ },
1814
2072
  ],
1815
2073
  result: {
1816
2074
  mode: 'strict',
1817
2075
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1818
- schema: _awiki_dsh_plugin_awiki_resumeGroupRebindRecovery_result$schema,
2076
+ schema: _awiki_dsh_plugin_awiki_resumeRecovery_result$schema,
1819
2077
  },
1820
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":153,"column":9},
2078
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":164,"column":9},
1821
2079
  },
1822
2080
  {
1823
- id: '@awiki/dsh-plugin#awiki/resumeRecovery',
2081
+ id: '@awiki/dsh-plugin#awiki/revokeDevice',
1824
2082
  service: 'awiki',
1825
2083
  namespace: 'awiki',
1826
- method: 'resumeRecovery',
2084
+ method: 'revokeDevice',
1827
2085
  invocation: { kind: 'direct' },
1828
2086
  parameters: [
1829
2087
  {
@@ -1832,17 +2090,17 @@ export const TYPERT = {
1832
2090
  source: 'json',
1833
2091
  codec: {
1834
2092
  mode: 'strict',
1835
- typeSymbol: '@awiki/dsh-plugin/types#AwikiRecoveryOperationRequest',
1836
- 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,
1837
2095
  },
1838
2096
  },
1839
2097
  ],
1840
2098
  result: {
1841
2099
  mode: 'strict',
1842
2100
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1843
- schema: _awiki_dsh_plugin_awiki_resumeRecovery_result$schema,
2101
+ schema: _awiki_dsh_plugin_awiki_revokeDevice_result$schema,
1844
2102
  },
1845
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":123,"column":9},
2103
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":138,"column":9},
1846
2104
  },
1847
2105
  {
1848
2106
  id: '@awiki/dsh-plugin#awiki/sendAttachment',
@@ -1867,7 +2125,7 @@ export const TYPERT = {
1867
2125
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1868
2126
  schema: _awiki_dsh_plugin_awiki_sendAttachment_result$schema,
1869
2127
  },
1870
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":184,"column":9},
2128
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":222,"column":9},
1871
2129
  },
1872
2130
  {
1873
2131
  id: '@awiki/dsh-plugin#awiki/sendMail',
@@ -1892,7 +2150,7 @@ export const TYPERT = {
1892
2150
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1893
2151
  schema: _awiki_dsh_plugin_awiki_sendMail_result$schema,
1894
2152
  },
1895
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":202,"column":9},
2153
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":240,"column":9},
1896
2154
  },
1897
2155
  {
1898
2156
  id: '@awiki/dsh-plugin#awiki/sendRecoveryOtp',
@@ -1917,7 +2175,7 @@ export const TYPERT = {
1917
2175
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1918
2176
  schema: _awiki_dsh_plugin_awiki_sendRecoveryOtp_result$schema,
1919
2177
  },
1920
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":111,"column":3},
2178
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":152,"column":3},
1921
2179
  },
1922
2180
  {
1923
2181
  id: '@awiki/dsh-plugin#awiki/sendRegistrationOtp',
@@ -1942,7 +2200,7 @@ export const TYPERT = {
1942
2200
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1943
2201
  schema: _awiki_dsh_plugin_awiki_sendRegistrationOtp_result$schema,
1944
2202
  },
1945
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":96,"column":3},
2203
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":105,"column":9},
1946
2204
  },
1947
2205
  {
1948
2206
  id: '@awiki/dsh-plugin#awiki/sendText',
@@ -1967,7 +2225,32 @@ export const TYPERT = {
1967
2225
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1968
2226
  schema: _awiki_dsh_plugin_awiki_sendText_result$schema,
1969
2227
  },
1970
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":181,"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},
1971
2254
  },
1972
2255
  {
1973
2256
  id: '@awiki/dsh-plugin#awiki/summarizeConversation',
@@ -1992,7 +2275,7 @@ export const TYPERT = {
1992
2275
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
1993
2276
  schema: _awiki_dsh_plugin_awiki_summarizeConversation_result$schema,
1994
2277
  },
1995
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":173,"column":9},
2278
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":211,"column":9},
1996
2279
  },
1997
2280
  {
1998
2281
  id: '@awiki/dsh-plugin#awiki/updateConversationPreference',
@@ -2017,7 +2300,7 @@ export const TYPERT = {
2017
2300
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
2018
2301
  schema: _awiki_dsh_plugin_awiki_updateConversationPreference_result$schema,
2019
2302
  },
2020
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":159,"column":3},
2303
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":197,"column":3},
2021
2304
  },
2022
2305
  {
2023
2306
  id: '@awiki/dsh-plugin#awiki/updateDisplayName',
@@ -2042,7 +2325,7 @@ export const TYPERT = {
2042
2325
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
2043
2326
  schema: _awiki_dsh_plugin_awiki_updateDisplayName_result$schema,
2044
2327
  },
2045
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":102,"column":9},
2328
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":143,"column":9},
2046
2329
  },
2047
2330
  {
2048
2331
  id: '@awiki/dsh-plugin#awiki/updateProfile',
@@ -2067,7 +2350,7 @@ export const TYPERT = {
2067
2350
  typeSymbol: '@awiki/dsh-plugin/types#AwikiResult',
2068
2351
  schema: _awiki_dsh_plugin_awiki_updateProfile_result$schema,
2069
2352
  },
2070
- sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":108,"column":3},
2353
+ sourceLocation: {"file":"packages/dsh-awiki/src/index.ts","line":149,"column":3},
2071
2354
  },
2072
2355
  ],
2073
2356
  model: {