@capgo/cli 7.62.2 → 7.64.0

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 (109) hide show
  1. package/README.md +33 -2
  2. package/dist/index.js +413 -392
  3. package/dist/package.json +2 -3
  4. package/dist/src/api/app.d.ts +2 -2
  5. package/dist/src/api/channels.d.ts +952 -63
  6. package/dist/src/api/cryptoV2.d.ts +0 -1
  7. package/dist/src/api/update.d.ts +0 -1
  8. package/dist/src/api/versions.d.ts +0 -1
  9. package/dist/src/app/add.d.ts +0 -1
  10. package/dist/src/app/debug.d.ts +0 -1
  11. package/dist/src/app/delete.d.ts +0 -1
  12. package/dist/src/app/info.d.ts +0 -1
  13. package/dist/src/app/list.d.ts +0 -1
  14. package/dist/src/app/set.d.ts +0 -1
  15. package/dist/src/app/setting.d.ts +0 -1
  16. package/dist/src/build/credentials-command.d.ts +0 -1
  17. package/dist/src/build/credentials.d.ts +0 -1
  18. package/dist/src/build/request.d.ts +0 -1
  19. package/dist/src/bundle/check.d.ts +0 -1
  20. package/dist/src/bundle/cleanup.d.ts +0 -1
  21. package/dist/src/bundle/compatibility.d.ts +0 -1
  22. package/dist/src/bundle/decryptV2.d.ts +0 -1
  23. package/dist/src/bundle/delete.d.ts +0 -1
  24. package/dist/src/bundle/encryptV2.d.ts +0 -1
  25. package/dist/src/bundle/list.d.ts +0 -1
  26. package/dist/src/bundle/partial.d.ts +0 -1
  27. package/dist/src/bundle/unlink.d.ts +0 -1
  28. package/dist/src/bundle/upload.d.ts +0 -1
  29. package/dist/src/bundle/upload_interface.d.ts +0 -1
  30. package/dist/src/bundle/zip.d.ts +0 -1
  31. package/dist/src/channel/add.d.ts +0 -1
  32. package/dist/src/channel/currentBundle.d.ts +0 -1
  33. package/dist/src/channel/delete.d.ts +0 -1
  34. package/dist/src/channel/list.d.ts +0 -1
  35. package/dist/src/channel/set.d.ts +0 -1
  36. package/dist/src/checksum.d.ts +0 -1
  37. package/dist/src/config/index.d.ts +0 -1
  38. package/dist/src/docs.d.ts +0 -1
  39. package/dist/src/index.d.ts +0 -1
  40. package/dist/src/init.d.ts +0 -1
  41. package/dist/src/keyV2.d.ts +0 -1
  42. package/dist/src/login.d.ts +0 -1
  43. package/dist/src/mcp/server.d.ts +0 -1
  44. package/dist/src/organization/add.d.ts +3 -1
  45. package/dist/src/organization/delete.d.ts +0 -1
  46. package/dist/src/organization/index.d.ts +1 -1
  47. package/dist/src/organization/list.d.ts +4 -1
  48. package/dist/src/organization/members.d.ts +11 -0
  49. package/dist/src/organization/set.d.ts +2 -1
  50. package/dist/src/sdk.d.ts +6 -1
  51. package/dist/src/sdk.js +319 -308
  52. package/dist/src/types/supabase.types.d.ts +508 -29
  53. package/dist/src/user/account.d.ts +0 -1
  54. package/dist/src/utils/latest-version.d.ts +0 -1
  55. package/dist/src/utils/security_policy_errors.d.ts +50 -0
  56. package/dist/src/utils.d.ts +477 -27
  57. package/dist/src/versionHelpers.d.ts +0 -1
  58. package/package.json +2 -3
  59. package/dist/src/api/app.d.ts.map +0 -1
  60. package/dist/src/api/channels.d.ts.map +0 -1
  61. package/dist/src/api/cryptoV2.d.ts.map +0 -1
  62. package/dist/src/api/update.d.ts.map +0 -1
  63. package/dist/src/api/versions.d.ts.map +0 -1
  64. package/dist/src/app/add.d.ts.map +0 -1
  65. package/dist/src/app/debug.d.ts.map +0 -1
  66. package/dist/src/app/delete.d.ts.map +0 -1
  67. package/dist/src/app/info.d.ts.map +0 -1
  68. package/dist/src/app/list.d.ts.map +0 -1
  69. package/dist/src/app/set.d.ts.map +0 -1
  70. package/dist/src/app/setting.d.ts.map +0 -1
  71. package/dist/src/build/credentials-command.d.ts.map +0 -1
  72. package/dist/src/build/credentials.d.ts.map +0 -1
  73. package/dist/src/build/request.d.ts.map +0 -1
  74. package/dist/src/bundle/check.d.ts.map +0 -1
  75. package/dist/src/bundle/cleanup.d.ts.map +0 -1
  76. package/dist/src/bundle/compatibility.d.ts.map +0 -1
  77. package/dist/src/bundle/decryptV2.d.ts.map +0 -1
  78. package/dist/src/bundle/delete.d.ts.map +0 -1
  79. package/dist/src/bundle/encryptV2.d.ts.map +0 -1
  80. package/dist/src/bundle/list.d.ts.map +0 -1
  81. package/dist/src/bundle/partial.d.ts.map +0 -1
  82. package/dist/src/bundle/unlink.d.ts.map +0 -1
  83. package/dist/src/bundle/upload.d.ts.map +0 -1
  84. package/dist/src/bundle/upload_interface.d.ts.map +0 -1
  85. package/dist/src/bundle/zip.d.ts.map +0 -1
  86. package/dist/src/channel/add.d.ts.map +0 -1
  87. package/dist/src/channel/currentBundle.d.ts.map +0 -1
  88. package/dist/src/channel/delete.d.ts.map +0 -1
  89. package/dist/src/channel/list.d.ts.map +0 -1
  90. package/dist/src/channel/set.d.ts.map +0 -1
  91. package/dist/src/checksum.d.ts.map +0 -1
  92. package/dist/src/config/index.d.ts.map +0 -1
  93. package/dist/src/docs.d.ts.map +0 -1
  94. package/dist/src/index.d.ts.map +0 -1
  95. package/dist/src/init.d.ts.map +0 -1
  96. package/dist/src/keyV2.d.ts.map +0 -1
  97. package/dist/src/login.d.ts.map +0 -1
  98. package/dist/src/mcp/server.d.ts.map +0 -1
  99. package/dist/src/organization/add.d.ts.map +0 -1
  100. package/dist/src/organization/delete.d.ts.map +0 -1
  101. package/dist/src/organization/index.d.ts.map +0 -1
  102. package/dist/src/organization/list.d.ts.map +0 -1
  103. package/dist/src/organization/set.d.ts.map +0 -1
  104. package/dist/src/sdk.d.ts.map +0 -1
  105. package/dist/src/types/supabase.types.d.ts.map +0 -1
  106. package/dist/src/user/account.d.ts.map +0 -1
  107. package/dist/src/utils/latest-version.d.ts.map +0 -1
  108. package/dist/src/utils.d.ts.map +0 -1
  109. package/dist/src/versionHelpers.d.ts.map +0 -1
package/README.md CHANGED
@@ -57,6 +57,7 @@ Follow the documentation here: https://capacitorjs.com/docs/getting-started/
57
57
  - 🔹 [Organization](#organization)
58
58
  - [List](#organization-list)
59
59
  - [Add](#organization-add)
60
+ - [Members](#organization-members)
60
61
  - [Set](#organization-set)
61
62
  - [Delete](#organization-delete)
62
63
  - 🔹 [Organisation](#organisation)
@@ -847,6 +848,34 @@ npx @capgo/cli@latest organization add --name "My Company" --email admin@mycompa
847
848
  | **--supa-host** | <code>string</code> | Custom Supabase host URL (for self-hosting or Capgo development) |
848
849
  | **--supa-anon** | <code>string</code> | Custom Supabase anon key (for self-hosting) |
849
850
 
851
+ ### <a id="organization-members"></a> 🔹 **Members**
852
+
853
+ **Alias:** `m`
854
+
855
+ ```bash
856
+ npx @capgo/cli@latest organization members
857
+ ```
858
+
859
+ đŸ‘Ĩ List organization members and their 2FA status.
860
+ Shows all members of an organization with their roles and whether they have 2FA enabled.
861
+ Useful before enabling 2FA enforcement to see which members will be affected.
862
+ > â„šī¸ Viewing 2FA status requires super_admin rights in the organization.
863
+
864
+
865
+ **Example:**
866
+
867
+ ```bash
868
+ npx @capgo/cli@latest organization members ORG_ID
869
+ ```
870
+
871
+ **Options:**
872
+
873
+ | Param | Type | Description |
874
+ | -------------- | ------------- | -------------------- |
875
+ | **-a,** | <code>string</code> | API key to link to your account |
876
+ | **--supa-host** | <code>string</code> | Custom Supabase host URL (for self-hosting or Capgo development) |
877
+ | **--supa-anon** | <code>string</code> | Custom Supabase anon key (for self-hosting) |
878
+
850
879
  ### <a id="organization-set"></a> âš™ī¸ **Set**
851
880
 
852
881
  **Alias:** `s`
@@ -855,12 +884,12 @@ npx @capgo/cli@latest organization add --name "My Company" --email admin@mycompa
855
884
  npx @capgo/cli@latest organization set
856
885
  ```
857
886
 
858
- âš™ī¸ Update organization settings such as name and management email.
887
+ âš™ī¸ Update organization settings such as name, email, and 2FA enforcement.
859
888
 
860
889
  **Example:**
861
890
 
862
891
  ```bash
863
- npx @capgo/cli@latest organization set ORG_ID --name "Updated Company Name"
892
+ npx @capgo/cli@latest organization set ORG_ID --name "New Name"
864
893
  ```
865
894
 
866
895
  **Options:**
@@ -869,6 +898,8 @@ npx @capgo/cli@latest organization set ORG_ID --name "Updated Company Name"
869
898
  | -------------- | ------------- | -------------------- |
870
899
  | **-n,** | <code>string</code> | Organization name |
871
900
  | **-e,** | <code>string</code> | Management email for the organization |
901
+ | **--enforce-2fa** | <code>boolean</code> | Enable 2FA enforcement for all organization members |
902
+ | **--no-enforce-2fa** | <code>boolean</code> | Disable 2FA enforcement for organization |
872
903
  | **-a,** | <code>string</code> | API key to link to your account |
873
904
  | **--supa-host** | <code>string</code> | Custom Supabase host URL (for self-hosting or Capgo development) |
874
905
  | **--supa-anon** | <code>string</code> | Custom Supabase anon key (for self-hosting) |