@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
|
@@ -16,7 +16,6 @@ const fieldSchema = {
|
|
|
16
16
|
type: 'string',
|
|
17
17
|
fieldIds: 'uuid',
|
|
18
18
|
category: 'string',
|
|
19
|
-
module: 'string',
|
|
20
19
|
scope: 'int',
|
|
21
20
|
tags: 'string',
|
|
22
21
|
createdAt: 'string',
|
|
@@ -73,7 +72,6 @@ async function handleList(argv, _prompter) {
|
|
|
73
72
|
type: true,
|
|
74
73
|
fieldIds: true,
|
|
75
74
|
category: true,
|
|
76
|
-
module: true,
|
|
77
75
|
scope: true,
|
|
78
76
|
tags: true,
|
|
79
77
|
createdAt: true,
|
|
@@ -104,7 +102,6 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
104
102
|
type: true,
|
|
105
103
|
fieldIds: true,
|
|
106
104
|
category: true,
|
|
107
|
-
module: true,
|
|
108
105
|
scope: true,
|
|
109
106
|
tags: true,
|
|
110
107
|
createdAt: true,
|
|
@@ -147,7 +144,6 @@ async function handleGet(argv, prompter) {
|
|
|
147
144
|
type: true,
|
|
148
145
|
fieldIds: true,
|
|
149
146
|
category: true,
|
|
150
|
-
module: true,
|
|
151
147
|
scope: true,
|
|
152
148
|
tags: true,
|
|
153
149
|
createdAt: true,
|
|
@@ -222,13 +218,6 @@ async function handleCreate(argv, prompter) {
|
|
|
222
218
|
required: false,
|
|
223
219
|
skipPrompt: true,
|
|
224
220
|
},
|
|
225
|
-
{
|
|
226
|
-
type: 'text',
|
|
227
|
-
name: 'module',
|
|
228
|
-
message: 'module',
|
|
229
|
-
required: false,
|
|
230
|
-
skipPrompt: true,
|
|
231
|
-
},
|
|
232
221
|
{
|
|
233
222
|
type: 'text',
|
|
234
223
|
name: 'scope',
|
|
@@ -258,7 +247,6 @@ async function handleCreate(argv, prompter) {
|
|
|
258
247
|
type: cleanedData.type,
|
|
259
248
|
fieldIds: cleanedData.fieldIds,
|
|
260
249
|
category: cleanedData.category,
|
|
261
|
-
module: cleanedData.module,
|
|
262
250
|
scope: cleanedData.scope,
|
|
263
251
|
tags: cleanedData.tags,
|
|
264
252
|
},
|
|
@@ -272,7 +260,6 @@ async function handleCreate(argv, prompter) {
|
|
|
272
260
|
type: true,
|
|
273
261
|
fieldIds: true,
|
|
274
262
|
category: true,
|
|
275
|
-
module: true,
|
|
276
263
|
scope: true,
|
|
277
264
|
tags: true,
|
|
278
265
|
createdAt: true,
|
|
@@ -353,13 +340,6 @@ async function handleUpdate(argv, prompter) {
|
|
|
353
340
|
required: false,
|
|
354
341
|
skipPrompt: true,
|
|
355
342
|
},
|
|
356
|
-
{
|
|
357
|
-
type: 'text',
|
|
358
|
-
name: 'module',
|
|
359
|
-
message: 'module',
|
|
360
|
-
required: false,
|
|
361
|
-
skipPrompt: true,
|
|
362
|
-
},
|
|
363
343
|
{
|
|
364
344
|
type: 'text',
|
|
365
345
|
name: 'scope',
|
|
@@ -392,7 +372,6 @@ async function handleUpdate(argv, prompter) {
|
|
|
392
372
|
type: cleanedData.type,
|
|
393
373
|
fieldIds: cleanedData.fieldIds,
|
|
394
374
|
category: cleanedData.category,
|
|
395
|
-
module: cleanedData.module,
|
|
396
375
|
scope: cleanedData.scope,
|
|
397
376
|
tags: cleanedData.tags,
|
|
398
377
|
},
|
|
@@ -406,7 +385,6 @@ async function handleUpdate(argv, prompter) {
|
|
|
406
385
|
type: true,
|
|
407
386
|
fieldIds: true,
|
|
408
387
|
category: true,
|
|
409
|
-
module: true,
|
|
410
388
|
scope: true,
|
|
411
389
|
tags: true,
|
|
412
390
|
createdAt: true,
|
|
@@ -8,6 +8,7 @@ import { getClient } from '../executor';
|
|
|
8
8
|
import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils';
|
|
9
9
|
const fieldSchema = {
|
|
10
10
|
id: 'uuid',
|
|
11
|
+
databaseId: 'uuid',
|
|
11
12
|
viewId: 'uuid',
|
|
12
13
|
tableId: 'uuid',
|
|
13
14
|
joinOrder: 'int',
|
|
@@ -55,6 +56,7 @@ async function handleList(argv, _prompter) {
|
|
|
55
56
|
try {
|
|
56
57
|
const defaultSelect = {
|
|
57
58
|
id: true,
|
|
59
|
+
databaseId: true,
|
|
58
60
|
viewId: true,
|
|
59
61
|
tableId: true,
|
|
60
62
|
joinOrder: true,
|
|
@@ -76,6 +78,7 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
76
78
|
try {
|
|
77
79
|
const defaultSelect = {
|
|
78
80
|
id: true,
|
|
81
|
+
databaseId: true,
|
|
79
82
|
viewId: true,
|
|
80
83
|
tableId: true,
|
|
81
84
|
joinOrder: true,
|
|
@@ -109,6 +112,7 @@ async function handleGet(argv, prompter) {
|
|
|
109
112
|
id: answers.id,
|
|
110
113
|
select: {
|
|
111
114
|
id: true,
|
|
115
|
+
databaseId: true,
|
|
112
116
|
viewId: true,
|
|
113
117
|
tableId: true,
|
|
114
118
|
joinOrder: true,
|
|
@@ -128,6 +132,13 @@ async function handleGet(argv, prompter) {
|
|
|
128
132
|
async function handleCreate(argv, prompter) {
|
|
129
133
|
try {
|
|
130
134
|
const rawAnswers = await prompter.prompt(argv, [
|
|
135
|
+
{
|
|
136
|
+
type: 'text',
|
|
137
|
+
name: 'databaseId',
|
|
138
|
+
message: 'databaseId',
|
|
139
|
+
required: false,
|
|
140
|
+
skipPrompt: true,
|
|
141
|
+
},
|
|
131
142
|
{
|
|
132
143
|
type: 'text',
|
|
133
144
|
name: 'viewId',
|
|
@@ -154,12 +165,14 @@ async function handleCreate(argv, prompter) {
|
|
|
154
165
|
const result = await client.viewTable
|
|
155
166
|
.create({
|
|
156
167
|
data: {
|
|
168
|
+
databaseId: cleanedData.databaseId,
|
|
157
169
|
viewId: cleanedData.viewId,
|
|
158
170
|
tableId: cleanedData.tableId,
|
|
159
171
|
joinOrder: cleanedData.joinOrder,
|
|
160
172
|
},
|
|
161
173
|
select: {
|
|
162
174
|
id: true,
|
|
175
|
+
databaseId: true,
|
|
163
176
|
viewId: true,
|
|
164
177
|
tableId: true,
|
|
165
178
|
joinOrder: true,
|
|
@@ -185,6 +198,13 @@ async function handleUpdate(argv, prompter) {
|
|
|
185
198
|
message: 'id',
|
|
186
199
|
required: true,
|
|
187
200
|
},
|
|
201
|
+
{
|
|
202
|
+
type: 'text',
|
|
203
|
+
name: 'databaseId',
|
|
204
|
+
message: 'databaseId',
|
|
205
|
+
required: false,
|
|
206
|
+
skipPrompt: true,
|
|
207
|
+
},
|
|
188
208
|
{
|
|
189
209
|
type: 'text',
|
|
190
210
|
name: 'viewId',
|
|
@@ -214,12 +234,14 @@ async function handleUpdate(argv, prompter) {
|
|
|
214
234
|
id: answers.id,
|
|
215
235
|
},
|
|
216
236
|
data: {
|
|
237
|
+
databaseId: cleanedData.databaseId,
|
|
217
238
|
viewId: cleanedData.viewId,
|
|
218
239
|
tableId: cleanedData.tableId,
|
|
219
240
|
joinOrder: cleanedData.joinOrder,
|
|
220
241
|
},
|
|
221
242
|
select: {
|
|
222
243
|
id: true,
|
|
244
|
+
databaseId: true,
|
|
223
245
|
viewId: true,
|
|
224
246
|
tableId: true,
|
|
225
247
|
joinOrder: true,
|
|
@@ -20,7 +20,6 @@ const fieldSchema = {
|
|
|
20
20
|
isReadOnly: 'boolean',
|
|
21
21
|
smartTags: 'json',
|
|
22
22
|
category: 'string',
|
|
23
|
-
module: 'string',
|
|
24
23
|
scope: 'int',
|
|
25
24
|
tags: 'string',
|
|
26
25
|
};
|
|
@@ -79,7 +78,6 @@ async function handleList(argv, _prompter) {
|
|
|
79
78
|
isReadOnly: true,
|
|
80
79
|
smartTags: true,
|
|
81
80
|
category: true,
|
|
82
|
-
module: true,
|
|
83
81
|
scope: true,
|
|
84
82
|
tags: true,
|
|
85
83
|
};
|
|
@@ -112,7 +110,6 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
112
110
|
isReadOnly: true,
|
|
113
111
|
smartTags: true,
|
|
114
112
|
category: true,
|
|
115
|
-
module: true,
|
|
116
113
|
scope: true,
|
|
117
114
|
tags: true,
|
|
118
115
|
};
|
|
@@ -157,7 +154,6 @@ async function handleGet(argv, prompter) {
|
|
|
157
154
|
isReadOnly: true,
|
|
158
155
|
smartTags: true,
|
|
159
156
|
category: true,
|
|
160
|
-
module: true,
|
|
161
157
|
scope: true,
|
|
162
158
|
tags: true,
|
|
163
159
|
},
|
|
@@ -257,13 +253,6 @@ async function handleCreate(argv, prompter) {
|
|
|
257
253
|
required: false,
|
|
258
254
|
skipPrompt: true,
|
|
259
255
|
},
|
|
260
|
-
{
|
|
261
|
-
type: 'text',
|
|
262
|
-
name: 'module',
|
|
263
|
-
message: 'module',
|
|
264
|
-
required: false,
|
|
265
|
-
skipPrompt: true,
|
|
266
|
-
},
|
|
267
256
|
{
|
|
268
257
|
type: 'text',
|
|
269
258
|
name: 'scope',
|
|
@@ -297,7 +286,6 @@ async function handleCreate(argv, prompter) {
|
|
|
297
286
|
isReadOnly: cleanedData.isReadOnly,
|
|
298
287
|
smartTags: cleanedData.smartTags,
|
|
299
288
|
category: cleanedData.category,
|
|
300
|
-
module: cleanedData.module,
|
|
301
289
|
scope: cleanedData.scope,
|
|
302
290
|
tags: cleanedData.tags,
|
|
303
291
|
},
|
|
@@ -315,7 +303,6 @@ async function handleCreate(argv, prompter) {
|
|
|
315
303
|
isReadOnly: true,
|
|
316
304
|
smartTags: true,
|
|
317
305
|
category: true,
|
|
318
|
-
module: true,
|
|
319
306
|
scope: true,
|
|
320
307
|
tags: true,
|
|
321
308
|
},
|
|
@@ -421,13 +408,6 @@ async function handleUpdate(argv, prompter) {
|
|
|
421
408
|
required: false,
|
|
422
409
|
skipPrompt: true,
|
|
423
410
|
},
|
|
424
|
-
{
|
|
425
|
-
type: 'text',
|
|
426
|
-
name: 'module',
|
|
427
|
-
message: 'module',
|
|
428
|
-
required: false,
|
|
429
|
-
skipPrompt: true,
|
|
430
|
-
},
|
|
431
411
|
{
|
|
432
412
|
type: 'text',
|
|
433
413
|
name: 'scope',
|
|
@@ -464,7 +444,6 @@ async function handleUpdate(argv, prompter) {
|
|
|
464
444
|
isReadOnly: cleanedData.isReadOnly,
|
|
465
445
|
smartTags: cleanedData.smartTags,
|
|
466
446
|
category: cleanedData.category,
|
|
467
|
-
module: cleanedData.module,
|
|
468
447
|
scope: cleanedData.scope,
|
|
469
448
|
tags: cleanedData.tags,
|
|
470
449
|
},
|
|
@@ -482,7 +461,6 @@ async function handleUpdate(argv, prompter) {
|
|
|
482
461
|
isReadOnly: true,
|
|
483
462
|
smartTags: true,
|
|
484
463
|
category: true,
|
|
485
|
-
module: true,
|
|
486
464
|
scope: true,
|
|
487
465
|
tags: true,
|
|
488
466
|
},
|
package/esm/api/cli/commands.js
CHANGED
|
@@ -28,6 +28,7 @@ import embeddingChunkCmd from './commands/embedding-chunk';
|
|
|
28
28
|
import schemaGrantCmd from './commands/schema-grant';
|
|
29
29
|
import defaultPrivilegeCmd from './commands/default-privilege';
|
|
30
30
|
import enumCmd from './commands/enum';
|
|
31
|
+
import compositeTypeCmd from './commands/composite-type';
|
|
31
32
|
import apiSchemaCmd from './commands/api-schema';
|
|
32
33
|
import apiModuleCmd from './commands/api-module';
|
|
33
34
|
import domainCmd from './commands/domain';
|
|
@@ -86,6 +87,7 @@ const createCommandMap = () => ({
|
|
|
86
87
|
'schema-grant': schemaGrantCmd,
|
|
87
88
|
'default-privilege': defaultPrivilegeCmd,
|
|
88
89
|
enum: enumCmd,
|
|
90
|
+
'composite-type': compositeTypeCmd,
|
|
89
91
|
'api-schema': apiSchemaCmd,
|
|
90
92
|
'api-module': apiModuleCmd,
|
|
91
93
|
domain: domainCmd,
|
|
@@ -120,7 +122,7 @@ const createCommandMap = () => ({
|
|
|
120
122
|
'create-user-database': createUserDatabaseCmd,
|
|
121
123
|
'provision-bucket': provisionBucketCmd,
|
|
122
124
|
});
|
|
123
|
-
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";
|
|
125
|
+
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";
|
|
124
126
|
export const commands = async (argv, prompter, options) => {
|
|
125
127
|
if (argv.help || argv.h) {
|
|
126
128
|
console.log(usage);
|
|
@@ -22,6 +22,7 @@ export declare function getClient(contextName?: string): {
|
|
|
22
22
|
schemaGrant: import("..").SchemaGrantModel;
|
|
23
23
|
defaultPrivilege: import("..").DefaultPrivilegeModel;
|
|
24
24
|
enum: import("..").EnumModel;
|
|
25
|
+
compositeType: import("..").CompositeTypeModel;
|
|
25
26
|
apiSchema: import("..").ApiSchemaModel;
|
|
26
27
|
apiModule: import("..").ApiModuleModel;
|
|
27
28
|
domain: import("..").DomainModel;
|
package/esm/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/esm/api/orm/index.js
CHANGED
|
@@ -26,6 +26,7 @@ import { EmbeddingChunkModel } from './models/embeddingChunk';
|
|
|
26
26
|
import { SchemaGrantModel } from './models/schemaGrant';
|
|
27
27
|
import { DefaultPrivilegeModel } from './models/defaultPrivilege';
|
|
28
28
|
import { EnumModel } from './models/enum';
|
|
29
|
+
import { CompositeTypeModel } from './models/compositeType';
|
|
29
30
|
import { ApiSchemaModel } from './models/apiSchema';
|
|
30
31
|
import { ApiModuleModel } from './models/apiModule';
|
|
31
32
|
import { DomainModel } from './models/domain';
|
|
@@ -105,6 +106,7 @@ export function createClient(config) {
|
|
|
105
106
|
schemaGrant: new SchemaGrantModel(client),
|
|
106
107
|
defaultPrivilege: new DefaultPrivilegeModel(client),
|
|
107
108
|
enum: new EnumModel(client),
|
|
109
|
+
compositeType: new CompositeTypeModel(client),
|
|
108
110
|
apiSchema: new ApiSchemaModel(client),
|
|
109
111
|
apiModule: new ApiModuleModel(client),
|
|
110
112
|
domain: new DomainModel(client),
|