@oxy.so/contracts 6.11.0 → 6.13.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/appAssertions.js +31 -2
- package/dist/cjs/client/appAssertions.js +10 -2
- package/dist/cjs/client/identityKeyHistory.js +15 -0
- package/dist/cjs/client/index.js +15 -4
- package/dist/cjs/client/platformSession.js +61 -0
- package/dist/cjs/client/userResponse.js +15 -1
- package/dist/cjs/identityKeyHistory.js +30 -0
- package/dist/cjs/index.js +19 -14
- package/dist/cjs/platformSession.js +104 -0
- package/dist/cjs/signIn.js +12 -2
- package/dist/cjs/userResponse.js +3 -1
- package/dist/esm/appAssertions.js +30 -1
- package/dist/esm/client/appAssertions.js +10 -2
- package/dist/esm/client/identityKeyHistory.js +12 -0
- package/dist/esm/client/index.js +3 -0
- package/dist/esm/client/platformSession.js +58 -0
- package/dist/esm/client/userResponse.js +14 -0
- package/dist/esm/identityKeyHistory.js +27 -0
- package/dist/esm/index.js +4 -1
- package/dist/esm/platformSession.js +97 -0
- package/dist/esm/signIn.js +12 -2
- package/dist/esm/userResponse.js +3 -1
- package/dist/types/appAssertions.d.ts +40 -1
- package/dist/types/client/appAssertions.d.ts +11 -4
- package/dist/types/client/identityKeyHistory.d.ts +13 -0
- package/dist/types/client/index.d.ts +6 -0
- package/dist/types/client/platformSession.d.ts +50 -0
- package/dist/types/client/userResponse.d.ts +7 -0
- package/dist/types/identityKeyHistory.d.ts +22 -0
- package/dist/types/index.d.ts +5 -1
- package/dist/types/inference/embeddings.d.ts +4 -4
- package/dist/types/inference/errors.d.ts +4 -4
- package/dist/types/inference/inbox.d.ts +2 -2
- package/dist/types/inference/realtime.d.ts +4 -4
- package/dist/types/inference/streamEvents.d.ts +4 -4
- package/dist/types/oxyRecordTypes.d.ts +1 -1
- package/dist/types/platformSession.d.ts +129 -0
- package/dist/types/signIn.d.ts +23 -2
- package/dist/types/userResponse.d.ts +18 -0
- package/package.json +2 -2
package/dist/types/signIn.d.ts
CHANGED
|
@@ -119,8 +119,18 @@ export interface EmailSignInLinkResponse {
|
|
|
119
119
|
approved: true;
|
|
120
120
|
}
|
|
121
121
|
export declare const emailSignInLinkResponseSchema: z.ZodType<EmailSignInLinkResponse>;
|
|
122
|
-
/**
|
|
122
|
+
/**
|
|
123
|
+
* `POST /auth/signin/password`. `platformClient` is a platform's own sign-in
|
|
124
|
+
* (ADR 0058): see `platformClientSchema`.
|
|
125
|
+
*/
|
|
123
126
|
export declare const passwordSignInRequestSchema: z.ZodObject<{
|
|
127
|
+
platformClient: z.ZodOptional<z.ZodObject<{
|
|
128
|
+
platform: z.ZodEnum<{
|
|
129
|
+
oxyos: "oxyos";
|
|
130
|
+
astro: "astro";
|
|
131
|
+
}>;
|
|
132
|
+
clientId: z.ZodString;
|
|
133
|
+
}, z.core.$strict>>;
|
|
124
134
|
deviceName: z.ZodOptional<z.ZodString>;
|
|
125
135
|
deviceFingerprint: z.ZodOptional<z.ZodString>;
|
|
126
136
|
device: z.ZodOptional<z.ZodObject<{
|
|
@@ -131,8 +141,19 @@ export declare const passwordSignInRequestSchema: z.ZodObject<{
|
|
|
131
141
|
password: z.ZodString;
|
|
132
142
|
}, z.core.$strict>;
|
|
133
143
|
export type PasswordSignInRequest = z.infer<typeof passwordSignInRequestSchema>;
|
|
134
|
-
/**
|
|
144
|
+
/**
|
|
145
|
+
* `POST /auth/signin/second-factor`. A challenge a platform's sign-in received
|
|
146
|
+
* is completed naming the SAME `platformClient`, and one that named none
|
|
147
|
+
* naming none.
|
|
148
|
+
*/
|
|
135
149
|
export declare const secondFactorSignInRequestSchema: z.ZodObject<{
|
|
150
|
+
platformClient: z.ZodOptional<z.ZodObject<{
|
|
151
|
+
platform: z.ZodEnum<{
|
|
152
|
+
oxyos: "oxyos";
|
|
153
|
+
astro: "astro";
|
|
154
|
+
}>;
|
|
155
|
+
clientId: z.ZodString;
|
|
156
|
+
}, z.core.$strict>>;
|
|
136
157
|
deviceName: z.ZodOptional<z.ZodString>;
|
|
137
158
|
deviceFingerprint: z.ZodOptional<z.ZodString>;
|
|
138
159
|
device: z.ZodOptional<z.ZodObject<{
|
|
@@ -221,6 +221,15 @@ export declare const userResponseSchema: z.ZodObject<{
|
|
|
221
221
|
}, z.core.$strict>>;
|
|
222
222
|
}, z.core.$loose>;
|
|
223
223
|
export type UserResponse = z.infer<typeof userResponseSchema>;
|
|
224
|
+
export declare const pronounsSchema: z.ZodEnum<{
|
|
225
|
+
unspecified: "unspecified";
|
|
226
|
+
he_him: "he_him";
|
|
227
|
+
she_her: "she_her";
|
|
228
|
+
they_them: "they_them";
|
|
229
|
+
he_they: "he_they";
|
|
230
|
+
she_they: "she_they";
|
|
231
|
+
it_its: "it_its";
|
|
232
|
+
}>;
|
|
224
233
|
export declare const userProfileUpdateSchema: z.ZodObject<{
|
|
225
234
|
name: z.ZodOptional<z.ZodObject<{
|
|
226
235
|
first: z.ZodOptional<z.ZodString>;
|
|
@@ -232,6 +241,15 @@ export declare const userProfileUpdateSchema: z.ZodObject<{
|
|
|
232
241
|
avatar: z.ZodOptional<z.ZodString>;
|
|
233
242
|
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
234
243
|
bio: z.ZodOptional<z.ZodString>;
|
|
244
|
+
pronouns: z.ZodOptional<z.ZodEnum<{
|
|
245
|
+
unspecified: "unspecified";
|
|
246
|
+
he_him: "he_him";
|
|
247
|
+
she_her: "she_her";
|
|
248
|
+
they_them: "they_them";
|
|
249
|
+
he_they: "he_they";
|
|
250
|
+
she_they: "she_they";
|
|
251
|
+
it_its: "it_its";
|
|
252
|
+
}>>;
|
|
235
253
|
description: z.ZodOptional<z.ZodString>;
|
|
236
254
|
phone: z.ZodOptional<z.ZodString>;
|
|
237
255
|
address: z.ZodOptional<z.ZodString>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oxy.so/contracts",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.13.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": "17.
|
|
92
|
+
"@oxy.so/bloom": "17.15.0"
|
|
93
93
|
}
|
|
94
94
|
}
|