@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.
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,128 +1,128 @@
1
- 'use strict';require('graphql-request'),require('cross-fetch'),require('commander');var g=class extends Error{exitCode;hint;constructor(a,u){super(a),this.name="CliUserError",this.exitCode=u?.exitCode??1,this.hint=u?.hint;}},C=class extends g{constructor(a,u){super(a,{exitCode:2,hint:u?.hint??"Run `<product> auth login` to authenticate."}),this.name="CliAuthError";}},f=class extends Error{cause;constructor(a,u){super(a),this.name="CliInternalError",this.cause=u;}};var I=null;function E(o){I=o;}function m(){if(!I)throw new f("vibecontrols module helpers used before setHelpersContext was called");return I}function de(){let o=m();if(!o.auth.isAuthenticated())throw new C("Authentication required.",{hint:`Run \`${o.productName} auth login\` to authenticate.`})}async function r(o,a){return de(),m().gql.workspace.request(o,a)}function i(o){let a=o instanceof Error?o.message:String(o);throw new g(a)}function s(o,a,u){m().output.formatAndOutput(o,a,u);}function d(o){m().output.printSuccess(o);}function x(o){return m().output.formatStatus(o)}function v(o){return m().output.formatDate(o)}function y(o,a){return m().output.truncate(o,a)}var O=`
1
+ 'use strict';require('graphql-request'),require('cross-fetch'),require('commander');var d=class extends Error{exitCode;hint;constructor(s,c){super(s),this.name="CliUserError",this.exitCode=c?.exitCode??1,this.hint=c?.hint;}},C=class extends d{constructor(s,c){super(s,{exitCode:2,hint:c?.hint??"Run `<product> auth login` to authenticate."}),this.name="CliAuthError";}},m=class extends Error{cause;constructor(s,c){super(s),this.name="CliInternalError",this.cause=c;}};function T(o){if(o instanceof C||o instanceof d)return o;let s=k(o)&&k(o.response)?o.response:void 0,c=s?.errors,l=Array.isArray(c)?c[0]:void 0,f=(k(l)&&k(l.extensions)?l.extensions:void 0)?.code,e=s?.status;return f==="UNAUTHENTICATED"||e===401?new C("Authentication required."):f==="FORBIDDEN"||e===403?new d("Permission denied."):f==="BAD_USER_INPUT"||f==="GRAPHQL_VALIDATION_FAILED"||e===400?new d("Invalid request. Check the command arguments."):f==="NOT_FOUND"||e===404?new d("Requested resource was not found."):f==="RATE_LIMITED"||f==="TOO_MANY_REQUESTS"||e===429?new d("Request limit reached. Try again later."):new m("The request could not be completed. Try again later.")}var w=class extends Error{response;constructor(s,c){super(s),this.name="GqlRequestError",this.response=c;}};function k(o){return typeof o=="object"&&o!==null&&!Array.isArray(o)}var E=null;function O(o){E=o;}function h(){if(!E)throw new m("vibecontrols module helpers used before setHelpersContext was called");return E}function ge(){let o=h();if(!o.auth.isAuthenticated())throw new C("Authentication required.",{hint:`Run \`${o.productName} auth login\` to authenticate.`})}async function r(o,s){return ge(),h().gql.workspace.request(o,s)}function i(o){throw o instanceof C||o instanceof d||o instanceof m?o:o instanceof w||o!==null&&typeof o=="object"&&"response"in o?T(o):new m("The command could not be completed. Try again later.")}function a(o,s,c){h().output.formatAndOutput(o,s,c);}function p(o){h().output.printSuccess(o);}function A(o){return h().output.formatStatus(o)}function b(o){return h().output.formatDate(o)}function I(o,s){return h().output.truncate(o,s)}var R=`
2
2
  query GetProviders($filter: ProviderFilterInput, $pagination: IntegrationsPaginationInput) {
3
3
  getProviders(filter: $filter, pagination: $pagination) {
4
4
  items { id key name category authType isEnabled }
5
5
  total hasMore
6
6
  }
7
7
  }
8
- `,b=`
8
+ `,N=`
9
9
  query GetProvider($id: ID!) {
10
10
  getProvider(id: $id) {
11
11
  id key name authType category connectionCount
12
12
  }
13
13
  }
14
- `,A=`
14
+ `,P=`
15
15
  query GetConnections($filter: ConnectionFilterInput, $pagination: IntegrationsPaginationInput) {
16
16
  getConnections(filter: $filter, pagination: $pagination) {
17
17
  items { id name providerId status grantedScopes }
18
18
  total hasMore
19
19
  }
20
20
  }
21
- `,R=`
21
+ `,S=`
22
22
  query GetConnection($id: ID!) {
23
23
  getConnection(id: $id) {
24
24
  id name providerId status externalAccountEmail credentialSource
25
25
  }
26
26
  }
27
- `,N=`
27
+ `,$=`
28
28
  mutation CreateConnection($input: CreateConnectionInput!) {
29
29
  createConnection(input: $input) {
30
30
  id name status providerId
31
31
  }
32
32
  }
33
- `,P=`
33
+ `,q=`
34
34
  mutation DeleteConnection($id: ID!, $deleteVaultSecret: Boolean) {
35
35
  deleteConnection(id: $id, deleteVaultSecret: $deleteVaultSecret)
36
36
  }
37
- `,S=`
37
+ `,_=`
38
38
  query GetIntegrationLogs($filter: LogFilterInput, $pagination: IntegrationsPaginationInput) {
39
39
  getIntegrationLogs(filter: $filter, pagination: $pagination) {
40
40
  items { id action level message createdAt }
41
41
  total hasMore
42
42
  }
43
43
  }
44
- `,$=`
44
+ `,D=`
45
45
  mutation UpdateConnection($id: ID!, $input: UpdateConnectionInput!) {
46
46
  updateConnection(id: $id, input: $input) { id name status }
47
47
  }
48
- `,q=`
48
+ `,L=`
49
49
  mutation RevokeConnection($connectionId: ID!) {
50
50
  revokeConnection(connectionId: $connectionId) { id name status }
51
51
  }
52
- `,_=`
52
+ `,G=`
53
53
  mutation TestConnection($connectionId: ID!) {
54
54
  testConnection(connectionId: $connectionId) { success message latencyMs }
55
55
  }
56
- `,D=`
56
+ `,U=`
57
57
  mutation LinkIntegrationToChannel($channelId: String!, $connectionId: ID!, $organizationId: String!) {
58
58
  linkIntegrationToChannel(channelId: $channelId, connectionId: $connectionId, organizationId: $organizationId) {
59
59
  id name status channelId organizationId
60
60
  }
61
61
  }
62
- `,L=`
62
+ `,W=`
63
63
  mutation RefreshConnectionToken($connectionId: ID!) {
64
64
  refreshConnectionToken(connectionId: $connectionId) { id status }
65
65
  }
66
- `,G=`
66
+ `,B=`
67
67
  mutation AuthenticateWithApiKey($input: ApiKeyAuthInput!) {
68
68
  authenticateWithApiKey(input: $input) { id name status }
69
69
  }
70
- `,W=`
70
+ `,F=`
71
71
  mutation AuthenticateWithBasicAuth($input: BasicAuthInput!) {
72
72
  authenticateWithBasicAuth(input: $input) { id name status }
73
73
  }
74
- `,U=`
74
+ `,j=`
75
75
  mutation AuthenticateWithBearerToken($input: BearerTokenAuthInput!) {
76
76
  authenticateWithBearerToken(input: $input) { id name status }
77
77
  }
78
- `,B=`
78
+ `,M=`
79
79
  mutation InitiateOAuth($input: InitiateOAuthInput!) {
80
80
  initiateOAuth(input: $input) { redirectUrl state }
81
81
  }
82
- `,F=`
82
+ `,V=`
83
83
  mutation CompleteOAuth($input: CompleteOAuthInput!) {
84
84
  completeOAuth(input: $input) { id name status }
85
85
  }
86
- `,j=`
86
+ `,K=`
87
87
  query GetProviderByKey($key: String!) {
88
88
  getProviderByKey(key: $key) { id key name authType category connectionCount isEnabled }
89
89
  }
90
- `,M=`
90
+ `,H=`
91
91
  query GetProviderCatalog($pagination: IntegrationsPaginationInput) {
92
92
  getProviderCatalog(pagination: $pagination) {
93
93
  items { id key name category authType isEnabled }
94
94
  total hasMore
95
95
  }
96
96
  }
97
- `,V=`
97
+ `,z=`
98
98
  query GetConnectionsByProvider($providerId: ID!, $pagination: IntegrationsPaginationInput) {
99
99
  getConnectionsByProvider(providerId: $providerId, pagination: $pagination) {
100
100
  items { id name providerId status grantedScopes }
101
101
  total hasMore
102
102
  }
103
103
  }
104
- `,K=`
104
+ `,Y=`
105
105
  mutation EnableProvider($id: ID!) {
106
106
  enableProvider(id: $id) { id key name isEnabled }
107
107
  }
108
- `,H=`
108
+ `,J=`
109
109
  mutation DisableProvider($id: ID!) {
110
110
  disableProvider(id: $id) { id key name isEnabled }
111
111
  }
112
- `,z=`
112
+ `,Q=`
113
113
  mutation TagConnection($input: TagConnectionInput!) {
114
114
  tagConnection(input: $input) { id entityId tagId source }
115
115
  }
116
- `,Y=`
116
+ `,X=`
117
117
  mutation UntagConnection($input: UntagConnectionInput!) {
118
118
  untagConnection(input: $input)
119
119
  }
120
- `,J=`
120
+ `,Z=`
121
121
  mutation ReplaceConnectionTags($input: ReplaceConnectionTagsInput!) {
122
122
  replaceConnectionTags(input: $input) { id entityId tagId source }
123
123
  }
124
- `,Q=`
124
+ `,ee=`
125
125
  query GetConnectionTags($input: GetConnectionTagsInput!) {
126
126
  getConnectionTags(input: $input) { id entityId tagId source assignedAt }
127
127
  }
128
- `;function X(o){let a=o.command("integrations").description("Integration providers, connections, and logs"),u=a.command("providers").description("Available providers");u.command("list").description("List integration providers").option("--category <c>").option("--enabled").option("--limit <n>","Page size",e=>parseInt(e,10),100).option("-f, --format <format>").action(async e=>{try{let t={};e.category&&(t.category=e.category.toUpperCase()),e.enabled!==void 0&&(t.isEnabled=e.enabled);let n=await r(O,{filter:Object.keys(t).length?t:void 0,pagination:{limit:e.limit,offset:0}});s(e,n.getProviders.items,{headers:["ID","Key","Name","Category","Auth","Enabled"],rows:n.getProviders.items.map(c=>[y(c.id,12),c.key,c.name,c.category??"-",c.authType??"-",String(!!c.isEnabled)])});}catch(t){i(t);}}),u.command("get").description("Get a provider").argument("<id>").option("-f, --format <format>").action(async(e,t)=>{try{let n=await r(b,{id:e});if(!n.getProvider)throw new g(`Provider ${e} not found`);s(t,n.getProvider);}catch(n){i(n);}});let l=a.command("connections").description("Provider connections (OAuth + credential)");l.command("list").description("List connections").option("--provider <id>").option("--status <s>").option("--limit <n>","Page size",e=>parseInt(e,10),100).option("-f, --format <format>").action(async e=>{try{let t={};e.provider&&(t.providerId=e.provider),e.status&&(t.status=e.status.toUpperCase());let n=await r(A,{filter:Object.keys(t).length?t:void 0,pagination:{limit:e.limit,offset:0}});s(e,n.getConnections.items,{headers:["ID","Name","Provider","Status"],rows:n.getConnections.items.map(c=>[y(c.id,12),c.name,y(c.providerId,12),x(c.status)])});}catch(t){i(t);}}),l.command("get").description("Get a connection").argument("<id>").option("-f, --format <format>").action(async(e,t)=>{try{let n=await r(R,{id:e});if(!n.getConnection)throw new g(`Connection ${e} not found`);s(t,n.getConnection);}catch(n){i(n);}}),l.command("add").description("Create a connection (provider id required; credentials stored in vault)").requiredOption("--name <name>").requiredOption("--provider <id>").option("--scopes <s>","Comma-separated scopes").option("-f, --format <format>").action(async e=>{try{let t={name:e.name,providerId:e.provider,grantedScopes:e.scopes?e.scopes.split(","):void 0},n=await r(N,{input:t});d("Connection created"),s(e,n.createConnection);}catch(t){i(t);}}),l.command("delete").description("Delete a connection").argument("<id>").option("--keep-secret","Keep vault secret",false).action(async(e,t)=>{try{await r(P,{id:e,deleteVaultSecret:!t.keepSecret}),d("Connection deleted");}catch(n){i(n);}}),l.command("update").description("Update a connection (name / description / config JSON)").argument("<id>").option("--name <name>").option("--description <desc>").option("--config <json>","Config JSON string").option("-f, --format <format>").action(async(e,t)=>{try{let n={};if(t.name!==void 0&&(n.name=t.name),t.description!==void 0&&(n.description=t.description),t.config!==void 0&&(n.config=JSON.parse(t.config)),Object.keys(n).length===0)throw new g("Provide at least one of --name, --description, --config");let c=await r($,{id:e,input:n});d("Connection updated"),s(t,c.updateConnection);}catch(n){i(n);}}),l.command("revoke").description("Revoke a connection (soft delete; tokens invalidated)").argument("<connectionId>").option("-f, --format <format>").action(async(e,t)=>{try{let n=await r(q,{connectionId:e});d("Connection revoked"),s(t,n.revokeConnection);}catch(n){i(n);}}),l.command("test").description("Test a connection (health/auth probe)").argument("<connectionId>").option("-f, --format <format>").action(async(e,t)=>{try{let n=await r(_,{connectionId:e});s(t,n.testConnection);}catch(n){i(n);}}),l.command("link").description("Link a connection to a channel for DM/notification routing").requiredOption("--channel <channelId>").requiredOption("--connection <id>").requiredOption("--organization <id>").option("-f, --format <format>").action(async e=>{try{let t=await r(D,{channelId:e.channel,connectionId:e.connection,organizationId:e.organization});d("Linked"),s(e,t.linkIntegrationToChannel);}catch(t){i(t);}}),l.command("refresh-token").description("Force a connection token refresh (OAuth refresh_grant)").argument("<connectionId>").option("-f, --format <format>").action(async(e,t)=>{try{let n=await r(L,{connectionId:e});d("Token refreshed"),s(t,n.refreshConnectionToken);}catch(n){i(n);}});let h=a.command("auth").description("Per-connection auth flows");h.command("api-key").description("Authenticate a connection with an API key").requiredOption("--connection <id>").requiredOption("--api-key <key>").option("-f, --format <format>").action(async e=>{try{let t=await r(G,{input:{connectionId:e.connection,apiKey:e.apiKey}});d("Authenticated"),s(e,t.authenticateWithApiKey);}catch(t){i(t);}}),h.command("basic").description("Authenticate a connection with Basic Auth").requiredOption("--connection <id>").requiredOption("--username <u>").requiredOption("--password <p>").option("-f, --format <format>").action(async e=>{try{let t=await r(W,{input:{connectionId:e.connection,username:e.username,password:e.password}});d("Authenticated"),s(e,t.authenticateWithBasicAuth);}catch(t){i(t);}}),h.command("bearer").description("Authenticate a connection with a Bearer token").requiredOption("--connection <id>").requiredOption("--token <t>").option("-f, --format <format>").action(async e=>{try{let t=await r(U,{input:{connectionId:e.connection,token:e.token}});d("Authenticated"),s(e,t.authenticateWithBearerToken);}catch(t){i(t);}}),h.command("oauth-start").description("Initiate an OAuth flow; prints redirect URL + state").requiredOption("--connection <id>").requiredOption("--redirect-uri <uri>").option("--scopes <s>","Comma-separated scopes").option("-f, --format <format>").action(async e=>{try{let t={connectionId:e.connection,redirectUri:e.redirectUri};e.scopes&&(t.scopes=e.scopes.split(","));let n=await r(B,{input:t});s(e,n.initiateOAuth);}catch(t){i(t);}}),h.command("oauth-complete").description("Complete an OAuth flow with the authorization code + state").requiredOption("--connection <id>").requiredOption("--code <c>").requiredOption("--redirect-uri <uri>").requiredOption("--state <s>").option("-f, --format <format>").action(async e=>{try{let t=await r(F,{input:{connectionId:e.connection,code:e.code,redirectUri:e.redirectUri,state:e.state}});d("OAuth complete"),s(e,t.completeOAuth);}catch(t){i(t);}});let w=l.command("tags").description("Connection tag assignments");w.command("add").description("Tag a connection").requiredOption("--entity <id>").requiredOption("--tag <tagId>").option("--source <s>").option("-f, --format <format>").action(async e=>{try{let t={entityId:e.entity,tagId:e.tag};e.source&&(t.source=e.source);let n=await r(z,{input:t});d("Tagged"),s(e,n.tagConnection);}catch(t){i(t);}}),w.command("remove").description("Remove a tag from a connection").requiredOption("--entity <id>").requiredOption("--tag <tagId>").action(async e=>{try{await r(Y,{input:{entityId:e.entity,tagId:e.tag}}),d("Tag removed");}catch(t){i(t);}}),w.command("replace").description("Replace all tags on a connection").requiredOption("--entity <id>").requiredOption("--tags <ids>","Comma-separated tag IDs").option("-f, --format <format>").action(async e=>{try{let t=await r(J,{input:{entityId:e.entity,tagIds:e.tags.split(",")}});d("Tags replaced"),s(e,t.replaceConnectionTags);}catch(t){i(t);}}),w.command("list").description("List tags on a connection").requiredOption("--entity <id>").option("-f, --format <format>").action(async e=>{try{let t=await r(Q,{input:{entityId:e.entity}});s(e,t.getConnectionTags);}catch(t){i(t);}}),u.command("get-by-key").description("Get a provider by key (e.g. github, slack)").argument("<key>").option("-f, --format <format>").action(async(e,t)=>{try{let n=await r(j,{key:e});if(!n.getProviderByKey)throw new g(`Provider ${e} not found`);s(t,n.getProviderByKey);}catch(n){i(n);}}),u.command("catalog").description("Browseable provider catalog").option("--limit <n>","Page size",e=>parseInt(e,10),100).option("-f, --format <format>").action(async e=>{try{let t=await r(M,{pagination:{limit:e.limit,offset:0}});s(e,t.getProviderCatalog.items,{headers:["ID","Key","Name","Category","Auth","Enabled"],rows:t.getProviderCatalog.items.map(n=>[y(n.id,12),n.key,n.name,n.category??"-",n.authType??"-",String(!!n.isEnabled)])});}catch(t){i(t);}}),u.command("connections").description("Connections for a given provider").argument("<providerId>").option("--limit <n>","Page size",e=>parseInt(e,10),100).option("-f, --format <format>").action(async(e,t)=>{try{let n=await r(V,{providerId:e,pagination:{limit:t.limit,offset:0}});s(t,n.getConnectionsByProvider.items);}catch(n){i(n);}}),u.command("enable").description("Enable a provider").argument("<id>").action(async e=>{try{await r(K,{id:e}),d("Provider enabled");}catch(t){i(t);}}),u.command("disable").description("Disable a provider").argument("<id>").action(async e=>{try{await r(H,{id:e}),d("Provider disabled");}catch(t){i(t);}}),a.command("logs").description("Integration audit logs").option("--connection <id>").option("--level <l>","INFO|WARN|ERROR").option("--limit <n>","Page size",e=>parseInt(e,10),100).option("-f, --format <format>").action(async e=>{try{let t={};e.connection&&(t.connectionId=e.connection),e.level&&(t.level=e.level.toUpperCase());let n=await r(S,{filter:Object.keys(t).length?t:void 0,pagination:{limit:e.limit,offset:0}});s(e,n.getIntegrationLogs.items,{headers:["When","Action","Level","Message"],rows:n.getIntegrationLogs.items.map(c=>[v(c.createdAt),c.action,c.level,c.message])});}catch(t){i(t);}});}var ge={id:"integrations",version:"1.0.0",displayName:"Integrations",dependsOn:["auth","workspaces"],register(o,a){E(a),X(o);}},xt=ge;module.exports=xt;
128
+ `;function te(o){let s=o.command("integrations").description("Integration providers, connections, and logs"),c=s.command("providers").description("Available providers");c.command("list").description("List integration providers").option("--category <c>").option("--enabled").option("--limit <n>","Page size",e=>parseInt(e,10),100).option("-f, --format <format>").action(async e=>{try{let t={};e.category&&(t.category=e.category.toUpperCase()),e.enabled!==void 0&&(t.isEnabled=e.enabled);let n=await r(R,{filter:Object.keys(t).length?t:void 0,pagination:{limit:e.limit,offset:0}});a(e,n.getProviders.items,{headers:["ID","Key","Name","Category","Auth","Enabled"],rows:n.getProviders.items.map(u=>[I(u.id,12),u.key,u.name,u.category??"-",u.authType??"-",String(!!u.isEnabled)])});}catch(t){i(t);}}),c.command("get").description("Get a provider").argument("<id>").option("-f, --format <format>").action(async(e,t)=>{try{let n=await r(N,{id:e});if(!n.getProvider)throw new d(`Provider ${e} not found`);a(t,n.getProvider);}catch(n){i(n);}});let l=s.command("connections").description("Provider connections (OAuth + credential)");l.command("list").description("List connections").option("--provider <id>").option("--status <s>").option("--limit <n>","Page size",e=>parseInt(e,10),100).option("-f, --format <format>").action(async e=>{try{let t={};e.provider&&(t.providerId=e.provider),e.status&&(t.status=e.status.toUpperCase());let n=await r(P,{filter:Object.keys(t).length?t:void 0,pagination:{limit:e.limit,offset:0}});a(e,n.getConnections.items,{headers:["ID","Name","Provider","Status"],rows:n.getConnections.items.map(u=>[I(u.id,12),u.name,I(u.providerId,12),A(u.status)])});}catch(t){i(t);}}),l.command("get").description("Get a connection").argument("<id>").option("-f, --format <format>").action(async(e,t)=>{try{let n=await r(S,{id:e});if(!n.getConnection)throw new d(`Connection ${e} not found`);a(t,n.getConnection);}catch(n){i(n);}}),l.command("add").description("Create a connection (provider id required; credentials stored in vault)").requiredOption("--name <name>").requiredOption("--provider <id>").option("--scopes <s>","Comma-separated scopes").option("-f, --format <format>").action(async e=>{try{let t={name:e.name,providerId:e.provider,grantedScopes:e.scopes?e.scopes.split(","):void 0},n=await r($,{input:t});p("Connection created"),a(e,n.createConnection);}catch(t){i(t);}}),l.command("delete").description("Delete a connection").argument("<id>").option("--keep-secret","Keep vault secret",false).action(async(e,t)=>{try{await r(q,{id:e,deleteVaultSecret:!t.keepSecret}),p("Connection deleted");}catch(n){i(n);}}),l.command("update").description("Update a connection (name / description / config JSON)").argument("<id>").option("--name <name>").option("--description <desc>").option("--config <json>","Config JSON string").option("-f, --format <format>").action(async(e,t)=>{try{let n={};if(t.name!==void 0&&(n.name=t.name),t.description!==void 0&&(n.description=t.description),t.config!==void 0&&(n.config=JSON.parse(t.config)),Object.keys(n).length===0)throw new d("Provide at least one of --name, --description, --config");let u=await r(D,{id:e,input:n});p("Connection updated"),a(t,u.updateConnection);}catch(n){i(n);}}),l.command("revoke").description("Revoke a connection (soft delete; tokens invalidated)").argument("<connectionId>").option("-f, --format <format>").action(async(e,t)=>{try{let n=await r(L,{connectionId:e});p("Connection revoked"),a(t,n.revokeConnection);}catch(n){i(n);}}),l.command("test").description("Test a connection (health/auth probe)").argument("<connectionId>").option("-f, --format <format>").action(async(e,t)=>{try{let n=await r(G,{connectionId:e});a(t,n.testConnection);}catch(n){i(n);}}),l.command("link").description("Link a connection to a channel for DM/notification routing").requiredOption("--channel <channelId>").requiredOption("--connection <id>").requiredOption("--organization <id>").option("-f, --format <format>").action(async e=>{try{let t=await r(U,{channelId:e.channel,connectionId:e.connection,organizationId:e.organization});p("Linked"),a(e,t.linkIntegrationToChannel);}catch(t){i(t);}}),l.command("refresh-token").description("Force a connection token refresh (OAuth refresh_grant)").argument("<connectionId>").option("-f, --format <format>").action(async(e,t)=>{try{let n=await r(W,{connectionId:e});p("Token refreshed"),a(t,n.refreshConnectionToken);}catch(n){i(n);}});let y=s.command("auth").description("Per-connection auth flows");y.command("api-key").description("Authenticate a connection with an API key").requiredOption("--connection <id>").requiredOption("--api-key <key>").option("-f, --format <format>").action(async e=>{try{let t=await r(B,{input:{connectionId:e.connection,apiKey:e.apiKey}});p("Authenticated"),a(e,t.authenticateWithApiKey);}catch(t){i(t);}}),y.command("basic").description("Authenticate a connection with Basic Auth").requiredOption("--connection <id>").requiredOption("--username <u>").requiredOption("--password <p>").option("-f, --format <format>").action(async e=>{try{let t=await r(F,{input:{connectionId:e.connection,username:e.username,password:e.password}});p("Authenticated"),a(e,t.authenticateWithBasicAuth);}catch(t){i(t);}}),y.command("bearer").description("Authenticate a connection with a Bearer token").requiredOption("--connection <id>").requiredOption("--token <t>").option("-f, --format <format>").action(async e=>{try{let t=await r(j,{input:{connectionId:e.connection,token:e.token}});p("Authenticated"),a(e,t.authenticateWithBearerToken);}catch(t){i(t);}}),y.command("oauth-start").description("Initiate an OAuth flow; prints redirect URL + state").requiredOption("--connection <id>").requiredOption("--redirect-uri <uri>").option("--scopes <s>","Comma-separated scopes").option("-f, --format <format>").action(async e=>{try{let t={connectionId:e.connection,redirectUri:e.redirectUri};e.scopes&&(t.scopes=e.scopes.split(","));let n=await r(M,{input:t});a(e,n.initiateOAuth);}catch(t){i(t);}}),y.command("oauth-complete").description("Complete an OAuth flow with the authorization code + state").requiredOption("--connection <id>").requiredOption("--code <c>").requiredOption("--redirect-uri <uri>").requiredOption("--state <s>").option("-f, --format <format>").action(async e=>{try{let t=await r(V,{input:{connectionId:e.connection,code:e.code,redirectUri:e.redirectUri,state:e.state}});p("OAuth complete"),a(e,t.completeOAuth);}catch(t){i(t);}});let f=l.command("tags").description("Connection tag assignments");f.command("add").description("Tag a connection").requiredOption("--entity <id>").requiredOption("--tag <tagId>").option("--source <s>").option("-f, --format <format>").action(async e=>{try{let t={entityId:e.entity,tagId:e.tag};e.source&&(t.source=e.source);let n=await r(Q,{input:t});p("Tagged"),a(e,n.tagConnection);}catch(t){i(t);}}),f.command("remove").description("Remove a tag from a connection").requiredOption("--entity <id>").requiredOption("--tag <tagId>").action(async e=>{try{await r(X,{input:{entityId:e.entity,tagId:e.tag}}),p("Tag removed");}catch(t){i(t);}}),f.command("replace").description("Replace all tags on a connection").requiredOption("--entity <id>").requiredOption("--tags <ids>","Comma-separated tag IDs").option("-f, --format <format>").action(async e=>{try{let t=await r(Z,{input:{entityId:e.entity,tagIds:e.tags.split(",")}});p("Tags replaced"),a(e,t.replaceConnectionTags);}catch(t){i(t);}}),f.command("list").description("List tags on a connection").requiredOption("--entity <id>").option("-f, --format <format>").action(async e=>{try{let t=await r(ee,{input:{entityId:e.entity}});a(e,t.getConnectionTags);}catch(t){i(t);}}),c.command("get-by-key").description("Get a provider by key (e.g. github, slack)").argument("<key>").option("-f, --format <format>").action(async(e,t)=>{try{let n=await r(K,{key:e});if(!n.getProviderByKey)throw new d(`Provider ${e} not found`);a(t,n.getProviderByKey);}catch(n){i(n);}}),c.command("catalog").description("Browseable provider catalog").option("--limit <n>","Page size",e=>parseInt(e,10),100).option("-f, --format <format>").action(async e=>{try{let t=await r(H,{pagination:{limit:e.limit,offset:0}});a(e,t.getProviderCatalog.items,{headers:["ID","Key","Name","Category","Auth","Enabled"],rows:t.getProviderCatalog.items.map(n=>[I(n.id,12),n.key,n.name,n.category??"-",n.authType??"-",String(!!n.isEnabled)])});}catch(t){i(t);}}),c.command("connections").description("Connections for a given provider").argument("<providerId>").option("--limit <n>","Page size",e=>parseInt(e,10),100).option("-f, --format <format>").action(async(e,t)=>{try{let n=await r(z,{providerId:e,pagination:{limit:t.limit,offset:0}});a(t,n.getConnectionsByProvider.items);}catch(n){i(n);}}),c.command("enable").description("Enable a provider").argument("<id>").action(async e=>{try{await r(Y,{id:e}),p("Provider enabled");}catch(t){i(t);}}),c.command("disable").description("Disable a provider").argument("<id>").action(async e=>{try{await r(J,{id:e}),p("Provider disabled");}catch(t){i(t);}}),s.command("logs").description("Integration audit logs").option("--connection <id>").option("--level <l>","INFO|WARN|ERROR").option("--limit <n>","Page size",e=>parseInt(e,10),100).option("-f, --format <format>").action(async e=>{try{let t={};e.connection&&(t.connectionId=e.connection),e.level&&(t.level=e.level.toUpperCase());let n=await r(_,{filter:Object.keys(t).length?t:void 0,pagination:{limit:e.limit,offset:0}});a(e,n.getIntegrationLogs.items,{headers:["When","Action","Level","Message"],rows:n.getIntegrationLogs.items.map(u=>[b(u.createdAt),u.action,u.level,u.message])});}catch(t){i(t);}});}var me={id:"integrations",version:"1.0.0",displayName:"Integrations",dependsOn:["auth","workspaces"],register(o,s){O(s),te(o);}},At=me;module.exports=At;
@@ -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 as b$1,i,r,h,p,k as k$1,q as q$2}from'../../chunk-3ZVMC2AF.js';import {q as q$1}from'../../chunk-ZT6KOG7N.js';var E=`
1
+ import {a,b as b$1,i,r,h,p,k as k$1,q as q$1}from'../../chunk-BGNPGKJM.js';import {j}from'../../chunk-N7EXKGE2.js';var E=`
2
2
  query GetProviders($filter: ProviderFilterInput, $pagination: IntegrationsPaginationInput) {
3
3
  getProviders(filter: $filter, pagination: $pagination) {
4
4
  items { id key name category authType isEnabled }
@@ -125,4 +125,4 @@ import {a,b as b$1,i,r,h,p,k as k$1,q as q$2}from'../../chunk-3ZVMC2AF.js';impor
125
125
  query GetConnectionTags($input: GetConnectionTagsInput!) {
126
126
  getConnectionTags(input: $input) { id entityId tagId source assignedAt }
127
127
  }
128
- `;function Y(I){let p$1=I.command("integrations").description("Integration providers, connections, and logs"),d=p$1.command("providers").description("Available providers");d.command("list").description("List integration providers").option("--category <c>").option("--enabled").option("--limit <n>","Page size",t=>parseInt(t,10),100).option("-f, --format <format>").action(async t=>{try{let n={};t.category&&(n.category=t.category.toUpperCase()),t.enabled!==void 0&&(n.isEnabled=t.enabled);let e=await b$1(E,{filter:Object.keys(n).length?n:void 0,pagination:{limit:t.limit,offset:0}});i(t,e.getProviders.items,{headers:["ID","Key","Name","Category","Auth","Enabled"],rows:e.getProviders.items.map(r$1=>[r(r$1.id,12),r$1.key,r$1.name,r$1.category??"-",r$1.authType??"-",String(!!r$1.isEnabled)])});}catch(n){h(n);}}),d.command("get").description("Get a provider").argument("<id>").option("-f, --format <format>").action(async(t,n)=>{try{let e=await b$1(O,{id:t});if(!e.getProvider)throw new q$1(`Provider ${t} not found`);i(n,e.getProvider);}catch(e){h(e);}});let s=p$1.command("connections").description("Provider connections (OAuth + credential)");s.command("list").description("List connections").option("--provider <id>").option("--status <s>").option("--limit <n>","Page size",t=>parseInt(t,10),100).option("-f, --format <format>").action(async t=>{try{let n={};t.provider&&(n.providerId=t.provider),t.status&&(n.status=t.status.toUpperCase());let e=await b$1(N,{filter:Object.keys(n).length?n:void 0,pagination:{limit:t.limit,offset:0}});i(t,e.getConnections.items,{headers:["ID","Name","Provider","Status"],rows:e.getConnections.items.map(r$1=>[r(r$1.id,12),r$1.name,r(r$1.providerId,12),p(r$1.status)])});}catch(n){h(n);}}),s.command("get").description("Get a connection").argument("<id>").option("-f, --format <format>").action(async(t,n)=>{try{let e=await b$1(A,{id:t});if(!e.getConnection)throw new q$1(`Connection ${t} not found`);i(n,e.getConnection);}catch(e){h(e);}}),s.command("add").description("Create a connection (provider id required; credentials stored in vault)").requiredOption("--name <name>").requiredOption("--provider <id>").option("--scopes <s>","Comma-separated scopes").option("-f, --format <format>").action(async t=>{try{let n={name:t.name,providerId:t.provider,grantedScopes:t.scopes?t.scopes.split(","):void 0},e=await b$1(v,{input:n});k$1("Connection created"),i(t,e.createConnection);}catch(n){h(n);}}),s.command("delete").description("Delete a connection").argument("<id>").option("--keep-secret","Keep vault secret",false).action(async(t,n)=>{try{await b$1(R,{id:t,deleteVaultSecret:!n.keepSecret}),k$1("Connection deleted");}catch(e){h(e);}}),s.command("update").description("Update a connection (name / description / config JSON)").argument("<id>").option("--name <name>").option("--description <desc>").option("--config <json>","Config JSON string").option("-f, --format <format>").action(async(t,n)=>{try{let e={};if(n.name!==void 0&&(e.name=n.name),n.description!==void 0&&(e.description=n.description),n.config!==void 0&&(e.config=JSON.parse(n.config)),Object.keys(e).length===0)throw new q$1("Provide at least one of --name, --description, --config");let r=await b$1(_,{id:t,input:e});k$1("Connection updated"),i(n,r.updateConnection);}catch(e){h(e);}}),s.command("revoke").description("Revoke a connection (soft delete; tokens invalidated)").argument("<connectionId>").option("-f, --format <format>").action(async(t,n)=>{try{let e=await b$1(P,{connectionId:t});k$1("Connection revoked"),i(n,e.revokeConnection);}catch(e){h(e);}}),s.command("test").description("Test a connection (health/auth probe)").argument("<connectionId>").option("-f, --format <format>").action(async(t,n)=>{try{let e=await b$1($,{connectionId:t});i(n,e.testConnection);}catch(e){h(e);}}),s.command("link").description("Link a connection to a channel for DM/notification routing").requiredOption("--channel <channelId>").requiredOption("--connection <id>").requiredOption("--organization <id>").option("-f, --format <format>").action(async t=>{try{let n=await b$1(k,{channelId:t.channel,connectionId:t.connection,organizationId:t.organization});k$1("Linked"),i(t,n.linkIntegrationToChannel);}catch(n){h(n);}}),s.command("refresh-token").description("Force a connection token refresh (OAuth refresh_grant)").argument("<connectionId>").option("-f, --format <format>").action(async(t,n)=>{try{let e=await b$1(b,{connectionId:t});k$1("Token refreshed"),i(n,e.refreshConnectionToken);}catch(e){h(e);}});let g=p$1.command("auth").description("Per-connection auth flows");g.command("api-key").description("Authenticate a connection with an API key").requiredOption("--connection <id>").requiredOption("--api-key <key>").option("-f, --format <format>").action(async t=>{try{let n=await b$1(G,{input:{connectionId:t.connection,apiKey:t.apiKey}});k$1("Authenticated"),i(t,n.authenticateWithApiKey);}catch(n){h(n);}}),g.command("basic").description("Authenticate a connection with Basic Auth").requiredOption("--connection <id>").requiredOption("--username <u>").requiredOption("--password <p>").option("-f, --format <format>").action(async t=>{try{let n=await b$1(S,{input:{connectionId:t.connection,username:t.username,password:t.password}});k$1("Authenticated"),i(t,n.authenticateWithBasicAuth);}catch(n){h(n);}}),g.command("bearer").description("Authenticate a connection with a Bearer token").requiredOption("--connection <id>").requiredOption("--token <t>").option("-f, --format <format>").action(async t=>{try{let n=await b$1(D,{input:{connectionId:t.connection,token:t.token}});k$1("Authenticated"),i(t,n.authenticateWithBearerToken);}catch(n){h(n);}}),g.command("oauth-start").description("Initiate an OAuth flow; prints redirect URL + state").requiredOption("--connection <id>").requiredOption("--redirect-uri <uri>").option("--scopes <s>","Comma-separated scopes").option("-f, --format <format>").action(async t=>{try{let n={connectionId:t.connection,redirectUri:t.redirectUri};t.scopes&&(n.scopes=t.scopes.split(","));let e=await b$1(B,{input:n});i(t,e.initiateOAuth);}catch(n){h(n);}}),g.command("oauth-complete").description("Complete an OAuth flow with the authorization code + state").requiredOption("--connection <id>").requiredOption("--code <c>").requiredOption("--redirect-uri <uri>").requiredOption("--state <s>").option("-f, --format <format>").action(async t=>{try{let n=await b$1(q,{input:{connectionId:t.connection,code:t.code,redirectUri:t.redirectUri,state:t.state}});k$1("OAuth complete"),i(t,n.completeOAuth);}catch(n){h(n);}});let l=s.command("tags").description("Connection tag assignments");l.command("add").description("Tag a connection").requiredOption("--entity <id>").requiredOption("--tag <tagId>").option("--source <s>").option("-f, --format <format>").action(async t=>{try{let n={entityId:t.entity,tagId:t.tag};t.source&&(n.source=t.source);let e=await b$1(H,{input:n});k$1("Tagged"),i(t,e.tagConnection);}catch(n){h(n);}}),l.command("remove").description("Remove a tag from a connection").requiredOption("--entity <id>").requiredOption("--tag <tagId>").action(async t=>{try{await b$1(W,{input:{entityId:t.entity,tagId:t.tag}}),k$1("Tag removed");}catch(n){h(n);}}),l.command("replace").description("Replace all tags on a connection").requiredOption("--entity <id>").requiredOption("--tags <ids>","Comma-separated tag IDs").option("-f, --format <format>").action(async t=>{try{let n=await b$1(z,{input:{entityId:t.entity,tagIds:t.tags.split(",")}});k$1("Tags replaced"),i(t,n.replaceConnectionTags);}catch(n){h(n);}}),l.command("list").description("List tags on a connection").requiredOption("--entity <id>").option("-f, --format <format>").action(async t=>{try{let n=await b$1(M,{input:{entityId:t.entity}});i(t,n.getConnectionTags);}catch(n){h(n);}}),d.command("get-by-key").description("Get a provider by key (e.g. github, slack)").argument("<key>").option("-f, --format <format>").action(async(t,n)=>{try{let e=await b$1(x,{key:t});if(!e.getProviderByKey)throw new q$1(`Provider ${t} not found`);i(n,e.getProviderByKey);}catch(e){h(e);}}),d.command("catalog").description("Browseable provider catalog").option("--limit <n>","Page size",t=>parseInt(t,10),100).option("-f, --format <format>").action(async t=>{try{let n=await b$1(L,{pagination:{limit:t.limit,offset:0}});i(t,n.getProviderCatalog.items,{headers:["ID","Key","Name","Category","Auth","Enabled"],rows:n.getProviderCatalog.items.map(e=>[r(e.id,12),e.key,e.name,e.category??"-",e.authType??"-",String(!!e.isEnabled)])});}catch(n){h(n);}}),d.command("connections").description("Connections for a given provider").argument("<providerId>").option("--limit <n>","Page size",t=>parseInt(t,10),100).option("-f, --format <format>").action(async(t,n)=>{try{let e=await b$1(U,{providerId:t,pagination:{limit:n.limit,offset:0}});i(n,e.getConnectionsByProvider.items);}catch(e){h(e);}}),d.command("enable").description("Enable a provider").argument("<id>").action(async t=>{try{await b$1(K,{id:t}),k$1("Provider enabled");}catch(n){h(n);}}),d.command("disable").description("Disable a provider").argument("<id>").action(async t=>{try{await b$1(V,{id:t}),k$1("Provider disabled");}catch(n){h(n);}}),p$1.command("logs").description("Integration audit logs").option("--connection <id>").option("--level <l>","INFO|WARN|ERROR").option("--limit <n>","Page size",t=>parseInt(t,10),100).option("-f, --format <format>").action(async t=>{try{let n={};t.connection&&(n.connectionId=t.connection),t.level&&(n.level=t.level.toUpperCase());let e=await b$1(w,{filter:Object.keys(n).length?n:void 0,pagination:{limit:t.limit,offset:0}});i(t,e.getIntegrationLogs.items,{headers:["When","Action","Level","Message"],rows:e.getIntegrationLogs.items.map(r=>[q$2(r.createdAt),r.action,r.level,r.message])});}catch(n){h(n);}});}var F={id:"integrations",version:"1.0.0",displayName:"Integrations",dependsOn:["auth","workspaces"],register(I,p){a(p),Y(I);}},et=F;export{et as default};
128
+ `;function Y(I){let p$1=I.command("integrations").description("Integration providers, connections, and logs"),d=p$1.command("providers").description("Available providers");d.command("list").description("List integration providers").option("--category <c>").option("--enabled").option("--limit <n>","Page size",t=>parseInt(t,10),100).option("-f, --format <format>").action(async t=>{try{let n={};t.category&&(n.category=t.category.toUpperCase()),t.enabled!==void 0&&(n.isEnabled=t.enabled);let e=await b$1(E,{filter:Object.keys(n).length?n:void 0,pagination:{limit:t.limit,offset:0}});i(t,e.getProviders.items,{headers:["ID","Key","Name","Category","Auth","Enabled"],rows:e.getProviders.items.map(r$1=>[r(r$1.id,12),r$1.key,r$1.name,r$1.category??"-",r$1.authType??"-",String(!!r$1.isEnabled)])});}catch(n){h(n);}}),d.command("get").description("Get a provider").argument("<id>").option("-f, --format <format>").action(async(t,n)=>{try{let e=await b$1(O,{id:t});if(!e.getProvider)throw new j(`Provider ${t} not found`);i(n,e.getProvider);}catch(e){h(e);}});let s=p$1.command("connections").description("Provider connections (OAuth + credential)");s.command("list").description("List connections").option("--provider <id>").option("--status <s>").option("--limit <n>","Page size",t=>parseInt(t,10),100).option("-f, --format <format>").action(async t=>{try{let n={};t.provider&&(n.providerId=t.provider),t.status&&(n.status=t.status.toUpperCase());let e=await b$1(N,{filter:Object.keys(n).length?n:void 0,pagination:{limit:t.limit,offset:0}});i(t,e.getConnections.items,{headers:["ID","Name","Provider","Status"],rows:e.getConnections.items.map(r$1=>[r(r$1.id,12),r$1.name,r(r$1.providerId,12),p(r$1.status)])});}catch(n){h(n);}}),s.command("get").description("Get a connection").argument("<id>").option("-f, --format <format>").action(async(t,n)=>{try{let e=await b$1(A,{id:t});if(!e.getConnection)throw new j(`Connection ${t} not found`);i(n,e.getConnection);}catch(e){h(e);}}),s.command("add").description("Create a connection (provider id required; credentials stored in vault)").requiredOption("--name <name>").requiredOption("--provider <id>").option("--scopes <s>","Comma-separated scopes").option("-f, --format <format>").action(async t=>{try{let n={name:t.name,providerId:t.provider,grantedScopes:t.scopes?t.scopes.split(","):void 0},e=await b$1(v,{input:n});k$1("Connection created"),i(t,e.createConnection);}catch(n){h(n);}}),s.command("delete").description("Delete a connection").argument("<id>").option("--keep-secret","Keep vault secret",false).action(async(t,n)=>{try{await b$1(R,{id:t,deleteVaultSecret:!n.keepSecret}),k$1("Connection deleted");}catch(e){h(e);}}),s.command("update").description("Update a connection (name / description / config JSON)").argument("<id>").option("--name <name>").option("--description <desc>").option("--config <json>","Config JSON string").option("-f, --format <format>").action(async(t,n)=>{try{let e={};if(n.name!==void 0&&(e.name=n.name),n.description!==void 0&&(e.description=n.description),n.config!==void 0&&(e.config=JSON.parse(n.config)),Object.keys(e).length===0)throw new j("Provide at least one of --name, --description, --config");let r=await b$1(_,{id:t,input:e});k$1("Connection updated"),i(n,r.updateConnection);}catch(e){h(e);}}),s.command("revoke").description("Revoke a connection (soft delete; tokens invalidated)").argument("<connectionId>").option("-f, --format <format>").action(async(t,n)=>{try{let e=await b$1(P,{connectionId:t});k$1("Connection revoked"),i(n,e.revokeConnection);}catch(e){h(e);}}),s.command("test").description("Test a connection (health/auth probe)").argument("<connectionId>").option("-f, --format <format>").action(async(t,n)=>{try{let e=await b$1($,{connectionId:t});i(n,e.testConnection);}catch(e){h(e);}}),s.command("link").description("Link a connection to a channel for DM/notification routing").requiredOption("--channel <channelId>").requiredOption("--connection <id>").requiredOption("--organization <id>").option("-f, --format <format>").action(async t=>{try{let n=await b$1(k,{channelId:t.channel,connectionId:t.connection,organizationId:t.organization});k$1("Linked"),i(t,n.linkIntegrationToChannel);}catch(n){h(n);}}),s.command("refresh-token").description("Force a connection token refresh (OAuth refresh_grant)").argument("<connectionId>").option("-f, --format <format>").action(async(t,n)=>{try{let e=await b$1(b,{connectionId:t});k$1("Token refreshed"),i(n,e.refreshConnectionToken);}catch(e){h(e);}});let g=p$1.command("auth").description("Per-connection auth flows");g.command("api-key").description("Authenticate a connection with an API key").requiredOption("--connection <id>").requiredOption("--api-key <key>").option("-f, --format <format>").action(async t=>{try{let n=await b$1(G,{input:{connectionId:t.connection,apiKey:t.apiKey}});k$1("Authenticated"),i(t,n.authenticateWithApiKey);}catch(n){h(n);}}),g.command("basic").description("Authenticate a connection with Basic Auth").requiredOption("--connection <id>").requiredOption("--username <u>").requiredOption("--password <p>").option("-f, --format <format>").action(async t=>{try{let n=await b$1(S,{input:{connectionId:t.connection,username:t.username,password:t.password}});k$1("Authenticated"),i(t,n.authenticateWithBasicAuth);}catch(n){h(n);}}),g.command("bearer").description("Authenticate a connection with a Bearer token").requiredOption("--connection <id>").requiredOption("--token <t>").option("-f, --format <format>").action(async t=>{try{let n=await b$1(D,{input:{connectionId:t.connection,token:t.token}});k$1("Authenticated"),i(t,n.authenticateWithBearerToken);}catch(n){h(n);}}),g.command("oauth-start").description("Initiate an OAuth flow; prints redirect URL + state").requiredOption("--connection <id>").requiredOption("--redirect-uri <uri>").option("--scopes <s>","Comma-separated scopes").option("-f, --format <format>").action(async t=>{try{let n={connectionId:t.connection,redirectUri:t.redirectUri};t.scopes&&(n.scopes=t.scopes.split(","));let e=await b$1(B,{input:n});i(t,e.initiateOAuth);}catch(n){h(n);}}),g.command("oauth-complete").description("Complete an OAuth flow with the authorization code + state").requiredOption("--connection <id>").requiredOption("--code <c>").requiredOption("--redirect-uri <uri>").requiredOption("--state <s>").option("-f, --format <format>").action(async t=>{try{let n=await b$1(q,{input:{connectionId:t.connection,code:t.code,redirectUri:t.redirectUri,state:t.state}});k$1("OAuth complete"),i(t,n.completeOAuth);}catch(n){h(n);}});let l=s.command("tags").description("Connection tag assignments");l.command("add").description("Tag a connection").requiredOption("--entity <id>").requiredOption("--tag <tagId>").option("--source <s>").option("-f, --format <format>").action(async t=>{try{let n={entityId:t.entity,tagId:t.tag};t.source&&(n.source=t.source);let e=await b$1(H,{input:n});k$1("Tagged"),i(t,e.tagConnection);}catch(n){h(n);}}),l.command("remove").description("Remove a tag from a connection").requiredOption("--entity <id>").requiredOption("--tag <tagId>").action(async t=>{try{await b$1(W,{input:{entityId:t.entity,tagId:t.tag}}),k$1("Tag removed");}catch(n){h(n);}}),l.command("replace").description("Replace all tags on a connection").requiredOption("--entity <id>").requiredOption("--tags <ids>","Comma-separated tag IDs").option("-f, --format <format>").action(async t=>{try{let n=await b$1(z,{input:{entityId:t.entity,tagIds:t.tags.split(",")}});k$1("Tags replaced"),i(t,n.replaceConnectionTags);}catch(n){h(n);}}),l.command("list").description("List tags on a connection").requiredOption("--entity <id>").option("-f, --format <format>").action(async t=>{try{let n=await b$1(M,{input:{entityId:t.entity}});i(t,n.getConnectionTags);}catch(n){h(n);}}),d.command("get-by-key").description("Get a provider by key (e.g. github, slack)").argument("<key>").option("-f, --format <format>").action(async(t,n)=>{try{let e=await b$1(x,{key:t});if(!e.getProviderByKey)throw new j(`Provider ${t} not found`);i(n,e.getProviderByKey);}catch(e){h(e);}}),d.command("catalog").description("Browseable provider catalog").option("--limit <n>","Page size",t=>parseInt(t,10),100).option("-f, --format <format>").action(async t=>{try{let n=await b$1(L,{pagination:{limit:t.limit,offset:0}});i(t,n.getProviderCatalog.items,{headers:["ID","Key","Name","Category","Auth","Enabled"],rows:n.getProviderCatalog.items.map(e=>[r(e.id,12),e.key,e.name,e.category??"-",e.authType??"-",String(!!e.isEnabled)])});}catch(n){h(n);}}),d.command("connections").description("Connections for a given provider").argument("<providerId>").option("--limit <n>","Page size",t=>parseInt(t,10),100).option("-f, --format <format>").action(async(t,n)=>{try{let e=await b$1(U,{providerId:t,pagination:{limit:n.limit,offset:0}});i(n,e.getConnectionsByProvider.items);}catch(e){h(e);}}),d.command("enable").description("Enable a provider").argument("<id>").action(async t=>{try{await b$1(K,{id:t}),k$1("Provider enabled");}catch(n){h(n);}}),d.command("disable").description("Disable a provider").argument("<id>").action(async t=>{try{await b$1(V,{id:t}),k$1("Provider disabled");}catch(n){h(n);}}),p$1.command("logs").description("Integration audit logs").option("--connection <id>").option("--level <l>","INFO|WARN|ERROR").option("--limit <n>","Page size",t=>parseInt(t,10),100).option("-f, --format <format>").action(async t=>{try{let n={};t.connection&&(n.connectionId=t.connection),t.level&&(n.level=t.level.toUpperCase());let e=await b$1(w,{filter:Object.keys(n).length?n:void 0,pagination:{limit:t.limit,offset:0}});i(t,e.getIntegrationLogs.items,{headers:["When","Action","Level","Message"],rows:e.getIntegrationLogs.items.map(r=>[q$1(r.createdAt),r.action,r.level,r.message])});}catch(n){h(n);}});}var F={id:"integrations",version:"1.0.0",displayName:"Integrations",dependsOn:["auth","workspaces"],register(I,p){a(p),Y(I);}},et=F;export{et as default};