@oxyhq/contracts 0.2.0 → 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 -11
- 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 -11
- 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 +20 -110
- package/dist/types/userResponse.d.ts +415 -443
- package/package.json +2 -1
|
@@ -39,26 +39,27 @@ import { z } from 'zod';
|
|
|
39
39
|
* virtuals or the serializer composed it.
|
|
40
40
|
* - `displayName` is the required canonical app-facing display string.
|
|
41
41
|
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
42
|
+
* This is declared as an explicit `interface` rather than being inferred from
|
|
43
|
+
* the runtime schema via `z.infer<typeof userNameSchema>`. Inferring it produced
|
|
44
|
+
* a `z.objectOutputType<…, "passthrough">` in the emitted `.d.ts`, whose
|
|
45
|
+
* resolution to the named fields depends on zod's deep conditional-type
|
|
46
|
+
* machinery (`objectUtil.addQuestionMarks` / `flatten` / `PassthroughType`).
|
|
47
|
+
* Under a consumer's `moduleResolution: "node"` (node10), that chain does not
|
|
48
|
+
* always resolve, so `name.displayName` silently widened to `{}` and broke the
|
|
49
|
+
* "render `name.displayName` directly" contract at the type level. An explicit
|
|
50
|
+
* interface emits `displayName: string` literally and survives BOTH `node` and
|
|
51
|
+
* `bundler` resolution. The index signature preserves the passthrough behaviour
|
|
52
|
+
* (additive name fields are tolerated without a coordinated contract bump).
|
|
44
53
|
*/
|
|
45
|
-
export
|
|
46
|
-
first
|
|
47
|
-
last
|
|
48
|
-
full
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
displayName: z.ZodString;
|
|
55
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
56
|
-
first: z.ZodOptional<z.ZodString>;
|
|
57
|
-
last: z.ZodOptional<z.ZodString>;
|
|
58
|
-
full: z.ZodOptional<z.ZodString>;
|
|
59
|
-
displayName: z.ZodString;
|
|
60
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
61
|
-
export type UserNameResponse = z.infer<typeof userNameSchema>;
|
|
54
|
+
export interface UserNameResponse {
|
|
55
|
+
first?: string;
|
|
56
|
+
last?: string;
|
|
57
|
+
full?: string;
|
|
58
|
+
/** Required canonical display string — render this directly. */
|
|
59
|
+
displayName: string;
|
|
60
|
+
[key: string]: unknown;
|
|
61
|
+
}
|
|
62
|
+
export declare const userNameSchema: z.ZodType<UserNameResponse>;
|
|
62
63
|
/**
|
|
63
64
|
* The canonical user object emitted by `formatUserResponse`.
|
|
64
65
|
*
|
|
@@ -82,28 +83,27 @@ export declare const userResponseSchema: z.ZodObject<{
|
|
|
82
83
|
publicKey: z.ZodOptional<z.ZodString>;
|
|
83
84
|
username: z.ZodOptional<z.ZodString>;
|
|
84
85
|
email: z.ZodOptional<z.ZodString>;
|
|
86
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
87
|
+
address: z.ZodOptional<z.ZodString>;
|
|
88
|
+
birthday: z.ZodOptional<z.ZodString>;
|
|
85
89
|
/** Avatar file id (string) or null. */
|
|
86
90
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
87
91
|
/** Named Bloom color preset (e.g. `"blue"`) or null. */
|
|
88
92
|
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
89
|
-
name: z.
|
|
90
|
-
first: z.ZodOptional<z.ZodString>;
|
|
91
|
-
last: z.ZodOptional<z.ZodString>;
|
|
92
|
-
full: z.ZodOptional<z.ZodString>;
|
|
93
|
-
displayName: z.ZodString;
|
|
94
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
95
|
-
first: z.ZodOptional<z.ZodString>;
|
|
96
|
-
last: z.ZodOptional<z.ZodString>;
|
|
97
|
-
full: z.ZodOptional<z.ZodString>;
|
|
98
|
-
displayName: z.ZodString;
|
|
99
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
100
|
-
first: z.ZodOptional<z.ZodString>;
|
|
101
|
-
last: z.ZodOptional<z.ZodString>;
|
|
102
|
-
full: z.ZodOptional<z.ZodString>;
|
|
103
|
-
displayName: z.ZodString;
|
|
104
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
93
|
+
name: z.ZodType<UserNameResponse, z.ZodTypeDef, UserNameResponse>;
|
|
105
94
|
verified: z.ZodOptional<z.ZodBoolean>;
|
|
106
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">>;
|
|
107
107
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
108
108
|
/** MongoDB ObjectId as a string. Present on `formatUserResponse` output. */
|
|
109
109
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -112,28 +112,27 @@ export declare const userResponseSchema: z.ZodObject<{
|
|
|
112
112
|
publicKey: z.ZodOptional<z.ZodString>;
|
|
113
113
|
username: z.ZodOptional<z.ZodString>;
|
|
114
114
|
email: z.ZodOptional<z.ZodString>;
|
|
115
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
116
|
+
address: z.ZodOptional<z.ZodString>;
|
|
117
|
+
birthday: z.ZodOptional<z.ZodString>;
|
|
115
118
|
/** Avatar file id (string) or null. */
|
|
116
119
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
117
120
|
/** Named Bloom color preset (e.g. `"blue"`) or null. */
|
|
118
121
|
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
119
|
-
name: z.
|
|
120
|
-
first: z.ZodOptional<z.ZodString>;
|
|
121
|
-
last: z.ZodOptional<z.ZodString>;
|
|
122
|
-
full: z.ZodOptional<z.ZodString>;
|
|
123
|
-
displayName: z.ZodString;
|
|
124
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
125
|
-
first: z.ZodOptional<z.ZodString>;
|
|
126
|
-
last: z.ZodOptional<z.ZodString>;
|
|
127
|
-
full: z.ZodOptional<z.ZodString>;
|
|
128
|
-
displayName: z.ZodString;
|
|
129
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
130
|
-
first: z.ZodOptional<z.ZodString>;
|
|
131
|
-
last: z.ZodOptional<z.ZodString>;
|
|
132
|
-
full: z.ZodOptional<z.ZodString>;
|
|
133
|
-
displayName: z.ZodString;
|
|
134
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
122
|
+
name: z.ZodType<UserNameResponse, z.ZodTypeDef, UserNameResponse>;
|
|
135
123
|
verified: z.ZodOptional<z.ZodBoolean>;
|
|
136
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">>;
|
|
137
136
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
138
137
|
/** MongoDB ObjectId as a string. Present on `formatUserResponse` output. */
|
|
139
138
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -142,28 +141,27 @@ export declare const userResponseSchema: z.ZodObject<{
|
|
|
142
141
|
publicKey: z.ZodOptional<z.ZodString>;
|
|
143
142
|
username: z.ZodOptional<z.ZodString>;
|
|
144
143
|
email: z.ZodOptional<z.ZodString>;
|
|
144
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
145
|
+
address: z.ZodOptional<z.ZodString>;
|
|
146
|
+
birthday: z.ZodOptional<z.ZodString>;
|
|
145
147
|
/** Avatar file id (string) or null. */
|
|
146
148
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
147
149
|
/** Named Bloom color preset (e.g. `"blue"`) or null. */
|
|
148
150
|
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
149
|
-
name: z.
|
|
150
|
-
first: z.ZodOptional<z.ZodString>;
|
|
151
|
-
last: z.ZodOptional<z.ZodString>;
|
|
152
|
-
full: z.ZodOptional<z.ZodString>;
|
|
153
|
-
displayName: z.ZodString;
|
|
154
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
155
|
-
first: z.ZodOptional<z.ZodString>;
|
|
156
|
-
last: z.ZodOptional<z.ZodString>;
|
|
157
|
-
full: z.ZodOptional<z.ZodString>;
|
|
158
|
-
displayName: z.ZodString;
|
|
159
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
160
|
-
first: z.ZodOptional<z.ZodString>;
|
|
161
|
-
last: z.ZodOptional<z.ZodString>;
|
|
162
|
-
full: z.ZodOptional<z.ZodString>;
|
|
163
|
-
displayName: z.ZodString;
|
|
164
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
151
|
+
name: z.ZodType<UserNameResponse, z.ZodTypeDef, UserNameResponse>;
|
|
165
152
|
verified: z.ZodOptional<z.ZodBoolean>;
|
|
166
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">>;
|
|
167
165
|
}, z.ZodTypeAny, "passthrough">>;
|
|
168
166
|
export type UserResponse = z.infer<typeof userResponseSchema>;
|
|
169
167
|
export declare const userProfileUpdateSchema: z.ZodObject<{
|
|
@@ -183,6 +181,9 @@ export declare const userProfileUpdateSchema: z.ZodObject<{
|
|
|
183
181
|
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
184
182
|
bio: z.ZodOptional<z.ZodString>;
|
|
185
183
|
description: z.ZodOptional<z.ZodString>;
|
|
184
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
185
|
+
address: z.ZodOptional<z.ZodString>;
|
|
186
|
+
birthday: z.ZodOptional<z.ZodString>;
|
|
186
187
|
location: z.ZodOptional<z.ZodString>;
|
|
187
188
|
locations: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
188
189
|
links: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -227,6 +228,9 @@ export declare const userProfileUpdateSchema: z.ZodObject<{
|
|
|
227
228
|
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
228
229
|
bio: z.ZodOptional<z.ZodString>;
|
|
229
230
|
description: z.ZodOptional<z.ZodString>;
|
|
231
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
232
|
+
address: z.ZodOptional<z.ZodString>;
|
|
233
|
+
birthday: z.ZodOptional<z.ZodString>;
|
|
230
234
|
location: z.ZodOptional<z.ZodString>;
|
|
231
235
|
locations: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
232
236
|
links: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -271,6 +275,9 @@ export declare const userProfileUpdateSchema: z.ZodObject<{
|
|
|
271
275
|
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
272
276
|
bio: z.ZodOptional<z.ZodString>;
|
|
273
277
|
description: z.ZodOptional<z.ZodString>;
|
|
278
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
279
|
+
address: z.ZodOptional<z.ZodString>;
|
|
280
|
+
birthday: z.ZodOptional<z.ZodString>;
|
|
274
281
|
location: z.ZodOptional<z.ZodString>;
|
|
275
282
|
locations: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
276
283
|
links: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -325,28 +332,27 @@ export declare const refreshAllAccountSchema: z.ZodObject<{
|
|
|
325
332
|
publicKey: z.ZodOptional<z.ZodString>;
|
|
326
333
|
username: z.ZodOptional<z.ZodString>;
|
|
327
334
|
email: z.ZodOptional<z.ZodString>;
|
|
335
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
336
|
+
address: z.ZodOptional<z.ZodString>;
|
|
337
|
+
birthday: z.ZodOptional<z.ZodString>;
|
|
328
338
|
/** Avatar file id (string) or null. */
|
|
329
339
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
330
340
|
/** Named Bloom color preset (e.g. `"blue"`) or null. */
|
|
331
341
|
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
332
|
-
name: z.
|
|
333
|
-
first: z.ZodOptional<z.ZodString>;
|
|
334
|
-
last: z.ZodOptional<z.ZodString>;
|
|
335
|
-
full: z.ZodOptional<z.ZodString>;
|
|
336
|
-
displayName: z.ZodString;
|
|
337
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
338
|
-
first: z.ZodOptional<z.ZodString>;
|
|
339
|
-
last: z.ZodOptional<z.ZodString>;
|
|
340
|
-
full: z.ZodOptional<z.ZodString>;
|
|
341
|
-
displayName: z.ZodString;
|
|
342
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
343
|
-
first: z.ZodOptional<z.ZodString>;
|
|
344
|
-
last: z.ZodOptional<z.ZodString>;
|
|
345
|
-
full: z.ZodOptional<z.ZodString>;
|
|
346
|
-
displayName: z.ZodString;
|
|
347
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
342
|
+
name: z.ZodType<UserNameResponse, z.ZodTypeDef, UserNameResponse>;
|
|
348
343
|
verified: z.ZodOptional<z.ZodBoolean>;
|
|
349
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">>;
|
|
350
356
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
351
357
|
/** MongoDB ObjectId as a string. Present on `formatUserResponse` output. */
|
|
352
358
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -355,28 +361,27 @@ export declare const refreshAllAccountSchema: z.ZodObject<{
|
|
|
355
361
|
publicKey: z.ZodOptional<z.ZodString>;
|
|
356
362
|
username: z.ZodOptional<z.ZodString>;
|
|
357
363
|
email: z.ZodOptional<z.ZodString>;
|
|
364
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
365
|
+
address: z.ZodOptional<z.ZodString>;
|
|
366
|
+
birthday: z.ZodOptional<z.ZodString>;
|
|
358
367
|
/** Avatar file id (string) or null. */
|
|
359
368
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
360
369
|
/** Named Bloom color preset (e.g. `"blue"`) or null. */
|
|
361
370
|
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
362
|
-
name: z.
|
|
363
|
-
first: z.ZodOptional<z.ZodString>;
|
|
364
|
-
last: z.ZodOptional<z.ZodString>;
|
|
365
|
-
full: z.ZodOptional<z.ZodString>;
|
|
366
|
-
displayName: z.ZodString;
|
|
367
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
368
|
-
first: z.ZodOptional<z.ZodString>;
|
|
369
|
-
last: z.ZodOptional<z.ZodString>;
|
|
370
|
-
full: z.ZodOptional<z.ZodString>;
|
|
371
|
-
displayName: z.ZodString;
|
|
372
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
373
|
-
first: z.ZodOptional<z.ZodString>;
|
|
374
|
-
last: z.ZodOptional<z.ZodString>;
|
|
375
|
-
full: z.ZodOptional<z.ZodString>;
|
|
376
|
-
displayName: z.ZodString;
|
|
377
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
371
|
+
name: z.ZodType<UserNameResponse, z.ZodTypeDef, UserNameResponse>;
|
|
378
372
|
verified: z.ZodOptional<z.ZodBoolean>;
|
|
379
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">>;
|
|
380
385
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
381
386
|
/** MongoDB ObjectId as a string. Present on `formatUserResponse` output. */
|
|
382
387
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -385,28 +390,27 @@ export declare const refreshAllAccountSchema: z.ZodObject<{
|
|
|
385
390
|
publicKey: z.ZodOptional<z.ZodString>;
|
|
386
391
|
username: z.ZodOptional<z.ZodString>;
|
|
387
392
|
email: z.ZodOptional<z.ZodString>;
|
|
393
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
394
|
+
address: z.ZodOptional<z.ZodString>;
|
|
395
|
+
birthday: z.ZodOptional<z.ZodString>;
|
|
388
396
|
/** Avatar file id (string) or null. */
|
|
389
397
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
390
398
|
/** Named Bloom color preset (e.g. `"blue"`) or null. */
|
|
391
399
|
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
392
|
-
name: z.
|
|
393
|
-
first: z.ZodOptional<z.ZodString>;
|
|
394
|
-
last: z.ZodOptional<z.ZodString>;
|
|
395
|
-
full: z.ZodOptional<z.ZodString>;
|
|
396
|
-
displayName: z.ZodString;
|
|
397
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
398
|
-
first: z.ZodOptional<z.ZodString>;
|
|
399
|
-
last: z.ZodOptional<z.ZodString>;
|
|
400
|
-
full: z.ZodOptional<z.ZodString>;
|
|
401
|
-
displayName: z.ZodString;
|
|
402
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
403
|
-
first: z.ZodOptional<z.ZodString>;
|
|
404
|
-
last: z.ZodOptional<z.ZodString>;
|
|
405
|
-
full: z.ZodOptional<z.ZodString>;
|
|
406
|
-
displayName: z.ZodString;
|
|
407
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
400
|
+
name: z.ZodType<UserNameResponse, z.ZodTypeDef, UserNameResponse>;
|
|
408
401
|
verified: z.ZodOptional<z.ZodBoolean>;
|
|
409
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">>;
|
|
410
414
|
}, z.ZodTypeAny, "passthrough">>;
|
|
411
415
|
}, "strip", z.ZodTypeAny, {
|
|
412
416
|
authuser: number;
|
|
@@ -414,19 +418,17 @@ export declare const refreshAllAccountSchema: z.ZodObject<{
|
|
|
414
418
|
expiresAt: string;
|
|
415
419
|
sessionId: string;
|
|
416
420
|
user: {
|
|
417
|
-
name:
|
|
418
|
-
displayName: string;
|
|
419
|
-
first?: string | undefined;
|
|
420
|
-
last?: string | undefined;
|
|
421
|
-
full?: string | undefined;
|
|
422
|
-
} & {
|
|
423
|
-
[k: string]: unknown;
|
|
424
|
-
};
|
|
421
|
+
name: UserNameResponse;
|
|
425
422
|
id?: string | undefined;
|
|
426
|
-
_id?: string | undefined;
|
|
427
423
|
publicKey?: string | undefined;
|
|
424
|
+
did?: string | undefined;
|
|
425
|
+
verifiedDomains?: import("./identity").VerifiedDomain[] | undefined;
|
|
426
|
+
_id?: string | undefined;
|
|
428
427
|
username?: string | undefined;
|
|
429
428
|
email?: string | undefined;
|
|
429
|
+
phone?: string | undefined;
|
|
430
|
+
address?: string | undefined;
|
|
431
|
+
birthday?: string | undefined;
|
|
430
432
|
avatar?: string | null | undefined;
|
|
431
433
|
color?: string | null | undefined;
|
|
432
434
|
verified?: boolean | undefined;
|
|
@@ -440,19 +442,17 @@ export declare const refreshAllAccountSchema: z.ZodObject<{
|
|
|
440
442
|
expiresAt: string;
|
|
441
443
|
sessionId: string;
|
|
442
444
|
user: {
|
|
443
|
-
name:
|
|
444
|
-
displayName: string;
|
|
445
|
-
first?: string | undefined;
|
|
446
|
-
last?: string | undefined;
|
|
447
|
-
full?: string | undefined;
|
|
448
|
-
} & {
|
|
449
|
-
[k: string]: unknown;
|
|
450
|
-
};
|
|
445
|
+
name: UserNameResponse;
|
|
451
446
|
id?: string | undefined;
|
|
452
|
-
_id?: string | undefined;
|
|
453
447
|
publicKey?: string | undefined;
|
|
448
|
+
did?: string | undefined;
|
|
449
|
+
verifiedDomains?: import("./identity").VerifiedDomain[] | undefined;
|
|
450
|
+
_id?: string | undefined;
|
|
454
451
|
username?: string | undefined;
|
|
455
452
|
email?: string | undefined;
|
|
453
|
+
phone?: string | undefined;
|
|
454
|
+
address?: string | undefined;
|
|
455
|
+
birthday?: string | undefined;
|
|
456
456
|
avatar?: string | null | undefined;
|
|
457
457
|
color?: string | null | undefined;
|
|
458
458
|
verified?: boolean | undefined;
|
|
@@ -481,28 +481,27 @@ export declare const refreshAllResponseSchema: z.ZodObject<{
|
|
|
481
481
|
publicKey: z.ZodOptional<z.ZodString>;
|
|
482
482
|
username: z.ZodOptional<z.ZodString>;
|
|
483
483
|
email: z.ZodOptional<z.ZodString>;
|
|
484
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
485
|
+
address: z.ZodOptional<z.ZodString>;
|
|
486
|
+
birthday: z.ZodOptional<z.ZodString>;
|
|
484
487
|
/** Avatar file id (string) or null. */
|
|
485
488
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
486
489
|
/** Named Bloom color preset (e.g. `"blue"`) or null. */
|
|
487
490
|
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
488
|
-
name: z.
|
|
489
|
-
first: z.ZodOptional<z.ZodString>;
|
|
490
|
-
last: z.ZodOptional<z.ZodString>;
|
|
491
|
-
full: z.ZodOptional<z.ZodString>;
|
|
492
|
-
displayName: z.ZodString;
|
|
493
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
494
|
-
first: z.ZodOptional<z.ZodString>;
|
|
495
|
-
last: z.ZodOptional<z.ZodString>;
|
|
496
|
-
full: z.ZodOptional<z.ZodString>;
|
|
497
|
-
displayName: z.ZodString;
|
|
498
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
499
|
-
first: z.ZodOptional<z.ZodString>;
|
|
500
|
-
last: z.ZodOptional<z.ZodString>;
|
|
501
|
-
full: z.ZodOptional<z.ZodString>;
|
|
502
|
-
displayName: z.ZodString;
|
|
503
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
491
|
+
name: z.ZodType<UserNameResponse, z.ZodTypeDef, UserNameResponse>;
|
|
504
492
|
verified: z.ZodOptional<z.ZodBoolean>;
|
|
505
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">>;
|
|
506
505
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
507
506
|
/** MongoDB ObjectId as a string. Present on `formatUserResponse` output. */
|
|
508
507
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -511,28 +510,27 @@ export declare const refreshAllResponseSchema: z.ZodObject<{
|
|
|
511
510
|
publicKey: z.ZodOptional<z.ZodString>;
|
|
512
511
|
username: z.ZodOptional<z.ZodString>;
|
|
513
512
|
email: z.ZodOptional<z.ZodString>;
|
|
513
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
514
|
+
address: z.ZodOptional<z.ZodString>;
|
|
515
|
+
birthday: z.ZodOptional<z.ZodString>;
|
|
514
516
|
/** Avatar file id (string) or null. */
|
|
515
517
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
516
518
|
/** Named Bloom color preset (e.g. `"blue"`) or null. */
|
|
517
519
|
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
518
|
-
name: z.
|
|
519
|
-
first: z.ZodOptional<z.ZodString>;
|
|
520
|
-
last: z.ZodOptional<z.ZodString>;
|
|
521
|
-
full: z.ZodOptional<z.ZodString>;
|
|
522
|
-
displayName: z.ZodString;
|
|
523
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
524
|
-
first: z.ZodOptional<z.ZodString>;
|
|
525
|
-
last: z.ZodOptional<z.ZodString>;
|
|
526
|
-
full: z.ZodOptional<z.ZodString>;
|
|
527
|
-
displayName: z.ZodString;
|
|
528
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
529
|
-
first: z.ZodOptional<z.ZodString>;
|
|
530
|
-
last: z.ZodOptional<z.ZodString>;
|
|
531
|
-
full: z.ZodOptional<z.ZodString>;
|
|
532
|
-
displayName: z.ZodString;
|
|
533
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
520
|
+
name: z.ZodType<UserNameResponse, z.ZodTypeDef, UserNameResponse>;
|
|
534
521
|
verified: z.ZodOptional<z.ZodBoolean>;
|
|
535
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">>;
|
|
536
534
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
537
535
|
/** MongoDB ObjectId as a string. Present on `formatUserResponse` output. */
|
|
538
536
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -541,28 +539,27 @@ export declare const refreshAllResponseSchema: z.ZodObject<{
|
|
|
541
539
|
publicKey: z.ZodOptional<z.ZodString>;
|
|
542
540
|
username: z.ZodOptional<z.ZodString>;
|
|
543
541
|
email: z.ZodOptional<z.ZodString>;
|
|
542
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
543
|
+
address: z.ZodOptional<z.ZodString>;
|
|
544
|
+
birthday: z.ZodOptional<z.ZodString>;
|
|
544
545
|
/** Avatar file id (string) or null. */
|
|
545
546
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
546
547
|
/** Named Bloom color preset (e.g. `"blue"`) or null. */
|
|
547
548
|
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
548
|
-
name: z.
|
|
549
|
-
first: z.ZodOptional<z.ZodString>;
|
|
550
|
-
last: z.ZodOptional<z.ZodString>;
|
|
551
|
-
full: z.ZodOptional<z.ZodString>;
|
|
552
|
-
displayName: z.ZodString;
|
|
553
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
554
|
-
first: z.ZodOptional<z.ZodString>;
|
|
555
|
-
last: z.ZodOptional<z.ZodString>;
|
|
556
|
-
full: z.ZodOptional<z.ZodString>;
|
|
557
|
-
displayName: z.ZodString;
|
|
558
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
559
|
-
first: z.ZodOptional<z.ZodString>;
|
|
560
|
-
last: z.ZodOptional<z.ZodString>;
|
|
561
|
-
full: z.ZodOptional<z.ZodString>;
|
|
562
|
-
displayName: z.ZodString;
|
|
563
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
549
|
+
name: z.ZodType<UserNameResponse, z.ZodTypeDef, UserNameResponse>;
|
|
564
550
|
verified: z.ZodOptional<z.ZodBoolean>;
|
|
565
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">>;
|
|
566
563
|
}, z.ZodTypeAny, "passthrough">>;
|
|
567
564
|
}, "strip", z.ZodTypeAny, {
|
|
568
565
|
authuser: number;
|
|
@@ -570,19 +567,17 @@ export declare const refreshAllResponseSchema: z.ZodObject<{
|
|
|
570
567
|
expiresAt: string;
|
|
571
568
|
sessionId: string;
|
|
572
569
|
user: {
|
|
573
|
-
name:
|
|
574
|
-
displayName: string;
|
|
575
|
-
first?: string | undefined;
|
|
576
|
-
last?: string | undefined;
|
|
577
|
-
full?: string | undefined;
|
|
578
|
-
} & {
|
|
579
|
-
[k: string]: unknown;
|
|
580
|
-
};
|
|
570
|
+
name: UserNameResponse;
|
|
581
571
|
id?: string | undefined;
|
|
582
|
-
_id?: string | undefined;
|
|
583
572
|
publicKey?: string | undefined;
|
|
573
|
+
did?: string | undefined;
|
|
574
|
+
verifiedDomains?: import("./identity").VerifiedDomain[] | undefined;
|
|
575
|
+
_id?: string | undefined;
|
|
584
576
|
username?: string | undefined;
|
|
585
577
|
email?: string | undefined;
|
|
578
|
+
phone?: string | undefined;
|
|
579
|
+
address?: string | undefined;
|
|
580
|
+
birthday?: string | undefined;
|
|
586
581
|
avatar?: string | null | undefined;
|
|
587
582
|
color?: string | null | undefined;
|
|
588
583
|
verified?: boolean | undefined;
|
|
@@ -596,19 +591,17 @@ export declare const refreshAllResponseSchema: z.ZodObject<{
|
|
|
596
591
|
expiresAt: string;
|
|
597
592
|
sessionId: string;
|
|
598
593
|
user: {
|
|
599
|
-
name:
|
|
600
|
-
displayName: string;
|
|
601
|
-
first?: string | undefined;
|
|
602
|
-
last?: string | undefined;
|
|
603
|
-
full?: string | undefined;
|
|
604
|
-
} & {
|
|
605
|
-
[k: string]: unknown;
|
|
606
|
-
};
|
|
594
|
+
name: UserNameResponse;
|
|
607
595
|
id?: string | undefined;
|
|
608
|
-
_id?: string | undefined;
|
|
609
596
|
publicKey?: string | undefined;
|
|
597
|
+
did?: string | undefined;
|
|
598
|
+
verifiedDomains?: import("./identity").VerifiedDomain[] | undefined;
|
|
599
|
+
_id?: string | undefined;
|
|
610
600
|
username?: string | undefined;
|
|
611
601
|
email?: string | undefined;
|
|
602
|
+
phone?: string | undefined;
|
|
603
|
+
address?: string | undefined;
|
|
604
|
+
birthday?: string | undefined;
|
|
612
605
|
avatar?: string | null | undefined;
|
|
613
606
|
color?: string | null | undefined;
|
|
614
607
|
verified?: boolean | undefined;
|
|
@@ -624,19 +617,17 @@ export declare const refreshAllResponseSchema: z.ZodObject<{
|
|
|
624
617
|
expiresAt: string;
|
|
625
618
|
sessionId: string;
|
|
626
619
|
user: {
|
|
627
|
-
name:
|
|
628
|
-
displayName: string;
|
|
629
|
-
first?: string | undefined;
|
|
630
|
-
last?: string | undefined;
|
|
631
|
-
full?: string | undefined;
|
|
632
|
-
} & {
|
|
633
|
-
[k: string]: unknown;
|
|
634
|
-
};
|
|
620
|
+
name: UserNameResponse;
|
|
635
621
|
id?: string | undefined;
|
|
636
|
-
_id?: string | undefined;
|
|
637
622
|
publicKey?: string | undefined;
|
|
623
|
+
did?: string | undefined;
|
|
624
|
+
verifiedDomains?: import("./identity").VerifiedDomain[] | undefined;
|
|
625
|
+
_id?: string | undefined;
|
|
638
626
|
username?: string | undefined;
|
|
639
627
|
email?: string | undefined;
|
|
628
|
+
phone?: string | undefined;
|
|
629
|
+
address?: string | undefined;
|
|
630
|
+
birthday?: string | undefined;
|
|
640
631
|
avatar?: string | null | undefined;
|
|
641
632
|
color?: string | null | undefined;
|
|
642
633
|
verified?: boolean | undefined;
|
|
@@ -652,19 +643,17 @@ export declare const refreshAllResponseSchema: z.ZodObject<{
|
|
|
652
643
|
expiresAt: string;
|
|
653
644
|
sessionId: string;
|
|
654
645
|
user: {
|
|
655
|
-
name:
|
|
656
|
-
displayName: string;
|
|
657
|
-
first?: string | undefined;
|
|
658
|
-
last?: string | undefined;
|
|
659
|
-
full?: string | undefined;
|
|
660
|
-
} & {
|
|
661
|
-
[k: string]: unknown;
|
|
662
|
-
};
|
|
646
|
+
name: UserNameResponse;
|
|
663
647
|
id?: string | undefined;
|
|
664
|
-
_id?: string | undefined;
|
|
665
648
|
publicKey?: string | undefined;
|
|
649
|
+
did?: string | undefined;
|
|
650
|
+
verifiedDomains?: import("./identity").VerifiedDomain[] | undefined;
|
|
651
|
+
_id?: string | undefined;
|
|
666
652
|
username?: string | undefined;
|
|
667
653
|
email?: string | undefined;
|
|
654
|
+
phone?: string | undefined;
|
|
655
|
+
address?: string | undefined;
|
|
656
|
+
birthday?: string | undefined;
|
|
668
657
|
avatar?: string | null | undefined;
|
|
669
658
|
color?: string | null | undefined;
|
|
670
659
|
verified?: boolean | undefined;
|
|
@@ -690,28 +679,27 @@ export declare const currentUserResponseSchema: z.ZodObject<{
|
|
|
690
679
|
publicKey: z.ZodOptional<z.ZodString>;
|
|
691
680
|
username: z.ZodOptional<z.ZodString>;
|
|
692
681
|
email: z.ZodOptional<z.ZodString>;
|
|
682
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
683
|
+
address: z.ZodOptional<z.ZodString>;
|
|
684
|
+
birthday: z.ZodOptional<z.ZodString>;
|
|
693
685
|
/** Avatar file id (string) or null. */
|
|
694
686
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
695
687
|
/** Named Bloom color preset (e.g. `"blue"`) or null. */
|
|
696
688
|
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
697
|
-
name: z.
|
|
698
|
-
first: z.ZodOptional<z.ZodString>;
|
|
699
|
-
last: z.ZodOptional<z.ZodString>;
|
|
700
|
-
full: z.ZodOptional<z.ZodString>;
|
|
701
|
-
displayName: z.ZodString;
|
|
702
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
703
|
-
first: z.ZodOptional<z.ZodString>;
|
|
704
|
-
last: z.ZodOptional<z.ZodString>;
|
|
705
|
-
full: z.ZodOptional<z.ZodString>;
|
|
706
|
-
displayName: z.ZodString;
|
|
707
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
708
|
-
first: z.ZodOptional<z.ZodString>;
|
|
709
|
-
last: z.ZodOptional<z.ZodString>;
|
|
710
|
-
full: z.ZodOptional<z.ZodString>;
|
|
711
|
-
displayName: z.ZodString;
|
|
712
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
689
|
+
name: z.ZodType<UserNameResponse, z.ZodTypeDef, UserNameResponse>;
|
|
713
690
|
verified: z.ZodOptional<z.ZodBoolean>;
|
|
714
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">>;
|
|
715
703
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
716
704
|
/** MongoDB ObjectId as a string. Present on `formatUserResponse` output. */
|
|
717
705
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -720,28 +708,27 @@ export declare const currentUserResponseSchema: z.ZodObject<{
|
|
|
720
708
|
publicKey: z.ZodOptional<z.ZodString>;
|
|
721
709
|
username: z.ZodOptional<z.ZodString>;
|
|
722
710
|
email: z.ZodOptional<z.ZodString>;
|
|
711
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
712
|
+
address: z.ZodOptional<z.ZodString>;
|
|
713
|
+
birthday: z.ZodOptional<z.ZodString>;
|
|
723
714
|
/** Avatar file id (string) or null. */
|
|
724
715
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
725
716
|
/** Named Bloom color preset (e.g. `"blue"`) or null. */
|
|
726
717
|
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
727
|
-
name: z.
|
|
728
|
-
first: z.ZodOptional<z.ZodString>;
|
|
729
|
-
last: z.ZodOptional<z.ZodString>;
|
|
730
|
-
full: z.ZodOptional<z.ZodString>;
|
|
731
|
-
displayName: z.ZodString;
|
|
732
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
733
|
-
first: z.ZodOptional<z.ZodString>;
|
|
734
|
-
last: z.ZodOptional<z.ZodString>;
|
|
735
|
-
full: z.ZodOptional<z.ZodString>;
|
|
736
|
-
displayName: z.ZodString;
|
|
737
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
738
|
-
first: z.ZodOptional<z.ZodString>;
|
|
739
|
-
last: z.ZodOptional<z.ZodString>;
|
|
740
|
-
full: z.ZodOptional<z.ZodString>;
|
|
741
|
-
displayName: z.ZodString;
|
|
742
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
718
|
+
name: z.ZodType<UserNameResponse, z.ZodTypeDef, UserNameResponse>;
|
|
743
719
|
verified: z.ZodOptional<z.ZodBoolean>;
|
|
744
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">>;
|
|
745
732
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
746
733
|
/** MongoDB ObjectId as a string. Present on `formatUserResponse` output. */
|
|
747
734
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -750,44 +737,41 @@ export declare const currentUserResponseSchema: z.ZodObject<{
|
|
|
750
737
|
publicKey: z.ZodOptional<z.ZodString>;
|
|
751
738
|
username: z.ZodOptional<z.ZodString>;
|
|
752
739
|
email: z.ZodOptional<z.ZodString>;
|
|
740
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
741
|
+
address: z.ZodOptional<z.ZodString>;
|
|
742
|
+
birthday: z.ZodOptional<z.ZodString>;
|
|
753
743
|
/** Avatar file id (string) or null. */
|
|
754
744
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
755
745
|
/** Named Bloom color preset (e.g. `"blue"`) or null. */
|
|
756
746
|
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
757
|
-
name: z.
|
|
758
|
-
first: z.ZodOptional<z.ZodString>;
|
|
759
|
-
last: z.ZodOptional<z.ZodString>;
|
|
760
|
-
full: z.ZodOptional<z.ZodString>;
|
|
761
|
-
displayName: z.ZodString;
|
|
762
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
763
|
-
first: z.ZodOptional<z.ZodString>;
|
|
764
|
-
last: z.ZodOptional<z.ZodString>;
|
|
765
|
-
full: z.ZodOptional<z.ZodString>;
|
|
766
|
-
displayName: z.ZodString;
|
|
767
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
768
|
-
first: z.ZodOptional<z.ZodString>;
|
|
769
|
-
last: z.ZodOptional<z.ZodString>;
|
|
770
|
-
full: z.ZodOptional<z.ZodString>;
|
|
771
|
-
displayName: z.ZodString;
|
|
772
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
747
|
+
name: z.ZodType<UserNameResponse, z.ZodTypeDef, UserNameResponse>;
|
|
773
748
|
verified: z.ZodOptional<z.ZodBoolean>;
|
|
774
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">>;
|
|
775
761
|
}, z.ZodTypeAny, "passthrough">>;
|
|
776
762
|
}, "strip", z.ZodTypeAny, {
|
|
777
763
|
data: {
|
|
778
|
-
name:
|
|
779
|
-
displayName: string;
|
|
780
|
-
first?: string | undefined;
|
|
781
|
-
last?: string | undefined;
|
|
782
|
-
full?: string | undefined;
|
|
783
|
-
} & {
|
|
784
|
-
[k: string]: unknown;
|
|
785
|
-
};
|
|
764
|
+
name: UserNameResponse;
|
|
786
765
|
id?: string | undefined;
|
|
787
|
-
_id?: string | undefined;
|
|
788
766
|
publicKey?: string | undefined;
|
|
767
|
+
did?: string | undefined;
|
|
768
|
+
verifiedDomains?: import("./identity").VerifiedDomain[] | undefined;
|
|
769
|
+
_id?: string | undefined;
|
|
789
770
|
username?: string | undefined;
|
|
790
771
|
email?: string | undefined;
|
|
772
|
+
phone?: string | undefined;
|
|
773
|
+
address?: string | undefined;
|
|
774
|
+
birthday?: string | undefined;
|
|
791
775
|
avatar?: string | null | undefined;
|
|
792
776
|
color?: string | null | undefined;
|
|
793
777
|
verified?: boolean | undefined;
|
|
@@ -797,19 +781,17 @@ export declare const currentUserResponseSchema: z.ZodObject<{
|
|
|
797
781
|
};
|
|
798
782
|
}, {
|
|
799
783
|
data: {
|
|
800
|
-
name:
|
|
801
|
-
displayName: string;
|
|
802
|
-
first?: string | undefined;
|
|
803
|
-
last?: string | undefined;
|
|
804
|
-
full?: string | undefined;
|
|
805
|
-
} & {
|
|
806
|
-
[k: string]: unknown;
|
|
807
|
-
};
|
|
784
|
+
name: UserNameResponse;
|
|
808
785
|
id?: string | undefined;
|
|
809
|
-
_id?: string | undefined;
|
|
810
786
|
publicKey?: string | undefined;
|
|
787
|
+
did?: string | undefined;
|
|
788
|
+
verifiedDomains?: import("./identity").VerifiedDomain[] | undefined;
|
|
789
|
+
_id?: string | undefined;
|
|
811
790
|
username?: string | undefined;
|
|
812
791
|
email?: string | undefined;
|
|
792
|
+
phone?: string | undefined;
|
|
793
|
+
address?: string | undefined;
|
|
794
|
+
birthday?: string | undefined;
|
|
813
795
|
avatar?: string | null | undefined;
|
|
814
796
|
color?: string | null | undefined;
|
|
815
797
|
verified?: boolean | undefined;
|
|
@@ -836,28 +818,27 @@ export declare const deviceSessionAccountSchema: z.ZodObject<{
|
|
|
836
818
|
publicKey: z.ZodOptional<z.ZodString>;
|
|
837
819
|
username: z.ZodOptional<z.ZodString>;
|
|
838
820
|
email: z.ZodOptional<z.ZodString>;
|
|
821
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
822
|
+
address: z.ZodOptional<z.ZodString>;
|
|
823
|
+
birthday: z.ZodOptional<z.ZodString>;
|
|
839
824
|
/** Avatar file id (string) or null. */
|
|
840
825
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
841
826
|
/** Named Bloom color preset (e.g. `"blue"`) or null. */
|
|
842
827
|
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
843
|
-
name: z.
|
|
844
|
-
first: z.ZodOptional<z.ZodString>;
|
|
845
|
-
last: z.ZodOptional<z.ZodString>;
|
|
846
|
-
full: z.ZodOptional<z.ZodString>;
|
|
847
|
-
displayName: z.ZodString;
|
|
848
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
849
|
-
first: z.ZodOptional<z.ZodString>;
|
|
850
|
-
last: z.ZodOptional<z.ZodString>;
|
|
851
|
-
full: z.ZodOptional<z.ZodString>;
|
|
852
|
-
displayName: z.ZodString;
|
|
853
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
854
|
-
first: z.ZodOptional<z.ZodString>;
|
|
855
|
-
last: z.ZodOptional<z.ZodString>;
|
|
856
|
-
full: z.ZodOptional<z.ZodString>;
|
|
857
|
-
displayName: z.ZodString;
|
|
858
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
828
|
+
name: z.ZodType<UserNameResponse, z.ZodTypeDef, UserNameResponse>;
|
|
859
829
|
verified: z.ZodOptional<z.ZodBoolean>;
|
|
860
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">>;
|
|
861
842
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
862
843
|
/** MongoDB ObjectId as a string. Present on `formatUserResponse` output. */
|
|
863
844
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -866,28 +847,27 @@ export declare const deviceSessionAccountSchema: z.ZodObject<{
|
|
|
866
847
|
publicKey: z.ZodOptional<z.ZodString>;
|
|
867
848
|
username: z.ZodOptional<z.ZodString>;
|
|
868
849
|
email: z.ZodOptional<z.ZodString>;
|
|
850
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
851
|
+
address: z.ZodOptional<z.ZodString>;
|
|
852
|
+
birthday: z.ZodOptional<z.ZodString>;
|
|
869
853
|
/** Avatar file id (string) or null. */
|
|
870
854
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
871
855
|
/** Named Bloom color preset (e.g. `"blue"`) or null. */
|
|
872
856
|
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
873
|
-
name: z.
|
|
874
|
-
first: z.ZodOptional<z.ZodString>;
|
|
875
|
-
last: z.ZodOptional<z.ZodString>;
|
|
876
|
-
full: z.ZodOptional<z.ZodString>;
|
|
877
|
-
displayName: z.ZodString;
|
|
878
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
879
|
-
first: z.ZodOptional<z.ZodString>;
|
|
880
|
-
last: z.ZodOptional<z.ZodString>;
|
|
881
|
-
full: z.ZodOptional<z.ZodString>;
|
|
882
|
-
displayName: z.ZodString;
|
|
883
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
884
|
-
first: z.ZodOptional<z.ZodString>;
|
|
885
|
-
last: z.ZodOptional<z.ZodString>;
|
|
886
|
-
full: z.ZodOptional<z.ZodString>;
|
|
887
|
-
displayName: z.ZodString;
|
|
888
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
857
|
+
name: z.ZodType<UserNameResponse, z.ZodTypeDef, UserNameResponse>;
|
|
889
858
|
verified: z.ZodOptional<z.ZodBoolean>;
|
|
890
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">>;
|
|
891
871
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
892
872
|
/** MongoDB ObjectId as a string. Present on `formatUserResponse` output. */
|
|
893
873
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -896,28 +876,27 @@ export declare const deviceSessionAccountSchema: z.ZodObject<{
|
|
|
896
876
|
publicKey: z.ZodOptional<z.ZodString>;
|
|
897
877
|
username: z.ZodOptional<z.ZodString>;
|
|
898
878
|
email: z.ZodOptional<z.ZodString>;
|
|
879
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
880
|
+
address: z.ZodOptional<z.ZodString>;
|
|
881
|
+
birthday: z.ZodOptional<z.ZodString>;
|
|
899
882
|
/** Avatar file id (string) or null. */
|
|
900
883
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
901
884
|
/** Named Bloom color preset (e.g. `"blue"`) or null. */
|
|
902
885
|
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
903
|
-
name: z.
|
|
904
|
-
first: z.ZodOptional<z.ZodString>;
|
|
905
|
-
last: z.ZodOptional<z.ZodString>;
|
|
906
|
-
full: z.ZodOptional<z.ZodString>;
|
|
907
|
-
displayName: z.ZodString;
|
|
908
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
909
|
-
first: z.ZodOptional<z.ZodString>;
|
|
910
|
-
last: z.ZodOptional<z.ZodString>;
|
|
911
|
-
full: z.ZodOptional<z.ZodString>;
|
|
912
|
-
displayName: z.ZodString;
|
|
913
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
914
|
-
first: z.ZodOptional<z.ZodString>;
|
|
915
|
-
last: z.ZodOptional<z.ZodString>;
|
|
916
|
-
full: z.ZodOptional<z.ZodString>;
|
|
917
|
-
displayName: z.ZodString;
|
|
918
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
886
|
+
name: z.ZodType<UserNameResponse, z.ZodTypeDef, UserNameResponse>;
|
|
919
887
|
verified: z.ZodOptional<z.ZodBoolean>;
|
|
920
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">>;
|
|
921
900
|
}, z.ZodTypeAny, "passthrough">>>>;
|
|
922
901
|
}, "strip", z.ZodTypeAny, {
|
|
923
902
|
sessionId: string;
|
|
@@ -929,28 +908,27 @@ export declare const deviceSessionAccountSchema: z.ZodObject<{
|
|
|
929
908
|
publicKey: z.ZodOptional<z.ZodString>;
|
|
930
909
|
username: z.ZodOptional<z.ZodString>;
|
|
931
910
|
email: z.ZodOptional<z.ZodString>;
|
|
911
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
912
|
+
address: z.ZodOptional<z.ZodString>;
|
|
913
|
+
birthday: z.ZodOptional<z.ZodString>;
|
|
932
914
|
/** Avatar file id (string) or null. */
|
|
933
915
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
934
916
|
/** Named Bloom color preset (e.g. `"blue"`) or null. */
|
|
935
917
|
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
936
|
-
name: z.
|
|
937
|
-
first: z.ZodOptional<z.ZodString>;
|
|
938
|
-
last: z.ZodOptional<z.ZodString>;
|
|
939
|
-
full: z.ZodOptional<z.ZodString>;
|
|
940
|
-
displayName: z.ZodString;
|
|
941
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
942
|
-
first: z.ZodOptional<z.ZodString>;
|
|
943
|
-
last: z.ZodOptional<z.ZodString>;
|
|
944
|
-
full: z.ZodOptional<z.ZodString>;
|
|
945
|
-
displayName: z.ZodString;
|
|
946
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
947
|
-
first: z.ZodOptional<z.ZodString>;
|
|
948
|
-
last: z.ZodOptional<z.ZodString>;
|
|
949
|
-
full: z.ZodOptional<z.ZodString>;
|
|
950
|
-
displayName: z.ZodString;
|
|
951
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
918
|
+
name: z.ZodType<UserNameResponse, z.ZodTypeDef, UserNameResponse>;
|
|
952
919
|
verified: z.ZodOptional<z.ZodBoolean>;
|
|
953
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">>;
|
|
954
932
|
}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
955
933
|
isCurrent?: boolean | undefined;
|
|
956
934
|
}, {
|
|
@@ -963,28 +941,27 @@ export declare const deviceSessionAccountSchema: z.ZodObject<{
|
|
|
963
941
|
publicKey: z.ZodOptional<z.ZodString>;
|
|
964
942
|
username: z.ZodOptional<z.ZodString>;
|
|
965
943
|
email: z.ZodOptional<z.ZodString>;
|
|
944
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
945
|
+
address: z.ZodOptional<z.ZodString>;
|
|
946
|
+
birthday: z.ZodOptional<z.ZodString>;
|
|
966
947
|
/** Avatar file id (string) or null. */
|
|
967
948
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
968
949
|
/** Named Bloom color preset (e.g. `"blue"`) or null. */
|
|
969
950
|
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
970
|
-
name: z.
|
|
971
|
-
first: z.ZodOptional<z.ZodString>;
|
|
972
|
-
last: z.ZodOptional<z.ZodString>;
|
|
973
|
-
full: z.ZodOptional<z.ZodString>;
|
|
974
|
-
displayName: z.ZodString;
|
|
975
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
976
|
-
first: z.ZodOptional<z.ZodString>;
|
|
977
|
-
last: z.ZodOptional<z.ZodString>;
|
|
978
|
-
full: z.ZodOptional<z.ZodString>;
|
|
979
|
-
displayName: z.ZodString;
|
|
980
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
981
|
-
first: z.ZodOptional<z.ZodString>;
|
|
982
|
-
last: z.ZodOptional<z.ZodString>;
|
|
983
|
-
full: z.ZodOptional<z.ZodString>;
|
|
984
|
-
displayName: z.ZodString;
|
|
985
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
951
|
+
name: z.ZodType<UserNameResponse, z.ZodTypeDef, UserNameResponse>;
|
|
986
952
|
verified: z.ZodOptional<z.ZodBoolean>;
|
|
987
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">>;
|
|
988
965
|
}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
989
966
|
isCurrent?: boolean | undefined;
|
|
990
967
|
}>;
|
|
@@ -1001,28 +978,27 @@ export declare const deviceSessionsResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
1001
978
|
publicKey: z.ZodOptional<z.ZodString>;
|
|
1002
979
|
username: z.ZodOptional<z.ZodString>;
|
|
1003
980
|
email: z.ZodOptional<z.ZodString>;
|
|
981
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
982
|
+
address: z.ZodOptional<z.ZodString>;
|
|
983
|
+
birthday: z.ZodOptional<z.ZodString>;
|
|
1004
984
|
/** Avatar file id (string) or null. */
|
|
1005
985
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1006
986
|
/** Named Bloom color preset (e.g. `"blue"`) or null. */
|
|
1007
987
|
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1008
|
-
name: z.
|
|
1009
|
-
first: z.ZodOptional<z.ZodString>;
|
|
1010
|
-
last: z.ZodOptional<z.ZodString>;
|
|
1011
|
-
full: z.ZodOptional<z.ZodString>;
|
|
1012
|
-
displayName: z.ZodString;
|
|
1013
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1014
|
-
first: z.ZodOptional<z.ZodString>;
|
|
1015
|
-
last: z.ZodOptional<z.ZodString>;
|
|
1016
|
-
full: z.ZodOptional<z.ZodString>;
|
|
1017
|
-
displayName: z.ZodString;
|
|
1018
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1019
|
-
first: z.ZodOptional<z.ZodString>;
|
|
1020
|
-
last: z.ZodOptional<z.ZodString>;
|
|
1021
|
-
full: z.ZodOptional<z.ZodString>;
|
|
1022
|
-
displayName: z.ZodString;
|
|
1023
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
988
|
+
name: z.ZodType<UserNameResponse, z.ZodTypeDef, UserNameResponse>;
|
|
1024
989
|
verified: z.ZodOptional<z.ZodBoolean>;
|
|
1025
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">>;
|
|
1026
1002
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1027
1003
|
/** MongoDB ObjectId as a string. Present on `formatUserResponse` output. */
|
|
1028
1004
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -1031,28 +1007,27 @@ export declare const deviceSessionsResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
1031
1007
|
publicKey: z.ZodOptional<z.ZodString>;
|
|
1032
1008
|
username: z.ZodOptional<z.ZodString>;
|
|
1033
1009
|
email: z.ZodOptional<z.ZodString>;
|
|
1010
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
1011
|
+
address: z.ZodOptional<z.ZodString>;
|
|
1012
|
+
birthday: z.ZodOptional<z.ZodString>;
|
|
1034
1013
|
/** Avatar file id (string) or null. */
|
|
1035
1014
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1036
1015
|
/** Named Bloom color preset (e.g. `"blue"`) or null. */
|
|
1037
1016
|
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1038
|
-
name: z.
|
|
1039
|
-
first: z.ZodOptional<z.ZodString>;
|
|
1040
|
-
last: z.ZodOptional<z.ZodString>;
|
|
1041
|
-
full: z.ZodOptional<z.ZodString>;
|
|
1042
|
-
displayName: z.ZodString;
|
|
1043
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1044
|
-
first: z.ZodOptional<z.ZodString>;
|
|
1045
|
-
last: z.ZodOptional<z.ZodString>;
|
|
1046
|
-
full: z.ZodOptional<z.ZodString>;
|
|
1047
|
-
displayName: z.ZodString;
|
|
1048
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1049
|
-
first: z.ZodOptional<z.ZodString>;
|
|
1050
|
-
last: z.ZodOptional<z.ZodString>;
|
|
1051
|
-
full: z.ZodOptional<z.ZodString>;
|
|
1052
|
-
displayName: z.ZodString;
|
|
1053
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
1017
|
+
name: z.ZodType<UserNameResponse, z.ZodTypeDef, UserNameResponse>;
|
|
1054
1018
|
verified: z.ZodOptional<z.ZodBoolean>;
|
|
1055
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">>;
|
|
1056
1031
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1057
1032
|
/** MongoDB ObjectId as a string. Present on `formatUserResponse` output. */
|
|
1058
1033
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -1061,28 +1036,27 @@ export declare const deviceSessionsResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
1061
1036
|
publicKey: z.ZodOptional<z.ZodString>;
|
|
1062
1037
|
username: z.ZodOptional<z.ZodString>;
|
|
1063
1038
|
email: z.ZodOptional<z.ZodString>;
|
|
1039
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
1040
|
+
address: z.ZodOptional<z.ZodString>;
|
|
1041
|
+
birthday: z.ZodOptional<z.ZodString>;
|
|
1064
1042
|
/** Avatar file id (string) or null. */
|
|
1065
1043
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1066
1044
|
/** Named Bloom color preset (e.g. `"blue"`) or null. */
|
|
1067
1045
|
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1068
|
-
name: z.
|
|
1069
|
-
first: z.ZodOptional<z.ZodString>;
|
|
1070
|
-
last: z.ZodOptional<z.ZodString>;
|
|
1071
|
-
full: z.ZodOptional<z.ZodString>;
|
|
1072
|
-
displayName: z.ZodString;
|
|
1073
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1074
|
-
first: z.ZodOptional<z.ZodString>;
|
|
1075
|
-
last: z.ZodOptional<z.ZodString>;
|
|
1076
|
-
full: z.ZodOptional<z.ZodString>;
|
|
1077
|
-
displayName: z.ZodString;
|
|
1078
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1079
|
-
first: z.ZodOptional<z.ZodString>;
|
|
1080
|
-
last: z.ZodOptional<z.ZodString>;
|
|
1081
|
-
full: z.ZodOptional<z.ZodString>;
|
|
1082
|
-
displayName: z.ZodString;
|
|
1083
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
1046
|
+
name: z.ZodType<UserNameResponse, z.ZodTypeDef, UserNameResponse>;
|
|
1084
1047
|
verified: z.ZodOptional<z.ZodBoolean>;
|
|
1085
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">>;
|
|
1086
1060
|
}, z.ZodTypeAny, "passthrough">>>>;
|
|
1087
1061
|
}, "strip", z.ZodTypeAny, {
|
|
1088
1062
|
sessionId: string;
|
|
@@ -1094,28 +1068,27 @@ export declare const deviceSessionsResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
1094
1068
|
publicKey: z.ZodOptional<z.ZodString>;
|
|
1095
1069
|
username: z.ZodOptional<z.ZodString>;
|
|
1096
1070
|
email: z.ZodOptional<z.ZodString>;
|
|
1071
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
1072
|
+
address: z.ZodOptional<z.ZodString>;
|
|
1073
|
+
birthday: z.ZodOptional<z.ZodString>;
|
|
1097
1074
|
/** Avatar file id (string) or null. */
|
|
1098
1075
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1099
1076
|
/** Named Bloom color preset (e.g. `"blue"`) or null. */
|
|
1100
1077
|
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1101
|
-
name: z.
|
|
1102
|
-
first: z.ZodOptional<z.ZodString>;
|
|
1103
|
-
last: z.ZodOptional<z.ZodString>;
|
|
1104
|
-
full: z.ZodOptional<z.ZodString>;
|
|
1105
|
-
displayName: z.ZodString;
|
|
1106
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1107
|
-
first: z.ZodOptional<z.ZodString>;
|
|
1108
|
-
last: z.ZodOptional<z.ZodString>;
|
|
1109
|
-
full: z.ZodOptional<z.ZodString>;
|
|
1110
|
-
displayName: z.ZodString;
|
|
1111
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1112
|
-
first: z.ZodOptional<z.ZodString>;
|
|
1113
|
-
last: z.ZodOptional<z.ZodString>;
|
|
1114
|
-
full: z.ZodOptional<z.ZodString>;
|
|
1115
|
-
displayName: z.ZodString;
|
|
1116
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
1078
|
+
name: z.ZodType<UserNameResponse, z.ZodTypeDef, UserNameResponse>;
|
|
1117
1079
|
verified: z.ZodOptional<z.ZodBoolean>;
|
|
1118
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">>;
|
|
1119
1092
|
}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
1120
1093
|
isCurrent?: boolean | undefined;
|
|
1121
1094
|
}, {
|
|
@@ -1128,28 +1101,27 @@ export declare const deviceSessionsResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
1128
1101
|
publicKey: z.ZodOptional<z.ZodString>;
|
|
1129
1102
|
username: z.ZodOptional<z.ZodString>;
|
|
1130
1103
|
email: z.ZodOptional<z.ZodString>;
|
|
1104
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
1105
|
+
address: z.ZodOptional<z.ZodString>;
|
|
1106
|
+
birthday: z.ZodOptional<z.ZodString>;
|
|
1131
1107
|
/** Avatar file id (string) or null. */
|
|
1132
1108
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1133
1109
|
/** Named Bloom color preset (e.g. `"blue"`) or null. */
|
|
1134
1110
|
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1135
|
-
name: z.
|
|
1136
|
-
first: z.ZodOptional<z.ZodString>;
|
|
1137
|
-
last: z.ZodOptional<z.ZodString>;
|
|
1138
|
-
full: z.ZodOptional<z.ZodString>;
|
|
1139
|
-
displayName: z.ZodString;
|
|
1140
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1141
|
-
first: z.ZodOptional<z.ZodString>;
|
|
1142
|
-
last: z.ZodOptional<z.ZodString>;
|
|
1143
|
-
full: z.ZodOptional<z.ZodString>;
|
|
1144
|
-
displayName: z.ZodString;
|
|
1145
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1146
|
-
first: z.ZodOptional<z.ZodString>;
|
|
1147
|
-
last: z.ZodOptional<z.ZodString>;
|
|
1148
|
-
full: z.ZodOptional<z.ZodString>;
|
|
1149
|
-
displayName: z.ZodString;
|
|
1150
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
1111
|
+
name: z.ZodType<UserNameResponse, z.ZodTypeDef, UserNameResponse>;
|
|
1151
1112
|
verified: z.ZodOptional<z.ZodBoolean>;
|
|
1152
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">>;
|
|
1153
1125
|
}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
1154
1126
|
isCurrent?: boolean | undefined;
|
|
1155
1127
|
}>, "many">;
|