@distilled.cloud/temporal 1.0.0-rc.18 → 1.0.0-rc.20

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 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 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$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$named as A,api$op as j,category$withParseError as M,category$withServerError as N,retry$capped as P,retry$jittered as F,retry$makeDefault as I,retry$throttlingFactory as L,retry$throttlingOptions as R,retry$transientFactory as z,retry$transientOptions as B,schema_lite_typed$String as V,schema_lite_typed$TaggedError as H,schema_lite_typed$Unknown as U,schema_lite_typed$optional as W,trait$Body as G,trait$FormDataFile as ae,trait$Header as K,trait$Http as q,trait$HttpBody as J,trait$KeyDictionary as oe,trait$Label as se,trait$Query as ce,trait$ResponseCode as le,trait$UnionCases as ue,trait$applyErrorMatchers as de,trait$bodySymbol as fe,trait$errorMatchersSymbol as pe,trait$formDataFileSymbol as me,trait$getErrorMatchers as he,trait$headerSymbol as ge,trait$httpBodySymbol as _e,trait$httpSymbol as ve,trait$keyDictionarySymbol as ye,trait$labelSymbol as be,trait$querySymbol as xe,trait$responseCodeSymbol as Se,trait$unionCasesSymbol as Ce}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";const $=`http://localhost:7243`;var Credentials=class extends (/*@__PURE__*/ Y.Service()(`TemporalCredentials`)){};const fromApiKey=e=>Z.succeed(Credentials,X.succeed({apiKey:e.apiKey,apiBaseUrl:e.apiBaseUrl??`http://localhost:7243`}));const we=/*@__PURE__*/ Z.succeed(Credentials,/*@__PURE__*/ X.gen(function*(){const e=process.env.TEMPORAL_API_KEY;if(!e)return yield*new r({message:`TEMPORAL_API_KEY environment variable is required`});return{apiKey:Q.make(e),apiBaseUrl:process.env.TEMPORAL_API_BASE_URL??`http://localhost:7243`}}));var UnknownTemporalError=class extends (/*@__PURE__*/ H()(`UnknownTemporalError`,{code:/*@__PURE__*/ W(V),message:/*@__PURE__*/ W(V),body:U}).pipe(N)){};var TemporalParseError=class extends (/*@__PURE__*/ H()(`TemporalParseError`,{body:U,cause:U}).pipe(M)){};const Te=/*@__PURE__*/ m({credentials:/*@__PURE__*/ X.flatMap(Credentials,e=>e),baseUrl:e=>e.apiBaseUrl,headers:e=>({Authorization:`Bearer ${Q.value(e.apiKey)}`}),unknownError:({code:e,message:t,body:n})=>new UnknownTemporalError({code:typeof e===`string`?e:e!==void 0?String(e):void 0,message:t,body:n}),parseError:({body:e,cause:t})=>new TemporalParseError({body:e,cause:t})});var Retry=class extends (/*@__PURE__*/ Y.Service()(`TemporalRetry`)){};const policy=e=>X.provide(Z.succeed(Retry,e));const Ee=/*@__PURE__*/ X.provide(/*@__PURE__*/ Z.succeed(Retry,{while:()=>false}));const De=/*@__PURE__*/ policy(L);const Oe=/*@__PURE__*/ policy(z);export{v as Jb,y as Kb,b as Sb,x as Tb,S as Vb,C as Wb,O as a,w as ac,k as c,T as cc,Credentials as credentials$Credentials,we as credentials$CredentialsFromEnv,$ as credentials$DEFAULT_API_BASE_URL,fromApiKey as credentials$fromApiKey,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,ne as errors$ServiceUnavailable,TemporalParseError as errors$TemporalParseError,re as errors$TooManyRequests,ie as errors$Unauthorized,UnknownTemporalError as errors$UnknownTemporalError,u as errors$UnprocessableEntity,E as hc,D as ic,A as j,j as l,Te as protocol$TemporalProtocol,Retry as retry$Retry,P as retry$capped,F as retry$jittered,I as retry$makeDefault,Ee as retry$none,policy as retry$policy,De as retry$throttling,L as retry$throttlingFactory,R as retry$throttlingOptions,Oe as retry$transient,z as retry$transientFactory,B as retry$transientOptions,G as traits$Body,ae as traits$FormDataFile,K as traits$Header,q as traits$Http,J as traits$HttpBody,oe as traits$KeyDictionary,se as traits$Label,ce as traits$Query,d as traits$RawResponse,f as traits$RawResponseRoot,le as traits$ResponseCode,p as traits$SensitiveValue,ue as traits$UnionCases,de as traits$applyErrorMatchers,fe as traits$bodySymbol,pe as traits$errorMatchersSymbol,me as traits$formDataFileSymbol,he as traits$getErrorMatchers,ge as traits$headerSymbol,_e as traits$httpBodySymbol,ve as traits$httpSymbol,ye as traits$keyDictionarySymbol,be as traits$labelSymbol,xe as traits$querySymbol,h as traits$rawResponseRootSymbol,g as traits$rawResponseSymbol,Se as traits$responseCodeSymbol,_ as traits$sensitiveValueSymbol,Ce as traits$unionCasesSymbol};
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 ee,errors$GatewayTimeout as o,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$UnknownErrorFields as u,errors$UnprocessableEntity as d,protocol_rest$RawResponse as f,protocol_rest$RawResponseRoot as p,protocol_rest$SensitiveValue as m,protocol_rest$makeRestProtocol as h,protocol_rest$rawResponseRootSymbol as g,protocol_rest$rawResponseSymbol as _,protocol_rest$sensitiveValueSymbol as v,protocol_rest$unknownErrorProps as y,schema_lite$Array as b,schema_lite$Boolean as x,schema_lite$Number as S,schema_lite$Record as C,schema_lite$String as w,schema_lite$Struct as T,schema_lite$StructWithRest as E,schema_lite$Unknown as D,schema_lite$at as O,schema_lite$optional as k,schema_lite$suspend as A}from"@distilled.cloud/core/_bundle/rest";import{api$D as j,api$call as M,api$named as N,api$op as P,category$withParseError as F,retry$capped as I,retry$jittered as L,retry$makeDefault as R,retry$throttlingFactory as z,retry$throttlingOptions as B,retry$transientFactory as V,retry$transientOptions as H,schema_lite_typed$TaggedError as U,schema_lite_typed$Unknown as W,trait$Body as G,trait$FormDataFile as K,trait$Header as q,trait$Http as J,trait$HttpBody as Y,trait$KeyDictionary as ae,trait$Label as oe,trait$Query as se,trait$ResponseCode as ce,trait$UnionCases as le,trait$applyErrorMatchers as ue,trait$bodySymbol as de,trait$errorMatchersSymbol as fe,trait$formDataFileSymbol as pe,trait$getErrorMatchers as me,trait$headerSymbol as he,trait$httpBodySymbol as ge,trait$httpSymbol as _e,trait$keyDictionarySymbol as ve,trait$labelSymbol as ye,trait$querySymbol as be,trait$responseCodeSymbol as xe,trait$unionCasesSymbol as Se}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 Ce=`http://localhost:7243`;var Credentials=class extends (/*@__PURE__*/ X.Service()(`TemporalCredentials`)){};const fromApiKey=e=>Q.succeed(Credentials,Z.succeed({apiKey:e.apiKey,apiBaseUrl:e.apiBaseUrl??`http://localhost:7243`}));const we=/*@__PURE__*/ Q.succeed(Credentials,/*@__PURE__*/ Z.gen(function*(){const e=process.env.TEMPORAL_API_KEY;if(!e)return yield*new r({message:`TEMPORAL_API_KEY environment variable is required`});return{apiKey:$.make(e),apiBaseUrl:process.env.TEMPORAL_API_BASE_URL??`http://localhost:7243`}}));var UnknownTemporalError=class extends (/*@__PURE__*/ U()(`UnknownTemporalError`,u)){};var TemporalParseError=class extends (/*@__PURE__*/ U()(`TemporalParseError`,{body:W,cause:W}).pipe(F)){};const Te=/*@__PURE__*/ h({credentials:/*@__PURE__*/ Z.flatMap(Credentials,e=>e),baseUrl:e=>e.apiBaseUrl,headers:e=>({Authorization:`Bearer ${$.value(e.apiKey)}`}),unknownError:e=>new UnknownTemporalError(y(e)),parseError:({body:e,cause:t})=>new TemporalParseError({body:e,cause:t})});var Retry=class extends (/*@__PURE__*/ X.Service()(`TemporalRetry`)){};const policy=e=>Z.provide(Q.succeed(Retry,e));const Ee=/*@__PURE__*/ Z.provide(/*@__PURE__*/ Q.succeed(Retry,{while:()=>false}));const De=/*@__PURE__*/ policy(z);const Oe=/*@__PURE__*/ policy(V);export{b as Ob,x as Pb,S as Xb,C as Yb,w as _b,j as a,T as ac,E as bc,M as c,Credentials as credentials$Credentials,we as credentials$CredentialsFromEnv,Ce as credentials$DEFAULT_API_BASE_URL,fromApiKey as credentials$fromApiKey,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,ee as errors$Forbidden,o as errors$GatewayTimeout,te as errors$HTTP_STATUS_MAP,ne as errors$InternalServerError,re as errors$Locked,ie as errors$NotFound,s as errors$ServiceUnavailable,TemporalParseError as errors$TemporalParseError,c as errors$TooManyRequests,l as errors$Unauthorized,UnknownTemporalError as errors$UnknownTemporalError,d as errors$UnprocessableEntity,D as fc,O as hc,N as k,P as m,k as mc,A as nc,Te as protocol$TemporalProtocol,Retry as retry$Retry,I as retry$capped,L as retry$jittered,R as retry$makeDefault,Ee as retry$none,policy as retry$policy,De as retry$throttling,z as retry$throttlingFactory,B as retry$throttlingOptions,Oe as retry$transient,V as retry$transientFactory,H as retry$transientOptions,G as traits$Body,K as traits$FormDataFile,q as traits$Header,J as traits$Http,Y as traits$HttpBody,ae as traits$KeyDictionary,oe as traits$Label,se as traits$Query,f as traits$RawResponse,p as traits$RawResponseRoot,ce as traits$ResponseCode,m as traits$SensitiveValue,le as traits$UnionCases,ue as traits$applyErrorMatchers,de as traits$bodySymbol,fe as traits$errorMatchersSymbol,pe as traits$formDataFileSymbol,me as traits$getErrorMatchers,he as traits$headerSymbol,ge as traits$httpBodySymbol,_e as traits$httpSymbol,ve as traits$keyDictionarySymbol,ye as traits$labelSymbol,be as traits$querySymbol,g as traits$rawResponseRootSymbol,_ as traits$rawResponseSymbol,xe as traits$responseCodeSymbol,v as traits$sensitiveValueSymbol,Se as traits$unionCasesSymbol};
2
2
  //# sourceMappingURL=sdk.js.map
@@ -1 +1 @@
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","Unknown","at","optional","suspend","D","call","named","op","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","TemporalProtocol","resolve","creds","code","optionsOrFactory","none","throttling","transient"],"sources":["../../src/credentials.ts","../../src/errors.ts","../../src/protocol.ts","../../src/retry.ts"],"mappings":"+jEAoBA,MAAaiF,EAAuB,wBAOpC,IAAa,YAAb,eACwB,gBAAQ,QAAyD,CAAC,CACtF,qBACF,EAAA,AAAE,CAAC,EAGL,MAAa,WAAc,GAIzBF,EAAM,QACJ,YACAD,EAAO,QAAQ,CACb,OAAQI,EAAO,OACf,WAAYA,EAAO,YAAA,uBACrB,CAAC,CACH,EAGF,MAAaC,GAA6D,gBAAM,QAC9E,YACc,gBAAO,IAAI,WAAa,CACpC,MAAMC,EAAS,QAAQ,IAAI,iBAE3B,GAAI,CAACA,EACH,OAAO,MAAO,IAAI7E,EAAY,CAC5B,QAAS,mDACX,CAAC,EAGH,MAAO,CACL,OAAQyE,EAAS,KAAKI,CAAM,EAC5B,WAAY,QAAQ,IAAI,uBAAA,uBAC1B,CACF,CAAC,CACH,EC7BA,IAAa,qBAAb,eACwB,gBAAyC,CAAC,CAAC,uBAAwB,CACvF,KAAoB,gBAAgBpF,CAAa,EACjD,QAAuB,gBAAgBA,CAAa,EACpD,KAAMC,CACR,CAAC,CAAC,CAAC,KAAKC,CAAwB,EAAA,AAAE,CAAC,EAGrC,IAAa,mBAAb,eACwB,gBAAuC,CAAC,CAAC,qBAAsB,CACnF,KAAMD,EACN,MAAOA,CACT,CAAC,CAAC,CAAC,KAAKE,CAAuB,EAAA,AAAE,CAAC,ECApC,MAAakF,GAA4D,gBAAyB,CAGhG,YAA2B,gBAAO,QAAQ,YAAc,GAAYC,CAAO,EAC3E,QAAU,GAAUC,EAAM,WAC1B,QAAU,IAAW,CACnB,cAAe,UAAUP,EAAS,MAAMO,EAAM,MAAM,GACtD,GAGA,cAAe,CAAE,OAAM,UAAS,UAC9B,IAAI,qBAAqB,CACvB,KAAM,OAAOC,IAAS,SAAWA,EAAOA,IAAS,IAAA,GAAY,OAAOA,CAAI,EAAI,IAAA,GAC5E,UACA,MACF,CAAC,EACH,YAAa,CAAE,OAAM,WAAY,IAAI,mBAAmB,CAAE,OAAM,OAAM,CAAC,CACzE,CAAC,EC5BD,IAAa,MAAb,eAAyC,gBAAQ,QAAuB,CAAC,CAAC,eAAe,EAAA,AAAE,CAAC,EAG5F,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
+ {"version":3,"file":"sdk.js","names":["Schema.Unknown","Category.withParseError","API_ERRORS","BadGateway","BadRequest","ConfigError","Conflict","DEFAULT_ERRORS","Forbidden","GatewayTimeout","HTTP_STATUS_MAP","InternalServerError","Locked","NotFound","ServiceUnavailable","TooManyRequests","Unauthorized","UnknownErrorFields","UnprocessableEntity","RawResponse","RawResponseRoot","SensitiveValue","makeRestProtocol","rawResponseRootSymbol","rawResponseSymbol","sensitiveValueSymbol","unknownErrorProps","Array","Boolean","Number","Record","String","Struct","StructWithRest","Unknown","at","optional","suspend","D","call","named","op","withParseError","capped","jittered","makeDefault","throttlingFactory","throttlingOptions","transientFactory","transientOptions","TaggedError$1","Unknown$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","TemporalProtocol","resolve","creds","info","optionsOrFactory","none","throttling","transient"],"sources":["../../src/credentials.ts","../../src/errors.ts","../../src/protocol.ts","../../src/retry.ts"],"mappings":"skEAoBA,MAAa+E,GAAuB,wBAOpC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AAaC,GAA2B,qBAAO3C,CAAiB,EAGhE,MAAa4C,GAA0B,qBAAO1C,CAAgB"}
package/lib/errors.d.ts CHANGED
@@ -11,14 +11,11 @@ export { BadGateway, BadRequest, Conflict, ConfigError, Forbidden, GatewayTimeou
11
11
  export type { DefaultErrors } from "@distilled.cloud/core/errors";
12
12
  import * as Schema from "@distilled.cloud/core/schema-lite-typed";
13
13
  declare const UnknownTemporalError_base: Schema.TaggedErrorClass<"UnknownTemporalError", {
14
- readonly code: import("effect/Schema").optional<import("effect/Schema").String>;
15
- readonly message: import("effect/Schema").optional<import("effect/Schema").String>;
16
- readonly body: import("effect/Schema").Unknown;
17
- }> & (new (...args: any[]) => {
18
- "@distilled.cloud/error/categories": {
19
- ServerError: true;
20
- };
21
- });
14
+ status: import("effect/Schema").Number;
15
+ code: import("effect/Schema").optional<import("effect/Schema").String>;
16
+ message: import("effect/Schema").optional<import("effect/Schema").String>;
17
+ body: import("effect/Schema").Unknown;
18
+ }>;
22
19
  /** Unknown Temporal error -- returned when nothing else matches the failure. */
23
20
  export declare class UnknownTemporalError extends /*@__PURE__*/ UnknownTemporalError_base {
24
21
  }
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;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;AACtC,YAAY,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAGlE,OAAO,KAAK,MAAM,MAAM,yCAAyC,CAAC;;;;;;;;;;AAElE,gFAAgF;AAChF,qBAAa,oBACX,SAAQ,aAAa,CAAC,yBAIW;CAAG;;;;;;;;;AAEtC,+DAA+D;AAC/D,qBAAa,kBACX,SAAQ,aAAa,CAAC,uBAGU;CAAG"}
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;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;AACtC,YAAY,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAIlE,OAAO,KAAK,MAAM,MAAM,yCAAyC,CAAC;;;;;;;AAElE,gFAAgF;AAChF,qBAAa,oBACX,SAAQ,aAAa,CAAC,yBAGrB;CAAG;;;;;;;;;AAEN,+DAA+D;AAC/D,qBAAa,kBACX,SAAQ,aAAa,CAAC,uBAGU;CAAG"}
package/lib/protocol.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import type * as API from "@distilled.cloud/core/api";
2
2
  import type { API_ERRORS, ConfigError, InvalidInput } from "@distilled.cloud/core/errors";
3
+ import type { SdkError } from "@distilled.cloud/core/sdk-error";
3
4
  import type * as HttpClient from "effect/http/HttpClient";
4
5
  import type * as HttpClientError from "effect/http/HttpClientError";
5
6
  import type * as Layer from "effect/Layer";
@@ -11,7 +12,7 @@ import { UnknownTemporalError, TemporalParseError } from "./errors.ts";
11
12
  * TemporalOpError, TemporalOpContext>` explicitly so the compiler never
12
13
  * infers these back out of the schema generics.
13
14
  */
14
- export type TemporalOpError = InstanceType<(typeof API_ERRORS)[number]> | UnknownTemporalError | ConfigError | HttpClientError.HttpClientError | TemporalParseError | InvalidInput;
15
+ export type TemporalOpError = InstanceType<(typeof API_ERRORS)[number]> | UnknownTemporalError | ConfigError | HttpClientError.HttpClientError | TemporalParseError | InvalidInput | SdkError;
15
16
  /** Context (requirements) shared by every generated Temporal operation. */
16
17
  export type TemporalOpContext = Credentials | HttpClient.HttpClient;
17
18
  export declare const TemporalProtocol: 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,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAoB1F,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,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEvE;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GACvB,YAAY,CAAC,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC,GACzC,oBAAoB,GACpB,WAAW,GACX,eAAe,CAAC,eAAe,GAC/B,kBAAkB,GAClB,YAAY,CAAC;AAEjB,2EAA2E;AAC3E,MAAM,MAAM,iBAAiB,GAAG,WAAW,GAAG,UAAU,CAAC,UAAU,CAAC;AAEpE,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,CAiBrD,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;AAE1F,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAmBhE,OAAO,K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