1- // Code generated by the Encore v1.50 .6 client generator. DO NOT EDIT.
1+ // Code generated by the Encore v1.51 .6 client generator. DO NOT EDIT.
22
33// Disable eslint, jshint, and jslint for this file.
44/* eslint-disable */
@@ -33,6 +33,7 @@ const BROWSER = typeof globalThis === "object" && ("window" in globalThis);
3333 */
3434export default class Client {
3535 public readonly appinfo : appinfo . ServiceClient
36+ public readonly artifacts : artifacts . ServiceClient
3637 public readonly graph : graph . ServiceClient
3738 public readonly run : run . ServiceClient
3839 public readonly steering : steering . ServiceClient
@@ -51,6 +52,7 @@ export default class Client {
5152 this . options = options ?? { }
5253 const base = new BaseClient ( this . target , this . options )
5354 this . appinfo = new appinfo . ServiceClient ( base )
55+ this . artifacts = new artifacts . ServiceClient ( base )
5456 this . graph = new graph . ServiceClient ( base )
5557 this . run = new run . ServiceClient ( base )
5658 this . steering = new steering . ServiceClient ( base )
@@ -182,6 +184,44 @@ export namespace appinfo {
182184 }
183185}
184186
187+ export namespace artifacts {
188+ export interface GetArtifactContentResponse {
189+ refId : string
190+ mimeType : string
191+ dataUrl : string
192+ }
193+
194+ export class ServiceClient {
195+ private baseClient : BaseClient
196+
197+ constructor ( baseClient : BaseClient ) {
198+ this . baseClient = baseClient
199+ this . getArtifactContent = this . getArtifactContent . bind ( this )
200+ }
201+
202+ /**
203+ * getArtifactContent returns inline screenshot data for a given artifact refId.
204+ * PURPOSE: Enable frontend clients to render screenshots without direct bucket access.
205+ */
206+ public async getArtifactContent ( params : {
207+ /**
208+ * getArtifactContent returns inline screenshot data for a given artifact refId.
209+ * PURPOSE: Enable frontend clients to render screenshots without direct bucket access.
210+ */
211+ refId ?: string
212+ } ) : Promise < GetArtifactContentResponse > {
213+ // Convert our params into the objects we need for the request
214+ const query = makeRecord < string , string | string [ ] > ( {
215+ refId : params . refId ,
216+ } )
217+
218+ // Now make the actual call to the API
219+ const resp = await this . baseClient . callTypedAPI ( "GET" , `/artifacts/content` , undefined , { query} )
220+ return await resp . json ( ) as GetArtifactContentResponse
221+ }
222+ }
223+ }
224+
185225export namespace graph {
186226 export interface GetScreensResponse {
187227 screens : {
@@ -653,7 +693,7 @@ class BaseClient {
653693 // Add User-Agent header if the script is running in the server
654694 // because browsers do not allow setting User-Agent headers to requests
655695 if ( ! BROWSER ) {
656- this . headers [ "User-Agent" ] = "screengraph-ovzi-Generated-TS-Client (Encore/v1.50 .6)" ;
696+ this . headers [ "User-Agent" ] = "screengraph-ovzi-Generated-TS-Client (Encore/v1.51 .6)" ;
657697 }
658698
659699 this . requestInit = options . requestInit ?? { } ;
0 commit comments