@camstack/core 0.1.22 → 0.1.24
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/dist/builtins/auth-orchestrator/auth-orchestrator.addon.d.ts.map +1 -1
- package/dist/builtins/auth-orchestrator/auth-orchestrator.addon.js +0 -1
- package/dist/builtins/auth-orchestrator/auth-orchestrator.addon.js.map +1 -1
- package/dist/builtins/auth-orchestrator/auth-orchestrator.addon.mjs +0 -1
- package/dist/builtins/auth-orchestrator/auth-orchestrator.addon.mjs.map +1 -1
- package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.d.ts.map +1 -1
- package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +0 -1
- package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js.map +1 -1
- package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +0 -1
- package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs.map +1 -1
- package/dist/builtins/turn-orchestrator/turn-orchestrator.addon.d.ts.map +1 -1
- package/dist/builtins/turn-orchestrator/turn-orchestrator.addon.js +0 -1
- package/dist/builtins/turn-orchestrator/turn-orchestrator.addon.js.map +1 -1
- package/dist/builtins/turn-orchestrator/turn-orchestrator.addon.mjs +0 -1
- package/dist/builtins/turn-orchestrator/turn-orchestrator.addon.mjs.map +1 -1
- package/dist/index.js +8 -47
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -47
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -31,7 +31,7 @@ import { promisify } from "node:util";
|
|
|
31
31
|
import { errMsg, parseJsonObject } from "@camstack/types";
|
|
32
32
|
import * as vm from "node:vm";
|
|
33
33
|
import * as os from "node:os";
|
|
34
|
-
//#region ../types/dist/auth-records-
|
|
34
|
+
//#region ../types/dist/auth-records-COv3plzv.mjs
|
|
35
35
|
var MODEL_FORMATS = [
|
|
36
36
|
"onnx",
|
|
37
37
|
"coreml",
|
|
@@ -3302,21 +3302,6 @@ var AuthProviderInfoSchema = z.object({
|
|
|
3302
3302
|
addonId: z.string(),
|
|
3303
3303
|
/** Display label shown on the login button + admin row. */
|
|
3304
3304
|
displayName: z.string(),
|
|
3305
|
-
/**
|
|
3306
|
-
* Provider kind — drives icon + grouping in admin UI.
|
|
3307
|
-
* - `local` — username/password form (always at top of login page)
|
|
3308
|
-
* - `oidc` — OpenID Connect (Google, Microsoft, Okta, generic)
|
|
3309
|
-
* - `saml` — SAML 2.0
|
|
3310
|
-
* - `ldap` — LDAP / Active Directory
|
|
3311
|
-
* - `other` — anything else (custom integrations)
|
|
3312
|
-
*/
|
|
3313
|
-
kind: z.enum([
|
|
3314
|
-
"local",
|
|
3315
|
-
"oidc",
|
|
3316
|
-
"saml",
|
|
3317
|
-
"ldap",
|
|
3318
|
-
"other"
|
|
3319
|
-
]),
|
|
3320
3305
|
/** Optional iconography hint (lucide-react icon name OR emoji). */
|
|
3321
3306
|
icon: z.string().optional(),
|
|
3322
3307
|
/** When true, the provider exposes a redirect-based login flow
|
|
@@ -3359,21 +3344,8 @@ var RemoteAccessEndpointSchema = z.object({
|
|
|
3359
3344
|
var RemoteAccessProviderInfoSchema = z.object({
|
|
3360
3345
|
/** Stable id matching the addon id. */
|
|
3361
3346
|
addonId: z.string(),
|
|
3362
|
-
/** Display label shown on the admin row. */
|
|
3347
|
+
/** Display label shown on the admin row — sourced from the addon manifest. */
|
|
3363
3348
|
displayName: z.string(),
|
|
3364
|
-
/**
|
|
3365
|
-
* Provider kind — drives icon + status formatting.
|
|
3366
|
-
* - `cloudflare-tunnel`
|
|
3367
|
-
* - `ngrok`
|
|
3368
|
-
* - `tailscale`
|
|
3369
|
-
* - `other`
|
|
3370
|
-
*/
|
|
3371
|
-
kind: z.enum([
|
|
3372
|
-
"cloudflare-tunnel",
|
|
3373
|
-
"ngrok",
|
|
3374
|
-
"tailscale",
|
|
3375
|
-
"other"
|
|
3376
|
-
]),
|
|
3377
3349
|
/** When false, the provider is registered but disabled. */
|
|
3378
3350
|
enabled: z.boolean(),
|
|
3379
3351
|
/** True when the underlying tunnel/connection is up. */
|
|
@@ -3400,21 +3372,8 @@ method(z.void(), z.array(TurnServerSchema).readonly());
|
|
|
3400
3372
|
var TurnProviderInfoSchema = z.object({
|
|
3401
3373
|
/** Stable id matching the addon id. */
|
|
3402
3374
|
addonId: z.string(),
|
|
3403
|
-
/** Display label shown on the admin row. */
|
|
3375
|
+
/** Display label shown on the admin row — sourced from the addon manifest. */
|
|
3404
3376
|
displayName: z.string(),
|
|
3405
|
-
/**
|
|
3406
|
-
* Provider kind — drives icon + grouping.
|
|
3407
|
-
* - `cloudflare` — Cloudflare TURN
|
|
3408
|
-
* - `coturn` — self-hosted coturn
|
|
3409
|
-
* - `twilio` — Twilio Network Traversal
|
|
3410
|
-
* - `other` — anything else
|
|
3411
|
-
*/
|
|
3412
|
-
kind: z.enum([
|
|
3413
|
-
"cloudflare",
|
|
3414
|
-
"coturn",
|
|
3415
|
-
"twilio",
|
|
3416
|
-
"other"
|
|
3417
|
-
]),
|
|
3418
3377
|
/** When false, the provider is registered but disabled. */
|
|
3419
3378
|
enabled: z.boolean(),
|
|
3420
3379
|
/** Number of servers this provider is currently exposing. */
|
|
@@ -4545,7 +4504,8 @@ var UserRoleSchema$1 = z.enum([
|
|
|
4545
4504
|
"super_admin",
|
|
4546
4505
|
"admin",
|
|
4547
4506
|
"viewer",
|
|
4548
|
-
"agent"
|
|
4507
|
+
"agent",
|
|
4508
|
+
"scoped"
|
|
4549
4509
|
]);
|
|
4550
4510
|
var UserSummarySchema = z.object({
|
|
4551
4511
|
id: z.string(),
|
|
@@ -5035,7 +4995,7 @@ method(z.void(), z.array(AddonListItemSchema).readonly()), method(z.object({
|
|
|
5035
4995
|
addonId: z.string(),
|
|
5036
4996
|
limit: z.number().min(1).max(500).default(100),
|
|
5037
4997
|
level: LogLevelSchema.optional()
|
|
5038
|
-
}), z.array(LogQueryEntrySchema)
|
|
4998
|
+
}), z.array(LogQueryEntrySchema)), method(z.void(), z.array(InstalledPackageSchema).readonly()), method(z.object({
|
|
5039
4999
|
packageName: z.string(),
|
|
5040
5000
|
version: z.string().optional()
|
|
5041
5001
|
}), InstallPackageResultSchema, {
|
|
@@ -5094,7 +5054,8 @@ var UserRoleSchema = z.enum([
|
|
|
5094
5054
|
"super_admin",
|
|
5095
5055
|
"admin",
|
|
5096
5056
|
"viewer",
|
|
5097
|
-
"agent"
|
|
5057
|
+
"agent",
|
|
5058
|
+
"scoped"
|
|
5098
5059
|
]);
|
|
5099
5060
|
var AllowedProviderSchema = z.union([z.literal("*"), z.array(z.string())]);
|
|
5100
5061
|
var AllowedDevicesSchema = z.record(z.string(), z.union([z.literal("*"), z.array(z.string())]));
|