@oxyhq/contracts 0.2.1 → 0.3.0
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/cjs/.tsbuildinfo +1 -1
- package/dist/cjs/identity.js +135 -0
- package/dist/cjs/index.js +14 -1
- package/dist/cjs/userResponse.js +18 -0
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/identity.js +132 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/userResponse.js +18 -0
- package/dist/types/.tsbuildinfo +1 -1
- package/dist/types/identity.d.ts +244 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/recommendations.d.ts +14 -14
- package/dist/types/userResponse.d.ts +365 -8
- package/package.json +1 -1
|
@@ -83,6 +83,9 @@ export declare const userResponseSchema: z.ZodObject<{
|
|
|
83
83
|
publicKey: z.ZodOptional<z.ZodString>;
|
|
84
84
|
username: z.ZodOptional<z.ZodString>;
|
|
85
85
|
email: z.ZodOptional<z.ZodString>;
|
|
86
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
87
|
+
address: z.ZodOptional<z.ZodString>;
|
|
88
|
+
birthday: z.ZodOptional<z.ZodString>;
|
|
86
89
|
/** Avatar file id (string) or null. */
|
|
87
90
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
88
91
|
/** Named Bloom color preset (e.g. `"blue"`) or null. */
|
|
@@ -90,6 +93,17 @@ export declare const userResponseSchema: z.ZodObject<{
|
|
|
90
93
|
name: z.ZodType<UserNameResponse, z.ZodTypeDef, UserNameResponse>;
|
|
91
94
|
verified: z.ZodOptional<z.ZodBoolean>;
|
|
92
95
|
language: z.ZodOptional<z.ZodString>;
|
|
96
|
+
/**
|
|
97
|
+
* The account's self-sovereign identifier
|
|
98
|
+
* (`did:web:<FEDERATION_DOMAIN>:u:<userId>`). Surfaced as a `User`
|
|
99
|
+
* virtual; present on formatted DTOs once the identity layer is live.
|
|
100
|
+
*/
|
|
101
|
+
did: z.ZodOptional<z.ZodString>;
|
|
102
|
+
/**
|
|
103
|
+
* Proven domain-ownership badges. Each is a {@link verifiedDomainSchema}
|
|
104
|
+
* entry; present only when the account has verified at least one domain.
|
|
105
|
+
*/
|
|
106
|
+
verifiedDomains: z.ZodOptional<z.ZodArray<z.ZodType<import("./identity").VerifiedDomain, z.ZodTypeDef, import("./identity").VerifiedDomain>, "many">>;
|
|
93
107
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
94
108
|
/** MongoDB ObjectId as a string. Present on `formatUserResponse` output. */
|
|
95
109
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -98,6 +112,9 @@ export declare const userResponseSchema: z.ZodObject<{
|
|
|
98
112
|
publicKey: z.ZodOptional<z.ZodString>;
|
|
99
113
|
username: z.ZodOptional<z.ZodString>;
|
|
100
114
|
email: z.ZodOptional<z.ZodString>;
|
|
115
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
116
|
+
address: z.ZodOptional<z.ZodString>;
|
|
117
|
+
birthday: z.ZodOptional<z.ZodString>;
|
|
101
118
|
/** Avatar file id (string) or null. */
|
|
102
119
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
103
120
|
/** Named Bloom color preset (e.g. `"blue"`) or null. */
|
|
@@ -105,6 +122,17 @@ export declare const userResponseSchema: z.ZodObject<{
|
|
|
105
122
|
name: z.ZodType<UserNameResponse, z.ZodTypeDef, UserNameResponse>;
|
|
106
123
|
verified: z.ZodOptional<z.ZodBoolean>;
|
|
107
124
|
language: z.ZodOptional<z.ZodString>;
|
|
125
|
+
/**
|
|
126
|
+
* The account's self-sovereign identifier
|
|
127
|
+
* (`did:web:<FEDERATION_DOMAIN>:u:<userId>`). Surfaced as a `User`
|
|
128
|
+
* virtual; present on formatted DTOs once the identity layer is live.
|
|
129
|
+
*/
|
|
130
|
+
did: z.ZodOptional<z.ZodString>;
|
|
131
|
+
/**
|
|
132
|
+
* Proven domain-ownership badges. Each is a {@link verifiedDomainSchema}
|
|
133
|
+
* entry; present only when the account has verified at least one domain.
|
|
134
|
+
*/
|
|
135
|
+
verifiedDomains: z.ZodOptional<z.ZodArray<z.ZodType<import("./identity").VerifiedDomain, z.ZodTypeDef, import("./identity").VerifiedDomain>, "many">>;
|
|
108
136
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
109
137
|
/** MongoDB ObjectId as a string. Present on `formatUserResponse` output. */
|
|
110
138
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -113,6 +141,9 @@ export declare const userResponseSchema: z.ZodObject<{
|
|
|
113
141
|
publicKey: z.ZodOptional<z.ZodString>;
|
|
114
142
|
username: z.ZodOptional<z.ZodString>;
|
|
115
143
|
email: z.ZodOptional<z.ZodString>;
|
|
144
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
145
|
+
address: z.ZodOptional<z.ZodString>;
|
|
146
|
+
birthday: z.ZodOptional<z.ZodString>;
|
|
116
147
|
/** Avatar file id (string) or null. */
|
|
117
148
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
118
149
|
/** Named Bloom color preset (e.g. `"blue"`) or null. */
|
|
@@ -120,6 +151,17 @@ export declare const userResponseSchema: z.ZodObject<{
|
|
|
120
151
|
name: z.ZodType<UserNameResponse, z.ZodTypeDef, UserNameResponse>;
|
|
121
152
|
verified: z.ZodOptional<z.ZodBoolean>;
|
|
122
153
|
language: z.ZodOptional<z.ZodString>;
|
|
154
|
+
/**
|
|
155
|
+
* The account's self-sovereign identifier
|
|
156
|
+
* (`did:web:<FEDERATION_DOMAIN>:u:<userId>`). Surfaced as a `User`
|
|
157
|
+
* virtual; present on formatted DTOs once the identity layer is live.
|
|
158
|
+
*/
|
|
159
|
+
did: z.ZodOptional<z.ZodString>;
|
|
160
|
+
/**
|
|
161
|
+
* Proven domain-ownership badges. Each is a {@link verifiedDomainSchema}
|
|
162
|
+
* entry; present only when the account has verified at least one domain.
|
|
163
|
+
*/
|
|
164
|
+
verifiedDomains: z.ZodOptional<z.ZodArray<z.ZodType<import("./identity").VerifiedDomain, z.ZodTypeDef, import("./identity").VerifiedDomain>, "many">>;
|
|
123
165
|
}, z.ZodTypeAny, "passthrough">>;
|
|
124
166
|
export type UserResponse = z.infer<typeof userResponseSchema>;
|
|
125
167
|
export declare const userProfileUpdateSchema: z.ZodObject<{
|
|
@@ -139,6 +181,9 @@ export declare const userProfileUpdateSchema: z.ZodObject<{
|
|
|
139
181
|
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
140
182
|
bio: z.ZodOptional<z.ZodString>;
|
|
141
183
|
description: z.ZodOptional<z.ZodString>;
|
|
184
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
185
|
+
address: z.ZodOptional<z.ZodString>;
|
|
186
|
+
birthday: z.ZodOptional<z.ZodString>;
|
|
142
187
|
location: z.ZodOptional<z.ZodString>;
|
|
143
188
|
locations: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
144
189
|
links: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -183,6 +228,9 @@ export declare const userProfileUpdateSchema: z.ZodObject<{
|
|
|
183
228
|
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
184
229
|
bio: z.ZodOptional<z.ZodString>;
|
|
185
230
|
description: z.ZodOptional<z.ZodString>;
|
|
231
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
232
|
+
address: z.ZodOptional<z.ZodString>;
|
|
233
|
+
birthday: z.ZodOptional<z.ZodString>;
|
|
186
234
|
location: z.ZodOptional<z.ZodString>;
|
|
187
235
|
locations: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
188
236
|
links: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -227,6 +275,9 @@ export declare const userProfileUpdateSchema: z.ZodObject<{
|
|
|
227
275
|
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
228
276
|
bio: z.ZodOptional<z.ZodString>;
|
|
229
277
|
description: z.ZodOptional<z.ZodString>;
|
|
278
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
279
|
+
address: z.ZodOptional<z.ZodString>;
|
|
280
|
+
birthday: z.ZodOptional<z.ZodString>;
|
|
230
281
|
location: z.ZodOptional<z.ZodString>;
|
|
231
282
|
locations: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
232
283
|
links: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -281,6 +332,9 @@ export declare const refreshAllAccountSchema: z.ZodObject<{
|
|
|
281
332
|
publicKey: z.ZodOptional<z.ZodString>;
|
|
282
333
|
username: z.ZodOptional<z.ZodString>;
|
|
283
334
|
email: z.ZodOptional<z.ZodString>;
|
|
335
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
336
|
+
address: z.ZodOptional<z.ZodString>;
|
|
337
|
+
birthday: z.ZodOptional<z.ZodString>;
|
|
284
338
|
/** Avatar file id (string) or null. */
|
|
285
339
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
286
340
|
/** Named Bloom color preset (e.g. `"blue"`) or null. */
|
|
@@ -288,6 +342,17 @@ export declare const refreshAllAccountSchema: z.ZodObject<{
|
|
|
288
342
|
name: z.ZodType<UserNameResponse, z.ZodTypeDef, UserNameResponse>;
|
|
289
343
|
verified: z.ZodOptional<z.ZodBoolean>;
|
|
290
344
|
language: z.ZodOptional<z.ZodString>;
|
|
345
|
+
/**
|
|
346
|
+
* The account's self-sovereign identifier
|
|
347
|
+
* (`did:web:<FEDERATION_DOMAIN>:u:<userId>`). Surfaced as a `User`
|
|
348
|
+
* virtual; present on formatted DTOs once the identity layer is live.
|
|
349
|
+
*/
|
|
350
|
+
did: z.ZodOptional<z.ZodString>;
|
|
351
|
+
/**
|
|
352
|
+
* Proven domain-ownership badges. Each is a {@link verifiedDomainSchema}
|
|
353
|
+
* entry; present only when the account has verified at least one domain.
|
|
354
|
+
*/
|
|
355
|
+
verifiedDomains: z.ZodOptional<z.ZodArray<z.ZodType<import("./identity").VerifiedDomain, z.ZodTypeDef, import("./identity").VerifiedDomain>, "many">>;
|
|
291
356
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
292
357
|
/** MongoDB ObjectId as a string. Present on `formatUserResponse` output. */
|
|
293
358
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -296,6 +361,9 @@ export declare const refreshAllAccountSchema: z.ZodObject<{
|
|
|
296
361
|
publicKey: z.ZodOptional<z.ZodString>;
|
|
297
362
|
username: z.ZodOptional<z.ZodString>;
|
|
298
363
|
email: z.ZodOptional<z.ZodString>;
|
|
364
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
365
|
+
address: z.ZodOptional<z.ZodString>;
|
|
366
|
+
birthday: z.ZodOptional<z.ZodString>;
|
|
299
367
|
/** Avatar file id (string) or null. */
|
|
300
368
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
301
369
|
/** Named Bloom color preset (e.g. `"blue"`) or null. */
|
|
@@ -303,6 +371,17 @@ export declare const refreshAllAccountSchema: z.ZodObject<{
|
|
|
303
371
|
name: z.ZodType<UserNameResponse, z.ZodTypeDef, UserNameResponse>;
|
|
304
372
|
verified: z.ZodOptional<z.ZodBoolean>;
|
|
305
373
|
language: z.ZodOptional<z.ZodString>;
|
|
374
|
+
/**
|
|
375
|
+
* The account's self-sovereign identifier
|
|
376
|
+
* (`did:web:<FEDERATION_DOMAIN>:u:<userId>`). Surfaced as a `User`
|
|
377
|
+
* virtual; present on formatted DTOs once the identity layer is live.
|
|
378
|
+
*/
|
|
379
|
+
did: z.ZodOptional<z.ZodString>;
|
|
380
|
+
/**
|
|
381
|
+
* Proven domain-ownership badges. Each is a {@link verifiedDomainSchema}
|
|
382
|
+
* entry; present only when the account has verified at least one domain.
|
|
383
|
+
*/
|
|
384
|
+
verifiedDomains: z.ZodOptional<z.ZodArray<z.ZodType<import("./identity").VerifiedDomain, z.ZodTypeDef, import("./identity").VerifiedDomain>, "many">>;
|
|
306
385
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
307
386
|
/** MongoDB ObjectId as a string. Present on `formatUserResponse` output. */
|
|
308
387
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -311,6 +390,9 @@ export declare const refreshAllAccountSchema: z.ZodObject<{
|
|
|
311
390
|
publicKey: z.ZodOptional<z.ZodString>;
|
|
312
391
|
username: z.ZodOptional<z.ZodString>;
|
|
313
392
|
email: z.ZodOptional<z.ZodString>;
|
|
393
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
394
|
+
address: z.ZodOptional<z.ZodString>;
|
|
395
|
+
birthday: z.ZodOptional<z.ZodString>;
|
|
314
396
|
/** Avatar file id (string) or null. */
|
|
315
397
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
316
398
|
/** Named Bloom color preset (e.g. `"blue"`) or null. */
|
|
@@ -318,6 +400,17 @@ export declare const refreshAllAccountSchema: z.ZodObject<{
|
|
|
318
400
|
name: z.ZodType<UserNameResponse, z.ZodTypeDef, UserNameResponse>;
|
|
319
401
|
verified: z.ZodOptional<z.ZodBoolean>;
|
|
320
402
|
language: z.ZodOptional<z.ZodString>;
|
|
403
|
+
/**
|
|
404
|
+
* The account's self-sovereign identifier
|
|
405
|
+
* (`did:web:<FEDERATION_DOMAIN>:u:<userId>`). Surfaced as a `User`
|
|
406
|
+
* virtual; present on formatted DTOs once the identity layer is live.
|
|
407
|
+
*/
|
|
408
|
+
did: z.ZodOptional<z.ZodString>;
|
|
409
|
+
/**
|
|
410
|
+
* Proven domain-ownership badges. Each is a {@link verifiedDomainSchema}
|
|
411
|
+
* entry; present only when the account has verified at least one domain.
|
|
412
|
+
*/
|
|
413
|
+
verifiedDomains: z.ZodOptional<z.ZodArray<z.ZodType<import("./identity").VerifiedDomain, z.ZodTypeDef, import("./identity").VerifiedDomain>, "many">>;
|
|
321
414
|
}, z.ZodTypeAny, "passthrough">>;
|
|
322
415
|
}, "strip", z.ZodTypeAny, {
|
|
323
416
|
authuser: number;
|
|
@@ -327,10 +420,15 @@ export declare const refreshAllAccountSchema: z.ZodObject<{
|
|
|
327
420
|
user: {
|
|
328
421
|
name: UserNameResponse;
|
|
329
422
|
id?: string | undefined;
|
|
330
|
-
_id?: string | undefined;
|
|
331
423
|
publicKey?: string | undefined;
|
|
424
|
+
did?: string | undefined;
|
|
425
|
+
verifiedDomains?: import("./identity").VerifiedDomain[] | undefined;
|
|
426
|
+
_id?: string | undefined;
|
|
332
427
|
username?: string | undefined;
|
|
333
428
|
email?: string | undefined;
|
|
429
|
+
phone?: string | undefined;
|
|
430
|
+
address?: string | undefined;
|
|
431
|
+
birthday?: string | undefined;
|
|
334
432
|
avatar?: string | null | undefined;
|
|
335
433
|
color?: string | null | undefined;
|
|
336
434
|
verified?: boolean | undefined;
|
|
@@ -346,10 +444,15 @@ export declare const refreshAllAccountSchema: z.ZodObject<{
|
|
|
346
444
|
user: {
|
|
347
445
|
name: UserNameResponse;
|
|
348
446
|
id?: string | undefined;
|
|
349
|
-
_id?: string | undefined;
|
|
350
447
|
publicKey?: string | undefined;
|
|
448
|
+
did?: string | undefined;
|
|
449
|
+
verifiedDomains?: import("./identity").VerifiedDomain[] | undefined;
|
|
450
|
+
_id?: string | undefined;
|
|
351
451
|
username?: string | undefined;
|
|
352
452
|
email?: string | undefined;
|
|
453
|
+
phone?: string | undefined;
|
|
454
|
+
address?: string | undefined;
|
|
455
|
+
birthday?: string | undefined;
|
|
353
456
|
avatar?: string | null | undefined;
|
|
354
457
|
color?: string | null | undefined;
|
|
355
458
|
verified?: boolean | undefined;
|
|
@@ -378,6 +481,9 @@ export declare const refreshAllResponseSchema: z.ZodObject<{
|
|
|
378
481
|
publicKey: z.ZodOptional<z.ZodString>;
|
|
379
482
|
username: z.ZodOptional<z.ZodString>;
|
|
380
483
|
email: z.ZodOptional<z.ZodString>;
|
|
484
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
485
|
+
address: z.ZodOptional<z.ZodString>;
|
|
486
|
+
birthday: z.ZodOptional<z.ZodString>;
|
|
381
487
|
/** Avatar file id (string) or null. */
|
|
382
488
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
383
489
|
/** Named Bloom color preset (e.g. `"blue"`) or null. */
|
|
@@ -385,6 +491,17 @@ export declare const refreshAllResponseSchema: z.ZodObject<{
|
|
|
385
491
|
name: z.ZodType<UserNameResponse, z.ZodTypeDef, UserNameResponse>;
|
|
386
492
|
verified: z.ZodOptional<z.ZodBoolean>;
|
|
387
493
|
language: z.ZodOptional<z.ZodString>;
|
|
494
|
+
/**
|
|
495
|
+
* The account's self-sovereign identifier
|
|
496
|
+
* (`did:web:<FEDERATION_DOMAIN>:u:<userId>`). Surfaced as a `User`
|
|
497
|
+
* virtual; present on formatted DTOs once the identity layer is live.
|
|
498
|
+
*/
|
|
499
|
+
did: z.ZodOptional<z.ZodString>;
|
|
500
|
+
/**
|
|
501
|
+
* Proven domain-ownership badges. Each is a {@link verifiedDomainSchema}
|
|
502
|
+
* entry; present only when the account has verified at least one domain.
|
|
503
|
+
*/
|
|
504
|
+
verifiedDomains: z.ZodOptional<z.ZodArray<z.ZodType<import("./identity").VerifiedDomain, z.ZodTypeDef, import("./identity").VerifiedDomain>, "many">>;
|
|
388
505
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
389
506
|
/** MongoDB ObjectId as a string. Present on `formatUserResponse` output. */
|
|
390
507
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -393,6 +510,9 @@ export declare const refreshAllResponseSchema: z.ZodObject<{
|
|
|
393
510
|
publicKey: z.ZodOptional<z.ZodString>;
|
|
394
511
|
username: z.ZodOptional<z.ZodString>;
|
|
395
512
|
email: z.ZodOptional<z.ZodString>;
|
|
513
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
514
|
+
address: z.ZodOptional<z.ZodString>;
|
|
515
|
+
birthday: z.ZodOptional<z.ZodString>;
|
|
396
516
|
/** Avatar file id (string) or null. */
|
|
397
517
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
398
518
|
/** Named Bloom color preset (e.g. `"blue"`) or null. */
|
|
@@ -400,6 +520,17 @@ export declare const refreshAllResponseSchema: z.ZodObject<{
|
|
|
400
520
|
name: z.ZodType<UserNameResponse, z.ZodTypeDef, UserNameResponse>;
|
|
401
521
|
verified: z.ZodOptional<z.ZodBoolean>;
|
|
402
522
|
language: z.ZodOptional<z.ZodString>;
|
|
523
|
+
/**
|
|
524
|
+
* The account's self-sovereign identifier
|
|
525
|
+
* (`did:web:<FEDERATION_DOMAIN>:u:<userId>`). Surfaced as a `User`
|
|
526
|
+
* virtual; present on formatted DTOs once the identity layer is live.
|
|
527
|
+
*/
|
|
528
|
+
did: z.ZodOptional<z.ZodString>;
|
|
529
|
+
/**
|
|
530
|
+
* Proven domain-ownership badges. Each is a {@link verifiedDomainSchema}
|
|
531
|
+
* entry; present only when the account has verified at least one domain.
|
|
532
|
+
*/
|
|
533
|
+
verifiedDomains: z.ZodOptional<z.ZodArray<z.ZodType<import("./identity").VerifiedDomain, z.ZodTypeDef, import("./identity").VerifiedDomain>, "many">>;
|
|
403
534
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
404
535
|
/** MongoDB ObjectId as a string. Present on `formatUserResponse` output. */
|
|
405
536
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -408,6 +539,9 @@ export declare const refreshAllResponseSchema: z.ZodObject<{
|
|
|
408
539
|
publicKey: z.ZodOptional<z.ZodString>;
|
|
409
540
|
username: z.ZodOptional<z.ZodString>;
|
|
410
541
|
email: z.ZodOptional<z.ZodString>;
|
|
542
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
543
|
+
address: z.ZodOptional<z.ZodString>;
|
|
544
|
+
birthday: z.ZodOptional<z.ZodString>;
|
|
411
545
|
/** Avatar file id (string) or null. */
|
|
412
546
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
413
547
|
/** Named Bloom color preset (e.g. `"blue"`) or null. */
|
|
@@ -415,6 +549,17 @@ export declare const refreshAllResponseSchema: z.ZodObject<{
|
|
|
415
549
|
name: z.ZodType<UserNameResponse, z.ZodTypeDef, UserNameResponse>;
|
|
416
550
|
verified: z.ZodOptional<z.ZodBoolean>;
|
|
417
551
|
language: z.ZodOptional<z.ZodString>;
|
|
552
|
+
/**
|
|
553
|
+
* The account's self-sovereign identifier
|
|
554
|
+
* (`did:web:<FEDERATION_DOMAIN>:u:<userId>`). Surfaced as a `User`
|
|
555
|
+
* virtual; present on formatted DTOs once the identity layer is live.
|
|
556
|
+
*/
|
|
557
|
+
did: z.ZodOptional<z.ZodString>;
|
|
558
|
+
/**
|
|
559
|
+
* Proven domain-ownership badges. Each is a {@link verifiedDomainSchema}
|
|
560
|
+
* entry; present only when the account has verified at least one domain.
|
|
561
|
+
*/
|
|
562
|
+
verifiedDomains: z.ZodOptional<z.ZodArray<z.ZodType<import("./identity").VerifiedDomain, z.ZodTypeDef, import("./identity").VerifiedDomain>, "many">>;
|
|
418
563
|
}, z.ZodTypeAny, "passthrough">>;
|
|
419
564
|
}, "strip", z.ZodTypeAny, {
|
|
420
565
|
authuser: number;
|
|
@@ -424,10 +569,15 @@ export declare const refreshAllResponseSchema: z.ZodObject<{
|
|
|
424
569
|
user: {
|
|
425
570
|
name: UserNameResponse;
|
|
426
571
|
id?: string | undefined;
|
|
427
|
-
_id?: string | undefined;
|
|
428
572
|
publicKey?: string | undefined;
|
|
573
|
+
did?: string | undefined;
|
|
574
|
+
verifiedDomains?: import("./identity").VerifiedDomain[] | undefined;
|
|
575
|
+
_id?: string | undefined;
|
|
429
576
|
username?: string | undefined;
|
|
430
577
|
email?: string | undefined;
|
|
578
|
+
phone?: string | undefined;
|
|
579
|
+
address?: string | undefined;
|
|
580
|
+
birthday?: string | undefined;
|
|
431
581
|
avatar?: string | null | undefined;
|
|
432
582
|
color?: string | null | undefined;
|
|
433
583
|
verified?: boolean | undefined;
|
|
@@ -443,10 +593,15 @@ export declare const refreshAllResponseSchema: z.ZodObject<{
|
|
|
443
593
|
user: {
|
|
444
594
|
name: UserNameResponse;
|
|
445
595
|
id?: string | undefined;
|
|
446
|
-
_id?: string | undefined;
|
|
447
596
|
publicKey?: string | undefined;
|
|
597
|
+
did?: string | undefined;
|
|
598
|
+
verifiedDomains?: import("./identity").VerifiedDomain[] | undefined;
|
|
599
|
+
_id?: string | undefined;
|
|
448
600
|
username?: string | undefined;
|
|
449
601
|
email?: string | undefined;
|
|
602
|
+
phone?: string | undefined;
|
|
603
|
+
address?: string | undefined;
|
|
604
|
+
birthday?: string | undefined;
|
|
450
605
|
avatar?: string | null | undefined;
|
|
451
606
|
color?: string | null | undefined;
|
|
452
607
|
verified?: boolean | undefined;
|
|
@@ -464,10 +619,15 @@ export declare const refreshAllResponseSchema: z.ZodObject<{
|
|
|
464
619
|
user: {
|
|
465
620
|
name: UserNameResponse;
|
|
466
621
|
id?: string | undefined;
|
|
467
|
-
_id?: string | undefined;
|
|
468
622
|
publicKey?: string | undefined;
|
|
623
|
+
did?: string | undefined;
|
|
624
|
+
verifiedDomains?: import("./identity").VerifiedDomain[] | undefined;
|
|
625
|
+
_id?: string | undefined;
|
|
469
626
|
username?: string | undefined;
|
|
470
627
|
email?: string | undefined;
|
|
628
|
+
phone?: string | undefined;
|
|
629
|
+
address?: string | undefined;
|
|
630
|
+
birthday?: string | undefined;
|
|
471
631
|
avatar?: string | null | undefined;
|
|
472
632
|
color?: string | null | undefined;
|
|
473
633
|
verified?: boolean | undefined;
|
|
@@ -485,10 +645,15 @@ export declare const refreshAllResponseSchema: z.ZodObject<{
|
|
|
485
645
|
user: {
|
|
486
646
|
name: UserNameResponse;
|
|
487
647
|
id?: string | undefined;
|
|
488
|
-
_id?: string | undefined;
|
|
489
648
|
publicKey?: string | undefined;
|
|
649
|
+
did?: string | undefined;
|
|
650
|
+
verifiedDomains?: import("./identity").VerifiedDomain[] | undefined;
|
|
651
|
+
_id?: string | undefined;
|
|
490
652
|
username?: string | undefined;
|
|
491
653
|
email?: string | undefined;
|
|
654
|
+
phone?: string | undefined;
|
|
655
|
+
address?: string | undefined;
|
|
656
|
+
birthday?: string | undefined;
|
|
492
657
|
avatar?: string | null | undefined;
|
|
493
658
|
color?: string | null | undefined;
|
|
494
659
|
verified?: boolean | undefined;
|
|
@@ -514,6 +679,9 @@ export declare const currentUserResponseSchema: z.ZodObject<{
|
|
|
514
679
|
publicKey: z.ZodOptional<z.ZodString>;
|
|
515
680
|
username: z.ZodOptional<z.ZodString>;
|
|
516
681
|
email: z.ZodOptional<z.ZodString>;
|
|
682
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
683
|
+
address: z.ZodOptional<z.ZodString>;
|
|
684
|
+
birthday: z.ZodOptional<z.ZodString>;
|
|
517
685
|
/** Avatar file id (string) or null. */
|
|
518
686
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
519
687
|
/** Named Bloom color preset (e.g. `"blue"`) or null. */
|
|
@@ -521,6 +689,17 @@ export declare const currentUserResponseSchema: z.ZodObject<{
|
|
|
521
689
|
name: z.ZodType<UserNameResponse, z.ZodTypeDef, UserNameResponse>;
|
|
522
690
|
verified: z.ZodOptional<z.ZodBoolean>;
|
|
523
691
|
language: z.ZodOptional<z.ZodString>;
|
|
692
|
+
/**
|
|
693
|
+
* The account's self-sovereign identifier
|
|
694
|
+
* (`did:web:<FEDERATION_DOMAIN>:u:<userId>`). Surfaced as a `User`
|
|
695
|
+
* virtual; present on formatted DTOs once the identity layer is live.
|
|
696
|
+
*/
|
|
697
|
+
did: z.ZodOptional<z.ZodString>;
|
|
698
|
+
/**
|
|
699
|
+
* Proven domain-ownership badges. Each is a {@link verifiedDomainSchema}
|
|
700
|
+
* entry; present only when the account has verified at least one domain.
|
|
701
|
+
*/
|
|
702
|
+
verifiedDomains: z.ZodOptional<z.ZodArray<z.ZodType<import("./identity").VerifiedDomain, z.ZodTypeDef, import("./identity").VerifiedDomain>, "many">>;
|
|
524
703
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
525
704
|
/** MongoDB ObjectId as a string. Present on `formatUserResponse` output. */
|
|
526
705
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -529,6 +708,9 @@ export declare const currentUserResponseSchema: z.ZodObject<{
|
|
|
529
708
|
publicKey: z.ZodOptional<z.ZodString>;
|
|
530
709
|
username: z.ZodOptional<z.ZodString>;
|
|
531
710
|
email: z.ZodOptional<z.ZodString>;
|
|
711
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
712
|
+
address: z.ZodOptional<z.ZodString>;
|
|
713
|
+
birthday: z.ZodOptional<z.ZodString>;
|
|
532
714
|
/** Avatar file id (string) or null. */
|
|
533
715
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
534
716
|
/** Named Bloom color preset (e.g. `"blue"`) or null. */
|
|
@@ -536,6 +718,17 @@ export declare const currentUserResponseSchema: z.ZodObject<{
|
|
|
536
718
|
name: z.ZodType<UserNameResponse, z.ZodTypeDef, UserNameResponse>;
|
|
537
719
|
verified: z.ZodOptional<z.ZodBoolean>;
|
|
538
720
|
language: z.ZodOptional<z.ZodString>;
|
|
721
|
+
/**
|
|
722
|
+
* The account's self-sovereign identifier
|
|
723
|
+
* (`did:web:<FEDERATION_DOMAIN>:u:<userId>`). Surfaced as a `User`
|
|
724
|
+
* virtual; present on formatted DTOs once the identity layer is live.
|
|
725
|
+
*/
|
|
726
|
+
did: z.ZodOptional<z.ZodString>;
|
|
727
|
+
/**
|
|
728
|
+
* Proven domain-ownership badges. Each is a {@link verifiedDomainSchema}
|
|
729
|
+
* entry; present only when the account has verified at least one domain.
|
|
730
|
+
*/
|
|
731
|
+
verifiedDomains: z.ZodOptional<z.ZodArray<z.ZodType<import("./identity").VerifiedDomain, z.ZodTypeDef, import("./identity").VerifiedDomain>, "many">>;
|
|
539
732
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
540
733
|
/** MongoDB ObjectId as a string. Present on `formatUserResponse` output. */
|
|
541
734
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -544,6 +737,9 @@ export declare const currentUserResponseSchema: z.ZodObject<{
|
|
|
544
737
|
publicKey: z.ZodOptional<z.ZodString>;
|
|
545
738
|
username: z.ZodOptional<z.ZodString>;
|
|
546
739
|
email: z.ZodOptional<z.ZodString>;
|
|
740
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
741
|
+
address: z.ZodOptional<z.ZodString>;
|
|
742
|
+
birthday: z.ZodOptional<z.ZodString>;
|
|
547
743
|
/** Avatar file id (string) or null. */
|
|
548
744
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
549
745
|
/** Named Bloom color preset (e.g. `"blue"`) or null. */
|
|
@@ -551,15 +747,31 @@ export declare const currentUserResponseSchema: z.ZodObject<{
|
|
|
551
747
|
name: z.ZodType<UserNameResponse, z.ZodTypeDef, UserNameResponse>;
|
|
552
748
|
verified: z.ZodOptional<z.ZodBoolean>;
|
|
553
749
|
language: z.ZodOptional<z.ZodString>;
|
|
750
|
+
/**
|
|
751
|
+
* The account's self-sovereign identifier
|
|
752
|
+
* (`did:web:<FEDERATION_DOMAIN>:u:<userId>`). Surfaced as a `User`
|
|
753
|
+
* virtual; present on formatted DTOs once the identity layer is live.
|
|
754
|
+
*/
|
|
755
|
+
did: z.ZodOptional<z.ZodString>;
|
|
756
|
+
/**
|
|
757
|
+
* Proven domain-ownership badges. Each is a {@link verifiedDomainSchema}
|
|
758
|
+
* entry; present only when the account has verified at least one domain.
|
|
759
|
+
*/
|
|
760
|
+
verifiedDomains: z.ZodOptional<z.ZodArray<z.ZodType<import("./identity").VerifiedDomain, z.ZodTypeDef, import("./identity").VerifiedDomain>, "many">>;
|
|
554
761
|
}, z.ZodTypeAny, "passthrough">>;
|
|
555
762
|
}, "strip", z.ZodTypeAny, {
|
|
556
763
|
data: {
|
|
557
764
|
name: UserNameResponse;
|
|
558
765
|
id?: string | undefined;
|
|
559
|
-
_id?: string | undefined;
|
|
560
766
|
publicKey?: string | undefined;
|
|
767
|
+
did?: string | undefined;
|
|
768
|
+
verifiedDomains?: import("./identity").VerifiedDomain[] | undefined;
|
|
769
|
+
_id?: string | undefined;
|
|
561
770
|
username?: string | undefined;
|
|
562
771
|
email?: string | undefined;
|
|
772
|
+
phone?: string | undefined;
|
|
773
|
+
address?: string | undefined;
|
|
774
|
+
birthday?: string | undefined;
|
|
563
775
|
avatar?: string | null | undefined;
|
|
564
776
|
color?: string | null | undefined;
|
|
565
777
|
verified?: boolean | undefined;
|
|
@@ -571,10 +783,15 @@ export declare const currentUserResponseSchema: z.ZodObject<{
|
|
|
571
783
|
data: {
|
|
572
784
|
name: UserNameResponse;
|
|
573
785
|
id?: string | undefined;
|
|
574
|
-
_id?: string | undefined;
|
|
575
786
|
publicKey?: string | undefined;
|
|
787
|
+
did?: string | undefined;
|
|
788
|
+
verifiedDomains?: import("./identity").VerifiedDomain[] | undefined;
|
|
789
|
+
_id?: string | undefined;
|
|
576
790
|
username?: string | undefined;
|
|
577
791
|
email?: string | undefined;
|
|
792
|
+
phone?: string | undefined;
|
|
793
|
+
address?: string | undefined;
|
|
794
|
+
birthday?: string | undefined;
|
|
578
795
|
avatar?: string | null | undefined;
|
|
579
796
|
color?: string | null | undefined;
|
|
580
797
|
verified?: boolean | undefined;
|
|
@@ -601,6 +818,9 @@ export declare const deviceSessionAccountSchema: z.ZodObject<{
|
|
|
601
818
|
publicKey: z.ZodOptional<z.ZodString>;
|
|
602
819
|
username: z.ZodOptional<z.ZodString>;
|
|
603
820
|
email: z.ZodOptional<z.ZodString>;
|
|
821
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
822
|
+
address: z.ZodOptional<z.ZodString>;
|
|
823
|
+
birthday: z.ZodOptional<z.ZodString>;
|
|
604
824
|
/** Avatar file id (string) or null. */
|
|
605
825
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
606
826
|
/** Named Bloom color preset (e.g. `"blue"`) or null. */
|
|
@@ -608,6 +828,17 @@ export declare const deviceSessionAccountSchema: z.ZodObject<{
|
|
|
608
828
|
name: z.ZodType<UserNameResponse, z.ZodTypeDef, UserNameResponse>;
|
|
609
829
|
verified: z.ZodOptional<z.ZodBoolean>;
|
|
610
830
|
language: z.ZodOptional<z.ZodString>;
|
|
831
|
+
/**
|
|
832
|
+
* The account's self-sovereign identifier
|
|
833
|
+
* (`did:web:<FEDERATION_DOMAIN>:u:<userId>`). Surfaced as a `User`
|
|
834
|
+
* virtual; present on formatted DTOs once the identity layer is live.
|
|
835
|
+
*/
|
|
836
|
+
did: z.ZodOptional<z.ZodString>;
|
|
837
|
+
/**
|
|
838
|
+
* Proven domain-ownership badges. Each is a {@link verifiedDomainSchema}
|
|
839
|
+
* entry; present only when the account has verified at least one domain.
|
|
840
|
+
*/
|
|
841
|
+
verifiedDomains: z.ZodOptional<z.ZodArray<z.ZodType<import("./identity").VerifiedDomain, z.ZodTypeDef, import("./identity").VerifiedDomain>, "many">>;
|
|
611
842
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
612
843
|
/** MongoDB ObjectId as a string. Present on `formatUserResponse` output. */
|
|
613
844
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -616,6 +847,9 @@ export declare const deviceSessionAccountSchema: z.ZodObject<{
|
|
|
616
847
|
publicKey: z.ZodOptional<z.ZodString>;
|
|
617
848
|
username: z.ZodOptional<z.ZodString>;
|
|
618
849
|
email: z.ZodOptional<z.ZodString>;
|
|
850
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
851
|
+
address: z.ZodOptional<z.ZodString>;
|
|
852
|
+
birthday: z.ZodOptional<z.ZodString>;
|
|
619
853
|
/** Avatar file id (string) or null. */
|
|
620
854
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
621
855
|
/** Named Bloom color preset (e.g. `"blue"`) or null. */
|
|
@@ -623,6 +857,17 @@ export declare const deviceSessionAccountSchema: z.ZodObject<{
|
|
|
623
857
|
name: z.ZodType<UserNameResponse, z.ZodTypeDef, UserNameResponse>;
|
|
624
858
|
verified: z.ZodOptional<z.ZodBoolean>;
|
|
625
859
|
language: z.ZodOptional<z.ZodString>;
|
|
860
|
+
/**
|
|
861
|
+
* The account's self-sovereign identifier
|
|
862
|
+
* (`did:web:<FEDERATION_DOMAIN>:u:<userId>`). Surfaced as a `User`
|
|
863
|
+
* virtual; present on formatted DTOs once the identity layer is live.
|
|
864
|
+
*/
|
|
865
|
+
did: z.ZodOptional<z.ZodString>;
|
|
866
|
+
/**
|
|
867
|
+
* Proven domain-ownership badges. Each is a {@link verifiedDomainSchema}
|
|
868
|
+
* entry; present only when the account has verified at least one domain.
|
|
869
|
+
*/
|
|
870
|
+
verifiedDomains: z.ZodOptional<z.ZodArray<z.ZodType<import("./identity").VerifiedDomain, z.ZodTypeDef, import("./identity").VerifiedDomain>, "many">>;
|
|
626
871
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
627
872
|
/** MongoDB ObjectId as a string. Present on `formatUserResponse` output. */
|
|
628
873
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -631,6 +876,9 @@ export declare const deviceSessionAccountSchema: z.ZodObject<{
|
|
|
631
876
|
publicKey: z.ZodOptional<z.ZodString>;
|
|
632
877
|
username: z.ZodOptional<z.ZodString>;
|
|
633
878
|
email: z.ZodOptional<z.ZodString>;
|
|
879
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
880
|
+
address: z.ZodOptional<z.ZodString>;
|
|
881
|
+
birthday: z.ZodOptional<z.ZodString>;
|
|
634
882
|
/** Avatar file id (string) or null. */
|
|
635
883
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
636
884
|
/** Named Bloom color preset (e.g. `"blue"`) or null. */
|
|
@@ -638,6 +886,17 @@ export declare const deviceSessionAccountSchema: z.ZodObject<{
|
|
|
638
886
|
name: z.ZodType<UserNameResponse, z.ZodTypeDef, UserNameResponse>;
|
|
639
887
|
verified: z.ZodOptional<z.ZodBoolean>;
|
|
640
888
|
language: z.ZodOptional<z.ZodString>;
|
|
889
|
+
/**
|
|
890
|
+
* The account's self-sovereign identifier
|
|
891
|
+
* (`did:web:<FEDERATION_DOMAIN>:u:<userId>`). Surfaced as a `User`
|
|
892
|
+
* virtual; present on formatted DTOs once the identity layer is live.
|
|
893
|
+
*/
|
|
894
|
+
did: z.ZodOptional<z.ZodString>;
|
|
895
|
+
/**
|
|
896
|
+
* Proven domain-ownership badges. Each is a {@link verifiedDomainSchema}
|
|
897
|
+
* entry; present only when the account has verified at least one domain.
|
|
898
|
+
*/
|
|
899
|
+
verifiedDomains: z.ZodOptional<z.ZodArray<z.ZodType<import("./identity").VerifiedDomain, z.ZodTypeDef, import("./identity").VerifiedDomain>, "many">>;
|
|
641
900
|
}, z.ZodTypeAny, "passthrough">>>>;
|
|
642
901
|
}, "strip", z.ZodTypeAny, {
|
|
643
902
|
sessionId: string;
|
|
@@ -649,6 +908,9 @@ export declare const deviceSessionAccountSchema: z.ZodObject<{
|
|
|
649
908
|
publicKey: z.ZodOptional<z.ZodString>;
|
|
650
909
|
username: z.ZodOptional<z.ZodString>;
|
|
651
910
|
email: z.ZodOptional<z.ZodString>;
|
|
911
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
912
|
+
address: z.ZodOptional<z.ZodString>;
|
|
913
|
+
birthday: z.ZodOptional<z.ZodString>;
|
|
652
914
|
/** Avatar file id (string) or null. */
|
|
653
915
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
654
916
|
/** Named Bloom color preset (e.g. `"blue"`) or null. */
|
|
@@ -656,6 +918,17 @@ export declare const deviceSessionAccountSchema: z.ZodObject<{
|
|
|
656
918
|
name: z.ZodType<UserNameResponse, z.ZodTypeDef, UserNameResponse>;
|
|
657
919
|
verified: z.ZodOptional<z.ZodBoolean>;
|
|
658
920
|
language: z.ZodOptional<z.ZodString>;
|
|
921
|
+
/**
|
|
922
|
+
* The account's self-sovereign identifier
|
|
923
|
+
* (`did:web:<FEDERATION_DOMAIN>:u:<userId>`). Surfaced as a `User`
|
|
924
|
+
* virtual; present on formatted DTOs once the identity layer is live.
|
|
925
|
+
*/
|
|
926
|
+
did: z.ZodOptional<z.ZodString>;
|
|
927
|
+
/**
|
|
928
|
+
* Proven domain-ownership badges. Each is a {@link verifiedDomainSchema}
|
|
929
|
+
* entry; present only when the account has verified at least one domain.
|
|
930
|
+
*/
|
|
931
|
+
verifiedDomains: z.ZodOptional<z.ZodArray<z.ZodType<import("./identity").VerifiedDomain, z.ZodTypeDef, import("./identity").VerifiedDomain>, "many">>;
|
|
659
932
|
}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
660
933
|
isCurrent?: boolean | undefined;
|
|
661
934
|
}, {
|
|
@@ -668,6 +941,9 @@ export declare const deviceSessionAccountSchema: z.ZodObject<{
|
|
|
668
941
|
publicKey: z.ZodOptional<z.ZodString>;
|
|
669
942
|
username: z.ZodOptional<z.ZodString>;
|
|
670
943
|
email: z.ZodOptional<z.ZodString>;
|
|
944
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
945
|
+
address: z.ZodOptional<z.ZodString>;
|
|
946
|
+
birthday: z.ZodOptional<z.ZodString>;
|
|
671
947
|
/** Avatar file id (string) or null. */
|
|
672
948
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
673
949
|
/** Named Bloom color preset (e.g. `"blue"`) or null. */
|
|
@@ -675,6 +951,17 @@ export declare const deviceSessionAccountSchema: z.ZodObject<{
|
|
|
675
951
|
name: z.ZodType<UserNameResponse, z.ZodTypeDef, UserNameResponse>;
|
|
676
952
|
verified: z.ZodOptional<z.ZodBoolean>;
|
|
677
953
|
language: z.ZodOptional<z.ZodString>;
|
|
954
|
+
/**
|
|
955
|
+
* The account's self-sovereign identifier
|
|
956
|
+
* (`did:web:<FEDERATION_DOMAIN>:u:<userId>`). Surfaced as a `User`
|
|
957
|
+
* virtual; present on formatted DTOs once the identity layer is live.
|
|
958
|
+
*/
|
|
959
|
+
did: z.ZodOptional<z.ZodString>;
|
|
960
|
+
/**
|
|
961
|
+
* Proven domain-ownership badges. Each is a {@link verifiedDomainSchema}
|
|
962
|
+
* entry; present only when the account has verified at least one domain.
|
|
963
|
+
*/
|
|
964
|
+
verifiedDomains: z.ZodOptional<z.ZodArray<z.ZodType<import("./identity").VerifiedDomain, z.ZodTypeDef, import("./identity").VerifiedDomain>, "many">>;
|
|
678
965
|
}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
679
966
|
isCurrent?: boolean | undefined;
|
|
680
967
|
}>;
|
|
@@ -691,6 +978,9 @@ export declare const deviceSessionsResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
691
978
|
publicKey: z.ZodOptional<z.ZodString>;
|
|
692
979
|
username: z.ZodOptional<z.ZodString>;
|
|
693
980
|
email: z.ZodOptional<z.ZodString>;
|
|
981
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
982
|
+
address: z.ZodOptional<z.ZodString>;
|
|
983
|
+
birthday: z.ZodOptional<z.ZodString>;
|
|
694
984
|
/** Avatar file id (string) or null. */
|
|
695
985
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
696
986
|
/** Named Bloom color preset (e.g. `"blue"`) or null. */
|
|
@@ -698,6 +988,17 @@ export declare const deviceSessionsResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
698
988
|
name: z.ZodType<UserNameResponse, z.ZodTypeDef, UserNameResponse>;
|
|
699
989
|
verified: z.ZodOptional<z.ZodBoolean>;
|
|
700
990
|
language: z.ZodOptional<z.ZodString>;
|
|
991
|
+
/**
|
|
992
|
+
* The account's self-sovereign identifier
|
|
993
|
+
* (`did:web:<FEDERATION_DOMAIN>:u:<userId>`). Surfaced as a `User`
|
|
994
|
+
* virtual; present on formatted DTOs once the identity layer is live.
|
|
995
|
+
*/
|
|
996
|
+
did: z.ZodOptional<z.ZodString>;
|
|
997
|
+
/**
|
|
998
|
+
* Proven domain-ownership badges. Each is a {@link verifiedDomainSchema}
|
|
999
|
+
* entry; present only when the account has verified at least one domain.
|
|
1000
|
+
*/
|
|
1001
|
+
verifiedDomains: z.ZodOptional<z.ZodArray<z.ZodType<import("./identity").VerifiedDomain, z.ZodTypeDef, import("./identity").VerifiedDomain>, "many">>;
|
|
701
1002
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
702
1003
|
/** MongoDB ObjectId as a string. Present on `formatUserResponse` output. */
|
|
703
1004
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -706,6 +1007,9 @@ export declare const deviceSessionsResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
706
1007
|
publicKey: z.ZodOptional<z.ZodString>;
|
|
707
1008
|
username: z.ZodOptional<z.ZodString>;
|
|
708
1009
|
email: z.ZodOptional<z.ZodString>;
|
|
1010
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
1011
|
+
address: z.ZodOptional<z.ZodString>;
|
|
1012
|
+
birthday: z.ZodOptional<z.ZodString>;
|
|
709
1013
|
/** Avatar file id (string) or null. */
|
|
710
1014
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
711
1015
|
/** Named Bloom color preset (e.g. `"blue"`) or null. */
|
|
@@ -713,6 +1017,17 @@ export declare const deviceSessionsResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
713
1017
|
name: z.ZodType<UserNameResponse, z.ZodTypeDef, UserNameResponse>;
|
|
714
1018
|
verified: z.ZodOptional<z.ZodBoolean>;
|
|
715
1019
|
language: z.ZodOptional<z.ZodString>;
|
|
1020
|
+
/**
|
|
1021
|
+
* The account's self-sovereign identifier
|
|
1022
|
+
* (`did:web:<FEDERATION_DOMAIN>:u:<userId>`). Surfaced as a `User`
|
|
1023
|
+
* virtual; present on formatted DTOs once the identity layer is live.
|
|
1024
|
+
*/
|
|
1025
|
+
did: z.ZodOptional<z.ZodString>;
|
|
1026
|
+
/**
|
|
1027
|
+
* Proven domain-ownership badges. Each is a {@link verifiedDomainSchema}
|
|
1028
|
+
* entry; present only when the account has verified at least one domain.
|
|
1029
|
+
*/
|
|
1030
|
+
verifiedDomains: z.ZodOptional<z.ZodArray<z.ZodType<import("./identity").VerifiedDomain, z.ZodTypeDef, import("./identity").VerifiedDomain>, "many">>;
|
|
716
1031
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
717
1032
|
/** MongoDB ObjectId as a string. Present on `formatUserResponse` output. */
|
|
718
1033
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -721,6 +1036,9 @@ export declare const deviceSessionsResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
721
1036
|
publicKey: z.ZodOptional<z.ZodString>;
|
|
722
1037
|
username: z.ZodOptional<z.ZodString>;
|
|
723
1038
|
email: z.ZodOptional<z.ZodString>;
|
|
1039
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
1040
|
+
address: z.ZodOptional<z.ZodString>;
|
|
1041
|
+
birthday: z.ZodOptional<z.ZodString>;
|
|
724
1042
|
/** Avatar file id (string) or null. */
|
|
725
1043
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
726
1044
|
/** Named Bloom color preset (e.g. `"blue"`) or null. */
|
|
@@ -728,6 +1046,17 @@ export declare const deviceSessionsResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
728
1046
|
name: z.ZodType<UserNameResponse, z.ZodTypeDef, UserNameResponse>;
|
|
729
1047
|
verified: z.ZodOptional<z.ZodBoolean>;
|
|
730
1048
|
language: z.ZodOptional<z.ZodString>;
|
|
1049
|
+
/**
|
|
1050
|
+
* The account's self-sovereign identifier
|
|
1051
|
+
* (`did:web:<FEDERATION_DOMAIN>:u:<userId>`). Surfaced as a `User`
|
|
1052
|
+
* virtual; present on formatted DTOs once the identity layer is live.
|
|
1053
|
+
*/
|
|
1054
|
+
did: z.ZodOptional<z.ZodString>;
|
|
1055
|
+
/**
|
|
1056
|
+
* Proven domain-ownership badges. Each is a {@link verifiedDomainSchema}
|
|
1057
|
+
* entry; present only when the account has verified at least one domain.
|
|
1058
|
+
*/
|
|
1059
|
+
verifiedDomains: z.ZodOptional<z.ZodArray<z.ZodType<import("./identity").VerifiedDomain, z.ZodTypeDef, import("./identity").VerifiedDomain>, "many">>;
|
|
731
1060
|
}, z.ZodTypeAny, "passthrough">>>>;
|
|
732
1061
|
}, "strip", z.ZodTypeAny, {
|
|
733
1062
|
sessionId: string;
|
|
@@ -739,6 +1068,9 @@ export declare const deviceSessionsResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
739
1068
|
publicKey: z.ZodOptional<z.ZodString>;
|
|
740
1069
|
username: z.ZodOptional<z.ZodString>;
|
|
741
1070
|
email: z.ZodOptional<z.ZodString>;
|
|
1071
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
1072
|
+
address: z.ZodOptional<z.ZodString>;
|
|
1073
|
+
birthday: z.ZodOptional<z.ZodString>;
|
|
742
1074
|
/** Avatar file id (string) or null. */
|
|
743
1075
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
744
1076
|
/** Named Bloom color preset (e.g. `"blue"`) or null. */
|
|
@@ -746,6 +1078,17 @@ export declare const deviceSessionsResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
746
1078
|
name: z.ZodType<UserNameResponse, z.ZodTypeDef, UserNameResponse>;
|
|
747
1079
|
verified: z.ZodOptional<z.ZodBoolean>;
|
|
748
1080
|
language: z.ZodOptional<z.ZodString>;
|
|
1081
|
+
/**
|
|
1082
|
+
* The account's self-sovereign identifier
|
|
1083
|
+
* (`did:web:<FEDERATION_DOMAIN>:u:<userId>`). Surfaced as a `User`
|
|
1084
|
+
* virtual; present on formatted DTOs once the identity layer is live.
|
|
1085
|
+
*/
|
|
1086
|
+
did: z.ZodOptional<z.ZodString>;
|
|
1087
|
+
/**
|
|
1088
|
+
* Proven domain-ownership badges. Each is a {@link verifiedDomainSchema}
|
|
1089
|
+
* entry; present only when the account has verified at least one domain.
|
|
1090
|
+
*/
|
|
1091
|
+
verifiedDomains: z.ZodOptional<z.ZodArray<z.ZodType<import("./identity").VerifiedDomain, z.ZodTypeDef, import("./identity").VerifiedDomain>, "many">>;
|
|
749
1092
|
}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
750
1093
|
isCurrent?: boolean | undefined;
|
|
751
1094
|
}, {
|
|
@@ -758,6 +1101,9 @@ export declare const deviceSessionsResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
758
1101
|
publicKey: z.ZodOptional<z.ZodString>;
|
|
759
1102
|
username: z.ZodOptional<z.ZodString>;
|
|
760
1103
|
email: z.ZodOptional<z.ZodString>;
|
|
1104
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
1105
|
+
address: z.ZodOptional<z.ZodString>;
|
|
1106
|
+
birthday: z.ZodOptional<z.ZodString>;
|
|
761
1107
|
/** Avatar file id (string) or null. */
|
|
762
1108
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
763
1109
|
/** Named Bloom color preset (e.g. `"blue"`) or null. */
|
|
@@ -765,6 +1111,17 @@ export declare const deviceSessionsResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
765
1111
|
name: z.ZodType<UserNameResponse, z.ZodTypeDef, UserNameResponse>;
|
|
766
1112
|
verified: z.ZodOptional<z.ZodBoolean>;
|
|
767
1113
|
language: z.ZodOptional<z.ZodString>;
|
|
1114
|
+
/**
|
|
1115
|
+
* The account's self-sovereign identifier
|
|
1116
|
+
* (`did:web:<FEDERATION_DOMAIN>:u:<userId>`). Surfaced as a `User`
|
|
1117
|
+
* virtual; present on formatted DTOs once the identity layer is live.
|
|
1118
|
+
*/
|
|
1119
|
+
did: z.ZodOptional<z.ZodString>;
|
|
1120
|
+
/**
|
|
1121
|
+
* Proven domain-ownership badges. Each is a {@link verifiedDomainSchema}
|
|
1122
|
+
* entry; present only when the account has verified at least one domain.
|
|
1123
|
+
*/
|
|
1124
|
+
verifiedDomains: z.ZodOptional<z.ZodArray<z.ZodType<import("./identity").VerifiedDomain, z.ZodTypeDef, import("./identity").VerifiedDomain>, "many">>;
|
|
768
1125
|
}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
769
1126
|
isCurrent?: boolean | undefined;
|
|
770
1127
|
}>, "many">;
|