@burdenoff/cli-sdk 2026.1124.1 → 2026.1202.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-BGNPGKJM.js +1 -0
- package/dist/{chunk-ASSY2L5R.js → chunk-E6F56R4K.js} +3 -3
- package/dist/chunk-N7EXKGE2.js +34 -0
- package/dist/core/index.cjs +9 -9
- package/dist/core/index.d.cts +2 -2
- package/dist/core/index.d.ts +2 -2
- package/dist/core/index.js +1 -1
- package/dist/index.cjs +9 -9
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/{module-BNVKV_pI.d.ts → module-DWSAfs3k.d.cts} +20 -19
- package/dist/{module-BNVKV_pI.d.cts → module-DWSAfs3k.d.ts} +20 -19
- package/dist/modules/adaptercloud/index.cjs +38 -38
- package/dist/modules/adaptercloud/index.d.cts +1 -1
- package/dist/modules/adaptercloud/index.d.ts +1 -1
- package/dist/modules/adaptercloud/index.js +2 -2
- package/dist/modules/artistrybase/index.cjs +50 -50
- package/dist/modules/artistrybase/index.d.cts +1 -1
- package/dist/modules/artistrybase/index.d.ts +1 -1
- package/dist/modules/artistrybase/index.js +2 -2
- package/dist/modules/assethandler/index.cjs +32 -32
- package/dist/modules/assethandler/index.d.cts +1 -1
- package/dist/modules/assethandler/index.d.ts +1 -1
- package/dist/modules/assethandler/index.js +2 -2
- package/dist/modules/atheletebridge/index.cjs +34 -34
- package/dist/modules/atheletebridge/index.d.cts +1 -1
- package/dist/modules/atheletebridge/index.d.ts +1 -1
- package/dist/modules/atheletebridge/index.js +2 -2
- package/dist/modules/auth/index.cjs +34 -34
- package/dist/modules/auth/index.d.cts +1 -1
- package/dist/modules/auth/index.d.ts +1 -1
- package/dist/modules/auth/index.js +4 -4
- package/dist/modules/billing/index.cjs +18 -18
- package/dist/modules/billing/index.d.cts +1 -1
- package/dist/modules/billing/index.d.ts +1 -1
- package/dist/modules/billing/index.js +2 -2
- package/dist/modules/brainyrich/index.cjs +45 -45
- package/dist/modules/brainyrich/index.d.cts +1 -1
- package/dist/modules/brainyrich/index.d.ts +1 -1
- package/dist/modules/brainyrich/index.js +2 -2
- package/dist/modules/buildmyiq/index.cjs +32 -32
- package/dist/modules/buildmyiq/index.d.cts +1 -1
- package/dist/modules/buildmyiq/index.d.ts +1 -1
- package/dist/modules/buildmyiq/index.js +2 -2
- package/dist/modules/channels/index.cjs +12 -12
- package/dist/modules/channels/index.d.cts +1 -1
- package/dist/modules/channels/index.d.ts +1 -1
- package/dist/modules/channels/index.js +2 -2
- package/dist/modules/collabkin/index.cjs +34 -34
- package/dist/modules/collabkin/index.d.cts +1 -1
- package/dist/modules/collabkin/index.d.ts +1 -1
- package/dist/modules/collabkin/index.js +2 -2
- package/dist/modules/comradecircle/index.cjs +41 -41
- package/dist/modules/comradecircle/index.d.cts +1 -1
- package/dist/modules/comradecircle/index.d.ts +1 -1
- package/dist/modules/comradecircle/index.js +2 -2
- package/dist/modules/conversations/index.cjs +32 -32
- package/dist/modules/conversations/index.d.cts +1 -1
- package/dist/modules/conversations/index.d.ts +1 -1
- package/dist/modules/conversations/index.js +2 -2
- package/dist/modules/coolandlovely/index.cjs +41 -41
- package/dist/modules/coolandlovely/index.d.cts +1 -1
- package/dist/modules/coolandlovely/index.d.ts +1 -1
- package/dist/modules/coolandlovely/index.js +2 -2
- package/dist/modules/cosmicintersection/index.cjs +43 -43
- package/dist/modules/cosmicintersection/index.d.cts +1 -1
- package/dist/modules/cosmicintersection/index.d.ts +1 -1
- package/dist/modules/cosmicintersection/index.js +2 -2
- package/dist/modules/crewfoundry/index.cjs +70 -70
- package/dist/modules/crewfoundry/index.d.cts +1 -1
- package/dist/modules/crewfoundry/index.d.ts +1 -1
- package/dist/modules/crewfoundry/index.js +2 -2
- package/dist/modules/devportal/index.cjs +23 -23
- package/dist/modules/devportal/index.d.cts +1 -1
- package/dist/modules/devportal/index.d.ts +1 -1
- package/dist/modules/devportal/index.js +2 -2
- package/dist/modules/ecoimpacthub/index.cjs +41 -41
- package/dist/modules/ecoimpacthub/index.d.cts +1 -1
- package/dist/modules/ecoimpacthub/index.d.ts +1 -1
- package/dist/modules/ecoimpacthub/index.js +2 -2
- package/dist/modules/eventfullymanaged/index.cjs +92 -92
- package/dist/modules/eventfullymanaged/index.d.cts +1 -1
- package/dist/modules/eventfullymanaged/index.d.ts +1 -1
- package/dist/modules/eventfullymanaged/index.js +2 -2
- package/dist/modules/export/index.cjs +14 -14
- package/dist/modules/export/index.d.cts +1 -1
- package/dist/modules/export/index.d.ts +1 -1
- package/dist/modules/export/index.js +2 -2
- package/dist/modules/files/index.cjs +11 -11
- package/dist/modules/files/index.d.cts +1 -1
- package/dist/modules/files/index.d.ts +1 -1
- package/dist/modules/files/index.js +2 -2
- package/dist/modules/fluidgrids/index.cjs +29 -29
- package/dist/modules/fluidgrids/index.d.cts +1 -1
- package/dist/modules/fluidgrids/index.d.ts +1 -1
- package/dist/modules/fluidgrids/index.js +3 -3
- package/dist/modules/ggnomad/index.cjs +21 -21
- package/dist/modules/ggnomad/index.d.cts +1 -1
- package/dist/modules/ggnomad/index.d.ts +1 -1
- package/dist/modules/ggnomad/index.js +2 -2
- package/dist/modules/govcitizenhub/index.cjs +35 -35
- package/dist/modules/govcitizenhub/index.d.cts +1 -1
- package/dist/modules/govcitizenhub/index.d.ts +1 -1
- package/dist/modules/govcitizenhub/index.js +2 -2
- package/dist/modules/groups/index.cjs +12 -12
- package/dist/modules/groups/index.d.cts +1 -1
- package/dist/modules/groups/index.d.ts +1 -1
- package/dist/modules/groups/index.js +2 -2
- package/dist/modules/headshotmarketing/index.cjs +165 -165
- package/dist/modules/headshotmarketing/index.d.cts +1 -1
- package/dist/modules/headshotmarketing/index.d.ts +1 -1
- package/dist/modules/headshotmarketing/index.js +2 -2
- package/dist/modules/health/index.d.cts +1 -1
- package/dist/modules/health/index.d.ts +1 -1
- package/dist/modules/hookmovies/index.cjs +43 -43
- package/dist/modules/hookmovies/index.d.cts +1 -1
- package/dist/modules/hookmovies/index.d.ts +1 -1
- package/dist/modules/hookmovies/index.js +2 -2
- package/dist/modules/housingvista/index.cjs +24 -24
- package/dist/modules/housingvista/index.d.cts +1 -1
- package/dist/modules/housingvista/index.d.ts +1 -1
- package/dist/modules/housingvista/index.js +2 -2
- package/dist/modules/integrations/index.cjs +27 -27
- package/dist/modules/integrations/index.d.cts +1 -1
- package/dist/modules/integrations/index.d.ts +1 -1
- package/dist/modules/integrations/index.js +2 -2
- package/dist/modules/intelwatchtower/index.cjs +37 -37
- package/dist/modules/intelwatchtower/index.d.cts +1 -1
- package/dist/modules/intelwatchtower/index.d.ts +1 -1
- package/dist/modules/intelwatchtower/index.js +2 -2
- package/dist/modules/kadaikodi/index.cjs +26 -26
- package/dist/modules/kadaikodi/index.d.cts +1 -1
- package/dist/modules/kadaikodi/index.d.ts +1 -1
- package/dist/modules/kadaikodi/index.js +2 -2
- package/dist/modules/labsofscience/index.cjs +44 -44
- package/dist/modules/labsofscience/index.d.cts +1 -1
- package/dist/modules/labsofscience/index.d.ts +1 -1
- package/dist/modules/labsofscience/index.js +2 -2
- package/dist/modules/manufacturedops/index.cjs +36 -36
- package/dist/modules/manufacturedops/index.d.cts +1 -1
- package/dist/modules/manufacturedops/index.d.ts +1 -1
- package/dist/modules/manufacturedops/index.js +2 -2
- package/dist/modules/movethewheels/index.cjs +78 -78
- package/dist/modules/movethewheels/index.d.cts +1 -1
- package/dist/modules/movethewheels/index.d.ts +1 -1
- package/dist/modules/movethewheels/index.js +2 -2
- package/dist/modules/mybodyshield/index.cjs +36 -36
- package/dist/modules/mybodyshield/index.d.cts +1 -1
- package/dist/modules/mybodyshield/index.d.ts +1 -1
- package/dist/modules/mybodyshield/index.js +2 -2
- package/dist/modules/notifications/index.cjs +5 -5
- package/dist/modules/notifications/index.d.cts +1 -1
- package/dist/modules/notifications/index.d.ts +1 -1
- package/dist/modules/notifications/index.js +1 -1
- package/dist/modules/organizations/index.cjs +5 -5
- package/dist/modules/organizations/index.d.cts +1 -1
- package/dist/modules/organizations/index.d.ts +1 -1
- package/dist/modules/organizations/index.js +1 -1
- package/dist/modules/planmagnet/index.cjs +272 -272
- package/dist/modules/planmagnet/index.d.cts +1 -1
- package/dist/modules/planmagnet/index.d.ts +1 -1
- package/dist/modules/planmagnet/index.js +2 -2
- package/dist/modules/products/index.cjs +19 -19
- package/dist/modules/products/index.d.cts +1 -1
- package/dist/modules/products/index.d.ts +1 -1
- package/dist/modules/products/index.js +2 -2
- package/dist/modules/proserviceworld/index.cjs +24 -24
- package/dist/modules/proserviceworld/index.d.cts +1 -1
- package/dist/modules/proserviceworld/index.d.ts +1 -1
- package/dist/modules/proserviceworld/index.js +2 -2
- package/dist/modules/rbac/index.cjs +8 -8
- package/dist/modules/rbac/index.d.cts +1 -1
- package/dist/modules/rbac/index.d.ts +1 -1
- package/dist/modules/rbac/index.js +2 -2
- package/dist/modules/sandbox/index.cjs +39 -39
- package/dist/modules/sandbox/index.d.cts +1 -1
- package/dist/modules/sandbox/index.d.ts +1 -1
- package/dist/modules/sandbox/index.js +1 -1
- package/dist/modules/scheduler/index.cjs +25 -25
- package/dist/modules/scheduler/index.d.cts +1 -1
- package/dist/modules/scheduler/index.d.ts +1 -1
- package/dist/modules/scheduler/index.js +2 -2
- package/dist/modules/security/index.cjs +14 -14
- package/dist/modules/security/index.d.cts +1 -1
- package/dist/modules/security/index.d.ts +1 -1
- package/dist/modules/security/index.js +2 -2
- package/dist/modules/semanticfed/index.cjs +44 -44
- package/dist/modules/semanticfed/index.d.cts +1 -1
- package/dist/modules/semanticfed/index.d.ts +1 -1
- package/dist/modules/semanticfed/index.js +1 -1
- package/dist/modules/semanticfed-sql/index.cjs +4 -4
- package/dist/modules/semanticfed-sql/index.d.cts +1 -1
- package/dist/modules/semanticfed-sql/index.d.ts +1 -1
- package/dist/modules/semanticfed-sql/index.js +1 -1
- package/dist/modules/store/index.cjs +21 -21
- package/dist/modules/store/index.d.cts +1 -1
- package/dist/modules/store/index.d.ts +1 -1
- package/dist/modules/store/index.js +2 -2
- package/dist/modules/subscriberbot/index.cjs +41 -41
- package/dist/modules/subscriberbot/index.d.cts +1 -1
- package/dist/modules/subscriberbot/index.d.ts +1 -1
- package/dist/modules/subscriberbot/index.js +2 -2
- package/dist/modules/support/index.cjs +8 -8
- package/dist/modules/support/index.d.cts +1 -1
- package/dist/modules/support/index.d.ts +1 -1
- package/dist/modules/support/index.js +2 -2
- package/dist/modules/tags/index.cjs +10 -10
- package/dist/modules/tags/index.d.cts +1 -1
- package/dist/modules/tags/index.d.ts +1 -1
- package/dist/modules/tags/index.js +2 -2
- package/dist/modules/technospam/index.cjs +44 -44
- package/dist/modules/technospam/index.d.cts +1 -1
- package/dist/modules/technospam/index.d.ts +1 -1
- package/dist/modules/technospam/index.js +2 -2
- package/dist/modules/theculturepost/index.cjs +32 -32
- package/dist/modules/theculturepost/index.d.cts +1 -1
- package/dist/modules/theculturepost/index.d.ts +1 -1
- package/dist/modules/theculturepost/index.js +2 -2
- package/dist/modules/theglobalfuel/index.cjs +30 -30
- package/dist/modules/theglobalfuel/index.d.cts +1 -1
- package/dist/modules/theglobalfuel/index.d.ts +1 -1
- package/dist/modules/theglobalfuel/index.js +2 -2
- package/dist/modules/timecampus/index.cjs +69 -69
- package/dist/modules/timecampus/index.d.cts +1 -1
- package/dist/modules/timecampus/index.d.ts +1 -1
- package/dist/modules/timecampus/index.js +4 -4
- package/dist/modules/tours/index.cjs +4 -4
- package/dist/modules/tours/index.d.cts +1 -1
- package/dist/modules/tours/index.d.ts +1 -1
- package/dist/modules/tours/index.js +2 -2
- package/dist/modules/vibecontrols/index.cjs +460 -460
- package/dist/modules/vibecontrols/index.d.cts +1 -1
- package/dist/modules/vibecontrols/index.d.ts +1 -1
- package/dist/modules/vibecontrols/index.js +5 -5
- package/dist/modules/workspaces/index.cjs +16 -16
- package/dist/modules/workspaces/index.d.cts +1 -1
- package/dist/modules/workspaces/index.d.ts +1 -1
- package/dist/modules/workspaces/index.js +2 -2
- package/package.json +6 -1
- package/dist/chunk-3ZVMC2AF.js +0 -1
- package/dist/chunk-ZT6KOG7N.js +0 -34
|
@@ -1,155 +1,155 @@
|
|
|
1
|
-
'use strict';require('graphql-request'),require('cross-fetch'),require('commander');var
|
|
1
|
+
'use strict';require('graphql-request'),require('cross-fetch'),require('commander');var u=class extends Error{exitCode;hint;constructor(o,t){super(o),this.name="CliUserError",this.exitCode=t?.exitCode??1,this.hint=t?.hint;}},f=class extends u{constructor(o,t){super(o,{exitCode:2,hint:t?.hint??"Run `<product> auth login` to authenticate."}),this.name="CliAuthError";}},g=class extends Error{cause;constructor(o,t){super(o),this.name="CliInternalError",this.cause=t;}};function E(r){if(r instanceof f||r instanceof u)return r;let o=C(r)&&C(r.response)?r.response:void 0,t=o?.errors,e=Array.isArray(t)?t[0]:void 0,i=(C(e)&&C(e.extensions)?e.extensions:void 0)?.code,d=o?.status;return i==="UNAUTHENTICATED"||d===401?new f("Authentication required."):i==="FORBIDDEN"||d===403?new u("Permission denied."):i==="BAD_USER_INPUT"||i==="GRAPHQL_VALIDATION_FAILED"||d===400?new u("Invalid request. Check the command arguments."):i==="NOT_FOUND"||d===404?new u("Requested resource was not found."):i==="RATE_LIMITED"||i==="TOO_MANY_REQUESTS"||d===429?new u("Request limit reached. Try again later."):new g("The request could not be completed. Try again later.")}var I=class extends Error{response;constructor(o,t){super(o),this.name="GqlRequestError",this.response=t;}};function C(r){return typeof r=="object"&&r!==null&&!Array.isArray(r)}var y=null;function T(r){y=r;}function m(){if(!y)throw new g("vibecontrols module helpers used before setHelpersContext was called");return y}function ve(){let r=m();if(!r.auth.isAuthenticated())throw new f("Authentication required.",{hint:`Run \`${r.productName} auth login\` to authenticate.`})}async function s(r,o){return ve(),m().gql.workspace.request(r,o)}function a(r){throw r instanceof f||r instanceof u||r instanceof g?r:r instanceof I||r!==null&&typeof r=="object"&&"response"in r?E(r):new g("The command could not be completed. Try again later.")}function p(r,o,t){m().output.formatAndOutput(r,o,t);}function c(r){m().output.printSuccess(r);}function x(r){return m().output.formatDate(r)}function v(r,o){return m().output.truncate(r,o)}function R(){return m()}var b=`
|
|
2
2
|
query ListConversations($filter: ConversationFilter, $first: Int, $after: String) {
|
|
3
3
|
conversations(filter: $filter, first: $first, after: $after) {
|
|
4
4
|
edges { node { id title type description createdAt updatedAt unreadCount } }
|
|
5
5
|
pageInfo { hasNextPage endCursor }
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
|
-
`,
|
|
8
|
+
`,O=`
|
|
9
9
|
query GetConversation($id: ID!) {
|
|
10
10
|
conversation(id: $id) {
|
|
11
11
|
id title type description avatar settings
|
|
12
12
|
createdAt updatedAt
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
`,
|
|
15
|
+
`,S=`
|
|
16
16
|
mutation CreateConversation($input: CreateConversationInput!) {
|
|
17
17
|
createConversation(input: $input) {
|
|
18
18
|
conversation { id title type }
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
-
`,
|
|
21
|
+
`,N=`
|
|
22
22
|
mutation DeleteConversation($id: ID!) {
|
|
23
23
|
deleteConversation(id: $id) { success }
|
|
24
24
|
}
|
|
25
|
-
`,
|
|
25
|
+
`,D=`
|
|
26
26
|
mutation UpdateConversation($input: UpdateConversationInput!) {
|
|
27
27
|
updateConversation(input: $input) {
|
|
28
28
|
conversation { id title description }
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
|
|
31
|
+
`,$=`
|
|
32
32
|
mutation SendMessage($input: SendMessageInput!) {
|
|
33
33
|
sendMessage(input: $input) {
|
|
34
34
|
message { id content type createdAt }
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
`;var
|
|
37
|
+
`;var _=`
|
|
38
38
|
mutation EditMessage($input: EditMessageInput!) {
|
|
39
39
|
editMessage(input: $input) { id content isEdited editedAt }
|
|
40
40
|
}
|
|
41
|
-
`,
|
|
41
|
+
`,P=`
|
|
42
42
|
mutation DeleteMessage($id: ID!, $hard: Boolean) {
|
|
43
43
|
deleteMessage(id: $id, hard: $hard) { success messageId }
|
|
44
44
|
}
|
|
45
|
-
|
|
45
|
+
`,q=`
|
|
46
46
|
mutation ForwardMessage($messageId: ID!, $targetConversationId: ID!) {
|
|
47
47
|
forwardMessage(messageId: $messageId, targetConversationId: $targetConversationId) {
|
|
48
48
|
success message { id conversationId content createdAt }
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
`,
|
|
51
|
+
`,M=`
|
|
52
52
|
mutation PinMessage($messageId: ID!) {
|
|
53
53
|
pinMessage(messageId: $messageId) { id isPinned pinnedAt }
|
|
54
54
|
}
|
|
55
|
-
`,
|
|
55
|
+
`,L=`
|
|
56
56
|
mutation UnpinMessage($messageId: ID!) {
|
|
57
57
|
unpinMessage(messageId: $messageId) { id isPinned }
|
|
58
58
|
}
|
|
59
|
-
`,
|
|
59
|
+
`,U=`
|
|
60
60
|
query SearchMessages($query: String!, $conversationId: ID, $first: Int) {
|
|
61
61
|
searchMessages(query: $query, conversationId: $conversationId, first: $first) {
|
|
62
62
|
edges { node { id conversationId authorId content type createdAt } }
|
|
63
63
|
totalCount
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
`,
|
|
66
|
+
`,G=`
|
|
67
67
|
query Draft($conversationId: ID!) {
|
|
68
68
|
draft(conversationId: $conversationId) {
|
|
69
69
|
id conversationId content parentMessageId createdAt updatedAt
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
`,
|
|
72
|
+
`,V=`
|
|
73
73
|
mutation SaveDraft($input: SaveDraftInput!) {
|
|
74
74
|
saveDraft(input: $input) { id conversationId content updatedAt }
|
|
75
75
|
}
|
|
76
|
-
`,
|
|
76
|
+
`,j=`
|
|
77
77
|
mutation DeleteDraft($conversationId: ID!) {
|
|
78
78
|
deleteDraft(conversationId: $conversationId) { success conversationId }
|
|
79
79
|
}
|
|
80
|
-
`,
|
|
80
|
+
`,F=`
|
|
81
81
|
mutation AddReaction($messageId: ID!, $emoji: String!) {
|
|
82
82
|
addReaction(messageId: $messageId, emoji: $emoji) {
|
|
83
83
|
id messageId userId emoji createdAt
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
|
-
`,
|
|
86
|
+
`,W=`
|
|
87
87
|
mutation RemoveReaction($messageId: ID!, $emoji: String!) {
|
|
88
88
|
removeReaction(messageId: $messageId, emoji: $emoji) { success messageId emoji }
|
|
89
89
|
}
|
|
90
|
-
`,
|
|
90
|
+
`,H=`
|
|
91
91
|
mutation AddParticipant($input: AddParticipantInput!) {
|
|
92
92
|
addParticipant(input: $input) { id conversationId userId createdAt }
|
|
93
93
|
}
|
|
94
|
-
`,
|
|
94
|
+
`,B=`
|
|
95
95
|
mutation RemoveParticipant($input: RemoveParticipantInput!) {
|
|
96
96
|
removeParticipant(input: $input) { success conversationId userId }
|
|
97
97
|
}
|
|
98
|
-
`,
|
|
98
|
+
`,z=`
|
|
99
99
|
mutation UpdateParticipantRole($input: UpdateParticipantRoleInput!) {
|
|
100
100
|
updateParticipantRole(input: $input) { id conversationId userId }
|
|
101
101
|
}
|
|
102
|
-
`,
|
|
102
|
+
`,K=`
|
|
103
103
|
mutation LeaveConversation($conversationId: ID!) {
|
|
104
104
|
leaveConversation(conversationId: $conversationId) { success conversationId }
|
|
105
105
|
}
|
|
106
|
-
`,
|
|
106
|
+
`,J=`
|
|
107
107
|
mutation ArchiveConversation($id: ID!) {
|
|
108
108
|
archiveConversation(id: $id) { id state }
|
|
109
109
|
}
|
|
110
|
-
`,
|
|
110
|
+
`,Y=`
|
|
111
111
|
mutation UnarchiveConversation($id: ID!) {
|
|
112
112
|
unarchiveConversation(id: $id) { id state }
|
|
113
113
|
}
|
|
114
|
-
`,
|
|
114
|
+
`,Q=`
|
|
115
115
|
mutation MuteConversation($conversationId: ID!, $until: DateTime) {
|
|
116
116
|
muteConversation(conversationId: $conversationId, until: $until) {
|
|
117
117
|
id conversationId userId
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
-
`,
|
|
120
|
+
`,X=`
|
|
121
121
|
mutation UnmuteConversation($conversationId: ID!) {
|
|
122
122
|
unmuteConversation(conversationId: $conversationId) { id conversationId userId }
|
|
123
123
|
}
|
|
124
|
-
`,
|
|
124
|
+
`,Z=`
|
|
125
125
|
mutation PinConversation($conversationId: ID!) {
|
|
126
126
|
pinConversation(conversationId: $conversationId) { id conversationId userId }
|
|
127
127
|
}
|
|
128
|
-
`,
|
|
128
|
+
`,ee=`
|
|
129
129
|
mutation UnpinConversation($conversationId: ID!) {
|
|
130
130
|
unpinConversation(conversationId: $conversationId) { id conversationId userId }
|
|
131
131
|
}
|
|
132
|
-
`,
|
|
132
|
+
`,te=`
|
|
133
133
|
mutation MarkConversationAsRead($conversationId: ID!, $messageId: ID) {
|
|
134
134
|
markConversationAsRead(conversationId: $conversationId, messageId: $messageId) {
|
|
135
135
|
id conversationId userId
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
|
-
`,
|
|
138
|
+
`,ne=`
|
|
139
139
|
mutation CreateInviteLink($input: CreateInviteLinkInput!) {
|
|
140
140
|
createInviteLink(input: $input) {
|
|
141
141
|
code url currentUses maxUses expiresAt createdAt
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
|
-
`,
|
|
144
|
+
`,re=`
|
|
145
145
|
mutation JoinViaInviteLink($code: String!) {
|
|
146
146
|
joinViaInviteLink(code: $code) { id conversationId userId createdAt }
|
|
147
147
|
}
|
|
148
|
-
`,
|
|
148
|
+
`,oe=`
|
|
149
149
|
query ValidateInviteLink($code: String!) {
|
|
150
150
|
validateInviteLink(code: $code) {
|
|
151
151
|
valid usesRemaining expiresAt
|
|
152
152
|
conversation { id title type }
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
|
-
`;function
|
|
155
|
+
`;function ie(r){let o=r.command("conversations").description("Conversation management");o.command("list").description("List conversations").option("--type <t>","Filter by type (DIRECT|GROUP|CHANNEL)").option("--limit <n>","Page size",t=>parseInt(t,10),50).option("-f, --format <format>").action(async t=>{try{let e={};t.type&&(e.type=t.type.toUpperCase());let i=(await s(b,{filter:Object.keys(e).length?e:void 0,first:t.limit})).conversations.edges.map(d=>d.node);p(t,i,{headers:["ID","Title","Type","Unread","Created"],rows:i.map(d=>[v(d.id,12),d.title??"-",d.type??"-",String(d.unreadCount??0),x(d.createdAt)])});}catch(e){a(e);}}),o.command("get").description("Get a conversation").argument("<id>").option("-f, --format <format>").action(async(t,e)=>{try{let n=await s(O,{id:t});if(!n.conversation)throw new u(`Conversation ${t} not found`);p(e,n.conversation);}catch(n){a(n);}}),o.command("create").description("Create a conversation").requiredOption("--title <s>").requiredOption("--participants <ids>","Comma-separated participant userIds (required by schema)").option("--description <s>").option("--type <t>","DIRECT|GROUP|CHANNEL","GROUP").option("-f, --format <format>").action(async t=>{try{let e=R().auth.read();if(!e?.workspaceId)throw new u("No workspace set. Run: vibecontrols workspace set <id>");let n={title:t.title,description:t.description,type:(t.type??"GROUP").toUpperCase(),participantIds:t.participants.split(","),workspaceId:e.workspaceId},i=await s(S,{input:n});c("Conversation created"),p(t,i.createConversation.conversation);}catch(e){a(e);}}),o.command("update").description("Update a conversation").argument("<id>").option("--title <s>").option("--description <s>").option("-f, --format <format>").action(async(t,e)=>{try{let n={id:t};if(e.title&&(n.title=e.title),e.description!==void 0&&(n.description=e.description),Object.keys(n).length===1)throw new u("No updates specified");let i=await s(D,{input:n});c("Conversation updated"),p(e,i.updateConversation.conversation);}catch(n){a(n);}}),o.command("delete").description("Delete a conversation").argument("<id>").action(async t=>{try{await s(N,{id:t}),c("Conversation deleted");}catch(e){a(e);}}),o.command("send").description("Send a message to a conversation").argument("<conversationId>").requiredOption("--content <text>").option("--parent <messageId>","Reply parent").option("-f, --format <format>").action(async(t,e)=>{try{let n={conversationId:t,content:{text:e.content},type:"TEXT",parentMessageId:e.parent},i=await s($,{input:n});c("Message sent"),p(e,i.sendMessage.message);}catch(n){a(n);}}),he(o),we(o),Ee(o),ye(o),xe(o),ke(o);}function he(r){let o=r.command("messages").description("Message operations");o.command("edit").description("Edit a message").argument("<id>").requiredOption("--content <text>").option("--reason <s>").option("-f, --format <format>").action(async(t,e)=>{try{let n={id:t,content:{text:e.content}};e.reason&&(n.reason=e.reason);let i=await s(_,{input:n});c("Message edited"),p(e,i.editMessage);}catch(n){a(n);}}),o.command("delete").description("Delete a message").argument("<id>").option("--hard","Hard delete (default: soft)").action(async(t,e)=>{try{await s(P,{id:t,hard:e.hard??!1}),c("Message deleted");}catch(n){a(n);}}),o.command("forward").description("Forward a message to another conversation").argument("<messageId>").requiredOption("--to <targetConversationId>").option("-f, --format <format>").action(async(t,e)=>{try{let n=await s(q,{messageId:t,targetConversationId:e.to});c("Message forwarded"),p(e,n.forwardMessage.message);}catch(n){a(n);}}),o.command("pin").description("Pin a message").argument("<messageId>").action(async t=>{try{await s(M,{messageId:t}),c("Message pinned");}catch(e){a(e);}}),o.command("unpin").description("Unpin a message").argument("<messageId>").action(async t=>{try{await s(L,{messageId:t}),c("Message unpinned");}catch(e){a(e);}}),o.command("search").description("Search messages").requiredOption("--query <s>").option("--conversation <id>","Restrict to a conversation").option("--limit <n>","Page size",t=>parseInt(t,10),50).option("-f, --format <format>").action(async t=>{try{let n=(await s(U,{query:t.query,conversationId:t.conversation,first:t.limit})).searchMessages.edges.map(i=>i.node);p(t,n,{headers:["ID","Conversation","Author","Created"],rows:n.map(i=>[v(i.id,12),v(i.conversationId??"-",12),v(i.authorId??"-",12),x(i.createdAt)])});}catch(e){a(e);}});}function we(r){let o=r.command("drafts").description("Draft message operations");o.command("get").description("Get the actor\u2019s draft for a conversation").argument("<conversationId>").option("-f, --format <format>").action(async(t,e)=>{try{let n=await s(G,{conversationId:t});if(!n.draft){c("No draft saved");return}p(e,n.draft);}catch(n){a(n);}}),o.command("save").description("Save (upsert) a draft for a conversation").argument("<conversationId>").requiredOption("--content <text>").option("--parent <messageId>").option("-f, --format <format>").action(async(t,e)=>{try{let n={conversationId:t,content:{text:e.content}};e.parent&&(n.parentMessageId=e.parent);let i=await s(V,{input:n});c("Draft saved"),p(e,i.saveDraft);}catch(n){a(n);}}),o.command("delete").description("Delete the actor\u2019s draft for a conversation").argument("<conversationId>").action(async t=>{try{await s(j,{conversationId:t}),c("Draft deleted");}catch(e){a(e);}});}function Ee(r){let o=r.command("reactions").description("Reaction operations");o.command("add").description("Add an emoji reaction to a message").argument("<messageId>").requiredOption("--emoji <e>").option("-f, --format <format>").action(async(t,e)=>{try{let n=await s(F,{messageId:t,emoji:e.emoji});c("Reaction added"),p(e,n.addReaction);}catch(n){a(n);}}),o.command("remove").description("Remove an emoji reaction from a message").argument("<messageId>").requiredOption("--emoji <e>").action(async(t,e)=>{try{await s(W,{messageId:t,emoji:e.emoji}),c("Reaction removed");}catch(n){a(n);}});}function ye(r){let o=r.command("participants").description("Participant operations");o.command("add").description("Add a participant to a conversation").argument("<conversationId>").requiredOption("--user <userId>").option("--role <role>","ADMIN | MODERATOR | MEMBER | GUEST").option("-f, --format <format>").action(async(t,e)=>{try{let n={conversationId:t,userId:e.user};e.role&&(n.role=e.role.toUpperCase());let i=await s(H,{input:n});c("Participant added"),p(e,i.addParticipant);}catch(n){a(n);}}),o.command("remove").description("Remove a participant from a conversation").argument("<conversationId>").requiredOption("--user <userId>").option("--reason <s>").action(async(t,e)=>{try{let n={conversationId:t,userId:e.user};e.reason&&(n.reason=e.reason),await s(B,{input:n}),c("Participant removed");}catch(n){a(n);}}),o.command("role").description("Update a participant\u2019s role").argument("<conversationId>").requiredOption("--user <userId>").requiredOption("--role <role>","ADMIN | MODERATOR | MEMBER | GUEST").action(async(t,e)=>{try{await s(z,{input:{conversationId:t,userId:e.user,role:e.role.toUpperCase()}}),c("Participant role updated");}catch(n){a(n);}});}function xe(r){let o=(e,n,i,d)=>{r.command(e).description(n).argument("<id>").action(async h=>{try{await s(i,{id:h}),c(d);}catch(w){a(w);}});},t=(e,n,i,d)=>{r.command(e).description(n).argument("<conversationId>").action(async h=>{try{await s(i,{conversationId:h}),c(d);}catch(w){a(w);}});};o("archive","Archive a conversation",J,"Archived"),o("unarchive","Unarchive a conversation",Y,"Unarchived"),r.command("mute").description("Mute a conversation").argument("<conversationId>").option("--until <iso>","ISO timestamp; omit for indefinite").action(async(e,n)=>{try{await s(Q,{conversationId:e,until:n.until}),c("Muted");}catch(i){a(i);}}),t("unmute","Unmute a conversation",X,"Unmuted"),t("pin","Pin a conversation",Z,"Pinned"),t("unpin","Unpin a conversation",ee,"Unpinned"),r.command("read").description("Mark a conversation as read").argument("<conversationId>").option("--message <messageId>","Mark read up to this message (defaults to latest)").action(async(e,n)=>{try{await s(te,{conversationId:e,messageId:n.message}),c("Marked as read");}catch(i){a(i);}}),t("leave","Leave a conversation",K,"Left conversation");}function ke(r){let o=r.command("invites").description("Invite link operations");o.command("create").description("Create an invite link for a conversation").argument("<conversationId>").option("--max-uses <n>","Maximum number of uses",t=>parseInt(t,10)).option("--expires-at <iso>","ISO expiry timestamp").option("-f, --format <format>").action(async(t,e)=>{try{let n={conversationId:t};e.maxUses!==void 0&&(n.maxUses=e.maxUses),e.expiresAt&&(n.expiresAt=e.expiresAt);let i=await s(ne,{input:n});c("Invite link created"),p(e,i.createInviteLink);}catch(n){a(n);}}),o.command("join").description("Join a conversation via invite code").argument("<code>").action(async t=>{try{await s(re,{code:t}),c("Joined via invite link");}catch(e){a(e);}}),o.command("validate").description("Validate an invite code").argument("<code>").option("-f, --format <format>").action(async(t,e)=>{try{let n=await s(oe,{code:t});p(e,n.validateInviteLink);}catch(n){a(n);}});}var Ae={id:"conversations",version:"1.0.0",displayName:"Conversations",dependsOn:["auth","workspaces"],register(r,o){T(o),ie(r);}},Mt=Ae;module.exports=Mt;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a,b as b$1,i,r,q as q$1,h as h$1,u,k as k$1}from'../../chunk-
|
|
1
|
+
import {a,b as b$1,i,r,q as q$1,h as h$1,u,k as k$1}from'../../chunk-BGNPGKJM.js';import {j as j$1}from'../../chunk-N7EXKGE2.js';var l=`
|
|
2
2
|
query ListConversations($filter: ConversationFilter, $first: Int, $after: String) {
|
|
3
3
|
conversations(filter: $filter, first: $first, after: $after) {
|
|
4
4
|
edges { node { id title type description createdAt updatedAt unreadCount } }
|
|
@@ -152,4 +152,4 @@ import {a,b as b$1,i,r,q as q$1,h as h$1,u,k as k$1}from'../../chunk-3ZVMC2AF.js
|
|
|
152
152
|
conversation { id title type }
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
|
-
`;function Q(d){let o=d.command("conversations").description("Conversation management");o.command("list").description("List conversations").option("--type <t>","Filter by type (DIRECT|GROUP|CHANNEL)").option("--limit <n>","Page size",n=>parseInt(n,10),50).option("-f, --format <format>").action(async n=>{try{let t={};n.type&&(t.type=n.type.toUpperCase());let i$1=(await b$1(l,{filter:Object.keys(t).length?t:void 0,first:n.limit})).conversations.edges.map(p=>p.node);i(n,i$1,{headers:["ID","Title","Type","Unread","Created"],rows:i$1.map(p=>[r(p.id,12),p.title??"-",p.type??"-",String(p.unreadCount??0),q$1(p.createdAt)])});}catch(t){h$1(t);}}),o.command("get").description("Get a conversation").argument("<id>").option("-f, --format <format>").action(async(n,t)=>{try{let e=await b$1(R,{id:n});if(!e.conversation)throw new
|
|
155
|
+
`;function Q(d){let o=d.command("conversations").description("Conversation management");o.command("list").description("List conversations").option("--type <t>","Filter by type (DIRECT|GROUP|CHANNEL)").option("--limit <n>","Page size",n=>parseInt(n,10),50).option("-f, --format <format>").action(async n=>{try{let t={};n.type&&(t.type=n.type.toUpperCase());let i$1=(await b$1(l,{filter:Object.keys(t).length?t:void 0,first:n.limit})).conversations.edges.map(p=>p.node);i(n,i$1,{headers:["ID","Title","Type","Unread","Created"],rows:i$1.map(p=>[r(p.id,12),p.title??"-",p.type??"-",String(p.unreadCount??0),q$1(p.createdAt)])});}catch(t){h$1(t);}}),o.command("get").description("Get a conversation").argument("<id>").option("-f, --format <format>").action(async(n,t)=>{try{let e=await b$1(R,{id:n});if(!e.conversation)throw new j$1(`Conversation ${n} not found`);i(t,e.conversation);}catch(e){h$1(e);}}),o.command("create").description("Create a conversation").requiredOption("--title <s>").requiredOption("--participants <ids>","Comma-separated participant userIds (required by schema)").option("--description <s>").option("--type <t>","DIRECT|GROUP|CHANNEL","GROUP").option("-f, --format <format>").action(async n=>{try{let t=u().auth.read();if(!t?.workspaceId)throw new j$1("No workspace set. Run: vibecontrols workspace set <id>");let e={title:n.title,description:n.description,type:(n.type??"GROUP").toUpperCase(),participantIds:n.participants.split(","),workspaceId:t.workspaceId},i$1=await b$1(N,{input:e});k$1("Conversation created"),i(n,i$1.createConversation.conversation);}catch(t){h$1(t);}}),o.command("update").description("Update a conversation").argument("<id>").option("--title <s>").option("--description <s>").option("-f, --format <format>").action(async(n,t)=>{try{let e={id:n};if(t.title&&(e.title=t.title),t.description!==void 0&&(e.description=t.description),Object.keys(e).length===1)throw new j$1("No updates specified");let i$1=await b$1(T,{input:e});k$1("Conversation updated"),i(t,i$1.updateConversation.conversation);}catch(e){h$1(e);}}),o.command("delete").description("Delete a conversation").argument("<id>").action(async n=>{try{await b$1(y,{id:n}),k$1("Conversation deleted");}catch(t){h$1(t);}}),o.command("send").description("Send a message to a conversation").argument("<conversationId>").requiredOption("--content <text>").option("--parent <messageId>","Reply parent").option("-f, --format <format>").action(async(n,t)=>{try{let e={conversationId:n,content:{text:t.content},type:"TEXT",parentMessageId:t.parent},i$1=await b$1(O,{input:e});k$1("Message sent"),i(t,i$1.sendMessage.message);}catch(e){h$1(e);}}),Z(o),tt(o),et(o),nt(o),ot(o),it(o);}function Z(d){let o=d.command("messages").description("Message operations");o.command("edit").description("Edit a message").argument("<id>").requiredOption("--content <text>").option("--reason <s>").option("-f, --format <format>").action(async(n,t)=>{try{let e={id:n,content:{text:t.content}};t.reason&&(e.reason=t.reason);let i$1=await b$1(S,{input:e});k$1("Message edited"),i(t,i$1.editMessage);}catch(e){h$1(e);}}),o.command("delete").description("Delete a message").argument("<id>").option("--hard","Hard delete (default: soft)").action(async(n,t)=>{try{await b$1($,{id:n,hard:t.hard??!1}),k$1("Message deleted");}catch(e){h$1(e);}}),o.command("forward").description("Forward a message to another conversation").argument("<messageId>").requiredOption("--to <targetConversationId>").option("-f, --format <format>").action(async(n,t)=>{try{let e=await b$1(D,{messageId:n,targetConversationId:t.to});k$1("Message forwarded"),i(t,e.forwardMessage.message);}catch(e){h$1(e);}}),o.command("pin").description("Pin a message").argument("<messageId>").action(async n=>{try{await b$1(M,{messageId:n}),k$1("Message pinned");}catch(t){h$1(t);}}),o.command("unpin").description("Unpin a message").argument("<messageId>").action(async n=>{try{await b$1(_,{messageId:n}),k$1("Message unpinned");}catch(t){h$1(t);}}),o.command("search").description("Search messages").requiredOption("--query <s>").option("--conversation <id>","Restrict to a conversation").option("--limit <n>","Page size",n=>parseInt(n,10),50).option("-f, --format <format>").action(async n=>{try{let e=(await b$1(h,{query:n.query,conversationId:n.conversation,first:n.limit})).searchMessages.edges.map(i=>i.node);i(n,e,{headers:["ID","Conversation","Author","Created"],rows:e.map(i=>[r(i.id,12),r(i.conversationId??"-",12),r(i.authorId??"-",12),q$1(i.createdAt)])});}catch(t){h$1(t);}});}function tt(d){let o=d.command("drafts").description("Draft message operations");o.command("get").description("Get the actor\u2019s draft for a conversation").argument("<conversationId>").option("-f, --format <format>").action(async(n,t)=>{try{let e=await b$1(x,{conversationId:n});if(!e.draft){k$1("No draft saved");return}i(t,e.draft);}catch(e){h$1(e);}}),o.command("save").description("Save (upsert) a draft for a conversation").argument("<conversationId>").requiredOption("--content <text>").option("--parent <messageId>").option("-f, --format <format>").action(async(n,t)=>{try{let e={conversationId:n,content:{text:t.content}};t.parent&&(e.parentMessageId=t.parent);let i$1=await b$1(w,{input:e});k$1("Draft saved"),i(t,i$1.saveDraft);}catch(e){h$1(e);}}),o.command("delete").description("Delete the actor\u2019s draft for a conversation").argument("<conversationId>").action(async n=>{try{await b$1(P,{conversationId:n}),k$1("Draft deleted");}catch(t){h$1(t);}});}function et(d){let o=d.command("reactions").description("Reaction operations");o.command("add").description("Add an emoji reaction to a message").argument("<messageId>").requiredOption("--emoji <e>").option("-f, --format <format>").action(async(n,t)=>{try{let e=await b$1(V,{messageId:n,emoji:t.emoji});k$1("Reaction added"),i(t,e.addReaction);}catch(e){h$1(e);}}),o.command("remove").description("Remove an emoji reaction from a message").argument("<messageId>").requiredOption("--emoji <e>").action(async(n,t)=>{try{await b$1(U,{messageId:n,emoji:t.emoji}),k$1("Reaction removed");}catch(e){h$1(e);}});}function nt(d){let o=d.command("participants").description("Participant operations");o.command("add").description("Add a participant to a conversation").argument("<conversationId>").requiredOption("--user <userId>").option("--role <role>","ADMIN | MODERATOR | MEMBER | GUEST").option("-f, --format <format>").action(async(n,t)=>{try{let e={conversationId:n,userId:t.user};t.role&&(e.role=t.role.toUpperCase());let i$1=await b$1(k,{input:e});k$1("Participant added"),i(t,i$1.addParticipant);}catch(e){h$1(e);}}),o.command("remove").description("Remove a participant from a conversation").argument("<conversationId>").requiredOption("--user <userId>").option("--reason <s>").action(async(n,t)=>{try{let e={conversationId:n,userId:t.user};t.reason&&(e.reason=t.reason),await b$1(L,{input:e}),k$1("Participant removed");}catch(e){h$1(e);}}),o.command("role").description("Update a participant\u2019s role").argument("<conversationId>").requiredOption("--user <userId>").requiredOption("--role <role>","ADMIN | MODERATOR | MEMBER | GUEST").action(async(n,t)=>{try{await b$1(G,{input:{conversationId:n,userId:t.user,role:t.role.toUpperCase()}}),k$1("Participant role updated");}catch(e){h$1(e);}});}function ot(d){let o=(t,e,i,p)=>{d.command(t).description(e).argument("<id>").action(async I=>{try{await b$1(i,{id:I}),k$1(p);}catch(g){h$1(g);}});},n=(t,e,i,p)=>{d.command(t).description(e).argument("<conversationId>").action(async I=>{try{await b$1(i,{conversationId:I}),k$1(p);}catch(g){h$1(g);}});};o("archive","Archive a conversation",j,"Archived"),o("unarchive","Unarchive a conversation",b,"Unarchived"),d.command("mute").description("Mute a conversation").argument("<conversationId>").option("--until <iso>","ISO timestamp; omit for indefinite").action(async(t,e)=>{try{await b$1(F,{conversationId:t,until:e.until}),k$1("Muted");}catch(i){h$1(i);}}),n("unmute","Unmute a conversation",H,"Unmuted"),n("pin","Pin a conversation",K,"Pinned"),n("unpin","Unpin a conversation",J,"Unpinned"),d.command("read").description("Mark a conversation as read").argument("<conversationId>").option("--message <messageId>","Mark read up to this message (defaults to latest)").action(async(t,e)=>{try{await b$1(B,{conversationId:t,messageId:e.message}),k$1("Marked as read");}catch(i){h$1(i);}}),n("leave","Leave a conversation",q,"Left conversation");}function it(d){let o=d.command("invites").description("Invite link operations");o.command("create").description("Create an invite link for a conversation").argument("<conversationId>").option("--max-uses <n>","Maximum number of uses",n=>parseInt(n,10)).option("--expires-at <iso>","ISO expiry timestamp").option("-f, --format <format>").action(async(n,t)=>{try{let e={conversationId:n};t.maxUses!==void 0&&(e.maxUses=t.maxUses),t.expiresAt&&(e.expiresAt=t.expiresAt);let i$1=await b$1(W,{input:e});k$1("Invite link created"),i(t,i$1.createInviteLink);}catch(e){h$1(e);}}),o.command("join").description("Join a conversation via invite code").argument("<code>").action(async n=>{try{await b$1(z,{code:n}),k$1("Joined via invite link");}catch(t){h$1(t);}}),o.command("validate").description("Validate an invite code").argument("<code>").option("-f, --format <format>").action(async(n,t)=>{try{let e=await b$1(X,{code:n});i(t,e.validateInviteLink);}catch(e){h$1(e);}});}var at={id:"conversations",version:"1.0.0",displayName:"Conversations",dependsOn:["auth","workspaces"],register(d,o){a(o),Q(d);}},ut=at;export{ut as default};
|