oceanbus 0.4.8 → 0.4.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.
package/README.md
CHANGED
|
@@ -149,8 +149,8 @@ oceanbus add <name> <openid> # Save a contact with a dedicated sender address
|
|
|
149
149
|
oceanbus contacts # List saved contacts
|
|
150
150
|
oceanbus block <openid> # Block a sender
|
|
151
151
|
oceanbus keygen # Generate an Ed25519 key pair
|
|
152
|
-
oceanbus key
|
|
153
|
-
oceanbus key
|
|
152
|
+
oceanbus key-create # Create a new API key
|
|
153
|
+
oceanbus key-revoke <key_id> # Revoke an API key
|
|
154
154
|
```
|
|
155
155
|
|
|
156
156
|
Pipe mode:
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.keyNewCommand = void 0;
|
|
4
4
|
const index_1 = require("../../index");
|
|
5
5
|
exports.keyNewCommand = {
|
|
6
|
-
command: 'key
|
|
6
|
+
command: 'key-create',
|
|
7
7
|
describe: 'Create a new API key',
|
|
8
8
|
handler: async () => {
|
|
9
9
|
try {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"key-new.js","sourceRoot":"","sources":["../../../src/cli/commands/key-new.ts"],"names":[],"mappings":";;;AACA,uCAA6C;AAEhC,QAAA,aAAa,GAAkB;IAC1C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"key-new.js","sourceRoot":"","sources":["../../../src/cli/commands/key-new.ts"],"names":[],"mappings":";;;AACA,uCAA6C;AAEhC,QAAA,aAAa,GAAkB;IAC1C,OAAO,EAAE,YAAY;IACrB,QAAQ,EAAE,sBAAsB;IAChC,OAAO,EAAE,KAAK,IAAI,EAAE;QAClB,IAAI,CAAC;YACH,MAAM,EAAE,GAAG,MAAM,IAAA,sBAAc,GAAE,CAAC;YAClC,MAAM,IAAI,GAAG,MAAM,EAAE,CAAC,YAAY,EAAE,CAAC;YACrC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;YAC3C,OAAO,CAAC,KAAK,CAAC,yDAAyD,CAAC,CAAC;QAC3E,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,OAAO,CAAC,KAAK,CAAC,sBAAsB,EAAG,GAAa,CAAC,OAAO,CAAC,CAAC;YAC9D,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAClB,CAAC;IACH,CAAC;CACF,CAAC"}
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.keyRevokeCommand = void 0;
|
|
4
4
|
const index_1 = require("../../index");
|
|
5
5
|
exports.keyRevokeCommand = {
|
|
6
|
-
command: 'key
|
|
6
|
+
command: 'key-revoke <key_id>',
|
|
7
7
|
describe: 'Revoke an API key',
|
|
8
8
|
builder: (yargs) => yargs.positional('key_id', {
|
|
9
9
|
type: 'string',
|