@peers-app/peers-sdk 0.25.14 → 0.25.16
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/dist/context/user-context-identity.test.d.ts +1 -0
- package/dist/context/user-context-identity.test.js +220 -0
- package/dist/context/user-context.d.ts +5 -1
- package/dist/context/user-context.js +63 -8
- package/dist/contracts/index.d.ts +1 -1
- package/dist/contracts/system/identity-contract.d.ts +156 -0
- package/dist/contracts/system/identity-contract.js +172 -0
- package/dist/contracts/system/index.d.ts +1 -1
- package/dist/data/assistants.d.ts +4 -4
- package/dist/data/devices.d.ts +70 -4
- package/dist/data/devices.js +3 -0
- package/dist/data/group-members.d.ts +2 -2
- package/dist/data/groups.d.ts +2 -2
- package/dist/data/invites.d.ts +93 -25
- package/dist/data/persistent-vars.d.ts +8 -0
- package/dist/data/persistent-vars.js +16 -0
- package/dist/data/tool-access-approvals.d.ts +2 -2
- package/dist/data/user-permissions.d.ts +10 -2
- package/dist/data/user-permissions.js +35 -4
- package/dist/data/user-permissions.test.js +26 -0
- package/dist/data/users.d.ts +48 -4
- package/dist/data/users.js +61 -5
- package/dist/data/workflows.d.ts +1 -1
- package/dist/device/connection.d.ts +7 -1
- package/dist/device/connection.js +38 -6
- package/dist/device/connection.test.js +33 -4
- package/dist/device/device.d.ts +2 -2
- package/dist/device/device.js +4 -2
- package/dist/device/get-trust-level-fn.d.ts +1 -0
- package/dist/device/get-trust-level-fn.js +28 -4
- package/dist/device/get-trust-level-fn.test.js +95 -0
- package/dist/device-pairing/types.d.ts +26 -26
- package/dist/host-credentials.d.ts +78 -0
- package/dist/host-credentials.js +128 -0
- package/dist/host-credentials.test.d.ts +1 -0
- package/dist/host-credentials.test.js +88 -0
- package/dist/identity/account-email.d.ts +59 -0
- package/dist/identity/account-email.js +87 -0
- package/dist/identity/account-email.test.d.ts +1 -0
- package/dist/identity/account-email.test.js +59 -0
- package/dist/identity/anchor-document.d.ts +205 -0
- package/dist/identity/anchor-document.js +119 -0
- package/dist/identity/anchor-document.test.d.ts +1 -0
- package/dist/identity/anchor-document.test.js +16 -0
- package/dist/identity/anchor-resolution.d.ts +61 -0
- package/dist/identity/anchor-resolution.js +117 -0
- package/dist/identity/anchor-resolution.test.d.ts +1 -0
- package/dist/identity/anchor-resolution.test.js +130 -0
- package/dist/identity/key-change.d.ts +142 -0
- package/dist/identity/key-change.js +472 -0
- package/dist/identity/key-change.test.d.ts +1 -0
- package/dist/identity/key-change.test.js +811 -0
- package/dist/identity/key-contest.d.ts +91 -0
- package/dist/identity/key-contest.js +55 -0
- package/dist/identity/key-resolutions.d.ts +55 -0
- package/dist/identity/key-resolutions.js +42 -0
- package/dist/identity/passkey.d.ts +22 -0
- package/dist/identity/passkey.js +33 -0
- package/dist/identity/user-row-change.d.ts +45 -0
- package/dist/identity/user-row-change.js +81 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +9 -0
- package/dist/invites/invite-messages.d.ts +512 -116
- package/dist/invites/invite-token.d.ts +114 -24
- package/dist/invites/invite-token.js +6 -0
- package/dist/keys.d.ts +7 -0
- package/dist/keys.js +20 -0
- package/dist/system-ids.d.ts +16 -0
- package/dist/system-ids.js +16 -0
- package/dist/types/workflow.d.ts +2 -2
- package/dist/utils.d.ts +10 -0
- package/dist/utils.js +43 -0
- package/dist/utils.test.js +23 -0
- package/package.json +1 -1
|
@@ -11,15 +11,33 @@ export declare const contactReplySchema: z.ZodObject<{
|
|
|
11
11
|
publicKey: z.ZodString;
|
|
12
12
|
publicBoxKey: z.ZodString;
|
|
13
13
|
displayName: z.ZodOptional<z.ZodString>;
|
|
14
|
+
anchors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
15
|
+
type: z.ZodEnum<["peers-services", "https"]>;
|
|
16
|
+
url: z.ZodString;
|
|
17
|
+
}, "strip", z.ZodTypeAny, {
|
|
18
|
+
type: "peers-services" | "https";
|
|
19
|
+
url: string;
|
|
20
|
+
}, {
|
|
21
|
+
type: "peers-services" | "https";
|
|
22
|
+
url: string;
|
|
23
|
+
}>, "many">>;
|
|
14
24
|
}, "strict", z.ZodTypeAny, {
|
|
15
25
|
publicKey: string;
|
|
16
|
-
publicBoxKey: string;
|
|
17
26
|
userId: string;
|
|
27
|
+
publicBoxKey: string;
|
|
28
|
+
anchors?: {
|
|
29
|
+
type: "peers-services" | "https";
|
|
30
|
+
url: string;
|
|
31
|
+
}[] | undefined;
|
|
18
32
|
displayName?: string | undefined;
|
|
19
33
|
}, {
|
|
20
34
|
publicKey: string;
|
|
21
|
-
publicBoxKey: string;
|
|
22
35
|
userId: string;
|
|
36
|
+
publicBoxKey: string;
|
|
37
|
+
anchors?: {
|
|
38
|
+
type: "peers-services" | "https";
|
|
39
|
+
url: string;
|
|
40
|
+
}[] | undefined;
|
|
23
41
|
displayName?: string | undefined;
|
|
24
42
|
}>;
|
|
25
43
|
responderDeviceId: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -27,8 +45,12 @@ export declare const contactReplySchema: z.ZodObject<{
|
|
|
27
45
|
kind: "contact-reply";
|
|
28
46
|
responder: {
|
|
29
47
|
publicKey: string;
|
|
30
|
-
publicBoxKey: string;
|
|
31
48
|
userId: string;
|
|
49
|
+
publicBoxKey: string;
|
|
50
|
+
anchors?: {
|
|
51
|
+
type: "peers-services" | "https";
|
|
52
|
+
url: string;
|
|
53
|
+
}[] | undefined;
|
|
32
54
|
displayName?: string | undefined;
|
|
33
55
|
};
|
|
34
56
|
inviteNonce: string;
|
|
@@ -38,8 +60,12 @@ export declare const contactReplySchema: z.ZodObject<{
|
|
|
38
60
|
kind: "contact-reply";
|
|
39
61
|
responder: {
|
|
40
62
|
publicKey: string;
|
|
41
|
-
publicBoxKey: string;
|
|
42
63
|
userId: string;
|
|
64
|
+
publicBoxKey: string;
|
|
65
|
+
anchors?: {
|
|
66
|
+
type: "peers-services" | "https";
|
|
67
|
+
url: string;
|
|
68
|
+
}[] | undefined;
|
|
43
69
|
displayName?: string | undefined;
|
|
44
70
|
};
|
|
45
71
|
inviteNonce: string;
|
|
@@ -59,15 +85,33 @@ export declare const groupJoinRequestSchema: z.ZodObject<{
|
|
|
59
85
|
publicKey: z.ZodString;
|
|
60
86
|
publicBoxKey: z.ZodString;
|
|
61
87
|
displayName: z.ZodOptional<z.ZodString>;
|
|
88
|
+
anchors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
89
|
+
type: z.ZodEnum<["peers-services", "https"]>;
|
|
90
|
+
url: z.ZodString;
|
|
91
|
+
}, "strip", z.ZodTypeAny, {
|
|
92
|
+
type: "peers-services" | "https";
|
|
93
|
+
url: string;
|
|
94
|
+
}, {
|
|
95
|
+
type: "peers-services" | "https";
|
|
96
|
+
url: string;
|
|
97
|
+
}>, "many">>;
|
|
62
98
|
}, "strict", z.ZodTypeAny, {
|
|
63
99
|
publicKey: string;
|
|
64
|
-
publicBoxKey: string;
|
|
65
100
|
userId: string;
|
|
101
|
+
publicBoxKey: string;
|
|
102
|
+
anchors?: {
|
|
103
|
+
type: "peers-services" | "https";
|
|
104
|
+
url: string;
|
|
105
|
+
}[] | undefined;
|
|
66
106
|
displayName?: string | undefined;
|
|
67
107
|
}, {
|
|
68
108
|
publicKey: string;
|
|
69
|
-
publicBoxKey: string;
|
|
70
109
|
userId: string;
|
|
110
|
+
publicBoxKey: string;
|
|
111
|
+
anchors?: {
|
|
112
|
+
type: "peers-services" | "https";
|
|
113
|
+
url: string;
|
|
114
|
+
}[] | undefined;
|
|
71
115
|
displayName?: string | undefined;
|
|
72
116
|
}>;
|
|
73
117
|
expiresAt: z.ZodString;
|
|
@@ -85,15 +129,15 @@ export declare const groupJoinRequestSchema: z.ZodObject<{
|
|
|
85
129
|
name: string;
|
|
86
130
|
role: import("../data").GroupMemberRole;
|
|
87
131
|
publicKey: string;
|
|
88
|
-
groupId: string;
|
|
89
132
|
publicBoxKey: string;
|
|
133
|
+
groupId: string;
|
|
90
134
|
mode: "open" | "approve";
|
|
91
135
|
}, {
|
|
92
136
|
name: string;
|
|
93
137
|
role: import("../data").GroupMemberRole;
|
|
94
138
|
publicKey: string;
|
|
95
|
-
groupId: string;
|
|
96
139
|
publicBoxKey: string;
|
|
140
|
+
groupId: string;
|
|
97
141
|
mode: "open" | "approve";
|
|
98
142
|
}>>;
|
|
99
143
|
signature: z.ZodString;
|
|
@@ -105,8 +149,12 @@ export declare const groupJoinRequestSchema: z.ZodObject<{
|
|
|
105
149
|
v: 1;
|
|
106
150
|
inviter: {
|
|
107
151
|
publicKey: string;
|
|
108
|
-
publicBoxKey: string;
|
|
109
152
|
userId: string;
|
|
153
|
+
publicBoxKey: string;
|
|
154
|
+
anchors?: {
|
|
155
|
+
type: "peers-services" | "https";
|
|
156
|
+
url: string;
|
|
157
|
+
}[] | undefined;
|
|
110
158
|
displayName?: string | undefined;
|
|
111
159
|
};
|
|
112
160
|
epoch: number;
|
|
@@ -115,8 +163,8 @@ export declare const groupJoinRequestSchema: z.ZodObject<{
|
|
|
115
163
|
name: string;
|
|
116
164
|
role: import("../data").GroupMemberRole;
|
|
117
165
|
publicKey: string;
|
|
118
|
-
groupId: string;
|
|
119
166
|
publicBoxKey: string;
|
|
167
|
+
groupId: string;
|
|
120
168
|
mode: "open" | "approve";
|
|
121
169
|
} | undefined;
|
|
122
170
|
}, {
|
|
@@ -127,8 +175,12 @@ export declare const groupJoinRequestSchema: z.ZodObject<{
|
|
|
127
175
|
v: 1;
|
|
128
176
|
inviter: {
|
|
129
177
|
publicKey: string;
|
|
130
|
-
publicBoxKey: string;
|
|
131
178
|
userId: string;
|
|
179
|
+
publicBoxKey: string;
|
|
180
|
+
anchors?: {
|
|
181
|
+
type: "peers-services" | "https";
|
|
182
|
+
url: string;
|
|
183
|
+
}[] | undefined;
|
|
132
184
|
displayName?: string | undefined;
|
|
133
185
|
};
|
|
134
186
|
epoch: number;
|
|
@@ -137,8 +189,8 @@ export declare const groupJoinRequestSchema: z.ZodObject<{
|
|
|
137
189
|
name: string;
|
|
138
190
|
role: import("../data").GroupMemberRole;
|
|
139
191
|
publicKey: string;
|
|
140
|
-
groupId: string;
|
|
141
192
|
publicBoxKey: string;
|
|
193
|
+
groupId: string;
|
|
142
194
|
mode: "open" | "approve";
|
|
143
195
|
} | undefined;
|
|
144
196
|
}>;
|
|
@@ -147,15 +199,33 @@ export declare const groupJoinRequestSchema: z.ZodObject<{
|
|
|
147
199
|
publicKey: z.ZodString;
|
|
148
200
|
publicBoxKey: z.ZodString;
|
|
149
201
|
displayName: z.ZodOptional<z.ZodString>;
|
|
202
|
+
anchors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
203
|
+
type: z.ZodEnum<["peers-services", "https"]>;
|
|
204
|
+
url: z.ZodString;
|
|
205
|
+
}, "strip", z.ZodTypeAny, {
|
|
206
|
+
type: "peers-services" | "https";
|
|
207
|
+
url: string;
|
|
208
|
+
}, {
|
|
209
|
+
type: "peers-services" | "https";
|
|
210
|
+
url: string;
|
|
211
|
+
}>, "many">>;
|
|
150
212
|
}, "strict", z.ZodTypeAny, {
|
|
151
213
|
publicKey: string;
|
|
152
|
-
publicBoxKey: string;
|
|
153
214
|
userId: string;
|
|
215
|
+
publicBoxKey: string;
|
|
216
|
+
anchors?: {
|
|
217
|
+
type: "peers-services" | "https";
|
|
218
|
+
url: string;
|
|
219
|
+
}[] | undefined;
|
|
154
220
|
displayName?: string | undefined;
|
|
155
221
|
}, {
|
|
156
222
|
publicKey: string;
|
|
157
|
-
publicBoxKey: string;
|
|
158
223
|
userId: string;
|
|
224
|
+
publicBoxKey: string;
|
|
225
|
+
anchors?: {
|
|
226
|
+
type: "peers-services" | "https";
|
|
227
|
+
url: string;
|
|
228
|
+
}[] | undefined;
|
|
159
229
|
displayName?: string | undefined;
|
|
160
230
|
}>;
|
|
161
231
|
requesterDeviceId: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -169,8 +239,12 @@ export declare const groupJoinRequestSchema: z.ZodObject<{
|
|
|
169
239
|
v: 1;
|
|
170
240
|
inviter: {
|
|
171
241
|
publicKey: string;
|
|
172
|
-
publicBoxKey: string;
|
|
173
242
|
userId: string;
|
|
243
|
+
publicBoxKey: string;
|
|
244
|
+
anchors?: {
|
|
245
|
+
type: "peers-services" | "https";
|
|
246
|
+
url: string;
|
|
247
|
+
}[] | undefined;
|
|
174
248
|
displayName?: string | undefined;
|
|
175
249
|
};
|
|
176
250
|
epoch: number;
|
|
@@ -179,15 +253,19 @@ export declare const groupJoinRequestSchema: z.ZodObject<{
|
|
|
179
253
|
name: string;
|
|
180
254
|
role: import("../data").GroupMemberRole;
|
|
181
255
|
publicKey: string;
|
|
182
|
-
groupId: string;
|
|
183
256
|
publicBoxKey: string;
|
|
257
|
+
groupId: string;
|
|
184
258
|
mode: "open" | "approve";
|
|
185
259
|
} | undefined;
|
|
186
260
|
};
|
|
187
261
|
requester: {
|
|
188
262
|
publicKey: string;
|
|
189
|
-
publicBoxKey: string;
|
|
190
263
|
userId: string;
|
|
264
|
+
publicBoxKey: string;
|
|
265
|
+
anchors?: {
|
|
266
|
+
type: "peers-services" | "https";
|
|
267
|
+
url: string;
|
|
268
|
+
}[] | undefined;
|
|
191
269
|
displayName?: string | undefined;
|
|
192
270
|
};
|
|
193
271
|
requesterDeviceId: string;
|
|
@@ -201,8 +279,12 @@ export declare const groupJoinRequestSchema: z.ZodObject<{
|
|
|
201
279
|
v: 1;
|
|
202
280
|
inviter: {
|
|
203
281
|
publicKey: string;
|
|
204
|
-
publicBoxKey: string;
|
|
205
282
|
userId: string;
|
|
283
|
+
publicBoxKey: string;
|
|
284
|
+
anchors?: {
|
|
285
|
+
type: "peers-services" | "https";
|
|
286
|
+
url: string;
|
|
287
|
+
}[] | undefined;
|
|
206
288
|
displayName?: string | undefined;
|
|
207
289
|
};
|
|
208
290
|
epoch: number;
|
|
@@ -211,15 +293,19 @@ export declare const groupJoinRequestSchema: z.ZodObject<{
|
|
|
211
293
|
name: string;
|
|
212
294
|
role: import("../data").GroupMemberRole;
|
|
213
295
|
publicKey: string;
|
|
214
|
-
groupId: string;
|
|
215
296
|
publicBoxKey: string;
|
|
297
|
+
groupId: string;
|
|
216
298
|
mode: "open" | "approve";
|
|
217
299
|
} | undefined;
|
|
218
300
|
};
|
|
219
301
|
requester: {
|
|
220
302
|
publicKey: string;
|
|
221
|
-
publicBoxKey: string;
|
|
222
303
|
userId: string;
|
|
304
|
+
publicBoxKey: string;
|
|
305
|
+
anchors?: {
|
|
306
|
+
type: "peers-services" | "https";
|
|
307
|
+
url: string;
|
|
308
|
+
}[] | undefined;
|
|
223
309
|
displayName?: string | undefined;
|
|
224
310
|
};
|
|
225
311
|
requesterDeviceId: string;
|
|
@@ -250,9 +336,9 @@ export declare const groupApprovalSchema: z.ZodObject<{
|
|
|
250
336
|
description: string;
|
|
251
337
|
publicKey: string;
|
|
252
338
|
signature: string;
|
|
339
|
+
publicBoxKey: string;
|
|
253
340
|
groupId: string;
|
|
254
341
|
founderUserId: string;
|
|
255
|
-
publicBoxKey: string;
|
|
256
342
|
disabled?: boolean | undefined;
|
|
257
343
|
iconClassName?: string | undefined;
|
|
258
344
|
publicRole?: import("../data").GroupMemberRole | undefined;
|
|
@@ -261,9 +347,9 @@ export declare const groupApprovalSchema: z.ZodObject<{
|
|
|
261
347
|
description: string;
|
|
262
348
|
publicKey: string;
|
|
263
349
|
signature: string;
|
|
350
|
+
publicBoxKey: string;
|
|
264
351
|
groupId: string;
|
|
265
352
|
founderUserId: string;
|
|
266
|
-
publicBoxKey: string;
|
|
267
353
|
disabled?: boolean | undefined;
|
|
268
354
|
iconClassName?: string | undefined;
|
|
269
355
|
publicRole?: import("../data").GroupMemberRole | undefined;
|
|
@@ -278,15 +364,15 @@ export declare const groupApprovalSchema: z.ZodObject<{
|
|
|
278
364
|
}, "strip", z.ZodTypeAny, {
|
|
279
365
|
role: import("../data").GroupMemberRole;
|
|
280
366
|
signature: string;
|
|
281
|
-
groupId: string;
|
|
282
367
|
userId: string;
|
|
368
|
+
groupId: string;
|
|
283
369
|
groupMemberId: string;
|
|
284
370
|
deleted?: boolean | undefined;
|
|
285
371
|
}, {
|
|
286
372
|
role: import("../data").GroupMemberRole;
|
|
287
373
|
signature: string;
|
|
288
|
-
groupId: string;
|
|
289
374
|
userId: string;
|
|
375
|
+
groupId: string;
|
|
290
376
|
groupMemberId: string;
|
|
291
377
|
deleted?: boolean | undefined;
|
|
292
378
|
}>>;
|
|
@@ -301,15 +387,15 @@ export declare const groupApprovalSchema: z.ZodObject<{
|
|
|
301
387
|
}, "strip", z.ZodTypeAny, {
|
|
302
388
|
role: import("../data").GroupMemberRole;
|
|
303
389
|
signature: string;
|
|
304
|
-
groupId: string;
|
|
305
390
|
userId: string;
|
|
391
|
+
groupId: string;
|
|
306
392
|
groupMemberId: string;
|
|
307
393
|
deleted?: boolean | undefined;
|
|
308
394
|
}, {
|
|
309
395
|
role: import("../data").GroupMemberRole;
|
|
310
396
|
signature: string;
|
|
311
|
-
groupId: string;
|
|
312
397
|
userId: string;
|
|
398
|
+
groupId: string;
|
|
313
399
|
groupMemberId: string;
|
|
314
400
|
deleted?: boolean | undefined;
|
|
315
401
|
}>>, "many">;
|
|
@@ -318,19 +404,37 @@ export declare const groupApprovalSchema: z.ZodObject<{
|
|
|
318
404
|
name: z.ZodString;
|
|
319
405
|
publicKey: z.ZodString;
|
|
320
406
|
publicBoxKey: z.ZodString;
|
|
407
|
+
anchors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
408
|
+
type: z.ZodEnum<["peers-services", "https"]>;
|
|
409
|
+
url: z.ZodString;
|
|
410
|
+
}, "strip", z.ZodTypeAny, {
|
|
411
|
+
type: "peers-services" | "https";
|
|
412
|
+
url: string;
|
|
413
|
+
}, {
|
|
414
|
+
type: "peers-services" | "https";
|
|
415
|
+
url: string;
|
|
416
|
+
}>, "many">>;
|
|
321
417
|
signature: z.ZodOptional<z.ZodString>;
|
|
322
418
|
}, "strip", z.ZodTypeAny, {
|
|
323
419
|
name: string;
|
|
324
420
|
publicKey: string;
|
|
325
|
-
publicBoxKey: string;
|
|
326
421
|
userId: string;
|
|
422
|
+
publicBoxKey: string;
|
|
327
423
|
signature?: string | undefined;
|
|
424
|
+
anchors?: {
|
|
425
|
+
type: "peers-services" | "https";
|
|
426
|
+
url: string;
|
|
427
|
+
}[] | undefined;
|
|
328
428
|
}, {
|
|
329
429
|
name: string;
|
|
330
430
|
publicKey: string;
|
|
331
|
-
publicBoxKey: string;
|
|
332
431
|
userId: string;
|
|
432
|
+
publicBoxKey: string;
|
|
333
433
|
signature?: string | undefined;
|
|
434
|
+
anchors?: {
|
|
435
|
+
type: "peers-services" | "https";
|
|
436
|
+
url: string;
|
|
437
|
+
}[] | undefined;
|
|
334
438
|
}>>, "many">;
|
|
335
439
|
devices: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
336
440
|
userId: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -341,16 +445,16 @@ export declare const groupApprovalSchema: z.ZodObject<{
|
|
|
341
445
|
deviceName: z.ZodOptional<z.ZodString>;
|
|
342
446
|
}, "strip", z.ZodTypeAny, {
|
|
343
447
|
publicKey: string;
|
|
344
|
-
publicBoxKey: string;
|
|
345
448
|
userId: string;
|
|
346
449
|
deviceId: string;
|
|
450
|
+
publicBoxKey: string;
|
|
347
451
|
userName?: string | undefined;
|
|
348
452
|
deviceName?: string | undefined;
|
|
349
453
|
}, {
|
|
350
454
|
publicKey: string;
|
|
351
|
-
publicBoxKey: string;
|
|
352
455
|
userId: string;
|
|
353
456
|
deviceId: string;
|
|
457
|
+
publicBoxKey: string;
|
|
354
458
|
userName?: string | undefined;
|
|
355
459
|
deviceName?: string | undefined;
|
|
356
460
|
}>>, "many">;
|
|
@@ -358,23 +462,27 @@ export declare const groupApprovalSchema: z.ZodObject<{
|
|
|
358
462
|
users: {
|
|
359
463
|
name: string;
|
|
360
464
|
publicKey: string;
|
|
361
|
-
publicBoxKey: string;
|
|
362
465
|
userId: string;
|
|
466
|
+
publicBoxKey: string;
|
|
363
467
|
signature?: string | undefined;
|
|
468
|
+
anchors?: {
|
|
469
|
+
type: "peers-services" | "https";
|
|
470
|
+
url: string;
|
|
471
|
+
}[] | undefined;
|
|
364
472
|
}[];
|
|
365
473
|
devices: {
|
|
366
474
|
publicKey: string;
|
|
367
|
-
publicBoxKey: string;
|
|
368
475
|
userId: string;
|
|
369
476
|
deviceId: string;
|
|
477
|
+
publicBoxKey: string;
|
|
370
478
|
userName?: string | undefined;
|
|
371
479
|
deviceName?: string | undefined;
|
|
372
480
|
}[];
|
|
373
481
|
groupMembers: {
|
|
374
482
|
role: import("../data").GroupMemberRole;
|
|
375
483
|
signature: string;
|
|
376
|
-
groupId: string;
|
|
377
484
|
userId: string;
|
|
485
|
+
groupId: string;
|
|
378
486
|
groupMemberId: string;
|
|
379
487
|
deleted?: boolean | undefined;
|
|
380
488
|
}[];
|
|
@@ -382,23 +490,27 @@ export declare const groupApprovalSchema: z.ZodObject<{
|
|
|
382
490
|
users: {
|
|
383
491
|
name: string;
|
|
384
492
|
publicKey: string;
|
|
385
|
-
publicBoxKey: string;
|
|
386
493
|
userId: string;
|
|
494
|
+
publicBoxKey: string;
|
|
387
495
|
signature?: string | undefined;
|
|
496
|
+
anchors?: {
|
|
497
|
+
type: "peers-services" | "https";
|
|
498
|
+
url: string;
|
|
499
|
+
}[] | undefined;
|
|
388
500
|
}[];
|
|
389
501
|
devices: {
|
|
390
502
|
publicKey: string;
|
|
391
|
-
publicBoxKey: string;
|
|
392
503
|
userId: string;
|
|
393
504
|
deviceId: string;
|
|
505
|
+
publicBoxKey: string;
|
|
394
506
|
userName?: string | undefined;
|
|
395
507
|
deviceName?: string | undefined;
|
|
396
508
|
}[];
|
|
397
509
|
groupMembers: {
|
|
398
510
|
role: import("../data").GroupMemberRole;
|
|
399
511
|
signature: string;
|
|
400
|
-
groupId: string;
|
|
401
512
|
userId: string;
|
|
513
|
+
groupId: string;
|
|
402
514
|
groupMemberId: string;
|
|
403
515
|
deleted?: boolean | undefined;
|
|
404
516
|
}[];
|
|
@@ -408,15 +520,33 @@ export declare const groupApprovalSchema: z.ZodObject<{
|
|
|
408
520
|
publicKey: z.ZodString;
|
|
409
521
|
publicBoxKey: z.ZodString;
|
|
410
522
|
displayName: z.ZodOptional<z.ZodString>;
|
|
523
|
+
anchors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
524
|
+
type: z.ZodEnum<["peers-services", "https"]>;
|
|
525
|
+
url: z.ZodString;
|
|
526
|
+
}, "strip", z.ZodTypeAny, {
|
|
527
|
+
type: "peers-services" | "https";
|
|
528
|
+
url: string;
|
|
529
|
+
}, {
|
|
530
|
+
type: "peers-services" | "https";
|
|
531
|
+
url: string;
|
|
532
|
+
}>, "many">>;
|
|
411
533
|
}, "strict", z.ZodTypeAny, {
|
|
412
534
|
publicKey: string;
|
|
413
|
-
publicBoxKey: string;
|
|
414
535
|
userId: string;
|
|
536
|
+
publicBoxKey: string;
|
|
537
|
+
anchors?: {
|
|
538
|
+
type: "peers-services" | "https";
|
|
539
|
+
url: string;
|
|
540
|
+
}[] | undefined;
|
|
415
541
|
displayName?: string | undefined;
|
|
416
542
|
}, {
|
|
417
543
|
publicKey: string;
|
|
418
|
-
publicBoxKey: string;
|
|
419
544
|
userId: string;
|
|
545
|
+
publicBoxKey: string;
|
|
546
|
+
anchors?: {
|
|
547
|
+
type: "peers-services" | "https";
|
|
548
|
+
url: string;
|
|
549
|
+
}[] | undefined;
|
|
420
550
|
displayName?: string | undefined;
|
|
421
551
|
}>;
|
|
422
552
|
approverDeviceId: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -440,9 +570,9 @@ export declare const groupApprovalSchema: z.ZodObject<{
|
|
|
440
570
|
description: string;
|
|
441
571
|
publicKey: string;
|
|
442
572
|
signature: string;
|
|
573
|
+
publicBoxKey: string;
|
|
443
574
|
groupId: string;
|
|
444
575
|
founderUserId: string;
|
|
445
|
-
publicBoxKey: string;
|
|
446
576
|
disabled?: boolean | undefined;
|
|
447
577
|
iconClassName?: string | undefined;
|
|
448
578
|
publicRole?: import("../data").GroupMemberRole | undefined;
|
|
@@ -451,8 +581,8 @@ export declare const groupApprovalSchema: z.ZodObject<{
|
|
|
451
581
|
membership: {
|
|
452
582
|
role: import("../data").GroupMemberRole;
|
|
453
583
|
signature: string;
|
|
454
|
-
groupId: string;
|
|
455
584
|
userId: string;
|
|
585
|
+
groupId: string;
|
|
456
586
|
groupMemberId: string;
|
|
457
587
|
deleted?: boolean | undefined;
|
|
458
588
|
};
|
|
@@ -460,31 +590,39 @@ export declare const groupApprovalSchema: z.ZodObject<{
|
|
|
460
590
|
users: {
|
|
461
591
|
name: string;
|
|
462
592
|
publicKey: string;
|
|
463
|
-
publicBoxKey: string;
|
|
464
593
|
userId: string;
|
|
594
|
+
publicBoxKey: string;
|
|
465
595
|
signature?: string | undefined;
|
|
596
|
+
anchors?: {
|
|
597
|
+
type: "peers-services" | "https";
|
|
598
|
+
url: string;
|
|
599
|
+
}[] | undefined;
|
|
466
600
|
}[];
|
|
467
601
|
devices: {
|
|
468
602
|
publicKey: string;
|
|
469
|
-
publicBoxKey: string;
|
|
470
603
|
userId: string;
|
|
471
604
|
deviceId: string;
|
|
605
|
+
publicBoxKey: string;
|
|
472
606
|
userName?: string | undefined;
|
|
473
607
|
deviceName?: string | undefined;
|
|
474
608
|
}[];
|
|
475
609
|
groupMembers: {
|
|
476
610
|
role: import("../data").GroupMemberRole;
|
|
477
611
|
signature: string;
|
|
478
|
-
groupId: string;
|
|
479
612
|
userId: string;
|
|
613
|
+
groupId: string;
|
|
480
614
|
groupMemberId: string;
|
|
481
615
|
deleted?: boolean | undefined;
|
|
482
616
|
}[];
|
|
483
617
|
};
|
|
484
618
|
approver: {
|
|
485
619
|
publicKey: string;
|
|
486
|
-
publicBoxKey: string;
|
|
487
620
|
userId: string;
|
|
621
|
+
publicBoxKey: string;
|
|
622
|
+
anchors?: {
|
|
623
|
+
type: "peers-services" | "https";
|
|
624
|
+
url: string;
|
|
625
|
+
}[] | undefined;
|
|
488
626
|
displayName?: string | undefined;
|
|
489
627
|
};
|
|
490
628
|
approverDeviceId: string;
|
|
@@ -500,9 +638,9 @@ export declare const groupApprovalSchema: z.ZodObject<{
|
|
|
500
638
|
description: string;
|
|
501
639
|
publicKey: string;
|
|
502
640
|
signature: string;
|
|
641
|
+
publicBoxKey: string;
|
|
503
642
|
groupId: string;
|
|
504
643
|
founderUserId: string;
|
|
505
|
-
publicBoxKey: string;
|
|
506
644
|
disabled?: boolean | undefined;
|
|
507
645
|
iconClassName?: string | undefined;
|
|
508
646
|
publicRole?: import("../data").GroupMemberRole | undefined;
|
|
@@ -511,8 +649,8 @@ export declare const groupApprovalSchema: z.ZodObject<{
|
|
|
511
649
|
membership: {
|
|
512
650
|
role: import("../data").GroupMemberRole;
|
|
513
651
|
signature: string;
|
|
514
|
-
groupId: string;
|
|
515
652
|
userId: string;
|
|
653
|
+
groupId: string;
|
|
516
654
|
groupMemberId: string;
|
|
517
655
|
deleted?: boolean | undefined;
|
|
518
656
|
};
|
|
@@ -520,31 +658,39 @@ export declare const groupApprovalSchema: z.ZodObject<{
|
|
|
520
658
|
users: {
|
|
521
659
|
name: string;
|
|
522
660
|
publicKey: string;
|
|
523
|
-
publicBoxKey: string;
|
|
524
661
|
userId: string;
|
|
662
|
+
publicBoxKey: string;
|
|
525
663
|
signature?: string | undefined;
|
|
664
|
+
anchors?: {
|
|
665
|
+
type: "peers-services" | "https";
|
|
666
|
+
url: string;
|
|
667
|
+
}[] | undefined;
|
|
526
668
|
}[];
|
|
527
669
|
devices: {
|
|
528
670
|
publicKey: string;
|
|
529
|
-
publicBoxKey: string;
|
|
530
671
|
userId: string;
|
|
531
672
|
deviceId: string;
|
|
673
|
+
publicBoxKey: string;
|
|
532
674
|
userName?: string | undefined;
|
|
533
675
|
deviceName?: string | undefined;
|
|
534
676
|
}[];
|
|
535
677
|
groupMembers: {
|
|
536
678
|
role: import("../data").GroupMemberRole;
|
|
537
679
|
signature: string;
|
|
538
|
-
groupId: string;
|
|
539
680
|
userId: string;
|
|
681
|
+
groupId: string;
|
|
540
682
|
groupMemberId: string;
|
|
541
683
|
deleted?: boolean | undefined;
|
|
542
684
|
}[];
|
|
543
685
|
};
|
|
544
686
|
approver: {
|
|
545
687
|
publicKey: string;
|
|
546
|
-
publicBoxKey: string;
|
|
547
688
|
userId: string;
|
|
689
|
+
publicBoxKey: string;
|
|
690
|
+
anchors?: {
|
|
691
|
+
type: "peers-services" | "https";
|
|
692
|
+
url: string;
|
|
693
|
+
}[] | undefined;
|
|
548
694
|
displayName?: string | undefined;
|
|
549
695
|
};
|
|
550
696
|
approverDeviceId: string;
|
|
@@ -567,15 +713,33 @@ export declare const inviteDeclineSchema: z.ZodObject<{
|
|
|
567
713
|
publicKey: z.ZodString;
|
|
568
714
|
publicBoxKey: z.ZodString;
|
|
569
715
|
displayName: z.ZodOptional<z.ZodString>;
|
|
716
|
+
anchors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
717
|
+
type: z.ZodEnum<["peers-services", "https"]>;
|
|
718
|
+
url: z.ZodString;
|
|
719
|
+
}, "strip", z.ZodTypeAny, {
|
|
720
|
+
type: "peers-services" | "https";
|
|
721
|
+
url: string;
|
|
722
|
+
}, {
|
|
723
|
+
type: "peers-services" | "https";
|
|
724
|
+
url: string;
|
|
725
|
+
}>, "many">>;
|
|
570
726
|
}, "strict", z.ZodTypeAny, {
|
|
571
727
|
publicKey: string;
|
|
572
|
-
publicBoxKey: string;
|
|
573
728
|
userId: string;
|
|
729
|
+
publicBoxKey: string;
|
|
730
|
+
anchors?: {
|
|
731
|
+
type: "peers-services" | "https";
|
|
732
|
+
url: string;
|
|
733
|
+
}[] | undefined;
|
|
574
734
|
displayName?: string | undefined;
|
|
575
735
|
}, {
|
|
576
736
|
publicKey: string;
|
|
577
|
-
publicBoxKey: string;
|
|
578
737
|
userId: string;
|
|
738
|
+
publicBoxKey: string;
|
|
739
|
+
anchors?: {
|
|
740
|
+
type: "peers-services" | "https";
|
|
741
|
+
url: string;
|
|
742
|
+
}[] | undefined;
|
|
579
743
|
displayName?: string | undefined;
|
|
580
744
|
}>;
|
|
581
745
|
reason: z.ZodOptional<z.ZodString>;
|
|
@@ -584,8 +748,12 @@ export declare const inviteDeclineSchema: z.ZodObject<{
|
|
|
584
748
|
inviteNonce: string;
|
|
585
749
|
by: {
|
|
586
750
|
publicKey: string;
|
|
587
|
-
publicBoxKey: string;
|
|
588
751
|
userId: string;
|
|
752
|
+
publicBoxKey: string;
|
|
753
|
+
anchors?: {
|
|
754
|
+
type: "peers-services" | "https";
|
|
755
|
+
url: string;
|
|
756
|
+
}[] | undefined;
|
|
589
757
|
displayName?: string | undefined;
|
|
590
758
|
};
|
|
591
759
|
reason?: string | undefined;
|
|
@@ -595,8 +763,12 @@ export declare const inviteDeclineSchema: z.ZodObject<{
|
|
|
595
763
|
inviteNonce: string;
|
|
596
764
|
by: {
|
|
597
765
|
publicKey: string;
|
|
598
|
-
publicBoxKey: string;
|
|
599
766
|
userId: string;
|
|
767
|
+
publicBoxKey: string;
|
|
768
|
+
anchors?: {
|
|
769
|
+
type: "peers-services" | "https";
|
|
770
|
+
url: string;
|
|
771
|
+
}[] | undefined;
|
|
600
772
|
displayName?: string | undefined;
|
|
601
773
|
};
|
|
602
774
|
reason?: string | undefined;
|
|
@@ -617,15 +789,33 @@ export declare const inviteAcceptedSchema: z.ZodObject<{
|
|
|
617
789
|
publicKey: z.ZodString;
|
|
618
790
|
publicBoxKey: z.ZodString;
|
|
619
791
|
displayName: z.ZodOptional<z.ZodString>;
|
|
792
|
+
anchors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
793
|
+
type: z.ZodEnum<["peers-services", "https"]>;
|
|
794
|
+
url: z.ZodString;
|
|
795
|
+
}, "strip", z.ZodTypeAny, {
|
|
796
|
+
type: "peers-services" | "https";
|
|
797
|
+
url: string;
|
|
798
|
+
}, {
|
|
799
|
+
type: "peers-services" | "https";
|
|
800
|
+
url: string;
|
|
801
|
+
}>, "many">>;
|
|
620
802
|
}, "strict", z.ZodTypeAny, {
|
|
621
803
|
publicKey: string;
|
|
622
|
-
publicBoxKey: string;
|
|
623
804
|
userId: string;
|
|
805
|
+
publicBoxKey: string;
|
|
806
|
+
anchors?: {
|
|
807
|
+
type: "peers-services" | "https";
|
|
808
|
+
url: string;
|
|
809
|
+
}[] | undefined;
|
|
624
810
|
displayName?: string | undefined;
|
|
625
811
|
}, {
|
|
626
812
|
publicKey: string;
|
|
627
|
-
publicBoxKey: string;
|
|
628
813
|
userId: string;
|
|
814
|
+
publicBoxKey: string;
|
|
815
|
+
anchors?: {
|
|
816
|
+
type: "peers-services" | "https";
|
|
817
|
+
url: string;
|
|
818
|
+
}[] | undefined;
|
|
629
819
|
displayName?: string | undefined;
|
|
630
820
|
}>;
|
|
631
821
|
byDeviceId: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -634,8 +824,12 @@ export declare const inviteAcceptedSchema: z.ZodObject<{
|
|
|
634
824
|
inviteNonce: string;
|
|
635
825
|
by: {
|
|
636
826
|
publicKey: string;
|
|
637
|
-
publicBoxKey: string;
|
|
638
827
|
userId: string;
|
|
828
|
+
publicBoxKey: string;
|
|
829
|
+
anchors?: {
|
|
830
|
+
type: "peers-services" | "https";
|
|
831
|
+
url: string;
|
|
832
|
+
}[] | undefined;
|
|
639
833
|
displayName?: string | undefined;
|
|
640
834
|
};
|
|
641
835
|
byDeviceId: string;
|
|
@@ -645,8 +839,12 @@ export declare const inviteAcceptedSchema: z.ZodObject<{
|
|
|
645
839
|
inviteNonce: string;
|
|
646
840
|
by: {
|
|
647
841
|
publicKey: string;
|
|
648
|
-
publicBoxKey: string;
|
|
649
842
|
userId: string;
|
|
843
|
+
publicBoxKey: string;
|
|
844
|
+
anchors?: {
|
|
845
|
+
type: "peers-services" | "https";
|
|
846
|
+
url: string;
|
|
847
|
+
}[] | undefined;
|
|
650
848
|
displayName?: string | undefined;
|
|
651
849
|
};
|
|
652
850
|
byDeviceId: string;
|
|
@@ -665,15 +863,33 @@ export declare const inviteMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
665
863
|
publicKey: z.ZodString;
|
|
666
864
|
publicBoxKey: z.ZodString;
|
|
667
865
|
displayName: z.ZodOptional<z.ZodString>;
|
|
866
|
+
anchors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
867
|
+
type: z.ZodEnum<["peers-services", "https"]>;
|
|
868
|
+
url: z.ZodString;
|
|
869
|
+
}, "strip", z.ZodTypeAny, {
|
|
870
|
+
type: "peers-services" | "https";
|
|
871
|
+
url: string;
|
|
872
|
+
}, {
|
|
873
|
+
type: "peers-services" | "https";
|
|
874
|
+
url: string;
|
|
875
|
+
}>, "many">>;
|
|
668
876
|
}, "strict", z.ZodTypeAny, {
|
|
669
877
|
publicKey: string;
|
|
670
|
-
publicBoxKey: string;
|
|
671
878
|
userId: string;
|
|
879
|
+
publicBoxKey: string;
|
|
880
|
+
anchors?: {
|
|
881
|
+
type: "peers-services" | "https";
|
|
882
|
+
url: string;
|
|
883
|
+
}[] | undefined;
|
|
672
884
|
displayName?: string | undefined;
|
|
673
885
|
}, {
|
|
674
886
|
publicKey: string;
|
|
675
|
-
publicBoxKey: string;
|
|
676
887
|
userId: string;
|
|
888
|
+
publicBoxKey: string;
|
|
889
|
+
anchors?: {
|
|
890
|
+
type: "peers-services" | "https";
|
|
891
|
+
url: string;
|
|
892
|
+
}[] | undefined;
|
|
677
893
|
displayName?: string | undefined;
|
|
678
894
|
}>;
|
|
679
895
|
responderDeviceId: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -681,8 +897,12 @@ export declare const inviteMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
681
897
|
kind: "contact-reply";
|
|
682
898
|
responder: {
|
|
683
899
|
publicKey: string;
|
|
684
|
-
publicBoxKey: string;
|
|
685
900
|
userId: string;
|
|
901
|
+
publicBoxKey: string;
|
|
902
|
+
anchors?: {
|
|
903
|
+
type: "peers-services" | "https";
|
|
904
|
+
url: string;
|
|
905
|
+
}[] | undefined;
|
|
686
906
|
displayName?: string | undefined;
|
|
687
907
|
};
|
|
688
908
|
inviteNonce: string;
|
|
@@ -692,8 +912,12 @@ export declare const inviteMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
692
912
|
kind: "contact-reply";
|
|
693
913
|
responder: {
|
|
694
914
|
publicKey: string;
|
|
695
|
-
publicBoxKey: string;
|
|
696
915
|
userId: string;
|
|
916
|
+
publicBoxKey: string;
|
|
917
|
+
anchors?: {
|
|
918
|
+
type: "peers-services" | "https";
|
|
919
|
+
url: string;
|
|
920
|
+
}[] | undefined;
|
|
697
921
|
displayName?: string | undefined;
|
|
698
922
|
};
|
|
699
923
|
inviteNonce: string;
|
|
@@ -709,15 +933,33 @@ export declare const inviteMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
709
933
|
publicKey: z.ZodString;
|
|
710
934
|
publicBoxKey: z.ZodString;
|
|
711
935
|
displayName: z.ZodOptional<z.ZodString>;
|
|
936
|
+
anchors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
937
|
+
type: z.ZodEnum<["peers-services", "https"]>;
|
|
938
|
+
url: z.ZodString;
|
|
939
|
+
}, "strip", z.ZodTypeAny, {
|
|
940
|
+
type: "peers-services" | "https";
|
|
941
|
+
url: string;
|
|
942
|
+
}, {
|
|
943
|
+
type: "peers-services" | "https";
|
|
944
|
+
url: string;
|
|
945
|
+
}>, "many">>;
|
|
712
946
|
}, "strict", z.ZodTypeAny, {
|
|
713
947
|
publicKey: string;
|
|
714
|
-
publicBoxKey: string;
|
|
715
948
|
userId: string;
|
|
949
|
+
publicBoxKey: string;
|
|
950
|
+
anchors?: {
|
|
951
|
+
type: "peers-services" | "https";
|
|
952
|
+
url: string;
|
|
953
|
+
}[] | undefined;
|
|
716
954
|
displayName?: string | undefined;
|
|
717
955
|
}, {
|
|
718
956
|
publicKey: string;
|
|
719
|
-
publicBoxKey: string;
|
|
720
957
|
userId: string;
|
|
958
|
+
publicBoxKey: string;
|
|
959
|
+
anchors?: {
|
|
960
|
+
type: "peers-services" | "https";
|
|
961
|
+
url: string;
|
|
962
|
+
}[] | undefined;
|
|
721
963
|
displayName?: string | undefined;
|
|
722
964
|
}>;
|
|
723
965
|
expiresAt: z.ZodString;
|
|
@@ -735,15 +977,15 @@ export declare const inviteMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
735
977
|
name: string;
|
|
736
978
|
role: import("../data").GroupMemberRole;
|
|
737
979
|
publicKey: string;
|
|
738
|
-
groupId: string;
|
|
739
980
|
publicBoxKey: string;
|
|
981
|
+
groupId: string;
|
|
740
982
|
mode: "open" | "approve";
|
|
741
983
|
}, {
|
|
742
984
|
name: string;
|
|
743
985
|
role: import("../data").GroupMemberRole;
|
|
744
986
|
publicKey: string;
|
|
745
|
-
groupId: string;
|
|
746
987
|
publicBoxKey: string;
|
|
988
|
+
groupId: string;
|
|
747
989
|
mode: "open" | "approve";
|
|
748
990
|
}>>;
|
|
749
991
|
signature: z.ZodString;
|
|
@@ -755,8 +997,12 @@ export declare const inviteMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
755
997
|
v: 1;
|
|
756
998
|
inviter: {
|
|
757
999
|
publicKey: string;
|
|
758
|
-
publicBoxKey: string;
|
|
759
1000
|
userId: string;
|
|
1001
|
+
publicBoxKey: string;
|
|
1002
|
+
anchors?: {
|
|
1003
|
+
type: "peers-services" | "https";
|
|
1004
|
+
url: string;
|
|
1005
|
+
}[] | undefined;
|
|
760
1006
|
displayName?: string | undefined;
|
|
761
1007
|
};
|
|
762
1008
|
epoch: number;
|
|
@@ -765,8 +1011,8 @@ export declare const inviteMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
765
1011
|
name: string;
|
|
766
1012
|
role: import("../data").GroupMemberRole;
|
|
767
1013
|
publicKey: string;
|
|
768
|
-
groupId: string;
|
|
769
1014
|
publicBoxKey: string;
|
|
1015
|
+
groupId: string;
|
|
770
1016
|
mode: "open" | "approve";
|
|
771
1017
|
} | undefined;
|
|
772
1018
|
}, {
|
|
@@ -777,8 +1023,12 @@ export declare const inviteMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
777
1023
|
v: 1;
|
|
778
1024
|
inviter: {
|
|
779
1025
|
publicKey: string;
|
|
780
|
-
publicBoxKey: string;
|
|
781
1026
|
userId: string;
|
|
1027
|
+
publicBoxKey: string;
|
|
1028
|
+
anchors?: {
|
|
1029
|
+
type: "peers-services" | "https";
|
|
1030
|
+
url: string;
|
|
1031
|
+
}[] | undefined;
|
|
782
1032
|
displayName?: string | undefined;
|
|
783
1033
|
};
|
|
784
1034
|
epoch: number;
|
|
@@ -787,8 +1037,8 @@ export declare const inviteMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
787
1037
|
name: string;
|
|
788
1038
|
role: import("../data").GroupMemberRole;
|
|
789
1039
|
publicKey: string;
|
|
790
|
-
groupId: string;
|
|
791
1040
|
publicBoxKey: string;
|
|
1041
|
+
groupId: string;
|
|
792
1042
|
mode: "open" | "approve";
|
|
793
1043
|
} | undefined;
|
|
794
1044
|
}>;
|
|
@@ -797,15 +1047,33 @@ export declare const inviteMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
797
1047
|
publicKey: z.ZodString;
|
|
798
1048
|
publicBoxKey: z.ZodString;
|
|
799
1049
|
displayName: z.ZodOptional<z.ZodString>;
|
|
1050
|
+
anchors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1051
|
+
type: z.ZodEnum<["peers-services", "https"]>;
|
|
1052
|
+
url: z.ZodString;
|
|
1053
|
+
}, "strip", z.ZodTypeAny, {
|
|
1054
|
+
type: "peers-services" | "https";
|
|
1055
|
+
url: string;
|
|
1056
|
+
}, {
|
|
1057
|
+
type: "peers-services" | "https";
|
|
1058
|
+
url: string;
|
|
1059
|
+
}>, "many">>;
|
|
800
1060
|
}, "strict", z.ZodTypeAny, {
|
|
801
1061
|
publicKey: string;
|
|
802
|
-
publicBoxKey: string;
|
|
803
1062
|
userId: string;
|
|
1063
|
+
publicBoxKey: string;
|
|
1064
|
+
anchors?: {
|
|
1065
|
+
type: "peers-services" | "https";
|
|
1066
|
+
url: string;
|
|
1067
|
+
}[] | undefined;
|
|
804
1068
|
displayName?: string | undefined;
|
|
805
1069
|
}, {
|
|
806
1070
|
publicKey: string;
|
|
807
|
-
publicBoxKey: string;
|
|
808
1071
|
userId: string;
|
|
1072
|
+
publicBoxKey: string;
|
|
1073
|
+
anchors?: {
|
|
1074
|
+
type: "peers-services" | "https";
|
|
1075
|
+
url: string;
|
|
1076
|
+
}[] | undefined;
|
|
809
1077
|
displayName?: string | undefined;
|
|
810
1078
|
}>;
|
|
811
1079
|
requesterDeviceId: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -819,8 +1087,12 @@ export declare const inviteMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
819
1087
|
v: 1;
|
|
820
1088
|
inviter: {
|
|
821
1089
|
publicKey: string;
|
|
822
|
-
publicBoxKey: string;
|
|
823
1090
|
userId: string;
|
|
1091
|
+
publicBoxKey: string;
|
|
1092
|
+
anchors?: {
|
|
1093
|
+
type: "peers-services" | "https";
|
|
1094
|
+
url: string;
|
|
1095
|
+
}[] | undefined;
|
|
824
1096
|
displayName?: string | undefined;
|
|
825
1097
|
};
|
|
826
1098
|
epoch: number;
|
|
@@ -829,15 +1101,19 @@ export declare const inviteMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
829
1101
|
name: string;
|
|
830
1102
|
role: import("../data").GroupMemberRole;
|
|
831
1103
|
publicKey: string;
|
|
832
|
-
groupId: string;
|
|
833
1104
|
publicBoxKey: string;
|
|
1105
|
+
groupId: string;
|
|
834
1106
|
mode: "open" | "approve";
|
|
835
1107
|
} | undefined;
|
|
836
1108
|
};
|
|
837
1109
|
requester: {
|
|
838
1110
|
publicKey: string;
|
|
839
|
-
publicBoxKey: string;
|
|
840
1111
|
userId: string;
|
|
1112
|
+
publicBoxKey: string;
|
|
1113
|
+
anchors?: {
|
|
1114
|
+
type: "peers-services" | "https";
|
|
1115
|
+
url: string;
|
|
1116
|
+
}[] | undefined;
|
|
841
1117
|
displayName?: string | undefined;
|
|
842
1118
|
};
|
|
843
1119
|
requesterDeviceId: string;
|
|
@@ -851,8 +1127,12 @@ export declare const inviteMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
851
1127
|
v: 1;
|
|
852
1128
|
inviter: {
|
|
853
1129
|
publicKey: string;
|
|
854
|
-
publicBoxKey: string;
|
|
855
1130
|
userId: string;
|
|
1131
|
+
publicBoxKey: string;
|
|
1132
|
+
anchors?: {
|
|
1133
|
+
type: "peers-services" | "https";
|
|
1134
|
+
url: string;
|
|
1135
|
+
}[] | undefined;
|
|
856
1136
|
displayName?: string | undefined;
|
|
857
1137
|
};
|
|
858
1138
|
epoch: number;
|
|
@@ -861,15 +1141,19 @@ export declare const inviteMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
861
1141
|
name: string;
|
|
862
1142
|
role: import("../data").GroupMemberRole;
|
|
863
1143
|
publicKey: string;
|
|
864
|
-
groupId: string;
|
|
865
1144
|
publicBoxKey: string;
|
|
1145
|
+
groupId: string;
|
|
866
1146
|
mode: "open" | "approve";
|
|
867
1147
|
} | undefined;
|
|
868
1148
|
};
|
|
869
1149
|
requester: {
|
|
870
1150
|
publicKey: string;
|
|
871
|
-
publicBoxKey: string;
|
|
872
1151
|
userId: string;
|
|
1152
|
+
publicBoxKey: string;
|
|
1153
|
+
anchors?: {
|
|
1154
|
+
type: "peers-services" | "https";
|
|
1155
|
+
url: string;
|
|
1156
|
+
}[] | undefined;
|
|
873
1157
|
displayName?: string | undefined;
|
|
874
1158
|
};
|
|
875
1159
|
requesterDeviceId: string;
|
|
@@ -893,9 +1177,9 @@ export declare const inviteMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
893
1177
|
description: string;
|
|
894
1178
|
publicKey: string;
|
|
895
1179
|
signature: string;
|
|
1180
|
+
publicBoxKey: string;
|
|
896
1181
|
groupId: string;
|
|
897
1182
|
founderUserId: string;
|
|
898
|
-
publicBoxKey: string;
|
|
899
1183
|
disabled?: boolean | undefined;
|
|
900
1184
|
iconClassName?: string | undefined;
|
|
901
1185
|
publicRole?: import("../data").GroupMemberRole | undefined;
|
|
@@ -904,9 +1188,9 @@ export declare const inviteMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
904
1188
|
description: string;
|
|
905
1189
|
publicKey: string;
|
|
906
1190
|
signature: string;
|
|
1191
|
+
publicBoxKey: string;
|
|
907
1192
|
groupId: string;
|
|
908
1193
|
founderUserId: string;
|
|
909
|
-
publicBoxKey: string;
|
|
910
1194
|
disabled?: boolean | undefined;
|
|
911
1195
|
iconClassName?: string | undefined;
|
|
912
1196
|
publicRole?: import("../data").GroupMemberRole | undefined;
|
|
@@ -921,15 +1205,15 @@ export declare const inviteMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
921
1205
|
}, "strip", z.ZodTypeAny, {
|
|
922
1206
|
role: import("../data").GroupMemberRole;
|
|
923
1207
|
signature: string;
|
|
924
|
-
groupId: string;
|
|
925
1208
|
userId: string;
|
|
1209
|
+
groupId: string;
|
|
926
1210
|
groupMemberId: string;
|
|
927
1211
|
deleted?: boolean | undefined;
|
|
928
1212
|
}, {
|
|
929
1213
|
role: import("../data").GroupMemberRole;
|
|
930
1214
|
signature: string;
|
|
931
|
-
groupId: string;
|
|
932
1215
|
userId: string;
|
|
1216
|
+
groupId: string;
|
|
933
1217
|
groupMemberId: string;
|
|
934
1218
|
deleted?: boolean | undefined;
|
|
935
1219
|
}>>;
|
|
@@ -944,15 +1228,15 @@ export declare const inviteMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
944
1228
|
}, "strip", z.ZodTypeAny, {
|
|
945
1229
|
role: import("../data").GroupMemberRole;
|
|
946
1230
|
signature: string;
|
|
947
|
-
groupId: string;
|
|
948
1231
|
userId: string;
|
|
1232
|
+
groupId: string;
|
|
949
1233
|
groupMemberId: string;
|
|
950
1234
|
deleted?: boolean | undefined;
|
|
951
1235
|
}, {
|
|
952
1236
|
role: import("../data").GroupMemberRole;
|
|
953
1237
|
signature: string;
|
|
954
|
-
groupId: string;
|
|
955
1238
|
userId: string;
|
|
1239
|
+
groupId: string;
|
|
956
1240
|
groupMemberId: string;
|
|
957
1241
|
deleted?: boolean | undefined;
|
|
958
1242
|
}>>, "many">;
|
|
@@ -961,19 +1245,37 @@ export declare const inviteMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
961
1245
|
name: z.ZodString;
|
|
962
1246
|
publicKey: z.ZodString;
|
|
963
1247
|
publicBoxKey: z.ZodString;
|
|
1248
|
+
anchors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1249
|
+
type: z.ZodEnum<["peers-services", "https"]>;
|
|
1250
|
+
url: z.ZodString;
|
|
1251
|
+
}, "strip", z.ZodTypeAny, {
|
|
1252
|
+
type: "peers-services" | "https";
|
|
1253
|
+
url: string;
|
|
1254
|
+
}, {
|
|
1255
|
+
type: "peers-services" | "https";
|
|
1256
|
+
url: string;
|
|
1257
|
+
}>, "many">>;
|
|
964
1258
|
signature: z.ZodOptional<z.ZodString>;
|
|
965
1259
|
}, "strip", z.ZodTypeAny, {
|
|
966
1260
|
name: string;
|
|
967
1261
|
publicKey: string;
|
|
968
|
-
publicBoxKey: string;
|
|
969
1262
|
userId: string;
|
|
1263
|
+
publicBoxKey: string;
|
|
970
1264
|
signature?: string | undefined;
|
|
1265
|
+
anchors?: {
|
|
1266
|
+
type: "peers-services" | "https";
|
|
1267
|
+
url: string;
|
|
1268
|
+
}[] | undefined;
|
|
971
1269
|
}, {
|
|
972
1270
|
name: string;
|
|
973
1271
|
publicKey: string;
|
|
974
|
-
publicBoxKey: string;
|
|
975
1272
|
userId: string;
|
|
1273
|
+
publicBoxKey: string;
|
|
976
1274
|
signature?: string | undefined;
|
|
1275
|
+
anchors?: {
|
|
1276
|
+
type: "peers-services" | "https";
|
|
1277
|
+
url: string;
|
|
1278
|
+
}[] | undefined;
|
|
977
1279
|
}>>, "many">;
|
|
978
1280
|
devices: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
979
1281
|
userId: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -984,16 +1286,16 @@ export declare const inviteMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
984
1286
|
deviceName: z.ZodOptional<z.ZodString>;
|
|
985
1287
|
}, "strip", z.ZodTypeAny, {
|
|
986
1288
|
publicKey: string;
|
|
987
|
-
publicBoxKey: string;
|
|
988
1289
|
userId: string;
|
|
989
1290
|
deviceId: string;
|
|
1291
|
+
publicBoxKey: string;
|
|
990
1292
|
userName?: string | undefined;
|
|
991
1293
|
deviceName?: string | undefined;
|
|
992
1294
|
}, {
|
|
993
1295
|
publicKey: string;
|
|
994
|
-
publicBoxKey: string;
|
|
995
1296
|
userId: string;
|
|
996
1297
|
deviceId: string;
|
|
1298
|
+
publicBoxKey: string;
|
|
997
1299
|
userName?: string | undefined;
|
|
998
1300
|
deviceName?: string | undefined;
|
|
999
1301
|
}>>, "many">;
|
|
@@ -1001,23 +1303,27 @@ export declare const inviteMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1001
1303
|
users: {
|
|
1002
1304
|
name: string;
|
|
1003
1305
|
publicKey: string;
|
|
1004
|
-
publicBoxKey: string;
|
|
1005
1306
|
userId: string;
|
|
1307
|
+
publicBoxKey: string;
|
|
1006
1308
|
signature?: string | undefined;
|
|
1309
|
+
anchors?: {
|
|
1310
|
+
type: "peers-services" | "https";
|
|
1311
|
+
url: string;
|
|
1312
|
+
}[] | undefined;
|
|
1007
1313
|
}[];
|
|
1008
1314
|
devices: {
|
|
1009
1315
|
publicKey: string;
|
|
1010
|
-
publicBoxKey: string;
|
|
1011
1316
|
userId: string;
|
|
1012
1317
|
deviceId: string;
|
|
1318
|
+
publicBoxKey: string;
|
|
1013
1319
|
userName?: string | undefined;
|
|
1014
1320
|
deviceName?: string | undefined;
|
|
1015
1321
|
}[];
|
|
1016
1322
|
groupMembers: {
|
|
1017
1323
|
role: import("../data").GroupMemberRole;
|
|
1018
1324
|
signature: string;
|
|
1019
|
-
groupId: string;
|
|
1020
1325
|
userId: string;
|
|
1326
|
+
groupId: string;
|
|
1021
1327
|
groupMemberId: string;
|
|
1022
1328
|
deleted?: boolean | undefined;
|
|
1023
1329
|
}[];
|
|
@@ -1025,23 +1331,27 @@ export declare const inviteMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1025
1331
|
users: {
|
|
1026
1332
|
name: string;
|
|
1027
1333
|
publicKey: string;
|
|
1028
|
-
publicBoxKey: string;
|
|
1029
1334
|
userId: string;
|
|
1335
|
+
publicBoxKey: string;
|
|
1030
1336
|
signature?: string | undefined;
|
|
1337
|
+
anchors?: {
|
|
1338
|
+
type: "peers-services" | "https";
|
|
1339
|
+
url: string;
|
|
1340
|
+
}[] | undefined;
|
|
1031
1341
|
}[];
|
|
1032
1342
|
devices: {
|
|
1033
1343
|
publicKey: string;
|
|
1034
|
-
publicBoxKey: string;
|
|
1035
1344
|
userId: string;
|
|
1036
1345
|
deviceId: string;
|
|
1346
|
+
publicBoxKey: string;
|
|
1037
1347
|
userName?: string | undefined;
|
|
1038
1348
|
deviceName?: string | undefined;
|
|
1039
1349
|
}[];
|
|
1040
1350
|
groupMembers: {
|
|
1041
1351
|
role: import("../data").GroupMemberRole;
|
|
1042
1352
|
signature: string;
|
|
1043
|
-
groupId: string;
|
|
1044
1353
|
userId: string;
|
|
1354
|
+
groupId: string;
|
|
1045
1355
|
groupMemberId: string;
|
|
1046
1356
|
deleted?: boolean | undefined;
|
|
1047
1357
|
}[];
|
|
@@ -1051,15 +1361,33 @@ export declare const inviteMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1051
1361
|
publicKey: z.ZodString;
|
|
1052
1362
|
publicBoxKey: z.ZodString;
|
|
1053
1363
|
displayName: z.ZodOptional<z.ZodString>;
|
|
1364
|
+
anchors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1365
|
+
type: z.ZodEnum<["peers-services", "https"]>;
|
|
1366
|
+
url: z.ZodString;
|
|
1367
|
+
}, "strip", z.ZodTypeAny, {
|
|
1368
|
+
type: "peers-services" | "https";
|
|
1369
|
+
url: string;
|
|
1370
|
+
}, {
|
|
1371
|
+
type: "peers-services" | "https";
|
|
1372
|
+
url: string;
|
|
1373
|
+
}>, "many">>;
|
|
1054
1374
|
}, "strict", z.ZodTypeAny, {
|
|
1055
1375
|
publicKey: string;
|
|
1056
|
-
publicBoxKey: string;
|
|
1057
1376
|
userId: string;
|
|
1377
|
+
publicBoxKey: string;
|
|
1378
|
+
anchors?: {
|
|
1379
|
+
type: "peers-services" | "https";
|
|
1380
|
+
url: string;
|
|
1381
|
+
}[] | undefined;
|
|
1058
1382
|
displayName?: string | undefined;
|
|
1059
1383
|
}, {
|
|
1060
1384
|
publicKey: string;
|
|
1061
|
-
publicBoxKey: string;
|
|
1062
1385
|
userId: string;
|
|
1386
|
+
publicBoxKey: string;
|
|
1387
|
+
anchors?: {
|
|
1388
|
+
type: "peers-services" | "https";
|
|
1389
|
+
url: string;
|
|
1390
|
+
}[] | undefined;
|
|
1063
1391
|
displayName?: string | undefined;
|
|
1064
1392
|
}>;
|
|
1065
1393
|
approverDeviceId: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -1083,9 +1411,9 @@ export declare const inviteMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1083
1411
|
description: string;
|
|
1084
1412
|
publicKey: string;
|
|
1085
1413
|
signature: string;
|
|
1414
|
+
publicBoxKey: string;
|
|
1086
1415
|
groupId: string;
|
|
1087
1416
|
founderUserId: string;
|
|
1088
|
-
publicBoxKey: string;
|
|
1089
1417
|
disabled?: boolean | undefined;
|
|
1090
1418
|
iconClassName?: string | undefined;
|
|
1091
1419
|
publicRole?: import("../data").GroupMemberRole | undefined;
|
|
@@ -1094,8 +1422,8 @@ export declare const inviteMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1094
1422
|
membership: {
|
|
1095
1423
|
role: import("../data").GroupMemberRole;
|
|
1096
1424
|
signature: string;
|
|
1097
|
-
groupId: string;
|
|
1098
1425
|
userId: string;
|
|
1426
|
+
groupId: string;
|
|
1099
1427
|
groupMemberId: string;
|
|
1100
1428
|
deleted?: boolean | undefined;
|
|
1101
1429
|
};
|
|
@@ -1103,31 +1431,39 @@ export declare const inviteMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1103
1431
|
users: {
|
|
1104
1432
|
name: string;
|
|
1105
1433
|
publicKey: string;
|
|
1106
|
-
publicBoxKey: string;
|
|
1107
1434
|
userId: string;
|
|
1435
|
+
publicBoxKey: string;
|
|
1108
1436
|
signature?: string | undefined;
|
|
1437
|
+
anchors?: {
|
|
1438
|
+
type: "peers-services" | "https";
|
|
1439
|
+
url: string;
|
|
1440
|
+
}[] | undefined;
|
|
1109
1441
|
}[];
|
|
1110
1442
|
devices: {
|
|
1111
1443
|
publicKey: string;
|
|
1112
|
-
publicBoxKey: string;
|
|
1113
1444
|
userId: string;
|
|
1114
1445
|
deviceId: string;
|
|
1446
|
+
publicBoxKey: string;
|
|
1115
1447
|
userName?: string | undefined;
|
|
1116
1448
|
deviceName?: string | undefined;
|
|
1117
1449
|
}[];
|
|
1118
1450
|
groupMembers: {
|
|
1119
1451
|
role: import("../data").GroupMemberRole;
|
|
1120
1452
|
signature: string;
|
|
1121
|
-
groupId: string;
|
|
1122
1453
|
userId: string;
|
|
1454
|
+
groupId: string;
|
|
1123
1455
|
groupMemberId: string;
|
|
1124
1456
|
deleted?: boolean | undefined;
|
|
1125
1457
|
}[];
|
|
1126
1458
|
};
|
|
1127
1459
|
approver: {
|
|
1128
1460
|
publicKey: string;
|
|
1129
|
-
publicBoxKey: string;
|
|
1130
1461
|
userId: string;
|
|
1462
|
+
publicBoxKey: string;
|
|
1463
|
+
anchors?: {
|
|
1464
|
+
type: "peers-services" | "https";
|
|
1465
|
+
url: string;
|
|
1466
|
+
}[] | undefined;
|
|
1131
1467
|
displayName?: string | undefined;
|
|
1132
1468
|
};
|
|
1133
1469
|
approverDeviceId: string;
|
|
@@ -1143,9 +1479,9 @@ export declare const inviteMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1143
1479
|
description: string;
|
|
1144
1480
|
publicKey: string;
|
|
1145
1481
|
signature: string;
|
|
1482
|
+
publicBoxKey: string;
|
|
1146
1483
|
groupId: string;
|
|
1147
1484
|
founderUserId: string;
|
|
1148
|
-
publicBoxKey: string;
|
|
1149
1485
|
disabled?: boolean | undefined;
|
|
1150
1486
|
iconClassName?: string | undefined;
|
|
1151
1487
|
publicRole?: import("../data").GroupMemberRole | undefined;
|
|
@@ -1154,8 +1490,8 @@ export declare const inviteMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1154
1490
|
membership: {
|
|
1155
1491
|
role: import("../data").GroupMemberRole;
|
|
1156
1492
|
signature: string;
|
|
1157
|
-
groupId: string;
|
|
1158
1493
|
userId: string;
|
|
1494
|
+
groupId: string;
|
|
1159
1495
|
groupMemberId: string;
|
|
1160
1496
|
deleted?: boolean | undefined;
|
|
1161
1497
|
};
|
|
@@ -1163,31 +1499,39 @@ export declare const inviteMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1163
1499
|
users: {
|
|
1164
1500
|
name: string;
|
|
1165
1501
|
publicKey: string;
|
|
1166
|
-
publicBoxKey: string;
|
|
1167
1502
|
userId: string;
|
|
1503
|
+
publicBoxKey: string;
|
|
1168
1504
|
signature?: string | undefined;
|
|
1505
|
+
anchors?: {
|
|
1506
|
+
type: "peers-services" | "https";
|
|
1507
|
+
url: string;
|
|
1508
|
+
}[] | undefined;
|
|
1169
1509
|
}[];
|
|
1170
1510
|
devices: {
|
|
1171
1511
|
publicKey: string;
|
|
1172
|
-
publicBoxKey: string;
|
|
1173
1512
|
userId: string;
|
|
1174
1513
|
deviceId: string;
|
|
1514
|
+
publicBoxKey: string;
|
|
1175
1515
|
userName?: string | undefined;
|
|
1176
1516
|
deviceName?: string | undefined;
|
|
1177
1517
|
}[];
|
|
1178
1518
|
groupMembers: {
|
|
1179
1519
|
role: import("../data").GroupMemberRole;
|
|
1180
1520
|
signature: string;
|
|
1181
|
-
groupId: string;
|
|
1182
1521
|
userId: string;
|
|
1522
|
+
groupId: string;
|
|
1183
1523
|
groupMemberId: string;
|
|
1184
1524
|
deleted?: boolean | undefined;
|
|
1185
1525
|
}[];
|
|
1186
1526
|
};
|
|
1187
1527
|
approver: {
|
|
1188
1528
|
publicKey: string;
|
|
1189
|
-
publicBoxKey: string;
|
|
1190
1529
|
userId: string;
|
|
1530
|
+
publicBoxKey: string;
|
|
1531
|
+
anchors?: {
|
|
1532
|
+
type: "peers-services" | "https";
|
|
1533
|
+
url: string;
|
|
1534
|
+
}[] | undefined;
|
|
1191
1535
|
displayName?: string | undefined;
|
|
1192
1536
|
};
|
|
1193
1537
|
approverDeviceId: string;
|
|
@@ -1206,15 +1550,33 @@ export declare const inviteMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1206
1550
|
publicKey: z.ZodString;
|
|
1207
1551
|
publicBoxKey: z.ZodString;
|
|
1208
1552
|
displayName: z.ZodOptional<z.ZodString>;
|
|
1553
|
+
anchors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1554
|
+
type: z.ZodEnum<["peers-services", "https"]>;
|
|
1555
|
+
url: z.ZodString;
|
|
1556
|
+
}, "strip", z.ZodTypeAny, {
|
|
1557
|
+
type: "peers-services" | "https";
|
|
1558
|
+
url: string;
|
|
1559
|
+
}, {
|
|
1560
|
+
type: "peers-services" | "https";
|
|
1561
|
+
url: string;
|
|
1562
|
+
}>, "many">>;
|
|
1209
1563
|
}, "strict", z.ZodTypeAny, {
|
|
1210
1564
|
publicKey: string;
|
|
1211
|
-
publicBoxKey: string;
|
|
1212
1565
|
userId: string;
|
|
1566
|
+
publicBoxKey: string;
|
|
1567
|
+
anchors?: {
|
|
1568
|
+
type: "peers-services" | "https";
|
|
1569
|
+
url: string;
|
|
1570
|
+
}[] | undefined;
|
|
1213
1571
|
displayName?: string | undefined;
|
|
1214
1572
|
}, {
|
|
1215
1573
|
publicKey: string;
|
|
1216
|
-
publicBoxKey: string;
|
|
1217
1574
|
userId: string;
|
|
1575
|
+
publicBoxKey: string;
|
|
1576
|
+
anchors?: {
|
|
1577
|
+
type: "peers-services" | "https";
|
|
1578
|
+
url: string;
|
|
1579
|
+
}[] | undefined;
|
|
1218
1580
|
displayName?: string | undefined;
|
|
1219
1581
|
}>;
|
|
1220
1582
|
reason: z.ZodOptional<z.ZodString>;
|
|
@@ -1223,8 +1585,12 @@ export declare const inviteMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1223
1585
|
inviteNonce: string;
|
|
1224
1586
|
by: {
|
|
1225
1587
|
publicKey: string;
|
|
1226
|
-
publicBoxKey: string;
|
|
1227
1588
|
userId: string;
|
|
1589
|
+
publicBoxKey: string;
|
|
1590
|
+
anchors?: {
|
|
1591
|
+
type: "peers-services" | "https";
|
|
1592
|
+
url: string;
|
|
1593
|
+
}[] | undefined;
|
|
1228
1594
|
displayName?: string | undefined;
|
|
1229
1595
|
};
|
|
1230
1596
|
reason?: string | undefined;
|
|
@@ -1234,8 +1600,12 @@ export declare const inviteMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1234
1600
|
inviteNonce: string;
|
|
1235
1601
|
by: {
|
|
1236
1602
|
publicKey: string;
|
|
1237
|
-
publicBoxKey: string;
|
|
1238
1603
|
userId: string;
|
|
1604
|
+
publicBoxKey: string;
|
|
1605
|
+
anchors?: {
|
|
1606
|
+
type: "peers-services" | "https";
|
|
1607
|
+
url: string;
|
|
1608
|
+
}[] | undefined;
|
|
1239
1609
|
displayName?: string | undefined;
|
|
1240
1610
|
};
|
|
1241
1611
|
reason?: string | undefined;
|
|
@@ -1249,15 +1619,33 @@ export declare const inviteMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1249
1619
|
publicKey: z.ZodString;
|
|
1250
1620
|
publicBoxKey: z.ZodString;
|
|
1251
1621
|
displayName: z.ZodOptional<z.ZodString>;
|
|
1622
|
+
anchors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1623
|
+
type: z.ZodEnum<["peers-services", "https"]>;
|
|
1624
|
+
url: z.ZodString;
|
|
1625
|
+
}, "strip", z.ZodTypeAny, {
|
|
1626
|
+
type: "peers-services" | "https";
|
|
1627
|
+
url: string;
|
|
1628
|
+
}, {
|
|
1629
|
+
type: "peers-services" | "https";
|
|
1630
|
+
url: string;
|
|
1631
|
+
}>, "many">>;
|
|
1252
1632
|
}, "strict", z.ZodTypeAny, {
|
|
1253
1633
|
publicKey: string;
|
|
1254
|
-
publicBoxKey: string;
|
|
1255
1634
|
userId: string;
|
|
1635
|
+
publicBoxKey: string;
|
|
1636
|
+
anchors?: {
|
|
1637
|
+
type: "peers-services" | "https";
|
|
1638
|
+
url: string;
|
|
1639
|
+
}[] | undefined;
|
|
1256
1640
|
displayName?: string | undefined;
|
|
1257
1641
|
}, {
|
|
1258
1642
|
publicKey: string;
|
|
1259
|
-
publicBoxKey: string;
|
|
1260
1643
|
userId: string;
|
|
1644
|
+
publicBoxKey: string;
|
|
1645
|
+
anchors?: {
|
|
1646
|
+
type: "peers-services" | "https";
|
|
1647
|
+
url: string;
|
|
1648
|
+
}[] | undefined;
|
|
1261
1649
|
displayName?: string | undefined;
|
|
1262
1650
|
}>;
|
|
1263
1651
|
byDeviceId: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -1266,8 +1654,12 @@ export declare const inviteMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1266
1654
|
inviteNonce: string;
|
|
1267
1655
|
by: {
|
|
1268
1656
|
publicKey: string;
|
|
1269
|
-
publicBoxKey: string;
|
|
1270
1657
|
userId: string;
|
|
1658
|
+
publicBoxKey: string;
|
|
1659
|
+
anchors?: {
|
|
1660
|
+
type: "peers-services" | "https";
|
|
1661
|
+
url: string;
|
|
1662
|
+
}[] | undefined;
|
|
1271
1663
|
displayName?: string | undefined;
|
|
1272
1664
|
};
|
|
1273
1665
|
byDeviceId: string;
|
|
@@ -1277,8 +1669,12 @@ export declare const inviteMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1277
1669
|
inviteNonce: string;
|
|
1278
1670
|
by: {
|
|
1279
1671
|
publicKey: string;
|
|
1280
|
-
publicBoxKey: string;
|
|
1281
1672
|
userId: string;
|
|
1673
|
+
publicBoxKey: string;
|
|
1674
|
+
anchors?: {
|
|
1675
|
+
type: "peers-services" | "https";
|
|
1676
|
+
url: string;
|
|
1677
|
+
}[] | undefined;
|
|
1282
1678
|
displayName?: string | undefined;
|
|
1283
1679
|
};
|
|
1284
1680
|
byDeviceId: string;
|