@constructive-sdk/cli 0.25.8 → 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
|
@@ -18,7 +18,6 @@ const fieldSchema = {
|
|
|
18
18
|
type: 'string',
|
|
19
19
|
fieldIds: 'uuid',
|
|
20
20
|
category: 'string',
|
|
21
|
-
module: 'string',
|
|
22
21
|
scope: 'int',
|
|
23
22
|
tags: 'string',
|
|
24
23
|
createdAt: 'string',
|
|
@@ -75,7 +74,6 @@ async function handleList(argv, _prompter) {
|
|
|
75
74
|
type: true,
|
|
76
75
|
fieldIds: true,
|
|
77
76
|
category: true,
|
|
78
|
-
module: true,
|
|
79
77
|
scope: true,
|
|
80
78
|
tags: true,
|
|
81
79
|
createdAt: true,
|
|
@@ -106,7 +104,6 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
106
104
|
type: true,
|
|
107
105
|
fieldIds: true,
|
|
108
106
|
category: true,
|
|
109
|
-
module: true,
|
|
110
107
|
scope: true,
|
|
111
108
|
tags: true,
|
|
112
109
|
createdAt: true,
|
|
@@ -149,7 +146,6 @@ async function handleGet(argv, prompter) {
|
|
|
149
146
|
type: true,
|
|
150
147
|
fieldIds: true,
|
|
151
148
|
category: true,
|
|
152
|
-
module: true,
|
|
153
149
|
scope: true,
|
|
154
150
|
tags: true,
|
|
155
151
|
createdAt: true,
|
|
@@ -224,13 +220,6 @@ async function handleCreate(argv, prompter) {
|
|
|
224
220
|
required: false,
|
|
225
221
|
skipPrompt: true,
|
|
226
222
|
},
|
|
227
|
-
{
|
|
228
|
-
type: 'text',
|
|
229
|
-
name: 'module',
|
|
230
|
-
message: 'module',
|
|
231
|
-
required: false,
|
|
232
|
-
skipPrompt: true,
|
|
233
|
-
},
|
|
234
223
|
{
|
|
235
224
|
type: 'text',
|
|
236
225
|
name: 'scope',
|
|
@@ -260,7 +249,6 @@ async function handleCreate(argv, prompter) {
|
|
|
260
249
|
type: cleanedData.type,
|
|
261
250
|
fieldIds: cleanedData.fieldIds,
|
|
262
251
|
category: cleanedData.category,
|
|
263
|
-
module: cleanedData.module,
|
|
264
252
|
scope: cleanedData.scope,
|
|
265
253
|
tags: cleanedData.tags,
|
|
266
254
|
},
|
|
@@ -274,7 +262,6 @@ async function handleCreate(argv, prompter) {
|
|
|
274
262
|
type: true,
|
|
275
263
|
fieldIds: true,
|
|
276
264
|
category: true,
|
|
277
|
-
module: true,
|
|
278
265
|
scope: true,
|
|
279
266
|
tags: true,
|
|
280
267
|
createdAt: true,
|
|
@@ -355,13 +342,6 @@ async function handleUpdate(argv, prompter) {
|
|
|
355
342
|
required: false,
|
|
356
343
|
skipPrompt: true,
|
|
357
344
|
},
|
|
358
|
-
{
|
|
359
|
-
type: 'text',
|
|
360
|
-
name: 'module',
|
|
361
|
-
message: 'module',
|
|
362
|
-
required: false,
|
|
363
|
-
skipPrompt: true,
|
|
364
|
-
},
|
|
365
345
|
{
|
|
366
346
|
type: 'text',
|
|
367
347
|
name: 'scope',
|
|
@@ -394,7 +374,6 @@ async function handleUpdate(argv, prompter) {
|
|
|
394
374
|
type: cleanedData.type,
|
|
395
375
|
fieldIds: cleanedData.fieldIds,
|
|
396
376
|
category: cleanedData.category,
|
|
397
|
-
module: cleanedData.module,
|
|
398
377
|
scope: cleanedData.scope,
|
|
399
378
|
tags: cleanedData.tags,
|
|
400
379
|
},
|
|
@@ -408,7 +387,6 @@ async function handleUpdate(argv, prompter) {
|
|
|
408
387
|
type: true,
|
|
409
388
|
fieldIds: true,
|
|
410
389
|
category: true,
|
|
411
|
-
module: true,
|
|
412
390
|
scope: true,
|
|
413
391
|
tags: true,
|
|
414
392
|
createdAt: true,
|
|
@@ -10,6 +10,7 @@ const executor_1 = require("../executor");
|
|
|
10
10
|
const utils_1 = require("../utils");
|
|
11
11
|
const fieldSchema = {
|
|
12
12
|
id: 'uuid',
|
|
13
|
+
databaseId: 'uuid',
|
|
13
14
|
viewId: 'uuid',
|
|
14
15
|
tableId: 'uuid',
|
|
15
16
|
joinOrder: 'int',
|
|
@@ -57,6 +58,7 @@ async function handleList(argv, _prompter) {
|
|
|
57
58
|
try {
|
|
58
59
|
const defaultSelect = {
|
|
59
60
|
id: true,
|
|
61
|
+
databaseId: true,
|
|
60
62
|
viewId: true,
|
|
61
63
|
tableId: true,
|
|
62
64
|
joinOrder: true,
|
|
@@ -78,6 +80,7 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
78
80
|
try {
|
|
79
81
|
const defaultSelect = {
|
|
80
82
|
id: true,
|
|
83
|
+
databaseId: true,
|
|
81
84
|
viewId: true,
|
|
82
85
|
tableId: true,
|
|
83
86
|
joinOrder: true,
|
|
@@ -111,6 +114,7 @@ async function handleGet(argv, prompter) {
|
|
|
111
114
|
id: answers.id,
|
|
112
115
|
select: {
|
|
113
116
|
id: true,
|
|
117
|
+
databaseId: true,
|
|
114
118
|
viewId: true,
|
|
115
119
|
tableId: true,
|
|
116
120
|
joinOrder: true,
|
|
@@ -130,6 +134,13 @@ async function handleGet(argv, prompter) {
|
|
|
130
134
|
async function handleCreate(argv, prompter) {
|
|
131
135
|
try {
|
|
132
136
|
const rawAnswers = await prompter.prompt(argv, [
|
|
137
|
+
{
|
|
138
|
+
type: 'text',
|
|
139
|
+
name: 'databaseId',
|
|
140
|
+
message: 'databaseId',
|
|
141
|
+
required: false,
|
|
142
|
+
skipPrompt: true,
|
|
143
|
+
},
|
|
133
144
|
{
|
|
134
145
|
type: 'text',
|
|
135
146
|
name: 'viewId',
|
|
@@ -156,12 +167,14 @@ async function handleCreate(argv, prompter) {
|
|
|
156
167
|
const result = await client.viewTable
|
|
157
168
|
.create({
|
|
158
169
|
data: {
|
|
170
|
+
databaseId: cleanedData.databaseId,
|
|
159
171
|
viewId: cleanedData.viewId,
|
|
160
172
|
tableId: cleanedData.tableId,
|
|
161
173
|
joinOrder: cleanedData.joinOrder,
|
|
162
174
|
},
|
|
163
175
|
select: {
|
|
164
176
|
id: true,
|
|
177
|
+
databaseId: true,
|
|
165
178
|
viewId: true,
|
|
166
179
|
tableId: true,
|
|
167
180
|
joinOrder: true,
|
|
@@ -187,6 +200,13 @@ async function handleUpdate(argv, prompter) {
|
|
|
187
200
|
message: 'id',
|
|
188
201
|
required: true,
|
|
189
202
|
},
|
|
203
|
+
{
|
|
204
|
+
type: 'text',
|
|
205
|
+
name: 'databaseId',
|
|
206
|
+
message: 'databaseId',
|
|
207
|
+
required: false,
|
|
208
|
+
skipPrompt: true,
|
|
209
|
+
},
|
|
190
210
|
{
|
|
191
211
|
type: 'text',
|
|
192
212
|
name: 'viewId',
|
|
@@ -216,12 +236,14 @@ async function handleUpdate(argv, prompter) {
|
|
|
216
236
|
id: answers.id,
|
|
217
237
|
},
|
|
218
238
|
data: {
|
|
239
|
+
databaseId: cleanedData.databaseId,
|
|
219
240
|
viewId: cleanedData.viewId,
|
|
220
241
|
tableId: cleanedData.tableId,
|
|
221
242
|
joinOrder: cleanedData.joinOrder,
|
|
222
243
|
},
|
|
223
244
|
select: {
|
|
224
245
|
id: true,
|
|
246
|
+
databaseId: true,
|
|
225
247
|
viewId: true,
|
|
226
248
|
tableId: true,
|
|
227
249
|
joinOrder: true,
|
package/api/cli/commands/view.js
CHANGED
|
@@ -22,7 +22,6 @@ const fieldSchema = {
|
|
|
22
22
|
isReadOnly: 'boolean',
|
|
23
23
|
smartTags: 'json',
|
|
24
24
|
category: 'string',
|
|
25
|
-
module: 'string',
|
|
26
25
|
scope: 'int',
|
|
27
26
|
tags: 'string',
|
|
28
27
|
};
|
|
@@ -81,7 +80,6 @@ async function handleList(argv, _prompter) {
|
|
|
81
80
|
isReadOnly: true,
|
|
82
81
|
smartTags: true,
|
|
83
82
|
category: true,
|
|
84
|
-
module: true,
|
|
85
83
|
scope: true,
|
|
86
84
|
tags: true,
|
|
87
85
|
};
|
|
@@ -114,7 +112,6 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
114
112
|
isReadOnly: true,
|
|
115
113
|
smartTags: true,
|
|
116
114
|
category: true,
|
|
117
|
-
module: true,
|
|
118
115
|
scope: true,
|
|
119
116
|
tags: true,
|
|
120
117
|
};
|
|
@@ -159,7 +156,6 @@ async function handleGet(argv, prompter) {
|
|
|
159
156
|
isReadOnly: true,
|
|
160
157
|
smartTags: true,
|
|
161
158
|
category: true,
|
|
162
|
-
module: true,
|
|
163
159
|
scope: true,
|
|
164
160
|
tags: true,
|
|
165
161
|
},
|
|
@@ -259,13 +255,6 @@ async function handleCreate(argv, prompter) {
|
|
|
259
255
|
required: false,
|
|
260
256
|
skipPrompt: true,
|
|
261
257
|
},
|
|
262
|
-
{
|
|
263
|
-
type: 'text',
|
|
264
|
-
name: 'module',
|
|
265
|
-
message: 'module',
|
|
266
|
-
required: false,
|
|
267
|
-
skipPrompt: true,
|
|
268
|
-
},
|
|
269
258
|
{
|
|
270
259
|
type: 'text',
|
|
271
260
|
name: 'scope',
|
|
@@ -299,7 +288,6 @@ async function handleCreate(argv, prompter) {
|
|
|
299
288
|
isReadOnly: cleanedData.isReadOnly,
|
|
300
289
|
smartTags: cleanedData.smartTags,
|
|
301
290
|
category: cleanedData.category,
|
|
302
|
-
module: cleanedData.module,
|
|
303
291
|
scope: cleanedData.scope,
|
|
304
292
|
tags: cleanedData.tags,
|
|
305
293
|
},
|
|
@@ -317,7 +305,6 @@ async function handleCreate(argv, prompter) {
|
|
|
317
305
|
isReadOnly: true,
|
|
318
306
|
smartTags: true,
|
|
319
307
|
category: true,
|
|
320
|
-
module: true,
|
|
321
308
|
scope: true,
|
|
322
309
|
tags: true,
|
|
323
310
|
},
|
|
@@ -423,13 +410,6 @@ async function handleUpdate(argv, prompter) {
|
|
|
423
410
|
required: false,
|
|
424
411
|
skipPrompt: true,
|
|
425
412
|
},
|
|
426
|
-
{
|
|
427
|
-
type: 'text',
|
|
428
|
-
name: 'module',
|
|
429
|
-
message: 'module',
|
|
430
|
-
required: false,
|
|
431
|
-
skipPrompt: true,
|
|
432
|
-
},
|
|
433
413
|
{
|
|
434
414
|
type: 'text',
|
|
435
415
|
name: 'scope',
|
|
@@ -466,7 +446,6 @@ async function handleUpdate(argv, prompter) {
|
|
|
466
446
|
isReadOnly: cleanedData.isReadOnly,
|
|
467
447
|
smartTags: cleanedData.smartTags,
|
|
468
448
|
category: cleanedData.category,
|
|
469
|
-
module: cleanedData.module,
|
|
470
449
|
scope: cleanedData.scope,
|
|
471
450
|
tags: cleanedData.tags,
|
|
472
451
|
},
|
|
@@ -484,7 +463,6 @@ async function handleUpdate(argv, prompter) {
|
|
|
484
463
|
isReadOnly: true,
|
|
485
464
|
smartTags: true,
|
|
486
465
|
category: true,
|
|
487
|
-
module: true,
|
|
488
466
|
scope: true,
|
|
489
467
|
tags: true,
|
|
490
468
|
},
|
package/api/cli/commands.js
CHANGED
|
@@ -34,6 +34,7 @@ const embedding_chunk_1 = __importDefault(require("./commands/embedding-chunk"))
|
|
|
34
34
|
const schema_grant_1 = __importDefault(require("./commands/schema-grant"));
|
|
35
35
|
const default_privilege_1 = __importDefault(require("./commands/default-privilege"));
|
|
36
36
|
const enum_1 = __importDefault(require("./commands/enum"));
|
|
37
|
+
const composite_type_1 = __importDefault(require("./commands/composite-type"));
|
|
37
38
|
const api_schema_1 = __importDefault(require("./commands/api-schema"));
|
|
38
39
|
const api_module_1 = __importDefault(require("./commands/api-module"));
|
|
39
40
|
const domain_1 = __importDefault(require("./commands/domain"));
|
|
@@ -92,6 +93,7 @@ const createCommandMap = () => ({
|
|
|
92
93
|
'schema-grant': schema_grant_1.default,
|
|
93
94
|
'default-privilege': default_privilege_1.default,
|
|
94
95
|
enum: enum_1.default,
|
|
96
|
+
'composite-type': composite_type_1.default,
|
|
95
97
|
'api-schema': api_schema_1.default,
|
|
96
98
|
'api-module': api_module_1.default,
|
|
97
99
|
domain: domain_1.default,
|
|
@@ -126,7 +128,7 @@ const createCommandMap = () => ({
|
|
|
126
128
|
'create-user-database': create_user_database_1.default,
|
|
127
129
|
'provision-bucket': provision_bucket_1.default,
|
|
128
130
|
});
|
|
129
|
-
const usage = "\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n function function 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 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 cors-setting corsSetting CRUD operations\n trigger-function triggerFunction CRUD operations\n partition partition 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 migrate-file migrateFile CRUD operations\n node-type-registry nodeTypeRegistry CRUD operations\n pubkey-setting pubkeySetting CRUD operations\n database database CRUD operations\n rls-setting rlsSetting CRUD operations\n sql-action sqlAction CRUD operations\n database-setting databaseSetting CRUD operations\n webauthn-setting webauthnSetting CRUD operations\n ast-migration astMigration CRUD operations\n apply-registry-defaults applyRegistryDefaults\n accept-database-transfer acceptDatabaseTransfer\n cancel-database-transfer cancelDatabaseTransfer\n reject-database-transfer rejectDatabaseTransfer\n provision-database-with-user provisionDatabaseWithUser\n bootstrap-user bootstrapUser\n set-field-order setFieldOrder\n apply-rls applyRls\n create-user-database Creates a new user database with all required modules, permissions, and RLS policies.\n\nParameters:\n - database_name: Name for the new database (required)\n - owner_id: UUID of the owner user (required)\n - include_invites: Include invite system (default: true)\n - include_groups: Include group-level memberships (default: false)\n - include_levels: Include events/analytics (default: false)\n - bitlen: Bit length for permission masks (default: 64)\n - tokens_expiration: Token expiration interval (default: 30 days)\n\nReturns the database_id UUID of the newly created database.\n\nExample usage:\n SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid);\n SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid, true, true); -- with invites and groups\n\n 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";
|
|
131
|
+
const usage = "\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n function function 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 schema-grant schemaGrant CRUD operations\n default-privilege defaultPrivilege CRUD operations\n enum enum CRUD operations\n composite-type compositeType 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 partition partition 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 migrate-file migrateFile CRUD operations\n node-type-registry nodeTypeRegistry CRUD operations\n pubkey-setting pubkeySetting CRUD operations\n database database CRUD operations\n rls-setting rlsSetting CRUD operations\n sql-action sqlAction CRUD operations\n database-setting databaseSetting CRUD operations\n webauthn-setting webauthnSetting CRUD operations\n ast-migration astMigration CRUD operations\n apply-registry-defaults applyRegistryDefaults\n accept-database-transfer acceptDatabaseTransfer\n cancel-database-transfer cancelDatabaseTransfer\n reject-database-transfer rejectDatabaseTransfer\n provision-database-with-user provisionDatabaseWithUser\n bootstrap-user bootstrapUser\n set-field-order setFieldOrder\n apply-rls applyRls\n create-user-database Creates a new user database with all required modules, permissions, and RLS policies.\n\nParameters:\n - database_name: Name for the new database (required)\n - owner_id: UUID of the owner user (required)\n - include_invites: Include invite system (default: true)\n - include_groups: Include group-level memberships (default: false)\n - include_levels: Include events/analytics (default: false)\n - bitlen: Bit length for permission masks (default: 64)\n - tokens_expiration: Token expiration interval (default: 30 days)\n\nReturns the database_id UUID of the newly created database.\n\nExample usage:\n SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid);\n SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid, true, true); -- with invites and groups\n\n 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";
|
|
130
132
|
const commands = async (argv, prompter, options) => {
|
|
131
133
|
if (argv.help || argv.h) {
|
|
132
134
|
console.log(usage);
|
package/api/cli/executor.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ export declare function getClient(contextName?: string): {
|
|
|
22
22
|
schemaGrant: import("../orm").SchemaGrantModel;
|
|
23
23
|
defaultPrivilege: import("../orm").DefaultPrivilegeModel;
|
|
24
24
|
enum: import("../orm").EnumModel;
|
|
25
|
+
compositeType: import("../orm").CompositeTypeModel;
|
|
25
26
|
apiSchema: import("../orm").ApiSchemaModel;
|
|
26
27
|
apiModule: import("../orm").ApiModuleModel;
|
|
27
28
|
domain: import("../orm").DomainModel;
|
package/api/orm/index.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ import { EmbeddingChunkModel } from './models/embeddingChunk';
|
|
|
21
21
|
import { SchemaGrantModel } from './models/schemaGrant';
|
|
22
22
|
import { DefaultPrivilegeModel } from './models/defaultPrivilege';
|
|
23
23
|
import { EnumModel } from './models/enum';
|
|
24
|
+
import { CompositeTypeModel } from './models/compositeType';
|
|
24
25
|
import { ApiSchemaModel } from './models/apiSchema';
|
|
25
26
|
import { ApiModuleModel } from './models/apiModule';
|
|
26
27
|
import { DomainModel } from './models/domain';
|
|
@@ -97,6 +98,7 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
97
98
|
schemaGrant: SchemaGrantModel;
|
|
98
99
|
defaultPrivilege: DefaultPrivilegeModel;
|
|
99
100
|
enum: EnumModel;
|
|
101
|
+
compositeType: CompositeTypeModel;
|
|
100
102
|
apiSchema: ApiSchemaModel;
|
|
101
103
|
apiModule: ApiModuleModel;
|
|
102
104
|
domain: DomainModel;
|
package/api/orm/index.js
CHANGED
|
@@ -44,6 +44,7 @@ const embeddingChunk_1 = require("./models/embeddingChunk");
|
|
|
44
44
|
const schemaGrant_1 = require("./models/schemaGrant");
|
|
45
45
|
const defaultPrivilege_1 = require("./models/defaultPrivilege");
|
|
46
46
|
const enum_1 = require("./models/enum");
|
|
47
|
+
const compositeType_1 = require("./models/compositeType");
|
|
47
48
|
const apiSchema_1 = require("./models/apiSchema");
|
|
48
49
|
const apiModule_1 = require("./models/apiModule");
|
|
49
50
|
const domain_1 = require("./models/domain");
|
|
@@ -128,6 +129,7 @@ function createClient(config) {
|
|
|
128
129
|
schemaGrant: new schemaGrant_1.SchemaGrantModel(client),
|
|
129
130
|
defaultPrivilege: new defaultPrivilege_1.DefaultPrivilegeModel(client),
|
|
130
131
|
enum: new enum_1.EnumModel(client),
|
|
132
|
+
compositeType: new compositeType_1.CompositeTypeModel(client),
|
|
131
133
|
apiSchema: new apiSchema_1.ApiSchemaModel(client),
|
|
132
134
|
apiModule: new apiModule_1.ApiModuleModel(client),
|
|
133
135
|
domain: new domain_1.DomainModel(client),
|