@smplkit/sdk 1.5.4 → 1.5.6

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
@@ -308,6 +308,7 @@ interface components {
308
308
  * "rules": []
309
309
  * }
310
310
  * },
311
+ * "managed": true,
311
312
  * "name": "Dark Mode",
312
313
  * "type": "BOOLEAN",
313
314
  * "updated_at": "2026-03-27T10:00:00Z",
@@ -350,11 +351,92 @@ interface components {
350
351
  environments?: {
351
352
  [key: string]: components["schemas"]["FlagEnvironment"];
352
353
  };
354
+ /**
355
+ * Managed
356
+ * @description True if admin-managed, false if auto-discovered
357
+ */
358
+ managed?: boolean | null;
359
+ /** Sources */
360
+ readonly sources?: {
361
+ [key: string]: unknown;
362
+ }[] | null;
353
363
  /** Created At */
354
364
  readonly created_at?: string | null;
355
365
  /** Updated At */
356
366
  readonly updated_at?: string | null;
357
367
  };
368
+ /**
369
+ * FlagBulkItem
370
+ * @example {
371
+ * "default": false,
372
+ * "environment": "production",
373
+ * "id": "dark-mode",
374
+ * "service": "api-gateway",
375
+ * "type": "BOOLEAN"
376
+ * }
377
+ */
378
+ FlagBulkItem: {
379
+ /**
380
+ * Id
381
+ * @description Flag key as declared in code
382
+ */
383
+ id: string;
384
+ /**
385
+ * Type
386
+ * @description Flag type: BOOLEAN, STRING, NUMERIC, or JSON
387
+ */
388
+ type: string;
389
+ /**
390
+ * Default
391
+ * @description Default value declared in code
392
+ */
393
+ default: unknown;
394
+ /**
395
+ * Service
396
+ * @description Service that declared this flag
397
+ */
398
+ service?: string | null;
399
+ /**
400
+ * Environment
401
+ * @description Environment where observed
402
+ */
403
+ environment?: string | null;
404
+ };
405
+ /**
406
+ * FlagBulkRequest
407
+ * @example {
408
+ * "flags": [
409
+ * {
410
+ * "default": false,
411
+ * "environment": "production",
412
+ * "id": "dark-mode",
413
+ * "service": "api-gateway",
414
+ * "type": "BOOLEAN"
415
+ * },
416
+ * {
417
+ * "default": 3,
418
+ * "environment": "production",
419
+ * "id": "max-retries",
420
+ * "service": "api-gateway",
421
+ * "type": "NUMERIC"
422
+ * }
423
+ * ]
424
+ * }
425
+ */
426
+ FlagBulkRequest: {
427
+ /** Flags */
428
+ flags: components["schemas"]["FlagBulkItem"][];
429
+ };
430
+ /**
431
+ * FlagBulkResponse
432
+ * @example {
433
+ * "registered": 5
434
+ * }
435
+ */
436
+ FlagBulkResponse: {
437
+ /** Registered */
438
+ registered: number;
439
+ };
358
440
  /** FlagEnvironment */
359
441
  FlagEnvironment: {
360
442
  /**
@@ -396,6 +478,7 @@ interface components {
396
478
  * ]
397
479
  * }
398
480
  * },
481
+ * "managed": true,
399
482
  * "name": "Dark Mode",
400
483
  * "type": "BOOLEAN",
401
484
  * "updated_at": "2026-03-27T10:00:00Z",
@@ -439,6 +522,73 @@ interface components {
439
522
  /** Value */
440
523
  value: unknown;
441
524
  };
525
+ /**
526
+ * FlagSource
527
+ * @example {
528
+ * "created_at": "2026-04-17T10:00:00Z",
529
+ * "data": {
530
+ * "default": true,
531
+ * "type": "BOOLEAN"
532
+ * },
533
+ * "environment": "production",
534
+ * "first_observed": "2026-04-17T10:00:00Z",
535
+ * "last_seen": "2026-04-17T15:30:00Z",
536
+ * "service": "api-gateway",
537
+ * "updated_at": "2026-04-17T15:30:00Z"
538
+ * }
539
+ */
540
+ FlagSource: {
541
+ /** Service */
542
+ readonly service?: string;
543
+ /** Environment */
544
+ readonly environment?: string;
545
+ /** First Observed */
546
+ readonly first_observed?: string | null;
547
+ /** Last Seen */
548
+ readonly last_seen?: string | null;
549
+ /** Data */
550
+ readonly data?: {
551
+ [key: string]: unknown;
552
+ } | null;
553
+ /** Created At */
554
+ readonly created_at?: string | null;
555
+ /** Updated At */
556
+ readonly updated_at?: string | null;
557
+ };
558
+ /** FlagSourceListResponse */
559
+ FlagSourceListResponse: {
560
+ /** Data */
561
+ data: components["schemas"]["FlagSourceResource"][];
562
+ };
563
+ /**
564
+ * FlagSourceResource
565
+ * @example {
566
+ * "attributes": {
567
+ * "created_at": "2026-04-17T10:00:00Z",
568
+ * "data": {
569
+ * "default": true,
570
+ * "type": "BOOLEAN"
571
+ * },
572
+ * "environment": "production",
573
+ * "first_observed": "2026-04-17T10:00:00Z",
574
+ * "last_seen": "2026-04-17T15:30:00Z",
575
+ * "service": "api-gateway",
576
+ * "updated_at": "2026-04-17T15:30:00Z"
577
+ * },
578
+ * "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
579
+ * "type": "flag_source"
580
+ * }
581
+ */
582
+ FlagSourceResource: {
583
+ /** Id */
584
+ id?: string | null;
585
+ /**
586
+ * Type
587
+ * @constant
588
+ */
589
+ type: "flag_source";
590
+ attributes: components["schemas"]["FlagSource"];
591
+ };
442
592
  /** FlagValue */
443
593
  FlagValue: {
444
594
  /** Name */
package/dist/index.d.ts CHANGED
@@ -308,6 +308,7 @@ interface components {
308
308
  * "rules": []
309
309
  * }
310
310
  * },
311
+ * "managed": true,
311
312
  * "name": "Dark Mode",
312
313
  * "type": "BOOLEAN",
313
314
  * "updated_at": "2026-03-27T10:00:00Z",
@@ -350,11 +351,92 @@ interface components {
350
351
  environments?: {
351
352
  [key: string]: components["schemas"]["FlagEnvironment"];
352
353
  };
354
+ /**
355
+ * Managed
356
+ * @description True if admin-managed, false if auto-discovered
357
+ */
358
+ managed?: boolean | null;
359
+ /** Sources */
360
+ readonly sources?: {
361
+ [key: string]: unknown;
362
+ }[] | null;
353
363
  /** Created At */
354
364
  readonly created_at?: string | null;
355
365
  /** Updated At */
356
366
  readonly updated_at?: string | null;
357
367
  };
368
+ /**
369
+ * FlagBulkItem
370
+ * @example {
371
+ * "default": false,
372
+ * "environment": "production",
373
+ * "id": "dark-mode",
374
+ * "service": "api-gateway",
375
+ * "type": "BOOLEAN"
376
+ * }
377
+ */
378
+ FlagBulkItem: {
379
+ /**
380
+ * Id
381
+ * @description Flag key as declared in code
382
+ */
383
+ id: string;
384
+ /**
385
+ * Type
386
+ * @description Flag type: BOOLEAN, STRING, NUMERIC, or JSON
387
+ */
388
+ type: string;
389
+ /**
390
+ * Default
391
+ * @description Default value declared in code
392
+ */
393
+ default: unknown;
394
+ /**
395
+ * Service
396
+ * @description Service that declared this flag
397
+ */
398
+ service?: string | null;
399
+ /**
400
+ * Environment
401
+ * @description Environment where observed
402
+ */
403
+ environment?: string | null;
404
+ };
405
+ /**
406
+ * FlagBulkRequest
407
+ * @example {
408
+ * "flags": [
409
+ * {
410
+ * "default": false,
411
+ * "environment": "production",
412
+ * "id": "dark-mode",
413
+ * "service": "api-gateway",
414
+ * "type": "BOOLEAN"
415
+ * },
416
+ * {
417
+ * "default": 3,
418
+ * "environment": "production",
419
+ * "id": "max-retries",
420
+ * "service": "api-gateway",
421
+ * "type": "NUMERIC"
422
+ * }
423
+ * ]
424
+ * }
425
+ */
426
+ FlagBulkRequest: {
427
+ /** Flags */
428
+ flags: components["schemas"]["FlagBulkItem"][];
429
+ };
430
+ /**
431
+ * FlagBulkResponse
432
+ * @example {
433
+ * "registered": 5
434
+ * }
435
+ */
436
+ FlagBulkResponse: {
437
+ /** Registered */
438
+ registered: number;
439
+ };
358
440
  /** FlagEnvironment */
359
441
  FlagEnvironment: {
360
442
  /**
@@ -396,6 +478,7 @@ interface components {
396
478
  * ]
397
479
  * }
398
480
  * },
481
+ * "managed": true,
399
482
  * "name": "Dark Mode",
400
483
  * "type": "BOOLEAN",
401
484
  * "updated_at": "2026-03-27T10:00:00Z",
@@ -439,6 +522,73 @@ interface components {
439
522
  /** Value */
440
523
  value: unknown;
441
524
  };
525
+ /**
526
+ * FlagSource
527
+ * @example {
528
+ * "created_at": "2026-04-17T10:00:00Z",
529
+ * "data": {
530
+ * "default": true,
531
+ * "type": "BOOLEAN"
532
+ * },
533
+ * "environment": "production",
534
+ * "first_observed": "2026-04-17T10:00:00Z",
535
+ * "last_seen": "2026-04-17T15:30:00Z",
536
+ * "service": "api-gateway",
537
+ * "updated_at": "2026-04-17T15:30:00Z"
538
+ * }
539
+ */
540
+ FlagSource: {
541
+ /** Service */
542
+ readonly service?: string;
543
+ /** Environment */
544
+ readonly environment?: string;
545
+ /** First Observed */
546
+ readonly first_observed?: string | null;
547
+ /** Last Seen */
548
+ readonly last_seen?: string | null;
549
+ /** Data */
550
+ readonly data?: {
551
+ [key: string]: unknown;
552
+ } | null;
553
+ /** Created At */
554
+ readonly created_at?: string | null;
555
+ /** Updated At */
556
+ readonly updated_at?: string | null;
557
+ };
558
+ /** FlagSourceListResponse */
559
+ FlagSourceListResponse: {
560
+ /** Data */
561
+ data: components["schemas"]["FlagSourceResource"][];
562
+ };
563
+ /**
564
+ * FlagSourceResource
565
+ * @example {
566
+ * "attributes": {
567
+ * "created_at": "2026-04-17T10:00:00Z",
568
+ * "data": {
569
+ * "default": true,
570
+ * "type": "BOOLEAN"
571
+ * },
572
+ * "environment": "production",
573
+ * "first_observed": "2026-04-17T10:00:00Z",
574
+ * "last_seen": "2026-04-17T15:30:00Z",
575
+ * "service": "api-gateway",
576
+ * "updated_at": "2026-04-17T15:30:00Z"
577
+ * },
578
+ * "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
579
+ * "type": "flag_source"
580
+ * }
581
+ */
582
+ FlagSourceResource: {
583
+ /** Id */
584
+ id?: string | null;
585
+ /**
586
+ * Type
587
+ * @constant
588
+ */
589
+ type: "flag_source";
590
+ attributes: components["schemas"]["FlagSource"];
591
+ };
442
592
  /** FlagValue */
443
593
  FlagValue: {
444
594
  /** Name */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smplkit/sdk",
3
- "version": "1.5.4",
3
+ "version": "1.5.6",
4
4
  "type": "module",
5
5
  "description": "Official TypeScript SDK for the smplkit platform",
6
6
  "main": "./dist/index.cjs",