@voltro/protocol 0.87.0 → 0.88.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/CHANGELOG.md +169 -6
- package/THIRD-PARTY-NOTICES.md +3 -1346
- package/dist/apiRoleEndpoints.js +1 -2
- package/dist/apiRoleObservation.js +1 -2
- package/dist/apikey.js +1 -2
- package/dist/approval.js +1 -2
- package/dist/approvalDescriptors.js +1 -2
- package/dist/auth.js +1 -2
- package/dist/boundedRing.js +1 -2
- package/dist/businessRule.js +1 -2
- package/dist/canonicalJson.js +1 -2
- package/dist/connection.js +1 -2
- package/dist/devActivity.js +1 -2
- package/dist/errorSchema.js +1 -2
- package/dist/errorValue.js +1 -2
- package/dist/event.js +1 -2
- package/dist/formCapture.js +1 -2
- package/dist/httpStreamMaxDuration.js +1 -2
- package/dist/idempotency.js +1 -2
- package/dist/idempotencyInput.js +1 -2
- package/dist/identity.js +1 -2
- package/dist/index.js +1 -2
- package/dist/inspect.js +1 -2
- package/dist/inspectBackfill.js +1 -2
- package/dist/inspectCommandRejection.js +1 -2
- package/dist/inspectProjection.js +1 -2
- package/dist/inspectStorageProjection.js +1 -2
- package/dist/inspectValueIdentity.js +1 -2
- package/dist/inspectWorkflowExecution.js +1 -2
- package/dist/inspectWorkflowQueuedStart.js +1 -2
- package/dist/jsonSchema.js +1 -2
- package/dist/jwt.js +1 -2
- package/dist/outbox.js +1 -2
- package/dist/pairing.js +1 -2
- package/dist/plugin.js +1 -2
- package/dist/pluginAccountMerge.js +2 -3
- package/dist/pluginNaming.js +1 -2
- package/dist/pluginPrivacy.js +1 -2
- package/dist/procedure.js +1 -2
- package/dist/publicApi.js +1 -2
- package/dist/queryOptionalSources.js +1 -2
- package/dist/reactivityChannel.js +1 -2
- package/dist/rest.js +1 -2
- package/dist/restFormat.js +1 -2
- package/dist/restReceipt.js +1 -2
- package/dist/revalidate.js +1 -2
- package/dist/rowEquality.js +1 -2
- package/dist/rowPatch.js +1 -2
- package/dist/schemaShape.js +1 -2
- package/dist/scopes.js +1 -2
- package/dist/secretWindows.js +1 -2
- package/dist/serverErrorBus.js +1 -2
- package/dist/serviceCall.js +1 -2
- package/dist/session.js +1 -2
- package/dist/sessionHeader.js +1 -2
- package/dist/ssrfPolicy.js +1 -2
- package/dist/storageAccess.js +1 -2
- package/dist/storeErrors.js +1 -2
- package/dist/storeScreenshots.js +1 -2
- package/dist/strictInput.js +1 -2
- package/dist/subscriptionEvent.js +1 -2
- package/dist/tenantSelection.js +1 -2
- package/dist/time.js +1 -2
- package/dist/undo.js +1 -2
- package/dist/validation.js +1 -2
- package/dist/webSocketGateway.js +1 -2
- package/dist/workflow.js +1 -2
- package/dist/workflowAccess.js +1 -2
- package/dist/workflowRestart.js +1 -2
- package/dist/workflowRetry.js +1 -2
- package/dist/workflowStartOutcome.js +1 -2
- package/package.json +7 -7
package/dist/apiRoleEndpoints.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/apiRoleEndpoints.ts
|
|
2
2
|
var e = (e, t) => {
|
|
3
3
|
if (!e || typeof e != "object" || Array.isArray(e) || ![Object.prototype, null].includes(Object.getPrototypeOf(e))) throw Error("Invalid role endpoint object");
|
|
4
4
|
let n = Object.create(null);
|
|
@@ -104,5 +104,4 @@ var e = (e, t) => {
|
|
|
104
104
|
if (!i || i !== "/_voltro/roles/" + t.role + (n === "http" ? "/rpc" : "/ws")) throw Error("Missing or noncanonical role transport");
|
|
105
105
|
return r.protocol = n === "http" ? r.protocol === "https:" || r.protocol === "wss:" ? "https:" : "http:" : r.protocol === "https:" || r.protocol === "wss:" ? "wss:" : "ws:", r.pathname = (/^\/_voltro\/role-api\/api-[A-Za-z0-9_][A-Za-z0-9_.-]{0,127}\/ws$/.test(r.pathname) ? r.pathname.slice(0, -3) : "") + i, r.search = "", r.hash = "", r.toString();
|
|
106
106
|
};
|
|
107
|
-
//#endregion
|
|
108
107
|
export { c as apiRoleEndpointUrl, s as apiRoleProxyBasePath, a as captureApiRoleEndpoints, o as selectApiRoleEndpoint };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { API_WORKLOADS as e } from "./plugin.js";
|
|
2
2
|
import { Schema as t } from "effect";
|
|
3
|
-
|
|
3
|
+
// src/apiRoleObservation.ts
|
|
4
4
|
var n = t.Literals(e), r = t.Number.pipe(t.check(t.isFinite()), t.check(t.isGreaterThanOrEqualTo(0))), i = r.pipe(t.check(t.isInt())), a = i.pipe(t.check(t.isLessThanOrEqualTo(864e13))), o = t.Struct({
|
|
5
5
|
workload: n,
|
|
6
6
|
seconds: r
|
|
@@ -64,5 +64,4 @@ var n = t.Literals(e), r = t.Number.pipe(t.check(t.isFinite()), t.check(t.isGrea
|
|
|
64
64
|
let a = r.totals.filter((e) => e.share > .3).map((e) => e.workload), o = a.length >= 2 ? a : [];
|
|
65
65
|
return o.length === r.splitCandidates.length && o.every((e) => r.splitCandidates.includes(e));
|
|
66
66
|
}, { message: "Inconsistent API role observation" })));
|
|
67
|
-
//#endregion
|
|
68
67
|
export { s as ApiRoleObservationSchema };
|
package/dist/apikey.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createHash as e } from "node:crypto";
|
|
2
|
-
|
|
2
|
+
// src/apiKeyStrategy.ts
|
|
3
3
|
var t = (t) => e("sha256").update(t, "utf8").digest("hex"), n = (e) => {
|
|
4
4
|
let t = {};
|
|
5
5
|
for (let [n, r] of Object.entries(e)) r !== void 0 && (t[n] = r);
|
|
@@ -38,5 +38,4 @@ var t = (t) => e("sha256").update(t, "utf8").digest("hex"), n = (e) => {
|
|
|
38
38
|
}
|
|
39
39
|
};
|
|
40
40
|
};
|
|
41
|
-
//#endregion
|
|
42
41
|
export { r as apiKeyStrategy };
|
package/dist/approval.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema as e } from "effect";
|
|
2
|
-
|
|
2
|
+
// src/approval.ts
|
|
3
3
|
var t = class extends e.TaggedError()("ApprovalRequired", {
|
|
4
4
|
approvalId: e.String,
|
|
5
5
|
procedure: e.String,
|
|
@@ -60,5 +60,4 @@ var t = class extends e.TaggedError()("ApprovalRequired", {
|
|
|
60
60
|
note: e.NullOr(e.String),
|
|
61
61
|
relation: e.Literals(["to-decide", "requested"])
|
|
62
62
|
});
|
|
63
|
-
//#endregion
|
|
64
63
|
export { u as ApprovalDecisionErrors, l as ApprovalErrors, a as ApprovalExpired, s as ApprovalForbidden, n as ApprovalNotFound, o as ApprovalNotPending, i as ApprovalRejected, t as ApprovalRequired, r as ApprovalSelfApproval, c as ApprovalUnavailable, d as PendingApproval };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ApprovalDecisionErrors as e, PendingApproval as t } from "./approval.js";
|
|
2
2
|
import { defineMutation as n, defineQuery as r } from "./procedure.js";
|
|
3
3
|
import { Schema as i } from "effect";
|
|
4
|
-
|
|
4
|
+
// src/approvalDescriptors.ts
|
|
5
5
|
var a = "__voltro.approvals.pending", o = "__voltro.approvals.decide", s = r({
|
|
6
6
|
name: a,
|
|
7
7
|
source: "_voltro_approvals",
|
|
@@ -22,5 +22,4 @@ var a = "__voltro.approvals.pending", o = "__voltro.approvals.decide", s = r({
|
|
|
22
22
|
error: e,
|
|
23
23
|
openAccess: "the approver authority is the PENDING ROW's own recorded scopes (plus an unconditional self-approval refusal), checked in-handler — a descriptor-level scope would have to be the union of every approval-requiring procedure in the app"
|
|
24
24
|
});
|
|
25
|
-
//#endregion
|
|
26
25
|
export { o as APPROVALS_DECIDE_TAG, a as APPROVALS_PENDING_TAG, c as approvalsDecideDescriptor, s as approvalsPendingQueryDescriptor };
|
package/dist/auth.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RequestedTenantRefused as e, TenantSelectionRefused as t, isTenantSelectable as n, selectSubjectTenant as r } from "./tenantSelection.js";
|
|
2
2
|
import { Context as i, Schema as a, Struct as o } from "effect";
|
|
3
3
|
import { RpcMiddleware as s } from "effect/rpc";
|
|
4
|
-
|
|
4
|
+
// src/auth.ts
|
|
5
5
|
var c = a.Record(a.String, a.Unknown), l = a.optional(a.Array(a.String)), u = a.Struct({
|
|
6
6
|
type: a.Literal("user"),
|
|
7
7
|
kind: a.optional(a.Literal("guest")),
|
|
@@ -385,5 +385,4 @@ var c = a.Record(a.String, a.Unknown), l = a.optional(a.Array(a.String)), u = a.
|
|
|
385
385
|
}, te = (e, t) => {
|
|
386
386
|
if (e.type === "anonymous") throw new M(t === void 0 ? {} : { reason: t });
|
|
387
387
|
};
|
|
388
|
-
//#endregion
|
|
389
388
|
export { N as AuthMiddleware, j as ConnectionInfo, P as ConnectionInfoMiddleware, W as DEFAULT_SCOPE_CACHE_MAX_ENTRIES, U as DEFAULT_SCOPE_CACHE_TTL_MS, O as IMPERSONATION_METADATA_KEY, g as Subject, _ as SubjectIdentity, A as SubjectService, M as Unauthenticated, b as anonymousSubject, V as applyScopeDecision, te as assertAuthenticated, I as bindSubjectAuthority, ee as composeAuthStrategies, L as currentSubjectAuthority, z as hasCallbackRoutes, w as isMachineSubject, C as isServiceSubject, D as isSystemSubject, q as makeScopeCache, Q as orderByBearerPrefix, k as rawImpersonationMark, R as reauthorizeSubject, H as resolveIdentityAuthority, G as scopeCacheKey, S as serviceSubject, T as subjectAuditActorId, v as subjectIdentity, x as systemSubject, E as tenantScopedSubject };
|
package/dist/boundedRing.js
CHANGED
package/dist/businessRule.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema as e } from "effect";
|
|
2
|
-
|
|
2
|
+
// src/businessRule.ts
|
|
3
3
|
var t = class extends e.TaggedError()("BusinessRuleViolation", {
|
|
4
4
|
rule: e.String,
|
|
5
5
|
params: e.optional(e.Record(e.String, e.Unknown)),
|
|
@@ -7,5 +7,4 @@ var t = class extends e.TaggedError()("BusinessRuleViolation", {
|
|
|
7
7
|
message: e.optional(e.String),
|
|
8
8
|
severity: e.Literals(["error", "warning"])
|
|
9
9
|
}) {};
|
|
10
|
-
//#endregion
|
|
11
10
|
export { t as BusinessRuleViolation };
|
package/dist/canonicalJson.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/canonicalJson.ts
|
|
2
2
|
var e = (e) => {
|
|
3
3
|
let t = (e) => {
|
|
4
4
|
if (Array.isArray(e)) return e.map(t);
|
|
@@ -10,5 +10,4 @@ var e = (e) => {
|
|
|
10
10
|
};
|
|
11
11
|
return JSON.stringify(t(e) ?? null);
|
|
12
12
|
};
|
|
13
|
-
//#endregion
|
|
14
13
|
export { e as canonicalJson };
|
package/dist/connection.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineAction as e, defineMutation as t, defineQuery as n } from "./procedure.js";
|
|
2
2
|
import { Schema as r } from "effect";
|
|
3
|
-
|
|
3
|
+
// src/connection.ts
|
|
4
4
|
var i = "__voltro.connections.list", a = "__voltro.connections.start", o = "__voltro.connections.submitToken", s = "__voltro.connections.disconnect", c = r.Literals(["oauth2", "pat"]), l = r.Literals([
|
|
5
5
|
"disconnected",
|
|
6
6
|
"connected",
|
|
@@ -69,5 +69,4 @@ var i = "__voltro.connections.list", a = "__voltro.connections.start", o = "__vo
|
|
|
69
69
|
error: h,
|
|
70
70
|
openAccess: "self-service: deletes only the calling subject's own credential row for this connection"
|
|
71
71
|
});
|
|
72
|
-
//#endregion
|
|
73
72
|
export { i as CONNECTIONS_LIST_TAG, s as CONNECTION_DISCONNECT_TAG, a as CONNECTION_START_TAG, o as CONNECTION_SUBMIT_TOKEN_TAG, m as ConnectionHandshakeFailed, c as ConnectionKind, p as ConnectionKindMismatch, d as ConnectionNotDeclared, u as ConnectionState, l as ConnectionStatus, f as ConnectionSubjectRequired, y as connectionDisconnectDescriptor, _ as connectionStartDescriptor, v as connectionSubmitTokenDescriptor, g as connectionsListQueryDescriptor };
|
package/dist/devActivity.js
CHANGED
package/dist/errorSchema.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Schema as e } from "effect";
|
|
2
2
|
import * as t from "effect/SchemaAST";
|
|
3
|
-
|
|
3
|
+
// src/errorSchema.ts
|
|
4
4
|
var n = (e) => {
|
|
5
5
|
let n = /* @__PURE__ */ new Set();
|
|
6
6
|
if (e === void 0) return n;
|
|
@@ -20,5 +20,4 @@ var n = (e) => {
|
|
|
20
20
|
if (n(r).has(i)) return r;
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
|
-
//#endregion
|
|
24
23
|
export { n as declaredErrorTags, r as errorMemberSchema };
|
package/dist/errorValue.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/errorValue.ts
|
|
2
2
|
var e = (e) => {
|
|
3
3
|
if (typeof e != "object" || !e) return;
|
|
4
4
|
let t = e._tag;
|
|
@@ -17,5 +17,4 @@ var e = (e) => {
|
|
|
17
17
|
let r = Error(t(n), { cause: n });
|
|
18
18
|
return r.name = e(n) ?? "NonErrorThrown", r;
|
|
19
19
|
};
|
|
20
|
-
//#endregion
|
|
21
20
|
export { t as errorMessage, e as errorTag, n as reportableError };
|
package/dist/event.js
CHANGED
|
@@ -5,7 +5,7 @@ import { strictInput as s } from "./strictInput.js";
|
|
|
5
5
|
import { hasEnforcedGuard as c } from "./procedure.js";
|
|
6
6
|
import { Context as l, Schema as u } from "effect";
|
|
7
7
|
import { Rpc as d } from "effect/rpc";
|
|
8
|
-
|
|
8
|
+
// src/event.ts
|
|
9
9
|
var f = 7500, p = (e) => typeof e == "object" && !!e && e.kind === "event", m = (e) => {
|
|
10
10
|
if (e.clientPolicy !== void 0) {
|
|
11
11
|
if (!/^[A-Za-z][A-Za-z0-9_.:-]{0,255}$/.test(e.clientPolicy)) throw Error("defineEvent: invalid client policy ID");
|
|
@@ -106,5 +106,4 @@ var f = 7500, p = (e) => typeof e == "object" && !!e && e.kind === "event", m =
|
|
|
106
106
|
key: r
|
|
107
107
|
};
|
|
108
108
|
}, A = (e) => e.split("\0").join(" · ");
|
|
109
|
-
//#endregion
|
|
110
109
|
export { D as EVENT_ROUTE_SEP, w as EventKeyInvalid, C as EventPayloadInvalid, T as EventPayloadTooLarge, x as EventRpcWorkload, f as MAX_EVENT_ENVELOPE_BYTES, m as defineEvent, E as encodeEventKey, _ as eventAttached, h as eventEnvelope, g as eventGap, y as eventResumePoint, O as eventRoute, v as eventStreamEvent, b as eventSubscribeInput, S as eventToRpc, A as formatEventRoute, p as isEventDescriptor, k as parseEventRoute };
|
package/dist/formCapture.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/formCapture.ts
|
|
2
2
|
var e = "__voltro_capture", t = "voltro:form-source", n = (e) => typeof e == "string" && e.length === 261 && /^1(?:\.[a-f0-9]{64}){4}$/.test(e) ? e : void 0, r = (e, t) => {
|
|
3
3
|
let r = n(e + "." + t);
|
|
4
4
|
if (r === void 0) throw Error("Native form source unavailable");
|
|
@@ -8,5 +8,4 @@ var e = "__voltro_capture", t = "voltro:form-source", n = (e) => typeof e == "st
|
|
|
8
8
|
let r = e.querySelectorAll(`meta[name="${t}"]`);
|
|
9
9
|
return r.length === 1 ? n(r[0].getAttribute("content")) : void 0;
|
|
10
10
|
};
|
|
11
|
-
//#endregion
|
|
12
11
|
export { e as FORM_CAPTURE_FIELD, t as FORM_CAPTURE_META_NAME, r as encodeNativeFormCapture, n as formCaptureSource, i as readFormCaptureSource };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
// src/httpStreamMaxDuration.ts
|
|
2
2
|
var e = (e) => {
|
|
3
3
|
if (e !== void 0) {
|
|
4
4
|
if (typeof e != "number" || !Number.isSafeInteger(e) || e < 1 || e > 2147483647) throw RangeError("SSE maxDurationMs must be an integer between 1 and 2147483647.");
|
|
5
5
|
return e;
|
|
6
6
|
}
|
|
7
7
|
};
|
|
8
|
-
//#endregion
|
|
9
8
|
export { e as validateHttpStreamMaxDuration };
|
package/dist/idempotency.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema as e } from "effect";
|
|
2
|
-
|
|
2
|
+
// src/idempotency.ts
|
|
3
3
|
var t = (e, t, n) => `${e ?? "(global)"}|${t.toUpperCase()}|${n}`, n = (e, t, n, r) => r === void 0 ? `${e ?? "(global)"}|${t ?? "(anon)"}|WS|${n}` : `WS-connection:${JSON.stringify([
|
|
4
4
|
e ?? null,
|
|
5
5
|
t ?? null,
|
|
@@ -117,5 +117,4 @@ var t = (e, t, n) => `${e ?? "(global)"}|${t.toUpperCase()}|${n}`, n = (e, t, n,
|
|
|
117
117
|
return this.reason === "input-unavailable" ? "This request input could not be captured safely. This attempt was stopped before execution." : "This request cannot be safely matched to the original operation. Check its current state before starting another action.";
|
|
118
118
|
}
|
|
119
119
|
};
|
|
120
|
-
//#endregion
|
|
121
120
|
export { a as DEFAULT_IN_FLIGHT_LEASE_MS, p as MUTATION_IN_FLIGHT_RETRY_AFTER_MS, r as MutationConnectionRequired, m as MutationIdempotencyRefused, f as MutationInFlight, i as beginIdempotent, c as failIdempotent, s as finishIdempotent, d as freshFor, o as holdIdempotentClaim, t as idempotencyScope, u as memoryIdempotencyStore, n as wsMutationIdempotencyScope };
|
package/dist/idempotencyInput.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { canonicalJson as e } from "./canonicalJson.js";
|
|
2
2
|
import { Schema as t } from "effect";
|
|
3
|
-
|
|
3
|
+
// src/idempotencyInput.ts
|
|
4
4
|
var n = (t) => {
|
|
5
5
|
let n = /* @__PURE__ */ new WeakMap(), r = 0, i = (e, t = () => !1) => {
|
|
6
6
|
if (Object.getOwnPropertySymbols(e).length) throw Error("Unsupported wire fields");
|
|
@@ -119,5 +119,4 @@ var n = (t) => {
|
|
|
119
119
|
throw Error("Mutation input cannot be captured for idempotent execution");
|
|
120
120
|
}
|
|
121
121
|
};
|
|
122
|
-
//#endregion
|
|
123
122
|
export { r as prepareIdempotentInput };
|
package/dist/identity.js
CHANGED
|
@@ -2,7 +2,7 @@ import { createLogger as e } from "@voltro/logger";
|
|
|
2
2
|
import { readFileSync as t } from "node:fs";
|
|
3
3
|
import { dirname as n, join as r } from "node:path";
|
|
4
4
|
import { fileURLToPath as i } from "node:url";
|
|
5
|
-
|
|
5
|
+
// src/processIdentity.ts
|
|
6
6
|
var a = e({ scope: "voltro:identity" }), o = Symbol.for("@voltro/runtime/processIdentity"), s = globalThis, c = () => Math.random().toString(36).slice(2, 8), l = s[o] ?? (s[o] = {
|
|
7
7
|
bootPath: "cli",
|
|
8
8
|
startedAt: Date.now(),
|
|
@@ -98,5 +98,4 @@ var a = e({ scope: "voltro:identity" }), o = Symbol.for("@voltro/runtime/process
|
|
|
98
98
|
let e = y().bootPath;
|
|
99
99
|
return e === "dev" || e === "serve" || e === "start" ? e : "cli";
|
|
100
100
|
};
|
|
101
|
-
//#endregion
|
|
102
101
|
export { T as appMode, w as frameworkVersion, x as instanceId, y as processIdentity, S as replicaEvidence, b as replicaId, C as resetProcessIdentityForTest, v as resolveAdvertisedHost, g as setProcessAdvertisedAddress, h as setProcessAppVersion, m as setProcessBootPath };
|
package/dist/index.js
CHANGED
|
@@ -49,7 +49,6 @@ import { ApiRoleObservationSchema as da } from "./apiRoleObservation.js";
|
|
|
49
49
|
import { StorageAccessPolicySchema as fa, StorageAccessRuleSchema as pa } from "./storageAccess.js";
|
|
50
50
|
import { BoundedRing as ma } from "./boundedRing.js";
|
|
51
51
|
import { FORM_CAPTURE_FIELD as ha, FORM_CAPTURE_META_NAME as ga, encodeNativeFormCapture as _a, formCaptureSource as va, readFormCaptureSource as ya } from "./formCapture.js";
|
|
52
|
-
|
|
52
|
+
// src/index.ts
|
|
53
53
|
var ba = 2;
|
|
54
|
-
//#endregion
|
|
55
54
|
export { K as ADMIN_SCOPE, q as APIKEY_ISSUE_ORG_SCOPE, J as APIKEY_ISSUE_OTHER_SCOPE, Y as APIKEY_ISSUE_SELF_SCOPE, Dn as API_WORKLOADS, ci as APPROVALS_DECIDE_TAG, li as APPROVALS_PENDING_TAG, da as ApiRoleObservationSchema, Tn as ApiUnavailable, Je as ApprovalDecisionErrors, Ye as ApprovalErrors, Xe as ApprovalExpired, Ze as ApprovalForbidden, Qe as ApprovalNotFound, $e as ApprovalNotPending, et as ApprovalRejected, tt as ApprovalRequired, nt as ApprovalSelfApproval, rt as ApprovalUnavailable, h as AuthMiddleware, ma as BoundedRing, Ae as BusinessRuleViolation, fi as CONNECTIONS_LIST_TAG, pi as CONNECTION_DISCONNECT_TAG, mi as CONNECTION_START_TAG, hi as CONNECTION_SUBMIT_TOKEN_TAG, gi as ConnectionHandshakeFailed, g as ConnectionInfo, _ as ConnectionInfoMiddleware, _i as ConnectionKind, vi as ConnectionKindMismatch, yi as ConnectionNotDeclared, bi as ConnectionState, xi as ConnectionStatus, Si as ConnectionSubjectRequired, ti as ConstraintViolation, je as DEFAULT_IN_FLIGHT_LEASE_MS, v as DEFAULT_SCOPE_CACHE_MAX_ENTRIES, y as DEFAULT_SCOPE_CACHE_TTL_MS, X as DEVICES_MANAGE_SCOPE, pn as DEV_ACTIVITY_EVENT, qt as EVENT_ROUTE_SEP, Jt as EventKeyInvalid, Yt as EventPayloadInvalid, Xt as EventPayloadTooLarge, Zt as EventRpcWorkload, ha as FORM_CAPTURE_FIELD, ga as FORM_CAPTURE_META_NAME, ht as FRAMEWORK_WIRE_ERRORS, Pi as GATEWAY_CREDENTIAL_EXPIRED_CLOSE_CODE, b as IMPERSONATION_METADATA_KEY, Ri as JSONAPI_MEDIA_TYPE, Qt as MAX_EVENT_ENVELOPE_BYTES, Me as MUTATION_IN_FLIGHT_RETRY_AFTER_MS, Ne as MutationConnectionRequired, Pe as MutationIdempotencyRefused, Fe as MutationInFlight, ni as NoRowFound, Z as NoSuchResource, $i as PAIRING_HOST, ea as PAIRING_SCHEME, ta as PAIRING_STORAGE_KEY, zi as PROBLEM_JSON, ba as PROTOCOL_VERSION, it as PendingApproval, Rn as PluginAccountMergeFailure, Fn as PluginPrivacyErasePhaseSchema, In as PluginPrivacyFailure, at as REACTIVITY_CHANNEL_PREFIX, Bi as REST_PROFILE_NAMES, d as RequestedTenantRefused, gt as SERVICE_NAME_PATTERN, Ii as SESSION_HEADER_NAME, Oi as STORE_SCREENSHOT_PRESETS, ki as STORE_SCREENSHOT_PRESET_NAMES, Ai as STORE_SCREENSHOT_STORES, Q as ScopeError, ri as ServerOnlyColumnWrite, fa as StorageAccessPolicySchema, pa as StorageAccessRuleSchema, ii as StoreOperationFailed, x as Subject, S as SubjectIdentity, C as SubjectService, ai as TableValidationFailed, oi as TenantRowNotFound, si as TenantScopeViolation, f as TenantSelectionRefused, Wr as UNDO_APPLY_TAG, Gr as UNDO_LOG_TAG, Kr as UNDO_REDO_TAG, w as Unauthenticated, qr as UndoConflict, Jr as UndoForbidden, Yr as UndoLogEntry, Xr as UndoNotFound, We as ValidationError, Ge as ValidationErrors, Ke as ValidationIssue, mn as WorkflowAccessProperty, Zn as WorkflowControlInputSchema, Qn as WorkflowControlIntentSchema, $n as WorkflowControlReadInputSchema, er as WorkflowControlResultSchema, tr as WorkflowDomainEventRowSchema, nr as WorkflowDomainEventsInputSchema, rr as WorkflowEventDeliveriesInputSchema, ir as WorkflowEventDeliveryRowSchema, ar as WorkflowParentClosePolicySchema, or as WorkflowQueuedCancelInputSchema, sr as WorkflowQueuedCancellationResultSchema, cr as WorkflowQueuedControlTargetSchema, zr as WorkflowRestartCommandSchema, Br as WorkflowRestartObservationSchema, Vr as WorkflowRestartResultSchema, Hr as WorkflowRestartSelectionSchema, Ur as WorkflowRestartTargetSchema, Ir as WorkflowRetryCommandSchema, Lr as WorkflowRetryObservationSchema, Rr as WorkflowRetryTargetSchema, lr as WorkflowRunEventRowSchema, ur as WorkflowRunHandleSchema, dr as WorkflowRunRefSchema, fr as WorkflowRunRowSchema, pr as WorkflowRunSnapshotSchema, mr as WorkflowRunStatusSchema, hr as WorkflowRunStepRowSchema, gr as WorkflowRunTableRefSchema, _r as WorkflowRunsInputSchema, vr as WorkflowSignalInputSchema, yr as WorkflowStartDeferralSchema, Xn as WorkflowStartTerminalOutcomeSchema, br as WorkflowUpdateInputSchema, xr as WorkflowUpdateResultSchema, _t as actionToRpc, $ as advisoryResourceGuardWarning, T as anonymousSubject, sa as apiRoleEndpointUrl, ca as apiRoleProxyBasePath, na as applyPairing, e as applyRowPatch, E as applyScopeDecision, ui as approvalsDecideDescriptor, di as approvalsPendingQueryDescriptor, D as assertAuthenticated, hn as attachWorkflowAccess, Ie as beginIdempotent, O as bindSubjectAuthority, Gt as canonicalJson, la as captureApiRoleEndpoints, mt as captureOptionalQuerySources, On as checkFrameworkCompat, ee as checkGuards, te as checkGuardsEffect, ra as clearPairing, yn as compareSurfaces, k as composeAuthStrategies, kn as composeReplayAuthorityBindings, An as composeRpcInterceptors, Ci as connectionDisconnectDescriptor, wi as connectionStartDescriptor, Ti as connectionSubmitTokenDescriptor, Ei as connectionsListQueryDescriptor, zn as createPluginAccountMergeRegistry, Ln as createPluginPrivacyRegistry, t as createRowPatchApplier, A as currentSubjectAuthority, Ut as declaredErrorTags, ot as declaredReactivityChannelKeys, ne as declaresResourceGuard, vt as defineAction, $t as defineEvent, yt as defineMutation, jn as definePlugin, Mn as definePluginRoute, Nn as definePluginService, bt as defineQuery, xt as defineStream, Fi as defineWebSocket, n as diffRows, re as effectiveScopes, en as encodeEventKey, _a as encodeNativeFormCapture, Vi as encodeRestError, Hi as encodeRestSuccess, Wt as errorMemberSchema, Bt as errorMessage, Vt as errorTag, tn as eventAttached, nn as eventEnvelope, rn as eventGap, an as eventResumePoint, on as eventRoute, sn as eventStreamEvent, cn as eventSubscribeInput, ln as eventToRpc, Le as failIdempotent, qe as fieldIssuesOf, ie as findAdvisoryResourceGuards, Re as finishIdempotent, Yi as finiteNumberView, l as firstEventValue, va as formCaptureSource, un as formatEventRoute, ze as freshFor, ae as getPolicyGuardResolver, oe as getResourceScopeResolver, gn as getWorkflowAccess, bn as groupShapeDigests, St as hasAccessDecision, j as hasCallbackRoutes, se as hasEffectiveScope, Ct as hasEnforcedGuard, ce as hasScope, Be as holdIdempotentClaim, r as idToPath, Ve as idempotencyScope, Oe as inputLabel, En as isApiUnavailable, le as isAuthenticatedCheck, wt as isAuthenticatedGuard, Tt as isClientReachable, dn as isEventDescriptor, i as isIdKeyed, M as isMachineSubject, ue as isOpenAccess, de as isPolicyCheck, Et as isPolicyGuard, st as isReactivityChannel, ct as isReactivityChannelKey, fe as isServiceAccess, Dt as isServiceReachable, N as isServiceSubject, P as isSystemSubject, p as isTenantSelectable, pe as isUpgradedCheck, Ot as isUpgradedGuard, kt as isWireReachable, Xi as jsonSchemaDocumentOf, Zi as jsonSchemaOf, F as makeScopeCache, He as memoryIdempotencyStore, me as missingAccessDecision, At as mutationToRpc, Ui as nextLink, jt as normalizeDescriptor, lt as normalizeSource, he as openAccessSpec, I as orderByBearerPrefix, ia as pairingLink, fn as parseEventRoute, aa as parsePairingLink, wn as parseRevalidateMs, a as patchCellSchema, o as pathToId, Qi as plainJsonSchema, Hn as pluginAlias, Pn as pluginInstanceName, Un as pluginSlug, Wn as pluginTag, Kt as prepareIdempotentInput, Wi as problemDetails, Gi as problemTypeOf, xn as procedureShapeDigest, ut as publishReactivity, qn as publishServerError, Mt as queryToRpc, L as rawImpersonationMark, dt as reactivityChannel, ya as readFormCaptureSource, oa as readPairing, R as reauthorizeSubject, ge as recheckGuardsEffect, _e as refreshEffectiveScopes, Gn as registerPluginAliases, Ht as reportableError, ve as requireScope, Nt as requireUpgraded, Kn as resetPluginAliases, z as resolveIdentityAuthority, ye as resolvePolicyAction, Ki as resolveRestFormat, _n as resolveWorkflowAccess, qi as restViewSchema, s as rowPatchOpSchema, c as rowPatchSchema, Sn as schemaShape, B as scopeCacheKey, ua as selectApiRoleEndpoint, m as selectSubjectTenant, be as serviceAccessSpec, xe as serviceCallersOf, V as serviceSubject, Li as sessionValueFromHeaders, Se as setEffectiveScopes, Ce as setEffectiveScopesRefresher, we as setPolicyGuardResolver, Te as setResourceScopeResolver, Cn as shapeDigest, ft as sourceKeys, ei as ssrfReason, ji as storeScreenshotPixels, Mi as storeScreenshotPreset, Ni as storeScreenshotPresetsFor, Pt as streamToRpc, ke as strictInput, H as subjectAuditActorId, U as subjectIdentity, Ee as subjectScopes, Jn as subscribeServerErrors, u as subscriptionEvent, W as systemSubject, G as tenantScopedSubject, Ft as toRpc, Ji as toSnakeCase, Di as tsMs, pt as undeclaredChannelKeys, Zr as undoApplyDescriptor, Qr as undoLogQueryDescriptor, $r as undoRedoDescriptor, De as upgradedGuardShapeError, Bn as validateHttpStreamMaxDuration, Vn as validateOutboxHandlerDefinition, It as wireAudienceOf, Lt as wireErrorUnion, Rt as withRpcTag, Yn as withheldServerError, vn as workflowAccessDescriptor, Sr as workflowCancelDescriptor, Cr as workflowControlQueryDescriptor, wr as workflowDomainEventsQueryDescriptor, Tr as workflowEventDeliveriesQueryDescriptor, Er as workflowQueuedCancelDescriptor, Dr as workflowQueuedControlQueryDescriptor, Or as workflowResumeDescriptor, kr as workflowRunEventsQueryDescriptor, Ar as workflowRunQueryDescriptor, jr as workflowRunStepsQueryDescriptor, Mr as workflowRunsQueryDescriptor, Nr as workflowSignalDescriptor, Pr as workflowToRpc, Fr as workflowUpdateDescriptor, zt as workflowWireErrorUnion, Ue as wsMutationIdempotencyScope };
|
package/dist/inspect.js
CHANGED
|
@@ -3,7 +3,7 @@ import { InspectCommandRejectionSchema as n, inspectCommandRejection as r, isIns
|
|
|
3
3
|
import { InspectBackfillInputSchema as a, InspectBackfillReceiptSchema as o, InspectBackfillResultSchema as s, ScheduleBackfillRequestConflict as c, decodeInspectBackfillInput as l } from "./inspectBackfill.js";
|
|
4
4
|
import { InspectWorkflowExecutionObservationSchema as u, InspectWorkflowExecutionTargetSchema as d } from "./inspectWorkflowExecution.js";
|
|
5
5
|
import { projectReplicaObservation as f } from "./inspectProjection.js";
|
|
6
|
-
|
|
6
|
+
// src/inspectSelection.ts
|
|
7
7
|
var p = class extends Error {
|
|
8
8
|
name = "InvalidReplicaSelection";
|
|
9
9
|
}, m = (e) => {
|
|
@@ -26,5 +26,4 @@ var p = class extends Error {
|
|
|
26
26
|
}
|
|
27
27
|
return m(s), `${o}?${s}${r}`;
|
|
28
28
|
};
|
|
29
|
-
//#endregion
|
|
30
29
|
export { a as InspectBackfillInputSchema, o as InspectBackfillReceiptSchema, s as InspectBackfillResultSchema, n as InspectCommandRejectionSchema, u as InspectWorkflowExecutionObservationSchema, d as InspectWorkflowExecutionTargetSchema, e as InspectWorkflowQueuedStartObservationSchema, t as InspectWorkflowQueuedStartTargetSchema, p as InvalidReplicaSelection, c as ScheduleBackfillRequestConflict, l as decodeInspectBackfillInput, r as inspectCommandRejection, i as isInspectCommandRejection, m as parseReplicaSelection, f as projectReplicaObservation, h as withReplicaSelection };
|
package/dist/inspectBackfill.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema as e } from "effect";
|
|
2
|
-
|
|
2
|
+
// src/inspectBackfill.ts
|
|
3
3
|
var t = e.String.pipe(e.check(e.makeFilter((e) => Number.isFinite(Date.parse(e))))), n = e.String.pipe(e.check(e.isMinLength(1)), e.check(e.isMaxLength(256))), r = e.Struct({
|
|
4
4
|
id: n,
|
|
5
5
|
name: n,
|
|
@@ -48,5 +48,4 @@ var t = e.String.pipe(e.check(e.makeFilter((e) => Number.isFinite(Date.parse(e))
|
|
|
48
48
|
})]), s = class extends Error {
|
|
49
49
|
name = "ScheduleBackfillRequestConflict";
|
|
50
50
|
};
|
|
51
|
-
//#endregion
|
|
52
51
|
export { i as InspectBackfillInputSchema, r as InspectBackfillReceiptSchema, o as InspectBackfillResultSchema, s as ScheduleBackfillRequestConflict, a as decodeInspectBackfillInput };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema as e } from "effect";
|
|
2
|
-
|
|
2
|
+
// src/inspectCommandRejection.ts
|
|
3
3
|
var t = e.Struct({
|
|
4
4
|
kind: e.Literal("rejected"),
|
|
5
5
|
status: e.Literals([
|
|
@@ -17,5 +17,4 @@ var t = e.Struct({
|
|
|
17
17
|
};
|
|
18
18
|
return n(r) ? r : void 0;
|
|
19
19
|
};
|
|
20
|
-
//#endregion
|
|
21
20
|
export { t as InspectCommandRejectionSchema, r as inspectCommandRejection, n as isInspectCommandRejection };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { canonicalInspectValue as e } from "./inspectValueIdentity.js";
|
|
2
2
|
import { projectStorageReplicaAnswers as t } from "./inspectStorageProjection.js";
|
|
3
|
-
|
|
3
|
+
// src/inspectProjection.ts
|
|
4
4
|
var n = (e) => typeof e == "object" && e && !Array.isArray(e) ? e : void 0, r = (e) => Array.isArray(e) && e.every((e) => n(e) !== void 0) ? e : void 0, i = (e) => typeof e == "number" && Number.isFinite(e) ? e : 0, a = /* @__PURE__ */ new Set([
|
|
5
5
|
"counter",
|
|
6
6
|
"gauge",
|
|
@@ -129,5 +129,4 @@ var n = (e) => typeof e == "object" && e && !Array.isArray(e) ? e : void 0, r =
|
|
|
129
129
|
data: h
|
|
130
130
|
};
|
|
131
131
|
};
|
|
132
|
-
//#endregion
|
|
133
132
|
export { s as projectReplicaObservation };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { canonicalInspectValue as e } from "./inspectValueIdentity.js";
|
|
2
|
-
|
|
2
|
+
// src/inspectStorageProjection.ts
|
|
3
3
|
var t = (e) => typeof e == "object" && e && !Array.isArray(e) ? e : void 0, n = (e) => Array.isArray(e) && e.every((e) => t(e)) ? e : void 0, r = (e) => {
|
|
4
4
|
let n = t(e);
|
|
5
5
|
if (n && ["catalogueId", "objectNamespace"].every((e) => typeof n[e] == "string" && /^[a-f0-9]{64}$/.test(n[e])) && typeof n.storageInstance == "string" && n.storageInstance.trim()) return {
|
|
@@ -82,5 +82,4 @@ var t = (e) => typeof e == "object" && e && !Array.isArray(e) ? e : void 0, n =
|
|
|
82
82
|
};
|
|
83
83
|
}
|
|
84
84
|
};
|
|
85
|
-
//#endregion
|
|
86
85
|
export { o as projectStorageReplicaAnswers };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
// src/inspectValueIdentity.ts
|
|
2
2
|
var e = (e) => JSON.stringify(t(e)), t = (e) => Array.isArray(e) ? e.map(t) : typeof e == "object" && e ? Object.fromEntries(Object.entries(e).sort(([e], [t]) => e.localeCompare(t)).map(([e, n]) => [e, t(n)])) : e;
|
|
3
|
-
//#endregion
|
|
4
3
|
export { e as canonicalInspectValue };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema as e } from "effect";
|
|
2
|
-
|
|
2
|
+
// src/inspectWorkflowExecution.ts
|
|
3
3
|
var t = e.NonEmptyString.pipe(e.check(e.isMaxLength(1024)), e.check(e.makeFilter((e) => e.trim().length > 0 && !/[\u0000-\u001f\u007f]/.test(e)))), n = e.Struct({
|
|
4
4
|
workflowName: t,
|
|
5
5
|
executionId: t
|
|
@@ -30,5 +30,4 @@ var t = e.NonEmptyString.pipe(e.check(e.isMaxLength(1024)), e.check(e.makeFilter
|
|
|
30
30
|
])
|
|
31
31
|
})
|
|
32
32
|
]);
|
|
33
|
-
//#endregion
|
|
34
33
|
export { i as InspectWorkflowExecutionObservationSchema, n as InspectWorkflowExecutionTargetSchema };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema as e } from "effect";
|
|
2
|
-
|
|
2
|
+
// src/inspectWorkflowQueuedStart.ts
|
|
3
3
|
var t = e.NonEmptyString.pipe(e.check(e.isMaxLength(1024)), e.check(e.makeFilter((e) => e.trim().length > 0 && !/[\u0000-\u001f\u007f]/.test(e)))), n = e.Struct({
|
|
4
4
|
workflowName: t,
|
|
5
5
|
receiptId: t,
|
|
@@ -27,5 +27,4 @@ var t = e.NonEmptyString.pipe(e.check(e.isMaxLength(1024)), e.check(e.makeFilter
|
|
|
27
27
|
])
|
|
28
28
|
})
|
|
29
29
|
]);
|
|
30
|
-
//#endregion
|
|
31
30
|
export { i as InspectWorkflowQueuedStartObservationSchema, n as InspectWorkflowQueuedStartTargetSchema };
|
package/dist/jsonSchema.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema as e, SchemaAST as t } from "effect";
|
|
2
|
-
|
|
2
|
+
// src/jsonSchema.ts
|
|
3
3
|
var n = (e) => typeof e == "object" && !!e && !Array.isArray(e), r = (e, t = /* @__PURE__ */ new Map()) => {
|
|
4
4
|
let n = t.get(e);
|
|
5
5
|
if (n !== void 0) return n;
|
|
@@ -50,5 +50,4 @@ var n = (e) => typeof e == "object" && !!e && !Array.isArray(e), r = (e, t = /*
|
|
|
50
50
|
$defs: r
|
|
51
51
|
};
|
|
52
52
|
};
|
|
53
|
-
//#endregion
|
|
54
53
|
export { r as finiteNumberView, o as jsonSchemaDocumentOf, s as jsonSchemaOf, a as plainJsonSchema };
|
package/dist/jwt.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { readCookie as e } from "./session.js";
|
|
2
2
|
import { createRemoteJWKSet as t, errors as n, jwtVerify as r } from "jose";
|
|
3
|
-
|
|
3
|
+
// src/jwt.ts
|
|
4
4
|
var i = 36e5, a = /* @__PURE__ */ new Map(), o = (e, n) => {
|
|
5
5
|
let r = a.get(e);
|
|
6
6
|
if (r && Date.now() - r.fetchedAt < r.ttlMs) return r.fetcher;
|
|
@@ -156,5 +156,4 @@ var i = 36e5, a = /* @__PURE__ */ new Map(), o = (e, n) => {
|
|
|
156
156
|
}
|
|
157
157
|
};
|
|
158
158
|
};
|
|
159
|
-
//#endregion
|
|
160
159
|
export { c as JwtVerifyError, s as _resetJwksCache, g as _resetOidcDiscoveryCache, h as discoverOidc, v as extractBearerOrCookie, y as jwtBearerStrategy, p as readClaimPath, e as readCookie, u as verifyJwt, f as verifyJwtWithSecret };
|
package/dist/outbox.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/outbox.ts
|
|
2
2
|
function e(e, t) {
|
|
3
3
|
if (typeof e != "object" || !e) throw Error(`Outbox handler ${t}: definition must be an object`);
|
|
4
4
|
let n = e;
|
|
@@ -6,5 +6,4 @@ function e(e, t) {
|
|
|
6
6
|
if (typeof n.handler != "function") throw Error(`Outbox handler ${t}: handler must be a function`);
|
|
7
7
|
if (n.maxAttempts !== void 0 && (typeof n.maxAttempts != "number" || !Number.isSafeInteger(n.maxAttempts) || n.maxAttempts < 1)) throw Error(`Outbox handler ${t}: maxAttempts must be a positive safe integer`);
|
|
8
8
|
}
|
|
9
|
-
//#endregion
|
|
10
9
|
export { e as validateOutboxHandlerDefinition };
|
package/dist/pairing.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/pairing.ts
|
|
2
2
|
var e = "voltro-dev", t = "pair", n = "voltro:pairing", r = (e) => {
|
|
3
3
|
try {
|
|
4
4
|
let t = new URL(e);
|
|
@@ -71,5 +71,4 @@ var e = "voltro-dev", t = "pair", n = "voltro:pairing", r = (e) => {
|
|
|
71
71
|
let t = s(e);
|
|
72
72
|
t.remove ? await t.remove(n) : await t.set(n, "");
|
|
73
73
|
};
|
|
74
|
-
//#endregion
|
|
75
74
|
export { t as PAIRING_HOST, e as PAIRING_SCHEME, n as PAIRING_STORAGE_KEY, c as applyPairing, u as clearPairing, a as pairingLink, o as parsePairingLink, l as readPairing };
|
package/dist/plugin.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Context as e, Layer as t } from "effect";
|
|
2
|
-
|
|
2
|
+
// src/plugin.ts
|
|
3
3
|
var n = Object.freeze([
|
|
4
4
|
"rpc",
|
|
5
5
|
"subscriptions",
|
|
@@ -83,5 +83,4 @@ var n = Object.freeze([
|
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
85
|
};
|
|
86
|
-
//#endregion
|
|
87
86
|
export { n as API_WORKLOADS, c as checkFrameworkCompat, f as composeReplayAuthorityBindings, o as composeRpcInterceptors, r as definePlugin, i as definePluginRoute, s as definePluginService, a as pluginInstanceName };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Effect as e, Schema as t } from "effect";
|
|
2
|
-
|
|
2
|
+
// src/pluginAccountMerge.ts
|
|
3
3
|
var n = class extends t.TaggedError()("PluginAccountMergeFailure", {
|
|
4
4
|
code: t.Literals([
|
|
5
5
|
"invalid_request",
|
|
@@ -32,7 +32,7 @@ var n = class extends t.TaggedError()("PluginAccountMergeFailure", {
|
|
|
32
32
|
name: r.name,
|
|
33
33
|
tables: Object.freeze([...r.declaration.tables])
|
|
34
34
|
});
|
|
35
|
-
for (let e of r.tables)
|
|
35
|
+
for (let e of r.tables) e !== void 0 && r.declaration.tables.includes(e) || n.push(r.name);
|
|
36
36
|
} else (r.tables.length > 0 || r.declaration !== void 0) && n.push(r.name);
|
|
37
37
|
return {
|
|
38
38
|
participants: Object.freeze(t),
|
|
@@ -84,5 +84,4 @@ var n = class extends t.TaggedError()("PluginAccountMergeFailure", {
|
|
|
84
84
|
})
|
|
85
85
|
};
|
|
86
86
|
};
|
|
87
|
-
//#endregion
|
|
88
87
|
export { n as PluginAccountMergeFailure, i as createPluginAccountMergeRegistry };
|
package/dist/pluginNaming.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/pluginNaming.ts
|
|
2
2
|
var e = (e) => {
|
|
3
3
|
let t = e.startsWith("@") ? e.replace(/^@[^/]+\//, "") : e;
|
|
4
4
|
return (t.startsWith("plugin-") ? t.slice(7) : t).replace(/-([a-zA-Z0-9])/g, (e, t) => t.toUpperCase());
|
|
@@ -28,5 +28,4 @@ var e = (e) => {
|
|
|
28
28
|
if (o === 1) return `${a}.${n}`;
|
|
29
29
|
throw Error(`[voltro] ${t} is installed more than once (${[...i].sort().join(", ")}) and no single install is the primary one, so a plugin hook cannot tell which of them it addresses. Call the route by its full tag instead — e.g. useSubscription(api, '${[...i].sort()[0]}.${n}').`);
|
|
30
30
|
};
|
|
31
|
-
//#endregion
|
|
32
31
|
export { e as pluginAlias, t as pluginSlug, o as pluginTag, i as registerPluginAliases, a as resetPluginAliases };
|
package/dist/pluginPrivacy.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Effect as e, Schema as t } from "effect";
|
|
2
|
-
|
|
2
|
+
// src/pluginPrivacy.ts
|
|
3
3
|
var n = t.Literals([
|
|
4
4
|
"prepare",
|
|
5
5
|
"data",
|
|
@@ -162,5 +162,4 @@ var n = t.Literals([
|
|
|
162
162
|
})
|
|
163
163
|
};
|
|
164
164
|
};
|
|
165
|
-
//#endregion
|
|
166
165
|
export { n as PluginPrivacyErasePhaseSchema, r as PluginPrivacyFailure, o as createPluginPrivacyRegistry };
|
package/dist/procedure.js
CHANGED
|
@@ -12,7 +12,7 @@ import { captureOptionalQuerySources as y } from "./queryOptionalSources.js";
|
|
|
12
12
|
import { Schema as b } from "effect";
|
|
13
13
|
import { Rpc as x } from "effect/rpc";
|
|
14
14
|
import { VersionConflict as S } from "@voltro/database/wire";
|
|
15
|
-
|
|
15
|
+
// src/procedure.ts
|
|
16
16
|
var C = (e) => e.internal !== !0, w = (e) => e.service === void 0 ? "client" : "service", T = (e) => C(e) && e.service === void 0, E = (e) => C(e) && e.service !== void 0, D = /^[a-z][a-z0-9-]{0,55}$/i, O = (e) => {
|
|
17
17
|
if (A(e), k(e), e.undo !== void 0 && (e.undo === null || e.undo.capture !== !1 || typeof e.undo.reason != "string" || e.undo.reason.trim() === "")) throw Error(`${e.name}: undo requires capture: false and a non-empty reason`);
|
|
18
18
|
if (e.idempotencyScope !== void 0 && e.idempotencyScope !== "subject" && e.idempotencyScope !== "connection") throw Error(`${e.name}: idempotencyScope must be 'subject' or 'connection'`);
|
|
@@ -276,5 +276,4 @@ var C = (e) => e.internal !== !0, w = (e) => e.service === void 0 ? "client" : "
|
|
|
276
276
|
}))
|
|
277
277
|
};
|
|
278
278
|
};
|
|
279
|
-
//#endregion
|
|
280
279
|
export { q as FRAMEWORK_WIRE_ERRORS, D as SERVICE_NAME_PATTERN, Q as actionToRpc, I as defineAction, F as defineMutation, P as defineQuery, L as defineStream, M as hasAccessDecision, z as hasEnforcedGuard, ne as isAuthenticatedGuard, T as isClientReachable, te as isPolicyGuard, E as isServiceReachable, j as isUpgradedGuard, C as isWireReachable, Z as mutationToRpc, ie as normalizeDescriptor, X as queryToRpc, ee as requireUpgraded, $ as streamToRpc, re as toRpc, w as wireAudienceOf, G as wireErrorUnion, Y as withRpcTag, J as workflowWireErrorUnion };
|
package/dist/publicApi.js
CHANGED
|
@@ -6,7 +6,7 @@ import { encodeRestError as o, resolveRestFormat as s, restViewSchema as c, toSn
|
|
|
6
6
|
import { RestRouteError as u, defineRestRoute as ee, requireAuthenticated as d, requireScope as f, response as p, sse as te, sseFrame as m } from "./rest.js";
|
|
7
7
|
import { Effect as h, Schema as g, SchemaGetter as _, SchemaIssue as ne } from "effect";
|
|
8
8
|
import * as v from "effect/SchemaAST";
|
|
9
|
-
|
|
9
|
+
// src/publicApi.ts
|
|
10
10
|
var y = (e, t, n) => t.method ?? (t.resource !== void 0 && n !== void 0 ? C("", t, n).method : void 0) ?? (e === "query" ? "GET" : "POST"), b = (e, t, n) => w(t.path ?? (t.resource !== void 0 && n !== void 0 ? C(e, t, n).path : `/${t.version ?? "v1"}/${e.replace(/\./g, "/")}`)), x = (e) => {
|
|
11
11
|
let t = e.split("/").pop() ?? e;
|
|
12
12
|
return t.endsWith("ies") ? `${t.slice(0, -3)}y` : t.endsWith("ses") || t.endsWith("xes") ? t.slice(0, -2) : t.endsWith("s") ? t.slice(0, -1) : t;
|
|
@@ -321,5 +321,4 @@ var y = (e, t, n) => t.method ?? (t.resource !== void 0 && n !== void 0 ? C("",
|
|
|
321
321
|
};
|
|
322
322
|
return `${JSON.stringify(n)} ${r(t.input.ast)} ${r(t.output.ast)}`;
|
|
323
323
|
}).sort().join("\n"));
|
|
324
|
-
//#endregion
|
|
325
324
|
export { k as coerceQueryObject, O as coerceQueryValue, B as collectPublicApiRoutes, t as declaredErrorTags, y as derivePublicMethod, b as derivePublicPath, C as deriveResource, n as errorMemberSchema, w as normalizePathParams, P as operationIdOf, T as pathParamNames, j as projectedFailure, z as publicApiRoute, V as publicSurfaceDigest, S as resourceIdField, R as wireExample };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/queryOptionalSources.ts
|
|
2
2
|
var e = (e, t, n) => {
|
|
3
3
|
if (n === void 0) return;
|
|
4
4
|
let r = new Set(t === void 0 ? [] : typeof t == "string" ? [t] : t), i = () => /* @__PURE__ */ Error(`${e}: optionalSource must contain unique names already declared in source`);
|
|
@@ -10,5 +10,4 @@ var e = (e, t, n) => {
|
|
|
10
10
|
}
|
|
11
11
|
return Object.freeze(a);
|
|
12
12
|
};
|
|
13
|
-
//#endregion
|
|
14
13
|
export { e as captureOptionalQuerySources };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/reactivityChannel.ts
|
|
2
2
|
var e = "channel:", t = Symbol.for("@voltro/protocol/reactivityChannels"), n = globalThis, r = n[t] ?? (n[t] = /* @__PURE__ */ new Map()), i = /^[a-z][a-z0-9-]*(\.[a-z0-9-]+)*$/, a = (t) => {
|
|
3
3
|
if (!i.test(t)) throw Error(`reactivityChannel('${t}'): invalid channel name.\n Use lowercase kebab segments separated by dots — \`presence\`, \`job-queue\`,
|
|
4
4
|
\`billing.usage\`. A \`:\` is refused because it is the namespace separator in
|
|
@@ -30,5 +30,4 @@ var e = "channel:", t = Symbol.for("@voltro/protocol/reactivityChannels"), n = g
|
|
|
30
30
|
origin: "inline"
|
|
31
31
|
}), !0);
|
|
32
32
|
};
|
|
33
|
-
//#endregion
|
|
34
33
|
export { e as REACTIVITY_CHANNEL_PREFIX, c as declaredReactivityChannelKeys, o as isReactivityChannel, s as isReactivityChannelKey, d as normalizeSource, p as publishReactivity, a as reactivityChannel, u as sourceKeys, f as undeclaredChannelKeys };
|
package/dist/rest.js
CHANGED
|
@@ -11,7 +11,7 @@ import { coerceQueryObject as O, coerceQueryValue as k, collectPublicApiRoutes a
|
|
|
11
11
|
import { Effect as L, Schema as R } from "effect";
|
|
12
12
|
import * as ae from "effect/SchemaAST";
|
|
13
13
|
import { newTraceId as oe } from "@voltro/shared";
|
|
14
|
-
|
|
14
|
+
// src/rest.ts
|
|
15
15
|
var se = () => (e) => {
|
|
16
16
|
if (e.subject.type === "anonymous") return {
|
|
17
17
|
status: 401,
|
|
@@ -555,5 +555,4 @@ var se = () => (e) => {
|
|
|
555
555
|
for (let r = 1; r < e.length && n.status === 405; r++) n = await e[r].handle(t);
|
|
556
556
|
return n;
|
|
557
557
|
};
|
|
558
|
-
//#endregion
|
|
559
558
|
export { g as JSONAPI_MEDIA_TYPE, _ as PROBLEM_JSON, v as REST_PROFILE_NAMES, G as RestRouteError, he as bytes, O as coerceQueryObject, k as coerceQueryValue, A as collectPublicApiRoutes, d as declaredErrorTags, fe as defineRestRoute, j as derivePublicMethod, M as derivePublicPath, N as deriveResource, we as dispatchSharedPath, y as encodeRestError, b as encodeRestSuccess, f as errorMemberSchema, q as isRestByteResponse, W as isRestResponse, K as isRestStreamResponse, ye as matchPathParams, x as nextLink, P as normalizePathParams, F as operationIdOf, I as pathParamNames, S as problemDetails, C as problemTypeOf, ee as projectedFailure, te as publicApiRoute, ne as publicSurfaceDigest, le as requireAnyScope, se as requireAuthenticated, ce as requireScope, w as resolveRestFormat, re as resourceIdField, U as response, B as restCorsHeaders, V as restCorsPreflight, de as restError, Ce as restRoutesToHttpRoutes, T as restViewSchema, be as routeAcceptsPath, pe as sse, me as sseFrame, E as toSnakeCase, ie as wireExample };
|
package/dist/restFormat.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Schema as e, SchemaGetter as t, SchemaTransformation as n } from "effect";
|
|
2
2
|
import * as r from "effect/SchemaAST";
|
|
3
|
-
|
|
3
|
+
// src/restFormat.ts
|
|
4
4
|
var i = {
|
|
5
5
|
rpc: {
|
|
6
6
|
name: "rpc",
|
|
@@ -159,5 +159,4 @@ var i = {
|
|
|
159
159
|
...r === void 0 ? {} : { links: { next: y(n, r, e.cursorParam).replace(/^<|>; rel="next"$/g, "") } }
|
|
160
160
|
}, g);
|
|
161
161
|
};
|
|
162
|
-
//#endregion
|
|
163
162
|
export { g as JSONAPI_MEDIA_TYPE, h as PROBLEM_JSON, a as REST_PROFILE_NAMES, _ as encodeRestError, x as encodeRestSuccess, y as nextLink, m as problemDetails, f as problemTypeOf, o as resolveRestFormat, d as restViewSchema, s as toSnakeCase };
|
package/dist/restReceipt.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Effect as e, Schema as t } from "effect";
|
|
2
|
-
|
|
2
|
+
// src/restReceipt.ts
|
|
3
3
|
var n = t.Struct({
|
|
4
4
|
_tag: t.Literal("VoltroRestOutput"),
|
|
5
5
|
version: t.Literal(1),
|
|
@@ -39,5 +39,4 @@ var n = t.Struct({
|
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
41
|
};
|
|
42
|
-
//#endregion
|
|
43
42
|
export { r as makeRestReceiptCodec };
|