@smplkit/sdk 1.3.0 → 1.3.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/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # smplkit TypeScript SDK
2
2
 
3
+ [![npm Version](https://img.shields.io/npm/v/@smplkit/sdk)](https://www.npmjs.com/package/@smplkit/sdk) [![Build](https://github.com/smplkit/typescript-sdk/actions/workflows/ci-cd.yml/badge.svg)](https://github.com/smplkit/typescript-sdk/actions) [![Coverage](https://codecov.io/gh/smplkit/typescript-sdk/branch/main/graph/badge.svg)](https://codecov.io/gh/smplkit/typescript-sdk) [![License](https://img.shields.io/npm/l/@smplkit/sdk)](LICENSE) [![Docs](https://img.shields.io/badge/docs-docs.smplkit.com-blue)](https://docs.smplkit.com)
4
+
3
5
  The official TypeScript SDK for [smplkit](https://www.smplkit.com) — simple application infrastructure that just works.
4
6
 
5
7
  ## Installation
package/dist/index.cjs CHANGED
@@ -1636,7 +1636,8 @@ var FlagsClient = class {
1636
1636
  await this._appHttp.POST("/api/v1/contexts/bulk", {
1637
1637
  body: {
1638
1638
  contexts: batch.map((ctx) => ({
1639
- id: `${ctx.type}:${ctx.key}`,
1639
+ type: ctx.type,
1640
+ key: ctx.key,
1640
1641
  attributes: ctx.attributes
1641
1642
  }))
1642
1643
  }
@@ -1948,7 +1949,8 @@ var SmplClient = class {
1948
1949
  body: {
1949
1950
  contexts: [
1950
1951
  {
1951
- id: `service:${this._service}`,
1952
+ type: "service",
1953
+ key: this._service,
1952
1954
  attributes: { name: this._service }
1953
1955
  }
1954
1956
  ]