MCPcopy Index your code
hub / github.com/callstack/agent-device / readClientDeviceIdentity

Function readClientDeviceIdentity

src/client/client-normalizers.ts:149–158  ·  view source on GitHub ↗
(value: unknown, nameField: string)

Source from the content-addressed store, hash-verified

147}
148
149function readClientDeviceIdentity(value: unknown, nameField: string) {
150 const record = asRecord(value);
151 return {
152 record,
153 platform: readRequiredPlatform(record, 'platform'),
154 id: readRequiredString(record, 'id'),
155 name: readRequiredString(record, nameField),
156 target: readDeviceTarget(record, 'target'),
157 };
158}
159
160function buildClientDevicePlatformFields(
161 platform: AgentDeviceDevice['platform'],

Callers 2

normalizeDeviceFunction · 0.85
normalizeSessionFunction · 0.85

Calls 4

asRecordFunction · 0.90
readRequiredPlatformFunction · 0.90
readRequiredStringFunction · 0.90
readDeviceTargetFunction · 0.90

Tested by

no test coverage detected