@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,176 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ /**
4
+ * CLI commands for UserConnectedAccount
5
+ * @generated by @constructive-io/graphql-codegen
6
+ * DO NOT EDIT - changes will be overwritten
7
+ */
8
+ const inquirerer_1 = require("inquirerer");
9
+ const executor_1 = require("../executor");
10
+ const utils_1 = require("../utils");
11
+ const fieldSchema = {
12
+ id: 'uuid',
13
+ ownerId: 'uuid',
14
+ service: 'string',
15
+ identifier: 'string',
16
+ details: 'json',
17
+ isVerified: 'boolean',
18
+ createdAt: 'string',
19
+ updatedAt: 'string',
20
+ };
21
+ 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';
22
+ exports.default = async (argv, prompter, _options) => {
23
+ if (argv.help || argv.h) {
24
+ console.log(usage);
25
+ process.exit(0);
26
+ }
27
+ const { first: subcommand, newArgv } = (0, inquirerer_1.extractFirst)(argv);
28
+ if (!subcommand) {
29
+ const answer = await prompter.prompt(argv, [
30
+ {
31
+ type: 'autocomplete',
32
+ name: 'subcommand',
33
+ message: 'What do you want to do?',
34
+ options: ['list', 'find-first', 'create'],
35
+ },
36
+ ]);
37
+ return handleTableSubcommand(answer.subcommand, newArgv, prompter);
38
+ }
39
+ return handleTableSubcommand(subcommand, newArgv, prompter);
40
+ };
41
+ async function handleTableSubcommand(subcommand, argv, prompter) {
42
+ switch (subcommand) {
43
+ case 'list':
44
+ return handleList(argv, prompter);
45
+ case 'find-first':
46
+ return handleFindFirst(argv, prompter);
47
+ case 'create':
48
+ return handleCreate(argv, prompter);
49
+ default:
50
+ console.log(usage);
51
+ process.exit(1);
52
+ }
53
+ }
54
+ async function handleList(argv, _prompter) {
55
+ try {
56
+ const defaultSelect = {
57
+ id: true,
58
+ ownerId: true,
59
+ service: true,
60
+ identifier: true,
61
+ details: true,
62
+ isVerified: true,
63
+ createdAt: true,
64
+ updatedAt: true,
65
+ };
66
+ const findManyArgs = (0, utils_1.parseFindManyArgs)(argv, defaultSelect);
67
+ const client = (0, executor_1.getClient)();
68
+ const result = await client.userConnectedAccount.findMany(findManyArgs).execute();
69
+ console.log(JSON.stringify(result, null, 2));
70
+ }
71
+ catch (error) {
72
+ console.error('Failed to list records.');
73
+ if (error instanceof Error) {
74
+ console.error(error.message);
75
+ }
76
+ process.exit(1);
77
+ }
78
+ }
79
+ async function handleFindFirst(argv, _prompter) {
80
+ try {
81
+ const defaultSelect = {
82
+ id: true,
83
+ ownerId: true,
84
+ service: true,
85
+ identifier: true,
86
+ details: true,
87
+ isVerified: true,
88
+ createdAt: true,
89
+ updatedAt: true,
90
+ };
91
+ const findFirstArgs = (0, utils_1.parseFindFirstArgs)(argv, defaultSelect);
92
+ const client = (0, executor_1.getClient)();
93
+ const result = await client.userConnectedAccount.findFirst(findFirstArgs).execute();
94
+ console.log(JSON.stringify(result, null, 2));
95
+ }
96
+ catch (error) {
97
+ console.error('Failed to find record.');
98
+ if (error instanceof Error) {
99
+ console.error(error.message);
100
+ }
101
+ process.exit(1);
102
+ }
103
+ }
104
+ async function handleCreate(argv, prompter) {
105
+ try {
106
+ const rawAnswers = await prompter.prompt(argv, [
107
+ {
108
+ type: 'text',
109
+ name: 'ownerId',
110
+ message: 'ownerId',
111
+ required: false,
112
+ skipPrompt: true,
113
+ },
114
+ {
115
+ type: 'text',
116
+ name: 'service',
117
+ message: 'service',
118
+ required: false,
119
+ skipPrompt: true,
120
+ },
121
+ {
122
+ type: 'text',
123
+ name: 'identifier',
124
+ message: 'identifier',
125
+ required: false,
126
+ skipPrompt: true,
127
+ },
128
+ {
129
+ type: 'json',
130
+ name: 'details',
131
+ message: 'details',
132
+ required: false,
133
+ skipPrompt: true,
134
+ },
135
+ {
136
+ type: 'boolean',
137
+ name: 'isVerified',
138
+ message: 'isVerified',
139
+ required: false,
140
+ skipPrompt: true,
141
+ },
142
+ ]);
143
+ const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
144
+ const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
145
+ const client = (0, executor_1.getClient)();
146
+ const result = await client.userConnectedAccount
147
+ .create({
148
+ data: {
149
+ ownerId: cleanedData.ownerId,
150
+ service: cleanedData.service,
151
+ identifier: cleanedData.identifier,
152
+ details: cleanedData.details,
153
+ isVerified: cleanedData.isVerified,
154
+ },
155
+ select: {
156
+ id: true,
157
+ ownerId: true,
158
+ service: true,
159
+ identifier: true,
160
+ details: true,
161
+ isVerified: true,
162
+ createdAt: true,
163
+ updatedAt: true,
164
+ },
165
+ })
166
+ .execute();
167
+ console.log(JSON.stringify(result, null, 2));
168
+ }
169
+ catch (error) {
170
+ console.error('Failed to create record.');
171
+ if (error instanceof Error) {
172
+ console.error(error.message);
173
+ }
174
+ process.exit(1);
175
+ }
176
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * CLI commands for WebauthnCredentialsModule
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;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  /**
4
- * CLI commands for TableTemplateModule
4
+ * CLI commands for WebauthnCredentialsModule
5
5
  * @generated by @constructive-io/graphql-codegen
6
6
  * DO NOT EDIT - changes will be overwritten
7
7
  */
@@ -16,10 +16,8 @@ const fieldSchema = {
16
16
  tableId: 'uuid',
17
17
  ownerTableId: 'uuid',
18
18
  tableName: 'string',
19
- nodeType: 'string',
20
- data: 'json',
21
19
  };
22
- const usage = '\ntable-template-module <command>\n\nCommands:\n list List tableTemplateModule records\n find-first Find first matching tableTemplateModule record\n get Get a tableTemplateModule by ID\n create Create a new tableTemplateModule\n update Update an existing tableTemplateModule\n delete Delete a tableTemplateModule\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
+ const usage = '\nwebauthn-credentials-module <command>\n\nCommands:\n list List webauthnCredentialsModule records\n find-first Find first matching webauthnCredentialsModule record\n get Get a webauthnCredentialsModule by ID\n create Create a new webauthnCredentialsModule\n update Update an existing webauthnCredentialsModule\n delete Delete a webauthnCredentialsModule\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';
23
21
  exports.default = async (argv, prompter, _options) => {
24
22
  if (argv.help || argv.h) {
25
23
  console.log(usage);
@@ -68,12 +66,10 @@ async function handleList(argv, _prompter) {
68
66
  tableId: true,
69
67
  ownerTableId: true,
70
68
  tableName: true,
71
- nodeType: true,
72
- data: true,
73
69
  };
74
70
  const findManyArgs = (0, utils_1.parseFindManyArgs)(argv, defaultSelect);
75
71
  const client = (0, executor_1.getClient)();
76
- const result = await client.tableTemplateModule.findMany(findManyArgs).execute();
72
+ const result = await client.webauthnCredentialsModule.findMany(findManyArgs).execute();
77
73
  console.log(JSON.stringify(result, null, 2));
78
74
  }
79
75
  catch (error) {
@@ -94,12 +90,10 @@ async function handleFindFirst(argv, _prompter) {
94
90
  tableId: true,
95
91
  ownerTableId: true,
96
92
  tableName: true,
97
- nodeType: true,
98
- data: true,
99
93
  };
100
94
  const findFirstArgs = (0, utils_1.parseFindFirstArgs)(argv, defaultSelect);
101
95
  const client = (0, executor_1.getClient)();
102
- const result = await client.tableTemplateModule.findFirst(findFirstArgs).execute();
96
+ const result = await client.webauthnCredentialsModule.findFirst(findFirstArgs).execute();
103
97
  console.log(JSON.stringify(result, null, 2));
104
98
  }
105
99
  catch (error) {
@@ -121,7 +115,7 @@ async function handleGet(argv, prompter) {
121
115
  },
122
116
  ]);
123
117
  const client = (0, executor_1.getClient)();
124
- const result = await client.tableTemplateModule
118
+ const result = await client.webauthnCredentialsModule
125
119
  .findOne({
126
120
  id: answers.id,
127
121
  select: {
@@ -132,8 +126,6 @@ async function handleGet(argv, prompter) {
132
126
  tableId: true,
133
127
  ownerTableId: true,
134
128
  tableName: true,
135
- nodeType: true,
136
- data: true,
137
129
  },
138
130
  })
139
131
  .execute();
@@ -188,18 +180,6 @@ async function handleCreate(argv, prompter) {
188
180
  type: 'text',
189
181
  name: 'tableName',
190
182
  message: 'tableName',
191
- required: true,
192
- },
193
- {
194
- type: 'text',
195
- name: 'nodeType',
196
- message: 'nodeType',
197
- required: true,
198
- },
199
- {
200
- type: 'json',
201
- name: 'data',
202
- message: 'data',
203
183
  required: false,
204
184
  skipPrompt: true,
205
185
  },
@@ -207,7 +187,7 @@ async function handleCreate(argv, prompter) {
207
187
  const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
208
188
  const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
209
189
  const client = (0, executor_1.getClient)();
210
- const result = await client.tableTemplateModule
190
+ const result = await client.webauthnCredentialsModule
211
191
  .create({
212
192
  data: {
213
193
  databaseId: cleanedData.databaseId,
@@ -216,8 +196,6 @@ async function handleCreate(argv, prompter) {
216
196
  tableId: cleanedData.tableId,
217
197
  ownerTableId: cleanedData.ownerTableId,
218
198
  tableName: cleanedData.tableName,
219
- nodeType: cleanedData.nodeType,
220
- data: cleanedData.data,
221
199
  },
222
200
  select: {
223
201
  id: true,
@@ -227,8 +205,6 @@ async function handleCreate(argv, prompter) {
227
205
  tableId: true,
228
206
  ownerTableId: true,
229
207
  tableName: true,
230
- nodeType: true,
231
- data: true,
232
208
  },
233
209
  })
234
210
  .execute();
@@ -290,25 +266,13 @@ async function handleUpdate(argv, prompter) {
290
266
  name: 'tableName',
291
267
  message: 'tableName',
292
268
  required: false,
293
- },
294
- {
295
- type: 'text',
296
- name: 'nodeType',
297
- message: 'nodeType',
298
- required: false,
299
- },
300
- {
301
- type: 'json',
302
- name: 'data',
303
- message: 'data',
304
- required: false,
305
269
  skipPrompt: true,
306
270
  },
307
271
  ]);
308
272
  const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
309
273
  const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
310
274
  const client = (0, executor_1.getClient)();
311
- const result = await client.tableTemplateModule
275
+ const result = await client.webauthnCredentialsModule
312
276
  .update({
313
277
  where: {
314
278
  id: answers.id,
@@ -320,8 +284,6 @@ async function handleUpdate(argv, prompter) {
320
284
  tableId: cleanedData.tableId,
321
285
  ownerTableId: cleanedData.ownerTableId,
322
286
  tableName: cleanedData.tableName,
323
- nodeType: cleanedData.nodeType,
324
- data: cleanedData.data,
325
287
  },
326
288
  select: {
327
289
  id: true,
@@ -331,8 +293,6 @@ async function handleUpdate(argv, prompter) {
331
293
  tableId: true,
332
294
  ownerTableId: true,
333
295
  tableName: true,
334
- nodeType: true,
335
- data: true,
336
296
  },
337
297
  })
338
298
  .execute();
@@ -358,7 +318,7 @@ async function handleDelete(argv, prompter) {
358
318
  ]);
359
319
  const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
360
320
  const client = (0, executor_1.getClient)();
361
- const result = await client.tableTemplateModule
321
+ const result = await client.webauthnCredentialsModule
362
322
  .delete({
363
323
  where: {
364
324
  id: answers.id,
@@ -24,6 +24,7 @@ const schema_1 = __importDefault(require("./commands/schema"));
24
24
  const table_1 = __importDefault(require("./commands/table"));
25
25
  const check_constraint_1 = __importDefault(require("./commands/check-constraint"));
26
26
  const field_1 = __importDefault(require("./commands/field"));
27
+ const spatial_relation_1 = __importDefault(require("./commands/spatial-relation"));
27
28
  const foreign_key_constraint_1 = __importDefault(require("./commands/foreign-key-constraint"));
28
29
  const full_text_search_1 = __importDefault(require("./commands/full-text-search"));
29
30
  const index_1 = __importDefault(require("./commands/index"));
@@ -37,9 +38,9 @@ const view_table_1 = __importDefault(require("./commands/view-table"));
37
38
  const view_grant_1 = __importDefault(require("./commands/view-grant"));
38
39
  const view_rule_1 = __importDefault(require("./commands/view-rule"));
39
40
  const embedding_chunk_1 = __importDefault(require("./commands/embedding-chunk"));
40
- const table_template_module_1 = __importDefault(require("./commands/table-template-module"));
41
41
  const secure_table_provision_1 = __importDefault(require("./commands/secure-table-provision"));
42
42
  const relation_provision_1 = __importDefault(require("./commands/relation-provision"));
43
+ const session_secrets_module_1 = __importDefault(require("./commands/session-secrets-module"));
43
44
  const schema_grant_1 = __importDefault(require("./commands/schema-grant"));
44
45
  const default_privilege_1 = __importDefault(require("./commands/default-privilege"));
45
46
  const enum_1 = __importDefault(require("./commands/enum"));
@@ -77,6 +78,8 @@ const blueprint_1 = __importDefault(require("./commands/blueprint"));
77
78
  const blueprint_template_1 = __importDefault(require("./commands/blueprint-template"));
78
79
  const blueprint_construction_1 = __importDefault(require("./commands/blueprint-construction"));
79
80
  const storage_module_1 = __importDefault(require("./commands/storage-module"));
81
+ const entity_type_provision_1 = __importDefault(require("./commands/entity-type-provision"));
82
+ const webauthn_credentials_module_1 = __importDefault(require("./commands/webauthn-credentials-module"));
80
83
  const database_provision_module_1 = __importDefault(require("./commands/database-provision-module"));
81
84
  const app_admin_grant_1 = __importDefault(require("./commands/app-admin-grant"));
82
85
  const app_owner_grant_1 = __importDefault(require("./commands/app-owner-grant"));
@@ -85,6 +88,7 @@ const org_membership_1 = __importDefault(require("./commands/org-membership"));
85
88
  const org_member_1 = __importDefault(require("./commands/org-member"));
86
89
  const org_admin_grant_1 = __importDefault(require("./commands/org-admin-grant"));
87
90
  const org_owner_grant_1 = __importDefault(require("./commands/org-owner-grant"));
91
+ const org_member_profile_1 = __importDefault(require("./commands/org-member-profile"));
88
92
  const org_grant_1 = __importDefault(require("./commands/org-grant"));
89
93
  const org_chart_edge_1 = __importDefault(require("./commands/org-chart-edge"));
90
94
  const org_chart_edge_grant_1 = __importDefault(require("./commands/org-chart-edge-grant"));
@@ -97,7 +101,6 @@ const app_level_1 = __importDefault(require("./commands/app-level"));
97
101
  const email_1 = __importDefault(require("./commands/email"));
98
102
  const phone_number_1 = __importDefault(require("./commands/phone-number"));
99
103
  const crypto_address_1 = __importDefault(require("./commands/crypto-address"));
100
- const connected_account_1 = __importDefault(require("./commands/connected-account"));
101
104
  const app_invite_1 = __importDefault(require("./commands/app-invite"));
102
105
  const app_claimed_invite_1 = __importDefault(require("./commands/app-claimed-invite"));
103
106
  const org_invite_1 = __importDefault(require("./commands/org-invite"));
@@ -110,10 +113,12 @@ const role_type_1 = __importDefault(require("./commands/role-type"));
110
113
  const migrate_file_1 = __importDefault(require("./commands/migrate-file"));
111
114
  const app_limit_default_1 = __importDefault(require("./commands/app-limit-default"));
112
115
  const org_limit_default_1 = __importDefault(require("./commands/org-limit-default"));
113
- const membership_type_1 = __importDefault(require("./commands/membership-type"));
116
+ const devices_module_1 = __importDefault(require("./commands/devices-module"));
117
+ const user_connected_account_1 = __importDefault(require("./commands/user-connected-account"));
114
118
  const app_membership_default_1 = __importDefault(require("./commands/app-membership-default"));
115
119
  const commit_1 = __importDefault(require("./commands/commit"));
116
120
  const rate_limits_module_1 = __importDefault(require("./commands/rate-limits-module"));
121
+ const membership_type_1 = __importDefault(require("./commands/membership-type"));
117
122
  const org_membership_default_1 = __importDefault(require("./commands/org-membership-default"));
118
123
  const rls_module_1 = __importDefault(require("./commands/rls-module"));
119
124
  const sql_action_1 = __importDefault(require("./commands/sql-action"));
@@ -122,12 +127,14 @@ const ast_migration_1 = __importDefault(require("./commands/ast-migration"));
122
127
  const app_membership_1 = __importDefault(require("./commands/app-membership"));
123
128
  const hierarchy_module_1 = __importDefault(require("./commands/hierarchy-module"));
124
129
  const current_user_id_1 = __importDefault(require("./commands/current-user-id"));
125
- const current_ip_address_1 = __importDefault(require("./commands/current-ip-address"));
126
130
  const current_user_agent_1 = __importDefault(require("./commands/current-user-agent"));
131
+ const current_ip_address_1 = __importDefault(require("./commands/current-ip-address"));
132
+ const require_step_up_1 = __importDefault(require("./commands/require-step-up"));
127
133
  const app_permissions_get_padded_mask_1 = __importDefault(require("./commands/app-permissions-get-padded-mask"));
128
134
  const org_permissions_get_padded_mask_1 = __importDefault(require("./commands/org-permissions-get-padded-mask"));
129
135
  const steps_achieved_1 = __importDefault(require("./commands/steps-achieved"));
130
136
  const rev_parse_1 = __importDefault(require("./commands/rev-parse"));
137
+ const resolve_blueprint_field_1 = __importDefault(require("./commands/resolve-blueprint-field"));
131
138
  const org_is_manager_of_1 = __importDefault(require("./commands/org-is-manager-of"));
132
139
  const app_permissions_get_mask_1 = __importDefault(require("./commands/app-permissions-get-mask"));
133
140
  const org_permissions_get_mask_1 = __importDefault(require("./commands/org-permissions-get-mask"));
@@ -146,6 +153,9 @@ const sign_out_1 = __importDefault(require("./commands/sign-out"));
146
153
  const accept_database_transfer_1 = __importDefault(require("./commands/accept-database-transfer"));
147
154
  const cancel_database_transfer_1 = __importDefault(require("./commands/cancel-database-transfer"));
148
155
  const reject_database_transfer_1 = __importDefault(require("./commands/reject-database-transfer"));
156
+ const disconnect_account_1 = __importDefault(require("./commands/disconnect-account"));
157
+ const revoke_api_key_1 = __importDefault(require("./commands/revoke-api-key"));
158
+ const revoke_session_1 = __importDefault(require("./commands/revoke-session"));
149
159
  const verify_password_1 = __importDefault(require("./commands/verify-password"));
150
160
  const verify_totp_1 = __importDefault(require("./commands/verify-totp"));
151
161
  const submit_app_invite_code_1 = __importDefault(require("./commands/submit-app-invite-code"));
@@ -157,9 +167,12 @@ const verify_email_1 = __importDefault(require("./commands/verify-email"));
157
167
  const freeze_objects_1 = __importDefault(require("./commands/freeze-objects"));
158
168
  const init_empty_repo_1 = __importDefault(require("./commands/init-empty-repo"));
159
169
  const construct_blueprint_1 = __importDefault(require("./commands/construct-blueprint"));
170
+ const provision_new_user_1 = __importDefault(require("./commands/provision-new-user"));
160
171
  const reset_password_1 = __importDefault(require("./commands/reset-password"));
161
172
  const remove_node_at_path_1 = __importDefault(require("./commands/remove-node-at-path"));
162
173
  const copy_template_to_blueprint_1 = __importDefault(require("./commands/copy-template-to-blueprint"));
174
+ const create_api_key_1 = __importDefault(require("./commands/create-api-key"));
175
+ const provision_spatial_relation_1 = __importDefault(require("./commands/provision-spatial-relation"));
163
176
  const bootstrap_user_1 = __importDefault(require("./commands/bootstrap-user"));
164
177
  const set_field_order_1 = __importDefault(require("./commands/set-field-order"));
165
178
  const provision_unique_constraint_1 = __importDefault(require("./commands/provision-unique-constraint"));
@@ -173,12 +186,12 @@ const update_node_at_path_1 = __importDefault(require("./commands/update-node-at
173
186
  const set_and_commit_1 = __importDefault(require("./commands/set-and-commit"));
174
187
  const provision_relation_1 = __importDefault(require("./commands/provision-relation"));
175
188
  const apply_rls_1 = __importDefault(require("./commands/apply-rls"));
176
- const sign_in_one_time_token_1 = __importDefault(require("./commands/sign-in-one-time-token"));
189
+ const sign_in_cross_origin_1 = __importDefault(require("./commands/sign-in-cross-origin"));
177
190
  const create_user_database_1 = __importDefault(require("./commands/create-user-database"));
178
191
  const extend_token_expires_1 = __importDefault(require("./commands/extend-token-expires"));
179
- const sign_in_1 = __importDefault(require("./commands/sign-in"));
180
192
  const sign_up_1 = __importDefault(require("./commands/sign-up"));
181
- const one_time_token_1 = __importDefault(require("./commands/one-time-token"));
193
+ const request_cross_origin_token_1 = __importDefault(require("./commands/request-cross-origin-token"));
194
+ const sign_in_1 = __importDefault(require("./commands/sign-in"));
182
195
  const provision_table_1 = __importDefault(require("./commands/provision-table"));
183
196
  const send_verification_email_1 = __importDefault(require("./commands/send-verification-email"));
184
197
  const forgot_password_1 = __importDefault(require("./commands/forgot-password"));
@@ -200,6 +213,7 @@ const createCommandMap = () => ({
200
213
  table: table_1.default,
201
214
  'check-constraint': check_constraint_1.default,
202
215
  field: field_1.default,
216
+ 'spatial-relation': spatial_relation_1.default,
203
217
  'foreign-key-constraint': foreign_key_constraint_1.default,
204
218
  'full-text-search': full_text_search_1.default,
205
219
  index: index_1.default,
@@ -213,9 +227,9 @@ const createCommandMap = () => ({
213
227
  'view-grant': view_grant_1.default,
214
228
  'view-rule': view_rule_1.default,
215
229
  'embedding-chunk': embedding_chunk_1.default,
216
- 'table-template-module': table_template_module_1.default,
217
230
  'secure-table-provision': secure_table_provision_1.default,
218
231
  'relation-provision': relation_provision_1.default,
232
+ 'session-secrets-module': session_secrets_module_1.default,
219
233
  'schema-grant': schema_grant_1.default,
220
234
  'default-privilege': default_privilege_1.default,
221
235
  enum: enum_1.default,
@@ -253,6 +267,8 @@ const createCommandMap = () => ({
253
267
  'blueprint-template': blueprint_template_1.default,
254
268
  'blueprint-construction': blueprint_construction_1.default,
255
269
  'storage-module': storage_module_1.default,
270
+ 'entity-type-provision': entity_type_provision_1.default,
271
+ 'webauthn-credentials-module': webauthn_credentials_module_1.default,
256
272
  'database-provision-module': database_provision_module_1.default,
257
273
  'app-admin-grant': app_admin_grant_1.default,
258
274
  'app-owner-grant': app_owner_grant_1.default,
@@ -261,6 +277,7 @@ const createCommandMap = () => ({
261
277
  'org-member': org_member_1.default,
262
278
  'org-admin-grant': org_admin_grant_1.default,
263
279
  'org-owner-grant': org_owner_grant_1.default,
280
+ 'org-member-profile': org_member_profile_1.default,
264
281
  'org-grant': org_grant_1.default,
265
282
  'org-chart-edge': org_chart_edge_1.default,
266
283
  'org-chart-edge-grant': org_chart_edge_grant_1.default,
@@ -273,7 +290,6 @@ const createCommandMap = () => ({
273
290
  email: email_1.default,
274
291
  'phone-number': phone_number_1.default,
275
292
  'crypto-address': crypto_address_1.default,
276
- 'connected-account': connected_account_1.default,
277
293
  'app-invite': app_invite_1.default,
278
294
  'app-claimed-invite': app_claimed_invite_1.default,
279
295
  'org-invite': org_invite_1.default,
@@ -286,10 +302,12 @@ const createCommandMap = () => ({
286
302
  'migrate-file': migrate_file_1.default,
287
303
  'app-limit-default': app_limit_default_1.default,
288
304
  'org-limit-default': org_limit_default_1.default,
289
- 'membership-type': membership_type_1.default,
305
+ 'devices-module': devices_module_1.default,
306
+ 'user-connected-account': user_connected_account_1.default,
290
307
  'app-membership-default': app_membership_default_1.default,
291
308
  commit: commit_1.default,
292
309
  'rate-limits-module': rate_limits_module_1.default,
310
+ 'membership-type': membership_type_1.default,
293
311
  'org-membership-default': org_membership_default_1.default,
294
312
  'rls-module': rls_module_1.default,
295
313
  'sql-action': sql_action_1.default,
@@ -298,12 +316,14 @@ const createCommandMap = () => ({
298
316
  'app-membership': app_membership_1.default,
299
317
  'hierarchy-module': hierarchy_module_1.default,
300
318
  'current-user-id': current_user_id_1.default,
301
- 'current-ip-address': current_ip_address_1.default,
302
319
  'current-user-agent': current_user_agent_1.default,
320
+ 'current-ip-address': current_ip_address_1.default,
321
+ 'require-step-up': require_step_up_1.default,
303
322
  'app-permissions-get-padded-mask': app_permissions_get_padded_mask_1.default,
304
323
  'org-permissions-get-padded-mask': org_permissions_get_padded_mask_1.default,
305
324
  'steps-achieved': steps_achieved_1.default,
306
325
  'rev-parse': rev_parse_1.default,
326
+ 'resolve-blueprint-field': resolve_blueprint_field_1.default,
307
327
  'org-is-manager-of': org_is_manager_of_1.default,
308
328
  'app-permissions-get-mask': app_permissions_get_mask_1.default,
309
329
  'org-permissions-get-mask': org_permissions_get_mask_1.default,
@@ -322,6 +342,9 @@ const createCommandMap = () => ({
322
342
  'accept-database-transfer': accept_database_transfer_1.default,
323
343
  'cancel-database-transfer': cancel_database_transfer_1.default,
324
344
  'reject-database-transfer': reject_database_transfer_1.default,
345
+ 'disconnect-account': disconnect_account_1.default,
346
+ 'revoke-api-key': revoke_api_key_1.default,
347
+ 'revoke-session': revoke_session_1.default,
325
348
  'verify-password': verify_password_1.default,
326
349
  'verify-totp': verify_totp_1.default,
327
350
  'submit-app-invite-code': submit_app_invite_code_1.default,
@@ -333,9 +356,12 @@ const createCommandMap = () => ({
333
356
  'freeze-objects': freeze_objects_1.default,
334
357
  'init-empty-repo': init_empty_repo_1.default,
335
358
  'construct-blueprint': construct_blueprint_1.default,
359
+ 'provision-new-user': provision_new_user_1.default,
336
360
  'reset-password': reset_password_1.default,
337
361
  'remove-node-at-path': remove_node_at_path_1.default,
338
362
  'copy-template-to-blueprint': copy_template_to_blueprint_1.default,
363
+ 'create-api-key': create_api_key_1.default,
364
+ 'provision-spatial-relation': provision_spatial_relation_1.default,
339
365
  'bootstrap-user': bootstrap_user_1.default,
340
366
  'set-field-order': set_field_order_1.default,
341
367
  'provision-unique-constraint': provision_unique_constraint_1.default,
@@ -349,12 +375,12 @@ const createCommandMap = () => ({
349
375
  'set-and-commit': set_and_commit_1.default,
350
376
  'provision-relation': provision_relation_1.default,
351
377
  'apply-rls': apply_rls_1.default,
352
- 'sign-in-one-time-token': sign_in_one_time_token_1.default,
378
+ 'sign-in-cross-origin': sign_in_cross_origin_1.default,
353
379
  'create-user-database': create_user_database_1.default,
354
380
  'extend-token-expires': extend_token_expires_1.default,
355
- 'sign-in': sign_in_1.default,
356
381
  'sign-up': sign_up_1.default,
357
- 'one-time-token': one_time_token_1.default,
382
+ 'request-cross-origin-token': request_cross_origin_token_1.default,
383
+ 'sign-in': sign_in_1.default,
358
384
  'provision-table': provision_table_1.default,
359
385
  'send-verification-email': send_verification_email_1.default,
360
386
  'forgot-password': forgot_password_1.default,
@@ -362,7 +388,7 @@ const createCommandMap = () => ({
362
388
  'confirm-upload': confirm_upload_1.default,
363
389
  'provision-bucket': provision_bucket_1.default,
364
390
  });
365
- const usage = "\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n org-get-managers-record orgGetManagersRecord CRUD operations\n org-get-subordinates-record orgGetSubordinatesRecord CRUD operations\n get-all-record getAllRecord CRUD operations\n object object CRUD operations\n app-permission appPermission CRUD operations\n org-permission orgPermission CRUD operations\n app-level-requirement appLevelRequirement CRUD operations\n database database CRUD operations\n schema schema CRUD operations\n table table CRUD operations\n check-constraint checkConstraint CRUD operations\n field field CRUD operations\n foreign-key-constraint foreignKeyConstraint CRUD operations\n full-text-search fullTextSearch CRUD operations\n index index CRUD operations\n policy policy CRUD operations\n primary-key-constraint primaryKeyConstraint CRUD operations\n table-grant tableGrant CRUD operations\n trigger trigger CRUD operations\n unique-constraint uniqueConstraint CRUD operations\n view view CRUD operations\n view-table viewTable CRUD operations\n view-grant viewGrant CRUD operations\n view-rule viewRule CRUD operations\n embedding-chunk embeddingChunk CRUD operations\n table-template-module tableTemplateModule CRUD operations\n secure-table-provision secureTableProvision CRUD operations\n relation-provision relationProvision CRUD operations\n schema-grant schemaGrant CRUD operations\n default-privilege defaultPrivilege CRUD operations\n enum enum CRUD operations\n api-schema apiSchema CRUD operations\n api-module apiModule CRUD operations\n domain domain CRUD operations\n site-metadatum siteMetadatum CRUD operations\n site-module siteModule CRUD operations\n site-theme siteTheme CRUD operations\n trigger-function triggerFunction CRUD operations\n database-transfer databaseTransfer CRUD operations\n api api CRUD operations\n site site CRUD operations\n app app CRUD operations\n connected-accounts-module connectedAccountsModule CRUD operations\n crypto-addresses-module cryptoAddressesModule CRUD operations\n crypto-auth-module cryptoAuthModule CRUD operations\n default-ids-module defaultIdsModule CRUD operations\n denormalized-table-field denormalizedTableField CRUD operations\n emails-module emailsModule CRUD operations\n encrypted-secrets-module encryptedSecretsModule CRUD operations\n invites-module invitesModule CRUD operations\n levels-module levelsModule CRUD operations\n limits-module limitsModule CRUD operations\n membership-types-module membershipTypesModule CRUD operations\n memberships-module membershipsModule CRUD operations\n permissions-module permissionsModule CRUD operations\n phone-numbers-module phoneNumbersModule CRUD operations\n profiles-module profilesModule CRUD operations\n secrets-module secretsModule CRUD operations\n sessions-module sessionsModule CRUD operations\n user-auth-module userAuthModule CRUD operations\n users-module usersModule CRUD operations\n blueprint blueprint CRUD operations\n blueprint-template blueprintTemplate CRUD operations\n blueprint-construction blueprintConstruction CRUD operations\n storage-module storageModule CRUD operations\n database-provision-module databaseProvisionModule CRUD operations\n app-admin-grant appAdminGrant CRUD operations\n app-owner-grant appOwnerGrant CRUD operations\n app-grant appGrant CRUD operations\n org-membership orgMembership CRUD operations\n org-member orgMember CRUD operations\n org-admin-grant orgAdminGrant CRUD operations\n org-owner-grant orgOwnerGrant CRUD operations\n org-grant orgGrant CRUD operations\n org-chart-edge orgChartEdge CRUD operations\n org-chart-edge-grant orgChartEdgeGrant CRUD operations\n org-permission-default orgPermissionDefault CRUD operations\n app-limit appLimit CRUD operations\n org-limit orgLimit CRUD operations\n app-step appStep CRUD operations\n app-achievement appAchievement CRUD operations\n app-level appLevel CRUD operations\n email email CRUD operations\n phone-number phoneNumber CRUD operations\n crypto-address cryptoAddress CRUD operations\n connected-account connectedAccount CRUD operations\n app-invite appInvite CRUD operations\n app-claimed-invite appClaimedInvite CRUD operations\n org-invite orgInvite CRUD operations\n org-claimed-invite orgClaimedInvite CRUD operations\n audit-log auditLog CRUD operations\n app-permission-default appPermissionDefault CRUD operations\n ref ref CRUD operations\n store store CRUD operations\n role-type roleType CRUD operations\n migrate-file migrateFile CRUD operations\n app-limit-default appLimitDefault CRUD operations\n org-limit-default orgLimitDefault CRUD operations\n membership-type membershipType CRUD operations\n app-membership-default appMembershipDefault CRUD operations\n commit commit CRUD operations\n rate-limits-module rateLimitsModule CRUD operations\n org-membership-default orgMembershipDefault CRUD operations\n rls-module rlsModule CRUD operations\n sql-action sqlAction CRUD operations\n user user CRUD operations\n ast-migration astMigration CRUD operations\n app-membership appMembership CRUD operations\n hierarchy-module hierarchyModule CRUD operations\n current-user-id currentUserId\n current-ip-address currentIpAddress\n current-user-agent currentUserAgent\n app-permissions-get-padded-mask appPermissionsGetPaddedMask\n org-permissions-get-padded-mask orgPermissionsGetPaddedMask\n steps-achieved stepsAchieved\n rev-parse revParse\n org-is-manager-of orgIsManagerOf\n app-permissions-get-mask appPermissionsGetMask\n org-permissions-get-mask orgPermissionsGetMask\n resolve-blueprint-table Resolves a table_name (with optional schema_name) to a table_id. Resolution order: (1) if schema_name provided, exact lookup via metaschema_public.schema.name + metaschema_public.table; (2) check local table_map (tables created in current blueprint); (3) search metaschema_public.table by name across all schemas; (4) if multiple matches, throw ambiguous error asking for schema_name; (5) if no match, throw not-found error.\n app-permissions-get-mask-by-names appPermissionsGetMaskByNames\n org-permissions-get-mask-by-names orgPermissionsGetMaskByNames\n get-all-objects-from-root Reads and enables pagination through a set of `Object`.\n get-path-objects-from-root Reads and enables pagination through a set of `Object`.\n get-object-at-path getObjectAtPath\n app-permissions-get-by-mask Reads and enables pagination through a set of `AppPermission`.\n org-permissions-get-by-mask Reads and enables pagination through a set of `OrgPermission`.\n steps-required Reads and enables pagination through a set of `AppLevelRequirement`.\n current-user currentUser\n send-account-deletion-email sendAccountDeletionEmail\n sign-out signOut\n accept-database-transfer acceptDatabaseTransfer\n cancel-database-transfer cancelDatabaseTransfer\n reject-database-transfer rejectDatabaseTransfer\n verify-password verifyPassword\n verify-totp verifyTotp\n submit-app-invite-code submitAppInviteCode\n submit-org-invite-code submitOrgInviteCode\n check-password checkPassword\n confirm-delete-account confirmDeleteAccount\n set-password setPassword\n verify-email verifyEmail\n freeze-objects freezeObjects\n init-empty-repo initEmptyRepo\n construct-blueprint Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Five phases: (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints are deferred), (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints. Table-level indexes/fts/unique_constraints are deferred to phases 3-5 so they can reference columns created by relations in phase 2. Tables are identified by table_name with optional per-table schema_name. Relations use $type for relation_type with source_table/target_table. Returns the construction record ID on success, NULL on failure.\n reset-password resetPassword\n remove-node-at-path removeNodeAtPath\n copy-template-to-blueprint Creates a new blueprint by copying a template definition. Checks visibility: owners can always copy their own templates, others require public visibility. Increments the template copy_count. Returns the new blueprint ID.\n bootstrap-user bootstrapUser\n set-field-order setFieldOrder\n provision-unique-constraint Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists.\n provision-full-text-search Creates a full-text search configuration on a table. Accepts a jsonb definition with field (tsvector column name) and sources (array of {field, weight, lang}). Graceful: skips if FTS config already exists for the same (table_id, field_id). Returns the fts_id.\n provision-index Creates an index on a table. Accepts a jsonb definition with columns (array of names or single column string), access_method (default BTREE), is_unique, op_classes, options, and name (auto-generated if omitted). Graceful: skips if an index with the same (table_id, field_ids, access_method) already exists. Returns the index_id.\n set-data-at-path setDataAtPath\n set-props-and-commit setPropsAndCommit\n provision-database-with-user provisionDatabaseWithUser\n insert-node-at-path insertNodeAtPath\n update-node-at-path updateNodeAtPath\n set-and-commit setAndCommit\n provision-relation Composable relation provisioning: creates FK fields, indexes, unique constraints, and junction tables depending on the relation_type. Supports RelationBelongsTo, RelationHasOne, RelationHasMany, and RelationManyToMany. ManyToMany uses provision_table() internally for junction table creation with full node/grant/policy support. All operations are graceful (skip existing). Returns (out_field_id, out_junction_table_id, out_source_field_id, out_target_field_id).\n apply-rls applyRls\n sign-in-one-time-token signInOneTimeToken\n create-user-database Creates a new user database with all required modules, permissions, and RLS policies.\n\nParameters:\n - database_name: Name for the new database (required)\n - owner_id: UUID of the owner user (required)\n - include_invites: Include invite system (default: true)\n - include_groups: Include group-level memberships (default: false)\n - include_levels: Include levels/achievements (default: false)\n - bitlen: Bit length for permission masks (default: 64)\n - tokens_expiration: Token expiration interval (default: 30 days)\n\nReturns the database_id UUID of the newly created database.\n\nExample usage:\n SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid);\n SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid, true, true); -- with invites and groups\n\n extend-token-expires extendTokenExpires\n sign-in signIn\n sign-up signUp\n one-time-token oneTimeToken\n provision-table Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields).\n send-verification-email sendVerificationEmail\n forgot-password forgotPassword\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";
391
+ const usage = "\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n org-get-managers-record orgGetManagersRecord CRUD operations\n org-get-subordinates-record orgGetSubordinatesRecord CRUD operations\n get-all-record getAllRecord CRUD operations\n object object CRUD operations\n app-permission appPermission CRUD operations\n org-permission orgPermission CRUD operations\n app-level-requirement appLevelRequirement CRUD operations\n database database CRUD operations\n schema schema CRUD operations\n table table CRUD operations\n check-constraint checkConstraint CRUD operations\n field field CRUD operations\n spatial-relation spatialRelation CRUD operations\n foreign-key-constraint foreignKeyConstraint CRUD operations\n full-text-search fullTextSearch CRUD operations\n index index CRUD operations\n policy policy CRUD operations\n primary-key-constraint primaryKeyConstraint CRUD operations\n table-grant tableGrant CRUD operations\n trigger trigger CRUD operations\n unique-constraint uniqueConstraint CRUD operations\n view view CRUD operations\n view-table viewTable CRUD operations\n view-grant viewGrant CRUD operations\n view-rule viewRule CRUD operations\n embedding-chunk embeddingChunk CRUD operations\n secure-table-provision secureTableProvision CRUD operations\n relation-provision relationProvision CRUD operations\n session-secrets-module sessionSecretsModule CRUD operations\n schema-grant schemaGrant CRUD operations\n default-privilege defaultPrivilege CRUD operations\n enum enum CRUD operations\n api-schema apiSchema CRUD operations\n api-module apiModule CRUD operations\n domain domain CRUD operations\n site-metadatum siteMetadatum CRUD operations\n site-module siteModule CRUD operations\n site-theme siteTheme CRUD operations\n trigger-function triggerFunction CRUD operations\n database-transfer databaseTransfer CRUD operations\n api api CRUD operations\n site site CRUD operations\n app app CRUD operations\n connected-accounts-module connectedAccountsModule CRUD operations\n crypto-addresses-module cryptoAddressesModule CRUD operations\n crypto-auth-module cryptoAuthModule CRUD operations\n default-ids-module defaultIdsModule CRUD operations\n denormalized-table-field denormalizedTableField CRUD operations\n emails-module emailsModule CRUD operations\n encrypted-secrets-module encryptedSecretsModule CRUD operations\n invites-module invitesModule CRUD operations\n levels-module levelsModule CRUD operations\n limits-module limitsModule CRUD operations\n membership-types-module membershipTypesModule CRUD operations\n memberships-module membershipsModule CRUD operations\n permissions-module permissionsModule CRUD operations\n phone-numbers-module phoneNumbersModule CRUD operations\n profiles-module profilesModule CRUD operations\n secrets-module secretsModule CRUD operations\n sessions-module sessionsModule CRUD operations\n user-auth-module userAuthModule CRUD operations\n users-module usersModule CRUD operations\n blueprint blueprint CRUD operations\n blueprint-template blueprintTemplate CRUD operations\n blueprint-construction blueprintConstruction CRUD operations\n storage-module storageModule CRUD operations\n entity-type-provision entityTypeProvision CRUD operations\n webauthn-credentials-module webauthnCredentialsModule CRUD operations\n database-provision-module databaseProvisionModule CRUD operations\n app-admin-grant appAdminGrant CRUD operations\n app-owner-grant appOwnerGrant CRUD operations\n app-grant appGrant CRUD operations\n org-membership orgMembership CRUD operations\n org-member orgMember CRUD operations\n org-admin-grant orgAdminGrant CRUD operations\n org-owner-grant orgOwnerGrant CRUD operations\n org-member-profile orgMemberProfile CRUD operations\n org-grant orgGrant CRUD operations\n org-chart-edge orgChartEdge CRUD operations\n org-chart-edge-grant orgChartEdgeGrant CRUD operations\n org-permission-default orgPermissionDefault CRUD operations\n app-limit appLimit CRUD operations\n org-limit orgLimit CRUD operations\n app-step appStep CRUD operations\n app-achievement appAchievement CRUD operations\n app-level appLevel CRUD operations\n email email CRUD operations\n phone-number phoneNumber CRUD operations\n crypto-address cryptoAddress CRUD operations\n app-invite appInvite CRUD operations\n app-claimed-invite appClaimedInvite CRUD operations\n org-invite orgInvite CRUD operations\n org-claimed-invite orgClaimedInvite CRUD operations\n audit-log auditLog CRUD operations\n app-permission-default appPermissionDefault CRUD operations\n ref ref CRUD operations\n store store CRUD operations\n role-type roleType CRUD operations\n migrate-file migrateFile CRUD operations\n app-limit-default appLimitDefault CRUD operations\n org-limit-default orgLimitDefault CRUD operations\n devices-module devicesModule CRUD operations\n user-connected-account userConnectedAccount CRUD operations\n app-membership-default appMembershipDefault CRUD operations\n commit commit CRUD operations\n rate-limits-module rateLimitsModule CRUD operations\n membership-type membershipType CRUD operations\n org-membership-default orgMembershipDefault CRUD operations\n rls-module rlsModule CRUD operations\n sql-action sqlAction CRUD operations\n user user CRUD operations\n ast-migration astMigration CRUD operations\n app-membership appMembership CRUD operations\n hierarchy-module hierarchyModule CRUD operations\n current-user-id currentUserId\n current-user-agent currentUserAgent\n current-ip-address currentIpAddress\n require-step-up requireStepUp\n app-permissions-get-padded-mask appPermissionsGetPaddedMask\n org-permissions-get-padded-mask orgPermissionsGetPaddedMask\n steps-achieved stepsAchieved\n rev-parse revParse\n resolve-blueprint-field Resolves a field_name within a given table_id to a field_id. Throws if no match is found. Used by construct_blueprint to translate user-authored field names (e.g. \"location\") into field UUIDs for downstream provisioning procedures. table_id must already be resolved (via resolve_blueprint_table) before calling this.\n org-is-manager-of orgIsManagerOf\n app-permissions-get-mask appPermissionsGetMask\n org-permissions-get-mask orgPermissionsGetMask\n resolve-blueprint-table Resolves a table_name (with optional schema_name) to a table_id. Resolution order: (1) if schema_name provided, exact lookup via metaschema_public.schema.name + metaschema_public.table; (2) check local table_map (tables created in current blueprint); (3) search metaschema_public.table by name across all schemas; (4) if multiple matches, throw ambiguous error asking for schema_name; (5) if no match, throw not-found error.\n app-permissions-get-mask-by-names appPermissionsGetMaskByNames\n org-permissions-get-mask-by-names orgPermissionsGetMaskByNames\n get-all-objects-from-root Reads and enables pagination through a set of `Object`.\n get-path-objects-from-root Reads and enables pagination through a set of `Object`.\n get-object-at-path getObjectAtPath\n app-permissions-get-by-mask Reads and enables pagination through a set of `AppPermission`.\n org-permissions-get-by-mask Reads and enables pagination through a set of `OrgPermission`.\n steps-required Reads and enables pagination through a set of `AppLevelRequirement`.\n current-user currentUser\n send-account-deletion-email sendAccountDeletionEmail\n sign-out signOut\n accept-database-transfer acceptDatabaseTransfer\n cancel-database-transfer cancelDatabaseTransfer\n reject-database-transfer rejectDatabaseTransfer\n disconnect-account disconnectAccount\n revoke-api-key revokeApiKey\n revoke-session revokeSession\n verify-password verifyPassword\n verify-totp verifyTotp\n submit-app-invite-code submitAppInviteCode\n submit-org-invite-code submitOrgInviteCode\n check-password checkPassword\n confirm-delete-account confirmDeleteAccount\n set-password setPassword\n verify-email verifyEmail\n freeze-objects freezeObjects\n init-empty-repo initEmptyRepo\n construct-blueprint Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Six phases: (0) entity_type_provision for each membership_type entry \u2014 provisions entity tables, membership modules, and security, (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints are deferred), (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level indexes/fts/unique_constraints are deferred to phases 3-5 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure.\n provision-new-user provisionNewUser\n reset-password resetPassword\n remove-node-at-path removeNodeAtPath\n copy-template-to-blueprint Creates a new blueprint by copying a template definition. Checks visibility: owners can always copy their own templates, others require public visibility. Increments the template copy_count. Returns the new blueprint ID.\n create-api-key createApiKey\n provision-spatial-relation Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row declaring a spatial predicate between two geometry/geography columns (owner and target). Called from construct_blueprint when a relation entry has $type=RelationSpatial. Graceful: re-running with the same (source_table_id, name) returns the existing id without modifying the row. Operator whitelist and st_dwithin \u2194 param_name pairing are enforced by the spatial_relation table CHECKs. Both fields must already exist \u2014 this is a metadata-only insert.\n bootstrap-user bootstrapUser\n set-field-order setFieldOrder\n provision-unique-constraint Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists.\n provision-full-text-search Creates a full-text search configuration on a table. Accepts a jsonb definition with field (tsvector column name) and sources (array of {field, weight, lang}). Graceful: skips if FTS config already exists for the same (table_id, field_id). Returns the fts_id.\n provision-index Creates an index on a table. Accepts a jsonb definition with columns (array of names or single column string), access_method (default BTREE), is_unique, op_classes, options, and name (auto-generated if omitted). Graceful: skips if an index with the same (table_id, field_ids, access_method) already exists. Returns the index_id.\n set-data-at-path setDataAtPath\n set-props-and-commit setPropsAndCommit\n provision-database-with-user provisionDatabaseWithUser\n insert-node-at-path insertNodeAtPath\n update-node-at-path updateNodeAtPath\n set-and-commit setAndCommit\n provision-relation Composable relation provisioning: creates FK fields, indexes, unique constraints, and junction tables depending on the relation_type. Supports RelationBelongsTo, RelationHasOne, RelationHasMany, and RelationManyToMany. ManyToMany uses provision_table() internally for junction table creation with full node/grant/policy support. All operations are graceful (skip existing). Returns (out_field_id, out_junction_table_id, out_source_field_id, out_target_field_id).\n apply-rls applyRls\n sign-in-cross-origin signInCrossOrigin\n create-user-database Creates a new user database with all required modules, permissions, and RLS policies.\n\nParameters:\n - database_name: Name for the new database (required)\n - owner_id: UUID of the owner user (required)\n - include_invites: Include invite system (default: true)\n - include_groups: Include group-level memberships (default: false)\n - include_levels: Include levels/achievements (default: false)\n - bitlen: Bit length for permission masks (default: 64)\n - tokens_expiration: Token expiration interval (default: 30 days)\n\nReturns the database_id UUID of the newly created database.\n\nExample usage:\n SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid);\n SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid, true, true); -- with invites and groups\n\n extend-token-expires extendTokenExpires\n sign-up signUp\n request-cross-origin-token requestCrossOriginToken\n sign-in signIn\n provision-table Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields).\n send-verification-email sendVerificationEmail\n forgot-password forgotPassword\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";
366
392
  const commands = async (argv, prompter, options) => {
367
393
  if (argv.help || argv.h) {
368
394
  console.log(usage);