@oxyhq/contracts 0.13.1 → 0.13.2
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/accountGraph.js +48 -0
- package/dist/cjs/index.js +6 -2
- package/dist/cjs/userResponse.js +6 -0
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/accountGraph.js +45 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/userResponse.js +6 -0
- package/dist/types/.tsbuildinfo +1 -1
- package/dist/types/accountGraph.d.ts +83 -0
- package/dist/types/identity.d.ts +4 -4
- package/dist/types/index.d.ts +2 -0
- package/dist/types/sessionStatus.d.ts +6 -6
- package/dist/types/userResponse.d.ts +92 -10
- package/package.json +1 -1
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Account graph wire contracts — organization taxonomy and create-account input.
|
|
3
|
+
*
|
|
4
|
+
* `organizationCategory` classifies `kind: 'organization'` accounts (agency,
|
|
5
|
+
* cooperative, landlord, …) without polluting `User.kind`. Meaningful only when
|
|
6
|
+
* `kind === 'organization'`.
|
|
7
|
+
*/
|
|
8
|
+
import { z } from 'zod';
|
|
9
|
+
export declare const ORGANIZATION_CATEGORIES: readonly ["agency", "cooperative", "landlord", "other"];
|
|
10
|
+
export type OrganizationCategory = (typeof ORGANIZATION_CATEGORIES)[number];
|
|
11
|
+
export declare const organizationCategorySchema: z.ZodEnum<["agency", "cooperative", "landlord", "other"]>;
|
|
12
|
+
/**
|
|
13
|
+
* POST /accounts — create a non-personal account under the caller's tree.
|
|
14
|
+
* `organizationCategory` is accepted only when `kind` is `organization`.
|
|
15
|
+
*/
|
|
16
|
+
export declare const createAccountRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
17
|
+
parentAccountId: z.ZodOptional<z.ZodString>;
|
|
18
|
+
kind: z.ZodEnum<["organization", "project", "bot"]>;
|
|
19
|
+
username: z.ZodString;
|
|
20
|
+
name: z.ZodOptional<z.ZodObject<{
|
|
21
|
+
first: z.ZodOptional<z.ZodString>;
|
|
22
|
+
last: z.ZodOptional<z.ZodString>;
|
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
|
24
|
+
first?: string | undefined;
|
|
25
|
+
last?: string | undefined;
|
|
26
|
+
}, {
|
|
27
|
+
first?: string | undefined;
|
|
28
|
+
last?: string | undefined;
|
|
29
|
+
}>>;
|
|
30
|
+
bio: z.ZodOptional<z.ZodString>;
|
|
31
|
+
avatar: z.ZodOptional<z.ZodString>;
|
|
32
|
+
description: z.ZodOptional<z.ZodString>;
|
|
33
|
+
organizationCategory: z.ZodOptional<z.ZodEnum<["agency", "cooperative", "landlord", "other"]>>;
|
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
|
35
|
+
kind: "organization" | "project" | "bot";
|
|
36
|
+
username: string;
|
|
37
|
+
parentAccountId?: string | undefined;
|
|
38
|
+
name?: {
|
|
39
|
+
first?: string | undefined;
|
|
40
|
+
last?: string | undefined;
|
|
41
|
+
} | undefined;
|
|
42
|
+
bio?: string | undefined;
|
|
43
|
+
avatar?: string | undefined;
|
|
44
|
+
description?: string | undefined;
|
|
45
|
+
organizationCategory?: "agency" | "cooperative" | "landlord" | "other" | undefined;
|
|
46
|
+
}, {
|
|
47
|
+
kind: "organization" | "project" | "bot";
|
|
48
|
+
username: string;
|
|
49
|
+
parentAccountId?: string | undefined;
|
|
50
|
+
name?: {
|
|
51
|
+
first?: string | undefined;
|
|
52
|
+
last?: string | undefined;
|
|
53
|
+
} | undefined;
|
|
54
|
+
bio?: string | undefined;
|
|
55
|
+
avatar?: string | undefined;
|
|
56
|
+
description?: string | undefined;
|
|
57
|
+
organizationCategory?: "agency" | "cooperative" | "landlord" | "other" | undefined;
|
|
58
|
+
}>, {
|
|
59
|
+
kind: "organization" | "project" | "bot";
|
|
60
|
+
username: string;
|
|
61
|
+
parentAccountId?: string | undefined;
|
|
62
|
+
name?: {
|
|
63
|
+
first?: string | undefined;
|
|
64
|
+
last?: string | undefined;
|
|
65
|
+
} | undefined;
|
|
66
|
+
bio?: string | undefined;
|
|
67
|
+
avatar?: string | undefined;
|
|
68
|
+
description?: string | undefined;
|
|
69
|
+
organizationCategory?: "agency" | "cooperative" | "landlord" | "other" | undefined;
|
|
70
|
+
}, {
|
|
71
|
+
kind: "organization" | "project" | "bot";
|
|
72
|
+
username: string;
|
|
73
|
+
parentAccountId?: string | undefined;
|
|
74
|
+
name?: {
|
|
75
|
+
first?: string | undefined;
|
|
76
|
+
last?: string | undefined;
|
|
77
|
+
} | undefined;
|
|
78
|
+
bio?: string | undefined;
|
|
79
|
+
avatar?: string | undefined;
|
|
80
|
+
description?: string | undefined;
|
|
81
|
+
organizationCategory?: "agency" | "cooperative" | "landlord" | "other" | undefined;
|
|
82
|
+
}>;
|
|
83
|
+
export type CreateAccountRequest = z.infer<typeof createAccountRequestSchema>;
|
package/dist/types/identity.d.ts
CHANGED
|
@@ -82,13 +82,13 @@ export declare const verificationMethodSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
82
82
|
controller: z.ZodString;
|
|
83
83
|
publicKeyHex: z.ZodString;
|
|
84
84
|
}, "strip", z.ZodTypeAny, {
|
|
85
|
-
id: string;
|
|
86
85
|
type: "EcdsaSecp256k1VerificationKey2019";
|
|
86
|
+
id: string;
|
|
87
87
|
controller: string;
|
|
88
88
|
publicKeyHex: string;
|
|
89
89
|
}, {
|
|
90
|
-
id: string;
|
|
91
90
|
type: "EcdsaSecp256k1VerificationKey2019";
|
|
91
|
+
id: string;
|
|
92
92
|
controller: string;
|
|
93
93
|
publicKeyHex: string;
|
|
94
94
|
}>, z.ZodObject<{
|
|
@@ -97,13 +97,13 @@ export declare const verificationMethodSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
97
97
|
controller: z.ZodString;
|
|
98
98
|
publicKeyMultibase: z.ZodString;
|
|
99
99
|
}, "strip", z.ZodTypeAny, {
|
|
100
|
-
id: string;
|
|
101
100
|
type: "Multikey";
|
|
101
|
+
id: string;
|
|
102
102
|
controller: string;
|
|
103
103
|
publicKeyMultibase: string;
|
|
104
104
|
}, {
|
|
105
|
-
id: string;
|
|
106
105
|
type: "Multikey";
|
|
106
|
+
id: string;
|
|
107
107
|
controller: string;
|
|
108
108
|
publicKeyMultibase: string;
|
|
109
109
|
}>]>;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
* Platform-agnostic — zod is the only runtime dependency. No react/react-native/
|
|
10
10
|
* expo, no `require()` in the ESM build.
|
|
11
11
|
*/
|
|
12
|
+
export { ORGANIZATION_CATEGORIES, organizationCategorySchema, createAccountRequestSchema, } from './accountGraph';
|
|
13
|
+
export type { OrganizationCategory, CreateAccountRequest, } from './accountGraph';
|
|
12
14
|
export { userNameSchema, userResponseSchema, userProfileUpdateSchema, currentUserResponseSchema, deviceLinkedSessionSchema, deviceLinkedSessionsResponseSchema, resolveUserId, safeParseContract, } from './userResponse';
|
|
13
15
|
export type { UserNameResponse, UserResponse, UserProfileUpdate, CurrentUserResponseContract, DeviceLinkedSessionResponse, DeviceLinkedSessionsResponseContract, } from './userResponse';
|
|
14
16
|
export { applicationTypeSchema, publicApplicationSchema, sessionStatusSchema, } from './sessionStatus';
|
|
@@ -68,9 +68,9 @@ export declare const publicApplicationSchema: z.ZodObject<{
|
|
|
68
68
|
scopes: z.ZodArray<z.ZodString, "many">;
|
|
69
69
|
developerName: z.ZodOptional<z.ZodString>;
|
|
70
70
|
}, "strip", z.ZodTypeAny, {
|
|
71
|
-
id: string;
|
|
72
71
|
type: "first_party" | "third_party" | "internal" | "system";
|
|
73
72
|
name: string;
|
|
73
|
+
id: string;
|
|
74
74
|
isOfficial: boolean;
|
|
75
75
|
isInternal: boolean;
|
|
76
76
|
scopes: string[];
|
|
@@ -81,9 +81,9 @@ export declare const publicApplicationSchema: z.ZodObject<{
|
|
|
81
81
|
termsUrl?: string | undefined;
|
|
82
82
|
developerName?: string | undefined;
|
|
83
83
|
}, {
|
|
84
|
-
id: string;
|
|
85
84
|
type: "first_party" | "third_party" | "internal" | "system";
|
|
86
85
|
name: string;
|
|
86
|
+
id: string;
|
|
87
87
|
isOfficial: boolean;
|
|
88
88
|
isInternal: boolean;
|
|
89
89
|
scopes: string[];
|
|
@@ -132,9 +132,9 @@ export declare const sessionStatusSchema: z.ZodObject<{
|
|
|
132
132
|
scopes: z.ZodArray<z.ZodString, "many">;
|
|
133
133
|
developerName: z.ZodOptional<z.ZodString>;
|
|
134
134
|
}, "strip", z.ZodTypeAny, {
|
|
135
|
-
id: string;
|
|
136
135
|
type: "first_party" | "third_party" | "internal" | "system";
|
|
137
136
|
name: string;
|
|
137
|
+
id: string;
|
|
138
138
|
isOfficial: boolean;
|
|
139
139
|
isInternal: boolean;
|
|
140
140
|
scopes: string[];
|
|
@@ -145,9 +145,9 @@ export declare const sessionStatusSchema: z.ZodObject<{
|
|
|
145
145
|
termsUrl?: string | undefined;
|
|
146
146
|
developerName?: string | undefined;
|
|
147
147
|
}, {
|
|
148
|
-
id: string;
|
|
149
148
|
type: "first_party" | "third_party" | "internal" | "system";
|
|
150
149
|
name: string;
|
|
150
|
+
id: string;
|
|
151
151
|
isOfficial: boolean;
|
|
152
152
|
isInternal: boolean;
|
|
153
153
|
scopes: string[];
|
|
@@ -171,9 +171,9 @@ export declare const sessionStatusSchema: z.ZodObject<{
|
|
|
171
171
|
authorized?: boolean | undefined;
|
|
172
172
|
sessionToken?: string | undefined;
|
|
173
173
|
application?: {
|
|
174
|
-
id: string;
|
|
175
174
|
type: "first_party" | "third_party" | "internal" | "system";
|
|
176
175
|
name: string;
|
|
176
|
+
id: string;
|
|
177
177
|
isOfficial: boolean;
|
|
178
178
|
isInternal: boolean;
|
|
179
179
|
scopes: string[];
|
|
@@ -193,9 +193,9 @@ export declare const sessionStatusSchema: z.ZodObject<{
|
|
|
193
193
|
authorized?: boolean | undefined;
|
|
194
194
|
sessionToken?: string | undefined;
|
|
195
195
|
application?: {
|
|
196
|
-
id: string;
|
|
197
196
|
type: "first_party" | "third_party" | "internal" | "system";
|
|
198
197
|
name: string;
|
|
198
|
+
id: string;
|
|
199
199
|
isOfficial: boolean;
|
|
200
200
|
isInternal: boolean;
|
|
201
201
|
scopes: string[];
|
|
@@ -107,6 +107,11 @@ export declare const userResponseSchema: z.ZodObject<{
|
|
|
107
107
|
* entry; present only when the account has verified at least one domain.
|
|
108
108
|
*/
|
|
109
109
|
verifiedDomains: z.ZodOptional<z.ZodArray<z.ZodType<import("./identity").VerifiedDomain, z.ZodTypeDef, import("./identity").VerifiedDomain>, "many">>;
|
|
110
|
+
/**
|
|
111
|
+
* Real-estate / team taxonomy for `kind: 'organization'` accounts.
|
|
112
|
+
* Absent on personal, project, and bot accounts.
|
|
113
|
+
*/
|
|
114
|
+
organizationCategory: z.ZodOptional<z.ZodEnum<["agency", "cooperative", "landlord", "other"]>>;
|
|
110
115
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
111
116
|
/** MongoDB ObjectId as a string. Present on `formatUserResponse` output. */
|
|
112
117
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -136,6 +141,11 @@ export declare const userResponseSchema: z.ZodObject<{
|
|
|
136
141
|
* entry; present only when the account has verified at least one domain.
|
|
137
142
|
*/
|
|
138
143
|
verifiedDomains: z.ZodOptional<z.ZodArray<z.ZodType<import("./identity").VerifiedDomain, z.ZodTypeDef, import("./identity").VerifiedDomain>, "many">>;
|
|
144
|
+
/**
|
|
145
|
+
* Real-estate / team taxonomy for `kind: 'organization'` accounts.
|
|
146
|
+
* Absent on personal, project, and bot accounts.
|
|
147
|
+
*/
|
|
148
|
+
organizationCategory: z.ZodOptional<z.ZodEnum<["agency", "cooperative", "landlord", "other"]>>;
|
|
139
149
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
140
150
|
/** MongoDB ObjectId as a string. Present on `formatUserResponse` output. */
|
|
141
151
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -165,6 +175,11 @@ export declare const userResponseSchema: z.ZodObject<{
|
|
|
165
175
|
* entry; present only when the account has verified at least one domain.
|
|
166
176
|
*/
|
|
167
177
|
verifiedDomains: z.ZodOptional<z.ZodArray<z.ZodType<import("./identity").VerifiedDomain, z.ZodTypeDef, import("./identity").VerifiedDomain>, "many">>;
|
|
178
|
+
/**
|
|
179
|
+
* Real-estate / team taxonomy for `kind: 'organization'` accounts.
|
|
180
|
+
* Absent on personal, project, and bot accounts.
|
|
181
|
+
*/
|
|
182
|
+
organizationCategory: z.ZodOptional<z.ZodEnum<["agency", "cooperative", "landlord", "other"]>>;
|
|
168
183
|
}, z.ZodTypeAny, "passthrough">>;
|
|
169
184
|
export type UserResponse = z.infer<typeof userResponseSchema>;
|
|
170
185
|
export declare const userProfileUpdateSchema: z.ZodObject<{
|
|
@@ -197,14 +212,14 @@ export declare const userProfileUpdateSchema: z.ZodObject<{
|
|
|
197
212
|
id: z.ZodOptional<z.ZodString>;
|
|
198
213
|
}, "strip", z.ZodTypeAny, {
|
|
199
214
|
url: string;
|
|
200
|
-
id?: string | undefined;
|
|
201
215
|
description?: string | undefined;
|
|
216
|
+
id?: string | undefined;
|
|
202
217
|
title?: string | undefined;
|
|
203
218
|
image?: string | undefined;
|
|
204
219
|
}, {
|
|
205
220
|
url: string;
|
|
206
|
-
id?: string | undefined;
|
|
207
221
|
description?: string | undefined;
|
|
222
|
+
id?: string | undefined;
|
|
208
223
|
title?: string | undefined;
|
|
209
224
|
image?: string | undefined;
|
|
210
225
|
}>, "many">>;
|
|
@@ -243,14 +258,14 @@ export declare const userProfileUpdateSchema: z.ZodObject<{
|
|
|
243
258
|
id: z.ZodOptional<z.ZodString>;
|
|
244
259
|
}, "strip", z.ZodTypeAny, {
|
|
245
260
|
url: string;
|
|
246
|
-
id?: string | undefined;
|
|
247
261
|
description?: string | undefined;
|
|
262
|
+
id?: string | undefined;
|
|
248
263
|
title?: string | undefined;
|
|
249
264
|
image?: string | undefined;
|
|
250
265
|
}, {
|
|
251
266
|
url: string;
|
|
252
|
-
id?: string | undefined;
|
|
253
267
|
description?: string | undefined;
|
|
268
|
+
id?: string | undefined;
|
|
254
269
|
title?: string | undefined;
|
|
255
270
|
image?: string | undefined;
|
|
256
271
|
}>, "many">>;
|
|
@@ -289,14 +304,14 @@ export declare const userProfileUpdateSchema: z.ZodObject<{
|
|
|
289
304
|
id: z.ZodOptional<z.ZodString>;
|
|
290
305
|
}, "strip", z.ZodTypeAny, {
|
|
291
306
|
url: string;
|
|
292
|
-
id?: string | undefined;
|
|
293
307
|
description?: string | undefined;
|
|
308
|
+
id?: string | undefined;
|
|
294
309
|
title?: string | undefined;
|
|
295
310
|
image?: string | undefined;
|
|
296
311
|
}, {
|
|
297
312
|
url: string;
|
|
298
|
-
id?: string | undefined;
|
|
299
313
|
description?: string | undefined;
|
|
314
|
+
id?: string | undefined;
|
|
300
315
|
title?: string | undefined;
|
|
301
316
|
image?: string | undefined;
|
|
302
317
|
}>, "many">>;
|
|
@@ -348,6 +363,11 @@ export declare const currentUserResponseSchema: z.ZodObject<{
|
|
|
348
363
|
* entry; present only when the account has verified at least one domain.
|
|
349
364
|
*/
|
|
350
365
|
verifiedDomains: z.ZodOptional<z.ZodArray<z.ZodType<import("./identity").VerifiedDomain, z.ZodTypeDef, import("./identity").VerifiedDomain>, "many">>;
|
|
366
|
+
/**
|
|
367
|
+
* Real-estate / team taxonomy for `kind: 'organization'` accounts.
|
|
368
|
+
* Absent on personal, project, and bot accounts.
|
|
369
|
+
*/
|
|
370
|
+
organizationCategory: z.ZodOptional<z.ZodEnum<["agency", "cooperative", "landlord", "other"]>>;
|
|
351
371
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
352
372
|
/** MongoDB ObjectId as a string. Present on `formatUserResponse` output. */
|
|
353
373
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -377,6 +397,11 @@ export declare const currentUserResponseSchema: z.ZodObject<{
|
|
|
377
397
|
* entry; present only when the account has verified at least one domain.
|
|
378
398
|
*/
|
|
379
399
|
verifiedDomains: z.ZodOptional<z.ZodArray<z.ZodType<import("./identity").VerifiedDomain, z.ZodTypeDef, import("./identity").VerifiedDomain>, "many">>;
|
|
400
|
+
/**
|
|
401
|
+
* Real-estate / team taxonomy for `kind: 'organization'` accounts.
|
|
402
|
+
* Absent on personal, project, and bot accounts.
|
|
403
|
+
*/
|
|
404
|
+
organizationCategory: z.ZodOptional<z.ZodEnum<["agency", "cooperative", "landlord", "other"]>>;
|
|
380
405
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
381
406
|
/** MongoDB ObjectId as a string. Present on `formatUserResponse` output. */
|
|
382
407
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -406,17 +431,23 @@ export declare const currentUserResponseSchema: z.ZodObject<{
|
|
|
406
431
|
* entry; present only when the account has verified at least one domain.
|
|
407
432
|
*/
|
|
408
433
|
verifiedDomains: z.ZodOptional<z.ZodArray<z.ZodType<import("./identity").VerifiedDomain, z.ZodTypeDef, import("./identity").VerifiedDomain>, "many">>;
|
|
434
|
+
/**
|
|
435
|
+
* Real-estate / team taxonomy for `kind: 'organization'` accounts.
|
|
436
|
+
* Absent on personal, project, and bot accounts.
|
|
437
|
+
*/
|
|
438
|
+
organizationCategory: z.ZodOptional<z.ZodEnum<["agency", "cooperative", "landlord", "other"]>>;
|
|
409
439
|
}, z.ZodTypeAny, "passthrough">>;
|
|
410
440
|
}, "strip", z.ZodTypeAny, {
|
|
411
441
|
data: {
|
|
412
442
|
name: UserNameResponse;
|
|
443
|
+
username?: string | undefined;
|
|
444
|
+
avatar?: string | null | undefined;
|
|
445
|
+
organizationCategory?: "agency" | "cooperative" | "landlord" | "other" | undefined;
|
|
413
446
|
id?: string | undefined;
|
|
414
447
|
publicKey?: string | undefined;
|
|
415
448
|
did?: string | undefined;
|
|
416
449
|
verifiedDomains?: import("./identity").VerifiedDomain[] | undefined;
|
|
417
450
|
verified?: boolean | undefined;
|
|
418
|
-
username?: string | undefined;
|
|
419
|
-
avatar?: string | null | undefined;
|
|
420
451
|
_id?: string | undefined;
|
|
421
452
|
email?: string | undefined;
|
|
422
453
|
phone?: string | undefined;
|
|
@@ -430,13 +461,14 @@ export declare const currentUserResponseSchema: z.ZodObject<{
|
|
|
430
461
|
}, {
|
|
431
462
|
data: {
|
|
432
463
|
name: UserNameResponse;
|
|
464
|
+
username?: string | undefined;
|
|
465
|
+
avatar?: string | null | undefined;
|
|
466
|
+
organizationCategory?: "agency" | "cooperative" | "landlord" | "other" | undefined;
|
|
433
467
|
id?: string | undefined;
|
|
434
468
|
publicKey?: string | undefined;
|
|
435
469
|
did?: string | undefined;
|
|
436
470
|
verifiedDomains?: import("./identity").VerifiedDomain[] | undefined;
|
|
437
471
|
verified?: boolean | undefined;
|
|
438
|
-
username?: string | undefined;
|
|
439
|
-
avatar?: string | null | undefined;
|
|
440
472
|
_id?: string | undefined;
|
|
441
473
|
email?: string | undefined;
|
|
442
474
|
phone?: string | undefined;
|
|
@@ -487,6 +519,11 @@ export declare const deviceLinkedSessionSchema: z.ZodObject<{
|
|
|
487
519
|
* entry; present only when the account has verified at least one domain.
|
|
488
520
|
*/
|
|
489
521
|
verifiedDomains: z.ZodOptional<z.ZodArray<z.ZodType<import("./identity").VerifiedDomain, z.ZodTypeDef, import("./identity").VerifiedDomain>, "many">>;
|
|
522
|
+
/**
|
|
523
|
+
* Real-estate / team taxonomy for `kind: 'organization'` accounts.
|
|
524
|
+
* Absent on personal, project, and bot accounts.
|
|
525
|
+
*/
|
|
526
|
+
organizationCategory: z.ZodOptional<z.ZodEnum<["agency", "cooperative", "landlord", "other"]>>;
|
|
490
527
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
491
528
|
/** MongoDB ObjectId as a string. Present on `formatUserResponse` output. */
|
|
492
529
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -516,6 +553,11 @@ export declare const deviceLinkedSessionSchema: z.ZodObject<{
|
|
|
516
553
|
* entry; present only when the account has verified at least one domain.
|
|
517
554
|
*/
|
|
518
555
|
verifiedDomains: z.ZodOptional<z.ZodArray<z.ZodType<import("./identity").VerifiedDomain, z.ZodTypeDef, import("./identity").VerifiedDomain>, "many">>;
|
|
556
|
+
/**
|
|
557
|
+
* Real-estate / team taxonomy for `kind: 'organization'` accounts.
|
|
558
|
+
* Absent on personal, project, and bot accounts.
|
|
559
|
+
*/
|
|
560
|
+
organizationCategory: z.ZodOptional<z.ZodEnum<["agency", "cooperative", "landlord", "other"]>>;
|
|
519
561
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
520
562
|
/** MongoDB ObjectId as a string. Present on `formatUserResponse` output. */
|
|
521
563
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -545,6 +587,11 @@ export declare const deviceLinkedSessionSchema: z.ZodObject<{
|
|
|
545
587
|
* entry; present only when the account has verified at least one domain.
|
|
546
588
|
*/
|
|
547
589
|
verifiedDomains: z.ZodOptional<z.ZodArray<z.ZodType<import("./identity").VerifiedDomain, z.ZodTypeDef, import("./identity").VerifiedDomain>, "many">>;
|
|
590
|
+
/**
|
|
591
|
+
* Real-estate / team taxonomy for `kind: 'organization'` accounts.
|
|
592
|
+
* Absent on personal, project, and bot accounts.
|
|
593
|
+
*/
|
|
594
|
+
organizationCategory: z.ZodOptional<z.ZodEnum<["agency", "cooperative", "landlord", "other"]>>;
|
|
548
595
|
}, z.ZodTypeAny, "passthrough">>>>;
|
|
549
596
|
}, "strip", z.ZodTypeAny, {
|
|
550
597
|
sessionId: string;
|
|
@@ -577,6 +624,11 @@ export declare const deviceLinkedSessionSchema: z.ZodObject<{
|
|
|
577
624
|
* entry; present only when the account has verified at least one domain.
|
|
578
625
|
*/
|
|
579
626
|
verifiedDomains: z.ZodOptional<z.ZodArray<z.ZodType<import("./identity").VerifiedDomain, z.ZodTypeDef, import("./identity").VerifiedDomain>, "many">>;
|
|
627
|
+
/**
|
|
628
|
+
* Real-estate / team taxonomy for `kind: 'organization'` accounts.
|
|
629
|
+
* Absent on personal, project, and bot accounts.
|
|
630
|
+
*/
|
|
631
|
+
organizationCategory: z.ZodOptional<z.ZodEnum<["agency", "cooperative", "landlord", "other"]>>;
|
|
580
632
|
}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
581
633
|
isCurrent?: boolean | undefined;
|
|
582
634
|
}, {
|
|
@@ -610,6 +662,11 @@ export declare const deviceLinkedSessionSchema: z.ZodObject<{
|
|
|
610
662
|
* entry; present only when the account has verified at least one domain.
|
|
611
663
|
*/
|
|
612
664
|
verifiedDomains: z.ZodOptional<z.ZodArray<z.ZodType<import("./identity").VerifiedDomain, z.ZodTypeDef, import("./identity").VerifiedDomain>, "many">>;
|
|
665
|
+
/**
|
|
666
|
+
* Real-estate / team taxonomy for `kind: 'organization'` accounts.
|
|
667
|
+
* Absent on personal, project, and bot accounts.
|
|
668
|
+
*/
|
|
669
|
+
organizationCategory: z.ZodOptional<z.ZodEnum<["agency", "cooperative", "landlord", "other"]>>;
|
|
613
670
|
}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
614
671
|
isCurrent?: boolean | undefined;
|
|
615
672
|
}>;
|
|
@@ -647,6 +704,11 @@ export declare const deviceLinkedSessionsResponseSchema: z.ZodArray<z.ZodObject<
|
|
|
647
704
|
* entry; present only when the account has verified at least one domain.
|
|
648
705
|
*/
|
|
649
706
|
verifiedDomains: z.ZodOptional<z.ZodArray<z.ZodType<import("./identity").VerifiedDomain, z.ZodTypeDef, import("./identity").VerifiedDomain>, "many">>;
|
|
707
|
+
/**
|
|
708
|
+
* Real-estate / team taxonomy for `kind: 'organization'` accounts.
|
|
709
|
+
* Absent on personal, project, and bot accounts.
|
|
710
|
+
*/
|
|
711
|
+
organizationCategory: z.ZodOptional<z.ZodEnum<["agency", "cooperative", "landlord", "other"]>>;
|
|
650
712
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
651
713
|
/** MongoDB ObjectId as a string. Present on `formatUserResponse` output. */
|
|
652
714
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -676,6 +738,11 @@ export declare const deviceLinkedSessionsResponseSchema: z.ZodArray<z.ZodObject<
|
|
|
676
738
|
* entry; present only when the account has verified at least one domain.
|
|
677
739
|
*/
|
|
678
740
|
verifiedDomains: z.ZodOptional<z.ZodArray<z.ZodType<import("./identity").VerifiedDomain, z.ZodTypeDef, import("./identity").VerifiedDomain>, "many">>;
|
|
741
|
+
/**
|
|
742
|
+
* Real-estate / team taxonomy for `kind: 'organization'` accounts.
|
|
743
|
+
* Absent on personal, project, and bot accounts.
|
|
744
|
+
*/
|
|
745
|
+
organizationCategory: z.ZodOptional<z.ZodEnum<["agency", "cooperative", "landlord", "other"]>>;
|
|
679
746
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
680
747
|
/** MongoDB ObjectId as a string. Present on `formatUserResponse` output. */
|
|
681
748
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -705,6 +772,11 @@ export declare const deviceLinkedSessionsResponseSchema: z.ZodArray<z.ZodObject<
|
|
|
705
772
|
* entry; present only when the account has verified at least one domain.
|
|
706
773
|
*/
|
|
707
774
|
verifiedDomains: z.ZodOptional<z.ZodArray<z.ZodType<import("./identity").VerifiedDomain, z.ZodTypeDef, import("./identity").VerifiedDomain>, "many">>;
|
|
775
|
+
/**
|
|
776
|
+
* Real-estate / team taxonomy for `kind: 'organization'` accounts.
|
|
777
|
+
* Absent on personal, project, and bot accounts.
|
|
778
|
+
*/
|
|
779
|
+
organizationCategory: z.ZodOptional<z.ZodEnum<["agency", "cooperative", "landlord", "other"]>>;
|
|
708
780
|
}, z.ZodTypeAny, "passthrough">>>>;
|
|
709
781
|
}, "strip", z.ZodTypeAny, {
|
|
710
782
|
sessionId: string;
|
|
@@ -737,6 +809,11 @@ export declare const deviceLinkedSessionsResponseSchema: z.ZodArray<z.ZodObject<
|
|
|
737
809
|
* entry; present only when the account has verified at least one domain.
|
|
738
810
|
*/
|
|
739
811
|
verifiedDomains: z.ZodOptional<z.ZodArray<z.ZodType<import("./identity").VerifiedDomain, z.ZodTypeDef, import("./identity").VerifiedDomain>, "many">>;
|
|
812
|
+
/**
|
|
813
|
+
* Real-estate / team taxonomy for `kind: 'organization'` accounts.
|
|
814
|
+
* Absent on personal, project, and bot accounts.
|
|
815
|
+
*/
|
|
816
|
+
organizationCategory: z.ZodOptional<z.ZodEnum<["agency", "cooperative", "landlord", "other"]>>;
|
|
740
817
|
}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
741
818
|
isCurrent?: boolean | undefined;
|
|
742
819
|
}, {
|
|
@@ -770,6 +847,11 @@ export declare const deviceLinkedSessionsResponseSchema: z.ZodArray<z.ZodObject<
|
|
|
770
847
|
* entry; present only when the account has verified at least one domain.
|
|
771
848
|
*/
|
|
772
849
|
verifiedDomains: z.ZodOptional<z.ZodArray<z.ZodType<import("./identity").VerifiedDomain, z.ZodTypeDef, import("./identity").VerifiedDomain>, "many">>;
|
|
850
|
+
/**
|
|
851
|
+
* Real-estate / team taxonomy for `kind: 'organization'` accounts.
|
|
852
|
+
* Absent on personal, project, and bot accounts.
|
|
853
|
+
*/
|
|
854
|
+
organizationCategory: z.ZodOptional<z.ZodEnum<["agency", "cooperative", "landlord", "other"]>>;
|
|
773
855
|
}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
774
856
|
isCurrent?: boolean | undefined;
|
|
775
857
|
}>, "many">;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oxyhq/contracts",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.2",
|
|
4
4
|
"description": "OxyHQ API contracts — single source of truth for request/response Zod schemas and inferred types, shared by the backend and the client SDKs",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|