SegmentRules
June 9, 2026 ยท View on GitHub
Example Usage
import { SegmentRules } from "@vercel/sdk/models/segment.js";
let value: SegmentRules = {
id: "<id>",
outcome: {
type: "all",
},
conditions: [
{
lhs: {
type: "segment",
},
cmp: "contains",
},
],
};
Fields
| Field | Type | Required | Description |
|---|---|---|---|
id | string | :heavy_check_mark: | N/A |
outcome | models.SegmentOutcome | :heavy_check_mark: | N/A |
conditions | models.SegmentConditions[] | :heavy_check_mark: | N/A |