@distilled.cloud/surrealdb 1.0.0-rc.15 → 1.0.0-rc.17
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/.lazy.json +1 -0
- package/lib/_bundle/sdk.js +2 -0
- package/lib/_bundle/sdk.js.map +1 -0
- package/lib/credentials.d.ts +2 -2
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +1 -36
- package/lib/errors.d.ts +15 -15
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +1 -26
- package/lib/index.d.ts +1 -1
- package/lib/index.js +0 -19
- package/lib/index.lazy.js +8 -0
- package/lib/{index.js.map → index.lazy.js.map} +1 -1
- package/lib/pagination.d.ts +1 -1
- package/lib/pagination.js +1 -10
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +1 -46
- package/lib/retry.d.ts +1 -1
- package/lib/retry.d.ts.map +1 -1
- package/lib/retry.js +1 -32
- package/lib/services/index.js +0 -2
- package/lib/services/surrealdb.d.ts +0 -43
- package/lib/services/surrealdb.d.ts.map +1 -1
- package/lib/services/surrealdb.js +1 -284
- package/lib/services/surrealdb.js.map +1 -1
- package/lib/services.lazy/index.js +3 -0
- package/lib/services.lazy/surrealdb.js +1 -0
- package/lib/traits.d.ts +1 -1
- package/lib/traits.js +1 -11
- package/package.json +9 -7
- package/src/credentials.ts +7 -6
- package/src/errors.ts +12 -16
- package/src/index.ts +2 -2
- package/src/pagination.ts +1 -1
- package/src/protocol.ts +6 -9
- package/src/retry.ts +6 -4
- package/src/services/surrealdb.ts +271 -284
- package/src/traits.ts +1 -1
- package/lib/credentials.js.map +0 -1
- package/lib/errors.js.map +0 -1
- package/lib/pagination.js.map +0 -1
- package/lib/protocol.js.map +0 -1
- package/lib/retry.js.map +0 -1
- package/lib/services/index.js.map +0 -1
- package/lib/traits.js.map +0 -1
package/lib/.lazy.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"serviceDirs":["services"],"twins":["index.js"]}
|
|
@@ -0,0 +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$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,trait$Body as V,trait$FormDataFile as H,trait$Header as ae,trait$Http as U,trait$HttpBody as W,trait$KeyDictionary as G,trait$Label as K,trait$Query as q,trait$ResponseCode as J,trait$UnionCases as oe,trait$applyErrorMatchers as se,trait$bodySymbol as ce,trait$errorMatchersSymbol as le,trait$formDataFileSymbol as ue,trait$getErrorMatchers as de,trait$headerSymbol as fe,trait$httpBodySymbol as pe,trait$httpSymbol as me,trait$keyDictionarySymbol as he,trait$labelSymbol as ge,trait$querySymbol as _e,trait$responseCodeSymbol as ve,trait$unionCasesSymbol as ye}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 be=`http://127.0.0.1:8000`;var Credentials=class extends (/*@__PURE__*/ Y.Service()(`SurrealdbCredentials`)){};const fromApiKey=e=>Z.succeed(Credentials,X.succeed({apiKey:e.apiKey,apiBaseUrl:e.apiBaseUrl??`http://127.0.0.1:8000`}));const xe=/*@__PURE__*/ Z.succeed(Credentials,/*@__PURE__*/ X.gen(function*(){const e=process.env.SURREALDB_API_KEY;if(!e)return yield*new r({message:`SURREALDB_API_KEY environment variable is required`});return{apiKey:Q.make(e),apiBaseUrl:process.env.SURREALDB_API_BASE_URL??`http://127.0.0.1:8000`}}).pipe(X.orDie));var UnknownSurrealdbError=class extends (/*@__PURE__*/ $.TaggedError()(`UnknownSurrealdbError`,{code:/*@__PURE__*/ $.optional($.String),message:/*@__PURE__*/ $.optional($.String),body:$.Unknown}).pipe(N)){};var SurrealdbParseError=class extends (/*@__PURE__*/ $.TaggedError()(`SurrealdbParseError`,{body:$.Unknown,cause:$.Unknown}).pipe(M)){};const Se=/*@__PURE__*/ m({credentials:/*@__PURE__*/ X.flatMap(Credentials,e=>e),baseUrl:e=>e.apiBaseUrl,headers:e=>({Accept:`application/json`,Authorization:`Bearer ${Q.value(e.apiKey)}`}),unknownError:({code:e,message:t,body:n})=>new UnknownSurrealdbError({code:typeof e===`string`?e:e!==void 0?String(e):void 0,message:t,body:n}),parseError:({body:e,cause:t})=>new SurrealdbParseError({body:e,cause:t})});var Retry=class extends (/*@__PURE__*/ Y.Service()(`SurrealdbRetry`)){};const policy=e=>X.provide(Z.succeed(Retry,e));const Ce=/*@__PURE__*/ X.provide(/*@__PURE__*/ Z.succeed(Retry,{while:()=>false}));const we=/*@__PURE__*/ policy(L);const Te=/*@__PURE__*/ policy(z);export{S as a,T as c,Credentials as credentials$Credentials,xe as credentials$CredentialsFromEnv,be 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,s as errors$ServiceUnavailable,SurrealdbParseError as errors$SurrealdbParseError,c as errors$TooManyRequests,l as errors$Unauthorized,UnknownSurrealdbError as errors$UnknownSurrealdbError,u as errors$UnprocessableEntity,k as f,x as i,E as l,j as m,y as n,C as o,A as p,Se as protocol$SurrealdbProtocol,b as r,Retry as retry$Retry,P as retry$capped,F as retry$jittered,I as retry$makeDefault,Ce as retry$none,policy as retry$policy,we as retry$throttling,L as retry$throttlingFactory,R as retry$throttlingOptions,Te as retry$transient,z as retry$transientFactory,B as retry$transientOptions,w as s,v as t,V as traits$Body,H as traits$FormDataFile,ae as traits$Header,U as traits$Http,W as traits$HttpBody,G as traits$KeyDictionary,K as traits$Label,q as traits$Query,d as traits$RawResponse,f as traits$RawResponseRoot,J as traits$ResponseCode,p as traits$SensitiveValue,oe as traits$UnionCases,se as traits$applyErrorMatchers,ce as traits$bodySymbol,le as traits$errorMatchersSymbol,ue as traits$formDataFileSymbol,de as traits$getErrorMatchers,fe as traits$headerSymbol,pe as traits$httpBodySymbol,me as traits$httpSymbol,he as traits$keyDictionarySymbol,ge as traits$labelSymbol,_e as traits$querySymbol,h as traits$rawResponseRootSymbol,g as traits$rawResponseSymbol,ve as traits$responseCodeSymbol,_ as traits$sensitiveValueSymbol,ye as traits$unionCasesSymbol,D as u};
|
|
2
|
+
//# sourceMappingURL=sdk.js.map
|
|
@@ -0,0 +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","Unknown","at","optional","suspend","D","call","named","op","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","SurrealdbProtocol","resolve","creds","code","optionsOrFactory","none","throttling","transient"],"sources":["../../src/credentials.ts","../../src/errors.ts","../../src/protocol.ts","../../src/retry.ts"],"mappings":"q/DAeA,MAAa4E,GAAuB,wBAOpC,IAAa,YAAb,eACwB,gBAAQ,QAA4C,CAAC,CACzE,sBACF,EAAA,AAAE,CAAC,EAGL,MAAa,WAAc,GAIzBH,EAAM,QACJ,YACAD,EAAO,QAAQ,CACb,OAAQK,EAAO,OACf,WAAYA,EAAO,YAAA,uBACrB,CAAC,CACH,EAGF,MAAaC,GAA6D,gBAAM,QAC9E,YACc,gBAAO,IAAI,WAAa,CACpC,MAAMC,EAAS,QAAQ,IAAI,kBAE3B,GAAI,CAACA,EACH,OAAO,MAAO,IAAI1E,EAAY,CAC5B,QAAS,oDACX,CAAC,EAGH,MAAO,CACL,OAAQqE,EAAS,KAAKK,CAAM,EAC5B,WAAY,QAAQ,IAAI,wBAAA,uBAC1B,CACF,CAAC,CAAC,CAAC,KAAKP,EAAO,KAAK,CACtB,ECxBA,IAAa,sBAAb,eACwB,gBAAO,YAAmC,CAAC,CAAC,wBAAyB,CACzF,KAAoB,gBAAO,SAASG,EAAO,MAAM,EACjD,QAAuB,gBAAO,SAASA,EAAO,MAAM,EACpD,KAAMA,EAAO,OACf,CAAC,CAAC,CAAC,KAAK3E,CAAwB,EAAA,AAAE,CAAC,EAGrC,IAAa,oBAAb,eACwB,gBAAO,YAAiC,CAAC,CAAC,sBAAuB,CACrF,KAAM2E,EAAO,QACb,MAAOA,EAAO,OAChB,CAAC,CAAC,CAAC,KAAK1E,CAAuB,EAAA,AAAE,CAAC,ECApC,MAAa+E,GAA6D,gBAAyB,CAGjG,YAA2B,gBAAO,QAAQ,YAAc,GAAYC,CAAO,EAC3E,QAAU,GAAUC,EAAM,WAC1B,QAAU,IAAW,CACnB,OAAQ,mBACR,cAAe,UAAUR,EAAS,MAAMQ,EAAM,MAAM,GACtD,GAIA,cAAe,CAAE,OAAM,UAAS,UAC9B,IAAI,sBAAsB,CACxB,KAAM,OAAOC,IAAS,SAAWA,EAAOA,IAAS,IAAA,GAAY,OAAOA,CAAI,EAAI,IAAA,GAC5E,UACA,MACF,CAAC,EACH,YAAa,CAAE,OAAM,WAAY,IAAI,oBAAoB,CAAE,OAAM,OAAM,CAAC,CAC1E,CAAC,EC9BD,IAAa,MAAb,eAAyC,gBAAQ,QAAuB,CAAC,CAAC,gBAAgB,EAAA,AAAE,CAAC,EAG7F,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"}
|
package/lib/credentials.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* SurrealDB credentials
|
|
2
|
+
* SurrealDB credentials -- hand-written.
|
|
3
3
|
*
|
|
4
4
|
* The `Credentials` service holds an *effect* that resolves the current
|
|
5
5
|
* credentials on every request (the protocol layer resolves it per request
|
|
@@ -17,7 +17,7 @@ export interface Config {
|
|
|
17
17
|
readonly apiBaseUrl: string;
|
|
18
18
|
}
|
|
19
19
|
declare const Credentials_base: Context.ServiceClass<Credentials, "SurrealdbCredentials", Effect.Effect<Config, never, never>>;
|
|
20
|
-
export declare class Credentials extends Credentials_base {
|
|
20
|
+
export declare class Credentials extends /*@__PURE__*/ Credentials_base {
|
|
21
21
|
}
|
|
22
22
|
/** Layer from a redacted API key + optional base URL. */
|
|
23
23
|
export declare const fromApiKey: (config: {
|
package/lib/credentials.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../src/credentials.ts"],"names":[],"mappings":"AACA;;;;;;;;GAQG;AACH,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAE5C,eAAO,MAAM,oBAAoB,0BAA0B,CAAC;AAE5D,MAAM,WAAW,MAAM;IACrB,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC3C,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B;;AAED,qBAAa,
|
|
1
|
+
{"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../src/credentials.ts"],"names":[],"mappings":"AACA;;;;;;;;GAQG;AACH,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAE5C,eAAO,MAAM,oBAAoB,0BAA0B,CAAC;AAE5D,MAAM,WAAW,MAAM;IACrB,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC3C,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;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,gFAAgF;AAChF,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,KAAK,CAAC,WAAW,CAgBvD,CAAC"}
|
package/lib/credentials.js
CHANGED
|
@@ -1,36 +1 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* SurrealDB credentials — hand-written.
|
|
4
|
-
*
|
|
5
|
-
* The `Credentials` service holds an *effect* that resolves the current
|
|
6
|
-
* credentials on every request (the protocol layer resolves it per request
|
|
7
|
-
* on the calling fiber). Auth is a JWT or API token sent as
|
|
8
|
-
* `Authorization: Bearer <apiKey>`. Self-hosted instances override the
|
|
9
|
-
* default base URL (`http://127.0.0.1:8000`).
|
|
10
|
-
*/
|
|
11
|
-
import * as Context from "effect/Context";
|
|
12
|
-
import * as Effect from "effect/Effect";
|
|
13
|
-
import * as Layer from "effect/Layer";
|
|
14
|
-
import * as Redacted from "effect/Redacted";
|
|
15
|
-
export const DEFAULT_API_BASE_URL = "http://127.0.0.1:8000";
|
|
16
|
-
export class Credentials extends Context.Service()("SurrealdbCredentials") {
|
|
17
|
-
}
|
|
18
|
-
/** Layer from a redacted API key + optional base URL. */
|
|
19
|
-
export const fromApiKey = (config) => Layer.succeed(Credentials, Effect.succeed({
|
|
20
|
-
apiKey: config.apiKey,
|
|
21
|
-
apiBaseUrl: config.apiBaseUrl ?? DEFAULT_API_BASE_URL,
|
|
22
|
-
}));
|
|
23
|
-
/** Reads SURREALDB_API_KEY (required) and SURREALDB_API_BASE_URL (optional). */
|
|
24
|
-
export const CredentialsFromEnv = Layer.succeed(Credentials, Effect.gen(function* () {
|
|
25
|
-
const apiKey = process.env.SURREALDB_API_KEY;
|
|
26
|
-
if (!apiKey) {
|
|
27
|
-
return yield* new ConfigError({
|
|
28
|
-
message: "SURREALDB_API_KEY environment variable is required",
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
return {
|
|
32
|
-
apiKey: Redacted.make(apiKey),
|
|
33
|
-
apiBaseUrl: process.env.SURREALDB_API_BASE_URL ?? DEFAULT_API_BASE_URL,
|
|
34
|
-
};
|
|
35
|
-
}).pipe(Effect.orDie));
|
|
36
|
-
//# sourceMappingURL=credentials.js.map
|
|
1
|
+
export { credentials$Credentials as Credentials, credentials$CredentialsFromEnv as CredentialsFromEnv, credentials$DEFAULT_API_BASE_URL as DEFAULT_API_BASE_URL, credentials$fromApiKey as fromApiKey } from "./_bundle/sdk.js";
|
package/lib/errors.d.ts
CHANGED
|
@@ -3,34 +3,34 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Re-exports the common HTTP errors from core and adds the SurrealDB fallback
|
|
5
5
|
* errors. Note the generated service module additionally defines its own
|
|
6
|
-
* per-status matcher classes (BadRequest/NotFound
|
|
7
|
-
* operation declares
|
|
6
|
+
* per-status matcher classes (BadRequest/NotFound/...) for the statuses each
|
|
7
|
+
* operation declares -- those share `_tag`s with the core classes here, so
|
|
8
8
|
* `catchTag` works against either.
|
|
9
9
|
*/
|
|
10
10
|
export { BadGateway, BadRequest, Conflict, ConfigError, Forbidden, GatewayTimeout, InternalServerError, Locked, NotFound, ServiceUnavailable, TooManyRequests, Unauthorized, UnprocessableEntity, HTTP_STATUS_MAP, DEFAULT_ERRORS, API_ERRORS, } from "@distilled.cloud/core/errors";
|
|
11
11
|
export type { DefaultErrors } from "@distilled.cloud/core/errors";
|
|
12
|
-
import * as Schema from "
|
|
13
|
-
declare const UnknownSurrealdbError_base: Schema.
|
|
14
|
-
readonly code: Schema.optional<Schema.String>;
|
|
15
|
-
readonly message: Schema.optional<Schema.String>;
|
|
16
|
-
readonly body: Schema.Unknown;
|
|
17
|
-
}
|
|
12
|
+
import * as Schema from "@distilled.cloud/core/schema-lite-typed";
|
|
13
|
+
declare const UnknownSurrealdbError_base: Schema.TaggedErrorClass<"UnknownSurrealdbError", {
|
|
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
18
|
"@distilled.cloud/error/categories": {
|
|
19
19
|
ServerError: true;
|
|
20
20
|
};
|
|
21
21
|
});
|
|
22
|
-
/** Unknown SurrealDB error
|
|
23
|
-
export declare class UnknownSurrealdbError extends UnknownSurrealdbError_base {
|
|
22
|
+
/** Unknown SurrealDB error -- returned when nothing else matches the failure. */
|
|
23
|
+
export declare class UnknownSurrealdbError extends /*@__PURE__*/ UnknownSurrealdbError_base {
|
|
24
24
|
}
|
|
25
|
-
declare const SurrealdbParseError_base: Schema.
|
|
26
|
-
readonly body: Schema.Unknown;
|
|
27
|
-
readonly cause: Schema.Unknown;
|
|
28
|
-
}
|
|
25
|
+
declare const SurrealdbParseError_base: Schema.TaggedErrorClass<"SurrealdbParseError", {
|
|
26
|
+
readonly body: import("effect/Schema").Unknown;
|
|
27
|
+
readonly cause: import("effect/Schema").Unknown;
|
|
28
|
+
}> & (new (...args: any[]) => {
|
|
29
29
|
"@distilled.cloud/error/categories": {
|
|
30
30
|
ParseError: true;
|
|
31
31
|
};
|
|
32
32
|
});
|
|
33
33
|
/** Schema parse error wrapper. */
|
|
34
|
-
export declare class SurrealdbParseError extends SurrealdbParseError_base {
|
|
34
|
+
export declare class SurrealdbParseError extends /*@__PURE__*/ SurrealdbParseError_base {
|
|
35
35
|
}
|
|
36
36
|
//# sourceMappingURL=errors.d.ts.map
|
package/lib/errors.d.ts.map
CHANGED
|
@@ -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,
|
|
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,iFAAiF;AACjF,qBAAa,qBACX,SAAQ,aAAa,CAAC,0BAIW;CAAG;;;;;;;;;AAEtC,kCAAkC;AAClC,qBAAa,mBACX,SAAQ,aAAa,CAAC,wBAGU;CAAG"}
|
package/lib/errors.js
CHANGED
|
@@ -1,26 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* SurrealDB-specific error types.
|
|
3
|
-
*
|
|
4
|
-
* Re-exports the common HTTP errors from core and adds the SurrealDB fallback
|
|
5
|
-
* errors. Note the generated service module additionally defines its own
|
|
6
|
-
* per-status matcher classes (BadRequest/NotFound/…) for the statuses each
|
|
7
|
-
* operation declares — those share `_tag`s with the core classes here, so
|
|
8
|
-
* `catchTag` works against either.
|
|
9
|
-
*/
|
|
10
|
-
export { BadGateway, BadRequest, Conflict, ConfigError, Forbidden, GatewayTimeout, InternalServerError, Locked, NotFound, ServiceUnavailable, TooManyRequests, Unauthorized, UnprocessableEntity, HTTP_STATUS_MAP, DEFAULT_ERRORS, API_ERRORS, } from "@distilled.cloud/core/errors";
|
|
11
|
-
import * as Category from "@distilled.cloud/core/category";
|
|
12
|
-
import * as Schema from "effect/Schema";
|
|
13
|
-
/** Unknown SurrealDB error — returned when nothing else matches the failure. */
|
|
14
|
-
export class UnknownSurrealdbError extends Schema.TaggedError()("UnknownSurrealdbError", {
|
|
15
|
-
code: Schema.optional(Schema.String),
|
|
16
|
-
message: Schema.optional(Schema.String),
|
|
17
|
-
body: Schema.Unknown,
|
|
18
|
-
}).pipe(Category.withServerError) {
|
|
19
|
-
}
|
|
20
|
-
/** Schema parse error wrapper. */
|
|
21
|
-
export class SurrealdbParseError extends Schema.TaggedError()("SurrealdbParseError", {
|
|
22
|
-
body: Schema.Unknown,
|
|
23
|
-
cause: Schema.Unknown,
|
|
24
|
-
}).pipe(Category.withParseError) {
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=errors.js.map
|
|
1
|
+
export { errors$API_ERRORS as API_ERRORS, errors$BadGateway as BadGateway, errors$BadRequest as BadRequest, errors$ConfigError as ConfigError, errors$Conflict as Conflict, errors$DEFAULT_ERRORS as DEFAULT_ERRORS, errors$Forbidden as Forbidden, errors$GatewayTimeout as GatewayTimeout, errors$HTTP_STATUS_MAP as HTTP_STATUS_MAP, errors$InternalServerError as InternalServerError, errors$Locked as Locked, errors$NotFound as NotFound, errors$ServiceUnavailable as ServiceUnavailable, errors$SurrealdbParseError as SurrealdbParseError, errors$TooManyRequests as TooManyRequests, errors$Unauthorized as Unauthorized, errors$UnknownSurrealdbError as UnknownSurrealdbError, errors$UnprocessableEntity as UnprocessableEntity } from "./_bundle/sdk.js";
|
package/lib/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @distilled.cloud/surrealdb
|
|
2
|
+
* @distilled.cloud/surrealdb -- SurrealDB SDK for Effect.
|
|
3
3
|
*
|
|
4
4
|
* `./services` is generated by `scripts/generate.ts` from the Smithy model
|
|
5
5
|
* in `.generated-specs` (written by `scripts/convert.ts` from the OpenAPI
|
package/lib/index.js
CHANGED
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @distilled.cloud/surrealdb — SurrealDB SDK for Effect.
|
|
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.
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
* ```ts
|
|
10
|
-
* import * as Surrealdb from "@distilled.cloud/surrealdb";
|
|
11
|
-
*
|
|
12
|
-
* const version = yield* Surrealdb.Services.surrealdb.getVersion({});
|
|
13
|
-
* ```
|
|
14
|
-
*/
|
|
15
1
|
export * from "./credentials.js";
|
|
16
2
|
export * from "./errors.js";
|
|
17
3
|
export * as T from "./traits.js";
|
|
@@ -19,9 +5,4 @@ export { SurrealdbProtocol } from "./protocol.js";
|
|
|
19
5
|
export { paginateCursor } from "./pagination.js";
|
|
20
6
|
export * as Retry from "./retry.js";
|
|
21
7
|
export * as Services from "./services/index.js";
|
|
22
|
-
// Operations (and their request/response types) are importable straight off
|
|
23
|
-
// the package root. The service-local typed error classes shadow the
|
|
24
|
-
// same-named shared ones from ./errors.ts — the ops actually raise the
|
|
25
|
-
// service-local classes.
|
|
26
8
|
export * from "./services/surrealdb.js";
|
|
27
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from "./credentials.js";
|
|
2
|
+
export * from "./errors.js";
|
|
3
|
+
export * as T from "./traits.js";
|
|
4
|
+
export { SurrealdbProtocol } from "./protocol.js";
|
|
5
|
+
export { paginateCursor } from "./pagination.js";
|
|
6
|
+
export * as Retry from "./retry.js";
|
|
7
|
+
export * as Services from "./services.lazy/index.js";
|
|
8
|
+
export * from "./services.lazy/surrealdb.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,iBAAiB,EAAkD,MAAM,eAAe,CAAC;AAClG,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,QAAQ,MAAM,qBAAqB,CAAC;AAChD,4EAA4E;AAC5E,qEAAqE;AACrE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,iBAAiB,EAAkD,MAAM,eAAe,CAAC;AAClG,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,QAAQ,MAAM,qBAAqB,CAAC;AAChD,4EAA4E;AAC5E,qEAAqE;AACrE,wEAAwE;AACxE,yBAAyB;AACzB,cAAc,yBAAyB,CAAC"}
|
package/lib/pagination.d.ts
CHANGED
package/lib/pagination.js
CHANGED
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* SurrealDB pagination — hand-written.
|
|
3
|
-
*
|
|
4
|
-
* Generated operations pass core's {@link paginateCursor} strategy to
|
|
5
|
-
* `API.makePaginated` when the spec marks an op paginated. Most HTTP table
|
|
6
|
-
* list endpoints use `limit`/`start` query params instead and stay as
|
|
7
|
-
* plain operations.
|
|
8
|
-
*/
|
|
9
|
-
export { paginateCursor } from "@distilled.cloud/core/pagination";
|
|
10
|
-
//# sourceMappingURL=pagination.js.map
|
|
1
|
+
import{pagination$paginateCursor as e}from"@distilled.cloud/core/_bundle/base";export{e as paginateCursor};
|
package/lib/protocol.d.ts.map
CHANGED
|
@@ -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;AAqB5E,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,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAEzE;;;;;GAKG;AACH,MAAM,MAAM,gBAAgB,GACxB,YAAY,CAAC,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC,GACzC,qBAAqB,GACrB,WAAW,GACX,eAAe,CAAC,eAAe,GAC/B,mBAAmB,CAAC;AAExB,4EAA4E;AAC5E,MAAM,MAAM,kBAAkB,GAAG,WAAW,GAAG,UAAU,CAAC,UAAU,CAAC;AAErE,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,
|
|
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;AAqB5E,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,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAEzE;;;;;GAKG;AACH,MAAM,MAAM,gBAAgB,GACxB,YAAY,CAAC,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC,GACzC,qBAAqB,GACrB,WAAW,GACX,eAAe,CAAC,eAAe,GAC/B,mBAAmB,CAAC;AAExB,4EAA4E;AAC5E,MAAM,MAAM,kBAAkB,GAAG,WAAW,GAAG,UAAU,CAAC,UAAU,CAAC;AAErE,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,CAmBtD,CAAC"}
|
package/lib/protocol.js
CHANGED
|
@@ -1,46 +1 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* SurrealdbProtocol — hand-written.
|
|
4
|
-
*
|
|
5
|
-
* SurrealDB speaks bearer-authenticated JSON REST (no response envelope),
|
|
6
|
-
* so the whole protocol is one `makeRestProtocol` call from
|
|
7
|
-
* `core/protocol-rest`:
|
|
8
|
-
*
|
|
9
|
-
* request: credentials → `Authorization: Bearer <apiKey>` +
|
|
10
|
-
* `Accept: application/json` + base URL (default
|
|
11
|
-
* http://127.0.0.1:8000), resolved from the calling fiber on
|
|
12
|
-
* every request. Namespace/database selection is per-call via
|
|
13
|
-
* the `NS` / `DB` headers on the generated operations.
|
|
14
|
-
*
|
|
15
|
-
* response: 2xx JSON is the payload (sensitive members delivered as
|
|
16
|
-
* `Redacted`); non-2xx `{ code?, message }` bodies map to the
|
|
17
|
-
* operation's typed error classes by status, then the shared
|
|
18
|
-
* HTTP-status classes, then {@link UnknownSurrealdbError}.
|
|
19
|
-
*/
|
|
20
|
-
import * as Effect from "effect/Effect";
|
|
21
|
-
import * as Redacted from "effect/Redacted";
|
|
22
|
-
import { Credentials } from "./credentials.js";
|
|
23
|
-
import { UnknownSurrealdbError, SurrealdbParseError } from "./errors.js";
|
|
24
|
-
export const SurrealdbProtocol = makeRestProtocol({
|
|
25
|
-
// The Credentials service holds an effect — resolving it here (per
|
|
26
|
-
// request, on the calling fiber) picks up context-provided credentials.
|
|
27
|
-
credentials: Effect.gen(function* () {
|
|
28
|
-
const resolve = yield* Credentials;
|
|
29
|
-
return yield* resolve;
|
|
30
|
-
}),
|
|
31
|
-
baseUrl: (creds) => creds.apiBaseUrl,
|
|
32
|
-
headers: (creds) => ({
|
|
33
|
-
Accept: "application/json",
|
|
34
|
-
Authorization: `Bearer ${Redacted.value(creds.apiKey)}`,
|
|
35
|
-
}),
|
|
36
|
-
// SurrealDB's error body is `{ code?: string, details?: string,
|
|
37
|
-
// description?: string, information?: string }` — the factory's default
|
|
38
|
-
// lenient envelope covers `message`/`error`/`details`.
|
|
39
|
-
unknownError: ({ code, message, body }) => new UnknownSurrealdbError({
|
|
40
|
-
code: typeof code === "string" ? code : code !== undefined ? String(code) : undefined,
|
|
41
|
-
message,
|
|
42
|
-
body,
|
|
43
|
-
}),
|
|
44
|
-
parseError: ({ body, cause }) => new SurrealdbParseError({ body, cause }),
|
|
45
|
-
});
|
|
46
|
-
//# sourceMappingURL=protocol.js.map
|
|
1
|
+
export { protocol$SurrealdbProtocol as SurrealdbProtocol } from "./_bundle/sdk.js";
|
package/lib/retry.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ import * as Effect from "effect/Effect";
|
|
|
19
19
|
export { type Options, type Factory, type Policy, makeDefault, jittered, capped, throttlingOptions, transientOptions, throttlingFactory, transientFactory, } from "@distilled.cloud/core/retry";
|
|
20
20
|
declare const Retry_base: Context.ServiceClass<Retry, "SurrealdbRetry", Policy>;
|
|
21
21
|
/** Context tag for configuring retry behavior of SurrealDB API calls. */
|
|
22
|
-
export declare class Retry extends Retry_base {
|
|
22
|
+
export declare class Retry extends /*@__PURE__*/ Retry_base {
|
|
23
23
|
}
|
|
24
24
|
/** Provides a custom retry policy to every SurrealDB API call below it. */
|
|
25
25
|
export declare const policy: (optionsOrFactory: Policy) => <A, E, R>(self: Effect.Effect<A, E, R>) => Effect.Effect<A, E, Exclude<R, Retry>>;
|
package/lib/retry.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retry.d.ts","sourceRoot":"","sources":["../src/retry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAuC,MAAM,6BAA6B,CAAC;AAC/F;;;;;;;;;;;;;;GAcG;AACH,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,MAAM,EACX,WAAW,EACX,QAAQ,EACR,MAAM,EACN,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,6BAA6B,CAAC;;AAErC,yEAAyE;AACzE,qBAAa,KAAM,SAAQ,UAAkD;CAAG;
|
|
1
|
+
{"version":3,"file":"retry.d.ts","sourceRoot":"","sources":["../src/retry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAuC,MAAM,6BAA6B,CAAC;AAC/F;;;;;;;;;;;;;;GAcG;AACH,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,MAAM,EACX,WAAW,EACX,QAAQ,EACR,MAAM,EACN,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,6BAA6B,CAAC;;AAErC,yEAAyE;AACzE,qBAAa,KAAM,SAAQ,aAAa,CAAC,UAAkD;CAAG;AAE9F,2EAA2E;AAC3E,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/retry.js
CHANGED
|
@@ -1,32 +1 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* SurrealDB retry configuration.
|
|
4
|
-
*
|
|
5
|
-
* Defines the per-SDK `Retry` Context.Service tag that generated operations
|
|
6
|
-
* wire into `API.make`. Callers can install a blanket retry policy at the
|
|
7
|
-
* layer level and have every SurrealDB API call below it pick it up:
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* ```ts
|
|
11
|
-
* import * as Surrealdb from "@distilled.cloud/surrealdb";
|
|
12
|
-
*
|
|
13
|
-
* myEffect.pipe(Surrealdb.Retry.transient);
|
|
14
|
-
* Effect.provide(myEffect, Layer.succeed(Surrealdb.Retry.Retry, customPolicy));
|
|
15
|
-
* ```
|
|
16
|
-
*/
|
|
17
|
-
import * as Context from "effect/Context";
|
|
18
|
-
import * as Effect from "effect/Effect";
|
|
19
|
-
import * as Layer from "effect/Layer";
|
|
20
|
-
export { makeDefault, jittered, capped, throttlingOptions, transientOptions, throttlingFactory, transientFactory, } from "@distilled.cloud/core/retry";
|
|
21
|
-
/** Context tag for configuring retry behavior of SurrealDB API calls. */
|
|
22
|
-
export class Retry extends Context.Service()("SurrealdbRetry") {
|
|
23
|
-
}
|
|
24
|
-
/** Provides a custom retry policy to every SurrealDB API call below it. */
|
|
25
|
-
export const policy = (optionsOrFactory) => Effect.provide(Layer.succeed(Retry, optionsOrFactory));
|
|
26
|
-
/** Disables all automatic retries. */
|
|
27
|
-
export const none = Effect.provide(Layer.succeed(Retry, { while: () => false }));
|
|
28
|
-
/** Apply the throttling retry policy (retries throttling errors indefinitely). */
|
|
29
|
-
export const throttling = policy(throttlingFactory);
|
|
30
|
-
/** Apply the transient retry policy (retries all transient errors indefinitely). */
|
|
31
|
-
export const transient = policy(transientFactory);
|
|
32
|
-
//# sourceMappingURL=retry.js.map
|
|
1
|
+
export { retry$Retry as Retry, retry$capped as capped, retry$jittered as jittered, retry$makeDefault as makeDefault, retry$none as none, retry$policy as policy, retry$throttling as throttling, retry$throttlingFactory as throttlingFactory, retry$throttlingOptions as throttlingOptions, retry$transient as transient, retry$transientFactory as transientFactory, retry$transientOptions as transientOptions } from "./_bundle/sdk.js";
|
package/lib/services/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as API from "@distilled.cloud/core/api";
|
|
2
|
-
import * as S from "@distilled.cloud/core/schema";
|
|
3
2
|
import { type SurrealdbOpError, type SurrealdbOpContext } from "../protocol.ts";
|
|
4
3
|
export type { SurrealdbOpError, SurrealdbOpContext };
|
|
5
4
|
export interface CreateSqlRequest {
|
|
@@ -9,10 +8,8 @@ export interface CreateSqlRequest {
|
|
|
9
8
|
dB?: string;
|
|
10
9
|
body: string;
|
|
11
10
|
}
|
|
12
|
-
export declare const CreateSqlRequest: S.Schema<CreateSqlRequest>;
|
|
13
11
|
export interface CreateSqlResponse {
|
|
14
12
|
}
|
|
15
|
-
export declare const CreateSqlResponse: S.Schema<CreateSqlResponse>;
|
|
16
13
|
export interface DeleteKeyRequest {
|
|
17
14
|
/** The table of the records to delete */
|
|
18
15
|
table: string;
|
|
@@ -21,10 +18,8 @@ export interface DeleteKeyRequest {
|
|
|
21
18
|
/** Sets the selected Database for queries */
|
|
22
19
|
dB?: string;
|
|
23
20
|
}
|
|
24
|
-
export declare const DeleteKeyRequest: S.Schema<DeleteKeyRequest>;
|
|
25
21
|
export interface DeleteKeyResponse {
|
|
26
22
|
}
|
|
27
|
-
export declare const DeleteKeyResponse: S.Schema<DeleteKeyResponse>;
|
|
28
23
|
export interface DeleteKeyByIdRequest {
|
|
29
24
|
/** The table of the record to delete */
|
|
30
25
|
table: string;
|
|
@@ -35,26 +30,20 @@ export interface DeleteKeyByIdRequest {
|
|
|
35
30
|
/** Sets the selected Database for queries */
|
|
36
31
|
dB?: string;
|
|
37
32
|
}
|
|
38
|
-
export declare const DeleteKeyByIdRequest: S.Schema<DeleteKeyByIdRequest>;
|
|
39
33
|
export interface DeleteKeyByIdResponse {
|
|
40
34
|
}
|
|
41
|
-
export declare const DeleteKeyByIdResponse: S.Schema<DeleteKeyByIdResponse>;
|
|
42
35
|
export interface GetExportRequest {
|
|
43
36
|
/** Sets the selected Namespace for queries */
|
|
44
37
|
nS?: string;
|
|
45
38
|
/** Sets the selected Database for queries */
|
|
46
39
|
dB?: string;
|
|
47
40
|
}
|
|
48
|
-
export declare const GetExportRequest: S.Schema<GetExportRequest>;
|
|
49
41
|
export interface GetExportResponse {
|
|
50
42
|
}
|
|
51
|
-
export declare const GetExportResponse: S.Schema<GetExportResponse>;
|
|
52
43
|
export interface GetHealthRequest {
|
|
53
44
|
}
|
|
54
|
-
export declare const GetHealthRequest: S.Schema<GetHealthRequest>;
|
|
55
45
|
export interface GetHealthResponse {
|
|
56
46
|
}
|
|
57
|
-
export declare const GetHealthResponse: S.Schema<GetHealthResponse>;
|
|
58
47
|
export interface GetKeyRequest {
|
|
59
48
|
/** The table of the records to select */
|
|
60
49
|
table: string;
|
|
@@ -69,10 +58,8 @@ export interface GetKeyRequest {
|
|
|
69
58
|
/** Sets the selected Database for queries */
|
|
70
59
|
dB?: string;
|
|
71
60
|
}
|
|
72
|
-
export declare const GetKeyRequest: S.Schema<GetKeyRequest>;
|
|
73
61
|
export interface GetKeyResponse {
|
|
74
62
|
}
|
|
75
|
-
export declare const GetKeyResponse: S.Schema<GetKeyResponse>;
|
|
76
63
|
export interface GetKeyByIdRequest {
|
|
77
64
|
/** The table of the record to select */
|
|
78
65
|
table: string;
|
|
@@ -83,36 +70,26 @@ export interface GetKeyByIdRequest {
|
|
|
83
70
|
/** Sets the selected Database for queries */
|
|
84
71
|
dB?: string;
|
|
85
72
|
}
|
|
86
|
-
export declare const GetKeyByIdRequest: S.Schema<GetKeyByIdRequest>;
|
|
87
73
|
export interface GetKeyByIdResponseBodyItemResultItem {
|
|
88
74
|
id?: string;
|
|
89
75
|
some?: boolean;
|
|
90
76
|
}
|
|
91
|
-
export declare const GetKeyByIdResponseBodyItemResultItem: S.Schema<GetKeyByIdResponseBodyItemResultItem>;
|
|
92
77
|
export type GetKeyByIdResponseBodyItemResultList = Array<GetKeyByIdResponseBodyItemResultItem>;
|
|
93
|
-
export declare const GetKeyByIdResponseBodyItemResultList: S.Schema<GetKeyByIdResponseBodyItemResultList>;
|
|
94
78
|
export interface GetKeyByIdResponseBodyItem {
|
|
95
79
|
result?: GetKeyByIdResponseBodyItemResultList;
|
|
96
80
|
status?: string;
|
|
97
81
|
time?: string;
|
|
98
82
|
}
|
|
99
|
-
export declare const GetKeyByIdResponseBodyItem: S.Schema<GetKeyByIdResponseBodyItem>;
|
|
100
83
|
export type GetKeyByIdResponseBodyList = Array<GetKeyByIdResponseBodyItem>;
|
|
101
|
-
export declare const GetKeyByIdResponseBodyList: S.Schema<GetKeyByIdResponseBodyList>;
|
|
102
84
|
export type GetKeyByIdResponse = GetKeyByIdResponseBodyList;
|
|
103
|
-
export declare const GetKeyByIdResponse: S.Schema<GetKeyByIdResponse>;
|
|
104
85
|
export interface GetStatusRequest {
|
|
105
86
|
}
|
|
106
|
-
export declare const GetStatusRequest: S.Schema<GetStatusRequest>;
|
|
107
87
|
export interface GetStatusResponse {
|
|
108
88
|
}
|
|
109
|
-
export declare const GetStatusResponse: S.Schema<GetStatusResponse>;
|
|
110
89
|
export interface GetVersionRequest {
|
|
111
90
|
}
|
|
112
|
-
export declare const GetVersionRequest: S.Schema<GetVersionRequest>;
|
|
113
91
|
export interface GetVersionResponse {
|
|
114
92
|
}
|
|
115
|
-
export declare const GetVersionResponse: S.Schema<GetVersionResponse>;
|
|
116
93
|
export interface ImportRequest {
|
|
117
94
|
/** Sets the selected Namespace for queries */
|
|
118
95
|
nS?: string;
|
|
@@ -120,15 +97,12 @@ export interface ImportRequest {
|
|
|
120
97
|
dB?: string;
|
|
121
98
|
body: string;
|
|
122
99
|
}
|
|
123
|
-
export declare const ImportRequest: S.Schema<ImportRequest>;
|
|
124
100
|
export interface ImportResponse {
|
|
125
101
|
}
|
|
126
|
-
export declare const ImportResponse: S.Schema<ImportResponse>;
|
|
127
102
|
/** Record content */
|
|
128
103
|
export type PutKeyRequestBodyMap = {
|
|
129
104
|
[key: string]: unknown | undefined;
|
|
130
105
|
};
|
|
131
|
-
export declare const PutKeyRequestBodyMap: S.Schema<PutKeyRequestBodyMap>;
|
|
132
106
|
export interface PutKeyRequest {
|
|
133
107
|
/** The table of the records to update */
|
|
134
108
|
table: string;
|
|
@@ -138,15 +112,12 @@ export interface PutKeyRequest {
|
|
|
138
112
|
dB?: string;
|
|
139
113
|
body: PutKeyRequestBodyMap;
|
|
140
114
|
}
|
|
141
|
-
export declare const PutKeyRequest: S.Schema<PutKeyRequest>;
|
|
142
115
|
export interface PutKeyResponse {
|
|
143
116
|
}
|
|
144
|
-
export declare const PutKeyResponse: S.Schema<PutKeyResponse>;
|
|
145
117
|
/** Record content */
|
|
146
118
|
export type PutKeyByIdRequestBodyMap = {
|
|
147
119
|
[key: string]: unknown | undefined;
|
|
148
120
|
};
|
|
149
|
-
export declare const PutKeyByIdRequestBodyMap: S.Schema<PutKeyByIdRequestBodyMap>;
|
|
150
121
|
export interface PutKeyByIdRequest {
|
|
151
122
|
/** The table of the record to update */
|
|
152
123
|
table: string;
|
|
@@ -159,15 +130,12 @@ export interface PutKeyByIdRequest {
|
|
|
159
130
|
dB?: string;
|
|
160
131
|
body: PutKeyByIdRequestBodyMap;
|
|
161
132
|
}
|
|
162
|
-
export declare const PutKeyByIdRequest: S.Schema<PutKeyByIdRequest>;
|
|
163
133
|
export interface PutKeyByIdResponse {
|
|
164
134
|
}
|
|
165
|
-
export declare const PutKeyByIdResponse: S.Schema<PutKeyByIdResponse>;
|
|
166
135
|
/** Record content */
|
|
167
136
|
export type UpdateKeyRequestBodyMap = {
|
|
168
137
|
[key: string]: unknown | undefined;
|
|
169
138
|
};
|
|
170
|
-
export declare const UpdateKeyRequestBodyMap: S.Schema<UpdateKeyRequestBodyMap>;
|
|
171
139
|
export interface UpdateKeyRequest {
|
|
172
140
|
/** The table of the record to create */
|
|
173
141
|
table: string;
|
|
@@ -177,15 +145,12 @@ export interface UpdateKeyRequest {
|
|
|
177
145
|
dB?: string;
|
|
178
146
|
body: UpdateKeyRequestBodyMap;
|
|
179
147
|
}
|
|
180
|
-
export declare const UpdateKeyRequest: S.Schema<UpdateKeyRequest>;
|
|
181
148
|
export interface UpdateKeyResponse {
|
|
182
149
|
}
|
|
183
|
-
export declare const UpdateKeyResponse: S.Schema<UpdateKeyResponse>;
|
|
184
150
|
/** Record content */
|
|
185
151
|
export type UpdateKeyByIdRequestBodyMap = {
|
|
186
152
|
[key: string]: unknown | undefined;
|
|
187
153
|
};
|
|
188
|
-
export declare const UpdateKeyByIdRequestBodyMap: S.Schema<UpdateKeyByIdRequestBodyMap>;
|
|
189
154
|
export interface UpdateKeyByIdRequest {
|
|
190
155
|
/** The table of the record to create */
|
|
191
156
|
table: string;
|
|
@@ -197,15 +162,12 @@ export interface UpdateKeyByIdRequest {
|
|
|
197
162
|
dB?: string;
|
|
198
163
|
body: UpdateKeyByIdRequestBodyMap;
|
|
199
164
|
}
|
|
200
|
-
export declare const UpdateKeyByIdRequest: S.Schema<UpdateKeyByIdRequest>;
|
|
201
165
|
export interface UpdateKeyByIdResponse {
|
|
202
166
|
}
|
|
203
|
-
export declare const UpdateKeyByIdResponse: S.Schema<UpdateKeyByIdResponse>;
|
|
204
167
|
/** Fields to merge into the record */
|
|
205
168
|
export type UpdateKeyByIdRequestBodyMap2 = {
|
|
206
169
|
[key: string]: unknown | undefined;
|
|
207
170
|
};
|
|
208
|
-
export declare const UpdateKeyByIdRequestBodyMap2: S.Schema<UpdateKeyByIdRequestBodyMap2>;
|
|
209
171
|
export interface UpdateKeyByIdRequest2 {
|
|
210
172
|
/** The table of the record to update */
|
|
211
173
|
table: string;
|
|
@@ -217,15 +179,12 @@ export interface UpdateKeyByIdRequest2 {
|
|
|
217
179
|
dB?: string;
|
|
218
180
|
body: UpdateKeyByIdRequestBodyMap2;
|
|
219
181
|
}
|
|
220
|
-
export declare const UpdateKeyByIdRequest2: S.Schema<UpdateKeyByIdRequest2>;
|
|
221
182
|
export interface UpdateKeyById2Response {
|
|
222
183
|
}
|
|
223
|
-
export declare const UpdateKeyById2Response: S.Schema<UpdateKeyById2Response>;
|
|
224
184
|
/** Fields to merge into each record */
|
|
225
185
|
export type UpdateKeyByTableRequestBodyMap = {
|
|
226
186
|
[key: string]: unknown | undefined;
|
|
227
187
|
};
|
|
228
|
-
export declare const UpdateKeyByTableRequestBodyMap: S.Schema<UpdateKeyByTableRequestBodyMap>;
|
|
229
188
|
export interface UpdateKeyByTableRequest {
|
|
230
189
|
/** The table of the records to update */
|
|
231
190
|
table: string;
|
|
@@ -235,10 +194,8 @@ export interface UpdateKeyByTableRequest {
|
|
|
235
194
|
dB?: string;
|
|
236
195
|
body: UpdateKeyByTableRequestBodyMap;
|
|
237
196
|
}
|
|
238
|
-
export declare const UpdateKeyByTableRequest: S.Schema<UpdateKeyByTableRequest>;
|
|
239
197
|
export interface UpdateKeyByTableResponse {
|
|
240
198
|
}
|
|
241
|
-
export declare const UpdateKeyByTableResponse: S.Schema<UpdateKeyByTableResponse>;
|
|
242
199
|
export type CreateSqlError = SurrealdbOpError;
|
|
243
200
|
/** Run SurrealQL queries against SurrealDB The SQL endpoint enables running advanced SurrealQL queries. This HTTP endpoint expects the HTTP body to be one or more SurrealQL statements, separated by a semicolon. */
|
|
244
201
|
export declare const createSql: API.OperationMethod<CreateSqlRequest, CreateSqlResponse, CreateSqlError, SurrealdbOpContext>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"surrealdb.d.ts","sourceRoot":"","sources":["../../src/services/surrealdb.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"surrealdb.d.ts","sourceRoot":"","sources":["../../src/services/surrealdb.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AAKjD,OAAO,EAAqB,KAAK,gBAAgB,EAAE,KAAK,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAMnG,YAAY,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,CAAC;AAErD,MAAM,WAAW,gBAAgB;IAC/B,8CAA8C;IAC9C,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,6CAA6C;IAC7C,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;CACd;AACD,MAAM,WAAW,iBAAiB;CAAG;AACrC,MAAM,WAAW,gBAAgB;IAC/B,yCAAyC;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,8CAA8C;IAC9C,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,6CAA6C;IAC7C,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AACD,MAAM,WAAW,iBAAiB;CAAG;AACrC,MAAM,WAAW,oBAAoB;IACnC,wCAAwC;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,qCAAqC;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,8CAA8C;IAC9C,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,6CAA6C;IAC7C,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AACD,MAAM,WAAW,qBAAqB;CAAG;AACzC,MAAM,WAAW,gBAAgB;IAC/B,8CAA8C;IAC9C,EAAE,CAAC,EAAE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