@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.
- package/dist/cjs/agency.js +5 -0
- package/dist/cjs/client/age.js +126 -0
- package/dist/cjs/client/index.js +15 -3
- package/dist/cjs/client/safety.js +10 -1
- package/dist/cjs/index.js +26 -14
- package/dist/cjs/safety.js +23 -1
- package/dist/cjs/signIn.js +9 -0
- package/dist/cjs/userResponse.js +15 -31
- package/dist/esm/agency.js +5 -0
- package/dist/esm/client/age.js +117 -0
- package/dist/esm/client/index.js +2 -1
- package/dist/esm/client/safety.js +9 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/safety.js +23 -1
- package/dist/esm/signIn.js +9 -0
- package/dist/esm/userResponse.js +15 -31
- package/dist/types/client/age.d.ts +94 -0
- package/dist/types/client/index.d.ts +3 -1
- package/dist/types/client/safety.d.ts +13 -0
- package/dist/types/externalIdentity.d.ts +5 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/inference/embeddings.d.ts +2 -2
- package/dist/types/inference/errors.d.ts +2 -2
- package/dist/types/inference/inbox.d.ts +1 -1
- package/dist/types/inference/realtime.d.ts +2 -2
- package/dist/types/inference/streamEvents.d.ts +2 -2
- package/dist/types/oxyRecordTypes.d.ts +1 -1
- package/dist/types/safety.d.ts +26 -0
- package/dist/types/signIn.d.ts +1 -0
- package/dist/types/userResponse.d.ts +21 -1
- package/package.json +2 -2
package/dist/types/signIn.d.ts
CHANGED
|
@@ -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 `
|
|
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.
|
|
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": "
|
|
92
|
+
"@oxy.so/bloom": "22.1.1"
|
|
93
93
|
}
|
|
94
94
|
}
|