@camstack/addon-export-hap 0.1.3 → 0.1.4

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.
@@ -4649,7 +4649,7 @@ function _instanceof(cls, params = {}) {
4649
4649
  return inst;
4650
4650
  }
4651
4651
  //#endregion
4652
- //#region ../types/dist/index-Ce7RZWP4.mjs
4652
+ //#region ../types/dist/index-CWhQOnm9.mjs
4653
4653
  var MODEL_FORMATS = [
4654
4654
  "onnx",
4655
4655
  "coreml",
@@ -8288,42 +8288,6 @@ method(object({
8288
8288
  username: string(),
8289
8289
  password: string()
8290
8290
  }), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
8291
- var AuthProviderInfoSchema = object({
8292
- /** Stable id matching the addon id (used for `getLoginUrl({addonId,…})`). */
8293
- addonId: string(),
8294
- /**
8295
- * Per-instance id when one addon registers multiple "logical"
8296
- * providers (e.g. OIDC with Google + Microsoft + custom). The login
8297
- * URL becomes `/addon/${addonId}/${instanceId}/start` — handler reads
8298
- * `:instanceId` from the route. Empty/unset means the addon is a
8299
- * single-instance provider; the URL is `/addon/${addonId}/start`.
8300
- */
8301
- instanceId: string().optional(),
8302
- /** Display label shown on the login button + admin row. */
8303
- displayName: string(),
8304
- /** Optional iconography hint (lucide-react icon name OR emoji). */
8305
- icon: string().optional(),
8306
- /** When true, the provider exposes a redirect-based login flow
8307
- * (`getLoginUrl` returns a URL the browser navigates to). */
8308
- hasRedirectFlow: boolean(),
8309
- /** When true, the provider exposes a credential-form login flow
8310
- * (`validateCredentials` accepts username + password). */
8311
- hasCredentialFlow: boolean(),
8312
- /** Provider kind, drives admin-UI hint dispatch (oidc / saml / totp / …). */
8313
- kind: string().optional(),
8314
- /** Operator-facing status string (e.g. "Connected to https://login.acme.com"). */
8315
- status: string().optional(),
8316
- /** When false, the provider is registered but disabled by config; the
8317
- * UI surfaces it as inactive without enumerating it for login. */
8318
- enabled: boolean()
8319
- });
8320
- method(_void(), array(AuthProviderInfoSchema).readonly()), method(object({
8321
- addonId: string(),
8322
- enabled: boolean()
8323
- }), object({ success: literal(true) }), {
8324
- kind: "mutation",
8325
- auth: "admin"
8326
- });
8327
8291
  var NetworkEndpointSchema = object({
8328
8292
  url: string(),
8329
8293
  hostname: string(),
@@ -8349,33 +8313,6 @@ var NetworkEndpointEntrySchema = NetworkEndpointSchema.extend({
8349
8313
  sourcePort: number().optional()
8350
8314
  });
8351
8315
  method(_void(), NetworkEndpointSchema, { kind: "mutation" }), method(_void(), _void(), { kind: "mutation" }), method(_void(), NetworkEndpointSchema.nullable()), method(_void(), NetworkAccessStatusSchema), method(_void(), array(NetworkEndpointEntrySchema).readonly());
8352
- var RemoteAccessEndpointSchema = object({
8353
- url: string(),
8354
- hostname: string(),
8355
- port: number(),
8356
- protocol: _enum(["http", "https"])
8357
- });
8358
- var RemoteAccessProviderInfoSchema = object({
8359
- /** Stable id matching the addon id. */
8360
- addonId: string(),
8361
- /** Display label shown on the admin row — sourced from the addon manifest. */
8362
- displayName: string(),
8363
- /** When false, the provider is registered but disabled. */
8364
- enabled: boolean(),
8365
- /** True when the underlying tunnel/connection is up. */
8366
- connected: boolean(),
8367
- /** Public-facing endpoint, when connected. Null otherwise. */
8368
- endpoint: RemoteAccessEndpointSchema.nullable(),
8369
- /** Last error message (when connected=false), if available. */
8370
- error: string().optional()
8371
- });
8372
- method(_void(), array(RemoteAccessProviderInfoSchema).readonly()), method(object({ addonId: string() }), RemoteAccessEndpointSchema, {
8373
- kind: "mutation",
8374
- auth: "admin"
8375
- }), method(object({ addonId: string() }), object({ success: literal(true) }), {
8376
- kind: "mutation",
8377
- auth: "admin"
8378
- });
8379
8316
  var TurnServerSchema = object({
8380
8317
  /** Single URL or list of URLs (e.g. "turn:turn.example.com:3478?transport=udp"). */
8381
8318
  urls: union([string(), array(string())]),
@@ -8383,33 +8320,6 @@ var TurnServerSchema = object({
8383
8320
  credential: string().optional()
8384
8321
  });
8385
8322
  method(_void(), array(TurnServerSchema).readonly());
8386
- var TurnProviderInfoSchema = object({
8387
- /** Stable id matching the addon id. */
8388
- addonId: string(),
8389
- /** Display label shown on the admin row — sourced from the addon manifest. */
8390
- displayName: string(),
8391
- /** When false, the provider is registered but disabled. */
8392
- enabled: boolean(),
8393
- /** Number of servers this provider is currently exposing. */
8394
- serverCount: number(),
8395
- /**
8396
- * Flat list of every TURN/STUN URL this provider currently exposes.
8397
- * One row per URL (multi-URL ICE server entries are flattened). The
8398
- * admin UI shows this in a compact per-provider list so operators
8399
- * can verify what's actually being negotiated without having to dig
8400
- * into the combined `getAllServers` output.
8401
- */
8402
- urls: array(string()).readonly(),
8403
- /** Last fetch error (when serverCount=0 due to API failure), if any. */
8404
- error: string().optional()
8405
- });
8406
- method(_void(), array(TurnProviderInfoSchema).readonly()), method(_void(), array(TurnServerSchema).readonly()), method(object({
8407
- addonId: string(),
8408
- enabled: boolean()
8409
- }), object({ success: literal(true) }), {
8410
- kind: "mutation",
8411
- auth: "admin"
8412
- });
8413
8323
  var SnapshotImageSchema = object({
8414
8324
  base64: string(),
8415
8325
  contentType: string()
@@ -9503,7 +9413,7 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
9503
9413
  * tunnel always emits `https://` regardless. */
9504
9414
  scheme: _enum(["http", "https"]).optional()
9505
9415
  }), GetConnectionEndpointsResultSchema), method(_void(), AllowedAddressesSchema), method(AllowedAddressesSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), AllowedAddressesSchema, { kind: "mutation" });
9506
- var MeshEndpointSchema$1 = object({
9416
+ var MeshEndpointSchema = object({
9507
9417
  /** Stable identifier within the provider (e.g. `mesh-ipv4`, `magicdns`, `funnel`). */
9508
9418
  id: string(),
9509
9419
  /** Operator-facing label (e.g. "Mesh IPv4", "MagicDNS"). */
@@ -9580,7 +9490,7 @@ var MeshStatusSchema = object({
9580
9490
  /** Number of peers visible to this host (excluding self). */
9581
9491
  peerCount: number(),
9582
9492
  /** Every endpoint this provider exposes for the current host. */
9583
- endpoints: array(MeshEndpointSchema$1).readonly(),
9493
+ endpoints: array(MeshEndpointSchema).readonly(),
9584
9494
  /** Last error from the daemon, when not joined. */
9585
9495
  error: string().optional(),
9586
9496
  /**
@@ -9655,51 +9565,6 @@ authKey: string().optional() }), object({
9655
9565
  /** Human-readable error when `ok: false`. */
9656
9566
  error: string().optional()
9657
9567
  }), { kind: "mutation" });
9658
- var MeshEndpointSchema = object({
9659
- id: string(),
9660
- label: string(),
9661
- scope: _enum(["mesh", "public"]),
9662
- url: string(),
9663
- hostname: string(),
9664
- port: number(),
9665
- protocol: _enum(["http", "https"])
9666
- });
9667
- var MeshProviderInfoSchema = object({
9668
- /** Stable id matching the addon id. */
9669
- addonId: string(),
9670
- /** Display label shown on the admin row — sourced from the addon manifest. */
9671
- displayName: string(),
9672
- /** True when the host is joined to this provider's mesh. */
9673
- joined: boolean(),
9674
- /** Local mesh IP (empty when not joined). */
9675
- meshIp: string(),
9676
- /** MagicDNS / mesh hostname (empty when not configured). */
9677
- magicDnsHostname: string(),
9678
- /** Peer count (excluding self). */
9679
- peerCount: number(),
9680
- /** Active endpoints (mesh IP + MagicDNS + optional public Funnel). */
9681
- endpoints: array(MeshEndpointSchema).readonly(),
9682
- /** Last error reported by the provider. */
9683
- error: string().optional(),
9684
- /** Tenant / tailnet / network display name. Empty pre-join. */
9685
- tenantName: string(),
9686
- /** Mesh DNS suffix (e.g. tailXXXX.ts.net). Empty when not configured. */
9687
- magicDnsSuffix: string(),
9688
- /** Authenticated user / account login. Null for token-only providers. */
9689
- userLogin: string().nullable(),
9690
- /** Provider control-plane URL. */
9691
- controlPlaneUrl: string(),
9692
- /** Machine-key expiry (epoch ms). Null when keys don't rotate. */
9693
- keyExpiry: number().nullable()
9694
- });
9695
- method(_void(), array(MeshProviderInfoSchema).readonly()), method(object({
9696
- addonId: string(),
9697
- authKey: string().min(8),
9698
- hostname: string().optional()
9699
- }), object({ joined: literal(true) }), { kind: "mutation" }), method(object({ addonId: string() }), object({ success: literal(true) }), { kind: "mutation" }), method(object({
9700
- addonId: string(),
9701
- hostname: string().optional()
9702
- }), object({ loginUrl: string() }), { kind: "mutation" }), method(object({ addonId: string() }), object({ loggedOut: literal(true) }), { kind: "mutation" }), method(object({ addonId: string() }), object({ peers: array(MeshPeerSchema).readonly() }));
9703
9568
  var MethodAccessSchema = _enum([
9704
9569
  "view",
9705
9570
  "create",
@@ -10389,6 +10254,13 @@ method(_void(), array(AddonListItemSchema).readonly()), method(object({
10389
10254
  mode: _enum(["singleton", "collection"]),
10390
10255
  isActive: boolean()
10391
10256
  })).readonly()), method(object({
10257
+ capName: string().min(1),
10258
+ addonId: string().min(1),
10259
+ enabled: boolean()
10260
+ }), object({ success: literal(true) }), {
10261
+ kind: "mutation",
10262
+ auth: "admin"
10263
+ }), method(object({
10392
10264
  packageName: string().min(1),
10393
10265
  version: string().optional()
10394
10266
  }), UpdateFrameworkPackageResultSchema, {
@@ -11082,6 +10954,12 @@ Object.freeze({
11082
10954
  addonId: null,
11083
10955
  access: "create"
11084
10956
  },
10957
+ "addons.setCapabilityProviderEnabled": {
10958
+ capName: "addons",
10959
+ capScope: "system",
10960
+ addonId: null,
10961
+ access: "create"
10962
+ },
11085
10963
  "addons.uninstallPackage": {
11086
10964
  capName: "addons",
11087
10965
  capScope: "system",
@@ -11334,18 +11212,6 @@ Object.freeze({
11334
11212
  addonId: null,
11335
11213
  access: "view"
11336
11214
  },
11337
- "authentication.listProviders": {
11338
- capName: "authentication",
11339
- capScope: "system",
11340
- addonId: null,
11341
- access: "view"
11342
- },
11343
- "authentication.setProviderEnabled": {
11344
- capName: "authentication",
11345
- capScope: "system",
11346
- addonId: null,
11347
- access: "create"
11348
- },
11349
11215
  "authProvider.getLoginUrl": {
11350
11216
  capName: "auth-provider",
11351
11217
  capScope: "system",
@@ -12192,42 +12058,6 @@ Object.freeze({
12192
12058
  addonId: null,
12193
12059
  access: "create"
12194
12060
  },
12195
- "meshOrchestrator.joinProvider": {
12196
- capName: "mesh-orchestrator",
12197
- capScope: "system",
12198
- addonId: null,
12199
- access: "create"
12200
- },
12201
- "meshOrchestrator.leaveProvider": {
12202
- capName: "mesh-orchestrator",
12203
- capScope: "system",
12204
- addonId: null,
12205
- access: "create"
12206
- },
12207
- "meshOrchestrator.listProviderPeers": {
12208
- capName: "mesh-orchestrator",
12209
- capScope: "system",
12210
- addonId: null,
12211
- access: "view"
12212
- },
12213
- "meshOrchestrator.listProviders": {
12214
- capName: "mesh-orchestrator",
12215
- capScope: "system",
12216
- addonId: null,
12217
- access: "view"
12218
- },
12219
- "meshOrchestrator.logoutProvider": {
12220
- capName: "mesh-orchestrator",
12221
- capScope: "system",
12222
- addonId: null,
12223
- access: "create"
12224
- },
12225
- "meshOrchestrator.startLoginProvider": {
12226
- capName: "mesh-orchestrator",
12227
- capScope: "system",
12228
- addonId: null,
12229
- access: "create"
12230
- },
12231
12061
  "metricsProvider.collectSnapshot": {
12232
12062
  capName: "metrics-provider",
12233
12063
  capScope: "system",
@@ -13254,24 +13084,6 @@ Object.freeze({
13254
13084
  addonId: null,
13255
13085
  access: "create"
13256
13086
  },
13257
- "remoteAccess.listProviders": {
13258
- capName: "remote-access",
13259
- capScope: "system",
13260
- addonId: null,
13261
- access: "view"
13262
- },
13263
- "remoteAccess.startProvider": {
13264
- capName: "remote-access",
13265
- capScope: "system",
13266
- addonId: null,
13267
- access: "create"
13268
- },
13269
- "remoteAccess.stopProvider": {
13270
- capName: "remote-access",
13271
- capScope: "system",
13272
- addonId: null,
13273
- access: "create"
13274
- },
13275
13087
  "restreamer.getExposedResources": {
13276
13088
  capName: "restreamer",
13277
13089
  capScope: "system",
@@ -13830,24 +13642,6 @@ Object.freeze({
13830
13642
  addonId: null,
13831
13643
  access: "view"
13832
13644
  },
13833
- "turnOrchestrator.getAllServers": {
13834
- capName: "turn-orchestrator",
13835
- capScope: "system",
13836
- addonId: null,
13837
- access: "view"
13838
- },
13839
- "turnOrchestrator.listProviders": {
13840
- capName: "turn-orchestrator",
13841
- capScope: "system",
13842
- addonId: null,
13843
- access: "view"
13844
- },
13845
- "turnOrchestrator.setProviderEnabled": {
13846
- capName: "turn-orchestrator",
13847
- capScope: "system",
13848
- addonId: null,
13849
- access: "create"
13850
- },
13851
13645
  "turnProvider.getTurnServers": {
13852
13646
  capName: "turn-provider",
13853
13647
  capScope: "system",