@constructive-io/sdk 1.19.2 → 1.19.3

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 (723) hide show
  1. package/README.md +2 -0
  2. package/admin/orm/index.d.ts +36 -69
  3. package/admin/orm/index.js +4 -32
  4. package/admin/orm/input-types.d.ts +426 -3916
  5. package/admin/orm/input-types.js +1 -37
  6. package/admin/orm/models/index.d.ts +2 -16
  7. package/admin/orm/models/index.js +5 -33
  8. package/admin/orm/models/myPendingAppInvitesRecord.d.ts +36 -0
  9. package/admin/orm/models/myPendingAppInvitesRecord.js +80 -0
  10. package/admin/orm/models/myPendingOrgInvitesRecord.d.ts +36 -0
  11. package/admin/orm/models/myPendingOrgInvitesRecord.js +80 -0
  12. package/admin/orm/mutation/index.d.ts +54 -5
  13. package/admin/orm/mutation/index.js +72 -0
  14. package/admin/orm/query/index.d.ts +5 -79
  15. package/admin/orm/query/index.js +8 -112
  16. package/agent/orm/index.d.ts +30 -0
  17. package/agent/orm/index.js +30 -0
  18. package/agent/orm/input-types.d.ts +6040 -1415
  19. package/agent/orm/input-types.js +34 -0
  20. package/agent/orm/models/agentEvent.d.ts +54 -0
  21. package/{admin/orm/models/orgProfile.js → agent/orm/models/agentEvent.js} +27 -27
  22. package/agent/orm/models/agentRun.d.ts +54 -0
  23. package/{usage/orm/models/appLevel.js → agent/orm/models/agentRun.js} +27 -27
  24. package/agent/orm/models/agentRunWorkspace.d.ts +54 -0
  25. package/{usage/orm/models/appEventAggregate.js → agent/orm/models/agentRunWorkspace.js} +27 -27
  26. package/agent/orm/models/index.d.ts +15 -0
  27. package/agent/orm/models/index.js +31 -1
  28. package/agent/orm/models/platformAgent.d.ts +54 -0
  29. package/{usage/orm/models/appLevelGrant.js → agent/orm/models/platformAgent.js} +27 -27
  30. package/agent/orm/models/platformAgentEvent.d.ts +54 -0
  31. package/{admin/orm/models/orgProfileTemplate.js → agent/orm/models/platformAgentEvent.js} +27 -27
  32. package/agent/orm/models/platformAgentMessage.d.ts +54 -0
  33. package/{admin/orm/models/appMembershipProfile.js → agent/orm/models/platformAgentMessage.js} +27 -27
  34. package/agent/orm/models/platformAgentPersona.d.ts +54 -0
  35. package/{admin/orm/models/orgCapabilityDefault.js → agent/orm/models/platformAgentPersona.js} +27 -27
  36. package/agent/orm/models/platformAgentPlan.d.ts +54 -0
  37. package/agent/orm/models/platformAgentPlan.js +104 -0
  38. package/agent/orm/models/platformAgentPrompt.d.ts +54 -0
  39. package/{usage/orm/models/appLevelRequirement.js → agent/orm/models/platformAgentPrompt.js} +27 -27
  40. package/agent/orm/models/platformAgentResource.d.ts +54 -0
  41. package/agent/orm/models/platformAgentResource.js +104 -0
  42. package/agent/orm/models/platformAgentResourceChunk.d.ts +54 -0
  43. package/agent/orm/models/platformAgentResourceChunk.js +104 -0
  44. package/agent/orm/models/platformAgentRun.d.ts +54 -0
  45. package/agent/orm/models/platformAgentRun.js +104 -0
  46. package/agent/orm/models/platformAgentRunWorkspace.d.ts +54 -0
  47. package/{admin/orm/models/appProfileDefinitionGrant.js → agent/orm/models/platformAgentRunWorkspace.js} +27 -27
  48. package/agent/orm/models/platformAgentTask.d.ts +54 -0
  49. package/agent/orm/models/platformAgentTask.js +104 -0
  50. package/agent/orm/models/platformAgentThread.d.ts +54 -0
  51. package/{usage/orm/models/billingUsageSummary.js → agent/orm/models/platformAgentThread.js} +27 -27
  52. package/agent/orm/mutation/index.d.ts +5 -4
  53. package/api/orm/index.d.ts +177 -22
  54. package/api/orm/index.js +16 -6
  55. package/api/orm/input-types.d.ts +2520 -1059
  56. package/api/orm/input-types.js +7 -4
  57. package/api/orm/models/astMigration.d.ts +36 -0
  58. package/api/orm/models/astMigration.js +80 -0
  59. package/api/orm/models/getSitePreviewsRecord.d.ts +30 -0
  60. package/api/orm/models/getSitePreviewsRecord.js +59 -0
  61. package/api/orm/models/identityProviderRegistry.d.ts +54 -0
  62. package/api/orm/models/identityProviderRegistry.js +104 -0
  63. package/api/orm/models/index.d.ts +8 -3
  64. package/api/orm/models/index.js +18 -8
  65. package/api/orm/models/platformGetSitePreviewsRecord.d.ts +30 -0
  66. package/api/orm/models/platformGetSitePreviewsRecord.js +59 -0
  67. package/api/orm/models/platformSiteRelease.d.ts +54 -0
  68. package/api/orm/models/platformSiteRelease.js +104 -0
  69. package/api/orm/models/redirect.d.ts +54 -0
  70. package/{usage/orm/models/appEvent.js → api/orm/models/redirect.js} +27 -30
  71. package/api/orm/models/siteRelease.d.ts +54 -0
  72. package/{usage/orm/models/meterSource.js → api/orm/models/siteRelease.js} +27 -27
  73. package/api/orm/models/sqlAction.d.ts +36 -0
  74. package/api/orm/models/sqlAction.js +80 -0
  75. package/api/orm/mutation/index.d.ts +170 -24
  76. package/api/orm/mutation/index.js +240 -24
  77. package/api/orm/query/index.d.ts +107 -11
  78. package/api/orm/query/index.js +177 -13
  79. package/auth/orm/index.d.ts +104 -0
  80. package/auth/orm/index.js +4 -0
  81. package/auth/orm/input-types.d.ts +1017 -238
  82. package/auth/orm/input-types.js +1 -0
  83. package/auth/orm/models/index.d.ts +2 -0
  84. package/auth/orm/models/index.js +5 -1
  85. package/auth/orm/models/principalEntity.d.ts +2 -20
  86. package/auth/orm/models/principalEntity.js +0 -24
  87. package/auth/orm/models/userSetting.d.ts +54 -0
  88. package/{usage/orm/models/meterCredit.js → auth/orm/models/userSetting.js} +27 -27
  89. package/auth/orm/models/userSettingsSecurity.d.ts +54 -0
  90. package/{admin/orm/models/appProfileCapability.js → auth/orm/models/userSettingsSecurity.js} +27 -27
  91. package/auth/orm/mutation/index.d.ts +158 -5
  92. package/auth/orm/mutation/index.js +228 -0
  93. package/auth/orm/query/index.d.ts +6 -1
  94. package/auth/orm/query/index.js +7 -0
  95. package/compute/orm/index.d.ts +208 -0
  96. package/compute/orm/index.js +98 -0
  97. package/compute/orm/input-types.d.ts +23534 -8853
  98. package/compute/orm/input-types.js +78 -0
  99. package/compute/orm/models/build.d.ts +54 -0
  100. package/{usage/orm/models/meter.js → compute/orm/models/build.js} +27 -27
  101. package/compute/orm/models/buildStep.d.ts +56 -0
  102. package/{usage/orm/models/planLimit.js → compute/orm/models/buildStep.js} +30 -27
  103. package/compute/orm/models/builderBinding.d.ts +54 -0
  104. package/{usage/orm/models/planMeterLimit.js → compute/orm/models/builderBinding.js} +27 -27
  105. package/compute/orm/models/databaseFunctionGraph.d.ts +54 -0
  106. package/compute/orm/models/databaseFunctionGraph.js +104 -0
  107. package/compute/orm/models/databaseFunctionGraphExecution.d.ts +56 -0
  108. package/compute/orm/models/databaseFunctionGraphExecution.js +107 -0
  109. package/compute/orm/models/databaseFunctionGraphExecutionNodeState.d.ts +56 -0
  110. package/compute/orm/models/databaseFunctionGraphExecutionNodeState.js +107 -0
  111. package/compute/orm/models/databaseFunctionGraphExecutionOutput.d.ts +56 -0
  112. package/compute/orm/models/databaseFunctionGraphExecutionOutput.js +107 -0
  113. package/compute/orm/models/databaseGraphCommit.d.ts +56 -0
  114. package/compute/orm/models/databaseGraphCommit.js +107 -0
  115. package/compute/orm/models/databaseGraphGetAllTreeNodesRecord.d.ts +30 -0
  116. package/compute/orm/models/databaseGraphGetAllTreeNodesRecord.js +59 -0
  117. package/compute/orm/models/databaseGraphObject.d.ts +56 -0
  118. package/compute/orm/models/databaseGraphObject.js +97 -0
  119. package/compute/orm/models/databaseGraphRef.d.ts +56 -0
  120. package/compute/orm/models/databaseGraphRef.js +107 -0
  121. package/compute/orm/models/databaseGraphStore.d.ts +54 -0
  122. package/{admin/orm/models/appProfileTemplate.js → compute/orm/models/databaseGraphStore.js} +27 -27
  123. package/compute/orm/models/image.d.ts +54 -0
  124. package/{api/orm/models/app.js → compute/orm/models/image.js} +27 -27
  125. package/compute/orm/models/imageGrant.d.ts +54 -0
  126. package/{admin/orm/models/appProfile.js → compute/orm/models/imageGrant.js} +27 -27
  127. package/compute/orm/models/index.d.ts +49 -0
  128. package/compute/orm/models/index.js +101 -2
  129. package/compute/orm/models/platformBuild.d.ts +54 -0
  130. package/{admin/orm/models/appCapability.js → compute/orm/models/platformBuild.js} +27 -27
  131. package/compute/orm/models/platformBuildStep.d.ts +56 -0
  132. package/compute/orm/models/platformBuildStep.js +107 -0
  133. package/compute/orm/models/platformBuilderBinding.d.ts +54 -0
  134. package/{admin/orm/models/appCapabilityDefault.js → compute/orm/models/platformBuilderBinding.js} +27 -27
  135. package/compute/orm/models/platformImage.d.ts +54 -0
  136. package/{admin/orm/models/orgCapability.js → compute/orm/models/platformImage.js} +27 -27
  137. package/compute/orm/models/platformImageGrant.d.ts +54 -0
  138. package/compute/orm/models/platformImageGrant.js +104 -0
  139. package/compute/orm/models/platformK8sResourceKind.d.ts +54 -0
  140. package/{modules/orm/models/configSecretsUserModule.js → compute/orm/models/platformK8sResourceKind.js} +27 -27
  141. package/compute/orm/models/platformK8sSpecRule.d.ts +54 -0
  142. package/compute/orm/models/platformK8sSpecRule.js +104 -0
  143. package/compute/orm/models/platformProposal.d.ts +54 -0
  144. package/compute/orm/models/platformProposal.js +104 -0
  145. package/compute/orm/models/platformProposalComment.d.ts +54 -0
  146. package/compute/orm/models/platformProposalComment.js +104 -0
  147. package/compute/orm/models/platformProposalFileView.d.ts +54 -0
  148. package/compute/orm/models/platformProposalFileView.js +104 -0
  149. package/compute/orm/models/platformProposalReaction.d.ts +54 -0
  150. package/compute/orm/models/platformProposalReaction.js +104 -0
  151. package/compute/orm/models/platformProposalReview.d.ts +54 -0
  152. package/compute/orm/models/platformProposalReview.js +104 -0
  153. package/compute/orm/models/platformProposalsChunk.d.ts +54 -0
  154. package/compute/orm/models/platformProposalsChunk.js +104 -0
  155. package/compute/orm/models/platformRegistry.d.ts +54 -0
  156. package/compute/orm/models/platformRegistry.js +104 -0
  157. package/compute/orm/models/platformRegistryBinding.d.ts +54 -0
  158. package/compute/orm/models/platformRegistryBinding.js +104 -0
  159. package/compute/orm/models/platformRegistryGrant.d.ts +54 -0
  160. package/compute/orm/models/platformRegistryGrant.js +104 -0
  161. package/compute/orm/models/platformRepository.d.ts +54 -0
  162. package/compute/orm/models/platformRepository.js +104 -0
  163. package/compute/orm/models/platformRepositoryEvent.d.ts +54 -0
  164. package/compute/orm/models/platformRepositoryEvent.js +104 -0
  165. package/compute/orm/models/platformRepositoryRequiredCheck.d.ts +54 -0
  166. package/compute/orm/models/platformRepositoryRequiredCheck.js +104 -0
  167. package/compute/orm/models/platformRepositoryWorkflow.d.ts +54 -0
  168. package/compute/orm/models/platformRepositoryWorkflow.js +104 -0
  169. package/compute/orm/models/platformResourceObservedStorage.d.ts +30 -0
  170. package/compute/orm/models/platformResourceObservedStorage.js +59 -0
  171. package/compute/orm/models/proposal.d.ts +54 -0
  172. package/compute/orm/models/proposal.js +104 -0
  173. package/compute/orm/models/proposalComment.d.ts +54 -0
  174. package/{admin/orm/models/appProfileGrant.js → compute/orm/models/proposalComment.js} +27 -27
  175. package/compute/orm/models/proposalFileView.d.ts +54 -0
  176. package/compute/orm/models/proposalFileView.js +104 -0
  177. package/compute/orm/models/proposalReaction.d.ts +54 -0
  178. package/{usage/orm/models/planSubscription.js → compute/orm/models/proposalReaction.js} +27 -27
  179. package/compute/orm/models/proposalReview.d.ts +54 -0
  180. package/compute/orm/models/proposalReview.js +104 -0
  181. package/compute/orm/models/proposalsChunk.d.ts +54 -0
  182. package/compute/orm/models/proposalsChunk.js +104 -0
  183. package/compute/orm/models/registry.d.ts +54 -0
  184. package/compute/orm/models/registry.js +104 -0
  185. package/compute/orm/models/registryBinding.d.ts +54 -0
  186. package/{modules/orm/models/httpRouteModule.js → compute/orm/models/registryBinding.js} +27 -27
  187. package/compute/orm/models/registryGrant.d.ts +54 -0
  188. package/{usage/orm/models/appEventType.js → compute/orm/models/registryGrant.js} +27 -27
  189. package/compute/orm/models/repository.d.ts +54 -0
  190. package/{api/orm/models/httpRoute.js → compute/orm/models/repository.js} +27 -27
  191. package/compute/orm/models/repositoryEvent.d.ts +54 -0
  192. package/{admin/orm/models/orgProfileGrant.js → compute/orm/models/repositoryEvent.js} +27 -27
  193. package/compute/orm/models/repositoryRequiredCheck.d.ts +54 -0
  194. package/compute/orm/models/repositoryRequiredCheck.js +104 -0
  195. package/compute/orm/models/repositoryWorkflow.d.ts +54 -0
  196. package/compute/orm/models/repositoryWorkflow.js +104 -0
  197. package/compute/orm/models/resourceObservedStorage.d.ts +30 -0
  198. package/compute/orm/models/resourceObservedStorage.js +59 -0
  199. package/compute/orm/mutation/index.d.ts +174 -5
  200. package/compute/orm/mutation/index.js +252 -0
  201. package/compute/orm/query/index.d.ts +8 -0
  202. package/compute/orm/query/index.js +12 -0
  203. package/config/orm/index.d.ts +48 -0
  204. package/config/orm/index.js +8 -0
  205. package/config/orm/input-types.d.ts +711 -41
  206. package/config/orm/models/appInternalSecret.d.ts +36 -0
  207. package/config/orm/models/appInternalSecret.js +80 -0
  208. package/config/orm/models/index.d.ts +4 -0
  209. package/config/orm/models/index.js +9 -1
  210. package/config/orm/models/internalConfig.d.ts +54 -0
  211. package/config/orm/models/internalConfig.js +104 -0
  212. package/config/orm/models/internalSecret.d.ts +36 -0
  213. package/config/orm/models/internalSecret.js +80 -0
  214. package/config/orm/models/platformInternalConfig.d.ts +54 -0
  215. package/config/orm/models/platformInternalConfig.js +104 -0
  216. package/config/orm/mutation/index.d.ts +70 -5
  217. package/config/orm/mutation/index.js +96 -0
  218. package/esm/admin/orm/index.d.ts +36 -69
  219. package/esm/admin/orm/index.js +4 -32
  220. package/esm/admin/orm/input-types.d.ts +426 -3916
  221. package/esm/admin/orm/input-types.js +1 -37
  222. package/esm/admin/orm/models/index.d.ts +2 -16
  223. package/esm/admin/orm/models/index.js +2 -16
  224. package/esm/admin/orm/models/myPendingAppInvitesRecord.d.ts +36 -0
  225. package/esm/admin/orm/models/myPendingAppInvitesRecord.js +76 -0
  226. package/esm/admin/orm/models/myPendingOrgInvitesRecord.d.ts +36 -0
  227. package/esm/admin/orm/models/myPendingOrgInvitesRecord.js +76 -0
  228. package/esm/admin/orm/mutation/index.d.ts +54 -5
  229. package/esm/admin/orm/mutation/index.js +72 -0
  230. package/esm/admin/orm/query/index.d.ts +5 -79
  231. package/esm/admin/orm/query/index.js +8 -112
  232. package/esm/agent/orm/index.d.ts +30 -0
  233. package/esm/agent/orm/index.js +30 -0
  234. package/esm/agent/orm/input-types.d.ts +6040 -1415
  235. package/esm/agent/orm/input-types.js +34 -0
  236. package/esm/agent/orm/models/agentEvent.d.ts +54 -0
  237. package/esm/{admin/orm/models/appProfile.js → agent/orm/models/agentEvent.js} +25 -25
  238. package/esm/agent/orm/models/agentRun.d.ts +54 -0
  239. package/esm/{usage/orm/models/appLevel.js → agent/orm/models/agentRun.js} +25 -25
  240. package/esm/agent/orm/models/agentRunWorkspace.d.ts +54 -0
  241. package/esm/{usage/orm/models/appEventAggregate.js → agent/orm/models/agentRunWorkspace.js} +25 -25
  242. package/esm/agent/orm/models/index.d.ts +15 -0
  243. package/esm/agent/orm/models/index.js +15 -0
  244. package/esm/agent/orm/models/platformAgent.d.ts +54 -0
  245. package/esm/{usage/orm/models/planLimit.js → agent/orm/models/platformAgent.js} +25 -25
  246. package/esm/agent/orm/models/platformAgentEvent.d.ts +54 -0
  247. package/esm/agent/orm/models/platformAgentEvent.js +100 -0
  248. package/esm/agent/orm/models/platformAgentMessage.d.ts +54 -0
  249. package/esm/{admin/orm/models/appMembershipProfile.js → agent/orm/models/platformAgentMessage.js} +25 -25
  250. package/esm/agent/orm/models/platformAgentPersona.d.ts +54 -0
  251. package/esm/{admin/orm/models/appCapabilityDefault.js → agent/orm/models/platformAgentPersona.js} +25 -25
  252. package/esm/agent/orm/models/platformAgentPlan.d.ts +54 -0
  253. package/esm/agent/orm/models/platformAgentPlan.js +100 -0
  254. package/esm/agent/orm/models/platformAgentPrompt.d.ts +54 -0
  255. package/esm/agent/orm/models/platformAgentPrompt.js +100 -0
  256. package/esm/agent/orm/models/platformAgentResource.d.ts +54 -0
  257. package/esm/agent/orm/models/platformAgentResource.js +100 -0
  258. package/esm/agent/orm/models/platformAgentResourceChunk.d.ts +54 -0
  259. package/esm/agent/orm/models/platformAgentResourceChunk.js +100 -0
  260. package/esm/agent/orm/models/platformAgentRun.d.ts +54 -0
  261. package/esm/{usage/orm/models/planSubscription.js → agent/orm/models/platformAgentRun.js} +25 -25
  262. package/esm/agent/orm/models/platformAgentRunWorkspace.d.ts +54 -0
  263. package/esm/agent/orm/models/platformAgentRunWorkspace.js +100 -0
  264. package/esm/agent/orm/models/platformAgentTask.d.ts +54 -0
  265. package/esm/agent/orm/models/platformAgentTask.js +100 -0
  266. package/esm/agent/orm/models/platformAgentThread.d.ts +54 -0
  267. package/esm/agent/orm/models/platformAgentThread.js +100 -0
  268. package/esm/agent/orm/mutation/index.d.ts +5 -4
  269. package/esm/api/orm/index.d.ts +177 -22
  270. package/esm/api/orm/index.js +16 -6
  271. package/esm/api/orm/input-types.d.ts +2520 -1059
  272. package/esm/api/orm/input-types.js +7 -4
  273. package/esm/api/orm/models/astMigration.d.ts +36 -0
  274. package/esm/api/orm/models/astMigration.js +76 -0
  275. package/esm/api/orm/models/getSitePreviewsRecord.d.ts +30 -0
  276. package/esm/api/orm/models/getSitePreviewsRecord.js +55 -0
  277. package/esm/api/orm/models/identityProviderRegistry.d.ts +54 -0
  278. package/esm/api/orm/models/identityProviderRegistry.js +100 -0
  279. package/esm/api/orm/models/index.d.ts +8 -3
  280. package/esm/api/orm/models/index.js +8 -3
  281. package/esm/api/orm/models/platformGetSitePreviewsRecord.d.ts +30 -0
  282. package/esm/api/orm/models/platformGetSitePreviewsRecord.js +55 -0
  283. package/esm/api/orm/models/platformSiteRelease.d.ts +54 -0
  284. package/esm/api/orm/models/platformSiteRelease.js +100 -0
  285. package/esm/api/orm/models/redirect.d.ts +54 -0
  286. package/esm/api/orm/models/redirect.js +100 -0
  287. package/esm/api/orm/models/siteRelease.d.ts +54 -0
  288. package/esm/{usage/orm/models/planPricing.js → api/orm/models/siteRelease.js} +25 -25
  289. package/esm/api/orm/models/sqlAction.d.ts +36 -0
  290. package/esm/api/orm/models/sqlAction.js +76 -0
  291. package/esm/api/orm/mutation/index.d.ts +170 -24
  292. package/esm/api/orm/mutation/index.js +240 -24
  293. package/esm/api/orm/query/index.d.ts +107 -11
  294. package/esm/api/orm/query/index.js +177 -13
  295. package/esm/auth/orm/index.d.ts +104 -0
  296. package/esm/auth/orm/index.js +4 -0
  297. package/esm/auth/orm/input-types.d.ts +1017 -238
  298. package/esm/auth/orm/input-types.js +1 -0
  299. package/esm/auth/orm/models/index.d.ts +2 -0
  300. package/esm/auth/orm/models/index.js +2 -0
  301. package/esm/auth/orm/models/principalEntity.d.ts +2 -20
  302. package/esm/auth/orm/models/principalEntity.js +1 -25
  303. package/esm/auth/orm/models/userSetting.d.ts +54 -0
  304. package/esm/auth/orm/models/userSetting.js +100 -0
  305. package/esm/auth/orm/models/userSettingsSecurity.d.ts +54 -0
  306. package/esm/{admin/orm/models/orgProfileCapability.js → auth/orm/models/userSettingsSecurity.js} +25 -25
  307. package/esm/auth/orm/mutation/index.d.ts +158 -5
  308. package/esm/auth/orm/mutation/index.js +228 -0
  309. package/esm/auth/orm/query/index.d.ts +6 -1
  310. package/esm/auth/orm/query/index.js +7 -0
  311. package/esm/compute/orm/index.d.ts +208 -0
  312. package/esm/compute/orm/index.js +98 -0
  313. package/esm/compute/orm/input-types.d.ts +23534 -8853
  314. package/esm/compute/orm/input-types.js +78 -0
  315. package/esm/compute/orm/models/build.d.ts +54 -0
  316. package/esm/{api/orm/models/app.js → compute/orm/models/build.js} +25 -25
  317. package/esm/compute/orm/models/buildStep.d.ts +56 -0
  318. package/esm/{api/orm/models/httpRoute.js → compute/orm/models/buildStep.js} +28 -25
  319. package/esm/compute/orm/models/builderBinding.d.ts +54 -0
  320. package/esm/{usage/orm/models/billingUsageSummary.js → compute/orm/models/builderBinding.js} +25 -25
  321. package/esm/compute/orm/models/databaseFunctionGraph.d.ts +54 -0
  322. package/esm/{admin/orm/models/orgProfileGrant.js → compute/orm/models/databaseFunctionGraph.js} +25 -25
  323. package/esm/compute/orm/models/databaseFunctionGraphExecution.d.ts +56 -0
  324. package/esm/compute/orm/models/databaseFunctionGraphExecution.js +103 -0
  325. package/esm/compute/orm/models/databaseFunctionGraphExecutionNodeState.d.ts +56 -0
  326. package/esm/compute/orm/models/databaseFunctionGraphExecutionNodeState.js +103 -0
  327. package/esm/compute/orm/models/databaseFunctionGraphExecutionOutput.d.ts +56 -0
  328. package/esm/compute/orm/models/databaseFunctionGraphExecutionOutput.js +103 -0
  329. package/esm/compute/orm/models/databaseGraphCommit.d.ts +56 -0
  330. package/esm/{usage/orm/models/appLevelRequirement.js → compute/orm/models/databaseGraphCommit.js} +28 -25
  331. package/esm/compute/orm/models/databaseGraphGetAllTreeNodesRecord.d.ts +30 -0
  332. package/esm/compute/orm/models/databaseGraphGetAllTreeNodesRecord.js +55 -0
  333. package/esm/compute/orm/models/databaseGraphObject.d.ts +56 -0
  334. package/esm/compute/orm/models/databaseGraphObject.js +93 -0
  335. package/esm/compute/orm/models/databaseGraphRef.d.ts +56 -0
  336. package/esm/{usage/orm/models/appEvent.js → compute/orm/models/databaseGraphRef.js} +27 -27
  337. package/esm/compute/orm/models/databaseGraphStore.d.ts +54 -0
  338. package/esm/{admin/orm/models/orgProfileTemplate.js → compute/orm/models/databaseGraphStore.js} +25 -25
  339. package/esm/compute/orm/models/image.d.ts +54 -0
  340. package/esm/compute/orm/models/image.js +100 -0
  341. package/esm/compute/orm/models/imageGrant.d.ts +54 -0
  342. package/esm/{admin/orm/models/orgProfile.js → compute/orm/models/imageGrant.js} +25 -25
  343. package/esm/compute/orm/models/index.d.ts +49 -0
  344. package/esm/compute/orm/models/index.js +49 -0
  345. package/esm/compute/orm/models/platformBuild.d.ts +54 -0
  346. package/esm/compute/orm/models/platformBuild.js +100 -0
  347. package/esm/compute/orm/models/platformBuildStep.d.ts +56 -0
  348. package/esm/compute/orm/models/platformBuildStep.js +103 -0
  349. package/esm/compute/orm/models/platformBuilderBinding.d.ts +54 -0
  350. package/esm/compute/orm/models/platformBuilderBinding.js +100 -0
  351. package/esm/compute/orm/models/platformImage.d.ts +54 -0
  352. package/esm/compute/orm/models/platformImage.js +100 -0
  353. package/esm/compute/orm/models/platformImageGrant.d.ts +54 -0
  354. package/esm/compute/orm/models/platformImageGrant.js +100 -0
  355. package/esm/compute/orm/models/platformK8sResourceKind.d.ts +54 -0
  356. package/esm/compute/orm/models/platformK8sResourceKind.js +100 -0
  357. package/esm/compute/orm/models/platformK8sSpecRule.d.ts +54 -0
  358. package/esm/compute/orm/models/platformK8sSpecRule.js +100 -0
  359. package/esm/compute/orm/models/platformProposal.d.ts +54 -0
  360. package/esm/compute/orm/models/platformProposal.js +100 -0
  361. package/esm/compute/orm/models/platformProposalComment.d.ts +54 -0
  362. package/esm/compute/orm/models/platformProposalComment.js +100 -0
  363. package/esm/compute/orm/models/platformProposalFileView.d.ts +54 -0
  364. package/esm/compute/orm/models/platformProposalFileView.js +100 -0
  365. package/esm/compute/orm/models/platformProposalReaction.d.ts +54 -0
  366. package/esm/compute/orm/models/platformProposalReaction.js +100 -0
  367. package/esm/compute/orm/models/platformProposalReview.d.ts +54 -0
  368. package/esm/compute/orm/models/platformProposalReview.js +100 -0
  369. package/esm/compute/orm/models/platformProposalsChunk.d.ts +54 -0
  370. package/esm/compute/orm/models/platformProposalsChunk.js +100 -0
  371. package/esm/compute/orm/models/platformRegistry.d.ts +54 -0
  372. package/esm/compute/orm/models/platformRegistry.js +100 -0
  373. package/esm/compute/orm/models/platformRegistryBinding.d.ts +54 -0
  374. package/esm/compute/orm/models/platformRegistryBinding.js +100 -0
  375. package/esm/compute/orm/models/platformRegistryGrant.d.ts +54 -0
  376. package/esm/compute/orm/models/platformRegistryGrant.js +100 -0
  377. package/esm/compute/orm/models/platformRepository.d.ts +54 -0
  378. package/esm/compute/orm/models/platformRepository.js +100 -0
  379. package/esm/compute/orm/models/platformRepositoryEvent.d.ts +54 -0
  380. package/esm/compute/orm/models/platformRepositoryEvent.js +100 -0
  381. package/esm/compute/orm/models/platformRepositoryRequiredCheck.d.ts +54 -0
  382. package/esm/compute/orm/models/platformRepositoryRequiredCheck.js +100 -0
  383. package/esm/compute/orm/models/platformRepositoryWorkflow.d.ts +54 -0
  384. package/esm/compute/orm/models/platformRepositoryWorkflow.js +100 -0
  385. package/esm/compute/orm/models/platformResourceObservedStorage.d.ts +30 -0
  386. package/esm/compute/orm/models/platformResourceObservedStorage.js +55 -0
  387. package/esm/compute/orm/models/proposal.d.ts +54 -0
  388. package/esm/{usage/orm/models/planCap.js → compute/orm/models/proposal.js} +25 -25
  389. package/esm/compute/orm/models/proposalComment.d.ts +54 -0
  390. package/esm/compute/orm/models/proposalComment.js +100 -0
  391. package/esm/compute/orm/models/proposalFileView.d.ts +54 -0
  392. package/esm/compute/orm/models/proposalFileView.js +100 -0
  393. package/esm/compute/orm/models/proposalReaction.d.ts +54 -0
  394. package/esm/compute/orm/models/proposalReaction.js +100 -0
  395. package/esm/compute/orm/models/proposalReview.d.ts +54 -0
  396. package/esm/compute/orm/models/proposalReview.js +100 -0
  397. package/esm/compute/orm/models/proposalsChunk.d.ts +54 -0
  398. package/esm/compute/orm/models/proposalsChunk.js +100 -0
  399. package/esm/compute/orm/models/registry.d.ts +54 -0
  400. package/esm/compute/orm/models/registry.js +100 -0
  401. package/esm/compute/orm/models/registryBinding.d.ts +54 -0
  402. package/esm/{modules/orm/models/httpRouteModule.js → compute/orm/models/registryBinding.js} +25 -25
  403. package/esm/compute/orm/models/registryGrant.d.ts +54 -0
  404. package/esm/{usage/orm/models/appLevelGrant.js → compute/orm/models/registryGrant.js} +25 -25
  405. package/esm/compute/orm/models/repository.d.ts +54 -0
  406. package/esm/{usage/orm/models/ledger.js → compute/orm/models/repository.js} +25 -28
  407. package/esm/compute/orm/models/repositoryEvent.d.ts +54 -0
  408. package/esm/{admin/orm/models/appProfileGrant.js → compute/orm/models/repositoryEvent.js} +25 -25
  409. package/esm/compute/orm/models/repositoryRequiredCheck.d.ts +54 -0
  410. package/esm/{modules/orm/models/configSecretsUserModule.js → compute/orm/models/repositoryRequiredCheck.js} +25 -25
  411. package/esm/compute/orm/models/repositoryWorkflow.d.ts +54 -0
  412. package/esm/{admin/orm/models/appProfileTemplate.js → compute/orm/models/repositoryWorkflow.js} +25 -25
  413. package/esm/compute/orm/models/resourceObservedStorage.d.ts +30 -0
  414. package/esm/compute/orm/models/resourceObservedStorage.js +55 -0
  415. package/esm/compute/orm/mutation/index.d.ts +174 -5
  416. package/esm/compute/orm/mutation/index.js +252 -0
  417. package/esm/compute/orm/query/index.d.ts +8 -0
  418. package/esm/compute/orm/query/index.js +12 -0
  419. package/esm/config/orm/index.d.ts +48 -0
  420. package/esm/config/orm/index.js +8 -0
  421. package/esm/config/orm/input-types.d.ts +711 -41
  422. package/esm/config/orm/models/appInternalSecret.d.ts +36 -0
  423. package/esm/config/orm/models/appInternalSecret.js +76 -0
  424. package/esm/config/orm/models/index.d.ts +4 -0
  425. package/esm/config/orm/models/index.js +4 -0
  426. package/esm/config/orm/models/internalConfig.d.ts +54 -0
  427. package/esm/config/orm/models/internalConfig.js +100 -0
  428. package/esm/config/orm/models/internalSecret.d.ts +36 -0
  429. package/esm/config/orm/models/internalSecret.js +76 -0
  430. package/esm/config/orm/models/platformInternalConfig.d.ts +54 -0
  431. package/esm/config/orm/models/platformInternalConfig.js +100 -0
  432. package/esm/config/orm/mutation/index.d.ts +70 -5
  433. package/esm/config/orm/mutation/index.js +96 -0
  434. package/esm/index.d.ts +2 -0
  435. package/esm/index.js +2 -0
  436. package/esm/infra/orm/index.d.ts +17 -0
  437. package/esm/infra/orm/index.js +2 -0
  438. package/esm/infra/orm/input-types.d.ts +297 -36
  439. package/esm/infra/orm/models/contentPreset.d.ts +54 -0
  440. package/esm/{admin/orm/models/appCapability.js → infra/orm/models/contentPreset.js} +25 -25
  441. package/esm/infra/orm/models/index.d.ts +1 -0
  442. package/esm/infra/orm/models/index.js +1 -0
  443. package/esm/infra/orm/mutation/index.d.ts +30 -5
  444. package/esm/infra/orm/mutation/index.js +36 -0
  445. package/esm/modules/orm/index.d.ts +14 -4
  446. package/esm/modules/orm/index.js +14 -4
  447. package/esm/modules/orm/input-types.d.ts +2752 -747
  448. package/esm/modules/orm/input-types.js +1 -5
  449. package/esm/modules/orm/models/clusterModule.d.ts +54 -0
  450. package/esm/{admin/orm/models/orgCapability.js → modules/orm/models/clusterModule.js} +25 -25
  451. package/esm/modules/orm/models/imageModule.d.ts +54 -0
  452. package/esm/modules/orm/models/imageModule.js +100 -0
  453. package/esm/modules/orm/models/index.d.ts +7 -2
  454. package/esm/modules/orm/models/index.js +7 -2
  455. package/esm/modules/orm/models/internalConfigModule.d.ts +54 -0
  456. package/esm/{admin/orm/models/orgMembershipProfile.js → modules/orm/models/internalConfigModule.js} +25 -25
  457. package/esm/modules/orm/models/k8sAdmissionModule.d.ts +54 -0
  458. package/esm/modules/orm/models/k8sAdmissionModule.js +100 -0
  459. package/esm/modules/orm/models/machineModule.d.ts +54 -0
  460. package/esm/{usage/orm/models/meterCredit.js → modules/orm/models/machineModule.js} +25 -25
  461. package/esm/modules/orm/models/refusalLogModule.d.ts +54 -0
  462. package/esm/modules/orm/models/refusalLogModule.js +100 -0
  463. package/esm/modules/orm/models/repositoryModule.d.ts +54 -0
  464. package/esm/modules/orm/models/repositoryModule.js +100 -0
  465. package/esm/modules/orm/mutation/index.d.ts +6 -5
  466. package/esm/objects/orm/input-types.d.ts +11 -18
  467. package/esm/objects/orm/mutation/index.d.ts +5 -4
  468. package/esm/remote/index.d.ts +5 -0
  469. package/esm/remote/index.js +5 -0
  470. package/esm/remote/orm/client.d.ts +97 -0
  471. package/esm/remote/orm/client.js +155 -0
  472. package/esm/remote/orm/index.d.ts +50 -0
  473. package/esm/remote/orm/index.js +47 -0
  474. package/esm/remote/orm/input-types.d.ts +1482 -0
  475. package/esm/remote/orm/input-types.js +9 -0
  476. package/esm/remote/orm/models/index.d.ts +8 -0
  477. package/esm/remote/orm/models/index.js +8 -0
  478. package/esm/remote/orm/models/machine.d.ts +54 -0
  479. package/esm/{usage/orm/models/meter.js → remote/orm/models/machine.js} +25 -25
  480. package/esm/remote/orm/models/machineMessage.d.ts +56 -0
  481. package/esm/{usage/orm/models/meterDefault.js → remote/orm/models/machineMessage.js} +28 -25
  482. package/esm/remote/orm/models/machineSession.d.ts +54 -0
  483. package/esm/{usage/orm/models/meterSource.js → remote/orm/models/machineSession.js} +25 -25
  484. package/esm/remote/orm/mutation/index.d.ts +35 -0
  485. package/esm/remote/orm/mutation/index.js +30 -0
  486. package/esm/remote/orm/query-builder.d.ts +110 -0
  487. package/esm/remote/orm/query-builder.js +705 -0
  488. package/esm/remote/orm/realtime.d.ts +142 -0
  489. package/esm/remote/orm/realtime.js +100 -0
  490. package/esm/remote/orm/select-types.d.ts +125 -0
  491. package/esm/remote/orm/select-types.js +1 -0
  492. package/esm/remote/orm/types.d.ts +6 -0
  493. package/esm/remote/orm/types.js +7 -0
  494. package/esm/storage/index.d.ts +5 -0
  495. package/esm/storage/index.js +5 -0
  496. package/esm/storage/orm/client.d.ts +97 -0
  497. package/esm/storage/orm/client.js +155 -0
  498. package/esm/storage/orm/index.d.ts +77 -0
  499. package/esm/storage/orm/index.js +49 -0
  500. package/esm/storage/orm/input-types.d.ts +2076 -0
  501. package/esm/storage/orm/input-types.js +11 -0
  502. package/esm/storage/orm/models/bucket.d.ts +54 -0
  503. package/esm/storage/orm/models/bucket.js +100 -0
  504. package/esm/storage/orm/models/file.d.ts +54 -0
  505. package/esm/{usage/orm/models/plan.js → storage/orm/models/file.js} +25 -25
  506. package/esm/storage/orm/models/index.d.ts +9 -0
  507. package/esm/storage/orm/models/index.js +9 -0
  508. package/esm/storage/orm/models/platformBucket.d.ts +54 -0
  509. package/esm/{usage/orm/models/planMeterLimit.js → storage/orm/models/platformBucket.js} +25 -25
  510. package/esm/storage/orm/models/platformFile.d.ts +54 -0
  511. package/esm/{usage/orm/models/planOverride.js → storage/orm/models/platformFile.js} +25 -25
  512. package/esm/storage/orm/mutation/index.d.ts +91 -0
  513. package/esm/storage/orm/mutation/index.js +90 -0
  514. package/esm/storage/orm/query-builder.d.ts +110 -0
  515. package/esm/storage/orm/query-builder.js +705 -0
  516. package/esm/storage/orm/realtime.d.ts +142 -0
  517. package/esm/storage/orm/realtime.js +100 -0
  518. package/esm/storage/orm/select-types.d.ts +125 -0
  519. package/esm/storage/orm/select-types.js +1 -0
  520. package/esm/storage/orm/types.d.ts +6 -0
  521. package/esm/storage/orm/types.js +7 -0
  522. package/esm/usage/orm/index.d.ts +0 -85
  523. package/esm/usage/orm/index.js +0 -40
  524. package/esm/usage/orm/input-types.d.ts +130 -3767
  525. package/esm/usage/orm/input-types.js +0 -10
  526. package/esm/usage/orm/models/index.d.ts +0 -20
  527. package/esm/usage/orm/models/index.js +0 -20
  528. package/esm/usage/orm/mutation/index.d.ts +6 -53
  529. package/esm/usage/orm/mutation/index.js +0 -72
  530. package/esm/usage/orm/query/index.d.ts +0 -33
  531. package/esm/usage/orm/query/index.js +0 -51
  532. package/index.d.ts +2 -0
  533. package/index.js +3 -1
  534. package/infra/orm/index.d.ts +17 -0
  535. package/infra/orm/index.js +2 -0
  536. package/infra/orm/input-types.d.ts +297 -36
  537. package/infra/orm/models/contentPreset.d.ts +54 -0
  538. package/infra/orm/models/contentPreset.js +104 -0
  539. package/infra/orm/models/index.d.ts +1 -0
  540. package/infra/orm/models/index.js +3 -1
  541. package/infra/orm/mutation/index.d.ts +30 -5
  542. package/infra/orm/mutation/index.js +36 -0
  543. package/modules/orm/index.d.ts +14 -4
  544. package/modules/orm/index.js +14 -4
  545. package/modules/orm/input-types.d.ts +2752 -747
  546. package/modules/orm/input-types.js +1 -5
  547. package/modules/orm/models/clusterModule.d.ts +54 -0
  548. package/modules/orm/models/clusterModule.js +104 -0
  549. package/modules/orm/models/imageModule.d.ts +54 -0
  550. package/{usage/orm/models/planPricing.js → modules/orm/models/imageModule.js} +27 -27
  551. package/modules/orm/models/index.d.ts +7 -2
  552. package/modules/orm/models/index.js +16 -6
  553. package/modules/orm/models/internalConfigModule.d.ts +54 -0
  554. package/{admin/orm/models/orgMembershipProfile.js → modules/orm/models/internalConfigModule.js} +27 -27
  555. package/modules/orm/models/k8sAdmissionModule.d.ts +54 -0
  556. package/modules/orm/models/k8sAdmissionModule.js +104 -0
  557. package/modules/orm/models/machineModule.d.ts +54 -0
  558. package/modules/orm/models/machineModule.js +104 -0
  559. package/modules/orm/models/refusalLogModule.d.ts +54 -0
  560. package/modules/orm/models/refusalLogModule.js +104 -0
  561. package/modules/orm/models/repositoryModule.d.ts +54 -0
  562. package/modules/orm/models/repositoryModule.js +104 -0
  563. package/modules/orm/mutation/index.d.ts +6 -5
  564. package/objects/orm/input-types.d.ts +11 -18
  565. package/objects/orm/mutation/index.d.ts +5 -4
  566. package/package.json +5 -5
  567. package/remote/index.d.ts +5 -0
  568. package/remote/index.js +21 -0
  569. package/remote/orm/client.d.ts +97 -0
  570. package/remote/orm/client.js +162 -0
  571. package/remote/orm/index.d.ts +50 -0
  572. package/remote/orm/index.js +69 -0
  573. package/remote/orm/input-types.d.ts +1482 -0
  574. package/remote/orm/input-types.js +12 -0
  575. package/remote/orm/models/index.d.ts +8 -0
  576. package/remote/orm/models/index.js +14 -0
  577. package/remote/orm/models/machine.d.ts +54 -0
  578. package/{usage/orm/models/planCap.js → remote/orm/models/machine.js} +27 -27
  579. package/remote/orm/models/machineMessage.d.ts +56 -0
  580. package/remote/orm/models/machineMessage.js +107 -0
  581. package/remote/orm/models/machineSession.d.ts +54 -0
  582. package/{usage/orm/models/meterDefault.js → remote/orm/models/machineSession.js} +27 -27
  583. package/remote/orm/mutation/index.d.ts +35 -0
  584. package/remote/orm/mutation/index.js +33 -0
  585. package/remote/orm/query-builder.d.ts +110 -0
  586. package/remote/orm/query-builder.js +757 -0
  587. package/remote/orm/realtime.d.ts +142 -0
  588. package/remote/orm/realtime.js +104 -0
  589. package/remote/orm/select-types.d.ts +125 -0
  590. package/remote/orm/select-types.js +2 -0
  591. package/remote/orm/types.d.ts +6 -0
  592. package/remote/orm/types.js +23 -0
  593. package/storage/index.d.ts +5 -0
  594. package/storage/index.js +21 -0
  595. package/storage/orm/client.d.ts +97 -0
  596. package/storage/orm/client.js +162 -0
  597. package/storage/orm/index.d.ts +77 -0
  598. package/storage/orm/index.js +71 -0
  599. package/storage/orm/input-types.d.ts +2076 -0
  600. package/storage/orm/input-types.js +14 -0
  601. package/storage/orm/models/bucket.d.ts +54 -0
  602. package/{usage/orm/models/ledger.js → storage/orm/models/bucket.js} +27 -30
  603. package/storage/orm/models/file.d.ts +54 -0
  604. package/{usage/orm/models/plan.js → storage/orm/models/file.js} +27 -27
  605. package/storage/orm/models/index.d.ts +9 -0
  606. package/storage/orm/models/index.js +16 -0
  607. package/storage/orm/models/platformBucket.d.ts +54 -0
  608. package/storage/orm/models/platformBucket.js +104 -0
  609. package/storage/orm/models/platformFile.d.ts +54 -0
  610. package/{api/orm/models/appComponent.js → storage/orm/models/platformFile.js} +27 -27
  611. package/storage/orm/mutation/index.d.ts +91 -0
  612. package/storage/orm/mutation/index.js +93 -0
  613. package/storage/orm/query-builder.d.ts +110 -0
  614. package/storage/orm/query-builder.js +757 -0
  615. package/storage/orm/realtime.d.ts +142 -0
  616. package/storage/orm/realtime.js +104 -0
  617. package/storage/orm/select-types.d.ts +125 -0
  618. package/storage/orm/select-types.js +2 -0
  619. package/storage/orm/types.d.ts +6 -0
  620. package/storage/orm/types.js +23 -0
  621. package/usage/orm/index.d.ts +0 -85
  622. package/usage/orm/index.js +0 -40
  623. package/usage/orm/input-types.d.ts +130 -3767
  624. package/usage/orm/input-types.js +0 -10
  625. package/usage/orm/models/index.d.ts +0 -20
  626. package/usage/orm/models/index.js +1 -41
  627. package/usage/orm/mutation/index.d.ts +6 -53
  628. package/usage/orm/mutation/index.js +0 -72
  629. package/usage/orm/query/index.d.ts +0 -33
  630. package/usage/orm/query/index.js +0 -51
  631. package/admin/orm/models/appCapability.d.ts +0 -54
  632. package/admin/orm/models/appCapabilityDefault.d.ts +0 -54
  633. package/admin/orm/models/appMembershipProfile.d.ts +0 -54
  634. package/admin/orm/models/appProfile.d.ts +0 -54
  635. package/admin/orm/models/appProfileCapability.d.ts +0 -54
  636. package/admin/orm/models/appProfileDefinitionGrant.d.ts +0 -54
  637. package/admin/orm/models/appProfileGrant.d.ts +0 -54
  638. package/admin/orm/models/appProfileTemplate.d.ts +0 -54
  639. package/admin/orm/models/orgCapability.d.ts +0 -54
  640. package/admin/orm/models/orgCapabilityDefault.d.ts +0 -54
  641. package/admin/orm/models/orgMembershipProfile.d.ts +0 -54
  642. package/admin/orm/models/orgProfile.d.ts +0 -54
  643. package/admin/orm/models/orgProfileCapability.d.ts +0 -54
  644. package/admin/orm/models/orgProfileCapability.js +0 -104
  645. package/admin/orm/models/orgProfileDefinitionGrant.d.ts +0 -54
  646. package/admin/orm/models/orgProfileDefinitionGrant.js +0 -104
  647. package/admin/orm/models/orgProfileGrant.d.ts +0 -54
  648. package/admin/orm/models/orgProfileTemplate.d.ts +0 -54
  649. package/api/orm/models/app.d.ts +0 -54
  650. package/api/orm/models/appComponent.d.ts +0 -54
  651. package/api/orm/models/httpRoute.d.ts +0 -54
  652. package/esm/admin/orm/models/appCapability.d.ts +0 -54
  653. package/esm/admin/orm/models/appCapabilityDefault.d.ts +0 -54
  654. package/esm/admin/orm/models/appMembershipProfile.d.ts +0 -54
  655. package/esm/admin/orm/models/appProfile.d.ts +0 -54
  656. package/esm/admin/orm/models/appProfileCapability.d.ts +0 -54
  657. package/esm/admin/orm/models/appProfileCapability.js +0 -100
  658. package/esm/admin/orm/models/appProfileDefinitionGrant.d.ts +0 -54
  659. package/esm/admin/orm/models/appProfileDefinitionGrant.js +0 -100
  660. package/esm/admin/orm/models/appProfileGrant.d.ts +0 -54
  661. package/esm/admin/orm/models/appProfileTemplate.d.ts +0 -54
  662. package/esm/admin/orm/models/orgCapability.d.ts +0 -54
  663. package/esm/admin/orm/models/orgCapabilityDefault.d.ts +0 -54
  664. package/esm/admin/orm/models/orgCapabilityDefault.js +0 -100
  665. package/esm/admin/orm/models/orgMembershipProfile.d.ts +0 -54
  666. package/esm/admin/orm/models/orgProfile.d.ts +0 -54
  667. package/esm/admin/orm/models/orgProfileCapability.d.ts +0 -54
  668. package/esm/admin/orm/models/orgProfileDefinitionGrant.d.ts +0 -54
  669. package/esm/admin/orm/models/orgProfileDefinitionGrant.js +0 -100
  670. package/esm/admin/orm/models/orgProfileGrant.d.ts +0 -54
  671. package/esm/admin/orm/models/orgProfileTemplate.d.ts +0 -54
  672. package/esm/api/orm/models/app.d.ts +0 -54
  673. package/esm/api/orm/models/appComponent.d.ts +0 -54
  674. package/esm/api/orm/models/appComponent.js +0 -100
  675. package/esm/api/orm/models/httpRoute.d.ts +0 -54
  676. package/esm/modules/orm/models/configSecretsUserModule.d.ts +0 -54
  677. package/esm/modules/orm/models/httpRouteModule.d.ts +0 -54
  678. package/esm/usage/orm/models/appAchievementReward.d.ts +0 -54
  679. package/esm/usage/orm/models/appAchievementReward.js +0 -100
  680. package/esm/usage/orm/models/appEvent.d.ts +0 -56
  681. package/esm/usage/orm/models/appEventAggregate.d.ts +0 -54
  682. package/esm/usage/orm/models/appEventType.d.ts +0 -54
  683. package/esm/usage/orm/models/appEventType.js +0 -100
  684. package/esm/usage/orm/models/appLevel.d.ts +0 -54
  685. package/esm/usage/orm/models/appLevelGrant.d.ts +0 -54
  686. package/esm/usage/orm/models/appLevelRequirement.d.ts +0 -54
  687. package/esm/usage/orm/models/billingUsageSummary.d.ts +0 -54
  688. package/esm/usage/orm/models/ledger.d.ts +0 -56
  689. package/esm/usage/orm/models/meter.d.ts +0 -54
  690. package/esm/usage/orm/models/meterCredit.d.ts +0 -54
  691. package/esm/usage/orm/models/meterDefault.d.ts +0 -54
  692. package/esm/usage/orm/models/meterSource.d.ts +0 -54
  693. package/esm/usage/orm/models/plan.d.ts +0 -54
  694. package/esm/usage/orm/models/planCap.d.ts +0 -54
  695. package/esm/usage/orm/models/planLimit.d.ts +0 -54
  696. package/esm/usage/orm/models/planMeterLimit.d.ts +0 -54
  697. package/esm/usage/orm/models/planOverride.d.ts +0 -54
  698. package/esm/usage/orm/models/planPricing.d.ts +0 -54
  699. package/esm/usage/orm/models/planSubscription.d.ts +0 -54
  700. package/modules/orm/models/configSecretsUserModule.d.ts +0 -54
  701. package/modules/orm/models/httpRouteModule.d.ts +0 -54
  702. package/usage/orm/models/appAchievementReward.d.ts +0 -54
  703. package/usage/orm/models/appAchievementReward.js +0 -104
  704. package/usage/orm/models/appEvent.d.ts +0 -56
  705. package/usage/orm/models/appEventAggregate.d.ts +0 -54
  706. package/usage/orm/models/appEventType.d.ts +0 -54
  707. package/usage/orm/models/appLevel.d.ts +0 -54
  708. package/usage/orm/models/appLevelGrant.d.ts +0 -54
  709. package/usage/orm/models/appLevelRequirement.d.ts +0 -54
  710. package/usage/orm/models/billingUsageSummary.d.ts +0 -54
  711. package/usage/orm/models/ledger.d.ts +0 -56
  712. package/usage/orm/models/meter.d.ts +0 -54
  713. package/usage/orm/models/meterCredit.d.ts +0 -54
  714. package/usage/orm/models/meterDefault.d.ts +0 -54
  715. package/usage/orm/models/meterSource.d.ts +0 -54
  716. package/usage/orm/models/plan.d.ts +0 -54
  717. package/usage/orm/models/planCap.d.ts +0 -54
  718. package/usage/orm/models/planLimit.d.ts +0 -54
  719. package/usage/orm/models/planMeterLimit.d.ts +0 -54
  720. package/usage/orm/models/planOverride.d.ts +0 -54
  721. package/usage/orm/models/planOverride.js +0 -104
  722. package/usage/orm/models/planPricing.d.ts +0 -54
  723. package/usage/orm/models/planSubscription.d.ts +0 -54
@@ -0,0 +1,104 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RepositoryModuleModel = void 0;
4
+ const query_builder_1 = require("../query-builder");
5
+ const input_types_1 = require("../input-types");
6
+ class RepositoryModuleModel {
7
+ client;
8
+ constructor(client) {
9
+ this.client = client;
10
+ }
11
+ findMany(args) {
12
+ const { document, variables } = (0, query_builder_1.buildFindManyDocument)('RepositoryModule', 'repositoryModules', args.select, {
13
+ where: args?.where,
14
+ orderBy: args?.orderBy,
15
+ first: args?.first,
16
+ last: args?.last,
17
+ after: args?.after,
18
+ before: args?.before,
19
+ offset: args?.offset,
20
+ }, 'RepositoryModuleFilter', 'RepositoryModuleOrderBy', input_types_1.connectionFieldsMap);
21
+ return new query_builder_1.QueryBuilder({
22
+ client: this.client,
23
+ operation: 'query',
24
+ operationName: 'RepositoryModule',
25
+ fieldName: 'repositoryModules',
26
+ document,
27
+ variables,
28
+ });
29
+ }
30
+ findFirst(args) {
31
+ const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('RepositoryModule', 'repositoryModules', args.select, {
32
+ where: args?.where,
33
+ orderBy: args?.orderBy,
34
+ }, 'RepositoryModuleFilter', 'RepositoryModuleOrderBy', input_types_1.connectionFieldsMap);
35
+ return new query_builder_1.QueryBuilder({
36
+ client: this.client,
37
+ operation: 'query',
38
+ operationName: 'RepositoryModule',
39
+ fieldName: 'repositoryModule',
40
+ document,
41
+ variables,
42
+ transform: (data) => ({
43
+ repositoryModule: data.repositoryModules?.nodes?.[0] ?? null,
44
+ }),
45
+ });
46
+ }
47
+ findOne(args) {
48
+ const { document, variables } = (0, query_builder_1.buildFindManyDocument)('RepositoryModule', 'repositoryModules', args.select, {
49
+ where: {
50
+ id: {
51
+ equalTo: args.id,
52
+ },
53
+ },
54
+ first: 1,
55
+ }, 'RepositoryModuleFilter', 'RepositoryModuleOrderBy', input_types_1.connectionFieldsMap);
56
+ return new query_builder_1.QueryBuilder({
57
+ client: this.client,
58
+ operation: 'query',
59
+ operationName: 'RepositoryModule',
60
+ fieldName: 'repositoryModule',
61
+ document,
62
+ variables,
63
+ transform: (data) => ({
64
+ repositoryModule: data.repositoryModules?.nodes?.[0] ?? null,
65
+ }),
66
+ });
67
+ }
68
+ create(args) {
69
+ const { document, variables } = (0, query_builder_1.buildCreateDocument)('RepositoryModule', 'createRepositoryModule', 'repositoryModule', args.select, args.data, 'CreateRepositoryModuleInput', input_types_1.connectionFieldsMap);
70
+ return new query_builder_1.QueryBuilder({
71
+ client: this.client,
72
+ operation: 'mutation',
73
+ operationName: 'RepositoryModule',
74
+ fieldName: 'createRepositoryModule',
75
+ document,
76
+ variables,
77
+ });
78
+ }
79
+ update(args) {
80
+ const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('RepositoryModule', 'updateRepositoryModule', 'repositoryModule', args.select, args.where.id, args.data, 'UpdateRepositoryModuleInput', 'id', 'repositoryModulePatch', input_types_1.connectionFieldsMap, undefined);
81
+ return new query_builder_1.QueryBuilder({
82
+ client: this.client,
83
+ operation: 'mutation',
84
+ operationName: 'RepositoryModule',
85
+ fieldName: 'updateRepositoryModule',
86
+ document,
87
+ variables,
88
+ });
89
+ }
90
+ delete(args) {
91
+ const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('RepositoryModule', 'deleteRepositoryModule', 'repositoryModule', {
92
+ id: args.where.id,
93
+ }, 'DeleteRepositoryModuleInput', args.select, input_types_1.connectionFieldsMap);
94
+ return new query_builder_1.QueryBuilder({
95
+ client: this.client,
96
+ operation: 'mutation',
97
+ operationName: 'RepositoryModule',
98
+ fieldName: 'deleteRepositoryModule',
99
+ document,
100
+ variables,
101
+ });
102
+ }
103
+ }
104
+ exports.RepositoryModuleModel = RepositoryModuleModel;
@@ -9,7 +9,7 @@ import type { InferSelectResult, StrictSelect } from '../select-types';
9
9
  import type { ConstructBlueprintInput, CopyTemplateToBlueprintInput, ProvisionBucketInput, ConstructBlueprintPayload, CopyTemplateToBlueprintPayload, ProvisionBucketPayload, ConstructBlueprintPayloadSelect, CopyTemplateToBlueprintPayloadSelect, ProvisionBucketPayloadSelect } from '../input-types';
10
10
  /**
11
11
  * Variables for constructBlueprint
12
- * Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure.
12
+ * Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). A table entry either names its table (table_name plus optional schema_name) or references one an installed module generated ("module": {"type": "agent", "scope": "org", "table": "message"}), which resolves through the module row's recorded table ids and raises when it matches nothing instead of creating an empty table. After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure.
13
13
  */
14
14
  export interface ConstructBlueprintVariables {
15
15
  input: ConstructBlueprintInput;
@@ -23,10 +23,11 @@ export interface CopyTemplateToBlueprintVariables {
23
23
  }
24
24
  /**
25
25
  * Variables for provisionBucket
26
- * Provision an S3 bucket for a logical bucket in the database.
27
- Reads the bucket config via RLS, then creates and configures
28
- the S3 bucket with the appropriate privacy policies, CORS rules,
29
- and lifecycle settings.
26
+ * Reconcile an S3 bucket for a logical bucket in the database.
27
+ Reads the bucket config via RLS, then enqueues the same
28
+ storage:provision_bucket job used by the INSERT trigger. This is
29
+ idempotent for an already-reconciled bucket; enqueue failures become
30
+ GraphQL errors.
30
31
  */
31
32
  export interface ProvisionBucketVariables {
32
33
  input: ProvisionBucketInput;
@@ -718,26 +718,19 @@ export type InsertNodesAtPathsPayloadSelect = {
718
718
  result?: boolean;
719
719
  };
720
720
  export interface ProvisionBucketPayload {
721
- /** The access type applied */
722
- accessType: string;
723
- /** The S3 bucket name that was provisioned */
724
- bucketName: string;
725
- /** The S3 endpoint (null for AWS S3 default) */
726
- endpoint?: string | null;
727
- /** Error message if provisioning failed */
728
- error?: string | null;
729
- /** The storage provider used */
730
- provider: string;
731
- /** Whether provisioning succeeded */
732
- success: boolean;
721
+ /** The logical bucket row that was queued for reconciliation. */
722
+ bucketId: string;
723
+ bucketKey: string;
724
+ /** The reconciler job enqueued to provision this bucket. */
725
+ jobId: string;
726
+ /** The physical bucket name already recorded, or null when reconciliation has not completed. */
727
+ physicalName?: string | null;
733
728
  }
734
729
  export type ProvisionBucketPayloadSelect = {
735
- accessType?: boolean;
736
- bucketName?: boolean;
737
- endpoint?: boolean;
738
- error?: boolean;
739
- provider?: boolean;
740
- success?: boolean;
730
+ bucketId?: boolean;
731
+ bucketKey?: boolean;
732
+ jobId?: boolean;
733
+ physicalName?: boolean;
741
734
  };
742
735
  export interface SetAndCommitPayload {
743
736
  clientMutationId?: string | null;
@@ -18,10 +18,11 @@ export interface InsertNodesAtPathsVariables {
18
18
  }
19
19
  /**
20
20
  * Variables for provisionBucket
21
- * Provision an S3 bucket for a logical bucket in the database.
22
- Reads the bucket config via RLS, then creates and configures
23
- the S3 bucket with the appropriate privacy policies, CORS rules,
24
- and lifecycle settings.
21
+ * Reconcile an S3 bucket for a logical bucket in the database.
22
+ Reads the bucket config via RLS, then enqueues the same
23
+ storage:provision_bucket job used by the INSERT trigger. This is
24
+ idempotent for an already-reconciled bucket; enqueue failures become
25
+ GraphQL errors.
25
26
  */
26
27
  export interface ProvisionBucketVariables {
27
28
  input: ProvisionBucketInput;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@constructive-io/sdk",
3
- "version": "1.19.2",
3
+ "version": "1.19.3",
4
4
  "author": "Constructive <developers@constructive.io>",
5
5
  "description": "Constructive SDK - Auto-generated GraphQL types and ORM client",
6
6
  "main": "index.js",
@@ -41,17 +41,17 @@
41
41
  ],
42
42
  "dependencies": {
43
43
  "@0no-co/graphql.web": "^1.3.3",
44
- "@constructive-io/graphql-query": "^4.20.2",
45
- "@constructive-io/graphql-types": "^3.33.2",
44
+ "@constructive-io/graphql-query": "^4.20.3",
45
+ "@constructive-io/graphql-types": "^3.33.3",
46
46
  "gql-ast": "^3.25.0",
47
47
  "graphql": "16.13.0"
48
48
  },
49
49
  "devDependencies": {
50
- "@constructive-io/graphql-codegen": "^5.23.2",
50
+ "@constructive-io/graphql-codegen": "^5.23.3",
51
51
  "@types/node": "^22.19.11",
52
52
  "makage": "^0.8.0",
53
53
  "tsx": "^4.19.0",
54
54
  "typescript": "^6.0.3"
55
55
  },
56
- "gitHead": "e05686fb94c5e22c954436f18c25aa4439b9e83e"
56
+ "gitHead": "4c68f85c7d9b3c72082f8305dffc0b3dfca80941"
57
57
  }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * GraphQL SDK - auto-generated, do not edit
3
+ * @generated by @constructive-io/graphql-codegen
4
+ */
5
+ export * from './orm';
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ /**
18
+ * GraphQL SDK - auto-generated, do not edit
19
+ * @generated by @constructive-io/graphql-codegen
20
+ */
21
+ __exportStar(require("./orm"), exports);
@@ -0,0 +1,97 @@
1
+ /**
2
+ * ORM Client - Runtime GraphQL executor
3
+ * @generated by @constructive-io/graphql-codegen
4
+ * DO NOT EDIT - changes will be overwritten
5
+ */
6
+ import type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-query/runtime';
7
+ import type { ConnectionState, ConnectionStateListener, RealtimeConfig, SubscriptionEvent, SubscriptionFieldMeta, Unsubscribe } from './realtime';
8
+ export type { GraphQLAdapter, GraphQLError, QueryResult, } from '@constructive-io/graphql-query/runtime';
9
+ export type { ConnectionState, ConnectionStateListener, RealtimeConfig, SubscribeOptions, SubscriptionEvent, SubscriptionFieldMeta, SubscriptionOperation, Unsubscribe, WsClient, } from './realtime';
10
+ export { RealtimeManager } from './realtime';
11
+ /**
12
+ * Default adapter that uses fetch for HTTP requests.
13
+ *
14
+ * When no custom fetch is provided, uses @constructive-io/fetch which
15
+ * handles *.localhost DNS rewriting and Host header preservation in
16
+ * Node.js. Pass a custom fetch to override for test mocking or custom
17
+ * proxy/credentials.
18
+ */
19
+ export declare class FetchAdapter implements GraphQLAdapter {
20
+ private endpoint;
21
+ private headers;
22
+ private fetchFn;
23
+ constructor(endpoint: string, headers?: Record<string, string>, fetchFn?: typeof globalThis.fetch);
24
+ execute<T>(document: string, variables?: Record<string, unknown>): Promise<QueryResult<T>>;
25
+ setHeaders(headers: Record<string, string>): void;
26
+ getEndpoint(): string;
27
+ }
28
+ /**
29
+ * Configuration for creating an ORM client.
30
+ * Either provide endpoint (and optional headers/fetch) for HTTP requests,
31
+ * or provide a custom adapter for alternative execution strategies.
32
+ */
33
+ export interface OrmClientConfig {
34
+ /** GraphQL endpoint URL (required if adapter not provided) */
35
+ endpoint?: string;
36
+ /** Default headers for HTTP requests (only used with endpoint) */
37
+ headers?: Record<string, string>;
38
+ /**
39
+ * Custom fetch implementation. Defaults to createFetch() from
40
+ * @constructive-io/graphql-query/runtime which handles *.localhost
41
+ * DNS and Host headers in Node.js. Pass your own for test mocking
42
+ * or custom proxy/credentials.
43
+ */
44
+ fetch?: typeof globalThis.fetch;
45
+ /** Custom adapter for GraphQL execution (overrides endpoint/headers/fetch) */
46
+ adapter?: GraphQLAdapter;
47
+ /**
48
+ * Optional realtime (WebSocket) configuration.
49
+ * When provided, enables subscription methods on models.
50
+ * The WebSocket connection is created lazily on first subscribe().
51
+ */
52
+ realtime?: RealtimeConfig;
53
+ }
54
+ /**
55
+ * Error thrown when GraphQL request fails
56
+ */
57
+ export declare class GraphQLRequestError extends Error {
58
+ readonly errors: GraphQLError[];
59
+ readonly data: unknown;
60
+ constructor(errors: GraphQLError[], data?: unknown);
61
+ }
62
+ export declare class OrmClient {
63
+ private adapter;
64
+ private realtimeManager?;
65
+ constructor(config: OrmClientConfig);
66
+ execute<T>(document: string, variables?: Record<string, unknown>): Promise<QueryResult<T>>;
67
+ /**
68
+ * Subscribe to a GraphQL subscription operation.
69
+ * Used by generated model subscribe() methods.
70
+ * @throws Error if realtime is not configured
71
+ */
72
+ subscribe<T>(meta: SubscriptionFieldMeta, document: string, variables: Record<string, unknown>, options: {
73
+ onEvent: (event: SubscriptionEvent<T>) => void;
74
+ onError?: (error: Error) => void;
75
+ onComplete?: () => void;
76
+ }): Unsubscribe;
77
+ /**
78
+ * Set headers for requests.
79
+ * Only works if the adapter supports headers.
80
+ */
81
+ setHeaders(headers: Record<string, string>): void;
82
+ /**
83
+ * Get the endpoint URL.
84
+ * Returns empty string if the adapter doesn't have an endpoint.
85
+ */
86
+ getEndpoint(): string;
87
+ /** Get current WebSocket connection state */
88
+ getConnectionState(): ConnectionState;
89
+ /** Register a listener for WebSocket connection state changes */
90
+ onConnectionStateChange(listener: ConnectionStateListener): Unsubscribe;
91
+ /** Number of active subscriptions */
92
+ getActiveSubscriptionCount(): number;
93
+ /** Whether realtime is configured */
94
+ get isRealtimeEnabled(): boolean;
95
+ /** Dispose the realtime manager (close WebSocket) */
96
+ dispose(): void;
97
+ }
@@ -0,0 +1,162 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrmClient = exports.GraphQLRequestError = exports.FetchAdapter = exports.RealtimeManager = void 0;
4
+ const runtime_1 = require("@constructive-io/graphql-query/runtime");
5
+ const realtime_1 = require("./realtime");
6
+ var realtime_2 = require("./realtime");
7
+ Object.defineProperty(exports, "RealtimeManager", { enumerable: true, get: function () { return realtime_2.RealtimeManager; } });
8
+ /**
9
+ * Default adapter that uses fetch for HTTP requests.
10
+ *
11
+ * When no custom fetch is provided, uses @constructive-io/fetch which
12
+ * handles *.localhost DNS rewriting and Host header preservation in
13
+ * Node.js. Pass a custom fetch to override for test mocking or custom
14
+ * proxy/credentials.
15
+ */
16
+ class FetchAdapter {
17
+ endpoint;
18
+ headers;
19
+ fetchFn;
20
+ constructor(endpoint, headers, fetchFn) {
21
+ this.endpoint = endpoint;
22
+ this.headers = headers ?? {};
23
+ this.fetchFn = (fetchFn ?? (0, runtime_1.createFetch)()).bind(globalThis);
24
+ }
25
+ async execute(document, variables) {
26
+ const response = await this.fetchFn(this.endpoint, {
27
+ method: 'POST',
28
+ headers: {
29
+ 'Content-Type': 'application/json',
30
+ Accept: 'application/json',
31
+ ...this.headers,
32
+ },
33
+ body: JSON.stringify({
34
+ query: document,
35
+ variables: variables ?? {},
36
+ }),
37
+ });
38
+ if (!response.ok) {
39
+ return {
40
+ ok: false,
41
+ data: null,
42
+ errors: [{ message: `HTTP ${response.status}: ${response.statusText}` }],
43
+ };
44
+ }
45
+ const json = (await response.json());
46
+ if (json.errors && json.errors.length > 0) {
47
+ return {
48
+ ok: false,
49
+ data: null,
50
+ errors: json.errors,
51
+ };
52
+ }
53
+ return {
54
+ ok: true,
55
+ data: json.data,
56
+ errors: undefined,
57
+ };
58
+ }
59
+ setHeaders(headers) {
60
+ this.headers = { ...this.headers, ...headers };
61
+ }
62
+ getEndpoint() {
63
+ return this.endpoint;
64
+ }
65
+ }
66
+ exports.FetchAdapter = FetchAdapter;
67
+ /**
68
+ * Describe a single GraphQL error, falling back to its `extensions.code` when
69
+ * the server omits `message` so the error never renders as an empty string.
70
+ */
71
+ function describeGraphQLError(error) {
72
+ if (error.message)
73
+ return error.message;
74
+ const code = error.extensions?.code;
75
+ return typeof code === 'string' ? code : 'Unknown error';
76
+ }
77
+ /**
78
+ * Error thrown when GraphQL request fails
79
+ */
80
+ class GraphQLRequestError extends Error {
81
+ errors;
82
+ data;
83
+ constructor(errors, data = null) {
84
+ const messages = errors.map(describeGraphQLError).join('; ');
85
+ super(`GraphQL Error: ${messages}`);
86
+ this.errors = errors;
87
+ this.data = data;
88
+ this.name = 'GraphQLRequestError';
89
+ }
90
+ }
91
+ exports.GraphQLRequestError = GraphQLRequestError;
92
+ class OrmClient {
93
+ adapter;
94
+ realtimeManager;
95
+ constructor(config) {
96
+ if (config.adapter) {
97
+ this.adapter = config.adapter;
98
+ }
99
+ else if (config.endpoint) {
100
+ this.adapter = new FetchAdapter(config.endpoint, config.headers, config.fetch);
101
+ }
102
+ else {
103
+ throw new Error('OrmClientConfig requires either an endpoint or a custom adapter');
104
+ }
105
+ if (config.realtime) {
106
+ this.realtimeManager = new realtime_1.RealtimeManager(config.realtime);
107
+ }
108
+ }
109
+ async execute(document, variables) {
110
+ return this.adapter.execute(document, variables);
111
+ }
112
+ /**
113
+ * Subscribe to a GraphQL subscription operation.
114
+ * Used by generated model subscribe() methods.
115
+ * @throws Error if realtime is not configured
116
+ */
117
+ subscribe(meta, document, variables, options) {
118
+ if (!this.realtimeManager) {
119
+ throw new Error('Realtime not configured. Pass a `realtime` option to createClient() to enable subscriptions.');
120
+ }
121
+ return this.realtimeManager.subscribe(meta, document, variables, options);
122
+ }
123
+ /**
124
+ * Set headers for requests.
125
+ * Only works if the adapter supports headers.
126
+ */
127
+ setHeaders(headers) {
128
+ if (this.adapter.setHeaders) {
129
+ this.adapter.setHeaders(headers);
130
+ }
131
+ }
132
+ /**
133
+ * Get the endpoint URL.
134
+ * Returns empty string if the adapter doesn't have an endpoint.
135
+ */
136
+ getEndpoint() {
137
+ return this.adapter.getEndpoint?.() ?? '';
138
+ }
139
+ /** Get current WebSocket connection state */
140
+ getConnectionState() {
141
+ return this.realtimeManager?.getConnectionState() ?? 'disconnected';
142
+ }
143
+ /** Register a listener for WebSocket connection state changes */
144
+ onConnectionStateChange(listener) {
145
+ if (!this.realtimeManager)
146
+ return () => { };
147
+ return this.realtimeManager.onConnectionStateChange(listener);
148
+ }
149
+ /** Number of active subscriptions */
150
+ getActiveSubscriptionCount() {
151
+ return this.realtimeManager?.getActiveSubscriptionCount() ?? 0;
152
+ }
153
+ /** Whether realtime is configured */
154
+ get isRealtimeEnabled() {
155
+ return this.realtimeManager !== undefined;
156
+ }
157
+ /** Dispose the realtime manager (close WebSocket) */
158
+ dispose() {
159
+ this.realtimeManager?.dispose();
160
+ }
161
+ }
162
+ exports.OrmClient = OrmClient;
@@ -0,0 +1,50 @@
1
+ import type { OrmClientConfig } from './client';
2
+ import { MachineModel } from './models/machine';
3
+ import { MachineMessageModel } from './models/machineMessage';
4
+ import { MachineSessionModel } from './models/machineSession';
5
+ export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client';
6
+ export { GraphQLRequestError, FetchAdapter } from './client';
7
+ export { QueryBuilder } from './query-builder';
8
+ export * from './select-types';
9
+ export * from './models';
10
+ export { createMutationOperations } from './mutation';
11
+ /**
12
+ * Create an ORM client instance
13
+ *
14
+ * @example
15
+ * ```typescript
16
+ * const db = createClient({
17
+ * endpoint: 'https://api.example.com/graphql',
18
+ * headers: { Authorization: 'Bearer token' },
19
+ * });
20
+ *
21
+ * // Query users
22
+ * const users = await db.user.findMany({
23
+ * select: { id: true, name: true },
24
+ * first: 10,
25
+ * }).execute();
26
+ *
27
+ * // Create a user
28
+ * const newUser = await db.user.create({
29
+ * data: { name: 'John', email: 'john@example.com' },
30
+ * select: { id: true },
31
+ * }).execute();
32
+ * ```
33
+ */
34
+ export declare function createClient(config: OrmClientConfig): {
35
+ machine: MachineModel;
36
+ machineMessage: MachineMessageModel;
37
+ machineSession: MachineSessionModel;
38
+ mutation: {
39
+ machinesEnroll: <S extends import("./input-types").MachinesEnrollPayloadSelect>(args: import("./mutation").MachinesEnrollVariables, options: {
40
+ select: S;
41
+ } & import("./select-types").StrictSelect<S, import("./input-types").MachinesEnrollPayloadSelect>) => import("./query-builder").QueryBuilder<{
42
+ machinesEnroll: import("./select-types").InferSelectResult<import("./input-types").MachinesEnrollPayload, S> | null;
43
+ }>;
44
+ provisionBucket: <S extends import("./input-types").ProvisionBucketPayloadSelect>(args: import("./mutation").ProvisionBucketVariables, options: {
45
+ select: S;
46
+ } & import("./select-types").StrictSelect<S, import("./input-types").ProvisionBucketPayloadSelect>) => import("./query-builder").QueryBuilder<{
47
+ provisionBucket: import("./select-types").InferSelectResult<import("./input-types").ProvisionBucketPayload, S> | null;
48
+ }>;
49
+ };
50
+ };
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.createMutationOperations = exports.QueryBuilder = exports.FetchAdapter = exports.GraphQLRequestError = void 0;
18
+ exports.createClient = createClient;
19
+ /**
20
+ * ORM Client - createClient factory
21
+ * @generated by @constructive-io/graphql-codegen
22
+ * DO NOT EDIT - changes will be overwritten
23
+ */
24
+ const client_1 = require("./client");
25
+ const machine_1 = require("./models/machine");
26
+ const machineMessage_1 = require("./models/machineMessage");
27
+ const machineSession_1 = require("./models/machineSession");
28
+ const mutation_1 = require("./mutation");
29
+ var client_2 = require("./client");
30
+ Object.defineProperty(exports, "GraphQLRequestError", { enumerable: true, get: function () { return client_2.GraphQLRequestError; } });
31
+ Object.defineProperty(exports, "FetchAdapter", { enumerable: true, get: function () { return client_2.FetchAdapter; } });
32
+ var query_builder_1 = require("./query-builder");
33
+ Object.defineProperty(exports, "QueryBuilder", { enumerable: true, get: function () { return query_builder_1.QueryBuilder; } });
34
+ __exportStar(require("./select-types"), exports);
35
+ __exportStar(require("./models"), exports);
36
+ var mutation_2 = require("./mutation");
37
+ Object.defineProperty(exports, "createMutationOperations", { enumerable: true, get: function () { return mutation_2.createMutationOperations; } });
38
+ /**
39
+ * Create an ORM client instance
40
+ *
41
+ * @example
42
+ * ```typescript
43
+ * const db = createClient({
44
+ * endpoint: 'https://api.example.com/graphql',
45
+ * headers: { Authorization: 'Bearer token' },
46
+ * });
47
+ *
48
+ * // Query users
49
+ * const users = await db.user.findMany({
50
+ * select: { id: true, name: true },
51
+ * first: 10,
52
+ * }).execute();
53
+ *
54
+ * // Create a user
55
+ * const newUser = await db.user.create({
56
+ * data: { name: 'John', email: 'john@example.com' },
57
+ * select: { id: true },
58
+ * }).execute();
59
+ * ```
60
+ */
61
+ function createClient(config) {
62
+ const client = new client_1.OrmClient(config);
63
+ return {
64
+ machine: new machine_1.MachineModel(client),
65
+ machineMessage: new machineMessage_1.MachineMessageModel(client),
66
+ machineSession: new machineSession_1.MachineSessionModel(client),
67
+ mutation: (0, mutation_1.createMutationOperations)(client),
68
+ };
69
+ }