@oxy.so/contracts 4.10.0 → 4.11.0-oxy-one.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.
@@ -1,3 +1,5 @@
1
+ /** Canonical profile/theme preset identities accepted by Oxy writes. */
2
+ export declare const USER_PROFILE_COLOR_PRESETS: readonly ["teal", "blue", "green", "amber", "red", "purple", "pink", "sky", "orange", "mint", "mono", "oxy"];
1
3
  /**
2
4
  * Canonical API user-response contracts.
3
5
  *
@@ -231,6 +233,28 @@ export declare const userResponseSchema: z.ZodObject<{
231
233
  * `GET /session/user/:sessionId`) and absent until the user sets it.
232
234
  */
233
235
  themePreference: z.ZodOptional<z.ZodType<ThemePreference, z.ZodTypeDef, ThemePreference>>;
236
+ personalization: z.ZodOptional<z.ZodObject<{
237
+ mentionMono: z.ZodObject<{
238
+ allowed: z.ZodBoolean;
239
+ expiresAt: z.ZodNullable<z.ZodString>;
240
+ }, "strict", z.ZodTypeAny, {
241
+ expiresAt: string | null;
242
+ allowed: boolean;
243
+ }, {
244
+ expiresAt: string | null;
245
+ allowed: boolean;
246
+ }>;
247
+ }, "strict", z.ZodTypeAny, {
248
+ mentionMono: {
249
+ expiresAt: string | null;
250
+ allowed: boolean;
251
+ };
252
+ }, {
253
+ mentionMono: {
254
+ expiresAt: string | null;
255
+ allowed: boolean;
256
+ };
257
+ }>>;
234
258
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
235
259
  /** MongoDB ObjectId as a string. Present on `formatUserResponse` output. */
236
260
  id: z.ZodOptional<z.ZodString>;
@@ -332,6 +356,28 @@ export declare const userResponseSchema: z.ZodObject<{
332
356
  * `GET /session/user/:sessionId`) and absent until the user sets it.
333
357
  */
334
358
  themePreference: z.ZodOptional<z.ZodType<ThemePreference, z.ZodTypeDef, ThemePreference>>;
359
+ personalization: z.ZodOptional<z.ZodObject<{
360
+ mentionMono: z.ZodObject<{
361
+ allowed: z.ZodBoolean;
362
+ expiresAt: z.ZodNullable<z.ZodString>;
363
+ }, "strict", z.ZodTypeAny, {
364
+ expiresAt: string | null;
365
+ allowed: boolean;
366
+ }, {
367
+ expiresAt: string | null;
368
+ allowed: boolean;
369
+ }>;
370
+ }, "strict", z.ZodTypeAny, {
371
+ mentionMono: {
372
+ expiresAt: string | null;
373
+ allowed: boolean;
374
+ };
375
+ }, {
376
+ mentionMono: {
377
+ expiresAt: string | null;
378
+ allowed: boolean;
379
+ };
380
+ }>>;
335
381
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
336
382
  /** MongoDB ObjectId as a string. Present on `formatUserResponse` output. */
337
383
  id: z.ZodOptional<z.ZodString>;
@@ -433,6 +479,28 @@ export declare const userResponseSchema: z.ZodObject<{
433
479
  * `GET /session/user/:sessionId`) and absent until the user sets it.
434
480
  */
435
481
  themePreference: z.ZodOptional<z.ZodType<ThemePreference, z.ZodTypeDef, ThemePreference>>;
482
+ personalization: z.ZodOptional<z.ZodObject<{
483
+ mentionMono: z.ZodObject<{
484
+ allowed: z.ZodBoolean;
485
+ expiresAt: z.ZodNullable<z.ZodString>;
486
+ }, "strict", z.ZodTypeAny, {
487
+ expiresAt: string | null;
488
+ allowed: boolean;
489
+ }, {
490
+ expiresAt: string | null;
491
+ allowed: boolean;
492
+ }>;
493
+ }, "strict", z.ZodTypeAny, {
494
+ mentionMono: {
495
+ expiresAt: string | null;
496
+ allowed: boolean;
497
+ };
498
+ }, {
499
+ mentionMono: {
500
+ expiresAt: string | null;
501
+ allowed: boolean;
502
+ };
503
+ }>>;
436
504
  }, z.ZodTypeAny, "passthrough">>;
437
505
  export type UserResponse = z.infer<typeof userResponseSchema>;
438
506
  export declare const userProfileUpdateSchema: z.ZodObject<{
@@ -763,6 +831,28 @@ export declare const currentUserResponseSchema: z.ZodObject<{
763
831
  * `GET /session/user/:sessionId`) and absent until the user sets it.
764
832
  */
765
833
  themePreference: z.ZodOptional<z.ZodType<ThemePreference, z.ZodTypeDef, ThemePreference>>;
834
+ personalization: z.ZodOptional<z.ZodObject<{
835
+ mentionMono: z.ZodObject<{
836
+ allowed: z.ZodBoolean;
837
+ expiresAt: z.ZodNullable<z.ZodString>;
838
+ }, "strict", z.ZodTypeAny, {
839
+ expiresAt: string | null;
840
+ allowed: boolean;
841
+ }, {
842
+ expiresAt: string | null;
843
+ allowed: boolean;
844
+ }>;
845
+ }, "strict", z.ZodTypeAny, {
846
+ mentionMono: {
847
+ expiresAt: string | null;
848
+ allowed: boolean;
849
+ };
850
+ }, {
851
+ mentionMono: {
852
+ expiresAt: string | null;
853
+ allowed: boolean;
854
+ };
855
+ }>>;
766
856
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
767
857
  /** MongoDB ObjectId as a string. Present on `formatUserResponse` output. */
768
858
  id: z.ZodOptional<z.ZodString>;
@@ -864,6 +954,28 @@ export declare const currentUserResponseSchema: z.ZodObject<{
864
954
  * `GET /session/user/:sessionId`) and absent until the user sets it.
865
955
  */
866
956
  themePreference: z.ZodOptional<z.ZodType<ThemePreference, z.ZodTypeDef, ThemePreference>>;
957
+ personalization: z.ZodOptional<z.ZodObject<{
958
+ mentionMono: z.ZodObject<{
959
+ allowed: z.ZodBoolean;
960
+ expiresAt: z.ZodNullable<z.ZodString>;
961
+ }, "strict", z.ZodTypeAny, {
962
+ expiresAt: string | null;
963
+ allowed: boolean;
964
+ }, {
965
+ expiresAt: string | null;
966
+ allowed: boolean;
967
+ }>;
968
+ }, "strict", z.ZodTypeAny, {
969
+ mentionMono: {
970
+ expiresAt: string | null;
971
+ allowed: boolean;
972
+ };
973
+ }, {
974
+ mentionMono: {
975
+ expiresAt: string | null;
976
+ allowed: boolean;
977
+ };
978
+ }>>;
867
979
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
868
980
  /** MongoDB ObjectId as a string. Present on `formatUserResponse` output. */
869
981
  id: z.ZodOptional<z.ZodString>;
@@ -965,6 +1077,28 @@ export declare const currentUserResponseSchema: z.ZodObject<{
965
1077
  * `GET /session/user/:sessionId`) and absent until the user sets it.
966
1078
  */
967
1079
  themePreference: z.ZodOptional<z.ZodType<ThemePreference, z.ZodTypeDef, ThemePreference>>;
1080
+ personalization: z.ZodOptional<z.ZodObject<{
1081
+ mentionMono: z.ZodObject<{
1082
+ allowed: z.ZodBoolean;
1083
+ expiresAt: z.ZodNullable<z.ZodString>;
1084
+ }, "strict", z.ZodTypeAny, {
1085
+ expiresAt: string | null;
1086
+ allowed: boolean;
1087
+ }, {
1088
+ expiresAt: string | null;
1089
+ allowed: boolean;
1090
+ }>;
1091
+ }, "strict", z.ZodTypeAny, {
1092
+ mentionMono: {
1093
+ expiresAt: string | null;
1094
+ allowed: boolean;
1095
+ };
1096
+ }, {
1097
+ mentionMono: {
1098
+ expiresAt: string | null;
1099
+ allowed: boolean;
1100
+ };
1101
+ }>>;
968
1102
  }, z.ZodTypeAny, "passthrough">>;
969
1103
  }, "strip", z.ZodTypeAny, {
970
1104
  data: {
@@ -989,6 +1123,12 @@ export declare const currentUserResponseSchema: z.ZodObject<{
989
1123
  languages?: string[] | undefined;
990
1124
  relationship?: UserRelationship | undefined;
991
1125
  themePreference?: ThemePreference | undefined;
1126
+ personalization?: {
1127
+ mentionMono: {
1128
+ expiresAt: string | null;
1129
+ allowed: boolean;
1130
+ };
1131
+ } | undefined;
992
1132
  } & {
993
1133
  [k: string]: unknown;
994
1134
  };
@@ -1015,6 +1155,12 @@ export declare const currentUserResponseSchema: z.ZodObject<{
1015
1155
  languages?: string[] | undefined;
1016
1156
  relationship?: UserRelationship | undefined;
1017
1157
  themePreference?: ThemePreference | undefined;
1158
+ personalization?: {
1159
+ mentionMono: {
1160
+ expiresAt: string | null;
1161
+ allowed: boolean;
1162
+ };
1163
+ } | undefined;
1018
1164
  } & {
1019
1165
  [k: string]: unknown;
1020
1166
  };
@@ -1130,6 +1276,28 @@ export declare const deviceLinkedSessionSchema: z.ZodObject<{
1130
1276
  * `GET /session/user/:sessionId`) and absent until the user sets it.
1131
1277
  */
1132
1278
  themePreference: z.ZodOptional<z.ZodType<ThemePreference, z.ZodTypeDef, ThemePreference>>;
1279
+ personalization: z.ZodOptional<z.ZodObject<{
1280
+ mentionMono: z.ZodObject<{
1281
+ allowed: z.ZodBoolean;
1282
+ expiresAt: z.ZodNullable<z.ZodString>;
1283
+ }, "strict", z.ZodTypeAny, {
1284
+ expiresAt: string | null;
1285
+ allowed: boolean;
1286
+ }, {
1287
+ expiresAt: string | null;
1288
+ allowed: boolean;
1289
+ }>;
1290
+ }, "strict", z.ZodTypeAny, {
1291
+ mentionMono: {
1292
+ expiresAt: string | null;
1293
+ allowed: boolean;
1294
+ };
1295
+ }, {
1296
+ mentionMono: {
1297
+ expiresAt: string | null;
1298
+ allowed: boolean;
1299
+ };
1300
+ }>>;
1133
1301
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1134
1302
  /** MongoDB ObjectId as a string. Present on `formatUserResponse` output. */
1135
1303
  id: z.ZodOptional<z.ZodString>;
@@ -1231,6 +1399,28 @@ export declare const deviceLinkedSessionSchema: z.ZodObject<{
1231
1399
  * `GET /session/user/:sessionId`) and absent until the user sets it.
1232
1400
  */
1233
1401
  themePreference: z.ZodOptional<z.ZodType<ThemePreference, z.ZodTypeDef, ThemePreference>>;
1402
+ personalization: z.ZodOptional<z.ZodObject<{
1403
+ mentionMono: z.ZodObject<{
1404
+ allowed: z.ZodBoolean;
1405
+ expiresAt: z.ZodNullable<z.ZodString>;
1406
+ }, "strict", z.ZodTypeAny, {
1407
+ expiresAt: string | null;
1408
+ allowed: boolean;
1409
+ }, {
1410
+ expiresAt: string | null;
1411
+ allowed: boolean;
1412
+ }>;
1413
+ }, "strict", z.ZodTypeAny, {
1414
+ mentionMono: {
1415
+ expiresAt: string | null;
1416
+ allowed: boolean;
1417
+ };
1418
+ }, {
1419
+ mentionMono: {
1420
+ expiresAt: string | null;
1421
+ allowed: boolean;
1422
+ };
1423
+ }>>;
1234
1424
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1235
1425
  /** MongoDB ObjectId as a string. Present on `formatUserResponse` output. */
1236
1426
  id: z.ZodOptional<z.ZodString>;
@@ -1332,6 +1522,28 @@ export declare const deviceLinkedSessionSchema: z.ZodObject<{
1332
1522
  * `GET /session/user/:sessionId`) and absent until the user sets it.
1333
1523
  */
1334
1524
  themePreference: z.ZodOptional<z.ZodType<ThemePreference, z.ZodTypeDef, ThemePreference>>;
1525
+ personalization: z.ZodOptional<z.ZodObject<{
1526
+ mentionMono: z.ZodObject<{
1527
+ allowed: z.ZodBoolean;
1528
+ expiresAt: z.ZodNullable<z.ZodString>;
1529
+ }, "strict", z.ZodTypeAny, {
1530
+ expiresAt: string | null;
1531
+ allowed: boolean;
1532
+ }, {
1533
+ expiresAt: string | null;
1534
+ allowed: boolean;
1535
+ }>;
1536
+ }, "strict", z.ZodTypeAny, {
1537
+ mentionMono: {
1538
+ expiresAt: string | null;
1539
+ allowed: boolean;
1540
+ };
1541
+ }, {
1542
+ mentionMono: {
1543
+ expiresAt: string | null;
1544
+ allowed: boolean;
1545
+ };
1546
+ }>>;
1335
1547
  }, z.ZodTypeAny, "passthrough">>>>;
1336
1548
  }, "strip", z.ZodTypeAny, {
1337
1549
  sessionId: string;
@@ -1436,6 +1648,28 @@ export declare const deviceLinkedSessionSchema: z.ZodObject<{
1436
1648
  * `GET /session/user/:sessionId`) and absent until the user sets it.
1437
1649
  */
1438
1650
  themePreference: z.ZodOptional<z.ZodType<ThemePreference, z.ZodTypeDef, ThemePreference>>;
1651
+ personalization: z.ZodOptional<z.ZodObject<{
1652
+ mentionMono: z.ZodObject<{
1653
+ allowed: z.ZodBoolean;
1654
+ expiresAt: z.ZodNullable<z.ZodString>;
1655
+ }, "strict", z.ZodTypeAny, {
1656
+ expiresAt: string | null;
1657
+ allowed: boolean;
1658
+ }, {
1659
+ expiresAt: string | null;
1660
+ allowed: boolean;
1661
+ }>;
1662
+ }, "strict", z.ZodTypeAny, {
1663
+ mentionMono: {
1664
+ expiresAt: string | null;
1665
+ allowed: boolean;
1666
+ };
1667
+ }, {
1668
+ mentionMono: {
1669
+ expiresAt: string | null;
1670
+ allowed: boolean;
1671
+ };
1672
+ }>>;
1439
1673
  }, z.ZodTypeAny, "passthrough"> | null | undefined;
1440
1674
  isCurrent?: boolean | undefined;
1441
1675
  }, {
@@ -1541,6 +1775,28 @@ export declare const deviceLinkedSessionSchema: z.ZodObject<{
1541
1775
  * `GET /session/user/:sessionId`) and absent until the user sets it.
1542
1776
  */
1543
1777
  themePreference: z.ZodOptional<z.ZodType<ThemePreference, z.ZodTypeDef, ThemePreference>>;
1778
+ personalization: z.ZodOptional<z.ZodObject<{
1779
+ mentionMono: z.ZodObject<{
1780
+ allowed: z.ZodBoolean;
1781
+ expiresAt: z.ZodNullable<z.ZodString>;
1782
+ }, "strict", z.ZodTypeAny, {
1783
+ expiresAt: string | null;
1784
+ allowed: boolean;
1785
+ }, {
1786
+ expiresAt: string | null;
1787
+ allowed: boolean;
1788
+ }>;
1789
+ }, "strict", z.ZodTypeAny, {
1790
+ mentionMono: {
1791
+ expiresAt: string | null;
1792
+ allowed: boolean;
1793
+ };
1794
+ }, {
1795
+ mentionMono: {
1796
+ expiresAt: string | null;
1797
+ allowed: boolean;
1798
+ };
1799
+ }>>;
1544
1800
  }, z.ZodTypeAny, "passthrough"> | null | undefined;
1545
1801
  isCurrent?: boolean | undefined;
1546
1802
  }>;
@@ -1650,6 +1906,28 @@ export declare const deviceLinkedSessionsResponseSchema: z.ZodArray<z.ZodObject<
1650
1906
  * `GET /session/user/:sessionId`) and absent until the user sets it.
1651
1907
  */
1652
1908
  themePreference: z.ZodOptional<z.ZodType<ThemePreference, z.ZodTypeDef, ThemePreference>>;
1909
+ personalization: z.ZodOptional<z.ZodObject<{
1910
+ mentionMono: z.ZodObject<{
1911
+ allowed: z.ZodBoolean;
1912
+ expiresAt: z.ZodNullable<z.ZodString>;
1913
+ }, "strict", z.ZodTypeAny, {
1914
+ expiresAt: string | null;
1915
+ allowed: boolean;
1916
+ }, {
1917
+ expiresAt: string | null;
1918
+ allowed: boolean;
1919
+ }>;
1920
+ }, "strict", z.ZodTypeAny, {
1921
+ mentionMono: {
1922
+ expiresAt: string | null;
1923
+ allowed: boolean;
1924
+ };
1925
+ }, {
1926
+ mentionMono: {
1927
+ expiresAt: string | null;
1928
+ allowed: boolean;
1929
+ };
1930
+ }>>;
1653
1931
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1654
1932
  /** MongoDB ObjectId as a string. Present on `formatUserResponse` output. */
1655
1933
  id: z.ZodOptional<z.ZodString>;
@@ -1751,6 +2029,28 @@ export declare const deviceLinkedSessionsResponseSchema: z.ZodArray<z.ZodObject<
1751
2029
  * `GET /session/user/:sessionId`) and absent until the user sets it.
1752
2030
  */
1753
2031
  themePreference: z.ZodOptional<z.ZodType<ThemePreference, z.ZodTypeDef, ThemePreference>>;
2032
+ personalization: z.ZodOptional<z.ZodObject<{
2033
+ mentionMono: z.ZodObject<{
2034
+ allowed: z.ZodBoolean;
2035
+ expiresAt: z.ZodNullable<z.ZodString>;
2036
+ }, "strict", z.ZodTypeAny, {
2037
+ expiresAt: string | null;
2038
+ allowed: boolean;
2039
+ }, {
2040
+ expiresAt: string | null;
2041
+ allowed: boolean;
2042
+ }>;
2043
+ }, "strict", z.ZodTypeAny, {
2044
+ mentionMono: {
2045
+ expiresAt: string | null;
2046
+ allowed: boolean;
2047
+ };
2048
+ }, {
2049
+ mentionMono: {
2050
+ expiresAt: string | null;
2051
+ allowed: boolean;
2052
+ };
2053
+ }>>;
1754
2054
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1755
2055
  /** MongoDB ObjectId as a string. Present on `formatUserResponse` output. */
1756
2056
  id: z.ZodOptional<z.ZodString>;
@@ -1852,6 +2152,28 @@ export declare const deviceLinkedSessionsResponseSchema: z.ZodArray<z.ZodObject<
1852
2152
  * `GET /session/user/:sessionId`) and absent until the user sets it.
1853
2153
  */
1854
2154
  themePreference: z.ZodOptional<z.ZodType<ThemePreference, z.ZodTypeDef, ThemePreference>>;
2155
+ personalization: z.ZodOptional<z.ZodObject<{
2156
+ mentionMono: z.ZodObject<{
2157
+ allowed: z.ZodBoolean;
2158
+ expiresAt: z.ZodNullable<z.ZodString>;
2159
+ }, "strict", z.ZodTypeAny, {
2160
+ expiresAt: string | null;
2161
+ allowed: boolean;
2162
+ }, {
2163
+ expiresAt: string | null;
2164
+ allowed: boolean;
2165
+ }>;
2166
+ }, "strict", z.ZodTypeAny, {
2167
+ mentionMono: {
2168
+ expiresAt: string | null;
2169
+ allowed: boolean;
2170
+ };
2171
+ }, {
2172
+ mentionMono: {
2173
+ expiresAt: string | null;
2174
+ allowed: boolean;
2175
+ };
2176
+ }>>;
1855
2177
  }, z.ZodTypeAny, "passthrough">>>>;
1856
2178
  }, "strip", z.ZodTypeAny, {
1857
2179
  sessionId: string;
@@ -1956,6 +2278,28 @@ export declare const deviceLinkedSessionsResponseSchema: z.ZodArray<z.ZodObject<
1956
2278
  * `GET /session/user/:sessionId`) and absent until the user sets it.
1957
2279
  */
1958
2280
  themePreference: z.ZodOptional<z.ZodType<ThemePreference, z.ZodTypeDef, ThemePreference>>;
2281
+ personalization: z.ZodOptional<z.ZodObject<{
2282
+ mentionMono: z.ZodObject<{
2283
+ allowed: z.ZodBoolean;
2284
+ expiresAt: z.ZodNullable<z.ZodString>;
2285
+ }, "strict", z.ZodTypeAny, {
2286
+ expiresAt: string | null;
2287
+ allowed: boolean;
2288
+ }, {
2289
+ expiresAt: string | null;
2290
+ allowed: boolean;
2291
+ }>;
2292
+ }, "strict", z.ZodTypeAny, {
2293
+ mentionMono: {
2294
+ expiresAt: string | null;
2295
+ allowed: boolean;
2296
+ };
2297
+ }, {
2298
+ mentionMono: {
2299
+ expiresAt: string | null;
2300
+ allowed: boolean;
2301
+ };
2302
+ }>>;
1959
2303
  }, z.ZodTypeAny, "passthrough"> | null | undefined;
1960
2304
  isCurrent?: boolean | undefined;
1961
2305
  }, {
@@ -2061,6 +2405,28 @@ export declare const deviceLinkedSessionsResponseSchema: z.ZodArray<z.ZodObject<
2061
2405
  * `GET /session/user/:sessionId`) and absent until the user sets it.
2062
2406
  */
2063
2407
  themePreference: z.ZodOptional<z.ZodType<ThemePreference, z.ZodTypeDef, ThemePreference>>;
2408
+ personalization: z.ZodOptional<z.ZodObject<{
2409
+ mentionMono: z.ZodObject<{
2410
+ allowed: z.ZodBoolean;
2411
+ expiresAt: z.ZodNullable<z.ZodString>;
2412
+ }, "strict", z.ZodTypeAny, {
2413
+ expiresAt: string | null;
2414
+ allowed: boolean;
2415
+ }, {
2416
+ expiresAt: string | null;
2417
+ allowed: boolean;
2418
+ }>;
2419
+ }, "strict", z.ZodTypeAny, {
2420
+ mentionMono: {
2421
+ expiresAt: string | null;
2422
+ allowed: boolean;
2423
+ };
2424
+ }, {
2425
+ mentionMono: {
2426
+ expiresAt: string | null;
2427
+ allowed: boolean;
2428
+ };
2429
+ }>>;
2064
2430
  }, z.ZodTypeAny, "passthrough"> | null | undefined;
2065
2431
  isCurrent?: boolean | undefined;
2066
2432
  }>, "many">;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxy.so/contracts",
3
- "version": "4.10.0",
3
+ "version": "4.11.0-oxy-one.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",