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

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:()=>v.createFetchForUrl,createPublicClient:()=>A});var n,a,r,s,o=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),v=t(75149),_=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,v.createFetchForUrl)(i)});this.apolloClient=new _({link:t,cache:new f,defaultOptions:{query:{errorPolicy:"all",fetchPolicy:"no-cache"}}})},[{key:"checkWorkspaceOTP",value:(n=o(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=o(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=o(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,v.createFetchForUrl)(i)}),s=y((n=o(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:s.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=o(function*(a,r,s=!1){try{var o=e.apolloClient[h[i]].bind(e.apolloClient),d=yield o({[i]:s?(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:s?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]=o(function*(i={},n={}){try{return yield r(i,n)}catch(s){let a;if(/blueprint/i.test(t)&&(a=s.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(s?.message||"")){yield e.auth.refresh();try{return yield r(i,n)}catch(i){throw S(i,e.auth)}}throw S(s,e.auth)}})}};Object.entries(this.queries).forEach(i("query")),Object.entries(this.mutations).forEach(i("mutation"))}},{key:"query",value:(r=o(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:(s=o(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 s.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$:()=>v,F3:()=>r,J6:()=>p,NJ:()=>o,VZ:()=>s,Yi:()=>a,_A:()=>g,ju:()=>_,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
+ `,s=(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
+ `,o=(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
+ `,v=(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
+ `,_=(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:()=>U,bindApplication:()=>f,bindButtressServer:()=>q,bindButtressServerWithRegistry:()=>x,controlDevice:()=>s,copyMediaFiles:()=>D,createApplication:()=>p,createApplicationWithShareVersion:()=>$,createBlueprint:()=>G,createDevice:()=>r,createMediaFileUploadRequest:()=>S,createModule:()=>y,createVirtualDevice:()=>o,deleteMediaBoxFiles:()=>w,deleteMediaFiles:()=>L,dispatchDeviceGroupAction:()=>c,heartbeatBlueprintRun:()=>K,issueButtressAccessToken:()=>M,issueButtressNodeCredential:()=>F,issueButtressServerAccessToken:()=>V,issueDevtoolsAccessToken:()=>E,releaseApplication:()=>b,releaseBlueprintRun:()=>H,releaseModule:()=>T,removeApplication:()=>v,removeBlueprint:()=>O,removeDevice:()=>u,removeModule:()=>k,revertBlueprint:()=>j,revokeAccessTokens:()=>W,setMediaFileAsBoxPreview:()=>P,shortEditApplication:()=>_,shortEditModule:()=>A,triggerApplicationCanvasControl:()=>I,unbindButtressServer:()=>R,updateApplication:()=>m,updateBlueprint:()=>N,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
+ `,s=(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
+ `,o=(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
+ `,v=(0,n.default)`
375
530
  mutation CLI_removeApplication($id: ID!) {
376
531
  removeApplication(id: $id)
377
532
  }
378
- `,g=(0,a.default)`
533
+ `,_=(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,19 @@ ${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)`
834
+ mutation CLI_issueButtressServerAccessToken($serverId: ID!, $ttlSeconds: Int) {
835
+ issueButtressServerAccessToken: issueButtressAccessToken(
836
+ serverId: $serverId
837
+ ttlSeconds: $ttlSeconds
838
+ ) {
839
+ token
840
+ expiresAt
841
+ workspaceId
842
+ jti
843
+ }
844
+ }
845
+ `,E=(0,n.default)`
611
846
  mutation CLI_issueDevtoolsAccessToken($ttlSeconds: Int) {
612
847
  issueDevtoolsAccessToken(ttlSeconds: $ttlSeconds) {
613
848
  token
@@ -616,49 +851,110 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
616
851
  jti
617
852
  }
618
853
  }
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)`
854
+ `,W=(0,n.default)`
855
+ mutation CLI_revokeAccessTokens {
856
+ revokeAccessTokens {
857
+ workspaceId
858
+ notBefore
859
+ }
860
+ }
861
+ `,G=(0,n.default)`
862
+ mutation CLI_createBlueprint($name: String!, $description: String) {
863
+ createBlueprint(name: $name, description: $description) {
864
+ ...cliBlueprintArguments
865
+ }
866
+ }
867
+ ${a._A}
868
+ `,N=(0,n.default)`
869
+ mutation CLI_updateBlueprint($id: ID!, $revision: Int!, $patch: BlueprintPatchInput!) {
870
+ updateBlueprint(id: $id, revision: $revision, patch: $patch) {
871
+ ...cliBlueprintArguments
872
+ }
873
+ }
874
+ ${a._A}
875
+ `,j=(0,n.default)`
876
+ mutation CLI_revertBlueprint($id: ID!, $toRevision: Int!) {
877
+ revertBlueprint(id: $id, toRevision: $toRevision) {
878
+ ...cliBlueprintArguments
879
+ }
880
+ }
881
+ ${a._A}
882
+ `,O=(0,n.default)`
883
+ mutation CLI_removeBlueprint($id: ID!) {
884
+ removeBlueprint(id: $id)
885
+ }
886
+ `,U=(0,n.default)`
887
+ mutation CLI_acquireBlueprintRun(
888
+ $id: ID!
889
+ $host: String!
890
+ $sessionId: String!
891
+ $instanceId: String
892
+ ) {
893
+ acquireBlueprintRun(id: $id, host: $host, sessionId: $sessionId, instanceId: $instanceId) {
894
+ ok
895
+ run {
896
+ ...cliBlueprintRunArguments
897
+ }
898
+ }
899
+ }
900
+ ${a.zL}
901
+ `,K=(0,n.default)`
902
+ mutation CLI_heartbeatBlueprintRun($id: ID!, $sessionId: String!) {
903
+ heartbeatBlueprintRun(id: $id, sessionId: $sessionId) {
904
+ ok
905
+ run {
906
+ ...cliBlueprintRunArguments
907
+ }
908
+ }
909
+ }
910
+ ${a.zL}
911
+ `,H=(0,n.default)`
912
+ mutation CLI_releaseBlueprintRun($id: ID!, $sessionId: String!) {
913
+ releaseBlueprintRun(id: $id, sessionId: $sessionId)
914
+ }
915
+ `},43741(e,i,t){t.r(i),t.d(i,{application:()=>p,applicationDeviceSettings:()=>$,applicationProject:()=>B,applicationReleaseVersions:()=>m,applications:()=>g,blueprint:()=>T,blueprintEvents:()=>M,blueprintProjection:()=>F,blueprintRevisions:()=>R,blueprints:()=>q,blueprintsByInstance:()=>x,buttressServerKeys:()=>L,buttressServers:()=>w,checkBindDevicePasscode:()=>y,device:()=>s,deviceGroup:()=>l,deviceGroups:()=>u,deviceUsage:()=>S,devices:()=>o,devicesApplicationStatus:()=>V,devicesByGroup:()=>c,devicesPanel:()=>d,mediaBox:()=>C,mediaBoxes:()=>A,mediaFile:()=>b,mediaFiles:()=>h,mediaWorkspace:()=>k,module:()=>_,moduleProject:()=>D,modules:()=>f,publicApplicationShareInfo:()=>v,publicModules:()=>I,registryTrust:()=>P,workspace:()=>r});var n=t(94370),a=t(48596),r=(0,n.default)`
620
916
  query CLI_workspace {
621
917
  workspace {
622
918
  ...cliWorkspaceArguments
623
919
  }
624
920
  }
625
- ${n.Yi}
626
- `,o=(0,a.default)`
921
+ ${a.Yi}
922
+ `,s=(0,n.default)`
627
923
  query CLI_device($id: ID) {
628
924
  device(id: $id) {
629
925
  ...cliDeviceArguments
630
926
  }
631
927
  }
632
- ${n.F3}
633
- `,s=(0,a.default)`
928
+ ${a.F3}
929
+ `,o=(0,n.default)`
634
930
  query CLI_devices($keyword: String, $paginate: Paginate) {
635
931
  devices(keyword: $keyword, paginate: $paginate) {
636
932
  ...cliDeviceShortArguments
637
933
  }
638
934
  }
639
- ${n.NJ}
640
- `,d=(0,a.default)`
935
+ ${a.NJ}
936
+ `,d=(0,n.default)`
641
937
  query CLI_devicesPanel($keyword: String, $paginate: Paginate) {
642
938
  devicesPanel: devices(keyword: $keyword, paginate: $paginate) {
643
939
  ...cliDevicePanelArguments
644
940
  }
645
941
  }
646
- ${n.VZ}
647
- `,l=(0,a.default)`
942
+ ${a.VZ}
943
+ `,l=(0,n.default)`
648
944
  query CLI_deviceGroup($id: ID) {
649
945
  deviceGroup(id: $id) {
650
946
  ...cliDeviceGroupArguments
651
947
  }
652
948
  }
653
- ${n.mJ}
654
- `,c=(0,a.default)`
949
+ ${a.mJ}
950
+ `,u=(0,n.default)`
655
951
  query CLI_deviceGroups($paginate: Paginate) {
656
952
  deviceGroups(paginate: $paginate) {
657
953
  ...cliDeviceGroupArguments
658
954
  }
659
955
  }
660
- ${n.mJ}
661
- `,u=(0,a.default)`
956
+ ${a.mJ}
957
+ `,c=(0,n.default)`
662
958
  query CLI_devicesByGroup($id: ID) {
663
959
  devicesByGroup(id: $id) {
664
960
  target_name
@@ -679,21 +975,55 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
679
975
  }
680
976
  }
681
977
  }
682
- `,p=(0,a.default)`
978
+ `,p=(0,n.default)`
683
979
  query CLI_application($id: ID!, $composed: Boolean, $debug: Boolean) {
684
980
  application(id: $id, composed: $composed, debug: $debug) {
685
981
  ...cliApplicationArguments
686
982
  }
687
983
  }
688
- ${n.lI}
689
- `,m=(0,a.default)`
984
+ ${a.lI}
985
+ `,$=(0,n.default)`
986
+ query CLI_applicationDeviceSettings($id: ID!) {
987
+ applicationDeviceSettings: application(id: $id) {
988
+ _id
989
+ devices {
990
+ device_id
991
+ frame
992
+ run_test
993
+ short_edit
994
+ canvas_control
995
+ device_control
996
+ env
997
+ cron_tests {
998
+ test_id
999
+ cron
1000
+ date_range {
1001
+ start
1002
+ end
1003
+ }
1004
+ update_screenshot
1005
+ bind_id
1006
+ }
1007
+ }
1008
+ }
1009
+ }
1010
+ `,m=(0,n.default)`
1011
+ query CLI_applicationReleaseVersions($id: ID!) {
1012
+ applicationReleaseVersions(id: $id) {
1013
+ _id
1014
+ version
1015
+ note
1016
+ create_datetime
1017
+ }
1018
+ }
1019
+ `,g=(0,n.default)`
690
1020
  query CLI_applications($keyword: String, $paginate: Paginate) {
691
1021
  applications(keyword: $keyword, paginate: $paginate) {
692
1022
  ...cliApplicationShortArguments
693
1023
  }
694
1024
  }
695
- ${n.$7}
696
- `,$=(0,a.default)`
1025
+ ${a.$7}
1026
+ `,v=(0,n.default)`
697
1027
  query CLI_publicApplicationShareInfo($id: ID!) {
698
1028
  publicApplicationShareInfo(id: $id) {
699
1029
  _id
@@ -718,32 +1048,32 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
718
1048
  }
719
1049
  }
720
1050
  }
721
- `,g=(0,a.default)`
1051
+ `,_=(0,n.default)`
722
1052
  query CLI_module($id: ID!) {
723
1053
  module(id: $id) {
724
1054
  ...cliModuleArguments
725
1055
  }
726
1056
  }
727
- ${n.$V}
728
- `,_=(0,a.default)`
1057
+ ${a.$V}
1058
+ `,f=(0,n.default)`
729
1059
  query CLI_modules($keyword: String, $paginate: Paginate) {
730
1060
  modules(keyword: $keyword, paginate: $paginate) {
731
1061
  ...cliModuleShortArguments
732
1062
  }
733
1063
  }
734
- ${n.J6}
735
- `,v=(0,a.default)`
1064
+ ${a.J6}
1065
+ `,I=(0,n.default)`
736
1066
  query CLI_publicModules($keyword: String!, $limit: Int) {
737
1067
  publicModules(keyword: $keyword, paginate: { limit: $limit }) {
738
1068
  ...cliModuleShortArguments
739
1069
  }
740
1070
  }
741
- ${n.J6}
742
- `,h=(0,a.default)`
1071
+ ${a.J6}
1072
+ `,y=(0,n.default)`
743
1073
  query CLI_checkBindDevicePasscode($passcode: String!) {
744
1074
  checkBindDevicePasscode(passcode: $passcode)
745
1075
  }
746
- `,y=(0,a.default)`
1076
+ `,h=(0,n.default)`
747
1077
  query CLI_mediaFiles(
748
1078
  $boxId: ID!
749
1079
  $includeTypes: [String]
@@ -786,7 +1116,7 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
786
1116
  }
787
1117
  }
788
1118
  }
789
- `,f=(0,a.default)`
1119
+ `,k=(0,n.default)`
790
1120
  query CLI_mediaWorkspace {
791
1121
  mediaWorkspace {
792
1122
  id
@@ -799,8 +1129,8 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
799
1129
  updatedAt
800
1130
  }
801
1131
  }
802
- `,I=(0,a.default)`
803
- query CLI_mediaBoxes {
1132
+ `,A=(0,n.default)`
1133
+ query CLI_mediaBoxes($includeCodes: Boolean = false) {
804
1134
  mediaBoxes {
805
1135
  id
806
1136
  name
@@ -810,18 +1140,19 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
810
1140
  size
811
1141
  createdAt
812
1142
  updatedAt
1143
+ # Passcode codes are credentials: fetched only for --show-codes
813
1144
  passcodes {
814
1145
  id
815
1146
  name
816
- code
1147
+ code @include(if: $includeCodes)
817
1148
  enableExpired
818
1149
  expiredAt
819
1150
  permissions
820
1151
  }
821
1152
  }
822
1153
  }
823
- `,k=(0,a.default)`
824
- query CLI_mediaBox($id: ID!) {
1154
+ `,C=(0,n.default)`
1155
+ query CLI_mediaBox($id: ID!, $includeCodes: Boolean = false) {
825
1156
  mediaBox(id: $id) {
826
1157
  id
827
1158
  name
@@ -831,17 +1162,18 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
831
1162
  size
832
1163
  createdAt
833
1164
  updatedAt
1165
+ # Passcode codes are credentials: fetched only for --show-codes
834
1166
  passcodes {
835
1167
  id
836
1168
  name
837
- code
1169
+ code @include(if: $includeCodes)
838
1170
  enableExpired
839
1171
  expiredAt
840
1172
  permissions
841
1173
  }
842
1174
  }
843
1175
  }
844
- `,A=(0,a.default)`
1176
+ `,b=(0,n.default)`
845
1177
  query CLI_mediaFile($id: ID!) {
846
1178
  mediaFile(id: $id) {
847
1179
  id
@@ -872,7 +1204,7 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
872
1204
  }
873
1205
  }
874
1206
  }
875
- `,C=(0,a.default)`
1207
+ `,S=(0,n.default)`
876
1208
  query CLI_deviceUsage($deviceId: ID, $startDate: Date, $endDate: Date) {
877
1209
  deviceUsage(deviceId: $deviceId, startDate: $startDate, endDate: $endDate) {
878
1210
  _id
@@ -891,7 +1223,7 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
891
1223
  }
892
1224
  }
893
1225
  }
894
- `,b=(0,a.default)`
1226
+ `,B=(0,n.default)`
895
1227
  query CLI_applicationProject(
896
1228
  $id: ID!
897
1229
  $buildApplicationOnly: Boolean
@@ -909,7 +1241,7 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
909
1241
  setupGeminiCLI: $setupGeminiCLI
910
1242
  )
911
1243
  }
912
- `,S=(0,a.default)`
1244
+ `,D=(0,n.default)`
913
1245
  query CLI_moduleProject(
914
1246
  $id: ID!
915
1247
  $buildApplicationOnly: Boolean
@@ -927,7 +1259,16 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
927
1259
  setupGeminiCLI: $setupGeminiCLI
928
1260
  )
929
1261
  }
930
- `,D=(0,a.default)`
1262
+ `,L=(0,n.default)`
1263
+ query CLI_buttressServerKeys {
1264
+ buttressServerKeys: buttressServers {
1265
+ serverId
1266
+ serverPublicKey {
1267
+ kid
1268
+ }
1269
+ }
1270
+ }
1271
+ `,w=(0,n.default)`
931
1272
  query CLI_buttressServers {
932
1273
  buttressServers {
933
1274
  serverId
@@ -936,4 +1277,92 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
936
1277
  lastSeenAt
937
1278
  }
938
1279
  }
1280
+ `,P=(0,n.default)`
1281
+ query CLI_registryTrust {
1282
+ registryTrust {
1283
+ ...cliRegistryTrustArguments
1284
+ }
1285
+ }
1286
+ ${a.sJ}
1287
+ `,T=(0,n.default)`
1288
+ query CLI_blueprint($id: ID!) {
1289
+ blueprint(id: $id) {
1290
+ ...cliBlueprintArguments
1291
+ }
1292
+ }
1293
+ ${a._A}
1294
+ `,q=(0,n.default)`
1295
+ query CLI_blueprints($keyword: String, $paginate: Paginate) {
1296
+ blueprints(keyword: $keyword, paginate: $paginate) {
1297
+ ...cliBlueprintShortArguments
1298
+ }
1299
+ }
1300
+ ${a.C$}
1301
+ `,x=(0,n.default)`
1302
+ query CLI_blueprintsByInstance($kind: BlueprintNodeKind!, $ref: String!) {
1303
+ blueprintsByInstance(kind: $kind, ref: $ref) {
1304
+ ...cliBlueprintShortArguments
1305
+ }
1306
+ }
1307
+ ${a.C$}
1308
+ `,F=(0,n.default)`
1309
+ query CLI_blueprintProjection($id: ID!, $format: Int) {
1310
+ blueprintProjection(id: $id, format: $format)
1311
+ }
1312
+ `,R=(0,n.default)`
1313
+ query CLI_blueprintRevisions($id: ID!, $limit: Int) {
1314
+ blueprintRevisions(id: $id, limit: $limit) {
1315
+ _id
1316
+ revision
1317
+ actor
1318
+ snapshot
1319
+ created_at
1320
+ }
1321
+ }
1322
+ `,M=(0,n.default)`
1323
+ query CLI_blueprintEvents($id: ID!, $limit: Int) {
1324
+ blueprintEvents(id: $id, limit: $limit) {
1325
+ _id
1326
+ type
1327
+ detail
1328
+ actor {
1329
+ type
1330
+ instance_id
1331
+ token_name
1332
+ }
1333
+ request_id
1334
+ task_id
1335
+ created_at
1336
+ }
1337
+ }
1338
+ `,V=(0,n.default)`
1339
+ query CLI_devicesApplicationStatus($filter: DeviceApplicationStatusFilter, $paginate: Paginate) {
1340
+ devicesApplicationStatus(filter: $filter, paginate: $paginate) {
1341
+ device_id
1342
+ name
1343
+ device_name
1344
+ application_status {
1345
+ status
1346
+ reason
1347
+ assigned {
1348
+ application_id
1349
+ name
1350
+ config_timestamp
1351
+ commit_id
1352
+ lazy_update
1353
+ }
1354
+ reported {
1355
+ _id
1356
+ name
1357
+ config_timestamp
1358
+ state
1359
+ error_stage
1360
+ error_code
1361
+ error_message
1362
+ }
1363
+ reported_at
1364
+ confirmed_at
1365
+ }
1366
+ }
1367
+ }
939
1368
  `}};