@burdenoff/cli-sdk 2026.1124.1 → 2026.1202.1
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/chunk-BGNPGKJM.js +1 -0
- package/dist/{chunk-ASSY2L5R.js → chunk-E6F56R4K.js} +3 -3
- package/dist/chunk-N7EXKGE2.js +34 -0
- package/dist/core/index.cjs +9 -9
- package/dist/core/index.d.cts +2 -2
- package/dist/core/index.d.ts +2 -2
- package/dist/core/index.js +1 -1
- package/dist/index.cjs +9 -9
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/{module-BNVKV_pI.d.ts → module-DWSAfs3k.d.cts} +20 -19
- package/dist/{module-BNVKV_pI.d.cts → module-DWSAfs3k.d.ts} +20 -19
- package/dist/modules/adaptercloud/index.cjs +38 -38
- package/dist/modules/adaptercloud/index.d.cts +1 -1
- package/dist/modules/adaptercloud/index.d.ts +1 -1
- package/dist/modules/adaptercloud/index.js +2 -2
- package/dist/modules/artistrybase/index.cjs +50 -50
- package/dist/modules/artistrybase/index.d.cts +1 -1
- package/dist/modules/artistrybase/index.d.ts +1 -1
- package/dist/modules/artistrybase/index.js +2 -2
- package/dist/modules/assethandler/index.cjs +32 -32
- package/dist/modules/assethandler/index.d.cts +1 -1
- package/dist/modules/assethandler/index.d.ts +1 -1
- package/dist/modules/assethandler/index.js +2 -2
- package/dist/modules/atheletebridge/index.cjs +34 -34
- package/dist/modules/atheletebridge/index.d.cts +1 -1
- package/dist/modules/atheletebridge/index.d.ts +1 -1
- package/dist/modules/atheletebridge/index.js +2 -2
- package/dist/modules/auth/index.cjs +34 -34
- package/dist/modules/auth/index.d.cts +1 -1
- package/dist/modules/auth/index.d.ts +1 -1
- package/dist/modules/auth/index.js +4 -4
- package/dist/modules/billing/index.cjs +18 -18
- package/dist/modules/billing/index.d.cts +1 -1
- package/dist/modules/billing/index.d.ts +1 -1
- package/dist/modules/billing/index.js +2 -2
- package/dist/modules/brainyrich/index.cjs +45 -45
- package/dist/modules/brainyrich/index.d.cts +1 -1
- package/dist/modules/brainyrich/index.d.ts +1 -1
- package/dist/modules/brainyrich/index.js +2 -2
- package/dist/modules/buildmyiq/index.cjs +32 -32
- package/dist/modules/buildmyiq/index.d.cts +1 -1
- package/dist/modules/buildmyiq/index.d.ts +1 -1
- package/dist/modules/buildmyiq/index.js +2 -2
- package/dist/modules/channels/index.cjs +12 -12
- package/dist/modules/channels/index.d.cts +1 -1
- package/dist/modules/channels/index.d.ts +1 -1
- package/dist/modules/channels/index.js +2 -2
- package/dist/modules/collabkin/index.cjs +34 -34
- package/dist/modules/collabkin/index.d.cts +1 -1
- package/dist/modules/collabkin/index.d.ts +1 -1
- package/dist/modules/collabkin/index.js +2 -2
- package/dist/modules/comradecircle/index.cjs +41 -41
- package/dist/modules/comradecircle/index.d.cts +1 -1
- package/dist/modules/comradecircle/index.d.ts +1 -1
- package/dist/modules/comradecircle/index.js +2 -2
- package/dist/modules/conversations/index.cjs +32 -32
- package/dist/modules/conversations/index.d.cts +1 -1
- package/dist/modules/conversations/index.d.ts +1 -1
- package/dist/modules/conversations/index.js +2 -2
- package/dist/modules/coolandlovely/index.cjs +41 -41
- package/dist/modules/coolandlovely/index.d.cts +1 -1
- package/dist/modules/coolandlovely/index.d.ts +1 -1
- package/dist/modules/coolandlovely/index.js +2 -2
- package/dist/modules/cosmicintersection/index.cjs +43 -43
- package/dist/modules/cosmicintersection/index.d.cts +1 -1
- package/dist/modules/cosmicintersection/index.d.ts +1 -1
- package/dist/modules/cosmicintersection/index.js +2 -2
- package/dist/modules/crewfoundry/index.cjs +70 -70
- package/dist/modules/crewfoundry/index.d.cts +1 -1
- package/dist/modules/crewfoundry/index.d.ts +1 -1
- package/dist/modules/crewfoundry/index.js +2 -2
- package/dist/modules/devportal/index.cjs +23 -23
- package/dist/modules/devportal/index.d.cts +1 -1
- package/dist/modules/devportal/index.d.ts +1 -1
- package/dist/modules/devportal/index.js +2 -2
- package/dist/modules/ecoimpacthub/index.cjs +41 -41
- package/dist/modules/ecoimpacthub/index.d.cts +1 -1
- package/dist/modules/ecoimpacthub/index.d.ts +1 -1
- package/dist/modules/ecoimpacthub/index.js +2 -2
- package/dist/modules/eventfullymanaged/index.cjs +92 -92
- package/dist/modules/eventfullymanaged/index.d.cts +1 -1
- package/dist/modules/eventfullymanaged/index.d.ts +1 -1
- package/dist/modules/eventfullymanaged/index.js +2 -2
- package/dist/modules/export/index.cjs +14 -14
- package/dist/modules/export/index.d.cts +1 -1
- package/dist/modules/export/index.d.ts +1 -1
- package/dist/modules/export/index.js +2 -2
- package/dist/modules/files/index.cjs +11 -11
- package/dist/modules/files/index.d.cts +1 -1
- package/dist/modules/files/index.d.ts +1 -1
- package/dist/modules/files/index.js +2 -2
- package/dist/modules/fluidgrids/index.cjs +29 -29
- package/dist/modules/fluidgrids/index.d.cts +1 -1
- package/dist/modules/fluidgrids/index.d.ts +1 -1
- package/dist/modules/fluidgrids/index.js +3 -3
- package/dist/modules/ggnomad/index.cjs +21 -21
- package/dist/modules/ggnomad/index.d.cts +1 -1
- package/dist/modules/ggnomad/index.d.ts +1 -1
- package/dist/modules/ggnomad/index.js +2 -2
- package/dist/modules/govcitizenhub/index.cjs +35 -35
- package/dist/modules/govcitizenhub/index.d.cts +1 -1
- package/dist/modules/govcitizenhub/index.d.ts +1 -1
- package/dist/modules/govcitizenhub/index.js +2 -2
- package/dist/modules/groups/index.cjs +12 -12
- package/dist/modules/groups/index.d.cts +1 -1
- package/dist/modules/groups/index.d.ts +1 -1
- package/dist/modules/groups/index.js +2 -2
- package/dist/modules/headshotmarketing/index.cjs +165 -165
- package/dist/modules/headshotmarketing/index.d.cts +1 -1
- package/dist/modules/headshotmarketing/index.d.ts +1 -1
- package/dist/modules/headshotmarketing/index.js +2 -2
- package/dist/modules/health/index.d.cts +1 -1
- package/dist/modules/health/index.d.ts +1 -1
- package/dist/modules/hookmovies/index.cjs +43 -43
- package/dist/modules/hookmovies/index.d.cts +1 -1
- package/dist/modules/hookmovies/index.d.ts +1 -1
- package/dist/modules/hookmovies/index.js +2 -2
- package/dist/modules/housingvista/index.cjs +24 -24
- package/dist/modules/housingvista/index.d.cts +1 -1
- package/dist/modules/housingvista/index.d.ts +1 -1
- package/dist/modules/housingvista/index.js +2 -2
- package/dist/modules/integrations/index.cjs +27 -27
- package/dist/modules/integrations/index.d.cts +1 -1
- package/dist/modules/integrations/index.d.ts +1 -1
- package/dist/modules/integrations/index.js +2 -2
- package/dist/modules/intelwatchtower/index.cjs +37 -37
- package/dist/modules/intelwatchtower/index.d.cts +1 -1
- package/dist/modules/intelwatchtower/index.d.ts +1 -1
- package/dist/modules/intelwatchtower/index.js +2 -2
- package/dist/modules/kadaikodi/index.cjs +26 -26
- package/dist/modules/kadaikodi/index.d.cts +1 -1
- package/dist/modules/kadaikodi/index.d.ts +1 -1
- package/dist/modules/kadaikodi/index.js +2 -2
- package/dist/modules/labsofscience/index.cjs +44 -44
- package/dist/modules/labsofscience/index.d.cts +1 -1
- package/dist/modules/labsofscience/index.d.ts +1 -1
- package/dist/modules/labsofscience/index.js +2 -2
- package/dist/modules/manufacturedops/index.cjs +36 -36
- package/dist/modules/manufacturedops/index.d.cts +1 -1
- package/dist/modules/manufacturedops/index.d.ts +1 -1
- package/dist/modules/manufacturedops/index.js +2 -2
- package/dist/modules/movethewheels/index.cjs +78 -78
- package/dist/modules/movethewheels/index.d.cts +1 -1
- package/dist/modules/movethewheels/index.d.ts +1 -1
- package/dist/modules/movethewheels/index.js +2 -2
- package/dist/modules/mybodyshield/index.cjs +36 -36
- package/dist/modules/mybodyshield/index.d.cts +1 -1
- package/dist/modules/mybodyshield/index.d.ts +1 -1
- package/dist/modules/mybodyshield/index.js +2 -2
- package/dist/modules/notifications/index.cjs +5 -5
- package/dist/modules/notifications/index.d.cts +1 -1
- package/dist/modules/notifications/index.d.ts +1 -1
- package/dist/modules/notifications/index.js +1 -1
- package/dist/modules/organizations/index.cjs +5 -5
- package/dist/modules/organizations/index.d.cts +1 -1
- package/dist/modules/organizations/index.d.ts +1 -1
- package/dist/modules/organizations/index.js +1 -1
- package/dist/modules/planmagnet/index.cjs +272 -272
- package/dist/modules/planmagnet/index.d.cts +1 -1
- package/dist/modules/planmagnet/index.d.ts +1 -1
- package/dist/modules/planmagnet/index.js +2 -2
- package/dist/modules/products/index.cjs +19 -19
- package/dist/modules/products/index.d.cts +1 -1
- package/dist/modules/products/index.d.ts +1 -1
- package/dist/modules/products/index.js +2 -2
- package/dist/modules/proserviceworld/index.cjs +24 -24
- package/dist/modules/proserviceworld/index.d.cts +1 -1
- package/dist/modules/proserviceworld/index.d.ts +1 -1
- package/dist/modules/proserviceworld/index.js +2 -2
- package/dist/modules/rbac/index.cjs +8 -8
- package/dist/modules/rbac/index.d.cts +1 -1
- package/dist/modules/rbac/index.d.ts +1 -1
- package/dist/modules/rbac/index.js +2 -2
- package/dist/modules/sandbox/index.cjs +39 -39
- package/dist/modules/sandbox/index.d.cts +1 -1
- package/dist/modules/sandbox/index.d.ts +1 -1
- package/dist/modules/sandbox/index.js +1 -1
- package/dist/modules/scheduler/index.cjs +25 -25
- package/dist/modules/scheduler/index.d.cts +1 -1
- package/dist/modules/scheduler/index.d.ts +1 -1
- package/dist/modules/scheduler/index.js +2 -2
- package/dist/modules/security/index.cjs +14 -14
- package/dist/modules/security/index.d.cts +1 -1
- package/dist/modules/security/index.d.ts +1 -1
- package/dist/modules/security/index.js +2 -2
- package/dist/modules/semanticfed/index.cjs +44 -44
- package/dist/modules/semanticfed/index.d.cts +1 -1
- package/dist/modules/semanticfed/index.d.ts +1 -1
- package/dist/modules/semanticfed/index.js +1 -1
- package/dist/modules/semanticfed-sql/index.cjs +4 -4
- package/dist/modules/semanticfed-sql/index.d.cts +1 -1
- package/dist/modules/semanticfed-sql/index.d.ts +1 -1
- package/dist/modules/semanticfed-sql/index.js +1 -1
- package/dist/modules/store/index.cjs +21 -21
- package/dist/modules/store/index.d.cts +1 -1
- package/dist/modules/store/index.d.ts +1 -1
- package/dist/modules/store/index.js +2 -2
- package/dist/modules/subscriberbot/index.cjs +41 -41
- package/dist/modules/subscriberbot/index.d.cts +1 -1
- package/dist/modules/subscriberbot/index.d.ts +1 -1
- package/dist/modules/subscriberbot/index.js +2 -2
- package/dist/modules/support/index.cjs +8 -8
- package/dist/modules/support/index.d.cts +1 -1
- package/dist/modules/support/index.d.ts +1 -1
- package/dist/modules/support/index.js +2 -2
- package/dist/modules/tags/index.cjs +10 -10
- package/dist/modules/tags/index.d.cts +1 -1
- package/dist/modules/tags/index.d.ts +1 -1
- package/dist/modules/tags/index.js +2 -2
- package/dist/modules/technospam/index.cjs +44 -44
- package/dist/modules/technospam/index.d.cts +1 -1
- package/dist/modules/technospam/index.d.ts +1 -1
- package/dist/modules/technospam/index.js +2 -2
- package/dist/modules/theculturepost/index.cjs +32 -32
- package/dist/modules/theculturepost/index.d.cts +1 -1
- package/dist/modules/theculturepost/index.d.ts +1 -1
- package/dist/modules/theculturepost/index.js +2 -2
- package/dist/modules/theglobalfuel/index.cjs +30 -30
- package/dist/modules/theglobalfuel/index.d.cts +1 -1
- package/dist/modules/theglobalfuel/index.d.ts +1 -1
- package/dist/modules/theglobalfuel/index.js +2 -2
- package/dist/modules/timecampus/index.cjs +69 -69
- package/dist/modules/timecampus/index.d.cts +1 -1
- package/dist/modules/timecampus/index.d.ts +1 -1
- package/dist/modules/timecampus/index.js +4 -4
- package/dist/modules/tours/index.cjs +4 -4
- package/dist/modules/tours/index.d.cts +1 -1
- package/dist/modules/tours/index.d.ts +1 -1
- package/dist/modules/tours/index.js +2 -2
- package/dist/modules/vibecontrols/index.cjs +460 -460
- package/dist/modules/vibecontrols/index.d.cts +1 -1
- package/dist/modules/vibecontrols/index.d.ts +1 -1
- package/dist/modules/vibecontrols/index.js +5 -5
- package/dist/modules/workspaces/index.cjs +16 -16
- package/dist/modules/workspaces/index.d.cts +1 -1
- package/dist/modules/workspaces/index.d.ts +1 -1
- package/dist/modules/workspaces/index.js +2 -2
- package/package.json +6 -1
- package/dist/chunk-3ZVMC2AF.js +0 -1
- package/dist/chunk-ZT6KOG7N.js +0 -34
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
'use strict';require('graphql-request'),require('cross-fetch'),require('commander');var
|
|
1
|
+
'use strict';require('graphql-request'),require('cross-fetch'),require('commander');var u=class extends Error{exitCode;hint;constructor(o,a){super(o),this.name="CliUserError",this.exitCode=a?.exitCode??1,this.hint=a?.hint;}},g=class extends u{constructor(o,a){super(o,{exitCode:2,hint:a?.hint??"Run `<product> auth login` to authenticate."}),this.name="CliAuthError";}},d=class extends Error{cause;constructor(o,a){super(o),this.name="CliInternalError",this.cause=a;}};function b(t){if(t instanceof g||t instanceof u)return t;let o=w(t)&&w(t.response)?t.response:void 0,a=o?.errors,e=Array.isArray(a)?a[0]:void 0,r=(w(e)&&w(e.extensions)?e.extensions:void 0)?.code,s=o?.status;return r==="UNAUTHENTICATED"||s===401?new g("Authentication required."):r==="FORBIDDEN"||s===403?new u("Permission denied."):r==="BAD_USER_INPUT"||r==="GRAPHQL_VALIDATION_FAILED"||s===400?new u("Invalid request. Check the command arguments."):r==="NOT_FOUND"||s===404?new u("Requested resource was not found."):r==="RATE_LIMITED"||r==="TOO_MANY_REQUESTS"||s===429?new u("Request limit reached. Try again later."):new d("The request could not be completed. Try again later.")}var h=class extends Error{response;constructor(o,a){super(o),this.name="GqlRequestError",this.response=a;}};function w(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}var k=null;function I(t){k=t;}function m(){if(!k)throw new d("vibecontrols module helpers used before setHelpersContext was called");return k}function Q(){let t=m();if(!t.auth.isAuthenticated())throw new g("Authentication required.",{hint:`Run \`${t.productName} auth login\` to authenticate.`})}async function p(t,o){return Q(),m().gql.workspace.request(t,o)}function l(t){throw t instanceof g||t instanceof u||t instanceof d?t:t instanceof h||t!==null&&typeof t=="object"&&"response"in t?b(t):new d("The command could not be completed. Try again later.")}function f(t,o,a){m().output.formatAndOutput(t,o,a);}function y(t){m().output.printSuccess(t);}function A(t){m().output.printWarning(t);}function x(t){return m().output.formatStatus(t)}function v(t){return m().output.formatDate(t)}function C(t,o){return m().output.truncate(t,o)}var R=`
|
|
2
2
|
query ListGroups($filter: GroupFilter, $first: Int, $after: String, $sort: GroupSort) {
|
|
3
3
|
groups(filter: $filter, first: $first, after: $after, sort: $sort) {
|
|
4
4
|
edges { node { id name groupType visibility status memberCount createdAt } }
|
|
5
5
|
pageInfo { hasNextPage endCursor }
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
|
-
`,
|
|
8
|
+
`,O=`
|
|
9
9
|
query GetGroup($id: ID!) {
|
|
10
10
|
group(id: $id) {
|
|
11
11
|
id name description groupType visibility status scope membershipType memberCount createdAt updatedAt
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
`,
|
|
14
|
+
`,S=`
|
|
15
15
|
mutation CreateGroup($input: CreateGroupInput!) {
|
|
16
16
|
createGroup(input: $input) {
|
|
17
17
|
id name groupType visibility status
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
`,
|
|
20
|
+
`,G=`
|
|
21
21
|
mutation UpdateGroup($id: ID!, $input: UpdateGroupInput!) {
|
|
22
22
|
updateGroup(id: $id, input: $input) {
|
|
23
23
|
id name description visibility status updatedAt
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
|
|
26
|
+
`,$=`
|
|
27
27
|
mutation DeleteGroup($id: ID!) {
|
|
28
28
|
deleteGroup(id: $id)
|
|
29
29
|
}
|
|
30
|
-
`,
|
|
30
|
+
`,P=`
|
|
31
31
|
mutation ArchiveGroup($id: ID!) {
|
|
32
32
|
archiveGroup(id: $id) { id status }
|
|
33
33
|
}
|
|
34
|
-
`,
|
|
34
|
+
`,D=`
|
|
35
35
|
query ListGroupMembers($groupId: ID!, $first: Int, $after: String) {
|
|
36
36
|
groupMembers(groupId: $groupId, first: $first, after: $after) {
|
|
37
37
|
edges { node { id entityId entityType role invitationStatus joinedAt } }
|
|
38
38
|
pageInfo { hasNextPage endCursor }
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
|
|
41
|
+
`,q=`
|
|
42
42
|
mutation AddGroupMembers($groupId: ID!, $members: [AddMemberInput!]!) {
|
|
43
43
|
addGroupMembers(groupId: $groupId, members: $members) {
|
|
44
44
|
added { id entityId entityType role invitationStatus }
|
|
@@ -47,22 +47,22 @@
|
|
|
47
47
|
failed { entityId entityType error }
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
|
-
`,
|
|
50
|
+
`,_=`
|
|
51
51
|
mutation RemoveGroupMembers($groupId: ID!, $membershipIds: [ID!]!) {
|
|
52
52
|
removeGroupMembers(groupId: $groupId, membershipIds: $membershipIds) {
|
|
53
53
|
removed
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
`,
|
|
56
|
+
`,L=`
|
|
57
57
|
query GroupAuditLogs($groupId: ID!, $first: Int, $after: String) {
|
|
58
58
|
groupAuditLogs(groupId: $groupId, first: $first, after: $after) {
|
|
59
59
|
id eventType actorId actorType description createdAt
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
`,
|
|
62
|
+
`,U=`
|
|
63
63
|
query EntityGroups($entityId: ID!, $entityType: String!, $first: Int) {
|
|
64
64
|
entityGroups(entityId: $entityId, entityType: $entityType, first: $first) {
|
|
65
65
|
edges { node { id name groupType visibility memberCount } }
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
`;function
|
|
68
|
+
`;function N(t){let o=t.command("groups").description("Group management");o.command("list").description("List groups").option("--type <t>","Filter by groupType").option("--status <s>","Filter by status").option("--limit <n>","Page size",e=>parseInt(e,10),50).option("-f, --format <format>").action(async e=>{try{let n={};e.type&&(n.groupType=e.type.toUpperCase()),e.status&&(n.status=e.status.toUpperCase());let s=(await p(R,{filter:Object.keys(n).length?n:void 0,first:e.limit})).groups.edges.map(i=>i.node);f(e,s,{headers:["ID","Name","Type","Visibility","Status","Members"],rows:s.map(i=>[C(i.id,12),i.name,i.groupType??"-",i.visibility??"-",x(i.status),String(i.memberCount??0)])});}catch(n){l(n);}}),o.command("get").description("Get a group by id").argument("<id>").option("-f, --format <format>").action(async(e,n)=>{try{let r=await p(O,{id:e});if(!r.group)throw new u(`Group ${e} not found`);f(n,r.group);}catch(r){l(r);}}),o.command("create").description("Create a group").requiredOption("--name <name>").option("--description <s>").option("--type <t>","AUDIENCE|BETA_PROGRAM|CHANNEL_GROUP|CUSTOM|DYNAMIC_AUDIENCE|FEATURE_FLAG_GROUP|PROJECT_GROUP|RESOURCE_COLLECTION|SECURITY_GROUP|TEAM","TEAM").option("--visibility <v>","PUBLIC|PRIVATE|HIDDEN","PRIVATE").option("--scope <s>","WORKSPACE|ORGANIZATION","WORKSPACE").option("--membership <m>","STATIC|DYNAMIC|HYBRID","STATIC").option("-f, --format <format>").action(async e=>{try{let n={name:e.name,description:e.description,groupType:(e.type??"TEAM").toUpperCase(),visibility:(e.visibility??"PRIVATE").toUpperCase(),scope:(e.scope??"WORKSPACE").toUpperCase(),membershipType:(e.membership??"STATIC").toUpperCase()},r=await p(S,{input:n});y(`Group created: ${r.createGroup.name}`),f(e,r.createGroup);}catch(n){l(n);}}),o.command("update").description("Update a group").argument("<id>").option("--name <s>").option("--description <s>").option("--visibility <v>").option("--status <s>").option("-f, --format <format>").action(async(e,n)=>{try{let r={};if(n.name&&(r.name=n.name),n.description!==void 0&&(r.description=n.description),n.visibility&&(r.visibility=n.visibility.toUpperCase()),n.status&&(r.status=n.status.toUpperCase()),!Object.keys(r).length)throw new u("No updates specified");let s=await p(G,{id:e,input:r});y("Group updated"),f(n,s.updateGroup);}catch(r){l(r);}}),o.command("delete").description("Delete a group (use --archive for soft delete)").argument("<id>").option("--archive","Archive instead of hard delete",false).action(async(e,n)=>{try{n.archive?(await p(P,{id:e}),y("Group archived")):(await p($,{id:e}),y("Group deleted"));}catch(r){l(r);}});let a=o.command("members").description("Group membership");a.command("list").description("List members of a group").argument("<groupId>").option("--limit <n>","Page size",e=>parseInt(e,10),100).option("-f, --format <format>").action(async(e,n)=>{try{let s=(await p(D,{groupId:e,first:n.limit})).groupMembers.edges.map(i=>i.node);f(n,s,{headers:["MembershipID","Entity","Type","Role","Status","Joined"],rows:s.map(i=>[C(i.id,12),C(i.entityId,12),i.entityType??"-",i.role??"-",x(i.invitationStatus),v(i.joinedAt)])});}catch(r){l(r);}}),a.command("add").description("Add a member to a group").requiredOption("--group <id>").requiredOption("--entity <id>").option("--entity-type <t>","USER|GROUP|BOT|INTEGRATION","USER").option("--role <r>","MEMBER|OWNER|ADMIN","MEMBER").option("-f, --format <format>").action(async e=>{try{let n={entityId:e.entity,entityType:(e.entityType??"USER").toUpperCase(),role:(e.role??"MEMBER").toUpperCase()},s=(await p(q,{groupId:e.group,members:[n]})).addGroupMembers;y(`Added ${s.successCount} member(s)`);for(let i of s.failed)A(`Could not add ${i.entityType} ${i.entityId}: ${i.error}`);f(e,s.added);}catch(n){l(n);}}),a.command("remove").description("Remove members by membership id").requiredOption("--group <id>").requiredOption("--membership <ids>","Comma-separated membership ids").action(async e=>{try{let n=e.membership.split(",").filter(Boolean);await p(_,{groupId:e.group,membershipIds:n}),y(`Removed ${n.length} membership(s)`);}catch(n){l(n);}}),o.command("hierarchy").description("Show entity-group hierarchy for a user/entity").argument("<entityId>").option("--type <t>","USER|GROUP","USER").option("--limit <n>","Page size",e=>parseInt(e,10),100).option("-f, --format <format>").action(async(e,n)=>{try{let r=await p(U,{entityId:e,entityType:(n.type??"USER").toUpperCase(),first:n.limit});f(n,r.entityGroups.edges.map(s=>s.node));}catch(r){l(r);}}),o.command("activity").description("Audit log for a group").argument("<groupId>").option("--limit <n>","Page size",e=>parseInt(e,10),100).option("-f, --format <format>").action(async(e,n)=>{try{let r=await p(L,{groupId:e,first:n.limit});f(n,r.groupAuditLogs);}catch(r){l(r);}});}var Z={id:"groups",version:"1.0.0",displayName:"Groups",dependsOn:["auth","workspaces"],register(t,o){I(o),N(t);}},dt=Z;module.exports=dt;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a,b,i,r,p,h as h$1,k,q as q$
|
|
1
|
+
import {a,b,i,r,p,h as h$1,k,q as q$1,n}from'../../chunk-BGNPGKJM.js';import {j}from'../../chunk-N7EXKGE2.js';var E=`
|
|
2
2
|
query ListGroups($filter: GroupFilter, $first: Int, $after: String, $sort: GroupSort) {
|
|
3
3
|
groups(filter: $filter, first: $first, after: $after, sort: $sort) {
|
|
4
4
|
edges { node { id name groupType visibility status memberCount createdAt } }
|
|
@@ -65,4 +65,4 @@ import {a,b,i,r,p,h as h$1,k,q as q$2,n}from'../../chunk-3ZVMC2AF.js';import {q
|
|
|
65
65
|
edges { node { id name groupType visibility memberCount } }
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
`;function S(u){let p$1=u.command("groups").description("Group management");p$1.command("list").description("List groups").option("--type <t>","Filter by groupType").option("--status <s>","Filter by status").option("--limit <n>","Page size",t=>parseInt(t,10),50).option("-f, --format <format>").action(async t=>{try{let e={};t.type&&(e.groupType=t.type.toUpperCase()),t.status&&(e.status=t.status.toUpperCase());let o=(await b(E,{filter:Object.keys(e).length?e:void 0,first:t.limit})).groups.edges.map(i=>i.node);i(t,o,{headers:["ID","Name","Type","Visibility","Status","Members"],rows:o.map(i=>[r(i.id,12),i.name,i.groupType??"-",i.visibility??"-",p(i.status),String(i.memberCount??0)])});}catch(e){h$1(e);}}),p$1.command("get").description("Get a group by id").argument("<id>").option("-f, --format <format>").action(async(t,e)=>{try{let r=await b(R,{id:t});if(!r.group)throw new
|
|
68
|
+
`;function S(u){let p$1=u.command("groups").description("Group management");p$1.command("list").description("List groups").option("--type <t>","Filter by groupType").option("--status <s>","Filter by status").option("--limit <n>","Page size",t=>parseInt(t,10),50).option("-f, --format <format>").action(async t=>{try{let e={};t.type&&(e.groupType=t.type.toUpperCase()),t.status&&(e.status=t.status.toUpperCase());let o=(await b(E,{filter:Object.keys(e).length?e:void 0,first:t.limit})).groups.edges.map(i=>i.node);i(t,o,{headers:["ID","Name","Type","Visibility","Status","Members"],rows:o.map(i=>[r(i.id,12),i.name,i.groupType??"-",i.visibility??"-",p(i.status),String(i.memberCount??0)])});}catch(e){h$1(e);}}),p$1.command("get").description("Get a group by id").argument("<id>").option("-f, --format <format>").action(async(t,e)=>{try{let r=await b(R,{id:t});if(!r.group)throw new j(`Group ${t} not found`);i(e,r.group);}catch(r){h$1(r);}}),p$1.command("create").description("Create a group").requiredOption("--name <name>").option("--description <s>").option("--type <t>","AUDIENCE|BETA_PROGRAM|CHANNEL_GROUP|CUSTOM|DYNAMIC_AUDIENCE|FEATURE_FLAG_GROUP|PROJECT_GROUP|RESOURCE_COLLECTION|SECURITY_GROUP|TEAM","TEAM").option("--visibility <v>","PUBLIC|PRIVATE|HIDDEN","PRIVATE").option("--scope <s>","WORKSPACE|ORGANIZATION","WORKSPACE").option("--membership <m>","STATIC|DYNAMIC|HYBRID","STATIC").option("-f, --format <format>").action(async t=>{try{let e={name:t.name,description:t.description,groupType:(t.type??"TEAM").toUpperCase(),visibility:(t.visibility??"PRIVATE").toUpperCase(),scope:(t.scope??"WORKSPACE").toUpperCase(),membershipType:(t.membership??"STATIC").toUpperCase()},r=await b(T,{input:e});k(`Group created: ${r.createGroup.name}`),i(t,r.createGroup);}catch(e){h$1(e);}}),p$1.command("update").description("Update a group").argument("<id>").option("--name <s>").option("--description <s>").option("--visibility <v>").option("--status <s>").option("-f, --format <format>").action(async(t,e)=>{try{let r={};if(e.name&&(r.name=e.name),e.description!==void 0&&(r.description=e.description),e.visibility&&(r.visibility=e.visibility.toUpperCase()),e.status&&(r.status=e.status.toUpperCase()),!Object.keys(r).length)throw new j("No updates specified");let o=await b(C,{id:t,input:r});k("Group updated"),i(e,o.updateGroup);}catch(r){h$1(r);}}),p$1.command("delete").description("Delete a group (use --archive for soft delete)").argument("<id>").option("--archive","Archive instead of hard delete",false).action(async(t,e)=>{try{e.archive?(await b(U,{id:t}),k("Group archived")):(await b(A,{id:t}),k("Group deleted"));}catch(r){h$1(r);}});let c=p$1.command("members").description("Group membership");c.command("list").description("List members of a group").argument("<groupId>").option("--limit <n>","Page size",t=>parseInt(t,10),100).option("-f, --format <format>").action(async(t,e)=>{try{let o=(await b(h,{groupId:t,first:e.limit})).groupMembers.edges.map(i=>i.node);i(e,o,{headers:["MembershipID","Entity","Type","Role","Status","Joined"],rows:o.map(i=>[r(i.id,12),r(i.entityId,12),i.entityType??"-",i.role??"-",p(i.invitationStatus),q$1(i.joinedAt)])});}catch(r){h$1(r);}}),c.command("add").description("Add a member to a group").requiredOption("--group <id>").requiredOption("--entity <id>").option("--entity-type <t>","USER|GROUP|BOT|INTEGRATION","USER").option("--role <r>","MEMBER|OWNER|ADMIN","MEMBER").option("-f, --format <format>").action(async t=>{try{let e={entityId:t.entity,entityType:(t.entityType??"USER").toUpperCase(),role:(t.role??"MEMBER").toUpperCase()},o=(await b(O,{groupId:t.group,members:[e]})).addGroupMembers;k(`Added ${o.successCount} member(s)`);for(let i of o.failed)n(`Could not add ${i.entityType} ${i.entityId}: ${i.error}`);i(t,o.added);}catch(e){h$1(e);}}),c.command("remove").description("Remove members by membership id").requiredOption("--group <id>").requiredOption("--membership <ids>","Comma-separated membership ids").action(async t=>{try{let e=t.membership.split(",").filter(Boolean);await b($,{groupId:t.group,membershipIds:e}),k(`Removed ${e.length} membership(s)`);}catch(e){h$1(e);}}),p$1.command("hierarchy").description("Show entity-group hierarchy for a user/entity").argument("<entityId>").option("--type <t>","USER|GROUP","USER").option("--limit <n>","Page size",t=>parseInt(t,10),100).option("-f, --format <format>").action(async(t,e)=>{try{let r=await b(P,{entityId:t,entityType:(e.type??"USER").toUpperCase(),first:e.limit});i(e,r.entityGroups.edges.map(o=>o.node));}catch(r){h$1(r);}}),p$1.command("activity").description("Audit log for a group").argument("<groupId>").option("--limit <n>","Page size",t=>parseInt(t,10),100).option("-f, --format <format>").action(async(t,e)=>{try{let r=await b(M,{groupId:t,first:e.limit});i(e,r.groupAuditLogs);}catch(r){h$1(r);}});}var _={id:"groups",version:"1.0.0",displayName:"Groups",dependsOn:["auth","workspaces"],register(u,p){a(p),S(u);}},q=_;export{q as default};
|