@oxyhq/contracts 0.31.0 → 0.32.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 +17 -0
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/accountGraph.js +17 -0
- package/dist/types/.tsbuildinfo +1 -1
- package/dist/types/accountGraph.d.ts +19 -0
- package/dist/types/userResponse.d.ts +2 -2
- package/package.json +1 -1
|
@@ -207,6 +207,23 @@ export declare const createAccountRequestSchema: z.ZodObject<{
|
|
|
207
207
|
bio: z.ZodOptional<z.ZodString>;
|
|
208
208
|
avatar: z.ZodOptional<z.ZodString>;
|
|
209
209
|
description: z.ZodOptional<z.ZodString>;
|
|
210
|
+
/**
|
|
211
|
+
* A named color preset KEY (`"blue"`, `"mint"`, …), never a hex value.
|
|
212
|
+
*
|
|
213
|
+
* Here at CREATION for the reason `isPrivateAccount` is, in miniature: for a
|
|
214
|
+
* managed account the color is a visual identity, and an account that is
|
|
215
|
+
* discoverable without one and acquires it on a second request is a face that
|
|
216
|
+
* changes by itself. One statement, one row, born looking like what its owner
|
|
217
|
+
* chose.
|
|
218
|
+
*
|
|
219
|
+
* The VALUE is checked in the API rather than here. The vocabulary is
|
|
220
|
+
* `USER_COLOR_PRESETS`, which is declared next to the `users_color_check` CHECK
|
|
221
|
+
* that is rendered from it — pinning the list a second time in this package
|
|
222
|
+
* would be a second source of truth for what the database accepts, and the two
|
|
223
|
+
* would drift apart silently. What this shape does is keep an over-long or
|
|
224
|
+
* non-string value from reaching the service at all.
|
|
225
|
+
*/
|
|
226
|
+
color: z.ZodOptional<z.ZodString>;
|
|
210
227
|
/** Ordered, PRIMARY FIRST — see rule 2 above {@link ACCOUNT_CATEGORY_IDS}. */
|
|
211
228
|
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")[]>>;
|
|
212
229
|
/**
|
|
@@ -262,6 +279,7 @@ export declare const createAccountRequestSchema: z.ZodObject<{
|
|
|
262
279
|
bio?: string | undefined;
|
|
263
280
|
avatar?: string | undefined;
|
|
264
281
|
description?: string | undefined;
|
|
282
|
+
color?: string | undefined;
|
|
265
283
|
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;
|
|
266
284
|
isPrivateAccount?: boolean | undefined;
|
|
267
285
|
}, {
|
|
@@ -276,6 +294,7 @@ export declare const createAccountRequestSchema: z.ZodObject<{
|
|
|
276
294
|
bio?: string | undefined;
|
|
277
295
|
avatar?: string | undefined;
|
|
278
296
|
description?: string | undefined;
|
|
297
|
+
color?: string | undefined;
|
|
279
298
|
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;
|
|
280
299
|
isPrivateAccount?: boolean | undefined;
|
|
281
300
|
}>;
|
|
@@ -808,6 +808,7 @@ export declare const currentUserResponseSchema: z.ZodObject<{
|
|
|
808
808
|
kind?: "personal" | "organization" | "project" | "bot" | "channel" | undefined;
|
|
809
809
|
username?: string | undefined;
|
|
810
810
|
avatar?: string | null | undefined;
|
|
811
|
+
color?: string | null | undefined;
|
|
811
812
|
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;
|
|
812
813
|
id?: string | undefined;
|
|
813
814
|
publicKey?: string | undefined;
|
|
@@ -818,7 +819,6 @@ export declare const currentUserResponseSchema: z.ZodObject<{
|
|
|
818
819
|
phone?: string | undefined;
|
|
819
820
|
address?: string | undefined;
|
|
820
821
|
birthday?: string | undefined;
|
|
821
|
-
color?: string | null | undefined;
|
|
822
822
|
verified?: boolean | undefined;
|
|
823
823
|
languages?: string[] | undefined;
|
|
824
824
|
relationship?: UserRelationship | undefined;
|
|
@@ -832,6 +832,7 @@ export declare const currentUserResponseSchema: z.ZodObject<{
|
|
|
832
832
|
kind?: "personal" | "organization" | "project" | "bot" | "channel" | undefined;
|
|
833
833
|
username?: string | undefined;
|
|
834
834
|
avatar?: string | null | undefined;
|
|
835
|
+
color?: string | null | undefined;
|
|
835
836
|
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;
|
|
836
837
|
id?: string | undefined;
|
|
837
838
|
publicKey?: string | undefined;
|
|
@@ -842,7 +843,6 @@ export declare const currentUserResponseSchema: z.ZodObject<{
|
|
|
842
843
|
phone?: string | undefined;
|
|
843
844
|
address?: string | undefined;
|
|
844
845
|
birthday?: string | undefined;
|
|
845
|
-
color?: string | null | undefined;
|
|
846
846
|
verified?: boolean | undefined;
|
|
847
847
|
languages?: string[] | undefined;
|
|
848
848
|
relationship?: UserRelationship | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oxyhq/contracts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.32.0",
|
|
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",
|