@constructive-sdk/cli 0.25.9 → 0.25.11

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 (229) hide show
  1. package/admin/cli/commands/app-admin-grant.js +3 -1
  2. package/admin/cli/commands/app-grant.js +3 -1
  3. package/admin/cli/commands/app-invite.js +44 -0
  4. package/admin/cli/commands/app-owner-grant.js +3 -1
  5. package/admin/cli/commands/app-permission-default-grant.d.ts +8 -0
  6. package/admin/cli/commands/app-permission-default-grant.js +286 -0
  7. package/admin/cli/commands/app-permission-default-permission.d.ts +8 -0
  8. package/admin/cli/commands/app-permission-default-permission.js +242 -0
  9. package/admin/cli/commands/org-admin-grant.js +3 -1
  10. package/admin/cli/commands/org-grant.js +3 -1
  11. package/admin/cli/commands/org-invite.js +44 -0
  12. package/admin/cli/commands/org-owner-grant.js +3 -1
  13. package/admin/cli/commands/org-permission-default-grant.d.ts +8 -0
  14. package/admin/cli/commands/org-permission-default-grant.js +306 -0
  15. package/admin/cli/commands/org-permission-default-permission.d.ts +8 -0
  16. package/admin/cli/commands/org-permission-default-permission.js +262 -0
  17. package/admin/cli/commands.js +11 -3
  18. package/admin/cli/executor.d.ts +5 -1
  19. package/admin/orm/index.d.ts +10 -2
  20. package/admin/orm/index.js +10 -2
  21. package/admin/orm/input-types.d.ts +1611 -230
  22. package/admin/orm/input-types.js +9 -1
  23. package/admin/orm/models/appPermissionDefaultGrant.d.ts +54 -0
  24. package/admin/orm/models/appPermissionDefaultGrant.js +104 -0
  25. package/admin/orm/models/appPermissionDefaultPermission.d.ts +54 -0
  26. package/admin/orm/models/appPermissionDefaultPermission.js +104 -0
  27. package/admin/orm/models/index.d.ts +5 -1
  28. package/admin/orm/models/index.js +11 -3
  29. package/admin/orm/models/orgPermissionDefaultGrant.d.ts +54 -0
  30. package/admin/orm/models/orgPermissionDefaultGrant.js +104 -0
  31. package/admin/orm/models/orgPermissionDefaultPermission.d.ts +54 -0
  32. package/admin/orm/models/orgPermissionDefaultPermission.js +104 -0
  33. package/agent/cli/commands/agent-message.js +34 -12
  34. package/agent/cli/commands/agent-task.js +12 -12
  35. package/agent/cli/embedder.d.ts +5 -0
  36. package/agent/cli/embedder.js +46 -9
  37. package/agent/orm/input-types.d.ts +289 -47
  38. package/agent/orm/input-types.js +1 -0
  39. package/api/cli/commands/check-constraint.js +0 -22
  40. package/api/cli/commands/composite-type.d.ts +8 -0
  41. package/api/cli/commands/composite-type.js +424 -0
  42. package/api/cli/commands/enum.js +0 -22
  43. package/api/cli/commands/field.js +0 -22
  44. package/api/cli/commands/foreign-key-constraint.js +0 -22
  45. package/api/cli/commands/index.js +0 -22
  46. package/api/cli/commands/policy.js +0 -22
  47. package/api/cli/commands/primary-key-constraint.js +0 -22
  48. package/api/cli/commands/schema.js +0 -22
  49. package/api/cli/commands/spatial-relation.js +0 -22
  50. package/api/cli/commands/table.js +6 -28
  51. package/api/cli/commands/trigger.js +0 -22
  52. package/api/cli/commands/unique-constraint.js +0 -22
  53. package/api/cli/commands/view-table.js +22 -0
  54. package/api/cli/commands/view.js +0 -22
  55. package/api/cli/commands.js +3 -1
  56. package/api/cli/executor.d.ts +1 -0
  57. package/api/orm/index.d.ts +2 -0
  58. package/api/orm/index.js +2 -0
  59. package/api/orm/input-types.d.ts +1064 -125
  60. package/api/orm/input-types.js +3 -0
  61. package/api/orm/models/compositeType.d.ts +54 -0
  62. package/api/orm/models/compositeType.js +104 -0
  63. package/api/orm/models/index.d.ts +1 -0
  64. package/api/orm/models/index.js +3 -1
  65. package/auth/cli/commands/link-identity.d.ts +8 -0
  66. package/auth/cli/commands/link-identity.js +36 -0
  67. package/auth/cli/commands/sign-in-sms-otp.d.ts +8 -0
  68. package/auth/cli/commands/sign-in-sms-otp.js +36 -0
  69. package/auth/cli/commands/sign-up-sms.d.ts +8 -0
  70. package/auth/cli/commands/sign-up-sms.js +36 -0
  71. package/auth/cli/commands.js +7 -1
  72. package/auth/cli/executor.d.ts +15 -0
  73. package/auth/orm/index.d.ts +15 -0
  74. package/auth/orm/input-types.d.ts +197 -1
  75. package/auth/orm/mutation/index.d.ts +25 -1
  76. package/auth/orm/mutation/index.js +36 -0
  77. package/esm/admin/cli/commands/app-admin-grant.js +3 -1
  78. package/esm/admin/cli/commands/app-grant.js +3 -1
  79. package/esm/admin/cli/commands/app-invite.js +44 -0
  80. package/esm/admin/cli/commands/app-owner-grant.js +3 -1
  81. package/esm/admin/cli/commands/app-permission-default-grant.d.ts +8 -0
  82. package/esm/admin/cli/commands/app-permission-default-grant.js +284 -0
  83. package/esm/admin/cli/commands/app-permission-default-permission.d.ts +8 -0
  84. package/esm/admin/cli/commands/app-permission-default-permission.js +240 -0
  85. package/esm/admin/cli/commands/org-admin-grant.js +3 -1
  86. package/esm/admin/cli/commands/org-grant.js +3 -1
  87. package/esm/admin/cli/commands/org-invite.js +44 -0
  88. package/esm/admin/cli/commands/org-owner-grant.js +3 -1
  89. package/esm/admin/cli/commands/org-permission-default-grant.d.ts +8 -0
  90. package/esm/admin/cli/commands/org-permission-default-grant.js +304 -0
  91. package/esm/admin/cli/commands/org-permission-default-permission.d.ts +8 -0
  92. package/esm/admin/cli/commands/org-permission-default-permission.js +260 -0
  93. package/esm/admin/cli/commands.js +11 -3
  94. package/esm/admin/cli/executor.d.ts +5 -1
  95. package/esm/admin/orm/index.d.ts +10 -2
  96. package/esm/admin/orm/index.js +10 -2
  97. package/esm/admin/orm/input-types.d.ts +1611 -230
  98. package/esm/admin/orm/input-types.js +9 -1
  99. package/esm/admin/orm/models/appPermissionDefaultGrant.d.ts +54 -0
  100. package/esm/admin/orm/models/appPermissionDefaultGrant.js +100 -0
  101. package/esm/admin/orm/models/appPermissionDefaultPermission.d.ts +54 -0
  102. package/esm/admin/orm/models/appPermissionDefaultPermission.js +100 -0
  103. package/esm/admin/orm/models/index.d.ts +5 -1
  104. package/esm/admin/orm/models/index.js +5 -1
  105. package/esm/admin/orm/models/orgPermissionDefaultGrant.d.ts +54 -0
  106. package/esm/admin/orm/models/orgPermissionDefaultGrant.js +100 -0
  107. package/esm/admin/orm/models/orgPermissionDefaultPermission.d.ts +54 -0
  108. package/esm/admin/orm/models/orgPermissionDefaultPermission.js +100 -0
  109. package/esm/agent/cli/commands/agent-message.js +34 -12
  110. package/esm/agent/cli/commands/agent-task.js +12 -12
  111. package/esm/agent/cli/embedder.d.ts +5 -0
  112. package/esm/agent/cli/embedder.js +10 -2
  113. package/esm/agent/orm/input-types.d.ts +289 -47
  114. package/esm/agent/orm/input-types.js +1 -0
  115. package/esm/api/cli/commands/check-constraint.js +0 -22
  116. package/esm/api/cli/commands/composite-type.d.ts +8 -0
  117. package/esm/api/cli/commands/composite-type.js +422 -0
  118. package/esm/api/cli/commands/enum.js +0 -22
  119. package/esm/api/cli/commands/field.js +0 -22
  120. package/esm/api/cli/commands/foreign-key-constraint.js +0 -22
  121. package/esm/api/cli/commands/index.js +0 -22
  122. package/esm/api/cli/commands/policy.js +0 -22
  123. package/esm/api/cli/commands/primary-key-constraint.js +0 -22
  124. package/esm/api/cli/commands/schema.js +0 -22
  125. package/esm/api/cli/commands/spatial-relation.js +0 -22
  126. package/esm/api/cli/commands/table.js +6 -28
  127. package/esm/api/cli/commands/trigger.js +0 -22
  128. package/esm/api/cli/commands/unique-constraint.js +0 -22
  129. package/esm/api/cli/commands/view-table.js +22 -0
  130. package/esm/api/cli/commands/view.js +0 -22
  131. package/esm/api/cli/commands.js +3 -1
  132. package/esm/api/cli/executor.d.ts +1 -0
  133. package/esm/api/orm/index.d.ts +2 -0
  134. package/esm/api/orm/index.js +2 -0
  135. package/esm/api/orm/input-types.d.ts +1064 -125
  136. package/esm/api/orm/input-types.js +3 -0
  137. package/esm/api/orm/models/compositeType.d.ts +54 -0
  138. package/esm/api/orm/models/compositeType.js +100 -0
  139. package/esm/api/orm/models/index.d.ts +1 -0
  140. package/esm/api/orm/models/index.js +1 -0
  141. package/esm/auth/cli/commands/link-identity.d.ts +8 -0
  142. package/esm/auth/cli/commands/link-identity.js +34 -0
  143. package/esm/auth/cli/commands/sign-in-sms-otp.d.ts +8 -0
  144. package/esm/auth/cli/commands/sign-in-sms-otp.js +34 -0
  145. package/esm/auth/cli/commands/sign-up-sms.d.ts +8 -0
  146. package/esm/auth/cli/commands/sign-up-sms.js +34 -0
  147. package/esm/auth/cli/commands.js +7 -1
  148. package/esm/auth/cli/executor.d.ts +15 -0
  149. package/esm/auth/orm/index.d.ts +15 -0
  150. package/esm/auth/orm/input-types.d.ts +197 -1
  151. package/esm/auth/orm/mutation/index.d.ts +25 -1
  152. package/esm/auth/orm/mutation/index.js +36 -0
  153. package/esm/modules/cli/commands/agent-module.js +88 -0
  154. package/esm/modules/cli/commands/billing-module.js +66 -0
  155. package/esm/modules/cli/commands/compute-log-module.js +44 -0
  156. package/esm/modules/cli/commands/config-secrets-module.js +44 -0
  157. package/esm/modules/cli/commands/db-usage-module.js +66 -0
  158. package/esm/modules/cli/commands/entity-type-provision.js +0 -44
  159. package/esm/modules/cli/commands/events-module.js +66 -0
  160. package/esm/modules/cli/commands/function-invocation-module.d.ts +8 -0
  161. package/esm/modules/cli/commands/function-invocation-module.js +580 -0
  162. package/esm/modules/cli/commands/function-module.js +22 -198
  163. package/esm/modules/cli/commands/graph-module.js +22 -0
  164. package/esm/modules/cli/commands/hierarchy-module.js +22 -0
  165. package/esm/modules/cli/commands/identity-providers-module.js +44 -0
  166. package/esm/modules/cli/commands/inference-log-module.js +44 -0
  167. package/esm/modules/cli/commands/invites-module.js +44 -0
  168. package/esm/modules/cli/commands/limits-module.js +44 -0
  169. package/esm/modules/cli/commands/memberships-module.js +88 -0
  170. package/esm/modules/cli/commands/merkle-store-module.js +22 -0
  171. package/esm/modules/cli/commands/namespace-module.js +22 -0
  172. package/esm/modules/cli/commands/notifications-module.js +88 -0
  173. package/esm/modules/cli/commands/permissions-module.js +44 -0
  174. package/esm/modules/cli/commands/plans-module.js +44 -0
  175. package/esm/modules/cli/commands/profiles-module.js +44 -0
  176. package/esm/modules/cli/commands/rate-limit-meters-module.js +66 -0
  177. package/esm/modules/cli/commands/storage-log-module.js +44 -0
  178. package/esm/modules/cli/commands/storage-module.js +66 -0
  179. package/esm/modules/cli/commands/transfer-log-module.js +44 -0
  180. package/esm/modules/cli/commands.js +29 -27
  181. package/esm/modules/cli/executor.d.ts +14 -13
  182. package/esm/modules/orm/index.d.ts +28 -26
  183. package/esm/modules/orm/index.js +28 -26
  184. package/esm/modules/orm/input-types.d.ts +4485 -2514
  185. package/esm/modules/orm/models/functionInvocationModule.d.ts +54 -0
  186. package/esm/modules/orm/models/functionInvocationModule.js +100 -0
  187. package/esm/modules/orm/models/index.d.ts +14 -13
  188. package/esm/modules/orm/models/index.js +14 -13
  189. package/esm/objects/orm/input-types.d.ts +62 -0
  190. package/esm/usage/orm/input-types.d.ts +314 -19
  191. package/modules/cli/commands/agent-module.js +88 -0
  192. package/modules/cli/commands/billing-module.js +66 -0
  193. package/modules/cli/commands/compute-log-module.js +44 -0
  194. package/modules/cli/commands/config-secrets-module.js +44 -0
  195. package/modules/cli/commands/db-usage-module.js +66 -0
  196. package/modules/cli/commands/entity-type-provision.js +0 -44
  197. package/modules/cli/commands/events-module.js +66 -0
  198. package/modules/cli/commands/function-invocation-module.d.ts +8 -0
  199. package/modules/cli/commands/function-invocation-module.js +582 -0
  200. package/modules/cli/commands/function-module.js +22 -198
  201. package/modules/cli/commands/graph-module.js +22 -0
  202. package/modules/cli/commands/hierarchy-module.js +22 -0
  203. package/modules/cli/commands/identity-providers-module.js +44 -0
  204. package/modules/cli/commands/inference-log-module.js +44 -0
  205. package/modules/cli/commands/invites-module.js +44 -0
  206. package/modules/cli/commands/limits-module.js +44 -0
  207. package/modules/cli/commands/memberships-module.js +88 -0
  208. package/modules/cli/commands/merkle-store-module.js +22 -0
  209. package/modules/cli/commands/namespace-module.js +22 -0
  210. package/modules/cli/commands/notifications-module.js +88 -0
  211. package/modules/cli/commands/permissions-module.js +44 -0
  212. package/modules/cli/commands/plans-module.js +44 -0
  213. package/modules/cli/commands/profiles-module.js +44 -0
  214. package/modules/cli/commands/rate-limit-meters-module.js +66 -0
  215. package/modules/cli/commands/storage-log-module.js +44 -0
  216. package/modules/cli/commands/storage-module.js +66 -0
  217. package/modules/cli/commands/transfer-log-module.js +44 -0
  218. package/modules/cli/commands.js +29 -27
  219. package/modules/cli/executor.d.ts +14 -13
  220. package/modules/orm/index.d.ts +28 -26
  221. package/modules/orm/index.js +28 -26
  222. package/modules/orm/input-types.d.ts +4485 -2514
  223. package/modules/orm/models/functionInvocationModule.d.ts +54 -0
  224. package/modules/orm/models/functionInvocationModule.js +104 -0
  225. package/modules/orm/models/index.d.ts +14 -13
  226. package/modules/orm/models/index.js +30 -28
  227. package/objects/orm/input-types.d.ts +62 -0
  228. package/package.json +4 -4
  229. package/usage/orm/input-types.d.ts +314 -19
@@ -11,6 +11,8 @@ const fieldSchema = {
11
11
  databaseId: 'uuid',
12
12
  schemaId: 'uuid',
13
13
  privateSchemaId: 'uuid',
14
+ publicSchemaName: 'string',
15
+ privateSchemaName: 'string',
14
16
  transferLogTableId: 'uuid',
15
17
  transferLogTableName: 'string',
16
18
  usageDailyTableId: 'uuid',
@@ -71,6 +73,8 @@ async function handleList(argv, _prompter) {
71
73
  databaseId: true,
72
74
  schemaId: true,
73
75
  privateSchemaId: true,
76
+ publicSchemaName: true,
77
+ privateSchemaName: true,
74
78
  transferLogTableId: true,
75
79
  transferLogTableName: true,
76
80
  usageDailyTableId: true,
@@ -105,6 +109,8 @@ async function handleFindFirst(argv, _prompter) {
105
109
  databaseId: true,
106
110
  schemaId: true,
107
111
  privateSchemaId: true,
112
+ publicSchemaName: true,
113
+ privateSchemaName: true,
108
114
  transferLogTableId: true,
109
115
  transferLogTableName: true,
110
116
  usageDailyTableId: true,
@@ -151,6 +157,8 @@ async function handleGet(argv, prompter) {
151
157
  databaseId: true,
152
158
  schemaId: true,
153
159
  privateSchemaId: true,
160
+ publicSchemaName: true,
161
+ privateSchemaName: true,
154
162
  transferLogTableId: true,
155
163
  transferLogTableName: true,
156
164
  usageDailyTableId: true,
@@ -200,6 +208,20 @@ async function handleCreate(argv, prompter) {
200
208
  required: false,
201
209
  skipPrompt: true,
202
210
  },
211
+ {
212
+ type: 'text',
213
+ name: 'publicSchemaName',
214
+ message: 'publicSchemaName',
215
+ required: false,
216
+ skipPrompt: true,
217
+ },
218
+ {
219
+ type: 'text',
220
+ name: 'privateSchemaName',
221
+ message: 'privateSchemaName',
222
+ required: false,
223
+ skipPrompt: true,
224
+ },
203
225
  {
204
226
  type: 'text',
205
227
  name: 'transferLogTableId',
@@ -301,6 +323,8 @@ async function handleCreate(argv, prompter) {
301
323
  databaseId: cleanedData.databaseId,
302
324
  schemaId: cleanedData.schemaId,
303
325
  privateSchemaId: cleanedData.privateSchemaId,
326
+ publicSchemaName: cleanedData.publicSchemaName,
327
+ privateSchemaName: cleanedData.privateSchemaName,
304
328
  transferLogTableId: cleanedData.transferLogTableId,
305
329
  transferLogTableName: cleanedData.transferLogTableName,
306
330
  usageDailyTableId: cleanedData.usageDailyTableId,
@@ -320,6 +344,8 @@ async function handleCreate(argv, prompter) {
320
344
  databaseId: true,
321
345
  schemaId: true,
322
346
  privateSchemaId: true,
347
+ publicSchemaName: true,
348
+ privateSchemaName: true,
323
349
  transferLogTableId: true,
324
350
  transferLogTableName: true,
325
351
  usageDailyTableId: true,
@@ -375,6 +401,20 @@ async function handleUpdate(argv, prompter) {
375
401
  required: false,
376
402
  skipPrompt: true,
377
403
  },
404
+ {
405
+ type: 'text',
406
+ name: 'publicSchemaName',
407
+ message: 'publicSchemaName',
408
+ required: false,
409
+ skipPrompt: true,
410
+ },
411
+ {
412
+ type: 'text',
413
+ name: 'privateSchemaName',
414
+ message: 'privateSchemaName',
415
+ required: false,
416
+ skipPrompt: true,
417
+ },
378
418
  {
379
419
  type: 'text',
380
420
  name: 'transferLogTableId',
@@ -479,6 +519,8 @@ async function handleUpdate(argv, prompter) {
479
519
  databaseId: cleanedData.databaseId,
480
520
  schemaId: cleanedData.schemaId,
481
521
  privateSchemaId: cleanedData.privateSchemaId,
522
+ publicSchemaName: cleanedData.publicSchemaName,
523
+ privateSchemaName: cleanedData.privateSchemaName,
482
524
  transferLogTableId: cleanedData.transferLogTableId,
483
525
  transferLogTableName: cleanedData.transferLogTableName,
484
526
  usageDailyTableId: cleanedData.usageDailyTableId,
@@ -498,6 +540,8 @@ async function handleUpdate(argv, prompter) {
498
540
  databaseId: true,
499
541
  schemaId: true,
500
542
  privateSchemaId: true,
543
+ publicSchemaName: true,
544
+ privateSchemaName: true,
501
545
  transferLogTableId: true,
502
546
  transferLogTableName: true,
503
547
  usageDailyTableId: true,
@@ -23,45 +23,46 @@ import rateLimitsModuleCmd from './commands/rate-limits-module';
23
23
  import usersModuleCmd from './commands/users-module';
24
24
  import webauthnCredentialsModuleCmd from './commands/webauthn-credentials-module';
25
25
  import cryptoAddressesModuleCmd from './commands/crypto-addresses-module';
26
- import identityProvidersModuleCmd from './commands/identity-providers-module';
27
26
  import denormalizedTableFieldCmd from './commands/denormalized-table-field';
27
+ import identityProvidersModuleCmd from './commands/identity-providers-module';
28
28
  import rlsModuleCmd from './commands/rls-module';
29
29
  import blueprintCmd from './commands/blueprint';
30
30
  import blueprintTemplateCmd from './commands/blueprint-template';
31
31
  import blueprintConstructionCmd from './commands/blueprint-construction';
32
32
  import cryptoAuthModuleCmd from './commands/crypto-auth-module';
33
- import rateLimitMetersModuleCmd from './commands/rate-limit-meters-module';
34
33
  import sessionsModuleCmd from './commands/sessions-module';
35
- import configSecretsModuleCmd from './commands/config-secrets-module';
34
+ import secureTableProvisionCmd from './commands/secure-table-provision';
36
35
  import merkleStoreModuleCmd from './commands/merkle-store-module';
37
36
  import graphModuleCmd from './commands/graph-module';
38
- import secureTableProvisionCmd from './commands/secure-table-provision';
39
- import invitesModuleCmd from './commands/invites-module';
40
37
  import databaseProvisionModuleCmd from './commands/database-provision-module';
41
- import namespaceModuleCmd from './commands/namespace-module';
38
+ import configSecretsModuleCmd from './commands/config-secrets-module';
39
+ import rateLimitMetersModuleCmd from './commands/rate-limit-meters-module';
42
40
  import realtimeModuleCmd from './commands/realtime-module';
43
41
  import webauthnAuthModuleCmd from './commands/webauthn-auth-module';
42
+ import functionInvocationModuleCmd from './commands/function-invocation-module';
43
+ import functionModuleCmd from './commands/function-module';
44
+ import invitesModuleCmd from './commands/invites-module';
45
+ import namespaceModuleCmd from './commands/namespace-module';
44
46
  import computeLogModuleCmd from './commands/compute-log-module';
45
47
  import inferenceLogModuleCmd from './commands/inference-log-module';
46
48
  import storageLogModuleCmd from './commands/storage-log-module';
47
49
  import transferLogModuleCmd from './commands/transfer-log-module';
48
- import dbUsageModuleCmd from './commands/db-usage-module';
49
- import notificationsModuleCmd from './commands/notifications-module';
50
50
  import plansModuleCmd from './commands/plans-module';
51
- import hierarchyModuleCmd from './commands/hierarchy-module';
52
- import billingModuleCmd from './commands/billing-module';
53
51
  import billingProviderModuleCmd from './commands/billing-provider-module';
54
- import profilesModuleCmd from './commands/profiles-module';
52
+ import dbUsageModuleCmd from './commands/db-usage-module';
53
+ import hierarchyModuleCmd from './commands/hierarchy-module';
55
54
  import permissionsModuleCmd from './commands/permissions-module';
55
+ import notificationsModuleCmd from './commands/notifications-module';
56
+ import profilesModuleCmd from './commands/profiles-module';
57
+ import billingModuleCmd from './commands/billing-module';
56
58
  import relationProvisionCmd from './commands/relation-provision';
57
- import functionModuleCmd from './commands/function-module';
58
59
  import userAuthModuleCmd from './commands/user-auth-module';
59
60
  import agentModuleCmd from './commands/agent-module';
60
61
  import limitsModuleCmd from './commands/limits-module';
61
62
  import membershipsModuleCmd from './commands/memberships-module';
63
+ import entityTypeProvisionCmd from './commands/entity-type-provision';
62
64
  import storageModuleCmd from './commands/storage-module';
63
65
  import eventsModuleCmd from './commands/events-module';
64
- import entityTypeProvisionCmd from './commands/entity-type-provision';
65
66
  import resolveBlueprintFieldCmd from './commands/resolve-blueprint-field';
66
67
  import resolveBlueprintTableCmd from './commands/resolve-blueprint-table';
67
68
  import constructBlueprintCmd from './commands/construct-blueprint';
@@ -94,45 +95,46 @@ const createCommandMap = () => ({
94
95
  'users-module': usersModuleCmd,
95
96
  'webauthn-credentials-module': webauthnCredentialsModuleCmd,
96
97
  'crypto-addresses-module': cryptoAddressesModuleCmd,
97
- 'identity-providers-module': identityProvidersModuleCmd,
98
98
  'denormalized-table-field': denormalizedTableFieldCmd,
99
+ 'identity-providers-module': identityProvidersModuleCmd,
99
100
  'rls-module': rlsModuleCmd,
100
101
  blueprint: blueprintCmd,
101
102
  'blueprint-template': blueprintTemplateCmd,
102
103
  'blueprint-construction': blueprintConstructionCmd,
103
104
  'crypto-auth-module': cryptoAuthModuleCmd,
104
- 'rate-limit-meters-module': rateLimitMetersModuleCmd,
105
105
  'sessions-module': sessionsModuleCmd,
106
- 'config-secrets-module': configSecretsModuleCmd,
106
+ 'secure-table-provision': secureTableProvisionCmd,
107
107
  'merkle-store-module': merkleStoreModuleCmd,
108
108
  'graph-module': graphModuleCmd,
109
- 'secure-table-provision': secureTableProvisionCmd,
110
- 'invites-module': invitesModuleCmd,
111
109
  'database-provision-module': databaseProvisionModuleCmd,
112
- 'namespace-module': namespaceModuleCmd,
110
+ 'config-secrets-module': configSecretsModuleCmd,
111
+ 'rate-limit-meters-module': rateLimitMetersModuleCmd,
113
112
  'realtime-module': realtimeModuleCmd,
114
113
  'webauthn-auth-module': webauthnAuthModuleCmd,
114
+ 'function-invocation-module': functionInvocationModuleCmd,
115
+ 'function-module': functionModuleCmd,
116
+ 'invites-module': invitesModuleCmd,
117
+ 'namespace-module': namespaceModuleCmd,
115
118
  'compute-log-module': computeLogModuleCmd,
116
119
  'inference-log-module': inferenceLogModuleCmd,
117
120
  'storage-log-module': storageLogModuleCmd,
118
121
  'transfer-log-module': transferLogModuleCmd,
119
- 'db-usage-module': dbUsageModuleCmd,
120
- 'notifications-module': notificationsModuleCmd,
121
122
  'plans-module': plansModuleCmd,
122
- 'hierarchy-module': hierarchyModuleCmd,
123
- 'billing-module': billingModuleCmd,
124
123
  'billing-provider-module': billingProviderModuleCmd,
125
- 'profiles-module': profilesModuleCmd,
124
+ 'db-usage-module': dbUsageModuleCmd,
125
+ 'hierarchy-module': hierarchyModuleCmd,
126
126
  'permissions-module': permissionsModuleCmd,
127
+ 'notifications-module': notificationsModuleCmd,
128
+ 'profiles-module': profilesModuleCmd,
129
+ 'billing-module': billingModuleCmd,
127
130
  'relation-provision': relationProvisionCmd,
128
- 'function-module': functionModuleCmd,
129
131
  'user-auth-module': userAuthModuleCmd,
130
132
  'agent-module': agentModuleCmd,
131
133
  'limits-module': limitsModuleCmd,
132
134
  'memberships-module': membershipsModuleCmd,
135
+ 'entity-type-provision': entityTypeProvisionCmd,
133
136
  'storage-module': storageModuleCmd,
134
137
  'events-module': eventsModuleCmd,
135
- 'entity-type-provision': entityTypeProvisionCmd,
136
138
  'resolve-blueprint-field': resolveBlueprintFieldCmd,
137
139
  'resolve-blueprint-table': resolveBlueprintTableCmd,
138
140
  'construct-blueprint': constructBlueprintCmd,
@@ -146,7 +148,7 @@ const createCommandMap = () => ({
146
148
  'provision-relation': provisionRelationCmd,
147
149
  'provision-bucket': provisionBucketCmd,
148
150
  });
149
- const usage = "\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n default-ids-module defaultIdsModule CRUD operations\n membership-types-module membershipTypesModule CRUD operations\n user-state-module userStateModule CRUD operations\n session-secrets-module sessionSecretsModule CRUD operations\n config-secrets-org-module configSecretsOrgModule CRUD operations\n devices-module devicesModule CRUD operations\n i-18-n-module i18NModule CRUD operations\n user-credentials-module userCredentialsModule CRUD operations\n user-settings-module userSettingsModule CRUD operations\n config-secrets-user-module configSecretsUserModule CRUD operations\n connected-accounts-module connectedAccountsModule CRUD operations\n emails-module emailsModule CRUD operations\n phone-numbers-module phoneNumbersModule CRUD operations\n rate-limits-module rateLimitsModule CRUD operations\n users-module usersModule CRUD operations\n webauthn-credentials-module webauthnCredentialsModule CRUD operations\n crypto-addresses-module cryptoAddressesModule CRUD operations\n identity-providers-module identityProvidersModule CRUD operations\n denormalized-table-field denormalizedTableField CRUD operations\n rls-module rlsModule CRUD operations\n blueprint blueprint CRUD operations\n blueprint-template blueprintTemplate CRUD operations\n blueprint-construction blueprintConstruction CRUD operations\n crypto-auth-module cryptoAuthModule CRUD operations\n rate-limit-meters-module rateLimitMetersModule CRUD operations\n sessions-module sessionsModule CRUD operations\n config-secrets-module configSecretsModule CRUD operations\n merkle-store-module merkleStoreModule CRUD operations\n graph-module graphModule CRUD operations\n secure-table-provision secureTableProvision CRUD operations\n invites-module invitesModule CRUD operations\n database-provision-module databaseProvisionModule CRUD operations\n namespace-module namespaceModule CRUD operations\n realtime-module realtimeModule CRUD operations\n webauthn-auth-module webauthnAuthModule CRUD operations\n compute-log-module computeLogModule CRUD operations\n inference-log-module inferenceLogModule CRUD operations\n storage-log-module storageLogModule CRUD operations\n transfer-log-module transferLogModule CRUD operations\n db-usage-module dbUsageModule CRUD operations\n notifications-module notificationsModule CRUD operations\n plans-module plansModule CRUD operations\n hierarchy-module hierarchyModule CRUD operations\n billing-module billingModule CRUD operations\n billing-provider-module billingProviderModule CRUD operations\n profiles-module profilesModule CRUD operations\n permissions-module permissionsModule CRUD operations\n relation-provision relationProvision CRUD operations\n function-module functionModule CRUD operations\n user-auth-module userAuthModule CRUD operations\n agent-module agentModule CRUD operations\n limits-module limitsModule CRUD operations\n memberships-module membershipsModule CRUD operations\n storage-module storageModule CRUD operations\n events-module eventsModule CRUD operations\n entity-type-provision entityTypeProvision CRUD operations\n resolve-blueprint-field Resolves a field_name within a given table_id to a field_id. Throws if no match is found. Used by construct_blueprint to translate user-authored field names (e.g. \"location\") into field UUIDs for downstream provisioning procedures. table_id must already be resolved (via resolve_blueprint_table) before calling this.\n resolve-blueprint-table Resolves a table_name (with optional schema_name) to a table_id. Resolution order: (1) if schema_name provided, exact lookup via metaschema_public.schema.name + metaschema_public.table; (2) check local table_map (tables created in current blueprint); (3) search metaschema_public.table by name across all schemas; (4) if multiple matches, throw ambiguous error asking for schema_name; (5) if no match, throw not-found error.\n construct-blueprint 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 \u2014 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[] \u2014 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.\n provision-full-text-search Creates a full-text search configuration on a table. Accepts a jsonb definition with field (tsvector column name) and sources (array of {field, weight, lang}). Graceful: skips if FTS config already exists for the same (table_id, field_id). Returns the fts_id.\n provision-index Creates an index on a table. Accepts a jsonb definition with columns (array of names or single column string), access_method (default BTREE), is_unique, op_classes, options, and name (auto-generated if omitted). Graceful: skips if an index with the same (table_id, field_ids, access_method) already exists. Returns the index_id.\n provision-check-constraint Creates a check constraint on a table from a $type + data blueprint definition. Supports: CheckOneOf (enum validation via = ANY(ARRAY[...])), CheckGreaterThan (single-column > value or cross-column), CheckLessThan (single-column < value or cross-column), CheckNotEqual (cross-column inequality). Builds AST expressions via ast_helpers and inserts into metaschema_public.check_constraint. Graceful: skips if a constraint with the same name already exists.\n provision-unique-constraint Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists.\n copy-template-to-blueprint Creates a new blueprint by copying a template definition. Checks visibility: owners can always copy their own templates, others require public visibility. Increments the template copy_count. Returns the new blueprint ID.\n provision-spatial-relation Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row declaring a spatial predicate between two geometry/geography columns (owner and target). Called from construct_blueprint when a relation entry has $type=RelationSpatial. Graceful: re-running with the same (source_table_id, name) returns the existing id without modifying the row. Operator whitelist and st_dwithin \u2194 param_name pairing are enforced by the spatial_relation table CHECKs. Both fields must already exist \u2014 this is a metadata-only insert.\n provision-table Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields).\n provision-relation Composable relation provisioning: creates FK fields, indexes, unique constraints, and junction tables depending on the relation_type. Supports RelationBelongsTo, RelationHasOne, RelationHasMany, and RelationManyToMany. ManyToMany uses provision_table() internally for junction table creation with full node/grant/policy support. All operations are graceful (skip existing). Returns (out_field_id, out_junction_table_id, out_source_field_id, out_target_field_id).\n provision-bucket Provision an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then creates and configures\nthe S3 bucket with the appropriate privacy policies, CORS rules,\nand lifecycle settings.\n\n --help, -h Show this help message\n --version, -v Show version\n";
151
+ const usage = "\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n default-ids-module defaultIdsModule CRUD operations\n membership-types-module membershipTypesModule CRUD operations\n user-state-module userStateModule CRUD operations\n session-secrets-module sessionSecretsModule CRUD operations\n config-secrets-org-module configSecretsOrgModule CRUD operations\n devices-module devicesModule CRUD operations\n i-18-n-module i18NModule CRUD operations\n user-credentials-module userCredentialsModule CRUD operations\n user-settings-module userSettingsModule CRUD operations\n config-secrets-user-module configSecretsUserModule CRUD operations\n connected-accounts-module connectedAccountsModule CRUD operations\n emails-module emailsModule CRUD operations\n phone-numbers-module phoneNumbersModule CRUD operations\n rate-limits-module rateLimitsModule CRUD operations\n users-module usersModule CRUD operations\n webauthn-credentials-module webauthnCredentialsModule CRUD operations\n crypto-addresses-module cryptoAddressesModule CRUD operations\n denormalized-table-field denormalizedTableField CRUD operations\n identity-providers-module identityProvidersModule CRUD operations\n rls-module rlsModule CRUD operations\n blueprint blueprint CRUD operations\n blueprint-template blueprintTemplate CRUD operations\n blueprint-construction blueprintConstruction CRUD operations\n crypto-auth-module cryptoAuthModule CRUD operations\n sessions-module sessionsModule CRUD operations\n secure-table-provision secureTableProvision CRUD operations\n merkle-store-module merkleStoreModule CRUD operations\n graph-module graphModule CRUD operations\n database-provision-module databaseProvisionModule CRUD operations\n config-secrets-module configSecretsModule CRUD operations\n rate-limit-meters-module rateLimitMetersModule CRUD operations\n realtime-module realtimeModule CRUD operations\n webauthn-auth-module webauthnAuthModule CRUD operations\n function-invocation-module functionInvocationModule CRUD operations\n function-module functionModule CRUD operations\n invites-module invitesModule CRUD operations\n namespace-module namespaceModule CRUD operations\n compute-log-module computeLogModule CRUD operations\n inference-log-module inferenceLogModule CRUD operations\n storage-log-module storageLogModule CRUD operations\n transfer-log-module transferLogModule CRUD operations\n plans-module plansModule CRUD operations\n billing-provider-module billingProviderModule CRUD operations\n db-usage-module dbUsageModule CRUD operations\n hierarchy-module hierarchyModule CRUD operations\n permissions-module permissionsModule CRUD operations\n notifications-module notificationsModule CRUD operations\n profiles-module profilesModule CRUD operations\n billing-module billingModule CRUD operations\n relation-provision relationProvision CRUD operations\n user-auth-module userAuthModule CRUD operations\n agent-module agentModule CRUD operations\n limits-module limitsModule CRUD operations\n memberships-module membershipsModule CRUD operations\n entity-type-provision entityTypeProvision CRUD operations\n storage-module storageModule CRUD operations\n events-module eventsModule CRUD operations\n resolve-blueprint-field Resolves a field_name within a given table_id to a field_id. Throws if no match is found. Used by construct_blueprint to translate user-authored field names (e.g. \"location\") into field UUIDs for downstream provisioning procedures. table_id must already be resolved (via resolve_blueprint_table) before calling this.\n resolve-blueprint-table Resolves a table_name (with optional schema_name) to a table_id. Resolution order: (1) if schema_name provided, exact lookup via metaschema_public.schema.name + metaschema_public.table; (2) check local table_map (tables created in current blueprint); (3) search metaschema_public.table by name across all schemas; (4) if multiple matches, throw ambiguous error asking for schema_name; (5) if no match, throw not-found error.\n construct-blueprint 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 \u2014 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[] \u2014 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.\n provision-full-text-search Creates a full-text search configuration on a table. Accepts a jsonb definition with field (tsvector column name) and sources (array of {field, weight, lang}). Graceful: skips if FTS config already exists for the same (table_id, field_id). Returns the fts_id.\n provision-index Creates an index on a table. Accepts a jsonb definition with columns (array of names or single column string), access_method (default BTREE), is_unique, op_classes, options, and name (auto-generated if omitted). Graceful: skips if an index with the same (table_id, field_ids, access_method) already exists. Returns the index_id.\n provision-check-constraint Creates a check constraint on a table from a $type + data blueprint definition. Supports: CheckOneOf (enum validation via = ANY(ARRAY[...])), CheckGreaterThan (single-column > value or cross-column), CheckLessThan (single-column < value or cross-column), CheckNotEqual (cross-column inequality). Builds AST expressions via ast_helpers and inserts into metaschema_public.check_constraint. Graceful: skips if a constraint with the same name already exists.\n provision-unique-constraint Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists.\n copy-template-to-blueprint Creates a new blueprint by copying a template definition. Checks visibility: owners can always copy their own templates, others require public visibility. Increments the template copy_count. Returns the new blueprint ID.\n provision-spatial-relation Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row declaring a spatial predicate between two geometry/geography columns (owner and target). Called from construct_blueprint when a relation entry has $type=RelationSpatial. Graceful: re-running with the same (source_table_id, name) returns the existing id without modifying the row. Operator whitelist and st_dwithin \u2194 param_name pairing are enforced by the spatial_relation table CHECKs. Both fields must already exist \u2014 this is a metadata-only insert.\n provision-table Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields).\n provision-relation Composable relation provisioning: creates FK fields, indexes, unique constraints, and junction tables depending on the relation_type. Supports RelationBelongsTo, RelationHasOne, RelationHasMany, and RelationManyToMany. ManyToMany uses provision_table() internally for junction table creation with full node/grant/policy support. All operations are graceful (skip existing). Returns (out_field_id, out_junction_table_id, out_source_field_id, out_target_field_id).\n provision-bucket Provision an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then creates and configures\nthe S3 bucket with the appropriate privacy policies, CORS rules,\nand lifecycle settings.\n\n --help, -h Show this help message\n --version, -v Show version\n";
150
152
  export const commands = async (argv, prompter, options) => {
151
153
  if (argv.help || argv.h) {
152
154
  console.log(usage);
@@ -17,45 +17,46 @@ export declare function getClient(contextName?: string): {
17
17
  usersModule: import("..").UsersModuleModel;
18
18
  webauthnCredentialsModule: import("..").WebauthnCredentialsModuleModel;
19
19
  cryptoAddressesModule: import("..").CryptoAddressesModuleModel;
20
- identityProvidersModule: import("..").IdentityProvidersModuleModel;
21
20
  denormalizedTableField: import("..").DenormalizedTableFieldModel;
21
+ identityProvidersModule: import("..").IdentityProvidersModuleModel;
22
22
  rlsModule: import("..").RlsModuleModel;
23
23
  blueprint: import("..").BlueprintModel;
24
24
  blueprintTemplate: import("..").BlueprintTemplateModel;
25
25
  blueprintConstruction: import("..").BlueprintConstructionModel;
26
26
  cryptoAuthModule: import("..").CryptoAuthModuleModel;
27
- rateLimitMetersModule: import("..").RateLimitMetersModuleModel;
28
27
  sessionsModule: import("..").SessionsModuleModel;
29
- configSecretsModule: import("..").ConfigSecretsModuleModel;
28
+ secureTableProvision: import("..").SecureTableProvisionModel;
30
29
  merkleStoreModule: import("..").MerkleStoreModuleModel;
31
30
  graphModule: import("..").GraphModuleModel;
32
- secureTableProvision: import("..").SecureTableProvisionModel;
33
- invitesModule: import("..").InvitesModuleModel;
34
31
  databaseProvisionModule: import("..").DatabaseProvisionModuleModel;
35
- namespaceModule: import("..").NamespaceModuleModel;
32
+ configSecretsModule: import("..").ConfigSecretsModuleModel;
33
+ rateLimitMetersModule: import("..").RateLimitMetersModuleModel;
36
34
  realtimeModule: import("..").RealtimeModuleModel;
37
35
  webauthnAuthModule: import("..").WebauthnAuthModuleModel;
36
+ functionInvocationModule: import("..").FunctionInvocationModuleModel;
37
+ functionModule: import("..").FunctionModuleModel;
38
+ invitesModule: import("..").InvitesModuleModel;
39
+ namespaceModule: import("..").NamespaceModuleModel;
38
40
  computeLogModule: import("..").ComputeLogModuleModel;
39
41
  inferenceLogModule: import("..").InferenceLogModuleModel;
40
42
  storageLogModule: import("..").StorageLogModuleModel;
41
43
  transferLogModule: import("..").TransferLogModuleModel;
42
- dbUsageModule: import("..").DbUsageModuleModel;
43
- notificationsModule: import("..").NotificationsModuleModel;
44
44
  plansModule: import("..").PlansModuleModel;
45
- hierarchyModule: import("..").HierarchyModuleModel;
46
- billingModule: import("..").BillingModuleModel;
47
45
  billingProviderModule: import("..").BillingProviderModuleModel;
48
- profilesModule: import("..").ProfilesModuleModel;
46
+ dbUsageModule: import("..").DbUsageModuleModel;
47
+ hierarchyModule: import("..").HierarchyModuleModel;
49
48
  permissionsModule: import("..").PermissionsModuleModel;
49
+ notificationsModule: import("..").NotificationsModuleModel;
50
+ profilesModule: import("..").ProfilesModuleModel;
51
+ billingModule: import("..").BillingModuleModel;
50
52
  relationProvision: import("..").RelationProvisionModel;
51
- functionModule: import("..").FunctionModuleModel;
52
53
  userAuthModule: import("..").UserAuthModuleModel;
53
54
  agentModule: import("..").AgentModuleModel;
54
55
  limitsModule: import("..").LimitsModuleModel;
55
56
  membershipsModule: import("..").MembershipsModuleModel;
57
+ entityTypeProvision: import("..").EntityTypeProvisionModel;
56
58
  storageModule: import("..").StorageModuleModel;
57
59
  eventsModule: import("..").EventsModuleModel;
58
- entityTypeProvision: import("..").EntityTypeProvisionModel;
59
60
  query: {
60
61
  resolveBlueprintField: (args: import("../orm/query").ResolveBlueprintFieldVariables, options?: {
61
62
  select?: Record<string, unknown>;
@@ -16,45 +16,46 @@ import { RateLimitsModuleModel } from './models/rateLimitsModule';
16
16
  import { UsersModuleModel } from './models/usersModule';
17
17
  import { WebauthnCredentialsModuleModel } from './models/webauthnCredentialsModule';
18
18
  import { CryptoAddressesModuleModel } from './models/cryptoAddressesModule';
19
- import { IdentityProvidersModuleModel } from './models/identityProvidersModule';
20
19
  import { DenormalizedTableFieldModel } from './models/denormalizedTableField';
20
+ import { IdentityProvidersModuleModel } from './models/identityProvidersModule';
21
21
  import { RlsModuleModel } from './models/rlsModule';
22
22
  import { BlueprintModel } from './models/blueprint';
23
23
  import { BlueprintTemplateModel } from './models/blueprintTemplate';
24
24
  import { BlueprintConstructionModel } from './models/blueprintConstruction';
25
25
  import { CryptoAuthModuleModel } from './models/cryptoAuthModule';
26
- import { RateLimitMetersModuleModel } from './models/rateLimitMetersModule';
27
26
  import { SessionsModuleModel } from './models/sessionsModule';
28
- import { ConfigSecretsModuleModel } from './models/configSecretsModule';
27
+ import { SecureTableProvisionModel } from './models/secureTableProvision';
29
28
  import { MerkleStoreModuleModel } from './models/merkleStoreModule';
30
29
  import { GraphModuleModel } from './models/graphModule';
31
- import { SecureTableProvisionModel } from './models/secureTableProvision';
32
- import { InvitesModuleModel } from './models/invitesModule';
33
30
  import { DatabaseProvisionModuleModel } from './models/databaseProvisionModule';
34
- import { NamespaceModuleModel } from './models/namespaceModule';
31
+ import { ConfigSecretsModuleModel } from './models/configSecretsModule';
32
+ import { RateLimitMetersModuleModel } from './models/rateLimitMetersModule';
35
33
  import { RealtimeModuleModel } from './models/realtimeModule';
36
34
  import { WebauthnAuthModuleModel } from './models/webauthnAuthModule';
35
+ import { FunctionInvocationModuleModel } from './models/functionInvocationModule';
36
+ import { FunctionModuleModel } from './models/functionModule';
37
+ import { InvitesModuleModel } from './models/invitesModule';
38
+ import { NamespaceModuleModel } from './models/namespaceModule';
37
39
  import { ComputeLogModuleModel } from './models/computeLogModule';
38
40
  import { InferenceLogModuleModel } from './models/inferenceLogModule';
39
41
  import { StorageLogModuleModel } from './models/storageLogModule';
40
42
  import { TransferLogModuleModel } from './models/transferLogModule';
41
- import { DbUsageModuleModel } from './models/dbUsageModule';
42
- import { NotificationsModuleModel } from './models/notificationsModule';
43
43
  import { PlansModuleModel } from './models/plansModule';
44
- import { HierarchyModuleModel } from './models/hierarchyModule';
45
- import { BillingModuleModel } from './models/billingModule';
46
44
  import { BillingProviderModuleModel } from './models/billingProviderModule';
47
- import { ProfilesModuleModel } from './models/profilesModule';
45
+ import { DbUsageModuleModel } from './models/dbUsageModule';
46
+ import { HierarchyModuleModel } from './models/hierarchyModule';
48
47
  import { PermissionsModuleModel } from './models/permissionsModule';
48
+ import { NotificationsModuleModel } from './models/notificationsModule';
49
+ import { ProfilesModuleModel } from './models/profilesModule';
50
+ import { BillingModuleModel } from './models/billingModule';
49
51
  import { RelationProvisionModel } from './models/relationProvision';
50
- import { FunctionModuleModel } from './models/functionModule';
51
52
  import { UserAuthModuleModel } from './models/userAuthModule';
52
53
  import { AgentModuleModel } from './models/agentModule';
53
54
  import { LimitsModuleModel } from './models/limitsModule';
54
55
  import { MembershipsModuleModel } from './models/membershipsModule';
56
+ import { EntityTypeProvisionModel } from './models/entityTypeProvision';
55
57
  import { StorageModuleModel } from './models/storageModule';
56
58
  import { EventsModuleModel } from './models/eventsModule';
57
- import { EntityTypeProvisionModel } from './models/entityTypeProvision';
58
59
  export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client';
59
60
  export { GraphQLRequestError, FetchAdapter } from './client';
60
61
  export { QueryBuilder } from './query-builder';
@@ -103,45 +104,46 @@ export declare function createClient(config: OrmClientConfig): {
103
104
  usersModule: UsersModuleModel;
104
105
  webauthnCredentialsModule: WebauthnCredentialsModuleModel;
105
106
  cryptoAddressesModule: CryptoAddressesModuleModel;
106
- identityProvidersModule: IdentityProvidersModuleModel;
107
107
  denormalizedTableField: DenormalizedTableFieldModel;
108
+ identityProvidersModule: IdentityProvidersModuleModel;
108
109
  rlsModule: RlsModuleModel;
109
110
  blueprint: BlueprintModel;
110
111
  blueprintTemplate: BlueprintTemplateModel;
111
112
  blueprintConstruction: BlueprintConstructionModel;
112
113
  cryptoAuthModule: CryptoAuthModuleModel;
113
- rateLimitMetersModule: RateLimitMetersModuleModel;
114
114
  sessionsModule: SessionsModuleModel;
115
- configSecretsModule: ConfigSecretsModuleModel;
115
+ secureTableProvision: SecureTableProvisionModel;
116
116
  merkleStoreModule: MerkleStoreModuleModel;
117
117
  graphModule: GraphModuleModel;
118
- secureTableProvision: SecureTableProvisionModel;
119
- invitesModule: InvitesModuleModel;
120
118
  databaseProvisionModule: DatabaseProvisionModuleModel;
121
- namespaceModule: NamespaceModuleModel;
119
+ configSecretsModule: ConfigSecretsModuleModel;
120
+ rateLimitMetersModule: RateLimitMetersModuleModel;
122
121
  realtimeModule: RealtimeModuleModel;
123
122
  webauthnAuthModule: WebauthnAuthModuleModel;
123
+ functionInvocationModule: FunctionInvocationModuleModel;
124
+ functionModule: FunctionModuleModel;
125
+ invitesModule: InvitesModuleModel;
126
+ namespaceModule: NamespaceModuleModel;
124
127
  computeLogModule: ComputeLogModuleModel;
125
128
  inferenceLogModule: InferenceLogModuleModel;
126
129
  storageLogModule: StorageLogModuleModel;
127
130
  transferLogModule: TransferLogModuleModel;
128
- dbUsageModule: DbUsageModuleModel;
129
- notificationsModule: NotificationsModuleModel;
130
131
  plansModule: PlansModuleModel;
131
- hierarchyModule: HierarchyModuleModel;
132
- billingModule: BillingModuleModel;
133
132
  billingProviderModule: BillingProviderModuleModel;
134
- profilesModule: ProfilesModuleModel;
133
+ dbUsageModule: DbUsageModuleModel;
134
+ hierarchyModule: HierarchyModuleModel;
135
135
  permissionsModule: PermissionsModuleModel;
136
+ notificationsModule: NotificationsModuleModel;
137
+ profilesModule: ProfilesModuleModel;
138
+ billingModule: BillingModuleModel;
136
139
  relationProvision: RelationProvisionModel;
137
- functionModule: FunctionModuleModel;
138
140
  userAuthModule: UserAuthModuleModel;
139
141
  agentModule: AgentModuleModel;
140
142
  limitsModule: LimitsModuleModel;
141
143
  membershipsModule: MembershipsModuleModel;
144
+ entityTypeProvision: EntityTypeProvisionModel;
142
145
  storageModule: StorageModuleModel;
143
146
  eventsModule: EventsModuleModel;
144
- entityTypeProvision: EntityTypeProvisionModel;
145
147
  query: {
146
148
  resolveBlueprintField: (args: import("./query").ResolveBlueprintFieldVariables, options?: {
147
149
  select?: Record<string, unknown>;
@@ -21,45 +21,46 @@ import { RateLimitsModuleModel } from './models/rateLimitsModule';
21
21
  import { UsersModuleModel } from './models/usersModule';
22
22
  import { WebauthnCredentialsModuleModel } from './models/webauthnCredentialsModule';
23
23
  import { CryptoAddressesModuleModel } from './models/cryptoAddressesModule';
24
- import { IdentityProvidersModuleModel } from './models/identityProvidersModule';
25
24
  import { DenormalizedTableFieldModel } from './models/denormalizedTableField';
25
+ import { IdentityProvidersModuleModel } from './models/identityProvidersModule';
26
26
  import { RlsModuleModel } from './models/rlsModule';
27
27
  import { BlueprintModel } from './models/blueprint';
28
28
  import { BlueprintTemplateModel } from './models/blueprintTemplate';
29
29
  import { BlueprintConstructionModel } from './models/blueprintConstruction';
30
30
  import { CryptoAuthModuleModel } from './models/cryptoAuthModule';
31
- import { RateLimitMetersModuleModel } from './models/rateLimitMetersModule';
32
31
  import { SessionsModuleModel } from './models/sessionsModule';
33
- import { ConfigSecretsModuleModel } from './models/configSecretsModule';
32
+ import { SecureTableProvisionModel } from './models/secureTableProvision';
34
33
  import { MerkleStoreModuleModel } from './models/merkleStoreModule';
35
34
  import { GraphModuleModel } from './models/graphModule';
36
- import { SecureTableProvisionModel } from './models/secureTableProvision';
37
- import { InvitesModuleModel } from './models/invitesModule';
38
35
  import { DatabaseProvisionModuleModel } from './models/databaseProvisionModule';
39
- import { NamespaceModuleModel } from './models/namespaceModule';
36
+ import { ConfigSecretsModuleModel } from './models/configSecretsModule';
37
+ import { RateLimitMetersModuleModel } from './models/rateLimitMetersModule';
40
38
  import { RealtimeModuleModel } from './models/realtimeModule';
41
39
  import { WebauthnAuthModuleModel } from './models/webauthnAuthModule';
40
+ import { FunctionInvocationModuleModel } from './models/functionInvocationModule';
41
+ import { FunctionModuleModel } from './models/functionModule';
42
+ import { InvitesModuleModel } from './models/invitesModule';
43
+ import { NamespaceModuleModel } from './models/namespaceModule';
42
44
  import { ComputeLogModuleModel } from './models/computeLogModule';
43
45
  import { InferenceLogModuleModel } from './models/inferenceLogModule';
44
46
  import { StorageLogModuleModel } from './models/storageLogModule';
45
47
  import { TransferLogModuleModel } from './models/transferLogModule';
46
- import { DbUsageModuleModel } from './models/dbUsageModule';
47
- import { NotificationsModuleModel } from './models/notificationsModule';
48
48
  import { PlansModuleModel } from './models/plansModule';
49
- import { HierarchyModuleModel } from './models/hierarchyModule';
50
- import { BillingModuleModel } from './models/billingModule';
51
49
  import { BillingProviderModuleModel } from './models/billingProviderModule';
52
- import { ProfilesModuleModel } from './models/profilesModule';
50
+ import { DbUsageModuleModel } from './models/dbUsageModule';
51
+ import { HierarchyModuleModel } from './models/hierarchyModule';
53
52
  import { PermissionsModuleModel } from './models/permissionsModule';
53
+ import { NotificationsModuleModel } from './models/notificationsModule';
54
+ import { ProfilesModuleModel } from './models/profilesModule';
55
+ import { BillingModuleModel } from './models/billingModule';
54
56
  import { RelationProvisionModel } from './models/relationProvision';
55
- import { FunctionModuleModel } from './models/functionModule';
56
57
  import { UserAuthModuleModel } from './models/userAuthModule';
57
58
  import { AgentModuleModel } from './models/agentModule';
58
59
  import { LimitsModuleModel } from './models/limitsModule';
59
60
  import { MembershipsModuleModel } from './models/membershipsModule';
61
+ import { EntityTypeProvisionModel } from './models/entityTypeProvision';
60
62
  import { StorageModuleModel } from './models/storageModule';
61
63
  import { EventsModuleModel } from './models/eventsModule';
62
- import { EntityTypeProvisionModel } from './models/entityTypeProvision';
63
64
  import { createQueryOperations } from './query';
64
65
  import { createMutationOperations } from './mutation';
65
66
  export { GraphQLRequestError, FetchAdapter } from './client';
@@ -111,45 +112,46 @@ export function createClient(config) {
111
112
  usersModule: new UsersModuleModel(client),
112
113
  webauthnCredentialsModule: new WebauthnCredentialsModuleModel(client),
113
114
  cryptoAddressesModule: new CryptoAddressesModuleModel(client),
114
- identityProvidersModule: new IdentityProvidersModuleModel(client),
115
115
  denormalizedTableField: new DenormalizedTableFieldModel(client),
116
+ identityProvidersModule: new IdentityProvidersModuleModel(client),
116
117
  rlsModule: new RlsModuleModel(client),
117
118
  blueprint: new BlueprintModel(client),
118
119
  blueprintTemplate: new BlueprintTemplateModel(client),
119
120
  blueprintConstruction: new BlueprintConstructionModel(client),
120
121
  cryptoAuthModule: new CryptoAuthModuleModel(client),
121
- rateLimitMetersModule: new RateLimitMetersModuleModel(client),
122
122
  sessionsModule: new SessionsModuleModel(client),
123
- configSecretsModule: new ConfigSecretsModuleModel(client),
123
+ secureTableProvision: new SecureTableProvisionModel(client),
124
124
  merkleStoreModule: new MerkleStoreModuleModel(client),
125
125
  graphModule: new GraphModuleModel(client),
126
- secureTableProvision: new SecureTableProvisionModel(client),
127
- invitesModule: new InvitesModuleModel(client),
128
126
  databaseProvisionModule: new DatabaseProvisionModuleModel(client),
129
- namespaceModule: new NamespaceModuleModel(client),
127
+ configSecretsModule: new ConfigSecretsModuleModel(client),
128
+ rateLimitMetersModule: new RateLimitMetersModuleModel(client),
130
129
  realtimeModule: new RealtimeModuleModel(client),
131
130
  webauthnAuthModule: new WebauthnAuthModuleModel(client),
131
+ functionInvocationModule: new FunctionInvocationModuleModel(client),
132
+ functionModule: new FunctionModuleModel(client),
133
+ invitesModule: new InvitesModuleModel(client),
134
+ namespaceModule: new NamespaceModuleModel(client),
132
135
  computeLogModule: new ComputeLogModuleModel(client),
133
136
  inferenceLogModule: new InferenceLogModuleModel(client),
134
137
  storageLogModule: new StorageLogModuleModel(client),
135
138
  transferLogModule: new TransferLogModuleModel(client),
136
- dbUsageModule: new DbUsageModuleModel(client),
137
- notificationsModule: new NotificationsModuleModel(client),
138
139
  plansModule: new PlansModuleModel(client),
139
- hierarchyModule: new HierarchyModuleModel(client),
140
- billingModule: new BillingModuleModel(client),
141
140
  billingProviderModule: new BillingProviderModuleModel(client),
142
- profilesModule: new ProfilesModuleModel(client),
141
+ dbUsageModule: new DbUsageModuleModel(client),
142
+ hierarchyModule: new HierarchyModuleModel(client),
143
143
  permissionsModule: new PermissionsModuleModel(client),
144
+ notificationsModule: new NotificationsModuleModel(client),
145
+ profilesModule: new ProfilesModuleModel(client),
146
+ billingModule: new BillingModuleModel(client),
144
147
  relationProvision: new RelationProvisionModel(client),
145
- functionModule: new FunctionModuleModel(client),
146
148
  userAuthModule: new UserAuthModuleModel(client),
147
149
  agentModule: new AgentModuleModel(client),
148
150
  limitsModule: new LimitsModuleModel(client),
149
151
  membershipsModule: new MembershipsModuleModel(client),
152
+ entityTypeProvision: new EntityTypeProvisionModel(client),
150
153
  storageModule: new StorageModuleModel(client),
151
154
  eventsModule: new EventsModuleModel(client),
152
- entityTypeProvision: new EntityTypeProvisionModel(client),
153
155
  query: createQueryOperations(client),
154
156
  mutation: createMutationOperations(client),
155
157
  };