@pomade/core 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +45 -0
- package/dist/client.d.ts +94 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +292 -0
- package/dist/client.js.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -0
- package/dist/message.d.ts +255 -0
- package/dist/message.d.ts.map +1 -0
- package/dist/message.js +128 -0
- package/dist/message.js.map +1 -0
- package/dist/rpc.d.ts +75 -0
- package/dist/rpc.d.ts.map +1 -0
- package/dist/rpc.js +184 -0
- package/dist/rpc.js.map +1 -0
- package/dist/schema.d.ts +245 -0
- package/dist/schema.d.ts.map +1 -0
- package/dist/schema.js +194 -0
- package/dist/schema.js.map +1 -0
- package/dist/signer.d.ts +228 -0
- package/dist/signer.d.ts.map +1 -0
- package/dist/signer.js +510 -0
- package/dist/signer.js.map +1 -0
- package/dist/storage.d.ts +21 -0
- package/dist/storage.d.ts.map +1 -0
- package/dist/storage.js +21 -0
- package/dist/storage.js.map +1 -0
- package/dist/util.d.ts +55 -0
- package/dist/util.d.ts.map +1 -0
- package/dist/util.js +103 -0
- package/dist/util.js.map +1 -0
- package/package.json +49 -0
package/dist/rpc.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rpc.js","sourceRoot":"","sources":["../src/rpc.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAC,MAAM,eAAe,CAAA;AAC3D,OAAO,EAAC,OAAO,EAAE,OAAO,EAAE,aAAa,EAAC,MAAM,eAAe,CAAA;AAE7D,OAAO,EAAC,IAAI,EAAE,IAAI,EAAE,SAAS,EAAC,MAAM,gBAAgB,CAAA;AACpD,OAAO,EAAC,KAAK,EAAE,KAAK,EAA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AU,CAAC,KAAK,EAAE,CAAA;IACzB,CAAC;CACF"}
|
package/dist/schema.d.ts
ADDED
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
export declare enum Method {
|
|
3
|
+
ChallengeRequest = "challenge/request",
|
|
4
|
+
EcdhRequest = "ecdh/request",
|
|
5
|
+
EcdhResult = "ecdh/result",
|
|
6
|
+
LoginStart = "login/start",
|
|
7
|
+
LoginOptions = "login/options",
|
|
8
|
+
LoginSelect = "login/select",
|
|
9
|
+
LoginResult = "login/result",
|
|
10
|
+
RecoveryStart = "recovery/start",
|
|
11
|
+
RecoveryOptions = "recovery/options",
|
|
12
|
+
RecoverySelect = "recovery/select",
|
|
13
|
+
RecoveryResult = "recovery/result",
|
|
14
|
+
RecoverySetup = "recovery/setup",
|
|
15
|
+
RecoverySetupResult = "recovery/setup/result",
|
|
16
|
+
RegisterRequest = "register/request",
|
|
17
|
+
RegisterResult = "register/result",
|
|
18
|
+
SessionDelete = "session/delete",
|
|
19
|
+
SessionDeleteResult = "session/delete/result",
|
|
20
|
+
SessionList = "session/list",
|
|
21
|
+
SessionListResult = "session/list/result",
|
|
22
|
+
SignRequest = "sign/request",
|
|
23
|
+
SignResult = "sign/result"
|
|
24
|
+
}
|
|
25
|
+
declare const sessionItem: z.ZodObject<{
|
|
26
|
+
pubkey: z.ZodString;
|
|
27
|
+
client: z.ZodString;
|
|
28
|
+
created_at: z.ZodInt;
|
|
29
|
+
last_activity: z.ZodInt;
|
|
30
|
+
threshold: z.ZodInt;
|
|
31
|
+
total: z.ZodNumber;
|
|
32
|
+
idx: z.ZodNumber;
|
|
33
|
+
email: z.ZodOptional<z.ZodString>;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
declare const authPayload: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
36
|
+
email: z.ZodString;
|
|
37
|
+
otp: z.ZodString;
|
|
38
|
+
}, z.core.$strip>]>;
|
|
39
|
+
export type SessionItem = z.infer<typeof sessionItem>;
|
|
40
|
+
export type AuthPayload = z.infer<typeof authPayload>;
|
|
41
|
+
export declare const Schema: {
|
|
42
|
+
ecdhRequest: z.ZodObject<{
|
|
43
|
+
idx: z.ZodNumber;
|
|
44
|
+
members: z.ZodArray<z.ZodNumber>;
|
|
45
|
+
ecdh_pk: z.ZodString;
|
|
46
|
+
}, z.core.$strip>;
|
|
47
|
+
ecdhResult: z.ZodObject<{
|
|
48
|
+
result: z.ZodOptional<z.ZodObject<{
|
|
49
|
+
idx: z.ZodNumber;
|
|
50
|
+
keyshare: z.ZodString;
|
|
51
|
+
members: z.ZodArray<z.ZodNumber>;
|
|
52
|
+
ecdh_pk: z.ZodString;
|
|
53
|
+
}, z.core.$strip>>;
|
|
54
|
+
ok: z.ZodBoolean;
|
|
55
|
+
message: z.ZodString;
|
|
56
|
+
prev: z.ZodString;
|
|
57
|
+
}, z.core.$strip>;
|
|
58
|
+
challengeRequest: z.ZodObject<{
|
|
59
|
+
email_hash: z.ZodString;
|
|
60
|
+
}, z.core.$strip>;
|
|
61
|
+
loginStart: z.ZodObject<{
|
|
62
|
+
auth: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
63
|
+
email: z.ZodString;
|
|
64
|
+
otp: z.ZodString;
|
|
65
|
+
}, z.core.$strip>]>;
|
|
66
|
+
}, z.core.$strip>;
|
|
67
|
+
loginOptions: z.ZodObject<{
|
|
68
|
+
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
69
|
+
pubkey: z.ZodString;
|
|
70
|
+
client: z.ZodString;
|
|
71
|
+
created_at: z.ZodInt;
|
|
72
|
+
last_activity: z.ZodInt;
|
|
73
|
+
threshold: z.ZodInt;
|
|
74
|
+
total: z.ZodNumber;
|
|
75
|
+
idx: z.ZodNumber;
|
|
76
|
+
email: z.ZodOptional<z.ZodString>;
|
|
77
|
+
}, z.core.$strip>>>;
|
|
78
|
+
ok: z.ZodBoolean;
|
|
79
|
+
message: z.ZodString;
|
|
80
|
+
prev: z.ZodString;
|
|
81
|
+
}, z.core.$strip>;
|
|
82
|
+
loginSelect: z.ZodObject<{
|
|
83
|
+
client: z.ZodString;
|
|
84
|
+
}, z.core.$strip>;
|
|
85
|
+
loginResult: z.ZodObject<{
|
|
86
|
+
group: z.ZodOptional<z.ZodObject<{
|
|
87
|
+
commits: z.ZodArray<z.ZodObject<{
|
|
88
|
+
idx: z.ZodNumber;
|
|
89
|
+
pubkey: z.ZodString;
|
|
90
|
+
hidden_pn: z.ZodString;
|
|
91
|
+
binder_pn: z.ZodString;
|
|
92
|
+
}, z.core.$strip>>;
|
|
93
|
+
group_pk: z.ZodString;
|
|
94
|
+
threshold: z.ZodNumber;
|
|
95
|
+
}, z.core.$strip>>;
|
|
96
|
+
ok: z.ZodBoolean;
|
|
97
|
+
message: z.ZodString;
|
|
98
|
+
prev: z.ZodString;
|
|
99
|
+
}, z.core.$strip>;
|
|
100
|
+
recoveryStart: z.ZodObject<{
|
|
101
|
+
auth: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
102
|
+
email: z.ZodString;
|
|
103
|
+
otp: z.ZodString;
|
|
104
|
+
}, z.core.$strip>]>;
|
|
105
|
+
}, z.core.$strip>;
|
|
106
|
+
recoveryOptions: z.ZodObject<{
|
|
107
|
+
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
108
|
+
pubkey: z.ZodString;
|
|
109
|
+
client: z.ZodString;
|
|
110
|
+
created_at: z.ZodInt;
|
|
111
|
+
last_activity: z.ZodInt;
|
|
112
|
+
threshold: z.ZodInt;
|
|
113
|
+
total: z.ZodNumber;
|
|
114
|
+
idx: z.ZodNumber;
|
|
115
|
+
email: z.ZodOptional<z.ZodString>;
|
|
116
|
+
}, z.core.$strip>>>;
|
|
117
|
+
ok: z.ZodBoolean;
|
|
118
|
+
message: z.ZodString;
|
|
119
|
+
prev: z.ZodString;
|
|
120
|
+
}, z.core.$strip>;
|
|
121
|
+
recoverySelect: z.ZodObject<{
|
|
122
|
+
client: z.ZodString;
|
|
123
|
+
}, z.core.$strip>;
|
|
124
|
+
recoveryResult: z.ZodObject<{
|
|
125
|
+
share: z.ZodOptional<z.ZodObject<{
|
|
126
|
+
idx: z.ZodNumber;
|
|
127
|
+
binder_sn: z.ZodString;
|
|
128
|
+
hidden_sn: z.ZodString;
|
|
129
|
+
seckey: z.ZodString;
|
|
130
|
+
}, z.core.$strip>>;
|
|
131
|
+
group: z.ZodOptional<z.ZodObject<{
|
|
132
|
+
commits: z.ZodArray<z.ZodObject<{
|
|
133
|
+
idx: z.ZodNumber;
|
|
134
|
+
pubkey: z.ZodString;
|
|
135
|
+
hidden_pn: z.ZodString;
|
|
136
|
+
binder_pn: z.ZodString;
|
|
137
|
+
}, z.core.$strip>>;
|
|
138
|
+
group_pk: z.ZodString;
|
|
139
|
+
threshold: z.ZodNumber;
|
|
140
|
+
}, z.core.$strip>>;
|
|
141
|
+
ok: z.ZodBoolean;
|
|
142
|
+
message: z.ZodString;
|
|
143
|
+
prev: z.ZodString;
|
|
144
|
+
}, z.core.$strip>;
|
|
145
|
+
recoverySetup: z.ZodObject<{
|
|
146
|
+
email: z.ZodString;
|
|
147
|
+
password_hash: z.ZodString;
|
|
148
|
+
}, z.core.$strip>;
|
|
149
|
+
recoverySetupResult: z.ZodObject<{
|
|
150
|
+
ok: z.ZodBoolean;
|
|
151
|
+
message: z.ZodString;
|
|
152
|
+
prev: z.ZodString;
|
|
153
|
+
}, z.core.$strip>;
|
|
154
|
+
registerRequest: z.ZodObject<{
|
|
155
|
+
share: z.ZodObject<{
|
|
156
|
+
idx: z.ZodNumber;
|
|
157
|
+
binder_sn: z.ZodString;
|
|
158
|
+
hidden_sn: z.ZodString;
|
|
159
|
+
seckey: z.ZodString;
|
|
160
|
+
}, z.core.$strip>;
|
|
161
|
+
group: z.ZodObject<{
|
|
162
|
+
commits: z.ZodArray<z.ZodObject<{
|
|
163
|
+
idx: z.ZodNumber;
|
|
164
|
+
pubkey: z.ZodString;
|
|
165
|
+
hidden_pn: z.ZodString;
|
|
166
|
+
binder_pn: z.ZodString;
|
|
167
|
+
}, z.core.$strip>>;
|
|
168
|
+
group_pk: z.ZodString;
|
|
169
|
+
threshold: z.ZodNumber;
|
|
170
|
+
}, z.core.$strip>;
|
|
171
|
+
recovery: z.ZodBoolean;
|
|
172
|
+
}, z.core.$strip>;
|
|
173
|
+
registerResult: z.ZodObject<{
|
|
174
|
+
ok: z.ZodBoolean;
|
|
175
|
+
message: z.ZodString;
|
|
176
|
+
prev: z.ZodString;
|
|
177
|
+
}, z.core.$strip>;
|
|
178
|
+
sessionDelete: z.ZodObject<{
|
|
179
|
+
client: z.ZodString;
|
|
180
|
+
auth: z.ZodObject<{
|
|
181
|
+
sig: z.ZodString;
|
|
182
|
+
id: z.ZodString;
|
|
183
|
+
pubkey: z.ZodString;
|
|
184
|
+
kind: z.ZodInt;
|
|
185
|
+
tags: z.ZodArray<z.ZodArray<z.ZodString>>;
|
|
186
|
+
content: z.ZodString;
|
|
187
|
+
created_at: z.ZodInt;
|
|
188
|
+
}, z.core.$strip>;
|
|
189
|
+
}, z.core.$strip>;
|
|
190
|
+
sessionDeleteResult: z.ZodObject<{
|
|
191
|
+
ok: z.ZodBoolean;
|
|
192
|
+
message: z.ZodString;
|
|
193
|
+
prev: z.ZodString;
|
|
194
|
+
}, z.core.$strip>;
|
|
195
|
+
sessionList: z.ZodObject<{
|
|
196
|
+
auth: z.ZodObject<{
|
|
197
|
+
sig: z.ZodString;
|
|
198
|
+
id: z.ZodString;
|
|
199
|
+
pubkey: z.ZodString;
|
|
200
|
+
kind: z.ZodInt;
|
|
201
|
+
tags: z.ZodArray<z.ZodArray<z.ZodString>>;
|
|
202
|
+
content: z.ZodString;
|
|
203
|
+
created_at: z.ZodInt;
|
|
204
|
+
}, z.core.$strip>;
|
|
205
|
+
}, z.core.$strip>;
|
|
206
|
+
sessionListResult: z.ZodObject<{
|
|
207
|
+
items: z.ZodArray<z.ZodObject<{
|
|
208
|
+
pubkey: z.ZodString;
|
|
209
|
+
client: z.ZodString;
|
|
210
|
+
created_at: z.ZodInt;
|
|
211
|
+
last_activity: z.ZodInt;
|
|
212
|
+
threshold: z.ZodInt;
|
|
213
|
+
total: z.ZodNumber;
|
|
214
|
+
idx: z.ZodNumber;
|
|
215
|
+
email: z.ZodOptional<z.ZodString>;
|
|
216
|
+
}, z.core.$strip>>;
|
|
217
|
+
ok: z.ZodBoolean;
|
|
218
|
+
message: z.ZodString;
|
|
219
|
+
prev: z.ZodString;
|
|
220
|
+
}, z.core.$strip>;
|
|
221
|
+
signRequest: z.ZodObject<{
|
|
222
|
+
request: z.ZodObject<{
|
|
223
|
+
content: z.ZodNullable<z.ZodString>;
|
|
224
|
+
hashes: z.ZodArray<z.ZodTuple<[z.ZodString], z.ZodString>>;
|
|
225
|
+
members: z.ZodArray<z.ZodNumber>;
|
|
226
|
+
stamp: z.ZodNumber;
|
|
227
|
+
type: z.ZodString;
|
|
228
|
+
gid: z.ZodString;
|
|
229
|
+
sid: z.ZodString;
|
|
230
|
+
}, z.core.$strip>;
|
|
231
|
+
}, z.core.$strip>;
|
|
232
|
+
signResult: z.ZodObject<{
|
|
233
|
+
result: z.ZodOptional<z.ZodObject<{
|
|
234
|
+
idx: z.ZodNumber;
|
|
235
|
+
psigs: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>>;
|
|
236
|
+
pubkey: z.ZodString;
|
|
237
|
+
sid: z.ZodString;
|
|
238
|
+
}, z.core.$strip>>;
|
|
239
|
+
ok: z.ZodBoolean;
|
|
240
|
+
message: z.ZodString;
|
|
241
|
+
prev: z.ZodString;
|
|
242
|
+
}, z.core.$strip>;
|
|
243
|
+
};
|
|
244
|
+
export {};
|
|
245
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAExB,oBAAY,MAAM;IAChB,gBAAgB,sBAAsB;IACtC,WAAW,iBAAiB;IAC5B,UAAU,gBAAgB;IAC1B,UAAU,gBAAgB;IAC1B,YAAY,kBAAkB;IAC9B,WAAW,iBAAiB;IAC5B,WAAW,iBAAiB;IAC5B,aAAa,mBAAmB;IAChC,eAAe,qBAAqB;IACpC,cAAc,oBAAoB;IAClC,cAAc,oBAAoB;IAClC,aAAa,mBAAmB;IAChC,mBAAmB,0BAA0B;IAC7C,eAAe,qBAAqB;IACpC,cAAc,oBAAoB;IAClC,aAAa,mBAAmB;IAChC,mBAAmB,0BAA0B;IAC7C,WAAW,iBAAiB;IAC5B,iBAAiB,wBAAwB;IACzC,WAAW,iBAAiB;IAC5B,UAAU,gBAAgB;CAC3B;AA0CD,QAAA,MAAM,WAAW;;;;;;;;;iBASf,CAAA;AAEF,QAAA,MAAM,WAAW;;;mBAMf,CAAA;AAEF,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAA;AACrD,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAA;AAErD,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwHlB,CAAA"}
|
package/dist/schema.js
ADDED
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
export var Method;
|
|
3
|
+
(function (Method) {
|
|
4
|
+
Method["ChallengeRequest"] = "challenge/request";
|
|
5
|
+
Method["EcdhRequest"] = "ecdh/request";
|
|
6
|
+
Method["EcdhResult"] = "ecdh/result";
|
|
7
|
+
Method["LoginStart"] = "login/start";
|
|
8
|
+
Method["LoginOptions"] = "login/options";
|
|
9
|
+
Method["LoginSelect"] = "login/select";
|
|
10
|
+
Method["LoginResult"] = "login/result";
|
|
11
|
+
Method["RecoveryStart"] = "recovery/start";
|
|
12
|
+
Method["RecoveryOptions"] = "recovery/options";
|
|
13
|
+
Method["RecoverySelect"] = "recovery/select";
|
|
14
|
+
Method["RecoveryResult"] = "recovery/result";
|
|
15
|
+
Method["RecoverySetup"] = "recovery/setup";
|
|
16
|
+
Method["RecoverySetupResult"] = "recovery/setup/result";
|
|
17
|
+
Method["RegisterRequest"] = "register/request";
|
|
18
|
+
Method["RegisterResult"] = "register/result";
|
|
19
|
+
Method["SessionDelete"] = "session/delete";
|
|
20
|
+
Method["SessionDeleteResult"] = "session/delete/result";
|
|
21
|
+
Method["SessionList"] = "session/list";
|
|
22
|
+
Method["SessionListResult"] = "session/list/result";
|
|
23
|
+
Method["SignRequest"] = "sign/request";
|
|
24
|
+
Method["SignResult"] = "sign/result";
|
|
25
|
+
})(Method || (Method = {}));
|
|
26
|
+
const hex = z
|
|
27
|
+
.string()
|
|
28
|
+
.regex(/^[0-9a-fA-F]*$/)
|
|
29
|
+
.refine(e => e.length % 2 === 0);
|
|
30
|
+
const hex32 = hex.refine(e => e.length === 64);
|
|
31
|
+
const hex33 = hex.refine(e => e.length === 66);
|
|
32
|
+
const commit = z.object({
|
|
33
|
+
idx: z.number(),
|
|
34
|
+
pubkey: hex33,
|
|
35
|
+
hidden_pn: hex33,
|
|
36
|
+
binder_pn: hex33,
|
|
37
|
+
});
|
|
38
|
+
const group = z.object({
|
|
39
|
+
commits: z.array(commit),
|
|
40
|
+
group_pk: hex33,
|
|
41
|
+
threshold: z.number(),
|
|
42
|
+
});
|
|
43
|
+
const share = z.object({
|
|
44
|
+
idx: z.number(),
|
|
45
|
+
binder_sn: hex32,
|
|
46
|
+
hidden_sn: hex32,
|
|
47
|
+
seckey: hex32,
|
|
48
|
+
});
|
|
49
|
+
const psig_entry = z.tuple([hex32, hex32]);
|
|
50
|
+
const sighash_vec = z.tuple([hex32]).rest(hex32);
|
|
51
|
+
const event = z.object({
|
|
52
|
+
sig: hex,
|
|
53
|
+
id: hex32,
|
|
54
|
+
pubkey: hex32,
|
|
55
|
+
kind: z.int().nonnegative(),
|
|
56
|
+
tags: z.string().array().array(),
|
|
57
|
+
content: z.string(),
|
|
58
|
+
created_at: z.int().positive(),
|
|
59
|
+
});
|
|
60
|
+
const sessionItem = z.object({
|
|
61
|
+
pubkey: hex32,
|
|
62
|
+
client: hex32,
|
|
63
|
+
created_at: z.int().positive(),
|
|
64
|
+
last_activity: z.int().positive(),
|
|
65
|
+
threshold: z.int().positive(),
|
|
66
|
+
total: z.number(),
|
|
67
|
+
idx: z.number(),
|
|
68
|
+
email: z.string().optional(),
|
|
69
|
+
});
|
|
70
|
+
const authPayload = z.union([
|
|
71
|
+
z.string(),
|
|
72
|
+
z.object({
|
|
73
|
+
email: z.string(),
|
|
74
|
+
otp: z.string(),
|
|
75
|
+
}),
|
|
76
|
+
]);
|
|
77
|
+
export const Schema = {
|
|
78
|
+
ecdhRequest: z.object({
|
|
79
|
+
idx: z.number(),
|
|
80
|
+
members: z.number().array(),
|
|
81
|
+
ecdh_pk: hex32,
|
|
82
|
+
}),
|
|
83
|
+
ecdhResult: z.object({
|
|
84
|
+
result: z.optional(z.object({
|
|
85
|
+
idx: z.number(),
|
|
86
|
+
keyshare: hex,
|
|
87
|
+
members: z.number().array(),
|
|
88
|
+
ecdh_pk: hex,
|
|
89
|
+
})),
|
|
90
|
+
ok: z.boolean(),
|
|
91
|
+
message: z.string(),
|
|
92
|
+
prev: hex32,
|
|
93
|
+
}),
|
|
94
|
+
challengeRequest: z.object({
|
|
95
|
+
email_hash: z.string(),
|
|
96
|
+
}),
|
|
97
|
+
loginStart: z.object({
|
|
98
|
+
auth: authPayload,
|
|
99
|
+
}),
|
|
100
|
+
loginOptions: z.object({
|
|
101
|
+
items: z.array(sessionItem).optional(),
|
|
102
|
+
ok: z.boolean(),
|
|
103
|
+
message: z.string(),
|
|
104
|
+
prev: hex32,
|
|
105
|
+
}),
|
|
106
|
+
loginSelect: z.object({
|
|
107
|
+
client: hex32,
|
|
108
|
+
}),
|
|
109
|
+
loginResult: z.object({
|
|
110
|
+
group: group.optional(),
|
|
111
|
+
ok: z.boolean(),
|
|
112
|
+
message: z.string(),
|
|
113
|
+
prev: hex32,
|
|
114
|
+
}),
|
|
115
|
+
recoveryStart: z.object({
|
|
116
|
+
auth: authPayload,
|
|
117
|
+
}),
|
|
118
|
+
recoveryOptions: z.object({
|
|
119
|
+
items: z.array(sessionItem).optional(),
|
|
120
|
+
ok: z.boolean(),
|
|
121
|
+
message: z.string(),
|
|
122
|
+
prev: hex32,
|
|
123
|
+
}),
|
|
124
|
+
recoverySelect: z.object({
|
|
125
|
+
client: hex32,
|
|
126
|
+
}),
|
|
127
|
+
recoveryResult: z.object({
|
|
128
|
+
share: share.optional(),
|
|
129
|
+
group: group.optional(),
|
|
130
|
+
ok: z.boolean(),
|
|
131
|
+
message: z.string(),
|
|
132
|
+
prev: hex32,
|
|
133
|
+
}),
|
|
134
|
+
recoverySetup: z.object({
|
|
135
|
+
email: z.string(),
|
|
136
|
+
password_hash: z.string(),
|
|
137
|
+
}),
|
|
138
|
+
recoverySetupResult: z.object({
|
|
139
|
+
ok: z.boolean(),
|
|
140
|
+
message: z.string(),
|
|
141
|
+
prev: hex32,
|
|
142
|
+
}),
|
|
143
|
+
registerRequest: z.object({
|
|
144
|
+
share: share,
|
|
145
|
+
group: group,
|
|
146
|
+
recovery: z.boolean(),
|
|
147
|
+
}),
|
|
148
|
+
registerResult: z.object({
|
|
149
|
+
ok: z.boolean(),
|
|
150
|
+
message: z.string(),
|
|
151
|
+
prev: hex32,
|
|
152
|
+
}),
|
|
153
|
+
sessionDelete: z.object({
|
|
154
|
+
client: hex32,
|
|
155
|
+
auth: event,
|
|
156
|
+
}),
|
|
157
|
+
sessionDeleteResult: z.object({
|
|
158
|
+
ok: z.boolean(),
|
|
159
|
+
message: z.string(),
|
|
160
|
+
prev: hex32,
|
|
161
|
+
}),
|
|
162
|
+
sessionList: z.object({
|
|
163
|
+
auth: event,
|
|
164
|
+
}),
|
|
165
|
+
sessionListResult: z.object({
|
|
166
|
+
items: z.array(sessionItem),
|
|
167
|
+
ok: z.boolean(),
|
|
168
|
+
message: z.string(),
|
|
169
|
+
prev: hex32,
|
|
170
|
+
}),
|
|
171
|
+
signRequest: z.object({
|
|
172
|
+
request: z.object({
|
|
173
|
+
content: z.string().nullable(),
|
|
174
|
+
hashes: sighash_vec.array(),
|
|
175
|
+
members: z.number().array(),
|
|
176
|
+
stamp: z.number(),
|
|
177
|
+
type: z.string(),
|
|
178
|
+
gid: hex32,
|
|
179
|
+
sid: hex32,
|
|
180
|
+
}),
|
|
181
|
+
}),
|
|
182
|
+
signResult: z.object({
|
|
183
|
+
result: z.optional(z.object({
|
|
184
|
+
idx: z.number(),
|
|
185
|
+
psigs: psig_entry.array(),
|
|
186
|
+
pubkey: hex33,
|
|
187
|
+
sid: hex32,
|
|
188
|
+
})),
|
|
189
|
+
ok: z.boolean(),
|
|
190
|
+
message: z.string(),
|
|
191
|
+
prev: hex32,
|
|
192
|
+
}),
|
|
193
|
+
};
|
|
194
|
+
//# sourceMappingURL=schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAExB,MAAM,CAAN,IAAY,MAsBX;AAtBD,WAAY,MAAM;IAChB,gDAAsC,CAAA;IACtC,sCAA4B,CAAA;IAC5B,oCAA0B,CAAA;IAC1B,oCAA0B,CAAA;IAC1B,wCAA8B,CAAA;IAC9B,sCAA4B,CAAA;IAC5B,sCAA4B,CAAA;IAC5B,0CAAgC,CAAA;IAChC,8CAAoC,CAAA;IACpC,4CAAkC,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