@fugood/bricks-cli 2.25.0-beta.8 → 2.25.0-beta.81

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