@ultrst-armada/kloks 2.2.9 → 3.0.1
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/.krusbl-release-attestation.json +3 -3
- package/package.json +1 -1
- package/packages/backend/dist/auth/LuthOAuthUserInfo.d.ts +10 -0
- package/packages/backend/dist/auth/OidcBff.d.ts +3 -2
- package/packages/backend/dist/auth/OidcBffEnv.d.ts +6 -7
- package/packages/backend/dist/auth/index.d.ts +0 -3
- package/packages/backend/dist/auth/index.js +2 -26
- package/packages/backend/dist/{chunk-AKVBFHHD.js → chunk-2SNWR4FI.js} +88 -57
- package/packages/backend/dist/{chunk-UI7AYFAU.js → chunk-363J52AF.js} +0 -48
- package/packages/backend/dist/{chunk-GCVR257U.js → chunk-3SDRLTD6.js} +1 -1
- package/packages/backend/dist/chunk-7HD7OEUY.js +177 -0
- package/packages/backend/dist/chunk-B5DCG4UC.js +602 -0
- package/packages/backend/dist/{chunk-7XTURV44.js → chunk-F7BO3GLA.js} +2 -2
- package/packages/backend/dist/{chunk-RHW75K46.js → chunk-IAW6N73D.js} +49 -1
- package/packages/backend/dist/{chunk-IRKJ6HKP.js → chunk-IXEKOWY4.js} +1 -1
- package/packages/backend/dist/{chunk-4X4QGVAO.js → chunk-NRW4TECO.js} +1 -1
- package/packages/backend/dist/{chunk-3ZL2DX73.js → chunk-PAU25K7F.js} +5 -172
- package/packages/backend/dist/{chunk-NUBA6A5T.js → chunk-VN2NR3KT.js} +1 -1
- package/packages/backend/dist/{chunk-R4B3KPHY.js → chunk-YFISFDBW.js} +36 -15
- package/packages/backend/dist/control-plane/ControlPlaneManager.d.ts +6 -3
- package/packages/backend/dist/index.d.ts +0 -2
- package/packages/backend/dist/index.js +7 -25
- package/packages/backend/dist/krnl-services.js +6 -6
- package/packages/backend/dist/node.d.ts +0 -1
- package/packages/backend/dist/node.js +20 -95
- package/packages/backend/dist/provider-services/index.js +7 -7
- package/packages/backend/dist/provider-services/node.d.ts +2 -0
- package/packages/backend/dist/provider-services/node.js +15 -4
- package/packages/backend/dist/provider-services/saved-account-crypto.d.ts +19 -0
- package/packages/backend/dist/provider-services/saved-account-probe.d.ts +26 -0
- package/packages/backend/dist/provider-services/saved-account-store.d.ts +29 -0
- package/packages/backend/dist/services/node.js +5 -4
- package/packages/backend/dist/srkl/index.js +3 -2
- package/packages/backend/dist/workspace/node.js +5 -4
- package/packages/backend/dist/{workspaceFileCore-XPT6WTFY.js → workspaceFileCore-2KCVSECY.js} +3 -2
- package/packages/client/dist/auth.d.ts +9 -21
- package/packages/client/dist/auth.js +1 -23
- package/packages/client/dist/chunk-QGZHKLOK.js +75 -0
- package/packages/client/dist/index.d.ts +2 -3
- package/packages/client/dist/index.js +1 -23
- package/packages/backend/dist/auth/BaseAccountProvider.d.ts +0 -7
- package/packages/backend/dist/auth/CanonicalAuthClient.d.ts +0 -6
- package/packages/backend/dist/auth/UnifiedAuthCore.d.ts +0 -23
- package/packages/backend/dist/auth/UniversalLuthInitialization.d.ts +0 -55
- package/packages/backend/dist/chunk-2COYZMUJ.js +0 -78
- package/packages/backend/dist/chunk-MDTLU7H4.js +0 -58
- package/packages/backend/dist/chunk-U5VPYALB.js +0 -261
- package/packages/backend/dist/luth/LuthDiscoveryService.d.ts +0 -15
- package/packages/backend/dist/luth/index.d.ts +0 -1
- package/packages/client/dist/chunk-4HR374IB.js +0 -148
- /package/packages/backend/dist/{auth/UnifiedAuthCore.test.d.ts → provider-services/saved-account-store.test.d.ts} +0 -0
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getGoogleDriveOAuthConfiguration,
|
|
3
|
+
getOrCreateStorageConnectionEncryptionKey,
|
|
4
|
+
getStorageConnectionEncryptionKey
|
|
5
|
+
} from "./chunk-7HD7OEUY.js";
|
|
1
6
|
import {
|
|
2
7
|
queryUnifiedDb
|
|
3
8
|
} from "./chunk-3RTRATDJ.js";
|
|
@@ -9,178 +14,6 @@ import {
|
|
|
9
14
|
GoogleDriveWorkspaceService
|
|
10
15
|
} from "./chunk-EMSSTOOK.js";
|
|
11
16
|
|
|
12
|
-
// src/core/systemCredentialsCore.ts
|
|
13
|
-
function parseCredentials(value) {
|
|
14
|
-
if (typeof value === "string") {
|
|
15
|
-
try {
|
|
16
|
-
const parsed = JSON.parse(value);
|
|
17
|
-
return parsed && typeof parsed === "object" ? parsed : {};
|
|
18
|
-
} catch {
|
|
19
|
-
return {};
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
return value && typeof value === "object" ? value : {};
|
|
23
|
-
}
|
|
24
|
-
async function readSystemCredentialsRecord(queryDb, targetId = "system") {
|
|
25
|
-
const result = await queryDb(
|
|
26
|
-
'SELECT id, credentials, created_at, updated_at FROM public."ultrst-credentials" WHERE id = $1 LIMIT 1',
|
|
27
|
-
[targetId]
|
|
28
|
-
);
|
|
29
|
-
const row = result.rows[0];
|
|
30
|
-
if (!row) return { id: targetId, credentials: {} };
|
|
31
|
-
return {
|
|
32
|
-
id: String(row.id || targetId),
|
|
33
|
-
credentials: parseCredentials(row.credentials),
|
|
34
|
-
...row.created_at ? { created_at: new Date(row.created_at).toISOString() } : {},
|
|
35
|
-
...row.updated_at ? { updated_at: new Date(row.updated_at).toISOString() } : {}
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
async function getSystemCredentialsRecord(queryDb, targetId = "system") {
|
|
39
|
-
await queryDb(`
|
|
40
|
-
CREATE TABLE IF NOT EXISTS public."ultrst-credentials" (
|
|
41
|
-
id TEXT PRIMARY KEY,
|
|
42
|
-
credentials JSONB NOT NULL DEFAULT '{}'::jsonb,
|
|
43
|
-
created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
|
|
44
|
-
updated_at TIMESTAMPTZ NOT NULL DEFAULT NOW()
|
|
45
|
-
)
|
|
46
|
-
`);
|
|
47
|
-
await queryDb(`
|
|
48
|
-
ALTER TABLE public."ultrst-credentials"
|
|
49
|
-
ADD COLUMN IF NOT EXISTS credentials JSONB NOT NULL DEFAULT '{}'::jsonb
|
|
50
|
-
`);
|
|
51
|
-
await queryDb(`
|
|
52
|
-
INSERT INTO public."ultrst-credentials" (id, credentials)
|
|
53
|
-
VALUES ($1, '{}'::jsonb)
|
|
54
|
-
ON CONFLICT (id) DO NOTHING
|
|
55
|
-
`, [targetId]);
|
|
56
|
-
const result = await queryDb(
|
|
57
|
-
'SELECT id, credentials, created_at, updated_at FROM public."ultrst-credentials" WHERE id = $1 LIMIT 1',
|
|
58
|
-
[targetId]
|
|
59
|
-
);
|
|
60
|
-
const row = result.rows[0];
|
|
61
|
-
if (!row) return { id: targetId, credentials: {} };
|
|
62
|
-
return {
|
|
63
|
-
id: String(row.id || targetId),
|
|
64
|
-
credentials: parseCredentials(row.credentials),
|
|
65
|
-
...row.created_at ? { created_at: new Date(row.created_at).toISOString() } : {},
|
|
66
|
-
...row.updated_at ? { updated_at: new Date(row.updated_at).toISOString() } : {}
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
async function getGoogleDriveOAuthConfiguration(queryDb) {
|
|
70
|
-
const record = await getSystemCredentialsRecord(queryDb, "system");
|
|
71
|
-
const root = record.credentials || {};
|
|
72
|
-
const oauth = root.googleDriveOAuth || root.googleOAuth || {};
|
|
73
|
-
const clientId = typeof oauth.clientId === "string" ? oauth.clientId.trim() : "";
|
|
74
|
-
const clientSecret = typeof oauth.clientSecret === "string" ? oauth.clientSecret.trim() : "";
|
|
75
|
-
const redirectUri = typeof oauth.redirectUri === "string" ? oauth.redirectUri.trim() : "";
|
|
76
|
-
const stateSecret = typeof oauth.stateSecret === "string" ? oauth.stateSecret.trim() : "";
|
|
77
|
-
const missing = [];
|
|
78
|
-
if (!clientId) missing.push("client ID");
|
|
79
|
-
if (!clientSecret) missing.push("client secret");
|
|
80
|
-
if (!redirectUri) missing.push("redirect URI");
|
|
81
|
-
if (!stateSecret || stateSecret.length < 32) missing.push("OAuth state signing secret (minimum 32 characters)");
|
|
82
|
-
if (missing.length) {
|
|
83
|
-
throw new Error(
|
|
84
|
-
`[STORAGE_PROVIDER_CONFIGURATION_MISSING] Google Drive OAuth system configuration is incomplete: ${missing.join(", ")}. Configure system.ultrst-credentials.googleDriveOAuth.`
|
|
85
|
-
);
|
|
86
|
-
}
|
|
87
|
-
let parsedRedirect;
|
|
88
|
-
try {
|
|
89
|
-
parsedRedirect = new URL(redirectUri);
|
|
90
|
-
} catch {
|
|
91
|
-
throw new Error("[STORAGE_PROVIDER_CONFIGURATION_INVALID] Google Drive OAuth redirect URI must be an absolute URL.");
|
|
92
|
-
}
|
|
93
|
-
if (parsedRedirect.protocol !== "https:" && parsedRedirect.hostname !== "localhost") {
|
|
94
|
-
throw new Error("[STORAGE_PROVIDER_CONFIGURATION_INVALID] Google Drive OAuth redirect URI must use HTTPS (localhost is allowed for development).");
|
|
95
|
-
}
|
|
96
|
-
const allowedReturnOrigins = Array.isArray(oauth.allowedReturnOrigins) ? oauth.allowedReturnOrigins.flatMap((value) => {
|
|
97
|
-
if (typeof value !== "string") return [];
|
|
98
|
-
try {
|
|
99
|
-
const url = new URL(value.trim());
|
|
100
|
-
if (url.protocol !== "https:" && url.hostname !== "localhost") return [];
|
|
101
|
-
return [url.origin];
|
|
102
|
-
} catch {
|
|
103
|
-
return [];
|
|
104
|
-
}
|
|
105
|
-
}) : [];
|
|
106
|
-
return { clientId, clientSecret, redirectUri, stateSecret, allowedReturnOrigins };
|
|
107
|
-
}
|
|
108
|
-
function decodeStorageEncryptionKey(value) {
|
|
109
|
-
if (!/^[A-Za-z0-9_-]{43}$/.test(value)) {
|
|
110
|
-
throw new Error("[STORAGE_SECRET_CONFIGURATION_INVALID] The canonical storage encryption key is malformed.");
|
|
111
|
-
}
|
|
112
|
-
const base64 = value.replace(/-/g, "+").replace(/_/g, "/").padEnd(44, "=");
|
|
113
|
-
let binary;
|
|
114
|
-
try {
|
|
115
|
-
binary = atob(base64);
|
|
116
|
-
} catch {
|
|
117
|
-
throw new Error("[STORAGE_SECRET_CONFIGURATION_INVALID] The canonical storage encryption key is malformed.");
|
|
118
|
-
}
|
|
119
|
-
const bytes = Uint8Array.from(binary, (character) => character.charCodeAt(0));
|
|
120
|
-
if (bytes.length !== 32) {
|
|
121
|
-
throw new Error("[STORAGE_SECRET_CONFIGURATION_INVALID] The canonical storage encryption key must decode to exactly 32 bytes.");
|
|
122
|
-
}
|
|
123
|
-
return bytes;
|
|
124
|
-
}
|
|
125
|
-
async function getStorageConnectionEncryptionKey(queryDb) {
|
|
126
|
-
const record = await readSystemCredentialsRecord(queryDb, "system");
|
|
127
|
-
const storage = record.credentials?.storageConnections && typeof record.credentials.storageConnections === "object" ? record.credentials.storageConnections : {};
|
|
128
|
-
const current = typeof storage.encryptionKey === "string" ? storage.encryptionKey.trim() : "";
|
|
129
|
-
if (!current) {
|
|
130
|
-
throw new Error("[STORAGE_SECRET_CONFIGURATION_MISSING] The system-owned storage encryption key is missing; encrypted user connections were not modified.");
|
|
131
|
-
}
|
|
132
|
-
decodeStorageEncryptionKey(current);
|
|
133
|
-
const version = storage.encryptionKeyVersion == null ? 1 : Number(storage.encryptionKeyVersion);
|
|
134
|
-
if (version !== 1) {
|
|
135
|
-
throw new Error("[STORAGE_SECRET_CONFIGURATION_UNSUPPORTED] The canonical storage encryption key version is not supported.");
|
|
136
|
-
}
|
|
137
|
-
return current;
|
|
138
|
-
}
|
|
139
|
-
async function getOrCreateStorageConnectionEncryptionKey(queryDb) {
|
|
140
|
-
const record = await getSystemCredentialsRecord(queryDb, "system");
|
|
141
|
-
const root = record.credentials || {};
|
|
142
|
-
const storage = root.storageConnections && typeof root.storageConnections === "object" ? root.storageConnections : {};
|
|
143
|
-
const current = typeof storage.encryptionKey === "string" ? storage.encryptionKey.trim() : "";
|
|
144
|
-
if (current) {
|
|
145
|
-
decodeStorageEncryptionKey(current);
|
|
146
|
-
const version2 = storage.encryptionKeyVersion == null ? 1 : Number(storage.encryptionKeyVersion);
|
|
147
|
-
if (version2 !== 1) {
|
|
148
|
-
throw new Error("[STORAGE_SECRET_CONFIGURATION_UNSUPPORTED] The canonical storage encryption key version is not supported.");
|
|
149
|
-
}
|
|
150
|
-
return current;
|
|
151
|
-
}
|
|
152
|
-
const bytes = crypto.getRandomValues(new Uint8Array(32));
|
|
153
|
-
let binary = "";
|
|
154
|
-
for (const byte of bytes) binary += String.fromCharCode(byte);
|
|
155
|
-
const generated = btoa(binary).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/g, "");
|
|
156
|
-
decodeStorageEncryptionKey(generated);
|
|
157
|
-
await queryDb(
|
|
158
|
-
`UPDATE public."ultrst-credentials"
|
|
159
|
-
SET credentials = jsonb_set(
|
|
160
|
-
COALESCE(credentials, '{}'::jsonb),
|
|
161
|
-
'{storageConnections}',
|
|
162
|
-
COALESCE(credentials->'storageConnections', '{}'::jsonb)
|
|
163
|
-
|| jsonb_build_object('encryptionKey', $1::text, 'encryptionKeyVersion', 1),
|
|
164
|
-
true
|
|
165
|
-
),
|
|
166
|
-
updated_at = NOW()
|
|
167
|
-
WHERE id = $2
|
|
168
|
-
AND NULLIF(credentials #>> '{storageConnections,encryptionKey}', '') IS NULL`,
|
|
169
|
-
[generated, "system"]
|
|
170
|
-
);
|
|
171
|
-
const refreshed = await getSystemCredentialsRecord(queryDb, "system");
|
|
172
|
-
const persisted = typeof refreshed.credentials?.storageConnections?.encryptionKey === "string" ? refreshed.credentials.storageConnections.encryptionKey.trim() : "";
|
|
173
|
-
if (!persisted) {
|
|
174
|
-
throw new Error("[STORAGE_SECRET_CONFIGURATION_UNAVAILABLE] Unable to resolve the canonical storage encryption key.");
|
|
175
|
-
}
|
|
176
|
-
decodeStorageEncryptionKey(persisted);
|
|
177
|
-
const version = refreshed.credentials.storageConnections.encryptionKeyVersion == null ? 1 : Number(refreshed.credentials.storageConnections.encryptionKeyVersion);
|
|
178
|
-
if (version !== 1) {
|
|
179
|
-
throw new Error("[STORAGE_SECRET_CONFIGURATION_UNSUPPORTED] The canonical storage encryption key version is not supported.");
|
|
180
|
-
}
|
|
181
|
-
return persisted;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
17
|
// src/core/storageConnectionCore.ts
|
|
185
18
|
var DEFAULT_QUERY = (sql, params) => queryUnifiedDb(sql, params);
|
|
186
19
|
var PUBLIC_FIELDS = [
|
|
@@ -8,18 +8,18 @@ import {
|
|
|
8
8
|
findUserWorkspace,
|
|
9
9
|
getWorkspaces,
|
|
10
10
|
updateWorkspace
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-F7BO3GLA.js";
|
|
12
12
|
import {
|
|
13
13
|
deleteWorkspaceFile,
|
|
14
14
|
listWorkspaceFiles,
|
|
15
15
|
readWorkspaceFile,
|
|
16
16
|
writeWorkspaceFile
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-3SDRLTD6.js";
|
|
18
18
|
import {
|
|
19
19
|
getPrimarySrklDeploymentUrl,
|
|
20
20
|
getSrklAccounts,
|
|
21
21
|
srklListBackblazeBuckets
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-IXEKOWY4.js";
|
|
23
23
|
import {
|
|
24
24
|
completeGoogleDriveAuthorization,
|
|
25
25
|
createBackblazeStorageConnection,
|
|
@@ -42,14 +42,10 @@ import {
|
|
|
42
42
|
testBackblazeCredentials,
|
|
43
43
|
testGoogleDriveConnectionForUser,
|
|
44
44
|
writeGoogleDriveFileForConnection
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-PAU25K7F.js";
|
|
46
46
|
import {
|
|
47
47
|
queryUnifiedDb
|
|
48
48
|
} from "./chunk-3RTRATDJ.js";
|
|
49
|
-
import {
|
|
50
|
-
loginSystemUser,
|
|
51
|
-
resolveUserFromToken
|
|
52
|
-
} from "./chunk-2COYZMUJ.js";
|
|
53
49
|
import {
|
|
54
50
|
authorizeB2,
|
|
55
51
|
b2DownloadFile,
|
|
@@ -67,6 +63,36 @@ import {
|
|
|
67
63
|
createServiceDefinition
|
|
68
64
|
} from "@ultrst-armada/krnl";
|
|
69
65
|
|
|
66
|
+
// src/auth/LuthOAuthUserInfo.ts
|
|
67
|
+
import { DEFAULT_LUTH_URL } from "@dinilmusick/gutts/auth";
|
|
68
|
+
async function verifyLuthOAuthAccessToken(token, transport = fetch) {
|
|
69
|
+
const clean = token.trim().replace(/^Bearer\s+/i, "");
|
|
70
|
+
if (!/^[A-Za-z0-9._~-]{16,2048}$/.test(clean)) return null;
|
|
71
|
+
try {
|
|
72
|
+
const issuer = new URL(DEFAULT_LUTH_URL);
|
|
73
|
+
const result = await transport(
|
|
74
|
+
new URL("/api/auth/oauth2/userinfo", issuer.origin),
|
|
75
|
+
{
|
|
76
|
+
method: "GET",
|
|
77
|
+
credentials: "omit",
|
|
78
|
+
cache: "no-store",
|
|
79
|
+
redirect: "error",
|
|
80
|
+
headers: { authorization: "Bearer " + clean, accept: "application/json" }
|
|
81
|
+
}
|
|
82
|
+
);
|
|
83
|
+
if (!result.ok) return null;
|
|
84
|
+
const body = await result.json();
|
|
85
|
+
if (typeof body.sub !== "string" || !body.sub || typeof body.email !== "string" || !body.email) return null;
|
|
86
|
+
return {
|
|
87
|
+
id: body.sub,
|
|
88
|
+
email: body.email,
|
|
89
|
+
name: typeof body.name === "string" ? body.name : body.email
|
|
90
|
+
};
|
|
91
|
+
} catch {
|
|
92
|
+
return null;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
70
96
|
// src/core/b2ExplorerContext.ts
|
|
71
97
|
function safeB2ExplorerPath(value) {
|
|
72
98
|
if (typeof value !== "string" || !value || value.startsWith("/") || value.includes("\\") || /[\x00-\x1f\x7f]/.test(value)) {
|
|
@@ -366,7 +392,7 @@ async function listUserWorkspaceStorageFiles(input) {
|
|
|
366
392
|
}
|
|
367
393
|
async function deleteUserWorkspaceStorageFolder(input) {
|
|
368
394
|
const context = await resolveWorkspaceContext(input, makeQuery(input.env));
|
|
369
|
-
const { deleteWorkspaceFolder } = await import("./workspaceFileCore-
|
|
395
|
+
const { deleteWorkspaceFolder } = await import("./workspaceFileCore-2KCVSECY.js");
|
|
370
396
|
await deleteWorkspaceFolder(context.workspace, context.connection, input.env);
|
|
371
397
|
}
|
|
372
398
|
|
|
@@ -546,15 +572,10 @@ var AuthServiceDefinition = createServiceDefinition({
|
|
|
546
572
|
initial: { activeSessions: 0 }
|
|
547
573
|
},
|
|
548
574
|
operations: {
|
|
549
|
-
login: {
|
|
550
|
-
id: "AuthService.login",
|
|
551
|
-
name: "login",
|
|
552
|
-
handler: async (input) => loginSystemUser(input.email, input.password, Boolean(input.isAdmin), (sql, params) => queryUnifiedDb(sql, params, input.env), input.env)
|
|
553
|
-
},
|
|
554
575
|
resolveUser: {
|
|
555
576
|
id: "AuthService.resolveUser",
|
|
556
577
|
name: "resolveUser",
|
|
557
|
-
handler: async (input) =>
|
|
578
|
+
handler: async (input) => verifyLuthOAuthAccessToken(input.accessToken)
|
|
558
579
|
}
|
|
559
580
|
}
|
|
560
581
|
});
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { SkipoBase } from '@ultrst-armada/kloks/functions/base';
|
|
2
|
-
import {
|
|
2
|
+
import type { OfficialLuthUser } from '../auth/LuthOAuthUserInfo.js';
|
|
3
|
+
export interface OAuthResourceVerifier {
|
|
4
|
+
verifyAccessToken(token: string): Promise<OfficialLuthUser | null>;
|
|
5
|
+
}
|
|
3
6
|
import { AuditLogger } from './AuditLogger.js';
|
|
4
7
|
import { DatabaseClusterManager } from './DatabaseClusterManager.js';
|
|
5
8
|
export declare class ControlPlaneManager extends SkipoBase {
|
|
6
|
-
auth:
|
|
9
|
+
auth: OAuthResourceVerifier;
|
|
7
10
|
audit: AuditLogger;
|
|
8
11
|
cluster: DatabaseClusterManager;
|
|
9
|
-
constructor(auth:
|
|
12
|
+
constructor(auth: OAuthResourceVerifier, audit: AuditLogger, cluster: DatabaseClusterManager);
|
|
10
13
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/** Portable backend surface. Node filesystem, database, server and service engines are exposed from the explicit /node adapter. */
|
|
2
2
|
export * from './api/index.js';
|
|
3
|
-
export * from './auth/CanonicalAuthClient.js';
|
|
4
3
|
export * from './storage/index.js';
|
|
5
4
|
export * from './workspace/index.js';
|
|
6
5
|
export * from './connectivity/index.js';
|
|
@@ -8,4 +7,3 @@ export * from './services/index.js';
|
|
|
8
7
|
export * from './resolver/index.js';
|
|
9
8
|
export type { Runtime, Deployment, FunctionSet, ServiceFacade, OrchestrationFn, BackendFacade, ServiceRegistryRecord, } from './architecture/types.js';
|
|
10
9
|
export * from './provider-services/index.js';
|
|
11
|
-
export * from './auth/UniversalLuthInitialization.js';
|
|
@@ -6,18 +6,14 @@ import {
|
|
|
6
6
|
calculateProviderCapacity,
|
|
7
7
|
createFlyMachine,
|
|
8
8
|
getFlyMachine,
|
|
9
|
-
getRailwayAccount,
|
|
10
9
|
invokeFlyMachineHttp,
|
|
11
|
-
listFlyApps,
|
|
12
10
|
listFlyMachines,
|
|
13
|
-
listGoogleCloudRunServices,
|
|
14
|
-
listRenderServices,
|
|
15
11
|
mutateFlyMachine,
|
|
16
12
|
rankComputeRoutes,
|
|
17
13
|
resolveComputeSpec,
|
|
18
14
|
selectComputeRoute,
|
|
19
15
|
validateComputeSpec
|
|
20
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-363J52AF.js";
|
|
21
17
|
import "./chunk-DAG2L4RN.js";
|
|
22
18
|
import {
|
|
23
19
|
isSecretMasked,
|
|
@@ -32,8 +28,12 @@ import {
|
|
|
32
28
|
} from "./chunk-CDRHYO44.js";
|
|
33
29
|
import {
|
|
34
30
|
fetchCloudflareCapacity,
|
|
35
|
-
fetchVercelCapacity
|
|
36
|
-
|
|
31
|
+
fetchVercelCapacity,
|
|
32
|
+
getRailwayAccount,
|
|
33
|
+
listFlyApps,
|
|
34
|
+
listGoogleCloudRunServices,
|
|
35
|
+
listRenderServices
|
|
36
|
+
} from "./chunk-IAW6N73D.js";
|
|
37
37
|
import {
|
|
38
38
|
getGeminiQuotaStatus,
|
|
39
39
|
listGeminiModels
|
|
@@ -99,16 +99,6 @@ import {
|
|
|
99
99
|
withCors
|
|
100
100
|
} from "./chunk-KCPQWJBO.js";
|
|
101
101
|
import "./chunk-LMY6MGFD.js";
|
|
102
|
-
import {
|
|
103
|
-
LuthAuthClient,
|
|
104
|
-
LuthAuthClient2,
|
|
105
|
-
LuthAuthError,
|
|
106
|
-
createLuthAuthClient,
|
|
107
|
-
createLuthAuthClient2,
|
|
108
|
-
createUniversalLuthRuntimeService,
|
|
109
|
-
resolveClientEnvironment,
|
|
110
|
-
resolveClientOrigin
|
|
111
|
-
} from "./chunk-MDTLU7H4.js";
|
|
112
102
|
import {
|
|
113
103
|
BackendRegistry,
|
|
114
104
|
ConcurrencyConflictError,
|
|
@@ -160,7 +150,6 @@ export {
|
|
|
160
150
|
BaseStorageAdapter,
|
|
161
151
|
COMPUTE_PROFILE_PRESETS,
|
|
162
152
|
CallbackRegistry,
|
|
163
|
-
LuthAuthClient2 as CanonicalAuthClient,
|
|
164
153
|
ConcurrencyConflictError,
|
|
165
154
|
ConcurrencyManager,
|
|
166
155
|
EventBus,
|
|
@@ -175,8 +164,6 @@ export {
|
|
|
175
164
|
JobScheduler,
|
|
176
165
|
LoadBalancer,
|
|
177
166
|
LockManager,
|
|
178
|
-
LuthAuthClient,
|
|
179
|
-
LuthAuthError,
|
|
180
167
|
RemoteExecutor,
|
|
181
168
|
SequenceTracker,
|
|
182
169
|
UnsupportedStorageOperation,
|
|
@@ -193,7 +180,6 @@ export {
|
|
|
193
180
|
continueDropboxFolder,
|
|
194
181
|
createBackblazeB2StorageService,
|
|
195
182
|
createBackendClient,
|
|
196
|
-
createLuthAuthClient2 as createCanonicalAuthClient,
|
|
197
183
|
createCanonicalStorageService,
|
|
198
184
|
createDropboxStorageService,
|
|
199
185
|
createEmptyContract,
|
|
@@ -201,10 +187,8 @@ export {
|
|
|
201
187
|
createFlyMachine,
|
|
202
188
|
createGitHubStorageService,
|
|
203
189
|
createGoogleDriveStorageService,
|
|
204
|
-
createLuthAuthClient,
|
|
205
190
|
createProviderClient,
|
|
206
191
|
createSSEResponse,
|
|
207
|
-
createUniversalLuthRuntimeService,
|
|
208
192
|
b2DownloadFile as downloadBackblazeB2File,
|
|
209
193
|
fetchCloudflareCapacity,
|
|
210
194
|
fetchVercelCapacity,
|
|
@@ -248,8 +232,6 @@ export {
|
|
|
248
232
|
rankComputeRoutes,
|
|
249
233
|
readOnlyService,
|
|
250
234
|
resolveBackblazeEndpoint,
|
|
251
|
-
resolveClientEnvironment,
|
|
252
|
-
resolveClientOrigin,
|
|
253
235
|
resolveComputeSpec,
|
|
254
236
|
resolveProviderServiceId,
|
|
255
237
|
resolveSystemDatabaseUrl,
|
|
@@ -27,14 +27,14 @@ import {
|
|
|
27
27
|
krnlStorageServiceFacade,
|
|
28
28
|
krnlWorkspaceServiceDefinition,
|
|
29
29
|
krnlWorkspaceServiceFacade
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-YFISFDBW.js";
|
|
31
31
|
import "./chunk-FZKBTF34.js";
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-F7BO3GLA.js";
|
|
33
|
+
import "./chunk-3SDRLTD6.js";
|
|
34
|
+
import "./chunk-IXEKOWY4.js";
|
|
35
|
+
import "./chunk-PAU25K7F.js";
|
|
36
|
+
import "./chunk-7HD7OEUY.js";
|
|
36
37
|
import "./chunk-3RTRATDJ.js";
|
|
37
|
-
import "./chunk-2COYZMUJ.js";
|
|
38
38
|
import "./chunk-I6T64MLT.js";
|
|
39
39
|
import "./chunk-IP6XWQU2.js";
|
|
40
40
|
import "./chunk-EMSSTOOK.js";
|
|
@@ -7,7 +7,6 @@ export * from './data/index.js';
|
|
|
7
7
|
export * from './connectivity/index.js';
|
|
8
8
|
export * from './client/index.js';
|
|
9
9
|
export * from './srkl/index.js';
|
|
10
|
-
export * from './luth/index.js';
|
|
11
10
|
export type { Runtime, Deployment, FunctionSet, ServiceFacade, OrchestrationFn, BackendFacade, ServiceRegistryRecord, } from './architecture/types.js';
|
|
12
11
|
export { validateServiceDefinition } from './architecture/types.js';
|
|
13
12
|
export * from './services/node.js';
|