@constructive-io/react 0.12.6 → 0.12.8

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 (363) hide show
  1. package/admin/hooks/index.d.ts +1 -1
  2. package/admin/hooks/index.js +1 -1
  3. package/admin/hooks/invalidation.d.ts +12 -6
  4. package/admin/hooks/invalidation.js +31 -15
  5. package/admin/hooks/mutation-keys.d.ts +24 -12
  6. package/admin/hooks/mutation-keys.js +15 -8
  7. package/admin/hooks/mutations/index.d.ts +6 -3
  8. package/admin/hooks/mutations/index.js +6 -3
  9. package/admin/hooks/mutations/useCreateOrgMembershipSettingMutation.d.ts +34 -0
  10. package/admin/hooks/mutations/useCreateOrgMembershipSettingMutation.js +34 -0
  11. package/admin/hooks/mutations/useDeleteOrgMembershipSettingMutation.d.ts +38 -0
  12. package/admin/hooks/mutations/useDeleteOrgMembershipSettingMutation.js +39 -0
  13. package/admin/hooks/mutations/useUpdateOrgMembershipSettingMutation.d.ts +40 -0
  14. package/admin/hooks/mutations/useUpdateOrgMembershipSettingMutation.js +40 -0
  15. package/admin/hooks/queries/index.d.ts +4 -2
  16. package/admin/hooks/queries/index.js +4 -2
  17. package/admin/hooks/queries/useOrgMembershipSettingQuery.d.ts +65 -0
  18. package/admin/hooks/queries/useOrgMembershipSettingQuery.js +53 -0
  19. package/admin/hooks/queries/useOrgMembershipSettingsQuery.d.ts +69 -0
  20. package/admin/hooks/queries/useOrgMembershipSettingsQuery.js +38 -0
  21. package/admin/hooks/query-keys.d.ts +28 -14
  22. package/admin/hooks/query-keys.js +17 -9
  23. package/admin/orm/index.d.ts +4 -2
  24. package/admin/orm/index.js +4 -2
  25. package/admin/orm/input-types.d.ts +303 -142
  26. package/admin/orm/models/index.d.ts +2 -1
  27. package/admin/orm/models/index.js +5 -3
  28. package/admin/orm/models/orgMembershipSetting.d.ts +56 -0
  29. package/admin/orm/models/orgMembershipSetting.js +100 -0
  30. package/admin/schema-types.d.ts +231 -106
  31. package/admin/types.d.ts +23 -11
  32. package/auth/hooks/index.d.ts +1 -1
  33. package/auth/hooks/index.js +1 -1
  34. package/auth/hooks/invalidation.d.ts +12 -0
  35. package/auth/hooks/invalidation.js +32 -0
  36. package/auth/hooks/mutation-keys.d.ts +26 -2
  37. package/auth/hooks/mutation-keys.js +18 -4
  38. package/auth/hooks/mutations/index.d.ts +5 -1
  39. package/auth/hooks/mutations/index.js +5 -1
  40. package/auth/hooks/mutations/useCreateIdentityProviderMutation.d.ts +34 -0
  41. package/auth/hooks/mutations/useCreateIdentityProviderMutation.js +34 -0
  42. package/auth/hooks/mutations/useCreateWebauthnCredentialMutation.d.ts +34 -0
  43. package/auth/hooks/mutations/useCreateWebauthnCredentialMutation.js +34 -0
  44. package/auth/hooks/mutations/useDeleteWebauthnCredentialMutation.d.ts +38 -0
  45. package/auth/hooks/mutations/useDeleteWebauthnCredentialMutation.js +39 -0
  46. package/auth/hooks/mutations/useUpdateWebauthnCredentialMutation.d.ts +40 -0
  47. package/auth/hooks/mutations/useUpdateWebauthnCredentialMutation.js +40 -0
  48. package/auth/hooks/queries/index.d.ts +3 -0
  49. package/auth/hooks/queries/index.js +3 -0
  50. package/auth/hooks/queries/useIdentityProvidersQuery.d.ts +69 -0
  51. package/auth/hooks/queries/useIdentityProvidersQuery.js +38 -0
  52. package/auth/hooks/queries/useWebauthnCredentialQuery.d.ts +65 -0
  53. package/auth/hooks/queries/useWebauthnCredentialQuery.js +53 -0
  54. package/auth/hooks/queries/useWebauthnCredentialsQuery.d.ts +69 -0
  55. package/auth/hooks/queries/useWebauthnCredentialsQuery.js +38 -0
  56. package/auth/hooks/query-keys.d.ts +28 -0
  57. package/auth/hooks/query-keys.js +17 -1
  58. package/auth/orm/index.d.ts +9 -5
  59. package/auth/orm/index.js +4 -0
  60. package/auth/orm/input-types.d.ts +525 -81
  61. package/auth/orm/input-types.js +1 -0
  62. package/auth/orm/models/identityProvider.d.ts +32 -0
  63. package/auth/orm/models/identityProvider.js +55 -0
  64. package/auth/orm/models/index.d.ts +2 -0
  65. package/auth/orm/models/index.js +5 -1
  66. package/auth/orm/models/webauthnCredential.d.ts +56 -0
  67. package/auth/orm/models/webauthnCredential.js +100 -0
  68. package/auth/orm/mutation/index.d.ts +9 -9
  69. package/auth/orm/mutation/index.js +12 -12
  70. package/auth/schema-types.d.ts +278 -22
  71. package/auth/types.d.ts +27 -0
  72. package/esm/admin/hooks/index.d.ts +1 -1
  73. package/esm/admin/hooks/index.js +1 -1
  74. package/esm/admin/hooks/invalidation.d.ts +12 -6
  75. package/esm/admin/hooks/invalidation.js +32 -16
  76. package/esm/admin/hooks/mutation-keys.d.ts +24 -12
  77. package/esm/admin/hooks/mutation-keys.js +14 -7
  78. package/esm/admin/hooks/mutations/index.d.ts +6 -3
  79. package/esm/admin/hooks/mutations/index.js +6 -3
  80. package/esm/admin/hooks/mutations/useCreateOrgMembershipSettingMutation.d.ts +34 -0
  81. package/esm/admin/hooks/mutations/useCreateOrgMembershipSettingMutation.js +31 -0
  82. package/esm/admin/hooks/mutations/useDeleteOrgMembershipSettingMutation.d.ts +38 -0
  83. package/esm/admin/hooks/mutations/useDeleteOrgMembershipSettingMutation.js +36 -0
  84. package/esm/admin/hooks/mutations/useUpdateOrgMembershipSettingMutation.d.ts +40 -0
  85. package/esm/admin/hooks/mutations/useUpdateOrgMembershipSettingMutation.js +37 -0
  86. package/esm/admin/hooks/queries/index.d.ts +4 -2
  87. package/esm/admin/hooks/queries/index.js +4 -2
  88. package/esm/admin/hooks/queries/useOrgMembershipSettingQuery.d.ts +65 -0
  89. package/esm/admin/hooks/queries/useOrgMembershipSettingQuery.js +47 -0
  90. package/esm/admin/hooks/queries/useOrgMembershipSettingsQuery.d.ts +69 -0
  91. package/esm/admin/hooks/queries/useOrgMembershipSettingsQuery.js +32 -0
  92. package/esm/admin/hooks/query-keys.d.ts +28 -14
  93. package/esm/admin/hooks/query-keys.js +16 -8
  94. package/esm/admin/orm/index.d.ts +4 -2
  95. package/esm/admin/orm/index.js +4 -2
  96. package/esm/admin/orm/input-types.d.ts +303 -142
  97. package/esm/admin/orm/models/index.d.ts +2 -1
  98. package/esm/admin/orm/models/index.js +2 -1
  99. package/esm/admin/orm/models/orgMembershipSetting.d.ts +56 -0
  100. package/esm/admin/orm/models/orgMembershipSetting.js +96 -0
  101. package/esm/admin/schema-types.d.ts +231 -106
  102. package/esm/admin/types.d.ts +23 -11
  103. package/esm/auth/hooks/index.d.ts +1 -1
  104. package/esm/auth/hooks/index.js +1 -1
  105. package/esm/auth/hooks/invalidation.d.ts +12 -0
  106. package/esm/auth/hooks/invalidation.js +33 -1
  107. package/esm/auth/hooks/mutation-keys.d.ts +26 -2
  108. package/esm/auth/hooks/mutation-keys.js +17 -3
  109. package/esm/auth/hooks/mutations/index.d.ts +5 -1
  110. package/esm/auth/hooks/mutations/index.js +5 -1
  111. package/esm/auth/hooks/mutations/useCreateIdentityProviderMutation.d.ts +34 -0
  112. package/esm/auth/hooks/mutations/useCreateIdentityProviderMutation.js +31 -0
  113. package/esm/auth/hooks/mutations/useCreateWebauthnCredentialMutation.d.ts +34 -0
  114. package/esm/auth/hooks/mutations/useCreateWebauthnCredentialMutation.js +31 -0
  115. package/esm/auth/hooks/mutations/useDeleteWebauthnCredentialMutation.d.ts +38 -0
  116. package/esm/auth/hooks/mutations/useDeleteWebauthnCredentialMutation.js +36 -0
  117. package/esm/auth/hooks/mutations/useUpdateWebauthnCredentialMutation.d.ts +40 -0
  118. package/esm/auth/hooks/mutations/useUpdateWebauthnCredentialMutation.js +37 -0
  119. package/esm/auth/hooks/queries/index.d.ts +3 -0
  120. package/esm/auth/hooks/queries/index.js +3 -0
  121. package/esm/auth/hooks/queries/useIdentityProvidersQuery.d.ts +69 -0
  122. package/esm/auth/hooks/queries/useIdentityProvidersQuery.js +32 -0
  123. package/esm/auth/hooks/queries/useWebauthnCredentialQuery.d.ts +65 -0
  124. package/esm/auth/hooks/queries/useWebauthnCredentialQuery.js +47 -0
  125. package/esm/auth/hooks/queries/useWebauthnCredentialsQuery.d.ts +69 -0
  126. package/esm/auth/hooks/queries/useWebauthnCredentialsQuery.js +32 -0
  127. package/esm/auth/hooks/query-keys.d.ts +28 -0
  128. package/esm/auth/hooks/query-keys.js +16 -0
  129. package/esm/auth/orm/index.d.ts +9 -5
  130. package/esm/auth/orm/index.js +4 -0
  131. package/esm/auth/orm/input-types.d.ts +525 -81
  132. package/esm/auth/orm/input-types.js +1 -0
  133. package/esm/auth/orm/models/identityProvider.d.ts +32 -0
  134. package/esm/auth/orm/models/identityProvider.js +51 -0
  135. package/esm/auth/orm/models/index.d.ts +2 -0
  136. package/esm/auth/orm/models/index.js +2 -0
  137. package/esm/auth/orm/models/webauthnCredential.d.ts +56 -0
  138. package/esm/auth/orm/models/webauthnCredential.js +96 -0
  139. package/esm/auth/orm/mutation/index.d.ts +9 -9
  140. package/esm/auth/orm/mutation/index.js +12 -12
  141. package/esm/auth/schema-types.d.ts +278 -22
  142. package/esm/auth/types.d.ts +27 -0
  143. package/esm/objects/orm/input-types.d.ts +12 -0
  144. package/esm/objects/schema-types.d.ts +12 -0
  145. package/esm/public/hooks/index.d.ts +1 -1
  146. package/esm/public/hooks/index.js +1 -1
  147. package/esm/public/hooks/invalidation.d.ts +42 -6
  148. package/esm/public/hooks/invalidation.js +113 -17
  149. package/esm/public/hooks/mutation-keys.d.ts +86 -14
  150. package/esm/public/hooks/mutation-keys.js +55 -10
  151. package/esm/public/hooks/mutations/index.d.ts +20 -4
  152. package/esm/public/hooks/mutations/index.js +20 -4
  153. package/esm/public/hooks/mutations/useCreateIdentityProviderMutation.d.ts +34 -0
  154. package/esm/public/hooks/mutations/useCreateIdentityProviderMutation.js +31 -0
  155. package/esm/public/hooks/mutations/useCreateIdentityProvidersModuleMutation.d.ts +34 -0
  156. package/esm/public/hooks/mutations/useCreateIdentityProvidersModuleMutation.js +31 -0
  157. package/esm/public/hooks/mutations/useCreateNotificationsModuleMutation.d.ts +34 -0
  158. package/esm/public/hooks/mutations/useCreateNotificationsModuleMutation.js +31 -0
  159. package/esm/public/hooks/mutations/useCreateOrgMembershipSettingMutation.d.ts +34 -0
  160. package/esm/public/hooks/mutations/useCreateOrgMembershipSettingMutation.js +31 -0
  161. package/esm/public/hooks/mutations/useCreateSecureTableProvisionMutation.d.ts +2 -2
  162. package/esm/public/hooks/mutations/useCreateSecureTableProvisionMutation.js +1 -1
  163. package/esm/public/hooks/mutations/useCreateWebauthnAuthModuleMutation.d.ts +34 -0
  164. package/esm/public/hooks/mutations/useCreateWebauthnAuthModuleMutation.js +31 -0
  165. package/esm/public/hooks/mutations/useCreateWebauthnCredentialMutation.d.ts +34 -0
  166. package/esm/public/hooks/mutations/useCreateWebauthnCredentialMutation.js +31 -0
  167. package/esm/public/hooks/mutations/useCreateWebauthnCredentialsModuleMutation.d.ts +2 -2
  168. package/esm/public/hooks/mutations/useCreateWebauthnCredentialsModuleMutation.js +1 -1
  169. package/esm/public/hooks/mutations/useDeleteIdentityProvidersModuleMutation.d.ts +38 -0
  170. package/esm/public/hooks/mutations/useDeleteIdentityProvidersModuleMutation.js +36 -0
  171. package/esm/public/hooks/mutations/useDeleteNotificationsModuleMutation.d.ts +38 -0
  172. package/esm/public/hooks/mutations/useDeleteNotificationsModuleMutation.js +36 -0
  173. package/esm/public/hooks/mutations/useDeleteOrgMembershipSettingMutation.d.ts +38 -0
  174. package/esm/public/hooks/mutations/useDeleteOrgMembershipSettingMutation.js +36 -0
  175. package/esm/public/hooks/mutations/useDeleteSecureTableProvisionMutation.d.ts +2 -2
  176. package/esm/public/hooks/mutations/useDeleteSecureTableProvisionMutation.js +1 -1
  177. package/esm/public/hooks/mutations/useDeleteWebauthnAuthModuleMutation.d.ts +38 -0
  178. package/esm/public/hooks/mutations/useDeleteWebauthnAuthModuleMutation.js +36 -0
  179. package/esm/public/hooks/mutations/useDeleteWebauthnCredentialMutation.d.ts +38 -0
  180. package/esm/public/hooks/mutations/useDeleteWebauthnCredentialMutation.js +36 -0
  181. package/esm/public/hooks/mutations/useDeleteWebauthnCredentialsModuleMutation.d.ts +2 -2
  182. package/esm/public/hooks/mutations/useDeleteWebauthnCredentialsModuleMutation.js +1 -1
  183. package/esm/public/hooks/mutations/useUpdateIdentityProvidersModuleMutation.d.ts +40 -0
  184. package/esm/public/hooks/mutations/useUpdateIdentityProvidersModuleMutation.js +37 -0
  185. package/esm/public/hooks/mutations/useUpdateNotificationsModuleMutation.d.ts +40 -0
  186. package/esm/public/hooks/mutations/useUpdateNotificationsModuleMutation.js +37 -0
  187. package/esm/public/hooks/mutations/useUpdateOrgMembershipSettingMutation.d.ts +40 -0
  188. package/esm/public/hooks/mutations/useUpdateOrgMembershipSettingMutation.js +37 -0
  189. package/esm/public/hooks/mutations/useUpdateSecureTableProvisionMutation.d.ts +2 -2
  190. package/esm/public/hooks/mutations/useUpdateSecureTableProvisionMutation.js +1 -1
  191. package/esm/public/hooks/mutations/useUpdateWebauthnAuthModuleMutation.d.ts +40 -0
  192. package/esm/public/hooks/mutations/useUpdateWebauthnAuthModuleMutation.js +37 -0
  193. package/esm/public/hooks/mutations/useUpdateWebauthnCredentialMutation.d.ts +40 -0
  194. package/esm/public/hooks/mutations/useUpdateWebauthnCredentialMutation.js +37 -0
  195. package/esm/public/hooks/mutations/useUpdateWebauthnCredentialsModuleMutation.d.ts +2 -2
  196. package/esm/public/hooks/mutations/useUpdateWebauthnCredentialsModuleMutation.js +1 -1
  197. package/esm/public/hooks/queries/index.d.ts +13 -2
  198. package/esm/public/hooks/queries/index.js +13 -2
  199. package/esm/public/hooks/queries/useIdentityProvidersModuleQuery.d.ts +65 -0
  200. package/esm/public/hooks/queries/useIdentityProvidersModuleQuery.js +47 -0
  201. package/esm/public/hooks/queries/useIdentityProvidersModulesQuery.d.ts +69 -0
  202. package/esm/public/hooks/queries/useIdentityProvidersModulesQuery.js +32 -0
  203. package/esm/public/hooks/queries/useIdentityProvidersQuery.d.ts +69 -0
  204. package/esm/public/hooks/queries/useIdentityProvidersQuery.js +32 -0
  205. package/esm/public/hooks/queries/useNotificationsModuleQuery.d.ts +65 -0
  206. package/esm/public/hooks/queries/useNotificationsModuleQuery.js +47 -0
  207. package/esm/public/hooks/queries/useNotificationsModulesQuery.d.ts +69 -0
  208. package/esm/public/hooks/queries/useNotificationsModulesQuery.js +32 -0
  209. package/esm/public/hooks/queries/useOrgMembershipSettingQuery.d.ts +65 -0
  210. package/esm/public/hooks/queries/useOrgMembershipSettingQuery.js +47 -0
  211. package/esm/public/hooks/queries/useOrgMembershipSettingsQuery.d.ts +69 -0
  212. package/esm/public/hooks/queries/useOrgMembershipSettingsQuery.js +32 -0
  213. package/esm/public/hooks/queries/useSecureTableProvisionQuery.d.ts +4 -4
  214. package/esm/public/hooks/queries/useSecureTableProvisionQuery.js +1 -1
  215. package/esm/public/hooks/queries/useSecureTableProvisionsQuery.d.ts +4 -4
  216. package/esm/public/hooks/queries/useSecureTableProvisionsQuery.js +1 -1
  217. package/esm/public/hooks/queries/useWebauthnAuthModuleQuery.d.ts +65 -0
  218. package/esm/public/hooks/queries/useWebauthnAuthModuleQuery.js +47 -0
  219. package/esm/public/hooks/queries/useWebauthnAuthModulesQuery.d.ts +69 -0
  220. package/esm/public/hooks/queries/useWebauthnAuthModulesQuery.js +32 -0
  221. package/esm/public/hooks/queries/useWebauthnCredentialQuery.d.ts +65 -0
  222. package/esm/public/hooks/queries/useWebauthnCredentialQuery.js +47 -0
  223. package/esm/public/hooks/queries/useWebauthnCredentialsModuleQuery.d.ts +4 -4
  224. package/esm/public/hooks/queries/useWebauthnCredentialsModuleQuery.js +1 -1
  225. package/esm/public/hooks/queries/useWebauthnCredentialsModulesQuery.d.ts +4 -4
  226. package/esm/public/hooks/queries/useWebauthnCredentialsModulesQuery.js +1 -1
  227. package/esm/public/hooks/queries/useWebauthnCredentialsQuery.d.ts +69 -0
  228. package/esm/public/hooks/queries/useWebauthnCredentialsQuery.js +32 -0
  229. package/esm/public/hooks/query-keys.d.ts +98 -14
  230. package/esm/public/hooks/query-keys.js +56 -8
  231. package/esm/public/orm/index.d.ts +19 -7
  232. package/esm/public/orm/index.js +14 -2
  233. package/esm/public/orm/input-types.d.ts +1827 -366
  234. package/esm/public/orm/input-types.js +7 -0
  235. package/esm/public/orm/models/identityProvider.d.ts +32 -0
  236. package/esm/public/orm/models/identityProvider.js +51 -0
  237. package/esm/public/orm/models/identityProvidersModule.d.ts +56 -0
  238. package/esm/public/orm/models/identityProvidersModule.js +96 -0
  239. package/esm/public/orm/models/index.d.ts +7 -1
  240. package/esm/public/orm/models/index.js +7 -1
  241. package/esm/public/orm/models/notificationsModule.d.ts +56 -0
  242. package/esm/public/orm/models/notificationsModule.js +96 -0
  243. package/esm/public/orm/models/orgMembershipSetting.d.ts +56 -0
  244. package/esm/public/orm/models/orgMembershipSetting.js +96 -0
  245. package/esm/public/orm/models/webauthnAuthModule.d.ts +56 -0
  246. package/esm/public/orm/models/webauthnAuthModule.js +96 -0
  247. package/esm/public/orm/models/webauthnCredential.d.ts +56 -0
  248. package/esm/public/orm/models/webauthnCredential.js +96 -0
  249. package/esm/public/orm/mutation/index.d.ts +9 -9
  250. package/esm/public/orm/mutation/index.js +12 -12
  251. package/esm/public/schema-types.d.ts +2041 -1214
  252. package/esm/public/types.d.ts +103 -27
  253. package/objects/orm/input-types.d.ts +12 -0
  254. package/objects/schema-types.d.ts +12 -0
  255. package/package.json +3 -3
  256. package/public/hooks/index.d.ts +1 -1
  257. package/public/hooks/index.js +1 -1
  258. package/public/hooks/invalidation.d.ts +42 -6
  259. package/public/hooks/invalidation.js +112 -16
  260. package/public/hooks/mutation-keys.d.ts +86 -14
  261. package/public/hooks/mutation-keys.js +58 -13
  262. package/public/hooks/mutations/index.d.ts +20 -4
  263. package/public/hooks/mutations/index.js +20 -4
  264. package/public/hooks/mutations/useCreateIdentityProviderMutation.d.ts +34 -0
  265. package/public/hooks/mutations/useCreateIdentityProviderMutation.js +34 -0
  266. package/public/hooks/mutations/useCreateIdentityProvidersModuleMutation.d.ts +34 -0
  267. package/public/hooks/mutations/useCreateIdentityProvidersModuleMutation.js +34 -0
  268. package/public/hooks/mutations/useCreateNotificationsModuleMutation.d.ts +34 -0
  269. package/public/hooks/mutations/useCreateNotificationsModuleMutation.js +34 -0
  270. package/public/hooks/mutations/useCreateOrgMembershipSettingMutation.d.ts +34 -0
  271. package/public/hooks/mutations/useCreateOrgMembershipSettingMutation.js +34 -0
  272. package/public/hooks/mutations/useCreateSecureTableProvisionMutation.d.ts +2 -2
  273. package/public/hooks/mutations/useCreateSecureTableProvisionMutation.js +1 -1
  274. package/public/hooks/mutations/useCreateWebauthnAuthModuleMutation.d.ts +34 -0
  275. package/public/hooks/mutations/useCreateWebauthnAuthModuleMutation.js +34 -0
  276. package/public/hooks/mutations/useCreateWebauthnCredentialMutation.d.ts +34 -0
  277. package/public/hooks/mutations/useCreateWebauthnCredentialMutation.js +34 -0
  278. package/public/hooks/mutations/useCreateWebauthnCredentialsModuleMutation.d.ts +2 -2
  279. package/public/hooks/mutations/useCreateWebauthnCredentialsModuleMutation.js +1 -1
  280. package/public/hooks/mutations/useDeleteIdentityProvidersModuleMutation.d.ts +38 -0
  281. package/public/hooks/mutations/useDeleteIdentityProvidersModuleMutation.js +39 -0
  282. package/public/hooks/mutations/useDeleteNotificationsModuleMutation.d.ts +38 -0
  283. package/public/hooks/mutations/useDeleteNotificationsModuleMutation.js +39 -0
  284. package/public/hooks/mutations/useDeleteOrgMembershipSettingMutation.d.ts +38 -0
  285. package/public/hooks/mutations/useDeleteOrgMembershipSettingMutation.js +39 -0
  286. package/public/hooks/mutations/useDeleteSecureTableProvisionMutation.d.ts +2 -2
  287. package/public/hooks/mutations/useDeleteSecureTableProvisionMutation.js +1 -1
  288. package/public/hooks/mutations/useDeleteWebauthnAuthModuleMutation.d.ts +38 -0
  289. package/public/hooks/mutations/useDeleteWebauthnAuthModuleMutation.js +39 -0
  290. package/public/hooks/mutations/useDeleteWebauthnCredentialMutation.d.ts +38 -0
  291. package/public/hooks/mutations/useDeleteWebauthnCredentialMutation.js +39 -0
  292. package/public/hooks/mutations/useDeleteWebauthnCredentialsModuleMutation.d.ts +2 -2
  293. package/public/hooks/mutations/useDeleteWebauthnCredentialsModuleMutation.js +1 -1
  294. package/public/hooks/mutations/useUpdateIdentityProvidersModuleMutation.d.ts +40 -0
  295. package/public/hooks/mutations/useUpdateIdentityProvidersModuleMutation.js +40 -0
  296. package/public/hooks/mutations/useUpdateNotificationsModuleMutation.d.ts +40 -0
  297. package/public/hooks/mutations/useUpdateNotificationsModuleMutation.js +40 -0
  298. package/public/hooks/mutations/useUpdateOrgMembershipSettingMutation.d.ts +40 -0
  299. package/public/hooks/mutations/useUpdateOrgMembershipSettingMutation.js +40 -0
  300. package/public/hooks/mutations/useUpdateSecureTableProvisionMutation.d.ts +2 -2
  301. package/public/hooks/mutations/useUpdateSecureTableProvisionMutation.js +1 -1
  302. package/public/hooks/mutations/useUpdateWebauthnAuthModuleMutation.d.ts +40 -0
  303. package/public/hooks/mutations/useUpdateWebauthnAuthModuleMutation.js +40 -0
  304. package/public/hooks/mutations/useUpdateWebauthnCredentialMutation.d.ts +40 -0
  305. package/public/hooks/mutations/useUpdateWebauthnCredentialMutation.js +40 -0
  306. package/public/hooks/mutations/useUpdateWebauthnCredentialsModuleMutation.d.ts +2 -2
  307. package/public/hooks/mutations/useUpdateWebauthnCredentialsModuleMutation.js +1 -1
  308. package/public/hooks/queries/index.d.ts +13 -2
  309. package/public/hooks/queries/index.js +13 -2
  310. package/public/hooks/queries/useIdentityProvidersModuleQuery.d.ts +65 -0
  311. package/public/hooks/queries/useIdentityProvidersModuleQuery.js +53 -0
  312. package/public/hooks/queries/useIdentityProvidersModulesQuery.d.ts +69 -0
  313. package/public/hooks/queries/useIdentityProvidersModulesQuery.js +38 -0
  314. package/public/hooks/queries/useIdentityProvidersQuery.d.ts +69 -0
  315. package/public/hooks/queries/useIdentityProvidersQuery.js +38 -0
  316. package/public/hooks/queries/useNotificationsModuleQuery.d.ts +65 -0
  317. package/public/hooks/queries/useNotificationsModuleQuery.js +53 -0
  318. package/public/hooks/queries/useNotificationsModulesQuery.d.ts +69 -0
  319. package/public/hooks/queries/useNotificationsModulesQuery.js +38 -0
  320. package/public/hooks/queries/useOrgMembershipSettingQuery.d.ts +65 -0
  321. package/public/hooks/queries/useOrgMembershipSettingQuery.js +53 -0
  322. package/public/hooks/queries/useOrgMembershipSettingsQuery.d.ts +69 -0
  323. package/public/hooks/queries/useOrgMembershipSettingsQuery.js +38 -0
  324. package/public/hooks/queries/useSecureTableProvisionQuery.d.ts +4 -4
  325. package/public/hooks/queries/useSecureTableProvisionQuery.js +1 -1
  326. package/public/hooks/queries/useSecureTableProvisionsQuery.d.ts +4 -4
  327. package/public/hooks/queries/useSecureTableProvisionsQuery.js +1 -1
  328. package/public/hooks/queries/useWebauthnAuthModuleQuery.d.ts +65 -0
  329. package/public/hooks/queries/useWebauthnAuthModuleQuery.js +53 -0
  330. package/public/hooks/queries/useWebauthnAuthModulesQuery.d.ts +69 -0
  331. package/public/hooks/queries/useWebauthnAuthModulesQuery.js +38 -0
  332. package/public/hooks/queries/useWebauthnCredentialQuery.d.ts +65 -0
  333. package/public/hooks/queries/useWebauthnCredentialQuery.js +53 -0
  334. package/public/hooks/queries/useWebauthnCredentialsModuleQuery.d.ts +4 -4
  335. package/public/hooks/queries/useWebauthnCredentialsModuleQuery.js +1 -1
  336. package/public/hooks/queries/useWebauthnCredentialsModulesQuery.d.ts +4 -4
  337. package/public/hooks/queries/useWebauthnCredentialsModulesQuery.js +1 -1
  338. package/public/hooks/queries/useWebauthnCredentialsQuery.d.ts +69 -0
  339. package/public/hooks/queries/useWebauthnCredentialsQuery.js +38 -0
  340. package/public/hooks/query-keys.d.ts +98 -14
  341. package/public/hooks/query-keys.js +59 -11
  342. package/public/orm/index.d.ts +19 -7
  343. package/public/orm/index.js +14 -2
  344. package/public/orm/input-types.d.ts +1827 -366
  345. package/public/orm/input-types.js +7 -0
  346. package/public/orm/models/identityProvider.d.ts +32 -0
  347. package/public/orm/models/identityProvider.js +55 -0
  348. package/public/orm/models/identityProvidersModule.d.ts +56 -0
  349. package/public/orm/models/identityProvidersModule.js +100 -0
  350. package/public/orm/models/index.d.ts +7 -1
  351. package/public/orm/models/index.js +17 -5
  352. package/public/orm/models/notificationsModule.d.ts +56 -0
  353. package/public/orm/models/notificationsModule.js +100 -0
  354. package/public/orm/models/orgMembershipSetting.d.ts +56 -0
  355. package/public/orm/models/orgMembershipSetting.js +100 -0
  356. package/public/orm/models/webauthnAuthModule.d.ts +56 -0
  357. package/public/orm/models/webauthnAuthModule.js +100 -0
  358. package/public/orm/models/webauthnCredential.d.ts +56 -0
  359. package/public/orm/models/webauthnCredential.js +100 -0
  360. package/public/orm/mutation/index.d.ts +9 -9
  361. package/public/orm/mutation/index.js +12 -12
  362. package/public/schema-types.d.ts +2041 -1214
  363. package/public/types.d.ts +103 -27
@@ -3,7 +3,8 @@
3
3
  * @generated by @constructive-io/graphql-codegen
4
4
  * DO NOT EDIT - changes will be overwritten
5
5
  */
6
- import type { Api, ApiModule, ApiSchema, App, AppAchievement, AppAdminGrant, AppClaimedInvite, AppGrant, AppInvite, AppLevel, AppLevelRequirement, AppLimit, AppLimitDefault, AppMembership, AppMembershipDefault, AppOwnerGrant, AppPermission, AppPermissionDefault, AppStep, AstMigration, AuditLog, Blueprint, BlueprintConstruction, BlueprintTemplate, CheckConstraint, Commit, ConnectedAccountsModule, CryptoAddress, CryptoAddressesModule, CryptoAuthModule, Database, DatabaseProvisionModule, DatabaseTransfer, DefaultIdsModule, DefaultPrivilege, DenormalizedTableField, DevicesModule, Domain, Email, EmailsModule, EmbeddingChunk, EncryptedSecretsModule, EntityTypeProvision, Enum, Field, ForeignKeyConstraint, FullTextSearch, GetAllRecord, HierarchyModule, Index, InvitesModule, LevelsModule, LimitsModule, MembershipType, MembershipTypesModule, MembershipsModule, MigrateFile, Object, OrgAdminGrant, OrgChartEdge, OrgChartEdgeGrant, OrgClaimedInvite, OrgGetManagersRecord, OrgGetSubordinatesRecord, OrgGrant, OrgInvite, OrgLimit, OrgLimitDefault, OrgMember, OrgMemberProfile, OrgMembership, OrgMembershipDefault, OrgOwnerGrant, OrgPermission, OrgPermissionDefault, PermissionsModule, PhoneNumber, PhoneNumbersModule, Policy, PrimaryKeyConstraint, ProfilesModule, RateLimitsModule, Ref, RelationProvision, RlsModule, RoleType, Schema, SchemaGrant, SecretsModule, SecureTableProvision, SessionSecretsModule, SessionsModule, Site, SiteMetadatum, SiteModule, SiteTheme, SpatialRelation, SqlAction, StorageModule, Store, Table, TableGrant, Trigger, TriggerFunction, UniqueConstraint, User, UserAuthModule, UserConnectedAccount, UsersModule, View, ViewGrant, ViewRule, ViewTable, WebauthnCredentialsModule, BigIntFilter, BitStringFilter, BooleanFilter, DatetimeFilter, FloatFilter, FullTextFilter, IntFilter, InternetAddressFilter, JSONFilter, StringFilter, StringListFilter, UUIDFilter, UUIDListFilter } from './types';
6
+ import type { Api, ApiModule, ApiSchema, App, AppAchievement, AppAdminGrant, AppClaimedInvite, AppGrant, AppInvite, AppLevel, AppLevelRequirement, AppLimit, AppLimitDefault, AppMembership, AppMembershipDefault, AppOwnerGrant, AppPermission, AppPermissionDefault, AppStep, AstMigration, AuditLog, Blueprint, BlueprintConstruction, BlueprintTemplate, CheckConstraint, Commit, ConnectedAccountsModule, CryptoAddress, CryptoAddressesModule, CryptoAuthModule, Database, DatabaseProvisionModule, DatabaseTransfer, DefaultIdsModule, DefaultPrivilege, DenormalizedTableField, DevicesModule, Domain, Email, EmailsModule, EmbeddingChunk, EncryptedSecretsModule, EntityTypeProvision, Enum, Field, ForeignKeyConstraint, FullTextSearch, GetAllRecord, HierarchyModule, IdentityProvider, IdentityProvidersModule, Index, InvitesModule, LevelsModule, LimitsModule, MembershipType, MembershipTypesModule, MembershipsModule, MigrateFile, NotificationsModule, Object, OrgAdminGrant, OrgChartEdge, OrgChartEdgeGrant, OrgClaimedInvite, OrgGetManagersRecord, OrgGetSubordinatesRecord, OrgGrant, OrgInvite, OrgLimit, OrgLimitDefault, OrgMember, OrgMemberProfile, OrgMembership, OrgMembershipDefault, OrgMembershipSetting, OrgOwnerGrant, OrgPermission, OrgPermissionDefault, PermissionsModule, PhoneNumber, PhoneNumbersModule, Policy, PrimaryKeyConstraint, ProfilesModule, RateLimitsModule, Ref, RelationProvision, RlsModule, RoleType, Schema, SchemaGrant, SecretsModule, SecureTableProvision, SessionSecretsModule, SessionsModule, Site, SiteMetadatum, SiteModule, SiteTheme, SpatialRelation, SqlAction, StorageModule, Store, Table, TableGrant, Trigger, TriggerFunction, UniqueConstraint, User, UserAuthModule, UserConnectedAccount, UsersModule, View, ViewGrant, ViewRule, ViewTable, WebauthnAuthModule, WebauthnCredential, WebauthnCredentialsModule, BigIntFilter, BitStringFilter, BooleanFilter, DatetimeFilter, FloatFilter, FullTextFilter, IntFilter, InternetAddressFilter, JSONFilter, StringFilter, StringListFilter, UUIDFilter, UUIDListFilter } from './types';
7
+ export type Base64EncodedBinary = unknown;
7
8
  export type ConstructiveInternalTypeAttachment = unknown;
8
9
  export type ConstructiveInternalTypeEmail = unknown;
9
10
  export type ConstructiveInternalTypeHostname = unknown;
@@ -45,11 +46,13 @@ export type ViewOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | '
45
46
  /** Methods to use when ordering `EmbeddingChunk`. */
46
47
  export type EmbeddingChunkOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'TABLE_ID_ASC' | 'TABLE_ID_DESC' | 'EMBEDDING_FIELD_ID_ASC' | 'EMBEDDING_FIELD_ID_DESC' | 'CHUNKS_TABLE_ID_ASC' | 'CHUNKS_TABLE_ID_DESC' | 'CHUNKS_TABLE_NAME_ASC' | 'CHUNKS_TABLE_NAME_DESC' | 'CONTENT_FIELD_NAME_ASC' | 'CONTENT_FIELD_NAME_DESC' | 'DIMENSIONS_ASC' | 'DIMENSIONS_DESC' | 'METRIC_ASC' | 'METRIC_DESC' | 'CHUNK_SIZE_ASC' | 'CHUNK_SIZE_DESC' | 'CHUNK_OVERLAP_ASC' | 'CHUNK_OVERLAP_DESC' | 'CHUNK_STRATEGY_ASC' | 'CHUNK_STRATEGY_DESC' | 'METADATA_FIELDS_ASC' | 'METADATA_FIELDS_DESC' | 'ENQUEUE_CHUNKING_JOB_ASC' | 'ENQUEUE_CHUNKING_JOB_DESC' | 'CHUNKING_TASK_NAME_ASC' | 'CHUNKING_TASK_NAME_DESC' | 'PARENT_FK_FIELD_ID_ASC' | 'PARENT_FK_FIELD_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
47
48
  /** Methods to use when ordering `SecureTableProvision`. */
48
- export type SecureTableProvisionOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'TABLE_ID_ASC' | 'TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC' | 'NODES_ASC' | 'NODES_DESC' | 'USE_RLS_ASC' | 'USE_RLS_DESC' | 'FIELDS_ASC' | 'FIELDS_DESC' | 'GRANT_ROLES_ASC' | 'GRANT_ROLES_DESC' | 'GRANT_PRIVILEGES_ASC' | 'GRANT_PRIVILEGES_DESC' | 'POLICY_TYPE_ASC' | 'POLICY_TYPE_DESC' | 'POLICY_PRIVILEGES_ASC' | 'POLICY_PRIVILEGES_DESC' | 'POLICY_ROLE_ASC' | 'POLICY_ROLE_DESC' | 'POLICY_PERMISSIVE_ASC' | 'POLICY_PERMISSIVE_DESC' | 'POLICY_NAME_ASC' | 'POLICY_NAME_DESC' | 'POLICY_DATA_ASC' | 'POLICY_DATA_DESC' | 'OUT_FIELDS_ASC' | 'OUT_FIELDS_DESC';
49
+ export type SecureTableProvisionOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'TABLE_ID_ASC' | 'TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC' | 'NODES_ASC' | 'NODES_DESC' | 'USE_RLS_ASC' | 'USE_RLS_DESC' | 'FIELDS_ASC' | 'FIELDS_DESC' | 'GRANTS_ASC' | 'GRANTS_DESC' | 'POLICIES_ASC' | 'POLICIES_DESC' | 'OUT_FIELDS_ASC' | 'OUT_FIELDS_DESC';
49
50
  /** Methods to use when ordering `RelationProvision`. */
50
- export type RelationProvisionOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'RELATION_TYPE_ASC' | 'RELATION_TYPE_DESC' | 'SOURCE_TABLE_ID_ASC' | 'SOURCE_TABLE_ID_DESC' | 'TARGET_TABLE_ID_ASC' | 'TARGET_TABLE_ID_DESC' | 'FIELD_NAME_ASC' | 'FIELD_NAME_DESC' | 'DELETE_ACTION_ASC' | 'DELETE_ACTION_DESC' | 'IS_REQUIRED_ASC' | 'IS_REQUIRED_DESC' | 'API_REQUIRED_ASC' | 'API_REQUIRED_DESC' | 'JUNCTION_TABLE_ID_ASC' | 'JUNCTION_TABLE_ID_DESC' | 'JUNCTION_TABLE_NAME_ASC' | 'JUNCTION_TABLE_NAME_DESC' | 'JUNCTION_SCHEMA_ID_ASC' | 'JUNCTION_SCHEMA_ID_DESC' | 'SOURCE_FIELD_NAME_ASC' | 'SOURCE_FIELD_NAME_DESC' | 'TARGET_FIELD_NAME_ASC' | 'TARGET_FIELD_NAME_DESC' | 'USE_COMPOSITE_KEY_ASC' | 'USE_COMPOSITE_KEY_DESC' | 'CREATE_INDEX_ASC' | 'CREATE_INDEX_DESC' | 'EXPOSE_IN_API_ASC' | 'EXPOSE_IN_API_DESC' | 'NODES_ASC' | 'NODES_DESC' | 'GRANT_ROLES_ASC' | 'GRANT_ROLES_DESC' | 'GRANT_PRIVILEGES_ASC' | 'GRANT_PRIVILEGES_DESC' | 'POLICY_TYPE_ASC' | 'POLICY_TYPE_DESC' | 'POLICY_PRIVILEGES_ASC' | 'POLICY_PRIVILEGES_DESC' | 'POLICY_ROLE_ASC' | 'POLICY_ROLE_DESC' | 'POLICY_PERMISSIVE_ASC' | 'POLICY_PERMISSIVE_DESC' | 'POLICY_NAME_ASC' | 'POLICY_NAME_DESC' | 'POLICY_DATA_ASC' | 'POLICY_DATA_DESC' | 'OUT_FIELD_ID_ASC' | 'OUT_FIELD_ID_DESC' | 'OUT_JUNCTION_TABLE_ID_ASC' | 'OUT_JUNCTION_TABLE_ID_DESC' | 'OUT_SOURCE_FIELD_ID_ASC' | 'OUT_SOURCE_FIELD_ID_DESC' | 'OUT_TARGET_FIELD_ID_ASC' | 'OUT_TARGET_FIELD_ID_DESC';
51
+ export type RelationProvisionOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'RELATION_TYPE_ASC' | 'RELATION_TYPE_DESC' | 'SOURCE_TABLE_ID_ASC' | 'SOURCE_TABLE_ID_DESC' | 'TARGET_TABLE_ID_ASC' | 'TARGET_TABLE_ID_DESC' | 'FIELD_NAME_ASC' | 'FIELD_NAME_DESC' | 'DELETE_ACTION_ASC' | 'DELETE_ACTION_DESC' | 'IS_REQUIRED_ASC' | 'IS_REQUIRED_DESC' | 'API_REQUIRED_ASC' | 'API_REQUIRED_DESC' | 'JUNCTION_TABLE_ID_ASC' | 'JUNCTION_TABLE_ID_DESC' | 'JUNCTION_TABLE_NAME_ASC' | 'JUNCTION_TABLE_NAME_DESC' | 'JUNCTION_SCHEMA_ID_ASC' | 'JUNCTION_SCHEMA_ID_DESC' | 'SOURCE_FIELD_NAME_ASC' | 'SOURCE_FIELD_NAME_DESC' | 'TARGET_FIELD_NAME_ASC' | 'TARGET_FIELD_NAME_DESC' | 'USE_COMPOSITE_KEY_ASC' | 'USE_COMPOSITE_KEY_DESC' | 'CREATE_INDEX_ASC' | 'CREATE_INDEX_DESC' | 'EXPOSE_IN_API_ASC' | 'EXPOSE_IN_API_DESC' | 'NODES_ASC' | 'NODES_DESC' | 'GRANTS_ASC' | 'GRANTS_DESC' | 'POLICIES_ASC' | 'POLICIES_DESC' | 'OUT_FIELD_ID_ASC' | 'OUT_FIELD_ID_DESC' | 'OUT_JUNCTION_TABLE_ID_ASC' | 'OUT_JUNCTION_TABLE_ID_DESC' | 'OUT_SOURCE_FIELD_ID_ASC' | 'OUT_SOURCE_FIELD_ID_DESC' | 'OUT_TARGET_FIELD_ID_ASC' | 'OUT_TARGET_FIELD_ID_DESC';
51
52
  /** Methods to use when ordering `SessionSecretsModule`. */
52
53
  export type SessionSecretsModuleOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'TABLE_ID_ASC' | 'TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC' | 'SESSIONS_TABLE_ID_ASC' | 'SESSIONS_TABLE_ID_DESC';
54
+ /** Methods to use when ordering `IdentityProvidersModule`. */
55
+ export type IdentityProvidersModuleOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' | 'TABLE_ID_ASC' | 'TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC';
53
56
  /** Methods to use when ordering `Table`. */
54
57
  export type TableOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'LABEL_ASC' | 'LABEL_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'SMART_TAGS_ASC' | 'SMART_TAGS_DESC' | 'CATEGORY_ASC' | 'CATEGORY_DESC' | 'MODULE_ASC' | 'MODULE_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'USE_RLS_ASC' | 'USE_RLS_DESC' | 'TIMESTAMPS_ASC' | 'TIMESTAMPS_DESC' | 'PEOPLESTAMPS_ASC' | 'PEOPLESTAMPS_DESC' | 'PLURAL_NAME_ASC' | 'PLURAL_NAME_DESC' | 'SINGULAR_NAME_ASC' | 'SINGULAR_NAME_DESC' | 'TAGS_ASC' | 'TAGS_DESC' | 'INHERITS_ID_ASC' | 'INHERITS_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
55
58
  /** Methods to use when ordering `SchemaGrant`. */
@@ -105,7 +108,7 @@ export type LimitsModuleOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_D
105
108
  /** Methods to use when ordering `MembershipTypesModule`. */
106
109
  export type MembershipTypesModuleOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'TABLE_ID_ASC' | 'TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC';
107
110
  /** Methods to use when ordering `MembershipsModule`. */
108
- export type MembershipsModuleOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' | 'MEMBERSHIPS_TABLE_ID_ASC' | 'MEMBERSHIPS_TABLE_ID_DESC' | 'MEMBERSHIPS_TABLE_NAME_ASC' | 'MEMBERSHIPS_TABLE_NAME_DESC' | 'MEMBERS_TABLE_ID_ASC' | 'MEMBERS_TABLE_ID_DESC' | 'MEMBERS_TABLE_NAME_ASC' | 'MEMBERS_TABLE_NAME_DESC' | 'MEMBERSHIP_DEFAULTS_TABLE_ID_ASC' | 'MEMBERSHIP_DEFAULTS_TABLE_ID_DESC' | 'MEMBERSHIP_DEFAULTS_TABLE_NAME_ASC' | 'MEMBERSHIP_DEFAULTS_TABLE_NAME_DESC' | 'GRANTS_TABLE_ID_ASC' | 'GRANTS_TABLE_ID_DESC' | 'GRANTS_TABLE_NAME_ASC' | 'GRANTS_TABLE_NAME_DESC' | 'ACTOR_TABLE_ID_ASC' | 'ACTOR_TABLE_ID_DESC' | 'LIMITS_TABLE_ID_ASC' | 'LIMITS_TABLE_ID_DESC' | 'DEFAULT_LIMITS_TABLE_ID_ASC' | 'DEFAULT_LIMITS_TABLE_ID_DESC' | 'PERMISSIONS_TABLE_ID_ASC' | 'PERMISSIONS_TABLE_ID_DESC' | 'DEFAULT_PERMISSIONS_TABLE_ID_ASC' | 'DEFAULT_PERMISSIONS_TABLE_ID_DESC' | 'SPRT_TABLE_ID_ASC' | 'SPRT_TABLE_ID_DESC' | 'ADMIN_GRANTS_TABLE_ID_ASC' | 'ADMIN_GRANTS_TABLE_ID_DESC' | 'ADMIN_GRANTS_TABLE_NAME_ASC' | 'ADMIN_GRANTS_TABLE_NAME_DESC' | 'OWNER_GRANTS_TABLE_ID_ASC' | 'OWNER_GRANTS_TABLE_ID_DESC' | 'OWNER_GRANTS_TABLE_NAME_ASC' | 'OWNER_GRANTS_TABLE_NAME_DESC' | 'MEMBERSHIP_TYPE_ASC' | 'MEMBERSHIP_TYPE_DESC' | 'ENTITY_TABLE_ID_ASC' | 'ENTITY_TABLE_ID_DESC' | 'ENTITY_TABLE_OWNER_ID_ASC' | 'ENTITY_TABLE_OWNER_ID_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' | 'ACTOR_MASK_CHECK_ASC' | 'ACTOR_MASK_CHECK_DESC' | 'ACTOR_PERM_CHECK_ASC' | 'ACTOR_PERM_CHECK_DESC' | 'ENTITY_IDS_BY_MASK_ASC' | 'ENTITY_IDS_BY_MASK_DESC' | 'ENTITY_IDS_BY_PERM_ASC' | 'ENTITY_IDS_BY_PERM_DESC' | 'ENTITY_IDS_FUNCTION_ASC' | 'ENTITY_IDS_FUNCTION_DESC' | 'MEMBER_PROFILES_TABLE_ID_ASC' | 'MEMBER_PROFILES_TABLE_ID_DESC';
111
+ export type MembershipsModuleOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' | 'MEMBERSHIPS_TABLE_ID_ASC' | 'MEMBERSHIPS_TABLE_ID_DESC' | 'MEMBERSHIPS_TABLE_NAME_ASC' | 'MEMBERSHIPS_TABLE_NAME_DESC' | 'MEMBERS_TABLE_ID_ASC' | 'MEMBERS_TABLE_ID_DESC' | 'MEMBERS_TABLE_NAME_ASC' | 'MEMBERS_TABLE_NAME_DESC' | 'MEMBERSHIP_DEFAULTS_TABLE_ID_ASC' | 'MEMBERSHIP_DEFAULTS_TABLE_ID_DESC' | 'MEMBERSHIP_DEFAULTS_TABLE_NAME_ASC' | 'MEMBERSHIP_DEFAULTS_TABLE_NAME_DESC' | 'MEMBERSHIP_SETTINGS_TABLE_ID_ASC' | 'MEMBERSHIP_SETTINGS_TABLE_ID_DESC' | 'MEMBERSHIP_SETTINGS_TABLE_NAME_ASC' | 'MEMBERSHIP_SETTINGS_TABLE_NAME_DESC' | 'GRANTS_TABLE_ID_ASC' | 'GRANTS_TABLE_ID_DESC' | 'GRANTS_TABLE_NAME_ASC' | 'GRANTS_TABLE_NAME_DESC' | 'ACTOR_TABLE_ID_ASC' | 'ACTOR_TABLE_ID_DESC' | 'LIMITS_TABLE_ID_ASC' | 'LIMITS_TABLE_ID_DESC' | 'DEFAULT_LIMITS_TABLE_ID_ASC' | 'DEFAULT_LIMITS_TABLE_ID_DESC' | 'PERMISSIONS_TABLE_ID_ASC' | 'PERMISSIONS_TABLE_ID_DESC' | 'DEFAULT_PERMISSIONS_TABLE_ID_ASC' | 'DEFAULT_PERMISSIONS_TABLE_ID_DESC' | 'SPRT_TABLE_ID_ASC' | 'SPRT_TABLE_ID_DESC' | 'ADMIN_GRANTS_TABLE_ID_ASC' | 'ADMIN_GRANTS_TABLE_ID_DESC' | 'ADMIN_GRANTS_TABLE_NAME_ASC' | 'ADMIN_GRANTS_TABLE_NAME_DESC' | 'OWNER_GRANTS_TABLE_ID_ASC' | 'OWNER_GRANTS_TABLE_ID_DESC' | 'OWNER_GRANTS_TABLE_NAME_ASC' | 'OWNER_GRANTS_TABLE_NAME_DESC' | 'MEMBERSHIP_TYPE_ASC' | 'MEMBERSHIP_TYPE_DESC' | 'ENTITY_TABLE_ID_ASC' | 'ENTITY_TABLE_ID_DESC' | 'ENTITY_TABLE_OWNER_ID_ASC' | 'ENTITY_TABLE_OWNER_ID_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' | 'ACTOR_MASK_CHECK_ASC' | 'ACTOR_MASK_CHECK_DESC' | 'ACTOR_PERM_CHECK_ASC' | 'ACTOR_PERM_CHECK_DESC' | 'ENTITY_IDS_BY_MASK_ASC' | 'ENTITY_IDS_BY_MASK_DESC' | 'ENTITY_IDS_BY_PERM_ASC' | 'ENTITY_IDS_BY_PERM_DESC' | 'ENTITY_IDS_FUNCTION_ASC' | 'ENTITY_IDS_FUNCTION_DESC' | 'MEMBER_PROFILES_TABLE_ID_ASC' | 'MEMBER_PROFILES_TABLE_ID_DESC';
109
112
  /** Methods to use when ordering `PermissionsModule`. */
110
113
  export type PermissionsModuleOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' | 'TABLE_ID_ASC' | 'TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC' | 'DEFAULT_TABLE_ID_ASC' | 'DEFAULT_TABLE_ID_DESC' | 'DEFAULT_TABLE_NAME_ASC' | 'DEFAULT_TABLE_NAME_DESC' | 'BITLEN_ASC' | 'BITLEN_DESC' | 'MEMBERSHIP_TYPE_ASC' | 'MEMBERSHIP_TYPE_DESC' | 'ENTITY_TABLE_ID_ASC' | 'ENTITY_TABLE_ID_DESC' | 'ACTOR_TABLE_ID_ASC' | 'ACTOR_TABLE_ID_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' | 'GET_PADDED_MASK_ASC' | 'GET_PADDED_MASK_DESC' | 'GET_MASK_ASC' | 'GET_MASK_DESC' | 'GET_BY_MASK_ASC' | 'GET_BY_MASK_DESC' | 'GET_MASK_BY_NAME_ASC' | 'GET_MASK_BY_NAME_DESC';
111
114
  /** Methods to use when ordering `PhoneNumbersModule`. */
@@ -127,11 +130,15 @@ export type BlueprintOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC
127
130
  /** Methods to use when ordering `BlueprintConstruction`. */
128
131
  export type BlueprintConstructionOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'BLUEPRINT_ID_ASC' | 'BLUEPRINT_ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'STATUS_ASC' | 'STATUS_DESC' | 'ERROR_DETAILS_ASC' | 'ERROR_DETAILS_DESC' | 'TABLE_MAP_ASC' | 'TABLE_MAP_DESC' | 'CONSTRUCTED_DEFINITION_ASC' | 'CONSTRUCTED_DEFINITION_DESC' | 'CONSTRUCTED_AT_ASC' | 'CONSTRUCTED_AT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
129
132
  /** Methods to use when ordering `StorageModule`. */
130
- export type StorageModuleOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' | 'BUCKETS_TABLE_ID_ASC' | 'BUCKETS_TABLE_ID_DESC' | 'FILES_TABLE_ID_ASC' | 'FILES_TABLE_ID_DESC' | 'UPLOAD_REQUESTS_TABLE_ID_ASC' | 'UPLOAD_REQUESTS_TABLE_ID_DESC' | 'BUCKETS_TABLE_NAME_ASC' | 'BUCKETS_TABLE_NAME_DESC' | 'FILES_TABLE_NAME_ASC' | 'FILES_TABLE_NAME_DESC' | 'UPLOAD_REQUESTS_TABLE_NAME_ASC' | 'UPLOAD_REQUESTS_TABLE_NAME_DESC' | 'ENTITY_TABLE_ID_ASC' | 'ENTITY_TABLE_ID_DESC' | 'ENDPOINT_ASC' | 'ENDPOINT_DESC' | 'PUBLIC_URL_PREFIX_ASC' | 'PUBLIC_URL_PREFIX_DESC' | 'PROVIDER_ASC' | 'PROVIDER_DESC' | 'ALLOWED_ORIGINS_ASC' | 'ALLOWED_ORIGINS_DESC' | 'UPLOAD_URL_EXPIRY_SECONDS_ASC' | 'UPLOAD_URL_EXPIRY_SECONDS_DESC' | 'DOWNLOAD_URL_EXPIRY_SECONDS_ASC' | 'DOWNLOAD_URL_EXPIRY_SECONDS_DESC' | 'DEFAULT_MAX_FILE_SIZE_ASC' | 'DEFAULT_MAX_FILE_SIZE_DESC' | 'MAX_FILENAME_LENGTH_ASC' | 'MAX_FILENAME_LENGTH_DESC' | 'CACHE_TTL_SECONDS_ASC' | 'CACHE_TTL_SECONDS_DESC';
133
+ export type StorageModuleOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' | 'BUCKETS_TABLE_ID_ASC' | 'BUCKETS_TABLE_ID_DESC' | 'FILES_TABLE_ID_ASC' | 'FILES_TABLE_ID_DESC' | 'UPLOAD_REQUESTS_TABLE_ID_ASC' | 'UPLOAD_REQUESTS_TABLE_ID_DESC' | 'BUCKETS_TABLE_NAME_ASC' | 'BUCKETS_TABLE_NAME_DESC' | 'FILES_TABLE_NAME_ASC' | 'FILES_TABLE_NAME_DESC' | 'UPLOAD_REQUESTS_TABLE_NAME_ASC' | 'UPLOAD_REQUESTS_TABLE_NAME_DESC' | 'MEMBERSHIP_TYPE_ASC' | 'MEMBERSHIP_TYPE_DESC' | 'POLICIES_ASC' | 'POLICIES_DESC' | 'ENTITY_TABLE_ID_ASC' | 'ENTITY_TABLE_ID_DESC' | 'ENDPOINT_ASC' | 'ENDPOINT_DESC' | 'PUBLIC_URL_PREFIX_ASC' | 'PUBLIC_URL_PREFIX_DESC' | 'PROVIDER_ASC' | 'PROVIDER_DESC' | 'ALLOWED_ORIGINS_ASC' | 'ALLOWED_ORIGINS_DESC' | 'UPLOAD_URL_EXPIRY_SECONDS_ASC' | 'UPLOAD_URL_EXPIRY_SECONDS_DESC' | 'DOWNLOAD_URL_EXPIRY_SECONDS_ASC' | 'DOWNLOAD_URL_EXPIRY_SECONDS_DESC' | 'DEFAULT_MAX_FILE_SIZE_ASC' | 'DEFAULT_MAX_FILE_SIZE_DESC' | 'MAX_FILENAME_LENGTH_ASC' | 'MAX_FILENAME_LENGTH_DESC' | 'CACHE_TTL_SECONDS_ASC' | 'CACHE_TTL_SECONDS_DESC';
131
134
  /** Methods to use when ordering `EntityTypeProvision`. */
132
- export type EntityTypeProvisionOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'PARENT_ENTITY_ASC' | 'PARENT_ENTITY_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC' | 'IS_VISIBLE_ASC' | 'IS_VISIBLE_DESC' | 'HAS_LIMITS_ASC' | 'HAS_LIMITS_DESC' | 'HAS_PROFILES_ASC' | 'HAS_PROFILES_DESC' | 'HAS_LEVELS_ASC' | 'HAS_LEVELS_DESC' | 'SKIP_ENTITY_POLICIES_ASC' | 'SKIP_ENTITY_POLICIES_DESC' | 'TABLE_PROVISION_ASC' | 'TABLE_PROVISION_DESC' | 'OUT_MEMBERSHIP_TYPE_ASC' | 'OUT_MEMBERSHIP_TYPE_DESC' | 'OUT_ENTITY_TABLE_ID_ASC' | 'OUT_ENTITY_TABLE_ID_DESC' | 'OUT_ENTITY_TABLE_NAME_ASC' | 'OUT_ENTITY_TABLE_NAME_DESC' | 'OUT_INSTALLED_MODULES_ASC' | 'OUT_INSTALLED_MODULES_DESC';
135
+ export type EntityTypeProvisionOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'PARENT_ENTITY_ASC' | 'PARENT_ENTITY_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC' | 'IS_VISIBLE_ASC' | 'IS_VISIBLE_DESC' | 'HAS_LIMITS_ASC' | 'HAS_LIMITS_DESC' | 'HAS_PROFILES_ASC' | 'HAS_PROFILES_DESC' | 'HAS_LEVELS_ASC' | 'HAS_LEVELS_DESC' | 'HAS_STORAGE_ASC' | 'HAS_STORAGE_DESC' | 'STORAGE_CONFIG_ASC' | 'STORAGE_CONFIG_DESC' | 'SKIP_ENTITY_POLICIES_ASC' | 'SKIP_ENTITY_POLICIES_DESC' | 'TABLE_PROVISION_ASC' | 'TABLE_PROVISION_DESC' | 'OUT_MEMBERSHIP_TYPE_ASC' | 'OUT_MEMBERSHIP_TYPE_DESC' | 'OUT_ENTITY_TABLE_ID_ASC' | 'OUT_ENTITY_TABLE_ID_DESC' | 'OUT_ENTITY_TABLE_NAME_ASC' | 'OUT_ENTITY_TABLE_NAME_DESC' | 'OUT_INSTALLED_MODULES_ASC' | 'OUT_INSTALLED_MODULES_DESC' | 'OUT_STORAGE_MODULE_ID_ASC' | 'OUT_STORAGE_MODULE_ID_DESC' | 'OUT_BUCKETS_TABLE_ID_ASC' | 'OUT_BUCKETS_TABLE_ID_DESC' | 'OUT_FILES_TABLE_ID_ASC' | 'OUT_FILES_TABLE_ID_DESC';
133
136
  /** Methods to use when ordering `WebauthnCredentialsModule`. */
134
137
  export type WebauthnCredentialsModuleOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' | 'TABLE_ID_ASC' | 'TABLE_ID_DESC' | 'OWNER_TABLE_ID_ASC' | 'OWNER_TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC';
138
+ /** Methods to use when ordering `WebauthnAuthModule`. */
139
+ export type WebauthnAuthModuleOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'USERS_TABLE_ID_ASC' | 'USERS_TABLE_ID_DESC' | 'CREDENTIALS_TABLE_ID_ASC' | 'CREDENTIALS_TABLE_ID_DESC' | 'SESSIONS_TABLE_ID_ASC' | 'SESSIONS_TABLE_ID_DESC' | 'SESSION_CREDENTIALS_TABLE_ID_ASC' | 'SESSION_CREDENTIALS_TABLE_ID_DESC' | 'SESSION_SECRETS_TABLE_ID_ASC' | 'SESSION_SECRETS_TABLE_ID_DESC' | 'AUTH_SETTINGS_TABLE_ID_ASC' | 'AUTH_SETTINGS_TABLE_ID_DESC' | 'RP_ID_ASC' | 'RP_ID_DESC' | 'RP_NAME_ASC' | 'RP_NAME_DESC' | 'ORIGIN_ALLOWLIST_ASC' | 'ORIGIN_ALLOWLIST_DESC' | 'ATTESTATION_TYPE_ASC' | 'ATTESTATION_TYPE_DESC' | 'REQUIRE_USER_VERIFICATION_ASC' | 'REQUIRE_USER_VERIFICATION_DESC' | 'RESIDENT_KEY_ASC' | 'RESIDENT_KEY_DESC' | 'CHALLENGE_EXPIRY_ASC' | 'CHALLENGE_EXPIRY_DESC';
140
+ /** Methods to use when ordering `NotificationsModule`. */
141
+ export type NotificationsModuleOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' | 'NOTIFICATIONS_TABLE_ID_ASC' | 'NOTIFICATIONS_TABLE_ID_DESC' | 'EVENTS_TABLE_ID_ASC' | 'EVENTS_TABLE_ID_DESC' | 'PREFERENCES_TABLE_ID_ASC' | 'PREFERENCES_TABLE_ID_DESC' | 'CHANNELS_TABLE_ID_ASC' | 'CHANNELS_TABLE_ID_DESC' | 'DELIVERY_LOG_TABLE_ID_ASC' | 'DELIVERY_LOG_TABLE_ID_DESC' | 'OWNER_TABLE_ID_ASC' | 'OWNER_TABLE_ID_DESC' | 'USER_SETTINGS_TABLE_ID_ASC' | 'USER_SETTINGS_TABLE_ID_DESC' | 'ORGANIZATION_SETTINGS_TABLE_ID_ASC' | 'ORGANIZATION_SETTINGS_TABLE_ID_DESC';
135
142
  /** Methods to use when ordering `DatabaseProvisionModule`. */
136
143
  export type DatabaseProvisionModuleOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_NAME_ASC' | 'DATABASE_NAME_DESC' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' | 'SUBDOMAIN_ASC' | 'SUBDOMAIN_DESC' | 'DOMAIN_ASC' | 'DOMAIN_DESC' | 'MODULES_ASC' | 'MODULES_DESC' | 'OPTIONS_ASC' | 'OPTIONS_DESC' | 'BOOTSTRAP_USER_ASC' | 'BOOTSTRAP_USER_DESC' | 'STATUS_ASC' | 'STATUS_DESC' | 'ERROR_MESSAGE_ASC' | 'ERROR_MESSAGE_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'COMPLETED_AT_ASC' | 'COMPLETED_AT_DESC';
137
144
  /** Methods to use when ordering `Database`. */
@@ -171,11 +178,13 @@ export type AppAchievementOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY
171
178
  /** Methods to use when ordering `AppLevel`. */
172
179
  export type AppLevelOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'IMAGE_ASC' | 'IMAGE_DESC' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
173
180
  /** Methods to use when ordering `Email`. */
174
- export type EmailOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | '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';
181
+ export type EmailOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | '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' | 'NAME_ASC' | 'NAME_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
175
182
  /** Methods to use when ordering `PhoneNumber`. */
176
- export type PhoneNumberOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | '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';
183
+ export type PhoneNumberOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | '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' | 'NAME_ASC' | 'NAME_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
177
184
  /** Methods to use when ordering `CryptoAddress`. */
178
- export type CryptoAddressOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | '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';
185
+ export type CryptoAddressOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | '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' | 'NAME_ASC' | 'NAME_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
186
+ /** Methods to use when ordering `WebauthnCredential`. */
187
+ export type WebauthnCredentialOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' | 'CREDENTIAL_ID_ASC' | 'CREDENTIAL_ID_DESC' | 'PUBLIC_KEY_ASC' | 'PUBLIC_KEY_DESC' | 'SIGN_COUNT_ASC' | 'SIGN_COUNT_DESC' | 'WEBAUTHN_USER_ID_ASC' | 'WEBAUTHN_USER_ID_DESC' | 'TRANSPORTS_ASC' | 'TRANSPORTS_DESC' | 'CREDENTIAL_DEVICE_TYPE_ASC' | 'CREDENTIAL_DEVICE_TYPE_DESC' | 'BACKUP_ELIGIBLE_ASC' | 'BACKUP_ELIGIBLE_DESC' | 'BACKUP_STATE_ASC' | 'BACKUP_STATE_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'LAST_USED_AT_ASC' | 'LAST_USED_AT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
179
188
  /** Methods to use when ordering `AppInvite`. */
180
189
  export type AppInviteOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'EMAIL_ASC' | 'EMAIL_DESC' | 'SENDER_ID_ASC' | 'SENDER_ID_DESC' | 'INVITE_TOKEN_ASC' | 'INVITE_TOKEN_DESC' | 'INVITE_VALID_ASC' | 'INVITE_VALID_DESC' | 'INVITE_LIMIT_ASC' | 'INVITE_LIMIT_DESC' | 'INVITE_COUNT_ASC' | 'INVITE_COUNT_DESC' | 'MULTIPLE_ASC' | 'MULTIPLE_DESC' | 'DATA_ASC' | 'DATA_DESC' | 'EXPIRES_AT_ASC' | 'EXPIRES_AT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
181
190
  /** Methods to use when ordering `AppClaimedInvite`. */
@@ -188,6 +197,8 @@ export type OrgClaimedInviteOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_K
188
197
  export type AuditLogOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | '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';
189
198
  /** Methods to use when ordering `AppPermissionDefault`. */
190
199
  export type AppPermissionDefaultOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'PERMISSIONS_ASC' | 'PERMISSIONS_DESC';
200
+ /** Methods to use when ordering `IdentityProvider`. */
201
+ export type IdentityProviderOrderBy = 'NATURAL' | 'SLUG_ASC' | 'SLUG_DESC' | 'KIND_ASC' | 'KIND_DESC' | 'DISPLAY_NAME_ASC' | 'DISPLAY_NAME_DESC' | 'ENABLED_ASC' | 'ENABLED_DESC' | 'IS_BUILT_IN_ASC' | 'IS_BUILT_IN_DESC';
191
202
  /** Methods to use when ordering `Ref`. */
192
203
  export type RefOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'STORE_ID_ASC' | 'STORE_ID_DESC' | 'COMMIT_ID_ASC' | 'COMMIT_ID_DESC';
193
204
  /** Methods to use when ordering `Store`. */
@@ -212,20 +223,22 @@ export type AppPermissionOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_
212
223
  export type OrgPermissionOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'BITNUM_ASC' | 'BITNUM_DESC' | 'BITSTR_ASC' | 'BITSTR_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC';
213
224
  /** Methods to use when ordering `AppMembershipDefault`. */
214
225
  export type AppMembershipDefaultOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' | 'UPDATED_BY_ASC' | 'UPDATED_BY_DESC' | 'IS_APPROVED_ASC' | 'IS_APPROVED_DESC' | 'IS_VERIFIED_ASC' | 'IS_VERIFIED_DESC';
226
+ /** Methods to use when ordering `OrgMembershipDefault`. */
227
+ export type OrgMembershipDefaultOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' | 'UPDATED_BY_ASC' | 'UPDATED_BY_DESC' | 'IS_APPROVED_ASC' | 'IS_APPROVED_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC';
215
228
  /** Methods to use when ordering `Commit`. */
216
229
  export type CommitOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'MESSAGE_ASC' | 'MESSAGE_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'STORE_ID_ASC' | 'STORE_ID_DESC' | 'PARENT_IDS_ASC' | 'PARENT_IDS_DESC' | 'AUTHOR_ID_ASC' | 'AUTHOR_ID_DESC' | 'COMMITTER_ID_ASC' | 'COMMITTER_ID_DESC' | 'TREE_ID_ASC' | 'TREE_ID_DESC' | 'DATE_ASC' | 'DATE_DESC';
217
230
  /** Methods to use when ordering `RateLimitsModule`. */
218
231
  export type RateLimitsModuleOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'RATE_LIMIT_SETTINGS_TABLE_ID_ASC' | 'RATE_LIMIT_SETTINGS_TABLE_ID_DESC' | 'IP_RATE_LIMITS_TABLE_ID_ASC' | 'IP_RATE_LIMITS_TABLE_ID_DESC' | 'RATE_LIMITS_TABLE_ID_ASC' | 'RATE_LIMITS_TABLE_ID_DESC' | 'RATE_LIMIT_SETTINGS_TABLE_ASC' | 'RATE_LIMIT_SETTINGS_TABLE_DESC' | 'IP_RATE_LIMITS_TABLE_ASC' | 'IP_RATE_LIMITS_TABLE_DESC' | 'RATE_LIMITS_TABLE_ASC' | 'RATE_LIMITS_TABLE_DESC';
219
232
  /** Methods to use when ordering `MembershipType`. */
220
233
  export type MembershipTypeOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' | 'PARENT_MEMBERSHIP_TYPE_ASC' | 'PARENT_MEMBERSHIP_TYPE_DESC' | 'HAS_USERS_TABLE_ENTRY_ASC' | 'HAS_USERS_TABLE_ENTRY_DESC';
221
- /** Methods to use when ordering `OrgMembershipDefault`. */
222
- export type OrgMembershipDefaultOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' | 'UPDATED_BY_ASC' | 'UPDATED_BY_DESC' | 'IS_APPROVED_ASC' | 'IS_APPROVED_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'DELETE_MEMBER_CASCADE_GROUPS_ASC' | 'DELETE_MEMBER_CASCADE_GROUPS_DESC' | 'CREATE_GROUPS_CASCADE_MEMBERS_ASC' | 'CREATE_GROUPS_CASCADE_MEMBERS_DESC';
223
234
  /** Methods to use when ordering `RlsModule`. */
224
235
  export type RlsModuleOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' | 'SESSION_CREDENTIALS_TABLE_ID_ASC' | 'SESSION_CREDENTIALS_TABLE_ID_DESC' | 'SESSIONS_TABLE_ID_ASC' | 'SESSIONS_TABLE_ID_DESC' | 'USERS_TABLE_ID_ASC' | 'USERS_TABLE_ID_DESC' | 'AUTHENTICATE_ASC' | 'AUTHENTICATE_DESC' | 'AUTHENTICATE_STRICT_ASC' | 'AUTHENTICATE_STRICT_DESC' | 'CURRENT_ROLE_ASC' | 'CURRENT_ROLE_DESC' | 'CURRENT_ROLE_ID_ASC' | 'CURRENT_ROLE_ID_DESC';
225
236
  /** Methods to use when ordering `AppLevelRequirement`. */
226
237
  export type AppLevelRequirementOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'LEVEL_ASC' | 'LEVEL_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'REQUIRED_COUNT_ASC' | 'REQUIRED_COUNT_DESC' | 'PRIORITY_ASC' | 'PRIORITY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
227
238
  /** Methods to use when ordering `SqlAction`. */
228
239
  export type SqlActionOrderBy = 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DEPLOY_ASC' | 'DEPLOY_DESC' | 'DEPS_ASC' | 'DEPS_DESC' | 'PAYLOAD_ASC' | 'PAYLOAD_DESC' | 'CONTENT_ASC' | 'CONTENT_DESC' | 'REVERT_ASC' | 'REVERT_DESC' | 'VERIFY_ASC' | 'VERIFY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'ACTION_ASC' | 'ACTION_DESC' | 'ACTION_ID_ASC' | 'ACTION_ID_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC';
240
+ /** Methods to use when ordering `OrgMembershipSetting`. */
241
+ export type OrgMembershipSettingOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' | 'UPDATED_BY_ASC' | 'UPDATED_BY_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'DELETE_MEMBER_CASCADE_CHILDREN_ASC' | 'DELETE_MEMBER_CASCADE_CHILDREN_DESC' | 'CREATE_CHILD_CASCADE_OWNERS_ASC' | 'CREATE_CHILD_CASCADE_OWNERS_DESC' | 'CREATE_CHILD_CASCADE_ADMINS_ASC' | 'CREATE_CHILD_CASCADE_ADMINS_DESC' | 'CREATE_CHILD_CASCADE_MEMBERS_ASC' | 'CREATE_CHILD_CASCADE_MEMBERS_DESC' | 'ALLOW_EXTERNAL_MEMBERS_ASC' | 'ALLOW_EXTERNAL_MEMBERS_DESC' | 'POPULATE_MEMBER_EMAIL_ASC' | 'POPULATE_MEMBER_EMAIL_DESC';
229
242
  /** Methods to use when ordering `User`. */
230
243
  export type UserOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | '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';
231
244
  /** Methods to use when ordering `AstMigration`. */
@@ -576,6 +589,18 @@ export interface DatabaseFilter {
576
589
  webauthnCredentialsModules?: DatabaseToManyWebauthnCredentialsModuleFilter;
577
590
  /** `webauthnCredentialsModules` exist. */
578
591
  webauthnCredentialsModulesExist?: boolean;
592
+ /** Filter by the object’s `webauthnAuthModules` relation. */
593
+ webauthnAuthModules?: DatabaseToManyWebauthnAuthModuleFilter;
594
+ /** `webauthnAuthModules` exist. */
595
+ webauthnAuthModulesExist?: boolean;
596
+ /** Filter by the object’s `identityProvidersModules` relation. */
597
+ identityProvidersModules?: DatabaseToManyIdentityProvidersModuleFilter;
598
+ /** `identityProvidersModules` exist. */
599
+ identityProvidersModulesExist?: boolean;
600
+ /** Filter by the object’s `notificationsModules` relation. */
601
+ notificationsModules?: DatabaseToManyNotificationsModuleFilter;
602
+ /** `notificationsModules` exist. */
603
+ notificationsModulesExist?: boolean;
579
604
  /** Filter by the object’s `databaseProvisionModules` relation. */
580
605
  databaseProvisionModules?: DatabaseToManyDatabaseProvisionModuleFilter;
581
606
  /** `databaseProvisionModules` exist. */
@@ -651,6 +676,10 @@ export interface UserFilter {
651
676
  orgMembershipDefaultByEntityId?: OrgMembershipDefaultFilter;
652
677
  /** A related `orgMembershipDefaultByEntityId` exists. */
653
678
  orgMembershipDefaultByEntityIdExists?: boolean;
679
+ /** Filter by the object’s `orgMembershipSettingByEntityId` relation. */
680
+ orgMembershipSettingByEntityId?: OrgMembershipSettingFilter;
681
+ /** A related `orgMembershipSettingByEntityId` exists. */
682
+ orgMembershipSettingByEntityIdExists?: boolean;
654
683
  /** Filter by the object’s `orgMembersByActorId` relation. */
655
684
  orgMembersByActorId?: UserToManyOrgMemberFilter;
656
685
  /** `orgMembersByActorId` exist. */
@@ -771,6 +800,10 @@ export interface UserFilter {
771
800
  ownedCryptoAddresses?: UserToManyCryptoAddressFilter;
772
801
  /** `ownedCryptoAddresses` exist. */
773
802
  ownedCryptoAddressesExist?: boolean;
803
+ /** Filter by the object’s `ownedWebauthnCredentials` relation. */
804
+ ownedWebauthnCredentials?: UserToManyWebauthnCredentialFilter;
805
+ /** `ownedWebauthnCredentials` exist. */
806
+ ownedWebauthnCredentialsExist?: boolean;
774
807
  /** Filter by the object’s `appInvitesBySenderId` relation. */
775
808
  appInvitesBySenderId?: UserToManyAppInviteFilter;
776
809
  /** `appInvitesBySenderId` exist. */
@@ -1238,10 +1271,6 @@ export interface OrgMembershipDefaultFilter {
1238
1271
  isApproved?: BooleanFilter;
1239
1272
  /** Filter by the object’s `entityId` field. */
1240
1273
  entityId?: UUIDFilter;
1241
- /** Filter by the object’s `deleteMemberCascadeGroups` field. */
1242
- deleteMemberCascadeGroups?: BooleanFilter;
1243
- /** Filter by the object’s `createGroupsCascadeMembers` field. */
1244
- createGroupsCascadeMembers?: BooleanFilter;
1245
1274
  /** Checks for all expressions in this list. */
1246
1275
  and?: OrgMembershipDefaultFilter[];
1247
1276
  /** Checks for any expressions in this list. */
@@ -1251,6 +1280,41 @@ export interface OrgMembershipDefaultFilter {
1251
1280
  /** Filter by the object’s `entity` relation. */
1252
1281
  entity?: UserFilter;
1253
1282
  }
1283
+ /** A filter to be used against `OrgMembershipSetting` object types. All fields are combined with a logical ‘and.’ */
1284
+ export interface OrgMembershipSettingFilter {
1285
+ /** Filter by the object’s `id` field. */
1286
+ id?: UUIDFilter;
1287
+ /** Filter by the object’s `createdAt` field. */
1288
+ createdAt?: DatetimeFilter;
1289
+ /** Filter by the object’s `updatedAt` field. */
1290
+ updatedAt?: DatetimeFilter;
1291
+ /** Filter by the object’s `createdBy` field. */
1292
+ createdBy?: UUIDFilter;
1293
+ /** Filter by the object’s `updatedBy` field. */
1294
+ updatedBy?: UUIDFilter;
1295
+ /** Filter by the object’s `entityId` field. */
1296
+ entityId?: UUIDFilter;
1297
+ /** Filter by the object’s `deleteMemberCascadeChildren` field. */
1298
+ deleteMemberCascadeChildren?: BooleanFilter;
1299
+ /** Filter by the object’s `createChildCascadeOwners` field. */
1300
+ createChildCascadeOwners?: BooleanFilter;
1301
+ /** Filter by the object’s `createChildCascadeAdmins` field. */
1302
+ createChildCascadeAdmins?: BooleanFilter;
1303
+ /** Filter by the object’s `createChildCascadeMembers` field. */
1304
+ createChildCascadeMembers?: BooleanFilter;
1305
+ /** Filter by the object’s `allowExternalMembers` field. */
1306
+ allowExternalMembers?: BooleanFilter;
1307
+ /** Filter by the object’s `populateMemberEmail` field. */
1308
+ populateMemberEmail?: BooleanFilter;
1309
+ /** Checks for all expressions in this list. */
1310
+ and?: OrgMembershipSettingFilter[];
1311
+ /** Checks for any expressions in this list. */
1312
+ or?: OrgMembershipSettingFilter[];
1313
+ /** Negates the expression. */
1314
+ not?: OrgMembershipSettingFilter;
1315
+ /** Filter by the object’s `entity` relation. */
1316
+ entity?: UserFilter;
1317
+ }
1254
1318
  /** A filter to be used against many `OrgMember` object types. All fields are combined with a logical ‘and.’ */
1255
1319
  export interface UserToManyOrgMemberFilter {
1256
1320
  /** Filters to entities where at least one related entity matches. */
@@ -1713,6 +1777,8 @@ export interface EmailFilter {
1713
1777
  isVerified?: BooleanFilter;
1714
1778
  /** Filter by the object’s `isPrimary` field. */
1715
1779
  isPrimary?: BooleanFilter;
1780
+ /** Filter by the object’s `name` field. */
1781
+ name?: StringFilter;
1716
1782
  /** Filter by the object’s `createdAt` field. */
1717
1783
  createdAt?: DatetimeFilter;
1718
1784
  /** Filter by the object’s `updatedAt` field. */
@@ -1826,6 +1892,8 @@ export interface PhoneNumberFilter {
1826
1892
  isVerified?: BooleanFilter;
1827
1893
  /** Filter by the object’s `isPrimary` field. */
1828
1894
  isPrimary?: BooleanFilter;
1895
+ /** Filter by the object’s `name` field. */
1896
+ name?: StringFilter;
1829
1897
  /** Filter by the object’s `createdAt` field. */
1830
1898
  createdAt?: DatetimeFilter;
1831
1899
  /** Filter by the object’s `updatedAt` field. */
@@ -1860,6 +1928,8 @@ export interface CryptoAddressFilter {
1860
1928
  isVerified?: BooleanFilter;
1861
1929
  /** Filter by the object’s `isPrimary` field. */
1862
1930
  isPrimary?: BooleanFilter;
1931
+ /** Filter by the object’s `name` field. */
1932
+ name?: StringFilter;
1863
1933
  /** Filter by the object’s `createdAt` field. */
1864
1934
  createdAt?: DatetimeFilter;
1865
1935
  /** Filter by the object’s `updatedAt` field. */
@@ -1873,6 +1943,71 @@ export interface CryptoAddressFilter {
1873
1943
  /** Filter by the object’s `owner` relation. */
1874
1944
  owner?: UserFilter;
1875
1945
  }
1946
+ /** A filter to be used against many `WebauthnCredential` object types. All fields are combined with a logical ‘and.’ */
1947
+ export interface UserToManyWebauthnCredentialFilter {
1948
+ /** Filters to entities where at least one related entity matches. */
1949
+ some?: WebauthnCredentialFilter;
1950
+ /** Filters to entities where every related entity matches. */
1951
+ every?: WebauthnCredentialFilter;
1952
+ /** Filters to entities where no related entity matches. */
1953
+ none?: WebauthnCredentialFilter;
1954
+ }
1955
+ /** A filter to be used against `WebauthnCredential` object types. All fields are combined with a logical ‘and.’ */
1956
+ export interface WebauthnCredentialFilter {
1957
+ /** Filter by the object’s `id` field. */
1958
+ id?: UUIDFilter;
1959
+ /** Filter by the object’s `ownerId` field. */
1960
+ ownerId?: UUIDFilter;
1961
+ /** Filter by the object’s `credentialId` field. */
1962
+ credentialId?: StringFilter;
1963
+ /** Filter by the object’s `publicKey` field. */
1964
+ publicKey?: Base64EncodedBinaryFilter;
1965
+ /** Filter by the object’s `signCount` field. */
1966
+ signCount?: BigIntFilter;
1967
+ /** Filter by the object’s `webauthnUserId` field. */
1968
+ webauthnUserId?: StringFilter;
1969
+ /** Filter by the object’s `transports` field. */
1970
+ transports?: StringListFilter;
1971
+ /** Filter by the object’s `credentialDeviceType` field. */
1972
+ credentialDeviceType?: StringFilter;
1973
+ /** Filter by the object’s `backupEligible` field. */
1974
+ backupEligible?: BooleanFilter;
1975
+ /** Filter by the object’s `backupState` field. */
1976
+ backupState?: BooleanFilter;
1977
+ /** Filter by the object’s `name` field. */
1978
+ name?: StringFilter;
1979
+ /** Filter by the object’s `lastUsedAt` field. */
1980
+ lastUsedAt?: DatetimeFilter;
1981
+ /** Filter by the object’s `createdAt` field. */
1982
+ createdAt?: DatetimeFilter;
1983
+ /** Filter by the object’s `updatedAt` field. */
1984
+ updatedAt?: DatetimeFilter;
1985
+ /** Checks for all expressions in this list. */
1986
+ and?: WebauthnCredentialFilter[];
1987
+ /** Checks for any expressions in this list. */
1988
+ or?: WebauthnCredentialFilter[];
1989
+ /** Negates the expression. */
1990
+ not?: WebauthnCredentialFilter;
1991
+ /** Filter by the object’s `owner` relation. */
1992
+ owner?: UserFilter;
1993
+ }
1994
+ /** A filter to be used against Base64EncodedBinary fields. All fields are combined with a logical ‘and.’ */
1995
+ export interface Base64EncodedBinaryFilter {
1996
+ /** Is null (if `true` is specified) or is not null (if `false` is specified). */
1997
+ isNull?: boolean;
1998
+ /** Equal to the specified value. */
1999
+ equalTo?: Base64EncodedBinary;
2000
+ /** Not equal to the specified value. */
2001
+ notEqualTo?: Base64EncodedBinary;
2002
+ /** Not equal to the specified value, treating null like an ordinary value. */
2003
+ distinctFrom?: Base64EncodedBinary;
2004
+ /** Equal to the specified value, treating null like an ordinary value. */
2005
+ notDistinctFrom?: Base64EncodedBinary;
2006
+ /** Included in the specified list. */
2007
+ in?: Base64EncodedBinary[];
2008
+ /** Not included in the specified list. */
2009
+ notIn?: Base64EncodedBinary[];
2010
+ }
1876
2011
  /** A filter to be used against many `AppInvite` object types. All fields are combined with a logical ‘and.’ */
1877
2012
  export interface UserToManyAppInviteFilter {
1878
2013
  /** Filters to entities where at least one related entity matches. */
@@ -2233,6 +2368,14 @@ export interface SchemaFilter {
2233
2368
  sessionSecretsModules?: SchemaToManySessionSecretsModuleFilter;
2234
2369
  /** `sessionSecretsModules` exist. */
2235
2370
  sessionSecretsModulesExist?: boolean;
2371
+ /** Filter by the object’s `identityProvidersModulesByPrivateSchemaId` relation. */
2372
+ identityProvidersModulesByPrivateSchemaId?: SchemaToManyIdentityProvidersModuleFilter;
2373
+ /** `identityProvidersModulesByPrivateSchemaId` exist. */
2374
+ identityProvidersModulesByPrivateSchemaIdExist?: boolean;
2375
+ /** Filter by the object’s `identityProvidersModules` relation. */
2376
+ identityProvidersModules?: SchemaToManyIdentityProvidersModuleFilter;
2377
+ /** `identityProvidersModules` exist. */
2378
+ identityProvidersModulesExist?: boolean;
2236
2379
  }
2237
2380
  /** A filter to be used against many `Table` object types. All fields are combined with a logical ‘and.’ */
2238
2381
  export interface SchemaToManyTableFilter {
@@ -2381,6 +2524,10 @@ export interface TableFilter {
2381
2524
  sessionSecretsModules?: TableToManySessionSecretsModuleFilter;
2382
2525
  /** `sessionSecretsModules` exist. */
2383
2526
  sessionSecretsModulesExist?: boolean;
2527
+ /** Filter by the object’s `identityProvidersModules` relation. */
2528
+ identityProvidersModules?: TableToManyIdentityProvidersModuleFilter;
2529
+ /** `identityProvidersModules` exist. */
2530
+ identityProvidersModulesExist?: boolean;
2384
2531
  }
2385
2532
  /** A filter to be used against many `CheckConstraint` object types. All fields are combined with a logical ‘and.’ */
2386
2533
  export interface TableToManyCheckConstraintFilter {
@@ -3214,22 +3361,10 @@ export interface SecureTableProvisionFilter {
3214
3361
  useRls?: BooleanFilter;
3215
3362
  /** Filter by the object’s `fields` field. */
3216
3363
  fields?: JSONListFilter;
3217
- /** Filter by the object’s `grantRoles` field. */
3218
- grantRoles?: StringListFilter;
3219
- /** Filter by the object’s `grantPrivileges` field. */
3220
- grantPrivileges?: JSONListFilter;
3221
- /** Filter by the object’s `policyType` field. */
3222
- policyType?: StringFilter;
3223
- /** Filter by the object’s `policyPrivileges` field. */
3224
- policyPrivileges?: StringListFilter;
3225
- /** Filter by the object’s `policyRole` field. */
3226
- policyRole?: StringFilter;
3227
- /** Filter by the object’s `policyPermissive` field. */
3228
- policyPermissive?: BooleanFilter;
3229
- /** Filter by the object’s `policyName` field. */
3230
- policyName?: StringFilter;
3231
- /** Filter by the object’s `policyData` field. */
3232
- policyData?: JSONFilter;
3364
+ /** Filter by the object’s `grants` field. */
3365
+ grants?: JSONFilter;
3366
+ /** Filter by the object’s `policies` field. */
3367
+ policies?: JSONFilter;
3233
3368
  /** Filter by the object’s `outFields` field. */
3234
3369
  outFields?: UUIDListFilter;
3235
3370
  /** Checks for all expressions in this list. */
@@ -3331,22 +3466,10 @@ export interface RelationProvisionFilter {
3331
3466
  exposeInApi?: BooleanFilter;
3332
3467
  /** Filter by the object’s `nodes` field. */
3333
3468
  nodes?: JSONFilter;
3334
- /** Filter by the object’s `grantRoles` field. */
3335
- grantRoles?: StringListFilter;
3336
- /** Filter by the object’s `grantPrivileges` field. */
3337
- grantPrivileges?: JSONListFilter;
3338
- /** Filter by the object’s `policyType` field. */
3339
- policyType?: StringFilter;
3340
- /** Filter by the object’s `policyPrivileges` field. */
3341
- policyPrivileges?: StringListFilter;
3342
- /** Filter by the object’s `policyRole` field. */
3343
- policyRole?: StringFilter;
3344
- /** Filter by the object’s `policyPermissive` field. */
3345
- policyPermissive?: BooleanFilter;
3346
- /** Filter by the object’s `policyName` field. */
3347
- policyName?: StringFilter;
3348
- /** Filter by the object’s `policyData` field. */
3349
- policyData?: JSONFilter;
3469
+ /** Filter by the object’s `grants` field. */
3470
+ grants?: JSONFilter;
3471
+ /** Filter by the object’s `policies` field. */
3472
+ policies?: JSONFilter;
3350
3473
  /** Filter by the object’s `outFieldId` field. */
3351
3474
  outFieldId?: UUIDFilter;
3352
3475
  /** Filter by the object’s `outJunctionTableId` field. */
@@ -3406,6 +3529,44 @@ export interface SessionSecretsModuleFilter {
3406
3529
  /** Filter by the object’s `table` relation. */
3407
3530
  table?: TableFilter;
3408
3531
  }
3532
+ /** A filter to be used against many `IdentityProvidersModule` object types. All fields are combined with a logical ‘and.’ */
3533
+ export interface TableToManyIdentityProvidersModuleFilter {
3534
+ /** Filters to entities where at least one related entity matches. */
3535
+ some?: IdentityProvidersModuleFilter;
3536
+ /** Filters to entities where every related entity matches. */
3537
+ every?: IdentityProvidersModuleFilter;
3538
+ /** Filters to entities where no related entity matches. */
3539
+ none?: IdentityProvidersModuleFilter;
3540
+ }
3541
+ /** A filter to be used against `IdentityProvidersModule` object types. All fields are combined with a logical ‘and.’ */
3542
+ export interface IdentityProvidersModuleFilter {
3543
+ /** Filter by the object’s `id` field. */
3544
+ id?: UUIDFilter;
3545
+ /** Filter by the object’s `databaseId` field. */
3546
+ databaseId?: UUIDFilter;
3547
+ /** Filter by the object’s `schemaId` field. */
3548
+ schemaId?: UUIDFilter;
3549
+ /** Filter by the object’s `privateSchemaId` field. */
3550
+ privateSchemaId?: UUIDFilter;
3551
+ /** Filter by the object’s `tableId` field. */
3552
+ tableId?: UUIDFilter;
3553
+ /** Filter by the object’s `tableName` field. */
3554
+ tableName?: StringFilter;
3555
+ /** Checks for all expressions in this list. */
3556
+ and?: IdentityProvidersModuleFilter[];
3557
+ /** Checks for any expressions in this list. */
3558
+ or?: IdentityProvidersModuleFilter[];
3559
+ /** Negates the expression. */
3560
+ not?: IdentityProvidersModuleFilter;
3561
+ /** Filter by the object’s `database` relation. */
3562
+ database?: DatabaseFilter;
3563
+ /** Filter by the object’s `privateSchema` relation. */
3564
+ privateSchema?: SchemaFilter;
3565
+ /** Filter by the object’s `schema` relation. */
3566
+ schema?: SchemaFilter;
3567
+ /** Filter by the object’s `table` relation. */
3568
+ table?: TableFilter;
3569
+ }
3409
3570
  /** A filter to be used against many `SchemaGrant` object types. All fields are combined with a logical ‘and.’ */
3410
3571
  export interface SchemaToManySchemaGrantFilter {
3411
3572
  /** Filters to entities where at least one related entity matches. */
@@ -4102,6 +4263,15 @@ export interface SchemaToManySessionSecretsModuleFilter {
4102
4263
  /** Filters to entities where no related entity matches. */
4103
4264
  none?: SessionSecretsModuleFilter;
4104
4265
  }
4266
+ /** A filter to be used against many `IdentityProvidersModule` object types. All fields are combined with a logical ‘and.’ */
4267
+ export interface SchemaToManyIdentityProvidersModuleFilter {
4268
+ /** Filters to entities where at least one related entity matches. */
4269
+ some?: IdentityProvidersModuleFilter;
4270
+ /** Filters to entities where every related entity matches. */
4271
+ every?: IdentityProvidersModuleFilter;
4272
+ /** Filters to entities where no related entity matches. */
4273
+ none?: IdentityProvidersModuleFilter;
4274
+ }
4105
4275
  /** A filter to be used against many `Table` object types. All fields are combined with a logical ‘and.’ */
4106
4276
  export interface DatabaseToManyTableFilter {
4107
4277
  /** Filters to entities where at least one related entity matches. */
@@ -5019,6 +5189,10 @@ export interface MembershipsModuleFilter {
5019
5189
  membershipDefaultsTableId?: UUIDFilter;
5020
5190
  /** Filter by the object’s `membershipDefaultsTableName` field. */
5021
5191
  membershipDefaultsTableName?: StringFilter;
5192
+ /** Filter by the object’s `membershipSettingsTableId` field. */
5193
+ membershipSettingsTableId?: UUIDFilter;
5194
+ /** Filter by the object’s `membershipSettingsTableName` field. */
5195
+ membershipSettingsTableName?: StringFilter;
5022
5196
  /** Filter by the object’s `grantsTableId` field. */
5023
5197
  grantsTableId?: UUIDFilter;
5024
5198
  /** Filter by the object’s `grantsTableName` field. */
@@ -5093,6 +5267,10 @@ export interface MembershipsModuleFilter {
5093
5267
  membersTable?: TableFilter;
5094
5268
  /** Filter by the object’s `membershipDefaultsTable` relation. */
5095
5269
  membershipDefaultsTable?: TableFilter;
5270
+ /** Filter by the object’s `membershipSettingsTable` relation. */
5271
+ membershipSettingsTable?: TableFilter;
5272
+ /** A related `membershipSettingsTable` exists. */
5273
+ membershipSettingsTableExists?: boolean;
5096
5274
  /** Filter by the object’s `membershipsTable` relation. */
5097
5275
  membershipsTable?: TableFilter;
5098
5276
  /** Filter by the object’s `permissionsTable` relation. */
@@ -5889,6 +6067,10 @@ export interface StorageModuleFilter {
5889
6067
  filesTableName?: StringFilter;
5890
6068
  /** Filter by the object’s `uploadRequestsTableName` field. */
5891
6069
  uploadRequestsTableName?: StringFilter;
6070
+ /** Filter by the object’s `membershipType` field. */
6071
+ membershipType?: IntFilter;
6072
+ /** Filter by the object’s `policies` field. */
6073
+ policies?: StringListFilter;
5892
6074
  /** Filter by the object’s `entityTableId` field. */
5893
6075
  entityTableId?: UUIDFilter;
5894
6076
  /** Filter by the object’s `endpoint` field. */
@@ -5965,6 +6147,10 @@ export interface EntityTypeProvisionFilter {
5965
6147
  hasProfiles?: BooleanFilter;
5966
6148
  /** Filter by the object’s `hasLevels` field. */
5967
6149
  hasLevels?: BooleanFilter;
6150
+ /** Filter by the object’s `hasStorage` field. */
6151
+ hasStorage?: BooleanFilter;
6152
+ /** Filter by the object’s `storageConfig` field. */
6153
+ storageConfig?: JSONFilter;
5968
6154
  /** Filter by the object’s `skipEntityPolicies` field. */
5969
6155
  skipEntityPolicies?: BooleanFilter;
5970
6156
  /** Filter by the object’s `tableProvision` field. */
@@ -5977,6 +6163,12 @@ export interface EntityTypeProvisionFilter {
5977
6163
  outEntityTableName?: StringFilter;
5978
6164
  /** Filter by the object’s `outInstalledModules` field. */
5979
6165
  outInstalledModules?: StringListFilter;
6166
+ /** Filter by the object’s `outStorageModuleId` field. */
6167
+ outStorageModuleId?: UUIDFilter;
6168
+ /** Filter by the object’s `outBucketsTableId` field. */
6169
+ outBucketsTableId?: UUIDFilter;
6170
+ /** Filter by the object’s `outFilesTableId` field. */
6171
+ outFilesTableId?: UUIDFilter;
5980
6172
  /** Checks for all expressions in this list. */
5981
6173
  and?: EntityTypeProvisionFilter[];
5982
6174
  /** Checks for any expressions in this list. */
@@ -6105,6 +6297,149 @@ export interface WebauthnCredentialsModuleFilter {
6105
6297
  /** Filter by the object’s `table` relation. */
6106
6298
  table?: TableFilter;
6107
6299
  }
6300
+ /** A filter to be used against many `WebauthnAuthModule` object types. All fields are combined with a logical ‘and.’ */
6301
+ export interface DatabaseToManyWebauthnAuthModuleFilter {
6302
+ /** Filters to entities where at least one related entity matches. */
6303
+ some?: WebauthnAuthModuleFilter;
6304
+ /** Filters to entities where every related entity matches. */
6305
+ every?: WebauthnAuthModuleFilter;
6306
+ /** Filters to entities where no related entity matches. */
6307
+ none?: WebauthnAuthModuleFilter;
6308
+ }
6309
+ /** A filter to be used against `WebauthnAuthModule` object types. All fields are combined with a logical ‘and.’ */
6310
+ export interface WebauthnAuthModuleFilter {
6311
+ /** Filter by the object’s `id` field. */
6312
+ id?: UUIDFilter;
6313
+ /** Filter by the object’s `databaseId` field. */
6314
+ databaseId?: UUIDFilter;
6315
+ /** Filter by the object’s `schemaId` field. */
6316
+ schemaId?: UUIDFilter;
6317
+ /** Filter by the object’s `usersTableId` field. */
6318
+ usersTableId?: UUIDFilter;
6319
+ /** Filter by the object’s `credentialsTableId` field. */
6320
+ credentialsTableId?: UUIDFilter;
6321
+ /** Filter by the object’s `sessionsTableId` field. */
6322
+ sessionsTableId?: UUIDFilter;
6323
+ /** Filter by the object’s `sessionCredentialsTableId` field. */
6324
+ sessionCredentialsTableId?: UUIDFilter;
6325
+ /** Filter by the object’s `sessionSecretsTableId` field. */
6326
+ sessionSecretsTableId?: UUIDFilter;
6327
+ /** Filter by the object’s `authSettingsTableId` field. */
6328
+ authSettingsTableId?: UUIDFilter;
6329
+ /** Filter by the object’s `rpId` field. */
6330
+ rpId?: StringFilter;
6331
+ /** Filter by the object’s `rpName` field. */
6332
+ rpName?: StringFilter;
6333
+ /** Filter by the object’s `originAllowlist` field. */
6334
+ originAllowlist?: StringListFilter;
6335
+ /** Filter by the object’s `attestationType` field. */
6336
+ attestationType?: StringFilter;
6337
+ /** Filter by the object’s `requireUserVerification` field. */
6338
+ requireUserVerification?: BooleanFilter;
6339
+ /** Filter by the object’s `residentKey` field. */
6340
+ residentKey?: StringFilter;
6341
+ /** Filter by the object’s `challengeExpiry` field. */
6342
+ challengeExpiry?: IntervalFilter;
6343
+ /** Checks for all expressions in this list. */
6344
+ and?: WebauthnAuthModuleFilter[];
6345
+ /** Checks for any expressions in this list. */
6346
+ or?: WebauthnAuthModuleFilter[];
6347
+ /** Negates the expression. */
6348
+ not?: WebauthnAuthModuleFilter;
6349
+ /** Filter by the object’s `authSettingsTable` relation. */
6350
+ authSettingsTable?: TableFilter;
6351
+ /** Filter by the object’s `credentialsTable` relation. */
6352
+ credentialsTable?: TableFilter;
6353
+ /** Filter by the object’s `database` relation. */
6354
+ database?: DatabaseFilter;
6355
+ /** Filter by the object’s `schema` relation. */
6356
+ schema?: SchemaFilter;
6357
+ /** Filter by the object’s `sessionCredentialsTable` relation. */
6358
+ sessionCredentialsTable?: TableFilter;
6359
+ /** Filter by the object’s `sessionSecretsTable` relation. */
6360
+ sessionSecretsTable?: TableFilter;
6361
+ /** Filter by the object’s `sessionsTable` relation. */
6362
+ sessionsTable?: TableFilter;
6363
+ /** Filter by the object’s `usersTable` relation. */
6364
+ usersTable?: TableFilter;
6365
+ }
6366
+ /** A filter to be used against many `IdentityProvidersModule` object types. All fields are combined with a logical ‘and.’ */
6367
+ export interface DatabaseToManyIdentityProvidersModuleFilter {
6368
+ /** Filters to entities where at least one related entity matches. */
6369
+ some?: IdentityProvidersModuleFilter;
6370
+ /** Filters to entities where every related entity matches. */
6371
+ every?: IdentityProvidersModuleFilter;
6372
+ /** Filters to entities where no related entity matches. */
6373
+ none?: IdentityProvidersModuleFilter;
6374
+ }
6375
+ /** A filter to be used against many `NotificationsModule` object types. All fields are combined with a logical ‘and.’ */
6376
+ export interface DatabaseToManyNotificationsModuleFilter {
6377
+ /** Filters to entities where at least one related entity matches. */
6378
+ some?: NotificationsModuleFilter;
6379
+ /** Filters to entities where every related entity matches. */
6380
+ every?: NotificationsModuleFilter;
6381
+ /** Filters to entities where no related entity matches. */
6382
+ none?: NotificationsModuleFilter;
6383
+ }
6384
+ /** A filter to be used against `NotificationsModule` object types. All fields are combined with a logical ‘and.’ */
6385
+ export interface NotificationsModuleFilter {
6386
+ /** Filter by the object’s `id` field. */
6387
+ id?: UUIDFilter;
6388
+ /** Filter by the object’s `databaseId` field. */
6389
+ databaseId?: UUIDFilter;
6390
+ /** Filter by the object’s `schemaId` field. */
6391
+ schemaId?: UUIDFilter;
6392
+ /** Filter by the object’s `privateSchemaId` field. */
6393
+ privateSchemaId?: UUIDFilter;
6394
+ /** Filter by the object’s `notificationsTableId` field. */
6395
+ notificationsTableId?: UUIDFilter;
6396
+ /** Filter by the object’s `eventsTableId` field. */
6397
+ eventsTableId?: UUIDFilter;
6398
+ /** Filter by the object’s `preferencesTableId` field. */
6399
+ preferencesTableId?: UUIDFilter;
6400
+ /** Filter by the object’s `channelsTableId` field. */
6401
+ channelsTableId?: UUIDFilter;
6402
+ /** Filter by the object’s `deliveryLogTableId` field. */
6403
+ deliveryLogTableId?: UUIDFilter;
6404
+ /** Filter by the object’s `ownerTableId` field. */
6405
+ ownerTableId?: UUIDFilter;
6406
+ /** Filter by the object’s `userSettingsTableId` field. */
6407
+ userSettingsTableId?: UUIDFilter;
6408
+ /** Filter by the object’s `organizationSettingsTableId` field. */
6409
+ organizationSettingsTableId?: UUIDFilter;
6410
+ /** Checks for all expressions in this list. */
6411
+ and?: NotificationsModuleFilter[];
6412
+ /** Checks for any expressions in this list. */
6413
+ or?: NotificationsModuleFilter[];
6414
+ /** Negates the expression. */
6415
+ not?: NotificationsModuleFilter;
6416
+ /** Filter by the object’s `channelsTableByChannelsTableId` relation. */
6417
+ channelsTableByChannelsTableId?: TableFilter;
6418
+ /** Filter by the object’s `database` relation. */
6419
+ database?: DatabaseFilter;
6420
+ /** Filter by the object’s `deliveryLogTableByDeliveryLogTableId` relation. */
6421
+ deliveryLogTableByDeliveryLogTableId?: TableFilter;
6422
+ /** Filter by the object’s `eventsTableByEventsTableId` relation. */
6423
+ eventsTableByEventsTableId?: TableFilter;
6424
+ /** Filter by the object’s `notificationsTableByNotificationsTableId` relation. */
6425
+ notificationsTableByNotificationsTableId?: TableFilter;
6426
+ /** Filter by the object’s `organizationSettingsTableByOrganizationSettingsTableId` relation. */
6427
+ organizationSettingsTableByOrganizationSettingsTableId?: TableFilter;
6428
+ /** A related `organizationSettingsTableByOrganizationSettingsTableId` exists. */
6429
+ organizationSettingsTableByOrganizationSettingsTableIdExists?: boolean;
6430
+ /** Filter by the object’s `ownerTable` relation. */
6431
+ ownerTable?: TableFilter;
6432
+ /** Filter by the object’s `preferencesTableByPreferencesTableId` relation. */
6433
+ preferencesTableByPreferencesTableId?: TableFilter;
6434
+ /** Filter by the object’s `privateSchema` relation. */
6435
+ privateSchema?: SchemaFilter;
6436
+ /** Filter by the object’s `schema` relation. */
6437
+ schema?: SchemaFilter;
6438
+ /** Filter by the object’s `userSettingsTableByUserSettingsTableId` relation. */
6439
+ userSettingsTableByUserSettingsTableId?: TableFilter;
6440
+ /** A related `userSettingsTableByUserSettingsTableId` exists. */
6441
+ userSettingsTableByUserSettingsTableIdExists?: boolean;
6442
+ }
6108
6443
  /** A filter to be used against many `DatabaseProvisionModule` object types. All fields are combined with a logical ‘and.’ */
6109
6444
  export interface DatabaseToManyDatabaseProvisionModuleFilter {
6110
6445
  /** Filters to entities where at least one related entity matches. */
@@ -6168,6 +6503,25 @@ export interface AppPermissionDefaultFilter {
6168
6503
  /** Negates the expression. */
6169
6504
  not?: AppPermissionDefaultFilter;
6170
6505
  }
6506
+ /** A filter to be used against `IdentityProvider` object types. All fields are combined with a logical ‘and.’ */
6507
+ export interface IdentityProviderFilter {
6508
+ /** Filter by the object’s `slug` field. */
6509
+ slug?: StringFilter;
6510
+ /** Filter by the object’s `kind` field. */
6511
+ kind?: StringFilter;
6512
+ /** Filter by the object’s `displayName` field. */
6513
+ displayName?: StringFilter;
6514
+ /** Filter by the object’s `enabled` field. */
6515
+ enabled?: BooleanFilter;
6516
+ /** Filter by the object’s `isBuiltIn` field. */
6517
+ isBuiltIn?: BooleanFilter;
6518
+ /** Checks for all expressions in this list. */
6519
+ and?: IdentityProviderFilter[];
6520
+ /** Checks for any expressions in this list. */
6521
+ or?: IdentityProviderFilter[];
6522
+ /** Negates the expression. */
6523
+ not?: IdentityProviderFilter;
6524
+ }
6171
6525
  /** A filter to be used against `Ref` object types. All fields are combined with a logical ‘and.’ */
6172
6526
  export interface RefFilter {
6173
6527
  /** Filter by the object’s `id` field. */
@@ -6641,12 +6995,6 @@ export interface CopyTemplateToBlueprintInput {
6641
6995
  nameOverride?: string;
6642
6996
  displayNameOverride?: string;
6643
6997
  }
6644
- export interface CreateApiKeyInput {
6645
- clientMutationId?: string;
6646
- keyName: string;
6647
- accessLevel?: string;
6648
- mfaLevel?: string;
6649
- }
6650
6998
  export interface ProvisionSpatialRelationInput {
6651
6999
  clientMutationId?: string;
6652
7000
  pDatabaseId?: string;
@@ -6761,7 +7109,6 @@ export interface ProvisionRelationInput {
6761
7109
  exposeInApi?: boolean;
6762
7110
  nodes?: unknown;
6763
7111
  grants?: unknown;
6764
- grantRoles?: string[];
6765
7112
  policies?: unknown;
6766
7113
  }
6767
7114
  export interface ApplyRlsInput {
@@ -6793,6 +7140,13 @@ export interface ExtendTokenExpiresInput {
6793
7140
  clientMutationId?: string;
6794
7141
  amount?: IntervalInput;
6795
7142
  }
7143
+ export interface CreateApiKeyInput {
7144
+ clientMutationId?: string;
7145
+ keyName?: string;
7146
+ accessLevel?: string;
7147
+ mfaLevel?: string;
7148
+ expiresIn?: IntervalInput;
7149
+ }
6796
7150
  export interface SignUpInput {
6797
7151
  clientMutationId?: string;
6798
7152
  email?: string;
@@ -6827,7 +7181,6 @@ export interface ProvisionTableInput {
6827
7181
  fields?: unknown;
6828
7182
  policies?: unknown;
6829
7183
  grants?: unknown;
6830
- grantRoles?: string[];
6831
7184
  useRls?: boolean;
6832
7185
  indexes?: unknown;
6833
7186
  fullTextSearches?: unknown;
@@ -6921,6 +7274,19 @@ export interface AppPermissionDefaultInput {
6921
7274
  /** Default permission bitmask applied to new members */
6922
7275
  permissions?: string;
6923
7276
  }
7277
+ export interface CreateIdentityProviderInput {
7278
+ clientMutationId?: string;
7279
+ /** The `IdentityProvider` to be created by this mutation. */
7280
+ identityProvider: IdentityProviderInput;
7281
+ }
7282
+ /** An input for mutations affecting `IdentityProvider` */
7283
+ export interface IdentityProviderInput {
7284
+ slug?: string;
7285
+ kind?: string;
7286
+ displayName?: string;
7287
+ enabled?: boolean;
7288
+ isBuiltIn?: boolean;
7289
+ }
6924
7290
  export interface CreateRefInput {
6925
7291
  clientMutationId?: string;
6926
7292
  /** The `Ref` to be created by this mutation. */
@@ -7095,6 +7461,21 @@ export interface ViewRuleInput {
7095
7461
  /** NOTHING (for read-only) or custom action */
7096
7462
  action?: string;
7097
7463
  }
7464
+ export interface CreateIdentityProvidersModuleInput {
7465
+ clientMutationId?: string;
7466
+ /** The `IdentityProvidersModule` to be created by this mutation. */
7467
+ identityProvidersModule: IdentityProvidersModuleInput;
7468
+ }
7469
+ /** An input for mutations affecting `IdentityProvidersModule` */
7470
+ export interface IdentityProvidersModuleInput {
7471
+ id?: string;
7472
+ databaseId: string;
7473
+ schemaId?: string;
7474
+ /** Private schema that hosts SECURITY DEFINER admin helpers which write to identity_providers (create / update / enable / disable / rotate-secret / delete) and the per-app quota check. */
7475
+ privateSchemaId?: string;
7476
+ tableId?: string;
7477
+ tableName?: string;
7478
+ }
7098
7479
  export interface CreateSessionSecretsModuleInput {
7099
7480
  clientMutationId?: string;
7100
7481
  /** The `SessionSecretsModule` to be created by this mutation. */
@@ -7316,7 +7697,7 @@ export interface WebauthnCredentialsModuleInput {
7316
7697
  id?: string;
7317
7698
  databaseId: string;
7318
7699
  schemaId?: string;
7319
- /** Reserved for future SECURITY DEFINER helpers on webauthn_credentials; unused in Phase 11a. */
7700
+ /** Private schema that hosts SECURITY DEFINER helpers which write to webauthn_credentials (registration / counter-bump / delete). */
7320
7701
  privateSchemaId?: string;
7321
7702
  tableId?: string;
7322
7703
  ownerTableId?: string;
@@ -7358,24 +7739,6 @@ export interface OrgOwnerGrantInput {
7358
7739
  createdAt?: string;
7359
7740
  updatedAt?: string;
7360
7741
  }
7361
- export interface CreateCryptoAddressInput {
7362
- clientMutationId?: string;
7363
- /** The `CryptoAddress` to be created by this mutation. */
7364
- cryptoAddress: CryptoAddressInput;
7365
- }
7366
- /** An input for mutations affecting `CryptoAddress` */
7367
- export interface CryptoAddressInput {
7368
- id?: string;
7369
- ownerId?: string;
7370
- /** The cryptocurrency wallet address, validated against network-specific patterns */
7371
- address: string;
7372
- /** Whether ownership of this address has been cryptographically verified */
7373
- isVerified?: boolean;
7374
- /** Whether this is the user's primary cryptocurrency address */
7375
- isPrimary?: boolean;
7376
- createdAt?: string;
7377
- updatedAt?: string;
7378
- }
7379
7742
  export interface CreateUserConnectedAccountInput {
7380
7743
  clientMutationId?: string;
7381
7744
  /** The `UserConnectedAccount` to be created by this mutation. */
@@ -7439,23 +7802,23 @@ export interface CryptoAddressesModuleInput {
7439
7802
  tableName: string;
7440
7803
  cryptoNetwork?: string;
7441
7804
  }
7442
- export interface CreatePhoneNumberInput {
7805
+ export interface CreateCryptoAddressInput {
7443
7806
  clientMutationId?: string;
7444
- /** The `PhoneNumber` to be created by this mutation. */
7445
- phoneNumber: PhoneNumberInput;
7807
+ /** The `CryptoAddress` to be created by this mutation. */
7808
+ cryptoAddress: CryptoAddressInput;
7446
7809
  }
7447
- /** An input for mutations affecting `PhoneNumber` */
7448
- export interface PhoneNumberInput {
7810
+ /** An input for mutations affecting `CryptoAddress` */
7811
+ export interface CryptoAddressInput {
7449
7812
  id?: string;
7450
7813
  ownerId?: string;
7451
- /** Country calling code (e.g. +1, +44) */
7452
- cc: string;
7453
- /** The phone number without country code */
7454
- number: string;
7455
- /** Whether the phone number has been verified via SMS code */
7814
+ /** The cryptocurrency wallet address, validated against network-specific patterns */
7815
+ address: string;
7816
+ /** Whether ownership of this address has been cryptographically verified */
7456
7817
  isVerified?: boolean;
7457
- /** Whether this is the user's primary phone number */
7818
+ /** Whether this is the user's primary cryptocurrency address */
7458
7819
  isPrimary?: boolean;
7820
+ /** Optional user-provided label for this address (e.g. "Main wallet", "Hardware wallet"). */
7821
+ name?: string;
7459
7822
  createdAt?: string;
7460
7823
  updatedAt?: string;
7461
7824
  }
@@ -7596,6 +7959,23 @@ export interface AppMembershipDefaultInput {
7596
7959
  /** Whether new members are automatically verified upon joining */
7597
7960
  isVerified?: boolean;
7598
7961
  }
7962
+ export interface CreateOrgMembershipDefaultInput {
7963
+ clientMutationId?: string;
7964
+ /** The `OrgMembershipDefault` to be created by this mutation. */
7965
+ orgMembershipDefault: OrgMembershipDefaultInput;
7966
+ }
7967
+ /** An input for mutations affecting `OrgMembershipDefault` */
7968
+ export interface OrgMembershipDefaultInput {
7969
+ id?: string;
7970
+ createdAt?: string;
7971
+ updatedAt?: string;
7972
+ createdBy?: string;
7973
+ updatedBy?: string;
7974
+ /** Whether new members are automatically approved upon joining */
7975
+ isApproved?: boolean;
7976
+ /** References the entity these membership defaults apply to */
7977
+ entityId: string;
7978
+ }
7599
7979
  export interface CreateFullTextSearchInput {
7600
7980
  clientMutationId?: string;
7601
7981
  /** The `FullTextSearch` to be created by this mutation. */
@@ -7696,20 +8076,42 @@ export interface OrgChartEdgeGrantInput {
7696
8076
  /** Timestamp when this grant or revocation was recorded */
7697
8077
  createdAt?: string;
7698
8078
  }
7699
- export interface CreateOrgLimitInput {
8079
+ export interface CreatePhoneNumberInput {
7700
8080
  clientMutationId?: string;
7701
- /** The `OrgLimit` to be created by this mutation. */
7702
- orgLimit: OrgLimitInput;
8081
+ /** The `PhoneNumber` to be created by this mutation. */
8082
+ phoneNumber: PhoneNumberInput;
7703
8083
  }
7704
- /** An input for mutations affecting `OrgLimit` */
7705
- export interface OrgLimitInput {
8084
+ /** An input for mutations affecting `PhoneNumber` */
8085
+ export interface PhoneNumberInput {
7706
8086
  id?: string;
7707
- /** Name identifier of the limit being tracked */
7708
- name?: string;
7709
- /** User whose usage is being tracked against this limit */
7710
- actorId: string;
7711
- /** Current usage count for this actor and limit */
7712
- num?: number;
8087
+ ownerId?: string;
8088
+ /** Country calling code (e.g. +1, +44) */
8089
+ cc: string;
8090
+ /** The phone number without country code */
8091
+ number: string;
8092
+ /** Whether the phone number has been verified via SMS code */
8093
+ isVerified?: boolean;
8094
+ /** Whether this is the user's primary phone number */
8095
+ isPrimary?: boolean;
8096
+ /** Optional user-provided label for this phone number (e.g. "Mobile", "Work"). */
8097
+ name?: string;
8098
+ createdAt?: string;
8099
+ updatedAt?: string;
8100
+ }
8101
+ export interface CreateOrgLimitInput {
8102
+ clientMutationId?: string;
8103
+ /** The `OrgLimit` to be created by this mutation. */
8104
+ orgLimit: OrgLimitInput;
8105
+ }
8106
+ /** An input for mutations affecting `OrgLimit` */
8107
+ export interface OrgLimitInput {
8108
+ id?: string;
8109
+ /** Name identifier of the limit being tracked */
8110
+ name?: string;
8111
+ /** User whose usage is being tracked against this limit */
8112
+ actorId: string;
8113
+ /** Current usage count for this actor and limit */
8114
+ num?: number;
7713
8115
  /** Maximum allowed usage; NULL means use the default limit value */
7714
8116
  max?: number;
7715
8117
  entityId: string;
@@ -7831,27 +8233,6 @@ export interface OrgGrantInput {
7831
8233
  createdAt?: string;
7832
8234
  updatedAt?: string;
7833
8235
  }
7834
- export interface CreateOrgMembershipDefaultInput {
7835
- clientMutationId?: string;
7836
- /** The `OrgMembershipDefault` to be created by this mutation. */
7837
- orgMembershipDefault: OrgMembershipDefaultInput;
7838
- }
7839
- /** An input for mutations affecting `OrgMembershipDefault` */
7840
- export interface OrgMembershipDefaultInput {
7841
- id?: string;
7842
- createdAt?: string;
7843
- updatedAt?: string;
7844
- createdBy?: string;
7845
- updatedBy?: string;
7846
- /** Whether new members are automatically approved upon joining */
7847
- isApproved?: boolean;
7848
- /** References the entity these membership defaults apply to */
7849
- entityId: string;
7850
- /** When an org member is deleted, whether to cascade-remove their group memberships */
7851
- deleteMemberCascadeGroups?: boolean;
7852
- /** When a group is created, whether to auto-add existing org members as group members */
7853
- createGroupsCascadeMembers?: boolean;
7854
- }
7855
8236
  export interface CreateBlueprintConstructionInput {
7856
8237
  clientMutationId?: string;
7857
8238
  /** The `BlueprintConstruction` to be created by this mutation. */
@@ -7983,24 +8364,6 @@ export interface AppLevelInput {
7983
8364
  createdAt?: string;
7984
8365
  updatedAt?: string;
7985
8366
  }
7986
- export interface CreateEmailInput {
7987
- clientMutationId?: string;
7988
- /** The `Email` to be created by this mutation. */
7989
- email: EmailInput;
7990
- }
7991
- /** An input for mutations affecting `Email` */
7992
- export interface EmailInput {
7993
- id?: string;
7994
- ownerId?: string;
7995
- /** The email address */
7996
- email: ConstructiveInternalTypeEmail;
7997
- /** Whether the email address has been verified via confirmation link */
7998
- isVerified?: boolean;
7999
- /** Whether this is the user's primary email address */
8000
- isPrimary?: boolean;
8001
- createdAt?: string;
8002
- updatedAt?: string;
8003
- }
8004
8367
  export interface CreateBlueprintInput {
8005
8368
  clientMutationId?: string;
8006
8369
  /** The `Blueprint` to be created by this mutation. */
@@ -8053,6 +8416,46 @@ export interface DenormalizedTableFieldInput {
8053
8416
  funcName?: string;
8054
8417
  funcOrder?: number;
8055
8418
  }
8419
+ export interface CreateNotificationsModuleInput {
8420
+ clientMutationId?: string;
8421
+ /** The `NotificationsModule` to be created by this mutation. */
8422
+ notificationsModule: NotificationsModuleInput;
8423
+ }
8424
+ /** An input for mutations affecting `NotificationsModule` */
8425
+ export interface NotificationsModuleInput {
8426
+ id?: string;
8427
+ databaseId: string;
8428
+ schemaId?: string;
8429
+ privateSchemaId?: string;
8430
+ notificationsTableId?: string;
8431
+ eventsTableId?: string;
8432
+ preferencesTableId?: string;
8433
+ channelsTableId?: string;
8434
+ deliveryLogTableId?: string;
8435
+ ownerTableId?: string;
8436
+ userSettingsTableId?: string;
8437
+ organizationSettingsTableId?: string;
8438
+ }
8439
+ export interface CreateEmailInput {
8440
+ clientMutationId?: string;
8441
+ /** The `Email` to be created by this mutation. */
8442
+ email: EmailInput;
8443
+ }
8444
+ /** An input for mutations affecting `Email` */
8445
+ export interface EmailInput {
8446
+ id?: string;
8447
+ ownerId?: string;
8448
+ /** The email address */
8449
+ email: ConstructiveInternalTypeEmail;
8450
+ /** Whether the email address has been verified via confirmation link */
8451
+ isVerified?: boolean;
8452
+ /** Whether this is the user's primary email address */
8453
+ isPrimary?: boolean;
8454
+ /** Optional user-provided label for this email (e.g. "Work", "Personal"). */
8455
+ name?: string;
8456
+ createdAt?: string;
8457
+ updatedAt?: string;
8458
+ }
8056
8459
  export interface CreateOrgMemberProfileInput {
8057
8460
  clientMutationId?: string;
8058
8461
  /** The `OrgMemberProfile` to be created by this mutation. */
@@ -8101,6 +8504,63 @@ export interface SqlActionInput {
8101
8504
  actionId?: string;
8102
8505
  actorId?: string;
8103
8506
  }
8507
+ export interface CreateSecureTableProvisionInput {
8508
+ clientMutationId?: string;
8509
+ /** The `SecureTableProvision` to be created by this mutation. */
8510
+ secureTableProvision: SecureTableProvisionInput;
8511
+ }
8512
+ /** An input for mutations affecting `SecureTableProvision` */
8513
+ export interface SecureTableProvisionInput {
8514
+ /** Unique identifier for this provision row. */
8515
+ id?: string;
8516
+ /** The database this provision belongs to. Required. */
8517
+ databaseId: string;
8518
+ /** Target schema for the table. Defaults to uuid_nil(); the trigger resolves this to the app_public schema if not explicitly provided. */
8519
+ schemaId?: string;
8520
+ /** Target table to provision. Defaults to uuid_nil(); the trigger creates or resolves the table via table_name if not explicitly provided. */
8521
+ tableId?: string;
8522
+ /** Name of the target table. Used to create or look up the table when table_id is not provided. If omitted, it is backfilled from the resolved table. */
8523
+ tableName?: string;
8524
+ /** Array of node objects to apply to the table. Each element is a jsonb object with a required "$type" key (one of: DataId, DataDirectOwner, DataEntityMembership, DataOwnershipInEntity, DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete, DataEmbedding, DataFullTextSearch, DataSlug, etc.) and an optional "data" key containing generator-specific configuration. Supports multiple nodes per row, matching the blueprint definition format. Example: [{"$type": "DataId"}, {"$type": "DataTimestamps"}, {"$type": "DataDirectOwner", "data": {"owner_field_name": "author_id"}}]. Defaults to '[]' (no node processing). */
8525
+ nodes?: unknown;
8526
+ /** If true and Row Level Security is not yet enabled on the target table, enable it. Automatically set to true by the trigger when policies[] is non-empty. Defaults to true. */
8527
+ useRls?: boolean;
8528
+ /** PostgreSQL array of jsonb field definition objects to create on the target table. Each object has keys: "name" (text, required), "type" (text, required), "default" (text, optional), "is_required" (boolean, optional, defaults to false), "min" (float, optional), "max" (float, optional), "regexp" (text, optional), "index" (boolean, optional, defaults to false — creates a btree index on the field). min/max generate CHECK constraints: for text/citext they constrain character_length, for integer/float types they constrain the value. regexp generates a CHECK (col ~ pattern) constraint for text/citext. Fields are created via metaschema.create_field() after any node_type generator runs, and their IDs are appended to out_fields. Example: ARRAY['{"name":"username","type":"citext","max":256,"regexp":"^[a-z0-9_]+$"}'::jsonb, '{"name":"score","type":"integer","min":0,"max":100}'::jsonb]. Defaults to '{}' (no additional fields). */
8529
+ fields?: unknown[];
8530
+ /** Array of grant objects defining table privileges. Each element is a jsonb object with keys: "roles" (text[], required — database roles to grant to, e.g. ["authenticated","admin"]), "privileges" (jsonb[], required — array of [privilege, columns] tuples, e.g. [["select","*"],["insert","*"]]). "*" means all columns; an array means column-level grant. Supports per-role privilege targeting: different grant entries can target different roles with different privileges. Example: [{"roles":["authenticated"],"privileges":[["select","*"]]},{"roles":["admin"],"privileges":[["insert","*"],["update","*"],["delete","*"]]}]. Defaults to '[]' (no grants). When policies[] omit explicit privileges/policy_role, they fall back to the verbs and first role from grants[]. */
8531
+ grants?: unknown;
8532
+ /** Array of policy objects to create on the target table. Each element is a jsonb object with keys: "$type" (text, required — the Authz* policy generator type, e.g. AuthzEntityMembership, AuthzMembership, AuthzDirectOwner, AuthzPublishable, AuthzAllowAll), "data" (jsonb, optional — opaque configuration passed to metaschema.create_policy(), structure varies by type), "privileges" (text[], optional — privileges the policy applies to, e.g. ["select","insert"]; if omitted, derived from grants[] privilege verbs), "policy_role" (text, optional — role the policy targets; if omitted, falls back to first role in first grants[] entry, or 'authenticated' if no grants), "permissive" (boolean, optional — PERMISSIVE or RESTRICTIVE; defaults to true), "policy_name" (text, optional — custom suffix for the generated policy name; if omitted, auto-derived from $type by stripping Authz prefix). Supports multiple policies per row. Example: [{"$type": "AuthzEntityMembership", "data": {"entity_field": "owner_id", "membership_type": 3}, "privileges": ["select", "insert"]}, {"$type": "AuthzDirectOwner", "data": {"entity_field": "actor_id"}, "privileges": ["update", "delete"]}]. Defaults to '[]' (no policies created). When non-empty, the trigger automatically enables RLS. */
8533
+ policies?: unknown;
8534
+ /** Output column populated by the trigger after field creation. Contains the UUIDs of the metaschema fields created on the target table by this provision row's nodes. NULL when nodes is empty or before the trigger runs. Callers should not set this directly. */
8535
+ outFields?: string[];
8536
+ }
8537
+ export interface CreateOrgMembershipSettingInput {
8538
+ clientMutationId?: string;
8539
+ /** The `OrgMembershipSetting` to be created by this mutation. */
8540
+ orgMembershipSetting: OrgMembershipSettingInput;
8541
+ }
8542
+ /** An input for mutations affecting `OrgMembershipSetting` */
8543
+ export interface OrgMembershipSettingInput {
8544
+ id?: string;
8545
+ createdAt?: string;
8546
+ updatedAt?: string;
8547
+ createdBy?: string;
8548
+ updatedBy?: string;
8549
+ /** References the entity these settings apply to */
8550
+ entityId: string;
8551
+ /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */
8552
+ deleteMemberCascadeChildren?: boolean;
8553
+ /** When a child entity is created, whether to auto-add existing org-level owners as child-entity owners */
8554
+ createChildCascadeOwners?: boolean;
8555
+ /** When a child entity is created, whether to auto-add existing org-level admins as child-entity admins */
8556
+ createChildCascadeAdmins?: boolean;
8557
+ /** When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members */
8558
+ createChildCascadeMembers?: boolean;
8559
+ /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */
8560
+ allowExternalMembers?: boolean;
8561
+ /** Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. */
8562
+ populateMemberEmail?: boolean;
8563
+ }
8104
8564
  export interface CreateDatabaseTransferInput {
8105
8565
  clientMutationId?: string;
8106
8566
  /** The `DatabaseTransfer` to be created by this mutation. */
@@ -8257,6 +8717,30 @@ export interface ViewInput {
8257
8717
  scope?: number;
8258
8718
  tags?: string[];
8259
8719
  }
8720
+ export interface CreateWebauthnAuthModuleInput {
8721
+ clientMutationId?: string;
8722
+ /** The `WebauthnAuthModule` to be created by this mutation. */
8723
+ webauthnAuthModule: WebauthnAuthModuleInput;
8724
+ }
8725
+ /** An input for mutations affecting `WebauthnAuthModule` */
8726
+ export interface WebauthnAuthModuleInput {
8727
+ id?: string;
8728
+ databaseId: string;
8729
+ schemaId?: string;
8730
+ usersTableId?: string;
8731
+ credentialsTableId?: string;
8732
+ sessionsTableId?: string;
8733
+ sessionCredentialsTableId?: string;
8734
+ sessionSecretsTableId?: string;
8735
+ authSettingsTableId?: string;
8736
+ rpId?: string;
8737
+ rpName?: string;
8738
+ originAllowlist?: string[];
8739
+ attestationType?: string;
8740
+ requireUserVerification?: boolean;
8741
+ residentKey?: string;
8742
+ challengeExpiry?: IntervalInput;
8743
+ }
8260
8744
  export interface CreateAppInput {
8261
8745
  clientMutationId?: string;
8262
8746
  /** The `App` to be created by this mutation. */
@@ -8464,230 +8948,98 @@ export interface PolicyInput {
8464
8948
  createdAt?: string;
8465
8949
  updatedAt?: string;
8466
8950
  }
8467
- export interface CreateEntityTypeProvisionInput {
8951
+ export interface CreatePermissionsModuleInput {
8468
8952
  clientMutationId?: string;
8469
- /** The `EntityTypeProvision` to be created by this mutation. */
8470
- entityTypeProvision: EntityTypeProvisionInput;
8953
+ /** The `PermissionsModule` to be created by this mutation. */
8954
+ permissionsModule: PermissionsModuleInput;
8471
8955
  }
8472
- /** An input for mutations affecting `EntityTypeProvision` */
8473
- export interface EntityTypeProvisionInput {
8474
- /** Unique identifier for this provision row. */
8956
+ /** An input for mutations affecting `PermissionsModule` */
8957
+ export interface PermissionsModuleInput {
8958
+ id?: string;
8959
+ databaseId: string;
8960
+ schemaId?: string;
8961
+ privateSchemaId?: string;
8962
+ tableId?: string;
8963
+ tableName?: string;
8964
+ defaultTableId?: string;
8965
+ defaultTableName?: string;
8966
+ bitlen?: number;
8967
+ membershipType: number;
8968
+ entityTableId?: string;
8969
+ actorTableId?: string;
8970
+ prefix?: string;
8971
+ getPaddedMask?: string;
8972
+ getMask?: string;
8973
+ getByMask?: string;
8974
+ getMaskByName?: string;
8975
+ }
8976
+ export interface CreateAppInviteInput {
8977
+ clientMutationId?: string;
8978
+ /** The `AppInvite` to be created by this mutation. */
8979
+ appInvite: AppInviteInput;
8980
+ }
8981
+ /** An input for mutations affecting `AppInvite` */
8982
+ export interface AppInviteInput {
8983
+ id?: string;
8984
+ /** Email address of the invited recipient */
8985
+ email?: ConstructiveInternalTypeEmail;
8986
+ /** User ID of the member who sent this invitation */
8987
+ senderId?: string;
8988
+ /** Unique random hex token used to redeem this invitation */
8989
+ inviteToken?: string;
8990
+ /** Whether this invitation is still valid and can be redeemed */
8991
+ inviteValid?: boolean;
8992
+ /** Maximum number of times this invite can be claimed; -1 means unlimited */
8993
+ inviteLimit?: number;
8994
+ /** Running count of how many times this invite has been claimed */
8995
+ inviteCount?: number;
8996
+ /** Whether this invite can be claimed by multiple recipients */
8997
+ multiple?: boolean;
8998
+ /** Optional JSON payload of additional invite metadata */
8999
+ data?: unknown;
9000
+ /** Timestamp after which this invitation can no longer be redeemed */
9001
+ expiresAt?: string;
9002
+ createdAt?: string;
9003
+ updatedAt?: string;
9004
+ }
9005
+ export interface CreateEmbeddingChunkInput {
9006
+ clientMutationId?: string;
9007
+ /** The `EmbeddingChunk` to be created by this mutation. */
9008
+ embeddingChunk: EmbeddingChunkInput;
9009
+ }
9010
+ /** An input for mutations affecting `EmbeddingChunk` */
9011
+ export interface EmbeddingChunkInput {
9012
+ id?: string;
9013
+ databaseId?: string;
9014
+ tableId: string;
9015
+ embeddingFieldId?: string;
9016
+ chunksTableId?: string;
9017
+ chunksTableName?: string;
9018
+ contentFieldName?: string;
9019
+ dimensions?: number;
9020
+ metric?: string;
9021
+ chunkSize?: number;
9022
+ chunkOverlap?: number;
9023
+ chunkStrategy?: string;
9024
+ metadataFields?: unknown;
9025
+ enqueueChunkingJob?: boolean;
9026
+ chunkingTaskName?: string;
9027
+ parentFkFieldId?: string;
9028
+ createdAt?: string;
9029
+ updatedAt?: string;
9030
+ }
9031
+ export interface CreateSchemaInput {
9032
+ clientMutationId?: string;
9033
+ /** The `Schema` to be created by this mutation. */
9034
+ schema: SchemaInput;
9035
+ }
9036
+ /** An input for mutations affecting `Schema` */
9037
+ export interface SchemaInput {
8475
9038
  id?: string;
8476
- /** The database to provision this entity type in. Required. */
8477
9039
  databaseId: string;
8478
- /**
8479
- * Human-readable name for this membership type, e.g. 'Data Room Member', 'Team Channel Member'. Required.
8480
- * Stored in the membership_types registry table.
8481
- */
8482
9040
  name: string;
8483
- /**
8484
- * SQL prefix used for table and module naming, e.g. 'data_room', 'team_channel'. Required.
8485
- * Drives entity table name (prefix || 's' by default), module labels (permissions_module:prefix),
8486
- * and membership table names (prefix_memberships, prefix_members, etc.).
8487
- * Must be unique per database — the (database_id, prefix) constraint ensures graceful ON CONFLICT DO NOTHING.
8488
- */
8489
- prefix: string;
8490
- /** Description of this membership type. Stored in the membership_types registry table. Defaults to empty string. */
8491
- description?: string;
8492
- /**
8493
- * Prefix of the parent entity type. The trigger resolves this to a membership_type integer
8494
- * by looking up memberships_module WHERE prefix = parent_entity.
8495
- * Defaults to 'org' (the organization-level type). For nested types, set to the parent's prefix
8496
- * (e.g. 'data_room' for a team_channel nested under data_room).
8497
- * The parent type must already be provisioned before this INSERT.
8498
- */
8499
- parentEntity?: string;
8500
- /**
8501
- * Override the entity table name. When NULL (default), the table name is derived as prefix || 's'
8502
- * (e.g. prefix 'data_room' produces table 'data_rooms').
8503
- * Set this when the pluralization rule doesn't apply (e.g. prefix 'staff' should produce 'staff' not 'staffs').
8504
- */
8505
- tableName?: string;
8506
- /**
8507
- * Whether members of the parent entity can see child entities. Defaults to true.
8508
- * When true: a SELECT policy allows parent members to list child entities (e.g. org members can see all data rooms).
8509
- * When false: only direct members of the entity itself can see it (private entity mode).
8510
- * Controls whether the parent_member SELECT policy is created on the entity table.
8511
- * Only meaningful on the defaults path — ignored (no-op) when table_provision is non-NULL or
8512
- * skip_entity_policies=true, since no default policies are being applied in those cases.
8513
- */
8514
- isVisible?: boolean;
8515
- /**
8516
- * Whether to apply limits_module security for this type. Defaults to false.
8517
- * The limits_module table structure is always created (memberships_module requires it),
8518
- * but when false, no RLS policies are applied to the limits tables.
8519
- * Set to true if this entity type needs configurable resource limits per membership.
8520
- */
8521
- hasLimits?: boolean;
8522
- /**
8523
- * Whether to provision profiles_module for this type. Defaults to false.
8524
- * Profiles provide named permission roles (e.g. 'Editor', 'Viewer') with pre-configured permission bitmasks.
8525
- * When true, creates profile tables and applies profiles security.
8526
- */
8527
- hasProfiles?: boolean;
8528
- /**
8529
- * Whether to provision levels_module for this type. Defaults to false.
8530
- * Levels provide gamification/achievement tracking for members.
8531
- * When true, creates level steps, achievements, and level tables with security.
8532
- */
8533
- hasLevels?: boolean;
8534
- /**
8535
- * Escape hatch: when true, apply zero RLS policies to the entity table. Defaults to false.
8536
- * Use this only when you want the entity table provisioned with zero policies (e.g. because you
8537
- * plan to insert secure_table_provision rows yourself later). In most cases, prefer leaving this
8538
- * false and either accepting the five defaults (table_provision=NULL) or overriding them via
8539
- * table_provision.
8540
- * Defaults (applied when table_provision IS NULL and skip_entity_policies=false):
8541
- * - SELECT (parent_member): parent entity members can see child entities (only when is_visible=true)
8542
- * - SELECT (self_member): direct members of the entity can see it
8543
- * - INSERT: create_entity permission on the parent entity
8544
- * - UPDATE: admin_entity permission on the entity itself
8545
- * - DELETE: owner of the entity can delete it
8546
- */
8547
- skipEntityPolicies?: boolean;
8548
- /**
8549
- * Single jsonb object describing the full security setup to apply to the entity table.
8550
- * Uses the same vocabulary as metaschema_modules_public.provision_table() and blueprint tables[]
8551
- * entries, so an entity table is configured the same way an ordinary blueprint table is.
8552
- * Defaults to NULL; when non-NULL, the five default policies are implicitly replaced by
8553
- * table_provision.policies[] (is_visible becomes a no-op on this path).
8554
- * Recognized keys (all optional):
8555
- * - use_rls (boolean, default true)
8556
- * - nodes (jsonb array of {"$type","data"} Data* module entries)
8557
- * - fields (jsonb array of field objects: name,type,is_required,default,min,max,regexp,index)
8558
- * - grant_privileges (jsonb array of [privilege, columns] tuples)
8559
- * - grant_roles (jsonb array of role names; defaults to ["authenticated"])
8560
- * - policies (jsonb array of policy objects; each with $type, privileges, data, name, role, permissive)
8561
- * The trigger fans policies[] into N secure_table_provision rows against the newly created entity table,
8562
- * with table-level setup (nodes/fields/grants) attached to the first row.
8563
- * Example — override with two SELECT policies:
8564
- * table_provision := jsonb_build_object(
8565
- * 'policies', jsonb_build_array(
8566
- * jsonb_build_object(
8567
- * '$type', 'AuthzEntityMembership',
8568
- * 'privileges', jsonb_build_array('select'),
8569
- * 'data', jsonb_build_object('entity_field', 'id', 'membership_type', 3),
8570
- * 'name', 'self_member'
8571
- * ),
8572
- * jsonb_build_object(
8573
- * '$type', 'AuthzDirectOwner',
8574
- * 'privileges', jsonb_build_array('select', 'update'),
8575
- * 'data', jsonb_build_object('owner_field', 'owner_id')
8576
- * )
8577
- * )
8578
- * )
8579
- */
8580
- tableProvision?: unknown;
8581
- /**
8582
- * Output: the auto-assigned integer membership type ID. Populated by the trigger after successful provisioning.
8583
- * This is the ID used in membership_types, memberships_module, and all module tables.
8584
- */
8585
- outMembershipType?: number;
8586
- /**
8587
- * Output: the UUID of the created entity table. Populated by the trigger.
8588
- * Use this to reference the entity table in subsequent relation_provision or secure_table_provision rows.
8589
- */
8590
- outEntityTableId?: string;
8591
- /** Output: the name of the created entity table (e.g. 'data_rooms'). Populated by the trigger. */
8592
- outEntityTableName?: string;
8593
- /**
8594
- * Output: array of installed module labels (e.g. ARRAY['permissions_module:data_room', 'memberships_module:data_room', 'invites_module:data_room']).
8595
- * Populated by the trigger. Useful for verifying which modules were provisioned.
8596
- */
8597
- outInstalledModules?: string[];
8598
- }
8599
- export interface CreatePermissionsModuleInput {
8600
- clientMutationId?: string;
8601
- /** The `PermissionsModule` to be created by this mutation. */
8602
- permissionsModule: PermissionsModuleInput;
8603
- }
8604
- /** An input for mutations affecting `PermissionsModule` */
8605
- export interface PermissionsModuleInput {
8606
- id?: string;
8607
- databaseId: string;
8608
- schemaId?: string;
8609
- privateSchemaId?: string;
8610
- tableId?: string;
8611
- tableName?: string;
8612
- defaultTableId?: string;
8613
- defaultTableName?: string;
8614
- bitlen?: number;
8615
- membershipType: number;
8616
- entityTableId?: string;
8617
- actorTableId?: string;
8618
- prefix?: string;
8619
- getPaddedMask?: string;
8620
- getMask?: string;
8621
- getByMask?: string;
8622
- getMaskByName?: string;
8623
- }
8624
- export interface CreateAppInviteInput {
8625
- clientMutationId?: string;
8626
- /** The `AppInvite` to be created by this mutation. */
8627
- appInvite: AppInviteInput;
8628
- }
8629
- /** An input for mutations affecting `AppInvite` */
8630
- export interface AppInviteInput {
8631
- id?: string;
8632
- /** Email address of the invited recipient */
8633
- email?: ConstructiveInternalTypeEmail;
8634
- /** User ID of the member who sent this invitation */
8635
- senderId?: string;
8636
- /** Unique random hex token used to redeem this invitation */
8637
- inviteToken?: string;
8638
- /** Whether this invitation is still valid and can be redeemed */
8639
- inviteValid?: boolean;
8640
- /** Maximum number of times this invite can be claimed; -1 means unlimited */
8641
- inviteLimit?: number;
8642
- /** Running count of how many times this invite has been claimed */
8643
- inviteCount?: number;
8644
- /** Whether this invite can be claimed by multiple recipients */
8645
- multiple?: boolean;
8646
- /** Optional JSON payload of additional invite metadata */
8647
- data?: unknown;
8648
- /** Timestamp after which this invitation can no longer be redeemed */
8649
- expiresAt?: string;
8650
- createdAt?: string;
8651
- updatedAt?: string;
8652
- }
8653
- export interface CreateEmbeddingChunkInput {
8654
- clientMutationId?: string;
8655
- /** The `EmbeddingChunk` to be created by this mutation. */
8656
- embeddingChunk: EmbeddingChunkInput;
8657
- }
8658
- /** An input for mutations affecting `EmbeddingChunk` */
8659
- export interface EmbeddingChunkInput {
8660
- id?: string;
8661
- databaseId?: string;
8662
- tableId: string;
8663
- embeddingFieldId?: string;
8664
- chunksTableId?: string;
8665
- chunksTableName?: string;
8666
- contentFieldName?: string;
8667
- dimensions?: number;
8668
- metric?: string;
8669
- chunkSize?: number;
8670
- chunkOverlap?: number;
8671
- chunkStrategy?: string;
8672
- metadataFields?: unknown;
8673
- enqueueChunkingJob?: boolean;
8674
- chunkingTaskName?: string;
8675
- parentFkFieldId?: string;
8676
- createdAt?: string;
8677
- updatedAt?: string;
8678
- }
8679
- export interface CreateSchemaInput {
8680
- clientMutationId?: string;
8681
- /** The `Schema` to be created by this mutation. */
8682
- schema: SchemaInput;
8683
- }
8684
- /** An input for mutations affecting `Schema` */
8685
- export interface SchemaInput {
8686
- id?: string;
8687
- databaseId: string;
8688
- name: string;
8689
- schemaName: string;
8690
- label?: string;
9041
+ schemaName: string;
9042
+ label?: string;
8691
9043
  description?: string;
8692
9044
  smartTags?: unknown;
8693
9045
  category?: ObjectCategory;
@@ -8813,6 +9165,38 @@ export interface IndexInput {
8813
9165
  createdAt?: string;
8814
9166
  updatedAt?: string;
8815
9167
  }
9168
+ export interface CreateWebauthnCredentialInput {
9169
+ clientMutationId?: string;
9170
+ /** The `WebauthnCredential` to be created by this mutation. */
9171
+ webauthnCredential: WebauthnCredentialInput;
9172
+ }
9173
+ /** An input for mutations affecting `WebauthnCredential` */
9174
+ export interface WebauthnCredentialInput {
9175
+ id?: string;
9176
+ ownerId?: string;
9177
+ /** Base64url-encoded credential ID returned by the authenticator. Globally unique per WebAuthn spec. */
9178
+ credentialId: string;
9179
+ /** COSE-encoded public key bytes from the authenticator attestation. */
9180
+ publicKey: Base64EncodedBinary;
9181
+ /** Monotonic signature counter. Strict-increase check during sign-in detects cloned credentials. 0 means the authenticator does not implement a counter. */
9182
+ signCount?: string;
9183
+ /** Random per-user handle sent to authenticators as user.id. Privacy-preserving; NOT the internal user UUID. */
9184
+ webauthnUserId: string;
9185
+ /** Authenticator transport hints (e.g. usb, nfc, ble, internal, hybrid). Used to hint browser UI during sign-in. */
9186
+ transports?: string[];
9187
+ /** Either 'singleDevice' (hardware-bound) or 'multiDevice' (synced passkey). Enforced by CHECK constraint below. */
9188
+ credentialDeviceType: string;
9189
+ /** Whether this credential is eligible for backup (syncing) per the authenticator's flags at registration. */
9190
+ backupEligible?: boolean;
9191
+ /** Current backup state; updated on each successful sign-in assertion. */
9192
+ backupState?: boolean;
9193
+ /** User-provided label for this credential (e.g. "YubiKey 5C", "iPhone 15"). Renamed via rename_passkey. */
9194
+ name?: string;
9195
+ /** Timestamp of the most recent successful sign-in assertion using this credential. */
9196
+ lastUsedAt?: string;
9197
+ createdAt?: string;
9198
+ updatedAt?: string;
9199
+ }
8816
9200
  export interface CreateOrgInviteInput {
8817
9201
  clientMutationId?: string;
8818
9202
  /** The `OrgInvite` to be created by this mutation. */
@@ -8845,48 +9229,6 @@ export interface OrgInviteInput {
8845
9229
  updatedAt?: string;
8846
9230
  entityId: string;
8847
9231
  }
8848
- export interface CreateSecureTableProvisionInput {
8849
- clientMutationId?: string;
8850
- /** The `SecureTableProvision` to be created by this mutation. */
8851
- secureTableProvision: SecureTableProvisionInput;
8852
- }
8853
- /** An input for mutations affecting `SecureTableProvision` */
8854
- export interface SecureTableProvisionInput {
8855
- /** Unique identifier for this provision row. */
8856
- id?: string;
8857
- /** The database this provision belongs to. Required. */
8858
- databaseId: string;
8859
- /** Target schema for the table. Defaults to uuid_nil(); the trigger resolves this to the app_public schema if not explicitly provided. */
8860
- schemaId?: string;
8861
- /** Target table to provision. Defaults to uuid_nil(); the trigger creates or resolves the table via table_name if not explicitly provided. */
8862
- tableId?: string;
8863
- /** Name of the target table. Used to create or look up the table when table_id is not provided. If omitted, it is backfilled from the resolved table. */
8864
- tableName?: string;
8865
- /** Array of node objects to apply to the table. Each element is a jsonb object with a required "$type" key (one of: DataId, DataDirectOwner, DataEntityMembership, DataOwnershipInEntity, DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete, DataEmbedding, DataFullTextSearch, DataSlug, etc.) and an optional "data" key containing generator-specific configuration. Supports multiple nodes per row, matching the blueprint definition format. Example: [{"$type": "DataId"}, {"$type": "DataTimestamps"}, {"$type": "DataDirectOwner", "data": {"owner_field_name": "author_id"}}]. Defaults to '[]' (no node processing). */
8866
- nodes?: unknown;
8867
- /** If true and Row Level Security is not yet enabled on the target table, enable it. Automatically set to true by the trigger when policy_type is provided. Defaults to true. */
8868
- useRls?: boolean;
8869
- /** PostgreSQL array of jsonb field definition objects to create on the target table. Each object has keys: "name" (text, required), "type" (text, required), "default" (text, optional), "is_required" (boolean, optional, defaults to false), "min" (float, optional), "max" (float, optional), "regexp" (text, optional), "index" (boolean, optional, defaults to false — creates a btree index on the field). min/max generate CHECK constraints: for text/citext they constrain character_length, for integer/float types they constrain the value. regexp generates a CHECK (col ~ pattern) constraint for text/citext. Fields are created via metaschema.create_field() after any node_type generator runs, and their IDs are appended to out_fields. Example: ARRAY['{"name":"username","type":"citext","max":256,"regexp":"^[a-z0-9_]+$"}'::jsonb, '{"name":"score","type":"integer","min":0,"max":100}'::jsonb]. Defaults to '{}' (no additional fields). */
8870
- fields?: unknown[];
8871
- /** Database roles to grant privileges to. Supports multiple roles, e.g. ARRAY['authenticated', 'admin']. Each role receives all privileges defined in grant_privileges. Defaults to ARRAY['authenticated']. */
8872
- grantRoles?: string[];
8873
- /** PostgreSQL array of jsonb [privilege, columns] tuples defining table grants. Examples: ARRAY['["select","*"]'::jsonb, '["insert","*"]'::jsonb] for full access, or ARRAY['["update",["name","bio"]]'::jsonb] for column-level grants. "*" means all columns; an array means column-level grant. Defaults to '{}' (no grants — callers must explicitly specify privileges). Type safety is enforced by PostgreSQL at INSERT time. */
8874
- grantPrivileges?: unknown[];
8875
- /** Policy generator type, e.g. 'AuthzEntityMembership', 'AuthzMembership', 'AuthzAllowAll'. NULL means no policy is created. When set, the trigger automatically enables RLS on the target table. */
8876
- policyType?: string;
8877
- /** Privileges the policy applies to, e.g. ARRAY['select','update']. NULL means privileges are derived from the grant_privileges verbs. */
8878
- policyPrivileges?: string[];
8879
- /** Role the policy targets. NULL means it falls back to the first role in grant_roles. */
8880
- policyRole?: string;
8881
- /** Whether the policy is PERMISSIVE (true) or RESTRICTIVE (false). Defaults to true. */
8882
- policyPermissive?: boolean;
8883
- /** Custom suffix for the generated policy name. When NULL and policy_type is set, the trigger auto-derives a suffix from policy_type by stripping the Authz prefix and underscoring the remainder (e.g. AuthzDirectOwner becomes direct_owner, producing policy names like auth_sel_direct_owner). When explicitly set, the value is passed through as-is to metaschema.create_policy name parameter. This ensures multiple policies on the same table do not collide (e.g. AuthzDirectOwner + AuthzPublishable each get unique names). */
8884
- policyName?: string;
8885
- /** Opaque configuration passed through to metaschema.create_policy(). Structure varies by policy_type and is not interpreted by this trigger. Defaults to '{}'. */
8886
- policyData?: unknown;
8887
- /** Output column populated by the trigger after field creation. Contains the UUIDs of the metaschema fields created on the target table by this provision row's nodes. NULL when nodes is empty or before the trigger runs. Callers should not set this directly. */
8888
- outFields?: string[];
8889
- }
8890
9232
  export interface CreateOrgMembershipInput {
8891
9233
  clientMutationId?: string;
8892
9234
  /** The `OrgMembership` to be created by this mutation. */
@@ -9027,6 +9369,170 @@ export interface ForeignKeyConstraintInput {
9027
9369
  createdAt?: string;
9028
9370
  updatedAt?: string;
9029
9371
  }
9372
+ export interface CreateEntityTypeProvisionInput {
9373
+ clientMutationId?: string;
9374
+ /** The `EntityTypeProvision` to be created by this mutation. */
9375
+ entityTypeProvision: EntityTypeProvisionInput;
9376
+ }
9377
+ /** An input for mutations affecting `EntityTypeProvision` */
9378
+ export interface EntityTypeProvisionInput {
9379
+ /** Unique identifier for this provision row. */
9380
+ id?: string;
9381
+ /** The database to provision this entity type in. Required. */
9382
+ databaseId: string;
9383
+ /**
9384
+ * Human-readable name for this membership type, e.g. 'Data Room Member', 'Team Channel Member'. Required.
9385
+ * Stored in the membership_types registry table.
9386
+ */
9387
+ name: string;
9388
+ /**
9389
+ * SQL prefix used for table and module naming, e.g. 'data_room', 'team_channel'. Required.
9390
+ * Drives entity table name (prefix || 's' by default), module labels (permissions_module:prefix),
9391
+ * and membership table names (prefix_memberships, prefix_members, etc.).
9392
+ * Must be unique per database — the (database_id, prefix) constraint ensures graceful ON CONFLICT DO NOTHING.
9393
+ */
9394
+ prefix: string;
9395
+ /** Description of this membership type. Stored in the membership_types registry table. Defaults to empty string. */
9396
+ description?: string;
9397
+ /**
9398
+ * Prefix of the parent entity type. The trigger resolves this to a membership_type integer
9399
+ * by looking up memberships_module WHERE prefix = parent_entity.
9400
+ * Defaults to 'org' (the organization-level type). For nested types, set to the parent's prefix
9401
+ * (e.g. 'data_room' for a team_channel nested under data_room).
9402
+ * The parent type must already be provisioned before this INSERT.
9403
+ */
9404
+ parentEntity?: string;
9405
+ /**
9406
+ * Override the entity table name. When NULL (default), the table name is derived as prefix || 's'
9407
+ * (e.g. prefix 'data_room' produces table 'data_rooms').
9408
+ * Set this when the pluralization rule doesn't apply (e.g. prefix 'staff' should produce 'staff' not 'staffs').
9409
+ */
9410
+ tableName?: string;
9411
+ /**
9412
+ * Whether members of the parent entity can see child entities. Defaults to true.
9413
+ * When true: a SELECT policy allows parent members to list child entities (e.g. org members can see all data rooms).
9414
+ * When false: only direct members of the entity itself can see it (private entity mode).
9415
+ * Controls whether the parent_member SELECT policy is created on the entity table.
9416
+ * Only meaningful on the defaults path — ignored (no-op) when table_provision is non-NULL or
9417
+ * skip_entity_policies=true, since no default policies are being applied in those cases.
9418
+ */
9419
+ isVisible?: boolean;
9420
+ /**
9421
+ * Whether to apply limits_module security for this type. Defaults to false.
9422
+ * The limits_module table structure is always created (memberships_module requires it),
9423
+ * but when false, no RLS policies are applied to the limits tables.
9424
+ * Set to true if this entity type needs configurable resource limits per membership.
9425
+ */
9426
+ hasLimits?: boolean;
9427
+ /**
9428
+ * Whether to provision profiles_module for this type. Defaults to false.
9429
+ * Profiles provide named permission roles (e.g. 'Editor', 'Viewer') with pre-configured permission bitmasks.
9430
+ * When true, creates profile tables and applies profiles security.
9431
+ */
9432
+ hasProfiles?: boolean;
9433
+ /**
9434
+ * Whether to provision levels_module for this type. Defaults to false.
9435
+ * Levels provide gamification/achievement tracking for members.
9436
+ * When true, creates level steps, achievements, and level tables with security.
9437
+ */
9438
+ hasLevels?: boolean;
9439
+ /**
9440
+ * Whether to provision storage_module for this type. Defaults to false.
9441
+ * When true, creates {prefix}_buckets, {prefix}_files, and {prefix}_upload_requests tables
9442
+ * with entity-scoped RLS (AuthzEntityMembership) using the entity's membership_type.
9443
+ * Storage tables get owner_id FK to the entity table, so files are owned by the entity.
9444
+ */
9445
+ hasStorage?: boolean;
9446
+ /**
9447
+ * Optional jsonb object for storage module configuration and initial bucket seeding.
9448
+ * Only used when has_storage = true; ignored otherwise. NULL = use defaults.
9449
+ * Recognized keys (all optional):
9450
+ * - upload_url_expiry_seconds (integer) presigned PUT URL expiry override
9451
+ * - download_url_expiry_seconds (integer) presigned GET URL expiry override
9452
+ * - default_max_file_size (bigint) global max file size in bytes for this scope
9453
+ * - allowed_origins (text[]) default CORS origins for all buckets in this scope
9454
+ * - buckets (jsonb[]) array of initial bucket definitions to seed
9455
+ * Each bucket in the buckets array recognizes:
9456
+ * - name (text, required) bucket name e.g. 'documents'
9457
+ * - description (text) human-readable description
9458
+ * - is_public (boolean) whether files are publicly readable (default false)
9459
+ * - allowed_mime_types (text[]) whitelist of MIME types (null = any)
9460
+ * - max_file_size (bigint) max file size in bytes (null = use scope default)
9461
+ * - allowed_origins (text[]) per-bucket CORS override
9462
+ * Example:
9463
+ * storage_config := '{"buckets": [{"name": "documents", "is_public": false, "allowed_mime_types": ["application/pdf"]}]}'::jsonb
9464
+ */
9465
+ storageConfig?: unknown;
9466
+ /**
9467
+ * Escape hatch: when true, apply zero RLS policies to the entity table. Defaults to false.
9468
+ * Use this only when you want the entity table provisioned with zero policies (e.g. because you
9469
+ * plan to insert secure_table_provision rows yourself later). In most cases, prefer leaving this
9470
+ * false and either accepting the five defaults (table_provision=NULL) or overriding them via
9471
+ * table_provision.
9472
+ * Defaults (applied when table_provision IS NULL and skip_entity_policies=false):
9473
+ * - SELECT (parent_member): parent entity members can see child entities (only when is_visible=true)
9474
+ * - SELECT (self_member): direct members of the entity can see it
9475
+ * - INSERT: create_entity permission on the parent entity
9476
+ * - UPDATE: admin_entity permission on the entity itself
9477
+ * - DELETE: owner of the entity can delete it
9478
+ */
9479
+ skipEntityPolicies?: boolean;
9480
+ /**
9481
+ * Single jsonb object describing the full security setup to apply to the entity table.
9482
+ * Uses the same vocabulary as metaschema_modules_public.provision_table() and blueprint tables[]
9483
+ * entries, so an entity table is configured the same way an ordinary blueprint table is.
9484
+ * Defaults to NULL; when non-NULL, the five default policies are implicitly replaced by
9485
+ * table_provision.policies[] (is_visible becomes a no-op on this path).
9486
+ * Recognized keys (all optional):
9487
+ * - use_rls (boolean, default true)
9488
+ * - nodes (jsonb array of {"$type","data"} Data* module entries)
9489
+ * - fields (jsonb array of field objects: name,type,is_required,default,min,max,regexp,index)
9490
+ * - grants (jsonb array of grant objects; each with roles[] and privileges[])
9491
+ * - policies (jsonb array of policy objects; each with $type, privileges, data, name, role, permissive)
9492
+ * The trigger forwards all setup (nodes/fields/grants/policies) as a single secure_table_provision row
9493
+ * against the newly created entity table.
9494
+ * Example — override with two SELECT policies:
9495
+ * table_provision := jsonb_build_object(
9496
+ * 'policies', jsonb_build_array(
9497
+ * jsonb_build_object(
9498
+ * '$type', 'AuthzEntityMembership',
9499
+ * 'privileges', jsonb_build_array('select'),
9500
+ * 'data', jsonb_build_object('entity_field', 'id', 'membership_type', 3),
9501
+ * 'name', 'self_member'
9502
+ * ),
9503
+ * jsonb_build_object(
9504
+ * '$type', 'AuthzDirectOwner',
9505
+ * 'privileges', jsonb_build_array('select', 'update'),
9506
+ * 'data', jsonb_build_object('owner_field', 'owner_id')
9507
+ * )
9508
+ * )
9509
+ * )
9510
+ */
9511
+ tableProvision?: unknown;
9512
+ /**
9513
+ * Output: the auto-assigned integer membership type ID. Populated by the trigger after successful provisioning.
9514
+ * This is the ID used in membership_types, memberships_module, and all module tables.
9515
+ */
9516
+ outMembershipType?: number;
9517
+ /**
9518
+ * Output: the UUID of the created entity table. Populated by the trigger.
9519
+ * Use this to reference the entity table in subsequent relation_provision or secure_table_provision rows.
9520
+ */
9521
+ outEntityTableId?: string;
9522
+ /** Output: the name of the created entity table (e.g. 'data_rooms'). Populated by the trigger. */
9523
+ outEntityTableName?: string;
9524
+ /**
9525
+ * Output: array of installed module labels (e.g. ARRAY['permissions_module:data_room', 'memberships_module:data_room', 'invites_module:data_room']).
9526
+ * Populated by the trigger. Useful for verifying which modules were provisioned.
9527
+ */
9528
+ outInstalledModules?: string[];
9529
+ /** Output: the UUID of the storage_module row created for this entity type. Populated by the trigger when has_storage=true. */
9530
+ outStorageModuleId?: string;
9531
+ /** Output: the UUID of the generated buckets table (e.g. data_room_buckets). Populated by the trigger when has_storage=true. */
9532
+ outBucketsTableId?: string;
9533
+ /** Output: the UUID of the generated files table (e.g. data_room_files). Populated by the trigger when has_storage=true. */
9534
+ outFilesTableId?: string;
9535
+ }
9030
9536
  export interface CreateStorageModuleInput {
9031
9537
  clientMutationId?: string;
9032
9538
  /** The `StorageModule` to be created by this mutation. */
@@ -9043,142 +9549,44 @@ export interface StorageModuleInput {
9043
9549
  uploadRequestsTableId?: string;
9044
9550
  bucketsTableName?: string;
9045
9551
  filesTableName?: string;
9046
- uploadRequestsTableName?: string;
9047
- entityTableId?: string;
9048
- endpoint?: string;
9049
- publicUrlPrefix?: string;
9050
- provider?: string;
9051
- allowedOrigins?: string[];
9052
- uploadUrlExpirySeconds?: number;
9053
- downloadUrlExpirySeconds?: number;
9054
- defaultMaxFileSize?: string;
9055
- maxFilenameLength?: number;
9056
- cacheTtlSeconds?: number;
9057
- }
9058
- export interface CreateTableInput {
9059
- clientMutationId?: string;
9060
- /** The `Table` to be created by this mutation. */
9061
- table: TableInput;
9062
- }
9063
- /** An input for mutations affecting `Table` */
9064
- export interface TableInput {
9065
- id?: string;
9066
- databaseId?: string;
9067
- schemaId: string;
9068
- name: string;
9069
- label?: string;
9070
- description?: string;
9071
- smartTags?: unknown;
9072
- category?: ObjectCategory;
9073
- module?: string;
9074
- scope?: number;
9075
- useRls?: boolean;
9076
- timestamps?: boolean;
9077
- peoplestamps?: boolean;
9078
- pluralName?: string;
9079
- singularName?: string;
9080
- tags?: string[];
9081
- inheritsId?: string;
9082
- createdAt?: string;
9083
- updatedAt?: string;
9084
- }
9085
- export interface CreateLevelsModuleInput {
9086
- clientMutationId?: string;
9087
- /** The `LevelsModule` to be created by this mutation. */
9088
- levelsModule: LevelsModuleInput;
9089
- }
9090
- /** An input for mutations affecting `LevelsModule` */
9091
- export interface LevelsModuleInput {
9092
- id?: string;
9093
- databaseId: string;
9094
- schemaId?: string;
9095
- privateSchemaId?: string;
9096
- stepsTableId?: string;
9097
- stepsTableName?: string;
9098
- achievementsTableId?: string;
9099
- achievementsTableName?: string;
9100
- levelsTableId?: string;
9101
- levelsTableName?: string;
9102
- levelRequirementsTableId?: string;
9103
- levelRequirementsTableName?: string;
9104
- completedStep?: string;
9105
- incompletedStep?: string;
9106
- tgAchievement?: string;
9107
- tgAchievementToggle?: string;
9108
- tgAchievementToggleBoolean?: string;
9109
- tgAchievementBoolean?: string;
9110
- upsertAchievement?: string;
9111
- tgUpdateAchievements?: string;
9112
- stepsRequired?: string;
9113
- levelAchieved?: string;
9114
- prefix?: string;
9115
- membershipType: number;
9116
- entityTableId?: string;
9117
- actorTableId?: string;
9118
- }
9119
- export interface CreateUserAuthModuleInput {
9120
- clientMutationId?: string;
9121
- /** The `UserAuthModule` to be created by this mutation. */
9122
- userAuthModule: UserAuthModuleInput;
9123
- }
9124
- /** An input for mutations affecting `UserAuthModule` */
9125
- export interface UserAuthModuleInput {
9126
- id?: string;
9127
- databaseId: string;
9128
- schemaId?: string;
9129
- emailsTableId?: string;
9130
- usersTableId?: string;
9131
- secretsTableId?: string;
9132
- encryptedTableId?: string;
9133
- sessionsTableId?: string;
9134
- sessionCredentialsTableId?: string;
9135
- auditsTableId?: string;
9136
- auditsTableName?: string;
9137
- signInFunction?: string;
9138
- signUpFunction?: string;
9139
- signOutFunction?: string;
9140
- setPasswordFunction?: string;
9141
- resetPasswordFunction?: string;
9142
- forgotPasswordFunction?: string;
9143
- sendVerificationEmailFunction?: string;
9144
- verifyEmailFunction?: string;
9145
- verifyPasswordFunction?: string;
9146
- checkPasswordFunction?: string;
9147
- sendAccountDeletionEmailFunction?: string;
9148
- deleteAccountFunction?: string;
9149
- signInCrossOriginFunction?: string;
9150
- requestCrossOriginTokenFunction?: string;
9151
- extendTokenExpires?: string;
9552
+ uploadRequestsTableName?: string;
9553
+ membershipType?: number;
9554
+ policies?: string[];
9555
+ entityTableId?: string;
9556
+ endpoint?: string;
9557
+ publicUrlPrefix?: string;
9558
+ provider?: string;
9559
+ allowedOrigins?: string[];
9560
+ uploadUrlExpirySeconds?: number;
9561
+ downloadUrlExpirySeconds?: number;
9562
+ defaultMaxFileSize?: string;
9563
+ maxFilenameLength?: number;
9564
+ cacheTtlSeconds?: number;
9152
9565
  }
9153
- export interface CreateFieldInput {
9566
+ export interface CreateTableInput {
9154
9567
  clientMutationId?: string;
9155
- /** The `Field` to be created by this mutation. */
9156
- field: FieldInput;
9568
+ /** The `Table` to be created by this mutation. */
9569
+ table: TableInput;
9157
9570
  }
9158
- /** An input for mutations affecting `Field` */
9159
- export interface FieldInput {
9571
+ /** An input for mutations affecting `Table` */
9572
+ export interface TableInput {
9160
9573
  id?: string;
9161
9574
  databaseId?: string;
9162
- tableId: string;
9575
+ schemaId: string;
9163
9576
  name: string;
9164
9577
  label?: string;
9165
9578
  description?: string;
9166
9579
  smartTags?: unknown;
9167
- isRequired?: boolean;
9168
- apiRequired?: boolean;
9169
- defaultValue?: string;
9170
- defaultValueAst?: unknown;
9171
- type: string;
9172
- fieldOrder?: number;
9173
- regexp?: string;
9174
- chk?: unknown;
9175
- chkExpr?: unknown;
9176
- min?: number;
9177
- max?: number;
9178
- tags?: string[];
9179
9580
  category?: ObjectCategory;
9180
9581
  module?: string;
9181
9582
  scope?: number;
9583
+ useRls?: boolean;
9584
+ timestamps?: boolean;
9585
+ peoplestamps?: boolean;
9586
+ pluralName?: string;
9587
+ singularName?: string;
9588
+ tags?: string[];
9589
+ inheritsId?: string;
9182
9590
  createdAt?: string;
9183
9591
  updatedAt?: string;
9184
9592
  }
@@ -9293,34 +9701,15 @@ export interface RelationProvisionInput {
9293
9701
  * Ignored for RelationBelongsTo/RelationHasOne/RelationHasMany.
9294
9702
  */
9295
9703
  nodes?: unknown;
9296
- /** For RelationManyToMany: database roles to grant privileges to on the junction table. Forwarded to secure_table_provision as-is. Supports multiple roles, e.g. ARRAY['authenticated', 'admin']. Each role receives all privileges defined in grant_privileges. Defaults to ARRAY['authenticated']. Ignored for RelationBelongsTo/RelationHasOne. */
9297
- grantRoles?: string[];
9298
- /** For RelationManyToMany: privilege grants for the junction table. Forwarded to secure_table_provision as-is. Format: PostgreSQL array of jsonb [privilege, columns] tuples. Examples: ARRAY['["select","*"]'::jsonb, '["insert","*"]'::jsonb] for full access, or ARRAY['["update",["name","bio"]]'::jsonb] for column-level grants. "*" means all columns. Defaults to '{}' (no grants — callers must explicitly specify privileges). Ignored for RelationBelongsTo/RelationHasOne. */
9299
- grantPrivileges?: unknown[];
9300
- /**
9301
- * For RelationManyToMany: RLS policy type for the junction table. Forwarded to secure_table_provision as-is. The trigger does not interpret or validate this value.
9302
- * Examples: AuthzEntityMembership, AuthzMembership, AuthzAllowAll, AuthzDirectOwner, AuthzOrgHierarchy.
9303
- * NULL means no policy is created — the junction table will have RLS enabled but no policies (unless added separately via secure_table_provision).
9304
- * Ignored for RelationBelongsTo/RelationHasOne.
9305
- */
9306
- policyType?: string;
9307
- /** For RelationManyToMany: privileges the policy applies to, e.g. ARRAY['select','insert','delete']. Forwarded to secure_table_provision as-is. NULL means privileges are derived from the grant_privileges verbs by secure_table_provision. Ignored for RelationBelongsTo/RelationHasOne. */
9308
- policyPrivileges?: string[];
9309
- /** For RelationManyToMany: database role the policy targets, e.g. 'authenticated'. Forwarded to secure_table_provision as-is. NULL means secure_table_provision falls back to the first role in grant_roles. Ignored for RelationBelongsTo/RelationHasOne. */
9310
- policyRole?: string;
9311
- /** For RelationManyToMany: whether the policy is PERMISSIVE (true) or RESTRICTIVE (false). Forwarded to secure_table_provision as-is. Defaults to true. Ignored for RelationBelongsTo/RelationHasOne. */
9312
- policyPermissive?: boolean;
9313
- /** For RelationManyToMany: custom suffix for the generated policy name. Forwarded to secure_table_provision as-is. When NULL and policy_type is set, secure_table_provision auto-derives a suffix from policy_type (e.g. AuthzDirectOwner becomes direct_owner, producing policy names like auth_sel_direct_owner). When explicitly set, used as-is. This ensures multiple policies on the same junction table do not collide. Ignored for RelationBelongsTo/RelationHasOne. */
9314
- policyName?: string;
9704
+ /** For RelationManyToMany: array of grant objects for the junction table. Forwarded to provision_table as-is. Each element is a jsonb object with keys: "roles" (text[], required), "privileges" (jsonb[], required array of [privilege, columns] tuples). Example: [{"roles":["authenticated"],"privileges":[["select","*"],["insert","*"],["delete","*"]]}]. Defaults to '[]' (no grants). Ignored for RelationBelongsTo/RelationHasOne. */
9705
+ grants?: unknown;
9315
9706
  /**
9316
- * For RelationManyToMany: opaque policy configuration forwarded to secure_table_provision as-is. The trigger does not interpret or validate this value. Structure varies by policy_type. Examples:
9317
- * - AuthzEntityMembership: {"entity_field": "entity_id", "membership_type": 2}
9318
- * - AuthzDirectOwner: {"owner_field": "owner_id"}
9319
- * - AuthzMembership: {"membership_type": 2}
9320
- * Defaults to '{}' (empty object).
9321
- * Ignored for RelationBelongsTo/RelationHasOne.
9707
+ * For RelationManyToMany: array of policy objects for the junction table. Forwarded to provision_table as-is. Each element is a jsonb object with keys: "$type" (text, required — the Authz* policy generator type), "data" (jsonb, optional — opaque config), "privileges" (text[], optional — e.g. ["select","insert"]; if omitted, derived from grants[] privilege verbs), "policy_role" (text, optional — falls back to first role in first grants[] entry, or 'authenticated'), "permissive" (boolean, optional, defaults to true), "policy_name" (text, optional). Supports multiple policies per row.
9708
+ * Example: [{"$type": "AuthzEntityMembership", "data": {"entity_field": "entity_id", "membership_type": 2}, "privileges": ["select", "insert", "delete"]}].
9709
+ * Defaults to '[]' (no policies — the junction table will have RLS enabled but no policies unless added separately).
9710
+ * Ignored for RelationBelongsTo/RelationHasOne/RelationHasMany.
9322
9711
  */
9323
- policyData?: unknown;
9712
+ policies?: unknown;
9324
9713
  /** Output column for RelationBelongsTo/RelationHasOne/RelationHasMany: the UUID of the FK field created (or found). For BelongsTo/HasOne this is on the source table; for HasMany this is on the target table. Populated by the trigger. NULL for RelationManyToMany. Callers should not set this directly. */
9325
9714
  outFieldId?: string;
9326
9715
  /** Output column for RelationManyToMany: the UUID of the junction table created (or found). Populated by the trigger. NULL for RelationBelongsTo/RelationHasOne. Callers should not set this directly. */
@@ -9330,6 +9719,106 @@ export interface RelationProvisionInput {
9330
9719
  /** Output column for RelationManyToMany: the UUID of the FK field on the junction table referencing the target table. Populated by the trigger. NULL for RelationBelongsTo/RelationHasOne. Callers should not set this directly. */
9331
9720
  outTargetFieldId?: string;
9332
9721
  }
9722
+ export interface CreateLevelsModuleInput {
9723
+ clientMutationId?: string;
9724
+ /** The `LevelsModule` to be created by this mutation. */
9725
+ levelsModule: LevelsModuleInput;
9726
+ }
9727
+ /** An input for mutations affecting `LevelsModule` */
9728
+ export interface LevelsModuleInput {
9729
+ id?: string;
9730
+ databaseId: string;
9731
+ schemaId?: string;
9732
+ privateSchemaId?: string;
9733
+ stepsTableId?: string;
9734
+ stepsTableName?: string;
9735
+ achievementsTableId?: string;
9736
+ achievementsTableName?: string;
9737
+ levelsTableId?: string;
9738
+ levelsTableName?: string;
9739
+ levelRequirementsTableId?: string;
9740
+ levelRequirementsTableName?: string;
9741
+ completedStep?: string;
9742
+ incompletedStep?: string;
9743
+ tgAchievement?: string;
9744
+ tgAchievementToggle?: string;
9745
+ tgAchievementToggleBoolean?: string;
9746
+ tgAchievementBoolean?: string;
9747
+ upsertAchievement?: string;
9748
+ tgUpdateAchievements?: string;
9749
+ stepsRequired?: string;
9750
+ levelAchieved?: string;
9751
+ prefix?: string;
9752
+ membershipType: number;
9753
+ entityTableId?: string;
9754
+ actorTableId?: string;
9755
+ }
9756
+ export interface CreateUserAuthModuleInput {
9757
+ clientMutationId?: string;
9758
+ /** The `UserAuthModule` to be created by this mutation. */
9759
+ userAuthModule: UserAuthModuleInput;
9760
+ }
9761
+ /** An input for mutations affecting `UserAuthModule` */
9762
+ export interface UserAuthModuleInput {
9763
+ id?: string;
9764
+ databaseId: string;
9765
+ schemaId?: string;
9766
+ emailsTableId?: string;
9767
+ usersTableId?: string;
9768
+ secretsTableId?: string;
9769
+ encryptedTableId?: string;
9770
+ sessionsTableId?: string;
9771
+ sessionCredentialsTableId?: string;
9772
+ auditsTableId?: string;
9773
+ auditsTableName?: string;
9774
+ signInFunction?: string;
9775
+ signUpFunction?: string;
9776
+ signOutFunction?: string;
9777
+ setPasswordFunction?: string;
9778
+ resetPasswordFunction?: string;
9779
+ forgotPasswordFunction?: string;
9780
+ sendVerificationEmailFunction?: string;
9781
+ verifyEmailFunction?: string;
9782
+ verifyPasswordFunction?: string;
9783
+ checkPasswordFunction?: string;
9784
+ sendAccountDeletionEmailFunction?: string;
9785
+ deleteAccountFunction?: string;
9786
+ signInCrossOriginFunction?: string;
9787
+ requestCrossOriginTokenFunction?: string;
9788
+ extendTokenExpires?: string;
9789
+ }
9790
+ export interface CreateFieldInput {
9791
+ clientMutationId?: string;
9792
+ /** The `Field` to be created by this mutation. */
9793
+ field: FieldInput;
9794
+ }
9795
+ /** An input for mutations affecting `Field` */
9796
+ export interface FieldInput {
9797
+ id?: string;
9798
+ databaseId?: string;
9799
+ tableId: string;
9800
+ name: string;
9801
+ label?: string;
9802
+ description?: string;
9803
+ smartTags?: unknown;
9804
+ isRequired?: boolean;
9805
+ apiRequired?: boolean;
9806
+ defaultValue?: string;
9807
+ defaultValueAst?: unknown;
9808
+ type: string;
9809
+ fieldOrder?: number;
9810
+ regexp?: string;
9811
+ chk?: unknown;
9812
+ chkExpr?: unknown;
9813
+ min?: number;
9814
+ max?: number;
9815
+ tags?: string[];
9816
+ category?: ObjectCategory;
9817
+ module?: string;
9818
+ scope?: number;
9819
+ createdAt?: string;
9820
+ updatedAt?: string;
9821
+ }
9333
9822
  export interface CreateMembershipsModuleInput {
9334
9823
  clientMutationId?: string;
9335
9824
  /** The `MembershipsModule` to be created by this mutation. */
@@ -9347,6 +9836,8 @@ export interface MembershipsModuleInput {
9347
9836
  membersTableName?: string;
9348
9837
  membershipDefaultsTableId?: string;
9349
9838
  membershipDefaultsTableName?: string;
9839
+ membershipSettingsTableId?: string;
9840
+ membershipSettingsTableName?: string;
9350
9841
  grantsTableId?: string;
9351
9842
  grantsTableName?: string;
9352
9843
  actorTableId?: string;
@@ -9649,6 +10140,22 @@ export interface ViewRulePatch {
9649
10140
  /** NOTHING (for read-only) or custom action */
9650
10141
  action?: string;
9651
10142
  }
10143
+ export interface UpdateIdentityProvidersModuleInput {
10144
+ clientMutationId?: string;
10145
+ id: string;
10146
+ /** An object where the defined keys will be set on the `IdentityProvidersModule` being updated. */
10147
+ identityProvidersModulePatch: IdentityProvidersModulePatch;
10148
+ }
10149
+ /** Represents an update to a `IdentityProvidersModule`. Fields that are set will be updated. */
10150
+ export interface IdentityProvidersModulePatch {
10151
+ id?: string;
10152
+ databaseId?: string;
10153
+ schemaId?: string;
10154
+ /** Private schema that hosts SECURITY DEFINER admin helpers which write to identity_providers (create / update / enable / disable / rotate-secret / delete) and the per-app quota check. */
10155
+ privateSchemaId?: string;
10156
+ tableId?: string;
10157
+ tableName?: string;
10158
+ }
9652
10159
  export interface UpdateSessionSecretsModuleInput {
9653
10160
  clientMutationId?: string;
9654
10161
  id: string;
@@ -9874,7 +10381,7 @@ export interface WebauthnCredentialsModulePatch {
9874
10381
  id?: string;
9875
10382
  databaseId?: string;
9876
10383
  schemaId?: string;
9877
- /** Reserved for future SECURITY DEFINER helpers on webauthn_credentials; unused in Phase 11a. */
10384
+ /** Private schema that hosts SECURITY DEFINER helpers which write to webauthn_credentials (registration / counter-bump / delete). */
9878
10385
  privateSchemaId?: string;
9879
10386
  tableId?: string;
9880
10387
  ownerTableId?: string;
@@ -9918,25 +10425,6 @@ export interface OrgOwnerGrantPatch {
9918
10425
  createdAt?: string;
9919
10426
  updatedAt?: string;
9920
10427
  }
9921
- export interface UpdateCryptoAddressInput {
9922
- clientMutationId?: string;
9923
- id: string;
9924
- /** An object where the defined keys will be set on the `CryptoAddress` being updated. */
9925
- cryptoAddressPatch: CryptoAddressPatch;
9926
- }
9927
- /** Represents an update to a `CryptoAddress`. Fields that are set will be updated. */
9928
- export interface CryptoAddressPatch {
9929
- id?: string;
9930
- ownerId?: string;
9931
- /** The cryptocurrency wallet address, validated against network-specific patterns */
9932
- address?: string;
9933
- /** Whether ownership of this address has been cryptographically verified */
9934
- isVerified?: boolean;
9935
- /** Whether this is the user's primary cryptocurrency address */
9936
- isPrimary?: boolean;
9937
- createdAt?: string;
9938
- updatedAt?: string;
9939
- }
9940
10428
  export interface UpdateObjectInput {
9941
10429
  clientMutationId?: string;
9942
10430
  id: string;
@@ -9988,24 +10476,24 @@ export interface CryptoAddressesModulePatch {
9988
10476
  tableName?: string;
9989
10477
  cryptoNetwork?: string;
9990
10478
  }
9991
- export interface UpdatePhoneNumberInput {
10479
+ export interface UpdateCryptoAddressInput {
9992
10480
  clientMutationId?: string;
9993
10481
  id: string;
9994
- /** An object where the defined keys will be set on the `PhoneNumber` being updated. */
9995
- phoneNumberPatch: PhoneNumberPatch;
10482
+ /** An object where the defined keys will be set on the `CryptoAddress` being updated. */
10483
+ cryptoAddressPatch: CryptoAddressPatch;
9996
10484
  }
9997
- /** Represents an update to a `PhoneNumber`. Fields that are set will be updated. */
9998
- export interface PhoneNumberPatch {
10485
+ /** Represents an update to a `CryptoAddress`. Fields that are set will be updated. */
10486
+ export interface CryptoAddressPatch {
9999
10487
  id?: string;
10000
10488
  ownerId?: string;
10001
- /** Country calling code (e.g. +1, +44) */
10002
- cc?: string;
10003
- /** The phone number without country code */
10004
- number?: string;
10005
- /** Whether the phone number has been verified via SMS code */
10489
+ /** The cryptocurrency wallet address, validated against network-specific patterns */
10490
+ address?: string;
10491
+ /** Whether ownership of this address has been cryptographically verified */
10006
10492
  isVerified?: boolean;
10007
- /** Whether this is the user's primary phone number */
10493
+ /** Whether this is the user's primary cryptocurrency address */
10008
10494
  isPrimary?: boolean;
10495
+ /** Optional user-provided label for this address (e.g. "Main wallet", "Hardware wallet"). */
10496
+ name?: string;
10009
10497
  createdAt?: string;
10010
10498
  updatedAt?: string;
10011
10499
  }
@@ -10157,6 +10645,24 @@ export interface AppMembershipDefaultPatch {
10157
10645
  /** Whether new members are automatically verified upon joining */
10158
10646
  isVerified?: boolean;
10159
10647
  }
10648
+ export interface UpdateOrgMembershipDefaultInput {
10649
+ clientMutationId?: string;
10650
+ id: string;
10651
+ /** An object where the defined keys will be set on the `OrgMembershipDefault` being updated. */
10652
+ orgMembershipDefaultPatch: OrgMembershipDefaultPatch;
10653
+ }
10654
+ /** Represents an update to a `OrgMembershipDefault`. Fields that are set will be updated. */
10655
+ export interface OrgMembershipDefaultPatch {
10656
+ id?: string;
10657
+ createdAt?: string;
10658
+ updatedAt?: string;
10659
+ createdBy?: string;
10660
+ updatedBy?: string;
10661
+ /** Whether new members are automatically approved upon joining */
10662
+ isApproved?: boolean;
10663
+ /** References the entity these membership defaults apply to */
10664
+ entityId?: string;
10665
+ }
10160
10666
  export interface UpdateFullTextSearchInput {
10161
10667
  clientMutationId?: string;
10162
10668
  id: string;
@@ -10265,6 +10771,29 @@ export interface OrgChartEdgeGrantPatch {
10265
10771
  /** Timestamp when this grant or revocation was recorded */
10266
10772
  createdAt?: string;
10267
10773
  }
10774
+ export interface UpdatePhoneNumberInput {
10775
+ clientMutationId?: string;
10776
+ id: string;
10777
+ /** An object where the defined keys will be set on the `PhoneNumber` being updated. */
10778
+ phoneNumberPatch: PhoneNumberPatch;
10779
+ }
10780
+ /** Represents an update to a `PhoneNumber`. Fields that are set will be updated. */
10781
+ export interface PhoneNumberPatch {
10782
+ id?: string;
10783
+ ownerId?: string;
10784
+ /** Country calling code (e.g. +1, +44) */
10785
+ cc?: string;
10786
+ /** The phone number without country code */
10787
+ number?: string;
10788
+ /** Whether the phone number has been verified via SMS code */
10789
+ isVerified?: boolean;
10790
+ /** Whether this is the user's primary phone number */
10791
+ isPrimary?: boolean;
10792
+ /** Optional user-provided label for this phone number (e.g. "Mobile", "Work"). */
10793
+ name?: string;
10794
+ createdAt?: string;
10795
+ updatedAt?: string;
10796
+ }
10268
10797
  export interface UpdateOrgLimitInput {
10269
10798
  clientMutationId?: string;
10270
10799
  id: string;
@@ -10403,33 +10932,11 @@ export interface OrgGrantPatch {
10403
10932
  isGrant?: boolean;
10404
10933
  /** The member receiving or losing the permission grant */
10405
10934
  actorId?: string;
10406
- /** The entity (org or group) this permission grant applies to */
10407
- entityId?: string;
10408
- grantorId?: string;
10409
- createdAt?: string;
10410
- updatedAt?: string;
10411
- }
10412
- export interface UpdateOrgMembershipDefaultInput {
10413
- clientMutationId?: string;
10414
- id: string;
10415
- /** An object where the defined keys will be set on the `OrgMembershipDefault` being updated. */
10416
- orgMembershipDefaultPatch: OrgMembershipDefaultPatch;
10417
- }
10418
- /** Represents an update to a `OrgMembershipDefault`. Fields that are set will be updated. */
10419
- export interface OrgMembershipDefaultPatch {
10420
- id?: string;
10935
+ /** The entity (org or group) this permission grant applies to */
10936
+ entityId?: string;
10937
+ grantorId?: string;
10421
10938
  createdAt?: string;
10422
10939
  updatedAt?: string;
10423
- createdBy?: string;
10424
- updatedBy?: string;
10425
- /** Whether new members are automatically approved upon joining */
10426
- isApproved?: boolean;
10427
- /** References the entity these membership defaults apply to */
10428
- entityId?: string;
10429
- /** When an org member is deleted, whether to cascade-remove their group memberships */
10430
- deleteMemberCascadeGroups?: boolean;
10431
- /** When a group is created, whether to auto-add existing org members as group members */
10432
- createGroupsCascadeMembers?: boolean;
10433
10940
  }
10434
10941
  export interface UpdateBlueprintConstructionInput {
10435
10942
  clientMutationId?: string;
@@ -10571,25 +11078,6 @@ export interface AppLevelPatch {
10571
11078
  /** Upload for Badge or icon image associated with this level */
10572
11079
  imageUpload?: File;
10573
11080
  }
10574
- export interface UpdateEmailInput {
10575
- clientMutationId?: string;
10576
- id: string;
10577
- /** An object where the defined keys will be set on the `Email` being updated. */
10578
- emailPatch: EmailPatch;
10579
- }
10580
- /** Represents an update to a `Email`. Fields that are set will be updated. */
10581
- export interface EmailPatch {
10582
- id?: string;
10583
- ownerId?: string;
10584
- /** The email address */
10585
- email?: ConstructiveInternalTypeEmail;
10586
- /** Whether the email address has been verified via confirmation link */
10587
- isVerified?: boolean;
10588
- /** Whether this is the user's primary email address */
10589
- isPrimary?: boolean;
10590
- createdAt?: string;
10591
- updatedAt?: string;
10592
- }
10593
11081
  export interface UpdateBlueprintInput {
10594
11082
  clientMutationId?: string;
10595
11083
  /** Unique identifier for this blueprint. */
@@ -10645,6 +11133,48 @@ export interface DenormalizedTableFieldPatch {
10645
11133
  funcName?: string;
10646
11134
  funcOrder?: number;
10647
11135
  }
11136
+ export interface UpdateNotificationsModuleInput {
11137
+ clientMutationId?: string;
11138
+ id: string;
11139
+ /** An object where the defined keys will be set on the `NotificationsModule` being updated. */
11140
+ notificationsModulePatch: NotificationsModulePatch;
11141
+ }
11142
+ /** Represents an update to a `NotificationsModule`. Fields that are set will be updated. */
11143
+ export interface NotificationsModulePatch {
11144
+ id?: string;
11145
+ databaseId?: string;
11146
+ schemaId?: string;
11147
+ privateSchemaId?: string;
11148
+ notificationsTableId?: string;
11149
+ eventsTableId?: string;
11150
+ preferencesTableId?: string;
11151
+ channelsTableId?: string;
11152
+ deliveryLogTableId?: string;
11153
+ ownerTableId?: string;
11154
+ userSettingsTableId?: string;
11155
+ organizationSettingsTableId?: string;
11156
+ }
11157
+ export interface UpdateEmailInput {
11158
+ clientMutationId?: string;
11159
+ id: string;
11160
+ /** An object where the defined keys will be set on the `Email` being updated. */
11161
+ emailPatch: EmailPatch;
11162
+ }
11163
+ /** Represents an update to a `Email`. Fields that are set will be updated. */
11164
+ export interface EmailPatch {
11165
+ id?: string;
11166
+ ownerId?: string;
11167
+ /** The email address */
11168
+ email?: ConstructiveInternalTypeEmail;
11169
+ /** Whether the email address has been verified via confirmation link */
11170
+ isVerified?: boolean;
11171
+ /** Whether this is the user's primary email address */
11172
+ isPrimary?: boolean;
11173
+ /** Optional user-provided label for this email (e.g. "Work", "Personal"). */
11174
+ name?: string;
11175
+ createdAt?: string;
11176
+ updatedAt?: string;
11177
+ }
10648
11178
  export interface UpdateOrgMemberProfileInput {
10649
11179
  clientMutationId?: string;
10650
11180
  id: string;
@@ -10675,6 +11205,66 @@ export interface OrgMemberProfilePatch {
10675
11205
  /** Upload for Profile picture visible to other entity members */
10676
11206
  profilePictureUpload?: File;
10677
11207
  }
11208
+ export interface UpdateSecureTableProvisionInput {
11209
+ clientMutationId?: string;
11210
+ /** Unique identifier for this provision row. */
11211
+ id: string;
11212
+ /** An object where the defined keys will be set on the `SecureTableProvision` being updated. */
11213
+ secureTableProvisionPatch: SecureTableProvisionPatch;
11214
+ }
11215
+ /** Represents an update to a `SecureTableProvision`. Fields that are set will be updated. */
11216
+ export interface SecureTableProvisionPatch {
11217
+ /** Unique identifier for this provision row. */
11218
+ id?: string;
11219
+ /** The database this provision belongs to. Required. */
11220
+ databaseId?: string;
11221
+ /** Target schema for the table. Defaults to uuid_nil(); the trigger resolves this to the app_public schema if not explicitly provided. */
11222
+ schemaId?: string;
11223
+ /** Target table to provision. Defaults to uuid_nil(); the trigger creates or resolves the table via table_name if not explicitly provided. */
11224
+ tableId?: string;
11225
+ /** Name of the target table. Used to create or look up the table when table_id is not provided. If omitted, it is backfilled from the resolved table. */
11226
+ tableName?: string;
11227
+ /** Array of node objects to apply to the table. Each element is a jsonb object with a required "$type" key (one of: DataId, DataDirectOwner, DataEntityMembership, DataOwnershipInEntity, DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete, DataEmbedding, DataFullTextSearch, DataSlug, etc.) and an optional "data" key containing generator-specific configuration. Supports multiple nodes per row, matching the blueprint definition format. Example: [{"$type": "DataId"}, {"$type": "DataTimestamps"}, {"$type": "DataDirectOwner", "data": {"owner_field_name": "author_id"}}]. Defaults to '[]' (no node processing). */
11228
+ nodes?: unknown;
11229
+ /** If true and Row Level Security is not yet enabled on the target table, enable it. Automatically set to true by the trigger when policies[] is non-empty. Defaults to true. */
11230
+ useRls?: boolean;
11231
+ /** PostgreSQL array of jsonb field definition objects to create on the target table. Each object has keys: "name" (text, required), "type" (text, required), "default" (text, optional), "is_required" (boolean, optional, defaults to false), "min" (float, optional), "max" (float, optional), "regexp" (text, optional), "index" (boolean, optional, defaults to false — creates a btree index on the field). min/max generate CHECK constraints: for text/citext they constrain character_length, for integer/float types they constrain the value. regexp generates a CHECK (col ~ pattern) constraint for text/citext. Fields are created via metaschema.create_field() after any node_type generator runs, and their IDs are appended to out_fields. Example: ARRAY['{"name":"username","type":"citext","max":256,"regexp":"^[a-z0-9_]+$"}'::jsonb, '{"name":"score","type":"integer","min":0,"max":100}'::jsonb]. Defaults to '{}' (no additional fields). */
11232
+ fields?: unknown[];
11233
+ /** Array of grant objects defining table privileges. Each element is a jsonb object with keys: "roles" (text[], required — database roles to grant to, e.g. ["authenticated","admin"]), "privileges" (jsonb[], required — array of [privilege, columns] tuples, e.g. [["select","*"],["insert","*"]]). "*" means all columns; an array means column-level grant. Supports per-role privilege targeting: different grant entries can target different roles with different privileges. Example: [{"roles":["authenticated"],"privileges":[["select","*"]]},{"roles":["admin"],"privileges":[["insert","*"],["update","*"],["delete","*"]]}]. Defaults to '[]' (no grants). When policies[] omit explicit privileges/policy_role, they fall back to the verbs and first role from grants[]. */
11234
+ grants?: unknown;
11235
+ /** Array of policy objects to create on the target table. Each element is a jsonb object with keys: "$type" (text, required — the Authz* policy generator type, e.g. AuthzEntityMembership, AuthzMembership, AuthzDirectOwner, AuthzPublishable, AuthzAllowAll), "data" (jsonb, optional — opaque configuration passed to metaschema.create_policy(), structure varies by type), "privileges" (text[], optional — privileges the policy applies to, e.g. ["select","insert"]; if omitted, derived from grants[] privilege verbs), "policy_role" (text, optional — role the policy targets; if omitted, falls back to first role in first grants[] entry, or 'authenticated' if no grants), "permissive" (boolean, optional — PERMISSIVE or RESTRICTIVE; defaults to true), "policy_name" (text, optional — custom suffix for the generated policy name; if omitted, auto-derived from $type by stripping Authz prefix). Supports multiple policies per row. Example: [{"$type": "AuthzEntityMembership", "data": {"entity_field": "owner_id", "membership_type": 3}, "privileges": ["select", "insert"]}, {"$type": "AuthzDirectOwner", "data": {"entity_field": "actor_id"}, "privileges": ["update", "delete"]}]. Defaults to '[]' (no policies created). When non-empty, the trigger automatically enables RLS. */
11236
+ policies?: unknown;
11237
+ /** Output column populated by the trigger after field creation. Contains the UUIDs of the metaschema fields created on the target table by this provision row's nodes. NULL when nodes is empty or before the trigger runs. Callers should not set this directly. */
11238
+ outFields?: string[];
11239
+ }
11240
+ export interface UpdateOrgMembershipSettingInput {
11241
+ clientMutationId?: string;
11242
+ id: string;
11243
+ /** An object where the defined keys will be set on the `OrgMembershipSetting` being updated. */
11244
+ orgMembershipSettingPatch: OrgMembershipSettingPatch;
11245
+ }
11246
+ /** Represents an update to a `OrgMembershipSetting`. Fields that are set will be updated. */
11247
+ export interface OrgMembershipSettingPatch {
11248
+ id?: string;
11249
+ createdAt?: string;
11250
+ updatedAt?: string;
11251
+ createdBy?: string;
11252
+ updatedBy?: string;
11253
+ /** References the entity these settings apply to */
11254
+ entityId?: string;
11255
+ /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */
11256
+ deleteMemberCascadeChildren?: boolean;
11257
+ /** When a child entity is created, whether to auto-add existing org-level owners as child-entity owners */
11258
+ createChildCascadeOwners?: boolean;
11259
+ /** When a child entity is created, whether to auto-add existing org-level admins as child-entity admins */
11260
+ createChildCascadeAdmins?: boolean;
11261
+ /** When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members */
11262
+ createChildCascadeMembers?: boolean;
11263
+ /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */
11264
+ allowExternalMembers?: boolean;
11265
+ /** Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. */
11266
+ populateMemberEmail?: boolean;
11267
+ }
10678
11268
  export interface UpdateDatabaseTransferInput {
10679
11269
  clientMutationId?: string;
10680
11270
  id: string;
@@ -10840,6 +11430,31 @@ export interface ViewPatch {
10840
11430
  scope?: number;
10841
11431
  tags?: string[];
10842
11432
  }
11433
+ export interface UpdateWebauthnAuthModuleInput {
11434
+ clientMutationId?: string;
11435
+ id: string;
11436
+ /** An object where the defined keys will be set on the `WebauthnAuthModule` being updated. */
11437
+ webauthnAuthModulePatch: WebauthnAuthModulePatch;
11438
+ }
11439
+ /** Represents an update to a `WebauthnAuthModule`. Fields that are set will be updated. */
11440
+ export interface WebauthnAuthModulePatch {
11441
+ id?: string;
11442
+ databaseId?: string;
11443
+ schemaId?: string;
11444
+ usersTableId?: string;
11445
+ credentialsTableId?: string;
11446
+ sessionsTableId?: string;
11447
+ sessionCredentialsTableId?: string;
11448
+ sessionSecretsTableId?: string;
11449
+ authSettingsTableId?: string;
11450
+ rpId?: string;
11451
+ rpName?: string;
11452
+ originAllowlist?: string[];
11453
+ attestationType?: string;
11454
+ requireUserVerification?: boolean;
11455
+ residentKey?: string;
11456
+ challengeExpiry?: IntervalInput;
11457
+ }
10843
11458
  export interface UpdateAppInput {
10844
11459
  clientMutationId?: string;
10845
11460
  /** Unique identifier for this app */
@@ -11026,159 +11641,25 @@ export interface UpdatePolicyInput {
11026
11641
  /** An object where the defined keys will be set on the `Policy` being updated. */
11027
11642
  policyPatch: PolicyPatch;
11028
11643
  }
11029
- /** Represents an update to a `Policy`. Fields that are set will be updated. */
11030
- export interface PolicyPatch {
11031
- id?: string;
11032
- databaseId?: string;
11033
- tableId?: string;
11034
- name?: string;
11035
- granteeName?: string;
11036
- privilege?: string;
11037
- permissive?: boolean;
11038
- disabled?: boolean;
11039
- policyType?: string;
11040
- data?: unknown;
11041
- smartTags?: unknown;
11042
- category?: ObjectCategory;
11043
- module?: string;
11044
- scope?: number;
11045
- tags?: string[];
11046
- createdAt?: string;
11047
- updatedAt?: string;
11048
- }
11049
- export interface UpdateEntityTypeProvisionInput {
11050
- clientMutationId?: string;
11051
- /** Unique identifier for this provision row. */
11052
- id: string;
11053
- /** An object where the defined keys will be set on the `EntityTypeProvision` being updated. */
11054
- entityTypeProvisionPatch: EntityTypeProvisionPatch;
11055
- }
11056
- /** Represents an update to a `EntityTypeProvision`. Fields that are set will be updated. */
11057
- export interface EntityTypeProvisionPatch {
11058
- /** Unique identifier for this provision row. */
11059
- id?: string;
11060
- /** The database to provision this entity type in. Required. */
11061
- databaseId?: string;
11062
- /**
11063
- * Human-readable name for this membership type, e.g. 'Data Room Member', 'Team Channel Member'. Required.
11064
- * Stored in the membership_types registry table.
11065
- */
11066
- name?: string;
11067
- /**
11068
- * SQL prefix used for table and module naming, e.g. 'data_room', 'team_channel'. Required.
11069
- * Drives entity table name (prefix || 's' by default), module labels (permissions_module:prefix),
11070
- * and membership table names (prefix_memberships, prefix_members, etc.).
11071
- * Must be unique per database — the (database_id, prefix) constraint ensures graceful ON CONFLICT DO NOTHING.
11072
- */
11073
- prefix?: string;
11074
- /** Description of this membership type. Stored in the membership_types registry table. Defaults to empty string. */
11075
- description?: string;
11076
- /**
11077
- * Prefix of the parent entity type. The trigger resolves this to a membership_type integer
11078
- * by looking up memberships_module WHERE prefix = parent_entity.
11079
- * Defaults to 'org' (the organization-level type). For nested types, set to the parent's prefix
11080
- * (e.g. 'data_room' for a team_channel nested under data_room).
11081
- * The parent type must already be provisioned before this INSERT.
11082
- */
11083
- parentEntity?: string;
11084
- /**
11085
- * Override the entity table name. When NULL (default), the table name is derived as prefix || 's'
11086
- * (e.g. prefix 'data_room' produces table 'data_rooms').
11087
- * Set this when the pluralization rule doesn't apply (e.g. prefix 'staff' should produce 'staff' not 'staffs').
11088
- */
11089
- tableName?: string;
11090
- /**
11091
- * Whether members of the parent entity can see child entities. Defaults to true.
11092
- * When true: a SELECT policy allows parent members to list child entities (e.g. org members can see all data rooms).
11093
- * When false: only direct members of the entity itself can see it (private entity mode).
11094
- * Controls whether the parent_member SELECT policy is created on the entity table.
11095
- * Only meaningful on the defaults path — ignored (no-op) when table_provision is non-NULL or
11096
- * skip_entity_policies=true, since no default policies are being applied in those cases.
11097
- */
11098
- isVisible?: boolean;
11099
- /**
11100
- * Whether to apply limits_module security for this type. Defaults to false.
11101
- * The limits_module table structure is always created (memberships_module requires it),
11102
- * but when false, no RLS policies are applied to the limits tables.
11103
- * Set to true if this entity type needs configurable resource limits per membership.
11104
- */
11105
- hasLimits?: boolean;
11106
- /**
11107
- * Whether to provision profiles_module for this type. Defaults to false.
11108
- * Profiles provide named permission roles (e.g. 'Editor', 'Viewer') with pre-configured permission bitmasks.
11109
- * When true, creates profile tables and applies profiles security.
11110
- */
11111
- hasProfiles?: boolean;
11112
- /**
11113
- * Whether to provision levels_module for this type. Defaults to false.
11114
- * Levels provide gamification/achievement tracking for members.
11115
- * When true, creates level steps, achievements, and level tables with security.
11116
- */
11117
- hasLevels?: boolean;
11118
- /**
11119
- * Escape hatch: when true, apply zero RLS policies to the entity table. Defaults to false.
11120
- * Use this only when you want the entity table provisioned with zero policies (e.g. because you
11121
- * plan to insert secure_table_provision rows yourself later). In most cases, prefer leaving this
11122
- * false and either accepting the five defaults (table_provision=NULL) or overriding them via
11123
- * table_provision.
11124
- * Defaults (applied when table_provision IS NULL and skip_entity_policies=false):
11125
- * - SELECT (parent_member): parent entity members can see child entities (only when is_visible=true)
11126
- * - SELECT (self_member): direct members of the entity can see it
11127
- * - INSERT: create_entity permission on the parent entity
11128
- * - UPDATE: admin_entity permission on the entity itself
11129
- * - DELETE: owner of the entity can delete it
11130
- */
11131
- skipEntityPolicies?: boolean;
11132
- /**
11133
- * Single jsonb object describing the full security setup to apply to the entity table.
11134
- * Uses the same vocabulary as metaschema_modules_public.provision_table() and blueprint tables[]
11135
- * entries, so an entity table is configured the same way an ordinary blueprint table is.
11136
- * Defaults to NULL; when non-NULL, the five default policies are implicitly replaced by
11137
- * table_provision.policies[] (is_visible becomes a no-op on this path).
11138
- * Recognized keys (all optional):
11139
- * - use_rls (boolean, default true)
11140
- * - nodes (jsonb array of {"$type","data"} Data* module entries)
11141
- * - fields (jsonb array of field objects: name,type,is_required,default,min,max,regexp,index)
11142
- * - grant_privileges (jsonb array of [privilege, columns] tuples)
11143
- * - grant_roles (jsonb array of role names; defaults to ["authenticated"])
11144
- * - policies (jsonb array of policy objects; each with $type, privileges, data, name, role, permissive)
11145
- * The trigger fans policies[] into N secure_table_provision rows against the newly created entity table,
11146
- * with table-level setup (nodes/fields/grants) attached to the first row.
11147
- * Example — override with two SELECT policies:
11148
- * table_provision := jsonb_build_object(
11149
- * 'policies', jsonb_build_array(
11150
- * jsonb_build_object(
11151
- * '$type', 'AuthzEntityMembership',
11152
- * 'privileges', jsonb_build_array('select'),
11153
- * 'data', jsonb_build_object('entity_field', 'id', 'membership_type', 3),
11154
- * 'name', 'self_member'
11155
- * ),
11156
- * jsonb_build_object(
11157
- * '$type', 'AuthzDirectOwner',
11158
- * 'privileges', jsonb_build_array('select', 'update'),
11159
- * 'data', jsonb_build_object('owner_field', 'owner_id')
11160
- * )
11161
- * )
11162
- * )
11163
- */
11164
- tableProvision?: unknown;
11165
- /**
11166
- * Output: the auto-assigned integer membership type ID. Populated by the trigger after successful provisioning.
11167
- * This is the ID used in membership_types, memberships_module, and all module tables.
11168
- */
11169
- outMembershipType?: number;
11170
- /**
11171
- * Output: the UUID of the created entity table. Populated by the trigger.
11172
- * Use this to reference the entity table in subsequent relation_provision or secure_table_provision rows.
11173
- */
11174
- outEntityTableId?: string;
11175
- /** Output: the name of the created entity table (e.g. 'data_rooms'). Populated by the trigger. */
11176
- outEntityTableName?: string;
11177
- /**
11178
- * Output: array of installed module labels (e.g. ARRAY['permissions_module:data_room', 'memberships_module:data_room', 'invites_module:data_room']).
11179
- * Populated by the trigger. Useful for verifying which modules were provisioned.
11180
- */
11181
- outInstalledModules?: string[];
11644
+ /** Represents an update to a `Policy`. Fields that are set will be updated. */
11645
+ export interface PolicyPatch {
11646
+ id?: string;
11647
+ databaseId?: string;
11648
+ tableId?: string;
11649
+ name?: string;
11650
+ granteeName?: string;
11651
+ privilege?: string;
11652
+ permissive?: boolean;
11653
+ disabled?: boolean;
11654
+ policyType?: string;
11655
+ data?: unknown;
11656
+ smartTags?: unknown;
11657
+ category?: ObjectCategory;
11658
+ module?: string;
11659
+ scope?: number;
11660
+ tags?: string[];
11661
+ createdAt?: string;
11662
+ updatedAt?: string;
11182
11663
  }
11183
11664
  export interface UpdatePermissionsModuleInput {
11184
11665
  clientMutationId?: string;
@@ -11405,6 +11886,39 @@ export interface IndexPatch {
11405
11886
  createdAt?: string;
11406
11887
  updatedAt?: string;
11407
11888
  }
11889
+ export interface UpdateWebauthnCredentialInput {
11890
+ clientMutationId?: string;
11891
+ id: string;
11892
+ /** An object where the defined keys will be set on the `WebauthnCredential` being updated. */
11893
+ webauthnCredentialPatch: WebauthnCredentialPatch;
11894
+ }
11895
+ /** Represents an update to a `WebauthnCredential`. Fields that are set will be updated. */
11896
+ export interface WebauthnCredentialPatch {
11897
+ id?: string;
11898
+ ownerId?: string;
11899
+ /** Base64url-encoded credential ID returned by the authenticator. Globally unique per WebAuthn spec. */
11900
+ credentialId?: string;
11901
+ /** COSE-encoded public key bytes from the authenticator attestation. */
11902
+ publicKey?: Base64EncodedBinary;
11903
+ /** Monotonic signature counter. Strict-increase check during sign-in detects cloned credentials. 0 means the authenticator does not implement a counter. */
11904
+ signCount?: string;
11905
+ /** Random per-user handle sent to authenticators as user.id. Privacy-preserving; NOT the internal user UUID. */
11906
+ webauthnUserId?: string;
11907
+ /** Authenticator transport hints (e.g. usb, nfc, ble, internal, hybrid). Used to hint browser UI during sign-in. */
11908
+ transports?: string[];
11909
+ /** Either 'singleDevice' (hardware-bound) or 'multiDevice' (synced passkey). Enforced by CHECK constraint below. */
11910
+ credentialDeviceType?: string;
11911
+ /** Whether this credential is eligible for backup (syncing) per the authenticator's flags at registration. */
11912
+ backupEligible?: boolean;
11913
+ /** Current backup state; updated on each successful sign-in assertion. */
11914
+ backupState?: boolean;
11915
+ /** User-provided label for this credential (e.g. "YubiKey 5C", "iPhone 15"). Renamed via rename_passkey. */
11916
+ name?: string;
11917
+ /** Timestamp of the most recent successful sign-in assertion using this credential. */
11918
+ lastUsedAt?: string;
11919
+ createdAt?: string;
11920
+ updatedAt?: string;
11921
+ }
11408
11922
  export interface UpdateOrgInviteInput {
11409
11923
  clientMutationId?: string;
11410
11924
  id: string;
@@ -11438,50 +11952,6 @@ export interface OrgInvitePatch {
11438
11952
  updatedAt?: string;
11439
11953
  entityId?: string;
11440
11954
  }
11441
- export interface UpdateSecureTableProvisionInput {
11442
- clientMutationId?: string;
11443
- /** Unique identifier for this provision row. */
11444
- id: string;
11445
- /** An object where the defined keys will be set on the `SecureTableProvision` being updated. */
11446
- secureTableProvisionPatch: SecureTableProvisionPatch;
11447
- }
11448
- /** Represents an update to a `SecureTableProvision`. Fields that are set will be updated. */
11449
- export interface SecureTableProvisionPatch {
11450
- /** Unique identifier for this provision row. */
11451
- id?: string;
11452
- /** The database this provision belongs to. Required. */
11453
- databaseId?: string;
11454
- /** Target schema for the table. Defaults to uuid_nil(); the trigger resolves this to the app_public schema if not explicitly provided. */
11455
- schemaId?: string;
11456
- /** Target table to provision. Defaults to uuid_nil(); the trigger creates or resolves the table via table_name if not explicitly provided. */
11457
- tableId?: string;
11458
- /** Name of the target table. Used to create or look up the table when table_id is not provided. If omitted, it is backfilled from the resolved table. */
11459
- tableName?: string;
11460
- /** Array of node objects to apply to the table. Each element is a jsonb object with a required "$type" key (one of: DataId, DataDirectOwner, DataEntityMembership, DataOwnershipInEntity, DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete, DataEmbedding, DataFullTextSearch, DataSlug, etc.) and an optional "data" key containing generator-specific configuration. Supports multiple nodes per row, matching the blueprint definition format. Example: [{"$type": "DataId"}, {"$type": "DataTimestamps"}, {"$type": "DataDirectOwner", "data": {"owner_field_name": "author_id"}}]. Defaults to '[]' (no node processing). */
11461
- nodes?: unknown;
11462
- /** If true and Row Level Security is not yet enabled on the target table, enable it. Automatically set to true by the trigger when policy_type is provided. Defaults to true. */
11463
- useRls?: boolean;
11464
- /** PostgreSQL array of jsonb field definition objects to create on the target table. Each object has keys: "name" (text, required), "type" (text, required), "default" (text, optional), "is_required" (boolean, optional, defaults to false), "min" (float, optional), "max" (float, optional), "regexp" (text, optional), "index" (boolean, optional, defaults to false — creates a btree index on the field). min/max generate CHECK constraints: for text/citext they constrain character_length, for integer/float types they constrain the value. regexp generates a CHECK (col ~ pattern) constraint for text/citext. Fields are created via metaschema.create_field() after any node_type generator runs, and their IDs are appended to out_fields. Example: ARRAY['{"name":"username","type":"citext","max":256,"regexp":"^[a-z0-9_]+$"}'::jsonb, '{"name":"score","type":"integer","min":0,"max":100}'::jsonb]. Defaults to '{}' (no additional fields). */
11465
- fields?: unknown[];
11466
- /** Database roles to grant privileges to. Supports multiple roles, e.g. ARRAY['authenticated', 'admin']. Each role receives all privileges defined in grant_privileges. Defaults to ARRAY['authenticated']. */
11467
- grantRoles?: string[];
11468
- /** PostgreSQL array of jsonb [privilege, columns] tuples defining table grants. Examples: ARRAY['["select","*"]'::jsonb, '["insert","*"]'::jsonb] for full access, or ARRAY['["update",["name","bio"]]'::jsonb] for column-level grants. "*" means all columns; an array means column-level grant. Defaults to '{}' (no grants — callers must explicitly specify privileges). Type safety is enforced by PostgreSQL at INSERT time. */
11469
- grantPrivileges?: unknown[];
11470
- /** Policy generator type, e.g. 'AuthzEntityMembership', 'AuthzMembership', 'AuthzAllowAll'. NULL means no policy is created. When set, the trigger automatically enables RLS on the target table. */
11471
- policyType?: string;
11472
- /** Privileges the policy applies to, e.g. ARRAY['select','update']. NULL means privileges are derived from the grant_privileges verbs. */
11473
- policyPrivileges?: string[];
11474
- /** Role the policy targets. NULL means it falls back to the first role in grant_roles. */
11475
- policyRole?: string;
11476
- /** Whether the policy is PERMISSIVE (true) or RESTRICTIVE (false). Defaults to true. */
11477
- policyPermissive?: boolean;
11478
- /** Custom suffix for the generated policy name. When NULL and policy_type is set, the trigger auto-derives a suffix from policy_type by stripping the Authz prefix and underscoring the remainder (e.g. AuthzDirectOwner becomes direct_owner, producing policy names like auth_sel_direct_owner). When explicitly set, the value is passed through as-is to metaschema.create_policy name parameter. This ensures multiple policies on the same table do not collide (e.g. AuthzDirectOwner + AuthzPublishable each get unique names). */
11479
- policyName?: string;
11480
- /** Opaque configuration passed through to metaschema.create_policy(). Structure varies by policy_type and is not interpreted by this trigger. Defaults to '{}'. */
11481
- policyData?: unknown;
11482
- /** Output column populated by the trigger after field creation. Contains the UUIDs of the metaschema fields created on the target table by this provision row's nodes. NULL when nodes is empty or before the trigger runs. Callers should not set this directly. */
11483
- outFields?: string[];
11484
- }
11485
11955
  export interface UpdateOrgMembershipInput {
11486
11956
  clientMutationId?: string;
11487
11957
  id: string;
@@ -11627,163 +12097,228 @@ export interface ForeignKeyConstraintPatch {
11627
12097
  createdAt?: string;
11628
12098
  updatedAt?: string;
11629
12099
  }
11630
- export interface UpdateStorageModuleInput {
11631
- clientMutationId?: string;
11632
- id: string;
11633
- /** An object where the defined keys will be set on the `StorageModule` being updated. */
11634
- storageModulePatch: StorageModulePatch;
11635
- }
11636
- /** Represents an update to a `StorageModule`. Fields that are set will be updated. */
11637
- export interface StorageModulePatch {
11638
- id?: string;
11639
- databaseId?: string;
11640
- schemaId?: string;
11641
- privateSchemaId?: string;
11642
- bucketsTableId?: string;
11643
- filesTableId?: string;
11644
- uploadRequestsTableId?: string;
11645
- bucketsTableName?: string;
11646
- filesTableName?: string;
11647
- uploadRequestsTableName?: string;
11648
- entityTableId?: string;
11649
- endpoint?: string;
11650
- publicUrlPrefix?: string;
11651
- provider?: string;
11652
- allowedOrigins?: string[];
11653
- uploadUrlExpirySeconds?: number;
11654
- downloadUrlExpirySeconds?: number;
11655
- defaultMaxFileSize?: string;
11656
- maxFilenameLength?: number;
11657
- cacheTtlSeconds?: number;
11658
- }
11659
- export interface UpdateTableInput {
12100
+ export interface UpdateEntityTypeProvisionInput {
11660
12101
  clientMutationId?: string;
12102
+ /** Unique identifier for this provision row. */
11661
12103
  id: string;
11662
- /** An object where the defined keys will be set on the `Table` being updated. */
11663
- tablePatch: TablePatch;
12104
+ /** An object where the defined keys will be set on the `EntityTypeProvision` being updated. */
12105
+ entityTypeProvisionPatch: EntityTypeProvisionPatch;
11664
12106
  }
11665
- /** Represents an update to a `Table`. Fields that are set will be updated. */
11666
- export interface TablePatch {
12107
+ /** Represents an update to a `EntityTypeProvision`. Fields that are set will be updated. */
12108
+ export interface EntityTypeProvisionPatch {
12109
+ /** Unique identifier for this provision row. */
11667
12110
  id?: string;
12111
+ /** The database to provision this entity type in. Required. */
11668
12112
  databaseId?: string;
11669
- schemaId?: string;
12113
+ /**
12114
+ * Human-readable name for this membership type, e.g. 'Data Room Member', 'Team Channel Member'. Required.
12115
+ * Stored in the membership_types registry table.
12116
+ */
11670
12117
  name?: string;
11671
- label?: string;
11672
- description?: string;
11673
- smartTags?: unknown;
11674
- category?: ObjectCategory;
11675
- module?: string;
11676
- scope?: number;
11677
- useRls?: boolean;
11678
- timestamps?: boolean;
11679
- peoplestamps?: boolean;
11680
- pluralName?: string;
11681
- singularName?: string;
11682
- tags?: string[];
11683
- inheritsId?: string;
11684
- createdAt?: string;
11685
- updatedAt?: string;
11686
- }
11687
- export interface UpdateLevelsModuleInput {
11688
- clientMutationId?: string;
11689
- id: string;
11690
- /** An object where the defined keys will be set on the `LevelsModule` being updated. */
11691
- levelsModulePatch: LevelsModulePatch;
11692
- }
11693
- /** Represents an update to a `LevelsModule`. Fields that are set will be updated. */
11694
- export interface LevelsModulePatch {
11695
- id?: string;
11696
- databaseId?: string;
11697
- schemaId?: string;
11698
- privateSchemaId?: string;
11699
- stepsTableId?: string;
11700
- stepsTableName?: string;
11701
- achievementsTableId?: string;
11702
- achievementsTableName?: string;
11703
- levelsTableId?: string;
11704
- levelsTableName?: string;
11705
- levelRequirementsTableId?: string;
11706
- levelRequirementsTableName?: string;
11707
- completedStep?: string;
11708
- incompletedStep?: string;
11709
- tgAchievement?: string;
11710
- tgAchievementToggle?: string;
11711
- tgAchievementToggleBoolean?: string;
11712
- tgAchievementBoolean?: string;
11713
- upsertAchievement?: string;
11714
- tgUpdateAchievements?: string;
11715
- stepsRequired?: string;
11716
- levelAchieved?: string;
12118
+ /**
12119
+ * SQL prefix used for table and module naming, e.g. 'data_room', 'team_channel'. Required.
12120
+ * Drives entity table name (prefix || 's' by default), module labels (permissions_module:prefix),
12121
+ * and membership table names (prefix_memberships, prefix_members, etc.).
12122
+ * Must be unique per database — the (database_id, prefix) constraint ensures graceful ON CONFLICT DO NOTHING.
12123
+ */
11717
12124
  prefix?: string;
11718
- membershipType?: number;
11719
- entityTableId?: string;
11720
- actorTableId?: string;
12125
+ /** Description of this membership type. Stored in the membership_types registry table. Defaults to empty string. */
12126
+ description?: string;
12127
+ /**
12128
+ * Prefix of the parent entity type. The trigger resolves this to a membership_type integer
12129
+ * by looking up memberships_module WHERE prefix = parent_entity.
12130
+ * Defaults to 'org' (the organization-level type). For nested types, set to the parent's prefix
12131
+ * (e.g. 'data_room' for a team_channel nested under data_room).
12132
+ * The parent type must already be provisioned before this INSERT.
12133
+ */
12134
+ parentEntity?: string;
12135
+ /**
12136
+ * Override the entity table name. When NULL (default), the table name is derived as prefix || 's'
12137
+ * (e.g. prefix 'data_room' produces table 'data_rooms').
12138
+ * Set this when the pluralization rule doesn't apply (e.g. prefix 'staff' should produce 'staff' not 'staffs').
12139
+ */
12140
+ tableName?: string;
12141
+ /**
12142
+ * Whether members of the parent entity can see child entities. Defaults to true.
12143
+ * When true: a SELECT policy allows parent members to list child entities (e.g. org members can see all data rooms).
12144
+ * When false: only direct members of the entity itself can see it (private entity mode).
12145
+ * Controls whether the parent_member SELECT policy is created on the entity table.
12146
+ * Only meaningful on the defaults path — ignored (no-op) when table_provision is non-NULL or
12147
+ * skip_entity_policies=true, since no default policies are being applied in those cases.
12148
+ */
12149
+ isVisible?: boolean;
12150
+ /**
12151
+ * Whether to apply limits_module security for this type. Defaults to false.
12152
+ * The limits_module table structure is always created (memberships_module requires it),
12153
+ * but when false, no RLS policies are applied to the limits tables.
12154
+ * Set to true if this entity type needs configurable resource limits per membership.
12155
+ */
12156
+ hasLimits?: boolean;
12157
+ /**
12158
+ * Whether to provision profiles_module for this type. Defaults to false.
12159
+ * Profiles provide named permission roles (e.g. 'Editor', 'Viewer') with pre-configured permission bitmasks.
12160
+ * When true, creates profile tables and applies profiles security.
12161
+ */
12162
+ hasProfiles?: boolean;
12163
+ /**
12164
+ * Whether to provision levels_module for this type. Defaults to false.
12165
+ * Levels provide gamification/achievement tracking for members.
12166
+ * When true, creates level steps, achievements, and level tables with security.
12167
+ */
12168
+ hasLevels?: boolean;
12169
+ /**
12170
+ * Whether to provision storage_module for this type. Defaults to false.
12171
+ * When true, creates {prefix}_buckets, {prefix}_files, and {prefix}_upload_requests tables
12172
+ * with entity-scoped RLS (AuthzEntityMembership) using the entity's membership_type.
12173
+ * Storage tables get owner_id FK to the entity table, so files are owned by the entity.
12174
+ */
12175
+ hasStorage?: boolean;
12176
+ /**
12177
+ * Optional jsonb object for storage module configuration and initial bucket seeding.
12178
+ * Only used when has_storage = true; ignored otherwise. NULL = use defaults.
12179
+ * Recognized keys (all optional):
12180
+ * - upload_url_expiry_seconds (integer) presigned PUT URL expiry override
12181
+ * - download_url_expiry_seconds (integer) presigned GET URL expiry override
12182
+ * - default_max_file_size (bigint) global max file size in bytes for this scope
12183
+ * - allowed_origins (text[]) default CORS origins for all buckets in this scope
12184
+ * - buckets (jsonb[]) array of initial bucket definitions to seed
12185
+ * Each bucket in the buckets array recognizes:
12186
+ * - name (text, required) bucket name e.g. 'documents'
12187
+ * - description (text) human-readable description
12188
+ * - is_public (boolean) whether files are publicly readable (default false)
12189
+ * - allowed_mime_types (text[]) whitelist of MIME types (null = any)
12190
+ * - max_file_size (bigint) max file size in bytes (null = use scope default)
12191
+ * - allowed_origins (text[]) per-bucket CORS override
12192
+ * Example:
12193
+ * storage_config := '{"buckets": [{"name": "documents", "is_public": false, "allowed_mime_types": ["application/pdf"]}]}'::jsonb
12194
+ */
12195
+ storageConfig?: unknown;
12196
+ /**
12197
+ * Escape hatch: when true, apply zero RLS policies to the entity table. Defaults to false.
12198
+ * Use this only when you want the entity table provisioned with zero policies (e.g. because you
12199
+ * plan to insert secure_table_provision rows yourself later). In most cases, prefer leaving this
12200
+ * false and either accepting the five defaults (table_provision=NULL) or overriding them via
12201
+ * table_provision.
12202
+ * Defaults (applied when table_provision IS NULL and skip_entity_policies=false):
12203
+ * - SELECT (parent_member): parent entity members can see child entities (only when is_visible=true)
12204
+ * - SELECT (self_member): direct members of the entity can see it
12205
+ * - INSERT: create_entity permission on the parent entity
12206
+ * - UPDATE: admin_entity permission on the entity itself
12207
+ * - DELETE: owner of the entity can delete it
12208
+ */
12209
+ skipEntityPolicies?: boolean;
12210
+ /**
12211
+ * Single jsonb object describing the full security setup to apply to the entity table.
12212
+ * Uses the same vocabulary as metaschema_modules_public.provision_table() and blueprint tables[]
12213
+ * entries, so an entity table is configured the same way an ordinary blueprint table is.
12214
+ * Defaults to NULL; when non-NULL, the five default policies are implicitly replaced by
12215
+ * table_provision.policies[] (is_visible becomes a no-op on this path).
12216
+ * Recognized keys (all optional):
12217
+ * - use_rls (boolean, default true)
12218
+ * - nodes (jsonb array of {"$type","data"} Data* module entries)
12219
+ * - fields (jsonb array of field objects: name,type,is_required,default,min,max,regexp,index)
12220
+ * - grants (jsonb array of grant objects; each with roles[] and privileges[])
12221
+ * - policies (jsonb array of policy objects; each with $type, privileges, data, name, role, permissive)
12222
+ * The trigger forwards all setup (nodes/fields/grants/policies) as a single secure_table_provision row
12223
+ * against the newly created entity table.
12224
+ * Example — override with two SELECT policies:
12225
+ * table_provision := jsonb_build_object(
12226
+ * 'policies', jsonb_build_array(
12227
+ * jsonb_build_object(
12228
+ * '$type', 'AuthzEntityMembership',
12229
+ * 'privileges', jsonb_build_array('select'),
12230
+ * 'data', jsonb_build_object('entity_field', 'id', 'membership_type', 3),
12231
+ * 'name', 'self_member'
12232
+ * ),
12233
+ * jsonb_build_object(
12234
+ * '$type', 'AuthzDirectOwner',
12235
+ * 'privileges', jsonb_build_array('select', 'update'),
12236
+ * 'data', jsonb_build_object('owner_field', 'owner_id')
12237
+ * )
12238
+ * )
12239
+ * )
12240
+ */
12241
+ tableProvision?: unknown;
12242
+ /**
12243
+ * Output: the auto-assigned integer membership type ID. Populated by the trigger after successful provisioning.
12244
+ * This is the ID used in membership_types, memberships_module, and all module tables.
12245
+ */
12246
+ outMembershipType?: number;
12247
+ /**
12248
+ * Output: the UUID of the created entity table. Populated by the trigger.
12249
+ * Use this to reference the entity table in subsequent relation_provision or secure_table_provision rows.
12250
+ */
12251
+ outEntityTableId?: string;
12252
+ /** Output: the name of the created entity table (e.g. 'data_rooms'). Populated by the trigger. */
12253
+ outEntityTableName?: string;
12254
+ /**
12255
+ * Output: array of installed module labels (e.g. ARRAY['permissions_module:data_room', 'memberships_module:data_room', 'invites_module:data_room']).
12256
+ * Populated by the trigger. Useful for verifying which modules were provisioned.
12257
+ */
12258
+ outInstalledModules?: string[];
12259
+ /** Output: the UUID of the storage_module row created for this entity type. Populated by the trigger when has_storage=true. */
12260
+ outStorageModuleId?: string;
12261
+ /** Output: the UUID of the generated buckets table (e.g. data_room_buckets). Populated by the trigger when has_storage=true. */
12262
+ outBucketsTableId?: string;
12263
+ /** Output: the UUID of the generated files table (e.g. data_room_files). Populated by the trigger when has_storage=true. */
12264
+ outFilesTableId?: string;
11721
12265
  }
11722
- export interface UpdateUserAuthModuleInput {
12266
+ export interface UpdateStorageModuleInput {
11723
12267
  clientMutationId?: string;
11724
12268
  id: string;
11725
- /** An object where the defined keys will be set on the `UserAuthModule` being updated. */
11726
- userAuthModulePatch: UserAuthModulePatch;
12269
+ /** An object where the defined keys will be set on the `StorageModule` being updated. */
12270
+ storageModulePatch: StorageModulePatch;
11727
12271
  }
11728
- /** Represents an update to a `UserAuthModule`. Fields that are set will be updated. */
11729
- export interface UserAuthModulePatch {
12272
+ /** Represents an update to a `StorageModule`. Fields that are set will be updated. */
12273
+ export interface StorageModulePatch {
11730
12274
  id?: string;
11731
12275
  databaseId?: string;
11732
12276
  schemaId?: string;
11733
- emailsTableId?: string;
11734
- usersTableId?: string;
11735
- secretsTableId?: string;
11736
- encryptedTableId?: string;
11737
- sessionsTableId?: string;
11738
- sessionCredentialsTableId?: string;
11739
- auditsTableId?: string;
11740
- auditsTableName?: string;
11741
- signInFunction?: string;
11742
- signUpFunction?: string;
11743
- signOutFunction?: string;
11744
- setPasswordFunction?: string;
11745
- resetPasswordFunction?: string;
11746
- forgotPasswordFunction?: string;
11747
- sendVerificationEmailFunction?: string;
11748
- verifyEmailFunction?: string;
11749
- verifyPasswordFunction?: string;
11750
- checkPasswordFunction?: string;
11751
- sendAccountDeletionEmailFunction?: string;
11752
- deleteAccountFunction?: string;
11753
- signInCrossOriginFunction?: string;
11754
- requestCrossOriginTokenFunction?: string;
11755
- extendTokenExpires?: string;
12277
+ privateSchemaId?: string;
12278
+ bucketsTableId?: string;
12279
+ filesTableId?: string;
12280
+ uploadRequestsTableId?: string;
12281
+ bucketsTableName?: string;
12282
+ filesTableName?: string;
12283
+ uploadRequestsTableName?: string;
12284
+ membershipType?: number;
12285
+ policies?: string[];
12286
+ entityTableId?: string;
12287
+ endpoint?: string;
12288
+ publicUrlPrefix?: string;
12289
+ provider?: string;
12290
+ allowedOrigins?: string[];
12291
+ uploadUrlExpirySeconds?: number;
12292
+ downloadUrlExpirySeconds?: number;
12293
+ defaultMaxFileSize?: string;
12294
+ maxFilenameLength?: number;
12295
+ cacheTtlSeconds?: number;
11756
12296
  }
11757
- export interface UpdateFieldInput {
12297
+ export interface UpdateTableInput {
11758
12298
  clientMutationId?: string;
11759
12299
  id: string;
11760
- /** An object where the defined keys will be set on the `Field` being updated. */
11761
- fieldPatch: FieldPatch;
12300
+ /** An object where the defined keys will be set on the `Table` being updated. */
12301
+ tablePatch: TablePatch;
11762
12302
  }
11763
- /** Represents an update to a `Field`. Fields that are set will be updated. */
11764
- export interface FieldPatch {
12303
+ /** Represents an update to a `Table`. Fields that are set will be updated. */
12304
+ export interface TablePatch {
11765
12305
  id?: string;
11766
12306
  databaseId?: string;
11767
- tableId?: string;
12307
+ schemaId?: string;
11768
12308
  name?: string;
11769
12309
  label?: string;
11770
12310
  description?: string;
11771
12311
  smartTags?: unknown;
11772
- isRequired?: boolean;
11773
- apiRequired?: boolean;
11774
- defaultValue?: string;
11775
- defaultValueAst?: unknown;
11776
- type?: string;
11777
- fieldOrder?: number;
11778
- regexp?: string;
11779
- chk?: unknown;
11780
- chkExpr?: unknown;
11781
- min?: number;
11782
- max?: number;
11783
- tags?: string[];
11784
12312
  category?: ObjectCategory;
11785
12313
  module?: string;
11786
12314
  scope?: number;
12315
+ useRls?: boolean;
12316
+ timestamps?: boolean;
12317
+ peoplestamps?: boolean;
12318
+ pluralName?: string;
12319
+ singularName?: string;
12320
+ tags?: string[];
12321
+ inheritsId?: string;
11787
12322
  createdAt?: string;
11788
12323
  updatedAt?: string;
11789
12324
  }
@@ -11900,34 +12435,15 @@ export interface RelationProvisionPatch {
11900
12435
  * Ignored for RelationBelongsTo/RelationHasOne/RelationHasMany.
11901
12436
  */
11902
12437
  nodes?: unknown;
11903
- /** For RelationManyToMany: database roles to grant privileges to on the junction table. Forwarded to secure_table_provision as-is. Supports multiple roles, e.g. ARRAY['authenticated', 'admin']. Each role receives all privileges defined in grant_privileges. Defaults to ARRAY['authenticated']. Ignored for RelationBelongsTo/RelationHasOne. */
11904
- grantRoles?: string[];
11905
- /** For RelationManyToMany: privilege grants for the junction table. Forwarded to secure_table_provision as-is. Format: PostgreSQL array of jsonb [privilege, columns] tuples. Examples: ARRAY['["select","*"]'::jsonb, '["insert","*"]'::jsonb] for full access, or ARRAY['["update",["name","bio"]]'::jsonb] for column-level grants. "*" means all columns. Defaults to '{}' (no grants — callers must explicitly specify privileges). Ignored for RelationBelongsTo/RelationHasOne. */
11906
- grantPrivileges?: unknown[];
11907
- /**
11908
- * For RelationManyToMany: RLS policy type for the junction table. Forwarded to secure_table_provision as-is. The trigger does not interpret or validate this value.
11909
- * Examples: AuthzEntityMembership, AuthzMembership, AuthzAllowAll, AuthzDirectOwner, AuthzOrgHierarchy.
11910
- * NULL means no policy is created — the junction table will have RLS enabled but no policies (unless added separately via secure_table_provision).
11911
- * Ignored for RelationBelongsTo/RelationHasOne.
11912
- */
11913
- policyType?: string;
11914
- /** For RelationManyToMany: privileges the policy applies to, e.g. ARRAY['select','insert','delete']. Forwarded to secure_table_provision as-is. NULL means privileges are derived from the grant_privileges verbs by secure_table_provision. Ignored for RelationBelongsTo/RelationHasOne. */
11915
- policyPrivileges?: string[];
11916
- /** For RelationManyToMany: database role the policy targets, e.g. 'authenticated'. Forwarded to secure_table_provision as-is. NULL means secure_table_provision falls back to the first role in grant_roles. Ignored for RelationBelongsTo/RelationHasOne. */
11917
- policyRole?: string;
11918
- /** For RelationManyToMany: whether the policy is PERMISSIVE (true) or RESTRICTIVE (false). Forwarded to secure_table_provision as-is. Defaults to true. Ignored for RelationBelongsTo/RelationHasOne. */
11919
- policyPermissive?: boolean;
11920
- /** For RelationManyToMany: custom suffix for the generated policy name. Forwarded to secure_table_provision as-is. When NULL and policy_type is set, secure_table_provision auto-derives a suffix from policy_type (e.g. AuthzDirectOwner becomes direct_owner, producing policy names like auth_sel_direct_owner). When explicitly set, used as-is. This ensures multiple policies on the same junction table do not collide. Ignored for RelationBelongsTo/RelationHasOne. */
11921
- policyName?: string;
12438
+ /** For RelationManyToMany: array of grant objects for the junction table. Forwarded to provision_table as-is. Each element is a jsonb object with keys: "roles" (text[], required), "privileges" (jsonb[], required array of [privilege, columns] tuples). Example: [{"roles":["authenticated"],"privileges":[["select","*"],["insert","*"],["delete","*"]]}]. Defaults to '[]' (no grants). Ignored for RelationBelongsTo/RelationHasOne. */
12439
+ grants?: unknown;
11922
12440
  /**
11923
- * For RelationManyToMany: opaque policy configuration forwarded to secure_table_provision as-is. The trigger does not interpret or validate this value. Structure varies by policy_type. Examples:
11924
- * - AuthzEntityMembership: {"entity_field": "entity_id", "membership_type": 2}
11925
- * - AuthzDirectOwner: {"owner_field": "owner_id"}
11926
- * - AuthzMembership: {"membership_type": 2}
11927
- * Defaults to '{}' (empty object).
11928
- * Ignored for RelationBelongsTo/RelationHasOne.
12441
+ * For RelationManyToMany: array of policy objects for the junction table. Forwarded to provision_table as-is. Each element is a jsonb object with keys: "$type" (text, required — the Authz* policy generator type), "data" (jsonb, optional — opaque config), "privileges" (text[], optional — e.g. ["select","insert"]; if omitted, derived from grants[] privilege verbs), "policy_role" (text, optional — falls back to first role in first grants[] entry, or 'authenticated'), "permissive" (boolean, optional, defaults to true), "policy_name" (text, optional). Supports multiple policies per row.
12442
+ * Example: [{"$type": "AuthzEntityMembership", "data": {"entity_field": "entity_id", "membership_type": 2}, "privileges": ["select", "insert", "delete"]}].
12443
+ * Defaults to '[]' (no policies — the junction table will have RLS enabled but no policies unless added separately).
12444
+ * Ignored for RelationBelongsTo/RelationHasOne/RelationHasMany.
11929
12445
  */
11930
- policyData?: unknown;
12446
+ policies?: unknown;
11931
12447
  /** Output column for RelationBelongsTo/RelationHasOne/RelationHasMany: the UUID of the FK field created (or found). For BelongsTo/HasOne this is on the source table; for HasMany this is on the target table. Populated by the trigger. NULL for RelationManyToMany. Callers should not set this directly. */
11932
12448
  outFieldId?: string;
11933
12449
  /** Output column for RelationManyToMany: the UUID of the junction table created (or found). Populated by the trigger. NULL for RelationBelongsTo/RelationHasOne. Callers should not set this directly. */
@@ -11937,6 +12453,109 @@ export interface RelationProvisionPatch {
11937
12453
  /** Output column for RelationManyToMany: the UUID of the FK field on the junction table referencing the target table. Populated by the trigger. NULL for RelationBelongsTo/RelationHasOne. Callers should not set this directly. */
11938
12454
  outTargetFieldId?: string;
11939
12455
  }
12456
+ export interface UpdateLevelsModuleInput {
12457
+ clientMutationId?: string;
12458
+ id: string;
12459
+ /** An object where the defined keys will be set on the `LevelsModule` being updated. */
12460
+ levelsModulePatch: LevelsModulePatch;
12461
+ }
12462
+ /** Represents an update to a `LevelsModule`. Fields that are set will be updated. */
12463
+ export interface LevelsModulePatch {
12464
+ id?: string;
12465
+ databaseId?: string;
12466
+ schemaId?: string;
12467
+ privateSchemaId?: string;
12468
+ stepsTableId?: string;
12469
+ stepsTableName?: string;
12470
+ achievementsTableId?: string;
12471
+ achievementsTableName?: string;
12472
+ levelsTableId?: string;
12473
+ levelsTableName?: string;
12474
+ levelRequirementsTableId?: string;
12475
+ levelRequirementsTableName?: string;
12476
+ completedStep?: string;
12477
+ incompletedStep?: string;
12478
+ tgAchievement?: string;
12479
+ tgAchievementToggle?: string;
12480
+ tgAchievementToggleBoolean?: string;
12481
+ tgAchievementBoolean?: string;
12482
+ upsertAchievement?: string;
12483
+ tgUpdateAchievements?: string;
12484
+ stepsRequired?: string;
12485
+ levelAchieved?: string;
12486
+ prefix?: string;
12487
+ membershipType?: number;
12488
+ entityTableId?: string;
12489
+ actorTableId?: string;
12490
+ }
12491
+ export interface UpdateUserAuthModuleInput {
12492
+ clientMutationId?: string;
12493
+ id: string;
12494
+ /** An object where the defined keys will be set on the `UserAuthModule` being updated. */
12495
+ userAuthModulePatch: UserAuthModulePatch;
12496
+ }
12497
+ /** Represents an update to a `UserAuthModule`. Fields that are set will be updated. */
12498
+ export interface UserAuthModulePatch {
12499
+ id?: string;
12500
+ databaseId?: string;
12501
+ schemaId?: string;
12502
+ emailsTableId?: string;
12503
+ usersTableId?: string;
12504
+ secretsTableId?: string;
12505
+ encryptedTableId?: string;
12506
+ sessionsTableId?: string;
12507
+ sessionCredentialsTableId?: string;
12508
+ auditsTableId?: string;
12509
+ auditsTableName?: string;
12510
+ signInFunction?: string;
12511
+ signUpFunction?: string;
12512
+ signOutFunction?: string;
12513
+ setPasswordFunction?: string;
12514
+ resetPasswordFunction?: string;
12515
+ forgotPasswordFunction?: string;
12516
+ sendVerificationEmailFunction?: string;
12517
+ verifyEmailFunction?: string;
12518
+ verifyPasswordFunction?: string;
12519
+ checkPasswordFunction?: string;
12520
+ sendAccountDeletionEmailFunction?: string;
12521
+ deleteAccountFunction?: string;
12522
+ signInCrossOriginFunction?: string;
12523
+ requestCrossOriginTokenFunction?: string;
12524
+ extendTokenExpires?: string;
12525
+ }
12526
+ export interface UpdateFieldInput {
12527
+ clientMutationId?: string;
12528
+ id: string;
12529
+ /** An object where the defined keys will be set on the `Field` being updated. */
12530
+ fieldPatch: FieldPatch;
12531
+ }
12532
+ /** Represents an update to a `Field`. Fields that are set will be updated. */
12533
+ export interface FieldPatch {
12534
+ id?: string;
12535
+ databaseId?: string;
12536
+ tableId?: string;
12537
+ name?: string;
12538
+ label?: string;
12539
+ description?: string;
12540
+ smartTags?: unknown;
12541
+ isRequired?: boolean;
12542
+ apiRequired?: boolean;
12543
+ defaultValue?: string;
12544
+ defaultValueAst?: unknown;
12545
+ type?: string;
12546
+ fieldOrder?: number;
12547
+ regexp?: string;
12548
+ chk?: unknown;
12549
+ chkExpr?: unknown;
12550
+ min?: number;
12551
+ max?: number;
12552
+ tags?: string[];
12553
+ category?: ObjectCategory;
12554
+ module?: string;
12555
+ scope?: number;
12556
+ createdAt?: string;
12557
+ updatedAt?: string;
12558
+ }
11940
12559
  export interface UpdateMembershipsModuleInput {
11941
12560
  clientMutationId?: string;
11942
12561
  id: string;
@@ -11955,6 +12574,8 @@ export interface MembershipsModulePatch {
11955
12574
  membersTableName?: string;
11956
12575
  membershipDefaultsTableId?: string;
11957
12576
  membershipDefaultsTableName?: string;
12577
+ membershipSettingsTableId?: string;
12578
+ membershipSettingsTableName?: string;
11958
12579
  grantsTableId?: string;
11959
12580
  grantsTableName?: string;
11960
12581
  actorTableId?: string;
@@ -12057,6 +12678,10 @@ export interface DeleteViewRuleInput {
12057
12678
  clientMutationId?: string;
12058
12679
  id: string;
12059
12680
  }
12681
+ export interface DeleteIdentityProvidersModuleInput {
12682
+ clientMutationId?: string;
12683
+ id: string;
12684
+ }
12060
12685
  export interface DeleteSessionSecretsModuleInput {
12061
12686
  clientMutationId?: string;
12062
12687
  id: string;
@@ -12122,10 +12747,6 @@ export interface DeleteOrgOwnerGrantInput {
12122
12747
  clientMutationId?: string;
12123
12748
  id: string;
12124
12749
  }
12125
- export interface DeleteCryptoAddressInput {
12126
- clientMutationId?: string;
12127
- id: string;
12128
- }
12129
12750
  export interface DeleteObjectInput {
12130
12751
  clientMutationId?: string;
12131
12752
  id: string;
@@ -12139,7 +12760,7 @@ export interface DeleteCryptoAddressesModuleInput {
12139
12760
  clientMutationId?: string;
12140
12761
  id: string;
12141
12762
  }
12142
- export interface DeletePhoneNumberInput {
12763
+ export interface DeleteCryptoAddressInput {
12143
12764
  clientMutationId?: string;
12144
12765
  id: string;
12145
12766
  }
@@ -12176,6 +12797,10 @@ export interface DeleteAppMembershipDefaultInput {
12176
12797
  clientMutationId?: string;
12177
12798
  id: string;
12178
12799
  }
12800
+ export interface DeleteOrgMembershipDefaultInput {
12801
+ clientMutationId?: string;
12802
+ id: string;
12803
+ }
12179
12804
  export interface DeleteFullTextSearchInput {
12180
12805
  clientMutationId?: string;
12181
12806
  id: string;
@@ -12199,6 +12824,10 @@ export interface DeleteOrgChartEdgeGrantInput {
12199
12824
  clientMutationId?: string;
12200
12825
  id: string;
12201
12826
  }
12827
+ export interface DeletePhoneNumberInput {
12828
+ clientMutationId?: string;
12829
+ id: string;
12830
+ }
12202
12831
  export interface DeleteOrgLimitInput {
12203
12832
  clientMutationId?: string;
12204
12833
  id: string;
@@ -12229,10 +12858,6 @@ export interface DeleteOrgGrantInput {
12229
12858
  clientMutationId?: string;
12230
12859
  id: string;
12231
12860
  }
12232
- export interface DeleteOrgMembershipDefaultInput {
12233
- clientMutationId?: string;
12234
- id: string;
12235
- }
12236
12861
  export interface DeleteBlueprintConstructionInput {
12237
12862
  clientMutationId?: string;
12238
12863
  /** Unique identifier for this construction attempt. */
@@ -12258,10 +12883,6 @@ export interface DeleteAppLevelInput {
12258
12883
  clientMutationId?: string;
12259
12884
  id: string;
12260
12885
  }
12261
- export interface DeleteEmailInput {
12262
- clientMutationId?: string;
12263
- id: string;
12264
- }
12265
12886
  export interface DeleteBlueprintInput {
12266
12887
  clientMutationId?: string;
12267
12888
  /** Unique identifier for this blueprint. */
@@ -12271,10 +12892,27 @@ export interface DeleteDenormalizedTableFieldInput {
12271
12892
  clientMutationId?: string;
12272
12893
  id: string;
12273
12894
  }
12895
+ export interface DeleteNotificationsModuleInput {
12896
+ clientMutationId?: string;
12897
+ id: string;
12898
+ }
12899
+ export interface DeleteEmailInput {
12900
+ clientMutationId?: string;
12901
+ id: string;
12902
+ }
12274
12903
  export interface DeleteOrgMemberProfileInput {
12275
12904
  clientMutationId?: string;
12276
12905
  id: string;
12277
12906
  }
12907
+ export interface DeleteSecureTableProvisionInput {
12908
+ clientMutationId?: string;
12909
+ /** Unique identifier for this provision row. */
12910
+ id: string;
12911
+ }
12912
+ export interface DeleteOrgMembershipSettingInput {
12913
+ clientMutationId?: string;
12914
+ id: string;
12915
+ }
12278
12916
  export interface DeleteDatabaseTransferInput {
12279
12917
  clientMutationId?: string;
12280
12918
  id: string;
@@ -12303,6 +12941,10 @@ export interface DeleteViewInput {
12303
12941
  clientMutationId?: string;
12304
12942
  id: string;
12305
12943
  }
12944
+ export interface DeleteWebauthnAuthModuleInput {
12945
+ clientMutationId?: string;
12946
+ id: string;
12947
+ }
12306
12948
  export interface DeleteAppInput {
12307
12949
  clientMutationId?: string;
12308
12950
  /** Unique identifier for this app */
@@ -12337,11 +12979,6 @@ export interface DeletePolicyInput {
12337
12979
  clientMutationId?: string;
12338
12980
  id: string;
12339
12981
  }
12340
- export interface DeleteEntityTypeProvisionInput {
12341
- clientMutationId?: string;
12342
- /** Unique identifier for this provision row. */
12343
- id: string;
12344
- }
12345
12982
  export interface DeletePermissionsModuleInput {
12346
12983
  clientMutationId?: string;
12347
12984
  id: string;
@@ -12374,13 +13011,12 @@ export interface DeleteIndexInput {
12374
13011
  clientMutationId?: string;
12375
13012
  id: string;
12376
13013
  }
12377
- export interface DeleteOrgInviteInput {
13014
+ export interface DeleteWebauthnCredentialInput {
12378
13015
  clientMutationId?: string;
12379
13016
  id: string;
12380
13017
  }
12381
- export interface DeleteSecureTableProvisionInput {
13018
+ export interface DeleteOrgInviteInput {
12382
13019
  clientMutationId?: string;
12383
- /** Unique identifier for this provision row. */
12384
13020
  id: string;
12385
13021
  }
12386
13022
  export interface DeleteOrgMembershipInput {
@@ -12400,6 +13036,11 @@ export interface DeleteForeignKeyConstraintInput {
12400
13036
  clientMutationId?: string;
12401
13037
  id: string;
12402
13038
  }
13039
+ export interface DeleteEntityTypeProvisionInput {
13040
+ clientMutationId?: string;
13041
+ /** Unique identifier for this provision row. */
13042
+ id: string;
13043
+ }
12403
13044
  export interface DeleteStorageModuleInput {
12404
13045
  clientMutationId?: string;
12405
13046
  id: string;
@@ -12408,21 +13049,21 @@ export interface DeleteTableInput {
12408
13049
  clientMutationId?: string;
12409
13050
  id: string;
12410
13051
  }
12411
- export interface DeleteLevelsModuleInput {
13052
+ export interface DeleteRelationProvisionInput {
12412
13053
  clientMutationId?: string;
13054
+ /** Unique identifier for this relation provision row. */
12413
13055
  id: string;
12414
13056
  }
12415
- export interface DeleteUserAuthModuleInput {
13057
+ export interface DeleteLevelsModuleInput {
12416
13058
  clientMutationId?: string;
12417
13059
  id: string;
12418
13060
  }
12419
- export interface DeleteFieldInput {
13061
+ export interface DeleteUserAuthModuleInput {
12420
13062
  clientMutationId?: string;
12421
13063
  id: string;
12422
13064
  }
12423
- export interface DeleteRelationProvisionInput {
13065
+ export interface DeleteFieldInput {
12424
13066
  clientMutationId?: string;
12425
- /** Unique identifier for this relation provision row. */
12426
13067
  id: string;
12427
13068
  }
12428
13069
  export interface DeleteMembershipsModuleInput {
@@ -12432,6 +13073,13 @@ export interface DeleteMembershipsModuleInput {
12432
13073
  export interface RequestUploadUrlInput {
12433
13074
  /** Bucket key (e.g., "public", "private") */
12434
13075
  bucketKey: string;
13076
+ /**
13077
+ * Owner entity ID for entity-scoped uploads.
13078
+ * Omit for app-level (database-wide) storage.
13079
+ * When provided, resolves the storage module for the entity type
13080
+ * that owns this entity instance (e.g., a data room ID, team ID).
13081
+ */
13082
+ ownerId?: string;
12435
13083
  /** SHA-256 content hash computed by the client (hex-encoded, 64 chars) */
12436
13084
  contentHash: string;
12437
13085
  /** MIME type of the file (e.g., "image/png") */
@@ -12448,6 +13096,11 @@ export interface ConfirmUploadInput {
12448
13096
  export interface ProvisionBucketInput {
12449
13097
  /** The logical bucket key (e.g., "public", "private") */
12450
13098
  bucketKey: string;
13099
+ /**
13100
+ * Owner entity ID for entity-scoped bucket provisioning.
13101
+ * Omit for app-level (database-wide) storage.
13102
+ */
13103
+ ownerId?: string;
12451
13104
  }
12452
13105
  /** A connection to a list of `OrgGetManagersRecord` values. */
12453
13106
  export interface OrgGetManagersConnection {
@@ -12540,6 +13193,13 @@ export interface AppPermissionDefaultConnection {
12540
13193
  pageInfo: PageInfo;
12541
13194
  totalCount: number;
12542
13195
  }
13196
+ /** A connection to a list of `IdentityProvider` values. */
13197
+ export interface IdentityProviderConnection {
13198
+ nodes: IdentityProvider[];
13199
+ edges: IdentityProviderEdge[];
13200
+ pageInfo: PageInfo;
13201
+ totalCount: number;
13202
+ }
12543
13203
  /** A connection to a list of `Ref` values. */
12544
13204
  export interface RefConnection {
12545
13205
  nodes: Ref[];
@@ -12624,6 +13284,13 @@ export interface ViewRuleConnection {
12624
13284
  pageInfo: PageInfo;
12625
13285
  totalCount: number;
12626
13286
  }
13287
+ /** A connection to a list of `IdentityProvidersModule` values. */
13288
+ export interface IdentityProvidersModuleConnection {
13289
+ nodes: IdentityProvidersModule[];
13290
+ edges: IdentityProvidersModuleEdge[];
13291
+ pageInfo: PageInfo;
13292
+ totalCount: number;
13293
+ }
12627
13294
  /** A connection to a list of `SessionSecretsModule` values. */
12628
13295
  export interface SessionSecretsModuleConnection {
12629
13296
  nodes: SessionSecretsModule[];
@@ -12743,13 +13410,6 @@ export interface OrgOwnerGrantConnection {
12743
13410
  pageInfo: PageInfo;
12744
13411
  totalCount: number;
12745
13412
  }
12746
- /** A connection to a list of `CryptoAddress` values. */
12747
- export interface CryptoAddressConnection {
12748
- nodes: CryptoAddress[];
12749
- edges: CryptoAddressEdge[];
12750
- pageInfo: PageInfo;
12751
- totalCount: number;
12752
- }
12753
13413
  /** A connection to a list of `UserConnectedAccount` values. */
12754
13414
  export interface UserConnectedAccountConnection {
12755
13415
  nodes: UserConnectedAccount[];
@@ -12771,10 +13431,10 @@ export interface CryptoAddressesModuleConnection {
12771
13431
  pageInfo: PageInfo;
12772
13432
  totalCount: number;
12773
13433
  }
12774
- /** A connection to a list of `PhoneNumber` values. */
12775
- export interface PhoneNumberConnection {
12776
- nodes: PhoneNumber[];
12777
- edges: PhoneNumberEdge[];
13434
+ /** A connection to a list of `CryptoAddress` values. */
13435
+ export interface CryptoAddressConnection {
13436
+ nodes: CryptoAddress[];
13437
+ edges: CryptoAddressEdge[];
12778
13438
  pageInfo: PageInfo;
12779
13439
  totalCount: number;
12780
13440
  }
@@ -12820,6 +13480,13 @@ export interface AppMembershipDefaultConnection {
12820
13480
  pageInfo: PageInfo;
12821
13481
  totalCount: number;
12822
13482
  }
13483
+ /** A connection to a list of `OrgMembershipDefault` values. */
13484
+ export interface OrgMembershipDefaultConnection {
13485
+ nodes: OrgMembershipDefault[];
13486
+ edges: OrgMembershipDefaultEdge[];
13487
+ pageInfo: PageInfo;
13488
+ totalCount: number;
13489
+ }
12823
13490
  /** A connection to a list of `FullTextSearch` values. */
12824
13491
  export interface FullTextSearchConnection {
12825
13492
  nodes: FullTextSearch[];
@@ -12855,6 +13522,13 @@ export interface OrgChartEdgeGrantConnection {
12855
13522
  pageInfo: PageInfo;
12856
13523
  totalCount: number;
12857
13524
  }
13525
+ /** A connection to a list of `PhoneNumber` values. */
13526
+ export interface PhoneNumberConnection {
13527
+ nodes: PhoneNumber[];
13528
+ edges: PhoneNumberEdge[];
13529
+ pageInfo: PageInfo;
13530
+ totalCount: number;
13531
+ }
12858
13532
  /** A connection to a list of `OrgLimit` values. */
12859
13533
  export interface OrgLimitConnection {
12860
13534
  nodes: OrgLimit[];
@@ -12904,13 +13578,6 @@ export interface OrgGrantConnection {
12904
13578
  pageInfo: PageInfo;
12905
13579
  totalCount: number;
12906
13580
  }
12907
- /** A connection to a list of `OrgMembershipDefault` values. */
12908
- export interface OrgMembershipDefaultConnection {
12909
- nodes: OrgMembershipDefault[];
12910
- edges: OrgMembershipDefaultEdge[];
12911
- pageInfo: PageInfo;
12912
- totalCount: number;
12913
- }
12914
13581
  /** A connection to a list of `BlueprintConstruction` values. */
12915
13582
  export interface BlueprintConstructionConnection {
12916
13583
  nodes: BlueprintConstruction[];
@@ -12946,13 +13613,6 @@ export interface AppLevelConnection {
12946
13613
  pageInfo: PageInfo;
12947
13614
  totalCount: number;
12948
13615
  }
12949
- /** A connection to a list of `Email` values. */
12950
- export interface EmailConnection {
12951
- nodes: Email[];
12952
- edges: EmailEdge[];
12953
- pageInfo: PageInfo;
12954
- totalCount: number;
12955
- }
12956
13616
  /** A connection to a list of `Blueprint` values. */
12957
13617
  export interface BlueprintConnection {
12958
13618
  nodes: Blueprint[];
@@ -12967,6 +13627,20 @@ export interface DenormalizedTableFieldConnection {
12967
13627
  pageInfo: PageInfo;
12968
13628
  totalCount: number;
12969
13629
  }
13630
+ /** A connection to a list of `NotificationsModule` values. */
13631
+ export interface NotificationsModuleConnection {
13632
+ nodes: NotificationsModule[];
13633
+ edges: NotificationsModuleEdge[];
13634
+ pageInfo: PageInfo;
13635
+ totalCount: number;
13636
+ }
13637
+ /** A connection to a list of `Email` values. */
13638
+ export interface EmailConnection {
13639
+ nodes: Email[];
13640
+ edges: EmailEdge[];
13641
+ pageInfo: PageInfo;
13642
+ totalCount: number;
13643
+ }
12970
13644
  /** A connection to a list of `OrgMemberProfile` values. */
12971
13645
  export interface OrgMemberProfileConnection {
12972
13646
  nodes: OrgMemberProfile[];
@@ -12981,6 +13655,20 @@ export interface SqlActionConnection {
12981
13655
  pageInfo: PageInfo;
12982
13656
  totalCount: number;
12983
13657
  }
13658
+ /** A connection to a list of `SecureTableProvision` values. */
13659
+ export interface SecureTableProvisionConnection {
13660
+ nodes: SecureTableProvision[];
13661
+ edges: SecureTableProvisionEdge[];
13662
+ pageInfo: PageInfo;
13663
+ totalCount: number;
13664
+ }
13665
+ /** A connection to a list of `OrgMembershipSetting` values. */
13666
+ export interface OrgMembershipSettingConnection {
13667
+ nodes: OrgMembershipSetting[];
13668
+ edges: OrgMembershipSettingEdge[];
13669
+ pageInfo: PageInfo;
13670
+ totalCount: number;
13671
+ }
12984
13672
  /** A connection to a list of `DatabaseTransfer` values. */
12985
13673
  export interface DatabaseTransferConnection {
12986
13674
  nodes: DatabaseTransfer[];
@@ -13030,6 +13718,13 @@ export interface ViewConnection {
13030
13718
  pageInfo: PageInfo;
13031
13719
  totalCount: number;
13032
13720
  }
13721
+ /** A connection to a list of `WebauthnAuthModule` values. */
13722
+ export interface WebauthnAuthModuleConnection {
13723
+ nodes: WebauthnAuthModule[];
13724
+ edges: WebauthnAuthModuleEdge[];
13725
+ pageInfo: PageInfo;
13726
+ totalCount: number;
13727
+ }
13033
13728
  /** A connection to a list of `App` values. */
13034
13729
  export interface AppConnection {
13035
13730
  nodes: App[];
@@ -13093,13 +13788,6 @@ export interface PolicyConnection {
13093
13788
  pageInfo: PageInfo;
13094
13789
  totalCount: number;
13095
13790
  }
13096
- /** A connection to a list of `EntityTypeProvision` values. */
13097
- export interface EntityTypeProvisionConnection {
13098
- nodes: EntityTypeProvision[];
13099
- edges: EntityTypeProvisionEdge[];
13100
- pageInfo: PageInfo;
13101
- totalCount: number;
13102
- }
13103
13791
  /** A connection to a list of `PermissionsModule` values. */
13104
13792
  export interface PermissionsModuleConnection {
13105
13793
  nodes: PermissionsModule[];
@@ -13156,6 +13844,13 @@ export interface IndexConnection {
13156
13844
  pageInfo: PageInfo;
13157
13845
  totalCount: number;
13158
13846
  }
13847
+ /** A connection to a list of `WebauthnCredential` values. */
13848
+ export interface WebauthnCredentialConnection {
13849
+ nodes: WebauthnCredential[];
13850
+ edges: WebauthnCredentialEdge[];
13851
+ pageInfo: PageInfo;
13852
+ totalCount: number;
13853
+ }
13159
13854
  /** A connection to a list of `OrgInvite` values. */
13160
13855
  export interface OrgInviteConnection {
13161
13856
  nodes: OrgInvite[];
@@ -13163,13 +13858,6 @@ export interface OrgInviteConnection {
13163
13858
  pageInfo: PageInfo;
13164
13859
  totalCount: number;
13165
13860
  }
13166
- /** A connection to a list of `SecureTableProvision` values. */
13167
- export interface SecureTableProvisionConnection {
13168
- nodes: SecureTableProvision[];
13169
- edges: SecureTableProvisionEdge[];
13170
- pageInfo: PageInfo;
13171
- totalCount: number;
13172
- }
13173
13861
  /** A connection to a list of `OrgMembership` values. */
13174
13862
  export interface OrgMembershipConnection {
13175
13863
  nodes: OrgMembership[];
@@ -13198,6 +13886,13 @@ export interface ForeignKeyConstraintConnection {
13198
13886
  pageInfo: PageInfo;
13199
13887
  totalCount: number;
13200
13888
  }
13889
+ /** A connection to a list of `EntityTypeProvision` values. */
13890
+ export interface EntityTypeProvisionConnection {
13891
+ nodes: EntityTypeProvision[];
13892
+ edges: EntityTypeProvisionEdge[];
13893
+ pageInfo: PageInfo;
13894
+ totalCount: number;
13895
+ }
13201
13896
  /** A connection to a list of `StorageModule` values. */
13202
13897
  export interface StorageModuleConnection {
13203
13898
  nodes: StorageModule[];
@@ -13212,6 +13907,13 @@ export interface TableConnection {
13212
13907
  pageInfo: PageInfo;
13213
13908
  totalCount: number;
13214
13909
  }
13910
+ /** A connection to a list of `RelationProvision` values. */
13911
+ export interface RelationProvisionConnection {
13912
+ nodes: RelationProvision[];
13913
+ edges: RelationProvisionEdge[];
13914
+ pageInfo: PageInfo;
13915
+ totalCount: number;
13916
+ }
13215
13917
  /** A connection to a list of `LevelsModule` values. */
13216
13918
  export interface LevelsModuleConnection {
13217
13919
  nodes: LevelsModule[];
@@ -13233,13 +13935,6 @@ export interface FieldConnection {
13233
13935
  pageInfo: PageInfo;
13234
13936
  totalCount: number;
13235
13937
  }
13236
- /** A connection to a list of `RelationProvision` values. */
13237
- export interface RelationProvisionConnection {
13238
- nodes: RelationProvision[];
13239
- edges: RelationProvisionEdge[];
13240
- pageInfo: PageInfo;
13241
- totalCount: number;
13242
- }
13243
13938
  /** A connection to a list of `MembershipsModule` values. */
13244
13939
  export interface MembershipsModuleConnection {
13245
13940
  nodes: MembershipsModule[];
@@ -13339,10 +14034,6 @@ export interface CopyTemplateToBlueprintPayload {
13339
14034
  clientMutationId?: string | null;
13340
14035
  result?: string | null;
13341
14036
  }
13342
- export interface CreateApiKeyPayload {
13343
- clientMutationId?: string | null;
13344
- result?: CreateApiKeyRecord | null;
13345
- }
13346
14037
  export interface ProvisionSpatialRelationPayload {
13347
14038
  clientMutationId?: string | null;
13348
14039
  result?: string | null;
@@ -13408,6 +14099,10 @@ export interface ExtendTokenExpiresPayload {
13408
14099
  clientMutationId?: string | null;
13409
14100
  result?: ExtendTokenExpiresRecord[] | null;
13410
14101
  }
14102
+ export interface CreateApiKeyPayload {
14103
+ clientMutationId?: string | null;
14104
+ result?: CreateApiKeyRecord | null;
14105
+ }
13411
14106
  export interface SignUpPayload {
13412
14107
  clientMutationId?: string | null;
13413
14108
  result?: SignUpRecord | null;
@@ -13467,6 +14162,11 @@ export interface CreateAppPermissionDefaultPayload {
13467
14162
  appPermissionDefault?: AppPermissionDefault | null;
13468
14163
  appPermissionDefaultEdge?: AppPermissionDefaultEdge | null;
13469
14164
  }
14165
+ export interface CreateIdentityProviderPayload {
14166
+ clientMutationId?: string | null;
14167
+ /** The `IdentityProvider` that was created by this mutation. */
14168
+ identityProvider?: IdentityProvider | null;
14169
+ }
13470
14170
  export interface CreateRefPayload {
13471
14171
  clientMutationId?: string | null;
13472
14172
  /** The `Ref` that was created by this mutation. */
@@ -13539,6 +14239,12 @@ export interface CreateViewRulePayload {
13539
14239
  viewRule?: ViewRule | null;
13540
14240
  viewRuleEdge?: ViewRuleEdge | null;
13541
14241
  }
14242
+ export interface CreateIdentityProvidersModulePayload {
14243
+ clientMutationId?: string | null;
14244
+ /** The `IdentityProvidersModule` that was created by this mutation. */
14245
+ identityProvidersModule?: IdentityProvidersModule | null;
14246
+ identityProvidersModuleEdge?: IdentityProvidersModuleEdge | null;
14247
+ }
13542
14248
  export interface CreateSessionSecretsModulePayload {
13543
14249
  clientMutationId?: string | null;
13544
14250
  /** The `SessionSecretsModule` that was created by this mutation. */
@@ -13640,12 +14346,6 @@ export interface CreateOrgOwnerGrantPayload {
13640
14346
  orgOwnerGrant?: OrgOwnerGrant | null;
13641
14347
  orgOwnerGrantEdge?: OrgOwnerGrantEdge | null;
13642
14348
  }
13643
- export interface CreateCryptoAddressPayload {
13644
- clientMutationId?: string | null;
13645
- /** The `CryptoAddress` that was created by this mutation. */
13646
- cryptoAddress?: CryptoAddress | null;
13647
- cryptoAddressEdge?: CryptoAddressEdge | null;
13648
- }
13649
14349
  export interface CreateUserConnectedAccountPayload {
13650
14350
  clientMutationId?: string | null;
13651
14351
  /** The `UserConnectedAccount` that was created by this mutation. */
@@ -13669,11 +14369,11 @@ export interface CreateCryptoAddressesModulePayload {
13669
14369
  cryptoAddressesModule?: CryptoAddressesModule | null;
13670
14370
  cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null;
13671
14371
  }
13672
- export interface CreatePhoneNumberPayload {
14372
+ export interface CreateCryptoAddressPayload {
13673
14373
  clientMutationId?: string | null;
13674
- /** The `PhoneNumber` that was created by this mutation. */
13675
- phoneNumber?: PhoneNumber | null;
13676
- phoneNumberEdge?: PhoneNumberEdge | null;
14374
+ /** The `CryptoAddress` that was created by this mutation. */
14375
+ cryptoAddress?: CryptoAddress | null;
14376
+ cryptoAddressEdge?: CryptoAddressEdge | null;
13677
14377
  }
13678
14378
  export interface CreateAppPermissionPayload {
13679
14379
  clientMutationId?: string | null;
@@ -13723,6 +14423,12 @@ export interface CreateAppMembershipDefaultPayload {
13723
14423
  appMembershipDefault?: AppMembershipDefault | null;
13724
14424
  appMembershipDefaultEdge?: AppMembershipDefaultEdge | null;
13725
14425
  }
14426
+ export interface CreateOrgMembershipDefaultPayload {
14427
+ clientMutationId?: string | null;
14428
+ /** The `OrgMembershipDefault` that was created by this mutation. */
14429
+ orgMembershipDefault?: OrgMembershipDefault | null;
14430
+ orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null;
14431
+ }
13726
14432
  export interface CreateFullTextSearchPayload {
13727
14433
  clientMutationId?: string | null;
13728
14434
  /** The `FullTextSearch` that was created by this mutation. */
@@ -13753,6 +14459,12 @@ export interface CreateOrgChartEdgeGrantPayload {
13753
14459
  orgChartEdgeGrant?: OrgChartEdgeGrant | null;
13754
14460
  orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null;
13755
14461
  }
14462
+ export interface CreatePhoneNumberPayload {
14463
+ clientMutationId?: string | null;
14464
+ /** The `PhoneNumber` that was created by this mutation. */
14465
+ phoneNumber?: PhoneNumber | null;
14466
+ phoneNumberEdge?: PhoneNumberEdge | null;
14467
+ }
13756
14468
  export interface CreateOrgLimitPayload {
13757
14469
  clientMutationId?: string | null;
13758
14470
  /** The `OrgLimit` that was created by this mutation. */
@@ -13795,12 +14507,6 @@ export interface CreateOrgGrantPayload {
13795
14507
  orgGrant?: OrgGrant | null;
13796
14508
  orgGrantEdge?: OrgGrantEdge | null;
13797
14509
  }
13798
- export interface CreateOrgMembershipDefaultPayload {
13799
- clientMutationId?: string | null;
13800
- /** The `OrgMembershipDefault` that was created by this mutation. */
13801
- orgMembershipDefault?: OrgMembershipDefault | null;
13802
- orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null;
13803
- }
13804
14510
  export interface CreateBlueprintConstructionPayload {
13805
14511
  clientMutationId?: string | null;
13806
14512
  /** The `BlueprintConstruction` that was created by this mutation. */
@@ -13837,12 +14543,6 @@ export interface CreateAppLevelPayload {
13837
14543
  appLevel?: AppLevel | null;
13838
14544
  appLevelEdge?: AppLevelEdge | null;
13839
14545
  }
13840
- export interface CreateEmailPayload {
13841
- clientMutationId?: string | null;
13842
- /** The `Email` that was created by this mutation. */
13843
- email?: Email | null;
13844
- emailEdge?: EmailEdge | null;
13845
- }
13846
14546
  export interface CreateBlueprintPayload {
13847
14547
  clientMutationId?: string | null;
13848
14548
  /** The `Blueprint` that was created by this mutation. */
@@ -13855,6 +14555,18 @@ export interface CreateDenormalizedTableFieldPayload {
13855
14555
  denormalizedTableField?: DenormalizedTableField | null;
13856
14556
  denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null;
13857
14557
  }
14558
+ export interface CreateNotificationsModulePayload {
14559
+ clientMutationId?: string | null;
14560
+ /** The `NotificationsModule` that was created by this mutation. */
14561
+ notificationsModule?: NotificationsModule | null;
14562
+ notificationsModuleEdge?: NotificationsModuleEdge | null;
14563
+ }
14564
+ export interface CreateEmailPayload {
14565
+ clientMutationId?: string | null;
14566
+ /** The `Email` that was created by this mutation. */
14567
+ email?: Email | null;
14568
+ emailEdge?: EmailEdge | null;
14569
+ }
13858
14570
  export interface CreateOrgMemberProfilePayload {
13859
14571
  clientMutationId?: string | null;
13860
14572
  /** The `OrgMemberProfile` that was created by this mutation. */
@@ -13866,6 +14578,18 @@ export interface CreateSqlActionPayload {
13866
14578
  /** The `SqlAction` that was created by this mutation. */
13867
14579
  sqlAction?: SqlAction | null;
13868
14580
  }
14581
+ export interface CreateSecureTableProvisionPayload {
14582
+ clientMutationId?: string | null;
14583
+ /** The `SecureTableProvision` that was created by this mutation. */
14584
+ secureTableProvision?: SecureTableProvision | null;
14585
+ secureTableProvisionEdge?: SecureTableProvisionEdge | null;
14586
+ }
14587
+ export interface CreateOrgMembershipSettingPayload {
14588
+ clientMutationId?: string | null;
14589
+ /** The `OrgMembershipSetting` that was created by this mutation. */
14590
+ orgMembershipSetting?: OrgMembershipSetting | null;
14591
+ orgMembershipSettingEdge?: OrgMembershipSettingEdge | null;
14592
+ }
13869
14593
  export interface CreateDatabaseTransferPayload {
13870
14594
  clientMutationId?: string | null;
13871
14595
  /** The `DatabaseTransfer` that was created by this mutation. */
@@ -13908,6 +14632,12 @@ export interface CreateViewPayload {
13908
14632
  view?: View | null;
13909
14633
  viewEdge?: ViewEdge | null;
13910
14634
  }
14635
+ export interface CreateWebauthnAuthModulePayload {
14636
+ clientMutationId?: string | null;
14637
+ /** The `WebauthnAuthModule` that was created by this mutation. */
14638
+ webauthnAuthModule?: WebauthnAuthModule | null;
14639
+ webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null;
14640
+ }
13911
14641
  export interface CreateAppPayload {
13912
14642
  clientMutationId?: string | null;
13913
14643
  /** The `App` that was created by this mutation. */
@@ -13961,12 +14691,6 @@ export interface CreatePolicyPayload {
13961
14691
  policy?: Policy | null;
13962
14692
  policyEdge?: PolicyEdge | null;
13963
14693
  }
13964
- export interface CreateEntityTypeProvisionPayload {
13965
- clientMutationId?: string | null;
13966
- /** The `EntityTypeProvision` that was created by this mutation. */
13967
- entityTypeProvision?: EntityTypeProvision | null;
13968
- entityTypeProvisionEdge?: EntityTypeProvisionEdge | null;
13969
- }
13970
14694
  export interface CreatePermissionsModulePayload {
13971
14695
  clientMutationId?: string | null;
13972
14696
  /** The `PermissionsModule` that was created by this mutation. */
@@ -14015,18 +14739,18 @@ export interface CreateIndexPayload {
14015
14739
  index?: Index | null;
14016
14740
  indexEdge?: IndexEdge | null;
14017
14741
  }
14742
+ export interface CreateWebauthnCredentialPayload {
14743
+ clientMutationId?: string | null;
14744
+ /** The `WebauthnCredential` that was created by this mutation. */
14745
+ webauthnCredential?: WebauthnCredential | null;
14746
+ webauthnCredentialEdge?: WebauthnCredentialEdge | null;
14747
+ }
14018
14748
  export interface CreateOrgInvitePayload {
14019
14749
  clientMutationId?: string | null;
14020
14750
  /** The `OrgInvite` that was created by this mutation. */
14021
14751
  orgInvite?: OrgInvite | null;
14022
14752
  orgInviteEdge?: OrgInviteEdge | null;
14023
14753
  }
14024
- export interface CreateSecureTableProvisionPayload {
14025
- clientMutationId?: string | null;
14026
- /** The `SecureTableProvision` that was created by this mutation. */
14027
- secureTableProvision?: SecureTableProvision | null;
14028
- secureTableProvisionEdge?: SecureTableProvisionEdge | null;
14029
- }
14030
14754
  export interface CreateOrgMembershipPayload {
14031
14755
  clientMutationId?: string | null;
14032
14756
  /** The `OrgMembership` that was created by this mutation. */
@@ -14051,6 +14775,12 @@ export interface CreateForeignKeyConstraintPayload {
14051
14775
  foreignKeyConstraint?: ForeignKeyConstraint | null;
14052
14776
  foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null;
14053
14777
  }
14778
+ export interface CreateEntityTypeProvisionPayload {
14779
+ clientMutationId?: string | null;
14780
+ /** The `EntityTypeProvision` that was created by this mutation. */
14781
+ entityTypeProvision?: EntityTypeProvision | null;
14782
+ entityTypeProvisionEdge?: EntityTypeProvisionEdge | null;
14783
+ }
14054
14784
  export interface CreateStorageModulePayload {
14055
14785
  clientMutationId?: string | null;
14056
14786
  /** The `StorageModule` that was created by this mutation. */
@@ -14063,6 +14793,12 @@ export interface CreateTablePayload {
14063
14793
  table?: Table | null;
14064
14794
  tableEdge?: TableEdge | null;
14065
14795
  }
14796
+ export interface CreateRelationProvisionPayload {
14797
+ clientMutationId?: string | null;
14798
+ /** The `RelationProvision` that was created by this mutation. */
14799
+ relationProvision?: RelationProvision | null;
14800
+ relationProvisionEdge?: RelationProvisionEdge | null;
14801
+ }
14066
14802
  export interface CreateLevelsModulePayload {
14067
14803
  clientMutationId?: string | null;
14068
14804
  /** The `LevelsModule` that was created by this mutation. */
@@ -14081,12 +14817,6 @@ export interface CreateFieldPayload {
14081
14817
  field?: Field | null;
14082
14818
  fieldEdge?: FieldEdge | null;
14083
14819
  }
14084
- export interface CreateRelationProvisionPayload {
14085
- clientMutationId?: string | null;
14086
- /** The `RelationProvision` that was created by this mutation. */
14087
- relationProvision?: RelationProvision | null;
14088
- relationProvisionEdge?: RelationProvisionEdge | null;
14089
- }
14090
14820
  export interface CreateMembershipsModulePayload {
14091
14821
  clientMutationId?: string | null;
14092
14822
  /** The `MembershipsModule` that was created by this mutation. */
@@ -14201,6 +14931,12 @@ export interface UpdateViewRulePayload {
14201
14931
  viewRule?: ViewRule | null;
14202
14932
  viewRuleEdge?: ViewRuleEdge | null;
14203
14933
  }
14934
+ export interface UpdateIdentityProvidersModulePayload {
14935
+ clientMutationId?: string | null;
14936
+ /** The `IdentityProvidersModule` that was updated by this mutation. */
14937
+ identityProvidersModule?: IdentityProvidersModule | null;
14938
+ identityProvidersModuleEdge?: IdentityProvidersModuleEdge | null;
14939
+ }
14204
14940
  export interface UpdateSessionSecretsModulePayload {
14205
14941
  clientMutationId?: string | null;
14206
14942
  /** The `SessionSecretsModule` that was updated by this mutation. */
@@ -14297,12 +15033,6 @@ export interface UpdateOrgOwnerGrantPayload {
14297
15033
  orgOwnerGrant?: OrgOwnerGrant | null;
14298
15034
  orgOwnerGrantEdge?: OrgOwnerGrantEdge | null;
14299
15035
  }
14300
- export interface UpdateCryptoAddressPayload {
14301
- clientMutationId?: string | null;
14302
- /** The `CryptoAddress` that was updated by this mutation. */
14303
- cryptoAddress?: CryptoAddress | null;
14304
- cryptoAddressEdge?: CryptoAddressEdge | null;
14305
- }
14306
15036
  export interface UpdateObjectPayload {
14307
15037
  clientMutationId?: string | null;
14308
15038
  /** The `Object` that was updated by this mutation. */
@@ -14321,11 +15051,11 @@ export interface UpdateCryptoAddressesModulePayload {
14321
15051
  cryptoAddressesModule?: CryptoAddressesModule | null;
14322
15052
  cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null;
14323
15053
  }
14324
- export interface UpdatePhoneNumberPayload {
15054
+ export interface UpdateCryptoAddressPayload {
14325
15055
  clientMutationId?: string | null;
14326
- /** The `PhoneNumber` that was updated by this mutation. */
14327
- phoneNumber?: PhoneNumber | null;
14328
- phoneNumberEdge?: PhoneNumberEdge | null;
15056
+ /** The `CryptoAddress` that was updated by this mutation. */
15057
+ cryptoAddress?: CryptoAddress | null;
15058
+ cryptoAddressEdge?: CryptoAddressEdge | null;
14329
15059
  }
14330
15060
  export interface UpdateAppPermissionPayload {
14331
15061
  clientMutationId?: string | null;
@@ -14375,6 +15105,12 @@ export interface UpdateAppMembershipDefaultPayload {
14375
15105
  appMembershipDefault?: AppMembershipDefault | null;
14376
15106
  appMembershipDefaultEdge?: AppMembershipDefaultEdge | null;
14377
15107
  }
15108
+ export interface UpdateOrgMembershipDefaultPayload {
15109
+ clientMutationId?: string | null;
15110
+ /** The `OrgMembershipDefault` that was updated by this mutation. */
15111
+ orgMembershipDefault?: OrgMembershipDefault | null;
15112
+ orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null;
15113
+ }
14378
15114
  export interface UpdateFullTextSearchPayload {
14379
15115
  clientMutationId?: string | null;
14380
15116
  /** The `FullTextSearch` that was updated by this mutation. */
@@ -14405,6 +15141,12 @@ export interface UpdateOrgChartEdgeGrantPayload {
14405
15141
  orgChartEdgeGrant?: OrgChartEdgeGrant | null;
14406
15142
  orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null;
14407
15143
  }
15144
+ export interface UpdatePhoneNumberPayload {
15145
+ clientMutationId?: string | null;
15146
+ /** The `PhoneNumber` that was updated by this mutation. */
15147
+ phoneNumber?: PhoneNumber | null;
15148
+ phoneNumberEdge?: PhoneNumberEdge | null;
15149
+ }
14408
15150
  export interface UpdateOrgLimitPayload {
14409
15151
  clientMutationId?: string | null;
14410
15152
  /** The `OrgLimit` that was updated by this mutation. */
@@ -14447,12 +15189,6 @@ export interface UpdateOrgGrantPayload {
14447
15189
  orgGrant?: OrgGrant | null;
14448
15190
  orgGrantEdge?: OrgGrantEdge | null;
14449
15191
  }
14450
- export interface UpdateOrgMembershipDefaultPayload {
14451
- clientMutationId?: string | null;
14452
- /** The `OrgMembershipDefault` that was updated by this mutation. */
14453
- orgMembershipDefault?: OrgMembershipDefault | null;
14454
- orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null;
14455
- }
14456
15192
  export interface UpdateBlueprintConstructionPayload {
14457
15193
  clientMutationId?: string | null;
14458
15194
  /** The `BlueprintConstruction` that was updated by this mutation. */
@@ -14489,12 +15225,6 @@ export interface UpdateAppLevelPayload {
14489
15225
  appLevel?: AppLevel | null;
14490
15226
  appLevelEdge?: AppLevelEdge | null;
14491
15227
  }
14492
- export interface UpdateEmailPayload {
14493
- clientMutationId?: string | null;
14494
- /** The `Email` that was updated by this mutation. */
14495
- email?: Email | null;
14496
- emailEdge?: EmailEdge | null;
14497
- }
14498
15228
  export interface UpdateBlueprintPayload {
14499
15229
  clientMutationId?: string | null;
14500
15230
  /** The `Blueprint` that was updated by this mutation. */
@@ -14507,12 +15237,36 @@ export interface UpdateDenormalizedTableFieldPayload {
14507
15237
  denormalizedTableField?: DenormalizedTableField | null;
14508
15238
  denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null;
14509
15239
  }
15240
+ export interface UpdateNotificationsModulePayload {
15241
+ clientMutationId?: string | null;
15242
+ /** The `NotificationsModule` that was updated by this mutation. */
15243
+ notificationsModule?: NotificationsModule | null;
15244
+ notificationsModuleEdge?: NotificationsModuleEdge | null;
15245
+ }
15246
+ export interface UpdateEmailPayload {
15247
+ clientMutationId?: string | null;
15248
+ /** The `Email` that was updated by this mutation. */
15249
+ email?: Email | null;
15250
+ emailEdge?: EmailEdge | null;
15251
+ }
14510
15252
  export interface UpdateOrgMemberProfilePayload {
14511
15253
  clientMutationId?: string | null;
14512
15254
  /** The `OrgMemberProfile` that was updated by this mutation. */
14513
15255
  orgMemberProfile?: OrgMemberProfile | null;
14514
15256
  orgMemberProfileEdge?: OrgMemberProfileEdge | null;
14515
15257
  }
15258
+ export interface UpdateSecureTableProvisionPayload {
15259
+ clientMutationId?: string | null;
15260
+ /** The `SecureTableProvision` that was updated by this mutation. */
15261
+ secureTableProvision?: SecureTableProvision | null;
15262
+ secureTableProvisionEdge?: SecureTableProvisionEdge | null;
15263
+ }
15264
+ export interface UpdateOrgMembershipSettingPayload {
15265
+ clientMutationId?: string | null;
15266
+ /** The `OrgMembershipSetting` that was updated by this mutation. */
15267
+ orgMembershipSetting?: OrgMembershipSetting | null;
15268
+ orgMembershipSettingEdge?: OrgMembershipSettingEdge | null;
15269
+ }
14516
15270
  export interface UpdateDatabaseTransferPayload {
14517
15271
  clientMutationId?: string | null;
14518
15272
  /** The `DatabaseTransfer` that was updated by this mutation. */
@@ -14555,6 +15309,12 @@ export interface UpdateViewPayload {
14555
15309
  view?: View | null;
14556
15310
  viewEdge?: ViewEdge | null;
14557
15311
  }
15312
+ export interface UpdateWebauthnAuthModulePayload {
15313
+ clientMutationId?: string | null;
15314
+ /** The `WebauthnAuthModule` that was updated by this mutation. */
15315
+ webauthnAuthModule?: WebauthnAuthModule | null;
15316
+ webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null;
15317
+ }
14558
15318
  export interface UpdateAppPayload {
14559
15319
  clientMutationId?: string | null;
14560
15320
  /** The `App` that was updated by this mutation. */
@@ -14603,12 +15363,6 @@ export interface UpdatePolicyPayload {
14603
15363
  policy?: Policy | null;
14604
15364
  policyEdge?: PolicyEdge | null;
14605
15365
  }
14606
- export interface UpdateEntityTypeProvisionPayload {
14607
- clientMutationId?: string | null;
14608
- /** The `EntityTypeProvision` that was updated by this mutation. */
14609
- entityTypeProvision?: EntityTypeProvision | null;
14610
- entityTypeProvisionEdge?: EntityTypeProvisionEdge | null;
14611
- }
14612
15366
  export interface UpdatePermissionsModulePayload {
14613
15367
  clientMutationId?: string | null;
14614
15368
  /** The `PermissionsModule` that was updated by this mutation. */
@@ -14657,18 +15411,18 @@ export interface UpdateIndexPayload {
14657
15411
  index?: Index | null;
14658
15412
  indexEdge?: IndexEdge | null;
14659
15413
  }
15414
+ export interface UpdateWebauthnCredentialPayload {
15415
+ clientMutationId?: string | null;
15416
+ /** The `WebauthnCredential` that was updated by this mutation. */
15417
+ webauthnCredential?: WebauthnCredential | null;
15418
+ webauthnCredentialEdge?: WebauthnCredentialEdge | null;
15419
+ }
14660
15420
  export interface UpdateOrgInvitePayload {
14661
15421
  clientMutationId?: string | null;
14662
15422
  /** The `OrgInvite` that was updated by this mutation. */
14663
15423
  orgInvite?: OrgInvite | null;
14664
15424
  orgInviteEdge?: OrgInviteEdge | null;
14665
15425
  }
14666
- export interface UpdateSecureTableProvisionPayload {
14667
- clientMutationId?: string | null;
14668
- /** The `SecureTableProvision` that was updated by this mutation. */
14669
- secureTableProvision?: SecureTableProvision | null;
14670
- secureTableProvisionEdge?: SecureTableProvisionEdge | null;
14671
- }
14672
15426
  export interface UpdateOrgMembershipPayload {
14673
15427
  clientMutationId?: string | null;
14674
15428
  /** The `OrgMembership` that was updated by this mutation. */
@@ -14693,6 +15447,12 @@ export interface UpdateForeignKeyConstraintPayload {
14693
15447
  foreignKeyConstraint?: ForeignKeyConstraint | null;
14694
15448
  foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null;
14695
15449
  }
15450
+ export interface UpdateEntityTypeProvisionPayload {
15451
+ clientMutationId?: string | null;
15452
+ /** The `EntityTypeProvision` that was updated by this mutation. */
15453
+ entityTypeProvision?: EntityTypeProvision | null;
15454
+ entityTypeProvisionEdge?: EntityTypeProvisionEdge | null;
15455
+ }
14696
15456
  export interface UpdateStorageModulePayload {
14697
15457
  clientMutationId?: string | null;
14698
15458
  /** The `StorageModule` that was updated by this mutation. */
@@ -14705,6 +15465,12 @@ export interface UpdateTablePayload {
14705
15465
  table?: Table | null;
14706
15466
  tableEdge?: TableEdge | null;
14707
15467
  }
15468
+ export interface UpdateRelationProvisionPayload {
15469
+ clientMutationId?: string | null;
15470
+ /** The `RelationProvision` that was updated by this mutation. */
15471
+ relationProvision?: RelationProvision | null;
15472
+ relationProvisionEdge?: RelationProvisionEdge | null;
15473
+ }
14708
15474
  export interface UpdateLevelsModulePayload {
14709
15475
  clientMutationId?: string | null;
14710
15476
  /** The `LevelsModule` that was updated by this mutation. */
@@ -14723,12 +15489,6 @@ export interface UpdateFieldPayload {
14723
15489
  field?: Field | null;
14724
15490
  fieldEdge?: FieldEdge | null;
14725
15491
  }
14726
- export interface UpdateRelationProvisionPayload {
14727
- clientMutationId?: string | null;
14728
- /** The `RelationProvision` that was updated by this mutation. */
14729
- relationProvision?: RelationProvision | null;
14730
- relationProvisionEdge?: RelationProvisionEdge | null;
14731
- }
14732
15492
  export interface UpdateMembershipsModulePayload {
14733
15493
  clientMutationId?: string | null;
14734
15494
  /** The `MembershipsModule` that was updated by this mutation. */
@@ -14843,6 +15603,12 @@ export interface DeleteViewRulePayload {
14843
15603
  viewRule?: ViewRule | null;
14844
15604
  viewRuleEdge?: ViewRuleEdge | null;
14845
15605
  }
15606
+ export interface DeleteIdentityProvidersModulePayload {
15607
+ clientMutationId?: string | null;
15608
+ /** The `IdentityProvidersModule` that was deleted by this mutation. */
15609
+ identityProvidersModule?: IdentityProvidersModule | null;
15610
+ identityProvidersModuleEdge?: IdentityProvidersModuleEdge | null;
15611
+ }
14846
15612
  export interface DeleteSessionSecretsModulePayload {
14847
15613
  clientMutationId?: string | null;
14848
15614
  /** The `SessionSecretsModule` that was deleted by this mutation. */
@@ -14939,12 +15705,6 @@ export interface DeleteOrgOwnerGrantPayload {
14939
15705
  orgOwnerGrant?: OrgOwnerGrant | null;
14940
15706
  orgOwnerGrantEdge?: OrgOwnerGrantEdge | null;
14941
15707
  }
14942
- export interface DeleteCryptoAddressPayload {
14943
- clientMutationId?: string | null;
14944
- /** The `CryptoAddress` that was deleted by this mutation. */
14945
- cryptoAddress?: CryptoAddress | null;
14946
- cryptoAddressEdge?: CryptoAddressEdge | null;
14947
- }
14948
15708
  export interface DeleteObjectPayload {
14949
15709
  clientMutationId?: string | null;
14950
15710
  /** The `Object` that was deleted by this mutation. */
@@ -14963,11 +15723,11 @@ export interface DeleteCryptoAddressesModulePayload {
14963
15723
  cryptoAddressesModule?: CryptoAddressesModule | null;
14964
15724
  cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null;
14965
15725
  }
14966
- export interface DeletePhoneNumberPayload {
15726
+ export interface DeleteCryptoAddressPayload {
14967
15727
  clientMutationId?: string | null;
14968
- /** The `PhoneNumber` that was deleted by this mutation. */
14969
- phoneNumber?: PhoneNumber | null;
14970
- phoneNumberEdge?: PhoneNumberEdge | null;
15728
+ /** The `CryptoAddress` that was deleted by this mutation. */
15729
+ cryptoAddress?: CryptoAddress | null;
15730
+ cryptoAddressEdge?: CryptoAddressEdge | null;
14971
15731
  }
14972
15732
  export interface DeleteAppPermissionPayload {
14973
15733
  clientMutationId?: string | null;
@@ -15017,6 +15777,12 @@ export interface DeleteAppMembershipDefaultPayload {
15017
15777
  appMembershipDefault?: AppMembershipDefault | null;
15018
15778
  appMembershipDefaultEdge?: AppMembershipDefaultEdge | null;
15019
15779
  }
15780
+ export interface DeleteOrgMembershipDefaultPayload {
15781
+ clientMutationId?: string | null;
15782
+ /** The `OrgMembershipDefault` that was deleted by this mutation. */
15783
+ orgMembershipDefault?: OrgMembershipDefault | null;
15784
+ orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null;
15785
+ }
15020
15786
  export interface DeleteFullTextSearchPayload {
15021
15787
  clientMutationId?: string | null;
15022
15788
  /** The `FullTextSearch` that was deleted by this mutation. */
@@ -15047,6 +15813,12 @@ export interface DeleteOrgChartEdgeGrantPayload {
15047
15813
  orgChartEdgeGrant?: OrgChartEdgeGrant | null;
15048
15814
  orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null;
15049
15815
  }
15816
+ export interface DeletePhoneNumberPayload {
15817
+ clientMutationId?: string | null;
15818
+ /** The `PhoneNumber` that was deleted by this mutation. */
15819
+ phoneNumber?: PhoneNumber | null;
15820
+ phoneNumberEdge?: PhoneNumberEdge | null;
15821
+ }
15050
15822
  export interface DeleteOrgLimitPayload {
15051
15823
  clientMutationId?: string | null;
15052
15824
  /** The `OrgLimit` that was deleted by this mutation. */
@@ -15089,12 +15861,6 @@ export interface DeleteOrgGrantPayload {
15089
15861
  orgGrant?: OrgGrant | null;
15090
15862
  orgGrantEdge?: OrgGrantEdge | null;
15091
15863
  }
15092
- export interface DeleteOrgMembershipDefaultPayload {
15093
- clientMutationId?: string | null;
15094
- /** The `OrgMembershipDefault` that was deleted by this mutation. */
15095
- orgMembershipDefault?: OrgMembershipDefault | null;
15096
- orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null;
15097
- }
15098
15864
  export interface DeleteBlueprintConstructionPayload {
15099
15865
  clientMutationId?: string | null;
15100
15866
  /** The `BlueprintConstruction` that was deleted by this mutation. */
@@ -15131,12 +15897,6 @@ export interface DeleteAppLevelPayload {
15131
15897
  appLevel?: AppLevel | null;
15132
15898
  appLevelEdge?: AppLevelEdge | null;
15133
15899
  }
15134
- export interface DeleteEmailPayload {
15135
- clientMutationId?: string | null;
15136
- /** The `Email` that was deleted by this mutation. */
15137
- email?: Email | null;
15138
- emailEdge?: EmailEdge | null;
15139
- }
15140
15900
  export interface DeleteBlueprintPayload {
15141
15901
  clientMutationId?: string | null;
15142
15902
  /** The `Blueprint` that was deleted by this mutation. */
@@ -15149,12 +15909,36 @@ export interface DeleteDenormalizedTableFieldPayload {
15149
15909
  denormalizedTableField?: DenormalizedTableField | null;
15150
15910
  denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null;
15151
15911
  }
15912
+ export interface DeleteNotificationsModulePayload {
15913
+ clientMutationId?: string | null;
15914
+ /** The `NotificationsModule` that was deleted by this mutation. */
15915
+ notificationsModule?: NotificationsModule | null;
15916
+ notificationsModuleEdge?: NotificationsModuleEdge | null;
15917
+ }
15918
+ export interface DeleteEmailPayload {
15919
+ clientMutationId?: string | null;
15920
+ /** The `Email` that was deleted by this mutation. */
15921
+ email?: Email | null;
15922
+ emailEdge?: EmailEdge | null;
15923
+ }
15152
15924
  export interface DeleteOrgMemberProfilePayload {
15153
15925
  clientMutationId?: string | null;
15154
15926
  /** The `OrgMemberProfile` that was deleted by this mutation. */
15155
15927
  orgMemberProfile?: OrgMemberProfile | null;
15156
15928
  orgMemberProfileEdge?: OrgMemberProfileEdge | null;
15157
15929
  }
15930
+ export interface DeleteSecureTableProvisionPayload {
15931
+ clientMutationId?: string | null;
15932
+ /** The `SecureTableProvision` that was deleted by this mutation. */
15933
+ secureTableProvision?: SecureTableProvision | null;
15934
+ secureTableProvisionEdge?: SecureTableProvisionEdge | null;
15935
+ }
15936
+ export interface DeleteOrgMembershipSettingPayload {
15937
+ clientMutationId?: string | null;
15938
+ /** The `OrgMembershipSetting` that was deleted by this mutation. */
15939
+ orgMembershipSetting?: OrgMembershipSetting | null;
15940
+ orgMembershipSettingEdge?: OrgMembershipSettingEdge | null;
15941
+ }
15158
15942
  export interface DeleteDatabaseTransferPayload {
15159
15943
  clientMutationId?: string | null;
15160
15944
  /** The `DatabaseTransfer` that was deleted by this mutation. */
@@ -15197,6 +15981,12 @@ export interface DeleteViewPayload {
15197
15981
  view?: View | null;
15198
15982
  viewEdge?: ViewEdge | null;
15199
15983
  }
15984
+ export interface DeleteWebauthnAuthModulePayload {
15985
+ clientMutationId?: string | null;
15986
+ /** The `WebauthnAuthModule` that was deleted by this mutation. */
15987
+ webauthnAuthModule?: WebauthnAuthModule | null;
15988
+ webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null;
15989
+ }
15200
15990
  export interface DeleteAppPayload {
15201
15991
  clientMutationId?: string | null;
15202
15992
  /** The `App` that was deleted by this mutation. */
@@ -15245,12 +16035,6 @@ export interface DeletePolicyPayload {
15245
16035
  policy?: Policy | null;
15246
16036
  policyEdge?: PolicyEdge | null;
15247
16037
  }
15248
- export interface DeleteEntityTypeProvisionPayload {
15249
- clientMutationId?: string | null;
15250
- /** The `EntityTypeProvision` that was deleted by this mutation. */
15251
- entityTypeProvision?: EntityTypeProvision | null;
15252
- entityTypeProvisionEdge?: EntityTypeProvisionEdge | null;
15253
- }
15254
16038
  export interface DeletePermissionsModulePayload {
15255
16039
  clientMutationId?: string | null;
15256
16040
  /** The `PermissionsModule` that was deleted by this mutation. */
@@ -15299,18 +16083,18 @@ export interface DeleteIndexPayload {
15299
16083
  index?: Index | null;
15300
16084
  indexEdge?: IndexEdge | null;
15301
16085
  }
16086
+ export interface DeleteWebauthnCredentialPayload {
16087
+ clientMutationId?: string | null;
16088
+ /** The `WebauthnCredential` that was deleted by this mutation. */
16089
+ webauthnCredential?: WebauthnCredential | null;
16090
+ webauthnCredentialEdge?: WebauthnCredentialEdge | null;
16091
+ }
15302
16092
  export interface DeleteOrgInvitePayload {
15303
16093
  clientMutationId?: string | null;
15304
16094
  /** The `OrgInvite` that was deleted by this mutation. */
15305
16095
  orgInvite?: OrgInvite | null;
15306
16096
  orgInviteEdge?: OrgInviteEdge | null;
15307
16097
  }
15308
- export interface DeleteSecureTableProvisionPayload {
15309
- clientMutationId?: string | null;
15310
- /** The `SecureTableProvision` that was deleted by this mutation. */
15311
- secureTableProvision?: SecureTableProvision | null;
15312
- secureTableProvisionEdge?: SecureTableProvisionEdge | null;
15313
- }
15314
16098
  export interface DeleteOrgMembershipPayload {
15315
16099
  clientMutationId?: string | null;
15316
16100
  /** The `OrgMembership` that was deleted by this mutation. */
@@ -15335,6 +16119,12 @@ export interface DeleteForeignKeyConstraintPayload {
15335
16119
  foreignKeyConstraint?: ForeignKeyConstraint | null;
15336
16120
  foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null;
15337
16121
  }
16122
+ export interface DeleteEntityTypeProvisionPayload {
16123
+ clientMutationId?: string | null;
16124
+ /** The `EntityTypeProvision` that was deleted by this mutation. */
16125
+ entityTypeProvision?: EntityTypeProvision | null;
16126
+ entityTypeProvisionEdge?: EntityTypeProvisionEdge | null;
16127
+ }
15338
16128
  export interface DeleteStorageModulePayload {
15339
16129
  clientMutationId?: string | null;
15340
16130
  /** The `StorageModule` that was deleted by this mutation. */
@@ -15347,6 +16137,12 @@ export interface DeleteTablePayload {
15347
16137
  table?: Table | null;
15348
16138
  tableEdge?: TableEdge | null;
15349
16139
  }
16140
+ export interface DeleteRelationProvisionPayload {
16141
+ clientMutationId?: string | null;
16142
+ /** The `RelationProvision` that was deleted by this mutation. */
16143
+ relationProvision?: RelationProvision | null;
16144
+ relationProvisionEdge?: RelationProvisionEdge | null;
16145
+ }
15350
16146
  export interface DeleteLevelsModulePayload {
15351
16147
  clientMutationId?: string | null;
15352
16148
  /** The `LevelsModule` that was deleted by this mutation. */
@@ -15365,12 +16161,6 @@ export interface DeleteFieldPayload {
15365
16161
  field?: Field | null;
15366
16162
  fieldEdge?: FieldEdge | null;
15367
16163
  }
15368
- export interface DeleteRelationProvisionPayload {
15369
- clientMutationId?: string | null;
15370
- /** The `RelationProvision` that was deleted by this mutation. */
15371
- relationProvision?: RelationProvision | null;
15372
- relationProvisionEdge?: RelationProvisionEdge | null;
15373
- }
15374
16164
  export interface DeleteMembershipsModulePayload {
15375
16165
  clientMutationId?: string | null;
15376
16166
  /** The `MembershipsModule` that was deleted by this mutation. */
@@ -15500,6 +16290,12 @@ export interface AppPermissionDefaultEdge {
15500
16290
  /** The `AppPermissionDefault` at the end of the edge. */
15501
16291
  node?: AppPermissionDefault | null;
15502
16292
  }
16293
+ /** A `IdentityProvider` edge in the connection. */
16294
+ export interface IdentityProviderEdge {
16295
+ cursor?: string | null;
16296
+ /** The `IdentityProvider` at the end of the edge. */
16297
+ node?: IdentityProvider | null;
16298
+ }
15503
16299
  /** A `Ref` edge in the connection. */
15504
16300
  export interface RefEdge {
15505
16301
  cursor?: string | null;
@@ -15572,6 +16368,12 @@ export interface ViewRuleEdge {
15572
16368
  /** The `ViewRule` at the end of the edge. */
15573
16369
  node?: ViewRule | null;
15574
16370
  }
16371
+ /** A `IdentityProvidersModule` edge in the connection. */
16372
+ export interface IdentityProvidersModuleEdge {
16373
+ cursor?: string | null;
16374
+ /** The `IdentityProvidersModule` at the end of the edge. */
16375
+ node?: IdentityProvidersModule | null;
16376
+ }
15575
16377
  /** A `SessionSecretsModule` edge in the connection. */
15576
16378
  export interface SessionSecretsModuleEdge {
15577
16379
  cursor?: string | null;
@@ -15674,12 +16476,6 @@ export interface OrgOwnerGrantEdge {
15674
16476
  /** The `OrgOwnerGrant` at the end of the edge. */
15675
16477
  node?: OrgOwnerGrant | null;
15676
16478
  }
15677
- /** A `CryptoAddress` edge in the connection. */
15678
- export interface CryptoAddressEdge {
15679
- cursor?: string | null;
15680
- /** The `CryptoAddress` at the end of the edge. */
15681
- node?: CryptoAddress | null;
15682
- }
15683
16479
  /** A `UserConnectedAccount` edge in the connection. */
15684
16480
  export interface UserConnectedAccountEdge {
15685
16481
  cursor?: string | null;
@@ -15698,11 +16494,11 @@ export interface CryptoAddressesModuleEdge {
15698
16494
  /** The `CryptoAddressesModule` at the end of the edge. */
15699
16495
  node?: CryptoAddressesModule | null;
15700
16496
  }
15701
- /** A `PhoneNumber` edge in the connection. */
15702
- export interface PhoneNumberEdge {
16497
+ /** A `CryptoAddress` edge in the connection. */
16498
+ export interface CryptoAddressEdge {
15703
16499
  cursor?: string | null;
15704
- /** The `PhoneNumber` at the end of the edge. */
15705
- node?: PhoneNumber | null;
16500
+ /** The `CryptoAddress` at the end of the edge. */
16501
+ node?: CryptoAddress | null;
15706
16502
  }
15707
16503
  /** A `AppLimit` edge in the connection. */
15708
16504
  export interface AppLimitEdge {
@@ -15740,6 +16536,12 @@ export interface AppMembershipDefaultEdge {
15740
16536
  /** The `AppMembershipDefault` at the end of the edge. */
15741
16537
  node?: AppMembershipDefault | null;
15742
16538
  }
16539
+ /** A `OrgMembershipDefault` edge in the connection. */
16540
+ export interface OrgMembershipDefaultEdge {
16541
+ cursor?: string | null;
16542
+ /** The `OrgMembershipDefault` at the end of the edge. */
16543
+ node?: OrgMembershipDefault | null;
16544
+ }
15743
16545
  /** A `FullTextSearch` edge in the connection. */
15744
16546
  export interface FullTextSearchEdge {
15745
16547
  cursor?: string | null;
@@ -15770,6 +16572,12 @@ export interface OrgChartEdgeGrantEdge {
15770
16572
  /** The `OrgChartEdgeGrant` at the end of the edge. */
15771
16573
  node?: OrgChartEdgeGrant | null;
15772
16574
  }
16575
+ /** A `PhoneNumber` edge in the connection. */
16576
+ export interface PhoneNumberEdge {
16577
+ cursor?: string | null;
16578
+ /** The `PhoneNumber` at the end of the edge. */
16579
+ node?: PhoneNumber | null;
16580
+ }
15773
16581
  /** A `OrgLimit` edge in the connection. */
15774
16582
  export interface OrgLimitEdge {
15775
16583
  cursor?: string | null;
@@ -15812,12 +16620,6 @@ export interface OrgGrantEdge {
15812
16620
  /** The `OrgGrant` at the end of the edge. */
15813
16621
  node?: OrgGrant | null;
15814
16622
  }
15815
- /** A `OrgMembershipDefault` edge in the connection. */
15816
- export interface OrgMembershipDefaultEdge {
15817
- cursor?: string | null;
15818
- /** The `OrgMembershipDefault` at the end of the edge. */
15819
- node?: OrgMembershipDefault | null;
15820
- }
15821
16623
  /** A `BlueprintConstruction` edge in the connection. */
15822
16624
  export interface BlueprintConstructionEdge {
15823
16625
  cursor?: string | null;
@@ -15848,12 +16650,6 @@ export interface AppLevelEdge {
15848
16650
  /** The `AppLevel` at the end of the edge. */
15849
16651
  node?: AppLevel | null;
15850
16652
  }
15851
- /** A `Email` edge in the connection. */
15852
- export interface EmailEdge {
15853
- cursor?: string | null;
15854
- /** The `Email` at the end of the edge. */
15855
- node?: Email | null;
15856
- }
15857
16653
  /** A `Blueprint` edge in the connection. */
15858
16654
  export interface BlueprintEdge {
15859
16655
  cursor?: string | null;
@@ -15866,6 +16662,18 @@ export interface DenormalizedTableFieldEdge {
15866
16662
  /** The `DenormalizedTableField` at the end of the edge. */
15867
16663
  node?: DenormalizedTableField | null;
15868
16664
  }
16665
+ /** A `NotificationsModule` edge in the connection. */
16666
+ export interface NotificationsModuleEdge {
16667
+ cursor?: string | null;
16668
+ /** The `NotificationsModule` at the end of the edge. */
16669
+ node?: NotificationsModule | null;
16670
+ }
16671
+ /** A `Email` edge in the connection. */
16672
+ export interface EmailEdge {
16673
+ cursor?: string | null;
16674
+ /** The `Email` at the end of the edge. */
16675
+ node?: Email | null;
16676
+ }
15869
16677
  /** A `OrgMemberProfile` edge in the connection. */
15870
16678
  export interface OrgMemberProfileEdge {
15871
16679
  cursor?: string | null;
@@ -15878,6 +16686,18 @@ export interface SqlActionEdge {
15878
16686
  /** The `SqlAction` at the end of the edge. */
15879
16687
  node?: SqlAction | null;
15880
16688
  }
16689
+ /** A `SecureTableProvision` edge in the connection. */
16690
+ export interface SecureTableProvisionEdge {
16691
+ cursor?: string | null;
16692
+ /** The `SecureTableProvision` at the end of the edge. */
16693
+ node?: SecureTableProvision | null;
16694
+ }
16695
+ /** A `OrgMembershipSetting` edge in the connection. */
16696
+ export interface OrgMembershipSettingEdge {
16697
+ cursor?: string | null;
16698
+ /** The `OrgMembershipSetting` at the end of the edge. */
16699
+ node?: OrgMembershipSetting | null;
16700
+ }
15881
16701
  /** A `DatabaseTransfer` edge in the connection. */
15882
16702
  export interface DatabaseTransferEdge {
15883
16703
  cursor?: string | null;
@@ -15920,6 +16740,12 @@ export interface ViewEdge {
15920
16740
  /** The `View` at the end of the edge. */
15921
16741
  node?: View | null;
15922
16742
  }
16743
+ /** A `WebauthnAuthModule` edge in the connection. */
16744
+ export interface WebauthnAuthModuleEdge {
16745
+ cursor?: string | null;
16746
+ /** The `WebauthnAuthModule` at the end of the edge. */
16747
+ node?: WebauthnAuthModule | null;
16748
+ }
15923
16749
  /** A `App` edge in the connection. */
15924
16750
  export interface AppEdge {
15925
16751
  cursor?: string | null;
@@ -15974,12 +16800,6 @@ export interface PolicyEdge {
15974
16800
  /** The `Policy` at the end of the edge. */
15975
16801
  node?: Policy | null;
15976
16802
  }
15977
- /** A `EntityTypeProvision` edge in the connection. */
15978
- export interface EntityTypeProvisionEdge {
15979
- cursor?: string | null;
15980
- /** The `EntityTypeProvision` at the end of the edge. */
15981
- node?: EntityTypeProvision | null;
15982
- }
15983
16803
  /** A `PermissionsModule` edge in the connection. */
15984
16804
  export interface PermissionsModuleEdge {
15985
16805
  cursor?: string | null;
@@ -16028,18 +16848,18 @@ export interface IndexEdge {
16028
16848
  /** The `Index` at the end of the edge. */
16029
16849
  node?: Index | null;
16030
16850
  }
16851
+ /** A `WebauthnCredential` edge in the connection. */
16852
+ export interface WebauthnCredentialEdge {
16853
+ cursor?: string | null;
16854
+ /** The `WebauthnCredential` at the end of the edge. */
16855
+ node?: WebauthnCredential | null;
16856
+ }
16031
16857
  /** A `OrgInvite` edge in the connection. */
16032
16858
  export interface OrgInviteEdge {
16033
16859
  cursor?: string | null;
16034
16860
  /** The `OrgInvite` at the end of the edge. */
16035
16861
  node?: OrgInvite | null;
16036
16862
  }
16037
- /** A `SecureTableProvision` edge in the connection. */
16038
- export interface SecureTableProvisionEdge {
16039
- cursor?: string | null;
16040
- /** The `SecureTableProvision` at the end of the edge. */
16041
- node?: SecureTableProvision | null;
16042
- }
16043
16863
  /** A `OrgMembership` edge in the connection. */
16044
16864
  export interface OrgMembershipEdge {
16045
16865
  cursor?: string | null;
@@ -16064,6 +16884,12 @@ export interface ForeignKeyConstraintEdge {
16064
16884
  /** The `ForeignKeyConstraint` at the end of the edge. */
16065
16885
  node?: ForeignKeyConstraint | null;
16066
16886
  }
16887
+ /** A `EntityTypeProvision` edge in the connection. */
16888
+ export interface EntityTypeProvisionEdge {
16889
+ cursor?: string | null;
16890
+ /** The `EntityTypeProvision` at the end of the edge. */
16891
+ node?: EntityTypeProvision | null;
16892
+ }
16067
16893
  /** A `StorageModule` edge in the connection. */
16068
16894
  export interface StorageModuleEdge {
16069
16895
  cursor?: string | null;
@@ -16076,6 +16902,12 @@ export interface TableEdge {
16076
16902
  /** The `Table` at the end of the edge. */
16077
16903
  node?: Table | null;
16078
16904
  }
16905
+ /** A `RelationProvision` edge in the connection. */
16906
+ export interface RelationProvisionEdge {
16907
+ cursor?: string | null;
16908
+ /** The `RelationProvision` at the end of the edge. */
16909
+ node?: RelationProvision | null;
16910
+ }
16079
16911
  /** A `LevelsModule` edge in the connection. */
16080
16912
  export interface LevelsModuleEdge {
16081
16913
  cursor?: string | null;
@@ -16094,12 +16926,6 @@ export interface FieldEdge {
16094
16926
  /** The `Field` at the end of the edge. */
16095
16927
  node?: Field | null;
16096
16928
  }
16097
- /** A `RelationProvision` edge in the connection. */
16098
- export interface RelationProvisionEdge {
16099
- cursor?: string | null;
16100
- /** The `RelationProvision` at the end of the edge. */
16101
- node?: RelationProvision | null;
16102
- }
16103
16929
  /** A `MembershipsModule` edge in the connection. */
16104
16930
  export interface MembershipsModuleEdge {
16105
16931
  cursor?: string | null;
@@ -16120,10 +16946,6 @@ export interface MetaTable {
16120
16946
  inflection: MetaInflection;
16121
16947
  query: MetaQuery;
16122
16948
  }
16123
- export interface CreateApiKeyRecord {
16124
- apiKey?: string | null;
16125
- keyId?: string | null;
16126
- }
16127
16949
  export interface BootstrapUserRecord {
16128
16950
  outUserId?: string | null;
16129
16951
  outEmail?: string | null;
@@ -16157,6 +16979,11 @@ export interface ExtendTokenExpiresRecord {
16157
16979
  sessionId?: string | null;
16158
16980
  expiresAt?: string | null;
16159
16981
  }
16982
+ export interface CreateApiKeyRecord {
16983
+ apiKey?: string | null;
16984
+ keyId?: string | null;
16985
+ expiresAt?: string | null;
16986
+ }
16160
16987
  export interface SignUpRecord {
16161
16988
  id?: string | null;
16162
16989
  userId?: string | null;