@constructive-sdk/cli 0.21.5 → 0.21.7

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 (1329) hide show
  1. package/admin/cli/commands/app-achievement.js +1 -1
  2. package/admin/cli/commands/app-admin-grant.js +1 -1
  3. package/admin/cli/commands/app-claimed-invite.js +1 -1
  4. package/admin/cli/commands/app-grant.js +1 -1
  5. package/admin/cli/commands/app-invite.js +1 -1
  6. package/admin/cli/commands/app-level-requirement.js +1 -1
  7. package/admin/cli/commands/app-level.js +1 -1
  8. package/admin/cli/commands/app-limit-cap.js +1 -1
  9. package/admin/cli/commands/app-limit-caps-default.js +1 -1
  10. package/admin/cli/commands/app-limit-credit-code-item.js +1 -1
  11. package/admin/cli/commands/app-limit-credit-code.js +1 -1
  12. package/admin/cli/commands/app-limit-credit-redemption.js +1 -1
  13. package/admin/cli/commands/app-limit-credit.js +1 -1
  14. package/admin/cli/commands/app-limit-default.js +1 -1
  15. package/admin/cli/commands/app-limit-event.js +1 -1
  16. package/admin/cli/commands/app-limit.js +1 -1
  17. package/admin/cli/commands/app-membership-default.js +1 -1
  18. package/admin/cli/commands/app-membership.js +1 -1
  19. package/admin/cli/commands/app-owner-grant.js +1 -1
  20. package/admin/cli/commands/app-permission-default.js +1 -1
  21. package/admin/cli/commands/app-permission.js +1 -1
  22. package/admin/cli/commands/app-step.js +1 -1
  23. package/admin/cli/commands/membership-type.js +1 -1
  24. package/admin/cli/commands/org-admin-grant.js +1 -1
  25. package/admin/cli/commands/org-chart-edge-grant.js +1 -1
  26. package/admin/cli/commands/org-chart-edge.js +1 -1
  27. package/admin/cli/commands/org-claimed-invite.js +1 -1
  28. package/admin/cli/commands/org-get-managers-record.js +1 -1
  29. package/admin/cli/commands/org-get-subordinates-record.js +1 -1
  30. package/admin/cli/commands/org-grant.js +1 -1
  31. package/admin/cli/commands/org-invite.js +23 -1
  32. package/admin/cli/commands/org-limit-aggregate.js +1 -1
  33. package/admin/cli/commands/org-limit-cap.js +1 -1
  34. package/admin/cli/commands/org-limit-caps-default.js +1 -1
  35. package/admin/cli/commands/org-limit-credit.js +1 -1
  36. package/admin/cli/commands/org-limit-default.js +1 -1
  37. package/admin/cli/commands/org-limit-event.js +1 -1
  38. package/admin/cli/commands/org-limit.js +1 -1
  39. package/admin/cli/commands/org-member-profile.js +1 -1
  40. package/admin/cli/commands/org-member.js +1 -1
  41. package/admin/cli/commands/org-membership-default.js +1 -1
  42. package/admin/cli/commands/org-membership-setting.js +1 -1
  43. package/admin/cli/commands/org-membership.js +1 -1
  44. package/admin/cli/commands/org-owner-grant.js +1 -1
  45. package/admin/cli/commands/org-permission-default.js +1 -1
  46. package/admin/cli/commands/org-permission.js +1 -1
  47. package/admin/cli/commands/usage-snapshot.js +1 -1
  48. package/admin/cli/commands.js +3 -3
  49. package/admin/cli/executor.d.ts +1 -1
  50. package/admin/cli/utils.d.ts +2 -2
  51. package/admin/cli/utils.js +4 -2
  52. package/admin/orm/index.d.ts +2 -3
  53. package/admin/orm/index.js +3 -5
  54. package/admin/orm/input-types.d.ts +190 -183
  55. package/admin/orm/models/appAchievement.d.ts +2 -4
  56. package/admin/orm/models/appAchievement.js +6 -2
  57. package/admin/orm/models/appAdminGrant.d.ts +2 -4
  58. package/admin/orm/models/appAdminGrant.js +6 -2
  59. package/admin/orm/models/appClaimedInvite.d.ts +2 -4
  60. package/admin/orm/models/appClaimedInvite.js +6 -2
  61. package/admin/orm/models/appGrant.d.ts +2 -4
  62. package/admin/orm/models/appGrant.js +6 -2
  63. package/admin/orm/models/appInvite.d.ts +2 -4
  64. package/admin/orm/models/appInvite.js +6 -2
  65. package/admin/orm/models/appLevel.d.ts +2 -4
  66. package/admin/orm/models/appLevel.js +6 -2
  67. package/admin/orm/models/appLevelRequirement.d.ts +2 -4
  68. package/admin/orm/models/appLevelRequirement.js +6 -2
  69. package/admin/orm/models/appLimit.d.ts +2 -4
  70. package/admin/orm/models/appLimit.js +6 -2
  71. package/admin/orm/models/appLimitCap.d.ts +2 -4
  72. package/admin/orm/models/appLimitCap.js +6 -2
  73. package/admin/orm/models/appLimitCapsDefault.d.ts +2 -4
  74. package/admin/orm/models/appLimitCapsDefault.js +6 -2
  75. package/admin/orm/models/appLimitCredit.d.ts +2 -4
  76. package/admin/orm/models/appLimitCredit.js +6 -2
  77. package/admin/orm/models/appLimitCreditCode.d.ts +2 -4
  78. package/admin/orm/models/appLimitCreditCode.js +6 -2
  79. package/admin/orm/models/appLimitCreditCodeItem.d.ts +2 -4
  80. package/admin/orm/models/appLimitCreditCodeItem.js +6 -2
  81. package/admin/orm/models/appLimitCreditRedemption.d.ts +2 -4
  82. package/admin/orm/models/appLimitCreditRedemption.js +6 -2
  83. package/admin/orm/models/appLimitDefault.d.ts +2 -4
  84. package/admin/orm/models/appLimitDefault.js +6 -2
  85. package/admin/orm/models/appLimitEvent.d.ts +2 -4
  86. package/admin/orm/models/appLimitEvent.js +6 -2
  87. package/admin/orm/models/appMembership.d.ts +2 -4
  88. package/admin/orm/models/appMembership.js +6 -2
  89. package/admin/orm/models/appMembershipDefault.d.ts +2 -4
  90. package/admin/orm/models/appMembershipDefault.js +6 -2
  91. package/admin/orm/models/appOwnerGrant.d.ts +2 -4
  92. package/admin/orm/models/appOwnerGrant.js +6 -2
  93. package/admin/orm/models/appPermission.d.ts +2 -4
  94. package/admin/orm/models/appPermission.js +6 -2
  95. package/admin/orm/models/appPermissionDefault.d.ts +2 -4
  96. package/admin/orm/models/appPermissionDefault.js +6 -2
  97. package/admin/orm/models/appStep.d.ts +2 -4
  98. package/admin/orm/models/appStep.js +6 -2
  99. package/admin/orm/models/index.d.ts +1 -1
  100. package/admin/orm/models/index.js +3 -3
  101. package/admin/orm/models/membershipType.d.ts +2 -4
  102. package/admin/orm/models/membershipType.js +6 -2
  103. package/admin/orm/models/orgAdminGrant.d.ts +2 -4
  104. package/admin/orm/models/orgAdminGrant.js +6 -2
  105. package/admin/orm/models/orgChartEdge.d.ts +2 -4
  106. package/admin/orm/models/orgChartEdge.js +6 -2
  107. package/admin/orm/models/orgChartEdgeGrant.d.ts +2 -4
  108. package/admin/orm/models/orgChartEdgeGrant.js +6 -2
  109. package/admin/orm/models/orgClaimedInvite.d.ts +2 -4
  110. package/admin/orm/models/orgClaimedInvite.js +6 -2
  111. package/admin/orm/models/orgGetManagersRecord.d.ts +2 -4
  112. package/admin/orm/models/orgGetManagersRecord.js +6 -2
  113. package/admin/orm/models/orgGetSubordinatesRecord.d.ts +2 -4
  114. package/admin/orm/models/orgGetSubordinatesRecord.js +6 -2
  115. package/admin/orm/models/orgGrant.d.ts +2 -4
  116. package/admin/orm/models/orgGrant.js +6 -2
  117. package/admin/orm/models/orgInvite.d.ts +2 -4
  118. package/admin/orm/models/orgInvite.js +6 -2
  119. package/admin/orm/models/orgLimit.d.ts +2 -4
  120. package/admin/orm/models/orgLimit.js +6 -2
  121. package/admin/orm/models/orgLimitAggregate.d.ts +2 -4
  122. package/admin/orm/models/orgLimitAggregate.js +6 -2
  123. package/admin/orm/models/orgLimitCap.d.ts +2 -4
  124. package/admin/orm/models/orgLimitCap.js +6 -2
  125. package/admin/orm/models/orgLimitCapsDefault.d.ts +2 -4
  126. package/admin/orm/models/orgLimitCapsDefault.js +6 -2
  127. package/admin/orm/models/orgLimitCredit.d.ts +2 -4
  128. package/admin/orm/models/orgLimitCredit.js +6 -2
  129. package/admin/orm/models/orgLimitDefault.d.ts +2 -4
  130. package/admin/orm/models/orgLimitDefault.js +6 -2
  131. package/admin/orm/models/orgLimitEvent.d.ts +2 -4
  132. package/admin/orm/models/orgLimitEvent.js +6 -2
  133. package/admin/orm/models/orgMember.d.ts +2 -4
  134. package/admin/orm/models/orgMember.js +6 -2
  135. package/admin/orm/models/orgMemberProfile.d.ts +2 -4
  136. package/admin/orm/models/orgMemberProfile.js +6 -2
  137. package/admin/orm/models/orgMembership.d.ts +2 -4
  138. package/admin/orm/models/orgMembership.js +6 -2
  139. package/admin/orm/models/orgMembershipDefault.d.ts +2 -4
  140. package/admin/orm/models/orgMembershipDefault.js +6 -2
  141. package/admin/orm/models/orgMembershipSetting.d.ts +2 -4
  142. package/admin/orm/models/orgMembershipSetting.js +6 -2
  143. package/admin/orm/models/orgOwnerGrant.d.ts +2 -4
  144. package/admin/orm/models/orgOwnerGrant.js +6 -2
  145. package/admin/orm/models/orgPermission.d.ts +2 -4
  146. package/admin/orm/models/orgPermission.js +6 -2
  147. package/admin/orm/models/orgPermissionDefault.d.ts +2 -4
  148. package/admin/orm/models/orgPermissionDefault.js +6 -2
  149. package/admin/orm/models/usageSnapshot.d.ts +2 -4
  150. package/admin/orm/models/usageSnapshot.js +6 -2
  151. package/admin/orm/query-builder.d.ts +18 -1
  152. package/admin/orm/query-builder.js +112 -1
  153. package/admin/orm/select-types.d.ts +25 -1
  154. package/auth/cli/commands/audit-log.js +1 -1
  155. package/auth/cli/commands/crypto-address.js +1 -1
  156. package/auth/cli/commands/email.js +1 -1
  157. package/auth/cli/commands/identity-provider.js +1 -1
  158. package/auth/cli/commands/phone-number.js +1 -1
  159. package/auth/cli/commands/role-type.js +1 -1
  160. package/auth/cli/commands/user-connected-account.js +1 -1
  161. package/auth/cli/commands/user.js +1 -1
  162. package/auth/cli/commands/webauthn-credential.js +1 -1
  163. package/auth/cli/utils.d.ts +2 -2
  164. package/auth/cli/utils.js +4 -2
  165. package/auth/orm/index.d.ts +0 -1
  166. package/auth/orm/index.js +1 -3
  167. package/auth/orm/models/auditLog.d.ts +2 -4
  168. package/auth/orm/models/auditLog.js +6 -2
  169. package/auth/orm/models/cryptoAddress.d.ts +2 -4
  170. package/auth/orm/models/cryptoAddress.js +6 -2
  171. package/auth/orm/models/email.d.ts +2 -4
  172. package/auth/orm/models/email.js +6 -2
  173. package/auth/orm/models/identityProvider.d.ts +2 -4
  174. package/auth/orm/models/identityProvider.js +6 -2
  175. package/auth/orm/models/phoneNumber.d.ts +2 -4
  176. package/auth/orm/models/phoneNumber.js +6 -2
  177. package/auth/orm/models/roleType.d.ts +2 -4
  178. package/auth/orm/models/roleType.js +6 -2
  179. package/auth/orm/models/user.d.ts +2 -4
  180. package/auth/orm/models/user.js +6 -2
  181. package/auth/orm/models/userConnectedAccount.d.ts +2 -4
  182. package/auth/orm/models/userConnectedAccount.js +6 -2
  183. package/auth/orm/models/webauthnCredential.d.ts +2 -4
  184. package/auth/orm/models/webauthnCredential.js +6 -2
  185. package/auth/orm/query-builder.d.ts +18 -1
  186. package/auth/orm/query-builder.js +112 -1
  187. package/auth/orm/select-types.d.ts +25 -1
  188. package/esm/admin/cli/commands/app-achievement.js +1 -1
  189. package/esm/admin/cli/commands/app-admin-grant.js +1 -1
  190. package/esm/admin/cli/commands/app-claimed-invite.js +1 -1
  191. package/esm/admin/cli/commands/app-grant.js +1 -1
  192. package/esm/admin/cli/commands/app-invite.js +1 -1
  193. package/esm/admin/cli/commands/app-level-requirement.js +1 -1
  194. package/esm/admin/cli/commands/app-level.js +1 -1
  195. package/esm/admin/cli/commands/app-limit-cap.js +1 -1
  196. package/esm/admin/cli/commands/app-limit-caps-default.js +1 -1
  197. package/esm/admin/cli/commands/app-limit-credit-code-item.js +1 -1
  198. package/esm/admin/cli/commands/app-limit-credit-code.js +1 -1
  199. package/esm/admin/cli/commands/app-limit-credit-redemption.js +1 -1
  200. package/esm/admin/cli/commands/app-limit-credit.js +1 -1
  201. package/esm/admin/cli/commands/app-limit-default.js +1 -1
  202. package/esm/admin/cli/commands/app-limit-event.js +1 -1
  203. package/esm/admin/cli/commands/app-limit.js +1 -1
  204. package/esm/admin/cli/commands/app-membership-default.js +1 -1
  205. package/esm/admin/cli/commands/app-membership.js +1 -1
  206. package/esm/admin/cli/commands/app-owner-grant.js +1 -1
  207. package/esm/admin/cli/commands/app-permission-default.js +1 -1
  208. package/esm/admin/cli/commands/app-permission.js +1 -1
  209. package/esm/admin/cli/commands/app-step.js +1 -1
  210. package/esm/admin/cli/commands/membership-type.js +1 -1
  211. package/esm/admin/cli/commands/org-admin-grant.js +1 -1
  212. package/esm/admin/cli/commands/org-chart-edge-grant.js +1 -1
  213. package/esm/admin/cli/commands/org-chart-edge.js +1 -1
  214. package/esm/admin/cli/commands/org-claimed-invite.js +1 -1
  215. package/esm/admin/cli/commands/org-get-managers-record.js +1 -1
  216. package/esm/admin/cli/commands/org-get-subordinates-record.js +1 -1
  217. package/esm/admin/cli/commands/org-grant.js +1 -1
  218. package/esm/admin/cli/commands/org-invite.js +23 -1
  219. package/esm/admin/cli/commands/org-limit-aggregate.js +1 -1
  220. package/esm/admin/cli/commands/org-limit-cap.js +1 -1
  221. package/esm/admin/cli/commands/org-limit-caps-default.js +1 -1
  222. package/esm/admin/cli/commands/org-limit-credit.js +1 -1
  223. package/esm/admin/cli/commands/org-limit-default.js +1 -1
  224. package/esm/admin/cli/commands/org-limit-event.js +1 -1
  225. package/esm/admin/cli/commands/org-limit.js +1 -1
  226. package/esm/admin/cli/commands/org-member-profile.js +1 -1
  227. package/esm/admin/cli/commands/org-member.js +1 -1
  228. package/esm/admin/cli/commands/org-membership-default.js +1 -1
  229. package/esm/admin/cli/commands/org-membership-setting.js +1 -1
  230. package/esm/admin/cli/commands/org-membership.js +1 -1
  231. package/esm/admin/cli/commands/org-owner-grant.js +1 -1
  232. package/esm/admin/cli/commands/org-permission-default.js +1 -1
  233. package/esm/admin/cli/commands/org-permission.js +1 -1
  234. package/esm/admin/cli/commands/usage-snapshot.js +1 -1
  235. package/esm/admin/cli/commands.js +3 -3
  236. package/esm/admin/cli/executor.d.ts +1 -1
  237. package/esm/admin/cli/utils.d.ts +2 -2
  238. package/esm/admin/cli/utils.js +4 -2
  239. package/esm/admin/orm/index.d.ts +2 -3
  240. package/esm/admin/orm/index.js +2 -3
  241. package/esm/admin/orm/input-types.d.ts +190 -183
  242. package/esm/admin/orm/models/appAchievement.d.ts +2 -4
  243. package/esm/admin/orm/models/appAchievement.js +6 -2
  244. package/esm/admin/orm/models/appAdminGrant.d.ts +2 -4
  245. package/esm/admin/orm/models/appAdminGrant.js +6 -2
  246. package/esm/admin/orm/models/appClaimedInvite.d.ts +2 -4
  247. package/esm/admin/orm/models/appClaimedInvite.js +6 -2
  248. package/esm/admin/orm/models/appGrant.d.ts +2 -4
  249. package/esm/admin/orm/models/appGrant.js +6 -2
  250. package/esm/admin/orm/models/appInvite.d.ts +2 -4
  251. package/esm/admin/orm/models/appInvite.js +6 -2
  252. package/esm/admin/orm/models/appLevel.d.ts +2 -4
  253. package/esm/admin/orm/models/appLevel.js +6 -2
  254. package/esm/admin/orm/models/appLevelRequirement.d.ts +2 -4
  255. package/esm/admin/orm/models/appLevelRequirement.js +6 -2
  256. package/esm/admin/orm/models/appLimit.d.ts +2 -4
  257. package/esm/admin/orm/models/appLimit.js +6 -2
  258. package/esm/admin/orm/models/appLimitCap.d.ts +2 -4
  259. package/esm/admin/orm/models/appLimitCap.js +6 -2
  260. package/esm/admin/orm/models/appLimitCapsDefault.d.ts +2 -4
  261. package/esm/admin/orm/models/appLimitCapsDefault.js +6 -2
  262. package/esm/admin/orm/models/appLimitCredit.d.ts +2 -4
  263. package/esm/admin/orm/models/appLimitCredit.js +6 -2
  264. package/esm/admin/orm/models/appLimitCreditCode.d.ts +2 -4
  265. package/esm/admin/orm/models/appLimitCreditCode.js +6 -2
  266. package/esm/admin/orm/models/appLimitCreditCodeItem.d.ts +2 -4
  267. package/esm/admin/orm/models/appLimitCreditCodeItem.js +6 -2
  268. package/esm/admin/orm/models/appLimitCreditRedemption.d.ts +2 -4
  269. package/esm/admin/orm/models/appLimitCreditRedemption.js +6 -2
  270. package/esm/admin/orm/models/appLimitDefault.d.ts +2 -4
  271. package/esm/admin/orm/models/appLimitDefault.js +6 -2
  272. package/esm/admin/orm/models/appLimitEvent.d.ts +2 -4
  273. package/esm/admin/orm/models/appLimitEvent.js +6 -2
  274. package/esm/admin/orm/models/appMembership.d.ts +2 -4
  275. package/esm/admin/orm/models/appMembership.js +6 -2
  276. package/esm/admin/orm/models/appMembershipDefault.d.ts +2 -4
  277. package/esm/admin/orm/models/appMembershipDefault.js +6 -2
  278. package/esm/admin/orm/models/appOwnerGrant.d.ts +2 -4
  279. package/esm/admin/orm/models/appOwnerGrant.js +6 -2
  280. package/esm/admin/orm/models/appPermission.d.ts +2 -4
  281. package/esm/admin/orm/models/appPermission.js +6 -2
  282. package/esm/admin/orm/models/appPermissionDefault.d.ts +2 -4
  283. package/esm/admin/orm/models/appPermissionDefault.js +6 -2
  284. package/esm/admin/orm/models/appStep.d.ts +2 -4
  285. package/esm/admin/orm/models/appStep.js +6 -2
  286. package/esm/admin/orm/models/index.d.ts +1 -1
  287. package/esm/admin/orm/models/index.js +1 -1
  288. package/esm/admin/orm/models/membershipType.d.ts +2 -4
  289. package/esm/admin/orm/models/membershipType.js +6 -2
  290. package/esm/admin/orm/models/orgAdminGrant.d.ts +2 -4
  291. package/esm/admin/orm/models/orgAdminGrant.js +6 -2
  292. package/esm/admin/orm/models/orgChartEdge.d.ts +2 -4
  293. package/esm/admin/orm/models/orgChartEdge.js +6 -2
  294. package/esm/admin/orm/models/orgChartEdgeGrant.d.ts +2 -4
  295. package/esm/admin/orm/models/orgChartEdgeGrant.js +6 -2
  296. package/esm/admin/orm/models/orgClaimedInvite.d.ts +2 -4
  297. package/esm/admin/orm/models/orgClaimedInvite.js +6 -2
  298. package/esm/admin/orm/models/orgGetManagersRecord.d.ts +2 -4
  299. package/esm/admin/orm/models/orgGetManagersRecord.js +6 -2
  300. package/esm/admin/orm/models/orgGetSubordinatesRecord.d.ts +2 -4
  301. package/esm/admin/orm/models/orgGetSubordinatesRecord.js +6 -2
  302. package/esm/admin/orm/models/orgGrant.d.ts +2 -4
  303. package/esm/admin/orm/models/orgGrant.js +6 -2
  304. package/esm/admin/orm/models/orgInvite.d.ts +2 -4
  305. package/esm/admin/orm/models/orgInvite.js +6 -2
  306. package/esm/admin/orm/models/orgLimit.d.ts +2 -4
  307. package/esm/admin/orm/models/orgLimit.js +6 -2
  308. package/esm/admin/orm/models/orgLimitAggregate.d.ts +2 -4
  309. package/esm/admin/orm/models/orgLimitAggregate.js +6 -2
  310. package/esm/admin/orm/models/orgLimitCap.d.ts +2 -4
  311. package/esm/admin/orm/models/orgLimitCap.js +6 -2
  312. package/esm/admin/orm/models/orgLimitCapsDefault.d.ts +2 -4
  313. package/esm/admin/orm/models/orgLimitCapsDefault.js +6 -2
  314. package/esm/admin/orm/models/orgLimitCredit.d.ts +2 -4
  315. package/esm/admin/orm/models/orgLimitCredit.js +6 -2
  316. package/esm/admin/orm/models/orgLimitDefault.d.ts +2 -4
  317. package/esm/admin/orm/models/orgLimitDefault.js +6 -2
  318. package/esm/admin/orm/models/orgLimitEvent.d.ts +2 -4
  319. package/esm/admin/orm/models/orgLimitEvent.js +6 -2
  320. package/esm/admin/orm/models/orgMember.d.ts +2 -4
  321. package/esm/admin/orm/models/orgMember.js +6 -2
  322. package/esm/admin/orm/models/orgMemberProfile.d.ts +2 -4
  323. package/esm/admin/orm/models/orgMemberProfile.js +6 -2
  324. package/esm/admin/orm/models/orgMembership.d.ts +2 -4
  325. package/esm/admin/orm/models/orgMembership.js +6 -2
  326. package/esm/admin/orm/models/orgMembershipDefault.d.ts +2 -4
  327. package/esm/admin/orm/models/orgMembershipDefault.js +6 -2
  328. package/esm/admin/orm/models/orgMembershipSetting.d.ts +2 -4
  329. package/esm/admin/orm/models/orgMembershipSetting.js +6 -2
  330. package/esm/admin/orm/models/orgOwnerGrant.d.ts +2 -4
  331. package/esm/admin/orm/models/orgOwnerGrant.js +6 -2
  332. package/esm/admin/orm/models/orgPermission.d.ts +2 -4
  333. package/esm/admin/orm/models/orgPermission.js +6 -2
  334. package/esm/admin/orm/models/orgPermissionDefault.d.ts +2 -4
  335. package/esm/admin/orm/models/orgPermissionDefault.js +6 -2
  336. package/esm/admin/orm/models/usageSnapshot.d.ts +2 -4
  337. package/esm/admin/orm/models/usageSnapshot.js +6 -2
  338. package/esm/admin/orm/query-builder.d.ts +18 -1
  339. package/esm/admin/orm/query-builder.js +108 -1
  340. package/esm/admin/orm/select-types.d.ts +25 -1
  341. package/esm/auth/cli/commands/audit-log.js +1 -1
  342. package/esm/auth/cli/commands/crypto-address.js +1 -1
  343. package/esm/auth/cli/commands/email.js +1 -1
  344. package/esm/auth/cli/commands/identity-provider.js +1 -1
  345. package/esm/auth/cli/commands/phone-number.js +1 -1
  346. package/esm/auth/cli/commands/role-type.js +1 -1
  347. package/esm/auth/cli/commands/user-connected-account.js +1 -1
  348. package/esm/auth/cli/commands/user.js +1 -1
  349. package/esm/auth/cli/commands/webauthn-credential.js +1 -1
  350. package/esm/auth/cli/utils.d.ts +2 -2
  351. package/esm/auth/cli/utils.js +4 -2
  352. package/esm/auth/orm/index.d.ts +0 -1
  353. package/esm/auth/orm/index.js +0 -1
  354. package/esm/auth/orm/models/auditLog.d.ts +2 -4
  355. package/esm/auth/orm/models/auditLog.js +6 -2
  356. package/esm/auth/orm/models/cryptoAddress.d.ts +2 -4
  357. package/esm/auth/orm/models/cryptoAddress.js +6 -2
  358. package/esm/auth/orm/models/email.d.ts +2 -4
  359. package/esm/auth/orm/models/email.js +6 -2
  360. package/esm/auth/orm/models/identityProvider.d.ts +2 -4
  361. package/esm/auth/orm/models/identityProvider.js +6 -2
  362. package/esm/auth/orm/models/phoneNumber.d.ts +2 -4
  363. package/esm/auth/orm/models/phoneNumber.js +6 -2
  364. package/esm/auth/orm/models/roleType.d.ts +2 -4
  365. package/esm/auth/orm/models/roleType.js +6 -2
  366. package/esm/auth/orm/models/user.d.ts +2 -4
  367. package/esm/auth/orm/models/user.js +6 -2
  368. package/esm/auth/orm/models/userConnectedAccount.d.ts +2 -4
  369. package/esm/auth/orm/models/userConnectedAccount.js +6 -2
  370. package/esm/auth/orm/models/webauthnCredential.d.ts +2 -4
  371. package/esm/auth/orm/models/webauthnCredential.js +6 -2
  372. package/esm/auth/orm/query-builder.d.ts +18 -1
  373. package/esm/auth/orm/query-builder.js +108 -1
  374. package/esm/auth/orm/select-types.d.ts +25 -1
  375. package/esm/objects/cli/commands/commit.js +1 -1
  376. package/esm/objects/cli/commands/get-all-record.js +1 -1
  377. package/esm/objects/cli/commands/object.js +1 -1
  378. package/esm/objects/cli/commands/ref.js +1 -1
  379. package/esm/objects/cli/commands/store.js +1 -1
  380. package/esm/objects/cli/utils.d.ts +2 -2
  381. package/esm/objects/cli/utils.js +4 -2
  382. package/esm/objects/orm/index.d.ts +0 -1
  383. package/esm/objects/orm/index.js +0 -1
  384. package/esm/objects/orm/models/commit.d.ts +2 -4
  385. package/esm/objects/orm/models/commit.js +6 -2
  386. package/esm/objects/orm/models/getAllRecord.d.ts +2 -4
  387. package/esm/objects/orm/models/getAllRecord.js +6 -2
  388. package/esm/objects/orm/models/object.d.ts +3 -5
  389. package/esm/objects/orm/models/object.js +7 -3
  390. package/esm/objects/orm/models/ref.d.ts +2 -4
  391. package/esm/objects/orm/models/ref.js +6 -2
  392. package/esm/objects/orm/models/store.d.ts +2 -4
  393. package/esm/objects/orm/models/store.js +6 -2
  394. package/esm/objects/orm/query-builder.d.ts +18 -1
  395. package/esm/objects/orm/query-builder.js +108 -1
  396. package/esm/objects/orm/select-types.d.ts +25 -1
  397. package/esm/public/cli/commands/agent-message.js +1 -1
  398. package/esm/public/cli/commands/agent-task.js +1 -1
  399. package/esm/public/cli/commands/agent-thread.js +1 -1
  400. package/esm/public/cli/commands/api-module.js +1 -1
  401. package/esm/public/cli/commands/api-schema.js +1 -1
  402. package/esm/public/cli/commands/api-setting.js +1 -1
  403. package/esm/public/cli/commands/api.js +1 -1
  404. package/esm/public/cli/commands/app-achievement.js +1 -1
  405. package/esm/public/cli/commands/app-admin-grant.js +1 -1
  406. package/esm/public/cli/commands/app-claimed-invite.js +1 -1
  407. package/esm/public/cli/commands/app-grant.js +1 -1
  408. package/esm/public/cli/commands/app-invite.js +1 -1
  409. package/esm/public/cli/commands/app-level-requirement.js +1 -1
  410. package/esm/public/cli/commands/app-level.js +1 -1
  411. package/esm/public/cli/commands/app-limit-cap.js +1 -1
  412. package/esm/public/cli/commands/app-limit-caps-default.js +1 -1
  413. package/esm/public/cli/commands/app-limit-credit-code-item.js +1 -1
  414. package/esm/public/cli/commands/app-limit-credit-code.js +1 -1
  415. package/esm/public/cli/commands/app-limit-credit-redemption.js +1 -1
  416. package/esm/public/cli/commands/app-limit-credit.js +1 -1
  417. package/esm/public/cli/commands/app-limit-default.js +1 -1
  418. package/esm/public/cli/commands/app-limit-event.js +1 -1
  419. package/esm/public/cli/commands/app-limit.js +1 -1
  420. package/esm/public/cli/commands/app-membership-default.js +1 -1
  421. package/esm/public/cli/commands/app-membership.js +1 -1
  422. package/esm/public/cli/commands/app-owner-grant.js +1 -1
  423. package/esm/public/cli/commands/app-permission-default.js +1 -1
  424. package/esm/public/cli/commands/app-permission.js +1 -1
  425. package/esm/public/cli/commands/app-step.js +1 -1
  426. package/esm/public/cli/commands/app.js +1 -1
  427. package/esm/public/cli/commands/ast-migration.js +1 -1
  428. package/esm/public/cli/commands/audit-log.js +1 -1
  429. package/esm/public/cli/commands/billing-module.js +1 -1
  430. package/esm/public/cli/commands/billing-provider-module.js +1 -1
  431. package/esm/public/cli/commands/blueprint-construction.js +1 -1
  432. package/esm/public/cli/commands/blueprint-template.js +1 -1
  433. package/esm/public/cli/commands/blueprint.js +1 -1
  434. package/esm/public/cli/commands/check-constraint.js +1 -1
  435. package/esm/public/cli/commands/commit.js +1 -1
  436. package/esm/public/cli/commands/connected-accounts-module.js +1 -1
  437. package/esm/public/cli/commands/cors-setting.js +1 -1
  438. package/esm/public/cli/commands/crypto-address.js +1 -1
  439. package/esm/public/cli/commands/crypto-addresses-module.js +1 -1
  440. package/esm/public/cli/commands/crypto-auth-module.js +1 -1
  441. package/esm/public/cli/commands/database-provision-module.js +1 -1
  442. package/esm/public/cli/commands/database-setting.js +1 -1
  443. package/esm/public/cli/commands/database-transfer.js +1 -1
  444. package/esm/public/cli/commands/database.js +1 -1
  445. package/esm/public/cli/commands/default-ids-module.js +1 -1
  446. package/esm/public/cli/commands/default-privilege.js +1 -1
  447. package/esm/public/cli/commands/denormalized-table-field.js +1 -1
  448. package/esm/public/cli/commands/devices-module.js +1 -1
  449. package/esm/public/cli/commands/domain.js +1 -1
  450. package/esm/public/cli/commands/email.js +1 -1
  451. package/esm/public/cli/commands/emails-module.js +1 -1
  452. package/esm/public/cli/commands/embedding-chunk.js +1 -1
  453. package/esm/public/cli/commands/encrypted-secrets-module.js +1 -1
  454. package/esm/public/cli/commands/entity-type-provision.js +1 -1
  455. package/esm/public/cli/commands/enum.js +1 -1
  456. package/esm/public/cli/commands/field.js +1 -1
  457. package/esm/public/cli/commands/foreign-key-constraint.js +1 -1
  458. package/esm/public/cli/commands/full-text-search.js +1 -1
  459. package/esm/public/cli/commands/function.js +1 -1
  460. package/esm/public/cli/commands/get-all-record.js +1 -1
  461. package/esm/public/cli/commands/hierarchy-module.js +1 -1
  462. package/esm/public/cli/commands/identity-provider.js +1 -1
  463. package/esm/public/cli/commands/identity-providers-module.js +1 -1
  464. package/esm/public/cli/commands/index.js +1 -1
  465. package/esm/public/cli/commands/invites-module.js +1 -1
  466. package/esm/public/cli/commands/levels-module.js +1 -1
  467. package/esm/public/cli/commands/limits-module.js +1 -1
  468. package/esm/public/cli/commands/membership-type.js +1 -1
  469. package/esm/public/cli/commands/membership-types-module.js +1 -1
  470. package/esm/public/cli/commands/memberships-module.js +1 -1
  471. package/esm/public/cli/commands/migrate-file.js +1 -1
  472. package/esm/public/cli/commands/node-type-registry.js +1 -1
  473. package/esm/public/cli/commands/notifications-module.js +1 -1
  474. package/esm/public/cli/commands/object.js +1 -1
  475. package/esm/public/cli/commands/org-admin-grant.js +1 -1
  476. package/esm/public/cli/commands/org-chart-edge-grant.js +1 -1
  477. package/esm/public/cli/commands/org-chart-edge.js +1 -1
  478. package/esm/public/cli/commands/org-claimed-invite.js +1 -1
  479. package/esm/public/cli/commands/org-get-managers-record.js +1 -1
  480. package/esm/public/cli/commands/org-get-subordinates-record.js +1 -1
  481. package/esm/public/cli/commands/org-grant.js +1 -1
  482. package/esm/public/cli/commands/org-invite.js +23 -1
  483. package/esm/public/cli/commands/org-limit-aggregate.js +1 -1
  484. package/esm/public/cli/commands/org-limit-cap.js +1 -1
  485. package/esm/public/cli/commands/org-limit-caps-default.js +1 -1
  486. package/esm/public/cli/commands/org-limit-credit.js +1 -1
  487. package/esm/public/cli/commands/org-limit-default.js +1 -1
  488. package/esm/public/cli/commands/org-limit-event.js +1 -1
  489. package/esm/public/cli/commands/org-limit.js +1 -1
  490. package/esm/public/cli/commands/org-member-profile.js +1 -1
  491. package/esm/public/cli/commands/org-member.js +1 -1
  492. package/esm/public/cli/commands/org-membership-default.js +1 -1
  493. package/esm/public/cli/commands/org-membership-setting.js +1 -1
  494. package/esm/public/cli/commands/org-membership.js +1 -1
  495. package/esm/public/cli/commands/org-owner-grant.js +1 -1
  496. package/esm/public/cli/commands/org-permission-default.js +1 -1
  497. package/esm/public/cli/commands/org-permission.js +1 -1
  498. package/esm/public/cli/commands/partition.js +1 -1
  499. package/esm/public/cli/commands/permissions-module.js +1 -1
  500. package/esm/public/cli/commands/phone-number.js +1 -1
  501. package/esm/public/cli/commands/phone-numbers-module.js +1 -1
  502. package/esm/public/cli/commands/plans-module.js +1 -1
  503. package/esm/public/cli/commands/policy.js +1 -1
  504. package/esm/public/cli/commands/primary-key-constraint.js +1 -1
  505. package/esm/public/cli/commands/profiles-module.js +1 -1
  506. package/esm/public/cli/commands/pubkey-setting.js +1 -1
  507. package/esm/public/cli/commands/rate-limits-module.js +1 -1
  508. package/esm/public/cli/commands/realtime-module.js +1 -1
  509. package/esm/public/cli/commands/ref.js +1 -1
  510. package/esm/public/cli/commands/relation-provision.js +1 -1
  511. package/esm/public/cli/commands/rls-module.js +1 -1
  512. package/esm/public/cli/commands/rls-setting.js +1 -1
  513. package/esm/public/cli/commands/role-type.js +1 -1
  514. package/esm/public/cli/commands/schema-grant.js +1 -1
  515. package/esm/public/cli/commands/schema.js +1 -1
  516. package/esm/public/cli/commands/secrets-module.js +1 -1
  517. package/esm/public/cli/commands/secure-table-provision.js +1 -1
  518. package/esm/public/cli/commands/session-secrets-module.js +1 -1
  519. package/esm/public/cli/commands/sessions-module.js +1 -1
  520. package/esm/public/cli/commands/site-metadatum.js +1 -1
  521. package/esm/public/cli/commands/site-module.js +1 -1
  522. package/esm/public/cli/commands/site-theme.js +1 -1
  523. package/esm/public/cli/commands/site.js +1 -1
  524. package/esm/public/cli/commands/spatial-relation.js +1 -1
  525. package/esm/public/cli/commands/sql-action.js +1 -1
  526. package/esm/public/cli/commands/storage-module.js +1 -1
  527. package/esm/public/cli/commands/store.js +1 -1
  528. package/esm/public/cli/commands/table-grant.js +1 -1
  529. package/esm/public/cli/commands/table.js +1 -1
  530. package/esm/public/cli/commands/trigger-function.js +1 -1
  531. package/esm/public/cli/commands/trigger.js +1 -1
  532. package/esm/public/cli/commands/unique-constraint.js +1 -1
  533. package/esm/public/cli/commands/usage-snapshot.js +1 -1
  534. package/esm/public/cli/commands/user-auth-module.js +1 -1
  535. package/esm/public/cli/commands/user-connected-account.js +1 -1
  536. package/esm/public/cli/commands/user.js +1 -1
  537. package/esm/public/cli/commands/users-module.js +1 -1
  538. package/esm/public/cli/commands/view-grant.js +1 -1
  539. package/esm/public/cli/commands/view-rule.js +1 -1
  540. package/esm/public/cli/commands/view-table.js +1 -1
  541. package/esm/public/cli/commands/view.js +1 -1
  542. package/esm/public/cli/commands/webauthn-auth-module.js +1 -1
  543. package/esm/public/cli/commands/webauthn-credential.js +1 -1
  544. package/esm/public/cli/commands/webauthn-credentials-module.js +1 -1
  545. package/esm/public/cli/commands/webauthn-setting.js +1 -1
  546. package/esm/public/cli/utils.d.ts +2 -2
  547. package/esm/public/cli/utils.js +4 -2
  548. package/esm/public/orm/index.d.ts +0 -1
  549. package/esm/public/orm/index.js +0 -1
  550. package/esm/public/orm/input-types.d.ts +10 -1
  551. package/esm/public/orm/models/agentMessage.d.ts +2 -4
  552. package/esm/public/orm/models/agentMessage.js +6 -2
  553. package/esm/public/orm/models/agentTask.d.ts +2 -4
  554. package/esm/public/orm/models/agentTask.js +6 -2
  555. package/esm/public/orm/models/agentThread.d.ts +2 -4
  556. package/esm/public/orm/models/agentThread.js +6 -2
  557. package/esm/public/orm/models/api.d.ts +2 -4
  558. package/esm/public/orm/models/api.js +6 -2
  559. package/esm/public/orm/models/apiModule.d.ts +2 -4
  560. package/esm/public/orm/models/apiModule.js +6 -2
  561. package/esm/public/orm/models/apiSchema.d.ts +2 -4
  562. package/esm/public/orm/models/apiSchema.js +6 -2
  563. package/esm/public/orm/models/apiSetting.d.ts +2 -4
  564. package/esm/public/orm/models/apiSetting.js +6 -2
  565. package/esm/public/orm/models/app.d.ts +2 -4
  566. package/esm/public/orm/models/app.js +6 -2
  567. package/esm/public/orm/models/appAchievement.d.ts +2 -4
  568. package/esm/public/orm/models/appAchievement.js +6 -2
  569. package/esm/public/orm/models/appAdminGrant.d.ts +2 -4
  570. package/esm/public/orm/models/appAdminGrant.js +6 -2
  571. package/esm/public/orm/models/appClaimedInvite.d.ts +2 -4
  572. package/esm/public/orm/models/appClaimedInvite.js +6 -2
  573. package/esm/public/orm/models/appGrant.d.ts +2 -4
  574. package/esm/public/orm/models/appGrant.js +6 -2
  575. package/esm/public/orm/models/appInvite.d.ts +2 -4
  576. package/esm/public/orm/models/appInvite.js +6 -2
  577. package/esm/public/orm/models/appLevel.d.ts +2 -4
  578. package/esm/public/orm/models/appLevel.js +6 -2
  579. package/esm/public/orm/models/appLevelRequirement.d.ts +2 -4
  580. package/esm/public/orm/models/appLevelRequirement.js +6 -2
  581. package/esm/public/orm/models/appLimit.d.ts +2 -4
  582. package/esm/public/orm/models/appLimit.js +6 -2
  583. package/esm/public/orm/models/appLimitCap.d.ts +2 -4
  584. package/esm/public/orm/models/appLimitCap.js +6 -2
  585. package/esm/public/orm/models/appLimitCapsDefault.d.ts +2 -4
  586. package/esm/public/orm/models/appLimitCapsDefault.js +6 -2
  587. package/esm/public/orm/models/appLimitCredit.d.ts +2 -4
  588. package/esm/public/orm/models/appLimitCredit.js +6 -2
  589. package/esm/public/orm/models/appLimitCreditCode.d.ts +2 -4
  590. package/esm/public/orm/models/appLimitCreditCode.js +6 -2
  591. package/esm/public/orm/models/appLimitCreditCodeItem.d.ts +2 -4
  592. package/esm/public/orm/models/appLimitCreditCodeItem.js +6 -2
  593. package/esm/public/orm/models/appLimitCreditRedemption.d.ts +2 -4
  594. package/esm/public/orm/models/appLimitCreditRedemption.js +6 -2
  595. package/esm/public/orm/models/appLimitDefault.d.ts +2 -4
  596. package/esm/public/orm/models/appLimitDefault.js +6 -2
  597. package/esm/public/orm/models/appLimitEvent.d.ts +2 -4
  598. package/esm/public/orm/models/appLimitEvent.js +6 -2
  599. package/esm/public/orm/models/appMembership.d.ts +2 -4
  600. package/esm/public/orm/models/appMembership.js +6 -2
  601. package/esm/public/orm/models/appMembershipDefault.d.ts +2 -4
  602. package/esm/public/orm/models/appMembershipDefault.js +6 -2
  603. package/esm/public/orm/models/appOwnerGrant.d.ts +2 -4
  604. package/esm/public/orm/models/appOwnerGrant.js +6 -2
  605. package/esm/public/orm/models/appPermission.d.ts +2 -4
  606. package/esm/public/orm/models/appPermission.js +6 -2
  607. package/esm/public/orm/models/appPermissionDefault.d.ts +2 -4
  608. package/esm/public/orm/models/appPermissionDefault.js +6 -2
  609. package/esm/public/orm/models/appStep.d.ts +2 -4
  610. package/esm/public/orm/models/appStep.js +6 -2
  611. package/esm/public/orm/models/astMigration.d.ts +2 -4
  612. package/esm/public/orm/models/astMigration.js +6 -2
  613. package/esm/public/orm/models/auditLog.d.ts +2 -4
  614. package/esm/public/orm/models/auditLog.js +6 -2
  615. package/esm/public/orm/models/billingModule.d.ts +2 -4
  616. package/esm/public/orm/models/billingModule.js +6 -2
  617. package/esm/public/orm/models/billingProviderModule.d.ts +2 -4
  618. package/esm/public/orm/models/billingProviderModule.js +6 -2
  619. package/esm/public/orm/models/blueprint.d.ts +2 -4
  620. package/esm/public/orm/models/blueprint.js +6 -2
  621. package/esm/public/orm/models/blueprintConstruction.d.ts +2 -4
  622. package/esm/public/orm/models/blueprintConstruction.js +6 -2
  623. package/esm/public/orm/models/blueprintTemplate.d.ts +2 -4
  624. package/esm/public/orm/models/blueprintTemplate.js +6 -2
  625. package/esm/public/orm/models/checkConstraint.d.ts +2 -4
  626. package/esm/public/orm/models/checkConstraint.js +6 -2
  627. package/esm/public/orm/models/commit.d.ts +2 -4
  628. package/esm/public/orm/models/commit.js +6 -2
  629. package/esm/public/orm/models/connectedAccountsModule.d.ts +2 -4
  630. package/esm/public/orm/models/connectedAccountsModule.js +6 -2
  631. package/esm/public/orm/models/corsSetting.d.ts +2 -4
  632. package/esm/public/orm/models/corsSetting.js +6 -2
  633. package/esm/public/orm/models/cryptoAddress.d.ts +2 -4
  634. package/esm/public/orm/models/cryptoAddress.js +6 -2
  635. package/esm/public/orm/models/cryptoAddressesModule.d.ts +2 -4
  636. package/esm/public/orm/models/cryptoAddressesModule.js +6 -2
  637. package/esm/public/orm/models/cryptoAuthModule.d.ts +2 -4
  638. package/esm/public/orm/models/cryptoAuthModule.js +6 -2
  639. package/esm/public/orm/models/database.d.ts +2 -4
  640. package/esm/public/orm/models/database.js +6 -2
  641. package/esm/public/orm/models/databaseProvisionModule.d.ts +2 -4
  642. package/esm/public/orm/models/databaseProvisionModule.js +6 -2
  643. package/esm/public/orm/models/databaseSetting.d.ts +2 -4
  644. package/esm/public/orm/models/databaseSetting.js +6 -2
  645. package/esm/public/orm/models/databaseTransfer.d.ts +2 -4
  646. package/esm/public/orm/models/databaseTransfer.js +6 -2
  647. package/esm/public/orm/models/defaultIdsModule.d.ts +2 -4
  648. package/esm/public/orm/models/defaultIdsModule.js +6 -2
  649. package/esm/public/orm/models/defaultPrivilege.d.ts +2 -4
  650. package/esm/public/orm/models/defaultPrivilege.js +6 -2
  651. package/esm/public/orm/models/denormalizedTableField.d.ts +2 -4
  652. package/esm/public/orm/models/denormalizedTableField.js +6 -2
  653. package/esm/public/orm/models/devicesModule.d.ts +2 -4
  654. package/esm/public/orm/models/devicesModule.js +6 -2
  655. package/esm/public/orm/models/domain.d.ts +2 -4
  656. package/esm/public/orm/models/domain.js +6 -2
  657. package/esm/public/orm/models/email.d.ts +2 -4
  658. package/esm/public/orm/models/email.js +6 -2
  659. package/esm/public/orm/models/emailsModule.d.ts +2 -4
  660. package/esm/public/orm/models/emailsModule.js +6 -2
  661. package/esm/public/orm/models/embeddingChunk.d.ts +2 -4
  662. package/esm/public/orm/models/embeddingChunk.js +6 -2
  663. package/esm/public/orm/models/encryptedSecretsModule.d.ts +2 -4
  664. package/esm/public/orm/models/encryptedSecretsModule.js +6 -2
  665. package/esm/public/orm/models/entityTypeProvision.d.ts +2 -4
  666. package/esm/public/orm/models/entityTypeProvision.js +6 -2
  667. package/esm/public/orm/models/enum.d.ts +2 -4
  668. package/esm/public/orm/models/enum.js +6 -2
  669. package/esm/public/orm/models/field.d.ts +2 -4
  670. package/esm/public/orm/models/field.js +6 -2
  671. package/esm/public/orm/models/foreignKeyConstraint.d.ts +2 -4
  672. package/esm/public/orm/models/foreignKeyConstraint.js +6 -2
  673. package/esm/public/orm/models/fullTextSearch.d.ts +2 -4
  674. package/esm/public/orm/models/fullTextSearch.js +6 -2
  675. package/esm/public/orm/models/function.d.ts +2 -4
  676. package/esm/public/orm/models/function.js +6 -2
  677. package/esm/public/orm/models/getAllRecord.d.ts +2 -4
  678. package/esm/public/orm/models/getAllRecord.js +6 -2
  679. package/esm/public/orm/models/hierarchyModule.d.ts +2 -4
  680. package/esm/public/orm/models/hierarchyModule.js +6 -2
  681. package/esm/public/orm/models/identityProvider.d.ts +2 -4
  682. package/esm/public/orm/models/identityProvider.js +6 -2
  683. package/esm/public/orm/models/identityProvidersModule.d.ts +2 -4
  684. package/esm/public/orm/models/identityProvidersModule.js +6 -2
  685. package/esm/public/orm/models/indexModel.d.ts +2 -4
  686. package/esm/public/orm/models/indexModel.js +6 -2
  687. package/esm/public/orm/models/invitesModule.d.ts +2 -4
  688. package/esm/public/orm/models/invitesModule.js +6 -2
  689. package/esm/public/orm/models/levelsModule.d.ts +2 -4
  690. package/esm/public/orm/models/levelsModule.js +6 -2
  691. package/esm/public/orm/models/limitsModule.d.ts +2 -4
  692. package/esm/public/orm/models/limitsModule.js +6 -2
  693. package/esm/public/orm/models/membershipType.d.ts +2 -4
  694. package/esm/public/orm/models/membershipType.js +6 -2
  695. package/esm/public/orm/models/membershipTypesModule.d.ts +2 -4
  696. package/esm/public/orm/models/membershipTypesModule.js +6 -2
  697. package/esm/public/orm/models/membershipsModule.d.ts +2 -4
  698. package/esm/public/orm/models/membershipsModule.js +6 -2
  699. package/esm/public/orm/models/migrateFile.d.ts +2 -4
  700. package/esm/public/orm/models/migrateFile.js +6 -2
  701. package/esm/public/orm/models/nodeTypeRegistry.d.ts +2 -4
  702. package/esm/public/orm/models/nodeTypeRegistry.js +6 -2
  703. package/esm/public/orm/models/notificationsModule.d.ts +2 -4
  704. package/esm/public/orm/models/notificationsModule.js +6 -2
  705. package/esm/public/orm/models/object.d.ts +3 -5
  706. package/esm/public/orm/models/object.js +7 -3
  707. package/esm/public/orm/models/orgAdminGrant.d.ts +2 -4
  708. package/esm/public/orm/models/orgAdminGrant.js +6 -2
  709. package/esm/public/orm/models/orgChartEdge.d.ts +2 -4
  710. package/esm/public/orm/models/orgChartEdge.js +6 -2
  711. package/esm/public/orm/models/orgChartEdgeGrant.d.ts +2 -4
  712. package/esm/public/orm/models/orgChartEdgeGrant.js +6 -2
  713. package/esm/public/orm/models/orgClaimedInvite.d.ts +2 -4
  714. package/esm/public/orm/models/orgClaimedInvite.js +6 -2
  715. package/esm/public/orm/models/orgGetManagersRecord.d.ts +2 -4
  716. package/esm/public/orm/models/orgGetManagersRecord.js +6 -2
  717. package/esm/public/orm/models/orgGetSubordinatesRecord.d.ts +2 -4
  718. package/esm/public/orm/models/orgGetSubordinatesRecord.js +6 -2
  719. package/esm/public/orm/models/orgGrant.d.ts +2 -4
  720. package/esm/public/orm/models/orgGrant.js +6 -2
  721. package/esm/public/orm/models/orgInvite.d.ts +2 -4
  722. package/esm/public/orm/models/orgInvite.js +6 -2
  723. package/esm/public/orm/models/orgLimit.d.ts +2 -4
  724. package/esm/public/orm/models/orgLimit.js +6 -2
  725. package/esm/public/orm/models/orgLimitAggregate.d.ts +2 -4
  726. package/esm/public/orm/models/orgLimitAggregate.js +6 -2
  727. package/esm/public/orm/models/orgLimitCap.d.ts +2 -4
  728. package/esm/public/orm/models/orgLimitCap.js +6 -2
  729. package/esm/public/orm/models/orgLimitCapsDefault.d.ts +2 -4
  730. package/esm/public/orm/models/orgLimitCapsDefault.js +6 -2
  731. package/esm/public/orm/models/orgLimitCredit.d.ts +2 -4
  732. package/esm/public/orm/models/orgLimitCredit.js +6 -2
  733. package/esm/public/orm/models/orgLimitDefault.d.ts +2 -4
  734. package/esm/public/orm/models/orgLimitDefault.js +6 -2
  735. package/esm/public/orm/models/orgLimitEvent.d.ts +2 -4
  736. package/esm/public/orm/models/orgLimitEvent.js +6 -2
  737. package/esm/public/orm/models/orgMember.d.ts +2 -4
  738. package/esm/public/orm/models/orgMember.js +6 -2
  739. package/esm/public/orm/models/orgMemberProfile.d.ts +2 -4
  740. package/esm/public/orm/models/orgMemberProfile.js +6 -2
  741. package/esm/public/orm/models/orgMembership.d.ts +2 -4
  742. package/esm/public/orm/models/orgMembership.js +6 -2
  743. package/esm/public/orm/models/orgMembershipDefault.d.ts +2 -4
  744. package/esm/public/orm/models/orgMembershipDefault.js +6 -2
  745. package/esm/public/orm/models/orgMembershipSetting.d.ts +2 -4
  746. package/esm/public/orm/models/orgMembershipSetting.js +6 -2
  747. package/esm/public/orm/models/orgOwnerGrant.d.ts +2 -4
  748. package/esm/public/orm/models/orgOwnerGrant.js +6 -2
  749. package/esm/public/orm/models/orgPermission.d.ts +2 -4
  750. package/esm/public/orm/models/orgPermission.js +6 -2
  751. package/esm/public/orm/models/orgPermissionDefault.d.ts +2 -4
  752. package/esm/public/orm/models/orgPermissionDefault.js +6 -2
  753. package/esm/public/orm/models/partition.d.ts +2 -4
  754. package/esm/public/orm/models/partition.js +6 -2
  755. package/esm/public/orm/models/permissionsModule.d.ts +2 -4
  756. package/esm/public/orm/models/permissionsModule.js +6 -2
  757. package/esm/public/orm/models/phoneNumber.d.ts +2 -4
  758. package/esm/public/orm/models/phoneNumber.js +6 -2
  759. package/esm/public/orm/models/phoneNumbersModule.d.ts +2 -4
  760. package/esm/public/orm/models/phoneNumbersModule.js +6 -2
  761. package/esm/public/orm/models/plansModule.d.ts +2 -4
  762. package/esm/public/orm/models/plansModule.js +6 -2
  763. package/esm/public/orm/models/policy.d.ts +2 -4
  764. package/esm/public/orm/models/policy.js +6 -2
  765. package/esm/public/orm/models/primaryKeyConstraint.d.ts +2 -4
  766. package/esm/public/orm/models/primaryKeyConstraint.js +6 -2
  767. package/esm/public/orm/models/profilesModule.d.ts +2 -4
  768. package/esm/public/orm/models/profilesModule.js +6 -2
  769. package/esm/public/orm/models/pubkeySetting.d.ts +2 -4
  770. package/esm/public/orm/models/pubkeySetting.js +6 -2
  771. package/esm/public/orm/models/rateLimitsModule.d.ts +2 -4
  772. package/esm/public/orm/models/rateLimitsModule.js +6 -2
  773. package/esm/public/orm/models/realtimeModule.d.ts +2 -4
  774. package/esm/public/orm/models/realtimeModule.js +6 -2
  775. package/esm/public/orm/models/ref.d.ts +2 -4
  776. package/esm/public/orm/models/ref.js +6 -2
  777. package/esm/public/orm/models/relationProvision.d.ts +2 -4
  778. package/esm/public/orm/models/relationProvision.js +6 -2
  779. package/esm/public/orm/models/rlsModule.d.ts +2 -4
  780. package/esm/public/orm/models/rlsModule.js +6 -2
  781. package/esm/public/orm/models/rlsSetting.d.ts +2 -4
  782. package/esm/public/orm/models/rlsSetting.js +6 -2
  783. package/esm/public/orm/models/roleType.d.ts +2 -4
  784. package/esm/public/orm/models/roleType.js +6 -2
  785. package/esm/public/orm/models/schema.d.ts +2 -4
  786. package/esm/public/orm/models/schema.js +6 -2
  787. package/esm/public/orm/models/schemaGrant.d.ts +2 -4
  788. package/esm/public/orm/models/schemaGrant.js +6 -2
  789. package/esm/public/orm/models/secretsModule.d.ts +2 -4
  790. package/esm/public/orm/models/secretsModule.js +6 -2
  791. package/esm/public/orm/models/secureTableProvision.d.ts +2 -4
  792. package/esm/public/orm/models/secureTableProvision.js +6 -2
  793. package/esm/public/orm/models/sessionSecretsModule.d.ts +2 -4
  794. package/esm/public/orm/models/sessionSecretsModule.js +6 -2
  795. package/esm/public/orm/models/sessionsModule.d.ts +2 -4
  796. package/esm/public/orm/models/sessionsModule.js +6 -2
  797. package/esm/public/orm/models/site.d.ts +2 -4
  798. package/esm/public/orm/models/site.js +6 -2
  799. package/esm/public/orm/models/siteMetadatum.d.ts +2 -4
  800. package/esm/public/orm/models/siteMetadatum.js +6 -2
  801. package/esm/public/orm/models/siteModule.d.ts +2 -4
  802. package/esm/public/orm/models/siteModule.js +6 -2
  803. package/esm/public/orm/models/siteTheme.d.ts +2 -4
  804. package/esm/public/orm/models/siteTheme.js +6 -2
  805. package/esm/public/orm/models/spatialRelation.d.ts +2 -4
  806. package/esm/public/orm/models/spatialRelation.js +6 -2
  807. package/esm/public/orm/models/sqlAction.d.ts +2 -4
  808. package/esm/public/orm/models/sqlAction.js +6 -2
  809. package/esm/public/orm/models/storageModule.d.ts +2 -4
  810. package/esm/public/orm/models/storageModule.js +6 -2
  811. package/esm/public/orm/models/store.d.ts +2 -4
  812. package/esm/public/orm/models/store.js +6 -2
  813. package/esm/public/orm/models/table.d.ts +2 -4
  814. package/esm/public/orm/models/table.js +6 -2
  815. package/esm/public/orm/models/tableGrant.d.ts +2 -4
  816. package/esm/public/orm/models/tableGrant.js +6 -2
  817. package/esm/public/orm/models/trigger.d.ts +2 -4
  818. package/esm/public/orm/models/trigger.js +6 -2
  819. package/esm/public/orm/models/triggerFunction.d.ts +2 -4
  820. package/esm/public/orm/models/triggerFunction.js +6 -2
  821. package/esm/public/orm/models/uniqueConstraint.d.ts +2 -4
  822. package/esm/public/orm/models/uniqueConstraint.js +6 -2
  823. package/esm/public/orm/models/usageSnapshot.d.ts +2 -4
  824. package/esm/public/orm/models/usageSnapshot.js +6 -2
  825. package/esm/public/orm/models/user.d.ts +2 -4
  826. package/esm/public/orm/models/user.js +6 -2
  827. package/esm/public/orm/models/userAuthModule.d.ts +2 -4
  828. package/esm/public/orm/models/userAuthModule.js +6 -2
  829. package/esm/public/orm/models/userConnectedAccount.d.ts +2 -4
  830. package/esm/public/orm/models/userConnectedAccount.js +6 -2
  831. package/esm/public/orm/models/usersModule.d.ts +2 -4
  832. package/esm/public/orm/models/usersModule.js +6 -2
  833. package/esm/public/orm/models/view.d.ts +2 -4
  834. package/esm/public/orm/models/view.js +6 -2
  835. package/esm/public/orm/models/viewGrant.d.ts +2 -4
  836. package/esm/public/orm/models/viewGrant.js +6 -2
  837. package/esm/public/orm/models/viewRule.d.ts +2 -4
  838. package/esm/public/orm/models/viewRule.js +6 -2
  839. package/esm/public/orm/models/viewTable.d.ts +2 -4
  840. package/esm/public/orm/models/viewTable.js +6 -2
  841. package/esm/public/orm/models/webauthnAuthModule.d.ts +2 -4
  842. package/esm/public/orm/models/webauthnAuthModule.js +6 -2
  843. package/esm/public/orm/models/webauthnCredential.d.ts +2 -4
  844. package/esm/public/orm/models/webauthnCredential.js +6 -2
  845. package/esm/public/orm/models/webauthnCredentialsModule.d.ts +2 -4
  846. package/esm/public/orm/models/webauthnCredentialsModule.js +6 -2
  847. package/esm/public/orm/models/webauthnSetting.d.ts +2 -4
  848. package/esm/public/orm/models/webauthnSetting.js +6 -2
  849. package/esm/public/orm/query-builder.d.ts +18 -1
  850. package/esm/public/orm/query-builder.js +108 -1
  851. package/esm/public/orm/select-types.d.ts +25 -1
  852. package/objects/cli/commands/commit.js +1 -1
  853. package/objects/cli/commands/get-all-record.js +1 -1
  854. package/objects/cli/commands/object.js +1 -1
  855. package/objects/cli/commands/ref.js +1 -1
  856. package/objects/cli/commands/store.js +1 -1
  857. package/objects/cli/utils.d.ts +2 -2
  858. package/objects/cli/utils.js +4 -2
  859. package/objects/orm/index.d.ts +0 -1
  860. package/objects/orm/index.js +1 -3
  861. package/objects/orm/models/commit.d.ts +2 -4
  862. package/objects/orm/models/commit.js +6 -2
  863. package/objects/orm/models/getAllRecord.d.ts +2 -4
  864. package/objects/orm/models/getAllRecord.js +6 -2
  865. package/objects/orm/models/object.d.ts +3 -5
  866. package/objects/orm/models/object.js +7 -3
  867. package/objects/orm/models/ref.d.ts +2 -4
  868. package/objects/orm/models/ref.js +6 -2
  869. package/objects/orm/models/store.d.ts +2 -4
  870. package/objects/orm/models/store.js +6 -2
  871. package/objects/orm/query-builder.d.ts +18 -1
  872. package/objects/orm/query-builder.js +112 -1
  873. package/objects/orm/select-types.d.ts +25 -1
  874. package/package.json +4 -4
  875. package/public/cli/commands/agent-message.js +1 -1
  876. package/public/cli/commands/agent-task.js +1 -1
  877. package/public/cli/commands/agent-thread.js +1 -1
  878. package/public/cli/commands/api-module.js +1 -1
  879. package/public/cli/commands/api-schema.js +1 -1
  880. package/public/cli/commands/api-setting.js +1 -1
  881. package/public/cli/commands/api.js +1 -1
  882. package/public/cli/commands/app-achievement.js +1 -1
  883. package/public/cli/commands/app-admin-grant.js +1 -1
  884. package/public/cli/commands/app-claimed-invite.js +1 -1
  885. package/public/cli/commands/app-grant.js +1 -1
  886. package/public/cli/commands/app-invite.js +1 -1
  887. package/public/cli/commands/app-level-requirement.js +1 -1
  888. package/public/cli/commands/app-level.js +1 -1
  889. package/public/cli/commands/app-limit-cap.js +1 -1
  890. package/public/cli/commands/app-limit-caps-default.js +1 -1
  891. package/public/cli/commands/app-limit-credit-code-item.js +1 -1
  892. package/public/cli/commands/app-limit-credit-code.js +1 -1
  893. package/public/cli/commands/app-limit-credit-redemption.js +1 -1
  894. package/public/cli/commands/app-limit-credit.js +1 -1
  895. package/public/cli/commands/app-limit-default.js +1 -1
  896. package/public/cli/commands/app-limit-event.js +1 -1
  897. package/public/cli/commands/app-limit.js +1 -1
  898. package/public/cli/commands/app-membership-default.js +1 -1
  899. package/public/cli/commands/app-membership.js +1 -1
  900. package/public/cli/commands/app-owner-grant.js +1 -1
  901. package/public/cli/commands/app-permission-default.js +1 -1
  902. package/public/cli/commands/app-permission.js +1 -1
  903. package/public/cli/commands/app-step.js +1 -1
  904. package/public/cli/commands/app.js +1 -1
  905. package/public/cli/commands/ast-migration.js +1 -1
  906. package/public/cli/commands/audit-log.js +1 -1
  907. package/public/cli/commands/billing-module.js +1 -1
  908. package/public/cli/commands/billing-provider-module.js +1 -1
  909. package/public/cli/commands/blueprint-construction.js +1 -1
  910. package/public/cli/commands/blueprint-template.js +1 -1
  911. package/public/cli/commands/blueprint.js +1 -1
  912. package/public/cli/commands/check-constraint.js +1 -1
  913. package/public/cli/commands/commit.js +1 -1
  914. package/public/cli/commands/connected-accounts-module.js +1 -1
  915. package/public/cli/commands/cors-setting.js +1 -1
  916. package/public/cli/commands/crypto-address.js +1 -1
  917. package/public/cli/commands/crypto-addresses-module.js +1 -1
  918. package/public/cli/commands/crypto-auth-module.js +1 -1
  919. package/public/cli/commands/database-provision-module.js +1 -1
  920. package/public/cli/commands/database-setting.js +1 -1
  921. package/public/cli/commands/database-transfer.js +1 -1
  922. package/public/cli/commands/database.js +1 -1
  923. package/public/cli/commands/default-ids-module.js +1 -1
  924. package/public/cli/commands/default-privilege.js +1 -1
  925. package/public/cli/commands/denormalized-table-field.js +1 -1
  926. package/public/cli/commands/devices-module.js +1 -1
  927. package/public/cli/commands/domain.js +1 -1
  928. package/public/cli/commands/email.js +1 -1
  929. package/public/cli/commands/emails-module.js +1 -1
  930. package/public/cli/commands/embedding-chunk.js +1 -1
  931. package/public/cli/commands/encrypted-secrets-module.js +1 -1
  932. package/public/cli/commands/entity-type-provision.js +1 -1
  933. package/public/cli/commands/enum.js +1 -1
  934. package/public/cli/commands/field.js +1 -1
  935. package/public/cli/commands/foreign-key-constraint.js +1 -1
  936. package/public/cli/commands/full-text-search.js +1 -1
  937. package/public/cli/commands/function.js +1 -1
  938. package/public/cli/commands/get-all-record.js +1 -1
  939. package/public/cli/commands/hierarchy-module.js +1 -1
  940. package/public/cli/commands/identity-provider.js +1 -1
  941. package/public/cli/commands/identity-providers-module.js +1 -1
  942. package/public/cli/commands/index.js +1 -1
  943. package/public/cli/commands/invites-module.js +1 -1
  944. package/public/cli/commands/levels-module.js +1 -1
  945. package/public/cli/commands/limits-module.js +1 -1
  946. package/public/cli/commands/membership-type.js +1 -1
  947. package/public/cli/commands/membership-types-module.js +1 -1
  948. package/public/cli/commands/memberships-module.js +1 -1
  949. package/public/cli/commands/migrate-file.js +1 -1
  950. package/public/cli/commands/node-type-registry.js +1 -1
  951. package/public/cli/commands/notifications-module.js +1 -1
  952. package/public/cli/commands/object.js +1 -1
  953. package/public/cli/commands/org-admin-grant.js +1 -1
  954. package/public/cli/commands/org-chart-edge-grant.js +1 -1
  955. package/public/cli/commands/org-chart-edge.js +1 -1
  956. package/public/cli/commands/org-claimed-invite.js +1 -1
  957. package/public/cli/commands/org-get-managers-record.js +1 -1
  958. package/public/cli/commands/org-get-subordinates-record.js +1 -1
  959. package/public/cli/commands/org-grant.js +1 -1
  960. package/public/cli/commands/org-invite.js +23 -1
  961. package/public/cli/commands/org-limit-aggregate.js +1 -1
  962. package/public/cli/commands/org-limit-cap.js +1 -1
  963. package/public/cli/commands/org-limit-caps-default.js +1 -1
  964. package/public/cli/commands/org-limit-credit.js +1 -1
  965. package/public/cli/commands/org-limit-default.js +1 -1
  966. package/public/cli/commands/org-limit-event.js +1 -1
  967. package/public/cli/commands/org-limit.js +1 -1
  968. package/public/cli/commands/org-member-profile.js +1 -1
  969. package/public/cli/commands/org-member.js +1 -1
  970. package/public/cli/commands/org-membership-default.js +1 -1
  971. package/public/cli/commands/org-membership-setting.js +1 -1
  972. package/public/cli/commands/org-membership.js +1 -1
  973. package/public/cli/commands/org-owner-grant.js +1 -1
  974. package/public/cli/commands/org-permission-default.js +1 -1
  975. package/public/cli/commands/org-permission.js +1 -1
  976. package/public/cli/commands/partition.js +1 -1
  977. package/public/cli/commands/permissions-module.js +1 -1
  978. package/public/cli/commands/phone-number.js +1 -1
  979. package/public/cli/commands/phone-numbers-module.js +1 -1
  980. package/public/cli/commands/plans-module.js +1 -1
  981. package/public/cli/commands/policy.js +1 -1
  982. package/public/cli/commands/primary-key-constraint.js +1 -1
  983. package/public/cli/commands/profiles-module.js +1 -1
  984. package/public/cli/commands/pubkey-setting.js +1 -1
  985. package/public/cli/commands/rate-limits-module.js +1 -1
  986. package/public/cli/commands/realtime-module.js +1 -1
  987. package/public/cli/commands/ref.js +1 -1
  988. package/public/cli/commands/relation-provision.js +1 -1
  989. package/public/cli/commands/rls-module.js +1 -1
  990. package/public/cli/commands/rls-setting.js +1 -1
  991. package/public/cli/commands/role-type.js +1 -1
  992. package/public/cli/commands/schema-grant.js +1 -1
  993. package/public/cli/commands/schema.js +1 -1
  994. package/public/cli/commands/secrets-module.js +1 -1
  995. package/public/cli/commands/secure-table-provision.js +1 -1
  996. package/public/cli/commands/session-secrets-module.js +1 -1
  997. package/public/cli/commands/sessions-module.js +1 -1
  998. package/public/cli/commands/site-metadatum.js +1 -1
  999. package/public/cli/commands/site-module.js +1 -1
  1000. package/public/cli/commands/site-theme.js +1 -1
  1001. package/public/cli/commands/site.js +1 -1
  1002. package/public/cli/commands/spatial-relation.js +1 -1
  1003. package/public/cli/commands/sql-action.js +1 -1
  1004. package/public/cli/commands/storage-module.js +1 -1
  1005. package/public/cli/commands/store.js +1 -1
  1006. package/public/cli/commands/table-grant.js +1 -1
  1007. package/public/cli/commands/table.js +1 -1
  1008. package/public/cli/commands/trigger-function.js +1 -1
  1009. package/public/cli/commands/trigger.js +1 -1
  1010. package/public/cli/commands/unique-constraint.js +1 -1
  1011. package/public/cli/commands/usage-snapshot.js +1 -1
  1012. package/public/cli/commands/user-auth-module.js +1 -1
  1013. package/public/cli/commands/user-connected-account.js +1 -1
  1014. package/public/cli/commands/user.js +1 -1
  1015. package/public/cli/commands/users-module.js +1 -1
  1016. package/public/cli/commands/view-grant.js +1 -1
  1017. package/public/cli/commands/view-rule.js +1 -1
  1018. package/public/cli/commands/view-table.js +1 -1
  1019. package/public/cli/commands/view.js +1 -1
  1020. package/public/cli/commands/webauthn-auth-module.js +1 -1
  1021. package/public/cli/commands/webauthn-credential.js +1 -1
  1022. package/public/cli/commands/webauthn-credentials-module.js +1 -1
  1023. package/public/cli/commands/webauthn-setting.js +1 -1
  1024. package/public/cli/utils.d.ts +2 -2
  1025. package/public/cli/utils.js +4 -2
  1026. package/public/orm/index.d.ts +0 -1
  1027. package/public/orm/index.js +1 -3
  1028. package/public/orm/input-types.d.ts +10 -1
  1029. package/public/orm/models/agentMessage.d.ts +2 -4
  1030. package/public/orm/models/agentMessage.js +6 -2
  1031. package/public/orm/models/agentTask.d.ts +2 -4
  1032. package/public/orm/models/agentTask.js +6 -2
  1033. package/public/orm/models/agentThread.d.ts +2 -4
  1034. package/public/orm/models/agentThread.js +6 -2
  1035. package/public/orm/models/api.d.ts +2 -4
  1036. package/public/orm/models/api.js +6 -2
  1037. package/public/orm/models/apiModule.d.ts +2 -4
  1038. package/public/orm/models/apiModule.js +6 -2
  1039. package/public/orm/models/apiSchema.d.ts +2 -4
  1040. package/public/orm/models/apiSchema.js +6 -2
  1041. package/public/orm/models/apiSetting.d.ts +2 -4
  1042. package/public/orm/models/apiSetting.js +6 -2
  1043. package/public/orm/models/app.d.ts +2 -4
  1044. package/public/orm/models/app.js +6 -2
  1045. package/public/orm/models/appAchievement.d.ts +2 -4
  1046. package/public/orm/models/appAchievement.js +6 -2
  1047. package/public/orm/models/appAdminGrant.d.ts +2 -4
  1048. package/public/orm/models/appAdminGrant.js +6 -2
  1049. package/public/orm/models/appClaimedInvite.d.ts +2 -4
  1050. package/public/orm/models/appClaimedInvite.js +6 -2
  1051. package/public/orm/models/appGrant.d.ts +2 -4
  1052. package/public/orm/models/appGrant.js +6 -2
  1053. package/public/orm/models/appInvite.d.ts +2 -4
  1054. package/public/orm/models/appInvite.js +6 -2
  1055. package/public/orm/models/appLevel.d.ts +2 -4
  1056. package/public/orm/models/appLevel.js +6 -2
  1057. package/public/orm/models/appLevelRequirement.d.ts +2 -4
  1058. package/public/orm/models/appLevelRequirement.js +6 -2
  1059. package/public/orm/models/appLimit.d.ts +2 -4
  1060. package/public/orm/models/appLimit.js +6 -2
  1061. package/public/orm/models/appLimitCap.d.ts +2 -4
  1062. package/public/orm/models/appLimitCap.js +6 -2
  1063. package/public/orm/models/appLimitCapsDefault.d.ts +2 -4
  1064. package/public/orm/models/appLimitCapsDefault.js +6 -2
  1065. package/public/orm/models/appLimitCredit.d.ts +2 -4
  1066. package/public/orm/models/appLimitCredit.js +6 -2
  1067. package/public/orm/models/appLimitCreditCode.d.ts +2 -4
  1068. package/public/orm/models/appLimitCreditCode.js +6 -2
  1069. package/public/orm/models/appLimitCreditCodeItem.d.ts +2 -4
  1070. package/public/orm/models/appLimitCreditCodeItem.js +6 -2
  1071. package/public/orm/models/appLimitCreditRedemption.d.ts +2 -4
  1072. package/public/orm/models/appLimitCreditRedemption.js +6 -2
  1073. package/public/orm/models/appLimitDefault.d.ts +2 -4
  1074. package/public/orm/models/appLimitDefault.js +6 -2
  1075. package/public/orm/models/appLimitEvent.d.ts +2 -4
  1076. package/public/orm/models/appLimitEvent.js +6 -2
  1077. package/public/orm/models/appMembership.d.ts +2 -4
  1078. package/public/orm/models/appMembership.js +6 -2
  1079. package/public/orm/models/appMembershipDefault.d.ts +2 -4
  1080. package/public/orm/models/appMembershipDefault.js +6 -2
  1081. package/public/orm/models/appOwnerGrant.d.ts +2 -4
  1082. package/public/orm/models/appOwnerGrant.js +6 -2
  1083. package/public/orm/models/appPermission.d.ts +2 -4
  1084. package/public/orm/models/appPermission.js +6 -2
  1085. package/public/orm/models/appPermissionDefault.d.ts +2 -4
  1086. package/public/orm/models/appPermissionDefault.js +6 -2
  1087. package/public/orm/models/appStep.d.ts +2 -4
  1088. package/public/orm/models/appStep.js +6 -2
  1089. package/public/orm/models/astMigration.d.ts +2 -4
  1090. package/public/orm/models/astMigration.js +6 -2
  1091. package/public/orm/models/auditLog.d.ts +2 -4
  1092. package/public/orm/models/auditLog.js +6 -2
  1093. package/public/orm/models/billingModule.d.ts +2 -4
  1094. package/public/orm/models/billingModule.js +6 -2
  1095. package/public/orm/models/billingProviderModule.d.ts +2 -4
  1096. package/public/orm/models/billingProviderModule.js +6 -2
  1097. package/public/orm/models/blueprint.d.ts +2 -4
  1098. package/public/orm/models/blueprint.js +6 -2
  1099. package/public/orm/models/blueprintConstruction.d.ts +2 -4
  1100. package/public/orm/models/blueprintConstruction.js +6 -2
  1101. package/public/orm/models/blueprintTemplate.d.ts +2 -4
  1102. package/public/orm/models/blueprintTemplate.js +6 -2
  1103. package/public/orm/models/checkConstraint.d.ts +2 -4
  1104. package/public/orm/models/checkConstraint.js +6 -2
  1105. package/public/orm/models/commit.d.ts +2 -4
  1106. package/public/orm/models/commit.js +6 -2
  1107. package/public/orm/models/connectedAccountsModule.d.ts +2 -4
  1108. package/public/orm/models/connectedAccountsModule.js +6 -2
  1109. package/public/orm/models/corsSetting.d.ts +2 -4
  1110. package/public/orm/models/corsSetting.js +6 -2
  1111. package/public/orm/models/cryptoAddress.d.ts +2 -4
  1112. package/public/orm/models/cryptoAddress.js +6 -2
  1113. package/public/orm/models/cryptoAddressesModule.d.ts +2 -4
  1114. package/public/orm/models/cryptoAddressesModule.js +6 -2
  1115. package/public/orm/models/cryptoAuthModule.d.ts +2 -4
  1116. package/public/orm/models/cryptoAuthModule.js +6 -2
  1117. package/public/orm/models/database.d.ts +2 -4
  1118. package/public/orm/models/database.js +6 -2
  1119. package/public/orm/models/databaseProvisionModule.d.ts +2 -4
  1120. package/public/orm/models/databaseProvisionModule.js +6 -2
  1121. package/public/orm/models/databaseSetting.d.ts +2 -4
  1122. package/public/orm/models/databaseSetting.js +6 -2
  1123. package/public/orm/models/databaseTransfer.d.ts +2 -4
  1124. package/public/orm/models/databaseTransfer.js +6 -2
  1125. package/public/orm/models/defaultIdsModule.d.ts +2 -4
  1126. package/public/orm/models/defaultIdsModule.js +6 -2
  1127. package/public/orm/models/defaultPrivilege.d.ts +2 -4
  1128. package/public/orm/models/defaultPrivilege.js +6 -2
  1129. package/public/orm/models/denormalizedTableField.d.ts +2 -4
  1130. package/public/orm/models/denormalizedTableField.js +6 -2
  1131. package/public/orm/models/devicesModule.d.ts +2 -4
  1132. package/public/orm/models/devicesModule.js +6 -2
  1133. package/public/orm/models/domain.d.ts +2 -4
  1134. package/public/orm/models/domain.js +6 -2
  1135. package/public/orm/models/email.d.ts +2 -4
  1136. package/public/orm/models/email.js +6 -2
  1137. package/public/orm/models/emailsModule.d.ts +2 -4
  1138. package/public/orm/models/emailsModule.js +6 -2
  1139. package/public/orm/models/embeddingChunk.d.ts +2 -4
  1140. package/public/orm/models/embeddingChunk.js +6 -2
  1141. package/public/orm/models/encryptedSecretsModule.d.ts +2 -4
  1142. package/public/orm/models/encryptedSecretsModule.js +6 -2
  1143. package/public/orm/models/entityTypeProvision.d.ts +2 -4
  1144. package/public/orm/models/entityTypeProvision.js +6 -2
  1145. package/public/orm/models/enum.d.ts +2 -4
  1146. package/public/orm/models/enum.js +6 -2
  1147. package/public/orm/models/field.d.ts +2 -4
  1148. package/public/orm/models/field.js +6 -2
  1149. package/public/orm/models/foreignKeyConstraint.d.ts +2 -4
  1150. package/public/orm/models/foreignKeyConstraint.js +6 -2
  1151. package/public/orm/models/fullTextSearch.d.ts +2 -4
  1152. package/public/orm/models/fullTextSearch.js +6 -2
  1153. package/public/orm/models/function.d.ts +2 -4
  1154. package/public/orm/models/function.js +6 -2
  1155. package/public/orm/models/getAllRecord.d.ts +2 -4
  1156. package/public/orm/models/getAllRecord.js +6 -2
  1157. package/public/orm/models/hierarchyModule.d.ts +2 -4
  1158. package/public/orm/models/hierarchyModule.js +6 -2
  1159. package/public/orm/models/identityProvider.d.ts +2 -4
  1160. package/public/orm/models/identityProvider.js +6 -2
  1161. package/public/orm/models/identityProvidersModule.d.ts +2 -4
  1162. package/public/orm/models/identityProvidersModule.js +6 -2
  1163. package/public/orm/models/indexModel.d.ts +2 -4
  1164. package/public/orm/models/indexModel.js +6 -2
  1165. package/public/orm/models/invitesModule.d.ts +2 -4
  1166. package/public/orm/models/invitesModule.js +6 -2
  1167. package/public/orm/models/levelsModule.d.ts +2 -4
  1168. package/public/orm/models/levelsModule.js +6 -2
  1169. package/public/orm/models/limitsModule.d.ts +2 -4
  1170. package/public/orm/models/limitsModule.js +6 -2
  1171. package/public/orm/models/membershipType.d.ts +2 -4
  1172. package/public/orm/models/membershipType.js +6 -2
  1173. package/public/orm/models/membershipTypesModule.d.ts +2 -4
  1174. package/public/orm/models/membershipTypesModule.js +6 -2
  1175. package/public/orm/models/membershipsModule.d.ts +2 -4
  1176. package/public/orm/models/membershipsModule.js +6 -2
  1177. package/public/orm/models/migrateFile.d.ts +2 -4
  1178. package/public/orm/models/migrateFile.js +6 -2
  1179. package/public/orm/models/nodeTypeRegistry.d.ts +2 -4
  1180. package/public/orm/models/nodeTypeRegistry.js +6 -2
  1181. package/public/orm/models/notificationsModule.d.ts +2 -4
  1182. package/public/orm/models/notificationsModule.js +6 -2
  1183. package/public/orm/models/object.d.ts +3 -5
  1184. package/public/orm/models/object.js +7 -3
  1185. package/public/orm/models/orgAdminGrant.d.ts +2 -4
  1186. package/public/orm/models/orgAdminGrant.js +6 -2
  1187. package/public/orm/models/orgChartEdge.d.ts +2 -4
  1188. package/public/orm/models/orgChartEdge.js +6 -2
  1189. package/public/orm/models/orgChartEdgeGrant.d.ts +2 -4
  1190. package/public/orm/models/orgChartEdgeGrant.js +6 -2
  1191. package/public/orm/models/orgClaimedInvite.d.ts +2 -4
  1192. package/public/orm/models/orgClaimedInvite.js +6 -2
  1193. package/public/orm/models/orgGetManagersRecord.d.ts +2 -4
  1194. package/public/orm/models/orgGetManagersRecord.js +6 -2
  1195. package/public/orm/models/orgGetSubordinatesRecord.d.ts +2 -4
  1196. package/public/orm/models/orgGetSubordinatesRecord.js +6 -2
  1197. package/public/orm/models/orgGrant.d.ts +2 -4
  1198. package/public/orm/models/orgGrant.js +6 -2
  1199. package/public/orm/models/orgInvite.d.ts +2 -4
  1200. package/public/orm/models/orgInvite.js +6 -2
  1201. package/public/orm/models/orgLimit.d.ts +2 -4
  1202. package/public/orm/models/orgLimit.js +6 -2
  1203. package/public/orm/models/orgLimitAggregate.d.ts +2 -4
  1204. package/public/orm/models/orgLimitAggregate.js +6 -2
  1205. package/public/orm/models/orgLimitCap.d.ts +2 -4
  1206. package/public/orm/models/orgLimitCap.js +6 -2
  1207. package/public/orm/models/orgLimitCapsDefault.d.ts +2 -4
  1208. package/public/orm/models/orgLimitCapsDefault.js +6 -2
  1209. package/public/orm/models/orgLimitCredit.d.ts +2 -4
  1210. package/public/orm/models/orgLimitCredit.js +6 -2
  1211. package/public/orm/models/orgLimitDefault.d.ts +2 -4
  1212. package/public/orm/models/orgLimitDefault.js +6 -2
  1213. package/public/orm/models/orgLimitEvent.d.ts +2 -4
  1214. package/public/orm/models/orgLimitEvent.js +6 -2
  1215. package/public/orm/models/orgMember.d.ts +2 -4
  1216. package/public/orm/models/orgMember.js +6 -2
  1217. package/public/orm/models/orgMemberProfile.d.ts +2 -4
  1218. package/public/orm/models/orgMemberProfile.js +6 -2
  1219. package/public/orm/models/orgMembership.d.ts +2 -4
  1220. package/public/orm/models/orgMembership.js +6 -2
  1221. package/public/orm/models/orgMembershipDefault.d.ts +2 -4
  1222. package/public/orm/models/orgMembershipDefault.js +6 -2
  1223. package/public/orm/models/orgMembershipSetting.d.ts +2 -4
  1224. package/public/orm/models/orgMembershipSetting.js +6 -2
  1225. package/public/orm/models/orgOwnerGrant.d.ts +2 -4
  1226. package/public/orm/models/orgOwnerGrant.js +6 -2
  1227. package/public/orm/models/orgPermission.d.ts +2 -4
  1228. package/public/orm/models/orgPermission.js +6 -2
  1229. package/public/orm/models/orgPermissionDefault.d.ts +2 -4
  1230. package/public/orm/models/orgPermissionDefault.js +6 -2
  1231. package/public/orm/models/partition.d.ts +2 -4
  1232. package/public/orm/models/partition.js +6 -2
  1233. package/public/orm/models/permissionsModule.d.ts +2 -4
  1234. package/public/orm/models/permissionsModule.js +6 -2
  1235. package/public/orm/models/phoneNumber.d.ts +2 -4
  1236. package/public/orm/models/phoneNumber.js +6 -2
  1237. package/public/orm/models/phoneNumbersModule.d.ts +2 -4
  1238. package/public/orm/models/phoneNumbersModule.js +6 -2
  1239. package/public/orm/models/plansModule.d.ts +2 -4
  1240. package/public/orm/models/plansModule.js +6 -2
  1241. package/public/orm/models/policy.d.ts +2 -4
  1242. package/public/orm/models/policy.js +6 -2
  1243. package/public/orm/models/primaryKeyConstraint.d.ts +2 -4
  1244. package/public/orm/models/primaryKeyConstraint.js +6 -2
  1245. package/public/orm/models/profilesModule.d.ts +2 -4
  1246. package/public/orm/models/profilesModule.js +6 -2
  1247. package/public/orm/models/pubkeySetting.d.ts +2 -4
  1248. package/public/orm/models/pubkeySetting.js +6 -2
  1249. package/public/orm/models/rateLimitsModule.d.ts +2 -4
  1250. package/public/orm/models/rateLimitsModule.js +6 -2
  1251. package/public/orm/models/realtimeModule.d.ts +2 -4
  1252. package/public/orm/models/realtimeModule.js +6 -2
  1253. package/public/orm/models/ref.d.ts +2 -4
  1254. package/public/orm/models/ref.js +6 -2
  1255. package/public/orm/models/relationProvision.d.ts +2 -4
  1256. package/public/orm/models/relationProvision.js +6 -2
  1257. package/public/orm/models/rlsModule.d.ts +2 -4
  1258. package/public/orm/models/rlsModule.js +6 -2
  1259. package/public/orm/models/rlsSetting.d.ts +2 -4
  1260. package/public/orm/models/rlsSetting.js +6 -2
  1261. package/public/orm/models/roleType.d.ts +2 -4
  1262. package/public/orm/models/roleType.js +6 -2
  1263. package/public/orm/models/schema.d.ts +2 -4
  1264. package/public/orm/models/schema.js +6 -2
  1265. package/public/orm/models/schemaGrant.d.ts +2 -4
  1266. package/public/orm/models/schemaGrant.js +6 -2
  1267. package/public/orm/models/secretsModule.d.ts +2 -4
  1268. package/public/orm/models/secretsModule.js +6 -2
  1269. package/public/orm/models/secureTableProvision.d.ts +2 -4
  1270. package/public/orm/models/secureTableProvision.js +6 -2
  1271. package/public/orm/models/sessionSecretsModule.d.ts +2 -4
  1272. package/public/orm/models/sessionSecretsModule.js +6 -2
  1273. package/public/orm/models/sessionsModule.d.ts +2 -4
  1274. package/public/orm/models/sessionsModule.js +6 -2
  1275. package/public/orm/models/site.d.ts +2 -4
  1276. package/public/orm/models/site.js +6 -2
  1277. package/public/orm/models/siteMetadatum.d.ts +2 -4
  1278. package/public/orm/models/siteMetadatum.js +6 -2
  1279. package/public/orm/models/siteModule.d.ts +2 -4
  1280. package/public/orm/models/siteModule.js +6 -2
  1281. package/public/orm/models/siteTheme.d.ts +2 -4
  1282. package/public/orm/models/siteTheme.js +6 -2
  1283. package/public/orm/models/spatialRelation.d.ts +2 -4
  1284. package/public/orm/models/spatialRelation.js +6 -2
  1285. package/public/orm/models/sqlAction.d.ts +2 -4
  1286. package/public/orm/models/sqlAction.js +6 -2
  1287. package/public/orm/models/storageModule.d.ts +2 -4
  1288. package/public/orm/models/storageModule.js +6 -2
  1289. package/public/orm/models/store.d.ts +2 -4
  1290. package/public/orm/models/store.js +6 -2
  1291. package/public/orm/models/table.d.ts +2 -4
  1292. package/public/orm/models/table.js +6 -2
  1293. package/public/orm/models/tableGrant.d.ts +2 -4
  1294. package/public/orm/models/tableGrant.js +6 -2
  1295. package/public/orm/models/trigger.d.ts +2 -4
  1296. package/public/orm/models/trigger.js +6 -2
  1297. package/public/orm/models/triggerFunction.d.ts +2 -4
  1298. package/public/orm/models/triggerFunction.js +6 -2
  1299. package/public/orm/models/uniqueConstraint.d.ts +2 -4
  1300. package/public/orm/models/uniqueConstraint.js +6 -2
  1301. package/public/orm/models/usageSnapshot.d.ts +2 -4
  1302. package/public/orm/models/usageSnapshot.js +6 -2
  1303. package/public/orm/models/user.d.ts +2 -4
  1304. package/public/orm/models/user.js +6 -2
  1305. package/public/orm/models/userAuthModule.d.ts +2 -4
  1306. package/public/orm/models/userAuthModule.js +6 -2
  1307. package/public/orm/models/userConnectedAccount.d.ts +2 -4
  1308. package/public/orm/models/userConnectedAccount.js +6 -2
  1309. package/public/orm/models/usersModule.d.ts +2 -4
  1310. package/public/orm/models/usersModule.js +6 -2
  1311. package/public/orm/models/view.d.ts +2 -4
  1312. package/public/orm/models/view.js +6 -2
  1313. package/public/orm/models/viewGrant.d.ts +2 -4
  1314. package/public/orm/models/viewGrant.js +6 -2
  1315. package/public/orm/models/viewRule.d.ts +2 -4
  1316. package/public/orm/models/viewRule.js +6 -2
  1317. package/public/orm/models/viewTable.d.ts +2 -4
  1318. package/public/orm/models/viewTable.js +6 -2
  1319. package/public/orm/models/webauthnAuthModule.d.ts +2 -4
  1320. package/public/orm/models/webauthnAuthModule.js +6 -2
  1321. package/public/orm/models/webauthnCredential.d.ts +2 -4
  1322. package/public/orm/models/webauthnCredential.js +6 -2
  1323. package/public/orm/models/webauthnCredentialsModule.d.ts +2 -4
  1324. package/public/orm/models/webauthnCredentialsModule.js +6 -2
  1325. package/public/orm/models/webauthnSetting.d.ts +2 -4
  1326. package/public/orm/models/webauthnSetting.js +6 -2
  1327. package/public/orm/query-builder.d.ts +18 -1
  1328. package/public/orm/query-builder.js +112 -1
  1329. package/public/orm/select-types.d.ts +25 -1
@@ -24,9 +24,10 @@ export interface FindManyArgs<TSelect, TWhere, TOrderBy = never> {
24
24
  before?: string;
25
25
  offset?: number;
26
26
  }
27
- export interface FindFirstArgs<TSelect, TWhere> {
27
+ export interface FindFirstArgs<TSelect, TWhere, TOrderBy> {
28
28
  select?: TSelect;
29
29
  where?: TWhere;
30
+ orderBy?: TOrderBy[];
30
31
  }
31
32
  export interface CreateArgs<TSelect, TData> {
32
33
  data: TData;
@@ -44,6 +45,29 @@ export interface DeleteArgs<TWhere, TSelect = undefined> {
44
45
  where: TWhere;
45
46
  select?: TSelect;
46
47
  }
48
+ export interface BulkInsertArgs<TSelect, TData, TOnConflict = unknown> {
49
+ data: TData[];
50
+ select?: TSelect;
51
+ onConflict?: TOnConflict;
52
+ }
53
+ export interface BulkUpsertArgs<TSelect, TData, TOnConflict = unknown> {
54
+ data: TData[];
55
+ select?: TSelect;
56
+ onConflict: TOnConflict;
57
+ }
58
+ export interface BulkUpdateArgs<TSelect, TWhere, TData> {
59
+ where: TWhere;
60
+ data: TData;
61
+ select?: TSelect;
62
+ }
63
+ export interface BulkDeleteArgs<TSelect, TWhere> {
64
+ where: TWhere;
65
+ select?: TSelect;
66
+ }
67
+ export interface BulkMutationResult<T> {
68
+ affectedCount: number;
69
+ returning: T[];
70
+ }
47
71
  type DepthLevel = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
48
72
  type DecrementDepth = {
49
73
  0: 0;
@@ -17,7 +17,7 @@ const fieldSchema = {
17
17
  treeId: 'uuid',
18
18
  date: 'string',
19
19
  };
20
- const usage = '\ncommit <command>\n\nCommands:\n list List commit records\n find-first Find first matching commit record\n get Get a commit by ID\n create Create a new commit\n update Update an existing commit\n delete Delete a commit\n\nList Options:\n --limit <n> Max number of records to return (forward pagination)\n --last <n> Number of records from the end (backward pagination)\n --after <cursor> Cursor for forward pagination\n --before <cursor> Cursor for backward pagination\n --offset <n> Number of records to skip\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.<f>.<op> Condition filter (dot-notation)\n\n --help, -h Show this help message\n';
20
+ const usage = '\ncommit <command>\n\nCommands:\n list List commit records\n find-first Find first matching commit record\n get Get a commit by ID\n create Create a new commit\n update Update an existing commit\n delete Delete a commit\n\nList Options:\n --limit <n> Max number of records to return (forward pagination)\n --last <n> Number of records from the end (backward pagination)\n --after <cursor> Cursor for forward pagination\n --before <cursor> Cursor for backward pagination\n --offset <n> Number of records to skip\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n';
21
21
  export default async (argv, prompter, _options) => {
22
22
  if (argv.help || argv.h) {
23
23
  console.log(usage);
@@ -10,7 +10,7 @@ const fieldSchema = {
10
10
  path: 'string',
11
11
  data: 'json',
12
12
  };
13
- const usage = '\nget-all-record <command>\n\nCommands:\n list List getAllRecord records\n find-first Find first matching getAllRecord record\n create Create a new getAllRecord\n\nList Options:\n --limit <n> Max number of records to return (forward pagination)\n --last <n> Number of records from the end (backward pagination)\n --after <cursor> Cursor for forward pagination\n --before <cursor> Cursor for backward pagination\n --offset <n> Number of records to skip\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.<f>.<op> Condition filter (dot-notation)\n\n --help, -h Show this help message\n';
13
+ const usage = '\nget-all-record <command>\n\nCommands:\n list List getAllRecord records\n find-first Find first matching getAllRecord record\n create Create a new getAllRecord\n\nList Options:\n --limit <n> Max number of records to return (forward pagination)\n --last <n> Number of records from the end (backward pagination)\n --after <cursor> Cursor for forward pagination\n --before <cursor> Cursor for backward pagination\n --offset <n> Number of records to skip\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n';
14
14
  export default async (argv, prompter, _options) => {
15
15
  if (argv.help || argv.h) {
16
16
  console.log(usage);
@@ -16,7 +16,7 @@ const fieldSchema = {
16
16
  frzn: 'boolean',
17
17
  createdAt: 'string',
18
18
  };
19
- const usage = '\nobject <command>\n\nCommands:\n list List object records\n find-first Find first matching object record\n get Get a object by ID\n create Create a new object\n update Update an existing object\n delete Delete a object\n\nList Options:\n --limit <n> Max number of records to return (forward pagination)\n --last <n> Number of records from the end (backward pagination)\n --after <cursor> Cursor for forward pagination\n --before <cursor> Cursor for backward pagination\n --offset <n> Number of records to skip\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.<f>.<op> Condition filter (dot-notation)\n\n --help, -h Show this help message\n';
19
+ const usage = '\nobject <command>\n\nCommands:\n list List object records\n find-first Find first matching object record\n get Get a object by ID\n create Create a new object\n update Update an existing object\n delete Delete a object\n\nList Options:\n --limit <n> Max number of records to return (forward pagination)\n --last <n> Number of records from the end (backward pagination)\n --after <cursor> Cursor for forward pagination\n --before <cursor> Cursor for backward pagination\n --offset <n> Number of records to skip\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n';
20
20
  export default async (argv, prompter, _options) => {
21
21
  if (argv.help || argv.h) {
22
22
  console.log(usage);
@@ -13,7 +13,7 @@ const fieldSchema = {
13
13
  storeId: 'uuid',
14
14
  commitId: 'uuid',
15
15
  };
16
- const usage = '\nref <command>\n\nCommands:\n list List ref records\n find-first Find first matching ref record\n get Get a ref by ID\n create Create a new ref\n update Update an existing ref\n delete Delete a ref\n\nList Options:\n --limit <n> Max number of records to return (forward pagination)\n --last <n> Number of records from the end (backward pagination)\n --after <cursor> Cursor for forward pagination\n --before <cursor> Cursor for backward pagination\n --offset <n> Number of records to skip\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.<f>.<op> Condition filter (dot-notation)\n\n --help, -h Show this help message\n';
16
+ const usage = '\nref <command>\n\nCommands:\n list List ref records\n find-first Find first matching ref record\n get Get a ref by ID\n create Create a new ref\n update Update an existing ref\n delete Delete a ref\n\nList Options:\n --limit <n> Max number of records to return (forward pagination)\n --last <n> Number of records from the end (backward pagination)\n --after <cursor> Cursor for forward pagination\n --before <cursor> Cursor for backward pagination\n --offset <n> Number of records to skip\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n';
17
17
  export default async (argv, prompter, _options) => {
18
18
  if (argv.help || argv.h) {
19
19
  console.log(usage);
@@ -13,7 +13,7 @@ const fieldSchema = {
13
13
  hash: 'uuid',
14
14
  createdAt: 'string',
15
15
  };
16
- const usage = '\nstore <command>\n\nCommands:\n list List store records\n find-first Find first matching store record\n get Get a store by ID\n create Create a new store\n update Update an existing store\n delete Delete a store\n\nList Options:\n --limit <n> Max number of records to return (forward pagination)\n --last <n> Number of records from the end (backward pagination)\n --after <cursor> Cursor for forward pagination\n --before <cursor> Cursor for backward pagination\n --offset <n> Number of records to skip\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.<f>.<op> Condition filter (dot-notation)\n\n --help, -h Show this help message\n';
16
+ const usage = '\nstore <command>\n\nCommands:\n list List store records\n find-first Find first matching store record\n get Get a store by ID\n create Create a new store\n update Update an existing store\n delete Delete a store\n\nList Options:\n --limit <n> Max number of records to return (forward pagination)\n --last <n> Number of records from the end (backward pagination)\n --after <cursor> Cursor for forward pagination\n --before <cursor> Cursor for backward pagination\n --offset <n> Number of records to skip\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n';
17
17
  export default async (argv, prompter, _options) => {
18
18
  if (argv.help || argv.h) {
19
19
  console.log(usage);
@@ -81,8 +81,8 @@ export declare function parseSelectFlag(argv: Record<string, unknown>, defaultSe
81
81
  export declare function parseFindManyArgs<T = Record<string, unknown>>(argv: Record<string, unknown>, defaultSelect: Record<string, unknown>, extraWhere?: Record<string, unknown>): T;
82
82
  /**
83
83
  * Build findFirst args from CLI argv.
84
- * Like parseFindManyArgs but only includes select and where
85
- * (no pagination flags — findFirst returns the first matching record).
84
+ * Like parseFindManyArgs but without pagination flags (no limit/offset/after/before/last)
85
+ * — findFirst returns the first matching record. Supports select, where, and orderBy.
86
86
  */
87
87
  export declare function parseFindFirstArgs<T = Record<string, unknown>>(argv: Record<string, unknown>, defaultSelect: Record<string, unknown>): T;
88
88
  export declare function buildSelectFromPaths(paths: string): Record<string, unknown>;
@@ -227,16 +227,18 @@ export function parseFindManyArgs(argv, defaultSelect, extraWhere) {
227
227
  }
228
228
  /**
229
229
  * Build findFirst args from CLI argv.
230
- * Like parseFindManyArgs but only includes select and where
231
- * (no pagination flags — findFirst returns the first matching record).
230
+ * Like parseFindManyArgs but without pagination flags (no limit/offset/after/before/last)
231
+ * — findFirst returns the first matching record. Supports select, where, and orderBy.
232
232
  */
233
233
  export function parseFindFirstArgs(argv, defaultSelect) {
234
234
  const select = parseSelectFlag(argv, defaultSelect);
235
235
  const parsed = unflattenDotNotation(argv);
236
236
  const where = parsed.where;
237
+ const orderBy = parseOrderByFlag(argv);
237
238
  return {
238
239
  select,
239
240
  ...(where !== undefined ? { where } : {}),
241
+ ...(orderBy !== undefined ? { orderBy } : {}),
240
242
  };
241
243
  }
242
244
  export function buildSelectFromPaths(paths) {
@@ -9,7 +9,6 @@ export { GraphQLRequestError } from './client';
9
9
  export { QueryBuilder } from './query-builder';
10
10
  export * from './select-types';
11
11
  export * from './models';
12
- export { NodeHttpAdapter } from './node-fetch';
13
12
  export { createQueryOperations } from './query';
14
13
  export { createMutationOperations } from './mutation';
15
14
  /**
@@ -15,7 +15,6 @@ export { GraphQLRequestError } from './client';
15
15
  export { QueryBuilder } from './query-builder';
16
16
  export * from './select-types';
17
17
  export * from './models';
18
- export { NodeHttpAdapter } from './node-fetch';
19
18
  export { createQueryOperations } from './query';
20
19
  export { createMutationOperations } from './mutation';
21
20
  /**
@@ -15,12 +15,10 @@ export declare class CommitModel {
15
15
  } & StrictSelect<S, CommitSelect>): QueryBuilder<{
16
16
  commits: ConnectionResult<InferSelectResult<CommitWithRelations, S>>;
17
17
  }>;
18
- findFirst<S extends CommitSelect>(args: FindFirstArgs<S, CommitFilter> & {
18
+ findFirst<S extends CommitSelect>(args: FindFirstArgs<S, CommitFilter, CommitOrderBy> & {
19
19
  select: S;
20
20
  } & StrictSelect<S, CommitSelect>): QueryBuilder<{
21
- commits: {
22
- nodes: InferSelectResult<CommitWithRelations, S>[];
23
- };
21
+ commit: InferSelectResult<CommitWithRelations, S> | null;
24
22
  }>;
25
23
  findOne<S extends CommitSelect>(args: {
26
24
  id: string;
@@ -27,14 +27,18 @@ export class CommitModel {
27
27
  findFirst(args) {
28
28
  const { document, variables } = buildFindFirstDocument('Commit', 'commits', args.select, {
29
29
  where: args?.where,
30
- }, 'CommitFilter', connectionFieldsMap);
30
+ orderBy: args?.orderBy,
31
+ }, 'CommitFilter', 'CommitOrderBy', connectionFieldsMap);
31
32
  return new QueryBuilder({
32
33
  client: this.client,
33
34
  operation: 'query',
34
35
  operationName: 'Commit',
35
- fieldName: 'commits',
36
+ fieldName: 'commit',
36
37
  document,
37
38
  variables,
39
+ transform: (data) => ({
40
+ commit: data.commits?.nodes?.[0] ?? null,
41
+ }),
38
42
  });
39
43
  }
40
44
  findOne(args) {
@@ -15,12 +15,10 @@ export declare class GetAllRecordModel {
15
15
  } & StrictSelect<S, GetAllRecordSelect>): QueryBuilder<{
16
16
  getAll: ConnectionResult<InferSelectResult<GetAllRecordWithRelations, S>>;
17
17
  }>;
18
- findFirst<S extends GetAllRecordSelect>(args: FindFirstArgs<S, GetAllRecordFilter> & {
18
+ findFirst<S extends GetAllRecordSelect>(args: FindFirstArgs<S, GetAllRecordFilter, GetAllRecordsOrderBy> & {
19
19
  select: S;
20
20
  } & StrictSelect<S, GetAllRecordSelect>): QueryBuilder<{
21
- getAll: {
22
- nodes: InferSelectResult<GetAllRecordWithRelations, S>[];
23
- };
21
+ getAllRecord: InferSelectResult<GetAllRecordWithRelations, S> | null;
24
22
  }>;
25
23
  create<S extends GetAllRecordSelect>(args: CreateArgs<S, CreateGetAllRecordInput['getAllRecord']> & {
26
24
  select: S;
@@ -27,14 +27,18 @@ export class GetAllRecordModel {
27
27
  findFirst(args) {
28
28
  const { document, variables } = buildFindFirstDocument('GetAllRecord', 'getAll', args.select, {
29
29
  where: args?.where,
30
- }, 'GetAllRecordFilter', connectionFieldsMap);
30
+ orderBy: args?.orderBy,
31
+ }, 'GetAllRecordFilter', 'GetAllRecordsOrderBy', connectionFieldsMap);
31
32
  return new QueryBuilder({
32
33
  client: this.client,
33
34
  operation: 'query',
34
35
  operationName: 'GetAllRecord',
35
- fieldName: 'getAll',
36
+ fieldName: 'getAllRecord',
36
37
  document,
37
38
  variables,
39
+ transform: (data) => ({
40
+ getAllRecord: data.getAll?.nodes?.[0] ?? null,
41
+ }),
38
42
  });
39
43
  }
40
44
  create(args) {
@@ -15,18 +15,16 @@ export declare class ObjectModel {
15
15
  } & StrictSelect<S, ObjectSelect>): QueryBuilder<{
16
16
  objects: ConnectionResult<InferSelectResult<ObjectWithRelations, S>>;
17
17
  }>;
18
- findFirst<S extends ObjectSelect>(args: FindFirstArgs<S, ObjectFilter> & {
18
+ findFirst<S extends ObjectSelect>(args: FindFirstArgs<S, ObjectFilter, ObjectOrderBy> & {
19
19
  select: S;
20
20
  } & StrictSelect<S, ObjectSelect>): QueryBuilder<{
21
- objects: {
22
- nodes: InferSelectResult<ObjectWithRelations, S>[];
23
- };
21
+ object: InferSelectResult<ObjectWithRelations, S> | null;
24
22
  }>;
25
23
  findOne<S extends ObjectSelect>(args: {
26
24
  id: string;
27
25
  select: S;
28
26
  } & StrictSelect<S, ObjectSelect>): QueryBuilder<{
29
- getNodeAtPath: InferSelectResult<ObjectWithRelations, S> | null;
27
+ object: InferSelectResult<ObjectWithRelations, S> | null;
30
28
  }>;
31
29
  create<S extends ObjectSelect>(args: CreateArgs<S, CreateObjectInput['object']> & {
32
30
  select: S;
@@ -27,14 +27,18 @@ export class ObjectModel {
27
27
  findFirst(args) {
28
28
  const { document, variables } = buildFindFirstDocument('Object', 'objects', args.select, {
29
29
  where: args?.where,
30
- }, 'ObjectFilter', connectionFieldsMap);
30
+ orderBy: args?.orderBy,
31
+ }, 'ObjectFilter', 'ObjectOrderBy', connectionFieldsMap);
31
32
  return new QueryBuilder({
32
33
  client: this.client,
33
34
  operation: 'query',
34
35
  operationName: 'Object',
35
- fieldName: 'objects',
36
+ fieldName: 'object',
36
37
  document,
37
38
  variables,
39
+ transform: (data) => ({
40
+ object: data.objects?.nodes?.[0] ?? null,
41
+ }),
38
42
  });
39
43
  }
40
44
  findOne(args) {
@@ -43,7 +47,7 @@ export class ObjectModel {
43
47
  client: this.client,
44
48
  operation: 'query',
45
49
  operationName: 'Object',
46
- fieldName: 'getNodeAtPath',
50
+ fieldName: 'object',
47
51
  document,
48
52
  variables,
49
53
  });
@@ -15,12 +15,10 @@ export declare class RefModel {
15
15
  } & StrictSelect<S, RefSelect>): QueryBuilder<{
16
16
  refs: ConnectionResult<InferSelectResult<RefWithRelations, S>>;
17
17
  }>;
18
- findFirst<S extends RefSelect>(args: FindFirstArgs<S, RefFilter> & {
18
+ findFirst<S extends RefSelect>(args: FindFirstArgs<S, RefFilter, RefOrderBy> & {
19
19
  select: S;
20
20
  } & StrictSelect<S, RefSelect>): QueryBuilder<{
21
- refs: {
22
- nodes: InferSelectResult<RefWithRelations, S>[];
23
- };
21
+ ref: InferSelectResult<RefWithRelations, S> | null;
24
22
  }>;
25
23
  findOne<S extends RefSelect>(args: {
26
24
  id: string;
@@ -27,14 +27,18 @@ export class RefModel {
27
27
  findFirst(args) {
28
28
  const { document, variables } = buildFindFirstDocument('Ref', 'refs', args.select, {
29
29
  where: args?.where,
30
- }, 'RefFilter', connectionFieldsMap);
30
+ orderBy: args?.orderBy,
31
+ }, 'RefFilter', 'RefOrderBy', connectionFieldsMap);
31
32
  return new QueryBuilder({
32
33
  client: this.client,
33
34
  operation: 'query',
34
35
  operationName: 'Ref',
35
- fieldName: 'refs',
36
+ fieldName: 'ref',
36
37
  document,
37
38
  variables,
39
+ transform: (data) => ({
40
+ ref: data.refs?.nodes?.[0] ?? null,
41
+ }),
38
42
  });
39
43
  }
40
44
  findOne(args) {
@@ -15,12 +15,10 @@ export declare class StoreModel {
15
15
  } & StrictSelect<S, StoreSelect>): QueryBuilder<{
16
16
  stores: ConnectionResult<InferSelectResult<StoreWithRelations, S>>;
17
17
  }>;
18
- findFirst<S extends StoreSelect>(args: FindFirstArgs<S, StoreFilter> & {
18
+ findFirst<S extends StoreSelect>(args: FindFirstArgs<S, StoreFilter, StoreOrderBy> & {
19
19
  select: S;
20
20
  } & StrictSelect<S, StoreSelect>): QueryBuilder<{
21
- stores: {
22
- nodes: InferSelectResult<StoreWithRelations, S>[];
23
- };
21
+ store: InferSelectResult<StoreWithRelations, S> | null;
24
22
  }>;
25
23
  findOne<S extends StoreSelect>(args: {
26
24
  id: string;
@@ -27,14 +27,18 @@ export class StoreModel {
27
27
  findFirst(args) {
28
28
  const { document, variables } = buildFindFirstDocument('Store', 'stores', args.select, {
29
29
  where: args?.where,
30
- }, 'StoreFilter', connectionFieldsMap);
30
+ orderBy: args?.orderBy,
31
+ }, 'StoreFilter', 'StoreOrderBy', connectionFieldsMap);
31
32
  return new QueryBuilder({
32
33
  client: this.client,
33
34
  operation: 'query',
34
35
  operationName: 'Store',
35
- fieldName: 'stores',
36
+ fieldName: 'store',
36
37
  document,
37
38
  variables,
39
+ transform: (data) => ({
40
+ store: data.stores?.nodes?.[0] ?? null,
41
+ }),
38
42
  });
39
43
  }
40
44
  findOne(args) {
@@ -48,7 +48,8 @@ export declare function buildFindManyDocument<TSelect, TWhere>(operationName: st
48
48
  };
49
49
  export declare function buildFindFirstDocument<TSelect, TWhere>(operationName: string, queryField: string, select: TSelect, args: {
50
50
  where?: TWhere;
51
- }, filterTypeName: string, connectionFieldsMap?: Record<string, Record<string, string>>): {
51
+ orderBy?: string[];
52
+ }, filterTypeName: string, orderByTypeName: string, connectionFieldsMap?: Record<string, Record<string, string>>): {
52
53
  document: string;
53
54
  variables: Record<string, unknown>;
54
55
  };
@@ -91,3 +92,19 @@ export declare function buildCustomDocument<TSelect, TArgs>(operationType: 'quer
91
92
  document: string;
92
93
  variables: Record<string, unknown>;
93
94
  };
95
+ export declare function buildBulkInsertDocument<TSelect, TData>(operationName: string, mutationField: string, select: TSelect, data: TData[], inputTypeName: string, onConflict?: unknown, connectionFieldsMap?: Record<string, Record<string, string>>): {
96
+ document: string;
97
+ variables: Record<string, unknown>;
98
+ };
99
+ export declare function buildBulkUpsertDocument<TSelect, TData>(operationName: string, mutationField: string, select: TSelect, data: TData[], inputTypeName: string, onConflict: unknown, connectionFieldsMap?: Record<string, Record<string, string>>): {
100
+ document: string;
101
+ variables: Record<string, unknown>;
102
+ };
103
+ export declare function buildBulkUpdateDocument<TSelect, TWhere, TData>(operationName: string, mutationField: string, select: TSelect, where: TWhere, data: TData, inputTypeName: string, connectionFieldsMap?: Record<string, Record<string, string>>): {
104
+ document: string;
105
+ variables: Record<string, unknown>;
106
+ };
107
+ export declare function buildBulkDeleteDocument<TSelect, TWhere>(operationName: string, mutationField: string, select: TSelect, where: TWhere, inputTypeName: string, connectionFieldsMap?: Record<string, Record<string, string>>): {
108
+ document: string;
109
+ variables: Record<string, unknown>;
110
+ };
@@ -199,7 +199,7 @@ export function buildFindManyDocument(operationName, queryField, select, args, f
199
199
  });
200
200
  return { document: print(document), variables };
201
201
  }
202
- export function buildFindFirstDocument(operationName, queryField, select, args, filterTypeName, connectionFieldsMap) {
202
+ export function buildFindFirstDocument(operationName, queryField, select, args, filterTypeName, orderByTypeName, connectionFieldsMap) {
203
203
  const selections = select
204
204
  ? buildSelections(select, connectionFieldsMap, operationName)
205
205
  : [t.field({ name: 'id' })];
@@ -213,6 +213,11 @@ export function buildFindFirstDocument(operationName, queryField, select, args,
213
213
  typeName: filterTypeName,
214
214
  value: args.where,
215
215
  }, variableDefinitions, queryArgs, variables);
216
+ addVariable({
217
+ varName: 'orderBy',
218
+ typeName: '[' + orderByTypeName + '!]',
219
+ value: args.orderBy?.length ? args.orderBy : undefined,
220
+ }, variableDefinitions, queryArgs, variables);
216
221
  const document = t.document({
217
222
  definitions: [
218
223
  t.operationDefinition({
@@ -595,3 +600,105 @@ function buildValueAst(value) {
595
600
  }
596
601
  throw new Error('Unsupported value type: ' + typeof value);
597
602
  }
603
+ // ============================================================================
604
+ // Bulk Mutation Document Builders
605
+ // ============================================================================
606
+ export function buildBulkInsertDocument(operationName, mutationField, select, data, inputTypeName, onConflict, connectionFieldsMap) {
607
+ const selections = select
608
+ ? buildSelections(select, connectionFieldsMap, operationName)
609
+ : [t.field({ name: 'id' })];
610
+ return {
611
+ document: buildInputMutationDocument({
612
+ operationName,
613
+ mutationField,
614
+ inputTypeName,
615
+ resultSelections: [
616
+ t.field({ name: 'affectedCount' }),
617
+ t.field({
618
+ name: 'returning',
619
+ selectionSet: t.selectionSet({ selections }),
620
+ }),
621
+ ],
622
+ }),
623
+ variables: {
624
+ input: {
625
+ values: data,
626
+ ...(onConflict ? { onConflict } : {}),
627
+ },
628
+ },
629
+ };
630
+ }
631
+ export function buildBulkUpsertDocument(operationName, mutationField, select, data, inputTypeName, onConflict, connectionFieldsMap) {
632
+ const selections = select
633
+ ? buildSelections(select, connectionFieldsMap, operationName)
634
+ : [t.field({ name: 'id' })];
635
+ return {
636
+ document: buildInputMutationDocument({
637
+ operationName,
638
+ mutationField,
639
+ inputTypeName,
640
+ resultSelections: [
641
+ t.field({ name: 'affectedCount' }),
642
+ t.field({
643
+ name: 'returning',
644
+ selectionSet: t.selectionSet({ selections }),
645
+ }),
646
+ ],
647
+ }),
648
+ variables: {
649
+ input: {
650
+ values: data,
651
+ onConflict,
652
+ },
653
+ },
654
+ };
655
+ }
656
+ export function buildBulkUpdateDocument(operationName, mutationField, select, where, data, inputTypeName, connectionFieldsMap) {
657
+ const selections = select
658
+ ? buildSelections(select, connectionFieldsMap, operationName)
659
+ : [t.field({ name: 'id' })];
660
+ return {
661
+ document: buildInputMutationDocument({
662
+ operationName,
663
+ mutationField,
664
+ inputTypeName,
665
+ resultSelections: [
666
+ t.field({ name: 'affectedCount' }),
667
+ t.field({
668
+ name: 'returning',
669
+ selectionSet: t.selectionSet({ selections }),
670
+ }),
671
+ ],
672
+ }),
673
+ variables: {
674
+ input: {
675
+ where,
676
+ patch: data,
677
+ },
678
+ },
679
+ };
680
+ }
681
+ export function buildBulkDeleteDocument(operationName, mutationField, select, where, inputTypeName, connectionFieldsMap) {
682
+ const selections = select
683
+ ? buildSelections(select, connectionFieldsMap, operationName)
684
+ : [t.field({ name: 'id' })];
685
+ return {
686
+ document: buildInputMutationDocument({
687
+ operationName,
688
+ mutationField,
689
+ inputTypeName,
690
+ resultSelections: [
691
+ t.field({ name: 'affectedCount' }),
692
+ t.field({
693
+ name: 'returning',
694
+ selectionSet: t.selectionSet({ selections }),
695
+ }),
696
+ ],
697
+ }),
698
+ variables: {
699
+ input: {
700
+ where,
701
+ },
702
+ },
703
+ };
704
+ }
@@ -24,9 +24,10 @@ export interface FindManyArgs<TSelect, TWhere, TOrderBy = never> {
24
24
  before?: string;
25
25
  offset?: number;
26
26
  }
27
- export interface FindFirstArgs<TSelect, TWhere> {
27
+ export interface FindFirstArgs<TSelect, TWhere, TOrderBy> {
28
28
  select?: TSelect;
29
29
  where?: TWhere;
30
+ orderBy?: TOrderBy[];
30
31
  }
31
32
  export interface CreateArgs<TSelect, TData> {
32
33
  data: TData;
@@ -44,6 +45,29 @@ export interface DeleteArgs<TWhere, TSelect = undefined> {
44
45
  where: TWhere;
45
46
  select?: TSelect;
46
47
  }
48
+ export interface BulkInsertArgs<TSelect, TData, TOnConflict = unknown> {
49
+ data: TData[];
50
+ select?: TSelect;
51
+ onConflict?: TOnConflict;
52
+ }
53
+ export interface BulkUpsertArgs<TSelect, TData, TOnConflict = unknown> {
54
+ data: TData[];
55
+ select?: TSelect;
56
+ onConflict: TOnConflict;
57
+ }
58
+ export interface BulkUpdateArgs<TSelect, TWhere, TData> {
59
+ where: TWhere;
60
+ data: TData;
61
+ select?: TSelect;
62
+ }
63
+ export interface BulkDeleteArgs<TSelect, TWhere> {
64
+ where: TWhere;
65
+ select?: TSelect;
66
+ }
67
+ export interface BulkMutationResult<T> {
68
+ affectedCount: number;
69
+ returning: T[];
70
+ }
47
71
  type DepthLevel = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
48
72
  type DecrementDepth = {
49
73
  0: 0;
@@ -16,7 +16,7 @@ const fieldSchema = {
16
16
  ownerId: 'uuid',
17
17
  parts: 'json',
18
18
  };
19
- const usage = '\nagent-message <command>\n\nCommands:\n list List agentMessage records\n find-first Find first matching agentMessage record\n get Get a agentMessage by ID\n create Create a new agentMessage\n update Update an existing agentMessage\n delete Delete a agentMessage\n\nList Options:\n --limit <n> Max number of records to return (forward pagination)\n --last <n> Number of records from the end (backward pagination)\n --after <cursor> Cursor for forward pagination\n --before <cursor> Cursor for backward pagination\n --offset <n> Number of records to skip\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.<f>.<op> Condition filter (dot-notation)\n\n --help, -h Show this help message\n';
19
+ const usage = '\nagent-message <command>\n\nCommands:\n list List agentMessage records\n find-first Find first matching agentMessage record\n get Get a agentMessage by ID\n create Create a new agentMessage\n update Update an existing agentMessage\n delete Delete a agentMessage\n\nList Options:\n --limit <n> Max number of records to return (forward pagination)\n --last <n> Number of records from the end (backward pagination)\n --after <cursor> Cursor for forward pagination\n --before <cursor> Cursor for backward pagination\n --offset <n> Number of records to skip\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n';
20
20
  export default async (argv, prompter, _options) => {
21
21
  if (argv.help || argv.h) {
22
22
  console.log(usage);
@@ -18,7 +18,7 @@ const fieldSchema = {
18
18
  ownerId: 'uuid',
19
19
  status: 'string',
20
20
  };
21
- const usage = '\nagent-task <command>\n\nCommands:\n list List agentTask records\n find-first Find first matching agentTask record\n get Get a agentTask by ID\n create Create a new agentTask\n update Update an existing agentTask\n delete Delete a agentTask\n\nList Options:\n --limit <n> Max number of records to return (forward pagination)\n --last <n> Number of records from the end (backward pagination)\n --after <cursor> Cursor for forward pagination\n --before <cursor> Cursor for backward pagination\n --offset <n> Number of records to skip\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.<f>.<op> Condition filter (dot-notation)\n\n --help, -h Show this help message\n';
21
+ const usage = '\nagent-task <command>\n\nCommands:\n list List agentTask records\n find-first Find first matching agentTask record\n get Get a agentTask by ID\n create Create a new agentTask\n update Update an existing agentTask\n delete Delete a agentTask\n\nList Options:\n --limit <n> Max number of records to return (forward pagination)\n --last <n> Number of records from the end (backward pagination)\n --after <cursor> Cursor for forward pagination\n --before <cursor> Cursor for backward pagination\n --offset <n> Number of records to skip\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n';
22
22
  export default async (argv, prompter, _options) => {
23
23
  if (argv.help || argv.h) {
24
24
  console.log(usage);
@@ -18,7 +18,7 @@ const fieldSchema = {
18
18
  entityId: 'uuid',
19
19
  status: 'string',
20
20
  };
21
- const usage = '\nagent-thread <command>\n\nCommands:\n list List agentThread records\n find-first Find first matching agentThread record\n get Get a agentThread by ID\n create Create a new agentThread\n update Update an existing agentThread\n delete Delete a agentThread\n\nList Options:\n --limit <n> Max number of records to return (forward pagination)\n --last <n> Number of records from the end (backward pagination)\n --after <cursor> Cursor for forward pagination\n --before <cursor> Cursor for backward pagination\n --offset <n> Number of records to skip\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.<f>.<op> Condition filter (dot-notation)\n\n --help, -h Show this help message\n';
21
+ const usage = '\nagent-thread <command>\n\nCommands:\n list List agentThread records\n find-first Find first matching agentThread record\n get Get a agentThread by ID\n create Create a new agentThread\n update Update an existing agentThread\n delete Delete a agentThread\n\nList Options:\n --limit <n> Max number of records to return (forward pagination)\n --last <n> Number of records from the end (backward pagination)\n --after <cursor> Cursor for forward pagination\n --before <cursor> Cursor for backward pagination\n --offset <n> Number of records to skip\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n';
22
22
  export default async (argv, prompter, _options) => {
23
23
  if (argv.help || argv.h) {
24
24
  console.log(usage);
@@ -13,7 +13,7 @@ const fieldSchema = {
13
13
  name: 'string',
14
14
  data: 'json',
15
15
  };
16
- const usage = '\napi-module <command>\n\nCommands:\n list List apiModule records\n find-first Find first matching apiModule record\n get Get a apiModule by ID\n create Create a new apiModule\n update Update an existing apiModule\n delete Delete a apiModule\n\nList Options:\n --limit <n> Max number of records to return (forward pagination)\n --last <n> Number of records from the end (backward pagination)\n --after <cursor> Cursor for forward pagination\n --before <cursor> Cursor for backward pagination\n --offset <n> Number of records to skip\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.<f>.<op> Condition filter (dot-notation)\n\n --help, -h Show this help message\n';
16
+ const usage = '\napi-module <command>\n\nCommands:\n list List apiModule records\n find-first Find first matching apiModule record\n get Get a apiModule by ID\n create Create a new apiModule\n update Update an existing apiModule\n delete Delete a apiModule\n\nList Options:\n --limit <n> Max number of records to return (forward pagination)\n --last <n> Number of records from the end (backward pagination)\n --after <cursor> Cursor for forward pagination\n --before <cursor> Cursor for backward pagination\n --offset <n> Number of records to skip\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n';
17
17
  export default async (argv, prompter, _options) => {
18
18
  if (argv.help || argv.h) {
19
19
  console.log(usage);