@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.
Files changed (229) hide show
  1. package/admin/cli/commands/app-admin-grant.js +3 -1
  2. package/admin/cli/commands/app-grant.js +3 -1
  3. package/admin/cli/commands/app-invite.js +44 -0
  4. package/admin/cli/commands/app-owner-grant.js +3 -1
  5. package/admin/cli/commands/app-permission-default-grant.d.ts +8 -0
  6. package/admin/cli/commands/app-permission-default-grant.js +286 -0
  7. package/admin/cli/commands/app-permission-default-permission.d.ts +8 -0
  8. package/admin/cli/commands/app-permission-default-permission.js +242 -0
  9. package/admin/cli/commands/org-admin-grant.js +3 -1
  10. package/admin/cli/commands/org-grant.js +3 -1
  11. package/admin/cli/commands/org-invite.js +44 -0
  12. package/admin/cli/commands/org-owner-grant.js +3 -1
  13. package/admin/cli/commands/org-permission-default-grant.d.ts +8 -0
  14. package/admin/cli/commands/org-permission-default-grant.js +306 -0
  15. package/admin/cli/commands/org-permission-default-permission.d.ts +8 -0
  16. package/admin/cli/commands/org-permission-default-permission.js +262 -0
  17. package/admin/cli/commands.js +11 -3
  18. package/admin/cli/executor.d.ts +5 -1
  19. package/admin/orm/index.d.ts +10 -2
  20. package/admin/orm/index.js +10 -2
  21. package/admin/orm/input-types.d.ts +1611 -230
  22. package/admin/orm/input-types.js +9 -1
  23. package/admin/orm/models/appPermissionDefaultGrant.d.ts +54 -0
  24. package/admin/orm/models/appPermissionDefaultGrant.js +104 -0
  25. package/admin/orm/models/appPermissionDefaultPermission.d.ts +54 -0
  26. package/admin/orm/models/appPermissionDefaultPermission.js +104 -0
  27. package/admin/orm/models/index.d.ts +5 -1
  28. package/admin/orm/models/index.js +11 -3
  29. package/admin/orm/models/orgPermissionDefaultGrant.d.ts +54 -0
  30. package/admin/orm/models/orgPermissionDefaultGrant.js +104 -0
  31. package/admin/orm/models/orgPermissionDefaultPermission.d.ts +54 -0
  32. package/admin/orm/models/orgPermissionDefaultPermission.js +104 -0
  33. package/agent/cli/commands/agent-message.js +34 -12
  34. package/agent/cli/commands/agent-task.js +12 -12
  35. package/agent/cli/embedder.d.ts +5 -0
  36. package/agent/cli/embedder.js +46 -9
  37. package/agent/orm/input-types.d.ts +289 -47
  38. package/agent/orm/input-types.js +1 -0
  39. package/api/cli/commands/check-constraint.js +0 -22
  40. package/api/cli/commands/composite-type.d.ts +8 -0
  41. package/api/cli/commands/composite-type.js +424 -0
  42. package/api/cli/commands/enum.js +0 -22
  43. package/api/cli/commands/field.js +0 -22
  44. package/api/cli/commands/foreign-key-constraint.js +0 -22
  45. package/api/cli/commands/index.js +0 -22
  46. package/api/cli/commands/policy.js +0 -22
  47. package/api/cli/commands/primary-key-constraint.js +0 -22
  48. package/api/cli/commands/schema.js +0 -22
  49. package/api/cli/commands/spatial-relation.js +0 -22
  50. package/api/cli/commands/table.js +6 -28
  51. package/api/cli/commands/trigger.js +0 -22
  52. package/api/cli/commands/unique-constraint.js +0 -22
  53. package/api/cli/commands/view-table.js +22 -0
  54. package/api/cli/commands/view.js +0 -22
  55. package/api/cli/commands.js +3 -1
  56. package/api/cli/executor.d.ts +1 -0
  57. package/api/orm/index.d.ts +2 -0
  58. package/api/orm/index.js +2 -0
  59. package/api/orm/input-types.d.ts +1064 -125
  60. package/api/orm/input-types.js +3 -0
  61. package/api/orm/models/compositeType.d.ts +54 -0
  62. package/api/orm/models/compositeType.js +104 -0
  63. package/api/orm/models/index.d.ts +1 -0
  64. package/api/orm/models/index.js +3 -1
  65. package/auth/cli/commands/link-identity.d.ts +8 -0
  66. package/auth/cli/commands/link-identity.js +36 -0
  67. package/auth/cli/commands/sign-in-sms-otp.d.ts +8 -0
  68. package/auth/cli/commands/sign-in-sms-otp.js +36 -0
  69. package/auth/cli/commands/sign-up-sms.d.ts +8 -0
  70. package/auth/cli/commands/sign-up-sms.js +36 -0
  71. package/auth/cli/commands.js +7 -1
  72. package/auth/cli/executor.d.ts +15 -0
  73. package/auth/orm/index.d.ts +15 -0
  74. package/auth/orm/input-types.d.ts +197 -1
  75. package/auth/orm/mutation/index.d.ts +25 -1
  76. package/auth/orm/mutation/index.js +36 -0
  77. package/esm/admin/cli/commands/app-admin-grant.js +3 -1
  78. package/esm/admin/cli/commands/app-grant.js +3 -1
  79. package/esm/admin/cli/commands/app-invite.js +44 -0
  80. package/esm/admin/cli/commands/app-owner-grant.js +3 -1
  81. package/esm/admin/cli/commands/app-permission-default-grant.d.ts +8 -0
  82. package/esm/admin/cli/commands/app-permission-default-grant.js +284 -0
  83. package/esm/admin/cli/commands/app-permission-default-permission.d.ts +8 -0
  84. package/esm/admin/cli/commands/app-permission-default-permission.js +240 -0
  85. package/esm/admin/cli/commands/org-admin-grant.js +3 -1
  86. package/esm/admin/cli/commands/org-grant.js +3 -1
  87. package/esm/admin/cli/commands/org-invite.js +44 -0
  88. package/esm/admin/cli/commands/org-owner-grant.js +3 -1
  89. package/esm/admin/cli/commands/org-permission-default-grant.d.ts +8 -0
  90. package/esm/admin/cli/commands/org-permission-default-grant.js +304 -0
  91. package/esm/admin/cli/commands/org-permission-default-permission.d.ts +8 -0
  92. package/esm/admin/cli/commands/org-permission-default-permission.js +260 -0
  93. package/esm/admin/cli/commands.js +11 -3
  94. package/esm/admin/cli/executor.d.ts +5 -1
  95. package/esm/admin/orm/index.d.ts +10 -2
  96. package/esm/admin/orm/index.js +10 -2
  97. package/esm/admin/orm/input-types.d.ts +1611 -230
  98. package/esm/admin/orm/input-types.js +9 -1
  99. package/esm/admin/orm/models/appPermissionDefaultGrant.d.ts +54 -0
  100. package/esm/admin/orm/models/appPermissionDefaultGrant.js +100 -0
  101. package/esm/admin/orm/models/appPermissionDefaultPermission.d.ts +54 -0
  102. package/esm/admin/orm/models/appPermissionDefaultPermission.js +100 -0
  103. package/esm/admin/orm/models/index.d.ts +5 -1
  104. package/esm/admin/orm/models/index.js +5 -1
  105. package/esm/admin/orm/models/orgPermissionDefaultGrant.d.ts +54 -0
  106. package/esm/admin/orm/models/orgPermissionDefaultGrant.js +100 -0
  107. package/esm/admin/orm/models/orgPermissionDefaultPermission.d.ts +54 -0
  108. package/esm/admin/orm/models/orgPermissionDefaultPermission.js +100 -0
  109. package/esm/agent/cli/commands/agent-message.js +34 -12
  110. package/esm/agent/cli/commands/agent-task.js +12 -12
  111. package/esm/agent/cli/embedder.d.ts +5 -0
  112. package/esm/agent/cli/embedder.js +10 -2
  113. package/esm/agent/orm/input-types.d.ts +289 -47
  114. package/esm/agent/orm/input-types.js +1 -0
  115. package/esm/api/cli/commands/check-constraint.js +0 -22
  116. package/esm/api/cli/commands/composite-type.d.ts +8 -0
  117. package/esm/api/cli/commands/composite-type.js +422 -0
  118. package/esm/api/cli/commands/enum.js +0 -22
  119. package/esm/api/cli/commands/field.js +0 -22
  120. package/esm/api/cli/commands/foreign-key-constraint.js +0 -22
  121. package/esm/api/cli/commands/index.js +0 -22
  122. package/esm/api/cli/commands/policy.js +0 -22
  123. package/esm/api/cli/commands/primary-key-constraint.js +0 -22
  124. package/esm/api/cli/commands/schema.js +0 -22
  125. package/esm/api/cli/commands/spatial-relation.js +0 -22
  126. package/esm/api/cli/commands/table.js +6 -28
  127. package/esm/api/cli/commands/trigger.js +0 -22
  128. package/esm/api/cli/commands/unique-constraint.js +0 -22
  129. package/esm/api/cli/commands/view-table.js +22 -0
  130. package/esm/api/cli/commands/view.js +0 -22
  131. package/esm/api/cli/commands.js +3 -1
  132. package/esm/api/cli/executor.d.ts +1 -0
  133. package/esm/api/orm/index.d.ts +2 -0
  134. package/esm/api/orm/index.js +2 -0
  135. package/esm/api/orm/input-types.d.ts +1064 -125
  136. package/esm/api/orm/input-types.js +3 -0
  137. package/esm/api/orm/models/compositeType.d.ts +54 -0
  138. package/esm/api/orm/models/compositeType.js +100 -0
  139. package/esm/api/orm/models/index.d.ts +1 -0
  140. package/esm/api/orm/models/index.js +1 -0
  141. package/esm/auth/cli/commands/link-identity.d.ts +8 -0
  142. package/esm/auth/cli/commands/link-identity.js +34 -0
  143. package/esm/auth/cli/commands/sign-in-sms-otp.d.ts +8 -0
  144. package/esm/auth/cli/commands/sign-in-sms-otp.js +34 -0
  145. package/esm/auth/cli/commands/sign-up-sms.d.ts +8 -0
  146. package/esm/auth/cli/commands/sign-up-sms.js +34 -0
  147. package/esm/auth/cli/commands.js +7 -1
  148. package/esm/auth/cli/executor.d.ts +15 -0
  149. package/esm/auth/orm/index.d.ts +15 -0
  150. package/esm/auth/orm/input-types.d.ts +197 -1
  151. package/esm/auth/orm/mutation/index.d.ts +25 -1
  152. package/esm/auth/orm/mutation/index.js +36 -0
  153. package/esm/modules/cli/commands/agent-module.js +88 -0
  154. package/esm/modules/cli/commands/billing-module.js +66 -0
  155. package/esm/modules/cli/commands/compute-log-module.js +44 -0
  156. package/esm/modules/cli/commands/config-secrets-module.js +44 -0
  157. package/esm/modules/cli/commands/db-usage-module.js +66 -0
  158. package/esm/modules/cli/commands/entity-type-provision.js +0 -44
  159. package/esm/modules/cli/commands/events-module.js +66 -0
  160. package/esm/modules/cli/commands/function-invocation-module.d.ts +8 -0
  161. package/esm/modules/cli/commands/function-invocation-module.js +580 -0
  162. package/esm/modules/cli/commands/function-module.js +22 -198
  163. package/esm/modules/cli/commands/graph-module.js +22 -0
  164. package/esm/modules/cli/commands/hierarchy-module.js +22 -0
  165. package/esm/modules/cli/commands/identity-providers-module.js +44 -0
  166. package/esm/modules/cli/commands/inference-log-module.js +44 -0
  167. package/esm/modules/cli/commands/invites-module.js +44 -0
  168. package/esm/modules/cli/commands/limits-module.js +44 -0
  169. package/esm/modules/cli/commands/memberships-module.js +88 -0
  170. package/esm/modules/cli/commands/merkle-store-module.js +22 -0
  171. package/esm/modules/cli/commands/namespace-module.js +22 -0
  172. package/esm/modules/cli/commands/notifications-module.js +88 -0
  173. package/esm/modules/cli/commands/permissions-module.js +44 -0
  174. package/esm/modules/cli/commands/plans-module.js +44 -0
  175. package/esm/modules/cli/commands/profiles-module.js +44 -0
  176. package/esm/modules/cli/commands/rate-limit-meters-module.js +66 -0
  177. package/esm/modules/cli/commands/storage-log-module.js +44 -0
  178. package/esm/modules/cli/commands/storage-module.js +66 -0
  179. package/esm/modules/cli/commands/transfer-log-module.js +44 -0
  180. package/esm/modules/cli/commands.js +29 -27
  181. package/esm/modules/cli/executor.d.ts +14 -13
  182. package/esm/modules/orm/index.d.ts +28 -26
  183. package/esm/modules/orm/index.js +28 -26
  184. package/esm/modules/orm/input-types.d.ts +4485 -2514
  185. package/esm/modules/orm/models/functionInvocationModule.d.ts +54 -0
  186. package/esm/modules/orm/models/functionInvocationModule.js +100 -0
  187. package/esm/modules/orm/models/index.d.ts +14 -13
  188. package/esm/modules/orm/models/index.js +14 -13
  189. package/esm/objects/orm/input-types.d.ts +62 -0
  190. package/esm/usage/orm/input-types.d.ts +314 -19
  191. package/modules/cli/commands/agent-module.js +88 -0
  192. package/modules/cli/commands/billing-module.js +66 -0
  193. package/modules/cli/commands/compute-log-module.js +44 -0
  194. package/modules/cli/commands/config-secrets-module.js +44 -0
  195. package/modules/cli/commands/db-usage-module.js +66 -0
  196. package/modules/cli/commands/entity-type-provision.js +0 -44
  197. package/modules/cli/commands/events-module.js +66 -0
  198. package/modules/cli/commands/function-invocation-module.d.ts +8 -0
  199. package/modules/cli/commands/function-invocation-module.js +582 -0
  200. package/modules/cli/commands/function-module.js +22 -198
  201. package/modules/cli/commands/graph-module.js +22 -0
  202. package/modules/cli/commands/hierarchy-module.js +22 -0
  203. package/modules/cli/commands/identity-providers-module.js +44 -0
  204. package/modules/cli/commands/inference-log-module.js +44 -0
  205. package/modules/cli/commands/invites-module.js +44 -0
  206. package/modules/cli/commands/limits-module.js +44 -0
  207. package/modules/cli/commands/memberships-module.js +88 -0
  208. package/modules/cli/commands/merkle-store-module.js +22 -0
  209. package/modules/cli/commands/namespace-module.js +22 -0
  210. package/modules/cli/commands/notifications-module.js +88 -0
  211. package/modules/cli/commands/permissions-module.js +44 -0
  212. package/modules/cli/commands/plans-module.js +44 -0
  213. package/modules/cli/commands/profiles-module.js +44 -0
  214. package/modules/cli/commands/rate-limit-meters-module.js +66 -0
  215. package/modules/cli/commands/storage-log-module.js +44 -0
  216. package/modules/cli/commands/storage-module.js +66 -0
  217. package/modules/cli/commands/transfer-log-module.js +44 -0
  218. package/modules/cli/commands.js +29 -27
  219. package/modules/cli/executor.d.ts +14 -13
  220. package/modules/orm/index.d.ts +28 -26
  221. package/modules/orm/index.js +28 -26
  222. package/modules/orm/input-types.d.ts +4485 -2514
  223. package/modules/orm/models/functionInvocationModule.d.ts +54 -0
  224. package/modules/orm/models/functionInvocationModule.js +104 -0
  225. package/modules/orm/models/index.d.ts +14 -13
  226. package/modules/orm/models/index.js +30 -28
  227. package/objects/orm/input-types.d.ts +62 -0
  228. package/package.json +4 -4
  229. 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 by normalizing and averaging all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */
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<{
@@ -173,6 +173,30 @@ function createMutationOperations(client) {
173
173
  },
174
174
  ], input_types_1.connectionFieldsMap, 'SignInCrossOriginPayload'),
175
175
  }),
176
+ signInSmsOtp: (args, options) => new query_builder_1.QueryBuilder({
177
+ client,
178
+ operation: 'mutation',
179
+ operationName: 'SignInSmsOtp',
180
+ fieldName: 'signInSmsOtp',
181
+ ...(0, query_builder_1.buildCustomDocument)('mutation', 'SignInSmsOtp', 'signInSmsOtp', options.select, args, [
182
+ {
183
+ name: 'input',
184
+ type: 'SignInSmsOtpInput!',
185
+ },
186
+ ], input_types_1.connectionFieldsMap, 'SignInSmsOtpPayload'),
187
+ }),
188
+ signUpSms: (args, options) => new query_builder_1.QueryBuilder({
189
+ client,
190
+ operation: 'mutation',
191
+ operationName: 'SignUpSms',
192
+ fieldName: 'signUpSms',
193
+ ...(0, query_builder_1.buildCustomDocument)('mutation', 'SignUpSms', 'signUpSms', options.select, args, [
194
+ {
195
+ name: 'input',
196
+ type: 'SignUpSmsInput!',
197
+ },
198
+ ], input_types_1.connectionFieldsMap, 'SignUpSmsPayload'),
199
+ }),
176
200
  signUp: (args, options) => new query_builder_1.QueryBuilder({
177
201
  client,
178
202
  operation: 'mutation',
@@ -197,6 +221,18 @@ function createMutationOperations(client) {
197
221
  },
198
222
  ], input_types_1.connectionFieldsMap, 'SignInPayload'),
199
223
  }),
224
+ linkIdentity: (args, options) => new query_builder_1.QueryBuilder({
225
+ client,
226
+ operation: 'mutation',
227
+ operationName: 'LinkIdentity',
228
+ fieldName: 'linkIdentity',
229
+ ...(0, query_builder_1.buildCustomDocument)('mutation', 'LinkIdentity', 'linkIdentity', options.select, args, [
230
+ {
231
+ name: 'input',
232
+ type: 'LinkIdentityInput!',
233
+ },
234
+ ], input_types_1.connectionFieldsMap, 'LinkIdentityPayload'),
235
+ }),
200
236
  extendTokenExpires: (args, options) => new query_builder_1.QueryBuilder({
201
237
  client,
202
238
  operation: 'mutation',
@@ -147,7 +147,8 @@ async function handleCreate(argv, prompter) {
147
147
  type: 'text',
148
148
  name: 'actorId',
149
149
  message: 'actorId',
150
- required: true,
150
+ required: false,
151
+ skipPrompt: true,
151
152
  },
152
153
  {
153
154
  type: 'text',
@@ -208,6 +209,7 @@ async function handleUpdate(argv, prompter) {
208
209
  name: 'actorId',
209
210
  message: 'actorId',
210
211
  required: false,
212
+ skipPrompt: true,
211
213
  },
212
214
  {
213
215
  type: 'text',
@@ -158,7 +158,8 @@ async function handleCreate(argv, prompter) {
158
158
  type: 'text',
159
159
  name: 'actorId',
160
160
  message: 'actorId',
161
- required: true,
161
+ required: false,
162
+ skipPrompt: true,
162
163
  },
163
164
  {
164
165
  type: 'text',
@@ -228,6 +229,7 @@ async function handleUpdate(argv, prompter) {
228
229
  name: 'actorId',
229
230
  message: 'actorId',
230
231
  required: false,
232
+ skipPrompt: true,
231
233
  },
232
234
  {
233
235
  type: 'text',
@@ -8,7 +8,9 @@ import { getClient } from '../executor';
8
8
  import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils';
9
9
  const fieldSchema = {
10
10
  id: 'uuid',
11
+ channel: 'string',
11
12
  email: 'string',
13
+ phone: 'string',
12
14
  senderId: 'uuid',
13
15
  inviteToken: 'string',
14
16
  inviteValid: 'boolean',
@@ -64,7 +66,9 @@ async function handleList(argv, _prompter) {
64
66
  try {
65
67
  const defaultSelect = {
66
68
  id: true,
69
+ channel: true,
67
70
  email: true,
71
+ phone: true,
68
72
  senderId: true,
69
73
  inviteToken: true,
70
74
  inviteValid: true,
@@ -94,7 +98,9 @@ async function handleFindFirst(argv, _prompter) {
94
98
  try {
95
99
  const defaultSelect = {
96
100
  id: true,
101
+ channel: true,
97
102
  email: true,
103
+ phone: true,
98
104
  senderId: true,
99
105
  inviteToken: true,
100
106
  inviteValid: true,
@@ -136,7 +142,9 @@ async function handleGet(argv, prompter) {
136
142
  id: answers.id,
137
143
  select: {
138
144
  id: true,
145
+ channel: true,
139
146
  email: true,
147
+ phone: true,
140
148
  senderId: true,
141
149
  inviteToken: true,
142
150
  inviteValid: true,
@@ -164,6 +172,13 @@ async function handleGet(argv, prompter) {
164
172
  async function handleCreate(argv, prompter) {
165
173
  try {
166
174
  const rawAnswers = await prompter.prompt(argv, [
175
+ {
176
+ type: 'text',
177
+ name: 'channel',
178
+ message: 'channel',
179
+ required: false,
180
+ skipPrompt: true,
181
+ },
167
182
  {
168
183
  type: 'text',
169
184
  name: 'email',
@@ -171,6 +186,13 @@ async function handleCreate(argv, prompter) {
171
186
  required: false,
172
187
  skipPrompt: true,
173
188
  },
189
+ {
190
+ type: 'text',
191
+ name: 'phone',
192
+ message: 'phone',
193
+ required: false,
194
+ skipPrompt: true,
195
+ },
174
196
  {
175
197
  type: 'text',
176
198
  name: 'senderId',
@@ -241,7 +263,9 @@ async function handleCreate(argv, prompter) {
241
263
  const result = await client.appInvite
242
264
  .create({
243
265
  data: {
266
+ channel: cleanedData.channel,
244
267
  email: cleanedData.email,
268
+ phone: cleanedData.phone,
245
269
  senderId: cleanedData.senderId,
246
270
  inviteToken: cleanedData.inviteToken,
247
271
  inviteValid: cleanedData.inviteValid,
@@ -254,7 +278,9 @@ async function handleCreate(argv, prompter) {
254
278
  },
255
279
  select: {
256
280
  id: true,
281
+ channel: true,
257
282
  email: true,
283
+ phone: true,
258
284
  senderId: true,
259
285
  inviteToken: true,
260
286
  inviteValid: true,
@@ -288,6 +314,13 @@ async function handleUpdate(argv, prompter) {
288
314
  message: 'id',
289
315
  required: true,
290
316
  },
317
+ {
318
+ type: 'text',
319
+ name: 'channel',
320
+ message: 'channel',
321
+ required: false,
322
+ skipPrompt: true,
323
+ },
291
324
  {
292
325
  type: 'text',
293
326
  name: 'email',
@@ -295,6 +328,13 @@ async function handleUpdate(argv, prompter) {
295
328
  required: false,
296
329
  skipPrompt: true,
297
330
  },
331
+ {
332
+ type: 'text',
333
+ name: 'phone',
334
+ message: 'phone',
335
+ required: false,
336
+ skipPrompt: true,
337
+ },
298
338
  {
299
339
  type: 'text',
300
340
  name: 'senderId',
@@ -368,7 +408,9 @@ async function handleUpdate(argv, prompter) {
368
408
  id: answers.id,
369
409
  },
370
410
  data: {
411
+ channel: cleanedData.channel,
371
412
  email: cleanedData.email,
413
+ phone: cleanedData.phone,
372
414
  senderId: cleanedData.senderId,
373
415
  inviteToken: cleanedData.inviteToken,
374
416
  inviteValid: cleanedData.inviteValid,
@@ -381,7 +423,9 @@ async function handleUpdate(argv, prompter) {
381
423
  },
382
424
  select: {
383
425
  id: true,
426
+ channel: true,
384
427
  email: true,
428
+ phone: true,
385
429
  senderId: true,
386
430
  inviteToken: true,
387
431
  inviteValid: true,
@@ -147,7 +147,8 @@ async function handleCreate(argv, prompter) {
147
147
  type: 'text',
148
148
  name: 'actorId',
149
149
  message: 'actorId',
150
- required: true,
150
+ required: false,
151
+ skipPrompt: true,
151
152
  },
152
153
  {
153
154
  type: 'text',
@@ -208,6 +209,7 @@ async function handleUpdate(argv, prompter) {
208
209
  name: 'actorId',
209
210
  message: 'actorId',
210
211
  required: false,
212
+ skipPrompt: true,
211
213
  },
212
214
  {
213
215
  type: 'text',
@@ -0,0 +1,8 @@
1
+ /**
2
+ * CLI commands for AppPermissionDefaultGrant
3
+ * @generated by @constructive-io/graphql-codegen
4
+ * DO NOT EDIT - changes will be overwritten
5
+ */
6
+ import { CLIOptions, Inquirerer } from 'inquirerer';
7
+ declare const _default: (argv: Partial<Record<string, unknown>>, prompter: Inquirerer, _options: CLIOptions) => Promise<void>;
8
+ export default _default;