@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.
- package/dist/chunk-BGNPGKJM.js +1 -0
- package/dist/{chunk-ASSY2L5R.js → chunk-E6F56R4K.js} +3 -3
- package/dist/chunk-N7EXKGE2.js +34 -0
- package/dist/core/index.cjs +9 -9
- package/dist/core/index.d.cts +2 -2
- package/dist/core/index.d.ts +2 -2
- package/dist/core/index.js +1 -1
- package/dist/index.cjs +9 -9
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/{module-BNVKV_pI.d.ts → module-DWSAfs3k.d.cts} +20 -19
- package/dist/{module-BNVKV_pI.d.cts → module-DWSAfs3k.d.ts} +20 -19
- package/dist/modules/adaptercloud/index.cjs +38 -38
- package/dist/modules/adaptercloud/index.d.cts +1 -1
- package/dist/modules/adaptercloud/index.d.ts +1 -1
- package/dist/modules/adaptercloud/index.js +2 -2
- package/dist/modules/artistrybase/index.cjs +50 -50
- package/dist/modules/artistrybase/index.d.cts +1 -1
- package/dist/modules/artistrybase/index.d.ts +1 -1
- package/dist/modules/artistrybase/index.js +2 -2
- package/dist/modules/assethandler/index.cjs +32 -32
- package/dist/modules/assethandler/index.d.cts +1 -1
- package/dist/modules/assethandler/index.d.ts +1 -1
- package/dist/modules/assethandler/index.js +2 -2
- package/dist/modules/atheletebridge/index.cjs +34 -34
- package/dist/modules/atheletebridge/index.d.cts +1 -1
- package/dist/modules/atheletebridge/index.d.ts +1 -1
- package/dist/modules/atheletebridge/index.js +2 -2
- package/dist/modules/auth/index.cjs +34 -34
- package/dist/modules/auth/index.d.cts +1 -1
- package/dist/modules/auth/index.d.ts +1 -1
- package/dist/modules/auth/index.js +4 -4
- package/dist/modules/billing/index.cjs +18 -18
- package/dist/modules/billing/index.d.cts +1 -1
- package/dist/modules/billing/index.d.ts +1 -1
- package/dist/modules/billing/index.js +2 -2
- package/dist/modules/brainyrich/index.cjs +45 -45
- package/dist/modules/brainyrich/index.d.cts +1 -1
- package/dist/modules/brainyrich/index.d.ts +1 -1
- package/dist/modules/brainyrich/index.js +2 -2
- package/dist/modules/buildmyiq/index.cjs +32 -32
- package/dist/modules/buildmyiq/index.d.cts +1 -1
- package/dist/modules/buildmyiq/index.d.ts +1 -1
- package/dist/modules/buildmyiq/index.js +2 -2
- package/dist/modules/channels/index.cjs +12 -12
- package/dist/modules/channels/index.d.cts +1 -1
- package/dist/modules/channels/index.d.ts +1 -1
- package/dist/modules/channels/index.js +2 -2
- package/dist/modules/collabkin/index.cjs +34 -34
- package/dist/modules/collabkin/index.d.cts +1 -1
- package/dist/modules/collabkin/index.d.ts +1 -1
- package/dist/modules/collabkin/index.js +2 -2
- package/dist/modules/comradecircle/index.cjs +41 -41
- package/dist/modules/comradecircle/index.d.cts +1 -1
- package/dist/modules/comradecircle/index.d.ts +1 -1
- package/dist/modules/comradecircle/index.js +2 -2
- package/dist/modules/conversations/index.cjs +32 -32
- package/dist/modules/conversations/index.d.cts +1 -1
- package/dist/modules/conversations/index.d.ts +1 -1
- package/dist/modules/conversations/index.js +2 -2
- package/dist/modules/coolandlovely/index.cjs +41 -41
- package/dist/modules/coolandlovely/index.d.cts +1 -1
- package/dist/modules/coolandlovely/index.d.ts +1 -1
- package/dist/modules/coolandlovely/index.js +2 -2
- package/dist/modules/cosmicintersection/index.cjs +43 -43
- package/dist/modules/cosmicintersection/index.d.cts +1 -1
- package/dist/modules/cosmicintersection/index.d.ts +1 -1
- package/dist/modules/cosmicintersection/index.js +2 -2
- package/dist/modules/crewfoundry/index.cjs +70 -70
- package/dist/modules/crewfoundry/index.d.cts +1 -1
- package/dist/modules/crewfoundry/index.d.ts +1 -1
- package/dist/modules/crewfoundry/index.js +2 -2
- package/dist/modules/devportal/index.cjs +23 -23
- package/dist/modules/devportal/index.d.cts +1 -1
- package/dist/modules/devportal/index.d.ts +1 -1
- package/dist/modules/devportal/index.js +2 -2
- package/dist/modules/ecoimpacthub/index.cjs +41 -41
- package/dist/modules/ecoimpacthub/index.d.cts +1 -1
- package/dist/modules/ecoimpacthub/index.d.ts +1 -1
- package/dist/modules/ecoimpacthub/index.js +2 -2
- package/dist/modules/eventfullymanaged/index.cjs +92 -92
- package/dist/modules/eventfullymanaged/index.d.cts +1 -1
- package/dist/modules/eventfullymanaged/index.d.ts +1 -1
- package/dist/modules/eventfullymanaged/index.js +2 -2
- package/dist/modules/export/index.cjs +14 -14
- package/dist/modules/export/index.d.cts +1 -1
- package/dist/modules/export/index.d.ts +1 -1
- package/dist/modules/export/index.js +2 -2
- package/dist/modules/files/index.cjs +11 -11
- package/dist/modules/files/index.d.cts +1 -1
- package/dist/modules/files/index.d.ts +1 -1
- package/dist/modules/files/index.js +2 -2
- package/dist/modules/fluidgrids/index.cjs +29 -29
- package/dist/modules/fluidgrids/index.d.cts +1 -1
- package/dist/modules/fluidgrids/index.d.ts +1 -1
- package/dist/modules/fluidgrids/index.js +3 -3
- package/dist/modules/ggnomad/index.cjs +21 -21
- package/dist/modules/ggnomad/index.d.cts +1 -1
- package/dist/modules/ggnomad/index.d.ts +1 -1
- package/dist/modules/ggnomad/index.js +2 -2
- package/dist/modules/govcitizenhub/index.cjs +35 -35
- package/dist/modules/govcitizenhub/index.d.cts +1 -1
- package/dist/modules/govcitizenhub/index.d.ts +1 -1
- package/dist/modules/govcitizenhub/index.js +2 -2
- package/dist/modules/groups/index.cjs +12 -12
- package/dist/modules/groups/index.d.cts +1 -1
- package/dist/modules/groups/index.d.ts +1 -1
- package/dist/modules/groups/index.js +2 -2
- package/dist/modules/headshotmarketing/index.cjs +165 -165
- package/dist/modules/headshotmarketing/index.d.cts +1 -1
- package/dist/modules/headshotmarketing/index.d.ts +1 -1
- package/dist/modules/headshotmarketing/index.js +2 -2
- package/dist/modules/health/index.d.cts +1 -1
- package/dist/modules/health/index.d.ts +1 -1
- package/dist/modules/hookmovies/index.cjs +43 -43
- package/dist/modules/hookmovies/index.d.cts +1 -1
- package/dist/modules/hookmovies/index.d.ts +1 -1
- package/dist/modules/hookmovies/index.js +2 -2
- package/dist/modules/housingvista/index.cjs +24 -24
- package/dist/modules/housingvista/index.d.cts +1 -1
- package/dist/modules/housingvista/index.d.ts +1 -1
- package/dist/modules/housingvista/index.js +2 -2
- package/dist/modules/integrations/index.cjs +27 -27
- package/dist/modules/integrations/index.d.cts +1 -1
- package/dist/modules/integrations/index.d.ts +1 -1
- package/dist/modules/integrations/index.js +2 -2
- package/dist/modules/intelwatchtower/index.cjs +37 -37
- package/dist/modules/intelwatchtower/index.d.cts +1 -1
- package/dist/modules/intelwatchtower/index.d.ts +1 -1
- package/dist/modules/intelwatchtower/index.js +2 -2
- package/dist/modules/kadaikodi/index.cjs +26 -26
- package/dist/modules/kadaikodi/index.d.cts +1 -1
- package/dist/modules/kadaikodi/index.d.ts +1 -1
- package/dist/modules/kadaikodi/index.js +2 -2
- package/dist/modules/labsofscience/index.cjs +44 -44
- package/dist/modules/labsofscience/index.d.cts +1 -1
- package/dist/modules/labsofscience/index.d.ts +1 -1
- package/dist/modules/labsofscience/index.js +2 -2
- package/dist/modules/manufacturedops/index.cjs +36 -36
- package/dist/modules/manufacturedops/index.d.cts +1 -1
- package/dist/modules/manufacturedops/index.d.ts +1 -1
- package/dist/modules/manufacturedops/index.js +2 -2
- package/dist/modules/movethewheels/index.cjs +78 -78
- package/dist/modules/movethewheels/index.d.cts +1 -1
- package/dist/modules/movethewheels/index.d.ts +1 -1
- package/dist/modules/movethewheels/index.js +2 -2
- package/dist/modules/mybodyshield/index.cjs +36 -36
- package/dist/modules/mybodyshield/index.d.cts +1 -1
- package/dist/modules/mybodyshield/index.d.ts +1 -1
- package/dist/modules/mybodyshield/index.js +2 -2
- package/dist/modules/notifications/index.cjs +5 -5
- package/dist/modules/notifications/index.d.cts +1 -1
- package/dist/modules/notifications/index.d.ts +1 -1
- package/dist/modules/notifications/index.js +1 -1
- package/dist/modules/organizations/index.cjs +5 -5
- package/dist/modules/organizations/index.d.cts +1 -1
- package/dist/modules/organizations/index.d.ts +1 -1
- package/dist/modules/organizations/index.js +1 -1
- package/dist/modules/planmagnet/index.cjs +272 -272
- package/dist/modules/planmagnet/index.d.cts +1 -1
- package/dist/modules/planmagnet/index.d.ts +1 -1
- package/dist/modules/planmagnet/index.js +2 -2
- package/dist/modules/products/index.cjs +19 -19
- package/dist/modules/products/index.d.cts +1 -1
- package/dist/modules/products/index.d.ts +1 -1
- package/dist/modules/products/index.js +2 -2
- package/dist/modules/proserviceworld/index.cjs +24 -24
- package/dist/modules/proserviceworld/index.d.cts +1 -1
- package/dist/modules/proserviceworld/index.d.ts +1 -1
- package/dist/modules/proserviceworld/index.js +2 -2
- package/dist/modules/rbac/index.cjs +8 -8
- package/dist/modules/rbac/index.d.cts +1 -1
- package/dist/modules/rbac/index.d.ts +1 -1
- package/dist/modules/rbac/index.js +2 -2
- package/dist/modules/sandbox/index.cjs +39 -39
- package/dist/modules/sandbox/index.d.cts +1 -1
- package/dist/modules/sandbox/index.d.ts +1 -1
- package/dist/modules/sandbox/index.js +1 -1
- package/dist/modules/scheduler/index.cjs +25 -25
- package/dist/modules/scheduler/index.d.cts +1 -1
- package/dist/modules/scheduler/index.d.ts +1 -1
- package/dist/modules/scheduler/index.js +2 -2
- package/dist/modules/security/index.cjs +14 -14
- package/dist/modules/security/index.d.cts +1 -1
- package/dist/modules/security/index.d.ts +1 -1
- package/dist/modules/security/index.js +2 -2
- package/dist/modules/semanticfed/index.cjs +44 -44
- package/dist/modules/semanticfed/index.d.cts +1 -1
- package/dist/modules/semanticfed/index.d.ts +1 -1
- package/dist/modules/semanticfed/index.js +1 -1
- package/dist/modules/semanticfed-sql/index.cjs +4 -4
- package/dist/modules/semanticfed-sql/index.d.cts +1 -1
- package/dist/modules/semanticfed-sql/index.d.ts +1 -1
- package/dist/modules/semanticfed-sql/index.js +1 -1
- package/dist/modules/store/index.cjs +21 -21
- package/dist/modules/store/index.d.cts +1 -1
- package/dist/modules/store/index.d.ts +1 -1
- package/dist/modules/store/index.js +2 -2
- package/dist/modules/subscriberbot/index.cjs +41 -41
- package/dist/modules/subscriberbot/index.d.cts +1 -1
- package/dist/modules/subscriberbot/index.d.ts +1 -1
- package/dist/modules/subscriberbot/index.js +2 -2
- package/dist/modules/support/index.cjs +8 -8
- package/dist/modules/support/index.d.cts +1 -1
- package/dist/modules/support/index.d.ts +1 -1
- package/dist/modules/support/index.js +2 -2
- package/dist/modules/tags/index.cjs +10 -10
- package/dist/modules/tags/index.d.cts +1 -1
- package/dist/modules/tags/index.d.ts +1 -1
- package/dist/modules/tags/index.js +2 -2
- package/dist/modules/technospam/index.cjs +44 -44
- package/dist/modules/technospam/index.d.cts +1 -1
- package/dist/modules/technospam/index.d.ts +1 -1
- package/dist/modules/technospam/index.js +2 -2
- package/dist/modules/theculturepost/index.cjs +32 -32
- package/dist/modules/theculturepost/index.d.cts +1 -1
- package/dist/modules/theculturepost/index.d.ts +1 -1
- package/dist/modules/theculturepost/index.js +2 -2
- package/dist/modules/theglobalfuel/index.cjs +30 -30
- package/dist/modules/theglobalfuel/index.d.cts +1 -1
- package/dist/modules/theglobalfuel/index.d.ts +1 -1
- package/dist/modules/theglobalfuel/index.js +2 -2
- package/dist/modules/timecampus/index.cjs +69 -69
- package/dist/modules/timecampus/index.d.cts +1 -1
- package/dist/modules/timecampus/index.d.ts +1 -1
- package/dist/modules/timecampus/index.js +4 -4
- package/dist/modules/tours/index.cjs +4 -4
- package/dist/modules/tours/index.d.cts +1 -1
- package/dist/modules/tours/index.d.ts +1 -1
- package/dist/modules/tours/index.js +2 -2
- package/dist/modules/vibecontrols/index.cjs +460 -460
- package/dist/modules/vibecontrols/index.d.cts +1 -1
- package/dist/modules/vibecontrols/index.d.ts +1 -1
- package/dist/modules/vibecontrols/index.js +5 -5
- package/dist/modules/workspaces/index.cjs +16 -16
- package/dist/modules/workspaces/index.d.cts +1 -1
- package/dist/modules/workspaces/index.d.ts +1 -1
- package/dist/modules/workspaces/index.js +2 -2
- package/package.json +6 -1
- package/dist/chunk-3ZVMC2AF.js +0 -1
- package/dist/chunk-ZT6KOG7N.js +0 -34
|
@@ -1,128 +1,128 @@
|
|
|
1
|
-
'use strict';require('graphql-request'),require('cross-fetch'),require('commander');var
|
|
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
|
-
`,
|
|
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
|
-
`,
|
|
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
|
-
`,
|
|
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
|
-
|
|
27
|
+
`,$=`
|
|
28
28
|
mutation CreateConnection($input: CreateConnectionInput!) {
|
|
29
29
|
createConnection(input: $input) {
|
|
30
30
|
id name status providerId
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
-
`,
|
|
33
|
+
`,q=`
|
|
34
34
|
mutation DeleteConnection($id: ID!, $deleteVaultSecret: Boolean) {
|
|
35
35
|
deleteConnection(id: $id, deleteVaultSecret: $deleteVaultSecret)
|
|
36
36
|
}
|
|
37
|
-
`,
|
|
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
|
-
`,
|
|
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
|
-
`,
|
|
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
|
-
`,
|
|
62
|
+
`,W=`
|
|
63
63
|
mutation RefreshConnectionToken($connectionId: ID!) {
|
|
64
64
|
refreshConnectionToken(connectionId: $connectionId) { id status }
|
|
65
65
|
}
|
|
66
|
-
`,
|
|
66
|
+
`,B=`
|
|
67
67
|
mutation AuthenticateWithApiKey($input: ApiKeyAuthInput!) {
|
|
68
68
|
authenticateWithApiKey(input: $input) { id name status }
|
|
69
69
|
}
|
|
70
|
-
`,
|
|
70
|
+
`,F=`
|
|
71
71
|
mutation AuthenticateWithBasicAuth($input: BasicAuthInput!) {
|
|
72
72
|
authenticateWithBasicAuth(input: $input) { id name status }
|
|
73
73
|
}
|
|
74
|
-
`,
|
|
74
|
+
`,j=`
|
|
75
75
|
mutation AuthenticateWithBearerToken($input: BearerTokenAuthInput!) {
|
|
76
76
|
authenticateWithBearerToken(input: $input) { id name status }
|
|
77
77
|
}
|
|
78
|
-
`,
|
|
78
|
+
`,M=`
|
|
79
79
|
mutation InitiateOAuth($input: InitiateOAuthInput!) {
|
|
80
80
|
initiateOAuth(input: $input) { redirectUrl state }
|
|
81
81
|
}
|
|
82
|
-
`,
|
|
82
|
+
`,V=`
|
|
83
83
|
mutation CompleteOAuth($input: CompleteOAuthInput!) {
|
|
84
84
|
completeOAuth(input: $input) { id name status }
|
|
85
85
|
}
|
|
86
|
-
`,
|
|
86
|
+
`,K=`
|
|
87
87
|
query GetProviderByKey($key: String!) {
|
|
88
88
|
getProviderByKey(key: $key) { id key name authType category connectionCount isEnabled }
|
|
89
89
|
}
|
|
90
|
-
`,
|
|
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
|
-
`,
|
|
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
|
-
`,
|
|
104
|
+
`,Y=`
|
|
105
105
|
mutation EnableProvider($id: ID!) {
|
|
106
106
|
enableProvider(id: $id) { id key name isEnabled }
|
|
107
107
|
}
|
|
108
|
-
`,
|
|
108
|
+
`,J=`
|
|
109
109
|
mutation DisableProvider($id: ID!) {
|
|
110
110
|
disableProvider(id: $id) { id key name isEnabled }
|
|
111
111
|
}
|
|
112
|
-
`,
|
|
112
|
+
`,Q=`
|
|
113
113
|
mutation TagConnection($input: TagConnectionInput!) {
|
|
114
114
|
tagConnection(input: $input) { id entityId tagId source }
|
|
115
115
|
}
|
|
116
|
-
`,
|
|
116
|
+
`,X=`
|
|
117
117
|
mutation UntagConnection($input: UntagConnectionInput!) {
|
|
118
118
|
untagConnection(input: $input)
|
|
119
119
|
}
|
|
120
|
-
`,
|
|
120
|
+
`,Z=`
|
|
121
121
|
mutation ReplaceConnectionTags($input: ReplaceConnectionTagsInput!) {
|
|
122
122
|
replaceConnectionTags(input: $input) { id entityId tagId source }
|
|
123
123
|
}
|
|
124
|
-
`,
|
|
124
|
+
`,ee=`
|
|
125
125
|
query GetConnectionTags($input: GetConnectionTagsInput!) {
|
|
126
126
|
getConnectionTags(input: $input) { id entityId tagId source assignedAt }
|
|
127
127
|
}
|
|
128
|
-
`;function
|
|
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 {a,b as b$1,i,r,h,p,k as k$1,q as q$
|
|
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
|
|
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};
|