@constructive-sdk/cli 0.13.4 → 0.14.1

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 (237) hide show
  1. package/admin/cli/commands/app-membership.js +22 -0
  2. package/admin/cli/commands/membership-type.js +44 -0
  3. package/{auth/cli/commands/connected-account.d.ts → admin/cli/commands/org-member-profile.d.ts} +1 -1
  4. package/admin/cli/commands/org-member-profile.js +392 -0
  5. package/admin/cli/commands/org-membership.js +44 -0
  6. package/admin/cli/commands.js +7 -5
  7. package/admin/cli/executor.d.ts +3 -2
  8. package/admin/orm/index.d.ts +6 -4
  9. package/admin/orm/index.js +6 -4
  10. package/admin/orm/input-types.d.ts +503 -295
  11. package/admin/orm/models/index.d.ts +3 -2
  12. package/admin/orm/models/index.js +7 -5
  13. package/admin/orm/models/orgMemberProfile.d.ts +56 -0
  14. package/{auth/orm/models/connectedAccount.js → admin/orm/models/orgMemberProfile.js} +26 -26
  15. package/{esm/auth/cli/commands/one-time-token.d.ts → auth/cli/commands/create-api-key.d.ts} +1 -1
  16. package/{public/cli/commands/one-time-token.js → auth/cli/commands/create-api-key.js} +3 -3
  17. package/auth/cli/commands/disconnect-account.d.ts +8 -0
  18. package/auth/cli/commands/{sign-in-one-time-token.js → disconnect-account.js} +3 -3
  19. package/auth/cli/commands/provision-new-user.d.ts +8 -0
  20. package/{public/cli/commands/sign-in-one-time-token.js → auth/cli/commands/provision-new-user.js} +3 -3
  21. package/auth/cli/commands/request-cross-origin-token.d.ts +8 -0
  22. package/auth/cli/commands/request-cross-origin-token.js +36 -0
  23. package/auth/cli/commands/require-step-up.d.ts +8 -0
  24. package/auth/cli/commands/require-step-up.js +30 -0
  25. package/auth/cli/commands/{one-time-token.d.ts → revoke-api-key.d.ts} +1 -1
  26. package/auth/cli/commands/{one-time-token.js → revoke-api-key.js} +3 -3
  27. package/auth/cli/commands/revoke-session.d.ts +8 -0
  28. package/auth/cli/commands/revoke-session.js +36 -0
  29. package/auth/cli/commands/sign-in-cross-origin.d.ts +8 -0
  30. package/auth/cli/commands/sign-in-cross-origin.js +36 -0
  31. package/auth/cli/commands/user-connected-account.d.ts +8 -0
  32. package/auth/cli/commands/user-connected-account.js +176 -0
  33. package/auth/cli/commands.js +23 -11
  34. package/auth/cli/executor.d.ts +44 -14
  35. package/auth/orm/index.d.ts +45 -15
  36. package/auth/orm/index.js +2 -2
  37. package/auth/orm/input-types.d.ts +186 -251
  38. package/auth/orm/input-types.js +0 -1
  39. package/auth/orm/models/index.d.ts +1 -1
  40. package/auth/orm/models/index.js +3 -3
  41. package/auth/orm/models/userConnectedAccount.d.ts +38 -0
  42. package/auth/orm/models/userConnectedAccount.js +76 -0
  43. package/auth/orm/mutation/index.d.ts +56 -16
  44. package/auth/orm/mutation/index.js +78 -18
  45. package/auth/orm/query/index.d.ts +12 -4
  46. package/auth/orm/query/index.js +19 -7
  47. package/esm/admin/cli/commands/app-membership.js +22 -0
  48. package/esm/admin/cli/commands/membership-type.js +44 -0
  49. package/esm/{public/cli/commands/connected-account.d.ts → admin/cli/commands/org-member-profile.d.ts} +1 -1
  50. package/esm/admin/cli/commands/org-member-profile.js +390 -0
  51. package/esm/admin/cli/commands/org-membership.js +44 -0
  52. package/esm/admin/cli/commands.js +7 -5
  53. package/esm/admin/cli/executor.d.ts +3 -2
  54. package/esm/admin/orm/index.d.ts +6 -4
  55. package/esm/admin/orm/index.js +6 -4
  56. package/esm/admin/orm/input-types.d.ts +503 -295
  57. package/esm/admin/orm/models/index.d.ts +3 -2
  58. package/esm/admin/orm/models/index.js +3 -2
  59. package/esm/admin/orm/models/orgMemberProfile.d.ts +56 -0
  60. package/esm/{public/orm/models/connectedAccount.js → admin/orm/models/orgMemberProfile.js} +24 -24
  61. package/esm/auth/cli/commands/create-api-key.d.ts +8 -0
  62. package/esm/{public/cli/commands/one-time-token.js → auth/cli/commands/create-api-key.js} +3 -3
  63. package/esm/auth/cli/commands/disconnect-account.d.ts +8 -0
  64. package/esm/auth/cli/commands/{sign-in-one-time-token.js → disconnect-account.js} +3 -3
  65. package/esm/auth/cli/commands/provision-new-user.d.ts +8 -0
  66. package/esm/{public/cli/commands/sign-in-one-time-token.js → auth/cli/commands/provision-new-user.js} +3 -3
  67. package/esm/auth/cli/commands/request-cross-origin-token.d.ts +8 -0
  68. package/esm/auth/cli/commands/request-cross-origin-token.js +34 -0
  69. package/esm/auth/cli/commands/require-step-up.d.ts +8 -0
  70. package/esm/auth/cli/commands/require-step-up.js +28 -0
  71. package/esm/auth/cli/commands/revoke-api-key.d.ts +8 -0
  72. package/esm/auth/cli/commands/{one-time-token.js → revoke-api-key.js} +3 -3
  73. package/esm/auth/cli/commands/revoke-session.d.ts +8 -0
  74. package/esm/auth/cli/commands/revoke-session.js +34 -0
  75. package/esm/auth/cli/commands/sign-in-cross-origin.d.ts +8 -0
  76. package/esm/auth/cli/commands/sign-in-cross-origin.js +34 -0
  77. package/esm/auth/cli/commands/user-connected-account.d.ts +8 -0
  78. package/esm/auth/cli/commands/user-connected-account.js +174 -0
  79. package/esm/auth/cli/commands.js +23 -11
  80. package/esm/auth/cli/executor.d.ts +44 -14
  81. package/esm/auth/orm/index.d.ts +45 -15
  82. package/esm/auth/orm/index.js +2 -2
  83. package/esm/auth/orm/input-types.d.ts +186 -251
  84. package/esm/auth/orm/input-types.js +0 -1
  85. package/esm/auth/orm/models/index.d.ts +1 -1
  86. package/esm/auth/orm/models/index.js +1 -1
  87. package/esm/auth/orm/models/userConnectedAccount.d.ts +38 -0
  88. package/esm/auth/orm/models/userConnectedAccount.js +72 -0
  89. package/esm/auth/orm/mutation/index.d.ts +56 -16
  90. package/esm/auth/orm/mutation/index.js +78 -18
  91. package/esm/auth/orm/query/index.d.ts +12 -4
  92. package/esm/auth/orm/query/index.js +19 -7
  93. package/esm/public/cli/commands/app-membership.js +22 -0
  94. package/esm/public/cli/commands/construct-blueprint.js +1 -1
  95. package/esm/public/cli/commands/create-api-key.d.ts +8 -0
  96. package/esm/public/cli/commands/create-api-key.js +34 -0
  97. package/{public/cli/commands/connected-account.d.ts → esm/public/cli/commands/devices-module.d.ts} +1 -1
  98. package/esm/public/cli/commands/{connected-account.js → devices-module.js} +101 -87
  99. package/esm/public/cli/commands/disconnect-account.d.ts +8 -0
  100. package/esm/public/cli/commands/disconnect-account.js +34 -0
  101. package/esm/public/cli/commands/{table-template-module.d.ts → entity-type-provision.d.ts} +1 -1
  102. package/esm/public/cli/commands/entity-type-provision.js +554 -0
  103. package/esm/public/cli/commands/membership-type.js +44 -0
  104. package/esm/public/cli/commands/memberships-module.js +22 -0
  105. package/esm/{auth/cli/commands/connected-account.d.ts → public/cli/commands/org-member-profile.d.ts} +1 -1
  106. package/esm/public/cli/commands/org-member-profile.js +390 -0
  107. package/esm/public/cli/commands/org-membership.js +44 -0
  108. package/esm/public/cli/commands/provision-new-user.d.ts +8 -0
  109. package/esm/public/cli/commands/provision-new-user.js +34 -0
  110. package/esm/public/cli/commands/provision-spatial-relation.d.ts +8 -0
  111. package/esm/public/cli/commands/provision-spatial-relation.js +34 -0
  112. package/esm/public/cli/commands/request-cross-origin-token.d.ts +8 -0
  113. package/esm/public/cli/commands/request-cross-origin-token.js +34 -0
  114. package/esm/public/cli/commands/require-step-up.d.ts +8 -0
  115. package/esm/public/cli/commands/require-step-up.js +28 -0
  116. package/{auth/cli/commands/sign-in-one-time-token.d.ts → esm/public/cli/commands/resolve-blueprint-field.d.ts} +1 -1
  117. package/esm/public/cli/commands/resolve-blueprint-field.js +38 -0
  118. package/esm/public/cli/commands/revoke-api-key.d.ts +8 -0
  119. package/esm/public/cli/commands/revoke-api-key.js +34 -0
  120. package/esm/public/cli/commands/revoke-session.d.ts +8 -0
  121. package/esm/public/cli/commands/revoke-session.js +34 -0
  122. package/esm/public/cli/commands/session-secrets-module.d.ts +8 -0
  123. package/esm/{auth/cli/commands/connected-account.js → public/cli/commands/session-secrets-module.js} +82 -90
  124. package/esm/public/cli/commands/sign-in-cross-origin.d.ts +8 -0
  125. package/esm/public/cli/commands/sign-in-cross-origin.js +34 -0
  126. package/esm/public/cli/commands/spatial-relation.d.ts +8 -0
  127. package/esm/public/cli/commands/spatial-relation.js +472 -0
  128. package/esm/public/cli/commands/user-auth-module.js +24 -24
  129. package/esm/public/cli/commands/user-connected-account.d.ts +8 -0
  130. package/esm/public/cli/commands/user-connected-account.js +174 -0
  131. package/esm/public/cli/commands/webauthn-credentials-module.d.ts +8 -0
  132. package/esm/public/cli/commands/{table-template-module.js → webauthn-credentials-module.js} +8 -48
  133. package/esm/public/cli/commands.js +41 -15
  134. package/esm/public/cli/executor.d.ts +61 -16
  135. package/esm/public/orm/index.d.ts +69 -19
  136. package/esm/public/orm/index.js +16 -6
  137. package/esm/public/orm/input-types.d.ts +2047 -640
  138. package/esm/public/orm/input-types.js +15 -6
  139. package/esm/public/orm/models/devicesModule.d.ts +56 -0
  140. package/esm/public/orm/models/devicesModule.js +96 -0
  141. package/esm/public/orm/models/entityTypeProvision.d.ts +56 -0
  142. package/esm/public/orm/models/{tableTemplateModule.js → entityTypeProvision.js} +24 -24
  143. package/esm/public/orm/models/index.d.ts +8 -3
  144. package/esm/public/orm/models/index.js +8 -3
  145. package/esm/public/orm/models/orgMemberProfile.d.ts +56 -0
  146. package/esm/{auth/orm/models/connectedAccount.js → public/orm/models/orgMemberProfile.js} +24 -24
  147. package/esm/public/orm/models/sessionSecretsModule.d.ts +56 -0
  148. package/esm/public/orm/models/sessionSecretsModule.js +96 -0
  149. package/esm/public/orm/models/spatialRelation.d.ts +56 -0
  150. package/esm/public/orm/models/spatialRelation.js +96 -0
  151. package/esm/public/orm/models/userConnectedAccount.d.ts +38 -0
  152. package/esm/public/orm/models/userConnectedAccount.js +72 -0
  153. package/esm/public/orm/models/webauthnCredentialsModule.d.ts +56 -0
  154. package/esm/public/orm/models/webauthnCredentialsModule.js +96 -0
  155. package/esm/public/orm/mutation/index.d.ts +72 -20
  156. package/esm/public/orm/mutation/index.js +96 -24
  157. package/esm/public/orm/query/index.d.ts +24 -2
  158. package/esm/public/orm/query/index.js +36 -4
  159. package/package.json +5 -5
  160. package/public/cli/commands/app-membership.js +22 -0
  161. package/public/cli/commands/construct-blueprint.js +1 -1
  162. package/public/cli/commands/create-api-key.d.ts +8 -0
  163. package/public/cli/commands/create-api-key.js +36 -0
  164. package/public/cli/commands/devices-module.d.ts +8 -0
  165. package/{auth/cli/commands/connected-account.js → public/cli/commands/devices-module.js} +101 -87
  166. package/public/cli/commands/disconnect-account.d.ts +8 -0
  167. package/public/cli/commands/disconnect-account.js +36 -0
  168. package/public/cli/commands/entity-type-provision.d.ts +8 -0
  169. package/public/cli/commands/entity-type-provision.js +556 -0
  170. package/public/cli/commands/membership-type.js +44 -0
  171. package/public/cli/commands/memberships-module.js +22 -0
  172. package/public/cli/commands/org-member-profile.d.ts +8 -0
  173. package/public/cli/commands/org-member-profile.js +392 -0
  174. package/public/cli/commands/org-membership.js +44 -0
  175. package/public/cli/commands/provision-new-user.d.ts +8 -0
  176. package/public/cli/commands/provision-new-user.js +36 -0
  177. package/public/cli/commands/provision-spatial-relation.d.ts +8 -0
  178. package/public/cli/commands/provision-spatial-relation.js +36 -0
  179. package/public/cli/commands/request-cross-origin-token.d.ts +8 -0
  180. package/public/cli/commands/request-cross-origin-token.js +36 -0
  181. package/public/cli/commands/require-step-up.d.ts +8 -0
  182. package/public/cli/commands/require-step-up.js +30 -0
  183. package/public/cli/commands/resolve-blueprint-field.d.ts +8 -0
  184. package/public/cli/commands/resolve-blueprint-field.js +40 -0
  185. package/public/cli/commands/revoke-api-key.d.ts +8 -0
  186. package/public/cli/commands/revoke-api-key.js +36 -0
  187. package/public/cli/commands/revoke-session.d.ts +8 -0
  188. package/public/cli/commands/revoke-session.js +36 -0
  189. package/public/cli/commands/session-secrets-module.d.ts +8 -0
  190. package/public/cli/commands/{connected-account.js → session-secrets-module.js} +82 -90
  191. package/public/cli/commands/sign-in-cross-origin.d.ts +8 -0
  192. package/public/cli/commands/sign-in-cross-origin.js +36 -0
  193. package/public/cli/commands/spatial-relation.d.ts +8 -0
  194. package/public/cli/commands/spatial-relation.js +474 -0
  195. package/public/cli/commands/user-auth-module.js +24 -24
  196. package/public/cli/commands/user-connected-account.d.ts +8 -0
  197. package/public/cli/commands/user-connected-account.js +176 -0
  198. package/public/cli/commands/webauthn-credentials-module.d.ts +8 -0
  199. package/public/cli/commands/{table-template-module.js → webauthn-credentials-module.js} +8 -48
  200. package/public/cli/commands.js +41 -15
  201. package/public/cli/executor.d.ts +61 -16
  202. package/public/orm/index.d.ts +69 -19
  203. package/public/orm/index.js +16 -6
  204. package/public/orm/input-types.d.ts +2047 -640
  205. package/public/orm/input-types.js +15 -6
  206. package/public/orm/models/devicesModule.d.ts +56 -0
  207. package/public/orm/models/devicesModule.js +100 -0
  208. package/public/orm/models/entityTypeProvision.d.ts +56 -0
  209. package/public/orm/models/{tableTemplateModule.js → entityTypeProvision.js} +26 -26
  210. package/public/orm/models/index.d.ts +8 -3
  211. package/public/orm/models/index.js +19 -9
  212. package/public/orm/models/orgMemberProfile.d.ts +56 -0
  213. package/public/orm/models/{connectedAccount.js → orgMemberProfile.js} +26 -26
  214. package/public/orm/models/sessionSecretsModule.d.ts +56 -0
  215. package/public/orm/models/sessionSecretsModule.js +100 -0
  216. package/public/orm/models/spatialRelation.d.ts +56 -0
  217. package/public/orm/models/spatialRelation.js +100 -0
  218. package/public/orm/models/userConnectedAccount.d.ts +38 -0
  219. package/public/orm/models/userConnectedAccount.js +76 -0
  220. package/public/orm/models/webauthnCredentialsModule.d.ts +56 -0
  221. package/public/orm/models/webauthnCredentialsModule.js +100 -0
  222. package/public/orm/mutation/index.d.ts +72 -20
  223. package/public/orm/mutation/index.js +96 -24
  224. package/public/orm/query/index.d.ts +24 -2
  225. package/public/orm/query/index.js +36 -4
  226. package/auth/orm/models/connectedAccount.d.ts +0 -56
  227. package/esm/auth/cli/commands/sign-in-one-time-token.d.ts +0 -8
  228. package/esm/auth/orm/models/connectedAccount.d.ts +0 -56
  229. package/esm/public/cli/commands/one-time-token.d.ts +0 -8
  230. package/esm/public/cli/commands/sign-in-one-time-token.d.ts +0 -8
  231. package/esm/public/orm/models/connectedAccount.d.ts +0 -56
  232. package/esm/public/orm/models/tableTemplateModule.d.ts +0 -56
  233. package/public/cli/commands/one-time-token.d.ts +0 -8
  234. package/public/cli/commands/sign-in-one-time-token.d.ts +0 -8
  235. package/public/cli/commands/table-template-module.d.ts +0 -8
  236. package/public/orm/models/connectedAccount.d.ts +0 -56
  237. package/public/orm/models/tableTemplateModule.d.ts +0 -56
@@ -0,0 +1,174 @@
1
+ /**
2
+ * CLI commands for UserConnectedAccount
3
+ * @generated by @constructive-io/graphql-codegen
4
+ * DO NOT EDIT - changes will be overwritten
5
+ */
6
+ import { extractFirst } from 'inquirerer';
7
+ import { getClient } from '../executor';
8
+ import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils';
9
+ const fieldSchema = {
10
+ id: 'uuid',
11
+ ownerId: 'uuid',
12
+ service: 'string',
13
+ identifier: 'string',
14
+ details: 'json',
15
+ isVerified: 'boolean',
16
+ createdAt: 'string',
17
+ updatedAt: 'string',
18
+ };
19
+ const usage = '\nuser-connected-account <command>\n\nCommands:\n list List userConnectedAccount records\n find-first Find first matching userConnectedAccount record\n create Create a new userConnectedAccount\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\n --help, -h Show this help message\n';
20
+ export default async (argv, prompter, _options) => {
21
+ if (argv.help || argv.h) {
22
+ console.log(usage);
23
+ process.exit(0);
24
+ }
25
+ const { first: subcommand, newArgv } = extractFirst(argv);
26
+ if (!subcommand) {
27
+ const answer = await prompter.prompt(argv, [
28
+ {
29
+ type: 'autocomplete',
30
+ name: 'subcommand',
31
+ message: 'What do you want to do?',
32
+ options: ['list', 'find-first', 'create'],
33
+ },
34
+ ]);
35
+ return handleTableSubcommand(answer.subcommand, newArgv, prompter);
36
+ }
37
+ return handleTableSubcommand(subcommand, newArgv, prompter);
38
+ };
39
+ async function handleTableSubcommand(subcommand, argv, prompter) {
40
+ switch (subcommand) {
41
+ case 'list':
42
+ return handleList(argv, prompter);
43
+ case 'find-first':
44
+ return handleFindFirst(argv, prompter);
45
+ case 'create':
46
+ return handleCreate(argv, prompter);
47
+ default:
48
+ console.log(usage);
49
+ process.exit(1);
50
+ }
51
+ }
52
+ async function handleList(argv, _prompter) {
53
+ try {
54
+ const defaultSelect = {
55
+ id: true,
56
+ ownerId: true,
57
+ service: true,
58
+ identifier: true,
59
+ details: true,
60
+ isVerified: true,
61
+ createdAt: true,
62
+ updatedAt: true,
63
+ };
64
+ const findManyArgs = parseFindManyArgs(argv, defaultSelect);
65
+ const client = getClient();
66
+ const result = await client.userConnectedAccount.findMany(findManyArgs).execute();
67
+ console.log(JSON.stringify(result, null, 2));
68
+ }
69
+ catch (error) {
70
+ console.error('Failed to list records.');
71
+ if (error instanceof Error) {
72
+ console.error(error.message);
73
+ }
74
+ process.exit(1);
75
+ }
76
+ }
77
+ async function handleFindFirst(argv, _prompter) {
78
+ try {
79
+ const defaultSelect = {
80
+ id: true,
81
+ ownerId: true,
82
+ service: true,
83
+ identifier: true,
84
+ details: true,
85
+ isVerified: true,
86
+ createdAt: true,
87
+ updatedAt: true,
88
+ };
89
+ const findFirstArgs = parseFindFirstArgs(argv, defaultSelect);
90
+ const client = getClient();
91
+ const result = await client.userConnectedAccount.findFirst(findFirstArgs).execute();
92
+ console.log(JSON.stringify(result, null, 2));
93
+ }
94
+ catch (error) {
95
+ console.error('Failed to find record.');
96
+ if (error instanceof Error) {
97
+ console.error(error.message);
98
+ }
99
+ process.exit(1);
100
+ }
101
+ }
102
+ async function handleCreate(argv, prompter) {
103
+ try {
104
+ const rawAnswers = await prompter.prompt(argv, [
105
+ {
106
+ type: 'text',
107
+ name: 'ownerId',
108
+ message: 'ownerId',
109
+ required: false,
110
+ skipPrompt: true,
111
+ },
112
+ {
113
+ type: 'text',
114
+ name: 'service',
115
+ message: 'service',
116
+ required: false,
117
+ skipPrompt: true,
118
+ },
119
+ {
120
+ type: 'text',
121
+ name: 'identifier',
122
+ message: 'identifier',
123
+ required: false,
124
+ skipPrompt: true,
125
+ },
126
+ {
127
+ type: 'json',
128
+ name: 'details',
129
+ message: 'details',
130
+ required: false,
131
+ skipPrompt: true,
132
+ },
133
+ {
134
+ type: 'boolean',
135
+ name: 'isVerified',
136
+ message: 'isVerified',
137
+ required: false,
138
+ skipPrompt: true,
139
+ },
140
+ ]);
141
+ const answers = coerceAnswers(rawAnswers, fieldSchema);
142
+ const cleanedData = stripUndefined(answers, fieldSchema);
143
+ const client = getClient();
144
+ const result = await client.userConnectedAccount
145
+ .create({
146
+ data: {
147
+ ownerId: cleanedData.ownerId,
148
+ service: cleanedData.service,
149
+ identifier: cleanedData.identifier,
150
+ details: cleanedData.details,
151
+ isVerified: cleanedData.isVerified,
152
+ },
153
+ select: {
154
+ id: true,
155
+ ownerId: true,
156
+ service: true,
157
+ identifier: true,
158
+ details: true,
159
+ isVerified: true,
160
+ createdAt: true,
161
+ updatedAt: true,
162
+ },
163
+ })
164
+ .execute();
165
+ console.log(JSON.stringify(result, null, 2));
166
+ }
167
+ catch (error) {
168
+ console.error('Failed to create record.');
169
+ if (error instanceof Error) {
170
+ console.error(error.message);
171
+ }
172
+ process.exit(1);
173
+ }
174
+ }
@@ -9,27 +9,33 @@ import authCmd from './commands/auth';
9
9
  import emailCmd from './commands/email';
10
10
  import phoneNumberCmd from './commands/phone-number';
11
11
  import cryptoAddressCmd from './commands/crypto-address';
12
- import connectedAccountCmd from './commands/connected-account';
13
12
  import auditLogCmd from './commands/audit-log';
14
13
  import roleTypeCmd from './commands/role-type';
14
+ import userConnectedAccountCmd from './commands/user-connected-account';
15
15
  import userCmd from './commands/user';
16
- import currentIpAddressCmd from './commands/current-ip-address';
17
16
  import currentUserAgentCmd from './commands/current-user-agent';
17
+ import currentIpAddressCmd from './commands/current-ip-address';
18
18
  import currentUserIdCmd from './commands/current-user-id';
19
+ import requireStepUpCmd from './commands/require-step-up';
19
20
  import currentUserCmd from './commands/current-user';
20
21
  import signOutCmd from './commands/sign-out';
21
22
  import sendAccountDeletionEmailCmd from './commands/send-account-deletion-email';
22
23
  import checkPasswordCmd from './commands/check-password';
24
+ import disconnectAccountCmd from './commands/disconnect-account';
25
+ import revokeApiKeyCmd from './commands/revoke-api-key';
26
+ import revokeSessionCmd from './commands/revoke-session';
23
27
  import verifyPasswordCmd from './commands/verify-password';
24
28
  import verifyTotpCmd from './commands/verify-totp';
25
29
  import confirmDeleteAccountCmd from './commands/confirm-delete-account';
26
30
  import setPasswordCmd from './commands/set-password';
27
31
  import verifyEmailCmd from './commands/verify-email';
32
+ import provisionNewUserCmd from './commands/provision-new-user';
28
33
  import resetPasswordCmd from './commands/reset-password';
29
- import signInOneTimeTokenCmd from './commands/sign-in-one-time-token';
30
- import signInCmd from './commands/sign-in';
34
+ import createApiKeyCmd from './commands/create-api-key';
35
+ import signInCrossOriginCmd from './commands/sign-in-cross-origin';
31
36
  import signUpCmd from './commands/sign-up';
32
- import oneTimeTokenCmd from './commands/one-time-token';
37
+ import requestCrossOriginTokenCmd from './commands/request-cross-origin-token';
38
+ import signInCmd from './commands/sign-in';
33
39
  import extendTokenExpiresCmd from './commands/extend-token-expires';
34
40
  import forgotPasswordCmd from './commands/forgot-password';
35
41
  import sendVerificationEmailCmd from './commands/send-verification-email';
@@ -42,27 +48,33 @@ const createCommandMap = () => ({
42
48
  email: emailCmd,
43
49
  'phone-number': phoneNumberCmd,
44
50
  'crypto-address': cryptoAddressCmd,
45
- 'connected-account': connectedAccountCmd,
46
51
  'audit-log': auditLogCmd,
47
52
  'role-type': roleTypeCmd,
53
+ 'user-connected-account': userConnectedAccountCmd,
48
54
  user: userCmd,
49
- 'current-ip-address': currentIpAddressCmd,
50
55
  'current-user-agent': currentUserAgentCmd,
56
+ 'current-ip-address': currentIpAddressCmd,
51
57
  'current-user-id': currentUserIdCmd,
58
+ 'require-step-up': requireStepUpCmd,
52
59
  'current-user': currentUserCmd,
53
60
  'sign-out': signOutCmd,
54
61
  'send-account-deletion-email': sendAccountDeletionEmailCmd,
55
62
  'check-password': checkPasswordCmd,
63
+ 'disconnect-account': disconnectAccountCmd,
64
+ 'revoke-api-key': revokeApiKeyCmd,
65
+ 'revoke-session': revokeSessionCmd,
56
66
  'verify-password': verifyPasswordCmd,
57
67
  'verify-totp': verifyTotpCmd,
58
68
  'confirm-delete-account': confirmDeleteAccountCmd,
59
69
  'set-password': setPasswordCmd,
60
70
  'verify-email': verifyEmailCmd,
71
+ 'provision-new-user': provisionNewUserCmd,
61
72
  'reset-password': resetPasswordCmd,
62
- 'sign-in-one-time-token': signInOneTimeTokenCmd,
63
- 'sign-in': signInCmd,
73
+ 'create-api-key': createApiKeyCmd,
74
+ 'sign-in-cross-origin': signInCrossOriginCmd,
64
75
  'sign-up': signUpCmd,
65
- 'one-time-token': oneTimeTokenCmd,
76
+ 'request-cross-origin-token': requestCrossOriginTokenCmd,
77
+ 'sign-in': signInCmd,
66
78
  'extend-token-expires': extendTokenExpiresCmd,
67
79
  'forgot-password': forgotPasswordCmd,
68
80
  'send-verification-email': sendVerificationEmailCmd,
@@ -70,7 +82,7 @@ const createCommandMap = () => ({
70
82
  'confirm-upload': confirmUploadCmd,
71
83
  'provision-bucket': provisionBucketCmd,
72
84
  });
73
- const usage = "\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n email email CRUD operations\n phone-number phoneNumber CRUD operations\n crypto-address cryptoAddress CRUD operations\n connected-account connectedAccount CRUD operations\n audit-log auditLog CRUD operations\n role-type roleType CRUD operations\n user user CRUD operations\n current-ip-address currentIpAddress\n current-user-agent currentUserAgent\n current-user-id currentUserId\n current-user currentUser\n sign-out signOut\n send-account-deletion-email sendAccountDeletionEmail\n check-password checkPassword\n verify-password verifyPassword\n verify-totp verifyTotp\n confirm-delete-account confirmDeleteAccount\n set-password setPassword\n verify-email verifyEmail\n reset-password resetPassword\n sign-in-one-time-token signInOneTimeToken\n sign-in signIn\n sign-up signUp\n one-time-token oneTimeToken\n extend-token-expires extendTokenExpires\n forgot-password forgotPassword\n send-verification-email sendVerificationEmail\n request-upload-url Request a presigned URL for uploading a file directly to S3.\nClient computes SHA-256 of the file content and provides it here.\nIf a file with the same hash already exists (dedup), returns the\nexisting file ID and deduplicated=true with no uploadUrl.\n confirm-upload Confirm that a file has been uploaded to S3.\nVerifies the object exists in S3, checks content-type,\nand transitions the file status from 'pending' to 'ready'.\n provision-bucket Provision an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then creates and configures\nthe S3 bucket with the appropriate privacy policies, CORS rules,\nand lifecycle settings.\n\n --help, -h Show this help message\n --version, -v Show version\n";
85
+ const usage = "\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n email email CRUD operations\n phone-number phoneNumber CRUD operations\n crypto-address cryptoAddress CRUD operations\n audit-log auditLog CRUD operations\n role-type roleType CRUD operations\n user-connected-account userConnectedAccount CRUD operations\n user user CRUD operations\n current-user-agent currentUserAgent\n current-ip-address currentIpAddress\n current-user-id currentUserId\n require-step-up requireStepUp\n current-user currentUser\n sign-out signOut\n send-account-deletion-email sendAccountDeletionEmail\n check-password checkPassword\n disconnect-account disconnectAccount\n revoke-api-key revokeApiKey\n revoke-session revokeSession\n verify-password verifyPassword\n verify-totp verifyTotp\n confirm-delete-account confirmDeleteAccount\n set-password setPassword\n verify-email verifyEmail\n provision-new-user provisionNewUser\n reset-password resetPassword\n create-api-key createApiKey\n sign-in-cross-origin signInCrossOrigin\n sign-up signUp\n request-cross-origin-token requestCrossOriginToken\n sign-in signIn\n extend-token-expires extendTokenExpires\n forgot-password forgotPassword\n send-verification-email sendVerificationEmail\n request-upload-url Request a presigned URL for uploading a file directly to S3.\nClient computes SHA-256 of the file content and provides it here.\nIf a file with the same hash already exists (dedup), returns the\nexisting file ID and deduplicated=true with no uploadUrl.\n confirm-upload Confirm that a file has been uploaded to S3.\nVerifies the object exists in S3, checks content-type,\nand transitions the file status from 'pending' to 'ready'.\n provision-bucket Provision an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then creates and configures\nthe S3 bucket with the appropriate privacy policies, CORS rules,\nand lifecycle settings.\n\n --help, -h Show this help message\n --version, -v Show version\n";
74
86
  export const commands = async (argv, prompter, options) => {
75
87
  if (argv.help || argv.h) {
76
88
  console.log(usage);
@@ -3,26 +3,31 @@ export declare function getClient(contextName?: string): {
3
3
  email: import("..").EmailModel;
4
4
  phoneNumber: import("..").PhoneNumberModel;
5
5
  cryptoAddress: import("..").CryptoAddressModel;
6
- connectedAccount: import("..").ConnectedAccountModel;
7
6
  auditLog: import("..").AuditLogModel;
8
7
  roleType: import("..").RoleTypeModel;
8
+ userConnectedAccount: import("..").UserConnectedAccountModel;
9
9
  user: import("..").UserModel;
10
10
  query: {
11
- currentIpAddress: (options?: {
11
+ currentUserAgent: (options?: {
12
12
  select?: Record<string, unknown>;
13
13
  }) => import("..").QueryBuilder<{
14
- currentIpAddress: string | null;
14
+ currentUserAgent: string | null;
15
15
  }>;
16
- currentUserAgent: (options?: {
16
+ currentIpAddress: (options?: {
17
17
  select?: Record<string, unknown>;
18
18
  }) => import("..").QueryBuilder<{
19
- currentUserAgent: string | null;
19
+ currentIpAddress: string | null;
20
20
  }>;
21
21
  currentUserId: (options?: {
22
22
  select?: Record<string, unknown>;
23
23
  }) => import("..").QueryBuilder<{
24
24
  currentUserId: string | null;
25
25
  }>;
26
+ requireStepUp: (args: import("../orm/query").RequireStepUpVariables, options?: {
27
+ select?: Record<string, unknown>;
28
+ }) => import("..").QueryBuilder<{
29
+ requireStepUp: boolean | null;
30
+ }>;
26
31
  currentUser: <S extends import("../orm/input-types").UserSelect>(options: {
27
32
  select: S;
28
33
  } & import("..").StrictSelect<S, import("../orm/input-types").UserSelect>) => import("..").QueryBuilder<{
@@ -45,6 +50,21 @@ export declare function getClient(contextName?: string): {
45
50
  } & import("..").StrictSelect<S, import("../orm/input-types").CheckPasswordPayloadSelect>) => import("..").QueryBuilder<{
46
51
  checkPassword: import("..").InferSelectResult<import("../orm/input-types").CheckPasswordPayload, S> | null;
47
52
  }>;
53
+ disconnectAccount: <S extends import("../orm/input-types").DisconnectAccountPayloadSelect>(args: import("../orm/mutation").DisconnectAccountVariables, options: {
54
+ select: S;
55
+ } & import("..").StrictSelect<S, import("../orm/input-types").DisconnectAccountPayloadSelect>) => import("..").QueryBuilder<{
56
+ disconnectAccount: import("..").InferSelectResult<import("../orm/input-types").DisconnectAccountPayload, S> | null;
57
+ }>;
58
+ revokeApiKey: <S extends import("../orm/input-types").RevokeApiKeyPayloadSelect>(args: import("../orm/mutation").RevokeApiKeyVariables, options: {
59
+ select: S;
60
+ } & import("..").StrictSelect<S, import("../orm/input-types").RevokeApiKeyPayloadSelect>) => import("..").QueryBuilder<{
61
+ revokeApiKey: import("..").InferSelectResult<import("../orm/input-types").RevokeApiKeyPayload, S> | null;
62
+ }>;
63
+ revokeSession: <S extends import("../orm/input-types").RevokeSessionPayloadSelect>(args: import("../orm/mutation").RevokeSessionVariables, options: {
64
+ select: S;
65
+ } & import("..").StrictSelect<S, import("../orm/input-types").RevokeSessionPayloadSelect>) => import("..").QueryBuilder<{
66
+ revokeSession: import("..").InferSelectResult<import("../orm/input-types").RevokeSessionPayload, S> | null;
67
+ }>;
48
68
  verifyPassword: <S extends import("../orm/input-types").VerifyPasswordPayloadSelect>(args: import("../orm/mutation").VerifyPasswordVariables, options: {
49
69
  select: S;
50
70
  } & import("..").StrictSelect<S, import("../orm/input-types").VerifyPasswordPayloadSelect>) => import("..").QueryBuilder<{
@@ -70,30 +90,40 @@ export declare function getClient(contextName?: string): {
70
90
  } & import("..").StrictSelect<S, import("../orm/input-types").VerifyEmailPayloadSelect>) => import("..").QueryBuilder<{
71
91
  verifyEmail: import("..").InferSelectResult<import("../orm/input-types").VerifyEmailPayload, S> | null;
72
92
  }>;
93
+ provisionNewUser: <S extends import("../orm/input-types").ProvisionNewUserPayloadSelect>(args: import("../orm/mutation").ProvisionNewUserVariables, options: {
94
+ select: S;
95
+ } & import("..").StrictSelect<S, import("../orm/input-types").ProvisionNewUserPayloadSelect>) => import("..").QueryBuilder<{
96
+ provisionNewUser: import("..").InferSelectResult<import("../orm/input-types").ProvisionNewUserPayload, S> | null;
97
+ }>;
73
98
  resetPassword: <S extends import("../orm/input-types").ResetPasswordPayloadSelect>(args: import("../orm/mutation").ResetPasswordVariables, options: {
74
99
  select: S;
75
100
  } & import("..").StrictSelect<S, import("../orm/input-types").ResetPasswordPayloadSelect>) => import("..").QueryBuilder<{
76
101
  resetPassword: import("..").InferSelectResult<import("../orm/input-types").ResetPasswordPayload, S> | null;
77
102
  }>;
78
- signInOneTimeToken: <S extends import("../orm/input-types").SignInOneTimeTokenPayloadSelect>(args: import("../orm/mutation").SignInOneTimeTokenVariables, options: {
103
+ createApiKey: <S extends import("../orm/input-types").CreateApiKeyPayloadSelect>(args: import("../orm/mutation").CreateApiKeyVariables, options: {
79
104
  select: S;
80
- } & import("..").StrictSelect<S, import("../orm/input-types").SignInOneTimeTokenPayloadSelect>) => import("..").QueryBuilder<{
81
- signInOneTimeToken: import("..").InferSelectResult<import("../orm/input-types").SignInOneTimeTokenPayload, S> | null;
105
+ } & import("..").StrictSelect<S, import("../orm/input-types").CreateApiKeyPayloadSelect>) => import("..").QueryBuilder<{
106
+ createApiKey: import("..").InferSelectResult<import("../orm/input-types").CreateApiKeyPayload, S> | null;
82
107
  }>;
83
- signIn: <S extends import("../orm/input-types").SignInPayloadSelect>(args: import("../orm/mutation").SignInVariables, options: {
108
+ signInCrossOrigin: <S extends import("../orm/input-types").SignInCrossOriginPayloadSelect>(args: import("../orm/mutation").SignInCrossOriginVariables, options: {
84
109
  select: S;
85
- } & import("..").StrictSelect<S, import("../orm/input-types").SignInPayloadSelect>) => import("..").QueryBuilder<{
86
- signIn: import("..").InferSelectResult<import("../orm/input-types").SignInPayload, S> | null;
110
+ } & import("..").StrictSelect<S, import("../orm/input-types").SignInCrossOriginPayloadSelect>) => import("..").QueryBuilder<{
111
+ signInCrossOrigin: import("..").InferSelectResult<import("../orm/input-types").SignInCrossOriginPayload, S> | null;
87
112
  }>;
88
113
  signUp: <S extends import("../orm/input-types").SignUpPayloadSelect>(args: import("../orm/mutation").SignUpVariables, options: {
89
114
  select: S;
90
115
  } & import("..").StrictSelect<S, import("../orm/input-types").SignUpPayloadSelect>) => import("..").QueryBuilder<{
91
116
  signUp: import("..").InferSelectResult<import("../orm/input-types").SignUpPayload, S> | null;
92
117
  }>;
93
- oneTimeToken: <S extends import("../orm/input-types").OneTimeTokenPayloadSelect>(args: import("../orm/mutation").OneTimeTokenVariables, options: {
118
+ requestCrossOriginToken: <S extends import("../orm/input-types").RequestCrossOriginTokenPayloadSelect>(args: import("../orm/mutation").RequestCrossOriginTokenVariables, options: {
119
+ select: S;
120
+ } & import("..").StrictSelect<S, import("../orm/input-types").RequestCrossOriginTokenPayloadSelect>) => import("..").QueryBuilder<{
121
+ requestCrossOriginToken: import("..").InferSelectResult<import("../orm/input-types").RequestCrossOriginTokenPayload, S> | null;
122
+ }>;
123
+ signIn: <S extends import("../orm/input-types").SignInPayloadSelect>(args: import("../orm/mutation").SignInVariables, options: {
94
124
  select: S;
95
- } & import("..").StrictSelect<S, import("../orm/input-types").OneTimeTokenPayloadSelect>) => import("..").QueryBuilder<{
96
- oneTimeToken: import("..").InferSelectResult<import("../orm/input-types").OneTimeTokenPayload, S> | null;
125
+ } & import("..").StrictSelect<S, import("../orm/input-types").SignInPayloadSelect>) => import("..").QueryBuilder<{
126
+ signIn: import("..").InferSelectResult<import("../orm/input-types").SignInPayload, S> | null;
97
127
  }>;
98
128
  extendTokenExpires: <S extends import("../orm/input-types").ExtendTokenExpiresPayloadSelect>(args: import("../orm/mutation").ExtendTokenExpiresVariables, options: {
99
129
  select: S;
@@ -2,9 +2,9 @@ import type { OrmClientConfig } from './client';
2
2
  import { EmailModel } from './models/email';
3
3
  import { PhoneNumberModel } from './models/phoneNumber';
4
4
  import { CryptoAddressModel } from './models/cryptoAddress';
5
- import { ConnectedAccountModel } from './models/connectedAccount';
6
5
  import { AuditLogModel } from './models/auditLog';
7
6
  import { RoleTypeModel } from './models/roleType';
7
+ import { UserConnectedAccountModel } from './models/userConnectedAccount';
8
8
  import { UserModel } from './models/user';
9
9
  export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client';
10
10
  export { GraphQLRequestError } from './client';
@@ -41,26 +41,31 @@ export declare function createClient(config: OrmClientConfig): {
41
41
  email: EmailModel;
42
42
  phoneNumber: PhoneNumberModel;
43
43
  cryptoAddress: CryptoAddressModel;
44
- connectedAccount: ConnectedAccountModel;
45
44
  auditLog: AuditLogModel;
46
45
  roleType: RoleTypeModel;
46
+ userConnectedAccount: UserConnectedAccountModel;
47
47
  user: UserModel;
48
48
  query: {
49
- currentIpAddress: (options?: {
49
+ currentUserAgent: (options?: {
50
50
  select?: Record<string, unknown>;
51
51
  }) => import("./query-builder").QueryBuilder<{
52
- currentIpAddress: string | null;
52
+ currentUserAgent: string | null;
53
53
  }>;
54
- currentUserAgent: (options?: {
54
+ currentIpAddress: (options?: {
55
55
  select?: Record<string, unknown>;
56
56
  }) => import("./query-builder").QueryBuilder<{
57
- currentUserAgent: string | null;
57
+ currentIpAddress: string | null;
58
58
  }>;
59
59
  currentUserId: (options?: {
60
60
  select?: Record<string, unknown>;
61
61
  }) => import("./query-builder").QueryBuilder<{
62
62
  currentUserId: string | null;
63
63
  }>;
64
+ requireStepUp: (args: import("./query").RequireStepUpVariables, options?: {
65
+ select?: Record<string, unknown>;
66
+ }) => import("./query-builder").QueryBuilder<{
67
+ requireStepUp: boolean | null;
68
+ }>;
64
69
  currentUser: <S extends import("./input-types").UserSelect>(options: {
65
70
  select: S;
66
71
  } & import("./select-types").StrictSelect<S, import("./input-types").UserSelect>) => import("./query-builder").QueryBuilder<{
@@ -83,6 +88,21 @@ export declare function createClient(config: OrmClientConfig): {
83
88
  } & import("./select-types").StrictSelect<S, import("./input-types").CheckPasswordPayloadSelect>) => import("./query-builder").QueryBuilder<{
84
89
  checkPassword: import("./select-types").InferSelectResult<import("./input-types").CheckPasswordPayload, S> | null;
85
90
  }>;
91
+ disconnectAccount: <S extends import("./input-types").DisconnectAccountPayloadSelect>(args: import("./mutation").DisconnectAccountVariables, options: {
92
+ select: S;
93
+ } & import("./select-types").StrictSelect<S, import("./input-types").DisconnectAccountPayloadSelect>) => import("./query-builder").QueryBuilder<{
94
+ disconnectAccount: import("./select-types").InferSelectResult<import("./input-types").DisconnectAccountPayload, S> | null;
95
+ }>;
96
+ revokeApiKey: <S extends import("./input-types").RevokeApiKeyPayloadSelect>(args: import("./mutation").RevokeApiKeyVariables, options: {
97
+ select: S;
98
+ } & import("./select-types").StrictSelect<S, import("./input-types").RevokeApiKeyPayloadSelect>) => import("./query-builder").QueryBuilder<{
99
+ revokeApiKey: import("./select-types").InferSelectResult<import("./input-types").RevokeApiKeyPayload, S> | null;
100
+ }>;
101
+ revokeSession: <S extends import("./input-types").RevokeSessionPayloadSelect>(args: import("./mutation").RevokeSessionVariables, options: {
102
+ select: S;
103
+ } & import("./select-types").StrictSelect<S, import("./input-types").RevokeSessionPayloadSelect>) => import("./query-builder").QueryBuilder<{
104
+ revokeSession: import("./select-types").InferSelectResult<import("./input-types").RevokeSessionPayload, S> | null;
105
+ }>;
86
106
  verifyPassword: <S extends import("./input-types").VerifyPasswordPayloadSelect>(args: import("./mutation").VerifyPasswordVariables, options: {
87
107
  select: S;
88
108
  } & import("./select-types").StrictSelect<S, import("./input-types").VerifyPasswordPayloadSelect>) => import("./query-builder").QueryBuilder<{
@@ -108,30 +128,40 @@ export declare function createClient(config: OrmClientConfig): {
108
128
  } & import("./select-types").StrictSelect<S, import("./input-types").VerifyEmailPayloadSelect>) => import("./query-builder").QueryBuilder<{
109
129
  verifyEmail: import("./select-types").InferSelectResult<import("./input-types").VerifyEmailPayload, S> | null;
110
130
  }>;
131
+ provisionNewUser: <S extends import("./input-types").ProvisionNewUserPayloadSelect>(args: import("./mutation").ProvisionNewUserVariables, options: {
132
+ select: S;
133
+ } & import("./select-types").StrictSelect<S, import("./input-types").ProvisionNewUserPayloadSelect>) => import("./query-builder").QueryBuilder<{
134
+ provisionNewUser: import("./select-types").InferSelectResult<import("./input-types").ProvisionNewUserPayload, S> | null;
135
+ }>;
111
136
  resetPassword: <S extends import("./input-types").ResetPasswordPayloadSelect>(args: import("./mutation").ResetPasswordVariables, options: {
112
137
  select: S;
113
138
  } & import("./select-types").StrictSelect<S, import("./input-types").ResetPasswordPayloadSelect>) => import("./query-builder").QueryBuilder<{
114
139
  resetPassword: import("./select-types").InferSelectResult<import("./input-types").ResetPasswordPayload, S> | null;
115
140
  }>;
116
- signInOneTimeToken: <S extends import("./input-types").SignInOneTimeTokenPayloadSelect>(args: import("./mutation").SignInOneTimeTokenVariables, options: {
141
+ createApiKey: <S extends import("./input-types").CreateApiKeyPayloadSelect>(args: import("./mutation").CreateApiKeyVariables, options: {
117
142
  select: S;
118
- } & import("./select-types").StrictSelect<S, import("./input-types").SignInOneTimeTokenPayloadSelect>) => import("./query-builder").QueryBuilder<{
119
- signInOneTimeToken: import("./select-types").InferSelectResult<import("./input-types").SignInOneTimeTokenPayload, S> | null;
143
+ } & import("./select-types").StrictSelect<S, import("./input-types").CreateApiKeyPayloadSelect>) => import("./query-builder").QueryBuilder<{
144
+ createApiKey: import("./select-types").InferSelectResult<import("./input-types").CreateApiKeyPayload, S> | null;
120
145
  }>;
121
- signIn: <S extends import("./input-types").SignInPayloadSelect>(args: import("./mutation").SignInVariables, options: {
146
+ signInCrossOrigin: <S extends import("./input-types").SignInCrossOriginPayloadSelect>(args: import("./mutation").SignInCrossOriginVariables, options: {
122
147
  select: S;
123
- } & import("./select-types").StrictSelect<S, import("./input-types").SignInPayloadSelect>) => import("./query-builder").QueryBuilder<{
124
- signIn: import("./select-types").InferSelectResult<import("./input-types").SignInPayload, S> | null;
148
+ } & import("./select-types").StrictSelect<S, import("./input-types").SignInCrossOriginPayloadSelect>) => import("./query-builder").QueryBuilder<{
149
+ signInCrossOrigin: import("./select-types").InferSelectResult<import("./input-types").SignInCrossOriginPayload, S> | null;
125
150
  }>;
126
151
  signUp: <S extends import("./input-types").SignUpPayloadSelect>(args: import("./mutation").SignUpVariables, options: {
127
152
  select: S;
128
153
  } & import("./select-types").StrictSelect<S, import("./input-types").SignUpPayloadSelect>) => import("./query-builder").QueryBuilder<{
129
154
  signUp: import("./select-types").InferSelectResult<import("./input-types").SignUpPayload, S> | null;
130
155
  }>;
131
- oneTimeToken: <S extends import("./input-types").OneTimeTokenPayloadSelect>(args: import("./mutation").OneTimeTokenVariables, options: {
156
+ requestCrossOriginToken: <S extends import("./input-types").RequestCrossOriginTokenPayloadSelect>(args: import("./mutation").RequestCrossOriginTokenVariables, options: {
157
+ select: S;
158
+ } & import("./select-types").StrictSelect<S, import("./input-types").RequestCrossOriginTokenPayloadSelect>) => import("./query-builder").QueryBuilder<{
159
+ requestCrossOriginToken: import("./select-types").InferSelectResult<import("./input-types").RequestCrossOriginTokenPayload, S> | null;
160
+ }>;
161
+ signIn: <S extends import("./input-types").SignInPayloadSelect>(args: import("./mutation").SignInVariables, options: {
132
162
  select: S;
133
- } & import("./select-types").StrictSelect<S, import("./input-types").OneTimeTokenPayloadSelect>) => import("./query-builder").QueryBuilder<{
134
- oneTimeToken: import("./select-types").InferSelectResult<import("./input-types").OneTimeTokenPayload, S> | null;
163
+ } & import("./select-types").StrictSelect<S, import("./input-types").SignInPayloadSelect>) => import("./query-builder").QueryBuilder<{
164
+ signIn: import("./select-types").InferSelectResult<import("./input-types").SignInPayload, S> | null;
135
165
  }>;
136
166
  extendTokenExpires: <S extends import("./input-types").ExtendTokenExpiresPayloadSelect>(args: import("./mutation").ExtendTokenExpiresVariables, options: {
137
167
  select: S;
@@ -7,9 +7,9 @@ import { OrmClient } from './client';
7
7
  import { EmailModel } from './models/email';
8
8
  import { PhoneNumberModel } from './models/phoneNumber';
9
9
  import { CryptoAddressModel } from './models/cryptoAddress';
10
- import { ConnectedAccountModel } from './models/connectedAccount';
11
10
  import { AuditLogModel } from './models/auditLog';
12
11
  import { RoleTypeModel } from './models/roleType';
12
+ import { UserConnectedAccountModel } from './models/userConnectedAccount';
13
13
  import { UserModel } from './models/user';
14
14
  import { createQueryOperations } from './query';
15
15
  import { createMutationOperations } from './mutation';
@@ -49,9 +49,9 @@ export function createClient(config) {
49
49
  email: new EmailModel(client),
50
50
  phoneNumber: new PhoneNumberModel(client),
51
51
  cryptoAddress: new CryptoAddressModel(client),
52
- connectedAccount: new ConnectedAccountModel(client),
53
52
  auditLog: new AuditLogModel(client),
54
53
  roleType: new RoleTypeModel(client),
54
+ userConnectedAccount: new UserConnectedAccountModel(client),
55
55
  user: new UserModel(client),
56
56
  query: createQueryOperations(client),
57
57
  mutation: createMutationOperations(client),