@volter/twin-segment 0.1.0
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 +154 -0
- package/client/segment-mirror.css +45 -0
- package/client/segment-mirror.tsx +154 -0
- package/dist/client/segment-mirror.bundle.js +342 -0
- package/dist/client/segment-mirror.css +45 -0
- package/dist/client/segment-mirror.d.ts +34 -0
- package/dist/client/segment-mirror.js +80 -0
- package/dist/client/segment-mirror.tsx +154 -0
- package/dist/src/cli.d.ts +2 -0
- package/dist/src/cli.js +34 -0
- package/dist/src/index.d.ts +8 -0
- package/dist/src/index.js +53 -0
- package/dist/src/segment-budget.d.ts +41 -0
- package/dist/src/segment-budget.js +112 -0
- package/dist/src/segment-capabilities.d.ts +12 -0
- package/dist/src/segment-capabilities.gen.d.ts +3 -0
- package/dist/src/segment-capabilities.gen.js +22 -0
- package/dist/src/segment-capabilities.js +907 -0
- package/dist/src/segment-conformance.d.ts +8 -0
- package/dist/src/segment-conformance.js +106 -0
- package/dist/src/segment-connector.d.ts +76 -0
- package/dist/src/segment-connector.js +226 -0
- package/dist/src/segment-mirror-ui.d.ts +42 -0
- package/dist/src/segment-mirror-ui.js +143 -0
- package/dist/src/segment-server.d.ts +25 -0
- package/dist/src/segment-server.js +90 -0
- package/dist/src/segment-surface.gen.d.ts +48 -0
- package/dist/src/segment-surface.gen.js +267 -0
- package/dist/src/segment-twin.d.ts +98 -0
- package/dist/src/segment-twin.js +543 -0
- package/package.json +59 -0
- package/src/cli.ts +30 -0
- package/src/index.ts +87 -0
- package/src/segment-budget.ts +138 -0
- package/src/segment-capabilities.gen.ts +25 -0
- package/src/segment-capabilities.ts +988 -0
- package/src/segment-conformance.ts +123 -0
- package/src/segment-connector.ts +233 -0
- package/src/segment-journey.uitest.ts +116 -0
- package/src/segment-mirror-ui.ts +157 -0
- package/src/segment-server.ts +95 -0
- package/src/segment-surface.gen.ts +277 -0
- package/src/segment-twin.ts +664 -0
package/src/index.ts
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
// The pack's RUNTIME surface — what a real app imports. Dev-only tooling (the conformance
|
|
2
|
+
// harness, the capability manifest) is deliberately absent: docs/contributing/architecture.md E2 requires a twin
|
|
3
|
+
// to run without @volter/world-tooling installed, and both of those import it. Reach them
|
|
4
|
+
// through `world-segment conformance` or a direct module import instead.
|
|
5
|
+
// `errorBody` is deliberately NOT re-exported from the generated module: its {success, message}
|
|
6
|
+
// shape is scripts/sdk-compile.ts's scaffold default, and Segment's real error envelope is
|
|
7
|
+
// {code, message} (grounded in analytics-python's own parser). Re-exporting it would advertise a
|
|
8
|
+
// shape this vendor never sends. Use `segmentError` below instead.
|
|
9
|
+
export { OPS, matchOp } from './segment-surface.gen.ts';
|
|
10
|
+
export {
|
|
11
|
+
SEMANTICS,
|
|
12
|
+
handleSegmentTwinRequest,
|
|
13
|
+
events,
|
|
14
|
+
identities,
|
|
15
|
+
groups,
|
|
16
|
+
dropped,
|
|
17
|
+
ingest,
|
|
18
|
+
decodeEnvelope,
|
|
19
|
+
resolveWriteKey,
|
|
20
|
+
segmentError,
|
|
21
|
+
MODELED_TYPES,
|
|
22
|
+
UNMODELED_TYPES,
|
|
23
|
+
SEGMENT_MAX_REQUEST_BYTES,
|
|
24
|
+
SEGMENT_MAX_BATCH_BYTES,
|
|
25
|
+
SEGMENT_MAX_BATCH_EVENTS,
|
|
26
|
+
} from './segment-twin.ts';
|
|
27
|
+
export { createSegmentTwinFetch, createSegmentTwinServer, type SegmentTwinFetchOptions } from './segment-server.ts';
|
|
28
|
+
export {
|
|
29
|
+
createSegmentMirrorServer,
|
|
30
|
+
buildSegmentMirrorClient,
|
|
31
|
+
segmentMirrorHtml,
|
|
32
|
+
clockLabel,
|
|
33
|
+
messageLabel,
|
|
34
|
+
propertyChips,
|
|
35
|
+
subjectOf,
|
|
36
|
+
typeTone,
|
|
37
|
+
PILL_CLASS,
|
|
38
|
+
type PillTone,
|
|
39
|
+
type SegmentRow,
|
|
40
|
+
} from './segment-mirror-ui.ts';
|
|
41
|
+
export { liveSegmentExecute, syncSegmentFromReal, pushPendingSegmentActions, pushEnvelopeFor, stampEnvelope, SEGMENT_API_BASE } from './segment-connector.ts';
|
|
42
|
+
export { SegmentBudget, SEGMENT_RATE_BUDGET, SEGMENT_BUDGET_CEILING, SEGMENT_CALL_WEIGHTS, segmentBudgetPath, segmentCallWeight } from './segment-budget.ts';
|
|
43
|
+
|
|
44
|
+
// Registry descriptor (#1): the pack self-describes so tooling can discover it.
|
|
45
|
+
// A consumer does `registerPack(pack)` after importing this package.
|
|
46
|
+
import type { TwinPack } from '@volter/world-core';
|
|
47
|
+
import { SEGMENT_RATE_BUDGET as RATE_BUDGET } from './segment-budget.ts';
|
|
48
|
+
export const pack: TwinPack = {
|
|
49
|
+
vendor: 'segment',
|
|
50
|
+
// The SAME object segment-budget.ts declares at module load — one source of truth, so
|
|
51
|
+
// registering the pack and importing the connector can never arm two different ceilings.
|
|
52
|
+
rateBudget: RATE_BUDGET,
|
|
53
|
+
transport: 'rest',
|
|
54
|
+
archetype: 'crud',
|
|
55
|
+
bin: 'world-segment',
|
|
56
|
+
// The subject types the twin stores (segment-twin.ts projections); `dropped` is a real stored
|
|
57
|
+
// row — a message the tracking plane refused, kept rather than discarded.
|
|
58
|
+
resources: ['event', 'identity', 'group', 'dropped'],
|
|
59
|
+
specSource:
|
|
60
|
+
'NO first-party machine-readable spec exists for this surface — the denominator was AUTHORED op by ' +
|
|
61
|
+
'op at var/line/segment/SURFACE.json (16 operations, each carrying its evidence) and compiled into ' +
|
|
62
|
+
'segment-surface.gen.ts / segment-capabilities.gen.ts; docs grounding is github.com/segmentio/' +
|
|
63
|
+
'segment-docs, the vendor\'s own documentation source. See spec-sources.json.',
|
|
64
|
+
description:
|
|
65
|
+
"Segment HTTP Tracking API twin — POST /v1/batch and the direct /v1/{track,identify,page,screen," +
|
|
66
|
+
'group,alias} routes modeled over kernel state, so an unmodified @segment/analytics-node client ' +
|
|
67
|
+
'round-trips offline, plus the Source Debugger mirror: the live accepted/dropped stream this ' +
|
|
68
|
+
'write-only API has no way to read back.',
|
|
69
|
+
// Adoption: the Node tracking client this pack round-trips unmodified, plus the SEGMENT_*
|
|
70
|
+
// credential stem — declared HERE rather than in the central maps (adoption-facts sweep
|
|
71
|
+
// 2026-08-31). `@segment/analytics-next` is deliberately NOT claimed: it is the browser
|
|
72
|
+
// build surface (CDN settings fetch), not this HTTP Tracking API.
|
|
73
|
+
adoption: {
|
|
74
|
+
// Segment's official Python analytics library under both distribution names it has published
|
|
75
|
+
// under (the older `analytics-python` is still pinned widely).
|
|
76
|
+
pypi: ['segment-analytics-python', 'analytics-python'],
|
|
77
|
+
sdks: ['@segment/analytics-node'], envStems: ['SEGMENT'],
|
|
78
|
+
},
|
|
79
|
+
// Interception, moved off the hand VENDOR_HOSTS table unchanged (descriptor-first back-migration, adding-a-twin.md §3,
|
|
80
|
+
// 2026-08-31): the US and EU tracking hosts plus their OAuth token endpoints.
|
|
81
|
+
hosts: [
|
|
82
|
+
{ host: 'api.segment.io' },
|
|
83
|
+
{ host: 'events.eu1.segmentapis.com' },
|
|
84
|
+
{ host: 'oauth2.segment.io' },
|
|
85
|
+
{ host: 'oauth2.eu1.segmentapis.com' },
|
|
86
|
+
],
|
|
87
|
+
};
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
// Segment's CLIENT-SIDE RATE BUDGET — the pack's DECLARATION (the numbers) plus the thin typed
|
|
2
|
+
// bindings `liveSegmentExecute` uses. The MECHANISM — the durable token-keyed ledger, the rolling
|
|
3
|
+
// window, reserve-under-lock, the `Retry-After`/429 cooldown, fail-CLOSED on a corrupt ledger —
|
|
4
|
+
// lives ONCE in the vendor-agnostic kernel (`@volter/world-core` → rateBudget.ts). Transcribed from
|
|
5
|
+
// packages/twin/mixpanel/src/mixpanel-budget.ts, the sibling analytics pack; the METHOD is
|
|
6
|
+
// copied, the NUMBERS are this vendor's own.
|
|
7
|
+
//
|
|
8
|
+
// ── HOW THE CEILING WAS CHOSEN ───────────────────────────────────────────────────────────────
|
|
9
|
+
// Unlike Mixpanel, Segment DOES publish scalars. Live-fetched during this build, on 2026-08-24,
|
|
10
|
+
// from the docs' own source repository (github.com/segmentio/segment-docs — segment.com itself
|
|
11
|
+
// answers 403 to non-browser clients, so the rendered page was not read):
|
|
12
|
+
// • src/connections/sources/catalog/libraries/server/http-api/index.md '## Rate limits':
|
|
13
|
+
// "For each workspace, Segment recommends you to not exceed 1,000 requests per second with
|
|
14
|
+
// the HTTP API... Requests that exceed acceptable limits may be rejected with HTTP Status
|
|
15
|
+
// Code 429. When Segment rejects the requests, the response header contains `Retry-After`
|
|
16
|
+
// and `X-RateLimit-Reset` headers".
|
|
17
|
+
// • src/connections/rate-limits.md ("These limits were updated on January 25, 2024"): the same
|
|
18
|
+
// 1,000-per-second inbound ingestion figure, plus 10,000 properties per individual event.
|
|
19
|
+
// • '## Max request size': 32KB per normal request, 500KB per batch request, 32KB per event in
|
|
20
|
+
// a batch, and (from '## Errors') 2,500 events per batch request.
|
|
21
|
+
//
|
|
22
|
+
// 1,000 req/s is NOT adopted as this ceiling, and that is the whole judgement. It is a
|
|
23
|
+
// WORKSPACE-WIDE production-throughput recommendation for an entire company's live traffic — the
|
|
24
|
+
// number above which Segment "reserves the right to queue" — not an allowance handed to one
|
|
25
|
+
// connector. This pack's only live caller is a REPLAY path (pushPendingSegmentActions), so
|
|
26
|
+
// spending a production firehose's allowance from a dev machine would be dressing a vendor
|
|
27
|
+
// recommendation up as a client budget. The declaration therefore claims NO extra permissiveness
|
|
28
|
+
// over the kernel fallback: 60 weighted units per 60s at defaultWeight 2 — 30 calls/minute, the
|
|
29
|
+
// fallback's exact shape — which is also why no VENDOR_BURST_ANCHOR is owed (that obligation
|
|
30
|
+
// binds only a declaration that out-bursts the fallback). An operator who knows their own plan
|
|
31
|
+
// can only TIGHTEN from here.
|
|
32
|
+
//
|
|
33
|
+
// ── HOW THE WEIGHTS WERE CHOSEN ──────────────────────────────────────────────────────────────
|
|
34
|
+
// Never cheaper than the default — a discount claims allowance no published figure licenses.
|
|
35
|
+
// Ingestion writes sit at the default 2. The OAuth token exchange costs 6 because it is a
|
|
36
|
+
// CREDENTIAL-MINTING call on a different host with its own 429 handling (the SDK's TokenManager
|
|
37
|
+
// treats 400/401/415 there as unrecoverable and STOPS its poller), so a runaway auth loop must
|
|
38
|
+
// halt three times sooner than a runaway ingest loop. That 2:6 ratio is a judgement about
|
|
39
|
+
// relative risk, not a published cost, and is stated as such.
|
|
40
|
+
import {
|
|
41
|
+
declareRateBudget,
|
|
42
|
+
rateBudgetPath,
|
|
43
|
+
rateBudgetWeight,
|
|
44
|
+
RateBudget,
|
|
45
|
+
type RateBudgetDeclaration,
|
|
46
|
+
type RateBudgetOptions,
|
|
47
|
+
type RateBudgetReservation,
|
|
48
|
+
type RateBudgetSnapshot,
|
|
49
|
+
} from '@volter/world-core';
|
|
50
|
+
|
|
51
|
+
const VENDOR = 'segment';
|
|
52
|
+
|
|
53
|
+
/** Rolling window, in ms. Matches the kernel fallback: no vendor figure licenses a longer one. */
|
|
54
|
+
export const SEGMENT_BUDGET_WINDOW_MS = 60_000;
|
|
55
|
+
|
|
56
|
+
/** Weighted units per window. Deliberately EQUAL to the kernel fallback's ceiling — see header. */
|
|
57
|
+
export const SEGMENT_BUDGET_CEILING = 60;
|
|
58
|
+
|
|
59
|
+
/** Seconds. A Retry-After above this means the credential is blocked, not throttled — fail loudly. */
|
|
60
|
+
export const SEGMENT_BUDGET_MAX_RETRY_AFTER_S = 300;
|
|
61
|
+
|
|
62
|
+
export const SEGMENT_CALL_WEIGHTS = {
|
|
63
|
+
/** Tracking-plane writes: /v1/batch, the mobile /v1/b, analytics.js's /v1/t, the six direct
|
|
64
|
+
* /v1/<type> routes and the six /v1/pixel/* routes. The kernel fallback's default weight. */
|
|
65
|
+
ingestion: 2,
|
|
66
|
+
/** POST /token on oauth2.segment.io — credential minting, with its own unrecoverable-error
|
|
67
|
+
* handling in the SDK's TokenManager. Three times an ingest write. */
|
|
68
|
+
oauth: 6,
|
|
69
|
+
/** Everything this pack has not classified. Equal to the ingestion weight so an UNKNOWN
|
|
70
|
+
* endpoint is never cheaper than a known one — and never free. */
|
|
71
|
+
other: 2,
|
|
72
|
+
} as const;
|
|
73
|
+
|
|
74
|
+
/** THE PACK'S DECLARATION — pure data, first-match-wins on `"<METHOD> <pathname>"`. */
|
|
75
|
+
export const SEGMENT_RATE_BUDGET: RateBudgetDeclaration = {
|
|
76
|
+
windowMs: SEGMENT_BUDGET_WINDOW_MS,
|
|
77
|
+
ceiling: SEGMENT_BUDGET_CEILING,
|
|
78
|
+
defaultWeight: SEGMENT_CALL_WEIGHTS.other,
|
|
79
|
+
maxRetryAfterSeconds: SEGMENT_BUDGET_MAX_RETRY_AFTER_S,
|
|
80
|
+
rules: [
|
|
81
|
+
{ match: '^POST /v1/(batch|b|t)$', weight: SEGMENT_CALL_WEIGHTS.ingestion },
|
|
82
|
+
{ match: '^POST /v1/(track|identify|page|screen|group|alias)$', weight: SEGMENT_CALL_WEIGHTS.ingestion },
|
|
83
|
+
{ match: '^GET /v1/pixel/(track|identify|page|screen|group|alias)$', weight: SEGMENT_CALL_WEIGHTS.ingestion },
|
|
84
|
+
{ match: '^POST /token$', weight: SEGMENT_CALL_WEIGHTS.oauth },
|
|
85
|
+
],
|
|
86
|
+
reason:
|
|
87
|
+
"Segment publishes scalar limits and this declaration deliberately does NOT adopt the headline one. " +
|
|
88
|
+
"Live-fetched 2026-08-24 from github.com/segmentio/segment-docs (the docs' own source; segment.com " +
|
|
89
|
+
'answers 403 to non-browser clients): src/connections/sources/catalog/libraries/server/http-api/index.md ' +
|
|
90
|
+
"'## Rate limits' — \"For each workspace, Segment recommends you to not exceed 1,000 requests per second " +
|
|
91
|
+
'with the HTTP API... Requests that exceed acceptable limits may be rejected with HTTP Status Code 429. ' +
|
|
92
|
+
'When Segment rejects the requests, the response header contains Retry-After and X-RateLimit-Reset headers"; ' +
|
|
93
|
+
'src/connections/rate-limits.md (updated January 25, 2024) repeats the 1,000/second inbound figure. That ' +
|
|
94
|
+
'number is a WORKSPACE-WIDE production-throughput recommendation, not a per-connector allowance, and this ' +
|
|
95
|
+
"pack's only live caller is a replay path — so adopting it would dress a vendor recommendation up as a " +
|
|
96
|
+
'client budget. The ceiling is therefore exactly the kernel fallback shape: 60 weighted units / 60s at ' +
|
|
97
|
+
'defaultWeight 2 (30 calls/minute, same burst), claiming no extra permissiveness and owing no burst anchor. ' +
|
|
98
|
+
"The vendor's cost STRUCTURE appears only in the relative weights, all at or above the default — tracking " +
|
|
99
|
+
'writes 2, the OAuth token exchange 6 — so a runaway auth loop halts three times sooner than a runaway ' +
|
|
100
|
+
'ingest loop. That 2:6 ratio is a judgement about relative risk, not a published cost. Size limits from the ' +
|
|
101
|
+
"same page ('## Max request size': 32KB per request, 500KB per batch, 32KB per batched event; '## Errors': " +
|
|
102
|
+
'2,500 events per batch) are enforced in segment-twin.ts, not here — they bound payloads, not call rate.',
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
// Declared at module load: importing this module (which segment-connector.ts does) arms the ceiling.
|
|
106
|
+
declareRateBudget(VENDOR, SEGMENT_RATE_BUDGET);
|
|
107
|
+
|
|
108
|
+
/** Price one call, keyed off the request the connector is about to make — an unclassified
|
|
109
|
+
* endpoint still costs `defaultWeight`; an unknown endpoint must never be free. */
|
|
110
|
+
export function segmentCallWeight(method: string, path: string): number {
|
|
111
|
+
const q = path.indexOf('?');
|
|
112
|
+
const pathname = q < 0 ? path : path.slice(0, q);
|
|
113
|
+
return rateBudgetWeight(VENDOR, `${(method || 'GET').toUpperCase()} ${pathname}`, {});
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/** Where Segment's ledger lives. Key-keyed and cwd-independent by default (the allowance is per
|
|
117
|
+
* source write key; a cwd-scoped ledger would hand one credential a fresh allowance per checkout). */
|
|
118
|
+
export function segmentBudgetPath(opts: { root?: string; token?: string } | string = {}): string {
|
|
119
|
+
const o = typeof opts === 'string' ? { root: opts } : opts;
|
|
120
|
+
return rateBudgetPath({ ...o, vendor: VENDOR });
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export type SegmentBudgetOptions = Omit<RateBudgetOptions, 'vendor'>;
|
|
124
|
+
|
|
125
|
+
/** Segment's budget — the shared kernel guard bound to this vendor's declaration. A real subclass
|
|
126
|
+
* so `SegmentBudget` means "accounts against SEGMENT's ledger under ITS ceiling". It overrides
|
|
127
|
+
* nothing: `assertBudgetGuardIntact` in the connector checks the guard methods are the kernel's
|
|
128
|
+
* own, so an override here would be REFUSED rather than trusted. */
|
|
129
|
+
export class SegmentBudget extends RateBudget {
|
|
130
|
+
constructor(opts: SegmentBudgetOptions = {}) {
|
|
131
|
+
super({ ...opts, vendor: VENDOR });
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export { RateBudgetError as SegmentBudgetError } from '@volter/world-core';
|
|
136
|
+
export type { RateBudgetErrorKind as SegmentBudgetErrorKind } from '@volter/world-core';
|
|
137
|
+
export type SegmentBudgetReservation = RateBudgetReservation;
|
|
138
|
+
export type SegmentBudgetSnapshot = RateBudgetSnapshot;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// GENERATED by scripts/sdk-compile.ts from var/line/segment/SURFACE.json — the vendor
|
|
2
|
+
// publishes no machine-readable spec; every op below carries the evidence it was ratified on.
|
|
3
|
+
// Data only; regenerate, never hand-edit.
|
|
4
|
+
|
|
5
|
+
import type { CapabilitySpec } from '@volter/world-tooling';
|
|
6
|
+
|
|
7
|
+
/** Every ratified op, born `todo` — flips only by hand with a real verify. */
|
|
8
|
+
export const GENERATED_CAPABILITIES: CapabilitySpec[] = [
|
|
9
|
+
{ id: 'segment.api.alias', area: "alias", title: "POST /v1/alias — associate one identity with another: a `previousId` (userId or anonymousId) is aliased onto a new `userId` [grounding: DOCS ONLY, NOT VERIFIED OFFLINE. github.com/segmentio/segment-docs src/connections/sources/catalog/l]", dimension: 'api', expected: 'todo', tier: "common" },
|
|
10
|
+
{ id: 'segment.api.batch', area: "batch", title: "POST /v1/batch — the SERVER-side batched ingestion envelope every official server SDK sends: {batch:[<message>...], writeKey, sentAt}, each message discriminated by its own `type` [grounding: SDK WIRE LITERAL. @segment/analytics-node@2.3.0 src/plugins/segmentio/publisher.ts:73-76 builds the ]", dimension: 'api', expected: 'todo', tier: "core" },
|
|
11
|
+
{ id: 'segment.api.browser_track', area: "track", title: "POST /v1/t — analytics.js's short-form tracking route on the api.segment.io/v1 base — the path a browser proxy must forward [grounding: DOCS ONLY, NOT VERIFIED OFFLINE. github.com/segmentio/segment-docs src/connections/sources/catalog/l]", dimension: 'api', expected: 'todo', tier: "niche" },
|
|
12
|
+
{ id: 'segment.api.group', area: "group", title: "POST /v1/group — associate an identified user with a group (company/account/team) and record group traits [grounding: DOCS ONLY, NOT VERIFIED OFFLINE. github.com/segmentio/segment-docs src/connections/sources/catalog/l]", dimension: 'api', expected: 'todo', tier: "core" },
|
|
13
|
+
{ id: 'segment.api.identify', area: "identify", title: "POST /v1/identify — tie a user to their actions and record `traits` about them [grounding: DOCS ONLY, NOT VERIFIED OFFLINE. github.com/segmentio/segment-docs src/connections/sources/catalog/l]", dimension: 'api', expected: 'todo', tier: "core" },
|
|
14
|
+
{ id: 'segment.api.mobile_batch', area: "batch", title: "POST /v1/b — the MOBILE batch endpoint — a distinct route from /v1/batch, which the vendor reserves for server-side sending [grounding: DOCS ONLY, NOT VERIFIED OFFLINE. github.com/segmentio/segment-docs src/connections/sources/catalog/l]", dimension: 'api', expected: 'todo', tier: "common" },
|
|
15
|
+
{ id: 'segment.api.oauth_token', area: "oauth", title: "POST /token — OAuth 2.0 client-credentials token exchange on the regional authorization server: a signed RS256 JWT client assertion is traded for a short-lived access token [grounding: SDK WIRE LITERAL (interpolated, which is why wire.json's plain-string grep missed it). @segment/anal]", dimension: 'api', expected: 'todo', tier: "niche" },
|
|
16
|
+
{ id: 'segment.api.page', area: "page", title: "POST /v1/page — record a web page view, with optional category, name and properties [grounding: DOCS ONLY, NOT VERIFIED OFFLINE. github.com/segmentio/segment-docs src/connections/sources/catalog/l]", dimension: 'api', expected: 'todo', tier: "core" },
|
|
17
|
+
{ id: 'segment.api.pixel_alias', area: "pixel", title: "GET /v1/pixel/alias — Tracking Pixel API: an alias call carried in the query string, answering 200 with a 1x1 transparent GIF [grounding: DOCS ONLY, NOT VERIFIED OFFLINE. github.com/segmentio/segment-docs src/connections/sources/catalog/l]", dimension: 'api', expected: 'todo', tier: "niche" },
|
|
18
|
+
{ id: 'segment.api.pixel_group', area: "pixel", title: "GET /v1/pixel/group — Tracking Pixel API: a group call carried in the query string, answering 200 with a 1x1 transparent GIF [grounding: DOCS ONLY, NOT VERIFIED OFFLINE. github.com/segmentio/segment-docs src/connections/sources/catalog/l]", dimension: 'api', expected: 'todo', tier: "niche" },
|
|
19
|
+
{ id: 'segment.api.pixel_identify', area: "pixel", title: "GET /v1/pixel/identify — Tracking Pixel API: an identify call carried in the query string, answering 200 with a 1x1 transparent GIF [grounding: DOCS ONLY, NOT VERIFIED OFFLINE. github.com/segmentio/segment-docs src/connections/sources/catalog/l]", dimension: 'api', expected: 'todo', tier: "niche" },
|
|
20
|
+
{ id: 'segment.api.pixel_page', area: "pixel", title: "GET /v1/pixel/page — Tracking Pixel API: a page call carried in the query string, answering 200 with a 1x1 transparent GIF [grounding: DOCS ONLY, NOT VERIFIED OFFLINE. github.com/segmentio/segment-docs src/connections/sources/catalog/l]", dimension: 'api', expected: 'todo', tier: "niche" },
|
|
21
|
+
{ id: 'segment.api.pixel_screen', area: "pixel", title: "GET /v1/pixel/screen — Tracking Pixel API: a screen call carried in the query string, answering 200 with a 1x1 transparent GIF [grounding: DOCS ONLY, NOT VERIFIED OFFLINE. github.com/segmentio/segment-docs src/connections/sources/catalog/l]", dimension: 'api', expected: 'todo', tier: "niche" },
|
|
22
|
+
{ id: 'segment.api.pixel_track', area: "pixel", title: "GET /v1/pixel/track — Tracking Pixel API: a track call carried in the query string (base64 `?data=` or plain params), answering 200 with a 1x1 transparent GIF [grounding: DOCS ONLY, NOT VERIFIED OFFLINE. github.com/segmentio/segment-docs src/connections/sources/catalog/l]", dimension: 'api', expected: 'todo', tier: "niche" },
|
|
23
|
+
{ id: 'segment.api.screen', area: "screen", title: "POST /v1/screen — record a mobile app screen view, with optional category, name and properties [grounding: DOCS ONLY, NOT VERIFIED OFFLINE. github.com/segmentio/segment-docs src/connections/sources/catalog/l]", dimension: 'api', expected: 'todo', tier: "common" },
|
|
24
|
+
{ id: 'segment.api.track', area: "track", title: "POST /v1/track — record an action a user performed: required `event` name plus optional `properties` [grounding: DOCS ONLY, NOT VERIFIED OFFLINE. github.com/segmentio/segment-docs src/connections/sources/catalog/l]", dimension: 'api', expected: 'todo', tier: "core" },
|
|
25
|
+
];
|