@distilled.cloud/typesense 1.0.0-rc.18 → 1.0.0-rc.19

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{api$D as e,api$call as t,api$error as n,api$named as ee,api$newError as r,api$op as i,category$withBadRequestError as a,category$withConflictError as o,category$withParseError as s,category$withServerError as c,config$String as l,config$all as te,retry$capped as ne,retry$jittered as re,retry$makeDefault as ie,retry$throttlingFactory as u,retry$throttlingOptions as d,retry$transientFactory as f,retry$transientOptions as p,schema_lite_typed$String as m,schema_lite_typed$TaggedError as h,schema_lite_typed$Unknown as g,schema_lite_typed$optional as _,trait$Body as v,trait$FormDataFile as y,trait$Header as b,trait$Http as x,trait$HttpBody as S,trait$KeyDictionary as C,trait$Label as w,trait$Query as T,trait$ResponseCode as E,trait$UnionCases as D,trait$applyErrorMatchers as O,trait$bodySymbol as k,trait$errorMatchersSymbol as A,trait$formDataFileSymbol as j,trait$getErrorMatchers as M,trait$headerSymbol as N,trait$httpBodySymbol as P,trait$httpSymbol as F,trait$keyDictionarySymbol as I,trait$labelSymbol as L,trait$querySymbol as R,trait$responseCodeSymbol as z,trait$unionCasesSymbol as B}from"@distilled.cloud/core/_bundle/base";import{errors$API_ERRORS as V,errors$BadGateway as H,errors$BadRequest as U,errors$ConfigError as W,errors$Conflict as G,errors$DEFAULT_ERRORS as K,errors$Forbidden as q,errors$GatewayTimeout as J,errors$HTTP_STATUS_MAP as Y,errors$InternalServerError as ae,errors$Locked as oe,errors$NotFound as se,errors$ServiceUnavailable as ce,errors$TooManyRequests as le,errors$Unauthorized as ue,errors$UnprocessableEntity as de,protocol_rest$RawResponse as fe,protocol_rest$RawResponseRoot as pe,protocol_rest$SensitiveValue as me,protocol_rest$makeRestProtocol as he,protocol_rest$rawResponseRootSymbol as ge,protocol_rest$rawResponseSymbol as _e,protocol_rest$sensitiveValueSymbol as ve,schema_lite$Array as ye,schema_lite$Boolean as be,schema_lite$Number as xe,schema_lite$Record as Se,schema_lite$String as Ce,schema_lite$Struct as we,schema_lite$TaggedError as Te,schema_lite$Unknown as Ee,schema_lite$at as De,schema_lite$optional as Oe,schema_lite$suspend as ke}from"@distilled.cloud/core/_bundle/rest";import*as X from"effect/Context";import*as Z from"effect/Effect";import*as Q from"effect/Layer";import*as $ from"effect/Redacted";const Ae=``;var Credentials=class extends (/*@__PURE__*/ X.Service()(`TypesenseCredentials`)){};const je=/*@__PURE__*/ te({apiKey:/*@__PURE__*/ l(`TYPESENSE_API_KEY`),apiBaseUrl:/*@__PURE__*/ l(`TYPESENSE_API_URL`)});const Me=/*@__PURE__*/ Q.succeed(Credentials,/*@__PURE__*/ je.pipe(/*@__PURE__*/ Z.mapError(()=>new W({message:`TYPESENSE_API_KEY and TYPESENSE_API_URL environment variables are required`})),/*@__PURE__*/ Z.map(({apiKey:e,apiBaseUrl:t})=>({apiKey:$.make(e),apiBaseUrl:t}))));const credentials=e=>Q.succeed(Credentials,Z.succeed({apiKey:e.apiKey,apiBaseUrl:e.apiBaseUrl}));const formatHeaders=e=>({"X-TYPESENSE-API-KEY":$.value(e.apiKey)});var UnknownTypesenseError=class extends (/*@__PURE__*/ h()(`UnknownTypesenseError`,{code:/*@__PURE__*/ _(m),message:/*@__PURE__*/ _(m),body:g}).pipe(c)){};var TypesenseParseError=class extends (/*@__PURE__*/ h()(`TypesenseParseError`,{body:g,cause:g}).pipe(s)){};const Ne=/*@__PURE__*/ he({credentials:/*@__PURE__*/ Z.flatMap(Credentials,e=>e),baseUrl:e=>e.apiBaseUrl,headers:formatHeaders,unknownError:({message:e,body:t})=>new UnknownTypesenseError({message:e,body:t}),parseError:({body:e,cause:t})=>new TypesenseParseError({body:e,cause:t})});var Retry=class extends (/*@__PURE__*/ X.Service()(`TypesenseRetry`)){};const policy=e=>Z.provide(Q.succeed(Retry,e));const Pe=/*@__PURE__*/ Z.provide(/*@__PURE__*/ Q.succeed(Retry,{while:()=>false}));const Fe=/*@__PURE__*/ policy(u);const Ie=/*@__PURE__*/ policy(f);export{ye as Rb,be as Sb,xe as _b,e as a,Se as ac,t as c,Ce as cc,Credentials as credentials$Credentials,Me as credentials$CredentialsFromEnv,Ae as credentials$DEFAULT_API_BASE_URL,credentials as credentials$credentials,formatHeaders as credentials$formatHeaders,we as dc,n as e,V as errors$API_ERRORS,H as errors$BadGateway,U as errors$BadRequest,W as errors$ConfigError,G as errors$Conflict,K as errors$DEFAULT_ERRORS,q as errors$Forbidden,J as errors$GatewayTimeout,Y as errors$HTTP_STATUS_MAP,ae as errors$InternalServerError,oe as errors$Locked,se as errors$NotFound,ce as errors$ServiceUnavailable,le as errors$TooManyRequests,TypesenseParseError as errors$TypesenseParseError,ue as errors$Unauthorized,UnknownTypesenseError as errors$UnknownTypesenseError,de as errors$UnprocessableEntity,Te as fc,Ee as ic,ee as j,r as k,De as kc,i as l,Oe as pc,Ne as protocol$TypesenseProtocol,ke as qc,Retry as retry$Retry,ne as retry$capped,re as retry$jittered,ie as retry$makeDefault,Pe as retry$none,policy as retry$policy,Fe as retry$throttling,u as retry$throttlingFactory,d as retry$throttlingOptions,Ie as retry$transient,f as retry$transientFactory,p as retry$transientOptions,v as traits$Body,y as traits$FormDataFile,b as traits$Header,x as traits$Http,S as traits$HttpBody,C as traits$KeyDictionary,w as traits$Label,T as traits$Query,fe as traits$RawResponse,pe as traits$RawResponseRoot,E as traits$ResponseCode,me as traits$SensitiveValue,D as traits$UnionCases,O as traits$applyErrorMatchers,k as traits$bodySymbol,A as traits$errorMatchersSymbol,j as traits$formDataFileSymbol,M as traits$getErrorMatchers,N as traits$headerSymbol,P as traits$httpBodySymbol,F as traits$httpSymbol,I as traits$keyDictionarySymbol,L as traits$labelSymbol,R as traits$querySymbol,ge as traits$rawResponseRootSymbol,_e as traits$rawResponseSymbol,z as traits$responseCodeSymbol,ve as traits$sensitiveValueSymbol,B as traits$unionCasesSymbol,a as wa,o as za};
1
+ import{api$D as e,api$call as t,api$error as n,api$named as ee,api$newError as r,api$op as i,category$withBadRequestError as a,category$withConflictError as o,category$withParseError as s,category$withServerError as c,config$String as l,config$all as te,retry$capped as ne,retry$jittered as re,retry$makeDefault as ie,retry$throttlingFactory as u,retry$throttlingOptions as d,retry$transientFactory as f,retry$transientOptions as p,schema_lite_typed$String as m,schema_lite_typed$TaggedError as h,schema_lite_typed$Unknown as g,schema_lite_typed$optional as _,trait$Body as v,trait$FormDataFile as y,trait$Header as b,trait$Http as x,trait$HttpBody as S,trait$KeyDictionary as C,trait$Label as w,trait$Query as T,trait$ResponseCode as E,trait$UnionCases as D,trait$applyErrorMatchers as O,trait$bodySymbol as k,trait$errorMatchersSymbol as A,trait$formDataFileSymbol as j,trait$getErrorMatchers as M,trait$headerSymbol as N,trait$httpBodySymbol as P,trait$httpSymbol as F,trait$keyDictionarySymbol as I,trait$labelSymbol as L,trait$querySymbol as R,trait$responseCodeSymbol as z,trait$unionCasesSymbol as B}from"@distilled.cloud/core/_bundle/base";import{errors$API_ERRORS as V,errors$BadGateway as H,errors$BadRequest as U,errors$ConfigError as W,errors$Conflict as G,errors$DEFAULT_ERRORS as K,errors$Forbidden as q,errors$GatewayTimeout as J,errors$HTTP_STATUS_MAP as Y,errors$InternalServerError as ae,errors$Locked as oe,errors$NotFound as se,errors$ServiceUnavailable as ce,errors$TooManyRequests as le,errors$Unauthorized as ue,errors$UnprocessableEntity as de,protocol_rest$RawResponse as fe,protocol_rest$RawResponseRoot as pe,protocol_rest$SensitiveValue as me,protocol_rest$makeRestProtocol as he,protocol_rest$rawResponseRootSymbol as ge,protocol_rest$rawResponseSymbol as _e,protocol_rest$sensitiveValueSymbol as ve,schema_lite$Array as ye,schema_lite$Boolean as be,schema_lite$Number as xe,schema_lite$Record as Se,schema_lite$String as Ce,schema_lite$Struct as we,schema_lite$TaggedError as Te,schema_lite$Unknown as Ee,schema_lite$at as De,schema_lite$optional as Oe,schema_lite$suspend as ke}from"@distilled.cloud/core/_bundle/rest";import*as X from"effect/Context";import*as Z from"effect/Effect";import*as Q from"effect/Layer";import*as $ from"effect/Redacted";const Ae=``;var Credentials=class extends (/*@__PURE__*/ X.Service()(`TypesenseCredentials`)){};const je=/*@__PURE__*/ te({apiKey:/*@__PURE__*/ l(`TYPESENSE_API_KEY`),apiBaseUrl:/*@__PURE__*/ l(`TYPESENSE_API_URL`)});const Me=/*@__PURE__*/ Q.succeed(Credentials,/*@__PURE__*/ je.pipe(/*@__PURE__*/ Z.mapError(()=>new W({message:`TYPESENSE_API_KEY and TYPESENSE_API_URL environment variables are required`})),/*@__PURE__*/ Z.map(({apiKey:e,apiBaseUrl:t})=>({apiKey:$.make(e),apiBaseUrl:t}))));const credentials=e=>Q.succeed(Credentials,Z.succeed({apiKey:e.apiKey,apiBaseUrl:e.apiBaseUrl}));const formatHeaders=e=>({"X-TYPESENSE-API-KEY":$.value(e.apiKey)});var UnknownTypesenseError=class extends (/*@__PURE__*/ h()(`UnknownTypesenseError`,{code:/*@__PURE__*/ _(m),message:/*@__PURE__*/ _(m),body:g}).pipe(c)){};var TypesenseParseError=class extends (/*@__PURE__*/ h()(`TypesenseParseError`,{body:g,cause:g}).pipe(s)){};const Ne=/*@__PURE__*/ he({credentials:/*@__PURE__*/ Z.flatMap(Credentials,e=>e),baseUrl:e=>e.apiBaseUrl,headers:formatHeaders,unknownError:({message:e,body:t})=>new UnknownTypesenseError({message:e,body:t}),parseError:({body:e,cause:t})=>new TypesenseParseError({body:e,cause:t})});var Retry=class extends (/*@__PURE__*/ X.Service()(`TypesenseRetry`)){};const policy=e=>Z.provide(Q.succeed(Retry,e));const Pe=/*@__PURE__*/ Z.provide(/*@__PURE__*/ Q.succeed(Retry,{while:()=>false}));const Fe=/*@__PURE__*/ policy(u);const Ie=/*@__PURE__*/ policy(f);export{o as Ba,ye as Ub,be as Vb,e as a,t as c,xe as cc,Credentials as credentials$Credentials,Me as credentials$CredentialsFromEnv,Ae as credentials$DEFAULT_API_BASE_URL,credentials as credentials$credentials,formatHeaders as credentials$formatHeaders,Se as dc,n as e,V as errors$API_ERRORS,H as errors$BadGateway,U as errors$BadRequest,W as errors$ConfigError,G as errors$Conflict,K as errors$DEFAULT_ERRORS,q as errors$Forbidden,J as errors$GatewayTimeout,Y as errors$HTTP_STATUS_MAP,ae as errors$InternalServerError,oe as errors$Locked,se as errors$NotFound,ce as errors$ServiceUnavailable,le as errors$TooManyRequests,TypesenseParseError as errors$TypesenseParseError,ue as errors$Unauthorized,UnknownTypesenseError as errors$UnknownTypesenseError,de as errors$UnprocessableEntity,Ce as fc,we as gc,Te as ic,ee as k,r as l,Ee as lc,i as m,De as nc,Ne as protocol$TypesenseProtocol,Retry as retry$Retry,ne as retry$capped,re as retry$jittered,ie as retry$makeDefault,Pe as retry$none,policy as retry$policy,Fe as retry$throttling,u as retry$throttlingFactory,d as retry$throttlingOptions,Ie as retry$transient,f as retry$transientFactory,p as retry$transientOptions,Oe as sc,ke as tc,v as traits$Body,y as traits$FormDataFile,b as traits$Header,x as traits$Http,S as traits$HttpBody,C as traits$KeyDictionary,w as traits$Label,T as traits$Query,fe as traits$RawResponse,pe as traits$RawResponseRoot,E as traits$ResponseCode,me as traits$SensitiveValue,D as traits$UnionCases,O as traits$applyErrorMatchers,k as traits$bodySymbol,A as traits$errorMatchersSymbol,j as traits$formDataFileSymbol,M as traits$getErrorMatchers,N as traits$headerSymbol,P as traits$httpBodySymbol,F as traits$httpSymbol,I as traits$keyDictionarySymbol,L as traits$labelSymbol,R as traits$querySymbol,ge as traits$rawResponseRootSymbol,_e as traits$rawResponseSymbol,z as traits$responseCodeSymbol,ve as traits$sensitiveValueSymbol,B as traits$unionCasesSymbol,a as ya};
2
2
  //# sourceMappingURL=sdk.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sdk.js","names":["Schema.String","Schema.Unknown","Category.withServerError","Category.withParseError","D","call","error","named","newError","op","withBadRequestError","withConflictError","withParseError","withServerError","String$2","all$1","capped","jittered","makeDefault","throttlingFactory","throttlingOptions","transientFactory","transientOptions","String$1","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","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","Struct","TaggedError","Unknown","at","optional","suspend","Context","Effect","Layer","Redacted","DEFAULT_API_BASE_URL","envConfig","CredentialsFromEnv","apiKey","config","TypesenseProtocol","resolve","creds","optionsOrFactory","none","throttling","transient"],"sources":["../../src/credentials.ts","../../src/errors.ts","../../src/protocol.ts","../../src/retry.ts"],"mappings":"wuEAoBA,MAAawF,GAAuB,GAOpC,IAAa,YAAb,eACwB,gBAAQ,QAAyD,CAAC,CACtF,sBACF,EAAA,AAAE,CAAC,EAEL,MAAMC,GAA0B,iBAAiB,CAC/C,OAAsB,gBAAoB,mBAAmB,EAC7D,WAA0B,gBAAoB,mBAAmB,CACnE,CAAC,EAED,MAAaC,GAAmC,gBAAM,QACpD,YACc,iBAAU,KACR,gBAAO,aAEjB,IAAIrC,EAAY,CACd,QAAS,4EACX,CAAC,CACL,EACc,gBAAO,KAAK,CAAE,SAAQ,iBAAkB,CACpD,OAAQkC,EAAS,KAAKI,CAAM,EAC5B,YACF,EAAE,CACJ,CACF,EAGA,MAAa,YAAe,GAI1BL,EAAM,QACJ,YACAD,EAAO,QAAQ,CACb,OAAQO,EAAO,OACf,WAAYA,EAAO,UACrB,CAAC,CACH,EAGF,MAAa,cAAiB,IAA4C,CACxE,sBAAuBL,EAAS,MAAMK,EAAO,MAAM,CACrD,GCvCA,IAAa,sBAAb,eACwB,gBAA0C,CAAC,CAAC,wBAAyB,CACzF,KAAoB,gBAAgB5F,CAAa,EACjD,QAAuB,gBAAgBA,CAAa,EACpD,KAAMC,CACR,CAAC,CAAC,CAAC,KAAKC,CAAwB,EAAA,AAAE,CAAC,EAGrC,IAAa,oBAAb,eACwB,gBAAwC,CAAC,CAAC,sBAAuB,CACrF,KAAMD,EACN,MAAOA,CACT,CAAC,CAAC,CAAC,KAAKE,CAAuB,EAAA,AAAE,CAAC,ECJpC,MAAa0F,GAA6D,iBAAyB,CAGjG,YAA2B,gBAAO,QAAQ,YAAc,GAAYC,CAAO,EAC3E,QAAU,GAAUC,EAAM,WAC1B,QAAS,cAGT,cAAe,CAAE,UAAS,UAAW,IAAI,sBAAsB,CAAE,UAAS,MAAK,CAAC,EAChF,YAAa,CAAE,OAAM,WAAY,IAAI,oBAAoB,CAAE,OAAM,OAAM,CAAC,CAC1E,CAAC,ECbD,IAAa,MAAb,eAAyC,gBAAQ,QAAuB,CAAC,CAAC,gBAAgB,EAAA,AAAE,CAAC,EAG7F,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,qBAAO/E,CAAiB,EAGhE,MAAagF,GAA0B,qBAAO9E,CAAgB"}
1
+ {"version":3,"file":"sdk.js","names":["Schema.String","Schema.Unknown","Category.withServerError","Category.withParseError","D","call","error","named","newError","op","withBadRequestError","withConflictError","withParseError","withServerError","String$2","all$1","capped","jittered","makeDefault","throttlingFactory","throttlingOptions","transientFactory","transientOptions","String$1","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","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","Struct","TaggedError","Unknown","at","optional","suspend","Context","Effect","Layer","Redacted","DEFAULT_API_BASE_URL","envConfig","CredentialsFromEnv","apiKey","config","TypesenseProtocol","resolve","creds","optionsOrFactory","none","throttling","transient"],"sources":["../../src/credentials.ts","../../src/errors.ts","../../src/protocol.ts","../../src/retry.ts"],"mappings":"wuEAoBA,MAAawF,GAAuB,GAOpC,IAAa,YAAb,eACwB,gBAAQ,QAAyD,CAAC,CACtF,sBACF,EAAA,AAAE,CAAC,EAEL,MAAMC,GAA0B,iBAAiB,CAC/C,OAAsB,gBAAoB,mBAAmB,EAC7D,WAA0B,gBAAoB,mBAAmB,CACnE,CAAC,EAED,MAAaC,GAAmC,gBAAM,QACpD,YACc,iBAAU,KACR,gBAAO,aAEjB,IAAIrC,EAAY,CACd,QAAS,4EACX,CAAC,CACL,EACc,gBAAO,KAAK,CAAE,SAAQ,iBAAkB,CACpD,OAAQkC,EAAS,KAAKI,CAAM,EAC5B,YACF,EAAE,CACJ,CACF,EAGA,MAAa,YAAe,GAI1BL,EAAM,QACJ,YACAD,EAAO,QAAQ,CACb,OAAQO,EAAO,OACf,WAAYA,EAAO,UACrB,CAAC,CACH,EAGF,MAAa,cAAiB,IAA4C,CACxE,sBAAuBL,EAAS,MAAMK,EAAO,MAAM,CACrD,GCvCA,IAAa,sBAAb,eACwB,gBAA0C,CAAC,CAAC,wBAAyB,CACzF,KAAoB,gBAAgB5F,CAAa,EACjD,QAAuB,gBAAgBA,CAAa,EACpD,KAAMC,CACR,CAAC,CAAC,CAAC,KAAKC,CAAwB,EAAA,AAAE,CAAC,EAGrC,IAAa,oBAAb,eACwB,gBAAwC,CAAC,CAAC,sBAAuB,CACrF,KAAMD,EACN,MAAOA,CACT,CAAC,CAAC,CAAC,KAAKE,CAAuB,EAAA,AAAE,CAAC,ECFpC,MAAa0F,GAA6D,iBAAyB,CAGjG,YAA2B,gBAAO,QAAQ,YAAc,GAAYC,CAAO,EAC3E,QAAU,GAAUC,EAAM,WAC1B,QAAS,cAGT,cAAe,CAAE,UAAS,UAAW,IAAI,sBAAsB,CAAE,UAAS,MAAK,CAAC,EAChF,YAAa,CAAE,OAAM,WAAY,IAAI,oBAAoB,CAAE,OAAM,OAAM,CAAC,CAC1E,CAAC,ECfD,IAAa,MAAb,eAAyC,gBAAQ,QAAuB,CAAC,CAAC,gBAAgB,EAAA,AAAE,CAAC,EAG7F,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,qBAAO/E,CAAiB,EAGhE,MAAagF,GAA0B,qBAAO9E,CAAgB"}
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 { 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 { type DefaultErrors } from "./errors.ts";
11
12
  * TypesenseOpError, TypesenseOpContext>` explicitly so the compiler never
12
13
  * infers these back out of the schema generics.
13
14
  */
14
- export type TypesenseOpError = DefaultErrors | ConfigError | HttpClientError.HttpClientError | InvalidInput;
15
+ export type TypesenseOpError = DefaultErrors | ConfigError | HttpClientError.HttpClientError | InvalidInput | SdkError;
15
16
  /** Context (requirements) shared by every generated Typesense operation. */
16
17
  export type TypesenseOpContext = Credentials | HttpClient.HttpClient;
17
18
  export declare const TypesenseProtocol: 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,WAAW,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAgB9E,OAAO,KAAK,KAAK,UAAU,MAAM,wBAAwB,CAAC;AAC1D,OAAO,KAAK,KAAK,eAAe,MAAM,6BAA6B,CAAC;AACpE,OAAO,KAAK,KAAK,KAAK,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAe,WAAW,EAAiB,MAAM,kBAAkB,CAAC;AAC3E,OAAO,EAAE,KAAK,aAAa,EAA8C,MAAM,aAAa,CAAC;AAE7F;;;;;GAKG;AACH,MAAM,MAAM,gBAAgB,GACxB,aAAa,GACb,WAAW,GACX,eAAe,CAAC,eAAe,GAC/B,YAAY,CAAC;AAEjB,4EAA4E;AAC5E,MAAM,MAAM,kBAAkB,GAAG,WAAW,GAAG,UAAU,CAAC,UAAU,CAAC;AAErE,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,CAUtD,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,WAAW,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAE9E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAehE,OAAO,KAAK,KAAK,UAAU,MAAM,wBAAwB,CAAC;AAC1D,OAAO,KAAK,KAAK,eAAe,MAAM,6BAA6B,CAAC;AACpE,OAAO,KAAK,KAAK,KAAK,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAe,WAAW,EAAiB,MAAM,kBAAkB,CAAC;AAC3E,OAAO,EAAE,KAAK,aAAa,EAA8C,MAAM,aAAa,CAAC;AAE7F;;;;;GAKG;AACH,MAAM,MAAM,gBAAgB,GACxB,aAAa,GACb,WAAW,GACX,eAAe,CAAC,eAAe,GAC/B,YAAY,GACZ,QAAQ,CAAC;AAEb,4EAA4E;AAC5E,MAAM,MAAM,kBAAkB,GAAG,WAAW,GAAG,UAAU,CAAC,UAAU,CAAC;AAErE,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,CAUtD,CAAC"}