@constructive-sdk/cli 0.22.3 → 0.22.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (177) hide show
  1. package/admin/cli/commands/{app-achievement.d.ts → app-limit-warning.d.ts} +1 -1
  2. package/{public/cli/commands/app-step.js → admin/cli/commands/app-limit-warning.js} +58 -54
  3. package/{esm/admin/cli/commands/app-achievement.d.ts → admin/cli/commands/org-limit-warning.d.ts} +1 -1
  4. package/admin/cli/commands/{app-level.js → org-limit-warning.js} +66 -62
  5. package/admin/cli/commands.js +7 -15
  6. package/admin/cli/executor.d.ts +3 -15
  7. package/admin/orm/index.d.ts +6 -20
  8. package/admin/orm/index.js +6 -10
  9. package/admin/orm/input-types.d.ts +488 -768
  10. package/admin/orm/models/appLimitWarning.d.ts +54 -0
  11. package/{public/orm/models/secretsModule.js → admin/orm/models/appLimitWarning.js} +27 -27
  12. package/admin/orm/models/index.d.ts +3 -5
  13. package/admin/orm/models/index.js +7 -11
  14. package/admin/orm/models/orgLimitWarning.d.ts +54 -0
  15. package/admin/orm/models/{appAchievement.js → orgLimitWarning.js} +27 -27
  16. package/admin/orm/query/index.d.ts +1 -28
  17. package/admin/orm/query/index.js +0 -44
  18. package/{admin/cli/commands/app-step.d.ts → esm/admin/cli/commands/app-limit-warning.d.ts} +1 -1
  19. package/esm/{public/cli/commands/app-step.js → admin/cli/commands/app-limit-warning.js} +58 -54
  20. package/esm/admin/cli/commands/org-limit-warning.d.ts +8 -0
  21. package/esm/{public/cli/commands/app-level.js → admin/cli/commands/org-limit-warning.js} +66 -62
  22. package/esm/admin/cli/commands.js +7 -15
  23. package/esm/admin/cli/executor.d.ts +3 -15
  24. package/esm/admin/orm/index.d.ts +6 -20
  25. package/esm/admin/orm/index.js +6 -10
  26. package/esm/admin/orm/input-types.d.ts +488 -768
  27. package/esm/admin/orm/models/appLimitWarning.d.ts +54 -0
  28. package/esm/{public/orm/models/appAchievement.js → admin/orm/models/appLimitWarning.js} +25 -25
  29. package/esm/admin/orm/models/index.d.ts +3 -5
  30. package/esm/admin/orm/models/index.js +3 -5
  31. package/esm/admin/orm/models/orgLimitWarning.d.ts +54 -0
  32. package/esm/admin/orm/models/{appAchievement.js → orgLimitWarning.js} +25 -25
  33. package/esm/admin/orm/query/index.d.ts +1 -28
  34. package/esm/admin/orm/query/index.js +0 -44
  35. package/esm/public/cli/commands/app-limit-warning.d.ts +8 -0
  36. package/esm/{admin/cli/commands/app-step.js → public/cli/commands/app-limit-warning.js} +58 -54
  37. package/esm/public/cli/commands/construct-blueprint.js +1 -1
  38. package/esm/public/cli/commands/create-user-database.js +1 -1
  39. package/esm/public/cli/commands/embedding-chunk.js +66 -0
  40. package/esm/public/cli/commands/entity-type-provision.js +22 -0
  41. package/esm/{admin/cli/commands/app-level.d.ts → public/cli/commands/events-module.d.ts} +1 -1
  42. package/esm/public/cli/commands/{levels-module.js → events-module.js} +438 -152
  43. package/esm/public/cli/commands/limits-module.js +88 -0
  44. package/esm/public/cli/commands/org-limit-warning.d.ts +8 -0
  45. package/esm/{admin/cli/commands/app-level.js → public/cli/commands/org-limit-warning.js} +66 -62
  46. package/esm/public/cli/commands/partition.js +24 -24
  47. package/{admin/cli/commands/app-level-requirement.d.ts → esm/public/cli/commands/rate-limit-meters-module.d.ts} +1 -1
  48. package/esm/public/cli/commands/rate-limit-meters-module.js +448 -0
  49. package/esm/public/cli/commands/realtime-module.js +24 -24
  50. package/esm/public/cli/commands/user-state-module.d.ts +8 -0
  51. package/esm/public/cli/commands/{secrets-module.js → user-state-module.js} +8 -8
  52. package/esm/public/cli/commands.js +11 -17
  53. package/esm/public/cli/executor.d.ts +5 -16
  54. package/esm/public/orm/index.d.ts +10 -22
  55. package/esm/public/orm/index.js +10 -12
  56. package/esm/public/orm/input-types.d.ts +1024 -919
  57. package/esm/public/orm/input-types.js +3 -5
  58. package/esm/public/orm/models/appLimitWarning.d.ts +54 -0
  59. package/esm/{admin/orm/models/appLevel.js → public/orm/models/appLimitWarning.js} +25 -25
  60. package/esm/public/orm/models/eventsModule.d.ts +54 -0
  61. package/esm/public/orm/models/{levelsModule.js → eventsModule.js} +25 -25
  62. package/esm/public/orm/models/index.d.ts +5 -6
  63. package/esm/public/orm/models/index.js +5 -6
  64. package/esm/public/orm/models/orgLimitWarning.d.ts +54 -0
  65. package/esm/{admin/orm/models/appStep.js → public/orm/models/orgLimitWarning.js} +25 -25
  66. package/esm/public/orm/models/rateLimitMetersModule.d.ts +54 -0
  67. package/esm/{admin/orm/models/appLevelRequirement.js → public/orm/models/rateLimitMetersModule.js} +25 -25
  68. package/esm/public/orm/models/userStateModule.d.ts +54 -0
  69. package/esm/public/orm/models/userStateModule.js +100 -0
  70. package/esm/public/orm/mutation/index.d.ts +2 -2
  71. package/esm/public/orm/query/index.d.ts +1 -28
  72. package/esm/public/orm/query/index.js +0 -44
  73. package/package.json +4 -4
  74. package/public/cli/commands/app-limit-warning.d.ts +8 -0
  75. package/{admin/cli/commands/app-step.js → public/cli/commands/app-limit-warning.js} +58 -54
  76. package/public/cli/commands/construct-blueprint.js +1 -1
  77. package/public/cli/commands/create-user-database.js +1 -1
  78. package/public/cli/commands/embedding-chunk.js +66 -0
  79. package/public/cli/commands/entity-type-provision.js +22 -0
  80. package/{admin/cli/commands/app-level.d.ts → public/cli/commands/events-module.d.ts} +1 -1
  81. package/public/cli/commands/{levels-module.js → events-module.js} +438 -152
  82. package/public/cli/commands/limits-module.js +88 -0
  83. package/public/cli/commands/org-limit-warning.d.ts +8 -0
  84. package/public/cli/commands/{app-level.js → org-limit-warning.js} +66 -62
  85. package/public/cli/commands/partition.js +24 -24
  86. package/public/cli/commands/rate-limit-meters-module.d.ts +8 -0
  87. package/public/cli/commands/rate-limit-meters-module.js +450 -0
  88. package/public/cli/commands/realtime-module.js +24 -24
  89. package/public/cli/commands/user-state-module.d.ts +8 -0
  90. package/public/cli/commands/{secrets-module.js → user-state-module.js} +8 -8
  91. package/public/cli/commands.js +11 -17
  92. package/public/cli/executor.d.ts +5 -16
  93. package/public/orm/index.d.ts +10 -22
  94. package/public/orm/index.js +10 -12
  95. package/public/orm/input-types.d.ts +1024 -919
  96. package/public/orm/input-types.js +3 -5
  97. package/public/orm/models/appLimitWarning.d.ts +54 -0
  98. package/{admin/orm/models/appStep.js → public/orm/models/appLimitWarning.js} +27 -27
  99. package/public/orm/models/eventsModule.d.ts +54 -0
  100. package/public/orm/models/{levelsModule.js → eventsModule.js} +27 -27
  101. package/public/orm/models/index.d.ts +5 -6
  102. package/public/orm/models/index.js +13 -15
  103. package/public/orm/models/orgLimitWarning.d.ts +54 -0
  104. package/{admin/orm/models/appLevel.js → public/orm/models/orgLimitWarning.js} +27 -27
  105. package/public/orm/models/rateLimitMetersModule.d.ts +54 -0
  106. package/public/orm/models/{appAchievement.js → rateLimitMetersModule.js} +27 -27
  107. package/public/orm/models/userStateModule.d.ts +54 -0
  108. package/public/orm/models/userStateModule.js +104 -0
  109. package/public/orm/mutation/index.d.ts +2 -2
  110. package/public/orm/query/index.d.ts +1 -28
  111. package/public/orm/query/index.js +0 -44
  112. package/admin/cli/commands/app-achievement.js +0 -286
  113. package/admin/cli/commands/app-level-requirement.js +0 -328
  114. package/admin/cli/commands/steps-achieved.d.ts +0 -8
  115. package/admin/cli/commands/steps-achieved.js +0 -35
  116. package/admin/cli/commands/steps-required.d.ts +0 -8
  117. package/admin/cli/commands/steps-required.js +0 -54
  118. package/admin/orm/models/appAchievement.d.ts +0 -54
  119. package/admin/orm/models/appLevel.d.ts +0 -54
  120. package/admin/orm/models/appLevelRequirement.d.ts +0 -54
  121. package/admin/orm/models/appLevelRequirement.js +0 -104
  122. package/admin/orm/models/appStep.d.ts +0 -54
  123. package/esm/admin/cli/commands/app-achievement.js +0 -284
  124. package/esm/admin/cli/commands/app-level-requirement.d.ts +0 -8
  125. package/esm/admin/cli/commands/app-level-requirement.js +0 -326
  126. package/esm/admin/cli/commands/app-step.d.ts +0 -8
  127. package/esm/admin/cli/commands/steps-achieved.d.ts +0 -8
  128. package/esm/admin/cli/commands/steps-achieved.js +0 -33
  129. package/esm/admin/cli/commands/steps-required.d.ts +0 -8
  130. package/esm/admin/cli/commands/steps-required.js +0 -52
  131. package/esm/admin/orm/models/appAchievement.d.ts +0 -54
  132. package/esm/admin/orm/models/appLevel.d.ts +0 -54
  133. package/esm/admin/orm/models/appLevelRequirement.d.ts +0 -54
  134. package/esm/admin/orm/models/appStep.d.ts +0 -54
  135. package/esm/public/cli/commands/app-achievement.d.ts +0 -8
  136. package/esm/public/cli/commands/app-achievement.js +0 -284
  137. package/esm/public/cli/commands/app-level-requirement.d.ts +0 -8
  138. package/esm/public/cli/commands/app-level-requirement.js +0 -326
  139. package/esm/public/cli/commands/app-level.d.ts +0 -8
  140. package/esm/public/cli/commands/app-step.d.ts +0 -8
  141. package/esm/public/cli/commands/levels-module.d.ts +0 -8
  142. package/esm/public/cli/commands/secrets-module.d.ts +0 -8
  143. package/esm/public/cli/commands/steps-achieved.d.ts +0 -8
  144. package/esm/public/cli/commands/steps-achieved.js +0 -33
  145. package/esm/public/cli/commands/steps-required.d.ts +0 -8
  146. package/esm/public/cli/commands/steps-required.js +0 -52
  147. package/esm/public/orm/models/appAchievement.d.ts +0 -54
  148. package/esm/public/orm/models/appLevel.d.ts +0 -54
  149. package/esm/public/orm/models/appLevel.js +0 -100
  150. package/esm/public/orm/models/appLevelRequirement.d.ts +0 -54
  151. package/esm/public/orm/models/appLevelRequirement.js +0 -100
  152. package/esm/public/orm/models/appStep.d.ts +0 -54
  153. package/esm/public/orm/models/appStep.js +0 -100
  154. package/esm/public/orm/models/levelsModule.d.ts +0 -54
  155. package/esm/public/orm/models/secretsModule.d.ts +0 -54
  156. package/esm/public/orm/models/secretsModule.js +0 -100
  157. package/public/cli/commands/app-achievement.d.ts +0 -8
  158. package/public/cli/commands/app-achievement.js +0 -286
  159. package/public/cli/commands/app-level-requirement.d.ts +0 -8
  160. package/public/cli/commands/app-level-requirement.js +0 -328
  161. package/public/cli/commands/app-level.d.ts +0 -8
  162. package/public/cli/commands/app-step.d.ts +0 -8
  163. package/public/cli/commands/levels-module.d.ts +0 -8
  164. package/public/cli/commands/secrets-module.d.ts +0 -8
  165. package/public/cli/commands/steps-achieved.d.ts +0 -8
  166. package/public/cli/commands/steps-achieved.js +0 -35
  167. package/public/cli/commands/steps-required.d.ts +0 -8
  168. package/public/cli/commands/steps-required.js +0 -54
  169. package/public/orm/models/appAchievement.d.ts +0 -54
  170. package/public/orm/models/appLevel.d.ts +0 -54
  171. package/public/orm/models/appLevel.js +0 -104
  172. package/public/orm/models/appLevelRequirement.d.ts +0 -54
  173. package/public/orm/models/appLevelRequirement.js +0 -104
  174. package/public/orm/models/appStep.d.ts +0 -54
  175. package/public/orm/models/appStep.js +0 -104
  176. package/public/orm/models/levelsModule.d.ts +0 -54
  177. package/public/orm/models/secretsModule.d.ts +0 -54
@@ -12,7 +12,6 @@ import getAllRecordCmd from './commands/get-all-record';
12
12
  import appPermissionCmd from './commands/app-permission';
13
13
  import orgPermissionCmd from './commands/org-permission';
14
14
  import objectCmd from './commands/object';
15
- import appLevelRequirementCmd from './commands/app-level-requirement';
16
15
  import databaseCmd from './commands/database';
17
16
  import schemaCmd from './commands/schema';
18
17
  import tableCmd from './commands/table';
@@ -63,14 +62,14 @@ import denormalizedTableFieldCmd from './commands/denormalized-table-field';
63
62
  import emailsModuleCmd from './commands/emails-module';
64
63
  import encryptedSecretsModuleCmd from './commands/encrypted-secrets-module';
65
64
  import invitesModuleCmd from './commands/invites-module';
66
- import levelsModuleCmd from './commands/levels-module';
65
+ import eventsModuleCmd from './commands/events-module';
67
66
  import limitsModuleCmd from './commands/limits-module';
68
67
  import membershipTypesModuleCmd from './commands/membership-types-module';
69
68
  import membershipsModuleCmd from './commands/memberships-module';
70
69
  import permissionsModuleCmd from './commands/permissions-module';
71
70
  import phoneNumbersModuleCmd from './commands/phone-numbers-module';
72
71
  import profilesModuleCmd from './commands/profiles-module';
73
- import secretsModuleCmd from './commands/secrets-module';
72
+ import userStateModuleCmd from './commands/user-state-module';
74
73
  import sessionsModuleCmd from './commands/sessions-module';
75
74
  import userAuthModuleCmd from './commands/user-auth-module';
76
75
  import usersModuleCmd from './commands/users-module';
@@ -102,9 +101,7 @@ import appLimitCreditRedemptionCmd from './commands/app-limit-credit-redemption'
102
101
  import orgLimitCmd from './commands/org-limit';
103
102
  import orgLimitCreditCmd from './commands/org-limit-credit';
104
103
  import orgLimitAggregateCmd from './commands/org-limit-aggregate';
105
- import appStepCmd from './commands/app-step';
106
- import appAchievementCmd from './commands/app-achievement';
107
- import appLevelCmd from './commands/app-level';
104
+ import orgLimitWarningCmd from './commands/org-limit-warning';
108
105
  import emailCmd from './commands/email';
109
106
  import phoneNumberCmd from './commands/phone-number';
110
107
  import cryptoAddressCmd from './commands/crypto-address';
@@ -133,6 +130,7 @@ import devicesModuleCmd from './commands/devices-module';
133
130
  import nodeTypeRegistryCmd from './commands/node-type-registry';
134
131
  import appLimitDefaultCmd from './commands/app-limit-default';
135
132
  import orgLimitDefaultCmd from './commands/org-limit-default';
133
+ import appLimitWarningCmd from './commands/app-limit-warning';
136
134
  import userConnectedAccountCmd from './commands/user-connected-account';
137
135
  import commitCmd from './commands/commit';
138
136
  import pubkeySettingCmd from './commands/pubkey-setting';
@@ -144,6 +142,7 @@ import rlsSettingCmd from './commands/rls-setting';
144
142
  import appLimitEventCmd from './commands/app-limit-event';
145
143
  import orgLimitEventCmd from './commands/org-limit-event';
146
144
  import rlsModuleCmd from './commands/rls-module';
145
+ import rateLimitMetersModuleCmd from './commands/rate-limit-meters-module';
147
146
  import plansModuleCmd from './commands/plans-module';
148
147
  import sqlActionCmd from './commands/sql-action';
149
148
  import databaseSettingCmd from './commands/database-setting';
@@ -161,7 +160,6 @@ import currentIpAddressCmd from './commands/current-ip-address';
161
160
  import requireStepUpCmd from './commands/require-step-up';
162
161
  import appPermissionsGetPaddedMaskCmd from './commands/app-permissions-get-padded-mask';
163
162
  import orgPermissionsGetPaddedMaskCmd from './commands/org-permissions-get-padded-mask';
164
- import stepsAchievedCmd from './commands/steps-achieved';
165
163
  import revParseCmd from './commands/rev-parse';
166
164
  import resolveBlueprintFieldCmd from './commands/resolve-blueprint-field';
167
165
  import orgIsManagerOfCmd from './commands/org-is-manager-of';
@@ -175,7 +173,6 @@ import orgPermissionsGetByMaskCmd from './commands/org-permissions-get-by-mask';
175
173
  import getAllObjectsFromRootCmd from './commands/get-all-objects-from-root';
176
174
  import getPathObjectsFromRootCmd from './commands/get-path-objects-from-root';
177
175
  import getObjectAtPathCmd from './commands/get-object-at-path';
178
- import stepsRequiredCmd from './commands/steps-required';
179
176
  import currentUserCmd from './commands/current-user';
180
177
  import sendAccountDeletionEmailCmd from './commands/send-account-deletion-email';
181
178
  import signOutCmd from './commands/sign-out';
@@ -235,7 +232,6 @@ const createCommandMap = () => ({
235
232
  'app-permission': appPermissionCmd,
236
233
  'org-permission': orgPermissionCmd,
237
234
  object: objectCmd,
238
- 'app-level-requirement': appLevelRequirementCmd,
239
235
  database: databaseCmd,
240
236
  schema: schemaCmd,
241
237
  table: tableCmd,
@@ -286,14 +282,14 @@ const createCommandMap = () => ({
286
282
  'emails-module': emailsModuleCmd,
287
283
  'encrypted-secrets-module': encryptedSecretsModuleCmd,
288
284
  'invites-module': invitesModuleCmd,
289
- 'levels-module': levelsModuleCmd,
285
+ 'events-module': eventsModuleCmd,
290
286
  'limits-module': limitsModuleCmd,
291
287
  'membership-types-module': membershipTypesModuleCmd,
292
288
  'memberships-module': membershipsModuleCmd,
293
289
  'permissions-module': permissionsModuleCmd,
294
290
  'phone-numbers-module': phoneNumbersModuleCmd,
295
291
  'profiles-module': profilesModuleCmd,
296
- 'secrets-module': secretsModuleCmd,
292
+ 'user-state-module': userStateModuleCmd,
297
293
  'sessions-module': sessionsModuleCmd,
298
294
  'user-auth-module': userAuthModuleCmd,
299
295
  'users-module': usersModuleCmd,
@@ -325,9 +321,7 @@ const createCommandMap = () => ({
325
321
  'org-limit': orgLimitCmd,
326
322
  'org-limit-credit': orgLimitCreditCmd,
327
323
  'org-limit-aggregate': orgLimitAggregateCmd,
328
- 'app-step': appStepCmd,
329
- 'app-achievement': appAchievementCmd,
330
- 'app-level': appLevelCmd,
324
+ 'org-limit-warning': orgLimitWarningCmd,
331
325
  email: emailCmd,
332
326
  'phone-number': phoneNumberCmd,
333
327
  'crypto-address': cryptoAddressCmd,
@@ -356,6 +350,7 @@ const createCommandMap = () => ({
356
350
  'node-type-registry': nodeTypeRegistryCmd,
357
351
  'app-limit-default': appLimitDefaultCmd,
358
352
  'org-limit-default': orgLimitDefaultCmd,
353
+ 'app-limit-warning': appLimitWarningCmd,
359
354
  'user-connected-account': userConnectedAccountCmd,
360
355
  commit: commitCmd,
361
356
  'pubkey-setting': pubkeySettingCmd,
@@ -367,6 +362,7 @@ const createCommandMap = () => ({
367
362
  'app-limit-event': appLimitEventCmd,
368
363
  'org-limit-event': orgLimitEventCmd,
369
364
  'rls-module': rlsModuleCmd,
365
+ 'rate-limit-meters-module': rateLimitMetersModuleCmd,
370
366
  'plans-module': plansModuleCmd,
371
367
  'sql-action': sqlActionCmd,
372
368
  'database-setting': databaseSettingCmd,
@@ -384,7 +380,6 @@ const createCommandMap = () => ({
384
380
  'require-step-up': requireStepUpCmd,
385
381
  'app-permissions-get-padded-mask': appPermissionsGetPaddedMaskCmd,
386
382
  'org-permissions-get-padded-mask': orgPermissionsGetPaddedMaskCmd,
387
- 'steps-achieved': stepsAchievedCmd,
388
383
  'rev-parse': revParseCmd,
389
384
  'resolve-blueprint-field': resolveBlueprintFieldCmd,
390
385
  'org-is-manager-of': orgIsManagerOfCmd,
@@ -398,7 +393,6 @@ const createCommandMap = () => ({
398
393
  'get-all-objects-from-root': getAllObjectsFromRootCmd,
399
394
  'get-path-objects-from-root': getPathObjectsFromRootCmd,
400
395
  'get-object-at-path': getObjectAtPathCmd,
401
- 'steps-required': stepsRequiredCmd,
402
396
  'current-user': currentUserCmd,
403
397
  'send-account-deletion-email': sendAccountDeletionEmailCmd,
404
398
  'sign-out': signOutCmd,
@@ -450,7 +444,7 @@ const createCommandMap = () => ({
450
444
  'provision-table': provisionTableCmd,
451
445
  'provision-bucket': provisionBucketCmd,
452
446
  });
453
- const usage = "\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n org-get-managers-record orgGetManagersRecord CRUD operations\n org-get-subordinates-record orgGetSubordinatesRecord CRUD operations\n get-all-record getAllRecord CRUD operations\n app-permission appPermission CRUD operations\n org-permission orgPermission CRUD operations\n object object CRUD operations\n app-level-requirement appLevelRequirement CRUD operations\n database database CRUD operations\n schema schema CRUD operations\n table table CRUD operations\n check-constraint checkConstraint CRUD operations\n field field CRUD operations\n spatial-relation spatialRelation CRUD operations\n foreign-key-constraint foreignKeyConstraint CRUD operations\n full-text-search fullTextSearch CRUD operations\n index index CRUD operations\n policy policy CRUD operations\n primary-key-constraint primaryKeyConstraint CRUD operations\n table-grant tableGrant CRUD operations\n trigger trigger CRUD operations\n unique-constraint uniqueConstraint CRUD operations\n view view CRUD operations\n view-table viewTable CRUD operations\n view-grant viewGrant CRUD operations\n view-rule viewRule CRUD operations\n embedding-chunk embeddingChunk CRUD operations\n secure-table-provision secureTableProvision CRUD operations\n relation-provision relationProvision CRUD operations\n session-secrets-module sessionSecretsModule CRUD operations\n identity-providers-module identityProvidersModule CRUD operations\n realtime-module realtimeModule CRUD operations\n schema-grant schemaGrant CRUD operations\n default-privilege defaultPrivilege CRUD operations\n enum enum CRUD operations\n function function CRUD operations\n api-schema apiSchema CRUD operations\n api-module apiModule CRUD operations\n domain domain CRUD operations\n site-metadatum siteMetadatum CRUD operations\n site-module siteModule CRUD operations\n site-theme siteTheme CRUD operations\n cors-setting corsSetting CRUD operations\n trigger-function triggerFunction CRUD operations\n database-transfer databaseTransfer CRUD operations\n partition partition CRUD operations\n api api CRUD operations\n site site CRUD operations\n app app CRUD operations\n api-setting apiSetting CRUD operations\n connected-accounts-module connectedAccountsModule CRUD operations\n crypto-addresses-module cryptoAddressesModule CRUD operations\n crypto-auth-module cryptoAuthModule CRUD operations\n default-ids-module defaultIdsModule CRUD operations\n denormalized-table-field denormalizedTableField CRUD operations\n emails-module emailsModule CRUD operations\n encrypted-secrets-module encryptedSecretsModule CRUD operations\n invites-module invitesModule CRUD operations\n levels-module levelsModule CRUD operations\n limits-module limitsModule CRUD operations\n membership-types-module membershipTypesModule CRUD operations\n memberships-module membershipsModule CRUD operations\n permissions-module permissionsModule CRUD operations\n phone-numbers-module phoneNumbersModule CRUD operations\n profiles-module profilesModule CRUD operations\n secrets-module secretsModule CRUD operations\n sessions-module sessionsModule CRUD operations\n user-auth-module userAuthModule CRUD operations\n users-module usersModule CRUD operations\n blueprint blueprint CRUD operations\n blueprint-template blueprintTemplate CRUD operations\n blueprint-construction blueprintConstruction CRUD operations\n storage-module storageModule CRUD operations\n entity-type-provision entityTypeProvision CRUD operations\n webauthn-credentials-module webauthnCredentialsModule CRUD operations\n webauthn-auth-module webauthnAuthModule CRUD operations\n notifications-module notificationsModule CRUD operations\n database-provision-module databaseProvisionModule CRUD operations\n app-admin-grant appAdminGrant CRUD operations\n app-owner-grant appOwnerGrant CRUD operations\n app-grant appGrant CRUD operations\n org-membership orgMembership CRUD operations\n org-member orgMember CRUD operations\n org-admin-grant orgAdminGrant CRUD operations\n org-owner-grant orgOwnerGrant CRUD operations\n org-member-profile orgMemberProfile CRUD operations\n org-grant orgGrant CRUD operations\n org-chart-edge orgChartEdge CRUD operations\n org-chart-edge-grant orgChartEdgeGrant CRUD operations\n org-permission-default orgPermissionDefault CRUD operations\n app-limit appLimit CRUD operations\n app-limit-credit appLimitCredit CRUD operations\n app-limit-credit-code-item appLimitCreditCodeItem CRUD operations\n app-limit-credit-redemption appLimitCreditRedemption CRUD operations\n org-limit orgLimit CRUD operations\n org-limit-credit orgLimitCredit CRUD operations\n org-limit-aggregate orgLimitAggregate CRUD operations\n app-step appStep CRUD operations\n app-achievement appAchievement CRUD operations\n app-level appLevel CRUD operations\n email email CRUD operations\n phone-number phoneNumber CRUD operations\n crypto-address cryptoAddress CRUD operations\n webauthn-credential webauthnCredential CRUD operations\n app-invite appInvite CRUD operations\n app-claimed-invite appClaimedInvite CRUD operations\n org-invite orgInvite CRUD operations\n org-claimed-invite orgClaimedInvite CRUD operations\n audit-log auditLog CRUD operations\n agent-thread agentThread CRUD operations\n agent-message agentMessage CRUD operations\n agent-task agentTask CRUD operations\n role-type roleType CRUD operations\n identity-provider identityProvider CRUD operations\n ref ref CRUD operations\n store store CRUD operations\n app-permission-default appPermissionDefault CRUD operations\n app-limit-credit-code appLimitCreditCode CRUD operations\n app-limit-caps-default appLimitCapsDefault CRUD operations\n org-limit-caps-default orgLimitCapsDefault CRUD operations\n app-limit-cap appLimitCap CRUD operations\n org-limit-cap orgLimitCap CRUD operations\n membership-type membershipType CRUD operations\n migrate-file migrateFile CRUD operations\n devices-module devicesModule CRUD operations\n node-type-registry nodeTypeRegistry CRUD operations\n app-limit-default appLimitDefault CRUD operations\n org-limit-default orgLimitDefault CRUD operations\n user-connected-account userConnectedAccount CRUD operations\n commit commit CRUD operations\n pubkey-setting pubkeySetting CRUD operations\n rate-limits-module rateLimitsModule CRUD operations\n usage-snapshot usageSnapshot CRUD operations\n app-membership-default appMembershipDefault CRUD operations\n org-membership-default orgMembershipDefault CRUD operations\n rls-setting rlsSetting CRUD operations\n app-limit-event appLimitEvent CRUD operations\n org-limit-event orgLimitEvent CRUD operations\n rls-module rlsModule CRUD operations\n plans-module plansModule CRUD operations\n sql-action sqlAction CRUD operations\n database-setting databaseSetting CRUD operations\n billing-module billingModule CRUD operations\n ast-migration astMigration CRUD operations\n user user CRUD operations\n org-membership-setting orgMembershipSetting CRUD operations\n webauthn-setting webauthnSetting CRUD operations\n app-membership appMembership CRUD operations\n billing-provider-module billingProviderModule CRUD operations\n hierarchy-module hierarchyModule CRUD operations\n current-user-id currentUserId\n current-user-agent currentUserAgent\n current-ip-address currentIpAddress\n require-step-up requireStepUp\n app-permissions-get-padded-mask appPermissionsGetPaddedMask\n org-permissions-get-padded-mask orgPermissionsGetPaddedMask\n steps-achieved stepsAchieved\n rev-parse revParse\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 org-is-manager-of orgIsManagerOf\n app-permissions-get-mask appPermissionsGetMask\n org-permissions-get-mask orgPermissionsGetMask\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 app-permissions-get-mask-by-names appPermissionsGetMaskByNames\n org-permissions-get-mask-by-names orgPermissionsGetMaskByNames\n app-permissions-get-by-mask Reads and enables pagination through a set of `AppPermission`.\n org-permissions-get-by-mask Reads and enables pagination through a set of `OrgPermission`.\n get-all-objects-from-root Reads and enables pagination through a set of `Object`.\n get-path-objects-from-root Reads and enables pagination through a set of `Object`.\n get-object-at-path getObjectAtPath\n steps-required Reads and enables pagination through a set of `AppLevelRequirement`.\n current-user currentUser\n send-account-deletion-email sendAccountDeletionEmail\n sign-out signOut\n accept-database-transfer acceptDatabaseTransfer\n cancel-database-transfer cancelDatabaseTransfer\n reject-database-transfer rejectDatabaseTransfer\n disconnect-account disconnectAccount\n revoke-api-key revokeApiKey\n revoke-session revokeSession\n verify-password verifyPassword\n verify-totp verifyTotp\n submit-app-invite-code submitAppInviteCode\n submit-org-invite-code submitOrgInviteCode\n check-password checkPassword\n confirm-delete-account confirmDeleteAccount\n set-password setPassword\n verify-email verifyEmail\n freeze-objects freezeObjects\n init-empty-repo initEmptyRepo\n construct-blueprint Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Seven phases: (0) entity_type_provision for each membership_type entry \u2014 provisions entity tables, membership modules, and security, (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred), (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. 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-new-user provisionNewUser\n reset-password resetPassword\n remove-node-at-path removeNodeAtPath\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 bootstrap-user bootstrapUser\n set-field-order setFieldOrder\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 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 set-data-at-path setDataAtPath\n set-props-and-commit setPropsAndCommit\n provision-database-with-user provisionDatabaseWithUser\n insert-node-at-path insertNodeAtPath\n update-node-at-path updateNodeAtPath\n set-and-commit setAndCommit\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 apply-rls applyRls\n sign-in-cross-origin signInCrossOrigin\n create-user-database Creates a new user database with all required modules, permissions, and RLS policies.\n\nParameters:\n - database_name: Name for the new database (required)\n - owner_id: UUID of the owner user (required)\n - include_invites: Include invite system (default: true)\n - include_groups: Include group-level memberships (default: false)\n - include_levels: Include levels/achievements (default: false)\n - bitlen: Bit length for permission masks (default: 64)\n - tokens_expiration: Token expiration interval (default: 30 days)\n\nReturns the database_id UUID of the newly created database.\n\nExample usage:\n SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid);\n SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid, true, true); -- with invites and groups\n\n extend-token-expires extendTokenExpires\n create-api-key createApiKey\n send-verification-email sendVerificationEmail\n forgot-password forgotPassword\n sign-up signUp\n request-cross-origin-token requestCrossOriginToken\n sign-in signIn\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-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";
447
+ const usage = "\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n org-get-managers-record orgGetManagersRecord CRUD operations\n org-get-subordinates-record orgGetSubordinatesRecord CRUD operations\n get-all-record getAllRecord CRUD operations\n app-permission appPermission CRUD operations\n org-permission orgPermission CRUD operations\n object object CRUD operations\n database database CRUD operations\n schema schema CRUD operations\n table table CRUD operations\n check-constraint checkConstraint CRUD operations\n field field CRUD operations\n spatial-relation spatialRelation CRUD operations\n foreign-key-constraint foreignKeyConstraint CRUD operations\n full-text-search fullTextSearch CRUD operations\n index index CRUD operations\n policy policy CRUD operations\n primary-key-constraint primaryKeyConstraint CRUD operations\n table-grant tableGrant CRUD operations\n trigger trigger CRUD operations\n unique-constraint uniqueConstraint CRUD operations\n view view CRUD operations\n view-table viewTable CRUD operations\n view-grant viewGrant CRUD operations\n view-rule viewRule CRUD operations\n embedding-chunk embeddingChunk CRUD operations\n secure-table-provision secureTableProvision CRUD operations\n relation-provision relationProvision CRUD operations\n session-secrets-module sessionSecretsModule CRUD operations\n identity-providers-module identityProvidersModule CRUD operations\n realtime-module realtimeModule CRUD operations\n schema-grant schemaGrant CRUD operations\n default-privilege defaultPrivilege CRUD operations\n enum enum CRUD operations\n function function CRUD operations\n api-schema apiSchema CRUD operations\n api-module apiModule CRUD operations\n domain domain CRUD operations\n site-metadatum siteMetadatum CRUD operations\n site-module siteModule CRUD operations\n site-theme siteTheme CRUD operations\n cors-setting corsSetting CRUD operations\n trigger-function triggerFunction CRUD operations\n database-transfer databaseTransfer CRUD operations\n partition partition CRUD operations\n api api CRUD operations\n site site CRUD operations\n app app CRUD operations\n api-setting apiSetting CRUD operations\n connected-accounts-module connectedAccountsModule CRUD operations\n crypto-addresses-module cryptoAddressesModule CRUD operations\n crypto-auth-module cryptoAuthModule CRUD operations\n default-ids-module defaultIdsModule CRUD operations\n denormalized-table-field denormalizedTableField CRUD operations\n emails-module emailsModule CRUD operations\n encrypted-secrets-module encryptedSecretsModule CRUD operations\n invites-module invitesModule CRUD operations\n events-module eventsModule CRUD operations\n limits-module limitsModule CRUD operations\n membership-types-module membershipTypesModule CRUD operations\n memberships-module membershipsModule CRUD operations\n permissions-module permissionsModule CRUD operations\n phone-numbers-module phoneNumbersModule CRUD operations\n profiles-module profilesModule CRUD operations\n user-state-module userStateModule CRUD operations\n sessions-module sessionsModule CRUD operations\n user-auth-module userAuthModule CRUD operations\n users-module usersModule CRUD operations\n blueprint blueprint CRUD operations\n blueprint-template blueprintTemplate CRUD operations\n blueprint-construction blueprintConstruction CRUD operations\n storage-module storageModule CRUD operations\n entity-type-provision entityTypeProvision CRUD operations\n webauthn-credentials-module webauthnCredentialsModule CRUD operations\n webauthn-auth-module webauthnAuthModule CRUD operations\n notifications-module notificationsModule CRUD operations\n database-provision-module databaseProvisionModule CRUD operations\n app-admin-grant appAdminGrant CRUD operations\n app-owner-grant appOwnerGrant CRUD operations\n app-grant appGrant CRUD operations\n org-membership orgMembership CRUD operations\n org-member orgMember CRUD operations\n org-admin-grant orgAdminGrant CRUD operations\n org-owner-grant orgOwnerGrant CRUD operations\n org-member-profile orgMemberProfile CRUD operations\n org-grant orgGrant CRUD operations\n org-chart-edge orgChartEdge CRUD operations\n org-chart-edge-grant orgChartEdgeGrant CRUD operations\n org-permission-default orgPermissionDefault CRUD operations\n app-limit appLimit CRUD operations\n app-limit-credit appLimitCredit CRUD operations\n app-limit-credit-code-item appLimitCreditCodeItem CRUD operations\n app-limit-credit-redemption appLimitCreditRedemption CRUD operations\n org-limit orgLimit CRUD operations\n org-limit-credit orgLimitCredit CRUD operations\n org-limit-aggregate orgLimitAggregate CRUD operations\n org-limit-warning orgLimitWarning CRUD operations\n email email CRUD operations\n phone-number phoneNumber CRUD operations\n crypto-address cryptoAddress CRUD operations\n webauthn-credential webauthnCredential CRUD operations\n app-invite appInvite CRUD operations\n app-claimed-invite appClaimedInvite CRUD operations\n org-invite orgInvite CRUD operations\n org-claimed-invite orgClaimedInvite CRUD operations\n audit-log auditLog CRUD operations\n agent-thread agentThread CRUD operations\n agent-message agentMessage CRUD operations\n agent-task agentTask CRUD operations\n role-type roleType CRUD operations\n identity-provider identityProvider CRUD operations\n ref ref CRUD operations\n store store CRUD operations\n app-permission-default appPermissionDefault CRUD operations\n app-limit-credit-code appLimitCreditCode CRUD operations\n app-limit-caps-default appLimitCapsDefault CRUD operations\n org-limit-caps-default orgLimitCapsDefault CRUD operations\n app-limit-cap appLimitCap CRUD operations\n org-limit-cap orgLimitCap CRUD operations\n membership-type membershipType CRUD operations\n migrate-file migrateFile CRUD operations\n devices-module devicesModule CRUD operations\n node-type-registry nodeTypeRegistry CRUD operations\n app-limit-default appLimitDefault CRUD operations\n org-limit-default orgLimitDefault CRUD operations\n app-limit-warning appLimitWarning CRUD operations\n user-connected-account userConnectedAccount CRUD operations\n commit commit CRUD operations\n pubkey-setting pubkeySetting CRUD operations\n rate-limits-module rateLimitsModule CRUD operations\n usage-snapshot usageSnapshot CRUD operations\n app-membership-default appMembershipDefault CRUD operations\n org-membership-default orgMembershipDefault CRUD operations\n rls-setting rlsSetting CRUD operations\n app-limit-event appLimitEvent CRUD operations\n org-limit-event orgLimitEvent CRUD operations\n rls-module rlsModule CRUD operations\n rate-limit-meters-module rateLimitMetersModule CRUD operations\n plans-module plansModule CRUD operations\n sql-action sqlAction CRUD operations\n database-setting databaseSetting CRUD operations\n billing-module billingModule CRUD operations\n ast-migration astMigration CRUD operations\n user user CRUD operations\n org-membership-setting orgMembershipSetting CRUD operations\n webauthn-setting webauthnSetting CRUD operations\n app-membership appMembership CRUD operations\n billing-provider-module billingProviderModule CRUD operations\n hierarchy-module hierarchyModule CRUD operations\n current-user-id currentUserId\n current-user-agent currentUserAgent\n current-ip-address currentIpAddress\n require-step-up requireStepUp\n app-permissions-get-padded-mask appPermissionsGetPaddedMask\n org-permissions-get-padded-mask orgPermissionsGetPaddedMask\n rev-parse revParse\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 org-is-manager-of orgIsManagerOf\n app-permissions-get-mask appPermissionsGetMask\n org-permissions-get-mask orgPermissionsGetMask\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 app-permissions-get-mask-by-names appPermissionsGetMaskByNames\n org-permissions-get-mask-by-names orgPermissionsGetMaskByNames\n app-permissions-get-by-mask Reads and enables pagination through a set of `AppPermission`.\n org-permissions-get-by-mask Reads and enables pagination through a set of `OrgPermission`.\n get-all-objects-from-root Reads and enables pagination through a set of `Object`.\n get-path-objects-from-root Reads and enables pagination through a set of `Object`.\n get-object-at-path getObjectAtPath\n current-user currentUser\n send-account-deletion-email sendAccountDeletionEmail\n sign-out signOut\n accept-database-transfer acceptDatabaseTransfer\n cancel-database-transfer cancelDatabaseTransfer\n reject-database-transfer rejectDatabaseTransfer\n disconnect-account disconnectAccount\n revoke-api-key revokeApiKey\n revoke-session revokeSession\n verify-password verifyPassword\n verify-totp verifyTotp\n submit-app-invite-code submitAppInviteCode\n submit-org-invite-code submitOrgInviteCode\n check-password checkPassword\n confirm-delete-account confirmDeleteAccount\n set-password setPassword\n verify-email verifyEmail\n freeze-objects freezeObjects\n init-empty-repo initEmptyRepo\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, (0.5) app-level storage, (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred), (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-new-user provisionNewUser\n reset-password resetPassword\n remove-node-at-path removeNodeAtPath\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 bootstrap-user bootstrapUser\n set-field-order setFieldOrder\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 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 set-data-at-path setDataAtPath\n set-props-and-commit setPropsAndCommit\n provision-database-with-user provisionDatabaseWithUser\n insert-node-at-path insertNodeAtPath\n update-node-at-path updateNodeAtPath\n set-and-commit setAndCommit\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 apply-rls applyRls\n sign-in-cross-origin signInCrossOrigin\n create-user-database Creates a new user database with all required modules, permissions, and RLS policies.\n\nParameters:\n - database_name: Name for the new database (required)\n - owner_id: UUID of the owner user (required)\n - include_invites: Include invite system (default: true)\n - include_groups: Include group-level memberships (default: false)\n - include_levels: Include events/analytics (default: false)\n - bitlen: Bit length for permission masks (default: 64)\n - tokens_expiration: Token expiration interval (default: 30 days)\n\nReturns the database_id UUID of the newly created database.\n\nExample usage:\n SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid);\n SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid, true, true); -- with invites and groups\n\n extend-token-expires extendTokenExpires\n create-api-key createApiKey\n send-verification-email sendVerificationEmail\n forgot-password forgotPassword\n sign-up signUp\n request-cross-origin-token requestCrossOriginToken\n sign-in signIn\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-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";
454
448
  export const commands = async (argv, prompter, options) => {
455
449
  if (argv.help || argv.h) {
456
450
  console.log(usage);
@@ -6,7 +6,6 @@ export declare function getClient(contextName?: string): {
6
6
  appPermission: import("..").AppPermissionModel;
7
7
  orgPermission: import("..").OrgPermissionModel;
8
8
  object: import("..").ObjectModel;
9
- appLevelRequirement: import("..").AppLevelRequirementModel;
10
9
  database: import("..").DatabaseModel;
11
10
  schema: import("..").SchemaModel;
12
11
  table: import("..").TableModel;
@@ -57,14 +56,14 @@ export declare function getClient(contextName?: string): {
57
56
  emailsModule: import("..").EmailsModuleModel;
58
57
  encryptedSecretsModule: import("..").EncryptedSecretsModuleModel;
59
58
  invitesModule: import("..").InvitesModuleModel;
60
- levelsModule: import("..").LevelsModuleModel;
59
+ eventsModule: import("..").EventsModuleModel;
61
60
  limitsModule: import("..").LimitsModuleModel;
62
61
  membershipTypesModule: import("..").MembershipTypesModuleModel;
63
62
  membershipsModule: import("..").MembershipsModuleModel;
64
63
  permissionsModule: import("..").PermissionsModuleModel;
65
64
  phoneNumbersModule: import("..").PhoneNumbersModuleModel;
66
65
  profilesModule: import("..").ProfilesModuleModel;
67
- secretsModule: import("..").SecretsModuleModel;
66
+ userStateModule: import("..").UserStateModuleModel;
68
67
  sessionsModule: import("..").SessionsModuleModel;
69
68
  userAuthModule: import("..").UserAuthModuleModel;
70
69
  usersModule: import("..").UsersModuleModel;
@@ -96,9 +95,7 @@ export declare function getClient(contextName?: string): {
96
95
  orgLimit: import("..").OrgLimitModel;
97
96
  orgLimitCredit: import("..").OrgLimitCreditModel;
98
97
  orgLimitAggregate: import("..").OrgLimitAggregateModel;
99
- appStep: import("..").AppStepModel;
100
- appAchievement: import("..").AppAchievementModel;
101
- appLevel: import("..").AppLevelModel;
98
+ orgLimitWarning: import("..").OrgLimitWarningModel;
102
99
  email: import("..").EmailModel;
103
100
  phoneNumber: import("..").PhoneNumberModel;
104
101
  cryptoAddress: import("..").CryptoAddressModel;
@@ -127,6 +124,7 @@ export declare function getClient(contextName?: string): {
127
124
  nodeTypeRegistry: import("..").NodeTypeRegistryModel;
128
125
  appLimitDefault: import("..").AppLimitDefaultModel;
129
126
  orgLimitDefault: import("..").OrgLimitDefaultModel;
127
+ appLimitWarning: import("..").AppLimitWarningModel;
130
128
  userConnectedAccount: import("..").UserConnectedAccountModel;
131
129
  commit: import("..").CommitModel;
132
130
  pubkeySetting: import("..").PubkeySettingModel;
@@ -138,6 +136,7 @@ export declare function getClient(contextName?: string): {
138
136
  appLimitEvent: import("..").AppLimitEventModel;
139
137
  orgLimitEvent: import("..").OrgLimitEventModel;
140
138
  rlsModule: import("..").RlsModuleModel;
139
+ rateLimitMetersModule: import("..").RateLimitMetersModuleModel;
141
140
  plansModule: import("..").PlansModuleModel;
142
141
  sqlAction: import("..").SqlActionModel;
143
142
  databaseSetting: import("..").DatabaseSettingModel;
@@ -180,11 +179,6 @@ export declare function getClient(contextName?: string): {
180
179
  }) => import("..").QueryBuilder<{
181
180
  orgPermissionsGetPaddedMask: string | null;
182
181
  }>;
183
- stepsAchieved: (args: import("../orm/query").StepsAchievedVariables, options?: {
184
- select?: Record<string, unknown>;
185
- }) => import("..").QueryBuilder<{
186
- stepsAchieved: boolean | null;
187
- }>;
188
182
  revParse: (args: import("../orm/query").RevParseVariables, options?: {
189
183
  select?: Record<string, unknown>;
190
184
  }) => import("..").QueryBuilder<{
@@ -250,11 +244,6 @@ export declare function getClient(contextName?: string): {
250
244
  } & import("..").StrictSelect<S, import("../orm/input-types").ObjectSelect>) => import("..").QueryBuilder<{
251
245
  getObjectAtPath: import("..").InferSelectResult<import("../orm/input-types").Object, S> | null;
252
246
  }>;
253
- stepsRequired: (args: import("../orm/query").StepsRequiredVariables, options?: {
254
- select?: Record<string, unknown>;
255
- }) => import("..").QueryBuilder<{
256
- stepsRequired: import("../orm/input-types").AppLevelRequirementConnection | null;
257
- }>;
258
247
  currentUser: <S extends import("../orm/input-types").UserSelect>(options: {
259
248
  select: S;
260
249
  } & import("..").StrictSelect<S, import("../orm/input-types").UserSelect>) => import("..").QueryBuilder<{
@@ -5,7 +5,6 @@ import { GetAllRecordModel } from './models/getAllRecord';
5
5
  import { AppPermissionModel } from './models/appPermission';
6
6
  import { OrgPermissionModel } from './models/orgPermission';
7
7
  import { ObjectModel } from './models/object';
8
- import { AppLevelRequirementModel } from './models/appLevelRequirement';
9
8
  import { DatabaseModel } from './models/database';
10
9
  import { SchemaModel } from './models/schema';
11
10
  import { TableModel } from './models/table';
@@ -56,14 +55,14 @@ import { DenormalizedTableFieldModel } from './models/denormalizedTableField';
56
55
  import { EmailsModuleModel } from './models/emailsModule';
57
56
  import { EncryptedSecretsModuleModel } from './models/encryptedSecretsModule';
58
57
  import { InvitesModuleModel } from './models/invitesModule';
59
- import { LevelsModuleModel } from './models/levelsModule';
58
+ import { EventsModuleModel } from './models/eventsModule';
60
59
  import { LimitsModuleModel } from './models/limitsModule';
61
60
  import { MembershipTypesModuleModel } from './models/membershipTypesModule';
62
61
  import { MembershipsModuleModel } from './models/membershipsModule';
63
62
  import { PermissionsModuleModel } from './models/permissionsModule';
64
63
  import { PhoneNumbersModuleModel } from './models/phoneNumbersModule';
65
64
  import { ProfilesModuleModel } from './models/profilesModule';
66
- import { SecretsModuleModel } from './models/secretsModule';
65
+ import { UserStateModuleModel } from './models/userStateModule';
67
66
  import { SessionsModuleModel } from './models/sessionsModule';
68
67
  import { UserAuthModuleModel } from './models/userAuthModule';
69
68
  import { UsersModuleModel } from './models/usersModule';
@@ -95,9 +94,7 @@ import { AppLimitCreditRedemptionModel } from './models/appLimitCreditRedemption
95
94
  import { OrgLimitModel } from './models/orgLimit';
96
95
  import { OrgLimitCreditModel } from './models/orgLimitCredit';
97
96
  import { OrgLimitAggregateModel } from './models/orgLimitAggregate';
98
- import { AppStepModel } from './models/appStep';
99
- import { AppAchievementModel } from './models/appAchievement';
100
- import { AppLevelModel } from './models/appLevel';
97
+ import { OrgLimitWarningModel } from './models/orgLimitWarning';
101
98
  import { EmailModel } from './models/email';
102
99
  import { PhoneNumberModel } from './models/phoneNumber';
103
100
  import { CryptoAddressModel } from './models/cryptoAddress';
@@ -126,6 +123,7 @@ import { DevicesModuleModel } from './models/devicesModule';
126
123
  import { NodeTypeRegistryModel } from './models/nodeTypeRegistry';
127
124
  import { AppLimitDefaultModel } from './models/appLimitDefault';
128
125
  import { OrgLimitDefaultModel } from './models/orgLimitDefault';
126
+ import { AppLimitWarningModel } from './models/appLimitWarning';
129
127
  import { UserConnectedAccountModel } from './models/userConnectedAccount';
130
128
  import { CommitModel } from './models/commit';
131
129
  import { PubkeySettingModel } from './models/pubkeySetting';
@@ -137,6 +135,7 @@ import { RlsSettingModel } from './models/rlsSetting';
137
135
  import { AppLimitEventModel } from './models/appLimitEvent';
138
136
  import { OrgLimitEventModel } from './models/orgLimitEvent';
139
137
  import { RlsModuleModel } from './models/rlsModule';
138
+ import { RateLimitMetersModuleModel } from './models/rateLimitMetersModule';
140
139
  import { PlansModuleModel } from './models/plansModule';
141
140
  import { SqlActionModel } from './models/sqlAction';
142
141
  import { DatabaseSettingModel } from './models/databaseSetting';
@@ -185,7 +184,6 @@ export declare function createClient(config: OrmClientConfig): {
185
184
  appPermission: AppPermissionModel;
186
185
  orgPermission: OrgPermissionModel;
187
186
  object: ObjectModel;
188
- appLevelRequirement: AppLevelRequirementModel;
189
187
  database: DatabaseModel;
190
188
  schema: SchemaModel;
191
189
  table: TableModel;
@@ -236,14 +234,14 @@ export declare function createClient(config: OrmClientConfig): {
236
234
  emailsModule: EmailsModuleModel;
237
235
  encryptedSecretsModule: EncryptedSecretsModuleModel;
238
236
  invitesModule: InvitesModuleModel;
239
- levelsModule: LevelsModuleModel;
237
+ eventsModule: EventsModuleModel;
240
238
  limitsModule: LimitsModuleModel;
241
239
  membershipTypesModule: MembershipTypesModuleModel;
242
240
  membershipsModule: MembershipsModuleModel;
243
241
  permissionsModule: PermissionsModuleModel;
244
242
  phoneNumbersModule: PhoneNumbersModuleModel;
245
243
  profilesModule: ProfilesModuleModel;
246
- secretsModule: SecretsModuleModel;
244
+ userStateModule: UserStateModuleModel;
247
245
  sessionsModule: SessionsModuleModel;
248
246
  userAuthModule: UserAuthModuleModel;
249
247
  usersModule: UsersModuleModel;
@@ -275,9 +273,7 @@ export declare function createClient(config: OrmClientConfig): {
275
273
  orgLimit: OrgLimitModel;
276
274
  orgLimitCredit: OrgLimitCreditModel;
277
275
  orgLimitAggregate: OrgLimitAggregateModel;
278
- appStep: AppStepModel;
279
- appAchievement: AppAchievementModel;
280
- appLevel: AppLevelModel;
276
+ orgLimitWarning: OrgLimitWarningModel;
281
277
  email: EmailModel;
282
278
  phoneNumber: PhoneNumberModel;
283
279
  cryptoAddress: CryptoAddressModel;
@@ -306,6 +302,7 @@ export declare function createClient(config: OrmClientConfig): {
306
302
  nodeTypeRegistry: NodeTypeRegistryModel;
307
303
  appLimitDefault: AppLimitDefaultModel;
308
304
  orgLimitDefault: OrgLimitDefaultModel;
305
+ appLimitWarning: AppLimitWarningModel;
309
306
  userConnectedAccount: UserConnectedAccountModel;
310
307
  commit: CommitModel;
311
308
  pubkeySetting: PubkeySettingModel;
@@ -317,6 +314,7 @@ export declare function createClient(config: OrmClientConfig): {
317
314
  appLimitEvent: AppLimitEventModel;
318
315
  orgLimitEvent: OrgLimitEventModel;
319
316
  rlsModule: RlsModuleModel;
317
+ rateLimitMetersModule: RateLimitMetersModuleModel;
320
318
  plansModule: PlansModuleModel;
321
319
  sqlAction: SqlActionModel;
322
320
  databaseSetting: DatabaseSettingModel;
@@ -359,11 +357,6 @@ export declare function createClient(config: OrmClientConfig): {
359
357
  }) => import("./query-builder").QueryBuilder<{
360
358
  orgPermissionsGetPaddedMask: string | null;
361
359
  }>;
362
- stepsAchieved: (args: import("./query").StepsAchievedVariables, options?: {
363
- select?: Record<string, unknown>;
364
- }) => import("./query-builder").QueryBuilder<{
365
- stepsAchieved: boolean | null;
366
- }>;
367
360
  revParse: (args: import("./query").RevParseVariables, options?: {
368
361
  select?: Record<string, unknown>;
369
362
  }) => import("./query-builder").QueryBuilder<{
@@ -429,11 +422,6 @@ export declare function createClient(config: OrmClientConfig): {
429
422
  } & import("./select-types").StrictSelect<S, import("./input-types").ObjectSelect>) => import("./query-builder").QueryBuilder<{
430
423
  getObjectAtPath: import("./select-types").InferSelectResult<import("./input-types").Object, S> | null;
431
424
  }>;
432
- stepsRequired: (args: import("./query").StepsRequiredVariables, options?: {
433
- select?: Record<string, unknown>;
434
- }) => import("./query-builder").QueryBuilder<{
435
- stepsRequired: import("./input-types").AppLevelRequirementConnection | null;
436
- }>;
437
425
  currentUser: <S extends import("./input-types").UserSelect>(options: {
438
426
  select: S;
439
427
  } & import("./select-types").StrictSelect<S, import("./input-types").UserSelect>) => import("./query-builder").QueryBuilder<{
@@ -10,7 +10,6 @@ import { GetAllRecordModel } from './models/getAllRecord';
10
10
  import { AppPermissionModel } from './models/appPermission';
11
11
  import { OrgPermissionModel } from './models/orgPermission';
12
12
  import { ObjectModel } from './models/object';
13
- import { AppLevelRequirementModel } from './models/appLevelRequirement';
14
13
  import { DatabaseModel } from './models/database';
15
14
  import { SchemaModel } from './models/schema';
16
15
  import { TableModel } from './models/table';
@@ -61,14 +60,14 @@ import { DenormalizedTableFieldModel } from './models/denormalizedTableField';
61
60
  import { EmailsModuleModel } from './models/emailsModule';
62
61
  import { EncryptedSecretsModuleModel } from './models/encryptedSecretsModule';
63
62
  import { InvitesModuleModel } from './models/invitesModule';
64
- import { LevelsModuleModel } from './models/levelsModule';
63
+ import { EventsModuleModel } from './models/eventsModule';
65
64
  import { LimitsModuleModel } from './models/limitsModule';
66
65
  import { MembershipTypesModuleModel } from './models/membershipTypesModule';
67
66
  import { MembershipsModuleModel } from './models/membershipsModule';
68
67
  import { PermissionsModuleModel } from './models/permissionsModule';
69
68
  import { PhoneNumbersModuleModel } from './models/phoneNumbersModule';
70
69
  import { ProfilesModuleModel } from './models/profilesModule';
71
- import { SecretsModuleModel } from './models/secretsModule';
70
+ import { UserStateModuleModel } from './models/userStateModule';
72
71
  import { SessionsModuleModel } from './models/sessionsModule';
73
72
  import { UserAuthModuleModel } from './models/userAuthModule';
74
73
  import { UsersModuleModel } from './models/usersModule';
@@ -100,9 +99,7 @@ import { AppLimitCreditRedemptionModel } from './models/appLimitCreditRedemption
100
99
  import { OrgLimitModel } from './models/orgLimit';
101
100
  import { OrgLimitCreditModel } from './models/orgLimitCredit';
102
101
  import { OrgLimitAggregateModel } from './models/orgLimitAggregate';
103
- import { AppStepModel } from './models/appStep';
104
- import { AppAchievementModel } from './models/appAchievement';
105
- import { AppLevelModel } from './models/appLevel';
102
+ import { OrgLimitWarningModel } from './models/orgLimitWarning';
106
103
  import { EmailModel } from './models/email';
107
104
  import { PhoneNumberModel } from './models/phoneNumber';
108
105
  import { CryptoAddressModel } from './models/cryptoAddress';
@@ -131,6 +128,7 @@ import { DevicesModuleModel } from './models/devicesModule';
131
128
  import { NodeTypeRegistryModel } from './models/nodeTypeRegistry';
132
129
  import { AppLimitDefaultModel } from './models/appLimitDefault';
133
130
  import { OrgLimitDefaultModel } from './models/orgLimitDefault';
131
+ import { AppLimitWarningModel } from './models/appLimitWarning';
134
132
  import { UserConnectedAccountModel } from './models/userConnectedAccount';
135
133
  import { CommitModel } from './models/commit';
136
134
  import { PubkeySettingModel } from './models/pubkeySetting';
@@ -142,6 +140,7 @@ import { RlsSettingModel } from './models/rlsSetting';
142
140
  import { AppLimitEventModel } from './models/appLimitEvent';
143
141
  import { OrgLimitEventModel } from './models/orgLimitEvent';
144
142
  import { RlsModuleModel } from './models/rlsModule';
143
+ import { RateLimitMetersModuleModel } from './models/rateLimitMetersModule';
145
144
  import { PlansModuleModel } from './models/plansModule';
146
145
  import { SqlActionModel } from './models/sqlAction';
147
146
  import { DatabaseSettingModel } from './models/databaseSetting';
@@ -193,7 +192,6 @@ export function createClient(config) {
193
192
  appPermission: new AppPermissionModel(client),
194
193
  orgPermission: new OrgPermissionModel(client),
195
194
  object: new ObjectModel(client),
196
- appLevelRequirement: new AppLevelRequirementModel(client),
197
195
  database: new DatabaseModel(client),
198
196
  schema: new SchemaModel(client),
199
197
  table: new TableModel(client),
@@ -244,14 +242,14 @@ export function createClient(config) {
244
242
  emailsModule: new EmailsModuleModel(client),
245
243
  encryptedSecretsModule: new EncryptedSecretsModuleModel(client),
246
244
  invitesModule: new InvitesModuleModel(client),
247
- levelsModule: new LevelsModuleModel(client),
245
+ eventsModule: new EventsModuleModel(client),
248
246
  limitsModule: new LimitsModuleModel(client),
249
247
  membershipTypesModule: new MembershipTypesModuleModel(client),
250
248
  membershipsModule: new MembershipsModuleModel(client),
251
249
  permissionsModule: new PermissionsModuleModel(client),
252
250
  phoneNumbersModule: new PhoneNumbersModuleModel(client),
253
251
  profilesModule: new ProfilesModuleModel(client),
254
- secretsModule: new SecretsModuleModel(client),
252
+ userStateModule: new UserStateModuleModel(client),
255
253
  sessionsModule: new SessionsModuleModel(client),
256
254
  userAuthModule: new UserAuthModuleModel(client),
257
255
  usersModule: new UsersModuleModel(client),
@@ -283,9 +281,7 @@ export function createClient(config) {
283
281
  orgLimit: new OrgLimitModel(client),
284
282
  orgLimitCredit: new OrgLimitCreditModel(client),
285
283
  orgLimitAggregate: new OrgLimitAggregateModel(client),
286
- appStep: new AppStepModel(client),
287
- appAchievement: new AppAchievementModel(client),
288
- appLevel: new AppLevelModel(client),
284
+ orgLimitWarning: new OrgLimitWarningModel(client),
289
285
  email: new EmailModel(client),
290
286
  phoneNumber: new PhoneNumberModel(client),
291
287
  cryptoAddress: new CryptoAddressModel(client),
@@ -314,6 +310,7 @@ export function createClient(config) {
314
310
  nodeTypeRegistry: new NodeTypeRegistryModel(client),
315
311
  appLimitDefault: new AppLimitDefaultModel(client),
316
312
  orgLimitDefault: new OrgLimitDefaultModel(client),
313
+ appLimitWarning: new AppLimitWarningModel(client),
317
314
  userConnectedAccount: new UserConnectedAccountModel(client),
318
315
  commit: new CommitModel(client),
319
316
  pubkeySetting: new PubkeySettingModel(client),
@@ -325,6 +322,7 @@ export function createClient(config) {
325
322
  appLimitEvent: new AppLimitEventModel(client),
326
323
  orgLimitEvent: new OrgLimitEventModel(client),
327
324
  rlsModule: new RlsModuleModel(client),
325
+ rateLimitMetersModule: new RateLimitMetersModuleModel(client),
328
326
  plansModule: new PlansModuleModel(client),
329
327
  sqlAction: new SqlActionModel(client),
330
328
  databaseSetting: new DatabaseSettingModel(client),