@fugood/bricks-cli 2.26.0-beta.4 → 2.26.0-beta.40

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,r,o,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:()=>k,createClient:()=>D,createFetchForUrl:()=>_.createFetchForUrl,createPublicClient:()=>A});var n,a,r,o,s=t(99436),d=t(5018),l=t(44668),u=t(54506),c=t(78549),p=t(94370),$=t(90424),m=t(43741),g=t(89293),_=t(75149),v=u.ApolloClient,f=u.InMemoryCache,I=u.HttpLink,y=c.o,h={query:"query",mutation:"mutate"},k=l(function e(i){d(this,e),this.baseUrl=i,this.endpoint="/api/graphql-nonauth";var t=new I({uri:`${i}${this.endpoint}`,fetch:(0,_.createFetchForUrl)(i)});this.apolloClient=new v({link:t,cache:new f,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),A="Note: OAuth workspace access is awaiting the next production server release. Until then, use workspace auth (passcode or token; CLI: `bricks auth login-workspace`).",C=(e,i)=>{if(i?.kind!=="oauth")return e;var t=e?.message||String(e);if(!(403===(e?.statusCode||e?.networkError?.statusCode||e?.cause?.statusCode)||/\b403\b|invalid algorithm/i.test(t))||t.includes(A))return e;var a=Error(`${t}
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)})}]),A=e=>new k(e),C=e=>Object.assign(Error(e.map(({message:e})=>e).join("\n")),{graphQLErrors:e}),b="Note: OAuth workspace access is awaiting the next production server release. Until then, use workspace auth (passcode or token; CLI: `bricks auth login-workspace`).",S=(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(b))return e;var n=Error(`${t}
14
14
 
15
- ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseUrl=i,this.auth=(e=>{if(!e)return null;if("string"==typeof e){var i;return{kind:"token",token:e,getHeaders:(i=s(function*(){return{authorization:`Bearer ${e}`}}),function(){return i.apply(this,arguments)})}}return e})(t),this.token=this.auth?.token,this.endpoint="/api/graphql-workspace";var r=new h({uri:`${i}${this.endpoint}`,fetch:(0,g.P)(i)}),o=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: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,a])=>{if(!this[t]){var n,r=(n=s(function*(n,r){try{var o=e.apolloClient[f[i]].bind(e.apolloClient),s=yield o({[i]:a,variables:n,...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 n.apply(this,arguments)});this[t]=s(function*(i={},t={}){try{return yield r(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 r(i,t)}catch(i){throw C(i,e.auth)}}throw C(a,e.auth)}})}};Object.entries(this.queries).forEach(i("query")),Object.entries(this.mutations).forEach(i("mutation"))}},{key:"query",value:(r=s(function*(e,i={}){var t=yield this.apolloClient.query({query:e,variables:i,fetchPolicy:"no-cache"}),a=t.data,n=t.errors;if(n?.length>0)throw Error(n.map(({message:e})=>e).join("\n"));return a}),function(e){return r.apply(this,arguments)})},{key:"mutate",value:(o=s(function*(e,i={}){var t=yield this.apolloClient.mutate({mutation:e,variables:i}),a=t.data,n=t.errors;if(n?.length>0)throw Error(n.map(({message:e})=>e).join("\n"));return a}),function(e){return o.apply(this,arguments)})}]),S=(e,i)=>new b(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
+ ${b}`);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 I({uri:`${i}${this.endpoint}`,fetch:(0,_.createFetchForUrl)(i)}),o=y((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 v({link:o.concat(r),cache:new f,defaultOptions:{watchQuery:{errorPolicy:"all",fetchPolicy:"no-cache"},query:{errorPolicy:"all",fetchPolicy:"no-cache"}}}),this.queries=m,this.mutations=g,this.generateMethods()},[{key:"generateMethods",value:function(){var e=this,i=i=>([t,n])=>{if(!this[t]){var a,r=(a=s(function*(a,r,o=!1){try{var s=e.apolloClient[h[i]].bind(e.apolloClient),d=yield s({[i]:o?(0,$.YR)(n,{FragmentDefinition(e){if("BlueprintRun"===e.typeCondition.name.value)return{...e,selectionSet:{...e.selectionSet,selections:e.selectionSet.selections.filter(e=>!["instance_id","sessions"].includes(e.name?.value))}}},VariableDefinition:e=>"instanceId"===e.variable.name.value?null:void 0,Argument:e=>"instanceId"===e.name.value?null:void 0}):n,variables:o?Object.fromEntries(Object.entries(a).filter(([e])=>"instanceId"!==e)):a,...r}),l=d.data,u=d.errors;if(u)throw C(u);return l[t]}catch(e){var c=e.cause?.result?.errors||e.networkError?.result?.errors;if(c)throw C(c);throw e}}),function(e,i){return a.apply(this,arguments)});this[t]=s(function*(i={},n={}){try{return yield r(i,n)}catch(o){let a;if(/blueprint/i.test(t)&&(a=o.message,/Unknown argument "instanceId".*acquireBlueprintRun|Cannot query field "(?:instance_id|sessions)" on type "BlueprintRun"/.test(a)))return r(i,n,!0);if(e.auth?.kind==="oauth"&&e.auth.refresh&&/401|unauthoriz|jwt expired|token.*expired|invalid.*token/i.test(o?.message||"")){yield e.auth.refresh();try{return yield r(i,n)}catch(i){throw S(i,e.auth)}}throw S(o,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 C(a);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 C(a);return n}),function(e){return o.apply(this,arguments)})}]),D=(e,i)=>new B(e,i)},75149(e,i,t){t.r(i),t.d(i,{createFetchForUrl:()=>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,ju:()=>v,lI:()=>l,mJ:()=>d,sJ:()=>f,zL:()=>m});var n=t(94370),a=(0,n.default)`
16
16
  fragment cliWorkspaceArguments on Workspace {
17
17
  _id
18
18
  name
@@ -26,7 +26,6 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
26
26
  enable_media_workspace
27
27
  workspace_id
28
28
  system_media_box_id
29
- system_media_box_passcode
30
29
  }
31
30
  billing {
32
31
  plan {
@@ -38,7 +37,7 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
38
37
  }
39
38
  }
40
39
  }
41
- `,r=(0,a.default)`
40
+ `,r=(0,n.default)`
42
41
  fragment cliDeviceArguments on Device {
43
42
  _id
44
43
  name
@@ -113,18 +112,28 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
113
112
  env {
114
113
  variables
115
114
  }
115
+ lock {
116
+ enabled
117
+ }
118
+ activity_log {
119
+ enabled
120
+ filter
121
+ screenshot_enabled
122
+ }
123
+ # Stored settings; entry_detail.local_sync is the runtime status reported by the device
124
+ local_sync {
125
+ enabled
126
+ priority_as_main
127
+ disable_dynamic_latency
128
+ latency_offset
129
+ }
116
130
  used_workspace {
117
131
  _id
118
- media_resource {
119
- enable_media_workspace
120
- system_media_box_id
121
- system_media_box_passcode
122
- }
123
132
  }
124
133
  create_datetime
125
134
  last_modify_datetime
126
135
  }
127
- `,o=(0,a.default)`
136
+ `,o=(0,n.default)`
128
137
  fragment cliDevicePanelArguments on Device {
129
138
  _id
130
139
  name
@@ -162,7 +171,7 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
162
171
  }
163
172
  }
164
173
  }
165
- `,s=(0,a.default)`
174
+ `,s=(0,n.default)`
166
175
  fragment cliDeviceShortArguments on Device {
167
176
  _id
168
177
  name
@@ -179,7 +188,7 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
179
188
  }
180
189
  }
181
190
  }
182
- `,d=(0,a.default)`
191
+ `,d=(0,n.default)`
183
192
  fragment cliDeviceGroupArguments on DeviceGroup {
184
193
  _id
185
194
  name
@@ -192,7 +201,7 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
192
201
  create_datetime
193
202
  last_modify_datetime
194
203
  }
195
- `,l=(0,a.default)`
204
+ `,l=(0,n.default)`
196
205
  fragment cliApplicationArguments on Application {
197
206
  _id
198
207
  name
@@ -209,13 +218,16 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
209
218
  }
210
219
  short_edit {
211
220
  enabled
221
+ use_unstable_features
212
222
  ref_map
213
223
  }
214
224
  canvas_control {
215
225
  enabled
226
+ use_unstable_features
216
227
  }
217
228
  device_control {
218
229
  enabled
230
+ use_unstable_features
219
231
  }
220
232
  lock {
221
233
  enabled
@@ -224,6 +236,12 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
224
236
  device_id
225
237
  status
226
238
  frame
239
+ run_test
240
+ cron_tests {
241
+ test_id
242
+ cron
243
+ bind_id
244
+ }
227
245
  }
228
246
  id_for_devices
229
247
  sync_key
@@ -231,7 +249,7 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
231
249
  create_datetime
232
250
  last_modify_datetime
233
251
  }
234
- `,c=(0,a.default)`
252
+ `,u=(0,n.default)`
235
253
  fragment cliApplicationShortArguments on Application {
236
254
  _id
237
255
  name
@@ -239,7 +257,7 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
239
257
  has_unreleased_changes
240
258
  current_version
241
259
  }
242
- `,u=(0,a.default)`
260
+ `,c=(0,n.default)`
243
261
  fragment cliModuleArguments on Module {
244
262
  _id
245
263
  name
@@ -262,35 +280,130 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
262
280
  create_datetime
263
281
  last_modify_datetime
264
282
  }
265
- `,p=(0,a.default)`
283
+ `,p=(0,n.default)`
266
284
  fragment cliModuleShortArguments on Module {
267
285
  _id
268
286
  name
269
287
  description
270
288
  current_version
271
289
  }
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)`
290
+ `,$=(0,n.default)`
291
+ fragment cliBlueprintEdgeArguments on BlueprintEdge {
292
+ id
293
+ from
294
+ to
295
+ type
296
+ label
297
+ derived
298
+ }
299
+ `,m=(0,n.default)`
300
+ fragment cliBlueprintRunArguments on BlueprintRun {
301
+ instance_id
302
+ sessions {
303
+ session_id
304
+ started_at
305
+ heartbeat_at
306
+ }
307
+ host
308
+ user_id
309
+ session_id
310
+ started_at
311
+ heartbeat_at
312
+ }
313
+ `,g=(0,n.default)`
314
+ fragment cliBlueprintArguments on Blueprint {
315
+ _id
316
+ name
317
+ description
318
+ revision
319
+ nodes {
320
+ id
321
+ kind
322
+ ref
323
+ name
324
+ role
325
+ position {
326
+ x
327
+ y
328
+ }
329
+ missing
330
+ missing_reason
331
+ }
332
+ edges {
333
+ ...cliBlueprintEdgeArguments
334
+ }
335
+ derivedEdges {
336
+ ...cliBlueprintEdgeArguments
337
+ }
338
+ unlinkedRefs {
339
+ fromNodeId
340
+ kind
341
+ ref
342
+ name
343
+ }
344
+ run {
345
+ ...cliBlueprintRunArguments
346
+ }
347
+ create_datetime
348
+ last_modify_datetime
349
+ }
350
+ ${$}
351
+ ${m}
352
+ `,_=(0,n.default)`
353
+ fragment cliBlueprintShortArguments on Blueprint {
354
+ _id
355
+ name
356
+ description
357
+ revision
358
+ nodes {
359
+ id
360
+ kind
361
+ missing
362
+ }
363
+ run {
364
+ ...cliBlueprintRunArguments
365
+ }
366
+ last_modify_datetime
367
+ }
368
+ ${m}
369
+ `,v=(0,n.default)`
370
+ fragment cliRegistryCredentialArguments on RegistryCredential {
371
+ token
372
+ jti
373
+ kid
374
+ issuedAt
375
+ expiresAt
376
+ renewAfter
377
+ }
378
+ `,f=(0,n.default)`
379
+ fragment cliRegistryTrustArguments on RegistryTrust {
380
+ issuer
381
+ audience
382
+ baseUrl
383
+ jwks
384
+ }
385
+ `},89293(e,i,t){t.r(i),t.d(i,{acquireBlueprintRun:()=>O,bindApplication:()=>f,bindButtressServer:()=>q,bindButtressServerWithRegistry:()=>x,controlDevice:()=>o,copyMediaFiles:()=>D,createApplication:()=>p,createApplicationWithShareVersion:()=>$,createBlueprint:()=>W,createDevice:()=>r,createMediaFileUploadRequest:()=>S,createModule:()=>y,createVirtualDevice:()=>s,deleteMediaBoxFiles:()=>w,deleteMediaFiles:()=>L,dispatchDeviceGroupAction:()=>c,heartbeatBlueprintRun:()=>U,issueButtressAccessToken:()=>M,issueButtressNodeCredential:()=>F,issueDevtoolsAccessToken:()=>V,releaseApplication:()=>b,releaseBlueprintRun:()=>K,releaseModule:()=>T,removeApplication:()=>_,removeBlueprint:()=>j,removeDevice:()=>u,removeModule:()=>k,revertBlueprint:()=>N,revokeAccessTokens:()=>E,setMediaFileAsBoxPreview:()=>P,shortEditApplication:()=>v,shortEditModule:()=>A,triggerApplicationCanvasControl:()=>I,unbindButtressServer:()=>R,updateApplication:()=>m,updateBlueprint:()=>G,updateDevice:()=>l,updateMediaFiles:()=>B,updateModule:()=>h,updateVirtualDevice:()=>d,updateWorkspace:()=>C,useApplicationReleaseVersion:()=>g});var n=t(94370),a=t(48596),r=(0,n.default)`
273
386
  mutation CLI_createDevice($bindPasscode: String, $name: String, $deviceName: String) {
274
387
  createDevice(bindPasscode: $bindPasscode, name: $name, deviceName: $deviceName) {
275
388
  ...cliDeviceArguments
276
389
  }
277
390
  }
278
- ${n.F3}
279
- `,o=(0,a.default)`
391
+ ${a.F3}
392
+ `,o=(0,n.default)`
280
393
  mutation CLI_controlDevice($id: ID!, $type: String!, $eventPayload: JSON) {
281
394
  controlDevice(id: $id, type: $type, eventPayload: $eventPayload) {
282
395
  _id
283
396
  name
284
397
  }
285
398
  }
286
- `,s=(0,a.default)`
399
+ `,s=(0,n.default)`
287
400
  mutation CLI_createVirtualDevice($name: String, $deviceName: String) {
288
401
  createVirtualDevice(name: $name, deviceName: $deviceName) {
289
402
  ...cliDeviceArguments
290
403
  }
291
404
  }
292
- ${n.F3}
293
- `,d=(0,a.default)`
405
+ ${a.F3}
406
+ `,d=(0,n.default)`
294
407
  mutation CLI_updateVirtualDevice($id: ID!, $tokens: [DeviceTokenInput], $revokeTokens: [ID!]) {
295
408
  updateVirtualDevice(id: $id, tokens: $tokens, revokeTokens: $revokeTokens) {
296
409
  device {
@@ -302,19 +415,46 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
302
415
  }
303
416
  }
304
417
  }
305
- ${n.F3}
306
- `,l=(0,a.default)`
418
+ ${a.F3}
419
+ `,l=(0,n.default)`
420
+ mutation CLI_updateDevice(
421
+ $id: ID!
422
+ $name: String
423
+ $description: String
424
+ $tags: [String]
425
+ $env: DeviceEnvInput
426
+ $activityLog: ActivityLogInput
427
+ $localSync: LocalSyncInput
428
+ $lock: DeviceLockInput
429
+ $forceNotifyDevice: Boolean
430
+ ) {
431
+ updateDevice(
432
+ id: $id
433
+ name: $name
434
+ description: $description
435
+ tags: $tags
436
+ env: $env
437
+ activityLog: $activityLog
438
+ localSync: $localSync
439
+ lock: $lock
440
+ forceNotifyDevice: $forceNotifyDevice
441
+ ) {
442
+ ...cliDeviceArguments
443
+ }
444
+ }
445
+ ${a.F3}
446
+ `,u=(0,n.default)`
307
447
  mutation CLI_removeDevice($id: ID!) {
308
448
  removeDevice(id: $id)
309
449
  }
310
- `,c=(0,a.default)`
450
+ `,c=(0,n.default)`
311
451
  mutation CLI_dispatchDeviceGroupAction($id: ID!, $action: String!) {
312
452
  dispatchDeviceGroupAction(id: $id, action: $action) {
313
453
  dispatched
314
454
  devices
315
455
  }
316
456
  }
317
- `,u=(0,a.default)`
457
+ `,p=(0,n.default)`
318
458
  mutation CLI_createApplication(
319
459
  $name: String
320
460
  $description: String
@@ -330,8 +470,8 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
330
470
  ...cliApplicationShortArguments
331
471
  }
332
472
  }
333
- ${n.$7}
334
- `,p=(0,a.default)`
473
+ ${a.$7}
474
+ `,$=(0,n.default)`
335
475
  mutation CLI_createApplicationWithShareVersion(
336
476
  $name: String
337
477
  $description: String
@@ -347,13 +487,15 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
347
487
  ...cliApplicationShortArguments
348
488
  }
349
489
  }
350
- ${n.$7}
351
- `,m=(0,a.default)`
490
+ ${a.$7}
491
+ `,m=(0,n.default)`
352
492
  mutation CLI_updateApplication(
353
493
  $id: ID!
354
494
  $config: String
355
495
  $name: String
356
496
  $description: String
497
+ $tags: [String]
498
+ $lock: ApplicationLockInput
357
499
  $validateConfig: Boolean
358
500
  $lastCommitId: String
359
501
  ) {
@@ -362,20 +504,33 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
362
504
  config: $config
363
505
  name: $name
364
506
  description: $description
507
+ tags: $tags
508
+ lock: $lock
365
509
  validateConfig: $validateConfig
366
510
  lastCommitId: $lastCommitId
367
511
  ) {
368
512
  ...cliApplicationShortArguments
369
513
  config
370
514
  has_unreleased_changes
515
+ tags
516
+ lock {
517
+ enabled
518
+ }
371
519
  }
372
520
  }
373
- ${n.$7}
374
- `,$=(0,a.default)`
521
+ ${a.$7}
522
+ `,g=(0,n.default)`
523
+ mutation CLI_useApplicationReleaseVersion($id: ID!, $versionId: ID!) {
524
+ useApplicationReleaseVersion: updateApplication(id: $id, useReleaseVersion: $versionId) {
525
+ ...cliApplicationShortArguments
526
+ }
527
+ }
528
+ ${a.$7}
529
+ `,_=(0,n.default)`
375
530
  mutation CLI_removeApplication($id: ID!) {
376
531
  removeApplication(id: $id)
377
532
  }
378
- `,g=(0,a.default)`
533
+ `,v=(0,n.default)`
379
534
  mutation CLI_shortEditApplication(
380
535
  $id: ID!
381
536
  $list: [ShortEditInput]!
@@ -386,19 +541,23 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
386
541
  ...cliApplicationShortArguments
387
542
  }
388
543
  }
389
- ${n.$7}
390
- `,_=(0,a.default)`
544
+ ${a.$7}
545
+ `,f=(0,n.default)`
391
546
  mutation CLI_bindApplication(
392
547
  $id: ID!
393
548
  $bindDevices: [ID]
394
549
  $unbindDevices: [ID]
550
+ $forceUnbindDevicesIfNeeded: Boolean
395
551
  $deviceFrames: JSON
552
+ $deviceSettings: [DeviceSettingInput]
396
553
  ) {
397
554
  bindApplication(
398
555
  id: $id
399
556
  bindDevices: $bindDevices
400
557
  unbindDevices: $unbindDevices
558
+ forceUnbindDevicesIfNeeded: $forceUnbindDevicesIfNeeded
401
559
  deviceFrames: $deviceFrames
560
+ deviceSettings: $deviceSettings
402
561
  ) {
403
562
  _id
404
563
  devices {
@@ -408,7 +567,7 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
408
567
  }
409
568
  }
410
569
  }
411
- `,v=(0,a.default)`
570
+ `,I=(0,n.default)`
412
571
  mutation CLI_triggerApplicationCanvasControl(
413
572
  $id: ID!
414
573
  $testId: String!
@@ -426,7 +585,7 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
426
585
  _id
427
586
  }
428
587
  }
429
- `,h=(0,a.default)`
588
+ `,y=(0,n.default)`
430
589
  mutation CLI_createModule(
431
590
  $name: String
432
591
  $description: String
@@ -450,8 +609,8 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
450
609
  ...cliModuleArguments
451
610
  }
452
611
  }
453
- ${n.$V}
454
- `,y=(0,a.default)`
612
+ ${a.$V}
613
+ `,h=(0,n.default)`
455
614
  mutation CLI_updateModule(
456
615
  $id: ID!
457
616
  $config: String
@@ -471,12 +630,12 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
471
630
  ...cliModuleArguments
472
631
  }
473
632
  }
474
- ${n.$V}
475
- `,f=(0,a.default)`
633
+ ${a.$V}
634
+ `,k=(0,n.default)`
476
635
  mutation CLI_removeModule($id: ID!) {
477
636
  removeModule(id: $id)
478
637
  }
479
- `,I=(0,a.default)`
638
+ `,A=(0,n.default)`
480
639
  mutation CLI_shortEditModule(
481
640
  $id: ID!
482
641
  $list: [ShortEditInput]!
@@ -488,7 +647,7 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
488
647
  name
489
648
  }
490
649
  }
491
- `,k=(0,a.default)`
650
+ `,C=(0,n.default)`
492
651
  mutation CLI_updateWorkspace(
493
652
  $name: String
494
653
  $description: String
@@ -512,26 +671,30 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
512
671
  }
513
672
  }
514
673
  }
515
- `,A=(0,a.default)`
674
+ `,b=(0,n.default)`
516
675
  mutation CLI_releaseApplication(
517
676
  $id: ID!
518
677
  $config: String
519
678
  $name: String
679
+ $validateConfig: Boolean
520
680
  $releaseCurrentVersion: String
521
681
  $releaseCurrentVersionNote: String
522
682
  ) {
523
- updateApplication(
683
+ releaseApplication: updateApplication(
524
684
  id: $id
525
685
  config: $config
526
686
  name: $name
687
+ validateConfig: $validateConfig
527
688
  releaseCurrentVersion: $releaseCurrentVersion
528
689
  releaseCurrentVersionNote: $releaseCurrentVersionNote
529
690
  ) {
530
691
  _id
531
692
  name
693
+ current_version
694
+ has_unreleased_changes
532
695
  }
533
696
  }
534
- `,C=(0,a.default)`
697
+ `,S=(0,n.default)`
535
698
  mutation CLI_createMediaFileUploadRequest(
536
699
  $name: String!
537
700
  $description: String!
@@ -558,7 +721,32 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
558
721
  }
559
722
  }
560
723
  }
561
- `,b=(0,a.default)`
724
+ `,B=(0,n.default)`
725
+ mutation CLI_updateMediaFiles(
726
+ $fileIds: [ID!]!
727
+ $name: String
728
+ $description: String
729
+ $userTags: [String]
730
+ ) {
731
+ updateMediaFiles(fileIds: $fileIds, name: $name, description: $description, userTags: $userTags)
732
+ }
733
+ `,D=(0,n.default)`
734
+ mutation CLI_copyMediaFiles($fromBoxId: ID!, $toBoxId: ID!, $fileIds: [ID!]!) {
735
+ copyMediaFiles(fromBoxId: $fromBoxId, toBoxId: $toBoxId, fileIds: $fileIds)
736
+ }
737
+ `,L=(0,n.default)`
738
+ mutation CLI_deleteMediaFiles($boxId: ID!, $fileIds: [ID!]!) {
739
+ deleteMediaFiles(boxId: $boxId, fileIds: $fileIds)
740
+ }
741
+ `,w=(0,n.default)`
742
+ mutation CLI_deleteMediaBoxFiles($boxId: ID!, $includeTypes: [String]) {
743
+ deleteMediaBoxFiles(boxId: $boxId, includeTypes: $includeTypes)
744
+ }
745
+ `,P=(0,n.default)`
746
+ mutation CLI_setMediaFileAsBoxPreview($id: ID!) {
747
+ setMediaFileAsBoxPreview(id: $id)
748
+ }
749
+ `,T=(0,n.default)`
562
750
  mutation CLI_releaseModule(
563
751
  $id: ID!
564
752
  $config: String
@@ -578,7 +766,7 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
578
766
  name
579
767
  }
580
768
  }
581
- `,S=(0,a.default)`
769
+ `,q=(0,n.default)`
582
770
  mutation CLI_bindButtressServer(
583
771
  $serverId: String!
584
772
  $name: String
@@ -594,11 +782,46 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
594
782
  }
595
783
  }
596
784
  }
597
- `,D=(0,a.default)`
785
+ `,x=(0,n.default)`
786
+ mutation CLI_bindButtressServerWithRegistry(
787
+ $serverId: String!
788
+ $name: String
789
+ $serverPublicKey: ButtressServerPublicKeyInput
790
+ ) {
791
+ bindButtressServerWithRegistry: bindButtressServer(
792
+ serverId: $serverId
793
+ name: $name
794
+ serverPublicKey: $serverPublicKey
795
+ ) {
796
+ workspaceId
797
+ workspaceName
798
+ serverId
799
+ issuerPublicKey {
800
+ pem
801
+ kid
802
+ }
803
+ nodeCredential {
804
+ ...cliRegistryCredentialArguments
805
+ }
806
+ registry {
807
+ ...cliRegistryTrustArguments
808
+ }
809
+ }
810
+ }
811
+ ${a.ju}
812
+ ${a.sJ}
813
+ `,F=(0,n.default)`
814
+ mutation CLI_issueButtressNodeCredential($serverId: String!) {
815
+ issueButtressNodeCredential(serverId: $serverId) {
816
+ ...cliRegistryCredentialArguments
817
+ }
818
+ }
819
+ ${a.ju}
820
+ `,R=(0,n.default)`
598
821
  mutation CLI_unbindButtressServer($serverId: String!) {
599
822
  unbindButtressServer(serverId: $serverId)
600
823
  }
601
- `,w=(0,a.default)`
824
+ `,M=(0,n.default)`
602
825
  mutation CLI_issueButtressAccessToken($ttlSeconds: Int) {
603
826
  issueButtressAccessToken(ttlSeconds: $ttlSeconds) {
604
827
  token
@@ -607,7 +830,7 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
607
830
  jti
608
831
  }
609
832
  }
610
- `,L=(0,a.default)`
833
+ `,V=(0,n.default)`
611
834
  mutation CLI_issueDevtoolsAccessToken($ttlSeconds: Int) {
612
835
  issueDevtoolsAccessToken(ttlSeconds: $ttlSeconds) {
613
836
  token
@@ -616,49 +839,110 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
616
839
  jti
617
840
  }
618
841
  }
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)`
842
+ `,E=(0,n.default)`
843
+ mutation CLI_revokeAccessTokens {
844
+ revokeAccessTokens {
845
+ workspaceId
846
+ notBefore
847
+ }
848
+ }
849
+ `,W=(0,n.default)`
850
+ mutation CLI_createBlueprint($name: String!, $description: String) {
851
+ createBlueprint(name: $name, description: $description) {
852
+ ...cliBlueprintArguments
853
+ }
854
+ }
855
+ ${a._A}
856
+ `,G=(0,n.default)`
857
+ mutation CLI_updateBlueprint($id: ID!, $revision: Int!, $patch: BlueprintPatchInput!) {
858
+ updateBlueprint(id: $id, revision: $revision, patch: $patch) {
859
+ ...cliBlueprintArguments
860
+ }
861
+ }
862
+ ${a._A}
863
+ `,N=(0,n.default)`
864
+ mutation CLI_revertBlueprint($id: ID!, $toRevision: Int!) {
865
+ revertBlueprint(id: $id, toRevision: $toRevision) {
866
+ ...cliBlueprintArguments
867
+ }
868
+ }
869
+ ${a._A}
870
+ `,j=(0,n.default)`
871
+ mutation CLI_removeBlueprint($id: ID!) {
872
+ removeBlueprint(id: $id)
873
+ }
874
+ `,O=(0,n.default)`
875
+ mutation CLI_acquireBlueprintRun(
876
+ $id: ID!
877
+ $host: String!
878
+ $sessionId: String!
879
+ $instanceId: String
880
+ ) {
881
+ acquireBlueprintRun(id: $id, host: $host, sessionId: $sessionId, instanceId: $instanceId) {
882
+ ok
883
+ run {
884
+ ...cliBlueprintRunArguments
885
+ }
886
+ }
887
+ }
888
+ ${a.zL}
889
+ `,U=(0,n.default)`
890
+ mutation CLI_heartbeatBlueprintRun($id: ID!, $sessionId: String!) {
891
+ heartbeatBlueprintRun(id: $id, sessionId: $sessionId) {
892
+ ok
893
+ run {
894
+ ...cliBlueprintRunArguments
895
+ }
896
+ }
897
+ }
898
+ ${a.zL}
899
+ `,K=(0,n.default)`
900
+ mutation CLI_releaseBlueprintRun($id: ID!, $sessionId: String!) {
901
+ releaseBlueprintRun(id: $id, sessionId: $sessionId)
902
+ }
903
+ `},43741(e,i,t){t.r(i),t.d(i,{application:()=>p,applicationDeviceSettings:()=>$,applicationProject:()=>B,applicationReleaseVersions:()=>m,applications:()=>g,blueprint:()=>P,blueprintEvents:()=>R,blueprintProjection:()=>x,blueprintRevisions:()=>F,blueprints:()=>T,blueprintsByInstance:()=>q,buttressServers:()=>L,checkBindDevicePasscode:()=>y,device:()=>o,deviceGroup:()=>l,deviceGroups:()=>u,deviceUsage:()=>S,devices:()=>s,devicesApplicationStatus:()=>M,devicesByGroup:()=>c,devicesPanel:()=>d,mediaBox:()=>C,mediaBoxes:()=>A,mediaFile:()=>b,mediaFiles:()=>h,mediaWorkspace:()=>k,module:()=>v,moduleProject:()=>D,modules:()=>f,publicApplicationShareInfo:()=>_,publicModules:()=>I,registryTrust:()=>w,workspace:()=>r});var n=t(94370),a=t(48596),r=(0,n.default)`
620
904
  query CLI_workspace {
621
905
  workspace {
622
906
  ...cliWorkspaceArguments
623
907
  }
624
908
  }
625
- ${n.Yi}
626
- `,o=(0,a.default)`
909
+ ${a.Yi}
910
+ `,o=(0,n.default)`
627
911
  query CLI_device($id: ID) {
628
912
  device(id: $id) {
629
913
  ...cliDeviceArguments
630
914
  }
631
915
  }
632
- ${n.F3}
633
- `,s=(0,a.default)`
916
+ ${a.F3}
917
+ `,s=(0,n.default)`
634
918
  query CLI_devices($keyword: String, $paginate: Paginate) {
635
919
  devices(keyword: $keyword, paginate: $paginate) {
636
920
  ...cliDeviceShortArguments
637
921
  }
638
922
  }
639
- ${n.NJ}
640
- `,d=(0,a.default)`
923
+ ${a.NJ}
924
+ `,d=(0,n.default)`
641
925
  query CLI_devicesPanel($keyword: String, $paginate: Paginate) {
642
926
  devicesPanel: devices(keyword: $keyword, paginate: $paginate) {
643
927
  ...cliDevicePanelArguments
644
928
  }
645
929
  }
646
- ${n.VZ}
647
- `,l=(0,a.default)`
930
+ ${a.VZ}
931
+ `,l=(0,n.default)`
648
932
  query CLI_deviceGroup($id: ID) {
649
933
  deviceGroup(id: $id) {
650
934
  ...cliDeviceGroupArguments
651
935
  }
652
936
  }
653
- ${n.mJ}
654
- `,c=(0,a.default)`
937
+ ${a.mJ}
938
+ `,u=(0,n.default)`
655
939
  query CLI_deviceGroups($paginate: Paginate) {
656
940
  deviceGroups(paginate: $paginate) {
657
941
  ...cliDeviceGroupArguments
658
942
  }
659
943
  }
660
- ${n.mJ}
661
- `,u=(0,a.default)`
944
+ ${a.mJ}
945
+ `,c=(0,n.default)`
662
946
  query CLI_devicesByGroup($id: ID) {
663
947
  devicesByGroup(id: $id) {
664
948
  target_name
@@ -679,21 +963,55 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
679
963
  }
680
964
  }
681
965
  }
682
- `,p=(0,a.default)`
966
+ `,p=(0,n.default)`
683
967
  query CLI_application($id: ID!, $composed: Boolean, $debug: Boolean) {
684
968
  application(id: $id, composed: $composed, debug: $debug) {
685
969
  ...cliApplicationArguments
686
970
  }
687
971
  }
688
- ${n.lI}
689
- `,m=(0,a.default)`
972
+ ${a.lI}
973
+ `,$=(0,n.default)`
974
+ query CLI_applicationDeviceSettings($id: ID!) {
975
+ applicationDeviceSettings: application(id: $id) {
976
+ _id
977
+ devices {
978
+ device_id
979
+ frame
980
+ run_test
981
+ short_edit
982
+ canvas_control
983
+ device_control
984
+ env
985
+ cron_tests {
986
+ test_id
987
+ cron
988
+ date_range {
989
+ start
990
+ end
991
+ }
992
+ update_screenshot
993
+ bind_id
994
+ }
995
+ }
996
+ }
997
+ }
998
+ `,m=(0,n.default)`
999
+ query CLI_applicationReleaseVersions($id: ID!) {
1000
+ applicationReleaseVersions(id: $id) {
1001
+ _id
1002
+ version
1003
+ note
1004
+ create_datetime
1005
+ }
1006
+ }
1007
+ `,g=(0,n.default)`
690
1008
  query CLI_applications($keyword: String, $paginate: Paginate) {
691
1009
  applications(keyword: $keyword, paginate: $paginate) {
692
1010
  ...cliApplicationShortArguments
693
1011
  }
694
1012
  }
695
- ${n.$7}
696
- `,$=(0,a.default)`
1013
+ ${a.$7}
1014
+ `,_=(0,n.default)`
697
1015
  query CLI_publicApplicationShareInfo($id: ID!) {
698
1016
  publicApplicationShareInfo(id: $id) {
699
1017
  _id
@@ -718,32 +1036,32 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
718
1036
  }
719
1037
  }
720
1038
  }
721
- `,g=(0,a.default)`
1039
+ `,v=(0,n.default)`
722
1040
  query CLI_module($id: ID!) {
723
1041
  module(id: $id) {
724
1042
  ...cliModuleArguments
725
1043
  }
726
1044
  }
727
- ${n.$V}
728
- `,_=(0,a.default)`
1045
+ ${a.$V}
1046
+ `,f=(0,n.default)`
729
1047
  query CLI_modules($keyword: String, $paginate: Paginate) {
730
1048
  modules(keyword: $keyword, paginate: $paginate) {
731
1049
  ...cliModuleShortArguments
732
1050
  }
733
1051
  }
734
- ${n.J6}
735
- `,v=(0,a.default)`
1052
+ ${a.J6}
1053
+ `,I=(0,n.default)`
736
1054
  query CLI_publicModules($keyword: String!, $limit: Int) {
737
1055
  publicModules(keyword: $keyword, paginate: { limit: $limit }) {
738
1056
  ...cliModuleShortArguments
739
1057
  }
740
1058
  }
741
- ${n.J6}
742
- `,h=(0,a.default)`
1059
+ ${a.J6}
1060
+ `,y=(0,n.default)`
743
1061
  query CLI_checkBindDevicePasscode($passcode: String!) {
744
1062
  checkBindDevicePasscode(passcode: $passcode)
745
1063
  }
746
- `,y=(0,a.default)`
1064
+ `,h=(0,n.default)`
747
1065
  query CLI_mediaFiles(
748
1066
  $boxId: ID!
749
1067
  $includeTypes: [String]
@@ -786,7 +1104,7 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
786
1104
  }
787
1105
  }
788
1106
  }
789
- `,f=(0,a.default)`
1107
+ `,k=(0,n.default)`
790
1108
  query CLI_mediaWorkspace {
791
1109
  mediaWorkspace {
792
1110
  id
@@ -799,8 +1117,8 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
799
1117
  updatedAt
800
1118
  }
801
1119
  }
802
- `,I=(0,a.default)`
803
- query CLI_mediaBoxes {
1120
+ `,A=(0,n.default)`
1121
+ query CLI_mediaBoxes($includeCodes: Boolean = false) {
804
1122
  mediaBoxes {
805
1123
  id
806
1124
  name
@@ -810,18 +1128,19 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
810
1128
  size
811
1129
  createdAt
812
1130
  updatedAt
1131
+ # Passcode codes are credentials: fetched only for --show-codes
813
1132
  passcodes {
814
1133
  id
815
1134
  name
816
- code
1135
+ code @include(if: $includeCodes)
817
1136
  enableExpired
818
1137
  expiredAt
819
1138
  permissions
820
1139
  }
821
1140
  }
822
1141
  }
823
- `,k=(0,a.default)`
824
- query CLI_mediaBox($id: ID!) {
1142
+ `,C=(0,n.default)`
1143
+ query CLI_mediaBox($id: ID!, $includeCodes: Boolean = false) {
825
1144
  mediaBox(id: $id) {
826
1145
  id
827
1146
  name
@@ -831,17 +1150,18 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
831
1150
  size
832
1151
  createdAt
833
1152
  updatedAt
1153
+ # Passcode codes are credentials: fetched only for --show-codes
834
1154
  passcodes {
835
1155
  id
836
1156
  name
837
- code
1157
+ code @include(if: $includeCodes)
838
1158
  enableExpired
839
1159
  expiredAt
840
1160
  permissions
841
1161
  }
842
1162
  }
843
1163
  }
844
- `,A=(0,a.default)`
1164
+ `,b=(0,n.default)`
845
1165
  query CLI_mediaFile($id: ID!) {
846
1166
  mediaFile(id: $id) {
847
1167
  id
@@ -872,7 +1192,7 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
872
1192
  }
873
1193
  }
874
1194
  }
875
- `,C=(0,a.default)`
1195
+ `,S=(0,n.default)`
876
1196
  query CLI_deviceUsage($deviceId: ID, $startDate: Date, $endDate: Date) {
877
1197
  deviceUsage(deviceId: $deviceId, startDate: $startDate, endDate: $endDate) {
878
1198
  _id
@@ -891,7 +1211,7 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
891
1211
  }
892
1212
  }
893
1213
  }
894
- `,b=(0,a.default)`
1214
+ `,B=(0,n.default)`
895
1215
  query CLI_applicationProject(
896
1216
  $id: ID!
897
1217
  $buildApplicationOnly: Boolean
@@ -909,7 +1229,7 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
909
1229
  setupGeminiCLI: $setupGeminiCLI
910
1230
  )
911
1231
  }
912
- `,S=(0,a.default)`
1232
+ `,D=(0,n.default)`
913
1233
  query CLI_moduleProject(
914
1234
  $id: ID!
915
1235
  $buildApplicationOnly: Boolean
@@ -927,7 +1247,7 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
927
1247
  setupGeminiCLI: $setupGeminiCLI
928
1248
  )
929
1249
  }
930
- `,D=(0,a.default)`
1250
+ `,L=(0,n.default)`
931
1251
  query CLI_buttressServers {
932
1252
  buttressServers {
933
1253
  serverId
@@ -936,4 +1256,92 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
936
1256
  lastSeenAt
937
1257
  }
938
1258
  }
1259
+ `,w=(0,n.default)`
1260
+ query CLI_registryTrust {
1261
+ registryTrust {
1262
+ ...cliRegistryTrustArguments
1263
+ }
1264
+ }
1265
+ ${a.sJ}
1266
+ `,P=(0,n.default)`
1267
+ query CLI_blueprint($id: ID!) {
1268
+ blueprint(id: $id) {
1269
+ ...cliBlueprintArguments
1270
+ }
1271
+ }
1272
+ ${a._A}
1273
+ `,T=(0,n.default)`
1274
+ query CLI_blueprints($keyword: String, $paginate: Paginate) {
1275
+ blueprints(keyword: $keyword, paginate: $paginate) {
1276
+ ...cliBlueprintShortArguments
1277
+ }
1278
+ }
1279
+ ${a.C$}
1280
+ `,q=(0,n.default)`
1281
+ query CLI_blueprintsByInstance($kind: BlueprintNodeKind!, $ref: String!) {
1282
+ blueprintsByInstance(kind: $kind, ref: $ref) {
1283
+ ...cliBlueprintShortArguments
1284
+ }
1285
+ }
1286
+ ${a.C$}
1287
+ `,x=(0,n.default)`
1288
+ query CLI_blueprintProjection($id: ID!, $format: Int) {
1289
+ blueprintProjection(id: $id, format: $format)
1290
+ }
1291
+ `,F=(0,n.default)`
1292
+ query CLI_blueprintRevisions($id: ID!, $limit: Int) {
1293
+ blueprintRevisions(id: $id, limit: $limit) {
1294
+ _id
1295
+ revision
1296
+ actor
1297
+ snapshot
1298
+ created_at
1299
+ }
1300
+ }
1301
+ `,R=(0,n.default)`
1302
+ query CLI_blueprintEvents($id: ID!, $limit: Int) {
1303
+ blueprintEvents(id: $id, limit: $limit) {
1304
+ _id
1305
+ type
1306
+ detail
1307
+ actor {
1308
+ type
1309
+ instance_id
1310
+ token_name
1311
+ }
1312
+ request_id
1313
+ task_id
1314
+ created_at
1315
+ }
1316
+ }
1317
+ `,M=(0,n.default)`
1318
+ query CLI_devicesApplicationStatus($filter: DeviceApplicationStatusFilter, $paginate: Paginate) {
1319
+ devicesApplicationStatus(filter: $filter, paginate: $paginate) {
1320
+ device_id
1321
+ name
1322
+ device_name
1323
+ application_status {
1324
+ status
1325
+ reason
1326
+ assigned {
1327
+ application_id
1328
+ name
1329
+ config_timestamp
1330
+ commit_id
1331
+ lazy_update
1332
+ }
1333
+ reported {
1334
+ _id
1335
+ name
1336
+ config_timestamp
1337
+ state
1338
+ error_stage
1339
+ error_code
1340
+ error_message
1341
+ }
1342
+ reported_at
1343
+ confirmed_at
1344
+ }
1345
+ }
1346
+ }
939
1347
  `}};