@constructive-sdk/cli 0.25.9 → 0.25.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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
@@ -11,6 +11,8 @@ const fieldSchema = {
11
11
  databaseId: 'uuid',
12
12
  schemaId: 'uuid',
13
13
  privateSchemaId: 'uuid',
14
+ publicSchemaName: 'string',
15
+ privateSchemaName: 'string',
14
16
  tableId: 'uuid',
15
17
  tableName: 'string',
16
18
  profilePermissionsTableId: 'uuid',
@@ -76,6 +78,8 @@ async function handleList(argv, _prompter) {
76
78
  databaseId: true,
77
79
  schemaId: true,
78
80
  privateSchemaId: true,
81
+ publicSchemaName: true,
82
+ privateSchemaName: true,
79
83
  tableId: true,
80
84
  tableName: true,
81
85
  profilePermissionsTableId: true,
@@ -115,6 +119,8 @@ async function handleFindFirst(argv, _prompter) {
115
119
  databaseId: true,
116
120
  schemaId: true,
117
121
  privateSchemaId: true,
122
+ publicSchemaName: true,
123
+ privateSchemaName: true,
118
124
  tableId: true,
119
125
  tableName: true,
120
126
  profilePermissionsTableId: true,
@@ -166,6 +172,8 @@ async function handleGet(argv, prompter) {
166
172
  databaseId: true,
167
173
  schemaId: true,
168
174
  privateSchemaId: true,
175
+ publicSchemaName: true,
176
+ privateSchemaName: true,
169
177
  tableId: true,
170
178
  tableName: true,
171
179
  profilePermissionsTableId: true,
@@ -220,6 +228,20 @@ async function handleCreate(argv, prompter) {
220
228
  required: false,
221
229
  skipPrompt: true,
222
230
  },
231
+ {
232
+ type: 'text',
233
+ name: 'publicSchemaName',
234
+ message: 'publicSchemaName',
235
+ required: false,
236
+ skipPrompt: true,
237
+ },
238
+ {
239
+ type: 'text',
240
+ name: 'privateSchemaName',
241
+ message: 'privateSchemaName',
242
+ required: false,
243
+ skipPrompt: true,
244
+ },
223
245
  {
224
246
  type: 'text',
225
247
  name: 'tableId',
@@ -356,6 +378,8 @@ async function handleCreate(argv, prompter) {
356
378
  databaseId: cleanedData.databaseId,
357
379
  schemaId: cleanedData.schemaId,
358
380
  privateSchemaId: cleanedData.privateSchemaId,
381
+ publicSchemaName: cleanedData.publicSchemaName,
382
+ privateSchemaName: cleanedData.privateSchemaName,
359
383
  tableId: cleanedData.tableId,
360
384
  tableName: cleanedData.tableName,
361
385
  profilePermissionsTableId: cleanedData.profilePermissionsTableId,
@@ -380,6 +404,8 @@ async function handleCreate(argv, prompter) {
380
404
  databaseId: true,
381
405
  schemaId: true,
382
406
  privateSchemaId: true,
407
+ publicSchemaName: true,
408
+ privateSchemaName: true,
383
409
  tableId: true,
384
410
  tableName: true,
385
411
  profilePermissionsTableId: true,
@@ -440,6 +466,20 @@ async function handleUpdate(argv, prompter) {
440
466
  required: false,
441
467
  skipPrompt: true,
442
468
  },
469
+ {
470
+ type: 'text',
471
+ name: 'publicSchemaName',
472
+ message: 'publicSchemaName',
473
+ required: false,
474
+ skipPrompt: true,
475
+ },
476
+ {
477
+ type: 'text',
478
+ name: 'privateSchemaName',
479
+ message: 'privateSchemaName',
480
+ required: false,
481
+ skipPrompt: true,
482
+ },
443
483
  {
444
484
  type: 'text',
445
485
  name: 'tableId',
@@ -579,6 +619,8 @@ async function handleUpdate(argv, prompter) {
579
619
  databaseId: cleanedData.databaseId,
580
620
  schemaId: cleanedData.schemaId,
581
621
  privateSchemaId: cleanedData.privateSchemaId,
622
+ publicSchemaName: cleanedData.publicSchemaName,
623
+ privateSchemaName: cleanedData.privateSchemaName,
582
624
  tableId: cleanedData.tableId,
583
625
  tableName: cleanedData.tableName,
584
626
  profilePermissionsTableId: cleanedData.profilePermissionsTableId,
@@ -603,6 +645,8 @@ async function handleUpdate(argv, prompter) {
603
645
  databaseId: true,
604
646
  schemaId: true,
605
647
  privateSchemaId: true,
648
+ publicSchemaName: true,
649
+ privateSchemaName: true,
606
650
  tableId: true,
607
651
  tableName: true,
608
652
  profilePermissionsTableId: true,
@@ -11,6 +11,8 @@ const fieldSchema = {
11
11
  databaseId: 'uuid',
12
12
  schemaId: 'uuid',
13
13
  privateSchemaId: 'uuid',
14
+ publicSchemaName: 'string',
15
+ privateSchemaName: 'string',
14
16
  rateLimitStateTableId: 'uuid',
15
17
  rateLimitStateTableName: 'string',
16
18
  rateLimitOverridesTableId: 'uuid',
@@ -19,6 +21,7 @@ const fieldSchema = {
19
21
  rateWindowLimitsTableName: 'string',
20
22
  checkRateLimitFunction: 'string',
21
23
  prefix: 'string',
24
+ defaultPermissions: 'string',
22
25
  apiName: 'string',
23
26
  privateApiName: 'string',
24
27
  };
@@ -68,6 +71,8 @@ async function handleList(argv, _prompter) {
68
71
  databaseId: true,
69
72
  schemaId: true,
70
73
  privateSchemaId: true,
74
+ publicSchemaName: true,
75
+ privateSchemaName: true,
71
76
  rateLimitStateTableId: true,
72
77
  rateLimitStateTableName: true,
73
78
  rateLimitOverridesTableId: true,
@@ -76,6 +81,7 @@ async function handleList(argv, _prompter) {
76
81
  rateWindowLimitsTableName: true,
77
82
  checkRateLimitFunction: true,
78
83
  prefix: true,
84
+ defaultPermissions: true,
79
85
  apiName: true,
80
86
  privateApiName: true,
81
87
  };
@@ -99,6 +105,8 @@ async function handleFindFirst(argv, _prompter) {
99
105
  databaseId: true,
100
106
  schemaId: true,
101
107
  privateSchemaId: true,
108
+ publicSchemaName: true,
109
+ privateSchemaName: true,
102
110
  rateLimitStateTableId: true,
103
111
  rateLimitStateTableName: true,
104
112
  rateLimitOverridesTableId: true,
@@ -107,6 +115,7 @@ async function handleFindFirst(argv, _prompter) {
107
115
  rateWindowLimitsTableName: true,
108
116
  checkRateLimitFunction: true,
109
117
  prefix: true,
118
+ defaultPermissions: true,
110
119
  apiName: true,
111
120
  privateApiName: true,
112
121
  };
@@ -142,6 +151,8 @@ async function handleGet(argv, prompter) {
142
151
  databaseId: true,
143
152
  schemaId: true,
144
153
  privateSchemaId: true,
154
+ publicSchemaName: true,
155
+ privateSchemaName: true,
145
156
  rateLimitStateTableId: true,
146
157
  rateLimitStateTableName: true,
147
158
  rateLimitOverridesTableId: true,
@@ -150,6 +161,7 @@ async function handleGet(argv, prompter) {
150
161
  rateWindowLimitsTableName: true,
151
162
  checkRateLimitFunction: true,
152
163
  prefix: true,
164
+ defaultPermissions: true,
153
165
  apiName: true,
154
166
  privateApiName: true,
155
167
  },
@@ -188,6 +200,20 @@ async function handleCreate(argv, prompter) {
188
200
  required: false,
189
201
  skipPrompt: true,
190
202
  },
203
+ {
204
+ type: 'text',
205
+ name: 'publicSchemaName',
206
+ message: 'publicSchemaName',
207
+ required: false,
208
+ skipPrompt: true,
209
+ },
210
+ {
211
+ type: 'text',
212
+ name: 'privateSchemaName',
213
+ message: 'privateSchemaName',
214
+ required: false,
215
+ skipPrompt: true,
216
+ },
191
217
  {
192
218
  type: 'text',
193
219
  name: 'rateLimitStateTableId',
@@ -244,6 +270,13 @@ async function handleCreate(argv, prompter) {
244
270
  required: false,
245
271
  skipPrompt: true,
246
272
  },
273
+ {
274
+ type: 'text',
275
+ name: 'defaultPermissions',
276
+ message: 'defaultPermissions',
277
+ required: false,
278
+ skipPrompt: true,
279
+ },
247
280
  {
248
281
  type: 'text',
249
282
  name: 'apiName',
@@ -268,6 +301,8 @@ async function handleCreate(argv, prompter) {
268
301
  databaseId: cleanedData.databaseId,
269
302
  schemaId: cleanedData.schemaId,
270
303
  privateSchemaId: cleanedData.privateSchemaId,
304
+ publicSchemaName: cleanedData.publicSchemaName,
305
+ privateSchemaName: cleanedData.privateSchemaName,
271
306
  rateLimitStateTableId: cleanedData.rateLimitStateTableId,
272
307
  rateLimitStateTableName: cleanedData.rateLimitStateTableName,
273
308
  rateLimitOverridesTableId: cleanedData.rateLimitOverridesTableId,
@@ -276,6 +311,7 @@ async function handleCreate(argv, prompter) {
276
311
  rateWindowLimitsTableName: cleanedData.rateWindowLimitsTableName,
277
312
  checkRateLimitFunction: cleanedData.checkRateLimitFunction,
278
313
  prefix: cleanedData.prefix,
314
+ defaultPermissions: cleanedData.defaultPermissions,
279
315
  apiName: cleanedData.apiName,
280
316
  privateApiName: cleanedData.privateApiName,
281
317
  },
@@ -284,6 +320,8 @@ async function handleCreate(argv, prompter) {
284
320
  databaseId: true,
285
321
  schemaId: true,
286
322
  privateSchemaId: true,
323
+ publicSchemaName: true,
324
+ privateSchemaName: true,
287
325
  rateLimitStateTableId: true,
288
326
  rateLimitStateTableName: true,
289
327
  rateLimitOverridesTableId: true,
@@ -292,6 +330,7 @@ async function handleCreate(argv, prompter) {
292
330
  rateWindowLimitsTableName: true,
293
331
  checkRateLimitFunction: true,
294
332
  prefix: true,
333
+ defaultPermissions: true,
295
334
  apiName: true,
296
335
  privateApiName: true,
297
336
  },
@@ -336,6 +375,20 @@ async function handleUpdate(argv, prompter) {
336
375
  required: false,
337
376
  skipPrompt: true,
338
377
  },
378
+ {
379
+ type: 'text',
380
+ name: 'publicSchemaName',
381
+ message: 'publicSchemaName',
382
+ required: false,
383
+ skipPrompt: true,
384
+ },
385
+ {
386
+ type: 'text',
387
+ name: 'privateSchemaName',
388
+ message: 'privateSchemaName',
389
+ required: false,
390
+ skipPrompt: true,
391
+ },
339
392
  {
340
393
  type: 'text',
341
394
  name: 'rateLimitStateTableId',
@@ -392,6 +445,13 @@ async function handleUpdate(argv, prompter) {
392
445
  required: false,
393
446
  skipPrompt: true,
394
447
  },
448
+ {
449
+ type: 'text',
450
+ name: 'defaultPermissions',
451
+ message: 'defaultPermissions',
452
+ required: false,
453
+ skipPrompt: true,
454
+ },
395
455
  {
396
456
  type: 'text',
397
457
  name: 'apiName',
@@ -419,6 +479,8 @@ async function handleUpdate(argv, prompter) {
419
479
  databaseId: cleanedData.databaseId,
420
480
  schemaId: cleanedData.schemaId,
421
481
  privateSchemaId: cleanedData.privateSchemaId,
482
+ publicSchemaName: cleanedData.publicSchemaName,
483
+ privateSchemaName: cleanedData.privateSchemaName,
422
484
  rateLimitStateTableId: cleanedData.rateLimitStateTableId,
423
485
  rateLimitStateTableName: cleanedData.rateLimitStateTableName,
424
486
  rateLimitOverridesTableId: cleanedData.rateLimitOverridesTableId,
@@ -427,6 +489,7 @@ async function handleUpdate(argv, prompter) {
427
489
  rateWindowLimitsTableName: cleanedData.rateWindowLimitsTableName,
428
490
  checkRateLimitFunction: cleanedData.checkRateLimitFunction,
429
491
  prefix: cleanedData.prefix,
492
+ defaultPermissions: cleanedData.defaultPermissions,
430
493
  apiName: cleanedData.apiName,
431
494
  privateApiName: cleanedData.privateApiName,
432
495
  },
@@ -435,6 +498,8 @@ async function handleUpdate(argv, prompter) {
435
498
  databaseId: true,
436
499
  schemaId: true,
437
500
  privateSchemaId: true,
501
+ publicSchemaName: true,
502
+ privateSchemaName: true,
438
503
  rateLimitStateTableId: true,
439
504
  rateLimitStateTableName: true,
440
505
  rateLimitOverridesTableId: true,
@@ -443,6 +508,7 @@ async function handleUpdate(argv, prompter) {
443
508
  rateWindowLimitsTableName: true,
444
509
  checkRateLimitFunction: true,
445
510
  prefix: true,
511
+ defaultPermissions: true,
446
512
  apiName: true,
447
513
  privateApiName: true,
448
514
  },
@@ -11,6 +11,8 @@ const fieldSchema = {
11
11
  databaseId: 'uuid',
12
12
  schemaId: 'uuid',
13
13
  privateSchemaId: 'uuid',
14
+ publicSchemaName: 'string',
15
+ privateSchemaName: 'string',
14
16
  storageLogTableId: 'uuid',
15
17
  storageLogTableName: 'string',
16
18
  usageDailyTableId: 'uuid',
@@ -71,6 +73,8 @@ async function handleList(argv, _prompter) {
71
73
  databaseId: true,
72
74
  schemaId: true,
73
75
  privateSchemaId: true,
76
+ publicSchemaName: true,
77
+ privateSchemaName: true,
74
78
  storageLogTableId: true,
75
79
  storageLogTableName: true,
76
80
  usageDailyTableId: true,
@@ -105,6 +109,8 @@ async function handleFindFirst(argv, _prompter) {
105
109
  databaseId: true,
106
110
  schemaId: true,
107
111
  privateSchemaId: true,
112
+ publicSchemaName: true,
113
+ privateSchemaName: true,
108
114
  storageLogTableId: true,
109
115
  storageLogTableName: true,
110
116
  usageDailyTableId: true,
@@ -151,6 +157,8 @@ async function handleGet(argv, prompter) {
151
157
  databaseId: true,
152
158
  schemaId: true,
153
159
  privateSchemaId: true,
160
+ publicSchemaName: true,
161
+ privateSchemaName: true,
154
162
  storageLogTableId: true,
155
163
  storageLogTableName: true,
156
164
  usageDailyTableId: true,
@@ -200,6 +208,20 @@ async function handleCreate(argv, prompter) {
200
208
  required: false,
201
209
  skipPrompt: true,
202
210
  },
211
+ {
212
+ type: 'text',
213
+ name: 'publicSchemaName',
214
+ message: 'publicSchemaName',
215
+ required: false,
216
+ skipPrompt: true,
217
+ },
218
+ {
219
+ type: 'text',
220
+ name: 'privateSchemaName',
221
+ message: 'privateSchemaName',
222
+ required: false,
223
+ skipPrompt: true,
224
+ },
203
225
  {
204
226
  type: 'text',
205
227
  name: 'storageLogTableId',
@@ -301,6 +323,8 @@ async function handleCreate(argv, prompter) {
301
323
  databaseId: cleanedData.databaseId,
302
324
  schemaId: cleanedData.schemaId,
303
325
  privateSchemaId: cleanedData.privateSchemaId,
326
+ publicSchemaName: cleanedData.publicSchemaName,
327
+ privateSchemaName: cleanedData.privateSchemaName,
304
328
  storageLogTableId: cleanedData.storageLogTableId,
305
329
  storageLogTableName: cleanedData.storageLogTableName,
306
330
  usageDailyTableId: cleanedData.usageDailyTableId,
@@ -320,6 +344,8 @@ async function handleCreate(argv, prompter) {
320
344
  databaseId: true,
321
345
  schemaId: true,
322
346
  privateSchemaId: true,
347
+ publicSchemaName: true,
348
+ privateSchemaName: true,
323
349
  storageLogTableId: true,
324
350
  storageLogTableName: true,
325
351
  usageDailyTableId: true,
@@ -375,6 +401,20 @@ async function handleUpdate(argv, prompter) {
375
401
  required: false,
376
402
  skipPrompt: true,
377
403
  },
404
+ {
405
+ type: 'text',
406
+ name: 'publicSchemaName',
407
+ message: 'publicSchemaName',
408
+ required: false,
409
+ skipPrompt: true,
410
+ },
411
+ {
412
+ type: 'text',
413
+ name: 'privateSchemaName',
414
+ message: 'privateSchemaName',
415
+ required: false,
416
+ skipPrompt: true,
417
+ },
378
418
  {
379
419
  type: 'text',
380
420
  name: 'storageLogTableId',
@@ -479,6 +519,8 @@ async function handleUpdate(argv, prompter) {
479
519
  databaseId: cleanedData.databaseId,
480
520
  schemaId: cleanedData.schemaId,
481
521
  privateSchemaId: cleanedData.privateSchemaId,
522
+ publicSchemaName: cleanedData.publicSchemaName,
523
+ privateSchemaName: cleanedData.privateSchemaName,
482
524
  storageLogTableId: cleanedData.storageLogTableId,
483
525
  storageLogTableName: cleanedData.storageLogTableName,
484
526
  usageDailyTableId: cleanedData.usageDailyTableId,
@@ -498,6 +540,8 @@ async function handleUpdate(argv, prompter) {
498
540
  databaseId: true,
499
541
  schemaId: true,
500
542
  privateSchemaId: true,
543
+ publicSchemaName: true,
544
+ privateSchemaName: true,
501
545
  storageLogTableId: true,
502
546
  storageLogTableName: true,
503
547
  usageDailyTableId: true,
@@ -11,6 +11,8 @@ const fieldSchema = {
11
11
  databaseId: 'uuid',
12
12
  schemaId: 'uuid',
13
13
  privateSchemaId: 'uuid',
14
+ publicSchemaName: 'string',
15
+ privateSchemaName: 'string',
14
16
  bucketsTableId: 'uuid',
15
17
  filesTableId: 'uuid',
16
18
  bucketsTableName: 'string',
@@ -41,6 +43,7 @@ const fieldSchema = {
41
43
  hasConfirmUpload: 'boolean',
42
44
  confirmUploadDelay: 'string',
43
45
  fileEventsTableId: 'uuid',
46
+ defaultPermissions: 'string',
44
47
  apiName: 'string',
45
48
  privateApiName: 'string',
46
49
  };
@@ -90,6 +93,8 @@ async function handleList(argv, _prompter) {
90
93
  databaseId: true,
91
94
  schemaId: true,
92
95
  privateSchemaId: true,
96
+ publicSchemaName: true,
97
+ privateSchemaName: true,
93
98
  bucketsTableId: true,
94
99
  filesTableId: true,
95
100
  bucketsTableName: true,
@@ -120,6 +125,7 @@ async function handleList(argv, _prompter) {
120
125
  hasConfirmUpload: true,
121
126
  confirmUploadDelay: true,
122
127
  fileEventsTableId: true,
128
+ defaultPermissions: true,
123
129
  apiName: true,
124
130
  privateApiName: true,
125
131
  };
@@ -143,6 +149,8 @@ async function handleFindFirst(argv, _prompter) {
143
149
  databaseId: true,
144
150
  schemaId: true,
145
151
  privateSchemaId: true,
152
+ publicSchemaName: true,
153
+ privateSchemaName: true,
146
154
  bucketsTableId: true,
147
155
  filesTableId: true,
148
156
  bucketsTableName: true,
@@ -173,6 +181,7 @@ async function handleFindFirst(argv, _prompter) {
173
181
  hasConfirmUpload: true,
174
182
  confirmUploadDelay: true,
175
183
  fileEventsTableId: true,
184
+ defaultPermissions: true,
176
185
  apiName: true,
177
186
  privateApiName: true,
178
187
  };
@@ -208,6 +217,8 @@ async function handleGet(argv, prompter) {
208
217
  databaseId: true,
209
218
  schemaId: true,
210
219
  privateSchemaId: true,
220
+ publicSchemaName: true,
221
+ privateSchemaName: true,
211
222
  bucketsTableId: true,
212
223
  filesTableId: true,
213
224
  bucketsTableName: true,
@@ -238,6 +249,7 @@ async function handleGet(argv, prompter) {
238
249
  hasConfirmUpload: true,
239
250
  confirmUploadDelay: true,
240
251
  fileEventsTableId: true,
252
+ defaultPermissions: true,
241
253
  apiName: true,
242
254
  privateApiName: true,
243
255
  },
@@ -276,6 +288,20 @@ async function handleCreate(argv, prompter) {
276
288
  required: false,
277
289
  skipPrompt: true,
278
290
  },
291
+ {
292
+ type: 'text',
293
+ name: 'publicSchemaName',
294
+ message: 'publicSchemaName',
295
+ required: false,
296
+ skipPrompt: true,
297
+ },
298
+ {
299
+ type: 'text',
300
+ name: 'privateSchemaName',
301
+ message: 'privateSchemaName',
302
+ required: false,
303
+ skipPrompt: true,
304
+ },
279
305
  {
280
306
  type: 'text',
281
307
  name: 'bucketsTableId',
@@ -486,6 +512,13 @@ async function handleCreate(argv, prompter) {
486
512
  required: false,
487
513
  skipPrompt: true,
488
514
  },
515
+ {
516
+ type: 'text',
517
+ name: 'defaultPermissions',
518
+ message: 'defaultPermissions',
519
+ required: false,
520
+ skipPrompt: true,
521
+ },
489
522
  {
490
523
  type: 'text',
491
524
  name: 'apiName',
@@ -510,6 +543,8 @@ async function handleCreate(argv, prompter) {
510
543
  databaseId: cleanedData.databaseId,
511
544
  schemaId: cleanedData.schemaId,
512
545
  privateSchemaId: cleanedData.privateSchemaId,
546
+ publicSchemaName: cleanedData.publicSchemaName,
547
+ privateSchemaName: cleanedData.privateSchemaName,
513
548
  bucketsTableId: cleanedData.bucketsTableId,
514
549
  filesTableId: cleanedData.filesTableId,
515
550
  bucketsTableName: cleanedData.bucketsTableName,
@@ -540,6 +575,7 @@ async function handleCreate(argv, prompter) {
540
575
  hasConfirmUpload: cleanedData.hasConfirmUpload,
541
576
  confirmUploadDelay: cleanedData.confirmUploadDelay,
542
577
  fileEventsTableId: cleanedData.fileEventsTableId,
578
+ defaultPermissions: cleanedData.defaultPermissions,
543
579
  apiName: cleanedData.apiName,
544
580
  privateApiName: cleanedData.privateApiName,
545
581
  },
@@ -548,6 +584,8 @@ async function handleCreate(argv, prompter) {
548
584
  databaseId: true,
549
585
  schemaId: true,
550
586
  privateSchemaId: true,
587
+ publicSchemaName: true,
588
+ privateSchemaName: true,
551
589
  bucketsTableId: true,
552
590
  filesTableId: true,
553
591
  bucketsTableName: true,
@@ -578,6 +616,7 @@ async function handleCreate(argv, prompter) {
578
616
  hasConfirmUpload: true,
579
617
  confirmUploadDelay: true,
580
618
  fileEventsTableId: true,
619
+ defaultPermissions: true,
581
620
  apiName: true,
582
621
  privateApiName: true,
583
622
  },
@@ -622,6 +661,20 @@ async function handleUpdate(argv, prompter) {
622
661
  required: false,
623
662
  skipPrompt: true,
624
663
  },
664
+ {
665
+ type: 'text',
666
+ name: 'publicSchemaName',
667
+ message: 'publicSchemaName',
668
+ required: false,
669
+ skipPrompt: true,
670
+ },
671
+ {
672
+ type: 'text',
673
+ name: 'privateSchemaName',
674
+ message: 'privateSchemaName',
675
+ required: false,
676
+ skipPrompt: true,
677
+ },
625
678
  {
626
679
  type: 'text',
627
680
  name: 'bucketsTableId',
@@ -832,6 +885,13 @@ async function handleUpdate(argv, prompter) {
832
885
  required: false,
833
886
  skipPrompt: true,
834
887
  },
888
+ {
889
+ type: 'text',
890
+ name: 'defaultPermissions',
891
+ message: 'defaultPermissions',
892
+ required: false,
893
+ skipPrompt: true,
894
+ },
835
895
  {
836
896
  type: 'text',
837
897
  name: 'apiName',
@@ -859,6 +919,8 @@ async function handleUpdate(argv, prompter) {
859
919
  databaseId: cleanedData.databaseId,
860
920
  schemaId: cleanedData.schemaId,
861
921
  privateSchemaId: cleanedData.privateSchemaId,
922
+ publicSchemaName: cleanedData.publicSchemaName,
923
+ privateSchemaName: cleanedData.privateSchemaName,
862
924
  bucketsTableId: cleanedData.bucketsTableId,
863
925
  filesTableId: cleanedData.filesTableId,
864
926
  bucketsTableName: cleanedData.bucketsTableName,
@@ -889,6 +951,7 @@ async function handleUpdate(argv, prompter) {
889
951
  hasConfirmUpload: cleanedData.hasConfirmUpload,
890
952
  confirmUploadDelay: cleanedData.confirmUploadDelay,
891
953
  fileEventsTableId: cleanedData.fileEventsTableId,
954
+ defaultPermissions: cleanedData.defaultPermissions,
892
955
  apiName: cleanedData.apiName,
893
956
  privateApiName: cleanedData.privateApiName,
894
957
  },
@@ -897,6 +960,8 @@ async function handleUpdate(argv, prompter) {
897
960
  databaseId: true,
898
961
  schemaId: true,
899
962
  privateSchemaId: true,
963
+ publicSchemaName: true,
964
+ privateSchemaName: true,
900
965
  bucketsTableId: true,
901
966
  filesTableId: true,
902
967
  bucketsTableName: true,
@@ -927,6 +992,7 @@ async function handleUpdate(argv, prompter) {
927
992
  hasConfirmUpload: true,
928
993
  confirmUploadDelay: true,
929
994
  fileEventsTableId: true,
995
+ defaultPermissions: true,
930
996
  apiName: true,
931
997
  privateApiName: true,
932
998
  },