@burdenoff/cli-sdk 2026.1201.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.
Files changed (242) hide show
  1. package/dist/chunk-BGNPGKJM.js +1 -0
  2. package/dist/{chunk-ASSY2L5R.js → chunk-E6F56R4K.js} +3 -3
  3. package/dist/chunk-N7EXKGE2.js +34 -0
  4. package/dist/core/index.cjs +9 -9
  5. package/dist/core/index.d.cts +2 -2
  6. package/dist/core/index.d.ts +2 -2
  7. package/dist/core/index.js +1 -1
  8. package/dist/index.cjs +9 -9
  9. package/dist/index.d.cts +1 -1
  10. package/dist/index.d.ts +1 -1
  11. package/dist/index.js +1 -1
  12. package/dist/{module-BNVKV_pI.d.ts → module-DWSAfs3k.d.cts} +20 -19
  13. package/dist/{module-BNVKV_pI.d.cts → module-DWSAfs3k.d.ts} +20 -19
  14. package/dist/modules/adaptercloud/index.cjs +38 -38
  15. package/dist/modules/adaptercloud/index.d.cts +1 -1
  16. package/dist/modules/adaptercloud/index.d.ts +1 -1
  17. package/dist/modules/adaptercloud/index.js +2 -2
  18. package/dist/modules/artistrybase/index.cjs +50 -50
  19. package/dist/modules/artistrybase/index.d.cts +1 -1
  20. package/dist/modules/artistrybase/index.d.ts +1 -1
  21. package/dist/modules/artistrybase/index.js +2 -2
  22. package/dist/modules/assethandler/index.cjs +32 -32
  23. package/dist/modules/assethandler/index.d.cts +1 -1
  24. package/dist/modules/assethandler/index.d.ts +1 -1
  25. package/dist/modules/assethandler/index.js +2 -2
  26. package/dist/modules/atheletebridge/index.cjs +34 -34
  27. package/dist/modules/atheletebridge/index.d.cts +1 -1
  28. package/dist/modules/atheletebridge/index.d.ts +1 -1
  29. package/dist/modules/atheletebridge/index.js +2 -2
  30. package/dist/modules/auth/index.cjs +34 -34
  31. package/dist/modules/auth/index.d.cts +1 -1
  32. package/dist/modules/auth/index.d.ts +1 -1
  33. package/dist/modules/auth/index.js +4 -4
  34. package/dist/modules/billing/index.cjs +18 -18
  35. package/dist/modules/billing/index.d.cts +1 -1
  36. package/dist/modules/billing/index.d.ts +1 -1
  37. package/dist/modules/billing/index.js +2 -2
  38. package/dist/modules/brainyrich/index.cjs +45 -45
  39. package/dist/modules/brainyrich/index.d.cts +1 -1
  40. package/dist/modules/brainyrich/index.d.ts +1 -1
  41. package/dist/modules/brainyrich/index.js +2 -2
  42. package/dist/modules/buildmyiq/index.cjs +32 -32
  43. package/dist/modules/buildmyiq/index.d.cts +1 -1
  44. package/dist/modules/buildmyiq/index.d.ts +1 -1
  45. package/dist/modules/buildmyiq/index.js +2 -2
  46. package/dist/modules/channels/index.cjs +12 -12
  47. package/dist/modules/channels/index.d.cts +1 -1
  48. package/dist/modules/channels/index.d.ts +1 -1
  49. package/dist/modules/channels/index.js +2 -2
  50. package/dist/modules/collabkin/index.cjs +34 -34
  51. package/dist/modules/collabkin/index.d.cts +1 -1
  52. package/dist/modules/collabkin/index.d.ts +1 -1
  53. package/dist/modules/collabkin/index.js +2 -2
  54. package/dist/modules/comradecircle/index.cjs +41 -41
  55. package/dist/modules/comradecircle/index.d.cts +1 -1
  56. package/dist/modules/comradecircle/index.d.ts +1 -1
  57. package/dist/modules/comradecircle/index.js +2 -2
  58. package/dist/modules/conversations/index.cjs +32 -32
  59. package/dist/modules/conversations/index.d.cts +1 -1
  60. package/dist/modules/conversations/index.d.ts +1 -1
  61. package/dist/modules/conversations/index.js +2 -2
  62. package/dist/modules/coolandlovely/index.cjs +41 -41
  63. package/dist/modules/coolandlovely/index.d.cts +1 -1
  64. package/dist/modules/coolandlovely/index.d.ts +1 -1
  65. package/dist/modules/coolandlovely/index.js +2 -2
  66. package/dist/modules/cosmicintersection/index.cjs +43 -43
  67. package/dist/modules/cosmicintersection/index.d.cts +1 -1
  68. package/dist/modules/cosmicintersection/index.d.ts +1 -1
  69. package/dist/modules/cosmicintersection/index.js +2 -2
  70. package/dist/modules/crewfoundry/index.cjs +70 -70
  71. package/dist/modules/crewfoundry/index.d.cts +1 -1
  72. package/dist/modules/crewfoundry/index.d.ts +1 -1
  73. package/dist/modules/crewfoundry/index.js +2 -2
  74. package/dist/modules/devportal/index.cjs +23 -23
  75. package/dist/modules/devportal/index.d.cts +1 -1
  76. package/dist/modules/devportal/index.d.ts +1 -1
  77. package/dist/modules/devportal/index.js +2 -2
  78. package/dist/modules/ecoimpacthub/index.cjs +41 -41
  79. package/dist/modules/ecoimpacthub/index.d.cts +1 -1
  80. package/dist/modules/ecoimpacthub/index.d.ts +1 -1
  81. package/dist/modules/ecoimpacthub/index.js +2 -2
  82. package/dist/modules/eventfullymanaged/index.cjs +92 -92
  83. package/dist/modules/eventfullymanaged/index.d.cts +1 -1
  84. package/dist/modules/eventfullymanaged/index.d.ts +1 -1
  85. package/dist/modules/eventfullymanaged/index.js +2 -2
  86. package/dist/modules/export/index.cjs +14 -14
  87. package/dist/modules/export/index.d.cts +1 -1
  88. package/dist/modules/export/index.d.ts +1 -1
  89. package/dist/modules/export/index.js +2 -2
  90. package/dist/modules/files/index.cjs +11 -11
  91. package/dist/modules/files/index.d.cts +1 -1
  92. package/dist/modules/files/index.d.ts +1 -1
  93. package/dist/modules/files/index.js +2 -2
  94. package/dist/modules/fluidgrids/index.cjs +29 -29
  95. package/dist/modules/fluidgrids/index.d.cts +1 -1
  96. package/dist/modules/fluidgrids/index.d.ts +1 -1
  97. package/dist/modules/fluidgrids/index.js +3 -3
  98. package/dist/modules/ggnomad/index.cjs +21 -21
  99. package/dist/modules/ggnomad/index.d.cts +1 -1
  100. package/dist/modules/ggnomad/index.d.ts +1 -1
  101. package/dist/modules/ggnomad/index.js +2 -2
  102. package/dist/modules/govcitizenhub/index.cjs +35 -35
  103. package/dist/modules/govcitizenhub/index.d.cts +1 -1
  104. package/dist/modules/govcitizenhub/index.d.ts +1 -1
  105. package/dist/modules/govcitizenhub/index.js +2 -2
  106. package/dist/modules/groups/index.cjs +12 -12
  107. package/dist/modules/groups/index.d.cts +1 -1
  108. package/dist/modules/groups/index.d.ts +1 -1
  109. package/dist/modules/groups/index.js +2 -2
  110. package/dist/modules/headshotmarketing/index.cjs +165 -165
  111. package/dist/modules/headshotmarketing/index.d.cts +1 -1
  112. package/dist/modules/headshotmarketing/index.d.ts +1 -1
  113. package/dist/modules/headshotmarketing/index.js +2 -2
  114. package/dist/modules/health/index.d.cts +1 -1
  115. package/dist/modules/health/index.d.ts +1 -1
  116. package/dist/modules/hookmovies/index.cjs +43 -43
  117. package/dist/modules/hookmovies/index.d.cts +1 -1
  118. package/dist/modules/hookmovies/index.d.ts +1 -1
  119. package/dist/modules/hookmovies/index.js +2 -2
  120. package/dist/modules/housingvista/index.cjs +24 -24
  121. package/dist/modules/housingvista/index.d.cts +1 -1
  122. package/dist/modules/housingvista/index.d.ts +1 -1
  123. package/dist/modules/housingvista/index.js +2 -2
  124. package/dist/modules/integrations/index.cjs +27 -27
  125. package/dist/modules/integrations/index.d.cts +1 -1
  126. package/dist/modules/integrations/index.d.ts +1 -1
  127. package/dist/modules/integrations/index.js +2 -2
  128. package/dist/modules/intelwatchtower/index.cjs +37 -37
  129. package/dist/modules/intelwatchtower/index.d.cts +1 -1
  130. package/dist/modules/intelwatchtower/index.d.ts +1 -1
  131. package/dist/modules/intelwatchtower/index.js +2 -2
  132. package/dist/modules/kadaikodi/index.cjs +26 -26
  133. package/dist/modules/kadaikodi/index.d.cts +1 -1
  134. package/dist/modules/kadaikodi/index.d.ts +1 -1
  135. package/dist/modules/kadaikodi/index.js +2 -2
  136. package/dist/modules/labsofscience/index.cjs +44 -44
  137. package/dist/modules/labsofscience/index.d.cts +1 -1
  138. package/dist/modules/labsofscience/index.d.ts +1 -1
  139. package/dist/modules/labsofscience/index.js +2 -2
  140. package/dist/modules/manufacturedops/index.cjs +36 -36
  141. package/dist/modules/manufacturedops/index.d.cts +1 -1
  142. package/dist/modules/manufacturedops/index.d.ts +1 -1
  143. package/dist/modules/manufacturedops/index.js +2 -2
  144. package/dist/modules/movethewheels/index.cjs +78 -78
  145. package/dist/modules/movethewheels/index.d.cts +1 -1
  146. package/dist/modules/movethewheels/index.d.ts +1 -1
  147. package/dist/modules/movethewheels/index.js +2 -2
  148. package/dist/modules/mybodyshield/index.cjs +36 -36
  149. package/dist/modules/mybodyshield/index.d.cts +1 -1
  150. package/dist/modules/mybodyshield/index.d.ts +1 -1
  151. package/dist/modules/mybodyshield/index.js +2 -2
  152. package/dist/modules/notifications/index.cjs +5 -5
  153. package/dist/modules/notifications/index.d.cts +1 -1
  154. package/dist/modules/notifications/index.d.ts +1 -1
  155. package/dist/modules/notifications/index.js +1 -1
  156. package/dist/modules/organizations/index.cjs +5 -5
  157. package/dist/modules/organizations/index.d.cts +1 -1
  158. package/dist/modules/organizations/index.d.ts +1 -1
  159. package/dist/modules/organizations/index.js +1 -1
  160. package/dist/modules/planmagnet/index.cjs +272 -272
  161. package/dist/modules/planmagnet/index.d.cts +1 -1
  162. package/dist/modules/planmagnet/index.d.ts +1 -1
  163. package/dist/modules/planmagnet/index.js +2 -2
  164. package/dist/modules/products/index.cjs +19 -19
  165. package/dist/modules/products/index.d.cts +1 -1
  166. package/dist/modules/products/index.d.ts +1 -1
  167. package/dist/modules/products/index.js +2 -2
  168. package/dist/modules/proserviceworld/index.cjs +24 -24
  169. package/dist/modules/proserviceworld/index.d.cts +1 -1
  170. package/dist/modules/proserviceworld/index.d.ts +1 -1
  171. package/dist/modules/proserviceworld/index.js +2 -2
  172. package/dist/modules/rbac/index.cjs +8 -8
  173. package/dist/modules/rbac/index.d.cts +1 -1
  174. package/dist/modules/rbac/index.d.ts +1 -1
  175. package/dist/modules/rbac/index.js +2 -2
  176. package/dist/modules/sandbox/index.cjs +39 -39
  177. package/dist/modules/sandbox/index.d.cts +1 -1
  178. package/dist/modules/sandbox/index.d.ts +1 -1
  179. package/dist/modules/sandbox/index.js +1 -1
  180. package/dist/modules/scheduler/index.cjs +25 -25
  181. package/dist/modules/scheduler/index.d.cts +1 -1
  182. package/dist/modules/scheduler/index.d.ts +1 -1
  183. package/dist/modules/scheduler/index.js +2 -2
  184. package/dist/modules/security/index.cjs +14 -14
  185. package/dist/modules/security/index.d.cts +1 -1
  186. package/dist/modules/security/index.d.ts +1 -1
  187. package/dist/modules/security/index.js +2 -2
  188. package/dist/modules/semanticfed/index.cjs +44 -44
  189. package/dist/modules/semanticfed/index.d.cts +1 -1
  190. package/dist/modules/semanticfed/index.d.ts +1 -1
  191. package/dist/modules/semanticfed/index.js +1 -1
  192. package/dist/modules/semanticfed-sql/index.cjs +4 -4
  193. package/dist/modules/semanticfed-sql/index.d.cts +1 -1
  194. package/dist/modules/semanticfed-sql/index.d.ts +1 -1
  195. package/dist/modules/semanticfed-sql/index.js +1 -1
  196. package/dist/modules/store/index.cjs +21 -21
  197. package/dist/modules/store/index.d.cts +1 -1
  198. package/dist/modules/store/index.d.ts +1 -1
  199. package/dist/modules/store/index.js +2 -2
  200. package/dist/modules/subscriberbot/index.cjs +41 -41
  201. package/dist/modules/subscriberbot/index.d.cts +1 -1
  202. package/dist/modules/subscriberbot/index.d.ts +1 -1
  203. package/dist/modules/subscriberbot/index.js +2 -2
  204. package/dist/modules/support/index.cjs +8 -8
  205. package/dist/modules/support/index.d.cts +1 -1
  206. package/dist/modules/support/index.d.ts +1 -1
  207. package/dist/modules/support/index.js +2 -2
  208. package/dist/modules/tags/index.cjs +10 -10
  209. package/dist/modules/tags/index.d.cts +1 -1
  210. package/dist/modules/tags/index.d.ts +1 -1
  211. package/dist/modules/tags/index.js +2 -2
  212. package/dist/modules/technospam/index.cjs +44 -44
  213. package/dist/modules/technospam/index.d.cts +1 -1
  214. package/dist/modules/technospam/index.d.ts +1 -1
  215. package/dist/modules/technospam/index.js +2 -2
  216. package/dist/modules/theculturepost/index.cjs +32 -32
  217. package/dist/modules/theculturepost/index.d.cts +1 -1
  218. package/dist/modules/theculturepost/index.d.ts +1 -1
  219. package/dist/modules/theculturepost/index.js +2 -2
  220. package/dist/modules/theglobalfuel/index.cjs +30 -30
  221. package/dist/modules/theglobalfuel/index.d.cts +1 -1
  222. package/dist/modules/theglobalfuel/index.d.ts +1 -1
  223. package/dist/modules/theglobalfuel/index.js +2 -2
  224. package/dist/modules/timecampus/index.cjs +69 -69
  225. package/dist/modules/timecampus/index.d.cts +1 -1
  226. package/dist/modules/timecampus/index.d.ts +1 -1
  227. package/dist/modules/timecampus/index.js +4 -4
  228. package/dist/modules/tours/index.cjs +4 -4
  229. package/dist/modules/tours/index.d.cts +1 -1
  230. package/dist/modules/tours/index.d.ts +1 -1
  231. package/dist/modules/tours/index.js +2 -2
  232. package/dist/modules/vibecontrols/index.cjs +460 -460
  233. package/dist/modules/vibecontrols/index.d.cts +1 -1
  234. package/dist/modules/vibecontrols/index.d.ts +1 -1
  235. package/dist/modules/vibecontrols/index.js +5 -5
  236. package/dist/modules/workspaces/index.cjs +16 -16
  237. package/dist/modules/workspaces/index.d.cts +1 -1
  238. package/dist/modules/workspaces/index.d.ts +1 -1
  239. package/dist/modules/workspaces/index.js +2 -2
  240. package/package.json +6 -1
  241. package/dist/chunk-3ZVMC2AF.js +0 -1
  242. package/dist/chunk-ZT6KOG7N.js +0 -34
@@ -1,44 +1,44 @@
1
- 'use strict';require('graphql-request'),require('cross-fetch'),require('commander');var d=class extends Error{exitCode;hint;constructor(o,u){super(o),this.name="CliUserError",this.exitCode=u?.exitCode??1,this.hint=u?.hint;}},y=class extends d{constructor(o,u){super(o,{exitCode:2,hint:u?.hint??"Run `<product> auth login` to authenticate."}),this.name="CliAuthError";}},f=class extends Error{cause;constructor(o,u){super(o),this.name="CliInternalError",this.cause=u;}};var C=null;function x(n){C=n;}function g(){if(!C)throw new f("vibecontrols module helpers used before setHelpersContext was called");return C}function Y(){let n=g();if(!n.auth.isAuthenticated())throw new y("Authentication required.",{hint:`Run \`${n.productName} auth login\` to authenticate.`})}async function c(n,o){return Y(),g().gql.workspace.request(n,o)}function p(n){let o=n instanceof Error?n.message:String(n);throw new d(o)}function l(n,o,u){g().output.formatAndOutput(n,o,u);}function m(n){g().output.printSuccess(n);}function E(n){g().output.printWarning(n);}function w(n){return g().output.formatStatus(n)}function I(n){return g().output.formatDate(n)}function h(n,o){return g().output.truncate(n,o)}var T=`
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
- `,v=`
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
- `,A=`
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
- `,R=`
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
- `,O=`
26
+ `,$=`
27
27
  mutation DeleteGroup($id: ID!) {
28
28
  deleteGroup(id: $id)
29
29
  }
30
- `,S=`
30
+ `,P=`
31
31
  mutation ArchiveGroup($id: ID!) {
32
32
  archiveGroup(id: $id) { id status }
33
33
  }
34
- `,G=`
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
- `,P=`
50
+ `,_=`
51
51
  mutation RemoveGroupMembers($groupId: ID!, $membershipIds: [ID!]!) {
52
52
  removeGroupMembers(groupId: $groupId, membershipIds: $membershipIds) {
53
53
  removed
54
54
  }
55
55
  }
56
- `,D=`
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
- `,q=`
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 L(n){let o=n.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 t={};e.type&&(t.groupType=e.type.toUpperCase()),e.status&&(t.status=e.status.toUpperCase());let a=(await c(T,{filter:Object.keys(t).length?t:void 0,first:e.limit})).groups.edges.map(i=>i.node);l(e,a,{headers:["ID","Name","Type","Visibility","Status","Members"],rows:a.map(i=>[h(i.id,12),i.name,i.groupType??"-",i.visibility??"-",w(i.status),String(i.memberCount??0)])});}catch(t){p(t);}}),o.command("get").description("Get a group by id").argument("<id>").option("-f, --format <format>").action(async(e,t)=>{try{let r=await c(v,{id:e});if(!r.group)throw new d(`Group ${e} not found`);l(t,r.group);}catch(r){p(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 t={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 c(A,{input:t});m(`Group created: ${r.createGroup.name}`),l(e,r.createGroup);}catch(t){p(t);}}),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,t)=>{try{let r={};if(t.name&&(r.name=t.name),t.description!==void 0&&(r.description=t.description),t.visibility&&(r.visibility=t.visibility.toUpperCase()),t.status&&(r.status=t.status.toUpperCase()),!Object.keys(r).length)throw new d("No updates specified");let a=await c(R,{id:e,input:r});m("Group updated"),l(t,a.updateGroup);}catch(r){p(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,t)=>{try{t.archive?(await c(S,{id:e}),m("Group archived")):(await c(O,{id:e}),m("Group deleted"));}catch(r){p(r);}});let u=o.command("members").description("Group membership");u.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,t)=>{try{let a=(await c(G,{groupId:e,first:t.limit})).groupMembers.edges.map(i=>i.node);l(t,a,{headers:["MembershipID","Entity","Type","Role","Status","Joined"],rows:a.map(i=>[h(i.id,12),h(i.entityId,12),i.entityType??"-",i.role??"-",w(i.invitationStatus),I(i.joinedAt)])});}catch(r){p(r);}}),u.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 t={entityId:e.entity,entityType:(e.entityType??"USER").toUpperCase(),role:(e.role??"MEMBER").toUpperCase()},a=(await c($,{groupId:e.group,members:[t]})).addGroupMembers;m(`Added ${a.successCount} member(s)`);for(let i of a.failed)E(`Could not add ${i.entityType} ${i.entityId}: ${i.error}`);l(e,a.added);}catch(t){p(t);}}),u.command("remove").description("Remove members by membership id").requiredOption("--group <id>").requiredOption("--membership <ids>","Comma-separated membership ids").action(async e=>{try{let t=e.membership.split(",").filter(Boolean);await c(P,{groupId:e.group,membershipIds:t}),m(`Removed ${t.length} membership(s)`);}catch(t){p(t);}}),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,t)=>{try{let r=await c(q,{entityId:e,entityType:(t.type??"USER").toUpperCase(),first:t.limit});l(t,r.entityGroups.edges.map(a=>a.node));}catch(r){p(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,t)=>{try{let r=await c(D,{groupId:e,first:t.limit});l(t,r.groupAuditLogs);}catch(r){p(r);}});}var J={id:"groups",version:"1.0.0",displayName:"Groups",dependsOn:["auth","workspaces"],register(n,o){x(o),L(n);}},ut=J;module.exports=ut;
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 { C as CliModule } from '../../module-BNVKV_pI.cjs';
1
+ import { C as CliModule } from '../../module-DWSAfs3k.cjs';
2
2
  import 'commander';
3
3
  import 'graphql-request';
4
4
 
@@ -1,4 +1,4 @@
1
- import { C as CliModule } from '../../module-BNVKV_pI.js';
1
+ import { C as CliModule } from '../../module-DWSAfs3k.js';
2
2
  import 'commander';
3
3
  import 'graphql-request';
4
4
 
@@ -1,4 +1,4 @@
1
- import {a,b,i,r,p,h as h$1,k,q as q$2,n}from'../../chunk-3ZVMC2AF.js';import {q as q$1}from'../../chunk-ZT6KOG7N.js';var E=`
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 q$1(`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 q$1("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$2(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};
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};