@oxy.so/contracts 5.8.0 → 6.1.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 (231) hide show
  1. package/dist/cjs/accountAccess.js +6 -5
  2. package/dist/cjs/accountEmail.js +13 -5
  3. package/dist/cjs/accountGraph.js +10 -9
  4. package/dist/cjs/accountName.js +3 -2
  5. package/dist/cjs/agency.js +91 -34
  6. package/dist/cjs/agentKeys.js +21 -17
  7. package/dist/cjs/appAssertions.js +14 -13
  8. package/dist/cjs/applicationRoles.js +19 -12
  9. package/dist/cjs/campaignAttribution.js +28 -0
  10. package/dist/cjs/civic.js +10 -9
  11. package/dist/cjs/client/campaignAttribution.js +14 -0
  12. package/dist/cjs/client/check.js +61 -53
  13. package/dist/cjs/client/index.js +7 -1
  14. package/dist/cjs/client/language.js +7 -0
  15. package/dist/cjs/consoleOnboarding.js +9 -4
  16. package/dist/cjs/contentClaims.js +23 -14
  17. package/dist/cjs/deviceDirectory.js +11 -9
  18. package/dist/cjs/deviceSession.js +27 -25
  19. package/dist/cjs/email/messages.js +20 -18
  20. package/dist/cjs/emailAgentContext.js +11 -9
  21. package/dist/cjs/externalIdentity.js +15 -11
  22. package/dist/cjs/federationInstanceFetch.js +12 -7
  23. package/dist/cjs/identity.js +19 -17
  24. package/dist/cjs/identityLink.js +6 -4
  25. package/dist/cjs/identityProof.js +6 -4
  26. package/dist/cjs/inboxPush.js +5 -4
  27. package/dist/cjs/index.js +17 -6
  28. package/dist/cjs/inference/accountBilling.js +35 -33
  29. package/dist/cjs/inference/aliaModelRelease.js +9 -7
  30. package/dist/cjs/inference/attribution.js +14 -12
  31. package/dist/cjs/inference/catalogue.js +35 -29
  32. package/dist/cjs/inference/economics.js +24 -19
  33. package/dist/cjs/inference/embeddings.js +9 -7
  34. package/dist/cjs/inference/entitlement.js +17 -15
  35. package/dist/cjs/inference/errors.js +15 -8
  36. package/dist/cjs/inference/identifiers.js +33 -21
  37. package/dist/cjs/inference/inbox.js +37 -35
  38. package/dist/cjs/inference/modelDocumentation.js +16 -14
  39. package/dist/cjs/inference/money.js +5 -4
  40. package/dist/cjs/inference/priceVersion.js +10 -5
  41. package/dist/cjs/inference/providerConnection.js +21 -14
  42. package/dist/cjs/inference/realtime.js +88 -47
  43. package/dist/cjs/inference/request.js +27 -25
  44. package/dist/cjs/inference/routingPolicy.js +12 -10
  45. package/dist/cjs/inference/streamEvents.js +22 -16
  46. package/dist/cjs/inference/usage.js +32 -15
  47. package/dist/cjs/keyRecovery.js +8 -6
  48. package/dist/cjs/keyRotation.js +5 -4
  49. package/dist/cjs/linkedAccounts.js +22 -18
  50. package/dist/cjs/moderationReputation.js +29 -27
  51. package/dist/cjs/notifications.js +25 -9
  52. package/dist/cjs/numberChecks.js +45 -0
  53. package/dist/cjs/oauth.js +14 -12
  54. package/dist/cjs/organizations.js +23 -21
  55. package/dist/cjs/products/access.js +10 -8
  56. package/dist/cjs/products/billing.js +10 -8
  57. package/dist/cjs/products/checkout.js +22 -10
  58. package/dist/cjs/products/plans.js +15 -10
  59. package/dist/cjs/protocol.js +6 -5
  60. package/dist/cjs/recommendations.js +27 -19
  61. package/dist/cjs/reputation.js +15 -13
  62. package/dist/cjs/safety.js +43 -27
  63. package/dist/cjs/serviceToken.js +81 -2
  64. package/dist/cjs/sessionRevocation.js +8 -6
  65. package/dist/cjs/signIn.js +50 -24
  66. package/dist/cjs/stickers.js +19 -15
  67. package/dist/cjs/stringChecks.js +70 -0
  68. package/dist/cjs/transparency.js +14 -12
  69. package/dist/cjs/updates.js +24 -22
  70. package/dist/cjs/userInvalidation.js +7 -5
  71. package/dist/cjs/userResponse.js +8 -7
  72. package/dist/cjs/username.js +7 -6
  73. package/dist/esm/accountAccess.js +4 -3
  74. package/dist/esm/accountEmail.js +13 -5
  75. package/dist/esm/accountGraph.js +8 -7
  76. package/dist/esm/accountName.js +3 -2
  77. package/dist/esm/agency.js +90 -33
  78. package/dist/esm/agentKeys.js +21 -17
  79. package/dist/esm/appAssertions.js +11 -10
  80. package/dist/esm/applicationRoles.js +16 -9
  81. package/dist/esm/campaignAttribution.js +25 -0
  82. package/dist/esm/civic.js +8 -7
  83. package/dist/esm/client/campaignAttribution.js +10 -0
  84. package/dist/esm/client/check.js +61 -53
  85. package/dist/esm/client/index.js +2 -0
  86. package/dist/esm/client/language.js +4 -0
  87. package/dist/esm/consoleOnboarding.js +7 -2
  88. package/dist/esm/contentClaims.js +23 -14
  89. package/dist/esm/deviceDirectory.js +11 -9
  90. package/dist/esm/deviceSession.js +27 -25
  91. package/dist/esm/email/messages.js +18 -16
  92. package/dist/esm/emailAgentContext.js +11 -9
  93. package/dist/esm/externalIdentity.js +15 -11
  94. package/dist/esm/federationInstanceFetch.js +10 -5
  95. package/dist/esm/identity.js +17 -15
  96. package/dist/esm/identityLink.js +6 -4
  97. package/dist/esm/identityProof.js +6 -4
  98. package/dist/esm/inboxPush.js +3 -2
  99. package/dist/esm/index.js +5 -2
  100. package/dist/esm/inference/accountBilling.js +33 -31
  101. package/dist/esm/inference/aliaModelRelease.js +7 -5
  102. package/dist/esm/inference/attribution.js +14 -12
  103. package/dist/esm/inference/catalogue.js +33 -27
  104. package/dist/esm/inference/economics.js +22 -17
  105. package/dist/esm/inference/embeddings.js +9 -7
  106. package/dist/esm/inference/entitlement.js +15 -13
  107. package/dist/esm/inference/errors.js +13 -6
  108. package/dist/esm/inference/identifiers.js +31 -19
  109. package/dist/esm/inference/inbox.js +37 -35
  110. package/dist/esm/inference/modelDocumentation.js +14 -12
  111. package/dist/esm/inference/money.js +3 -2
  112. package/dist/esm/inference/priceVersion.js +8 -3
  113. package/dist/esm/inference/providerConnection.js +19 -12
  114. package/dist/esm/inference/realtime.js +85 -44
  115. package/dist/esm/inference/request.js +25 -23
  116. package/dist/esm/inference/routingPolicy.js +9 -7
  117. package/dist/esm/inference/streamEvents.js +20 -14
  118. package/dist/esm/inference/usage.js +30 -13
  119. package/dist/esm/keyRecovery.js +8 -6
  120. package/dist/esm/keyRotation.js +5 -4
  121. package/dist/esm/linkedAccounts.js +20 -16
  122. package/dist/esm/moderationReputation.js +27 -25
  123. package/dist/esm/notifications.js +23 -7
  124. package/dist/esm/numberChecks.js +41 -0
  125. package/dist/esm/oauth.js +14 -12
  126. package/dist/esm/organizations.js +23 -21
  127. package/dist/esm/products/access.js +10 -8
  128. package/dist/esm/products/billing.js +10 -8
  129. package/dist/esm/products/checkout.js +22 -10
  130. package/dist/esm/products/plans.js +15 -10
  131. package/dist/esm/protocol.js +4 -3
  132. package/dist/esm/recommendations.js +25 -17
  133. package/dist/esm/reputation.js +13 -11
  134. package/dist/esm/safety.js +43 -27
  135. package/dist/esm/serviceToken.js +80 -1
  136. package/dist/esm/sessionRevocation.js +6 -4
  137. package/dist/esm/signIn.js +50 -24
  138. package/dist/esm/stickers.js +17 -13
  139. package/dist/esm/stringChecks.js +63 -0
  140. package/dist/esm/transparency.js +14 -12
  141. package/dist/esm/updates.js +22 -20
  142. package/dist/esm/userInvalidation.js +4 -2
  143. package/dist/esm/userResponse.js +4 -3
  144. package/dist/esm/username.js +3 -2
  145. package/dist/types/accountAccess.d.ts +29 -70
  146. package/dist/types/accountEmail.d.ts +2 -14
  147. package/dist/types/accountGraph.d.ts +179 -171
  148. package/dist/types/accountName.d.ts +1 -1
  149. package/dist/types/accountSubject.d.ts +20 -93
  150. package/dist/types/agency.d.ts +528 -2924
  151. package/dist/types/agentKeys.d.ts +48 -421
  152. package/dist/types/appAssertions.d.ts +56 -210
  153. package/dist/types/applicationRoles.d.ts +30 -276
  154. package/dist/types/avatarCharacter.d.ts +1 -1
  155. package/dist/types/campaignAttribution.d.ts +10 -0
  156. package/dist/types/civic.d.ts +1 -13
  157. package/dist/types/client/agentKeys.d.ts +18 -18
  158. package/dist/types/client/appAssertions.d.ts +3 -3
  159. package/dist/types/client/campaignAttribution.d.ts +12 -0
  160. package/dist/types/client/check.d.ts +13 -13
  161. package/dist/types/client/deviceDirectory.d.ts +51 -51
  162. package/dist/types/client/deviceSession.d.ts +14 -14
  163. package/dist/types/client/index.d.ts +3 -0
  164. package/dist/types/client/language.d.ts +2 -0
  165. package/dist/types/client/organizations.d.ts +25 -25
  166. package/dist/types/client/products.d.ts +33 -33
  167. package/dist/types/client/recommendations.d.ts +2 -2
  168. package/dist/types/client/safety.d.ts +45 -45
  169. package/dist/types/client/sessionStatus.d.ts +4 -4
  170. package/dist/types/client/signIn.d.ts +1 -1
  171. package/dist/types/commonsSignIn.d.ts +4 -1
  172. package/dist/types/consoleOnboarding.d.ts +24 -44
  173. package/dist/types/contentClaims.d.ts +24 -180
  174. package/dist/types/deviceDirectory.d.ts +109 -1040
  175. package/dist/types/deviceSession.d.ts +36 -298
  176. package/dist/types/email/messages.d.ts +212 -1793
  177. package/dist/types/emailAgentContext.d.ts +10 -194
  178. package/dist/types/externalIdentity.d.ts +121 -615
  179. package/dist/types/federationInstanceFetch.d.ts +3 -32
  180. package/dist/types/identity.d.ts +15 -92
  181. package/dist/types/identityLink.d.ts +6 -84
  182. package/dist/types/identityProof.d.ts +5 -17
  183. package/dist/types/inboxPush.d.ts +1 -9
  184. package/dist/types/index.d.ts +7 -3
  185. package/dist/types/inference/accountBilling.d.ts +151 -488
  186. package/dist/types/inference/aliaModelRelease.d.ts +42 -439
  187. package/dist/types/inference/attribution.d.ts +75 -104
  188. package/dist/types/inference/catalogue.d.ts +417 -1599
  189. package/dist/types/inference/economics.d.ts +69 -276
  190. package/dist/types/inference/embeddings.d.ts +110 -406
  191. package/dist/types/inference/entitlement.d.ts +80 -335
  192. package/dist/types/inference/errors.d.ts +90 -102
  193. package/dist/types/inference/identifiers.d.ts +12 -4
  194. package/dist/types/inference/inbox.d.ts +105 -420
  195. package/dist/types/inference/modelDocumentation.d.ts +201 -1390
  196. package/dist/types/inference/money.d.ts +65 -32
  197. package/dist/types/inference/priceVersion.d.ts +53 -120
  198. package/dist/types/inference/providerConnection.d.ts +253 -710
  199. package/dist/types/inference/realtime.d.ts +954 -6825
  200. package/dist/types/inference/request.d.ts +300 -2572
  201. package/dist/types/inference/routingPolicy.d.ts +95 -503
  202. package/dist/types/inference/streamEvents.d.ts +253 -721
  203. package/dist/types/inference/usage.d.ts +317 -950
  204. package/dist/types/keyRecovery.d.ts +3 -51
  205. package/dist/types/keyRotation.d.ts +3 -38
  206. package/dist/types/linkedAccounts.d.ts +50 -236
  207. package/dist/types/moderationReputation.d.ts +81 -14
  208. package/dist/types/notifications.d.ts +19 -51
  209. package/dist/types/numberChecks.d.ts +9 -0
  210. package/dist/types/oauth.d.ts +101 -809
  211. package/dist/types/organizations.d.ts +268 -921
  212. package/dist/types/oxyRecordTypes.d.ts +11 -1
  213. package/dist/types/products/access.d.ts +125 -775
  214. package/dist/types/products/billing.d.ts +67 -503
  215. package/dist/types/products/checkout.d.ts +16 -69
  216. package/dist/types/products/plans.d.ts +33 -366
  217. package/dist/types/recommendations.d.ts +76 -389
  218. package/dist/types/reputation.d.ts +37 -5
  219. package/dist/types/safety.d.ts +408 -2048
  220. package/dist/types/serviceToken.d.ts +247 -7
  221. package/dist/types/sessionRevocation.d.ts +2 -17
  222. package/dist/types/sessionStatus.d.ts +27 -115
  223. package/dist/types/signIn.d.ts +62 -553
  224. package/dist/types/stickers.d.ts +67 -819
  225. package/dist/types/stringChecks.d.ts +16 -0
  226. package/dist/types/transparency.d.ts +14 -302
  227. package/dist/types/updates.d.ts +60 -316
  228. package/dist/types/userInvalidation.d.ts +4 -13
  229. package/dist/types/userResponse.d.ts +302 -2400
  230. package/dist/types/username.d.ts +3 -3
  231. package/package.json +6 -4
@@ -22,7 +22,11 @@ import { z } from 'zod';
22
22
  * - `owner` — the principal owns this account
23
23
  * - `member` — the principal holds a membership granting `account:act_as`
24
24
  */
25
- export declare const deviceContextRelationshipSchema: z.ZodEnum<["self", "owner", "member"]>;
25
+ export declare const deviceContextRelationshipSchema: z.ZodEnum<{
26
+ owner: "owner";
27
+ self: "self";
28
+ member: "member";
29
+ }>;
26
30
  /**
27
31
  * Sanitized display metadata for a principal or an account context.
28
32
  *
@@ -44,27 +48,10 @@ export declare const deviceContextRelationshipSchema: z.ZodEnum<["self", "owner"
44
48
  export declare const deviceDirectoryProfileSchema: z.ZodObject<{
45
49
  id: z.ZodString;
46
50
  username: z.ZodString;
47
- name: z.ZodOptional<z.ZodType<import("./userResponse").UserNameResponse, z.ZodTypeDef, import("./userResponse").UserNameResponse>>;
51
+ name: z.ZodOptional<z.ZodType<import("./userResponse").UserNameResponse, unknown, z.core.$ZodTypeInternals<import("./userResponse").UserNameResponse, unknown>>>;
48
52
  avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
49
- /**
50
- * Named Bloom color preset (e.g. `"blue"`), or null when the account has
51
- * none. Same shape as `userResponseSchema.color` — one spelling of one fact,
52
- * so a consumer that themes a row from either source reads the same values.
53
- */
54
53
  color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
- }, "strip", z.ZodTypeAny, {
56
- username: string;
57
- id: string;
58
- color?: string | null | undefined;
59
- name?: import("./userResponse").UserNameResponse | undefined;
60
- avatar?: string | null | undefined;
61
- }, {
62
- username: string;
63
- id: string;
64
- color?: string | null | undefined;
65
- name?: import("./userResponse").UserNameResponse | undefined;
66
- avatar?: string | null | undefined;
67
- }>;
54
+ }, z.core.$strip>;
68
55
  /**
69
56
  * One `principal acting as account` pair — the globally switchable unit.
70
57
  *
@@ -98,69 +85,31 @@ export declare const deviceDirectoryProfileSchema: z.ZodObject<{
98
85
  export declare const deviceAccountContextSchema: z.ZodObject<{
99
86
  id: z.ZodString;
100
87
  accountId: z.ZodString;
101
- kind: z.ZodEnum<["personal", "organization", "project", "bot", "channel", "community"]>;
102
- relationship: z.ZodEnum<["self", "owner", "member"]>;
88
+ kind: z.ZodEnum<{
89
+ personal: "personal";
90
+ organization: "organization";
91
+ project: "project";
92
+ bot: "bot";
93
+ channel: "channel";
94
+ community: "community";
95
+ }>;
96
+ relationship: z.ZodEnum<{
97
+ owner: "owner";
98
+ self: "self";
99
+ member: "member";
100
+ }>;
103
101
  account: z.ZodObject<{
104
102
  id: z.ZodString;
105
103
  username: z.ZodString;
106
- name: z.ZodOptional<z.ZodType<import("./userResponse").UserNameResponse, z.ZodTypeDef, import("./userResponse").UserNameResponse>>;
104
+ name: z.ZodOptional<z.ZodType<import("./userResponse").UserNameResponse, unknown, z.core.$ZodTypeInternals<import("./userResponse").UserNameResponse, unknown>>>;
107
105
  avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
108
- /**
109
- * Named Bloom color preset (e.g. `"blue"`), or null when the account has
110
- * none. Same shape as `userResponseSchema.color` — one spelling of one fact,
111
- * so a consumer that themes a row from either source reads the same values.
112
- */
113
106
  color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
114
- }, "strip", z.ZodTypeAny, {
115
- username: string;
116
- id: string;
117
- color?: string | null | undefined;
118
- name?: import("./userResponse").UserNameResponse | undefined;
119
- avatar?: string | null | undefined;
120
- }, {
121
- username: string;
122
- id: string;
123
- color?: string | null | undefined;
124
- name?: import("./userResponse").UserNameResponse | undefined;
125
- avatar?: string | null | undefined;
126
- }>;
107
+ }, z.core.$strip>;
127
108
  onDevice: z.ZodBoolean;
128
109
  available: z.ZodBoolean;
129
110
  active: z.ZodBoolean;
130
111
  lastUsedAt: z.ZodNullable<z.ZodNumber>;
131
- }, "strip", z.ZodTypeAny, {
132
- active: boolean;
133
- kind: "personal" | "organization" | "project" | "bot" | "channel" | "community";
134
- accountId: string;
135
- id: string;
136
- lastUsedAt: number | null;
137
- relationship: "owner" | "self" | "member";
138
- account: {
139
- username: string;
140
- id: string;
141
- color?: string | null | undefined;
142
- name?: import("./userResponse").UserNameResponse | undefined;
143
- avatar?: string | null | undefined;
144
- };
145
- onDevice: boolean;
146
- available: boolean;
147
- }, {
148
- active: boolean;
149
- kind: "personal" | "organization" | "project" | "bot" | "channel" | "community";
150
- accountId: string;
151
- id: string;
152
- lastUsedAt: number | null;
153
- relationship: "owner" | "self" | "member";
154
- account: {
155
- username: string;
156
- id: string;
157
- color?: string | null | undefined;
158
- name?: import("./userResponse").UserNameResponse | undefined;
159
- avatar?: string | null | undefined;
160
- };
161
- onDevice: boolean;
162
- available: boolean;
163
- }>;
112
+ }, z.core.$strip>;
164
113
  /**
165
114
  * A human who authenticated onto this device.
166
115
  *
@@ -176,150 +125,39 @@ export declare const devicePrincipalSchema: z.ZodObject<{
176
125
  user: z.ZodObject<{
177
126
  id: z.ZodString;
178
127
  username: z.ZodString;
179
- name: z.ZodOptional<z.ZodType<import("./userResponse").UserNameResponse, z.ZodTypeDef, import("./userResponse").UserNameResponse>>;
128
+ name: z.ZodOptional<z.ZodType<import("./userResponse").UserNameResponse, unknown, z.core.$ZodTypeInternals<import("./userResponse").UserNameResponse, unknown>>>;
180
129
  avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
181
- /**
182
- * Named Bloom color preset (e.g. `"blue"`), or null when the account has
183
- * none. Same shape as `userResponseSchema.color` — one spelling of one fact,
184
- * so a consumer that themes a row from either source reads the same values.
185
- */
186
130
  color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
187
- }, "strip", z.ZodTypeAny, {
188
- username: string;
189
- id: string;
190
- color?: string | null | undefined;
191
- name?: import("./userResponse").UserNameResponse | undefined;
192
- avatar?: string | null | undefined;
193
- }, {
194
- username: string;
195
- id: string;
196
- color?: string | null | undefined;
197
- name?: import("./userResponse").UserNameResponse | undefined;
198
- avatar?: string | null | undefined;
199
- }>;
131
+ }, z.core.$strip>;
200
132
  contexts: z.ZodArray<z.ZodObject<{
201
133
  id: z.ZodString;
202
134
  accountId: z.ZodString;
203
- kind: z.ZodEnum<["personal", "organization", "project", "bot", "channel", "community"]>;
204
- relationship: z.ZodEnum<["self", "owner", "member"]>;
135
+ kind: z.ZodEnum<{
136
+ personal: "personal";
137
+ organization: "organization";
138
+ project: "project";
139
+ bot: "bot";
140
+ channel: "channel";
141
+ community: "community";
142
+ }>;
143
+ relationship: z.ZodEnum<{
144
+ owner: "owner";
145
+ self: "self";
146
+ member: "member";
147
+ }>;
205
148
  account: z.ZodObject<{
206
149
  id: z.ZodString;
207
150
  username: z.ZodString;
208
- name: z.ZodOptional<z.ZodType<import("./userResponse").UserNameResponse, z.ZodTypeDef, import("./userResponse").UserNameResponse>>;
151
+ name: z.ZodOptional<z.ZodType<import("./userResponse").UserNameResponse, unknown, z.core.$ZodTypeInternals<import("./userResponse").UserNameResponse, unknown>>>;
209
152
  avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
210
- /**
211
- * Named Bloom color preset (e.g. `"blue"`), or null when the account has
212
- * none. Same shape as `userResponseSchema.color` — one spelling of one fact,
213
- * so a consumer that themes a row from either source reads the same values.
214
- */
215
153
  color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
216
- }, "strip", z.ZodTypeAny, {
217
- username: string;
218
- id: string;
219
- color?: string | null | undefined;
220
- name?: import("./userResponse").UserNameResponse | undefined;
221
- avatar?: string | null | undefined;
222
- }, {
223
- username: string;
224
- id: string;
225
- color?: string | null | undefined;
226
- name?: import("./userResponse").UserNameResponse | undefined;
227
- avatar?: string | null | undefined;
228
- }>;
154
+ }, z.core.$strip>;
229
155
  onDevice: z.ZodBoolean;
230
156
  available: z.ZodBoolean;
231
157
  active: z.ZodBoolean;
232
158
  lastUsedAt: z.ZodNullable<z.ZodNumber>;
233
- }, "strip", z.ZodTypeAny, {
234
- active: boolean;
235
- kind: "personal" | "organization" | "project" | "bot" | "channel" | "community";
236
- accountId: string;
237
- id: string;
238
- lastUsedAt: number | null;
239
- relationship: "owner" | "self" | "member";
240
- account: {
241
- username: string;
242
- id: string;
243
- color?: string | null | undefined;
244
- name?: import("./userResponse").UserNameResponse | undefined;
245
- avatar?: string | null | undefined;
246
- };
247
- onDevice: boolean;
248
- available: boolean;
249
- }, {
250
- active: boolean;
251
- kind: "personal" | "organization" | "project" | "bot" | "channel" | "community";
252
- accountId: string;
253
- id: string;
254
- lastUsedAt: number | null;
255
- relationship: "owner" | "self" | "member";
256
- account: {
257
- username: string;
258
- id: string;
259
- color?: string | null | undefined;
260
- name?: import("./userResponse").UserNameResponse | undefined;
261
- avatar?: string | null | undefined;
262
- };
263
- onDevice: boolean;
264
- available: boolean;
265
- }>, "many">;
266
- }, "strip", z.ZodTypeAny, {
267
- id: string;
268
- user: {
269
- username: string;
270
- id: string;
271
- color?: string | null | undefined;
272
- name?: import("./userResponse").UserNameResponse | undefined;
273
- avatar?: string | null | undefined;
274
- };
275
- authuser: number;
276
- userId: string;
277
- contexts: {
278
- active: boolean;
279
- kind: "personal" | "organization" | "project" | "bot" | "channel" | "community";
280
- accountId: string;
281
- id: string;
282
- lastUsedAt: number | null;
283
- relationship: "owner" | "self" | "member";
284
- account: {
285
- username: string;
286
- id: string;
287
- color?: string | null | undefined;
288
- name?: import("./userResponse").UserNameResponse | undefined;
289
- avatar?: string | null | undefined;
290
- };
291
- onDevice: boolean;
292
- available: boolean;
293
- }[];
294
- }, {
295
- id: string;
296
- user: {
297
- username: string;
298
- id: string;
299
- color?: string | null | undefined;
300
- name?: import("./userResponse").UserNameResponse | undefined;
301
- avatar?: string | null | undefined;
302
- };
303
- authuser: number;
304
- userId: string;
305
- contexts: {
306
- active: boolean;
307
- kind: "personal" | "organization" | "project" | "bot" | "channel" | "community";
308
- accountId: string;
309
- id: string;
310
- lastUsedAt: number | null;
311
- relationship: "owner" | "self" | "member";
312
- account: {
313
- username: string;
314
- id: string;
315
- color?: string | null | undefined;
316
- name?: import("./userResponse").UserNameResponse | undefined;
317
- avatar?: string | null | undefined;
318
- };
319
- onDevice: boolean;
320
- available: boolean;
321
- }[];
322
- }>;
159
+ }, z.core.$strip>>;
160
+ }, z.core.$strip>;
323
161
  /**
324
162
  * Response of `GET /session/device/directory`.
325
163
  *
@@ -339,220 +177,41 @@ export declare const deviceDirectorySchema: z.ZodObject<{
339
177
  user: z.ZodObject<{
340
178
  id: z.ZodString;
341
179
  username: z.ZodString;
342
- name: z.ZodOptional<z.ZodType<import("./userResponse").UserNameResponse, z.ZodTypeDef, import("./userResponse").UserNameResponse>>;
180
+ name: z.ZodOptional<z.ZodType<import("./userResponse").UserNameResponse, unknown, z.core.$ZodTypeInternals<import("./userResponse").UserNameResponse, unknown>>>;
343
181
  avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
344
- /**
345
- * Named Bloom color preset (e.g. `"blue"`), or null when the account has
346
- * none. Same shape as `userResponseSchema.color` — one spelling of one fact,
347
- * so a consumer that themes a row from either source reads the same values.
348
- */
349
182
  color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
350
- }, "strip", z.ZodTypeAny, {
351
- username: string;
352
- id: string;
353
- color?: string | null | undefined;
354
- name?: import("./userResponse").UserNameResponse | undefined;
355
- avatar?: string | null | undefined;
356
- }, {
357
- username: string;
358
- id: string;
359
- color?: string | null | undefined;
360
- name?: import("./userResponse").UserNameResponse | undefined;
361
- avatar?: string | null | undefined;
362
- }>;
183
+ }, z.core.$strip>;
363
184
  contexts: z.ZodArray<z.ZodObject<{
364
185
  id: z.ZodString;
365
186
  accountId: z.ZodString;
366
- kind: z.ZodEnum<["personal", "organization", "project", "bot", "channel", "community"]>;
367
- relationship: z.ZodEnum<["self", "owner", "member"]>;
187
+ kind: z.ZodEnum<{
188
+ personal: "personal";
189
+ organization: "organization";
190
+ project: "project";
191
+ bot: "bot";
192
+ channel: "channel";
193
+ community: "community";
194
+ }>;
195
+ relationship: z.ZodEnum<{
196
+ owner: "owner";
197
+ self: "self";
198
+ member: "member";
199
+ }>;
368
200
  account: z.ZodObject<{
369
201
  id: z.ZodString;
370
202
  username: z.ZodString;
371
- name: z.ZodOptional<z.ZodType<import("./userResponse").UserNameResponse, z.ZodTypeDef, import("./userResponse").UserNameResponse>>;
203
+ name: z.ZodOptional<z.ZodType<import("./userResponse").UserNameResponse, unknown, z.core.$ZodTypeInternals<import("./userResponse").UserNameResponse, unknown>>>;
372
204
  avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
373
- /**
374
- * Named Bloom color preset (e.g. `"blue"`), or null when the account has
375
- * none. Same shape as `userResponseSchema.color` — one spelling of one fact,
376
- * so a consumer that themes a row from either source reads the same values.
377
- */
378
205
  color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
379
- }, "strip", z.ZodTypeAny, {
380
- username: string;
381
- id: string;
382
- color?: string | null | undefined;
383
- name?: import("./userResponse").UserNameResponse | undefined;
384
- avatar?: string | null | undefined;
385
- }, {
386
- username: string;
387
- id: string;
388
- color?: string | null | undefined;
389
- name?: import("./userResponse").UserNameResponse | undefined;
390
- avatar?: string | null | undefined;
391
- }>;
206
+ }, z.core.$strip>;
392
207
  onDevice: z.ZodBoolean;
393
208
  available: z.ZodBoolean;
394
209
  active: z.ZodBoolean;
395
210
  lastUsedAt: z.ZodNullable<z.ZodNumber>;
396
- }, "strip", z.ZodTypeAny, {
397
- active: boolean;
398
- kind: "personal" | "organization" | "project" | "bot" | "channel" | "community";
399
- accountId: string;
400
- id: string;
401
- lastUsedAt: number | null;
402
- relationship: "owner" | "self" | "member";
403
- account: {
404
- username: string;
405
- id: string;
406
- color?: string | null | undefined;
407
- name?: import("./userResponse").UserNameResponse | undefined;
408
- avatar?: string | null | undefined;
409
- };
410
- onDevice: boolean;
411
- available: boolean;
412
- }, {
413
- active: boolean;
414
- kind: "personal" | "organization" | "project" | "bot" | "channel" | "community";
415
- accountId: string;
416
- id: string;
417
- lastUsedAt: number | null;
418
- relationship: "owner" | "self" | "member";
419
- account: {
420
- username: string;
421
- id: string;
422
- color?: string | null | undefined;
423
- name?: import("./userResponse").UserNameResponse | undefined;
424
- avatar?: string | null | undefined;
425
- };
426
- onDevice: boolean;
427
- available: boolean;
428
- }>, "many">;
429
- }, "strip", z.ZodTypeAny, {
430
- id: string;
431
- user: {
432
- username: string;
433
- id: string;
434
- color?: string | null | undefined;
435
- name?: import("./userResponse").UserNameResponse | undefined;
436
- avatar?: string | null | undefined;
437
- };
438
- authuser: number;
439
- userId: string;
440
- contexts: {
441
- active: boolean;
442
- kind: "personal" | "organization" | "project" | "bot" | "channel" | "community";
443
- accountId: string;
444
- id: string;
445
- lastUsedAt: number | null;
446
- relationship: "owner" | "self" | "member";
447
- account: {
448
- username: string;
449
- id: string;
450
- color?: string | null | undefined;
451
- name?: import("./userResponse").UserNameResponse | undefined;
452
- avatar?: string | null | undefined;
453
- };
454
- onDevice: boolean;
455
- available: boolean;
456
- }[];
457
- }, {
458
- id: string;
459
- user: {
460
- username: string;
461
- id: string;
462
- color?: string | null | undefined;
463
- name?: import("./userResponse").UserNameResponse | undefined;
464
- avatar?: string | null | undefined;
465
- };
466
- authuser: number;
467
- userId: string;
468
- contexts: {
469
- active: boolean;
470
- kind: "personal" | "organization" | "project" | "bot" | "channel" | "community";
471
- accountId: string;
472
- id: string;
473
- lastUsedAt: number | null;
474
- relationship: "owner" | "self" | "member";
475
- account: {
476
- username: string;
477
- id: string;
478
- color?: string | null | undefined;
479
- name?: import("./userResponse").UserNameResponse | undefined;
480
- avatar?: string | null | undefined;
481
- };
482
- onDevice: boolean;
483
- available: boolean;
484
- }[];
485
- }>, "many">;
211
+ }, z.core.$strip>>;
212
+ }, z.core.$strip>>;
486
213
  updatedAt: z.ZodNumber;
487
- }, "strip", z.ZodTypeAny, {
488
- updatedAt: number;
489
- deviceId: string;
490
- revision: number;
491
- activeContextId: string | null;
492
- principals: {
493
- id: string;
494
- user: {
495
- username: string;
496
- id: string;
497
- color?: string | null | undefined;
498
- name?: import("./userResponse").UserNameResponse | undefined;
499
- avatar?: string | null | undefined;
500
- };
501
- authuser: number;
502
- userId: string;
503
- contexts: {
504
- active: boolean;
505
- kind: "personal" | "organization" | "project" | "bot" | "channel" | "community";
506
- accountId: string;
507
- id: string;
508
- lastUsedAt: number | null;
509
- relationship: "owner" | "self" | "member";
510
- account: {
511
- username: string;
512
- id: string;
513
- color?: string | null | undefined;
514
- name?: import("./userResponse").UserNameResponse | undefined;
515
- avatar?: string | null | undefined;
516
- };
517
- onDevice: boolean;
518
- available: boolean;
519
- }[];
520
- }[];
521
- }, {
522
- updatedAt: number;
523
- deviceId: string;
524
- revision: number;
525
- activeContextId: string | null;
526
- principals: {
527
- id: string;
528
- user: {
529
- username: string;
530
- id: string;
531
- color?: string | null | undefined;
532
- name?: import("./userResponse").UserNameResponse | undefined;
533
- avatar?: string | null | undefined;
534
- };
535
- authuser: number;
536
- userId: string;
537
- contexts: {
538
- active: boolean;
539
- kind: "personal" | "organization" | "project" | "bot" | "channel" | "community";
540
- accountId: string;
541
- id: string;
542
- lastUsedAt: number | null;
543
- relationship: "owner" | "self" | "member";
544
- account: {
545
- username: string;
546
- id: string;
547
- color?: string | null | undefined;
548
- name?: import("./userResponse").UserNameResponse | undefined;
549
- avatar?: string | null | undefined;
550
- };
551
- onDevice: boolean;
552
- available: boolean;
553
- }[];
554
- }[];
555
- }>;
214
+ }, z.core.$strip>;
556
215
  /**
557
216
  * Request body of `POST /session/device/activate`.
558
217
  *
@@ -562,11 +221,7 @@ export declare const deviceDirectorySchema: z.ZodObject<{
562
221
  */
563
222
  export declare const deviceActivateRequestSchema: z.ZodObject<{
564
223
  contextId: z.ZodString;
565
- }, "strip", z.ZodTypeAny, {
566
- contextId: string;
567
- }, {
568
- contextId: string;
569
- }>;
224
+ }, z.core.$strip>;
570
225
  /**
571
226
  * Response of `POST /session/device/activate`.
572
227
  *
@@ -593,311 +248,46 @@ export declare const deviceActivateResponseSchema: z.ZodObject<{
593
248
  user: z.ZodObject<{
594
249
  id: z.ZodString;
595
250
  username: z.ZodString;
596
- name: z.ZodOptional<z.ZodType<import("./userResponse").UserNameResponse, z.ZodTypeDef, import("./userResponse").UserNameResponse>>;
251
+ name: z.ZodOptional<z.ZodType<import("./userResponse").UserNameResponse, unknown, z.core.$ZodTypeInternals<import("./userResponse").UserNameResponse, unknown>>>;
597
252
  avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
598
- /**
599
- * Named Bloom color preset (e.g. `"blue"`), or null when the account has
600
- * none. Same shape as `userResponseSchema.color` — one spelling of one fact,
601
- * so a consumer that themes a row from either source reads the same values.
602
- */
603
253
  color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
604
- }, "strip", z.ZodTypeAny, {
605
- username: string;
606
- id: string;
607
- color?: string | null | undefined;
608
- name?: import("./userResponse").UserNameResponse | undefined;
609
- avatar?: string | null | undefined;
610
- }, {
611
- username: string;
612
- id: string;
613
- color?: string | null | undefined;
614
- name?: import("./userResponse").UserNameResponse | undefined;
615
- avatar?: string | null | undefined;
616
- }>;
254
+ }, z.core.$strip>;
617
255
  contexts: z.ZodArray<z.ZodObject<{
618
256
  id: z.ZodString;
619
257
  accountId: z.ZodString;
620
- kind: z.ZodEnum<["personal", "organization", "project", "bot", "channel", "community"]>;
621
- relationship: z.ZodEnum<["self", "owner", "member"]>;
258
+ kind: z.ZodEnum<{
259
+ personal: "personal";
260
+ organization: "organization";
261
+ project: "project";
262
+ bot: "bot";
263
+ channel: "channel";
264
+ community: "community";
265
+ }>;
266
+ relationship: z.ZodEnum<{
267
+ owner: "owner";
268
+ self: "self";
269
+ member: "member";
270
+ }>;
622
271
  account: z.ZodObject<{
623
272
  id: z.ZodString;
624
273
  username: z.ZodString;
625
- name: z.ZodOptional<z.ZodType<import("./userResponse").UserNameResponse, z.ZodTypeDef, import("./userResponse").UserNameResponse>>;
274
+ name: z.ZodOptional<z.ZodType<import("./userResponse").UserNameResponse, unknown, z.core.$ZodTypeInternals<import("./userResponse").UserNameResponse, unknown>>>;
626
275
  avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
627
- /**
628
- * Named Bloom color preset (e.g. `"blue"`), or null when the account has
629
- * none. Same shape as `userResponseSchema.color` — one spelling of one fact,
630
- * so a consumer that themes a row from either source reads the same values.
631
- */
632
276
  color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
633
- }, "strip", z.ZodTypeAny, {
634
- username: string;
635
- id: string;
636
- color?: string | null | undefined;
637
- name?: import("./userResponse").UserNameResponse | undefined;
638
- avatar?: string | null | undefined;
639
- }, {
640
- username: string;
641
- id: string;
642
- color?: string | null | undefined;
643
- name?: import("./userResponse").UserNameResponse | undefined;
644
- avatar?: string | null | undefined;
645
- }>;
277
+ }, z.core.$strip>;
646
278
  onDevice: z.ZodBoolean;
647
279
  available: z.ZodBoolean;
648
280
  active: z.ZodBoolean;
649
281
  lastUsedAt: z.ZodNullable<z.ZodNumber>;
650
- }, "strip", z.ZodTypeAny, {
651
- active: boolean;
652
- kind: "personal" | "organization" | "project" | "bot" | "channel" | "community";
653
- accountId: string;
654
- id: string;
655
- lastUsedAt: number | null;
656
- relationship: "owner" | "self" | "member";
657
- account: {
658
- username: string;
659
- id: string;
660
- color?: string | null | undefined;
661
- name?: import("./userResponse").UserNameResponse | undefined;
662
- avatar?: string | null | undefined;
663
- };
664
- onDevice: boolean;
665
- available: boolean;
666
- }, {
667
- active: boolean;
668
- kind: "personal" | "organization" | "project" | "bot" | "channel" | "community";
669
- accountId: string;
670
- id: string;
671
- lastUsedAt: number | null;
672
- relationship: "owner" | "self" | "member";
673
- account: {
674
- username: string;
675
- id: string;
676
- color?: string | null | undefined;
677
- name?: import("./userResponse").UserNameResponse | undefined;
678
- avatar?: string | null | undefined;
679
- };
680
- onDevice: boolean;
681
- available: boolean;
682
- }>, "many">;
683
- }, "strip", z.ZodTypeAny, {
684
- id: string;
685
- user: {
686
- username: string;
687
- id: string;
688
- color?: string | null | undefined;
689
- name?: import("./userResponse").UserNameResponse | undefined;
690
- avatar?: string | null | undefined;
691
- };
692
- authuser: number;
693
- userId: string;
694
- contexts: {
695
- active: boolean;
696
- kind: "personal" | "organization" | "project" | "bot" | "channel" | "community";
697
- accountId: string;
698
- id: string;
699
- lastUsedAt: number | null;
700
- relationship: "owner" | "self" | "member";
701
- account: {
702
- username: string;
703
- id: string;
704
- color?: string | null | undefined;
705
- name?: import("./userResponse").UserNameResponse | undefined;
706
- avatar?: string | null | undefined;
707
- };
708
- onDevice: boolean;
709
- available: boolean;
710
- }[];
711
- }, {
712
- id: string;
713
- user: {
714
- username: string;
715
- id: string;
716
- color?: string | null | undefined;
717
- name?: import("./userResponse").UserNameResponse | undefined;
718
- avatar?: string | null | undefined;
719
- };
720
- authuser: number;
721
- userId: string;
722
- contexts: {
723
- active: boolean;
724
- kind: "personal" | "organization" | "project" | "bot" | "channel" | "community";
725
- accountId: string;
726
- id: string;
727
- lastUsedAt: number | null;
728
- relationship: "owner" | "self" | "member";
729
- account: {
730
- username: string;
731
- id: string;
732
- color?: string | null | undefined;
733
- name?: import("./userResponse").UserNameResponse | undefined;
734
- avatar?: string | null | undefined;
735
- };
736
- onDevice: boolean;
737
- available: boolean;
738
- }[];
739
- }>, "many">;
282
+ }, z.core.$strip>>;
283
+ }, z.core.$strip>>;
740
284
  updatedAt: z.ZodNumber;
741
- }, "strip", z.ZodTypeAny, {
742
- updatedAt: number;
743
- deviceId: string;
744
- revision: number;
745
- activeContextId: string | null;
746
- principals: {
747
- id: string;
748
- user: {
749
- username: string;
750
- id: string;
751
- color?: string | null | undefined;
752
- name?: import("./userResponse").UserNameResponse | undefined;
753
- avatar?: string | null | undefined;
754
- };
755
- authuser: number;
756
- userId: string;
757
- contexts: {
758
- active: boolean;
759
- kind: "personal" | "organization" | "project" | "bot" | "channel" | "community";
760
- accountId: string;
761
- id: string;
762
- lastUsedAt: number | null;
763
- relationship: "owner" | "self" | "member";
764
- account: {
765
- username: string;
766
- id: string;
767
- color?: string | null | undefined;
768
- name?: import("./userResponse").UserNameResponse | undefined;
769
- avatar?: string | null | undefined;
770
- };
771
- onDevice: boolean;
772
- available: boolean;
773
- }[];
774
- }[];
775
- }, {
776
- updatedAt: number;
777
- deviceId: string;
778
- revision: number;
779
- activeContextId: string | null;
780
- principals: {
781
- id: string;
782
- user: {
783
- username: string;
784
- id: string;
785
- color?: string | null | undefined;
786
- name?: import("./userResponse").UserNameResponse | undefined;
787
- avatar?: string | null | undefined;
788
- };
789
- authuser: number;
790
- userId: string;
791
- contexts: {
792
- active: boolean;
793
- kind: "personal" | "organization" | "project" | "bot" | "channel" | "community";
794
- accountId: string;
795
- id: string;
796
- lastUsedAt: number | null;
797
- relationship: "owner" | "self" | "member";
798
- account: {
799
- username: string;
800
- id: string;
801
- color?: string | null | undefined;
802
- name?: import("./userResponse").UserNameResponse | undefined;
803
- avatar?: string | null | undefined;
804
- };
805
- onDevice: boolean;
806
- available: boolean;
807
- }[];
808
- }[];
809
- }>;
285
+ }, z.core.$strip>;
810
286
  activeToken: z.ZodNullable<z.ZodObject<{
811
287
  accessToken: z.ZodString;
812
288
  expiresAt: z.ZodString;
813
- }, "strip", z.ZodTypeAny, {
814
- expiresAt: string;
815
- accessToken: string;
816
- }, {
817
- expiresAt: string;
818
- accessToken: string;
819
- }>>;
820
- }, "strip", z.ZodTypeAny, {
821
- activeToken: {
822
- expiresAt: string;
823
- accessToken: string;
824
- } | null;
825
- directory: {
826
- updatedAt: number;
827
- deviceId: string;
828
- revision: number;
829
- activeContextId: string | null;
830
- principals: {
831
- id: string;
832
- user: {
833
- username: string;
834
- id: string;
835
- color?: string | null | undefined;
836
- name?: import("./userResponse").UserNameResponse | undefined;
837
- avatar?: string | null | undefined;
838
- };
839
- authuser: number;
840
- userId: string;
841
- contexts: {
842
- active: boolean;
843
- kind: "personal" | "organization" | "project" | "bot" | "channel" | "community";
844
- accountId: string;
845
- id: string;
846
- lastUsedAt: number | null;
847
- relationship: "owner" | "self" | "member";
848
- account: {
849
- username: string;
850
- id: string;
851
- color?: string | null | undefined;
852
- name?: import("./userResponse").UserNameResponse | undefined;
853
- avatar?: string | null | undefined;
854
- };
855
- onDevice: boolean;
856
- available: boolean;
857
- }[];
858
- }[];
859
- };
860
- }, {
861
- activeToken: {
862
- expiresAt: string;
863
- accessToken: string;
864
- } | null;
865
- directory: {
866
- updatedAt: number;
867
- deviceId: string;
868
- revision: number;
869
- activeContextId: string | null;
870
- principals: {
871
- id: string;
872
- user: {
873
- username: string;
874
- id: string;
875
- color?: string | null | undefined;
876
- name?: import("./userResponse").UserNameResponse | undefined;
877
- avatar?: string | null | undefined;
878
- };
879
- authuser: number;
880
- userId: string;
881
- contexts: {
882
- active: boolean;
883
- kind: "personal" | "organization" | "project" | "bot" | "channel" | "community";
884
- accountId: string;
885
- id: string;
886
- lastUsedAt: number | null;
887
- relationship: "owner" | "self" | "member";
888
- account: {
889
- username: string;
890
- id: string;
891
- color?: string | null | undefined;
892
- name?: import("./userResponse").UserNameResponse | undefined;
893
- avatar?: string | null | undefined;
894
- };
895
- onDevice: boolean;
896
- available: boolean;
897
- }[];
898
- }[];
899
- };
900
- }>;
289
+ }, z.core.$strip>>;
290
+ }, z.core.$strip>;
901
291
  /**
902
292
  * Response of the CONTEXT-aware removals — `POST /session/device/signout` with
903
293
  * `{ contextId }` (one `principal → account` pair) or `{ principalId }` (one
@@ -934,220 +324,41 @@ export declare const deviceDirectorySyncSchema: z.ZodObject<{
934
324
  user: z.ZodObject<{
935
325
  id: z.ZodString;
936
326
  username: z.ZodString;
937
- name: z.ZodOptional<z.ZodType<import("./userResponse").UserNameResponse, z.ZodTypeDef, import("./userResponse").UserNameResponse>>;
327
+ name: z.ZodOptional<z.ZodType<import("./userResponse").UserNameResponse, unknown, z.core.$ZodTypeInternals<import("./userResponse").UserNameResponse, unknown>>>;
938
328
  avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
939
- /**
940
- * Named Bloom color preset (e.g. `"blue"`), or null when the account has
941
- * none. Same shape as `userResponseSchema.color` — one spelling of one fact,
942
- * so a consumer that themes a row from either source reads the same values.
943
- */
944
329
  color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
945
- }, "strip", z.ZodTypeAny, {
946
- username: string;
947
- id: string;
948
- color?: string | null | undefined;
949
- name?: import("./userResponse").UserNameResponse | undefined;
950
- avatar?: string | null | undefined;
951
- }, {
952
- username: string;
953
- id: string;
954
- color?: string | null | undefined;
955
- name?: import("./userResponse").UserNameResponse | undefined;
956
- avatar?: string | null | undefined;
957
- }>;
330
+ }, z.core.$strip>;
958
331
  contexts: z.ZodArray<z.ZodObject<{
959
332
  id: z.ZodString;
960
333
  accountId: z.ZodString;
961
- kind: z.ZodEnum<["personal", "organization", "project", "bot", "channel", "community"]>;
962
- relationship: z.ZodEnum<["self", "owner", "member"]>;
334
+ kind: z.ZodEnum<{
335
+ personal: "personal";
336
+ organization: "organization";
337
+ project: "project";
338
+ bot: "bot";
339
+ channel: "channel";
340
+ community: "community";
341
+ }>;
342
+ relationship: z.ZodEnum<{
343
+ owner: "owner";
344
+ self: "self";
345
+ member: "member";
346
+ }>;
963
347
  account: z.ZodObject<{
964
348
  id: z.ZodString;
965
349
  username: z.ZodString;
966
- name: z.ZodOptional<z.ZodType<import("./userResponse").UserNameResponse, z.ZodTypeDef, import("./userResponse").UserNameResponse>>;
350
+ name: z.ZodOptional<z.ZodType<import("./userResponse").UserNameResponse, unknown, z.core.$ZodTypeInternals<import("./userResponse").UserNameResponse, unknown>>>;
967
351
  avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
968
- /**
969
- * Named Bloom color preset (e.g. `"blue"`), or null when the account has
970
- * none. Same shape as `userResponseSchema.color` — one spelling of one fact,
971
- * so a consumer that themes a row from either source reads the same values.
972
- */
973
352
  color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
974
- }, "strip", z.ZodTypeAny, {
975
- username: string;
976
- id: string;
977
- color?: string | null | undefined;
978
- name?: import("./userResponse").UserNameResponse | undefined;
979
- avatar?: string | null | undefined;
980
- }, {
981
- username: string;
982
- id: string;
983
- color?: string | null | undefined;
984
- name?: import("./userResponse").UserNameResponse | undefined;
985
- avatar?: string | null | undefined;
986
- }>;
353
+ }, z.core.$strip>;
987
354
  onDevice: z.ZodBoolean;
988
355
  available: z.ZodBoolean;
989
356
  active: z.ZodBoolean;
990
357
  lastUsedAt: z.ZodNullable<z.ZodNumber>;
991
- }, "strip", z.ZodTypeAny, {
992
- active: boolean;
993
- kind: "personal" | "organization" | "project" | "bot" | "channel" | "community";
994
- accountId: string;
995
- id: string;
996
- lastUsedAt: number | null;
997
- relationship: "owner" | "self" | "member";
998
- account: {
999
- username: string;
1000
- id: string;
1001
- color?: string | null | undefined;
1002
- name?: import("./userResponse").UserNameResponse | undefined;
1003
- avatar?: string | null | undefined;
1004
- };
1005
- onDevice: boolean;
1006
- available: boolean;
1007
- }, {
1008
- active: boolean;
1009
- kind: "personal" | "organization" | "project" | "bot" | "channel" | "community";
1010
- accountId: string;
1011
- id: string;
1012
- lastUsedAt: number | null;
1013
- relationship: "owner" | "self" | "member";
1014
- account: {
1015
- username: string;
1016
- id: string;
1017
- color?: string | null | undefined;
1018
- name?: import("./userResponse").UserNameResponse | undefined;
1019
- avatar?: string | null | undefined;
1020
- };
1021
- onDevice: boolean;
1022
- available: boolean;
1023
- }>, "many">;
1024
- }, "strip", z.ZodTypeAny, {
1025
- id: string;
1026
- user: {
1027
- username: string;
1028
- id: string;
1029
- color?: string | null | undefined;
1030
- name?: import("./userResponse").UserNameResponse | undefined;
1031
- avatar?: string | null | undefined;
1032
- };
1033
- authuser: number;
1034
- userId: string;
1035
- contexts: {
1036
- active: boolean;
1037
- kind: "personal" | "organization" | "project" | "bot" | "channel" | "community";
1038
- accountId: string;
1039
- id: string;
1040
- lastUsedAt: number | null;
1041
- relationship: "owner" | "self" | "member";
1042
- account: {
1043
- username: string;
1044
- id: string;
1045
- color?: string | null | undefined;
1046
- name?: import("./userResponse").UserNameResponse | undefined;
1047
- avatar?: string | null | undefined;
1048
- };
1049
- onDevice: boolean;
1050
- available: boolean;
1051
- }[];
1052
- }, {
1053
- id: string;
1054
- user: {
1055
- username: string;
1056
- id: string;
1057
- color?: string | null | undefined;
1058
- name?: import("./userResponse").UserNameResponse | undefined;
1059
- avatar?: string | null | undefined;
1060
- };
1061
- authuser: number;
1062
- userId: string;
1063
- contexts: {
1064
- active: boolean;
1065
- kind: "personal" | "organization" | "project" | "bot" | "channel" | "community";
1066
- accountId: string;
1067
- id: string;
1068
- lastUsedAt: number | null;
1069
- relationship: "owner" | "self" | "member";
1070
- account: {
1071
- username: string;
1072
- id: string;
1073
- color?: string | null | undefined;
1074
- name?: import("./userResponse").UserNameResponse | undefined;
1075
- avatar?: string | null | undefined;
1076
- };
1077
- onDevice: boolean;
1078
- available: boolean;
1079
- }[];
1080
- }>, "many">;
358
+ }, z.core.$strip>>;
359
+ }, z.core.$strip>>;
1081
360
  updatedAt: z.ZodNumber;
1082
- }, "strip", z.ZodTypeAny, {
1083
- updatedAt: number;
1084
- deviceId: string;
1085
- revision: number;
1086
- activeContextId: string | null;
1087
- principals: {
1088
- id: string;
1089
- user: {
1090
- username: string;
1091
- id: string;
1092
- color?: string | null | undefined;
1093
- name?: import("./userResponse").UserNameResponse | undefined;
1094
- avatar?: string | null | undefined;
1095
- };
1096
- authuser: number;
1097
- userId: string;
1098
- contexts: {
1099
- active: boolean;
1100
- kind: "personal" | "organization" | "project" | "bot" | "channel" | "community";
1101
- accountId: string;
1102
- id: string;
1103
- lastUsedAt: number | null;
1104
- relationship: "owner" | "self" | "member";
1105
- account: {
1106
- username: string;
1107
- id: string;
1108
- color?: string | null | undefined;
1109
- name?: import("./userResponse").UserNameResponse | undefined;
1110
- avatar?: string | null | undefined;
1111
- };
1112
- onDevice: boolean;
1113
- available: boolean;
1114
- }[];
1115
- }[];
1116
- }, {
1117
- updatedAt: number;
1118
- deviceId: string;
1119
- revision: number;
1120
- activeContextId: string | null;
1121
- principals: {
1122
- id: string;
1123
- user: {
1124
- username: string;
1125
- id: string;
1126
- color?: string | null | undefined;
1127
- name?: import("./userResponse").UserNameResponse | undefined;
1128
- avatar?: string | null | undefined;
1129
- };
1130
- authuser: number;
1131
- userId: string;
1132
- contexts: {
1133
- active: boolean;
1134
- kind: "personal" | "organization" | "project" | "bot" | "channel" | "community";
1135
- accountId: string;
1136
- id: string;
1137
- lastUsedAt: number | null;
1138
- relationship: "owner" | "self" | "member";
1139
- account: {
1140
- username: string;
1141
- id: string;
1142
- color?: string | null | undefined;
1143
- name?: import("./userResponse").UserNameResponse | undefined;
1144
- avatar?: string | null | undefined;
1145
- };
1146
- onDevice: boolean;
1147
- available: boolean;
1148
- }[];
1149
- }[];
1150
- }>;
361
+ }, z.core.$strip>;
1151
362
  state: z.ZodObject<{
1152
363
  deviceId: z.ZodString;
1153
364
  accounts: z.ZodArray<z.ZodObject<{
@@ -1155,158 +366,16 @@ export declare const deviceDirectorySyncSchema: z.ZodObject<{
1155
366
  sessionId: z.ZodString;
1156
367
  authuser: z.ZodNumber;
1157
368
  operatedByUserId: z.ZodOptional<z.ZodString>;
1158
- }, "strip", z.ZodTypeAny, {
1159
- accountId: string;
1160
- sessionId: string;
1161
- authuser: number;
1162
- operatedByUserId?: string | undefined;
1163
- }, {
1164
- accountId: string;
1165
- sessionId: string;
1166
- authuser: number;
1167
- operatedByUserId?: string | undefined;
1168
- }>, "many">;
369
+ }, z.core.$strip>>;
1169
370
  activeAccountId: z.ZodNullable<z.ZodString>;
1170
371
  revision: z.ZodNumber;
1171
372
  updatedAt: z.ZodNumber;
1172
- }, "strip", z.ZodTypeAny, {
1173
- updatedAt: number;
1174
- activeAccountId: string | null;
1175
- deviceId: string;
1176
- accounts: {
1177
- accountId: string;
1178
- sessionId: string;
1179
- authuser: number;
1180
- operatedByUserId?: string | undefined;
1181
- }[];
1182
- revision: number;
1183
- }, {
1184
- updatedAt: number;
1185
- activeAccountId: string | null;
1186
- deviceId: string;
1187
- accounts: {
1188
- accountId: string;
1189
- sessionId: string;
1190
- authuser: number;
1191
- operatedByUserId?: string | undefined;
1192
- }[];
1193
- revision: number;
1194
- }>;
373
+ }, z.core.$strip>;
1195
374
  activeToken: z.ZodNullable<z.ZodObject<{
1196
375
  accessToken: z.ZodString;
1197
376
  expiresAt: z.ZodString;
1198
- }, "strip", z.ZodTypeAny, {
1199
- expiresAt: string;
1200
- accessToken: string;
1201
- }, {
1202
- expiresAt: string;
1203
- accessToken: string;
1204
- }>>;
1205
- }, "strip", z.ZodTypeAny, {
1206
- state: {
1207
- updatedAt: number;
1208
- activeAccountId: string | null;
1209
- deviceId: string;
1210
- accounts: {
1211
- accountId: string;
1212
- sessionId: string;
1213
- authuser: number;
1214
- operatedByUserId?: string | undefined;
1215
- }[];
1216
- revision: number;
1217
- };
1218
- activeToken: {
1219
- expiresAt: string;
1220
- accessToken: string;
1221
- } | null;
1222
- directory: {
1223
- updatedAt: number;
1224
- deviceId: string;
1225
- revision: number;
1226
- activeContextId: string | null;
1227
- principals: {
1228
- id: string;
1229
- user: {
1230
- username: string;
1231
- id: string;
1232
- color?: string | null | undefined;
1233
- name?: import("./userResponse").UserNameResponse | undefined;
1234
- avatar?: string | null | undefined;
1235
- };
1236
- authuser: number;
1237
- userId: string;
1238
- contexts: {
1239
- active: boolean;
1240
- kind: "personal" | "organization" | "project" | "bot" | "channel" | "community";
1241
- accountId: string;
1242
- id: string;
1243
- lastUsedAt: number | null;
1244
- relationship: "owner" | "self" | "member";
1245
- account: {
1246
- username: string;
1247
- id: string;
1248
- color?: string | null | undefined;
1249
- name?: import("./userResponse").UserNameResponse | undefined;
1250
- avatar?: string | null | undefined;
1251
- };
1252
- onDevice: boolean;
1253
- available: boolean;
1254
- }[];
1255
- }[];
1256
- };
1257
- }, {
1258
- state: {
1259
- updatedAt: number;
1260
- activeAccountId: string | null;
1261
- deviceId: string;
1262
- accounts: {
1263
- accountId: string;
1264
- sessionId: string;
1265
- authuser: number;
1266
- operatedByUserId?: string | undefined;
1267
- }[];
1268
- revision: number;
1269
- };
1270
- activeToken: {
1271
- expiresAt: string;
1272
- accessToken: string;
1273
- } | null;
1274
- directory: {
1275
- updatedAt: number;
1276
- deviceId: string;
1277
- revision: number;
1278
- activeContextId: string | null;
1279
- principals: {
1280
- id: string;
1281
- user: {
1282
- username: string;
1283
- id: string;
1284
- color?: string | null | undefined;
1285
- name?: import("./userResponse").UserNameResponse | undefined;
1286
- avatar?: string | null | undefined;
1287
- };
1288
- authuser: number;
1289
- userId: string;
1290
- contexts: {
1291
- active: boolean;
1292
- kind: "personal" | "organization" | "project" | "bot" | "channel" | "community";
1293
- accountId: string;
1294
- id: string;
1295
- lastUsedAt: number | null;
1296
- relationship: "owner" | "self" | "member";
1297
- account: {
1298
- username: string;
1299
- id: string;
1300
- color?: string | null | undefined;
1301
- name?: import("./userResponse").UserNameResponse | undefined;
1302
- avatar?: string | null | undefined;
1303
- };
1304
- onDevice: boolean;
1305
- available: boolean;
1306
- }[];
1307
- }[];
1308
- };
1309
- }>;
377
+ }, z.core.$strip>>;
378
+ }, z.core.$strip>;
1310
379
  export type DeviceContextRelationship = z.infer<typeof deviceContextRelationshipSchema>;
1311
380
  export type DeviceDirectorySync = z.infer<typeof deviceDirectorySyncSchema>;
1312
381
  export type DeviceDirectoryProfile = z.infer<typeof deviceDirectoryProfileSchema>;