@truenas/api-client 3.0.6 → 4.0.0

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/index.cjs CHANGED
@@ -380,6 +380,7 @@ __export(v25_10_0_exports, {
380
380
  Algorithm: () => Algorithm,
381
381
  AppContainerDetailsStateInput: () => AppContainerDetailsStateInput,
382
382
  Atime: () => Atime,
383
+ AuthMeSource: () => AuthMeSource,
383
384
  Authenticator: () => Authenticator,
384
385
  Authmethod: () => Authmethod,
385
386
  Autotrim: () => Autotrim,
@@ -390,6 +391,7 @@ __export(v25_10_0_exports, {
390
391
  CloudBackupSnapshotItemType: () => CloudBackupSnapshotItemType,
391
392
  CloudSyncCreateDirection: () => CloudSyncCreateDirection,
392
393
  CloudSyncCreateDirectionInput: () => CloudSyncCreateDirectionInput,
394
+ CloudTaskAttributesEncryption: () => CloudTaskAttributesEncryption,
393
395
  CloudTaskAttributesEncryptionInput: () => CloudTaskAttributesEncryptionInput,
394
396
  Code: () => Code,
395
397
  Compression: () => Compression,
@@ -400,7 +402,6 @@ __export(v25_10_0_exports, {
400
402
  DiskWipeModeInput: () => DiskWipeModeInput,
401
403
  DockerStatusInfoStatusInput: () => DockerStatusInfoStatusInput,
402
404
  Enclosure2SetSlotStatusStatusInput: () => Enclosure2SetSlotStatusStatusInput,
403
- Encryption: () => Encryption,
404
405
  Endpoint: () => Endpoint,
405
406
  Exec: () => Exec,
406
407
  Feature: () => Feature,
@@ -434,9 +435,11 @@ __export(v25_10_0_exports, {
434
435
  PoolDatasetCreateFilesystemReadonlyInput: () => PoolDatasetCreateFilesystemReadonlyInput,
435
436
  PoolDatasetDeleteResult: () => PoolDatasetDeleteResult,
436
437
  PoolScanStateInput: () => PoolScanStateInput,
438
+ PoolSnapshotEntryPropertyFieldsSource: () => PoolSnapshotEntryPropertyFieldsSource,
437
439
  Protocol: () => Protocol,
438
440
  Purpose: () => Purpose,
439
441
  Readonly: () => Readonly,
442
+ ReplicationCountEligibleManualSnapshotsTransport: () => ReplicationCountEligibleManualSnapshotsTransport,
440
443
  ReplicationCountEligibleManualSnapshotsTransportInput: () => ReplicationCountEligibleManualSnapshotsTransportInput,
441
444
  ReplicationCreateReadonlyInput: () => ReplicationCreateReadonlyInput,
442
445
  Resolution: () => Resolution,
@@ -445,23 +448,26 @@ __export(v25_10_0_exports, {
445
448
  RsyncTaskCreateDirectionInput: () => RsyncTaskCreateDirectionInput,
446
449
  RsyncTaskCreateMode: () => RsyncTaskCreateMode,
447
450
  RsyncTaskCreateModeInput: () => RsyncTaskCreateModeInput,
451
+ SMBEntryEncryption: () => SMBEntryEncryption,
448
452
  SMBEntryEncryptionInput: () => SMBEntryEncryptionInput,
449
453
  STIGType: () => STIGType,
450
454
  Schema: () => Schema,
451
455
  Security: () => Security,
452
456
  Serialspeed: () => Serialspeed,
457
+ Service: () => Service,
453
458
  ServiceControlVerb: () => ServiceControlVerb,
454
459
  SharingSMBEntryPurposeInput: () => SharingSMBEntryPurposeInput,
455
460
  SharingSMBEntryPurposeInput2: () => SharingSMBEntryPurposeInput2,
456
461
  Shutdown: () => Shutdown,
457
462
  Snapdev: () => Snapdev,
458
463
  Snapdir: () => Snapdir,
459
- Source: () => Source,
460
464
  SourceInput: () => SourceInput,
465
+ SourceValueType: () => SourceValueType,
461
466
  State: () => State,
462
467
  Status: () => Status,
463
468
  SupportNewTicketCommunityTypeInput: () => SupportNewTicketCommunityTypeInput,
464
469
  Sync: () => Sync,
470
+ SyslogServerTransport: () => SyslogServerTransport,
465
471
  SyslogServerTransportInput: () => SyslogServerTransportInput,
466
472
  Sysloglevel: () => Sysloglevel,
467
473
  SystemProductTypeResult: () => SystemProductTypeResult,
@@ -469,7 +475,6 @@ __export(v25_10_0_exports, {
469
475
  Tag: () => Tag,
470
476
  Target: () => Target,
471
477
  Time: () => Time,
472
- Transport: () => Transport,
473
478
  TruecommandConfigChangedEventFieldsStatus: () => TruecommandConfigChangedEventFieldsStatus,
474
479
  TruecommandConfigChangedEventFieldsStatusInput: () => TruecommandConfigChangedEventFieldsStatusInput,
475
480
  TunableCreateType: () => TunableCreateType,
@@ -541,6 +546,11 @@ var Authenticator = {
541
546
  Level1: "LEVEL_1",
542
547
  Level2: "LEVEL_2"
543
548
  };
549
+ var AuthMeSource = {
550
+ Local: "LOCAL",
551
+ Activedirectory: "ACTIVEDIRECTORY",
552
+ Ldap: "LDAP"
553
+ };
544
554
  var Authmethod = {
545
555
  None: "NONE",
546
556
  Chap: "CHAP",
@@ -581,6 +591,10 @@ var CloudSyncCreateDirectionInput = {
581
591
  Push: "PUSH",
582
592
  Pull: "PULL"
583
593
  };
594
+ var CloudTaskAttributesEncryption = {
595
+ Null: null,
596
+ Aes256: "AES256"
597
+ };
584
598
  var CloudTaskAttributesEncryptionInput = {
585
599
  Null: null,
586
600
  Aes256: "AES256"
@@ -686,12 +700,6 @@ var Enclosure2SetSlotStatusStatusInput = {
686
700
  On: "ON",
687
701
  Off: "OFF"
688
702
  };
689
- var Encryption = {
690
- Default: "DEFAULT",
691
- Negotiate: "NEGOTIATE",
692
- Desired: "DESIRED",
693
- Required: "REQUIRED"
694
- };
695
703
  var Endpoint = {
696
704
  OvhEu: "ovh-eu",
697
705
  OvhCa: "ovh-ca",
@@ -896,6 +904,14 @@ var PoolScanStateInput = {
896
904
  Finished: "FINISHED",
897
905
  Canceled: "CANCELED"
898
906
  };
907
+ var PoolSnapshotEntryPropertyFieldsSource = {
908
+ None: "NONE",
909
+ Default: "DEFAULT",
910
+ Local: "LOCAL",
911
+ Temporary: "TEMPORARY",
912
+ Inherited: "INHERITED",
913
+ Received: "RECEIVED"
914
+ };
899
915
  var Protocol = {
900
916
  Http: "HTTP",
901
917
  Https: "HTTPS"
@@ -915,6 +931,11 @@ var Readonly = {
915
931
  Require: "REQUIRE",
916
932
  Ignore: "IGNORE"
917
933
  };
934
+ var ReplicationCountEligibleManualSnapshotsTransport = {
935
+ Ssh: "SSH",
936
+ SshNetcat: "SSH+NETCAT",
937
+ Local: "LOCAL"
938
+ };
918
939
  var ReplicationCountEligibleManualSnapshotsTransportInput = {
919
940
  Ssh: "SSH",
920
941
  SshNetcat: "SSH+NETCAT",
@@ -977,6 +998,12 @@ var Serialspeed = {
977
998
  "57600": "57600",
978
999
  "115200": "115200"
979
1000
  };
1001
+ var Service = {
1002
+ Middleware: "MIDDLEWARE",
1003
+ Smb: "SMB",
1004
+ Sudo: "SUDO",
1005
+ System: "SYSTEM"
1006
+ };
980
1007
  var ServiceControlVerb = {
981
1008
  Start: "START",
982
1009
  Stop: "STOP",
@@ -1008,6 +1035,12 @@ var Shutdown = {
1008
1035
  Lowbatt: "LOWBATT",
1009
1036
  Batt: "BATT"
1010
1037
  };
1038
+ var SMBEntryEncryption = {
1039
+ Default: "DEFAULT",
1040
+ Negotiate: "NEGOTIATE",
1041
+ Desired: "DESIRED",
1042
+ Required: "REQUIRED"
1043
+ };
1011
1044
  var SMBEntryEncryptionInput = {
1012
1045
  Default: "DEFAULT",
1013
1046
  Negotiate: "NEGOTIATE",
@@ -1025,11 +1058,6 @@ var Snapdir = {
1025
1058
  Hidden: "HIDDEN",
1026
1059
  Inherit: "INHERIT"
1027
1060
  };
1028
- var Source = {
1029
- Local: "LOCAL",
1030
- Activedirectory: "ACTIVEDIRECTORY",
1031
- Ldap: "LDAP"
1032
- };
1033
1061
  var SourceInput = {
1034
1062
  None: "NONE",
1035
1063
  Default: "DEFAULT",
@@ -1038,6 +1066,14 @@ var SourceInput = {
1038
1066
  Inherited: "INHERITED",
1039
1067
  Received: "RECEIVED"
1040
1068
  };
1069
+ var SourceValueType = {
1070
+ None: "NONE",
1071
+ Default: "DEFAULT",
1072
+ Temporary: "TEMPORARY",
1073
+ Local: "LOCAL",
1074
+ Inherited: "INHERITED",
1075
+ Received: "RECEIVED"
1076
+ };
1041
1077
  var State = {
1042
1078
  Crashed: "crashed",
1043
1079
  Created: "created",
@@ -1078,6 +1114,11 @@ var Sysloglevel = {
1078
1114
  FInfo: "F_INFO",
1079
1115
  FDebug: "F_DEBUG"
1080
1116
  };
1117
+ var SyslogServerTransport = {
1118
+ Udp: "UDP",
1119
+ Tcp: "TCP",
1120
+ Tls: "TLS"
1121
+ };
1081
1122
  var SyslogServerTransportInput = {
1082
1123
  Udp: "UDP",
1083
1124
  Tcp: "TCP",
@@ -1108,11 +1149,6 @@ var Time = {
1108
1149
  Local: "LOCAL",
1109
1150
  Utc: "UTC"
1110
1151
  };
1111
- var Transport = {
1112
- Ssh: "SSH",
1113
- SshNetcat: "SSH+NETCAT",
1114
- Local: "LOCAL"
1115
- };
1116
1152
  var TruecommandConfigChangedEventFieldsStatus = {
1117
1153
  Connected: "CONNECTED",
1118
1154
  Connecting: "CONNECTING",
@@ -1297,6 +1333,7 @@ __export(v25_10_1_exports, {
1297
1333
  Algorithm: () => Algorithm,
1298
1334
  AppContainerDetailsStateInput: () => AppContainerDetailsStateInput,
1299
1335
  Atime: () => Atime,
1336
+ AuthMeSource: () => AuthMeSource,
1300
1337
  Authenticator: () => Authenticator,
1301
1338
  Authmethod: () => Authmethod,
1302
1339
  Autotrim: () => Autotrim,
@@ -1307,6 +1344,7 @@ __export(v25_10_1_exports, {
1307
1344
  CloudBackupSnapshotItemType: () => CloudBackupSnapshotItemType,
1308
1345
  CloudSyncCreateDirection: () => CloudSyncCreateDirection,
1309
1346
  CloudSyncCreateDirectionInput: () => CloudSyncCreateDirectionInput,
1347
+ CloudTaskAttributesEncryption: () => CloudTaskAttributesEncryption,
1310
1348
  CloudTaskAttributesEncryptionInput: () => CloudTaskAttributesEncryptionInput,
1311
1349
  Code: () => Code,
1312
1350
  Compression: () => Compression,
@@ -1318,7 +1356,6 @@ __export(v25_10_1_exports, {
1318
1356
  DockerStatusInfoStatus: () => DockerStatusInfoStatus,
1319
1357
  DockerStatusInfoStatusInput: () => DockerStatusInfoStatusInput,
1320
1358
  Enclosure2SetSlotStatusStatusInput: () => Enclosure2SetSlotStatusStatusInput,
1321
- Encryption: () => Encryption,
1322
1359
  Endpoint: () => Endpoint,
1323
1360
  Exec: () => Exec,
1324
1361
  Feature: () => Feature,
@@ -1352,9 +1389,11 @@ __export(v25_10_1_exports, {
1352
1389
  PoolDatasetCreateFilesystemReadonlyInput: () => PoolDatasetCreateFilesystemReadonlyInput,
1353
1390
  PoolDatasetDeleteResult: () => PoolDatasetDeleteResult,
1354
1391
  PoolScanStateInput: () => PoolScanStateInput,
1392
+ PoolSnapshotEntryPropertyFieldsSource: () => PoolSnapshotEntryPropertyFieldsSource,
1355
1393
  Protocol: () => Protocol,
1356
1394
  Purpose: () => Purpose2,
1357
1395
  Readonly: () => Readonly,
1396
+ ReplicationCountEligibleManualSnapshotsTransport: () => ReplicationCountEligibleManualSnapshotsTransport,
1358
1397
  ReplicationCountEligibleManualSnapshotsTransportInput: () => ReplicationCountEligibleManualSnapshotsTransportInput,
1359
1398
  ReplicationCreateReadonlyInput: () => ReplicationCreateReadonlyInput,
1360
1399
  Resolution: () => Resolution,
@@ -1363,20 +1402,23 @@ __export(v25_10_1_exports, {
1363
1402
  RsyncTaskCreateDirectionInput: () => RsyncTaskCreateDirectionInput,
1364
1403
  RsyncTaskCreateMode: () => RsyncTaskCreateMode,
1365
1404
  RsyncTaskCreateModeInput: () => RsyncTaskCreateModeInput,
1405
+ SMBEntryEncryption: () => SMBEntryEncryption,
1366
1406
  SMBEntryEncryptionInput: () => SMBEntryEncryptionInput,
1367
1407
  STIGType: () => STIGType,
1368
1408
  Schema: () => Schema,
1369
1409
  Security: () => Security,
1370
1410
  Serialspeed: () => Serialspeed,
1411
+ Service: () => Service,
1371
1412
  ServiceControlVerb: () => ServiceControlVerb,
1372
1413
  Shutdown: () => Shutdown,
1373
1414
  Snapdev: () => Snapdev,
1374
1415
  Snapdir: () => Snapdir,
1375
- Source: () => Source,
1376
1416
  SourceInput: () => SourceInput,
1417
+ SourceValueType: () => SourceValueType,
1377
1418
  State: () => State,
1378
1419
  SupportNewTicketCommunityTypeInput: () => SupportNewTicketCommunityTypeInput,
1379
1420
  Sync: () => Sync,
1421
+ SyslogServerTransport: () => SyslogServerTransport,
1380
1422
  SyslogServerTransportInput: () => SyslogServerTransportInput,
1381
1423
  Sysloglevel: () => Sysloglevel,
1382
1424
  SystemProductTypeResult: () => SystemProductTypeResult,
@@ -1384,7 +1426,6 @@ __export(v25_10_1_exports, {
1384
1426
  Tag: () => Tag,
1385
1427
  Target: () => Target,
1386
1428
  Time: () => Time,
1387
- Transport: () => Transport,
1388
1429
  TruecommandConfigChangedEventFieldsStatus: () => TruecommandConfigChangedEventFieldsStatus,
1389
1430
  TruecommandConfigChangedEventFieldsStatusInput: () => TruecommandConfigChangedEventFieldsStatusInput,
1390
1431
  TunableCreateType: () => TunableCreateType,
@@ -1438,6 +1479,7 @@ __export(v25_10_2_exports, {
1438
1479
  Algorithm: () => Algorithm,
1439
1480
  AppContainerDetailsStateInput: () => AppContainerDetailsStateInput,
1440
1481
  Atime: () => Atime,
1482
+ AuthMeSource: () => AuthMeSource,
1441
1483
  Authenticator: () => Authenticator,
1442
1484
  Authmethod: () => Authmethod,
1443
1485
  Autotrim: () => Autotrim,
@@ -1448,6 +1490,7 @@ __export(v25_10_2_exports, {
1448
1490
  CloudBackupSnapshotItemType: () => CloudBackupSnapshotItemType,
1449
1491
  CloudSyncCreateDirection: () => CloudSyncCreateDirection,
1450
1492
  CloudSyncCreateDirectionInput: () => CloudSyncCreateDirectionInput,
1493
+ CloudTaskAttributesEncryption: () => CloudTaskAttributesEncryption,
1451
1494
  CloudTaskAttributesEncryptionInput: () => CloudTaskAttributesEncryptionInput,
1452
1495
  Code: () => Code,
1453
1496
  Compression: () => Compression,
@@ -1459,7 +1502,6 @@ __export(v25_10_2_exports, {
1459
1502
  DockerStatusInfoStatus: () => DockerStatusInfoStatus,
1460
1503
  DockerStatusInfoStatusInput: () => DockerStatusInfoStatusInput,
1461
1504
  Enclosure2SetSlotStatusStatusInput: () => Enclosure2SetSlotStatusStatusInput,
1462
- Encryption: () => Encryption,
1463
1505
  Endpoint: () => Endpoint,
1464
1506
  Exec: () => Exec,
1465
1507
  Feature: () => Feature,
@@ -1493,9 +1535,11 @@ __export(v25_10_2_exports, {
1493
1535
  PoolDatasetCreateFilesystemReadonlyInput: () => PoolDatasetCreateFilesystemReadonlyInput,
1494
1536
  PoolDatasetDeleteResult: () => PoolDatasetDeleteResult,
1495
1537
  PoolScanStateInput: () => PoolScanStateInput,
1538
+ PoolSnapshotEntryPropertyFieldsSource: () => PoolSnapshotEntryPropertyFieldsSource,
1496
1539
  Protocol: () => Protocol,
1497
1540
  Purpose: () => Purpose2,
1498
1541
  Readonly: () => Readonly,
1542
+ ReplicationCountEligibleManualSnapshotsTransport: () => ReplicationCountEligibleManualSnapshotsTransport,
1499
1543
  ReplicationCountEligibleManualSnapshotsTransportInput: () => ReplicationCountEligibleManualSnapshotsTransportInput,
1500
1544
  ReplicationCreateReadonlyInput: () => ReplicationCreateReadonlyInput,
1501
1545
  Resolution: () => Resolution,
@@ -1504,20 +1548,23 @@ __export(v25_10_2_exports, {
1504
1548
  RsyncTaskCreateDirectionInput: () => RsyncTaskCreateDirectionInput,
1505
1549
  RsyncTaskCreateMode: () => RsyncTaskCreateMode,
1506
1550
  RsyncTaskCreateModeInput: () => RsyncTaskCreateModeInput,
1551
+ SMBEntryEncryption: () => SMBEntryEncryption,
1507
1552
  SMBEntryEncryptionInput: () => SMBEntryEncryptionInput,
1508
1553
  STIGType: () => STIGType,
1509
1554
  Schema: () => Schema,
1510
1555
  Security: () => Security,
1511
1556
  Serialspeed: () => Serialspeed,
1557
+ Service: () => Service,
1512
1558
  ServiceControlVerb: () => ServiceControlVerb,
1513
1559
  Shutdown: () => Shutdown,
1514
1560
  Snapdev: () => Snapdev,
1515
1561
  Snapdir: () => Snapdir,
1516
- Source: () => Source,
1517
1562
  SourceInput: () => SourceInput,
1563
+ SourceValueType: () => SourceValueType,
1518
1564
  State: () => State,
1519
1565
  SupportNewTicketCommunityTypeInput: () => SupportNewTicketCommunityTypeInput,
1520
1566
  Sync: () => Sync,
1567
+ SyslogServerTransport: () => SyslogServerTransport,
1521
1568
  SyslogServerTransportInput: () => SyslogServerTransportInput,
1522
1569
  Sysloglevel: () => Sysloglevel,
1523
1570
  SystemProductTypeResult: () => SystemProductTypeResult,
@@ -1525,7 +1572,6 @@ __export(v25_10_2_exports, {
1525
1572
  Tag: () => Tag,
1526
1573
  Target: () => Target,
1527
1574
  Time: () => Time,
1528
- Transport: () => Transport,
1529
1575
  TruecommandConfigChangedEventFieldsStatus: () => TruecommandConfigChangedEventFieldsStatus,
1530
1576
  TruecommandConfigChangedEventFieldsStatusInput: () => TruecommandConfigChangedEventFieldsStatusInput,
1531
1577
  TunableCreateType: () => TunableCreateType,
@@ -1561,6 +1607,7 @@ __export(v25_10_3_exports, {
1561
1607
  Algorithm: () => Algorithm,
1562
1608
  AppContainerDetailsStateInput: () => AppContainerDetailsStateInput,
1563
1609
  Atime: () => Atime,
1610
+ AuthMeSource: () => AuthMeSource,
1564
1611
  Authenticator: () => Authenticator,
1565
1612
  Authmethod: () => Authmethod,
1566
1613
  Autotrim: () => Autotrim,
@@ -1571,6 +1618,7 @@ __export(v25_10_3_exports, {
1571
1618
  CloudBackupSnapshotItemType: () => CloudBackupSnapshotItemType,
1572
1619
  CloudSyncCreateDirection: () => CloudSyncCreateDirection,
1573
1620
  CloudSyncCreateDirectionInput: () => CloudSyncCreateDirectionInput,
1621
+ CloudTaskAttributesEncryption: () => CloudTaskAttributesEncryption,
1574
1622
  CloudTaskAttributesEncryptionInput: () => CloudTaskAttributesEncryptionInput,
1575
1623
  Code: () => Code,
1576
1624
  Compression: () => Compression,
@@ -1582,7 +1630,6 @@ __export(v25_10_3_exports, {
1582
1630
  DockerStatusInfoStatus: () => DockerStatusInfoStatus,
1583
1631
  DockerStatusInfoStatusInput: () => DockerStatusInfoStatusInput,
1584
1632
  Enclosure2SetSlotStatusStatusInput: () => Enclosure2SetSlotStatusStatusInput,
1585
- Encryption: () => Encryption,
1586
1633
  Endpoint: () => Endpoint,
1587
1634
  Exec: () => Exec,
1588
1635
  Feature: () => Feature,
@@ -1616,9 +1663,11 @@ __export(v25_10_3_exports, {
1616
1663
  PoolDatasetCreateFilesystemReadonlyInput: () => PoolDatasetCreateFilesystemReadonlyInput,
1617
1664
  PoolDatasetDeleteResult: () => PoolDatasetDeleteResult,
1618
1665
  PoolScanStateInput: () => PoolScanStateInput,
1666
+ PoolSnapshotEntryPropertyFieldsSource: () => PoolSnapshotEntryPropertyFieldsSource,
1619
1667
  Protocol: () => Protocol,
1620
1668
  Purpose: () => Purpose2,
1621
1669
  Readonly: () => Readonly,
1670
+ ReplicationCountEligibleManualSnapshotsTransport: () => ReplicationCountEligibleManualSnapshotsTransport,
1622
1671
  ReplicationCountEligibleManualSnapshotsTransportInput: () => ReplicationCountEligibleManualSnapshotsTransportInput,
1623
1672
  ReplicationCreateReadonlyInput: () => ReplicationCreateReadonlyInput,
1624
1673
  Resolution: () => Resolution,
@@ -1627,20 +1676,23 @@ __export(v25_10_3_exports, {
1627
1676
  RsyncTaskCreateDirectionInput: () => RsyncTaskCreateDirectionInput,
1628
1677
  RsyncTaskCreateMode: () => RsyncTaskCreateMode,
1629
1678
  RsyncTaskCreateModeInput: () => RsyncTaskCreateModeInput,
1679
+ SMBEntryEncryption: () => SMBEntryEncryption,
1630
1680
  SMBEntryEncryptionInput: () => SMBEntryEncryptionInput,
1631
1681
  STIGType: () => STIGType,
1632
1682
  Schema: () => Schema,
1633
1683
  Security: () => Security,
1634
1684
  Serialspeed: () => Serialspeed,
1685
+ Service: () => Service,
1635
1686
  ServiceControlVerb: () => ServiceControlVerb,
1636
1687
  Shutdown: () => Shutdown,
1637
1688
  Snapdev: () => Snapdev,
1638
1689
  Snapdir: () => Snapdir,
1639
- Source: () => Source,
1640
1690
  SourceInput: () => SourceInput,
1691
+ SourceValueType: () => SourceValueType,
1641
1692
  State: () => State,
1642
1693
  SupportNewTicketCommunityTypeInput: () => SupportNewTicketCommunityTypeInput,
1643
1694
  Sync: () => Sync,
1695
+ SyslogServerTransport: () => SyslogServerTransport,
1644
1696
  SyslogServerTransportInput: () => SyslogServerTransportInput,
1645
1697
  Sysloglevel: () => Sysloglevel,
1646
1698
  SystemProductTypeResult: () => SystemProductTypeResult,
@@ -1648,7 +1700,6 @@ __export(v25_10_3_exports, {
1648
1700
  Tag: () => Tag,
1649
1701
  Target: () => Target,
1650
1702
  Time: () => Time,
1651
- Transport: () => Transport,
1652
1703
  TruecommandConfigChangedEventFieldsStatus: () => TruecommandConfigChangedEventFieldsStatus,
1653
1704
  TruecommandConfigChangedEventFieldsStatusInput: () => TruecommandConfigChangedEventFieldsStatusInput,
1654
1705
  TunableCreateType: () => TunableCreateType,
@@ -1678,6 +1729,7 @@ __export(v25_10_4_exports, {
1678
1729
  Algorithm: () => Algorithm,
1679
1730
  AppContainerDetailsStateInput: () => AppContainerDetailsStateInput,
1680
1731
  Atime: () => Atime,
1732
+ AuthMeSource: () => AuthMeSource,
1681
1733
  Authenticator: () => Authenticator,
1682
1734
  Authmethod: () => Authmethod,
1683
1735
  Autotrim: () => Autotrim,
@@ -1688,6 +1740,7 @@ __export(v25_10_4_exports, {
1688
1740
  CloudBackupSnapshotItemType: () => CloudBackupSnapshotItemType,
1689
1741
  CloudSyncCreateDirection: () => CloudSyncCreateDirection,
1690
1742
  CloudSyncCreateDirectionInput: () => CloudSyncCreateDirectionInput,
1743
+ CloudTaskAttributesEncryption: () => CloudTaskAttributesEncryption,
1691
1744
  CloudTaskAttributesEncryptionInput: () => CloudTaskAttributesEncryptionInput,
1692
1745
  Code: () => Code,
1693
1746
  Compression: () => Compression,
@@ -1699,7 +1752,6 @@ __export(v25_10_4_exports, {
1699
1752
  DockerStatusInfoStatus: () => DockerStatusInfoStatus,
1700
1753
  DockerStatusInfoStatusInput: () => DockerStatusInfoStatusInput,
1701
1754
  Enclosure2SetSlotStatusStatusInput: () => Enclosure2SetSlotStatusStatusInput,
1702
- Encryption: () => Encryption,
1703
1755
  Endpoint: () => Endpoint,
1704
1756
  Exec: () => Exec,
1705
1757
  Feature: () => Feature,
@@ -1733,9 +1785,11 @@ __export(v25_10_4_exports, {
1733
1785
  PoolDatasetCreateFilesystemReadonlyInput: () => PoolDatasetCreateFilesystemReadonlyInput,
1734
1786
  PoolDatasetDeleteResult: () => PoolDatasetDeleteResult,
1735
1787
  PoolScanStateInput: () => PoolScanStateInput,
1788
+ PoolSnapshotEntryPropertyFieldsSource: () => PoolSnapshotEntryPropertyFieldsSource,
1736
1789
  Protocol: () => Protocol,
1737
1790
  Purpose: () => Purpose2,
1738
1791
  Readonly: () => Readonly,
1792
+ ReplicationCountEligibleManualSnapshotsTransport: () => ReplicationCountEligibleManualSnapshotsTransport,
1739
1793
  ReplicationCountEligibleManualSnapshotsTransportInput: () => ReplicationCountEligibleManualSnapshotsTransportInput,
1740
1794
  ReplicationCreateReadonlyInput: () => ReplicationCreateReadonlyInput,
1741
1795
  Resolution: () => Resolution,
@@ -1744,20 +1798,23 @@ __export(v25_10_4_exports, {
1744
1798
  RsyncTaskCreateDirectionInput: () => RsyncTaskCreateDirectionInput,
1745
1799
  RsyncTaskCreateMode: () => RsyncTaskCreateMode,
1746
1800
  RsyncTaskCreateModeInput: () => RsyncTaskCreateModeInput,
1801
+ SMBEntryEncryption: () => SMBEntryEncryption,
1747
1802
  SMBEntryEncryptionInput: () => SMBEntryEncryptionInput,
1748
1803
  STIGType: () => STIGType,
1749
1804
  Schema: () => Schema,
1750
1805
  Security: () => Security,
1751
1806
  Serialspeed: () => Serialspeed,
1807
+ Service: () => Service,
1752
1808
  ServiceControlVerb: () => ServiceControlVerb,
1753
1809
  Shutdown: () => Shutdown,
1754
1810
  Snapdev: () => Snapdev,
1755
1811
  Snapdir: () => Snapdir,
1756
- Source: () => Source,
1757
1812
  SourceInput: () => SourceInput,
1813
+ SourceValueType: () => SourceValueType,
1758
1814
  State: () => State,
1759
1815
  SupportNewTicketCommunityTypeInput: () => SupportNewTicketCommunityTypeInput,
1760
1816
  Sync: () => Sync,
1817
+ SyslogServerTransport: () => SyslogServerTransport,
1761
1818
  SyslogServerTransportInput: () => SyslogServerTransportInput,
1762
1819
  Sysloglevel: () => Sysloglevel,
1763
1820
  SystemProductTypeResult: () => SystemProductTypeResult,
@@ -1765,7 +1822,6 @@ __export(v25_10_4_exports, {
1765
1822
  Tag: () => Tag,
1766
1823
  Target: () => Target,
1767
1824
  Time: () => Time,
1768
- Transport: () => Transport,
1769
1825
  TruecommandConfigChangedEventFieldsStatus: () => TruecommandConfigChangedEventFieldsStatus,
1770
1826
  TruecommandConfigChangedEventFieldsStatusInput: () => TruecommandConfigChangedEventFieldsStatusInput,
1771
1827
  TunableCreateType: () => TunableCreateType,
@@ -1795,6 +1851,7 @@ __export(v25_10_5_exports, {
1795
1851
  Algorithm: () => Algorithm,
1796
1852
  AppContainerDetailsStateInput: () => AppContainerDetailsStateInput,
1797
1853
  Atime: () => Atime,
1854
+ AuthMeSource: () => AuthMeSource,
1798
1855
  Authenticator: () => Authenticator,
1799
1856
  Authmethod: () => Authmethod,
1800
1857
  Autotrim: () => Autotrim,
@@ -1805,6 +1862,7 @@ __export(v25_10_5_exports, {
1805
1862
  CloudBackupSnapshotItemType: () => CloudBackupSnapshotItemType,
1806
1863
  CloudSyncCreateDirection: () => CloudSyncCreateDirection,
1807
1864
  CloudSyncCreateDirectionInput: () => CloudSyncCreateDirectionInput,
1865
+ CloudTaskAttributesEncryption: () => CloudTaskAttributesEncryption,
1808
1866
  CloudTaskAttributesEncryptionInput: () => CloudTaskAttributesEncryptionInput,
1809
1867
  Code: () => Code,
1810
1868
  Compression: () => Compression,
@@ -1816,7 +1874,6 @@ __export(v25_10_5_exports, {
1816
1874
  DockerStatusInfoStatus: () => DockerStatusInfoStatus,
1817
1875
  DockerStatusInfoStatusInput: () => DockerStatusInfoStatusInput,
1818
1876
  Enclosure2SetSlotStatusStatusInput: () => Enclosure2SetSlotStatusStatusInput,
1819
- Encryption: () => Encryption,
1820
1877
  Endpoint: () => Endpoint,
1821
1878
  Exec: () => Exec,
1822
1879
  Feature: () => Feature,
@@ -1850,9 +1907,11 @@ __export(v25_10_5_exports, {
1850
1907
  PoolDatasetCreateFilesystemReadonlyInput: () => PoolDatasetCreateFilesystemReadonlyInput,
1851
1908
  PoolDatasetDeleteResult: () => PoolDatasetDeleteResult,
1852
1909
  PoolScanStateInput: () => PoolScanStateInput,
1910
+ PoolSnapshotEntryPropertyFieldsSource: () => PoolSnapshotEntryPropertyFieldsSource,
1853
1911
  Protocol: () => Protocol,
1854
1912
  Purpose: () => Purpose2,
1855
1913
  Readonly: () => Readonly,
1914
+ ReplicationCountEligibleManualSnapshotsTransport: () => ReplicationCountEligibleManualSnapshotsTransport,
1856
1915
  ReplicationCountEligibleManualSnapshotsTransportInput: () => ReplicationCountEligibleManualSnapshotsTransportInput,
1857
1916
  ReplicationCreateReadonlyInput: () => ReplicationCreateReadonlyInput,
1858
1917
  Resolution: () => Resolution,
@@ -1861,20 +1920,23 @@ __export(v25_10_5_exports, {
1861
1920
  RsyncTaskCreateDirectionInput: () => RsyncTaskCreateDirectionInput,
1862
1921
  RsyncTaskCreateMode: () => RsyncTaskCreateMode,
1863
1922
  RsyncTaskCreateModeInput: () => RsyncTaskCreateModeInput,
1923
+ SMBEntryEncryption: () => SMBEntryEncryption,
1864
1924
  SMBEntryEncryptionInput: () => SMBEntryEncryptionInput,
1865
1925
  STIGType: () => STIGType,
1866
1926
  Schema: () => Schema,
1867
1927
  Security: () => Security,
1868
1928
  Serialspeed: () => Serialspeed,
1929
+ Service: () => Service,
1869
1930
  ServiceControlVerb: () => ServiceControlVerb,
1870
1931
  Shutdown: () => Shutdown,
1871
1932
  Snapdev: () => Snapdev,
1872
1933
  Snapdir: () => Snapdir,
1873
- Source: () => Source,
1874
1934
  SourceInput: () => SourceInput,
1935
+ SourceValueType: () => SourceValueType,
1875
1936
  State: () => State,
1876
1937
  SupportNewTicketCommunityTypeInput: () => SupportNewTicketCommunityTypeInput,
1877
1938
  Sync: () => Sync,
1939
+ SyslogServerTransport: () => SyslogServerTransport,
1878
1940
  SyslogServerTransportInput: () => SyslogServerTransportInput,
1879
1941
  Sysloglevel: () => Sysloglevel,
1880
1942
  SystemProductTypeResult: () => SystemProductTypeResult,
@@ -1882,7 +1944,6 @@ __export(v25_10_5_exports, {
1882
1944
  Tag: () => Tag,
1883
1945
  Target: () => Target,
1884
1946
  Time: () => Time,
1885
- Transport: () => Transport,
1886
1947
  TruecommandConfigChangedEventFieldsStatus: () => TruecommandConfigChangedEventFieldsStatus,
1887
1948
  TruecommandConfigChangedEventFieldsStatusInput: () => TruecommandConfigChangedEventFieldsStatusInput,
1888
1949
  TunableCreateType: () => TunableCreateType,
@@ -1911,6 +1972,7 @@ __export(v26_0_0_exports, {
1911
1972
  AppContainerDetailsState: () => AppContainerDetailsState,
1912
1973
  AppContainerDetailsStateInput: () => AppContainerDetailsStateInput,
1913
1974
  Atime: () => Atime,
1975
+ AuthMeSource: () => AuthMeSource,
1914
1976
  Authenticator: () => Authenticator,
1915
1977
  Authmethod: () => Authmethod,
1916
1978
  Autotrim: () => Autotrim,
@@ -1921,6 +1983,7 @@ __export(v26_0_0_exports, {
1921
1983
  CloudBackupSnapshotItemType: () => CloudBackupSnapshotItemType,
1922
1984
  CloudSyncCreateDirection: () => CloudSyncCreateDirection,
1923
1985
  CloudSyncCreateDirectionInput: () => CloudSyncCreateDirectionInput,
1986
+ CloudTaskAttributesEncryption: () => CloudTaskAttributesEncryption,
1924
1987
  CloudTaskAttributesEncryptionInput: () => CloudTaskAttributesEncryptionInput,
1925
1988
  Code: () => Code,
1926
1989
  Compression: () => Compression,
@@ -1936,7 +1999,6 @@ __export(v26_0_0_exports, {
1936
1999
  DockerStatusInfoStatus: () => DockerStatusInfoStatus,
1937
2000
  DockerStatusInfoStatusInput: () => DockerStatusInfoStatusInput,
1938
2001
  Enclosure2SetSlotStatusStatusInput: () => Enclosure2SetSlotStatusStatusInput,
1939
- Encryption: () => Encryption,
1940
2002
  Endpoint: () => Endpoint,
1941
2003
  Exec: () => Exec,
1942
2004
  Feature: () => Feature2,
@@ -1974,9 +2036,11 @@ __export(v26_0_0_exports, {
1974
2036
  PoolScanState: () => PoolScanState,
1975
2037
  PoolScanStateInput: () => PoolScanStateInput,
1976
2038
  PoolScrubAction: () => PoolScrubAction,
2039
+ PoolSnapshotEntryPropertyFieldsSource: () => PoolSnapshotEntryPropertyFieldsSource,
1977
2040
  Protocol: () => Protocol,
1978
2041
  Purpose: () => Purpose2,
1979
2042
  Readonly: () => Readonly,
2043
+ ReplicationCountEligibleManualSnapshotsTransport: () => ReplicationCountEligibleManualSnapshotsTransport,
1980
2044
  ReplicationCountEligibleManualSnapshotsTransportInput: () => ReplicationCountEligibleManualSnapshotsTransportInput,
1981
2045
  ReplicationCreateReadonlyInput: () => ReplicationCreateReadonlyInput,
1982
2046
  Resolution: () => Resolution,
@@ -1985,6 +2049,7 @@ __export(v26_0_0_exports, {
1985
2049
  RsyncTaskCreateDirectionInput: () => RsyncTaskCreateDirectionInput,
1986
2050
  RsyncTaskCreateMode: () => RsyncTaskCreateMode,
1987
2051
  RsyncTaskCreateModeInput: () => RsyncTaskCreateModeInput,
2052
+ SMBEntryEncryption: () => SMBEntryEncryption,
1988
2053
  SMBEntryEncryptionInput: () => SMBEntryEncryptionInput,
1989
2054
  STIGType: () => STIGType,
1990
2055
  Schema: () => Schema,
@@ -1995,10 +2060,11 @@ __export(v26_0_0_exports, {
1995
2060
  Shutdown: () => Shutdown,
1996
2061
  Snapdev: () => Snapdev,
1997
2062
  Snapdir: () => Snapdir,
1998
- Source: () => Source,
1999
2063
  SourceInput: () => SourceInput,
2064
+ SourceValueType: () => SourceValueType,
2000
2065
  SupportNewTicketCommunityTypeInput: () => SupportNewTicketCommunityTypeInput,
2001
2066
  Sync: () => Sync,
2067
+ SyslogServerTransport: () => SyslogServerTransport,
2002
2068
  SyslogServerTransportInput: () => SyslogServerTransportInput,
2003
2069
  Sysloglevel: () => Sysloglevel,
2004
2070
  SystemProductTypeResult: () => SystemProductTypeResult,
@@ -2006,7 +2072,6 @@ __export(v26_0_0_exports, {
2006
2072
  Tag: () => Tag,
2007
2073
  Target: () => Target,
2008
2074
  Time: () => Time,
2009
- Transport: () => Transport,
2010
2075
  TruecommandConfigChangedEventFieldsStatus: () => TruecommandConfigChangedEventFieldsStatus,
2011
2076
  TruecommandConfigChangedEventFieldsStatusInput: () => TruecommandConfigChangedEventFieldsStatusInput,
2012
2077
  TunableCreateType: () => TunableCreateType,
@@ -2017,6 +2082,7 @@ __export(v26_0_0_exports, {
2017
2082
  Username: () => Username,
2018
2083
  VMDiskDeviceType: () => VMDiskDeviceType,
2019
2084
  VMDiskDeviceTypeInput: () => VMDiskDeviceTypeInput,
2085
+ VMWareEntryStateState: () => VMWareEntryStateState,
2020
2086
  VMWareEntryStateStateInput: () => VMWareEntryStateStateInput,
2021
2087
  VMWareMatchDatastoresWithDatasetsResultFilesystemType: () => VMWareMatchDatastoresWithDatasetsResultFilesystemType,
2022
2088
  Vendor: () => Vendor,
@@ -2104,11 +2170,11 @@ var PoolScrubAction = {
2104
2170
  Stop: "STOP",
2105
2171
  Pause: "PAUSE"
2106
2172
  };
2107
- var Service = {
2108
- Middleware: "MIDDLEWARE",
2109
- Smb: "SMB",
2110
- Sudo: "SUDO",
2111
- System: "SYSTEM"
2173
+ var VMWareEntryStateState = {
2174
+ Pending: "PENDING",
2175
+ Success: "SUCCESS",
2176
+ Error: "ERROR",
2177
+ Blocked: "BLOCKED"
2112
2178
  };
2113
2179
  var ZfsTierRewriteJobEntryStatus = {
2114
2180
  Complete: "COMPLETE",
@@ -2134,6 +2200,7 @@ __export(v27_0_0_exports, {
2134
2200
  AppContainerDetailsState: () => AppContainerDetailsState,
2135
2201
  AppContainerDetailsStateInput: () => AppContainerDetailsStateInput,
2136
2202
  Atime: () => Atime,
2203
+ AuthMeSource: () => AuthMeSource,
2137
2204
  Authenticator: () => Authenticator,
2138
2205
  Authmethod: () => Authmethod,
2139
2206
  Autotrim: () => Autotrim,
@@ -2144,6 +2211,7 @@ __export(v27_0_0_exports, {
2144
2211
  CloudBackupSnapshotItemType: () => CloudBackupSnapshotItemType,
2145
2212
  CloudSyncCreateDirection: () => CloudSyncCreateDirection,
2146
2213
  CloudSyncCreateDirectionInput: () => CloudSyncCreateDirectionInput,
2214
+ CloudTaskAttributesEncryption: () => CloudTaskAttributesEncryption,
2147
2215
  CloudTaskAttributesEncryptionInput: () => CloudTaskAttributesEncryptionInput,
2148
2216
  Code: () => Code,
2149
2217
  Compression: () => Compression,
@@ -2159,7 +2227,6 @@ __export(v27_0_0_exports, {
2159
2227
  DockerStatusInfoStatus: () => DockerStatusInfoStatus,
2160
2228
  DockerStatusInfoStatusInput: () => DockerStatusInfoStatusInput,
2161
2229
  Enclosure2SetSlotStatusStatusInput: () => Enclosure2SetSlotStatusStatusInput,
2162
- Encryption: () => Encryption,
2163
2230
  Endpoint: () => Endpoint,
2164
2231
  Exec: () => Exec,
2165
2232
  Feature: () => Feature2,
@@ -2197,9 +2264,11 @@ __export(v27_0_0_exports, {
2197
2264
  PoolScanState: () => PoolScanState,
2198
2265
  PoolScanStateInput: () => PoolScanStateInput,
2199
2266
  PoolScrubAction: () => PoolScrubAction,
2267
+ PoolSnapshotEntryPropertyFieldsSource: () => PoolSnapshotEntryPropertyFieldsSource,
2200
2268
  Protocol: () => Protocol,
2201
2269
  Purpose: () => Purpose2,
2202
2270
  Readonly: () => Readonly,
2271
+ ReplicationCountEligibleManualSnapshotsTransport: () => ReplicationCountEligibleManualSnapshotsTransport,
2203
2272
  ReplicationCountEligibleManualSnapshotsTransportInput: () => ReplicationCountEligibleManualSnapshotsTransportInput,
2204
2273
  ReplicationCreateReadonlyInput: () => ReplicationCreateReadonlyInput,
2205
2274
  Resolution: () => Resolution,
@@ -2208,20 +2277,22 @@ __export(v27_0_0_exports, {
2208
2277
  RsyncTaskCreateDirectionInput: () => RsyncTaskCreateDirectionInput,
2209
2278
  RsyncTaskCreateMode: () => RsyncTaskCreateMode,
2210
2279
  RsyncTaskCreateModeInput: () => RsyncTaskCreateModeInput,
2280
+ SMBEntryEncryption: () => SMBEntryEncryption,
2211
2281
  SMBEntryEncryptionInput: () => SMBEntryEncryptionInput,
2212
2282
  STIGType: () => STIGType,
2213
2283
  Schema: () => Schema,
2214
2284
  Security: () => Security,
2215
2285
  Serialspeed: () => Serialspeed,
2216
- Service: () => Service,
2286
+ Service: () => Service2,
2217
2287
  ServiceControlVerb: () => ServiceControlVerb,
2218
2288
  Shutdown: () => Shutdown,
2219
2289
  Snapdev: () => Snapdev,
2220
2290
  Snapdir: () => Snapdir,
2221
- Source: () => Source,
2222
2291
  SourceInput: () => SourceInput,
2292
+ SourceValueType: () => SourceValueType,
2223
2293
  SupportNewTicketCommunityTypeInput: () => SupportNewTicketCommunityTypeInput,
2224
2294
  Sync: () => Sync,
2295
+ SyslogServerTransport: () => SyslogServerTransport,
2225
2296
  SyslogServerTransportInput: () => SyslogServerTransportInput,
2226
2297
  Sysloglevel: () => Sysloglevel,
2227
2298
  SystemProductTypeResult: () => SystemProductTypeResult,
@@ -2229,7 +2300,6 @@ __export(v27_0_0_exports, {
2229
2300
  Tag: () => Tag,
2230
2301
  Target: () => Target,
2231
2302
  Time: () => Time,
2232
- Transport: () => Transport,
2233
2303
  TruecommandConfigChangedEventFieldsStatus: () => TruecommandConfigChangedEventFieldsStatus,
2234
2304
  TruecommandConfigChangedEventFieldsStatusInput: () => TruecommandConfigChangedEventFieldsStatusInput,
2235
2305
  TunableCreateType: () => TunableCreateType,
@@ -2240,6 +2310,7 @@ __export(v27_0_0_exports, {
2240
2310
  Username: () => Username,
2241
2311
  VMDiskDeviceType: () => VMDiskDeviceType,
2242
2312
  VMDiskDeviceTypeInput: () => VMDiskDeviceTypeInput,
2313
+ VMWareEntryStateState: () => VMWareEntryStateState,
2243
2314
  VMWareEntryStateStateInput: () => VMWareEntryStateStateInput,
2244
2315
  VMWareMatchDatastoresWithDatasetsResultFilesystemType: () => VMWareMatchDatastoresWithDatasetsResultFilesystemType,
2245
2316
  Vendor: () => Vendor,
@@ -2250,6 +2321,15 @@ __export(v27_0_0_exports, {
2250
2321
  ZpoolScrubRunAction: () => ZpoolScrubRunAction
2251
2322
  });
2252
2323
 
2324
+ // src/generated/v27_0_0/api-types.ts
2325
+ var Service2 = {
2326
+ Middleware: "MIDDLEWARE",
2327
+ S3: "S3",
2328
+ Smb: "SMB",
2329
+ Sudo: "SUDO",
2330
+ System: "SYSTEM"
2331
+ };
2332
+
2253
2333
  // src/generated/index.ts
2254
2334
  var SUPPORTED_API_VERSIONS = [
2255
2335
  "v25.10.0",
@@ -2836,6 +2916,7 @@ var noopLogger = {
2836
2916
  };
2837
2917
 
2838
2918
  // src/utils/truenas-connection.utils.ts
2919
+ var policyViolationCloseCode = 1008;
2839
2920
  function isHttpStatusError(reason) {
2840
2921
  return ["404", "502", "503"].some((code) => reason.includes(code));
2841
2922
  }
@@ -2944,7 +3025,25 @@ var TrueNasConnection = class {
2944
3025
  rxjs.switchMap((enabled) => {
2945
3026
  if (enabled) {
2946
3027
  return this.connect().pipe(
2947
- rxjs.map((conn) => makeActiveConnection(conn.ws, conn.hostname))
3028
+ rxjs.map((conn) => makeActiveConnection(conn.ws, conn.hostname)),
3029
+ // A refusal becomes a value here rather than an error, so it never
3030
+ // reaches the `retry` below and nothing reconnects on its own.
3031
+ //
3032
+ // Handled at this depth on purpose: letting it out completes the
3033
+ // pipeline and unsubscribes `enabledChange$`, and `setEnabled` is the
3034
+ // documented way an app asks for another attempt once the network
3035
+ // changes. Not retrying is a statement about what this client does on
3036
+ // its own; it is not a reason to refuse the caller asking again.
3037
+ rxjs.catchError(
3038
+ (err) => isTerminalClose(err) ? rxjs.of(
3039
+ makeConnectionError(
3040
+ err.message,
3041
+ err.hostname,
3042
+ err.closeCode,
3043
+ err.closeReason
3044
+ )
3045
+ ) : rxjs.throwError(() => err)
3046
+ )
2948
3047
  );
2949
3048
  }
2950
3049
  return rxjs.of(closedConnection);
@@ -2970,7 +3069,14 @@ var TrueNasConnection = class {
2970
3069
  rxjs.catchError((err) => {
2971
3070
  this.logger.error("All connections failed - retrying", { message: err?.message, hostname: err?.hostname });
2972
3071
  return rxjs.concat(
2973
- rxjs.of(makeConnectionError(err.message, err.hostname)),
3072
+ rxjs.of(
3073
+ makeConnectionError(
3074
+ err.message,
3075
+ err.hostname,
3076
+ err.closeCode,
3077
+ err.closeReason
3078
+ )
3079
+ ),
2974
3080
  // since this error will immediately get caught by `retry` there's no reason to build a real error.
2975
3081
  rxjs.throwError(() => null)
2976
3082
  );
@@ -3079,6 +3185,11 @@ var TrueNasConnection = class {
3079
3185
  /**
3080
3186
  * enables or disables the connection gate. the app calls this when its `SystemState`
3081
3187
  * changes (mapping `SystemState.Active -> true`, everything else -> `false`).
3188
+ *
3189
+ * This is also how a caller asks for another attempt after the appliance has
3190
+ * refused the client — nothing reconnects on its own from there. The gate is
3191
+ * `distinctUntilChanged`, so re-asserting `true` while it is already `true`
3192
+ * does nothing: the round trip through `false` is what asks again.
3082
3193
  */
3083
3194
  setEnabled(enabled) {
3084
3195
  this.enabled$.next(enabled);
@@ -3136,7 +3247,9 @@ var TrueNasConnection = class {
3136
3247
  errorMessage = getWebSocketError(event.code);
3137
3248
  }
3138
3249
  this.connectionAttempts.next(this.connectionAttempts.value + 1);
3139
- subscriber.error(makeConnectionError(errorMessage, hostname));
3250
+ subscriber.error(
3251
+ makeConnectionError(errorMessage, hostname, event.code, reason)
3252
+ );
3140
3253
  }
3141
3254
  }
3142
3255
  });
@@ -3186,12 +3299,15 @@ var makeActiveConnection = (ws, hostname) => ({
3186
3299
  hostname,
3187
3300
  state: "active"
3188
3301
  });
3189
- var makeConnectionError = (message, hostname) => ({
3302
+ var makeConnectionError = (message, hostname, closeCode, closeReason) => ({
3190
3303
  name: "ConnectionError",
3191
3304
  message,
3192
3305
  hostname,
3306
+ closeCode,
3307
+ closeReason,
3193
3308
  state: "error"
3194
3309
  });
3310
+ var isTerminalClose = (err) => err?.closeCode === policyViolationCloseCode;
3195
3311
  var closedConnection = { state: "closed" };
3196
3312
 
3197
3313
  // src/client/truenas-api-client.ts