@fugood/bricks-cli 2.26.0-beta.18 → 2.26.0-beta.19
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/README.md +29 -0
- package/lib/1010.js +1 -1
- package/lib/1708.js +2 -2
- package/lib/2486.js +1 -1
- package/lib/6632.js +1 -1
- package/lib/6818.js +1 -1
- package/lib/907.js +305 -81
- package/lib/9439.js +2 -2
- package/lib/index.js +82 -76
- package/lib/lib.js +285 -61
- package/package.json +5 -5
package/lib/907.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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,
|
|
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 n,a,r,o,s=t(99436),d=t(5018),l=t(44668),u=t(54506),c=t(78549),p=t(94370),m=t(43741),$=t(89293),g=t(75149),_=u.ApolloClient,v=u.InMemoryCache,f=u.HttpLink,h=c.o,y={query:"query",mutation:"mutate"},I=l(function e(i){d(this,e),this.baseUrl=i,this.endpoint="/api/graphql-nonauth";var t=new f({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=(0,p.default)`
|
|
2
2
|
query checkWorkspaceOTP($passcode: String!) {
|
|
3
3
|
checkWorkspaceOTP(passcode: $passcode)
|
|
4
4
|
}
|
|
5
|
-
`,t=yield this.apolloClient.query({query:i,variables:{passcode:e}}),
|
|
5
|
+
`,t=yield this.apolloClient.query({query:i,variables:{passcode:e}}),n=t.data,a=t.errors;if(a?.length>0)throw Error(a.map(({message:e})=>e).join("\n"));return n.checkWorkspaceOTP}),function(e){return n.apply(this,arguments)})},{key:"exchangeWorkspaceOTP",value:(a=s(function*(e){var i=(0,p.default)`
|
|
6
6
|
mutation exchangeWorkspaceOTP($passcode: String!) {
|
|
7
7
|
exchangeWorkspaceOTP(passcode: $passcode) {
|
|
8
8
|
token
|
|
@@ -10,9 +10,9 @@ export const __rspack_esm_id=907;export const __rspack_esm_ids=[907];export cons
|
|
|
10
10
|
workspaceName
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
|
-
`,t=yield this.apolloClient.mutate({mutation:i,variables:{passcode:e}}),
|
|
13
|
+
`,t=yield this.apolloClient.mutate({mutation:i,variables:{passcode:e}}),n=t.data,a=t.errors;if(a?.length>0)throw Error(a.map(({message:e})=>e).join("\n"));return n.exchangeWorkspaceOTP}),function(e){return a.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 n=Error(`${t}
|
|
14
14
|
|
|
15
|
-
${
|
|
15
|
+
${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=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 r=new f({uri:`${i}${this.endpoint}`,fetch:(0,g.P)(i)}),o=h((n=s(function*(e,{headers:i}){return{headers:{...i,...a.auth?yield a.auth.getHeaders():{}}}}),function(e,i){return n.apply(this,arguments)}));this.apolloClient=new _({link:o.concat(r),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,n])=>{if(!this[t]){var a,r=(a=s(function*(a,r){try{var o=e.apolloClient[y[i]].bind(e.apolloClient),s=yield o({[i]:n,variables:a,...r}),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 a.apply(this,arguments)});this[t]=s(function*(i={},t={}){try{return yield r(i,t)}catch(n){if(e.auth?.kind==="oauth"&&e.auth.refresh&&/401|unauthoriz|jwt expired|token.*expired|invalid.*token/i.test(n?.message||"")){yield e.auth.refresh();try{return yield r(i,t)}catch(i){throw C(i,e.auth)}}throw C(n,e.auth)}})}};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"}),n=t.data,a=t.errors;if(a?.length>0)throw Error(a.map(({message:e})=>e).join("\n"));return n}),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}),n=t.data,a=t.errors;if(a?.length>0)throw Error(a.map(({message:e})=>e).join("\n"));return n}),function(e){return o.apply(this,arguments)})}]),S=(e,i)=>new b(e,i)},75149(e,i,t){t.d(i,{P:()=>r});var n=t(79657),a=t(64007);function r(e){var i=process.env.HTTPS_PROXY||process.env.https_proxy;if(!i||!e.startsWith("https://"))return n.Ay;var t=new a(i);return(e,i={})=>(0,n.Ay)(e,{...i,agent:t})}},48596(e,i,t){t.d(i,{$7:()=>u,$V:()=>c,C$:()=>_,F3:()=>r,J6:()=>p,NJ:()=>s,VZ:()=>o,Yi:()=>a,_A:()=>g,lI:()=>l,mJ:()=>d,zL:()=>$});var n=t(94370),a=(0,n.default)`
|
|
16
16
|
fragment cliWorkspaceArguments on Workspace {
|
|
17
17
|
_id
|
|
18
18
|
name
|
|
@@ -38,7 +38,7 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
`,r=(0,
|
|
41
|
+
`,r=(0,n.default)`
|
|
42
42
|
fragment cliDeviceArguments on Device {
|
|
43
43
|
_id
|
|
44
44
|
name
|
|
@@ -124,7 +124,7 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
|
|
|
124
124
|
create_datetime
|
|
125
125
|
last_modify_datetime
|
|
126
126
|
}
|
|
127
|
-
`,o=(0,
|
|
127
|
+
`,o=(0,n.default)`
|
|
128
128
|
fragment cliDevicePanelArguments on Device {
|
|
129
129
|
_id
|
|
130
130
|
name
|
|
@@ -162,7 +162,7 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
|
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
|
-
`,s=(0,
|
|
165
|
+
`,s=(0,n.default)`
|
|
166
166
|
fragment cliDeviceShortArguments on Device {
|
|
167
167
|
_id
|
|
168
168
|
name
|
|
@@ -179,7 +179,7 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
|
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
|
-
`,d=(0,
|
|
182
|
+
`,d=(0,n.default)`
|
|
183
183
|
fragment cliDeviceGroupArguments on DeviceGroup {
|
|
184
184
|
_id
|
|
185
185
|
name
|
|
@@ -192,7 +192,7 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
|
|
|
192
192
|
create_datetime
|
|
193
193
|
last_modify_datetime
|
|
194
194
|
}
|
|
195
|
-
`,l=(0,
|
|
195
|
+
`,l=(0,n.default)`
|
|
196
196
|
fragment cliApplicationArguments on Application {
|
|
197
197
|
_id
|
|
198
198
|
name
|
|
@@ -240,7 +240,7 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
|
|
|
240
240
|
create_datetime
|
|
241
241
|
last_modify_datetime
|
|
242
242
|
}
|
|
243
|
-
`,
|
|
243
|
+
`,u=(0,n.default)`
|
|
244
244
|
fragment cliApplicationShortArguments on Application {
|
|
245
245
|
_id
|
|
246
246
|
name
|
|
@@ -248,7 +248,7 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
|
|
|
248
248
|
has_unreleased_changes
|
|
249
249
|
current_version
|
|
250
250
|
}
|
|
251
|
-
`,
|
|
251
|
+
`,c=(0,n.default)`
|
|
252
252
|
fragment cliModuleArguments on Module {
|
|
253
253
|
_id
|
|
254
254
|
name
|
|
@@ -271,35 +271,108 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
|
|
|
271
271
|
create_datetime
|
|
272
272
|
last_modify_datetime
|
|
273
273
|
}
|
|
274
|
-
`,p=(0,
|
|
274
|
+
`,p=(0,n.default)`
|
|
275
275
|
fragment cliModuleShortArguments on Module {
|
|
276
276
|
_id
|
|
277
277
|
name
|
|
278
278
|
description
|
|
279
279
|
current_version
|
|
280
280
|
}
|
|
281
|
-
|
|
281
|
+
`,m=(0,n.default)`
|
|
282
|
+
fragment cliBlueprintEdgeArguments on BlueprintEdge {
|
|
283
|
+
id
|
|
284
|
+
from
|
|
285
|
+
to
|
|
286
|
+
type
|
|
287
|
+
label
|
|
288
|
+
derived
|
|
289
|
+
}
|
|
290
|
+
`,$=(0,n.default)`
|
|
291
|
+
fragment cliBlueprintRunArguments on BlueprintRun {
|
|
292
|
+
host
|
|
293
|
+
user_id
|
|
294
|
+
session_id
|
|
295
|
+
started_at
|
|
296
|
+
heartbeat_at
|
|
297
|
+
}
|
|
298
|
+
`,g=(0,n.default)`
|
|
299
|
+
fragment cliBlueprintArguments on Blueprint {
|
|
300
|
+
_id
|
|
301
|
+
name
|
|
302
|
+
description
|
|
303
|
+
revision
|
|
304
|
+
nodes {
|
|
305
|
+
id
|
|
306
|
+
kind
|
|
307
|
+
ref
|
|
308
|
+
name
|
|
309
|
+
role
|
|
310
|
+
position {
|
|
311
|
+
x
|
|
312
|
+
y
|
|
313
|
+
}
|
|
314
|
+
missing
|
|
315
|
+
missing_reason
|
|
316
|
+
}
|
|
317
|
+
edges {
|
|
318
|
+
...cliBlueprintEdgeArguments
|
|
319
|
+
}
|
|
320
|
+
derivedEdges {
|
|
321
|
+
...cliBlueprintEdgeArguments
|
|
322
|
+
}
|
|
323
|
+
unlinkedRefs {
|
|
324
|
+
fromNodeId
|
|
325
|
+
kind
|
|
326
|
+
ref
|
|
327
|
+
name
|
|
328
|
+
}
|
|
329
|
+
run {
|
|
330
|
+
...cliBlueprintRunArguments
|
|
331
|
+
}
|
|
332
|
+
create_datetime
|
|
333
|
+
last_modify_datetime
|
|
334
|
+
}
|
|
335
|
+
${m}
|
|
336
|
+
${$}
|
|
337
|
+
`,_=(0,n.default)`
|
|
338
|
+
fragment cliBlueprintShortArguments on Blueprint {
|
|
339
|
+
_id
|
|
340
|
+
name
|
|
341
|
+
description
|
|
342
|
+
revision
|
|
343
|
+
nodes {
|
|
344
|
+
id
|
|
345
|
+
kind
|
|
346
|
+
missing
|
|
347
|
+
}
|
|
348
|
+
run {
|
|
349
|
+
...cliBlueprintRunArguments
|
|
350
|
+
}
|
|
351
|
+
last_modify_datetime
|
|
352
|
+
}
|
|
353
|
+
${$}
|
|
354
|
+
`},89293(e,i,t){t.r(i),t.d(i,{acquireBlueprintRun:()=>x,bindApplication:()=>_,bindButtressServer:()=>S,controlDevice:()=>o,createApplication:()=>c,createApplicationWithShareVersion:()=>p,createBlueprint:()=>w,createDevice:()=>r,createMediaFileUploadRequest:()=>C,createModule:()=>f,createVirtualDevice:()=>s,dispatchDeviceGroupAction:()=>u,heartbeatBlueprintRun:()=>E,issueButtressAccessToken:()=>B,issueDevtoolsAccessToken:()=>L,releaseApplication:()=>A,releaseBlueprintRun:()=>M,releaseModule:()=>b,removeApplication:()=>$,removeBlueprint:()=>T,removeDevice:()=>l,removeModule:()=>y,revertBlueprint:()=>q,shortEditApplication:()=>g,shortEditModule:()=>I,triggerApplicationCanvasControl:()=>v,unbindButtressServer:()=>D,updateApplication:()=>m,updateBlueprint:()=>P,updateModule:()=>h,updateVirtualDevice:()=>d,updateWorkspace:()=>k});var n=t(94370),a=t(48596),r=(0,n.default)`
|
|
282
355
|
mutation CLI_createDevice($bindPasscode: String, $name: String, $deviceName: String) {
|
|
283
356
|
createDevice(bindPasscode: $bindPasscode, name: $name, deviceName: $deviceName) {
|
|
284
357
|
...cliDeviceArguments
|
|
285
358
|
}
|
|
286
359
|
}
|
|
287
|
-
${
|
|
288
|
-
`,o=(0,
|
|
360
|
+
${a.F3}
|
|
361
|
+
`,o=(0,n.default)`
|
|
289
362
|
mutation CLI_controlDevice($id: ID!, $type: String!, $eventPayload: JSON) {
|
|
290
363
|
controlDevice(id: $id, type: $type, eventPayload: $eventPayload) {
|
|
291
364
|
_id
|
|
292
365
|
name
|
|
293
366
|
}
|
|
294
367
|
}
|
|
295
|
-
`,s=(0,
|
|
368
|
+
`,s=(0,n.default)`
|
|
296
369
|
mutation CLI_createVirtualDevice($name: String, $deviceName: String) {
|
|
297
370
|
createVirtualDevice(name: $name, deviceName: $deviceName) {
|
|
298
371
|
...cliDeviceArguments
|
|
299
372
|
}
|
|
300
373
|
}
|
|
301
|
-
${
|
|
302
|
-
`,d=(0,
|
|
374
|
+
${a.F3}
|
|
375
|
+
`,d=(0,n.default)`
|
|
303
376
|
mutation CLI_updateVirtualDevice($id: ID!, $tokens: [DeviceTokenInput], $revokeTokens: [ID!]) {
|
|
304
377
|
updateVirtualDevice(id: $id, tokens: $tokens, revokeTokens: $revokeTokens) {
|
|
305
378
|
device {
|
|
@@ -311,19 +384,19 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
|
|
|
311
384
|
}
|
|
312
385
|
}
|
|
313
386
|
}
|
|
314
|
-
${
|
|
315
|
-
`,l=(0,
|
|
387
|
+
${a.F3}
|
|
388
|
+
`,l=(0,n.default)`
|
|
316
389
|
mutation CLI_removeDevice($id: ID!) {
|
|
317
390
|
removeDevice(id: $id)
|
|
318
391
|
}
|
|
319
|
-
`,
|
|
392
|
+
`,u=(0,n.default)`
|
|
320
393
|
mutation CLI_dispatchDeviceGroupAction($id: ID!, $action: String!) {
|
|
321
394
|
dispatchDeviceGroupAction(id: $id, action: $action) {
|
|
322
395
|
dispatched
|
|
323
396
|
devices
|
|
324
397
|
}
|
|
325
398
|
}
|
|
326
|
-
`,
|
|
399
|
+
`,c=(0,n.default)`
|
|
327
400
|
mutation CLI_createApplication(
|
|
328
401
|
$name: String
|
|
329
402
|
$description: String
|
|
@@ -339,8 +412,8 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
|
|
|
339
412
|
...cliApplicationShortArguments
|
|
340
413
|
}
|
|
341
414
|
}
|
|
342
|
-
${
|
|
343
|
-
`,p=(0,
|
|
415
|
+
${a.$7}
|
|
416
|
+
`,p=(0,n.default)`
|
|
344
417
|
mutation CLI_createApplicationWithShareVersion(
|
|
345
418
|
$name: String
|
|
346
419
|
$description: String
|
|
@@ -356,8 +429,8 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
|
|
|
356
429
|
...cliApplicationShortArguments
|
|
357
430
|
}
|
|
358
431
|
}
|
|
359
|
-
${
|
|
360
|
-
`,m=(0,
|
|
432
|
+
${a.$7}
|
|
433
|
+
`,m=(0,n.default)`
|
|
361
434
|
mutation CLI_updateApplication(
|
|
362
435
|
$id: ID!
|
|
363
436
|
$config: String
|
|
@@ -379,12 +452,12 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
|
|
|
379
452
|
has_unreleased_changes
|
|
380
453
|
}
|
|
381
454
|
}
|
|
382
|
-
${
|
|
383
|
-
`,$=(0,
|
|
455
|
+
${a.$7}
|
|
456
|
+
`,$=(0,n.default)`
|
|
384
457
|
mutation CLI_removeApplication($id: ID!) {
|
|
385
458
|
removeApplication(id: $id)
|
|
386
459
|
}
|
|
387
|
-
`,g=(0,
|
|
460
|
+
`,g=(0,n.default)`
|
|
388
461
|
mutation CLI_shortEditApplication(
|
|
389
462
|
$id: ID!
|
|
390
463
|
$list: [ShortEditInput]!
|
|
@@ -395,19 +468,23 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
|
|
|
395
468
|
...cliApplicationShortArguments
|
|
396
469
|
}
|
|
397
470
|
}
|
|
398
|
-
${
|
|
399
|
-
`,_=(0,
|
|
471
|
+
${a.$7}
|
|
472
|
+
`,_=(0,n.default)`
|
|
400
473
|
mutation CLI_bindApplication(
|
|
401
474
|
$id: ID!
|
|
402
475
|
$bindDevices: [ID]
|
|
403
476
|
$unbindDevices: [ID]
|
|
477
|
+
$forceUnbindDevicesIfNeeded: Boolean
|
|
404
478
|
$deviceFrames: JSON
|
|
479
|
+
$deviceSettings: [DeviceSettingInput]
|
|
405
480
|
) {
|
|
406
481
|
bindApplication(
|
|
407
482
|
id: $id
|
|
408
483
|
bindDevices: $bindDevices
|
|
409
484
|
unbindDevices: $unbindDevices
|
|
485
|
+
forceUnbindDevicesIfNeeded: $forceUnbindDevicesIfNeeded
|
|
410
486
|
deviceFrames: $deviceFrames
|
|
487
|
+
deviceSettings: $deviceSettings
|
|
411
488
|
) {
|
|
412
489
|
_id
|
|
413
490
|
devices {
|
|
@@ -417,7 +494,7 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
|
|
|
417
494
|
}
|
|
418
495
|
}
|
|
419
496
|
}
|
|
420
|
-
`,v=(0,
|
|
497
|
+
`,v=(0,n.default)`
|
|
421
498
|
mutation CLI_triggerApplicationCanvasControl(
|
|
422
499
|
$id: ID!
|
|
423
500
|
$testId: String!
|
|
@@ -435,7 +512,7 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
|
|
|
435
512
|
_id
|
|
436
513
|
}
|
|
437
514
|
}
|
|
438
|
-
`,
|
|
515
|
+
`,f=(0,n.default)`
|
|
439
516
|
mutation CLI_createModule(
|
|
440
517
|
$name: String
|
|
441
518
|
$description: String
|
|
@@ -459,8 +536,8 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
|
|
|
459
536
|
...cliModuleArguments
|
|
460
537
|
}
|
|
461
538
|
}
|
|
462
|
-
${
|
|
463
|
-
`,
|
|
539
|
+
${a.$V}
|
|
540
|
+
`,h=(0,n.default)`
|
|
464
541
|
mutation CLI_updateModule(
|
|
465
542
|
$id: ID!
|
|
466
543
|
$config: String
|
|
@@ -480,12 +557,12 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
|
|
|
480
557
|
...cliModuleArguments
|
|
481
558
|
}
|
|
482
559
|
}
|
|
483
|
-
${
|
|
484
|
-
`,
|
|
560
|
+
${a.$V}
|
|
561
|
+
`,y=(0,n.default)`
|
|
485
562
|
mutation CLI_removeModule($id: ID!) {
|
|
486
563
|
removeModule(id: $id)
|
|
487
564
|
}
|
|
488
|
-
`,I=(0,
|
|
565
|
+
`,I=(0,n.default)`
|
|
489
566
|
mutation CLI_shortEditModule(
|
|
490
567
|
$id: ID!
|
|
491
568
|
$list: [ShortEditInput]!
|
|
@@ -497,7 +574,7 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
|
|
|
497
574
|
name
|
|
498
575
|
}
|
|
499
576
|
}
|
|
500
|
-
`,k=(0,
|
|
577
|
+
`,k=(0,n.default)`
|
|
501
578
|
mutation CLI_updateWorkspace(
|
|
502
579
|
$name: String
|
|
503
580
|
$description: String
|
|
@@ -521,7 +598,7 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
|
|
|
521
598
|
}
|
|
522
599
|
}
|
|
523
600
|
}
|
|
524
|
-
`,
|
|
601
|
+
`,A=(0,n.default)`
|
|
525
602
|
mutation CLI_releaseApplication(
|
|
526
603
|
$id: ID!
|
|
527
604
|
$config: String
|
|
@@ -530,7 +607,7 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
|
|
|
530
607
|
$releaseCurrentVersion: String
|
|
531
608
|
$releaseCurrentVersionNote: String
|
|
532
609
|
) {
|
|
533
|
-
updateApplication(
|
|
610
|
+
releaseApplication: updateApplication(
|
|
534
611
|
id: $id
|
|
535
612
|
config: $config
|
|
536
613
|
name: $name
|
|
@@ -540,9 +617,11 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
|
|
|
540
617
|
) {
|
|
541
618
|
_id
|
|
542
619
|
name
|
|
620
|
+
current_version
|
|
621
|
+
has_unreleased_changes
|
|
543
622
|
}
|
|
544
623
|
}
|
|
545
|
-
`,
|
|
624
|
+
`,C=(0,n.default)`
|
|
546
625
|
mutation CLI_createMediaFileUploadRequest(
|
|
547
626
|
$name: String!
|
|
548
627
|
$description: String!
|
|
@@ -569,7 +648,7 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
|
|
|
569
648
|
}
|
|
570
649
|
}
|
|
571
650
|
}
|
|
572
|
-
`,b=(0,
|
|
651
|
+
`,b=(0,n.default)`
|
|
573
652
|
mutation CLI_releaseModule(
|
|
574
653
|
$id: ID!
|
|
575
654
|
$config: String
|
|
@@ -589,7 +668,7 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
|
|
|
589
668
|
name
|
|
590
669
|
}
|
|
591
670
|
}
|
|
592
|
-
`,S=(0,
|
|
671
|
+
`,S=(0,n.default)`
|
|
593
672
|
mutation CLI_bindButtressServer(
|
|
594
673
|
$serverId: String!
|
|
595
674
|
$name: String
|
|
@@ -605,11 +684,11 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
|
|
|
605
684
|
}
|
|
606
685
|
}
|
|
607
686
|
}
|
|
608
|
-
`,D=(0,
|
|
687
|
+
`,D=(0,n.default)`
|
|
609
688
|
mutation CLI_unbindButtressServer($serverId: String!) {
|
|
610
689
|
unbindButtressServer(serverId: $serverId)
|
|
611
690
|
}
|
|
612
|
-
`,
|
|
691
|
+
`,B=(0,n.default)`
|
|
613
692
|
mutation CLI_issueButtressAccessToken($ttlSeconds: Int) {
|
|
614
693
|
issueButtressAccessToken(ttlSeconds: $ttlSeconds) {
|
|
615
694
|
token
|
|
@@ -618,7 +697,7 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
|
|
|
618
697
|
jti
|
|
619
698
|
}
|
|
620
699
|
}
|
|
621
|
-
`,L=(0,
|
|
700
|
+
`,L=(0,n.default)`
|
|
622
701
|
mutation CLI_issueDevtoolsAccessToken($ttlSeconds: Int) {
|
|
623
702
|
issueDevtoolsAccessToken(ttlSeconds: $ttlSeconds) {
|
|
624
703
|
token
|
|
@@ -627,49 +706,98 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
|
|
|
627
706
|
jti
|
|
628
707
|
}
|
|
629
708
|
}
|
|
630
|
-
|
|
709
|
+
`,w=(0,n.default)`
|
|
710
|
+
mutation CLI_createBlueprint($name: String!, $description: String) {
|
|
711
|
+
createBlueprint(name: $name, description: $description) {
|
|
712
|
+
...cliBlueprintArguments
|
|
713
|
+
}
|
|
714
|
+
}
|
|
715
|
+
${a._A}
|
|
716
|
+
`,P=(0,n.default)`
|
|
717
|
+
mutation CLI_updateBlueprint($id: ID!, $revision: Int!, $patch: BlueprintPatchInput!) {
|
|
718
|
+
updateBlueprint(id: $id, revision: $revision, patch: $patch) {
|
|
719
|
+
...cliBlueprintArguments
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
${a._A}
|
|
723
|
+
`,q=(0,n.default)`
|
|
724
|
+
mutation CLI_revertBlueprint($id: ID!, $toRevision: Int!) {
|
|
725
|
+
revertBlueprint(id: $id, toRevision: $toRevision) {
|
|
726
|
+
...cliBlueprintArguments
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
${a._A}
|
|
730
|
+
`,T=(0,n.default)`
|
|
731
|
+
mutation CLI_removeBlueprint($id: ID!) {
|
|
732
|
+
removeBlueprint(id: $id)
|
|
733
|
+
}
|
|
734
|
+
`,x=(0,n.default)`
|
|
735
|
+
mutation CLI_acquireBlueprintRun($id: ID!, $host: String!, $sessionId: String!) {
|
|
736
|
+
acquireBlueprintRun(id: $id, host: $host, sessionId: $sessionId) {
|
|
737
|
+
ok
|
|
738
|
+
run {
|
|
739
|
+
...cliBlueprintRunArguments
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
}
|
|
743
|
+
${a.zL}
|
|
744
|
+
`,E=(0,n.default)`
|
|
745
|
+
mutation CLI_heartbeatBlueprintRun($id: ID!, $sessionId: String!) {
|
|
746
|
+
heartbeatBlueprintRun(id: $id, sessionId: $sessionId) {
|
|
747
|
+
ok
|
|
748
|
+
run {
|
|
749
|
+
...cliBlueprintRunArguments
|
|
750
|
+
}
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
${a.zL}
|
|
754
|
+
`,M=(0,n.default)`
|
|
755
|
+
mutation CLI_releaseBlueprintRun($id: ID!, $sessionId: String!) {
|
|
756
|
+
releaseBlueprintRun(id: $id, sessionId: $sessionId)
|
|
757
|
+
}
|
|
758
|
+
`},43741(e,i,t){t.r(i),t.d(i,{application:()=>p,applicationDeviceSettings:()=>m,applicationProject:()=>S,applications:()=>$,blueprint:()=>L,blueprintEvents:()=>x,blueprintProjection:()=>q,blueprintRevisions:()=>T,blueprints:()=>w,blueprintsByInstance:()=>P,buttressServers:()=>B,checkBindDevicePasscode:()=>h,device:()=>o,deviceGroup:()=>l,deviceGroups:()=>u,deviceUsage:()=>b,devices:()=>s,devicesApplicationStatus:()=>E,devicesByGroup:()=>c,devicesPanel:()=>d,mediaBox:()=>A,mediaBoxes:()=>k,mediaFile:()=>C,mediaFiles:()=>y,mediaWorkspace:()=>I,module:()=>_,moduleProject:()=>D,modules:()=>v,publicApplicationShareInfo:()=>g,publicModules:()=>f,workspace:()=>r});var n=t(94370),a=t(48596),r=(0,n.default)`
|
|
631
759
|
query CLI_workspace {
|
|
632
760
|
workspace {
|
|
633
761
|
...cliWorkspaceArguments
|
|
634
762
|
}
|
|
635
763
|
}
|
|
636
|
-
${
|
|
637
|
-
`,o=(0,
|
|
764
|
+
${a.Yi}
|
|
765
|
+
`,o=(0,n.default)`
|
|
638
766
|
query CLI_device($id: ID) {
|
|
639
767
|
device(id: $id) {
|
|
640
768
|
...cliDeviceArguments
|
|
641
769
|
}
|
|
642
770
|
}
|
|
643
|
-
${
|
|
644
|
-
`,s=(0,
|
|
771
|
+
${a.F3}
|
|
772
|
+
`,s=(0,n.default)`
|
|
645
773
|
query CLI_devices($keyword: String, $paginate: Paginate) {
|
|
646
774
|
devices(keyword: $keyword, paginate: $paginate) {
|
|
647
775
|
...cliDeviceShortArguments
|
|
648
776
|
}
|
|
649
777
|
}
|
|
650
|
-
${
|
|
651
|
-
`,d=(0,
|
|
778
|
+
${a.NJ}
|
|
779
|
+
`,d=(0,n.default)`
|
|
652
780
|
query CLI_devicesPanel($keyword: String, $paginate: Paginate) {
|
|
653
781
|
devicesPanel: devices(keyword: $keyword, paginate: $paginate) {
|
|
654
782
|
...cliDevicePanelArguments
|
|
655
783
|
}
|
|
656
784
|
}
|
|
657
|
-
${
|
|
658
|
-
`,l=(0,
|
|
785
|
+
${a.VZ}
|
|
786
|
+
`,l=(0,n.default)`
|
|
659
787
|
query CLI_deviceGroup($id: ID) {
|
|
660
788
|
deviceGroup(id: $id) {
|
|
661
789
|
...cliDeviceGroupArguments
|
|
662
790
|
}
|
|
663
791
|
}
|
|
664
|
-
${
|
|
665
|
-
`,
|
|
792
|
+
${a.mJ}
|
|
793
|
+
`,u=(0,n.default)`
|
|
666
794
|
query CLI_deviceGroups($paginate: Paginate) {
|
|
667
795
|
deviceGroups(paginate: $paginate) {
|
|
668
796
|
...cliDeviceGroupArguments
|
|
669
797
|
}
|
|
670
798
|
}
|
|
671
|
-
${
|
|
672
|
-
`,
|
|
799
|
+
${a.mJ}
|
|
800
|
+
`,c=(0,n.default)`
|
|
673
801
|
query CLI_devicesByGroup($id: ID) {
|
|
674
802
|
devicesByGroup(id: $id) {
|
|
675
803
|
target_name
|
|
@@ -690,21 +818,36 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
|
|
|
690
818
|
}
|
|
691
819
|
}
|
|
692
820
|
}
|
|
693
|
-
`,p=(0,
|
|
821
|
+
`,p=(0,n.default)`
|
|
694
822
|
query CLI_application($id: ID!, $composed: Boolean, $debug: Boolean) {
|
|
695
823
|
application(id: $id, composed: $composed, debug: $debug) {
|
|
696
824
|
...cliApplicationArguments
|
|
697
825
|
}
|
|
698
826
|
}
|
|
699
|
-
${
|
|
700
|
-
`,m=(0,
|
|
827
|
+
${a.lI}
|
|
828
|
+
`,m=(0,n.default)`
|
|
829
|
+
query CLI_applicationDeviceSettings($id: ID!) {
|
|
830
|
+
applicationDeviceSettings: application(id: $id) {
|
|
831
|
+
_id
|
|
832
|
+
devices {
|
|
833
|
+
device_id
|
|
834
|
+
frame
|
|
835
|
+
run_test
|
|
836
|
+
short_edit
|
|
837
|
+
canvas_control
|
|
838
|
+
device_control
|
|
839
|
+
env
|
|
840
|
+
}
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
`,$=(0,n.default)`
|
|
701
844
|
query CLI_applications($keyword: String, $paginate: Paginate) {
|
|
702
845
|
applications(keyword: $keyword, paginate: $paginate) {
|
|
703
846
|
...cliApplicationShortArguments
|
|
704
847
|
}
|
|
705
848
|
}
|
|
706
|
-
${
|
|
707
|
-
|
|
849
|
+
${a.$7}
|
|
850
|
+
`,g=(0,n.default)`
|
|
708
851
|
query CLI_publicApplicationShareInfo($id: ID!) {
|
|
709
852
|
publicApplicationShareInfo(id: $id) {
|
|
710
853
|
_id
|
|
@@ -729,32 +872,32 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
|
|
|
729
872
|
}
|
|
730
873
|
}
|
|
731
874
|
}
|
|
732
|
-
`,
|
|
875
|
+
`,_=(0,n.default)`
|
|
733
876
|
query CLI_module($id: ID!) {
|
|
734
877
|
module(id: $id) {
|
|
735
878
|
...cliModuleArguments
|
|
736
879
|
}
|
|
737
880
|
}
|
|
738
|
-
${
|
|
739
|
-
`,
|
|
881
|
+
${a.$V}
|
|
882
|
+
`,v=(0,n.default)`
|
|
740
883
|
query CLI_modules($keyword: String, $paginate: Paginate) {
|
|
741
884
|
modules(keyword: $keyword, paginate: $paginate) {
|
|
742
885
|
...cliModuleShortArguments
|
|
743
886
|
}
|
|
744
887
|
}
|
|
745
|
-
${
|
|
746
|
-
`,
|
|
888
|
+
${a.J6}
|
|
889
|
+
`,f=(0,n.default)`
|
|
747
890
|
query CLI_publicModules($keyword: String!, $limit: Int) {
|
|
748
891
|
publicModules(keyword: $keyword, paginate: { limit: $limit }) {
|
|
749
892
|
...cliModuleShortArguments
|
|
750
893
|
}
|
|
751
894
|
}
|
|
752
|
-
${
|
|
753
|
-
`,h=(0,
|
|
895
|
+
${a.J6}
|
|
896
|
+
`,h=(0,n.default)`
|
|
754
897
|
query CLI_checkBindDevicePasscode($passcode: String!) {
|
|
755
898
|
checkBindDevicePasscode(passcode: $passcode)
|
|
756
899
|
}
|
|
757
|
-
`,y=(0,
|
|
900
|
+
`,y=(0,n.default)`
|
|
758
901
|
query CLI_mediaFiles(
|
|
759
902
|
$boxId: ID!
|
|
760
903
|
$includeTypes: [String]
|
|
@@ -797,7 +940,7 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
|
|
|
797
940
|
}
|
|
798
941
|
}
|
|
799
942
|
}
|
|
800
|
-
`,
|
|
943
|
+
`,I=(0,n.default)`
|
|
801
944
|
query CLI_mediaWorkspace {
|
|
802
945
|
mediaWorkspace {
|
|
803
946
|
id
|
|
@@ -810,7 +953,7 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
|
|
|
810
953
|
updatedAt
|
|
811
954
|
}
|
|
812
955
|
}
|
|
813
|
-
`,
|
|
956
|
+
`,k=(0,n.default)`
|
|
814
957
|
query CLI_mediaBoxes {
|
|
815
958
|
mediaBoxes {
|
|
816
959
|
id
|
|
@@ -831,7 +974,7 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
|
|
|
831
974
|
}
|
|
832
975
|
}
|
|
833
976
|
}
|
|
834
|
-
`,
|
|
977
|
+
`,A=(0,n.default)`
|
|
835
978
|
query CLI_mediaBox($id: ID!) {
|
|
836
979
|
mediaBox(id: $id) {
|
|
837
980
|
id
|
|
@@ -852,7 +995,7 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
|
|
|
852
995
|
}
|
|
853
996
|
}
|
|
854
997
|
}
|
|
855
|
-
`,C=(0,
|
|
998
|
+
`,C=(0,n.default)`
|
|
856
999
|
query CLI_mediaFile($id: ID!) {
|
|
857
1000
|
mediaFile(id: $id) {
|
|
858
1001
|
id
|
|
@@ -883,7 +1026,7 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
|
|
|
883
1026
|
}
|
|
884
1027
|
}
|
|
885
1028
|
}
|
|
886
|
-
`,
|
|
1029
|
+
`,b=(0,n.default)`
|
|
887
1030
|
query CLI_deviceUsage($deviceId: ID, $startDate: Date, $endDate: Date) {
|
|
888
1031
|
deviceUsage(deviceId: $deviceId, startDate: $startDate, endDate: $endDate) {
|
|
889
1032
|
_id
|
|
@@ -902,7 +1045,7 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
|
|
|
902
1045
|
}
|
|
903
1046
|
}
|
|
904
1047
|
}
|
|
905
|
-
`,
|
|
1048
|
+
`,S=(0,n.default)`
|
|
906
1049
|
query CLI_applicationProject(
|
|
907
1050
|
$id: ID!
|
|
908
1051
|
$buildApplicationOnly: Boolean
|
|
@@ -920,7 +1063,7 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
|
|
|
920
1063
|
setupGeminiCLI: $setupGeminiCLI
|
|
921
1064
|
)
|
|
922
1065
|
}
|
|
923
|
-
`,
|
|
1066
|
+
`,D=(0,n.default)`
|
|
924
1067
|
query CLI_moduleProject(
|
|
925
1068
|
$id: ID!
|
|
926
1069
|
$buildApplicationOnly: Boolean
|
|
@@ -938,7 +1081,7 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
|
|
|
938
1081
|
setupGeminiCLI: $setupGeminiCLI
|
|
939
1082
|
)
|
|
940
1083
|
}
|
|
941
|
-
`,
|
|
1084
|
+
`,B=(0,n.default)`
|
|
942
1085
|
query CLI_buttressServers {
|
|
943
1086
|
buttressServers {
|
|
944
1087
|
serverId
|
|
@@ -947,4 +1090,85 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
|
|
|
947
1090
|
lastSeenAt
|
|
948
1091
|
}
|
|
949
1092
|
}
|
|
1093
|
+
`,L=(0,n.default)`
|
|
1094
|
+
query CLI_blueprint($id: ID!) {
|
|
1095
|
+
blueprint(id: $id) {
|
|
1096
|
+
...cliBlueprintArguments
|
|
1097
|
+
}
|
|
1098
|
+
}
|
|
1099
|
+
${a._A}
|
|
1100
|
+
`,w=(0,n.default)`
|
|
1101
|
+
query CLI_blueprints($keyword: String, $paginate: Paginate) {
|
|
1102
|
+
blueprints(keyword: $keyword, paginate: $paginate) {
|
|
1103
|
+
...cliBlueprintShortArguments
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1106
|
+
${a.C$}
|
|
1107
|
+
`,P=(0,n.default)`
|
|
1108
|
+
query CLI_blueprintsByInstance($kind: BlueprintNodeKind!, $ref: String!) {
|
|
1109
|
+
blueprintsByInstance(kind: $kind, ref: $ref) {
|
|
1110
|
+
...cliBlueprintShortArguments
|
|
1111
|
+
}
|
|
1112
|
+
}
|
|
1113
|
+
${a.C$}
|
|
1114
|
+
`,q=(0,n.default)`
|
|
1115
|
+
query CLI_blueprintProjection($id: ID!, $format: Int) {
|
|
1116
|
+
blueprintProjection(id: $id, format: $format)
|
|
1117
|
+
}
|
|
1118
|
+
`,T=(0,n.default)`
|
|
1119
|
+
query CLI_blueprintRevisions($id: ID!, $limit: Int) {
|
|
1120
|
+
blueprintRevisions(id: $id, limit: $limit) {
|
|
1121
|
+
_id
|
|
1122
|
+
revision
|
|
1123
|
+
actor
|
|
1124
|
+
snapshot
|
|
1125
|
+
created_at
|
|
1126
|
+
}
|
|
1127
|
+
}
|
|
1128
|
+
`,x=(0,n.default)`
|
|
1129
|
+
query CLI_blueprintEvents($id: ID!, $limit: Int) {
|
|
1130
|
+
blueprintEvents(id: $id, limit: $limit) {
|
|
1131
|
+
_id
|
|
1132
|
+
type
|
|
1133
|
+
detail
|
|
1134
|
+
actor {
|
|
1135
|
+
type
|
|
1136
|
+
instance_id
|
|
1137
|
+
token_name
|
|
1138
|
+
}
|
|
1139
|
+
request_id
|
|
1140
|
+
task_id
|
|
1141
|
+
created_at
|
|
1142
|
+
}
|
|
1143
|
+
}
|
|
1144
|
+
`,E=(0,n.default)`
|
|
1145
|
+
query CLI_devicesApplicationStatus($filter: DeviceApplicationStatusFilter, $paginate: Paginate) {
|
|
1146
|
+
devicesApplicationStatus(filter: $filter, paginate: $paginate) {
|
|
1147
|
+
device_id
|
|
1148
|
+
name
|
|
1149
|
+
device_name
|
|
1150
|
+
application_status {
|
|
1151
|
+
status
|
|
1152
|
+
reason
|
|
1153
|
+
assigned {
|
|
1154
|
+
application_id
|
|
1155
|
+
name
|
|
1156
|
+
config_timestamp
|
|
1157
|
+
commit_id
|
|
1158
|
+
lazy_update
|
|
1159
|
+
}
|
|
1160
|
+
reported {
|
|
1161
|
+
_id
|
|
1162
|
+
name
|
|
1163
|
+
config_timestamp
|
|
1164
|
+
state
|
|
1165
|
+
error_stage
|
|
1166
|
+
error_code
|
|
1167
|
+
error_message
|
|
1168
|
+
}
|
|
1169
|
+
reported_at
|
|
1170
|
+
confirmed_at
|
|
1171
|
+
}
|
|
1172
|
+
}
|
|
1173
|
+
}
|
|
950
1174
|
`}};
|