@oxy.so/contracts 4.11.0-oxy-one.0 → 4.11.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 (98) hide show
  1. package/dist/cjs/.tsbuildinfo +1 -1
  2. package/dist/cjs/accountGraph.js +5 -3
  3. package/dist/cjs/agency.js +178 -96
  4. package/dist/cjs/agentKeys.js +80 -26
  5. package/dist/cjs/capabilityBindings.js +2 -2
  6. package/dist/cjs/capabilityInvocation.js +3 -1
  7. package/dist/cjs/commonsSignIn.js +2 -2
  8. package/dist/cjs/deviceSession.js +5 -1
  9. package/dist/cjs/email/messages.js +70 -4
  10. package/dist/cjs/emailAgentContext.js +16 -8
  11. package/dist/cjs/externalIdentity.js +30 -12
  12. package/dist/cjs/identity.js +14 -6
  13. package/dist/cjs/identityLink.js +7 -2
  14. package/dist/cjs/identityProof.js +2 -1
  15. package/dist/cjs/index.js +5 -3
  16. package/dist/cjs/inference/catalogue.js +2 -12
  17. package/dist/cjs/inference/decisions.js +102 -83
  18. package/dist/cjs/inference/economics.js +15 -5
  19. package/dist/cjs/inference/embeddings.js +44 -6
  20. package/dist/cjs/inference/inbox.js +33 -2
  21. package/dist/cjs/inference/providerConnection.js +21 -6
  22. package/dist/cjs/inference/realtime.js +114 -107
  23. package/dist/cjs/inference/scopedExecution.js +12 -12
  24. package/dist/cjs/inference/usage.js +2 -9
  25. package/dist/cjs/notifications.js +25 -5
  26. package/dist/cjs/oauth.js +30 -14
  27. package/dist/cjs/oxyRecordTypes.js +2 -2
  28. package/dist/cjs/products/access.js +146 -57
  29. package/dist/cjs/products/billing.js +71 -17
  30. package/dist/cjs/products/checkout.js +24 -6
  31. package/dist/cjs/products/plans.js +22 -7
  32. package/dist/cjs/recommendations.js +4 -6
  33. package/dist/cjs/reputation.js +3 -6
  34. package/dist/cjs/sessionStatus.js +1 -6
  35. package/dist/cjs/signIn.js +17 -4
  36. package/dist/cjs/transparency.js +3 -1
  37. package/dist/cjs/updates.js +2 -4
  38. package/dist/cjs/userResponse.js +27 -7
  39. package/dist/cjs/username.js +3 -1
  40. package/dist/esm/.tsbuildinfo +1 -1
  41. package/dist/esm/accountGraph.js +5 -3
  42. package/dist/esm/agency.js +178 -96
  43. package/dist/esm/agentKeys.js +80 -26
  44. package/dist/esm/capabilityBindings.js +2 -2
  45. package/dist/esm/capabilityInvocation.js +3 -1
  46. package/dist/esm/commonsSignIn.js +2 -2
  47. package/dist/esm/deviceSession.js +5 -1
  48. package/dist/esm/email/messages.js +69 -3
  49. package/dist/esm/emailAgentContext.js +16 -8
  50. package/dist/esm/externalIdentity.js +30 -12
  51. package/dist/esm/identity.js +14 -6
  52. package/dist/esm/identityLink.js +7 -2
  53. package/dist/esm/identityProof.js +2 -1
  54. package/dist/esm/index.js +7 -7
  55. package/dist/esm/inference/aliaModelRelease.js +1 -1
  56. package/dist/esm/inference/catalogue.js +3 -13
  57. package/dist/esm/inference/decisions.js +108 -89
  58. package/dist/esm/inference/economics.js +16 -6
  59. package/dist/esm/inference/embeddings.js +44 -6
  60. package/dist/esm/inference/inbox.js +32 -1
  61. package/dist/esm/inference/providerConnection.js +21 -6
  62. package/dist/esm/inference/realtime.js +123 -116
  63. package/dist/esm/inference/scopedExecution.js +15 -15
  64. package/dist/esm/inference/usage.js +2 -9
  65. package/dist/esm/notifications.js +25 -5
  66. package/dist/esm/oauth.js +30 -14
  67. package/dist/esm/oxyRecordTypes.js +2 -2
  68. package/dist/esm/products/access.js +146 -57
  69. package/dist/esm/products/billing.js +71 -17
  70. package/dist/esm/products/checkout.js +24 -6
  71. package/dist/esm/products/plans.js +22 -7
  72. package/dist/esm/recommendations.js +4 -6
  73. package/dist/esm/reputation.js +3 -6
  74. package/dist/esm/sessionStatus.js +1 -6
  75. package/dist/esm/signIn.js +17 -4
  76. package/dist/esm/transparency.js +3 -1
  77. package/dist/esm/updates.js +2 -4
  78. package/dist/esm/userResponse.js +27 -7
  79. package/dist/esm/username.js +3 -1
  80. package/dist/types/.tsbuildinfo +1 -1
  81. package/dist/types/accountGraph.d.ts +1 -1
  82. package/dist/types/commonsSignIn.d.ts +2 -2
  83. package/dist/types/email/messages.d.ts +208 -2
  84. package/dist/types/identity.d.ts +1 -1
  85. package/dist/types/index.d.ts +8 -8
  86. package/dist/types/inference/decisions.d.ts +1 -1
  87. package/dist/types/inference/inbox.d.ts +129 -5
  88. package/dist/types/inference/realtime.d.ts +1 -1
  89. package/dist/types/inference/scopedExecution.d.ts +1 -1
  90. package/dist/types/moderationReputation.d.ts +1 -1
  91. package/dist/types/oxyRecordTypes.d.ts +2 -2
  92. package/dist/types/products/access.d.ts +102 -102
  93. package/dist/types/products/checkout.d.ts +3 -3
  94. package/dist/types/products/plans.d.ts +40 -40
  95. package/dist/types/reputation.d.ts +4 -4
  96. package/dist/types/updates.d.ts +1 -1
  97. package/dist/types/userResponse.d.ts +22 -23
  98. package/package.json +1 -2
@@ -28,15 +28,15 @@ export declare const personalPlanCheckoutResultSchema: z.ZodDiscriminatedUnion<"
28
28
  }>, z.ZodObject<{
29
29
  state: z.ZodLiteral<"pending">;
30
30
  intentId: z.ZodString;
31
- checkoutUrl: z.ZodString;
31
+ checkoutUrl: z.ZodOptional<z.ZodString>;
32
32
  }, "strict", z.ZodTypeAny, {
33
33
  state: "pending";
34
34
  intentId: string;
35
- checkoutUrl: string;
35
+ checkoutUrl?: string | undefined;
36
36
  }, {
37
37
  state: "pending";
38
38
  intentId: string;
39
- checkoutUrl: string;
39
+ checkoutUrl?: string | undefined;
40
40
  }>, z.ZodObject<{
41
41
  state: z.ZodLiteral<"closed">;
42
42
  intentId: z.ZodString;
@@ -62,13 +62,13 @@ export declare const personalPlanCatalogueSchema: z.ZodEffects<z.ZodObject<{
62
62
  productId: z.ZodString;
63
63
  key: z.ZodString;
64
64
  }, "strict", z.ZodTypeAny, {
65
- productId: string;
66
65
  kind: "capability";
67
66
  key: string;
68
- }, {
69
67
  productId: string;
68
+ }, {
70
69
  kind: "capability";
71
70
  key: string;
71
+ productId: string;
72
72
  }>, z.ZodObject<{
73
73
  kind: z.ZodLiteral<"quota">;
74
74
  productId: z.ZodString;
@@ -77,70 +77,70 @@ export declare const personalPlanCatalogueSchema: z.ZodEffects<z.ZodObject<{
77
77
  included: z.ZodNumber;
78
78
  combination: z.ZodEnum<["maximum", "sum", "exclusive"]>;
79
79
  }, "strict", z.ZodTypeAny, {
80
- productId: string;
81
80
  kind: "quota";
82
81
  key: string;
83
82
  unit: string;
84
83
  included: number;
84
+ productId: string;
85
85
  combination: "maximum" | "sum" | "exclusive";
86
86
  }, {
87
- productId: string;
88
87
  kind: "quota";
89
88
  key: string;
90
89
  unit: string;
91
90
  included: number;
91
+ productId: string;
92
92
  combination: "maximum" | "sum" | "exclusive";
93
93
  }>]>;
94
94
  }, "strict", z.ZodTypeAny, {
95
+ displayName: string;
95
96
  benefit: {
96
- productId: string;
97
97
  kind: "capability";
98
98
  key: string;
99
- } | {
100
99
  productId: string;
100
+ } | {
101
101
  kind: "quota";
102
102
  key: string;
103
103
  unit: string;
104
104
  included: number;
105
+ productId: string;
105
106
  combination: "maximum" | "sum" | "exclusive";
106
107
  };
107
- displayName: string;
108
108
  }, {
109
+ displayName: string;
109
110
  benefit: {
110
- productId: string;
111
111
  kind: "capability";
112
112
  key: string;
113
- } | {
114
113
  productId: string;
114
+ } | {
115
115
  kind: "quota";
116
116
  key: string;
117
117
  unit: string;
118
118
  included: number;
119
+ productId: string;
119
120
  combination: "maximum" | "sum" | "exclusive";
120
121
  };
121
- displayName: string;
122
122
  }>, "many">;
123
123
  }, "strict", z.ZodTypeAny, {
124
+ displayName: string;
124
125
  kind: "oxy_one";
126
+ audience: "personal";
125
127
  benefits: {
128
+ displayName: string;
126
129
  benefit: {
127
- productId: string;
128
130
  kind: "capability";
129
131
  key: string;
130
- } | {
131
132
  productId: string;
133
+ } | {
132
134
  kind: "quota";
133
135
  key: string;
134
136
  unit: string;
135
137
  included: number;
138
+ productId: string;
136
139
  combination: "maximum" | "sum" | "exclusive";
137
140
  };
138
- displayName: string;
139
141
  }[];
140
142
  offerId: string;
141
143
  offerVersion: number;
142
- displayName: string;
143
- audience: "personal";
144
144
  price?: {
145
145
  currency: string;
146
146
  amountMinorUnits: number;
@@ -150,26 +150,26 @@ export declare const personalPlanCatalogueSchema: z.ZodEffects<z.ZodObject<{
150
150
  merchantTotal: "final";
151
151
  } | undefined;
152
152
  }, {
153
+ displayName: string;
153
154
  kind: "oxy_one";
155
+ audience: "personal";
154
156
  benefits: {
157
+ displayName: string;
155
158
  benefit: {
156
- productId: string;
157
159
  kind: "capability";
158
160
  key: string;
159
- } | {
160
161
  productId: string;
162
+ } | {
161
163
  kind: "quota";
162
164
  key: string;
163
165
  unit: string;
164
166
  included: number;
167
+ productId: string;
165
168
  combination: "maximum" | "sum" | "exclusive";
166
169
  };
167
- displayName: string;
168
170
  }[];
169
171
  offerId: string;
170
172
  offerVersion: number;
171
- displayName: string;
172
- audience: "personal";
173
173
  price?: {
174
174
  currency: string;
175
175
  amountMinorUnits: number;
@@ -184,26 +184,26 @@ export declare const personalPlanCatalogueSchema: z.ZodEffects<z.ZodObject<{
184
184
  state: "unconfigured" | "configured";
185
185
  purchase: "unavailable";
186
186
  plans: {
187
+ displayName: string;
187
188
  kind: "oxy_one";
189
+ audience: "personal";
188
190
  benefits: {
191
+ displayName: string;
189
192
  benefit: {
190
- productId: string;
191
193
  kind: "capability";
192
194
  key: string;
193
- } | {
194
195
  productId: string;
196
+ } | {
195
197
  kind: "quota";
196
198
  key: string;
197
199
  unit: string;
198
200
  included: number;
201
+ productId: string;
199
202
  combination: "maximum" | "sum" | "exclusive";
200
203
  };
201
- displayName: string;
202
204
  }[];
203
205
  offerId: string;
204
206
  offerVersion: number;
205
- displayName: string;
206
- audience: "personal";
207
207
  price?: {
208
208
  currency: string;
209
209
  amountMinorUnits: number;
@@ -218,26 +218,26 @@ export declare const personalPlanCatalogueSchema: z.ZodEffects<z.ZodObject<{
218
218
  state: "unconfigured" | "configured";
219
219
  purchase: "unavailable";
220
220
  plans: {
221
+ displayName: string;
221
222
  kind: "oxy_one";
223
+ audience: "personal";
222
224
  benefits: {
225
+ displayName: string;
223
226
  benefit: {
224
- productId: string;
225
227
  kind: "capability";
226
228
  key: string;
227
- } | {
228
229
  productId: string;
230
+ } | {
229
231
  kind: "quota";
230
232
  key: string;
231
233
  unit: string;
232
234
  included: number;
235
+ productId: string;
233
236
  combination: "maximum" | "sum" | "exclusive";
234
237
  };
235
- displayName: string;
236
238
  }[];
237
239
  offerId: string;
238
240
  offerVersion: number;
239
- displayName: string;
240
- audience: "personal";
241
241
  price?: {
242
242
  currency: string;
243
243
  amountMinorUnits: number;
@@ -252,26 +252,26 @@ export declare const personalPlanCatalogueSchema: z.ZodEffects<z.ZodObject<{
252
252
  state: "unconfigured" | "configured";
253
253
  purchase: "unavailable";
254
254
  plans: {
255
+ displayName: string;
255
256
  kind: "oxy_one";
257
+ audience: "personal";
256
258
  benefits: {
259
+ displayName: string;
257
260
  benefit: {
258
- productId: string;
259
261
  kind: "capability";
260
262
  key: string;
261
- } | {
262
263
  productId: string;
264
+ } | {
263
265
  kind: "quota";
264
266
  key: string;
265
267
  unit: string;
266
268
  included: number;
269
+ productId: string;
267
270
  combination: "maximum" | "sum" | "exclusive";
268
271
  };
269
- displayName: string;
270
272
  }[];
271
273
  offerId: string;
272
274
  offerVersion: number;
273
- displayName: string;
274
- audience: "personal";
275
275
  price?: {
276
276
  currency: string;
277
277
  amountMinorUnits: number;
@@ -286,26 +286,26 @@ export declare const personalPlanCatalogueSchema: z.ZodEffects<z.ZodObject<{
286
286
  state: "unconfigured" | "configured";
287
287
  purchase: "unavailable";
288
288
  plans: {
289
+ displayName: string;
289
290
  kind: "oxy_one";
291
+ audience: "personal";
290
292
  benefits: {
293
+ displayName: string;
291
294
  benefit: {
292
- productId: string;
293
295
  kind: "capability";
294
296
  key: string;
295
- } | {
296
297
  productId: string;
298
+ } | {
297
299
  kind: "quota";
298
300
  key: string;
299
301
  unit: string;
300
302
  included: number;
303
+ productId: string;
301
304
  combination: "maximum" | "sum" | "exclusive";
302
305
  };
303
- displayName: string;
304
306
  }[];
305
307
  offerId: string;
306
308
  offerVersion: number;
307
- displayName: string;
308
- audience: "personal";
309
309
  price?: {
310
310
  currency: string;
311
311
  amountMinorUnits: number;
@@ -24,8 +24,8 @@
24
24
  * - **The balance has two views, and the union is the contract.** See
25
25
  * {@link ReputationBalanceView} — the compile-time assertions below are what
26
26
  * stop the private view's fields becoming reachable on a stranger's balance.
27
- * - **The closed value sets live here, not beside the mongoose models.** The
28
- * API's model enums and the SDK's unions are the same `as const` tuple, so a
27
+ * - **The closed value sets live here, not beside the database schema.** The
28
+ * API's column enums and the SDK's unions are the same `as const` tuple, so a
29
29
  * seventh category cannot be added on one side only.
30
30
  *
31
31
  * The response entities are declared as explicit `interface`s with their runtime
@@ -93,7 +93,7 @@ export declare const reputationInfluenceContextSchema: z.ZodEnum<["default", "re
93
93
  * appended), written only by policy-driven code — never by a person.
94
94
  */
95
95
  export interface ReputationTransaction {
96
- /** The transaction's Mongo `_id` as a string. */
96
+ /** The transaction's id, as a string. */
97
97
  id: string;
98
98
  /** Subject of the reputation change — the user whose balance moves. */
99
99
  userId: string;
@@ -298,7 +298,7 @@ export declare const reputationRulesResponseSchema: z.ZodType<ReputationRulesRes
298
298
  * real name — fall back to the handle when it is absent, never recompose.
299
299
  */
300
300
  export interface ReputationLeaderboardUser {
301
- /** The user's Mongo `_id` as a string. */
301
+ /** The user's id, as a string. */
302
302
  id: string;
303
303
  username: string;
304
304
  name: UserNameResponse;
@@ -11,7 +11,7 @@
11
11
  * CLI, the console hook) validates its INPUT against the same definitions, so
12
12
  * producer and consumers cannot drift.
13
13
  *
14
- * Domain model (mirrors the Mongoose models in `@oxy.so/api`):
14
+ * Domain model (mirrors the update tables in `@oxy.so/api`):
15
15
  * - A `channel` (e.g. `production`, `preview`, `pr-123`) is a named release
16
16
  * track for one application.
17
17
  * - An `update` is one published bundle for a single `(channel, runtimeVersion,
@@ -22,10 +22,10 @@ export declare const USER_PROFILE_COLOR_PRESETS: readonly ["teal", "blue", "gree
22
22
  * Emits `id` (NOT `_id`), forwards `username` verbatim (may be absent), and
23
23
  * emits `name` as the structured `{ first, last, full, displayName }`
24
24
  * subdocument.
25
- * - `packages/api/src/models/User.ts` — `NameSchema` (`first`/`last` default
26
- * `''`; `full` and `displayName` are Mongoose VIRTUALS. Formatted API
27
- * responses compose both fields, while raw-document responses may omit the
28
- * virtuals if the query did not materialise them.
25
+ * - `packages/api/src/db/schema/users.ts` — the stored name (`first`/`last`);
26
+ * `full` and `displayName` have no column of their own. Formatted API
27
+ * responses compose both fields, while raw-document responses may omit
28
+ * them.
29
29
  *
30
30
  * Platform-agnostic — zod only, no react/react-native/expo. ESM-safe (no
31
31
  * `require()`).
@@ -34,9 +34,8 @@ import { z } from 'zod';
34
34
  /**
35
35
  * Structured human name subdocument. Mirrors `User.name` (`NameSchema`).
36
36
  *
37
- * - `first` / `last` default to `''` in Mongo, so they are optional on the wire.
38
- * - `full` is a Mongoose virtual — absent unless the query materialised
39
- * virtuals or the serializer composed it.
37
+ * - `first` / `last` may be absent, so they are optional on the wire.
38
+ * - `full` is derived — absent unless the serializer composed it.
40
39
  * - `displayName` is the canonical app-facing display string when present.
41
40
  * It is OPTIONAL on the wire: the API still synthesizes a default today, but
42
41
  * the contract no longer guarantees it, so consumers fall back to a handle
@@ -133,7 +132,7 @@ export declare const dateOfBirthSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z
133
132
  * identity/display fields are the ones we pin precisely.
134
133
  */
135
134
  export declare const userResponseSchema: z.ZodObject<{
136
- /** MongoDB ObjectId as a string. Present on `formatUserResponse` output. */
135
+ /** The user id as a string. Present on `formatUserResponse` output. */
137
136
  id: z.ZodOptional<z.ZodString>;
138
137
  /** Raw-document id (e.g. `GET /users/me`). Present when `id` is not. */
139
138
  _id: z.ZodOptional<z.ZodString>;
@@ -256,7 +255,7 @@ export declare const userResponseSchema: z.ZodObject<{
256
255
  };
257
256
  }>>;
258
257
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
259
- /** MongoDB ObjectId as a string. Present on `formatUserResponse` output. */
258
+ /** The user id as a string. Present on `formatUserResponse` output. */
260
259
  id: z.ZodOptional<z.ZodString>;
261
260
  /** Raw-document id (e.g. `GET /users/me`). Present when `id` is not. */
262
261
  _id: z.ZodOptional<z.ZodString>;
@@ -379,7 +378,7 @@ export declare const userResponseSchema: z.ZodObject<{
379
378
  };
380
379
  }>>;
381
380
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
382
- /** MongoDB ObjectId as a string. Present on `formatUserResponse` output. */
381
+ /** The user id as a string. Present on `formatUserResponse` output. */
383
382
  id: z.ZodOptional<z.ZodString>;
384
383
  /** Raw-document id (e.g. `GET /users/me`). Present when `id` is not. */
385
384
  _id: z.ZodOptional<z.ZodString>;
@@ -731,7 +730,7 @@ export declare function resolveUserId(user: UserResponse): string | undefined;
731
730
  */
732
731
  export declare const currentUserResponseSchema: z.ZodObject<{
733
732
  data: z.ZodObject<{
734
- /** MongoDB ObjectId as a string. Present on `formatUserResponse` output. */
733
+ /** The user id as a string. Present on `formatUserResponse` output. */
735
734
  id: z.ZodOptional<z.ZodString>;
736
735
  /** Raw-document id (e.g. `GET /users/me`). Present when `id` is not. */
737
736
  _id: z.ZodOptional<z.ZodString>;
@@ -854,7 +853,7 @@ export declare const currentUserResponseSchema: z.ZodObject<{
854
853
  };
855
854
  }>>;
856
855
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
857
- /** MongoDB ObjectId as a string. Present on `formatUserResponse` output. */
856
+ /** The user id as a string. Present on `formatUserResponse` output. */
858
857
  id: z.ZodOptional<z.ZodString>;
859
858
  /** Raw-document id (e.g. `GET /users/me`). Present when `id` is not. */
860
859
  _id: z.ZodOptional<z.ZodString>;
@@ -977,7 +976,7 @@ export declare const currentUserResponseSchema: z.ZodObject<{
977
976
  };
978
977
  }>>;
979
978
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
980
- /** MongoDB ObjectId as a string. Present on `formatUserResponse` output. */
979
+ /** The user id as a string. Present on `formatUserResponse` output. */
981
980
  id: z.ZodOptional<z.ZodString>;
982
981
  /** Raw-document id (e.g. `GET /users/me`). Present when `id` is not. */
983
982
  _id: z.ZodOptional<z.ZodString>;
@@ -1176,7 +1175,7 @@ export declare const deviceLinkedSessionSchema: z.ZodObject<{
1176
1175
  sessionId: z.ZodString;
1177
1176
  isCurrent: z.ZodOptional<z.ZodBoolean>;
1178
1177
  user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1179
- /** MongoDB ObjectId as a string. Present on `formatUserResponse` output. */
1178
+ /** The user id as a string. Present on `formatUserResponse` output. */
1180
1179
  id: z.ZodOptional<z.ZodString>;
1181
1180
  /** Raw-document id (e.g. `GET /users/me`). Present when `id` is not. */
1182
1181
  _id: z.ZodOptional<z.ZodString>;
@@ -1299,7 +1298,7 @@ export declare const deviceLinkedSessionSchema: z.ZodObject<{
1299
1298
  };
1300
1299
  }>>;
1301
1300
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1302
- /** MongoDB ObjectId as a string. Present on `formatUserResponse` output. */
1301
+ /** The user id as a string. Present on `formatUserResponse` output. */
1303
1302
  id: z.ZodOptional<z.ZodString>;
1304
1303
  /** Raw-document id (e.g. `GET /users/me`). Present when `id` is not. */
1305
1304
  _id: z.ZodOptional<z.ZodString>;
@@ -1422,7 +1421,7 @@ export declare const deviceLinkedSessionSchema: z.ZodObject<{
1422
1421
  };
1423
1422
  }>>;
1424
1423
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1425
- /** MongoDB ObjectId as a string. Present on `formatUserResponse` output. */
1424
+ /** The user id as a string. Present on `formatUserResponse` output. */
1426
1425
  id: z.ZodOptional<z.ZodString>;
1427
1426
  /** Raw-document id (e.g. `GET /users/me`). Present when `id` is not. */
1428
1427
  _id: z.ZodOptional<z.ZodString>;
@@ -1548,7 +1547,7 @@ export declare const deviceLinkedSessionSchema: z.ZodObject<{
1548
1547
  }, "strip", z.ZodTypeAny, {
1549
1548
  sessionId: string;
1550
1549
  user?: z.objectOutputType<{
1551
- /** MongoDB ObjectId as a string. Present on `formatUserResponse` output. */
1550
+ /** The user id as a string. Present on `formatUserResponse` output. */
1552
1551
  id: z.ZodOptional<z.ZodString>;
1553
1552
  /** Raw-document id (e.g. `GET /users/me`). Present when `id` is not. */
1554
1553
  _id: z.ZodOptional<z.ZodString>;
@@ -1675,7 +1674,7 @@ export declare const deviceLinkedSessionSchema: z.ZodObject<{
1675
1674
  }, {
1676
1675
  sessionId: string;
1677
1676
  user?: z.objectInputType<{
1678
- /** MongoDB ObjectId as a string. Present on `formatUserResponse` output. */
1677
+ /** The user id as a string. Present on `formatUserResponse` output. */
1679
1678
  id: z.ZodOptional<z.ZodString>;
1680
1679
  /** Raw-document id (e.g. `GET /users/me`). Present when `id` is not. */
1681
1680
  _id: z.ZodOptional<z.ZodString>;
@@ -1806,7 +1805,7 @@ export declare const deviceLinkedSessionsResponseSchema: z.ZodArray<z.ZodObject<
1806
1805
  sessionId: z.ZodString;
1807
1806
  isCurrent: z.ZodOptional<z.ZodBoolean>;
1808
1807
  user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1809
- /** MongoDB ObjectId as a string. Present on `formatUserResponse` output. */
1808
+ /** The user id as a string. Present on `formatUserResponse` output. */
1810
1809
  id: z.ZodOptional<z.ZodString>;
1811
1810
  /** Raw-document id (e.g. `GET /users/me`). Present when `id` is not. */
1812
1811
  _id: z.ZodOptional<z.ZodString>;
@@ -1929,7 +1928,7 @@ export declare const deviceLinkedSessionsResponseSchema: z.ZodArray<z.ZodObject<
1929
1928
  };
1930
1929
  }>>;
1931
1930
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1932
- /** MongoDB ObjectId as a string. Present on `formatUserResponse` output. */
1931
+ /** The user id as a string. Present on `formatUserResponse` output. */
1933
1932
  id: z.ZodOptional<z.ZodString>;
1934
1933
  /** Raw-document id (e.g. `GET /users/me`). Present when `id` is not. */
1935
1934
  _id: z.ZodOptional<z.ZodString>;
@@ -2052,7 +2051,7 @@ export declare const deviceLinkedSessionsResponseSchema: z.ZodArray<z.ZodObject<
2052
2051
  };
2053
2052
  }>>;
2054
2053
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2055
- /** MongoDB ObjectId as a string. Present on `formatUserResponse` output. */
2054
+ /** The user id as a string. Present on `formatUserResponse` output. */
2056
2055
  id: z.ZodOptional<z.ZodString>;
2057
2056
  /** Raw-document id (e.g. `GET /users/me`). Present when `id` is not. */
2058
2057
  _id: z.ZodOptional<z.ZodString>;
@@ -2178,7 +2177,7 @@ export declare const deviceLinkedSessionsResponseSchema: z.ZodArray<z.ZodObject<
2178
2177
  }, "strip", z.ZodTypeAny, {
2179
2178
  sessionId: string;
2180
2179
  user?: z.objectOutputType<{
2181
- /** MongoDB ObjectId as a string. Present on `formatUserResponse` output. */
2180
+ /** The user id as a string. Present on `formatUserResponse` output. */
2182
2181
  id: z.ZodOptional<z.ZodString>;
2183
2182
  /** Raw-document id (e.g. `GET /users/me`). Present when `id` is not. */
2184
2183
  _id: z.ZodOptional<z.ZodString>;
@@ -2305,7 +2304,7 @@ export declare const deviceLinkedSessionsResponseSchema: z.ZodArray<z.ZodObject<
2305
2304
  }, {
2306
2305
  sessionId: string;
2307
2306
  user?: z.objectInputType<{
2308
- /** MongoDB ObjectId as a string. Present on `formatUserResponse` output. */
2307
+ /** The user id as a string. Present on `formatUserResponse` output. */
2309
2308
  id: z.ZodOptional<z.ZodString>;
2310
2309
  /** Raw-document id (e.g. `GET /users/me`). Present when `id` is not. */
2311
2310
  _id: z.ZodOptional<z.ZodString>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxy.so/contracts",
3
- "version": "4.11.0-oxy-one.0",
3
+ "version": "4.11.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",
@@ -78,7 +78,6 @@
78
78
  "zod": "^3.25.64"
79
79
  },
80
80
  "devDependencies": {
81
- "@biomejs/biome": "^1.9.4",
82
81
  "@types/node": "^20.19.43",
83
82
  "jest": "^30.5.1",
84
83
  "release-it": "^19.0.6",