@heroku/skynet 2.0.1 → 2.0.2
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/dist/commands/allowlist/add.d.ts +2 -0
- package/dist/commands/allowlist/add.js +2 -0
- package/dist/commands/allowlist/remove.d.ts +2 -0
- package/dist/commands/allowlist/remove.js +2 -0
- package/dist/commands/allowlists.d.ts +2 -0
- package/dist/commands/allowlists.js +2 -0
- package/dist/commands/categories/add.d.ts +2 -0
- package/dist/commands/categories/add.js +2 -0
- package/dist/commands/categories/get.d.ts +2 -0
- package/dist/commands/categories/get.js +2 -0
- package/dist/commands/categories/remove.d.ts +2 -0
- package/dist/commands/categories/remove.js +2 -0
- package/dist/commands/deprovision.d.ts +2 -0
- package/dist/commands/deprovision.js +2 -0
- package/dist/commands/suspend/app-owner.d.ts +2 -0
- package/dist/commands/suspend/app-owner.js +2 -0
- package/dist/commands/suspend/apps.d.ts +2 -0
- package/dist/commands/suspend/apps.js +2 -0
- package/dist/commands/suspend/user.d.ts +2 -0
- package/dist/commands/suspend/user.js +2 -0
- package/dist/commands/suspensions.d.ts +2 -0
- package/dist/commands/suspensions.js +2 -0
- package/dist/commands/unsuspend/apps.d.ts +2 -0
- package/dist/commands/unsuspend/apps.js +2 -0
- package/dist/commands/unsuspend/user.d.ts +2 -0
- package/dist/commands/unsuspend/user.js +2 -0
- package/dist/commands/userpass/add.d.ts +2 -0
- package/dist/commands/userpass/add.js +2 -0
- package/dist/commands/userpass/remove.d.ts +2 -0
- package/dist/commands/userpass/remove.js +2 -0
- package/oclif.manifest.json +46 -16
- package/package.json +1 -1
|
@@ -3,6 +3,8 @@ import { Command } from '@heroku-cli/command';
|
|
|
3
3
|
import { color } from '@heroku-cli/color';
|
|
4
4
|
import { Flags, ux } from '@oclif/core';
|
|
5
5
|
export default class AddAllowlist extends Command {
|
|
6
|
+
static id = 'skynet:allowlist:add';
|
|
7
|
+
static aliases = ['skynet:allowlist:add'];
|
|
6
8
|
static description = 'adds an app or user to the allowlist';
|
|
7
9
|
static examples = [
|
|
8
10
|
'$ heroku skynet:allowlist:add -v foo@bar.com -n Additional info'
|
|
@@ -3,6 +3,8 @@ import { Command } from '@heroku-cli/command';
|
|
|
3
3
|
import { color } from '@heroku-cli/color';
|
|
4
4
|
import { Flags, ux } from '@oclif/core';
|
|
5
5
|
export default class RemoveAllowlist extends Command {
|
|
6
|
+
static id = 'skynet:allowlist:remove';
|
|
7
|
+
static aliases = ['skynet:allowlist:remove'];
|
|
6
8
|
static description = 'Remove user or app from the allowlist';
|
|
7
9
|
static examples = [
|
|
8
10
|
'$ heroku skynet:allowlist:remove -v foo@bar.com'
|
|
@@ -2,6 +2,8 @@ import SkynetAPI from '../lib/skynet.js';
|
|
|
2
2
|
import { Command } from '@heroku-cli/command';
|
|
3
3
|
import { ux } from '@oclif/core';
|
|
4
4
|
export default class Allowlists extends Command {
|
|
5
|
+
static id = 'skynet:allowlists';
|
|
6
|
+
static aliases = ['skynet:allowlists'];
|
|
5
7
|
static description = 'allowlists used by skynet';
|
|
6
8
|
static examples = [
|
|
7
9
|
'$ heroku skynet:allowlists'
|
|
@@ -3,6 +3,8 @@ import { Command } from '@heroku-cli/command';
|
|
|
3
3
|
import { color } from '@heroku-cli/color';
|
|
4
4
|
import { Flags, ux } from '@oclif/core';
|
|
5
5
|
export default class AddCategory extends Command {
|
|
6
|
+
static id = 'skynet:categories:add';
|
|
7
|
+
static aliases = ['skynet:categories:add'];
|
|
6
8
|
static description = '(requires sudo) Adds a category for use when suspending or deprovisioning';
|
|
7
9
|
static examples = [
|
|
8
10
|
'$ heroku skynet:categories:add -n Cryptominer -d "Abusers running cryptomining on the platform"'
|
|
@@ -2,6 +2,8 @@ import SkynetAPI from '../../lib/skynet.js';
|
|
|
2
2
|
import { Command } from '@heroku-cli/command';
|
|
3
3
|
import { ux } from '@oclif/core';
|
|
4
4
|
export default class GetCategories extends Command {
|
|
5
|
+
static id = 'skynet:categories';
|
|
6
|
+
static aliases = ['skynet:categories'];
|
|
5
7
|
static description = '(requires sudo) categories to use for suspension and deprovisions';
|
|
6
8
|
static examples = [
|
|
7
9
|
'$ heroku skynet:categories'
|
|
@@ -3,6 +3,8 @@ import { Command } from '@heroku-cli/command';
|
|
|
3
3
|
import { color } from '@heroku-cli/color';
|
|
4
4
|
import { Flags, ux } from '@oclif/core';
|
|
5
5
|
export default class RemoveCategory extends Command {
|
|
6
|
+
static id = 'skynet:categories:remove';
|
|
7
|
+
static aliases = ['skynet:categories:remove'];
|
|
6
8
|
static description = '(requires sudo) Removes a category from Skynet';
|
|
7
9
|
static examples = [
|
|
8
10
|
'$ heroku skynet:categories:remove -n Cryptominer'
|
|
@@ -4,6 +4,8 @@ import { Command } from '@heroku-cli/command';
|
|
|
4
4
|
import { color } from '@heroku-cli/color';
|
|
5
5
|
import { Flags, ux } from '@oclif/core';
|
|
6
6
|
export default class Deprovision extends Command {
|
|
7
|
+
static id = 'skynet:deprovision';
|
|
8
|
+
static aliases = ['skynet:deprovision'];
|
|
7
9
|
static description = '(requires sudo) suspends a user and deprovisions all addons';
|
|
8
10
|
static examples = [
|
|
9
11
|
'$ heroku skynet:deprovision -u foo@bar.com -n "helpful suspend message" -c "spam"'
|
|
@@ -7,6 +7,8 @@ import { Flags, ux } from '@oclif/core';
|
|
|
7
7
|
import { processSuspensionResult } from '../../lib/utils.js';
|
|
8
8
|
const chunkSize = 5;
|
|
9
9
|
export default class SuspendAppOwner extends Command {
|
|
10
|
+
static id = 'skynet:suspend:app-owner';
|
|
11
|
+
static aliases = ['skynet:suspend:app-owner'];
|
|
10
12
|
static description = '(requires sudo) suspends the owner of a given app';
|
|
11
13
|
static examples = [
|
|
12
14
|
'$ heroku skynet:suspend:app-owner -a foobar -n "helpful suspend message" -c "ddos"'
|
|
@@ -5,6 +5,8 @@ import { color } from '@heroku-cli/color';
|
|
|
5
5
|
import { Flags, ux } from '@oclif/core';
|
|
6
6
|
import { processSuspensionResult } from '../../lib/utils.js';
|
|
7
7
|
export default class SuspendApp extends Command {
|
|
8
|
+
static id = 'skynet:suspend:app';
|
|
9
|
+
static aliases = ['skynet:suspend:app'];
|
|
8
10
|
static description = '(requires sudo) suspends an app';
|
|
9
11
|
static examples = [
|
|
10
12
|
'$ heroku skynet:suspend:app -a test-app -c "category" -n "helpful suspend message"'
|
|
@@ -5,6 +5,8 @@ import { Flags, ux } from '@oclif/core';
|
|
|
5
5
|
import { logError, processSuspensionResult } from '../../lib/utils.js';
|
|
6
6
|
import { color } from '@heroku-cli/color';
|
|
7
7
|
export default class SuspendUser extends Command {
|
|
8
|
+
static id = 'skynet:suspend:user';
|
|
9
|
+
static aliases = ['skynet:suspend:user'];
|
|
8
10
|
static description = '(requires sudo) suspends a user';
|
|
9
11
|
static examples = [
|
|
10
12
|
'$ heroku sudo skynet:suspend:user -u foo@bar.com -n "helpful suspend message" -c "ddos"'
|
|
@@ -2,6 +2,8 @@ import SkynetAPI from '../lib/skynet.js';
|
|
|
2
2
|
import { Command } from '@heroku-cli/command';
|
|
3
3
|
import { Flags, ux } from '@oclif/core';
|
|
4
4
|
export default class Suspensions extends Command {
|
|
5
|
+
static id = 'skynet:suspensions';
|
|
6
|
+
static aliases = ['skynet:suspensions'];
|
|
5
7
|
static description = '(requires sudo) suspension history of the given user account';
|
|
6
8
|
static examples = [
|
|
7
9
|
'$ heroku skynet:suspensions -a [user account]'
|
|
@@ -4,6 +4,8 @@ import { color } from '@heroku-cli/color';
|
|
|
4
4
|
import { Flags, ux } from '@oclif/core';
|
|
5
5
|
import { processUnsuspendResult } from '../../lib/utils.js';
|
|
6
6
|
export default class UnsuspendApp extends Command {
|
|
7
|
+
static id = 'skynet:unsuspend:app';
|
|
8
|
+
static aliases = ['skynet:unsuspend:app'];
|
|
7
9
|
static description = '(requires sudo) unsuspends an app';
|
|
8
10
|
static examples = [
|
|
9
11
|
'$ heroku skynet:unsuspend:app -a test-app -n "helpful unsuspend message" -c "unsuspend-apology"'
|
|
@@ -5,6 +5,8 @@ import { color } from '@heroku-cli/color';
|
|
|
5
5
|
import { Flags, ux } from '@oclif/core';
|
|
6
6
|
import { processUnsuspendResult } from '../../lib/utils.js';
|
|
7
7
|
export default class UnsuspendUser extends Command {
|
|
8
|
+
static id = 'skynet:unsuspend:user';
|
|
9
|
+
static aliases = ['skynet:unsuspend:user'];
|
|
8
10
|
static description = '(requires sudo) unsuspends a user';
|
|
9
11
|
static examples = [
|
|
10
12
|
'$ heroku skynet:unsuspend:user -u foo@bar.com -n "helpful unsuspend message" -c "unsuspend-account-recovery"'
|
|
@@ -3,6 +3,8 @@ import { Command } from '@heroku-cli/command';
|
|
|
3
3
|
import { color } from '@heroku-cli/color';
|
|
4
4
|
import { Flags, ux } from '@oclif/core';
|
|
5
5
|
export default class AddUserpass extends Command {
|
|
6
|
+
static id = 'skynet:userpass:add';
|
|
7
|
+
static aliases = ['skynet:userpass:add'];
|
|
6
8
|
static description = 'adds a userpass flag to a given user';
|
|
7
9
|
static examples = [
|
|
8
10
|
'$ heroku skynet:userpass:add -u foo@bar.com -f cant-install-abused-addons'
|
|
@@ -3,6 +3,8 @@ import { Command } from '@heroku-cli/command';
|
|
|
3
3
|
import { color } from '@heroku-cli/color';
|
|
4
4
|
import { Flags, ux } from '@oclif/core';
|
|
5
5
|
export default class RemoveUserpass extends Command {
|
|
6
|
+
static id = 'skynet:userpass:remove';
|
|
7
|
+
static aliases = ['skynet:userpass:remove'];
|
|
6
8
|
static description = 'removes given flag from a given user';
|
|
7
9
|
static examples = [
|
|
8
10
|
'$ heroku skynet:userpass:remove -u foo@bar.com -f cant-install-abused-addons'
|
package/oclif.manifest.json
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"commands": {
|
|
3
3
|
"allowlists": {
|
|
4
|
-
"aliases": [
|
|
4
|
+
"aliases": [
|
|
5
|
+
"skynet:allowlists"
|
|
6
|
+
],
|
|
5
7
|
"args": {},
|
|
6
8
|
"description": "allowlists used by skynet",
|
|
7
9
|
"examples": [
|
|
@@ -23,7 +25,9 @@
|
|
|
23
25
|
]
|
|
24
26
|
},
|
|
25
27
|
"deprovision": {
|
|
26
|
-
"aliases": [
|
|
28
|
+
"aliases": [
|
|
29
|
+
"skynet:deprovision"
|
|
30
|
+
],
|
|
27
31
|
"args": {},
|
|
28
32
|
"description": "(requires sudo) suspends a user and deprovisions all addons",
|
|
29
33
|
"examples": [
|
|
@@ -93,7 +97,9 @@
|
|
|
93
97
|
]
|
|
94
98
|
},
|
|
95
99
|
"suspensions": {
|
|
96
|
-
"aliases": [
|
|
100
|
+
"aliases": [
|
|
101
|
+
"skynet:suspensions"
|
|
102
|
+
],
|
|
97
103
|
"args": {},
|
|
98
104
|
"description": "(requires sudo) suspension history of the given user account",
|
|
99
105
|
"examples": [
|
|
@@ -125,7 +131,9 @@
|
|
|
125
131
|
]
|
|
126
132
|
},
|
|
127
133
|
"allowlist:add": {
|
|
128
|
-
"aliases": [
|
|
134
|
+
"aliases": [
|
|
135
|
+
"skynet:allowlist:add"
|
|
136
|
+
],
|
|
129
137
|
"args": {},
|
|
130
138
|
"description": "adds an app or user to the allowlist",
|
|
131
139
|
"examples": [
|
|
@@ -169,7 +177,9 @@
|
|
|
169
177
|
]
|
|
170
178
|
},
|
|
171
179
|
"allowlist:remove": {
|
|
172
|
-
"aliases": [
|
|
180
|
+
"aliases": [
|
|
181
|
+
"skynet:allowlist:remove"
|
|
182
|
+
],
|
|
173
183
|
"args": {},
|
|
174
184
|
"description": "Remove user or app from the allowlist",
|
|
175
185
|
"examples": [
|
|
@@ -204,7 +214,9 @@
|
|
|
204
214
|
]
|
|
205
215
|
},
|
|
206
216
|
"categories:add": {
|
|
207
|
-
"aliases": [
|
|
217
|
+
"aliases": [
|
|
218
|
+
"skynet:categories:add"
|
|
219
|
+
],
|
|
208
220
|
"args": {},
|
|
209
221
|
"description": "(requires sudo) Adds a category for use when suspending or deprovisioning",
|
|
210
222
|
"examples": [
|
|
@@ -246,7 +258,9 @@
|
|
|
246
258
|
]
|
|
247
259
|
},
|
|
248
260
|
"categories:get": {
|
|
249
|
-
"aliases": [
|
|
261
|
+
"aliases": [
|
|
262
|
+
"skynet:categories"
|
|
263
|
+
],
|
|
250
264
|
"args": {},
|
|
251
265
|
"description": "(requires sudo) categories to use for suspension and deprovisions",
|
|
252
266
|
"examples": [
|
|
@@ -269,7 +283,9 @@
|
|
|
269
283
|
]
|
|
270
284
|
},
|
|
271
285
|
"categories:remove": {
|
|
272
|
-
"aliases": [
|
|
286
|
+
"aliases": [
|
|
287
|
+
"skynet:categories:remove"
|
|
288
|
+
],
|
|
273
289
|
"args": {},
|
|
274
290
|
"description": "(requires sudo) Removes a category from Skynet",
|
|
275
291
|
"examples": [
|
|
@@ -302,7 +318,9 @@
|
|
|
302
318
|
]
|
|
303
319
|
},
|
|
304
320
|
"suspend:app-owner": {
|
|
305
|
-
"aliases": [
|
|
321
|
+
"aliases": [
|
|
322
|
+
"skynet:suspend:app-owner"
|
|
323
|
+
],
|
|
306
324
|
"args": {},
|
|
307
325
|
"description": "(requires sudo) suspends the owner of a given app",
|
|
308
326
|
"examples": [
|
|
@@ -382,7 +400,9 @@
|
|
|
382
400
|
]
|
|
383
401
|
},
|
|
384
402
|
"suspend:apps": {
|
|
385
|
-
"aliases": [
|
|
403
|
+
"aliases": [
|
|
404
|
+
"skynet:suspend:app"
|
|
405
|
+
],
|
|
386
406
|
"args": {},
|
|
387
407
|
"description": "(requires sudo) suspends an app",
|
|
388
408
|
"examples": [
|
|
@@ -447,7 +467,9 @@
|
|
|
447
467
|
]
|
|
448
468
|
},
|
|
449
469
|
"suspend:user": {
|
|
450
|
-
"aliases": [
|
|
470
|
+
"aliases": [
|
|
471
|
+
"skynet:suspend:user"
|
|
472
|
+
],
|
|
451
473
|
"args": {},
|
|
452
474
|
"description": "(requires sudo) suspends a user",
|
|
453
475
|
"examples": [
|
|
@@ -541,7 +563,9 @@
|
|
|
541
563
|
]
|
|
542
564
|
},
|
|
543
565
|
"unsuspend:apps": {
|
|
544
|
-
"aliases": [
|
|
566
|
+
"aliases": [
|
|
567
|
+
"skynet:unsuspend:app"
|
|
568
|
+
],
|
|
545
569
|
"args": {},
|
|
546
570
|
"description": "(requires sudo) unsuspends an app",
|
|
547
571
|
"examples": [
|
|
@@ -592,7 +616,9 @@
|
|
|
592
616
|
]
|
|
593
617
|
},
|
|
594
618
|
"unsuspend:user": {
|
|
595
|
-
"aliases": [
|
|
619
|
+
"aliases": [
|
|
620
|
+
"skynet:unsuspend:user"
|
|
621
|
+
],
|
|
596
622
|
"args": {},
|
|
597
623
|
"description": "(requires sudo) unsuspends a user",
|
|
598
624
|
"examples": [
|
|
@@ -642,7 +668,9 @@
|
|
|
642
668
|
]
|
|
643
669
|
},
|
|
644
670
|
"userpass:add": {
|
|
645
|
-
"aliases": [
|
|
671
|
+
"aliases": [
|
|
672
|
+
"skynet:userpass:add"
|
|
673
|
+
],
|
|
646
674
|
"args": {},
|
|
647
675
|
"description": "adds a userpass flag to a given user",
|
|
648
676
|
"examples": [
|
|
@@ -684,7 +712,9 @@
|
|
|
684
712
|
]
|
|
685
713
|
},
|
|
686
714
|
"userpass:remove": {
|
|
687
|
-
"aliases": [
|
|
715
|
+
"aliases": [
|
|
716
|
+
"skynet:userpass:remove"
|
|
717
|
+
],
|
|
688
718
|
"args": {},
|
|
689
719
|
"description": "removes given flag from a given user",
|
|
690
720
|
"examples": [
|
|
@@ -726,5 +756,5 @@
|
|
|
726
756
|
]
|
|
727
757
|
}
|
|
728
758
|
},
|
|
729
|
-
"version": "2.0.
|
|
759
|
+
"version": "2.0.2"
|
|
730
760
|
}
|