@distilled.cloud/acme 1.0.0-rc.20 → 1.0.0-rc.21
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/_bundle/sdk.js +1 -1
- package/lib/_bundle/sdk.js.map +1 -1
- package/lib/_chunks/{_distilled-core_trait-BRJKEsOV.js → _distilled-core_trait-CTvyvKXY.js} +1 -1
- package/lib/credentials.d.ts +5 -2
- package/lib/credentials.d.ts.map +1 -1
- package/lib/errors.d.ts +8 -0
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +1 -1
- package/lib/errors.js.map +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/jose.d.ts.map +1 -1
- package/lib/protocol.d.ts +19 -11
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +1 -1
- package/lib/protocol.js.map +1 -1
- package/lib/retry.d.ts.map +1 -1
- package/lib/services/acme.d.ts +47 -0
- package/lib/services/acme.d.ts.map +1 -1
- package/lib/services/acme.js +1 -1
- package/lib/services/acme.js.map +1 -1
- package/lib/services/index.d.ts.map +1 -1
- package/lib/traits.d.ts.map +1 -1
- package/lib/traits.js +1 -1
- package/package.json +4 -4
- package/src/credentials.ts +37 -33
- package/src/errors.ts +10 -1
- package/src/protocol.ts +61 -106
- package/src/services/acme.ts +83 -23
package/lib/_bundle/sdk.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{i as e}from"../_chunks/_distilled-core_errors-Cr8-AbeO.js";import{config$Redacted as t,config$String as n,config$all as r,config$option as i,config$withDefault as a}from"@distilled.cloud/core/_bundle/base";import*as o from"effect/Context";import*as s from"effect/Effect";import*as c from"effect/Layer";import*as l from"effect/Option";import"effect/Redacted";var u=Object.defineProperty;var __exportAll=(e,t)=>{let n={};for(var r in e){u(n,r,{get:e[r],enumerable:true})}if(!t){u(n,Symbol.toStringTag,{value:`Module`})}return n};const d={LetsEncrypt:`https://acme-v02.api.letsencrypt.org/directory`,LetsEncryptStaging:`https://acme-staging-v02.api.letsencrypt.org/directory`,ZeroSSL:`https://acme.zerossl.com/v2/DV90`,GoogleTrustServices:`https://dv.acme-v02.api.pki.goog/directory`,GoogleTrustServicesStaging:`https://dv.acme-v02.test-api.pki.goog/directory`};var Credentials=class extends (/*@__PURE__*/ o.Service()(`AcmeCredentials`)){};const f=/*@__PURE__*/ c.
|
|
1
|
+
import{i as e}from"../_chunks/_distilled-core_errors-Cr8-AbeO.js";import{config$Redacted as t,config$String as n,config$all as r,config$option as i,config$withDefault as a}from"@distilled.cloud/core/_bundle/base";import*as o from"effect/Context";import*as s from"effect/Effect";import*as c from"effect/Layer";import*as l from"effect/Option";import"effect/Redacted";var u=Object.defineProperty;var __exportAll=(e,t)=>{let n={};for(var r in e){u(n,r,{get:e[r],enumerable:true})}if(!t){u(n,Symbol.toStringTag,{value:`Module`})}return n};const d={LetsEncrypt:`https://acme-v02.api.letsencrypt.org/directory`,LetsEncryptStaging:`https://acme-staging-v02.api.letsencrypt.org/directory`,ZeroSSL:`https://acme.zerossl.com/v2/DV90`,GoogleTrustServices:`https://dv.acme-v02.api.pki.goog/directory`,GoogleTrustServicesStaging:`https://dv.acme-v02.test-api.pki.goog/directory`};var Credentials=class extends (/*@__PURE__*/ o.Service()(`AcmeCredentials`)){};const f=/*@__PURE__*/ c.effect(Credentials,/*@__PURE__*/ s.map(/*@__PURE__*/ r({directoryUrl:/*@__PURE__*/ n(`ACME_DIRECTORY_URL`).pipe(/*@__PURE__*/ a(d.LetsEncrypt)),accountKey:/*@__PURE__*/ t(`ACME_ACCOUNT_KEY`),accountUrl:/*@__PURE__*/ i(/*@__PURE__*/ n(`ACME_ACCOUNT_URL`)),eabKid:/*@__PURE__*/ i(/*@__PURE__*/ n(`ACME_EAB_KID`)),eabHmac:/*@__PURE__*/ i(/*@__PURE__*/ t(`ACME_EAB_HMAC_KEY`))}).pipe(/*@__PURE__*/ s.mapError(()=>new e({message:`ACME_ACCOUNT_KEY (a private JWK) is required; ACME_DIRECTORY_URL, ACME_ACCOUNT_URL, ACME_EAB_KID and ACME_EAB_HMAC_KEY are optional`})),/*@__PURE__*/ s.map(({directoryUrl:e,accountKey:t,accountUrl:n,eabKid:r,eabHmac:i})=>({directoryUrl:e,accountKey:t,accountUrl:l.getOrUndefined(n),externalAccountBinding:l.isSome(r)&&l.isSome(i)?{keyId:r.value,hmacKey:i.value}:void 0}))),e=>s.succeed(e)));const layer=e=>c.succeed(Credentials,s.isEffect(e)?e:s.succeed(e));export{Credentials as credentials$Credentials,f as credentials$CredentialsFromEnv,d as credentials$Directories,layer as credentials$layer,__exportAll as t};
|
|
2
2
|
//# sourceMappingURL=sdk.js.map
|
package/lib/_bundle/sdk.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdk.js","names":["ConfigError","ConfigError$1","Redacted","String","all","option","withDefault","Context","Effect","Layer","Option","__defProp","target","name","no_symbols","Directories","CredentialsFromEnv","accountUrl","eabKid","eabHmac","config"],"sources":["../../src/credentials.ts"],"mappings":"shBAsBA,MAAae,EAAc,CACzB,YAAa,iDACb,mBAAoB,yDACpB,QAAS,mCACT,oBAAqB,6CACrB,2BAA4B,iDAC9B,EA0BA,IAAa,YAAb,eACwB,gBAAQ,
|
|
1
|
+
{"version":3,"file":"sdk.js","names":["ConfigError","ConfigError$1","Redacted","String","all","option","withDefault","Context","Effect","Layer","Option","__defProp","target","name","no_symbols","Directories","CredentialsFromEnv","accountUrl","eabKid","eabHmac","config"],"sources":["../../src/credentials.ts"],"mappings":"shBAsBA,MAAae,EAAc,CACzB,YAAa,iDACb,mBAAoB,yDACpB,QAAS,mCACT,oBAAqB,6CACrB,2BAA4B,iDAC9B,EA0BA,IAAa,YAAb,eACwB,gBAAQ,QAA4C,CAAC,CAAC,iBAAiB,EAAA,AAAE,CAAC,EAalG,MAAaC,EAAmC,gBAAM,OACpD,YACc,gBAAO,IACL,gBAAiB,CAC7B,aAA4B,gBAAoB,oBAAoB,CAAC,CAAC,KACtD,gBAAyBD,EAAY,WAAW,CAChE,EACA,WAA0B,gBAAsB,kBAAkB,EAClE,WAA0B,gBACV,gBAAoB,kBAAkB,CACtD,EACA,OAAsB,gBAAkC,gBAAoB,cAAc,CAAC,EAC3F,QAAuB,gBACP,gBAAsB,mBAAmB,CACzD,CACF,CAAC,CAAC,CAAC,KACa,gBAAO,aAEjB,IAAIf,EAAY,CACd,QACE,qIACJ,CAAC,CACL,EACc,gBAAO,KAClB,CAAE,eAAc,aAAY,aAAY,SAAQ,cAAuB,CACtE,eACA,aACA,WAAYU,EAAO,eAAeO,CAAU,EAC5C,uBACEP,EAAO,OAAOQ,CAAM,GAAKR,EAAO,OAAOS,CAAO,EAC1C,CAAE,MAAOD,EAAO,MAAO,QAASC,EAAQ,KAAM,EAC9C,IAAA,EACR,EACF,CACF,EACC,GAAWX,EAAO,QAAQY,CAAM,CACnC,CACF,EAGA,MAAa,MAAS,GACpBX,EAAM,QAAQ,YAAaD,EAAO,SAASY,CAAM,EAAIA,EAASZ,EAAO,QAAQY,CAAM,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{trait$Body as e,trait$FormDataFile as t,trait$Header as n,trait$Http as r,trait$HttpBody as i,trait$KeyDictionary as a,trait$Label as o,trait$Query as s,trait$ResponseCode as c,trait$UnionCases as l,trait$applyErrorMatchers as u,trait$bodySymbol as d,trait$errorMatchersSymbol as f,trait$formDataFileSymbol as p,trait$getErrorMatchers as m,trait$headerSymbol as h,trait$httpBodySymbol as g,trait$httpSymbol as _,trait$keyDictionarySymbol as v,trait$labelSymbol as y,trait$querySymbol as b,trait$responseCodeSymbol as x,trait$unionCasesSymbol as S}from"@distilled.cloud/core/_bundle/base";import{protocol_rest$RawResponse as C,protocol_rest$RawResponseRoot as w,protocol_rest$SensitiveValue as T,protocol_rest$
|
|
1
|
+
import{trait$Body as e,trait$FormDataFile as t,trait$Header as n,trait$Http as r,trait$HttpBody as i,trait$KeyDictionary as a,trait$Label as o,trait$Query as s,trait$ResponseCode as c,trait$UnionCases as l,trait$applyErrorMatchers as u,trait$bodySymbol as d,trait$errorMatchersSymbol as f,trait$formDataFileSymbol as p,trait$getErrorMatchers as m,trait$headerSymbol as h,trait$httpBodySymbol as g,trait$httpSymbol as _,trait$keyDictionarySymbol as v,trait$labelSymbol as y,trait$querySymbol as b,trait$responseCodeSymbol as x,trait$unionCasesSymbol as S}from"@distilled.cloud/core/_bundle/base";import{protocol_rest$RawResponse as C,protocol_rest$RawResponseRoot as w,protocol_rest$SensitiveValue as T,protocol_rest$declaredStatusClass as E,protocol_rest$rawResponseRootSymbol as D,protocol_rest$rawResponseSymbol as O,protocol_rest$sensitiveValueSymbol as k,protocol_rest$unwrapRedactedDeep as A}from"@distilled.cloud/core/_bundle/rest";export{k as A,S as C,E as D,T as E,D as O,x as S,w as T,g as _,i as a,y as b,s as c,u as d,d as f,h as g,m as h,r as i,A as j,O as k,c as l,p as m,t as n,a as o,f as p,n as r,o as s,e as t,l as u,_ as v,C as w,b as x,v as y};
|
package/lib/credentials.d.ts
CHANGED
|
@@ -46,7 +46,7 @@ export interface Config {
|
|
|
46
46
|
/** EAB for CAs that require it (ZeroSSL, Google Trust Services). */
|
|
47
47
|
readonly externalAccountBinding?: ExternalAccountBinding | undefined;
|
|
48
48
|
}
|
|
49
|
-
declare const Credentials_base: Context.ServiceClass<Credentials, "AcmeCredentials", Effect.Effect<Config,
|
|
49
|
+
declare const Credentials_base: Context.ServiceClass<Credentials, "AcmeCredentials", Effect.Effect<Config, never, never>>;
|
|
50
50
|
export declare class Credentials extends /*@__PURE__*/ Credentials_base {
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
@@ -56,8 +56,11 @@ export declare class Credentials extends /*@__PURE__*/ Credentials_base {
|
|
|
56
56
|
* - `ACME_ACCOUNT_KEY` -- the private JWK as JSON
|
|
57
57
|
* - `ACME_ACCOUNT_URL` -- optional, once the account exists
|
|
58
58
|
* - `ACME_EAB_KID` / `ACME_EAB_HMAC_KEY` -- optional EAB pair
|
|
59
|
+
*
|
|
60
|
+
* Its configuration is read and checked once, when the layer is built: a
|
|
61
|
+
* problem there fails the layer with `ConfigError`.
|
|
59
62
|
*/
|
|
60
|
-
export declare const CredentialsFromEnv: Layer.Layer<Credentials,
|
|
63
|
+
export declare const CredentialsFromEnv: Layer.Layer<Credentials, ConfigError, never>;
|
|
61
64
|
/** A fixed credentials layer (tests, and consumers that manage keys themselves). */
|
|
62
65
|
export declare const layer: (config: Config | Effect.Effect<Config>) => Layer.Layer<Credentials, never, never>;
|
|
63
66
|
export {};
|
package/lib/credentials.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credentials.d.ts","
|
|
1
|
+
{"version":3,"file":"credentials.d.ts","sources":["../src/credentials.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAEtC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAE5C,mCAAmC;AACnC,eAAO,MAAM,WAAW;aACtB,WAAW,EAAE,gDAAgD;aAC7D,kBAAkB,EAAE,wDAAwD;aAC5E,OAAO,EAAE,kCAAkC;aAC3C,mBAAmB,EAAE,4CAA4C;aACjE,0BAA0B,EAAE,iDAAiD;CACrE,CAAC;AAEX,MAAM,WAAW,sBAAsB;IACrC,gCAAgC;IAChC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,wCAAwC;IACxC,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;CAC7C;AAED,MAAM,WAAW,MAAM;IACrB,8BAA8B;IAC9B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B;;;OAGG;IACH,QAAQ,CAAC,UAAU,EAAE,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC/C;;;OAGG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC,oEAAoE;IACpE,QAAQ,CAAC,sBAAsB,CAAC,EAAE,sBAAsB,GAAG,SAAS,CAAC;CACtE;;AAED,qBAAa,WACX,SAAQ,aAAa,CAAC,gBAAwE;CAAG;AAEnG;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kBAAkB,8CAqC9B,CAAC;AAEF,oFAAoF;AACpF,eAAO,MAAM,KAAK,WAAY,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,2CAC2B,CAAC"}
|
package/lib/errors.d.ts
CHANGED
|
@@ -71,4 +71,12 @@ export type ClientErrors = UnknownAcmeError | AcmeParseError | JoseError | Direc
|
|
|
71
71
|
* the client errors above.
|
|
72
72
|
*/
|
|
73
73
|
export type DefaultErrors = CoreDefaultErrors | CoreBadRequest | CoreForbidden | CoreNotFound | CoreConflict | ClientErrors;
|
|
74
|
+
/**
|
|
75
|
+
* The errors declared on the ACME service: any operation can return them,
|
|
76
|
+
* and every generated operation lists them as its `serviceErrors`.
|
|
77
|
+
* Each of core's status classes: the protocol builds the one for the status
|
|
78
|
+
* of a failed response that is not a problem document.
|
|
79
|
+
*/
|
|
80
|
+
export declare const AcmeServiceErrors: readonly [typeof import("@distilled.cloud/core/errors").Unauthorized, typeof CoreForbidden, typeof CoreNotFound, typeof CoreBadRequest, typeof CoreConflict, typeof import("@distilled.cloud/core/errors").UnprocessableEntity, typeof import("@distilled.cloud/core/errors").TooManyRequests, typeof import("@distilled.cloud/core/errors").Locked, typeof import("@distilled.cloud/core/errors").InternalServerError, typeof import("@distilled.cloud/core/errors").BadGateway, typeof import("@distilled.cloud/core/errors").ServiceUnavailable, typeof import("@distilled.cloud/core/errors").GatewayTimeout];
|
|
81
|
+
export type AcmeServiceError = InstanceType<(typeof AcmeServiceErrors)[number]>;
|
|
74
82
|
//# sourceMappingURL=errors.d.ts.map
|
package/lib/errors.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EACL,UAAU,EACV,UAAU,EACV,QAAQ,EACR,WAAW,EACX,SAAS,EACT,cAAc,EACd,mBAAmB,EACnB,MAAM,EACN,QAAQ,EACR,kBAAkB,EAClB,eAAe,EACf,YAAY,EACZ,mBAAmB,EACnB,eAAe,EACf,cAAc,EACd,UAAU,GACX,MAAM,8BAA8B,CAAC;AAEtC,OAAO,KAAK,EACV,UAAU,IAAI,cAAc,EAC5B,QAAQ,IAAI,YAAY,EACxB,aAAa,IAAI,iBAAiB,EAClC,SAAS,IAAI,aAAa,EAC1B,QAAQ,IAAI,YAAY,EACzB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,KAAK,MAAM,MAAM,yCAAyC,CAAC;;;;;;IAU9D,oEAAoE;;;;;AARxE;;;;GAIG;AACH,qBAAa,gBACX,SAAQ,aAAa,CAAC,qBAMpB;CAAG;;;;;;;;;AAEP,kCAAkC;AAClC,qBAAa,cACX,SAAQ,aAAa,CAAC,mBAGU;CAAG;;;;;;;;;AAErC,yEAAyE;AACzE,qBAAa,SACX,SAAQ,aAAa,CAAC,cAGe;CAAG;;;;;;;;;AAE1C;;;GAGG;AACH,qBAAa,wBACX,SAAQ,aAAa,CAAC,6BAGe;CAAG;AAE1C,2EAA2E;AAC3E,MAAM,MAAM,YAAY,GAAG,gBAAgB,GAAG,cAAc,GAAG,SAAS,GAAG,wBAAwB,CAAC;AAEpG;;;GAGG;AACH,MAAM,MAAM,aAAa,GACrB,iBAAiB,GACjB,cAAc,GACd,aAAa,GACb,YAAY,GACZ,YAAY,GACZ,YAAY,CAAC;AAEjB;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,mlBAAa,CAAC;AAC5C,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC"}
|
package/lib/errors.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{_ as e,a as t,c as n,d as r,f as i,g as a,h as o,i as s,l as c,m as l,n as u,o as d,p as f,r as p,s as m,t as h,u as g}from"./_chunks/_distilled-core_errors-Cr8-AbeO.js";import{category$withBadRequestError as _,category$withParseError as v,category$withRetryableError as y,category$withThrottlingError as b,schema_lite_typed$Array as x,schema_lite_typed$String as S,schema_lite_typed$TaggedError as C,schema_lite_typed$Unknown as w,schema_lite_typed$optional as T}from"@distilled.cloud/core/_bundle/base";var UnknownAcmeError=class extends (/*@__PURE__*/ C()(`UnknownAcmeError`,{...a,type:/*@__PURE__*/ T(S),detail:/*@__PURE__*/ T(S),subproblems:/*@__PURE__*/ T(/*@__PURE__*/ x(w))})){};var AcmeParseError=class extends (/*@__PURE__*/ C()(`AcmeParseError`,{body:w,cause:w}).pipe(v)){};var JoseError=class extends (/*@__PURE__*/ C()(`JoseError`,{message:S,cause:/*@__PURE__*/ T(w)}).pipe(_)){};var DirectoryMissingResource=class extends (/*@__PURE__*/ C()(`DirectoryMissingResource`,{resource:S,directoryUrl:S}).pipe(_)){};export{h as API_ERRORS,AcmeParseError,u as BadGateway,p as BadRequest,s as ConfigError,t as Conflict,d as DEFAULT_ERRORS,DirectoryMissingResource,m as Forbidden,n as GatewayTimeout,c as HTTP_STATUS_MAP,g as InternalServerError,JoseError,r as Locked,i as NotFound,f as ServiceUnavailable,l as TooManyRequests,o as Unauthorized,UnknownAcmeError,e as UnprocessableEntity,b as n,y as t};
|
|
1
|
+
import{_ as e,a as t,c as n,d as r,f as i,g as a,h as o,i as s,l as c,m as l,n as u,o as d,p as f,r as p,s as m,t as h,u as g}from"./_chunks/_distilled-core_errors-Cr8-AbeO.js";import{category$withBadRequestError as _,category$withParseError as v,category$withRetryableError as y,category$withThrottlingError as b,schema_lite_typed$Array as x,schema_lite_typed$String as S,schema_lite_typed$TaggedError as C,schema_lite_typed$Unknown as w,schema_lite_typed$optional as T}from"@distilled.cloud/core/_bundle/base";var UnknownAcmeError=class extends (/*@__PURE__*/ C()(`UnknownAcmeError`,{...a,type:/*@__PURE__*/ T(S),detail:/*@__PURE__*/ T(S),subproblems:/*@__PURE__*/ T(/*@__PURE__*/ x(w))})){};var AcmeParseError=class extends (/*@__PURE__*/ C()(`AcmeParseError`,{body:w,cause:w}).pipe(v)){};var JoseError=class extends (/*@__PURE__*/ C()(`JoseError`,{message:S,cause:/*@__PURE__*/ T(w)}).pipe(_)){};var DirectoryMissingResource=class extends (/*@__PURE__*/ C()(`DirectoryMissingResource`,{resource:S,directoryUrl:S}).pipe(_)){};const E=h;export{h as API_ERRORS,AcmeParseError,E as AcmeServiceErrors,u as BadGateway,p as BadRequest,s as ConfigError,t as Conflict,d as DEFAULT_ERRORS,DirectoryMissingResource,m as Forbidden,n as GatewayTimeout,c as HTTP_STATUS_MAP,g as InternalServerError,JoseError,r as Locked,i as NotFound,f as ServiceUnavailable,l as TooManyRequests,o as Unauthorized,UnknownAcmeError,e as UnprocessableEntity,b as n,y as t};
|
|
2
2
|
//# sourceMappingURL=errors.js.map
|
package/lib/errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","names":["Schema.String","Schema.Unknown","Category.withParseError","Category.withBadRequestError","UnprocessableEntity","Conflict","GatewayTimeout","Locked","NotFound","UnknownErrorFields","Unauthorized","ConfigError","HTTP_STATUS_MAP","TooManyRequests","BadGateway","DEFAULT_ERRORS","ServiceUnavailable","BadRequest","Forbidden","API_ERRORS","InternalServerError","withBadRequestError","withParseError","withRetryableError","withThrottlingError","Array","String","TaggedError","Unknown","optional"],"sources":["../src/errors.ts"],"mappings":"ggBA4CA,IAAa,iBAAb,eACwB,gBAAqC,CAAC,CAAC,mBAAoB,CAC/E,GAAGS,EAEH,KAAoB,gBAAgBT,CAAa,EACjD,OAAsB,gBAAgBA,CAAa,EACnD,YAA2B,gBAA8B,gBAAaC,CAAc,CAAC,CACvF,CAAC,EAAA,AAAE,CAAC,EAGN,IAAa,eAAb,eACwB,gBAAmC,CAAC,CAAC,iBAAkB,CAC3E,KAAMA,EACN,MAAOA,CACT,CAAC,CAAC,CAAC,KAAKC,CAAuB,EAAA,AAAE,CAAC,EAGpC,IAAa,UAAb,eACwB,gBAA8B,CAAC,CAAC,YAAa,CACjE,QAASF,EACT,MAAqB,gBAAgBC,CAAc,CACrD,CAAC,CAAC,CAAC,KAAKE,CAA4B,EAAA,AAAE,CAAC,EAMzC,IAAa,yBAAb,eACwB,gBAA6C,CAAC,CAAC,2BAA4B,CAC/F,SAAUH,EACV,aAAcA,CAChB,CAAC,CAAC,CAAC,KAAKG,CAA4B,EAAA,AAAE,CAAC"}
|
|
1
|
+
{"version":3,"file":"errors.js","names":["Schema.String","Schema.Unknown","Category.withParseError","Category.withBadRequestError","UnprocessableEntity","Conflict","GatewayTimeout","Locked","NotFound","UnknownErrorFields","Unauthorized","ConfigError","HTTP_STATUS_MAP","TooManyRequests","BadGateway","DEFAULT_ERRORS","ServiceUnavailable","BadRequest","Forbidden","API_ERRORS","InternalServerError","withBadRequestError","withParseError","withRetryableError","withThrottlingError","Array","String","TaggedError","Unknown","optional","AcmeServiceErrors"],"sources":["../src/errors.ts"],"mappings":"ggBA4CA,IAAa,iBAAb,eACwB,gBAAqC,CAAC,CAAC,mBAAoB,CAC/E,GAAGS,EAEH,KAAoB,gBAAgBT,CAAa,EACjD,OAAsB,gBAAgBA,CAAa,EACnD,YAA2B,gBAA8B,gBAAaC,CAAc,CAAC,CACvF,CAAC,EAAA,AAAE,CAAC,EAGN,IAAa,eAAb,eACwB,gBAAmC,CAAC,CAAC,iBAAkB,CAC3E,KAAMA,EACN,MAAOA,CACT,CAAC,CAAC,CAAC,KAAKC,CAAuB,EAAA,AAAE,CAAC,EAGpC,IAAa,UAAb,eACwB,gBAA8B,CAAC,CAAC,YAAa,CACjE,QAASF,EACT,MAAqB,gBAAgBC,CAAc,CACrD,CAAC,CAAC,CAAC,KAAKE,CAA4B,EAAA,AAAE,CAAC,EAMzC,IAAa,yBAAb,eACwB,gBAA6C,CAAC,CAAC,2BAA4B,CAC/F,SAAUH,EACV,aAAcA,CAChB,CAAC,CAAC,CAAC,KAAKG,CAA4B,EAAA,AAAE,CAAC,EAuBzC,MAAa2B,EAAoBX"}
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","
|
|
1
|
+
{"version":3,"file":"index.d.ts","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,KAAK,WAAW,EAAE,KAAK,aAAa,EAAE,MAAM,eAAe,CAAC;AACnF,cAAc,qBAAqB,CAAC"}
|
package/lib/jose.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jose.d.ts","
|
|
1
|
+
{"version":3,"file":"jose.d.ts","sources":["../src/jose.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,OAAO,CAAC;AAE1C,MAAM,WAAW,GAAG;IAClB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CA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AAC,MAAM,CAAC,MAAM,EAAE,SAAS,CACT,CAAC;AAEnF,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC;IAClB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,sEAAsE;IACtE,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,0DAA0D;IAC1D,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,sEAAsE;AACtE,eAAO,MAAM,WAAW,YAAa,WAAW,KAAG,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE,SAAS,CA+BpF,CAAC;AAEL;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,YAAa;IAClD,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC;IAClB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC;CACtD,KAAG,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE,SAAS,CAmCrC,CAAC"}
|
package/lib/protocol.d.ts
CHANGED
|
@@ -1,23 +1,30 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { InternalServerError } from "@distilled.cloud/core/errors";
|
|
2
|
+
import type { DecodeArgs, EncodeArgs, ErrorOf, ProtocolOf } from "@distilled.cloud/core/protocol";
|
|
3
3
|
import type { SdkError } from "@distilled.cloud/core/sdk-error";
|
|
4
|
+
import * as Effect from "effect/Effect";
|
|
4
5
|
import * as HttpClient from "effect/http/HttpClient";
|
|
5
|
-
import
|
|
6
|
-
import * as Layer from "effect/Layer";
|
|
6
|
+
import * as HttpClientRequest from "effect/http/HttpClientRequest";
|
|
7
7
|
import * as Redacted from "effect/Redacted";
|
|
8
8
|
import type * as AST from "effect/SchemaAST";
|
|
9
9
|
import { Credentials } from "./credentials.ts";
|
|
10
|
-
import { type
|
|
10
|
+
import { AcmeParseError, DirectoryMissingResource, JoseError, UnknownAcmeError, type AcmeServiceError } from "./errors.ts";
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
12
|
+
* What every generated ACME operation fails with besides its own errors:
|
|
13
|
+
* the service's errors, the protocol's, and what resolving the credentials
|
|
14
|
+
* fails with. Generated service files annotate operations with
|
|
15
|
+
* `API.OperationMethod<I, O, AcmeOpError, AcmeOpContext>` explicitly so the
|
|
16
|
+
* compiler never infers these back out of the schema generics.
|
|
16
17
|
*/
|
|
17
|
-
export type AcmeOpError =
|
|
18
|
+
export type AcmeOpError = AcmeServiceError | ErrorOf<typeof AcmeProtocol> | SdkError;
|
|
18
19
|
/** Context (requirements) shared by every generated ACME operation. */
|
|
19
20
|
export type AcmeOpContext = Credentials | HttpClient.HttpClient;
|
|
20
|
-
|
|
21
|
+
declare const encode: ({ input, inputAst }: EncodeArgs) => Effect.Effect<HttpClientRequest.HttpClientRequest, AcmeParseError | DirectoryMissingResource | import("effect/http/HttpClientError").HttpClientError | JoseError | UnknownAcmeError, Credentials | HttpClient.HttpClient>;
|
|
22
|
+
declare const decode: ({ response, outputAst, errors: errorClasses }: DecodeArgs) => Effect.Effect<unknown, AcmeParseError | import("@distilled.cloud/core/protocol").DeclaredError | import("effect/http/HttpClientError").HttpClientError | InternalServerError | JoseError | UnknownAcmeError, Credentials | HttpClient.HttpClient>;
|
|
23
|
+
declare const acmeProtocolMethods: {
|
|
24
|
+
encode: typeof encode;
|
|
25
|
+
decode: typeof decode;
|
|
26
|
+
};
|
|
27
|
+
export declare const AcmeProtocol: ProtocolOf<typeof acmeProtocolMethods>;
|
|
21
28
|
/** Forget cached directories and nonces (tests, CA switches). */
|
|
22
29
|
export declare const resetProtocolCaches: () => void;
|
|
23
30
|
/** @internal re-exported for tests */
|
|
@@ -25,4 +32,5 @@ export declare const _internal: {
|
|
|
25
32
|
getAnn: (ast: AST.AST, symbol: symbol) => unknown;
|
|
26
33
|
Redacted: typeof Redacted;
|
|
27
34
|
};
|
|
35
|
+
export {};
|
|
28
36
|
//# sourceMappingURL=protocol.d.ts.map
|
package/lib/protocol.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protocol.d.ts","
|
|
1
|
+
{"version":3,"file":"protocol.d.ts","sources":["../src/protocol.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,KAAK,EACV,UAAU,EACV,UAAU,EACV,OAAO,EAEP,UAAU,EACX,MAAM,gCAAgC,CAAC;AA2CxC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAEhE,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,KAAK,iBAAiB,MAAM,+BAA+B,CAAC;AAEnE,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAE5C,OAAO,KAAK,KAAK,GAAG,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EACL,cAAc,EACd,wBAAwB,EACxB,SAAS,EACT,gBAAgB,EAChB,KAAK,gBAAgB,EACtB,MAAM,aAAa,CAAC;AAGrB;;;;;;GAMG;AACH,MAAM,MAAM,WAAW,GACnB,gBAAgB,GAChB,OAAO,CAAC,OAAO,YAAY,CAAC,GAG5B,QAAQ,CAAC;AAEb,uEAAuE;AACvE,MAAM,MAAM,aAAa,GAAG,WAAW,GAAG,UAAU,CAAC,UAAU,CAAC;AAqIhE,QAAA,MAAM,MAAM,wBAAyB,UAAU,8NAgG3C,CAAC;AAmCL,QAAA,MAAM,MAAM,kDAAmD,UAAU,sPAiHrE,CAAC;AAiBL,QAAA,MAAM,mBAAmB;;;CAGa,CAAC;AAEvC,eAAO,MAAM,YAAY,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAuB,CAAC;AAExF,iEAAiE;AACjE,eAAO,MAAM,mBAAmB,QAAO,IAGtC,CAAC;AAEF,sCAAsC;AACtC,eAAO,MAAM,SAAS;;;CAAuB,CAAC"}
|
package/lib/protocol.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{u as e}from"./_chunks/_distilled-core_errors-Cr8-AbeO.js";import{credentials$Credentials as t}from"./_bundle/sdk.js";import{AcmeParseError as n,DirectoryMissingResource as r,JoseError as i,UnknownAcmeError as a}from"./errors.js";import{parseJwk as o,signExternalAccountBinding as s,signRequest as c}from"./jose.js";import{D as l,b as u,j as d,v as f}from"./_chunks/_distilled-core_trait-CTvyvKXY.js";import{response_validation$failUnlessLenient as p,response_validation$isValidating as m,response_validation$validateResponse as h}from"@distilled.cloud/core/_bundle/base";import{protocol_http$getAnn as g,protocol_http$getProps as _,protocol_http$hasPropAnn as v,protocol_http$mapKeys as y,protocol_http$matchTypedError as b,retry_after$parseRetryAfterForStatus as x}from"@distilled.cloud/core/_bundle/rest";import*as S from"effect/Effect";import*as C from"effect/Redacted";import*as w from"effect/http/HttpClient";import*as T from"effect/http/HttpClientRequest";import*as E from"effect/Schema";const D=/*@__PURE__*/ E.Struct({newNonce:E.String,newAccount:E.String,newOrder:E.String,revokeCert:E.String,newAuthz:/*@__PURE__*/ E.optional(E.String),keyChange:/*@__PURE__*/ E.optional(E.String),meta:/*@__PURE__*/ E.optional(/*@__PURE__*/ E.Record(E.String,E.Unknown))});const O=/*@__PURE__*/ new Map;const k=/*@__PURE__*/ new Map;const A=/*@__PURE__*/ new WeakMap;const j=/*@__PURE__*/ S.gen(function*(){return yield*yield*t});const fetchDirectory=e=>S.gen(function*(){const t=O.get(e);if(t)return t;const n=yield*(yield*w.HttpClient).get(e);rememberNonce(e,n);if(n.status>=400){const t=yield*n.text;return yield*S.fail(new a({message:`GET ${e} answered ${n.status}`,status:n.status,body:C.make(t)}))}const r=yield*n.text;const i=yield*parseJson(r);const o=yield*E.decodeUnknownEffect(D)(i).pipe(S.mapError(()=>parseError(`Invalid ACME directory response`)));O.set(e,o);return o});const rememberNonce=(e,t)=>{const n=t.headers[`replay-nonce`];if(typeof n===`string`&&n.length>0)k.set(e,n)};const takeNonce=(e,t)=>S.gen(function*(){const n=k.get(e);if(n!==void 0){k.delete(e);return n}const r=yield*(yield*w.HttpClient).execute(T.head(t.newNonce));const i=r.headers[`replay-nonce`];if(typeof i!==`string`||i.length===0)return yield*S.fail(new a({message:`HEAD ${t.newNonce} returned no Replay-Nonce header`,status:r.status,body:void 0}));return i});const M={"/directory":`GetDirectory`,"/newNonce":`NewNonce`,"/newAccount":`NewAccount`,"/account/{url}":`UpdateAccount`,"/newOrder":`NewOrder`,"/order/{url}":`GetOrder`,"/finalize/{url}":`FinalizeOrder`,"/authz/{url}":`GetAuthorization`,"/authz/{url}/deactivate":`DeactivateAuthorization`,"/challenge/{url}":`RespondChallenge`,"/cert/{url}":`DownloadCertificate`,"/revokeCert":`RevokeCertificate`};const operationOf=e=>{const t=g(e,f);return M[t?.uri??``]??``};const N={NewNonce:`newNonce`,NewAccount:`newAccount`,NewOrder:`newOrder`,RevokeCertificate:`revokeCert`};const P=/*@__PURE__*/ new Set([`GetOrder`,`GetAuthorization`,`DownloadCertificate`]);const F=`application/json, application/pem-certificate-chain`;const encode=({input:e,inputAst:t})=>S.gen(function*(){const n=yield*j;const a=operationOf(t);if(a===``)return yield*S.fail(new i({message:"The operation's input carries no known ACME `T.Http` uri."}));if(a===`GetDirectory`)return T.get(n.directoryUrl).pipe(T.setHeader(`Accept`,`application/json`));const c=yield*fetchDirectory(n.directoryUrl);if(a===`NewNonce`)return T.head(c.newNonce);const l=d(e)??{};const f=N[a];let p;if(f!==void 0){const e=c[f];if(typeof e!==`string`)return yield*S.fail(new r({resource:f,directoryUrl:n.directoryUrl}));p=e}else{const e=_(t).find(e=>v(e,u));const n=e?l[String(e.name)]:void 0;if(typeof n!==`string`)return yield*S.fail(new i({message:`${a} needs the resource URL the CA returned (\`url\`).`}));p=n}let m;if(!P.has(a)){const e={};for(const n of _(t)){if(v(n,u))continue;const t=String(n.name);if(l[t]!==void 0)e[t]=l[t]}m=e}const h=yield*o(n.accountKey);const g=a===`NewAccount`||n.accountUrl===void 0;if(a===`NewAccount`&&n.externalAccountBinding!==void 0&&m.externalAccountBinding===void 0)m.externalAccountBinding=yield*s({jwk:h,url:p,keyId:n.externalAccountBinding.keyId,hmacKey:n.externalAccountBinding.hmacKey});const y=yield*takeNonce(n.directoryUrl,c);const b={jwk:h,url:p,kid:g?void 0:n.accountUrl,payload:m,directoryUrl:n.directoryUrl};const x=yield*signedRequest(b,y);A.set(x.body,b);return x});const signedRequest=(e,t)=>S.gen(function*(){const n=yield*c({...e,nonce:t});return T.post(e.url).pipe(T.setHeader(`Accept`,F),T.bodyText(JSON.stringify(n),`application/jose+json`))});const isProblem=e=>isObject(e)&&typeof e.type===`string`;const parseLinkAlternates=e=>{if(!e)return[];const t=[];for(const n of e.split(`,`)){const e=n.match(/<([^>]+)>\s*;\s*rel="?alternate"?/);if(e)t.push(e[1])}return t};const decode=({response:t,outputAst:n,errors:r})=>S.gen(function*(){const i=A.get(t.request.body);A.delete(t.request.body);const o=i?.directoryUrl??(yield*j).directoryUrl;for(let s=0;;s++){const c=t.headers;const u=t.status;const d=t.request.method===`HEAD`;const f=(c[`content-type`]??``).includes(`pem-certificate-chain`);const g=d?``:yield*t.text;const v=d||f&&u<400?void 0:yield*parseJson(g).pipe(S.catchTag(`AcmeParseError`,e=>u>=400?S.succeed(void 0):p(e,g)));const T=u>=400&&isProblem(v)?v:void 0;if(T?.type===`urn:ietf:params:acme:error:badNonce`){const e=c[`replay-nonce`];if(i&&e&&s<2){t=yield*(yield*w.HttpClient).execute(yield*signedRequest(i,e));continue}}else rememberNonce(o,t);if(u>=400){if(T){const e=b(r,u,[{code:u,message:T.detail??T.type??`HTTP ${u}`}],{body:T,headers:c});if(e!==void 0)return yield*S.fail(e);return yield*S.fail(new a({type:T.type,detail:T.detail,subproblems:T.subproblems,message:T.detail??T.type,status:u,body:C.make(v)}))}const t=`HTTP ${u}`;const n=l(u,r);if(n)return yield*S.fail(new n({message:t,retryAfter:x(u,c)}));if(u>=500)return yield*S.fail(new e({message:t,retryAfter:x(u,c)}));return yield*S.fail(new a({message:t,status:u,body:C.make(v??g)}))}let E;if(d)E={replayNonce:c[`replay-nonce`]||void 0};else if(f)E={chain:g,alternates:parseLinkAlternates(c[`link`])};else if(isObject(v)){E=v;const e=c[`location`];if(e&&_(n).some(e=>e.name===`location`))E={...E,location:e}}else{if(!(yield*m))return v;return yield*S.fail(parseError(`Expected a JSON object`))}return yield*h(n,y(n,E,`decode`),()=>parseError(`Response does not match the output schema`))}});const isObject=e=>typeof e===`object`&&e!==null&&!Array.isArray(e);const parseError=e=>new n({body:`[REDACTED]`,cause:e});const parseJson=e=>S.try({try:()=>e.trim().length>0?JSON.parse(e):{},catch:()=>parseError(`Invalid JSON response`)});const I={encode,decode};const L=I;const resetProtocolCaches=()=>{O.clear();k.clear()};const R={getAnn:g,Redacted:C};export{L as AcmeProtocol,R as _internal,resetProtocolCaches};
|
|
2
2
|
//# sourceMappingURL=protocol.js.map
|
package/lib/protocol.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protocol.js","names":["
|
|
1
|
+
{"version":3,"file":"protocol.js","names":["InternalServerError","Credentials","declaredStatusClass","labelSymbol","unwrapRedactedDeep","httpSymbol","failUnlessLenient","isValidating","validateResponse","getAnn","getProps","hasPropAnn","mapKeys","matchTypedError","parseRetryAfterForStatus","Effect","Redacted","HttpClient","HttpClientRequest","Schema","DirectorySchema","directories","nonces","signedRequests","resolveCredentials","cached","directoryUrl","response","text","UnknownAcmeError","json","directory","nonce","OPERATIONS_BY_URI","http","inputAst","DIRECTORY_OPERATIONS","POST_AS_GET","JOSE_ACCEPT","creds","operation","JoseError","inputObj","input","directoryKey","url","resolved","DirectoryMissingResource","label","p","value","payload","body","prop","key","jwk","parseJwk","embedKey","signExternalAccountBinding","signing","request","jws","signRequest","link","out","part","match","errorClasses","retries","headers","status","isNewNonce","isCertificate","error","problem","typed","message","StatusClass","location","outputAst","AcmeParseError","acmeProtocolMethods","AcmeProtocol","_internal"],"sources":["../src/protocol.ts"],"mappings":"y+BA2FA,MAAMoB,EAAgC,gBAAO,OAAO,CAClD,SAAUD,EAAO,OACjB,WAAYA,EAAO,OACnB,SAAUA,EAAO,OACjB,WAAYA,EAAO,OACnB,SAAwB,gBAAO,SAASA,EAAO,MAAM,EACrD,UAAyB,gBAAO,SAASA,EAAO,MAAM,EACtD,KAAoB,gBAAO,SAAuB,gBAAO,OAAOA,EAAO,OAAQA,EAAO,OAAO,CAAC,CAChG,CAAC,EAGD,MAAME,gBAA4B,IAAI,IAEtC,MAAMC,gBAAuB,IAAI,IAMjC,MAAMC,gBAA+B,IAAI,QAEzC,MAAMC,EAAmC,gBAAO,IAAI,WAAa,CAE/D,OAAO,MAAO,MADSvB,CAEzB,CAAC,EAED,MAAM,eAAkB,GACtBc,EAAO,IAAI,WAAa,CACtB,MAAMU,EAASJ,EAAY,IAAIK,CAAY,EAC3C,GAAID,EAAQ,OAAOA,EAEnB,MAAME,EAAW,OAAO,MADFV,EAAW,WAAA,CACF,IAAIS,CAAY,EAC/C,cAAcA,EAAcC,CAAQ,EACpC,GAAIA,EAAS,QAAU,IAAK,CAC1B,MAAMC,EAAO,MAAOD,EAAS,KAC7B,OAAO,MAAOZ,EAAO,KACnB,IAAIc,EAA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AAM,6BAA6B,CAAC;;AAErC,gEAAgE;AAChE,qBAAa,KAAM,SAAQ,aAAa,CAAC,UAA6C;CAAG;AAEzF,kEAAkE;AAClE,eAAO,MAAM,MAAM,qBAAsB,MAAM,sFACS,CAAC;AAEzD,sCAAsC;AACtC,eAAO,MAAM,IAAI,mFAEhB,CAAC;AAEF,kFAAkF;AAClF,eAAO,MAAM,UAAU,mFAA0C,CAAC;AAElE,oFAAoF;AACpF,eAAO,MAAM,SAAS,mFAAyC,CAAC"}
|
package/lib/services/acme.d.ts
CHANGED
|
@@ -7,6 +7,8 @@ declare const AcmeAccountDoesNotExist_base: S.TaggedErrorClass<"AcmeAccountDoesN
|
|
|
7
7
|
readonly message: any;
|
|
8
8
|
readonly type: any;
|
|
9
9
|
readonly detail: any;
|
|
10
|
+
readonly body: any;
|
|
11
|
+
readonly headers: any;
|
|
10
12
|
}>;
|
|
11
13
|
/** The request specified an account that does not exist. */
|
|
12
14
|
export declare class AcmeAccountDoesNotExist extends /*@__PURE__*/ AcmeAccountDoesNotExist_base {
|
|
@@ -16,6 +18,8 @@ declare const AcmeAlreadyRevoked_base: S.TaggedErrorClass<"AcmeAlreadyRevoked",
|
|
|
16
18
|
readonly message: any;
|
|
17
19
|
readonly type: any;
|
|
18
20
|
readonly detail: any;
|
|
21
|
+
readonly body: any;
|
|
22
|
+
readonly headers: any;
|
|
19
23
|
}>;
|
|
20
24
|
/** The request specified a certificate to be revoked that has already been revoked. */
|
|
21
25
|
export declare class AcmeAlreadyRevoked extends /*@__PURE__*/ AcmeAlreadyRevoked_base {
|
|
@@ -25,6 +29,8 @@ declare const AcmeBadCsr_base: S.TaggedErrorClass<"AcmeBadCsr", {
|
|
|
25
29
|
readonly message: any;
|
|
26
30
|
readonly type: any;
|
|
27
31
|
readonly detail: any;
|
|
32
|
+
readonly body: any;
|
|
33
|
+
readonly headers: any;
|
|
28
34
|
}>;
|
|
29
35
|
/** The CSR is unacceptable (e.g., due to a short key). */
|
|
30
36
|
export declare class AcmeBadCsr extends /*@__PURE__*/ AcmeBadCsr_base {
|
|
@@ -34,6 +40,8 @@ declare const AcmeBadNonce_base: S.TaggedErrorClass<"AcmeBadNonce", {
|
|
|
34
40
|
readonly message: any;
|
|
35
41
|
readonly type: any;
|
|
36
42
|
readonly detail: any;
|
|
43
|
+
readonly body: any;
|
|
44
|
+
readonly headers: any;
|
|
37
45
|
}>;
|
|
38
46
|
/** The client sent an unacceptable anti-replay nonce. */
|
|
39
47
|
export declare class AcmeBadNonce extends /*@__PURE__*/ AcmeBadNonce_base {
|
|
@@ -43,6 +51,8 @@ declare const AcmeBadPublicKey_base: S.TaggedErrorClass<"AcmeBadPublicKey", {
|
|
|
43
51
|
readonly message: any;
|
|
44
52
|
readonly type: any;
|
|
45
53
|
readonly detail: any;
|
|
54
|
+
readonly body: any;
|
|
55
|
+
readonly headers: any;
|
|
46
56
|
}>;
|
|
47
57
|
/** The JWS was signed by a public key the server does not support. */
|
|
48
58
|
export declare class AcmeBadPublicKey extends /*@__PURE__*/ AcmeBadPublicKey_base {
|
|
@@ -52,6 +62,8 @@ declare const AcmeBadRevocationReason_base: S.TaggedErrorClass<"AcmeBadRevocatio
|
|
|
52
62
|
readonly message: any;
|
|
53
63
|
readonly type: any;
|
|
54
64
|
readonly detail: any;
|
|
65
|
+
readonly body: any;
|
|
66
|
+
readonly headers: any;
|
|
55
67
|
}>;
|
|
56
68
|
/** The revocation reason provided is not allowed by the server. */
|
|
57
69
|
export declare class AcmeBadRevocationReason extends /*@__PURE__*/ AcmeBadRevocationReason_base {
|
|
@@ -61,6 +73,8 @@ declare const AcmeBadSignatureAlgorithm_base: S.TaggedErrorClass<"AcmeBadSignatu
|
|
|
61
73
|
readonly message: any;
|
|
62
74
|
readonly type: any;
|
|
63
75
|
readonly detail: any;
|
|
76
|
+
readonly body: any;
|
|
77
|
+
readonly headers: any;
|
|
64
78
|
}>;
|
|
65
79
|
/** The JWS was signed with an algorithm the server does not support. */
|
|
66
80
|
export declare class AcmeBadSignatureAlgorithm extends /*@__PURE__*/ AcmeBadSignatureAlgorithm_base {
|
|
@@ -70,6 +84,8 @@ declare const AcmeCaa_base: S.TaggedErrorClass<"AcmeCaa", {
|
|
|
70
84
|
readonly message: any;
|
|
71
85
|
readonly type: any;
|
|
72
86
|
readonly detail: any;
|
|
87
|
+
readonly body: any;
|
|
88
|
+
readonly headers: any;
|
|
73
89
|
}>;
|
|
74
90
|
/** Certification Authority Authorization (CAA) records forbid the CA from issuing a certificate. */
|
|
75
91
|
export declare class AcmeCaa extends /*@__PURE__*/ AcmeCaa_base {
|
|
@@ -79,6 +95,8 @@ declare const AcmeConnection_base: S.TaggedErrorClass<"AcmeConnection", {
|
|
|
79
95
|
readonly message: any;
|
|
80
96
|
readonly type: any;
|
|
81
97
|
readonly detail: any;
|
|
98
|
+
readonly body: any;
|
|
99
|
+
readonly headers: any;
|
|
82
100
|
}>;
|
|
83
101
|
/** The server could not connect to validation target. */
|
|
84
102
|
export declare class AcmeConnection extends /*@__PURE__*/ AcmeConnection_base {
|
|
@@ -88,6 +106,8 @@ declare const AcmeDns_base: S.TaggedErrorClass<"AcmeDns", {
|
|
|
88
106
|
readonly message: any;
|
|
89
107
|
readonly type: any;
|
|
90
108
|
readonly detail: any;
|
|
109
|
+
readonly body: any;
|
|
110
|
+
readonly headers: any;
|
|
91
111
|
}>;
|
|
92
112
|
/** There was a problem with a DNS query during identifier validation. */
|
|
93
113
|
export declare class AcmeDns extends /*@__PURE__*/ AcmeDns_base {
|
|
@@ -97,6 +117,8 @@ declare const AcmeExternalAccountRequired_base: S.TaggedErrorClass<"AcmeExternal
|
|
|
97
117
|
readonly message: any;
|
|
98
118
|
readonly type: any;
|
|
99
119
|
readonly detail: any;
|
|
120
|
+
readonly body: any;
|
|
121
|
+
readonly headers: any;
|
|
100
122
|
}>;
|
|
101
123
|
/** The request must include a value for the "externalAccountBinding" field. */
|
|
102
124
|
export declare class AcmeExternalAccountRequired extends /*@__PURE__*/ AcmeExternalAccountRequired_base {
|
|
@@ -106,6 +128,8 @@ declare const AcmeIncorrectResponse_base: S.TaggedErrorClass<"AcmeIncorrectRespo
|
|
|
106
128
|
readonly message: any;
|
|
107
129
|
readonly type: any;
|
|
108
130
|
readonly detail: any;
|
|
131
|
+
readonly body: any;
|
|
132
|
+
readonly headers: any;
|
|
109
133
|
}>;
|
|
110
134
|
/** Response received didn't match the challenge's requirements. */
|
|
111
135
|
export declare class AcmeIncorrectResponse extends /*@__PURE__*/ AcmeIncorrectResponse_base {
|
|
@@ -115,6 +139,8 @@ declare const AcmeInvalidContact_base: S.TaggedErrorClass<"AcmeInvalidContact",
|
|
|
115
139
|
readonly message: any;
|
|
116
140
|
readonly type: any;
|
|
117
141
|
readonly detail: any;
|
|
142
|
+
readonly body: any;
|
|
143
|
+
readonly headers: any;
|
|
118
144
|
}>;
|
|
119
145
|
/** A contact URL for an account was invalid. */
|
|
120
146
|
export declare class AcmeInvalidContact extends /*@__PURE__*/ AcmeInvalidContact_base {
|
|
@@ -124,6 +150,8 @@ declare const AcmeMalformed_base: S.TaggedErrorClass<"AcmeMalformed", {
|
|
|
124
150
|
readonly message: any;
|
|
125
151
|
readonly type: any;
|
|
126
152
|
readonly detail: any;
|
|
153
|
+
readonly body: any;
|
|
154
|
+
readonly headers: any;
|
|
127
155
|
}>;
|
|
128
156
|
/** The request message was malformed. */
|
|
129
157
|
export declare class AcmeMalformed extends /*@__PURE__*/ AcmeMalformed_base {
|
|
@@ -133,6 +161,8 @@ declare const AcmeOrderNotReady_base: S.TaggedErrorClass<"AcmeOrderNotReady", {
|
|
|
133
161
|
readonly message: any;
|
|
134
162
|
readonly type: any;
|
|
135
163
|
readonly detail: any;
|
|
164
|
+
readonly body: any;
|
|
165
|
+
readonly headers: any;
|
|
136
166
|
}>;
|
|
137
167
|
/** The request attempted to finalize an order that is not ready to be finalized. */
|
|
138
168
|
export declare class AcmeOrderNotReady extends /*@__PURE__*/ AcmeOrderNotReady_base {
|
|
@@ -143,6 +173,8 @@ declare const AcmeRateLimited_base: S.TaggedErrorClass<"AcmeRateLimited", {
|
|
|
143
173
|
readonly message: any;
|
|
144
174
|
readonly type: any;
|
|
145
175
|
readonly detail: any;
|
|
176
|
+
readonly body: any;
|
|
177
|
+
readonly headers: any;
|
|
146
178
|
}> & (new (...args: any[]) => {
|
|
147
179
|
"@distilled.cloud/error/categories": {
|
|
148
180
|
ThrottlingError: true;
|
|
@@ -160,6 +192,8 @@ declare const AcmeRejectedIdentifier_base: S.TaggedErrorClass<"AcmeRejectedIdent
|
|
|
160
192
|
readonly message: any;
|
|
161
193
|
readonly type: any;
|
|
162
194
|
readonly detail: any;
|
|
195
|
+
readonly body: any;
|
|
196
|
+
readonly headers: any;
|
|
163
197
|
}>;
|
|
164
198
|
/** The server will not issue certificates for the identifier. */
|
|
165
199
|
export declare class AcmeRejectedIdentifier extends /*@__PURE__*/ AcmeRejectedIdentifier_base {
|
|
@@ -169,6 +203,9 @@ declare const AcmeServerInternal_base: S.TaggedErrorClass<"AcmeServerInternal",
|
|
|
169
203
|
readonly message: any;
|
|
170
204
|
readonly type: any;
|
|
171
205
|
readonly detail: any;
|
|
206
|
+
readonly body: any;
|
|
207
|
+
readonly headers: any;
|
|
208
|
+
readonly retryAfter: any;
|
|
172
209
|
}> & (new (...args: any[]) => {
|
|
173
210
|
"@distilled.cloud/error/categories": {
|
|
174
211
|
RetryableError: true;
|
|
@@ -182,6 +219,8 @@ declare const AcmeTls_base: S.TaggedErrorClass<"AcmeTls", {
|
|
|
182
219
|
readonly message: any;
|
|
183
220
|
readonly type: any;
|
|
184
221
|
readonly detail: any;
|
|
222
|
+
readonly body: any;
|
|
223
|
+
readonly headers: any;
|
|
185
224
|
}>;
|
|
186
225
|
/** The server received a TLS error during validation. */
|
|
187
226
|
export declare class AcmeTls extends /*@__PURE__*/ AcmeTls_base {
|
|
@@ -191,6 +230,8 @@ declare const AcmeUnauthorized_base: S.TaggedErrorClass<"AcmeUnauthorized", {
|
|
|
191
230
|
readonly message: any;
|
|
192
231
|
readonly type: any;
|
|
193
232
|
readonly detail: any;
|
|
233
|
+
readonly body: any;
|
|
234
|
+
readonly headers: any;
|
|
194
235
|
}>;
|
|
195
236
|
/** The client lacks sufficient authorization. */
|
|
196
237
|
export declare class AcmeUnauthorized extends /*@__PURE__*/ AcmeUnauthorized_base {
|
|
@@ -200,6 +241,8 @@ declare const AcmeUnsupportedContact_base: S.TaggedErrorClass<"AcmeUnsupportedCo
|
|
|
200
241
|
readonly message: any;
|
|
201
242
|
readonly type: any;
|
|
202
243
|
readonly detail: any;
|
|
244
|
+
readonly body: any;
|
|
245
|
+
readonly headers: any;
|
|
203
246
|
}>;
|
|
204
247
|
/** A contact URL for an account used an unsupported protocol scheme. */
|
|
205
248
|
export declare class AcmeUnsupportedContact extends /*@__PURE__*/ AcmeUnsupportedContact_base {
|
|
@@ -209,6 +252,8 @@ declare const AcmeUnsupportedIdentifier_base: S.TaggedErrorClass<"AcmeUnsupporte
|
|
|
209
252
|
readonly message: any;
|
|
210
253
|
readonly type: any;
|
|
211
254
|
readonly detail: any;
|
|
255
|
+
readonly body: any;
|
|
256
|
+
readonly headers: any;
|
|
212
257
|
}>;
|
|
213
258
|
/** An identifier is of an unsupported type. */
|
|
214
259
|
export declare class AcmeUnsupportedIdentifier extends /*@__PURE__*/ AcmeUnsupportedIdentifier_base {
|
|
@@ -218,6 +263,8 @@ declare const AcmeUserActionRequired_base: S.TaggedErrorClass<"AcmeUserActionReq
|
|
|
218
263
|
readonly message: any;
|
|
219
264
|
readonly type: any;
|
|
220
265
|
readonly detail: any;
|
|
266
|
+
readonly body: any;
|
|
267
|
+
readonly headers: any;
|
|
221
268
|
}>;
|
|
222
269
|
/** Visit the "instance" URL and take actions specified there. */
|
|
223
270
|
export declare class AcmeUserActionRequired extends /*@__PURE__*/ AcmeUserActionRequired_base {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acme.d.ts","
|
|
1
|
+
{"version":3,"file":"acme.d.ts","sources":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