@fugood/bricks-cli 2.26.0-beta.17 → 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/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,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)`
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}}),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)`
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}}),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),C="Note: OAuth workspace access is awaiting the next production server release. Until then, use workspace auth (passcode or token; CLI: `bricks auth login-workspace`).",A=(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(C))return e;var a=Error(`${t}
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
- ${C}`);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 h({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 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])=>{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 A(i,e.auth)}}throw A(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)`
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
- `,o=(0,a.default)`
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
- `,r=(0,a.default)`
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,a.default)`
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,a.default)`
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,a.default)`
195
+ `,l=(0,n.default)`
196
196
  fragment cliApplicationArguments on Application {
197
197
  _id
198
198
  name
@@ -209,13 +209,16 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
209
209
  }
210
210
  short_edit {
211
211
  enabled
212
+ use_unstable_features
212
213
  ref_map
213
214
  }
214
215
  canvas_control {
215
216
  enabled
217
+ use_unstable_features
216
218
  }
217
219
  device_control {
218
220
  enabled
221
+ use_unstable_features
219
222
  }
220
223
  lock {
221
224
  enabled
@@ -224,6 +227,12 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
224
227
  device_id
225
228
  status
226
229
  frame
230
+ run_test
231
+ cron_tests {
232
+ test_id
233
+ cron
234
+ bind_id
235
+ }
227
236
  }
228
237
  id_for_devices
229
238
  sync_key
@@ -231,7 +240,7 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
231
240
  create_datetime
232
241
  last_modify_datetime
233
242
  }
234
- `,c=(0,a.default)`
243
+ `,u=(0,n.default)`
235
244
  fragment cliApplicationShortArguments on Application {
236
245
  _id
237
246
  name
@@ -239,7 +248,7 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
239
248
  has_unreleased_changes
240
249
  current_version
241
250
  }
242
- `,u=(0,a.default)`
251
+ `,c=(0,n.default)`
243
252
  fragment cliModuleArguments on Module {
244
253
  _id
245
254
  name
@@ -262,35 +271,108 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
262
271
  create_datetime
263
272
  last_modify_datetime
264
273
  }
265
- `,p=(0,a.default)`
274
+ `,p=(0,n.default)`
266
275
  fragment cliModuleShortArguments on Module {
267
276
  _id
268
277
  name
269
278
  description
270
279
  current_version
271
280
  }
272
- `},89293(e,i,t){t.r(i),t.d(i,{bindApplication:()=>_,bindButtressServer:()=>S,controlDevice:()=>r,createApplication:()=>u,createApplicationWithShareVersion:()=>p,createDevice:()=>o,createMediaFileUploadRequest:()=>A,createModule:()=>h,createVirtualDevice:()=>s,dispatchDeviceGroupAction:()=>c,issueButtressAccessToken:()=>w,issueDevtoolsAccessToken:()=>L,releaseApplication:()=>C,releaseModule:()=>b,removeApplication:()=>$,removeDevice:()=>l,removeModule:()=>f,shortEditApplication:()=>g,shortEditModule:()=>I,triggerApplicationCanvasControl:()=>v,unbindButtressServer:()=>D,updateApplication:()=>m,updateModule:()=>y,updateVirtualDevice:()=>d,updateWorkspace:()=>k});var a=t(94370),n=t(48596),o=(0,a.default)`
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)`
273
355
  mutation CLI_createDevice($bindPasscode: String, $name: String, $deviceName: String) {
274
356
  createDevice(bindPasscode: $bindPasscode, name: $name, deviceName: $deviceName) {
275
357
  ...cliDeviceArguments
276
358
  }
277
359
  }
278
- ${n.F3}
279
- `,r=(0,a.default)`
360
+ ${a.F3}
361
+ `,o=(0,n.default)`
280
362
  mutation CLI_controlDevice($id: ID!, $type: String!, $eventPayload: JSON) {
281
363
  controlDevice(id: $id, type: $type, eventPayload: $eventPayload) {
282
364
  _id
283
365
  name
284
366
  }
285
367
  }
286
- `,s=(0,a.default)`
368
+ `,s=(0,n.default)`
287
369
  mutation CLI_createVirtualDevice($name: String, $deviceName: String) {
288
370
  createVirtualDevice(name: $name, deviceName: $deviceName) {
289
371
  ...cliDeviceArguments
290
372
  }
291
373
  }
292
- ${n.F3}
293
- `,d=(0,a.default)`
374
+ ${a.F3}
375
+ `,d=(0,n.default)`
294
376
  mutation CLI_updateVirtualDevice($id: ID!, $tokens: [DeviceTokenInput], $revokeTokens: [ID!]) {
295
377
  updateVirtualDevice(id: $id, tokens: $tokens, revokeTokens: $revokeTokens) {
296
378
  device {
@@ -302,19 +384,19 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
302
384
  }
303
385
  }
304
386
  }
305
- ${n.F3}
306
- `,l=(0,a.default)`
387
+ ${a.F3}
388
+ `,l=(0,n.default)`
307
389
  mutation CLI_removeDevice($id: ID!) {
308
390
  removeDevice(id: $id)
309
391
  }
310
- `,c=(0,a.default)`
392
+ `,u=(0,n.default)`
311
393
  mutation CLI_dispatchDeviceGroupAction($id: ID!, $action: String!) {
312
394
  dispatchDeviceGroupAction(id: $id, action: $action) {
313
395
  dispatched
314
396
  devices
315
397
  }
316
398
  }
317
- `,u=(0,a.default)`
399
+ `,c=(0,n.default)`
318
400
  mutation CLI_createApplication(
319
401
  $name: String
320
402
  $description: String
@@ -330,8 +412,8 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
330
412
  ...cliApplicationShortArguments
331
413
  }
332
414
  }
333
- ${n.$7}
334
- `,p=(0,a.default)`
415
+ ${a.$7}
416
+ `,p=(0,n.default)`
335
417
  mutation CLI_createApplicationWithShareVersion(
336
418
  $name: String
337
419
  $description: String
@@ -347,8 +429,8 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
347
429
  ...cliApplicationShortArguments
348
430
  }
349
431
  }
350
- ${n.$7}
351
- `,m=(0,a.default)`
432
+ ${a.$7}
433
+ `,m=(0,n.default)`
352
434
  mutation CLI_updateApplication(
353
435
  $id: ID!
354
436
  $config: String
@@ -370,12 +452,12 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
370
452
  has_unreleased_changes
371
453
  }
372
454
  }
373
- ${n.$7}
374
- `,$=(0,a.default)`
455
+ ${a.$7}
456
+ `,$=(0,n.default)`
375
457
  mutation CLI_removeApplication($id: ID!) {
376
458
  removeApplication(id: $id)
377
459
  }
378
- `,g=(0,a.default)`
460
+ `,g=(0,n.default)`
379
461
  mutation CLI_shortEditApplication(
380
462
  $id: ID!
381
463
  $list: [ShortEditInput]!
@@ -386,19 +468,23 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
386
468
  ...cliApplicationShortArguments
387
469
  }
388
470
  }
389
- ${n.$7}
390
- `,_=(0,a.default)`
471
+ ${a.$7}
472
+ `,_=(0,n.default)`
391
473
  mutation CLI_bindApplication(
392
474
  $id: ID!
393
475
  $bindDevices: [ID]
394
476
  $unbindDevices: [ID]
477
+ $forceUnbindDevicesIfNeeded: Boolean
395
478
  $deviceFrames: JSON
479
+ $deviceSettings: [DeviceSettingInput]
396
480
  ) {
397
481
  bindApplication(
398
482
  id: $id
399
483
  bindDevices: $bindDevices
400
484
  unbindDevices: $unbindDevices
485
+ forceUnbindDevicesIfNeeded: $forceUnbindDevicesIfNeeded
401
486
  deviceFrames: $deviceFrames
487
+ deviceSettings: $deviceSettings
402
488
  ) {
403
489
  _id
404
490
  devices {
@@ -408,7 +494,7 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
408
494
  }
409
495
  }
410
496
  }
411
- `,v=(0,a.default)`
497
+ `,v=(0,n.default)`
412
498
  mutation CLI_triggerApplicationCanvasControl(
413
499
  $id: ID!
414
500
  $testId: String!
@@ -426,7 +512,7 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
426
512
  _id
427
513
  }
428
514
  }
429
- `,h=(0,a.default)`
515
+ `,f=(0,n.default)`
430
516
  mutation CLI_createModule(
431
517
  $name: String
432
518
  $description: String
@@ -450,8 +536,8 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
450
536
  ...cliModuleArguments
451
537
  }
452
538
  }
453
- ${n.$V}
454
- `,y=(0,a.default)`
539
+ ${a.$V}
540
+ `,h=(0,n.default)`
455
541
  mutation CLI_updateModule(
456
542
  $id: ID!
457
543
  $config: String
@@ -471,12 +557,12 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
471
557
  ...cliModuleArguments
472
558
  }
473
559
  }
474
- ${n.$V}
475
- `,f=(0,a.default)`
560
+ ${a.$V}
561
+ `,y=(0,n.default)`
476
562
  mutation CLI_removeModule($id: ID!) {
477
563
  removeModule(id: $id)
478
564
  }
479
- `,I=(0,a.default)`
565
+ `,I=(0,n.default)`
480
566
  mutation CLI_shortEditModule(
481
567
  $id: ID!
482
568
  $list: [ShortEditInput]!
@@ -488,7 +574,7 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
488
574
  name
489
575
  }
490
576
  }
491
- `,k=(0,a.default)`
577
+ `,k=(0,n.default)`
492
578
  mutation CLI_updateWorkspace(
493
579
  $name: String
494
580
  $description: String
@@ -512,7 +598,7 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
512
598
  }
513
599
  }
514
600
  }
515
- `,C=(0,a.default)`
601
+ `,A=(0,n.default)`
516
602
  mutation CLI_releaseApplication(
517
603
  $id: ID!
518
604
  $config: String
@@ -521,7 +607,7 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
521
607
  $releaseCurrentVersion: String
522
608
  $releaseCurrentVersionNote: String
523
609
  ) {
524
- updateApplication(
610
+ releaseApplication: updateApplication(
525
611
  id: $id
526
612
  config: $config
527
613
  name: $name
@@ -531,9 +617,11 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
531
617
  ) {
532
618
  _id
533
619
  name
620
+ current_version
621
+ has_unreleased_changes
534
622
  }
535
623
  }
536
- `,A=(0,a.default)`
624
+ `,C=(0,n.default)`
537
625
  mutation CLI_createMediaFileUploadRequest(
538
626
  $name: String!
539
627
  $description: String!
@@ -560,7 +648,7 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
560
648
  }
561
649
  }
562
650
  }
563
- `,b=(0,a.default)`
651
+ `,b=(0,n.default)`
564
652
  mutation CLI_releaseModule(
565
653
  $id: ID!
566
654
  $config: String
@@ -580,7 +668,7 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
580
668
  name
581
669
  }
582
670
  }
583
- `,S=(0,a.default)`
671
+ `,S=(0,n.default)`
584
672
  mutation CLI_bindButtressServer(
585
673
  $serverId: String!
586
674
  $name: String
@@ -596,11 +684,11 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
596
684
  }
597
685
  }
598
686
  }
599
- `,D=(0,a.default)`
687
+ `,D=(0,n.default)`
600
688
  mutation CLI_unbindButtressServer($serverId: String!) {
601
689
  unbindButtressServer(serverId: $serverId)
602
690
  }
603
- `,w=(0,a.default)`
691
+ `,B=(0,n.default)`
604
692
  mutation CLI_issueButtressAccessToken($ttlSeconds: Int) {
605
693
  issueButtressAccessToken(ttlSeconds: $ttlSeconds) {
606
694
  token
@@ -609,7 +697,7 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
609
697
  jti
610
698
  }
611
699
  }
612
- `,L=(0,a.default)`
700
+ `,L=(0,n.default)`
613
701
  mutation CLI_issueDevtoolsAccessToken($ttlSeconds: Int) {
614
702
  issueDevtoolsAccessToken(ttlSeconds: $ttlSeconds) {
615
703
  token
@@ -618,49 +706,98 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
618
706
  jti
619
707
  }
620
708
  }
621
- `},43741(e,i,t){t.r(i),t.d(i,{application:()=>p,applicationProject:()=>b,applications:()=>m,buttressServers:()=>D,checkBindDevicePasscode:()=>h,device:()=>r,deviceGroup:()=>l,deviceGroups:()=>c,deviceUsage:()=>A,devices:()=>s,devicesByGroup:()=>u,devicesPanel:()=>d,mediaBox:()=>k,mediaBoxes:()=>I,mediaFile:()=>C,mediaFiles:()=>y,mediaWorkspace:()=>f,module:()=>g,moduleProject:()=>S,modules:()=>_,publicApplicationShareInfo:()=>$,publicModules:()=>v,workspace:()=>o});var a=t(94370),n=t(48596),o=(0,a.default)`
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)`
622
759
  query CLI_workspace {
623
760
  workspace {
624
761
  ...cliWorkspaceArguments
625
762
  }
626
763
  }
627
- ${n.Yi}
628
- `,r=(0,a.default)`
764
+ ${a.Yi}
765
+ `,o=(0,n.default)`
629
766
  query CLI_device($id: ID) {
630
767
  device(id: $id) {
631
768
  ...cliDeviceArguments
632
769
  }
633
770
  }
634
- ${n.F3}
635
- `,s=(0,a.default)`
771
+ ${a.F3}
772
+ `,s=(0,n.default)`
636
773
  query CLI_devices($keyword: String, $paginate: Paginate) {
637
774
  devices(keyword: $keyword, paginate: $paginate) {
638
775
  ...cliDeviceShortArguments
639
776
  }
640
777
  }
641
- ${n.NJ}
642
- `,d=(0,a.default)`
778
+ ${a.NJ}
779
+ `,d=(0,n.default)`
643
780
  query CLI_devicesPanel($keyword: String, $paginate: Paginate) {
644
781
  devicesPanel: devices(keyword: $keyword, paginate: $paginate) {
645
782
  ...cliDevicePanelArguments
646
783
  }
647
784
  }
648
- ${n.VZ}
649
- `,l=(0,a.default)`
785
+ ${a.VZ}
786
+ `,l=(0,n.default)`
650
787
  query CLI_deviceGroup($id: ID) {
651
788
  deviceGroup(id: $id) {
652
789
  ...cliDeviceGroupArguments
653
790
  }
654
791
  }
655
- ${n.mJ}
656
- `,c=(0,a.default)`
792
+ ${a.mJ}
793
+ `,u=(0,n.default)`
657
794
  query CLI_deviceGroups($paginate: Paginate) {
658
795
  deviceGroups(paginate: $paginate) {
659
796
  ...cliDeviceGroupArguments
660
797
  }
661
798
  }
662
- ${n.mJ}
663
- `,u=(0,a.default)`
799
+ ${a.mJ}
800
+ `,c=(0,n.default)`
664
801
  query CLI_devicesByGroup($id: ID) {
665
802
  devicesByGroup(id: $id) {
666
803
  target_name
@@ -681,21 +818,36 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
681
818
  }
682
819
  }
683
820
  }
684
- `,p=(0,a.default)`
821
+ `,p=(0,n.default)`
685
822
  query CLI_application($id: ID!, $composed: Boolean, $debug: Boolean) {
686
823
  application(id: $id, composed: $composed, debug: $debug) {
687
824
  ...cliApplicationArguments
688
825
  }
689
826
  }
690
- ${n.lI}
691
- `,m=(0,a.default)`
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)`
692
844
  query CLI_applications($keyword: String, $paginate: Paginate) {
693
845
  applications(keyword: $keyword, paginate: $paginate) {
694
846
  ...cliApplicationShortArguments
695
847
  }
696
848
  }
697
- ${n.$7}
698
- `,$=(0,a.default)`
849
+ ${a.$7}
850
+ `,g=(0,n.default)`
699
851
  query CLI_publicApplicationShareInfo($id: ID!) {
700
852
  publicApplicationShareInfo(id: $id) {
701
853
  _id
@@ -720,32 +872,32 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
720
872
  }
721
873
  }
722
874
  }
723
- `,g=(0,a.default)`
875
+ `,_=(0,n.default)`
724
876
  query CLI_module($id: ID!) {
725
877
  module(id: $id) {
726
878
  ...cliModuleArguments
727
879
  }
728
880
  }
729
- ${n.$V}
730
- `,_=(0,a.default)`
881
+ ${a.$V}
882
+ `,v=(0,n.default)`
731
883
  query CLI_modules($keyword: String, $paginate: Paginate) {
732
884
  modules(keyword: $keyword, paginate: $paginate) {
733
885
  ...cliModuleShortArguments
734
886
  }
735
887
  }
736
- ${n.J6}
737
- `,v=(0,a.default)`
888
+ ${a.J6}
889
+ `,f=(0,n.default)`
738
890
  query CLI_publicModules($keyword: String!, $limit: Int) {
739
891
  publicModules(keyword: $keyword, paginate: { limit: $limit }) {
740
892
  ...cliModuleShortArguments
741
893
  }
742
894
  }
743
- ${n.J6}
744
- `,h=(0,a.default)`
895
+ ${a.J6}
896
+ `,h=(0,n.default)`
745
897
  query CLI_checkBindDevicePasscode($passcode: String!) {
746
898
  checkBindDevicePasscode(passcode: $passcode)
747
899
  }
748
- `,y=(0,a.default)`
900
+ `,y=(0,n.default)`
749
901
  query CLI_mediaFiles(
750
902
  $boxId: ID!
751
903
  $includeTypes: [String]
@@ -788,7 +940,7 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
788
940
  }
789
941
  }
790
942
  }
791
- `,f=(0,a.default)`
943
+ `,I=(0,n.default)`
792
944
  query CLI_mediaWorkspace {
793
945
  mediaWorkspace {
794
946
  id
@@ -801,7 +953,7 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
801
953
  updatedAt
802
954
  }
803
955
  }
804
- `,I=(0,a.default)`
956
+ `,k=(0,n.default)`
805
957
  query CLI_mediaBoxes {
806
958
  mediaBoxes {
807
959
  id
@@ -822,7 +974,7 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
822
974
  }
823
975
  }
824
976
  }
825
- `,k=(0,a.default)`
977
+ `,A=(0,n.default)`
826
978
  query CLI_mediaBox($id: ID!) {
827
979
  mediaBox(id: $id) {
828
980
  id
@@ -843,7 +995,7 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
843
995
  }
844
996
  }
845
997
  }
846
- `,C=(0,a.default)`
998
+ `,C=(0,n.default)`
847
999
  query CLI_mediaFile($id: ID!) {
848
1000
  mediaFile(id: $id) {
849
1001
  id
@@ -874,7 +1026,7 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
874
1026
  }
875
1027
  }
876
1028
  }
877
- `,A=(0,a.default)`
1029
+ `,b=(0,n.default)`
878
1030
  query CLI_deviceUsage($deviceId: ID, $startDate: Date, $endDate: Date) {
879
1031
  deviceUsage(deviceId: $deviceId, startDate: $startDate, endDate: $endDate) {
880
1032
  _id
@@ -893,7 +1045,7 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
893
1045
  }
894
1046
  }
895
1047
  }
896
- `,b=(0,a.default)`
1048
+ `,S=(0,n.default)`
897
1049
  query CLI_applicationProject(
898
1050
  $id: ID!
899
1051
  $buildApplicationOnly: Boolean
@@ -911,7 +1063,7 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
911
1063
  setupGeminiCLI: $setupGeminiCLI
912
1064
  )
913
1065
  }
914
- `,S=(0,a.default)`
1066
+ `,D=(0,n.default)`
915
1067
  query CLI_moduleProject(
916
1068
  $id: ID!
917
1069
  $buildApplicationOnly: Boolean
@@ -929,7 +1081,7 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
929
1081
  setupGeminiCLI: $setupGeminiCLI
930
1082
  )
931
1083
  }
932
- `,D=(0,a.default)`
1084
+ `,B=(0,n.default)`
933
1085
  query CLI_buttressServers {
934
1086
  buttressServers {
935
1087
  serverId
@@ -938,4 +1090,85 @@ ${C}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
938
1090
  lastSeenAt
939
1091
  }
940
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
+ }
941
1174
  `}};