@smplkit/sdk 1.7.3 → 1.8.1

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
@@ -344,7 +344,7 @@ interface components {
344
344
  * Type
345
345
  * @description Value type: STRING, BOOLEAN, NUMERIC, or JSON
346
346
  */
347
- type: string;
347
+ type?: string | null;
348
348
  /**
349
349
  * Default
350
350
  * @description Default value; must reference a value in the values array (constrained) or match the flag type (unconstrained)
@@ -795,7 +795,7 @@ declare class Flag {
795
795
  /** Human-readable display name. */
796
796
  name: string;
797
797
  /** Value type: BOOLEAN, STRING, NUMERIC, or JSON. */
798
- type: string;
798
+ type: string | null;
799
799
  /** Flag-level default value. */
800
800
  default: unknown;
801
801
  /** Closed set of possible values (constrained), or null (unconstrained). */
@@ -817,7 +817,7 @@ declare class Flag {
817
817
  constructor(client: FlagsClient, fields: {
818
818
  id: string | null;
819
819
  name: string;
820
- type: string;
820
+ type: string | null;
821
821
  default: unknown;
822
822
  values: Array<{
823
823
  name: string;
@@ -1210,6 +1210,8 @@ declare class Logger {
1210
1210
  declare class LogGroup {
1211
1211
  /** Unique identifier (slug), or `null` if unsaved. */
1212
1212
  id: string | null;
1213
+ /** Human-readable key (slug), or `null` if not set. */
1214
+ key: string | null;
1213
1215
  /** Human-readable display name. */
1214
1216
  name: string;
1215
1217
  /** Base log level, or null if inherited. */
@@ -1227,6 +1229,7 @@ declare class LogGroup {
1227
1229
  /** @internal */
1228
1230
  constructor(client: LoggingClient, fields: {
1229
1231
  id: string | null;
1232
+ key: string | null;
1230
1233
  name: string;
1231
1234
  level: string | null;
1232
1235
  group: string | null;
package/dist/index.d.ts CHANGED
@@ -344,7 +344,7 @@ interface components {
344
344
  * Type
345
345
  * @description Value type: STRING, BOOLEAN, NUMERIC, or JSON
346
346
  */
347
- type: string;
347
+ type?: string | null;
348
348
  /**
349
349
  * Default
350
350
  * @description Default value; must reference a value in the values array (constrained) or match the flag type (unconstrained)
@@ -795,7 +795,7 @@ declare class Flag {
795
795
  /** Human-readable display name. */
796
796
  name: string;
797
797
  /** Value type: BOOLEAN, STRING, NUMERIC, or JSON. */
798
- type: string;
798
+ type: string | null;
799
799
  /** Flag-level default value. */
800
800
  default: unknown;
801
801
  /** Closed set of possible values (constrained), or null (unconstrained). */
@@ -817,7 +817,7 @@ declare class Flag {
817
817
  constructor(client: FlagsClient, fields: {
818
818
  id: string | null;
819
819
  name: string;
820
- type: string;
820
+ type: string | null;
821
821
  default: unknown;
822
822
  values: Array<{
823
823
  name: string;
@@ -1210,6 +1210,8 @@ declare class Logger {
1210
1210
  declare class LogGroup {
1211
1211
  /** Unique identifier (slug), or `null` if unsaved. */
1212
1212
  id: string | null;
1213
+ /** Human-readable key (slug), or `null` if not set. */
1214
+ key: string | null;
1213
1215
  /** Human-readable display name. */
1214
1216
  name: string;
1215
1217
  /** Base log level, or null if inherited. */
@@ -1227,6 +1229,7 @@ declare class LogGroup {
1227
1229
  /** @internal */
1228
1230
  constructor(client: LoggingClient, fields: {
1229
1231
  id: string | null;
1232
+ key: string | null;
1230
1233
  name: string;
1231
1234
  level: string | null;
1232
1235
  group: string | null;
package/dist/index.js CHANGED
@@ -18573,7 +18573,7 @@ var FlagsClient = class {
18573
18573
  return new Flag(this, {
18574
18574
  id: resource.id ?? null,
18575
18575
  name: attrs.name,
18576
- type: attrs.type,
18576
+ type: attrs.type ?? null,
18577
18577
  default: attrs.default,
18578
18578
  values: attrs.values ? attrs.values.map((v) => ({ name: v.name, value: v.value })) : null,
18579
18579
  description: attrs.description ?? null,
@@ -18690,6 +18690,8 @@ var Logger = class {
18690
18690
  var LogGroup = class {
18691
18691
  /** Unique identifier (slug), or `null` if unsaved. */
18692
18692
  id;
18693
+ /** Human-readable key (slug), or `null` if not set. */
18694
+ key;
18693
18695
  /** Human-readable display name. */
18694
18696
  name;
18695
18697
  /** Base log level, or null if inherited. */
@@ -18708,6 +18710,7 @@ var LogGroup = class {
18708
18710
  constructor(client, fields) {
18709
18711
  this._client = client;
18710
18712
  this.id = fields.id;
18713
+ this.key = fields.key;
18711
18714
  this.name = fields.name;
18712
18715
  this.level = fields.level;
18713
18716
  this.group = fields.group;
@@ -18755,6 +18758,7 @@ var LogGroup = class {
18755
18758
  /** @internal — copy all fields from another LogGroup instance. */
18756
18759
  _apply(other) {
18757
18760
  this.id = other.id;
18761
+ this.key = other.key;
18758
18762
  this.name = other.name;
18759
18763
  this.level = other.level;
18760
18764
  this.group = other.group;
@@ -18976,6 +18980,7 @@ var LoggingClient = class {
18976
18980
  _mgNewGroup(id, options) {
18977
18981
  return new LogGroup(this, {
18978
18982
  id,
18983
+ key: null,
18979
18984
  name: options?.name ?? keyToDisplayName(id),
18980
18985
  level: null,
18981
18986
  group: options?.group ?? null,
@@ -19560,6 +19565,7 @@ var LoggingClient = class {
19560
19565
  const attrs = resource.attributes;
19561
19566
  return new LogGroup(this, {
19562
19567
  id: resource.id ?? null,
19568
+ key: attrs.key ?? null,
19563
19569
  name: attrs.name,
19564
19570
  level: attrs.level ?? null,
19565
19571
  group: attrs.parent_id ?? null,