@constructive-sdk/cli 0.14.7 → 0.14.9

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
@@ -25,14 +25,8 @@ const fieldSchema = {
25
25
  createIndex: 'boolean',
26
26
  exposeInApi: 'boolean',
27
27
  nodes: 'json',
28
- grantRoles: 'string',
29
- grantPrivileges: 'json',
30
- policyType: 'string',
31
- policyPrivileges: 'string',
32
- policyRole: 'string',
33
- policyPermissive: 'boolean',
34
- policyName: 'string',
35
- policyData: 'json',
28
+ grants: 'json',
29
+ policies: 'json',
36
30
  outFieldId: 'uuid',
37
31
  outJunctionTableId: 'uuid',
38
32
  outSourceFieldId: 'uuid',
@@ -98,14 +92,8 @@ async function handleList(argv, _prompter) {
98
92
  createIndex: true,
99
93
  exposeInApi: true,
100
94
  nodes: true,
101
- grantRoles: true,
102
- grantPrivileges: true,
103
- policyType: true,
104
- policyPrivileges: true,
105
- policyRole: true,
106
- policyPermissive: true,
107
- policyName: true,
108
- policyData: true,
95
+ grants: true,
96
+ policies: true,
109
97
  outFieldId: true,
110
98
  outJunctionTableId: true,
111
99
  outSourceFieldId: true,
@@ -145,14 +133,8 @@ async function handleFindFirst(argv, _prompter) {
145
133
  createIndex: true,
146
134
  exposeInApi: true,
147
135
  nodes: true,
148
- grantRoles: true,
149
- grantPrivileges: true,
150
- policyType: true,
151
- policyPrivileges: true,
152
- policyRole: true,
153
- policyPermissive: true,
154
- policyName: true,
155
- policyData: true,
136
+ grants: true,
137
+ policies: true,
156
138
  outFieldId: true,
157
139
  outJunctionTableId: true,
158
140
  outSourceFieldId: true,
@@ -204,14 +186,8 @@ async function handleGet(argv, prompter) {
204
186
  createIndex: true,
205
187
  exposeInApi: true,
206
188
  nodes: true,
207
- grantRoles: true,
208
- grantPrivileges: true,
209
- policyType: true,
210
- policyPrivileges: true,
211
- policyRole: true,
212
- policyPermissive: true,
213
- policyName: true,
214
- policyData: true,
189
+ grants: true,
190
+ policies: true,
215
191
  outFieldId: true,
216
192
  outJunctionTableId: true,
217
193
  outSourceFieldId: true,
@@ -347,59 +323,17 @@ async function handleCreate(argv, prompter) {
347
323
  required: false,
348
324
  skipPrompt: true,
349
325
  },
350
- {
351
- type: 'text',
352
- name: 'grantRoles',
353
- message: 'grantRoles',
354
- required: false,
355
- skipPrompt: true,
356
- },
357
326
  {
358
327
  type: 'json',
359
- name: 'grantPrivileges',
360
- message: 'grantPrivileges',
361
- required: false,
362
- skipPrompt: true,
363
- },
364
- {
365
- type: 'text',
366
- name: 'policyType',
367
- message: 'policyType',
368
- required: false,
369
- skipPrompt: true,
370
- },
371
- {
372
- type: 'text',
373
- name: 'policyPrivileges',
374
- message: 'policyPrivileges',
375
- required: false,
376
- skipPrompt: true,
377
- },
378
- {
379
- type: 'text',
380
- name: 'policyRole',
381
- message: 'policyRole',
382
- required: false,
383
- skipPrompt: true,
384
- },
385
- {
386
- type: 'boolean',
387
- name: 'policyPermissive',
388
- message: 'policyPermissive',
389
- required: false,
390
- skipPrompt: true,
391
- },
392
- {
393
- type: 'text',
394
- name: 'policyName',
395
- message: 'policyName',
328
+ name: 'grants',
329
+ message: 'grants',
396
330
  required: false,
397
331
  skipPrompt: true,
398
332
  },
399
333
  {
400
334
  type: 'json',
401
- name: 'policyData',
402
- message: 'policyData',
335
+ name: 'policies',
336
+ message: 'policies',
403
337
  required: false,
404
338
  skipPrompt: true,
405
339
  },
@@ -455,14 +389,8 @@ async function handleCreate(argv, prompter) {
455
389
  createIndex: cleanedData.createIndex,
456
390
  exposeInApi: cleanedData.exposeInApi,
457
391
  nodes: cleanedData.nodes,
458
- grantRoles: cleanedData.grantRoles,
459
- grantPrivileges: cleanedData.grantPrivileges,
460
- policyType: cleanedData.policyType,
461
- policyPrivileges: cleanedData.policyPrivileges,
462
- policyRole: cleanedData.policyRole,
463
- policyPermissive: cleanedData.policyPermissive,
464
- policyName: cleanedData.policyName,
465
- policyData: cleanedData.policyData,
392
+ grants: cleanedData.grants,
393
+ policies: cleanedData.policies,
466
394
  outFieldId: cleanedData.outFieldId,
467
395
  outJunctionTableId: cleanedData.outJunctionTableId,
468
396
  outSourceFieldId: cleanedData.outSourceFieldId,
@@ -487,14 +415,8 @@ async function handleCreate(argv, prompter) {
487
415
  createIndex: true,
488
416
  exposeInApi: true,
489
417
  nodes: true,
490
- grantRoles: true,
491
- grantPrivileges: true,
492
- policyType: true,
493
- policyPrivileges: true,
494
- policyRole: true,
495
- policyPermissive: true,
496
- policyName: true,
497
- policyData: true,
418
+ grants: true,
419
+ policies: true,
498
420
  outFieldId: true,
499
421
  outJunctionTableId: true,
500
422
  outSourceFieldId: true,
@@ -636,59 +558,17 @@ async function handleUpdate(argv, prompter) {
636
558
  required: false,
637
559
  skipPrompt: true,
638
560
  },
639
- {
640
- type: 'text',
641
- name: 'grantRoles',
642
- message: 'grantRoles',
643
- required: false,
644
- skipPrompt: true,
645
- },
646
561
  {
647
562
  type: 'json',
648
- name: 'grantPrivileges',
649
- message: 'grantPrivileges',
650
- required: false,
651
- skipPrompt: true,
652
- },
653
- {
654
- type: 'text',
655
- name: 'policyType',
656
- message: 'policyType',
657
- required: false,
658
- skipPrompt: true,
659
- },
660
- {
661
- type: 'text',
662
- name: 'policyPrivileges',
663
- message: 'policyPrivileges',
664
- required: false,
665
- skipPrompt: true,
666
- },
667
- {
668
- type: 'text',
669
- name: 'policyRole',
670
- message: 'policyRole',
671
- required: false,
672
- skipPrompt: true,
673
- },
674
- {
675
- type: 'boolean',
676
- name: 'policyPermissive',
677
- message: 'policyPermissive',
678
- required: false,
679
- skipPrompt: true,
680
- },
681
- {
682
- type: 'text',
683
- name: 'policyName',
684
- message: 'policyName',
563
+ name: 'grants',
564
+ message: 'grants',
685
565
  required: false,
686
566
  skipPrompt: true,
687
567
  },
688
568
  {
689
569
  type: 'json',
690
- name: 'policyData',
691
- message: 'policyData',
570
+ name: 'policies',
571
+ message: 'policies',
692
572
  required: false,
693
573
  skipPrompt: true,
694
574
  },
@@ -747,14 +627,8 @@ async function handleUpdate(argv, prompter) {
747
627
  createIndex: cleanedData.createIndex,
748
628
  exposeInApi: cleanedData.exposeInApi,
749
629
  nodes: cleanedData.nodes,
750
- grantRoles: cleanedData.grantRoles,
751
- grantPrivileges: cleanedData.grantPrivileges,
752
- policyType: cleanedData.policyType,
753
- policyPrivileges: cleanedData.policyPrivileges,
754
- policyRole: cleanedData.policyRole,
755
- policyPermissive: cleanedData.policyPermissive,
756
- policyName: cleanedData.policyName,
757
- policyData: cleanedData.policyData,
630
+ grants: cleanedData.grants,
631
+ policies: cleanedData.policies,
758
632
  outFieldId: cleanedData.outFieldId,
759
633
  outJunctionTableId: cleanedData.outJunctionTableId,
760
634
  outSourceFieldId: cleanedData.outSourceFieldId,
@@ -779,14 +653,8 @@ async function handleUpdate(argv, prompter) {
779
653
  createIndex: true,
780
654
  exposeInApi: true,
781
655
  nodes: true,
782
- grantRoles: true,
783
- grantPrivileges: true,
784
- policyType: true,
785
- policyPrivileges: true,
786
- policyRole: true,
787
- policyPermissive: true,
788
- policyName: true,
789
- policyData: true,
656
+ grants: true,
657
+ policies: true,
790
658
  outFieldId: true,
791
659
  outJunctionTableId: true,
792
660
  outSourceFieldId: true,
@@ -15,14 +15,8 @@ const fieldSchema = {
15
15
  nodes: 'json',
16
16
  useRls: 'boolean',
17
17
  fields: 'json',
18
- grantRoles: 'string',
19
- grantPrivileges: 'json',
20
- policyType: 'string',
21
- policyPrivileges: 'string',
22
- policyRole: 'string',
23
- policyPermissive: 'boolean',
24
- policyName: 'string',
25
- policyData: 'json',
18
+ grants: 'json',
19
+ policies: 'json',
26
20
  outFields: 'uuid',
27
21
  };
28
22
  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';
@@ -75,14 +69,8 @@ async function handleList(argv, _prompter) {
75
69
  nodes: true,
76
70
  useRls: true,
77
71
  fields: true,
78
- grantRoles: true,
79
- grantPrivileges: true,
80
- policyType: true,
81
- policyPrivileges: true,
82
- policyRole: true,
83
- policyPermissive: true,
84
- policyName: true,
85
- policyData: true,
72
+ grants: true,
73
+ policies: true,
86
74
  outFields: true,
87
75
  };
88
76
  const findManyArgs = parseFindManyArgs(argv, defaultSelect);
@@ -109,14 +97,8 @@ async function handleFindFirst(argv, _prompter) {
109
97
  nodes: true,
110
98
  useRls: true,
111
99
  fields: true,
112
- grantRoles: true,
113
- grantPrivileges: true,
114
- policyType: true,
115
- policyPrivileges: true,
116
- policyRole: true,
117
- policyPermissive: true,
118
- policyName: true,
119
- policyData: true,
100
+ grants: true,
101
+ policies: true,
120
102
  outFields: true,
121
103
  };
122
104
  const findFirstArgs = parseFindFirstArgs(argv, defaultSelect);
@@ -155,14 +137,8 @@ async function handleGet(argv, prompter) {
155
137
  nodes: true,
156
138
  useRls: true,
157
139
  fields: true,
158
- grantRoles: true,
159
- grantPrivileges: true,
160
- policyType: true,
161
- policyPrivileges: true,
162
- policyRole: true,
163
- policyPermissive: true,
164
- policyName: true,
165
- policyData: true,
140
+ grants: true,
141
+ policies: true,
166
142
  outFields: true,
167
143
  },
168
144
  })
@@ -228,59 +204,17 @@ async function handleCreate(argv, prompter) {
228
204
  required: false,
229
205
  skipPrompt: true,
230
206
  },
231
- {
232
- type: 'text',
233
- name: 'grantRoles',
234
- message: 'grantRoles',
235
- required: false,
236
- skipPrompt: true,
237
- },
238
207
  {
239
208
  type: 'json',
240
- name: 'grantPrivileges',
241
- message: 'grantPrivileges',
242
- required: false,
243
- skipPrompt: true,
244
- },
245
- {
246
- type: 'text',
247
- name: 'policyType',
248
- message: 'policyType',
249
- required: false,
250
- skipPrompt: true,
251
- },
252
- {
253
- type: 'text',
254
- name: 'policyPrivileges',
255
- message: 'policyPrivileges',
256
- required: false,
257
- skipPrompt: true,
258
- },
259
- {
260
- type: 'text',
261
- name: 'policyRole',
262
- message: 'policyRole',
263
- required: false,
264
- skipPrompt: true,
265
- },
266
- {
267
- type: 'boolean',
268
- name: 'policyPermissive',
269
- message: 'policyPermissive',
270
- required: false,
271
- skipPrompt: true,
272
- },
273
- {
274
- type: 'text',
275
- name: 'policyName',
276
- message: 'policyName',
209
+ name: 'grants',
210
+ message: 'grants',
277
211
  required: false,
278
212
  skipPrompt: true,
279
213
  },
280
214
  {
281
215
  type: 'json',
282
- name: 'policyData',
283
- message: 'policyData',
216
+ name: 'policies',
217
+ message: 'policies',
284
218
  required: false,
285
219
  skipPrompt: true,
286
220
  },
@@ -305,14 +239,8 @@ async function handleCreate(argv, prompter) {
305
239
  nodes: cleanedData.nodes,
306
240
  useRls: cleanedData.useRls,
307
241
  fields: cleanedData.fields,
308
- grantRoles: cleanedData.grantRoles,
309
- grantPrivileges: cleanedData.grantPrivileges,
310
- policyType: cleanedData.policyType,
311
- policyPrivileges: cleanedData.policyPrivileges,
312
- policyRole: cleanedData.policyRole,
313
- policyPermissive: cleanedData.policyPermissive,
314
- policyName: cleanedData.policyName,
315
- policyData: cleanedData.policyData,
242
+ grants: cleanedData.grants,
243
+ policies: cleanedData.policies,
316
244
  outFields: cleanedData.outFields,
317
245
  },
318
246
  select: {
@@ -324,14 +252,8 @@ async function handleCreate(argv, prompter) {
324
252
  nodes: true,
325
253
  useRls: true,
326
254
  fields: true,
327
- grantRoles: true,
328
- grantPrivileges: true,
329
- policyType: true,
330
- policyPrivileges: true,
331
- policyRole: true,
332
- policyPermissive: true,
333
- policyName: true,
334
- policyData: true,
255
+ grants: true,
256
+ policies: true,
335
257
  outFields: true,
336
258
  },
337
259
  })
@@ -403,59 +325,17 @@ async function handleUpdate(argv, prompter) {
403
325
  required: false,
404
326
  skipPrompt: true,
405
327
  },
406
- {
407
- type: 'text',
408
- name: 'grantRoles',
409
- message: 'grantRoles',
410
- required: false,
411
- skipPrompt: true,
412
- },
413
328
  {
414
329
  type: 'json',
415
- name: 'grantPrivileges',
416
- message: 'grantPrivileges',
417
- required: false,
418
- skipPrompt: true,
419
- },
420
- {
421
- type: 'text',
422
- name: 'policyType',
423
- message: 'policyType',
424
- required: false,
425
- skipPrompt: true,
426
- },
427
- {
428
- type: 'text',
429
- name: 'policyPrivileges',
430
- message: 'policyPrivileges',
431
- required: false,
432
- skipPrompt: true,
433
- },
434
- {
435
- type: 'text',
436
- name: 'policyRole',
437
- message: 'policyRole',
438
- required: false,
439
- skipPrompt: true,
440
- },
441
- {
442
- type: 'boolean',
443
- name: 'policyPermissive',
444
- message: 'policyPermissive',
445
- required: false,
446
- skipPrompt: true,
447
- },
448
- {
449
- type: 'text',
450
- name: 'policyName',
451
- message: 'policyName',
330
+ name: 'grants',
331
+ message: 'grants',
452
332
  required: false,
453
333
  skipPrompt: true,
454
334
  },
455
335
  {
456
336
  type: 'json',
457
- name: 'policyData',
458
- message: 'policyData',
337
+ name: 'policies',
338
+ message: 'policies',
459
339
  required: false,
460
340
  skipPrompt: true,
461
341
  },
@@ -483,14 +363,8 @@ async function handleUpdate(argv, prompter) {
483
363
  nodes: cleanedData.nodes,
484
364
  useRls: cleanedData.useRls,
485
365
  fields: cleanedData.fields,
486
- grantRoles: cleanedData.grantRoles,
487
- grantPrivileges: cleanedData.grantPrivileges,
488
- policyType: cleanedData.policyType,
489
- policyPrivileges: cleanedData.policyPrivileges,
490
- policyRole: cleanedData.policyRole,
491
- policyPermissive: cleanedData.policyPermissive,
492
- policyName: cleanedData.policyName,
493
- policyData: cleanedData.policyData,
366
+ grants: cleanedData.grants,
367
+ policies: cleanedData.policies,
494
368
  outFields: cleanedData.outFields,
495
369
  },
496
370
  select: {
@@ -502,14 +376,8 @@ async function handleUpdate(argv, prompter) {
502
376
  nodes: true,
503
377
  useRls: true,
504
378
  fields: true,
505
- grantRoles: true,
506
- grantPrivileges: true,
507
- policyType: true,
508
- policyPrivileges: true,
509
- policyRole: true,
510
- policyPermissive: true,
511
- policyName: true,
512
- policyData: true,
379
+ grants: true,
380
+ policies: true,
513
381
  outFields: true,
514
382
  },
515
383
  })
@@ -17,6 +17,8 @@ const fieldSchema = {
17
17
  bucketsTableName: 'string',
18
18
  filesTableName: 'string',
19
19
  uploadRequestsTableName: 'string',
20
+ membershipType: 'int',
21
+ policies: 'string',
20
22
  entityTableId: 'uuid',
21
23
  endpoint: 'string',
22
24
  publicUrlPrefix: 'string',
@@ -80,6 +82,8 @@ async function handleList(argv, _prompter) {
80
82
  bucketsTableName: true,
81
83
  filesTableName: true,
82
84
  uploadRequestsTableName: true,
85
+ membershipType: true,
86
+ policies: true,
83
87
  entityTableId: true,
84
88
  endpoint: true,
85
89
  publicUrlPrefix: true,
@@ -117,6 +121,8 @@ async function handleFindFirst(argv, _prompter) {
117
121
  bucketsTableName: true,
118
122
  filesTableName: true,
119
123
  uploadRequestsTableName: true,
124
+ membershipType: true,
125
+ policies: true,
120
126
  entityTableId: true,
121
127
  endpoint: true,
122
128
  publicUrlPrefix: true,
@@ -166,6 +172,8 @@ async function handleGet(argv, prompter) {
166
172
  bucketsTableName: true,
167
173
  filesTableName: true,
168
174
  uploadRequestsTableName: true,
175
+ membershipType: true,
176
+ policies: true,
169
177
  entityTableId: true,
170
178
  endpoint: true,
171
179
  publicUrlPrefix: true,
@@ -254,6 +262,20 @@ async function handleCreate(argv, prompter) {
254
262
  required: false,
255
263
  skipPrompt: true,
256
264
  },
265
+ {
266
+ type: 'text',
267
+ name: 'membershipType',
268
+ message: 'membershipType',
269
+ required: false,
270
+ skipPrompt: true,
271
+ },
272
+ {
273
+ type: 'text',
274
+ name: 'policies',
275
+ message: 'policies',
276
+ required: false,
277
+ skipPrompt: true,
278
+ },
257
279
  {
258
280
  type: 'text',
259
281
  name: 'entityTableId',
@@ -340,6 +362,8 @@ async function handleCreate(argv, prompter) {
340
362
  bucketsTableName: cleanedData.bucketsTableName,
341
363
  filesTableName: cleanedData.filesTableName,
342
364
  uploadRequestsTableName: cleanedData.uploadRequestsTableName,
365
+ membershipType: cleanedData.membershipType,
366
+ policies: cleanedData.policies,
343
367
  entityTableId: cleanedData.entityTableId,
344
368
  endpoint: cleanedData.endpoint,
345
369
  publicUrlPrefix: cleanedData.publicUrlPrefix,
@@ -362,6 +386,8 @@ async function handleCreate(argv, prompter) {
362
386
  bucketsTableName: true,
363
387
  filesTableName: true,
364
388
  uploadRequestsTableName: true,
389
+ membershipType: true,
390
+ policies: true,
365
391
  entityTableId: true,
366
392
  endpoint: true,
367
393
  publicUrlPrefix: true,
@@ -456,6 +482,20 @@ async function handleUpdate(argv, prompter) {
456
482
  required: false,
457
483
  skipPrompt: true,
458
484
  },
485
+ {
486
+ type: 'text',
487
+ name: 'membershipType',
488
+ message: 'membershipType',
489
+ required: false,
490
+ skipPrompt: true,
491
+ },
492
+ {
493
+ type: 'text',
494
+ name: 'policies',
495
+ message: 'policies',
496
+ required: false,
497
+ skipPrompt: true,
498
+ },
459
499
  {
460
500
  type: 'text',
461
501
  name: 'entityTableId',
@@ -545,6 +585,8 @@ async function handleUpdate(argv, prompter) {
545
585
  bucketsTableName: cleanedData.bucketsTableName,
546
586
  filesTableName: cleanedData.filesTableName,
547
587
  uploadRequestsTableName: cleanedData.uploadRequestsTableName,
588
+ membershipType: cleanedData.membershipType,
589
+ policies: cleanedData.policies,
548
590
  entityTableId: cleanedData.entityTableId,
549
591
  endpoint: cleanedData.endpoint,
550
592
  publicUrlPrefix: cleanedData.publicUrlPrefix,
@@ -567,6 +609,8 @@ async function handleUpdate(argv, prompter) {
567
609
  bucketsTableName: true,
568
610
  filesTableName: true,
569
611
  uploadRequestsTableName: true,
612
+ membershipType: true,
613
+ policies: true,
570
614
  entityTableId: true,
571
615
  endpoint: true,
572
616
  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;