@truenas/api-client 9.0.6 → 10.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.
@@ -1731,6 +1731,7 @@ __export(v27_0_0_exports, {
1731
1731
  IscsiTargetCreateModeInput: () => IscsiTargetCreateModeInput,
1732
1732
  KeychainCredentialEntryType: () => KeychainCredentialEntryType,
1733
1733
  KeychainCredentialEntryTypeInput: () => KeychainCredentialEntryTypeInput,
1734
+ Layout: () => Layout,
1734
1735
  Level: () => Level,
1735
1736
  NFS4ACEType: () => NFS4ACEType,
1736
1737
  NFS4ACETypeInput: () => NFS4ACETypeInput,
@@ -1845,6 +1846,10 @@ var Interval = {
1845
1846
  "30": 30,
1846
1847
  "60": 60
1847
1848
  };
1849
+ var Layout = {
1850
+ Bucket: "BUCKET",
1851
+ Dataset: "DATASET"
1852
+ };
1848
1853
  var Name2 = {
1849
1854
  Cpu: "cpu",
1850
1855
  Cputemp: "cputemp",
@@ -1988,6 +1993,7 @@ __export(v28_0_0_exports, {
1988
1993
  IscsiTargetCreateModeInput: () => IscsiTargetCreateModeInput,
1989
1994
  KeychainCredentialEntryType: () => KeychainCredentialEntryType,
1990
1995
  KeychainCredentialEntryTypeInput: () => KeychainCredentialEntryTypeInput,
1996
+ Layout: () => Layout,
1991
1997
  Level: () => Level,
1992
1998
  NFS4ACEType: () => NFS4ACEType,
1993
1999
  NFS4ACETypeInput: () => NFS4ACETypeInput,
@@ -2063,6 +2069,8 @@ __export(v28_0_0_exports, {
2063
2069
  Versioning: () => Versioning,
2064
2070
  Volblocksize: () => Volblocksize,
2065
2071
  When: () => When,
2072
+ ZFSResourceUserspaceEntryType: () => ZFSResourceUserspaceEntryType,
2073
+ ZFSResourceUserspaceEntryTypeInput: () => ZFSResourceUserspaceEntryTypeInput,
2066
2074
  ZfsTierRewriteJobEntryStatus: () => ZfsTierRewriteJobEntryStatus,
2067
2075
  ZfsTierRewriteJobEntryStatusInput: () => ZfsTierRewriteJobEntryStatusInput,
2068
2076
  ZpoolScrubRunAction: () => ZpoolScrubRunAction
@@ -2148,6 +2156,14 @@ var VMWareMatchDatastoresWithDatasetsResultFilesystemTypeInput = {
2148
2156
  Filesystem: "FILESYSTEM",
2149
2157
  Volume: "VOLUME"
2150
2158
  };
2159
+ var ZFSResourceUserspaceEntryType = {
2160
+ User: "user",
2161
+ Group: "group"
2162
+ };
2163
+ var ZFSResourceUserspaceEntryTypeInput = {
2164
+ User: "user",
2165
+ Group: "group"
2166
+ };
2151
2167
 
2152
2168
  // src/generated/index.ts
2153
2169
  var SUPPORTED_API_VERSIONS = [
@@ -4205,7 +4221,12 @@ function toContainer3(container) {
4205
4221
  return {
4206
4222
  id: container.id.toString(),
4207
4223
  name: container.name,
4208
- status: toAppState(container.status.state),
4224
+ // `status` is nullable from v28. Middleware's own word on when: "`null` if
4225
+ // `query-options.extra.retrieve_status` is `false`" — so a null is status
4226
+ // that was not fetched, not a container in an unreportable state. That is
4227
+ // what `Unknown` is for ("no usable state"), and it keeps `Container.status`
4228
+ // non-optional for every caller.
4229
+ status: container.status ? toAppState(container.status.state) : "UNKNOWN" /* Unknown */,
4209
4230
  // Optional in the generated entry, required by `Container`.
4210
4231
  autostart: container.autostart ?? false,
4211
4232
  description
@@ -4779,5 +4800,5 @@ var UserRole = /* @__PURE__ */ ((UserRole2) => {
4779
4800
  })(UserRole || {});
4780
4801
 
4781
4802
  export { AppState, AuthError, AuthErrorCode, AuthResponseType, InvalidVersionResponseError, JobState, NoCompatibleVersionsError, SUPPORTED_API_VERSIONS, TrueNasApiClient, TrueNasApiClientV2510, TrueNasApiClientV27, TrueNasApiClientV28, TrueNasApiError, TrueNasAuthMechanism, TrueNasAuthenticator, TrueNasConnection, UserRole, VersionCompatibility, VersionDiscovery, VersionDiscoveryError, VersionDiscoveryNetworkError, VersionDiscoveryTimeoutError, VersionEndpointNotFoundError, VersionTooNewError, VersionTooOldError, clientClassFor, consoleLogger, createTrueNasClient, getApiErrorMessage, getCloseMessage, isJobFinished, noopLogger, parseApiVersion, policyViolationCloseCode, subscriptionName, v25_10_0_exports, v25_10_1_exports, v25_10_2_exports, v25_10_3_exports, v25_10_4_exports, v25_10_5_exports, v27_0_0_exports, v28_0_0_exports };
4782
- //# sourceMappingURL=chunk-R4VP3HBB.js.map
4783
- //# sourceMappingURL=chunk-R4VP3HBB.js.map
4803
+ //# sourceMappingURL=chunk-Z5U5ZRKJ.js.map
4804
+ //# sourceMappingURL=chunk-Z5U5ZRKJ.js.map