import{C as n}from"./gateway.8adee4a2.js";import"./outputWidgets.bf79c6b8.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[t]="4a655811-f0c1-4ab4-9fad-6fea765c2336",s._sentryDebugIdIdentifier="sentry-dbid-4a655811-f0c1-4ab4-9fad-6fea765c2336")}catch{}})();class c{list({projectId:t,buildId:e,...r}){return n.post(`projects/${t}/builds/${e}/logs`,r)}filters(t){return n.get(`projects/${t}/log-filters`)}}const a=new c;class i{constructor(t,e,r,o,l,d,u){this.executionId=t,this.runtimeType=e,this.runtimeName=r,this.payload=o,this.event=l,this.buildId=d,this.createdAt=u}static fromDTO(t){return new i(t.executionId,t.runtimeType,t.runtimeName,t.payload,t.event,t.buildId,new Date(t.createdAt))}static async list(t){const e=await a.list(t);return{total:e.total,logs:e.logs.map(i.fromDTO)}}static async filters(t){return a.filters(t)}get displayPayload(){return this.event==="start"?"Start":this.event==="end"?"End":this.event==="stdout"?this.payload.log:this.event==="stderr"?this.payload.log:JSON.stringify(this.payload)}get execId(){return this.executionId.slice(0,8)}}export{i as L};
//# sourceMappingURL=log.a845acf3.js.map
