@constructive-sdk/cli 0.14.6 → 0.14.8

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 (155) hide show
  1. package/admin/cli/commands/org-membership-default.js +0 -44
  2. package/admin/cli/commands/org-membership-setting.d.ts +8 -0
  3. package/admin/cli/commands/org-membership-setting.js +418 -0
  4. package/admin/cli/commands.js +5 -3
  5. package/admin/cli/executor.d.ts +2 -1
  6. package/admin/orm/index.d.ts +4 -2
  7. package/admin/orm/index.js +4 -2
  8. package/admin/orm/input-types.d.ts +303 -142
  9. package/admin/orm/models/index.d.ts +2 -1
  10. package/admin/orm/models/index.js +5 -3
  11. package/admin/orm/models/orgMembershipSetting.d.ts +56 -0
  12. package/admin/orm/models/orgMembershipSetting.js +100 -0
  13. package/auth/cli/commands/crypto-address.js +22 -0
  14. package/auth/cli/commands/email.js +22 -0
  15. package/auth/cli/commands/identity-provider.d.ts +8 -0
  16. package/auth/cli/commands/identity-provider.js +164 -0
  17. package/auth/cli/commands/phone-number.js +22 -0
  18. package/auth/cli/commands/webauthn-credential.d.ts +8 -0
  19. package/auth/cli/commands/webauthn-credential.js +456 -0
  20. package/auth/cli/commands.js +7 -3
  21. package/auth/cli/executor.d.ts +7 -5
  22. package/auth/orm/index.d.ts +9 -5
  23. package/auth/orm/index.js +4 -0
  24. package/auth/orm/input-types.d.ts +525 -81
  25. package/auth/orm/input-types.js +1 -0
  26. package/auth/orm/models/identityProvider.d.ts +32 -0
  27. package/auth/orm/models/identityProvider.js +55 -0
  28. package/auth/orm/models/index.d.ts +2 -0
  29. package/auth/orm/models/index.js +5 -1
  30. package/auth/orm/models/webauthnCredential.d.ts +56 -0
  31. package/auth/orm/models/webauthnCredential.js +100 -0
  32. package/auth/orm/mutation/index.d.ts +9 -9
  33. package/auth/orm/mutation/index.js +12 -12
  34. package/esm/admin/cli/commands/org-membership-default.js +0 -44
  35. package/esm/admin/cli/commands/org-membership-setting.d.ts +8 -0
  36. package/esm/admin/cli/commands/org-membership-setting.js +416 -0
  37. package/esm/admin/cli/commands.js +5 -3
  38. package/esm/admin/cli/executor.d.ts +2 -1
  39. package/esm/admin/orm/index.d.ts +4 -2
  40. package/esm/admin/orm/index.js +4 -2
  41. package/esm/admin/orm/input-types.d.ts +303 -142
  42. package/esm/admin/orm/models/index.d.ts +2 -1
  43. package/esm/admin/orm/models/index.js +2 -1
  44. package/esm/admin/orm/models/orgMembershipSetting.d.ts +56 -0
  45. package/esm/admin/orm/models/orgMembershipSetting.js +96 -0
  46. package/esm/auth/cli/commands/crypto-address.js +22 -0
  47. package/esm/auth/cli/commands/email.js +22 -0
  48. package/esm/auth/cli/commands/identity-provider.d.ts +8 -0
  49. package/esm/auth/cli/commands/identity-provider.js +162 -0
  50. package/esm/auth/cli/commands/phone-number.js +22 -0
  51. package/esm/auth/cli/commands/webauthn-credential.d.ts +8 -0
  52. package/esm/auth/cli/commands/webauthn-credential.js +454 -0
  53. package/esm/auth/cli/commands.js +7 -3
  54. package/esm/auth/cli/executor.d.ts +7 -5
  55. package/esm/auth/orm/index.d.ts +9 -5
  56. package/esm/auth/orm/index.js +4 -0
  57. package/esm/auth/orm/input-types.d.ts +525 -81
  58. package/esm/auth/orm/input-types.js +1 -0
  59. package/esm/auth/orm/models/identityProvider.d.ts +32 -0
  60. package/esm/auth/orm/models/identityProvider.js +51 -0
  61. package/esm/auth/orm/models/index.d.ts +2 -0
  62. package/esm/auth/orm/models/index.js +2 -0
  63. package/esm/auth/orm/models/webauthnCredential.d.ts +56 -0
  64. package/esm/auth/orm/models/webauthnCredential.js +96 -0
  65. package/esm/auth/orm/mutation/index.d.ts +9 -9
  66. package/esm/auth/orm/mutation/index.js +12 -12
  67. package/esm/objects/orm/input-types.d.ts +12 -0
  68. package/esm/public/cli/commands/crypto-address.js +22 -0
  69. package/esm/public/cli/commands/email.js +22 -0
  70. package/esm/public/cli/commands/entity-type-provision.js +110 -0
  71. package/esm/public/cli/commands/identity-provider.d.ts +8 -0
  72. package/esm/public/cli/commands/identity-provider.js +162 -0
  73. package/esm/public/cli/commands/identity-providers-module.d.ts +8 -0
  74. package/esm/public/cli/commands/identity-providers-module.js +316 -0
  75. package/esm/public/cli/commands/memberships-module.js +44 -0
  76. package/esm/public/cli/commands/notifications-module.d.ts +8 -0
  77. package/esm/public/cli/commands/notifications-module.js +448 -0
  78. package/esm/public/cli/commands/org-membership-default.js +0 -44
  79. package/esm/public/cli/commands/org-membership-setting.d.ts +8 -0
  80. package/esm/public/cli/commands/org-membership-setting.js +416 -0
  81. package/esm/public/cli/commands/phone-number.js +22 -0
  82. package/esm/public/cli/commands/relation-provision.js +24 -156
  83. package/esm/public/cli/commands/secure-table-provision.js +24 -156
  84. package/esm/public/cli/commands/storage-module.js +44 -0
  85. package/esm/public/cli/commands/webauthn-auth-module.d.ts +8 -0
  86. package/esm/public/cli/commands/webauthn-auth-module.js +536 -0
  87. package/esm/public/cli/commands/webauthn-credential.d.ts +8 -0
  88. package/esm/public/cli/commands/webauthn-credential.js +454 -0
  89. package/esm/public/cli/commands.js +17 -5
  90. package/esm/public/cli/executor.d.ts +12 -6
  91. package/esm/public/orm/index.d.ts +19 -7
  92. package/esm/public/orm/index.js +14 -2
  93. package/esm/public/orm/input-types.d.ts +1827 -366
  94. package/esm/public/orm/input-types.js +7 -0
  95. package/esm/public/orm/models/identityProvider.d.ts +32 -0
  96. package/esm/public/orm/models/identityProvider.js +51 -0
  97. package/esm/public/orm/models/identityProvidersModule.d.ts +56 -0
  98. package/esm/public/orm/models/identityProvidersModule.js +96 -0
  99. package/esm/public/orm/models/index.d.ts +7 -1
  100. package/esm/public/orm/models/index.js +7 -1
  101. package/esm/public/orm/models/notificationsModule.d.ts +56 -0
  102. package/esm/public/orm/models/notificationsModule.js +96 -0
  103. package/esm/public/orm/models/orgMembershipSetting.d.ts +56 -0
  104. package/esm/public/orm/models/orgMembershipSetting.js +96 -0
  105. package/esm/public/orm/models/webauthnAuthModule.d.ts +56 -0
  106. package/esm/public/orm/models/webauthnAuthModule.js +96 -0
  107. package/esm/public/orm/models/webauthnCredential.d.ts +56 -0
  108. package/esm/public/orm/models/webauthnCredential.js +96 -0
  109. package/esm/public/orm/mutation/index.d.ts +9 -9
  110. package/esm/public/orm/mutation/index.js +12 -12
  111. package/objects/orm/input-types.d.ts +12 -0
  112. package/package.json +3 -3
  113. package/public/cli/commands/crypto-address.js +22 -0
  114. package/public/cli/commands/email.js +22 -0
  115. package/public/cli/commands/entity-type-provision.js +110 -0
  116. package/public/cli/commands/identity-provider.d.ts +8 -0
  117. package/public/cli/commands/identity-provider.js +164 -0
  118. package/public/cli/commands/identity-providers-module.d.ts +8 -0
  119. package/public/cli/commands/identity-providers-module.js +318 -0
  120. package/public/cli/commands/memberships-module.js +44 -0
  121. package/public/cli/commands/notifications-module.d.ts +8 -0
  122. package/public/cli/commands/notifications-module.js +450 -0
  123. package/public/cli/commands/org-membership-default.js +0 -44
  124. package/public/cli/commands/org-membership-setting.d.ts +8 -0
  125. package/public/cli/commands/org-membership-setting.js +418 -0
  126. package/public/cli/commands/phone-number.js +22 -0
  127. package/public/cli/commands/relation-provision.js +24 -156
  128. package/public/cli/commands/secure-table-provision.js +24 -156
  129. package/public/cli/commands/storage-module.js +44 -0
  130. package/public/cli/commands/webauthn-auth-module.d.ts +8 -0
  131. package/public/cli/commands/webauthn-auth-module.js +538 -0
  132. package/public/cli/commands/webauthn-credential.d.ts +8 -0
  133. package/public/cli/commands/webauthn-credential.js +456 -0
  134. package/public/cli/commands.js +17 -5
  135. package/public/cli/executor.d.ts +12 -6
  136. package/public/orm/index.d.ts +19 -7
  137. package/public/orm/index.js +14 -2
  138. package/public/orm/input-types.d.ts +1827 -366
  139. package/public/orm/input-types.js +7 -0
  140. package/public/orm/models/identityProvider.d.ts +32 -0
  141. package/public/orm/models/identityProvider.js +55 -0
  142. package/public/orm/models/identityProvidersModule.d.ts +56 -0
  143. package/public/orm/models/identityProvidersModule.js +100 -0
  144. package/public/orm/models/index.d.ts +7 -1
  145. package/public/orm/models/index.js +17 -5
  146. package/public/orm/models/notificationsModule.d.ts +56 -0
  147. package/public/orm/models/notificationsModule.js +100 -0
  148. package/public/orm/models/orgMembershipSetting.d.ts +56 -0
  149. package/public/orm/models/orgMembershipSetting.js +100 -0
  150. package/public/orm/models/webauthnAuthModule.d.ts +56 -0
  151. package/public/orm/models/webauthnAuthModule.js +100 -0
  152. package/public/orm/models/webauthnCredential.d.ts +56 -0
  153. package/public/orm/models/webauthnCredential.js +100 -0
  154. package/public/orm/mutation/index.d.ts +9 -9
  155. package/public/orm/mutation/index.js +12 -12
@@ -27,14 +27,8 @@ const fieldSchema = {
27
27
  createIndex: 'boolean',
28
28
  exposeInApi: 'boolean',
29
29
  nodes: 'json',
30
- grantRoles: 'string',
31
- grantPrivileges: 'json',
32
- policyType: 'string',
33
- policyPrivileges: 'string',
34
- policyRole: 'string',
35
- policyPermissive: 'boolean',
36
- policyName: 'string',
37
- policyData: 'json',
30
+ grants: 'json',
31
+ policies: 'json',
38
32
  outFieldId: 'uuid',
39
33
  outJunctionTableId: 'uuid',
40
34
  outSourceFieldId: 'uuid',
@@ -100,14 +94,8 @@ async function handleList(argv, _prompter) {
100
94
  createIndex: true,
101
95
  exposeInApi: true,
102
96
  nodes: true,
103
- grantRoles: true,
104
- grantPrivileges: true,
105
- policyType: true,
106
- policyPrivileges: true,
107
- policyRole: true,
108
- policyPermissive: true,
109
- policyName: true,
110
- policyData: true,
97
+ grants: true,
98
+ policies: true,
111
99
  outFieldId: true,
112
100
  outJunctionTableId: true,
113
101
  outSourceFieldId: true,
@@ -147,14 +135,8 @@ async function handleFindFirst(argv, _prompter) {
147
135
  createIndex: true,
148
136
  exposeInApi: true,
149
137
  nodes: true,
150
- grantRoles: true,
151
- grantPrivileges: true,
152
- policyType: true,
153
- policyPrivileges: true,
154
- policyRole: true,
155
- policyPermissive: true,
156
- policyName: true,
157
- policyData: true,
138
+ grants: true,
139
+ policies: true,
158
140
  outFieldId: true,
159
141
  outJunctionTableId: true,
160
142
  outSourceFieldId: true,
@@ -206,14 +188,8 @@ async function handleGet(argv, prompter) {
206
188
  createIndex: true,
207
189
  exposeInApi: true,
208
190
  nodes: true,
209
- grantRoles: true,
210
- grantPrivileges: true,
211
- policyType: true,
212
- policyPrivileges: true,
213
- policyRole: true,
214
- policyPermissive: true,
215
- policyName: true,
216
- policyData: true,
191
+ grants: true,
192
+ policies: true,
217
193
  outFieldId: true,
218
194
  outJunctionTableId: true,
219
195
  outSourceFieldId: true,
@@ -349,59 +325,17 @@ async function handleCreate(argv, prompter) {
349
325
  required: false,
350
326
  skipPrompt: true,
351
327
  },
352
- {
353
- type: 'text',
354
- name: 'grantRoles',
355
- message: 'grantRoles',
356
- required: false,
357
- skipPrompt: true,
358
- },
359
328
  {
360
329
  type: 'json',
361
- name: 'grantPrivileges',
362
- message: 'grantPrivileges',
363
- required: false,
364
- skipPrompt: true,
365
- },
366
- {
367
- type: 'text',
368
- name: 'policyType',
369
- message: 'policyType',
370
- required: false,
371
- skipPrompt: true,
372
- },
373
- {
374
- type: 'text',
375
- name: 'policyPrivileges',
376
- message: 'policyPrivileges',
377
- required: false,
378
- skipPrompt: true,
379
- },
380
- {
381
- type: 'text',
382
- name: 'policyRole',
383
- message: 'policyRole',
384
- required: false,
385
- skipPrompt: true,
386
- },
387
- {
388
- type: 'boolean',
389
- name: 'policyPermissive',
390
- message: 'policyPermissive',
391
- required: false,
392
- skipPrompt: true,
393
- },
394
- {
395
- type: 'text',
396
- name: 'policyName',
397
- message: 'policyName',
330
+ name: 'grants',
331
+ message: 'grants',
398
332
  required: false,
399
333
  skipPrompt: true,
400
334
  },
401
335
  {
402
336
  type: 'json',
403
- name: 'policyData',
404
- message: 'policyData',
337
+ name: 'policies',
338
+ message: 'policies',
405
339
  required: false,
406
340
  skipPrompt: true,
407
341
  },
@@ -457,14 +391,8 @@ async function handleCreate(argv, prompter) {
457
391
  createIndex: cleanedData.createIndex,
458
392
  exposeInApi: cleanedData.exposeInApi,
459
393
  nodes: cleanedData.nodes,
460
- grantRoles: cleanedData.grantRoles,
461
- grantPrivileges: cleanedData.grantPrivileges,
462
- policyType: cleanedData.policyType,
463
- policyPrivileges: cleanedData.policyPrivileges,
464
- policyRole: cleanedData.policyRole,
465
- policyPermissive: cleanedData.policyPermissive,
466
- policyName: cleanedData.policyName,
467
- policyData: cleanedData.policyData,
394
+ grants: cleanedData.grants,
395
+ policies: cleanedData.policies,
468
396
  outFieldId: cleanedData.outFieldId,
469
397
  outJunctionTableId: cleanedData.outJunctionTableId,
470
398
  outSourceFieldId: cleanedData.outSourceFieldId,
@@ -489,14 +417,8 @@ async function handleCreate(argv, prompter) {
489
417
  createIndex: true,
490
418
  exposeInApi: true,
491
419
  nodes: true,
492
- grantRoles: true,
493
- grantPrivileges: true,
494
- policyType: true,
495
- policyPrivileges: true,
496
- policyRole: true,
497
- policyPermissive: true,
498
- policyName: true,
499
- policyData: true,
420
+ grants: true,
421
+ policies: true,
500
422
  outFieldId: true,
501
423
  outJunctionTableId: true,
502
424
  outSourceFieldId: true,
@@ -638,59 +560,17 @@ async function handleUpdate(argv, prompter) {
638
560
  required: false,
639
561
  skipPrompt: true,
640
562
  },
641
- {
642
- type: 'text',
643
- name: 'grantRoles',
644
- message: 'grantRoles',
645
- required: false,
646
- skipPrompt: true,
647
- },
648
563
  {
649
564
  type: 'json',
650
- name: 'grantPrivileges',
651
- message: 'grantPrivileges',
652
- required: false,
653
- skipPrompt: true,
654
- },
655
- {
656
- type: 'text',
657
- name: 'policyType',
658
- message: 'policyType',
659
- required: false,
660
- skipPrompt: true,
661
- },
662
- {
663
- type: 'text',
664
- name: 'policyPrivileges',
665
- message: 'policyPrivileges',
666
- required: false,
667
- skipPrompt: true,
668
- },
669
- {
670
- type: 'text',
671
- name: 'policyRole',
672
- message: 'policyRole',
673
- required: false,
674
- skipPrompt: true,
675
- },
676
- {
677
- type: 'boolean',
678
- name: 'policyPermissive',
679
- message: 'policyPermissive',
680
- required: false,
681
- skipPrompt: true,
682
- },
683
- {
684
- type: 'text',
685
- name: 'policyName',
686
- message: 'policyName',
565
+ name: 'grants',
566
+ message: 'grants',
687
567
  required: false,
688
568
  skipPrompt: true,
689
569
  },
690
570
  {
691
571
  type: 'json',
692
- name: 'policyData',
693
- message: 'policyData',
572
+ name: 'policies',
573
+ message: 'policies',
694
574
  required: false,
695
575
  skipPrompt: true,
696
576
  },
@@ -749,14 +629,8 @@ async function handleUpdate(argv, prompter) {
749
629
  createIndex: cleanedData.createIndex,
750
630
  exposeInApi: cleanedData.exposeInApi,
751
631
  nodes: cleanedData.nodes,
752
- grantRoles: cleanedData.grantRoles,
753
- grantPrivileges: cleanedData.grantPrivileges,
754
- policyType: cleanedData.policyType,
755
- policyPrivileges: cleanedData.policyPrivileges,
756
- policyRole: cleanedData.policyRole,
757
- policyPermissive: cleanedData.policyPermissive,
758
- policyName: cleanedData.policyName,
759
- policyData: cleanedData.policyData,
632
+ grants: cleanedData.grants,
633
+ policies: cleanedData.policies,
760
634
  outFieldId: cleanedData.outFieldId,
761
635
  outJunctionTableId: cleanedData.outJunctionTableId,
762
636
  outSourceFieldId: cleanedData.outSourceFieldId,
@@ -781,14 +655,8 @@ async function handleUpdate(argv, prompter) {
781
655
  createIndex: true,
782
656
  exposeInApi: true,
783
657
  nodes: true,
784
- grantRoles: true,
785
- grantPrivileges: true,
786
- policyType: true,
787
- policyPrivileges: true,
788
- policyRole: true,
789
- policyPermissive: true,
790
- policyName: true,
791
- policyData: true,
658
+ grants: true,
659
+ policies: true,
792
660
  outFieldId: true,
793
661
  outJunctionTableId: true,
794
662
  outSourceFieldId: true,
@@ -17,14 +17,8 @@ const fieldSchema = {
17
17
  nodes: 'json',
18
18
  useRls: 'boolean',
19
19
  fields: 'json',
20
- grantRoles: 'string',
21
- grantPrivileges: 'json',
22
- policyType: 'string',
23
- policyPrivileges: 'string',
24
- policyRole: 'string',
25
- policyPermissive: 'boolean',
26
- policyName: 'string',
27
- policyData: 'json',
20
+ grants: 'json',
21
+ policies: 'json',
28
22
  outFields: 'uuid',
29
23
  };
30
24
  const usage = '\nsecure-table-provision <command>\n\nCommands:\n list List secureTableProvision records\n find-first Find first matching secureTableProvision record\n get Get a secureTableProvision by ID\n create Create a new secureTableProvision\n update Update an existing secureTableProvision\n delete Delete a secureTableProvision\n\nList Options:\n --limit <n> Max number of records to return (forward pagination)\n --last <n> Number of records from the end (backward pagination)\n --after <cursor> Cursor for forward pagination\n --before <cursor> Cursor for backward pagination\n --offset <n> Number of records to skip\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.<f>.<op> Condition filter (dot-notation)\n\n --help, -h Show this help message\n';
@@ -77,14 +71,8 @@ async function handleList(argv, _prompter) {
77
71
  nodes: true,
78
72
  useRls: true,
79
73
  fields: true,
80
- grantRoles: true,
81
- grantPrivileges: true,
82
- policyType: true,
83
- policyPrivileges: true,
84
- policyRole: true,
85
- policyPermissive: true,
86
- policyName: true,
87
- policyData: true,
74
+ grants: true,
75
+ policies: true,
88
76
  outFields: true,
89
77
  };
90
78
  const findManyArgs = (0, utils_1.parseFindManyArgs)(argv, defaultSelect);
@@ -111,14 +99,8 @@ async function handleFindFirst(argv, _prompter) {
111
99
  nodes: true,
112
100
  useRls: true,
113
101
  fields: true,
114
- grantRoles: true,
115
- grantPrivileges: true,
116
- policyType: true,
117
- policyPrivileges: true,
118
- policyRole: true,
119
- policyPermissive: true,
120
- policyName: true,
121
- policyData: true,
102
+ grants: true,
103
+ policies: true,
122
104
  outFields: true,
123
105
  };
124
106
  const findFirstArgs = (0, utils_1.parseFindFirstArgs)(argv, defaultSelect);
@@ -157,14 +139,8 @@ async function handleGet(argv, prompter) {
157
139
  nodes: true,
158
140
  useRls: true,
159
141
  fields: true,
160
- grantRoles: true,
161
- grantPrivileges: true,
162
- policyType: true,
163
- policyPrivileges: true,
164
- policyRole: true,
165
- policyPermissive: true,
166
- policyName: true,
167
- policyData: true,
142
+ grants: true,
143
+ policies: true,
168
144
  outFields: true,
169
145
  },
170
146
  })
@@ -230,59 +206,17 @@ async function handleCreate(argv, prompter) {
230
206
  required: false,
231
207
  skipPrompt: true,
232
208
  },
233
- {
234
- type: 'text',
235
- name: 'grantRoles',
236
- message: 'grantRoles',
237
- required: false,
238
- skipPrompt: true,
239
- },
240
209
  {
241
210
  type: 'json',
242
- name: 'grantPrivileges',
243
- message: 'grantPrivileges',
244
- required: false,
245
- skipPrompt: true,
246
- },
247
- {
248
- type: 'text',
249
- name: 'policyType',
250
- message: 'policyType',
251
- required: false,
252
- skipPrompt: true,
253
- },
254
- {
255
- type: 'text',
256
- name: 'policyPrivileges',
257
- message: 'policyPrivileges',
258
- required: false,
259
- skipPrompt: true,
260
- },
261
- {
262
- type: 'text',
263
- name: 'policyRole',
264
- message: 'policyRole',
265
- required: false,
266
- skipPrompt: true,
267
- },
268
- {
269
- type: 'boolean',
270
- name: 'policyPermissive',
271
- message: 'policyPermissive',
272
- required: false,
273
- skipPrompt: true,
274
- },
275
- {
276
- type: 'text',
277
- name: 'policyName',
278
- message: 'policyName',
211
+ name: 'grants',
212
+ message: 'grants',
279
213
  required: false,
280
214
  skipPrompt: true,
281
215
  },
282
216
  {
283
217
  type: 'json',
284
- name: 'policyData',
285
- message: 'policyData',
218
+ name: 'policies',
219
+ message: 'policies',
286
220
  required: false,
287
221
  skipPrompt: true,
288
222
  },
@@ -307,14 +241,8 @@ async function handleCreate(argv, prompter) {
307
241
  nodes: cleanedData.nodes,
308
242
  useRls: cleanedData.useRls,
309
243
  fields: cleanedData.fields,
310
- grantRoles: cleanedData.grantRoles,
311
- grantPrivileges: cleanedData.grantPrivileges,
312
- policyType: cleanedData.policyType,
313
- policyPrivileges: cleanedData.policyPrivileges,
314
- policyRole: cleanedData.policyRole,
315
- policyPermissive: cleanedData.policyPermissive,
316
- policyName: cleanedData.policyName,
317
- policyData: cleanedData.policyData,
244
+ grants: cleanedData.grants,
245
+ policies: cleanedData.policies,
318
246
  outFields: cleanedData.outFields,
319
247
  },
320
248
  select: {
@@ -326,14 +254,8 @@ async function handleCreate(argv, prompter) {
326
254
  nodes: true,
327
255
  useRls: true,
328
256
  fields: true,
329
- grantRoles: true,
330
- grantPrivileges: true,
331
- policyType: true,
332
- policyPrivileges: true,
333
- policyRole: true,
334
- policyPermissive: true,
335
- policyName: true,
336
- policyData: true,
257
+ grants: true,
258
+ policies: true,
337
259
  outFields: true,
338
260
  },
339
261
  })
@@ -405,59 +327,17 @@ async function handleUpdate(argv, prompter) {
405
327
  required: false,
406
328
  skipPrompt: true,
407
329
  },
408
- {
409
- type: 'text',
410
- name: 'grantRoles',
411
- message: 'grantRoles',
412
- required: false,
413
- skipPrompt: true,
414
- },
415
330
  {
416
331
  type: 'json',
417
- name: 'grantPrivileges',
418
- message: 'grantPrivileges',
419
- required: false,
420
- skipPrompt: true,
421
- },
422
- {
423
- type: 'text',
424
- name: 'policyType',
425
- message: 'policyType',
426
- required: false,
427
- skipPrompt: true,
428
- },
429
- {
430
- type: 'text',
431
- name: 'policyPrivileges',
432
- message: 'policyPrivileges',
433
- required: false,
434
- skipPrompt: true,
435
- },
436
- {
437
- type: 'text',
438
- name: 'policyRole',
439
- message: 'policyRole',
440
- required: false,
441
- skipPrompt: true,
442
- },
443
- {
444
- type: 'boolean',
445
- name: 'policyPermissive',
446
- message: 'policyPermissive',
447
- required: false,
448
- skipPrompt: true,
449
- },
450
- {
451
- type: 'text',
452
- name: 'policyName',
453
- message: 'policyName',
332
+ name: 'grants',
333
+ message: 'grants',
454
334
  required: false,
455
335
  skipPrompt: true,
456
336
  },
457
337
  {
458
338
  type: 'json',
459
- name: 'policyData',
460
- message: 'policyData',
339
+ name: 'policies',
340
+ message: 'policies',
461
341
  required: false,
462
342
  skipPrompt: true,
463
343
  },
@@ -485,14 +365,8 @@ async function handleUpdate(argv, prompter) {
485
365
  nodes: cleanedData.nodes,
486
366
  useRls: cleanedData.useRls,
487
367
  fields: cleanedData.fields,
488
- grantRoles: cleanedData.grantRoles,
489
- grantPrivileges: cleanedData.grantPrivileges,
490
- policyType: cleanedData.policyType,
491
- policyPrivileges: cleanedData.policyPrivileges,
492
- policyRole: cleanedData.policyRole,
493
- policyPermissive: cleanedData.policyPermissive,
494
- policyName: cleanedData.policyName,
495
- policyData: cleanedData.policyData,
368
+ grants: cleanedData.grants,
369
+ policies: cleanedData.policies,
496
370
  outFields: cleanedData.outFields,
497
371
  },
498
372
  select: {
@@ -504,14 +378,8 @@ async function handleUpdate(argv, prompter) {
504
378
  nodes: true,
505
379
  useRls: true,
506
380
  fields: true,
507
- grantRoles: true,
508
- grantPrivileges: true,
509
- policyType: true,
510
- policyPrivileges: true,
511
- policyRole: true,
512
- policyPermissive: true,
513
- policyName: true,
514
- policyData: true,
381
+ grants: true,
382
+ policies: true,
515
383
  outFields: true,
516
384
  },
517
385
  })
@@ -19,6 +19,8 @@ const fieldSchema = {
19
19
  bucketsTableName: 'string',
20
20
  filesTableName: 'string',
21
21
  uploadRequestsTableName: 'string',
22
+ membershipType: 'int',
23
+ policies: 'string',
22
24
  entityTableId: 'uuid',
23
25
  endpoint: 'string',
24
26
  publicUrlPrefix: 'string',
@@ -82,6 +84,8 @@ async function handleList(argv, _prompter) {
82
84
  bucketsTableName: true,
83
85
  filesTableName: true,
84
86
  uploadRequestsTableName: true,
87
+ membershipType: true,
88
+ policies: true,
85
89
  entityTableId: true,
86
90
  endpoint: true,
87
91
  publicUrlPrefix: true,
@@ -119,6 +123,8 @@ async function handleFindFirst(argv, _prompter) {
119
123
  bucketsTableName: true,
120
124
  filesTableName: true,
121
125
  uploadRequestsTableName: true,
126
+ membershipType: true,
127
+ policies: true,
122
128
  entityTableId: true,
123
129
  endpoint: true,
124
130
  publicUrlPrefix: true,
@@ -168,6 +174,8 @@ async function handleGet(argv, prompter) {
168
174
  bucketsTableName: true,
169
175
  filesTableName: true,
170
176
  uploadRequestsTableName: true,
177
+ membershipType: true,
178
+ policies: true,
171
179
  entityTableId: true,
172
180
  endpoint: true,
173
181
  publicUrlPrefix: true,
@@ -256,6 +264,20 @@ async function handleCreate(argv, prompter) {
256
264
  required: false,
257
265
  skipPrompt: true,
258
266
  },
267
+ {
268
+ type: 'text',
269
+ name: 'membershipType',
270
+ message: 'membershipType',
271
+ required: false,
272
+ skipPrompt: true,
273
+ },
274
+ {
275
+ type: 'text',
276
+ name: 'policies',
277
+ message: 'policies',
278
+ required: false,
279
+ skipPrompt: true,
280
+ },
259
281
  {
260
282
  type: 'text',
261
283
  name: 'entityTableId',
@@ -342,6 +364,8 @@ async function handleCreate(argv, prompter) {
342
364
  bucketsTableName: cleanedData.bucketsTableName,
343
365
  filesTableName: cleanedData.filesTableName,
344
366
  uploadRequestsTableName: cleanedData.uploadRequestsTableName,
367
+ membershipType: cleanedData.membershipType,
368
+ policies: cleanedData.policies,
345
369
  entityTableId: cleanedData.entityTableId,
346
370
  endpoint: cleanedData.endpoint,
347
371
  publicUrlPrefix: cleanedData.publicUrlPrefix,
@@ -364,6 +388,8 @@ async function handleCreate(argv, prompter) {
364
388
  bucketsTableName: true,
365
389
  filesTableName: true,
366
390
  uploadRequestsTableName: true,
391
+ membershipType: true,
392
+ policies: true,
367
393
  entityTableId: true,
368
394
  endpoint: true,
369
395
  publicUrlPrefix: true,
@@ -458,6 +484,20 @@ async function handleUpdate(argv, prompter) {
458
484
  required: false,
459
485
  skipPrompt: true,
460
486
  },
487
+ {
488
+ type: 'text',
489
+ name: 'membershipType',
490
+ message: 'membershipType',
491
+ required: false,
492
+ skipPrompt: true,
493
+ },
494
+ {
495
+ type: 'text',
496
+ name: 'policies',
497
+ message: 'policies',
498
+ required: false,
499
+ skipPrompt: true,
500
+ },
461
501
  {
462
502
  type: 'text',
463
503
  name: 'entityTableId',
@@ -547,6 +587,8 @@ async function handleUpdate(argv, prompter) {
547
587
  bucketsTableName: cleanedData.bucketsTableName,
548
588
  filesTableName: cleanedData.filesTableName,
549
589
  uploadRequestsTableName: cleanedData.uploadRequestsTableName,
590
+ membershipType: cleanedData.membershipType,
591
+ policies: cleanedData.policies,
550
592
  entityTableId: cleanedData.entityTableId,
551
593
  endpoint: cleanedData.endpoint,
552
594
  publicUrlPrefix: cleanedData.publicUrlPrefix,
@@ -569,6 +611,8 @@ async function handleUpdate(argv, prompter) {
569
611
  bucketsTableName: true,
570
612
  filesTableName: true,
571
613
  uploadRequestsTableName: true,
614
+ membershipType: true,
615
+ policies: true,
572
616
  entityTableId: true,
573
617
  endpoint: true,
574
618
  publicUrlPrefix: true,
@@ -0,0 +1,8 @@
1
+ /**
2
+ * CLI commands for WebauthnAuthModule
3
+ * @generated by @constructive-io/graphql-codegen
4
+ * DO NOT EDIT - changes will be overwritten
5
+ */
6
+ import { CLIOptions, Inquirerer } from 'inquirerer';
7
+ declare const _default: (argv: Partial<Record<string, unknown>>, prompter: Inquirerer, _options: CLIOptions) => Promise<void>;
8
+ export default _default;