@oxy.so/contracts 4.12.0 → 4.14.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/accountGraph.js +38 -4
- package/dist/cjs/avatarCharacter.js +120 -0
- package/dist/cjs/index.js +25 -14
- package/dist/cjs/organizations.js +210 -0
- package/dist/cjs/recommendations.js +3 -0
- package/dist/cjs/safety.js +15 -0
- package/dist/cjs/userResponse.js +7 -0
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/accountGraph.js +36 -2
- package/dist/esm/avatarCharacter.js +115 -0
- package/dist/esm/index.js +4 -1
- package/dist/esm/organizations.js +207 -0
- package/dist/esm/recommendations.js +3 -0
- package/dist/esm/safety.js +12 -0
- package/dist/esm/userResponse.js +7 -0
- package/dist/types/.tsbuildinfo +1 -1
- package/dist/types/accountGraph.d.ts +57 -14
- package/dist/types/accountSubject.d.ts +4 -4
- package/dist/types/avatarCharacter.d.ts +57 -0
- package/dist/types/deviceDirectory.d.ts +246 -246
- package/dist/types/externalIdentity.d.ts +62 -55
- package/dist/types/index.d.ts +5 -1
- package/dist/types/organizations.d.ts +1088 -0
- package/dist/types/recommendations.d.ts +40 -28
- package/dist/types/safety.d.ts +24 -0
- package/dist/types/userResponse.d.ts +200 -102
- package/package.json +1 -1
|
@@ -71,7 +71,8 @@ export declare const resolveExternalIdentityResponseSchema: z.ZodEffects<z.ZodOb
|
|
|
71
71
|
did: z.ZodOptional<z.ZodString>;
|
|
72
72
|
verifiedDomains: z.ZodOptional<z.ZodArray<z.ZodType<import("./identity").VerifiedDomain, z.ZodTypeDef, import("./identity").VerifiedDomain>, "many">>;
|
|
73
73
|
kind: z.ZodOptional<z.ZodEnum<["personal", "organization", "project", "bot", "channel"]>>;
|
|
74
|
-
accountCategories: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodEnum<["news", "politics", "business", "startup", "finance", "crypto", "marketplace", "retail", "real_estate", "agency", "landlord", "cooperative", "architecture", "technology", "software", "ai", "security", "automation", "science", "education", "books", "health", "fitness", "sports", "gaming", "music", "film", "podcast", "art", "photography", "comedy", "food", "travel", "fashion", "home_garden", "diy", "automotive", "animals", "family", "nonprofit", "government", "community", "activism", "environment", "religion", "other"]>, "many">, ("
|
|
74
|
+
accountCategories: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodEnum<["news", "politics", "business", "startup", "finance", "crypto", "marketplace", "retail", "real_estate", "agency", "landlord", "cooperative", "architecture", "technology", "software", "ai", "security", "automation", "science", "education", "books", "health", "fitness", "sports", "gaming", "music", "film", "podcast", "art", "photography", "comedy", "food", "travel", "fashion", "home_garden", "diy", "automotive", "animals", "family", "nonprofit", "government", "community", "activism", "environment", "religion", "other"]>, "many">, ("news" | "politics" | "business" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "security" | "automation" | "science" | "education" | "books" | "health" | "fitness" | "sports" | "gaming" | "music" | "film" | "podcast" | "art" | "photography" | "comedy" | "food" | "travel" | "fashion" | "home_garden" | "diy" | "automotive" | "animals" | "family" | "nonprofit" | "government" | "community" | "activism" | "environment" | "religion" | "other")[], ("news" | "politics" | "business" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "security" | "automation" | "science" | "education" | "books" | "health" | "fitness" | "sports" | "gaming" | "music" | "film" | "podcast" | "art" | "photography" | "comedy" | "food" | "travel" | "fashion" | "home_garden" | "diy" | "automotive" | "animals" | "family" | "nonprofit" | "government" | "community" | "activism" | "environment" | "religion" | "other")[]>>;
|
|
75
|
+
character: z.ZodOptional<z.ZodType<import("./avatarCharacter").AvatarCharacter, z.ZodTypeDef, unknown>>;
|
|
75
76
|
relationship: z.ZodOptional<z.ZodType<import("./userResponse").UserRelationship, z.ZodTypeDef, import("./userResponse").UserRelationship>>;
|
|
76
77
|
themePreference: z.ZodOptional<z.ZodType<import("./userResponse").ThemePreference, z.ZodTypeDef, import("./userResponse").ThemePreference>>;
|
|
77
78
|
personalization: z.ZodOptional<z.ZodObject<{
|
|
@@ -79,21 +80,21 @@ export declare const resolveExternalIdentityResponseSchema: z.ZodEffects<z.ZodOb
|
|
|
79
80
|
allowed: z.ZodBoolean;
|
|
80
81
|
expiresAt: z.ZodNullable<z.ZodString>;
|
|
81
82
|
}, "strict", z.ZodTypeAny, {
|
|
82
|
-
expiresAt: string | null;
|
|
83
83
|
allowed: boolean;
|
|
84
|
-
}, {
|
|
85
84
|
expiresAt: string | null;
|
|
85
|
+
}, {
|
|
86
86
|
allowed: boolean;
|
|
87
|
+
expiresAt: string | null;
|
|
87
88
|
}>;
|
|
88
89
|
}, "strict", z.ZodTypeAny, {
|
|
89
90
|
mentionMono: {
|
|
90
|
-
expiresAt: string | null;
|
|
91
91
|
allowed: boolean;
|
|
92
|
+
expiresAt: string | null;
|
|
92
93
|
};
|
|
93
94
|
}, {
|
|
94
95
|
mentionMono: {
|
|
95
|
-
expiresAt: string | null;
|
|
96
96
|
allowed: boolean;
|
|
97
|
+
expiresAt: string | null;
|
|
97
98
|
};
|
|
98
99
|
}>>;
|
|
99
100
|
} & {
|
|
@@ -140,7 +141,8 @@ export declare const resolveExternalIdentityResponseSchema: z.ZodEffects<z.ZodOb
|
|
|
140
141
|
did: z.ZodOptional<z.ZodString>;
|
|
141
142
|
verifiedDomains: z.ZodOptional<z.ZodArray<z.ZodType<import("./identity").VerifiedDomain, z.ZodTypeDef, import("./identity").VerifiedDomain>, "many">>;
|
|
142
143
|
kind: z.ZodOptional<z.ZodEnum<["personal", "organization", "project", "bot", "channel"]>>;
|
|
143
|
-
accountCategories: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodEnum<["news", "politics", "business", "startup", "finance", "crypto", "marketplace", "retail", "real_estate", "agency", "landlord", "cooperative", "architecture", "technology", "software", "ai", "security", "automation", "science", "education", "books", "health", "fitness", "sports", "gaming", "music", "film", "podcast", "art", "photography", "comedy", "food", "travel", "fashion", "home_garden", "diy", "automotive", "animals", "family", "nonprofit", "government", "community", "activism", "environment", "religion", "other"]>, "many">, ("
|
|
144
|
+
accountCategories: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodEnum<["news", "politics", "business", "startup", "finance", "crypto", "marketplace", "retail", "real_estate", "agency", "landlord", "cooperative", "architecture", "technology", "software", "ai", "security", "automation", "science", "education", "books", "health", "fitness", "sports", "gaming", "music", "film", "podcast", "art", "photography", "comedy", "food", "travel", "fashion", "home_garden", "diy", "automotive", "animals", "family", "nonprofit", "government", "community", "activism", "environment", "religion", "other"]>, "many">, ("news" | "politics" | "business" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "security" | "automation" | "science" | "education" | "books" | "health" | "fitness" | "sports" | "gaming" | "music" | "film" | "podcast" | "art" | "photography" | "comedy" | "food" | "travel" | "fashion" | "home_garden" | "diy" | "automotive" | "animals" | "family" | "nonprofit" | "government" | "community" | "activism" | "environment" | "religion" | "other")[], ("news" | "politics" | "business" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "security" | "automation" | "science" | "education" | "books" | "health" | "fitness" | "sports" | "gaming" | "music" | "film" | "podcast" | "art" | "photography" | "comedy" | "food" | "travel" | "fashion" | "home_garden" | "diy" | "automotive" | "animals" | "family" | "nonprofit" | "government" | "community" | "activism" | "environment" | "religion" | "other")[]>>;
|
|
145
|
+
character: z.ZodOptional<z.ZodType<import("./avatarCharacter").AvatarCharacter, z.ZodTypeDef, unknown>>;
|
|
144
146
|
relationship: z.ZodOptional<z.ZodType<import("./userResponse").UserRelationship, z.ZodTypeDef, import("./userResponse").UserRelationship>>;
|
|
145
147
|
themePreference: z.ZodOptional<z.ZodType<import("./userResponse").ThemePreference, z.ZodTypeDef, import("./userResponse").ThemePreference>>;
|
|
146
148
|
personalization: z.ZodOptional<z.ZodObject<{
|
|
@@ -148,21 +150,21 @@ export declare const resolveExternalIdentityResponseSchema: z.ZodEffects<z.ZodOb
|
|
|
148
150
|
allowed: z.ZodBoolean;
|
|
149
151
|
expiresAt: z.ZodNullable<z.ZodString>;
|
|
150
152
|
}, "strict", z.ZodTypeAny, {
|
|
151
|
-
expiresAt: string | null;
|
|
152
153
|
allowed: boolean;
|
|
153
|
-
}, {
|
|
154
154
|
expiresAt: string | null;
|
|
155
|
+
}, {
|
|
155
156
|
allowed: boolean;
|
|
157
|
+
expiresAt: string | null;
|
|
156
158
|
}>;
|
|
157
159
|
}, "strict", z.ZodTypeAny, {
|
|
158
160
|
mentionMono: {
|
|
159
|
-
expiresAt: string | null;
|
|
160
161
|
allowed: boolean;
|
|
162
|
+
expiresAt: string | null;
|
|
161
163
|
};
|
|
162
164
|
}, {
|
|
163
165
|
mentionMono: {
|
|
164
|
-
expiresAt: string | null;
|
|
165
166
|
allowed: boolean;
|
|
167
|
+
expiresAt: string | null;
|
|
166
168
|
};
|
|
167
169
|
}>>;
|
|
168
170
|
} & {
|
|
@@ -209,7 +211,8 @@ export declare const resolveExternalIdentityResponseSchema: z.ZodEffects<z.ZodOb
|
|
|
209
211
|
did: z.ZodOptional<z.ZodString>;
|
|
210
212
|
verifiedDomains: z.ZodOptional<z.ZodArray<z.ZodType<import("./identity").VerifiedDomain, z.ZodTypeDef, import("./identity").VerifiedDomain>, "many">>;
|
|
211
213
|
kind: z.ZodOptional<z.ZodEnum<["personal", "organization", "project", "bot", "channel"]>>;
|
|
212
|
-
accountCategories: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodEnum<["news", "politics", "business", "startup", "finance", "crypto", "marketplace", "retail", "real_estate", "agency", "landlord", "cooperative", "architecture", "technology", "software", "ai", "security", "automation", "science", "education", "books", "health", "fitness", "sports", "gaming", "music", "film", "podcast", "art", "photography", "comedy", "food", "travel", "fashion", "home_garden", "diy", "automotive", "animals", "family", "nonprofit", "government", "community", "activism", "environment", "religion", "other"]>, "many">, ("
|
|
214
|
+
accountCategories: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodEnum<["news", "politics", "business", "startup", "finance", "crypto", "marketplace", "retail", "real_estate", "agency", "landlord", "cooperative", "architecture", "technology", "software", "ai", "security", "automation", "science", "education", "books", "health", "fitness", "sports", "gaming", "music", "film", "podcast", "art", "photography", "comedy", "food", "travel", "fashion", "home_garden", "diy", "automotive", "animals", "family", "nonprofit", "government", "community", "activism", "environment", "religion", "other"]>, "many">, ("news" | "politics" | "business" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "security" | "automation" | "science" | "education" | "books" | "health" | "fitness" | "sports" | "gaming" | "music" | "film" | "podcast" | "art" | "photography" | "comedy" | "food" | "travel" | "fashion" | "home_garden" | "diy" | "automotive" | "animals" | "family" | "nonprofit" | "government" | "community" | "activism" | "environment" | "religion" | "other")[], ("news" | "politics" | "business" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "security" | "automation" | "science" | "education" | "books" | "health" | "fitness" | "sports" | "gaming" | "music" | "film" | "podcast" | "art" | "photography" | "comedy" | "food" | "travel" | "fashion" | "home_garden" | "diy" | "automotive" | "animals" | "family" | "nonprofit" | "government" | "community" | "activism" | "environment" | "religion" | "other")[]>>;
|
|
215
|
+
character: z.ZodOptional<z.ZodType<import("./avatarCharacter").AvatarCharacter, z.ZodTypeDef, unknown>>;
|
|
213
216
|
relationship: z.ZodOptional<z.ZodType<import("./userResponse").UserRelationship, z.ZodTypeDef, import("./userResponse").UserRelationship>>;
|
|
214
217
|
themePreference: z.ZodOptional<z.ZodType<import("./userResponse").ThemePreference, z.ZodTypeDef, import("./userResponse").ThemePreference>>;
|
|
215
218
|
personalization: z.ZodOptional<z.ZodObject<{
|
|
@@ -217,21 +220,21 @@ export declare const resolveExternalIdentityResponseSchema: z.ZodEffects<z.ZodOb
|
|
|
217
220
|
allowed: z.ZodBoolean;
|
|
218
221
|
expiresAt: z.ZodNullable<z.ZodString>;
|
|
219
222
|
}, "strict", z.ZodTypeAny, {
|
|
220
|
-
expiresAt: string | null;
|
|
221
223
|
allowed: boolean;
|
|
222
|
-
}, {
|
|
223
224
|
expiresAt: string | null;
|
|
225
|
+
}, {
|
|
224
226
|
allowed: boolean;
|
|
227
|
+
expiresAt: string | null;
|
|
225
228
|
}>;
|
|
226
229
|
}, "strict", z.ZodTypeAny, {
|
|
227
230
|
mentionMono: {
|
|
228
|
-
expiresAt: string | null;
|
|
229
231
|
allowed: boolean;
|
|
232
|
+
expiresAt: string | null;
|
|
230
233
|
};
|
|
231
234
|
}, {
|
|
232
235
|
mentionMono: {
|
|
233
|
-
expiresAt: string | null;
|
|
234
236
|
allowed: boolean;
|
|
237
|
+
expiresAt: string | null;
|
|
235
238
|
};
|
|
236
239
|
}>>;
|
|
237
240
|
} & {
|
|
@@ -325,29 +328,30 @@ export declare const resolveExternalIdentityResponseSchema: z.ZodEffects<z.ZodOb
|
|
|
325
328
|
sourceUserId: string;
|
|
326
329
|
}[];
|
|
327
330
|
redirectedUserIds: string[];
|
|
328
|
-
|
|
329
|
-
kind?: "
|
|
331
|
+
color?: string | null | undefined;
|
|
332
|
+
kind?: "personal" | "organization" | "project" | "bot" | "channel" | undefined;
|
|
330
333
|
bio?: string | undefined;
|
|
331
334
|
avatar?: string | null | undefined;
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
verified?: boolean | undefined;
|
|
336
|
-
did?: string | undefined;
|
|
337
|
-
verifiedDomains?: import("./identity").VerifiedDomain[] | undefined;
|
|
335
|
+
accountCategories?: ("news" | "politics" | "business" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "security" | "automation" | "science" | "education" | "books" | "health" | "fitness" | "sports" | "gaming" | "music" | "film" | "podcast" | "art" | "photography" | "comedy" | "food" | "travel" | "fashion" | "home_garden" | "diy" | "automotive" | "animals" | "family" | "nonprofit" | "government" | "community" | "activism" | "environment" | "religion" | "other")[] | undefined;
|
|
336
|
+
character?: import("./avatarCharacter").AvatarCharacter | undefined;
|
|
337
|
+
email?: string | undefined;
|
|
338
338
|
_id?: string | undefined;
|
|
339
|
+
publicKey?: string | undefined;
|
|
339
340
|
phone?: string | undefined;
|
|
340
341
|
address?: string | undefined;
|
|
341
342
|
birthday?: string | undefined;
|
|
342
343
|
dateOfBirth?: string | undefined;
|
|
343
344
|
isAdult?: boolean | undefined;
|
|
345
|
+
verified?: boolean | undefined;
|
|
344
346
|
languages?: string[] | undefined;
|
|
347
|
+
did?: string | undefined;
|
|
348
|
+
verifiedDomains?: import("./identity").VerifiedDomain[] | undefined;
|
|
345
349
|
relationship?: import("./userResponse").UserRelationship | undefined;
|
|
346
350
|
themePreference?: import("./userResponse").ThemePreference | undefined;
|
|
347
351
|
personalization?: {
|
|
348
352
|
mentionMono: {
|
|
349
|
-
expiresAt: string | null;
|
|
350
353
|
allowed: boolean;
|
|
354
|
+
expiresAt: string | null;
|
|
351
355
|
};
|
|
352
356
|
} | undefined;
|
|
353
357
|
} & {
|
|
@@ -385,29 +389,30 @@ export declare const resolveExternalIdentityResponseSchema: z.ZodEffects<z.ZodOb
|
|
|
385
389
|
sourceUserId: string;
|
|
386
390
|
}[];
|
|
387
391
|
redirectedUserIds: string[];
|
|
388
|
-
|
|
389
|
-
kind?: "
|
|
392
|
+
color?: string | null | undefined;
|
|
393
|
+
kind?: "personal" | "organization" | "project" | "bot" | "channel" | undefined;
|
|
390
394
|
bio?: string | undefined;
|
|
391
395
|
avatar?: string | null | undefined;
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
verified?: boolean | undefined;
|
|
396
|
-
did?: string | undefined;
|
|
397
|
-
verifiedDomains?: import("./identity").VerifiedDomain[] | undefined;
|
|
396
|
+
accountCategories?: ("news" | "politics" | "business" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "security" | "automation" | "science" | "education" | "books" | "health" | "fitness" | "sports" | "gaming" | "music" | "film" | "podcast" | "art" | "photography" | "comedy" | "food" | "travel" | "fashion" | "home_garden" | "diy" | "automotive" | "animals" | "family" | "nonprofit" | "government" | "community" | "activism" | "environment" | "religion" | "other")[] | undefined;
|
|
397
|
+
character?: unknown;
|
|
398
|
+
email?: string | undefined;
|
|
398
399
|
_id?: string | undefined;
|
|
400
|
+
publicKey?: string | undefined;
|
|
399
401
|
phone?: string | undefined;
|
|
400
402
|
address?: string | undefined;
|
|
401
403
|
birthday?: string | undefined;
|
|
402
404
|
dateOfBirth?: string | undefined;
|
|
403
405
|
isAdult?: boolean | undefined;
|
|
406
|
+
verified?: boolean | undefined;
|
|
404
407
|
languages?: string[] | undefined;
|
|
408
|
+
did?: string | undefined;
|
|
409
|
+
verifiedDomains?: import("./identity").VerifiedDomain[] | undefined;
|
|
405
410
|
relationship?: import("./userResponse").UserRelationship | undefined;
|
|
406
411
|
themePreference?: import("./userResponse").ThemePreference | undefined;
|
|
407
412
|
personalization?: {
|
|
408
413
|
mentionMono: {
|
|
409
|
-
expiresAt: string | null;
|
|
410
414
|
allowed: boolean;
|
|
415
|
+
expiresAt: string | null;
|
|
411
416
|
};
|
|
412
417
|
} | undefined;
|
|
413
418
|
} & {
|
|
@@ -445,29 +450,30 @@ export declare const resolveExternalIdentityResponseSchema: z.ZodEffects<z.ZodOb
|
|
|
445
450
|
sourceUserId: string;
|
|
446
451
|
}[];
|
|
447
452
|
redirectedUserIds: string[];
|
|
448
|
-
|
|
449
|
-
kind?: "
|
|
453
|
+
color?: string | null | undefined;
|
|
454
|
+
kind?: "personal" | "organization" | "project" | "bot" | "channel" | undefined;
|
|
450
455
|
bio?: string | undefined;
|
|
451
456
|
avatar?: string | null | undefined;
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
verified?: boolean | undefined;
|
|
456
|
-
did?: string | undefined;
|
|
457
|
-
verifiedDomains?: import("./identity").VerifiedDomain[] | undefined;
|
|
457
|
+
accountCategories?: ("news" | "politics" | "business" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "security" | "automation" | "science" | "education" | "books" | "health" | "fitness" | "sports" | "gaming" | "music" | "film" | "podcast" | "art" | "photography" | "comedy" | "food" | "travel" | "fashion" | "home_garden" | "diy" | "automotive" | "animals" | "family" | "nonprofit" | "government" | "community" | "activism" | "environment" | "religion" | "other")[] | undefined;
|
|
458
|
+
character?: import("./avatarCharacter").AvatarCharacter | undefined;
|
|
459
|
+
email?: string | undefined;
|
|
458
460
|
_id?: string | undefined;
|
|
461
|
+
publicKey?: string | undefined;
|
|
459
462
|
phone?: string | undefined;
|
|
460
463
|
address?: string | undefined;
|
|
461
464
|
birthday?: string | undefined;
|
|
462
465
|
dateOfBirth?: string | undefined;
|
|
463
466
|
isAdult?: boolean | undefined;
|
|
467
|
+
verified?: boolean | undefined;
|
|
464
468
|
languages?: string[] | undefined;
|
|
469
|
+
did?: string | undefined;
|
|
470
|
+
verifiedDomains?: import("./identity").VerifiedDomain[] | undefined;
|
|
465
471
|
relationship?: import("./userResponse").UserRelationship | undefined;
|
|
466
472
|
themePreference?: import("./userResponse").ThemePreference | undefined;
|
|
467
473
|
personalization?: {
|
|
468
474
|
mentionMono: {
|
|
469
|
-
expiresAt: string | null;
|
|
470
475
|
allowed: boolean;
|
|
476
|
+
expiresAt: string | null;
|
|
471
477
|
};
|
|
472
478
|
} | undefined;
|
|
473
479
|
} & {
|
|
@@ -505,29 +511,30 @@ export declare const resolveExternalIdentityResponseSchema: z.ZodEffects<z.ZodOb
|
|
|
505
511
|
sourceUserId: string;
|
|
506
512
|
}[];
|
|
507
513
|
redirectedUserIds: string[];
|
|
508
|
-
|
|
509
|
-
kind?: "
|
|
514
|
+
color?: string | null | undefined;
|
|
515
|
+
kind?: "personal" | "organization" | "project" | "bot" | "channel" | undefined;
|
|
510
516
|
bio?: string | undefined;
|
|
511
517
|
avatar?: string | null | undefined;
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
verified?: boolean | undefined;
|
|
516
|
-
did?: string | undefined;
|
|
517
|
-
verifiedDomains?: import("./identity").VerifiedDomain[] | undefined;
|
|
518
|
+
accountCategories?: ("news" | "politics" | "business" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "security" | "automation" | "science" | "education" | "books" | "health" | "fitness" | "sports" | "gaming" | "music" | "film" | "podcast" | "art" | "photography" | "comedy" | "food" | "travel" | "fashion" | "home_garden" | "diy" | "automotive" | "animals" | "family" | "nonprofit" | "government" | "community" | "activism" | "environment" | "religion" | "other")[] | undefined;
|
|
519
|
+
character?: unknown;
|
|
520
|
+
email?: string | undefined;
|
|
518
521
|
_id?: string | undefined;
|
|
522
|
+
publicKey?: string | undefined;
|
|
519
523
|
phone?: string | undefined;
|
|
520
524
|
address?: string | undefined;
|
|
521
525
|
birthday?: string | undefined;
|
|
522
526
|
dateOfBirth?: string | undefined;
|
|
523
527
|
isAdult?: boolean | undefined;
|
|
528
|
+
verified?: boolean | undefined;
|
|
524
529
|
languages?: string[] | undefined;
|
|
530
|
+
did?: string | undefined;
|
|
531
|
+
verifiedDomains?: import("./identity").VerifiedDomain[] | undefined;
|
|
525
532
|
relationship?: import("./userResponse").UserRelationship | undefined;
|
|
526
533
|
themePreference?: import("./userResponse").ThemePreference | undefined;
|
|
527
534
|
personalization?: {
|
|
528
535
|
mentionMono: {
|
|
529
|
-
expiresAt: string | null;
|
|
530
536
|
allowed: boolean;
|
|
537
|
+
expiresAt: string | null;
|
|
531
538
|
};
|
|
532
539
|
} | undefined;
|
|
533
540
|
} & {
|
|
@@ -588,7 +595,6 @@ export declare const lookupExternalIdentitiesResponseSchema: z.ZodObject<{
|
|
|
588
595
|
redirectedUserIds: z.ZodArray<z.ZodString, "many">;
|
|
589
596
|
}, "strip", z.ZodTypeAny, {
|
|
590
597
|
userId: string | null;
|
|
591
|
-
identifier: string;
|
|
592
598
|
externalIdentities: {
|
|
593
599
|
canonicalAcct: string;
|
|
594
600
|
network: string;
|
|
@@ -598,9 +604,9 @@ export declare const lookupExternalIdentitiesResponseSchema: z.ZodObject<{
|
|
|
598
604
|
sourceUserId: string;
|
|
599
605
|
}[];
|
|
600
606
|
redirectedUserIds: string[];
|
|
607
|
+
identifier: string;
|
|
601
608
|
}, {
|
|
602
609
|
userId: string | null;
|
|
603
|
-
identifier: string;
|
|
604
610
|
externalIdentities: {
|
|
605
611
|
canonicalAcct: string;
|
|
606
612
|
network: string;
|
|
@@ -610,11 +616,11 @@ export declare const lookupExternalIdentitiesResponseSchema: z.ZodObject<{
|
|
|
610
616
|
sourceUserId: string;
|
|
611
617
|
}[];
|
|
612
618
|
redirectedUserIds: string[];
|
|
619
|
+
identifier: string;
|
|
613
620
|
}>, "many">;
|
|
614
621
|
}, "strip", z.ZodTypeAny, {
|
|
615
622
|
identities: {
|
|
616
623
|
userId: string | null;
|
|
617
|
-
identifier: string;
|
|
618
624
|
externalIdentities: {
|
|
619
625
|
canonicalAcct: string;
|
|
620
626
|
network: string;
|
|
@@ -624,11 +630,11 @@ export declare const lookupExternalIdentitiesResponseSchema: z.ZodObject<{
|
|
|
624
630
|
sourceUserId: string;
|
|
625
631
|
}[];
|
|
626
632
|
redirectedUserIds: string[];
|
|
633
|
+
identifier: string;
|
|
627
634
|
}[];
|
|
628
635
|
}, {
|
|
629
636
|
identities: {
|
|
630
637
|
userId: string | null;
|
|
631
|
-
identifier: string;
|
|
632
638
|
externalIdentities: {
|
|
633
639
|
canonicalAcct: string;
|
|
634
640
|
network: string;
|
|
@@ -638,6 +644,7 @@ export declare const lookupExternalIdentitiesResponseSchema: z.ZodObject<{
|
|
|
638
644
|
sourceUserId: string;
|
|
639
645
|
}[];
|
|
640
646
|
redirectedUserIds: string[];
|
|
647
|
+
identifier: string;
|
|
641
648
|
}[];
|
|
642
649
|
}>;
|
|
643
650
|
export type ExternalIdentityProtocol = z.infer<typeof externalIdentityProtocolSchema>;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -9,8 +9,10 @@
|
|
|
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 { ACCOUNT_KINDS, accountKindSchema, CHILD_ACCOUNT_KINDS, childAccountKindSchema, isAccountKind, isDelegatedActAsEligibleKind, isOperatorSwitchTargetKind, ACCOUNT_CATEGORY_IDS, ACCOUNT_CATEGORY_KINDS, accountCategoriesSchema, accountCategoryIdSchema, isSelectableAccountCategoryId, kindAcceptsAccountCategories, MAX_ACCOUNT_CATEGORIES, newlyAddedRetiredCategories, RETIRED_ACCOUNT_CATEGORY_IDS, SELECTABLE_ACCOUNT_CATEGORY_IDS, createAccountRequestSchema, } from './accountGraph';
|
|
12
|
+
export { ACCOUNT_KINDS, accountKindSchema, CHILD_ACCOUNT_KINDS, childAccountKindSchema, isAccountKind, isDelegatedActAsEligibleKind, isOperatorSwitchTargetKind, ACCOUNT_CATEGORY_IDS, ACCOUNT_CATEGORY_KINDS, accountCategoriesSchema, accountCategoryIdSchema, isSelectableAccountCategoryId, kindAcceptsAccountCategories, MAX_ACCOUNT_CATEGORIES, newlyAddedRetiredCategories, RETIRED_ACCOUNT_CATEGORY_IDS, SELECTABLE_ACCOUNT_CATEGORY_IDS, createAccountRequestSchema, accountNameSchema, } from './accountGraph';
|
|
13
13
|
export type { AccountKind, AccountCategoryId, AccountCategoryKind, ChildAccountKind, CreateAccountRequest, } from './accountGraph';
|
|
14
|
+
export { AVATAR_EYE_SPACING, AVATAR_PICKABLE_COLORS, AVATAR_PICKABLE_SHAPES, avatarCharacterFor, avatarCharacterSchema, parseAvatarCharacter, } from './avatarCharacter';
|
|
15
|
+
export type { AvatarCharacter } from './avatarCharacter';
|
|
14
16
|
export { ACCOUNT_ACTOR_NATURES, ACCOUNT_SUBJECT_CONTRACT_VERSION, FINANCIAL_EFFECT_DIRECTIONS, KIND_INDEPENDENT_ACCOUNT_DIMENSIONS, accountActorChainFromSession, accountActorChainSchema, accountActorNatureSchema, accountKindActorNature, accountKindActsAsItself, attributeFinancialEffect, financialEffectAttributionSchema, } from './accountSubject';
|
|
15
17
|
export type { AccountActorChain, AccountActorNature, FinancialEffectAttribution, FinancialEffectDirection, KindIndependentAccountDimension, } from './accountSubject';
|
|
16
18
|
export { usernameSchema, usernameSchemaForAccountKind, isValidUsername, stripDisallowedUsernameCharacters, applyBotUsernameSuffix, USERNAME_MIN_LENGTH, USERNAME_MAX_LENGTH, USERNAME_INVALID_MESSAGE, BOT_USERNAME_INVALID_MESSAGE, RESERVED_USERNAME_MESSAGE, NUMERIC_USERNAME_MESSAGE, } from './username';
|
|
@@ -132,3 +134,5 @@ export * from './agentKeys';
|
|
|
132
134
|
export { productSubscriptionSummarySchema, productSubscriptionsResponseSchema, subscriptionCreditGrantSchema, subscriptionCreditGrantsResponseSchema, cancelProductSubscriptionSchema, productSubscriptionCancellationResultSchema, type ProductSubscriptionSummary, type SubscriptionCreditGrant, type ProductSubscriptionCancellationResult, } from './products/billing';
|
|
133
135
|
export { personalPlanDisplayPriceSchema, personalPlanCatalogueSchema, type PersonalPlanCatalogue, } from './products/plans';
|
|
134
136
|
export * from './products/checkout';
|
|
137
|
+
export * from './organizations';
|
|
138
|
+
export * from './safety';
|