@oxy.so/contracts 7.1.0 → 7.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.
@@ -186,6 +186,7 @@ export declare const signUpRequestSchema: z.ZodObject<{
186
186
  utmTerm: z.ZodOptional<z.ZodString>;
187
187
  fbclid: z.ZodOptional<z.ZodString>;
188
188
  }, z.core.$strict>>;
189
+ dateOfBirth: z.ZodOptional<z.ZodString>;
189
190
  }, z.core.$strict>;
190
191
  export type SignUpRequest = z.infer<typeof signUpRequestSchema>;
191
192
  /** A first factor passed and the account has an authenticator: no session yet. */
@@ -107,7 +107,7 @@ export declare const themePreferenceSchema: z.ZodType<ThemePreference>;
107
107
  * and not after today (comparing the zero-padded ISO strings directly is
108
108
  * a valid, simpler stand-in for a numeric comparison here, since two
109
109
  * `YYYY-MM-DD` strings of equal length sort exactly the way their dates
110
- * do). "Today" is UTC — see `computeIsAdult` in `user.service.ts` for why
110
+ * do). "Today" is UTC — see `ageInYears` in `client/age.ts` for why
111
111
  * a date with no timezone of its own is evaluated in UTC rather than any
112
112
  * particular caller's local zone.
113
113
  */
@@ -140,6 +140,11 @@ export declare const userResponseSchema: z.ZodObject<{
140
140
  birthday: z.ZodOptional<z.ZodString>;
141
141
  dateOfBirth: z.ZodOptional<z.ZodString>;
142
142
  isAdult: z.ZodOptional<z.ZodBoolean>;
143
+ ageBand: z.ZodOptional<z.ZodEnum<{
144
+ under13: "under13";
145
+ teen: "teen";
146
+ adult: "adult";
147
+ }>>;
143
148
  avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
144
149
  color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
145
150
  name: z.ZodType<UserNameResponse, unknown, z.core.$ZodTypeInternals<UserNameResponse, unknown>>;
@@ -301,6 +306,11 @@ export declare const currentUserResponseSchema: z.ZodObject<{
301
306
  birthday: z.ZodOptional<z.ZodString>;
302
307
  dateOfBirth: z.ZodOptional<z.ZodString>;
303
308
  isAdult: z.ZodOptional<z.ZodBoolean>;
309
+ ageBand: z.ZodOptional<z.ZodEnum<{
310
+ under13: "under13";
311
+ teen: "teen";
312
+ adult: "adult";
313
+ }>>;
304
314
  avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
305
315
  color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
306
316
  name: z.ZodType<UserNameResponse, unknown, z.core.$ZodTypeInternals<UserNameResponse, unknown>>;
@@ -403,6 +413,11 @@ export declare const deviceLinkedSessionSchema: z.ZodObject<{
403
413
  birthday: z.ZodOptional<z.ZodString>;
404
414
  dateOfBirth: z.ZodOptional<z.ZodString>;
405
415
  isAdult: z.ZodOptional<z.ZodBoolean>;
416
+ ageBand: z.ZodOptional<z.ZodEnum<{
417
+ under13: "under13";
418
+ teen: "teen";
419
+ adult: "adult";
420
+ }>>;
406
421
  avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
407
422
  color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
408
423
  name: z.ZodType<UserNameResponse, unknown, z.core.$ZodTypeInternals<UserNameResponse, unknown>>;
@@ -500,6 +515,11 @@ export declare const deviceLinkedSessionsResponseSchema: z.ZodArray<z.ZodObject<
500
515
  birthday: z.ZodOptional<z.ZodString>;
501
516
  dateOfBirth: z.ZodOptional<z.ZodString>;
502
517
  isAdult: z.ZodOptional<z.ZodBoolean>;
518
+ ageBand: z.ZodOptional<z.ZodEnum<{
519
+ under13: "under13";
520
+ teen: "teen";
521
+ adult: "adult";
522
+ }>>;
503
523
  avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
504
524
  color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
505
525
  name: z.ZodType<UserNameResponse, unknown, z.core.$ZodTypeInternals<UserNameResponse, unknown>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxy.so/contracts",
3
- "version": "7.1.0",
3
+ "version": "7.3.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",
@@ -89,6 +89,6 @@
89
89
  "@types/node": "^26.6.6",
90
90
  "jest": "^30.5.2",
91
91
  "typescript": "~6.0.3",
92
- "@oxy.so/bloom": "21.0.0"
92
+ "@oxy.so/bloom": "22.1.1"
93
93
  }
94
94
  }