@camstack/addon-pipeline-orchestrator 0.1.13 → 0.1.14
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/@mf-types.zip +0 -0
- package/dist/__mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.mjs-DJg6MN3o.mjs +20 -0
- package/dist/__mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.mjs-DFjvaOLq.mjs +34 -0
- package/dist/_stub.js +2 -2
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_orchestrator_widgets-CPFxFaeP.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_orchestrator_widgets-sOGV7J8L.mjs} +6 -6
- package/dist/{hostInit-C2nlXV13.mjs → hostInit-ClDM91fS.mjs} +6 -6
- package/dist/{index-COebxMhm.mjs → index-BP0-1QYT.mjs} +1923 -2181
- package/dist/{index-CIjsCPwy.mjs → index-D3EnGJOk.mjs} +572 -569
- package/dist/{index-DfLih_hW.mjs → index-culBovFl.mjs} +1 -1
- package/dist/index.js +28 -230
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +28 -230
- package/dist/index.mjs.map +1 -1
- package/dist/remoteEntry.js +1 -1
- package/package.json +1 -1
- package/dist/__mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.mjs-B47e6UPj.mjs +0 -20
- package/dist/__mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.mjs-BErlAIMU.mjs +0 -34
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as _e, b as x, A as be, n as ve } from "./__mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_trpc_mf_1_client__loadShare__.mjs-D4eEXltm.mjs";
|
|
2
|
-
import { a as V, b as Ee } from "./__mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.mjs-
|
|
2
|
+
import { a as V, b as Ee } from "./__mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.mjs-DJg6MN3o.mjs";
|
|
3
3
|
class Pe {
|
|
4
4
|
constructor() {
|
|
5
5
|
this.keyToValue = /* @__PURE__ */ new Map(), this.valueToKey = /* @__PURE__ */ new Map();
|
package/dist/index.js
CHANGED
|
@@ -10294,51 +10294,6 @@ const AuthResultSchema = object({
|
|
|
10294
10294
|
validateToken: method(object({ token: string() }), AuthResultSchema.nullable())
|
|
10295
10295
|
}
|
|
10296
10296
|
});
|
|
10297
|
-
const AuthProviderInfoSchema = object({
|
|
10298
|
-
/** Stable id matching the addon id (used for `getLoginUrl({addonId,…})`). */
|
|
10299
|
-
addonId: string(),
|
|
10300
|
-
/**
|
|
10301
|
-
* Per-instance id when one addon registers multiple "logical"
|
|
10302
|
-
* providers (e.g. OIDC with Google + Microsoft + custom). The login
|
|
10303
|
-
* URL becomes `/addon/${addonId}/${instanceId}/start` — handler reads
|
|
10304
|
-
* `:instanceId` from the route. Empty/unset means the addon is a
|
|
10305
|
-
* single-instance provider; the URL is `/addon/${addonId}/start`.
|
|
10306
|
-
*/
|
|
10307
|
-
instanceId: string().optional(),
|
|
10308
|
-
/** Display label shown on the login button + admin row. */
|
|
10309
|
-
displayName: string(),
|
|
10310
|
-
/** Optional iconography hint (lucide-react icon name OR emoji). */
|
|
10311
|
-
icon: string().optional(),
|
|
10312
|
-
/** When true, the provider exposes a redirect-based login flow
|
|
10313
|
-
* (`getLoginUrl` returns a URL the browser navigates to). */
|
|
10314
|
-
hasRedirectFlow: boolean(),
|
|
10315
|
-
/** When true, the provider exposes a credential-form login flow
|
|
10316
|
-
* (`validateCredentials` accepts username + password). */
|
|
10317
|
-
hasCredentialFlow: boolean(),
|
|
10318
|
-
/** Provider kind, drives admin-UI hint dispatch (oidc / saml / totp / …). */
|
|
10319
|
-
kind: string().optional(),
|
|
10320
|
-
/** Operator-facing status string (e.g. "Connected to https://login.acme.com"). */
|
|
10321
|
-
status: string().optional(),
|
|
10322
|
-
/** When false, the provider is registered but disabled by config; the
|
|
10323
|
-
* UI surfaces it as inactive without enumerating it for login. */
|
|
10324
|
-
enabled: boolean()
|
|
10325
|
-
});
|
|
10326
|
-
({
|
|
10327
|
-
methods: {
|
|
10328
|
-
/** All registered auth providers, both enabled and disabled. */
|
|
10329
|
-
listProviders: method(_void(), array(AuthProviderInfoSchema).readonly()),
|
|
10330
|
-
/**
|
|
10331
|
-
* Toggle a provider's enabled flag. Disabled providers stay
|
|
10332
|
-
* registered but aren't surfaced on the login page. The orchestrator
|
|
10333
|
-
* persists the state in `addon-settings` so it survives restarts.
|
|
10334
|
-
*/
|
|
10335
|
-
setProviderEnabled: method(
|
|
10336
|
-
object({ addonId: string(), enabled: boolean() }),
|
|
10337
|
-
object({ success: literal(true) }),
|
|
10338
|
-
{ kind: "mutation", auth: "admin" }
|
|
10339
|
-
)
|
|
10340
|
-
}
|
|
10341
|
-
});
|
|
10342
10297
|
const NetworkEndpointSchema = object({
|
|
10343
10298
|
url: string(),
|
|
10344
10299
|
hostname: string(),
|
|
@@ -10370,55 +10325,13 @@ const NetworkEndpointEntrySchema = NetworkEndpointSchema.extend({
|
|
|
10370
10325
|
getEndpoint: method(_void(), NetworkEndpointSchema.nullable()),
|
|
10371
10326
|
getStatus: method(_void(), NetworkAccessStatusSchema),
|
|
10372
10327
|
/**
|
|
10373
|
-
* Enumerate every active ingress entry.
|
|
10374
|
-
*
|
|
10375
|
-
*
|
|
10328
|
+
* Enumerate every active ingress entry. Providers that expose only a
|
|
10329
|
+
* single endpoint may omit this method; callers fall back to
|
|
10330
|
+
* `getEndpoint()` in that case.
|
|
10376
10331
|
*/
|
|
10377
10332
|
listEndpoints: method(_void(), array(NetworkEndpointEntrySchema).readonly())
|
|
10378
10333
|
}
|
|
10379
10334
|
});
|
|
10380
|
-
const RemoteAccessEndpointSchema = object({
|
|
10381
|
-
url: string(),
|
|
10382
|
-
hostname: string(),
|
|
10383
|
-
port: number(),
|
|
10384
|
-
protocol: _enum(["http", "https"])
|
|
10385
|
-
});
|
|
10386
|
-
const RemoteAccessProviderInfoSchema = object({
|
|
10387
|
-
/** Stable id matching the addon id. */
|
|
10388
|
-
addonId: string(),
|
|
10389
|
-
/** Display label shown on the admin row — sourced from the addon manifest. */
|
|
10390
|
-
displayName: string(),
|
|
10391
|
-
/** When false, the provider is registered but disabled. */
|
|
10392
|
-
enabled: boolean(),
|
|
10393
|
-
/** True when the underlying tunnel/connection is up. */
|
|
10394
|
-
connected: boolean(),
|
|
10395
|
-
/** Public-facing endpoint, when connected. Null otherwise. */
|
|
10396
|
-
endpoint: RemoteAccessEndpointSchema.nullable(),
|
|
10397
|
-
/** Last error message (when connected=false), if available. */
|
|
10398
|
-
error: string().optional()
|
|
10399
|
-
});
|
|
10400
|
-
({
|
|
10401
|
-
methods: {
|
|
10402
|
-
/** All registered remote-access providers + their live status. */
|
|
10403
|
-
listProviders: method(_void(), array(RemoteAccessProviderInfoSchema).readonly()),
|
|
10404
|
-
/**
|
|
10405
|
-
* Start a specific provider's tunnel. Per-provider config still
|
|
10406
|
-
* lives on the addon's settings panel; this is just the on/off
|
|
10407
|
-
* trigger so the admin UI can manage the lifecycle from one place.
|
|
10408
|
-
*/
|
|
10409
|
-
startProvider: method(
|
|
10410
|
-
object({ addonId: string() }),
|
|
10411
|
-
RemoteAccessEndpointSchema,
|
|
10412
|
-
{ kind: "mutation", auth: "admin" }
|
|
10413
|
-
),
|
|
10414
|
-
/** Stop a specific provider's tunnel (idempotent on already-stopped). */
|
|
10415
|
-
stopProvider: method(
|
|
10416
|
-
object({ addonId: string() }),
|
|
10417
|
-
object({ success: literal(true) }),
|
|
10418
|
-
{ kind: "mutation", auth: "admin" }
|
|
10419
|
-
)
|
|
10420
|
-
}
|
|
10421
|
-
});
|
|
10422
10335
|
const TurnServerSchema = object({
|
|
10423
10336
|
/** Single URL or list of URLs (e.g. "turn:turn.example.com:3478?transport=udp"). */
|
|
10424
10337
|
urls: union([string(), array(string())]),
|
|
@@ -10438,45 +10351,6 @@ const TurnServerSchema = object({
|
|
|
10438
10351
|
)
|
|
10439
10352
|
}
|
|
10440
10353
|
});
|
|
10441
|
-
const TurnProviderInfoSchema = object({
|
|
10442
|
-
/** Stable id matching the addon id. */
|
|
10443
|
-
addonId: string(),
|
|
10444
|
-
/** Display label shown on the admin row — sourced from the addon manifest. */
|
|
10445
|
-
displayName: string(),
|
|
10446
|
-
/** When false, the provider is registered but disabled. */
|
|
10447
|
-
enabled: boolean(),
|
|
10448
|
-
/** Number of servers this provider is currently exposing. */
|
|
10449
|
-
serverCount: number(),
|
|
10450
|
-
/**
|
|
10451
|
-
* Flat list of every TURN/STUN URL this provider currently exposes.
|
|
10452
|
-
* One row per URL (multi-URL ICE server entries are flattened). The
|
|
10453
|
-
* admin UI shows this in a compact per-provider list so operators
|
|
10454
|
-
* can verify what's actually being negotiated without having to dig
|
|
10455
|
-
* into the combined `getAllServers` output.
|
|
10456
|
-
*/
|
|
10457
|
-
urls: array(string()).readonly(),
|
|
10458
|
-
/** Last fetch error (when serverCount=0 due to API failure), if any. */
|
|
10459
|
-
error: string().optional()
|
|
10460
|
-
});
|
|
10461
|
-
({
|
|
10462
|
-
methods: {
|
|
10463
|
-
/** All registered TURN providers + per-provider stats. */
|
|
10464
|
-
listProviders: method(_void(), array(TurnProviderInfoSchema).readonly()),
|
|
10465
|
-
/**
|
|
10466
|
-
* Combined list of TURN/STUN servers from all ENABLED providers.
|
|
10467
|
-
* Consumed by the WebRTC layer at session-creation time —
|
|
10468
|
-
* implementations may fetch fresh short-lived credentials each
|
|
10469
|
-
* call (e.g. Cloudflare API), so consumers SHOULD call per-session.
|
|
10470
|
-
*/
|
|
10471
|
-
getAllServers: method(_void(), array(TurnServerSchema).readonly()),
|
|
10472
|
-
/** Toggle a provider's enabled flag. */
|
|
10473
|
-
setProviderEnabled: method(
|
|
10474
|
-
object({ addonId: string(), enabled: boolean() }),
|
|
10475
|
-
object({ success: literal(true) }),
|
|
10476
|
-
{ kind: "mutation", auth: "admin" }
|
|
10477
|
-
)
|
|
10478
|
-
}
|
|
10479
|
-
});
|
|
10480
10354
|
const SnapshotImageSchema = object({
|
|
10481
10355
|
base64: string(),
|
|
10482
10356
|
contentType: string()
|
|
@@ -11944,7 +11818,7 @@ const AllowedAddressesSchema = object({
|
|
|
11944
11818
|
)
|
|
11945
11819
|
}
|
|
11946
11820
|
});
|
|
11947
|
-
const MeshEndpointSchema
|
|
11821
|
+
const MeshEndpointSchema = object({
|
|
11948
11822
|
/** Stable identifier within the provider (e.g. `mesh-ipv4`, `magicdns`, `funnel`). */
|
|
11949
11823
|
id: string(),
|
|
11950
11824
|
/** Operator-facing label (e.g. "Mesh IPv4", "MagicDNS"). */
|
|
@@ -12017,7 +11891,7 @@ const MeshStatusSchema = object({
|
|
|
12017
11891
|
/** Number of peers visible to this host (excluding self). */
|
|
12018
11892
|
peerCount: number(),
|
|
12019
11893
|
/** Every endpoint this provider exposes for the current host. */
|
|
12020
|
-
endpoints: array(MeshEndpointSchema
|
|
11894
|
+
endpoints: array(MeshEndpointSchema).readonly(),
|
|
12021
11895
|
/** Last error from the daemon, when not joined. */
|
|
12022
11896
|
error: string().optional(),
|
|
12023
11897
|
// ── Account / tenant identity (generic across providers) ────────
|
|
@@ -12180,105 +12054,6 @@ const MeshStatusSchema = object({
|
|
|
12180
12054
|
// tabs driven by this cap.
|
|
12181
12055
|
}
|
|
12182
12056
|
});
|
|
12183
|
-
const MeshEndpointSchema = object({
|
|
12184
|
-
id: string(),
|
|
12185
|
-
label: string(),
|
|
12186
|
-
scope: _enum(["mesh", "public"]),
|
|
12187
|
-
url: string(),
|
|
12188
|
-
hostname: string(),
|
|
12189
|
-
port: number(),
|
|
12190
|
-
protocol: _enum(["http", "https"])
|
|
12191
|
-
});
|
|
12192
|
-
const MeshProviderInfoSchema = object({
|
|
12193
|
-
/** Stable id matching the addon id. */
|
|
12194
|
-
addonId: string(),
|
|
12195
|
-
/** Display label shown on the admin row — sourced from the addon manifest. */
|
|
12196
|
-
displayName: string(),
|
|
12197
|
-
/** True when the host is joined to this provider's mesh. */
|
|
12198
|
-
joined: boolean(),
|
|
12199
|
-
/** Local mesh IP (empty when not joined). */
|
|
12200
|
-
meshIp: string(),
|
|
12201
|
-
/** MagicDNS / mesh hostname (empty when not configured). */
|
|
12202
|
-
magicDnsHostname: string(),
|
|
12203
|
-
/** Peer count (excluding self). */
|
|
12204
|
-
peerCount: number(),
|
|
12205
|
-
/** Active endpoints (mesh IP + MagicDNS + optional public Funnel). */
|
|
12206
|
-
endpoints: array(MeshEndpointSchema).readonly(),
|
|
12207
|
-
/** Last error reported by the provider. */
|
|
12208
|
-
error: string().optional(),
|
|
12209
|
-
// ── Generic identity fields mirrored from MeshStatus ─────────────
|
|
12210
|
-
/** Tenant / tailnet / network display name. Empty pre-join. */
|
|
12211
|
-
tenantName: string(),
|
|
12212
|
-
/** Mesh DNS suffix (e.g. tailXXXX.ts.net). Empty when not configured. */
|
|
12213
|
-
magicDnsSuffix: string(),
|
|
12214
|
-
/** Authenticated user / account login. Null for token-only providers. */
|
|
12215
|
-
userLogin: string().nullable(),
|
|
12216
|
-
/** Provider control-plane URL. */
|
|
12217
|
-
controlPlaneUrl: string(),
|
|
12218
|
-
/** Machine-key expiry (epoch ms). Null when keys don't rotate. */
|
|
12219
|
-
keyExpiry: number().nullable()
|
|
12220
|
-
});
|
|
12221
|
-
({
|
|
12222
|
-
methods: {
|
|
12223
|
-
/** All registered mesh-network providers + live status. */
|
|
12224
|
-
listProviders: method(_void(), array(MeshProviderInfoSchema).readonly()),
|
|
12225
|
-
/**
|
|
12226
|
-
* Join the mesh of a specific provider. Per-provider config still
|
|
12227
|
-
* lives on its settings panel; the orchestrator forwards.
|
|
12228
|
-
*/
|
|
12229
|
-
joinProvider: method(
|
|
12230
|
-
object({
|
|
12231
|
-
addonId: string(),
|
|
12232
|
-
authKey: string().min(8),
|
|
12233
|
-
hostname: string().optional()
|
|
12234
|
-
}),
|
|
12235
|
-
object({ joined: literal(true) }),
|
|
12236
|
-
{ kind: "mutation" }
|
|
12237
|
-
),
|
|
12238
|
-
leaveProvider: method(
|
|
12239
|
-
object({ addonId: string() }),
|
|
12240
|
-
object({ success: literal(true) }),
|
|
12241
|
-
{ kind: "mutation" }
|
|
12242
|
-
),
|
|
12243
|
-
/**
|
|
12244
|
-
* Browser-redirect login flow. Forwards to the named provider's
|
|
12245
|
-
* `mesh-network.startLogin` and returns the URL the daemon
|
|
12246
|
-
* prints. UI opens it in a new tab, then polls `listProviders`
|
|
12247
|
-
* for `joined: true`.
|
|
12248
|
-
*/
|
|
12249
|
-
startLoginProvider: method(
|
|
12250
|
-
object({
|
|
12251
|
-
addonId: string(),
|
|
12252
|
-
hostname: string().optional()
|
|
12253
|
-
}),
|
|
12254
|
-
object({ loginUrl: string() }),
|
|
12255
|
-
{ kind: "mutation" }
|
|
12256
|
-
),
|
|
12257
|
-
/**
|
|
12258
|
-
* Sign out of the provider's account entirely (`mesh-network.logout`).
|
|
12259
|
-
* Distinct from `leaveProvider` which only takes the host off-mesh;
|
|
12260
|
-
* `logoutProvider` wipes credentials so the next start requires a
|
|
12261
|
-
* fresh login.
|
|
12262
|
-
*/
|
|
12263
|
-
logoutProvider: method(
|
|
12264
|
-
object({ addonId: string() }),
|
|
12265
|
-
object({ loggedOut: literal(true) }),
|
|
12266
|
-
{ kind: "mutation" }
|
|
12267
|
-
),
|
|
12268
|
-
/**
|
|
12269
|
-
* Per-provider peer list. Forwards to `mesh-network.listPeers` on
|
|
12270
|
-
* the addressed provider. Separate from `listProviders` because
|
|
12271
|
-
* peer payloads can be large on a heavily-populated tailnet —
|
|
12272
|
-
* fetch only when the operator opens the Peers tab.
|
|
12273
|
-
*/
|
|
12274
|
-
listProviderPeers: method(
|
|
12275
|
-
object({ addonId: string() }),
|
|
12276
|
-
object({
|
|
12277
|
-
peers: array(MeshPeerSchema).readonly()
|
|
12278
|
-
})
|
|
12279
|
-
)
|
|
12280
|
-
}
|
|
12281
|
-
});
|
|
12282
12057
|
const MethodAccessSchema = _enum(["view", "create", "delete"]);
|
|
12283
12058
|
const AllowedProviderSchema = union([literal("*"), array(string())]);
|
|
12284
12059
|
const AllowedDevicesSchema = record(string(), union([literal("*"), array(string())]));
|
|
@@ -13148,6 +12923,29 @@ const CustomActionInputSchema = object({
|
|
|
13148
12923
|
isActive: boolean()
|
|
13149
12924
|
})).readonly()
|
|
13150
12925
|
),
|
|
12926
|
+
/**
|
|
12927
|
+
* Toggle a single collection-cap provider on/off. Generic write-side
|
|
12928
|
+
* counterpart of `listCapabilityProviders` — drives the per-provider
|
|
12929
|
+
* Enable/Disable affordance in admin pages (TURN servers, etc.)
|
|
12930
|
+
* without needing a bespoke orchestrator cap.
|
|
12931
|
+
*
|
|
12932
|
+
* Reaches the hub's `CapabilityRegistry` directly:
|
|
12933
|
+
* `enableCollectionProvider` / `disableCollectionProvider` flip the
|
|
12934
|
+
* registry-level `disabledProviders` set. `getCollectionEntries`
|
|
12935
|
+
* already filters disabled providers out, so a disabled provider
|
|
12936
|
+
* drops out of every collection aggregate immediately. Only valid
|
|
12937
|
+
* for `mode: 'collection'` caps — the registry no-ops + warns for
|
|
12938
|
+
* singletons.
|
|
12939
|
+
*/
|
|
12940
|
+
setCapabilityProviderEnabled: method(
|
|
12941
|
+
object({
|
|
12942
|
+
capName: string().min(1),
|
|
12943
|
+
addonId: string().min(1),
|
|
12944
|
+
enabled: boolean()
|
|
12945
|
+
}),
|
|
12946
|
+
object({ success: literal(true) }),
|
|
12947
|
+
{ kind: "mutation", auth: "admin" }
|
|
12948
|
+
),
|
|
13151
12949
|
/**
|
|
13152
12950
|
* Live-update one of the framework packages marked
|
|
13153
12951
|
* `camstack.system: true` (`@camstack/types|kernel|core|sdk|ui-library`).
|