@basis-theory-labs/cli 1.7.0 → 1.9.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.
- package/README.md +183 -13
- package/dist/applications/management.d.ts +8 -0
- package/dist/applications/management.js +92 -0
- package/dist/applications/utils.d.ts +5 -0
- package/dist/applications/utils.js +16 -0
- package/dist/commands/applications/create.d.ts +11 -0
- package/dist/commands/applications/create.js +48 -0
- package/dist/commands/applications/delete.d.ts +12 -0
- package/dist/commands/applications/delete.js +32 -0
- package/dist/commands/applications/index.d.ts +9 -0
- package/dist/commands/applications/index.js +47 -0
- package/dist/commands/applications/update.d.ts +13 -0
- package/dist/commands/applications/update.js +28 -0
- package/dist/commands/proxies/delete.js +1 -1
- package/dist/commands/proxies/index.js +4 -3
- package/dist/commands/reactorFormulas/index.js +5 -4
- package/dist/commands/reactorFormulas/update.js +2 -1
- package/dist/commands/reactors/create.d.ts +12 -0
- package/dist/commands/reactors/create.js +40 -0
- package/dist/commands/reactors/delete.d.ts +12 -0
- package/dist/commands/reactors/delete.js +32 -0
- package/dist/commands/reactors/index.js +11 -3
- package/dist/commands/reactors/update.d.ts +17 -0
- package/dist/commands/reactors/update.js +71 -0
- package/dist/reactors/management.d.ts +4 -2
- package/dist/reactors/management.js +23 -1
- package/dist/reactors/utils.d.ts +26 -0
- package/dist/reactors/utils.js +37 -0
- package/dist/utils.d.ts +5 -1
- package/dist/utils.js +17 -1
- package/oclif.manifest.json +377 -7
- package/package.json +6 -6
package/oclif.manifest.json
CHANGED
|
@@ -1,6 +1,193 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.
|
|
2
|
+
"version": "1.9.0",
|
|
3
3
|
"commands": {
|
|
4
|
+
"applications:create": {
|
|
5
|
+
"id": "applications:create",
|
|
6
|
+
"description": "Creates a new Application. Requires `application:create` Management Application permission",
|
|
7
|
+
"strict": true,
|
|
8
|
+
"pluginName": "@basis-theory-labs/cli",
|
|
9
|
+
"pluginAlias": "@basis-theory-labs/cli",
|
|
10
|
+
"pluginType": "core",
|
|
11
|
+
"aliases": [],
|
|
12
|
+
"examples": [
|
|
13
|
+
"<%= config.bin %> <%= command.id %> "
|
|
14
|
+
],
|
|
15
|
+
"flags": {
|
|
16
|
+
"management-key": {
|
|
17
|
+
"name": "management-key",
|
|
18
|
+
"type": "option",
|
|
19
|
+
"char": "x",
|
|
20
|
+
"description": "management key used for connecting with the reactor / proxy",
|
|
21
|
+
"required": true,
|
|
22
|
+
"multiple": false
|
|
23
|
+
},
|
|
24
|
+
"api-base-url": {
|
|
25
|
+
"name": "api-base-url",
|
|
26
|
+
"type": "option",
|
|
27
|
+
"description": "base API URL to use in Basis Theory SDK",
|
|
28
|
+
"hidden": true,
|
|
29
|
+
"multiple": false
|
|
30
|
+
},
|
|
31
|
+
"name": {
|
|
32
|
+
"name": "name",
|
|
33
|
+
"type": "option",
|
|
34
|
+
"char": "n",
|
|
35
|
+
"description": "name of the Application",
|
|
36
|
+
"multiple": false
|
|
37
|
+
},
|
|
38
|
+
"permission": {
|
|
39
|
+
"name": "permission",
|
|
40
|
+
"type": "option",
|
|
41
|
+
"char": "p",
|
|
42
|
+
"description": "permission(s) to use in the Application",
|
|
43
|
+
"multiple": true
|
|
44
|
+
},
|
|
45
|
+
"type": {
|
|
46
|
+
"name": "type",
|
|
47
|
+
"type": "option",
|
|
48
|
+
"char": "t",
|
|
49
|
+
"description": "type of the Application",
|
|
50
|
+
"multiple": false,
|
|
51
|
+
"options": [
|
|
52
|
+
"private",
|
|
53
|
+
"public",
|
|
54
|
+
"management"
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"args": {}
|
|
59
|
+
},
|
|
60
|
+
"applications:delete": {
|
|
61
|
+
"id": "applications:delete",
|
|
62
|
+
"description": "Deletes a Application. Requires `application:delete` Management Application permissions",
|
|
63
|
+
"strict": true,
|
|
64
|
+
"pluginName": "@basis-theory-labs/cli",
|
|
65
|
+
"pluginAlias": "@basis-theory-labs/cli",
|
|
66
|
+
"pluginType": "core",
|
|
67
|
+
"aliases": [],
|
|
68
|
+
"examples": [
|
|
69
|
+
"<%= config.bin %> <%= command.id %> 03858bf5-32d3-4a2e-b74b-daeea0883bca"
|
|
70
|
+
],
|
|
71
|
+
"flags": {
|
|
72
|
+
"management-key": {
|
|
73
|
+
"name": "management-key",
|
|
74
|
+
"type": "option",
|
|
75
|
+
"char": "x",
|
|
76
|
+
"description": "management key used for connecting with the reactor / proxy",
|
|
77
|
+
"required": true,
|
|
78
|
+
"multiple": false
|
|
79
|
+
},
|
|
80
|
+
"api-base-url": {
|
|
81
|
+
"name": "api-base-url",
|
|
82
|
+
"type": "option",
|
|
83
|
+
"description": "base API URL to use in Basis Theory SDK",
|
|
84
|
+
"hidden": true,
|
|
85
|
+
"multiple": false
|
|
86
|
+
},
|
|
87
|
+
"yes": {
|
|
88
|
+
"name": "yes",
|
|
89
|
+
"type": "boolean",
|
|
90
|
+
"char": "y",
|
|
91
|
+
"description": "auto confirm the operation",
|
|
92
|
+
"allowNo": false
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"args": {
|
|
96
|
+
"id": {
|
|
97
|
+
"name": "id",
|
|
98
|
+
"description": "Application id to delete",
|
|
99
|
+
"required": true
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"applications": {
|
|
104
|
+
"id": "applications",
|
|
105
|
+
"description": "List Applications. Requires `application:read` Management Application permission",
|
|
106
|
+
"strict": true,
|
|
107
|
+
"pluginName": "@basis-theory-labs/cli",
|
|
108
|
+
"pluginAlias": "@basis-theory-labs/cli",
|
|
109
|
+
"pluginType": "core",
|
|
110
|
+
"aliases": [],
|
|
111
|
+
"examples": [
|
|
112
|
+
"<%= config.bin %> <%= command.id %>"
|
|
113
|
+
],
|
|
114
|
+
"flags": {
|
|
115
|
+
"management-key": {
|
|
116
|
+
"name": "management-key",
|
|
117
|
+
"type": "option",
|
|
118
|
+
"char": "x",
|
|
119
|
+
"description": "management key used for connecting with the reactor / proxy",
|
|
120
|
+
"required": true,
|
|
121
|
+
"multiple": false
|
|
122
|
+
},
|
|
123
|
+
"api-base-url": {
|
|
124
|
+
"name": "api-base-url",
|
|
125
|
+
"type": "option",
|
|
126
|
+
"description": "base API URL to use in Basis Theory SDK",
|
|
127
|
+
"hidden": true,
|
|
128
|
+
"multiple": false
|
|
129
|
+
},
|
|
130
|
+
"page": {
|
|
131
|
+
"name": "page",
|
|
132
|
+
"type": "option",
|
|
133
|
+
"char": "p",
|
|
134
|
+
"description": "Applications list page to fetch",
|
|
135
|
+
"multiple": false,
|
|
136
|
+
"default": 1
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"args": {}
|
|
140
|
+
},
|
|
141
|
+
"applications:update": {
|
|
142
|
+
"id": "applications:update",
|
|
143
|
+
"description": "Updates a new Application. Requires `application:update` Management Application permission",
|
|
144
|
+
"strict": true,
|
|
145
|
+
"pluginName": "@basis-theory-labs/cli",
|
|
146
|
+
"pluginAlias": "@basis-theory-labs/cli",
|
|
147
|
+
"pluginType": "core",
|
|
148
|
+
"aliases": [],
|
|
149
|
+
"examples": [
|
|
150
|
+
"<%= config.bin %> <%= command.id %> "
|
|
151
|
+
],
|
|
152
|
+
"flags": {
|
|
153
|
+
"management-key": {
|
|
154
|
+
"name": "management-key",
|
|
155
|
+
"type": "option",
|
|
156
|
+
"char": "x",
|
|
157
|
+
"description": "management key used for connecting with the reactor / proxy",
|
|
158
|
+
"required": true,
|
|
159
|
+
"multiple": false
|
|
160
|
+
},
|
|
161
|
+
"api-base-url": {
|
|
162
|
+
"name": "api-base-url",
|
|
163
|
+
"type": "option",
|
|
164
|
+
"description": "base API URL to use in Basis Theory SDK",
|
|
165
|
+
"hidden": true,
|
|
166
|
+
"multiple": false
|
|
167
|
+
},
|
|
168
|
+
"name": {
|
|
169
|
+
"name": "name",
|
|
170
|
+
"type": "option",
|
|
171
|
+
"char": "n",
|
|
172
|
+
"description": "name of the Application",
|
|
173
|
+
"multiple": false
|
|
174
|
+
},
|
|
175
|
+
"permission": {
|
|
176
|
+
"name": "permission",
|
|
177
|
+
"type": "option",
|
|
178
|
+
"char": "p",
|
|
179
|
+
"description": "permission(s) to use in the Application",
|
|
180
|
+
"multiple": true
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
"args": {
|
|
184
|
+
"id": {
|
|
185
|
+
"name": "id",
|
|
186
|
+
"description": "Application id to update",
|
|
187
|
+
"required": true
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
},
|
|
4
191
|
"proxies:create": {
|
|
5
192
|
"id": "proxies:create",
|
|
6
193
|
"description": "Creates a new Pre-Configured Proxy. Requires `proxy:create` Management Application permission",
|
|
@@ -82,7 +269,7 @@
|
|
|
82
269
|
},
|
|
83
270
|
"proxies:delete": {
|
|
84
271
|
"id": "proxies:delete",
|
|
85
|
-
"description": "Deletes a Proxy. Requires `proxy:delete`
|
|
272
|
+
"description": "Deletes a Proxy. Requires `proxy:delete` Management Application permissions",
|
|
86
273
|
"strict": true,
|
|
87
274
|
"pluginName": "@basis-theory-labs/cli",
|
|
88
275
|
"pluginAlias": "@basis-theory-labs/cli",
|
|
@@ -154,7 +341,7 @@
|
|
|
154
341
|
"name": "page",
|
|
155
342
|
"type": "option",
|
|
156
343
|
"char": "p",
|
|
157
|
-
"description": "
|
|
344
|
+
"description": "Proxies list page to fetch",
|
|
158
345
|
"multiple": false,
|
|
159
346
|
"default": 1
|
|
160
347
|
}
|
|
@@ -312,7 +499,7 @@
|
|
|
312
499
|
},
|
|
313
500
|
"reactorFormulas": {
|
|
314
501
|
"id": "reactorFormulas",
|
|
315
|
-
"description": "List Reactor Formulas. Requires `reactor:read` Management Application permission",
|
|
502
|
+
"description": "[Deprecated] List Reactor Formulas. Requires `reactor:read` Management Application permission",
|
|
316
503
|
"strict": true,
|
|
317
504
|
"pluginName": "@basis-theory-labs/cli",
|
|
318
505
|
"pluginAlias": "@basis-theory-labs/cli",
|
|
@@ -341,7 +528,7 @@
|
|
|
341
528
|
"name": "page",
|
|
342
529
|
"type": "option",
|
|
343
530
|
"char": "p",
|
|
344
|
-
"description": "
|
|
531
|
+
"description": "Reactors formulas list page to fetch",
|
|
345
532
|
"multiple": false,
|
|
346
533
|
"default": 1
|
|
347
534
|
}
|
|
@@ -350,7 +537,7 @@
|
|
|
350
537
|
},
|
|
351
538
|
"reactorFormulas:update": {
|
|
352
539
|
"id": "reactorFormulas:update",
|
|
353
|
-
"description": "Updates an existing Reactor Formula. Requires `reactor:update` Management Application permission",
|
|
540
|
+
"description": "[Deprecated] Updates an existing Reactor Formula. Requires `reactor:update` Management Application permission",
|
|
354
541
|
"strict": true,
|
|
355
542
|
"pluginName": "@basis-theory-labs/cli",
|
|
356
543
|
"pluginAlias": "@basis-theory-labs/cli",
|
|
@@ -440,6 +627,107 @@
|
|
|
440
627
|
}
|
|
441
628
|
}
|
|
442
629
|
},
|
|
630
|
+
"reactors:create": {
|
|
631
|
+
"id": "reactors:create",
|
|
632
|
+
"description": "Creates a new Reactor. Requires `reactor:create` Management Application permission",
|
|
633
|
+
"strict": true,
|
|
634
|
+
"pluginName": "@basis-theory-labs/cli",
|
|
635
|
+
"pluginAlias": "@basis-theory-labs/cli",
|
|
636
|
+
"pluginType": "core",
|
|
637
|
+
"aliases": [],
|
|
638
|
+
"examples": [
|
|
639
|
+
"<%= config.bin %> <%= command.id %> "
|
|
640
|
+
],
|
|
641
|
+
"flags": {
|
|
642
|
+
"management-key": {
|
|
643
|
+
"name": "management-key",
|
|
644
|
+
"type": "option",
|
|
645
|
+
"char": "x",
|
|
646
|
+
"description": "management key used for connecting with the reactor / proxy",
|
|
647
|
+
"required": true,
|
|
648
|
+
"multiple": false
|
|
649
|
+
},
|
|
650
|
+
"api-base-url": {
|
|
651
|
+
"name": "api-base-url",
|
|
652
|
+
"type": "option",
|
|
653
|
+
"description": "base API URL to use in Basis Theory SDK",
|
|
654
|
+
"hidden": true,
|
|
655
|
+
"multiple": false
|
|
656
|
+
},
|
|
657
|
+
"name": {
|
|
658
|
+
"name": "name",
|
|
659
|
+
"type": "option",
|
|
660
|
+
"char": "n",
|
|
661
|
+
"description": "name of the Reactor",
|
|
662
|
+
"multiple": false
|
|
663
|
+
},
|
|
664
|
+
"configuration": {
|
|
665
|
+
"name": "configuration",
|
|
666
|
+
"type": "option",
|
|
667
|
+
"char": "c",
|
|
668
|
+
"description": "path to configuration file (.env format) to use in the Reactor",
|
|
669
|
+
"multiple": false
|
|
670
|
+
},
|
|
671
|
+
"application-id": {
|
|
672
|
+
"name": "application-id",
|
|
673
|
+
"type": "option",
|
|
674
|
+
"char": "i",
|
|
675
|
+
"description": "application ID to use in the Reactor",
|
|
676
|
+
"multiple": false
|
|
677
|
+
},
|
|
678
|
+
"code": {
|
|
679
|
+
"name": "code",
|
|
680
|
+
"type": "option",
|
|
681
|
+
"char": "r",
|
|
682
|
+
"description": "path to JavaScript file containing the Reactor code",
|
|
683
|
+
"multiple": false
|
|
684
|
+
}
|
|
685
|
+
},
|
|
686
|
+
"args": {}
|
|
687
|
+
},
|
|
688
|
+
"reactors:delete": {
|
|
689
|
+
"id": "reactors:delete",
|
|
690
|
+
"description": "Deletes a Reactor. Requires `reactor:delete` Management Application permissions",
|
|
691
|
+
"strict": true,
|
|
692
|
+
"pluginName": "@basis-theory-labs/cli",
|
|
693
|
+
"pluginAlias": "@basis-theory-labs/cli",
|
|
694
|
+
"pluginType": "core",
|
|
695
|
+
"aliases": [],
|
|
696
|
+
"examples": [
|
|
697
|
+
"<%= config.bin %> <%= command.id %> 03858bf5-32d3-4a2e-b74b-daeea0883bca"
|
|
698
|
+
],
|
|
699
|
+
"flags": {
|
|
700
|
+
"management-key": {
|
|
701
|
+
"name": "management-key",
|
|
702
|
+
"type": "option",
|
|
703
|
+
"char": "x",
|
|
704
|
+
"description": "management key used for connecting with the reactor / proxy",
|
|
705
|
+
"required": true,
|
|
706
|
+
"multiple": false
|
|
707
|
+
},
|
|
708
|
+
"api-base-url": {
|
|
709
|
+
"name": "api-base-url",
|
|
710
|
+
"type": "option",
|
|
711
|
+
"description": "base API URL to use in Basis Theory SDK",
|
|
712
|
+
"hidden": true,
|
|
713
|
+
"multiple": false
|
|
714
|
+
},
|
|
715
|
+
"yes": {
|
|
716
|
+
"name": "yes",
|
|
717
|
+
"type": "boolean",
|
|
718
|
+
"char": "y",
|
|
719
|
+
"description": "auto confirm the operation",
|
|
720
|
+
"allowNo": false
|
|
721
|
+
}
|
|
722
|
+
},
|
|
723
|
+
"args": {
|
|
724
|
+
"id": {
|
|
725
|
+
"name": "id",
|
|
726
|
+
"description": "Reactor id to delete",
|
|
727
|
+
"required": true
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
},
|
|
443
731
|
"reactors": {
|
|
444
732
|
"id": "reactors",
|
|
445
733
|
"description": "List Reactors. Requires `reactor:read` Management Application permission",
|
|
@@ -471,7 +759,7 @@
|
|
|
471
759
|
"name": "page",
|
|
472
760
|
"type": "option",
|
|
473
761
|
"char": "p",
|
|
474
|
-
"description": "
|
|
762
|
+
"description": "Reactors list page to fetch",
|
|
475
763
|
"multiple": false,
|
|
476
764
|
"default": 1
|
|
477
765
|
}
|
|
@@ -522,6 +810,88 @@
|
|
|
522
810
|
"description": "Reactor id to connect to"
|
|
523
811
|
}
|
|
524
812
|
}
|
|
813
|
+
},
|
|
814
|
+
"reactors:update": {
|
|
815
|
+
"id": "reactors:update",
|
|
816
|
+
"description": "Updates an existing Reactor. Requires `reactor:update` Management Application permission",
|
|
817
|
+
"strict": true,
|
|
818
|
+
"pluginName": "@basis-theory-labs/cli",
|
|
819
|
+
"pluginAlias": "@basis-theory-labs/cli",
|
|
820
|
+
"pluginType": "core",
|
|
821
|
+
"aliases": [],
|
|
822
|
+
"examples": [
|
|
823
|
+
"<%= config.bin %> <%= command.id %> 03858bf5-32d3-4a2e-b74b-daeea0883bca",
|
|
824
|
+
"<%= config.bin %> <%= command.id %> 03858bf5-32d3-4a2e-b74b-daeea0883bca --code ./reactor.js",
|
|
825
|
+
"<%= config.bin %> <%= command.id %> 03858bf5-32d3-4a2e-b74b-daeea0883bca --configuration ./.env.reactor"
|
|
826
|
+
],
|
|
827
|
+
"flags": {
|
|
828
|
+
"management-key": {
|
|
829
|
+
"name": "management-key",
|
|
830
|
+
"type": "option",
|
|
831
|
+
"char": "x",
|
|
832
|
+
"description": "management key used for connecting with the reactor / proxy",
|
|
833
|
+
"required": true,
|
|
834
|
+
"multiple": false
|
|
835
|
+
},
|
|
836
|
+
"api-base-url": {
|
|
837
|
+
"name": "api-base-url",
|
|
838
|
+
"type": "option",
|
|
839
|
+
"description": "base API URL to use in Basis Theory SDK",
|
|
840
|
+
"hidden": true,
|
|
841
|
+
"multiple": false
|
|
842
|
+
},
|
|
843
|
+
"name": {
|
|
844
|
+
"name": "name",
|
|
845
|
+
"type": "option",
|
|
846
|
+
"char": "n",
|
|
847
|
+
"description": "name of the Reactor",
|
|
848
|
+
"multiple": false
|
|
849
|
+
},
|
|
850
|
+
"configuration": {
|
|
851
|
+
"name": "configuration",
|
|
852
|
+
"type": "option",
|
|
853
|
+
"char": "c",
|
|
854
|
+
"description": "path to configuration file (.env format) to use in the Reactor",
|
|
855
|
+
"multiple": false
|
|
856
|
+
},
|
|
857
|
+
"application-id": {
|
|
858
|
+
"name": "application-id",
|
|
859
|
+
"type": "option",
|
|
860
|
+
"char": "i",
|
|
861
|
+
"description": "application ID to use in the Reactor",
|
|
862
|
+
"multiple": false
|
|
863
|
+
},
|
|
864
|
+
"code": {
|
|
865
|
+
"name": "code",
|
|
866
|
+
"type": "option",
|
|
867
|
+
"char": "r",
|
|
868
|
+
"description": "path to JavaScript file containing the Reactor code",
|
|
869
|
+
"multiple": false
|
|
870
|
+
},
|
|
871
|
+
"watch": {
|
|
872
|
+
"name": "watch",
|
|
873
|
+
"type": "boolean",
|
|
874
|
+
"char": "w",
|
|
875
|
+
"description": "Watch for changes in informed files",
|
|
876
|
+
"required": false,
|
|
877
|
+
"allowNo": false
|
|
878
|
+
},
|
|
879
|
+
"logs": {
|
|
880
|
+
"name": "logs",
|
|
881
|
+
"type": "boolean",
|
|
882
|
+
"char": "l",
|
|
883
|
+
"description": "Start logs server after update",
|
|
884
|
+
"required": false,
|
|
885
|
+
"allowNo": false
|
|
886
|
+
}
|
|
887
|
+
},
|
|
888
|
+
"args": {
|
|
889
|
+
"id": {
|
|
890
|
+
"name": "id",
|
|
891
|
+
"description": "Reactor id to update",
|
|
892
|
+
"required": true
|
|
893
|
+
}
|
|
894
|
+
}
|
|
525
895
|
}
|
|
526
896
|
}
|
|
527
897
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@basis-theory-labs/cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.0",
|
|
4
4
|
"description": "Basis Theory CLI tool",
|
|
5
5
|
"author": "Davi Aquino @djejaquino",
|
|
6
6
|
"bin": {
|
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
"/oclif.manifest.json"
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@basis-theory/basis-theory-js": "^
|
|
21
|
-
"@inquirer/
|
|
22
|
-
"@inquirer/
|
|
23
|
-
"@inquirer/
|
|
24
|
-
"@inquirer/select": "^1.
|
|
20
|
+
"@basis-theory/basis-theory-js": "^2.4.0",
|
|
21
|
+
"@inquirer/checkbox": "^1.5.0",
|
|
22
|
+
"@inquirer/confirm": "^2.0.15",
|
|
23
|
+
"@inquirer/input": "^1.2.14",
|
|
24
|
+
"@inquirer/select": "^1.3.1",
|
|
25
25
|
"@oclif/core": "^2",
|
|
26
26
|
"@oclif/plugin-help": "^5",
|
|
27
27
|
"@oclif/plugin-plugins": "^2.4.7",
|