@linkedapi/linkedin-cli 1.0.15 → 1.0.16
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 +58 -0
- package/dist/commands/admin/accounts/reconnect.d.ts +16 -0
- package/dist/commands/admin/accounts/reconnect.d.ts.map +1 -0
- package/dist/commands/admin/accounts/reconnect.js +37 -0
- package/dist/commands/admin/accounts/reconnect.js.map +1 -0
- package/dist/commands/admin/accounts/reparse.d.ts +16 -0
- package/dist/commands/admin/accounts/reparse.d.ts.map +1 -0
- package/dist/commands/admin/accounts/reparse.js +37 -0
- package/dist/commands/admin/accounts/reparse.js.map +1 -0
- package/oclif.manifest.json +676 -560
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -770,6 +770,64 @@ linkedin workflow status abc123 --wait --json
|
|
|
770
770
|
|
|
771
771
|
---
|
|
772
772
|
|
|
773
|
+
### Administration
|
|
774
|
+
|
|
775
|
+
Admin commands use your Linked API Token and do not require an active LinkedIn account in the CLI.
|
|
776
|
+
|
|
777
|
+
#### `admin subscription`
|
|
778
|
+
|
|
779
|
+
Manage subscription status, seats, pricing, billing, and cancellation.
|
|
780
|
+
|
|
781
|
+
```bash
|
|
782
|
+
linkedin admin subscription status
|
|
783
|
+
linkedin admin subscription seats
|
|
784
|
+
linkedin admin subscription pricing
|
|
785
|
+
linkedin admin subscription set-seats --quantity 5 --type plus --period year
|
|
786
|
+
linkedin admin subscription billing-link
|
|
787
|
+
linkedin admin subscription cancel
|
|
788
|
+
```
|
|
789
|
+
|
|
790
|
+
#### `admin accounts`
|
|
791
|
+
|
|
792
|
+
Manage connected accounts and connection sessions.
|
|
793
|
+
|
|
794
|
+
```bash
|
|
795
|
+
linkedin admin accounts list
|
|
796
|
+
linkedin admin accounts connect
|
|
797
|
+
linkedin admin accounts reconnect <accountId>
|
|
798
|
+
linkedin admin accounts reparse <accountId>
|
|
799
|
+
linkedin admin accounts session <sessionId>
|
|
800
|
+
linkedin admin accounts cancel-session <sessionId>
|
|
801
|
+
linkedin admin accounts disconnect <accountId>
|
|
802
|
+
linkedin admin accounts regenerate-token <accountId>
|
|
803
|
+
```
|
|
804
|
+
|
|
805
|
+
| Command | Description |
|
|
806
|
+
|---------|-------------|
|
|
807
|
+
| `list` | List connected accounts, pending sessions, and reconnection links |
|
|
808
|
+
| `connect` | Create a connection session for a new LinkedIn account |
|
|
809
|
+
| `reconnect` | Create a fresh reconnection session for an account requiring reconnection |
|
|
810
|
+
| `reparse` | Refresh stored profile URL, avatar, headline, and name |
|
|
811
|
+
| `session` | Get connection or reconnection session status |
|
|
812
|
+
| `cancel-session` | Cancel a pending connection session |
|
|
813
|
+
| `disconnect` | Disconnect an account |
|
|
814
|
+
| `regenerate-token` | Regenerate an account identification token |
|
|
815
|
+
|
|
816
|
+
#### `admin limits`
|
|
817
|
+
|
|
818
|
+
Configure and inspect per-account action limits.
|
|
819
|
+
|
|
820
|
+
```bash
|
|
821
|
+
linkedin admin limits defaults
|
|
822
|
+
linkedin admin limits get <accountId>
|
|
823
|
+
linkedin admin limits usage <accountId>
|
|
824
|
+
linkedin admin limits set <accountId> --category stMessages --period daily --max 25
|
|
825
|
+
linkedin admin limits delete <accountId> --category stMessages --period daily
|
|
826
|
+
linkedin admin limits reset <accountId>
|
|
827
|
+
```
|
|
828
|
+
|
|
829
|
+
---
|
|
830
|
+
|
|
773
831
|
### Account Management
|
|
774
832
|
|
|
775
833
|
#### `account list`
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AdminBaseCommand } from '../../../admin-base-command';
|
|
2
|
+
export default class AdminAccountsReconnect extends AdminBaseCommand {
|
|
3
|
+
static description: string;
|
|
4
|
+
static args: {
|
|
5
|
+
accountId: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
|
|
6
|
+
};
|
|
7
|
+
static flags: {
|
|
8
|
+
json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
9
|
+
fields: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
10
|
+
quiet: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
11
|
+
'no-color': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
12
|
+
};
|
|
13
|
+
static examples: string[];
|
|
14
|
+
run(): Promise<void>;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=reconnect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reconnect.d.ts","sourceRoot":"","sources":["../../../../src/commands/admin/accounts/reconnect.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAGvD,MAAM,CAAC,OAAO,OAAO,sBAAuB,SAAQ,gBAAgB;IAClE,OAAgB,WAAW,SAAkD;IAE7E,OAAgB,IAAI;;MAKlB;IAEF,OAAgB,KAAK;;;;;MAEnB;IAEF,OAAgB,QAAQ,WAA+D;IAE1E,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAkBlC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const core_1 = require("@oclif/core");
|
|
4
|
+
const _admin_base_command_1 = require("../../../admin-base-command");
|
|
5
|
+
const admin_formatter_1 = require("../../../core/output/admin-formatter");
|
|
6
|
+
class AdminAccountsReconnect extends _admin_base_command_1.AdminBaseCommand {
|
|
7
|
+
static description = 'Create a reconnection session for an account';
|
|
8
|
+
static args = {
|
|
9
|
+
accountId: core_1.Args.string({
|
|
10
|
+
description: 'Account UUID',
|
|
11
|
+
required: true,
|
|
12
|
+
}),
|
|
13
|
+
};
|
|
14
|
+
static flags = {
|
|
15
|
+
..._admin_base_command_1.AdminBaseCommand.baseFlags,
|
|
16
|
+
};
|
|
17
|
+
static examples = ['<%= config.bin %> admin accounts reconnect f9b4346a-...'];
|
|
18
|
+
async run() {
|
|
19
|
+
const { args, flags } = await this.parse(AdminAccountsReconnect);
|
|
20
|
+
const admin = await this.buildAdminClient();
|
|
21
|
+
try {
|
|
22
|
+
const result = await admin.accounts.createReconnectionSession({
|
|
23
|
+
accountId: args.accountId,
|
|
24
|
+
});
|
|
25
|
+
(0, admin_formatter_1.formatAdminOutput)({
|
|
26
|
+
data: result,
|
|
27
|
+
isJson: flags.json,
|
|
28
|
+
fields: flags.fields,
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
catch (error) {
|
|
32
|
+
this.handleError(error);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.default = AdminAccountsReconnect;
|
|
37
|
+
//# sourceMappingURL=reconnect.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reconnect.js","sourceRoot":"","sources":["../../../../src/commands/admin/accounts/reconnect.ts"],"names":[],"mappings":";;AAAA,sCAAmC;AAEnC,6DAAuD;AACvD,kEAAiE;AAEjE,MAAqB,sBAAuB,SAAQ,sCAAgB;IAClE,MAAM,CAAU,WAAW,GAAG,8CAA8C,CAAC;IAE7E,MAAM,CAAU,IAAI,GAAG;QACrB,SAAS,EAAE,WAAI,CAAC,MAAM,CAAC;YACrB,WAAW,EAAE,cAAc;YAC3B,QAAQ,EAAE,IAAI;SACf,CAAC;KACH,CAAC;IAEF,MAAM,CAAU,KAAK,GAAG;QACtB,GAAG,sCAAgB,CAAC,SAAS;KAC9B,CAAC;IAEF,MAAM,CAAU,QAAQ,GAAG,CAAC,yDAAyD,CAAC,CAAC;IAEhF,KAAK,CAAC,GAAG;QACd,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC;QACjE,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,gBAAgB,EAAE,CAAC;QAE5C,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,MAAM,KAAK,CAAC,QAAQ,CAAC,yBAAyB,CAAC;gBAC5D,SAAS,EAAE,IAAI,CAAC,SAAS;aAC1B,CAAC,CAAC;YAEH,IAAA,mCAAiB,EAAC;gBAChB,IAAI,EAAE,MAAM;gBACZ,MAAM,EAAE,KAAK,CAAC,IAAI;gBAClB,MAAM,EAAE,KAAK,CAAC,MAAM;aACrB,CAAC,CAAC;QACL,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QAC1B,CAAC;IACH,CAAC;;AAjCH,yCAkCC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AdminBaseCommand } from '../../../admin-base-command';
|
|
2
|
+
export default class AdminAccountsReparse extends AdminBaseCommand {
|
|
3
|
+
static description: string;
|
|
4
|
+
static args: {
|
|
5
|
+
accountId: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
|
|
6
|
+
};
|
|
7
|
+
static flags: {
|
|
8
|
+
json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
9
|
+
fields: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
10
|
+
quiet: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
11
|
+
'no-color': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
12
|
+
};
|
|
13
|
+
static examples: string[];
|
|
14
|
+
run(): Promise<void>;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=reparse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reparse.d.ts","sourceRoot":"","sources":["../../../../src/commands/admin/accounts/reparse.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAGvD,MAAM,CAAC,OAAO,OAAO,oBAAqB,SAAQ,gBAAgB;IAChE,OAAgB,WAAW,SAAgD;IAE3E,OAAgB,IAAI;;MAKlB;IAEF,OAAgB,KAAK;;;;;MAEnB;IAEF,OAAgB,QAAQ,WAA6D;IAExE,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAkBlC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const core_1 = require("@oclif/core");
|
|
4
|
+
const _admin_base_command_1 = require("../../../admin-base-command");
|
|
5
|
+
const admin_formatter_1 = require("../../../core/output/admin-formatter");
|
|
6
|
+
class AdminAccountsReparse extends _admin_base_command_1.AdminBaseCommand {
|
|
7
|
+
static description = 'Refresh stored profile info for an account';
|
|
8
|
+
static args = {
|
|
9
|
+
accountId: core_1.Args.string({
|
|
10
|
+
description: 'Account UUID',
|
|
11
|
+
required: true,
|
|
12
|
+
}),
|
|
13
|
+
};
|
|
14
|
+
static flags = {
|
|
15
|
+
..._admin_base_command_1.AdminBaseCommand.baseFlags,
|
|
16
|
+
};
|
|
17
|
+
static examples = ['<%= config.bin %> admin accounts reparse f9b4346a-...'];
|
|
18
|
+
async run() {
|
|
19
|
+
const { args, flags } = await this.parse(AdminAccountsReparse);
|
|
20
|
+
const admin = await this.buildAdminClient();
|
|
21
|
+
try {
|
|
22
|
+
const result = await admin.accounts.reparseAccountInfo({
|
|
23
|
+
accountId: args.accountId,
|
|
24
|
+
});
|
|
25
|
+
(0, admin_formatter_1.formatAdminOutput)({
|
|
26
|
+
data: result,
|
|
27
|
+
isJson: flags.json,
|
|
28
|
+
fields: flags.fields,
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
catch (error) {
|
|
32
|
+
this.handleError(error);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.default = AdminAccountsReparse;
|
|
37
|
+
//# sourceMappingURL=reparse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reparse.js","sourceRoot":"","sources":["../../../../src/commands/admin/accounts/reparse.ts"],"names":[],"mappings":";;AAAA,sCAAmC;AAEnC,6DAAuD;AACvD,kEAAiE;AAEjE,MAAqB,oBAAqB,SAAQ,sCAAgB;IAChE,MAAM,CAAU,WAAW,GAAG,4CAA4C,CAAC;IAE3E,MAAM,CAAU,IAAI,GAAG;QACrB,SAAS,EAAE,WAAI,CAAC,MAAM,CAAC;YACrB,WAAW,EAAE,cAAc;YAC3B,QAAQ,EAAE,IAAI;SACf,CAAC;KACH,CAAC;IAEF,MAAM,CAAU,KAAK,GAAG;QACtB,GAAG,sCAAgB,CAAC,SAAS;KAC9B,CAAC;IAEF,MAAM,CAAU,QAAQ,GAAG,CAAC,uDAAuD,CAAC,CAAC;IAE9E,KAAK,CAAC,GAAG;QACd,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC;QAC/D,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,gBAAgB,EAAE,CAAC;QAE5C,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,MAAM,KAAK,CAAC,QAAQ,CAAC,kBAAkB,CAAC;gBACrD,SAAS,EAAE,IAAI,CAAC,SAAS;aAC1B,CAAC,CAAC;YAEH,IAAA,mCAAiB,EAAC;gBAChB,IAAI,EAAE,MAAM;gBACZ,MAAM,EAAE,KAAK,CAAC,IAAI;gBAClB,MAAM,EAAE,KAAK,CAAC,MAAM;aACrB,CAAC,CAAC;QACL,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QAC1B,CAAC;IACH,CAAC;;AAjCH,uCAkCC"}
|