@fugood/bricks-cli 2.24.9 → 2.24.11

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