@fugood/bricks-cli 2.25.0-beta.60 → 2.25.0-beta.62
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/lib/10.js +1 -1
- package/lib/111.js +2 -0
- package/lib/117.js +1 -1
- package/lib/192.js +30 -0
- package/lib/209.js +112 -0
- package/lib/212.js +1 -0
- package/lib/215.js +1 -0
- package/lib/223.js +4 -4
- package/lib/247.js +1 -0
- package/lib/274.js +16 -0
- package/lib/306.js +1 -0
- package/lib/320.js +3 -0
- package/lib/332.js +13 -0
- package/lib/358.js +1 -0
- package/lib/370.js +1 -0
- package/lib/387.js +35 -0
- package/lib/405.js +1 -0
- package/lib/430.js +1 -0
- package/lib/456.js +2 -2
- package/lib/479.js +1231 -0
- package/lib/486.js +1 -0
- package/lib/511.js +1 -1
- package/lib/557.js +1 -0
- package/lib/563.js +4 -0
- package/lib/574.js +1 -0
- package/lib/583.js +22 -0
- package/lib/645.js +1 -0
- package/lib/648.js +1 -0
- package/lib/658.js +2 -0
- package/lib/663.js +1 -0
- package/lib/690.js +1 -0
- package/lib/708.js +9 -0
- package/lib/759.js +1 -0
- package/lib/785.js +1 -0
- package/lib/818.js +1 -0
- package/lib/831.js +1 -0
- package/lib/866.js +7 -0
- package/lib/907.js +872 -0
- package/lib/915.js +7 -0
- package/lib/917.js +1 -0
- package/lib/936.js +1 -0
- package/lib/940.js +19 -1
- package/lib/index.js +102 -1140
- package/lib/simulator-main.mjs +21 -0
- package/lib/simulator-preload.cjs +1 -0
- package/package.json +27 -7
- package/lib/249.js +0 -1
- package/lib/3.js +0 -1
- package/lib/587.js +0 -7
- package/lib/647.js +0 -30
package/lib/907.js
ADDED
|
@@ -0,0 +1,872 @@
|
|
|
1
|
+
export const __rspack_esm_id=907;export const __rspack_esm_ids=[907];export const __webpack_modules__={85382(e,i,t){t.r(i),t.d(i,{BricksClient:()=>C,BricksPublicClient:()=>I,createClient:()=>k,createFetchForUrl:()=>g.P,createPublicClient:()=>A});var a,n,o,r,s=t(99436),d=t(5018),l=t(44668),c=t(54506),u=t(78549),p=t(94370),m=t(43741),$=t(89293),g=t(75149),_=c.ApolloClient,v=c.InMemoryCache,h=c.HttpLink,y=u.o,f={query:"query",mutation:"mutate"},I=l(function e(i){d(this,e),this.baseUrl=i,this.endpoint="/api/graphql-nonauth";var t=new h({uri:`${i}${this.endpoint}`,fetch:(0,g.P)(i)});this.apolloClient=new _({link:t,cache:new v,defaultOptions:{query:{errorPolicy:"all",fetchPolicy:"no-cache"}}})},[{key:"checkWorkspaceOTP",value:(a=s(function*(e){var i=(0,p.default)`
|
|
2
|
+
query checkWorkspaceOTP($passcode: String!) {
|
|
3
|
+
checkWorkspaceOTP(passcode: $passcode)
|
|
4
|
+
}
|
|
5
|
+
`,t=yield this.apolloClient.query({query:i,variables:{passcode:e}}),a=t.data,n=t.errors;if(n?.length>0)throw Error(n.map(({message:e})=>e).join("\n"));return a.checkWorkspaceOTP}),function(e){return a.apply(this,arguments)})},{key:"exchangeWorkspaceOTP",value:(n=s(function*(e){var i=(0,p.default)`
|
|
6
|
+
mutation exchangeWorkspaceOTP($passcode: String!) {
|
|
7
|
+
exchangeWorkspaceOTP(passcode: $passcode) {
|
|
8
|
+
token
|
|
9
|
+
workspaceId
|
|
10
|
+
workspaceName
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
`,t=yield this.apolloClient.mutate({mutation:i,variables:{passcode:e}}),a=t.data,n=t.errors;if(n?.length>0)throw Error(n.map(({message:e})=>e).join("\n"));return a.exchangeWorkspaceOTP}),function(e){return n.apply(this,arguments)})}]),A=e=>new I(e),C=l(function e(i,t){d(this,e),this.baseUrl=i,this.token=t,this.endpoint="/api/graphql-workspace";var a=new h({uri:`${i}${this.endpoint}`,fetch:(0,g.P)(i)}),n=y((e,{headers:i})=>({headers:{...i,authorization:`Bearer ${t}`}}));this.apolloClient=new _({link:n.concat(a),cache:new v,defaultOptions:{watchQuery:{errorPolicy:"all",fetchPolicy:"no-cache"},query:{errorPolicy:"all",fetchPolicy:"no-cache"}}}),this.queries=m,this.mutations=$,this.generateMethods()},[{key:"generateMethods",value:function(){var e=this,i=i=>([t,a])=>{this[t]||(this[t]=s(function*(n={},o={}){try{var r=e.apolloClient[f[i]].bind(e.apolloClient),s=yield r({[i]:a,variables:n,...o}),d=s.data,l=s.errors;if(l)throw Error(l.map(({message:e})=>e).join("\n"));return d[t]}catch(e){if(e.cause?.result?.errors)throw Error(e.cause.result.errors.map(({message:e})=>e).join("\n"));throw e}}))};Object.entries(this.queries).forEach(i("query")),Object.entries(this.mutations).forEach(i("mutation"))}},{key:"query",value:(o=s(function*(e,i={}){var t=yield this.apolloClient.query({query:e,variables:i,fetchPolicy:"no-cache"}),a=t.data,n=t.errors;if(n?.length>0)throw Error(n.map(({message:e})=>e).join("\n"));return a}),function(e){return o.apply(this,arguments)})},{key:"mutate",value:(r=s(function*(e,i={}){var t=yield this.apolloClient.mutate({mutation:e,variables:i}),a=t.data,n=t.errors;if(n?.length>0)throw Error(n.map(({message:e})=>e).join("\n"));return a}),function(e){return r.apply(this,arguments)})}]),k=(e,i)=>new C(e,i)},75149(e,i,t){t.d(i,{P:()=>o});var a=t(79657),n=t(64007);function o(e){var i=process.env.HTTPS_PROXY||process.env.https_proxy;if(!i||!e.startsWith("https://"))return a.Ay;var t=new n(i);return(e,i={})=>(0,a.Ay)(e,{...i,agent:t})}},48596(e,i,t){t.d(i,{$7:()=>l,$V:()=>c,F3:()=>o,J6:()=>u,NJ:()=>r,Yi:()=>n,lI:()=>d,mJ:()=>s});var a=t(94370),n=(0,a.default)`
|
|
14
|
+
fragment cliWorkspaceArguments on Workspace {
|
|
15
|
+
_id
|
|
16
|
+
name
|
|
17
|
+
description
|
|
18
|
+
bank {
|
|
19
|
+
enable_remote_update
|
|
20
|
+
spacename
|
|
21
|
+
keys
|
|
22
|
+
}
|
|
23
|
+
media_resource {
|
|
24
|
+
enable_media_workspace
|
|
25
|
+
workspace_id
|
|
26
|
+
system_media_box_id
|
|
27
|
+
system_media_box_passcode
|
|
28
|
+
}
|
|
29
|
+
billing {
|
|
30
|
+
plan {
|
|
31
|
+
type
|
|
32
|
+
period
|
|
33
|
+
}
|
|
34
|
+
lock {
|
|
35
|
+
features
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
`,o=(0,a.default)`
|
|
40
|
+
fragment cliDeviceArguments on Device {
|
|
41
|
+
_id
|
|
42
|
+
name
|
|
43
|
+
device_name
|
|
44
|
+
description
|
|
45
|
+
tags
|
|
46
|
+
entry_detail {
|
|
47
|
+
unique_id
|
|
48
|
+
operation_version
|
|
49
|
+
type
|
|
50
|
+
operation_mode
|
|
51
|
+
watch_dog_timer {
|
|
52
|
+
alive
|
|
53
|
+
last_launch_time
|
|
54
|
+
last_alive_time
|
|
55
|
+
}
|
|
56
|
+
screen {
|
|
57
|
+
title
|
|
58
|
+
master
|
|
59
|
+
orientation
|
|
60
|
+
resolution {
|
|
61
|
+
width
|
|
62
|
+
height
|
|
63
|
+
scale
|
|
64
|
+
fontScale
|
|
65
|
+
}
|
|
66
|
+
touch {
|
|
67
|
+
available
|
|
68
|
+
touch_point
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
application {
|
|
72
|
+
_id
|
|
73
|
+
name
|
|
74
|
+
config_timestamp
|
|
75
|
+
}
|
|
76
|
+
memory_usage
|
|
77
|
+
disk_usage
|
|
78
|
+
sound {
|
|
79
|
+
available
|
|
80
|
+
}
|
|
81
|
+
camera {
|
|
82
|
+
available
|
|
83
|
+
channel {
|
|
84
|
+
title
|
|
85
|
+
orientation
|
|
86
|
+
resolution {
|
|
87
|
+
width
|
|
88
|
+
height
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
audio_in {
|
|
93
|
+
available
|
|
94
|
+
}
|
|
95
|
+
local_sync {
|
|
96
|
+
is_main
|
|
97
|
+
peer_count
|
|
98
|
+
mean_latency
|
|
99
|
+
}
|
|
100
|
+
update {
|
|
101
|
+
need_update
|
|
102
|
+
last_update_at
|
|
103
|
+
running_mode
|
|
104
|
+
current_version
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
bound_application {
|
|
108
|
+
_id
|
|
109
|
+
name
|
|
110
|
+
}
|
|
111
|
+
env {
|
|
112
|
+
variables
|
|
113
|
+
}
|
|
114
|
+
used_workspace {
|
|
115
|
+
_id
|
|
116
|
+
media_resource {
|
|
117
|
+
enable_media_workspace
|
|
118
|
+
system_media_box_id
|
|
119
|
+
system_media_box_passcode
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
create_datetime
|
|
123
|
+
last_modify_datetime
|
|
124
|
+
}
|
|
125
|
+
`,r=(0,a.default)`
|
|
126
|
+
fragment cliDeviceShortArguments on Device {
|
|
127
|
+
_id
|
|
128
|
+
name
|
|
129
|
+
device_name
|
|
130
|
+
description
|
|
131
|
+
entry_detail {
|
|
132
|
+
watch_dog_timer {
|
|
133
|
+
alive
|
|
134
|
+
last_alive_time
|
|
135
|
+
}
|
|
136
|
+
application {
|
|
137
|
+
_id
|
|
138
|
+
name
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
`,s=(0,a.default)`
|
|
143
|
+
fragment cliDeviceGroupArguments on DeviceGroup {
|
|
144
|
+
_id
|
|
145
|
+
name
|
|
146
|
+
description
|
|
147
|
+
tags
|
|
148
|
+
devices {
|
|
149
|
+
device_id
|
|
150
|
+
device_target_name
|
|
151
|
+
}
|
|
152
|
+
create_datetime
|
|
153
|
+
last_modify_datetime
|
|
154
|
+
}
|
|
155
|
+
`,d=(0,a.default)`
|
|
156
|
+
fragment cliApplicationArguments on Application {
|
|
157
|
+
_id
|
|
158
|
+
name
|
|
159
|
+
description
|
|
160
|
+
tags
|
|
161
|
+
config
|
|
162
|
+
has_unreleased_changes
|
|
163
|
+
current_version
|
|
164
|
+
current_version_details {
|
|
165
|
+
_id
|
|
166
|
+
version
|
|
167
|
+
note
|
|
168
|
+
create_datetime
|
|
169
|
+
}
|
|
170
|
+
short_edit {
|
|
171
|
+
enabled
|
|
172
|
+
ref_map
|
|
173
|
+
}
|
|
174
|
+
canvas_control {
|
|
175
|
+
enabled
|
|
176
|
+
}
|
|
177
|
+
device_control {
|
|
178
|
+
enabled
|
|
179
|
+
}
|
|
180
|
+
lock {
|
|
181
|
+
enabled
|
|
182
|
+
}
|
|
183
|
+
devices {
|
|
184
|
+
device_id
|
|
185
|
+
status
|
|
186
|
+
frame
|
|
187
|
+
}
|
|
188
|
+
id_for_devices
|
|
189
|
+
sync_key
|
|
190
|
+
bricks_project_last_commit_id
|
|
191
|
+
create_datetime
|
|
192
|
+
last_modify_datetime
|
|
193
|
+
}
|
|
194
|
+
`,l=(0,a.default)`
|
|
195
|
+
fragment cliApplicationShortArguments on Application {
|
|
196
|
+
_id
|
|
197
|
+
name
|
|
198
|
+
description
|
|
199
|
+
has_unreleased_changes
|
|
200
|
+
current_version
|
|
201
|
+
}
|
|
202
|
+
`,c=(0,a.default)`
|
|
203
|
+
fragment cliModuleArguments on Module {
|
|
204
|
+
_id
|
|
205
|
+
name
|
|
206
|
+
description
|
|
207
|
+
tags
|
|
208
|
+
config
|
|
209
|
+
has_unreleased_changes
|
|
210
|
+
current_version
|
|
211
|
+
expose_properties
|
|
212
|
+
is_allow_modify
|
|
213
|
+
is_public
|
|
214
|
+
short_edit {
|
|
215
|
+
enabled
|
|
216
|
+
ref_map
|
|
217
|
+
}
|
|
218
|
+
use_count {
|
|
219
|
+
total_count
|
|
220
|
+
}
|
|
221
|
+
bricks_project_last_commit_id
|
|
222
|
+
create_datetime
|
|
223
|
+
last_modify_datetime
|
|
224
|
+
}
|
|
225
|
+
`,u=(0,a.default)`
|
|
226
|
+
fragment cliModuleShortArguments on Module {
|
|
227
|
+
_id
|
|
228
|
+
name
|
|
229
|
+
description
|
|
230
|
+
current_version
|
|
231
|
+
}
|
|
232
|
+
`},89293(e,i,t){t.r(i),t.d(i,{bindApplication:()=>$,bindButtressServer:()=>k,controlDevice:()=>r,createApplication:()=>l,createApplicationWithShareVersion:()=>c,createDevice:()=>o,createMediaFileUploadRequest:()=>A,createModule:()=>_,dispatchDeviceGroupAction:()=>d,issueButtressAccessToken:()=>S,issueDevtoolsAccessToken:()=>D,releaseApplication:()=>I,releaseModule:()=>C,removeApplication:()=>p,removeDevice:()=>s,removeModule:()=>h,shortEditApplication:()=>m,shortEditModule:()=>y,triggerApplicationCanvasControl:()=>g,unbindButtressServer:()=>b,updateApplication:()=>u,updateModule:()=>v,updateWorkspace:()=>f});var a=t(94370),n=t(48596),o=(0,a.default)`
|
|
233
|
+
mutation CLI_createDevice($bindPasscode: String, $name: String, $deviceName: String) {
|
|
234
|
+
createDevice(bindPasscode: $bindPasscode, name: $name, deviceName: $deviceName) {
|
|
235
|
+
...cliDeviceArguments
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
${n.F3}
|
|
239
|
+
`,r=(0,a.default)`
|
|
240
|
+
mutation CLI_controlDevice($id: ID!, $type: String!, $eventPayload: JSON) {
|
|
241
|
+
controlDevice(id: $id, type: $type, eventPayload: $eventPayload) {
|
|
242
|
+
_id
|
|
243
|
+
name
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
`,s=(0,a.default)`
|
|
247
|
+
mutation CLI_removeDevice($id: ID!) {
|
|
248
|
+
removeDevice(id: $id)
|
|
249
|
+
}
|
|
250
|
+
`,d=(0,a.default)`
|
|
251
|
+
mutation CLI_dispatchDeviceGroupAction($id: ID!, $action: String!) {
|
|
252
|
+
dispatchDeviceGroupAction(id: $id, action: $action) {
|
|
253
|
+
dispatched
|
|
254
|
+
devices
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
`,l=(0,a.default)`
|
|
258
|
+
mutation CLI_createApplication(
|
|
259
|
+
$name: String
|
|
260
|
+
$description: String
|
|
261
|
+
$layoutWidth: Int
|
|
262
|
+
$layoutHeight: Int
|
|
263
|
+
) {
|
|
264
|
+
createApplication(
|
|
265
|
+
name: $name
|
|
266
|
+
description: $description
|
|
267
|
+
layoutWidth: $layoutWidth
|
|
268
|
+
layoutHeight: $layoutHeight
|
|
269
|
+
) {
|
|
270
|
+
...cliApplicationShortArguments
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
${n.$7}
|
|
274
|
+
`,c=(0,a.default)`
|
|
275
|
+
mutation CLI_createApplicationWithShareVersion(
|
|
276
|
+
$name: String
|
|
277
|
+
$description: String
|
|
278
|
+
$shareVersionId: ID
|
|
279
|
+
$skipIfExists: Boolean
|
|
280
|
+
) {
|
|
281
|
+
createApplicationWithShareVersion(
|
|
282
|
+
name: $name
|
|
283
|
+
description: $description
|
|
284
|
+
shareVersionId: $shareVersionId
|
|
285
|
+
skipIfExists: $skipIfExists
|
|
286
|
+
) {
|
|
287
|
+
...cliApplicationShortArguments
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
${n.$7}
|
|
291
|
+
`,u=(0,a.default)`
|
|
292
|
+
mutation CLI_updateApplication(
|
|
293
|
+
$id: ID!
|
|
294
|
+
$config: String
|
|
295
|
+
$name: String
|
|
296
|
+
$description: String
|
|
297
|
+
$validateConfig: Boolean
|
|
298
|
+
$lastCommitId: String
|
|
299
|
+
) {
|
|
300
|
+
updateApplication(
|
|
301
|
+
id: $id
|
|
302
|
+
config: $config
|
|
303
|
+
name: $name
|
|
304
|
+
description: $description
|
|
305
|
+
validateConfig: $validateConfig
|
|
306
|
+
lastCommitId: $lastCommitId
|
|
307
|
+
) {
|
|
308
|
+
...cliApplicationShortArguments
|
|
309
|
+
config
|
|
310
|
+
has_unreleased_changes
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
${n.$7}
|
|
314
|
+
`,p=(0,a.default)`
|
|
315
|
+
mutation CLI_removeApplication($id: ID!) {
|
|
316
|
+
removeApplication(id: $id)
|
|
317
|
+
}
|
|
318
|
+
`,m=(0,a.default)`
|
|
319
|
+
mutation CLI_shortEditApplication(
|
|
320
|
+
$id: ID!
|
|
321
|
+
$list: [ShortEditInput]!
|
|
322
|
+
$copyList: [ShortEditCopyInput]
|
|
323
|
+
$removeList: [ShortEditRemoveInput]
|
|
324
|
+
) {
|
|
325
|
+
shortEditApplication(id: $id, list: $list, copyList: $copyList, removeList: $removeList) {
|
|
326
|
+
...cliApplicationShortArguments
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
${n.$7}
|
|
330
|
+
`,$=(0,a.default)`
|
|
331
|
+
mutation CLI_bindApplication(
|
|
332
|
+
$id: ID!
|
|
333
|
+
$bindDevices: [ID]
|
|
334
|
+
$unbindDevices: [ID]
|
|
335
|
+
$deviceFrames: JSON
|
|
336
|
+
) {
|
|
337
|
+
bindApplication(
|
|
338
|
+
id: $id
|
|
339
|
+
bindDevices: $bindDevices
|
|
340
|
+
unbindDevices: $unbindDevices
|
|
341
|
+
deviceFrames: $deviceFrames
|
|
342
|
+
) {
|
|
343
|
+
_id
|
|
344
|
+
devices {
|
|
345
|
+
device_id
|
|
346
|
+
status
|
|
347
|
+
frame
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
`,g=(0,a.default)`
|
|
352
|
+
mutation CLI_triggerApplicationCanvasControl(
|
|
353
|
+
$id: ID!
|
|
354
|
+
$testId: String!
|
|
355
|
+
$setupAtLaunch: Boolean
|
|
356
|
+
$play: Boolean
|
|
357
|
+
$matchGroup: String
|
|
358
|
+
) {
|
|
359
|
+
triggerApplicationCanvasControl(
|
|
360
|
+
id: $id
|
|
361
|
+
testId: $testId
|
|
362
|
+
setupAtLaunch: $setupAtLaunch
|
|
363
|
+
play: $play
|
|
364
|
+
matchGroup: $matchGroup
|
|
365
|
+
) {
|
|
366
|
+
_id
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
`,_=(0,a.default)`
|
|
370
|
+
mutation CLI_createModule(
|
|
371
|
+
$name: String
|
|
372
|
+
$description: String
|
|
373
|
+
$exposeProperties: [String]
|
|
374
|
+
$isAllowModify: Boolean
|
|
375
|
+
$isPublic: Boolean
|
|
376
|
+
$layoutWidth: Int
|
|
377
|
+
$layoutHeight: Int
|
|
378
|
+
$config: String
|
|
379
|
+
) {
|
|
380
|
+
createModule(
|
|
381
|
+
name: $name
|
|
382
|
+
description: $description
|
|
383
|
+
exposeProperties: $exposeProperties
|
|
384
|
+
isAllowModify: $isAllowModify
|
|
385
|
+
isPublic: $isPublic
|
|
386
|
+
layoutWidth: $layoutWidth
|
|
387
|
+
layoutHeight: $layoutHeight
|
|
388
|
+
config: $config
|
|
389
|
+
) {
|
|
390
|
+
...cliModuleArguments
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
${n.$V}
|
|
394
|
+
`,v=(0,a.default)`
|
|
395
|
+
mutation CLI_updateModule(
|
|
396
|
+
$id: ID!
|
|
397
|
+
$config: String
|
|
398
|
+
$name: String
|
|
399
|
+
$description: String
|
|
400
|
+
$validateConfig: Boolean
|
|
401
|
+
$lastCommitId: String
|
|
402
|
+
) {
|
|
403
|
+
updateModule(
|
|
404
|
+
id: $id
|
|
405
|
+
config: $config
|
|
406
|
+
name: $name
|
|
407
|
+
description: $description
|
|
408
|
+
validateConfig: $validateConfig
|
|
409
|
+
lastCommitId: $lastCommitId
|
|
410
|
+
) {
|
|
411
|
+
...cliModuleArguments
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
${n.$V}
|
|
415
|
+
`,h=(0,a.default)`
|
|
416
|
+
mutation CLI_removeModule($id: ID!) {
|
|
417
|
+
removeModule(id: $id)
|
|
418
|
+
}
|
|
419
|
+
`,y=(0,a.default)`
|
|
420
|
+
mutation CLI_shortEditModule(
|
|
421
|
+
$id: ID!
|
|
422
|
+
$list: [ShortEditInput]!
|
|
423
|
+
$copyList: [ShortEditCopyInput]
|
|
424
|
+
$removeList: [ShortEditRemoveInput]
|
|
425
|
+
) {
|
|
426
|
+
shortEditModule(id: $id, list: $list, copyList: $copyList, removeList: $removeList) {
|
|
427
|
+
_id
|
|
428
|
+
name
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
`,f=(0,a.default)`
|
|
432
|
+
mutation CLI_updateWorkspace(
|
|
433
|
+
$name: String
|
|
434
|
+
$description: String
|
|
435
|
+
$enableBankRemoteUpdate: Boolean
|
|
436
|
+
$newBankKey: BankKeyInput
|
|
437
|
+
$revokeBankKey: String
|
|
438
|
+
) {
|
|
439
|
+
updateWorkspace(
|
|
440
|
+
name: $name
|
|
441
|
+
description: $description
|
|
442
|
+
enableBankRemoteUpdate: $enableBankRemoteUpdate
|
|
443
|
+
newBankKey: $newBankKey
|
|
444
|
+
revokeBankKey: $revokeBankKey
|
|
445
|
+
) {
|
|
446
|
+
_id
|
|
447
|
+
name
|
|
448
|
+
bank {
|
|
449
|
+
enable_remote_update
|
|
450
|
+
spacename
|
|
451
|
+
keys
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
`,I=(0,a.default)`
|
|
456
|
+
mutation CLI_releaseApplication(
|
|
457
|
+
$id: ID!
|
|
458
|
+
$config: String
|
|
459
|
+
$name: String
|
|
460
|
+
$releaseCurrentVersion: String
|
|
461
|
+
$releaseCurrentVersionNote: String
|
|
462
|
+
) {
|
|
463
|
+
updateApplication(
|
|
464
|
+
id: $id
|
|
465
|
+
config: $config
|
|
466
|
+
name: $name
|
|
467
|
+
releaseCurrentVersion: $releaseCurrentVersion
|
|
468
|
+
releaseCurrentVersionNote: $releaseCurrentVersionNote
|
|
469
|
+
) {
|
|
470
|
+
_id
|
|
471
|
+
name
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
`,A=(0,a.default)`
|
|
475
|
+
mutation CLI_createMediaFileUploadRequest(
|
|
476
|
+
$name: String!
|
|
477
|
+
$description: String!
|
|
478
|
+
$boxId: ID!
|
|
479
|
+
$fileType: String!
|
|
480
|
+
$contentType: String!
|
|
481
|
+
$userTags: [String]
|
|
482
|
+
$meta: RequestUploadMetaInput!
|
|
483
|
+
) {
|
|
484
|
+
createMediaFileUploadRequest(
|
|
485
|
+
name: $name
|
|
486
|
+
description: $description
|
|
487
|
+
boxId: $boxId
|
|
488
|
+
fileType: $fileType
|
|
489
|
+
contentType: $contentType
|
|
490
|
+
userTags: $userTags
|
|
491
|
+
meta: $meta
|
|
492
|
+
) {
|
|
493
|
+
id
|
|
494
|
+
name
|
|
495
|
+
fileType
|
|
496
|
+
meta {
|
|
497
|
+
uploadInfo
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
`,C=(0,a.default)`
|
|
502
|
+
mutation CLI_releaseModule(
|
|
503
|
+
$id: ID!
|
|
504
|
+
$config: String
|
|
505
|
+
$name: String
|
|
506
|
+
$releaseCurrentVersion: String
|
|
507
|
+
$releaseCurrentVersionNote: String
|
|
508
|
+
) {
|
|
509
|
+
updateModule(
|
|
510
|
+
id: $id
|
|
511
|
+
config: $config
|
|
512
|
+
name: $name
|
|
513
|
+
validateConfig: true
|
|
514
|
+
releaseCurrentVersion: $releaseCurrentVersion
|
|
515
|
+
releaseCurrentVersionNote: $releaseCurrentVersionNote
|
|
516
|
+
) {
|
|
517
|
+
_id
|
|
518
|
+
name
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
`,k=(0,a.default)`
|
|
522
|
+
mutation CLI_bindButtressServer(
|
|
523
|
+
$serverId: String!
|
|
524
|
+
$name: String
|
|
525
|
+
$serverPublicKey: ButtressServerPublicKeyInput
|
|
526
|
+
) {
|
|
527
|
+
bindButtressServer(serverId: $serverId, name: $name, serverPublicKey: $serverPublicKey) {
|
|
528
|
+
workspaceId
|
|
529
|
+
workspaceName
|
|
530
|
+
serverId
|
|
531
|
+
issuerPublicKey {
|
|
532
|
+
pem
|
|
533
|
+
kid
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
`,b=(0,a.default)`
|
|
538
|
+
mutation CLI_unbindButtressServer($serverId: String!) {
|
|
539
|
+
unbindButtressServer(serverId: $serverId)
|
|
540
|
+
}
|
|
541
|
+
`,S=(0,a.default)`
|
|
542
|
+
mutation CLI_issueButtressAccessToken($ttlSeconds: Int) {
|
|
543
|
+
issueButtressAccessToken(ttlSeconds: $ttlSeconds) {
|
|
544
|
+
token
|
|
545
|
+
expiresAt
|
|
546
|
+
workspaceId
|
|
547
|
+
jti
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
`,D=(0,a.default)`
|
|
551
|
+
mutation CLI_issueDevtoolsAccessToken($ttlSeconds: Int) {
|
|
552
|
+
issueDevtoolsAccessToken(ttlSeconds: $ttlSeconds) {
|
|
553
|
+
token
|
|
554
|
+
expiresAt
|
|
555
|
+
workspaceId
|
|
556
|
+
jti
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
`},43741(e,i,t){t.r(i),t.d(i,{application:()=>u,applicationProject:()=>k,applications:()=>p,buttressServers:()=>S,checkBindDevicePasscode:()=>v,device:()=>r,deviceGroup:()=>d,deviceGroups:()=>l,deviceUsage:()=>C,devices:()=>s,devicesByGroup:()=>c,mediaBox:()=>I,mediaBoxes:()=>f,mediaFile:()=>A,mediaFiles:()=>h,mediaWorkspace:()=>y,module:()=>$,moduleProject:()=>b,modules:()=>g,publicApplicationShareInfo:()=>m,publicModules:()=>_,workspace:()=>o});var a=t(94370),n=t(48596),o=(0,a.default)`
|
|
560
|
+
query CLI_workspace {
|
|
561
|
+
workspace {
|
|
562
|
+
...cliWorkspaceArguments
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
${n.Yi}
|
|
566
|
+
`,r=(0,a.default)`
|
|
567
|
+
query CLI_device($id: ID) {
|
|
568
|
+
device(id: $id) {
|
|
569
|
+
...cliDeviceArguments
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
${n.F3}
|
|
573
|
+
`,s=(0,a.default)`
|
|
574
|
+
query CLI_devices($keyword: String, $paginate: Paginate) {
|
|
575
|
+
devices(keyword: $keyword, paginate: $paginate) {
|
|
576
|
+
...cliDeviceShortArguments
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
${n.NJ}
|
|
580
|
+
`,d=(0,a.default)`
|
|
581
|
+
query CLI_deviceGroup($id: ID) {
|
|
582
|
+
deviceGroup(id: $id) {
|
|
583
|
+
...cliDeviceGroupArguments
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
${n.mJ}
|
|
587
|
+
`,l=(0,a.default)`
|
|
588
|
+
query CLI_deviceGroups($paginate: Paginate) {
|
|
589
|
+
deviceGroups(paginate: $paginate) {
|
|
590
|
+
...cliDeviceGroupArguments
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
${n.mJ}
|
|
594
|
+
`,c=(0,a.default)`
|
|
595
|
+
query CLI_devicesByGroup($id: ID) {
|
|
596
|
+
devicesByGroup(id: $id) {
|
|
597
|
+
target_name
|
|
598
|
+
device {
|
|
599
|
+
_id
|
|
600
|
+
name
|
|
601
|
+
device_name
|
|
602
|
+
entry_detail {
|
|
603
|
+
watch_dog_timer {
|
|
604
|
+
alive
|
|
605
|
+
last_alive_time
|
|
606
|
+
}
|
|
607
|
+
application {
|
|
608
|
+
_id
|
|
609
|
+
name
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
`,u=(0,a.default)`
|
|
616
|
+
query CLI_application($id: ID!, $composed: Boolean, $debug: Boolean) {
|
|
617
|
+
application(id: $id, composed: $composed, debug: $debug) {
|
|
618
|
+
...cliApplicationArguments
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
${n.lI}
|
|
622
|
+
`,p=(0,a.default)`
|
|
623
|
+
query CLI_applications($keyword: String, $paginate: Paginate) {
|
|
624
|
+
applications(keyword: $keyword, paginate: $paginate) {
|
|
625
|
+
...cliApplicationShortArguments
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
${n.$7}
|
|
629
|
+
`,m=(0,a.default)`
|
|
630
|
+
query CLI_publicApplicationShareInfo($id: ID!) {
|
|
631
|
+
publicApplicationShareInfo(id: $id) {
|
|
632
|
+
_id
|
|
633
|
+
name
|
|
634
|
+
description
|
|
635
|
+
owner {
|
|
636
|
+
_id
|
|
637
|
+
id_from_user
|
|
638
|
+
}
|
|
639
|
+
share {
|
|
640
|
+
description
|
|
641
|
+
tags
|
|
642
|
+
type
|
|
643
|
+
usage
|
|
644
|
+
selected_releases {
|
|
645
|
+
_id
|
|
646
|
+
version
|
|
647
|
+
name
|
|
648
|
+
note
|
|
649
|
+
date
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
`,$=(0,a.default)`
|
|
655
|
+
query CLI_module($id: ID!) {
|
|
656
|
+
module(id: $id) {
|
|
657
|
+
...cliModuleArguments
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
${n.$V}
|
|
661
|
+
`,g=(0,a.default)`
|
|
662
|
+
query CLI_modules($keyword: String, $paginate: Paginate) {
|
|
663
|
+
modules(keyword: $keyword, paginate: $paginate) {
|
|
664
|
+
...cliModuleShortArguments
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
${n.J6}
|
|
668
|
+
`,_=(0,a.default)`
|
|
669
|
+
query CLI_publicModules($keyword: String!, $limit: Int) {
|
|
670
|
+
publicModules(keyword: $keyword, paginate: { limit: $limit }) {
|
|
671
|
+
...cliModuleShortArguments
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
${n.J6}
|
|
675
|
+
`,v=(0,a.default)`
|
|
676
|
+
query CLI_checkBindDevicePasscode($passcode: String!) {
|
|
677
|
+
checkBindDevicePasscode(passcode: $passcode)
|
|
678
|
+
}
|
|
679
|
+
`,h=(0,a.default)`
|
|
680
|
+
query CLI_mediaFiles(
|
|
681
|
+
$boxId: ID!
|
|
682
|
+
$includeTypes: [String]
|
|
683
|
+
$userTags: [String]
|
|
684
|
+
$limit: Int
|
|
685
|
+
$offset: Int
|
|
686
|
+
) {
|
|
687
|
+
mediaFiles(
|
|
688
|
+
boxId: $boxId
|
|
689
|
+
includeTypes: $includeTypes
|
|
690
|
+
userTags: $userTags
|
|
691
|
+
limit: $limit
|
|
692
|
+
offset: $offset
|
|
693
|
+
) {
|
|
694
|
+
id
|
|
695
|
+
name
|
|
696
|
+
description
|
|
697
|
+
boxId
|
|
698
|
+
fileType
|
|
699
|
+
userTags
|
|
700
|
+
createdAt
|
|
701
|
+
updatedAt
|
|
702
|
+
meta {
|
|
703
|
+
storageEndpoint
|
|
704
|
+
originalFileUploaded
|
|
705
|
+
originalFileKey
|
|
706
|
+
videoThumbOriginalFileKey
|
|
707
|
+
originalFileSize
|
|
708
|
+
originalFileContentType
|
|
709
|
+
originalWidth
|
|
710
|
+
originalHeight
|
|
711
|
+
convertedFileUploaded
|
|
712
|
+
imageVersions {
|
|
713
|
+
key
|
|
714
|
+
width
|
|
715
|
+
height
|
|
716
|
+
strategy
|
|
717
|
+
version
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
`,y=(0,a.default)`
|
|
723
|
+
query CLI_mediaWorkspace {
|
|
724
|
+
mediaWorkspace {
|
|
725
|
+
id
|
|
726
|
+
name
|
|
727
|
+
description
|
|
728
|
+
owner
|
|
729
|
+
size
|
|
730
|
+
sizeLimit
|
|
731
|
+
createdAt
|
|
732
|
+
updatedAt
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
`,f=(0,a.default)`
|
|
736
|
+
query CLI_mediaBoxes {
|
|
737
|
+
mediaBoxes {
|
|
738
|
+
id
|
|
739
|
+
name
|
|
740
|
+
description
|
|
741
|
+
tags
|
|
742
|
+
owner
|
|
743
|
+
size
|
|
744
|
+
createdAt
|
|
745
|
+
updatedAt
|
|
746
|
+
passcodes {
|
|
747
|
+
id
|
|
748
|
+
name
|
|
749
|
+
code
|
|
750
|
+
enableExpired
|
|
751
|
+
expiredAt
|
|
752
|
+
permissions
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
`,I=(0,a.default)`
|
|
757
|
+
query CLI_mediaBox($id: ID!) {
|
|
758
|
+
mediaBox(id: $id) {
|
|
759
|
+
id
|
|
760
|
+
name
|
|
761
|
+
description
|
|
762
|
+
tags
|
|
763
|
+
owner
|
|
764
|
+
size
|
|
765
|
+
createdAt
|
|
766
|
+
updatedAt
|
|
767
|
+
passcodes {
|
|
768
|
+
id
|
|
769
|
+
name
|
|
770
|
+
code
|
|
771
|
+
enableExpired
|
|
772
|
+
expiredAt
|
|
773
|
+
permissions
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
}
|
|
777
|
+
`,A=(0,a.default)`
|
|
778
|
+
query CLI_mediaFile($id: ID!) {
|
|
779
|
+
mediaFile(id: $id) {
|
|
780
|
+
id
|
|
781
|
+
name
|
|
782
|
+
description
|
|
783
|
+
boxId
|
|
784
|
+
fileType
|
|
785
|
+
userTags
|
|
786
|
+
createdAt
|
|
787
|
+
updatedAt
|
|
788
|
+
meta {
|
|
789
|
+
storageEndpoint
|
|
790
|
+
originalFileUploaded
|
|
791
|
+
originalFileKey
|
|
792
|
+
videoThumbOriginalFileKey
|
|
793
|
+
originalFileSize
|
|
794
|
+
originalFileContentType
|
|
795
|
+
originalWidth
|
|
796
|
+
originalHeight
|
|
797
|
+
convertedFileUploaded
|
|
798
|
+
imageVersions {
|
|
799
|
+
key
|
|
800
|
+
width
|
|
801
|
+
height
|
|
802
|
+
strategy
|
|
803
|
+
version
|
|
804
|
+
}
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
`,C=(0,a.default)`
|
|
809
|
+
query CLI_deviceUsage($deviceId: ID, $startDate: Date, $endDate: Date) {
|
|
810
|
+
deviceUsage(deviceId: $deviceId, startDate: $startDate, endDate: $endDate) {
|
|
811
|
+
_id
|
|
812
|
+
device_id
|
|
813
|
+
date
|
|
814
|
+
uptime {
|
|
815
|
+
timestamp
|
|
816
|
+
}
|
|
817
|
+
memory_usage {
|
|
818
|
+
values
|
|
819
|
+
timestamp
|
|
820
|
+
}
|
|
821
|
+
disk_usage {
|
|
822
|
+
values
|
|
823
|
+
timestamp
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
}
|
|
827
|
+
`,k=(0,a.default)`
|
|
828
|
+
query CLI_applicationProject(
|
|
829
|
+
$id: ID!
|
|
830
|
+
$buildApplicationOnly: Boolean
|
|
831
|
+
$setupGitHubActions: Boolean
|
|
832
|
+
$setupAgents: Boolean
|
|
833
|
+
$setupClaudeCode: Boolean
|
|
834
|
+
$setupGeminiCLI: Boolean
|
|
835
|
+
) {
|
|
836
|
+
applicationProject(
|
|
837
|
+
id: $id
|
|
838
|
+
buildApplicationOnly: $buildApplicationOnly
|
|
839
|
+
setupGitHubActions: $setupGitHubActions
|
|
840
|
+
setupAgents: $setupAgents
|
|
841
|
+
setupClaudeCode: $setupClaudeCode
|
|
842
|
+
setupGeminiCLI: $setupGeminiCLI
|
|
843
|
+
)
|
|
844
|
+
}
|
|
845
|
+
`,b=(0,a.default)`
|
|
846
|
+
query CLI_moduleProject(
|
|
847
|
+
$id: ID!
|
|
848
|
+
$buildApplicationOnly: Boolean
|
|
849
|
+
$setupGitHubActions: Boolean
|
|
850
|
+
$setupAgents: Boolean
|
|
851
|
+
$setupClaudeCode: Boolean
|
|
852
|
+
$setupGeminiCLI: Boolean
|
|
853
|
+
) {
|
|
854
|
+
moduleProject(
|
|
855
|
+
id: $id
|
|
856
|
+
buildApplicationOnly: $buildApplicationOnly
|
|
857
|
+
setupGitHubActions: $setupGitHubActions
|
|
858
|
+
setupAgents: $setupAgents
|
|
859
|
+
setupClaudeCode: $setupClaudeCode
|
|
860
|
+
setupGeminiCLI: $setupGeminiCLI
|
|
861
|
+
)
|
|
862
|
+
}
|
|
863
|
+
`,S=(0,a.default)`
|
|
864
|
+
query CLI_buttressServers {
|
|
865
|
+
buttressServers {
|
|
866
|
+
serverId
|
|
867
|
+
name
|
|
868
|
+
boundAt
|
|
869
|
+
lastSeenAt
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
`}};
|