@constructive-sdk/cli 0.20.4 → 0.20.5

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 (323) hide show
  1. package/admin/cli/commands/{request-upload-url.d.ts → app-limit-cap.d.ts} +1 -1
  2. package/admin/cli/commands/app-limit-cap.js +272 -0
  3. package/{esm/admin/cli/commands/request-upload-url.d.ts → admin/cli/commands/app-limit-caps-default.d.ts} +1 -1
  4. package/admin/cli/commands/app-limit-caps-default.js +252 -0
  5. package/{auth/cli/commands/request-upload-url.d.ts → admin/cli/commands/app-limit-credit-code-item.d.ts} +1 -1
  6. package/admin/cli/commands/app-limit-credit-code-item.js +292 -0
  7. package/{esm/auth/cli/commands/request-upload-url.d.ts → admin/cli/commands/app-limit-credit-code.d.ts} +1 -1
  8. package/admin/cli/commands/app-limit-credit-code.js +296 -0
  9. package/admin/cli/commands/app-limit-credit-redemption.d.ts +8 -0
  10. package/admin/cli/commands/app-limit-credit-redemption.js +250 -0
  11. package/admin/cli/commands/app-limit-credit.d.ts +8 -0
  12. package/admin/cli/commands/app-limit-credit.js +316 -0
  13. package/admin/cli/commands/app-limit.js +66 -0
  14. package/admin/cli/commands/org-limit-aggregate.js +88 -0
  15. package/admin/cli/commands/org-limit-cap.d.ts +8 -0
  16. package/admin/cli/commands/org-limit-cap.js +272 -0
  17. package/admin/cli/commands/org-limit-caps-default.d.ts +8 -0
  18. package/admin/cli/commands/org-limit-caps-default.js +252 -0
  19. package/admin/cli/commands/org-limit-credit.d.ts +8 -0
  20. package/admin/cli/commands/org-limit-credit.js +338 -0
  21. package/admin/cli/commands/org-limit.js +66 -0
  22. package/admin/cli/commands.js +25 -9
  23. package/admin/cli/executor.d.ts +12 -8
  24. package/admin/orm/index.d.ts +24 -11
  25. package/admin/orm/index.js +24 -6
  26. package/admin/orm/input-types.d.ts +2108 -545
  27. package/admin/orm/input-types.js +13 -1
  28. package/admin/orm/models/appLimitCap.d.ts +56 -0
  29. package/admin/orm/models/appLimitCap.js +100 -0
  30. package/admin/orm/models/appLimitCapsDefault.d.ts +56 -0
  31. package/admin/orm/models/appLimitCapsDefault.js +100 -0
  32. package/admin/orm/models/appLimitCredit.d.ts +56 -0
  33. package/admin/orm/models/appLimitCredit.js +100 -0
  34. package/admin/orm/models/appLimitCreditCode.d.ts +56 -0
  35. package/admin/orm/models/appLimitCreditCode.js +100 -0
  36. package/admin/orm/models/appLimitCreditCodeItem.d.ts +56 -0
  37. package/admin/orm/models/appLimitCreditCodeItem.js +100 -0
  38. package/admin/orm/models/appLimitCreditRedemption.d.ts +56 -0
  39. package/admin/orm/models/appLimitCreditRedemption.js +100 -0
  40. package/admin/orm/models/index.d.ts +12 -3
  41. package/admin/orm/models/index.js +25 -7
  42. package/admin/orm/models/orgLimitCap.d.ts +56 -0
  43. package/admin/orm/models/orgLimitCap.js +100 -0
  44. package/admin/orm/models/orgLimitCapsDefault.d.ts +56 -0
  45. package/admin/orm/models/orgLimitCapsDefault.js +100 -0
  46. package/admin/orm/models/orgLimitCredit.d.ts +56 -0
  47. package/admin/orm/models/orgLimitCredit.js +100 -0
  48. package/admin/orm/mutation/index.d.ts +1 -16
  49. package/admin/orm/mutation/index.js +0 -12
  50. package/admin/orm/query-builder.js +24 -0
  51. package/auth/cli/commands.js +1 -3
  52. package/auth/cli/executor.d.ts +0 -5
  53. package/auth/orm/index.d.ts +0 -5
  54. package/auth/orm/input-types.d.ts +0 -38
  55. package/auth/orm/mutation/index.d.ts +1 -16
  56. package/auth/orm/mutation/index.js +0 -12
  57. package/auth/orm/query-builder.js +24 -0
  58. package/esm/admin/cli/commands/app-limit-cap.d.ts +8 -0
  59. package/esm/admin/cli/commands/app-limit-cap.js +270 -0
  60. package/esm/admin/cli/commands/app-limit-caps-default.d.ts +8 -0
  61. package/esm/admin/cli/commands/app-limit-caps-default.js +250 -0
  62. package/esm/admin/cli/commands/app-limit-credit-code-item.d.ts +8 -0
  63. package/esm/admin/cli/commands/app-limit-credit-code-item.js +290 -0
  64. package/esm/admin/cli/commands/app-limit-credit-code.d.ts +8 -0
  65. package/esm/admin/cli/commands/app-limit-credit-code.js +294 -0
  66. package/esm/admin/cli/commands/app-limit-credit-redemption.d.ts +8 -0
  67. package/esm/admin/cli/commands/app-limit-credit-redemption.js +248 -0
  68. package/esm/admin/cli/commands/app-limit-credit.d.ts +8 -0
  69. package/esm/admin/cli/commands/app-limit-credit.js +314 -0
  70. package/esm/admin/cli/commands/app-limit.js +66 -0
  71. package/esm/admin/cli/commands/org-limit-aggregate.js +88 -0
  72. package/esm/admin/cli/commands/org-limit-cap.d.ts +8 -0
  73. package/esm/admin/cli/commands/org-limit-cap.js +270 -0
  74. package/esm/admin/cli/commands/org-limit-caps-default.d.ts +8 -0
  75. package/esm/admin/cli/commands/org-limit-caps-default.js +250 -0
  76. package/esm/admin/cli/commands/org-limit-credit.d.ts +8 -0
  77. package/esm/admin/cli/commands/org-limit-credit.js +336 -0
  78. package/esm/admin/cli/commands/org-limit.js +66 -0
  79. package/esm/admin/cli/commands.js +25 -9
  80. package/esm/admin/cli/executor.d.ts +12 -8
  81. package/esm/admin/orm/index.d.ts +24 -11
  82. package/esm/admin/orm/index.js +24 -6
  83. package/esm/admin/orm/input-types.d.ts +2108 -545
  84. package/esm/admin/orm/input-types.js +13 -1
  85. package/esm/admin/orm/models/appLimitCap.d.ts +56 -0
  86. package/esm/admin/orm/models/appLimitCap.js +96 -0
  87. package/esm/admin/orm/models/appLimitCapsDefault.d.ts +56 -0
  88. package/esm/admin/orm/models/appLimitCapsDefault.js +96 -0
  89. package/esm/admin/orm/models/appLimitCredit.d.ts +56 -0
  90. package/esm/admin/orm/models/appLimitCredit.js +96 -0
  91. package/esm/admin/orm/models/appLimitCreditCode.d.ts +56 -0
  92. package/esm/admin/orm/models/appLimitCreditCode.js +96 -0
  93. package/esm/admin/orm/models/appLimitCreditCodeItem.d.ts +56 -0
  94. package/esm/admin/orm/models/appLimitCreditCodeItem.js +96 -0
  95. package/esm/admin/orm/models/appLimitCreditRedemption.d.ts +56 -0
  96. package/esm/admin/orm/models/appLimitCreditRedemption.js +96 -0
  97. package/esm/admin/orm/models/index.d.ts +12 -3
  98. package/esm/admin/orm/models/index.js +12 -3
  99. package/esm/admin/orm/models/orgLimitCap.d.ts +56 -0
  100. package/esm/admin/orm/models/orgLimitCap.js +96 -0
  101. package/esm/admin/orm/models/orgLimitCapsDefault.d.ts +56 -0
  102. package/esm/admin/orm/models/orgLimitCapsDefault.js +96 -0
  103. package/esm/admin/orm/models/orgLimitCredit.d.ts +56 -0
  104. package/esm/admin/orm/models/orgLimitCredit.js +96 -0
  105. package/esm/admin/orm/mutation/index.d.ts +1 -16
  106. package/esm/admin/orm/mutation/index.js +0 -12
  107. package/esm/admin/orm/query-builder.js +24 -0
  108. package/esm/auth/cli/commands.js +1 -3
  109. package/esm/auth/cli/executor.d.ts +0 -5
  110. package/esm/auth/orm/index.d.ts +0 -5
  111. package/esm/auth/orm/input-types.d.ts +0 -38
  112. package/esm/auth/orm/mutation/index.d.ts +1 -16
  113. package/esm/auth/orm/mutation/index.js +0 -12
  114. package/esm/auth/orm/query-builder.js +24 -0
  115. package/esm/objects/cli/commands.js +1 -3
  116. package/esm/objects/cli/executor.d.ts +0 -5
  117. package/esm/objects/orm/index.d.ts +0 -5
  118. package/esm/objects/orm/input-types.d.ts +0 -38
  119. package/esm/objects/orm/mutation/index.d.ts +1 -16
  120. package/esm/objects/orm/mutation/index.js +0 -12
  121. package/esm/objects/orm/query-builder.js +24 -0
  122. package/esm/public/cli/commands/api-setting.d.ts +8 -0
  123. package/esm/public/cli/commands/api-setting.js +468 -0
  124. package/esm/public/cli/commands/app-limit-cap.d.ts +8 -0
  125. package/esm/public/cli/commands/app-limit-cap.js +270 -0
  126. package/esm/public/cli/commands/app-limit-caps-default.d.ts +8 -0
  127. package/esm/public/cli/commands/app-limit-caps-default.js +250 -0
  128. package/esm/public/cli/commands/app-limit-credit-code-item.d.ts +8 -0
  129. package/esm/public/cli/commands/app-limit-credit-code-item.js +290 -0
  130. package/esm/public/cli/commands/app-limit-credit-code.d.ts +8 -0
  131. package/esm/public/cli/commands/app-limit-credit-code.js +294 -0
  132. package/esm/public/cli/commands/app-limit-credit-redemption.d.ts +8 -0
  133. package/esm/public/cli/commands/app-limit-credit-redemption.js +248 -0
  134. package/esm/public/cli/commands/app-limit-credit.d.ts +8 -0
  135. package/esm/public/cli/commands/app-limit-credit.js +314 -0
  136. package/esm/public/cli/commands/app-limit.js +66 -0
  137. package/esm/public/cli/commands/append-smart-tags.d.ts +8 -0
  138. package/esm/{admin/cli/commands/request-upload-url.js → public/cli/commands/append-smart-tags.js} +3 -3
  139. package/esm/public/cli/commands/billing-provider-module.d.ts +8 -0
  140. package/esm/public/cli/commands/billing-provider-module.js +624 -0
  141. package/esm/public/cli/commands/cors-setting.d.ts +8 -0
  142. package/esm/public/cli/commands/cors-setting.js +272 -0
  143. package/esm/public/cli/commands/database-setting.d.ts +8 -0
  144. package/esm/public/cli/commands/database-setting.js +448 -0
  145. package/esm/public/cli/commands/entity-type-provision.js +22 -0
  146. package/esm/public/cli/commands/function.d.ts +8 -0
  147. package/esm/public/cli/commands/function.js +268 -0
  148. package/esm/public/cli/commands/limits-module.js +198 -0
  149. package/esm/public/cli/commands/org-limit-aggregate.js +88 -0
  150. package/esm/public/cli/commands/org-limit-cap.d.ts +8 -0
  151. package/esm/public/cli/commands/org-limit-cap.js +270 -0
  152. package/esm/public/cli/commands/org-limit-caps-default.d.ts +8 -0
  153. package/esm/public/cli/commands/org-limit-caps-default.js +250 -0
  154. package/esm/public/cli/commands/org-limit-credit.d.ts +8 -0
  155. package/esm/public/cli/commands/org-limit-credit.js +336 -0
  156. package/esm/public/cli/commands/org-limit.js +66 -0
  157. package/esm/public/cli/commands/partition.d.ts +8 -0
  158. package/esm/public/cli/commands/partition.js +388 -0
  159. package/esm/public/cli/commands/plans-module.js +44 -0
  160. package/esm/public/cli/commands/pubkey-setting.d.ts +8 -0
  161. package/esm/public/cli/commands/pubkey-setting.js +382 -0
  162. package/esm/public/cli/commands/rls-setting.d.ts +8 -0
  163. package/esm/public/cli/commands/rls-setting.js +404 -0
  164. package/esm/public/cli/commands/storage-module.js +198 -0
  165. package/esm/public/cli/commands/webauthn-setting.d.ts +8 -0
  166. package/esm/public/cli/commands/webauthn-setting.js +580 -0
  167. package/esm/public/cli/commands.js +41 -5
  168. package/esm/public/cli/executor.d.ts +24 -6
  169. package/esm/public/orm/index.d.ts +43 -7
  170. package/esm/public/orm/index.js +38 -2
  171. package/esm/public/orm/input-types.d.ts +4601 -321
  172. package/esm/public/orm/input-types.js +21 -0
  173. package/esm/public/orm/models/apiSetting.d.ts +56 -0
  174. package/esm/public/orm/models/apiSetting.js +96 -0
  175. package/esm/public/orm/models/appLimitCap.d.ts +56 -0
  176. package/esm/public/orm/models/appLimitCap.js +96 -0
  177. package/esm/public/orm/models/appLimitCapsDefault.d.ts +56 -0
  178. package/esm/public/orm/models/appLimitCapsDefault.js +96 -0
  179. package/esm/public/orm/models/appLimitCredit.d.ts +56 -0
  180. package/esm/public/orm/models/appLimitCredit.js +96 -0
  181. package/esm/public/orm/models/appLimitCreditCode.d.ts +56 -0
  182. package/esm/public/orm/models/appLimitCreditCode.js +96 -0
  183. package/esm/public/orm/models/appLimitCreditCodeItem.d.ts +56 -0
  184. package/esm/public/orm/models/appLimitCreditCodeItem.js +96 -0
  185. package/esm/public/orm/models/appLimitCreditRedemption.d.ts +56 -0
  186. package/esm/public/orm/models/appLimitCreditRedemption.js +96 -0
  187. package/esm/public/orm/models/billingProviderModule.d.ts +56 -0
  188. package/esm/public/orm/models/billingProviderModule.js +96 -0
  189. package/esm/public/orm/models/corsSetting.d.ts +56 -0
  190. package/esm/public/orm/models/corsSetting.js +96 -0
  191. package/esm/public/orm/models/databaseSetting.d.ts +56 -0
  192. package/esm/public/orm/models/databaseSetting.js +96 -0
  193. package/esm/public/orm/models/function.d.ts +56 -0
  194. package/esm/public/orm/models/function.js +96 -0
  195. package/esm/public/orm/models/index.d.ts +19 -1
  196. package/esm/public/orm/models/index.js +19 -1
  197. package/esm/public/orm/models/orgLimitCap.d.ts +56 -0
  198. package/esm/public/orm/models/orgLimitCap.js +96 -0
  199. package/esm/public/orm/models/orgLimitCapsDefault.d.ts +56 -0
  200. package/esm/public/orm/models/orgLimitCapsDefault.js +96 -0
  201. package/esm/public/orm/models/orgLimitCredit.d.ts +56 -0
  202. package/esm/public/orm/models/orgLimitCredit.js +96 -0
  203. package/esm/public/orm/models/partition.d.ts +56 -0
  204. package/esm/public/orm/models/partition.js +96 -0
  205. package/esm/public/orm/models/pubkeySetting.d.ts +56 -0
  206. package/esm/public/orm/models/pubkeySetting.js +96 -0
  207. package/esm/public/orm/models/rlsSetting.d.ts +56 -0
  208. package/esm/public/orm/models/rlsSetting.js +96 -0
  209. package/esm/public/orm/models/webauthnSetting.d.ts +56 -0
  210. package/esm/public/orm/models/webauthnSetting.js +96 -0
  211. package/esm/public/orm/mutation/index.d.ts +9 -16
  212. package/esm/public/orm/mutation/index.js +12 -12
  213. package/esm/public/orm/query-builder.js +24 -0
  214. package/objects/cli/commands.js +1 -3
  215. package/objects/cli/executor.d.ts +0 -5
  216. package/objects/orm/index.d.ts +0 -5
  217. package/objects/orm/input-types.d.ts +0 -38
  218. package/objects/orm/mutation/index.d.ts +1 -16
  219. package/objects/orm/mutation/index.js +0 -12
  220. package/objects/orm/query-builder.js +24 -0
  221. package/package.json +4 -4
  222. package/public/cli/commands/api-setting.d.ts +8 -0
  223. package/public/cli/commands/api-setting.js +470 -0
  224. package/public/cli/commands/app-limit-cap.d.ts +8 -0
  225. package/public/cli/commands/app-limit-cap.js +272 -0
  226. package/public/cli/commands/app-limit-caps-default.d.ts +8 -0
  227. package/public/cli/commands/app-limit-caps-default.js +252 -0
  228. package/public/cli/commands/app-limit-credit-code-item.d.ts +8 -0
  229. package/public/cli/commands/app-limit-credit-code-item.js +292 -0
  230. package/public/cli/commands/app-limit-credit-code.d.ts +8 -0
  231. package/public/cli/commands/app-limit-credit-code.js +296 -0
  232. package/public/cli/commands/app-limit-credit-redemption.d.ts +8 -0
  233. package/public/cli/commands/app-limit-credit-redemption.js +250 -0
  234. package/public/cli/commands/app-limit-credit.d.ts +8 -0
  235. package/public/cli/commands/app-limit-credit.js +316 -0
  236. package/public/cli/commands/app-limit.js +66 -0
  237. package/public/cli/commands/append-smart-tags.d.ts +8 -0
  238. package/{objects/cli/commands/request-upload-url.js → public/cli/commands/append-smart-tags.js} +3 -3
  239. package/public/cli/commands/billing-provider-module.d.ts +8 -0
  240. package/public/cli/commands/billing-provider-module.js +626 -0
  241. package/public/cli/commands/cors-setting.d.ts +8 -0
  242. package/public/cli/commands/cors-setting.js +274 -0
  243. package/public/cli/commands/database-setting.d.ts +8 -0
  244. package/public/cli/commands/database-setting.js +450 -0
  245. package/public/cli/commands/entity-type-provision.js +22 -0
  246. package/public/cli/commands/function.d.ts +8 -0
  247. package/public/cli/commands/function.js +270 -0
  248. package/public/cli/commands/limits-module.js +198 -0
  249. package/public/cli/commands/org-limit-aggregate.js +88 -0
  250. package/public/cli/commands/org-limit-cap.d.ts +8 -0
  251. package/public/cli/commands/org-limit-cap.js +272 -0
  252. package/public/cli/commands/org-limit-caps-default.d.ts +8 -0
  253. package/public/cli/commands/org-limit-caps-default.js +252 -0
  254. package/public/cli/commands/org-limit-credit.d.ts +8 -0
  255. package/public/cli/commands/org-limit-credit.js +338 -0
  256. package/public/cli/commands/org-limit.js +66 -0
  257. package/public/cli/commands/partition.d.ts +8 -0
  258. package/public/cli/commands/partition.js +390 -0
  259. package/public/cli/commands/plans-module.js +44 -0
  260. package/public/cli/commands/pubkey-setting.d.ts +8 -0
  261. package/public/cli/commands/pubkey-setting.js +384 -0
  262. package/public/cli/commands/rls-setting.d.ts +8 -0
  263. package/public/cli/commands/rls-setting.js +406 -0
  264. package/public/cli/commands/storage-module.js +198 -0
  265. package/public/cli/commands/webauthn-setting.d.ts +8 -0
  266. package/public/cli/commands/webauthn-setting.js +582 -0
  267. package/public/cli/commands.js +41 -5
  268. package/public/cli/executor.d.ts +24 -6
  269. package/public/orm/index.d.ts +43 -7
  270. package/public/orm/index.js +38 -2
  271. package/public/orm/input-types.d.ts +4601 -321
  272. package/public/orm/input-types.js +21 -0
  273. package/public/orm/models/apiSetting.d.ts +56 -0
  274. package/public/orm/models/apiSetting.js +100 -0
  275. package/public/orm/models/appLimitCap.d.ts +56 -0
  276. package/public/orm/models/appLimitCap.js +100 -0
  277. package/public/orm/models/appLimitCapsDefault.d.ts +56 -0
  278. package/public/orm/models/appLimitCapsDefault.js +100 -0
  279. package/public/orm/models/appLimitCredit.d.ts +56 -0
  280. package/public/orm/models/appLimitCredit.js +100 -0
  281. package/public/orm/models/appLimitCreditCode.d.ts +56 -0
  282. package/public/orm/models/appLimitCreditCode.js +100 -0
  283. package/public/orm/models/appLimitCreditCodeItem.d.ts +56 -0
  284. package/public/orm/models/appLimitCreditCodeItem.js +100 -0
  285. package/public/orm/models/appLimitCreditRedemption.d.ts +56 -0
  286. package/public/orm/models/appLimitCreditRedemption.js +100 -0
  287. package/public/orm/models/billingProviderModule.d.ts +56 -0
  288. package/public/orm/models/billingProviderModule.js +100 -0
  289. package/public/orm/models/corsSetting.d.ts +56 -0
  290. package/public/orm/models/corsSetting.js +100 -0
  291. package/public/orm/models/databaseSetting.d.ts +56 -0
  292. package/public/orm/models/databaseSetting.js +100 -0
  293. package/public/orm/models/function.d.ts +56 -0
  294. package/public/orm/models/function.js +100 -0
  295. package/public/orm/models/index.d.ts +19 -1
  296. package/public/orm/models/index.js +41 -5
  297. package/public/orm/models/orgLimitCap.d.ts +56 -0
  298. package/public/orm/models/orgLimitCap.js +100 -0
  299. package/public/orm/models/orgLimitCapsDefault.d.ts +56 -0
  300. package/public/orm/models/orgLimitCapsDefault.js +100 -0
  301. package/public/orm/models/orgLimitCredit.d.ts +56 -0
  302. package/public/orm/models/orgLimitCredit.js +100 -0
  303. package/public/orm/models/partition.d.ts +56 -0
  304. package/public/orm/models/partition.js +100 -0
  305. package/public/orm/models/pubkeySetting.d.ts +56 -0
  306. package/public/orm/models/pubkeySetting.js +100 -0
  307. package/public/orm/models/rlsSetting.d.ts +56 -0
  308. package/public/orm/models/rlsSetting.js +100 -0
  309. package/public/orm/models/webauthnSetting.d.ts +56 -0
  310. package/public/orm/models/webauthnSetting.js +100 -0
  311. package/public/orm/mutation/index.d.ts +9 -16
  312. package/public/orm/mutation/index.js +12 -12
  313. package/public/orm/query-builder.js +24 -0
  314. package/admin/cli/commands/request-upload-url.js +0 -36
  315. package/auth/cli/commands/request-upload-url.js +0 -36
  316. package/esm/auth/cli/commands/request-upload-url.js +0 -34
  317. package/esm/objects/cli/commands/request-upload-url.d.ts +0 -8
  318. package/esm/objects/cli/commands/request-upload-url.js +0 -34
  319. package/esm/public/cli/commands/request-upload-url.d.ts +0 -8
  320. package/esm/public/cli/commands/request-upload-url.js +0 -34
  321. package/objects/cli/commands/request-upload-url.d.ts +0 -8
  322. package/public/cli/commands/request-upload-url.d.ts +0 -8
  323. package/public/cli/commands/request-upload-url.js +0 -36
@@ -279,6 +279,40 @@ export interface AppLevelRequirement {
279
279
  createdAt?: string | null;
280
280
  updatedAt?: string | null;
281
281
  }
282
+ /** Append-only ledger of code redemptions; AFTER INSERT trigger validates and cascades to limit_credits */
283
+ export interface AppLimitCreditRedemption {
284
+ id: string;
285
+ /** FK to credit_codes — which code is being redeemed */
286
+ creditCodeId?: string | null;
287
+ /** Entity receiving the credits (personal org user_id or org entity_id) */
288
+ entityId?: string | null;
289
+ }
290
+ /** Items within a credit code — each row grants credits for a specific limit definition */
291
+ export interface AppLimitCreditCodeItem {
292
+ id: string;
293
+ /** FK to credit_codes — which code this item belongs to */
294
+ creditCodeId?: string | null;
295
+ /** FK to default_limits — which limit this item grants credits for */
296
+ defaultLimitId?: string | null;
297
+ /** Number of credits this item grants per redemption */
298
+ amount?: string | null;
299
+ /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */
300
+ creditType?: string | null;
301
+ }
302
+ /** Append-only ledger of credit grants that automatically update limit ceilings */
303
+ export interface AppLimitCredit {
304
+ id: string;
305
+ /** FK to default_limits — which limit definition this credit applies to */
306
+ defaultLimitId?: string | null;
307
+ /** User this credit is for; NULL for aggregate entity-level credits */
308
+ actorId?: string | null;
309
+ /** Number of credits to grant (positive to add, negative to revoke) */
310
+ amount?: string | null;
311
+ /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */
312
+ creditType?: string | null;
313
+ /** Optional reason for the credit grant (promo code, admin grant, etc.) */
314
+ reason?: string | null;
315
+ }
282
316
  /** Simplified view of active members in an entity, used for listing who belongs to an org or group */
283
317
  export interface OrgMember {
284
318
  id: string;
@@ -295,6 +329,18 @@ export interface AppPermissionDefault {
295
329
  /** Default permission bitmask applied to new members */
296
330
  permissions?: string | null;
297
331
  }
332
+ /** Redeemable credit codes managed by admins with the add_credits permission */
333
+ export interface AppLimitCreditCode {
334
+ id: string;
335
+ /** Human-readable credit code (case-insensitive, unique) */
336
+ code?: string | null;
337
+ /** Maximum total redemptions allowed; NULL for unlimited */
338
+ maxRedemptions?: number | null;
339
+ /** Current number of redemptions (incremented by trigger on credit_redemptions) */
340
+ currentRedemptions?: number | null;
341
+ /** Expiration timestamp; NULL for no expiry */
342
+ expiresAt?: string | null;
343
+ }
298
344
  /** Stores the default permission bitmask assigned to new members upon joining */
299
345
  export interface OrgPermissionDefault {
300
346
  id: string;
@@ -347,6 +393,42 @@ export interface AppStep {
347
393
  createdAt?: string | null;
348
394
  updatedAt?: string | null;
349
395
  }
396
+ /** Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. */
397
+ export interface AppLimitCapsDefault {
398
+ id: string;
399
+ /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */
400
+ name?: string | null;
401
+ /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */
402
+ max?: string | null;
403
+ }
404
+ /** Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. */
405
+ export interface OrgLimitCapsDefault {
406
+ id: string;
407
+ /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */
408
+ name?: string | null;
409
+ /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */
410
+ max?: string | null;
411
+ }
412
+ /** Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. */
413
+ export interface AppLimitCap {
414
+ id: string;
415
+ /** Name identifier of the cap being overridden */
416
+ name?: string | null;
417
+ /** Entity this cap override applies to */
418
+ entityId?: string | null;
419
+ /** Override cap value for this entity */
420
+ max?: string | null;
421
+ }
422
+ /** Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. */
423
+ export interface OrgLimitCap {
424
+ id: string;
425
+ /** Name identifier of the cap being overridden */
426
+ name?: string | null;
427
+ /** Entity this cap override applies to */
428
+ entityId?: string | null;
429
+ /** Override cap value for this entity */
430
+ max?: string | null;
431
+ }
350
432
  /** Records of admin role grants and revocations between members */
351
433
  export interface OrgAdminGrant {
352
434
  id: string;
@@ -408,6 +490,22 @@ export interface OrgLimitDefault {
408
490
  /** Default soft limit threshold for warnings; NULL means no soft limit */
409
491
  softMax?: string | null;
410
492
  }
493
+ /** Append-only ledger of credit grants that automatically update limit ceilings */
494
+ export interface OrgLimitCredit {
495
+ id: string;
496
+ /** FK to default_limits — which limit definition this credit applies to */
497
+ defaultLimitId?: string | null;
498
+ /** User this credit is for; NULL for aggregate entity-level credits */
499
+ actorId?: string | null;
500
+ /** Entity this credit applies to; NULL for actor-only credits */
501
+ entityId?: string | null;
502
+ /** Number of credits to grant (positive to add, negative to revoke) */
503
+ amount?: string | null;
504
+ /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */
505
+ creditType?: string | null;
506
+ /** Optional reason for the credit grant (promo code, admin grant, etc.) */
507
+ reason?: string | null;
508
+ }
411
509
  /** Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table */
412
510
  export interface OrgChartEdgeGrant {
413
511
  id: string;
@@ -563,42 +661,6 @@ export interface OrgChartEdge {
563
661
  /** Numeric seniority level for this position (higher = more senior) */
564
662
  positionLevel?: number | null;
565
663
  }
566
- /** Tracks per-actor usage counts against configurable maximum limits */
567
- export interface AppLimit {
568
- id: string;
569
- /** Name identifier of the limit being tracked */
570
- name?: string | null;
571
- /** User whose usage is being tracked against this limit */
572
- actorId?: string | null;
573
- /** Current usage count for this actor and limit */
574
- num?: string | null;
575
- /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */
576
- max?: string | null;
577
- /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */
578
- softMax?: string | null;
579
- /** Start of the current metering window; NULL means no time window */
580
- windowStart?: string | null;
581
- /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */
582
- windowDuration?: string | null;
583
- }
584
- /** Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) */
585
- export interface OrgLimitAggregate {
586
- id: string;
587
- /** Name identifier of the aggregate limit being tracked */
588
- name?: string | null;
589
- /** Entity (org) whose aggregate usage is being tracked */
590
- entityId?: string | null;
591
- /** Current aggregate usage count for this entity and limit */
592
- num?: string | null;
593
- /** Maximum allowed aggregate usage; negative means unlimited */
594
- max?: string | null;
595
- /** Soft limit threshold for warnings; NULL means no soft limit */
596
- softMax?: string | null;
597
- /** Start of the current metering window; NULL means no time window */
598
- windowStart?: string | null;
599
- /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */
600
- windowDuration?: string | null;
601
- }
602
664
  /** Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) */
603
665
  export interface OrgMemberProfile {
604
666
  id: string;
@@ -621,8 +683,22 @@ export interface OrgMemberProfile {
621
683
  /** Profile picture visible to other entity members */
622
684
  profilePicture?: ConstructiveInternalTypeImage | null;
623
685
  }
686
+ /** Defines available levels that users can achieve by completing requirements */
687
+ export interface AppLevel {
688
+ id: string;
689
+ /** Unique name of the level */
690
+ name?: string | null;
691
+ /** Human-readable description of what this level represents */
692
+ description?: string | null;
693
+ /** Badge or icon image associated with this level */
694
+ image?: ConstructiveInternalTypeImage | null;
695
+ /** Optional owner (actor) who created or manages this level */
696
+ ownerId?: string | null;
697
+ createdAt?: string | null;
698
+ updatedAt?: string | null;
699
+ }
624
700
  /** Tracks per-actor usage counts against configurable maximum limits */
625
- export interface OrgLimit {
701
+ export interface AppLimit {
626
702
  id: string;
627
703
  /** Name identifier of the limit being tracked */
628
704
  name?: string | null;
@@ -638,21 +714,12 @@ export interface OrgLimit {
638
714
  windowStart?: string | null;
639
715
  /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */
640
716
  windowDuration?: string | null;
641
- entityId?: string | null;
642
- }
643
- /** Defines available levels that users can achieve by completing requirements */
644
- export interface AppLevel {
645
- id: string;
646
- /** Unique name of the level */
647
- name?: string | null;
648
- /** Human-readable description of what this level represents */
649
- description?: string | null;
650
- /** Badge or icon image associated with this level */
651
- image?: ConstructiveInternalTypeImage | null;
652
- /** Optional owner (actor) who created or manages this level */
653
- ownerId?: string | null;
654
- createdAt?: string | null;
655
- updatedAt?: string | null;
717
+ /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */
718
+ planMax?: string | null;
719
+ /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */
720
+ purchasedCredits?: string | null;
721
+ /** Temporary credits for the current billing window. Resets to 0 on window expiry. */
722
+ periodCredits?: string | null;
656
723
  }
657
724
  /** Invitation records sent to prospective members via email, with token-based redemption and expiration */
658
725
  export interface AppInvite {
@@ -706,6 +773,57 @@ export interface OrgMembershipSetting {
706
773
  /** Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) */
707
774
  limitAllocationMode?: string | null;
708
775
  }
776
+ /** Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) */
777
+ export interface OrgLimitAggregate {
778
+ id: string;
779
+ /** Name identifier of the aggregate limit being tracked */
780
+ name?: string | null;
781
+ /** Entity (org) whose aggregate usage is being tracked */
782
+ entityId?: string | null;
783
+ /** Current aggregate usage count for this entity and limit */
784
+ num?: string | null;
785
+ /** Maximum allowed aggregate usage; negative means unlimited */
786
+ max?: string | null;
787
+ /** Soft limit threshold for warnings; NULL means no soft limit */
788
+ softMax?: string | null;
789
+ /** Start of the current metering window; NULL means no time window */
790
+ windowStart?: string | null;
791
+ /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */
792
+ windowDuration?: string | null;
793
+ /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */
794
+ planMax?: string | null;
795
+ /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */
796
+ purchasedCredits?: string | null;
797
+ /** Temporary credits for the current billing window. Resets to 0 on window expiry. */
798
+ periodCredits?: string | null;
799
+ /** Capacity reserved by child entities in budgeted allocation mode. Available = max - num - reserved. */
800
+ reserved?: string | null;
801
+ }
802
+ /** Tracks per-actor usage counts against configurable maximum limits */
803
+ export interface OrgLimit {
804
+ id: string;
805
+ /** Name identifier of the limit being tracked */
806
+ name?: string | null;
807
+ /** User whose usage is being tracked against this limit */
808
+ actorId?: string | null;
809
+ /** Current usage count for this actor and limit */
810
+ num?: string | null;
811
+ /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */
812
+ max?: string | null;
813
+ /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */
814
+ softMax?: string | null;
815
+ /** Start of the current metering window; NULL means no time window */
816
+ windowStart?: string | null;
817
+ /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */
818
+ windowDuration?: string | null;
819
+ /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */
820
+ planMax?: string | null;
821
+ /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */
822
+ purchasedCredits?: string | null;
823
+ /** Temporary credits for the current billing window. Resets to 0 on window expiry. */
824
+ periodCredits?: string | null;
825
+ entityId?: string | null;
826
+ }
709
827
  /** Invitation records sent to prospective members via email, with token-based redemption and expiration */
710
828
  export interface OrgInvite {
711
829
  id: string;
@@ -818,10 +936,24 @@ export interface OrgPermissionRelations {
818
936
  }
819
937
  export interface AppLevelRequirementRelations {
820
938
  }
939
+ export interface AppLimitCreditRedemptionRelations {
940
+ creditCode?: AppLimitCreditCode | null;
941
+ }
942
+ export interface AppLimitCreditCodeItemRelations {
943
+ creditCode?: AppLimitCreditCode | null;
944
+ defaultLimit?: AppLimitDefault | null;
945
+ }
946
+ export interface AppLimitCreditRelations {
947
+ defaultLimit?: AppLimitDefault | null;
948
+ }
821
949
  export interface OrgMemberRelations {
822
950
  }
823
951
  export interface AppPermissionDefaultRelations {
824
952
  }
953
+ export interface AppLimitCreditCodeRelations {
954
+ appLimitCreditCodeItemsByCreditCodeId?: ConnectionResult<AppLimitCreditCodeItem>;
955
+ appLimitCreditRedemptionsByCreditCodeId?: ConnectionResult<AppLimitCreditRedemption>;
956
+ }
825
957
  export interface OrgPermissionDefaultRelations {
826
958
  }
827
959
  export interface AppAdminGrantRelations {
@@ -832,6 +964,14 @@ export interface AppAchievementRelations {
832
964
  }
833
965
  export interface AppStepRelations {
834
966
  }
967
+ export interface AppLimitCapsDefaultRelations {
968
+ }
969
+ export interface OrgLimitCapsDefaultRelations {
970
+ }
971
+ export interface AppLimitCapRelations {
972
+ }
973
+ export interface OrgLimitCapRelations {
974
+ }
835
975
  export interface OrgAdminGrantRelations {
836
976
  }
837
977
  export interface OrgOwnerGrantRelations {
@@ -839,8 +979,14 @@ export interface OrgOwnerGrantRelations {
839
979
  export interface MembershipTypeRelations {
840
980
  }
841
981
  export interface AppLimitDefaultRelations {
982
+ appLimitCreditsByDefaultLimitId?: ConnectionResult<AppLimitCredit>;
983
+ appLimitCreditCodeItemsByDefaultLimitId?: ConnectionResult<AppLimitCreditCodeItem>;
842
984
  }
843
985
  export interface OrgLimitDefaultRelations {
986
+ orgLimitCreditsByDefaultLimitId?: ConnectionResult<OrgLimitCredit>;
987
+ }
988
+ export interface OrgLimitCreditRelations {
989
+ defaultLimit?: OrgLimitDefault | null;
844
990
  }
845
991
  export interface OrgChartEdgeGrantRelations {
846
992
  }
@@ -862,21 +1008,21 @@ export interface OrgGrantRelations {
862
1008
  }
863
1009
  export interface OrgChartEdgeRelations {
864
1010
  }
865
- export interface AppLimitRelations {
866
- }
867
- export interface OrgLimitAggregateRelations {
868
- }
869
1011
  export interface OrgMemberProfileRelations {
870
1012
  membership?: OrgMembership | null;
871
1013
  }
872
- export interface OrgLimitRelations {
873
- }
874
1014
  export interface AppLevelRelations {
875
1015
  }
1016
+ export interface AppLimitRelations {
1017
+ }
876
1018
  export interface AppInviteRelations {
877
1019
  }
878
1020
  export interface OrgMembershipSettingRelations {
879
1021
  }
1022
+ export interface OrgLimitAggregateRelations {
1023
+ }
1024
+ export interface OrgLimitRelations {
1025
+ }
880
1026
  export interface OrgInviteRelations {
881
1027
  }
882
1028
  export interface AppMembershipRelations {
@@ -889,18 +1035,27 @@ export type OrgGetSubordinatesRecordWithRelations = OrgGetSubordinatesRecord & O
889
1035
  export type AppPermissionWithRelations = AppPermission & AppPermissionRelations;
890
1036
  export type OrgPermissionWithRelations = OrgPermission & OrgPermissionRelations;
891
1037
  export type AppLevelRequirementWithRelations = AppLevelRequirement & AppLevelRequirementRelations;
1038
+ export type AppLimitCreditRedemptionWithRelations = AppLimitCreditRedemption & AppLimitCreditRedemptionRelations;
1039
+ export type AppLimitCreditCodeItemWithRelations = AppLimitCreditCodeItem & AppLimitCreditCodeItemRelations;
1040
+ export type AppLimitCreditWithRelations = AppLimitCredit & AppLimitCreditRelations;
892
1041
  export type OrgMemberWithRelations = OrgMember & OrgMemberRelations;
893
1042
  export type AppPermissionDefaultWithRelations = AppPermissionDefault & AppPermissionDefaultRelations;
1043
+ export type AppLimitCreditCodeWithRelations = AppLimitCreditCode & AppLimitCreditCodeRelations;
894
1044
  export type OrgPermissionDefaultWithRelations = OrgPermissionDefault & OrgPermissionDefaultRelations;
895
1045
  export type AppAdminGrantWithRelations = AppAdminGrant & AppAdminGrantRelations;
896
1046
  export type AppOwnerGrantWithRelations = AppOwnerGrant & AppOwnerGrantRelations;
897
1047
  export type AppAchievementWithRelations = AppAchievement & AppAchievementRelations;
898
1048
  export type AppStepWithRelations = AppStep & AppStepRelations;
1049
+ export type AppLimitCapsDefaultWithRelations = AppLimitCapsDefault & AppLimitCapsDefaultRelations;
1050
+ export type OrgLimitCapsDefaultWithRelations = OrgLimitCapsDefault & OrgLimitCapsDefaultRelations;
1051
+ export type AppLimitCapWithRelations = AppLimitCap & AppLimitCapRelations;
1052
+ export type OrgLimitCapWithRelations = OrgLimitCap & OrgLimitCapRelations;
899
1053
  export type OrgAdminGrantWithRelations = OrgAdminGrant & OrgAdminGrantRelations;
900
1054
  export type OrgOwnerGrantWithRelations = OrgOwnerGrant & OrgOwnerGrantRelations;
901
1055
  export type MembershipTypeWithRelations = MembershipType & MembershipTypeRelations;
902
1056
  export type AppLimitDefaultWithRelations = AppLimitDefault & AppLimitDefaultRelations;
903
1057
  export type OrgLimitDefaultWithRelations = OrgLimitDefault & OrgLimitDefaultRelations;
1058
+ export type OrgLimitCreditWithRelations = OrgLimitCredit & OrgLimitCreditRelations;
904
1059
  export type OrgChartEdgeGrantWithRelations = OrgChartEdgeGrant & OrgChartEdgeGrantRelations;
905
1060
  export type AppClaimedInviteWithRelations = AppClaimedInvite & AppClaimedInviteRelations;
906
1061
  export type AppGrantWithRelations = AppGrant & AppGrantRelations;
@@ -911,13 +1066,13 @@ export type AppLimitEventWithRelations = AppLimitEvent & AppLimitEventRelations;
911
1066
  export type OrgLimitEventWithRelations = OrgLimitEvent & OrgLimitEventRelations;
912
1067
  export type OrgGrantWithRelations = OrgGrant & OrgGrantRelations;
913
1068
  export type OrgChartEdgeWithRelations = OrgChartEdge & OrgChartEdgeRelations;
914
- export type AppLimitWithRelations = AppLimit & AppLimitRelations;
915
- export type OrgLimitAggregateWithRelations = OrgLimitAggregate & OrgLimitAggregateRelations;
916
1069
  export type OrgMemberProfileWithRelations = OrgMemberProfile & OrgMemberProfileRelations;
917
- export type OrgLimitWithRelations = OrgLimit & OrgLimitRelations;
918
1070
  export type AppLevelWithRelations = AppLevel & AppLevelRelations;
1071
+ export type AppLimitWithRelations = AppLimit & AppLimitRelations;
919
1072
  export type AppInviteWithRelations = AppInvite & AppInviteRelations;
920
1073
  export type OrgMembershipSettingWithRelations = OrgMembershipSetting & OrgMembershipSettingRelations;
1074
+ export type OrgLimitAggregateWithRelations = OrgLimitAggregate & OrgLimitAggregateRelations;
1075
+ export type OrgLimitWithRelations = OrgLimit & OrgLimitRelations;
921
1076
  export type OrgInviteWithRelations = OrgInvite & OrgInviteRelations;
922
1077
  export type AppMembershipWithRelations = AppMembership & AppMembershipRelations;
923
1078
  export type OrgMembershipWithRelations = OrgMembership & OrgMembershipRelations;
@@ -953,6 +1108,38 @@ export type AppLevelRequirementSelect = {
953
1108
  createdAt?: boolean;
954
1109
  updatedAt?: boolean;
955
1110
  };
1111
+ export type AppLimitCreditRedemptionSelect = {
1112
+ id?: boolean;
1113
+ creditCodeId?: boolean;
1114
+ entityId?: boolean;
1115
+ creditCode?: {
1116
+ select: AppLimitCreditCodeSelect;
1117
+ };
1118
+ };
1119
+ export type AppLimitCreditCodeItemSelect = {
1120
+ id?: boolean;
1121
+ creditCodeId?: boolean;
1122
+ defaultLimitId?: boolean;
1123
+ amount?: boolean;
1124
+ creditType?: boolean;
1125
+ creditCode?: {
1126
+ select: AppLimitCreditCodeSelect;
1127
+ };
1128
+ defaultLimit?: {
1129
+ select: AppLimitDefaultSelect;
1130
+ };
1131
+ };
1132
+ export type AppLimitCreditSelect = {
1133
+ id?: boolean;
1134
+ defaultLimitId?: boolean;
1135
+ actorId?: boolean;
1136
+ amount?: boolean;
1137
+ creditType?: boolean;
1138
+ reason?: boolean;
1139
+ defaultLimit?: {
1140
+ select: AppLimitDefaultSelect;
1141
+ };
1142
+ };
956
1143
  export type OrgMemberSelect = {
957
1144
  id?: boolean;
958
1145
  isAdmin?: boolean;
@@ -963,6 +1150,25 @@ export type AppPermissionDefaultSelect = {
963
1150
  id?: boolean;
964
1151
  permissions?: boolean;
965
1152
  };
1153
+ export type AppLimitCreditCodeSelect = {
1154
+ id?: boolean;
1155
+ code?: boolean;
1156
+ maxRedemptions?: boolean;
1157
+ currentRedemptions?: boolean;
1158
+ expiresAt?: boolean;
1159
+ appLimitCreditCodeItemsByCreditCodeId?: {
1160
+ select: AppLimitCreditCodeItemSelect;
1161
+ first?: number;
1162
+ filter?: AppLimitCreditCodeItemFilter;
1163
+ orderBy?: AppLimitCreditCodeItemOrderBy[];
1164
+ };
1165
+ appLimitCreditRedemptionsByCreditCodeId?: {
1166
+ select: AppLimitCreditRedemptionSelect;
1167
+ first?: number;
1168
+ filter?: AppLimitCreditRedemptionFilter;
1169
+ orderBy?: AppLimitCreditRedemptionOrderBy[];
1170
+ };
1171
+ };
966
1172
  export type OrgPermissionDefaultSelect = {
967
1173
  id?: boolean;
968
1174
  permissions?: boolean;
@@ -1000,6 +1206,28 @@ export type AppStepSelect = {
1000
1206
  createdAt?: boolean;
1001
1207
  updatedAt?: boolean;
1002
1208
  };
1209
+ export type AppLimitCapsDefaultSelect = {
1210
+ id?: boolean;
1211
+ name?: boolean;
1212
+ max?: boolean;
1213
+ };
1214
+ export type OrgLimitCapsDefaultSelect = {
1215
+ id?: boolean;
1216
+ name?: boolean;
1217
+ max?: boolean;
1218
+ };
1219
+ export type AppLimitCapSelect = {
1220
+ id?: boolean;
1221
+ name?: boolean;
1222
+ entityId?: boolean;
1223
+ max?: boolean;
1224
+ };
1225
+ export type OrgLimitCapSelect = {
1226
+ id?: boolean;
1227
+ name?: boolean;
1228
+ entityId?: boolean;
1229
+ max?: boolean;
1230
+ };
1003
1231
  export type OrgAdminGrantSelect = {
1004
1232
  id?: boolean;
1005
1233
  isGrant?: boolean;
@@ -1031,12 +1259,42 @@ export type AppLimitDefaultSelect = {
1031
1259
  name?: boolean;
1032
1260
  max?: boolean;
1033
1261
  softMax?: boolean;
1262
+ appLimitCreditsByDefaultLimitId?: {
1263
+ select: AppLimitCreditSelect;
1264
+ first?: number;
1265
+ filter?: AppLimitCreditFilter;
1266
+ orderBy?: AppLimitCreditOrderBy[];
1267
+ };
1268
+ appLimitCreditCodeItemsByDefaultLimitId?: {
1269
+ select: AppLimitCreditCodeItemSelect;
1270
+ first?: number;
1271
+ filter?: AppLimitCreditCodeItemFilter;
1272
+ orderBy?: AppLimitCreditCodeItemOrderBy[];
1273
+ };
1034
1274
  };
1035
1275
  export type OrgLimitDefaultSelect = {
1036
1276
  id?: boolean;
1037
1277
  name?: boolean;
1038
1278
  max?: boolean;
1039
1279
  softMax?: boolean;
1280
+ orgLimitCreditsByDefaultLimitId?: {
1281
+ select: OrgLimitCreditSelect;
1282
+ first?: number;
1283
+ filter?: OrgLimitCreditFilter;
1284
+ orderBy?: OrgLimitCreditOrderBy[];
1285
+ };
1286
+ };
1287
+ export type OrgLimitCreditSelect = {
1288
+ id?: boolean;
1289
+ defaultLimitId?: boolean;
1290
+ actorId?: boolean;
1291
+ entityId?: boolean;
1292
+ amount?: boolean;
1293
+ creditType?: boolean;
1294
+ reason?: boolean;
1295
+ defaultLimit?: {
1296
+ select: OrgLimitDefaultSelect;
1297
+ };
1040
1298
  };
1041
1299
  export type OrgChartEdgeGrantSelect = {
1042
1300
  id?: boolean;
@@ -1135,26 +1393,6 @@ export type OrgChartEdgeSelect = {
1135
1393
  positionTitle?: boolean;
1136
1394
  positionLevel?: boolean;
1137
1395
  };
1138
- export type AppLimitSelect = {
1139
- id?: boolean;
1140
- name?: boolean;
1141
- actorId?: boolean;
1142
- num?: boolean;
1143
- max?: boolean;
1144
- softMax?: boolean;
1145
- windowStart?: boolean;
1146
- windowDuration?: boolean;
1147
- };
1148
- export type OrgLimitAggregateSelect = {
1149
- id?: boolean;
1150
- name?: boolean;
1151
- entityId?: boolean;
1152
- num?: boolean;
1153
- max?: boolean;
1154
- softMax?: boolean;
1155
- windowStart?: boolean;
1156
- windowDuration?: boolean;
1157
- };
1158
1396
  export type OrgMemberProfileSelect = {
1159
1397
  id?: boolean;
1160
1398
  createdAt?: boolean;
@@ -1171,17 +1409,6 @@ export type OrgMemberProfileSelect = {
1171
1409
  select: OrgMembershipSelect;
1172
1410
  };
1173
1411
  };
1174
- export type OrgLimitSelect = {
1175
- id?: boolean;
1176
- name?: boolean;
1177
- actorId?: boolean;
1178
- num?: boolean;
1179
- max?: boolean;
1180
- softMax?: boolean;
1181
- windowStart?: boolean;
1182
- windowDuration?: boolean;
1183
- entityId?: boolean;
1184
- };
1185
1412
  export type AppLevelSelect = {
1186
1413
  id?: boolean;
1187
1414
  name?: boolean;
@@ -1191,6 +1418,19 @@ export type AppLevelSelect = {
1191
1418
  createdAt?: boolean;
1192
1419
  updatedAt?: boolean;
1193
1420
  };
1421
+ export type AppLimitSelect = {
1422
+ id?: boolean;
1423
+ name?: boolean;
1424
+ actorId?: boolean;
1425
+ num?: boolean;
1426
+ max?: boolean;
1427
+ softMax?: boolean;
1428
+ windowStart?: boolean;
1429
+ windowDuration?: boolean;
1430
+ planMax?: boolean;
1431
+ purchasedCredits?: boolean;
1432
+ periodCredits?: boolean;
1433
+ };
1194
1434
  export type AppInviteSelect = {
1195
1435
  id?: boolean;
1196
1436
  email?: boolean;
@@ -1222,9 +1462,37 @@ export type OrgMembershipSettingSelect = {
1222
1462
  populateMemberEmail?: boolean;
1223
1463
  limitAllocationMode?: boolean;
1224
1464
  };
1225
- export type OrgInviteSelect = {
1465
+ export type OrgLimitAggregateSelect = {
1226
1466
  id?: boolean;
1227
- email?: boolean;
1467
+ name?: boolean;
1468
+ entityId?: boolean;
1469
+ num?: boolean;
1470
+ max?: boolean;
1471
+ softMax?: boolean;
1472
+ windowStart?: boolean;
1473
+ windowDuration?: boolean;
1474
+ planMax?: boolean;
1475
+ purchasedCredits?: boolean;
1476
+ periodCredits?: boolean;
1477
+ reserved?: boolean;
1478
+ };
1479
+ export type OrgLimitSelect = {
1480
+ id?: boolean;
1481
+ name?: boolean;
1482
+ actorId?: boolean;
1483
+ num?: boolean;
1484
+ max?: boolean;
1485
+ softMax?: boolean;
1486
+ windowStart?: boolean;
1487
+ windowDuration?: boolean;
1488
+ planMax?: boolean;
1489
+ purchasedCredits?: boolean;
1490
+ periodCredits?: boolean;
1491
+ entityId?: boolean;
1492
+ };
1493
+ export type OrgInviteSelect = {
1494
+ id?: boolean;
1495
+ email?: boolean;
1228
1496
  senderId?: boolean;
1229
1497
  receiverId?: boolean;
1230
1498
  inviteToken?: boolean;
@@ -1354,6 +1622,66 @@ export interface AppLevelRequirementFilter {
1354
1622
  /** Negates the expression. */
1355
1623
  not?: AppLevelRequirementFilter;
1356
1624
  }
1625
+ export interface AppLimitCreditRedemptionFilter {
1626
+ /** Filter by the object’s `id` field. */
1627
+ id?: UUIDFilter;
1628
+ /** Filter by the object’s `creditCodeId` field. */
1629
+ creditCodeId?: UUIDFilter;
1630
+ /** Filter by the object’s `entityId` field. */
1631
+ entityId?: UUIDFilter;
1632
+ /** Checks for all expressions in this list. */
1633
+ and?: AppLimitCreditRedemptionFilter[];
1634
+ /** Checks for any expressions in this list. */
1635
+ or?: AppLimitCreditRedemptionFilter[];
1636
+ /** Negates the expression. */
1637
+ not?: AppLimitCreditRedemptionFilter;
1638
+ /** Filter by the object’s `creditCode` relation. */
1639
+ creditCode?: AppLimitCreditCodeFilter;
1640
+ }
1641
+ export interface AppLimitCreditCodeItemFilter {
1642
+ /** Filter by the object’s `id` field. */
1643
+ id?: UUIDFilter;
1644
+ /** Filter by the object’s `creditCodeId` field. */
1645
+ creditCodeId?: UUIDFilter;
1646
+ /** Filter by the object’s `defaultLimitId` field. */
1647
+ defaultLimitId?: UUIDFilter;
1648
+ /** Filter by the object’s `amount` field. */
1649
+ amount?: BigIntFilter;
1650
+ /** Filter by the object’s `creditType` field. */
1651
+ creditType?: StringFilter;
1652
+ /** Checks for all expressions in this list. */
1653
+ and?: AppLimitCreditCodeItemFilter[];
1654
+ /** Checks for any expressions in this list. */
1655
+ or?: AppLimitCreditCodeItemFilter[];
1656
+ /** Negates the expression. */
1657
+ not?: AppLimitCreditCodeItemFilter;
1658
+ /** Filter by the object’s `creditCode` relation. */
1659
+ creditCode?: AppLimitCreditCodeFilter;
1660
+ /** Filter by the object’s `defaultLimit` relation. */
1661
+ defaultLimit?: AppLimitDefaultFilter;
1662
+ }
1663
+ export interface AppLimitCreditFilter {
1664
+ /** Filter by the object’s `id` field. */
1665
+ id?: UUIDFilter;
1666
+ /** Filter by the object’s `defaultLimitId` field. */
1667
+ defaultLimitId?: UUIDFilter;
1668
+ /** Filter by the object’s `actorId` field. */
1669
+ actorId?: UUIDFilter;
1670
+ /** Filter by the object’s `amount` field. */
1671
+ amount?: BigIntFilter;
1672
+ /** Filter by the object’s `creditType` field. */
1673
+ creditType?: StringFilter;
1674
+ /** Filter by the object’s `reason` field. */
1675
+ reason?: StringFilter;
1676
+ /** Checks for all expressions in this list. */
1677
+ and?: AppLimitCreditFilter[];
1678
+ /** Checks for any expressions in this list. */
1679
+ or?: AppLimitCreditFilter[];
1680
+ /** Negates the expression. */
1681
+ not?: AppLimitCreditFilter;
1682
+ /** Filter by the object’s `defaultLimit` relation. */
1683
+ defaultLimit?: AppLimitDefaultFilter;
1684
+ }
1357
1685
  export interface OrgMemberFilter {
1358
1686
  /** Filter by the object’s `id` field. */
1359
1687
  id?: UUIDFilter;
@@ -1382,6 +1710,32 @@ export interface AppPermissionDefaultFilter {
1382
1710
  /** Negates the expression. */
1383
1711
  not?: AppPermissionDefaultFilter;
1384
1712
  }
1713
+ export interface AppLimitCreditCodeFilter {
1714
+ /** Filter by the object’s `id` field. */
1715
+ id?: UUIDFilter;
1716
+ /** Filter by the object’s `code` field. */
1717
+ code?: StringFilter;
1718
+ /** Filter by the object’s `maxRedemptions` field. */
1719
+ maxRedemptions?: IntFilter;
1720
+ /** Filter by the object’s `currentRedemptions` field. */
1721
+ currentRedemptions?: IntFilter;
1722
+ /** Filter by the object’s `expiresAt` field. */
1723
+ expiresAt?: DatetimeFilter;
1724
+ /** Checks for all expressions in this list. */
1725
+ and?: AppLimitCreditCodeFilter[];
1726
+ /** Checks for any expressions in this list. */
1727
+ or?: AppLimitCreditCodeFilter[];
1728
+ /** Negates the expression. */
1729
+ not?: AppLimitCreditCodeFilter;
1730
+ /** Filter by the object’s `appLimitCreditCodeItemsByCreditCodeId` relation. */
1731
+ appLimitCreditCodeItemsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter;
1732
+ /** `appLimitCreditCodeItemsByCreditCodeId` exist. */
1733
+ appLimitCreditCodeItemsByCreditCodeIdExist?: boolean;
1734
+ /** Filter by the object’s `appLimitCreditRedemptionsByCreditCodeId` relation. */
1735
+ appLimitCreditRedemptionsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter;
1736
+ /** `appLimitCreditRedemptionsByCreditCodeId` exist. */
1737
+ appLimitCreditRedemptionsByCreditCodeIdExist?: boolean;
1738
+ }
1385
1739
  export interface OrgPermissionDefaultFilter {
1386
1740
  /** Filter by the object’s `id` field. */
1387
1741
  id?: UUIDFilter;
@@ -1476,6 +1830,66 @@ export interface AppStepFilter {
1476
1830
  /** Negates the expression. */
1477
1831
  not?: AppStepFilter;
1478
1832
  }
1833
+ export interface AppLimitCapsDefaultFilter {
1834
+ /** Filter by the object’s `id` field. */
1835
+ id?: UUIDFilter;
1836
+ /** Filter by the object’s `name` field. */
1837
+ name?: StringFilter;
1838
+ /** Filter by the object’s `max` field. */
1839
+ max?: BigIntFilter;
1840
+ /** Checks for all expressions in this list. */
1841
+ and?: AppLimitCapsDefaultFilter[];
1842
+ /** Checks for any expressions in this list. */
1843
+ or?: AppLimitCapsDefaultFilter[];
1844
+ /** Negates the expression. */
1845
+ not?: AppLimitCapsDefaultFilter;
1846
+ }
1847
+ export interface OrgLimitCapsDefaultFilter {
1848
+ /** Filter by the object’s `id` field. */
1849
+ id?: UUIDFilter;
1850
+ /** Filter by the object’s `name` field. */
1851
+ name?: StringFilter;
1852
+ /** Filter by the object’s `max` field. */
1853
+ max?: BigIntFilter;
1854
+ /** Checks for all expressions in this list. */
1855
+ and?: OrgLimitCapsDefaultFilter[];
1856
+ /** Checks for any expressions in this list. */
1857
+ or?: OrgLimitCapsDefaultFilter[];
1858
+ /** Negates the expression. */
1859
+ not?: OrgLimitCapsDefaultFilter;
1860
+ }
1861
+ export interface AppLimitCapFilter {
1862
+ /** Filter by the object’s `id` field. */
1863
+ id?: UUIDFilter;
1864
+ /** Filter by the object’s `name` field. */
1865
+ name?: StringFilter;
1866
+ /** Filter by the object’s `entityId` field. */
1867
+ entityId?: UUIDFilter;
1868
+ /** Filter by the object’s `max` field. */
1869
+ max?: BigIntFilter;
1870
+ /** Checks for all expressions in this list. */
1871
+ and?: AppLimitCapFilter[];
1872
+ /** Checks for any expressions in this list. */
1873
+ or?: AppLimitCapFilter[];
1874
+ /** Negates the expression. */
1875
+ not?: AppLimitCapFilter;
1876
+ }
1877
+ export interface OrgLimitCapFilter {
1878
+ /** Filter by the object’s `id` field. */
1879
+ id?: UUIDFilter;
1880
+ /** Filter by the object’s `name` field. */
1881
+ name?: StringFilter;
1882
+ /** Filter by the object’s `entityId` field. */
1883
+ entityId?: UUIDFilter;
1884
+ /** Filter by the object’s `max` field. */
1885
+ max?: BigIntFilter;
1886
+ /** Checks for all expressions in this list. */
1887
+ and?: OrgLimitCapFilter[];
1888
+ /** Checks for any expressions in this list. */
1889
+ or?: OrgLimitCapFilter[];
1890
+ /** Negates the expression. */
1891
+ not?: OrgLimitCapFilter;
1892
+ }
1479
1893
  export interface OrgAdminGrantFilter {
1480
1894
  /** Filter by the object’s `id` field. */
1481
1895
  id?: UUIDFilter;
@@ -1555,6 +1969,14 @@ export interface AppLimitDefaultFilter {
1555
1969
  or?: AppLimitDefaultFilter[];
1556
1970
  /** Negates the expression. */
1557
1971
  not?: AppLimitDefaultFilter;
1972
+ /** Filter by the object’s `appLimitCreditsByDefaultLimitId` relation. */
1973
+ appLimitCreditsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditFilter;
1974
+ /** `appLimitCreditsByDefaultLimitId` exist. */
1975
+ appLimitCreditsByDefaultLimitIdExist?: boolean;
1976
+ /** Filter by the object’s `appLimitCreditCodeItemsByDefaultLimitId` relation. */
1977
+ appLimitCreditCodeItemsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditCodeItemFilter;
1978
+ /** `appLimitCreditCodeItemsByDefaultLimitId` exist. */
1979
+ appLimitCreditCodeItemsByDefaultLimitIdExist?: boolean;
1558
1980
  }
1559
1981
  export interface OrgLimitDefaultFilter {
1560
1982
  /** Filter by the object’s `id` field. */
@@ -1571,6 +1993,34 @@ export interface OrgLimitDefaultFilter {
1571
1993
  or?: OrgLimitDefaultFilter[];
1572
1994
  /** Negates the expression. */
1573
1995
  not?: OrgLimitDefaultFilter;
1996
+ /** Filter by the object’s `orgLimitCreditsByDefaultLimitId` relation. */
1997
+ orgLimitCreditsByDefaultLimitId?: OrgLimitDefaultToManyOrgLimitCreditFilter;
1998
+ /** `orgLimitCreditsByDefaultLimitId` exist. */
1999
+ orgLimitCreditsByDefaultLimitIdExist?: boolean;
2000
+ }
2001
+ export interface OrgLimitCreditFilter {
2002
+ /** Filter by the object’s `id` field. */
2003
+ id?: UUIDFilter;
2004
+ /** Filter by the object’s `defaultLimitId` field. */
2005
+ defaultLimitId?: UUIDFilter;
2006
+ /** Filter by the object’s `actorId` field. */
2007
+ actorId?: UUIDFilter;
2008
+ /** Filter by the object’s `entityId` field. */
2009
+ entityId?: UUIDFilter;
2010
+ /** Filter by the object’s `amount` field. */
2011
+ amount?: BigIntFilter;
2012
+ /** Filter by the object’s `creditType` field. */
2013
+ creditType?: StringFilter;
2014
+ /** Filter by the object’s `reason` field. */
2015
+ reason?: StringFilter;
2016
+ /** Checks for all expressions in this list. */
2017
+ and?: OrgLimitCreditFilter[];
2018
+ /** Checks for any expressions in this list. */
2019
+ or?: OrgLimitCreditFilter[];
2020
+ /** Negates the expression. */
2021
+ not?: OrgLimitCreditFilter;
2022
+ /** Filter by the object’s `defaultLimit` relation. */
2023
+ defaultLimit?: OrgLimitDefaultFilter;
1574
2024
  }
1575
2025
  export interface OrgChartEdgeGrantFilter {
1576
2026
  /** Filter by the object’s `id` field. */
@@ -1802,54 +2252,6 @@ export interface OrgChartEdgeFilter {
1802
2252
  /** Negates the expression. */
1803
2253
  not?: OrgChartEdgeFilter;
1804
2254
  }
1805
- export interface AppLimitFilter {
1806
- /** Filter by the object’s `id` field. */
1807
- id?: UUIDFilter;
1808
- /** Filter by the object’s `name` field. */
1809
- name?: StringFilter;
1810
- /** Filter by the object’s `actorId` field. */
1811
- actorId?: UUIDFilter;
1812
- /** Filter by the object’s `num` field. */
1813
- num?: BigIntFilter;
1814
- /** Filter by the object’s `max` field. */
1815
- max?: BigIntFilter;
1816
- /** Filter by the object’s `softMax` field. */
1817
- softMax?: BigIntFilter;
1818
- /** Filter by the object’s `windowStart` field. */
1819
- windowStart?: DatetimeFilter;
1820
- /** Filter by the object’s `windowDuration` field. */
1821
- windowDuration?: IntervalFilter;
1822
- /** Checks for all expressions in this list. */
1823
- and?: AppLimitFilter[];
1824
- /** Checks for any expressions in this list. */
1825
- or?: AppLimitFilter[];
1826
- /** Negates the expression. */
1827
- not?: AppLimitFilter;
1828
- }
1829
- export interface OrgLimitAggregateFilter {
1830
- /** Filter by the object’s `id` field. */
1831
- id?: UUIDFilter;
1832
- /** Filter by the object’s `name` field. */
1833
- name?: StringFilter;
1834
- /** Filter by the object’s `entityId` field. */
1835
- entityId?: UUIDFilter;
1836
- /** Filter by the object’s `num` field. */
1837
- num?: BigIntFilter;
1838
- /** Filter by the object’s `max` field. */
1839
- max?: BigIntFilter;
1840
- /** Filter by the object’s `softMax` field. */
1841
- softMax?: BigIntFilter;
1842
- /** Filter by the object’s `windowStart` field. */
1843
- windowStart?: DatetimeFilter;
1844
- /** Filter by the object’s `windowDuration` field. */
1845
- windowDuration?: IntervalFilter;
1846
- /** Checks for all expressions in this list. */
1847
- and?: OrgLimitAggregateFilter[];
1848
- /** Checks for any expressions in this list. */
1849
- or?: OrgLimitAggregateFilter[];
1850
- /** Negates the expression. */
1851
- not?: OrgLimitAggregateFilter;
1852
- }
1853
2255
  export interface OrgMemberProfileFilter {
1854
2256
  /** Filter by the object’s `id` field. */
1855
2257
  id?: UUIDFilter;
@@ -1882,32 +2284,6 @@ export interface OrgMemberProfileFilter {
1882
2284
  /** Filter by the object’s `membership` relation. */
1883
2285
  membership?: OrgMembershipFilter;
1884
2286
  }
1885
- export interface OrgLimitFilter {
1886
- /** Filter by the object’s `id` field. */
1887
- id?: UUIDFilter;
1888
- /** Filter by the object’s `name` field. */
1889
- name?: StringFilter;
1890
- /** Filter by the object’s `actorId` field. */
1891
- actorId?: UUIDFilter;
1892
- /** Filter by the object’s `num` field. */
1893
- num?: BigIntFilter;
1894
- /** Filter by the object’s `max` field. */
1895
- max?: BigIntFilter;
1896
- /** Filter by the object’s `softMax` field. */
1897
- softMax?: BigIntFilter;
1898
- /** Filter by the object’s `windowStart` field. */
1899
- windowStart?: DatetimeFilter;
1900
- /** Filter by the object’s `windowDuration` field. */
1901
- windowDuration?: IntervalFilter;
1902
- /** Filter by the object’s `entityId` field. */
1903
- entityId?: UUIDFilter;
1904
- /** Checks for all expressions in this list. */
1905
- and?: OrgLimitFilter[];
1906
- /** Checks for any expressions in this list. */
1907
- or?: OrgLimitFilter[];
1908
- /** Negates the expression. */
1909
- not?: OrgLimitFilter;
1910
- }
1911
2287
  export interface AppLevelFilter {
1912
2288
  /** Filter by the object’s `id` field. */
1913
2289
  id?: UUIDFilter;
@@ -1930,6 +2306,36 @@ export interface AppLevelFilter {
1930
2306
  /** Negates the expression. */
1931
2307
  not?: AppLevelFilter;
1932
2308
  }
2309
+ export interface AppLimitFilter {
2310
+ /** Filter by the object’s `id` field. */
2311
+ id?: UUIDFilter;
2312
+ /** Filter by the object’s `name` field. */
2313
+ name?: StringFilter;
2314
+ /** Filter by the object’s `actorId` field. */
2315
+ actorId?: UUIDFilter;
2316
+ /** Filter by the object’s `num` field. */
2317
+ num?: BigIntFilter;
2318
+ /** Filter by the object’s `max` field. */
2319
+ max?: BigIntFilter;
2320
+ /** Filter by the object’s `softMax` field. */
2321
+ softMax?: BigIntFilter;
2322
+ /** Filter by the object’s `windowStart` field. */
2323
+ windowStart?: DatetimeFilter;
2324
+ /** Filter by the object’s `windowDuration` field. */
2325
+ windowDuration?: IntervalFilter;
2326
+ /** Filter by the object’s `planMax` field. */
2327
+ planMax?: BigIntFilter;
2328
+ /** Filter by the object’s `purchasedCredits` field. */
2329
+ purchasedCredits?: BigIntFilter;
2330
+ /** Filter by the object’s `periodCredits` field. */
2331
+ periodCredits?: BigIntFilter;
2332
+ /** Checks for all expressions in this list. */
2333
+ and?: AppLimitFilter[];
2334
+ /** Checks for any expressions in this list. */
2335
+ or?: AppLimitFilter[];
2336
+ /** Negates the expression. */
2337
+ not?: AppLimitFilter;
2338
+ }
1933
2339
  export interface AppInviteFilter {
1934
2340
  /** Filter by the object’s `id` field. */
1935
2341
  id?: UUIDFilter;
@@ -1998,47 +2404,111 @@ export interface OrgMembershipSettingFilter {
1998
2404
  /** Negates the expression. */
1999
2405
  not?: OrgMembershipSettingFilter;
2000
2406
  }
2001
- export interface OrgInviteFilter {
2407
+ export interface OrgLimitAggregateFilter {
2002
2408
  /** Filter by the object’s `id` field. */
2003
2409
  id?: UUIDFilter;
2004
- /** Filter by the object’s `email` field. */
2005
- email?: ConstructiveInternalTypeEmailFilter;
2006
- /** Filter by the object’s `senderId` field. */
2007
- senderId?: UUIDFilter;
2008
- /** Filter by the object’s `receiverId` field. */
2009
- receiverId?: UUIDFilter;
2010
- /** Filter by the object’s `inviteToken` field. */
2011
- inviteToken?: StringFilter;
2012
- /** Filter by the object’s `inviteValid` field. */
2013
- inviteValid?: BooleanFilter;
2014
- /** Filter by the object’s `inviteLimit` field. */
2015
- inviteLimit?: IntFilter;
2016
- /** Filter by the object’s `inviteCount` field. */
2017
- inviteCount?: IntFilter;
2018
- /** Filter by the object’s `multiple` field. */
2019
- multiple?: BooleanFilter;
2020
- /** Filter by the object’s `profileId` field. */
2021
- profileId?: UUIDFilter;
2022
- /** Filter by the object’s `expiresAt` field. */
2023
- expiresAt?: DatetimeFilter;
2024
- /** Filter by the object’s `createdAt` field. */
2025
- createdAt?: DatetimeFilter;
2026
- /** Filter by the object’s `updatedAt` field. */
2027
- updatedAt?: DatetimeFilter;
2410
+ /** Filter by the object’s `name` field. */
2411
+ name?: StringFilter;
2028
2412
  /** Filter by the object’s `entityId` field. */
2029
2413
  entityId?: UUIDFilter;
2414
+ /** Filter by the object’s `num` field. */
2415
+ num?: BigIntFilter;
2416
+ /** Filter by the object’s `max` field. */
2417
+ max?: BigIntFilter;
2418
+ /** Filter by the object’s `softMax` field. */
2419
+ softMax?: BigIntFilter;
2420
+ /** Filter by the object’s `windowStart` field. */
2421
+ windowStart?: DatetimeFilter;
2422
+ /** Filter by the object’s `windowDuration` field. */
2423
+ windowDuration?: IntervalFilter;
2424
+ /** Filter by the object’s `planMax` field. */
2425
+ planMax?: BigIntFilter;
2426
+ /** Filter by the object’s `purchasedCredits` field. */
2427
+ purchasedCredits?: BigIntFilter;
2428
+ /** Filter by the object’s `periodCredits` field. */
2429
+ periodCredits?: BigIntFilter;
2430
+ /** Filter by the object’s `reserved` field. */
2431
+ reserved?: BigIntFilter;
2030
2432
  /** Checks for all expressions in this list. */
2031
- and?: OrgInviteFilter[];
2433
+ and?: OrgLimitAggregateFilter[];
2032
2434
  /** Checks for any expressions in this list. */
2033
- or?: OrgInviteFilter[];
2435
+ or?: OrgLimitAggregateFilter[];
2034
2436
  /** Negates the expression. */
2035
- not?: OrgInviteFilter;
2437
+ not?: OrgLimitAggregateFilter;
2036
2438
  }
2037
- export interface AppMembershipFilter {
2439
+ export interface OrgLimitFilter {
2038
2440
  /** Filter by the object’s `id` field. */
2039
2441
  id?: UUIDFilter;
2040
- /** Filter by the object’s `createdAt` field. */
2041
- createdAt?: DatetimeFilter;
2442
+ /** Filter by the object’s `name` field. */
2443
+ name?: StringFilter;
2444
+ /** Filter by the object’s `actorId` field. */
2445
+ actorId?: UUIDFilter;
2446
+ /** Filter by the object’s `num` field. */
2447
+ num?: BigIntFilter;
2448
+ /** Filter by the object’s `max` field. */
2449
+ max?: BigIntFilter;
2450
+ /** Filter by the object’s `softMax` field. */
2451
+ softMax?: BigIntFilter;
2452
+ /** Filter by the object’s `windowStart` field. */
2453
+ windowStart?: DatetimeFilter;
2454
+ /** Filter by the object’s `windowDuration` field. */
2455
+ windowDuration?: IntervalFilter;
2456
+ /** Filter by the object’s `planMax` field. */
2457
+ planMax?: BigIntFilter;
2458
+ /** Filter by the object’s `purchasedCredits` field. */
2459
+ purchasedCredits?: BigIntFilter;
2460
+ /** Filter by the object’s `periodCredits` field. */
2461
+ periodCredits?: BigIntFilter;
2462
+ /** Filter by the object’s `entityId` field. */
2463
+ entityId?: UUIDFilter;
2464
+ /** Checks for all expressions in this list. */
2465
+ and?: OrgLimitFilter[];
2466
+ /** Checks for any expressions in this list. */
2467
+ or?: OrgLimitFilter[];
2468
+ /** Negates the expression. */
2469
+ not?: OrgLimitFilter;
2470
+ }
2471
+ export interface OrgInviteFilter {
2472
+ /** Filter by the object’s `id` field. */
2473
+ id?: UUIDFilter;
2474
+ /** Filter by the object’s `email` field. */
2475
+ email?: ConstructiveInternalTypeEmailFilter;
2476
+ /** Filter by the object’s `senderId` field. */
2477
+ senderId?: UUIDFilter;
2478
+ /** Filter by the object’s `receiverId` field. */
2479
+ receiverId?: UUIDFilter;
2480
+ /** Filter by the object’s `inviteToken` field. */
2481
+ inviteToken?: StringFilter;
2482
+ /** Filter by the object’s `inviteValid` field. */
2483
+ inviteValid?: BooleanFilter;
2484
+ /** Filter by the object’s `inviteLimit` field. */
2485
+ inviteLimit?: IntFilter;
2486
+ /** Filter by the object’s `inviteCount` field. */
2487
+ inviteCount?: IntFilter;
2488
+ /** Filter by the object’s `multiple` field. */
2489
+ multiple?: BooleanFilter;
2490
+ /** Filter by the object’s `profileId` field. */
2491
+ profileId?: UUIDFilter;
2492
+ /** Filter by the object’s `expiresAt` field. */
2493
+ expiresAt?: DatetimeFilter;
2494
+ /** Filter by the object’s `createdAt` field. */
2495
+ createdAt?: DatetimeFilter;
2496
+ /** Filter by the object’s `updatedAt` field. */
2497
+ updatedAt?: DatetimeFilter;
2498
+ /** Filter by the object’s `entityId` field. */
2499
+ entityId?: UUIDFilter;
2500
+ /** Checks for all expressions in this list. */
2501
+ and?: OrgInviteFilter[];
2502
+ /** Checks for any expressions in this list. */
2503
+ or?: OrgInviteFilter[];
2504
+ /** Negates the expression. */
2505
+ not?: OrgInviteFilter;
2506
+ }
2507
+ export interface AppMembershipFilter {
2508
+ /** Filter by the object’s `id` field. */
2509
+ id?: UUIDFilter;
2510
+ /** Filter by the object’s `createdAt` field. */
2511
+ createdAt?: DatetimeFilter;
2042
2512
  /** Filter by the object’s `updatedAt` field. */
2043
2513
  updatedAt?: DatetimeFilter;
2044
2514
  /** Filter by the object’s `createdBy` field. */
@@ -2127,18 +2597,27 @@ export type OrgGetSubordinatesRecordsOrderBy = 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_
2127
2597
  export type AppPermissionOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'BITNUM_ASC' | 'BITNUM_DESC' | 'BITSTR_ASC' | 'BITSTR_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC';
2128
2598
  export type OrgPermissionOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'BITNUM_ASC' | 'BITNUM_DESC' | 'BITSTR_ASC' | 'BITSTR_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC';
2129
2599
  export type AppLevelRequirementOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'LEVEL_ASC' | 'LEVEL_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'REQUIRED_COUNT_ASC' | 'REQUIRED_COUNT_DESC' | 'PRIORITY_ASC' | 'PRIORITY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
2600
+ 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';
2601
+ 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';
2602
+ 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';
2130
2603
  export type OrgMemberOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_ADMIN_ASC' | 'IS_ADMIN_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC';
2131
2604
  export type AppPermissionDefaultOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'PERMISSIONS_ASC' | 'PERMISSIONS_DESC';
2605
+ 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';
2132
2606
  export type OrgPermissionDefaultOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'PERMISSIONS_ASC' | 'PERMISSIONS_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC';
2133
2607
  export type AppAdminGrantOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_GRANT_ASC' | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'GRANTOR_ID_ASC' | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
2134
2608
  export type AppOwnerGrantOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_GRANT_ASC' | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'GRANTOR_ID_ASC' | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
2135
2609
  export type AppAchievementOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'COUNT_ASC' | 'COUNT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
2136
2610
  export type AppStepOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'COUNT_ASC' | 'COUNT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
2611
+ export type AppLimitCapsDefaultOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'MAX_ASC' | 'MAX_DESC';
2612
+ export type OrgLimitCapsDefaultOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'MAX_ASC' | 'MAX_DESC';
2613
+ 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';
2614
+ 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';
2137
2615
  export type OrgAdminGrantOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_GRANT_ASC' | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'GRANTOR_ID_ASC' | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
2138
2616
  export type OrgOwnerGrantOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_GRANT_ASC' | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'GRANTOR_ID_ASC' | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
2139
2617
  export type MembershipTypeOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' | 'PARENT_MEMBERSHIP_TYPE_ASC' | 'PARENT_MEMBERSHIP_TYPE_DESC' | 'HAS_USERS_TABLE_ENTRY_ASC' | 'HAS_USERS_TABLE_ENTRY_DESC';
2140
2618
  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';
2141
2619
  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';
2620
+ 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' | 'AMOUNT_ASC' | 'AMOUNT_DESC' | 'CREDIT_TYPE_ASC' | 'CREDIT_TYPE_DESC' | 'REASON_ASC' | 'REASON_DESC';
2142
2621
  export type OrgChartEdgeGrantOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'CHILD_ID_ASC' | 'CHILD_ID_DESC' | 'PARENT_ID_ASC' | 'PARENT_ID_DESC' | 'GRANTOR_ID_ASC' | 'GRANTOR_ID_DESC' | 'IS_GRANT_ASC' | 'IS_GRANT_DESC' | 'POSITION_TITLE_ASC' | 'POSITION_TITLE_DESC' | 'POSITION_LEVEL_ASC' | 'POSITION_LEVEL_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC';
2143
2622
  export type AppClaimedInviteOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATA_ASC' | 'DATA_DESC' | 'SENDER_ID_ASC' | 'SENDER_ID_DESC' | 'RECEIVER_ID_ASC' | 'RECEIVER_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
2144
2623
  export type AppGrantOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'PERMISSIONS_ASC' | 'PERMISSIONS_DESC' | 'IS_GRANT_ASC' | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'GRANTOR_ID_ASC' | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
@@ -2149,13 +2628,13 @@ export type AppLimitEventOrderBy = 'NATURAL' | 'NAME_ASC' | 'NAME_DESC' | 'ACTOR
2149
2628
  export type OrgLimitEventOrderBy = 'NATURAL' | 'NAME_ASC' | 'NAME_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_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';
2150
2629
  export type OrgGrantOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'PERMISSIONS_ASC' | 'PERMISSIONS_DESC' | 'IS_GRANT_ASC' | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'GRANTOR_ID_ASC' | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
2151
2630
  export type OrgChartEdgeOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'CHILD_ID_ASC' | 'CHILD_ID_DESC' | 'PARENT_ID_ASC' | 'PARENT_ID_DESC' | 'POSITION_TITLE_ASC' | 'POSITION_TITLE_DESC' | 'POSITION_LEVEL_ASC' | 'POSITION_LEVEL_DESC';
2152
- 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';
2153
- 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';
2154
2631
  export type OrgMemberProfileOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'MEMBERSHIP_ID_ASC' | 'MEMBERSHIP_ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'DISPLAY_NAME_ASC' | 'DISPLAY_NAME_DESC' | 'EMAIL_ASC' | 'EMAIL_DESC' | 'TITLE_ASC' | 'TITLE_DESC' | 'BIO_ASC' | 'BIO_DESC' | 'PROFILE_PICTURE_ASC' | 'PROFILE_PICTURE_DESC';
2155
- 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' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC';
2156
2632
  export type AppLevelOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'IMAGE_ASC' | 'IMAGE_DESC' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
2633
+ 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';
2157
2634
  export type AppInviteOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'EMAIL_ASC' | 'EMAIL_DESC' | 'SENDER_ID_ASC' | 'SENDER_ID_DESC' | 'INVITE_TOKEN_ASC' | 'INVITE_TOKEN_DESC' | 'INVITE_VALID_ASC' | 'INVITE_VALID_DESC' | 'INVITE_LIMIT_ASC' | 'INVITE_LIMIT_DESC' | 'INVITE_COUNT_ASC' | 'INVITE_COUNT_DESC' | 'MULTIPLE_ASC' | 'MULTIPLE_DESC' | 'DATA_ASC' | 'DATA_DESC' | 'PROFILE_ID_ASC' | 'PROFILE_ID_DESC' | 'EXPIRES_AT_ASC' | 'EXPIRES_AT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
2158
2635
  export type OrgMembershipSettingOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' | 'UPDATED_BY_ASC' | 'UPDATED_BY_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'DELETE_MEMBER_CASCADE_CHILDREN_ASC' | 'DELETE_MEMBER_CASCADE_CHILDREN_DESC' | 'CREATE_CHILD_CASCADE_OWNERS_ASC' | 'CREATE_CHILD_CASCADE_OWNERS_DESC' | 'CREATE_CHILD_CASCADE_ADMINS_ASC' | 'CREATE_CHILD_CASCADE_ADMINS_DESC' | 'CREATE_CHILD_CASCADE_MEMBERS_ASC' | 'CREATE_CHILD_CASCADE_MEMBERS_DESC' | 'ALLOW_EXTERNAL_MEMBERS_ASC' | 'ALLOW_EXTERNAL_MEMBERS_DESC' | 'INVITE_PROFILE_ASSIGNMENT_MODE_ASC' | 'INVITE_PROFILE_ASSIGNMENT_MODE_DESC' | 'POPULATE_MEMBER_EMAIL_ASC' | 'POPULATE_MEMBER_EMAIL_DESC' | 'LIMIT_ALLOCATION_MODE_ASC' | 'LIMIT_ALLOCATION_MODE_DESC';
2636
+ 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';
2637
+ 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';
2159
2638
  export type OrgInviteOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'EMAIL_ASC' | 'EMAIL_DESC' | 'SENDER_ID_ASC' | 'SENDER_ID_DESC' | 'RECEIVER_ID_ASC' | 'RECEIVER_ID_DESC' | 'INVITE_TOKEN_ASC' | 'INVITE_TOKEN_DESC' | 'INVITE_VALID_ASC' | 'INVITE_VALID_DESC' | 'INVITE_LIMIT_ASC' | 'INVITE_LIMIT_DESC' | 'INVITE_COUNT_ASC' | 'INVITE_COUNT_DESC' | 'MULTIPLE_ASC' | 'MULTIPLE_DESC' | 'DATA_ASC' | 'DATA_DESC' | 'PROFILE_ID_ASC' | 'PROFILE_ID_DESC' | 'EXPIRES_AT_ASC' | 'EXPIRES_AT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC';
2160
2639
  export type AppMembershipOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' | 'UPDATED_BY_ASC' | 'UPDATED_BY_DESC' | 'IS_APPROVED_ASC' | 'IS_APPROVED_DESC' | 'IS_BANNED_ASC' | 'IS_BANNED_DESC' | 'IS_DISABLED_ASC' | 'IS_DISABLED_DESC' | 'IS_VERIFIED_ASC' | 'IS_VERIFIED_DESC' | 'IS_ACTIVE_ASC' | 'IS_ACTIVE_DESC' | 'IS_OWNER_ASC' | 'IS_OWNER_DESC' | 'IS_ADMIN_ASC' | 'IS_ADMIN_DESC' | 'PERMISSIONS_ASC' | 'PERMISSIONS_DESC' | 'GRANTED_ASC' | 'GRANTED_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'PROFILE_ID_ASC' | 'PROFILE_ID_DESC';
2161
2640
  export type OrgMembershipOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' | 'UPDATED_BY_ASC' | 'UPDATED_BY_DESC' | 'IS_APPROVED_ASC' | 'IS_APPROVED_DESC' | 'IS_BANNED_ASC' | 'IS_BANNED_DESC' | 'IS_DISABLED_ASC' | 'IS_DISABLED_DESC' | 'IS_ACTIVE_ASC' | 'IS_ACTIVE_DESC' | 'IS_EXTERNAL_ASC' | 'IS_EXTERNAL_DESC' | 'IS_OWNER_ASC' | 'IS_OWNER_DESC' | 'IS_ADMIN_ASC' | 'IS_ADMIN_DESC' | 'PERMISSIONS_ASC' | 'PERMISSIONS_DESC' | 'GRANTED_ASC' | 'GRANTED_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'IS_READ_ONLY_ASC' | 'IS_READ_ONLY_DESC' | 'PROFILE_ID_ASC' | 'PROFILE_ID_DESC';
@@ -2273,6 +2752,76 @@ export interface DeleteAppLevelRequirementInput {
2273
2752
  clientMutationId?: string;
2274
2753
  id: string;
2275
2754
  }
2755
+ export interface CreateAppLimitCreditRedemptionInput {
2756
+ clientMutationId?: string;
2757
+ appLimitCreditRedemption: {
2758
+ creditCodeId: string;
2759
+ entityId: string;
2760
+ };
2761
+ }
2762
+ export interface AppLimitCreditRedemptionPatch {
2763
+ creditCodeId?: string | null;
2764
+ entityId?: string | null;
2765
+ }
2766
+ export interface UpdateAppLimitCreditRedemptionInput {
2767
+ clientMutationId?: string;
2768
+ id: string;
2769
+ appLimitCreditRedemptionPatch: AppLimitCreditRedemptionPatch;
2770
+ }
2771
+ export interface DeleteAppLimitCreditRedemptionInput {
2772
+ clientMutationId?: string;
2773
+ id: string;
2774
+ }
2775
+ export interface CreateAppLimitCreditCodeItemInput {
2776
+ clientMutationId?: string;
2777
+ appLimitCreditCodeItem: {
2778
+ creditCodeId: string;
2779
+ defaultLimitId: string;
2780
+ amount: string;
2781
+ creditType?: string;
2782
+ };
2783
+ }
2784
+ export interface AppLimitCreditCodeItemPatch {
2785
+ creditCodeId?: string | null;
2786
+ defaultLimitId?: string | null;
2787
+ amount?: string | null;
2788
+ creditType?: string | null;
2789
+ }
2790
+ export interface UpdateAppLimitCreditCodeItemInput {
2791
+ clientMutationId?: string;
2792
+ id: string;
2793
+ appLimitCreditCodeItemPatch: AppLimitCreditCodeItemPatch;
2794
+ }
2795
+ export interface DeleteAppLimitCreditCodeItemInput {
2796
+ clientMutationId?: string;
2797
+ id: string;
2798
+ }
2799
+ export interface CreateAppLimitCreditInput {
2800
+ clientMutationId?: string;
2801
+ appLimitCredit: {
2802
+ defaultLimitId: string;
2803
+ actorId?: string;
2804
+ amount: string;
2805
+ creditType?: string;
2806
+ reason?: string;
2807
+ };
2808
+ }
2809
+ export interface AppLimitCreditPatch {
2810
+ defaultLimitId?: string | null;
2811
+ actorId?: string | null;
2812
+ amount?: string | null;
2813
+ creditType?: string | null;
2814
+ reason?: string | null;
2815
+ }
2816
+ export interface UpdateAppLimitCreditInput {
2817
+ clientMutationId?: string;
2818
+ id: string;
2819
+ appLimitCreditPatch: AppLimitCreditPatch;
2820
+ }
2821
+ export interface DeleteAppLimitCreditInput {
2822
+ clientMutationId?: string;
2823
+ id: string;
2824
+ }
2276
2825
  export interface CreateOrgMemberInput {
2277
2826
  clientMutationId?: string;
2278
2827
  orgMember: {
@@ -2313,6 +2862,30 @@ export interface DeleteAppPermissionDefaultInput {
2313
2862
  clientMutationId?: string;
2314
2863
  id: string;
2315
2864
  }
2865
+ export interface CreateAppLimitCreditCodeInput {
2866
+ clientMutationId?: string;
2867
+ appLimitCreditCode: {
2868
+ code: string;
2869
+ maxRedemptions?: number;
2870
+ currentRedemptions?: number;
2871
+ expiresAt?: string;
2872
+ };
2873
+ }
2874
+ export interface AppLimitCreditCodePatch {
2875
+ code?: string | null;
2876
+ maxRedemptions?: number | null;
2877
+ currentRedemptions?: number | null;
2878
+ expiresAt?: string | null;
2879
+ }
2880
+ export interface UpdateAppLimitCreditCodeInput {
2881
+ clientMutationId?: string;
2882
+ id: string;
2883
+ appLimitCreditCodePatch: AppLimitCreditCodePatch;
2884
+ }
2885
+ export interface DeleteAppLimitCreditCodeInput {
2886
+ clientMutationId?: string;
2887
+ id: string;
2888
+ }
2316
2889
  export interface CreateOrgPermissionDefaultInput {
2317
2890
  clientMutationId?: string;
2318
2891
  orgPermissionDefault: {
@@ -2421,6 +2994,90 @@ export interface DeleteAppStepInput {
2421
2994
  clientMutationId?: string;
2422
2995
  id: string;
2423
2996
  }
2997
+ export interface CreateAppLimitCapsDefaultInput {
2998
+ clientMutationId?: string;
2999
+ appLimitCapsDefault: {
3000
+ name: string;
3001
+ max?: string;
3002
+ };
3003
+ }
3004
+ export interface AppLimitCapsDefaultPatch {
3005
+ name?: string | null;
3006
+ max?: string | null;
3007
+ }
3008
+ export interface UpdateAppLimitCapsDefaultInput {
3009
+ clientMutationId?: string;
3010
+ id: string;
3011
+ appLimitCapsDefaultPatch: AppLimitCapsDefaultPatch;
3012
+ }
3013
+ export interface DeleteAppLimitCapsDefaultInput {
3014
+ clientMutationId?: string;
3015
+ id: string;
3016
+ }
3017
+ export interface CreateOrgLimitCapsDefaultInput {
3018
+ clientMutationId?: string;
3019
+ orgLimitCapsDefault: {
3020
+ name: string;
3021
+ max?: string;
3022
+ };
3023
+ }
3024
+ export interface OrgLimitCapsDefaultPatch {
3025
+ name?: string | null;
3026
+ max?: string | null;
3027
+ }
3028
+ export interface UpdateOrgLimitCapsDefaultInput {
3029
+ clientMutationId?: string;
3030
+ id: string;
3031
+ orgLimitCapsDefaultPatch: OrgLimitCapsDefaultPatch;
3032
+ }
3033
+ export interface DeleteOrgLimitCapsDefaultInput {
3034
+ clientMutationId?: string;
3035
+ id: string;
3036
+ }
3037
+ export interface CreateAppLimitCapInput {
3038
+ clientMutationId?: string;
3039
+ appLimitCap: {
3040
+ name: string;
3041
+ entityId: string;
3042
+ max?: string;
3043
+ };
3044
+ }
3045
+ export interface AppLimitCapPatch {
3046
+ name?: string | null;
3047
+ entityId?: string | null;
3048
+ max?: string | null;
3049
+ }
3050
+ export interface UpdateAppLimitCapInput {
3051
+ clientMutationId?: string;
3052
+ id: string;
3053
+ appLimitCapPatch: AppLimitCapPatch;
3054
+ }
3055
+ export interface DeleteAppLimitCapInput {
3056
+ clientMutationId?: string;
3057
+ id: string;
3058
+ }
3059
+ export interface CreateOrgLimitCapInput {
3060
+ clientMutationId?: string;
3061
+ orgLimitCap: {
3062
+ name: string;
3063
+ entityId: string;
3064
+ max?: string;
3065
+ };
3066
+ }
3067
+ export interface OrgLimitCapPatch {
3068
+ name?: string | null;
3069
+ entityId?: string | null;
3070
+ max?: string | null;
3071
+ }
3072
+ export interface UpdateOrgLimitCapInput {
3073
+ clientMutationId?: string;
3074
+ id: string;
3075
+ orgLimitCapPatch: OrgLimitCapPatch;
3076
+ }
3077
+ export interface DeleteOrgLimitCapInput {
3078
+ clientMutationId?: string;
3079
+ id: string;
3080
+ }
2424
3081
  export interface CreateOrgAdminGrantInput {
2425
3082
  clientMutationId?: string;
2426
3083
  orgAdminGrant: {
@@ -2539,6 +3196,34 @@ export interface DeleteOrgLimitDefaultInput {
2539
3196
  clientMutationId?: string;
2540
3197
  id: string;
2541
3198
  }
3199
+ export interface CreateOrgLimitCreditInput {
3200
+ clientMutationId?: string;
3201
+ orgLimitCredit: {
3202
+ defaultLimitId: string;
3203
+ actorId?: string;
3204
+ entityId?: string;
3205
+ amount: string;
3206
+ creditType?: string;
3207
+ reason?: string;
3208
+ };
3209
+ }
3210
+ export interface OrgLimitCreditPatch {
3211
+ defaultLimitId?: string | null;
3212
+ actorId?: string | null;
3213
+ entityId?: string | null;
3214
+ amount?: string | null;
3215
+ creditType?: string | null;
3216
+ reason?: string | null;
3217
+ }
3218
+ export interface UpdateOrgLimitCreditInput {
3219
+ clientMutationId?: string;
3220
+ id: string;
3221
+ orgLimitCreditPatch: OrgLimitCreditPatch;
3222
+ }
3223
+ export interface DeleteOrgLimitCreditInput {
3224
+ clientMutationId?: string;
3225
+ id: string;
3226
+ }
2542
3227
  export interface CreateOrgChartEdgeGrantInput {
2543
3228
  clientMutationId?: string;
2544
3229
  orgChartEdgeGrant: {
@@ -2807,66 +3492,6 @@ export interface DeleteOrgChartEdgeInput {
2807
3492
  clientMutationId?: string;
2808
3493
  id: string;
2809
3494
  }
2810
- export interface CreateAppLimitInput {
2811
- clientMutationId?: string;
2812
- appLimit: {
2813
- name?: string;
2814
- actorId: string;
2815
- num?: string;
2816
- max?: string;
2817
- softMax?: string;
2818
- windowStart?: string;
2819
- windowDuration?: IntervalInput;
2820
- };
2821
- }
2822
- export interface AppLimitPatch {
2823
- name?: string | null;
2824
- actorId?: string | null;
2825
- num?: string | null;
2826
- max?: string | null;
2827
- softMax?: string | null;
2828
- windowStart?: string | null;
2829
- windowDuration?: IntervalInput | null;
2830
- }
2831
- export interface UpdateAppLimitInput {
2832
- clientMutationId?: string;
2833
- id: string;
2834
- appLimitPatch: AppLimitPatch;
2835
- }
2836
- export interface DeleteAppLimitInput {
2837
- clientMutationId?: string;
2838
- id: string;
2839
- }
2840
- export interface CreateOrgLimitAggregateInput {
2841
- clientMutationId?: string;
2842
- orgLimitAggregate: {
2843
- name?: string;
2844
- entityId: string;
2845
- num?: string;
2846
- max?: string;
2847
- softMax?: string;
2848
- windowStart?: string;
2849
- windowDuration?: IntervalInput;
2850
- };
2851
- }
2852
- export interface OrgLimitAggregatePatch {
2853
- name?: string | null;
2854
- entityId?: string | null;
2855
- num?: string | null;
2856
- max?: string | null;
2857
- softMax?: string | null;
2858
- windowStart?: string | null;
2859
- windowDuration?: IntervalInput | null;
2860
- }
2861
- export interface UpdateOrgLimitAggregateInput {
2862
- clientMutationId?: string;
2863
- id: string;
2864
- orgLimitAggregatePatch: OrgLimitAggregatePatch;
2865
- }
2866
- export interface DeleteOrgLimitAggregateInput {
2867
- clientMutationId?: string;
2868
- id: string;
2869
- }
2870
3495
  export interface CreateOrgMemberProfileInput {
2871
3496
  clientMutationId?: string;
2872
3497
  orgMemberProfile: {
@@ -2900,39 +3525,7 @@ export interface DeleteOrgMemberProfileInput {
2900
3525
  clientMutationId?: string;
2901
3526
  id: string;
2902
3527
  }
2903
- export interface CreateOrgLimitInput {
2904
- clientMutationId?: string;
2905
- orgLimit: {
2906
- name?: string;
2907
- actorId: string;
2908
- num?: string;
2909
- max?: string;
2910
- softMax?: string;
2911
- windowStart?: string;
2912
- windowDuration?: IntervalInput;
2913
- entityId: string;
2914
- };
2915
- }
2916
- export interface OrgLimitPatch {
2917
- name?: string | null;
2918
- actorId?: string | null;
2919
- num?: string | null;
2920
- max?: string | null;
2921
- softMax?: string | null;
2922
- windowStart?: string | null;
2923
- windowDuration?: IntervalInput | null;
2924
- entityId?: string | null;
2925
- }
2926
- export interface UpdateOrgLimitInput {
2927
- clientMutationId?: string;
2928
- id: string;
2929
- orgLimitPatch: OrgLimitPatch;
2930
- }
2931
- export interface DeleteOrgLimitInput {
2932
- clientMutationId?: string;
2933
- id: string;
2934
- }
2935
- export interface CreateAppLevelInput {
3528
+ export interface CreateAppLevelInput {
2936
3529
  clientMutationId?: string;
2937
3530
  appLevel: {
2938
3531
  name: string;
@@ -2957,6 +3550,42 @@ export interface DeleteAppLevelInput {
2957
3550
  clientMutationId?: string;
2958
3551
  id: string;
2959
3552
  }
3553
+ export interface CreateAppLimitInput {
3554
+ clientMutationId?: string;
3555
+ appLimit: {
3556
+ name?: string;
3557
+ actorId: string;
3558
+ num?: string;
3559
+ max?: string;
3560
+ softMax?: string;
3561
+ windowStart?: string;
3562
+ windowDuration?: IntervalInput;
3563
+ planMax?: string;
3564
+ purchasedCredits?: string;
3565
+ periodCredits?: string;
3566
+ };
3567
+ }
3568
+ export interface AppLimitPatch {
3569
+ name?: string | null;
3570
+ actorId?: string | null;
3571
+ num?: string | null;
3572
+ max?: string | null;
3573
+ softMax?: string | null;
3574
+ windowStart?: string | null;
3575
+ windowDuration?: IntervalInput | null;
3576
+ planMax?: string | null;
3577
+ purchasedCredits?: string | null;
3578
+ periodCredits?: string | null;
3579
+ }
3580
+ export interface UpdateAppLimitInput {
3581
+ clientMutationId?: string;
3582
+ id: string;
3583
+ appLimitPatch: AppLimitPatch;
3584
+ }
3585
+ export interface DeleteAppLimitInput {
3586
+ clientMutationId?: string;
3587
+ id: string;
3588
+ }
2960
3589
  export interface CreateAppInviteInput {
2961
3590
  clientMutationId?: string;
2962
3591
  appInvite: {
@@ -3031,6 +3660,82 @@ export interface DeleteOrgMembershipSettingInput {
3031
3660
  clientMutationId?: string;
3032
3661
  id: string;
3033
3662
  }
3663
+ export interface CreateOrgLimitAggregateInput {
3664
+ clientMutationId?: string;
3665
+ orgLimitAggregate: {
3666
+ name?: string;
3667
+ entityId: string;
3668
+ num?: string;
3669
+ max?: string;
3670
+ softMax?: string;
3671
+ windowStart?: string;
3672
+ windowDuration?: IntervalInput;
3673
+ planMax?: string;
3674
+ purchasedCredits?: string;
3675
+ periodCredits?: string;
3676
+ reserved?: string;
3677
+ };
3678
+ }
3679
+ export interface OrgLimitAggregatePatch {
3680
+ name?: string | null;
3681
+ entityId?: string | null;
3682
+ num?: string | null;
3683
+ max?: string | null;
3684
+ softMax?: string | null;
3685
+ windowStart?: string | null;
3686
+ windowDuration?: IntervalInput | null;
3687
+ planMax?: string | null;
3688
+ purchasedCredits?: string | null;
3689
+ periodCredits?: string | null;
3690
+ reserved?: string | null;
3691
+ }
3692
+ export interface UpdateOrgLimitAggregateInput {
3693
+ clientMutationId?: string;
3694
+ id: string;
3695
+ orgLimitAggregatePatch: OrgLimitAggregatePatch;
3696
+ }
3697
+ export interface DeleteOrgLimitAggregateInput {
3698
+ clientMutationId?: string;
3699
+ id: string;
3700
+ }
3701
+ export interface CreateOrgLimitInput {
3702
+ clientMutationId?: string;
3703
+ orgLimit: {
3704
+ name?: string;
3705
+ actorId: string;
3706
+ num?: string;
3707
+ max?: string;
3708
+ softMax?: string;
3709
+ windowStart?: string;
3710
+ windowDuration?: IntervalInput;
3711
+ planMax?: string;
3712
+ purchasedCredits?: string;
3713
+ periodCredits?: string;
3714
+ entityId: string;
3715
+ };
3716
+ }
3717
+ export interface OrgLimitPatch {
3718
+ name?: string | null;
3719
+ actorId?: string | null;
3720
+ num?: string | null;
3721
+ max?: string | null;
3722
+ softMax?: string | null;
3723
+ windowStart?: string | null;
3724
+ windowDuration?: IntervalInput | null;
3725
+ planMax?: string | null;
3726
+ purchasedCredits?: string | null;
3727
+ periodCredits?: string | null;
3728
+ entityId?: string | null;
3729
+ }
3730
+ export interface UpdateOrgLimitInput {
3731
+ clientMutationId?: string;
3732
+ id: string;
3733
+ orgLimitPatch: OrgLimitPatch;
3734
+ }
3735
+ export interface DeleteOrgLimitInput {
3736
+ clientMutationId?: string;
3737
+ id: string;
3738
+ }
3034
3739
  export interface CreateOrgInviteInput {
3035
3740
  clientMutationId?: string;
3036
3741
  orgInvite: {
@@ -3168,25 +3873,6 @@ export interface SubmitOrgInviteCodeInput {
3168
3873
  clientMutationId?: string;
3169
3874
  token?: string;
3170
3875
  }
3171
- export interface RequestUploadUrlInput {
3172
- /** Bucket key (e.g., "public", "private") */
3173
- bucketKey: string;
3174
- /**
3175
- * Owner entity ID for entity-scoped uploads.
3176
- * Omit for app-level (database-wide) storage.
3177
- * When provided, resolves the storage module for the entity type
3178
- * that owns this entity instance (e.g., a data room ID, team ID).
3179
- */
3180
- ownerId?: string;
3181
- /** SHA-256 content hash computed by the client (hex-encoded, 64 chars) */
3182
- contentHash: string;
3183
- /** MIME type of the file (e.g., "image/png") */
3184
- contentType: string;
3185
- /** File size in bytes */
3186
- size: number;
3187
- /** Original filename (optional, for display and Content-Disposition) */
3188
- filename?: string;
3189
- }
3190
3876
  export interface ProvisionBucketInput {
3191
3877
  /** The logical bucket key (e.g., "public", "private") */
3192
3878
  bucketKey: string;
@@ -3196,30 +3882,50 @@ export interface ProvisionBucketInput {
3196
3882
  */
3197
3883
  ownerId?: string;
3198
3884
  }
3199
- /** A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ */
3200
- export interface IntervalFilter {
3201
- /** Is null (if `true` is specified) or is not null (if `false` is specified). */
3202
- isNull?: boolean;
3203
- /** Equal to the specified value. */
3204
- equalTo?: IntervalInput;
3205
- /** Not equal to the specified value. */
3206
- notEqualTo?: IntervalInput;
3207
- /** Not equal to the specified value, treating null like an ordinary value. */
3208
- distinctFrom?: IntervalInput;
3209
- /** Equal to the specified value, treating null like an ordinary value. */
3210
- notDistinctFrom?: IntervalInput;
3211
- /** Included in the specified list. */
3212
- in?: IntervalInput[];
3213
- /** Not included in the specified list. */
3214
- notIn?: IntervalInput[];
3215
- /** Less than the specified value. */
3216
- lessThan?: IntervalInput;
3217
- /** Less than or equal to the specified value. */
3218
- lessThanOrEqualTo?: IntervalInput;
3219
- /** Greater than the specified value. */
3220
- greaterThan?: IntervalInput;
3221
- /** Greater than or equal to the specified value. */
3222
- greaterThanOrEqualTo?: IntervalInput;
3885
+ /** A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */
3886
+ export interface AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter {
3887
+ /** Filters to entities where at least one related entity matches. */
3888
+ some?: AppLimitCreditCodeItemFilter;
3889
+ /** Filters to entities where every related entity matches. */
3890
+ every?: AppLimitCreditCodeItemFilter;
3891
+ /** Filters to entities where no related entity matches. */
3892
+ none?: AppLimitCreditCodeItemFilter;
3893
+ }
3894
+ /** A filter to be used against many `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */
3895
+ export interface AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter {
3896
+ /** Filters to entities where at least one related entity matches. */
3897
+ some?: AppLimitCreditRedemptionFilter;
3898
+ /** Filters to entities where every related entity matches. */
3899
+ every?: AppLimitCreditRedemptionFilter;
3900
+ /** Filters to entities where no related entity matches. */
3901
+ none?: AppLimitCreditRedemptionFilter;
3902
+ }
3903
+ /** A filter to be used against many `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */
3904
+ export interface AppLimitDefaultToManyAppLimitCreditFilter {
3905
+ /** Filters to entities where at least one related entity matches. */
3906
+ some?: AppLimitCreditFilter;
3907
+ /** Filters to entities where every related entity matches. */
3908
+ every?: AppLimitCreditFilter;
3909
+ /** Filters to entities where no related entity matches. */
3910
+ none?: AppLimitCreditFilter;
3911
+ }
3912
+ /** A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */
3913
+ export interface AppLimitDefaultToManyAppLimitCreditCodeItemFilter {
3914
+ /** Filters to entities where at least one related entity matches. */
3915
+ some?: AppLimitCreditCodeItemFilter;
3916
+ /** Filters to entities where every related entity matches. */
3917
+ every?: AppLimitCreditCodeItemFilter;
3918
+ /** Filters to entities where no related entity matches. */
3919
+ none?: AppLimitCreditCodeItemFilter;
3920
+ }
3921
+ /** A filter to be used against many `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ */
3922
+ export interface OrgLimitDefaultToManyOrgLimitCreditFilter {
3923
+ /** Filters to entities where at least one related entity matches. */
3924
+ some?: OrgLimitCreditFilter;
3925
+ /** Filters to entities where every related entity matches. */
3926
+ every?: OrgLimitCreditFilter;
3927
+ /** Filters to entities where no related entity matches. */
3928
+ none?: OrgLimitCreditFilter;
3223
3929
  }
3224
3930
  /** A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ */
3225
3931
  export interface ConstructiveInternalTypeImageFilter {
@@ -3256,6 +3962,31 @@ export interface ConstructiveInternalTypeImageFilter {
3256
3962
  /** Contained by the specified JSON. */
3257
3963
  containedBy?: ConstructiveInternalTypeImage;
3258
3964
  }
3965
+ /** A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ */
3966
+ export interface IntervalFilter {
3967
+ /** Is null (if `true` is specified) or is not null (if `false` is specified). */
3968
+ isNull?: boolean;
3969
+ /** Equal to the specified value. */
3970
+ equalTo?: IntervalInput;
3971
+ /** Not equal to the specified value. */
3972
+ notEqualTo?: IntervalInput;
3973
+ /** Not equal to the specified value, treating null like an ordinary value. */
3974
+ distinctFrom?: IntervalInput;
3975
+ /** Equal to the specified value, treating null like an ordinary value. */
3976
+ notDistinctFrom?: IntervalInput;
3977
+ /** Included in the specified list. */
3978
+ in?: IntervalInput[];
3979
+ /** Not included in the specified list. */
3980
+ notIn?: IntervalInput[];
3981
+ /** Less than the specified value. */
3982
+ lessThan?: IntervalInput;
3983
+ /** Less than or equal to the specified value. */
3984
+ lessThanOrEqualTo?: IntervalInput;
3985
+ /** Greater than the specified value. */
3986
+ greaterThan?: IntervalInput;
3987
+ /** Greater than or equal to the specified value. */
3988
+ greaterThanOrEqualTo?: IntervalInput;
3989
+ }
3259
3990
  /** A filter to be used against ConstructiveInternalTypeEmail fields. All fields are combined with a logical ‘and.’ */
3260
3991
  export interface ConstructiveInternalTypeEmailFilter {
3261
3992
  /** Is null (if `true` is specified) or is not null (if `false` is specified). */
@@ -3333,6 +4064,94 @@ export interface ConstructiveInternalTypeEmailFilter {
3333
4064
  /** Greater than or equal to the specified value (case-insensitive). */
3334
4065
  greaterThanOrEqualToInsensitive?: ConstructiveInternalTypeEmail;
3335
4066
  }
4067
+ /** A filter to be used against `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */
4068
+ export interface AppLimitCreditCodeItemFilter {
4069
+ /** Filter by the object’s `id` field. */
4070
+ id?: UUIDFilter;
4071
+ /** Filter by the object’s `creditCodeId` field. */
4072
+ creditCodeId?: UUIDFilter;
4073
+ /** Filter by the object’s `defaultLimitId` field. */
4074
+ defaultLimitId?: UUIDFilter;
4075
+ /** Filter by the object’s `amount` field. */
4076
+ amount?: BigIntFilter;
4077
+ /** Filter by the object’s `creditType` field. */
4078
+ creditType?: StringFilter;
4079
+ /** Checks for all expressions in this list. */
4080
+ and?: AppLimitCreditCodeItemFilter[];
4081
+ /** Checks for any expressions in this list. */
4082
+ or?: AppLimitCreditCodeItemFilter[];
4083
+ /** Negates the expression. */
4084
+ not?: AppLimitCreditCodeItemFilter;
4085
+ /** Filter by the object’s `creditCode` relation. */
4086
+ creditCode?: AppLimitCreditCodeFilter;
4087
+ /** Filter by the object’s `defaultLimit` relation. */
4088
+ defaultLimit?: AppLimitDefaultFilter;
4089
+ }
4090
+ /** A filter to be used against `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */
4091
+ export interface AppLimitCreditRedemptionFilter {
4092
+ /** Filter by the object’s `id` field. */
4093
+ id?: UUIDFilter;
4094
+ /** Filter by the object’s `creditCodeId` field. */
4095
+ creditCodeId?: UUIDFilter;
4096
+ /** Filter by the object’s `entityId` field. */
4097
+ entityId?: UUIDFilter;
4098
+ /** Checks for all expressions in this list. */
4099
+ and?: AppLimitCreditRedemptionFilter[];
4100
+ /** Checks for any expressions in this list. */
4101
+ or?: AppLimitCreditRedemptionFilter[];
4102
+ /** Negates the expression. */
4103
+ not?: AppLimitCreditRedemptionFilter;
4104
+ /** Filter by the object’s `creditCode` relation. */
4105
+ creditCode?: AppLimitCreditCodeFilter;
4106
+ }
4107
+ /** A filter to be used against `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */
4108
+ export interface AppLimitCreditFilter {
4109
+ /** Filter by the object’s `id` field. */
4110
+ id?: UUIDFilter;
4111
+ /** Filter by the object’s `defaultLimitId` field. */
4112
+ defaultLimitId?: UUIDFilter;
4113
+ /** Filter by the object’s `actorId` field. */
4114
+ actorId?: UUIDFilter;
4115
+ /** Filter by the object’s `amount` field. */
4116
+ amount?: BigIntFilter;
4117
+ /** Filter by the object’s `creditType` field. */
4118
+ creditType?: StringFilter;
4119
+ /** Filter by the object’s `reason` field. */
4120
+ reason?: StringFilter;
4121
+ /** Checks for all expressions in this list. */
4122
+ and?: AppLimitCreditFilter[];
4123
+ /** Checks for any expressions in this list. */
4124
+ or?: AppLimitCreditFilter[];
4125
+ /** Negates the expression. */
4126
+ not?: AppLimitCreditFilter;
4127
+ /** Filter by the object’s `defaultLimit` relation. */
4128
+ defaultLimit?: AppLimitDefaultFilter;
4129
+ }
4130
+ /** A filter to be used against `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ */
4131
+ export interface OrgLimitCreditFilter {
4132
+ /** Filter by the object’s `id` field. */
4133
+ id?: UUIDFilter;
4134
+ /** Filter by the object’s `defaultLimitId` field. */
4135
+ defaultLimitId?: UUIDFilter;
4136
+ /** Filter by the object’s `actorId` field. */
4137
+ actorId?: UUIDFilter;
4138
+ /** Filter by the object’s `entityId` field. */
4139
+ entityId?: UUIDFilter;
4140
+ /** Filter by the object’s `amount` field. */
4141
+ amount?: BigIntFilter;
4142
+ /** Filter by the object’s `creditType` field. */
4143
+ creditType?: StringFilter;
4144
+ /** Filter by the object’s `reason` field. */
4145
+ reason?: StringFilter;
4146
+ /** Checks for all expressions in this list. */
4147
+ and?: OrgLimitCreditFilter[];
4148
+ /** Checks for any expressions in this list. */
4149
+ or?: OrgLimitCreditFilter[];
4150
+ /** Negates the expression. */
4151
+ not?: OrgLimitCreditFilter;
4152
+ /** Filter by the object’s `defaultLimit` relation. */
4153
+ defaultLimit?: OrgLimitDefaultFilter;
4154
+ }
3336
4155
  /** An interval of time that has passed where the smallest distinct unit is a second. */
3337
4156
  export interface IntervalInput {
3338
4157
  /**
@@ -3352,6 +4171,256 @@ export interface IntervalInput {
3352
4171
  /** A quantity of years. */
3353
4172
  years?: number;
3354
4173
  }
4174
+ /** A filter to be used against UUID fields. All fields are combined with a logical ‘and.’ */
4175
+ export interface UUIDFilter {
4176
+ /** Is null (if `true` is specified) or is not null (if `false` is specified). */
4177
+ isNull?: boolean;
4178
+ /** Equal to the specified value. */
4179
+ equalTo?: string;
4180
+ /** Not equal to the specified value. */
4181
+ notEqualTo?: string;
4182
+ /** Not equal to the specified value, treating null like an ordinary value. */
4183
+ distinctFrom?: string;
4184
+ /** Equal to the specified value, treating null like an ordinary value. */
4185
+ notDistinctFrom?: string;
4186
+ /** Included in the specified list. */
4187
+ in?: string[];
4188
+ /** Not included in the specified list. */
4189
+ notIn?: string[];
4190
+ /** Less than the specified value. */
4191
+ lessThan?: string;
4192
+ /** Less than or equal to the specified value. */
4193
+ lessThanOrEqualTo?: string;
4194
+ /** Greater than the specified value. */
4195
+ greaterThan?: string;
4196
+ /** Greater than or equal to the specified value. */
4197
+ greaterThanOrEqualTo?: string;
4198
+ }
4199
+ /** A filter to be used against BigInt fields. All fields are combined with a logical ‘and.’ */
4200
+ export interface BigIntFilter {
4201
+ /** Is null (if `true` is specified) or is not null (if `false` is specified). */
4202
+ isNull?: boolean;
4203
+ /** Equal to the specified value. */
4204
+ equalTo?: string;
4205
+ /** Not equal to the specified value. */
4206
+ notEqualTo?: string;
4207
+ /** Not equal to the specified value, treating null like an ordinary value. */
4208
+ distinctFrom?: string;
4209
+ /** Equal to the specified value, treating null like an ordinary value. */
4210
+ notDistinctFrom?: string;
4211
+ /** Included in the specified list. */
4212
+ in?: string[];
4213
+ /** Not included in the specified list. */
4214
+ notIn?: string[];
4215
+ /** Less than the specified value. */
4216
+ lessThan?: string;
4217
+ /** Less than or equal to the specified value. */
4218
+ lessThanOrEqualTo?: string;
4219
+ /** Greater than the specified value. */
4220
+ greaterThan?: string;
4221
+ /** Greater than or equal to the specified value. */
4222
+ greaterThanOrEqualTo?: string;
4223
+ }
4224
+ /** A filter to be used against String fields. All fields are combined with a logical ‘and.’ */
4225
+ export interface StringFilter {
4226
+ /** Is null (if `true` is specified) or is not null (if `false` is specified). */
4227
+ isNull?: boolean;
4228
+ /** Equal to the specified value. */
4229
+ equalTo?: string;
4230
+ /** Not equal to the specified value. */
4231
+ notEqualTo?: string;
4232
+ /** Not equal to the specified value, treating null like an ordinary value. */
4233
+ distinctFrom?: string;
4234
+ /** Equal to the specified value, treating null like an ordinary value. */
4235
+ notDistinctFrom?: string;
4236
+ /** Included in the specified list. */
4237
+ in?: string[];
4238
+ /** Not included in the specified list. */
4239
+ notIn?: string[];
4240
+ /** Less than the specified value. */
4241
+ lessThan?: string;
4242
+ /** Less than or equal to the specified value. */
4243
+ lessThanOrEqualTo?: string;
4244
+ /** Greater than the specified value. */
4245
+ greaterThan?: string;
4246
+ /** Greater than or equal to the specified value. */
4247
+ greaterThanOrEqualTo?: string;
4248
+ /** Contains the specified string (case-sensitive). */
4249
+ includes?: string;
4250
+ /** Does not contain the specified string (case-sensitive). */
4251
+ notIncludes?: string;
4252
+ /** Contains the specified string (case-insensitive). */
4253
+ includesInsensitive?: string;
4254
+ /** Does not contain the specified string (case-insensitive). */
4255
+ notIncludesInsensitive?: string;
4256
+ /** Starts with the specified string (case-sensitive). */
4257
+ startsWith?: string;
4258
+ /** Does not start with the specified string (case-sensitive). */
4259
+ notStartsWith?: string;
4260
+ /** Starts with the specified string (case-insensitive). */
4261
+ startsWithInsensitive?: string;
4262
+ /** Does not start with the specified string (case-insensitive). */
4263
+ notStartsWithInsensitive?: string;
4264
+ /** Ends with the specified string (case-sensitive). */
4265
+ endsWith?: string;
4266
+ /** Does not end with the specified string (case-sensitive). */
4267
+ notEndsWith?: string;
4268
+ /** Ends with the specified string (case-insensitive). */
4269
+ endsWithInsensitive?: string;
4270
+ /** Does not end with the specified string (case-insensitive). */
4271
+ notEndsWithInsensitive?: string;
4272
+ /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */
4273
+ like?: string;
4274
+ /** Does not match the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */
4275
+ notLike?: string;
4276
+ /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */
4277
+ likeInsensitive?: string;
4278
+ /** Does not match the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */
4279
+ notLikeInsensitive?: string;
4280
+ /** Equal to the specified value (case-insensitive). */
4281
+ equalToInsensitive?: string;
4282
+ /** Not equal to the specified value (case-insensitive). */
4283
+ notEqualToInsensitive?: string;
4284
+ /** Not equal to the specified value, treating null like an ordinary value (case-insensitive). */
4285
+ distinctFromInsensitive?: string;
4286
+ /** Equal to the specified value, treating null like an ordinary value (case-insensitive). */
4287
+ notDistinctFromInsensitive?: string;
4288
+ /** Included in the specified list (case-insensitive). */
4289
+ inInsensitive?: string[];
4290
+ /** Not included in the specified list (case-insensitive). */
4291
+ notInInsensitive?: string[];
4292
+ /** Less than the specified value (case-insensitive). */
4293
+ lessThanInsensitive?: string;
4294
+ /** Less than or equal to the specified value (case-insensitive). */
4295
+ lessThanOrEqualToInsensitive?: string;
4296
+ /** Greater than the specified value (case-insensitive). */
4297
+ greaterThanInsensitive?: string;
4298
+ /** Greater than or equal to the specified value (case-insensitive). */
4299
+ greaterThanOrEqualToInsensitive?: string;
4300
+ }
4301
+ /** A filter to be used against `AppLimitCreditCode` object types. All fields are combined with a logical ‘and.’ */
4302
+ export interface AppLimitCreditCodeFilter {
4303
+ /** Filter by the object’s `id` field. */
4304
+ id?: UUIDFilter;
4305
+ /** Filter by the object’s `code` field. */
4306
+ code?: StringFilter;
4307
+ /** Filter by the object’s `maxRedemptions` field. */
4308
+ maxRedemptions?: IntFilter;
4309
+ /** Filter by the object’s `currentRedemptions` field. */
4310
+ currentRedemptions?: IntFilter;
4311
+ /** Filter by the object’s `expiresAt` field. */
4312
+ expiresAt?: DatetimeFilter;
4313
+ /** Checks for all expressions in this list. */
4314
+ and?: AppLimitCreditCodeFilter[];
4315
+ /** Checks for any expressions in this list. */
4316
+ or?: AppLimitCreditCodeFilter[];
4317
+ /** Negates the expression. */
4318
+ not?: AppLimitCreditCodeFilter;
4319
+ /** Filter by the object’s `appLimitCreditCodeItemsByCreditCodeId` relation. */
4320
+ appLimitCreditCodeItemsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter;
4321
+ /** `appLimitCreditCodeItemsByCreditCodeId` exist. */
4322
+ appLimitCreditCodeItemsByCreditCodeIdExist?: boolean;
4323
+ /** Filter by the object’s `appLimitCreditRedemptionsByCreditCodeId` relation. */
4324
+ appLimitCreditRedemptionsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter;
4325
+ /** `appLimitCreditRedemptionsByCreditCodeId` exist. */
4326
+ appLimitCreditRedemptionsByCreditCodeIdExist?: boolean;
4327
+ }
4328
+ /** A filter to be used against `AppLimitDefault` object types. All fields are combined with a logical ‘and.’ */
4329
+ export interface AppLimitDefaultFilter {
4330
+ /** Filter by the object’s `id` field. */
4331
+ id?: UUIDFilter;
4332
+ /** Filter by the object’s `name` field. */
4333
+ name?: StringFilter;
4334
+ /** Filter by the object’s `max` field. */
4335
+ max?: BigIntFilter;
4336
+ /** Filter by the object’s `softMax` field. */
4337
+ softMax?: BigIntFilter;
4338
+ /** Checks for all expressions in this list. */
4339
+ and?: AppLimitDefaultFilter[];
4340
+ /** Checks for any expressions in this list. */
4341
+ or?: AppLimitDefaultFilter[];
4342
+ /** Negates the expression. */
4343
+ not?: AppLimitDefaultFilter;
4344
+ /** Filter by the object’s `appLimitCreditsByDefaultLimitId` relation. */
4345
+ appLimitCreditsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditFilter;
4346
+ /** `appLimitCreditsByDefaultLimitId` exist. */
4347
+ appLimitCreditsByDefaultLimitIdExist?: boolean;
4348
+ /** Filter by the object’s `appLimitCreditCodeItemsByDefaultLimitId` relation. */
4349
+ appLimitCreditCodeItemsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditCodeItemFilter;
4350
+ /** `appLimitCreditCodeItemsByDefaultLimitId` exist. */
4351
+ appLimitCreditCodeItemsByDefaultLimitIdExist?: boolean;
4352
+ }
4353
+ /** A filter to be used against `OrgLimitDefault` object types. All fields are combined with a logical ‘and.’ */
4354
+ export interface OrgLimitDefaultFilter {
4355
+ /** Filter by the object’s `id` field. */
4356
+ id?: UUIDFilter;
4357
+ /** Filter by the object’s `name` field. */
4358
+ name?: StringFilter;
4359
+ /** Filter by the object’s `max` field. */
4360
+ max?: BigIntFilter;
4361
+ /** Filter by the object’s `softMax` field. */
4362
+ softMax?: BigIntFilter;
4363
+ /** Checks for all expressions in this list. */
4364
+ and?: OrgLimitDefaultFilter[];
4365
+ /** Checks for any expressions in this list. */
4366
+ or?: OrgLimitDefaultFilter[];
4367
+ /** Negates the expression. */
4368
+ not?: OrgLimitDefaultFilter;
4369
+ /** Filter by the object’s `orgLimitCreditsByDefaultLimitId` relation. */
4370
+ orgLimitCreditsByDefaultLimitId?: OrgLimitDefaultToManyOrgLimitCreditFilter;
4371
+ /** `orgLimitCreditsByDefaultLimitId` exist. */
4372
+ orgLimitCreditsByDefaultLimitIdExist?: boolean;
4373
+ }
4374
+ /** A filter to be used against Int fields. All fields are combined with a logical ‘and.’ */
4375
+ export interface IntFilter {
4376
+ /** Is null (if `true` is specified) or is not null (if `false` is specified). */
4377
+ isNull?: boolean;
4378
+ /** Equal to the specified value. */
4379
+ equalTo?: number;
4380
+ /** Not equal to the specified value. */
4381
+ notEqualTo?: number;
4382
+ /** Not equal to the specified value, treating null like an ordinary value. */
4383
+ distinctFrom?: number;
4384
+ /** Equal to the specified value, treating null like an ordinary value. */
4385
+ notDistinctFrom?: number;
4386
+ /** Included in the specified list. */
4387
+ in?: number[];
4388
+ /** Not included in the specified list. */
4389
+ notIn?: number[];
4390
+ /** Less than the specified value. */
4391
+ lessThan?: number;
4392
+ /** Less than or equal to the specified value. */
4393
+ lessThanOrEqualTo?: number;
4394
+ /** Greater than the specified value. */
4395
+ greaterThan?: number;
4396
+ /** Greater than or equal to the specified value. */
4397
+ greaterThanOrEqualTo?: number;
4398
+ }
4399
+ /** A filter to be used against Datetime fields. All fields are combined with a logical ‘and.’ */
4400
+ export interface DatetimeFilter {
4401
+ /** Is null (if `true` is specified) or is not null (if `false` is specified). */
4402
+ isNull?: boolean;
4403
+ /** Equal to the specified value. */
4404
+ equalTo?: string;
4405
+ /** Not equal to the specified value. */
4406
+ notEqualTo?: string;
4407
+ /** Not equal to the specified value, treating null like an ordinary value. */
4408
+ distinctFrom?: string;
4409
+ /** Equal to the specified value, treating null like an ordinary value. */
4410
+ notDistinctFrom?: string;
4411
+ /** Included in the specified list. */
4412
+ in?: string[];
4413
+ /** Not included in the specified list. */
4414
+ notIn?: string[];
4415
+ /** Less than the specified value. */
4416
+ lessThan?: string;
4417
+ /** Less than or equal to the specified value. */
4418
+ lessThanOrEqualTo?: string;
4419
+ /** Greater than the specified value. */
4420
+ greaterThan?: string;
4421
+ /** Greater than or equal to the specified value. */
4422
+ greaterThanOrEqualTo?: string;
4423
+ }
3355
4424
  /** A connection to a list of `AppPermission` values. */
3356
4425
  export interface AppPermissionConnection {
3357
4426
  nodes: AppPermission[];
@@ -3425,25 +4494,6 @@ export type SubmitOrgInviteCodePayloadSelect = {
3425
4494
  clientMutationId?: boolean;
3426
4495
  result?: boolean;
3427
4496
  };
3428
- export interface RequestUploadUrlPayload {
3429
- /** Presigned PUT URL (null if file was deduplicated) */
3430
- uploadUrl?: string | null;
3431
- /** The file ID (existing if deduplicated, new if fresh upload) */
3432
- fileId: string;
3433
- /** The S3 object key */
3434
- key: string;
3435
- /** Whether this file was deduplicated (already exists with same hash) */
3436
- deduplicated: boolean;
3437
- /** Presigned URL expiry time (null if deduplicated) */
3438
- expiresAt?: string | null;
3439
- }
3440
- export type RequestUploadUrlPayloadSelect = {
3441
- uploadUrl?: boolean;
3442
- fileId?: boolean;
3443
- key?: boolean;
3444
- deduplicated?: boolean;
3445
- expiresAt?: boolean;
3446
- };
3447
4497
  export interface ProvisionBucketPayload {
3448
4498
  /** Whether provisioning succeeded */
3449
4499
  success: boolean;
@@ -3601,6 +4651,141 @@ export type DeleteAppLevelRequirementPayloadSelect = {
3601
4651
  select: AppLevelRequirementEdgeSelect;
3602
4652
  };
3603
4653
  };
4654
+ export interface CreateAppLimitCreditRedemptionPayload {
4655
+ clientMutationId?: string | null;
4656
+ /** The `AppLimitCreditRedemption` that was created by this mutation. */
4657
+ appLimitCreditRedemption?: AppLimitCreditRedemption | null;
4658
+ appLimitCreditRedemptionEdge?: AppLimitCreditRedemptionEdge | null;
4659
+ }
4660
+ export type CreateAppLimitCreditRedemptionPayloadSelect = {
4661
+ clientMutationId?: boolean;
4662
+ appLimitCreditRedemption?: {
4663
+ select: AppLimitCreditRedemptionSelect;
4664
+ };
4665
+ appLimitCreditRedemptionEdge?: {
4666
+ select: AppLimitCreditRedemptionEdgeSelect;
4667
+ };
4668
+ };
4669
+ export interface UpdateAppLimitCreditRedemptionPayload {
4670
+ clientMutationId?: string | null;
4671
+ /** The `AppLimitCreditRedemption` that was updated by this mutation. */
4672
+ appLimitCreditRedemption?: AppLimitCreditRedemption | null;
4673
+ appLimitCreditRedemptionEdge?: AppLimitCreditRedemptionEdge | null;
4674
+ }
4675
+ export type UpdateAppLimitCreditRedemptionPayloadSelect = {
4676
+ clientMutationId?: boolean;
4677
+ appLimitCreditRedemption?: {
4678
+ select: AppLimitCreditRedemptionSelect;
4679
+ };
4680
+ appLimitCreditRedemptionEdge?: {
4681
+ select: AppLimitCreditRedemptionEdgeSelect;
4682
+ };
4683
+ };
4684
+ export interface DeleteAppLimitCreditRedemptionPayload {
4685
+ clientMutationId?: string | null;
4686
+ /** The `AppLimitCreditRedemption` that was deleted by this mutation. */
4687
+ appLimitCreditRedemption?: AppLimitCreditRedemption | null;
4688
+ appLimitCreditRedemptionEdge?: AppLimitCreditRedemptionEdge | null;
4689
+ }
4690
+ export type DeleteAppLimitCreditRedemptionPayloadSelect = {
4691
+ clientMutationId?: boolean;
4692
+ appLimitCreditRedemption?: {
4693
+ select: AppLimitCreditRedemptionSelect;
4694
+ };
4695
+ appLimitCreditRedemptionEdge?: {
4696
+ select: AppLimitCreditRedemptionEdgeSelect;
4697
+ };
4698
+ };
4699
+ export interface CreateAppLimitCreditCodeItemPayload {
4700
+ clientMutationId?: string | null;
4701
+ /** The `AppLimitCreditCodeItem` that was created by this mutation. */
4702
+ appLimitCreditCodeItem?: AppLimitCreditCodeItem | null;
4703
+ appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null;
4704
+ }
4705
+ export type CreateAppLimitCreditCodeItemPayloadSelect = {
4706
+ clientMutationId?: boolean;
4707
+ appLimitCreditCodeItem?: {
4708
+ select: AppLimitCreditCodeItemSelect;
4709
+ };
4710
+ appLimitCreditCodeItemEdge?: {
4711
+ select: AppLimitCreditCodeItemEdgeSelect;
4712
+ };
4713
+ };
4714
+ export interface UpdateAppLimitCreditCodeItemPayload {
4715
+ clientMutationId?: string | null;
4716
+ /** The `AppLimitCreditCodeItem` that was updated by this mutation. */
4717
+ appLimitCreditCodeItem?: AppLimitCreditCodeItem | null;
4718
+ appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null;
4719
+ }
4720
+ export type UpdateAppLimitCreditCodeItemPayloadSelect = {
4721
+ clientMutationId?: boolean;
4722
+ appLimitCreditCodeItem?: {
4723
+ select: AppLimitCreditCodeItemSelect;
4724
+ };
4725
+ appLimitCreditCodeItemEdge?: {
4726
+ select: AppLimitCreditCodeItemEdgeSelect;
4727
+ };
4728
+ };
4729
+ export interface DeleteAppLimitCreditCodeItemPayload {
4730
+ clientMutationId?: string | null;
4731
+ /** The `AppLimitCreditCodeItem` that was deleted by this mutation. */
4732
+ appLimitCreditCodeItem?: AppLimitCreditCodeItem | null;
4733
+ appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null;
4734
+ }
4735
+ export type DeleteAppLimitCreditCodeItemPayloadSelect = {
4736
+ clientMutationId?: boolean;
4737
+ appLimitCreditCodeItem?: {
4738
+ select: AppLimitCreditCodeItemSelect;
4739
+ };
4740
+ appLimitCreditCodeItemEdge?: {
4741
+ select: AppLimitCreditCodeItemEdgeSelect;
4742
+ };
4743
+ };
4744
+ export interface CreateAppLimitCreditPayload {
4745
+ clientMutationId?: string | null;
4746
+ /** The `AppLimitCredit` that was created by this mutation. */
4747
+ appLimitCredit?: AppLimitCredit | null;
4748
+ appLimitCreditEdge?: AppLimitCreditEdge | null;
4749
+ }
4750
+ export type CreateAppLimitCreditPayloadSelect = {
4751
+ clientMutationId?: boolean;
4752
+ appLimitCredit?: {
4753
+ select: AppLimitCreditSelect;
4754
+ };
4755
+ appLimitCreditEdge?: {
4756
+ select: AppLimitCreditEdgeSelect;
4757
+ };
4758
+ };
4759
+ export interface UpdateAppLimitCreditPayload {
4760
+ clientMutationId?: string | null;
4761
+ /** The `AppLimitCredit` that was updated by this mutation. */
4762
+ appLimitCredit?: AppLimitCredit | null;
4763
+ appLimitCreditEdge?: AppLimitCreditEdge | null;
4764
+ }
4765
+ export type UpdateAppLimitCreditPayloadSelect = {
4766
+ clientMutationId?: boolean;
4767
+ appLimitCredit?: {
4768
+ select: AppLimitCreditSelect;
4769
+ };
4770
+ appLimitCreditEdge?: {
4771
+ select: AppLimitCreditEdgeSelect;
4772
+ };
4773
+ };
4774
+ export interface DeleteAppLimitCreditPayload {
4775
+ clientMutationId?: string | null;
4776
+ /** The `AppLimitCredit` that was deleted by this mutation. */
4777
+ appLimitCredit?: AppLimitCredit | null;
4778
+ appLimitCreditEdge?: AppLimitCreditEdge | null;
4779
+ }
4780
+ export type DeleteAppLimitCreditPayloadSelect = {
4781
+ clientMutationId?: boolean;
4782
+ appLimitCredit?: {
4783
+ select: AppLimitCreditSelect;
4784
+ };
4785
+ appLimitCreditEdge?: {
4786
+ select: AppLimitCreditEdgeSelect;
4787
+ };
4788
+ };
3604
4789
  export interface CreateOrgMemberPayload {
3605
4790
  clientMutationId?: string | null;
3606
4791
  /** The `OrgMember` that was created by this mutation. */
@@ -3678,17 +4863,62 @@ export type UpdateAppPermissionDefaultPayloadSelect = {
3678
4863
  };
3679
4864
  export interface DeleteAppPermissionDefaultPayload {
3680
4865
  clientMutationId?: string | null;
3681
- /** The `AppPermissionDefault` that was deleted by this mutation. */
3682
- appPermissionDefault?: AppPermissionDefault | null;
3683
- appPermissionDefaultEdge?: AppPermissionDefaultEdge | null;
4866
+ /** The `AppPermissionDefault` that was deleted by this mutation. */
4867
+ appPermissionDefault?: AppPermissionDefault | null;
4868
+ appPermissionDefaultEdge?: AppPermissionDefaultEdge | null;
4869
+ }
4870
+ export type DeleteAppPermissionDefaultPayloadSelect = {
4871
+ clientMutationId?: boolean;
4872
+ appPermissionDefault?: {
4873
+ select: AppPermissionDefaultSelect;
4874
+ };
4875
+ appPermissionDefaultEdge?: {
4876
+ select: AppPermissionDefaultEdgeSelect;
4877
+ };
4878
+ };
4879
+ export interface CreateAppLimitCreditCodePayload {
4880
+ clientMutationId?: string | null;
4881
+ /** The `AppLimitCreditCode` that was created by this mutation. */
4882
+ appLimitCreditCode?: AppLimitCreditCode | null;
4883
+ appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null;
4884
+ }
4885
+ export type CreateAppLimitCreditCodePayloadSelect = {
4886
+ clientMutationId?: boolean;
4887
+ appLimitCreditCode?: {
4888
+ select: AppLimitCreditCodeSelect;
4889
+ };
4890
+ appLimitCreditCodeEdge?: {
4891
+ select: AppLimitCreditCodeEdgeSelect;
4892
+ };
4893
+ };
4894
+ export interface UpdateAppLimitCreditCodePayload {
4895
+ clientMutationId?: string | null;
4896
+ /** The `AppLimitCreditCode` that was updated by this mutation. */
4897
+ appLimitCreditCode?: AppLimitCreditCode | null;
4898
+ appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null;
4899
+ }
4900
+ export type UpdateAppLimitCreditCodePayloadSelect = {
4901
+ clientMutationId?: boolean;
4902
+ appLimitCreditCode?: {
4903
+ select: AppLimitCreditCodeSelect;
4904
+ };
4905
+ appLimitCreditCodeEdge?: {
4906
+ select: AppLimitCreditCodeEdgeSelect;
4907
+ };
4908
+ };
4909
+ export interface DeleteAppLimitCreditCodePayload {
4910
+ clientMutationId?: string | null;
4911
+ /** The `AppLimitCreditCode` that was deleted by this mutation. */
4912
+ appLimitCreditCode?: AppLimitCreditCode | null;
4913
+ appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null;
3684
4914
  }
3685
- export type DeleteAppPermissionDefaultPayloadSelect = {
4915
+ export type DeleteAppLimitCreditCodePayloadSelect = {
3686
4916
  clientMutationId?: boolean;
3687
- appPermissionDefault?: {
3688
- select: AppPermissionDefaultSelect;
4917
+ appLimitCreditCode?: {
4918
+ select: AppLimitCreditCodeSelect;
3689
4919
  };
3690
- appPermissionDefaultEdge?: {
3691
- select: AppPermissionDefaultEdgeSelect;
4920
+ appLimitCreditCodeEdge?: {
4921
+ select: AppLimitCreditCodeEdgeSelect;
3692
4922
  };
3693
4923
  };
3694
4924
  export interface CreateOrgPermissionDefaultPayload {
@@ -3916,6 +5146,186 @@ export type DeleteAppStepPayloadSelect = {
3916
5146
  select: AppStepEdgeSelect;
3917
5147
  };
3918
5148
  };
5149
+ export interface CreateAppLimitCapsDefaultPayload {
5150
+ clientMutationId?: string | null;
5151
+ /** The `AppLimitCapsDefault` that was created by this mutation. */
5152
+ appLimitCapsDefault?: AppLimitCapsDefault | null;
5153
+ appLimitCapsDefaultEdge?: AppLimitCapsDefaultEdge | null;
5154
+ }
5155
+ export type CreateAppLimitCapsDefaultPayloadSelect = {
5156
+ clientMutationId?: boolean;
5157
+ appLimitCapsDefault?: {
5158
+ select: AppLimitCapsDefaultSelect;
5159
+ };
5160
+ appLimitCapsDefaultEdge?: {
5161
+ select: AppLimitCapsDefaultEdgeSelect;
5162
+ };
5163
+ };
5164
+ export interface UpdateAppLimitCapsDefaultPayload {
5165
+ clientMutationId?: string | null;
5166
+ /** The `AppLimitCapsDefault` that was updated by this mutation. */
5167
+ appLimitCapsDefault?: AppLimitCapsDefault | null;
5168
+ appLimitCapsDefaultEdge?: AppLimitCapsDefaultEdge | null;
5169
+ }
5170
+ export type UpdateAppLimitCapsDefaultPayloadSelect = {
5171
+ clientMutationId?: boolean;
5172
+ appLimitCapsDefault?: {
5173
+ select: AppLimitCapsDefaultSelect;
5174
+ };
5175
+ appLimitCapsDefaultEdge?: {
5176
+ select: AppLimitCapsDefaultEdgeSelect;
5177
+ };
5178
+ };
5179
+ export interface DeleteAppLimitCapsDefaultPayload {
5180
+ clientMutationId?: string | null;
5181
+ /** The `AppLimitCapsDefault` that was deleted by this mutation. */
5182
+ appLimitCapsDefault?: AppLimitCapsDefault | null;
5183
+ appLimitCapsDefaultEdge?: AppLimitCapsDefaultEdge | null;
5184
+ }
5185
+ export type DeleteAppLimitCapsDefaultPayloadSelect = {
5186
+ clientMutationId?: boolean;
5187
+ appLimitCapsDefault?: {
5188
+ select: AppLimitCapsDefaultSelect;
5189
+ };
5190
+ appLimitCapsDefaultEdge?: {
5191
+ select: AppLimitCapsDefaultEdgeSelect;
5192
+ };
5193
+ };
5194
+ export interface CreateOrgLimitCapsDefaultPayload {
5195
+ clientMutationId?: string | null;
5196
+ /** The `OrgLimitCapsDefault` that was created by this mutation. */
5197
+ orgLimitCapsDefault?: OrgLimitCapsDefault | null;
5198
+ orgLimitCapsDefaultEdge?: OrgLimitCapsDefaultEdge | null;
5199
+ }
5200
+ export type CreateOrgLimitCapsDefaultPayloadSelect = {
5201
+ clientMutationId?: boolean;
5202
+ orgLimitCapsDefault?: {
5203
+ select: OrgLimitCapsDefaultSelect;
5204
+ };
5205
+ orgLimitCapsDefaultEdge?: {
5206
+ select: OrgLimitCapsDefaultEdgeSelect;
5207
+ };
5208
+ };
5209
+ export interface UpdateOrgLimitCapsDefaultPayload {
5210
+ clientMutationId?: string | null;
5211
+ /** The `OrgLimitCapsDefault` that was updated by this mutation. */
5212
+ orgLimitCapsDefault?: OrgLimitCapsDefault | null;
5213
+ orgLimitCapsDefaultEdge?: OrgLimitCapsDefaultEdge | null;
5214
+ }
5215
+ export type UpdateOrgLimitCapsDefaultPayloadSelect = {
5216
+ clientMutationId?: boolean;
5217
+ orgLimitCapsDefault?: {
5218
+ select: OrgLimitCapsDefaultSelect;
5219
+ };
5220
+ orgLimitCapsDefaultEdge?: {
5221
+ select: OrgLimitCapsDefaultEdgeSelect;
5222
+ };
5223
+ };
5224
+ export interface DeleteOrgLimitCapsDefaultPayload {
5225
+ clientMutationId?: string | null;
5226
+ /** The `OrgLimitCapsDefault` that was deleted by this mutation. */
5227
+ orgLimitCapsDefault?: OrgLimitCapsDefault | null;
5228
+ orgLimitCapsDefaultEdge?: OrgLimitCapsDefaultEdge | null;
5229
+ }
5230
+ export type DeleteOrgLimitCapsDefaultPayloadSelect = {
5231
+ clientMutationId?: boolean;
5232
+ orgLimitCapsDefault?: {
5233
+ select: OrgLimitCapsDefaultSelect;
5234
+ };
5235
+ orgLimitCapsDefaultEdge?: {
5236
+ select: OrgLimitCapsDefaultEdgeSelect;
5237
+ };
5238
+ };
5239
+ export interface CreateAppLimitCapPayload {
5240
+ clientMutationId?: string | null;
5241
+ /** The `AppLimitCap` that was created by this mutation. */
5242
+ appLimitCap?: AppLimitCap | null;
5243
+ appLimitCapEdge?: AppLimitCapEdge | null;
5244
+ }
5245
+ export type CreateAppLimitCapPayloadSelect = {
5246
+ clientMutationId?: boolean;
5247
+ appLimitCap?: {
5248
+ select: AppLimitCapSelect;
5249
+ };
5250
+ appLimitCapEdge?: {
5251
+ select: AppLimitCapEdgeSelect;
5252
+ };
5253
+ };
5254
+ export interface UpdateAppLimitCapPayload {
5255
+ clientMutationId?: string | null;
5256
+ /** The `AppLimitCap` that was updated by this mutation. */
5257
+ appLimitCap?: AppLimitCap | null;
5258
+ appLimitCapEdge?: AppLimitCapEdge | null;
5259
+ }
5260
+ export type UpdateAppLimitCapPayloadSelect = {
5261
+ clientMutationId?: boolean;
5262
+ appLimitCap?: {
5263
+ select: AppLimitCapSelect;
5264
+ };
5265
+ appLimitCapEdge?: {
5266
+ select: AppLimitCapEdgeSelect;
5267
+ };
5268
+ };
5269
+ export interface DeleteAppLimitCapPayload {
5270
+ clientMutationId?: string | null;
5271
+ /** The `AppLimitCap` that was deleted by this mutation. */
5272
+ appLimitCap?: AppLimitCap | null;
5273
+ appLimitCapEdge?: AppLimitCapEdge | null;
5274
+ }
5275
+ export type DeleteAppLimitCapPayloadSelect = {
5276
+ clientMutationId?: boolean;
5277
+ appLimitCap?: {
5278
+ select: AppLimitCapSelect;
5279
+ };
5280
+ appLimitCapEdge?: {
5281
+ select: AppLimitCapEdgeSelect;
5282
+ };
5283
+ };
5284
+ export interface CreateOrgLimitCapPayload {
5285
+ clientMutationId?: string | null;
5286
+ /** The `OrgLimitCap` that was created by this mutation. */
5287
+ orgLimitCap?: OrgLimitCap | null;
5288
+ orgLimitCapEdge?: OrgLimitCapEdge | null;
5289
+ }
5290
+ export type CreateOrgLimitCapPayloadSelect = {
5291
+ clientMutationId?: boolean;
5292
+ orgLimitCap?: {
5293
+ select: OrgLimitCapSelect;
5294
+ };
5295
+ orgLimitCapEdge?: {
5296
+ select: OrgLimitCapEdgeSelect;
5297
+ };
5298
+ };
5299
+ export interface UpdateOrgLimitCapPayload {
5300
+ clientMutationId?: string | null;
5301
+ /** The `OrgLimitCap` that was updated by this mutation. */
5302
+ orgLimitCap?: OrgLimitCap | null;
5303
+ orgLimitCapEdge?: OrgLimitCapEdge | null;
5304
+ }
5305
+ export type UpdateOrgLimitCapPayloadSelect = {
5306
+ clientMutationId?: boolean;
5307
+ orgLimitCap?: {
5308
+ select: OrgLimitCapSelect;
5309
+ };
5310
+ orgLimitCapEdge?: {
5311
+ select: OrgLimitCapEdgeSelect;
5312
+ };
5313
+ };
5314
+ export interface DeleteOrgLimitCapPayload {
5315
+ clientMutationId?: string | null;
5316
+ /** The `OrgLimitCap` that was deleted by this mutation. */
5317
+ orgLimitCap?: OrgLimitCap | null;
5318
+ orgLimitCapEdge?: OrgLimitCapEdge | null;
5319
+ }
5320
+ export type DeleteOrgLimitCapPayloadSelect = {
5321
+ clientMutationId?: boolean;
5322
+ orgLimitCap?: {
5323
+ select: OrgLimitCapSelect;
5324
+ };
5325
+ orgLimitCapEdge?: {
5326
+ select: OrgLimitCapEdgeSelect;
5327
+ };
5328
+ };
3919
5329
  export interface CreateOrgAdminGrantPayload {
3920
5330
  clientMutationId?: string | null;
3921
5331
  /** The `OrgAdminGrant` that was created by this mutation. */
@@ -4141,6 +5551,51 @@ export type DeleteOrgLimitDefaultPayloadSelect = {
4141
5551
  select: OrgLimitDefaultEdgeSelect;
4142
5552
  };
4143
5553
  };
5554
+ export interface CreateOrgLimitCreditPayload {
5555
+ clientMutationId?: string | null;
5556
+ /** The `OrgLimitCredit` that was created by this mutation. */
5557
+ orgLimitCredit?: OrgLimitCredit | null;
5558
+ orgLimitCreditEdge?: OrgLimitCreditEdge | null;
5559
+ }
5560
+ export type CreateOrgLimitCreditPayloadSelect = {
5561
+ clientMutationId?: boolean;
5562
+ orgLimitCredit?: {
5563
+ select: OrgLimitCreditSelect;
5564
+ };
5565
+ orgLimitCreditEdge?: {
5566
+ select: OrgLimitCreditEdgeSelect;
5567
+ };
5568
+ };
5569
+ export interface UpdateOrgLimitCreditPayload {
5570
+ clientMutationId?: string | null;
5571
+ /** The `OrgLimitCredit` that was updated by this mutation. */
5572
+ orgLimitCredit?: OrgLimitCredit | null;
5573
+ orgLimitCreditEdge?: OrgLimitCreditEdge | null;
5574
+ }
5575
+ export type UpdateOrgLimitCreditPayloadSelect = {
5576
+ clientMutationId?: boolean;
5577
+ orgLimitCredit?: {
5578
+ select: OrgLimitCreditSelect;
5579
+ };
5580
+ orgLimitCreditEdge?: {
5581
+ select: OrgLimitCreditEdgeSelect;
5582
+ };
5583
+ };
5584
+ export interface DeleteOrgLimitCreditPayload {
5585
+ clientMutationId?: string | null;
5586
+ /** The `OrgLimitCredit` that was deleted by this mutation. */
5587
+ orgLimitCredit?: OrgLimitCredit | null;
5588
+ orgLimitCreditEdge?: OrgLimitCreditEdge | null;
5589
+ }
5590
+ export type DeleteOrgLimitCreditPayloadSelect = {
5591
+ clientMutationId?: boolean;
5592
+ orgLimitCredit?: {
5593
+ select: OrgLimitCreditSelect;
5594
+ };
5595
+ orgLimitCreditEdge?: {
5596
+ select: OrgLimitCreditEdgeSelect;
5597
+ };
5598
+ };
4144
5599
  export interface CreateOrgChartEdgeGrantPayload {
4145
5600
  clientMutationId?: string | null;
4146
5601
  /** The `OrgChartEdgeGrant` that was created by this mutation. */
@@ -4523,96 +5978,6 @@ export type DeleteOrgChartEdgePayloadSelect = {
4523
5978
  select: OrgChartEdgeEdgeSelect;
4524
5979
  };
4525
5980
  };
4526
- export interface CreateAppLimitPayload {
4527
- clientMutationId?: string | null;
4528
- /** The `AppLimit` that was created by this mutation. */
4529
- appLimit?: AppLimit | null;
4530
- appLimitEdge?: AppLimitEdge | null;
4531
- }
4532
- export type CreateAppLimitPayloadSelect = {
4533
- clientMutationId?: boolean;
4534
- appLimit?: {
4535
- select: AppLimitSelect;
4536
- };
4537
- appLimitEdge?: {
4538
- select: AppLimitEdgeSelect;
4539
- };
4540
- };
4541
- export interface UpdateAppLimitPayload {
4542
- clientMutationId?: string | null;
4543
- /** The `AppLimit` that was updated by this mutation. */
4544
- appLimit?: AppLimit | null;
4545
- appLimitEdge?: AppLimitEdge | null;
4546
- }
4547
- export type UpdateAppLimitPayloadSelect = {
4548
- clientMutationId?: boolean;
4549
- appLimit?: {
4550
- select: AppLimitSelect;
4551
- };
4552
- appLimitEdge?: {
4553
- select: AppLimitEdgeSelect;
4554
- };
4555
- };
4556
- export interface DeleteAppLimitPayload {
4557
- clientMutationId?: string | null;
4558
- /** The `AppLimit` that was deleted by this mutation. */
4559
- appLimit?: AppLimit | null;
4560
- appLimitEdge?: AppLimitEdge | null;
4561
- }
4562
- export type DeleteAppLimitPayloadSelect = {
4563
- clientMutationId?: boolean;
4564
- appLimit?: {
4565
- select: AppLimitSelect;
4566
- };
4567
- appLimitEdge?: {
4568
- select: AppLimitEdgeSelect;
4569
- };
4570
- };
4571
- export interface CreateOrgLimitAggregatePayload {
4572
- clientMutationId?: string | null;
4573
- /** The `OrgLimitAggregate` that was created by this mutation. */
4574
- orgLimitAggregate?: OrgLimitAggregate | null;
4575
- orgLimitAggregateEdge?: OrgLimitAggregateEdge | null;
4576
- }
4577
- export type CreateOrgLimitAggregatePayloadSelect = {
4578
- clientMutationId?: boolean;
4579
- orgLimitAggregate?: {
4580
- select: OrgLimitAggregateSelect;
4581
- };
4582
- orgLimitAggregateEdge?: {
4583
- select: OrgLimitAggregateEdgeSelect;
4584
- };
4585
- };
4586
- export interface UpdateOrgLimitAggregatePayload {
4587
- clientMutationId?: string | null;
4588
- /** The `OrgLimitAggregate` that was updated by this mutation. */
4589
- orgLimitAggregate?: OrgLimitAggregate | null;
4590
- orgLimitAggregateEdge?: OrgLimitAggregateEdge | null;
4591
- }
4592
- export type UpdateOrgLimitAggregatePayloadSelect = {
4593
- clientMutationId?: boolean;
4594
- orgLimitAggregate?: {
4595
- select: OrgLimitAggregateSelect;
4596
- };
4597
- orgLimitAggregateEdge?: {
4598
- select: OrgLimitAggregateEdgeSelect;
4599
- };
4600
- };
4601
- export interface DeleteOrgLimitAggregatePayload {
4602
- clientMutationId?: string | null;
4603
- /** The `OrgLimitAggregate` that was deleted by this mutation. */
4604
- orgLimitAggregate?: OrgLimitAggregate | null;
4605
- orgLimitAggregateEdge?: OrgLimitAggregateEdge | null;
4606
- }
4607
- export type DeleteOrgLimitAggregatePayloadSelect = {
4608
- clientMutationId?: boolean;
4609
- orgLimitAggregate?: {
4610
- select: OrgLimitAggregateSelect;
4611
- };
4612
- orgLimitAggregateEdge?: {
4613
- select: OrgLimitAggregateEdgeSelect;
4614
- };
4615
- };
4616
5981
  export interface CreateOrgMemberProfilePayload {
4617
5982
  clientMutationId?: string | null;
4618
5983
  /** The `OrgMemberProfile` that was created by this mutation. */
@@ -4658,94 +6023,94 @@ export type DeleteOrgMemberProfilePayloadSelect = {
4658
6023
  select: OrgMemberProfileEdgeSelect;
4659
6024
  };
4660
6025
  };
4661
- export interface CreateOrgLimitPayload {
6026
+ export interface CreateAppLevelPayload {
4662
6027
  clientMutationId?: string | null;
4663
- /** The `OrgLimit` that was created by this mutation. */
4664
- orgLimit?: OrgLimit | null;
4665
- orgLimitEdge?: OrgLimitEdge | null;
6028
+ /** The `AppLevel` that was created by this mutation. */
6029
+ appLevel?: AppLevel | null;
6030
+ appLevelEdge?: AppLevelEdge | null;
4666
6031
  }
4667
- export type CreateOrgLimitPayloadSelect = {
6032
+ export type CreateAppLevelPayloadSelect = {
4668
6033
  clientMutationId?: boolean;
4669
- orgLimit?: {
4670
- select: OrgLimitSelect;
6034
+ appLevel?: {
6035
+ select: AppLevelSelect;
4671
6036
  };
4672
- orgLimitEdge?: {
4673
- select: OrgLimitEdgeSelect;
6037
+ appLevelEdge?: {
6038
+ select: AppLevelEdgeSelect;
4674
6039
  };
4675
6040
  };
4676
- export interface UpdateOrgLimitPayload {
6041
+ export interface UpdateAppLevelPayload {
4677
6042
  clientMutationId?: string | null;
4678
- /** The `OrgLimit` that was updated by this mutation. */
4679
- orgLimit?: OrgLimit | null;
4680
- orgLimitEdge?: OrgLimitEdge | null;
6043
+ /** The `AppLevel` that was updated by this mutation. */
6044
+ appLevel?: AppLevel | null;
6045
+ appLevelEdge?: AppLevelEdge | null;
4681
6046
  }
4682
- export type UpdateOrgLimitPayloadSelect = {
6047
+ export type UpdateAppLevelPayloadSelect = {
4683
6048
  clientMutationId?: boolean;
4684
- orgLimit?: {
4685
- select: OrgLimitSelect;
6049
+ appLevel?: {
6050
+ select: AppLevelSelect;
4686
6051
  };
4687
- orgLimitEdge?: {
4688
- select: OrgLimitEdgeSelect;
6052
+ appLevelEdge?: {
6053
+ select: AppLevelEdgeSelect;
4689
6054
  };
4690
6055
  };
4691
- export interface DeleteOrgLimitPayload {
6056
+ export interface DeleteAppLevelPayload {
4692
6057
  clientMutationId?: string | null;
4693
- /** The `OrgLimit` that was deleted by this mutation. */
4694
- orgLimit?: OrgLimit | null;
4695
- orgLimitEdge?: OrgLimitEdge | null;
6058
+ /** The `AppLevel` that was deleted by this mutation. */
6059
+ appLevel?: AppLevel | null;
6060
+ appLevelEdge?: AppLevelEdge | null;
4696
6061
  }
4697
- export type DeleteOrgLimitPayloadSelect = {
6062
+ export type DeleteAppLevelPayloadSelect = {
4698
6063
  clientMutationId?: boolean;
4699
- orgLimit?: {
4700
- select: OrgLimitSelect;
6064
+ appLevel?: {
6065
+ select: AppLevelSelect;
4701
6066
  };
4702
- orgLimitEdge?: {
4703
- select: OrgLimitEdgeSelect;
6067
+ appLevelEdge?: {
6068
+ select: AppLevelEdgeSelect;
4704
6069
  };
4705
6070
  };
4706
- export interface CreateAppLevelPayload {
6071
+ export interface CreateAppLimitPayload {
4707
6072
  clientMutationId?: string | null;
4708
- /** The `AppLevel` that was created by this mutation. */
4709
- appLevel?: AppLevel | null;
4710
- appLevelEdge?: AppLevelEdge | null;
6073
+ /** The `AppLimit` that was created by this mutation. */
6074
+ appLimit?: AppLimit | null;
6075
+ appLimitEdge?: AppLimitEdge | null;
4711
6076
  }
4712
- export type CreateAppLevelPayloadSelect = {
6077
+ export type CreateAppLimitPayloadSelect = {
4713
6078
  clientMutationId?: boolean;
4714
- appLevel?: {
4715
- select: AppLevelSelect;
6079
+ appLimit?: {
6080
+ select: AppLimitSelect;
4716
6081
  };
4717
- appLevelEdge?: {
4718
- select: AppLevelEdgeSelect;
6082
+ appLimitEdge?: {
6083
+ select: AppLimitEdgeSelect;
4719
6084
  };
4720
6085
  };
4721
- export interface UpdateAppLevelPayload {
6086
+ export interface UpdateAppLimitPayload {
4722
6087
  clientMutationId?: string | null;
4723
- /** The `AppLevel` that was updated by this mutation. */
4724
- appLevel?: AppLevel | null;
4725
- appLevelEdge?: AppLevelEdge | null;
6088
+ /** The `AppLimit` that was updated by this mutation. */
6089
+ appLimit?: AppLimit | null;
6090
+ appLimitEdge?: AppLimitEdge | null;
4726
6091
  }
4727
- export type UpdateAppLevelPayloadSelect = {
6092
+ export type UpdateAppLimitPayloadSelect = {
4728
6093
  clientMutationId?: boolean;
4729
- appLevel?: {
4730
- select: AppLevelSelect;
6094
+ appLimit?: {
6095
+ select: AppLimitSelect;
4731
6096
  };
4732
- appLevelEdge?: {
4733
- select: AppLevelEdgeSelect;
6097
+ appLimitEdge?: {
6098
+ select: AppLimitEdgeSelect;
4734
6099
  };
4735
6100
  };
4736
- export interface DeleteAppLevelPayload {
6101
+ export interface DeleteAppLimitPayload {
4737
6102
  clientMutationId?: string | null;
4738
- /** The `AppLevel` that was deleted by this mutation. */
4739
- appLevel?: AppLevel | null;
4740
- appLevelEdge?: AppLevelEdge | null;
6103
+ /** The `AppLimit` that was deleted by this mutation. */
6104
+ appLimit?: AppLimit | null;
6105
+ appLimitEdge?: AppLimitEdge | null;
4741
6106
  }
4742
- export type DeleteAppLevelPayloadSelect = {
6107
+ export type DeleteAppLimitPayloadSelect = {
4743
6108
  clientMutationId?: boolean;
4744
- appLevel?: {
4745
- select: AppLevelSelect;
6109
+ appLimit?: {
6110
+ select: AppLimitSelect;
4746
6111
  };
4747
- appLevelEdge?: {
4748
- select: AppLevelEdgeSelect;
6112
+ appLimitEdge?: {
6113
+ select: AppLimitEdgeSelect;
4749
6114
  };
4750
6115
  };
4751
6116
  export interface CreateAppInvitePayload {
@@ -4838,6 +6203,96 @@ export type DeleteOrgMembershipSettingPayloadSelect = {
4838
6203
  select: OrgMembershipSettingEdgeSelect;
4839
6204
  };
4840
6205
  };
6206
+ export interface CreateOrgLimitAggregatePayload {
6207
+ clientMutationId?: string | null;
6208
+ /** The `OrgLimitAggregate` that was created by this mutation. */
6209
+ orgLimitAggregate?: OrgLimitAggregate | null;
6210
+ orgLimitAggregateEdge?: OrgLimitAggregateEdge | null;
6211
+ }
6212
+ export type CreateOrgLimitAggregatePayloadSelect = {
6213
+ clientMutationId?: boolean;
6214
+ orgLimitAggregate?: {
6215
+ select: OrgLimitAggregateSelect;
6216
+ };
6217
+ orgLimitAggregateEdge?: {
6218
+ select: OrgLimitAggregateEdgeSelect;
6219
+ };
6220
+ };
6221
+ export interface UpdateOrgLimitAggregatePayload {
6222
+ clientMutationId?: string | null;
6223
+ /** The `OrgLimitAggregate` that was updated by this mutation. */
6224
+ orgLimitAggregate?: OrgLimitAggregate | null;
6225
+ orgLimitAggregateEdge?: OrgLimitAggregateEdge | null;
6226
+ }
6227
+ export type UpdateOrgLimitAggregatePayloadSelect = {
6228
+ clientMutationId?: boolean;
6229
+ orgLimitAggregate?: {
6230
+ select: OrgLimitAggregateSelect;
6231
+ };
6232
+ orgLimitAggregateEdge?: {
6233
+ select: OrgLimitAggregateEdgeSelect;
6234
+ };
6235
+ };
6236
+ export interface DeleteOrgLimitAggregatePayload {
6237
+ clientMutationId?: string | null;
6238
+ /** The `OrgLimitAggregate` that was deleted by this mutation. */
6239
+ orgLimitAggregate?: OrgLimitAggregate | null;
6240
+ orgLimitAggregateEdge?: OrgLimitAggregateEdge | null;
6241
+ }
6242
+ export type DeleteOrgLimitAggregatePayloadSelect = {
6243
+ clientMutationId?: boolean;
6244
+ orgLimitAggregate?: {
6245
+ select: OrgLimitAggregateSelect;
6246
+ };
6247
+ orgLimitAggregateEdge?: {
6248
+ select: OrgLimitAggregateEdgeSelect;
6249
+ };
6250
+ };
6251
+ export interface CreateOrgLimitPayload {
6252
+ clientMutationId?: string | null;
6253
+ /** The `OrgLimit` that was created by this mutation. */
6254
+ orgLimit?: OrgLimit | null;
6255
+ orgLimitEdge?: OrgLimitEdge | null;
6256
+ }
6257
+ export type CreateOrgLimitPayloadSelect = {
6258
+ clientMutationId?: boolean;
6259
+ orgLimit?: {
6260
+ select: OrgLimitSelect;
6261
+ };
6262
+ orgLimitEdge?: {
6263
+ select: OrgLimitEdgeSelect;
6264
+ };
6265
+ };
6266
+ export interface UpdateOrgLimitPayload {
6267
+ clientMutationId?: string | null;
6268
+ /** The `OrgLimit` that was updated by this mutation. */
6269
+ orgLimit?: OrgLimit | null;
6270
+ orgLimitEdge?: OrgLimitEdge | null;
6271
+ }
6272
+ export type UpdateOrgLimitPayloadSelect = {
6273
+ clientMutationId?: boolean;
6274
+ orgLimit?: {
6275
+ select: OrgLimitSelect;
6276
+ };
6277
+ orgLimitEdge?: {
6278
+ select: OrgLimitEdgeSelect;
6279
+ };
6280
+ };
6281
+ export interface DeleteOrgLimitPayload {
6282
+ clientMutationId?: string | null;
6283
+ /** The `OrgLimit` that was deleted by this mutation. */
6284
+ orgLimit?: OrgLimit | null;
6285
+ orgLimitEdge?: OrgLimitEdge | null;
6286
+ }
6287
+ export type DeleteOrgLimitPayloadSelect = {
6288
+ clientMutationId?: boolean;
6289
+ orgLimit?: {
6290
+ select: OrgLimitSelect;
6291
+ };
6292
+ orgLimitEdge?: {
6293
+ select: OrgLimitEdgeSelect;
6294
+ };
6295
+ };
4841
6296
  export interface CreateOrgInvitePayload {
4842
6297
  clientMutationId?: string | null;
4843
6298
  /** The `OrgInvite` that was created by this mutation. */
@@ -5026,6 +6481,42 @@ export type AppLevelRequirementEdgeSelect = {
5026
6481
  select: AppLevelRequirementSelect;
5027
6482
  };
5028
6483
  };
6484
+ /** A `AppLimitCreditRedemption` edge in the connection. */
6485
+ export interface AppLimitCreditRedemptionEdge {
6486
+ cursor?: string | null;
6487
+ /** The `AppLimitCreditRedemption` at the end of the edge. */
6488
+ node?: AppLimitCreditRedemption | null;
6489
+ }
6490
+ export type AppLimitCreditRedemptionEdgeSelect = {
6491
+ cursor?: boolean;
6492
+ node?: {
6493
+ select: AppLimitCreditRedemptionSelect;
6494
+ };
6495
+ };
6496
+ /** A `AppLimitCreditCodeItem` edge in the connection. */
6497
+ export interface AppLimitCreditCodeItemEdge {
6498
+ cursor?: string | null;
6499
+ /** The `AppLimitCreditCodeItem` at the end of the edge. */
6500
+ node?: AppLimitCreditCodeItem | null;
6501
+ }
6502
+ export type AppLimitCreditCodeItemEdgeSelect = {
6503
+ cursor?: boolean;
6504
+ node?: {
6505
+ select: AppLimitCreditCodeItemSelect;
6506
+ };
6507
+ };
6508
+ /** A `AppLimitCredit` edge in the connection. */
6509
+ export interface AppLimitCreditEdge {
6510
+ cursor?: string | null;
6511
+ /** The `AppLimitCredit` at the end of the edge. */
6512
+ node?: AppLimitCredit | null;
6513
+ }
6514
+ export type AppLimitCreditEdgeSelect = {
6515
+ cursor?: boolean;
6516
+ node?: {
6517
+ select: AppLimitCreditSelect;
6518
+ };
6519
+ };
5029
6520
  /** A `OrgMember` edge in the connection. */
5030
6521
  export interface OrgMemberEdge {
5031
6522
  cursor?: string | null;
@@ -5050,6 +6541,18 @@ export type AppPermissionDefaultEdgeSelect = {
5050
6541
  select: AppPermissionDefaultSelect;
5051
6542
  };
5052
6543
  };
6544
+ /** A `AppLimitCreditCode` edge in the connection. */
6545
+ export interface AppLimitCreditCodeEdge {
6546
+ cursor?: string | null;
6547
+ /** The `AppLimitCreditCode` at the end of the edge. */
6548
+ node?: AppLimitCreditCode | null;
6549
+ }
6550
+ export type AppLimitCreditCodeEdgeSelect = {
6551
+ cursor?: boolean;
6552
+ node?: {
6553
+ select: AppLimitCreditCodeSelect;
6554
+ };
6555
+ };
5053
6556
  /** A `OrgPermissionDefault` edge in the connection. */
5054
6557
  export interface OrgPermissionDefaultEdge {
5055
6558
  cursor?: string | null;
@@ -5110,6 +6613,54 @@ export type AppStepEdgeSelect = {
5110
6613
  select: AppStepSelect;
5111
6614
  };
5112
6615
  };
6616
+ /** A `AppLimitCapsDefault` edge in the connection. */
6617
+ export interface AppLimitCapsDefaultEdge {
6618
+ cursor?: string | null;
6619
+ /** The `AppLimitCapsDefault` at the end of the edge. */
6620
+ node?: AppLimitCapsDefault | null;
6621
+ }
6622
+ export type AppLimitCapsDefaultEdgeSelect = {
6623
+ cursor?: boolean;
6624
+ node?: {
6625
+ select: AppLimitCapsDefaultSelect;
6626
+ };
6627
+ };
6628
+ /** A `OrgLimitCapsDefault` edge in the connection. */
6629
+ export interface OrgLimitCapsDefaultEdge {
6630
+ cursor?: string | null;
6631
+ /** The `OrgLimitCapsDefault` at the end of the edge. */
6632
+ node?: OrgLimitCapsDefault | null;
6633
+ }
6634
+ export type OrgLimitCapsDefaultEdgeSelect = {
6635
+ cursor?: boolean;
6636
+ node?: {
6637
+ select: OrgLimitCapsDefaultSelect;
6638
+ };
6639
+ };
6640
+ /** A `AppLimitCap` edge in the connection. */
6641
+ export interface AppLimitCapEdge {
6642
+ cursor?: string | null;
6643
+ /** The `AppLimitCap` at the end of the edge. */
6644
+ node?: AppLimitCap | null;
6645
+ }
6646
+ export type AppLimitCapEdgeSelect = {
6647
+ cursor?: boolean;
6648
+ node?: {
6649
+ select: AppLimitCapSelect;
6650
+ };
6651
+ };
6652
+ /** A `OrgLimitCap` edge in the connection. */
6653
+ export interface OrgLimitCapEdge {
6654
+ cursor?: string | null;
6655
+ /** The `OrgLimitCap` at the end of the edge. */
6656
+ node?: OrgLimitCap | null;
6657
+ }
6658
+ export type OrgLimitCapEdgeSelect = {
6659
+ cursor?: boolean;
6660
+ node?: {
6661
+ select: OrgLimitCapSelect;
6662
+ };
6663
+ };
5113
6664
  /** A `OrgAdminGrant` edge in the connection. */
5114
6665
  export interface OrgAdminGrantEdge {
5115
6666
  cursor?: string | null;
@@ -5170,6 +6721,18 @@ export type OrgLimitDefaultEdgeSelect = {
5170
6721
  select: OrgLimitDefaultSelect;
5171
6722
  };
5172
6723
  };
6724
+ /** A `OrgLimitCredit` edge in the connection. */
6725
+ export interface OrgLimitCreditEdge {
6726
+ cursor?: string | null;
6727
+ /** The `OrgLimitCredit` at the end of the edge. */
6728
+ node?: OrgLimitCredit | null;
6729
+ }
6730
+ export type OrgLimitCreditEdgeSelect = {
6731
+ cursor?: boolean;
6732
+ node?: {
6733
+ select: OrgLimitCreditSelect;
6734
+ };
6735
+ };
5173
6736
  /** A `OrgChartEdgeGrant` edge in the connection. */
5174
6737
  export interface OrgChartEdgeGrantEdge {
5175
6738
  cursor?: string | null;
@@ -5266,30 +6829,6 @@ export type OrgChartEdgeEdgeSelect = {
5266
6829
  select: OrgChartEdgeSelect;
5267
6830
  };
5268
6831
  };
5269
- /** A `AppLimit` edge in the connection. */
5270
- export interface AppLimitEdge {
5271
- cursor?: string | null;
5272
- /** The `AppLimit` at the end of the edge. */
5273
- node?: AppLimit | null;
5274
- }
5275
- export type AppLimitEdgeSelect = {
5276
- cursor?: boolean;
5277
- node?: {
5278
- select: AppLimitSelect;
5279
- };
5280
- };
5281
- /** A `OrgLimitAggregate` edge in the connection. */
5282
- export interface OrgLimitAggregateEdge {
5283
- cursor?: string | null;
5284
- /** The `OrgLimitAggregate` at the end of the edge. */
5285
- node?: OrgLimitAggregate | null;
5286
- }
5287
- export type OrgLimitAggregateEdgeSelect = {
5288
- cursor?: boolean;
5289
- node?: {
5290
- select: OrgLimitAggregateSelect;
5291
- };
5292
- };
5293
6832
  /** A `OrgMemberProfile` edge in the connection. */
5294
6833
  export interface OrgMemberProfileEdge {
5295
6834
  cursor?: string | null;
@@ -5302,18 +6841,6 @@ export type OrgMemberProfileEdgeSelect = {
5302
6841
  select: OrgMemberProfileSelect;
5303
6842
  };
5304
6843
  };
5305
- /** A `OrgLimit` edge in the connection. */
5306
- export interface OrgLimitEdge {
5307
- cursor?: string | null;
5308
- /** The `OrgLimit` at the end of the edge. */
5309
- node?: OrgLimit | null;
5310
- }
5311
- export type OrgLimitEdgeSelect = {
5312
- cursor?: boolean;
5313
- node?: {
5314
- select: OrgLimitSelect;
5315
- };
5316
- };
5317
6844
  /** A `AppLevel` edge in the connection. */
5318
6845
  export interface AppLevelEdge {
5319
6846
  cursor?: string | null;
@@ -5326,6 +6853,18 @@ export type AppLevelEdgeSelect = {
5326
6853
  select: AppLevelSelect;
5327
6854
  };
5328
6855
  };
6856
+ /** A `AppLimit` edge in the connection. */
6857
+ export interface AppLimitEdge {
6858
+ cursor?: string | null;
6859
+ /** The `AppLimit` at the end of the edge. */
6860
+ node?: AppLimit | null;
6861
+ }
6862
+ export type AppLimitEdgeSelect = {
6863
+ cursor?: boolean;
6864
+ node?: {
6865
+ select: AppLimitSelect;
6866
+ };
6867
+ };
5329
6868
  /** A `AppInvite` edge in the connection. */
5330
6869
  export interface AppInviteEdge {
5331
6870
  cursor?: string | null;
@@ -5350,6 +6889,30 @@ export type OrgMembershipSettingEdgeSelect = {
5350
6889
  select: OrgMembershipSettingSelect;
5351
6890
  };
5352
6891
  };
6892
+ /** A `OrgLimitAggregate` edge in the connection. */
6893
+ export interface OrgLimitAggregateEdge {
6894
+ cursor?: string | null;
6895
+ /** The `OrgLimitAggregate` at the end of the edge. */
6896
+ node?: OrgLimitAggregate | null;
6897
+ }
6898
+ export type OrgLimitAggregateEdgeSelect = {
6899
+ cursor?: boolean;
6900
+ node?: {
6901
+ select: OrgLimitAggregateSelect;
6902
+ };
6903
+ };
6904
+ /** A `OrgLimit` edge in the connection. */
6905
+ export interface OrgLimitEdge {
6906
+ cursor?: string | null;
6907
+ /** The `OrgLimit` at the end of the edge. */
6908
+ node?: OrgLimit | null;
6909
+ }
6910
+ export type OrgLimitEdgeSelect = {
6911
+ cursor?: boolean;
6912
+ node?: {
6913
+ select: OrgLimitSelect;
6914
+ };
6915
+ };
5353
6916
  /** A `OrgInvite` edge in the connection. */
5354
6917
  export interface OrgInviteEdge {
5355
6918
  cursor?: string | null;