@constructive-sdk/cli 0.12.16 → 0.12.18
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.
- package/esm/public/cli/commands/blueprint-construction.d.ts +8 -0
- package/esm/public/cli/commands/blueprint-construction.js +392 -0
- package/esm/public/cli/commands/blueprint.js +0 -110
- package/esm/public/cli/commands/construct-blueprint.js +1 -1
- package/esm/public/cli/commands/provision-full-text-search.d.ts +8 -0
- package/esm/public/cli/commands/provision-full-text-search.js +34 -0
- package/esm/public/cli/commands/provision-index.d.ts +8 -0
- package/esm/public/cli/commands/provision-index.js +34 -0
- package/esm/public/cli/commands/provision-relation.d.ts +8 -0
- package/esm/public/cli/commands/provision-relation.js +34 -0
- package/esm/public/cli/commands/provision-table.d.ts +8 -0
- package/esm/public/cli/commands/provision-table.js +34 -0
- package/esm/public/cli/commands/provision-unique-constraint.d.ts +8 -0
- package/esm/public/cli/commands/provision-unique-constraint.js +34 -0
- package/esm/public/cli/commands/relation-provision.js +12 -34
- package/esm/public/cli/commands/resolve-blueprint-table.d.ts +8 -0
- package/esm/public/cli/commands/resolve-blueprint-table.js +48 -0
- package/esm/public/cli/commands/secure-table-provision.js +14 -36
- package/esm/public/cli/commands/storage-module.d.ts +8 -0
- package/esm/public/cli/commands/storage-module.js +536 -0
- package/esm/public/cli/commands.js +27 -11
- package/esm/public/cli/executor.d.ts +49 -17
- package/esm/public/orm/index.d.ts +53 -19
- package/esm/public/orm/index.js +8 -4
- package/esm/public/orm/input-types.d.ts +886 -249
- package/esm/public/orm/input-types.js +5 -0
- package/esm/public/orm/models/blueprintConstruction.d.ts +56 -0
- package/esm/public/orm/models/blueprintConstruction.js +96 -0
- package/esm/public/orm/models/index.d.ts +4 -2
- package/esm/public/orm/models/index.js +4 -2
- package/esm/public/orm/models/storageModule.d.ts +56 -0
- package/esm/public/orm/models/storageModule.js +96 -0
- package/esm/public/orm/mutation/index.d.ts +86 -26
- package/esm/public/orm/mutation/index.js +96 -36
- package/esm/public/orm/query/index.d.ts +16 -0
- package/esm/public/orm/query/index.js +28 -0
- package/package.json +3 -3
- package/public/cli/commands/blueprint-construction.d.ts +8 -0
- package/public/cli/commands/blueprint-construction.js +394 -0
- package/public/cli/commands/blueprint.js +0 -110
- package/public/cli/commands/construct-blueprint.js +1 -1
- package/public/cli/commands/provision-full-text-search.d.ts +8 -0
- package/public/cli/commands/provision-full-text-search.js +36 -0
- package/public/cli/commands/provision-index.d.ts +8 -0
- package/public/cli/commands/provision-index.js +36 -0
- package/public/cli/commands/provision-relation.d.ts +8 -0
- package/public/cli/commands/provision-relation.js +36 -0
- package/public/cli/commands/provision-table.d.ts +8 -0
- package/public/cli/commands/provision-table.js +36 -0
- package/public/cli/commands/provision-unique-constraint.d.ts +8 -0
- package/public/cli/commands/provision-unique-constraint.js +36 -0
- package/public/cli/commands/relation-provision.js +12 -34
- package/public/cli/commands/resolve-blueprint-table.d.ts +8 -0
- package/public/cli/commands/resolve-blueprint-table.js +50 -0
- package/public/cli/commands/secure-table-provision.js +14 -36
- package/public/cli/commands/storage-module.d.ts +8 -0
- package/public/cli/commands/storage-module.js +538 -0
- package/public/cli/commands.js +27 -11
- package/public/cli/executor.d.ts +49 -17
- package/public/orm/index.d.ts +53 -19
- package/public/orm/index.js +8 -4
- package/public/orm/input-types.d.ts +886 -249
- package/public/orm/input-types.js +5 -0
- package/public/orm/models/blueprintConstruction.d.ts +56 -0
- package/public/orm/models/blueprintConstruction.js +100 -0
- package/public/orm/models/index.d.ts +4 -2
- package/public/orm/models/index.js +11 -7
- package/public/orm/models/storageModule.d.ts +56 -0
- package/public/orm/models/storageModule.js +100 -0
- package/public/orm/mutation/index.d.ts +86 -26
- package/public/orm/mutation/index.js +96 -36
- package/public/orm/query/index.d.ts +16 -0
- package/public/orm/query/index.js +28 -0
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
import { extractFirst } from 'inquirerer';
|
|
7
7
|
import contextCmd from './commands/context';
|
|
8
8
|
import authCmd from './commands/auth';
|
|
9
|
-
import getAllRecordCmd from './commands/get-all-record';
|
|
10
9
|
import orgGetManagersRecordCmd from './commands/org-get-managers-record';
|
|
11
10
|
import orgGetSubordinatesRecordCmd from './commands/org-get-subordinates-record';
|
|
11
|
+
import getAllRecordCmd from './commands/get-all-record';
|
|
12
12
|
import objectCmd from './commands/object';
|
|
13
13
|
import appPermissionCmd from './commands/app-permission';
|
|
14
14
|
import orgPermissionCmd from './commands/org-permission';
|
|
@@ -69,6 +69,8 @@ import userAuthModuleCmd from './commands/user-auth-module';
|
|
|
69
69
|
import usersModuleCmd from './commands/users-module';
|
|
70
70
|
import blueprintCmd from './commands/blueprint';
|
|
71
71
|
import blueprintTemplateCmd from './commands/blueprint-template';
|
|
72
|
+
import blueprintConstructionCmd from './commands/blueprint-construction';
|
|
73
|
+
import storageModuleCmd from './commands/storage-module';
|
|
72
74
|
import databaseProvisionModuleCmd from './commands/database-provision-module';
|
|
73
75
|
import appAdminGrantCmd from './commands/app-admin-grant';
|
|
74
76
|
import appOwnerGrantCmd from './commands/app-owner-grant';
|
|
@@ -99,9 +101,9 @@ import refCmd from './commands/ref';
|
|
|
99
101
|
import storeCmd from './commands/store';
|
|
100
102
|
import appPermissionDefaultCmd from './commands/app-permission-default';
|
|
101
103
|
import roleTypeCmd from './commands/role-type';
|
|
102
|
-
import migrateFileCmd from './commands/migrate-file';
|
|
103
104
|
import appLimitDefaultCmd from './commands/app-limit-default';
|
|
104
105
|
import orgLimitDefaultCmd from './commands/org-limit-default';
|
|
106
|
+
import migrateFileCmd from './commands/migrate-file';
|
|
105
107
|
import membershipTypeCmd from './commands/membership-type';
|
|
106
108
|
import commitCmd from './commands/commit';
|
|
107
109
|
import appMembershipDefaultCmd from './commands/app-membership-default';
|
|
@@ -123,6 +125,7 @@ import revParseCmd from './commands/rev-parse';
|
|
|
123
125
|
import orgIsManagerOfCmd from './commands/org-is-manager-of';
|
|
124
126
|
import appPermissionsGetMaskCmd from './commands/app-permissions-get-mask';
|
|
125
127
|
import orgPermissionsGetMaskCmd from './commands/org-permissions-get-mask';
|
|
128
|
+
import resolveBlueprintTableCmd from './commands/resolve-blueprint-table';
|
|
126
129
|
import appPermissionsGetMaskByNamesCmd from './commands/app-permissions-get-mask-by-names';
|
|
127
130
|
import orgPermissionsGetMaskByNamesCmd from './commands/org-permissions-get-mask-by-names';
|
|
128
131
|
import getAllObjectsFromRootCmd from './commands/get-all-objects-from-root';
|
|
@@ -148,15 +151,19 @@ import initEmptyRepoCmd from './commands/init-empty-repo';
|
|
|
148
151
|
import constructBlueprintCmd from './commands/construct-blueprint';
|
|
149
152
|
import resetPasswordCmd from './commands/reset-password';
|
|
150
153
|
import removeNodeAtPathCmd from './commands/remove-node-at-path';
|
|
151
|
-
import setDataAtPathCmd from './commands/set-data-at-path';
|
|
152
|
-
import setPropsAndCommitCmd from './commands/set-props-and-commit';
|
|
153
154
|
import copyTemplateToBlueprintCmd from './commands/copy-template-to-blueprint';
|
|
154
|
-
import provisionDatabaseWithUserCmd from './commands/provision-database-with-user';
|
|
155
155
|
import bootstrapUserCmd from './commands/bootstrap-user';
|
|
156
156
|
import setFieldOrderCmd from './commands/set-field-order';
|
|
157
|
+
import provisionUniqueConstraintCmd from './commands/provision-unique-constraint';
|
|
158
|
+
import provisionFullTextSearchCmd from './commands/provision-full-text-search';
|
|
159
|
+
import provisionIndexCmd from './commands/provision-index';
|
|
160
|
+
import setDataAtPathCmd from './commands/set-data-at-path';
|
|
161
|
+
import setPropsAndCommitCmd from './commands/set-props-and-commit';
|
|
162
|
+
import provisionDatabaseWithUserCmd from './commands/provision-database-with-user';
|
|
157
163
|
import insertNodeAtPathCmd from './commands/insert-node-at-path';
|
|
158
164
|
import updateNodeAtPathCmd from './commands/update-node-at-path';
|
|
159
165
|
import setAndCommitCmd from './commands/set-and-commit';
|
|
166
|
+
import provisionRelationCmd from './commands/provision-relation';
|
|
160
167
|
import applyRlsCmd from './commands/apply-rls';
|
|
161
168
|
import signInOneTimeTokenCmd from './commands/sign-in-one-time-token';
|
|
162
169
|
import createUserDatabaseCmd from './commands/create-user-database';
|
|
@@ -164,6 +171,7 @@ import extendTokenExpiresCmd from './commands/extend-token-expires';
|
|
|
164
171
|
import signInCmd from './commands/sign-in';
|
|
165
172
|
import signUpCmd from './commands/sign-up';
|
|
166
173
|
import oneTimeTokenCmd from './commands/one-time-token';
|
|
174
|
+
import provisionTableCmd from './commands/provision-table';
|
|
167
175
|
import sendVerificationEmailCmd from './commands/send-verification-email';
|
|
168
176
|
import forgotPasswordCmd from './commands/forgot-password';
|
|
169
177
|
import verifyPasswordCmd from './commands/verify-password';
|
|
@@ -171,9 +179,9 @@ import verifyTotpCmd from './commands/verify-totp';
|
|
|
171
179
|
const createCommandMap = () => ({
|
|
172
180
|
context: contextCmd,
|
|
173
181
|
auth: authCmd,
|
|
174
|
-
'get-all-record': getAllRecordCmd,
|
|
175
182
|
'org-get-managers-record': orgGetManagersRecordCmd,
|
|
176
183
|
'org-get-subordinates-record': orgGetSubordinatesRecordCmd,
|
|
184
|
+
'get-all-record': getAllRecordCmd,
|
|
177
185
|
object: objectCmd,
|
|
178
186
|
'app-permission': appPermissionCmd,
|
|
179
187
|
'org-permission': orgPermissionCmd,
|
|
@@ -234,6 +242,8 @@ const createCommandMap = () => ({
|
|
|
234
242
|
'users-module': usersModuleCmd,
|
|
235
243
|
blueprint: blueprintCmd,
|
|
236
244
|
'blueprint-template': blueprintTemplateCmd,
|
|
245
|
+
'blueprint-construction': blueprintConstructionCmd,
|
|
246
|
+
'storage-module': storageModuleCmd,
|
|
237
247
|
'database-provision-module': databaseProvisionModuleCmd,
|
|
238
248
|
'app-admin-grant': appAdminGrantCmd,
|
|
239
249
|
'app-owner-grant': appOwnerGrantCmd,
|
|
@@ -264,9 +274,9 @@ const createCommandMap = () => ({
|
|
|
264
274
|
store: storeCmd,
|
|
265
275
|
'app-permission-default': appPermissionDefaultCmd,
|
|
266
276
|
'role-type': roleTypeCmd,
|
|
267
|
-
'migrate-file': migrateFileCmd,
|
|
268
277
|
'app-limit-default': appLimitDefaultCmd,
|
|
269
278
|
'org-limit-default': orgLimitDefaultCmd,
|
|
279
|
+
'migrate-file': migrateFileCmd,
|
|
270
280
|
'membership-type': membershipTypeCmd,
|
|
271
281
|
commit: commitCmd,
|
|
272
282
|
'app-membership-default': appMembershipDefaultCmd,
|
|
@@ -288,6 +298,7 @@ const createCommandMap = () => ({
|
|
|
288
298
|
'org-is-manager-of': orgIsManagerOfCmd,
|
|
289
299
|
'app-permissions-get-mask': appPermissionsGetMaskCmd,
|
|
290
300
|
'org-permissions-get-mask': orgPermissionsGetMaskCmd,
|
|
301
|
+
'resolve-blueprint-table': resolveBlueprintTableCmd,
|
|
291
302
|
'app-permissions-get-mask-by-names': appPermissionsGetMaskByNamesCmd,
|
|
292
303
|
'org-permissions-get-mask-by-names': orgPermissionsGetMaskByNamesCmd,
|
|
293
304
|
'get-all-objects-from-root': getAllObjectsFromRootCmd,
|
|
@@ -313,15 +324,19 @@ const createCommandMap = () => ({
|
|
|
313
324
|
'construct-blueprint': constructBlueprintCmd,
|
|
314
325
|
'reset-password': resetPasswordCmd,
|
|
315
326
|
'remove-node-at-path': removeNodeAtPathCmd,
|
|
316
|
-
'set-data-at-path': setDataAtPathCmd,
|
|
317
|
-
'set-props-and-commit': setPropsAndCommitCmd,
|
|
318
327
|
'copy-template-to-blueprint': copyTemplateToBlueprintCmd,
|
|
319
|
-
'provision-database-with-user': provisionDatabaseWithUserCmd,
|
|
320
328
|
'bootstrap-user': bootstrapUserCmd,
|
|
321
329
|
'set-field-order': setFieldOrderCmd,
|
|
330
|
+
'provision-unique-constraint': provisionUniqueConstraintCmd,
|
|
331
|
+
'provision-full-text-search': provisionFullTextSearchCmd,
|
|
332
|
+
'provision-index': provisionIndexCmd,
|
|
333
|
+
'set-data-at-path': setDataAtPathCmd,
|
|
334
|
+
'set-props-and-commit': setPropsAndCommitCmd,
|
|
335
|
+
'provision-database-with-user': provisionDatabaseWithUserCmd,
|
|
322
336
|
'insert-node-at-path': insertNodeAtPathCmd,
|
|
323
337
|
'update-node-at-path': updateNodeAtPathCmd,
|
|
324
338
|
'set-and-commit': setAndCommitCmd,
|
|
339
|
+
'provision-relation': provisionRelationCmd,
|
|
325
340
|
'apply-rls': applyRlsCmd,
|
|
326
341
|
'sign-in-one-time-token': signInOneTimeTokenCmd,
|
|
327
342
|
'create-user-database': createUserDatabaseCmd,
|
|
@@ -329,12 +344,13 @@ const createCommandMap = () => ({
|
|
|
329
344
|
'sign-in': signInCmd,
|
|
330
345
|
'sign-up': signUpCmd,
|
|
331
346
|
'one-time-token': oneTimeTokenCmd,
|
|
347
|
+
'provision-table': provisionTableCmd,
|
|
332
348
|
'send-verification-email': sendVerificationEmailCmd,
|
|
333
349
|
'forgot-password': forgotPasswordCmd,
|
|
334
350
|
'verify-password': verifyPasswordCmd,
|
|
335
351
|
'verify-totp': verifyTotpCmd,
|
|
336
352
|
});
|
|
337
|
-
const usage = "\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n get-all-record getAllRecord CRUD operations\n org-get-managers-record orgGetManagersRecord CRUD operations\n org-get-subordinates-record orgGetSubordinatesRecord CRUD operations\n object object CRUD operations\n app-permission appPermission CRUD operations\n org-permission orgPermission 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 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 table-template-module tableTemplateModule CRUD operations\n secure-table-provision secureTableProvision CRUD operations\n relation-provision relationProvision CRUD operations\n schema-grant schemaGrant CRUD operations\n default-privilege defaultPrivilege CRUD operations\n enum enum 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 trigger-function triggerFunction CRUD operations\n database-transfer databaseTransfer CRUD operations\n api api CRUD operations\n site site CRUD operations\n app app 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 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-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 org-limit orgLimit 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 connected-account connectedAccount CRUD operations\n invite invite CRUD operations\n claimed-invite claimedInvite CRUD operations\n org-invite orgInvite CRUD operations\n org-claimed-invite orgClaimedInvite CRUD operations\n audit-log auditLog CRUD operations\n ref ref CRUD operations\n store store CRUD operations\n app-permission-default appPermissionDefault CRUD operations\n role-type roleType CRUD operations\n migrate-file migrateFile CRUD operations\n app-limit-default appLimitDefault CRUD operations\n org-limit-default orgLimitDefault CRUD operations\n membership-type membershipType CRUD operations\n commit commit CRUD operations\n app-membership-default appMembershipDefault CRUD operations\n rls-module rlsModule CRUD operations\n node-type-registry nodeTypeRegistry CRUD operations\n org-membership-default orgMembershipDefault CRUD operations\n sql-action sqlAction CRUD operations\n user user CRUD operations\n ast-migration astMigration CRUD operations\n app-membership appMembership CRUD operations\n hierarchy-module hierarchyModule CRUD operations\n current-user-id currentUserId\n current-ip-address currentIpAddress\n current-user-agent currentUserAgent\n app-permissions-get-padded-mask appPermissionsGetPaddedMask\n org-permissions-get-padded-mask orgPermissionsGetPaddedMask\n steps-achieved stepsAchieved\n rev-parse revParse\n org-is-manager-of orgIsManagerOf\n app-permissions-get-mask appPermissionsGetMask\n org-permissions-get-mask orgPermissionsGetMask\n app-permissions-get-mask-by-names appPermissionsGetMaskByNames\n org-permissions-get-mask-by-names orgPermissionsGetMaskByNames\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 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 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 submit-invite-code submitInviteCode\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 draft blueprint definition. Four phases: (1) create tables with nodes[], fields, and policies[], (2) create relations between tables, (3) create indexes on table fields (supports BTREE, HNSW, GIN, GIST, BM25, etc.), (4) create full-text search configurations with weighted multi-field TSVector support. nodes[] entries can be strings or {$type, data} objects. Relations use $type for relation_type with junction config as top-level fields (node_type, policy_type, grant_roles, grant_privileges, policy_data, policy_permissive, source_field_name, target_field_name, node_data). Indexes reference table_ref + column name(s) and are resolved to field_ids. Full-text searches reference table_ref + tsvector field + source fields with weights/langs. Builds a ref_map of local ref names to created table UUIDs. Updates blueprint status to constructed (or failed with error_details). Returns the ref_map.\n reset-password resetPassword\n remove-node-at-path removeNodeAtPath\n set-data-at-path setDataAtPath\n set-props-and-commit setPropsAndCommit\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-database-with-user provisionDatabaseWithUser\n bootstrap-user bootstrapUser\n set-field-order setFieldOrder\n insert-node-at-path insertNodeAtPath\n update-node-at-path updateNodeAtPath\n set-and-commit setAndCommit\n apply-rls applyRls\n sign-in-one-time-token signInOneTimeToken\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 sign-in signIn\n sign-up signUp\n one-time-token oneTimeToken\n send-verification-email sendVerificationEmail\n forgot-password forgotPassword\n verify-password verifyPassword\n verify-totp verifyTotp\n\n --help, -h Show this help message\n --version, -v Show version\n";
|
|
353
|
+
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 object object CRUD operations\n app-permission appPermission CRUD operations\n org-permission orgPermission 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 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 table-template-module tableTemplateModule CRUD operations\n secure-table-provision secureTableProvision CRUD operations\n relation-provision relationProvision CRUD operations\n schema-grant schemaGrant CRUD operations\n default-privilege defaultPrivilege CRUD operations\n enum enum 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 trigger-function triggerFunction CRUD operations\n database-transfer databaseTransfer CRUD operations\n api api CRUD operations\n site site CRUD operations\n app app 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 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-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 org-limit orgLimit 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 connected-account connectedAccount CRUD operations\n invite invite CRUD operations\n claimed-invite claimedInvite CRUD operations\n org-invite orgInvite CRUD operations\n org-claimed-invite orgClaimedInvite CRUD operations\n audit-log auditLog CRUD operations\n ref ref CRUD operations\n store store CRUD operations\n app-permission-default appPermissionDefault CRUD operations\n role-type roleType CRUD operations\n app-limit-default appLimitDefault CRUD operations\n org-limit-default orgLimitDefault CRUD operations\n migrate-file migrateFile CRUD operations\n membership-type membershipType CRUD operations\n commit commit CRUD operations\n app-membership-default appMembershipDefault CRUD operations\n rls-module rlsModule CRUD operations\n node-type-registry nodeTypeRegistry CRUD operations\n org-membership-default orgMembershipDefault CRUD operations\n sql-action sqlAction CRUD operations\n user user CRUD operations\n ast-migration astMigration CRUD operations\n app-membership appMembership CRUD operations\n hierarchy-module hierarchyModule CRUD operations\n current-user-id currentUserId\n current-ip-address currentIpAddress\n current-user-agent currentUserAgent\n app-permissions-get-padded-mask appPermissionsGetPaddedMask\n org-permissions-get-padded-mask orgPermissionsGetPaddedMask\n steps-achieved stepsAchieved\n rev-parse revParse\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 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 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 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 submit-invite-code submitInviteCode\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. Five phases: (1) provision_table() for each table with all nodes[], fields[], policies[], grants, and table-level indexes/fts/unique_constraints in a single call, (2) provision_relation() for each relation, (3) provision_index() for top-level indexes, (4) provision_full_text_search() for top-level FTS, (5) provision_unique_constraint() for top-level unique constraints. Tables are identified by table_name with optional per-table schema_name. Relations use $type for relation_type with source_table/target_table. Returns the construction record ID on success, NULL on failure.\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 bootstrap-user bootstrapUser\n set-field-order setFieldOrder\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-one-time-token signInOneTimeToken\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 sign-in signIn\n sign-up signUp\n one-time-token oneTimeToken\n provision-table Composable table provisioning: creates or finds a table, then applies N nodes (Data* modules), creates fields, 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 send-verification-email sendVerificationEmail\n forgot-password forgotPassword\n verify-password verifyPassword\n verify-totp verifyTotp\n\n --help, -h Show this help message\n --version, -v Show version\n";
|
|
338
354
|
export const commands = async (argv, prompter, options) => {
|
|
339
355
|
if (argv.help || argv.h) {
|
|
340
356
|
console.log(usage);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export declare const getStore: () => import("appstash").ConfigStore;
|
|
2
2
|
export declare function getClient(contextName?: string): {
|
|
3
|
-
getAllRecord: import("..").GetAllRecordModel;
|
|
4
3
|
orgGetManagersRecord: import("..").OrgGetManagersRecordModel;
|
|
5
4
|
orgGetSubordinatesRecord: import("..").OrgGetSubordinatesRecordModel;
|
|
5
|
+
getAllRecord: import("..").GetAllRecordModel;
|
|
6
6
|
object: import("..").ObjectModel;
|
|
7
7
|
appPermission: import("..").AppPermissionModel;
|
|
8
8
|
orgPermission: import("..").OrgPermissionModel;
|
|
@@ -63,6 +63,8 @@ export declare function getClient(contextName?: string): {
|
|
|
63
63
|
usersModule: import("..").UsersModuleModel;
|
|
64
64
|
blueprint: import("..").BlueprintModel;
|
|
65
65
|
blueprintTemplate: import("..").BlueprintTemplateModel;
|
|
66
|
+
blueprintConstruction: import("..").BlueprintConstructionModel;
|
|
67
|
+
storageModule: import("..").StorageModuleModel;
|
|
66
68
|
databaseProvisionModule: import("..").DatabaseProvisionModuleModel;
|
|
67
69
|
appAdminGrant: import("..").AppAdminGrantModel;
|
|
68
70
|
appOwnerGrant: import("..").AppOwnerGrantModel;
|
|
@@ -93,9 +95,9 @@ export declare function getClient(contextName?: string): {
|
|
|
93
95
|
store: import("..").StoreModel;
|
|
94
96
|
appPermissionDefault: import("..").AppPermissionDefaultModel;
|
|
95
97
|
roleType: import("..").RoleTypeModel;
|
|
96
|
-
migrateFile: import("..").MigrateFileModel;
|
|
97
98
|
appLimitDefault: import("..").AppLimitDefaultModel;
|
|
98
99
|
orgLimitDefault: import("..").OrgLimitDefaultModel;
|
|
100
|
+
migrateFile: import("..").MigrateFileModel;
|
|
99
101
|
membershipType: import("..").MembershipTypeModel;
|
|
100
102
|
commit: import("..").CommitModel;
|
|
101
103
|
appMembershipDefault: import("..").AppMembershipDefaultModel;
|
|
@@ -158,6 +160,11 @@ export declare function getClient(contextName?: string): {
|
|
|
158
160
|
}) => import("..").QueryBuilder<{
|
|
159
161
|
orgPermissionsGetMask: string | null;
|
|
160
162
|
}>;
|
|
163
|
+
resolveBlueprintTable: (args: import("../orm/query").ResolveBlueprintTableVariables, options?: {
|
|
164
|
+
select?: Record<string, unknown>;
|
|
165
|
+
}) => import("..").QueryBuilder<{
|
|
166
|
+
resolveBlueprintTable: string | null;
|
|
167
|
+
}>;
|
|
161
168
|
appPermissionsGetMaskByNames: (args: import("../orm/query").AppPermissionsGetMaskByNamesVariables, options?: {
|
|
162
169
|
select?: Record<string, unknown>;
|
|
163
170
|
}) => import("..").QueryBuilder<{
|
|
@@ -285,26 +292,11 @@ export declare function getClient(contextName?: string): {
|
|
|
285
292
|
} & import("..").StrictSelect<S, import("../orm/input-types").RemoveNodeAtPathPayloadSelect>) => import("..").QueryBuilder<{
|
|
286
293
|
removeNodeAtPath: import("..").InferSelectResult<import("../orm/input-types").RemoveNodeAtPathPayload, S> | null;
|
|
287
294
|
}>;
|
|
288
|
-
setDataAtPath: <S extends import("../orm/input-types").SetDataAtPathPayloadSelect>(args: import("../orm/mutation").SetDataAtPathVariables, options: {
|
|
289
|
-
select: S;
|
|
290
|
-
} & import("..").StrictSelect<S, import("../orm/input-types").SetDataAtPathPayloadSelect>) => import("..").QueryBuilder<{
|
|
291
|
-
setDataAtPath: import("..").InferSelectResult<import("../orm/input-types").SetDataAtPathPayload, S> | null;
|
|
292
|
-
}>;
|
|
293
|
-
setPropsAndCommit: <S extends import("../orm/input-types").SetPropsAndCommitPayloadSelect>(args: import("../orm/mutation").SetPropsAndCommitVariables, options: {
|
|
294
|
-
select: S;
|
|
295
|
-
} & import("..").StrictSelect<S, import("../orm/input-types").SetPropsAndCommitPayloadSelect>) => import("..").QueryBuilder<{
|
|
296
|
-
setPropsAndCommit: import("..").InferSelectResult<import("../orm/input-types").SetPropsAndCommitPayload, S> | null;
|
|
297
|
-
}>;
|
|
298
295
|
copyTemplateToBlueprint: <S extends import("../orm/input-types").CopyTemplateToBlueprintPayloadSelect>(args: import("../orm/mutation").CopyTemplateToBlueprintVariables, options: {
|
|
299
296
|
select: S;
|
|
300
297
|
} & import("..").StrictSelect<S, import("../orm/input-types").CopyTemplateToBlueprintPayloadSelect>) => import("..").QueryBuilder<{
|
|
301
298
|
copyTemplateToBlueprint: import("..").InferSelectResult<import("../orm/input-types").CopyTemplateToBlueprintPayload, S> | null;
|
|
302
299
|
}>;
|
|
303
|
-
provisionDatabaseWithUser: <S extends import("../orm/input-types").ProvisionDatabaseWithUserPayloadSelect>(args: import("../orm/mutation").ProvisionDatabaseWithUserVariables, options: {
|
|
304
|
-
select: S;
|
|
305
|
-
} & import("..").StrictSelect<S, import("../orm/input-types").ProvisionDatabaseWithUserPayloadSelect>) => import("..").QueryBuilder<{
|
|
306
|
-
provisionDatabaseWithUser: import("..").InferSelectResult<import("../orm/input-types").ProvisionDatabaseWithUserPayload, S> | null;
|
|
307
|
-
}>;
|
|
308
300
|
bootstrapUser: <S extends import("../orm/input-types").BootstrapUserPayloadSelect>(args: import("../orm/mutation").BootstrapUserVariables, options: {
|
|
309
301
|
select: S;
|
|
310
302
|
} & import("..").StrictSelect<S, import("../orm/input-types").BootstrapUserPayloadSelect>) => import("..").QueryBuilder<{
|
|
@@ -315,6 +307,36 @@ export declare function getClient(contextName?: string): {
|
|
|
315
307
|
} & import("..").StrictSelect<S, import("../orm/input-types").SetFieldOrderPayloadSelect>) => import("..").QueryBuilder<{
|
|
316
308
|
setFieldOrder: import("..").InferSelectResult<import("../orm/input-types").SetFieldOrderPayload, S> | null;
|
|
317
309
|
}>;
|
|
310
|
+
provisionUniqueConstraint: <S extends import("../orm/input-types").ProvisionUniqueConstraintPayloadSelect>(args: import("../orm/mutation").ProvisionUniqueConstraintVariables, options: {
|
|
311
|
+
select: S;
|
|
312
|
+
} & import("..").StrictSelect<S, import("../orm/input-types").ProvisionUniqueConstraintPayloadSelect>) => import("..").QueryBuilder<{
|
|
313
|
+
provisionUniqueConstraint: import("..").InferSelectResult<import("../orm/input-types").ProvisionUniqueConstraintPayload, S> | null;
|
|
314
|
+
}>;
|
|
315
|
+
provisionFullTextSearch: <S extends import("../orm/input-types").ProvisionFullTextSearchPayloadSelect>(args: import("../orm/mutation").ProvisionFullTextSearchVariables, options: {
|
|
316
|
+
select: S;
|
|
317
|
+
} & import("..").StrictSelect<S, import("../orm/input-types").ProvisionFullTextSearchPayloadSelect>) => import("..").QueryBuilder<{
|
|
318
|
+
provisionFullTextSearch: import("..").InferSelectResult<import("../orm/input-types").ProvisionFullTextSearchPayload, S> | null;
|
|
319
|
+
}>;
|
|
320
|
+
provisionIndex: <S extends import("../orm/input-types").ProvisionIndexPayloadSelect>(args: import("../orm/mutation").ProvisionIndexVariables, options: {
|
|
321
|
+
select: S;
|
|
322
|
+
} & import("..").StrictSelect<S, import("../orm/input-types").ProvisionIndexPayloadSelect>) => import("..").QueryBuilder<{
|
|
323
|
+
provisionIndex: import("..").InferSelectResult<import("../orm/input-types").ProvisionIndexPayload, S> | null;
|
|
324
|
+
}>;
|
|
325
|
+
setDataAtPath: <S extends import("../orm/input-types").SetDataAtPathPayloadSelect>(args: import("../orm/mutation").SetDataAtPathVariables, options: {
|
|
326
|
+
select: S;
|
|
327
|
+
} & import("..").StrictSelect<S, import("../orm/input-types").SetDataAtPathPayloadSelect>) => import("..").QueryBuilder<{
|
|
328
|
+
setDataAtPath: import("..").InferSelectResult<import("../orm/input-types").SetDataAtPathPayload, S> | null;
|
|
329
|
+
}>;
|
|
330
|
+
setPropsAndCommit: <S extends import("../orm/input-types").SetPropsAndCommitPayloadSelect>(args: import("../orm/mutation").SetPropsAndCommitVariables, options: {
|
|
331
|
+
select: S;
|
|
332
|
+
} & import("..").StrictSelect<S, import("../orm/input-types").SetPropsAndCommitPayloadSelect>) => import("..").QueryBuilder<{
|
|
333
|
+
setPropsAndCommit: import("..").InferSelectResult<import("../orm/input-types").SetPropsAndCommitPayload, S> | null;
|
|
334
|
+
}>;
|
|
335
|
+
provisionDatabaseWithUser: <S extends import("../orm/input-types").ProvisionDatabaseWithUserPayloadSelect>(args: import("../orm/mutation").ProvisionDatabaseWithUserVariables, options: {
|
|
336
|
+
select: S;
|
|
337
|
+
} & import("..").StrictSelect<S, import("../orm/input-types").ProvisionDatabaseWithUserPayloadSelect>) => import("..").QueryBuilder<{
|
|
338
|
+
provisionDatabaseWithUser: import("..").InferSelectResult<import("../orm/input-types").ProvisionDatabaseWithUserPayload, S> | null;
|
|
339
|
+
}>;
|
|
318
340
|
insertNodeAtPath: <S extends import("../orm/input-types").InsertNodeAtPathPayloadSelect>(args: import("../orm/mutation").InsertNodeAtPathVariables, options: {
|
|
319
341
|
select: S;
|
|
320
342
|
} & import("..").StrictSelect<S, import("../orm/input-types").InsertNodeAtPathPayloadSelect>) => import("..").QueryBuilder<{
|
|
@@ -330,6 +352,11 @@ export declare function getClient(contextName?: string): {
|
|
|
330
352
|
} & import("..").StrictSelect<S, import("../orm/input-types").SetAndCommitPayloadSelect>) => import("..").QueryBuilder<{
|
|
331
353
|
setAndCommit: import("..").InferSelectResult<import("../orm/input-types").SetAndCommitPayload, S> | null;
|
|
332
354
|
}>;
|
|
355
|
+
provisionRelation: <S extends import("../orm/input-types").ProvisionRelationPayloadSelect>(args: import("../orm/mutation").ProvisionRelationVariables, options: {
|
|
356
|
+
select: S;
|
|
357
|
+
} & import("..").StrictSelect<S, import("../orm/input-types").ProvisionRelationPayloadSelect>) => import("..").QueryBuilder<{
|
|
358
|
+
provisionRelation: import("..").InferSelectResult<import("../orm/input-types").ProvisionRelationPayload, S> | null;
|
|
359
|
+
}>;
|
|
333
360
|
applyRls: <S extends import("../orm/input-types").ApplyRlsPayloadSelect>(args: import("../orm/mutation").ApplyRlsVariables, options: {
|
|
334
361
|
select: S;
|
|
335
362
|
} & import("..").StrictSelect<S, import("../orm/input-types").ApplyRlsPayloadSelect>) => import("..").QueryBuilder<{
|
|
@@ -365,6 +392,11 @@ export declare function getClient(contextName?: string): {
|
|
|
365
392
|
} & import("..").StrictSelect<S, import("../orm/input-types").OneTimeTokenPayloadSelect>) => import("..").QueryBuilder<{
|
|
366
393
|
oneTimeToken: import("..").InferSelectResult<import("../orm/input-types").OneTimeTokenPayload, S> | null;
|
|
367
394
|
}>;
|
|
395
|
+
provisionTable: <S extends import("../orm/input-types").ProvisionTablePayloadSelect>(args: import("../orm/mutation").ProvisionTableVariables, options: {
|
|
396
|
+
select: S;
|
|
397
|
+
} & import("..").StrictSelect<S, import("../orm/input-types").ProvisionTablePayloadSelect>) => import("..").QueryBuilder<{
|
|
398
|
+
provisionTable: import("..").InferSelectResult<import("../orm/input-types").ProvisionTablePayload, S> | null;
|
|
399
|
+
}>;
|
|
368
400
|
sendVerificationEmail: <S extends import("../orm/input-types").SendVerificationEmailPayloadSelect>(args: import("../orm/mutation").SendVerificationEmailVariables, options: {
|
|
369
401
|
select: S;
|
|
370
402
|
} & import("..").StrictSelect<S, import("../orm/input-types").SendVerificationEmailPayloadSelect>) => import("..").QueryBuilder<{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { OrmClientConfig } from './client';
|
|
2
|
-
import { GetAllRecordModel } from './models/getAllRecord';
|
|
3
2
|
import { OrgGetManagersRecordModel } from './models/orgGetManagersRecord';
|
|
4
3
|
import { OrgGetSubordinatesRecordModel } from './models/orgGetSubordinatesRecord';
|
|
4
|
+
import { GetAllRecordModel } from './models/getAllRecord';
|
|
5
5
|
import { ObjectModel } from './models/object';
|
|
6
6
|
import { AppPermissionModel } from './models/appPermission';
|
|
7
7
|
import { OrgPermissionModel } from './models/orgPermission';
|
|
@@ -62,6 +62,8 @@ import { UserAuthModuleModel } from './models/userAuthModule';
|
|
|
62
62
|
import { UsersModuleModel } from './models/usersModule';
|
|
63
63
|
import { BlueprintModel } from './models/blueprint';
|
|
64
64
|
import { BlueprintTemplateModel } from './models/blueprintTemplate';
|
|
65
|
+
import { BlueprintConstructionModel } from './models/blueprintConstruction';
|
|
66
|
+
import { StorageModuleModel } from './models/storageModule';
|
|
65
67
|
import { DatabaseProvisionModuleModel } from './models/databaseProvisionModule';
|
|
66
68
|
import { AppAdminGrantModel } from './models/appAdminGrant';
|
|
67
69
|
import { AppOwnerGrantModel } from './models/appOwnerGrant';
|
|
@@ -92,9 +94,9 @@ import { RefModel } from './models/ref';
|
|
|
92
94
|
import { StoreModel } from './models/store';
|
|
93
95
|
import { AppPermissionDefaultModel } from './models/appPermissionDefault';
|
|
94
96
|
import { RoleTypeModel } from './models/roleType';
|
|
95
|
-
import { MigrateFileModel } from './models/migrateFile';
|
|
96
97
|
import { AppLimitDefaultModel } from './models/appLimitDefault';
|
|
97
98
|
import { OrgLimitDefaultModel } from './models/orgLimitDefault';
|
|
99
|
+
import { MigrateFileModel } from './models/migrateFile';
|
|
98
100
|
import { MembershipTypeModel } from './models/membershipType';
|
|
99
101
|
import { CommitModel } from './models/commit';
|
|
100
102
|
import { AppMembershipDefaultModel } from './models/appMembershipDefault';
|
|
@@ -138,9 +140,9 @@ export { createMutationOperations } from './mutation';
|
|
|
138
140
|
* ```
|
|
139
141
|
*/
|
|
140
142
|
export declare function createClient(config: OrmClientConfig): {
|
|
141
|
-
getAllRecord: GetAllRecordModel;
|
|
142
143
|
orgGetManagersRecord: OrgGetManagersRecordModel;
|
|
143
144
|
orgGetSubordinatesRecord: OrgGetSubordinatesRecordModel;
|
|
145
|
+
getAllRecord: GetAllRecordModel;
|
|
144
146
|
object: ObjectModel;
|
|
145
147
|
appPermission: AppPermissionModel;
|
|
146
148
|
orgPermission: OrgPermissionModel;
|
|
@@ -201,6 +203,8 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
201
203
|
usersModule: UsersModuleModel;
|
|
202
204
|
blueprint: BlueprintModel;
|
|
203
205
|
blueprintTemplate: BlueprintTemplateModel;
|
|
206
|
+
blueprintConstruction: BlueprintConstructionModel;
|
|
207
|
+
storageModule: StorageModuleModel;
|
|
204
208
|
databaseProvisionModule: DatabaseProvisionModuleModel;
|
|
205
209
|
appAdminGrant: AppAdminGrantModel;
|
|
206
210
|
appOwnerGrant: AppOwnerGrantModel;
|
|
@@ -231,9 +235,9 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
231
235
|
store: StoreModel;
|
|
232
236
|
appPermissionDefault: AppPermissionDefaultModel;
|
|
233
237
|
roleType: RoleTypeModel;
|
|
234
|
-
migrateFile: MigrateFileModel;
|
|
235
238
|
appLimitDefault: AppLimitDefaultModel;
|
|
236
239
|
orgLimitDefault: OrgLimitDefaultModel;
|
|
240
|
+
migrateFile: MigrateFileModel;
|
|
237
241
|
membershipType: MembershipTypeModel;
|
|
238
242
|
commit: CommitModel;
|
|
239
243
|
appMembershipDefault: AppMembershipDefaultModel;
|
|
@@ -296,6 +300,11 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
296
300
|
}) => import("./query-builder").QueryBuilder<{
|
|
297
301
|
orgPermissionsGetMask: string | null;
|
|
298
302
|
}>;
|
|
303
|
+
resolveBlueprintTable: (args: import("./query").ResolveBlueprintTableVariables, options?: {
|
|
304
|
+
select?: Record<string, unknown>;
|
|
305
|
+
}) => import("./query-builder").QueryBuilder<{
|
|
306
|
+
resolveBlueprintTable: string | null;
|
|
307
|
+
}>;
|
|
299
308
|
appPermissionsGetMaskByNames: (args: import("./query").AppPermissionsGetMaskByNamesVariables, options?: {
|
|
300
309
|
select?: Record<string, unknown>;
|
|
301
310
|
}) => import("./query-builder").QueryBuilder<{
|
|
@@ -423,26 +432,11 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
423
432
|
} & import("./select-types").StrictSelect<S, import("./input-types").RemoveNodeAtPathPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
424
433
|
removeNodeAtPath: import("./select-types").InferSelectResult<import("./input-types").RemoveNodeAtPathPayload, S> | null;
|
|
425
434
|
}>;
|
|
426
|
-
setDataAtPath: <S extends import("./input-types").SetDataAtPathPayloadSelect>(args: import("./mutation").SetDataAtPathVariables, options: {
|
|
427
|
-
select: S;
|
|
428
|
-
} & import("./select-types").StrictSelect<S, import("./input-types").SetDataAtPathPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
429
|
-
setDataAtPath: import("./select-types").InferSelectResult<import("./input-types").SetDataAtPathPayload, S> | null;
|
|
430
|
-
}>;
|
|
431
|
-
setPropsAndCommit: <S extends import("./input-types").SetPropsAndCommitPayloadSelect>(args: import("./mutation").SetPropsAndCommitVariables, options: {
|
|
432
|
-
select: S;
|
|
433
|
-
} & import("./select-types").StrictSelect<S, import("./input-types").SetPropsAndCommitPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
434
|
-
setPropsAndCommit: import("./select-types").InferSelectResult<import("./input-types").SetPropsAndCommitPayload, S> | null;
|
|
435
|
-
}>;
|
|
436
435
|
copyTemplateToBlueprint: <S extends import("./input-types").CopyTemplateToBlueprintPayloadSelect>(args: import("./mutation").CopyTemplateToBlueprintVariables, options: {
|
|
437
436
|
select: S;
|
|
438
437
|
} & import("./select-types").StrictSelect<S, import("./input-types").CopyTemplateToBlueprintPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
439
438
|
copyTemplateToBlueprint: import("./select-types").InferSelectResult<import("./input-types").CopyTemplateToBlueprintPayload, S> | null;
|
|
440
439
|
}>;
|
|
441
|
-
provisionDatabaseWithUser: <S extends import("./input-types").ProvisionDatabaseWithUserPayloadSelect>(args: import("./mutation").ProvisionDatabaseWithUserVariables, options: {
|
|
442
|
-
select: S;
|
|
443
|
-
} & import("./select-types").StrictSelect<S, import("./input-types").ProvisionDatabaseWithUserPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
444
|
-
provisionDatabaseWithUser: import("./select-types").InferSelectResult<import("./input-types").ProvisionDatabaseWithUserPayload, S> | null;
|
|
445
|
-
}>;
|
|
446
440
|
bootstrapUser: <S extends import("./input-types").BootstrapUserPayloadSelect>(args: import("./mutation").BootstrapUserVariables, options: {
|
|
447
441
|
select: S;
|
|
448
442
|
} & import("./select-types").StrictSelect<S, import("./input-types").BootstrapUserPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
@@ -453,6 +447,36 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
453
447
|
} & import("./select-types").StrictSelect<S, import("./input-types").SetFieldOrderPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
454
448
|
setFieldOrder: import("./select-types").InferSelectResult<import("./input-types").SetFieldOrderPayload, S> | null;
|
|
455
449
|
}>;
|
|
450
|
+
provisionUniqueConstraint: <S extends import("./input-types").ProvisionUniqueConstraintPayloadSelect>(args: import("./mutation").ProvisionUniqueConstraintVariables, options: {
|
|
451
|
+
select: S;
|
|
452
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").ProvisionUniqueConstraintPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
453
|
+
provisionUniqueConstraint: import("./select-types").InferSelectResult<import("./input-types").ProvisionUniqueConstraintPayload, S> | null;
|
|
454
|
+
}>;
|
|
455
|
+
provisionFullTextSearch: <S extends import("./input-types").ProvisionFullTextSearchPayloadSelect>(args: import("./mutation").ProvisionFullTextSearchVariables, options: {
|
|
456
|
+
select: S;
|
|
457
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").ProvisionFullTextSearchPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
458
|
+
provisionFullTextSearch: import("./select-types").InferSelectResult<import("./input-types").ProvisionFullTextSearchPayload, S> | null;
|
|
459
|
+
}>;
|
|
460
|
+
provisionIndex: <S extends import("./input-types").ProvisionIndexPayloadSelect>(args: import("./mutation").ProvisionIndexVariables, options: {
|
|
461
|
+
select: S;
|
|
462
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").ProvisionIndexPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
463
|
+
provisionIndex: import("./select-types").InferSelectResult<import("./input-types").ProvisionIndexPayload, S> | null;
|
|
464
|
+
}>;
|
|
465
|
+
setDataAtPath: <S extends import("./input-types").SetDataAtPathPayloadSelect>(args: import("./mutation").SetDataAtPathVariables, options: {
|
|
466
|
+
select: S;
|
|
467
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").SetDataAtPathPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
468
|
+
setDataAtPath: import("./select-types").InferSelectResult<import("./input-types").SetDataAtPathPayload, S> | null;
|
|
469
|
+
}>;
|
|
470
|
+
setPropsAndCommit: <S extends import("./input-types").SetPropsAndCommitPayloadSelect>(args: import("./mutation").SetPropsAndCommitVariables, options: {
|
|
471
|
+
select: S;
|
|
472
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").SetPropsAndCommitPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
473
|
+
setPropsAndCommit: import("./select-types").InferSelectResult<import("./input-types").SetPropsAndCommitPayload, S> | null;
|
|
474
|
+
}>;
|
|
475
|
+
provisionDatabaseWithUser: <S extends import("./input-types").ProvisionDatabaseWithUserPayloadSelect>(args: import("./mutation").ProvisionDatabaseWithUserVariables, options: {
|
|
476
|
+
select: S;
|
|
477
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").ProvisionDatabaseWithUserPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
478
|
+
provisionDatabaseWithUser: import("./select-types").InferSelectResult<import("./input-types").ProvisionDatabaseWithUserPayload, S> | null;
|
|
479
|
+
}>;
|
|
456
480
|
insertNodeAtPath: <S extends import("./input-types").InsertNodeAtPathPayloadSelect>(args: import("./mutation").InsertNodeAtPathVariables, options: {
|
|
457
481
|
select: S;
|
|
458
482
|
} & import("./select-types").StrictSelect<S, import("./input-types").InsertNodeAtPathPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
@@ -468,6 +492,11 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
468
492
|
} & import("./select-types").StrictSelect<S, import("./input-types").SetAndCommitPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
469
493
|
setAndCommit: import("./select-types").InferSelectResult<import("./input-types").SetAndCommitPayload, S> | null;
|
|
470
494
|
}>;
|
|
495
|
+
provisionRelation: <S extends import("./input-types").ProvisionRelationPayloadSelect>(args: import("./mutation").ProvisionRelationVariables, options: {
|
|
496
|
+
select: S;
|
|
497
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").ProvisionRelationPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
498
|
+
provisionRelation: import("./select-types").InferSelectResult<import("./input-types").ProvisionRelationPayload, S> | null;
|
|
499
|
+
}>;
|
|
471
500
|
applyRls: <S extends import("./input-types").ApplyRlsPayloadSelect>(args: import("./mutation").ApplyRlsVariables, options: {
|
|
472
501
|
select: S;
|
|
473
502
|
} & import("./select-types").StrictSelect<S, import("./input-types").ApplyRlsPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
@@ -503,6 +532,11 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
503
532
|
} & import("./select-types").StrictSelect<S, import("./input-types").OneTimeTokenPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
504
533
|
oneTimeToken: import("./select-types").InferSelectResult<import("./input-types").OneTimeTokenPayload, S> | null;
|
|
505
534
|
}>;
|
|
535
|
+
provisionTable: <S extends import("./input-types").ProvisionTablePayloadSelect>(args: import("./mutation").ProvisionTableVariables, options: {
|
|
536
|
+
select: S;
|
|
537
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").ProvisionTablePayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
538
|
+
provisionTable: import("./select-types").InferSelectResult<import("./input-types").ProvisionTablePayload, S> | null;
|
|
539
|
+
}>;
|
|
506
540
|
sendVerificationEmail: <S extends import("./input-types").SendVerificationEmailPayloadSelect>(args: import("./mutation").SendVerificationEmailVariables, options: {
|
|
507
541
|
select: S;
|
|
508
542
|
} & import("./select-types").StrictSelect<S, import("./input-types").SendVerificationEmailPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
package/esm/public/orm/index.js
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* DO NOT EDIT - changes will be overwritten
|
|
5
5
|
*/
|
|
6
6
|
import { OrmClient } from './client';
|
|
7
|
-
import { GetAllRecordModel } from './models/getAllRecord';
|
|
8
7
|
import { OrgGetManagersRecordModel } from './models/orgGetManagersRecord';
|
|
9
8
|
import { OrgGetSubordinatesRecordModel } from './models/orgGetSubordinatesRecord';
|
|
9
|
+
import { GetAllRecordModel } from './models/getAllRecord';
|
|
10
10
|
import { ObjectModel } from './models/object';
|
|
11
11
|
import { AppPermissionModel } from './models/appPermission';
|
|
12
12
|
import { OrgPermissionModel } from './models/orgPermission';
|
|
@@ -67,6 +67,8 @@ import { UserAuthModuleModel } from './models/userAuthModule';
|
|
|
67
67
|
import { UsersModuleModel } from './models/usersModule';
|
|
68
68
|
import { BlueprintModel } from './models/blueprint';
|
|
69
69
|
import { BlueprintTemplateModel } from './models/blueprintTemplate';
|
|
70
|
+
import { BlueprintConstructionModel } from './models/blueprintConstruction';
|
|
71
|
+
import { StorageModuleModel } from './models/storageModule';
|
|
70
72
|
import { DatabaseProvisionModuleModel } from './models/databaseProvisionModule';
|
|
71
73
|
import { AppAdminGrantModel } from './models/appAdminGrant';
|
|
72
74
|
import { AppOwnerGrantModel } from './models/appOwnerGrant';
|
|
@@ -97,9 +99,9 @@ import { RefModel } from './models/ref';
|
|
|
97
99
|
import { StoreModel } from './models/store';
|
|
98
100
|
import { AppPermissionDefaultModel } from './models/appPermissionDefault';
|
|
99
101
|
import { RoleTypeModel } from './models/roleType';
|
|
100
|
-
import { MigrateFileModel } from './models/migrateFile';
|
|
101
102
|
import { AppLimitDefaultModel } from './models/appLimitDefault';
|
|
102
103
|
import { OrgLimitDefaultModel } from './models/orgLimitDefault';
|
|
104
|
+
import { MigrateFileModel } from './models/migrateFile';
|
|
103
105
|
import { MembershipTypeModel } from './models/membershipType';
|
|
104
106
|
import { CommitModel } from './models/commit';
|
|
105
107
|
import { AppMembershipDefaultModel } from './models/appMembershipDefault';
|
|
@@ -146,9 +148,9 @@ export { createMutationOperations } from './mutation';
|
|
|
146
148
|
export function createClient(config) {
|
|
147
149
|
const client = new OrmClient(config);
|
|
148
150
|
return {
|
|
149
|
-
getAllRecord: new GetAllRecordModel(client),
|
|
150
151
|
orgGetManagersRecord: new OrgGetManagersRecordModel(client),
|
|
151
152
|
orgGetSubordinatesRecord: new OrgGetSubordinatesRecordModel(client),
|
|
153
|
+
getAllRecord: new GetAllRecordModel(client),
|
|
152
154
|
object: new ObjectModel(client),
|
|
153
155
|
appPermission: new AppPermissionModel(client),
|
|
154
156
|
orgPermission: new OrgPermissionModel(client),
|
|
@@ -209,6 +211,8 @@ export function createClient(config) {
|
|
|
209
211
|
usersModule: new UsersModuleModel(client),
|
|
210
212
|
blueprint: new BlueprintModel(client),
|
|
211
213
|
blueprintTemplate: new BlueprintTemplateModel(client),
|
|
214
|
+
blueprintConstruction: new BlueprintConstructionModel(client),
|
|
215
|
+
storageModule: new StorageModuleModel(client),
|
|
212
216
|
databaseProvisionModule: new DatabaseProvisionModuleModel(client),
|
|
213
217
|
appAdminGrant: new AppAdminGrantModel(client),
|
|
214
218
|
appOwnerGrant: new AppOwnerGrantModel(client),
|
|
@@ -239,9 +243,9 @@ export function createClient(config) {
|
|
|
239
243
|
store: new StoreModel(client),
|
|
240
244
|
appPermissionDefault: new AppPermissionDefaultModel(client),
|
|
241
245
|
roleType: new RoleTypeModel(client),
|
|
242
|
-
migrateFile: new MigrateFileModel(client),
|
|
243
246
|
appLimitDefault: new AppLimitDefaultModel(client),
|
|
244
247
|
orgLimitDefault: new OrgLimitDefaultModel(client),
|
|
248
|
+
migrateFile: new MigrateFileModel(client),
|
|
245
249
|
membershipType: new MembershipTypeModel(client),
|
|
246
250
|
commit: new CommitModel(client),
|
|
247
251
|
appMembershipDefault: new AppMembershipDefaultModel(client),
|