@luxuryescapes/contract-svc-lab-v2 0.1.29 → 0.1.30

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.
Files changed (2) hide show
  1. package/dist/server.d.ts +57 -0
  2. package/package.json +1 -1
package/dist/server.d.ts CHANGED
@@ -66,6 +66,10 @@ export interface paths {
66
66
  "/api/lab/v2/evaluate": {
67
67
  post: operations["evaluateExperiments"];
68
68
  };
69
+ "/api/lab/v2/feature-flags": {
70
+ /** Public, read only. Returns the requested flags that are on for this caller, with their payloads. Audiences use the signed-in member; rollout uses `domain_id`. Not cacheable. */
71
+ post: operations["evaluateFeatureFlags"];
72
+ };
69
73
  }
70
74
  export interface components {
71
75
  schemas: {
@@ -1505,6 +1509,59 @@ export interface operations {
1505
1509
  };
1506
1510
  };
1507
1511
  };
1512
+ /** Public, read only. Returns the requested flags that are on for this caller, with their payloads. Audiences use the signed-in member; rollout uses `domain_id`. Not cacheable. */
1513
+ evaluateFeatureFlags: {
1514
+ parameters: {};
1515
+ responses: {
1516
+ /** 200 response */
1517
+ 200: {
1518
+ content: {
1519
+ "application/json": {
1520
+ status: 200;
1521
+ message: string;
1522
+ /** @description Flags that are on for this caller, with payloads. A missing key is off: use the default behaviour. Per caller, so never share it between users. */
1523
+ result: {
1524
+ [key: string]: {
1525
+ payload: {
1526
+ [key: string]: unknown;
1527
+ };
1528
+ };
1529
+ };
1530
+ };
1531
+ };
1532
+ };
1533
+ /** 400 response */
1534
+ 400: {
1535
+ content: {
1536
+ "application/json": {
1537
+ status: 400;
1538
+ message: string;
1539
+ errors?: {
1540
+ message: string;
1541
+ path?: string;
1542
+ }[];
1543
+ };
1544
+ };
1545
+ };
1546
+ };
1547
+ /** payload */
1548
+ requestBody: {
1549
+ content: {
1550
+ "application/json": {
1551
+ /** @description Case-sensitive. More than the maximum is a 400; keys are never dropped. */
1552
+ keys: string[];
1553
+ /**
1554
+ * Format: uuid
1555
+ * @description Snowplow domain_userid, used only for rollout, as for POST /evaluate. Services forward the browser value. Null when there is none: only full rollouts match.
1556
+ */
1557
+ domain_id: string | null;
1558
+ attributes: {
1559
+ [key: string]: unknown;
1560
+ };
1561
+ };
1562
+ };
1563
+ };
1564
+ };
1508
1565
  }
1509
1566
  export interface external {
1510
1567
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luxuryescapes/contract-svc-lab-v2",
3
- "version": "0.1.29",
3
+ "version": "0.1.30",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "files": [