checkly 7.14.0 → 7.15.0-prerelease-7af4828
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/ai-context/context.d.ts +7 -1
- package/dist/ai-context/context.js +5 -1
- package/dist/ai-context/context.js.map +1 -1
- package/dist/ai-context/public-skills/checkly/SKILL.md +2 -2
- package/dist/ai-context/skills-command/references/manage-account-members.md +64 -0
- package/dist/ai-context/skills-command/references/manage.md +4 -1
- package/dist/commands/account/members.d.ts +22 -0
- package/dist/commands/account/members.js +174 -0
- package/dist/commands/account/members.js.map +1 -0
- package/dist/formatters/account-members.d.ts +8 -0
- package/dist/formatters/account-members.js +124 -0
- package/dist/formatters/account-members.js.map +1 -0
- package/dist/rest/account-members.d.ts +50 -0
- package/dist/rest/account-members.js +13 -0
- package/dist/rest/account-members.js.map +1 -0
- package/dist/rest/api.d.ts +2 -0
- package/dist/rest/api.js +3 -1
- package/dist/rest/api.js.map +1 -1
- package/oclif.manifest.json +92 -1
- package/package.json +1 -1
|
@@ -49,6 +49,9 @@ export declare const COMMUNICATE_REFERENCES: readonly [{
|
|
|
49
49
|
export declare const MANAGE_REFERENCES: readonly [{
|
|
50
50
|
readonly id: "manage-plan";
|
|
51
51
|
readonly description: "Check account plan, entitlements, feature limits, and available locations (`account plan`)";
|
|
52
|
+
}, {
|
|
53
|
+
readonly id: "manage-account-members";
|
|
54
|
+
readonly description: "List account members and pending invites (`account members`)";
|
|
52
55
|
}];
|
|
53
56
|
export declare const SKILL: {
|
|
54
57
|
readonly name: "checkly";
|
|
@@ -116,10 +119,13 @@ export declare const ACTIONS: readonly [{
|
|
|
116
119
|
}];
|
|
117
120
|
}, {
|
|
118
121
|
readonly id: "manage";
|
|
119
|
-
readonly description: "Understand your account plan, entitlements, and
|
|
122
|
+
readonly description: "Understand your account plan, entitlements, feature limits, members, and pending invites.";
|
|
120
123
|
readonly references: readonly [{
|
|
121
124
|
readonly id: "manage-plan";
|
|
122
125
|
readonly description: "Check account plan, entitlements, feature limits, and available locations (`account plan`)";
|
|
126
|
+
}, {
|
|
127
|
+
readonly id: "manage-account-members";
|
|
128
|
+
readonly description: "List account members and pending invites (`account members`)";
|
|
123
129
|
}];
|
|
124
130
|
}];
|
|
125
131
|
interface ExampleConfig {
|
|
@@ -72,6 +72,10 @@ exports.MANAGE_REFERENCES = [
|
|
|
72
72
|
id: 'manage-plan',
|
|
73
73
|
description: 'Check account plan, entitlements, feature limits, and available locations (`account plan`)',
|
|
74
74
|
},
|
|
75
|
+
{
|
|
76
|
+
id: 'manage-account-members',
|
|
77
|
+
description: 'List account members and pending invites (`account members`)',
|
|
78
|
+
},
|
|
75
79
|
];
|
|
76
80
|
exports.SKILL = {
|
|
77
81
|
name: 'checkly',
|
|
@@ -99,7 +103,7 @@ exports.ACTIONS = [
|
|
|
99
103
|
},
|
|
100
104
|
{
|
|
101
105
|
id: 'manage',
|
|
102
|
-
description: 'Understand your account plan, entitlements, and
|
|
106
|
+
description: 'Understand your account plan, entitlements, feature limits, members, and pending invites.',
|
|
103
107
|
references: exports.MANAGE_REFERENCES,
|
|
104
108
|
},
|
|
105
109
|
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../src/ai-context/context.ts"],"names":[],"mappings":";;;AAAa,QAAA,UAAU,GAAG;IACxB;QACE,EAAE,EAAE,0BAA0B;QAC9B,WAAW,EAAE,oHAAoH;KAClI;IACD;QACE,EAAE,EAAE,sBAAsB;QAC1B,WAAW,EAAE,gFAAgF;KAC9F;IACD;QACE,EAAE,EAAE,0BAA0B;QAC9B,WAAW,EAAE,qEAAqE;KACnF;IACD;QACE,EAAE,EAAE,6BAA6B;QACjC,WAAW,EAAE,oFAAoF;KAClG;IACD;QACE,EAAE,EAAE,4BAA4B;QAChC,WAAW,EAAE,qEAAqE;KACnF;IACD;QACE,EAAE,EAAE,wBAAwB;QAC5B,WAAW,EAAE,sDAAsD;KACpE;IACD;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W,EAAE,
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../src/ai-context/context.ts"],"names":[],"mappings":";;;AAAa,QAAA,UAAU,GAAG;IACxB;QACE,EAAE,EAAE,0BAA0B;QAC9B,WAAW,EAAE,oHAAoH;KAClI;IACD;QACE,EAAE,EAAE,sBAAsB;QAC1B,WAAW,EAAE,gFAAgF;KAC9F;IACD;QACE,EAAE,EAAE,0BAA0B;QAC9B,WAAW,EAAE,qEAAqE;KACnF;IACD;QACE,EAAE,EAAE,6BAA6B;QACjC,WAAW,EAAE,oFAAoF;KAClG;IACD;QACE,EAAE,EAAE,4BAA4B;QAChC,WAAW,EAAE,qEAAqE;KACnF;IACD;QACE,EAAE,EAAE,wBAAwB;QAC5B,WAAW,EAAE,sDAAsD;KACpE;IACD;QACE,EAAE,EAAE,wBAAwB;QAC5B,WAAW,EAAE,sDAAsD;KACpE;IACD;QACE,EAAE,EAAE,wBAAwB;QAC5B,WAAW,EAAE,sDAAsD;KACpE;IACD;QACE,EAAE,EAAE,yBAAyB;QAC7B,WAAW,EAAE,gFAAgF;KAC9F;IACD;QACE,EAAE,EAAE,8BAA8B;QAClC,WAAW,EAAE,kDAAkD;KAChE;IACD;QACE,EAAE,EAAE,wBAAwB;QAC5B,WAAW,EAAE,+DAA+D;KAC7E;IACD;QACE,EAAE,EAAE,0BAA0B;QAC9B,WAAW,EAAE,8GAA8G;KAC5H;IACD;QACE,EAAE,EAAE,iCAAiC;QACrC,WAAW,EAAE,6IAA6I;KAC3J;CACO,CAAA;AAEG,QAAA,sBAAsB,GAAG;IACpC;QACE,EAAE,EAAE,oBAAoB;QACxB,WAAW,EAAE,+EAA+E;KAC7F;CACO,CAAA;AAEG,QAAA,sBAAsB,GAAG;IACpC;QACE,EAAE,EAAE,uBAAuB;QAC3B,WAAW,EAAE,uFAAuF;KACrG;CACO,CAAA;AAEG,QAAA,iBAAiB,GAAG;IAC/B;QACE,EAAE,EAAE,aAAa;QACjB,WAAW,EAAE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D;KACzE;IACD,mBAAmB,EAAE;QACnB,cAAc,EAAE,uCAAuC;QACvD,iBAAiB,EAAE,8CAA8C;QACjE,SAAS,EAAE,gEAAgE;KAC5E;IACD,wBAAwB,EAAE;QACxB,cAAc,EAAE,4CAA4C;QAC5D,iBAAiB,EAAE,wDAAwD;QAC3E,SAAS,EAAE,qEAAqE;KACjF;IACD,mBAAmB,EAAE;QACnB,cAAc,EAAE,uCAAuC;QACvD,iBAAiB,EAAE,iDAAiD;QACpE,SAAS,EAAE,gEAAgE;KAC5E;CACF,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: checkly
|
|
3
|
-
description: Set up, create, test and manage monitoring checks using the Checkly CLI. Use when working with Agentic Checks, API Checks, Browser Checks, URL Monitors, ICMP Monitors, Playwright Check Suites, Heartbeat Monitors, Alert Channels, Dashboards, or Status Pages. Access Checkly account plan, entitlements and
|
|
3
|
+
description: Set up, create, test and manage monitoring checks using the Checkly CLI. Use when working with Agentic Checks, API Checks, Browser Checks, URL Monitors, ICMP Monitors, Playwright Check Suites, Heartbeat Monitors, Alert Channels, Dashboards, or Status Pages. Access Checkly account plan, entitlements, feature limits, members, and pending invites.
|
|
4
4
|
allowed-tools: Bash(npx:checkly:*) Bash(npm:install:*)
|
|
5
5
|
metadata:
|
|
6
6
|
author: checkly
|
|
@@ -49,4 +49,4 @@ Access check status, analyze failures, and investigate errors.
|
|
|
49
49
|
Open incidents and lead customer communications via status pages.
|
|
50
50
|
|
|
51
51
|
### `npx checkly skills manage`
|
|
52
|
-
Understand your account plan, entitlements, and
|
|
52
|
+
Understand your account plan, entitlements, feature limits, members, and pending invites.
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# Account Members
|
|
2
|
+
|
|
3
|
+
List active account members and pending or expired account invites.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npx checkly account members
|
|
9
|
+
npx checkly account members --output json
|
|
10
|
+
npx checkly account members --search alice
|
|
11
|
+
npx checkly account members --type invite --status pending
|
|
12
|
+
npx checkly account members --role admin
|
|
13
|
+
npx checkly account members --limit 25
|
|
14
|
+
npx checkly account members --hide-id
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Flags:
|
|
18
|
+
- `--search <term>` — match member names, member emails, and invite emails.
|
|
19
|
+
- `--type <type>` — `member` or `invite` (case-insensitive).
|
|
20
|
+
- `--role <role>` — `owner`, `admin`, `read_write`, `read_run`, or `read_only` (case-insensitive).
|
|
21
|
+
- `--status <status>` — `active`, `pending`, or `expired` (case-insensitive).
|
|
22
|
+
- `-l, --limit <n>` — number of rows to return, from 1 to 100.
|
|
23
|
+
- `--next-id <cursor>` — cursor for the next page. Requires `--limit`.
|
|
24
|
+
- `-o, --output <format>` — `table` (default), `json`, or `md`.
|
|
25
|
+
- `--hide-id` — hide member and invite IDs in table output.
|
|
26
|
+
|
|
27
|
+
## JSON response shape
|
|
28
|
+
|
|
29
|
+
```json
|
|
30
|
+
{
|
|
31
|
+
"members": [
|
|
32
|
+
{
|
|
33
|
+
"type": "member",
|
|
34
|
+
"accountId": "11111111-1111-1111-1111-111111111111",
|
|
35
|
+
"userId": "22222222-2222-2222-2222-222222222222",
|
|
36
|
+
"name": "Owner User",
|
|
37
|
+
"email": "owner@example.com",
|
|
38
|
+
"role": "OWNER",
|
|
39
|
+
"status": "ACTIVE",
|
|
40
|
+
"createdAt": "2026-01-01T00:00:00.000Z",
|
|
41
|
+
"updatedAt": "2026-01-02T00:00:00.000Z",
|
|
42
|
+
"isSupportMembership": false,
|
|
43
|
+
"ssoEnabled": false,
|
|
44
|
+
"mfaEnabled": true
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"type": "invite",
|
|
48
|
+
"id": "33333333-3333-3333-3333-333333333333",
|
|
49
|
+
"accountId": "11111111-1111-1111-1111-111111111111",
|
|
50
|
+
"email": "pending@example.com",
|
|
51
|
+
"role": "READ_ONLY",
|
|
52
|
+
"status": "PENDING",
|
|
53
|
+
"inviterEmail": "owner@example.com",
|
|
54
|
+
"createdAt": "2026-01-03T00:00:00.000Z",
|
|
55
|
+
"updatedAt": "2026-01-03T00:00:00.000Z",
|
|
56
|
+
"expiresAt": "2026-02-03T00:00:00.000Z"
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
"length": 2,
|
|
60
|
+
"nextId": null
|
|
61
|
+
}
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
Member roles are returned as `OWNER`, `ADMIN`, `READ_WRITE`, `READ_RUN`, or `READ_ONLY`. Invite roles exclude `OWNER`. Invite statuses are returned as `PENDING` or `EXPIRED`.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Account Management
|
|
2
2
|
|
|
3
|
-
Understand your account's plan, entitlements, and
|
|
3
|
+
Understand your account's plan, entitlements, limits, members, and pending invites.
|
|
4
4
|
|
|
5
5
|
## Plan-aware workflow
|
|
6
6
|
|
|
@@ -48,3 +48,6 @@ Parse and read further reference documentation for any of the following:
|
|
|
48
48
|
|
|
49
49
|
### `npx checkly skills manage plan`
|
|
50
50
|
Check account plan, entitlements, feature limits, and available locations (`account plan`)
|
|
51
|
+
|
|
52
|
+
### `npx checkly skills manage account-members`
|
|
53
|
+
List account members and pending invites (`account members`)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { AuthCommand } from '../authCommand';
|
|
2
|
+
import type { AccountMemberRole, AccountMemberStatus, AccountMemberType } from '../../rest/account-members';
|
|
3
|
+
export declare function normalizeAccountMemberType(value: string | undefined): AccountMemberType | undefined;
|
|
4
|
+
export declare function normalizeAccountMemberRole(value: string | undefined): AccountMemberRole | undefined;
|
|
5
|
+
export declare function normalizeAccountMemberStatus(value: string | undefined): AccountMemberStatus | undefined;
|
|
6
|
+
export default class AccountMembers extends AuthCommand {
|
|
7
|
+
static hidden: boolean;
|
|
8
|
+
static readOnly: boolean;
|
|
9
|
+
static idempotent: boolean;
|
|
10
|
+
static description: string;
|
|
11
|
+
static flags: {
|
|
12
|
+
search: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
|
+
type: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
14
|
+
role: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
15
|
+
status: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
16
|
+
limit: import("@oclif/core/interfaces").OptionFlag<number | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
17
|
+
'next-id': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
18
|
+
'hide-id': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
19
|
+
output: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
20
|
+
};
|
|
21
|
+
run(): Promise<void>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.normalizeAccountMemberType = normalizeAccountMemberType;
|
|
37
|
+
exports.normalizeAccountMemberRole = normalizeAccountMemberRole;
|
|
38
|
+
exports.normalizeAccountMemberStatus = normalizeAccountMemberStatus;
|
|
39
|
+
const core_1 = require("@oclif/core");
|
|
40
|
+
const authCommand_1 = require("../authCommand");
|
|
41
|
+
const flags_1 = require("../../helpers/flags");
|
|
42
|
+
const api = __importStar(require("../../rest/api"));
|
|
43
|
+
const account_members_1 = require("../../formatters/account-members");
|
|
44
|
+
const accountMemberTypes = ['member', 'invite'];
|
|
45
|
+
const accountMemberRoles = ['OWNER', 'ADMIN', 'READ_WRITE', 'READ_RUN', 'READ_ONLY'];
|
|
46
|
+
const accountMemberStatuses = ['ACTIVE', 'PENDING', 'EXPIRED'];
|
|
47
|
+
const accountMemberRoleOptions = accountMemberRoles.map(role => role.toLowerCase());
|
|
48
|
+
const accountMemberStatusOptions = accountMemberStatuses.map(status => status.toLowerCase());
|
|
49
|
+
function isAccountMemberType(value) {
|
|
50
|
+
return accountMemberTypes.includes(value);
|
|
51
|
+
}
|
|
52
|
+
function isAccountMemberRole(value) {
|
|
53
|
+
return accountMemberRoles.includes(value);
|
|
54
|
+
}
|
|
55
|
+
function isAccountMemberStatus(value) {
|
|
56
|
+
return accountMemberStatuses.includes(value);
|
|
57
|
+
}
|
|
58
|
+
function normalizeAccountMemberType(value) {
|
|
59
|
+
if (value === undefined)
|
|
60
|
+
return undefined;
|
|
61
|
+
const normalized = value.trim().toLowerCase();
|
|
62
|
+
return isAccountMemberType(normalized) ? normalized : undefined;
|
|
63
|
+
}
|
|
64
|
+
function normalizeAccountMemberRole(value) {
|
|
65
|
+
if (value === undefined)
|
|
66
|
+
return undefined;
|
|
67
|
+
const normalized = value.trim().toUpperCase();
|
|
68
|
+
return isAccountMemberRole(normalized) ? normalized : undefined;
|
|
69
|
+
}
|
|
70
|
+
function normalizeAccountMemberStatus(value) {
|
|
71
|
+
if (value === undefined)
|
|
72
|
+
return undefined;
|
|
73
|
+
const normalized = value.trim().toUpperCase();
|
|
74
|
+
return isAccountMemberStatus(normalized) ? normalized : undefined;
|
|
75
|
+
}
|
|
76
|
+
class AccountMembers extends authCommand_1.AuthCommand {
|
|
77
|
+
static hidden = false;
|
|
78
|
+
static readOnly = true;
|
|
79
|
+
static idempotent = true;
|
|
80
|
+
static description = 'List account members and pending invites.';
|
|
81
|
+
static flags = {
|
|
82
|
+
'search': core_1.Flags.string({
|
|
83
|
+
char: 's',
|
|
84
|
+
description: 'Search members and invites by name or email.',
|
|
85
|
+
}),
|
|
86
|
+
'type': core_1.Flags.string({
|
|
87
|
+
description: 'Filter by item type: member or invite.',
|
|
88
|
+
}),
|
|
89
|
+
'role': core_1.Flags.string({
|
|
90
|
+
description: `Filter by member or invite role: ${accountMemberRoleOptions.join(', ')}.`,
|
|
91
|
+
}),
|
|
92
|
+
'status': core_1.Flags.string({
|
|
93
|
+
description: `Filter by member or invite status: ${accountMemberStatusOptions.join(', ')}.`,
|
|
94
|
+
}),
|
|
95
|
+
'limit': core_1.Flags.integer({
|
|
96
|
+
char: 'l',
|
|
97
|
+
description: 'Number of account members to return (1-100). Enables cursor pagination.',
|
|
98
|
+
}),
|
|
99
|
+
'next-id': core_1.Flags.string({
|
|
100
|
+
description: 'Cursor for next page. Requires --limit.',
|
|
101
|
+
}),
|
|
102
|
+
'hide-id': core_1.Flags.boolean({
|
|
103
|
+
description: 'Hide member and invite IDs in table output.',
|
|
104
|
+
default: false,
|
|
105
|
+
}),
|
|
106
|
+
'output': (0, flags_1.outputFlag)({ default: 'table' }),
|
|
107
|
+
};
|
|
108
|
+
async run() {
|
|
109
|
+
const { flags } = await this.parse(AccountMembers);
|
|
110
|
+
this.style.outputFormat = flags.output;
|
|
111
|
+
const limit = flags.limit;
|
|
112
|
+
if (limit !== undefined && (limit < 1 || limit > 100)) {
|
|
113
|
+
this.error('--limit must be an integer between 1 and 100.');
|
|
114
|
+
}
|
|
115
|
+
if (flags['next-id'] && limit === undefined) {
|
|
116
|
+
this.error('Cannot use --next-id without --limit.');
|
|
117
|
+
}
|
|
118
|
+
const type = normalizeAccountMemberType(flags.type);
|
|
119
|
+
if (flags.type && !type) {
|
|
120
|
+
this.error(`Invalid --type "${flags.type}". Valid values: ${accountMemberTypes.join(', ')}.`);
|
|
121
|
+
}
|
|
122
|
+
const role = normalizeAccountMemberRole(flags.role);
|
|
123
|
+
if (flags.role && !role) {
|
|
124
|
+
this.error(`Invalid --role "${flags.role}". Valid values: ${accountMemberRoleOptions.join(', ')}.`);
|
|
125
|
+
}
|
|
126
|
+
const status = normalizeAccountMemberStatus(flags.status);
|
|
127
|
+
if (flags.status && !status) {
|
|
128
|
+
this.error(`Invalid --status "${flags.status}". Valid values: ${accountMemberStatusOptions.join(', ')}.`);
|
|
129
|
+
}
|
|
130
|
+
const params = {
|
|
131
|
+
search: flags.search,
|
|
132
|
+
type,
|
|
133
|
+
role,
|
|
134
|
+
status,
|
|
135
|
+
limit,
|
|
136
|
+
nextId: flags['next-id'],
|
|
137
|
+
};
|
|
138
|
+
try {
|
|
139
|
+
const { data } = await api.accountMembers.getAll(params);
|
|
140
|
+
if (flags.output === 'json') {
|
|
141
|
+
this.log(JSON.stringify(data, null, 2));
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
if (data.members.length === 0) {
|
|
145
|
+
this.log('No account members found.');
|
|
146
|
+
return;
|
|
147
|
+
}
|
|
148
|
+
const fmt = flags.output === 'md' ? 'md' : 'terminal';
|
|
149
|
+
if (fmt === 'md') {
|
|
150
|
+
this.log((0, account_members_1.formatAccountMembers)(data.members, fmt, { showId: !flags['hide-id'] }));
|
|
151
|
+
return;
|
|
152
|
+
}
|
|
153
|
+
const output = [
|
|
154
|
+
(0, account_members_1.formatAccountMembers)(data.members, fmt, { showId: !flags['hide-id'] }),
|
|
155
|
+
];
|
|
156
|
+
if (limit !== undefined) {
|
|
157
|
+
output.push('');
|
|
158
|
+
output.push((0, account_members_1.formatCursorPaginationInfo)(data.length, data.nextId));
|
|
159
|
+
const navHints = (0, account_members_1.formatCursorNavigationHints)(data.nextId);
|
|
160
|
+
if (navHints) {
|
|
161
|
+
output.push('');
|
|
162
|
+
output.push(navHints.replace('<limit>', String(limit)));
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
this.log(output.join('\n'));
|
|
166
|
+
}
|
|
167
|
+
catch (err) {
|
|
168
|
+
this.style.longError('Failed to list account members.', err);
|
|
169
|
+
process.exitCode = 1;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
exports.default = AccountMembers;
|
|
174
|
+
//# sourceMappingURL=members.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"members.js","sourceRoot":"","sources":["../../../src/commands/account/members.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCA,gEAIC;AAED,gEAIC;AAED,oEAIC;AAnDD,sCAAmC;AACnC,gDAA4C;AAC5C,+CAAgD;AAChD,oDAAqC;AAQrC,sE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AO,EAAE,GAAG,EAAE,EAAE,MAAM,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,CAAC;aACvE,CAAA;YAED,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;gBACxB,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;gBACf,MAAM,CAAC,IAAI,CAAC,IAAA,4CAA0B,EAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAA;gBAEjE,MAAM,QAAQ,GAAG,IAAA,6CAA2B,EAAC,IAAI,CAAC,MAAM,CAAC,CAAA;gBACzD,IAAI,QAAQ,EAAE,CAAC;oBACb,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;oBACf,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;gBACzD,CAAC;YACH,CAAC;YAED,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAA;QAC7B,CAAC;QAAC,OAAO,GAAQ,EAAE,CAAC;YAClB,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,iCAAiC,EAAE,GAAG,CAAC,CAAA;YAC5D,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAA;QACtB,CAAC;IACH,CAAC;;AA9GH,iCA+GC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { AccountMember } from '../rest/account-members';
|
|
2
|
+
import { type OutputFormat } from './render';
|
|
3
|
+
export interface AccountMembersTableOptions {
|
|
4
|
+
showId?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare function formatCursorPaginationInfo(count: number, nextId: string | null): string;
|
|
7
|
+
export declare function formatCursorNavigationHints(nextId: string | null): string;
|
|
8
|
+
export declare function formatAccountMembers(members: AccountMember[], format: OutputFormat, options?: AccountMembersTableOptions): string;
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.formatCursorPaginationInfo = formatCursorPaginationInfo;
|
|
7
|
+
exports.formatCursorNavigationHints = formatCursorNavigationHints;
|
|
8
|
+
exports.formatAccountMembers = formatAccountMembers;
|
|
9
|
+
const chalk_1 = __importDefault(require("chalk"));
|
|
10
|
+
const render_1 = require("./render");
|
|
11
|
+
function formatCursorPaginationInfo(count, nextId) {
|
|
12
|
+
const base = `${count} account member${count !== 1 ? 's' : ''}`;
|
|
13
|
+
if (nextId) {
|
|
14
|
+
return chalk_1.default.dim(`Showing ${base} (more available)`);
|
|
15
|
+
}
|
|
16
|
+
return chalk_1.default.dim(`Showing ${base}`);
|
|
17
|
+
}
|
|
18
|
+
function formatCursorNavigationHints(nextId) {
|
|
19
|
+
if (!nextId)
|
|
20
|
+
return '';
|
|
21
|
+
return ` ${chalk_1.default.dim('Next page:')} checkly account members --limit <limit> --next-id ${nextId}`;
|
|
22
|
+
}
|
|
23
|
+
function boolSymbol(value, format) {
|
|
24
|
+
if (value === undefined)
|
|
25
|
+
return format === 'terminal' ? chalk_1.default.dim('-') : '-';
|
|
26
|
+
if (format === 'md')
|
|
27
|
+
return value ? 'yes' : '-';
|
|
28
|
+
return value ? chalk_1.default.green('yes') : chalk_1.default.dim('-');
|
|
29
|
+
}
|
|
30
|
+
function memberName(member, format) {
|
|
31
|
+
if (member.type === 'invite')
|
|
32
|
+
return format === 'terminal' ? chalk_1.default.dim('-') : '-';
|
|
33
|
+
return member.name ?? (format === 'terminal' ? chalk_1.default.dim('-') : '-');
|
|
34
|
+
}
|
|
35
|
+
function memberId(member) {
|
|
36
|
+
return member.type === 'member' ? member.userId : member.id;
|
|
37
|
+
}
|
|
38
|
+
function expiresAt(member, format) {
|
|
39
|
+
if (member.type === 'member')
|
|
40
|
+
return format === 'terminal' ? chalk_1.default.dim('-') : '-';
|
|
41
|
+
return (0, render_1.formatDate)(member.expiresAt, format);
|
|
42
|
+
}
|
|
43
|
+
function buildAccountMemberColumns(members, format, options = {}) {
|
|
44
|
+
if (format === 'md') {
|
|
45
|
+
const columns = [
|
|
46
|
+
{ header: 'Type', value: m => m.type },
|
|
47
|
+
{ header: 'Email', value: m => m.email },
|
|
48
|
+
{ header: 'Name', value: (m, fmt) => memberName(m, fmt) },
|
|
49
|
+
{ header: 'Role', value: m => m.role },
|
|
50
|
+
{ header: 'Status', value: m => m.status },
|
|
51
|
+
{ header: 'MFA', value: (m, fmt) => boolSymbol(m.type === 'member' ? m.mfaEnabled : undefined, fmt) },
|
|
52
|
+
{ header: 'SSO', value: (m, fmt) => boolSymbol(m.type === 'member' ? m.ssoEnabled : undefined, fmt) },
|
|
53
|
+
{ header: 'Support', value: (m, fmt) => boolSymbol(m.type === 'member' ? m.isSupportMembership : undefined, fmt) },
|
|
54
|
+
{ header: 'Expires', value: (m, fmt) => expiresAt(m, fmt) },
|
|
55
|
+
];
|
|
56
|
+
if (options.showId !== false) {
|
|
57
|
+
columns.push({ header: 'ID', value: memberId });
|
|
58
|
+
}
|
|
59
|
+
return columns;
|
|
60
|
+
}
|
|
61
|
+
const showId = options.showId !== false;
|
|
62
|
+
const termWidth = process.stdout.columns || 120;
|
|
63
|
+
const idReserve = showId ? 38 : 0;
|
|
64
|
+
const fixedWidth = 8 + 13 + 10 + 5 + 5 + 9 + 25 + idReserve;
|
|
65
|
+
const flexibleWidth = Math.max(24, termWidth - fixedWidth);
|
|
66
|
+
const hasNames = members.some(member => member.type === 'member' && member.name);
|
|
67
|
+
const emailWidth = Math.max(20, Math.min(34, Math.floor(flexibleWidth * (hasNames ? 0.6 : 1))));
|
|
68
|
+
const nameWidth = hasNames ? Math.max(14, Math.min(24, flexibleWidth - emailWidth)) : 0;
|
|
69
|
+
const columns = [
|
|
70
|
+
{
|
|
71
|
+
header: 'Type',
|
|
72
|
+
width: 8,
|
|
73
|
+
value: m => m.type,
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
header: 'Email',
|
|
77
|
+
width: emailWidth,
|
|
78
|
+
value: m => (0, render_1.truncateToWidth)(m.email, emailWidth - 2),
|
|
79
|
+
},
|
|
80
|
+
];
|
|
81
|
+
if (hasNames) {
|
|
82
|
+
columns.push({
|
|
83
|
+
header: 'Name',
|
|
84
|
+
width: nameWidth,
|
|
85
|
+
value: (m, fmt) => (0, render_1.truncateToWidth)(memberName(m, fmt), nameWidth - 2),
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
columns.push({
|
|
89
|
+
header: 'Role',
|
|
90
|
+
width: 13,
|
|
91
|
+
value: m => m.role,
|
|
92
|
+
}, {
|
|
93
|
+
header: 'Status',
|
|
94
|
+
width: 10,
|
|
95
|
+
value: m => m.status,
|
|
96
|
+
}, {
|
|
97
|
+
header: 'MFA',
|
|
98
|
+
width: 5,
|
|
99
|
+
value: (m, fmt) => boolSymbol(m.type === 'member' ? m.mfaEnabled : undefined, fmt),
|
|
100
|
+
}, {
|
|
101
|
+
header: 'SSO',
|
|
102
|
+
width: 5,
|
|
103
|
+
value: (m, fmt) => boolSymbol(m.type === 'member' ? m.ssoEnabled : undefined, fmt),
|
|
104
|
+
}, {
|
|
105
|
+
header: 'Support',
|
|
106
|
+
width: 9,
|
|
107
|
+
value: (m, fmt) => boolSymbol(m.type === 'member' ? m.isSupportMembership : undefined, fmt),
|
|
108
|
+
}, {
|
|
109
|
+
header: 'Expires',
|
|
110
|
+
width: 25,
|
|
111
|
+
value: (m, fmt) => (0, render_1.truncateToWidth)(expiresAt(m, fmt), 23),
|
|
112
|
+
});
|
|
113
|
+
if (showId) {
|
|
114
|
+
columns.push({
|
|
115
|
+
header: 'ID',
|
|
116
|
+
value: m => chalk_1.default.dim(memberId(m)),
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
return columns;
|
|
120
|
+
}
|
|
121
|
+
function formatAccountMembers(members, format, options = {}) {
|
|
122
|
+
return (0, render_1.renderTable)(buildAccountMemberColumns(members, format, options), members, format);
|
|
123
|
+
}
|
|
124
|
+
//# sourceMappingURL=account-members.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account-members.js","sourceRoot":"","sources":["../../src/formatters/account-members.ts"],"names":[],"mappings":";;;;;AAcA,gEAMC;AAED,kEAGC;AAwHD,oDAMC;AAvJD,kDAAyB;AAEzB,qCAMiB;AAMjB,SAAgB,0BAA0B,CAAE,KAAa,EAAE,MAAqB;IAC9E,MAAM,IAAI,GAAG,GAAG,KAAK,kBAAkB,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAA;IAC/D,IAAI,MAAM,EAAE,CAAC;QACX,OAAO,eAAK,CAAC,GAAG,CAAC,WAAW,IAAI,mBAAmB,CAAC,CAAA;IACtD,CAAC;IACD,OAAO,eAAK,CAAC,GAAG,CAAC,WAAW,IAAI,EAAE,CAAC,CAAA;AACrC,CAAC;AAED,SAAgB,2BAA2B,CAAE,MAAqB;IAChE,IAAI,CAAC,MAAM;QAAE,OAAO,EAAE,CAAA;IACtB,OAAO,KAAK,eAAK,CAAC,GAAG,CAAC,YAAY,CAAC,yDAAyD,MAAM,EAAE,CAAA;AACtG,CAAC;AAED,SAAS,UAAU,CAAE,KAA0B,EAAE,MAAoB;IACnE,IAAI,KAAK,KAAK,SAAS;QAAE,OAAO,MAAM,KAAK,UAAU,CAAC,CAAC,CAAC,eAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAA;IAC5E,IAAI,MAAM,KAAK,IAAI;QAAE,OAAO,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAA;IAC/C,OAAO,KAAK,CAAC,CAAC,CAAC,eAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,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GAAG,EAAE,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,SAAS,EAAE,GAAG,CAAC;KAC5F,EACD;QACE,MAAM,EAAE,SAAS;QACjB,KAAK,EAAE,EAAE;QACT,KAAK,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,IAAA,wBAAe,EAAC,SAAS,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,EAAE,CAAC;KAC1D,CACF,CAAA;IAED,IAAI,MAAM,EAAE,CAAC;QACX,OAAO,CAAC,IAAI,CAAC;YACX,MAAM,EAAE,IAAI;YACZ,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,eAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;SACnC,CAAC,CAAA;IACJ,CAAC;IAED,OAAO,OAAO,CAAA;AAChB,CAAC;AAED,SAAgB,oBAAoB,CAClC,OAAwB,EACxB,MAAoB,EACpB,UAAsC,EAAE;IAExC,OAAO,IAAA,oBAAW,EAAC,yBAAyB,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,CAAA;AAC1F,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { AxiosInstance } from 'axios';
|
|
2
|
+
export type AccountMemberRole = 'OWNER' | 'ADMIN' | 'READ_WRITE' | 'READ_RUN' | 'READ_ONLY';
|
|
3
|
+
export type AccountMemberType = 'member' | 'invite';
|
|
4
|
+
export type AccountMemberStatus = 'ACTIVE' | 'PENDING' | 'EXPIRED';
|
|
5
|
+
export interface ActiveAccountMember {
|
|
6
|
+
type: 'member';
|
|
7
|
+
accountId: string;
|
|
8
|
+
userId: string;
|
|
9
|
+
name: string | null;
|
|
10
|
+
email: string;
|
|
11
|
+
role: AccountMemberRole;
|
|
12
|
+
status: 'ACTIVE';
|
|
13
|
+
createdAt: string;
|
|
14
|
+
updatedAt: string;
|
|
15
|
+
isSupportMembership: boolean;
|
|
16
|
+
ssoEnabled: boolean;
|
|
17
|
+
mfaEnabled: boolean;
|
|
18
|
+
}
|
|
19
|
+
export interface AccountInvite {
|
|
20
|
+
type: 'invite';
|
|
21
|
+
id: string;
|
|
22
|
+
accountId: string;
|
|
23
|
+
email: string;
|
|
24
|
+
role: Exclude<AccountMemberRole, 'OWNER'>;
|
|
25
|
+
status: 'PENDING' | 'EXPIRED';
|
|
26
|
+
inviterEmail: string;
|
|
27
|
+
createdAt: string;
|
|
28
|
+
updatedAt: string;
|
|
29
|
+
expiresAt: string;
|
|
30
|
+
}
|
|
31
|
+
export type AccountMember = ActiveAccountMember | AccountInvite;
|
|
32
|
+
export interface AccountMembersResponse {
|
|
33
|
+
members: AccountMember[];
|
|
34
|
+
length: number;
|
|
35
|
+
nextId: string | null;
|
|
36
|
+
}
|
|
37
|
+
export interface AccountMembersListParams {
|
|
38
|
+
search?: string;
|
|
39
|
+
type?: AccountMemberType;
|
|
40
|
+
role?: AccountMemberRole;
|
|
41
|
+
status?: AccountMemberStatus;
|
|
42
|
+
limit?: number;
|
|
43
|
+
nextId?: string;
|
|
44
|
+
}
|
|
45
|
+
declare class AccountMembers {
|
|
46
|
+
api: AxiosInstance;
|
|
47
|
+
constructor(api: AxiosInstance);
|
|
48
|
+
getAll(params?: AccountMembersListParams): Promise<import("axios").AxiosResponse<AccountMembersResponse, any, {}>>;
|
|
49
|
+
}
|
|
50
|
+
export default AccountMembers;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class AccountMembers {
|
|
4
|
+
api;
|
|
5
|
+
constructor(api) {
|
|
6
|
+
this.api = api;
|
|
7
|
+
}
|
|
8
|
+
getAll(params) {
|
|
9
|
+
return this.api.get('/v1/accounts/me/members', { params });
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.default = AccountMembers;
|
|
13
|
+
//# sourceMappingURL=account-members.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account-members.js","sourceRoot":"","sources":["../../src/rest/account-members.ts"],"names":[],"mappings":";;AAmDA,MAAM,cAAc;IAClB,GAAG,CAAe;IAClB,YAAa,GAAkB;QAC7B,IAAI,CAAC,GAAG,GAAG,GAAG,CAAA;IAChB,CAAC;IAED,MAAM,CAAE,MAAiC;QACvC,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CAAyB,yBAAyB,EAAE,EAAE,MAAM,EAAE,CAAC,CAAA;IACpF,CAAC;CACF;AAED,kBAAe,cAAc,CAAA"}
|
package/dist/rest/api.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ import Incidents from './incidents';
|
|
|
20
20
|
import Analytics from './analytics';
|
|
21
21
|
import BatchAnalytics from './batch-analytics';
|
|
22
22
|
import Entitlements from './entitlements';
|
|
23
|
+
import AccountMembers from './account-members';
|
|
23
24
|
import Rca from './rca';
|
|
24
25
|
export declare function getDefaults(): {
|
|
25
26
|
baseURL: string;
|
|
@@ -52,4 +53,5 @@ export declare const incidents: Incidents;
|
|
|
52
53
|
export declare const analytics: Analytics;
|
|
53
54
|
export declare const batchAnalytics: BatchAnalytics;
|
|
54
55
|
export declare const entitlements: Entitlements;
|
|
56
|
+
export declare const accountMembers: AccountMembers;
|
|
55
57
|
export declare const rca: Rca;
|
package/dist/rest/api.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.rca = exports.entitlements = exports.batchAnalytics = exports.analytics = exports.incidents = exports.statusPages = exports.errorGroups = exports.checkGroups = exports.checkResults = exports.checkStatuses = exports.checks = exports.checklyStorage = exports.heartbeatCheck = exports.environmentVariables = exports.testSessions = exports.privateLocations = exports.locations = exports.runtimes = exports.assets = exports.projects = exports.user = exports.accounts = exports.api = void 0;
|
|
6
|
+
exports.rca = exports.accountMembers = exports.entitlements = exports.batchAnalytics = exports.analytics = exports.incidents = exports.statusPages = exports.errorGroups = exports.checkGroups = exports.checkResults = exports.checkStatuses = exports.checks = exports.checklyStorage = exports.heartbeatCheck = exports.environmentVariables = exports.testSessions = exports.privateLocations = exports.locations = exports.runtimes = exports.assets = exports.projects = exports.user = exports.accounts = exports.api = void 0;
|
|
7
7
|
exports.getDefaults = getDefaults;
|
|
8
8
|
exports.validateAuthentication = validateAuthentication;
|
|
9
9
|
exports.requestInterceptor = requestInterceptor;
|
|
@@ -33,6 +33,7 @@ const incidents_1 = __importDefault(require("./incidents"));
|
|
|
33
33
|
const analytics_1 = __importDefault(require("./analytics"));
|
|
34
34
|
const batch_analytics_1 = __importDefault(require("./batch-analytics"));
|
|
35
35
|
const entitlements_1 = __importDefault(require("./entitlements"));
|
|
36
|
+
const account_members_1 = __importDefault(require("./account-members"));
|
|
36
37
|
const rca_1 = __importDefault(require("./rca"));
|
|
37
38
|
const errors_1 = require("./errors");
|
|
38
39
|
const cli_mode_1 = require("../helpers/cli-mode");
|
|
@@ -115,5 +116,6 @@ exports.incidents = new incidents_1.default(exports.api);
|
|
|
115
116
|
exports.analytics = new analytics_1.default(exports.api);
|
|
116
117
|
exports.batchAnalytics = new batch_analytics_1.default(exports.api);
|
|
117
118
|
exports.entitlements = new entitlements_1.default(exports.api);
|
|
119
|
+
exports.accountMembers = new account_members_1.default(exports.api);
|
|
118
120
|
exports.rca = new rca_1.default(exports.api);
|
|
119
121
|
//# sourceMappingURL=api.js.map
|
package/dist/rest/api.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../src/rest/api.ts"],"names":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../src/rest/api.ts"],"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IAAI,uBAAY,CAAC,WAAG,CAAC,CAAA;AACpC,QAAA,WAAW,GAAG,IAAI,sBAAW,CAAC,WAAG,CAAC,CAAA;AAClC,QAAA,WAAW,GAAG,IAAI,sBAAW,CAAC,WAAG,CAAC,CAAA;AAClC,QAAA,WAAW,GAAG,IAAI,sBAAW,CAAC,WAAG,CAAC,CAAA;AAClC,QAAA,SAAS,GAAG,IAAI,mBAAS,CAAC,WAAG,CAAC,CAAA;AAC9B,QAAA,SAAS,GAAG,IAAI,mBAAS,CAAC,WAAG,CAAC,CAAA;AAC9B,QAAA,cAAc,GAAG,IAAI,yBAAc,CAAC,WAAG,CAAC,CAAA;AACxC,QAAA,YAAY,GAAG,IAAI,sBAAY,CAAC,WAAG,CAAC,CAAA;AACpC,QAAA,cAAc,GAAG,IAAI,yBAAc,CAAC,WAAG,CAAC,CAAA;AACxC,QAAA,GAAG,GAAG,IAAI,aAAG,CAAC,WAAG,CAAC,CAAA"}
|
package/oclif.manifest.json
CHANGED
|
@@ -979,6 +979,97 @@
|
|
|
979
979
|
"whoami.js"
|
|
980
980
|
]
|
|
981
981
|
},
|
|
982
|
+
"account:members": {
|
|
983
|
+
"aliases": [],
|
|
984
|
+
"args": {},
|
|
985
|
+
"description": "List account members and pending invites.",
|
|
986
|
+
"flags": {
|
|
987
|
+
"search": {
|
|
988
|
+
"char": "s",
|
|
989
|
+
"description": "Search members and invites by name or email.",
|
|
990
|
+
"name": "search",
|
|
991
|
+
"hasDynamicHelp": false,
|
|
992
|
+
"multiple": false,
|
|
993
|
+
"type": "option"
|
|
994
|
+
},
|
|
995
|
+
"type": {
|
|
996
|
+
"description": "Filter by item type: member or invite.",
|
|
997
|
+
"name": "type",
|
|
998
|
+
"hasDynamicHelp": false,
|
|
999
|
+
"multiple": false,
|
|
1000
|
+
"type": "option"
|
|
1001
|
+
},
|
|
1002
|
+
"role": {
|
|
1003
|
+
"description": "Filter by member or invite role: owner, admin, read_write, read_run, read_only.",
|
|
1004
|
+
"name": "role",
|
|
1005
|
+
"hasDynamicHelp": false,
|
|
1006
|
+
"multiple": false,
|
|
1007
|
+
"type": "option"
|
|
1008
|
+
},
|
|
1009
|
+
"status": {
|
|
1010
|
+
"description": "Filter by member or invite status: active, pending, expired.",
|
|
1011
|
+
"name": "status",
|
|
1012
|
+
"hasDynamicHelp": false,
|
|
1013
|
+
"multiple": false,
|
|
1014
|
+
"type": "option"
|
|
1015
|
+
},
|
|
1016
|
+
"limit": {
|
|
1017
|
+
"char": "l",
|
|
1018
|
+
"description": "Number of account members to return (1-100). Enables cursor pagination.",
|
|
1019
|
+
"name": "limit",
|
|
1020
|
+
"hasDynamicHelp": false,
|
|
1021
|
+
"multiple": false,
|
|
1022
|
+
"type": "option"
|
|
1023
|
+
},
|
|
1024
|
+
"next-id": {
|
|
1025
|
+
"description": "Cursor for next page. Requires --limit.",
|
|
1026
|
+
"name": "next-id",
|
|
1027
|
+
"hasDynamicHelp": false,
|
|
1028
|
+
"multiple": false,
|
|
1029
|
+
"type": "option"
|
|
1030
|
+
},
|
|
1031
|
+
"hide-id": {
|
|
1032
|
+
"description": "Hide member and invite IDs in table output.",
|
|
1033
|
+
"name": "hide-id",
|
|
1034
|
+
"allowNo": false,
|
|
1035
|
+
"type": "boolean"
|
|
1036
|
+
},
|
|
1037
|
+
"output": {
|
|
1038
|
+
"char": "o",
|
|
1039
|
+
"description": "Output format.",
|
|
1040
|
+
"name": "output",
|
|
1041
|
+
"default": "table",
|
|
1042
|
+
"hasDynamicHelp": false,
|
|
1043
|
+
"multiple": false,
|
|
1044
|
+
"options": [
|
|
1045
|
+
"table",
|
|
1046
|
+
"json",
|
|
1047
|
+
"md"
|
|
1048
|
+
],
|
|
1049
|
+
"type": "option"
|
|
1050
|
+
}
|
|
1051
|
+
},
|
|
1052
|
+
"hasDynamicHelp": false,
|
|
1053
|
+
"hidden": false,
|
|
1054
|
+
"hiddenAliases": [],
|
|
1055
|
+
"id": "account:members",
|
|
1056
|
+
"pluginAlias": "checkly",
|
|
1057
|
+
"pluginName": "checkly",
|
|
1058
|
+
"pluginType": "core",
|
|
1059
|
+
"strict": true,
|
|
1060
|
+
"enableJsonFlag": false,
|
|
1061
|
+
"coreCommand": false,
|
|
1062
|
+
"readOnly": true,
|
|
1063
|
+
"destructive": false,
|
|
1064
|
+
"idempotent": true,
|
|
1065
|
+
"isESM": false,
|
|
1066
|
+
"relativePath": [
|
|
1067
|
+
"dist",
|
|
1068
|
+
"commands",
|
|
1069
|
+
"account",
|
|
1070
|
+
"members.js"
|
|
1071
|
+
]
|
|
1072
|
+
},
|
|
982
1073
|
"account:plan": {
|
|
983
1074
|
"aliases": [],
|
|
984
1075
|
"args": {
|
|
@@ -2633,5 +2724,5 @@
|
|
|
2633
2724
|
]
|
|
2634
2725
|
}
|
|
2635
2726
|
},
|
|
2636
|
-
"version": "7.
|
|
2727
|
+
"version": "7.15.0-prerelease-7af4828"
|
|
2637
2728
|
}
|