@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.
Files changed (40) hide show
  1. package/dist/cjs/appAssertions.js +31 -2
  2. package/dist/cjs/client/appAssertions.js +10 -2
  3. package/dist/cjs/client/identityKeyHistory.js +15 -0
  4. package/dist/cjs/client/index.js +15 -4
  5. package/dist/cjs/client/platformSession.js +61 -0
  6. package/dist/cjs/client/userResponse.js +15 -1
  7. package/dist/cjs/identityKeyHistory.js +30 -0
  8. package/dist/cjs/index.js +19 -14
  9. package/dist/cjs/platformSession.js +104 -0
  10. package/dist/cjs/signIn.js +12 -2
  11. package/dist/cjs/userResponse.js +3 -1
  12. package/dist/esm/appAssertions.js +30 -1
  13. package/dist/esm/client/appAssertions.js +10 -2
  14. package/dist/esm/client/identityKeyHistory.js +12 -0
  15. package/dist/esm/client/index.js +3 -0
  16. package/dist/esm/client/platformSession.js +58 -0
  17. package/dist/esm/client/userResponse.js +14 -0
  18. package/dist/esm/identityKeyHistory.js +27 -0
  19. package/dist/esm/index.js +4 -1
  20. package/dist/esm/platformSession.js +97 -0
  21. package/dist/esm/signIn.js +12 -2
  22. package/dist/esm/userResponse.js +3 -1
  23. package/dist/types/appAssertions.d.ts +40 -1
  24. package/dist/types/client/appAssertions.d.ts +11 -4
  25. package/dist/types/client/identityKeyHistory.d.ts +13 -0
  26. package/dist/types/client/index.d.ts +6 -0
  27. package/dist/types/client/platformSession.d.ts +50 -0
  28. package/dist/types/client/userResponse.d.ts +7 -0
  29. package/dist/types/identityKeyHistory.d.ts +22 -0
  30. package/dist/types/index.d.ts +5 -1
  31. package/dist/types/inference/embeddings.d.ts +4 -4
  32. package/dist/types/inference/errors.d.ts +4 -4
  33. package/dist/types/inference/inbox.d.ts +2 -2
  34. package/dist/types/inference/realtime.d.ts +4 -4
  35. package/dist/types/inference/streamEvents.d.ts +4 -4
  36. package/dist/types/oxyRecordTypes.d.ts +1 -1
  37. package/dist/types/platformSession.d.ts +129 -0
  38. package/dist/types/signIn.d.ts +23 -2
  39. package/dist/types/userResponse.d.ts +18 -0
  40. package/package.json +2 -2
@@ -119,8 +119,18 @@ export interface EmailSignInLinkResponse {
119
119
  approved: true;
120
120
  }
121
121
  export declare const emailSignInLinkResponseSchema: z.ZodType<EmailSignInLinkResponse>;
122
- /** `POST /auth/signin/password` */
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
- /** `POST /auth/signin/second-factor` */
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.11.0",
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.8.1"
92
+ "@oxy.so/bloom": "17.15.0"
93
93
  }
94
94
  }