@constructive-sdk/cli 0.25.8 → 0.25.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (229) hide show
  1. package/admin/cli/commands/app-admin-grant.js +3 -1
  2. package/admin/cli/commands/app-grant.js +3 -1
  3. package/admin/cli/commands/app-invite.js +44 -0
  4. package/admin/cli/commands/app-owner-grant.js +3 -1
  5. package/admin/cli/commands/app-permission-default-grant.d.ts +8 -0
  6. package/admin/cli/commands/app-permission-default-grant.js +286 -0
  7. package/admin/cli/commands/app-permission-default-permission.d.ts +8 -0
  8. package/admin/cli/commands/app-permission-default-permission.js +242 -0
  9. package/admin/cli/commands/org-admin-grant.js +3 -1
  10. package/admin/cli/commands/org-grant.js +3 -1
  11. package/admin/cli/commands/org-invite.js +44 -0
  12. package/admin/cli/commands/org-owner-grant.js +3 -1
  13. package/admin/cli/commands/org-permission-default-grant.d.ts +8 -0
  14. package/admin/cli/commands/org-permission-default-grant.js +306 -0
  15. package/admin/cli/commands/org-permission-default-permission.d.ts +8 -0
  16. package/admin/cli/commands/org-permission-default-permission.js +262 -0
  17. package/admin/cli/commands.js +11 -3
  18. package/admin/cli/executor.d.ts +5 -1
  19. package/admin/orm/index.d.ts +10 -2
  20. package/admin/orm/index.js +10 -2
  21. package/admin/orm/input-types.d.ts +1611 -230
  22. package/admin/orm/input-types.js +9 -1
  23. package/admin/orm/models/appPermissionDefaultGrant.d.ts +54 -0
  24. package/admin/orm/models/appPermissionDefaultGrant.js +104 -0
  25. package/admin/orm/models/appPermissionDefaultPermission.d.ts +54 -0
  26. package/admin/orm/models/appPermissionDefaultPermission.js +104 -0
  27. package/admin/orm/models/index.d.ts +5 -1
  28. package/admin/orm/models/index.js +11 -3
  29. package/admin/orm/models/orgPermissionDefaultGrant.d.ts +54 -0
  30. package/admin/orm/models/orgPermissionDefaultGrant.js +104 -0
  31. package/admin/orm/models/orgPermissionDefaultPermission.d.ts +54 -0
  32. package/admin/orm/models/orgPermissionDefaultPermission.js +104 -0
  33. package/agent/cli/commands/agent-message.js +34 -12
  34. package/agent/cli/commands/agent-task.js +12 -12
  35. package/agent/cli/embedder.d.ts +5 -0
  36. package/agent/cli/embedder.js +46 -9
  37. package/agent/orm/input-types.d.ts +289 -47
  38. package/agent/orm/input-types.js +1 -0
  39. package/api/cli/commands/check-constraint.js +0 -22
  40. package/api/cli/commands/composite-type.d.ts +8 -0
  41. package/api/cli/commands/composite-type.js +424 -0
  42. package/api/cli/commands/enum.js +0 -22
  43. package/api/cli/commands/field.js +0 -22
  44. package/api/cli/commands/foreign-key-constraint.js +0 -22
  45. package/api/cli/commands/index.js +0 -22
  46. package/api/cli/commands/policy.js +0 -22
  47. package/api/cli/commands/primary-key-constraint.js +0 -22
  48. package/api/cli/commands/schema.js +0 -22
  49. package/api/cli/commands/spatial-relation.js +0 -22
  50. package/api/cli/commands/table.js +6 -28
  51. package/api/cli/commands/trigger.js +0 -22
  52. package/api/cli/commands/unique-constraint.js +0 -22
  53. package/api/cli/commands/view-table.js +22 -0
  54. package/api/cli/commands/view.js +0 -22
  55. package/api/cli/commands.js +3 -1
  56. package/api/cli/executor.d.ts +1 -0
  57. package/api/orm/index.d.ts +2 -0
  58. package/api/orm/index.js +2 -0
  59. package/api/orm/input-types.d.ts +1064 -125
  60. package/api/orm/input-types.js +3 -0
  61. package/api/orm/models/compositeType.d.ts +54 -0
  62. package/api/orm/models/compositeType.js +104 -0
  63. package/api/orm/models/index.d.ts +1 -0
  64. package/api/orm/models/index.js +3 -1
  65. package/auth/cli/commands/link-identity.d.ts +8 -0
  66. package/auth/cli/commands/link-identity.js +36 -0
  67. package/auth/cli/commands/sign-in-sms-otp.d.ts +8 -0
  68. package/auth/cli/commands/sign-in-sms-otp.js +36 -0
  69. package/auth/cli/commands/sign-up-sms.d.ts +8 -0
  70. package/auth/cli/commands/sign-up-sms.js +36 -0
  71. package/auth/cli/commands.js +7 -1
  72. package/auth/cli/executor.d.ts +15 -0
  73. package/auth/orm/index.d.ts +15 -0
  74. package/auth/orm/input-types.d.ts +197 -1
  75. package/auth/orm/mutation/index.d.ts +25 -1
  76. package/auth/orm/mutation/index.js +36 -0
  77. package/esm/admin/cli/commands/app-admin-grant.js +3 -1
  78. package/esm/admin/cli/commands/app-grant.js +3 -1
  79. package/esm/admin/cli/commands/app-invite.js +44 -0
  80. package/esm/admin/cli/commands/app-owner-grant.js +3 -1
  81. package/esm/admin/cli/commands/app-permission-default-grant.d.ts +8 -0
  82. package/esm/admin/cli/commands/app-permission-default-grant.js +284 -0
  83. package/esm/admin/cli/commands/app-permission-default-permission.d.ts +8 -0
  84. package/esm/admin/cli/commands/app-permission-default-permission.js +240 -0
  85. package/esm/admin/cli/commands/org-admin-grant.js +3 -1
  86. package/esm/admin/cli/commands/org-grant.js +3 -1
  87. package/esm/admin/cli/commands/org-invite.js +44 -0
  88. package/esm/admin/cli/commands/org-owner-grant.js +3 -1
  89. package/esm/admin/cli/commands/org-permission-default-grant.d.ts +8 -0
  90. package/esm/admin/cli/commands/org-permission-default-grant.js +304 -0
  91. package/esm/admin/cli/commands/org-permission-default-permission.d.ts +8 -0
  92. package/esm/admin/cli/commands/org-permission-default-permission.js +260 -0
  93. package/esm/admin/cli/commands.js +11 -3
  94. package/esm/admin/cli/executor.d.ts +5 -1
  95. package/esm/admin/orm/index.d.ts +10 -2
  96. package/esm/admin/orm/index.js +10 -2
  97. package/esm/admin/orm/input-types.d.ts +1611 -230
  98. package/esm/admin/orm/input-types.js +9 -1
  99. package/esm/admin/orm/models/appPermissionDefaultGrant.d.ts +54 -0
  100. package/esm/admin/orm/models/appPermissionDefaultGrant.js +100 -0
  101. package/esm/admin/orm/models/appPermissionDefaultPermission.d.ts +54 -0
  102. package/esm/admin/orm/models/appPermissionDefaultPermission.js +100 -0
  103. package/esm/admin/orm/models/index.d.ts +5 -1
  104. package/esm/admin/orm/models/index.js +5 -1
  105. package/esm/admin/orm/models/orgPermissionDefaultGrant.d.ts +54 -0
  106. package/esm/admin/orm/models/orgPermissionDefaultGrant.js +100 -0
  107. package/esm/admin/orm/models/orgPermissionDefaultPermission.d.ts +54 -0
  108. package/esm/admin/orm/models/orgPermissionDefaultPermission.js +100 -0
  109. package/esm/agent/cli/commands/agent-message.js +34 -12
  110. package/esm/agent/cli/commands/agent-task.js +12 -12
  111. package/esm/agent/cli/embedder.d.ts +5 -0
  112. package/esm/agent/cli/embedder.js +10 -2
  113. package/esm/agent/orm/input-types.d.ts +289 -47
  114. package/esm/agent/orm/input-types.js +1 -0
  115. package/esm/api/cli/commands/check-constraint.js +0 -22
  116. package/esm/api/cli/commands/composite-type.d.ts +8 -0
  117. package/esm/api/cli/commands/composite-type.js +422 -0
  118. package/esm/api/cli/commands/enum.js +0 -22
  119. package/esm/api/cli/commands/field.js +0 -22
  120. package/esm/api/cli/commands/foreign-key-constraint.js +0 -22
  121. package/esm/api/cli/commands/index.js +0 -22
  122. package/esm/api/cli/commands/policy.js +0 -22
  123. package/esm/api/cli/commands/primary-key-constraint.js +0 -22
  124. package/esm/api/cli/commands/schema.js +0 -22
  125. package/esm/api/cli/commands/spatial-relation.js +0 -22
  126. package/esm/api/cli/commands/table.js +6 -28
  127. package/esm/api/cli/commands/trigger.js +0 -22
  128. package/esm/api/cli/commands/unique-constraint.js +0 -22
  129. package/esm/api/cli/commands/view-table.js +22 -0
  130. package/esm/api/cli/commands/view.js +0 -22
  131. package/esm/api/cli/commands.js +3 -1
  132. package/esm/api/cli/executor.d.ts +1 -0
  133. package/esm/api/orm/index.d.ts +2 -0
  134. package/esm/api/orm/index.js +2 -0
  135. package/esm/api/orm/input-types.d.ts +1064 -125
  136. package/esm/api/orm/input-types.js +3 -0
  137. package/esm/api/orm/models/compositeType.d.ts +54 -0
  138. package/esm/api/orm/models/compositeType.js +100 -0
  139. package/esm/api/orm/models/index.d.ts +1 -0
  140. package/esm/api/orm/models/index.js +1 -0
  141. package/esm/auth/cli/commands/link-identity.d.ts +8 -0
  142. package/esm/auth/cli/commands/link-identity.js +34 -0
  143. package/esm/auth/cli/commands/sign-in-sms-otp.d.ts +8 -0
  144. package/esm/auth/cli/commands/sign-in-sms-otp.js +34 -0
  145. package/esm/auth/cli/commands/sign-up-sms.d.ts +8 -0
  146. package/esm/auth/cli/commands/sign-up-sms.js +34 -0
  147. package/esm/auth/cli/commands.js +7 -1
  148. package/esm/auth/cli/executor.d.ts +15 -0
  149. package/esm/auth/orm/index.d.ts +15 -0
  150. package/esm/auth/orm/input-types.d.ts +197 -1
  151. package/esm/auth/orm/mutation/index.d.ts +25 -1
  152. package/esm/auth/orm/mutation/index.js +36 -0
  153. package/esm/modules/cli/commands/agent-module.js +88 -0
  154. package/esm/modules/cli/commands/billing-module.js +66 -0
  155. package/esm/modules/cli/commands/compute-log-module.js +44 -0
  156. package/esm/modules/cli/commands/config-secrets-module.js +44 -0
  157. package/esm/modules/cli/commands/db-usage-module.js +66 -0
  158. package/esm/modules/cli/commands/entity-type-provision.js +0 -44
  159. package/esm/modules/cli/commands/events-module.js +66 -0
  160. package/esm/modules/cli/commands/function-invocation-module.d.ts +8 -0
  161. package/esm/modules/cli/commands/function-invocation-module.js +580 -0
  162. package/esm/modules/cli/commands/function-module.js +22 -198
  163. package/esm/modules/cli/commands/graph-module.js +22 -0
  164. package/esm/modules/cli/commands/hierarchy-module.js +22 -0
  165. package/esm/modules/cli/commands/identity-providers-module.js +44 -0
  166. package/esm/modules/cli/commands/inference-log-module.js +44 -0
  167. package/esm/modules/cli/commands/invites-module.js +44 -0
  168. package/esm/modules/cli/commands/limits-module.js +44 -0
  169. package/esm/modules/cli/commands/memberships-module.js +88 -0
  170. package/esm/modules/cli/commands/merkle-store-module.js +22 -0
  171. package/esm/modules/cli/commands/namespace-module.js +22 -0
  172. package/esm/modules/cli/commands/notifications-module.js +88 -0
  173. package/esm/modules/cli/commands/permissions-module.js +44 -0
  174. package/esm/modules/cli/commands/plans-module.js +44 -0
  175. package/esm/modules/cli/commands/profiles-module.js +44 -0
  176. package/esm/modules/cli/commands/rate-limit-meters-module.js +66 -0
  177. package/esm/modules/cli/commands/storage-log-module.js +44 -0
  178. package/esm/modules/cli/commands/storage-module.js +66 -0
  179. package/esm/modules/cli/commands/transfer-log-module.js +44 -0
  180. package/esm/modules/cli/commands.js +29 -27
  181. package/esm/modules/cli/executor.d.ts +14 -13
  182. package/esm/modules/orm/index.d.ts +28 -26
  183. package/esm/modules/orm/index.js +28 -26
  184. package/esm/modules/orm/input-types.d.ts +4485 -2514
  185. package/esm/modules/orm/models/functionInvocationModule.d.ts +54 -0
  186. package/esm/modules/orm/models/functionInvocationModule.js +100 -0
  187. package/esm/modules/orm/models/index.d.ts +14 -13
  188. package/esm/modules/orm/models/index.js +14 -13
  189. package/esm/objects/orm/input-types.d.ts +62 -0
  190. package/esm/usage/orm/input-types.d.ts +314 -19
  191. package/modules/cli/commands/agent-module.js +88 -0
  192. package/modules/cli/commands/billing-module.js +66 -0
  193. package/modules/cli/commands/compute-log-module.js +44 -0
  194. package/modules/cli/commands/config-secrets-module.js +44 -0
  195. package/modules/cli/commands/db-usage-module.js +66 -0
  196. package/modules/cli/commands/entity-type-provision.js +0 -44
  197. package/modules/cli/commands/events-module.js +66 -0
  198. package/modules/cli/commands/function-invocation-module.d.ts +8 -0
  199. package/modules/cli/commands/function-invocation-module.js +582 -0
  200. package/modules/cli/commands/function-module.js +22 -198
  201. package/modules/cli/commands/graph-module.js +22 -0
  202. package/modules/cli/commands/hierarchy-module.js +22 -0
  203. package/modules/cli/commands/identity-providers-module.js +44 -0
  204. package/modules/cli/commands/inference-log-module.js +44 -0
  205. package/modules/cli/commands/invites-module.js +44 -0
  206. package/modules/cli/commands/limits-module.js +44 -0
  207. package/modules/cli/commands/memberships-module.js +88 -0
  208. package/modules/cli/commands/merkle-store-module.js +22 -0
  209. package/modules/cli/commands/namespace-module.js +22 -0
  210. package/modules/cli/commands/notifications-module.js +88 -0
  211. package/modules/cli/commands/permissions-module.js +44 -0
  212. package/modules/cli/commands/plans-module.js +44 -0
  213. package/modules/cli/commands/profiles-module.js +44 -0
  214. package/modules/cli/commands/rate-limit-meters-module.js +66 -0
  215. package/modules/cli/commands/storage-log-module.js +44 -0
  216. package/modules/cli/commands/storage-module.js +66 -0
  217. package/modules/cli/commands/transfer-log-module.js +44 -0
  218. package/modules/cli/commands.js +29 -27
  219. package/modules/cli/executor.d.ts +14 -13
  220. package/modules/orm/index.d.ts +28 -26
  221. package/modules/orm/index.js +28 -26
  222. package/modules/orm/input-types.d.ts +4485 -2514
  223. package/modules/orm/models/functionInvocationModule.d.ts +54 -0
  224. package/modules/orm/models/functionInvocationModule.js +104 -0
  225. package/modules/orm/models/index.d.ts +14 -13
  226. package/modules/orm/models/index.js +30 -28
  227. package/objects/orm/input-types.d.ts +62 -0
  228. package/package.json +4 -4
  229. package/usage/orm/input-types.d.ts +314 -19
@@ -14,18 +14,9 @@ const fieldSchema = {
14
14
  publicSchemaName: 'string',
15
15
  privateSchemaName: 'string',
16
16
  definitionsTableId: 'uuid',
17
- invocationsTableId: 'uuid',
18
- executionLogsTableId: 'uuid',
19
17
  secretDefinitionsTableId: 'uuid',
20
- requirementsTableId: 'uuid',
21
- configDefinitionsTableId: 'uuid',
22
- configRequirementsTableId: 'uuid',
23
18
  definitionsTableName: 'string',
24
- invocationsTableName: 'string',
25
- executionLogsTableName: 'string',
26
19
  secretDefinitionsTableName: 'string',
27
- requirementsTableName: 'string',
28
- configRequirementsTableName: 'string',
29
20
  apiName: 'string',
30
21
  privateApiName: 'string',
31
22
  scope: 'string',
@@ -33,6 +24,7 @@ const fieldSchema = {
33
24
  entityTableId: 'uuid',
34
25
  policies: 'json',
35
26
  provisions: 'json',
27
+ defaultPermissions: 'string',
36
28
  };
37
29
  const usage = '\nfunction-module <command>\n\nCommands:\n list List functionModule records\n find-first Find first matching functionModule record\n get Get a functionModule by ID\n create Create a new functionModule\n update Update an existing functionModule\n delete Delete a functionModule\n\nList Options:\n --limit <n> Max number of records to return (forward pagination)\n --last <n> Number of records from the end (backward pagination)\n --after <cursor> Cursor for forward pagination\n --before <cursor> Cursor for backward pagination\n --offset <n> Number of records to skip\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n';
38
30
  export default async (argv, prompter, _options) => {
@@ -83,18 +75,9 @@ async function handleList(argv, _prompter) {
83
75
  publicSchemaName: true,
84
76
  privateSchemaName: true,
85
77
  definitionsTableId: true,
86
- invocationsTableId: true,
87
- executionLogsTableId: true,
88
78
  secretDefinitionsTableId: true,
89
- requirementsTableId: true,
90
- configDefinitionsTableId: true,
91
- configRequirementsTableId: true,
92
79
  definitionsTableName: true,
93
- invocationsTableName: true,
94
- executionLogsTableName: true,
95
80
  secretDefinitionsTableName: true,
96
- requirementsTableName: true,
97
- configRequirementsTableName: true,
98
81
  apiName: true,
99
82
  privateApiName: true,
100
83
  scope: true,
@@ -102,6 +85,7 @@ async function handleList(argv, _prompter) {
102
85
  entityTableId: true,
103
86
  policies: true,
104
87
  provisions: true,
88
+ defaultPermissions: true,
105
89
  };
106
90
  const findManyArgs = parseFindManyArgs(argv, defaultSelect);
107
91
  const client = getClient();
@@ -126,18 +110,9 @@ async function handleFindFirst(argv, _prompter) {
126
110
  publicSchemaName: true,
127
111
  privateSchemaName: true,
128
112
  definitionsTableId: true,
129
- invocationsTableId: true,
130
- executionLogsTableId: true,
131
113
  secretDefinitionsTableId: true,
132
- requirementsTableId: true,
133
- configDefinitionsTableId: true,
134
- configRequirementsTableId: true,
135
114
  definitionsTableName: true,
136
- invocationsTableName: true,
137
- executionLogsTableName: true,
138
115
  secretDefinitionsTableName: true,
139
- requirementsTableName: true,
140
- configRequirementsTableName: true,
141
116
  apiName: true,
142
117
  privateApiName: true,
143
118
  scope: true,
@@ -145,6 +120,7 @@ async function handleFindFirst(argv, _prompter) {
145
120
  entityTableId: true,
146
121
  policies: true,
147
122
  provisions: true,
123
+ defaultPermissions: true,
148
124
  };
149
125
  const findFirstArgs = parseFindFirstArgs(argv, defaultSelect);
150
126
  const client = getClient();
@@ -181,18 +157,9 @@ async function handleGet(argv, prompter) {
181
157
  publicSchemaName: true,
182
158
  privateSchemaName: true,
183
159
  definitionsTableId: true,
184
- invocationsTableId: true,
185
- executionLogsTableId: true,
186
160
  secretDefinitionsTableId: true,
187
- requirementsTableId: true,
188
- configDefinitionsTableId: true,
189
- configRequirementsTableId: true,
190
161
  definitionsTableName: true,
191
- invocationsTableName: true,
192
- executionLogsTableName: true,
193
162
  secretDefinitionsTableName: true,
194
- requirementsTableName: true,
195
- configRequirementsTableName: true,
196
163
  apiName: true,
197
164
  privateApiName: true,
198
165
  scope: true,
@@ -200,6 +167,7 @@ async function handleGet(argv, prompter) {
200
167
  entityTableId: true,
201
168
  policies: true,
202
169
  provisions: true,
170
+ defaultPermissions: true,
203
171
  },
204
172
  })
205
173
  .execute();
@@ -257,20 +225,6 @@ async function handleCreate(argv, prompter) {
257
225
  required: false,
258
226
  skipPrompt: true,
259
227
  },
260
- {
261
- type: 'text',
262
- name: 'invocationsTableId',
263
- message: 'invocationsTableId',
264
- required: false,
265
- skipPrompt: true,
266
- },
267
- {
268
- type: 'text',
269
- name: 'executionLogsTableId',
270
- message: 'executionLogsTableId',
271
- required: false,
272
- skipPrompt: true,
273
- },
274
228
  {
275
229
  type: 'text',
276
230
  name: 'secretDefinitionsTableId',
@@ -278,27 +232,6 @@ async function handleCreate(argv, prompter) {
278
232
  required: false,
279
233
  skipPrompt: true,
280
234
  },
281
- {
282
- type: 'text',
283
- name: 'requirementsTableId',
284
- message: 'requirementsTableId',
285
- required: false,
286
- skipPrompt: true,
287
- },
288
- {
289
- type: 'text',
290
- name: 'configDefinitionsTableId',
291
- message: 'configDefinitionsTableId',
292
- required: false,
293
- skipPrompt: true,
294
- },
295
- {
296
- type: 'text',
297
- name: 'configRequirementsTableId',
298
- message: 'configRequirementsTableId',
299
- required: false,
300
- skipPrompt: true,
301
- },
302
235
  {
303
236
  type: 'text',
304
237
  name: 'definitionsTableName',
@@ -306,20 +239,6 @@ async function handleCreate(argv, prompter) {
306
239
  required: false,
307
240
  skipPrompt: true,
308
241
  },
309
- {
310
- type: 'text',
311
- name: 'invocationsTableName',
312
- message: 'invocationsTableName',
313
- required: false,
314
- skipPrompt: true,
315
- },
316
- {
317
- type: 'text',
318
- name: 'executionLogsTableName',
319
- message: 'executionLogsTableName',
320
- required: false,
321
- skipPrompt: true,
322
- },
323
242
  {
324
243
  type: 'text',
325
244
  name: 'secretDefinitionsTableName',
@@ -327,20 +246,6 @@ async function handleCreate(argv, prompter) {
327
246
  required: false,
328
247
  skipPrompt: true,
329
248
  },
330
- {
331
- type: 'text',
332
- name: 'requirementsTableName',
333
- message: 'requirementsTableName',
334
- required: false,
335
- skipPrompt: true,
336
- },
337
- {
338
- type: 'text',
339
- name: 'configRequirementsTableName',
340
- message: 'configRequirementsTableName',
341
- required: false,
342
- skipPrompt: true,
343
- },
344
249
  {
345
250
  type: 'text',
346
251
  name: 'apiName',
@@ -390,6 +295,13 @@ async function handleCreate(argv, prompter) {
390
295
  required: false,
391
296
  skipPrompt: true,
392
297
  },
298
+ {
299
+ type: 'text',
300
+ name: 'defaultPermissions',
301
+ message: 'defaultPermissions',
302
+ required: false,
303
+ skipPrompt: true,
304
+ },
393
305
  ]);
394
306
  const answers = coerceAnswers(rawAnswers, fieldSchema);
395
307
  const cleanedData = stripUndefined(answers, fieldSchema);
@@ -403,18 +315,9 @@ async function handleCreate(argv, prompter) {
403
315
  publicSchemaName: cleanedData.publicSchemaName,
404
316
  privateSchemaName: cleanedData.privateSchemaName,
405
317
  definitionsTableId: cleanedData.definitionsTableId,
406
- invocationsTableId: cleanedData.invocationsTableId,
407
- executionLogsTableId: cleanedData.executionLogsTableId,
408
318
  secretDefinitionsTableId: cleanedData.secretDefinitionsTableId,
409
- requirementsTableId: cleanedData.requirementsTableId,
410
- configDefinitionsTableId: cleanedData.configDefinitionsTableId,
411
- configRequirementsTableId: cleanedData.configRequirementsTableId,
412
319
  definitionsTableName: cleanedData.definitionsTableName,
413
- invocationsTableName: cleanedData.invocationsTableName,
414
- executionLogsTableName: cleanedData.executionLogsTableName,
415
320
  secretDefinitionsTableName: cleanedData.secretDefinitionsTableName,
416
- requirementsTableName: cleanedData.requirementsTableName,
417
- configRequirementsTableName: cleanedData.configRequirementsTableName,
418
321
  apiName: cleanedData.apiName,
419
322
  privateApiName: cleanedData.privateApiName,
420
323
  scope: cleanedData.scope,
@@ -422,6 +325,7 @@ async function handleCreate(argv, prompter) {
422
325
  entityTableId: cleanedData.entityTableId,
423
326
  policies: cleanedData.policies,
424
327
  provisions: cleanedData.provisions,
328
+ defaultPermissions: cleanedData.defaultPermissions,
425
329
  },
426
330
  select: {
427
331
  id: true,
@@ -431,18 +335,9 @@ async function handleCreate(argv, prompter) {
431
335
  publicSchemaName: true,
432
336
  privateSchemaName: true,
433
337
  definitionsTableId: true,
434
- invocationsTableId: true,
435
- executionLogsTableId: true,
436
338
  secretDefinitionsTableId: true,
437
- requirementsTableId: true,
438
- configDefinitionsTableId: true,
439
- configRequirementsTableId: true,
440
339
  definitionsTableName: true,
441
- invocationsTableName: true,
442
- executionLogsTableName: true,
443
340
  secretDefinitionsTableName: true,
444
- requirementsTableName: true,
445
- configRequirementsTableName: true,
446
341
  apiName: true,
447
342
  privateApiName: true,
448
343
  scope: true,
@@ -450,6 +345,7 @@ async function handleCreate(argv, prompter) {
450
345
  entityTableId: true,
451
346
  policies: true,
452
347
  provisions: true,
348
+ defaultPermissions: true,
453
349
  },
454
350
  })
455
351
  .execute();
@@ -513,20 +409,6 @@ async function handleUpdate(argv, prompter) {
513
409
  required: false,
514
410
  skipPrompt: true,
515
411
  },
516
- {
517
- type: 'text',
518
- name: 'invocationsTableId',
519
- message: 'invocationsTableId',
520
- required: false,
521
- skipPrompt: true,
522
- },
523
- {
524
- type: 'text',
525
- name: 'executionLogsTableId',
526
- message: 'executionLogsTableId',
527
- required: false,
528
- skipPrompt: true,
529
- },
530
412
  {
531
413
  type: 'text',
532
414
  name: 'secretDefinitionsTableId',
@@ -534,27 +416,6 @@ async function handleUpdate(argv, prompter) {
534
416
  required: false,
535
417
  skipPrompt: true,
536
418
  },
537
- {
538
- type: 'text',
539
- name: 'requirementsTableId',
540
- message: 'requirementsTableId',
541
- required: false,
542
- skipPrompt: true,
543
- },
544
- {
545
- type: 'text',
546
- name: 'configDefinitionsTableId',
547
- message: 'configDefinitionsTableId',
548
- required: false,
549
- skipPrompt: true,
550
- },
551
- {
552
- type: 'text',
553
- name: 'configRequirementsTableId',
554
- message: 'configRequirementsTableId',
555
- required: false,
556
- skipPrompt: true,
557
- },
558
419
  {
559
420
  type: 'text',
560
421
  name: 'definitionsTableName',
@@ -562,20 +423,6 @@ async function handleUpdate(argv, prompter) {
562
423
  required: false,
563
424
  skipPrompt: true,
564
425
  },
565
- {
566
- type: 'text',
567
- name: 'invocationsTableName',
568
- message: 'invocationsTableName',
569
- required: false,
570
- skipPrompt: true,
571
- },
572
- {
573
- type: 'text',
574
- name: 'executionLogsTableName',
575
- message: 'executionLogsTableName',
576
- required: false,
577
- skipPrompt: true,
578
- },
579
426
  {
580
427
  type: 'text',
581
428
  name: 'secretDefinitionsTableName',
@@ -583,20 +430,6 @@ async function handleUpdate(argv, prompter) {
583
430
  required: false,
584
431
  skipPrompt: true,
585
432
  },
586
- {
587
- type: 'text',
588
- name: 'requirementsTableName',
589
- message: 'requirementsTableName',
590
- required: false,
591
- skipPrompt: true,
592
- },
593
- {
594
- type: 'text',
595
- name: 'configRequirementsTableName',
596
- message: 'configRequirementsTableName',
597
- required: false,
598
- skipPrompt: true,
599
- },
600
433
  {
601
434
  type: 'text',
602
435
  name: 'apiName',
@@ -646,6 +479,13 @@ async function handleUpdate(argv, prompter) {
646
479
  required: false,
647
480
  skipPrompt: true,
648
481
  },
482
+ {
483
+ type: 'text',
484
+ name: 'defaultPermissions',
485
+ message: 'defaultPermissions',
486
+ required: false,
487
+ skipPrompt: true,
488
+ },
649
489
  ]);
650
490
  const answers = coerceAnswers(rawAnswers, fieldSchema);
651
491
  const cleanedData = stripUndefined(answers, fieldSchema);
@@ -662,18 +502,9 @@ async function handleUpdate(argv, prompter) {
662
502
  publicSchemaName: cleanedData.publicSchemaName,
663
503
  privateSchemaName: cleanedData.privateSchemaName,
664
504
  definitionsTableId: cleanedData.definitionsTableId,
665
- invocationsTableId: cleanedData.invocationsTableId,
666
- executionLogsTableId: cleanedData.executionLogsTableId,
667
505
  secretDefinitionsTableId: cleanedData.secretDefinitionsTableId,
668
- requirementsTableId: cleanedData.requirementsTableId,
669
- configDefinitionsTableId: cleanedData.configDefinitionsTableId,
670
- configRequirementsTableId: cleanedData.configRequirementsTableId,
671
506
  definitionsTableName: cleanedData.definitionsTableName,
672
- invocationsTableName: cleanedData.invocationsTableName,
673
- executionLogsTableName: cleanedData.executionLogsTableName,
674
507
  secretDefinitionsTableName: cleanedData.secretDefinitionsTableName,
675
- requirementsTableName: cleanedData.requirementsTableName,
676
- configRequirementsTableName: cleanedData.configRequirementsTableName,
677
508
  apiName: cleanedData.apiName,
678
509
  privateApiName: cleanedData.privateApiName,
679
510
  scope: cleanedData.scope,
@@ -681,6 +512,7 @@ async function handleUpdate(argv, prompter) {
681
512
  entityTableId: cleanedData.entityTableId,
682
513
  policies: cleanedData.policies,
683
514
  provisions: cleanedData.provisions,
515
+ defaultPermissions: cleanedData.defaultPermissions,
684
516
  },
685
517
  select: {
686
518
  id: true,
@@ -690,18 +522,9 @@ async function handleUpdate(argv, prompter) {
690
522
  publicSchemaName: true,
691
523
  privateSchemaName: true,
692
524
  definitionsTableId: true,
693
- invocationsTableId: true,
694
- executionLogsTableId: true,
695
525
  secretDefinitionsTableId: true,
696
- requirementsTableId: true,
697
- configDefinitionsTableId: true,
698
- configRequirementsTableId: true,
699
526
  definitionsTableName: true,
700
- invocationsTableName: true,
701
- executionLogsTableName: true,
702
527
  secretDefinitionsTableName: true,
703
- requirementsTableName: true,
704
- configRequirementsTableName: true,
705
528
  apiName: true,
706
529
  privateApiName: true,
707
530
  scope: true,
@@ -709,6 +532,7 @@ async function handleUpdate(argv, prompter) {
709
532
  entityTableId: true,
710
533
  policies: true,
711
534
  provisions: true,
535
+ defaultPermissions: true,
712
536
  },
713
537
  })
714
538
  .execute();
@@ -24,6 +24,7 @@ const fieldSchema = {
24
24
  entityTableId: 'uuid',
25
25
  policies: 'json',
26
26
  provisions: 'json',
27
+ defaultPermissions: 'string',
27
28
  createdAt: 'string',
28
29
  };
29
30
  const usage = '\ngraph-module <command>\n\nCommands:\n list List graphModule records\n find-first Find first matching graphModule record\n get Get a graphModule by ID\n create Create a new graphModule\n update Update an existing graphModule\n delete Delete a graphModule\n\nList Options:\n --limit <n> Max number of records to return (forward pagination)\n --last <n> Number of records from the end (backward pagination)\n --after <cursor> Cursor for forward pagination\n --before <cursor> Cursor for backward pagination\n --offset <n> Number of records to skip\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n';
@@ -85,6 +86,7 @@ async function handleList(argv, _prompter) {
85
86
  entityTableId: true,
86
87
  policies: true,
87
88
  provisions: true,
89
+ defaultPermissions: true,
88
90
  createdAt: true,
89
91
  };
90
92
  const findManyArgs = parseFindManyArgs(argv, defaultSelect);
@@ -120,6 +122,7 @@ async function handleFindFirst(argv, _prompter) {
120
122
  entityTableId: true,
121
123
  policies: true,
122
124
  provisions: true,
125
+ defaultPermissions: true,
123
126
  createdAt: true,
124
127
  };
125
128
  const findFirstArgs = parseFindFirstArgs(argv, defaultSelect);
@@ -167,6 +170,7 @@ async function handleGet(argv, prompter) {
167
170
  entityTableId: true,
168
171
  policies: true,
169
172
  provisions: true,
173
+ defaultPermissions: true,
170
174
  createdAt: true,
171
175
  },
172
176
  })
@@ -294,6 +298,13 @@ async function handleCreate(argv, prompter) {
294
298
  required: false,
295
299
  skipPrompt: true,
296
300
  },
301
+ {
302
+ type: 'text',
303
+ name: 'defaultPermissions',
304
+ message: 'defaultPermissions',
305
+ required: false,
306
+ skipPrompt: true,
307
+ },
297
308
  ]);
298
309
  const answers = coerceAnswers(rawAnswers, fieldSchema);
299
310
  const cleanedData = stripUndefined(answers, fieldSchema);
@@ -317,6 +328,7 @@ async function handleCreate(argv, prompter) {
317
328
  entityTableId: cleanedData.entityTableId,
318
329
  policies: cleanedData.policies,
319
330
  provisions: cleanedData.provisions,
331
+ defaultPermissions: cleanedData.defaultPermissions,
320
332
  },
321
333
  select: {
322
334
  id: true,
@@ -336,6 +348,7 @@ async function handleCreate(argv, prompter) {
336
348
  entityTableId: true,
337
349
  policies: true,
338
350
  provisions: true,
351
+ defaultPermissions: true,
339
352
  createdAt: true,
340
353
  },
341
354
  })
@@ -469,6 +482,13 @@ async function handleUpdate(argv, prompter) {
469
482
  required: false,
470
483
  skipPrompt: true,
471
484
  },
485
+ {
486
+ type: 'text',
487
+ name: 'defaultPermissions',
488
+ message: 'defaultPermissions',
489
+ required: false,
490
+ skipPrompt: true,
491
+ },
472
492
  ]);
473
493
  const answers = coerceAnswers(rawAnswers, fieldSchema);
474
494
  const cleanedData = stripUndefined(answers, fieldSchema);
@@ -495,6 +515,7 @@ async function handleUpdate(argv, prompter) {
495
515
  entityTableId: cleanedData.entityTableId,
496
516
  policies: cleanedData.policies,
497
517
  provisions: cleanedData.provisions,
518
+ defaultPermissions: cleanedData.defaultPermissions,
498
519
  },
499
520
  select: {
500
521
  id: true,
@@ -514,6 +535,7 @@ async function handleUpdate(argv, prompter) {
514
535
  entityTableId: true,
515
536
  policies: true,
516
537
  provisions: true,
538
+ defaultPermissions: true,
517
539
  createdAt: true,
518
540
  },
519
541
  })
@@ -27,6 +27,7 @@ const fieldSchema = {
27
27
  getSubordinatesFunction: 'string',
28
28
  getManagersFunction: 'string',
29
29
  isManagerOfFunction: 'string',
30
+ defaultPermissions: 'string',
30
31
  createdAt: 'string',
31
32
  };
32
33
  const usage = '\nhierarchy-module <command>\n\nCommands:\n list List hierarchyModule records\n find-first Find first matching hierarchyModule record\n get Get a hierarchyModule by ID\n create Create a new hierarchyModule\n update Update an existing hierarchyModule\n delete Delete a hierarchyModule\n\nList Options:\n --limit <n> Max number of records to return (forward pagination)\n --last <n> Number of records from the end (backward pagination)\n --after <cursor> Cursor for forward pagination\n --before <cursor> Cursor for backward pagination\n --offset <n> Number of records to skip\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n';
@@ -91,6 +92,7 @@ async function handleList(argv, _prompter) {
91
92
  getSubordinatesFunction: true,
92
93
  getManagersFunction: true,
93
94
  isManagerOfFunction: true,
95
+ defaultPermissions: true,
94
96
  createdAt: true,
95
97
  };
96
98
  const findManyArgs = parseFindManyArgs(argv, defaultSelect);
@@ -129,6 +131,7 @@ async function handleFindFirst(argv, _prompter) {
129
131
  getSubordinatesFunction: true,
130
132
  getManagersFunction: true,
131
133
  isManagerOfFunction: true,
134
+ defaultPermissions: true,
132
135
  createdAt: true,
133
136
  };
134
137
  const findFirstArgs = parseFindFirstArgs(argv, defaultSelect);
@@ -179,6 +182,7 @@ async function handleGet(argv, prompter) {
179
182
  getSubordinatesFunction: true,
180
183
  getManagersFunction: true,
181
184
  isManagerOfFunction: true,
185
+ defaultPermissions: true,
182
186
  createdAt: true,
183
187
  },
184
188
  })
@@ -326,6 +330,13 @@ async function handleCreate(argv, prompter) {
326
330
  required: false,
327
331
  skipPrompt: true,
328
332
  },
333
+ {
334
+ type: 'text',
335
+ name: 'defaultPermissions',
336
+ message: 'defaultPermissions',
337
+ required: false,
338
+ skipPrompt: true,
339
+ },
329
340
  ]);
330
341
  const answers = coerceAnswers(rawAnswers, fieldSchema);
331
342
  const cleanedData = stripUndefined(answers, fieldSchema);
@@ -352,6 +363,7 @@ async function handleCreate(argv, prompter) {
352
363
  getSubordinatesFunction: cleanedData.getSubordinatesFunction,
353
364
  getManagersFunction: cleanedData.getManagersFunction,
354
365
  isManagerOfFunction: cleanedData.isManagerOfFunction,
366
+ defaultPermissions: cleanedData.defaultPermissions,
355
367
  },
356
368
  select: {
357
369
  id: true,
@@ -374,6 +386,7 @@ async function handleCreate(argv, prompter) {
374
386
  getSubordinatesFunction: true,
375
387
  getManagersFunction: true,
376
388
  isManagerOfFunction: true,
389
+ defaultPermissions: true,
377
390
  createdAt: true,
378
391
  },
379
392
  })
@@ -527,6 +540,13 @@ async function handleUpdate(argv, prompter) {
527
540
  required: false,
528
541
  skipPrompt: true,
529
542
  },
543
+ {
544
+ type: 'text',
545
+ name: 'defaultPermissions',
546
+ message: 'defaultPermissions',
547
+ required: false,
548
+ skipPrompt: true,
549
+ },
530
550
  ]);
531
551
  const answers = coerceAnswers(rawAnswers, fieldSchema);
532
552
  const cleanedData = stripUndefined(answers, fieldSchema);
@@ -556,6 +576,7 @@ async function handleUpdate(argv, prompter) {
556
576
  getSubordinatesFunction: cleanedData.getSubordinatesFunction,
557
577
  getManagersFunction: cleanedData.getManagersFunction,
558
578
  isManagerOfFunction: cleanedData.isManagerOfFunction,
579
+ defaultPermissions: cleanedData.defaultPermissions,
559
580
  },
560
581
  select: {
561
582
  id: true,
@@ -578,6 +599,7 @@ async function handleUpdate(argv, prompter) {
578
599
  getSubordinatesFunction: true,
579
600
  getManagersFunction: true,
580
601
  isManagerOfFunction: true,
602
+ defaultPermissions: true,
581
603
  createdAt: true,
582
604
  },
583
605
  })