@burdenoff/sdk-libs 2026.501.6
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/LICENSE +4 -0
- package/README.md +52 -0
- package/dist/chunk-NEREAHJ6.js +1 -0
- package/dist/chunk-YGVAZ3D7.js +2 -0
- package/dist/core/index.cjs +2 -0
- package/dist/core/index.d.cts +52 -0
- package/dist/core/index.d.ts +52 -0
- package/dist/core/index.js +1 -0
- package/dist/index.cjs +2 -0
- package/dist/index.d.cts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +1 -0
- package/dist/module-JDbvil5h.d.cts +194 -0
- package/dist/module-JDbvil5h.d.ts +194 -0
- package/dist/modules/auth/index.cjs +71 -0
- package/dist/modules/auth/index.d.cts +94 -0
- package/dist/modules/auth/index.d.ts +94 -0
- package/dist/modules/auth/index.js +71 -0
- package/dist/modules/billing/index.cjs +203 -0
- package/dist/modules/billing/index.d.cts +377 -0
- package/dist/modules/billing/index.d.ts +377 -0
- package/dist/modules/billing/index.js +203 -0
- package/dist/modules/channels/index.cjs +108 -0
- package/dist/modules/channels/index.d.cts +146 -0
- package/dist/modules/channels/index.d.ts +146 -0
- package/dist/modules/channels/index.js +108 -0
- package/dist/modules/conversations/index.cjs +61 -0
- package/dist/modules/conversations/index.d.cts +112 -0
- package/dist/modules/conversations/index.d.ts +112 -0
- package/dist/modules/conversations/index.js +61 -0
- package/dist/modules/devportal/index.cjs +216 -0
- package/dist/modules/devportal/index.d.cts +303 -0
- package/dist/modules/devportal/index.d.ts +303 -0
- package/dist/modules/devportal/index.js +216 -0
- package/dist/modules/export/index.cjs +61 -0
- package/dist/modules/export/index.d.cts +169 -0
- package/dist/modules/export/index.d.ts +169 -0
- package/dist/modules/export/index.js +61 -0
- package/dist/modules/files/index.cjs +51 -0
- package/dist/modules/files/index.d.cts +102 -0
- package/dist/modules/files/index.d.ts +102 -0
- package/dist/modules/files/index.js +51 -0
- package/dist/modules/groups/index.cjs +80 -0
- package/dist/modules/groups/index.d.cts +168 -0
- package/dist/modules/groups/index.d.ts +168 -0
- package/dist/modules/groups/index.js +80 -0
- package/dist/modules/health/index.cjs +5 -0
- package/dist/modules/health/index.d.cts +18 -0
- package/dist/modules/health/index.d.ts +18 -0
- package/dist/modules/health/index.js +5 -0
- package/dist/modules/integrations/index.cjs +65 -0
- package/dist/modules/integrations/index.d.cts +120 -0
- package/dist/modules/integrations/index.d.ts +120 -0
- package/dist/modules/integrations/index.js +65 -0
- package/dist/modules/notifications/index.cjs +53 -0
- package/dist/modules/notifications/index.d.cts +140 -0
- package/dist/modules/notifications/index.d.ts +140 -0
- package/dist/modules/notifications/index.js +53 -0
- package/dist/modules/organizations/index.cjs +72 -0
- package/dist/modules/organizations/index.d.cts +88 -0
- package/dist/modules/organizations/index.d.ts +88 -0
- package/dist/modules/organizations/index.js +72 -0
- package/dist/modules/products/index.cjs +149 -0
- package/dist/modules/products/index.d.cts +361 -0
- package/dist/modules/products/index.d.ts +361 -0
- package/dist/modules/products/index.js +149 -0
- package/dist/modules/rbac/index.cjs +55 -0
- package/dist/modules/rbac/index.d.cts +100 -0
- package/dist/modules/rbac/index.d.ts +100 -0
- package/dist/modules/rbac/index.js +55 -0
- package/dist/modules/scheduler/index.cjs +61 -0
- package/dist/modules/scheduler/index.d.cts +121 -0
- package/dist/modules/scheduler/index.d.ts +121 -0
- package/dist/modules/scheduler/index.js +61 -0
- package/dist/modules/security/index.cjs +61 -0
- package/dist/modules/security/index.d.cts +110 -0
- package/dist/modules/security/index.d.ts +110 -0
- package/dist/modules/security/index.js +61 -0
- package/dist/modules/store/index.cjs +82 -0
- package/dist/modules/store/index.d.cts +139 -0
- package/dist/modules/store/index.d.ts +139 -0
- package/dist/modules/store/index.js +82 -0
- package/dist/modules/support/index.cjs +56 -0
- package/dist/modules/support/index.d.cts +147 -0
- package/dist/modules/support/index.d.ts +147 -0
- package/dist/modules/support/index.js +56 -0
- package/dist/modules/tags/index.cjs +55 -0
- package/dist/modules/tags/index.d.cts +131 -0
- package/dist/modules/tags/index.d.ts +131 -0
- package/dist/modules/tags/index.js +55 -0
- package/dist/modules/tours/index.cjs +37 -0
- package/dist/modules/tours/index.d.cts +61 -0
- package/dist/modules/tours/index.d.ts +61 -0
- package/dist/modules/tours/index.js +37 -0
- package/dist/modules/vibecontrols/index.cjs +1081 -0
- package/dist/modules/vibecontrols/index.d.cts +1483 -0
- package/dist/modules/vibecontrols/index.d.ts +1483 -0
- package/dist/modules/vibecontrols/index.js +1081 -0
- package/dist/modules/workspaces/index.cjs +91 -0
- package/dist/modules/workspaces/index.d.cts +128 -0
- package/dist/modules/workspaces/index.d.ts +128 -0
- package/dist/modules/workspaces/index.js +91 -0
- package/package.json +117 -0
|
@@ -0,0 +1,1081 @@
|
|
|
1
|
+
'use strict';var b=`
|
|
2
|
+
fragment ActionFields on Action {
|
|
3
|
+
id name description actionType sourceType triggerType
|
|
4
|
+
command script webhookUrl workflowDefinition configuration
|
|
5
|
+
tags isActive storeItemId storeVersion metadata
|
|
6
|
+
workspaceId createdAt updatedAt deletedAt
|
|
7
|
+
}
|
|
8
|
+
`,$=`
|
|
9
|
+
fragment ActionExecutionFields on ActionExecution {
|
|
10
|
+
id actionId status input output error
|
|
11
|
+
startedAt completedAt durationMs triggeredBy metadata
|
|
12
|
+
workspaceId createdAt updatedAt
|
|
13
|
+
}
|
|
14
|
+
`,v=`
|
|
15
|
+
fragment ScheduledJobFields on ScheduledJob {
|
|
16
|
+
id name scheduleType status actionId
|
|
17
|
+
cronExpression timezone scheduledAt
|
|
18
|
+
interval intervalUnit startDate endDate
|
|
19
|
+
nextExecutionAt lastExecutionAt priority tags
|
|
20
|
+
}
|
|
21
|
+
`,J=`
|
|
22
|
+
${b}
|
|
23
|
+
query Actions($filter: ActionFilterInput, $pagination: PaginationInput) {
|
|
24
|
+
actions(filter: $filter, pagination: $pagination) {
|
|
25
|
+
items { ...ActionFields }
|
|
26
|
+
total
|
|
27
|
+
hasMore
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
`,j=`
|
|
31
|
+
${b}
|
|
32
|
+
query Action($id: ID!) { action(id: $id) { ...ActionFields } }
|
|
33
|
+
`,X=`
|
|
34
|
+
${$}
|
|
35
|
+
query ActionExecutions($filter: ActionExecutionFilterInput, $pagination: PaginationInput) {
|
|
36
|
+
actionExecutions(filter: $filter, pagination: $pagination) {
|
|
37
|
+
items { ...ActionExecutionFields }
|
|
38
|
+
total
|
|
39
|
+
hasMore
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
`,Y=`
|
|
43
|
+
${$}
|
|
44
|
+
query ActionExecution($id: ID!) { actionExecution(id: $id) { ...ActionExecutionFields } }
|
|
45
|
+
`,z=`
|
|
46
|
+
${b}
|
|
47
|
+
mutation CreateAction($input: CreateActionInput!) {
|
|
48
|
+
createAction(input: $input) { ...ActionFields }
|
|
49
|
+
}
|
|
50
|
+
`,Q=`
|
|
51
|
+
${b}
|
|
52
|
+
mutation UpdateAction($id: ID!, $input: UpdateActionInput!) {
|
|
53
|
+
updateAction(id: $id, input: $input) { ...ActionFields }
|
|
54
|
+
}
|
|
55
|
+
`,Z="mutation DeleteAction($id: ID!) { deleteAction(id: $id) }",tt=`
|
|
56
|
+
${b}
|
|
57
|
+
mutation DuplicateAction($id: ID!, $name: String) {
|
|
58
|
+
duplicateAction(id: $id, name: $name) { ...ActionFields }
|
|
59
|
+
}
|
|
60
|
+
`,et=`
|
|
61
|
+
${$}
|
|
62
|
+
mutation ExecuteAction($id: ID!, $input: ExecuteActionInput) {
|
|
63
|
+
executeAction(id: $id, input: $input) { ...ActionExecutionFields }
|
|
64
|
+
}
|
|
65
|
+
`,nt=`
|
|
66
|
+
${b}
|
|
67
|
+
mutation InstallActionFromStore($storeItemId: String!, $version: String, $name: String) {
|
|
68
|
+
installActionFromStore(storeItemId: $storeItemId, version: $version, name: $name) {
|
|
69
|
+
...ActionFields
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
`,it=`
|
|
73
|
+
${$}
|
|
74
|
+
mutation CancelActionExecution($id: ID!) {
|
|
75
|
+
cancelActionExecution(id: $id) { ...ActionExecutionFields }
|
|
76
|
+
}
|
|
77
|
+
`,ot=`
|
|
78
|
+
${v}
|
|
79
|
+
mutation CreateScheduledJob($input: CreateScheduledJobInput!) {
|
|
80
|
+
createScheduledJob(input: $input) { ...ScheduledJobFields }
|
|
81
|
+
}
|
|
82
|
+
`,at="mutation DeleteScheduledJob($id: ID!) { deleteScheduledJob(id: $id) }",st=`
|
|
83
|
+
${v}
|
|
84
|
+
query ScheduledJobs($filter: JobFilterInput, $pagination: SchedulerPaginationInput) {
|
|
85
|
+
scheduledJobs(filter: $filter, pagination: $pagination) {
|
|
86
|
+
jobs { ...ScheduledJobFields }
|
|
87
|
+
total
|
|
88
|
+
hasMore
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
`;function f(o){let{workspace:n}=o.gql;return {async list(t,e){return (await n.request(J,{filter:t,pagination:e})).actions},async get(t){return (await n.request(j,{id:t})).action},async create(t){return (await n.request(z,{input:t})).createAction},async update(t,e){return (await n.request(Q,{id:t,input:e})).updateAction},async delete(t){return (await n.request(Z,{id:t})).deleteAction},async duplicate(t,e){return (await n.request(tt,{id:t,name:e})).duplicateAction},async execute(t,e){return (await n.request(et,{id:t,input:e})).executeAction},async installFromStore(t,e,i){return (await n.request(nt,{storeItemId:t,version:e,name:i})).installActionFromStore},async listExecutions(t,e){return (await n.request(X,{filter:t,pagination:e})).actionExecutions},async getExecution(t){return (await n.request(Y,{id:t})).actionExecution},async cancelExecution(t){return (await n.request(it,{id:t})).cancelActionExecution},async scheduleAction(t,e){let i={actionId:t,scheduleType:e.scheduleType};return e.cronExpression&&(i.cronExpression=e.cronExpression),e.timezone&&(i.timezone=e.timezone),e.scheduledAt&&(i.scheduledAt=e.scheduledAt),e.interval!==void 0&&(i.interval=e.interval),e.intervalUnit&&(i.intervalUnit=e.intervalUnit),e.startDate&&(i.startDate=e.startDate),e.endDate&&(i.endDate=e.endDate),e.name&&(i.name=e.name),(await n.request(ot,{input:i})).createScheduledJob},async unscheduleAction(t){return (await n.request(at,{id:t})).deleteScheduledJob},async listSchedules(t,e){return (await n.request(st,{filter:t,pagination:e})).scheduledJobs}}}var d=`
|
|
92
|
+
fragment AgentFields on VibecontrolsAgent {
|
|
93
|
+
id name hostname platform architecture version
|
|
94
|
+
tunnelUrl tunnelStatus apiUrl agentApiKey
|
|
95
|
+
appId appClientId capabilities configuration
|
|
96
|
+
isActive lastHeartbeat metadata workspaceId
|
|
97
|
+
createdAt updatedAt deletedAt
|
|
98
|
+
}
|
|
99
|
+
`,rt=`
|
|
100
|
+
${d}
|
|
101
|
+
query VibecontrolsAgents($filter: VibecontrolsAgentFilterInput) {
|
|
102
|
+
vibecontrolsAgents(filter: $filter) { ...AgentFields }
|
|
103
|
+
}
|
|
104
|
+
`,ct=`
|
|
105
|
+
${d}
|
|
106
|
+
query VibecontrolsAgent($id: ID!) { vibecontrolsAgent(id: $id) { ...AgentFields } }
|
|
107
|
+
`,dt=`
|
|
108
|
+
${d}
|
|
109
|
+
mutation CreateVibecontrolsAgent($input: CreateVibecontrolsAgentInput!) {
|
|
110
|
+
createVibecontrolsAgent(input: $input) { ...AgentFields }
|
|
111
|
+
}
|
|
112
|
+
`,ut=`
|
|
113
|
+
${d}
|
|
114
|
+
mutation RegisterVibecontrolsAgent($input: CreateVibecontrolsAgentInput!) {
|
|
115
|
+
registerVibecontrolsAgent(input: $input) { ...AgentFields }
|
|
116
|
+
}
|
|
117
|
+
`,lt=`
|
|
118
|
+
${d}
|
|
119
|
+
mutation UpdateVibecontrolsAgent($id: ID!, $input: UpdateVibecontrolsAgentInput!) {
|
|
120
|
+
updateVibecontrolsAgent(id: $id, input: $input) { ...AgentFields }
|
|
121
|
+
}
|
|
122
|
+
`,pt="mutation DeleteVibecontrolsAgent($id: ID!) { deleteVibecontrolsAgent(id: $id) }",gt=`
|
|
123
|
+
${d}
|
|
124
|
+
mutation DeactivateVibecontrolsAgent($id: ID!) {
|
|
125
|
+
deactivateVibecontrolsAgent(id: $id) { ...AgentFields }
|
|
126
|
+
}
|
|
127
|
+
`,bt=`
|
|
128
|
+
${d}
|
|
129
|
+
mutation VibecontrolsAgentHeartbeat($id: ID!) {
|
|
130
|
+
vibecontrolsAgentHeartbeat(id: $id) { ...AgentFields }
|
|
131
|
+
}
|
|
132
|
+
`,It=`
|
|
133
|
+
query VibecontrolsAgentHealthProbes {
|
|
134
|
+
vibecontrolsAgentHealthProbes {
|
|
135
|
+
agentId agentName isHealthy reachable latencyMs error lastHeartbeat
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
`,At=`
|
|
139
|
+
query ProbeAgentConnection($id: ID!) {
|
|
140
|
+
probeAgentConnection(id: $id) {
|
|
141
|
+
agentId reachable latencyMs error version tunnelUrl
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
`,St=`
|
|
145
|
+
query ProbeAgentTunnel($url: String!, $agentApiKey: String) {
|
|
146
|
+
probeAgentTunnel(url: $url, agentApiKey: $agentApiKey) {
|
|
147
|
+
agentId reachable latencyMs error version tunnelUrl
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
`,mt=`
|
|
151
|
+
query AgentPlugins($agentId: ID!) {
|
|
152
|
+
agentPlugins(agentId: $agentId) {
|
|
153
|
+
agentId
|
|
154
|
+
plugins { name packageName version description isActive tags metadata }
|
|
155
|
+
total
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
`,Dt=`
|
|
159
|
+
mutation InstallAgentPlugin($agentId: ID!, $packageName: String!) {
|
|
160
|
+
installAgentPlugin(agentId: $agentId, packageName: $packageName) {
|
|
161
|
+
success message
|
|
162
|
+
plugin { name packageName version description isActive tags metadata }
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
`,Tt=`
|
|
166
|
+
mutation RemoveAgentPlugin($agentId: ID!, $packageName: String!) {
|
|
167
|
+
removeAgentPlugin(agentId: $agentId, packageName: $packageName) {
|
|
168
|
+
success message
|
|
169
|
+
plugin { name packageName version description isActive tags metadata }
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
`,$t=`
|
|
173
|
+
mutation PushAgentGatewayAuth($input: PushAgentGatewayAuthInput!) {
|
|
174
|
+
pushAgentGatewayAuth(input: $input)
|
|
175
|
+
}
|
|
176
|
+
`;function N(o){let{workspace:n}=o.gql;return {async list(t){let e=await n.request(rt,{filter:t});return {items:e.vibecontrolsAgents,total:e.vibecontrolsAgents.length,hasMore:false}},async get(t){return (await n.request(ct,{id:t})).vibecontrolsAgent},async create(t){return (await n.request(dt,{input:t})).createVibecontrolsAgent},async register(t){return (await n.request(ut,{input:t})).registerVibecontrolsAgent},async update(t,e){return (await n.request(lt,{id:t,input:e})).updateVibecontrolsAgent},async delete(t){return (await n.request(pt,{id:t})).deleteVibecontrolsAgent},async deactivate(t){return (await n.request(gt,{id:t})).deactivateVibecontrolsAgent},async heartbeat(t){return (await n.request(bt,{id:t})).vibecontrolsAgentHeartbeat},async healthProbes(){return (await n.request(It)).vibecontrolsAgentHealthProbes},async probeConnection(t){return (await n.request(At,{id:t})).probeAgentConnection},async probeTunnel(t,e){return (await n.request(St,{url:t,agentApiKey:e})).probeAgentTunnel},async listPlugins(t){return (await n.request(mt,{agentId:t})).agentPlugins},async installPlugin(t,e){return (await n.request(Dt,{agentId:t,packageName:e})).installAgentPlugin},async removePlugin(t,e){return (await n.request(Tt,{agentId:t,packageName:e})).removeAgentPlugin},async pushGatewayAuth(t){return (await n.request($t,{input:t})).pushAgentGatewayAuth}}}var y=`
|
|
177
|
+
fragment AiToolEventFields on AiToolEvent {
|
|
178
|
+
id source eventType payload agentId workspaceId createdAt
|
|
179
|
+
}
|
|
180
|
+
`,yt=`
|
|
181
|
+
${y}
|
|
182
|
+
query AiToolEvents($filter: AiToolEventFilterInput, $pagination: PaginationInput) {
|
|
183
|
+
aiToolEvents(filter: $filter, pagination: $pagination) {
|
|
184
|
+
items { ...AiToolEventFields }
|
|
185
|
+
total
|
|
186
|
+
hasMore
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
`,Et=`
|
|
190
|
+
${y}
|
|
191
|
+
query AiToolEvent($id: ID!) { aiToolEvent(id: $id) { ...AiToolEventFields } }
|
|
192
|
+
`,Vt=`
|
|
193
|
+
${y}
|
|
194
|
+
query RecentAiToolEvents($agentId: ID!, $limit: Int) {
|
|
195
|
+
recentAiToolEvents(agentId: $agentId, limit: $limit) { ...AiToolEventFields }
|
|
196
|
+
}
|
|
197
|
+
`,kt=`
|
|
198
|
+
${y}
|
|
199
|
+
mutation CreateAiToolEvent($input: CreateAiToolEventInput!) {
|
|
200
|
+
createAiToolEvent(input: $input) { ...AiToolEventFields }
|
|
201
|
+
}
|
|
202
|
+
`,Ct=`
|
|
203
|
+
mutation DeleteOldAiToolEvents($beforeDate: String!) {
|
|
204
|
+
deleteOldAiToolEvents(beforeDate: $beforeDate)
|
|
205
|
+
}
|
|
206
|
+
`;function _(o){let{workspace:n}=o.gql;return {async list(t,e){return (await n.request(yt,{filter:t,pagination:e})).aiToolEvents},async get(t){return (await n.request(Et,{id:t})).aiToolEvent},async recent(t,e){return (await n.request(Vt,{agentId:t,limit:e})).recentAiToolEvents},async create(t){return (await n.request(kt,{input:t})).createAiToolEvent},async deleteOld(t){return (await n.request(Ct,{beforeDate:t})).deleteOldAiToolEvents}}}var k=`
|
|
207
|
+
query VibecontrolsAnalytics($input: VibecontrolsAnalyticsInput!) {
|
|
208
|
+
vibecontrolsAnalytics(input: $input) {
|
|
209
|
+
agents {
|
|
210
|
+
total active inactive staleHeartbeatCount
|
|
211
|
+
byPlatform { key count }
|
|
212
|
+
byArchitecture { key count }
|
|
213
|
+
createdOverTime { timestamp value }
|
|
214
|
+
}
|
|
215
|
+
targets {
|
|
216
|
+
total connectionCount
|
|
217
|
+
byType { key count }
|
|
218
|
+
byStatus { key count }
|
|
219
|
+
}
|
|
220
|
+
sessions {
|
|
221
|
+
total active avgDurationMs totalCollaborators totalShares totalShareLinks
|
|
222
|
+
byType { key count }
|
|
223
|
+
byStatus { key count }
|
|
224
|
+
createdOverTime { timestamp value }
|
|
225
|
+
}
|
|
226
|
+
vibes {
|
|
227
|
+
total withAgent withoutAgent
|
|
228
|
+
byType { key count }
|
|
229
|
+
byStatus { key count }
|
|
230
|
+
createdOverTime { timestamp value }
|
|
231
|
+
}
|
|
232
|
+
actions {
|
|
233
|
+
total totalExecutions successRate avgDurationMs
|
|
234
|
+
byActionType { key count }
|
|
235
|
+
byTriggerType { key count }
|
|
236
|
+
bySourceType { key count }
|
|
237
|
+
executionsByStatus { key count }
|
|
238
|
+
executionsOverTime { timestamp value }
|
|
239
|
+
}
|
|
240
|
+
webhooks {
|
|
241
|
+
total active inactive totalDeliveries totalFailures deliverySuccessRate
|
|
242
|
+
}
|
|
243
|
+
aiEvents {
|
|
244
|
+
total
|
|
245
|
+
bySource { key count }
|
|
246
|
+
byEventType { key count }
|
|
247
|
+
eventsOverTime { timestamp value }
|
|
248
|
+
}
|
|
249
|
+
vibeDecks {
|
|
250
|
+
totalDecks totalButtons
|
|
251
|
+
buttonsByActionType { key count }
|
|
252
|
+
}
|
|
253
|
+
audit {
|
|
254
|
+
total
|
|
255
|
+
byAction { key count }
|
|
256
|
+
byResourceType { key count }
|
|
257
|
+
byStatus { key count }
|
|
258
|
+
eventsOverTime { timestamp value }
|
|
259
|
+
}
|
|
260
|
+
docs {
|
|
261
|
+
totalSites totalPages totalRevisions buildSuccessRate totalBuildImages
|
|
262
|
+
pagesByStatus { key count }
|
|
263
|
+
revisionsByStatus { key count }
|
|
264
|
+
}
|
|
265
|
+
notes {
|
|
266
|
+
total pinned unpinned
|
|
267
|
+
createdOverTime { timestamp value }
|
|
268
|
+
}
|
|
269
|
+
configurations {
|
|
270
|
+
total secretCount
|
|
271
|
+
byScope { key count }
|
|
272
|
+
}
|
|
273
|
+
executionTimeMs
|
|
274
|
+
cached
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
`;function h(o){let{workspace:n}=o.gql;return {async get(t){return (await n.request(k,{input:t})).vibecontrolsAnalytics},async getOverview(t){let e={startDate:t?.startDate??new Date(Date.now()-6048e5).toISOString(),endDate:t?.endDate??new Date().toISOString(),granularity:t?.granularity??"DAY",...t};return (await n.request(k,{input:e})).vibecontrolsAnalytics},async getForEntities(t,e){let i={startDate:e?.startDate??new Date(Date.now()-6048e5).toISOString(),endDate:e?.endDate??new Date().toISOString(),granularity:e?.granularity??"DAY",...e,entityTypes:t};return (await n.request(k,{input:i})).vibecontrolsAnalytics}}}var w=`
|
|
278
|
+
fragment AuditLogFields on VibeAuditLog {
|
|
279
|
+
id action resourceType resourceId actorId actorType
|
|
280
|
+
status description ipAddress userAgent requestId
|
|
281
|
+
workspaceId createdAt
|
|
282
|
+
}
|
|
283
|
+
`,Pt=`
|
|
284
|
+
${w}
|
|
285
|
+
query VibeAuditLogs($filter: VibeAuditLogFilterInput, $pagination: PaginationInput) {
|
|
286
|
+
vibeAuditLogs(filter: $filter, pagination: $pagination) {
|
|
287
|
+
items { ...AuditLogFields }
|
|
288
|
+
total
|
|
289
|
+
hasMore
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
`,xt=`
|
|
293
|
+
${w}
|
|
294
|
+
query VibeAuditLog($id: ID!) { vibeAuditLog(id: $id) { ...AuditLogFields } }
|
|
295
|
+
`,vt=`
|
|
296
|
+
query VibeAuditLogStats($filter: VibeAuditLogFilterInput) {
|
|
297
|
+
vibeAuditLogStats(filter: $filter) {
|
|
298
|
+
totalLogs
|
|
299
|
+
logsByAction { action count }
|
|
300
|
+
logsByResourceType { resourceType count }
|
|
301
|
+
logsByStatus { status count }
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
`,ft=`
|
|
305
|
+
mutation DeleteVibeAuditLog($id: ID!, $reason: String) {
|
|
306
|
+
deleteVibeAuditLog(id: $id, reason: $reason)
|
|
307
|
+
}
|
|
308
|
+
`,Nt=`
|
|
309
|
+
mutation BulkDeleteVibeAuditLogs($ids: [ID!]!, $reason: String) {
|
|
310
|
+
bulkDeleteVibeAuditLogs(ids: $ids, reason: $reason)
|
|
311
|
+
}
|
|
312
|
+
`,_t=`
|
|
313
|
+
mutation ExportVibeAuditLogs($filter: VibeAuditLogFilterInput, $format: String) {
|
|
314
|
+
exportVibeAuditLogs(filter: $filter, format: $format)
|
|
315
|
+
}
|
|
316
|
+
`;function F(o){let{workspace:n}=o.gql;return {async list(t,e){return (await n.request(Pt,{filter:t,pagination:e})).vibeAuditLogs},async get(t){return (await n.request(xt,{id:t})).vibeAuditLog},async stats(t){return (await n.request(vt,{filter:t})).vibeAuditLogStats},async delete(t,e){return (await n.request(ft,{id:t,reason:e})).deleteVibeAuditLog},async bulkDelete(t,e){return (await n.request(Nt,{ids:t,reason:e})).bulkDeleteVibeAuditLogs},async export(t,e){return (await n.request(_t,{filter:t,format:e})).exportVibeAuditLogs}}}var S=`
|
|
317
|
+
fragment ConfigurationFields on Configuration {
|
|
318
|
+
id key value scope scopeId isSecret
|
|
319
|
+
workspaceId createdAt updatedAt
|
|
320
|
+
}
|
|
321
|
+
`,ht=`
|
|
322
|
+
${S}
|
|
323
|
+
query Configurations($filter: ConfigurationFilterInput!, $pagination: PaginationInput) {
|
|
324
|
+
configurations(filter: $filter, pagination: $pagination) {
|
|
325
|
+
items { ...ConfigurationFields }
|
|
326
|
+
total
|
|
327
|
+
hasMore
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
`,wt=`
|
|
331
|
+
${S}
|
|
332
|
+
query Configuration($key: String!, $scope: ConfigScope!, $scopeId: ID) {
|
|
333
|
+
configuration(key: $key, scope: $scope, scopeId: $scopeId) { ...ConfigurationFields }
|
|
334
|
+
}
|
|
335
|
+
`,Ft=`
|
|
336
|
+
query ConfigurationValue($key: String!, $scope: ConfigScope!, $scopeId: ID) {
|
|
337
|
+
configurationValue(key: $key, scope: $scope, scopeId: $scopeId)
|
|
338
|
+
}
|
|
339
|
+
`,qt=`
|
|
340
|
+
${S}
|
|
341
|
+
query ConfigurationsByScope($scope: ConfigScope!, $scopeId: ID) {
|
|
342
|
+
configurationsByScope(scope: $scope, scopeId: $scopeId) { ...ConfigurationFields }
|
|
343
|
+
}
|
|
344
|
+
`,Lt=`
|
|
345
|
+
${S}
|
|
346
|
+
mutation SetConfiguration(
|
|
347
|
+
$key: String!
|
|
348
|
+
$scope: ConfigScope!
|
|
349
|
+
$value: JSON!
|
|
350
|
+
$scopeId: ID
|
|
351
|
+
$isSecret: Boolean
|
|
352
|
+
$context: ContextInput
|
|
353
|
+
) {
|
|
354
|
+
setConfiguration(
|
|
355
|
+
key: $key
|
|
356
|
+
scope: $scope
|
|
357
|
+
value: $value
|
|
358
|
+
scopeId: $scopeId
|
|
359
|
+
isSecret: $isSecret
|
|
360
|
+
context: $context
|
|
361
|
+
) { ...ConfigurationFields }
|
|
362
|
+
}
|
|
363
|
+
`,Ot=`
|
|
364
|
+
mutation DeleteConfiguration($key: String!, $scope: ConfigScope!, $scopeId: ID) {
|
|
365
|
+
deleteConfiguration(key: $key, scope: $scope, scopeId: $scopeId)
|
|
366
|
+
}
|
|
367
|
+
`,Ut=`
|
|
368
|
+
${S}
|
|
369
|
+
mutation BulkSetConfigurations($inputs: [ConfigurationInput!]!) {
|
|
370
|
+
bulkSetConfigurations(inputs: $inputs) { ...ConfigurationFields }
|
|
371
|
+
}
|
|
372
|
+
`,Rt=`
|
|
373
|
+
mutation BulkDeleteConfigurations($keys: [String!]!, $scope: ConfigScope!, $scopeId: ID) {
|
|
374
|
+
bulkDeleteConfigurations(keys: $keys, scope: $scope, scopeId: $scopeId)
|
|
375
|
+
}
|
|
376
|
+
`;function q(o){let{workspace:n}=o.gql;return {async list(t,e){return (await n.request(ht,{filter:t,pagination:e})).configurations},async get(t,e,i){return (await n.request(wt,{key:t,scope:e,scopeId:i})).configuration},async getValue(t,e,i){return (await n.request(Ft,{key:t,scope:e,scopeId:i})).configurationValue},async byScope(t,e){return (await n.request(qt,{scope:t,scopeId:e})).configurationsByScope},async set(t,e,i,a){return (await n.request(Lt,{key:t,scope:e,value:i,scopeId:a?.scopeId,isSecret:a?.isSecret,context:a?.context})).setConfiguration},async delete(t,e,i){return (await n.request(Ot,{key:t,scope:e,scopeId:i})).deleteConfiguration},async bulkSet(t){return (await n.request(Ut,{inputs:t})).bulkSetConfigurations},async bulkDelete(t,e,i){return (await n.request(Rt,{keys:t,scope:e,scopeId:i})).bulkDeleteConfigurations}}}var m=`
|
|
377
|
+
fragment DocsSiteFields on VibecontrolsDocsSite {
|
|
378
|
+
id vibeId name visibility runtime workspaceId createdAt updatedAt
|
|
379
|
+
}
|
|
380
|
+
`,E=`
|
|
381
|
+
fragment DocsPageFields on VibecontrolsDocsPage {
|
|
382
|
+
id siteId title slug content parentId sidebarPosition status
|
|
383
|
+
createdAt updatedAt
|
|
384
|
+
}
|
|
385
|
+
`,D=`
|
|
386
|
+
fragment DocsRevisionFields on VibecontrolsDocsRevision {
|
|
387
|
+
id siteId revisionNumber status buildDurationMs artifactSizeBytes
|
|
388
|
+
errorMessage publishedAt createdAt updatedAt
|
|
389
|
+
}
|
|
390
|
+
`,Bt=`
|
|
391
|
+
${m}
|
|
392
|
+
query DocsSite($vibeId: ID!) { docsSite(vibeId: $vibeId) { ...DocsSiteFields } }
|
|
393
|
+
`,Gt=`
|
|
394
|
+
${m}
|
|
395
|
+
query DocsSites($filter: VibecontrolsDocsSiteFilterInput, $pagination: PaginationInput) {
|
|
396
|
+
docsSites(filter: $filter, pagination: $pagination) {
|
|
397
|
+
items { ...DocsSiteFields }
|
|
398
|
+
total
|
|
399
|
+
hasMore
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
`,Wt=`
|
|
403
|
+
${E}
|
|
404
|
+
query DocsPage($id: ID!) { docsPage(id: $id) { ...DocsPageFields } }
|
|
405
|
+
`,Mt=`
|
|
406
|
+
${E}
|
|
407
|
+
query DocsPages($siteId: ID!, $filter: DocsPageFilterInput) {
|
|
408
|
+
docsPages(siteId: $siteId, filter: $filter) { ...DocsPageFields }
|
|
409
|
+
}
|
|
410
|
+
`,Ht=`
|
|
411
|
+
${D}
|
|
412
|
+
query DocsRevision($id: ID!) { docsRevision(id: $id) { ...DocsRevisionFields } }
|
|
413
|
+
`,Kt=`
|
|
414
|
+
${D}
|
|
415
|
+
query DocsRevisions($siteId: ID!, $pagination: PaginationInput) {
|
|
416
|
+
docsRevisions(siteId: $siteId, pagination: $pagination) {
|
|
417
|
+
items { ...DocsRevisionFields }
|
|
418
|
+
total
|
|
419
|
+
hasMore
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
`,Jt=`
|
|
423
|
+
query DocsContent($siteId: ID!, $path: String!) {
|
|
424
|
+
docsContent(siteId: $siteId, path: $path)
|
|
425
|
+
}
|
|
426
|
+
`,jt=`
|
|
427
|
+
${m}
|
|
428
|
+
mutation CreateDocsSite($input: CreateDocsSiteInput!) {
|
|
429
|
+
createDocsSite(input: $input) { ...DocsSiteFields }
|
|
430
|
+
}
|
|
431
|
+
`,Xt=`
|
|
432
|
+
${m}
|
|
433
|
+
mutation UpdateDocsSite($id: ID!, $input: UpdateDocsSiteInput!) {
|
|
434
|
+
updateDocsSite(id: $id, input: $input) { ...DocsSiteFields }
|
|
435
|
+
}
|
|
436
|
+
`,Yt=`
|
|
437
|
+
${m}
|
|
438
|
+
mutation UpdateDocsSiteVisibility($id: ID!, $visibility: DocsVisibility!) {
|
|
439
|
+
updateDocsSiteVisibility(id: $id, visibility: $visibility) { ...DocsSiteFields }
|
|
440
|
+
}
|
|
441
|
+
`,zt="mutation DeleteDocsSite($id: ID!) { deleteDocsSite(id: $id) }",Qt=`
|
|
442
|
+
${E}
|
|
443
|
+
mutation CreateDocsPage($input: CreateDocsPageInput!) {
|
|
444
|
+
createDocsPage(input: $input) { ...DocsPageFields }
|
|
445
|
+
}
|
|
446
|
+
`,Zt=`
|
|
447
|
+
${E}
|
|
448
|
+
mutation UpdateDocsPage($id: ID!, $input: UpdateDocsPageInput!) {
|
|
449
|
+
updateDocsPage(id: $id, input: $input) { ...DocsPageFields }
|
|
450
|
+
}
|
|
451
|
+
`,te="mutation DeleteDocsPage($id: ID!) { deleteDocsPage(id: $id) }",ee=`
|
|
452
|
+
mutation ReorderDocsPages($siteId: ID!, $orders: [DocsPageOrderInput!]!) {
|
|
453
|
+
reorderDocsPages(siteId: $siteId, orders: $orders)
|
|
454
|
+
}
|
|
455
|
+
`,ne=`
|
|
456
|
+
${D}
|
|
457
|
+
mutation CompileDocsSite($siteId: ID!) {
|
|
458
|
+
compileDocsSite(siteId: $siteId) { ...DocsRevisionFields }
|
|
459
|
+
}
|
|
460
|
+
`,ie=`
|
|
461
|
+
${D}
|
|
462
|
+
mutation PublishDocsRevision($revisionId: ID!) {
|
|
463
|
+
publishDocsRevision(revisionId: $revisionId) { ...DocsRevisionFields }
|
|
464
|
+
}
|
|
465
|
+
`,oe=`
|
|
466
|
+
${D}
|
|
467
|
+
mutation RollbackDocsRevision($siteId: ID!, $revisionNumber: Int!) {
|
|
468
|
+
rollbackDocsRevision(siteId: $siteId, revisionNumber: $revisionNumber) {
|
|
469
|
+
...DocsRevisionFields
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
`,ae=`
|
|
473
|
+
mutation GenerateDocsSignedUrl($siteId: ID!) {
|
|
474
|
+
generateDocsSignedUrl(siteId: $siteId)
|
|
475
|
+
}
|
|
476
|
+
`;function L(o){let{workspace:n}=o.gql;return {async getSite(t){return (await n.request(Bt,{vibeId:t})).docsSite},async listSites(t,e){return (await n.request(Gt,{filter:t,pagination:e})).docsSites},async createSite(t){return (await n.request(jt,{input:t})).createDocsSite},async updateSite(t,e){return (await n.request(Xt,{id:t,input:e})).updateDocsSite},async updateSiteVisibility(t,e){return (await n.request(Yt,{id:t,visibility:e})).updateDocsSiteVisibility},async deleteSite(t){return (await n.request(zt,{id:t})).deleteDocsSite},async getPage(t){return (await n.request(Wt,{id:t})).docsPage},async listPages(t,e){return (await n.request(Mt,{siteId:t,filter:e})).docsPages},async createPage(t){return (await n.request(Qt,{input:t})).createDocsPage},async updatePage(t,e){return (await n.request(Zt,{id:t,input:e})).updateDocsPage},async deletePage(t){return (await n.request(te,{id:t})).deleteDocsPage},async reorderPages(t,e){return (await n.request(ee,{siteId:t,orders:e})).reorderDocsPages},async getRevision(t){return (await n.request(Ht,{id:t})).docsRevision},async listRevisions(t,e){return (await n.request(Kt,{siteId:t,pagination:e})).docsRevisions},async compileSite(t){return (await n.request(ne,{siteId:t})).compileDocsSite},async publishRevision(t){return (await n.request(ie,{revisionId:t})).publishDocsRevision},async rollbackRevision(t,e){return (await n.request(oe,{siteId:t,revisionNumber:e})).rollbackDocsRevision},async getContent(t,e){return (await n.request(Jt,{siteId:t,path:e})).docsContent},async generateSignedUrl(t){return (await n.request(ae,{siteId:t})).generateDocsSignedUrl}}}var c=`
|
|
477
|
+
fragment NoteFields on VibecontrolsNote {
|
|
478
|
+
id title content tags isPinned vibeId createdBy metadata
|
|
479
|
+
workspaceId createdAt updatedAt deletedAt
|
|
480
|
+
}
|
|
481
|
+
`,se=`
|
|
482
|
+
${c}
|
|
483
|
+
query Notes($filter: VibecontrolsNoteFilterInput, $pagination: PaginationInput) {
|
|
484
|
+
notes(filter: $filter, pagination: $pagination) {
|
|
485
|
+
items { ...NoteFields }
|
|
486
|
+
total
|
|
487
|
+
hasMore
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
`,re=`
|
|
491
|
+
${c}
|
|
492
|
+
query Note($id: ID!) { note(id: $id) { ...NoteFields } }
|
|
493
|
+
`,ce=`
|
|
494
|
+
${c}
|
|
495
|
+
query SearchNotes($query: String!, $vibeId: ID, $limit: Int) {
|
|
496
|
+
searchNotes(query: $query, vibeId: $vibeId, limit: $limit) { ...NoteFields }
|
|
497
|
+
}
|
|
498
|
+
`,de=`
|
|
499
|
+
${c}
|
|
500
|
+
query NotesByTags($tags: [String!]!, $vibeId: ID) {
|
|
501
|
+
notesByTags(tags: $tags, vibeId: $vibeId) { ...NoteFields }
|
|
502
|
+
}
|
|
503
|
+
`,ue=`
|
|
504
|
+
${c}
|
|
505
|
+
query PinnedNotes($vibeId: ID) {
|
|
506
|
+
pinnedNotes(vibeId: $vibeId) { ...NoteFields }
|
|
507
|
+
}
|
|
508
|
+
`,le=`
|
|
509
|
+
${c}
|
|
510
|
+
mutation CreateNote($input: CreateVibecontrolsNoteInput!) {
|
|
511
|
+
createNote(input: $input) { ...NoteFields }
|
|
512
|
+
}
|
|
513
|
+
`,pe=`
|
|
514
|
+
${c}
|
|
515
|
+
mutation UpdateNote($id: ID!, $input: UpdateVibecontrolsNoteInput!) {
|
|
516
|
+
updateNote(id: $id, input: $input) { ...NoteFields }
|
|
517
|
+
}
|
|
518
|
+
`,ge="mutation DeleteNote($id: ID!) { deleteNote(id: $id) }",be=`
|
|
519
|
+
${c}
|
|
520
|
+
mutation PinNote($id: ID!) { pinNote(id: $id) { ...NoteFields } }
|
|
521
|
+
`,Ie=`
|
|
522
|
+
${c}
|
|
523
|
+
mutation UnpinNote($id: ID!) { unpinNote(id: $id) { ...NoteFields } }
|
|
524
|
+
`,Ae=`
|
|
525
|
+
mutation BulkDeleteNotes($ids: [ID!]!) { bulkDeleteNotes(ids: $ids) }
|
|
526
|
+
`;function O(o){let{workspace:n}=o.gql;return {async list(t,e){return (await n.request(se,{filter:t,pagination:e})).notes},async get(t){return (await n.request(re,{id:t})).note},async search(t,e,i){return (await n.request(ce,{query:t,vibeId:e,limit:i})).searchNotes},async byTags(t,e){return (await n.request(de,{tags:t,vibeId:e})).notesByTags},async pinned(t){return (await n.request(ue,{vibeId:t})).pinnedNotes},async create(t){return (await n.request(le,{input:t})).createNote},async update(t,e){return (await n.request(pe,{id:t,input:e})).updateNote},async delete(t){return (await n.request(ge,{id:t})).deleteNote},async pin(t){return (await n.request(be,{id:t})).pinNote},async unpin(t){return (await n.request(Ie,{id:t})).unpinNote},async bulkDelete(t){return (await n.request(Ae,{ids:t})).bulkDeleteNotes}}}var I=`
|
|
527
|
+
fragment SandboxFields on Sandbox {
|
|
528
|
+
id name description template mode status
|
|
529
|
+
crdName podName namespace runtimeClass
|
|
530
|
+
containers {
|
|
531
|
+
name image
|
|
532
|
+
ports { containerPort name protocol }
|
|
533
|
+
env { name value }
|
|
534
|
+
command args
|
|
535
|
+
resources { requestsCpu requestsMemory limitsCpu limitsMemory }
|
|
536
|
+
}
|
|
537
|
+
containerStatuses { name ready port restartCount }
|
|
538
|
+
resources { cpuRequest cpuLimit memoryRequest memoryLimit }
|
|
539
|
+
storage { mode sizeGi mountPath retainOnDelete }
|
|
540
|
+
network { exposeService internalUrl containerUrls serviceName }
|
|
541
|
+
ttlSeconds expiresAt metadata errorMessage
|
|
542
|
+
workspaceId context createdBy createdAt updatedAt stoppedAt
|
|
543
|
+
}
|
|
544
|
+
`,V=`
|
|
545
|
+
fragment SandboxTemplateConfigFields on SandboxTemplateConfig {
|
|
546
|
+
id name description template isDefault
|
|
547
|
+
containers {
|
|
548
|
+
name image
|
|
549
|
+
ports { containerPort name protocol }
|
|
550
|
+
env { name value }
|
|
551
|
+
command args
|
|
552
|
+
resources { requestsCpu requestsMemory limitsCpu limitsMemory }
|
|
553
|
+
}
|
|
554
|
+
resources { cpuRequest cpuLimit memoryRequest memoryLimit }
|
|
555
|
+
storage { mode sizeGi mountPath retainOnDelete }
|
|
556
|
+
ttlSeconds config metadata allowedImages
|
|
557
|
+
workspaceId context createdBy createdAt updatedAt
|
|
558
|
+
}
|
|
559
|
+
`,Se=`
|
|
560
|
+
${I}
|
|
561
|
+
query ListSandboxes(
|
|
562
|
+
$filter: SandboxFilterInput
|
|
563
|
+
$pagination: SandboxPaginationInput
|
|
564
|
+
$context: ContextInput!
|
|
565
|
+
) {
|
|
566
|
+
listSandboxes(filter: $filter, pagination: $pagination, context: $context) {
|
|
567
|
+
items { ...SandboxFields }
|
|
568
|
+
total
|
|
569
|
+
hasMore
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
`,me=`
|
|
573
|
+
${I}
|
|
574
|
+
query GetSandbox($id: ID!, $context: ContextInput!) {
|
|
575
|
+
getSandbox(id: $id, context: $context) { ...SandboxFields }
|
|
576
|
+
}
|
|
577
|
+
`,De=`
|
|
578
|
+
query GetSandboxLogs(
|
|
579
|
+
$id: ID!
|
|
580
|
+
$containerName: String!
|
|
581
|
+
$tailLines: Int
|
|
582
|
+
$context: ContextInput!
|
|
583
|
+
) {
|
|
584
|
+
getSandboxLogs(
|
|
585
|
+
id: $id
|
|
586
|
+
containerName: $containerName
|
|
587
|
+
tailLines: $tailLines
|
|
588
|
+
context: $context
|
|
589
|
+
)
|
|
590
|
+
}
|
|
591
|
+
`,Te=`
|
|
592
|
+
query GetSandboxStats($context: ContextInput!) {
|
|
593
|
+
getSandboxStats(context: $context) {
|
|
594
|
+
activeSandboxes totalCreated totalDeleted runningNow provisioningNow
|
|
595
|
+
stoppedNow expiredCount failedCount totalCpuUsed totalMemoryUsed
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
`,$e=`
|
|
599
|
+
query GetSandboxConfig($context: ContextInput!) {
|
|
600
|
+
getSandboxConfig(context: $context) {
|
|
601
|
+
id defaultTtlSeconds maxTtlSeconds allowedTemplates
|
|
602
|
+
maxConcurrentPerUser maxConcurrentPerWorkspace
|
|
603
|
+
defaultCpuRequest defaultCpuLimit defaultMemoryRequest defaultMemoryLimit
|
|
604
|
+
workspaceId updatedAt
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
`,ye=`
|
|
608
|
+
${V}
|
|
609
|
+
query ListSandboxTemplates(
|
|
610
|
+
$template: SandboxTemplate
|
|
611
|
+
$pagination: SandboxPaginationInput
|
|
612
|
+
$context: ContextInput!
|
|
613
|
+
) {
|
|
614
|
+
listSandboxTemplates(template: $template, pagination: $pagination, context: $context) {
|
|
615
|
+
items { ...SandboxTemplateConfigFields }
|
|
616
|
+
total
|
|
617
|
+
hasMore
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
`,Ee=`
|
|
621
|
+
${V}
|
|
622
|
+
query GetSandboxTemplate($id: ID!, $context: ContextInput!) {
|
|
623
|
+
getSandboxTemplate(id: $id, context: $context) { ...SandboxTemplateConfigFields }
|
|
624
|
+
}
|
|
625
|
+
`,Ve=`
|
|
626
|
+
${I}
|
|
627
|
+
mutation CreateSandbox($input: CreateSandboxInput!) {
|
|
628
|
+
createSandbox(input: $input) { ...SandboxFields }
|
|
629
|
+
}
|
|
630
|
+
`,ke=`
|
|
631
|
+
mutation DeleteSandbox($id: ID!, $context: ContextInput!) {
|
|
632
|
+
deleteSandbox(id: $id, context: $context)
|
|
633
|
+
}
|
|
634
|
+
`,Ce=`
|
|
635
|
+
${I}
|
|
636
|
+
mutation StopSandbox($id: ID!, $context: ContextInput!) {
|
|
637
|
+
stopSandbox(id: $id, context: $context) { ...SandboxFields }
|
|
638
|
+
}
|
|
639
|
+
`,Pe=`
|
|
640
|
+
${I}
|
|
641
|
+
mutation StartSandbox($id: ID!, $context: ContextInput!) {
|
|
642
|
+
startSandbox(id: $id, context: $context) { ...SandboxFields }
|
|
643
|
+
}
|
|
644
|
+
`,xe=`
|
|
645
|
+
${I}
|
|
646
|
+
mutation ExtendSandboxTTL($id: ID!, $additionalSeconds: Int!, $context: ContextInput!) {
|
|
647
|
+
extendSandboxTTL(id: $id, additionalSeconds: $additionalSeconds, context: $context) {
|
|
648
|
+
...SandboxFields
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
`,ve=`
|
|
652
|
+
${V}
|
|
653
|
+
mutation CreateSandboxTemplate($input: CreateSandboxTemplateInput!) {
|
|
654
|
+
createSandboxTemplate(input: $input) { ...SandboxTemplateConfigFields }
|
|
655
|
+
}
|
|
656
|
+
`,fe=`
|
|
657
|
+
${V}
|
|
658
|
+
mutation UpdateSandboxTemplate($input: UpdateSandboxTemplateInput!) {
|
|
659
|
+
updateSandboxTemplate(input: $input) { ...SandboxTemplateConfigFields }
|
|
660
|
+
}
|
|
661
|
+
`,Ne=`
|
|
662
|
+
mutation DeleteSandboxTemplate($id: ID!, $context: ContextInput!) {
|
|
663
|
+
deleteSandboxTemplate(id: $id, context: $context)
|
|
664
|
+
}
|
|
665
|
+
`,_e=`
|
|
666
|
+
mutation UpdateSandboxConfig($input: UpdateSandboxConfigInput!) {
|
|
667
|
+
updateSandboxConfig(input: $input) {
|
|
668
|
+
id defaultTtlSeconds maxTtlSeconds allowedTemplates
|
|
669
|
+
maxConcurrentPerUser maxConcurrentPerWorkspace
|
|
670
|
+
defaultCpuRequest defaultCpuLimit defaultMemoryRequest defaultMemoryLimit
|
|
671
|
+
workspaceId updatedAt
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
`;function U(o){let{workspace:n}=o.gql;return {async list(t,e,i){return (await n.request(Se,{filter:t,pagination:e,context:i})).listSandboxes},async get(t,e){return (await n.request(me,{id:t,context:e})).getSandbox},async create(t){return (await n.request(Ve,{input:t})).createSandbox},async delete(t,e){return (await n.request(ke,{id:t,context:e})).deleteSandbox},async start(t,e){return (await n.request(Pe,{id:t,context:e})).startSandbox},async stop(t,e){return (await n.request(Ce,{id:t,context:e})).stopSandbox},async extendTTL(t,e,i){return (await n.request(xe,{id:t,additionalSeconds:e,context:i})).extendSandboxTTL},async getLogs(t,e,i,a){return (await n.request(De,{id:t,containerName:e,tailLines:a,context:i})).getSandboxLogs},async getStats(t){return (await n.request(Te,{context:t})).getSandboxStats},async getConfig(t){return (await n.request($e,{context:t})).getSandboxConfig},async updateConfig(t){return (await n.request(_e,{input:t})).updateSandboxConfig},async listTemplates(t,e,i){return (await n.request(ye,{template:e,pagination:i,context:t})).listSandboxTemplates},async getTemplate(t,e){return (await n.request(Ee,{id:t,context:e})).getSandboxTemplate},async createTemplate(t){return (await n.request(ve,{input:t})).createSandboxTemplate},async updateTemplate(t){return (await n.request(fe,{input:t})).updateSandboxTemplate},async deleteTemplate(t,e){return (await n.request(Ne,{id:t,context:e})).deleteSandboxTemplate}}}var u=`
|
|
675
|
+
fragment SessionFields on Session {
|
|
676
|
+
id name type status agentId vibeId workspaceId
|
|
677
|
+
command args workingDirectory environmentVariables
|
|
678
|
+
tmuxSessionName tmuxWindowName metadata
|
|
679
|
+
startedAt stoppedAt createdAt updatedAt deletedAt
|
|
680
|
+
}
|
|
681
|
+
`,he=`
|
|
682
|
+
${u}
|
|
683
|
+
query Sessions($filter: SessionFilterInput, $pagination: PaginationInput) {
|
|
684
|
+
sessions(filter: $filter, pagination: $pagination) {
|
|
685
|
+
items { ...SessionFields }
|
|
686
|
+
total
|
|
687
|
+
hasMore
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
`,we=`
|
|
691
|
+
${u}
|
|
692
|
+
query Session($id: ID!) { session(id: $id) { ...SessionFields } }
|
|
693
|
+
`,Fe=`
|
|
694
|
+
${u}
|
|
695
|
+
mutation CreateSession($input: CreateSessionInput!) {
|
|
696
|
+
createSession(input: $input) { ...SessionFields }
|
|
697
|
+
}
|
|
698
|
+
`,qe=`
|
|
699
|
+
${u}
|
|
700
|
+
mutation UpdateSession($id: ID!, $input: UpdateSessionInput!) {
|
|
701
|
+
updateSession(id: $id, input: $input) { ...SessionFields }
|
|
702
|
+
}
|
|
703
|
+
`,Le="mutation DeleteSession($id: ID!) { deleteSession(id: $id) }",Oe=`
|
|
704
|
+
${u}
|
|
705
|
+
mutation UpdateSessionStatus($id: ID!, $status: VibecontrolsSessionStatus!) {
|
|
706
|
+
updateSessionStatus(id: $id, status: $status) { ...SessionFields }
|
|
707
|
+
}
|
|
708
|
+
`,Ue=`
|
|
709
|
+
${u}
|
|
710
|
+
mutation StartSession($id: ID!) { startSession(id: $id) { ...SessionFields } }
|
|
711
|
+
`,Re=`
|
|
712
|
+
${u}
|
|
713
|
+
mutation StopSession($id: ID!) { stopSession(id: $id) { ...SessionFields } }
|
|
714
|
+
`,Be="mutation KillSession($id: ID!) { killSession(id: $id) }";function R(o){let{workspace:n}=o.gql;return {async list(t,e){return (await n.request(he,{filter:t,pagination:e})).sessions},async get(t){return (await n.request(we,{id:t})).session},async create(t){return (await n.request(Fe,{input:t})).createSession},async update(t,e){return (await n.request(qe,{id:t,input:e})).updateSession},async delete(t){return (await n.request(Le,{id:t})).deleteSession},async updateStatus(t,e){return (await n.request(Oe,{id:t,status:e})).updateSessionStatus},async start(t){return (await n.request(Ue,{id:t})).startSession},async stop(t){return (await n.request(Re,{id:t})).stopSession},async kill(t){return (await n.request(Be,{id:t})).killSession}}}var A=`
|
|
715
|
+
fragment TargetFields on Target {
|
|
716
|
+
id name type host port username status workspaceId createdAt updatedAt
|
|
717
|
+
}
|
|
718
|
+
`,C=`
|
|
719
|
+
fragment AgentConnectionFields on AgentConnection {
|
|
720
|
+
id sourceAgentId targetId protocol status permissions createdAt updatedAt
|
|
721
|
+
}
|
|
722
|
+
`,Ge=`
|
|
723
|
+
${A}
|
|
724
|
+
query Targets($workspaceId: ID!, $filter: TargetFilterInput, $limit: Int, $offset: Int) {
|
|
725
|
+
targets(workspaceId: $workspaceId, filter: $filter, limit: $limit, offset: $offset) {
|
|
726
|
+
items { ...TargetFields }
|
|
727
|
+
total
|
|
728
|
+
hasMore
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
`,We=`
|
|
732
|
+
${A}
|
|
733
|
+
query Target($id: ID!) { target(id: $id) { ...TargetFields } }
|
|
734
|
+
`,Me=`
|
|
735
|
+
${A}
|
|
736
|
+
${C}
|
|
737
|
+
query AgentGraph($workspaceId: ID!, $rootAgentId: ID) {
|
|
738
|
+
agentGraph(workspaceId: $workspaceId, rootAgentId: $rootAgentId) {
|
|
739
|
+
agents {
|
|
740
|
+
id name hostname platform architecture version
|
|
741
|
+
tunnelUrl tunnelStatus apiUrl agentApiKey appId appClientId
|
|
742
|
+
capabilities configuration isActive lastHeartbeat metadata
|
|
743
|
+
workspaceId createdAt updatedAt deletedAt
|
|
744
|
+
}
|
|
745
|
+
connections { ...AgentConnectionFields }
|
|
746
|
+
}
|
|
747
|
+
}
|
|
748
|
+
`,He=`
|
|
749
|
+
${A}
|
|
750
|
+
mutation CreateTarget($workspaceId: ID!, $input: CreateTargetInput!) {
|
|
751
|
+
createTarget(workspaceId: $workspaceId, input: $input) { ...TargetFields }
|
|
752
|
+
}
|
|
753
|
+
`,Ke=`
|
|
754
|
+
${A}
|
|
755
|
+
mutation UpdateTarget($id: ID!, $input: UpdateTargetInput!) {
|
|
756
|
+
updateTarget(id: $id, input: $input) { ...TargetFields }
|
|
757
|
+
}
|
|
758
|
+
`,Je="mutation DeleteTarget($id: ID!) { deleteTarget(id: $id) }",je=`
|
|
759
|
+
mutation TestTarget($id: ID!) {
|
|
760
|
+
testTarget(id: $id) { success error latencyMs }
|
|
761
|
+
}
|
|
762
|
+
`,Xe=`
|
|
763
|
+
query ScanSSHConfig($agentId: ID!, $configPath: String) {
|
|
764
|
+
scanSSHConfig(agentId: $agentId, configPath: $configPath) {
|
|
765
|
+
name host port username type
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
`,Ye=`
|
|
769
|
+
${A}
|
|
770
|
+
mutation ImportTargetsFromConfig(
|
|
771
|
+
$agentId: ID!, $hosts: [ImportTargetHostInput!]!, $workspaceId: ID!
|
|
772
|
+
) {
|
|
773
|
+
importTargetsFromConfig(agentId: $agentId, hosts: $hosts, workspaceId: $workspaceId) {
|
|
774
|
+
...TargetFields
|
|
775
|
+
}
|
|
776
|
+
}
|
|
777
|
+
`,ze=`
|
|
778
|
+
mutation InstallAgentOnTarget($sourceAgentId: ID!, $targetId: ID!, $agentPort: Int) {
|
|
779
|
+
installAgentOnTarget(
|
|
780
|
+
sourceAgentId: $sourceAgentId, targetId: $targetId, agentPort: $agentPort
|
|
781
|
+
) { success error }
|
|
782
|
+
}
|
|
783
|
+
`,Qe=`
|
|
784
|
+
mutation UninstallAgentFromTarget($targetId: ID!) {
|
|
785
|
+
uninstallAgentFromTarget(targetId: $targetId) { success error }
|
|
786
|
+
}
|
|
787
|
+
`,Ze=`
|
|
788
|
+
mutation StartTerminal($targetId: ID!, $shell: String) {
|
|
789
|
+
startTerminal(targetId: $targetId, shell: $shell) { sessionId ttydUrl }
|
|
790
|
+
}
|
|
791
|
+
`,tn="mutation StopTerminal($sessionId: ID!) { stopTerminal(sessionId: $sessionId) }",en=`
|
|
792
|
+
${C}
|
|
793
|
+
mutation ConnectAgentToTarget($sourceAgentId: ID!, $targetId: ID!, $protocol: String!) {
|
|
794
|
+
connectAgentToTarget(sourceAgentId: $sourceAgentId, targetId: $targetId, protocol: $protocol) {
|
|
795
|
+
...AgentConnectionFields
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
`,nn=`
|
|
799
|
+
mutation DisconnectAgentFromTarget($connectionId: ID!) {
|
|
800
|
+
disconnectAgentFromTarget(connectionId: $connectionId)
|
|
801
|
+
}
|
|
802
|
+
`,on=`
|
|
803
|
+
${C}
|
|
804
|
+
mutation UpdateConnectionPermissions(
|
|
805
|
+
$connectionId: ID!, $input: UpdateConnectionPermissionsInput!
|
|
806
|
+
) {
|
|
807
|
+
updateConnectionPermissions(connectionId: $connectionId, input: $input) {
|
|
808
|
+
...AgentConnectionFields
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
`,an=`
|
|
812
|
+
mutation GenerateAgentGraphContextUrl($workspaceId: ID!, $expiresInMinutes: Int) {
|
|
813
|
+
generateAgentGraphContextUrl(workspaceId: $workspaceId, expiresInMinutes: $expiresInMinutes)
|
|
814
|
+
}
|
|
815
|
+
`;function B(o){let{workspace:n}=o.gql;return {async list(t,e,i,a){return (await n.request(Ge,{workspaceId:t,filter:e,limit:i,offset:a})).targets},async get(t){return (await n.request(We,{id:t})).target},async getAgentGraph(t,e){return (await n.request(Me,{workspaceId:t,rootAgentId:e})).agentGraph},async create(t,e){return (await n.request(He,{workspaceId:t,input:e})).createTarget},async update(t,e){return (await n.request(Ke,{id:t,input:e})).updateTarget},async delete(t){return (await n.request(Je,{id:t})).deleteTarget},async test(t){return (await n.request(je,{id:t})).testTarget},async scanSSHConfig(t,e){return (await n.request(Xe,{agentId:t,configPath:e})).scanSSHConfig},async importFromConfig(t,e,i){return (await n.request(Ye,{agentId:t,hosts:e,workspaceId:i})).importTargetsFromConfig},async installAgent(t,e,i){return (await n.request(ze,{sourceAgentId:t,targetId:e,agentPort:i})).installAgentOnTarget},async uninstallAgent(t){return (await n.request(Qe,{targetId:t})).uninstallAgentFromTarget},async startTerminal(t,e){return (await n.request(Ze,{targetId:t,shell:e})).startTerminal},async stopTerminal(t){return (await n.request(tn,{sessionId:t})).stopTerminal},async connectAgent(t,e,i){return (await n.request(en,{sourceAgentId:t,targetId:e,protocol:i})).connectAgentToTarget},async disconnectAgent(t){return (await n.request(nn,{connectionId:t})).disconnectAgentFromTarget},async updateConnectionPermissions(t,e){return (await n.request(on,{connectionId:t,input:e})).updateConnectionPermissions},async generateGraphContextUrl(t,e){return (await n.request(an,{workspaceId:t,expiresInMinutes:e})).generateAgentGraphContextUrl}}}var sn=`
|
|
816
|
+
query VibecontrolsAgentTunnels {
|
|
817
|
+
vibecontrolsAgentTunnels {
|
|
818
|
+
items { id agentId tunnelUrl status provider createdAt metadata }
|
|
819
|
+
total
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
`,rn=`
|
|
823
|
+
mutation CreateAgentTunnel($input: CreateAgentTunnelInput!) {
|
|
824
|
+
createAgentTunnel(input: $input) {
|
|
825
|
+
id agentId tunnelUrl status provider createdAt metadata
|
|
826
|
+
}
|
|
827
|
+
}
|
|
828
|
+
`,cn=`
|
|
829
|
+
mutation StopAgentTunnel($agentId: ID!, $tunnelId: ID!) {
|
|
830
|
+
stopAgentTunnel(agentId: $agentId, tunnelId: $tunnelId)
|
|
831
|
+
}
|
|
832
|
+
`,dn=`
|
|
833
|
+
mutation DeleteAgentTunnel($agentId: ID!, $tunnelId: ID!) {
|
|
834
|
+
deleteAgentTunnel(agentId: $agentId, tunnelId: $tunnelId)
|
|
835
|
+
}
|
|
836
|
+
`;function G(o){let{workspace:n}=o.gql;return {async list(){return (await n.request(sn)).vibecontrolsAgentTunnels},async create(t){return (await n.request(rn,{input:t})).createAgentTunnel},async stop(t,e){return (await n.request(cn,{agentId:t,tunnelId:e})).stopAgentTunnel},async delete(t,e){return (await n.request(dn,{agentId:t,tunnelId:e})).deleteAgentTunnel}}}var l=`
|
|
837
|
+
fragment UISessionFields on UISession {
|
|
838
|
+
id userId state activeVibeId activeSessionId
|
|
839
|
+
recentVibes recentSessions workspaceId createdAt updatedAt
|
|
840
|
+
}
|
|
841
|
+
`,un=`
|
|
842
|
+
${l}
|
|
843
|
+
query UISession { uiSession { ...UISessionFields } }
|
|
844
|
+
`,ln=`
|
|
845
|
+
${l}
|
|
846
|
+
query UISessionById($id: ID!) { uiSessionById(id: $id) { ...UISessionFields } }
|
|
847
|
+
`,pn=`
|
|
848
|
+
${l}
|
|
849
|
+
mutation SaveUISession($input: SaveUISessionInput!) {
|
|
850
|
+
saveUISession(input: $input) { ...UISessionFields }
|
|
851
|
+
}
|
|
852
|
+
`,gn="mutation ClearUISession { clearUISession }",bn=`
|
|
853
|
+
${l}
|
|
854
|
+
mutation UpdateActiveVibe($vibeId: ID) {
|
|
855
|
+
updateActiveVibe(vibeId: $vibeId) { ...UISessionFields }
|
|
856
|
+
}
|
|
857
|
+
`,In=`
|
|
858
|
+
${l}
|
|
859
|
+
mutation UpdateActiveSession($sessionId: ID) {
|
|
860
|
+
updateActiveSession(sessionId: $sessionId) { ...UISessionFields }
|
|
861
|
+
}
|
|
862
|
+
`,An=`
|
|
863
|
+
${l}
|
|
864
|
+
mutation AddRecentVibe($vibeId: ID!) {
|
|
865
|
+
addRecentVibe(vibeId: $vibeId) { ...UISessionFields }
|
|
866
|
+
}
|
|
867
|
+
`,Sn=`
|
|
868
|
+
${l}
|
|
869
|
+
mutation AddRecentSession($sessionId: ID!) {
|
|
870
|
+
addRecentSession(sessionId: $sessionId) { ...UISessionFields }
|
|
871
|
+
}
|
|
872
|
+
`;function W(o){let{workspace:n}=o.gql;return {async getCurrent(){return (await n.request(un)).uiSession},async getById(t){return (await n.request(ln,{id:t})).uiSessionById},async save(t){return (await n.request(pn,{input:t})).saveUISession},async clear(){return (await n.request(gn)).clearUISession},async updateActiveVibe(t){return (await n.request(bn,{vibeId:t??null})).updateActiveVibe},async updateActiveSession(t){return (await n.request(In,{sessionId:t??null})).updateActiveSession},async addRecentVibe(t){return (await n.request(An,{vibeId:t})).addRecentVibe},async addRecentSession(t){return (await n.request(Sn,{sessionId:t})).addRecentSession}}}var p=`
|
|
873
|
+
fragment VibeDeckFields on VibeDeck {
|
|
874
|
+
id name description isDefault workspaceId createdAt updatedAt
|
|
875
|
+
}
|
|
876
|
+
`,T=`
|
|
877
|
+
fragment VibeDeckButtonFields on VibeDeckButton {
|
|
878
|
+
id vibeDeckId label icon actionType actionId
|
|
879
|
+
action { id name actionType }
|
|
880
|
+
command script webhookUrl row column color category tags
|
|
881
|
+
confirmationRequired keyboardShortcut style sortOrder
|
|
882
|
+
createdAt updatedAt
|
|
883
|
+
}
|
|
884
|
+
`,mn=`
|
|
885
|
+
${p}
|
|
886
|
+
query VibeDecks($filter: VibeDeckFilterInput, $pagination: PaginationInput) {
|
|
887
|
+
vibeDecks(filter: $filter, pagination: $pagination) {
|
|
888
|
+
items { ...VibeDeckFields }
|
|
889
|
+
total
|
|
890
|
+
hasMore
|
|
891
|
+
}
|
|
892
|
+
}
|
|
893
|
+
`,Dn=`
|
|
894
|
+
${p}
|
|
895
|
+
query VibeDeck($id: ID!) { vibeDeck(id: $id) { ...VibeDeckFields } }
|
|
896
|
+
`,Tn=`
|
|
897
|
+
${p}
|
|
898
|
+
query DefaultVibeDeck { defaultVibeDeck { ...VibeDeckFields } }
|
|
899
|
+
`,$n=`
|
|
900
|
+
${T}
|
|
901
|
+
query VibeDeckButtons($filter: VibeDeckButtonFilterInput, $pagination: PaginationInput) {
|
|
902
|
+
vibeDeckButtons(filter: $filter, pagination: $pagination) {
|
|
903
|
+
items { ...VibeDeckButtonFields }
|
|
904
|
+
total
|
|
905
|
+
hasMore
|
|
906
|
+
}
|
|
907
|
+
}
|
|
908
|
+
`,yn=`
|
|
909
|
+
${T}
|
|
910
|
+
query VibeDeckButton($id: ID!) { vibeDeckButton(id: $id) { ...VibeDeckButtonFields } }
|
|
911
|
+
`,En=`
|
|
912
|
+
${p}
|
|
913
|
+
mutation CreateVibeDeck($input: CreateVibeDeckInput!) {
|
|
914
|
+
createVibeDeck(input: $input) { ...VibeDeckFields }
|
|
915
|
+
}
|
|
916
|
+
`,Vn=`
|
|
917
|
+
${p}
|
|
918
|
+
mutation UpdateVibeDeck($id: ID!, $input: UpdateVibeDeckInput!) {
|
|
919
|
+
updateVibeDeck(id: $id, input: $input) { ...VibeDeckFields }
|
|
920
|
+
}
|
|
921
|
+
`,kn="mutation DeleteVibeDeck($id: ID!) { deleteVibeDeck(id: $id) }",Cn=`
|
|
922
|
+
${p}
|
|
923
|
+
mutation SetDefaultVibeDeck($id: ID!) {
|
|
924
|
+
setDefaultVibeDeck(id: $id) { ...VibeDeckFields }
|
|
925
|
+
}
|
|
926
|
+
`,Pn=`
|
|
927
|
+
${p}
|
|
928
|
+
mutation DuplicateVibeDeck($id: ID!) {
|
|
929
|
+
duplicateVibeDeck(id: $id) { ...VibeDeckFields }
|
|
930
|
+
}
|
|
931
|
+
`,xn=`
|
|
932
|
+
${T}
|
|
933
|
+
mutation CreateVibeDeckButton($input: CreateVibeDeckButtonInput!) {
|
|
934
|
+
createVibeDeckButton(input: $input) { ...VibeDeckButtonFields }
|
|
935
|
+
}
|
|
936
|
+
`,vn=`
|
|
937
|
+
${T}
|
|
938
|
+
mutation UpdateVibeDeckButton($id: ID!, $input: UpdateVibeDeckButtonInput!) {
|
|
939
|
+
updateVibeDeckButton(id: $id, input: $input) { ...VibeDeckButtonFields }
|
|
940
|
+
}
|
|
941
|
+
`,fn=`
|
|
942
|
+
mutation DeleteVibeDeckButton($id: ID!) { deleteVibeDeckButton(id: $id) }
|
|
943
|
+
`,Nn=`
|
|
944
|
+
${T}
|
|
945
|
+
mutation MoveVibeDeckButton($id: ID!, $input: MoveVibeDeckButtonInput!) {
|
|
946
|
+
moveVibeDeckButton(id: $id, input: $input) { ...VibeDeckButtonFields }
|
|
947
|
+
}
|
|
948
|
+
`,_n=`
|
|
949
|
+
mutation ReorderVibeDeckButtons($vibeDeckId: ID!, $positions: [VibeDeckButtonPositionInput!]!) {
|
|
950
|
+
reorderVibeDeckButtons(vibeDeckId: $vibeDeckId, positions: $positions)
|
|
951
|
+
}
|
|
952
|
+
`,hn=`
|
|
953
|
+
mutation ExecuteVibeDeckButton($id: ID!) {
|
|
954
|
+
executeVibeDeckButton(id: $id) { success output error }
|
|
955
|
+
}
|
|
956
|
+
`;function M(o){let{workspace:n}=o.gql;return {async list(t,e){return (await n.request(mn,{filter:t,pagination:e})).vibeDecks},async get(t){return (await n.request(Dn,{id:t})).vibeDeck},async getDefault(){return (await n.request(Tn)).defaultVibeDeck},async create(t){return (await n.request(En,{input:t})).createVibeDeck},async update(t,e){return (await n.request(Vn,{id:t,input:e})).updateVibeDeck},async delete(t){return (await n.request(kn,{id:t})).deleteVibeDeck},async setDefault(t){return (await n.request(Cn,{id:t})).setDefaultVibeDeck},async duplicate(t){return (await n.request(Pn,{id:t})).duplicateVibeDeck},async listButtons(t,e){return (await n.request($n,{filter:t,pagination:e})).vibeDeckButtons},async getButton(t){return (await n.request(yn,{id:t})).vibeDeckButton},async createButton(t){return (await n.request(xn,{input:t})).createVibeDeckButton},async updateButton(t,e){return (await n.request(vn,{id:t,input:e})).updateVibeDeckButton},async deleteButton(t){return (await n.request(fn,{id:t})).deleteVibeDeckButton},async moveButton(t,e){return (await n.request(Nn,{id:t,input:e})).moveVibeDeckButton},async reorderButtons(t,e){return (await n.request(_n,{vibeDeckId:t,positions:e})).reorderVibeDeckButtons},async executeButton(t){return (await n.request(hn,{id:t})).executeVibeDeckButton}}}var r=`
|
|
957
|
+
fragment VibeFields on Vibe {
|
|
958
|
+
id name description path type status agentId parentId
|
|
959
|
+
gitBranch gitRemote gitStatus environmentVariables tags metadata
|
|
960
|
+
workspaceId archivedAt createdAt updatedAt deletedAt
|
|
961
|
+
}
|
|
962
|
+
`,wn=`
|
|
963
|
+
${r}
|
|
964
|
+
query Vibes($filter: VibeFilterInput, $pagination: PaginationInput) {
|
|
965
|
+
vibes(filter: $filter, pagination: $pagination) {
|
|
966
|
+
items { ...VibeFields }
|
|
967
|
+
total
|
|
968
|
+
hasMore
|
|
969
|
+
}
|
|
970
|
+
}
|
|
971
|
+
`,Fn=`
|
|
972
|
+
${r}
|
|
973
|
+
query Vibe($id: ID!) { vibe(id: $id) { ...VibeFields } }
|
|
974
|
+
`,qn=`
|
|
975
|
+
${r}
|
|
976
|
+
mutation CreateVibe($input: CreateVibeInput!) { createVibe(input: $input) { ...VibeFields } }
|
|
977
|
+
`,Ln=`
|
|
978
|
+
${r}
|
|
979
|
+
mutation UpdateVibe($id: ID!, $input: UpdateVibeInput!) {
|
|
980
|
+
updateVibe(id: $id, input: $input) { ...VibeFields }
|
|
981
|
+
}
|
|
982
|
+
`,On="mutation DeleteVibe($id: ID!) { deleteVibe(id: $id) }",Un=`
|
|
983
|
+
${r}
|
|
984
|
+
mutation UpdateVibeStatus($id: ID!, $status: VibeStatus!) {
|
|
985
|
+
updateVibeStatus(id: $id, status: $status) { ...VibeFields }
|
|
986
|
+
}
|
|
987
|
+
`,Rn=`
|
|
988
|
+
${r}
|
|
989
|
+
mutation ArchiveVibe($id: ID!) { archiveVibe(id: $id) { ...VibeFields } }
|
|
990
|
+
`,Bn=`
|
|
991
|
+
${r}
|
|
992
|
+
mutation RestoreVibe($id: ID!) { restoreVibe(id: $id) { ...VibeFields } }
|
|
993
|
+
`,Gn=`
|
|
994
|
+
${r}
|
|
995
|
+
mutation MoveVibe($id: ID!, $newParentId: ID) {
|
|
996
|
+
moveVibe(id: $id, newParentId: $newParentId) { ...VibeFields }
|
|
997
|
+
}
|
|
998
|
+
`,Wn=`
|
|
999
|
+
${r}
|
|
1000
|
+
query VibeHierarchy($rootId: ID) {
|
|
1001
|
+
vibeHierarchy(rootId: $rootId) { ...VibeFields children { ...VibeFields } }
|
|
1002
|
+
}
|
|
1003
|
+
`,Mn=`
|
|
1004
|
+
${r}
|
|
1005
|
+
query SearchVibes($query: String!, $limit: Int) {
|
|
1006
|
+
searchVibes(query: $query, limit: $limit) { ...VibeFields }
|
|
1007
|
+
}
|
|
1008
|
+
`,Hn=`
|
|
1009
|
+
${r}
|
|
1010
|
+
mutation UpdateVibeGit($id: ID!, $gitBranch: String, $gitRemote: String, $gitStatus: JSON) {
|
|
1011
|
+
updateVibeGit(id: $id, gitBranch: $gitBranch, gitRemote: $gitRemote, gitStatus: $gitStatus) {
|
|
1012
|
+
...VibeFields
|
|
1013
|
+
}
|
|
1014
|
+
}
|
|
1015
|
+
`;function H(o){let{workspace:n}=o.gql;return {async list(t,e){return (await n.request(wn,{filter:t,pagination:e})).vibes},async get(t){return (await n.request(Fn,{id:t})).vibe},async create(t){return (await n.request(qn,{input:t})).createVibe},async update(t,e){return (await n.request(Ln,{id:t,input:e})).updateVibe},async delete(t){return (await n.request(On,{id:t})).deleteVibe},async updateStatus(t,e){return (await n.request(Un,{id:t,status:e})).updateVibeStatus},async archive(t){return (await n.request(Rn,{id:t})).archiveVibe},async restore(t){return (await n.request(Bn,{id:t})).restoreVibe},async move(t,e){return (await n.request(Gn,{id:t,newParentId:e??null})).moveVibe},async hierarchy(t){return (await n.request(Wn,{rootId:t})).vibeHierarchy},async search(t,e){return (await n.request(Mn,{query:t,limit:e})).searchVibes},async updateGit(t,e){return (await n.request(Hn,{id:t,...e})).updateVibeGit}}}var g=`
|
|
1016
|
+
fragment WebhookFields on Webhook {
|
|
1017
|
+
id name url events agentIds isActive
|
|
1018
|
+
signingKey retryPolicy deliveryCount failureCount
|
|
1019
|
+
lastDelivery lastError
|
|
1020
|
+
workspaceId createdAt updatedAt deletedAt
|
|
1021
|
+
}
|
|
1022
|
+
`,P=`
|
|
1023
|
+
fragment WebhookDeliveryFields on WebhookDelivery {
|
|
1024
|
+
id webhookId event payload statusCode response error
|
|
1025
|
+
attemptCount deliveredAt createdAt
|
|
1026
|
+
}
|
|
1027
|
+
`,Kn=`
|
|
1028
|
+
${g}
|
|
1029
|
+
query Webhooks($filter: WebhookFilterInput, $pagination: PaginationInput) {
|
|
1030
|
+
webhooks(filter: $filter, pagination: $pagination) {
|
|
1031
|
+
items { ...WebhookFields }
|
|
1032
|
+
total
|
|
1033
|
+
hasMore
|
|
1034
|
+
}
|
|
1035
|
+
}
|
|
1036
|
+
`,Jn=`
|
|
1037
|
+
${g}
|
|
1038
|
+
query Webhook($id: ID!) { webhook(id: $id) { ...WebhookFields } }
|
|
1039
|
+
`,jn=`
|
|
1040
|
+
${g}
|
|
1041
|
+
query WebhooksByEvent($event: String!) {
|
|
1042
|
+
webhooksByEvent(event: $event) { ...WebhookFields }
|
|
1043
|
+
}
|
|
1044
|
+
`,Xn=`
|
|
1045
|
+
${g}
|
|
1046
|
+
query ActiveWebhooks { activeWebhooks { ...WebhookFields } }
|
|
1047
|
+
`,Yn=`
|
|
1048
|
+
${P}
|
|
1049
|
+
query WebhookDeliveries($webhookId: ID!, $pagination: PaginationInput) {
|
|
1050
|
+
webhookDeliveries(webhookId: $webhookId, pagination: $pagination) {
|
|
1051
|
+
items { ...WebhookDeliveryFields }
|
|
1052
|
+
total
|
|
1053
|
+
hasMore
|
|
1054
|
+
}
|
|
1055
|
+
}
|
|
1056
|
+
`,zn=`
|
|
1057
|
+
${g}
|
|
1058
|
+
mutation CreateWebhook($input: CreateWebhookInput!) {
|
|
1059
|
+
createWebhook(input: $input) { ...WebhookFields }
|
|
1060
|
+
}
|
|
1061
|
+
`,Qn=`
|
|
1062
|
+
${g}
|
|
1063
|
+
mutation UpdateWebhook($id: ID!, $input: UpdateWebhookInput!) {
|
|
1064
|
+
updateWebhook(id: $id, input: $input) { ...WebhookFields }
|
|
1065
|
+
}
|
|
1066
|
+
`,Zn="mutation DeleteWebhook($id: ID!) { deleteWebhook(id: $id) }",ti=`
|
|
1067
|
+
${P}
|
|
1068
|
+
mutation TestWebhook($id: ID!) {
|
|
1069
|
+
testWebhook(id: $id) { ...WebhookDeliveryFields }
|
|
1070
|
+
}
|
|
1071
|
+
`,ei=`
|
|
1072
|
+
${P}
|
|
1073
|
+
mutation TriggerWebhook($id: ID!, $payload: JSON!) {
|
|
1074
|
+
triggerWebhook(id: $id, payload: $payload) { ...WebhookDeliveryFields }
|
|
1075
|
+
}
|
|
1076
|
+
`,ni=`
|
|
1077
|
+
${g}
|
|
1078
|
+
mutation ResetWebhookFailures($id: ID!) {
|
|
1079
|
+
resetWebhookFailures(id: $id) { ...WebhookFields }
|
|
1080
|
+
}
|
|
1081
|
+
`;function K(o){let{workspace:n}=o.gql;return {async list(t,e){return (await n.request(Kn,{filter:t,pagination:e})).webhooks},async get(t){return (await n.request(Jn,{id:t})).webhook},async byEvent(t){return (await n.request(jn,{event:t})).webhooksByEvent},async active(){return (await n.request(Xn)).activeWebhooks},async create(t){return (await n.request(zn,{input:t})).createWebhook},async update(t,e){return (await n.request(Qn,{id:t,input:e})).updateWebhook},async delete(t){return (await n.request(Zn,{id:t})).deleteWebhook},async testDelivery(t){return (await n.request(ti,{id:t})).testWebhook},async trigger(t,e){return (await n.request(ei,{id:t,payload:e})).triggerWebhook},async resetFailures(t){return (await n.request(ni,{id:t})).resetWebhookFailures},async listDeliveries(t,e){return (await n.request(Yn,{webhookId:t,pagination:e})).webhookDeliveries}}}var ii={id:"vibecontrols",version:"1.0.0",displayName:"VibeControls",attach(o){return {vibes:H(o),sessions:R(o),agents:N(o),notes:O(o),targets:B(o),tunnels:G(o),vibeDecks:M(o),actions:f(o),audit:F(o),analytics:h(o),uiSession:W(o),configuration:q(o),sandboxes:U(o),docs:L(o),aiToolEvents:_(o),webhooks:K(o)}}},Qi=ii;module.exports=Qi;
|