@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
@@ -13,6 +13,8 @@ const fieldSchema = {
13
13
  databaseId: 'uuid',
14
14
  schemaId: 'uuid',
15
15
  privateSchemaId: 'uuid',
16
+ publicSchemaName: 'string',
17
+ privateSchemaName: 'string',
16
18
  tableId: 'uuid',
17
19
  tableName: 'string',
18
20
  profilePermissionsTableId: 'uuid',
@@ -78,6 +80,8 @@ async function handleList(argv, _prompter) {
78
80
  databaseId: true,
79
81
  schemaId: true,
80
82
  privateSchemaId: true,
83
+ publicSchemaName: true,
84
+ privateSchemaName: true,
81
85
  tableId: true,
82
86
  tableName: true,
83
87
  profilePermissionsTableId: true,
@@ -117,6 +121,8 @@ async function handleFindFirst(argv, _prompter) {
117
121
  databaseId: true,
118
122
  schemaId: true,
119
123
  privateSchemaId: true,
124
+ publicSchemaName: true,
125
+ privateSchemaName: true,
120
126
  tableId: true,
121
127
  tableName: true,
122
128
  profilePermissionsTableId: true,
@@ -168,6 +174,8 @@ async function handleGet(argv, prompter) {
168
174
  databaseId: true,
169
175
  schemaId: true,
170
176
  privateSchemaId: true,
177
+ publicSchemaName: true,
178
+ privateSchemaName: true,
171
179
  tableId: true,
172
180
  tableName: true,
173
181
  profilePermissionsTableId: true,
@@ -222,6 +230,20 @@ async function handleCreate(argv, prompter) {
222
230
  required: false,
223
231
  skipPrompt: true,
224
232
  },
233
+ {
234
+ type: 'text',
235
+ name: 'publicSchemaName',
236
+ message: 'publicSchemaName',
237
+ required: false,
238
+ skipPrompt: true,
239
+ },
240
+ {
241
+ type: 'text',
242
+ name: 'privateSchemaName',
243
+ message: 'privateSchemaName',
244
+ required: false,
245
+ skipPrompt: true,
246
+ },
225
247
  {
226
248
  type: 'text',
227
249
  name: 'tableId',
@@ -358,6 +380,8 @@ async function handleCreate(argv, prompter) {
358
380
  databaseId: cleanedData.databaseId,
359
381
  schemaId: cleanedData.schemaId,
360
382
  privateSchemaId: cleanedData.privateSchemaId,
383
+ publicSchemaName: cleanedData.publicSchemaName,
384
+ privateSchemaName: cleanedData.privateSchemaName,
361
385
  tableId: cleanedData.tableId,
362
386
  tableName: cleanedData.tableName,
363
387
  profilePermissionsTableId: cleanedData.profilePermissionsTableId,
@@ -382,6 +406,8 @@ async function handleCreate(argv, prompter) {
382
406
  databaseId: true,
383
407
  schemaId: true,
384
408
  privateSchemaId: true,
409
+ publicSchemaName: true,
410
+ privateSchemaName: true,
385
411
  tableId: true,
386
412
  tableName: true,
387
413
  profilePermissionsTableId: true,
@@ -442,6 +468,20 @@ async function handleUpdate(argv, prompter) {
442
468
  required: false,
443
469
  skipPrompt: true,
444
470
  },
471
+ {
472
+ type: 'text',
473
+ name: 'publicSchemaName',
474
+ message: 'publicSchemaName',
475
+ required: false,
476
+ skipPrompt: true,
477
+ },
478
+ {
479
+ type: 'text',
480
+ name: 'privateSchemaName',
481
+ message: 'privateSchemaName',
482
+ required: false,
483
+ skipPrompt: true,
484
+ },
445
485
  {
446
486
  type: 'text',
447
487
  name: 'tableId',
@@ -581,6 +621,8 @@ async function handleUpdate(argv, prompter) {
581
621
  databaseId: cleanedData.databaseId,
582
622
  schemaId: cleanedData.schemaId,
583
623
  privateSchemaId: cleanedData.privateSchemaId,
624
+ publicSchemaName: cleanedData.publicSchemaName,
625
+ privateSchemaName: cleanedData.privateSchemaName,
584
626
  tableId: cleanedData.tableId,
585
627
  tableName: cleanedData.tableName,
586
628
  profilePermissionsTableId: cleanedData.profilePermissionsTableId,
@@ -605,6 +647,8 @@ async function handleUpdate(argv, prompter) {
605
647
  databaseId: true,
606
648
  schemaId: true,
607
649
  privateSchemaId: true,
650
+ publicSchemaName: true,
651
+ privateSchemaName: true,
608
652
  tableId: true,
609
653
  tableName: true,
610
654
  profilePermissionsTableId: true,
@@ -13,6 +13,8 @@ const fieldSchema = {
13
13
  databaseId: 'uuid',
14
14
  schemaId: 'uuid',
15
15
  privateSchemaId: 'uuid',
16
+ publicSchemaName: 'string',
17
+ privateSchemaName: 'string',
16
18
  rateLimitStateTableId: 'uuid',
17
19
  rateLimitStateTableName: 'string',
18
20
  rateLimitOverridesTableId: 'uuid',
@@ -21,6 +23,7 @@ const fieldSchema = {
21
23
  rateWindowLimitsTableName: 'string',
22
24
  checkRateLimitFunction: 'string',
23
25
  prefix: 'string',
26
+ defaultPermissions: 'string',
24
27
  apiName: 'string',
25
28
  privateApiName: 'string',
26
29
  };
@@ -70,6 +73,8 @@ async function handleList(argv, _prompter) {
70
73
  databaseId: true,
71
74
  schemaId: true,
72
75
  privateSchemaId: true,
76
+ publicSchemaName: true,
77
+ privateSchemaName: true,
73
78
  rateLimitStateTableId: true,
74
79
  rateLimitStateTableName: true,
75
80
  rateLimitOverridesTableId: true,
@@ -78,6 +83,7 @@ async function handleList(argv, _prompter) {
78
83
  rateWindowLimitsTableName: true,
79
84
  checkRateLimitFunction: true,
80
85
  prefix: true,
86
+ defaultPermissions: true,
81
87
  apiName: true,
82
88
  privateApiName: true,
83
89
  };
@@ -101,6 +107,8 @@ async function handleFindFirst(argv, _prompter) {
101
107
  databaseId: true,
102
108
  schemaId: true,
103
109
  privateSchemaId: true,
110
+ publicSchemaName: true,
111
+ privateSchemaName: true,
104
112
  rateLimitStateTableId: true,
105
113
  rateLimitStateTableName: true,
106
114
  rateLimitOverridesTableId: true,
@@ -109,6 +117,7 @@ async function handleFindFirst(argv, _prompter) {
109
117
  rateWindowLimitsTableName: true,
110
118
  checkRateLimitFunction: true,
111
119
  prefix: true,
120
+ defaultPermissions: true,
112
121
  apiName: true,
113
122
  privateApiName: true,
114
123
  };
@@ -144,6 +153,8 @@ async function handleGet(argv, prompter) {
144
153
  databaseId: true,
145
154
  schemaId: true,
146
155
  privateSchemaId: true,
156
+ publicSchemaName: true,
157
+ privateSchemaName: true,
147
158
  rateLimitStateTableId: true,
148
159
  rateLimitStateTableName: true,
149
160
  rateLimitOverridesTableId: true,
@@ -152,6 +163,7 @@ async function handleGet(argv, prompter) {
152
163
  rateWindowLimitsTableName: true,
153
164
  checkRateLimitFunction: true,
154
165
  prefix: true,
166
+ defaultPermissions: true,
155
167
  apiName: true,
156
168
  privateApiName: true,
157
169
  },
@@ -190,6 +202,20 @@ async function handleCreate(argv, prompter) {
190
202
  required: false,
191
203
  skipPrompt: true,
192
204
  },
205
+ {
206
+ type: 'text',
207
+ name: 'publicSchemaName',
208
+ message: 'publicSchemaName',
209
+ required: false,
210
+ skipPrompt: true,
211
+ },
212
+ {
213
+ type: 'text',
214
+ name: 'privateSchemaName',
215
+ message: 'privateSchemaName',
216
+ required: false,
217
+ skipPrompt: true,
218
+ },
193
219
  {
194
220
  type: 'text',
195
221
  name: 'rateLimitStateTableId',
@@ -246,6 +272,13 @@ async function handleCreate(argv, prompter) {
246
272
  required: false,
247
273
  skipPrompt: true,
248
274
  },
275
+ {
276
+ type: 'text',
277
+ name: 'defaultPermissions',
278
+ message: 'defaultPermissions',
279
+ required: false,
280
+ skipPrompt: true,
281
+ },
249
282
  {
250
283
  type: 'text',
251
284
  name: 'apiName',
@@ -270,6 +303,8 @@ async function handleCreate(argv, prompter) {
270
303
  databaseId: cleanedData.databaseId,
271
304
  schemaId: cleanedData.schemaId,
272
305
  privateSchemaId: cleanedData.privateSchemaId,
306
+ publicSchemaName: cleanedData.publicSchemaName,
307
+ privateSchemaName: cleanedData.privateSchemaName,
273
308
  rateLimitStateTableId: cleanedData.rateLimitStateTableId,
274
309
  rateLimitStateTableName: cleanedData.rateLimitStateTableName,
275
310
  rateLimitOverridesTableId: cleanedData.rateLimitOverridesTableId,
@@ -278,6 +313,7 @@ async function handleCreate(argv, prompter) {
278
313
  rateWindowLimitsTableName: cleanedData.rateWindowLimitsTableName,
279
314
  checkRateLimitFunction: cleanedData.checkRateLimitFunction,
280
315
  prefix: cleanedData.prefix,
316
+ defaultPermissions: cleanedData.defaultPermissions,
281
317
  apiName: cleanedData.apiName,
282
318
  privateApiName: cleanedData.privateApiName,
283
319
  },
@@ -286,6 +322,8 @@ async function handleCreate(argv, prompter) {
286
322
  databaseId: true,
287
323
  schemaId: true,
288
324
  privateSchemaId: true,
325
+ publicSchemaName: true,
326
+ privateSchemaName: true,
289
327
  rateLimitStateTableId: true,
290
328
  rateLimitStateTableName: true,
291
329
  rateLimitOverridesTableId: true,
@@ -294,6 +332,7 @@ async function handleCreate(argv, prompter) {
294
332
  rateWindowLimitsTableName: true,
295
333
  checkRateLimitFunction: true,
296
334
  prefix: true,
335
+ defaultPermissions: true,
297
336
  apiName: true,
298
337
  privateApiName: true,
299
338
  },
@@ -338,6 +377,20 @@ async function handleUpdate(argv, prompter) {
338
377
  required: false,
339
378
  skipPrompt: true,
340
379
  },
380
+ {
381
+ type: 'text',
382
+ name: 'publicSchemaName',
383
+ message: 'publicSchemaName',
384
+ required: false,
385
+ skipPrompt: true,
386
+ },
387
+ {
388
+ type: 'text',
389
+ name: 'privateSchemaName',
390
+ message: 'privateSchemaName',
391
+ required: false,
392
+ skipPrompt: true,
393
+ },
341
394
  {
342
395
  type: 'text',
343
396
  name: 'rateLimitStateTableId',
@@ -394,6 +447,13 @@ async function handleUpdate(argv, prompter) {
394
447
  required: false,
395
448
  skipPrompt: true,
396
449
  },
450
+ {
451
+ type: 'text',
452
+ name: 'defaultPermissions',
453
+ message: 'defaultPermissions',
454
+ required: false,
455
+ skipPrompt: true,
456
+ },
397
457
  {
398
458
  type: 'text',
399
459
  name: 'apiName',
@@ -421,6 +481,8 @@ async function handleUpdate(argv, prompter) {
421
481
  databaseId: cleanedData.databaseId,
422
482
  schemaId: cleanedData.schemaId,
423
483
  privateSchemaId: cleanedData.privateSchemaId,
484
+ publicSchemaName: cleanedData.publicSchemaName,
485
+ privateSchemaName: cleanedData.privateSchemaName,
424
486
  rateLimitStateTableId: cleanedData.rateLimitStateTableId,
425
487
  rateLimitStateTableName: cleanedData.rateLimitStateTableName,
426
488
  rateLimitOverridesTableId: cleanedData.rateLimitOverridesTableId,
@@ -429,6 +491,7 @@ async function handleUpdate(argv, prompter) {
429
491
  rateWindowLimitsTableName: cleanedData.rateWindowLimitsTableName,
430
492
  checkRateLimitFunction: cleanedData.checkRateLimitFunction,
431
493
  prefix: cleanedData.prefix,
494
+ defaultPermissions: cleanedData.defaultPermissions,
432
495
  apiName: cleanedData.apiName,
433
496
  privateApiName: cleanedData.privateApiName,
434
497
  },
@@ -437,6 +500,8 @@ async function handleUpdate(argv, prompter) {
437
500
  databaseId: true,
438
501
  schemaId: true,
439
502
  privateSchemaId: true,
503
+ publicSchemaName: true,
504
+ privateSchemaName: true,
440
505
  rateLimitStateTableId: true,
441
506
  rateLimitStateTableName: true,
442
507
  rateLimitOverridesTableId: true,
@@ -445,6 +510,7 @@ async function handleUpdate(argv, prompter) {
445
510
  rateWindowLimitsTableName: true,
446
511
  checkRateLimitFunction: true,
447
512
  prefix: true,
513
+ defaultPermissions: true,
448
514
  apiName: true,
449
515
  privateApiName: true,
450
516
  },
@@ -13,6 +13,8 @@ const fieldSchema = {
13
13
  databaseId: 'uuid',
14
14
  schemaId: 'uuid',
15
15
  privateSchemaId: 'uuid',
16
+ publicSchemaName: 'string',
17
+ privateSchemaName: 'string',
16
18
  storageLogTableId: 'uuid',
17
19
  storageLogTableName: 'string',
18
20
  usageDailyTableId: 'uuid',
@@ -73,6 +75,8 @@ async function handleList(argv, _prompter) {
73
75
  databaseId: true,
74
76
  schemaId: true,
75
77
  privateSchemaId: true,
78
+ publicSchemaName: true,
79
+ privateSchemaName: true,
76
80
  storageLogTableId: true,
77
81
  storageLogTableName: true,
78
82
  usageDailyTableId: true,
@@ -107,6 +111,8 @@ async function handleFindFirst(argv, _prompter) {
107
111
  databaseId: true,
108
112
  schemaId: true,
109
113
  privateSchemaId: true,
114
+ publicSchemaName: true,
115
+ privateSchemaName: true,
110
116
  storageLogTableId: true,
111
117
  storageLogTableName: true,
112
118
  usageDailyTableId: true,
@@ -153,6 +159,8 @@ async function handleGet(argv, prompter) {
153
159
  databaseId: true,
154
160
  schemaId: true,
155
161
  privateSchemaId: true,
162
+ publicSchemaName: true,
163
+ privateSchemaName: true,
156
164
  storageLogTableId: true,
157
165
  storageLogTableName: true,
158
166
  usageDailyTableId: true,
@@ -202,6 +210,20 @@ async function handleCreate(argv, prompter) {
202
210
  required: false,
203
211
  skipPrompt: true,
204
212
  },
213
+ {
214
+ type: 'text',
215
+ name: 'publicSchemaName',
216
+ message: 'publicSchemaName',
217
+ required: false,
218
+ skipPrompt: true,
219
+ },
220
+ {
221
+ type: 'text',
222
+ name: 'privateSchemaName',
223
+ message: 'privateSchemaName',
224
+ required: false,
225
+ skipPrompt: true,
226
+ },
205
227
  {
206
228
  type: 'text',
207
229
  name: 'storageLogTableId',
@@ -303,6 +325,8 @@ async function handleCreate(argv, prompter) {
303
325
  databaseId: cleanedData.databaseId,
304
326
  schemaId: cleanedData.schemaId,
305
327
  privateSchemaId: cleanedData.privateSchemaId,
328
+ publicSchemaName: cleanedData.publicSchemaName,
329
+ privateSchemaName: cleanedData.privateSchemaName,
306
330
  storageLogTableId: cleanedData.storageLogTableId,
307
331
  storageLogTableName: cleanedData.storageLogTableName,
308
332
  usageDailyTableId: cleanedData.usageDailyTableId,
@@ -322,6 +346,8 @@ async function handleCreate(argv, prompter) {
322
346
  databaseId: true,
323
347
  schemaId: true,
324
348
  privateSchemaId: true,
349
+ publicSchemaName: true,
350
+ privateSchemaName: true,
325
351
  storageLogTableId: true,
326
352
  storageLogTableName: true,
327
353
  usageDailyTableId: true,
@@ -377,6 +403,20 @@ async function handleUpdate(argv, prompter) {
377
403
  required: false,
378
404
  skipPrompt: true,
379
405
  },
406
+ {
407
+ type: 'text',
408
+ name: 'publicSchemaName',
409
+ message: 'publicSchemaName',
410
+ required: false,
411
+ skipPrompt: true,
412
+ },
413
+ {
414
+ type: 'text',
415
+ name: 'privateSchemaName',
416
+ message: 'privateSchemaName',
417
+ required: false,
418
+ skipPrompt: true,
419
+ },
380
420
  {
381
421
  type: 'text',
382
422
  name: 'storageLogTableId',
@@ -481,6 +521,8 @@ async function handleUpdate(argv, prompter) {
481
521
  databaseId: cleanedData.databaseId,
482
522
  schemaId: cleanedData.schemaId,
483
523
  privateSchemaId: cleanedData.privateSchemaId,
524
+ publicSchemaName: cleanedData.publicSchemaName,
525
+ privateSchemaName: cleanedData.privateSchemaName,
484
526
  storageLogTableId: cleanedData.storageLogTableId,
485
527
  storageLogTableName: cleanedData.storageLogTableName,
486
528
  usageDailyTableId: cleanedData.usageDailyTableId,
@@ -500,6 +542,8 @@ async function handleUpdate(argv, prompter) {
500
542
  databaseId: true,
501
543
  schemaId: true,
502
544
  privateSchemaId: true,
545
+ publicSchemaName: true,
546
+ privateSchemaName: true,
503
547
  storageLogTableId: true,
504
548
  storageLogTableName: true,
505
549
  usageDailyTableId: true,
@@ -13,6 +13,8 @@ const fieldSchema = {
13
13
  databaseId: 'uuid',
14
14
  schemaId: 'uuid',
15
15
  privateSchemaId: 'uuid',
16
+ publicSchemaName: 'string',
17
+ privateSchemaName: 'string',
16
18
  bucketsTableId: 'uuid',
17
19
  filesTableId: 'uuid',
18
20
  bucketsTableName: 'string',
@@ -43,6 +45,7 @@ const fieldSchema = {
43
45
  hasConfirmUpload: 'boolean',
44
46
  confirmUploadDelay: 'string',
45
47
  fileEventsTableId: 'uuid',
48
+ defaultPermissions: 'string',
46
49
  apiName: 'string',
47
50
  privateApiName: 'string',
48
51
  };
@@ -92,6 +95,8 @@ async function handleList(argv, _prompter) {
92
95
  databaseId: true,
93
96
  schemaId: true,
94
97
  privateSchemaId: true,
98
+ publicSchemaName: true,
99
+ privateSchemaName: true,
95
100
  bucketsTableId: true,
96
101
  filesTableId: true,
97
102
  bucketsTableName: true,
@@ -122,6 +127,7 @@ async function handleList(argv, _prompter) {
122
127
  hasConfirmUpload: true,
123
128
  confirmUploadDelay: true,
124
129
  fileEventsTableId: true,
130
+ defaultPermissions: true,
125
131
  apiName: true,
126
132
  privateApiName: true,
127
133
  };
@@ -145,6 +151,8 @@ async function handleFindFirst(argv, _prompter) {
145
151
  databaseId: true,
146
152
  schemaId: true,
147
153
  privateSchemaId: true,
154
+ publicSchemaName: true,
155
+ privateSchemaName: true,
148
156
  bucketsTableId: true,
149
157
  filesTableId: true,
150
158
  bucketsTableName: true,
@@ -175,6 +183,7 @@ async function handleFindFirst(argv, _prompter) {
175
183
  hasConfirmUpload: true,
176
184
  confirmUploadDelay: true,
177
185
  fileEventsTableId: true,
186
+ defaultPermissions: true,
178
187
  apiName: true,
179
188
  privateApiName: true,
180
189
  };
@@ -210,6 +219,8 @@ async function handleGet(argv, prompter) {
210
219
  databaseId: true,
211
220
  schemaId: true,
212
221
  privateSchemaId: true,
222
+ publicSchemaName: true,
223
+ privateSchemaName: true,
213
224
  bucketsTableId: true,
214
225
  filesTableId: true,
215
226
  bucketsTableName: true,
@@ -240,6 +251,7 @@ async function handleGet(argv, prompter) {
240
251
  hasConfirmUpload: true,
241
252
  confirmUploadDelay: true,
242
253
  fileEventsTableId: true,
254
+ defaultPermissions: true,
243
255
  apiName: true,
244
256
  privateApiName: true,
245
257
  },
@@ -278,6 +290,20 @@ async function handleCreate(argv, prompter) {
278
290
  required: false,
279
291
  skipPrompt: true,
280
292
  },
293
+ {
294
+ type: 'text',
295
+ name: 'publicSchemaName',
296
+ message: 'publicSchemaName',
297
+ required: false,
298
+ skipPrompt: true,
299
+ },
300
+ {
301
+ type: 'text',
302
+ name: 'privateSchemaName',
303
+ message: 'privateSchemaName',
304
+ required: false,
305
+ skipPrompt: true,
306
+ },
281
307
  {
282
308
  type: 'text',
283
309
  name: 'bucketsTableId',
@@ -488,6 +514,13 @@ async function handleCreate(argv, prompter) {
488
514
  required: false,
489
515
  skipPrompt: true,
490
516
  },
517
+ {
518
+ type: 'text',
519
+ name: 'defaultPermissions',
520
+ message: 'defaultPermissions',
521
+ required: false,
522
+ skipPrompt: true,
523
+ },
491
524
  {
492
525
  type: 'text',
493
526
  name: 'apiName',
@@ -512,6 +545,8 @@ async function handleCreate(argv, prompter) {
512
545
  databaseId: cleanedData.databaseId,
513
546
  schemaId: cleanedData.schemaId,
514
547
  privateSchemaId: cleanedData.privateSchemaId,
548
+ publicSchemaName: cleanedData.publicSchemaName,
549
+ privateSchemaName: cleanedData.privateSchemaName,
515
550
  bucketsTableId: cleanedData.bucketsTableId,
516
551
  filesTableId: cleanedData.filesTableId,
517
552
  bucketsTableName: cleanedData.bucketsTableName,
@@ -542,6 +577,7 @@ async function handleCreate(argv, prompter) {
542
577
  hasConfirmUpload: cleanedData.hasConfirmUpload,
543
578
  confirmUploadDelay: cleanedData.confirmUploadDelay,
544
579
  fileEventsTableId: cleanedData.fileEventsTableId,
580
+ defaultPermissions: cleanedData.defaultPermissions,
545
581
  apiName: cleanedData.apiName,
546
582
  privateApiName: cleanedData.privateApiName,
547
583
  },
@@ -550,6 +586,8 @@ async function handleCreate(argv, prompter) {
550
586
  databaseId: true,
551
587
  schemaId: true,
552
588
  privateSchemaId: true,
589
+ publicSchemaName: true,
590
+ privateSchemaName: true,
553
591
  bucketsTableId: true,
554
592
  filesTableId: true,
555
593
  bucketsTableName: true,
@@ -580,6 +618,7 @@ async function handleCreate(argv, prompter) {
580
618
  hasConfirmUpload: true,
581
619
  confirmUploadDelay: true,
582
620
  fileEventsTableId: true,
621
+ defaultPermissions: true,
583
622
  apiName: true,
584
623
  privateApiName: true,
585
624
  },
@@ -624,6 +663,20 @@ async function handleUpdate(argv, prompter) {
624
663
  required: false,
625
664
  skipPrompt: true,
626
665
  },
666
+ {
667
+ type: 'text',
668
+ name: 'publicSchemaName',
669
+ message: 'publicSchemaName',
670
+ required: false,
671
+ skipPrompt: true,
672
+ },
673
+ {
674
+ type: 'text',
675
+ name: 'privateSchemaName',
676
+ message: 'privateSchemaName',
677
+ required: false,
678
+ skipPrompt: true,
679
+ },
627
680
  {
628
681
  type: 'text',
629
682
  name: 'bucketsTableId',
@@ -834,6 +887,13 @@ async function handleUpdate(argv, prompter) {
834
887
  required: false,
835
888
  skipPrompt: true,
836
889
  },
890
+ {
891
+ type: 'text',
892
+ name: 'defaultPermissions',
893
+ message: 'defaultPermissions',
894
+ required: false,
895
+ skipPrompt: true,
896
+ },
837
897
  {
838
898
  type: 'text',
839
899
  name: 'apiName',
@@ -861,6 +921,8 @@ async function handleUpdate(argv, prompter) {
861
921
  databaseId: cleanedData.databaseId,
862
922
  schemaId: cleanedData.schemaId,
863
923
  privateSchemaId: cleanedData.privateSchemaId,
924
+ publicSchemaName: cleanedData.publicSchemaName,
925
+ privateSchemaName: cleanedData.privateSchemaName,
864
926
  bucketsTableId: cleanedData.bucketsTableId,
865
927
  filesTableId: cleanedData.filesTableId,
866
928
  bucketsTableName: cleanedData.bucketsTableName,
@@ -891,6 +953,7 @@ async function handleUpdate(argv, prompter) {
891
953
  hasConfirmUpload: cleanedData.hasConfirmUpload,
892
954
  confirmUploadDelay: cleanedData.confirmUploadDelay,
893
955
  fileEventsTableId: cleanedData.fileEventsTableId,
956
+ defaultPermissions: cleanedData.defaultPermissions,
894
957
  apiName: cleanedData.apiName,
895
958
  privateApiName: cleanedData.privateApiName,
896
959
  },
@@ -899,6 +962,8 @@ async function handleUpdate(argv, prompter) {
899
962
  databaseId: true,
900
963
  schemaId: true,
901
964
  privateSchemaId: true,
965
+ publicSchemaName: true,
966
+ privateSchemaName: true,
902
967
  bucketsTableId: true,
903
968
  filesTableId: true,
904
969
  bucketsTableName: true,
@@ -929,6 +994,7 @@ async function handleUpdate(argv, prompter) {
929
994
  hasConfirmUpload: true,
930
995
  confirmUploadDelay: true,
931
996
  fileEventsTableId: true,
997
+ defaultPermissions: true,
932
998
  apiName: true,
933
999
  privateApiName: true,
934
1000
  },