@oxyhq/contracts 0.13.2 → 0.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.
@@ -57,7 +57,7 @@ exports.userNameSchema = zod_1.z
57
57
  *
58
58
  * `.passthrough()` keeps the large tail of profile fields
59
59
  * (`privacySettings`, `locations`, `links`, `linksMetadata`, `bio`,
60
- * `description`, `language`, `verified`, timestamps, …) available to callers
60
+ * `description`, `languages`, `verified`, timestamps, …) available to callers
61
61
  * that need them without enumerating every nested shape here — the load-bearing
62
62
  * identity/display fields are the ones we pin precisely.
63
63
  */
@@ -79,7 +79,13 @@ exports.userResponseSchema = zod_1.z
79
79
  color: zod_1.z.string().nullable().optional(),
80
80
  name: exports.userNameSchema,
81
81
  verified: zod_1.z.boolean().optional(),
82
- language: zod_1.z.string().optional(),
82
+ /**
83
+ * The account's languages as full BCP-47 locales (`language-REGION`,
84
+ * e.g. `es-ES`, `en-US`, `pt-BR`), ordered with the PRIMARY (UI) locale
85
+ * first. `languages[0]` is the primary locale — there is no singular
86
+ * `language` field.
87
+ */
88
+ languages: zod_1.z.array(zod_1.z.string()).optional(),
83
89
  /**
84
90
  * The account's self-sovereign identifier
85
91
  * (`did:web:<FEDERATION_DOMAIN>:u:<userId>`). Surfaced as a `User`
@@ -126,7 +132,12 @@ exports.userProfileUpdateSchema = zod_1.z
126
132
  id: zod_1.z.string().optional(),
127
133
  }))
128
134
  .optional(),
129
- language: zod_1.z.string().optional(),
135
+ /**
136
+ * Ordered account locales (`language-REGION`), primary first. Replaces
137
+ * the eliminated singular `language`; `languages[0]` is the primary UI
138
+ * locale.
139
+ */
140
+ languages: zod_1.z.array(zod_1.z.string()).optional(),
130
141
  accountExpiresAfterInactivityDays: zod_1.z.number().nullable().optional(),
131
142
  notificationPreferences: zod_1.z.record(zod_1.z.unknown()).optional(),
132
143
  userPreferences: zod_1.z.record(zod_1.z.unknown()).optional(),