@constructive-sdk/cli 0.20.4 → 0.20.6
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/admin/cli/commands/{request-upload-url.d.ts → app-limit-cap.d.ts} +1 -1
- package/admin/cli/commands/app-limit-cap.js +272 -0
- package/{esm/admin/cli/commands/request-upload-url.d.ts → admin/cli/commands/app-limit-caps-default.d.ts} +1 -1
- package/admin/cli/commands/app-limit-caps-default.js +252 -0
- package/{auth/cli/commands/request-upload-url.d.ts → admin/cli/commands/app-limit-credit-code-item.d.ts} +1 -1
- package/admin/cli/commands/app-limit-credit-code-item.js +292 -0
- package/{esm/auth/cli/commands/request-upload-url.d.ts → admin/cli/commands/app-limit-credit-code.d.ts} +1 -1
- package/admin/cli/commands/app-limit-credit-code.js +296 -0
- package/admin/cli/commands/app-limit-credit-redemption.d.ts +8 -0
- package/admin/cli/commands/app-limit-credit-redemption.js +250 -0
- package/admin/cli/commands/app-limit-credit.d.ts +8 -0
- package/admin/cli/commands/app-limit-credit.js +316 -0
- package/admin/cli/commands/app-limit.js +66 -0
- package/admin/cli/commands/org-limit-aggregate.js +88 -0
- package/admin/cli/commands/org-limit-cap.d.ts +8 -0
- package/admin/cli/commands/org-limit-cap.js +272 -0
- package/admin/cli/commands/org-limit-caps-default.d.ts +8 -0
- package/admin/cli/commands/org-limit-caps-default.js +252 -0
- package/admin/cli/commands/org-limit-credit.d.ts +8 -0
- package/admin/cli/commands/org-limit-credit.js +338 -0
- package/admin/cli/commands/org-limit.js +66 -0
- package/admin/cli/commands.js +25 -9
- package/admin/cli/executor.d.ts +12 -8
- package/admin/orm/index.d.ts +24 -11
- package/admin/orm/index.js +24 -6
- package/admin/orm/input-types.d.ts +2108 -545
- package/admin/orm/input-types.js +13 -1
- package/admin/orm/models/appLimitCap.d.ts +56 -0
- package/admin/orm/models/appLimitCap.js +100 -0
- package/admin/orm/models/appLimitCapsDefault.d.ts +56 -0
- package/admin/orm/models/appLimitCapsDefault.js +100 -0
- package/admin/orm/models/appLimitCredit.d.ts +56 -0
- package/admin/orm/models/appLimitCredit.js +100 -0
- package/admin/orm/models/appLimitCreditCode.d.ts +56 -0
- package/admin/orm/models/appLimitCreditCode.js +100 -0
- package/admin/orm/models/appLimitCreditCodeItem.d.ts +56 -0
- package/admin/orm/models/appLimitCreditCodeItem.js +100 -0
- package/admin/orm/models/appLimitCreditRedemption.d.ts +56 -0
- package/admin/orm/models/appLimitCreditRedemption.js +100 -0
- package/admin/orm/models/index.d.ts +12 -3
- package/admin/orm/models/index.js +25 -7
- package/admin/orm/models/orgLimitCap.d.ts +56 -0
- package/admin/orm/models/orgLimitCap.js +100 -0
- package/admin/orm/models/orgLimitCapsDefault.d.ts +56 -0
- package/admin/orm/models/orgLimitCapsDefault.js +100 -0
- package/admin/orm/models/orgLimitCredit.d.ts +56 -0
- package/admin/orm/models/orgLimitCredit.js +100 -0
- package/admin/orm/mutation/index.d.ts +1 -16
- package/admin/orm/mutation/index.js +0 -12
- package/admin/orm/query-builder.js +24 -0
- package/auth/cli/commands.js +1 -3
- package/auth/cli/executor.d.ts +0 -5
- package/auth/orm/index.d.ts +0 -5
- package/auth/orm/input-types.d.ts +0 -38
- package/auth/orm/mutation/index.d.ts +1 -16
- package/auth/orm/mutation/index.js +0 -12
- package/auth/orm/query-builder.js +24 -0
- package/esm/admin/cli/commands/app-limit-cap.d.ts +8 -0
- package/esm/admin/cli/commands/app-limit-cap.js +270 -0
- package/esm/admin/cli/commands/app-limit-caps-default.d.ts +8 -0
- package/esm/admin/cli/commands/app-limit-caps-default.js +250 -0
- package/esm/admin/cli/commands/app-limit-credit-code-item.d.ts +8 -0
- package/esm/admin/cli/commands/app-limit-credit-code-item.js +290 -0
- package/esm/admin/cli/commands/app-limit-credit-code.d.ts +8 -0
- package/esm/admin/cli/commands/app-limit-credit-code.js +294 -0
- package/esm/admin/cli/commands/app-limit-credit-redemption.d.ts +8 -0
- package/esm/admin/cli/commands/app-limit-credit-redemption.js +248 -0
- package/esm/admin/cli/commands/app-limit-credit.d.ts +8 -0
- package/esm/admin/cli/commands/app-limit-credit.js +314 -0
- package/esm/admin/cli/commands/app-limit.js +66 -0
- package/esm/admin/cli/commands/org-limit-aggregate.js +88 -0
- package/esm/admin/cli/commands/org-limit-cap.d.ts +8 -0
- package/esm/admin/cli/commands/org-limit-cap.js +270 -0
- package/esm/admin/cli/commands/org-limit-caps-default.d.ts +8 -0
- package/esm/admin/cli/commands/org-limit-caps-default.js +250 -0
- package/esm/admin/cli/commands/org-limit-credit.d.ts +8 -0
- package/esm/admin/cli/commands/org-limit-credit.js +336 -0
- package/esm/admin/cli/commands/org-limit.js +66 -0
- package/esm/admin/cli/commands.js +25 -9
- package/esm/admin/cli/executor.d.ts +12 -8
- package/esm/admin/orm/index.d.ts +24 -11
- package/esm/admin/orm/index.js +24 -6
- package/esm/admin/orm/input-types.d.ts +2108 -545
- package/esm/admin/orm/input-types.js +13 -1
- package/esm/admin/orm/models/appLimitCap.d.ts +56 -0
- package/esm/admin/orm/models/appLimitCap.js +96 -0
- package/esm/admin/orm/models/appLimitCapsDefault.d.ts +56 -0
- package/esm/admin/orm/models/appLimitCapsDefault.js +96 -0
- package/esm/admin/orm/models/appLimitCredit.d.ts +56 -0
- package/esm/admin/orm/models/appLimitCredit.js +96 -0
- package/esm/admin/orm/models/appLimitCreditCode.d.ts +56 -0
- package/esm/admin/orm/models/appLimitCreditCode.js +96 -0
- package/esm/admin/orm/models/appLimitCreditCodeItem.d.ts +56 -0
- package/esm/admin/orm/models/appLimitCreditCodeItem.js +96 -0
- package/esm/admin/orm/models/appLimitCreditRedemption.d.ts +56 -0
- package/esm/admin/orm/models/appLimitCreditRedemption.js +96 -0
- package/esm/admin/orm/models/index.d.ts +12 -3
- package/esm/admin/orm/models/index.js +12 -3
- package/esm/admin/orm/models/orgLimitCap.d.ts +56 -0
- package/esm/admin/orm/models/orgLimitCap.js +96 -0
- package/esm/admin/orm/models/orgLimitCapsDefault.d.ts +56 -0
- package/esm/admin/orm/models/orgLimitCapsDefault.js +96 -0
- package/esm/admin/orm/models/orgLimitCredit.d.ts +56 -0
- package/esm/admin/orm/models/orgLimitCredit.js +96 -0
- package/esm/admin/orm/mutation/index.d.ts +1 -16
- package/esm/admin/orm/mutation/index.js +0 -12
- package/esm/admin/orm/query-builder.js +24 -0
- package/esm/auth/cli/commands.js +1 -3
- package/esm/auth/cli/executor.d.ts +0 -5
- package/esm/auth/orm/index.d.ts +0 -5
- package/esm/auth/orm/input-types.d.ts +0 -38
- package/esm/auth/orm/mutation/index.d.ts +1 -16
- package/esm/auth/orm/mutation/index.js +0 -12
- package/esm/auth/orm/query-builder.js +24 -0
- package/esm/objects/cli/commands.js +1 -3
- package/esm/objects/cli/executor.d.ts +0 -5
- package/esm/objects/orm/index.d.ts +0 -5
- package/esm/objects/orm/input-types.d.ts +0 -38
- package/esm/objects/orm/mutation/index.d.ts +1 -16
- package/esm/objects/orm/mutation/index.js +0 -12
- package/esm/objects/orm/query-builder.js +24 -0
- package/esm/public/cli/commands/api-setting.d.ts +8 -0
- package/esm/public/cli/commands/api-setting.js +468 -0
- package/esm/public/cli/commands/app-limit-cap.d.ts +8 -0
- package/esm/public/cli/commands/app-limit-cap.js +270 -0
- package/esm/public/cli/commands/app-limit-caps-default.d.ts +8 -0
- package/esm/public/cli/commands/app-limit-caps-default.js +250 -0
- package/esm/public/cli/commands/app-limit-credit-code-item.d.ts +8 -0
- package/esm/public/cli/commands/app-limit-credit-code-item.js +290 -0
- package/esm/public/cli/commands/app-limit-credit-code.d.ts +8 -0
- package/esm/public/cli/commands/app-limit-credit-code.js +294 -0
- package/esm/public/cli/commands/app-limit-credit-redemption.d.ts +8 -0
- package/esm/public/cli/commands/app-limit-credit-redemption.js +248 -0
- package/esm/public/cli/commands/app-limit-credit.d.ts +8 -0
- package/esm/public/cli/commands/app-limit-credit.js +314 -0
- package/esm/public/cli/commands/app-limit.js +66 -0
- package/esm/public/cli/commands/append-smart-tags.d.ts +8 -0
- package/esm/{admin/cli/commands/request-upload-url.js → public/cli/commands/append-smart-tags.js} +3 -3
- package/esm/public/cli/commands/billing-provider-module.d.ts +8 -0
- package/esm/public/cli/commands/billing-provider-module.js +624 -0
- package/esm/public/cli/commands/cors-setting.d.ts +8 -0
- package/esm/public/cli/commands/cors-setting.js +272 -0
- package/esm/public/cli/commands/database-setting.d.ts +8 -0
- package/esm/public/cli/commands/database-setting.js +448 -0
- package/esm/public/cli/commands/entity-type-provision.js +22 -0
- package/esm/public/cli/commands/function.d.ts +8 -0
- package/esm/public/cli/commands/function.js +268 -0
- package/esm/public/cli/commands/limits-module.js +198 -0
- package/esm/public/cli/commands/org-limit-aggregate.js +88 -0
- package/esm/public/cli/commands/org-limit-cap.d.ts +8 -0
- package/esm/public/cli/commands/org-limit-cap.js +270 -0
- package/esm/public/cli/commands/org-limit-caps-default.d.ts +8 -0
- package/esm/public/cli/commands/org-limit-caps-default.js +250 -0
- package/esm/public/cli/commands/org-limit-credit.d.ts +8 -0
- package/esm/public/cli/commands/org-limit-credit.js +336 -0
- package/esm/public/cli/commands/org-limit.js +66 -0
- package/esm/public/cli/commands/partition.d.ts +8 -0
- package/esm/public/cli/commands/partition.js +388 -0
- package/esm/public/cli/commands/plans-module.js +44 -0
- package/esm/public/cli/commands/pubkey-setting.d.ts +8 -0
- package/esm/public/cli/commands/pubkey-setting.js +382 -0
- package/esm/public/cli/commands/realtime-module.d.ts +8 -0
- package/esm/public/cli/commands/realtime-module.js +448 -0
- package/esm/public/cli/commands/rls-setting.d.ts +8 -0
- package/esm/public/cli/commands/rls-setting.js +404 -0
- package/esm/public/cli/commands/storage-module.js +198 -0
- package/esm/public/cli/commands/webauthn-setting.d.ts +8 -0
- package/esm/public/cli/commands/webauthn-setting.js +580 -0
- package/esm/public/cli/commands.js +43 -5
- package/esm/public/cli/executor.d.ts +25 -6
- package/esm/public/orm/index.d.ts +45 -7
- package/esm/public/orm/index.js +40 -2
- package/esm/public/orm/input-types.d.ts +4955 -295
- package/esm/public/orm/input-types.js +28 -0
- package/esm/public/orm/models/apiSetting.d.ts +56 -0
- package/esm/public/orm/models/apiSetting.js +96 -0
- package/esm/public/orm/models/appLimitCap.d.ts +56 -0
- package/esm/public/orm/models/appLimitCap.js +96 -0
- package/esm/public/orm/models/appLimitCapsDefault.d.ts +56 -0
- package/esm/public/orm/models/appLimitCapsDefault.js +96 -0
- package/esm/public/orm/models/appLimitCredit.d.ts +56 -0
- package/esm/public/orm/models/appLimitCredit.js +96 -0
- package/esm/public/orm/models/appLimitCreditCode.d.ts +56 -0
- package/esm/public/orm/models/appLimitCreditCode.js +96 -0
- package/esm/public/orm/models/appLimitCreditCodeItem.d.ts +56 -0
- package/esm/public/orm/models/appLimitCreditCodeItem.js +96 -0
- package/esm/public/orm/models/appLimitCreditRedemption.d.ts +56 -0
- package/esm/public/orm/models/appLimitCreditRedemption.js +96 -0
- package/esm/public/orm/models/billingProviderModule.d.ts +56 -0
- package/esm/public/orm/models/billingProviderModule.js +96 -0
- package/esm/public/orm/models/corsSetting.d.ts +56 -0
- package/esm/public/orm/models/corsSetting.js +96 -0
- package/esm/public/orm/models/databaseSetting.d.ts +56 -0
- package/esm/public/orm/models/databaseSetting.js +96 -0
- package/esm/public/orm/models/function.d.ts +56 -0
- package/esm/public/orm/models/function.js +96 -0
- package/esm/public/orm/models/index.d.ts +20 -1
- package/esm/public/orm/models/index.js +20 -1
- package/esm/public/orm/models/orgLimitCap.d.ts +56 -0
- package/esm/public/orm/models/orgLimitCap.js +96 -0
- package/esm/public/orm/models/orgLimitCapsDefault.d.ts +56 -0
- package/esm/public/orm/models/orgLimitCapsDefault.js +96 -0
- package/esm/public/orm/models/orgLimitCredit.d.ts +56 -0
- package/esm/public/orm/models/orgLimitCredit.js +96 -0
- package/esm/public/orm/models/partition.d.ts +56 -0
- package/esm/public/orm/models/partition.js +96 -0
- package/esm/public/orm/models/pubkeySetting.d.ts +56 -0
- package/esm/public/orm/models/pubkeySetting.js +96 -0
- package/esm/public/orm/models/realtimeModule.d.ts +56 -0
- package/esm/public/orm/models/realtimeModule.js +96 -0
- package/esm/public/orm/models/rlsSetting.d.ts +56 -0
- package/esm/public/orm/models/rlsSetting.js +96 -0
- package/esm/public/orm/models/webauthnSetting.d.ts +56 -0
- package/esm/public/orm/models/webauthnSetting.js +96 -0
- package/esm/public/orm/mutation/index.d.ts +9 -16
- package/esm/public/orm/mutation/index.js +12 -12
- package/esm/public/orm/query-builder.js +24 -0
- package/objects/cli/commands.js +1 -3
- package/objects/cli/executor.d.ts +0 -5
- package/objects/orm/index.d.ts +0 -5
- package/objects/orm/input-types.d.ts +0 -38
- package/objects/orm/mutation/index.d.ts +1 -16
- package/objects/orm/mutation/index.js +0 -12
- package/objects/orm/query-builder.js +24 -0
- package/package.json +4 -4
- package/public/cli/commands/api-setting.d.ts +8 -0
- package/public/cli/commands/api-setting.js +470 -0
- package/public/cli/commands/app-limit-cap.d.ts +8 -0
- package/public/cli/commands/app-limit-cap.js +272 -0
- package/public/cli/commands/app-limit-caps-default.d.ts +8 -0
- package/public/cli/commands/app-limit-caps-default.js +252 -0
- package/public/cli/commands/app-limit-credit-code-item.d.ts +8 -0
- package/public/cli/commands/app-limit-credit-code-item.js +292 -0
- package/public/cli/commands/app-limit-credit-code.d.ts +8 -0
- package/public/cli/commands/app-limit-credit-code.js +296 -0
- package/public/cli/commands/app-limit-credit-redemption.d.ts +8 -0
- package/public/cli/commands/app-limit-credit-redemption.js +250 -0
- package/public/cli/commands/app-limit-credit.d.ts +8 -0
- package/public/cli/commands/app-limit-credit.js +316 -0
- package/public/cli/commands/app-limit.js +66 -0
- package/public/cli/commands/append-smart-tags.d.ts +8 -0
- package/{objects/cli/commands/request-upload-url.js → public/cli/commands/append-smart-tags.js} +3 -3
- package/public/cli/commands/billing-provider-module.d.ts +8 -0
- package/public/cli/commands/billing-provider-module.js +626 -0
- package/public/cli/commands/cors-setting.d.ts +8 -0
- package/public/cli/commands/cors-setting.js +274 -0
- package/public/cli/commands/database-setting.d.ts +8 -0
- package/public/cli/commands/database-setting.js +450 -0
- package/public/cli/commands/entity-type-provision.js +22 -0
- package/public/cli/commands/function.d.ts +8 -0
- package/public/cli/commands/function.js +270 -0
- package/public/cli/commands/limits-module.js +198 -0
- package/public/cli/commands/org-limit-aggregate.js +88 -0
- package/public/cli/commands/org-limit-cap.d.ts +8 -0
- package/public/cli/commands/org-limit-cap.js +272 -0
- package/public/cli/commands/org-limit-caps-default.d.ts +8 -0
- package/public/cli/commands/org-limit-caps-default.js +252 -0
- package/public/cli/commands/org-limit-credit.d.ts +8 -0
- package/public/cli/commands/org-limit-credit.js +338 -0
- package/public/cli/commands/org-limit.js +66 -0
- package/public/cli/commands/partition.d.ts +8 -0
- package/public/cli/commands/partition.js +390 -0
- package/public/cli/commands/plans-module.js +44 -0
- package/public/cli/commands/pubkey-setting.d.ts +8 -0
- package/public/cli/commands/pubkey-setting.js +384 -0
- package/public/cli/commands/realtime-module.d.ts +8 -0
- package/public/cli/commands/realtime-module.js +450 -0
- package/public/cli/commands/rls-setting.d.ts +8 -0
- package/public/cli/commands/rls-setting.js +406 -0
- package/public/cli/commands/storage-module.js +198 -0
- package/public/cli/commands/webauthn-setting.d.ts +8 -0
- package/public/cli/commands/webauthn-setting.js +582 -0
- package/public/cli/commands.js +43 -5
- package/public/cli/executor.d.ts +25 -6
- package/public/orm/index.d.ts +45 -7
- package/public/orm/index.js +40 -2
- package/public/orm/input-types.d.ts +4955 -295
- package/public/orm/input-types.js +28 -0
- package/public/orm/models/apiSetting.d.ts +56 -0
- package/public/orm/models/apiSetting.js +100 -0
- package/public/orm/models/appLimitCap.d.ts +56 -0
- package/public/orm/models/appLimitCap.js +100 -0
- package/public/orm/models/appLimitCapsDefault.d.ts +56 -0
- package/public/orm/models/appLimitCapsDefault.js +100 -0
- package/public/orm/models/appLimitCredit.d.ts +56 -0
- package/public/orm/models/appLimitCredit.js +100 -0
- package/public/orm/models/appLimitCreditCode.d.ts +56 -0
- package/public/orm/models/appLimitCreditCode.js +100 -0
- package/public/orm/models/appLimitCreditCodeItem.d.ts +56 -0
- package/public/orm/models/appLimitCreditCodeItem.js +100 -0
- package/public/orm/models/appLimitCreditRedemption.d.ts +56 -0
- package/public/orm/models/appLimitCreditRedemption.js +100 -0
- package/public/orm/models/billingProviderModule.d.ts +56 -0
- package/public/orm/models/billingProviderModule.js +100 -0
- package/public/orm/models/corsSetting.d.ts +56 -0
- package/public/orm/models/corsSetting.js +100 -0
- package/public/orm/models/databaseSetting.d.ts +56 -0
- package/public/orm/models/databaseSetting.js +100 -0
- package/public/orm/models/function.d.ts +56 -0
- package/public/orm/models/function.js +100 -0
- package/public/orm/models/index.d.ts +20 -1
- package/public/orm/models/index.js +43 -5
- package/public/orm/models/orgLimitCap.d.ts +56 -0
- package/public/orm/models/orgLimitCap.js +100 -0
- package/public/orm/models/orgLimitCapsDefault.d.ts +56 -0
- package/public/orm/models/orgLimitCapsDefault.js +100 -0
- package/public/orm/models/orgLimitCredit.d.ts +56 -0
- package/public/orm/models/orgLimitCredit.js +100 -0
- package/public/orm/models/partition.d.ts +56 -0
- package/public/orm/models/partition.js +100 -0
- package/public/orm/models/pubkeySetting.d.ts +56 -0
- package/public/orm/models/pubkeySetting.js +100 -0
- package/public/orm/models/realtimeModule.d.ts +56 -0
- package/public/orm/models/realtimeModule.js +100 -0
- package/public/orm/models/rlsSetting.d.ts +56 -0
- package/public/orm/models/rlsSetting.js +100 -0
- package/public/orm/models/webauthnSetting.d.ts +56 -0
- package/public/orm/models/webauthnSetting.js +100 -0
- package/public/orm/mutation/index.d.ts +9 -16
- package/public/orm/mutation/index.js +12 -12
- package/public/orm/query-builder.js +24 -0
- package/admin/cli/commands/request-upload-url.js +0 -36
- package/auth/cli/commands/request-upload-url.js +0 -36
- package/esm/auth/cli/commands/request-upload-url.js +0 -34
- package/esm/objects/cli/commands/request-upload-url.d.ts +0 -8
- package/esm/objects/cli/commands/request-upload-url.js +0 -34
- package/esm/public/cli/commands/request-upload-url.d.ts +0 -8
- package/esm/public/cli/commands/request-upload-url.js +0 -34
- package/objects/cli/commands/request-upload-url.d.ts +0 -8
- package/public/cli/commands/request-upload-url.d.ts +0 -8
- package/public/cli/commands/request-upload-url.js +0 -36
|
@@ -19,6 +19,7 @@ import tableCmd from './commands/table';
|
|
|
19
19
|
import checkConstraintCmd from './commands/check-constraint';
|
|
20
20
|
import fieldCmd from './commands/field';
|
|
21
21
|
import spatialRelationCmd from './commands/spatial-relation';
|
|
22
|
+
import partitionCmd from './commands/partition';
|
|
22
23
|
import foreignKeyConstraintCmd from './commands/foreign-key-constraint';
|
|
23
24
|
import fullTextSearchCmd from './commands/full-text-search';
|
|
24
25
|
import indexCmd from './commands/index';
|
|
@@ -36,20 +37,24 @@ import secureTableProvisionCmd from './commands/secure-table-provision';
|
|
|
36
37
|
import relationProvisionCmd from './commands/relation-provision';
|
|
37
38
|
import sessionSecretsModuleCmd from './commands/session-secrets-module';
|
|
38
39
|
import identityProvidersModuleCmd from './commands/identity-providers-module';
|
|
40
|
+
import realtimeModuleCmd from './commands/realtime-module';
|
|
39
41
|
import schemaGrantCmd from './commands/schema-grant';
|
|
40
42
|
import defaultPrivilegeCmd from './commands/default-privilege';
|
|
41
43
|
import enumCmd from './commands/enum';
|
|
44
|
+
import functionCmd from './commands/function';
|
|
42
45
|
import apiSchemaCmd from './commands/api-schema';
|
|
43
46
|
import apiModuleCmd from './commands/api-module';
|
|
44
47
|
import domainCmd from './commands/domain';
|
|
45
48
|
import siteMetadatumCmd from './commands/site-metadatum';
|
|
46
49
|
import siteModuleCmd from './commands/site-module';
|
|
47
50
|
import siteThemeCmd from './commands/site-theme';
|
|
51
|
+
import corsSettingCmd from './commands/cors-setting';
|
|
48
52
|
import triggerFunctionCmd from './commands/trigger-function';
|
|
49
53
|
import databaseTransferCmd from './commands/database-transfer';
|
|
50
54
|
import apiCmd from './commands/api';
|
|
51
55
|
import siteCmd from './commands/site';
|
|
52
56
|
import appCmd from './commands/app';
|
|
57
|
+
import apiSettingCmd from './commands/api-setting';
|
|
53
58
|
import connectedAccountsModuleCmd from './commands/connected-accounts-module';
|
|
54
59
|
import cryptoAddressesModuleCmd from './commands/crypto-addresses-module';
|
|
55
60
|
import cryptoAuthModuleCmd from './commands/crypto-auth-module';
|
|
@@ -91,7 +96,11 @@ import orgChartEdgeCmd from './commands/org-chart-edge';
|
|
|
91
96
|
import orgChartEdgeGrantCmd from './commands/org-chart-edge-grant';
|
|
92
97
|
import orgPermissionDefaultCmd from './commands/org-permission-default';
|
|
93
98
|
import appLimitCmd from './commands/app-limit';
|
|
99
|
+
import appLimitCreditCmd from './commands/app-limit-credit';
|
|
100
|
+
import appLimitCreditCodeItemCmd from './commands/app-limit-credit-code-item';
|
|
101
|
+
import appLimitCreditRedemptionCmd from './commands/app-limit-credit-redemption';
|
|
94
102
|
import orgLimitCmd from './commands/org-limit';
|
|
103
|
+
import orgLimitCreditCmd from './commands/org-limit-credit';
|
|
95
104
|
import orgLimitAggregateCmd from './commands/org-limit-aggregate';
|
|
96
105
|
import appStepCmd from './commands/app-step';
|
|
97
106
|
import appAchievementCmd from './commands/app-achievement';
|
|
@@ -113,6 +122,11 @@ import identityProviderCmd from './commands/identity-provider';
|
|
|
113
122
|
import refCmd from './commands/ref';
|
|
114
123
|
import storeCmd from './commands/store';
|
|
115
124
|
import appPermissionDefaultCmd from './commands/app-permission-default';
|
|
125
|
+
import appLimitCreditCodeCmd from './commands/app-limit-credit-code';
|
|
126
|
+
import appLimitCapsDefaultCmd from './commands/app-limit-caps-default';
|
|
127
|
+
import orgLimitCapsDefaultCmd from './commands/org-limit-caps-default';
|
|
128
|
+
import appLimitCapCmd from './commands/app-limit-cap';
|
|
129
|
+
import orgLimitCapCmd from './commands/org-limit-cap';
|
|
116
130
|
import membershipTypeCmd from './commands/membership-type';
|
|
117
131
|
import migrateFileCmd from './commands/migrate-file';
|
|
118
132
|
import devicesModuleCmd from './commands/devices-module';
|
|
@@ -121,19 +135,24 @@ import appLimitDefaultCmd from './commands/app-limit-default';
|
|
|
121
135
|
import orgLimitDefaultCmd from './commands/org-limit-default';
|
|
122
136
|
import userConnectedAccountCmd from './commands/user-connected-account';
|
|
123
137
|
import commitCmd from './commands/commit';
|
|
138
|
+
import pubkeySettingCmd from './commands/pubkey-setting';
|
|
124
139
|
import rateLimitsModuleCmd from './commands/rate-limits-module';
|
|
125
140
|
import appMembershipDefaultCmd from './commands/app-membership-default';
|
|
126
141
|
import orgMembershipDefaultCmd from './commands/org-membership-default';
|
|
142
|
+
import rlsSettingCmd from './commands/rls-setting';
|
|
127
143
|
import appLimitEventCmd from './commands/app-limit-event';
|
|
128
144
|
import orgLimitEventCmd from './commands/org-limit-event';
|
|
129
|
-
import plansModuleCmd from './commands/plans-module';
|
|
130
145
|
import rlsModuleCmd from './commands/rls-module';
|
|
146
|
+
import databaseSettingCmd from './commands/database-setting';
|
|
147
|
+
import plansModuleCmd from './commands/plans-module';
|
|
131
148
|
import sqlActionCmd from './commands/sql-action';
|
|
132
149
|
import billingModuleCmd from './commands/billing-module';
|
|
133
150
|
import astMigrationCmd from './commands/ast-migration';
|
|
134
151
|
import userCmd from './commands/user';
|
|
135
152
|
import orgMembershipSettingCmd from './commands/org-membership-setting';
|
|
153
|
+
import webauthnSettingCmd from './commands/webauthn-setting';
|
|
136
154
|
import appMembershipCmd from './commands/app-membership';
|
|
155
|
+
import billingProviderModuleCmd from './commands/billing-provider-module';
|
|
137
156
|
import hierarchyModuleCmd from './commands/hierarchy-module';
|
|
138
157
|
import currentUserIdCmd from './commands/current-user-id';
|
|
139
158
|
import currentUserAgentCmd from './commands/current-user-agent';
|
|
@@ -183,6 +202,7 @@ import copyTemplateToBlueprintCmd from './commands/copy-template-to-blueprint';
|
|
|
183
202
|
import provisionSpatialRelationCmd from './commands/provision-spatial-relation';
|
|
184
203
|
import bootstrapUserCmd from './commands/bootstrap-user';
|
|
185
204
|
import setFieldOrderCmd from './commands/set-field-order';
|
|
205
|
+
import appendSmartTagsCmd from './commands/append-smart-tags';
|
|
186
206
|
import provisionUniqueConstraintCmd from './commands/provision-unique-constraint';
|
|
187
207
|
import provisionFullTextSearchCmd from './commands/provision-full-text-search';
|
|
188
208
|
import provisionIndexCmd from './commands/provision-index';
|
|
@@ -204,7 +224,6 @@ import signUpCmd from './commands/sign-up';
|
|
|
204
224
|
import requestCrossOriginTokenCmd from './commands/request-cross-origin-token';
|
|
205
225
|
import signInCmd from './commands/sign-in';
|
|
206
226
|
import provisionTableCmd from './commands/provision-table';
|
|
207
|
-
import requestUploadUrlCmd from './commands/request-upload-url';
|
|
208
227
|
import provisionBucketCmd from './commands/provision-bucket';
|
|
209
228
|
const createCommandMap = () => ({
|
|
210
229
|
context: contextCmd,
|
|
@@ -222,6 +241,7 @@ const createCommandMap = () => ({
|
|
|
222
241
|
'check-constraint': checkConstraintCmd,
|
|
223
242
|
field: fieldCmd,
|
|
224
243
|
'spatial-relation': spatialRelationCmd,
|
|
244
|
+
partition: partitionCmd,
|
|
225
245
|
'foreign-key-constraint': foreignKeyConstraintCmd,
|
|
226
246
|
'full-text-search': fullTextSearchCmd,
|
|
227
247
|
index: indexCmd,
|
|
@@ -239,20 +259,24 @@ const createCommandMap = () => ({
|
|
|
239
259
|
'relation-provision': relationProvisionCmd,
|
|
240
260
|
'session-secrets-module': sessionSecretsModuleCmd,
|
|
241
261
|
'identity-providers-module': identityProvidersModuleCmd,
|
|
262
|
+
'realtime-module': realtimeModuleCmd,
|
|
242
263
|
'schema-grant': schemaGrantCmd,
|
|
243
264
|
'default-privilege': defaultPrivilegeCmd,
|
|
244
265
|
enum: enumCmd,
|
|
266
|
+
function: functionCmd,
|
|
245
267
|
'api-schema': apiSchemaCmd,
|
|
246
268
|
'api-module': apiModuleCmd,
|
|
247
269
|
domain: domainCmd,
|
|
248
270
|
'site-metadatum': siteMetadatumCmd,
|
|
249
271
|
'site-module': siteModuleCmd,
|
|
250
272
|
'site-theme': siteThemeCmd,
|
|
273
|
+
'cors-setting': corsSettingCmd,
|
|
251
274
|
'trigger-function': triggerFunctionCmd,
|
|
252
275
|
'database-transfer': databaseTransferCmd,
|
|
253
276
|
api: apiCmd,
|
|
254
277
|
site: siteCmd,
|
|
255
278
|
app: appCmd,
|
|
279
|
+
'api-setting': apiSettingCmd,
|
|
256
280
|
'connected-accounts-module': connectedAccountsModuleCmd,
|
|
257
281
|
'crypto-addresses-module': cryptoAddressesModuleCmd,
|
|
258
282
|
'crypto-auth-module': cryptoAuthModuleCmd,
|
|
@@ -294,7 +318,11 @@ const createCommandMap = () => ({
|
|
|
294
318
|
'org-chart-edge-grant': orgChartEdgeGrantCmd,
|
|
295
319
|
'org-permission-default': orgPermissionDefaultCmd,
|
|
296
320
|
'app-limit': appLimitCmd,
|
|
321
|
+
'app-limit-credit': appLimitCreditCmd,
|
|
322
|
+
'app-limit-credit-code-item': appLimitCreditCodeItemCmd,
|
|
323
|
+
'app-limit-credit-redemption': appLimitCreditRedemptionCmd,
|
|
297
324
|
'org-limit': orgLimitCmd,
|
|
325
|
+
'org-limit-credit': orgLimitCreditCmd,
|
|
298
326
|
'org-limit-aggregate': orgLimitAggregateCmd,
|
|
299
327
|
'app-step': appStepCmd,
|
|
300
328
|
'app-achievement': appAchievementCmd,
|
|
@@ -316,6 +344,11 @@ const createCommandMap = () => ({
|
|
|
316
344
|
ref: refCmd,
|
|
317
345
|
store: storeCmd,
|
|
318
346
|
'app-permission-default': appPermissionDefaultCmd,
|
|
347
|
+
'app-limit-credit-code': appLimitCreditCodeCmd,
|
|
348
|
+
'app-limit-caps-default': appLimitCapsDefaultCmd,
|
|
349
|
+
'org-limit-caps-default': orgLimitCapsDefaultCmd,
|
|
350
|
+
'app-limit-cap': appLimitCapCmd,
|
|
351
|
+
'org-limit-cap': orgLimitCapCmd,
|
|
319
352
|
'membership-type': membershipTypeCmd,
|
|
320
353
|
'migrate-file': migrateFileCmd,
|
|
321
354
|
'devices-module': devicesModuleCmd,
|
|
@@ -324,19 +357,24 @@ const createCommandMap = () => ({
|
|
|
324
357
|
'org-limit-default': orgLimitDefaultCmd,
|
|
325
358
|
'user-connected-account': userConnectedAccountCmd,
|
|
326
359
|
commit: commitCmd,
|
|
360
|
+
'pubkey-setting': pubkeySettingCmd,
|
|
327
361
|
'rate-limits-module': rateLimitsModuleCmd,
|
|
328
362
|
'app-membership-default': appMembershipDefaultCmd,
|
|
329
363
|
'org-membership-default': orgMembershipDefaultCmd,
|
|
364
|
+
'rls-setting': rlsSettingCmd,
|
|
330
365
|
'app-limit-event': appLimitEventCmd,
|
|
331
366
|
'org-limit-event': orgLimitEventCmd,
|
|
332
|
-
'plans-module': plansModuleCmd,
|
|
333
367
|
'rls-module': rlsModuleCmd,
|
|
368
|
+
'database-setting': databaseSettingCmd,
|
|
369
|
+
'plans-module': plansModuleCmd,
|
|
334
370
|
'sql-action': sqlActionCmd,
|
|
335
371
|
'billing-module': billingModuleCmd,
|
|
336
372
|
'ast-migration': astMigrationCmd,
|
|
337
373
|
user: userCmd,
|
|
338
374
|
'org-membership-setting': orgMembershipSettingCmd,
|
|
375
|
+
'webauthn-setting': webauthnSettingCmd,
|
|
339
376
|
'app-membership': appMembershipCmd,
|
|
377
|
+
'billing-provider-module': billingProviderModuleCmd,
|
|
340
378
|
'hierarchy-module': hierarchyModuleCmd,
|
|
341
379
|
'current-user-id': currentUserIdCmd,
|
|
342
380
|
'current-user-agent': currentUserAgentCmd,
|
|
@@ -386,6 +424,7 @@ const createCommandMap = () => ({
|
|
|
386
424
|
'provision-spatial-relation': provisionSpatialRelationCmd,
|
|
387
425
|
'bootstrap-user': bootstrapUserCmd,
|
|
388
426
|
'set-field-order': setFieldOrderCmd,
|
|
427
|
+
'append-smart-tags': appendSmartTagsCmd,
|
|
389
428
|
'provision-unique-constraint': provisionUniqueConstraintCmd,
|
|
390
429
|
'provision-full-text-search': provisionFullTextSearchCmd,
|
|
391
430
|
'provision-index': provisionIndexCmd,
|
|
@@ -407,10 +446,9 @@ const createCommandMap = () => ({
|
|
|
407
446
|
'request-cross-origin-token': requestCrossOriginTokenCmd,
|
|
408
447
|
'sign-in': signInCmd,
|
|
409
448
|
'provision-table': provisionTableCmd,
|
|
410
|
-
'request-upload-url': requestUploadUrlCmd,
|
|
411
449
|
'provision-bucket': provisionBucketCmd,
|
|
412
450
|
});
|
|
413
|
-
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 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 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 org-limit orgLimit 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 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 rate-limits-module rateLimitsModule CRUD operations\n app-membership-default appMembershipDefault CRUD operations\n org-membership-default orgMembershipDefault CRUD operations\n app-limit-event appLimitEvent CRUD operations\n org-limit-event orgLimitEvent CRUD operations\n plans-module plansModule CRUD operations\n rls-module rlsModule CRUD operations\n sql-action sqlAction 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 app-membership appMembership 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. Six 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 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. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level indexes/fts/unique_constraints are deferred to phases 3-5 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-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 request-upload-url Request a presigned URL for uploading a file directly to S3.\nClient computes SHA-256 of the file content and provides it here.\nIf a file with the same hash already exists (dedup), returns the\nexisting file ID and deduplicated=true with no uploadUrl.\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";
|
|
451
|
+
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 partition partition 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 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 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 database-setting databaseSetting CRUD operations\n plans-module plansModule CRUD operations\n sql-action sqlAction 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. Six 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 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. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level indexes/fts/unique_constraints are deferred to phases 3-5 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 append-smart-tags appendSmartTags\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";
|
|
414
452
|
export const commands = async (argv, prompter, options) => {
|
|
415
453
|
if (argv.help || argv.h) {
|
|
416
454
|
console.log(usage);
|
|
@@ -13,6 +13,7 @@ export declare function getClient(contextName?: string): {
|
|
|
13
13
|
checkConstraint: import("..").CheckConstraintModel;
|
|
14
14
|
field: import("..").FieldModel;
|
|
15
15
|
spatialRelation: import("..").SpatialRelationModel;
|
|
16
|
+
partition: import("..").PartitionModel;
|
|
16
17
|
foreignKeyConstraint: import("..").ForeignKeyConstraintModel;
|
|
17
18
|
fullTextSearch: import("..").FullTextSearchModel;
|
|
18
19
|
index: import("..").IndexModel;
|
|
@@ -30,20 +31,24 @@ export declare function getClient(contextName?: string): {
|
|
|
30
31
|
relationProvision: import("..").RelationProvisionModel;
|
|
31
32
|
sessionSecretsModule: import("..").SessionSecretsModuleModel;
|
|
32
33
|
identityProvidersModule: import("..").IdentityProvidersModuleModel;
|
|
34
|
+
realtimeModule: import("..").RealtimeModuleModel;
|
|
33
35
|
schemaGrant: import("..").SchemaGrantModel;
|
|
34
36
|
defaultPrivilege: import("..").DefaultPrivilegeModel;
|
|
35
37
|
enum: import("..").EnumModel;
|
|
38
|
+
function: import("..").FunctionModel;
|
|
36
39
|
apiSchema: import("..").ApiSchemaModel;
|
|
37
40
|
apiModule: import("..").ApiModuleModel;
|
|
38
41
|
domain: import("..").DomainModel;
|
|
39
42
|
siteMetadatum: import("..").SiteMetadatumModel;
|
|
40
43
|
siteModule: import("..").SiteModuleModel;
|
|
41
44
|
siteTheme: import("..").SiteThemeModel;
|
|
45
|
+
corsSetting: import("..").CorsSettingModel;
|
|
42
46
|
triggerFunction: import("..").TriggerFunctionModel;
|
|
43
47
|
databaseTransfer: import("..").DatabaseTransferModel;
|
|
44
48
|
api: import("..").ApiModel;
|
|
45
49
|
site: import("..").SiteModel;
|
|
46
50
|
app: import("..").AppModel;
|
|
51
|
+
apiSetting: import("..").ApiSettingModel;
|
|
47
52
|
connectedAccountsModule: import("..").ConnectedAccountsModuleModel;
|
|
48
53
|
cryptoAddressesModule: import("..").CryptoAddressesModuleModel;
|
|
49
54
|
cryptoAuthModule: import("..").CryptoAuthModuleModel;
|
|
@@ -85,7 +90,11 @@ export declare function getClient(contextName?: string): {
|
|
|
85
90
|
orgChartEdgeGrant: import("..").OrgChartEdgeGrantModel;
|
|
86
91
|
orgPermissionDefault: import("..").OrgPermissionDefaultModel;
|
|
87
92
|
appLimit: import("..").AppLimitModel;
|
|
93
|
+
appLimitCredit: import("..").AppLimitCreditModel;
|
|
94
|
+
appLimitCreditCodeItem: import("..").AppLimitCreditCodeItemModel;
|
|
95
|
+
appLimitCreditRedemption: import("..").AppLimitCreditRedemptionModel;
|
|
88
96
|
orgLimit: import("..").OrgLimitModel;
|
|
97
|
+
orgLimitCredit: import("..").OrgLimitCreditModel;
|
|
89
98
|
orgLimitAggregate: import("..").OrgLimitAggregateModel;
|
|
90
99
|
appStep: import("..").AppStepModel;
|
|
91
100
|
appAchievement: import("..").AppAchievementModel;
|
|
@@ -107,6 +116,11 @@ export declare function getClient(contextName?: string): {
|
|
|
107
116
|
ref: import("..").RefModel;
|
|
108
117
|
store: import("..").StoreModel;
|
|
109
118
|
appPermissionDefault: import("..").AppPermissionDefaultModel;
|
|
119
|
+
appLimitCreditCode: import("..").AppLimitCreditCodeModel;
|
|
120
|
+
appLimitCapsDefault: import("..").AppLimitCapsDefaultModel;
|
|
121
|
+
orgLimitCapsDefault: import("..").OrgLimitCapsDefaultModel;
|
|
122
|
+
appLimitCap: import("..").AppLimitCapModel;
|
|
123
|
+
orgLimitCap: import("..").OrgLimitCapModel;
|
|
110
124
|
membershipType: import("..").MembershipTypeModel;
|
|
111
125
|
migrateFile: import("..").MigrateFileModel;
|
|
112
126
|
devicesModule: import("..").DevicesModuleModel;
|
|
@@ -115,19 +129,24 @@ export declare function getClient(contextName?: string): {
|
|
|
115
129
|
orgLimitDefault: import("..").OrgLimitDefaultModel;
|
|
116
130
|
userConnectedAccount: import("..").UserConnectedAccountModel;
|
|
117
131
|
commit: import("..").CommitModel;
|
|
132
|
+
pubkeySetting: import("..").PubkeySettingModel;
|
|
118
133
|
rateLimitsModule: import("..").RateLimitsModuleModel;
|
|
119
134
|
appMembershipDefault: import("..").AppMembershipDefaultModel;
|
|
120
135
|
orgMembershipDefault: import("..").OrgMembershipDefaultModel;
|
|
136
|
+
rlsSetting: import("..").RlsSettingModel;
|
|
121
137
|
appLimitEvent: import("..").AppLimitEventModel;
|
|
122
138
|
orgLimitEvent: import("..").OrgLimitEventModel;
|
|
123
|
-
plansModule: import("..").PlansModuleModel;
|
|
124
139
|
rlsModule: import("..").RlsModuleModel;
|
|
140
|
+
databaseSetting: import("..").DatabaseSettingModel;
|
|
141
|
+
plansModule: import("..").PlansModuleModel;
|
|
125
142
|
sqlAction: import("..").SqlActionModel;
|
|
126
143
|
billingModule: import("..").BillingModuleModel;
|
|
127
144
|
astMigration: import("..").AstMigrationModel;
|
|
128
145
|
user: import("..").UserModel;
|
|
129
146
|
orgMembershipSetting: import("..").OrgMembershipSettingModel;
|
|
147
|
+
webauthnSetting: import("..").WebauthnSettingModel;
|
|
130
148
|
appMembership: import("..").AppMembershipModel;
|
|
149
|
+
billingProviderModule: import("..").BillingProviderModuleModel;
|
|
131
150
|
hierarchyModule: import("..").HierarchyModuleModel;
|
|
132
151
|
query: {
|
|
133
152
|
currentUserId: (options?: {
|
|
@@ -372,6 +391,11 @@ export declare function getClient(contextName?: string): {
|
|
|
372
391
|
} & import("..").StrictSelect<S, import("../orm/input-types").SetFieldOrderPayloadSelect>) => import("..").QueryBuilder<{
|
|
373
392
|
setFieldOrder: import("..").InferSelectResult<import("../orm/input-types").SetFieldOrderPayload, S> | null;
|
|
374
393
|
}>;
|
|
394
|
+
appendSmartTags: <S extends import("../orm/input-types").AppendSmartTagsPayloadSelect>(args: import("../orm/mutation").AppendSmartTagsVariables, options: {
|
|
395
|
+
select: S;
|
|
396
|
+
} & import("..").StrictSelect<S, import("../orm/input-types").AppendSmartTagsPayloadSelect>) => import("..").QueryBuilder<{
|
|
397
|
+
appendSmartTags: import("..").InferSelectResult<import("../orm/input-types").AppendSmartTagsPayload, S> | null;
|
|
398
|
+
}>;
|
|
375
399
|
provisionUniqueConstraint: <S extends import("../orm/input-types").ProvisionUniqueConstraintPayloadSelect>(args: import("../orm/mutation").ProvisionUniqueConstraintVariables, options: {
|
|
376
400
|
select: S;
|
|
377
401
|
} & import("..").StrictSelect<S, import("../orm/input-types").ProvisionUniqueConstraintPayloadSelect>) => import("..").QueryBuilder<{
|
|
@@ -477,11 +501,6 @@ export declare function getClient(contextName?: string): {
|
|
|
477
501
|
} & import("..").StrictSelect<S, import("../orm/input-types").ProvisionTablePayloadSelect>) => import("..").QueryBuilder<{
|
|
478
502
|
provisionTable: import("..").InferSelectResult<import("../orm/input-types").ProvisionTablePayload, S> | null;
|
|
479
503
|
}>;
|
|
480
|
-
requestUploadUrl: <S extends import("../orm/input-types").RequestUploadUrlPayloadSelect>(args: import("../orm/mutation").RequestUploadUrlVariables, options: {
|
|
481
|
-
select: S;
|
|
482
|
-
} & import("..").StrictSelect<S, import("../orm/input-types").RequestUploadUrlPayloadSelect>) => import("..").QueryBuilder<{
|
|
483
|
-
requestUploadUrl: import("..").InferSelectResult<import("../orm/input-types").RequestUploadUrlPayload, S> | null;
|
|
484
|
-
}>;
|
|
485
504
|
provisionBucket: <S extends import("../orm/input-types").ProvisionBucketPayloadSelect>(args: import("../orm/mutation").ProvisionBucketVariables, options: {
|
|
486
505
|
select: S;
|
|
487
506
|
} & import("..").StrictSelect<S, import("../orm/input-types").ProvisionBucketPayloadSelect>) => import("..").QueryBuilder<{
|
|
@@ -12,6 +12,7 @@ import { TableModel } from './models/table';
|
|
|
12
12
|
import { CheckConstraintModel } from './models/checkConstraint';
|
|
13
13
|
import { FieldModel } from './models/field';
|
|
14
14
|
import { SpatialRelationModel } from './models/spatialRelation';
|
|
15
|
+
import { PartitionModel } from './models/partition';
|
|
15
16
|
import { ForeignKeyConstraintModel } from './models/foreignKeyConstraint';
|
|
16
17
|
import { FullTextSearchModel } from './models/fullTextSearch';
|
|
17
18
|
import { IndexModel } from './models/index';
|
|
@@ -29,20 +30,24 @@ import { SecureTableProvisionModel } from './models/secureTableProvision';
|
|
|
29
30
|
import { RelationProvisionModel } from './models/relationProvision';
|
|
30
31
|
import { SessionSecretsModuleModel } from './models/sessionSecretsModule';
|
|
31
32
|
import { IdentityProvidersModuleModel } from './models/identityProvidersModule';
|
|
33
|
+
import { RealtimeModuleModel } from './models/realtimeModule';
|
|
32
34
|
import { SchemaGrantModel } from './models/schemaGrant';
|
|
33
35
|
import { DefaultPrivilegeModel } from './models/defaultPrivilege';
|
|
34
36
|
import { EnumModel } from './models/enum';
|
|
37
|
+
import { FunctionModel } from './models/function';
|
|
35
38
|
import { ApiSchemaModel } from './models/apiSchema';
|
|
36
39
|
import { ApiModuleModel } from './models/apiModule';
|
|
37
40
|
import { DomainModel } from './models/domain';
|
|
38
41
|
import { SiteMetadatumModel } from './models/siteMetadatum';
|
|
39
42
|
import { SiteModuleModel } from './models/siteModule';
|
|
40
43
|
import { SiteThemeModel } from './models/siteTheme';
|
|
44
|
+
import { CorsSettingModel } from './models/corsSetting';
|
|
41
45
|
import { TriggerFunctionModel } from './models/triggerFunction';
|
|
42
46
|
import { DatabaseTransferModel } from './models/databaseTransfer';
|
|
43
47
|
import { ApiModel } from './models/api';
|
|
44
48
|
import { SiteModel } from './models/site';
|
|
45
49
|
import { AppModel } from './models/app';
|
|
50
|
+
import { ApiSettingModel } from './models/apiSetting';
|
|
46
51
|
import { ConnectedAccountsModuleModel } from './models/connectedAccountsModule';
|
|
47
52
|
import { CryptoAddressesModuleModel } from './models/cryptoAddressesModule';
|
|
48
53
|
import { CryptoAuthModuleModel } from './models/cryptoAuthModule';
|
|
@@ -84,7 +89,11 @@ import { OrgChartEdgeModel } from './models/orgChartEdge';
|
|
|
84
89
|
import { OrgChartEdgeGrantModel } from './models/orgChartEdgeGrant';
|
|
85
90
|
import { OrgPermissionDefaultModel } from './models/orgPermissionDefault';
|
|
86
91
|
import { AppLimitModel } from './models/appLimit';
|
|
92
|
+
import { AppLimitCreditModel } from './models/appLimitCredit';
|
|
93
|
+
import { AppLimitCreditCodeItemModel } from './models/appLimitCreditCodeItem';
|
|
94
|
+
import { AppLimitCreditRedemptionModel } from './models/appLimitCreditRedemption';
|
|
87
95
|
import { OrgLimitModel } from './models/orgLimit';
|
|
96
|
+
import { OrgLimitCreditModel } from './models/orgLimitCredit';
|
|
88
97
|
import { OrgLimitAggregateModel } from './models/orgLimitAggregate';
|
|
89
98
|
import { AppStepModel } from './models/appStep';
|
|
90
99
|
import { AppAchievementModel } from './models/appAchievement';
|
|
@@ -106,6 +115,11 @@ import { IdentityProviderModel } from './models/identityProvider';
|
|
|
106
115
|
import { RefModel } from './models/ref';
|
|
107
116
|
import { StoreModel } from './models/store';
|
|
108
117
|
import { AppPermissionDefaultModel } from './models/appPermissionDefault';
|
|
118
|
+
import { AppLimitCreditCodeModel } from './models/appLimitCreditCode';
|
|
119
|
+
import { AppLimitCapsDefaultModel } from './models/appLimitCapsDefault';
|
|
120
|
+
import { OrgLimitCapsDefaultModel } from './models/orgLimitCapsDefault';
|
|
121
|
+
import { AppLimitCapModel } from './models/appLimitCap';
|
|
122
|
+
import { OrgLimitCapModel } from './models/orgLimitCap';
|
|
109
123
|
import { MembershipTypeModel } from './models/membershipType';
|
|
110
124
|
import { MigrateFileModel } from './models/migrateFile';
|
|
111
125
|
import { DevicesModuleModel } from './models/devicesModule';
|
|
@@ -114,19 +128,24 @@ import { AppLimitDefaultModel } from './models/appLimitDefault';
|
|
|
114
128
|
import { OrgLimitDefaultModel } from './models/orgLimitDefault';
|
|
115
129
|
import { UserConnectedAccountModel } from './models/userConnectedAccount';
|
|
116
130
|
import { CommitModel } from './models/commit';
|
|
131
|
+
import { PubkeySettingModel } from './models/pubkeySetting';
|
|
117
132
|
import { RateLimitsModuleModel } from './models/rateLimitsModule';
|
|
118
133
|
import { AppMembershipDefaultModel } from './models/appMembershipDefault';
|
|
119
134
|
import { OrgMembershipDefaultModel } from './models/orgMembershipDefault';
|
|
135
|
+
import { RlsSettingModel } from './models/rlsSetting';
|
|
120
136
|
import { AppLimitEventModel } from './models/appLimitEvent';
|
|
121
137
|
import { OrgLimitEventModel } from './models/orgLimitEvent';
|
|
122
|
-
import { PlansModuleModel } from './models/plansModule';
|
|
123
138
|
import { RlsModuleModel } from './models/rlsModule';
|
|
139
|
+
import { DatabaseSettingModel } from './models/databaseSetting';
|
|
140
|
+
import { PlansModuleModel } from './models/plansModule';
|
|
124
141
|
import { SqlActionModel } from './models/sqlAction';
|
|
125
142
|
import { BillingModuleModel } from './models/billingModule';
|
|
126
143
|
import { AstMigrationModel } from './models/astMigration';
|
|
127
144
|
import { UserModel } from './models/user';
|
|
128
145
|
import { OrgMembershipSettingModel } from './models/orgMembershipSetting';
|
|
146
|
+
import { WebauthnSettingModel } from './models/webauthnSetting';
|
|
129
147
|
import { AppMembershipModel } from './models/appMembership';
|
|
148
|
+
import { BillingProviderModuleModel } from './models/billingProviderModule';
|
|
130
149
|
import { HierarchyModuleModel } from './models/hierarchyModule';
|
|
131
150
|
export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client';
|
|
132
151
|
export { GraphQLRequestError } from './client';
|
|
@@ -173,6 +192,7 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
173
192
|
checkConstraint: CheckConstraintModel;
|
|
174
193
|
field: FieldModel;
|
|
175
194
|
spatialRelation: SpatialRelationModel;
|
|
195
|
+
partition: PartitionModel;
|
|
176
196
|
foreignKeyConstraint: ForeignKeyConstraintModel;
|
|
177
197
|
fullTextSearch: FullTextSearchModel;
|
|
178
198
|
index: IndexModel;
|
|
@@ -190,20 +210,24 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
190
210
|
relationProvision: RelationProvisionModel;
|
|
191
211
|
sessionSecretsModule: SessionSecretsModuleModel;
|
|
192
212
|
identityProvidersModule: IdentityProvidersModuleModel;
|
|
213
|
+
realtimeModule: RealtimeModuleModel;
|
|
193
214
|
schemaGrant: SchemaGrantModel;
|
|
194
215
|
defaultPrivilege: DefaultPrivilegeModel;
|
|
195
216
|
enum: EnumModel;
|
|
217
|
+
function: FunctionModel;
|
|
196
218
|
apiSchema: ApiSchemaModel;
|
|
197
219
|
apiModule: ApiModuleModel;
|
|
198
220
|
domain: DomainModel;
|
|
199
221
|
siteMetadatum: SiteMetadatumModel;
|
|
200
222
|
siteModule: SiteModuleModel;
|
|
201
223
|
siteTheme: SiteThemeModel;
|
|
224
|
+
corsSetting: CorsSettingModel;
|
|
202
225
|
triggerFunction: TriggerFunctionModel;
|
|
203
226
|
databaseTransfer: DatabaseTransferModel;
|
|
204
227
|
api: ApiModel;
|
|
205
228
|
site: SiteModel;
|
|
206
229
|
app: AppModel;
|
|
230
|
+
apiSetting: ApiSettingModel;
|
|
207
231
|
connectedAccountsModule: ConnectedAccountsModuleModel;
|
|
208
232
|
cryptoAddressesModule: CryptoAddressesModuleModel;
|
|
209
233
|
cryptoAuthModule: CryptoAuthModuleModel;
|
|
@@ -245,7 +269,11 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
245
269
|
orgChartEdgeGrant: OrgChartEdgeGrantModel;
|
|
246
270
|
orgPermissionDefault: OrgPermissionDefaultModel;
|
|
247
271
|
appLimit: AppLimitModel;
|
|
272
|
+
appLimitCredit: AppLimitCreditModel;
|
|
273
|
+
appLimitCreditCodeItem: AppLimitCreditCodeItemModel;
|
|
274
|
+
appLimitCreditRedemption: AppLimitCreditRedemptionModel;
|
|
248
275
|
orgLimit: OrgLimitModel;
|
|
276
|
+
orgLimitCredit: OrgLimitCreditModel;
|
|
249
277
|
orgLimitAggregate: OrgLimitAggregateModel;
|
|
250
278
|
appStep: AppStepModel;
|
|
251
279
|
appAchievement: AppAchievementModel;
|
|
@@ -267,6 +295,11 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
267
295
|
ref: RefModel;
|
|
268
296
|
store: StoreModel;
|
|
269
297
|
appPermissionDefault: AppPermissionDefaultModel;
|
|
298
|
+
appLimitCreditCode: AppLimitCreditCodeModel;
|
|
299
|
+
appLimitCapsDefault: AppLimitCapsDefaultModel;
|
|
300
|
+
orgLimitCapsDefault: OrgLimitCapsDefaultModel;
|
|
301
|
+
appLimitCap: AppLimitCapModel;
|
|
302
|
+
orgLimitCap: OrgLimitCapModel;
|
|
270
303
|
membershipType: MembershipTypeModel;
|
|
271
304
|
migrateFile: MigrateFileModel;
|
|
272
305
|
devicesModule: DevicesModuleModel;
|
|
@@ -275,19 +308,24 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
275
308
|
orgLimitDefault: OrgLimitDefaultModel;
|
|
276
309
|
userConnectedAccount: UserConnectedAccountModel;
|
|
277
310
|
commit: CommitModel;
|
|
311
|
+
pubkeySetting: PubkeySettingModel;
|
|
278
312
|
rateLimitsModule: RateLimitsModuleModel;
|
|
279
313
|
appMembershipDefault: AppMembershipDefaultModel;
|
|
280
314
|
orgMembershipDefault: OrgMembershipDefaultModel;
|
|
315
|
+
rlsSetting: RlsSettingModel;
|
|
281
316
|
appLimitEvent: AppLimitEventModel;
|
|
282
317
|
orgLimitEvent: OrgLimitEventModel;
|
|
283
|
-
plansModule: PlansModuleModel;
|
|
284
318
|
rlsModule: RlsModuleModel;
|
|
319
|
+
databaseSetting: DatabaseSettingModel;
|
|
320
|
+
plansModule: PlansModuleModel;
|
|
285
321
|
sqlAction: SqlActionModel;
|
|
286
322
|
billingModule: BillingModuleModel;
|
|
287
323
|
astMigration: AstMigrationModel;
|
|
288
324
|
user: UserModel;
|
|
289
325
|
orgMembershipSetting: OrgMembershipSettingModel;
|
|
326
|
+
webauthnSetting: WebauthnSettingModel;
|
|
290
327
|
appMembership: AppMembershipModel;
|
|
328
|
+
billingProviderModule: BillingProviderModuleModel;
|
|
291
329
|
hierarchyModule: HierarchyModuleModel;
|
|
292
330
|
query: {
|
|
293
331
|
currentUserId: (options?: {
|
|
@@ -532,6 +570,11 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
532
570
|
} & import("./select-types").StrictSelect<S, import("./input-types").SetFieldOrderPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
533
571
|
setFieldOrder: import("./select-types").InferSelectResult<import("./input-types").SetFieldOrderPayload, S> | null;
|
|
534
572
|
}>;
|
|
573
|
+
appendSmartTags: <S extends import("./input-types").AppendSmartTagsPayloadSelect>(args: import("./mutation").AppendSmartTagsVariables, options: {
|
|
574
|
+
select: S;
|
|
575
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").AppendSmartTagsPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
576
|
+
appendSmartTags: import("./select-types").InferSelectResult<import("./input-types").AppendSmartTagsPayload, S> | null;
|
|
577
|
+
}>;
|
|
535
578
|
provisionUniqueConstraint: <S extends import("./input-types").ProvisionUniqueConstraintPayloadSelect>(args: import("./mutation").ProvisionUniqueConstraintVariables, options: {
|
|
536
579
|
select: S;
|
|
537
580
|
} & import("./select-types").StrictSelect<S, import("./input-types").ProvisionUniqueConstraintPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
@@ -637,11 +680,6 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
637
680
|
} & import("./select-types").StrictSelect<S, import("./input-types").ProvisionTablePayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
638
681
|
provisionTable: import("./select-types").InferSelectResult<import("./input-types").ProvisionTablePayload, S> | null;
|
|
639
682
|
}>;
|
|
640
|
-
requestUploadUrl: <S extends import("./input-types").RequestUploadUrlPayloadSelect>(args: import("./mutation").RequestUploadUrlVariables, options: {
|
|
641
|
-
select: S;
|
|
642
|
-
} & import("./select-types").StrictSelect<S, import("./input-types").RequestUploadUrlPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
643
|
-
requestUploadUrl: import("./select-types").InferSelectResult<import("./input-types").RequestUploadUrlPayload, S> | null;
|
|
644
|
-
}>;
|
|
645
683
|
provisionBucket: <S extends import("./input-types").ProvisionBucketPayloadSelect>(args: import("./mutation").ProvisionBucketVariables, options: {
|
|
646
684
|
select: S;
|
|
647
685
|
} & import("./select-types").StrictSelect<S, import("./input-types").ProvisionBucketPayloadSelect>) => import("./query-builder").QueryBuilder<{
|