@constructive-io/sdk 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 (75) hide show
  1. package/admin/orm/index.d.ts +10 -2
  2. package/admin/orm/index.js +10 -2
  3. package/admin/orm/input-types.d.ts +1611 -230
  4. package/admin/orm/input-types.js +9 -1
  5. package/admin/orm/models/appPermissionDefaultGrant.d.ts +54 -0
  6. package/admin/orm/models/appPermissionDefaultGrant.js +104 -0
  7. package/admin/orm/models/appPermissionDefaultPermission.d.ts +54 -0
  8. package/admin/orm/models/appPermissionDefaultPermission.js +104 -0
  9. package/admin/orm/models/index.d.ts +5 -1
  10. package/admin/orm/models/index.js +11 -3
  11. package/admin/orm/models/orgPermissionDefaultGrant.d.ts +54 -0
  12. package/admin/orm/models/orgPermissionDefaultGrant.js +104 -0
  13. package/admin/orm/models/orgPermissionDefaultPermission.d.ts +54 -0
  14. package/admin/orm/models/orgPermissionDefaultPermission.js +104 -0
  15. package/agent/orm/input-types.d.ts +289 -47
  16. package/agent/orm/input-types.js +1 -0
  17. package/api/orm/index.d.ts +2 -0
  18. package/api/orm/index.js +2 -0
  19. package/api/orm/input-types.d.ts +1064 -125
  20. package/api/orm/input-types.js +3 -0
  21. package/api/orm/models/compositeType.d.ts +54 -0
  22. package/api/orm/models/compositeType.js +104 -0
  23. package/api/orm/models/index.d.ts +1 -0
  24. package/api/orm/models/index.js +3 -1
  25. package/auth/orm/index.d.ts +15 -0
  26. package/auth/orm/input-types.d.ts +197 -1
  27. package/auth/orm/mutation/index.d.ts +25 -1
  28. package/auth/orm/mutation/index.js +36 -0
  29. package/esm/admin/orm/index.d.ts +10 -2
  30. package/esm/admin/orm/index.js +10 -2
  31. package/esm/admin/orm/input-types.d.ts +1611 -230
  32. package/esm/admin/orm/input-types.js +9 -1
  33. package/esm/admin/orm/models/appPermissionDefaultGrant.d.ts +54 -0
  34. package/esm/admin/orm/models/appPermissionDefaultGrant.js +100 -0
  35. package/esm/admin/orm/models/appPermissionDefaultPermission.d.ts +54 -0
  36. package/esm/admin/orm/models/appPermissionDefaultPermission.js +100 -0
  37. package/esm/admin/orm/models/index.d.ts +5 -1
  38. package/esm/admin/orm/models/index.js +5 -1
  39. package/esm/admin/orm/models/orgPermissionDefaultGrant.d.ts +54 -0
  40. package/esm/admin/orm/models/orgPermissionDefaultGrant.js +100 -0
  41. package/esm/admin/orm/models/orgPermissionDefaultPermission.d.ts +54 -0
  42. package/esm/admin/orm/models/orgPermissionDefaultPermission.js +100 -0
  43. package/esm/agent/orm/input-types.d.ts +289 -47
  44. package/esm/agent/orm/input-types.js +1 -0
  45. package/esm/api/orm/index.d.ts +2 -0
  46. package/esm/api/orm/index.js +2 -0
  47. package/esm/api/orm/input-types.d.ts +1064 -125
  48. package/esm/api/orm/input-types.js +3 -0
  49. package/esm/api/orm/models/compositeType.d.ts +54 -0
  50. package/esm/api/orm/models/compositeType.js +100 -0
  51. package/esm/api/orm/models/index.d.ts +1 -0
  52. package/esm/api/orm/models/index.js +1 -0
  53. package/esm/auth/orm/index.d.ts +15 -0
  54. package/esm/auth/orm/input-types.d.ts +197 -1
  55. package/esm/auth/orm/mutation/index.d.ts +25 -1
  56. package/esm/auth/orm/mutation/index.js +36 -0
  57. package/esm/modules/orm/index.d.ts +28 -26
  58. package/esm/modules/orm/index.js +28 -26
  59. package/esm/modules/orm/input-types.d.ts +4485 -2514
  60. package/esm/modules/orm/models/functionInvocationModule.d.ts +54 -0
  61. package/esm/modules/orm/models/functionInvocationModule.js +100 -0
  62. package/esm/modules/orm/models/index.d.ts +14 -13
  63. package/esm/modules/orm/models/index.js +14 -13
  64. package/esm/objects/orm/input-types.d.ts +62 -0
  65. package/esm/usage/orm/input-types.d.ts +314 -19
  66. package/modules/orm/index.d.ts +28 -26
  67. package/modules/orm/index.js +28 -26
  68. package/modules/orm/input-types.d.ts +4485 -2514
  69. package/modules/orm/models/functionInvocationModule.d.ts +54 -0
  70. package/modules/orm/models/functionInvocationModule.js +104 -0
  71. package/modules/orm/models/index.d.ts +14 -13
  72. package/modules/orm/models/index.js +30 -28
  73. package/objects/orm/input-types.d.ts +62 -0
  74. package/package.json +4 -4
  75. package/usage/orm/input-types.d.ts +314 -19
@@ -7,6 +7,7 @@ export const connectionFieldsMap = {
7
7
  defaultPrivileges: 'DefaultPrivilege',
8
8
  enums: 'Enum',
9
9
  functions: 'Function',
10
+ compositeTypes: 'CompositeType',
10
11
  apiSchemas: 'ApiSchema',
11
12
  },
12
13
  Table: {
@@ -64,6 +65,7 @@ export const connectionFieldsMap = {
64
65
  triggers: 'Trigger',
65
66
  uniqueConstraints: 'UniqueConstraint',
66
67
  views: 'View',
68
+ viewTables: 'ViewTable',
67
69
  viewGrants: 'ViewGrant',
68
70
  viewRules: 'ViewRule',
69
71
  defaultPrivileges: 'DefaultPrivilege',
@@ -72,6 +74,7 @@ export const connectionFieldsMap = {
72
74
  spatialRelations: 'SpatialRelation',
73
75
  functions: 'Function',
74
76
  partitions: 'Partition',
77
+ compositeTypes: 'CompositeType',
75
78
  databaseTransfers: 'DatabaseTransfer',
76
79
  apis: 'Api',
77
80
  apiModules: 'ApiModule',
@@ -0,0 +1,54 @@
1
+ /**
2
+ * CompositeType model for ORM client
3
+ * @generated by @constructive-io/graphql-codegen
4
+ * DO NOT EDIT - changes will be overwritten
5
+ */
6
+ import { OrmClient } from '../client';
7
+ import { QueryBuilder } from '../query-builder';
8
+ import type { ConnectionResult, FindManyArgs, FindFirstArgs, CreateArgs, UpdateArgs, DeleteArgs, InferSelectResult, StrictSelect } from '../select-types';
9
+ import type { CompositeTypeWithRelations, CompositeTypeSelect, CompositeTypeFilter, CompositeTypeOrderBy, CreateCompositeTypeInput, CompositeTypePatch } from '../input-types';
10
+ export declare class CompositeTypeModel {
11
+ private client;
12
+ constructor(client: OrmClient);
13
+ findMany<S extends CompositeTypeSelect>(args: FindManyArgs<S, CompositeTypeFilter, CompositeTypeOrderBy> & {
14
+ select: S;
15
+ } & StrictSelect<S, CompositeTypeSelect>): QueryBuilder<{
16
+ compositeTypes: ConnectionResult<InferSelectResult<CompositeTypeWithRelations, S>>;
17
+ }>;
18
+ findFirst<S extends CompositeTypeSelect>(args: FindFirstArgs<S, CompositeTypeFilter, CompositeTypeOrderBy> & {
19
+ select: S;
20
+ } & StrictSelect<S, CompositeTypeSelect>): QueryBuilder<{
21
+ compositeType: InferSelectResult<CompositeTypeWithRelations, S> | null;
22
+ }>;
23
+ findOne<S extends CompositeTypeSelect>(args: {
24
+ id: string;
25
+ select: S;
26
+ } & StrictSelect<S, CompositeTypeSelect>): QueryBuilder<{
27
+ compositeType: InferSelectResult<CompositeTypeWithRelations, S> | null;
28
+ }>;
29
+ create<S extends CompositeTypeSelect>(args: CreateArgs<S, CreateCompositeTypeInput['compositeType']> & {
30
+ select: S;
31
+ } & StrictSelect<S, CompositeTypeSelect>): QueryBuilder<{
32
+ createCompositeType: {
33
+ compositeType: InferSelectResult<CompositeTypeWithRelations, S>;
34
+ };
35
+ }>;
36
+ update<S extends CompositeTypeSelect>(args: UpdateArgs<S, {
37
+ id: string;
38
+ }, CompositeTypePatch> & {
39
+ select: S;
40
+ } & StrictSelect<S, CompositeTypeSelect>): QueryBuilder<{
41
+ updateCompositeType: {
42
+ compositeType: InferSelectResult<CompositeTypeWithRelations, S>;
43
+ };
44
+ }>;
45
+ delete<S extends CompositeTypeSelect>(args: DeleteArgs<{
46
+ id: string;
47
+ }, S> & {
48
+ select: S;
49
+ } & StrictSelect<S, CompositeTypeSelect>): QueryBuilder<{
50
+ deleteCompositeType: {
51
+ compositeType: InferSelectResult<CompositeTypeWithRelations, S>;
52
+ };
53
+ }>;
54
+ }
@@ -0,0 +1,100 @@
1
+ import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateByPkDocument, buildDeleteByPkDocument, } from '../query-builder';
2
+ import { connectionFieldsMap } from '../input-types';
3
+ export class CompositeTypeModel {
4
+ client;
5
+ constructor(client) {
6
+ this.client = client;
7
+ }
8
+ findMany(args) {
9
+ const { document, variables } = buildFindManyDocument('CompositeType', 'compositeTypes', args.select, {
10
+ where: args?.where,
11
+ orderBy: args?.orderBy,
12
+ first: args?.first,
13
+ last: args?.last,
14
+ after: args?.after,
15
+ before: args?.before,
16
+ offset: args?.offset,
17
+ }, 'CompositeTypeFilter', 'CompositeTypeOrderBy', connectionFieldsMap);
18
+ return new QueryBuilder({
19
+ client: this.client,
20
+ operation: 'query',
21
+ operationName: 'CompositeType',
22
+ fieldName: 'compositeTypes',
23
+ document,
24
+ variables,
25
+ });
26
+ }
27
+ findFirst(args) {
28
+ const { document, variables } = buildFindFirstDocument('CompositeType', 'compositeTypes', args.select, {
29
+ where: args?.where,
30
+ orderBy: args?.orderBy,
31
+ }, 'CompositeTypeFilter', 'CompositeTypeOrderBy', connectionFieldsMap);
32
+ return new QueryBuilder({
33
+ client: this.client,
34
+ operation: 'query',
35
+ operationName: 'CompositeType',
36
+ fieldName: 'compositeType',
37
+ document,
38
+ variables,
39
+ transform: (data) => ({
40
+ compositeType: data.compositeTypes?.nodes?.[0] ?? null,
41
+ }),
42
+ });
43
+ }
44
+ findOne(args) {
45
+ const { document, variables } = buildFindManyDocument('CompositeType', 'compositeTypes', args.select, {
46
+ where: {
47
+ id: {
48
+ equalTo: args.id,
49
+ },
50
+ },
51
+ first: 1,
52
+ }, 'CompositeTypeFilter', 'CompositeTypeOrderBy', connectionFieldsMap);
53
+ return new QueryBuilder({
54
+ client: this.client,
55
+ operation: 'query',
56
+ operationName: 'CompositeType',
57
+ fieldName: 'compositeType',
58
+ document,
59
+ variables,
60
+ transform: (data) => ({
61
+ compositeType: data.compositeTypes?.nodes?.[0] ?? null,
62
+ }),
63
+ });
64
+ }
65
+ create(args) {
66
+ const { document, variables } = buildCreateDocument('CompositeType', 'createCompositeType', 'compositeType', args.select, args.data, 'CreateCompositeTypeInput', connectionFieldsMap);
67
+ return new QueryBuilder({
68
+ client: this.client,
69
+ operation: 'mutation',
70
+ operationName: 'CompositeType',
71
+ fieldName: 'createCompositeType',
72
+ document,
73
+ variables,
74
+ });
75
+ }
76
+ update(args) {
77
+ const { document, variables } = buildUpdateByPkDocument('CompositeType', 'updateCompositeType', 'compositeType', args.select, args.where.id, args.data, 'UpdateCompositeTypeInput', 'id', 'compositeTypePatch', connectionFieldsMap);
78
+ return new QueryBuilder({
79
+ client: this.client,
80
+ operation: 'mutation',
81
+ operationName: 'CompositeType',
82
+ fieldName: 'updateCompositeType',
83
+ document,
84
+ variables,
85
+ });
86
+ }
87
+ delete(args) {
88
+ const { document, variables } = buildDeleteByPkDocument('CompositeType', 'deleteCompositeType', 'compositeType', {
89
+ id: args.where.id,
90
+ }, 'DeleteCompositeTypeInput', args.select, connectionFieldsMap);
91
+ return new QueryBuilder({
92
+ client: this.client,
93
+ operation: 'mutation',
94
+ operationName: 'CompositeType',
95
+ fieldName: 'deleteCompositeType',
96
+ document,
97
+ variables,
98
+ });
99
+ }
100
+ }
@@ -25,6 +25,7 @@ export { EmbeddingChunkModel } from './embeddingChunk';
25
25
  export { SchemaGrantModel } from './schemaGrant';
26
26
  export { DefaultPrivilegeModel } from './defaultPrivilege';
27
27
  export { EnumModel } from './enum';
28
+ export { CompositeTypeModel } from './compositeType';
28
29
  export { ApiSchemaModel } from './apiSchema';
29
30
  export { ApiModuleModel } from './apiModule';
30
31
  export { DomainModel } from './domain';
@@ -25,6 +25,7 @@ export { EmbeddingChunkModel } from './embeddingChunk';
25
25
  export { SchemaGrantModel } from './schemaGrant';
26
26
  export { DefaultPrivilegeModel } from './defaultPrivilege';
27
27
  export { EnumModel } from './enum';
28
+ export { CompositeTypeModel } from './compositeType';
28
29
  export { ApiSchemaModel } from './apiSchema';
29
30
  export { ApiModuleModel } from './apiModule';
30
31
  export { DomainModel } from './domain';
@@ -146,6 +146,16 @@ export declare function createClient(config: OrmClientConfig): {
146
146
  } & import("./select-types").StrictSelect<S, import("./input-types").SignInCrossOriginPayloadSelect>) => import("./query-builder").QueryBuilder<{
147
147
  signInCrossOrigin: import("./select-types").InferSelectResult<import("./input-types").SignInCrossOriginPayload, S> | null;
148
148
  }>;
149
+ signInSmsOtp: <S extends import("./input-types").SignInSmsOtpPayloadSelect>(args: import("./mutation").SignInSmsOtpVariables, options: {
150
+ select: S;
151
+ } & import("./select-types").StrictSelect<S, import("./input-types").SignInSmsOtpPayloadSelect>) => import("./query-builder").QueryBuilder<{
152
+ signInSmsOtp: import("./select-types").InferSelectResult<import("./input-types").SignInSmsOtpPayload, S> | null;
153
+ }>;
154
+ signUpSms: <S extends import("./input-types").SignUpSmsPayloadSelect>(args: import("./mutation").SignUpSmsVariables, options: {
155
+ select: S;
156
+ } & import("./select-types").StrictSelect<S, import("./input-types").SignUpSmsPayloadSelect>) => import("./query-builder").QueryBuilder<{
157
+ signUpSms: import("./select-types").InferSelectResult<import("./input-types").SignUpSmsPayload, S> | null;
158
+ }>;
149
159
  signUp: <S extends import("./input-types").SignUpPayloadSelect>(args: import("./mutation").SignUpVariables, options: {
150
160
  select: S;
151
161
  } & import("./select-types").StrictSelect<S, import("./input-types").SignUpPayloadSelect>) => import("./query-builder").QueryBuilder<{
@@ -156,6 +166,11 @@ export declare function createClient(config: OrmClientConfig): {
156
166
  } & import("./select-types").StrictSelect<S, import("./input-types").SignInPayloadSelect>) => import("./query-builder").QueryBuilder<{
157
167
  signIn: import("./select-types").InferSelectResult<import("./input-types").SignInPayload, S> | null;
158
168
  }>;
169
+ linkIdentity: <S extends import("./input-types").LinkIdentityPayloadSelect>(args: import("./mutation").LinkIdentityVariables, options: {
170
+ select: S;
171
+ } & import("./select-types").StrictSelect<S, import("./input-types").LinkIdentityPayloadSelect>) => import("./query-builder").QueryBuilder<{
172
+ linkIdentity: import("./select-types").InferSelectResult<import("./input-types").LinkIdentityPayload, S> | null;
173
+ }>;
159
174
  extendTokenExpires: <S extends import("./input-types").ExtendTokenExpiresPayloadSelect>(args: import("./mutation").ExtendTokenExpiresVariables, options: {
160
175
  select: S;
161
176
  } & import("./select-types").StrictSelect<S, import("./input-types").ExtendTokenExpiresPayloadSelect>) => import("./query-builder").QueryBuilder<{
@@ -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<{
@@ -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',