t3code-cli 0.5.1 → 0.6.0
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/README.md +41 -16
- package/dist/Context-DueQ9iMH.js +4916 -0
- package/dist/Path-D8WPdPwR.js +11406 -0
- package/dist/Schema-DsQxYh6_.js +13581 -0
- package/dist/UrlParams-BA6gBvaY.js +205 -0
- package/dist/application.js +2 -0
- package/dist/auth.js +3 -0
- package/dist/base-dir-R12OMDso.js +20 -0
- package/dist/bin.js +236 -13526
- package/dist/chunk-B5meny8j.js +36 -0
- package/dist/cli.js +2 -0
- package/dist/config.js +4 -0
- package/dist/connection.js +15 -0
- package/dist/contracts.js +1 -0
- package/dist/error-B2t1bAP9.js +169 -0
- package/dist/error-BHRnjLux.js +15 -0
- package/dist/error-jwMt3VoW.js +54 -0
- package/dist/flags-CM7_iGdA.js +13371 -0
- package/dist/index.js +5 -12
- package/dist/layer-CfC5qZol.js +1508 -0
- package/dist/layer-DHhKS5jd.js +13 -0
- package/dist/layer-DIg0RxSO.js +1217 -0
- package/dist/layer-DUv99vsS.js +72 -0
- package/dist/layer-DvHnKBYj.js +29466 -0
- package/dist/layout.js +2 -0
- package/dist/orchestration.js +2 -0
- package/dist/rpc.js +2 -0
- package/dist/runtime.js +3 -0
- package/dist/scope-GycYiJ54.js +29 -0
- package/dist/scope.js +2 -0
- package/dist/service-CLmRO2Dp.js +8 -0
- package/dist/service-ybOWV9pL.js +5 -0
- package/dist/src/application/index.d.ts +3 -0
- package/dist/src/application/layer.d.ts +4 -4
- package/dist/src/application/projects.d.ts +1 -1
- package/dist/src/application/service.d.ts +1 -1
- package/dist/src/application/threads.d.ts +4 -4
- package/dist/src/auth/index.d.ts +10 -0
- package/dist/src/auth/local-base-dir.d.ts +5 -7
- package/dist/src/auth/local-token.d.ts +2 -2
- package/dist/src/auth/type.d.ts +1 -0
- package/dist/src/cli/flags.d.ts +15 -0
- package/dist/src/cli/index.d.ts +1 -0
- package/dist/src/cli/output-format.d.ts +9 -0
- package/dist/src/config/index.d.ts +5 -0
- package/dist/src/config/layer.d.ts +2 -0
- package/dist/src/config/service.d.ts +2 -0
- package/dist/src/connection/index.d.ts +5 -0
- package/dist/src/contracts/index.d.ts +1 -0
- package/dist/src/domain/helpers.d.ts +164 -32
- package/dist/src/index.d.ts +4 -28
- package/dist/src/layout/base-dir.d.ts +12 -0
- package/dist/src/layout/index.d.ts +1 -0
- package/dist/src/orchestration/index.d.ts +2 -0
- package/dist/src/rpc/index.d.ts +1 -0
- package/dist/src/runtime/index.d.ts +2 -0
- package/dist/src/runtime/layer.d.ts +11 -0
- package/dist/src/scope/index.d.ts +1 -0
- package/dist/src/scope/resolve.d.ts +19 -0
- package/dist/src/t3tools/index.d.ts +1 -0
- package/dist/src-KdbHqrex.js +8874 -0
- package/dist/t3tools.js +2 -0
- package/dist/transport-D3zBdZ1h.js +539 -0
- package/dist/url-SlsaG8nY.js +165 -0
- package/package.json +50 -1
- package/src/application/index.ts +3 -0
- package/src/application/service.ts +1 -1
- package/src/application/threads.ts +40 -11
- package/src/auth/index.ts +28 -0
- package/src/auth/layer.ts +13 -6
- package/src/auth/local-base-dir.ts +15 -19
- package/src/auth/local-origin.ts +4 -1
- package/src/auth/local-token.ts +4 -1
- package/src/auth/type.ts +1 -0
- package/src/bin.ts +1 -1
- package/src/cli/app.ts +6 -6
- package/src/cli/auth-format.ts +2 -0
- package/src/cli/auth.ts +19 -9
- package/src/cli/error.ts +7 -0
- package/src/cli/flags.ts +51 -0
- package/src/cli/index.ts +10 -0
- package/src/cli/{models.ts → model.ts} +5 -4
- package/src/cli/{projects.ts → project.ts} +8 -7
- package/src/cli/require.ts +31 -0
- package/src/cli/{threads.ts → thread.ts} +2 -2
- package/src/cli/threads/archive.ts +24 -8
- package/src/cli/threads/list.ts +12 -5
- package/src/cli/threads/messages.ts +20 -5
- package/src/cli/threads/send.ts +27 -23
- package/src/cli/threads/start.ts +22 -21
- package/src/cli/threads/wait.ts +22 -12
- package/src/config/index.ts +5 -0
- package/src/config/layer.ts +2 -0
- package/src/config/service.ts +2 -0
- package/src/connection/index.ts +9 -0
- package/src/contracts/index.ts +8 -0
- package/src/domain/helpers.ts +136 -16
- package/src/index.ts +4 -87
- package/src/layout/base-dir.ts +35 -0
- package/src/layout/index.ts +1 -0
- package/src/orchestration/index.ts +7 -0
- package/src/rpc/index.ts +1 -0
- package/src/runtime/index.ts +12 -0
- package/src/{runtime.ts → runtime/layer.ts} +15 -15
- package/src/scope/index.ts +6 -0
- package/src/scope/resolve.ts +62 -0
- package/src/t3tools/index.ts +1 -0
- package/dist/runtime-KQVRmRk-.js +0 -71499
- package/dist/src/connection.d.ts +0 -5
- package/dist/src/runtime.d.ts +0 -10
- package/src/connection.ts +0 -9
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { createRequire } from "node:module";
|
|
2
|
+
//#region \0rolldown/runtime.js
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
10
|
+
var __exportAll = (all, no_symbols) => {
|
|
11
|
+
let target = {};
|
|
12
|
+
for (var name in all) __defProp(target, name, {
|
|
13
|
+
get: all[name],
|
|
14
|
+
enumerable: true
|
|
15
|
+
});
|
|
16
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
17
|
+
return target;
|
|
18
|
+
};
|
|
19
|
+
var __copyProps = (to, from, except, desc) => {
|
|
20
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
21
|
+
key = keys[i];
|
|
22
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
23
|
+
get: ((k) => from[k]).bind(null, key),
|
|
24
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
return to;
|
|
28
|
+
};
|
|
29
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
30
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
31
|
+
value: mod,
|
|
32
|
+
enumerable: true
|
|
33
|
+
}) : target, mod));
|
|
34
|
+
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
35
|
+
//#endregion
|
|
36
|
+
export { __toESM as a, __require as i, __exportAll as n, __reExport as r, __commonJSMin as t };
|
package/dist/cli.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as threadFlag, c as worktreeFlag, i as projectPathFlag, n as modelFlags, o as threadFormatFlag, r as projectFlag, s as waitFormatFlag, t as formatFlag } from "./flags-CM7_iGdA.js";
|
|
2
|
+
export { formatFlag, modelFlags, projectFlag, projectPathFlag, threadFlag, threadFormatFlag, waitFormatFlag, worktreeFlag };
|
package/dist/config.js
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { n as T3Config } from "./service-CLmRO2Dp.js";
|
|
2
|
+
import { n as UrlError, t as ConfigError } from "./error-BHRnjLux.js";
|
|
3
|
+
import { n as makeT3Config, t as T3ConfigLive } from "./layer-DUv99vsS.js";
|
|
4
|
+
export { ConfigError, T3Config, T3ConfigLive, UrlError, makeT3Config };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Mn as mergeAll, Nn as provide } from "./Path-D8WPdPwR.js";
|
|
2
|
+
import { n as T3AuthTransportLive } from "./transport-D3zBdZ1h.js";
|
|
3
|
+
import { a as makeT3CodeConnectionProvider, i as T3CodeConnectionProviderLive, o as layerWebSocketConstructor, r as T3CodeConnectionProvider, s as layerUndici, t as T3RpcLive } from "./layer-DvHnKBYj.js";
|
|
4
|
+
import { n as T3CodeConnectionError } from "./error-B2t1bAP9.js";
|
|
5
|
+
//#region src/connection/layer.ts
|
|
6
|
+
function makeT3CodeRpcLayer() {
|
|
7
|
+
return T3RpcLive.pipe(provide(T3AuthTransportLive));
|
|
8
|
+
}
|
|
9
|
+
const T3CodeRpcLayer = makeT3CodeRpcLayer();
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region src/connection/node.ts
|
|
12
|
+
const NodeConnectionPlatformLayer = mergeAll(layerUndici, layerWebSocketConstructor);
|
|
13
|
+
const T3CodeNodeRpcLayer = T3CodeRpcLayer.pipe(provide(NodeConnectionPlatformLayer));
|
|
14
|
+
//#endregion
|
|
15
|
+
export { T3CodeConnectionError, T3CodeConnectionProvider, T3CodeConnectionProviderLive, T3CodeNodeRpcLayer, T3CodeRpcLayer, makeT3CodeConnectionProvider, makeT3CodeRpcLayer };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import { $ as optional, E as Unknown, R as instanceOf, T as Union, a as Defect, et as optionalKey, nt as tag, s as ErrorClass, st as SchemaError, x as TaggedErrorClass, y as String } from "./Schema-DsQxYh6_.js";
|
|
2
|
+
import { Dl as HttpClientErrorSchema, Mu as EnvironmentAuthorizationError, Oi as KeybindingsConfigError, fs as OrchestrationDispatchCommandError, si as ServerSettingsError, sl as SocketErrorReason, ys as OrchestrationGetSnapshotError } from "./src-KdbHqrex.js";
|
|
3
|
+
import { n as UrlError } from "./error-BHRnjLux.js";
|
|
4
|
+
import { s as AuthTransportError } from "./error-jwMt3VoW.js";
|
|
5
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.78/node_modules/effect/dist/unstable/workers/WorkerError.js
|
|
6
|
+
const TypeId$1 = "~effect/workers/WorkerError";
|
|
7
|
+
/**
|
|
8
|
+
* Worker error reason for failures while spawning or setting up a worker.
|
|
9
|
+
*
|
|
10
|
+
* @category models
|
|
11
|
+
* @since 4.0.0
|
|
12
|
+
*/
|
|
13
|
+
var WorkerSpawnError = class extends ErrorClass("effect/workers/WorkerError/WorkerSpawnError")({
|
|
14
|
+
_tag: /*#__PURE__*/ tag("WorkerSpawnError"),
|
|
15
|
+
message: String,
|
|
16
|
+
cause: /*#__PURE__*/ optional(/*#__PURE__*/ Defect())
|
|
17
|
+
}) {};
|
|
18
|
+
/**
|
|
19
|
+
* Worker error reason for failures while sending a message to a worker.
|
|
20
|
+
*
|
|
21
|
+
* @category models
|
|
22
|
+
* @since 4.0.0
|
|
23
|
+
*/
|
|
24
|
+
var WorkerSendError = class extends ErrorClass("effect/workers/WorkerError/WorkerSendError")({
|
|
25
|
+
_tag: /*#__PURE__*/ tag("WorkerSendError"),
|
|
26
|
+
message: String,
|
|
27
|
+
cause: /*#__PURE__*/ optional(/*#__PURE__*/ Defect())
|
|
28
|
+
}) {};
|
|
29
|
+
/**
|
|
30
|
+
* Worker error reason for failures while receiving or handling a message from a
|
|
31
|
+
* worker.
|
|
32
|
+
*
|
|
33
|
+
* @category models
|
|
34
|
+
* @since 4.0.0
|
|
35
|
+
*/
|
|
36
|
+
var WorkerReceiveError = class extends ErrorClass("effect/workers/WorkerError/WorkerReceiveError")({
|
|
37
|
+
_tag: /*#__PURE__*/ tag("WorkerReceiveError"),
|
|
38
|
+
message: String,
|
|
39
|
+
cause: /*#__PURE__*/ optional(/*#__PURE__*/ Defect())
|
|
40
|
+
}) {};
|
|
41
|
+
/**
|
|
42
|
+
* Worker error reason for an unclassified worker failure.
|
|
43
|
+
*
|
|
44
|
+
* @category models
|
|
45
|
+
* @since 4.0.0
|
|
46
|
+
*/
|
|
47
|
+
var WorkerUnknownError = class extends ErrorClass("effect/workers/WorkerError/WorkerUnknownError")({
|
|
48
|
+
_tag: /*#__PURE__*/ tag("WorkerUnknownError"),
|
|
49
|
+
message: String,
|
|
50
|
+
cause: /*#__PURE__*/ optional(/*#__PURE__*/ Defect())
|
|
51
|
+
}) {};
|
|
52
|
+
/**
|
|
53
|
+
* Schema for decoding and encoding all supported worker error reason variants.
|
|
54
|
+
*
|
|
55
|
+
* @category models
|
|
56
|
+
* @since 4.0.0
|
|
57
|
+
*/
|
|
58
|
+
const WorkerErrorReason = /*#__PURE__*/ Union([
|
|
59
|
+
WorkerSpawnError,
|
|
60
|
+
WorkerSendError,
|
|
61
|
+
WorkerReceiveError,
|
|
62
|
+
WorkerUnknownError
|
|
63
|
+
]);
|
|
64
|
+
ErrorClass(TypeId$1)({
|
|
65
|
+
_tag: /*#__PURE__*/ tag("WorkerError"),
|
|
66
|
+
reason: WorkerErrorReason
|
|
67
|
+
});
|
|
68
|
+
//#endregion
|
|
69
|
+
//#region node_modules/.pnpm/effect@4.0.0-beta.78/node_modules/effect/dist/unstable/rpc/RpcClientError.js
|
|
70
|
+
/**
|
|
71
|
+
* Client-side protocol failures reported by unstable RPC transports.
|
|
72
|
+
*
|
|
73
|
+
* `RpcClientError` is the error type generated clients use when a call fails
|
|
74
|
+
* before a remote handler can return its declared typed error. Its `reason`
|
|
75
|
+
* covers built-in transport failures from HTTP, sockets, and workers, plus
|
|
76
|
+
* `RpcClientDefect` values for malformed or incompatible protocol data.
|
|
77
|
+
*
|
|
78
|
+
* **Mental model**
|
|
79
|
+
*
|
|
80
|
+
* Handler errors belong to the RPC's declared error schema and are decoded from
|
|
81
|
+
* the response exit. Client errors describe the client or transport boundary:
|
|
82
|
+
* unavailable transport, aborted connections, unreadable response bodies,
|
|
83
|
+
* failed response decoding, or protocol shapes that do not match the RPC group
|
|
84
|
+
* the client was built for. Treat them as infrastructure or compatibility
|
|
85
|
+
* failures rather than business-domain failures.
|
|
86
|
+
*
|
|
87
|
+
* **Common tasks**
|
|
88
|
+
*
|
|
89
|
+
* Inspect `error.reason._tag` to decide whether to retry, reconnect, report a
|
|
90
|
+
* transport issue, or surface a schema or codec mismatch. Custom protocols can
|
|
91
|
+
* use `RpcClientDefect` to put invalid client-side protocol state in the same
|
|
92
|
+
* public error channel used by the built-in transports.
|
|
93
|
+
*
|
|
94
|
+
* **Gotchas**
|
|
95
|
+
*
|
|
96
|
+
* Server defects are sent through protocol messages and normally fail the call
|
|
97
|
+
* as defects rather than as declared RPC errors. Serialization and schema
|
|
98
|
+
* decode failures can appear as client defects because the client cannot safely
|
|
99
|
+
* produce the typed success or error value promised by the RPC definition.
|
|
100
|
+
*
|
|
101
|
+
* @since 4.0.0
|
|
102
|
+
*/
|
|
103
|
+
const TypeId = "~effect/rpc/RpcClientError";
|
|
104
|
+
/**
|
|
105
|
+
* Represents a client-side RPC defect, such as a protocol violation or
|
|
106
|
+
* decoding failure, with a message and original cause.
|
|
107
|
+
*
|
|
108
|
+
* @category errors
|
|
109
|
+
* @since 4.0.0
|
|
110
|
+
*/
|
|
111
|
+
var RpcClientDefect = class extends ErrorClass("effect/rpc/RpcClientError/RpcClientDefect")({
|
|
112
|
+
_tag: /*#__PURE__*/ tag("RpcClientDefect"),
|
|
113
|
+
message: String,
|
|
114
|
+
cause: /*#__PURE__*/ Defect()
|
|
115
|
+
}) {};
|
|
116
|
+
/**
|
|
117
|
+
* Error wrapper for RPC client failures, including worker, socket, HTTP client,
|
|
118
|
+
* and client protocol defect failures.
|
|
119
|
+
*
|
|
120
|
+
* @category errors
|
|
121
|
+
* @since 4.0.0
|
|
122
|
+
*/
|
|
123
|
+
var RpcClientError = class extends ErrorClass(TypeId)({
|
|
124
|
+
_tag: /*#__PURE__*/ tag("RpcClientError"),
|
|
125
|
+
reason: /*#__PURE__*/ Union([
|
|
126
|
+
WorkerErrorReason,
|
|
127
|
+
SocketErrorReason,
|
|
128
|
+
HttpClientErrorSchema,
|
|
129
|
+
RpcClientDefect
|
|
130
|
+
])
|
|
131
|
+
}) {
|
|
132
|
+
/**
|
|
133
|
+
* Marks this value as an RPC client error for runtime guards.
|
|
134
|
+
*
|
|
135
|
+
* @since 4.0.0
|
|
136
|
+
*/
|
|
137
|
+
[TypeId] = TypeId;
|
|
138
|
+
get message() {
|
|
139
|
+
return `${this.reason._tag}: ${this.reason.message}`;
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
//#endregion
|
|
143
|
+
//#region src/connection/error.ts
|
|
144
|
+
var T3CodeConnectionError = class extends TaggedErrorClass()("T3CodeConnectionError", {
|
|
145
|
+
message: String,
|
|
146
|
+
cause: optionalKey(Unknown)
|
|
147
|
+
}) {};
|
|
148
|
+
//#endregion
|
|
149
|
+
//#region src/rpc/error.ts
|
|
150
|
+
const RpcErrorCauseSchema = Union([
|
|
151
|
+
RpcClientError,
|
|
152
|
+
EnvironmentAuthorizationError,
|
|
153
|
+
KeybindingsConfigError,
|
|
154
|
+
OrchestrationDispatchCommandError,
|
|
155
|
+
OrchestrationGetSnapshotError,
|
|
156
|
+
ServerSettingsError,
|
|
157
|
+
AuthTransportError,
|
|
158
|
+
T3CodeConnectionError,
|
|
159
|
+
HttpClientErrorSchema,
|
|
160
|
+
UrlError,
|
|
161
|
+
instanceOf(SchemaError)
|
|
162
|
+
]);
|
|
163
|
+
var RpcError = class extends TaggedErrorClass()("RpcError", {
|
|
164
|
+
message: String,
|
|
165
|
+
method: optionalKey(String),
|
|
166
|
+
cause: optionalKey(RpcErrorCauseSchema)
|
|
167
|
+
}) {};
|
|
168
|
+
//#endregion
|
|
169
|
+
export { RpcClientError as i, T3CodeConnectionError as n, RpcClientDefect as r, RpcError as t };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { cn as IllegalArgumentError, i as PlatformError } from "./Path-D8WPdPwR.js";
|
|
2
|
+
import { R as instanceOf, T as Union, et as optionalKey, st as SchemaError, x as TaggedErrorClass, y as String } from "./Schema-DsQxYh6_.js";
|
|
3
|
+
//#region src/config/error.ts
|
|
4
|
+
const ConfigErrorCauseSchema = Union([instanceOf(PlatformError), instanceOf(SchemaError)]);
|
|
5
|
+
var UrlError = class extends TaggedErrorClass()("UrlError", {
|
|
6
|
+
message: String,
|
|
7
|
+
protocol: optionalKey(String),
|
|
8
|
+
cause: optionalKey(instanceOf(IllegalArgumentError))
|
|
9
|
+
}) {};
|
|
10
|
+
var ConfigError = class extends TaggedErrorClass()("ConfigError", {
|
|
11
|
+
message: String,
|
|
12
|
+
cause: optionalKey(ConfigErrorCauseSchema)
|
|
13
|
+
}) {};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { UrlError as n, ConfigError as t };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { cn as IllegalArgumentError, i as PlatformError } from "./Path-D8WPdPwR.js";
|
|
2
|
+
import { R as instanceOf, T as Union, d as Literals, et as optionalKey, st as SchemaError, x as TaggedErrorClass, y as String } from "./Schema-DsQxYh6_.js";
|
|
3
|
+
import { Dl as HttpClientErrorSchema } from "./src-KdbHqrex.js";
|
|
4
|
+
import { n as UrlError, t as ConfigError } from "./error-BHRnjLux.js";
|
|
5
|
+
//#region src/auth/error.ts
|
|
6
|
+
var AuthPairingUrlError = class extends TaggedErrorClass()("AuthPairingUrlError", {
|
|
7
|
+
message: String,
|
|
8
|
+
cause: optionalKey(instanceOf(IllegalArgumentError))
|
|
9
|
+
}) {};
|
|
10
|
+
var AuthConfigError = class extends TaggedErrorClass()("AuthConfigError", {
|
|
11
|
+
message: String,
|
|
12
|
+
cause: optionalKey(Union([ConfigError, UrlError]))
|
|
13
|
+
}) {};
|
|
14
|
+
var AuthTransportError = class extends TaggedErrorClass()("AuthTransportError", {
|
|
15
|
+
message: String,
|
|
16
|
+
cause: optionalKey(Union([
|
|
17
|
+
HttpClientErrorSchema,
|
|
18
|
+
instanceOf(SchemaError),
|
|
19
|
+
UrlError
|
|
20
|
+
]))
|
|
21
|
+
}) {};
|
|
22
|
+
const AuthLocalErrorCauseSchema = Union([
|
|
23
|
+
instanceOf(PlatformError),
|
|
24
|
+
instanceOf(SchemaError),
|
|
25
|
+
UrlError
|
|
26
|
+
]);
|
|
27
|
+
var AuthLocalSecretError = class extends TaggedErrorClass()("AuthLocalSecretError", {
|
|
28
|
+
message: String,
|
|
29
|
+
cause: optionalKey(instanceOf(PlatformError))
|
|
30
|
+
}) {};
|
|
31
|
+
var AuthLocalDatabaseError = class extends TaggedErrorClass()("AuthLocalDatabaseError", {
|
|
32
|
+
operation: Literals([
|
|
33
|
+
"connect",
|
|
34
|
+
"query",
|
|
35
|
+
"schema"
|
|
36
|
+
]),
|
|
37
|
+
message: String
|
|
38
|
+
}) {};
|
|
39
|
+
var AuthLocalSigningError = class extends TaggedErrorClass()("AuthLocalSigningError", {
|
|
40
|
+
operation: Literals(["sign"]),
|
|
41
|
+
message: String,
|
|
42
|
+
cause: optionalKey(instanceOf(PlatformError))
|
|
43
|
+
}) {};
|
|
44
|
+
var AuthLocalError = class extends TaggedErrorClass()("AuthLocalError", {
|
|
45
|
+
message: String,
|
|
46
|
+
cause: optionalKey(Union([
|
|
47
|
+
AuthLocalErrorCauseSchema,
|
|
48
|
+
AuthLocalSecretError,
|
|
49
|
+
AuthLocalDatabaseError,
|
|
50
|
+
AuthLocalSigningError
|
|
51
|
+
]))
|
|
52
|
+
}) {};
|
|
53
|
+
//#endregion
|
|
54
|
+
export { AuthLocalSigningError as a, AuthLocalSecretError as i, AuthLocalDatabaseError as n, AuthPairingUrlError as o, AuthLocalError as r, AuthTransportError as s, AuthConfigError as t };
|