@constructive-sdk/cli 0.25.9 → 0.25.10
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/app-admin-grant.js +3 -1
- package/admin/cli/commands/app-grant.js +3 -1
- package/admin/cli/commands/app-invite.js +44 -0
- package/admin/cli/commands/app-owner-grant.js +3 -1
- package/admin/cli/commands/app-permission-default-grant.d.ts +8 -0
- package/admin/cli/commands/app-permission-default-grant.js +286 -0
- package/admin/cli/commands/app-permission-default-permission.d.ts +8 -0
- package/admin/cli/commands/app-permission-default-permission.js +242 -0
- package/admin/cli/commands/org-admin-grant.js +3 -1
- package/admin/cli/commands/org-grant.js +3 -1
- package/admin/cli/commands/org-invite.js +44 -0
- package/admin/cli/commands/org-owner-grant.js +3 -1
- package/admin/cli/commands/org-permission-default-grant.d.ts +8 -0
- package/admin/cli/commands/org-permission-default-grant.js +306 -0
- package/admin/cli/commands/org-permission-default-permission.d.ts +8 -0
- package/admin/cli/commands/org-permission-default-permission.js +262 -0
- package/admin/cli/commands.js +11 -3
- package/admin/cli/executor.d.ts +5 -1
- package/admin/orm/index.d.ts +10 -2
- package/admin/orm/index.js +10 -2
- package/admin/orm/input-types.d.ts +1611 -230
- package/admin/orm/input-types.js +9 -1
- package/admin/orm/models/appPermissionDefaultGrant.d.ts +54 -0
- package/admin/orm/models/appPermissionDefaultGrant.js +104 -0
- package/admin/orm/models/appPermissionDefaultPermission.d.ts +54 -0
- package/admin/orm/models/appPermissionDefaultPermission.js +104 -0
- package/admin/orm/models/index.d.ts +5 -1
- package/admin/orm/models/index.js +11 -3
- package/admin/orm/models/orgPermissionDefaultGrant.d.ts +54 -0
- package/admin/orm/models/orgPermissionDefaultGrant.js +104 -0
- package/admin/orm/models/orgPermissionDefaultPermission.d.ts +54 -0
- package/admin/orm/models/orgPermissionDefaultPermission.js +104 -0
- package/agent/cli/commands/agent-message.js +34 -12
- package/agent/cli/commands/agent-task.js +12 -12
- package/agent/cli/embedder.d.ts +5 -0
- package/agent/cli/embedder.js +46 -9
- package/agent/orm/input-types.d.ts +289 -47
- package/agent/orm/input-types.js +1 -0
- package/api/cli/commands/check-constraint.js +0 -22
- package/api/cli/commands/composite-type.d.ts +8 -0
- package/api/cli/commands/composite-type.js +424 -0
- package/api/cli/commands/enum.js +0 -22
- package/api/cli/commands/field.js +0 -22
- package/api/cli/commands/foreign-key-constraint.js +0 -22
- package/api/cli/commands/index.js +0 -22
- package/api/cli/commands/policy.js +0 -22
- package/api/cli/commands/primary-key-constraint.js +0 -22
- package/api/cli/commands/schema.js +0 -22
- package/api/cli/commands/spatial-relation.js +0 -22
- package/api/cli/commands/table.js +6 -28
- package/api/cli/commands/trigger.js +0 -22
- package/api/cli/commands/unique-constraint.js +0 -22
- package/api/cli/commands/view-table.js +22 -0
- package/api/cli/commands/view.js +0 -22
- package/api/cli/commands.js +3 -1
- package/api/cli/executor.d.ts +1 -0
- package/api/orm/index.d.ts +2 -0
- package/api/orm/index.js +2 -0
- package/api/orm/input-types.d.ts +1064 -125
- package/api/orm/input-types.js +3 -0
- package/api/orm/models/compositeType.d.ts +54 -0
- package/api/orm/models/compositeType.js +104 -0
- package/api/orm/models/index.d.ts +1 -0
- package/api/orm/models/index.js +3 -1
- package/auth/cli/commands/link-identity.d.ts +8 -0
- package/auth/cli/commands/link-identity.js +36 -0
- package/auth/cli/commands/sign-in-sms-otp.d.ts +8 -0
- package/auth/cli/commands/sign-in-sms-otp.js +36 -0
- package/auth/cli/commands/sign-up-sms.d.ts +8 -0
- package/auth/cli/commands/sign-up-sms.js +36 -0
- package/auth/cli/commands.js +7 -1
- package/auth/cli/executor.d.ts +15 -0
- package/auth/orm/index.d.ts +15 -0
- package/auth/orm/input-types.d.ts +197 -1
- package/auth/orm/mutation/index.d.ts +25 -1
- package/auth/orm/mutation/index.js +36 -0
- package/esm/admin/cli/commands/app-admin-grant.js +3 -1
- package/esm/admin/cli/commands/app-grant.js +3 -1
- package/esm/admin/cli/commands/app-invite.js +44 -0
- package/esm/admin/cli/commands/app-owner-grant.js +3 -1
- package/esm/admin/cli/commands/app-permission-default-grant.d.ts +8 -0
- package/esm/admin/cli/commands/app-permission-default-grant.js +284 -0
- package/esm/admin/cli/commands/app-permission-default-permission.d.ts +8 -0
- package/esm/admin/cli/commands/app-permission-default-permission.js +240 -0
- package/esm/admin/cli/commands/org-admin-grant.js +3 -1
- package/esm/admin/cli/commands/org-grant.js +3 -1
- package/esm/admin/cli/commands/org-invite.js +44 -0
- package/esm/admin/cli/commands/org-owner-grant.js +3 -1
- package/esm/admin/cli/commands/org-permission-default-grant.d.ts +8 -0
- package/esm/admin/cli/commands/org-permission-default-grant.js +304 -0
- package/esm/admin/cli/commands/org-permission-default-permission.d.ts +8 -0
- package/esm/admin/cli/commands/org-permission-default-permission.js +260 -0
- package/esm/admin/cli/commands.js +11 -3
- package/esm/admin/cli/executor.d.ts +5 -1
- package/esm/admin/orm/index.d.ts +10 -2
- package/esm/admin/orm/index.js +10 -2
- package/esm/admin/orm/input-types.d.ts +1611 -230
- package/esm/admin/orm/input-types.js +9 -1
- package/esm/admin/orm/models/appPermissionDefaultGrant.d.ts +54 -0
- package/esm/admin/orm/models/appPermissionDefaultGrant.js +100 -0
- package/esm/admin/orm/models/appPermissionDefaultPermission.d.ts +54 -0
- package/esm/admin/orm/models/appPermissionDefaultPermission.js +100 -0
- package/esm/admin/orm/models/index.d.ts +5 -1
- package/esm/admin/orm/models/index.js +5 -1
- package/esm/admin/orm/models/orgPermissionDefaultGrant.d.ts +54 -0
- package/esm/admin/orm/models/orgPermissionDefaultGrant.js +100 -0
- package/esm/admin/orm/models/orgPermissionDefaultPermission.d.ts +54 -0
- package/esm/admin/orm/models/orgPermissionDefaultPermission.js +100 -0
- package/esm/agent/cli/commands/agent-message.js +34 -12
- package/esm/agent/cli/commands/agent-task.js +12 -12
- package/esm/agent/cli/embedder.d.ts +5 -0
- package/esm/agent/cli/embedder.js +10 -2
- package/esm/agent/orm/input-types.d.ts +289 -47
- package/esm/agent/orm/input-types.js +1 -0
- package/esm/api/cli/commands/check-constraint.js +0 -22
- package/esm/api/cli/commands/composite-type.d.ts +8 -0
- package/esm/api/cli/commands/composite-type.js +422 -0
- package/esm/api/cli/commands/enum.js +0 -22
- package/esm/api/cli/commands/field.js +0 -22
- package/esm/api/cli/commands/foreign-key-constraint.js +0 -22
- package/esm/api/cli/commands/index.js +0 -22
- package/esm/api/cli/commands/policy.js +0 -22
- package/esm/api/cli/commands/primary-key-constraint.js +0 -22
- package/esm/api/cli/commands/schema.js +0 -22
- package/esm/api/cli/commands/spatial-relation.js +0 -22
- package/esm/api/cli/commands/table.js +6 -28
- package/esm/api/cli/commands/trigger.js +0 -22
- package/esm/api/cli/commands/unique-constraint.js +0 -22
- package/esm/api/cli/commands/view-table.js +22 -0
- package/esm/api/cli/commands/view.js +0 -22
- package/esm/api/cli/commands.js +3 -1
- package/esm/api/cli/executor.d.ts +1 -0
- package/esm/api/orm/index.d.ts +2 -0
- package/esm/api/orm/index.js +2 -0
- package/esm/api/orm/input-types.d.ts +1064 -125
- package/esm/api/orm/input-types.js +3 -0
- package/esm/api/orm/models/compositeType.d.ts +54 -0
- package/esm/api/orm/models/compositeType.js +100 -0
- package/esm/api/orm/models/index.d.ts +1 -0
- package/esm/api/orm/models/index.js +1 -0
- package/esm/auth/cli/commands/link-identity.d.ts +8 -0
- package/esm/auth/cli/commands/link-identity.js +34 -0
- package/esm/auth/cli/commands/sign-in-sms-otp.d.ts +8 -0
- package/esm/auth/cli/commands/sign-in-sms-otp.js +34 -0
- package/esm/auth/cli/commands/sign-up-sms.d.ts +8 -0
- package/esm/auth/cli/commands/sign-up-sms.js +34 -0
- package/esm/auth/cli/commands.js +7 -1
- package/esm/auth/cli/executor.d.ts +15 -0
- package/esm/auth/orm/index.d.ts +15 -0
- package/esm/auth/orm/input-types.d.ts +197 -1
- package/esm/auth/orm/mutation/index.d.ts +25 -1
- package/esm/auth/orm/mutation/index.js +36 -0
- package/esm/modules/cli/commands/agent-module.js +88 -0
- package/esm/modules/cli/commands/billing-module.js +66 -0
- package/esm/modules/cli/commands/compute-log-module.js +44 -0
- package/esm/modules/cli/commands/config-secrets-module.js +44 -0
- package/esm/modules/cli/commands/db-usage-module.js +66 -0
- package/esm/modules/cli/commands/entity-type-provision.js +0 -44
- package/esm/modules/cli/commands/events-module.js +66 -0
- package/esm/modules/cli/commands/function-invocation-module.d.ts +8 -0
- package/esm/modules/cli/commands/function-invocation-module.js +580 -0
- package/esm/modules/cli/commands/function-module.js +22 -198
- package/esm/modules/cli/commands/graph-module.js +22 -0
- package/esm/modules/cli/commands/hierarchy-module.js +22 -0
- package/esm/modules/cli/commands/identity-providers-module.js +44 -0
- package/esm/modules/cli/commands/inference-log-module.js +44 -0
- package/esm/modules/cli/commands/invites-module.js +44 -0
- package/esm/modules/cli/commands/limits-module.js +44 -0
- package/esm/modules/cli/commands/memberships-module.js +88 -0
- package/esm/modules/cli/commands/merkle-store-module.js +22 -0
- package/esm/modules/cli/commands/namespace-module.js +22 -0
- package/esm/modules/cli/commands/notifications-module.js +88 -0
- package/esm/modules/cli/commands/permissions-module.js +44 -0
- package/esm/modules/cli/commands/plans-module.js +44 -0
- package/esm/modules/cli/commands/profiles-module.js +44 -0
- package/esm/modules/cli/commands/rate-limit-meters-module.js +66 -0
- package/esm/modules/cli/commands/storage-log-module.js +44 -0
- package/esm/modules/cli/commands/storage-module.js +66 -0
- package/esm/modules/cli/commands/transfer-log-module.js +44 -0
- package/esm/modules/cli/commands.js +29 -27
- package/esm/modules/cli/executor.d.ts +14 -13
- package/esm/modules/orm/index.d.ts +28 -26
- package/esm/modules/orm/index.js +28 -26
- package/esm/modules/orm/input-types.d.ts +4485 -2514
- package/esm/modules/orm/models/functionInvocationModule.d.ts +54 -0
- package/esm/modules/orm/models/functionInvocationModule.js +100 -0
- package/esm/modules/orm/models/index.d.ts +14 -13
- package/esm/modules/orm/models/index.js +14 -13
- package/esm/objects/orm/input-types.d.ts +62 -0
- package/esm/usage/orm/input-types.d.ts +314 -19
- package/modules/cli/commands/agent-module.js +88 -0
- package/modules/cli/commands/billing-module.js +66 -0
- package/modules/cli/commands/compute-log-module.js +44 -0
- package/modules/cli/commands/config-secrets-module.js +44 -0
- package/modules/cli/commands/db-usage-module.js +66 -0
- package/modules/cli/commands/entity-type-provision.js +0 -44
- package/modules/cli/commands/events-module.js +66 -0
- package/modules/cli/commands/function-invocation-module.d.ts +8 -0
- package/modules/cli/commands/function-invocation-module.js +582 -0
- package/modules/cli/commands/function-module.js +22 -198
- package/modules/cli/commands/graph-module.js +22 -0
- package/modules/cli/commands/hierarchy-module.js +22 -0
- package/modules/cli/commands/identity-providers-module.js +44 -0
- package/modules/cli/commands/inference-log-module.js +44 -0
- package/modules/cli/commands/invites-module.js +44 -0
- package/modules/cli/commands/limits-module.js +44 -0
- package/modules/cli/commands/memberships-module.js +88 -0
- package/modules/cli/commands/merkle-store-module.js +22 -0
- package/modules/cli/commands/namespace-module.js +22 -0
- package/modules/cli/commands/notifications-module.js +88 -0
- package/modules/cli/commands/permissions-module.js +44 -0
- package/modules/cli/commands/plans-module.js +44 -0
- package/modules/cli/commands/profiles-module.js +44 -0
- package/modules/cli/commands/rate-limit-meters-module.js +66 -0
- package/modules/cli/commands/storage-log-module.js +44 -0
- package/modules/cli/commands/storage-module.js +66 -0
- package/modules/cli/commands/transfer-log-module.js +44 -0
- package/modules/cli/commands.js +29 -27
- package/modules/cli/executor.d.ts +14 -13
- package/modules/orm/index.d.ts +28 -26
- package/modules/orm/index.js +28 -26
- package/modules/orm/input-types.d.ts +4485 -2514
- package/modules/orm/models/functionInvocationModule.d.ts +54 -0
- package/modules/orm/models/functionInvocationModule.js +104 -0
- package/modules/orm/models/index.d.ts +14 -13
- package/modules/orm/models/index.js +30 -28
- package/objects/orm/input-types.d.ts +62 -0
- package/package.json +4 -4
- package/usage/orm/input-types.d.ts +314 -19
|
@@ -13,6 +13,8 @@ const fieldSchema = {
|
|
|
13
13
|
databaseId: 'uuid',
|
|
14
14
|
schemaId: 'uuid',
|
|
15
15
|
privateSchemaId: 'uuid',
|
|
16
|
+
publicSchemaName: 'string',
|
|
17
|
+
privateSchemaName: 'string',
|
|
16
18
|
transferLogTableId: 'uuid',
|
|
17
19
|
transferLogTableName: 'string',
|
|
18
20
|
usageDailyTableId: 'uuid',
|
|
@@ -73,6 +75,8 @@ async function handleList(argv, _prompter) {
|
|
|
73
75
|
databaseId: true,
|
|
74
76
|
schemaId: true,
|
|
75
77
|
privateSchemaId: true,
|
|
78
|
+
publicSchemaName: true,
|
|
79
|
+
privateSchemaName: true,
|
|
76
80
|
transferLogTableId: true,
|
|
77
81
|
transferLogTableName: true,
|
|
78
82
|
usageDailyTableId: true,
|
|
@@ -107,6 +111,8 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
107
111
|
databaseId: true,
|
|
108
112
|
schemaId: true,
|
|
109
113
|
privateSchemaId: true,
|
|
114
|
+
publicSchemaName: true,
|
|
115
|
+
privateSchemaName: true,
|
|
110
116
|
transferLogTableId: true,
|
|
111
117
|
transferLogTableName: true,
|
|
112
118
|
usageDailyTableId: true,
|
|
@@ -153,6 +159,8 @@ async function handleGet(argv, prompter) {
|
|
|
153
159
|
databaseId: true,
|
|
154
160
|
schemaId: true,
|
|
155
161
|
privateSchemaId: true,
|
|
162
|
+
publicSchemaName: true,
|
|
163
|
+
privateSchemaName: true,
|
|
156
164
|
transferLogTableId: true,
|
|
157
165
|
transferLogTableName: true,
|
|
158
166
|
usageDailyTableId: true,
|
|
@@ -202,6 +210,20 @@ async function handleCreate(argv, prompter) {
|
|
|
202
210
|
required: false,
|
|
203
211
|
skipPrompt: true,
|
|
204
212
|
},
|
|
213
|
+
{
|
|
214
|
+
type: 'text',
|
|
215
|
+
name: 'publicSchemaName',
|
|
216
|
+
message: 'publicSchemaName',
|
|
217
|
+
required: false,
|
|
218
|
+
skipPrompt: true,
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
type: 'text',
|
|
222
|
+
name: 'privateSchemaName',
|
|
223
|
+
message: 'privateSchemaName',
|
|
224
|
+
required: false,
|
|
225
|
+
skipPrompt: true,
|
|
226
|
+
},
|
|
205
227
|
{
|
|
206
228
|
type: 'text',
|
|
207
229
|
name: 'transferLogTableId',
|
|
@@ -303,6 +325,8 @@ async function handleCreate(argv, prompter) {
|
|
|
303
325
|
databaseId: cleanedData.databaseId,
|
|
304
326
|
schemaId: cleanedData.schemaId,
|
|
305
327
|
privateSchemaId: cleanedData.privateSchemaId,
|
|
328
|
+
publicSchemaName: cleanedData.publicSchemaName,
|
|
329
|
+
privateSchemaName: cleanedData.privateSchemaName,
|
|
306
330
|
transferLogTableId: cleanedData.transferLogTableId,
|
|
307
331
|
transferLogTableName: cleanedData.transferLogTableName,
|
|
308
332
|
usageDailyTableId: cleanedData.usageDailyTableId,
|
|
@@ -322,6 +346,8 @@ async function handleCreate(argv, prompter) {
|
|
|
322
346
|
databaseId: true,
|
|
323
347
|
schemaId: true,
|
|
324
348
|
privateSchemaId: true,
|
|
349
|
+
publicSchemaName: true,
|
|
350
|
+
privateSchemaName: true,
|
|
325
351
|
transferLogTableId: true,
|
|
326
352
|
transferLogTableName: true,
|
|
327
353
|
usageDailyTableId: true,
|
|
@@ -377,6 +403,20 @@ async function handleUpdate(argv, prompter) {
|
|
|
377
403
|
required: false,
|
|
378
404
|
skipPrompt: true,
|
|
379
405
|
},
|
|
406
|
+
{
|
|
407
|
+
type: 'text',
|
|
408
|
+
name: 'publicSchemaName',
|
|
409
|
+
message: 'publicSchemaName',
|
|
410
|
+
required: false,
|
|
411
|
+
skipPrompt: true,
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
type: 'text',
|
|
415
|
+
name: 'privateSchemaName',
|
|
416
|
+
message: 'privateSchemaName',
|
|
417
|
+
required: false,
|
|
418
|
+
skipPrompt: true,
|
|
419
|
+
},
|
|
380
420
|
{
|
|
381
421
|
type: 'text',
|
|
382
422
|
name: 'transferLogTableId',
|
|
@@ -481,6 +521,8 @@ async function handleUpdate(argv, prompter) {
|
|
|
481
521
|
databaseId: cleanedData.databaseId,
|
|
482
522
|
schemaId: cleanedData.schemaId,
|
|
483
523
|
privateSchemaId: cleanedData.privateSchemaId,
|
|
524
|
+
publicSchemaName: cleanedData.publicSchemaName,
|
|
525
|
+
privateSchemaName: cleanedData.privateSchemaName,
|
|
484
526
|
transferLogTableId: cleanedData.transferLogTableId,
|
|
485
527
|
transferLogTableName: cleanedData.transferLogTableName,
|
|
486
528
|
usageDailyTableId: cleanedData.usageDailyTableId,
|
|
@@ -500,6 +542,8 @@ async function handleUpdate(argv, prompter) {
|
|
|
500
542
|
databaseId: true,
|
|
501
543
|
schemaId: true,
|
|
502
544
|
privateSchemaId: true,
|
|
545
|
+
publicSchemaName: true,
|
|
546
|
+
privateSchemaName: true,
|
|
503
547
|
transferLogTableId: true,
|
|
504
548
|
transferLogTableName: true,
|
|
505
549
|
usageDailyTableId: true,
|
package/modules/cli/commands.js
CHANGED
|
@@ -29,45 +29,46 @@ const rate_limits_module_1 = __importDefault(require("./commands/rate-limits-mod
|
|
|
29
29
|
const users_module_1 = __importDefault(require("./commands/users-module"));
|
|
30
30
|
const webauthn_credentials_module_1 = __importDefault(require("./commands/webauthn-credentials-module"));
|
|
31
31
|
const crypto_addresses_module_1 = __importDefault(require("./commands/crypto-addresses-module"));
|
|
32
|
-
const identity_providers_module_1 = __importDefault(require("./commands/identity-providers-module"));
|
|
33
32
|
const denormalized_table_field_1 = __importDefault(require("./commands/denormalized-table-field"));
|
|
33
|
+
const identity_providers_module_1 = __importDefault(require("./commands/identity-providers-module"));
|
|
34
34
|
const rls_module_1 = __importDefault(require("./commands/rls-module"));
|
|
35
35
|
const blueprint_1 = __importDefault(require("./commands/blueprint"));
|
|
36
36
|
const blueprint_template_1 = __importDefault(require("./commands/blueprint-template"));
|
|
37
37
|
const blueprint_construction_1 = __importDefault(require("./commands/blueprint-construction"));
|
|
38
38
|
const crypto_auth_module_1 = __importDefault(require("./commands/crypto-auth-module"));
|
|
39
|
-
const rate_limit_meters_module_1 = __importDefault(require("./commands/rate-limit-meters-module"));
|
|
40
39
|
const sessions_module_1 = __importDefault(require("./commands/sessions-module"));
|
|
41
|
-
const
|
|
40
|
+
const secure_table_provision_1 = __importDefault(require("./commands/secure-table-provision"));
|
|
42
41
|
const merkle_store_module_1 = __importDefault(require("./commands/merkle-store-module"));
|
|
43
42
|
const graph_module_1 = __importDefault(require("./commands/graph-module"));
|
|
44
|
-
const secure_table_provision_1 = __importDefault(require("./commands/secure-table-provision"));
|
|
45
|
-
const invites_module_1 = __importDefault(require("./commands/invites-module"));
|
|
46
43
|
const database_provision_module_1 = __importDefault(require("./commands/database-provision-module"));
|
|
47
|
-
const
|
|
44
|
+
const config_secrets_module_1 = __importDefault(require("./commands/config-secrets-module"));
|
|
45
|
+
const rate_limit_meters_module_1 = __importDefault(require("./commands/rate-limit-meters-module"));
|
|
48
46
|
const realtime_module_1 = __importDefault(require("./commands/realtime-module"));
|
|
49
47
|
const webauthn_auth_module_1 = __importDefault(require("./commands/webauthn-auth-module"));
|
|
48
|
+
const function_invocation_module_1 = __importDefault(require("./commands/function-invocation-module"));
|
|
49
|
+
const function_module_1 = __importDefault(require("./commands/function-module"));
|
|
50
|
+
const invites_module_1 = __importDefault(require("./commands/invites-module"));
|
|
51
|
+
const namespace_module_1 = __importDefault(require("./commands/namespace-module"));
|
|
50
52
|
const compute_log_module_1 = __importDefault(require("./commands/compute-log-module"));
|
|
51
53
|
const inference_log_module_1 = __importDefault(require("./commands/inference-log-module"));
|
|
52
54
|
const storage_log_module_1 = __importDefault(require("./commands/storage-log-module"));
|
|
53
55
|
const transfer_log_module_1 = __importDefault(require("./commands/transfer-log-module"));
|
|
54
|
-
const db_usage_module_1 = __importDefault(require("./commands/db-usage-module"));
|
|
55
|
-
const notifications_module_1 = __importDefault(require("./commands/notifications-module"));
|
|
56
56
|
const plans_module_1 = __importDefault(require("./commands/plans-module"));
|
|
57
|
-
const hierarchy_module_1 = __importDefault(require("./commands/hierarchy-module"));
|
|
58
|
-
const billing_module_1 = __importDefault(require("./commands/billing-module"));
|
|
59
57
|
const billing_provider_module_1 = __importDefault(require("./commands/billing-provider-module"));
|
|
60
|
-
const
|
|
58
|
+
const db_usage_module_1 = __importDefault(require("./commands/db-usage-module"));
|
|
59
|
+
const hierarchy_module_1 = __importDefault(require("./commands/hierarchy-module"));
|
|
61
60
|
const permissions_module_1 = __importDefault(require("./commands/permissions-module"));
|
|
61
|
+
const notifications_module_1 = __importDefault(require("./commands/notifications-module"));
|
|
62
|
+
const profiles_module_1 = __importDefault(require("./commands/profiles-module"));
|
|
63
|
+
const billing_module_1 = __importDefault(require("./commands/billing-module"));
|
|
62
64
|
const relation_provision_1 = __importDefault(require("./commands/relation-provision"));
|
|
63
|
-
const function_module_1 = __importDefault(require("./commands/function-module"));
|
|
64
65
|
const user_auth_module_1 = __importDefault(require("./commands/user-auth-module"));
|
|
65
66
|
const agent_module_1 = __importDefault(require("./commands/agent-module"));
|
|
66
67
|
const limits_module_1 = __importDefault(require("./commands/limits-module"));
|
|
67
68
|
const memberships_module_1 = __importDefault(require("./commands/memberships-module"));
|
|
69
|
+
const entity_type_provision_1 = __importDefault(require("./commands/entity-type-provision"));
|
|
68
70
|
const storage_module_1 = __importDefault(require("./commands/storage-module"));
|
|
69
71
|
const events_module_1 = __importDefault(require("./commands/events-module"));
|
|
70
|
-
const entity_type_provision_1 = __importDefault(require("./commands/entity-type-provision"));
|
|
71
72
|
const resolve_blueprint_field_1 = __importDefault(require("./commands/resolve-blueprint-field"));
|
|
72
73
|
const resolve_blueprint_table_1 = __importDefault(require("./commands/resolve-blueprint-table"));
|
|
73
74
|
const construct_blueprint_1 = __importDefault(require("./commands/construct-blueprint"));
|
|
@@ -100,45 +101,46 @@ const createCommandMap = () => ({
|
|
|
100
101
|
'users-module': users_module_1.default,
|
|
101
102
|
'webauthn-credentials-module': webauthn_credentials_module_1.default,
|
|
102
103
|
'crypto-addresses-module': crypto_addresses_module_1.default,
|
|
103
|
-
'identity-providers-module': identity_providers_module_1.default,
|
|
104
104
|
'denormalized-table-field': denormalized_table_field_1.default,
|
|
105
|
+
'identity-providers-module': identity_providers_module_1.default,
|
|
105
106
|
'rls-module': rls_module_1.default,
|
|
106
107
|
blueprint: blueprint_1.default,
|
|
107
108
|
'blueprint-template': blueprint_template_1.default,
|
|
108
109
|
'blueprint-construction': blueprint_construction_1.default,
|
|
109
110
|
'crypto-auth-module': crypto_auth_module_1.default,
|
|
110
|
-
'rate-limit-meters-module': rate_limit_meters_module_1.default,
|
|
111
111
|
'sessions-module': sessions_module_1.default,
|
|
112
|
-
'
|
|
112
|
+
'secure-table-provision': secure_table_provision_1.default,
|
|
113
113
|
'merkle-store-module': merkle_store_module_1.default,
|
|
114
114
|
'graph-module': graph_module_1.default,
|
|
115
|
-
'secure-table-provision': secure_table_provision_1.default,
|
|
116
|
-
'invites-module': invites_module_1.default,
|
|
117
115
|
'database-provision-module': database_provision_module_1.default,
|
|
118
|
-
'
|
|
116
|
+
'config-secrets-module': config_secrets_module_1.default,
|
|
117
|
+
'rate-limit-meters-module': rate_limit_meters_module_1.default,
|
|
119
118
|
'realtime-module': realtime_module_1.default,
|
|
120
119
|
'webauthn-auth-module': webauthn_auth_module_1.default,
|
|
120
|
+
'function-invocation-module': function_invocation_module_1.default,
|
|
121
|
+
'function-module': function_module_1.default,
|
|
122
|
+
'invites-module': invites_module_1.default,
|
|
123
|
+
'namespace-module': namespace_module_1.default,
|
|
121
124
|
'compute-log-module': compute_log_module_1.default,
|
|
122
125
|
'inference-log-module': inference_log_module_1.default,
|
|
123
126
|
'storage-log-module': storage_log_module_1.default,
|
|
124
127
|
'transfer-log-module': transfer_log_module_1.default,
|
|
125
|
-
'db-usage-module': db_usage_module_1.default,
|
|
126
|
-
'notifications-module': notifications_module_1.default,
|
|
127
128
|
'plans-module': plans_module_1.default,
|
|
128
|
-
'hierarchy-module': hierarchy_module_1.default,
|
|
129
|
-
'billing-module': billing_module_1.default,
|
|
130
129
|
'billing-provider-module': billing_provider_module_1.default,
|
|
131
|
-
'
|
|
130
|
+
'db-usage-module': db_usage_module_1.default,
|
|
131
|
+
'hierarchy-module': hierarchy_module_1.default,
|
|
132
132
|
'permissions-module': permissions_module_1.default,
|
|
133
|
+
'notifications-module': notifications_module_1.default,
|
|
134
|
+
'profiles-module': profiles_module_1.default,
|
|
135
|
+
'billing-module': billing_module_1.default,
|
|
133
136
|
'relation-provision': relation_provision_1.default,
|
|
134
|
-
'function-module': function_module_1.default,
|
|
135
137
|
'user-auth-module': user_auth_module_1.default,
|
|
136
138
|
'agent-module': agent_module_1.default,
|
|
137
139
|
'limits-module': limits_module_1.default,
|
|
138
140
|
'memberships-module': memberships_module_1.default,
|
|
141
|
+
'entity-type-provision': entity_type_provision_1.default,
|
|
139
142
|
'storage-module': storage_module_1.default,
|
|
140
143
|
'events-module': events_module_1.default,
|
|
141
|
-
'entity-type-provision': entity_type_provision_1.default,
|
|
142
144
|
'resolve-blueprint-field': resolve_blueprint_field_1.default,
|
|
143
145
|
'resolve-blueprint-table': resolve_blueprint_table_1.default,
|
|
144
146
|
'construct-blueprint': construct_blueprint_1.default,
|
|
@@ -152,7 +154,7 @@ const createCommandMap = () => ({
|
|
|
152
154
|
'provision-relation': provision_relation_1.default,
|
|
153
155
|
'provision-bucket': provision_bucket_1.default,
|
|
154
156
|
});
|
|
155
|
-
const usage = "\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n default-ids-module defaultIdsModule CRUD operations\n membership-types-module membershipTypesModule CRUD operations\n user-state-module userStateModule CRUD operations\n session-secrets-module sessionSecretsModule CRUD operations\n config-secrets-org-module configSecretsOrgModule CRUD operations\n devices-module devicesModule CRUD operations\n i-18-n-module i18NModule CRUD operations\n user-credentials-module userCredentialsModule CRUD operations\n user-settings-module userSettingsModule CRUD operations\n config-secrets-user-module configSecretsUserModule CRUD operations\n connected-accounts-module connectedAccountsModule CRUD operations\n emails-module emailsModule CRUD operations\n phone-numbers-module phoneNumbersModule CRUD operations\n rate-limits-module rateLimitsModule CRUD operations\n users-module usersModule CRUD operations\n webauthn-credentials-module webauthnCredentialsModule CRUD operations\n crypto-addresses-module cryptoAddressesModule CRUD operations\n
|
|
157
|
+
const usage = "\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n default-ids-module defaultIdsModule CRUD operations\n membership-types-module membershipTypesModule CRUD operations\n user-state-module userStateModule CRUD operations\n session-secrets-module sessionSecretsModule CRUD operations\n config-secrets-org-module configSecretsOrgModule CRUD operations\n devices-module devicesModule CRUD operations\n i-18-n-module i18NModule CRUD operations\n user-credentials-module userCredentialsModule CRUD operations\n user-settings-module userSettingsModule CRUD operations\n config-secrets-user-module configSecretsUserModule CRUD operations\n connected-accounts-module connectedAccountsModule CRUD operations\n emails-module emailsModule CRUD operations\n phone-numbers-module phoneNumbersModule CRUD operations\n rate-limits-module rateLimitsModule CRUD operations\n users-module usersModule CRUD operations\n webauthn-credentials-module webauthnCredentialsModule CRUD operations\n crypto-addresses-module cryptoAddressesModule CRUD operations\n denormalized-table-field denormalizedTableField CRUD operations\n identity-providers-module identityProvidersModule CRUD operations\n rls-module rlsModule CRUD operations\n blueprint blueprint CRUD operations\n blueprint-template blueprintTemplate CRUD operations\n blueprint-construction blueprintConstruction CRUD operations\n crypto-auth-module cryptoAuthModule CRUD operations\n sessions-module sessionsModule CRUD operations\n secure-table-provision secureTableProvision CRUD operations\n merkle-store-module merkleStoreModule CRUD operations\n graph-module graphModule CRUD operations\n database-provision-module databaseProvisionModule CRUD operations\n config-secrets-module configSecretsModule CRUD operations\n rate-limit-meters-module rateLimitMetersModule CRUD operations\n realtime-module realtimeModule CRUD operations\n webauthn-auth-module webauthnAuthModule CRUD operations\n function-invocation-module functionInvocationModule CRUD operations\n function-module functionModule CRUD operations\n invites-module invitesModule CRUD operations\n namespace-module namespaceModule CRUD operations\n compute-log-module computeLogModule CRUD operations\n inference-log-module inferenceLogModule CRUD operations\n storage-log-module storageLogModule CRUD operations\n transfer-log-module transferLogModule CRUD operations\n plans-module plansModule CRUD operations\n billing-provider-module billingProviderModule CRUD operations\n db-usage-module dbUsageModule CRUD operations\n hierarchy-module hierarchyModule CRUD operations\n permissions-module permissionsModule CRUD operations\n notifications-module notificationsModule CRUD operations\n profiles-module profilesModule CRUD operations\n billing-module billingModule CRUD operations\n relation-provision relationProvision CRUD operations\n user-auth-module userAuthModule CRUD operations\n agent-module agentModule CRUD operations\n limits-module limitsModule CRUD operations\n memberships-module membershipsModule CRUD operations\n entity-type-provision entityTypeProvision CRUD operations\n storage-module storageModule CRUD operations\n events-module eventsModule CRUD operations\n resolve-blueprint-field Resolves a field_name within a given table_id to a field_id. Throws if no match is found. Used by construct_blueprint to translate user-authored field names (e.g. \"location\") into field UUIDs for downstream provisioning procedures. table_id must already be resolved (via resolve_blueprint_table) before calling this.\n resolve-blueprint-table Resolves a table_name (with optional schema_name) to a table_id. Resolution order: (1) if schema_name provided, exact lookup via metaschema_public.schema.name + metaschema_public.table; (2) check local table_map (tables created in current blueprint); (3) search metaschema_public.table by name across all schemas; (4) if multiple matches, throw ambiguous error asking for schema_name; (5) if no match, throw not-found error.\n construct-blueprint Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry \u2014 provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] \u2014 resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure.\n provision-full-text-search Creates a full-text search configuration on a table. Accepts a jsonb definition with field (tsvector column name) and sources (array of {field, weight, lang}). Graceful: skips if FTS config already exists for the same (table_id, field_id). Returns the fts_id.\n provision-index Creates an index on a table. Accepts a jsonb definition with columns (array of names or single column string), access_method (default BTREE), is_unique, op_classes, options, and name (auto-generated if omitted). Graceful: skips if an index with the same (table_id, field_ids, access_method) already exists. Returns the index_id.\n provision-check-constraint Creates a check constraint on a table from a $type + data blueprint definition. Supports: CheckOneOf (enum validation via = ANY(ARRAY[...])), CheckGreaterThan (single-column > value or cross-column), CheckLessThan (single-column < value or cross-column), CheckNotEqual (cross-column inequality). Builds AST expressions via ast_helpers and inserts into metaschema_public.check_constraint. Graceful: skips if a constraint with the same name already exists.\n provision-unique-constraint Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists.\n copy-template-to-blueprint Creates a new blueprint by copying a template definition. Checks visibility: owners can always copy their own templates, others require public visibility. Increments the template copy_count. Returns the new blueprint ID.\n provision-spatial-relation Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row declaring a spatial predicate between two geometry/geography columns (owner and target). Called from construct_blueprint when a relation entry has $type=RelationSpatial. Graceful: re-running with the same (source_table_id, name) returns the existing id without modifying the row. Operator whitelist and st_dwithin \u2194 param_name pairing are enforced by the spatial_relation table CHECKs. Both fields must already exist \u2014 this is a metadata-only insert.\n provision-table Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields).\n provision-relation Composable relation provisioning: creates FK fields, indexes, unique constraints, and junction tables depending on the relation_type. Supports RelationBelongsTo, RelationHasOne, RelationHasMany, and RelationManyToMany. ManyToMany uses provision_table() internally for junction table creation with full node/grant/policy support. All operations are graceful (skip existing). Returns (out_field_id, out_junction_table_id, out_source_field_id, out_target_field_id).\n provision-bucket Provision an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then creates and configures\nthe S3 bucket with the appropriate privacy policies, CORS rules,\nand lifecycle settings.\n\n --help, -h Show this help message\n --version, -v Show version\n";
|
|
156
158
|
const commands = async (argv, prompter, options) => {
|
|
157
159
|
if (argv.help || argv.h) {
|
|
158
160
|
console.log(usage);
|
|
@@ -17,45 +17,46 @@ export declare function getClient(contextName?: string): {
|
|
|
17
17
|
usersModule: import("../orm").UsersModuleModel;
|
|
18
18
|
webauthnCredentialsModule: import("../orm").WebauthnCredentialsModuleModel;
|
|
19
19
|
cryptoAddressesModule: import("../orm").CryptoAddressesModuleModel;
|
|
20
|
-
identityProvidersModule: import("../orm").IdentityProvidersModuleModel;
|
|
21
20
|
denormalizedTableField: import("../orm").DenormalizedTableFieldModel;
|
|
21
|
+
identityProvidersModule: import("../orm").IdentityProvidersModuleModel;
|
|
22
22
|
rlsModule: import("../orm").RlsModuleModel;
|
|
23
23
|
blueprint: import("../orm").BlueprintModel;
|
|
24
24
|
blueprintTemplate: import("../orm").BlueprintTemplateModel;
|
|
25
25
|
blueprintConstruction: import("../orm").BlueprintConstructionModel;
|
|
26
26
|
cryptoAuthModule: import("../orm").CryptoAuthModuleModel;
|
|
27
|
-
rateLimitMetersModule: import("../orm").RateLimitMetersModuleModel;
|
|
28
27
|
sessionsModule: import("../orm").SessionsModuleModel;
|
|
29
|
-
|
|
28
|
+
secureTableProvision: import("../orm").SecureTableProvisionModel;
|
|
30
29
|
merkleStoreModule: import("../orm").MerkleStoreModuleModel;
|
|
31
30
|
graphModule: import("../orm").GraphModuleModel;
|
|
32
|
-
secureTableProvision: import("../orm").SecureTableProvisionModel;
|
|
33
|
-
invitesModule: import("../orm").InvitesModuleModel;
|
|
34
31
|
databaseProvisionModule: import("../orm").DatabaseProvisionModuleModel;
|
|
35
|
-
|
|
32
|
+
configSecretsModule: import("../orm").ConfigSecretsModuleModel;
|
|
33
|
+
rateLimitMetersModule: import("../orm").RateLimitMetersModuleModel;
|
|
36
34
|
realtimeModule: import("../orm").RealtimeModuleModel;
|
|
37
35
|
webauthnAuthModule: import("../orm").WebauthnAuthModuleModel;
|
|
36
|
+
functionInvocationModule: import("../orm").FunctionInvocationModuleModel;
|
|
37
|
+
functionModule: import("../orm").FunctionModuleModel;
|
|
38
|
+
invitesModule: import("../orm").InvitesModuleModel;
|
|
39
|
+
namespaceModule: import("../orm").NamespaceModuleModel;
|
|
38
40
|
computeLogModule: import("../orm").ComputeLogModuleModel;
|
|
39
41
|
inferenceLogModule: import("../orm").InferenceLogModuleModel;
|
|
40
42
|
storageLogModule: import("../orm").StorageLogModuleModel;
|
|
41
43
|
transferLogModule: import("../orm").TransferLogModuleModel;
|
|
42
|
-
dbUsageModule: import("../orm").DbUsageModuleModel;
|
|
43
|
-
notificationsModule: import("../orm").NotificationsModuleModel;
|
|
44
44
|
plansModule: import("../orm").PlansModuleModel;
|
|
45
|
-
hierarchyModule: import("../orm").HierarchyModuleModel;
|
|
46
|
-
billingModule: import("../orm").BillingModuleModel;
|
|
47
45
|
billingProviderModule: import("../orm").BillingProviderModuleModel;
|
|
48
|
-
|
|
46
|
+
dbUsageModule: import("../orm").DbUsageModuleModel;
|
|
47
|
+
hierarchyModule: import("../orm").HierarchyModuleModel;
|
|
49
48
|
permissionsModule: import("../orm").PermissionsModuleModel;
|
|
49
|
+
notificationsModule: import("../orm").NotificationsModuleModel;
|
|
50
|
+
profilesModule: import("../orm").ProfilesModuleModel;
|
|
51
|
+
billingModule: import("../orm").BillingModuleModel;
|
|
50
52
|
relationProvision: import("../orm").RelationProvisionModel;
|
|
51
|
-
functionModule: import("../orm").FunctionModuleModel;
|
|
52
53
|
userAuthModule: import("../orm").UserAuthModuleModel;
|
|
53
54
|
agentModule: import("../orm").AgentModuleModel;
|
|
54
55
|
limitsModule: import("../orm").LimitsModuleModel;
|
|
55
56
|
membershipsModule: import("../orm").MembershipsModuleModel;
|
|
57
|
+
entityTypeProvision: import("../orm").EntityTypeProvisionModel;
|
|
56
58
|
storageModule: import("../orm").StorageModuleModel;
|
|
57
59
|
eventsModule: import("../orm").EventsModuleModel;
|
|
58
|
-
entityTypeProvision: import("../orm").EntityTypeProvisionModel;
|
|
59
60
|
query: {
|
|
60
61
|
resolveBlueprintField: (args: import("../orm/query").ResolveBlueprintFieldVariables, options?: {
|
|
61
62
|
select?: Record<string, unknown>;
|
package/modules/orm/index.d.ts
CHANGED
|
@@ -16,45 +16,46 @@ import { RateLimitsModuleModel } from './models/rateLimitsModule';
|
|
|
16
16
|
import { UsersModuleModel } from './models/usersModule';
|
|
17
17
|
import { WebauthnCredentialsModuleModel } from './models/webauthnCredentialsModule';
|
|
18
18
|
import { CryptoAddressesModuleModel } from './models/cryptoAddressesModule';
|
|
19
|
-
import { IdentityProvidersModuleModel } from './models/identityProvidersModule';
|
|
20
19
|
import { DenormalizedTableFieldModel } from './models/denormalizedTableField';
|
|
20
|
+
import { IdentityProvidersModuleModel } from './models/identityProvidersModule';
|
|
21
21
|
import { RlsModuleModel } from './models/rlsModule';
|
|
22
22
|
import { BlueprintModel } from './models/blueprint';
|
|
23
23
|
import { BlueprintTemplateModel } from './models/blueprintTemplate';
|
|
24
24
|
import { BlueprintConstructionModel } from './models/blueprintConstruction';
|
|
25
25
|
import { CryptoAuthModuleModel } from './models/cryptoAuthModule';
|
|
26
|
-
import { RateLimitMetersModuleModel } from './models/rateLimitMetersModule';
|
|
27
26
|
import { SessionsModuleModel } from './models/sessionsModule';
|
|
28
|
-
import {
|
|
27
|
+
import { SecureTableProvisionModel } from './models/secureTableProvision';
|
|
29
28
|
import { MerkleStoreModuleModel } from './models/merkleStoreModule';
|
|
30
29
|
import { GraphModuleModel } from './models/graphModule';
|
|
31
|
-
import { SecureTableProvisionModel } from './models/secureTableProvision';
|
|
32
|
-
import { InvitesModuleModel } from './models/invitesModule';
|
|
33
30
|
import { DatabaseProvisionModuleModel } from './models/databaseProvisionModule';
|
|
34
|
-
import {
|
|
31
|
+
import { ConfigSecretsModuleModel } from './models/configSecretsModule';
|
|
32
|
+
import { RateLimitMetersModuleModel } from './models/rateLimitMetersModule';
|
|
35
33
|
import { RealtimeModuleModel } from './models/realtimeModule';
|
|
36
34
|
import { WebauthnAuthModuleModel } from './models/webauthnAuthModule';
|
|
35
|
+
import { FunctionInvocationModuleModel } from './models/functionInvocationModule';
|
|
36
|
+
import { FunctionModuleModel } from './models/functionModule';
|
|
37
|
+
import { InvitesModuleModel } from './models/invitesModule';
|
|
38
|
+
import { NamespaceModuleModel } from './models/namespaceModule';
|
|
37
39
|
import { ComputeLogModuleModel } from './models/computeLogModule';
|
|
38
40
|
import { InferenceLogModuleModel } from './models/inferenceLogModule';
|
|
39
41
|
import { StorageLogModuleModel } from './models/storageLogModule';
|
|
40
42
|
import { TransferLogModuleModel } from './models/transferLogModule';
|
|
41
|
-
import { DbUsageModuleModel } from './models/dbUsageModule';
|
|
42
|
-
import { NotificationsModuleModel } from './models/notificationsModule';
|
|
43
43
|
import { PlansModuleModel } from './models/plansModule';
|
|
44
|
-
import { HierarchyModuleModel } from './models/hierarchyModule';
|
|
45
|
-
import { BillingModuleModel } from './models/billingModule';
|
|
46
44
|
import { BillingProviderModuleModel } from './models/billingProviderModule';
|
|
47
|
-
import {
|
|
45
|
+
import { DbUsageModuleModel } from './models/dbUsageModule';
|
|
46
|
+
import { HierarchyModuleModel } from './models/hierarchyModule';
|
|
48
47
|
import { PermissionsModuleModel } from './models/permissionsModule';
|
|
48
|
+
import { NotificationsModuleModel } from './models/notificationsModule';
|
|
49
|
+
import { ProfilesModuleModel } from './models/profilesModule';
|
|
50
|
+
import { BillingModuleModel } from './models/billingModule';
|
|
49
51
|
import { RelationProvisionModel } from './models/relationProvision';
|
|
50
|
-
import { FunctionModuleModel } from './models/functionModule';
|
|
51
52
|
import { UserAuthModuleModel } from './models/userAuthModule';
|
|
52
53
|
import { AgentModuleModel } from './models/agentModule';
|
|
53
54
|
import { LimitsModuleModel } from './models/limitsModule';
|
|
54
55
|
import { MembershipsModuleModel } from './models/membershipsModule';
|
|
56
|
+
import { EntityTypeProvisionModel } from './models/entityTypeProvision';
|
|
55
57
|
import { StorageModuleModel } from './models/storageModule';
|
|
56
58
|
import { EventsModuleModel } from './models/eventsModule';
|
|
57
|
-
import { EntityTypeProvisionModel } from './models/entityTypeProvision';
|
|
58
59
|
export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client';
|
|
59
60
|
export { GraphQLRequestError, FetchAdapter } from './client';
|
|
60
61
|
export { QueryBuilder } from './query-builder';
|
|
@@ -103,45 +104,46 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
103
104
|
usersModule: UsersModuleModel;
|
|
104
105
|
webauthnCredentialsModule: WebauthnCredentialsModuleModel;
|
|
105
106
|
cryptoAddressesModule: CryptoAddressesModuleModel;
|
|
106
|
-
identityProvidersModule: IdentityProvidersModuleModel;
|
|
107
107
|
denormalizedTableField: DenormalizedTableFieldModel;
|
|
108
|
+
identityProvidersModule: IdentityProvidersModuleModel;
|
|
108
109
|
rlsModule: RlsModuleModel;
|
|
109
110
|
blueprint: BlueprintModel;
|
|
110
111
|
blueprintTemplate: BlueprintTemplateModel;
|
|
111
112
|
blueprintConstruction: BlueprintConstructionModel;
|
|
112
113
|
cryptoAuthModule: CryptoAuthModuleModel;
|
|
113
|
-
rateLimitMetersModule: RateLimitMetersModuleModel;
|
|
114
114
|
sessionsModule: SessionsModuleModel;
|
|
115
|
-
|
|
115
|
+
secureTableProvision: SecureTableProvisionModel;
|
|
116
116
|
merkleStoreModule: MerkleStoreModuleModel;
|
|
117
117
|
graphModule: GraphModuleModel;
|
|
118
|
-
secureTableProvision: SecureTableProvisionModel;
|
|
119
|
-
invitesModule: InvitesModuleModel;
|
|
120
118
|
databaseProvisionModule: DatabaseProvisionModuleModel;
|
|
121
|
-
|
|
119
|
+
configSecretsModule: ConfigSecretsModuleModel;
|
|
120
|
+
rateLimitMetersModule: RateLimitMetersModuleModel;
|
|
122
121
|
realtimeModule: RealtimeModuleModel;
|
|
123
122
|
webauthnAuthModule: WebauthnAuthModuleModel;
|
|
123
|
+
functionInvocationModule: FunctionInvocationModuleModel;
|
|
124
|
+
functionModule: FunctionModuleModel;
|
|
125
|
+
invitesModule: InvitesModuleModel;
|
|
126
|
+
namespaceModule: NamespaceModuleModel;
|
|
124
127
|
computeLogModule: ComputeLogModuleModel;
|
|
125
128
|
inferenceLogModule: InferenceLogModuleModel;
|
|
126
129
|
storageLogModule: StorageLogModuleModel;
|
|
127
130
|
transferLogModule: TransferLogModuleModel;
|
|
128
|
-
dbUsageModule: DbUsageModuleModel;
|
|
129
|
-
notificationsModule: NotificationsModuleModel;
|
|
130
131
|
plansModule: PlansModuleModel;
|
|
131
|
-
hierarchyModule: HierarchyModuleModel;
|
|
132
|
-
billingModule: BillingModuleModel;
|
|
133
132
|
billingProviderModule: BillingProviderModuleModel;
|
|
134
|
-
|
|
133
|
+
dbUsageModule: DbUsageModuleModel;
|
|
134
|
+
hierarchyModule: HierarchyModuleModel;
|
|
135
135
|
permissionsModule: PermissionsModuleModel;
|
|
136
|
+
notificationsModule: NotificationsModuleModel;
|
|
137
|
+
profilesModule: ProfilesModuleModel;
|
|
138
|
+
billingModule: BillingModuleModel;
|
|
136
139
|
relationProvision: RelationProvisionModel;
|
|
137
|
-
functionModule: FunctionModuleModel;
|
|
138
140
|
userAuthModule: UserAuthModuleModel;
|
|
139
141
|
agentModule: AgentModuleModel;
|
|
140
142
|
limitsModule: LimitsModuleModel;
|
|
141
143
|
membershipsModule: MembershipsModuleModel;
|
|
144
|
+
entityTypeProvision: EntityTypeProvisionModel;
|
|
142
145
|
storageModule: StorageModuleModel;
|
|
143
146
|
eventsModule: EventsModuleModel;
|
|
144
|
-
entityTypeProvision: EntityTypeProvisionModel;
|
|
145
147
|
query: {
|
|
146
148
|
resolveBlueprintField: (args: import("./query").ResolveBlueprintFieldVariables, options?: {
|
|
147
149
|
select?: Record<string, unknown>;
|
package/modules/orm/index.js
CHANGED
|
@@ -39,45 +39,46 @@ const rateLimitsModule_1 = require("./models/rateLimitsModule");
|
|
|
39
39
|
const usersModule_1 = require("./models/usersModule");
|
|
40
40
|
const webauthnCredentialsModule_1 = require("./models/webauthnCredentialsModule");
|
|
41
41
|
const cryptoAddressesModule_1 = require("./models/cryptoAddressesModule");
|
|
42
|
-
const identityProvidersModule_1 = require("./models/identityProvidersModule");
|
|
43
42
|
const denormalizedTableField_1 = require("./models/denormalizedTableField");
|
|
43
|
+
const identityProvidersModule_1 = require("./models/identityProvidersModule");
|
|
44
44
|
const rlsModule_1 = require("./models/rlsModule");
|
|
45
45
|
const blueprint_1 = require("./models/blueprint");
|
|
46
46
|
const blueprintTemplate_1 = require("./models/blueprintTemplate");
|
|
47
47
|
const blueprintConstruction_1 = require("./models/blueprintConstruction");
|
|
48
48
|
const cryptoAuthModule_1 = require("./models/cryptoAuthModule");
|
|
49
|
-
const rateLimitMetersModule_1 = require("./models/rateLimitMetersModule");
|
|
50
49
|
const sessionsModule_1 = require("./models/sessionsModule");
|
|
51
|
-
const
|
|
50
|
+
const secureTableProvision_1 = require("./models/secureTableProvision");
|
|
52
51
|
const merkleStoreModule_1 = require("./models/merkleStoreModule");
|
|
53
52
|
const graphModule_1 = require("./models/graphModule");
|
|
54
|
-
const secureTableProvision_1 = require("./models/secureTableProvision");
|
|
55
|
-
const invitesModule_1 = require("./models/invitesModule");
|
|
56
53
|
const databaseProvisionModule_1 = require("./models/databaseProvisionModule");
|
|
57
|
-
const
|
|
54
|
+
const configSecretsModule_1 = require("./models/configSecretsModule");
|
|
55
|
+
const rateLimitMetersModule_1 = require("./models/rateLimitMetersModule");
|
|
58
56
|
const realtimeModule_1 = require("./models/realtimeModule");
|
|
59
57
|
const webauthnAuthModule_1 = require("./models/webauthnAuthModule");
|
|
58
|
+
const functionInvocationModule_1 = require("./models/functionInvocationModule");
|
|
59
|
+
const functionModule_1 = require("./models/functionModule");
|
|
60
|
+
const invitesModule_1 = require("./models/invitesModule");
|
|
61
|
+
const namespaceModule_1 = require("./models/namespaceModule");
|
|
60
62
|
const computeLogModule_1 = require("./models/computeLogModule");
|
|
61
63
|
const inferenceLogModule_1 = require("./models/inferenceLogModule");
|
|
62
64
|
const storageLogModule_1 = require("./models/storageLogModule");
|
|
63
65
|
const transferLogModule_1 = require("./models/transferLogModule");
|
|
64
|
-
const dbUsageModule_1 = require("./models/dbUsageModule");
|
|
65
|
-
const notificationsModule_1 = require("./models/notificationsModule");
|
|
66
66
|
const plansModule_1 = require("./models/plansModule");
|
|
67
|
-
const hierarchyModule_1 = require("./models/hierarchyModule");
|
|
68
|
-
const billingModule_1 = require("./models/billingModule");
|
|
69
67
|
const billingProviderModule_1 = require("./models/billingProviderModule");
|
|
70
|
-
const
|
|
68
|
+
const dbUsageModule_1 = require("./models/dbUsageModule");
|
|
69
|
+
const hierarchyModule_1 = require("./models/hierarchyModule");
|
|
71
70
|
const permissionsModule_1 = require("./models/permissionsModule");
|
|
71
|
+
const notificationsModule_1 = require("./models/notificationsModule");
|
|
72
|
+
const profilesModule_1 = require("./models/profilesModule");
|
|
73
|
+
const billingModule_1 = require("./models/billingModule");
|
|
72
74
|
const relationProvision_1 = require("./models/relationProvision");
|
|
73
|
-
const functionModule_1 = require("./models/functionModule");
|
|
74
75
|
const userAuthModule_1 = require("./models/userAuthModule");
|
|
75
76
|
const agentModule_1 = require("./models/agentModule");
|
|
76
77
|
const limitsModule_1 = require("./models/limitsModule");
|
|
77
78
|
const membershipsModule_1 = require("./models/membershipsModule");
|
|
79
|
+
const entityTypeProvision_1 = require("./models/entityTypeProvision");
|
|
78
80
|
const storageModule_1 = require("./models/storageModule");
|
|
79
81
|
const eventsModule_1 = require("./models/eventsModule");
|
|
80
|
-
const entityTypeProvision_1 = require("./models/entityTypeProvision");
|
|
81
82
|
const query_1 = require("./query");
|
|
82
83
|
const mutation_1 = require("./mutation");
|
|
83
84
|
var client_2 = require("./client");
|
|
@@ -134,45 +135,46 @@ function createClient(config) {
|
|
|
134
135
|
usersModule: new usersModule_1.UsersModuleModel(client),
|
|
135
136
|
webauthnCredentialsModule: new webauthnCredentialsModule_1.WebauthnCredentialsModuleModel(client),
|
|
136
137
|
cryptoAddressesModule: new cryptoAddressesModule_1.CryptoAddressesModuleModel(client),
|
|
137
|
-
identityProvidersModule: new identityProvidersModule_1.IdentityProvidersModuleModel(client),
|
|
138
138
|
denormalizedTableField: new denormalizedTableField_1.DenormalizedTableFieldModel(client),
|
|
139
|
+
identityProvidersModule: new identityProvidersModule_1.IdentityProvidersModuleModel(client),
|
|
139
140
|
rlsModule: new rlsModule_1.RlsModuleModel(client),
|
|
140
141
|
blueprint: new blueprint_1.BlueprintModel(client),
|
|
141
142
|
blueprintTemplate: new blueprintTemplate_1.BlueprintTemplateModel(client),
|
|
142
143
|
blueprintConstruction: new blueprintConstruction_1.BlueprintConstructionModel(client),
|
|
143
144
|
cryptoAuthModule: new cryptoAuthModule_1.CryptoAuthModuleModel(client),
|
|
144
|
-
rateLimitMetersModule: new rateLimitMetersModule_1.RateLimitMetersModuleModel(client),
|
|
145
145
|
sessionsModule: new sessionsModule_1.SessionsModuleModel(client),
|
|
146
|
-
|
|
146
|
+
secureTableProvision: new secureTableProvision_1.SecureTableProvisionModel(client),
|
|
147
147
|
merkleStoreModule: new merkleStoreModule_1.MerkleStoreModuleModel(client),
|
|
148
148
|
graphModule: new graphModule_1.GraphModuleModel(client),
|
|
149
|
-
secureTableProvision: new secureTableProvision_1.SecureTableProvisionModel(client),
|
|
150
|
-
invitesModule: new invitesModule_1.InvitesModuleModel(client),
|
|
151
149
|
databaseProvisionModule: new databaseProvisionModule_1.DatabaseProvisionModuleModel(client),
|
|
152
|
-
|
|
150
|
+
configSecretsModule: new configSecretsModule_1.ConfigSecretsModuleModel(client),
|
|
151
|
+
rateLimitMetersModule: new rateLimitMetersModule_1.RateLimitMetersModuleModel(client),
|
|
153
152
|
realtimeModule: new realtimeModule_1.RealtimeModuleModel(client),
|
|
154
153
|
webauthnAuthModule: new webauthnAuthModule_1.WebauthnAuthModuleModel(client),
|
|
154
|
+
functionInvocationModule: new functionInvocationModule_1.FunctionInvocationModuleModel(client),
|
|
155
|
+
functionModule: new functionModule_1.FunctionModuleModel(client),
|
|
156
|
+
invitesModule: new invitesModule_1.InvitesModuleModel(client),
|
|
157
|
+
namespaceModule: new namespaceModule_1.NamespaceModuleModel(client),
|
|
155
158
|
computeLogModule: new computeLogModule_1.ComputeLogModuleModel(client),
|
|
156
159
|
inferenceLogModule: new inferenceLogModule_1.InferenceLogModuleModel(client),
|
|
157
160
|
storageLogModule: new storageLogModule_1.StorageLogModuleModel(client),
|
|
158
161
|
transferLogModule: new transferLogModule_1.TransferLogModuleModel(client),
|
|
159
|
-
dbUsageModule: new dbUsageModule_1.DbUsageModuleModel(client),
|
|
160
|
-
notificationsModule: new notificationsModule_1.NotificationsModuleModel(client),
|
|
161
162
|
plansModule: new plansModule_1.PlansModuleModel(client),
|
|
162
|
-
hierarchyModule: new hierarchyModule_1.HierarchyModuleModel(client),
|
|
163
|
-
billingModule: new billingModule_1.BillingModuleModel(client),
|
|
164
163
|
billingProviderModule: new billingProviderModule_1.BillingProviderModuleModel(client),
|
|
165
|
-
|
|
164
|
+
dbUsageModule: new dbUsageModule_1.DbUsageModuleModel(client),
|
|
165
|
+
hierarchyModule: new hierarchyModule_1.HierarchyModuleModel(client),
|
|
166
166
|
permissionsModule: new permissionsModule_1.PermissionsModuleModel(client),
|
|
167
|
+
notificationsModule: new notificationsModule_1.NotificationsModuleModel(client),
|
|
168
|
+
profilesModule: new profilesModule_1.ProfilesModuleModel(client),
|
|
169
|
+
billingModule: new billingModule_1.BillingModuleModel(client),
|
|
167
170
|
relationProvision: new relationProvision_1.RelationProvisionModel(client),
|
|
168
|
-
functionModule: new functionModule_1.FunctionModuleModel(client),
|
|
169
171
|
userAuthModule: new userAuthModule_1.UserAuthModuleModel(client),
|
|
170
172
|
agentModule: new agentModule_1.AgentModuleModel(client),
|
|
171
173
|
limitsModule: new limitsModule_1.LimitsModuleModel(client),
|
|
172
174
|
membershipsModule: new membershipsModule_1.MembershipsModuleModel(client),
|
|
175
|
+
entityTypeProvision: new entityTypeProvision_1.EntityTypeProvisionModel(client),
|
|
173
176
|
storageModule: new storageModule_1.StorageModuleModel(client),
|
|
174
177
|
eventsModule: new eventsModule_1.EventsModuleModel(client),
|
|
175
|
-
entityTypeProvision: new entityTypeProvision_1.EntityTypeProvisionModel(client),
|
|
176
178
|
query: (0, query_1.createQueryOperations)(client),
|
|
177
179
|
mutation: (0, mutation_1.createMutationOperations)(client),
|
|
178
180
|
};
|