@constructive-io/react 0.28.3 → 0.29.1

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 (511) 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 +120 -120
  4. package/admin/hooks/invalidation.js +232 -232
  5. package/admin/hooks/mutation-keys.d.ts +244 -244
  6. package/admin/hooks/mutation-keys.js +157 -157
  7. package/admin/hooks/mutations/index.d.ts +63 -63
  8. package/admin/hooks/mutations/index.js +63 -63
  9. package/admin/hooks/queries/index.d.ts +47 -47
  10. package/admin/hooks/queries/index.js +47 -47
  11. package/admin/hooks/queries/useAppPermissionsGetByMaskQuery.d.ts +3 -3
  12. package/admin/hooks/queries/useAppPermissionsGetByMaskQuery.js +2 -2
  13. package/admin/hooks/queries/useOrgIsManagerOfQuery.d.ts +3 -3
  14. package/admin/hooks/queries/useOrgIsManagerOfQuery.js +2 -2
  15. package/admin/hooks/queries/useOrgPermissionsGetByMaskQuery.d.ts +3 -3
  16. package/admin/hooks/queries/useOrgPermissionsGetByMaskQuery.js +2 -2
  17. package/admin/hooks/query-keys.d.ts +296 -296
  18. package/admin/hooks/query-keys.js +173 -173
  19. package/admin/orm/index.d.ts +67 -67
  20. package/admin/orm/index.js +44 -44
  21. package/admin/orm/input-types.d.ts +3168 -3168
  22. package/admin/orm/input-types.js +1 -1
  23. package/admin/orm/models/index.d.ts +22 -22
  24. package/admin/orm/models/index.js +45 -45
  25. package/admin/orm/mutation/index.d.ts +12 -12
  26. package/admin/orm/mutation/index.js +12 -12
  27. package/admin/orm/query/index.d.ts +47 -47
  28. package/admin/orm/query/index.js +68 -68
  29. package/admin/schema-types.d.ts +2497 -2497
  30. package/admin/types.d.ts +193 -193
  31. package/agent/hooks/index.d.ts +1 -1
  32. package/agent/hooks/index.js +1 -1
  33. package/agent/hooks/invalidation.d.ts +23 -23
  34. package/agent/hooks/invalidation.js +55 -55
  35. package/agent/hooks/mutation-keys.d.ts +46 -46
  36. package/agent/hooks/mutation-keys.js +28 -28
  37. package/agent/hooks/mutations/index.d.ts +12 -12
  38. package/agent/hooks/mutations/index.js +12 -12
  39. package/agent/hooks/queries/index.d.ts +8 -8
  40. package/agent/hooks/queries/index.js +8 -8
  41. package/agent/hooks/query-keys.d.ts +54 -54
  42. package/agent/hooks/query-keys.js +32 -32
  43. package/agent/orm/index.d.ts +8 -8
  44. package/agent/orm/index.js +8 -8
  45. package/agent/orm/input-types.d.ts +1788 -1788
  46. package/agent/orm/input-types.js +9 -9
  47. package/agent/orm/models/index.d.ts +4 -4
  48. package/agent/orm/models/index.js +9 -9
  49. package/agent/schema-types.d.ts +1226 -1226
  50. package/agent/types.d.ts +95 -95
  51. package/api/hooks/index.d.ts +1 -1
  52. package/api/hooks/index.js +1 -1
  53. package/api/hooks/invalidation.d.ts +184 -184
  54. package/api/hooks/invalidation.js +392 -392
  55. package/api/hooks/mutation-keys.d.ts +411 -411
  56. package/api/hooks/mutation-keys.js +227 -227
  57. package/api/hooks/mutations/index.d.ts +93 -93
  58. package/api/hooks/mutations/index.js +93 -93
  59. package/api/hooks/queries/index.d.ts +64 -64
  60. package/api/hooks/queries/index.js +64 -64
  61. package/api/hooks/queries/useApplyRegistryDefaultsQuery.d.ts +3 -3
  62. package/api/hooks/queries/useApplyRegistryDefaultsQuery.js +2 -2
  63. package/api/hooks/query-keys.d.ts +466 -466
  64. package/api/hooks/query-keys.js +251 -251
  65. package/api/orm/index.d.ts +77 -77
  66. package/api/orm/index.js +64 -64
  67. package/api/orm/input-types.d.ts +8781 -8781
  68. package/api/orm/input-types.js +48 -48
  69. package/api/orm/models/index.d.ts +32 -32
  70. package/api/orm/models/index.js +65 -65
  71. package/api/orm/mutation/index.d.ts +29 -29
  72. package/api/orm/mutation/index.js +30 -30
  73. package/api/orm/query/index.d.ts +1 -1
  74. package/api/orm/query/index.js +4 -4
  75. package/api/schema-types.d.ts +5628 -5628
  76. package/api/types.d.ts +435 -435
  77. package/auth/hooks/index.d.ts +1 -1
  78. package/auth/hooks/index.js +1 -1
  79. package/auth/hooks/invalidation.d.ts +42 -42
  80. package/auth/hooks/invalidation.js +90 -90
  81. package/auth/hooks/mutation-keys.d.ts +124 -124
  82. package/auth/hooks/mutation-keys.js +106 -106
  83. package/auth/hooks/mutations/index.d.ts +36 -36
  84. package/auth/hooks/mutations/index.js +36 -36
  85. package/auth/hooks/queries/index.d.ts +15 -15
  86. package/auth/hooks/queries/index.js +15 -15
  87. package/auth/hooks/query-keys.d.ts +102 -102
  88. package/auth/hooks/query-keys.js +59 -59
  89. package/auth/orm/index.d.ts +103 -103
  90. package/auth/orm/index.js +14 -14
  91. package/auth/orm/input-types.d.ts +2102 -2109
  92. package/auth/orm/input-types.js +5 -5
  93. package/auth/orm/models/index.d.ts +7 -7
  94. package/auth/orm/models/index.js +15 -15
  95. package/auth/orm/mutation/index.d.ts +138 -138
  96. package/auth/orm/mutation/index.js +168 -168
  97. package/auth/orm/query/index.d.ts +10 -10
  98. package/auth/orm/query/index.js +14 -14
  99. package/auth/schema-types.d.ts +1602 -1605
  100. package/auth/types.d.ts +86 -87
  101. package/compute/hooks/index.d.ts +1 -1
  102. package/compute/hooks/index.js +1 -1
  103. package/compute/hooks/invalidation.d.ts +183 -183
  104. package/compute/hooks/invalidation.js +391 -391
  105. package/compute/hooks/mutation-keys.d.ts +388 -388
  106. package/compute/hooks/mutation-keys.js +300 -300
  107. package/compute/hooks/mutations/index.d.ts +97 -97
  108. package/compute/hooks/mutations/index.js +97 -97
  109. package/compute/hooks/mutations/useCreateFunctionInvocationMutation.d.ts +2 -2
  110. package/compute/hooks/mutations/useCreateFunctionInvocationMutation.js +1 -1
  111. package/compute/hooks/mutations/useCreatePlatformFunctionInvocationMutation.d.ts +2 -2
  112. package/compute/hooks/mutations/useCreatePlatformFunctionInvocationMutation.js +1 -1
  113. package/compute/hooks/mutations/useDeleteFunctionInvocationMutation.d.ts +2 -2
  114. package/compute/hooks/mutations/useDeleteFunctionInvocationMutation.js +1 -1
  115. package/compute/hooks/mutations/useDeletePlatformFunctionInvocationMutation.d.ts +2 -2
  116. package/compute/hooks/mutations/useDeletePlatformFunctionInvocationMutation.js +1 -1
  117. package/compute/hooks/mutations/useUpdateFunctionInvocationMutation.d.ts +2 -2
  118. package/compute/hooks/mutations/useUpdateFunctionInvocationMutation.js +1 -1
  119. package/compute/hooks/mutations/useUpdatePlatformFunctionInvocationMutation.d.ts +2 -2
  120. package/compute/hooks/mutations/useUpdatePlatformFunctionInvocationMutation.js +1 -1
  121. package/compute/hooks/queries/index.d.ts +59 -59
  122. package/compute/hooks/queries/index.js +59 -59
  123. package/compute/hooks/queries/useFunctionInvocationQuery.d.ts +4 -4
  124. package/compute/hooks/queries/useFunctionInvocationQuery.js +1 -1
  125. package/compute/hooks/queries/useFunctionInvocationsQuery.d.ts +4 -4
  126. package/compute/hooks/queries/useFunctionInvocationsQuery.js +1 -1
  127. package/compute/hooks/queries/usePlatformFunctionInvocationQuery.d.ts +4 -4
  128. package/compute/hooks/queries/usePlatformFunctionInvocationQuery.js +1 -1
  129. package/compute/hooks/queries/usePlatformFunctionInvocationsQuery.d.ts +4 -4
  130. package/compute/hooks/queries/usePlatformFunctionInvocationsQuery.js +1 -1
  131. package/compute/hooks/query-keys.d.ts +438 -438
  132. package/compute/hooks/query-keys.js +256 -256
  133. package/compute/orm/index.d.ts +110 -110
  134. package/compute/orm/index.js +64 -64
  135. package/compute/orm/input-types.d.ts +7256 -7037
  136. package/compute/orm/input-types.js +15 -13
  137. package/compute/orm/models/index.d.ts +32 -32
  138. package/compute/orm/models/index.js +65 -65
  139. package/compute/orm/mutation/index.d.ts +77 -77
  140. package/compute/orm/mutation/index.js +96 -96
  141. package/compute/schema-types.d.ts +4950 -4896
  142. package/compute/types.d.ts +470 -468
  143. package/config/hooks/index.d.ts +1 -1
  144. package/config/hooks/index.js +1 -1
  145. package/config/hooks/invalidation.d.ts +6 -6
  146. package/config/hooks/invalidation.js +15 -15
  147. package/config/hooks/mutation-keys.d.ts +24 -24
  148. package/config/hooks/mutation-keys.js +26 -26
  149. package/config/hooks/mutations/index.d.ts +9 -9
  150. package/config/hooks/mutations/index.js +9 -9
  151. package/config/hooks/queries/index.d.ts +2 -2
  152. package/config/hooks/queries/index.js +2 -2
  153. package/config/hooks/query-keys.d.ts +14 -14
  154. package/config/hooks/query-keys.js +9 -9
  155. package/config/orm/index.d.ts +30 -30
  156. package/config/orm/index.js +2 -2
  157. package/config/orm/input-types.d.ts +416 -416
  158. package/config/orm/models/index.d.ts +1 -1
  159. package/config/orm/models/index.js +3 -3
  160. package/config/orm/mutation/index.d.ts +47 -47
  161. package/config/orm/mutation/index.js +60 -60
  162. package/config/schema-types.d.ts +519 -519
  163. package/config/types.d.ts +35 -35
  164. package/esm/admin/hooks/index.d.ts +1 -1
  165. package/esm/admin/hooks/index.js +1 -1
  166. package/esm/admin/hooks/invalidation.d.ts +120 -120
  167. package/esm/admin/hooks/invalidation.js +233 -233
  168. package/esm/admin/hooks/mutation-keys.d.ts +244 -244
  169. package/esm/admin/hooks/mutation-keys.js +156 -156
  170. package/esm/admin/hooks/mutations/index.d.ts +63 -63
  171. package/esm/admin/hooks/mutations/index.js +63 -63
  172. package/esm/admin/hooks/queries/index.d.ts +47 -47
  173. package/esm/admin/hooks/queries/index.js +47 -47
  174. package/esm/admin/hooks/queries/useAppPermissionsGetByMaskQuery.d.ts +3 -3
  175. package/esm/admin/hooks/queries/useAppPermissionsGetByMaskQuery.js +2 -2
  176. package/esm/admin/hooks/queries/useOrgIsManagerOfQuery.d.ts +3 -3
  177. package/esm/admin/hooks/queries/useOrgIsManagerOfQuery.js +2 -2
  178. package/esm/admin/hooks/queries/useOrgPermissionsGetByMaskQuery.d.ts +3 -3
  179. package/esm/admin/hooks/queries/useOrgPermissionsGetByMaskQuery.js +2 -2
  180. package/esm/admin/hooks/query-keys.d.ts +296 -296
  181. package/esm/admin/hooks/query-keys.js +172 -172
  182. package/esm/admin/orm/index.d.ts +67 -67
  183. package/esm/admin/orm/index.js +44 -44
  184. package/esm/admin/orm/input-types.d.ts +3168 -3168
  185. package/esm/admin/orm/input-types.js +1 -1
  186. package/esm/admin/orm/models/index.d.ts +22 -22
  187. package/esm/admin/orm/models/index.js +22 -22
  188. package/esm/admin/orm/mutation/index.d.ts +12 -12
  189. package/esm/admin/orm/mutation/index.js +12 -12
  190. package/esm/admin/orm/query/index.d.ts +47 -47
  191. package/esm/admin/orm/query/index.js +68 -68
  192. package/esm/admin/schema-types.d.ts +2497 -2497
  193. package/esm/admin/types.d.ts +193 -193
  194. package/esm/agent/hooks/index.d.ts +1 -1
  195. package/esm/agent/hooks/index.js +1 -1
  196. package/esm/agent/hooks/invalidation.d.ts +23 -23
  197. package/esm/agent/hooks/invalidation.js +56 -56
  198. package/esm/agent/hooks/mutation-keys.d.ts +46 -46
  199. package/esm/agent/hooks/mutation-keys.js +27 -27
  200. package/esm/agent/hooks/mutations/index.d.ts +12 -12
  201. package/esm/agent/hooks/mutations/index.js +12 -12
  202. package/esm/agent/hooks/queries/index.d.ts +8 -8
  203. package/esm/agent/hooks/queries/index.js +8 -8
  204. package/esm/agent/hooks/query-keys.d.ts +54 -54
  205. package/esm/agent/hooks/query-keys.js +31 -31
  206. package/esm/agent/orm/index.d.ts +8 -8
  207. package/esm/agent/orm/index.js +8 -8
  208. package/esm/agent/orm/input-types.d.ts +1788 -1788
  209. package/esm/agent/orm/input-types.js +9 -9
  210. package/esm/agent/orm/models/index.d.ts +4 -4
  211. package/esm/agent/orm/models/index.js +4 -4
  212. package/esm/agent/schema-types.d.ts +1226 -1226
  213. package/esm/agent/types.d.ts +95 -95
  214. package/esm/api/hooks/index.d.ts +1 -1
  215. package/esm/api/hooks/index.js +1 -1
  216. package/esm/api/hooks/invalidation.d.ts +184 -184
  217. package/esm/api/hooks/invalidation.js +393 -393
  218. package/esm/api/hooks/mutation-keys.d.ts +411 -411
  219. package/esm/api/hooks/mutation-keys.js +226 -226
  220. package/esm/api/hooks/mutations/index.d.ts +93 -93
  221. package/esm/api/hooks/mutations/index.js +93 -93
  222. package/esm/api/hooks/queries/index.d.ts +64 -64
  223. package/esm/api/hooks/queries/index.js +64 -64
  224. package/esm/api/hooks/queries/useApplyRegistryDefaultsQuery.d.ts +3 -3
  225. package/esm/api/hooks/queries/useApplyRegistryDefaultsQuery.js +2 -2
  226. package/esm/api/hooks/query-keys.d.ts +466 -466
  227. package/esm/api/hooks/query-keys.js +250 -250
  228. package/esm/api/orm/index.d.ts +77 -77
  229. package/esm/api/orm/index.js +64 -64
  230. package/esm/api/orm/input-types.d.ts +8781 -8781
  231. package/esm/api/orm/input-types.js +48 -48
  232. package/esm/api/orm/models/index.d.ts +32 -32
  233. package/esm/api/orm/models/index.js +32 -32
  234. package/esm/api/orm/mutation/index.d.ts +29 -29
  235. package/esm/api/orm/mutation/index.js +30 -30
  236. package/esm/api/orm/query/index.d.ts +1 -1
  237. package/esm/api/orm/query/index.js +4 -4
  238. package/esm/api/schema-types.d.ts +5628 -5628
  239. package/esm/api/types.d.ts +435 -435
  240. package/esm/auth/hooks/index.d.ts +1 -1
  241. package/esm/auth/hooks/index.js +1 -1
  242. package/esm/auth/hooks/invalidation.d.ts +42 -42
  243. package/esm/auth/hooks/invalidation.js +91 -91
  244. package/esm/auth/hooks/mutation-keys.d.ts +124 -124
  245. package/esm/auth/hooks/mutation-keys.js +105 -105
  246. package/esm/auth/hooks/mutations/index.d.ts +36 -36
  247. package/esm/auth/hooks/mutations/index.js +36 -36
  248. package/esm/auth/hooks/queries/index.d.ts +15 -15
  249. package/esm/auth/hooks/queries/index.js +15 -15
  250. package/esm/auth/hooks/query-keys.d.ts +102 -102
  251. package/esm/auth/hooks/query-keys.js +58 -58
  252. package/esm/auth/orm/index.d.ts +103 -103
  253. package/esm/auth/orm/index.js +14 -14
  254. package/esm/auth/orm/input-types.d.ts +2102 -2109
  255. package/esm/auth/orm/input-types.js +5 -5
  256. package/esm/auth/orm/models/index.d.ts +7 -7
  257. package/esm/auth/orm/models/index.js +7 -7
  258. package/esm/auth/orm/mutation/index.d.ts +138 -138
  259. package/esm/auth/orm/mutation/index.js +168 -168
  260. package/esm/auth/orm/query/index.d.ts +10 -10
  261. package/esm/auth/orm/query/index.js +14 -14
  262. package/esm/auth/schema-types.d.ts +1602 -1605
  263. package/esm/auth/types.d.ts +86 -87
  264. package/esm/compute/hooks/index.d.ts +1 -1
  265. package/esm/compute/hooks/index.js +1 -1
  266. package/esm/compute/hooks/invalidation.d.ts +183 -183
  267. package/esm/compute/hooks/invalidation.js +392 -392
  268. package/esm/compute/hooks/mutation-keys.d.ts +388 -388
  269. package/esm/compute/hooks/mutation-keys.js +299 -299
  270. package/esm/compute/hooks/mutations/index.d.ts +97 -97
  271. package/esm/compute/hooks/mutations/index.js +97 -97
  272. package/esm/compute/hooks/mutations/useCreateFunctionInvocationMutation.d.ts +2 -2
  273. package/esm/compute/hooks/mutations/useCreateFunctionInvocationMutation.js +1 -1
  274. package/esm/compute/hooks/mutations/useCreatePlatformFunctionInvocationMutation.d.ts +2 -2
  275. package/esm/compute/hooks/mutations/useCreatePlatformFunctionInvocationMutation.js +1 -1
  276. package/esm/compute/hooks/mutations/useDeleteFunctionInvocationMutation.d.ts +2 -2
  277. package/esm/compute/hooks/mutations/useDeleteFunctionInvocationMutation.js +1 -1
  278. package/esm/compute/hooks/mutations/useDeletePlatformFunctionInvocationMutation.d.ts +2 -2
  279. package/esm/compute/hooks/mutations/useDeletePlatformFunctionInvocationMutation.js +1 -1
  280. package/esm/compute/hooks/mutations/useUpdateFunctionInvocationMutation.d.ts +2 -2
  281. package/esm/compute/hooks/mutations/useUpdateFunctionInvocationMutation.js +1 -1
  282. package/esm/compute/hooks/mutations/useUpdatePlatformFunctionInvocationMutation.d.ts +2 -2
  283. package/esm/compute/hooks/mutations/useUpdatePlatformFunctionInvocationMutation.js +1 -1
  284. package/esm/compute/hooks/queries/index.d.ts +59 -59
  285. package/esm/compute/hooks/queries/index.js +59 -59
  286. package/esm/compute/hooks/queries/useFunctionInvocationQuery.d.ts +4 -4
  287. package/esm/compute/hooks/queries/useFunctionInvocationQuery.js +1 -1
  288. package/esm/compute/hooks/queries/useFunctionInvocationsQuery.d.ts +4 -4
  289. package/esm/compute/hooks/queries/useFunctionInvocationsQuery.js +1 -1
  290. package/esm/compute/hooks/queries/usePlatformFunctionInvocationQuery.d.ts +4 -4
  291. package/esm/compute/hooks/queries/usePlatformFunctionInvocationQuery.js +1 -1
  292. package/esm/compute/hooks/queries/usePlatformFunctionInvocationsQuery.d.ts +4 -4
  293. package/esm/compute/hooks/queries/usePlatformFunctionInvocationsQuery.js +1 -1
  294. package/esm/compute/hooks/query-keys.d.ts +438 -438
  295. package/esm/compute/hooks/query-keys.js +255 -255
  296. package/esm/compute/orm/index.d.ts +110 -110
  297. package/esm/compute/orm/index.js +64 -64
  298. package/esm/compute/orm/input-types.d.ts +7256 -7037
  299. package/esm/compute/orm/input-types.js +15 -13
  300. package/esm/compute/orm/models/index.d.ts +32 -32
  301. package/esm/compute/orm/models/index.js +32 -32
  302. package/esm/compute/orm/mutation/index.d.ts +77 -77
  303. package/esm/compute/orm/mutation/index.js +96 -96
  304. package/esm/compute/schema-types.d.ts +4950 -4896
  305. package/esm/compute/types.d.ts +470 -468
  306. package/esm/config/hooks/index.d.ts +1 -1
  307. package/esm/config/hooks/index.js +1 -1
  308. package/esm/config/hooks/invalidation.d.ts +6 -6
  309. package/esm/config/hooks/invalidation.js +16 -16
  310. package/esm/config/hooks/mutation-keys.d.ts +24 -24
  311. package/esm/config/hooks/mutation-keys.js +25 -25
  312. package/esm/config/hooks/mutations/index.d.ts +9 -9
  313. package/esm/config/hooks/mutations/index.js +9 -9
  314. package/esm/config/hooks/queries/index.d.ts +2 -2
  315. package/esm/config/hooks/queries/index.js +2 -2
  316. package/esm/config/hooks/query-keys.d.ts +14 -14
  317. package/esm/config/hooks/query-keys.js +8 -8
  318. package/esm/config/orm/index.d.ts +30 -30
  319. package/esm/config/orm/index.js +2 -2
  320. package/esm/config/orm/input-types.d.ts +416 -416
  321. package/esm/config/orm/models/index.d.ts +1 -1
  322. package/esm/config/orm/models/index.js +1 -1
  323. package/esm/config/orm/mutation/index.d.ts +47 -47
  324. package/esm/config/orm/mutation/index.js +60 -60
  325. package/esm/config/schema-types.d.ts +519 -519
  326. package/esm/config/types.d.ts +35 -35
  327. package/esm/infra/hooks/index.d.ts +1 -1
  328. package/esm/infra/hooks/index.js +1 -1
  329. package/esm/infra/hooks/invalidation.d.ts +28 -28
  330. package/esm/infra/hooks/invalidation.js +66 -66
  331. package/esm/infra/hooks/mutation-keys.d.ts +58 -58
  332. package/esm/infra/hooks/mutation-keys.js +36 -36
  333. package/esm/infra/hooks/mutations/index.d.ts +16 -16
  334. package/esm/infra/hooks/mutations/index.js +16 -16
  335. package/esm/infra/hooks/queries/index.d.ts +10 -10
  336. package/esm/infra/hooks/queries/index.js +10 -10
  337. package/esm/infra/hooks/query-keys.d.ts +66 -66
  338. package/esm/infra/hooks/query-keys.js +38 -38
  339. package/esm/infra/orm/index.d.ts +15 -15
  340. package/esm/infra/orm/index.js +10 -10
  341. package/esm/infra/orm/input-types.d.ts +971 -971
  342. package/esm/infra/orm/models/index.d.ts +5 -5
  343. package/esm/infra/orm/models/index.js +5 -5
  344. package/esm/infra/orm/mutation/index.d.ts +9 -9
  345. package/esm/infra/orm/mutation/index.js +12 -12
  346. package/esm/infra/schema-types.d.ts +979 -979
  347. package/esm/infra/types.d.ts +72 -72
  348. package/esm/modules/hooks/index.d.ts +1 -1
  349. package/esm/modules/hooks/index.js +1 -1
  350. package/esm/modules/hooks/invalidation.d.ts +291 -291
  351. package/esm/modules/hooks/invalidation.js +563 -563
  352. package/esm/modules/hooks/mutation-keys.d.ts +602 -602
  353. package/esm/modules/hooks/mutation-keys.js +384 -384
  354. package/esm/modules/hooks/mutations/index.d.ts +164 -164
  355. package/esm/modules/hooks/mutations/index.js +164 -164
  356. package/esm/modules/hooks/queries/index.d.ts +106 -106
  357. package/esm/modules/hooks/queries/index.js +106 -106
  358. package/esm/modules/hooks/queries/useResolveBlueprintFieldQuery.d.ts +3 -3
  359. package/esm/modules/hooks/queries/useResolveBlueprintFieldQuery.js +2 -2
  360. package/esm/modules/hooks/queries/useResolveBlueprintTableQuery.d.ts +3 -3
  361. package/esm/modules/hooks/queries/useResolveBlueprintTableQuery.js +2 -2
  362. package/esm/modules/hooks/query-keys.d.ts +696 -696
  363. package/esm/modules/hooks/query-keys.js +399 -399
  364. package/esm/modules/orm/index.d.ts +126 -126
  365. package/esm/modules/orm/index.js +106 -106
  366. package/esm/modules/orm/input-types.d.ts +11482 -11468
  367. package/esm/modules/orm/input-types.js +1 -1
  368. package/esm/modules/orm/models/index.d.ts +53 -53
  369. package/esm/modules/orm/models/index.js +53 -53
  370. package/esm/modules/orm/mutation/index.d.ts +51 -51
  371. package/esm/modules/orm/mutation/index.js +42 -42
  372. package/esm/modules/orm/query/index.d.ts +3 -3
  373. package/esm/modules/orm/query/index.js +8 -8
  374. package/esm/modules/schema-types.d.ts +8363 -8355
  375. package/esm/modules/types.d.ts +1013 -1011
  376. package/esm/objects/hooks/index.d.ts +1 -1
  377. package/esm/objects/hooks/index.js +1 -1
  378. package/esm/objects/hooks/invalidation.d.ts +12 -12
  379. package/esm/objects/hooks/invalidation.js +33 -33
  380. package/esm/objects/hooks/mutation-keys.d.ts +26 -26
  381. package/esm/objects/hooks/mutation-keys.js +17 -17
  382. package/esm/objects/hooks/mutations/index.d.ts +7 -7
  383. package/esm/objects/hooks/mutations/index.js +7 -7
  384. package/esm/objects/hooks/queries/index.d.ts +4 -4
  385. package/esm/objects/hooks/queries/index.js +4 -4
  386. package/esm/objects/hooks/query-keys.d.ts +28 -28
  387. package/esm/objects/hooks/query-keys.js +16 -16
  388. package/esm/objects/orm/index.d.ts +9 -9
  389. package/esm/objects/orm/index.js +4 -4
  390. package/esm/objects/orm/input-types.d.ts +384 -384
  391. package/esm/objects/orm/models/index.d.ts +2 -2
  392. package/esm/objects/orm/models/index.js +2 -2
  393. package/esm/objects/orm/mutation/index.d.ts +9 -9
  394. package/esm/objects/orm/mutation/index.js +12 -12
  395. package/esm/objects/schema-types.d.ts +438 -438
  396. package/esm/objects/types.d.ts +23 -23
  397. package/esm/usage/hooks/index.d.ts +1 -1
  398. package/esm/usage/hooks/index.js +1 -1
  399. package/esm/usage/hooks/invalidation.d.ts +67 -67
  400. package/esm/usage/hooks/invalidation.js +140 -140
  401. package/esm/usage/hooks/mutation-keys.d.ts +136 -136
  402. package/esm/usage/hooks/mutation-keys.js +82 -82
  403. package/esm/usage/hooks/mutations/index.d.ts +37 -37
  404. package/esm/usage/hooks/mutations/index.js +37 -37
  405. package/esm/usage/hooks/queries/index.d.ts +24 -24
  406. package/esm/usage/hooks/queries/index.js +24 -24
  407. package/esm/usage/hooks/query-keys.d.ts +158 -158
  408. package/esm/usage/hooks/query-keys.js +91 -91
  409. package/esm/usage/orm/index.d.ts +29 -29
  410. package/esm/usage/orm/index.js +24 -24
  411. package/esm/usage/orm/input-types.d.ts +2049 -2049
  412. package/esm/usage/orm/input-types.js +5 -5
  413. package/esm/usage/orm/models/index.d.ts +12 -12
  414. package/esm/usage/orm/models/index.js +12 -12
  415. package/esm/usage/orm/mutation/index.d.ts +16 -16
  416. package/esm/usage/orm/mutation/index.js +12 -12
  417. package/esm/usage/schema-types.d.ts +1591 -1591
  418. package/esm/usage/types.d.ts +99 -99
  419. package/infra/hooks/index.d.ts +1 -1
  420. package/infra/hooks/index.js +1 -1
  421. package/infra/hooks/invalidation.d.ts +28 -28
  422. package/infra/hooks/invalidation.js +65 -65
  423. package/infra/hooks/mutation-keys.d.ts +58 -58
  424. package/infra/hooks/mutation-keys.js +37 -37
  425. package/infra/hooks/mutations/index.d.ts +16 -16
  426. package/infra/hooks/mutations/index.js +16 -16
  427. package/infra/hooks/queries/index.d.ts +10 -10
  428. package/infra/hooks/queries/index.js +10 -10
  429. package/infra/hooks/query-keys.d.ts +66 -66
  430. package/infra/hooks/query-keys.js +39 -39
  431. package/infra/orm/index.d.ts +15 -15
  432. package/infra/orm/index.js +10 -10
  433. package/infra/orm/input-types.d.ts +971 -971
  434. package/infra/orm/models/index.d.ts +5 -5
  435. package/infra/orm/models/index.js +11 -11
  436. package/infra/orm/mutation/index.d.ts +9 -9
  437. package/infra/orm/mutation/index.js +12 -12
  438. package/infra/schema-types.d.ts +979 -979
  439. package/infra/types.d.ts +72 -72
  440. package/modules/hooks/index.d.ts +1 -1
  441. package/modules/hooks/index.js +1 -1
  442. package/modules/hooks/invalidation.d.ts +291 -291
  443. package/modules/hooks/invalidation.js +562 -562
  444. package/modules/hooks/mutation-keys.d.ts +602 -602
  445. package/modules/hooks/mutation-keys.js +386 -386
  446. package/modules/hooks/mutations/index.d.ts +164 -164
  447. package/modules/hooks/mutations/index.js +164 -164
  448. package/modules/hooks/queries/index.d.ts +106 -106
  449. package/modules/hooks/queries/index.js +106 -106
  450. package/modules/hooks/queries/useResolveBlueprintFieldQuery.d.ts +3 -3
  451. package/modules/hooks/queries/useResolveBlueprintFieldQuery.js +2 -2
  452. package/modules/hooks/queries/useResolveBlueprintTableQuery.d.ts +3 -3
  453. package/modules/hooks/queries/useResolveBlueprintTableQuery.js +2 -2
  454. package/modules/hooks/query-keys.d.ts +696 -696
  455. package/modules/hooks/query-keys.js +401 -401
  456. package/modules/orm/index.d.ts +126 -126
  457. package/modules/orm/index.js +106 -106
  458. package/modules/orm/input-types.d.ts +11482 -11468
  459. package/modules/orm/input-types.js +1 -1
  460. package/modules/orm/models/index.d.ts +53 -53
  461. package/modules/orm/models/index.js +108 -108
  462. package/modules/orm/mutation/index.d.ts +51 -51
  463. package/modules/orm/mutation/index.js +42 -42
  464. package/modules/orm/query/index.d.ts +3 -3
  465. package/modules/orm/query/index.js +8 -8
  466. package/modules/schema-types.d.ts +8363 -8355
  467. package/modules/types.d.ts +1013 -1011
  468. package/objects/hooks/index.d.ts +1 -1
  469. package/objects/hooks/index.js +1 -1
  470. package/objects/hooks/invalidation.d.ts +12 -12
  471. package/objects/hooks/invalidation.js +32 -32
  472. package/objects/hooks/mutation-keys.d.ts +26 -26
  473. package/objects/hooks/mutation-keys.js +18 -18
  474. package/objects/hooks/mutations/index.d.ts +7 -7
  475. package/objects/hooks/mutations/index.js +7 -7
  476. package/objects/hooks/queries/index.d.ts +4 -4
  477. package/objects/hooks/queries/index.js +4 -4
  478. package/objects/hooks/query-keys.d.ts +28 -28
  479. package/objects/hooks/query-keys.js +17 -17
  480. package/objects/orm/index.d.ts +9 -9
  481. package/objects/orm/index.js +4 -4
  482. package/objects/orm/input-types.d.ts +384 -384
  483. package/objects/orm/models/index.d.ts +2 -2
  484. package/objects/orm/models/index.js +5 -5
  485. package/objects/orm/mutation/index.d.ts +9 -9
  486. package/objects/orm/mutation/index.js +12 -12
  487. package/objects/schema-types.d.ts +438 -438
  488. package/objects/types.d.ts +23 -23
  489. package/package.json +4 -4
  490. package/usage/hooks/index.d.ts +1 -1
  491. package/usage/hooks/index.js +1 -1
  492. package/usage/hooks/invalidation.d.ts +67 -67
  493. package/usage/hooks/invalidation.js +139 -139
  494. package/usage/hooks/mutation-keys.d.ts +136 -136
  495. package/usage/hooks/mutation-keys.js +83 -83
  496. package/usage/hooks/mutations/index.d.ts +37 -37
  497. package/usage/hooks/mutations/index.js +37 -37
  498. package/usage/hooks/queries/index.d.ts +24 -24
  499. package/usage/hooks/queries/index.js +24 -24
  500. package/usage/hooks/query-keys.d.ts +158 -158
  501. package/usage/hooks/query-keys.js +92 -92
  502. package/usage/orm/index.d.ts +29 -29
  503. package/usage/orm/index.js +24 -24
  504. package/usage/orm/input-types.d.ts +2049 -2049
  505. package/usage/orm/input-types.js +5 -5
  506. package/usage/orm/models/index.d.ts +12 -12
  507. package/usage/orm/models/index.js +25 -25
  508. package/usage/orm/mutation/index.d.ts +16 -16
  509. package/usage/orm/mutation/index.js +12 -12
  510. package/usage/schema-types.d.ts +1591 -1591
  511. package/usage/types.d.ts +99 -99
@@ -4,213 +4,114 @@
4
4
  * DO NOT EDIT - changes will be overwritten
5
5
  */
6
6
  import type { AppLimit, AppLimitCap, AppLimitCapsDefault, AppLimitCredit, AppLimitCreditCode, AppLimitCreditCodeItem, AppLimitCreditRedemption, AppLimitDefault, AppLimitEvent, AppLimitWarning, OrgLimit, OrgLimitAggregate, OrgLimitCap, OrgLimitCapsDefault, OrgLimitCredit, OrgLimitDefault, OrgLimitEvent, OrgLimitWarning, BigIntFilter, DatetimeFilter, IntFilter, StringFilter, UUIDFilter } from './types';
7
- /** Methods to use when ordering `AppLimitCapsDefault`. */
8
- export type AppLimitCapsDefaultOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'MAX_ASC' | 'MAX_DESC';
9
- /** Methods to use when ordering `OrgLimitCapsDefault`. */
10
- export type OrgLimitCapsDefaultOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'MAX_ASC' | 'MAX_DESC';
11
7
  /** Methods to use when ordering `AppLimitCap`. */
12
- export type AppLimitCapOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'MAX_ASC' | 'MAX_DESC';
13
- /** Methods to use when ordering `OrgLimitCap`. */
14
- export type OrgLimitCapOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'MAX_ASC' | 'MAX_DESC';
15
- /** Methods to use when ordering `AppLimitCredit`. */
16
- export type AppLimitCreditOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DEFAULT_LIMIT_ID_ASC' | 'DEFAULT_LIMIT_ID_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'AMOUNT_ASC' | 'AMOUNT_DESC' | 'CREDIT_TYPE_ASC' | 'CREDIT_TYPE_DESC' | 'REASON_ASC' | 'REASON_DESC';
8
+ export type AppLimitCapOrderBy = 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'MAX_ASC' | 'MAX_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC';
9
+ /** Methods to use when ordering `AppLimitCapsDefault`. */
10
+ export type AppLimitCapsDefaultOrderBy = 'ID_ASC' | 'ID_DESC' | 'MAX_ASC' | 'MAX_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC';
17
11
  /** Methods to use when ordering `AppLimitCreditCodeItem`. */
18
- export type AppLimitCreditCodeItemOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'CREDIT_CODE_ID_ASC' | 'CREDIT_CODE_ID_DESC' | 'DEFAULT_LIMIT_ID_ASC' | 'DEFAULT_LIMIT_ID_DESC' | 'AMOUNT_ASC' | 'AMOUNT_DESC' | 'CREDIT_TYPE_ASC' | 'CREDIT_TYPE_DESC';
12
+ export type AppLimitCreditCodeItemOrderBy = 'AMOUNT_ASC' | 'AMOUNT_DESC' | 'CREDIT_CODE_ID_ASC' | 'CREDIT_CODE_ID_DESC' | 'CREDIT_TYPE_ASC' | 'CREDIT_TYPE_DESC' | 'DEFAULT_LIMIT_ID_ASC' | 'DEFAULT_LIMIT_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC';
13
+ /** Methods to use when ordering `AppLimitCreditCode`. */
14
+ export type AppLimitCreditCodeOrderBy = 'CODE_ASC' | 'CODE_DESC' | 'CURRENT_REDEMPTIONS_ASC' | 'CURRENT_REDEMPTIONS_DESC' | 'EXPIRES_AT_ASC' | 'EXPIRES_AT_DESC' | 'ID_ASC' | 'ID_DESC' | 'MAX_REDEMPTIONS_ASC' | 'MAX_REDEMPTIONS_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC';
15
+ /** Methods to use when ordering `AppLimitCredit`. */
16
+ export type AppLimitCreditOrderBy = 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'AMOUNT_ASC' | 'AMOUNT_DESC' | 'CREDIT_TYPE_ASC' | 'CREDIT_TYPE_DESC' | 'DEFAULT_LIMIT_ID_ASC' | 'DEFAULT_LIMIT_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'REASON_ASC' | 'REASON_DESC';
19
17
  /** Methods to use when ordering `AppLimitCreditRedemption`. */
20
- export type AppLimitCreditRedemptionOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'CREDIT_CODE_ID_ASC' | 'CREDIT_CODE_ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'ORGANIZATION_ID_ASC' | 'ORGANIZATION_ID_DESC' | 'ENTITY_TYPE_ASC' | 'ENTITY_TYPE_DESC';
18
+ export type AppLimitCreditRedemptionOrderBy = 'CREDIT_CODE_ID_ASC' | 'CREDIT_CODE_ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'ENTITY_TYPE_ASC' | 'ENTITY_TYPE_DESC' | 'ID_ASC' | 'ID_DESC' | 'NATURAL' | 'ORGANIZATION_ID_ASC' | 'ORGANIZATION_ID_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC';
21
19
  /** Methods to use when ordering `AppLimitDefault`. */
22
- export type AppLimitDefaultOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'MAX_ASC' | 'MAX_DESC' | 'SOFT_MAX_ASC' | 'SOFT_MAX_DESC';
23
- /** Methods to use when ordering `OrgLimitCredit`. */
24
- export type OrgLimitCreditOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DEFAULT_LIMIT_ID_ASC' | 'DEFAULT_LIMIT_ID_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'ORGANIZATION_ID_ASC' | 'ORGANIZATION_ID_DESC' | 'ENTITY_TYPE_ASC' | 'ENTITY_TYPE_DESC' | 'AMOUNT_ASC' | 'AMOUNT_DESC' | 'CREDIT_TYPE_ASC' | 'CREDIT_TYPE_DESC' | 'REASON_ASC' | 'REASON_DESC';
25
- /** Methods to use when ordering `OrgLimitDefault`. */
26
- export type OrgLimitDefaultOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'MAX_ASC' | 'MAX_DESC' | 'SOFT_MAX_ASC' | 'SOFT_MAX_DESC';
27
- /** Methods to use when ordering `AppLimitWarning`. */
28
- export type AppLimitWarningOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'WARNING_TYPE_ASC' | 'WARNING_TYPE_DESC' | 'THRESHOLD_VALUE_ASC' | 'THRESHOLD_VALUE_DESC' | 'TASK_IDENTIFIER_ASC' | 'TASK_IDENTIFIER_DESC';
29
- /** Methods to use when ordering `OrgLimitWarning`. */
30
- export type OrgLimitWarningOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'WARNING_TYPE_ASC' | 'WARNING_TYPE_DESC' | 'THRESHOLD_VALUE_ASC' | 'THRESHOLD_VALUE_DESC' | 'TASK_IDENTIFIER_ASC' | 'TASK_IDENTIFIER_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC';
31
- /** Methods to use when ordering `AppLimitCreditCode`. */
32
- export type AppLimitCreditCodeOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'CODE_ASC' | 'CODE_DESC' | 'MAX_REDEMPTIONS_ASC' | 'MAX_REDEMPTIONS_DESC' | 'CURRENT_REDEMPTIONS_ASC' | 'CURRENT_REDEMPTIONS_DESC' | 'EXPIRES_AT_ASC' | 'EXPIRES_AT_DESC';
20
+ export type AppLimitDefaultOrderBy = 'ID_ASC' | 'ID_DESC' | 'MAX_ASC' | 'MAX_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'SOFT_MAX_ASC' | 'SOFT_MAX_DESC';
33
21
  /** Methods to use when ordering `AppLimitEvent`. */
34
- export type AppLimitEventOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'ORGANIZATION_ID_ASC' | 'ORGANIZATION_ID_DESC' | 'ENTITY_TYPE_ASC' | 'ENTITY_TYPE_DESC' | 'EVENT_TYPE_ASC' | 'EVENT_TYPE_DESC' | 'DELTA_ASC' | 'DELTA_DESC' | 'NUM_BEFORE_ASC' | 'NUM_BEFORE_DESC' | 'NUM_AFTER_ASC' | 'NUM_AFTER_DESC' | 'MAX_AT_EVENT_ASC' | 'MAX_AT_EVENT_DESC' | 'REASON_ASC' | 'REASON_DESC';
35
- /** Methods to use when ordering `OrgLimitEvent`. */
36
- export type OrgLimitEventOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'ORGANIZATION_ID_ASC' | 'ORGANIZATION_ID_DESC' | 'ENTITY_TYPE_ASC' | 'ENTITY_TYPE_DESC' | 'EVENT_TYPE_ASC' | 'EVENT_TYPE_DESC' | 'DELTA_ASC' | 'DELTA_DESC' | 'NUM_BEFORE_ASC' | 'NUM_BEFORE_DESC' | 'NUM_AFTER_ASC' | 'NUM_AFTER_DESC' | 'MAX_AT_EVENT_ASC' | 'MAX_AT_EVENT_DESC' | 'REASON_ASC' | 'REASON_DESC';
22
+ export type AppLimitEventOrderBy = 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DELTA_ASC' | 'DELTA_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'ENTITY_TYPE_ASC' | 'ENTITY_TYPE_DESC' | 'EVENT_TYPE_ASC' | 'EVENT_TYPE_DESC' | 'ID_ASC' | 'ID_DESC' | 'MAX_AT_EVENT_ASC' | 'MAX_AT_EVENT_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' | 'NUM_AFTER_ASC' | 'NUM_AFTER_DESC' | 'NUM_BEFORE_ASC' | 'NUM_BEFORE_DESC' | 'ORGANIZATION_ID_ASC' | 'ORGANIZATION_ID_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'REASON_ASC' | 'REASON_DESC';
37
23
  /** Methods to use when ordering `AppLimit`. */
38
- export type AppLimitOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'NUM_ASC' | 'NUM_DESC' | 'MAX_ASC' | 'MAX_DESC' | 'SOFT_MAX_ASC' | 'SOFT_MAX_DESC' | 'WINDOW_START_ASC' | 'WINDOW_START_DESC' | 'WINDOW_DURATION_ASC' | 'WINDOW_DURATION_DESC' | 'PLAN_MAX_ASC' | 'PLAN_MAX_DESC' | 'PURCHASED_CREDITS_ASC' | 'PURCHASED_CREDITS_DESC' | 'PERIOD_CREDITS_ASC' | 'PERIOD_CREDITS_DESC' | 'ORGANIZATION_ID_ASC' | 'ORGANIZATION_ID_DESC' | 'ENTITY_TYPE_ASC' | 'ENTITY_TYPE_DESC';
24
+ export type AppLimitOrderBy = 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ENTITY_TYPE_ASC' | 'ENTITY_TYPE_DESC' | 'ID_ASC' | 'ID_DESC' | 'MAX_ASC' | 'MAX_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' | 'NUM_ASC' | 'NUM_DESC' | 'ORGANIZATION_ID_ASC' | 'ORGANIZATION_ID_DESC' | 'PERIOD_CREDITS_ASC' | 'PERIOD_CREDITS_DESC' | 'PLAN_MAX_ASC' | 'PLAN_MAX_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'PURCHASED_CREDITS_ASC' | 'PURCHASED_CREDITS_DESC' | 'SOFT_MAX_ASC' | 'SOFT_MAX_DESC' | 'WINDOW_DURATION_ASC' | 'WINDOW_DURATION_DESC' | 'WINDOW_START_ASC' | 'WINDOW_START_DESC';
25
+ /** Methods to use when ordering `AppLimitWarning`. */
26
+ export type AppLimitWarningOrderBy = 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'TASK_IDENTIFIER_ASC' | 'TASK_IDENTIFIER_DESC' | 'THRESHOLD_VALUE_ASC' | 'THRESHOLD_VALUE_DESC' | 'WARNING_TYPE_ASC' | 'WARNING_TYPE_DESC';
39
27
  /** Methods to use when ordering `OrgLimitAggregate`. */
40
- export type OrgLimitAggregateOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'NUM_ASC' | 'NUM_DESC' | 'MAX_ASC' | 'MAX_DESC' | 'SOFT_MAX_ASC' | 'SOFT_MAX_DESC' | 'WINDOW_START_ASC' | 'WINDOW_START_DESC' | 'WINDOW_DURATION_ASC' | 'WINDOW_DURATION_DESC' | 'PLAN_MAX_ASC' | 'PLAN_MAX_DESC' | 'PURCHASED_CREDITS_ASC' | 'PURCHASED_CREDITS_DESC' | 'PERIOD_CREDITS_ASC' | 'PERIOD_CREDITS_DESC' | 'RESERVED_ASC' | 'RESERVED_DESC' | 'ORGANIZATION_ID_ASC' | 'ORGANIZATION_ID_DESC' | 'ENTITY_TYPE_ASC' | 'ENTITY_TYPE_DESC';
28
+ export type OrgLimitAggregateOrderBy = 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'ENTITY_TYPE_ASC' | 'ENTITY_TYPE_DESC' | 'ID_ASC' | 'ID_DESC' | 'MAX_ASC' | 'MAX_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' | 'NUM_ASC' | 'NUM_DESC' | 'ORGANIZATION_ID_ASC' | 'ORGANIZATION_ID_DESC' | 'PERIOD_CREDITS_ASC' | 'PERIOD_CREDITS_DESC' | 'PLAN_MAX_ASC' | 'PLAN_MAX_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'PURCHASED_CREDITS_ASC' | 'PURCHASED_CREDITS_DESC' | 'RESERVED_ASC' | 'RESERVED_DESC' | 'SOFT_MAX_ASC' | 'SOFT_MAX_DESC' | 'WINDOW_DURATION_ASC' | 'WINDOW_DURATION_DESC' | 'WINDOW_START_ASC' | 'WINDOW_START_DESC';
29
+ /** Methods to use when ordering `OrgLimitCap`. */
30
+ export type OrgLimitCapOrderBy = 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'MAX_ASC' | 'MAX_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC';
31
+ /** Methods to use when ordering `OrgLimitCapsDefault`. */
32
+ export type OrgLimitCapsDefaultOrderBy = 'ID_ASC' | 'ID_DESC' | 'MAX_ASC' | 'MAX_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC';
33
+ /** Methods to use when ordering `OrgLimitCredit`. */
34
+ export type OrgLimitCreditOrderBy = 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'AMOUNT_ASC' | 'AMOUNT_DESC' | 'CREDIT_TYPE_ASC' | 'CREDIT_TYPE_DESC' | 'DEFAULT_LIMIT_ID_ASC' | 'DEFAULT_LIMIT_ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'ENTITY_TYPE_ASC' | 'ENTITY_TYPE_DESC' | 'ID_ASC' | 'ID_DESC' | 'NATURAL' | 'ORGANIZATION_ID_ASC' | 'ORGANIZATION_ID_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'REASON_ASC' | 'REASON_DESC';
35
+ /** Methods to use when ordering `OrgLimitDefault`. */
36
+ export type OrgLimitDefaultOrderBy = 'ID_ASC' | 'ID_DESC' | 'MAX_ASC' | 'MAX_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'SOFT_MAX_ASC' | 'SOFT_MAX_DESC';
37
+ /** Methods to use when ordering `OrgLimitEvent`. */
38
+ export type OrgLimitEventOrderBy = 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DELTA_ASC' | 'DELTA_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'ENTITY_TYPE_ASC' | 'ENTITY_TYPE_DESC' | 'EVENT_TYPE_ASC' | 'EVENT_TYPE_DESC' | 'ID_ASC' | 'ID_DESC' | 'MAX_AT_EVENT_ASC' | 'MAX_AT_EVENT_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' | 'NUM_AFTER_ASC' | 'NUM_AFTER_DESC' | 'NUM_BEFORE_ASC' | 'NUM_BEFORE_DESC' | 'ORGANIZATION_ID_ASC' | 'ORGANIZATION_ID_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'REASON_ASC' | 'REASON_DESC';
41
39
  /** Methods to use when ordering `OrgLimit`. */
42
- export type OrgLimitOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'NUM_ASC' | 'NUM_DESC' | 'MAX_ASC' | 'MAX_DESC' | 'SOFT_MAX_ASC' | 'SOFT_MAX_DESC' | 'WINDOW_START_ASC' | 'WINDOW_START_DESC' | 'WINDOW_DURATION_ASC' | 'WINDOW_DURATION_DESC' | 'PLAN_MAX_ASC' | 'PLAN_MAX_DESC' | 'PURCHASED_CREDITS_ASC' | 'PURCHASED_CREDITS_DESC' | 'PERIOD_CREDITS_ASC' | 'PERIOD_CREDITS_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'ORGANIZATION_ID_ASC' | 'ORGANIZATION_ID_DESC' | 'ENTITY_TYPE_ASC' | 'ENTITY_TYPE_DESC';
43
- /** A filter to be used against `AppLimitCapsDefault` object types. All fields are combined with a logical ‘and.’ */
44
- export interface AppLimitCapsDefaultFilter {
45
- /** Filter by the object’s `id` field. */
46
- id?: UUIDFilter;
47
- /** Filter by the object’s `name` field. */
48
- name?: StringFilter;
49
- /** Filter by the object’s `max` field. */
50
- max?: BigIntFilter;
40
+ export type OrgLimitOrderBy = 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'ENTITY_TYPE_ASC' | 'ENTITY_TYPE_DESC' | 'ID_ASC' | 'ID_DESC' | 'MAX_ASC' | 'MAX_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' | 'NUM_ASC' | 'NUM_DESC' | 'ORGANIZATION_ID_ASC' | 'ORGANIZATION_ID_DESC' | 'PERIOD_CREDITS_ASC' | 'PERIOD_CREDITS_DESC' | 'PLAN_MAX_ASC' | 'PLAN_MAX_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'PURCHASED_CREDITS_ASC' | 'PURCHASED_CREDITS_DESC' | 'SOFT_MAX_ASC' | 'SOFT_MAX_DESC' | 'WINDOW_DURATION_ASC' | 'WINDOW_DURATION_DESC' | 'WINDOW_START_ASC' | 'WINDOW_START_DESC';
41
+ /** Methods to use when ordering `OrgLimitWarning`. */
42
+ export type OrgLimitWarningOrderBy = 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'TASK_IDENTIFIER_ASC' | 'TASK_IDENTIFIER_DESC' | 'THRESHOLD_VALUE_ASC' | 'THRESHOLD_VALUE_DESC' | 'WARNING_TYPE_ASC' | 'WARNING_TYPE_DESC';
43
+ /** A filter to be used against `AppLimitCap` object types. All fields are combined with a logical ‘and.’ */
44
+ export interface AppLimitCapFilter {
51
45
  /** Checks for all expressions in this list. */
52
- and?: AppLimitCapsDefaultFilter[];
53
- /** Checks for any expressions in this list. */
54
- or?: AppLimitCapsDefaultFilter[];
55
- /** Negates the expression. */
56
- not?: AppLimitCapsDefaultFilter;
57
- }
58
- /** A filter to be used against `OrgLimitCapsDefault` object types. All fields are combined with a logical ‘and.’ */
59
- export interface OrgLimitCapsDefaultFilter {
46
+ and?: AppLimitCapFilter[];
47
+ /** Filter by the object’s `entityId` field. */
48
+ entityId?: UUIDFilter;
60
49
  /** Filter by the object’s `id` field. */
61
50
  id?: UUIDFilter;
62
- /** Filter by the object’s `name` field. */
63
- name?: StringFilter;
64
51
  /** Filter by the object’s `max` field. */
65
52
  max?: BigIntFilter;
66
- /** Checks for all expressions in this list. */
67
- and?: OrgLimitCapsDefaultFilter[];
68
- /** Checks for any expressions in this list. */
69
- or?: OrgLimitCapsDefaultFilter[];
70
- /** Negates the expression. */
71
- not?: OrgLimitCapsDefaultFilter;
72
- }
73
- /** A filter to be used against `AppLimitCap` object types. All fields are combined with a logical ‘and.’ */
74
- export interface AppLimitCapFilter {
75
- /** Filter by the object’s `id` field. */
76
- id?: UUIDFilter;
77
53
  /** Filter by the object’s `name` field. */
78
54
  name?: StringFilter;
79
- /** Filter by the object’s `entityId` field. */
80
- entityId?: UUIDFilter;
81
- /** Filter by the object’s `max` field. */
82
- max?: BigIntFilter;
83
- /** Checks for all expressions in this list. */
84
- and?: AppLimitCapFilter[];
85
- /** Checks for any expressions in this list. */
86
- or?: AppLimitCapFilter[];
87
55
  /** Negates the expression. */
88
56
  not?: AppLimitCapFilter;
89
- }
90
- /** A filter to be used against `OrgLimitCap` object types. All fields are combined with a logical ‘and.’ */
91
- export interface OrgLimitCapFilter {
92
- /** Filter by the object’s `id` field. */
93
- id?: UUIDFilter;
94
- /** Filter by the object’s `name` field. */
95
- name?: StringFilter;
96
- /** Filter by the object’s `entityId` field. */
97
- entityId?: UUIDFilter;
98
- /** Filter by the object’s `max` field. */
99
- max?: BigIntFilter;
100
- /** Checks for all expressions in this list. */
101
- and?: OrgLimitCapFilter[];
102
57
  /** Checks for any expressions in this list. */
103
- or?: OrgLimitCapFilter[];
104
- /** Negates the expression. */
105
- not?: OrgLimitCapFilter;
58
+ or?: AppLimitCapFilter[];
106
59
  }
107
- /** A filter to be used against `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */
108
- export interface AppLimitCreditFilter {
109
- /** Filter by the object’s `id` field. */
110
- id?: UUIDFilter;
111
- /** Filter by the object’s `defaultLimitId` field. */
112
- defaultLimitId?: UUIDFilter;
113
- /** Filter by the object’s `actorId` field. */
114
- actorId?: UUIDFilter;
115
- /** Filter by the object’s `amount` field. */
116
- amount?: BigIntFilter;
117
- /** Filter by the object’s `creditType` field. */
118
- creditType?: StringFilter;
119
- /** Filter by the object’s `reason` field. */
120
- reason?: StringFilter;
121
- /** Checks for all expressions in this list. */
122
- and?: AppLimitCreditFilter[];
123
- /** Checks for any expressions in this list. */
124
- or?: AppLimitCreditFilter[];
125
- /** Negates the expression. */
126
- not?: AppLimitCreditFilter;
127
- /** Filter by the object’s `defaultLimit` relation. */
128
- defaultLimit?: AppLimitDefaultFilter;
60
+ /** An input for mutations affecting `AppLimitCap` */
61
+ export interface AppLimitCapInput {
62
+ /** Entity this cap override applies to */
63
+ entityId: string;
64
+ id?: string;
65
+ /** Override cap value for this entity */
66
+ max?: string;
67
+ /** Name identifier of the cap being overridden */
68
+ name: string;
129
69
  }
130
- /** A filter to be used against `AppLimitDefault` object types. All fields are combined with a logical ‘and.’ */
131
- export interface AppLimitDefaultFilter {
70
+ /** Represents an update to a `AppLimitCap`. Fields that are set will be updated. */
71
+ export interface AppLimitCapPatch {
72
+ /** Entity this cap override applies to */
73
+ entityId?: string;
74
+ id?: string;
75
+ /** Override cap value for this entity */
76
+ max?: string;
77
+ /** Name identifier of the cap being overridden */
78
+ name?: string;
79
+ }
80
+ /** A filter to be used against `AppLimitCapsDefault` object types. All fields are combined with a logical ‘and.’ */
81
+ export interface AppLimitCapsDefaultFilter {
82
+ /** Checks for all expressions in this list. */
83
+ and?: AppLimitCapsDefaultFilter[];
132
84
  /** Filter by the object’s `id` field. */
133
85
  id?: UUIDFilter;
134
- /** Filter by the object’s `name` field. */
135
- name?: StringFilter;
136
86
  /** Filter by the object’s `max` field. */
137
87
  max?: BigIntFilter;
138
- /** Filter by the object’s `softMax` field. */
139
- softMax?: BigIntFilter;
140
- /** Checks for all expressions in this list. */
141
- and?: AppLimitDefaultFilter[];
142
- /** Checks for any expressions in this list. */
143
- or?: AppLimitDefaultFilter[];
88
+ /** Filter by the object’s `name` field. */
89
+ name?: StringFilter;
144
90
  /** Negates the expression. */
145
- not?: AppLimitDefaultFilter;
146
- /** Filter by the object’s `appLimitCreditsByDefaultLimitId` relation. */
147
- appLimitCreditsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditFilter;
148
- /** `appLimitCreditsByDefaultLimitId` exist. */
149
- appLimitCreditsByDefaultLimitIdExist?: boolean;
150
- /** Filter by the object’s `appLimitCreditCodeItemsByDefaultLimitId` relation. */
151
- appLimitCreditCodeItemsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditCodeItemFilter;
152
- /** `appLimitCreditCodeItemsByDefaultLimitId` exist. */
153
- appLimitCreditCodeItemsByDefaultLimitIdExist?: boolean;
154
- }
155
- /** A filter to be used against many `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */
156
- export interface AppLimitDefaultToManyAppLimitCreditFilter {
157
- /** Filters to entities where at least one related entity matches. */
158
- some?: AppLimitCreditFilter;
159
- /** Filters to entities where every related entity matches. */
160
- every?: AppLimitCreditFilter;
161
- /** Filters to entities where no related entity matches. */
162
- none?: AppLimitCreditFilter;
91
+ not?: AppLimitCapsDefaultFilter;
92
+ /** Checks for any expressions in this list. */
93
+ or?: AppLimitCapsDefaultFilter[];
163
94
  }
164
- /** A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */
165
- export interface AppLimitDefaultToManyAppLimitCreditCodeItemFilter {
166
- /** Filters to entities where at least one related entity matches. */
167
- some?: AppLimitCreditCodeItemFilter;
168
- /** Filters to entities where every related entity matches. */
169
- every?: AppLimitCreditCodeItemFilter;
170
- /** Filters to entities where no related entity matches. */
171
- none?: AppLimitCreditCodeItemFilter;
95
+ /** An input for mutations affecting `AppLimitCapsDefault` */
96
+ export interface AppLimitCapsDefaultInput {
97
+ id?: string;
98
+ /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */
99
+ max?: string;
100
+ /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */
101
+ name: string;
172
102
  }
173
- /** A filter to be used against `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */
174
- export interface AppLimitCreditCodeItemFilter {
175
- /** Filter by the object’s `id` field. */
176
- id?: UUIDFilter;
177
- /** Filter by the object’s `creditCodeId` field. */
178
- creditCodeId?: UUIDFilter;
179
- /** Filter by the object’s `defaultLimitId` field. */
180
- defaultLimitId?: UUIDFilter;
181
- /** Filter by the object’s `amount` field. */
182
- amount?: BigIntFilter;
183
- /** Filter by the object’s `creditType` field. */
184
- creditType?: StringFilter;
185
- /** Checks for all expressions in this list. */
186
- and?: AppLimitCreditCodeItemFilter[];
187
- /** Checks for any expressions in this list. */
188
- or?: AppLimitCreditCodeItemFilter[];
189
- /** Negates the expression. */
190
- not?: AppLimitCreditCodeItemFilter;
191
- /** Filter by the object’s `creditCode` relation. */
192
- creditCode?: AppLimitCreditCodeFilter;
193
- /** Filter by the object’s `defaultLimit` relation. */
194
- defaultLimit?: AppLimitDefaultFilter;
103
+ /** Represents an update to a `AppLimitCapsDefault`. Fields that are set will be updated. */
104
+ export interface AppLimitCapsDefaultPatch {
105
+ id?: string;
106
+ /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */
107
+ max?: string;
108
+ /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */
109
+ name?: string;
195
110
  }
196
111
  /** A filter to be used against `AppLimitCreditCode` object types. All fields are combined with a logical ‘and.’ */
197
112
  export interface AppLimitCreditCodeFilter {
198
- /** Filter by the object’s `id` field. */
199
- id?: UUIDFilter;
200
- /** Filter by the object’s `code` field. */
201
- code?: StringFilter;
202
- /** Filter by the object’s `maxRedemptions` field. */
203
- maxRedemptions?: IntFilter;
204
- /** Filter by the object’s `currentRedemptions` field. */
205
- currentRedemptions?: IntFilter;
206
- /** Filter by the object’s `expiresAt` field. */
207
- expiresAt?: DatetimeFilter;
208
113
  /** Checks for all expressions in this list. */
209
114
  and?: AppLimitCreditCodeFilter[];
210
- /** Checks for any expressions in this list. */
211
- or?: AppLimitCreditCodeFilter[];
212
- /** Negates the expression. */
213
- not?: AppLimitCreditCodeFilter;
214
115
  /** Filter by the object’s `appLimitCreditCodeItemsByCreditCodeId` relation. */
215
116
  appLimitCreditCodeItemsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter;
216
117
  /** `appLimitCreditCodeItemsByCreditCodeId` exist. */
@@ -219,1472 +120,1573 @@ export interface AppLimitCreditCodeFilter {
219
120
  appLimitCreditRedemptionsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter;
220
121
  /** `appLimitCreditRedemptionsByCreditCodeId` exist. */
221
122
  appLimitCreditRedemptionsByCreditCodeIdExist?: boolean;
222
- }
223
- /** A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */
224
- export interface AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter {
225
- /** Filters to entities where at least one related entity matches. */
226
- some?: AppLimitCreditCodeItemFilter;
227
- /** Filters to entities where every related entity matches. */
228
- every?: AppLimitCreditCodeItemFilter;
229
- /** Filters to entities where no related entity matches. */
230
- none?: AppLimitCreditCodeItemFilter;
231
- }
232
- /** A filter to be used against many `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */
233
- export interface AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter {
234
- /** Filters to entities where at least one related entity matches. */
235
- some?: AppLimitCreditRedemptionFilter;
236
- /** Filters to entities where every related entity matches. */
237
- every?: AppLimitCreditRedemptionFilter;
238
- /** Filters to entities where no related entity matches. */
239
- none?: AppLimitCreditRedemptionFilter;
240
- }
241
- /** A filter to be used against `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */
242
- export interface AppLimitCreditRedemptionFilter {
123
+ /** Filter by the object’s `code` field. */
124
+ code?: StringFilter;
125
+ /** Filter by the object’s `currentRedemptions` field. */
126
+ currentRedemptions?: IntFilter;
127
+ /** Filter by the object’s `expiresAt` field. */
128
+ expiresAt?: DatetimeFilter;
243
129
  /** Filter by the object’s `id` field. */
244
130
  id?: UUIDFilter;
245
- /** Filter by the object’s `creditCodeId` field. */
246
- creditCodeId?: UUIDFilter;
247
- /** Filter by the object’s `entityId` field. */
248
- entityId?: UUIDFilter;
249
- /** Filter by the object’s `organizationId` field. */
250
- organizationId?: UUIDFilter;
251
- /** Filter by the object’s `entityType` field. */
252
- entityType?: StringFilter;
253
- /** Checks for all expressions in this list. */
254
- and?: AppLimitCreditRedemptionFilter[];
255
- /** Checks for any expressions in this list. */
256
- or?: AppLimitCreditRedemptionFilter[];
131
+ /** Filter by the object’s `maxRedemptions` field. */
132
+ maxRedemptions?: IntFilter;
257
133
  /** Negates the expression. */
258
- not?: AppLimitCreditRedemptionFilter;
259
- /** Filter by the object’s `creditCode` relation. */
260
- creditCode?: AppLimitCreditCodeFilter;
134
+ not?: AppLimitCreditCodeFilter;
135
+ /** Checks for any expressions in this list. */
136
+ or?: AppLimitCreditCodeFilter[];
261
137
  }
262
- /** A filter to be used against `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ */
263
- export interface OrgLimitCreditFilter {
264
- /** Filter by the object’s `id` field. */
265
- id?: UUIDFilter;
266
- /** Filter by the object’s `defaultLimitId` field. */
267
- defaultLimitId?: UUIDFilter;
268
- /** Filter by the object’s `actorId` field. */
269
- actorId?: UUIDFilter;
270
- /** Filter by the object’s `entityId` field. */
271
- entityId?: UUIDFilter;
272
- /** Filter by the object’s `organizationId` field. */
273
- organizationId?: UUIDFilter;
274
- /** Filter by the object’s `entityType` field. */
275
- entityType?: StringFilter;
138
+ /** An input for mutations affecting `AppLimitCreditCode` */
139
+ export interface AppLimitCreditCodeInput {
140
+ /** Human-readable credit code (case-insensitive, unique) */
141
+ code: string;
142
+ /** Current number of redemptions (incremented by trigger on credit_redemptions) */
143
+ currentRedemptions?: number;
144
+ /** Expiration timestamp; NULL for no expiry */
145
+ expiresAt?: string;
146
+ id?: string;
147
+ /** Maximum total redemptions allowed; NULL for unlimited */
148
+ maxRedemptions?: number;
149
+ }
150
+ /** A filter to be used against `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */
151
+ export interface AppLimitCreditCodeItemFilter {
276
152
  /** Filter by the object’s `amount` field. */
277
153
  amount?: BigIntFilter;
154
+ /** Checks for all expressions in this list. */
155
+ and?: AppLimitCreditCodeItemFilter[];
156
+ /** Filter by the object’s `creditCode` relation. */
157
+ creditCode?: AppLimitCreditCodeFilter;
158
+ /** Filter by the object’s `creditCodeId` field. */
159
+ creditCodeId?: UUIDFilter;
278
160
  /** Filter by the object’s `creditType` field. */
279
161
  creditType?: StringFilter;
280
- /** Filter by the object’s `reason` field. */
281
- reason?: StringFilter;
282
- /** Checks for all expressions in this list. */
283
- and?: OrgLimitCreditFilter[];
284
- /** Checks for any expressions in this list. */
285
- or?: OrgLimitCreditFilter[];
286
- /** Negates the expression. */
287
- not?: OrgLimitCreditFilter;
288
162
  /** Filter by the object’s `defaultLimit` relation. */
289
- defaultLimit?: OrgLimitDefaultFilter;
290
- }
291
- /** A filter to be used against `OrgLimitDefault` object types. All fields are combined with a logical ‘and.’ */
292
- export interface OrgLimitDefaultFilter {
163
+ defaultLimit?: AppLimitDefaultFilter;
164
+ /** Filter by the object’s `defaultLimitId` field. */
165
+ defaultLimitId?: UUIDFilter;
293
166
  /** Filter by the object’s `id` field. */
294
167
  id?: UUIDFilter;
295
- /** Filter by the object’s `name` field. */
296
- name?: StringFilter;
297
- /** Filter by the object’s `max` field. */
298
- max?: BigIntFilter;
299
- /** Filter by the object’s `softMax` field. */
300
- softMax?: BigIntFilter;
301
- /** Checks for all expressions in this list. */
302
- and?: OrgLimitDefaultFilter[];
303
- /** Checks for any expressions in this list. */
304
- or?: OrgLimitDefaultFilter[];
305
168
  /** Negates the expression. */
306
- not?: OrgLimitDefaultFilter;
307
- /** Filter by the object’s `orgLimitCreditsByDefaultLimitId` relation. */
308
- orgLimitCreditsByDefaultLimitId?: OrgLimitDefaultToManyOrgLimitCreditFilter;
309
- /** `orgLimitCreditsByDefaultLimitId` exist. */
310
- orgLimitCreditsByDefaultLimitIdExist?: boolean;
169
+ not?: AppLimitCreditCodeItemFilter;
170
+ /** Checks for any expressions in this list. */
171
+ or?: AppLimitCreditCodeItemFilter[];
311
172
  }
312
- /** A filter to be used against many `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ */
313
- export interface OrgLimitDefaultToManyOrgLimitCreditFilter {
173
+ /** An input for mutations affecting `AppLimitCreditCodeItem` */
174
+ export interface AppLimitCreditCodeItemInput {
175
+ /** Number of credits this item grants per redemption */
176
+ amount: string;
177
+ /** FK to credit_codes — which code this item belongs to */
178
+ creditCodeId: string;
179
+ /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */
180
+ creditType?: string;
181
+ /** FK to default_limits — which limit this item grants credits for */
182
+ defaultLimitId: string;
183
+ id?: string;
184
+ }
185
+ /** Represents an update to a `AppLimitCreditCodeItem`. Fields that are set will be updated. */
186
+ export interface AppLimitCreditCodeItemPatch {
187
+ /** Number of credits this item grants per redemption */
188
+ amount?: string;
189
+ /** FK to credit_codes — which code this item belongs to */
190
+ creditCodeId?: string;
191
+ /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */
192
+ creditType?: string;
193
+ /** FK to default_limits — which limit this item grants credits for */
194
+ defaultLimitId?: string;
195
+ id?: string;
196
+ }
197
+ /** Represents an update to a `AppLimitCreditCode`. Fields that are set will be updated. */
198
+ export interface AppLimitCreditCodePatch {
199
+ /** Human-readable credit code (case-insensitive, unique) */
200
+ code?: string;
201
+ /** Current number of redemptions (incremented by trigger on credit_redemptions) */
202
+ currentRedemptions?: number;
203
+ /** Expiration timestamp; NULL for no expiry */
204
+ expiresAt?: string;
205
+ id?: string;
206
+ /** Maximum total redemptions allowed; NULL for unlimited */
207
+ maxRedemptions?: number;
208
+ }
209
+ /** A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */
210
+ export interface AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter {
211
+ /** Filters to entities where every related entity matches. */
212
+ every?: AppLimitCreditCodeItemFilter;
213
+ /** Filters to entities where no related entity matches. */
214
+ none?: AppLimitCreditCodeItemFilter;
314
215
  /** Filters to entities where at least one related entity matches. */
315
- some?: OrgLimitCreditFilter;
216
+ some?: AppLimitCreditCodeItemFilter;
217
+ }
218
+ /** A filter to be used against many `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */
219
+ export interface AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter {
316
220
  /** Filters to entities where every related entity matches. */
317
- every?: OrgLimitCreditFilter;
221
+ every?: AppLimitCreditRedemptionFilter;
318
222
  /** Filters to entities where no related entity matches. */
319
- none?: OrgLimitCreditFilter;
223
+ none?: AppLimitCreditRedemptionFilter;
224
+ /** Filters to entities where at least one related entity matches. */
225
+ some?: AppLimitCreditRedemptionFilter;
320
226
  }
321
- /** A filter to be used against `AppLimitWarning` object types. All fields are combined with a logical ‘and.’ */
322
- export interface AppLimitWarningFilter {
323
- /** Filter by the object’s `id` field. */
324
- id?: UUIDFilter;
325
- /** Filter by the object’s `name` field. */
326
- name?: StringFilter;
327
- /** Filter by the object’s `warningType` field. */
328
- warningType?: StringFilter;
329
- /** Filter by the object’s `thresholdValue` field. */
330
- thresholdValue?: BigIntFilter;
331
- /** Filter by the object’s `taskIdentifier` field. */
332
- taskIdentifier?: StringFilter;
227
+ /** A filter to be used against `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */
228
+ export interface AppLimitCreditFilter {
229
+ /** Filter by the object’s `actorId` field. */
230
+ actorId?: UUIDFilter;
231
+ /** Filter by the object’s `amount` field. */
232
+ amount?: BigIntFilter;
333
233
  /** Checks for all expressions in this list. */
334
- and?: AppLimitWarningFilter[];
335
- /** Checks for any expressions in this list. */
336
- or?: AppLimitWarningFilter[];
337
- /** Negates the expression. */
338
- not?: AppLimitWarningFilter;
339
- }
340
- /** A filter to be used against `OrgLimitWarning` object types. All fields are combined with a logical ‘and.’ */
341
- export interface OrgLimitWarningFilter {
234
+ and?: AppLimitCreditFilter[];
235
+ /** Filter by the object’s `creditType` field. */
236
+ creditType?: StringFilter;
237
+ /** Filter by the object’s `defaultLimit` relation. */
238
+ defaultLimit?: AppLimitDefaultFilter;
239
+ /** Filter by the object’s `defaultLimitId` field. */
240
+ defaultLimitId?: UUIDFilter;
342
241
  /** Filter by the object’s `id` field. */
343
242
  id?: UUIDFilter;
344
- /** Filter by the object’s `name` field. */
345
- name?: StringFilter;
346
- /** Filter by the object’s `warningType` field. */
347
- warningType?: StringFilter;
348
- /** Filter by the object’s `thresholdValue` field. */
349
- thresholdValue?: BigIntFilter;
350
- /** Filter by the object’s `taskIdentifier` field. */
351
- taskIdentifier?: StringFilter;
352
- /** Filter by the object’s `entityId` field. */
353
- entityId?: UUIDFilter;
354
- /** Checks for all expressions in this list. */
355
- and?: OrgLimitWarningFilter[];
356
- /** Checks for any expressions in this list. */
357
- or?: OrgLimitWarningFilter[];
358
243
  /** Negates the expression. */
359
- not?: OrgLimitWarningFilter;
244
+ not?: AppLimitCreditFilter;
245
+ /** Checks for any expressions in this list. */
246
+ or?: AppLimitCreditFilter[];
247
+ /** Filter by the object’s `reason` field. */
248
+ reason?: StringFilter;
360
249
  }
361
- /** A filter to be used against `AppLimitEvent` object types. All fields are combined with a logical ‘and.’ */
362
- export interface AppLimitEventFilter {
363
- /** Filter by the object’s `createdAt` field. */
364
- createdAt?: DatetimeFilter;
365
- /** Filter by the object’s `id` field. */
366
- id?: UUIDFilter;
367
- /** Filter by the object’s `name` field. */
368
- name?: StringFilter;
369
- /** Filter by the object’s `actorId` field. */
370
- actorId?: UUIDFilter;
250
+ /** An input for mutations affecting `AppLimitCredit` */
251
+ export interface AppLimitCreditInput {
252
+ /** User this credit is for; NULL for aggregate entity-level credits */
253
+ actorId?: string;
254
+ /** Number of credits to grant (positive to add, negative to revoke) */
255
+ amount: string;
256
+ /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */
257
+ creditType?: string;
258
+ /** FK to default_limits which limit definition this credit applies to */
259
+ defaultLimitId: string;
260
+ id?: string;
261
+ /** Optional reason for the credit grant (promo code, admin grant, etc.) */
262
+ reason?: string;
263
+ }
264
+ /** Represents an update to a `AppLimitCredit`. Fields that are set will be updated. */
265
+ export interface AppLimitCreditPatch {
266
+ /** User this credit is for; NULL for aggregate entity-level credits */
267
+ actorId?: string;
268
+ /** Number of credits to grant (positive to add, negative to revoke) */
269
+ amount?: string;
270
+ /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */
271
+ creditType?: string;
272
+ /** FK to default_limits — which limit definition this credit applies to */
273
+ defaultLimitId?: string;
274
+ id?: string;
275
+ /** Optional reason for the credit grant (promo code, admin grant, etc.) */
276
+ reason?: string;
277
+ }
278
+ /** A filter to be used against `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */
279
+ export interface AppLimitCreditRedemptionFilter {
280
+ /** Checks for all expressions in this list. */
281
+ and?: AppLimitCreditRedemptionFilter[];
282
+ /** Filter by the object’s `creditCode` relation. */
283
+ creditCode?: AppLimitCreditCodeFilter;
284
+ /** Filter by the object’s `creditCodeId` field. */
285
+ creditCodeId?: UUIDFilter;
371
286
  /** Filter by the object’s `entityId` field. */
372
287
  entityId?: UUIDFilter;
373
- /** Filter by the object’s `organizationId` field. */
374
- organizationId?: UUIDFilter;
375
288
  /** Filter by the object’s `entityType` field. */
376
289
  entityType?: StringFilter;
377
- /** Filter by the object’s `eventType` field. */
378
- eventType?: StringFilter;
379
- /** Filter by the object’s `delta` field. */
380
- delta?: BigIntFilter;
381
- /** Filter by the object’s `numBefore` field. */
382
- numBefore?: BigIntFilter;
383
- /** Filter by the object’s `numAfter` field. */
384
- numAfter?: BigIntFilter;
385
- /** Filter by the object’s `maxAtEvent` field. */
386
- maxAtEvent?: BigIntFilter;
387
- /** Filter by the object’s `reason` field. */
388
- reason?: StringFilter;
389
- /** Checks for all expressions in this list. */
390
- and?: AppLimitEventFilter[];
391
- /** Checks for any expressions in this list. */
392
- or?: AppLimitEventFilter[];
393
- /** Negates the expression. */
394
- not?: AppLimitEventFilter;
395
- }
396
- /** A filter to be used against `OrgLimitEvent` object types. All fields are combined with a logical ‘and.’ */
397
- export interface OrgLimitEventFilter {
398
- /** Filter by the object’s `createdAt` field. */
399
- createdAt?: DatetimeFilter;
400
290
  /** Filter by the object’s `id` field. */
401
291
  id?: UUIDFilter;
402
- /** Filter by the object’s `name` field. */
403
- name?: StringFilter;
404
- /** Filter by the object’s `actorId` field. */
405
- actorId?: UUIDFilter;
406
- /** Filter by the object’s `entityId` field. */
407
- entityId?: UUIDFilter;
292
+ /** Negates the expression. */
293
+ not?: AppLimitCreditRedemptionFilter;
294
+ /** Checks for any expressions in this list. */
295
+ or?: AppLimitCreditRedemptionFilter[];
408
296
  /** Filter by the object’s `organizationId` field. */
409
297
  organizationId?: UUIDFilter;
298
+ }
299
+ /** An input for mutations affecting `AppLimitCreditRedemption` */
300
+ export interface AppLimitCreditRedemptionInput {
301
+ /** FK to credit_codes — which code is being redeemed */
302
+ creditCodeId: string;
303
+ /** Entity receiving the credits (personal org user_id or org entity_id) */
304
+ entityId: string;
305
+ /** Membership prefix identifying the entity kind (org, team, app) */
306
+ entityType?: string;
307
+ id?: string;
308
+ /** Resolved billable organization via get_organization_id */
309
+ organizationId?: string;
310
+ }
311
+ /** Represents an update to a `AppLimitCreditRedemption`. Fields that are set will be updated. */
312
+ export interface AppLimitCreditRedemptionPatch {
313
+ /** FK to credit_codes — which code is being redeemed */
314
+ creditCodeId?: string;
315
+ /** Entity receiving the credits (personal org user_id or org entity_id) */
316
+ entityId?: string;
317
+ /** Membership prefix identifying the entity kind (org, team, app) */
318
+ entityType?: string;
319
+ id?: string;
320
+ /** Resolved billable organization via get_organization_id */
321
+ organizationId?: string;
322
+ }
323
+ /** A filter to be used against `AppLimitDefault` object types. All fields are combined with a logical ‘and.’ */
324
+ export interface AppLimitDefaultFilter {
325
+ /** Checks for all expressions in this list. */
326
+ and?: AppLimitDefaultFilter[];
327
+ /** Filter by the object’s `appLimitCreditCodeItemsByDefaultLimitId` relation. */
328
+ appLimitCreditCodeItemsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditCodeItemFilter;
329
+ /** `appLimitCreditCodeItemsByDefaultLimitId` exist. */
330
+ appLimitCreditCodeItemsByDefaultLimitIdExist?: boolean;
331
+ /** Filter by the object’s `appLimitCreditsByDefaultLimitId` relation. */
332
+ appLimitCreditsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditFilter;
333
+ /** `appLimitCreditsByDefaultLimitId` exist. */
334
+ appLimitCreditsByDefaultLimitIdExist?: boolean;
335
+ /** Filter by the object’s `id` field. */
336
+ id?: UUIDFilter;
337
+ /** Filter by the object’s `max` field. */
338
+ max?: BigIntFilter;
339
+ /** Filter by the object’s `name` field. */
340
+ name?: StringFilter;
341
+ /** Negates the expression. */
342
+ not?: AppLimitDefaultFilter;
343
+ /** Checks for any expressions in this list. */
344
+ or?: AppLimitDefaultFilter[];
345
+ /** Filter by the object’s `softMax` field. */
346
+ softMax?: BigIntFilter;
347
+ }
348
+ /** An input for mutations affecting `AppLimitDefault` */
349
+ export interface AppLimitDefaultInput {
350
+ id?: string;
351
+ /** Default maximum usage allowed for this limit */
352
+ max?: string;
353
+ /** Name identifier of the limit this default applies to */
354
+ name: string;
355
+ /** Default soft limit threshold for warnings; NULL means no soft limit */
356
+ softMax?: string;
357
+ }
358
+ /** Represents an update to a `AppLimitDefault`. Fields that are set will be updated. */
359
+ export interface AppLimitDefaultPatch {
360
+ id?: string;
361
+ /** Default maximum usage allowed for this limit */
362
+ max?: string;
363
+ /** Name identifier of the limit this default applies to */
364
+ name?: string;
365
+ /** Default soft limit threshold for warnings; NULL means no soft limit */
366
+ softMax?: string;
367
+ }
368
+ /** A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */
369
+ export interface AppLimitDefaultToManyAppLimitCreditCodeItemFilter {
370
+ /** Filters to entities where every related entity matches. */
371
+ every?: AppLimitCreditCodeItemFilter;
372
+ /** Filters to entities where no related entity matches. */
373
+ none?: AppLimitCreditCodeItemFilter;
374
+ /** Filters to entities where at least one related entity matches. */
375
+ some?: AppLimitCreditCodeItemFilter;
376
+ }
377
+ /** A filter to be used against many `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */
378
+ export interface AppLimitDefaultToManyAppLimitCreditFilter {
379
+ /** Filters to entities where every related entity matches. */
380
+ every?: AppLimitCreditFilter;
381
+ /** Filters to entities where no related entity matches. */
382
+ none?: AppLimitCreditFilter;
383
+ /** Filters to entities where at least one related entity matches. */
384
+ some?: AppLimitCreditFilter;
385
+ }
386
+ /** A filter to be used against `AppLimitEvent` object types. All fields are combined with a logical ‘and.’ */
387
+ export interface AppLimitEventFilter {
388
+ /** Filter by the object’s `actorId` field. */
389
+ actorId?: UUIDFilter;
390
+ /** Checks for all expressions in this list. */
391
+ and?: AppLimitEventFilter[];
392
+ /** Filter by the object’s `createdAt` field. */
393
+ createdAt?: DatetimeFilter;
394
+ /** Filter by the object’s `delta` field. */
395
+ delta?: BigIntFilter;
396
+ /** Filter by the object’s `entityId` field. */
397
+ entityId?: UUIDFilter;
410
398
  /** Filter by the object’s `entityType` field. */
411
399
  entityType?: StringFilter;
412
400
  /** Filter by the object’s `eventType` field. */
413
401
  eventType?: StringFilter;
414
- /** Filter by the object’s `delta` field. */
415
- delta?: BigIntFilter;
416
- /** Filter by the object’s `numBefore` field. */
417
- numBefore?: BigIntFilter;
418
- /** Filter by the object’s `numAfter` field. */
419
- numAfter?: BigIntFilter;
402
+ /** Filter by the object’s `id` field. */
403
+ id?: UUIDFilter;
420
404
  /** Filter by the object’s `maxAtEvent` field. */
421
405
  maxAtEvent?: BigIntFilter;
406
+ /** Filter by the object’s `name` field. */
407
+ name?: StringFilter;
408
+ /** Negates the expression. */
409
+ not?: AppLimitEventFilter;
410
+ /** Filter by the object’s `numAfter` field. */
411
+ numAfter?: BigIntFilter;
412
+ /** Filter by the object’s `numBefore` field. */
413
+ numBefore?: BigIntFilter;
414
+ /** Checks for any expressions in this list. */
415
+ or?: AppLimitEventFilter[];
416
+ /** Filter by the object’s `organizationId` field. */
417
+ organizationId?: UUIDFilter;
422
418
  /** Filter by the object’s `reason` field. */
423
419
  reason?: StringFilter;
424
- /** Checks for all expressions in this list. */
425
- and?: OrgLimitEventFilter[];
426
- /** Checks for any expressions in this list. */
427
- or?: OrgLimitEventFilter[];
428
- /** Negates the expression. */
429
- not?: OrgLimitEventFilter;
420
+ }
421
+ /** An input for mutations affecting `AppLimitEvent` */
422
+ export interface AppLimitEventInput {
423
+ /** User who triggered this event; NULL for system/aggregate events */
424
+ actorId?: string;
425
+ createdAt?: string;
426
+ /** Change amount: positive for increment, negative for decrement */
427
+ delta?: string;
428
+ /** Entity this event applies to; NULL for app-level events */
429
+ entityId?: string;
430
+ /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */
431
+ entityType?: string;
432
+ /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */
433
+ eventType?: string;
434
+ /** Unique identifier for each limit event */
435
+ id?: string;
436
+ /** Max limit ceiling at the time of this event */
437
+ maxAtEvent?: string;
438
+ /** Limit name this event applies to */
439
+ name?: string;
440
+ /** Usage count after this event */
441
+ numAfter?: string;
442
+ /** Usage count before this event */
443
+ numBefore?: string;
444
+ /** Resolved billable organization via get_organization_id; NULL for app-level events */
445
+ organizationId?: string;
446
+ /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */
447
+ reason?: string;
448
+ }
449
+ /** Represents an update to a `AppLimitEvent`. Fields that are set will be updated. */
450
+ export interface AppLimitEventPatch {
451
+ /** User who triggered this event; NULL for system/aggregate events */
452
+ actorId?: string;
453
+ createdAt?: string;
454
+ /** Change amount: positive for increment, negative for decrement */
455
+ delta?: string;
456
+ /** Entity this event applies to; NULL for app-level events */
457
+ entityId?: string;
458
+ /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */
459
+ entityType?: string;
460
+ /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */
461
+ eventType?: string;
462
+ /** Unique identifier for each limit event */
463
+ id?: string;
464
+ /** Max limit ceiling at the time of this event */
465
+ maxAtEvent?: string;
466
+ /** Limit name this event applies to */
467
+ name?: string;
468
+ /** Usage count after this event */
469
+ numAfter?: string;
470
+ /** Usage count before this event */
471
+ numBefore?: string;
472
+ /** Resolved billable organization via get_organization_id; NULL for app-level events */
473
+ organizationId?: string;
474
+ /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */
475
+ reason?: string;
430
476
  }
431
477
  /** A filter to be used against `AppLimit` object types. All fields are combined with a logical ‘and.’ */
432
478
  export interface AppLimitFilter {
479
+ /** Filter by the object’s `actorId` field. */
480
+ actorId?: UUIDFilter;
481
+ /** Checks for all expressions in this list. */
482
+ and?: AppLimitFilter[];
483
+ /** Filter by the object’s `entityType` field. */
484
+ entityType?: StringFilter;
433
485
  /** Filter by the object’s `id` field. */
434
486
  id?: UUIDFilter;
487
+ /** Filter by the object’s `max` field. */
488
+ max?: BigIntFilter;
435
489
  /** Filter by the object’s `name` field. */
436
490
  name?: StringFilter;
437
- /** Filter by the object’s `actorId` field. */
438
- actorId?: UUIDFilter;
491
+ /** Negates the expression. */
492
+ not?: AppLimitFilter;
439
493
  /** Filter by the object’s `num` field. */
440
494
  num?: BigIntFilter;
441
- /** Filter by the object’s `max` field. */
442
- max?: BigIntFilter;
443
- /** Filter by the object’s `softMax` field. */
444
- softMax?: BigIntFilter;
445
- /** Filter by the object’s `windowStart` field. */
446
- windowStart?: DatetimeFilter;
447
- /** Filter by the object’s `windowDuration` field. */
448
- windowDuration?: IntervalFilter;
495
+ /** Checks for any expressions in this list. */
496
+ or?: AppLimitFilter[];
497
+ /** Filter by the object’s `organizationId` field. */
498
+ organizationId?: UUIDFilter;
499
+ /** Filter by the object’s `periodCredits` field. */
500
+ periodCredits?: BigIntFilter;
449
501
  /** Filter by the object’s `planMax` field. */
450
502
  planMax?: BigIntFilter;
451
503
  /** Filter by the object’s `purchasedCredits` field. */
452
504
  purchasedCredits?: BigIntFilter;
453
- /** Filter by the object’s `periodCredits` field. */
454
- periodCredits?: BigIntFilter;
455
- /** Filter by the object’s `organizationId` field. */
456
- organizationId?: UUIDFilter;
457
- /** Filter by the object’s `entityType` field. */
458
- entityType?: StringFilter;
459
- /** Checks for all expressions in this list. */
460
- and?: AppLimitFilter[];
461
- /** Checks for any expressions in this list. */
462
- or?: AppLimitFilter[];
463
- /** Negates the expression. */
464
- not?: AppLimitFilter;
505
+ /** Filter by the object’s `softMax` field. */
506
+ softMax?: BigIntFilter;
507
+ /** Filter by the object’s `windowDuration` field. */
508
+ windowDuration?: IntervalFilter;
509
+ /** Filter by the object’s `windowStart` field. */
510
+ windowStart?: DatetimeFilter;
465
511
  }
466
- /** A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ */
467
- export interface IntervalFilter {
468
- /** Is null (if `true` is specified) or is not null (if `false` is specified). */
469
- isNull?: boolean;
470
- /** Equal to the specified value. */
471
- equalTo?: IntervalInput;
472
- /** Not equal to the specified value. */
473
- notEqualTo?: IntervalInput;
474
- /** Not equal to the specified value, treating null like an ordinary value. */
475
- distinctFrom?: IntervalInput;
476
- /** Equal to the specified value, treating null like an ordinary value. */
477
- notDistinctFrom?: IntervalInput;
478
- /** Included in the specified list. */
479
- in?: IntervalInput[];
480
- /** Not included in the specified list. */
481
- notIn?: IntervalInput[];
482
- /** Less than the specified value. */
483
- lessThan?: IntervalInput;
484
- /** Less than or equal to the specified value. */
485
- lessThanOrEqualTo?: IntervalInput;
486
- /** Greater than the specified value. */
487
- greaterThan?: IntervalInput;
488
- /** Greater than or equal to the specified value. */
489
- greaterThanOrEqualTo?: IntervalInput;
512
+ /** An input for mutations affecting `AppLimit` */
513
+ export interface AppLimitInput {
514
+ /** User whose usage is being tracked against this limit */
515
+ actorId: string;
516
+ /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */
517
+ entityType?: string;
518
+ id?: string;
519
+ /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */
520
+ max?: string;
521
+ /** Name identifier of the limit being tracked */
522
+ name?: string;
523
+ /** Current usage count for this actor and limit */
524
+ num?: string;
525
+ /** Resolved billable organization via get_organization_id */
526
+ organizationId?: string;
527
+ /** Temporary credits for the current billing window. Resets to 0 on window expiry. */
528
+ periodCredits?: string;
529
+ /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */
530
+ planMax?: string;
531
+ /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */
532
+ purchasedCredits?: string;
533
+ /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */
534
+ softMax?: string;
535
+ /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */
536
+ windowDuration?: IntervalInput;
537
+ /** Start of the current metering window; NULL means no time window */
538
+ windowStart?: string;
490
539
  }
491
- /** An interval of time that has passed where the smallest distinct unit is a second. */
492
- export interface IntervalInput {
493
- /**
494
- * A quantity of seconds. This is the only non-integer field, as all the other
495
- * fields will dump their overflow into a smaller unit of time. Intervals don’t
496
- * have a smaller unit than seconds.
497
- */
498
- seconds?: number;
499
- /** A quantity of minutes. */
500
- minutes?: number;
501
- /** A quantity of hours. */
502
- hours?: number;
503
- /** A quantity of days. */
504
- days?: number;
505
- /** A quantity of months. */
506
- months?: number;
507
- /** A quantity of years. */
508
- years?: number;
540
+ /** Represents an update to a `AppLimit`. Fields that are set will be updated. */
541
+ export interface AppLimitPatch {
542
+ /** User whose usage is being tracked against this limit */
543
+ actorId?: string;
544
+ /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */
545
+ entityType?: string;
546
+ id?: string;
547
+ /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */
548
+ max?: string;
549
+ /** Name identifier of the limit being tracked */
550
+ name?: string;
551
+ /** Current usage count for this actor and limit */
552
+ num?: string;
553
+ /** Resolved billable organization via get_organization_id */
554
+ organizationId?: string;
555
+ /** Temporary credits for the current billing window. Resets to 0 on window expiry. */
556
+ periodCredits?: string;
557
+ /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */
558
+ planMax?: string;
559
+ /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */
560
+ purchasedCredits?: string;
561
+ /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */
562
+ softMax?: string;
563
+ /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */
564
+ windowDuration?: IntervalInput;
565
+ /** Start of the current metering window; NULL means no time window */
566
+ windowStart?: string;
509
567
  }
510
- /** A filter to be used against `OrgLimitAggregate` object types. All fields are combined with a logical ‘and.’ */
511
- export interface OrgLimitAggregateFilter {
512
- /** Filter by the object’s `id` field. */
513
- id?: UUIDFilter;
514
- /** Filter by the object’s `name` field. */
515
- name?: StringFilter;
516
- /** Filter by the object’s `entityId` field. */
517
- entityId?: UUIDFilter;
518
- /** Filter by the object’s `num` field. */
519
- num?: BigIntFilter;
520
- /** Filter by the object’s `max` field. */
521
- max?: BigIntFilter;
522
- /** Filter by the object’s `softMax` field. */
523
- softMax?: BigIntFilter;
524
- /** Filter by the object’s `windowStart` field. */
525
- windowStart?: DatetimeFilter;
526
- /** Filter by the object’s `windowDuration` field. */
527
- windowDuration?: IntervalFilter;
528
- /** Filter by the object’s `planMax` field. */
529
- planMax?: BigIntFilter;
530
- /** Filter by the object’s `purchasedCredits` field. */
531
- purchasedCredits?: BigIntFilter;
532
- /** Filter by the object’s `periodCredits` field. */
533
- periodCredits?: BigIntFilter;
534
- /** Filter by the object’s `reserved` field. */
535
- reserved?: BigIntFilter;
536
- /** Filter by the object’s `organizationId` field. */
537
- organizationId?: UUIDFilter;
538
- /** Filter by the object’s `entityType` field. */
539
- entityType?: StringFilter;
568
+ /** A filter to be used against `AppLimitWarning` object types. All fields are combined with a logical ‘and.’ */
569
+ export interface AppLimitWarningFilter {
540
570
  /** Checks for all expressions in this list. */
541
- and?: OrgLimitAggregateFilter[];
542
- /** Checks for any expressions in this list. */
543
- or?: OrgLimitAggregateFilter[];
544
- /** Negates the expression. */
545
- not?: OrgLimitAggregateFilter;
546
- }
547
- /** A filter to be used against `OrgLimit` object types. All fields are combined with a logical ‘and.’ */
548
- export interface OrgLimitFilter {
571
+ and?: AppLimitWarningFilter[];
549
572
  /** Filter by the object’s `id` field. */
550
573
  id?: UUIDFilter;
551
574
  /** Filter by the object’s `name` field. */
552
575
  name?: StringFilter;
553
- /** Filter by the object’s `actorId` field. */
554
- actorId?: UUIDFilter;
555
- /** Filter by the object’s `num` field. */
556
- num?: BigIntFilter;
557
- /** Filter by the object’s `max` field. */
558
- max?: BigIntFilter;
559
- /** Filter by the object’s `softMax` field. */
560
- softMax?: BigIntFilter;
561
- /** Filter by the object’s `windowStart` field. */
562
- windowStart?: DatetimeFilter;
563
- /** Filter by the object’s `windowDuration` field. */
564
- windowDuration?: IntervalFilter;
565
- /** Filter by the object’s `planMax` field. */
566
- planMax?: BigIntFilter;
567
- /** Filter by the object’s `purchasedCredits` field. */
568
- purchasedCredits?: BigIntFilter;
569
- /** Filter by the object’s `periodCredits` field. */
570
- periodCredits?: BigIntFilter;
571
- /** Filter by the object’s `entityId` field. */
572
- entityId?: UUIDFilter;
573
- /** Filter by the object’s `organizationId` field. */
574
- organizationId?: UUIDFilter;
575
- /** Filter by the object’s `entityType` field. */
576
- entityType?: StringFilter;
577
- /** Checks for all expressions in this list. */
578
- and?: OrgLimitFilter[];
579
- /** Checks for any expressions in this list. */
580
- or?: OrgLimitFilter[];
581
576
  /** Negates the expression. */
582
- not?: OrgLimitFilter;
577
+ not?: AppLimitWarningFilter;
578
+ /** Checks for any expressions in this list. */
579
+ or?: AppLimitWarningFilter[];
580
+ /** Filter by the object’s `taskIdentifier` field. */
581
+ taskIdentifier?: StringFilter;
582
+ /** Filter by the object’s `thresholdValue` field. */
583
+ thresholdValue?: BigIntFilter;
584
+ /** Filter by the object’s `warningType` field. */
585
+ warningType?: StringFilter;
583
586
  }
584
- export interface SeedAppLimitCapsDefaultsInput {
587
+ /** An input for mutations affecting `AppLimitWarning` */
588
+ export interface AppLimitWarningInput {
589
+ id?: string;
590
+ /** Limit name this warning applies to (must match a default_limits entry) */
591
+ name: string;
592
+ /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */
593
+ taskIdentifier: string;
594
+ /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */
595
+ thresholdValue: string;
596
+ /** Threshold type: absolute (fixed count) or percentage (of max) */
597
+ warningType: string;
598
+ }
599
+ /** Represents an update to a `AppLimitWarning`. Fields that are set will be updated. */
600
+ export interface AppLimitWarningPatch {
601
+ id?: string;
602
+ /** Limit name this warning applies to (must match a default_limits entry) */
603
+ name?: string;
604
+ /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */
605
+ taskIdentifier?: string;
606
+ /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */
607
+ thresholdValue?: string;
608
+ /** Threshold type: absolute (fixed count) or percentage (of max) */
609
+ warningType?: string;
610
+ }
611
+ export interface CreateAppLimitCapInput {
612
+ /** The `AppLimitCap` to be created by this mutation. */
613
+ appLimitCap: AppLimitCapInput;
585
614
  clientMutationId?: string;
586
- defaults?: unknown;
587
615
  }
588
- export interface SeedAppLimitDefaultsInput {
616
+ export interface CreateAppLimitCapsDefaultInput {
617
+ /** The `AppLimitCapsDefault` to be created by this mutation. */
618
+ appLimitCapsDefault: AppLimitCapsDefaultInput;
589
619
  clientMutationId?: string;
590
- defaults?: unknown;
591
620
  }
592
- export interface SeedOrgLimitCapsDefaultsInput {
621
+ export interface CreateAppLimitCreditCodeInput {
622
+ /** The `AppLimitCreditCode` to be created by this mutation. */
623
+ appLimitCreditCode: AppLimitCreditCodeInput;
593
624
  clientMutationId?: string;
594
- defaults?: unknown;
595
625
  }
596
- export interface SeedOrgLimitDefaultsInput {
626
+ export interface CreateAppLimitCreditCodeItemInput {
627
+ /** The `AppLimitCreditCodeItem` to be created by this mutation. */
628
+ appLimitCreditCodeItem: AppLimitCreditCodeItemInput;
597
629
  clientMutationId?: string;
598
- defaults?: unknown;
599
630
  }
600
- export interface CreateAppLimitCapsDefaultInput {
631
+ export interface CreateAppLimitCreditInput {
632
+ /** The `AppLimitCredit` to be created by this mutation. */
633
+ appLimitCredit: AppLimitCreditInput;
601
634
  clientMutationId?: string;
602
- /** The `AppLimitCapsDefault` to be created by this mutation. */
603
- appLimitCapsDefault: AppLimitCapsDefaultInput;
604
635
  }
605
- /** An input for mutations affecting `AppLimitCapsDefault` */
606
- export interface AppLimitCapsDefaultInput {
607
- id?: string;
608
- /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */
609
- name: string;
610
- /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */
611
- max?: string;
636
+ export interface CreateAppLimitCreditRedemptionInput {
637
+ /** The `AppLimitCreditRedemption` to be created by this mutation. */
638
+ appLimitCreditRedemption: AppLimitCreditRedemptionInput;
639
+ clientMutationId?: string;
612
640
  }
613
- export interface CreateOrgLimitCapsDefaultInput {
641
+ export interface CreateAppLimitDefaultInput {
642
+ /** The `AppLimitDefault` to be created by this mutation. */
643
+ appLimitDefault: AppLimitDefaultInput;
614
644
  clientMutationId?: string;
615
- /** The `OrgLimitCapsDefault` to be created by this mutation. */
616
- orgLimitCapsDefault: OrgLimitCapsDefaultInput;
617
645
  }
618
- /** An input for mutations affecting `OrgLimitCapsDefault` */
619
- export interface OrgLimitCapsDefaultInput {
620
- id?: string;
621
- /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */
622
- name: string;
623
- /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */
624
- max?: string;
646
+ export interface CreateAppLimitEventInput {
647
+ /** The `AppLimitEvent` to be created by this mutation. */
648
+ appLimitEvent: AppLimitEventInput;
649
+ clientMutationId?: string;
625
650
  }
626
- export interface CreateAppLimitCapInput {
651
+ export interface CreateAppLimitInput {
652
+ /** The `AppLimit` to be created by this mutation. */
653
+ appLimit: AppLimitInput;
627
654
  clientMutationId?: string;
628
- /** The `AppLimitCap` to be created by this mutation. */
629
- appLimitCap: AppLimitCapInput;
630
655
  }
631
- /** An input for mutations affecting `AppLimitCap` */
632
- export interface AppLimitCapInput {
633
- id?: string;
634
- /** Name identifier of the cap being overridden */
635
- name: string;
636
- /** Entity this cap override applies to */
637
- entityId: string;
638
- /** Override cap value for this entity */
639
- max?: string;
656
+ export interface CreateAppLimitWarningInput {
657
+ /** The `AppLimitWarning` to be created by this mutation. */
658
+ appLimitWarning: AppLimitWarningInput;
659
+ clientMutationId?: string;
660
+ }
661
+ export interface CreateOrgLimitAggregateInput {
662
+ clientMutationId?: string;
663
+ /** The `OrgLimitAggregate` to be created by this mutation. */
664
+ orgLimitAggregate: OrgLimitAggregateInput;
640
665
  }
641
666
  export interface CreateOrgLimitCapInput {
642
667
  clientMutationId?: string;
643
668
  /** The `OrgLimitCap` to be created by this mutation. */
644
669
  orgLimitCap: OrgLimitCapInput;
645
670
  }
646
- /** An input for mutations affecting `OrgLimitCap` */
647
- export interface OrgLimitCapInput {
648
- id?: string;
649
- /** Name identifier of the cap being overridden */
650
- name: string;
651
- /** Entity this cap override applies to */
652
- entityId: string;
653
- /** Override cap value for this entity */
654
- max?: string;
655
- }
656
- export interface CreateAppLimitDefaultInput {
671
+ export interface CreateOrgLimitCapsDefaultInput {
657
672
  clientMutationId?: string;
658
- /** The `AppLimitDefault` to be created by this mutation. */
659
- appLimitDefault: AppLimitDefaultInput;
673
+ /** The `OrgLimitCapsDefault` to be created by this mutation. */
674
+ orgLimitCapsDefault: OrgLimitCapsDefaultInput;
660
675
  }
661
- /** An input for mutations affecting `AppLimitDefault` */
662
- export interface AppLimitDefaultInput {
663
- id?: string;
664
- /** Name identifier of the limit this default applies to */
665
- name: string;
666
- /** Default maximum usage allowed for this limit */
667
- max?: string;
668
- /** Default soft limit threshold for warnings; NULL means no soft limit */
669
- softMax?: string;
676
+ export interface CreateOrgLimitCreditInput {
677
+ clientMutationId?: string;
678
+ /** The `OrgLimitCredit` to be created by this mutation. */
679
+ orgLimitCredit: OrgLimitCreditInput;
670
680
  }
671
681
  export interface CreateOrgLimitDefaultInput {
672
682
  clientMutationId?: string;
673
683
  /** The `OrgLimitDefault` to be created by this mutation. */
674
684
  orgLimitDefault: OrgLimitDefaultInput;
675
685
  }
676
- /** An input for mutations affecting `OrgLimitDefault` */
677
- export interface OrgLimitDefaultInput {
678
- id?: string;
679
- /** Name identifier of the limit this default applies to */
680
- name: string;
681
- /** Default maximum usage allowed for this limit */
682
- max?: string;
683
- /** Default soft limit threshold for warnings; NULL means no soft limit */
684
- softMax?: string;
686
+ export interface CreateOrgLimitEventInput {
687
+ clientMutationId?: string;
688
+ /** The `OrgLimitEvent` to be created by this mutation. */
689
+ orgLimitEvent: OrgLimitEventInput;
685
690
  }
686
- export interface CreateAppLimitCreditRedemptionInput {
691
+ export interface CreateOrgLimitInput {
687
692
  clientMutationId?: string;
688
- /** The `AppLimitCreditRedemption` to be created by this mutation. */
689
- appLimitCreditRedemption: AppLimitCreditRedemptionInput;
693
+ /** The `OrgLimit` to be created by this mutation. */
694
+ orgLimit: OrgLimitInput;
690
695
  }
691
- /** An input for mutations affecting `AppLimitCreditRedemption` */
692
- export interface AppLimitCreditRedemptionInput {
693
- id?: string;
694
- /** FK to credit_codes — which code is being redeemed */
695
- creditCodeId: string;
696
- /** Entity receiving the credits (personal org user_id or org entity_id) */
697
- entityId: string;
698
- /** Resolved billable organization via get_organization_id */
699
- organizationId?: string;
700
- /** Membership prefix identifying the entity kind (org, team, app) */
701
- entityType?: string;
696
+ export interface CreateOrgLimitWarningInput {
697
+ clientMutationId?: string;
698
+ /** The `OrgLimitWarning` to be created by this mutation. */
699
+ orgLimitWarning: OrgLimitWarningInput;
702
700
  }
703
- export interface CreateAppLimitCreditCodeItemInput {
701
+ export interface DeleteAppLimitCapInput {
704
702
  clientMutationId?: string;
705
- /** The `AppLimitCreditCodeItem` to be created by this mutation. */
706
- appLimitCreditCodeItem: AppLimitCreditCodeItemInput;
703
+ id: string;
707
704
  }
708
- /** An input for mutations affecting `AppLimitCreditCodeItem` */
709
- export interface AppLimitCreditCodeItemInput {
710
- id?: string;
711
- /** FK to credit_codes — which code this item belongs to */
712
- creditCodeId: string;
713
- /** FK to default_limits — which limit this item grants credits for */
714
- defaultLimitId: string;
715
- /** Number of credits this item grants per redemption */
716
- amount: string;
717
- /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */
718
- creditType?: string;
705
+ export interface DeleteAppLimitCapsDefaultInput {
706
+ clientMutationId?: string;
707
+ id: string;
719
708
  }
720
- export interface CreateAppLimitWarningInput {
709
+ export interface DeleteAppLimitCreditCodeInput {
721
710
  clientMutationId?: string;
722
- /** The `AppLimitWarning` to be created by this mutation. */
723
- appLimitWarning: AppLimitWarningInput;
711
+ id: string;
724
712
  }
725
- /** An input for mutations affecting `AppLimitWarning` */
726
- export interface AppLimitWarningInput {
727
- id?: string;
728
- /** Limit name this warning applies to (must match a default_limits entry) */
729
- name: string;
730
- /** Threshold type: absolute (fixed count) or percentage (of max) */
731
- warningType: string;
732
- /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */
733
- thresholdValue: string;
734
- /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */
735
- taskIdentifier: string;
713
+ export interface DeleteAppLimitCreditCodeItemInput {
714
+ clientMutationId?: string;
715
+ id: string;
736
716
  }
737
- export interface CreateAppLimitCreditInput {
717
+ export interface DeleteAppLimitCreditInput {
738
718
  clientMutationId?: string;
739
- /** The `AppLimitCredit` to be created by this mutation. */
740
- appLimitCredit: AppLimitCreditInput;
719
+ id: string;
741
720
  }
742
- /** An input for mutations affecting `AppLimitCredit` */
743
- export interface AppLimitCreditInput {
744
- id?: string;
745
- /** FK to default_limits — which limit definition this credit applies to */
746
- defaultLimitId: string;
747
- /** User this credit is for; NULL for aggregate entity-level credits */
748
- actorId?: string;
749
- /** Number of credits to grant (positive to add, negative to revoke) */
750
- amount: string;
751
- /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */
752
- creditType?: string;
753
- /** Optional reason for the credit grant (promo code, admin grant, etc.) */
754
- reason?: string;
721
+ export interface DeleteAppLimitCreditRedemptionInput {
722
+ clientMutationId?: string;
723
+ id: string;
755
724
  }
756
- export interface CreateOrgLimitWarningInput {
725
+ export interface DeleteAppLimitDefaultInput {
757
726
  clientMutationId?: string;
758
- /** The `OrgLimitWarning` to be created by this mutation. */
759
- orgLimitWarning: OrgLimitWarningInput;
727
+ id: string;
760
728
  }
761
- /** An input for mutations affecting `OrgLimitWarning` */
762
- export interface OrgLimitWarningInput {
763
- id?: string;
764
- /** Limit name this warning applies to (must match a default_limits entry) */
765
- name: string;
766
- /** Threshold type: absolute (fixed count) or percentage (of max) */
767
- warningType: string;
768
- /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */
769
- thresholdValue: string;
770
- /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */
771
- taskIdentifier: string;
772
- /** Per-entity override (NULL = scope default for all entities) */
773
- entityId?: string;
729
+ export interface DeleteAppLimitEventInput {
730
+ clientMutationId?: string;
731
+ createdAt: string;
732
+ /** Unique identifier for each limit event */
733
+ id: string;
774
734
  }
775
- export interface CreateOrgLimitCreditInput {
735
+ export interface DeleteAppLimitInput {
776
736
  clientMutationId?: string;
777
- /** The `OrgLimitCredit` to be created by this mutation. */
778
- orgLimitCredit: OrgLimitCreditInput;
737
+ id: string;
779
738
  }
780
- /** An input for mutations affecting `OrgLimitCredit` */
781
- export interface OrgLimitCreditInput {
782
- id?: string;
783
- /** FK to default_limits — which limit definition this credit applies to */
784
- defaultLimitId: string;
785
- /** User this credit is for; NULL for aggregate entity-level credits */
786
- actorId?: string;
787
- /** Entity this credit applies to; NULL for actor-only credits */
788
- entityId?: string;
789
- /** Resolved billable organization via get_organization_id */
790
- organizationId?: string;
791
- /** Membership prefix identifying the entity kind (org, team, app) */
792
- entityType?: string;
793
- /** Number of credits to grant (positive to add, negative to revoke) */
794
- amount: string;
795
- /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */
796
- creditType?: string;
797
- /** Optional reason for the credit grant (promo code, admin grant, etc.) */
798
- reason?: string;
739
+ export interface DeleteAppLimitWarningInput {
740
+ clientMutationId?: string;
741
+ id: string;
799
742
  }
800
- export interface CreateAppLimitCreditCodeInput {
743
+ export interface DeleteOrgLimitAggregateInput {
801
744
  clientMutationId?: string;
802
- /** The `AppLimitCreditCode` to be created by this mutation. */
803
- appLimitCreditCode: AppLimitCreditCodeInput;
745
+ id: string;
804
746
  }
805
- /** An input for mutations affecting `AppLimitCreditCode` */
806
- export interface AppLimitCreditCodeInput {
807
- id?: string;
808
- /** Human-readable credit code (case-insensitive, unique) */
809
- code: string;
810
- /** Maximum total redemptions allowed; NULL for unlimited */
811
- maxRedemptions?: number;
812
- /** Current number of redemptions (incremented by trigger on credit_redemptions) */
813
- currentRedemptions?: number;
814
- /** Expiration timestamp; NULL for no expiry */
815
- expiresAt?: string;
747
+ export interface DeleteOrgLimitCapInput {
748
+ clientMutationId?: string;
749
+ id: string;
816
750
  }
817
- export interface CreateAppLimitEventInput {
751
+ export interface DeleteOrgLimitCapsDefaultInput {
818
752
  clientMutationId?: string;
819
- /** The `AppLimitEvent` to be created by this mutation. */
820
- appLimitEvent: AppLimitEventInput;
753
+ id: string;
821
754
  }
822
- /** An input for mutations affecting `AppLimitEvent` */
823
- export interface AppLimitEventInput {
824
- createdAt?: string;
825
- /** Unique identifier for each limit event */
826
- id?: string;
827
- /** Limit name this event applies to */
828
- name?: string;
829
- /** User who triggered this event; NULL for system/aggregate events */
830
- actorId?: string;
831
- /** Entity this event applies to; NULL for app-level events */
832
- entityId?: string;
833
- /** Resolved billable organization via get_organization_id; NULL for app-level events */
834
- organizationId?: string;
835
- /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */
836
- entityType?: string;
837
- /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */
838
- eventType?: string;
839
- /** Change amount: positive for increment, negative for decrement */
840
- delta?: string;
841
- /** Usage count before this event */
842
- numBefore?: string;
843
- /** Usage count after this event */
844
- numAfter?: string;
845
- /** Max limit ceiling at the time of this event */
846
- maxAtEvent?: string;
847
- /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */
848
- reason?: string;
755
+ export interface DeleteOrgLimitCreditInput {
756
+ clientMutationId?: string;
757
+ id: string;
849
758
  }
850
- export interface CreateOrgLimitEventInput {
759
+ export interface DeleteOrgLimitDefaultInput {
851
760
  clientMutationId?: string;
852
- /** The `OrgLimitEvent` to be created by this mutation. */
853
- orgLimitEvent: OrgLimitEventInput;
761
+ id: string;
854
762
  }
855
- /** An input for mutations affecting `OrgLimitEvent` */
856
- export interface OrgLimitEventInput {
857
- createdAt?: string;
763
+ export interface DeleteOrgLimitEventInput {
764
+ clientMutationId?: string;
765
+ createdAt: string;
858
766
  /** Unique identifier for each limit event */
859
- id?: string;
860
- /** Limit name this event applies to */
861
- name?: string;
862
- /** User who triggered this event; NULL for system/aggregate events */
863
- actorId?: string;
864
- /** Entity this event applies to; NULL for app-level events */
865
- entityId?: string;
866
- /** Resolved billable organization via get_organization_id; NULL for app-level events */
867
- organizationId?: string;
767
+ id: string;
768
+ }
769
+ export interface DeleteOrgLimitInput {
770
+ clientMutationId?: string;
771
+ id: string;
772
+ }
773
+ export interface DeleteOrgLimitWarningInput {
774
+ clientMutationId?: string;
775
+ id: string;
776
+ }
777
+ /** A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ */
778
+ export interface IntervalFilter {
779
+ /** Not equal to the specified value, treating null like an ordinary value. */
780
+ distinctFrom?: IntervalInput;
781
+ /** Equal to the specified value. */
782
+ equalTo?: IntervalInput;
783
+ /** Greater than the specified value. */
784
+ greaterThan?: IntervalInput;
785
+ /** Greater than or equal to the specified value. */
786
+ greaterThanOrEqualTo?: IntervalInput;
787
+ /** Included in the specified list. */
788
+ in?: IntervalInput[];
789
+ /** Is null (if `true` is specified) or is not null (if `false` is specified). */
790
+ isNull?: boolean;
791
+ /** Less than the specified value. */
792
+ lessThan?: IntervalInput;
793
+ /** Less than or equal to the specified value. */
794
+ lessThanOrEqualTo?: IntervalInput;
795
+ /** Equal to the specified value, treating null like an ordinary value. */
796
+ notDistinctFrom?: IntervalInput;
797
+ /** Not equal to the specified value. */
798
+ notEqualTo?: IntervalInput;
799
+ /** Not included in the specified list. */
800
+ notIn?: IntervalInput[];
801
+ }
802
+ /** An interval of time that has passed where the smallest distinct unit is a second. */
803
+ export interface IntervalInput {
804
+ /** A quantity of days. */
805
+ days?: number;
806
+ /** A quantity of hours. */
807
+ hours?: number;
808
+ /** A quantity of minutes. */
809
+ minutes?: number;
810
+ /** A quantity of months. */
811
+ months?: number;
812
+ /**
813
+ * A quantity of seconds. This is the only non-integer field, as all the other
814
+ * fields will dump their overflow into a smaller unit of time. Intervals don’t
815
+ * have a smaller unit than seconds.
816
+ */
817
+ seconds?: number;
818
+ /** A quantity of years. */
819
+ years?: number;
820
+ }
821
+ /** A filter to be used against `OrgLimitAggregate` object types. All fields are combined with a logical ‘and.’ */
822
+ export interface OrgLimitAggregateFilter {
823
+ /** Checks for all expressions in this list. */
824
+ and?: OrgLimitAggregateFilter[];
825
+ /** Filter by the object’s `entityId` field. */
826
+ entityId?: UUIDFilter;
827
+ /** Filter by the object’s `entityType` field. */
828
+ entityType?: StringFilter;
829
+ /** Filter by the object’s `id` field. */
830
+ id?: UUIDFilter;
831
+ /** Filter by the object’s `max` field. */
832
+ max?: BigIntFilter;
833
+ /** Filter by the object’s `name` field. */
834
+ name?: StringFilter;
835
+ /** Negates the expression. */
836
+ not?: OrgLimitAggregateFilter;
837
+ /** Filter by the object’s `num` field. */
838
+ num?: BigIntFilter;
839
+ /** Checks for any expressions in this list. */
840
+ or?: OrgLimitAggregateFilter[];
841
+ /** Filter by the object’s `organizationId` field. */
842
+ organizationId?: UUIDFilter;
843
+ /** Filter by the object’s `periodCredits` field. */
844
+ periodCredits?: BigIntFilter;
845
+ /** Filter by the object’s `planMax` field. */
846
+ planMax?: BigIntFilter;
847
+ /** Filter by the object’s `purchasedCredits` field. */
848
+ purchasedCredits?: BigIntFilter;
849
+ /** Filter by the object’s `reserved` field. */
850
+ reserved?: BigIntFilter;
851
+ /** Filter by the object’s `softMax` field. */
852
+ softMax?: BigIntFilter;
853
+ /** Filter by the object’s `windowDuration` field. */
854
+ windowDuration?: IntervalFilter;
855
+ /** Filter by the object’s `windowStart` field. */
856
+ windowStart?: DatetimeFilter;
857
+ }
858
+ /** An input for mutations affecting `OrgLimitAggregate` */
859
+ export interface OrgLimitAggregateInput {
860
+ /** Entity (org) whose aggregate usage is being tracked */
861
+ entityId: string;
868
862
  /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */
869
863
  entityType?: string;
870
- /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */
871
- eventType?: string;
872
- /** Change amount: positive for increment, negative for decrement */
873
- delta?: string;
874
- /** Usage count before this event */
875
- numBefore?: string;
876
- /** Usage count after this event */
877
- numAfter?: string;
878
- /** Max limit ceiling at the time of this event */
879
- maxAtEvent?: string;
880
- /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */
881
- reason?: string;
882
- }
883
- export interface CreateAppLimitInput {
884
- clientMutationId?: string;
885
- /** The `AppLimit` to be created by this mutation. */
886
- appLimit: AppLimitInput;
887
- }
888
- /** An input for mutations affecting `AppLimit` */
889
- export interface AppLimitInput {
890
864
  id?: string;
891
- /** Name identifier of the limit being tracked */
865
+ /** Maximum allowed aggregate usage; negative means unlimited */
866
+ max?: string;
867
+ /** Name identifier of the aggregate limit being tracked */
892
868
  name?: string;
893
- /** User whose usage is being tracked against this limit */
894
- actorId: string;
895
- /** Current usage count for this actor and limit */
869
+ /** Current aggregate usage count for this entity and limit */
896
870
  num?: string;
897
- /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */
898
- max?: string;
899
- /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */
900
- softMax?: string;
901
- /** Start of the current metering window; NULL means no time window */
902
- windowStart?: string;
903
- /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */
904
- windowDuration?: IntervalInput;
871
+ /** Resolved billable organization via get_organization_id */
872
+ organizationId?: string;
873
+ /** Temporary credits for the current billing window. Resets to 0 on window expiry. */
874
+ periodCredits?: string;
905
875
  /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */
906
876
  planMax?: string;
907
877
  /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */
908
878
  purchasedCredits?: string;
909
- /** Temporary credits for the current billing window. Resets to 0 on window expiry. */
910
- periodCredits?: string;
911
- /** Resolved billable organization via get_organization_id */
912
- organizationId?: string;
879
+ /** Capacity reserved by child entities in budgeted allocation mode. Available = max - num - reserved. */
880
+ reserved?: string;
881
+ /** Soft limit threshold for warnings; NULL means no soft limit */
882
+ softMax?: string;
883
+ /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */
884
+ windowDuration?: IntervalInput;
885
+ /** Start of the current metering window; NULL means no time window */
886
+ windowStart?: string;
887
+ }
888
+ /** Represents an update to a `OrgLimitAggregate`. Fields that are set will be updated. */
889
+ export interface OrgLimitAggregatePatch {
890
+ /** Entity (org) whose aggregate usage is being tracked */
891
+ entityId?: string;
913
892
  /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */
914
893
  entityType?: string;
915
- }
916
- export interface CreateOrgLimitAggregateInput {
917
- clientMutationId?: string;
918
- /** The `OrgLimitAggregate` to be created by this mutation. */
919
- orgLimitAggregate: OrgLimitAggregateInput;
920
- }
921
- /** An input for mutations affecting `OrgLimitAggregate` */
922
- export interface OrgLimitAggregateInput {
923
894
  id?: string;
895
+ /** Maximum allowed aggregate usage; negative means unlimited */
896
+ max?: string;
924
897
  /** Name identifier of the aggregate limit being tracked */
925
898
  name?: string;
926
- /** Entity (org) whose aggregate usage is being tracked */
927
- entityId: string;
928
899
  /** Current aggregate usage count for this entity and limit */
929
900
  num?: string;
930
- /** Maximum allowed aggregate usage; negative means unlimited */
931
- max?: string;
932
- /** Soft limit threshold for warnings; NULL means no soft limit */
933
- softMax?: string;
934
- /** Start of the current metering window; NULL means no time window */
935
- windowStart?: string;
936
- /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */
937
- windowDuration?: IntervalInput;
901
+ /** Resolved billable organization via get_organization_id */
902
+ organizationId?: string;
903
+ /** Temporary credits for the current billing window. Resets to 0 on window expiry. */
904
+ periodCredits?: string;
938
905
  /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */
939
906
  planMax?: string;
940
907
  /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */
941
908
  purchasedCredits?: string;
942
- /** Temporary credits for the current billing window. Resets to 0 on window expiry. */
943
- periodCredits?: string;
944
909
  /** Capacity reserved by child entities in budgeted allocation mode. Available = max - num - reserved. */
945
910
  reserved?: string;
946
- /** Resolved billable organization via get_organization_id */
947
- organizationId?: string;
948
- /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */
949
- entityType?: string;
950
- }
951
- export interface CreateOrgLimitInput {
952
- clientMutationId?: string;
953
- /** The `OrgLimit` to be created by this mutation. */
954
- orgLimit: OrgLimitInput;
955
- }
956
- /** An input for mutations affecting `OrgLimit` */
957
- export interface OrgLimitInput {
958
- id?: string;
959
- /** Name identifier of the limit being tracked */
960
- name?: string;
961
- /** User whose usage is being tracked against this limit */
962
- actorId: string;
963
- /** Current usage count for this actor and limit */
964
- num?: string;
965
- /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */
966
- max?: string;
967
- /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */
911
+ /** Soft limit threshold for warnings; NULL means no soft limit */
968
912
  softMax?: string;
969
- /** Start of the current metering window; NULL means no time window */
970
- windowStart?: string;
971
913
  /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */
972
914
  windowDuration?: IntervalInput;
973
- /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */
974
- planMax?: string;
975
- /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */
976
- purchasedCredits?: string;
977
- /** Temporary credits for the current billing window. Resets to 0 on window expiry. */
978
- periodCredits?: string;
979
- entityId: string;
980
- /** Resolved billable organization via get_organization_id */
981
- organizationId?: string;
982
- /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */
983
- entityType?: string;
984
- }
985
- export interface UpdateAppLimitCapsDefaultInput {
986
- clientMutationId?: string;
987
- id: string;
988
- /** An object where the defined keys will be set on the `AppLimitCapsDefault` being updated. */
989
- appLimitCapsDefaultPatch: AppLimitCapsDefaultPatch;
990
- }
991
- /** Represents an update to a `AppLimitCapsDefault`. Fields that are set will be updated. */
992
- export interface AppLimitCapsDefaultPatch {
993
- id?: string;
994
- /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */
995
- name?: string;
996
- /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */
997
- max?: string;
998
- }
999
- export interface UpdateOrgLimitCapsDefaultInput {
1000
- clientMutationId?: string;
1001
- id: string;
1002
- /** An object where the defined keys will be set on the `OrgLimitCapsDefault` being updated. */
1003
- orgLimitCapsDefaultPatch: OrgLimitCapsDefaultPatch;
1004
- }
1005
- /** Represents an update to a `OrgLimitCapsDefault`. Fields that are set will be updated. */
1006
- export interface OrgLimitCapsDefaultPatch {
1007
- id?: string;
1008
- /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */
1009
- name?: string;
1010
- /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */
1011
- max?: string;
915
+ /** Start of the current metering window; NULL means no time window */
916
+ windowStart?: string;
1012
917
  }
1013
- export interface UpdateAppLimitCapInput {
1014
- clientMutationId?: string;
1015
- id: string;
1016
- /** An object where the defined keys will be set on the `AppLimitCap` being updated. */
1017
- appLimitCapPatch: AppLimitCapPatch;
918
+ /** A filter to be used against `OrgLimitCap` object types. All fields are combined with a logical ‘and.’ */
919
+ export interface OrgLimitCapFilter {
920
+ /** Checks for all expressions in this list. */
921
+ and?: OrgLimitCapFilter[];
922
+ /** Filter by the object’s `entityId` field. */
923
+ entityId?: UUIDFilter;
924
+ /** Filter by the object’s `id` field. */
925
+ id?: UUIDFilter;
926
+ /** Filter by the object’s `max` field. */
927
+ max?: BigIntFilter;
928
+ /** Filter by the object’s `name` field. */
929
+ name?: StringFilter;
930
+ /** Negates the expression. */
931
+ not?: OrgLimitCapFilter;
932
+ /** Checks for any expressions in this list. */
933
+ or?: OrgLimitCapFilter[];
1018
934
  }
1019
- /** Represents an update to a `AppLimitCap`. Fields that are set will be updated. */
1020
- export interface AppLimitCapPatch {
1021
- id?: string;
1022
- /** Name identifier of the cap being overridden */
1023
- name?: string;
935
+ /** An input for mutations affecting `OrgLimitCap` */
936
+ export interface OrgLimitCapInput {
1024
937
  /** Entity this cap override applies to */
1025
- entityId?: string;
938
+ entityId: string;
939
+ id?: string;
1026
940
  /** Override cap value for this entity */
1027
941
  max?: string;
1028
- }
1029
- export interface UpdateOrgLimitCapInput {
1030
- clientMutationId?: string;
1031
- id: string;
1032
- /** An object where the defined keys will be set on the `OrgLimitCap` being updated. */
1033
- orgLimitCapPatch: OrgLimitCapPatch;
942
+ /** Name identifier of the cap being overridden */
943
+ name: string;
1034
944
  }
1035
945
  /** Represents an update to a `OrgLimitCap`. Fields that are set will be updated. */
1036
946
  export interface OrgLimitCapPatch {
1037
- id?: string;
1038
- /** Name identifier of the cap being overridden */
1039
- name?: string;
1040
947
  /** Entity this cap override applies to */
1041
948
  entityId?: string;
1042
- /** Override cap value for this entity */
1043
- max?: string;
1044
- }
1045
- export interface UpdateAppLimitDefaultInput {
1046
- clientMutationId?: string;
1047
- id: string;
1048
- /** An object where the defined keys will be set on the `AppLimitDefault` being updated. */
1049
- appLimitDefaultPatch: AppLimitDefaultPatch;
1050
- }
1051
- /** Represents an update to a `AppLimitDefault`. Fields that are set will be updated. */
1052
- export interface AppLimitDefaultPatch {
1053
949
  id?: string;
1054
- /** Name identifier of the limit this default applies to */
1055
- name?: string;
1056
- /** Default maximum usage allowed for this limit */
950
+ /** Override cap value for this entity */
1057
951
  max?: string;
1058
- /** Default soft limit threshold for warnings; NULL means no soft limit */
1059
- softMax?: string;
1060
- }
1061
- export interface UpdateOrgLimitDefaultInput {
1062
- clientMutationId?: string;
1063
- id: string;
1064
- /** An object where the defined keys will be set on the `OrgLimitDefault` being updated. */
1065
- orgLimitDefaultPatch: OrgLimitDefaultPatch;
1066
- }
1067
- /** Represents an update to a `OrgLimitDefault`. Fields that are set will be updated. */
1068
- export interface OrgLimitDefaultPatch {
1069
- id?: string;
1070
- /** Name identifier of the limit this default applies to */
952
+ /** Name identifier of the cap being overridden */
1071
953
  name?: string;
1072
- /** Default maximum usage allowed for this limit */
1073
- max?: string;
1074
- /** Default soft limit threshold for warnings; NULL means no soft limit */
1075
- softMax?: string;
1076
- }
1077
- export interface UpdateAppLimitCreditRedemptionInput {
1078
- clientMutationId?: string;
1079
- id: string;
1080
- /** An object where the defined keys will be set on the `AppLimitCreditRedemption` being updated. */
1081
- appLimitCreditRedemptionPatch: AppLimitCreditRedemptionPatch;
1082
- }
1083
- /** Represents an update to a `AppLimitCreditRedemption`. Fields that are set will be updated. */
1084
- export interface AppLimitCreditRedemptionPatch {
1085
- id?: string;
1086
- /** FK to credit_codes — which code is being redeemed */
1087
- creditCodeId?: string;
1088
- /** Entity receiving the credits (personal org user_id or org entity_id) */
1089
- entityId?: string;
1090
- /** Resolved billable organization via get_organization_id */
1091
- organizationId?: string;
1092
- /** Membership prefix identifying the entity kind (org, team, app) */
1093
- entityType?: string;
1094
954
  }
1095
- export interface UpdateAppLimitCreditCodeItemInput {
1096
- clientMutationId?: string;
1097
- id: string;
1098
- /** An object where the defined keys will be set on the `AppLimitCreditCodeItem` being updated. */
1099
- appLimitCreditCodeItemPatch: AppLimitCreditCodeItemPatch;
955
+ /** A filter to be used against `OrgLimitCapsDefault` object types. All fields are combined with a logical ‘and.’ */
956
+ export interface OrgLimitCapsDefaultFilter {
957
+ /** Checks for all expressions in this list. */
958
+ and?: OrgLimitCapsDefaultFilter[];
959
+ /** Filter by the object’s `id` field. */
960
+ id?: UUIDFilter;
961
+ /** Filter by the object’s `max` field. */
962
+ max?: BigIntFilter;
963
+ /** Filter by the object’s `name` field. */
964
+ name?: StringFilter;
965
+ /** Negates the expression. */
966
+ not?: OrgLimitCapsDefaultFilter;
967
+ /** Checks for any expressions in this list. */
968
+ or?: OrgLimitCapsDefaultFilter[];
1100
969
  }
1101
- /** Represents an update to a `AppLimitCreditCodeItem`. Fields that are set will be updated. */
1102
- export interface AppLimitCreditCodeItemPatch {
970
+ /** An input for mutations affecting `OrgLimitCapsDefault` */
971
+ export interface OrgLimitCapsDefaultInput {
1103
972
  id?: string;
1104
- /** FK to credit_codes which code this item belongs to */
1105
- creditCodeId?: string;
1106
- /** FK to default_limits which limit this item grants credits for */
1107
- defaultLimitId?: string;
1108
- /** Number of credits this item grants per redemption */
1109
- amount?: string;
1110
- /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */
1111
- creditType?: string;
1112
- }
1113
- export interface UpdateAppLimitWarningInput {
1114
- clientMutationId?: string;
1115
- id: string;
1116
- /** An object where the defined keys will be set on the `AppLimitWarning` being updated. */
1117
- appLimitWarningPatch: AppLimitWarningPatch;
973
+ /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */
974
+ max?: string;
975
+ /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */
976
+ name: string;
1118
977
  }
1119
- /** Represents an update to a `AppLimitWarning`. Fields that are set will be updated. */
1120
- export interface AppLimitWarningPatch {
978
+ /** Represents an update to a `OrgLimitCapsDefault`. Fields that are set will be updated. */
979
+ export interface OrgLimitCapsDefaultPatch {
1121
980
  id?: string;
1122
- /** Limit name this warning applies to (must match a default_limits entry) */
981
+ /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */
982
+ max?: string;
983
+ /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */
1123
984
  name?: string;
1124
- /** Threshold type: absolute (fixed count) or percentage (of max) */
1125
- warningType?: string;
1126
- /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */
1127
- thresholdValue?: string;
1128
- /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */
1129
- taskIdentifier?: string;
1130
985
  }
1131
- export interface UpdateAppLimitCreditInput {
1132
- clientMutationId?: string;
1133
- id: string;
1134
- /** An object where the defined keys will be set on the `AppLimitCredit` being updated. */
1135
- appLimitCreditPatch: AppLimitCreditPatch;
986
+ /** A filter to be used against `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ */
987
+ export interface OrgLimitCreditFilter {
988
+ /** Filter by the object’s `actorId` field. */
989
+ actorId?: UUIDFilter;
990
+ /** Filter by the object’s `amount` field. */
991
+ amount?: BigIntFilter;
992
+ /** Checks for all expressions in this list. */
993
+ and?: OrgLimitCreditFilter[];
994
+ /** Filter by the object’s `creditType` field. */
995
+ creditType?: StringFilter;
996
+ /** Filter by the object’s `defaultLimit` relation. */
997
+ defaultLimit?: OrgLimitDefaultFilter;
998
+ /** Filter by the object’s `defaultLimitId` field. */
999
+ defaultLimitId?: UUIDFilter;
1000
+ /** Filter by the object’s `entityId` field. */
1001
+ entityId?: UUIDFilter;
1002
+ /** Filter by the object’s `entityType` field. */
1003
+ entityType?: StringFilter;
1004
+ /** Filter by the object’s `id` field. */
1005
+ id?: UUIDFilter;
1006
+ /** Negates the expression. */
1007
+ not?: OrgLimitCreditFilter;
1008
+ /** Checks for any expressions in this list. */
1009
+ or?: OrgLimitCreditFilter[];
1010
+ /** Filter by the object’s `organizationId` field. */
1011
+ organizationId?: UUIDFilter;
1012
+ /** Filter by the object’s `reason` field. */
1013
+ reason?: StringFilter;
1136
1014
  }
1137
- /** Represents an update to a `AppLimitCredit`. Fields that are set will be updated. */
1138
- export interface AppLimitCreditPatch {
1139
- id?: string;
1140
- /** FK to default_limits — which limit definition this credit applies to */
1141
- defaultLimitId?: string;
1015
+ /** An input for mutations affecting `OrgLimitCredit` */
1016
+ export interface OrgLimitCreditInput {
1142
1017
  /** User this credit is for; NULL for aggregate entity-level credits */
1143
1018
  actorId?: string;
1144
1019
  /** Number of credits to grant (positive to add, negative to revoke) */
1145
- amount?: string;
1020
+ amount: string;
1146
1021
  /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */
1147
1022
  creditType?: string;
1023
+ /** FK to default_limits — which limit definition this credit applies to */
1024
+ defaultLimitId: string;
1025
+ /** Entity this credit applies to; NULL for actor-only credits */
1026
+ entityId?: string;
1027
+ /** Membership prefix identifying the entity kind (org, team, app) */
1028
+ entityType?: string;
1029
+ id?: string;
1030
+ /** Resolved billable organization via get_organization_id */
1031
+ organizationId?: string;
1148
1032
  /** Optional reason for the credit grant (promo code, admin grant, etc.) */
1149
1033
  reason?: string;
1150
1034
  }
1151
- export interface UpdateOrgLimitWarningInput {
1152
- clientMutationId?: string;
1153
- id: string;
1154
- /** An object where the defined keys will be set on the `OrgLimitWarning` being updated. */
1155
- orgLimitWarningPatch: OrgLimitWarningPatch;
1156
- }
1157
- /** Represents an update to a `OrgLimitWarning`. Fields that are set will be updated. */
1158
- export interface OrgLimitWarningPatch {
1159
- id?: string;
1160
- /** Limit name this warning applies to (must match a default_limits entry) */
1161
- name?: string;
1162
- /** Threshold type: absolute (fixed count) or percentage (of max) */
1163
- warningType?: string;
1164
- /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */
1165
- thresholdValue?: string;
1166
- /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */
1167
- taskIdentifier?: string;
1168
- /** Per-entity override (NULL = scope default for all entities) */
1169
- entityId?: string;
1170
- }
1171
- export interface UpdateOrgLimitCreditInput {
1172
- clientMutationId?: string;
1173
- id: string;
1174
- /** An object where the defined keys will be set on the `OrgLimitCredit` being updated. */
1175
- orgLimitCreditPatch: OrgLimitCreditPatch;
1176
- }
1177
1035
  /** Represents an update to a `OrgLimitCredit`. Fields that are set will be updated. */
1178
1036
  export interface OrgLimitCreditPatch {
1179
- id?: string;
1180
- /** FK to default_limits — which limit definition this credit applies to */
1181
- defaultLimitId?: string;
1182
1037
  /** User this credit is for; NULL for aggregate entity-level credits */
1183
1038
  actorId?: string;
1184
- /** Entity this credit applies to; NULL for actor-only credits */
1185
- entityId?: string;
1186
- /** Resolved billable organization via get_organization_id */
1187
- organizationId?: string;
1188
- /** Membership prefix identifying the entity kind (org, team, app) */
1189
- entityType?: string;
1190
1039
  /** Number of credits to grant (positive to add, negative to revoke) */
1191
1040
  amount?: string;
1192
1041
  /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */
1193
1042
  creditType?: string;
1043
+ /** FK to default_limits — which limit definition this credit applies to */
1044
+ defaultLimitId?: string;
1045
+ /** Entity this credit applies to; NULL for actor-only credits */
1046
+ entityId?: string;
1047
+ /** Membership prefix identifying the entity kind (org, team, app) */
1048
+ entityType?: string;
1049
+ id?: string;
1050
+ /** Resolved billable organization via get_organization_id */
1051
+ organizationId?: string;
1194
1052
  /** Optional reason for the credit grant (promo code, admin grant, etc.) */
1195
1053
  reason?: string;
1196
1054
  }
1197
- export interface UpdateAppLimitCreditCodeInput {
1198
- clientMutationId?: string;
1199
- id: string;
1200
- /** An object where the defined keys will be set on the `AppLimitCreditCode` being updated. */
1201
- appLimitCreditCodePatch: AppLimitCreditCodePatch;
1055
+ /** A filter to be used against `OrgLimitDefault` object types. All fields are combined with a logical ‘and.’ */
1056
+ export interface OrgLimitDefaultFilter {
1057
+ /** Checks for all expressions in this list. */
1058
+ and?: OrgLimitDefaultFilter[];
1059
+ /** Filter by the object’s `id` field. */
1060
+ id?: UUIDFilter;
1061
+ /** Filter by the object’s `max` field. */
1062
+ max?: BigIntFilter;
1063
+ /** Filter by the object’s `name` field. */
1064
+ name?: StringFilter;
1065
+ /** Negates the expression. */
1066
+ not?: OrgLimitDefaultFilter;
1067
+ /** Checks for any expressions in this list. */
1068
+ or?: OrgLimitDefaultFilter[];
1069
+ /** Filter by the object’s `orgLimitCreditsByDefaultLimitId` relation. */
1070
+ orgLimitCreditsByDefaultLimitId?: OrgLimitDefaultToManyOrgLimitCreditFilter;
1071
+ /** `orgLimitCreditsByDefaultLimitId` exist. */
1072
+ orgLimitCreditsByDefaultLimitIdExist?: boolean;
1073
+ /** Filter by the object’s `softMax` field. */
1074
+ softMax?: BigIntFilter;
1202
1075
  }
1203
- /** Represents an update to a `AppLimitCreditCode`. Fields that are set will be updated. */
1204
- export interface AppLimitCreditCodePatch {
1076
+ /** An input for mutations affecting `OrgLimitDefault` */
1077
+ export interface OrgLimitDefaultInput {
1205
1078
  id?: string;
1206
- /** Human-readable credit code (case-insensitive, unique) */
1207
- code?: string;
1208
- /** Maximum total redemptions allowed; NULL for unlimited */
1209
- maxRedemptions?: number;
1210
- /** Current number of redemptions (incremented by trigger on credit_redemptions) */
1211
- currentRedemptions?: number;
1212
- /** Expiration timestamp; NULL for no expiry */
1213
- expiresAt?: string;
1214
- }
1215
- export interface UpdateAppLimitEventInput {
1216
- clientMutationId?: string;
1217
- createdAt: string;
1218
- /** Unique identifier for each limit event */
1219
- id: string;
1220
- /** An object where the defined keys will be set on the `AppLimitEvent` being updated. */
1221
- appLimitEventPatch: AppLimitEventPatch;
1079
+ /** Default maximum usage allowed for this limit */
1080
+ max?: string;
1081
+ /** Name identifier of the limit this default applies to */
1082
+ name: string;
1083
+ /** Default soft limit threshold for warnings; NULL means no soft limit */
1084
+ softMax?: string;
1222
1085
  }
1223
- /** Represents an update to a `AppLimitEvent`. Fields that are set will be updated. */
1224
- export interface AppLimitEventPatch {
1225
- createdAt?: string;
1226
- /** Unique identifier for each limit event */
1086
+ /** Represents an update to a `OrgLimitDefault`. Fields that are set will be updated. */
1087
+ export interface OrgLimitDefaultPatch {
1227
1088
  id?: string;
1228
- /** Limit name this event applies to */
1089
+ /** Default maximum usage allowed for this limit */
1090
+ max?: string;
1091
+ /** Name identifier of the limit this default applies to */
1229
1092
  name?: string;
1093
+ /** Default soft limit threshold for warnings; NULL means no soft limit */
1094
+ softMax?: string;
1095
+ }
1096
+ /** A filter to be used against many `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ */
1097
+ export interface OrgLimitDefaultToManyOrgLimitCreditFilter {
1098
+ /** Filters to entities where every related entity matches. */
1099
+ every?: OrgLimitCreditFilter;
1100
+ /** Filters to entities where no related entity matches. */
1101
+ none?: OrgLimitCreditFilter;
1102
+ /** Filters to entities where at least one related entity matches. */
1103
+ some?: OrgLimitCreditFilter;
1104
+ }
1105
+ /** A filter to be used against `OrgLimitEvent` object types. All fields are combined with a logical ‘and.’ */
1106
+ export interface OrgLimitEventFilter {
1107
+ /** Filter by the object’s `actorId` field. */
1108
+ actorId?: UUIDFilter;
1109
+ /** Checks for all expressions in this list. */
1110
+ and?: OrgLimitEventFilter[];
1111
+ /** Filter by the object’s `createdAt` field. */
1112
+ createdAt?: DatetimeFilter;
1113
+ /** Filter by the object’s `delta` field. */
1114
+ delta?: BigIntFilter;
1115
+ /** Filter by the object’s `entityId` field. */
1116
+ entityId?: UUIDFilter;
1117
+ /** Filter by the object’s `entityType` field. */
1118
+ entityType?: StringFilter;
1119
+ /** Filter by the object’s `eventType` field. */
1120
+ eventType?: StringFilter;
1121
+ /** Filter by the object’s `id` field. */
1122
+ id?: UUIDFilter;
1123
+ /** Filter by the object’s `maxAtEvent` field. */
1124
+ maxAtEvent?: BigIntFilter;
1125
+ /** Filter by the object’s `name` field. */
1126
+ name?: StringFilter;
1127
+ /** Negates the expression. */
1128
+ not?: OrgLimitEventFilter;
1129
+ /** Filter by the object’s `numAfter` field. */
1130
+ numAfter?: BigIntFilter;
1131
+ /** Filter by the object’s `numBefore` field. */
1132
+ numBefore?: BigIntFilter;
1133
+ /** Checks for any expressions in this list. */
1134
+ or?: OrgLimitEventFilter[];
1135
+ /** Filter by the object’s `organizationId` field. */
1136
+ organizationId?: UUIDFilter;
1137
+ /** Filter by the object’s `reason` field. */
1138
+ reason?: StringFilter;
1139
+ }
1140
+ /** An input for mutations affecting `OrgLimitEvent` */
1141
+ export interface OrgLimitEventInput {
1230
1142
  /** User who triggered this event; NULL for system/aggregate events */
1231
1143
  actorId?: string;
1144
+ createdAt?: string;
1145
+ /** Change amount: positive for increment, negative for decrement */
1146
+ delta?: string;
1232
1147
  /** Entity this event applies to; NULL for app-level events */
1233
1148
  entityId?: string;
1234
- /** Resolved billable organization via get_organization_id; NULL for app-level events */
1235
- organizationId?: string;
1236
1149
  /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */
1237
1150
  entityType?: string;
1238
1151
  /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */
1239
1152
  eventType?: string;
1240
- /** Change amount: positive for increment, negative for decrement */
1241
- delta?: string;
1242
- /** Usage count before this event */
1243
- numBefore?: string;
1244
- /** Usage count after this event */
1245
- numAfter?: string;
1153
+ /** Unique identifier for each limit event */
1154
+ id?: string;
1246
1155
  /** Max limit ceiling at the time of this event */
1247
1156
  maxAtEvent?: string;
1157
+ /** Limit name this event applies to */
1158
+ name?: string;
1159
+ /** Usage count after this event */
1160
+ numAfter?: string;
1161
+ /** Usage count before this event */
1162
+ numBefore?: string;
1163
+ /** Resolved billable organization via get_organization_id; NULL for app-level events */
1164
+ organizationId?: string;
1248
1165
  /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */
1249
1166
  reason?: string;
1250
1167
  }
1251
- export interface UpdateOrgLimitEventInput {
1252
- clientMutationId?: string;
1253
- createdAt: string;
1254
- /** Unique identifier for each limit event */
1255
- id: string;
1256
- /** An object where the defined keys will be set on the `OrgLimitEvent` being updated. */
1257
- orgLimitEventPatch: OrgLimitEventPatch;
1258
- }
1259
1168
  /** Represents an update to a `OrgLimitEvent`. Fields that are set will be updated. */
1260
1169
  export interface OrgLimitEventPatch {
1261
- createdAt?: string;
1262
- /** Unique identifier for each limit event */
1263
- id?: string;
1264
- /** Limit name this event applies to */
1265
- name?: string;
1266
1170
  /** User who triggered this event; NULL for system/aggregate events */
1267
1171
  actorId?: string;
1172
+ createdAt?: string;
1173
+ /** Change amount: positive for increment, negative for decrement */
1174
+ delta?: string;
1268
1175
  /** Entity this event applies to; NULL for app-level events */
1269
1176
  entityId?: string;
1270
- /** Resolved billable organization via get_organization_id; NULL for app-level events */
1271
- organizationId?: string;
1272
1177
  /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */
1273
1178
  entityType?: string;
1274
1179
  /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */
1275
1180
  eventType?: string;
1276
- /** Change amount: positive for increment, negative for decrement */
1277
- delta?: string;
1278
- /** Usage count before this event */
1279
- numBefore?: string;
1280
- /** Usage count after this event */
1281
- numAfter?: string;
1181
+ /** Unique identifier for each limit event */
1182
+ id?: string;
1282
1183
  /** Max limit ceiling at the time of this event */
1283
1184
  maxAtEvent?: string;
1185
+ /** Limit name this event applies to */
1186
+ name?: string;
1187
+ /** Usage count after this event */
1188
+ numAfter?: string;
1189
+ /** Usage count before this event */
1190
+ numBefore?: string;
1191
+ /** Resolved billable organization via get_organization_id; NULL for app-level events */
1192
+ organizationId?: string;
1284
1193
  /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */
1285
1194
  reason?: string;
1286
1195
  }
1287
- export interface UpdateAppLimitInput {
1288
- clientMutationId?: string;
1289
- id: string;
1290
- /** An object where the defined keys will be set on the `AppLimit` being updated. */
1291
- appLimitPatch: AppLimitPatch;
1196
+ /** A filter to be used against `OrgLimit` object types. All fields are combined with a logical ‘and.’ */
1197
+ export interface OrgLimitFilter {
1198
+ /** Filter by the object’s `actorId` field. */
1199
+ actorId?: UUIDFilter;
1200
+ /** Checks for all expressions in this list. */
1201
+ and?: OrgLimitFilter[];
1202
+ /** Filter by the object’s `entityId` field. */
1203
+ entityId?: UUIDFilter;
1204
+ /** Filter by the object’s `entityType` field. */
1205
+ entityType?: StringFilter;
1206
+ /** Filter by the object’s `id` field. */
1207
+ id?: UUIDFilter;
1208
+ /** Filter by the object’s `max` field. */
1209
+ max?: BigIntFilter;
1210
+ /** Filter by the object’s `name` field. */
1211
+ name?: StringFilter;
1212
+ /** Negates the expression. */
1213
+ not?: OrgLimitFilter;
1214
+ /** Filter by the object’s `num` field. */
1215
+ num?: BigIntFilter;
1216
+ /** Checks for any expressions in this list. */
1217
+ or?: OrgLimitFilter[];
1218
+ /** Filter by the object’s `organizationId` field. */
1219
+ organizationId?: UUIDFilter;
1220
+ /** Filter by the object’s `periodCredits` field. */
1221
+ periodCredits?: BigIntFilter;
1222
+ /** Filter by the object’s `planMax` field. */
1223
+ planMax?: BigIntFilter;
1224
+ /** Filter by the object’s `purchasedCredits` field. */
1225
+ purchasedCredits?: BigIntFilter;
1226
+ /** Filter by the object’s `softMax` field. */
1227
+ softMax?: BigIntFilter;
1228
+ /** Filter by the object’s `windowDuration` field. */
1229
+ windowDuration?: IntervalFilter;
1230
+ /** Filter by the object’s `windowStart` field. */
1231
+ windowStart?: DatetimeFilter;
1292
1232
  }
1293
- /** Represents an update to a `AppLimit`. Fields that are set will be updated. */
1294
- export interface AppLimitPatch {
1233
+ /** An input for mutations affecting `OrgLimit` */
1234
+ export interface OrgLimitInput {
1235
+ /** User whose usage is being tracked against this limit */
1236
+ actorId: string;
1237
+ entityId: string;
1238
+ /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */
1239
+ entityType?: string;
1295
1240
  id?: string;
1241
+ /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */
1242
+ max?: string;
1296
1243
  /** Name identifier of the limit being tracked */
1297
1244
  name?: string;
1298
- /** User whose usage is being tracked against this limit */
1299
- actorId?: string;
1300
1245
  /** Current usage count for this actor and limit */
1301
1246
  num?: string;
1302
- /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */
1303
- max?: string;
1304
- /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */
1305
- softMax?: string;
1306
- /** Start of the current metering window; NULL means no time window */
1307
- windowStart?: string;
1308
- /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */
1309
- windowDuration?: IntervalInput;
1247
+ /** Resolved billable organization via get_organization_id */
1248
+ organizationId?: string;
1249
+ /** Temporary credits for the current billing window. Resets to 0 on window expiry. */
1250
+ periodCredits?: string;
1310
1251
  /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */
1311
1252
  planMax?: string;
1312
1253
  /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */
1313
1254
  purchasedCredits?: string;
1314
- /** Temporary credits for the current billing window. Resets to 0 on window expiry. */
1315
- periodCredits?: string;
1316
- /** Resolved billable organization via get_organization_id */
1317
- organizationId?: string;
1318
- /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */
1319
- entityType?: string;
1320
- }
1321
- export interface UpdateOrgLimitAggregateInput {
1322
- clientMutationId?: string;
1323
- id: string;
1324
- /** An object where the defined keys will be set on the `OrgLimitAggregate` being updated. */
1325
- orgLimitAggregatePatch: OrgLimitAggregatePatch;
1326
- }
1327
- /** Represents an update to a `OrgLimitAggregate`. Fields that are set will be updated. */
1328
- export interface OrgLimitAggregatePatch {
1329
- id?: string;
1330
- /** Name identifier of the aggregate limit being tracked */
1331
- name?: string;
1332
- /** Entity (org) whose aggregate usage is being tracked */
1333
- entityId?: string;
1334
- /** Current aggregate usage count for this entity and limit */
1335
- num?: string;
1336
- /** Maximum allowed aggregate usage; negative means unlimited */
1337
- max?: string;
1338
- /** Soft limit threshold for warnings; NULL means no soft limit */
1255
+ /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */
1339
1256
  softMax?: string;
1340
- /** Start of the current metering window; NULL means no time window */
1341
- windowStart?: string;
1342
1257
  /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */
1343
1258
  windowDuration?: IntervalInput;
1344
- /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */
1345
- planMax?: string;
1346
- /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */
1347
- purchasedCredits?: string;
1348
- /** Temporary credits for the current billing window. Resets to 0 on window expiry. */
1349
- periodCredits?: string;
1350
- /** Capacity reserved by child entities in budgeted allocation mode. Available = max - num - reserved. */
1351
- reserved?: string;
1352
- /** Resolved billable organization via get_organization_id */
1353
- organizationId?: string;
1354
- /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */
1355
- entityType?: string;
1356
- }
1357
- export interface UpdateOrgLimitInput {
1358
- clientMutationId?: string;
1359
- id: string;
1360
- /** An object where the defined keys will be set on the `OrgLimit` being updated. */
1361
- orgLimitPatch: OrgLimitPatch;
1259
+ /** Start of the current metering window; NULL means no time window */
1260
+ windowStart?: string;
1362
1261
  }
1363
1262
  /** Represents an update to a `OrgLimit`. Fields that are set will be updated. */
1364
1263
  export interface OrgLimitPatch {
1264
+ /** User whose usage is being tracked against this limit */
1265
+ actorId?: string;
1266
+ entityId?: string;
1267
+ /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */
1268
+ entityType?: string;
1365
1269
  id?: string;
1270
+ /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */
1271
+ max?: string;
1366
1272
  /** Name identifier of the limit being tracked */
1367
1273
  name?: string;
1368
- /** User whose usage is being tracked against this limit */
1369
- actorId?: string;
1370
1274
  /** Current usage count for this actor and limit */
1371
1275
  num?: string;
1372
- /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */
1373
- max?: string;
1374
- /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */
1375
- softMax?: string;
1376
- /** Start of the current metering window; NULL means no time window */
1377
- windowStart?: string;
1378
- /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */
1379
- windowDuration?: IntervalInput;
1276
+ /** Resolved billable organization via get_organization_id */
1277
+ organizationId?: string;
1278
+ /** Temporary credits for the current billing window. Resets to 0 on window expiry. */
1279
+ periodCredits?: string;
1380
1280
  /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */
1381
1281
  planMax?: string;
1382
1282
  /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */
1383
1283
  purchasedCredits?: string;
1384
- /** Temporary credits for the current billing window. Resets to 0 on window expiry. */
1385
- periodCredits?: string;
1284
+ /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */
1285
+ softMax?: string;
1286
+ /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */
1287
+ windowDuration?: IntervalInput;
1288
+ /** Start of the current metering window; NULL means no time window */
1289
+ windowStart?: string;
1290
+ }
1291
+ /** A filter to be used against `OrgLimitWarning` object types. All fields are combined with a logical ‘and.’ */
1292
+ export interface OrgLimitWarningFilter {
1293
+ /** Checks for all expressions in this list. */
1294
+ and?: OrgLimitWarningFilter[];
1295
+ /** Filter by the object’s `entityId` field. */
1296
+ entityId?: UUIDFilter;
1297
+ /** Filter by the object’s `id` field. */
1298
+ id?: UUIDFilter;
1299
+ /** Filter by the object’s `name` field. */
1300
+ name?: StringFilter;
1301
+ /** Negates the expression. */
1302
+ not?: OrgLimitWarningFilter;
1303
+ /** Checks for any expressions in this list. */
1304
+ or?: OrgLimitWarningFilter[];
1305
+ /** Filter by the object’s `taskIdentifier` field. */
1306
+ taskIdentifier?: StringFilter;
1307
+ /** Filter by the object’s `thresholdValue` field. */
1308
+ thresholdValue?: BigIntFilter;
1309
+ /** Filter by the object’s `warningType` field. */
1310
+ warningType?: StringFilter;
1311
+ }
1312
+ /** An input for mutations affecting `OrgLimitWarning` */
1313
+ export interface OrgLimitWarningInput {
1314
+ /** Per-entity override (NULL = scope default for all entities) */
1386
1315
  entityId?: string;
1387
- /** Resolved billable organization via get_organization_id */
1388
- organizationId?: string;
1389
- /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */
1390
- entityType?: string;
1316
+ id?: string;
1317
+ /** Limit name this warning applies to (must match a default_limits entry) */
1318
+ name: string;
1319
+ /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */
1320
+ taskIdentifier: string;
1321
+ /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */
1322
+ thresholdValue: string;
1323
+ /** Threshold type: absolute (fixed count) or percentage (of max) */
1324
+ warningType: string;
1325
+ }
1326
+ /** Represents an update to a `OrgLimitWarning`. Fields that are set will be updated. */
1327
+ export interface OrgLimitWarningPatch {
1328
+ /** Per-entity override (NULL = scope default for all entities) */
1329
+ entityId?: string;
1330
+ id?: string;
1331
+ /** Limit name this warning applies to (must match a default_limits entry) */
1332
+ name?: string;
1333
+ /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */
1334
+ taskIdentifier?: string;
1335
+ /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */
1336
+ thresholdValue?: string;
1337
+ /** Threshold type: absolute (fixed count) or percentage (of max) */
1338
+ warningType?: string;
1339
+ }
1340
+ export interface ProvisionBucketInput {
1341
+ /** The logical bucket key (e.g., "public", "private") */
1342
+ bucketKey: string;
1343
+ /**
1344
+ * Owner entity ID for entity-scoped bucket provisioning.
1345
+ * Omit for app-level (database-wide) storage.
1346
+ */
1347
+ ownerId?: string;
1391
1348
  }
1392
- export interface DeleteAppLimitCapsDefaultInput {
1349
+ export interface SeedAppLimitCapsDefaultsInput {
1350
+ clientMutationId?: string;
1351
+ defaults?: unknown;
1352
+ }
1353
+ export interface SeedAppLimitDefaultsInput {
1354
+ clientMutationId?: string;
1355
+ defaults?: unknown;
1356
+ }
1357
+ export interface SeedOrgLimitCapsDefaultsInput {
1358
+ clientMutationId?: string;
1359
+ defaults?: unknown;
1360
+ }
1361
+ export interface SeedOrgLimitDefaultsInput {
1362
+ clientMutationId?: string;
1363
+ defaults?: unknown;
1364
+ }
1365
+ export interface UpdateAppLimitCapInput {
1366
+ /** An object where the defined keys will be set on the `AppLimitCap` being updated. */
1367
+ appLimitCapPatch: AppLimitCapPatch;
1393
1368
  clientMutationId?: string;
1394
1369
  id: string;
1395
1370
  }
1396
- export interface DeleteOrgLimitCapsDefaultInput {
1371
+ export interface UpdateAppLimitCapsDefaultInput {
1372
+ /** An object where the defined keys will be set on the `AppLimitCapsDefault` being updated. */
1373
+ appLimitCapsDefaultPatch: AppLimitCapsDefaultPatch;
1397
1374
  clientMutationId?: string;
1398
1375
  id: string;
1399
1376
  }
1400
- export interface DeleteAppLimitCapInput {
1377
+ export interface UpdateAppLimitCreditCodeInput {
1378
+ /** An object where the defined keys will be set on the `AppLimitCreditCode` being updated. */
1379
+ appLimitCreditCodePatch: AppLimitCreditCodePatch;
1401
1380
  clientMutationId?: string;
1402
1381
  id: string;
1403
1382
  }
1404
- export interface DeleteOrgLimitCapInput {
1383
+ export interface UpdateAppLimitCreditCodeItemInput {
1384
+ /** An object where the defined keys will be set on the `AppLimitCreditCodeItem` being updated. */
1385
+ appLimitCreditCodeItemPatch: AppLimitCreditCodeItemPatch;
1405
1386
  clientMutationId?: string;
1406
1387
  id: string;
1407
1388
  }
1408
- export interface DeleteAppLimitDefaultInput {
1389
+ export interface UpdateAppLimitCreditInput {
1390
+ /** An object where the defined keys will be set on the `AppLimitCredit` being updated. */
1391
+ appLimitCreditPatch: AppLimitCreditPatch;
1409
1392
  clientMutationId?: string;
1410
1393
  id: string;
1411
1394
  }
1412
- export interface DeleteOrgLimitDefaultInput {
1395
+ export interface UpdateAppLimitCreditRedemptionInput {
1396
+ /** An object where the defined keys will be set on the `AppLimitCreditRedemption` being updated. */
1397
+ appLimitCreditRedemptionPatch: AppLimitCreditRedemptionPatch;
1413
1398
  clientMutationId?: string;
1414
1399
  id: string;
1415
1400
  }
1416
- export interface DeleteAppLimitCreditRedemptionInput {
1401
+ export interface UpdateAppLimitDefaultInput {
1402
+ /** An object where the defined keys will be set on the `AppLimitDefault` being updated. */
1403
+ appLimitDefaultPatch: AppLimitDefaultPatch;
1417
1404
  clientMutationId?: string;
1418
1405
  id: string;
1419
1406
  }
1420
- export interface DeleteAppLimitCreditCodeItemInput {
1407
+ export interface UpdateAppLimitEventInput {
1408
+ /** An object where the defined keys will be set on the `AppLimitEvent` being updated. */
1409
+ appLimitEventPatch: AppLimitEventPatch;
1421
1410
  clientMutationId?: string;
1411
+ createdAt: string;
1412
+ /** Unique identifier for each limit event */
1422
1413
  id: string;
1423
1414
  }
1424
- export interface DeleteAppLimitWarningInput {
1415
+ export interface UpdateAppLimitInput {
1416
+ /** An object where the defined keys will be set on the `AppLimit` being updated. */
1417
+ appLimitPatch: AppLimitPatch;
1425
1418
  clientMutationId?: string;
1426
1419
  id: string;
1427
1420
  }
1428
- export interface DeleteAppLimitCreditInput {
1421
+ export interface UpdateAppLimitWarningInput {
1422
+ /** An object where the defined keys will be set on the `AppLimitWarning` being updated. */
1423
+ appLimitWarningPatch: AppLimitWarningPatch;
1429
1424
  clientMutationId?: string;
1430
1425
  id: string;
1431
1426
  }
1432
- export interface DeleteOrgLimitWarningInput {
1427
+ export interface UpdateOrgLimitAggregateInput {
1433
1428
  clientMutationId?: string;
1434
1429
  id: string;
1430
+ /** An object where the defined keys will be set on the `OrgLimitAggregate` being updated. */
1431
+ orgLimitAggregatePatch: OrgLimitAggregatePatch;
1435
1432
  }
1436
- export interface DeleteOrgLimitCreditInput {
1433
+ export interface UpdateOrgLimitCapInput {
1437
1434
  clientMutationId?: string;
1438
1435
  id: string;
1436
+ /** An object where the defined keys will be set on the `OrgLimitCap` being updated. */
1437
+ orgLimitCapPatch: OrgLimitCapPatch;
1439
1438
  }
1440
- export interface DeleteAppLimitCreditCodeInput {
1439
+ export interface UpdateOrgLimitCapsDefaultInput {
1441
1440
  clientMutationId?: string;
1442
1441
  id: string;
1442
+ /** An object where the defined keys will be set on the `OrgLimitCapsDefault` being updated. */
1443
+ orgLimitCapsDefaultPatch: OrgLimitCapsDefaultPatch;
1443
1444
  }
1444
- export interface DeleteAppLimitEventInput {
1445
+ export interface UpdateOrgLimitCreditInput {
1445
1446
  clientMutationId?: string;
1446
- createdAt: string;
1447
- /** Unique identifier for each limit event */
1448
1447
  id: string;
1448
+ /** An object where the defined keys will be set on the `OrgLimitCredit` being updated. */
1449
+ orgLimitCreditPatch: OrgLimitCreditPatch;
1449
1450
  }
1450
- export interface DeleteOrgLimitEventInput {
1451
+ export interface UpdateOrgLimitDefaultInput {
1451
1452
  clientMutationId?: string;
1452
- createdAt: string;
1453
- /** Unique identifier for each limit event */
1454
1453
  id: string;
1454
+ /** An object where the defined keys will be set on the `OrgLimitDefault` being updated. */
1455
+ orgLimitDefaultPatch: OrgLimitDefaultPatch;
1455
1456
  }
1456
- export interface DeleteAppLimitInput {
1457
+ export interface UpdateOrgLimitEventInput {
1457
1458
  clientMutationId?: string;
1459
+ createdAt: string;
1460
+ /** Unique identifier for each limit event */
1458
1461
  id: string;
1462
+ /** An object where the defined keys will be set on the `OrgLimitEvent` being updated. */
1463
+ orgLimitEventPatch: OrgLimitEventPatch;
1459
1464
  }
1460
- export interface DeleteOrgLimitAggregateInput {
1465
+ export interface UpdateOrgLimitInput {
1461
1466
  clientMutationId?: string;
1462
1467
  id: string;
1468
+ /** An object where the defined keys will be set on the `OrgLimit` being updated. */
1469
+ orgLimitPatch: OrgLimitPatch;
1463
1470
  }
1464
- export interface DeleteOrgLimitInput {
1471
+ export interface UpdateOrgLimitWarningInput {
1465
1472
  clientMutationId?: string;
1466
1473
  id: string;
1474
+ /** An object where the defined keys will be set on the `OrgLimitWarning` being updated. */
1475
+ orgLimitWarningPatch: OrgLimitWarningPatch;
1467
1476
  }
1468
- export interface ProvisionBucketInput {
1469
- /** The logical bucket key (e.g., "public", "private") */
1470
- bucketKey: string;
1471
- /**
1472
- * Owner entity ID for entity-scoped bucket provisioning.
1473
- * Omit for app-level (database-wide) storage.
1474
- */
1475
- ownerId?: string;
1477
+ /** Root meta schema type */
1478
+ export interface MetaSchema {
1479
+ tables: MetaTable[];
1480
+ }
1481
+ /** A connection to a list of `AppLimitCap` values. */
1482
+ export interface AppLimitCapConnection {
1483
+ edges: AppLimitCapEdge[];
1484
+ nodes: AppLimitCap[];
1485
+ pageInfo: PageInfo;
1486
+ totalCount: number;
1476
1487
  }
1477
1488
  /** A connection to a list of `AppLimitCapsDefault` values. */
1478
1489
  export interface AppLimitCapsDefaultConnection {
1479
- nodes: AppLimitCapsDefault[];
1480
1490
  edges: AppLimitCapsDefaultEdge[];
1491
+ nodes: AppLimitCapsDefault[];
1481
1492
  pageInfo: PageInfo;
1482
1493
  totalCount: number;
1483
1494
  }
1484
- /** A connection to a list of `OrgLimitCapsDefault` values. */
1485
- export interface OrgLimitCapsDefaultConnection {
1486
- nodes: OrgLimitCapsDefault[];
1487
- edges: OrgLimitCapsDefaultEdge[];
1495
+ /** A connection to a list of `AppLimitCreditCodeItem` values. */
1496
+ export interface AppLimitCreditCodeItemConnection {
1497
+ edges: AppLimitCreditCodeItemEdge[];
1498
+ nodes: AppLimitCreditCodeItem[];
1488
1499
  pageInfo: PageInfo;
1489
1500
  totalCount: number;
1490
1501
  }
1491
- /** A connection to a list of `AppLimitCap` values. */
1492
- export interface AppLimitCapConnection {
1493
- nodes: AppLimitCap[];
1494
- edges: AppLimitCapEdge[];
1502
+ /** A connection to a list of `AppLimitCreditCode` values. */
1503
+ export interface AppLimitCreditCodeConnection {
1504
+ edges: AppLimitCreditCodeEdge[];
1505
+ nodes: AppLimitCreditCode[];
1495
1506
  pageInfo: PageInfo;
1496
1507
  totalCount: number;
1497
1508
  }
1498
- /** A connection to a list of `OrgLimitCap` values. */
1499
- export interface OrgLimitCapConnection {
1500
- nodes: OrgLimitCap[];
1501
- edges: OrgLimitCapEdge[];
1509
+ /** A connection to a list of `AppLimitCreditRedemption` values. */
1510
+ export interface AppLimitCreditRedemptionConnection {
1511
+ edges: AppLimitCreditRedemptionEdge[];
1512
+ nodes: AppLimitCreditRedemption[];
1513
+ pageInfo: PageInfo;
1514
+ totalCount: number;
1515
+ }
1516
+ /** A connection to a list of `AppLimitCredit` values. */
1517
+ export interface AppLimitCreditConnection {
1518
+ edges: AppLimitCreditEdge[];
1519
+ nodes: AppLimitCredit[];
1502
1520
  pageInfo: PageInfo;
1503
1521
  totalCount: number;
1504
1522
  }
1505
1523
  /** A connection to a list of `AppLimitDefault` values. */
1506
1524
  export interface AppLimitDefaultConnection {
1507
- nodes: AppLimitDefault[];
1508
1525
  edges: AppLimitDefaultEdge[];
1526
+ nodes: AppLimitDefault[];
1509
1527
  pageInfo: PageInfo;
1510
1528
  totalCount: number;
1511
1529
  }
1512
- /** A connection to a list of `OrgLimitDefault` values. */
1513
- export interface OrgLimitDefaultConnection {
1514
- nodes: OrgLimitDefault[];
1515
- edges: OrgLimitDefaultEdge[];
1530
+ /** A connection to a list of `AppLimitEvent` values. */
1531
+ export interface AppLimitEventConnection {
1532
+ edges: AppLimitEventEdge[];
1533
+ nodes: AppLimitEvent[];
1516
1534
  pageInfo: PageInfo;
1517
1535
  totalCount: number;
1518
1536
  }
1519
- /** A connection to a list of `AppLimitCreditRedemption` values. */
1520
- export interface AppLimitCreditRedemptionConnection {
1521
- nodes: AppLimitCreditRedemption[];
1522
- edges: AppLimitCreditRedemptionEdge[];
1537
+ /** A connection to a list of `AppLimitWarning` values. */
1538
+ export interface AppLimitWarningConnection {
1539
+ edges: AppLimitWarningEdge[];
1540
+ nodes: AppLimitWarning[];
1523
1541
  pageInfo: PageInfo;
1524
1542
  totalCount: number;
1525
1543
  }
1526
- /** A connection to a list of `AppLimitCreditCodeItem` values. */
1527
- export interface AppLimitCreditCodeItemConnection {
1528
- nodes: AppLimitCreditCodeItem[];
1529
- edges: AppLimitCreditCodeItemEdge[];
1544
+ /** A connection to a list of `AppLimit` values. */
1545
+ export interface AppLimitConnection {
1546
+ edges: AppLimitEdge[];
1547
+ nodes: AppLimit[];
1530
1548
  pageInfo: PageInfo;
1531
1549
  totalCount: number;
1532
1550
  }
1533
- /** A connection to a list of `AppLimitWarning` values. */
1534
- export interface AppLimitWarningConnection {
1535
- nodes: AppLimitWarning[];
1536
- edges: AppLimitWarningEdge[];
1551
+ /** A connection to a list of `OrgLimitAggregate` values. */
1552
+ export interface OrgLimitAggregateConnection {
1553
+ edges: OrgLimitAggregateEdge[];
1554
+ nodes: OrgLimitAggregate[];
1537
1555
  pageInfo: PageInfo;
1538
1556
  totalCount: number;
1539
1557
  }
1540
- /** A connection to a list of `AppLimitCredit` values. */
1541
- export interface AppLimitCreditConnection {
1542
- nodes: AppLimitCredit[];
1543
- edges: AppLimitCreditEdge[];
1558
+ /** A connection to a list of `OrgLimitCap` values. */
1559
+ export interface OrgLimitCapConnection {
1560
+ edges: OrgLimitCapEdge[];
1561
+ nodes: OrgLimitCap[];
1544
1562
  pageInfo: PageInfo;
1545
1563
  totalCount: number;
1546
1564
  }
1547
- /** A connection to a list of `OrgLimitWarning` values. */
1548
- export interface OrgLimitWarningConnection {
1549
- nodes: OrgLimitWarning[];
1550
- edges: OrgLimitWarningEdge[];
1565
+ /** A connection to a list of `OrgLimitCapsDefault` values. */
1566
+ export interface OrgLimitCapsDefaultConnection {
1567
+ edges: OrgLimitCapsDefaultEdge[];
1568
+ nodes: OrgLimitCapsDefault[];
1551
1569
  pageInfo: PageInfo;
1552
1570
  totalCount: number;
1553
1571
  }
1554
1572
  /** A connection to a list of `OrgLimitCredit` values. */
1555
1573
  export interface OrgLimitCreditConnection {
1556
- nodes: OrgLimitCredit[];
1557
1574
  edges: OrgLimitCreditEdge[];
1575
+ nodes: OrgLimitCredit[];
1558
1576
  pageInfo: PageInfo;
1559
1577
  totalCount: number;
1560
1578
  }
1561
- /** A connection to a list of `AppLimitCreditCode` values. */
1562
- export interface AppLimitCreditCodeConnection {
1563
- nodes: AppLimitCreditCode[];
1564
- edges: AppLimitCreditCodeEdge[];
1565
- pageInfo: PageInfo;
1566
- totalCount: number;
1567
- }
1568
- /** A connection to a list of `AppLimitEvent` values. */
1569
- export interface AppLimitEventConnection {
1570
- nodes: AppLimitEvent[];
1571
- edges: AppLimitEventEdge[];
1579
+ /** A connection to a list of `OrgLimitDefault` values. */
1580
+ export interface OrgLimitDefaultConnection {
1581
+ edges: OrgLimitDefaultEdge[];
1582
+ nodes: OrgLimitDefault[];
1572
1583
  pageInfo: PageInfo;
1573
1584
  totalCount: number;
1574
1585
  }
1575
1586
  /** A connection to a list of `OrgLimitEvent` values. */
1576
1587
  export interface OrgLimitEventConnection {
1577
- nodes: OrgLimitEvent[];
1578
1588
  edges: OrgLimitEventEdge[];
1589
+ nodes: OrgLimitEvent[];
1579
1590
  pageInfo: PageInfo;
1580
1591
  totalCount: number;
1581
1592
  }
1582
- /** A connection to a list of `AppLimit` values. */
1583
- export interface AppLimitConnection {
1584
- nodes: AppLimit[];
1585
- edges: AppLimitEdge[];
1586
- pageInfo: PageInfo;
1587
- totalCount: number;
1588
- }
1589
- /** A connection to a list of `OrgLimitAggregate` values. */
1590
- export interface OrgLimitAggregateConnection {
1591
- nodes: OrgLimitAggregate[];
1592
- edges: OrgLimitAggregateEdge[];
1593
+ /** A connection to a list of `OrgLimitWarning` values. */
1594
+ export interface OrgLimitWarningConnection {
1595
+ edges: OrgLimitWarningEdge[];
1596
+ nodes: OrgLimitWarning[];
1593
1597
  pageInfo: PageInfo;
1594
1598
  totalCount: number;
1595
1599
  }
1596
1600
  /** A connection to a list of `OrgLimit` values. */
1597
1601
  export interface OrgLimitConnection {
1598
- nodes: OrgLimit[];
1599
1602
  edges: OrgLimitEdge[];
1603
+ nodes: OrgLimit[];
1600
1604
  pageInfo: PageInfo;
1601
1605
  totalCount: number;
1602
1606
  }
1603
- /** Root meta schema type */
1604
- export interface MetaSchema {
1605
- tables: MetaTable[];
1606
- }
1607
- export interface SeedAppLimitCapsDefaultsPayload {
1608
- clientMutationId?: string | null;
1609
- result?: boolean | null;
1610
- }
1611
- export interface SeedAppLimitDefaultsPayload {
1612
- clientMutationId?: string | null;
1613
- result?: boolean | null;
1614
- }
1615
- export interface SeedOrgLimitCapsDefaultsPayload {
1607
+ export interface CreateAppLimitPayload {
1608
+ /** The `AppLimit` that was created by this mutation. */
1609
+ appLimit?: AppLimit | null;
1610
+ appLimitEdge?: AppLimitEdge | null;
1616
1611
  clientMutationId?: string | null;
1617
- result?: boolean | null;
1618
1612
  }
1619
- export interface SeedOrgLimitDefaultsPayload {
1613
+ export interface CreateAppLimitCapPayload {
1614
+ /** The `AppLimitCap` that was created by this mutation. */
1615
+ appLimitCap?: AppLimitCap | null;
1616
+ appLimitCapEdge?: AppLimitCapEdge | null;
1620
1617
  clientMutationId?: string | null;
1621
- result?: boolean | null;
1622
1618
  }
1623
1619
  export interface CreateAppLimitCapsDefaultPayload {
1624
- clientMutationId?: string | null;
1625
1620
  /** The `AppLimitCapsDefault` that was created by this mutation. */
1626
1621
  appLimitCapsDefault?: AppLimitCapsDefault | null;
1627
1622
  appLimitCapsDefaultEdge?: AppLimitCapsDefaultEdge | null;
1628
- }
1629
- export interface CreateOrgLimitCapsDefaultPayload {
1630
- clientMutationId?: string | null;
1631
- /** The `OrgLimitCapsDefault` that was created by this mutation. */
1632
- orgLimitCapsDefault?: OrgLimitCapsDefault | null;
1633
- orgLimitCapsDefaultEdge?: OrgLimitCapsDefaultEdge | null;
1634
- }
1635
- export interface CreateAppLimitCapPayload {
1636
1623
  clientMutationId?: string | null;
1637
- /** The `AppLimitCap` that was created by this mutation. */
1638
- appLimitCap?: AppLimitCap | null;
1639
- appLimitCapEdge?: AppLimitCapEdge | null;
1640
1624
  }
1641
- export interface CreateOrgLimitCapPayload {
1625
+ export interface CreateAppLimitCreditPayload {
1626
+ /** The `AppLimitCredit` that was created by this mutation. */
1627
+ appLimitCredit?: AppLimitCredit | null;
1628
+ appLimitCreditEdge?: AppLimitCreditEdge | null;
1642
1629
  clientMutationId?: string | null;
1643
- /** The `OrgLimitCap` that was created by this mutation. */
1644
- orgLimitCap?: OrgLimitCap | null;
1645
- orgLimitCapEdge?: OrgLimitCapEdge | null;
1646
1630
  }
1647
- export interface CreateAppLimitDefaultPayload {
1631
+ export interface CreateAppLimitCreditCodePayload {
1632
+ /** The `AppLimitCreditCode` that was created by this mutation. */
1633
+ appLimitCreditCode?: AppLimitCreditCode | null;
1634
+ appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null;
1648
1635
  clientMutationId?: string | null;
1649
- /** The `AppLimitDefault` that was created by this mutation. */
1650
- appLimitDefault?: AppLimitDefault | null;
1651
- appLimitDefaultEdge?: AppLimitDefaultEdge | null;
1652
1636
  }
1653
- export interface CreateOrgLimitDefaultPayload {
1637
+ export interface CreateAppLimitCreditCodeItemPayload {
1638
+ /** The `AppLimitCreditCodeItem` that was created by this mutation. */
1639
+ appLimitCreditCodeItem?: AppLimitCreditCodeItem | null;
1640
+ appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null;
1654
1641
  clientMutationId?: string | null;
1655
- /** The `OrgLimitDefault` that was created by this mutation. */
1656
- orgLimitDefault?: OrgLimitDefault | null;
1657
- orgLimitDefaultEdge?: OrgLimitDefaultEdge | null;
1658
1642
  }
1659
1643
  export interface CreateAppLimitCreditRedemptionPayload {
1660
- clientMutationId?: string | null;
1661
1644
  /** The `AppLimitCreditRedemption` that was created by this mutation. */
1662
1645
  appLimitCreditRedemption?: AppLimitCreditRedemption | null;
1663
1646
  appLimitCreditRedemptionEdge?: AppLimitCreditRedemptionEdge | null;
1647
+ clientMutationId?: string | null;
1664
1648
  }
1665
- export interface CreateAppLimitCreditCodeItemPayload {
1649
+ export interface CreateAppLimitDefaultPayload {
1650
+ /** The `AppLimitDefault` that was created by this mutation. */
1651
+ appLimitDefault?: AppLimitDefault | null;
1652
+ appLimitDefaultEdge?: AppLimitDefaultEdge | null;
1666
1653
  clientMutationId?: string | null;
1667
- /** The `AppLimitCreditCodeItem` that was created by this mutation. */
1668
- appLimitCreditCodeItem?: AppLimitCreditCodeItem | null;
1669
- appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null;
1670
1654
  }
1671
- export interface CreateAppLimitWarningPayload {
1655
+ export interface CreateAppLimitEventPayload {
1656
+ /** The `AppLimitEvent` that was created by this mutation. */
1657
+ appLimitEvent?: AppLimitEvent | null;
1658
+ appLimitEventEdge?: AppLimitEventEdge | null;
1672
1659
  clientMutationId?: string | null;
1660
+ }
1661
+ export interface CreateAppLimitWarningPayload {
1673
1662
  /** The `AppLimitWarning` that was created by this mutation. */
1674
1663
  appLimitWarning?: AppLimitWarning | null;
1675
1664
  appLimitWarningEdge?: AppLimitWarningEdge | null;
1665
+ clientMutationId?: string | null;
1676
1666
  }
1677
- export interface CreateAppLimitCreditPayload {
1667
+ export interface CreateOrgLimitPayload {
1678
1668
  clientMutationId?: string | null;
1679
- /** The `AppLimitCredit` that was created by this mutation. */
1680
- appLimitCredit?: AppLimitCredit | null;
1681
- appLimitCreditEdge?: AppLimitCreditEdge | null;
1669
+ /** The `OrgLimit` that was created by this mutation. */
1670
+ orgLimit?: OrgLimit | null;
1671
+ orgLimitEdge?: OrgLimitEdge | null;
1682
1672
  }
1683
- export interface CreateOrgLimitWarningPayload {
1673
+ export interface CreateOrgLimitAggregatePayload {
1684
1674
  clientMutationId?: string | null;
1685
- /** The `OrgLimitWarning` that was created by this mutation. */
1686
- orgLimitWarning?: OrgLimitWarning | null;
1687
- orgLimitWarningEdge?: OrgLimitWarningEdge | null;
1675
+ /** The `OrgLimitAggregate` that was created by this mutation. */
1676
+ orgLimitAggregate?: OrgLimitAggregate | null;
1677
+ orgLimitAggregateEdge?: OrgLimitAggregateEdge | null;
1678
+ }
1679
+ export interface CreateOrgLimitCapPayload {
1680
+ clientMutationId?: string | null;
1681
+ /** The `OrgLimitCap` that was created by this mutation. */
1682
+ orgLimitCap?: OrgLimitCap | null;
1683
+ orgLimitCapEdge?: OrgLimitCapEdge | null;
1684
+ }
1685
+ export interface CreateOrgLimitCapsDefaultPayload {
1686
+ clientMutationId?: string | null;
1687
+ /** The `OrgLimitCapsDefault` that was created by this mutation. */
1688
+ orgLimitCapsDefault?: OrgLimitCapsDefault | null;
1689
+ orgLimitCapsDefaultEdge?: OrgLimitCapsDefaultEdge | null;
1688
1690
  }
1689
1691
  export interface CreateOrgLimitCreditPayload {
1690
1692
  clientMutationId?: string | null;
@@ -1692,17 +1694,11 @@ export interface CreateOrgLimitCreditPayload {
1692
1694
  orgLimitCredit?: OrgLimitCredit | null;
1693
1695
  orgLimitCreditEdge?: OrgLimitCreditEdge | null;
1694
1696
  }
1695
- export interface CreateAppLimitCreditCodePayload {
1696
- clientMutationId?: string | null;
1697
- /** The `AppLimitCreditCode` that was created by this mutation. */
1698
- appLimitCreditCode?: AppLimitCreditCode | null;
1699
- appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null;
1700
- }
1701
- export interface CreateAppLimitEventPayload {
1697
+ export interface CreateOrgLimitDefaultPayload {
1702
1698
  clientMutationId?: string | null;
1703
- /** The `AppLimitEvent` that was created by this mutation. */
1704
- appLimitEvent?: AppLimitEvent | null;
1705
- appLimitEventEdge?: AppLimitEventEdge | null;
1699
+ /** The `OrgLimitDefault` that was created by this mutation. */
1700
+ orgLimitDefault?: OrgLimitDefault | null;
1701
+ orgLimitDefaultEdge?: OrgLimitDefaultEdge | null;
1706
1702
  }
1707
1703
  export interface CreateOrgLimitEventPayload {
1708
1704
  clientMutationId?: string | null;
@@ -1710,300 +1706,314 @@ export interface CreateOrgLimitEventPayload {
1710
1706
  orgLimitEvent?: OrgLimitEvent | null;
1711
1707
  orgLimitEventEdge?: OrgLimitEventEdge | null;
1712
1708
  }
1713
- export interface CreateAppLimitPayload {
1709
+ export interface CreateOrgLimitWarningPayload {
1714
1710
  clientMutationId?: string | null;
1715
- /** The `AppLimit` that was created by this mutation. */
1711
+ /** The `OrgLimitWarning` that was created by this mutation. */
1712
+ orgLimitWarning?: OrgLimitWarning | null;
1713
+ orgLimitWarningEdge?: OrgLimitWarningEdge | null;
1714
+ }
1715
+ export interface DeleteAppLimitPayload {
1716
+ /** The `AppLimit` that was deleted by this mutation. */
1716
1717
  appLimit?: AppLimit | null;
1717
1718
  appLimitEdge?: AppLimitEdge | null;
1718
- }
1719
- export interface CreateOrgLimitAggregatePayload {
1720
1719
  clientMutationId?: string | null;
1721
- /** The `OrgLimitAggregate` that was created by this mutation. */
1722
- orgLimitAggregate?: OrgLimitAggregate | null;
1723
- orgLimitAggregateEdge?: OrgLimitAggregateEdge | null;
1724
1720
  }
1725
- export interface CreateOrgLimitPayload {
1721
+ export interface DeleteAppLimitCapPayload {
1722
+ /** The `AppLimitCap` that was deleted by this mutation. */
1723
+ appLimitCap?: AppLimitCap | null;
1724
+ appLimitCapEdge?: AppLimitCapEdge | null;
1726
1725
  clientMutationId?: string | null;
1727
- /** The `OrgLimit` that was created by this mutation. */
1728
- orgLimit?: OrgLimit | null;
1729
- orgLimitEdge?: OrgLimitEdge | null;
1730
1726
  }
1731
- export interface UpdateAppLimitCapsDefaultPayload {
1732
- clientMutationId?: string | null;
1733
- /** The `AppLimitCapsDefault` that was updated by this mutation. */
1727
+ export interface DeleteAppLimitCapsDefaultPayload {
1728
+ /** The `AppLimitCapsDefault` that was deleted by this mutation. */
1734
1729
  appLimitCapsDefault?: AppLimitCapsDefault | null;
1735
1730
  appLimitCapsDefaultEdge?: AppLimitCapsDefaultEdge | null;
1731
+ clientMutationId?: string | null;
1736
1732
  }
1737
- export interface UpdateOrgLimitCapsDefaultPayload {
1733
+ export interface DeleteAppLimitCreditPayload {
1734
+ /** The `AppLimitCredit` that was deleted by this mutation. */
1735
+ appLimitCredit?: AppLimitCredit | null;
1736
+ appLimitCreditEdge?: AppLimitCreditEdge | null;
1738
1737
  clientMutationId?: string | null;
1739
- /** The `OrgLimitCapsDefault` that was updated by this mutation. */
1740
- orgLimitCapsDefault?: OrgLimitCapsDefault | null;
1741
- orgLimitCapsDefaultEdge?: OrgLimitCapsDefaultEdge | null;
1742
1738
  }
1743
- export interface UpdateAppLimitCapPayload {
1739
+ export interface DeleteAppLimitCreditCodePayload {
1740
+ /** The `AppLimitCreditCode` that was deleted by this mutation. */
1741
+ appLimitCreditCode?: AppLimitCreditCode | null;
1742
+ appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null;
1744
1743
  clientMutationId?: string | null;
1745
- /** The `AppLimitCap` that was updated by this mutation. */
1746
- appLimitCap?: AppLimitCap | null;
1747
- appLimitCapEdge?: AppLimitCapEdge | null;
1748
1744
  }
1749
- export interface UpdateOrgLimitCapPayload {
1745
+ export interface DeleteAppLimitCreditCodeItemPayload {
1746
+ /** The `AppLimitCreditCodeItem` that was deleted by this mutation. */
1747
+ appLimitCreditCodeItem?: AppLimitCreditCodeItem | null;
1748
+ appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null;
1750
1749
  clientMutationId?: string | null;
1751
- /** The `OrgLimitCap` that was updated by this mutation. */
1752
- orgLimitCap?: OrgLimitCap | null;
1753
- orgLimitCapEdge?: OrgLimitCapEdge | null;
1754
1750
  }
1755
- export interface UpdateAppLimitDefaultPayload {
1751
+ export interface DeleteAppLimitCreditRedemptionPayload {
1752
+ /** The `AppLimitCreditRedemption` that was deleted by this mutation. */
1753
+ appLimitCreditRedemption?: AppLimitCreditRedemption | null;
1754
+ appLimitCreditRedemptionEdge?: AppLimitCreditRedemptionEdge | null;
1756
1755
  clientMutationId?: string | null;
1757
- /** The `AppLimitDefault` that was updated by this mutation. */
1756
+ }
1757
+ export interface DeleteAppLimitDefaultPayload {
1758
+ /** The `AppLimitDefault` that was deleted by this mutation. */
1758
1759
  appLimitDefault?: AppLimitDefault | null;
1759
1760
  appLimitDefaultEdge?: AppLimitDefaultEdge | null;
1761
+ clientMutationId?: string | null;
1760
1762
  }
1761
- export interface UpdateOrgLimitDefaultPayload {
1763
+ export interface DeleteAppLimitEventPayload {
1764
+ /** The `AppLimitEvent` that was deleted by this mutation. */
1765
+ appLimitEvent?: AppLimitEvent | null;
1766
+ appLimitEventEdge?: AppLimitEventEdge | null;
1762
1767
  clientMutationId?: string | null;
1763
- /** The `OrgLimitDefault` that was updated by this mutation. */
1764
- orgLimitDefault?: OrgLimitDefault | null;
1765
- orgLimitDefaultEdge?: OrgLimitDefaultEdge | null;
1766
1768
  }
1767
- export interface UpdateAppLimitCreditRedemptionPayload {
1769
+ export interface DeleteAppLimitWarningPayload {
1770
+ /** The `AppLimitWarning` that was deleted by this mutation. */
1771
+ appLimitWarning?: AppLimitWarning | null;
1772
+ appLimitWarningEdge?: AppLimitWarningEdge | null;
1768
1773
  clientMutationId?: string | null;
1769
- /** The `AppLimitCreditRedemption` that was updated by this mutation. */
1770
- appLimitCreditRedemption?: AppLimitCreditRedemption | null;
1771
- appLimitCreditRedemptionEdge?: AppLimitCreditRedemptionEdge | null;
1772
1774
  }
1773
- export interface UpdateAppLimitCreditCodeItemPayload {
1775
+ export interface DeleteOrgLimitPayload {
1774
1776
  clientMutationId?: string | null;
1775
- /** The `AppLimitCreditCodeItem` that was updated by this mutation. */
1776
- appLimitCreditCodeItem?: AppLimitCreditCodeItem | null;
1777
- appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null;
1777
+ /** The `OrgLimit` that was deleted by this mutation. */
1778
+ orgLimit?: OrgLimit | null;
1779
+ orgLimitEdge?: OrgLimitEdge | null;
1778
1780
  }
1779
- export interface UpdateAppLimitWarningPayload {
1781
+ export interface DeleteOrgLimitAggregatePayload {
1780
1782
  clientMutationId?: string | null;
1781
- /** The `AppLimitWarning` that was updated by this mutation. */
1782
- appLimitWarning?: AppLimitWarning | null;
1783
- appLimitWarningEdge?: AppLimitWarningEdge | null;
1783
+ /** The `OrgLimitAggregate` that was deleted by this mutation. */
1784
+ orgLimitAggregate?: OrgLimitAggregate | null;
1785
+ orgLimitAggregateEdge?: OrgLimitAggregateEdge | null;
1784
1786
  }
1785
- export interface UpdateAppLimitCreditPayload {
1787
+ export interface DeleteOrgLimitCapPayload {
1786
1788
  clientMutationId?: string | null;
1787
- /** The `AppLimitCredit` that was updated by this mutation. */
1788
- appLimitCredit?: AppLimitCredit | null;
1789
- appLimitCreditEdge?: AppLimitCreditEdge | null;
1789
+ /** The `OrgLimitCap` that was deleted by this mutation. */
1790
+ orgLimitCap?: OrgLimitCap | null;
1791
+ orgLimitCapEdge?: OrgLimitCapEdge | null;
1790
1792
  }
1791
- export interface UpdateOrgLimitWarningPayload {
1793
+ export interface DeleteOrgLimitCapsDefaultPayload {
1792
1794
  clientMutationId?: string | null;
1793
- /** The `OrgLimitWarning` that was updated by this mutation. */
1794
- orgLimitWarning?: OrgLimitWarning | null;
1795
- orgLimitWarningEdge?: OrgLimitWarningEdge | null;
1795
+ /** The `OrgLimitCapsDefault` that was deleted by this mutation. */
1796
+ orgLimitCapsDefault?: OrgLimitCapsDefault | null;
1797
+ orgLimitCapsDefaultEdge?: OrgLimitCapsDefaultEdge | null;
1796
1798
  }
1797
- export interface UpdateOrgLimitCreditPayload {
1799
+ export interface DeleteOrgLimitCreditPayload {
1798
1800
  clientMutationId?: string | null;
1799
- /** The `OrgLimitCredit` that was updated by this mutation. */
1801
+ /** The `OrgLimitCredit` that was deleted by this mutation. */
1800
1802
  orgLimitCredit?: OrgLimitCredit | null;
1801
1803
  orgLimitCreditEdge?: OrgLimitCreditEdge | null;
1802
1804
  }
1803
- export interface UpdateAppLimitCreditCodePayload {
1805
+ export interface DeleteOrgLimitDefaultPayload {
1804
1806
  clientMutationId?: string | null;
1805
- /** The `AppLimitCreditCode` that was updated by this mutation. */
1806
- appLimitCreditCode?: AppLimitCreditCode | null;
1807
- appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null;
1807
+ /** The `OrgLimitDefault` that was deleted by this mutation. */
1808
+ orgLimitDefault?: OrgLimitDefault | null;
1809
+ orgLimitDefaultEdge?: OrgLimitDefaultEdge | null;
1808
1810
  }
1809
- export interface UpdateAppLimitEventPayload {
1811
+ export interface DeleteOrgLimitEventPayload {
1812
+ clientMutationId?: string | null;
1813
+ /** The `OrgLimitEvent` that was deleted by this mutation. */
1814
+ orgLimitEvent?: OrgLimitEvent | null;
1815
+ orgLimitEventEdge?: OrgLimitEventEdge | null;
1816
+ }
1817
+ export interface DeleteOrgLimitWarningPayload {
1818
+ clientMutationId?: string | null;
1819
+ /** The `OrgLimitWarning` that was deleted by this mutation. */
1820
+ orgLimitWarning?: OrgLimitWarning | null;
1821
+ orgLimitWarningEdge?: OrgLimitWarningEdge | null;
1822
+ }
1823
+ export interface ProvisionBucketPayload {
1824
+ /** The access type applied */
1825
+ accessType: string;
1826
+ /** The S3 bucket name that was provisioned */
1827
+ bucketName: string;
1828
+ /** The S3 endpoint (null for AWS S3 default) */
1829
+ endpoint?: string | null;
1830
+ /** Error message if provisioning failed */
1831
+ error?: string | null;
1832
+ /** The storage provider used */
1833
+ provider: string;
1834
+ /** Whether provisioning succeeded */
1835
+ success: boolean;
1836
+ }
1837
+ export interface SeedAppLimitCapsDefaultsPayload {
1838
+ clientMutationId?: string | null;
1839
+ result?: boolean | null;
1840
+ }
1841
+ export interface SeedAppLimitDefaultsPayload {
1842
+ clientMutationId?: string | null;
1843
+ result?: boolean | null;
1844
+ }
1845
+ export interface SeedOrgLimitCapsDefaultsPayload {
1810
1846
  clientMutationId?: string | null;
1811
- /** The `AppLimitEvent` that was updated by this mutation. */
1812
- appLimitEvent?: AppLimitEvent | null;
1813
- appLimitEventEdge?: AppLimitEventEdge | null;
1847
+ result?: boolean | null;
1814
1848
  }
1815
- export interface UpdateOrgLimitEventPayload {
1849
+ export interface SeedOrgLimitDefaultsPayload {
1816
1850
  clientMutationId?: string | null;
1817
- /** The `OrgLimitEvent` that was updated by this mutation. */
1818
- orgLimitEvent?: OrgLimitEvent | null;
1819
- orgLimitEventEdge?: OrgLimitEventEdge | null;
1851
+ result?: boolean | null;
1820
1852
  }
1821
1853
  export interface UpdateAppLimitPayload {
1822
- clientMutationId?: string | null;
1823
1854
  /** The `AppLimit` that was updated by this mutation. */
1824
1855
  appLimit?: AppLimit | null;
1825
1856
  appLimitEdge?: AppLimitEdge | null;
1826
- }
1827
- export interface UpdateOrgLimitAggregatePayload {
1828
1857
  clientMutationId?: string | null;
1829
- /** The `OrgLimitAggregate` that was updated by this mutation. */
1830
- orgLimitAggregate?: OrgLimitAggregate | null;
1831
- orgLimitAggregateEdge?: OrgLimitAggregateEdge | null;
1832
1858
  }
1833
- export interface UpdateOrgLimitPayload {
1859
+ export interface UpdateAppLimitCapPayload {
1860
+ /** The `AppLimitCap` that was updated by this mutation. */
1861
+ appLimitCap?: AppLimitCap | null;
1862
+ appLimitCapEdge?: AppLimitCapEdge | null;
1834
1863
  clientMutationId?: string | null;
1835
- /** The `OrgLimit` that was updated by this mutation. */
1836
- orgLimit?: OrgLimit | null;
1837
- orgLimitEdge?: OrgLimitEdge | null;
1838
1864
  }
1839
- export interface DeleteAppLimitCapsDefaultPayload {
1840
- clientMutationId?: string | null;
1841
- /** The `AppLimitCapsDefault` that was deleted by this mutation. */
1865
+ export interface UpdateAppLimitCapsDefaultPayload {
1866
+ /** The `AppLimitCapsDefault` that was updated by this mutation. */
1842
1867
  appLimitCapsDefault?: AppLimitCapsDefault | null;
1843
1868
  appLimitCapsDefaultEdge?: AppLimitCapsDefaultEdge | null;
1869
+ clientMutationId?: string | null;
1844
1870
  }
1845
- export interface DeleteOrgLimitCapsDefaultPayload {
1871
+ export interface UpdateAppLimitCreditPayload {
1872
+ /** The `AppLimitCredit` that was updated by this mutation. */
1873
+ appLimitCredit?: AppLimitCredit | null;
1874
+ appLimitCreditEdge?: AppLimitCreditEdge | null;
1846
1875
  clientMutationId?: string | null;
1847
- /** The `OrgLimitCapsDefault` that was deleted by this mutation. */
1848
- orgLimitCapsDefault?: OrgLimitCapsDefault | null;
1849
- orgLimitCapsDefaultEdge?: OrgLimitCapsDefaultEdge | null;
1850
1876
  }
1851
- export interface DeleteAppLimitCapPayload {
1877
+ export interface UpdateAppLimitCreditCodePayload {
1878
+ /** The `AppLimitCreditCode` that was updated by this mutation. */
1879
+ appLimitCreditCode?: AppLimitCreditCode | null;
1880
+ appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null;
1852
1881
  clientMutationId?: string | null;
1853
- /** The `AppLimitCap` that was deleted by this mutation. */
1854
- appLimitCap?: AppLimitCap | null;
1855
- appLimitCapEdge?: AppLimitCapEdge | null;
1856
1882
  }
1857
- export interface DeleteOrgLimitCapPayload {
1883
+ export interface UpdateAppLimitCreditCodeItemPayload {
1884
+ /** The `AppLimitCreditCodeItem` that was updated by this mutation. */
1885
+ appLimitCreditCodeItem?: AppLimitCreditCodeItem | null;
1886
+ appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null;
1858
1887
  clientMutationId?: string | null;
1859
- /** The `OrgLimitCap` that was deleted by this mutation. */
1860
- orgLimitCap?: OrgLimitCap | null;
1861
- orgLimitCapEdge?: OrgLimitCapEdge | null;
1862
1888
  }
1863
- export interface DeleteAppLimitDefaultPayload {
1889
+ export interface UpdateAppLimitCreditRedemptionPayload {
1890
+ /** The `AppLimitCreditRedemption` that was updated by this mutation. */
1891
+ appLimitCreditRedemption?: AppLimitCreditRedemption | null;
1892
+ appLimitCreditRedemptionEdge?: AppLimitCreditRedemptionEdge | null;
1864
1893
  clientMutationId?: string | null;
1865
- /** The `AppLimitDefault` that was deleted by this mutation. */
1894
+ }
1895
+ export interface UpdateAppLimitDefaultPayload {
1896
+ /** The `AppLimitDefault` that was updated by this mutation. */
1866
1897
  appLimitDefault?: AppLimitDefault | null;
1867
1898
  appLimitDefaultEdge?: AppLimitDefaultEdge | null;
1899
+ clientMutationId?: string | null;
1868
1900
  }
1869
- export interface DeleteOrgLimitDefaultPayload {
1901
+ export interface UpdateAppLimitEventPayload {
1902
+ /** The `AppLimitEvent` that was updated by this mutation. */
1903
+ appLimitEvent?: AppLimitEvent | null;
1904
+ appLimitEventEdge?: AppLimitEventEdge | null;
1870
1905
  clientMutationId?: string | null;
1871
- /** The `OrgLimitDefault` that was deleted by this mutation. */
1872
- orgLimitDefault?: OrgLimitDefault | null;
1873
- orgLimitDefaultEdge?: OrgLimitDefaultEdge | null;
1874
1906
  }
1875
- export interface DeleteAppLimitCreditRedemptionPayload {
1907
+ export interface UpdateAppLimitWarningPayload {
1908
+ /** The `AppLimitWarning` that was updated by this mutation. */
1909
+ appLimitWarning?: AppLimitWarning | null;
1910
+ appLimitWarningEdge?: AppLimitWarningEdge | null;
1876
1911
  clientMutationId?: string | null;
1877
- /** The `AppLimitCreditRedemption` that was deleted by this mutation. */
1878
- appLimitCreditRedemption?: AppLimitCreditRedemption | null;
1879
- appLimitCreditRedemptionEdge?: AppLimitCreditRedemptionEdge | null;
1880
1912
  }
1881
- export interface DeleteAppLimitCreditCodeItemPayload {
1913
+ export interface UpdateOrgLimitPayload {
1882
1914
  clientMutationId?: string | null;
1883
- /** The `AppLimitCreditCodeItem` that was deleted by this mutation. */
1884
- appLimitCreditCodeItem?: AppLimitCreditCodeItem | null;
1885
- appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null;
1915
+ /** The `OrgLimit` that was updated by this mutation. */
1916
+ orgLimit?: OrgLimit | null;
1917
+ orgLimitEdge?: OrgLimitEdge | null;
1886
1918
  }
1887
- export interface DeleteAppLimitWarningPayload {
1919
+ export interface UpdateOrgLimitAggregatePayload {
1888
1920
  clientMutationId?: string | null;
1889
- /** The `AppLimitWarning` that was deleted by this mutation. */
1890
- appLimitWarning?: AppLimitWarning | null;
1891
- appLimitWarningEdge?: AppLimitWarningEdge | null;
1921
+ /** The `OrgLimitAggregate` that was updated by this mutation. */
1922
+ orgLimitAggregate?: OrgLimitAggregate | null;
1923
+ orgLimitAggregateEdge?: OrgLimitAggregateEdge | null;
1892
1924
  }
1893
- export interface DeleteAppLimitCreditPayload {
1925
+ export interface UpdateOrgLimitCapPayload {
1894
1926
  clientMutationId?: string | null;
1895
- /** The `AppLimitCredit` that was deleted by this mutation. */
1896
- appLimitCredit?: AppLimitCredit | null;
1897
- appLimitCreditEdge?: AppLimitCreditEdge | null;
1927
+ /** The `OrgLimitCap` that was updated by this mutation. */
1928
+ orgLimitCap?: OrgLimitCap | null;
1929
+ orgLimitCapEdge?: OrgLimitCapEdge | null;
1898
1930
  }
1899
- export interface DeleteOrgLimitWarningPayload {
1931
+ export interface UpdateOrgLimitCapsDefaultPayload {
1900
1932
  clientMutationId?: string | null;
1901
- /** The `OrgLimitWarning` that was deleted by this mutation. */
1902
- orgLimitWarning?: OrgLimitWarning | null;
1903
- orgLimitWarningEdge?: OrgLimitWarningEdge | null;
1933
+ /** The `OrgLimitCapsDefault` that was updated by this mutation. */
1934
+ orgLimitCapsDefault?: OrgLimitCapsDefault | null;
1935
+ orgLimitCapsDefaultEdge?: OrgLimitCapsDefaultEdge | null;
1904
1936
  }
1905
- export interface DeleteOrgLimitCreditPayload {
1937
+ export interface UpdateOrgLimitCreditPayload {
1906
1938
  clientMutationId?: string | null;
1907
- /** The `OrgLimitCredit` that was deleted by this mutation. */
1939
+ /** The `OrgLimitCredit` that was updated by this mutation. */
1908
1940
  orgLimitCredit?: OrgLimitCredit | null;
1909
1941
  orgLimitCreditEdge?: OrgLimitCreditEdge | null;
1910
1942
  }
1911
- export interface DeleteAppLimitCreditCodePayload {
1912
- clientMutationId?: string | null;
1913
- /** The `AppLimitCreditCode` that was deleted by this mutation. */
1914
- appLimitCreditCode?: AppLimitCreditCode | null;
1915
- appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null;
1916
- }
1917
- export interface DeleteAppLimitEventPayload {
1943
+ export interface UpdateOrgLimitDefaultPayload {
1918
1944
  clientMutationId?: string | null;
1919
- /** The `AppLimitEvent` that was deleted by this mutation. */
1920
- appLimitEvent?: AppLimitEvent | null;
1921
- appLimitEventEdge?: AppLimitEventEdge | null;
1945
+ /** The `OrgLimitDefault` that was updated by this mutation. */
1946
+ orgLimitDefault?: OrgLimitDefault | null;
1947
+ orgLimitDefaultEdge?: OrgLimitDefaultEdge | null;
1922
1948
  }
1923
- export interface DeleteOrgLimitEventPayload {
1949
+ export interface UpdateOrgLimitEventPayload {
1924
1950
  clientMutationId?: string | null;
1925
- /** The `OrgLimitEvent` that was deleted by this mutation. */
1951
+ /** The `OrgLimitEvent` that was updated by this mutation. */
1926
1952
  orgLimitEvent?: OrgLimitEvent | null;
1927
1953
  orgLimitEventEdge?: OrgLimitEventEdge | null;
1928
1954
  }
1929
- export interface DeleteAppLimitPayload {
1930
- clientMutationId?: string | null;
1931
- /** The `AppLimit` that was deleted by this mutation. */
1932
- appLimit?: AppLimit | null;
1933
- appLimitEdge?: AppLimitEdge | null;
1934
- }
1935
- export interface DeleteOrgLimitAggregatePayload {
1936
- clientMutationId?: string | null;
1937
- /** The `OrgLimitAggregate` that was deleted by this mutation. */
1938
- orgLimitAggregate?: OrgLimitAggregate | null;
1939
- orgLimitAggregateEdge?: OrgLimitAggregateEdge | null;
1940
- }
1941
- export interface DeleteOrgLimitPayload {
1955
+ export interface UpdateOrgLimitWarningPayload {
1942
1956
  clientMutationId?: string | null;
1943
- /** The `OrgLimit` that was deleted by this mutation. */
1944
- orgLimit?: OrgLimit | null;
1945
- orgLimitEdge?: OrgLimitEdge | null;
1957
+ /** The `OrgLimitWarning` that was updated by this mutation. */
1958
+ orgLimitWarning?: OrgLimitWarning | null;
1959
+ orgLimitWarningEdge?: OrgLimitWarningEdge | null;
1946
1960
  }
1947
- export interface ProvisionBucketPayload {
1948
- /** Whether provisioning succeeded */
1949
- success: boolean;
1950
- /** The S3 bucket name that was provisioned */
1951
- bucketName: string;
1952
- /** The access type applied */
1953
- accessType: string;
1954
- /** The storage provider used */
1955
- provider: string;
1956
- /** The S3 endpoint (null for AWS S3 default) */
1957
- endpoint?: string | null;
1958
- /** Error message if provisioning failed */
1959
- error?: string | null;
1961
+ /** Information about a database table */
1962
+ export interface MetaTable {
1963
+ constraints: MetaConstraints;
1964
+ fields: MetaField[];
1965
+ foreignKeyConstraints: MetaForeignKeyConstraint[];
1966
+ /** i18n metadata (null if no @i18n tag) */
1967
+ i18n?: MetaI18n | null;
1968
+ indexes: MetaIndex[];
1969
+ inflection: MetaInflection;
1970
+ name: string;
1971
+ primaryKeyConstraints: MetaPrimaryKeyConstraint[];
1972
+ query: MetaQuery;
1973
+ /** Realtime metadata (null if no @realtime tag) */
1974
+ realtime?: MetaRealtime | null;
1975
+ relations: MetaRelations;
1976
+ schemaName: string;
1977
+ /** Search metadata (null if no search configured) */
1978
+ search?: MetaSearch | null;
1979
+ /** Storage metadata (null if not a storage table) */
1980
+ storage?: MetaStorage | null;
1981
+ uniqueConstraints: MetaUniqueConstraint[];
1960
1982
  }
1961
- /** A `AppLimitCapsDefault` edge in the connection. */
1962
- export interface AppLimitCapsDefaultEdge {
1983
+ /** A `AppLimitCap` edge in the connection. */
1984
+ export interface AppLimitCapEdge {
1963
1985
  cursor?: string | null;
1964
- /** The `AppLimitCapsDefault` at the end of the edge. */
1965
- node?: AppLimitCapsDefault | null;
1986
+ /** The `AppLimitCap` at the end of the edge. */
1987
+ node?: AppLimitCap | null;
1966
1988
  }
1967
1989
  /** Information about pagination in a connection. */
1968
1990
  export interface PageInfo {
1991
+ /** When paginating forwards, the cursor to continue. */
1992
+ endCursor?: string | null;
1969
1993
  /** When paginating forwards, are there more items? */
1970
1994
  hasNextPage: boolean;
1971
1995
  /** When paginating backwards, are there more items? */
1972
1996
  hasPreviousPage: boolean;
1973
1997
  /** When paginating backwards, the cursor to continue. */
1974
1998
  startCursor?: string | null;
1975
- /** When paginating forwards, the cursor to continue. */
1976
- endCursor?: string | null;
1977
- }
1978
- /** A `OrgLimitCapsDefault` edge in the connection. */
1979
- export interface OrgLimitCapsDefaultEdge {
1980
- cursor?: string | null;
1981
- /** The `OrgLimitCapsDefault` at the end of the edge. */
1982
- node?: OrgLimitCapsDefault | null;
1983
- }
1984
- /** A `AppLimitCap` edge in the connection. */
1985
- export interface AppLimitCapEdge {
1986
- cursor?: string | null;
1987
- /** The `AppLimitCap` at the end of the edge. */
1988
- node?: AppLimitCap | null;
1989
1999
  }
1990
- /** A `OrgLimitCap` edge in the connection. */
1991
- export interface OrgLimitCapEdge {
2000
+ /** A `AppLimitCapsDefault` edge in the connection. */
2001
+ export interface AppLimitCapsDefaultEdge {
1992
2002
  cursor?: string | null;
1993
- /** The `OrgLimitCap` at the end of the edge. */
1994
- node?: OrgLimitCap | null;
2003
+ /** The `AppLimitCapsDefault` at the end of the edge. */
2004
+ node?: AppLimitCapsDefault | null;
1995
2005
  }
1996
- /** A `AppLimitDefault` edge in the connection. */
1997
- export interface AppLimitDefaultEdge {
2006
+ /** A `AppLimitCreditCodeItem` edge in the connection. */
2007
+ export interface AppLimitCreditCodeItemEdge {
1998
2008
  cursor?: string | null;
1999
- /** The `AppLimitDefault` at the end of the edge. */
2000
- node?: AppLimitDefault | null;
2009
+ /** The `AppLimitCreditCodeItem` at the end of the edge. */
2010
+ node?: AppLimitCreditCodeItem | null;
2001
2011
  }
2002
- /** A `OrgLimitDefault` edge in the connection. */
2003
- export interface OrgLimitDefaultEdge {
2012
+ /** A `AppLimitCreditCode` edge in the connection. */
2013
+ export interface AppLimitCreditCodeEdge {
2004
2014
  cursor?: string | null;
2005
- /** The `OrgLimitDefault` at the end of the edge. */
2006
- node?: OrgLimitDefault | null;
2015
+ /** The `AppLimitCreditCode` at the end of the edge. */
2016
+ node?: AppLimitCreditCode | null;
2007
2017
  }
2008
2018
  /** A `AppLimitCreditRedemption` edge in the connection. */
2009
2019
  export interface AppLimitCreditRedemptionEdge {
@@ -2011,11 +2021,23 @@ export interface AppLimitCreditRedemptionEdge {
2011
2021
  /** The `AppLimitCreditRedemption` at the end of the edge. */
2012
2022
  node?: AppLimitCreditRedemption | null;
2013
2023
  }
2014
- /** A `AppLimitCreditCodeItem` edge in the connection. */
2015
- export interface AppLimitCreditCodeItemEdge {
2024
+ /** A `AppLimitCredit` edge in the connection. */
2025
+ export interface AppLimitCreditEdge {
2016
2026
  cursor?: string | null;
2017
- /** The `AppLimitCreditCodeItem` at the end of the edge. */
2018
- node?: AppLimitCreditCodeItem | null;
2027
+ /** The `AppLimitCredit` at the end of the edge. */
2028
+ node?: AppLimitCredit | null;
2029
+ }
2030
+ /** A `AppLimitDefault` edge in the connection. */
2031
+ export interface AppLimitDefaultEdge {
2032
+ cursor?: string | null;
2033
+ /** The `AppLimitDefault` at the end of the edge. */
2034
+ node?: AppLimitDefault | null;
2035
+ }
2036
+ /** A `AppLimitEvent` edge in the connection. */
2037
+ export interface AppLimitEventEdge {
2038
+ cursor?: string | null;
2039
+ /** The `AppLimitEvent` at the end of the edge. */
2040
+ node?: AppLimitEvent | null;
2019
2041
  }
2020
2042
  /** A `AppLimitWarning` edge in the connection. */
2021
2043
  export interface AppLimitWarningEdge {
@@ -2023,17 +2045,29 @@ export interface AppLimitWarningEdge {
2023
2045
  /** The `AppLimitWarning` at the end of the edge. */
2024
2046
  node?: AppLimitWarning | null;
2025
2047
  }
2026
- /** A `AppLimitCredit` edge in the connection. */
2027
- export interface AppLimitCreditEdge {
2048
+ /** A `AppLimit` edge in the connection. */
2049
+ export interface AppLimitEdge {
2028
2050
  cursor?: string | null;
2029
- /** The `AppLimitCredit` at the end of the edge. */
2030
- node?: AppLimitCredit | null;
2051
+ /** The `AppLimit` at the end of the edge. */
2052
+ node?: AppLimit | null;
2031
2053
  }
2032
- /** A `OrgLimitWarning` edge in the connection. */
2033
- export interface OrgLimitWarningEdge {
2054
+ /** A `OrgLimitAggregate` edge in the connection. */
2055
+ export interface OrgLimitAggregateEdge {
2034
2056
  cursor?: string | null;
2035
- /** The `OrgLimitWarning` at the end of the edge. */
2036
- node?: OrgLimitWarning | null;
2057
+ /** The `OrgLimitAggregate` at the end of the edge. */
2058
+ node?: OrgLimitAggregate | null;
2059
+ }
2060
+ /** A `OrgLimitCap` edge in the connection. */
2061
+ export interface OrgLimitCapEdge {
2062
+ cursor?: string | null;
2063
+ /** The `OrgLimitCap` at the end of the edge. */
2064
+ node?: OrgLimitCap | null;
2065
+ }
2066
+ /** A `OrgLimitCapsDefault` edge in the connection. */
2067
+ export interface OrgLimitCapsDefaultEdge {
2068
+ cursor?: string | null;
2069
+ /** The `OrgLimitCapsDefault` at the end of the edge. */
2070
+ node?: OrgLimitCapsDefault | null;
2037
2071
  }
2038
2072
  /** A `OrgLimitCredit` edge in the connection. */
2039
2073
  export interface OrgLimitCreditEdge {
@@ -2041,17 +2075,11 @@ export interface OrgLimitCreditEdge {
2041
2075
  /** The `OrgLimitCredit` at the end of the edge. */
2042
2076
  node?: OrgLimitCredit | null;
2043
2077
  }
2044
- /** A `AppLimitCreditCode` edge in the connection. */
2045
- export interface AppLimitCreditCodeEdge {
2046
- cursor?: string | null;
2047
- /** The `AppLimitCreditCode` at the end of the edge. */
2048
- node?: AppLimitCreditCode | null;
2049
- }
2050
- /** A `AppLimitEvent` edge in the connection. */
2051
- export interface AppLimitEventEdge {
2078
+ /** A `OrgLimitDefault` edge in the connection. */
2079
+ export interface OrgLimitDefaultEdge {
2052
2080
  cursor?: string | null;
2053
- /** The `AppLimitEvent` at the end of the edge. */
2054
- node?: AppLimitEvent | null;
2081
+ /** The `OrgLimitDefault` at the end of the edge. */
2082
+ node?: OrgLimitDefault | null;
2055
2083
  }
2056
2084
  /** A `OrgLimitEvent` edge in the connection. */
2057
2085
  export interface OrgLimitEventEdge {
@@ -2059,17 +2087,11 @@ export interface OrgLimitEventEdge {
2059
2087
  /** The `OrgLimitEvent` at the end of the edge. */
2060
2088
  node?: OrgLimitEvent | null;
2061
2089
  }
2062
- /** A `AppLimit` edge in the connection. */
2063
- export interface AppLimitEdge {
2064
- cursor?: string | null;
2065
- /** The `AppLimit` at the end of the edge. */
2066
- node?: AppLimit | null;
2067
- }
2068
- /** A `OrgLimitAggregate` edge in the connection. */
2069
- export interface OrgLimitAggregateEdge {
2090
+ /** A `OrgLimitWarning` edge in the connection. */
2091
+ export interface OrgLimitWarningEdge {
2070
2092
  cursor?: string | null;
2071
- /** The `OrgLimitAggregate` at the end of the edge. */
2072
- node?: OrgLimitAggregate | null;
2093
+ /** The `OrgLimitWarning` at the end of the edge. */
2094
+ node?: OrgLimitWarning | null;
2073
2095
  }
2074
2096
  /** A `OrgLimit` edge in the connection. */
2075
2097
  export interface OrgLimitEdge {
@@ -2077,110 +2099,88 @@ export interface OrgLimitEdge {
2077
2099
  /** The `OrgLimit` at the end of the edge. */
2078
2100
  node?: OrgLimit | null;
2079
2101
  }
2080
- /** Information about a database table */
2081
- export interface MetaTable {
2082
- name: string;
2083
- schemaName: string;
2084
- fields: MetaField[];
2085
- indexes: MetaIndex[];
2086
- constraints: MetaConstraints;
2087
- foreignKeyConstraints: MetaForeignKeyConstraint[];
2088
- primaryKeyConstraints: MetaPrimaryKeyConstraint[];
2089
- uniqueConstraints: MetaUniqueConstraint[];
2090
- relations: MetaRelations;
2091
- inflection: MetaInflection;
2092
- query: MetaQuery;
2093
- /** Storage metadata (null if not a storage table) */
2094
- storage?: MetaStorage | null;
2095
- /** Search metadata (null if no search configured) */
2096
- search?: MetaSearch | null;
2097
- /** i18n metadata (null if no @i18n tag) */
2098
- i18n?: MetaI18n | null;
2099
- /** Realtime metadata (null if no @realtime tag) */
2100
- realtime?: MetaRealtime | null;
2102
+ /** Table constraints */
2103
+ export interface MetaConstraints {
2104
+ foreignKey: MetaForeignKeyConstraint[];
2105
+ primaryKey?: MetaPrimaryKeyConstraint | null;
2106
+ unique: MetaUniqueConstraint[];
2101
2107
  }
2102
2108
  /** Information about a table field/column */
2103
2109
  export interface MetaField {
2104
- name: string;
2105
- type: MetaType;
2106
- isNotNull: boolean;
2107
- hasDefault: boolean;
2108
- isPrimaryKey: boolean;
2109
- isForeignKey: boolean;
2110
2110
  description?: string | null;
2111
2111
  /** Enum metadata if this field has an enum type */
2112
2112
  enumValues?: MetaEnum | null;
2113
- }
2114
- /** Information about a database index */
2115
- export interface MetaIndex {
2113
+ hasDefault: boolean;
2114
+ isForeignKey: boolean;
2115
+ isNotNull: boolean;
2116
+ isPrimaryKey: boolean;
2116
2117
  name: string;
2117
- isUnique: boolean;
2118
- isPrimary: boolean;
2119
- columns: string[];
2120
- fields?: MetaField[] | null;
2121
- }
2122
- /** Table constraints */
2123
- export interface MetaConstraints {
2124
- primaryKey?: MetaPrimaryKeyConstraint | null;
2125
- unique: MetaUniqueConstraint[];
2126
- foreignKey: MetaForeignKeyConstraint[];
2118
+ type: MetaType;
2127
2119
  }
2128
2120
  /** Information about a foreign key constraint */
2129
2121
  export interface MetaForeignKeyConstraint {
2130
- name: string;
2131
2122
  fields: MetaField[];
2132
- referencedTable: string;
2133
- referencedFields: string[];
2123
+ name: string;
2134
2124
  refFields?: MetaField[] | null;
2135
2125
  refTable?: MetaRefTable | null;
2126
+ referencedFields: string[];
2127
+ referencedTable: string;
2136
2128
  }
2137
- /** Information about a primary key constraint */
2138
- export interface MetaPrimaryKeyConstraint {
2139
- name: string;
2140
- fields: MetaField[];
2129
+ /** i18n metadata for a table with @i18n tag */
2130
+ export interface MetaI18n {
2131
+ /** Fields that are translatable */
2132
+ translatableFields: MetaI18nField[];
2133
+ /** Name of the translation table */
2134
+ translationTable: string;
2141
2135
  }
2142
- /** Information about a unique constraint */
2143
- export interface MetaUniqueConstraint {
2136
+ /** Information about a database index */
2137
+ export interface MetaIndex {
2138
+ columns: string[];
2139
+ fields?: MetaField[] | null;
2140
+ isPrimary: boolean;
2141
+ isUnique: boolean;
2144
2142
  name: string;
2145
- fields: MetaField[];
2146
- }
2147
- /** Table relations */
2148
- export interface MetaRelations {
2149
- belongsTo: MetaBelongsToRelation[];
2150
- has: MetaHasRelation[];
2151
- hasOne: MetaHasRelation[];
2152
- hasMany: MetaHasRelation[];
2153
- manyToMany: MetaManyToManyRelation[];
2154
2143
  }
2155
2144
  /** Table inflection names */
2156
2145
  export interface MetaInflection {
2157
- tableType: string;
2158
2146
  allRows: string;
2147
+ conditionType: string;
2159
2148
  connection: string;
2149
+ createInputType: string;
2150
+ createPayloadType: string;
2151
+ deletePayloadType: string;
2160
2152
  edge: string;
2161
2153
  filterType?: string | null;
2162
2154
  orderByType: string;
2163
- conditionType: string;
2164
2155
  patchType?: string | null;
2165
- createInputType: string;
2166
- createPayloadType: string;
2156
+ tableType: string;
2167
2157
  updatePayloadType?: string | null;
2168
- deletePayloadType: string;
2158
+ }
2159
+ /** Information about a primary key constraint */
2160
+ export interface MetaPrimaryKeyConstraint {
2161
+ fields: MetaField[];
2162
+ name: string;
2169
2163
  }
2170
2164
  /** Table query/mutation names */
2171
2165
  export interface MetaQuery {
2172
2166
  all: string;
2173
- one?: string | null;
2174
2167
  create?: string | null;
2175
- update?: string | null;
2176
2168
  delete?: string | null;
2169
+ one?: string | null;
2170
+ update?: string | null;
2177
2171
  }
2178
- /** Storage metadata for a table */
2179
- export interface MetaStorage {
2180
- /** Whether this table is a storage files table */
2181
- isFilesTable: boolean;
2182
- /** Whether this table is a storage buckets table */
2183
- isBucketsTable: boolean;
2172
+ /** Realtime metadata for a table with @realtime tag */
2173
+ export interface MetaRealtime {
2174
+ /** The generated subscription field name (e.g. onPostChanged) */
2175
+ subscriptionFieldName: string;
2176
+ }
2177
+ /** Table relations */
2178
+ export interface MetaRelations {
2179
+ belongsTo: MetaBelongsToRelation[];
2180
+ has: MetaHasRelation[];
2181
+ hasMany: MetaHasRelation[];
2182
+ hasOne: MetaHasRelation[];
2183
+ manyToMany: MetaManyToManyRelation[];
2184
2184
  }
2185
2185
  /** Search metadata for a table */
2186
2186
  export interface MetaSearch {
@@ -2188,31 +2188,22 @@ export interface MetaSearch {
2188
2188
  algorithms: string[];
2189
2189
  /** Searchable columns with their algorithm */
2190
2190
  columns: MetaSearchColumn[];
2191
- /** Whether unifiedSearch composite filter is available */
2192
- hasUnifiedSearch: boolean;
2193
2191
  /** Per-table search configuration */
2194
2192
  config?: MetaSearchConfig | null;
2193
+ /** Whether unifiedSearch composite filter is available */
2194
+ hasUnifiedSearch: boolean;
2195
2195
  }
2196
- /** i18n metadata for a table with @i18n tag */
2197
- export interface MetaI18n {
2198
- /** Name of the translation table */
2199
- translationTable: string;
2200
- /** Fields that are translatable */
2201
- translatableFields: MetaI18nField[];
2202
- }
2203
- /** Realtime metadata for a table with @realtime tag */
2204
- export interface MetaRealtime {
2205
- /** The generated subscription field name (e.g. onPostChanged) */
2206
- subscriptionFieldName: string;
2196
+ /** Storage metadata for a table */
2197
+ export interface MetaStorage {
2198
+ /** Whether this table is a storage buckets table */
2199
+ isBucketsTable: boolean;
2200
+ /** Whether this table is a storage files table */
2201
+ isFilesTable: boolean;
2207
2202
  }
2208
- /** Information about a PostgreSQL type */
2209
- export interface MetaType {
2210
- pgType: string;
2211
- gqlType: string;
2212
- isArray: boolean;
2213
- isNotNull?: boolean | null;
2214
- hasDefault?: boolean | null;
2215
- subtype?: string | null;
2203
+ /** Information about a unique constraint */
2204
+ export interface MetaUniqueConstraint {
2205
+ fields: MetaField[];
2206
+ name: string;
2216
2207
  }
2217
2208
  /** Information about a PostgreSQL enum type */
2218
2209
  export interface MetaEnum {
@@ -2221,61 +2212,70 @@ export interface MetaEnum {
2221
2212
  /** Allowed values for this enum */
2222
2213
  values: string[];
2223
2214
  }
2215
+ /** Information about a PostgreSQL type */
2216
+ export interface MetaType {
2217
+ gqlType: string;
2218
+ hasDefault?: boolean | null;
2219
+ isArray: boolean;
2220
+ isNotNull?: boolean | null;
2221
+ pgType: string;
2222
+ subtype?: string | null;
2223
+ }
2224
2224
  /** Reference to a related table */
2225
2225
  export interface MetaRefTable {
2226
2226
  name: string;
2227
2227
  }
2228
+ /** A translatable field */
2229
+ export interface MetaI18nField {
2230
+ /** GraphQL field name */
2231
+ name: string;
2232
+ /** PostgreSQL column type (text, citext) */
2233
+ type: string;
2234
+ }
2228
2235
  /** A belongs-to (forward FK) relation */
2229
2236
  export interface MetaBelongsToRelation {
2230
2237
  fieldName?: string | null;
2231
2238
  isUnique: boolean;
2232
- type?: string | null;
2233
2239
  keys: MetaField[];
2234
2240
  references: MetaRefTable;
2241
+ type?: string | null;
2235
2242
  }
2236
2243
  /** A has-one or has-many (reverse FK) relation */
2237
2244
  export interface MetaHasRelation {
2238
2245
  fieldName?: string | null;
2239
2246
  isUnique: boolean;
2240
- type?: string | null;
2241
2247
  keys: MetaField[];
2242
2248
  referencedBy: MetaRefTable;
2249
+ type?: string | null;
2243
2250
  }
2244
2251
  /** A many-to-many relation via junction table */
2245
2252
  export interface MetaManyToManyRelation {
2246
2253
  fieldName?: string | null;
2247
- type?: string | null;
2248
- junctionTable: MetaRefTable;
2249
2254
  junctionLeftConstraint: MetaForeignKeyConstraint;
2250
2255
  junctionLeftKeyAttributes: MetaField[];
2251
2256
  junctionRightConstraint: MetaForeignKeyConstraint;
2252
2257
  junctionRightKeyAttributes: MetaField[];
2258
+ junctionTable: MetaRefTable;
2253
2259
  leftKeyAttributes: MetaField[];
2254
2260
  rightKeyAttributes: MetaField[];
2255
2261
  rightTable: MetaRefTable;
2262
+ type?: string | null;
2256
2263
  }
2257
2264
  /** A searchable column with its algorithm */
2258
2265
  export interface MetaSearchColumn {
2259
- /** Column name (camelCase) */
2260
- name: string;
2261
2266
  /** Search algorithm: tsvector, bm25, trgm, or vector */
2262
2267
  algorithm: string;
2268
+ /** Column name (camelCase) */
2269
+ name: string;
2263
2270
  }
2264
2271
  /** Per-table search configuration from @searchConfig smart tag */
2265
2272
  export interface MetaSearchConfig {
2266
- /** JSON-encoded per-adapter score weights */
2267
- weights?: string | null;
2268
- /** Whether recency boosting is enabled */
2269
- boostRecent: boolean;
2270
- /** Field used for recency decay */
2271
- boostRecencyField?: string | null;
2272
2273
  /** Exponential decay factor per day */
2273
2274
  boostRecencyDecay?: number | null;
2274
- }
2275
- /** A translatable field */
2276
- export interface MetaI18nField {
2277
- /** GraphQL field name */
2278
- name: string;
2279
- /** PostgreSQL column type (text, citext) */
2280
- type: string;
2275
+ /** Field used for recency decay */
2276
+ boostRecencyField?: string | null;
2277
+ /** Whether recency boosting is enabled */
2278
+ boostRecent: boolean;
2279
+ /** JSON-encoded per-adapter score weights */
2280
+ weights?: string | null;
2281
2281
  }