@distilled.cloud/render 1.0.0-rc.17 → 1.0.0-rc.18

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.
@@ -1,2 +1,2 @@
1
- import{errors$API_ERRORS as e,errors$BadGateway as t,errors$BadRequest as n,errors$ConfigError as r,errors$Conflict as i,errors$DEFAULT_ERRORS as a,errors$Forbidden as o,errors$GatewayTimeout as ee,errors$HTTP_STATUS_MAP as te,errors$InternalServerError as ne,errors$Locked as re,errors$NotFound as ie,errors$ServiceUnavailable as s,errors$TooManyRequests as c,errors$Unauthorized as l,errors$UnprocessableEntity as u,protocol_rest$RawResponse as d,protocol_rest$RawResponseRoot as f,protocol_rest$SensitiveValue as p,protocol_rest$makeRestProtocol as m,protocol_rest$rawResponseRootSymbol as h,protocol_rest$rawResponseSymbol as g,protocol_rest$sensitiveValueSymbol as _,schema_lite$Array as v,schema_lite$Boolean as y,schema_lite$Number as b,schema_lite$Record as x,schema_lite$String as S,schema_lite$Struct as C,schema_lite$TaggedError as w,schema_lite$Unknown as T,schema_lite$at as E,schema_lite$optional as D,schema_lite$suspend as O}from"@distilled.cloud/core/_bundle/rest";import{api$D as k,api$call as A,api$error as j,api$named as M,api$newError as N,api$op as P,category$withAuthError as F,category$withBadRequestError as I,category$withConflictError as L,category$withParseError as R,category$withServerError as z,retry$capped as B,retry$jittered as V,retry$makeDefault as H,retry$throttlingFactory as U,retry$throttlingOptions as W,retry$transientFactory as G,retry$transientOptions as K,trait$Body as ae,trait$FormDataFile as q,trait$Header as J,trait$Http as oe,trait$HttpBody as se,trait$KeyDictionary as ce,trait$Label as le,trait$Query as ue,trait$ResponseCode as de,trait$UnionCases as fe,trait$applyErrorMatchers as pe,trait$bodySymbol as me,trait$errorMatchersSymbol as he,trait$formDataFileSymbol as ge,trait$getErrorMatchers as _e,trait$headerSymbol as ve,trait$httpBodySymbol as ye,trait$httpSymbol as be,trait$keyDictionarySymbol as xe,trait$labelSymbol as Se,trait$querySymbol as Ce,trait$responseCodeSymbol as we,trait$unionCasesSymbol as Te}from"@distilled.cloud/core/_bundle/base";import*as Y from"effect/Context";import*as X from"effect/Effect";import*as Z from"effect/Layer";import*as Q from"effect/Redacted";import*as $ from"@distilled.cloud/core/schema-lite-typed";const Ee=`https://api.render.com/v1`;var Credentials=class extends (/*@__PURE__*/ Y.Service()(`RenderCredentials`)){};const fromApiKey=e=>Z.succeed(Credentials,X.succeed({apiKey:e.apiKey,apiBaseUrl:e.apiBaseUrl??`https://api.render.com/v1`}));const De=/*@__PURE__*/ Z.succeed(Credentials,/*@__PURE__*/ X.gen(function*(){const e=process.env.RENDER_API_KEY;if(!e)return yield*new r({message:`RENDER_API_KEY environment variable is required`});return{apiKey:Q.make(e),apiBaseUrl:process.env.RENDER_API_BASE_URL??`https://api.render.com/v1`}}).pipe(X.orDie));var UnknownRenderError=class extends (/*@__PURE__*/ $.TaggedError()(`UnknownRenderError`,{code:/*@__PURE__*/ $.optional($.String),message:/*@__PURE__*/ $.optional($.String),body:$.Unknown}).pipe(z)){};var RenderParseError=class extends (/*@__PURE__*/ $.TaggedError()(`RenderParseError`,{body:$.Unknown,cause:$.Unknown}).pipe(R)){};const Oe=/*@__PURE__*/ m({credentials:/*@__PURE__*/ X.flatMap(Credentials,e=>e),baseUrl:e=>e.apiBaseUrl,headers:e=>({Authorization:`Bearer ${Q.value(e.apiKey)}`,Accept:`application/json`}),unknownError:({code:e,message:t,body:n})=>new UnknownRenderError({code:typeof e===`string`?e:e!==void 0?String(e):void 0,message:t,body:n}),parseError:({body:e,cause:t})=>new RenderParseError({body:e,cause:t})});var Retry=class extends (/*@__PURE__*/ Y.Service()(`RenderRetry`)){};const policy=e=>X.provide(Z.succeed(Retry,e));const ke=/*@__PURE__*/ X.provide(/*@__PURE__*/ Z.succeed(Retry,{while:()=>false}));const Ae=/*@__PURE__*/ policy(U);const je=/*@__PURE__*/ policy(G);export{P as _,S as a,L as b,T as c,Credentials as credentials$Credentials,De as credentials$CredentialsFromEnv,Ee as credentials$DEFAULT_API_BASE_URL,fromApiKey as credentials$fromApiKey,O as d,e as errors$API_ERRORS,t as errors$BadGateway,n as errors$BadRequest,r as errors$ConfigError,i as errors$Conflict,a as errors$DEFAULT_ERRORS,o as errors$Forbidden,ee as errors$GatewayTimeout,te as errors$HTTP_STATUS_MAP,ne as errors$InternalServerError,re as errors$Locked,ie as errors$NotFound,RenderParseError as errors$RenderParseError,s as errors$ServiceUnavailable,c as errors$TooManyRequests,l as errors$Unauthorized,UnknownRenderError as errors$UnknownRenderError,u as errors$UnprocessableEntity,k as f,N as g,M as h,x as i,E as l,j as m,y as n,C as o,A as p,Oe as protocol$RenderProtocol,b as r,Retry as retry$Retry,B as retry$capped,V as retry$jittered,H as retry$makeDefault,ke as retry$none,policy as retry$policy,Ae as retry$throttling,U as retry$throttlingFactory,W as retry$throttlingOptions,je as retry$transient,G as retry$transientFactory,K as retry$transientOptions,w as s,v as t,ae as traits$Body,q as traits$FormDataFile,J as traits$Header,oe as traits$Http,se as traits$HttpBody,ce as traits$KeyDictionary,le as traits$Label,ue as traits$Query,d as traits$RawResponse,f as traits$RawResponseRoot,de as traits$ResponseCode,p as traits$SensitiveValue,fe as traits$UnionCases,pe as traits$applyErrorMatchers,me as traits$bodySymbol,he as traits$errorMatchersSymbol,ge as traits$formDataFileSymbol,_e as traits$getErrorMatchers,ve as traits$headerSymbol,ye as traits$httpBodySymbol,be as traits$httpSymbol,xe as traits$keyDictionarySymbol,Se as traits$labelSymbol,Ce as traits$querySymbol,h as traits$rawResponseRootSymbol,g as traits$rawResponseSymbol,we as traits$responseCodeSymbol,_ as traits$sensitiveValueSymbol,Te as traits$unionCasesSymbol,D as u,F as v,I as y};
1
+ import{errors$API_ERRORS as e,errors$BadGateway as t,errors$BadRequest as n,errors$ConfigError as r,errors$Conflict as i,errors$DEFAULT_ERRORS as a,errors$Forbidden as o,errors$GatewayTimeout as s,errors$HTTP_STATUS_MAP as c,errors$InternalServerError as l,errors$Locked as ee,errors$NotFound as te,errors$ServiceUnavailable as ne,errors$TooManyRequests as re,errors$Unauthorized as ie,errors$UnprocessableEntity as ae,protocol_rest$RawResponse as u,protocol_rest$RawResponseRoot as d,protocol_rest$SensitiveValue as f,protocol_rest$makeRestProtocol as p,protocol_rest$rawResponseRootSymbol as m,protocol_rest$rawResponseSymbol as h,protocol_rest$sensitiveValueSymbol as g,schema_lite$Array as _,schema_lite$Boolean as v,schema_lite$Number as y,schema_lite$Record as b,schema_lite$String as x,schema_lite$Struct as S,schema_lite$TaggedError as C,schema_lite$Unknown as w,schema_lite$at as T,schema_lite$optional as E,schema_lite$suspend as D}from"@distilled.cloud/core/_bundle/rest";import{api$D as O,api$call as k,api$error as A,api$named as j,api$newError as M,api$op as N,category$withAuthError as P,category$withBadRequestError as F,category$withConflictError as I,category$withParseError as L,category$withServerError as R,retry$capped as z,retry$jittered as B,retry$makeDefault as V,retry$throttlingFactory as H,retry$throttlingOptions as U,retry$transientFactory as W,retry$transientOptions as G,schema_lite_typed$String as K,schema_lite_typed$TaggedError as q,schema_lite_typed$Unknown as J,schema_lite_typed$optional as Y,trait$Body as oe,trait$FormDataFile as se,trait$Header as ce,trait$Http as le,trait$HttpBody as ue,trait$KeyDictionary as de,trait$Label as fe,trait$Query as pe,trait$ResponseCode as me,trait$UnionCases as he,trait$applyErrorMatchers as ge,trait$bodySymbol as _e,trait$errorMatchersSymbol as ve,trait$formDataFileSymbol as ye,trait$getErrorMatchers as be,trait$headerSymbol as xe,trait$httpBodySymbol as Se,trait$httpSymbol as Ce,trait$keyDictionarySymbol as we,trait$labelSymbol as Te,trait$querySymbol as Ee,trait$responseCodeSymbol as De,trait$unionCasesSymbol as Oe}from"@distilled.cloud/core/_bundle/base";import*as X from"effect/Context";import*as Z from"effect/Effect";import*as Q from"effect/Layer";import*as $ from"effect/Redacted";const ke=`https://api.render.com/v1`;var Credentials=class extends (/*@__PURE__*/ X.Service()(`RenderCredentials`)){};const fromApiKey=e=>Q.succeed(Credentials,Z.succeed({apiKey:e.apiKey,apiBaseUrl:e.apiBaseUrl??`https://api.render.com/v1`}));const Ae=/*@__PURE__*/ Q.succeed(Credentials,/*@__PURE__*/ Z.gen(function*(){const e=process.env.RENDER_API_KEY;if(!e)return yield*new r({message:`RENDER_API_KEY environment variable is required`});return{apiKey:$.make(e),apiBaseUrl:process.env.RENDER_API_BASE_URL??`https://api.render.com/v1`}}));var UnknownRenderError=class extends (/*@__PURE__*/ q()(`UnknownRenderError`,{code:/*@__PURE__*/ Y(K),message:/*@__PURE__*/ Y(K),body:J}).pipe(R)){};var RenderParseError=class extends (/*@__PURE__*/ q()(`RenderParseError`,{body:J,cause:J}).pipe(L)){};const je=/*@__PURE__*/ p({credentials:/*@__PURE__*/ Z.flatMap(Credentials,e=>e),baseUrl:e=>e.apiBaseUrl,headers:e=>({Authorization:`Bearer ${$.value(e.apiKey)}`,Accept:`application/json`}),unknownError:({code:e,message:t,body:n})=>new UnknownRenderError({code:typeof e===`string`?e:e!==void 0?String(e):void 0,message:t,body:n}),parseError:({body:e,cause:t})=>new RenderParseError({body:e,cause:t})});var Retry=class extends (/*@__PURE__*/ X.Service()(`RenderRetry`)){};const policy=e=>Z.provide(Q.succeed(Retry,e));const Me=/*@__PURE__*/ Z.provide(/*@__PURE__*/ Q.succeed(Retry,{while:()=>false}));const Ne=/*@__PURE__*/ policy(H);const Pe=/*@__PURE__*/ policy(W);export{_ as Jb,v as Kb,y as Sb,b as Tb,x as Vb,S as Wb,C as Yb,O as a,w as ac,k as c,T as cc,Credentials as credentials$Credentials,Ae as credentials$CredentialsFromEnv,ke as credentials$DEFAULT_API_BASE_URL,fromApiKey as credentials$fromApiKey,A as e,e as errors$API_ERRORS,t as errors$BadGateway,n as errors$BadRequest,r as errors$ConfigError,i as errors$Conflict,a as errors$DEFAULT_ERRORS,o as errors$Forbidden,s as errors$GatewayTimeout,c as errors$HTTP_STATUS_MAP,l as errors$InternalServerError,ee as errors$Locked,te as errors$NotFound,RenderParseError as errors$RenderParseError,ne as errors$ServiceUnavailable,re as errors$TooManyRequests,ie as errors$Unauthorized,UnknownRenderError as errors$UnknownRenderError,ae as errors$UnprocessableEntity,E as hc,D as ic,j,M as k,N as l,je as protocol$RenderProtocol,Retry as retry$Retry,z as retry$capped,B as retry$jittered,V as retry$makeDefault,Me as retry$none,policy as retry$policy,Ne as retry$throttling,H as retry$throttlingFactory,U as retry$throttlingOptions,Pe as retry$transient,W as retry$transientFactory,G as retry$transientOptions,oe as traits$Body,se as traits$FormDataFile,ce as traits$Header,le as traits$Http,ue as traits$HttpBody,de as traits$KeyDictionary,fe as traits$Label,pe as traits$Query,u as traits$RawResponse,d as traits$RawResponseRoot,me as traits$ResponseCode,f as traits$SensitiveValue,he as traits$UnionCases,ge as traits$applyErrorMatchers,_e as traits$bodySymbol,ve as traits$errorMatchersSymbol,ye as traits$formDataFileSymbol,be as traits$getErrorMatchers,xe as traits$headerSymbol,Se as traits$httpBodySymbol,Ce as traits$httpSymbol,we as traits$keyDictionarySymbol,Te as traits$labelSymbol,Ee as traits$querySymbol,m as traits$rawResponseRootSymbol,h as traits$rawResponseSymbol,De as traits$responseCodeSymbol,g as traits$sensitiveValueSymbol,Oe as traits$unionCasesSymbol,P as va,F as wa,I as za};
2
2
  //# sourceMappingURL=sdk.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sdk.js","names":["Category.withServerError","Category.withParseError","API_ERRORS","BadGateway","BadRequest","ConfigError","Conflict","DEFAULT_ERRORS","Forbidden","GatewayTimeout","HTTP_STATUS_MAP","InternalServerError","Locked","NotFound","ServiceUnavailable","TooManyRequests","Unauthorized","UnprocessableEntity","RawResponse","RawResponseRoot","SensitiveValue","makeRestProtocol","rawResponseRootSymbol","rawResponseSymbol","sensitiveValueSymbol","Array","Boolean","Number","Record","String$1","Struct","TaggedError","Unknown","at","optional","suspend","D","call","error","named","newError","op","withAuthError","withBadRequestError","withConflictError","withParseError","withServerError","capped","jittered","makeDefault","throttlingFactory","throttlingOptions","transientFactory","transientOptions","Body","FormDataFile","Header","Http","HttpBody","KeyDictionary","Label","Query","ResponseCode","UnionCases","applyErrorMatchers","bodySymbol","errorMatchersSymbol","formDataFileSymbol","getErrorMatchers","headerSymbol","httpBodySymbol","httpSymbol","keyDictionarySymbol","labelSymbol","querySymbol","responseCodeSymbol","unionCasesSymbol","Context","Effect","Layer","Redacted","Schema","DEFAULT_API_BASE_URL","config","CredentialsFromEnv","apiKey","RenderProtocol","resolve","creds","code","optionsOrFactory","none","throttling","transient"],"sources":["../../src/credentials.ts","../../src/errors.ts","../../src/protocol.ts","../../src/retry.ts"],"mappings":"upEAcA,MAAakF,GAAuB,4BAOpC,IAAa,YAAb,eACwB,gBAAQ,QAA4C,CAAC,CACzE,mBACF,EAAA,AAAE,CAAC,EAGL,MAAa,WAAc,GAIzBH,EAAM,QACJ,YACAD,EAAO,QAAQ,CACb,OAAQK,EAAO,OACf,WAAYA,EAAO,YAAA,2BACrB,CAAC,CACH,EAGF,MAAaC,GAA6D,gBAAM,QAC9E,YACc,gBAAO,IAAI,WAAa,CACpC,MAAMC,EAAS,QAAQ,IAAI,eAE3B,GAAI,CAACA,EACH,OAAO,MAAO,IAAIhF,EAAY,CAC5B,QAAS,iDACX,CAAC,EAGH,MAAO,CACL,OAAQ2E,EAAS,KAAKK,CAAM,EAC5B,WAAY,QAAQ,IAAI,qBAAA,2BAC1B,CACF,CAAC,CAAC,CAAC,KAAKP,EAAO,KAAK,CACtB,ECvBA,IAAa,mBAAb,eACwB,gBAAO,YAAgC,CAAC,CAAC,qBAAsB,CACnF,KAAoB,gBAAO,SAASG,EAAO,MAAM,EACjD,QAAuB,gBAAO,SAASA,EAAO,MAAM,EACpD,KAAMA,EAAO,OACf,CAAC,CAAC,CAAC,KAAKjF,CAAwB,EAAA,AAAE,CAAC,EAGrC,IAAa,iBAAb,eACwB,gBAAO,YAA8B,CAAC,CAAC,mBAAoB,CAC/E,KAAMiF,EAAO,QACb,MAAOA,EAAO,OAChB,CAAC,CAAC,CAAC,KAAKhF,CAAuB,EAAA,AAAE,CAAC,ECFpC,MAAaqF,GAA0D,gBAAyB,CAG9F,YAA2B,gBAAO,QAAQ,YAAc,GAAYC,CAAO,EAC3E,QAAU,GAAUC,EAAM,WAC1B,QAAU,IAAW,CACnB,cAAe,UAAUR,EAAS,MAAMQ,EAAM,MAAM,IACpD,OAAQ,kBACV,GAGA,cAAe,CAAE,OAAM,UAAS,UAC9B,IAAI,mBAAmB,CACrB,KAAM,OAAOC,IAAS,SAAWA,EAAOA,IAAS,IAAA,GAAY,OAAOA,CAAI,EAAI,IAAA,GAC5E,UACA,MACF,CAAC,EACH,YAAa,CAAE,OAAM,WAAY,IAAI,iBAAiB,CAAE,OAAM,OAAM,CAAC,CACvE,CAAC,EC3BD,IAAa,MAAb,eAAyC,gBAAQ,QAAuB,CAAC,CAAC,aAAa,EAAA,AAAE,CAAC,EAG1F,MAAa,OAAU,GACrBX,EAAO,QAAQC,EAAM,QAAQ,MAAOW,CAAgB,CAAC,EAGvD,MAAaC,GAAqB,gBAAO,QACzB,gBAAM,QAAQ,MAAO,CAAE,UAAa,KAAM,CAAC,CAC3D,EAGA,MAAaC,GAA2B,qBAAO1C,CAAiB,EAGhE,MAAa2C,GAA0B,qBAAOzC,CAAgB"}
1
+ {"version":3,"file":"sdk.js","names":["Schema.String","Schema.Unknown","Category.withServerError","Category.withParseError","API_ERRORS","BadGateway","BadRequest","ConfigError","Conflict","DEFAULT_ERRORS","Forbidden","GatewayTimeout","HTTP_STATUS_MAP","InternalServerError","Locked","NotFound","ServiceUnavailable","TooManyRequests","Unauthorized","UnprocessableEntity","RawResponse","RawResponseRoot","SensitiveValue","makeRestProtocol","rawResponseRootSymbol","rawResponseSymbol","sensitiveValueSymbol","Array","Boolean","Number","Record","String$1","Struct","TaggedError","Unknown","at","optional","suspend","D","call","error","named","newError","op","withAuthError","withBadRequestError","withConflictError","withParseError","withServerError","capped","jittered","makeDefault","throttlingFactory","throttlingOptions","transientFactory","transientOptions","String$2","TaggedError$1","Unknown$1","optional$1","Body","FormDataFile","Header","Http","HttpBody","KeyDictionary","Label","Query","ResponseCode","UnionCases","applyErrorMatchers","bodySymbol","errorMatchersSymbol","formDataFileSymbol","getErrorMatchers","headerSymbol","httpBodySymbol","httpSymbol","keyDictionarySymbol","labelSymbol","querySymbol","responseCodeSymbol","unionCasesSymbol","Context","Effect","Layer","Redacted","DEFAULT_API_BASE_URL","config","CredentialsFromEnv","apiKey","RenderProtocol","resolve","creds","code","optionsOrFactory","none","throttling","transient"],"sources":["../../src/credentials.ts","../../src/errors.ts","../../src/protocol.ts","../../src/retry.ts"],"mappings":"guEAcA,MAAauF,GAAuB,4BAOpC,IAAa,YAAb,eACwB,gBAAQ,QAAyD,CAAC,CACtF,mBACF,EAAA,AAAE,CAAC,EAGL,MAAa,WAAc,GAIzBF,EAAM,QACJ,YACAD,EAAO,QAAQ,CACb,OAAQI,EAAO,OACf,WAAYA,EAAO,YAAA,2BACrB,CAAC,CACH,EAGF,MAAaC,GAA6D,gBAAM,QAC9E,YACc,gBAAO,IAAI,WAAa,CACpC,MAAMC,EAAS,QAAQ,IAAI,eAE3B,GAAI,CAACA,EACH,OAAO,MAAO,IAAInF,EAAY,CAC5B,QAAS,iDACX,CAAC,EAGH,MAAO,CACL,OAAQ+E,EAAS,KAAKI,CAAM,EAC5B,WAAY,QAAQ,IAAI,qBAAA,2BAC1B,CACF,CAAC,CACH,ECvBA,IAAa,mBAAb,eACwB,gBAAuC,CAAC,CAAC,qBAAsB,CACnF,KAAoB,gBAAgB1F,CAAa,EACjD,QAAuB,gBAAgBA,CAAa,EACpD,KAAMC,CACR,CAAC,CAAC,CAAC,KAAKC,CAAwB,EAAA,AAAE,CAAC,EAGrC,IAAa,iBAAb,eACwB,gBAAqC,CAAC,CAAC,mBAAoB,CAC/E,KAAMD,EACN,MAAOA,CACT,CAAC,CAAC,CAAC,KAAKE,CAAuB,EAAA,AAAE,CAAC,ECDpC,MAAawF,GAA0D,gBAAyB,CAG9F,YAA2B,gBAAO,QAAQ,YAAc,GAAYC,CAAO,EAC3E,QAAU,GAAUC,EAAM,WAC1B,QAAU,IAAW,CACnB,cAAe,UAAUP,EAAS,MAAMO,EAAM,MAAM,IACpD,OAAQ,kBACV,GAGA,cAAe,CAAE,OAAM,UAAS,UAC9B,IAAI,mBAAmB,CACrB,KAAM,OAAOC,IAAS,SAAWA,EAAOA,IAAS,IAAA,GAAY,OAAOA,CAAI,EAAI,IAAA,GAC5E,UACA,MACF,CAAC,EACH,YAAa,CAAE,OAAM,WAAY,IAAI,iBAAiB,CAAE,OAAM,OAAM,CAAC,CACvE,CAAC,EC5BD,IAAa,MAAb,eAAyC,gBAAQ,QAAuB,CAAC,CAAC,aAAa,EAAA,AAAE,CAAC,EAG1F,MAAa,OAAU,GACrBV,EAAO,QAAQC,EAAM,QAAQ,MAAOU,CAAgB,CAAC,EAGvD,MAAaC,GAAqB,gBAAO,QACzB,gBAAM,QAAQ,MAAO,CAAE,UAAa,KAAM,CAAC,CAC3D,EAGA,MAAaC,GAA2B,qBAAO7C,CAAiB,EAGhE,MAAa8C,GAA0B,qBAAO5C,CAAgB"}
@@ -1,3 +1,4 @@
1
+ import { ConfigError } from "@distilled.cloud/core/errors";
1
2
  /**
2
3
  * Render credentials -- hand-written.
3
4
  *
@@ -15,7 +16,7 @@ export interface Config {
15
16
  readonly apiKey: Redacted.Redacted<string>;
16
17
  readonly apiBaseUrl: string;
17
18
  }
18
- declare const Credentials_base: Context.ServiceClass<Credentials, "RenderCredentials", Effect.Effect<Config, never, never>>;
19
+ declare const Credentials_base: Context.ServiceClass<Credentials, "RenderCredentials", Effect.Effect<Config, ConfigError, never>>;
19
20
  export declare class Credentials extends /*@__PURE__*/ Credentials_base {
20
21
  }
21
22
  /** Layer from a redacted API key + optional base URL. */
@@ -1 +1 @@
1
- {"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../src/credentials.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AACH,OAAO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AAC;CAC7B;;AAED,qBAAa,WACX,SAAQ,aAAa,CAAC,gBAErB;CAAG;AAEN,yDAAyD;AACzD,eAAO,MAAM,UAAU,WAAY;IACjC,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC3C,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;CAC9B,KAAG,KAAK,CAAC,KAAK,CAAC,WAAW,CAOxB,CAAC;AAEJ,0EAA0E;AAC1E,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,KAAK,CAAC,WAAW,CAgBvD,CAAC"}
package/lib/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * @distilled.cloud/render -- Render SDK for Effect.
3
3
  *
4
- * `./services` is generated by `scripts/generate.ts` from the Smithy model
5
- * in `.generated-specs` (written by `scripts/convert.ts` from the OpenAPI
6
- * spec). Everything else in this folder is hand-written.
4
+ * `./services` is generated by `scripts/generate.ts` from the Smithy model that
5
+ * `scripts/convert.ts` converts from the OpenAPI spec. Everything else in this
6
+ * folder is hand-written.
7
7
  *
8
8
  * @example
9
9
  * ```ts
package/lib/protocol.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type * as API from "@distilled.cloud/core/api";
2
- import type { API_ERRORS, ConfigError } from "@distilled.cloud/core/errors";
2
+ import type { API_ERRORS, ConfigError, InvalidInput } from "@distilled.cloud/core/errors";
3
3
  import type * as HttpClient from "effect/http/HttpClient";
4
4
  import type * as HttpClientError from "effect/http/HttpClientError";
5
5
  import type * as Layer from "effect/Layer";
@@ -11,7 +11,7 @@ import { UnknownRenderError, RenderParseError } from "./errors.ts";
11
11
  * RenderOpError, RenderOpContext>` explicitly so the compiler never infers
12
12
  * these back out of the schema generics.
13
13
  */
14
- export type RenderOpError = InstanceType<(typeof API_ERRORS)[number]> | UnknownRenderError | ConfigError | HttpClientError.HttpClientError | RenderParseError;
14
+ export type RenderOpError = InstanceType<(typeof API_ERRORS)[number]> | UnknownRenderError | ConfigError | HttpClientError.HttpClientError | RenderParseError | InvalidInput;
15
15
  /** Context (requirements) shared by every generated Render operation. */
16
16
  export type RenderOpContext = Credentials | HttpClient.HttpClient;
17
17
  export declare const RenderProtocol: Layer.Layer<API.Protocol>;
@@ -1 +1 @@
1
- {"version":3,"file":"protocol.d.ts","sourceRoot":"","sources":["../src/protocol.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,GAAG,MAAM,2BAA2B,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAmB5E,OAAO,KAAK,KAAK,UAAU,MAAM,wBAAwB,CAAC;AAC1D,OAAO,KAAK,KAAK,eAAe,MAAM,6BAA6B,CAAC;AACpE,OAAO,KAAK,KAAK,KAAK,MAAM,cAAc,CAAC;AAE3C,OAAO,EAAE,WAAW,EAAe,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEnE;;;;;GAKG;AACH,MAAM,MAAM,aAAa,GACrB,YAAY,CAAC,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC,GACzC,kBAAkB,GAClB,WAAW,GACX,eAAe,CAAC,eAAe,GAC/B,gBAAgB,CAAC;AAErB,yEAAyE;AACzE,MAAM,MAAM,eAAe,GAAG,WAAW,GAAG,UAAU,CAAC,UAAU,CAAC;AAElE,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,CAkBnD,CAAC"}
1
+ {"version":3,"file":"protocol.d.ts","sourceRoot":"","sources":["../src/protocol.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,GAAG,MAAM,2BAA2B,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAmB1F,OAAO,KAAK,KAAK,UAAU,MA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