@nevermined-io/cli 1.4.0 → 1.4.1

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 (43) hide show
  1. package/dist/base-command.d.ts +11 -1
  2. package/dist/base-command.d.ts.map +1 -1
  3. package/dist/base-command.js +14 -0
  4. package/dist/base-command.js.map +1 -1
  5. package/dist/commands/cards/delegate.d.ts +26 -0
  6. package/dist/commands/cards/delegate.d.ts.map +1 -0
  7. package/dist/commands/cards/delegate.js +87 -0
  8. package/dist/commands/cards/delegate.js.map +1 -0
  9. package/dist/commands/cards/enroll.d.ts +25 -0
  10. package/dist/commands/cards/enroll.d.ts.map +1 -0
  11. package/dist/commands/cards/enroll.js +88 -0
  12. package/dist/commands/cards/enroll.js.map +1 -0
  13. package/dist/commands/cards/setup.d.ts +28 -0
  14. package/dist/commands/cards/setup.d.ts.map +1 -0
  15. package/dist/commands/cards/setup.js +113 -0
  16. package/dist/commands/cards/setup.js.map +1 -0
  17. package/dist/commands/login.js +1 -26
  18. package/dist/commands/login.js.map +1 -1
  19. package/dist/commands/organizations/get-my-memberships.d.ts +15 -0
  20. package/dist/commands/organizations/get-my-memberships.d.ts.map +1 -0
  21. package/dist/commands/organizations/get-my-memberships.js +25 -0
  22. package/dist/commands/organizations/get-my-memberships.js.map +1 -0
  23. package/dist/commands/organizations/get-organization-activity.d.ts +18 -0
  24. package/dist/commands/organizations/get-organization-activity.d.ts.map +1 -0
  25. package/dist/commands/organizations/get-organization-activity.js +32 -0
  26. package/dist/commands/organizations/get-organization-activity.js.map +1 -0
  27. package/dist/generator/command-generator.d.ts.map +1 -1
  28. package/dist/generator/command-generator.js +3 -1
  29. package/dist/generator/command-generator.js.map +1 -1
  30. package/dist/utils/browser.d.ts +14 -0
  31. package/dist/utils/browser.d.ts.map +1 -0
  32. package/dist/utils/browser.js +41 -0
  33. package/dist/utils/browser.js.map +1 -0
  34. package/dist/utils/orgs.d.ts +36 -0
  35. package/dist/utils/orgs.d.ts.map +1 -0
  36. package/dist/utils/orgs.js +65 -0
  37. package/dist/utils/orgs.js.map +1 -0
  38. package/dist/utils/widget-redirect-flow.d.ts +83 -0
  39. package/dist/utils/widget-redirect-flow.d.ts.map +1 -0
  40. package/dist/utils/widget-redirect-flow.js +259 -0
  41. package/dist/utils/widget-redirect-flow.js.map +1 -0
  42. package/oclif.manifest.json +421 -57
  43. package/package.json +1 -1
@@ -655,6 +655,310 @@
655
655
  "update-agent-metadata.js"
656
656
  ]
657
657
  },
658
+ "cards:delegate": {
659
+ "aliases": [],
660
+ "args": {},
661
+ "description": "Open the browser to create a spending delegation for an already-enrolled card.",
662
+ "examples": [
663
+ "<%= config.bin %> cards delegate --card pm_1234",
664
+ "<%= config.bin %> cards delegate --card pm_1234 --org org-abc-123",
665
+ "<%= config.bin %> cards delegate --card pm_1234 --no-browser"
666
+ ],
667
+ "flags": {
668
+ "profile": {
669
+ "char": "p",
670
+ "description": "Configuration profile to use",
671
+ "name": "profile",
672
+ "required": false,
673
+ "hasDynamicHelp": false,
674
+ "multiple": false,
675
+ "type": "option"
676
+ },
677
+ "format": {
678
+ "char": "f",
679
+ "description": "Output format",
680
+ "name": "format",
681
+ "default": "table",
682
+ "hasDynamicHelp": false,
683
+ "multiple": false,
684
+ "options": [
685
+ "table",
686
+ "json",
687
+ "quiet"
688
+ ],
689
+ "type": "option"
690
+ },
691
+ "verbose": {
692
+ "char": "v",
693
+ "description": "Verbose output",
694
+ "name": "verbose",
695
+ "allowNo": false,
696
+ "type": "boolean"
697
+ },
698
+ "card": {
699
+ "description": "paymentMethodId of the already-enrolled card to delegate from.",
700
+ "name": "card",
701
+ "required": true,
702
+ "hasDynamicHelp": false,
703
+ "multiple": false,
704
+ "type": "option"
705
+ },
706
+ "org": {
707
+ "description": "Organization id to scope the flow to. Required when the authenticated user belongs to multiple organizations and the terminal is non-interactive.",
708
+ "name": "org",
709
+ "required": false,
710
+ "hasDynamicHelp": false,
711
+ "multiple": false,
712
+ "type": "option"
713
+ },
714
+ "no-browser": {
715
+ "description": "Print the delegation URL instead of opening the browser.",
716
+ "name": "no-browser",
717
+ "allowNo": false,
718
+ "type": "boolean"
719
+ }
720
+ },
721
+ "hasDynamicHelp": false,
722
+ "hiddenAliases": [],
723
+ "id": "cards:delegate",
724
+ "pluginAlias": "@nevermined-io/cli",
725
+ "pluginName": "@nevermined-io/cli",
726
+ "pluginType": "core",
727
+ "strict": true,
728
+ "enableJsonFlag": false,
729
+ "isESM": true,
730
+ "relativePath": [
731
+ "dist",
732
+ "commands",
733
+ "cards",
734
+ "delegate.js"
735
+ ]
736
+ },
737
+ "cards:enroll": {
738
+ "aliases": [],
739
+ "args": {},
740
+ "description": "Open the browser to enroll a credit/debit card and redirect the resulting paymentMethodId back to this terminal.",
741
+ "examples": [
742
+ "<%= config.bin %> cards enroll",
743
+ "<%= config.bin %> cards enroll --org org-abc-123",
744
+ "<%= config.bin %> cards enroll --provider braintree",
745
+ "<%= config.bin %> cards enroll --no-browser"
746
+ ],
747
+ "flags": {
748
+ "profile": {
749
+ "char": "p",
750
+ "description": "Configuration profile to use",
751
+ "name": "profile",
752
+ "required": false,
753
+ "hasDynamicHelp": false,
754
+ "multiple": false,
755
+ "type": "option"
756
+ },
757
+ "format": {
758
+ "char": "f",
759
+ "description": "Output format",
760
+ "name": "format",
761
+ "default": "table",
762
+ "hasDynamicHelp": false,
763
+ "multiple": false,
764
+ "options": [
765
+ "table",
766
+ "json",
767
+ "quiet"
768
+ ],
769
+ "type": "option"
770
+ },
771
+ "verbose": {
772
+ "char": "v",
773
+ "description": "Verbose output",
774
+ "name": "verbose",
775
+ "allowNo": false,
776
+ "type": "boolean"
777
+ },
778
+ "org": {
779
+ "description": "Organization id to scope the flow to. Required when the authenticated user belongs to multiple organizations and the terminal is non-interactive.",
780
+ "name": "org",
781
+ "required": false,
782
+ "hasDynamicHelp": false,
783
+ "multiple": false,
784
+ "type": "option"
785
+ },
786
+ "no-browser": {
787
+ "description": "Print the enrolment URL instead of opening the browser.",
788
+ "name": "no-browser",
789
+ "allowNo": false,
790
+ "type": "boolean"
791
+ },
792
+ "provider": {
793
+ "description": "Tokenization provider used for the card enrolment step.",
794
+ "name": "provider",
795
+ "default": "stripe",
796
+ "hasDynamicHelp": false,
797
+ "multiple": false,
798
+ "options": [
799
+ "stripe",
800
+ "braintree",
801
+ "visa"
802
+ ],
803
+ "type": "option"
804
+ }
805
+ },
806
+ "hasDynamicHelp": false,
807
+ "hiddenAliases": [],
808
+ "id": "cards:enroll",
809
+ "pluginAlias": "@nevermined-io/cli",
810
+ "pluginName": "@nevermined-io/cli",
811
+ "pluginType": "core",
812
+ "strict": true,
813
+ "enableJsonFlag": false,
814
+ "isESM": true,
815
+ "relativePath": [
816
+ "dist",
817
+ "commands",
818
+ "cards",
819
+ "enroll.js"
820
+ ]
821
+ },
822
+ "cards:setup": {
823
+ "aliases": [],
824
+ "args": {},
825
+ "description": "Open the browser to enroll a card and create a spending delegation, then redirect both IDs back to this terminal.",
826
+ "examples": [
827
+ "<%= config.bin %> cards setup",
828
+ "<%= config.bin %> cards setup --org org-abc-123",
829
+ "<%= config.bin %> cards setup --no-browser"
830
+ ],
831
+ "flags": {
832
+ "profile": {
833
+ "char": "p",
834
+ "description": "Configuration profile to use",
835
+ "name": "profile",
836
+ "required": false,
837
+ "hasDynamicHelp": false,
838
+ "multiple": false,
839
+ "type": "option"
840
+ },
841
+ "format": {
842
+ "char": "f",
843
+ "description": "Output format",
844
+ "name": "format",
845
+ "default": "table",
846
+ "hasDynamicHelp": false,
847
+ "multiple": false,
848
+ "options": [
849
+ "table",
850
+ "json",
851
+ "quiet"
852
+ ],
853
+ "type": "option"
854
+ },
855
+ "verbose": {
856
+ "char": "v",
857
+ "description": "Verbose output",
858
+ "name": "verbose",
859
+ "allowNo": false,
860
+ "type": "boolean"
861
+ },
862
+ "org": {
863
+ "description": "Organization id to scope the flow to. Required when the authenticated user belongs to multiple organizations and the terminal is non-interactive.",
864
+ "name": "org",
865
+ "required": false,
866
+ "hasDynamicHelp": false,
867
+ "multiple": false,
868
+ "type": "option"
869
+ },
870
+ "no-browser": {
871
+ "description": "Print the setup URL instead of opening the browser.",
872
+ "name": "no-browser",
873
+ "allowNo": false,
874
+ "type": "boolean"
875
+ },
876
+ "provider": {
877
+ "description": "Tokenization provider used for the card enrolment step.",
878
+ "name": "provider",
879
+ "default": "stripe",
880
+ "hasDynamicHelp": false,
881
+ "multiple": false,
882
+ "options": [
883
+ "stripe",
884
+ "braintree",
885
+ "visa"
886
+ ],
887
+ "type": "option"
888
+ }
889
+ },
890
+ "hasDynamicHelp": false,
891
+ "hiddenAliases": [],
892
+ "id": "cards:setup",
893
+ "pluginAlias": "@nevermined-io/cli",
894
+ "pluginName": "@nevermined-io/cli",
895
+ "pluginType": "core",
896
+ "strict": true,
897
+ "enableJsonFlag": false,
898
+ "isESM": true,
899
+ "relativePath": [
900
+ "dist",
901
+ "commands",
902
+ "cards",
903
+ "setup.js"
904
+ ]
905
+ },
906
+ "delegation:list-payment-methods": {
907
+ "aliases": [],
908
+ "args": {},
909
+ "description": "List enrolled credit/debit cards available for card-delegation (fiat) payments.",
910
+ "examples": [
911
+ "$ nvm delegation list-payment-methods",
912
+ "$ nvm delegation list-payment-methods --format json"
913
+ ],
914
+ "flags": {
915
+ "profile": {
916
+ "char": "p",
917
+ "description": "Configuration profile to use",
918
+ "name": "profile",
919
+ "required": false,
920
+ "hasDynamicHelp": false,
921
+ "multiple": false,
922
+ "type": "option"
923
+ },
924
+ "format": {
925
+ "char": "f",
926
+ "description": "Output format",
927
+ "name": "format",
928
+ "default": "table",
929
+ "hasDynamicHelp": false,
930
+ "multiple": false,
931
+ "options": [
932
+ "table",
933
+ "json",
934
+ "quiet"
935
+ ],
936
+ "type": "option"
937
+ },
938
+ "verbose": {
939
+ "char": "v",
940
+ "description": "Verbose output",
941
+ "name": "verbose",
942
+ "allowNo": false,
943
+ "type": "boolean"
944
+ }
945
+ },
946
+ "hasDynamicHelp": false,
947
+ "hiddenAliases": [],
948
+ "id": "delegation:list-payment-methods",
949
+ "pluginAlias": "@nevermined-io/cli",
950
+ "pluginName": "@nevermined-io/cli",
951
+ "pluginType": "core",
952
+ "strict": true,
953
+ "enableJsonFlag": false,
954
+ "isESM": true,
955
+ "relativePath": [
956
+ "dist",
957
+ "commands",
958
+ "delegation",
959
+ "list-payment-methods.js"
960
+ ]
961
+ },
658
962
  "config:init": {
659
963
  "aliases": [],
660
964
  "args": {},
@@ -1002,62 +1306,6 @@
1002
1306
  "verify-permissions.js"
1003
1307
  ]
1004
1308
  },
1005
- "delegation:list-payment-methods": {
1006
- "aliases": [],
1007
- "args": {},
1008
- "description": "List enrolled credit/debit cards available for card-delegation (fiat) payments.",
1009
- "examples": [
1010
- "$ nvm delegation list-payment-methods",
1011
- "$ nvm delegation list-payment-methods --format json"
1012
- ],
1013
- "flags": {
1014
- "profile": {
1015
- "char": "p",
1016
- "description": "Configuration profile to use",
1017
- "name": "profile",
1018
- "required": false,
1019
- "hasDynamicHelp": false,
1020
- "multiple": false,
1021
- "type": "option"
1022
- },
1023
- "format": {
1024
- "char": "f",
1025
- "description": "Output format",
1026
- "name": "format",
1027
- "default": "table",
1028
- "hasDynamicHelp": false,
1029
- "multiple": false,
1030
- "options": [
1031
- "table",
1032
- "json",
1033
- "quiet"
1034
- ],
1035
- "type": "option"
1036
- },
1037
- "verbose": {
1038
- "char": "v",
1039
- "description": "Verbose output",
1040
- "name": "verbose",
1041
- "allowNo": false,
1042
- "type": "boolean"
1043
- }
1044
- },
1045
- "hasDynamicHelp": false,
1046
- "hiddenAliases": [],
1047
- "id": "delegation:list-payment-methods",
1048
- "pluginAlias": "@nevermined-io/cli",
1049
- "pluginName": "@nevermined-io/cli",
1050
- "pluginType": "core",
1051
- "strict": true,
1052
- "enableJsonFlag": false,
1053
- "isESM": true,
1054
- "relativePath": [
1055
- "dist",
1056
- "commands",
1057
- "delegation",
1058
- "list-payment-methods.js"
1059
- ]
1060
- },
1061
1309
  "organizations:connect-stripe-account": {
1062
1310
  "aliases": [],
1063
1311
  "args": {},
@@ -1292,6 +1540,122 @@
1292
1540
  "get-members.js"
1293
1541
  ]
1294
1542
  },
1543
+ "organizations:get-my-memberships": {
1544
+ "aliases": [],
1545
+ "args": {},
1546
+ "description": "Lists every organization the authenticated user is an active member of, with their role and the organization's tier. Powers workspace pickers in third-party tools built on the SDK, and the \"where will this publish?\" UX when a user belongs to multiple orgs.",
1547
+ "examples": [
1548
+ "$ nvm organizations get-my-memberships"
1549
+ ],
1550
+ "flags": {
1551
+ "profile": {
1552
+ "char": "p",
1553
+ "description": "Configuration profile to use",
1554
+ "name": "profile",
1555
+ "required": false,
1556
+ "hasDynamicHelp": false,
1557
+ "multiple": false,
1558
+ "type": "option"
1559
+ },
1560
+ "format": {
1561
+ "char": "f",
1562
+ "description": "Output format",
1563
+ "name": "format",
1564
+ "default": "table",
1565
+ "hasDynamicHelp": false,
1566
+ "multiple": false,
1567
+ "options": [
1568
+ "table",
1569
+ "json",
1570
+ "quiet"
1571
+ ],
1572
+ "type": "option"
1573
+ },
1574
+ "verbose": {
1575
+ "char": "v",
1576
+ "description": "Verbose output",
1577
+ "name": "verbose",
1578
+ "allowNo": false,
1579
+ "type": "boolean"
1580
+ }
1581
+ },
1582
+ "hasDynamicHelp": false,
1583
+ "hiddenAliases": [],
1584
+ "id": "organizations:get-my-memberships",
1585
+ "pluginAlias": "@nevermined-io/cli",
1586
+ "pluginName": "@nevermined-io/cli",
1587
+ "pluginType": "core",
1588
+ "strict": true,
1589
+ "enableJsonFlag": false,
1590
+ "isESM": true,
1591
+ "relativePath": [
1592
+ "dist",
1593
+ "commands",
1594
+ "organizations",
1595
+ "get-my-memberships.js"
1596
+ ]
1597
+ },
1598
+ "organizations:get-organization-activity": {
1599
+ "aliases": [],
1600
+ "args": {
1601
+ "org": {
1602
+ "description": "org identifier",
1603
+ "name": "org",
1604
+ "required": true
1605
+ }
1606
+ },
1607
+ "description": "Lists events emitted into the activity feed of an organization the caller is an active member of (member invites, customer events, subscription transitions, webhook deliveries, …). Requires the caller to be a Member or Admin of `orgId`; the backend returns 403 otherwise. Premium+ entitlement is enforced server-side.",
1608
+ "examples": [
1609
+ "$ nvm organizations get-organization-activity <orgId>"
1610
+ ],
1611
+ "flags": {
1612
+ "profile": {
1613
+ "char": "p",
1614
+ "description": "Configuration profile to use",
1615
+ "name": "profile",
1616
+ "required": false,
1617
+ "hasDynamicHelp": false,
1618
+ "multiple": false,
1619
+ "type": "option"
1620
+ },
1621
+ "format": {
1622
+ "char": "f",
1623
+ "description": "Output format",
1624
+ "name": "format",
1625
+ "default": "table",
1626
+ "hasDynamicHelp": false,
1627
+ "multiple": false,
1628
+ "options": [
1629
+ "table",
1630
+ "json",
1631
+ "quiet"
1632
+ ],
1633
+ "type": "option"
1634
+ },
1635
+ "verbose": {
1636
+ "char": "v",
1637
+ "description": "Verbose output",
1638
+ "name": "verbose",
1639
+ "allowNo": false,
1640
+ "type": "boolean"
1641
+ }
1642
+ },
1643
+ "hasDynamicHelp": false,
1644
+ "hiddenAliases": [],
1645
+ "id": "organizations:get-organization-activity",
1646
+ "pluginAlias": "@nevermined-io/cli",
1647
+ "pluginName": "@nevermined-io/cli",
1648
+ "pluginType": "core",
1649
+ "strict": true,
1650
+ "enableJsonFlag": false,
1651
+ "isESM": true,
1652
+ "relativePath": [
1653
+ "dist",
1654
+ "commands",
1655
+ "organizations",
1656
+ "get-organization-activity.js"
1657
+ ]
1658
+ },
1295
1659
  "x402token:get-x402-access-token": {
1296
1660
  "aliases": [],
1297
1661
  "args": {
@@ -3332,5 +3696,5 @@
3332
3696
  ]
3333
3697
  }
3334
3698
  },
3335
- "version": "1.4.0"
3699
+ "version": "1.4.1"
3336
3700
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nevermined-io/cli",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "CLI for Nevermined Payments SDK",
5
5
  "author": "Nevermined AG",
6
6
  "license": "Apache-2.0",