@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.
@@ -4659,7 +4659,7 @@ function _instanceof(cls, params = {}) {
4659
4659
  return inst;
4660
4660
  }
4661
4661
  //#endregion
4662
- //#region ../types/dist/index-Ce7RZWP4.mjs
4662
+ //#region ../types/dist/index-CWhQOnm9.mjs
4663
4663
  var MODEL_FORMATS = [
4664
4664
  "onnx",
4665
4665
  "coreml",
@@ -8298,42 +8298,6 @@ method(object({
8298
8298
  username: string(),
8299
8299
  password: string()
8300
8300
  }), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
8301
- var AuthProviderInfoSchema = object({
8302
- /** Stable id matching the addon id (used for `getLoginUrl({addonId,…})`). */
8303
- addonId: string(),
8304
- /**
8305
- * Per-instance id when one addon registers multiple "logical"
8306
- * providers (e.g. OIDC with Google + Microsoft + custom). The login
8307
- * URL becomes `/addon/${addonId}/${instanceId}/start` — handler reads
8308
- * `:instanceId` from the route. Empty/unset means the addon is a
8309
- * single-instance provider; the URL is `/addon/${addonId}/start`.
8310
- */
8311
- instanceId: string().optional(),
8312
- /** Display label shown on the login button + admin row. */
8313
- displayName: string(),
8314
- /** Optional iconography hint (lucide-react icon name OR emoji). */
8315
- icon: string().optional(),
8316
- /** When true, the provider exposes a redirect-based login flow
8317
- * (`getLoginUrl` returns a URL the browser navigates to). */
8318
- hasRedirectFlow: boolean(),
8319
- /** When true, the provider exposes a credential-form login flow
8320
- * (`validateCredentials` accepts username + password). */
8321
- hasCredentialFlow: boolean(),
8322
- /** Provider kind, drives admin-UI hint dispatch (oidc / saml / totp / …). */
8323
- kind: string().optional(),
8324
- /** Operator-facing status string (e.g. "Connected to https://login.acme.com"). */
8325
- status: string().optional(),
8326
- /** When false, the provider is registered but disabled by config; the
8327
- * UI surfaces it as inactive without enumerating it for login. */
8328
- enabled: boolean()
8329
- });
8330
- method(_void(), array(AuthProviderInfoSchema).readonly()), method(object({
8331
- addonId: string(),
8332
- enabled: boolean()
8333
- }), object({ success: literal(true) }), {
8334
- kind: "mutation",
8335
- auth: "admin"
8336
- });
8337
8301
  var NetworkEndpointSchema = object({
8338
8302
  url: string(),
8339
8303
  hostname: string(),
@@ -8359,33 +8323,6 @@ var NetworkEndpointEntrySchema = NetworkEndpointSchema.extend({
8359
8323
  sourcePort: number().optional()
8360
8324
  });
8361
8325
  method(_void(), NetworkEndpointSchema, { kind: "mutation" }), method(_void(), _void(), { kind: "mutation" }), method(_void(), NetworkEndpointSchema.nullable()), method(_void(), NetworkAccessStatusSchema), method(_void(), array(NetworkEndpointEntrySchema).readonly());
8362
- var RemoteAccessEndpointSchema = object({
8363
- url: string(),
8364
- hostname: string(),
8365
- port: number(),
8366
- protocol: _enum(["http", "https"])
8367
- });
8368
- var RemoteAccessProviderInfoSchema = object({
8369
- /** Stable id matching the addon id. */
8370
- addonId: string(),
8371
- /** Display label shown on the admin row — sourced from the addon manifest. */
8372
- displayName: string(),
8373
- /** When false, the provider is registered but disabled. */
8374
- enabled: boolean(),
8375
- /** True when the underlying tunnel/connection is up. */
8376
- connected: boolean(),
8377
- /** Public-facing endpoint, when connected. Null otherwise. */
8378
- endpoint: RemoteAccessEndpointSchema.nullable(),
8379
- /** Last error message (when connected=false), if available. */
8380
- error: string().optional()
8381
- });
8382
- method(_void(), array(RemoteAccessProviderInfoSchema).readonly()), method(object({ addonId: string() }), RemoteAccessEndpointSchema, {
8383
- kind: "mutation",
8384
- auth: "admin"
8385
- }), method(object({ addonId: string() }), object({ success: literal(true) }), {
8386
- kind: "mutation",
8387
- auth: "admin"
8388
- });
8389
8326
  var TurnServerSchema = object({
8390
8327
  /** Single URL or list of URLs (e.g. "turn:turn.example.com:3478?transport=udp"). */
8391
8328
  urls: union([string(), array(string())]),
@@ -8393,33 +8330,6 @@ var TurnServerSchema = object({
8393
8330
  credential: string().optional()
8394
8331
  });
8395
8332
  method(_void(), array(TurnServerSchema).readonly());
8396
- var TurnProviderInfoSchema = object({
8397
- /** Stable id matching the addon id. */
8398
- addonId: string(),
8399
- /** Display label shown on the admin row — sourced from the addon manifest. */
8400
- displayName: string(),
8401
- /** When false, the provider is registered but disabled. */
8402
- enabled: boolean(),
8403
- /** Number of servers this provider is currently exposing. */
8404
- serverCount: number(),
8405
- /**
8406
- * Flat list of every TURN/STUN URL this provider currently exposes.
8407
- * One row per URL (multi-URL ICE server entries are flattened). The
8408
- * admin UI shows this in a compact per-provider list so operators
8409
- * can verify what's actually being negotiated without having to dig
8410
- * into the combined `getAllServers` output.
8411
- */
8412
- urls: array(string()).readonly(),
8413
- /** Last fetch error (when serverCount=0 due to API failure), if any. */
8414
- error: string().optional()
8415
- });
8416
- method(_void(), array(TurnProviderInfoSchema).readonly()), method(_void(), array(TurnServerSchema).readonly()), method(object({
8417
- addonId: string(),
8418
- enabled: boolean()
8419
- }), object({ success: literal(true) }), {
8420
- kind: "mutation",
8421
- auth: "admin"
8422
- });
8423
8333
  var SnapshotImageSchema = object({
8424
8334
  base64: string(),
8425
8335
  contentType: string()
@@ -9513,7 +9423,7 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
9513
9423
  * tunnel always emits `https://` regardless. */
9514
9424
  scheme: _enum(["http", "https"]).optional()
9515
9425
  }), GetConnectionEndpointsResultSchema), method(_void(), AllowedAddressesSchema), method(AllowedAddressesSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), AllowedAddressesSchema, { kind: "mutation" });
9516
- var MeshEndpointSchema$1 = object({
9426
+ var MeshEndpointSchema = object({
9517
9427
  /** Stable identifier within the provider (e.g. `mesh-ipv4`, `magicdns`, `funnel`). */
9518
9428
  id: string(),
9519
9429
  /** Operator-facing label (e.g. "Mesh IPv4", "MagicDNS"). */
@@ -9590,7 +9500,7 @@ var MeshStatusSchema = object({
9590
9500
  /** Number of peers visible to this host (excluding self). */
9591
9501
  peerCount: number(),
9592
9502
  /** Every endpoint this provider exposes for the current host. */
9593
- endpoints: array(MeshEndpointSchema$1).readonly(),
9503
+ endpoints: array(MeshEndpointSchema).readonly(),
9594
9504
  /** Last error from the daemon, when not joined. */
9595
9505
  error: string().optional(),
9596
9506
  /**
@@ -9665,51 +9575,6 @@ authKey: string().optional() }), object({
9665
9575
  /** Human-readable error when `ok: false`. */
9666
9576
  error: string().optional()
9667
9577
  }), { kind: "mutation" });
9668
- var MeshEndpointSchema = object({
9669
- id: string(),
9670
- label: string(),
9671
- scope: _enum(["mesh", "public"]),
9672
- url: string(),
9673
- hostname: string(),
9674
- port: number(),
9675
- protocol: _enum(["http", "https"])
9676
- });
9677
- var MeshProviderInfoSchema = object({
9678
- /** Stable id matching the addon id. */
9679
- addonId: string(),
9680
- /** Display label shown on the admin row — sourced from the addon manifest. */
9681
- displayName: string(),
9682
- /** True when the host is joined to this provider's mesh. */
9683
- joined: boolean(),
9684
- /** Local mesh IP (empty when not joined). */
9685
- meshIp: string(),
9686
- /** MagicDNS / mesh hostname (empty when not configured). */
9687
- magicDnsHostname: string(),
9688
- /** Peer count (excluding self). */
9689
- peerCount: number(),
9690
- /** Active endpoints (mesh IP + MagicDNS + optional public Funnel). */
9691
- endpoints: array(MeshEndpointSchema).readonly(),
9692
- /** Last error reported by the provider. */
9693
- error: string().optional(),
9694
- /** Tenant / tailnet / network display name. Empty pre-join. */
9695
- tenantName: string(),
9696
- /** Mesh DNS suffix (e.g. tailXXXX.ts.net). Empty when not configured. */
9697
- magicDnsSuffix: string(),
9698
- /** Authenticated user / account login. Null for token-only providers. */
9699
- userLogin: string().nullable(),
9700
- /** Provider control-plane URL. */
9701
- controlPlaneUrl: string(),
9702
- /** Machine-key expiry (epoch ms). Null when keys don't rotate. */
9703
- keyExpiry: number().nullable()
9704
- });
9705
- method(_void(), array(MeshProviderInfoSchema).readonly()), method(object({
9706
- addonId: string(),
9707
- authKey: string().min(8),
9708
- hostname: string().optional()
9709
- }), object({ joined: literal(true) }), { kind: "mutation" }), method(object({ addonId: string() }), object({ success: literal(true) }), { kind: "mutation" }), method(object({
9710
- addonId: string(),
9711
- hostname: string().optional()
9712
- }), object({ loginUrl: string() }), { kind: "mutation" }), method(object({ addonId: string() }), object({ loggedOut: literal(true) }), { kind: "mutation" }), method(object({ addonId: string() }), object({ peers: array(MeshPeerSchema).readonly() }));
9713
9578
  var MethodAccessSchema = _enum([
9714
9579
  "view",
9715
9580
  "create",
@@ -10399,6 +10264,13 @@ method(_void(), array(AddonListItemSchema).readonly()), method(object({
10399
10264
  mode: _enum(["singleton", "collection"]),
10400
10265
  isActive: boolean()
10401
10266
  })).readonly()), method(object({
10267
+ capName: string().min(1),
10268
+ addonId: string().min(1),
10269
+ enabled: boolean()
10270
+ }), object({ success: literal(true) }), {
10271
+ kind: "mutation",
10272
+ auth: "admin"
10273
+ }), method(object({
10402
10274
  packageName: string().min(1),
10403
10275
  version: string().optional()
10404
10276
  }), UpdateFrameworkPackageResultSchema, {
@@ -11092,6 +10964,12 @@ Object.freeze({
11092
10964
  addonId: null,
11093
10965
  access: "create"
11094
10966
  },
10967
+ "addons.setCapabilityProviderEnabled": {
10968
+ capName: "addons",
10969
+ capScope: "system",
10970
+ addonId: null,
10971
+ access: "create"
10972
+ },
11095
10973
  "addons.uninstallPackage": {
11096
10974
  capName: "addons",
11097
10975
  capScope: "system",
@@ -11344,18 +11222,6 @@ Object.freeze({
11344
11222
  addonId: null,
11345
11223
  access: "view"
11346
11224
  },
11347
- "authentication.listProviders": {
11348
- capName: "authentication",
11349
- capScope: "system",
11350
- addonId: null,
11351
- access: "view"
11352
- },
11353
- "authentication.setProviderEnabled": {
11354
- capName: "authentication",
11355
- capScope: "system",
11356
- addonId: null,
11357
- access: "create"
11358
- },
11359
11225
  "authProvider.getLoginUrl": {
11360
11226
  capName: "auth-provider",
11361
11227
  capScope: "system",
@@ -12202,42 +12068,6 @@ Object.freeze({
12202
12068
  addonId: null,
12203
12069
  access: "create"
12204
12070
  },
12205
- "meshOrchestrator.joinProvider": {
12206
- capName: "mesh-orchestrator",
12207
- capScope: "system",
12208
- addonId: null,
12209
- access: "create"
12210
- },
12211
- "meshOrchestrator.leaveProvider": {
12212
- capName: "mesh-orchestrator",
12213
- capScope: "system",
12214
- addonId: null,
12215
- access: "create"
12216
- },
12217
- "meshOrchestrator.listProviderPeers": {
12218
- capName: "mesh-orchestrator",
12219
- capScope: "system",
12220
- addonId: null,
12221
- access: "view"
12222
- },
12223
- "meshOrchestrator.listProviders": {
12224
- capName: "mesh-orchestrator",
12225
- capScope: "system",
12226
- addonId: null,
12227
- access: "view"
12228
- },
12229
- "meshOrchestrator.logoutProvider": {
12230
- capName: "mesh-orchestrator",
12231
- capScope: "system",
12232
- addonId: null,
12233
- access: "create"
12234
- },
12235
- "meshOrchestrator.startLoginProvider": {
12236
- capName: "mesh-orchestrator",
12237
- capScope: "system",
12238
- addonId: null,
12239
- access: "create"
12240
- },
12241
12071
  "metricsProvider.collectSnapshot": {
12242
12072
  capName: "metrics-provider",
12243
12073
  capScope: "system",
@@ -13264,24 +13094,6 @@ Object.freeze({
13264
13094
  addonId: null,
13265
13095
  access: "create"
13266
13096
  },
13267
- "remoteAccess.listProviders": {
13268
- capName: "remote-access",
13269
- capScope: "system",
13270
- addonId: null,
13271
- access: "view"
13272
- },
13273
- "remoteAccess.startProvider": {
13274
- capName: "remote-access",
13275
- capScope: "system",
13276
- addonId: null,
13277
- access: "create"
13278
- },
13279
- "remoteAccess.stopProvider": {
13280
- capName: "remote-access",
13281
- capScope: "system",
13282
- addonId: null,
13283
- access: "create"
13284
- },
13285
13097
  "restreamer.getExposedResources": {
13286
13098
  capName: "restreamer",
13287
13099
  capScope: "system",
@@ -13840,24 +13652,6 @@ Object.freeze({
13840
13652
  addonId: null,
13841
13653
  access: "view"
13842
13654
  },
13843
- "turnOrchestrator.getAllServers": {
13844
- capName: "turn-orchestrator",
13845
- capScope: "system",
13846
- addonId: null,
13847
- access: "view"
13848
- },
13849
- "turnOrchestrator.listProviders": {
13850
- capName: "turn-orchestrator",
13851
- capScope: "system",
13852
- addonId: null,
13853
- access: "view"
13854
- },
13855
- "turnOrchestrator.setProviderEnabled": {
13856
- capName: "turn-orchestrator",
13857
- capScope: "system",
13858
- addonId: null,
13859
- access: "create"
13860
- },
13861
13655
  "turnProvider.getTurnServers": {
13862
13656
  capName: "turn-provider",
13863
13657
  capScope: "system",