@constructive-io/react 0.8.0 → 0.8.2

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 (254) hide show
  1. package/README.md +0 -8
  2. package/admin/orm/input-types.d.ts +33 -127
  3. package/admin/schema-types.d.ts +20 -110
  4. package/admin/types.d.ts +0 -19
  5. package/auth/hooks/index.d.ts +1 -1
  6. package/auth/hooks/index.js +1 -1
  7. package/auth/hooks/invalidation.d.ts +16 -16
  8. package/auth/hooks/invalidation.js +33 -33
  9. package/auth/hooks/mutation-keys.d.ts +32 -32
  10. package/auth/hooks/mutation-keys.js +20 -20
  11. package/auth/hooks/mutations/index.d.ts +9 -9
  12. package/auth/hooks/mutations/index.js +9 -9
  13. package/auth/hooks/queries/index.d.ts +6 -6
  14. package/auth/hooks/queries/index.js +6 -6
  15. package/auth/hooks/query-keys.d.ts +38 -38
  16. package/auth/hooks/query-keys.js +23 -23
  17. package/auth/orm/index.d.ts +6 -6
  18. package/auth/orm/index.js +6 -6
  19. package/auth/orm/input-types.d.ts +279 -327
  20. package/auth/orm/input-types.js +9 -1
  21. package/auth/orm/models/index.d.ts +3 -3
  22. package/auth/orm/models/index.js +7 -7
  23. package/auth/schema-types.d.ts +276 -188
  24. package/auth/types.d.ts +14 -24
  25. package/esm/admin/orm/input-types.d.ts +33 -127
  26. package/esm/admin/schema-types.d.ts +20 -110
  27. package/esm/admin/types.d.ts +0 -19
  28. package/esm/auth/hooks/index.d.ts +1 -1
  29. package/esm/auth/hooks/index.js +1 -1
  30. package/esm/auth/hooks/invalidation.d.ts +16 -16
  31. package/esm/auth/hooks/invalidation.js +34 -34
  32. package/esm/auth/hooks/mutation-keys.d.ts +32 -32
  33. package/esm/auth/hooks/mutation-keys.js +19 -19
  34. package/esm/auth/hooks/mutations/index.d.ts +9 -9
  35. package/esm/auth/hooks/mutations/index.js +9 -9
  36. package/esm/auth/hooks/queries/index.d.ts +6 -6
  37. package/esm/auth/hooks/queries/index.js +6 -6
  38. package/esm/auth/hooks/query-keys.d.ts +38 -38
  39. package/esm/auth/hooks/query-keys.js +22 -22
  40. package/esm/auth/orm/index.d.ts +6 -6
  41. package/esm/auth/orm/index.js +6 -6
  42. package/esm/auth/orm/input-types.d.ts +279 -327
  43. package/esm/auth/orm/input-types.js +9 -1
  44. package/esm/auth/orm/models/index.d.ts +3 -3
  45. package/esm/auth/orm/models/index.js +3 -3
  46. package/esm/auth/schema-types.d.ts +276 -188
  47. package/esm/auth/types.d.ts +14 -24
  48. package/esm/index.d.ts +5 -1
  49. package/esm/index.js +5 -1
  50. package/esm/objects/orm/input-types.d.ts +17 -48
  51. package/esm/objects/schema-types.d.ts +3 -37
  52. package/esm/objects/types.d.ts +0 -6
  53. package/esm/public/hooks/index.d.ts +1 -1
  54. package/esm/public/hooks/index.js +1 -1
  55. package/esm/public/hooks/invalidation.d.ts +77 -53
  56. package/esm/public/hooks/invalidation.js +202 -138
  57. package/esm/public/hooks/mutation-keys.d.ts +180 -122
  58. package/esm/public/hooks/mutation-keys.js +129 -86
  59. package/esm/public/hooks/mutations/index.d.ts +50 -33
  60. package/esm/public/hooks/mutations/index.js +50 -33
  61. package/esm/public/hooks/mutations/useAcceptDatabaseTransferMutation.d.ts +20 -0
  62. package/esm/public/hooks/mutations/useAcceptDatabaseTransferMutation.js +23 -0
  63. package/esm/public/hooks/mutations/useCancelDatabaseTransferMutation.d.ts +20 -0
  64. package/esm/public/hooks/mutations/useCancelDatabaseTransferMutation.js +23 -0
  65. package/esm/public/hooks/mutations/useConstructBlueprintMutation.d.ts +20 -0
  66. package/esm/public/hooks/mutations/useConstructBlueprintMutation.js +23 -0
  67. package/esm/public/hooks/mutations/useCopyTemplateToBlueprintMutation.d.ts +20 -0
  68. package/esm/public/hooks/mutations/useCopyTemplateToBlueprintMutation.js +23 -0
  69. package/esm/public/hooks/mutations/useCreateBlueprintMutation.d.ts +34 -0
  70. package/esm/public/hooks/mutations/useCreateBlueprintMutation.js +31 -0
  71. package/esm/public/hooks/mutations/useCreateBlueprintTemplateMutation.d.ts +34 -0
  72. package/esm/public/hooks/mutations/useCreateBlueprintTemplateMutation.js +31 -0
  73. package/esm/public/hooks/mutations/useCreateDatabaseTransferMutation.d.ts +34 -0
  74. package/esm/public/hooks/mutations/useCreateDatabaseTransferMutation.js +31 -0
  75. package/esm/public/hooks/mutations/useCreateEmbeddingChunkMutation.d.ts +34 -0
  76. package/esm/public/hooks/mutations/useCreateEmbeddingChunkMutation.js +31 -0
  77. package/esm/public/hooks/mutations/useCreateEnumMutation.d.ts +34 -0
  78. package/esm/public/hooks/mutations/{useCreateUuidModuleMutation.js → useCreateEnumMutation.js} +7 -7
  79. package/esm/public/hooks/mutations/useDeleteBlueprintMutation.d.ts +38 -0
  80. package/esm/public/hooks/mutations/useDeleteBlueprintMutation.js +36 -0
  81. package/esm/public/hooks/mutations/useDeleteBlueprintTemplateMutation.d.ts +38 -0
  82. package/esm/public/hooks/mutations/useDeleteBlueprintTemplateMutation.js +36 -0
  83. package/esm/public/hooks/mutations/useDeleteDatabaseTransferMutation.d.ts +38 -0
  84. package/esm/public/hooks/mutations/useDeleteDatabaseTransferMutation.js +36 -0
  85. package/esm/public/hooks/mutations/useDeleteEmbeddingChunkMutation.d.ts +38 -0
  86. package/esm/public/hooks/mutations/useDeleteEmbeddingChunkMutation.js +36 -0
  87. package/esm/public/hooks/mutations/useDeleteEnumMutation.d.ts +38 -0
  88. package/esm/public/hooks/mutations/{useDeleteUuidModuleMutation.js → useDeleteEnumMutation.js} +8 -8
  89. package/esm/public/hooks/mutations/useRejectDatabaseTransferMutation.d.ts +20 -0
  90. package/esm/public/hooks/mutations/useRejectDatabaseTransferMutation.js +23 -0
  91. package/esm/public/hooks/mutations/useUpdateBlueprintMutation.d.ts +40 -0
  92. package/esm/public/hooks/mutations/useUpdateBlueprintMutation.js +37 -0
  93. package/esm/public/hooks/mutations/useUpdateBlueprintTemplateMutation.d.ts +40 -0
  94. package/esm/public/hooks/mutations/useUpdateBlueprintTemplateMutation.js +37 -0
  95. package/esm/public/hooks/mutations/useUpdateDatabaseTransferMutation.d.ts +40 -0
  96. package/esm/public/hooks/mutations/useUpdateDatabaseTransferMutation.js +37 -0
  97. package/esm/public/hooks/mutations/useUpdateEmbeddingChunkMutation.d.ts +40 -0
  98. package/esm/public/hooks/mutations/useUpdateEmbeddingChunkMutation.js +37 -0
  99. package/esm/public/hooks/mutations/useUpdateEnumMutation.d.ts +40 -0
  100. package/esm/public/hooks/mutations/{useUpdateUuidModuleMutation.js → useUpdateEnumMutation.js} +10 -10
  101. package/esm/public/hooks/queries/index.d.ts +25 -17
  102. package/esm/public/hooks/queries/index.js +25 -17
  103. package/esm/public/hooks/queries/useBlueprintQuery.d.ts +65 -0
  104. package/esm/public/hooks/queries/useBlueprintQuery.js +47 -0
  105. package/esm/public/hooks/queries/useBlueprintTemplateQuery.d.ts +65 -0
  106. package/esm/public/hooks/queries/useBlueprintTemplateQuery.js +47 -0
  107. package/esm/public/hooks/queries/useBlueprintTemplatesQuery.d.ts +69 -0
  108. package/esm/public/hooks/queries/useBlueprintTemplatesQuery.js +32 -0
  109. package/esm/public/hooks/queries/useBlueprintsQuery.d.ts +69 -0
  110. package/esm/public/hooks/queries/useBlueprintsQuery.js +32 -0
  111. package/esm/public/hooks/queries/useDatabaseTransferQuery.d.ts +65 -0
  112. package/esm/public/hooks/queries/useDatabaseTransferQuery.js +47 -0
  113. package/esm/public/hooks/queries/useDatabaseTransfersQuery.d.ts +69 -0
  114. package/esm/public/hooks/queries/useDatabaseTransfersQuery.js +32 -0
  115. package/esm/public/hooks/queries/useEmbeddingChunkQuery.d.ts +65 -0
  116. package/esm/public/hooks/queries/useEmbeddingChunkQuery.js +47 -0
  117. package/esm/public/hooks/queries/useEmbeddingChunksQuery.d.ts +69 -0
  118. package/esm/public/hooks/queries/useEmbeddingChunksQuery.js +32 -0
  119. package/esm/public/hooks/queries/useEnumQuery.d.ts +65 -0
  120. package/esm/public/hooks/queries/{useUuidModuleQuery.js → useEnumQuery.js} +11 -11
  121. package/esm/public/hooks/queries/useEnumsQuery.d.ts +69 -0
  122. package/esm/public/hooks/queries/{useUuidModulesQuery.js → useEnumsQuery.js} +11 -11
  123. package/esm/public/hooks/query-keys.d.ts +180 -124
  124. package/esm/public/hooks/query-keys.js +103 -71
  125. package/esm/public/orm/index.d.ts +81 -48
  126. package/esm/public/orm/index.js +26 -18
  127. package/esm/public/orm/input-types.d.ts +2447 -2980
  128. package/esm/public/orm/input-types.js +26 -1
  129. package/esm/public/orm/models/blueprint.d.ts +56 -0
  130. package/esm/public/orm/models/blueprint.js +94 -0
  131. package/esm/public/orm/models/blueprintTemplate.d.ts +56 -0
  132. package/esm/public/orm/models/blueprintTemplate.js +94 -0
  133. package/esm/public/orm/models/databaseTransfer.d.ts +56 -0
  134. package/esm/public/orm/models/databaseTransfer.js +94 -0
  135. package/esm/public/orm/models/embeddingChunk.d.ts +56 -0
  136. package/esm/public/orm/models/embeddingChunk.js +94 -0
  137. package/esm/public/orm/models/enum.d.ts +56 -0
  138. package/esm/public/orm/models/{uuidModule.js → enum.js} +23 -23
  139. package/esm/public/orm/models/index.d.ts +13 -9
  140. package/esm/public/orm/models/index.js +13 -9
  141. package/esm/public/orm/mutation/index.d.ts +98 -50
  142. package/esm/public/orm/mutation/index.js +126 -66
  143. package/esm/public/schema-types.d.ts +2328 -2206
  144. package/esm/public/types.d.ts +161 -379
  145. package/index.d.ts +5 -1
  146. package/index.js +5 -1
  147. package/objects/orm/input-types.d.ts +17 -48
  148. package/objects/schema-types.d.ts +3 -37
  149. package/objects/types.d.ts +0 -6
  150. package/package.json +3 -3
  151. package/public/hooks/index.d.ts +1 -1
  152. package/public/hooks/index.js +1 -1
  153. package/public/hooks/invalidation.d.ts +77 -53
  154. package/public/hooks/invalidation.js +201 -137
  155. package/public/hooks/mutation-keys.d.ts +180 -122
  156. package/public/hooks/mutation-keys.js +132 -89
  157. package/public/hooks/mutations/index.d.ts +50 -33
  158. package/public/hooks/mutations/index.js +50 -33
  159. package/public/hooks/mutations/useAcceptDatabaseTransferMutation.d.ts +20 -0
  160. package/public/hooks/mutations/useAcceptDatabaseTransferMutation.js +26 -0
  161. package/public/hooks/mutations/useCancelDatabaseTransferMutation.d.ts +20 -0
  162. package/public/hooks/mutations/useCancelDatabaseTransferMutation.js +26 -0
  163. package/public/hooks/mutations/useConstructBlueprintMutation.d.ts +20 -0
  164. package/public/hooks/mutations/useConstructBlueprintMutation.js +26 -0
  165. package/public/hooks/mutations/useCopyTemplateToBlueprintMutation.d.ts +20 -0
  166. package/public/hooks/mutations/useCopyTemplateToBlueprintMutation.js +26 -0
  167. package/public/hooks/mutations/useCreateBlueprintMutation.d.ts +34 -0
  168. package/public/hooks/mutations/useCreateBlueprintMutation.js +34 -0
  169. package/public/hooks/mutations/useCreateBlueprintTemplateMutation.d.ts +34 -0
  170. package/public/hooks/mutations/useCreateBlueprintTemplateMutation.js +34 -0
  171. package/public/hooks/mutations/useCreateDatabaseTransferMutation.d.ts +34 -0
  172. package/public/hooks/mutations/useCreateDatabaseTransferMutation.js +34 -0
  173. package/public/hooks/mutations/useCreateEmbeddingChunkMutation.d.ts +34 -0
  174. package/public/hooks/mutations/useCreateEmbeddingChunkMutation.js +34 -0
  175. package/public/hooks/mutations/useCreateEnumMutation.d.ts +34 -0
  176. package/public/hooks/mutations/{useCreateUuidModuleMutation.js → useCreateEnumMutation.js} +6 -6
  177. package/public/hooks/mutations/useDeleteBlueprintMutation.d.ts +38 -0
  178. package/public/hooks/mutations/useDeleteBlueprintMutation.js +39 -0
  179. package/public/hooks/mutations/useDeleteBlueprintTemplateMutation.d.ts +38 -0
  180. package/public/hooks/mutations/useDeleteBlueprintTemplateMutation.js +39 -0
  181. package/public/hooks/mutations/useDeleteDatabaseTransferMutation.d.ts +38 -0
  182. package/public/hooks/mutations/useDeleteDatabaseTransferMutation.js +39 -0
  183. package/public/hooks/mutations/useDeleteEmbeddingChunkMutation.d.ts +38 -0
  184. package/public/hooks/mutations/useDeleteEmbeddingChunkMutation.js +39 -0
  185. package/public/hooks/mutations/useDeleteEnumMutation.d.ts +38 -0
  186. package/public/hooks/mutations/{useDeleteUuidModuleMutation.js → useDeleteEnumMutation.js} +7 -7
  187. package/public/hooks/mutations/useRejectDatabaseTransferMutation.d.ts +20 -0
  188. package/public/hooks/mutations/useRejectDatabaseTransferMutation.js +26 -0
  189. package/public/hooks/mutations/useUpdateBlueprintMutation.d.ts +40 -0
  190. package/public/hooks/mutations/useUpdateBlueprintMutation.js +40 -0
  191. package/public/hooks/mutations/useUpdateBlueprintTemplateMutation.d.ts +40 -0
  192. package/public/hooks/mutations/useUpdateBlueprintTemplateMutation.js +40 -0
  193. package/public/hooks/mutations/useUpdateDatabaseTransferMutation.d.ts +40 -0
  194. package/public/hooks/mutations/useUpdateDatabaseTransferMutation.js +40 -0
  195. package/public/hooks/mutations/useUpdateEmbeddingChunkMutation.d.ts +40 -0
  196. package/public/hooks/mutations/useUpdateEmbeddingChunkMutation.js +40 -0
  197. package/public/hooks/mutations/useUpdateEnumMutation.d.ts +40 -0
  198. package/public/hooks/mutations/{useUpdateUuidModuleMutation.js → useUpdateEnumMutation.js} +9 -9
  199. package/public/hooks/queries/index.d.ts +25 -17
  200. package/public/hooks/queries/index.js +25 -17
  201. package/public/hooks/queries/useBlueprintQuery.d.ts +65 -0
  202. package/public/hooks/queries/useBlueprintQuery.js +53 -0
  203. package/public/hooks/queries/useBlueprintTemplateQuery.d.ts +65 -0
  204. package/public/hooks/queries/useBlueprintTemplateQuery.js +53 -0
  205. package/public/hooks/queries/useBlueprintTemplatesQuery.d.ts +69 -0
  206. package/public/hooks/queries/useBlueprintTemplatesQuery.js +38 -0
  207. package/public/hooks/queries/useBlueprintsQuery.d.ts +69 -0
  208. package/public/hooks/queries/useBlueprintsQuery.js +38 -0
  209. package/public/hooks/queries/useDatabaseTransferQuery.d.ts +65 -0
  210. package/public/hooks/queries/useDatabaseTransferQuery.js +53 -0
  211. package/public/hooks/queries/useDatabaseTransfersQuery.d.ts +69 -0
  212. package/public/hooks/queries/useDatabaseTransfersQuery.js +38 -0
  213. package/public/hooks/queries/useEmbeddingChunkQuery.d.ts +65 -0
  214. package/public/hooks/queries/useEmbeddingChunkQuery.js +53 -0
  215. package/public/hooks/queries/useEmbeddingChunksQuery.d.ts +69 -0
  216. package/public/hooks/queries/useEmbeddingChunksQuery.js +38 -0
  217. package/public/hooks/queries/useEnumQuery.d.ts +65 -0
  218. package/public/hooks/queries/{useUuidModuleQuery.js → useEnumQuery.js} +14 -14
  219. package/public/hooks/queries/useEnumsQuery.d.ts +69 -0
  220. package/public/hooks/queries/{useUuidModulesQuery.js → useEnumsQuery.js} +14 -14
  221. package/public/hooks/query-keys.d.ts +180 -124
  222. package/public/hooks/query-keys.js +106 -74
  223. package/public/orm/index.d.ts +81 -48
  224. package/public/orm/index.js +26 -18
  225. package/public/orm/input-types.d.ts +2447 -2980
  226. package/public/orm/input-types.js +26 -1
  227. package/public/orm/models/blueprint.d.ts +56 -0
  228. package/public/orm/models/blueprint.js +98 -0
  229. package/public/orm/models/blueprintTemplate.d.ts +56 -0
  230. package/public/orm/models/blueprintTemplate.js +98 -0
  231. package/public/orm/models/databaseTransfer.d.ts +56 -0
  232. package/public/orm/models/databaseTransfer.js +98 -0
  233. package/public/orm/models/embeddingChunk.d.ts +56 -0
  234. package/public/orm/models/embeddingChunk.js +98 -0
  235. package/public/orm/models/enum.d.ts +56 -0
  236. package/public/orm/models/{uuidModule.js → enum.js} +25 -25
  237. package/public/orm/models/index.d.ts +13 -9
  238. package/public/orm/models/index.js +29 -21
  239. package/public/orm/mutation/index.d.ts +98 -50
  240. package/public/orm/mutation/index.js +126 -66
  241. package/public/schema-types.d.ts +2328 -2206
  242. package/public/types.d.ts +161 -379
  243. package/esm/public/hooks/mutations/useCreateUuidModuleMutation.d.ts +0 -34
  244. package/esm/public/hooks/mutations/useDeleteUuidModuleMutation.d.ts +0 -38
  245. package/esm/public/hooks/mutations/useUpdateUuidModuleMutation.d.ts +0 -40
  246. package/esm/public/hooks/queries/useUuidModuleQuery.d.ts +0 -65
  247. package/esm/public/hooks/queries/useUuidModulesQuery.d.ts +0 -69
  248. package/esm/public/orm/models/uuidModule.d.ts +0 -56
  249. package/public/hooks/mutations/useCreateUuidModuleMutation.d.ts +0 -34
  250. package/public/hooks/mutations/useDeleteUuidModuleMutation.d.ts +0 -38
  251. package/public/hooks/mutations/useUpdateUuidModuleMutation.d.ts +0 -40
  252. package/public/hooks/queries/useUuidModuleQuery.d.ts +0 -65
  253. package/public/hooks/queries/useUuidModulesQuery.d.ts +0 -69
  254. package/public/orm/models/uuidModule.d.ts +0 -56
@@ -232,26 +232,18 @@ export interface UUIDListFilter {
232
232
  export type ConstructiveInternalTypeEmail = unknown;
233
233
  export type ConstructiveInternalTypeImage = unknown;
234
234
  export type ConstructiveInternalTypeOrigin = unknown;
235
- /** Cryptocurrency wallet addresses owned by users, with network-specific validation and verification */
236
- export interface CryptoAddress {
235
+ /** User email addresses with verification and primary-email management */
236
+ export interface Email {
237
237
  id: string;
238
238
  ownerId?: string | null;
239
- /** The cryptocurrency wallet address, validated against network-specific patterns */
240
- address?: string | null;
241
- /** Whether ownership of this address has been cryptographically verified */
239
+ /** The email address */
240
+ email?: ConstructiveInternalTypeEmail | null;
241
+ /** Whether the email address has been verified via confirmation link */
242
242
  isVerified?: boolean | null;
243
- /** Whether this is the user's primary cryptocurrency address */
243
+ /** Whether this is the user's primary email address */
244
244
  isPrimary?: boolean | null;
245
245
  createdAt?: string | null;
246
246
  updatedAt?: string | null;
247
- /** TRGM similarity when searching `address`. Returns null when no trgm search filter is active. */
248
- addressTrgmSimilarity?: number | null;
249
- /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */
250
- searchScore?: number | null;
251
- }
252
- export interface RoleType {
253
- id: number;
254
- name?: string | null;
255
247
  }
256
248
  /** User phone numbers with country code, verification, and primary-number management */
257
249
  export interface PhoneNumber {
@@ -267,12 +259,19 @@ export interface PhoneNumber {
267
259
  isPrimary?: boolean | null;
268
260
  createdAt?: string | null;
269
261
  updatedAt?: string | null;
270
- /** TRGM similarity when searching `cc`. Returns null when no trgm search filter is active. */
271
- ccTrgmSimilarity?: number | null;
272
- /** TRGM similarity when searching `number`. Returns null when no trgm search filter is active. */
273
- numberTrgmSimilarity?: number | null;
274
- /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */
275
- searchScore?: number | null;
262
+ }
263
+ /** Cryptocurrency wallet addresses owned by users, with network-specific validation and verification */
264
+ export interface CryptoAddress {
265
+ id: string;
266
+ ownerId?: string | null;
267
+ /** The cryptocurrency wallet address, validated against network-specific patterns */
268
+ address?: string | null;
269
+ /** Whether ownership of this address has been cryptographically verified */
270
+ isVerified?: boolean | null;
271
+ /** Whether this is the user's primary cryptocurrency address */
272
+ isPrimary?: boolean | null;
273
+ createdAt?: string | null;
274
+ updatedAt?: string | null;
276
275
  }
277
276
  /** OAuth and social login connections linking external service accounts to users */
278
277
  export interface ConnectedAccount {
@@ -288,19 +287,13 @@ export interface ConnectedAccount {
288
287
  isVerified?: boolean | null;
289
288
  createdAt?: string | null;
290
289
  updatedAt?: string | null;
291
- /** TRGM similarity when searching `service`. Returns null when no trgm search filter is active. */
292
- serviceTrgmSimilarity?: number | null;
293
- /** TRGM similarity when searching `identifier`. Returns null when no trgm search filter is active. */
294
- identifierTrgmSimilarity?: number | null;
295
- /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */
296
- searchScore?: number | null;
297
290
  }
298
291
  /** Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) */
299
292
  export interface AuditLog {
300
293
  id: string;
301
294
  /** Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) */
302
295
  event?: string | null;
303
- /** User who performed the authentication action */
296
+ /** User who performed the authentication action; NULL if user was deleted */
304
297
  actorId?: string | null;
305
298
  /** Request origin (domain) where the auth event occurred */
306
299
  origin?: ConstructiveInternalTypeOrigin | null;
@@ -312,23 +305,10 @@ export interface AuditLog {
312
305
  success?: boolean | null;
313
306
  /** Timestamp when the audit event was recorded */
314
307
  createdAt?: string | null;
315
- /** TRGM similarity when searching `userAgent`. Returns null when no trgm search filter is active. */
316
- userAgentTrgmSimilarity?: number | null;
317
- /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */
318
- searchScore?: number | null;
319
308
  }
320
- /** User email addresses with verification and primary-email management */
321
- export interface Email {
322
- id: string;
323
- ownerId?: string | null;
324
- /** The email address */
325
- email?: ConstructiveInternalTypeEmail | null;
326
- /** Whether the email address has been verified via confirmation link */
327
- isVerified?: boolean | null;
328
- /** Whether this is the user's primary email address */
329
- isPrimary?: boolean | null;
330
- createdAt?: string | null;
331
- updatedAt?: string | null;
309
+ export interface RoleType {
310
+ id: number;
311
+ name?: string | null;
332
312
  }
333
313
  export interface User {
334
314
  id: string;
@@ -343,7 +323,7 @@ export interface User {
343
323
  searchTsvRank?: number | null;
344
324
  /** TRGM similarity when searching `displayName`. Returns null when no trgm search filter is active. */
345
325
  displayNameTrgmSimilarity?: number | null;
346
- /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */
326
+ /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */
347
327
  searchScore?: number | null;
348
328
  }
349
329
  export interface ConnectionResult<T> {
@@ -357,51 +337,50 @@ export interface PageInfo {
357
337
  startCursor?: string | null;
358
338
  endCursor?: string | null;
359
339
  }
360
- export interface CryptoAddressRelations {
340
+ export interface EmailRelations {
361
341
  owner?: User | null;
362
342
  }
363
- export interface RoleTypeRelations {
364
- }
365
343
  export interface PhoneNumberRelations {
366
344
  owner?: User | null;
367
345
  }
346
+ export interface CryptoAddressRelations {
347
+ owner?: User | null;
348
+ }
368
349
  export interface ConnectedAccountRelations {
369
350
  owner?: User | null;
370
351
  }
371
352
  export interface AuditLogRelations {
372
353
  actor?: User | null;
373
354
  }
374
- export interface EmailRelations {
375
- owner?: User | null;
355
+ export interface RoleTypeRelations {
376
356
  }
377
357
  export interface UserRelations {
378
358
  roleType?: RoleType | null;
359
+ ownedEmails?: ConnectionResult<Email>;
360
+ ownedPhoneNumbers?: ConnectionResult<PhoneNumber>;
361
+ ownedCryptoAddresses?: ConnectionResult<CryptoAddress>;
362
+ ownedConnectedAccounts?: ConnectionResult<ConnectedAccount>;
363
+ auditLogsByActorId?: ConnectionResult<AuditLog>;
379
364
  }
380
- export type CryptoAddressWithRelations = CryptoAddress & CryptoAddressRelations;
381
- export type RoleTypeWithRelations = RoleType & RoleTypeRelations;
365
+ export type EmailWithRelations = Email & EmailRelations;
382
366
  export type PhoneNumberWithRelations = PhoneNumber & PhoneNumberRelations;
367
+ export type CryptoAddressWithRelations = CryptoAddress & CryptoAddressRelations;
383
368
  export type ConnectedAccountWithRelations = ConnectedAccount & ConnectedAccountRelations;
384
369
  export type AuditLogWithRelations = AuditLog & AuditLogRelations;
385
- export type EmailWithRelations = Email & EmailRelations;
370
+ export type RoleTypeWithRelations = RoleType & RoleTypeRelations;
386
371
  export type UserWithRelations = User & UserRelations;
387
- export type CryptoAddressSelect = {
372
+ export type EmailSelect = {
388
373
  id?: boolean;
389
374
  ownerId?: boolean;
390
- address?: boolean;
375
+ email?: boolean;
391
376
  isVerified?: boolean;
392
377
  isPrimary?: boolean;
393
378
  createdAt?: boolean;
394
379
  updatedAt?: boolean;
395
- addressTrgmSimilarity?: boolean;
396
- searchScore?: boolean;
397
380
  owner?: {
398
381
  select: UserSelect;
399
382
  };
400
383
  };
401
- export type RoleTypeSelect = {
402
- id?: boolean;
403
- name?: boolean;
404
- };
405
384
  export type PhoneNumberSelect = {
406
385
  id?: boolean;
407
386
  ownerId?: boolean;
@@ -411,9 +390,18 @@ export type PhoneNumberSelect = {
411
390
  isPrimary?: boolean;
412
391
  createdAt?: boolean;
413
392
  updatedAt?: boolean;
414
- ccTrgmSimilarity?: boolean;
415
- numberTrgmSimilarity?: boolean;
416
- searchScore?: boolean;
393
+ owner?: {
394
+ select: UserSelect;
395
+ };
396
+ };
397
+ export type CryptoAddressSelect = {
398
+ id?: boolean;
399
+ ownerId?: boolean;
400
+ address?: boolean;
401
+ isVerified?: boolean;
402
+ isPrimary?: boolean;
403
+ createdAt?: boolean;
404
+ updatedAt?: boolean;
417
405
  owner?: {
418
406
  select: UserSelect;
419
407
  };
@@ -427,9 +415,6 @@ export type ConnectedAccountSelect = {
427
415
  isVerified?: boolean;
428
416
  createdAt?: boolean;
429
417
  updatedAt?: boolean;
430
- serviceTrgmSimilarity?: boolean;
431
- identifierTrgmSimilarity?: boolean;
432
- searchScore?: boolean;
433
418
  owner?: {
434
419
  select: UserSelect;
435
420
  };
@@ -443,23 +428,13 @@ export type AuditLogSelect = {
443
428
  ipAddress?: boolean;
444
429
  success?: boolean;
445
430
  createdAt?: boolean;
446
- userAgentTrgmSimilarity?: boolean;
447
- searchScore?: boolean;
448
431
  actor?: {
449
432
  select: UserSelect;
450
433
  };
451
434
  };
452
- export type EmailSelect = {
435
+ export type RoleTypeSelect = {
453
436
  id?: boolean;
454
- ownerId?: boolean;
455
- email?: boolean;
456
- isVerified?: boolean;
457
- isPrimary?: boolean;
458
- createdAt?: boolean;
459
- updatedAt?: boolean;
460
- owner?: {
461
- select: UserSelect;
462
- };
437
+ name?: boolean;
463
438
  };
464
439
  export type UserSelect = {
465
440
  id?: boolean;
@@ -476,27 +451,48 @@ export type UserSelect = {
476
451
  roleType?: {
477
452
  select: RoleTypeSelect;
478
453
  };
454
+ ownedEmails?: {
455
+ select: EmailSelect;
456
+ first?: number;
457
+ filter?: EmailFilter;
458
+ orderBy?: EmailOrderBy[];
459
+ };
460
+ ownedPhoneNumbers?: {
461
+ select: PhoneNumberSelect;
462
+ first?: number;
463
+ filter?: PhoneNumberFilter;
464
+ orderBy?: PhoneNumberOrderBy[];
465
+ };
466
+ ownedCryptoAddresses?: {
467
+ select: CryptoAddressSelect;
468
+ first?: number;
469
+ filter?: CryptoAddressFilter;
470
+ orderBy?: CryptoAddressOrderBy[];
471
+ };
472
+ ownedConnectedAccounts?: {
473
+ select: ConnectedAccountSelect;
474
+ first?: number;
475
+ filter?: ConnectedAccountFilter;
476
+ orderBy?: ConnectedAccountOrderBy[];
477
+ };
478
+ auditLogsByActorId?: {
479
+ select: AuditLogSelect;
480
+ first?: number;
481
+ filter?: AuditLogFilter;
482
+ orderBy?: AuditLogOrderBy[];
483
+ };
479
484
  };
480
- export interface CryptoAddressFilter {
485
+ export interface EmailFilter {
481
486
  id?: UUIDFilter;
482
487
  ownerId?: UUIDFilter;
483
- address?: StringFilter;
488
+ email?: StringFilter;
484
489
  isVerified?: BooleanFilter;
485
490
  isPrimary?: BooleanFilter;
486
491
  createdAt?: DatetimeFilter;
487
492
  updatedAt?: DatetimeFilter;
488
- addressTrgmSimilarity?: FloatFilter;
489
- searchScore?: FloatFilter;
490
- and?: CryptoAddressFilter[];
491
- or?: CryptoAddressFilter[];
492
- not?: CryptoAddressFilter;
493
- }
494
- export interface RoleTypeFilter {
495
- id?: IntFilter;
496
- name?: StringFilter;
497
- and?: RoleTypeFilter[];
498
- or?: RoleTypeFilter[];
499
- not?: RoleTypeFilter;
493
+ and?: EmailFilter[];
494
+ or?: EmailFilter[];
495
+ not?: EmailFilter;
500
496
  }
501
497
  export interface PhoneNumberFilter {
502
498
  id?: UUIDFilter;
@@ -507,13 +503,22 @@ export interface PhoneNumberFilter {
507
503
  isPrimary?: BooleanFilter;
508
504
  createdAt?: DatetimeFilter;
509
505
  updatedAt?: DatetimeFilter;
510
- ccTrgmSimilarity?: FloatFilter;
511
- numberTrgmSimilarity?: FloatFilter;
512
- searchScore?: FloatFilter;
513
506
  and?: PhoneNumberFilter[];
514
507
  or?: PhoneNumberFilter[];
515
508
  not?: PhoneNumberFilter;
516
509
  }
510
+ export interface CryptoAddressFilter {
511
+ id?: UUIDFilter;
512
+ ownerId?: UUIDFilter;
513
+ address?: StringFilter;
514
+ isVerified?: BooleanFilter;
515
+ isPrimary?: BooleanFilter;
516
+ createdAt?: DatetimeFilter;
517
+ updatedAt?: DatetimeFilter;
518
+ and?: CryptoAddressFilter[];
519
+ or?: CryptoAddressFilter[];
520
+ not?: CryptoAddressFilter;
521
+ }
517
522
  export interface ConnectedAccountFilter {
518
523
  id?: UUIDFilter;
519
524
  ownerId?: UUIDFilter;
@@ -523,9 +528,6 @@ export interface ConnectedAccountFilter {
523
528
  isVerified?: BooleanFilter;
524
529
  createdAt?: DatetimeFilter;
525
530
  updatedAt?: DatetimeFilter;
526
- serviceTrgmSimilarity?: FloatFilter;
527
- identifierTrgmSimilarity?: FloatFilter;
528
- searchScore?: FloatFilter;
529
531
  and?: ConnectedAccountFilter[];
530
532
  or?: ConnectedAccountFilter[];
531
533
  not?: ConnectedAccountFilter;
@@ -539,23 +541,16 @@ export interface AuditLogFilter {
539
541
  ipAddress?: InternetAddressFilter;
540
542
  success?: BooleanFilter;
541
543
  createdAt?: DatetimeFilter;
542
- userAgentTrgmSimilarity?: FloatFilter;
543
- searchScore?: FloatFilter;
544
544
  and?: AuditLogFilter[];
545
545
  or?: AuditLogFilter[];
546
546
  not?: AuditLogFilter;
547
547
  }
548
- export interface EmailFilter {
549
- id?: UUIDFilter;
550
- ownerId?: UUIDFilter;
551
- email?: StringFilter;
552
- isVerified?: BooleanFilter;
553
- isPrimary?: BooleanFilter;
554
- createdAt?: DatetimeFilter;
555
- updatedAt?: DatetimeFilter;
556
- and?: EmailFilter[];
557
- or?: EmailFilter[];
558
- not?: EmailFilter;
548
+ export interface RoleTypeFilter {
549
+ id?: IntFilter;
550
+ name?: StringFilter;
551
+ and?: RoleTypeFilter[];
552
+ or?: RoleTypeFilter[];
553
+ not?: RoleTypeFilter;
559
554
  }
560
555
  export interface UserFilter {
561
556
  id?: UUIDFilter;
@@ -573,57 +568,37 @@ export interface UserFilter {
573
568
  or?: UserFilter[];
574
569
  not?: UserFilter;
575
570
  }
576
- export type CryptoAddressOrderBy = 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' | 'ADDRESS_ASC' | 'ADDRESS_DESC' | 'IS_VERIFIED_ASC' | 'IS_VERIFIED_DESC' | 'IS_PRIMARY_ASC' | 'IS_PRIMARY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'ADDRESS_TRGM_SIMILARITY_ASC' | 'ADDRESS_TRGM_SIMILARITY_DESC' | 'SEARCH_SCORE_ASC' | 'SEARCH_SCORE_DESC';
577
- export type RoleTypeOrderBy = 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC';
578
- export type PhoneNumberOrderBy = 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' | 'CC_ASC' | 'CC_DESC' | 'NUMBER_ASC' | 'NUMBER_DESC' | 'IS_VERIFIED_ASC' | 'IS_VERIFIED_DESC' | 'IS_PRIMARY_ASC' | 'IS_PRIMARY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'CC_TRGM_SIMILARITY_ASC' | 'CC_TRGM_SIMILARITY_DESC' | 'NUMBER_TRGM_SIMILARITY_ASC' | 'NUMBER_TRGM_SIMILARITY_DESC' | 'SEARCH_SCORE_ASC' | 'SEARCH_SCORE_DESC';
579
- export type ConnectedAccountOrderBy = 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' | 'SERVICE_ASC' | 'SERVICE_DESC' | 'IDENTIFIER_ASC' | 'IDENTIFIER_DESC' | 'DETAILS_ASC' | 'DETAILS_DESC' | 'IS_VERIFIED_ASC' | 'IS_VERIFIED_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'SERVICE_TRGM_SIMILARITY_ASC' | 'SERVICE_TRGM_SIMILARITY_DESC' | 'IDENTIFIER_TRGM_SIMILARITY_ASC' | 'IDENTIFIER_TRGM_SIMILARITY_DESC' | 'SEARCH_SCORE_ASC' | 'SEARCH_SCORE_DESC';
580
- export type AuditLogOrderBy = 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'EVENT_ASC' | 'EVENT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ORIGIN_ASC' | 'ORIGIN_DESC' | 'USER_AGENT_ASC' | 'USER_AGENT_DESC' | 'IP_ADDRESS_ASC' | 'IP_ADDRESS_DESC' | 'SUCCESS_ASC' | 'SUCCESS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'USER_AGENT_TRGM_SIMILARITY_ASC' | 'USER_AGENT_TRGM_SIMILARITY_DESC' | 'SEARCH_SCORE_ASC' | 'SEARCH_SCORE_DESC';
581
- export type EmailOrderBy = 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' | 'EMAIL_ASC' | 'EMAIL_DESC' | 'IS_VERIFIED_ASC' | 'IS_VERIFIED_DESC' | 'IS_PRIMARY_ASC' | 'IS_PRIMARY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
582
- export type UserOrderBy = 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'USERNAME_ASC' | 'USERNAME_DESC' | 'DISPLAY_NAME_ASC' | 'DISPLAY_NAME_DESC' | 'PROFILE_PICTURE_ASC' | 'PROFILE_PICTURE_DESC' | 'SEARCH_TSV_ASC' | 'SEARCH_TSV_DESC' | 'TYPE_ASC' | 'TYPE_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'SEARCH_TSV_RANK_ASC' | 'SEARCH_TSV_RANK_DESC' | 'DISPLAY_NAME_TRGM_SIMILARITY_ASC' | 'DISPLAY_NAME_TRGM_SIMILARITY_DESC' | 'SEARCH_SCORE_ASC' | 'SEARCH_SCORE_DESC';
583
- export interface CreateCryptoAddressInput {
571
+ export type EmailOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' | 'EMAIL_ASC' | 'EMAIL_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
572
+ export type PhoneNumberOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' | 'NUMBER_ASC' | 'NUMBER_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
573
+ export type CryptoAddressOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' | 'ADDRESS_ASC' | 'ADDRESS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
574
+ export type ConnectedAccountOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' | 'SERVICE_ASC' | 'SERVICE_DESC' | 'IDENTIFIER_ASC' | 'IDENTIFIER_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
575
+ export type AuditLogOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'EVENT_ASC' | 'EVENT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC';
576
+ export type RoleTypeOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC';
577
+ export type UserOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'USERNAME_ASC' | 'USERNAME_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'SEARCH_TSV_RANK_ASC' | 'SEARCH_TSV_RANK_DESC' | 'DISPLAY_NAME_TRGM_SIMILARITY_ASC' | 'DISPLAY_NAME_TRGM_SIMILARITY_DESC' | 'SEARCH_SCORE_ASC' | 'SEARCH_SCORE_DESC';
578
+ export interface CreateEmailInput {
584
579
  clientMutationId?: string;
585
- cryptoAddress: {
580
+ email: {
586
581
  ownerId?: string;
587
- address: string;
582
+ email: ConstructiveInternalTypeEmail;
588
583
  isVerified?: boolean;
589
584
  isPrimary?: boolean;
590
585
  };
591
586
  }
592
- export interface CryptoAddressPatch {
587
+ export interface EmailPatch {
593
588
  ownerId?: string | null;
594
- address?: string | null;
589
+ email?: ConstructiveInternalTypeEmail | null;
595
590
  isVerified?: boolean | null;
596
591
  isPrimary?: boolean | null;
597
- addressTrgmSimilarity?: number | null;
598
- searchScore?: number | null;
599
592
  }
600
- export interface UpdateCryptoAddressInput {
593
+ export interface UpdateEmailInput {
601
594
  clientMutationId?: string;
602
595
  id: string;
603
- cryptoAddressPatch: CryptoAddressPatch;
596
+ emailPatch: EmailPatch;
604
597
  }
605
- export interface DeleteCryptoAddressInput {
598
+ export interface DeleteEmailInput {
606
599
  clientMutationId?: string;
607
600
  id: string;
608
601
  }
609
- export interface CreateRoleTypeInput {
610
- clientMutationId?: string;
611
- roleType: {
612
- name: string;
613
- };
614
- }
615
- export interface RoleTypePatch {
616
- name?: string | null;
617
- }
618
- export interface UpdateRoleTypeInput {
619
- clientMutationId?: string;
620
- id: number;
621
- roleTypePatch: RoleTypePatch;
622
- }
623
- export interface DeleteRoleTypeInput {
624
- clientMutationId?: string;
625
- id: number;
626
- }
627
602
  export interface CreatePhoneNumberInput {
628
603
  clientMutationId?: string;
629
604
  phoneNumber: {
@@ -640,9 +615,6 @@ export interface PhoneNumberPatch {
640
615
  number?: string | null;
641
616
  isVerified?: boolean | null;
642
617
  isPrimary?: boolean | null;
643
- ccTrgmSimilarity?: number | null;
644
- numberTrgmSimilarity?: number | null;
645
- searchScore?: number | null;
646
618
  }
647
619
  export interface UpdatePhoneNumberInput {
648
620
  clientMutationId?: string;
@@ -653,6 +625,30 @@ export interface DeletePhoneNumberInput {
653
625
  clientMutationId?: string;
654
626
  id: string;
655
627
  }
628
+ export interface CreateCryptoAddressInput {
629
+ clientMutationId?: string;
630
+ cryptoAddress: {
631
+ ownerId?: string;
632
+ address: string;
633
+ isVerified?: boolean;
634
+ isPrimary?: boolean;
635
+ };
636
+ }
637
+ export interface CryptoAddressPatch {
638
+ ownerId?: string | null;
639
+ address?: string | null;
640
+ isVerified?: boolean | null;
641
+ isPrimary?: boolean | null;
642
+ }
643
+ export interface UpdateCryptoAddressInput {
644
+ clientMutationId?: string;
645
+ id: string;
646
+ cryptoAddressPatch: CryptoAddressPatch;
647
+ }
648
+ export interface DeleteCryptoAddressInput {
649
+ clientMutationId?: string;
650
+ id: string;
651
+ }
656
652
  export interface CreateConnectedAccountInput {
657
653
  clientMutationId?: string;
658
654
  connectedAccount: {
@@ -669,9 +665,6 @@ export interface ConnectedAccountPatch {
669
665
  identifier?: string | null;
670
666
  details?: Record<string, unknown> | null;
671
667
  isVerified?: boolean | null;
672
- serviceTrgmSimilarity?: number | null;
673
- identifierTrgmSimilarity?: number | null;
674
- searchScore?: number | null;
675
668
  }
676
669
  export interface UpdateConnectedAccountInput {
677
670
  clientMutationId?: string;
@@ -700,8 +693,6 @@ export interface AuditLogPatch {
700
693
  userAgent?: string | null;
701
694
  ipAddress?: string | null;
702
695
  success?: boolean | null;
703
- userAgentTrgmSimilarity?: number | null;
704
- searchScore?: number | null;
705
696
  }
706
697
  export interface UpdateAuditLogInput {
707
698
  clientMutationId?: string;
@@ -712,29 +703,23 @@ export interface DeleteAuditLogInput {
712
703
  clientMutationId?: string;
713
704
  id: string;
714
705
  }
715
- export interface CreateEmailInput {
706
+ export interface CreateRoleTypeInput {
716
707
  clientMutationId?: string;
717
- email: {
718
- ownerId?: string;
719
- email: ConstructiveInternalTypeEmail;
720
- isVerified?: boolean;
721
- isPrimary?: boolean;
708
+ roleType: {
709
+ name: string;
722
710
  };
723
711
  }
724
- export interface EmailPatch {
725
- ownerId?: string | null;
726
- email?: ConstructiveInternalTypeEmail | null;
727
- isVerified?: boolean | null;
728
- isPrimary?: boolean | null;
712
+ export interface RoleTypePatch {
713
+ name?: string | null;
729
714
  }
730
- export interface UpdateEmailInput {
715
+ export interface UpdateRoleTypeInput {
731
716
  clientMutationId?: string;
732
- id: string;
733
- emailPatch: EmailPatch;
717
+ id: number;
718
+ roleTypePatch: RoleTypePatch;
734
719
  }
735
- export interface DeleteEmailInput {
720
+ export interface DeleteRoleTypeInput {
736
721
  clientMutationId?: string;
737
- id: string;
722
+ id: number;
738
723
  }
739
724
  export interface CreateUserInput {
740
725
  clientMutationId?: string;
@@ -749,11 +734,8 @@ export interface UserPatch {
749
734
  username?: string | null;
750
735
  displayName?: string | null;
751
736
  profilePicture?: ConstructiveInternalTypeImage | null;
752
- searchTsv?: string | null;
753
737
  type?: number | null;
754
- searchTsvRank?: number | null;
755
- displayNameTrgmSimilarity?: number | null;
756
- searchScore?: number | null;
738
+ profilePictureUpload?: File | null;
757
739
  }
758
740
  export interface UpdateUserInput {
759
741
  clientMutationId?: string;
@@ -997,94 +979,49 @@ export type VerifyTotpPayloadSelect = {
997
979
  select: SessionSelect;
998
980
  };
999
981
  };
1000
- export interface CreateCryptoAddressPayload {
1001
- clientMutationId?: string | null;
1002
- /** The `CryptoAddress` that was created by this mutation. */
1003
- cryptoAddress?: CryptoAddress | null;
1004
- cryptoAddressEdge?: CryptoAddressEdge | null;
1005
- }
1006
- export type CreateCryptoAddressPayloadSelect = {
1007
- clientMutationId?: boolean;
1008
- cryptoAddress?: {
1009
- select: CryptoAddressSelect;
1010
- };
1011
- cryptoAddressEdge?: {
1012
- select: CryptoAddressEdgeSelect;
1013
- };
1014
- };
1015
- export interface UpdateCryptoAddressPayload {
1016
- clientMutationId?: string | null;
1017
- /** The `CryptoAddress` that was updated by this mutation. */
1018
- cryptoAddress?: CryptoAddress | null;
1019
- cryptoAddressEdge?: CryptoAddressEdge | null;
1020
- }
1021
- export type UpdateCryptoAddressPayloadSelect = {
1022
- clientMutationId?: boolean;
1023
- cryptoAddress?: {
1024
- select: CryptoAddressSelect;
1025
- };
1026
- cryptoAddressEdge?: {
1027
- select: CryptoAddressEdgeSelect;
1028
- };
1029
- };
1030
- export interface DeleteCryptoAddressPayload {
1031
- clientMutationId?: string | null;
1032
- /** The `CryptoAddress` that was deleted by this mutation. */
1033
- cryptoAddress?: CryptoAddress | null;
1034
- cryptoAddressEdge?: CryptoAddressEdge | null;
1035
- }
1036
- export type DeleteCryptoAddressPayloadSelect = {
1037
- clientMutationId?: boolean;
1038
- cryptoAddress?: {
1039
- select: CryptoAddressSelect;
1040
- };
1041
- cryptoAddressEdge?: {
1042
- select: CryptoAddressEdgeSelect;
1043
- };
1044
- };
1045
- export interface CreateRoleTypePayload {
982
+ export interface CreateEmailPayload {
1046
983
  clientMutationId?: string | null;
1047
- /** The `RoleType` that was created by this mutation. */
1048
- roleType?: RoleType | null;
1049
- roleTypeEdge?: RoleTypeEdge | null;
984
+ /** The `Email` that was created by this mutation. */
985
+ email?: Email | null;
986
+ emailEdge?: EmailEdge | null;
1050
987
  }
1051
- export type CreateRoleTypePayloadSelect = {
988
+ export type CreateEmailPayloadSelect = {
1052
989
  clientMutationId?: boolean;
1053
- roleType?: {
1054
- select: RoleTypeSelect;
990
+ email?: {
991
+ select: EmailSelect;
1055
992
  };
1056
- roleTypeEdge?: {
1057
- select: RoleTypeEdgeSelect;
993
+ emailEdge?: {
994
+ select: EmailEdgeSelect;
1058
995
  };
1059
996
  };
1060
- export interface UpdateRoleTypePayload {
997
+ export interface UpdateEmailPayload {
1061
998
  clientMutationId?: string | null;
1062
- /** The `RoleType` that was updated by this mutation. */
1063
- roleType?: RoleType | null;
1064
- roleTypeEdge?: RoleTypeEdge | null;
999
+ /** The `Email` that was updated by this mutation. */
1000
+ email?: Email | null;
1001
+ emailEdge?: EmailEdge | null;
1065
1002
  }
1066
- export type UpdateRoleTypePayloadSelect = {
1003
+ export type UpdateEmailPayloadSelect = {
1067
1004
  clientMutationId?: boolean;
1068
- roleType?: {
1069
- select: RoleTypeSelect;
1005
+ email?: {
1006
+ select: EmailSelect;
1070
1007
  };
1071
- roleTypeEdge?: {
1072
- select: RoleTypeEdgeSelect;
1008
+ emailEdge?: {
1009
+ select: EmailEdgeSelect;
1073
1010
  };
1074
1011
  };
1075
- export interface DeleteRoleTypePayload {
1012
+ export interface DeleteEmailPayload {
1076
1013
  clientMutationId?: string | null;
1077
- /** The `RoleType` that was deleted by this mutation. */
1078
- roleType?: RoleType | null;
1079
- roleTypeEdge?: RoleTypeEdge | null;
1014
+ /** The `Email` that was deleted by this mutation. */
1015
+ email?: Email | null;
1016
+ emailEdge?: EmailEdge | null;
1080
1017
  }
1081
- export type DeleteRoleTypePayloadSelect = {
1018
+ export type DeleteEmailPayloadSelect = {
1082
1019
  clientMutationId?: boolean;
1083
- roleType?: {
1084
- select: RoleTypeSelect;
1020
+ email?: {
1021
+ select: EmailSelect;
1085
1022
  };
1086
- roleTypeEdge?: {
1087
- select: RoleTypeEdgeSelect;
1023
+ emailEdge?: {
1024
+ select: EmailEdgeSelect;
1088
1025
  };
1089
1026
  };
1090
1027
  export interface CreatePhoneNumberPayload {
@@ -1132,6 +1069,51 @@ export type DeletePhoneNumberPayloadSelect = {
1132
1069
  select: PhoneNumberEdgeSelect;
1133
1070
  };
1134
1071
  };
1072
+ export interface CreateCryptoAddressPayload {
1073
+ clientMutationId?: string | null;
1074
+ /** The `CryptoAddress` that was created by this mutation. */
1075
+ cryptoAddress?: CryptoAddress | null;
1076
+ cryptoAddressEdge?: CryptoAddressEdge | null;
1077
+ }
1078
+ export type CreateCryptoAddressPayloadSelect = {
1079
+ clientMutationId?: boolean;
1080
+ cryptoAddress?: {
1081
+ select: CryptoAddressSelect;
1082
+ };
1083
+ cryptoAddressEdge?: {
1084
+ select: CryptoAddressEdgeSelect;
1085
+ };
1086
+ };
1087
+ export interface UpdateCryptoAddressPayload {
1088
+ clientMutationId?: string | null;
1089
+ /** The `CryptoAddress` that was updated by this mutation. */
1090
+ cryptoAddress?: CryptoAddress | null;
1091
+ cryptoAddressEdge?: CryptoAddressEdge | null;
1092
+ }
1093
+ export type UpdateCryptoAddressPayloadSelect = {
1094
+ clientMutationId?: boolean;
1095
+ cryptoAddress?: {
1096
+ select: CryptoAddressSelect;
1097
+ };
1098
+ cryptoAddressEdge?: {
1099
+ select: CryptoAddressEdgeSelect;
1100
+ };
1101
+ };
1102
+ export interface DeleteCryptoAddressPayload {
1103
+ clientMutationId?: string | null;
1104
+ /** The `CryptoAddress` that was deleted by this mutation. */
1105
+ cryptoAddress?: CryptoAddress | null;
1106
+ cryptoAddressEdge?: CryptoAddressEdge | null;
1107
+ }
1108
+ export type DeleteCryptoAddressPayloadSelect = {
1109
+ clientMutationId?: boolean;
1110
+ cryptoAddress?: {
1111
+ select: CryptoAddressSelect;
1112
+ };
1113
+ cryptoAddressEdge?: {
1114
+ select: CryptoAddressEdgeSelect;
1115
+ };
1116
+ };
1135
1117
  export interface CreateConnectedAccountPayload {
1136
1118
  clientMutationId?: string | null;
1137
1119
  /** The `ConnectedAccount` that was created by this mutation. */
@@ -1222,49 +1204,49 @@ export type DeleteAuditLogPayloadSelect = {
1222
1204
  select: AuditLogEdgeSelect;
1223
1205
  };
1224
1206
  };
1225
- export interface CreateEmailPayload {
1207
+ export interface CreateRoleTypePayload {
1226
1208
  clientMutationId?: string | null;
1227
- /** The `Email` that was created by this mutation. */
1228
- email?: Email | null;
1229
- emailEdge?: EmailEdge | null;
1209
+ /** The `RoleType` that was created by this mutation. */
1210
+ roleType?: RoleType | null;
1211
+ roleTypeEdge?: RoleTypeEdge | null;
1230
1212
  }
1231
- export type CreateEmailPayloadSelect = {
1213
+ export type CreateRoleTypePayloadSelect = {
1232
1214
  clientMutationId?: boolean;
1233
- email?: {
1234
- select: EmailSelect;
1215
+ roleType?: {
1216
+ select: RoleTypeSelect;
1235
1217
  };
1236
- emailEdge?: {
1237
- select: EmailEdgeSelect;
1218
+ roleTypeEdge?: {
1219
+ select: RoleTypeEdgeSelect;
1238
1220
  };
1239
1221
  };
1240
- export interface UpdateEmailPayload {
1222
+ export interface UpdateRoleTypePayload {
1241
1223
  clientMutationId?: string | null;
1242
- /** The `Email` that was updated by this mutation. */
1243
- email?: Email | null;
1244
- emailEdge?: EmailEdge | null;
1224
+ /** The `RoleType` that was updated by this mutation. */
1225
+ roleType?: RoleType | null;
1226
+ roleTypeEdge?: RoleTypeEdge | null;
1245
1227
  }
1246
- export type UpdateEmailPayloadSelect = {
1228
+ export type UpdateRoleTypePayloadSelect = {
1247
1229
  clientMutationId?: boolean;
1248
- email?: {
1249
- select: EmailSelect;
1230
+ roleType?: {
1231
+ select: RoleTypeSelect;
1250
1232
  };
1251
- emailEdge?: {
1252
- select: EmailEdgeSelect;
1233
+ roleTypeEdge?: {
1234
+ select: RoleTypeEdgeSelect;
1253
1235
  };
1254
1236
  };
1255
- export interface DeleteEmailPayload {
1237
+ export interface DeleteRoleTypePayload {
1256
1238
  clientMutationId?: string | null;
1257
- /** The `Email` that was deleted by this mutation. */
1258
- email?: Email | null;
1259
- emailEdge?: EmailEdge | null;
1239
+ /** The `RoleType` that was deleted by this mutation. */
1240
+ roleType?: RoleType | null;
1241
+ roleTypeEdge?: RoleTypeEdge | null;
1260
1242
  }
1261
- export type DeleteEmailPayloadSelect = {
1243
+ export type DeleteRoleTypePayloadSelect = {
1262
1244
  clientMutationId?: boolean;
1263
- email?: {
1264
- select: EmailSelect;
1245
+ roleType?: {
1246
+ select: RoleTypeSelect;
1265
1247
  };
1266
- emailEdge?: {
1267
- select: EmailEdgeSelect;
1248
+ roleTypeEdge?: {
1249
+ select: RoleTypeEdgeSelect;
1268
1250
  };
1269
1251
  };
1270
1252
  export interface CreateUserPayload {
@@ -1319,10 +1301,6 @@ export interface SignInOneTimeTokenRecord {
1319
1301
  accessTokenExpiresAt?: string | null;
1320
1302
  isVerified?: boolean | null;
1321
1303
  totpEnabled?: boolean | null;
1322
- /** TRGM similarity when searching `accessToken`. Returns null when no trgm search filter is active. */
1323
- accessTokenTrgmSimilarity?: number | null;
1324
- /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */
1325
- searchScore?: number | null;
1326
1304
  }
1327
1305
  export type SignInOneTimeTokenRecordSelect = {
1328
1306
  id?: boolean;
@@ -1331,8 +1309,6 @@ export type SignInOneTimeTokenRecordSelect = {
1331
1309
  accessTokenExpiresAt?: boolean;
1332
1310
  isVerified?: boolean;
1333
1311
  totpEnabled?: boolean;
1334
- accessTokenTrgmSimilarity?: boolean;
1335
- searchScore?: boolean;
1336
1312
  };
1337
1313
  export interface SignInRecord {
1338
1314
  id?: string | null;
@@ -1341,10 +1317,6 @@ export interface SignInRecord {
1341
1317
  accessTokenExpiresAt?: string | null;
1342
1318
  isVerified?: boolean | null;
1343
1319
  totpEnabled?: boolean | null;
1344
- /** TRGM similarity when searching `accessToken`. Returns null when no trgm search filter is active. */
1345
- accessTokenTrgmSimilarity?: number | null;
1346
- /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */
1347
- searchScore?: number | null;
1348
1320
  }
1349
1321
  export type SignInRecordSelect = {
1350
1322
  id?: boolean;
@@ -1353,8 +1325,6 @@ export type SignInRecordSelect = {
1353
1325
  accessTokenExpiresAt?: boolean;
1354
1326
  isVerified?: boolean;
1355
1327
  totpEnabled?: boolean;
1356
- accessTokenTrgmSimilarity?: boolean;
1357
- searchScore?: boolean;
1358
1328
  };
1359
1329
  export interface SignUpRecord {
1360
1330
  id?: string | null;
@@ -1363,10 +1333,6 @@ export interface SignUpRecord {
1363
1333
  accessTokenExpiresAt?: string | null;
1364
1334
  isVerified?: boolean | null;
1365
1335
  totpEnabled?: boolean | null;
1366
- /** TRGM similarity when searching `accessToken`. Returns null when no trgm search filter is active. */
1367
- accessTokenTrgmSimilarity?: number | null;
1368
- /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */
1369
- searchScore?: number | null;
1370
1336
  }
1371
1337
  export type SignUpRecordSelect = {
1372
1338
  id?: boolean;
@@ -1375,8 +1341,6 @@ export type SignUpRecordSelect = {
1375
1341
  accessTokenExpiresAt?: boolean;
1376
1342
  isVerified?: boolean;
1377
1343
  totpEnabled?: boolean;
1378
- accessTokenTrgmSimilarity?: boolean;
1379
- searchScore?: boolean;
1380
1344
  };
1381
1345
  export interface ExtendTokenExpiresRecord {
1382
1346
  id?: string | null;
@@ -1415,14 +1379,6 @@ export interface Session {
1415
1379
  csrfSecret?: string | null;
1416
1380
  createdAt?: string | null;
1417
1381
  updatedAt?: string | null;
1418
- /** TRGM similarity when searching `uagent`. Returns null when no trgm search filter is active. */
1419
- uagentTrgmSimilarity?: number | null;
1420
- /** TRGM similarity when searching `fingerprintMode`. Returns null when no trgm search filter is active. */
1421
- fingerprintModeTrgmSimilarity?: number | null;
1422
- /** TRGM similarity when searching `csrfSecret`. Returns null when no trgm search filter is active. */
1423
- csrfSecretTrgmSimilarity?: number | null;
1424
- /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */
1425
- searchScore?: number | null;
1426
1382
  }
1427
1383
  export type SessionSelect = {
1428
1384
  id?: boolean;
@@ -1439,33 +1395,17 @@ export type SessionSelect = {
1439
1395
  csrfSecret?: boolean;
1440
1396
  createdAt?: boolean;
1441
1397
  updatedAt?: boolean;
1442
- uagentTrgmSimilarity?: boolean;
1443
- fingerprintModeTrgmSimilarity?: boolean;
1444
- csrfSecretTrgmSimilarity?: boolean;
1445
- searchScore?: boolean;
1446
- };
1447
- /** A `CryptoAddress` edge in the connection. */
1448
- export interface CryptoAddressEdge {
1449
- cursor?: string | null;
1450
- /** The `CryptoAddress` at the end of the edge. */
1451
- node?: CryptoAddress | null;
1452
- }
1453
- export type CryptoAddressEdgeSelect = {
1454
- cursor?: boolean;
1455
- node?: {
1456
- select: CryptoAddressSelect;
1457
- };
1458
1398
  };
1459
- /** A `RoleType` edge in the connection. */
1460
- export interface RoleTypeEdge {
1399
+ /** A `Email` edge in the connection. */
1400
+ export interface EmailEdge {
1461
1401
  cursor?: string | null;
1462
- /** The `RoleType` at the end of the edge. */
1463
- node?: RoleType | null;
1402
+ /** The `Email` at the end of the edge. */
1403
+ node?: Email | null;
1464
1404
  }
1465
- export type RoleTypeEdgeSelect = {
1405
+ export type EmailEdgeSelect = {
1466
1406
  cursor?: boolean;
1467
1407
  node?: {
1468
- select: RoleTypeSelect;
1408
+ select: EmailSelect;
1469
1409
  };
1470
1410
  };
1471
1411
  /** A `PhoneNumber` edge in the connection. */
@@ -1480,6 +1420,18 @@ export type PhoneNumberEdgeSelect = {
1480
1420
  select: PhoneNumberSelect;
1481
1421
  };
1482
1422
  };
1423
+ /** A `CryptoAddress` edge in the connection. */
1424
+ export interface CryptoAddressEdge {
1425
+ cursor?: string | null;
1426
+ /** The `CryptoAddress` at the end of the edge. */
1427
+ node?: CryptoAddress | null;
1428
+ }
1429
+ export type CryptoAddressEdgeSelect = {
1430
+ cursor?: boolean;
1431
+ node?: {
1432
+ select: CryptoAddressSelect;
1433
+ };
1434
+ };
1483
1435
  /** A `ConnectedAccount` edge in the connection. */
1484
1436
  export interface ConnectedAccountEdge {
1485
1437
  cursor?: string | null;
@@ -1504,16 +1456,16 @@ export type AuditLogEdgeSelect = {
1504
1456
  select: AuditLogSelect;
1505
1457
  };
1506
1458
  };
1507
- /** A `Email` edge in the connection. */
1508
- export interface EmailEdge {
1459
+ /** A `RoleType` edge in the connection. */
1460
+ export interface RoleTypeEdge {
1509
1461
  cursor?: string | null;
1510
- /** The `Email` at the end of the edge. */
1511
- node?: Email | null;
1462
+ /** The `RoleType` at the end of the edge. */
1463
+ node?: RoleType | null;
1512
1464
  }
1513
- export type EmailEdgeSelect = {
1465
+ export type RoleTypeEdgeSelect = {
1514
1466
  cursor?: boolean;
1515
1467
  node?: {
1516
- select: EmailSelect;
1468
+ select: RoleTypeSelect;
1517
1469
  };
1518
1470
  };
1519
1471
  /** A `User` edge in the connection. */