@smplkit/sdk 3.0.81 → 3.0.83

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.d.cts CHANGED
@@ -2003,6 +2003,14 @@ declare class Environment {
2003
2003
  name: string;
2004
2004
  /** Whether this is a STANDARD or AD_HOC environment. */
2005
2005
  classification: EnvironmentClassification;
2006
+ /**
2007
+ * Whether per-environment resource values can be written against this
2008
+ * environment. Unmanaged environments are view-only — existing values
2009
+ * render for comparison but no new values can be set. Managed
2010
+ * environments count toward the account's `platform.managed_environments`
2011
+ * quota.
2012
+ */
2013
+ managed: boolean;
2006
2014
  /** When the environment was created. */
2007
2015
  createdAt: string | null;
2008
2016
  /** When the environment was last updated. */
@@ -2017,6 +2025,7 @@ declare class Environment {
2017
2025
  name: string;
2018
2026
  color?: Color | string | null;
2019
2027
  classification: EnvironmentClassification;
2028
+ managed?: boolean;
2020
2029
  createdAt?: string | null;
2021
2030
  updatedAt?: string | null;
2022
2031
  });
@@ -3366,6 +3375,7 @@ declare class EnvironmentsClient {
3366
3375
  name: string;
3367
3376
  color?: Color | string | null;
3368
3377
  classification?: EnvironmentClassification;
3378
+ managed?: boolean;
3369
3379
  }): Environment;
3370
3380
  /**
3371
3381
  * List environments.
package/dist/index.d.ts CHANGED
@@ -2003,6 +2003,14 @@ declare class Environment {
2003
2003
  name: string;
2004
2004
  /** Whether this is a STANDARD or AD_HOC environment. */
2005
2005
  classification: EnvironmentClassification;
2006
+ /**
2007
+ * Whether per-environment resource values can be written against this
2008
+ * environment. Unmanaged environments are view-only — existing values
2009
+ * render for comparison but no new values can be set. Managed
2010
+ * environments count toward the account's `platform.managed_environments`
2011
+ * quota.
2012
+ */
2013
+ managed: boolean;
2006
2014
  /** When the environment was created. */
2007
2015
  createdAt: string | null;
2008
2016
  /** When the environment was last updated. */
@@ -2017,6 +2025,7 @@ declare class Environment {
2017
2025
  name: string;
2018
2026
  color?: Color | string | null;
2019
2027
  classification: EnvironmentClassification;
2028
+ managed?: boolean;
2020
2029
  createdAt?: string | null;
2021
2030
  updatedAt?: string | null;
2022
2031
  });
@@ -3366,6 +3375,7 @@ declare class EnvironmentsClient {
3366
3375
  name: string;
3367
3376
  color?: Color | string | null;
3368
3377
  classification?: EnvironmentClassification;
3378
+ managed?: boolean;
3369
3379
  }): Environment;
3370
3380
  /**
3371
3381
  * List environments.
package/dist/index.js CHANGED
@@ -18504,6 +18504,14 @@ var Environment = class {
18504
18504
  name;
18505
18505
  /** Whether this is a STANDARD or AD_HOC environment. */
18506
18506
  classification;
18507
+ /**
18508
+ * Whether per-environment resource values can be written against this
18509
+ * environment. Unmanaged environments are view-only — existing values
18510
+ * render for comparison but no new values can be set. Managed
18511
+ * environments count toward the account's `platform.managed_environments`
18512
+ * quota.
18513
+ */
18514
+ managed;
18507
18515
  /** When the environment was created. */
18508
18516
  createdAt;
18509
18517
  /** When the environment was last updated. */
@@ -18519,6 +18527,7 @@ var Environment = class {
18519
18527
  this.name = fields.name;
18520
18528
  this._color = coerceColor(fields.color ?? null);
18521
18529
  this.classification = fields.classification;
18530
+ this.managed = fields.managed ?? true;
18522
18531
  this.createdAt = fields.createdAt ?? null;
18523
18532
  this.updatedAt = fields.updatedAt ?? null;
18524
18533
  }
@@ -18555,11 +18564,12 @@ var Environment = class {
18555
18564
  this.name = other.name;
18556
18565
  this._color = other._color;
18557
18566
  this.classification = other.classification;
18567
+ this.managed = other.managed;
18558
18568
  this.createdAt = other.createdAt;
18559
18569
  this.updatedAt = other.updatedAt;
18560
18570
  }
18561
18571
  toString() {
18562
- return `Environment(id=${this.id}, name=${this.name}, classification=${this.classification})`;
18572
+ return `Environment(id=${this.id}, name=${this.name}, classification=${this.classification}, managed=${this.managed})`;
18563
18573
  }
18564
18574
  };
18565
18575
  var ContextType = class {
@@ -19802,10 +19812,9 @@ function loggerToBody(logger) {
19802
19812
  if (logger.level !== null) attrs.level = logger.level;
19803
19813
  if (logger.group !== null) attrs.group = logger.group;
19804
19814
  if (logger.managed !== null) attrs.managed = logger.managed;
19805
- const wire = loggerEnvironmentsToWire(logger._environmentsDirect);
19806
- if (Object.keys(wire).length > 0) {
19807
- attrs.environments = wire;
19808
- }
19815
+ attrs.environments = loggerEnvironmentsToWire(
19816
+ logger._environmentsDirect
19817
+ );
19809
19818
  return {
19810
19819
  data: { id: logger.id, type: "logger", attributes: attrs }
19811
19820
  };
@@ -20651,6 +20660,7 @@ function envFromResource(resource, client) {
20651
20660
  name: attrs.name ?? "",
20652
20661
  color,
20653
20662
  classification: attrs.classification === "AD_HOC" ? "AD_HOC" /* AD_HOC */ : "STANDARD" /* STANDARD */,
20663
+ managed: typeof attrs.managed === "boolean" ? attrs.managed : false,
20654
20664
  createdAt: attrs.created_at ?? null,
20655
20665
  updatedAt: attrs.updated_at ?? null
20656
20666
  });
@@ -20702,6 +20712,7 @@ var EnvironmentsClient = class {
20702
20712
  name: options.name,
20703
20713
  color: coerceColor(options.color ?? null),
20704
20714
  classification: options.classification ?? "STANDARD" /* STANDARD */,
20715
+ managed: options.managed ?? true,
20705
20716
  createdAt: null,
20706
20717
  updatedAt: null
20707
20718
  });
@@ -20767,7 +20778,8 @@ var EnvironmentsClient = class {
20767
20778
  attributes: {
20768
20779
  name: env.name,
20769
20780
  color: env.color === null ? null : env.color.hex,
20770
- classification: env.classification
20781
+ classification: env.classification,
20782
+ managed: env.managed
20771
20783
  }
20772
20784
  }
20773
20785
  };
@@ -20792,7 +20804,8 @@ var EnvironmentsClient = class {
20792
20804
  attributes: {
20793
20805
  name: env.name,
20794
20806
  color: env.color === null ? null : env.color.hex,
20795
- classification: env.classification
20807
+ classification: env.classification,
20808
+ managed: env.managed
20796
20809
  }
20797
20810
  }
20798
20811
  };