@constructive-sdk/cli 0.25.9 → 0.25.11
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
|
@@ -359,7 +359,7 @@ export interface User {
|
|
|
359
359
|
searchTsvRank?: number | null;
|
|
360
360
|
/** TRGM similarity when searching `displayName`. Returns null when no trgm search filter is active. */
|
|
361
361
|
displayNameTrgmSimilarity?: number | null;
|
|
362
|
-
/** Composite search relevance score (0..1, higher = more relevant). Computed
|
|
362
|
+
/** Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */
|
|
363
363
|
searchScore?: number | null;
|
|
364
364
|
}
|
|
365
365
|
export interface ConnectionResult<T> {
|
|
@@ -1119,6 +1119,22 @@ export interface SignInCrossOriginInput {
|
|
|
1119
1119
|
token?: string;
|
|
1120
1120
|
credentialKind?: string;
|
|
1121
1121
|
}
|
|
1122
|
+
export interface SignInSmsOtpInput {
|
|
1123
|
+
clientMutationId?: string;
|
|
1124
|
+
phone?: string;
|
|
1125
|
+
code?: string;
|
|
1126
|
+
credentialKind?: string;
|
|
1127
|
+
rememberMe?: boolean;
|
|
1128
|
+
deviceToken?: string;
|
|
1129
|
+
}
|
|
1130
|
+
export interface SignUpSmsInput {
|
|
1131
|
+
clientMutationId?: string;
|
|
1132
|
+
phone?: string;
|
|
1133
|
+
code?: string;
|
|
1134
|
+
credentialKind?: string;
|
|
1135
|
+
rememberMe?: boolean;
|
|
1136
|
+
deviceToken?: string;
|
|
1137
|
+
}
|
|
1122
1138
|
export interface SignUpInput {
|
|
1123
1139
|
clientMutationId?: string;
|
|
1124
1140
|
email?: string;
|
|
@@ -1137,6 +1153,12 @@ export interface SignInInput {
|
|
|
1137
1153
|
csrfToken?: string;
|
|
1138
1154
|
deviceToken?: string;
|
|
1139
1155
|
}
|
|
1156
|
+
export interface LinkIdentityInput {
|
|
1157
|
+
clientMutationId?: string;
|
|
1158
|
+
service: string;
|
|
1159
|
+
identifier: string;
|
|
1160
|
+
details?: Record<string, unknown>;
|
|
1161
|
+
}
|
|
1140
1162
|
export interface ExtendTokenExpiresInput {
|
|
1141
1163
|
clientMutationId?: string;
|
|
1142
1164
|
amount?: IntervalInput;
|
|
@@ -1511,6 +1533,132 @@ export interface TrgmSearchInput {
|
|
|
1511
1533
|
/** Minimum similarity threshold (0.0 to 1.0). Higher = stricter matching. Default is 0.3. */
|
|
1512
1534
|
threshold?: number;
|
|
1513
1535
|
}
|
|
1536
|
+
/** An input for mutations affecting `Email` */
|
|
1537
|
+
export interface EmailInput {
|
|
1538
|
+
id?: string;
|
|
1539
|
+
ownerId?: string;
|
|
1540
|
+
/** The email address */
|
|
1541
|
+
email: ConstructiveInternalTypeEmail;
|
|
1542
|
+
/** Whether the email address has been verified via confirmation link */
|
|
1543
|
+
isVerified?: boolean;
|
|
1544
|
+
/** Whether this is the user's primary email address */
|
|
1545
|
+
isPrimary?: boolean;
|
|
1546
|
+
/** Optional user-provided label for this email (e.g. "Work", "Personal"). */
|
|
1547
|
+
name?: string;
|
|
1548
|
+
createdAt?: string;
|
|
1549
|
+
updatedAt?: string;
|
|
1550
|
+
}
|
|
1551
|
+
/** An input for mutations affecting `PhoneNumber` */
|
|
1552
|
+
export interface PhoneNumberInput {
|
|
1553
|
+
id?: string;
|
|
1554
|
+
ownerId?: string;
|
|
1555
|
+
/** Country calling code (e.g. +1, +44) */
|
|
1556
|
+
cc: string;
|
|
1557
|
+
/** The phone number without country code */
|
|
1558
|
+
number: string;
|
|
1559
|
+
/** Whether the phone number has been verified via SMS code */
|
|
1560
|
+
isVerified?: boolean;
|
|
1561
|
+
/** Whether this is the user's primary phone number */
|
|
1562
|
+
isPrimary?: boolean;
|
|
1563
|
+
/** Optional user-provided label for this phone number (e.g. "Mobile", "Work"). */
|
|
1564
|
+
name?: string;
|
|
1565
|
+
createdAt?: string;
|
|
1566
|
+
updatedAt?: string;
|
|
1567
|
+
}
|
|
1568
|
+
/** An input for mutations affecting `CryptoAddress` */
|
|
1569
|
+
export interface CryptoAddressInput {
|
|
1570
|
+
id?: string;
|
|
1571
|
+
ownerId?: string;
|
|
1572
|
+
/** The cryptocurrency wallet address, validated against network-specific patterns */
|
|
1573
|
+
address: string;
|
|
1574
|
+
/** Whether ownership of this address has been cryptographically verified */
|
|
1575
|
+
isVerified?: boolean;
|
|
1576
|
+
/** Whether this is the user's primary cryptocurrency address */
|
|
1577
|
+
isPrimary?: boolean;
|
|
1578
|
+
/** Optional user-provided label for this address (e.g. "Main wallet", "Hardware wallet"). */
|
|
1579
|
+
name?: string;
|
|
1580
|
+
createdAt?: string;
|
|
1581
|
+
updatedAt?: string;
|
|
1582
|
+
}
|
|
1583
|
+
/** An input for mutations affecting `WebauthnCredential` */
|
|
1584
|
+
export interface WebauthnCredentialInput {
|
|
1585
|
+
id?: string;
|
|
1586
|
+
ownerId?: string;
|
|
1587
|
+
/** Base64url-encoded credential ID returned by the authenticator. Globally unique per WebAuthn spec. */
|
|
1588
|
+
credentialId: string;
|
|
1589
|
+
/** COSE-encoded public key bytes from the authenticator attestation. */
|
|
1590
|
+
publicKey: Base64EncodedBinary;
|
|
1591
|
+
/** Monotonic signature counter. Strict-increase check during sign-in detects cloned credentials. 0 means the authenticator does not implement a counter. */
|
|
1592
|
+
signCount?: string;
|
|
1593
|
+
/** Random per-user handle sent to authenticators as user.id. Privacy-preserving; NOT the internal user UUID. */
|
|
1594
|
+
webauthnUserId: string;
|
|
1595
|
+
/** Authenticator transport hints (e.g. usb, nfc, ble, internal, hybrid). Used to hint browser UI during sign-in. */
|
|
1596
|
+
transports?: string[];
|
|
1597
|
+
/** Either 'singleDevice' (hardware-bound) or 'multiDevice' (synced passkey). Enforced by CHECK constraint below. */
|
|
1598
|
+
credentialDeviceType: string;
|
|
1599
|
+
/** Whether this credential is eligible for backup (syncing) per the authenticator's flags at registration. */
|
|
1600
|
+
backupEligible?: boolean;
|
|
1601
|
+
/** Current backup state; updated on each successful sign-in assertion. */
|
|
1602
|
+
backupState?: boolean;
|
|
1603
|
+
/** User-provided label for this credential (e.g. "YubiKey 5C", "iPhone 15"). Renamed via rename_passkey. */
|
|
1604
|
+
name?: string;
|
|
1605
|
+
/** Timestamp of the most recent successful sign-in assertion using this credential. */
|
|
1606
|
+
lastUsedAt?: string;
|
|
1607
|
+
createdAt?: string;
|
|
1608
|
+
updatedAt?: string;
|
|
1609
|
+
}
|
|
1610
|
+
/** An input for mutations affecting `AuditLogAuth` */
|
|
1611
|
+
export interface AuditLogAuthInput {
|
|
1612
|
+
createdAt?: string;
|
|
1613
|
+
/** Unique identifier for each audit event (uuidv7 provides temporal ordering) */
|
|
1614
|
+
id?: string;
|
|
1615
|
+
/** Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) */
|
|
1616
|
+
event: string;
|
|
1617
|
+
/** User who performed the authentication action; NULL if user was deleted */
|
|
1618
|
+
actorId?: string;
|
|
1619
|
+
/** Request origin (domain) where the auth event occurred */
|
|
1620
|
+
origin?: ConstructiveInternalTypeOrigin;
|
|
1621
|
+
/** Browser or client user-agent string from the request */
|
|
1622
|
+
userAgent?: string;
|
|
1623
|
+
/** IP address of the client that initiated the auth event */
|
|
1624
|
+
ipAddress?: string;
|
|
1625
|
+
/** Whether the authentication attempt succeeded */
|
|
1626
|
+
success: boolean;
|
|
1627
|
+
}
|
|
1628
|
+
/** An input for mutations affecting `IdentityProvider` */
|
|
1629
|
+
export interface IdentityProviderInput {
|
|
1630
|
+
slug?: string;
|
|
1631
|
+
kind?: string;
|
|
1632
|
+
displayName?: string;
|
|
1633
|
+
enabled?: boolean;
|
|
1634
|
+
isBuiltIn?: boolean;
|
|
1635
|
+
}
|
|
1636
|
+
/** An input for mutations affecting `RoleType` */
|
|
1637
|
+
export interface RoleTypeInput {
|
|
1638
|
+
id: number;
|
|
1639
|
+
name: string;
|
|
1640
|
+
}
|
|
1641
|
+
/** An input for mutations affecting `UserConnectedAccount` */
|
|
1642
|
+
export interface UserConnectedAccountInput {
|
|
1643
|
+
id?: string;
|
|
1644
|
+
ownerId?: string;
|
|
1645
|
+
service?: string;
|
|
1646
|
+
identifier?: string;
|
|
1647
|
+
details?: Record<string, unknown>;
|
|
1648
|
+
isVerified?: boolean;
|
|
1649
|
+
createdAt?: string;
|
|
1650
|
+
updatedAt?: string;
|
|
1651
|
+
}
|
|
1652
|
+
/** An input for mutations affecting `User` */
|
|
1653
|
+
export interface UserInput {
|
|
1654
|
+
id?: string;
|
|
1655
|
+
username?: string;
|
|
1656
|
+
displayName?: string;
|
|
1657
|
+
profilePicture?: ConstructiveInternalTypeImage;
|
|
1658
|
+
type?: number;
|
|
1659
|
+
createdAt?: string;
|
|
1660
|
+
updatedAt?: string;
|
|
1661
|
+
}
|
|
1514
1662
|
/** An interval of time that has passed where the smallest distinct unit is a second. */
|
|
1515
1663
|
export interface IntervalInput {
|
|
1516
1664
|
/**
|
|
@@ -2157,6 +2305,26 @@ export type SignInCrossOriginPayloadSelect = {
|
|
|
2157
2305
|
select: SignInCrossOriginRecordSelect;
|
|
2158
2306
|
};
|
|
2159
2307
|
};
|
|
2308
|
+
export interface SignInSmsOtpPayload {
|
|
2309
|
+
clientMutationId?: string | null;
|
|
2310
|
+
result?: SignInSmsOtpRecord | null;
|
|
2311
|
+
}
|
|
2312
|
+
export type SignInSmsOtpPayloadSelect = {
|
|
2313
|
+
clientMutationId?: boolean;
|
|
2314
|
+
result?: {
|
|
2315
|
+
select: SignInSmsOtpRecordSelect;
|
|
2316
|
+
};
|
|
2317
|
+
};
|
|
2318
|
+
export interface SignUpSmsPayload {
|
|
2319
|
+
clientMutationId?: string | null;
|
|
2320
|
+
result?: SignUpSmsRecord | null;
|
|
2321
|
+
}
|
|
2322
|
+
export type SignUpSmsPayloadSelect = {
|
|
2323
|
+
clientMutationId?: boolean;
|
|
2324
|
+
result?: {
|
|
2325
|
+
select: SignUpSmsRecordSelect;
|
|
2326
|
+
};
|
|
2327
|
+
};
|
|
2160
2328
|
export interface SignUpPayload {
|
|
2161
2329
|
clientMutationId?: string | null;
|
|
2162
2330
|
result?: SignUpRecord | null;
|
|
@@ -2177,6 +2345,14 @@ export type SignInPayloadSelect = {
|
|
|
2177
2345
|
select: SignInRecordSelect;
|
|
2178
2346
|
};
|
|
2179
2347
|
};
|
|
2348
|
+
export interface LinkIdentityPayload {
|
|
2349
|
+
clientMutationId?: string | null;
|
|
2350
|
+
result?: boolean | null;
|
|
2351
|
+
}
|
|
2352
|
+
export type LinkIdentityPayloadSelect = {
|
|
2353
|
+
clientMutationId?: boolean;
|
|
2354
|
+
result?: boolean;
|
|
2355
|
+
};
|
|
2180
2356
|
export interface ExtendTokenExpiresPayload {
|
|
2181
2357
|
clientMutationId?: string | null;
|
|
2182
2358
|
result?: ExtendTokenExpiresRecord[] | null;
|
|
@@ -2594,6 +2770,26 @@ export type SignInCrossOriginRecordSelect = {
|
|
|
2594
2770
|
isVerified?: boolean;
|
|
2595
2771
|
totpEnabled?: boolean;
|
|
2596
2772
|
};
|
|
2773
|
+
export interface SignInSmsOtpRecord {
|
|
2774
|
+
userId?: string | null;
|
|
2775
|
+
accessToken?: string | null;
|
|
2776
|
+
accessTokenExpiresAt?: string | null;
|
|
2777
|
+
}
|
|
2778
|
+
export type SignInSmsOtpRecordSelect = {
|
|
2779
|
+
userId?: boolean;
|
|
2780
|
+
accessToken?: boolean;
|
|
2781
|
+
accessTokenExpiresAt?: boolean;
|
|
2782
|
+
};
|
|
2783
|
+
export interface SignUpSmsRecord {
|
|
2784
|
+
userId?: string | null;
|
|
2785
|
+
accessToken?: string | null;
|
|
2786
|
+
accessTokenExpiresAt?: string | null;
|
|
2787
|
+
}
|
|
2788
|
+
export type SignUpSmsRecordSelect = {
|
|
2789
|
+
userId?: boolean;
|
|
2790
|
+
accessToken?: boolean;
|
|
2791
|
+
accessTokenExpiresAt?: boolean;
|
|
2792
|
+
};
|
|
2597
2793
|
export interface SignUpRecord {
|
|
2598
2794
|
id?: string | null;
|
|
2599
2795
|
userId?: string | null;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { OrmClient } from '../client';
|
|
7
7
|
import { QueryBuilder } from '../query-builder';
|
|
8
8
|
import type { InferSelectResult, StrictSelect } from '../select-types';
|
|
9
|
-
import type { SignOutInput, SendAccountDeletionEmailInput, CheckPasswordInput, DisconnectAccountInput, RevokeApiKeyInput, RevokeSessionInput, VerifyPasswordInput, VerifyTotpInput, ConfirmDeleteAccountInput, SetPasswordInput, VerifyEmailInput, ProvisionNewUserInput, ResetPasswordInput, SignInCrossOriginInput, SignUpInput, SignInInput, ExtendTokenExpiresInput, CreateApiKeyInput, RequestCrossOriginTokenInput, ForgotPasswordInput, SendVerificationEmailInput, ProvisionBucketInput, SignOutPayload, SendAccountDeletionEmailPayload, CheckPasswordPayload, DisconnectAccountPayload, RevokeApiKeyPayload, RevokeSessionPayload, VerifyPasswordPayload, VerifyTotpPayload, ConfirmDeleteAccountPayload, SetPasswordPayload, VerifyEmailPayload, ProvisionNewUserPayload, ResetPasswordPayload, SignInCrossOriginPayload, SignUpPayload, SignInPayload, ExtendTokenExpiresPayload, CreateApiKeyPayload, RequestCrossOriginTokenPayload, ForgotPasswordPayload, SendVerificationEmailPayload, ProvisionBucketPayload, SignOutPayloadSelect, SendAccountDeletionEmailPayloadSelect, CheckPasswordPayloadSelect, DisconnectAccountPayloadSelect, RevokeApiKeyPayloadSelect, RevokeSessionPayloadSelect, VerifyPasswordPayloadSelect, VerifyTotpPayloadSelect, ConfirmDeleteAccountPayloadSelect, SetPasswordPayloadSelect, VerifyEmailPayloadSelect, ProvisionNewUserPayloadSelect, ResetPasswordPayloadSelect, SignInCrossOriginPayloadSelect, SignUpPayloadSelect, SignInPayloadSelect, ExtendTokenExpiresPayloadSelect, CreateApiKeyPayloadSelect, RequestCrossOriginTokenPayloadSelect, ForgotPasswordPayloadSelect, SendVerificationEmailPayloadSelect, ProvisionBucketPayloadSelect } from '../input-types';
|
|
9
|
+
import type { SignOutInput, SendAccountDeletionEmailInput, CheckPasswordInput, DisconnectAccountInput, RevokeApiKeyInput, RevokeSessionInput, VerifyPasswordInput, VerifyTotpInput, ConfirmDeleteAccountInput, SetPasswordInput, VerifyEmailInput, ProvisionNewUserInput, ResetPasswordInput, SignInCrossOriginInput, SignInSmsOtpInput, SignUpSmsInput, SignUpInput, SignInInput, LinkIdentityInput, ExtendTokenExpiresInput, CreateApiKeyInput, RequestCrossOriginTokenInput, ForgotPasswordInput, SendVerificationEmailInput, ProvisionBucketInput, SignOutPayload, SendAccountDeletionEmailPayload, CheckPasswordPayload, DisconnectAccountPayload, RevokeApiKeyPayload, RevokeSessionPayload, VerifyPasswordPayload, VerifyTotpPayload, ConfirmDeleteAccountPayload, SetPasswordPayload, VerifyEmailPayload, ProvisionNewUserPayload, ResetPasswordPayload, SignInCrossOriginPayload, SignInSmsOtpPayload, SignUpSmsPayload, SignUpPayload, SignInPayload, LinkIdentityPayload, ExtendTokenExpiresPayload, CreateApiKeyPayload, RequestCrossOriginTokenPayload, ForgotPasswordPayload, SendVerificationEmailPayload, ProvisionBucketPayload, SignOutPayloadSelect, SendAccountDeletionEmailPayloadSelect, CheckPasswordPayloadSelect, DisconnectAccountPayloadSelect, RevokeApiKeyPayloadSelect, RevokeSessionPayloadSelect, VerifyPasswordPayloadSelect, VerifyTotpPayloadSelect, ConfirmDeleteAccountPayloadSelect, SetPasswordPayloadSelect, VerifyEmailPayloadSelect, ProvisionNewUserPayloadSelect, ResetPasswordPayloadSelect, SignInCrossOriginPayloadSelect, SignInSmsOtpPayloadSelect, SignUpSmsPayloadSelect, SignUpPayloadSelect, SignInPayloadSelect, LinkIdentityPayloadSelect, ExtendTokenExpiresPayloadSelect, CreateApiKeyPayloadSelect, RequestCrossOriginTokenPayloadSelect, ForgotPasswordPayloadSelect, SendVerificationEmailPayloadSelect, ProvisionBucketPayloadSelect } from '../input-types';
|
|
10
10
|
export interface SignOutVariables {
|
|
11
11
|
input: SignOutInput;
|
|
12
12
|
}
|
|
@@ -49,12 +49,21 @@ export interface ResetPasswordVariables {
|
|
|
49
49
|
export interface SignInCrossOriginVariables {
|
|
50
50
|
input: SignInCrossOriginInput;
|
|
51
51
|
}
|
|
52
|
+
export interface SignInSmsOtpVariables {
|
|
53
|
+
input: SignInSmsOtpInput;
|
|
54
|
+
}
|
|
55
|
+
export interface SignUpSmsVariables {
|
|
56
|
+
input: SignUpSmsInput;
|
|
57
|
+
}
|
|
52
58
|
export interface SignUpVariables {
|
|
53
59
|
input: SignUpInput;
|
|
54
60
|
}
|
|
55
61
|
export interface SignInVariables {
|
|
56
62
|
input: SignInInput;
|
|
57
63
|
}
|
|
64
|
+
export interface LinkIdentityVariables {
|
|
65
|
+
input: LinkIdentityInput;
|
|
66
|
+
}
|
|
58
67
|
export interface ExtendTokenExpiresVariables {
|
|
59
68
|
input: ExtendTokenExpiresInput;
|
|
60
69
|
}
|
|
@@ -151,6 +160,16 @@ export declare function createMutationOperations(client: OrmClient): {
|
|
|
151
160
|
} & StrictSelect<S, SignInCrossOriginPayloadSelect>) => QueryBuilder<{
|
|
152
161
|
signInCrossOrigin: InferSelectResult<SignInCrossOriginPayload, S> | null;
|
|
153
162
|
}>;
|
|
163
|
+
signInSmsOtp: <S extends SignInSmsOtpPayloadSelect>(args: SignInSmsOtpVariables, options: {
|
|
164
|
+
select: S;
|
|
165
|
+
} & StrictSelect<S, SignInSmsOtpPayloadSelect>) => QueryBuilder<{
|
|
166
|
+
signInSmsOtp: InferSelectResult<SignInSmsOtpPayload, S> | null;
|
|
167
|
+
}>;
|
|
168
|
+
signUpSms: <S extends SignUpSmsPayloadSelect>(args: SignUpSmsVariables, options: {
|
|
169
|
+
select: S;
|
|
170
|
+
} & StrictSelect<S, SignUpSmsPayloadSelect>) => QueryBuilder<{
|
|
171
|
+
signUpSms: InferSelectResult<SignUpSmsPayload, S> | null;
|
|
172
|
+
}>;
|
|
154
173
|
signUp: <S extends SignUpPayloadSelect>(args: SignUpVariables, options: {
|
|
155
174
|
select: S;
|
|
156
175
|
} & StrictSelect<S, SignUpPayloadSelect>) => QueryBuilder<{
|
|
@@ -161,6 +180,11 @@ export declare function createMutationOperations(client: OrmClient): {
|
|
|
161
180
|
} & StrictSelect<S, SignInPayloadSelect>) => QueryBuilder<{
|
|
162
181
|
signIn: InferSelectResult<SignInPayload, S> | null;
|
|
163
182
|
}>;
|
|
183
|
+
linkIdentity: <S extends LinkIdentityPayloadSelect>(args: LinkIdentityVariables, options: {
|
|
184
|
+
select: S;
|
|
185
|
+
} & StrictSelect<S, LinkIdentityPayloadSelect>) => QueryBuilder<{
|
|
186
|
+
linkIdentity: InferSelectResult<LinkIdentityPayload, S> | null;
|
|
187
|
+
}>;
|
|
164
188
|
extendTokenExpires: <S extends ExtendTokenExpiresPayloadSelect>(args: ExtendTokenExpiresVariables, options: {
|
|
165
189
|
select: S;
|
|
166
190
|
} & StrictSelect<S, ExtendTokenExpiresPayloadSelect>) => QueryBuilder<{
|
|
@@ -170,6 +170,30 @@ export function createMutationOperations(client) {
|
|
|
170
170
|
},
|
|
171
171
|
], connectionFieldsMap, 'SignInCrossOriginPayload'),
|
|
172
172
|
}),
|
|
173
|
+
signInSmsOtp: (args, options) => new QueryBuilder({
|
|
174
|
+
client,
|
|
175
|
+
operation: 'mutation',
|
|
176
|
+
operationName: 'SignInSmsOtp',
|
|
177
|
+
fieldName: 'signInSmsOtp',
|
|
178
|
+
...buildCustomDocument('mutation', 'SignInSmsOtp', 'signInSmsOtp', options.select, args, [
|
|
179
|
+
{
|
|
180
|
+
name: 'input',
|
|
181
|
+
type: 'SignInSmsOtpInput!',
|
|
182
|
+
},
|
|
183
|
+
], connectionFieldsMap, 'SignInSmsOtpPayload'),
|
|
184
|
+
}),
|
|
185
|
+
signUpSms: (args, options) => new QueryBuilder({
|
|
186
|
+
client,
|
|
187
|
+
operation: 'mutation',
|
|
188
|
+
operationName: 'SignUpSms',
|
|
189
|
+
fieldName: 'signUpSms',
|
|
190
|
+
...buildCustomDocument('mutation', 'SignUpSms', 'signUpSms', options.select, args, [
|
|
191
|
+
{
|
|
192
|
+
name: 'input',
|
|
193
|
+
type: 'SignUpSmsInput!',
|
|
194
|
+
},
|
|
195
|
+
], connectionFieldsMap, 'SignUpSmsPayload'),
|
|
196
|
+
}),
|
|
173
197
|
signUp: (args, options) => new QueryBuilder({
|
|
174
198
|
client,
|
|
175
199
|
operation: 'mutation',
|
|
@@ -194,6 +218,18 @@ export function createMutationOperations(client) {
|
|
|
194
218
|
},
|
|
195
219
|
], connectionFieldsMap, 'SignInPayload'),
|
|
196
220
|
}),
|
|
221
|
+
linkIdentity: (args, options) => new QueryBuilder({
|
|
222
|
+
client,
|
|
223
|
+
operation: 'mutation',
|
|
224
|
+
operationName: 'LinkIdentity',
|
|
225
|
+
fieldName: 'linkIdentity',
|
|
226
|
+
...buildCustomDocument('mutation', 'LinkIdentity', 'linkIdentity', options.select, args, [
|
|
227
|
+
{
|
|
228
|
+
name: 'input',
|
|
229
|
+
type: 'LinkIdentityInput!',
|
|
230
|
+
},
|
|
231
|
+
], connectionFieldsMap, 'LinkIdentityPayload'),
|
|
232
|
+
}),
|
|
197
233
|
extendTokenExpires: (args, options) => new QueryBuilder({
|
|
198
234
|
client,
|
|
199
235
|
operation: 'mutation',
|
|
@@ -11,6 +11,8 @@ const fieldSchema = {
|
|
|
11
11
|
databaseId: 'uuid',
|
|
12
12
|
schemaId: 'uuid',
|
|
13
13
|
privateSchemaId: 'uuid',
|
|
14
|
+
publicSchemaName: 'string',
|
|
15
|
+
privateSchemaName: 'string',
|
|
14
16
|
threadTableId: 'uuid',
|
|
15
17
|
messageTableId: 'uuid',
|
|
16
18
|
taskTableId: 'uuid',
|
|
@@ -30,6 +32,7 @@ const fieldSchema = {
|
|
|
30
32
|
hasPlans: 'boolean',
|
|
31
33
|
hasResources: 'boolean',
|
|
32
34
|
hasAgents: 'boolean',
|
|
35
|
+
shared: 'boolean',
|
|
33
36
|
apiName: 'string',
|
|
34
37
|
privateApiName: 'string',
|
|
35
38
|
scope: 'string',
|
|
@@ -38,6 +41,7 @@ const fieldSchema = {
|
|
|
38
41
|
policies: 'json',
|
|
39
42
|
resources: 'json',
|
|
40
43
|
provisions: 'json',
|
|
44
|
+
defaultPermissions: 'string',
|
|
41
45
|
};
|
|
42
46
|
const usage = '\nagent-module <command>\n\nCommands:\n list List agentModule records\n find-first Find first matching agentModule record\n get Get a agentModule by ID\n create Create a new agentModule\n update Update an existing agentModule\n delete Delete a agentModule\n\nList Options:\n --limit <n> Max number of records to return (forward pagination)\n --last <n> Number of records from the end (backward pagination)\n --after <cursor> Cursor for forward pagination\n --before <cursor> Cursor for backward pagination\n --offset <n> Number of records to skip\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n';
|
|
43
47
|
export default async (argv, prompter, _options) => {
|
|
@@ -85,6 +89,8 @@ async function handleList(argv, _prompter) {
|
|
|
85
89
|
databaseId: true,
|
|
86
90
|
schemaId: true,
|
|
87
91
|
privateSchemaId: true,
|
|
92
|
+
publicSchemaName: true,
|
|
93
|
+
privateSchemaName: true,
|
|
88
94
|
threadTableId: true,
|
|
89
95
|
messageTableId: true,
|
|
90
96
|
taskTableId: true,
|
|
@@ -104,6 +110,7 @@ async function handleList(argv, _prompter) {
|
|
|
104
110
|
hasPlans: true,
|
|
105
111
|
hasResources: true,
|
|
106
112
|
hasAgents: true,
|
|
113
|
+
shared: true,
|
|
107
114
|
apiName: true,
|
|
108
115
|
privateApiName: true,
|
|
109
116
|
scope: true,
|
|
@@ -112,6 +119,7 @@ async function handleList(argv, _prompter) {
|
|
|
112
119
|
policies: true,
|
|
113
120
|
resources: true,
|
|
114
121
|
provisions: true,
|
|
122
|
+
defaultPermissions: true,
|
|
115
123
|
};
|
|
116
124
|
const findManyArgs = parseFindManyArgs(argv, defaultSelect);
|
|
117
125
|
const client = getClient();
|
|
@@ -133,6 +141,8 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
133
141
|
databaseId: true,
|
|
134
142
|
schemaId: true,
|
|
135
143
|
privateSchemaId: true,
|
|
144
|
+
publicSchemaName: true,
|
|
145
|
+
privateSchemaName: true,
|
|
136
146
|
threadTableId: true,
|
|
137
147
|
messageTableId: true,
|
|
138
148
|
taskTableId: true,
|
|
@@ -152,6 +162,7 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
152
162
|
hasPlans: true,
|
|
153
163
|
hasResources: true,
|
|
154
164
|
hasAgents: true,
|
|
165
|
+
shared: true,
|
|
155
166
|
apiName: true,
|
|
156
167
|
privateApiName: true,
|
|
157
168
|
scope: true,
|
|
@@ -160,6 +171,7 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
160
171
|
policies: true,
|
|
161
172
|
resources: true,
|
|
162
173
|
provisions: true,
|
|
174
|
+
defaultPermissions: true,
|
|
163
175
|
};
|
|
164
176
|
const findFirstArgs = parseFindFirstArgs(argv, defaultSelect);
|
|
165
177
|
const client = getClient();
|
|
@@ -193,6 +205,8 @@ async function handleGet(argv, prompter) {
|
|
|
193
205
|
databaseId: true,
|
|
194
206
|
schemaId: true,
|
|
195
207
|
privateSchemaId: true,
|
|
208
|
+
publicSchemaName: true,
|
|
209
|
+
privateSchemaName: true,
|
|
196
210
|
threadTableId: true,
|
|
197
211
|
messageTableId: true,
|
|
198
212
|
taskTableId: true,
|
|
@@ -212,6 +226,7 @@ async function handleGet(argv, prompter) {
|
|
|
212
226
|
hasPlans: true,
|
|
213
227
|
hasResources: true,
|
|
214
228
|
hasAgents: true,
|
|
229
|
+
shared: true,
|
|
215
230
|
apiName: true,
|
|
216
231
|
privateApiName: true,
|
|
217
232
|
scope: true,
|
|
@@ -220,6 +235,7 @@ async function handleGet(argv, prompter) {
|
|
|
220
235
|
policies: true,
|
|
221
236
|
resources: true,
|
|
222
237
|
provisions: true,
|
|
238
|
+
defaultPermissions: true,
|
|
223
239
|
},
|
|
224
240
|
})
|
|
225
241
|
.execute();
|
|
@@ -256,6 +272,20 @@ async function handleCreate(argv, prompter) {
|
|
|
256
272
|
required: false,
|
|
257
273
|
skipPrompt: true,
|
|
258
274
|
},
|
|
275
|
+
{
|
|
276
|
+
type: 'text',
|
|
277
|
+
name: 'publicSchemaName',
|
|
278
|
+
message: 'publicSchemaName',
|
|
279
|
+
required: false,
|
|
280
|
+
skipPrompt: true,
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
type: 'text',
|
|
284
|
+
name: 'privateSchemaName',
|
|
285
|
+
message: 'privateSchemaName',
|
|
286
|
+
required: false,
|
|
287
|
+
skipPrompt: true,
|
|
288
|
+
},
|
|
259
289
|
{
|
|
260
290
|
type: 'text',
|
|
261
291
|
name: 'threadTableId',
|
|
@@ -389,6 +419,13 @@ async function handleCreate(argv, prompter) {
|
|
|
389
419
|
required: false,
|
|
390
420
|
skipPrompt: true,
|
|
391
421
|
},
|
|
422
|
+
{
|
|
423
|
+
type: 'boolean',
|
|
424
|
+
name: 'shared',
|
|
425
|
+
message: 'shared',
|
|
426
|
+
required: false,
|
|
427
|
+
skipPrompt: true,
|
|
428
|
+
},
|
|
392
429
|
{
|
|
393
430
|
type: 'text',
|
|
394
431
|
name: 'apiName',
|
|
@@ -445,6 +482,13 @@ async function handleCreate(argv, prompter) {
|
|
|
445
482
|
required: false,
|
|
446
483
|
skipPrompt: true,
|
|
447
484
|
},
|
|
485
|
+
{
|
|
486
|
+
type: 'text',
|
|
487
|
+
name: 'defaultPermissions',
|
|
488
|
+
message: 'defaultPermissions',
|
|
489
|
+
required: false,
|
|
490
|
+
skipPrompt: true,
|
|
491
|
+
},
|
|
448
492
|
]);
|
|
449
493
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
450
494
|
const cleanedData = stripUndefined(answers, fieldSchema);
|
|
@@ -455,6 +499,8 @@ async function handleCreate(argv, prompter) {
|
|
|
455
499
|
databaseId: cleanedData.databaseId,
|
|
456
500
|
schemaId: cleanedData.schemaId,
|
|
457
501
|
privateSchemaId: cleanedData.privateSchemaId,
|
|
502
|
+
publicSchemaName: cleanedData.publicSchemaName,
|
|
503
|
+
privateSchemaName: cleanedData.privateSchemaName,
|
|
458
504
|
threadTableId: cleanedData.threadTableId,
|
|
459
505
|
messageTableId: cleanedData.messageTableId,
|
|
460
506
|
taskTableId: cleanedData.taskTableId,
|
|
@@ -474,6 +520,7 @@ async function handleCreate(argv, prompter) {
|
|
|
474
520
|
hasPlans: cleanedData.hasPlans,
|
|
475
521
|
hasResources: cleanedData.hasResources,
|
|
476
522
|
hasAgents: cleanedData.hasAgents,
|
|
523
|
+
shared: cleanedData.shared,
|
|
477
524
|
apiName: cleanedData.apiName,
|
|
478
525
|
privateApiName: cleanedData.privateApiName,
|
|
479
526
|
scope: cleanedData.scope,
|
|
@@ -482,12 +529,15 @@ async function handleCreate(argv, prompter) {
|
|
|
482
529
|
policies: cleanedData.policies,
|
|
483
530
|
resources: cleanedData.resources,
|
|
484
531
|
provisions: cleanedData.provisions,
|
|
532
|
+
defaultPermissions: cleanedData.defaultPermissions,
|
|
485
533
|
},
|
|
486
534
|
select: {
|
|
487
535
|
id: true,
|
|
488
536
|
databaseId: true,
|
|
489
537
|
schemaId: true,
|
|
490
538
|
privateSchemaId: true,
|
|
539
|
+
publicSchemaName: true,
|
|
540
|
+
privateSchemaName: true,
|
|
491
541
|
threadTableId: true,
|
|
492
542
|
messageTableId: true,
|
|
493
543
|
taskTableId: true,
|
|
@@ -507,6 +557,7 @@ async function handleCreate(argv, prompter) {
|
|
|
507
557
|
hasPlans: true,
|
|
508
558
|
hasResources: true,
|
|
509
559
|
hasAgents: true,
|
|
560
|
+
shared: true,
|
|
510
561
|
apiName: true,
|
|
511
562
|
privateApiName: true,
|
|
512
563
|
scope: true,
|
|
@@ -515,6 +566,7 @@ async function handleCreate(argv, prompter) {
|
|
|
515
566
|
policies: true,
|
|
516
567
|
resources: true,
|
|
517
568
|
provisions: true,
|
|
569
|
+
defaultPermissions: true,
|
|
518
570
|
},
|
|
519
571
|
})
|
|
520
572
|
.execute();
|
|
@@ -557,6 +609,20 @@ async function handleUpdate(argv, prompter) {
|
|
|
557
609
|
required: false,
|
|
558
610
|
skipPrompt: true,
|
|
559
611
|
},
|
|
612
|
+
{
|
|
613
|
+
type: 'text',
|
|
614
|
+
name: 'publicSchemaName',
|
|
615
|
+
message: 'publicSchemaName',
|
|
616
|
+
required: false,
|
|
617
|
+
skipPrompt: true,
|
|
618
|
+
},
|
|
619
|
+
{
|
|
620
|
+
type: 'text',
|
|
621
|
+
name: 'privateSchemaName',
|
|
622
|
+
message: 'privateSchemaName',
|
|
623
|
+
required: false,
|
|
624
|
+
skipPrompt: true,
|
|
625
|
+
},
|
|
560
626
|
{
|
|
561
627
|
type: 'text',
|
|
562
628
|
name: 'threadTableId',
|
|
@@ -690,6 +756,13 @@ async function handleUpdate(argv, prompter) {
|
|
|
690
756
|
required: false,
|
|
691
757
|
skipPrompt: true,
|
|
692
758
|
},
|
|
759
|
+
{
|
|
760
|
+
type: 'boolean',
|
|
761
|
+
name: 'shared',
|
|
762
|
+
message: 'shared',
|
|
763
|
+
required: false,
|
|
764
|
+
skipPrompt: true,
|
|
765
|
+
},
|
|
693
766
|
{
|
|
694
767
|
type: 'text',
|
|
695
768
|
name: 'apiName',
|
|
@@ -746,6 +819,13 @@ async function handleUpdate(argv, prompter) {
|
|
|
746
819
|
required: false,
|
|
747
820
|
skipPrompt: true,
|
|
748
821
|
},
|
|
822
|
+
{
|
|
823
|
+
type: 'text',
|
|
824
|
+
name: 'defaultPermissions',
|
|
825
|
+
message: 'defaultPermissions',
|
|
826
|
+
required: false,
|
|
827
|
+
skipPrompt: true,
|
|
828
|
+
},
|
|
749
829
|
]);
|
|
750
830
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
751
831
|
const cleanedData = stripUndefined(answers, fieldSchema);
|
|
@@ -759,6 +839,8 @@ async function handleUpdate(argv, prompter) {
|
|
|
759
839
|
databaseId: cleanedData.databaseId,
|
|
760
840
|
schemaId: cleanedData.schemaId,
|
|
761
841
|
privateSchemaId: cleanedData.privateSchemaId,
|
|
842
|
+
publicSchemaName: cleanedData.publicSchemaName,
|
|
843
|
+
privateSchemaName: cleanedData.privateSchemaName,
|
|
762
844
|
threadTableId: cleanedData.threadTableId,
|
|
763
845
|
messageTableId: cleanedData.messageTableId,
|
|
764
846
|
taskTableId: cleanedData.taskTableId,
|
|
@@ -778,6 +860,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
778
860
|
hasPlans: cleanedData.hasPlans,
|
|
779
861
|
hasResources: cleanedData.hasResources,
|
|
780
862
|
hasAgents: cleanedData.hasAgents,
|
|
863
|
+
shared: cleanedData.shared,
|
|
781
864
|
apiName: cleanedData.apiName,
|
|
782
865
|
privateApiName: cleanedData.privateApiName,
|
|
783
866
|
scope: cleanedData.scope,
|
|
@@ -786,12 +869,15 @@ async function handleUpdate(argv, prompter) {
|
|
|
786
869
|
policies: cleanedData.policies,
|
|
787
870
|
resources: cleanedData.resources,
|
|
788
871
|
provisions: cleanedData.provisions,
|
|
872
|
+
defaultPermissions: cleanedData.defaultPermissions,
|
|
789
873
|
},
|
|
790
874
|
select: {
|
|
791
875
|
id: true,
|
|
792
876
|
databaseId: true,
|
|
793
877
|
schemaId: true,
|
|
794
878
|
privateSchemaId: true,
|
|
879
|
+
publicSchemaName: true,
|
|
880
|
+
privateSchemaName: true,
|
|
795
881
|
threadTableId: true,
|
|
796
882
|
messageTableId: true,
|
|
797
883
|
taskTableId: true,
|
|
@@ -811,6 +897,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
811
897
|
hasPlans: true,
|
|
812
898
|
hasResources: true,
|
|
813
899
|
hasAgents: true,
|
|
900
|
+
shared: true,
|
|
814
901
|
apiName: true,
|
|
815
902
|
privateApiName: true,
|
|
816
903
|
scope: true,
|
|
@@ -819,6 +906,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
819
906
|
policies: true,
|
|
820
907
|
resources: true,
|
|
821
908
|
provisions: true,
|
|
909
|
+
defaultPermissions: true,
|
|
822
910
|
},
|
|
823
911
|
})
|
|
824
912
|
.execute();
|