@fugood/bricks-cli 2.26.0-beta.2 → 2.26.0-beta.20

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:()=>y,BricksPublicClient:()=>g,createClient:()=>f,createFetchForUrl:()=>l.P,createPublicClient:()=>_});var a=t(99436),n=t(54506),r=t(78549),o=t(94370),s=t(43741),d=t(89293),l=t(75149),c=n.ApolloClient,u=n.InMemoryCache,p=n.HttpLink,m=r.o,$={query:"query",mutation:"mutate"};class g{constructor(e){this.baseUrl=e,this.endpoint="/api/graphql-nonauth";var i=new p({uri:`${e}${this.endpoint}`,fetch:(0,l.P)(e)});this.apolloClient=new c({link:i,cache:new u,defaultOptions:{query:{errorPolicy:"all",fetchPolicy:"no-cache"}}})}checkWorkspaceOTP(e){var i=this;return a(function*(){var t=(0,o.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
- `,a=yield i.apolloClient.query({query:t,variables:{passcode:e}}),n=a.data,r=a.errors;if(r?.length>0)throw Error(r.map(({message:e})=>e).join("\n"));return n.checkWorkspaceOTP})()}exchangeWorkspaceOTP(e){var i=this;return a(function*(){var t=(0,o.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
- `,a=yield i.apolloClient.mutate({mutation:t,variables:{passcode:e}}),n=a.data,r=a.errors;if(r?.length>0)throw Error(r.map(({message:e})=>e).join("\n"));return n.exchangeWorkspaceOTP})()}}var _=e=>new g(e),v="Note: OAuth workspace access is awaiting the next production server release. Until then, use workspace auth (passcode or token; CLI: `bricks auth login-workspace`).",h=(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(v))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
- ${v}`);return a.cause=e,a};class y{constructor(e,i){var t,n=this;this.baseUrl=e,this.auth=(e=>{if(!e)return null;if("string"==typeof e){var i;return{kind:"token",token:e,getHeaders:(i=a(function*(){return{authorization:`Bearer ${e}`}}),function(){return i.apply(this,arguments)})}}return e})(i),this.token=this.auth?.token,this.endpoint="/api/graphql-workspace";var r=new p({uri:`${e}${this.endpoint}`,fetch:(0,l.P)(e)}),o=m((t=a(function*(e,{headers:i}){return{headers:{...i,...n.auth?yield n.auth.getHeaders():{}}}}),function(e,i){return t.apply(this,arguments)}));this.apolloClient=new c({link:o.concat(r),cache:new u,defaultOptions:{watchQuery:{errorPolicy:"all",fetchPolicy:"no-cache"},query:{errorPolicy:"all",fetchPolicy:"no-cache"}}}),this.queries=s,this.mutations=d,this.generateMethods()}generateMethods(){var e=this,i=i=>([t,n])=>{if(!this[t]){var r,o=(r=a(function*(a,r){try{var o=e.apolloClient[$[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 r.apply(this,arguments)});this[t]=a(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 h(i,e.auth)}}throw h(a,e.auth)}})}};Object.entries(this.queries).forEach(i("query")),Object.entries(this.mutations).forEach(i("mutation"))}query(e){var i=this;return a(function*(e,t={}){var a=yield i.apolloClient.query({query:e,variables:t,fetchPolicy:"no-cache"}),n=a.data,r=a.errors;if(r?.length>0)throw Error(r.map(({message:e})=>e).join("\n"));return n}).apply(this,arguments)}mutate(e){var i=this;return a(function*(e,t={}){var a=yield i.apolloClient.mutate({mutation:e,variables:t}),n=a.data,r=a.errors;if(r?.length>0)throw Error(r.map(({message:e})=>e).join("\n"));return n}).apply(this,arguments)}}var f=(e,i)=>new y(e,i)},75149(e,i,t){t.d(i,{P:()=>r});var a=t(79657),n=t(64007);function r(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:()=>r,J6:()=>p,NJ:()=>s,VZ:()=>o,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 @@ ${v}`);return a.cause=e,a};class y{constructor(e,i){var t,n=this;this.baseUrl=e,
38
38
  }
39
39
  }
40
40
  }
41
- `,r=(0,a.default)`
41
+ `,r=(0,n.default)`
42
42
  fragment cliDeviceArguments on Device {
43
43
  _id
44
44
  name
@@ -124,7 +124,7 @@ ${v}`);return a.cause=e,a};class y{constructor(e,i){var t,n=this;this.baseUrl=e,
124
124
  create_datetime
125
125
  last_modify_datetime
126
126
  }
127
- `,o=(0,a.default)`
127
+ `,o=(0,n.default)`
128
128
  fragment cliDevicePanelArguments on Device {
129
129
  _id
130
130
  name
@@ -162,7 +162,7 @@ ${v}`);return a.cause=e,a};class y{constructor(e,i){var t,n=this;this.baseUrl=e,
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 @@ ${v}`);return a.cause=e,a};class y{constructor(e,i){var t,n=this;this.baseUrl=e,
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 @@ ${v}`);return a.cause=e,a};class y{constructor(e,i){var t,n=this;this.baseUrl=e,
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 @@ ${v}`);return a.cause=e,a};class y{constructor(e,i){var t,n=this;this.baseUrl=e,
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 @@ ${v}`);return a.cause=e,a};class y{constructor(e,i){var t,n=this;this.baseUrl=e,
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 @@ ${v}`);return a.cause=e,a};class y{constructor(e,i){var t,n=this;this.baseUrl=e,
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 @@ ${v}`);return a.cause=e,a};class y{constructor(e,i){var t,n=this;this.baseUrl=e,
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 @@ ${v}`);return a.cause=e,a};class y{constructor(e,i){var t,n=this;this.baseUrl=e,
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:()=>o,createApplication:()=>u,createApplicationWithShareVersion:()=>p,createDevice:()=>r,createMediaFileUploadRequest:()=>C,createModule:()=>h,createVirtualDevice:()=>s,dispatchDeviceGroupAction:()=>c,issueButtressAccessToken:()=>w,issueDevtoolsAccessToken:()=>L,releaseApplication:()=>A,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),r=(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
- `,o=(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 @@ ${v}`);return a.cause=e,a};class y{constructor(e,i){var t,n=this;this.baseUrl=e,
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 @@ ${v}`);return a.cause=e,a};class y{constructor(e,i){var t,n=this;this.baseUrl=e,
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 @@ ${v}`);return a.cause=e,a};class y{constructor(e,i){var t,n=this;this.baseUrl=e,
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 @@ ${v}`);return a.cause=e,a};class y{constructor(e,i){var t,n=this;this.baseUrl=e,
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 @@ ${v}`);return a.cause=e,a};class y{constructor(e,i){var t,n=this;this.baseUrl=e,
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 @@ ${v}`);return a.cause=e,a};class y{constructor(e,i){var t,n=this;this.baseUrl=e,
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 @@ ${v}`);return a.cause=e,a};class y{constructor(e,i){var t,n=this;this.baseUrl=e,
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 @@ ${v}`);return a.cause=e,a};class y{constructor(e,i){var t,n=this;this.baseUrl=e,
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 @@ ${v}`);return a.cause=e,a};class y{constructor(e,i){var t,n=this;this.baseUrl=e,
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 @@ ${v}`);return a.cause=e,a};class y{constructor(e,i){var t,n=this;this.baseUrl=e,
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,26 +598,30 @@ ${v}`);return a.cause=e,a};class y{constructor(e,i){var t,n=this;this.baseUrl=e,
512
598
  }
513
599
  }
514
600
  }
515
- `,A=(0,a.default)`
601
+ `,A=(0,n.default)`
516
602
  mutation CLI_releaseApplication(
517
603
  $id: ID!
518
604
  $config: String
519
605
  $name: String
606
+ $validateConfig: Boolean
520
607
  $releaseCurrentVersion: String
521
608
  $releaseCurrentVersionNote: String
522
609
  ) {
523
- updateApplication(
610
+ releaseApplication: updateApplication(
524
611
  id: $id
525
612
  config: $config
526
613
  name: $name
614
+ validateConfig: $validateConfig
527
615
  releaseCurrentVersion: $releaseCurrentVersion
528
616
  releaseCurrentVersionNote: $releaseCurrentVersionNote
529
617
  ) {
530
618
  _id
531
619
  name
620
+ current_version
621
+ has_unreleased_changes
532
622
  }
533
623
  }
534
- `,C=(0,a.default)`
624
+ `,C=(0,n.default)`
535
625
  mutation CLI_createMediaFileUploadRequest(
536
626
  $name: String!
537
627
  $description: String!
@@ -558,7 +648,7 @@ ${v}`);return a.cause=e,a};class y{constructor(e,i){var t,n=this;this.baseUrl=e,
558
648
  }
559
649
  }
560
650
  }
561
- `,b=(0,a.default)`
651
+ `,b=(0,n.default)`
562
652
  mutation CLI_releaseModule(
563
653
  $id: ID!
564
654
  $config: String
@@ -578,7 +668,7 @@ ${v}`);return a.cause=e,a};class y{constructor(e,i){var t,n=this;this.baseUrl=e,
578
668
  name
579
669
  }
580
670
  }
581
- `,S=(0,a.default)`
671
+ `,S=(0,n.default)`
582
672
  mutation CLI_bindButtressServer(
583
673
  $serverId: String!
584
674
  $name: String
@@ -594,11 +684,11 @@ ${v}`);return a.cause=e,a};class y{constructor(e,i){var t,n=this;this.baseUrl=e,
594
684
  }
595
685
  }
596
686
  }
597
- `,D=(0,a.default)`
687
+ `,D=(0,n.default)`
598
688
  mutation CLI_unbindButtressServer($serverId: String!) {
599
689
  unbindButtressServer(serverId: $serverId)
600
690
  }
601
- `,w=(0,a.default)`
691
+ `,B=(0,n.default)`
602
692
  mutation CLI_issueButtressAccessToken($ttlSeconds: Int) {
603
693
  issueButtressAccessToken(ttlSeconds: $ttlSeconds) {
604
694
  token
@@ -607,7 +697,7 @@ ${v}`);return a.cause=e,a};class y{constructor(e,i){var t,n=this;this.baseUrl=e,
607
697
  jti
608
698
  }
609
699
  }
610
- `,L=(0,a.default)`
700
+ `,L=(0,n.default)`
611
701
  mutation CLI_issueDevtoolsAccessToken($ttlSeconds: Int) {
612
702
  issueDevtoolsAccessToken(ttlSeconds: $ttlSeconds) {
613
703
  token
@@ -616,49 +706,98 @@ ${v}`);return a.cause=e,a};class y{constructor(e,i){var t,n=this;this.baseUrl=e,
616
706
  jti
617
707
  }
618
708
  }
619
- `},43741(e,i,t){t.r(i),t.d(i,{application:()=>p,applicationProject:()=>b,applications:()=>m,buttressServers:()=>D,checkBindDevicePasscode:()=>h,device:()=>o,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:()=>v,workspace:()=>r});var a=t(94370),n=t(48596),r=(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)`
620
759
  query CLI_workspace {
621
760
  workspace {
622
761
  ...cliWorkspaceArguments
623
762
  }
624
763
  }
625
- ${n.Yi}
626
- `,o=(0,a.default)`
764
+ ${a.Yi}
765
+ `,o=(0,n.default)`
627
766
  query CLI_device($id: ID) {
628
767
  device(id: $id) {
629
768
  ...cliDeviceArguments
630
769
  }
631
770
  }
632
- ${n.F3}
633
- `,s=(0,a.default)`
771
+ ${a.F3}
772
+ `,s=(0,n.default)`
634
773
  query CLI_devices($keyword: String, $paginate: Paginate) {
635
774
  devices(keyword: $keyword, paginate: $paginate) {
636
775
  ...cliDeviceShortArguments
637
776
  }
638
777
  }
639
- ${n.NJ}
640
- `,d=(0,a.default)`
778
+ ${a.NJ}
779
+ `,d=(0,n.default)`
641
780
  query CLI_devicesPanel($keyword: String, $paginate: Paginate) {
642
781
  devicesPanel: devices(keyword: $keyword, paginate: $paginate) {
643
782
  ...cliDevicePanelArguments
644
783
  }
645
784
  }
646
- ${n.VZ}
647
- `,l=(0,a.default)`
785
+ ${a.VZ}
786
+ `,l=(0,n.default)`
648
787
  query CLI_deviceGroup($id: ID) {
649
788
  deviceGroup(id: $id) {
650
789
  ...cliDeviceGroupArguments
651
790
  }
652
791
  }
653
- ${n.mJ}
654
- `,c=(0,a.default)`
792
+ ${a.mJ}
793
+ `,u=(0,n.default)`
655
794
  query CLI_deviceGroups($paginate: Paginate) {
656
795
  deviceGroups(paginate: $paginate) {
657
796
  ...cliDeviceGroupArguments
658
797
  }
659
798
  }
660
- ${n.mJ}
661
- `,u=(0,a.default)`
799
+ ${a.mJ}
800
+ `,c=(0,n.default)`
662
801
  query CLI_devicesByGroup($id: ID) {
663
802
  devicesByGroup(id: $id) {
664
803
  target_name
@@ -679,21 +818,36 @@ ${v}`);return a.cause=e,a};class y{constructor(e,i){var t,n=this;this.baseUrl=e,
679
818
  }
680
819
  }
681
820
  }
682
- `,p=(0,a.default)`
821
+ `,p=(0,n.default)`
683
822
  query CLI_application($id: ID!, $composed: Boolean, $debug: Boolean) {
684
823
  application(id: $id, composed: $composed, debug: $debug) {
685
824
  ...cliApplicationArguments
686
825
  }
687
826
  }
688
- ${n.lI}
689
- `,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)`
690
844
  query CLI_applications($keyword: String, $paginate: Paginate) {
691
845
  applications(keyword: $keyword, paginate: $paginate) {
692
846
  ...cliApplicationShortArguments
693
847
  }
694
848
  }
695
- ${n.$7}
696
- `,$=(0,a.default)`
849
+ ${a.$7}
850
+ `,g=(0,n.default)`
697
851
  query CLI_publicApplicationShareInfo($id: ID!) {
698
852
  publicApplicationShareInfo(id: $id) {
699
853
  _id
@@ -718,32 +872,32 @@ ${v}`);return a.cause=e,a};class y{constructor(e,i){var t,n=this;this.baseUrl=e,
718
872
  }
719
873
  }
720
874
  }
721
- `,g=(0,a.default)`
875
+ `,_=(0,n.default)`
722
876
  query CLI_module($id: ID!) {
723
877
  module(id: $id) {
724
878
  ...cliModuleArguments
725
879
  }
726
880
  }
727
- ${n.$V}
728
- `,_=(0,a.default)`
881
+ ${a.$V}
882
+ `,v=(0,n.default)`
729
883
  query CLI_modules($keyword: String, $paginate: Paginate) {
730
884
  modules(keyword: $keyword, paginate: $paginate) {
731
885
  ...cliModuleShortArguments
732
886
  }
733
887
  }
734
- ${n.J6}
735
- `,v=(0,a.default)`
888
+ ${a.J6}
889
+ `,f=(0,n.default)`
736
890
  query CLI_publicModules($keyword: String!, $limit: Int) {
737
891
  publicModules(keyword: $keyword, paginate: { limit: $limit }) {
738
892
  ...cliModuleShortArguments
739
893
  }
740
894
  }
741
- ${n.J6}
742
- `,h=(0,a.default)`
895
+ ${a.J6}
896
+ `,h=(0,n.default)`
743
897
  query CLI_checkBindDevicePasscode($passcode: String!) {
744
898
  checkBindDevicePasscode(passcode: $passcode)
745
899
  }
746
- `,y=(0,a.default)`
900
+ `,y=(0,n.default)`
747
901
  query CLI_mediaFiles(
748
902
  $boxId: ID!
749
903
  $includeTypes: [String]
@@ -786,7 +940,7 @@ ${v}`);return a.cause=e,a};class y{constructor(e,i){var t,n=this;this.baseUrl=e,
786
940
  }
787
941
  }
788
942
  }
789
- `,f=(0,a.default)`
943
+ `,I=(0,n.default)`
790
944
  query CLI_mediaWorkspace {
791
945
  mediaWorkspace {
792
946
  id
@@ -799,7 +953,7 @@ ${v}`);return a.cause=e,a};class y{constructor(e,i){var t,n=this;this.baseUrl=e,
799
953
  updatedAt
800
954
  }
801
955
  }
802
- `,I=(0,a.default)`
956
+ `,k=(0,n.default)`
803
957
  query CLI_mediaBoxes {
804
958
  mediaBoxes {
805
959
  id
@@ -820,7 +974,7 @@ ${v}`);return a.cause=e,a};class y{constructor(e,i){var t,n=this;this.baseUrl=e,
820
974
  }
821
975
  }
822
976
  }
823
- `,k=(0,a.default)`
977
+ `,A=(0,n.default)`
824
978
  query CLI_mediaBox($id: ID!) {
825
979
  mediaBox(id: $id) {
826
980
  id
@@ -841,7 +995,7 @@ ${v}`);return a.cause=e,a};class y{constructor(e,i){var t,n=this;this.baseUrl=e,
841
995
  }
842
996
  }
843
997
  }
844
- `,A=(0,a.default)`
998
+ `,C=(0,n.default)`
845
999
  query CLI_mediaFile($id: ID!) {
846
1000
  mediaFile(id: $id) {
847
1001
  id
@@ -872,7 +1026,7 @@ ${v}`);return a.cause=e,a};class y{constructor(e,i){var t,n=this;this.baseUrl=e,
872
1026
  }
873
1027
  }
874
1028
  }
875
- `,C=(0,a.default)`
1029
+ `,b=(0,n.default)`
876
1030
  query CLI_deviceUsage($deviceId: ID, $startDate: Date, $endDate: Date) {
877
1031
  deviceUsage(deviceId: $deviceId, startDate: $startDate, endDate: $endDate) {
878
1032
  _id
@@ -891,7 +1045,7 @@ ${v}`);return a.cause=e,a};class y{constructor(e,i){var t,n=this;this.baseUrl=e,
891
1045
  }
892
1046
  }
893
1047
  }
894
- `,b=(0,a.default)`
1048
+ `,S=(0,n.default)`
895
1049
  query CLI_applicationProject(
896
1050
  $id: ID!
897
1051
  $buildApplicationOnly: Boolean
@@ -909,7 +1063,7 @@ ${v}`);return a.cause=e,a};class y{constructor(e,i){var t,n=this;this.baseUrl=e,
909
1063
  setupGeminiCLI: $setupGeminiCLI
910
1064
  )
911
1065
  }
912
- `,S=(0,a.default)`
1066
+ `,D=(0,n.default)`
913
1067
  query CLI_moduleProject(
914
1068
  $id: ID!
915
1069
  $buildApplicationOnly: Boolean
@@ -927,7 +1081,7 @@ ${v}`);return a.cause=e,a};class y{constructor(e,i){var t,n=this;this.baseUrl=e,
927
1081
  setupGeminiCLI: $setupGeminiCLI
928
1082
  )
929
1083
  }
930
- `,D=(0,a.default)`
1084
+ `,B=(0,n.default)`
931
1085
  query CLI_buttressServers {
932
1086
  buttressServers {
933
1087
  serverId
@@ -936,4 +1090,85 @@ ${v}`);return a.cause=e,a};class y{constructor(e,i){var t,n=this;this.baseUrl=e,
936
1090
  lastSeenAt
937
1091
  }
938
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
+ }
939
1174
  `}};